Merge from gnus--devo--0
[emacs.git] / configure
blob192c51b9c23d40c5faf504b3fe02c18dd6dca7f7
1 #! /bin/sh
2 # Guess values for system-dependent variables and create Makefiles.
3 # Generated by GNU Autoconf 2.61 for emacs 23.0.60.
5 # Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
6 # 2002, 2003, 2004, 2005, 2006 Free Software Foundation, Inc.
7 # This configure script is free software; the Free Software Foundation
8 # gives unlimited permission to copy, distribute and modify it.
9 ## --------------------- ##
10 ## M4sh Initialization. ##
11 ## --------------------- ##
13 # Be more Bourne compatible
14 DUALCASE=1; export DUALCASE # for MKS sh
15 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
16 emulate sh
17 NULLCMD=:
18 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
19 # is contrary to our usage. Disable this feature.
20 alias -g '${1+"$@"}'='"$@"'
21 setopt NO_GLOB_SUBST
22 else
23 case `(set -o) 2>/dev/null` in
24 *posix*) set -o posix ;;
25 esac
32 # PATH needs CR
33 # Avoid depending upon Character Ranges.
34 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
35 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
36 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
37 as_cr_digits='0123456789'
38 as_cr_alnum=$as_cr_Letters$as_cr_digits
40 # The user is always right.
41 if test "${PATH_SEPARATOR+set}" != set; then
42 echo "#! /bin/sh" >conf$$.sh
43 echo "exit 0" >>conf$$.sh
44 chmod +x conf$$.sh
45 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
46 PATH_SEPARATOR=';'
47 else
48 PATH_SEPARATOR=:
50 rm -f conf$$.sh
53 # Support unset when possible.
54 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
55 as_unset=unset
56 else
57 as_unset=false
61 # IFS
62 # We need space, tab and new line, in precisely that order. Quoting is
63 # there to prevent editors from complaining about space-tab.
64 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
65 # splitting by setting IFS to empty value.)
66 as_nl='
68 IFS=" "" $as_nl"
70 # Find who we are. Look in the path if we contain no directory separator.
71 case $0 in
72 *[\\/]* ) as_myself=$0 ;;
73 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
74 for as_dir in $PATH
76 IFS=$as_save_IFS
77 test -z "$as_dir" && as_dir=.
78 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
79 done
80 IFS=$as_save_IFS
83 esac
84 # We did not find ourselves, most probably we were run as `sh COMMAND'
85 # in which case we are not to be found in the path.
86 if test "x$as_myself" = x; then
87 as_myself=$0
89 if test ! -f "$as_myself"; then
90 echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
91 { (exit 1); exit 1; }
94 # Work around bugs in pre-3.0 UWIN ksh.
95 for as_var in ENV MAIL MAILPATH
96 do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
97 done
98 PS1='$ '
99 PS2='> '
100 PS4='+ '
102 # NLS nuisances.
103 for as_var in \
104 LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
105 LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
106 LC_TELEPHONE LC_TIME
108 if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
109 eval $as_var=C; export $as_var
110 else
111 ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
113 done
115 # Required to use basename.
116 if expr a : '\(a\)' >/dev/null 2>&1 &&
117 test "X`expr 00001 : '.*\(...\)'`" = X001; then
118 as_expr=expr
119 else
120 as_expr=false
123 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
124 as_basename=basename
125 else
126 as_basename=false
130 # Name of the executable.
131 as_me=`$as_basename -- "$0" ||
132 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
133 X"$0" : 'X\(//\)$' \| \
134 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
135 echo X/"$0" |
136 sed '/^.*\/\([^/][^/]*\)\/*$/{
137 s//\1/
140 /^X\/\(\/\/\)$/{
141 s//\1/
144 /^X\/\(\/\).*/{
145 s//\1/
148 s/.*/./; q'`
150 # CDPATH.
151 $as_unset CDPATH
154 if test "x$CONFIG_SHELL" = x; then
155 if (eval ":") 2>/dev/null; then
156 as_have_required=yes
157 else
158 as_have_required=no
161 if test $as_have_required = yes && (eval ":
162 (as_func_return () {
163 (exit \$1)
165 as_func_success () {
166 as_func_return 0
168 as_func_failure () {
169 as_func_return 1
171 as_func_ret_success () {
172 return 0
174 as_func_ret_failure () {
175 return 1
178 exitcode=0
179 if as_func_success; then
181 else
182 exitcode=1
183 echo as_func_success failed.
186 if as_func_failure; then
187 exitcode=1
188 echo as_func_failure succeeded.
191 if as_func_ret_success; then
193 else
194 exitcode=1
195 echo as_func_ret_success failed.
198 if as_func_ret_failure; then
199 exitcode=1
200 echo as_func_ret_failure succeeded.
203 if ( set x; as_func_ret_success y && test x = \"\$1\" ); then
205 else
206 exitcode=1
207 echo positional parameters were not saved.
210 test \$exitcode = 0) || { (exit 1); exit 1; }
213 as_lineno_1=\$LINENO
214 as_lineno_2=\$LINENO
215 test \"x\$as_lineno_1\" != \"x\$as_lineno_2\" &&
216 test \"x\`expr \$as_lineno_1 + 1\`\" = \"x\$as_lineno_2\") || { (exit 1); exit 1; }
217 ") 2> /dev/null; then
219 else
220 as_candidate_shells=
221 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
222 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
224 IFS=$as_save_IFS
225 test -z "$as_dir" && as_dir=.
226 case $as_dir in
228 for as_base in sh bash ksh sh5; do
229 as_candidate_shells="$as_candidate_shells $as_dir/$as_base"
230 done;;
231 esac
232 done
233 IFS=$as_save_IFS
236 for as_shell in $as_candidate_shells $SHELL; do
237 # Try only shells that exist, to save several forks.
238 if { test -f "$as_shell" || test -f "$as_shell.exe"; } &&
239 { ("$as_shell") 2> /dev/null <<\_ASEOF
240 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
241 emulate sh
242 NULLCMD=:
243 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
244 # is contrary to our usage. Disable this feature.
245 alias -g '${1+"$@"}'='"$@"'
246 setopt NO_GLOB_SUBST
247 else
248 case `(set -o) 2>/dev/null` in
249 *posix*) set -o posix ;;
250 esac
256 _ASEOF
257 }; then
258 CONFIG_SHELL=$as_shell
259 as_have_required=yes
260 if { "$as_shell" 2> /dev/null <<\_ASEOF
261 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
262 emulate sh
263 NULLCMD=:
264 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
265 # is contrary to our usage. Disable this feature.
266 alias -g '${1+"$@"}'='"$@"'
267 setopt NO_GLOB_SUBST
268 else
269 case `(set -o) 2>/dev/null` in
270 *posix*) set -o posix ;;
271 esac
277 (as_func_return () {
278 (exit $1)
280 as_func_success () {
281 as_func_return 0
283 as_func_failure () {
284 as_func_return 1
286 as_func_ret_success () {
287 return 0
289 as_func_ret_failure () {
290 return 1
293 exitcode=0
294 if as_func_success; then
296 else
297 exitcode=1
298 echo as_func_success failed.
301 if as_func_failure; then
302 exitcode=1
303 echo as_func_failure succeeded.
306 if as_func_ret_success; then
308 else
309 exitcode=1
310 echo as_func_ret_success failed.
313 if as_func_ret_failure; then
314 exitcode=1
315 echo as_func_ret_failure succeeded.
318 if ( set x; as_func_ret_success y && test x = "$1" ); then
320 else
321 exitcode=1
322 echo positional parameters were not saved.
325 test $exitcode = 0) || { (exit 1); exit 1; }
328 as_lineno_1=$LINENO
329 as_lineno_2=$LINENO
330 test "x$as_lineno_1" != "x$as_lineno_2" &&
331 test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2") || { (exit 1); exit 1; }
333 _ASEOF
334 }; then
335 break
340 done
342 if test "x$CONFIG_SHELL" != x; then
343 for as_var in BASH_ENV ENV
344 do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
345 done
346 export CONFIG_SHELL
347 exec "$CONFIG_SHELL" "$as_myself" ${1+"$@"}
351 if test $as_have_required = no; then
352 echo This script requires a shell more modern than all the
353 echo shells that I found on your system. Please install a
354 echo modern shell, or manually run the script under such a
355 echo shell if you do have one.
356 { (exit 1); exit 1; }
366 (eval "as_func_return () {
367 (exit \$1)
369 as_func_success () {
370 as_func_return 0
372 as_func_failure () {
373 as_func_return 1
375 as_func_ret_success () {
376 return 0
378 as_func_ret_failure () {
379 return 1
382 exitcode=0
383 if as_func_success; then
385 else
386 exitcode=1
387 echo as_func_success failed.
390 if as_func_failure; then
391 exitcode=1
392 echo as_func_failure succeeded.
395 if as_func_ret_success; then
397 else
398 exitcode=1
399 echo as_func_ret_success failed.
402 if as_func_ret_failure; then
403 exitcode=1
404 echo as_func_ret_failure succeeded.
407 if ( set x; as_func_ret_success y && test x = \"\$1\" ); then
409 else
410 exitcode=1
411 echo positional parameters were not saved.
414 test \$exitcode = 0") || {
415 echo No shell found that supports shell functions.
416 echo Please tell autoconf@gnu.org about your system,
417 echo including any error possibly output before this
418 echo message
423 as_lineno_1=$LINENO
424 as_lineno_2=$LINENO
425 test "x$as_lineno_1" != "x$as_lineno_2" &&
426 test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2" || {
428 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
429 # uniformly replaced by the line number. The first 'sed' inserts a
430 # line-number line after each line using $LINENO; the second 'sed'
431 # does the real work. The second script uses 'N' to pair each
432 # line-number line with the line containing $LINENO, and appends
433 # trailing '-' during substitution so that $LINENO is not a special
434 # case at line end.
435 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
436 # scripts with optimization help from Paolo Bonzini. Blame Lee
437 # E. McMahon (1931-1989) for sed's syntax. :-)
438 sed -n '
440 /[$]LINENO/=
441 ' <$as_myself |
442 sed '
443 s/[$]LINENO.*/&-/
444 t lineno
446 :lineno
448 :loop
449 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
450 t loop
451 s/-\n.*//
452 ' >$as_me.lineno &&
453 chmod +x "$as_me.lineno" ||
454 { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
455 { (exit 1); exit 1; }; }
457 # Don't try to exec as it changes $[0], causing all sort of problems
458 # (the dirname of $[0] is not the place where we might find the
459 # original and so on. Autoconf is especially sensitive to this).
460 . "./$as_me.lineno"
461 # Exit status is that of the last command.
462 exit
466 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
467 as_dirname=dirname
468 else
469 as_dirname=false
472 ECHO_C= ECHO_N= ECHO_T=
473 case `echo -n x` in
474 -n*)
475 case `echo 'x\c'` in
476 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
477 *) ECHO_C='\c';;
478 esac;;
480 ECHO_N='-n';;
481 esac
483 if expr a : '\(a\)' >/dev/null 2>&1 &&
484 test "X`expr 00001 : '.*\(...\)'`" = X001; then
485 as_expr=expr
486 else
487 as_expr=false
490 rm -f conf$$ conf$$.exe conf$$.file
491 if test -d conf$$.dir; then
492 rm -f conf$$.dir/conf$$.file
493 else
494 rm -f conf$$.dir
495 mkdir conf$$.dir
497 echo >conf$$.file
498 if ln -s conf$$.file conf$$ 2>/dev/null; then
499 as_ln_s='ln -s'
500 # ... but there are two gotchas:
501 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
502 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
503 # In both cases, we have to default to `cp -p'.
504 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
505 as_ln_s='cp -p'
506 elif ln conf$$.file conf$$ 2>/dev/null; then
507 as_ln_s=ln
508 else
509 as_ln_s='cp -p'
511 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
512 rmdir conf$$.dir 2>/dev/null
514 if mkdir -p . 2>/dev/null; then
515 as_mkdir_p=:
516 else
517 test -d ./-p && rmdir ./-p
518 as_mkdir_p=false
521 if test -x / >/dev/null 2>&1; then
522 as_test_x='test -x'
523 else
524 if ls -dL / >/dev/null 2>&1; then
525 as_ls_L_option=L
526 else
527 as_ls_L_option=
529 as_test_x='
530 eval sh -c '\''
531 if test -d "$1"; then
532 test -d "$1/.";
533 else
534 case $1 in
535 -*)set "./$1";;
536 esac;
537 case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in
538 ???[sx]*):;;*)false;;esac;fi
539 '\'' sh
542 as_executable_p=$as_test_x
544 # Sed expression to map a string onto a valid CPP name.
545 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
547 # Sed expression to map a string onto a valid variable name.
548 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
552 exec 7<&0 </dev/null 6>&1
554 # Name of the host.
555 # hostname on some systems (SVR3.2, Linux) returns a bogus exit status,
556 # so uname gets run too.
557 ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
560 # Initializations.
562 ac_default_prefix=/usr/local
563 ac_clean_files=
564 ac_config_libobj_dir=.
565 LIBOBJS=
566 cross_compiling=no
567 subdirs=
568 MFLAGS=
569 MAKEFLAGS=
570 SHELL=${CONFIG_SHELL-/bin/sh}
572 # Identity of this package.
573 PACKAGE_NAME='emacs'
574 PACKAGE_TARNAME='emacs'
575 PACKAGE_VERSION='23.0.60'
576 PACKAGE_STRING='emacs 23.0.60'
577 PACKAGE_BUGREPORT=''
579 ac_unique_file="src/lisp.h"
580 # Factoring default headers for most tests.
581 ac_includes_default="\
582 #include <stdio.h>
583 #ifdef HAVE_SYS_TYPES_H
584 # include <sys/types.h>
585 #endif
586 #ifdef HAVE_SYS_STAT_H
587 # include <sys/stat.h>
588 #endif
589 #ifdef STDC_HEADERS
590 # include <stdlib.h>
591 # include <stddef.h>
592 #else
593 # ifdef HAVE_STDLIB_H
594 # include <stdlib.h>
595 # endif
596 #endif
597 #ifdef HAVE_STRING_H
598 # if !defined STDC_HEADERS && defined HAVE_MEMORY_H
599 # include <memory.h>
600 # endif
601 # include <string.h>
602 #endif
603 #ifdef HAVE_STRINGS_H
604 # include <strings.h>
605 #endif
606 #ifdef HAVE_INTTYPES_H
607 # include <inttypes.h>
608 #endif
609 #ifdef HAVE_STDINT_H
610 # include <stdint.h>
611 #endif
612 #ifdef HAVE_UNISTD_H
613 # include <unistd.h>
614 #endif"
616 ac_config_libobj_dir=src
617 ac_header_list=
618 ac_func_list=
619 ac_subst_vars='SHELL
620 PATH_SEPARATOR
621 PACKAGE_NAME
622 PACKAGE_TARNAME
623 PACKAGE_VERSION
624 PACKAGE_STRING
625 PACKAGE_BUGREPORT
626 exec_prefix
627 prefix
628 program_transform_name
629 bindir
630 sbindir
631 libexecdir
632 datarootdir
633 datadir
634 sysconfdir
635 sharedstatedir
636 localstatedir
637 includedir
638 oldincludedir
639 docdir
640 infodir
641 htmldir
642 dvidir
643 pdfdir
644 psdir
645 libdir
646 localedir
647 mandir
648 DEFS
649 ECHO_C
650 ECHO_N
651 ECHO_T
652 LIBS
653 build_alias
654 host_alias
655 target_alias
656 MAINT
657 build
658 build_cpu
659 build_vendor
660 build_os
661 host
662 host_cpu
663 host_vendor
664 host_os
666 CFLAGS
667 LDFLAGS
668 CPPFLAGS
669 ac_ct_CC
670 EXEEXT
671 OBJEXT
673 GREP
674 EGREP
675 LN_S
676 INSTALL_PROGRAM
677 INSTALL_SCRIPT
678 INSTALL_DATA
679 RANLIB
680 INSTALL_INFO
681 GZIP_PROG
682 MAKEINFO
683 LIBSOUND
684 PKG_CONFIG
685 ALSA_CFLAGS
686 ALSA_LIBS
687 CFLAGS_SOUND
688 SET_MAKE
689 XMKMF
690 HAVE_XSERVER
691 RSVG_CFLAGS
692 RSVG_LIBS
693 GTK_CFLAGS
694 GTK_LIBS
695 DBUS_CFLAGS
696 DBUS_LIBS
697 XFT_CFLAGS
698 XFT_LIBS
699 FREETYPE_CFLAGS
700 FREETYPE_LIBS
701 FONTCONFIG_CFLAGS
702 FONTCONFIG_LIBS
703 LIBOTF_CFLAGS
704 LIBOTF_LIBS
705 M17N_FLT_CFLAGS
706 M17N_FLT_LIBS
707 ALLOCA
708 liblockfile
709 LIBOBJS
710 NEED_SETGID
711 KMEM_GROUP
712 GETLOADAVG_LIBS
713 GETOPT_H
714 GETOPTOBJS
715 version
716 configuration
717 canonical
718 srcdir
719 lispdir
720 locallisppath
721 lisppath
722 x_default_search_path
723 etcdir
724 archlibdir
725 bitmapdir
726 gamedir
727 gameuser
728 c_switch_system
729 c_switch_machine
730 LD_SWITCH_X_SITE
731 LD_SWITCH_X_SITE_AUX
732 C_SWITCH_X_SITE
733 X_TOOLKIT_TYPE
734 machfile
735 opsysfile
736 carbon_appdir
737 LTLIBOBJS'
738 ac_subst_files=''
739 ac_precious_vars='build_alias
740 host_alias
741 target_alias
743 CFLAGS
744 LDFLAGS
745 LIBS
746 CPPFLAGS
748 XMKMF'
751 # Initialize some variables set by options.
752 ac_init_help=
753 ac_init_version=false
754 # The variables have the same names as the options, with
755 # dashes changed to underlines.
756 cache_file=/dev/null
757 exec_prefix=NONE
758 no_create=
759 no_recursion=
760 prefix=NONE
761 program_prefix=NONE
762 program_suffix=NONE
763 program_transform_name=s,x,x,
764 silent=
765 site=
766 srcdir=
767 verbose=
768 x_includes=NONE
769 x_libraries=NONE
771 # Installation directory options.
772 # These are left unexpanded so users can "make install exec_prefix=/foo"
773 # and all the variables that are supposed to be based on exec_prefix
774 # by default will actually change.
775 # Use braces instead of parens because sh, perl, etc. also accept them.
776 # (The list follows the same order as the GNU Coding Standards.)
777 bindir='${exec_prefix}/bin'
778 sbindir='${exec_prefix}/sbin'
779 libexecdir='${exec_prefix}/libexec'
780 datarootdir='${prefix}/share'
781 datadir='${datarootdir}'
782 sysconfdir='${prefix}/etc'
783 sharedstatedir='${prefix}/com'
784 localstatedir='${prefix}/var'
785 includedir='${prefix}/include'
786 oldincludedir='/usr/include'
787 docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
788 infodir='${datarootdir}/info'
789 htmldir='${docdir}'
790 dvidir='${docdir}'
791 pdfdir='${docdir}'
792 psdir='${docdir}'
793 libdir='${exec_prefix}/lib'
794 localedir='${datarootdir}/locale'
795 mandir='${datarootdir}/man'
797 ac_prev=
798 ac_dashdash=
799 for ac_option
801 # If the previous option needs an argument, assign it.
802 if test -n "$ac_prev"; then
803 eval $ac_prev=\$ac_option
804 ac_prev=
805 continue
808 case $ac_option in
809 *=*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
810 *) ac_optarg=yes ;;
811 esac
813 # Accept the important Cygnus configure options, so we can diagnose typos.
815 case $ac_dashdash$ac_option in
817 ac_dashdash=yes ;;
819 -bindir | --bindir | --bindi | --bind | --bin | --bi)
820 ac_prev=bindir ;;
821 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
822 bindir=$ac_optarg ;;
824 -build | --build | --buil | --bui | --bu)
825 ac_prev=build_alias ;;
826 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
827 build_alias=$ac_optarg ;;
829 -cache-file | --cache-file | --cache-fil | --cache-fi \
830 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
831 ac_prev=cache_file ;;
832 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
833 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
834 cache_file=$ac_optarg ;;
836 --config-cache | -C)
837 cache_file=config.cache ;;
839 -datadir | --datadir | --datadi | --datad)
840 ac_prev=datadir ;;
841 -datadir=* | --datadir=* | --datadi=* | --datad=*)
842 datadir=$ac_optarg ;;
844 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
845 | --dataroo | --dataro | --datar)
846 ac_prev=datarootdir ;;
847 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
848 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
849 datarootdir=$ac_optarg ;;
851 -disable-* | --disable-*)
852 ac_feature=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
853 # Reject names that are not valid shell variable names.
854 expr "x$ac_feature" : ".*[^-._$as_cr_alnum]" >/dev/null &&
855 { echo "$as_me: error: invalid feature name: $ac_feature" >&2
856 { (exit 1); exit 1; }; }
857 ac_feature=`echo $ac_feature | sed 's/[-.]/_/g'`
858 eval enable_$ac_feature=no ;;
860 -docdir | --docdir | --docdi | --doc | --do)
861 ac_prev=docdir ;;
862 -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
863 docdir=$ac_optarg ;;
865 -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
866 ac_prev=dvidir ;;
867 -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
868 dvidir=$ac_optarg ;;
870 -enable-* | --enable-*)
871 ac_feature=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
872 # Reject names that are not valid shell variable names.
873 expr "x$ac_feature" : ".*[^-._$as_cr_alnum]" >/dev/null &&
874 { echo "$as_me: error: invalid feature name: $ac_feature" >&2
875 { (exit 1); exit 1; }; }
876 ac_feature=`echo $ac_feature | sed 's/[-.]/_/g'`
877 eval enable_$ac_feature=\$ac_optarg ;;
879 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
880 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
881 | --exec | --exe | --ex)
882 ac_prev=exec_prefix ;;
883 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
884 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
885 | --exec=* | --exe=* | --ex=*)
886 exec_prefix=$ac_optarg ;;
888 -gas | --gas | --ga | --g)
889 # Obsolete; use --with-gas.
890 with_gas=yes ;;
892 -help | --help | --hel | --he | -h)
893 ac_init_help=long ;;
894 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
895 ac_init_help=recursive ;;
896 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
897 ac_init_help=short ;;
899 -host | --host | --hos | --ho)
900 ac_prev=host_alias ;;
901 -host=* | --host=* | --hos=* | --ho=*)
902 host_alias=$ac_optarg ;;
904 -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
905 ac_prev=htmldir ;;
906 -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
907 | --ht=*)
908 htmldir=$ac_optarg ;;
910 -includedir | --includedir | --includedi | --included | --include \
911 | --includ | --inclu | --incl | --inc)
912 ac_prev=includedir ;;
913 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
914 | --includ=* | --inclu=* | --incl=* | --inc=*)
915 includedir=$ac_optarg ;;
917 -infodir | --infodir | --infodi | --infod | --info | --inf)
918 ac_prev=infodir ;;
919 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
920 infodir=$ac_optarg ;;
922 -libdir | --libdir | --libdi | --libd)
923 ac_prev=libdir ;;
924 -libdir=* | --libdir=* | --libdi=* | --libd=*)
925 libdir=$ac_optarg ;;
927 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
928 | --libexe | --libex | --libe)
929 ac_prev=libexecdir ;;
930 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
931 | --libexe=* | --libex=* | --libe=*)
932 libexecdir=$ac_optarg ;;
934 -localedir | --localedir | --localedi | --localed | --locale)
935 ac_prev=localedir ;;
936 -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
937 localedir=$ac_optarg ;;
939 -localstatedir | --localstatedir | --localstatedi | --localstated \
940 | --localstate | --localstat | --localsta | --localst | --locals)
941 ac_prev=localstatedir ;;
942 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
943 | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
944 localstatedir=$ac_optarg ;;
946 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
947 ac_prev=mandir ;;
948 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
949 mandir=$ac_optarg ;;
951 -nfp | --nfp | --nf)
952 # Obsolete; use --without-fp.
953 with_fp=no ;;
955 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
956 | --no-cr | --no-c | -n)
957 no_create=yes ;;
959 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
960 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
961 no_recursion=yes ;;
963 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
964 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
965 | --oldin | --oldi | --old | --ol | --o)
966 ac_prev=oldincludedir ;;
967 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
968 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
969 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
970 oldincludedir=$ac_optarg ;;
972 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
973 ac_prev=prefix ;;
974 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
975 prefix=$ac_optarg ;;
977 -program-prefix | --program-prefix | --program-prefi | --program-pref \
978 | --program-pre | --program-pr | --program-p)
979 ac_prev=program_prefix ;;
980 -program-prefix=* | --program-prefix=* | --program-prefi=* \
981 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
982 program_prefix=$ac_optarg ;;
984 -program-suffix | --program-suffix | --program-suffi | --program-suff \
985 | --program-suf | --program-su | --program-s)
986 ac_prev=program_suffix ;;
987 -program-suffix=* | --program-suffix=* | --program-suffi=* \
988 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
989 program_suffix=$ac_optarg ;;
991 -program-transform-name | --program-transform-name \
992 | --program-transform-nam | --program-transform-na \
993 | --program-transform-n | --program-transform- \
994 | --program-transform | --program-transfor \
995 | --program-transfo | --program-transf \
996 | --program-trans | --program-tran \
997 | --progr-tra | --program-tr | --program-t)
998 ac_prev=program_transform_name ;;
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 program_transform_name=$ac_optarg ;;
1008 -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1009 ac_prev=pdfdir ;;
1010 -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1011 pdfdir=$ac_optarg ;;
1013 -psdir | --psdir | --psdi | --psd | --ps)
1014 ac_prev=psdir ;;
1015 -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1016 psdir=$ac_optarg ;;
1018 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1019 | -silent | --silent | --silen | --sile | --sil)
1020 silent=yes ;;
1022 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1023 ac_prev=sbindir ;;
1024 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1025 | --sbi=* | --sb=*)
1026 sbindir=$ac_optarg ;;
1028 -sharedstatedir | --sharedstatedir | --sharedstatedi \
1029 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1030 | --sharedst | --shareds | --shared | --share | --shar \
1031 | --sha | --sh)
1032 ac_prev=sharedstatedir ;;
1033 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1034 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1035 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1036 | --sha=* | --sh=*)
1037 sharedstatedir=$ac_optarg ;;
1039 -site | --site | --sit)
1040 ac_prev=site ;;
1041 -site=* | --site=* | --sit=*)
1042 site=$ac_optarg ;;
1044 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1045 ac_prev=srcdir ;;
1046 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1047 srcdir=$ac_optarg ;;
1049 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1050 | --syscon | --sysco | --sysc | --sys | --sy)
1051 ac_prev=sysconfdir ;;
1052 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1053 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1054 sysconfdir=$ac_optarg ;;
1056 -target | --target | --targe | --targ | --tar | --ta | --t)
1057 ac_prev=target_alias ;;
1058 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1059 target_alias=$ac_optarg ;;
1061 -v | -verbose | --verbose | --verbos | --verbo | --verb)
1062 verbose=yes ;;
1064 -version | --version | --versio | --versi | --vers | -V)
1065 ac_init_version=: ;;
1067 -with-* | --with-*)
1068 ac_package=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1069 # Reject names that are not valid shell variable names.
1070 expr "x$ac_package" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1071 { echo "$as_me: error: invalid package name: $ac_package" >&2
1072 { (exit 1); exit 1; }; }
1073 ac_package=`echo $ac_package | sed 's/[-.]/_/g'`
1074 eval with_$ac_package=\$ac_optarg ;;
1076 -without-* | --without-*)
1077 ac_package=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1078 # Reject names that are not valid shell variable names.
1079 expr "x$ac_package" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1080 { echo "$as_me: error: invalid package name: $ac_package" >&2
1081 { (exit 1); exit 1; }; }
1082 ac_package=`echo $ac_package | sed 's/[-.]/_/g'`
1083 eval with_$ac_package=no ;;
1085 --x)
1086 # Obsolete; use --with-x.
1087 with_x=yes ;;
1089 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1090 | --x-incl | --x-inc | --x-in | --x-i)
1091 ac_prev=x_includes ;;
1092 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1093 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1094 x_includes=$ac_optarg ;;
1096 -x-libraries | --x-libraries | --x-librarie | --x-librari \
1097 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1098 ac_prev=x_libraries ;;
1099 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1100 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1101 x_libraries=$ac_optarg ;;
1103 -*) { echo "$as_me: error: unrecognized option: $ac_option
1104 Try \`$0 --help' for more information." >&2
1105 { (exit 1); exit 1; }; }
1108 *=*)
1109 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1110 # Reject names that are not valid shell variable names.
1111 expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev/null &&
1112 { echo "$as_me: error: invalid variable name: $ac_envvar" >&2
1113 { (exit 1); exit 1; }; }
1114 eval $ac_envvar=\$ac_optarg
1115 export $ac_envvar ;;
1118 # FIXME: should be removed in autoconf 3.0.
1119 echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1120 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1121 echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1122 : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
1125 esac
1126 done
1128 if test -n "$ac_prev"; then
1129 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1130 { echo "$as_me: error: missing argument to $ac_option" >&2
1131 { (exit 1); exit 1; }; }
1134 # Be sure to have absolute directory names.
1135 for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \
1136 datadir sysconfdir sharedstatedir localstatedir includedir \
1137 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1138 libdir localedir mandir
1140 eval ac_val=\$$ac_var
1141 case $ac_val in
1142 [\\/$]* | ?:[\\/]* ) continue;;
1143 NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1144 esac
1145 { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
1146 { (exit 1); exit 1; }; }
1147 done
1149 # There might be people who depend on the old broken behavior: `$host'
1150 # used to hold the argument of --host etc.
1151 # FIXME: To remove some day.
1152 build=$build_alias
1153 host=$host_alias
1154 target=$target_alias
1156 # FIXME: To remove some day.
1157 if test "x$host_alias" != x; then
1158 if test "x$build_alias" = x; then
1159 cross_compiling=maybe
1160 echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
1161 If a cross compiler is detected then cross compile mode will be used." >&2
1162 elif test "x$build_alias" != "x$host_alias"; then
1163 cross_compiling=yes
1167 ac_tool_prefix=
1168 test -n "$host_alias" && ac_tool_prefix=$host_alias-
1170 test "$silent" = yes && exec 6>/dev/null
1173 ac_pwd=`pwd` && test -n "$ac_pwd" &&
1174 ac_ls_di=`ls -di .` &&
1175 ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1176 { echo "$as_me: error: Working directory cannot be determined" >&2
1177 { (exit 1); exit 1; }; }
1178 test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1179 { echo "$as_me: error: pwd does not report name of working directory" >&2
1180 { (exit 1); exit 1; }; }
1183 # Find the source files, if location was not specified.
1184 if test -z "$srcdir"; then
1185 ac_srcdir_defaulted=yes
1186 # Try the directory containing this script, then the parent directory.
1187 ac_confdir=`$as_dirname -- "$0" ||
1188 $as_expr X"$0" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1189 X"$0" : 'X\(//\)[^/]' \| \
1190 X"$0" : 'X\(//\)$' \| \
1191 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
1192 echo X"$0" |
1193 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1194 s//\1/
1197 /^X\(\/\/\)[^/].*/{
1198 s//\1/
1201 /^X\(\/\/\)$/{
1202 s//\1/
1205 /^X\(\/\).*/{
1206 s//\1/
1209 s/.*/./; q'`
1210 srcdir=$ac_confdir
1211 if test ! -r "$srcdir/$ac_unique_file"; then
1212 srcdir=..
1214 else
1215 ac_srcdir_defaulted=no
1217 if test ! -r "$srcdir/$ac_unique_file"; then
1218 test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1219 { echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2
1220 { (exit 1); exit 1; }; }
1222 ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1223 ac_abs_confdir=`(
1224 cd "$srcdir" && test -r "./$ac_unique_file" || { echo "$as_me: error: $ac_msg" >&2
1225 { (exit 1); exit 1; }; }
1226 pwd)`
1227 # When building in place, set srcdir=.
1228 if test "$ac_abs_confdir" = "$ac_pwd"; then
1229 srcdir=.
1231 # Remove unnecessary trailing slashes from srcdir.
1232 # Double slashes in file names in object file debugging info
1233 # mess up M-x gdb in Emacs.
1234 case $srcdir in
1235 */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1236 esac
1237 for ac_var in $ac_precious_vars; do
1238 eval ac_env_${ac_var}_set=\${${ac_var}+set}
1239 eval ac_env_${ac_var}_value=\$${ac_var}
1240 eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1241 eval ac_cv_env_${ac_var}_value=\$${ac_var}
1242 done
1245 # Report the --help message.
1247 if test "$ac_init_help" = "long"; then
1248 # Omit some internal or obsolete options to make the list less imposing.
1249 # This message is too long to be a string in the A/UX 3.1 sh.
1250 cat <<_ACEOF
1251 \`configure' configures emacs 23.0.60 to adapt to many kinds of systems.
1253 Usage: $0 [OPTION]... [VAR=VALUE]...
1255 To assign environment variables (e.g., CC, CFLAGS...), specify them as
1256 VAR=VALUE. See below for descriptions of some of the useful variables.
1258 Defaults for the options are specified in brackets.
1260 Configuration:
1261 -h, --help display this help and exit
1262 --help=short display options specific to this package
1263 --help=recursive display the short help of all the included packages
1264 -V, --version display version information and exit
1265 -q, --quiet, --silent do not print \`checking...' messages
1266 --cache-file=FILE cache test results in FILE [disabled]
1267 -C, --config-cache alias for \`--cache-file=config.cache'
1268 -n, --no-create do not create output files
1269 --srcdir=DIR find the sources in DIR [configure dir or \`..']
1271 Installation directories:
1272 --prefix=PREFIX install architecture-independent files in PREFIX
1273 [$ac_default_prefix]
1274 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
1275 [PREFIX]
1277 By default, \`make install' will install all the files in
1278 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
1279 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1280 for instance \`--prefix=\$HOME'.
1282 For better control, use the options below.
1284 Fine tuning of the installation directories:
1285 --bindir=DIR user executables [EPREFIX/bin]
1286 --sbindir=DIR system admin executables [EPREFIX/sbin]
1287 --libexecdir=DIR program executables [EPREFIX/libexec]
1288 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
1289 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
1290 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
1291 --libdir=DIR object code libraries [EPREFIX/lib]
1292 --includedir=DIR C header files [PREFIX/include]
1293 --oldincludedir=DIR C header files for non-gcc [/usr/include]
1294 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
1295 --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
1296 --infodir=DIR info documentation [DATAROOTDIR/info]
1297 --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
1298 --mandir=DIR man documentation [DATAROOTDIR/man]
1299 --docdir=DIR documentation root [DATAROOTDIR/doc/emacs]
1300 --htmldir=DIR html documentation [DOCDIR]
1301 --dvidir=DIR dvi documentation [DOCDIR]
1302 --pdfdir=DIR pdf documentation [DOCDIR]
1303 --psdir=DIR ps documentation [DOCDIR]
1304 _ACEOF
1306 cat <<\_ACEOF
1308 Program names:
1309 --program-prefix=PREFIX prepend PREFIX to installed program names
1310 --program-suffix=SUFFIX append SUFFIX to installed program names
1311 --program-transform-name=PROGRAM run sed PROGRAM on installed program names
1313 X features:
1314 --x-includes=DIR X include files are in DIR
1315 --x-libraries=DIR X library files are in DIR
1317 System types:
1318 --build=BUILD configure for building on BUILD [guessed]
1319 --host=HOST cross-compile to build programs to run on HOST [BUILD]
1320 _ACEOF
1323 if test -n "$ac_init_help"; then
1324 case $ac_init_help in
1325 short | recursive ) echo "Configuration of emacs 23.0.60:";;
1326 esac
1327 cat <<\_ACEOF
1329 Optional Features:
1330 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
1331 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
1332 --enable-carbon-app[=DIR]
1333 specify install directory for Emacs.app on Mac OS X
1334 [DIR=/Application]
1335 --disable-font-backend don't compile font-backend support
1336 --enable-asserts compile code with asserts enabled
1337 --enable-maintainer-mode
1338 enable make rules and dependencies not useful (and
1339 sometimes confusing) to the casual installer
1340 --enable-locallisppath=PATH
1341 directories Emacs should search for lisp files
1342 specific to this site
1343 --disable-largefile omit support for large files
1345 Optional Packages:
1346 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
1347 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
1348 --without-pop don't support POP mail retrieval with movemail
1349 --with-kerberos support Kerberos-authenticated POP
1350 --with-kerberos5 support Kerberos version 5 authenticated POP
1351 --with-hesiod support Hesiod to get the POP server host
1352 --without-sound don't compile with sound support
1353 --without-sync-input Process async input synchronously
1354 --with-x-toolkit=KIT use an X toolkit (KIT one of: yes, lucid, athena,
1355 motif, gtk, no)
1356 --without-xpm don't compile with XPM image support
1357 --without-jpeg don't compile with JPEG image support
1358 --without-tiff don't compile with TIFF image support
1359 --without-gif don't compile with GIF image support
1360 --without-png don't compile with PNG image support
1361 --without-rsvg don't compile with SVG image support
1362 --without-freetype don't use Freetype for local font support
1363 --without-xft don't use XFT for anti aliased fonts
1364 --without-libotf don't use libotf for OpenType font support
1365 --without-m17n-flt don't use m17n-flt for text shaping
1366 --without-toolkit-scroll-bars
1367 don't use Motif or Xaw3d scroll bars
1368 --without-xaw3d don't use Xaw3d
1369 --without-xim don't use X11 XIM
1370 --with-carbon use Carbon GUI on Mac OS X. This is unsupported!
1371 --without-gpm don't use -lgpm for mouse support on a GNU/Linux
1372 console
1373 --without-dbus don't compile with D-Bus support
1375 --with-pkg-config-prog=PATH
1376 Path to pkg-config for finding GTK and librsvg
1377 --with-x use the X Window System
1379 Some influential environment variables:
1380 CC C compiler command
1381 CFLAGS C compiler flags
1382 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
1383 nonstandard directory <lib dir>
1384 LIBS libraries to pass to the linker, e.g. -l<library>
1385 CPPFLAGS C/C++/Objective C preprocessor flags, e.g. -I<include dir> if
1386 you have headers in a nonstandard directory <include dir>
1387 CPP C preprocessor
1388 XMKMF Path to xmkmf, Makefile generator for X Window System
1390 Use these variables to override the choices made by `configure' or to help
1391 it to find libraries and programs with nonstandard names/locations.
1393 _ACEOF
1394 ac_status=$?
1397 if test "$ac_init_help" = "recursive"; then
1398 # If there are subdirs, report their specific --help.
1399 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1400 test -d "$ac_dir" || continue
1401 ac_builddir=.
1403 case "$ac_dir" in
1404 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1406 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
1407 # A ".." for each directory in $ac_dir_suffix.
1408 ac_top_builddir_sub=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'`
1409 case $ac_top_builddir_sub in
1410 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1411 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1412 esac ;;
1413 esac
1414 ac_abs_top_builddir=$ac_pwd
1415 ac_abs_builddir=$ac_pwd$ac_dir_suffix
1416 # for backward compatibility:
1417 ac_top_builddir=$ac_top_build_prefix
1419 case $srcdir in
1420 .) # We are building in place.
1421 ac_srcdir=.
1422 ac_top_srcdir=$ac_top_builddir_sub
1423 ac_abs_top_srcdir=$ac_pwd ;;
1424 [\\/]* | ?:[\\/]* ) # Absolute name.
1425 ac_srcdir=$srcdir$ac_dir_suffix;
1426 ac_top_srcdir=$srcdir
1427 ac_abs_top_srcdir=$srcdir ;;
1428 *) # Relative name.
1429 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1430 ac_top_srcdir=$ac_top_build_prefix$srcdir
1431 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1432 esac
1433 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1435 cd "$ac_dir" || { ac_status=$?; continue; }
1436 # Check for guested configure.
1437 if test -f "$ac_srcdir/configure.gnu"; then
1438 echo &&
1439 $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1440 elif test -f "$ac_srcdir/configure"; then
1441 echo &&
1442 $SHELL "$ac_srcdir/configure" --help=recursive
1443 else
1444 echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1445 fi || ac_status=$?
1446 cd "$ac_pwd" || { ac_status=$?; break; }
1447 done
1450 test -n "$ac_init_help" && exit $ac_status
1451 if $ac_init_version; then
1452 cat <<\_ACEOF
1453 emacs configure 23.0.60
1454 generated by GNU Autoconf 2.61
1456 Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
1457 2002, 2003, 2004, 2005, 2006 Free Software Foundation, Inc.
1458 This configure script is free software; the Free Software Foundation
1459 gives unlimited permission to copy, distribute and modify it.
1460 _ACEOF
1461 exit
1463 cat >config.log <<_ACEOF
1464 This file contains any messages produced by compilers while
1465 running configure, to aid debugging if configure makes a mistake.
1467 It was created by emacs $as_me 23.0.60, which was
1468 generated by GNU Autoconf 2.61. Invocation command line was
1470 $ $0 $@
1472 _ACEOF
1473 exec 5>>config.log
1475 cat <<_ASUNAME
1476 ## --------- ##
1477 ## Platform. ##
1478 ## --------- ##
1480 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1481 uname -m = `(uname -m) 2>/dev/null || echo unknown`
1482 uname -r = `(uname -r) 2>/dev/null || echo unknown`
1483 uname -s = `(uname -s) 2>/dev/null || echo unknown`
1484 uname -v = `(uname -v) 2>/dev/null || echo unknown`
1486 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1487 /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
1489 /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
1490 /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
1491 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1492 /usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
1493 /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
1494 /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
1495 /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
1497 _ASUNAME
1499 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1500 for as_dir in $PATH
1502 IFS=$as_save_IFS
1503 test -z "$as_dir" && as_dir=.
1504 echo "PATH: $as_dir"
1505 done
1506 IFS=$as_save_IFS
1508 } >&5
1510 cat >&5 <<_ACEOF
1513 ## ----------- ##
1514 ## Core tests. ##
1515 ## ----------- ##
1517 _ACEOF
1520 # Keep a trace of the command line.
1521 # Strip out --no-create and --no-recursion so they do not pile up.
1522 # Strip out --silent because we don't want to record it for future runs.
1523 # Also quote any args containing shell meta-characters.
1524 # Make two passes to allow for proper duplicate-argument suppression.
1525 ac_configure_args=
1526 ac_configure_args0=
1527 ac_configure_args1=
1528 ac_must_keep_next=false
1529 for ac_pass in 1 2
1531 for ac_arg
1533 case $ac_arg in
1534 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1535 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1536 | -silent | --silent | --silen | --sile | --sil)
1537 continue ;;
1538 *\'*)
1539 ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1540 esac
1541 case $ac_pass in
1542 1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;;
1544 ac_configure_args1="$ac_configure_args1 '$ac_arg'"
1545 if test $ac_must_keep_next = true; then
1546 ac_must_keep_next=false # Got value, back to normal.
1547 else
1548 case $ac_arg in
1549 *=* | --config-cache | -C | -disable-* | --disable-* \
1550 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1551 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1552 | -with-* | --with-* | -without-* | --without-* | --x)
1553 case "$ac_configure_args0 " in
1554 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1555 esac
1557 -* ) ac_must_keep_next=true ;;
1558 esac
1560 ac_configure_args="$ac_configure_args '$ac_arg'"
1562 esac
1563 done
1564 done
1565 $as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; }
1566 $as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; }
1568 # When interrupted or exit'd, cleanup temporary files, and complete
1569 # config.log. We remove comments because anyway the quotes in there
1570 # would cause problems or look ugly.
1571 # WARNING: Use '\'' to represent an apostrophe within the trap.
1572 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
1573 trap 'exit_status=$?
1574 # Save into config.log some information that might help in debugging.
1576 echo
1578 cat <<\_ASBOX
1579 ## ---------------- ##
1580 ## Cache variables. ##
1581 ## ---------------- ##
1582 _ASBOX
1583 echo
1584 # The following way of writing the cache mishandles newlines in values,
1586 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
1587 eval ac_val=\$$ac_var
1588 case $ac_val in #(
1589 *${as_nl}*)
1590 case $ac_var in #(
1591 *_cv_*) { echo "$as_me:$LINENO: WARNING: Cache variable $ac_var contains a newline." >&5
1592 echo "$as_me: WARNING: Cache variable $ac_var contains a newline." >&2;} ;;
1593 esac
1594 case $ac_var in #(
1595 _ | IFS | as_nl) ;; #(
1596 *) $as_unset $ac_var ;;
1597 esac ;;
1598 esac
1599 done
1600 (set) 2>&1 |
1601 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
1602 *${as_nl}ac_space=\ *)
1603 sed -n \
1604 "s/'\''/'\''\\\\'\'''\''/g;
1605 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
1606 ;; #(
1608 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
1610 esac |
1611 sort
1613 echo
1615 cat <<\_ASBOX
1616 ## ----------------- ##
1617 ## Output variables. ##
1618 ## ----------------- ##
1619 _ASBOX
1620 echo
1621 for ac_var in $ac_subst_vars
1623 eval ac_val=\$$ac_var
1624 case $ac_val in
1625 *\'\''*) ac_val=`echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1626 esac
1627 echo "$ac_var='\''$ac_val'\''"
1628 done | sort
1629 echo
1631 if test -n "$ac_subst_files"; then
1632 cat <<\_ASBOX
1633 ## ------------------- ##
1634 ## File substitutions. ##
1635 ## ------------------- ##
1636 _ASBOX
1637 echo
1638 for ac_var in $ac_subst_files
1640 eval ac_val=\$$ac_var
1641 case $ac_val in
1642 *\'\''*) ac_val=`echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1643 esac
1644 echo "$ac_var='\''$ac_val'\''"
1645 done | sort
1646 echo
1649 if test -s confdefs.h; then
1650 cat <<\_ASBOX
1651 ## ----------- ##
1652 ## confdefs.h. ##
1653 ## ----------- ##
1654 _ASBOX
1655 echo
1656 cat confdefs.h
1657 echo
1659 test "$ac_signal" != 0 &&
1660 echo "$as_me: caught signal $ac_signal"
1661 echo "$as_me: exit $exit_status"
1662 } >&5
1663 rm -f core *.core core.conftest.* &&
1664 rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
1665 exit $exit_status
1667 for ac_signal in 1 2 13 15; do
1668 trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
1669 done
1670 ac_signal=0
1672 # confdefs.h avoids OS command line length limits that DEFS can exceed.
1673 rm -f -r conftest* confdefs.h
1675 # Predefined preprocessor variables.
1677 cat >>confdefs.h <<_ACEOF
1678 #define PACKAGE_NAME "$PACKAGE_NAME"
1679 _ACEOF
1682 cat >>confdefs.h <<_ACEOF
1683 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
1684 _ACEOF
1687 cat >>confdefs.h <<_ACEOF
1688 #define PACKAGE_VERSION "$PACKAGE_VERSION"
1689 _ACEOF
1692 cat >>confdefs.h <<_ACEOF
1693 #define PACKAGE_STRING "$PACKAGE_STRING"
1694 _ACEOF
1697 cat >>confdefs.h <<_ACEOF
1698 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
1699 _ACEOF
1702 # Let the site file select an alternate cache file if it wants to.
1703 # Prefer explicitly selected file to automatically selected ones.
1704 if test -n "$CONFIG_SITE"; then
1705 set x "$CONFIG_SITE"
1706 elif test "x$prefix" != xNONE; then
1707 set x "$prefix/share/config.site" "$prefix/etc/config.site"
1708 else
1709 set x "$ac_default_prefix/share/config.site" \
1710 "$ac_default_prefix/etc/config.site"
1712 shift
1713 for ac_site_file
1715 if test -r "$ac_site_file"; then
1716 { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
1717 echo "$as_me: loading site script $ac_site_file" >&6;}
1718 sed 's/^/| /' "$ac_site_file" >&5
1719 . "$ac_site_file"
1721 done
1723 if test -r "$cache_file"; then
1724 # Some versions of bash will fail to source /dev/null (special
1725 # files actually), so we avoid doing that.
1726 if test -f "$cache_file"; then
1727 { echo "$as_me:$LINENO: loading cache $cache_file" >&5
1728 echo "$as_me: loading cache $cache_file" >&6;}
1729 case $cache_file in
1730 [\\/]* | ?:[\\/]* ) . "$cache_file";;
1731 *) . "./$cache_file";;
1732 esac
1734 else
1735 { echo "$as_me:$LINENO: creating cache $cache_file" >&5
1736 echo "$as_me: creating cache $cache_file" >&6;}
1737 >$cache_file
1740 ac_header_list="$ac_header_list sys/time.h"
1741 ac_header_list="$ac_header_list unistd.h"
1742 ac_func_list="$ac_func_list alarm"
1743 # Check that the precious variables saved in the cache have kept the same
1744 # value.
1745 ac_cache_corrupted=false
1746 for ac_var in $ac_precious_vars; do
1747 eval ac_old_set=\$ac_cv_env_${ac_var}_set
1748 eval ac_new_set=\$ac_env_${ac_var}_set
1749 eval ac_old_val=\$ac_cv_env_${ac_var}_value
1750 eval ac_new_val=\$ac_env_${ac_var}_value
1751 case $ac_old_set,$ac_new_set in
1752 set,)
1753 { echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
1754 echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
1755 ac_cache_corrupted=: ;;
1756 ,set)
1757 { echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5
1758 echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
1759 ac_cache_corrupted=: ;;
1760 ,);;
1762 if test "x$ac_old_val" != "x$ac_new_val"; then
1763 { echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
1764 echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
1765 { echo "$as_me:$LINENO: former value: $ac_old_val" >&5
1766 echo "$as_me: former value: $ac_old_val" >&2;}
1767 { echo "$as_me:$LINENO: current value: $ac_new_val" >&5
1768 echo "$as_me: current value: $ac_new_val" >&2;}
1769 ac_cache_corrupted=:
1770 fi;;
1771 esac
1772 # Pass precious variables to config.status.
1773 if test "$ac_new_set" = set; then
1774 case $ac_new_val in
1775 *\'*) ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
1776 *) ac_arg=$ac_var=$ac_new_val ;;
1777 esac
1778 case " $ac_configure_args " in
1779 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
1780 *) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
1781 esac
1783 done
1784 if $ac_cache_corrupted; then
1785 { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
1786 echo "$as_me: error: changes in the environment can compromise the build" >&2;}
1787 { { echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
1788 echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
1789 { (exit 1); exit 1; }; }
1816 ac_ext=c
1817 ac_cpp='$CPP $CPPFLAGS'
1818 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1819 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1820 ac_compiler_gnu=$ac_cv_c_compiler_gnu
1823 ac_config_headers="$ac_config_headers src/config.h:src/config.in"
1827 test "$program_prefix" != NONE &&
1828 program_transform_name="s&^&$program_prefix&;$program_transform_name"
1829 # Use a double $ so make ignores it.
1830 test "$program_suffix" != NONE &&
1831 program_transform_name="s&\$&$program_suffix&;$program_transform_name"
1832 # Double any \ or $. echo might interpret backslashes.
1833 # By default was `s,x,x', remove it if useless.
1834 cat <<\_ACEOF >conftest.sed
1835 s/[\\$]/&&/g;s/;s,x,x,$//
1836 _ACEOF
1837 program_transform_name=`echo $program_transform_name | sed -f conftest.sed`
1838 rm -f conftest.sed
1841 lispdir='${datadir}/emacs/${version}/lisp'
1842 locallisppath='${datadir}/emacs/${version}/site-lisp:'\
1843 '${datadir}/emacs/site-lisp'
1844 lisppath='${locallisppath}:${lispdir}:${datadir}/emacs/${version}/leim'
1845 etcdir='${datadir}/emacs/${version}/etc'
1846 archlibdir='${libexecdir}/emacs/${version}/${configuration}'
1847 docdir='${datadir}/emacs/${version}/etc'
1848 gamedir='${localstatedir}/games/emacs'
1850 gameuser=games
1855 # Check whether --with-pop was given.
1856 if test "${with_pop+set}" = set; then
1857 withval=$with_pop;
1858 else
1859 with_pop=yes
1862 if test "$with_pop" = yes; then
1863 cat >>confdefs.h <<\_ACEOF
1864 #define MAIL_USE_POP 1
1865 _ACEOF
1871 # Check whether --with-kerberos was given.
1872 if test "${with_kerberos+set}" = set; then
1873 withval=$with_kerberos;
1874 else
1875 with_kerberos=no
1878 if test "$with_kerberos" = yes; then
1879 cat >>confdefs.h <<\_ACEOF
1880 #define KERBEROS 1
1881 _ACEOF
1887 # Check whether --with-kerberos5 was given.
1888 if test "${with_kerberos5+set}" = set; then
1889 withval=$with_kerberos5;
1890 else
1891 with_kerberos5=no
1894 if test "${with_kerberos5}" = yes; then
1895 if test "${with_kerberos}" != yes; then
1896 with_kerberos=yes
1897 cat >>confdefs.h <<\_ACEOF
1898 #define KERBEROS 1
1899 _ACEOF
1903 cat >>confdefs.h <<\_ACEOF
1904 #define KERBEROS5 1
1905 _ACEOF
1910 # Check whether --with-hesiod was given.
1911 if test "${with_hesiod+set}" = set; then
1912 withval=$with_hesiod;
1913 else
1914 with_hesiod=no
1917 if test "$with_hesiod" = yes; then
1919 cat >>confdefs.h <<\_ACEOF
1920 #define HESIOD 1
1921 _ACEOF
1926 # Check whether --with-sound was given.
1927 if test "${with_sound+set}" = set; then
1928 withval=$with_sound;
1929 else
1930 with_sound=yes
1935 # Check whether --with-sync-input was given.
1936 if test "${with_sync_input+set}" = set; then
1937 withval=$with_sync_input;
1938 else
1939 with_sync_input=yes
1942 if test "$with_sync_input" = yes; then
1944 cat >>confdefs.h <<\_ACEOF
1945 #define SYNC_INPUT 1
1946 _ACEOF
1951 # Check whether --with-x-toolkit was given.
1952 if test "${with_x_toolkit+set}" = set; then
1953 withval=$with_x_toolkit; case "${withval}" in
1954 y | ye | yes ) val=gtk ;;
1955 n | no ) val=no ;;
1956 l | lu | luc | luci | lucid ) val=lucid ;;
1957 a | at | ath | athe | athen | athena ) val=athena ;;
1958 m | mo | mot | moti | motif ) val=motif ;;
1959 g | gt | gtk ) val=gtk ;;
1961 { { echo "$as_me:$LINENO: error: \`--with-x-toolkit=$withval' is invalid;
1962 this option's value should be \`yes', \`no', \`lucid', \`athena', \`motif' or \`gtk'.
1963 \`yes' and \`gtk' are synonyms. \`athena' and \`lucid' are synonyms." >&5
1964 echo "$as_me: error: \`--with-x-toolkit=$withval' is invalid;
1965 this option's value should be \`yes', \`no', \`lucid', \`athena', \`motif' or \`gtk'.
1966 \`yes' and \`gtk' are synonyms. \`athena' and \`lucid' are synonyms." >&2;}
1967 { (exit 1); exit 1; }; }
1969 esac
1970 with_x_toolkit=$val
1976 # Check whether --with-xpm was given.
1977 if test "${with_xpm+set}" = set; then
1978 withval=$with_xpm;
1979 else
1980 with_xpm=yes
1984 # Check whether --with-jpeg was given.
1985 if test "${with_jpeg+set}" = set; then
1986 withval=$with_jpeg;
1987 else
1988 with_jpeg=yes
1992 # Check whether --with-tiff was given.
1993 if test "${with_tiff+set}" = set; then
1994 withval=$with_tiff;
1995 else
1996 with_tiff=yes
2000 # Check whether --with-gif was given.
2001 if test "${with_gif+set}" = set; then
2002 withval=$with_gif;
2003 else
2004 with_gif=yes
2008 # Check whether --with-png was given.
2009 if test "${with_png+set}" = set; then
2010 withval=$with_png;
2011 else
2012 with_png=yes
2016 # Check whether --with-rsvg was given.
2017 if test "${with_rsvg+set}" = set; then
2018 withval=$with_rsvg;
2019 else
2020 with_rsvg=yes
2025 # Check whether --with-freetype was given.
2026 if test "${with_freetype+set}" = set; then
2027 withval=$with_freetype;
2028 else
2029 with_freetype=yes
2033 # Check whether --with-xft was given.
2034 if test "${with_xft+set}" = set; then
2035 withval=$with_xft;
2036 else
2037 with_xft=yes
2041 # Check whether --with-libotf was given.
2042 if test "${with_libotf+set}" = set; then
2043 withval=$with_libotf;
2044 else
2045 with_libotf=yes
2049 # Check whether --with-m17n-flt was given.
2050 if test "${with_m17n_flt+set}" = set; then
2051 withval=$with_m17n_flt;
2052 else
2053 with_m17n_flt=yes
2058 # Check whether --with-toolkit-scroll-bars was given.
2059 if test "${with_toolkit_scroll_bars+set}" = set; then
2060 withval=$with_toolkit_scroll_bars;
2061 else
2062 with_toolkit_scroll_bars=yes
2066 # Check whether --with-xaw3d was given.
2067 if test "${with_xaw3d+set}" = set; then
2068 withval=$with_xaw3d;
2069 else
2070 with_xaw3d=yes
2074 # Check whether --with-xim was given.
2075 if test "${with_xim+set}" = set; then
2076 withval=$with_xim;
2077 else
2078 with_xim=yes
2082 # Check whether --with-carbon was given.
2083 if test "${with_carbon+set}" = set; then
2084 withval=$with_carbon;
2085 else
2086 with_carbon=no
2091 # Check whether --with-gpm was given.
2092 if test "${with_gpm+set}" = set; then
2093 withval=$with_gpm;
2094 else
2095 with_gpm=yes
2099 # Check whether --with-dbus was given.
2100 if test "${with_dbus+set}" = set; then
2101 withval=$with_dbus;
2102 else
2103 with_dbus=yes
2108 # Check whether --with-gtk was given.
2109 if test "${with_gtk+set}" = set; then
2110 withval=$with_gtk; { { echo "$as_me:$LINENO: error: --with-gtk has been removed. Use --with-x-toolkit to
2111 specify a toolkit." >&5
2112 echo "$as_me: error: --with-gtk has been removed. Use --with-x-toolkit to
2113 specify a toolkit." >&2;}
2114 { (exit 1); exit 1; }; }
2119 # Check whether --with-gcc was given.
2120 if test "${with_gcc+set}" = set; then
2121 withval=$with_gcc; { { echo "$as_me:$LINENO: error: --with-gcc has been removed. Set the \`CC' environment
2122 variable to specify a compiler." >&5
2123 echo "$as_me: error: --with-gcc has been removed. Set the \`CC' environment
2124 variable to specify a compiler." >&2;}
2125 { (exit 1); exit 1; }; }
2130 # Check whether --with-pkg-config-prog was given.
2131 if test "${with_pkg_config_prog+set}" = set; then
2132 withval=$with_pkg_config_prog;
2135 if test "X${with_pkg_config_prog}" != X; then
2136 if test "${with_pkg_config_prog}" != yes; then
2137 PKG_CONFIG="${with_pkg_config_prog}"
2141 # Check whether --enable-carbon-app was given.
2142 if test "${enable_carbon_app+set}" = set; then
2143 enableval=$enable_carbon_app; carbon_appdir_x=${enableval}
2147 ## Enabled by default.
2148 # Check whether --enable-font-backend was given.
2149 if test "${enable_font_backend+set}" = set; then
2150 enableval=$enable_font_backend; USE_FONT_BACKEND=$enableval
2151 else
2152 USE_FONT_BACKEND=yes
2156 # Check whether --enable-asserts was given.
2157 if test "${enable_asserts+set}" = set; then
2158 enableval=$enable_asserts; USE_XASSERTS=$enableval
2159 else
2160 USE_XASSERTS=no
2164 # Check whether --enable-maintainer-mode was given.
2165 if test "${enable_maintainer_mode+set}" = set; then
2166 enableval=$enable_maintainer_mode; USE_MAINTAINER_MODE=$enableval
2167 else
2168 USE_MAINTAINER_MODE=no
2171 if test $USE_MAINTAINER_MODE = yes; then
2172 MAINT=
2173 else
2174 MAINT=#
2178 # Check whether --enable-locallisppath was given.
2179 if test "${enable_locallisppath+set}" = set; then
2180 enableval=$enable_locallisppath; if test "${enableval}" = "no"; then
2181 locallisppath=
2182 elif test "${enableval}" != "yes"; then
2183 locallisppath=${enableval}
2188 #### Make srcdir absolute, if it isn't already. It's important to
2189 #### avoid running the path through pwd unnecessarily, since pwd can
2190 #### give you automounter prefixes, which can go away. We do all this
2191 #### so Emacs can find its files when run uninstalled.
2192 ## Make sure CDPATH doesn't affect cd (in case PWD is relative).
2193 unset CDPATH
2194 case "${srcdir}" in
2195 /* ) ;;
2197 ## We may be able to use the $PWD environment variable to make this
2198 ## absolute. But sometimes PWD is inaccurate.
2199 ## Note: we used to use ${PWD} at the end instead of `pwd`,
2200 ## but that tested only for a well-formed and valid PWD,
2201 ## it did not object when PWD was well-formed and valid but just wrong.
2202 if test ".${PWD}" != "." && test ".`(cd ${PWD} ; sh -c pwd)`" = ".`pwd`" ;
2203 then
2204 srcdir="$PWD"
2205 else
2206 srcdir="`(cd ${srcdir}; pwd)`"
2209 * ) srcdir="`(cd ${srcdir}; pwd)`" ;;
2210 esac
2212 #### Check if the source directory already has a configured system in it.
2213 if test `pwd` != `(cd ${srcdir} && pwd)` \
2214 && test -f "${srcdir}/src/config.h" ; then
2215 { echo "$as_me:$LINENO: WARNING: The directory tree \`${srcdir}' is being used
2216 as a build directory right now; it has been configured in its own
2217 right. To configure in another directory as well, you MUST
2218 use GNU make. If you do not have GNU make, then you must
2219 now do \`make distclean' in ${srcdir},
2220 and then run $0 again." >&5
2221 echo "$as_me: WARNING: The directory tree \`${srcdir}' is being used
2222 as a build directory right now; it has been configured in its own
2223 right. To configure in another directory as well, you MUST
2224 use GNU make. If you do not have GNU make, then you must
2225 now do \`make distclean' in ${srcdir},
2226 and then run $0 again." >&2;}
2229 #### Given the configuration name, set machfile and opsysfile to the
2230 #### names of the m/*.h and s/*.h files we should use.
2232 ### Canonicalize the configuration name.
2234 ac_aux_dir=
2235 for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do
2236 if test -f "$ac_dir/install-sh"; then
2237 ac_aux_dir=$ac_dir
2238 ac_install_sh="$ac_aux_dir/install-sh -c"
2239 break
2240 elif test -f "$ac_dir/install.sh"; then
2241 ac_aux_dir=$ac_dir
2242 ac_install_sh="$ac_aux_dir/install.sh -c"
2243 break
2244 elif test -f "$ac_dir/shtool"; then
2245 ac_aux_dir=$ac_dir
2246 ac_install_sh="$ac_aux_dir/shtool install -c"
2247 break
2249 done
2250 if test -z "$ac_aux_dir"; then
2251 { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" >&5
2252 echo "$as_me: error: cannot find install-sh or install.sh in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" >&2;}
2253 { (exit 1); exit 1; }; }
2256 # These three variables are undocumented and unsupported,
2257 # and are intended to be withdrawn in a future Autoconf release.
2258 # They can cause serious problems if a builder's source tree is in a directory
2259 # whose full name contains unusual characters.
2260 ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
2261 ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
2262 ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var.
2265 # Make sure we can run config.sub.
2266 $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
2267 { { echo "$as_me:$LINENO: error: cannot run $SHELL $ac_aux_dir/config.sub" >&5
2268 echo "$as_me: error: cannot run $SHELL $ac_aux_dir/config.sub" >&2;}
2269 { (exit 1); exit 1; }; }
2271 { echo "$as_me:$LINENO: checking build system type" >&5
2272 echo $ECHO_N "checking build system type... $ECHO_C" >&6; }
2273 if test "${ac_cv_build+set}" = set; then
2274 echo $ECHO_N "(cached) $ECHO_C" >&6
2275 else
2276 ac_build_alias=$build_alias
2277 test "x$ac_build_alias" = x &&
2278 ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
2279 test "x$ac_build_alias" = x &&
2280 { { echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5
2281 echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
2282 { (exit 1); exit 1; }; }
2283 ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
2284 { { echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&5
2285 echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&2;}
2286 { (exit 1); exit 1; }; }
2289 { echo "$as_me:$LINENO: result: $ac_cv_build" >&5
2290 echo "${ECHO_T}$ac_cv_build" >&6; }
2291 case $ac_cv_build in
2292 *-*-*) ;;
2293 *) { { echo "$as_me:$LINENO: error: invalid value of canonical build" >&5
2294 echo "$as_me: error: invalid value of canonical build" >&2;}
2295 { (exit 1); exit 1; }; };;
2296 esac
2297 build=$ac_cv_build
2298 ac_save_IFS=$IFS; IFS='-'
2299 set x $ac_cv_build
2300 shift
2301 build_cpu=$1
2302 build_vendor=$2
2303 shift; shift
2304 # Remember, the first character of IFS is used to create $*,
2305 # except with old shells:
2306 build_os=$*
2307 IFS=$ac_save_IFS
2308 case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
2311 { echo "$as_me:$LINENO: checking host system type" >&5
2312 echo $ECHO_N "checking host system type... $ECHO_C" >&6; }
2313 if test "${ac_cv_host+set}" = set; then
2314 echo $ECHO_N "(cached) $ECHO_C" >&6
2315 else
2316 if test "x$host_alias" = x; then
2317 ac_cv_host=$ac_cv_build
2318 else
2319 ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
2320 { { echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&5
2321 echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&2;}
2322 { (exit 1); exit 1; }; }
2326 { echo "$as_me:$LINENO: result: $ac_cv_host" >&5
2327 echo "${ECHO_T}$ac_cv_host" >&6; }
2328 case $ac_cv_host in
2329 *-*-*) ;;
2330 *) { { echo "$as_me:$LINENO: error: invalid value of canonical host" >&5
2331 echo "$as_me: error: invalid value of canonical host" >&2;}
2332 { (exit 1); exit 1; }; };;
2333 esac
2334 host=$ac_cv_host
2335 ac_save_IFS=$IFS; IFS='-'
2336 set x $ac_cv_host
2337 shift
2338 host_cpu=$1
2339 host_vendor=$2
2340 shift; shift
2341 # Remember, the first character of IFS is used to create $*,
2342 # except with old shells:
2343 host_os=$*
2344 IFS=$ac_save_IFS
2345 case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
2348 canonical=$host
2349 configuration=${host_alias-${build_alias-$host}}
2353 ### If you add support for a new configuration, add code to this
2354 ### switch statement to recognize your configuration name and select
2355 ### the appropriate operating system and machine description files.
2357 ### You would hope that you could choose an m/*.h file pretty much
2358 ### based on the machine portion of the configuration name, and an s-
2359 ### file based on the operating system portion. However, it turns out
2360 ### that each m/*.h file is pretty manufacturer-specific - for
2361 ### example hp9000s300.h is a 68000 machine;
2362 ### mips.h, pmax.h are all MIPS
2363 ### machines. So we basically have to have a special case for each
2364 ### configuration name.
2366 ### As far as handling version numbers on operating systems is
2367 ### concerned, make sure things will fail in a fixable way. If
2368 ### /etc/MACHINES doesn't say anything about version numbers, be
2369 ### prepared to handle anything reasonably. If version numbers
2370 ### matter, be sure /etc/MACHINES says something about it.
2372 ### Eric Raymond says we should accept strings like "sysvr4" to mean
2373 ### "System V Release 4"; he writes, "The old convention encouraged
2374 ### confusion between `system' and `release' levels'."
2376 machine='' opsys='' unported=no
2377 case "${canonical}" in
2379 ## FreeBSD ports
2380 *-*-freebsd* )
2381 opsys=freebsd
2382 case "${canonical}" in
2383 alpha*-*-freebsd*) machine=alpha ;;
2384 arm*-*-freebsd*) machine=arm ;;
2385 ia64-*-freebsd*) machine=ia64 ;;
2386 sparc64-*-freebsd*) machine=sparc ;;
2387 powerpc-*-freebsd*) machine=macppc ;;
2388 i[3456]86-*-freebsd*) machine=intel386 ;;
2389 amd64-*-freebsd*|x86_64-*-freebsd*) machine=amdx86-64 ;;
2390 esac
2393 ## FreeBSD kernel + glibc based userland
2394 *-*-kfreebsd*gnu* )
2395 opsys=gnu-kfreebsd
2396 case "${canonical}" in
2397 alpha*-*-kfreebsd*) machine=alpha ;;
2398 ia64-*-kfreebsd*) machine=ia64 ;;
2399 sparc64-*-kfreebsd*) machine=sparc ;;
2400 powerpc-*-kfreebsd*) machine=macppc ;;
2401 i[3456]86-*-kfreebsd*) machine=intel386 ;;
2402 amd64-*-kfreebsd*|x86_64-*-kfreebsd*) machine=amdx86-64 ;;
2403 esac
2406 ## NetBSD ports
2407 *-*-netbsd* )
2408 opsys=netbsd
2409 if test -f /usr/lib/crti.o; then
2411 cat >>confdefs.h <<\_ACEOF
2412 #define HAVE_CRTIN
2413 _ACEOF
2417 case "${canonical}" in
2418 alpha*-*-netbsd*) machine=alpha ;;
2419 i[3456]86-*-netbsd*) machine=intel386 ;;
2420 m68k-*-netbsd*)
2421 # This is somewhat bogus.
2422 machine=hp9000s300 ;;
2423 mips-*-netbsd*) machine=pmax ;;
2424 mipsel-*-netbsd*) machine=pmax ;;
2425 mipseb-*-netbsd*) machine=pmax ;;
2426 powerpc-*-netbsd*) machine=macppc ;;
2427 sparc*-*-netbsd*) machine=sparc ;;
2428 vax-*-netbsd*) machine=vax ;;
2429 arm-*-netbsd*) machine=arm ;;
2430 x86_64-*-netbsd*) machine=amdx86-64 ;;
2431 hppa-*-netbsd*) machine=hp800 ;;
2432 esac
2435 ## OpenBSD ports
2436 *-*-openbsd* )
2437 opsys=openbsd
2438 case "${canonical}" in
2439 alpha*-*-openbsd*) machine=alpha ;;
2440 arm-*-openbsd*) machine=arm ;;
2441 hppa-*-openbsd*) machine=hp9000s300 ;;
2442 i386-*-openbsd*) machine=intel386 ;;
2443 m68k-*-openbsd*) machine=hp9000s300 ;;
2444 powerpc-*-openbsd*) machine=macppc ;;
2445 sparc*-*-openbsd*) machine=sparc ;;
2446 vax-*-openbsd*) machine=vax ;;
2447 x86_64-*-openbsd*) machine=amdx86-64 ;;
2448 esac
2451 ## LynxOS ports
2452 *-*-lynxos* )
2453 opsys=lynxos
2454 case "${canonical}" in
2455 i[3456]86-*-lynxos*) machine=intel386 ;;
2456 powerpc-*-lynxos*) machine=powerpc ;;
2457 esac
2460 ## BSDI ports
2461 *-*-bsdi* )
2462 opsys=bsdi
2463 case "${canonical}" in
2464 i[345]86-*-bsdi*) machine=intel386 ;;
2465 sparc-*-bsdi*) machine=sparc ;;
2466 powerpc-*-bsdi*) machine=macppc ;;
2467 esac
2468 case "${canonical}" in
2469 *-*-bsd386* | *-*-bsdi1* ) opsys=bsd386 ;;
2470 *-*-bsdi2.0* ) opsys=bsdos2 ;;
2471 *-*-bsdi2* ) opsys=bsdos2-1 ;;
2472 *-*-bsdi3* ) opsys=bsdos3 ;;
2473 *-*-bsdi[45]* ) opsys=bsdos4 ;;
2474 esac
2477 alpha*-*-linux-gnu* )
2478 machine=alpha opsys=gnu-linux
2481 arm*-*-linux-gnu* )
2482 machine=arm opsys=gnu-linux
2485 ## Apple Darwin / Mac OS X
2486 *-apple-darwin* )
2487 case "${canonical}" in
2488 i[3456]86-* ) machine=intel386 ;;
2489 powerpc-* ) machine=powermac ;;
2490 * ) unported=yes ;;
2491 esac
2492 opsys=darwin
2493 # Define CPP as follows to make autoconf work correctly.
2494 CPP="${CC-cc} -E -no-cpp-precomp"
2495 # Use fink packages if available.
2496 if test -d /sw/include && test -d /sw/lib; then
2497 GCC_TEST_OPTIONS="-I/sw/include -L/sw/lib"
2498 CPP="${CPP} ${GCC_TEST_OPTIONS}"
2499 NON_GCC_TEST_OPTIONS=${GCC_TEST_OPTIONS}
2503 ## Cubix QBx/386
2504 i[3456]86-cubix-sysv* )
2505 machine=intel386 opsys=usg5-3
2508 mips-dec-ultrix[0-3].* | mips-dec-ultrix4.0* | mips-dec-bsd4.2* )
2509 machine=pmax opsys=bsd4-2
2511 mips-dec-ultrix4.[12]* | mips-dec-bsd* )
2512 machine=pmax opsys=bsd4-3
2514 mips-dec-ultrix* )
2515 machine=pmax opsys=ultrix4-3
2517 ## HP 9000 series 200 or 300
2518 m68*-hp-bsd* )
2519 machine=hp9000s300 opsys=bsd4-3
2521 ## HP/UX 7, 8, 9, and 10 are supported on these machines.
2522 m68*-hp-hpux* )
2523 case "`uname -r`" in
2524 ## Someone's system reports A.B8.05 for this.
2525 ## I wonder what other possibilities there are.
2526 *.B8.* ) machine=hp9000s300 opsys=hpux8 ;;
2527 *.08.* ) machine=hp9000s300 opsys=hpux8 ;;
2528 *.09.* ) machine=hp9000s300 opsys=hpux9 ;;
2529 *.1[0-9].* ) machine=hp9000s300 opsys=hpux9shr ;;
2530 *) machine=hp9000s300 opsys=hpux ;;
2531 esac
2534 ## HP 9000 series 700 and 800, running HP/UX
2535 hppa*-hp-hpux7* )
2536 machine=hp800 opsys=hpux
2538 hppa*-hp-hpux8* )
2539 machine=hp800 opsys=hpux8
2541 hppa*-hp-hpux9shr* )
2542 machine=hp800 opsys=hpux9shr
2544 hppa*-hp-hpux9* )
2545 machine=hp800 opsys=hpux9
2547 hppa*-hp-hpux10.2* )
2548 machine=hp800 opsys=hpux10-20
2550 hppa*-hp-hpux10* )
2551 machine=hp800 opsys=hpux10
2553 hppa*-hp-hpux1[1-9]* )
2554 machine=hp800 opsys=hpux11
2555 CFLAGS="-D_INCLUDE__STDC_A1_SOURCE $CFLAGS"
2558 hppa*-*-linux-gnu* )
2559 machine=hp800 opsys=gnu-linux
2562 ## HP 9000 series 700 and 800, running HP/UX
2563 hppa*-hp-hpux* )
2564 ## Cross-compilation? Nah!
2565 case "`uname -r`" in
2566 ## Someone's system reports A.B8.05 for this.
2567 ## I wonder what other possibilities there are.
2568 *.B8.* ) machine=hp800 opsys=hpux8 ;;
2569 *.08.* ) machine=hp800 opsys=hpux8 ;;
2570 *.09.* ) machine=hp800 opsys=hpux9 ;;
2571 *) machine=hp800 opsys=hpux10 ;;
2572 esac
2574 hppa*-*-nextstep* )
2575 machine=hp800 opsys=nextstep
2578 ## IBM machines
2579 i370-ibm-aix*)
2580 machine=ibm370aix opsys=usg5-3
2582 s390-*-linux-gnu* )
2583 machine=ibms390 opsys=gnu-linux
2585 s390x-*-linux-gnu* )
2586 machine=ibms390x opsys=gnu-linux
2588 rs6000-ibm-aix3.1* | powerpc-ibm-aix3.1* )
2589 machine=ibmrs6000 opsys=aix3-1
2591 rs6000-ibm-aix3.2.5 | powerpc-ibm-aix3.2.5 )
2592 machine=ibmrs6000 opsys=aix3-2-5
2594 rs6000-ibm-aix4.1* | powerpc-ibm-aix4.1* )
2595 machine=ibmrs6000 opsys=aix4-1
2597 rs6000-ibm-aix4.2* | powerpc-ibm-aix4.2* )
2598 machine=ibmrs6000 opsys=aix4-2
2600 rs6000-ibm-aix4.3* | powerpc-ibm-aix4.3* )
2601 machine=ibmrs6000 opsys=aix4-2
2603 rs6000-ibm-aix5* | powerpc-ibm-aix5* )
2604 machine=ibmrs6000 opsys=aix4-2
2606 rs6000-ibm-aix5* | powerpc-ibm-aix6* )
2607 machine=ibmrs6000 opsys=aix4-2
2609 rs6000-ibm-aix4.0* | powerpc-ibm-aix4.0* )
2610 machine=ibmrs6000 opsys=aix4
2612 rs6000-ibm-aix4* | powerpc-ibm-aix4* )
2613 machine=ibmrs6000 opsys=aix4-1
2615 rs6000-ibm-aix* | powerpc-ibm-aix* )
2616 machine=ibmrs6000 opsys=aix3-2
2619 ## Prime EXL
2620 i[3456]86-prime-sysv* )
2621 machine=i386 opsys=usg5-3
2624 ## ncr machine running svr4.3.
2625 i[3456]86-ncr-sysv4.3 )
2626 machine=ncr386 opsys=usg5-4-3
2629 ## Unspecified sysv on an ncr machine defaults to svr4.2.
2630 ## (Plain usg5-4 doesn't turn on POSIX signals, which we need.)
2631 i[3456]86-ncr-sysv* )
2632 machine=ncr386 opsys=usg5-4-2
2635 ## Macintosh PowerPC
2636 powerpc*-*-linux-gnu* )
2637 machine=macppc opsys=gnu-linux
2640 ## Workstations sold by MIPS
2641 ## This is not necessarily all workstations using the MIPS processor -
2642 ## Irises are produced by SGI, and DECstations by DEC.
2644 mips-mips-bsd* )
2645 machine=mips opsys=bsd4-3
2647 mips-mips-* )
2648 machine=mips opsys=usg5-2-2
2651 ## NeXT
2652 m68*-next-* | m68k-*-nextstep* )
2653 machine=m68k opsys=nextstep
2656 ## NEC EWS4800
2657 mips-nec-sysv4*)
2658 machine=ews4800 opsys=ux4800
2661 ## Siemens Nixdorf
2662 mips-siemens-sysv* | mips-sni-sysv*)
2663 machine=mips-siemens opsys=usg5-4
2664 NON_GNU_CC=/usr/ccs/bin/cc
2665 NON_GNU_CPP=/usr/ccs/lib/cpp
2668 ## Silicon Graphics machines
2669 ## Iris 4D
2670 mips-sgi-irix6.5 )
2671 machine=iris4d opsys=irix6-5
2672 # Without defining _LANGUAGE_C, things get masked out in the headers
2673 # so that, for instance, grepping for `free' in stdlib.h fails and
2674 # AC_HEADER_STD_C fails. (MIPSPro 7.2.1.2m compilers, Irix 6.5.3m).
2675 NON_GNU_CPP="/lib/cpp -D_LANGUAGE_C"
2676 NON_GCC_TEST_OPTIONS="-D_LANGUAGE_C"
2679 ## Suns
2680 sparc-*-linux-gnu* | sparc64-*-linux-gnu* )
2681 machine=sparc opsys=gnu-linux
2684 *-auspex-sunos* | *-sun-sunos* | *-sun-bsd* | *-sun-solaris* \
2685 | i[3456]86-*-solaris2* | i[3456]86-*-sunos5* | powerpc*-*-solaris2* \
2686 | rs6000-*-solaris2*)
2687 case "${canonical}" in
2688 i[3456]86-*-* ) machine=intel386 ;;
2689 amd64-*-*|x86_64-*-*) machine=amdx86-64 ;;
2690 powerpcle* ) machine=powerpcle ;;
2691 powerpc* | rs6000* ) machine=ibmrs6000 ;;
2692 sparc* ) machine=sparc ;;
2693 * ) unported=yes ;;
2694 esac
2695 case "${canonical}" in
2696 *-sunos5.3* | *-solaris2.3* )
2697 opsys=sol2-3
2698 NON_GNU_CPP=/usr/ccs/lib/cpp
2700 *-sunos5.4* | *-solaris2.4* )
2701 opsys=sol2-4
2702 NON_GNU_CPP=/usr/ccs/lib/cpp
2703 RANLIB="ar -ts"
2705 *-sunos5.5* | *-solaris2.5* )
2706 opsys=sol2-5
2707 NON_GNU_CPP=/usr/ccs/lib/cpp
2708 RANLIB="ar -ts"
2710 *-sunos5.6* | *-solaris2.6* )
2711 opsys=sol2-6
2712 NON_GNU_CPP=/usr/ccs/lib/cpp
2713 RANLIB="ar -ts"
2715 *-sunos5* | *-solaris* )
2716 opsys=sol2-6
2717 emacs_check_sunpro_c=yes
2718 NON_GNU_CPP=/usr/ccs/lib/cpp
2720 * ) opsys=bsd4-2 ;;
2721 esac
2722 ## Watch out for a compiler that we know will not work.
2723 case "${canonical}" in
2724 *-solaris* | *-sunos5* )
2725 if [ "x$CC" = x/usr/ucb/cc ]; then
2726 ## /usr/ucb/cc doesn't work;
2727 ## we should find some other compiler that does work.
2728 unset CC
2731 *) ;;
2732 esac
2734 sparc-*-nextstep* )
2735 machine=sparc opsys=nextstep
2738 ## Tandem Integrity S2
2739 mips-tandem-sysv* )
2740 machine=tandem-s2 opsys=usg5-3
2743 ## Vaxen.
2744 vax-dec-* )
2745 machine=vax
2746 case "${canonical}" in
2747 *-bsd4.1* ) opsys=bsd4-1 ;;
2748 *-bsd4.2* | *-ultrix[0-3].* | *-ultrix4.0* ) opsys=bsd4-2 ;;
2749 *-bsd4.3* | *-ultrix* ) opsys=bsd4-3 ;;
2750 *-sysv[01]* | *-sysvr[01]* ) opsys=usg5-0 ;;
2751 *-sysv2* | *-sysvr2* ) opsys=usg5-2 ;;
2752 *-vms* ) opsys=vms ;;
2753 * ) unported=yes
2754 esac
2757 ## IA-64
2758 ia64*-*-linux* )
2759 machine=ia64 opsys=gnu-linux
2762 ## Intel 386 machines where we don't care about the manufacturer
2763 i[3456]86-*-* )
2764 machine=intel386
2765 case "${canonical}" in
2766 *-cygwin ) opsys=cygwin ;;
2767 *-darwin* ) opsys=darwin
2768 CPP="${CC-cc} -E -no-cpp-precomp"
2770 *-linux-gnu* ) opsys=gnu-linux ;;
2771 *-sysv4.2uw* ) opsys=unixware; NON_GNU_CPP=/lib/cpp ;;
2772 *-sysv5uw* ) opsys=unixware; NON_GNU_CPP=/lib/cpp ;;
2773 *-sysv5OpenUNIX* ) opsys=unixware; NON_GNU_CPP=/lib/cpp ;;
2774 *-386bsd* ) opsys=386bsd ;;
2775 *-nextstep* ) opsys=nextstep ;;
2776 ## Otherwise, we'll fall through to the generic opsys code at the bottom.
2777 esac
2780 ## m68k Linux-based GNU system
2781 m68k-*-linux-gnu* )
2782 machine=m68k opsys=gnu-linux
2785 ## Mips Linux-based GNU system
2786 mips-*-linux-gnu* | mipsel-*-linux-gnu* )
2787 machine=mips opsys=gnu-linux
2790 ## UXP/DS
2791 sparc-fujitsu-sysv4* )
2792 machine=sparc opsys=uxpds
2793 NON_GNU_CPP=/usr/ccs/lib/cpp
2794 RANLIB="ar -ts"
2797 ## AMD x86-64 Linux-based GNU system
2798 x86_64-*-linux-gnu* )
2799 machine=amdx86-64 opsys=gnu-linux
2802 ## Tensilica Xtensa Linux-based GNU system
2803 xtensa*-*-linux-gnu* )
2804 machine=xtensa opsys=gnu-linux
2808 unported=yes
2810 esac
2812 ### If the code above didn't choose an operating system, just choose
2813 ### an operating system based on the configuration name. You really
2814 ### only want to use this when you have no idea what the right
2815 ### operating system is; if you know what operating systems a machine
2816 ### runs, it's cleaner to make it explicit in the case statement
2817 ### above.
2818 if test x"${opsys}" = x; then
2819 case "${canonical}" in
2820 *-gnu* ) opsys=gnu ;;
2821 *-bsd4.[01] ) opsys=bsd4-1 ;;
2822 *-bsd4.2 ) opsys=bsd4-2 ;;
2823 *-bsd4.3 ) opsys=bsd4-3 ;;
2824 *-sysv0 | *-sysvr0 ) opsys=usg5-0 ;;
2825 *-sysv2 | *-sysvr2 ) opsys=usg5-2 ;;
2826 *-sysv2.2 | *-sysvr2.2 ) opsys=usg5-2-2 ;;
2827 *-sysv3* | *-sysvr3* ) opsys=usg5-3 ;;
2828 *-sysv4.2uw* ) opsys=unixware ;;
2829 *-sysv5uw* ) opsys=unixware ;;
2830 *-sysv5OpenUNIX* ) opsys=unixware ;;
2831 *-sysv4.1* | *-sysvr4.1* )
2832 NON_GNU_CPP=/usr/lib/cpp
2833 opsys=usg5-4 ;;
2834 *-sysv4.[2-9]* | *-sysvr4.[2-9]* )
2835 if [ x$NON_GNU_CPP = x ]; then
2836 if [ -f /usr/ccs/lib/cpp ]; then
2837 NON_GNU_CPP=/usr/ccs/lib/cpp
2838 else
2839 NON_GNU_CPP=/lib/cpp
2842 opsys=usg5-4-2 ;;
2843 *-sysv4* | *-sysvr4* ) opsys=usg5-4 ;;
2845 unported=yes
2847 esac
2850 ### Tests for sytems that we beleive are obsolete and should be desupported.
2852 case "${machine}" in
2853 pmax | hp9000s300 | ibm370aix | ncr386 | ews4800 | mips-siemens | powerpcle | tandem-s2 )
2854 echo "The system that you are configuring on: ${canonical} is considered to be obsolete"
2855 echo "and it is planned to be desupported in the next version of Emacs"
2856 echo "Please email emacs-devel@gnu.org as soon as possible if this system is still in use."
2857 echo "The code is still functional, but you need to edit the 'configure' script and remove the"
2858 echo "exit 33 line. After that you can run configure again and 'complete' the build."
2859 exit 33
2861 esac
2863 case "${opsys}" in
2864 bsd386 | bsdos2-1 | bsdos2 | bsdos3 | bsdos4 | bsd4-1 | bsd4-2 | bsd4-3 | usg5-0 | usg5-2-2 | usg5-2 | usg5-3 | ultrix4-3 | 386bsd | hpux | hpux8 | hpux9 | hpux9shr | hpux10 | hpux10-20 | aix3-1 | aix3-2-5 | aix3-2 | aix4-1 | nextstep | ux4800 | uxpds | uxpv )
2865 echo "The system that you are configuring on: ${canonical} is considered to be obsolete"
2866 echo "and it is planned to be desupported in the next version of Emacs"
2867 echo "Please email emacs-devel@gnu.org as soon as possible if this system is still in use."
2868 echo "The code is still functional, but you need to edit the 'configure' script and remove the"
2869 echo "'exit 44' line. After that you can run 'configure' again and complete the build."
2870 exit 44
2872 esac
2876 if test $unported = yes; then
2877 { { echo "$as_me:$LINENO: error: Emacs hasn't been ported to \`${canonical}' systems.
2878 Check \`etc/MACHINES' for recognized configuration names." >&5
2879 echo "$as_me: error: Emacs hasn't been ported to \`${canonical}' systems.
2880 Check \`etc/MACHINES' for recognized configuration names." >&2;}
2881 { (exit 1); exit 1; }; }
2884 machfile="m/${machine}.h"
2885 opsysfile="s/${opsys}.h"
2888 #### Choose a compiler.
2889 test -n "$CC" && cc_specified=yes
2891 # Save the value of CFLAGS that the user specified.
2892 SPECIFIED_CFLAGS="$CFLAGS"
2894 ac_ext=c
2895 ac_cpp='$CPP $CPPFLAGS'
2896 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2897 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2898 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2899 if test -n "$ac_tool_prefix"; then
2900 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
2901 set dummy ${ac_tool_prefix}gcc; ac_word=$2
2902 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2903 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2904 if test "${ac_cv_prog_CC+set}" = set; then
2905 echo $ECHO_N "(cached) $ECHO_C" >&6
2906 else
2907 if test -n "$CC"; then
2908 ac_cv_prog_CC="$CC" # Let the user override the test.
2909 else
2910 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2911 for as_dir in $PATH
2913 IFS=$as_save_IFS
2914 test -z "$as_dir" && as_dir=.
2915 for ac_exec_ext in '' $ac_executable_extensions; do
2916 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2917 ac_cv_prog_CC="${ac_tool_prefix}gcc"
2918 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2919 break 2
2921 done
2922 done
2923 IFS=$as_save_IFS
2927 CC=$ac_cv_prog_CC
2928 if test -n "$CC"; then
2929 { echo "$as_me:$LINENO: result: $CC" >&5
2930 echo "${ECHO_T}$CC" >&6; }
2931 else
2932 { echo "$as_me:$LINENO: result: no" >&5
2933 echo "${ECHO_T}no" >&6; }
2938 if test -z "$ac_cv_prog_CC"; then
2939 ac_ct_CC=$CC
2940 # Extract the first word of "gcc", so it can be a program name with args.
2941 set dummy gcc; ac_word=$2
2942 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2943 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2944 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2945 echo $ECHO_N "(cached) $ECHO_C" >&6
2946 else
2947 if test -n "$ac_ct_CC"; then
2948 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2949 else
2950 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2951 for as_dir in $PATH
2953 IFS=$as_save_IFS
2954 test -z "$as_dir" && as_dir=.
2955 for ac_exec_ext in '' $ac_executable_extensions; do
2956 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2957 ac_cv_prog_ac_ct_CC="gcc"
2958 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2959 break 2
2961 done
2962 done
2963 IFS=$as_save_IFS
2967 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2968 if test -n "$ac_ct_CC"; then
2969 { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2970 echo "${ECHO_T}$ac_ct_CC" >&6; }
2971 else
2972 { echo "$as_me:$LINENO: result: no" >&5
2973 echo "${ECHO_T}no" >&6; }
2976 if test "x$ac_ct_CC" = x; then
2977 CC=""
2978 else
2979 case $cross_compiling:$ac_tool_warned in
2980 yes:)
2981 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
2982 whose name does not start with the host triplet. If you think this
2983 configuration is useful to you, please write to autoconf@gnu.org." >&5
2984 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
2985 whose name does not start with the host triplet. If you think this
2986 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
2987 ac_tool_warned=yes ;;
2988 esac
2989 CC=$ac_ct_CC
2991 else
2992 CC="$ac_cv_prog_CC"
2995 if test -z "$CC"; then
2996 if test -n "$ac_tool_prefix"; then
2997 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
2998 set dummy ${ac_tool_prefix}cc; ac_word=$2
2999 { echo "$as_me:$LINENO: checking for $ac_word" >&5
3000 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
3001 if test "${ac_cv_prog_CC+set}" = set; then
3002 echo $ECHO_N "(cached) $ECHO_C" >&6
3003 else
3004 if test -n "$CC"; then
3005 ac_cv_prog_CC="$CC" # Let the user override the test.
3006 else
3007 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3008 for as_dir in $PATH
3010 IFS=$as_save_IFS
3011 test -z "$as_dir" && as_dir=.
3012 for ac_exec_ext in '' $ac_executable_extensions; do
3013 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3014 ac_cv_prog_CC="${ac_tool_prefix}cc"
3015 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3016 break 2
3018 done
3019 done
3020 IFS=$as_save_IFS
3024 CC=$ac_cv_prog_CC
3025 if test -n "$CC"; then
3026 { echo "$as_me:$LINENO: result: $CC" >&5
3027 echo "${ECHO_T}$CC" >&6; }
3028 else
3029 { echo "$as_me:$LINENO: result: no" >&5
3030 echo "${ECHO_T}no" >&6; }
3036 if test -z "$CC"; then
3037 # Extract the first word of "cc", so it can be a program name with args.
3038 set dummy cc; ac_word=$2
3039 { echo "$as_me:$LINENO: checking for $ac_word" >&5
3040 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
3041 if test "${ac_cv_prog_CC+set}" = set; then
3042 echo $ECHO_N "(cached) $ECHO_C" >&6
3043 else
3044 if test -n "$CC"; then
3045 ac_cv_prog_CC="$CC" # Let the user override the test.
3046 else
3047 ac_prog_rejected=no
3048 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3049 for as_dir in $PATH
3051 IFS=$as_save_IFS
3052 test -z "$as_dir" && as_dir=.
3053 for ac_exec_ext in '' $ac_executable_extensions; do
3054 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3055 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
3056 ac_prog_rejected=yes
3057 continue
3059 ac_cv_prog_CC="cc"
3060 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3061 break 2
3063 done
3064 done
3065 IFS=$as_save_IFS
3067 if test $ac_prog_rejected = yes; then
3068 # We found a bogon in the path, so make sure we never use it.
3069 set dummy $ac_cv_prog_CC
3070 shift
3071 if test $# != 0; then
3072 # We chose a different compiler from the bogus one.
3073 # However, it has the same basename, so the bogon will be chosen
3074 # first if we set CC to just the basename; use the full file name.
3075 shift
3076 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
3081 CC=$ac_cv_prog_CC
3082 if test -n "$CC"; then
3083 { echo "$as_me:$LINENO: result: $CC" >&5
3084 echo "${ECHO_T}$CC" >&6; }
3085 else
3086 { echo "$as_me:$LINENO: result: no" >&5
3087 echo "${ECHO_T}no" >&6; }
3092 if test -z "$CC"; then
3093 if test -n "$ac_tool_prefix"; then
3094 for ac_prog in cl.exe
3096 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3097 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
3098 { echo "$as_me:$LINENO: checking for $ac_word" >&5
3099 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
3100 if test "${ac_cv_prog_CC+set}" = set; then
3101 echo $ECHO_N "(cached) $ECHO_C" >&6
3102 else
3103 if test -n "$CC"; then
3104 ac_cv_prog_CC="$CC" # Let the user override the test.
3105 else
3106 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3107 for as_dir in $PATH
3109 IFS=$as_save_IFS
3110 test -z "$as_dir" && as_dir=.
3111 for ac_exec_ext in '' $ac_executable_extensions; do
3112 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3113 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
3114 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3115 break 2
3117 done
3118 done
3119 IFS=$as_save_IFS
3123 CC=$ac_cv_prog_CC
3124 if test -n "$CC"; then
3125 { echo "$as_me:$LINENO: result: $CC" >&5
3126 echo "${ECHO_T}$CC" >&6; }
3127 else
3128 { echo "$as_me:$LINENO: result: no" >&5
3129 echo "${ECHO_T}no" >&6; }
3133 test -n "$CC" && break
3134 done
3136 if test -z "$CC"; then
3137 ac_ct_CC=$CC
3138 for ac_prog in cl.exe
3140 # Extract the first word of "$ac_prog", so it can be a program name with args.
3141 set dummy $ac_prog; ac_word=$2
3142 { echo "$as_me:$LINENO: checking for $ac_word" >&5
3143 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
3144 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
3145 echo $ECHO_N "(cached) $ECHO_C" >&6
3146 else
3147 if test -n "$ac_ct_CC"; then
3148 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3149 else
3150 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3151 for as_dir in $PATH
3153 IFS=$as_save_IFS
3154 test -z "$as_dir" && as_dir=.
3155 for ac_exec_ext in '' $ac_executable_extensions; do
3156 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3157 ac_cv_prog_ac_ct_CC="$ac_prog"
3158 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3159 break 2
3161 done
3162 done
3163 IFS=$as_save_IFS
3167 ac_ct_CC=$ac_cv_prog_ac_ct_CC
3168 if test -n "$ac_ct_CC"; then
3169 { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
3170 echo "${ECHO_T}$ac_ct_CC" >&6; }
3171 else
3172 { echo "$as_me:$LINENO: result: no" >&5
3173 echo "${ECHO_T}no" >&6; }
3177 test -n "$ac_ct_CC" && break
3178 done
3180 if test "x$ac_ct_CC" = x; then
3181 CC=""
3182 else
3183 case $cross_compiling:$ac_tool_warned in
3184 yes:)
3185 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
3186 whose name does not start with the host triplet. If you think this
3187 configuration is useful to you, please write to autoconf@gnu.org." >&5
3188 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
3189 whose name does not start with the host triplet. If you think this
3190 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
3191 ac_tool_warned=yes ;;
3192 esac
3193 CC=$ac_ct_CC
3200 test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
3201 See \`config.log' for more details." >&5
3202 echo "$as_me: error: no acceptable C compiler found in \$PATH
3203 See \`config.log' for more details." >&2;}
3204 { (exit 1); exit 1; }; }
3206 # Provide some information about the compiler.
3207 echo "$as_me:$LINENO: checking for C compiler version" >&5
3208 ac_compiler=`set X $ac_compile; echo $2`
3209 { (ac_try="$ac_compiler --version >&5"
3210 case "(($ac_try" in
3211 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3212 *) ac_try_echo=$ac_try;;
3213 esac
3214 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3215 (eval "$ac_compiler --version >&5") 2>&5
3216 ac_status=$?
3217 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3218 (exit $ac_status); }
3219 { (ac_try="$ac_compiler -v >&5"
3220 case "(($ac_try" in
3221 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3222 *) ac_try_echo=$ac_try;;
3223 esac
3224 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3225 (eval "$ac_compiler -v >&5") 2>&5
3226 ac_status=$?
3227 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3228 (exit $ac_status); }
3229 { (ac_try="$ac_compiler -V >&5"
3230 case "(($ac_try" in
3231 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3232 *) ac_try_echo=$ac_try;;
3233 esac
3234 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3235 (eval "$ac_compiler -V >&5") 2>&5
3236 ac_status=$?
3237 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3238 (exit $ac_status); }
3240 cat >conftest.$ac_ext <<_ACEOF
3241 /* confdefs.h. */
3242 _ACEOF
3243 cat confdefs.h >>conftest.$ac_ext
3244 cat >>conftest.$ac_ext <<_ACEOF
3245 /* end confdefs.h. */
3248 main ()
3252 return 0;
3254 _ACEOF
3255 ac_clean_files_save=$ac_clean_files
3256 ac_clean_files="$ac_clean_files a.out a.exe b.out"
3257 # Try to create an executable without -o first, disregard a.out.
3258 # It will help us diagnose broken compilers, and finding out an intuition
3259 # of exeext.
3260 { echo "$as_me:$LINENO: checking for C compiler default output file name" >&5
3261 echo $ECHO_N "checking for C compiler default output file name... $ECHO_C" >&6; }
3262 ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
3264 # List of possible output files, starting from the most likely.
3265 # The algorithm is not robust to junk in `.', hence go to wildcards (a.*)
3266 # only as a last resort. b.out is created by i960 compilers.
3267 ac_files='a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out'
3269 # The IRIX 6 linker writes into existing files which may not be
3270 # executable, retaining their permissions. Remove them first so a
3271 # subsequent execution test works.
3272 ac_rmfiles=
3273 for ac_file in $ac_files
3275 case $ac_file in
3276 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj ) ;;
3277 * ) ac_rmfiles="$ac_rmfiles $ac_file";;
3278 esac
3279 done
3280 rm -f $ac_rmfiles
3282 if { (ac_try="$ac_link_default"
3283 case "(($ac_try" in
3284 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3285 *) ac_try_echo=$ac_try;;
3286 esac
3287 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3288 (eval "$ac_link_default") 2>&5
3289 ac_status=$?
3290 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3291 (exit $ac_status); }; then
3292 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
3293 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
3294 # in a Makefile. We should not override ac_cv_exeext if it was cached,
3295 # so that the user can short-circuit this test for compilers unknown to
3296 # Autoconf.
3297 for ac_file in $ac_files ''
3299 test -f "$ac_file" || continue
3300 case $ac_file in
3301 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj )
3303 [ab].out )
3304 # We found the default executable, but exeext='' is most
3305 # certainly right.
3306 break;;
3307 *.* )
3308 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
3309 then :; else
3310 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3312 # We set ac_cv_exeext here because the later test for it is not
3313 # safe: cross compilers may not add the suffix if given an `-o'
3314 # argument, so we may need to know it at that point already.
3315 # Even if this section looks crufty: it has the advantage of
3316 # actually working.
3317 break;;
3319 break;;
3320 esac
3321 done
3322 test "$ac_cv_exeext" = no && ac_cv_exeext=
3324 else
3325 ac_file=''
3328 { echo "$as_me:$LINENO: result: $ac_file" >&5
3329 echo "${ECHO_T}$ac_file" >&6; }
3330 if test -z "$ac_file"; then
3331 echo "$as_me: failed program was:" >&5
3332 sed 's/^/| /' conftest.$ac_ext >&5
3334 { { echo "$as_me:$LINENO: error: C compiler cannot create executables
3335 See \`config.log' for more details." >&5
3336 echo "$as_me: error: C compiler cannot create executables
3337 See \`config.log' for more details." >&2;}
3338 { (exit 77); exit 77; }; }
3341 ac_exeext=$ac_cv_exeext
3343 # Check that the compiler produces executables we can run. If not, either
3344 # the compiler is broken, or we cross compile.
3345 { echo "$as_me:$LINENO: checking whether the C compiler works" >&5
3346 echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6; }
3347 # FIXME: These cross compiler hacks should be removed for Autoconf 3.0
3348 # If not cross compiling, check that we can run a simple program.
3349 if test "$cross_compiling" != yes; then
3350 if { ac_try='./$ac_file'
3351 { (case "(($ac_try" in
3352 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3353 *) ac_try_echo=$ac_try;;
3354 esac
3355 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3356 (eval "$ac_try") 2>&5
3357 ac_status=$?
3358 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3359 (exit $ac_status); }; }; then
3360 cross_compiling=no
3361 else
3362 if test "$cross_compiling" = maybe; then
3363 cross_compiling=yes
3364 else
3365 { { echo "$as_me:$LINENO: error: cannot run C compiled programs.
3366 If you meant to cross compile, use \`--host'.
3367 See \`config.log' for more details." >&5
3368 echo "$as_me: error: cannot run C compiled programs.
3369 If you meant to cross compile, use \`--host'.
3370 See \`config.log' for more details." >&2;}
3371 { (exit 1); exit 1; }; }
3375 { echo "$as_me:$LINENO: result: yes" >&5
3376 echo "${ECHO_T}yes" >&6; }
3378 rm -f a.out a.exe conftest$ac_cv_exeext b.out
3379 ac_clean_files=$ac_clean_files_save
3380 # Check that the compiler produces executables we can run. If not, either
3381 # the compiler is broken, or we cross compile.
3382 { echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
3383 echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6; }
3384 { echo "$as_me:$LINENO: result: $cross_compiling" >&5
3385 echo "${ECHO_T}$cross_compiling" >&6; }
3387 { echo "$as_me:$LINENO: checking for suffix of executables" >&5
3388 echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6; }
3389 if { (ac_try="$ac_link"
3390 case "(($ac_try" in
3391 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3392 *) ac_try_echo=$ac_try;;
3393 esac
3394 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3395 (eval "$ac_link") 2>&5
3396 ac_status=$?
3397 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3398 (exit $ac_status); }; then
3399 # If both `conftest.exe' and `conftest' are `present' (well, observable)
3400 # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
3401 # work properly (i.e., refer to `conftest.exe'), while it won't with
3402 # `rm'.
3403 for ac_file in conftest.exe conftest conftest.*; do
3404 test -f "$ac_file" || continue
3405 case $ac_file in
3406 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj ) ;;
3407 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3408 break;;
3409 * ) break;;
3410 esac
3411 done
3412 else
3413 { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
3414 See \`config.log' for more details." >&5
3415 echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
3416 See \`config.log' for more details." >&2;}
3417 { (exit 1); exit 1; }; }
3420 rm -f conftest$ac_cv_exeext
3421 { echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
3422 echo "${ECHO_T}$ac_cv_exeext" >&6; }
3424 rm -f conftest.$ac_ext
3425 EXEEXT=$ac_cv_exeext
3426 ac_exeext=$EXEEXT
3427 { echo "$as_me:$LINENO: checking for suffix of object files" >&5
3428 echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6; }
3429 if test "${ac_cv_objext+set}" = set; then
3430 echo $ECHO_N "(cached) $ECHO_C" >&6
3431 else
3432 cat >conftest.$ac_ext <<_ACEOF
3433 /* confdefs.h. */
3434 _ACEOF
3435 cat confdefs.h >>conftest.$ac_ext
3436 cat >>conftest.$ac_ext <<_ACEOF
3437 /* end confdefs.h. */
3440 main ()
3444 return 0;
3446 _ACEOF
3447 rm -f conftest.o conftest.obj
3448 if { (ac_try="$ac_compile"
3449 case "(($ac_try" in
3450 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3451 *) ac_try_echo=$ac_try;;
3452 esac
3453 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3454 (eval "$ac_compile") 2>&5
3455 ac_status=$?
3456 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3457 (exit $ac_status); }; then
3458 for ac_file in conftest.o conftest.obj conftest.*; do
3459 test -f "$ac_file" || continue;
3460 case $ac_file in
3461 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf ) ;;
3462 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
3463 break;;
3464 esac
3465 done
3466 else
3467 echo "$as_me: failed program was:" >&5
3468 sed 's/^/| /' conftest.$ac_ext >&5
3470 { { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
3471 See \`config.log' for more details." >&5
3472 echo "$as_me: error: cannot compute suffix of object files: cannot compile
3473 See \`config.log' for more details." >&2;}
3474 { (exit 1); exit 1; }; }
3477 rm -f conftest.$ac_cv_objext conftest.$ac_ext
3479 { echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
3480 echo "${ECHO_T}$ac_cv_objext" >&6; }
3481 OBJEXT=$ac_cv_objext
3482 ac_objext=$OBJEXT
3483 { echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
3484 echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6; }
3485 if test "${ac_cv_c_compiler_gnu+set}" = set; then
3486 echo $ECHO_N "(cached) $ECHO_C" >&6
3487 else
3488 cat >conftest.$ac_ext <<_ACEOF
3489 /* confdefs.h. */
3490 _ACEOF
3491 cat confdefs.h >>conftest.$ac_ext
3492 cat >>conftest.$ac_ext <<_ACEOF
3493 /* end confdefs.h. */
3496 main ()
3498 #ifndef __GNUC__
3499 choke me
3500 #endif
3503 return 0;
3505 _ACEOF
3506 rm -f conftest.$ac_objext
3507 if { (ac_try="$ac_compile"
3508 case "(($ac_try" in
3509 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3510 *) ac_try_echo=$ac_try;;
3511 esac
3512 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3513 (eval "$ac_compile") 2>conftest.er1
3514 ac_status=$?
3515 grep -v '^ *+' conftest.er1 >conftest.err
3516 rm -f conftest.er1
3517 cat conftest.err >&5
3518 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3519 (exit $ac_status); } && {
3520 test -z "$ac_c_werror_flag" ||
3521 test ! -s conftest.err
3522 } && test -s conftest.$ac_objext; then
3523 ac_compiler_gnu=yes
3524 else
3525 echo "$as_me: failed program was:" >&5
3526 sed 's/^/| /' conftest.$ac_ext >&5
3528 ac_compiler_gnu=no
3531 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3532 ac_cv_c_compiler_gnu=$ac_compiler_gnu
3535 { echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
3536 echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6; }
3537 GCC=`test $ac_compiler_gnu = yes && echo yes`
3538 ac_test_CFLAGS=${CFLAGS+set}
3539 ac_save_CFLAGS=$CFLAGS
3540 { echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
3541 echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6; }
3542 if test "${ac_cv_prog_cc_g+set}" = set; then
3543 echo $ECHO_N "(cached) $ECHO_C" >&6
3544 else
3545 ac_save_c_werror_flag=$ac_c_werror_flag
3546 ac_c_werror_flag=yes
3547 ac_cv_prog_cc_g=no
3548 CFLAGS="-g"
3549 cat >conftest.$ac_ext <<_ACEOF
3550 /* confdefs.h. */
3551 _ACEOF
3552 cat confdefs.h >>conftest.$ac_ext
3553 cat >>conftest.$ac_ext <<_ACEOF
3554 /* end confdefs.h. */
3557 main ()
3561 return 0;
3563 _ACEOF
3564 rm -f conftest.$ac_objext
3565 if { (ac_try="$ac_compile"
3566 case "(($ac_try" in
3567 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3568 *) ac_try_echo=$ac_try;;
3569 esac
3570 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3571 (eval "$ac_compile") 2>conftest.er1
3572 ac_status=$?
3573 grep -v '^ *+' conftest.er1 >conftest.err
3574 rm -f conftest.er1
3575 cat conftest.err >&5
3576 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3577 (exit $ac_status); } && {
3578 test -z "$ac_c_werror_flag" ||
3579 test ! -s conftest.err
3580 } && test -s conftest.$ac_objext; then
3581 ac_cv_prog_cc_g=yes
3582 else
3583 echo "$as_me: failed program was:" >&5
3584 sed 's/^/| /' conftest.$ac_ext >&5
3586 CFLAGS=""
3587 cat >conftest.$ac_ext <<_ACEOF
3588 /* confdefs.h. */
3589 _ACEOF
3590 cat confdefs.h >>conftest.$ac_ext
3591 cat >>conftest.$ac_ext <<_ACEOF
3592 /* end confdefs.h. */
3595 main ()
3599 return 0;
3601 _ACEOF
3602 rm -f conftest.$ac_objext
3603 if { (ac_try="$ac_compile"
3604 case "(($ac_try" in
3605 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3606 *) ac_try_echo=$ac_try;;
3607 esac
3608 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3609 (eval "$ac_compile") 2>conftest.er1
3610 ac_status=$?
3611 grep -v '^ *+' conftest.er1 >conftest.err
3612 rm -f conftest.er1
3613 cat conftest.err >&5
3614 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3615 (exit $ac_status); } && {
3616 test -z "$ac_c_werror_flag" ||
3617 test ! -s conftest.err
3618 } && test -s conftest.$ac_objext; then
3620 else
3621 echo "$as_me: failed program was:" >&5
3622 sed 's/^/| /' conftest.$ac_ext >&5
3624 ac_c_werror_flag=$ac_save_c_werror_flag
3625 CFLAGS="-g"
3626 cat >conftest.$ac_ext <<_ACEOF
3627 /* confdefs.h. */
3628 _ACEOF
3629 cat confdefs.h >>conftest.$ac_ext
3630 cat >>conftest.$ac_ext <<_ACEOF
3631 /* end confdefs.h. */
3634 main ()
3638 return 0;
3640 _ACEOF
3641 rm -f conftest.$ac_objext
3642 if { (ac_try="$ac_compile"
3643 case "(($ac_try" in
3644 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3645 *) ac_try_echo=$ac_try;;
3646 esac
3647 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3648 (eval "$ac_compile") 2>conftest.er1
3649 ac_status=$?
3650 grep -v '^ *+' conftest.er1 >conftest.err
3651 rm -f conftest.er1
3652 cat conftest.err >&5
3653 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3654 (exit $ac_status); } && {
3655 test -z "$ac_c_werror_flag" ||
3656 test ! -s conftest.err
3657 } && test -s conftest.$ac_objext; then
3658 ac_cv_prog_cc_g=yes
3659 else
3660 echo "$as_me: failed program was:" >&5
3661 sed 's/^/| /' conftest.$ac_ext >&5
3666 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3669 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3672 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3673 ac_c_werror_flag=$ac_save_c_werror_flag
3675 { echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
3676 echo "${ECHO_T}$ac_cv_prog_cc_g" >&6; }
3677 if test "$ac_test_CFLAGS" = set; then
3678 CFLAGS=$ac_save_CFLAGS
3679 elif test $ac_cv_prog_cc_g = yes; then
3680 if test "$GCC" = yes; then
3681 CFLAGS="-g -O2"
3682 else
3683 CFLAGS="-g"
3685 else
3686 if test "$GCC" = yes; then
3687 CFLAGS="-O2"
3688 else
3689 CFLAGS=
3692 { echo "$as_me:$LINENO: checking for $CC option to accept ISO C89" >&5
3693 echo $ECHO_N "checking for $CC option to accept ISO C89... $ECHO_C" >&6; }
3694 if test "${ac_cv_prog_cc_c89+set}" = set; then
3695 echo $ECHO_N "(cached) $ECHO_C" >&6
3696 else
3697 ac_cv_prog_cc_c89=no
3698 ac_save_CC=$CC
3699 cat >conftest.$ac_ext <<_ACEOF
3700 /* confdefs.h. */
3701 _ACEOF
3702 cat confdefs.h >>conftest.$ac_ext
3703 cat >>conftest.$ac_ext <<_ACEOF
3704 /* end confdefs.h. */
3705 #include <stdarg.h>
3706 #include <stdio.h>
3707 #include <sys/types.h>
3708 #include <sys/stat.h>
3709 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
3710 struct buf { int x; };
3711 FILE * (*rcsopen) (struct buf *, struct stat *, int);
3712 static char *e (p, i)
3713 char **p;
3714 int i;
3716 return p[i];
3718 static char *f (char * (*g) (char **, int), char **p, ...)
3720 char *s;
3721 va_list v;
3722 va_start (v,p);
3723 s = g (p, va_arg (v,int));
3724 va_end (v);
3725 return s;
3728 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
3729 function prototypes and stuff, but not '\xHH' hex character constants.
3730 These don't provoke an error unfortunately, instead are silently treated
3731 as 'x'. The following induces an error, until -std is added to get
3732 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
3733 array size at least. It's necessary to write '\x00'==0 to get something
3734 that's true only with -std. */
3735 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
3737 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
3738 inside strings and character constants. */
3739 #define FOO(x) 'x'
3740 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
3742 int test (int i, double x);
3743 struct s1 {int (*f) (int a);};
3744 struct s2 {int (*f) (double a);};
3745 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
3746 int argc;
3747 char **argv;
3749 main ()
3751 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
3753 return 0;
3755 _ACEOF
3756 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
3757 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
3759 CC="$ac_save_CC $ac_arg"
3760 rm -f conftest.$ac_objext
3761 if { (ac_try="$ac_compile"
3762 case "(($ac_try" in
3763 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3764 *) ac_try_echo=$ac_try;;
3765 esac
3766 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3767 (eval "$ac_compile") 2>conftest.er1
3768 ac_status=$?
3769 grep -v '^ *+' conftest.er1 >conftest.err
3770 rm -f conftest.er1
3771 cat conftest.err >&5
3772 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3773 (exit $ac_status); } && {
3774 test -z "$ac_c_werror_flag" ||
3775 test ! -s conftest.err
3776 } && test -s conftest.$ac_objext; then
3777 ac_cv_prog_cc_c89=$ac_arg
3778 else
3779 echo "$as_me: failed program was:" >&5
3780 sed 's/^/| /' conftest.$ac_ext >&5
3785 rm -f core conftest.err conftest.$ac_objext
3786 test "x$ac_cv_prog_cc_c89" != "xno" && break
3787 done
3788 rm -f conftest.$ac_ext
3789 CC=$ac_save_CC
3792 # AC_CACHE_VAL
3793 case "x$ac_cv_prog_cc_c89" in
3795 { echo "$as_me:$LINENO: result: none needed" >&5
3796 echo "${ECHO_T}none needed" >&6; } ;;
3797 xno)
3798 { echo "$as_me:$LINENO: result: unsupported" >&5
3799 echo "${ECHO_T}unsupported" >&6; } ;;
3801 CC="$CC $ac_cv_prog_cc_c89"
3802 { echo "$as_me:$LINENO: result: $ac_cv_prog_cc_c89" >&5
3803 echo "${ECHO_T}$ac_cv_prog_cc_c89" >&6; } ;;
3804 esac
3807 ac_ext=c
3808 ac_cpp='$CPP $CPPFLAGS'
3809 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3810 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3811 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3814 # On Suns, sometimes $CPP names a directory.
3815 if test -n "$CPP" && test -d "$CPP"; then
3816 CPP=
3819 ## If not using gcc, and on Solaris, and no CPP specified, see if
3820 ## using a Sun compiler, which needs -Xs to prevent whitespace.
3821 if test x"$GCC" != xyes && test x"$emacs_check_sunpro_c" = xyes && \
3822 test x"$CPP" = x; then
3823 { echo "$as_me:$LINENO: checking whether we are using a Sun C compiler" >&5
3824 echo $ECHO_N "checking whether we are using a Sun C compiler... $ECHO_C" >&6; }
3826 if test "${emacs_cv_sunpro_c+set}" = set; then
3827 echo $ECHO_N "(cached) $ECHO_C" >&6
3828 else
3829 cat >conftest.$ac_ext <<_ACEOF
3830 /* confdefs.h. */
3831 _ACEOF
3832 cat confdefs.h >>conftest.$ac_ext
3833 cat >>conftest.$ac_ext <<_ACEOF
3834 /* end confdefs.h. */
3837 main ()
3839 #ifndef __SUNPRO_C
3840 fail;
3841 #endif
3844 return 0;
3846 _ACEOF
3847 rm -f conftest.$ac_objext conftest$ac_exeext
3848 if { (ac_try="$ac_link"
3849 case "(($ac_try" in
3850 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3851 *) ac_try_echo=$ac_try;;
3852 esac
3853 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3854 (eval "$ac_link") 2>conftest.er1
3855 ac_status=$?
3856 grep -v '^ *+' conftest.er1 >conftest.err
3857 rm -f conftest.er1
3858 cat conftest.err >&5
3859 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3860 (exit $ac_status); } && {
3861 test -z "$ac_c_werror_flag" ||
3862 test ! -s conftest.err
3863 } && test -s conftest$ac_exeext &&
3864 $as_test_x conftest$ac_exeext; then
3865 emacs_cv_sunpro_c=yes
3866 else
3867 echo "$as_me: failed program was:" >&5
3868 sed 's/^/| /' conftest.$ac_ext >&5
3870 emacs_cv_sunpro_c=no
3873 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
3874 conftest$ac_exeext conftest.$ac_ext
3877 { echo "$as_me:$LINENO: result: $emacs_cv_sunpro_c" >&5
3878 echo "${ECHO_T}$emacs_cv_sunpro_c" >&6; }
3880 if test x"$emacs_cv_sunpro_c" = xyes; then
3881 NON_GNU_CPP="$CC -E -Xs"
3885 #### Some systems specify a CPP to use unless we are using GCC.
3886 #### Now that we know whether we are using GCC, we can decide whether
3887 #### to use that one.
3888 if test "x$NON_GNU_CPP" != x && test x$GCC != xyes && test "x$CPP" = x
3889 then
3890 CPP="$NON_GNU_CPP"
3893 #### Some systems specify a CC to use unless we are using GCC.
3894 #### Now that we know whether we are using GCC, we can decide whether
3895 #### to use that one.
3896 if test "x$NON_GNU_CC" != x && test x$GCC != xyes &&
3897 test x$cc_specified != xyes
3898 then
3899 CC="$NON_GNU_CC"
3902 if test x$GCC = xyes && test "x$GCC_TEST_OPTIONS" != x
3903 then
3904 CC="$CC $GCC_TEST_OPTIONS"
3907 if test x$GCC = x && test "x$NON_GCC_TEST_OPTIONS" != x
3908 then
3909 CC="$CC $NON_GCC_TEST_OPTIONS"
3913 cat >>confdefs.h <<\_ACEOF
3914 #define _GNU_SOURCE 1
3915 _ACEOF
3918 ac_ext=c
3919 ac_cpp='$CPP $CPPFLAGS'
3920 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3921 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3922 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3923 { echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
3924 echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6; }
3925 # On Suns, sometimes $CPP names a directory.
3926 if test -n "$CPP" && test -d "$CPP"; then
3927 CPP=
3929 if test -z "$CPP"; then
3930 if test "${ac_cv_prog_CPP+set}" = set; then
3931 echo $ECHO_N "(cached) $ECHO_C" >&6
3932 else
3933 # Double quotes because CPP needs to be expanded
3934 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
3936 ac_preproc_ok=false
3937 for ac_c_preproc_warn_flag in '' yes
3939 # Use a header file that comes with gcc, so configuring glibc
3940 # with a fresh cross-compiler works.
3941 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3942 # <limits.h> exists even on freestanding compilers.
3943 # On the NeXT, cc -E runs the code through the compiler's parser,
3944 # not just through cpp. "Syntax error" is here to catch this case.
3945 cat >conftest.$ac_ext <<_ACEOF
3946 /* confdefs.h. */
3947 _ACEOF
3948 cat confdefs.h >>conftest.$ac_ext
3949 cat >>conftest.$ac_ext <<_ACEOF
3950 /* end confdefs.h. */
3951 #ifdef __STDC__
3952 # include <limits.h>
3953 #else
3954 # include <assert.h>
3955 #endif
3956 Syntax error
3957 _ACEOF
3958 if { (ac_try="$ac_cpp conftest.$ac_ext"
3959 case "(($ac_try" in
3960 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3961 *) ac_try_echo=$ac_try;;
3962 esac
3963 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3964 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
3965 ac_status=$?
3966 grep -v '^ *+' conftest.er1 >conftest.err
3967 rm -f conftest.er1
3968 cat conftest.err >&5
3969 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3970 (exit $ac_status); } >/dev/null && {
3971 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
3972 test ! -s conftest.err
3973 }; then
3975 else
3976 echo "$as_me: failed program was:" >&5
3977 sed 's/^/| /' conftest.$ac_ext >&5
3979 # Broken: fails on valid input.
3980 continue
3983 rm -f conftest.err conftest.$ac_ext
3985 # OK, works on sane cases. Now check whether nonexistent headers
3986 # can be detected and how.
3987 cat >conftest.$ac_ext <<_ACEOF
3988 /* confdefs.h. */
3989 _ACEOF
3990 cat confdefs.h >>conftest.$ac_ext
3991 cat >>conftest.$ac_ext <<_ACEOF
3992 /* end confdefs.h. */
3993 #include <ac_nonexistent.h>
3994 _ACEOF
3995 if { (ac_try="$ac_cpp conftest.$ac_ext"
3996 case "(($ac_try" in
3997 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3998 *) ac_try_echo=$ac_try;;
3999 esac
4000 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4001 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
4002 ac_status=$?
4003 grep -v '^ *+' conftest.er1 >conftest.err
4004 rm -f conftest.er1
4005 cat conftest.err >&5
4006 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4007 (exit $ac_status); } >/dev/null && {
4008 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
4009 test ! -s conftest.err
4010 }; then
4011 # Broken: success on invalid input.
4012 continue
4013 else
4014 echo "$as_me: failed program was:" >&5
4015 sed 's/^/| /' conftest.$ac_ext >&5
4017 # Passes both tests.
4018 ac_preproc_ok=:
4019 break
4022 rm -f conftest.err conftest.$ac_ext
4024 done
4025 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4026 rm -f conftest.err conftest.$ac_ext
4027 if $ac_preproc_ok; then
4028 break
4031 done
4032 ac_cv_prog_CPP=$CPP
4035 CPP=$ac_cv_prog_CPP
4036 else
4037 ac_cv_prog_CPP=$CPP
4039 { echo "$as_me:$LINENO: result: $CPP" >&5
4040 echo "${ECHO_T}$CPP" >&6; }
4041 ac_preproc_ok=false
4042 for ac_c_preproc_warn_flag in '' yes
4044 # Use a header file that comes with gcc, so configuring glibc
4045 # with a fresh cross-compiler works.
4046 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4047 # <limits.h> exists even on freestanding compilers.
4048 # On the NeXT, cc -E runs the code through the compiler's parser,
4049 # not just through cpp. "Syntax error" is here to catch this case.
4050 cat >conftest.$ac_ext <<_ACEOF
4051 /* confdefs.h. */
4052 _ACEOF
4053 cat confdefs.h >>conftest.$ac_ext
4054 cat >>conftest.$ac_ext <<_ACEOF
4055 /* end confdefs.h. */
4056 #ifdef __STDC__
4057 # include <limits.h>
4058 #else
4059 # include <assert.h>
4060 #endif
4061 Syntax error
4062 _ACEOF
4063 if { (ac_try="$ac_cpp conftest.$ac_ext"
4064 case "(($ac_try" in
4065 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4066 *) ac_try_echo=$ac_try;;
4067 esac
4068 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4069 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
4070 ac_status=$?
4071 grep -v '^ *+' conftest.er1 >conftest.err
4072 rm -f conftest.er1
4073 cat conftest.err >&5
4074 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4075 (exit $ac_status); } >/dev/null && {
4076 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
4077 test ! -s conftest.err
4078 }; then
4080 else
4081 echo "$as_me: failed program was:" >&5
4082 sed 's/^/| /' conftest.$ac_ext >&5
4084 # Broken: fails on valid input.
4085 continue
4088 rm -f conftest.err conftest.$ac_ext
4090 # OK, works on sane cases. Now check whether nonexistent headers
4091 # can be detected and how.
4092 cat >conftest.$ac_ext <<_ACEOF
4093 /* confdefs.h. */
4094 _ACEOF
4095 cat confdefs.h >>conftest.$ac_ext
4096 cat >>conftest.$ac_ext <<_ACEOF
4097 /* end confdefs.h. */
4098 #include <ac_nonexistent.h>
4099 _ACEOF
4100 if { (ac_try="$ac_cpp conftest.$ac_ext"
4101 case "(($ac_try" in
4102 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4103 *) ac_try_echo=$ac_try;;
4104 esac
4105 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4106 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
4107 ac_status=$?
4108 grep -v '^ *+' conftest.er1 >conftest.err
4109 rm -f conftest.er1
4110 cat conftest.err >&5
4111 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4112 (exit $ac_status); } >/dev/null && {
4113 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
4114 test ! -s conftest.err
4115 }; then
4116 # Broken: success on invalid input.
4117 continue
4118 else
4119 echo "$as_me: failed program was:" >&5
4120 sed 's/^/| /' conftest.$ac_ext >&5
4122 # Passes both tests.
4123 ac_preproc_ok=:
4124 break
4127 rm -f conftest.err conftest.$ac_ext
4129 done
4130 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4131 rm -f conftest.err conftest.$ac_ext
4132 if $ac_preproc_ok; then
4134 else
4135 { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
4136 See \`config.log' for more details." >&5
4137 echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
4138 See \`config.log' for more details." >&2;}
4139 { (exit 1); exit 1; }; }
4142 ac_ext=c
4143 ac_cpp='$CPP $CPPFLAGS'
4144 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4145 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4146 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4149 { echo "$as_me:$LINENO: checking for grep that handles long lines and -e" >&5
4150 echo $ECHO_N "checking for grep that handles long lines and -e... $ECHO_C" >&6; }
4151 if test "${ac_cv_path_GREP+set}" = set; then
4152 echo $ECHO_N "(cached) $ECHO_C" >&6
4153 else
4154 # Extract the first word of "grep ggrep" to use in msg output
4155 if test -z "$GREP"; then
4156 set dummy grep ggrep; ac_prog_name=$2
4157 if test "${ac_cv_path_GREP+set}" = set; then
4158 echo $ECHO_N "(cached) $ECHO_C" >&6
4159 else
4160 ac_path_GREP_found=false
4161 # Loop through the user's path and test for each of PROGNAME-LIST
4162 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4163 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4165 IFS=$as_save_IFS
4166 test -z "$as_dir" && as_dir=.
4167 for ac_prog in grep ggrep; do
4168 for ac_exec_ext in '' $ac_executable_extensions; do
4169 ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
4170 { test -f "$ac_path_GREP" && $as_test_x "$ac_path_GREP"; } || continue
4171 # Check for GNU ac_path_GREP and select it if it is found.
4172 # Check for GNU $ac_path_GREP
4173 case `"$ac_path_GREP" --version 2>&1` in
4174 *GNU*)
4175 ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
4177 ac_count=0
4178 echo $ECHO_N "0123456789$ECHO_C" >"conftest.in"
4179 while :
4181 cat "conftest.in" "conftest.in" >"conftest.tmp"
4182 mv "conftest.tmp" "conftest.in"
4183 cp "conftest.in" "conftest.nl"
4184 echo 'GREP' >> "conftest.nl"
4185 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4186 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4187 ac_count=`expr $ac_count + 1`
4188 if test $ac_count -gt ${ac_path_GREP_max-0}; then
4189 # Best one so far, save it but keep looking for a better one
4190 ac_cv_path_GREP="$ac_path_GREP"
4191 ac_path_GREP_max=$ac_count
4193 # 10*(2^10) chars as input seems more than enough
4194 test $ac_count -gt 10 && break
4195 done
4196 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4197 esac
4200 $ac_path_GREP_found && break 3
4201 done
4202 done
4204 done
4205 IFS=$as_save_IFS
4210 GREP="$ac_cv_path_GREP"
4211 if test -z "$GREP"; then
4212 { { echo "$as_me:$LINENO: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
4213 echo "$as_me: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
4214 { (exit 1); exit 1; }; }
4217 else
4218 ac_cv_path_GREP=$GREP
4223 { echo "$as_me:$LINENO: result: $ac_cv_path_GREP" >&5
4224 echo "${ECHO_T}$ac_cv_path_GREP" >&6; }
4225 GREP="$ac_cv_path_GREP"
4228 { echo "$as_me:$LINENO: checking for egrep" >&5
4229 echo $ECHO_N "checking for egrep... $ECHO_C" >&6; }
4230 if test "${ac_cv_path_EGREP+set}" = set; then
4231 echo $ECHO_N "(cached) $ECHO_C" >&6
4232 else
4233 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
4234 then ac_cv_path_EGREP="$GREP -E"
4235 else
4236 # Extract the first word of "egrep" to use in msg output
4237 if test -z "$EGREP"; then
4238 set dummy egrep; ac_prog_name=$2
4239 if test "${ac_cv_path_EGREP+set}" = set; then
4240 echo $ECHO_N "(cached) $ECHO_C" >&6
4241 else
4242 ac_path_EGREP_found=false
4243 # Loop through the user's path and test for each of PROGNAME-LIST
4244 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4245 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4247 IFS=$as_save_IFS
4248 test -z "$as_dir" && as_dir=.
4249 for ac_prog in egrep; do
4250 for ac_exec_ext in '' $ac_executable_extensions; do
4251 ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
4252 { test -f "$ac_path_EGREP" && $as_test_x "$ac_path_EGREP"; } || continue
4253 # Check for GNU ac_path_EGREP and select it if it is found.
4254 # Check for GNU $ac_path_EGREP
4255 case `"$ac_path_EGREP" --version 2>&1` in
4256 *GNU*)
4257 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
4259 ac_count=0
4260 echo $ECHO_N "0123456789$ECHO_C" >"conftest.in"
4261 while :
4263 cat "conftest.in" "conftest.in" >"conftest.tmp"
4264 mv "conftest.tmp" "conftest.in"
4265 cp "conftest.in" "conftest.nl"
4266 echo 'EGREP' >> "conftest.nl"
4267 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4268 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4269 ac_count=`expr $ac_count + 1`
4270 if test $ac_count -gt ${ac_path_EGREP_max-0}; then
4271 # Best one so far, save it but keep looking for a better one
4272 ac_cv_path_EGREP="$ac_path_EGREP"
4273 ac_path_EGREP_max=$ac_count
4275 # 10*(2^10) chars as input seems more than enough
4276 test $ac_count -gt 10 && break
4277 done
4278 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4279 esac
4282 $ac_path_EGREP_found && break 3
4283 done
4284 done
4286 done
4287 IFS=$as_save_IFS
4292 EGREP="$ac_cv_path_EGREP"
4293 if test -z "$EGREP"; then
4294 { { echo "$as_me:$LINENO: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
4295 echo "$as_me: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
4296 { (exit 1); exit 1; }; }
4299 else
4300 ac_cv_path_EGREP=$EGREP
4306 { echo "$as_me:$LINENO: result: $ac_cv_path_EGREP" >&5
4307 echo "${ECHO_T}$ac_cv_path_EGREP" >&6; }
4308 EGREP="$ac_cv_path_EGREP"
4312 { echo "$as_me:$LINENO: checking for AIX" >&5
4313 echo $ECHO_N "checking for AIX... $ECHO_C" >&6; }
4314 cat >conftest.$ac_ext <<_ACEOF
4315 /* confdefs.h. */
4316 _ACEOF
4317 cat confdefs.h >>conftest.$ac_ext
4318 cat >>conftest.$ac_ext <<_ACEOF
4319 /* end confdefs.h. */
4320 #ifdef _AIX
4322 #endif
4324 _ACEOF
4325 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4326 $EGREP "yes" >/dev/null 2>&1; then
4327 { echo "$as_me:$LINENO: result: yes" >&5
4328 echo "${ECHO_T}yes" >&6; }
4329 cat >>confdefs.h <<\_ACEOF
4330 #define _ALL_SOURCE 1
4331 _ACEOF
4333 else
4334 { echo "$as_me:$LINENO: result: no" >&5
4335 echo "${ECHO_T}no" >&6; }
4337 rm -f conftest*
4340 { echo "$as_me:$LINENO: checking for ANSI C header files" >&5
4341 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6; }
4342 if test "${ac_cv_header_stdc+set}" = set; then
4343 echo $ECHO_N "(cached) $ECHO_C" >&6
4344 else
4345 cat >conftest.$ac_ext <<_ACEOF
4346 /* confdefs.h. */
4347 _ACEOF
4348 cat confdefs.h >>conftest.$ac_ext
4349 cat >>conftest.$ac_ext <<_ACEOF
4350 /* end confdefs.h. */
4351 #include <stdlib.h>
4352 #include <stdarg.h>
4353 #include <string.h>
4354 #include <float.h>
4357 main ()
4361 return 0;
4363 _ACEOF
4364 rm -f conftest.$ac_objext
4365 if { (ac_try="$ac_compile"
4366 case "(($ac_try" in
4367 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4368 *) ac_try_echo=$ac_try;;
4369 esac
4370 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4371 (eval "$ac_compile") 2>conftest.er1
4372 ac_status=$?
4373 grep -v '^ *+' conftest.er1 >conftest.err
4374 rm -f conftest.er1
4375 cat conftest.err >&5
4376 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4377 (exit $ac_status); } && {
4378 test -z "$ac_c_werror_flag" ||
4379 test ! -s conftest.err
4380 } && test -s conftest.$ac_objext; then
4381 ac_cv_header_stdc=yes
4382 else
4383 echo "$as_me: failed program was:" >&5
4384 sed 's/^/| /' conftest.$ac_ext >&5
4386 ac_cv_header_stdc=no
4389 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4391 if test $ac_cv_header_stdc = yes; then
4392 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
4393 cat >conftest.$ac_ext <<_ACEOF
4394 /* confdefs.h. */
4395 _ACEOF
4396 cat confdefs.h >>conftest.$ac_ext
4397 cat >>conftest.$ac_ext <<_ACEOF
4398 /* end confdefs.h. */
4399 #include <string.h>
4401 _ACEOF
4402 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4403 $EGREP "memchr" >/dev/null 2>&1; then
4405 else
4406 ac_cv_header_stdc=no
4408 rm -f conftest*
4412 if test $ac_cv_header_stdc = yes; then
4413 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
4414 cat >conftest.$ac_ext <<_ACEOF
4415 /* confdefs.h. */
4416 _ACEOF
4417 cat confdefs.h >>conftest.$ac_ext
4418 cat >>conftest.$ac_ext <<_ACEOF
4419 /* end confdefs.h. */
4420 #include <stdlib.h>
4422 _ACEOF
4423 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4424 $EGREP "free" >/dev/null 2>&1; then
4426 else
4427 ac_cv_header_stdc=no
4429 rm -f conftest*
4433 if test $ac_cv_header_stdc = yes; then
4434 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
4435 if test "$cross_compiling" = yes; then
4437 else
4438 cat >conftest.$ac_ext <<_ACEOF
4439 /* confdefs.h. */
4440 _ACEOF
4441 cat confdefs.h >>conftest.$ac_ext
4442 cat >>conftest.$ac_ext <<_ACEOF
4443 /* end confdefs.h. */
4444 #include <ctype.h>
4445 #include <stdlib.h>
4446 #if ((' ' & 0x0FF) == 0x020)
4447 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
4448 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
4449 #else
4450 # define ISLOWER(c) \
4451 (('a' <= (c) && (c) <= 'i') \
4452 || ('j' <= (c) && (c) <= 'r') \
4453 || ('s' <= (c) && (c) <= 'z'))
4454 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
4455 #endif
4457 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
4459 main ()
4461 int i;
4462 for (i = 0; i < 256; i++)
4463 if (XOR (islower (i), ISLOWER (i))
4464 || toupper (i) != TOUPPER (i))
4465 return 2;
4466 return 0;
4468 _ACEOF
4469 rm -f conftest$ac_exeext
4470 if { (ac_try="$ac_link"
4471 case "(($ac_try" in
4472 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4473 *) ac_try_echo=$ac_try;;
4474 esac
4475 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4476 (eval "$ac_link") 2>&5
4477 ac_status=$?
4478 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4479 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
4480 { (case "(($ac_try" in
4481 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4482 *) ac_try_echo=$ac_try;;
4483 esac
4484 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4485 (eval "$ac_try") 2>&5
4486 ac_status=$?
4487 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4488 (exit $ac_status); }; }; then
4490 else
4491 echo "$as_me: program exited with status $ac_status" >&5
4492 echo "$as_me: failed program was:" >&5
4493 sed 's/^/| /' conftest.$ac_ext >&5
4495 ( exit $ac_status )
4496 ac_cv_header_stdc=no
4498 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
4504 { echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
4505 echo "${ECHO_T}$ac_cv_header_stdc" >&6; }
4506 if test $ac_cv_header_stdc = yes; then
4508 cat >>confdefs.h <<\_ACEOF
4509 #define STDC_HEADERS 1
4510 _ACEOF
4514 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
4524 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
4525 inttypes.h stdint.h unistd.h
4527 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
4528 { echo "$as_me:$LINENO: checking for $ac_header" >&5
4529 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
4530 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
4531 echo $ECHO_N "(cached) $ECHO_C" >&6
4532 else
4533 cat >conftest.$ac_ext <<_ACEOF
4534 /* confdefs.h. */
4535 _ACEOF
4536 cat confdefs.h >>conftest.$ac_ext
4537 cat >>conftest.$ac_ext <<_ACEOF
4538 /* end confdefs.h. */
4539 $ac_includes_default
4541 #include <$ac_header>
4542 _ACEOF
4543 rm -f conftest.$ac_objext
4544 if { (ac_try="$ac_compile"
4545 case "(($ac_try" in
4546 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4547 *) ac_try_echo=$ac_try;;
4548 esac
4549 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4550 (eval "$ac_compile") 2>conftest.er1
4551 ac_status=$?
4552 grep -v '^ *+' conftest.er1 >conftest.err
4553 rm -f conftest.er1
4554 cat conftest.err >&5
4555 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4556 (exit $ac_status); } && {
4557 test -z "$ac_c_werror_flag" ||
4558 test ! -s conftest.err
4559 } && test -s conftest.$ac_objext; then
4560 eval "$as_ac_Header=yes"
4561 else
4562 echo "$as_me: failed program was:" >&5
4563 sed 's/^/| /' conftest.$ac_ext >&5
4565 eval "$as_ac_Header=no"
4568 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4570 ac_res=`eval echo '${'$as_ac_Header'}'`
4571 { echo "$as_me:$LINENO: result: $ac_res" >&5
4572 echo "${ECHO_T}$ac_res" >&6; }
4573 if test `eval echo '${'$as_ac_Header'}'` = yes; then
4574 cat >>confdefs.h <<_ACEOF
4575 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
4576 _ACEOF
4580 done
4583 if test "${ac_cv_header_minix_config_h+set}" = set; then
4584 { echo "$as_me:$LINENO: checking for minix/config.h" >&5
4585 echo $ECHO_N "checking for minix/config.h... $ECHO_C" >&6; }
4586 if test "${ac_cv_header_minix_config_h+set}" = set; then
4587 echo $ECHO_N "(cached) $ECHO_C" >&6
4589 { echo "$as_me:$LINENO: result: $ac_cv_header_minix_config_h" >&5
4590 echo "${ECHO_T}$ac_cv_header_minix_config_h" >&6; }
4591 else
4592 # Is the header compilable?
4593 { echo "$as_me:$LINENO: checking minix/config.h usability" >&5
4594 echo $ECHO_N "checking minix/config.h usability... $ECHO_C" >&6; }
4595 cat >conftest.$ac_ext <<_ACEOF
4596 /* confdefs.h. */
4597 _ACEOF
4598 cat confdefs.h >>conftest.$ac_ext
4599 cat >>conftest.$ac_ext <<_ACEOF
4600 /* end confdefs.h. */
4601 $ac_includes_default
4602 #include <minix/config.h>
4603 _ACEOF
4604 rm -f conftest.$ac_objext
4605 if { (ac_try="$ac_compile"
4606 case "(($ac_try" in
4607 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4608 *) ac_try_echo=$ac_try;;
4609 esac
4610 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4611 (eval "$ac_compile") 2>conftest.er1
4612 ac_status=$?
4613 grep -v '^ *+' conftest.er1 >conftest.err
4614 rm -f conftest.er1
4615 cat conftest.err >&5
4616 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4617 (exit $ac_status); } && {
4618 test -z "$ac_c_werror_flag" ||
4619 test ! -s conftest.err
4620 } && test -s conftest.$ac_objext; then
4621 ac_header_compiler=yes
4622 else
4623 echo "$as_me: failed program was:" >&5
4624 sed 's/^/| /' conftest.$ac_ext >&5
4626 ac_header_compiler=no
4629 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4630 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
4631 echo "${ECHO_T}$ac_header_compiler" >&6; }
4633 # Is the header present?
4634 { echo "$as_me:$LINENO: checking minix/config.h presence" >&5
4635 echo $ECHO_N "checking minix/config.h presence... $ECHO_C" >&6; }
4636 cat >conftest.$ac_ext <<_ACEOF
4637 /* confdefs.h. */
4638 _ACEOF
4639 cat confdefs.h >>conftest.$ac_ext
4640 cat >>conftest.$ac_ext <<_ACEOF
4641 /* end confdefs.h. */
4642 #include <minix/config.h>
4643 _ACEOF
4644 if { (ac_try="$ac_cpp conftest.$ac_ext"
4645 case "(($ac_try" in
4646 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4647 *) ac_try_echo=$ac_try;;
4648 esac
4649 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4650 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
4651 ac_status=$?
4652 grep -v '^ *+' conftest.er1 >conftest.err
4653 rm -f conftest.er1
4654 cat conftest.err >&5
4655 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4656 (exit $ac_status); } >/dev/null && {
4657 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
4658 test ! -s conftest.err
4659 }; then
4660 ac_header_preproc=yes
4661 else
4662 echo "$as_me: failed program was:" >&5
4663 sed 's/^/| /' conftest.$ac_ext >&5
4665 ac_header_preproc=no
4668 rm -f conftest.err conftest.$ac_ext
4669 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
4670 echo "${ECHO_T}$ac_header_preproc" >&6; }
4672 # So? What about this header?
4673 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
4674 yes:no: )
4675 { echo "$as_me:$LINENO: WARNING: minix/config.h: accepted by the compiler, rejected by the preprocessor!" >&5
4676 echo "$as_me: WARNING: minix/config.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
4677 { echo "$as_me:$LINENO: WARNING: minix/config.h: proceeding with the compiler's result" >&5
4678 echo "$as_me: WARNING: minix/config.h: proceeding with the compiler's result" >&2;}
4679 ac_header_preproc=yes
4681 no:yes:* )
4682 { echo "$as_me:$LINENO: WARNING: minix/config.h: present but cannot be compiled" >&5
4683 echo "$as_me: WARNING: minix/config.h: present but cannot be compiled" >&2;}
4684 { echo "$as_me:$LINENO: WARNING: minix/config.h: check for missing prerequisite headers?" >&5
4685 echo "$as_me: WARNING: minix/config.h: check for missing prerequisite headers?" >&2;}
4686 { echo "$as_me:$LINENO: WARNING: minix/config.h: see the Autoconf documentation" >&5
4687 echo "$as_me: WARNING: minix/config.h: see the Autoconf documentation" >&2;}
4688 { echo "$as_me:$LINENO: WARNING: minix/config.h: section \"Present But Cannot Be Compiled\"" >&5
4689 echo "$as_me: WARNING: minix/config.h: section \"Present But Cannot Be Compiled\"" >&2;}
4690 { echo "$as_me:$LINENO: WARNING: minix/config.h: proceeding with the preprocessor's result" >&5
4691 echo "$as_me: WARNING: minix/config.h: proceeding with the preprocessor's result" >&2;}
4692 { echo "$as_me:$LINENO: WARNING: minix/config.h: in the future, the compiler will take precedence" >&5
4693 echo "$as_me: WARNING: minix/config.h: in the future, the compiler will take precedence" >&2;}
4696 esac
4697 { echo "$as_me:$LINENO: checking for minix/config.h" >&5
4698 echo $ECHO_N "checking for minix/config.h... $ECHO_C" >&6; }
4699 if test "${ac_cv_header_minix_config_h+set}" = set; then
4700 echo $ECHO_N "(cached) $ECHO_C" >&6
4701 else
4702 ac_cv_header_minix_config_h=$ac_header_preproc
4704 { echo "$as_me:$LINENO: result: $ac_cv_header_minix_config_h" >&5
4705 echo "${ECHO_T}$ac_cv_header_minix_config_h" >&6; }
4708 if test $ac_cv_header_minix_config_h = yes; then
4709 MINIX=yes
4710 else
4711 MINIX=
4715 if test "$MINIX" = yes; then
4717 cat >>confdefs.h <<\_ACEOF
4718 #define _POSIX_SOURCE 1
4719 _ACEOF
4722 cat >>confdefs.h <<\_ACEOF
4723 #define _POSIX_1_SOURCE 2
4724 _ACEOF
4727 cat >>confdefs.h <<\_ACEOF
4728 #define _MINIX 1
4729 _ACEOF
4743 { echo "$as_me:$LINENO: checking whether it is safe to define __EXTENSIONS__" >&5
4744 echo $ECHO_N "checking whether it is safe to define __EXTENSIONS__... $ECHO_C" >&6; }
4745 if test "${ac_cv_safe_to_define___extensions__+set}" = set; then
4746 echo $ECHO_N "(cached) $ECHO_C" >&6
4747 else
4748 cat >conftest.$ac_ext <<_ACEOF
4749 /* confdefs.h. */
4750 _ACEOF
4751 cat confdefs.h >>conftest.$ac_ext
4752 cat >>conftest.$ac_ext <<_ACEOF
4753 /* end confdefs.h. */
4755 # define __EXTENSIONS__ 1
4756 $ac_includes_default
4758 main ()
4762 return 0;
4764 _ACEOF
4765 rm -f conftest.$ac_objext
4766 if { (ac_try="$ac_compile"
4767 case "(($ac_try" in
4768 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4769 *) ac_try_echo=$ac_try;;
4770 esac
4771 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4772 (eval "$ac_compile") 2>conftest.er1
4773 ac_status=$?
4774 grep -v '^ *+' conftest.er1 >conftest.err
4775 rm -f conftest.er1
4776 cat conftest.err >&5
4777 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4778 (exit $ac_status); } && {
4779 test -z "$ac_c_werror_flag" ||
4780 test ! -s conftest.err
4781 } && test -s conftest.$ac_objext; then
4782 ac_cv_safe_to_define___extensions__=yes
4783 else
4784 echo "$as_me: failed program was:" >&5
4785 sed 's/^/| /' conftest.$ac_ext >&5
4787 ac_cv_safe_to_define___extensions__=no
4790 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4792 { echo "$as_me:$LINENO: result: $ac_cv_safe_to_define___extensions__" >&5
4793 echo "${ECHO_T}$ac_cv_safe_to_define___extensions__" >&6; }
4794 test $ac_cv_safe_to_define___extensions__ = yes &&
4795 cat >>confdefs.h <<\_ACEOF
4796 #define __EXTENSIONS__ 1
4797 _ACEOF
4799 cat >>confdefs.h <<\_ACEOF
4800 #define _POSIX_PTHREAD_SEMANTICS 1
4801 _ACEOF
4803 cat >>confdefs.h <<\_ACEOF
4804 #define _TANDEM_SOURCE 1
4805 _ACEOF
4809 ### Use -Wno-pointer-sign if the compiler supports it
4810 { echo "$as_me:$LINENO: checking whether gcc understands -Wno-pointer-sign" >&5
4811 echo $ECHO_N "checking whether gcc understands -Wno-pointer-sign... $ECHO_C" >&6; }
4812 SAVE_CFLAGS="$CFLAGS"
4813 CFLAGS="$CFLAGS -Wno-pointer-sign"
4814 cat >conftest.$ac_ext <<_ACEOF
4815 /* confdefs.h. */
4816 _ACEOF
4817 cat confdefs.h >>conftest.$ac_ext
4818 cat >>conftest.$ac_ext <<_ACEOF
4819 /* end confdefs.h. */
4822 main ()
4826 return 0;
4828 _ACEOF
4829 rm -f conftest.$ac_objext
4830 if { (ac_try="$ac_compile"
4831 case "(($ac_try" in
4832 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4833 *) ac_try_echo=$ac_try;;
4834 esac
4835 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4836 (eval "$ac_compile") 2>conftest.er1
4837 ac_status=$?
4838 grep -v '^ *+' conftest.er1 >conftest.err
4839 rm -f conftest.er1
4840 cat conftest.err >&5
4841 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4842 (exit $ac_status); } && {
4843 test -z "$ac_c_werror_flag" ||
4844 test ! -s conftest.err
4845 } && test -s conftest.$ac_objext; then
4846 has_option=yes
4847 else
4848 echo "$as_me: failed program was:" >&5
4849 sed 's/^/| /' conftest.$ac_ext >&5
4851 has_option=no
4854 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4855 if test $has_option = yes; then
4856 C_WARNINGS_SWITCH="-Wno-pointer-sign $C_WARNINGS_SWITCH"
4858 { echo "$as_me:$LINENO: result: $has_option" >&5
4859 echo "${ECHO_T}$has_option" >&6; }
4860 CFLAGS="$SAVE_CFLAGS"
4861 unset has_option
4862 unset SAVE_CFLAGS
4864 #### Some other nice autoconf tests.
4866 { echo "$as_me:$LINENO: checking whether ln -s works" >&5
4867 echo $ECHO_N "checking whether ln -s works... $ECHO_C" >&6; }
4868 LN_S=$as_ln_s
4869 if test "$LN_S" = "ln -s"; then
4870 { echo "$as_me:$LINENO: result: yes" >&5
4871 echo "${ECHO_T}yes" >&6; }
4872 else
4873 { echo "$as_me:$LINENO: result: no, using $LN_S" >&5
4874 echo "${ECHO_T}no, using $LN_S" >&6; }
4877 ac_ext=c
4878 ac_cpp='$CPP $CPPFLAGS'
4879 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4880 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4881 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4882 { echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
4883 echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6; }
4884 # On Suns, sometimes $CPP names a directory.
4885 if test -n "$CPP" && test -d "$CPP"; then
4886 CPP=
4888 if test -z "$CPP"; then
4889 if test "${ac_cv_prog_CPP+set}" = set; then
4890 echo $ECHO_N "(cached) $ECHO_C" >&6
4891 else
4892 # Double quotes because CPP needs to be expanded
4893 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
4895 ac_preproc_ok=false
4896 for ac_c_preproc_warn_flag in '' yes
4898 # Use a header file that comes with gcc, so configuring glibc
4899 # with a fresh cross-compiler works.
4900 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4901 # <limits.h> exists even on freestanding compilers.
4902 # On the NeXT, cc -E runs the code through the compiler's parser,
4903 # not just through cpp. "Syntax error" is here to catch this case.
4904 cat >conftest.$ac_ext <<_ACEOF
4905 /* confdefs.h. */
4906 _ACEOF
4907 cat confdefs.h >>conftest.$ac_ext
4908 cat >>conftest.$ac_ext <<_ACEOF
4909 /* end confdefs.h. */
4910 #ifdef __STDC__
4911 # include <limits.h>
4912 #else
4913 # include <assert.h>
4914 #endif
4915 Syntax error
4916 _ACEOF
4917 if { (ac_try="$ac_cpp conftest.$ac_ext"
4918 case "(($ac_try" in
4919 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4920 *) ac_try_echo=$ac_try;;
4921 esac
4922 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4923 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
4924 ac_status=$?
4925 grep -v '^ *+' conftest.er1 >conftest.err
4926 rm -f conftest.er1
4927 cat conftest.err >&5
4928 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4929 (exit $ac_status); } >/dev/null && {
4930 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
4931 test ! -s conftest.err
4932 }; then
4934 else
4935 echo "$as_me: failed program was:" >&5
4936 sed 's/^/| /' conftest.$ac_ext >&5
4938 # Broken: fails on valid input.
4939 continue
4942 rm -f conftest.err conftest.$ac_ext
4944 # OK, works on sane cases. Now check whether nonexistent headers
4945 # can be detected and how.
4946 cat >conftest.$ac_ext <<_ACEOF
4947 /* confdefs.h. */
4948 _ACEOF
4949 cat confdefs.h >>conftest.$ac_ext
4950 cat >>conftest.$ac_ext <<_ACEOF
4951 /* end confdefs.h. */
4952 #include <ac_nonexistent.h>
4953 _ACEOF
4954 if { (ac_try="$ac_cpp conftest.$ac_ext"
4955 case "(($ac_try" in
4956 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4957 *) ac_try_echo=$ac_try;;
4958 esac
4959 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4960 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
4961 ac_status=$?
4962 grep -v '^ *+' conftest.er1 >conftest.err
4963 rm -f conftest.er1
4964 cat conftest.err >&5
4965 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4966 (exit $ac_status); } >/dev/null && {
4967 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
4968 test ! -s conftest.err
4969 }; then
4970 # Broken: success on invalid input.
4971 continue
4972 else
4973 echo "$as_me: failed program was:" >&5
4974 sed 's/^/| /' conftest.$ac_ext >&5
4976 # Passes both tests.
4977 ac_preproc_ok=:
4978 break
4981 rm -f conftest.err conftest.$ac_ext
4983 done
4984 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4985 rm -f conftest.err conftest.$ac_ext
4986 if $ac_preproc_ok; then
4987 break
4990 done
4991 ac_cv_prog_CPP=$CPP
4994 CPP=$ac_cv_prog_CPP
4995 else
4996 ac_cv_prog_CPP=$CPP
4998 { echo "$as_me:$LINENO: result: $CPP" >&5
4999 echo "${ECHO_T}$CPP" >&6; }
5000 ac_preproc_ok=false
5001 for ac_c_preproc_warn_flag in '' yes
5003 # Use a header file that comes with gcc, so configuring glibc
5004 # with a fresh cross-compiler works.
5005 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5006 # <limits.h> exists even on freestanding compilers.
5007 # On the NeXT, cc -E runs the code through the compiler's parser,
5008 # not just through cpp. "Syntax error" is here to catch this case.
5009 cat >conftest.$ac_ext <<_ACEOF
5010 /* confdefs.h. */
5011 _ACEOF
5012 cat confdefs.h >>conftest.$ac_ext
5013 cat >>conftest.$ac_ext <<_ACEOF
5014 /* end confdefs.h. */
5015 #ifdef __STDC__
5016 # include <limits.h>
5017 #else
5018 # include <assert.h>
5019 #endif
5020 Syntax error
5021 _ACEOF
5022 if { (ac_try="$ac_cpp conftest.$ac_ext"
5023 case "(($ac_try" in
5024 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5025 *) ac_try_echo=$ac_try;;
5026 esac
5027 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5028 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
5029 ac_status=$?
5030 grep -v '^ *+' conftest.er1 >conftest.err
5031 rm -f conftest.er1
5032 cat conftest.err >&5
5033 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5034 (exit $ac_status); } >/dev/null && {
5035 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
5036 test ! -s conftest.err
5037 }; then
5039 else
5040 echo "$as_me: failed program was:" >&5
5041 sed 's/^/| /' conftest.$ac_ext >&5
5043 # Broken: fails on valid input.
5044 continue
5047 rm -f conftest.err conftest.$ac_ext
5049 # OK, works on sane cases. Now check whether nonexistent headers
5050 # can be detected and how.
5051 cat >conftest.$ac_ext <<_ACEOF
5052 /* confdefs.h. */
5053 _ACEOF
5054 cat confdefs.h >>conftest.$ac_ext
5055 cat >>conftest.$ac_ext <<_ACEOF
5056 /* end confdefs.h. */
5057 #include <ac_nonexistent.h>
5058 _ACEOF
5059 if { (ac_try="$ac_cpp conftest.$ac_ext"
5060 case "(($ac_try" in
5061 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5062 *) ac_try_echo=$ac_try;;
5063 esac
5064 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5065 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
5066 ac_status=$?
5067 grep -v '^ *+' conftest.er1 >conftest.err
5068 rm -f conftest.er1
5069 cat conftest.err >&5
5070 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5071 (exit $ac_status); } >/dev/null && {
5072 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
5073 test ! -s conftest.err
5074 }; then
5075 # Broken: success on invalid input.
5076 continue
5077 else
5078 echo "$as_me: failed program was:" >&5
5079 sed 's/^/| /' conftest.$ac_ext >&5
5081 # Passes both tests.
5082 ac_preproc_ok=:
5083 break
5086 rm -f conftest.err conftest.$ac_ext
5088 done
5089 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
5090 rm -f conftest.err conftest.$ac_ext
5091 if $ac_preproc_ok; then
5093 else
5094 { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
5095 See \`config.log' for more details." >&5
5096 echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
5097 See \`config.log' for more details." >&2;}
5098 { (exit 1); exit 1; }; }
5101 ac_ext=c
5102 ac_cpp='$CPP $CPPFLAGS'
5103 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5104 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5105 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5107 # Find a good install program. We prefer a C program (faster),
5108 # so one script is as good as another. But avoid the broken or
5109 # incompatible versions:
5110 # SysV /etc/install, /usr/sbin/install
5111 # SunOS /usr/etc/install
5112 # IRIX /sbin/install
5113 # AIX /bin/install
5114 # AmigaOS /C/install, which installs bootblocks on floppy discs
5115 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
5116 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
5117 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
5118 # OS/2's system install, which has a completely different semantic
5119 # ./install, which can be erroneously created by make from ./install.sh.
5120 { echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
5121 echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6; }
5122 if test -z "$INSTALL"; then
5123 if test "${ac_cv_path_install+set}" = set; then
5124 echo $ECHO_N "(cached) $ECHO_C" >&6
5125 else
5126 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5127 for as_dir in $PATH
5129 IFS=$as_save_IFS
5130 test -z "$as_dir" && as_dir=.
5131 # Account for people who put trailing slashes in PATH elements.
5132 case $as_dir/ in
5133 ./ | .// | /cC/* | \
5134 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
5135 ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
5136 /usr/ucb/* ) ;;
5138 # OSF1 and SCO ODT 3.0 have their own names for install.
5139 # Don't use installbsd from OSF since it installs stuff as root
5140 # by default.
5141 for ac_prog in ginstall scoinst install; do
5142 for ac_exec_ext in '' $ac_executable_extensions; do
5143 if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; }; then
5144 if test $ac_prog = install &&
5145 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
5146 # AIX install. It has an incompatible calling convention.
5148 elif test $ac_prog = install &&
5149 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
5150 # program-specific install script used by HP pwplus--don't use.
5152 else
5153 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
5154 break 3
5157 done
5158 done
5160 esac
5161 done
5162 IFS=$as_save_IFS
5166 if test "${ac_cv_path_install+set}" = set; then
5167 INSTALL=$ac_cv_path_install
5168 else
5169 # As a last resort, use the slow shell script. Don't cache a
5170 # value for INSTALL within a source directory, because that will
5171 # break other packages using the cache if that directory is
5172 # removed, or if the value is a relative name.
5173 INSTALL=$ac_install_sh
5176 { echo "$as_me:$LINENO: result: $INSTALL" >&5
5177 echo "${ECHO_T}$INSTALL" >&6; }
5179 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
5180 # It thinks the first close brace ends the variable substitution.
5181 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
5183 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
5185 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
5187 if test "x$RANLIB" = x; then
5188 if test -n "$ac_tool_prefix"; then
5189 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
5190 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
5191 { echo "$as_me:$LINENO: checking for $ac_word" >&5
5192 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5193 if test "${ac_cv_prog_RANLIB+set}" = set; then
5194 echo $ECHO_N "(cached) $ECHO_C" >&6
5195 else
5196 if test -n "$RANLIB"; then
5197 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
5198 else
5199 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5200 for as_dir in $PATH
5202 IFS=$as_save_IFS
5203 test -z "$as_dir" && as_dir=.
5204 for ac_exec_ext in '' $ac_executable_extensions; do
5205 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5206 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
5207 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5208 break 2
5210 done
5211 done
5212 IFS=$as_save_IFS
5216 RANLIB=$ac_cv_prog_RANLIB
5217 if test -n "$RANLIB"; then
5218 { echo "$as_me:$LINENO: result: $RANLIB" >&5
5219 echo "${ECHO_T}$RANLIB" >&6; }
5220 else
5221 { echo "$as_me:$LINENO: result: no" >&5
5222 echo "${ECHO_T}no" >&6; }
5227 if test -z "$ac_cv_prog_RANLIB"; then
5228 ac_ct_RANLIB=$RANLIB
5229 # Extract the first word of "ranlib", so it can be a program name with args.
5230 set dummy ranlib; ac_word=$2
5231 { echo "$as_me:$LINENO: checking for $ac_word" >&5
5232 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5233 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
5234 echo $ECHO_N "(cached) $ECHO_C" >&6
5235 else
5236 if test -n "$ac_ct_RANLIB"; then
5237 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
5238 else
5239 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5240 for as_dir in $PATH
5242 IFS=$as_save_IFS
5243 test -z "$as_dir" && as_dir=.
5244 for ac_exec_ext in '' $ac_executable_extensions; do
5245 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5246 ac_cv_prog_ac_ct_RANLIB="ranlib"
5247 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5248 break 2
5250 done
5251 done
5252 IFS=$as_save_IFS
5256 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
5257 if test -n "$ac_ct_RANLIB"; then
5258 { echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
5259 echo "${ECHO_T}$ac_ct_RANLIB" >&6; }
5260 else
5261 { echo "$as_me:$LINENO: result: no" >&5
5262 echo "${ECHO_T}no" >&6; }
5265 if test "x$ac_ct_RANLIB" = x; then
5266 RANLIB=":"
5267 else
5268 case $cross_compiling:$ac_tool_warned in
5269 yes:)
5270 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
5271 whose name does not start with the host triplet. If you think this
5272 configuration is useful to you, please write to autoconf@gnu.org." >&5
5273 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
5274 whose name does not start with the host triplet. If you think this
5275 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
5276 ac_tool_warned=yes ;;
5277 esac
5278 RANLIB=$ac_ct_RANLIB
5280 else
5281 RANLIB="$ac_cv_prog_RANLIB"
5285 # Extract the first word of "install-info", so it can be a program name with args.
5286 set dummy install-info; ac_word=$2
5287 { echo "$as_me:$LINENO: checking for $ac_word" >&5
5288 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5289 if test "${ac_cv_path_INSTALL_INFO+set}" = set; then
5290 echo $ECHO_N "(cached) $ECHO_C" >&6
5291 else
5292 case $INSTALL_INFO in
5293 [\\/]* | ?:[\\/]*)
5294 ac_cv_path_INSTALL_INFO="$INSTALL_INFO" # Let the user override the test with a path.
5297 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5298 for as_dir in $PATH
5300 IFS=$as_save_IFS
5301 test -z "$as_dir" && as_dir=.
5302 for ac_exec_ext in '' $ac_executable_extensions; do
5303 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5304 ac_cv_path_INSTALL_INFO="$as_dir/$ac_word$ac_exec_ext"
5305 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5306 break 2
5308 done
5309 done
5310 IFS=$as_save_IFS
5313 esac
5315 INSTALL_INFO=$ac_cv_path_INSTALL_INFO
5316 if test -n "$INSTALL_INFO"; then
5317 { echo "$as_me:$LINENO: result: $INSTALL_INFO" >&5
5318 echo "${ECHO_T}$INSTALL_INFO" >&6; }
5319 else
5320 { echo "$as_me:$LINENO: result: no" >&5
5321 echo "${ECHO_T}no" >&6; }
5325 # Extract the first word of "install-info", so it can be a program name with args.
5326 set dummy install-info; ac_word=$2
5327 { echo "$as_me:$LINENO: checking for $ac_word" >&5
5328 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5329 if test "${ac_cv_path_INSTALL_INFO+set}" = set; then
5330 echo $ECHO_N "(cached) $ECHO_C" >&6
5331 else
5332 case $INSTALL_INFO in
5333 [\\/]* | ?:[\\/]*)
5334 ac_cv_path_INSTALL_INFO="$INSTALL_INFO" # Let the user override the test with a path.
5337 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5338 for as_dir in /usr/sbin
5340 IFS=$as_save_IFS
5341 test -z "$as_dir" && as_dir=.
5342 for ac_exec_ext in '' $ac_executable_extensions; do
5343 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5344 ac_cv_path_INSTALL_INFO="$as_dir/$ac_word$ac_exec_ext"
5345 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5346 break 2
5348 done
5349 done
5350 IFS=$as_save_IFS
5353 esac
5355 INSTALL_INFO=$ac_cv_path_INSTALL_INFO
5356 if test -n "$INSTALL_INFO"; then
5357 { echo "$as_me:$LINENO: result: $INSTALL_INFO" >&5
5358 echo "${ECHO_T}$INSTALL_INFO" >&6; }
5359 else
5360 { echo "$as_me:$LINENO: result: no" >&5
5361 echo "${ECHO_T}no" >&6; }
5365 # Extract the first word of "install-info", so it can be a program name with args.
5366 set dummy install-info; ac_word=$2
5367 { echo "$as_me:$LINENO: checking for $ac_word" >&5
5368 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5369 if test "${ac_cv_path_INSTALL_INFO+set}" = set; then
5370 echo $ECHO_N "(cached) $ECHO_C" >&6
5371 else
5372 case $INSTALL_INFO in
5373 [\\/]* | ?:[\\/]*)
5374 ac_cv_path_INSTALL_INFO="$INSTALL_INFO" # Let the user override the test with a path.
5377 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5378 for as_dir in /sbin
5380 IFS=$as_save_IFS
5381 test -z "$as_dir" && as_dir=.
5382 for ac_exec_ext in '' $ac_executable_extensions; do
5383 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5384 ac_cv_path_INSTALL_INFO="$as_dir/$ac_word$ac_exec_ext"
5385 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5386 break 2
5388 done
5389 done
5390 IFS=$as_save_IFS
5392 test -z "$ac_cv_path_INSTALL_INFO" && ac_cv_path_INSTALL_INFO=":"
5394 esac
5396 INSTALL_INFO=$ac_cv_path_INSTALL_INFO
5397 if test -n "$INSTALL_INFO"; then
5398 { echo "$as_me:$LINENO: result: $INSTALL_INFO" >&5
5399 echo "${ECHO_T}$INSTALL_INFO" >&6; }
5400 else
5401 { echo "$as_me:$LINENO: result: no" >&5
5402 echo "${ECHO_T}no" >&6; }
5406 # Extract the first word of "gzip", so it can be a program name with args.
5407 set dummy gzip; ac_word=$2
5408 { echo "$as_me:$LINENO: checking for $ac_word" >&5
5409 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5410 if test "${ac_cv_path_GZIP_PROG+set}" = set; then
5411 echo $ECHO_N "(cached) $ECHO_C" >&6
5412 else
5413 case $GZIP_PROG in
5414 [\\/]* | ?:[\\/]*)
5415 ac_cv_path_GZIP_PROG="$GZIP_PROG" # Let the user override the test with a path.
5418 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5419 for as_dir in $PATH
5421 IFS=$as_save_IFS
5422 test -z "$as_dir" && as_dir=.
5423 for ac_exec_ext in '' $ac_executable_extensions; do
5424 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5425 ac_cv_path_GZIP_PROG="$as_dir/$ac_word$ac_exec_ext"
5426 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5427 break 2
5429 done
5430 done
5431 IFS=$as_save_IFS
5434 esac
5436 GZIP_PROG=$ac_cv_path_GZIP_PROG
5437 if test -n "$GZIP_PROG"; then
5438 { echo "$as_me:$LINENO: result: $GZIP_PROG" >&5
5439 echo "${ECHO_T}$GZIP_PROG" >&6; }
5440 else
5441 { echo "$as_me:$LINENO: result: no" >&5
5442 echo "${ECHO_T}no" >&6; }
5448 ## Need makeinfo >= 4.6 (?) to build the manuals.
5449 # Extract the first word of "makeinfo", so it can be a program name with args.
5450 set dummy makeinfo; ac_word=$2
5451 { echo "$as_me:$LINENO: checking for $ac_word" >&5
5452 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5453 if test "${ac_cv_path_MAKEINFO+set}" = set; then
5454 echo $ECHO_N "(cached) $ECHO_C" >&6
5455 else
5456 case $MAKEINFO in
5457 [\\/]* | ?:[\\/]*)
5458 ac_cv_path_MAKEINFO="$MAKEINFO" # Let the user override the test with a path.
5461 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5462 for as_dir in $PATH
5464 IFS=$as_save_IFS
5465 test -z "$as_dir" && as_dir=.
5466 for ac_exec_ext in '' $ac_executable_extensions; do
5467 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5468 ac_cv_path_MAKEINFO="$as_dir/$ac_word$ac_exec_ext"
5469 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5470 break 2
5472 done
5473 done
5474 IFS=$as_save_IFS
5476 test -z "$ac_cv_path_MAKEINFO" && ac_cv_path_MAKEINFO="no"
5478 esac
5480 MAKEINFO=$ac_cv_path_MAKEINFO
5481 if test -n "$MAKEINFO"; then
5482 { echo "$as_me:$LINENO: result: $MAKEINFO" >&5
5483 echo "${ECHO_T}$MAKEINFO" >&6; }
5484 else
5485 { echo "$as_me:$LINENO: result: no" >&5
5486 echo "${ECHO_T}no" >&6; }
5490 if test "$MAKEINFO" != "no" && \
5491 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
5492 MAKEINFO=no
5495 if test "$MAKEINFO" = "no"; then
5496 { { echo "$as_me:$LINENO: error: makeinfo >= 4.6 is required " >&5
5497 echo "$as_me: error: makeinfo >= 4.6 is required " >&2;}
5498 { (exit 1); exit 1; }; }
5503 if test x$GCC = xyes && test "x$GCC_LINK_TEST_OPTIONS" != x
5504 then
5505 ac_link="$ac_link $GCC_LINK_TEST_OPTIONS"
5508 if test x$GCC = x && test "x$NON_GCC_LINK_TEST_OPTIONS" != x
5509 then
5510 ac_link="$ac_link $NON_GCC_LINK_TEST_OPTIONS"
5514 late_LDFLAGS=$LDFLAGS
5515 if test "$GCC" = yes; then
5516 LDFLAGS="$LDFLAGS -Wl,-znocombreloc"
5517 else
5518 LDFLAGS="$LDFLAGS -znocombreloc"
5521 { echo "$as_me:$LINENO: checking for -znocombreloc" >&5
5522 echo $ECHO_N "checking for -znocombreloc... $ECHO_C" >&6; }
5523 cat >conftest.$ac_ext <<_ACEOF
5524 main(){return 0;}
5525 _ACEOF
5526 rm -f conftest.$ac_objext conftest$ac_exeext
5527 if { (ac_try="$ac_link"
5528 case "(($ac_try" in
5529 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5530 *) ac_try_echo=$ac_try;;
5531 esac
5532 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5533 (eval "$ac_link") 2>conftest.er1
5534 ac_status=$?
5535 grep -v '^ *+' conftest.er1 >conftest.err
5536 rm -f conftest.er1
5537 cat conftest.err >&5
5538 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5539 (exit $ac_status); } && {
5540 test -z "$ac_c_werror_flag" ||
5541 test ! -s conftest.err
5542 } && test -s conftest$ac_exeext &&
5543 $as_test_x conftest$ac_exeext; then
5544 { echo "$as_me:$LINENO: result: yes" >&5
5545 echo "${ECHO_T}yes" >&6; }
5546 else
5547 echo "$as_me: failed program was:" >&5
5548 sed 's/^/| /' conftest.$ac_ext >&5
5550 LDFLAGS=$late_LDFLAGS
5551 { echo "$as_me:$LINENO: result: no" >&5
5552 echo "${ECHO_T}no" >&6; }
5555 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
5556 conftest$ac_exeext conftest.$ac_ext
5558 #### Extract some information from the operating system and machine files.
5560 { echo "$as_me:$LINENO: checking the machine- and system-dependent files to find out
5561 - which libraries the lib-src programs will want, and
5562 - whether the GNU malloc routines are usable..." >&5
5563 echo "$as_me: checking the machine- and system-dependent files to find out
5564 - which libraries the lib-src programs will want, and
5565 - whether the GNU malloc routines are usable..." >&6;}
5567 ### First figure out CFLAGS (which we use for running the compiler here)
5568 ### and REAL_CFLAGS (which we use for real compilation).
5569 ### The two are the same except on a few systems, where they are made
5570 ### different to work around various lossages. For example,
5571 ### GCC 2.5 on GNU/Linux needs them to be different because it treats -g
5572 ### as implying static linking.
5574 ### If the CFLAGS env var is specified, we use that value
5575 ### instead of the default.
5577 ### It's not important that this name contain the PID; you can't run
5578 ### two configures in the same directory and have anything work
5579 ### anyway.
5580 tempcname="conftest.c"
5582 echo '
5583 #include "'${srcdir}'/src/'${opsysfile}'"
5584 #include "'${srcdir}'/src/'${machfile}'"
5585 #ifndef LIBS_MACHINE
5586 #define LIBS_MACHINE
5587 #endif
5588 #ifndef LIBS_SYSTEM
5589 #define LIBS_SYSTEM
5590 #endif
5591 #ifndef C_SWITCH_SYSTEM
5592 #define C_SWITCH_SYSTEM
5593 #endif
5594 #ifndef C_SWITCH_MACHINE
5595 #define C_SWITCH_MACHINE
5596 #endif
5597 configure___ libsrc_libs=LIBS_MACHINE LIBS_SYSTEM
5598 configure___ c_switch_system=C_SWITCH_SYSTEM
5599 configure___ c_switch_machine=C_SWITCH_MACHINE
5601 #ifndef LIB_X11_LIB
5602 #define LIB_X11_LIB -lX11
5603 #endif
5605 #ifndef LIBX11_SYSTEM
5606 #define LIBX11_SYSTEM
5607 #endif
5608 configure___ LIBX=LIB_X11_LIB LIBX11_SYSTEM
5610 #ifdef UNEXEC
5611 configure___ unexec=UNEXEC
5612 #else
5613 configure___ unexec=unexec.o
5614 #endif
5616 #ifdef SYSTEM_MALLOC
5617 configure___ system_malloc=yes
5618 #else
5619 configure___ system_malloc=no
5620 #endif
5622 #ifdef USE_MMAP_FOR_BUFFERS
5623 configure___ use_mmap_for_buffers=yes
5624 #else
5625 configure___ use_mmap_for_buffers=no
5626 #endif
5628 #ifndef C_DEBUG_SWITCH
5629 #define C_DEBUG_SWITCH -g
5630 #endif
5632 #ifndef C_OPTIMIZE_SWITCH
5633 #ifdef __GNUC__
5634 #define C_OPTIMIZE_SWITCH -O2
5635 #else
5636 #define C_OPTIMIZE_SWITCH -O
5637 #endif
5638 #endif
5640 #ifndef C_WARNINGS_SWITCH
5641 #define C_WARNINGS_SWITCH ${C_WARNINGS_SWITCH}
5642 #endif
5644 #ifndef LD_SWITCH_MACHINE
5645 #define LD_SWITCH_MACHINE
5646 #endif
5648 #ifndef LD_SWITCH_SYSTEM
5649 #define LD_SWITCH_SYSTEM
5650 #endif
5652 #ifndef LD_SWITCH_X_SITE_AUX
5653 #define LD_SWITCH_X_SITE_AUX
5654 #endif
5656 configure___ ld_switch_system=LD_SWITCH_SYSTEM
5657 configure___ ld_switch_machine=LD_SWITCH_MACHINE
5659 #ifdef THIS_IS_CONFIGURE
5661 /* Get the CFLAGS for tests in configure. */
5662 #ifdef __GNUC__
5663 configure___ CFLAGS=C_DEBUG_SWITCH C_OPTIMIZE_SWITCH '${SPECIFIED_CFLAGS}'
5664 #else
5665 configure___ CFLAGS=C_DEBUG_SWITCH '${SPECIFIED_CFLAGS}'
5666 #endif
5668 #else /* not THIS_IS_CONFIGURE */
5670 /* Get the CFLAGS for real compilation. */
5671 #ifdef __GNUC__
5672 configure___ REAL_CFLAGS=C_DEBUG_SWITCH C_OPTIMIZE_SWITCH C_WARNINGS_SWITCH '${SPECIFIED_CFLAGS}'
5673 #else
5674 configure___ REAL_CFLAGS=C_DEBUG_SWITCH '${SPECIFIED_CFLAGS}'
5675 #endif
5677 #endif /* not THIS_IS_CONFIGURE */
5678 ' > ${tempcname}
5680 # The value of CPP is a quoted variable reference, so we need to do this
5681 # to get its actual value...
5682 CPP=`eval "echo $CPP"`
5683 eval `${CPP} -Isrc ${tempcname} \
5684 | sed -n -e 's/^configure___ \([^=]*=\)\(.*\)$/\1"\2"/p'`
5685 if test "x$SPECIFIED_CFLAGS" = x; then
5686 eval `${CPP} -Isrc -DTHIS_IS_CONFIGURE ${tempcname} \
5687 | sed -n -e 's/^configure___ \([^=]*=\)\(.*\)$/\1"\2"/p'`
5688 else
5689 REAL_CFLAGS="$CFLAGS"
5691 rm ${tempcname}
5693 ac_link="$ac_link $ld_switch_machine $ld_switch_system"
5695 ### Make sure subsequent tests use flags consistent with the build flags.
5697 if test x"${OVERRIDE_CPPFLAGS}" != x; then
5698 CPPFLAGS="${OVERRIDE_CPPFLAGS}"
5699 else
5700 CPPFLAGS="$c_switch_system $c_switch_machine $CPPFLAGS"
5705 # Check whether --enable-largefile was given.
5706 if test "${enable_largefile+set}" = set; then
5707 enableval=$enable_largefile;
5710 if test "$enable_largefile" != no; then
5712 { echo "$as_me:$LINENO: checking for special C compiler options needed for large files" >&5
5713 echo $ECHO_N "checking for special C compiler options needed for large files... $ECHO_C" >&6; }
5714 if test "${ac_cv_sys_largefile_CC+set}" = set; then
5715 echo $ECHO_N "(cached) $ECHO_C" >&6
5716 else
5717 ac_cv_sys_largefile_CC=no
5718 if test "$GCC" != yes; then
5719 ac_save_CC=$CC
5720 while :; do
5721 # IRIX 6.2 and later do not support large files by default,
5722 # so use the C compiler's -n32 option if that helps.
5723 cat >conftest.$ac_ext <<_ACEOF
5724 /* confdefs.h. */
5725 _ACEOF
5726 cat confdefs.h >>conftest.$ac_ext
5727 cat >>conftest.$ac_ext <<_ACEOF
5728 /* end confdefs.h. */
5729 #include <sys/types.h>
5730 /* Check that off_t can represent 2**63 - 1 correctly.
5731 We can't simply define LARGE_OFF_T to be 9223372036854775807,
5732 since some C++ compilers masquerading as C compilers
5733 incorrectly reject 9223372036854775807. */
5734 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
5735 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
5736 && LARGE_OFF_T % 2147483647 == 1)
5737 ? 1 : -1];
5739 main ()
5743 return 0;
5745 _ACEOF
5746 rm -f conftest.$ac_objext
5747 if { (ac_try="$ac_compile"
5748 case "(($ac_try" in
5749 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5750 *) ac_try_echo=$ac_try;;
5751 esac
5752 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5753 (eval "$ac_compile") 2>conftest.er1
5754 ac_status=$?
5755 grep -v '^ *+' conftest.er1 >conftest.err
5756 rm -f conftest.er1
5757 cat conftest.err >&5
5758 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5759 (exit $ac_status); } && {
5760 test -z "$ac_c_werror_flag" ||
5761 test ! -s conftest.err
5762 } && test -s conftest.$ac_objext; then
5763 break
5764 else
5765 echo "$as_me: failed program was:" >&5
5766 sed 's/^/| /' conftest.$ac_ext >&5
5771 rm -f core conftest.err conftest.$ac_objext
5772 CC="$CC -n32"
5773 rm -f conftest.$ac_objext
5774 if { (ac_try="$ac_compile"
5775 case "(($ac_try" in
5776 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5777 *) ac_try_echo=$ac_try;;
5778 esac
5779 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5780 (eval "$ac_compile") 2>conftest.er1
5781 ac_status=$?
5782 grep -v '^ *+' conftest.er1 >conftest.err
5783 rm -f conftest.er1
5784 cat conftest.err >&5
5785 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5786 (exit $ac_status); } && {
5787 test -z "$ac_c_werror_flag" ||
5788 test ! -s conftest.err
5789 } && test -s conftest.$ac_objext; then
5790 ac_cv_sys_largefile_CC=' -n32'; break
5791 else
5792 echo "$as_me: failed program was:" >&5
5793 sed 's/^/| /' conftest.$ac_ext >&5
5798 rm -f core conftest.err conftest.$ac_objext
5799 break
5800 done
5801 CC=$ac_save_CC
5802 rm -f conftest.$ac_ext
5805 { echo "$as_me:$LINENO: result: $ac_cv_sys_largefile_CC" >&5
5806 echo "${ECHO_T}$ac_cv_sys_largefile_CC" >&6; }
5807 if test "$ac_cv_sys_largefile_CC" != no; then
5808 CC=$CC$ac_cv_sys_largefile_CC
5811 { echo "$as_me:$LINENO: checking for _FILE_OFFSET_BITS value needed for large files" >&5
5812 echo $ECHO_N "checking for _FILE_OFFSET_BITS value needed for large files... $ECHO_C" >&6; }
5813 if test "${ac_cv_sys_file_offset_bits+set}" = set; then
5814 echo $ECHO_N "(cached) $ECHO_C" >&6
5815 else
5816 while :; do
5817 cat >conftest.$ac_ext <<_ACEOF
5818 /* confdefs.h. */
5819 _ACEOF
5820 cat confdefs.h >>conftest.$ac_ext
5821 cat >>conftest.$ac_ext <<_ACEOF
5822 /* end confdefs.h. */
5823 #include <sys/types.h>
5824 /* Check that off_t can represent 2**63 - 1 correctly.
5825 We can't simply define LARGE_OFF_T to be 9223372036854775807,
5826 since some C++ compilers masquerading as C compilers
5827 incorrectly reject 9223372036854775807. */
5828 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
5829 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
5830 && LARGE_OFF_T % 2147483647 == 1)
5831 ? 1 : -1];
5833 main ()
5837 return 0;
5839 _ACEOF
5840 rm -f conftest.$ac_objext
5841 if { (ac_try="$ac_compile"
5842 case "(($ac_try" in
5843 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5844 *) ac_try_echo=$ac_try;;
5845 esac
5846 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5847 (eval "$ac_compile") 2>conftest.er1
5848 ac_status=$?
5849 grep -v '^ *+' conftest.er1 >conftest.err
5850 rm -f conftest.er1
5851 cat conftest.err >&5
5852 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5853 (exit $ac_status); } && {
5854 test -z "$ac_c_werror_flag" ||
5855 test ! -s conftest.err
5856 } && test -s conftest.$ac_objext; then
5857 ac_cv_sys_file_offset_bits=no; break
5858 else
5859 echo "$as_me: failed program was:" >&5
5860 sed 's/^/| /' conftest.$ac_ext >&5
5865 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5866 cat >conftest.$ac_ext <<_ACEOF
5867 /* confdefs.h. */
5868 _ACEOF
5869 cat confdefs.h >>conftest.$ac_ext
5870 cat >>conftest.$ac_ext <<_ACEOF
5871 /* end confdefs.h. */
5872 #define _FILE_OFFSET_BITS 64
5873 #include <sys/types.h>
5874 /* Check that off_t can represent 2**63 - 1 correctly.
5875 We can't simply define LARGE_OFF_T to be 9223372036854775807,
5876 since some C++ compilers masquerading as C compilers
5877 incorrectly reject 9223372036854775807. */
5878 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
5879 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
5880 && LARGE_OFF_T % 2147483647 == 1)
5881 ? 1 : -1];
5883 main ()
5887 return 0;
5889 _ACEOF
5890 rm -f conftest.$ac_objext
5891 if { (ac_try="$ac_compile"
5892 case "(($ac_try" in
5893 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5894 *) ac_try_echo=$ac_try;;
5895 esac
5896 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5897 (eval "$ac_compile") 2>conftest.er1
5898 ac_status=$?
5899 grep -v '^ *+' conftest.er1 >conftest.err
5900 rm -f conftest.er1
5901 cat conftest.err >&5
5902 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5903 (exit $ac_status); } && {
5904 test -z "$ac_c_werror_flag" ||
5905 test ! -s conftest.err
5906 } && test -s conftest.$ac_objext; then
5907 ac_cv_sys_file_offset_bits=64; break
5908 else
5909 echo "$as_me: failed program was:" >&5
5910 sed 's/^/| /' conftest.$ac_ext >&5
5915 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5916 ac_cv_sys_file_offset_bits=unknown
5917 break
5918 done
5920 { echo "$as_me:$LINENO: result: $ac_cv_sys_file_offset_bits" >&5
5921 echo "${ECHO_T}$ac_cv_sys_file_offset_bits" >&6; }
5922 case $ac_cv_sys_file_offset_bits in #(
5923 no | unknown) ;;
5925 cat >>confdefs.h <<_ACEOF
5926 #define _FILE_OFFSET_BITS $ac_cv_sys_file_offset_bits
5927 _ACEOF
5929 esac
5930 rm -f conftest*
5931 if test $ac_cv_sys_file_offset_bits = unknown; then
5932 { echo "$as_me:$LINENO: checking for _LARGE_FILES value needed for large files" >&5
5933 echo $ECHO_N "checking for _LARGE_FILES value needed for large files... $ECHO_C" >&6; }
5934 if test "${ac_cv_sys_large_files+set}" = set; then
5935 echo $ECHO_N "(cached) $ECHO_C" >&6
5936 else
5937 while :; do
5938 cat >conftest.$ac_ext <<_ACEOF
5939 /* confdefs.h. */
5940 _ACEOF
5941 cat confdefs.h >>conftest.$ac_ext
5942 cat >>conftest.$ac_ext <<_ACEOF
5943 /* end confdefs.h. */
5944 #include <sys/types.h>
5945 /* Check that off_t can represent 2**63 - 1 correctly.
5946 We can't simply define LARGE_OFF_T to be 9223372036854775807,
5947 since some C++ compilers masquerading as C compilers
5948 incorrectly reject 9223372036854775807. */
5949 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
5950 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
5951 && LARGE_OFF_T % 2147483647 == 1)
5952 ? 1 : -1];
5954 main ()
5958 return 0;
5960 _ACEOF
5961 rm -f conftest.$ac_objext
5962 if { (ac_try="$ac_compile"
5963 case "(($ac_try" in
5964 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5965 *) ac_try_echo=$ac_try;;
5966 esac
5967 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5968 (eval "$ac_compile") 2>conftest.er1
5969 ac_status=$?
5970 grep -v '^ *+' conftest.er1 >conftest.err
5971 rm -f conftest.er1
5972 cat conftest.err >&5
5973 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5974 (exit $ac_status); } && {
5975 test -z "$ac_c_werror_flag" ||
5976 test ! -s conftest.err
5977 } && test -s conftest.$ac_objext; then
5978 ac_cv_sys_large_files=no; break
5979 else
5980 echo "$as_me: failed program was:" >&5
5981 sed 's/^/| /' conftest.$ac_ext >&5
5986 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5987 cat >conftest.$ac_ext <<_ACEOF
5988 /* confdefs.h. */
5989 _ACEOF
5990 cat confdefs.h >>conftest.$ac_ext
5991 cat >>conftest.$ac_ext <<_ACEOF
5992 /* end confdefs.h. */
5993 #define _LARGE_FILES 1
5994 #include <sys/types.h>
5995 /* Check that off_t can represent 2**63 - 1 correctly.
5996 We can't simply define LARGE_OFF_T to be 9223372036854775807,
5997 since some C++ compilers masquerading as C compilers
5998 incorrectly reject 9223372036854775807. */
5999 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
6000 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
6001 && LARGE_OFF_T % 2147483647 == 1)
6002 ? 1 : -1];
6004 main ()
6008 return 0;
6010 _ACEOF
6011 rm -f conftest.$ac_objext
6012 if { (ac_try="$ac_compile"
6013 case "(($ac_try" in
6014 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6015 *) ac_try_echo=$ac_try;;
6016 esac
6017 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6018 (eval "$ac_compile") 2>conftest.er1
6019 ac_status=$?
6020 grep -v '^ *+' conftest.er1 >conftest.err
6021 rm -f conftest.er1
6022 cat conftest.err >&5
6023 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6024 (exit $ac_status); } && {
6025 test -z "$ac_c_werror_flag" ||
6026 test ! -s conftest.err
6027 } && test -s conftest.$ac_objext; then
6028 ac_cv_sys_large_files=1; break
6029 else
6030 echo "$as_me: failed program was:" >&5
6031 sed 's/^/| /' conftest.$ac_ext >&5
6036 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6037 ac_cv_sys_large_files=unknown
6038 break
6039 done
6041 { echo "$as_me:$LINENO: result: $ac_cv_sys_large_files" >&5
6042 echo "${ECHO_T}$ac_cv_sys_large_files" >&6; }
6043 case $ac_cv_sys_large_files in #(
6044 no | unknown) ;;
6046 cat >>confdefs.h <<_ACEOF
6047 #define _LARGE_FILES $ac_cv_sys_large_files
6048 _ACEOF
6050 esac
6051 rm -f conftest*
6057 ### The standard library on x86-64 and s390x GNU/Linux distributions can
6058 ### be located in either /usr/lib64 or /usr/lib.
6059 case "${canonical}" in
6060 x86_64-*-linux-gnu* | s390x-*-linux-gnu* )
6061 if test -d /usr/lib64; then
6063 cat >>confdefs.h <<\_ACEOF
6064 #define HAVE_LIB64_DIR 1
6065 _ACEOF
6068 esac
6073 if test "${with_sound}" != "no"; then
6074 # Sound support for GNU/Linux and the free BSDs.
6078 for ac_header in machine/soundcard.h sys/soundcard.h soundcard.h
6080 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
6081 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
6082 { echo "$as_me:$LINENO: checking for $ac_header" >&5
6083 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
6084 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
6085 echo $ECHO_N "(cached) $ECHO_C" >&6
6087 ac_res=`eval echo '${'$as_ac_Header'}'`
6088 { echo "$as_me:$LINENO: result: $ac_res" >&5
6089 echo "${ECHO_T}$ac_res" >&6; }
6090 else
6091 # Is the header compilable?
6092 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
6093 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
6094 cat >conftest.$ac_ext <<_ACEOF
6095 /* confdefs.h. */
6096 _ACEOF
6097 cat confdefs.h >>conftest.$ac_ext
6098 cat >>conftest.$ac_ext <<_ACEOF
6099 /* end confdefs.h. */
6100 $ac_includes_default
6101 #include <$ac_header>
6102 _ACEOF
6103 rm -f conftest.$ac_objext
6104 if { (ac_try="$ac_compile"
6105 case "(($ac_try" in
6106 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6107 *) ac_try_echo=$ac_try;;
6108 esac
6109 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6110 (eval "$ac_compile") 2>conftest.er1
6111 ac_status=$?
6112 grep -v '^ *+' conftest.er1 >conftest.err
6113 rm -f conftest.er1
6114 cat conftest.err >&5
6115 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6116 (exit $ac_status); } && {
6117 test -z "$ac_c_werror_flag" ||
6118 test ! -s conftest.err
6119 } && test -s conftest.$ac_objext; then
6120 ac_header_compiler=yes
6121 else
6122 echo "$as_me: failed program was:" >&5
6123 sed 's/^/| /' conftest.$ac_ext >&5
6125 ac_header_compiler=no
6128 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6129 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
6130 echo "${ECHO_T}$ac_header_compiler" >&6; }
6132 # Is the header present?
6133 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
6134 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
6135 cat >conftest.$ac_ext <<_ACEOF
6136 /* confdefs.h. */
6137 _ACEOF
6138 cat confdefs.h >>conftest.$ac_ext
6139 cat >>conftest.$ac_ext <<_ACEOF
6140 /* end confdefs.h. */
6141 #include <$ac_header>
6142 _ACEOF
6143 if { (ac_try="$ac_cpp conftest.$ac_ext"
6144 case "(($ac_try" in
6145 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6146 *) ac_try_echo=$ac_try;;
6147 esac
6148 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6149 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
6150 ac_status=$?
6151 grep -v '^ *+' conftest.er1 >conftest.err
6152 rm -f conftest.er1
6153 cat conftest.err >&5
6154 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6155 (exit $ac_status); } >/dev/null && {
6156 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
6157 test ! -s conftest.err
6158 }; then
6159 ac_header_preproc=yes
6160 else
6161 echo "$as_me: failed program was:" >&5
6162 sed 's/^/| /' conftest.$ac_ext >&5
6164 ac_header_preproc=no
6167 rm -f conftest.err conftest.$ac_ext
6168 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
6169 echo "${ECHO_T}$ac_header_preproc" >&6; }
6171 # So? What about this header?
6172 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
6173 yes:no: )
6174 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
6175 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
6176 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
6177 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
6178 ac_header_preproc=yes
6180 no:yes:* )
6181 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
6182 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
6183 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
6184 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
6185 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
6186 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
6187 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
6188 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
6189 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
6190 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
6191 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
6192 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
6195 esac
6196 { echo "$as_me:$LINENO: checking for $ac_header" >&5
6197 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
6198 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
6199 echo $ECHO_N "(cached) $ECHO_C" >&6
6200 else
6201 eval "$as_ac_Header=\$ac_header_preproc"
6203 ac_res=`eval echo '${'$as_ac_Header'}'`
6204 { echo "$as_me:$LINENO: result: $ac_res" >&5
6205 echo "${ECHO_T}$ac_res" >&6; }
6208 if test `eval echo '${'$as_ac_Header'}'` = yes; then
6209 cat >>confdefs.h <<_ACEOF
6210 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
6211 _ACEOF
6215 done
6217 # Emulation library used on NetBSD.
6218 { echo "$as_me:$LINENO: checking for _oss_ioctl in -lossaudio" >&5
6219 echo $ECHO_N "checking for _oss_ioctl in -lossaudio... $ECHO_C" >&6; }
6220 if test "${ac_cv_lib_ossaudio__oss_ioctl+set}" = set; then
6221 echo $ECHO_N "(cached) $ECHO_C" >&6
6222 else
6223 ac_check_lib_save_LIBS=$LIBS
6224 LIBS="-lossaudio $LIBS"
6225 cat >conftest.$ac_ext <<_ACEOF
6226 /* confdefs.h. */
6227 _ACEOF
6228 cat confdefs.h >>conftest.$ac_ext
6229 cat >>conftest.$ac_ext <<_ACEOF
6230 /* end confdefs.h. */
6232 /* Override any GCC internal prototype to avoid an error.
6233 Use char because int might match the return type of a GCC
6234 builtin and then its argument prototype would still apply. */
6235 #ifdef __cplusplus
6236 extern "C"
6237 #endif
6238 char _oss_ioctl ();
6240 main ()
6242 return _oss_ioctl ();
6244 return 0;
6246 _ACEOF
6247 rm -f conftest.$ac_objext conftest$ac_exeext
6248 if { (ac_try="$ac_link"
6249 case "(($ac_try" in
6250 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6251 *) ac_try_echo=$ac_try;;
6252 esac
6253 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6254 (eval "$ac_link") 2>conftest.er1
6255 ac_status=$?
6256 grep -v '^ *+' conftest.er1 >conftest.err
6257 rm -f conftest.er1
6258 cat conftest.err >&5
6259 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6260 (exit $ac_status); } && {
6261 test -z "$ac_c_werror_flag" ||
6262 test ! -s conftest.err
6263 } && test -s conftest$ac_exeext &&
6264 $as_test_x conftest$ac_exeext; then
6265 ac_cv_lib_ossaudio__oss_ioctl=yes
6266 else
6267 echo "$as_me: failed program was:" >&5
6268 sed 's/^/| /' conftest.$ac_ext >&5
6270 ac_cv_lib_ossaudio__oss_ioctl=no
6273 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
6274 conftest$ac_exeext conftest.$ac_ext
6275 LIBS=$ac_check_lib_save_LIBS
6277 { echo "$as_me:$LINENO: result: $ac_cv_lib_ossaudio__oss_ioctl" >&5
6278 echo "${ECHO_T}$ac_cv_lib_ossaudio__oss_ioctl" >&6; }
6279 if test $ac_cv_lib_ossaudio__oss_ioctl = yes; then
6280 LIBSOUND=-lossaudio
6281 else
6282 LIBSOUND=
6287 ALSA_REQUIRED=1.0.0
6288 ALSA_MODULES="alsa >= $ALSA_REQUIRED"
6290 succeeded=no
6292 # Extract the first word of "pkg-config", so it can be a program name with args.
6293 set dummy pkg-config; ac_word=$2
6294 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6295 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6296 if test "${ac_cv_path_PKG_CONFIG+set}" = set; then
6297 echo $ECHO_N "(cached) $ECHO_C" >&6
6298 else
6299 case $PKG_CONFIG in
6300 [\\/]* | ?:[\\/]*)
6301 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
6304 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6305 for as_dir in $PATH
6307 IFS=$as_save_IFS
6308 test -z "$as_dir" && as_dir=.
6309 for ac_exec_ext in '' $ac_executable_extensions; do
6310 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6311 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
6312 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6313 break 2
6315 done
6316 done
6317 IFS=$as_save_IFS
6319 test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG="no"
6321 esac
6323 PKG_CONFIG=$ac_cv_path_PKG_CONFIG
6324 if test -n "$PKG_CONFIG"; then
6325 { echo "$as_me:$LINENO: result: $PKG_CONFIG" >&5
6326 echo "${ECHO_T}$PKG_CONFIG" >&6; }
6327 else
6328 { echo "$as_me:$LINENO: result: no" >&5
6329 echo "${ECHO_T}no" >&6; }
6334 if test "$PKG_CONFIG" = "no" ; then
6335 HAVE_ALSA=no
6336 else
6337 PKG_CONFIG_MIN_VERSION=0.9.0
6338 if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
6339 { echo "$as_me:$LINENO: checking for $ALSA_MODULES" >&5
6340 echo $ECHO_N "checking for $ALSA_MODULES... $ECHO_C" >&6; }
6342 if $PKG_CONFIG --exists "$ALSA_MODULES" 2>&5; then
6343 { echo "$as_me:$LINENO: result: yes" >&5
6344 echo "${ECHO_T}yes" >&6; }
6345 succeeded=yes
6347 { echo "$as_me:$LINENO: checking ALSA_CFLAGS" >&5
6348 echo $ECHO_N "checking ALSA_CFLAGS... $ECHO_C" >&6; }
6349 ALSA_CFLAGS=`$PKG_CONFIG --cflags "$ALSA_MODULES"|sed -e 's,///*,/,g'`
6350 { echo "$as_me:$LINENO: result: $ALSA_CFLAGS" >&5
6351 echo "${ECHO_T}$ALSA_CFLAGS" >&6; }
6353 { echo "$as_me:$LINENO: checking ALSA_LIBS" >&5
6354 echo $ECHO_N "checking ALSA_LIBS... $ECHO_C" >&6; }
6355 ALSA_LIBS=`$PKG_CONFIG --libs "$ALSA_MODULES"|sed -e 's,///*,/,g'`
6356 { echo "$as_me:$LINENO: result: $ALSA_LIBS" >&5
6357 echo "${ECHO_T}$ALSA_LIBS" >&6; }
6358 else
6359 { echo "$as_me:$LINENO: result: no" >&5
6360 echo "${ECHO_T}no" >&6; }
6361 ALSA_CFLAGS=""
6362 ALSA_LIBS=""
6363 ## If we have a custom action on failure, don't print errors, but
6364 ## do set a variable so people can do so.
6365 ALSA_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "$ALSA_MODULES"`
6371 else
6372 echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
6373 echo "*** See http://www.freedesktop.org/software/pkgconfig"
6377 if test $succeeded = yes; then
6378 HAVE_ALSA=yes
6379 else
6380 HAVE_ALSA=no
6383 if test $HAVE_ALSA = yes; then
6384 SAVE_CFLAGS="$CFLAGS"
6385 SAVE_LDFLAGS="$LDFLAGS"
6386 CFLAGS="$ALSA_CFLAGS $CFLAGS"
6387 LDFLAGS="$ALSA_LIBS $LDFLAGS"
6388 cat >conftest.$ac_ext <<_ACEOF
6389 /* confdefs.h. */
6390 _ACEOF
6391 cat confdefs.h >>conftest.$ac_ext
6392 cat >>conftest.$ac_ext <<_ACEOF
6393 /* end confdefs.h. */
6394 #include <asoundlib.h>
6396 main ()
6398 snd_lib_error_set_handler (0);
6400 return 0;
6402 _ACEOF
6403 rm -f conftest.$ac_objext
6404 if { (ac_try="$ac_compile"
6405 case "(($ac_try" in
6406 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6407 *) ac_try_echo=$ac_try;;
6408 esac
6409 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6410 (eval "$ac_compile") 2>conftest.er1
6411 ac_status=$?
6412 grep -v '^ *+' conftest.er1 >conftest.err
6413 rm -f conftest.er1
6414 cat conftest.err >&5
6415 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6416 (exit $ac_status); } && {
6417 test -z "$ac_c_werror_flag" ||
6418 test ! -s conftest.err
6419 } && test -s conftest.$ac_objext; then
6420 emacs_alsa_normal=yes
6421 else
6422 echo "$as_me: failed program was:" >&5
6423 sed 's/^/| /' conftest.$ac_ext >&5
6425 emacs_alsa_normal=no
6428 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6429 if test "$emacs_alsa_normal" != yes; then
6430 cat >conftest.$ac_ext <<_ACEOF
6431 /* confdefs.h. */
6432 _ACEOF
6433 cat confdefs.h >>conftest.$ac_ext
6434 cat >>conftest.$ac_ext <<_ACEOF
6435 /* end confdefs.h. */
6436 #include <alsa/asoundlib.h>
6438 main ()
6440 snd_lib_error_set_handler (0);
6442 return 0;
6444 _ACEOF
6445 rm -f conftest.$ac_objext
6446 if { (ac_try="$ac_compile"
6447 case "(($ac_try" in
6448 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6449 *) ac_try_echo=$ac_try;;
6450 esac
6451 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6452 (eval "$ac_compile") 2>conftest.er1
6453 ac_status=$?
6454 grep -v '^ *+' conftest.er1 >conftest.err
6455 rm -f conftest.er1
6456 cat conftest.err >&5
6457 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6458 (exit $ac_status); } && {
6459 test -z "$ac_c_werror_flag" ||
6460 test ! -s conftest.err
6461 } && test -s conftest.$ac_objext; then
6462 emacs_alsa_subdir=yes
6463 else
6464 echo "$as_me: failed program was:" >&5
6465 sed 's/^/| /' conftest.$ac_ext >&5
6467 emacs_alsa_subdir=no
6470 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6471 if test "$emacs_alsa_subdir" != yes; then
6472 { { echo "$as_me:$LINENO: error: pkg-config found alsa, but it does not compile. See config.log for error messages." >&5
6473 echo "$as_me: error: pkg-config found alsa, but it does not compile. See config.log for error messages." >&2;}
6474 { (exit 1); exit 1; }; }
6476 ALSA_CFLAGS="$ALSA_CFLAGS -DALSA_SUBDIR_INCLUDE"
6479 CFLAGS="$SAVE_CFLAGS"
6480 LDFLAGS="$SAVE_LDFLAGS"
6481 LIBSOUND="$LIBSOUND $ALSA_LIBS"
6482 CFLAGS_SOUND="$CFLAGS_SOUND $ALSA_CFLAGS"
6484 cat >>confdefs.h <<\_ACEOF
6485 #define HAVE_ALSA 1
6486 _ACEOF
6517 for ac_header in sys/select.h sys/timeb.h sys/time.h unistd.h utime.h \
6518 linux/version.h sys/systeminfo.h termios.h limits.h string.h stdlib.h \
6519 termcap.h stdio_ext.h fcntl.h strings.h coff.h pty.h sys/mman.h \
6520 sys/param.h sys/vlimit.h sys/resource.h locale.h sys/_mbstate_t.h \
6521 sys/utsname.h pwd.h
6523 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
6524 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
6525 { echo "$as_me:$LINENO: checking for $ac_header" >&5
6526 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
6527 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
6528 echo $ECHO_N "(cached) $ECHO_C" >&6
6530 ac_res=`eval echo '${'$as_ac_Header'}'`
6531 { echo "$as_me:$LINENO: result: $ac_res" >&5
6532 echo "${ECHO_T}$ac_res" >&6; }
6533 else
6534 # Is the header compilable?
6535 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
6536 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
6537 cat >conftest.$ac_ext <<_ACEOF
6538 /* confdefs.h. */
6539 _ACEOF
6540 cat confdefs.h >>conftest.$ac_ext
6541 cat >>conftest.$ac_ext <<_ACEOF
6542 /* end confdefs.h. */
6543 $ac_includes_default
6544 #include <$ac_header>
6545 _ACEOF
6546 rm -f conftest.$ac_objext
6547 if { (ac_try="$ac_compile"
6548 case "(($ac_try" in
6549 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6550 *) ac_try_echo=$ac_try;;
6551 esac
6552 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6553 (eval "$ac_compile") 2>conftest.er1
6554 ac_status=$?
6555 grep -v '^ *+' conftest.er1 >conftest.err
6556 rm -f conftest.er1
6557 cat conftest.err >&5
6558 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6559 (exit $ac_status); } && {
6560 test -z "$ac_c_werror_flag" ||
6561 test ! -s conftest.err
6562 } && test -s conftest.$ac_objext; then
6563 ac_header_compiler=yes
6564 else
6565 echo "$as_me: failed program was:" >&5
6566 sed 's/^/| /' conftest.$ac_ext >&5
6568 ac_header_compiler=no
6571 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6572 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
6573 echo "${ECHO_T}$ac_header_compiler" >&6; }
6575 # Is the header present?
6576 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
6577 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
6578 cat >conftest.$ac_ext <<_ACEOF
6579 /* confdefs.h. */
6580 _ACEOF
6581 cat confdefs.h >>conftest.$ac_ext
6582 cat >>conftest.$ac_ext <<_ACEOF
6583 /* end confdefs.h. */
6584 #include <$ac_header>
6585 _ACEOF
6586 if { (ac_try="$ac_cpp conftest.$ac_ext"
6587 case "(($ac_try" in
6588 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6589 *) ac_try_echo=$ac_try;;
6590 esac
6591 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6592 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
6593 ac_status=$?
6594 grep -v '^ *+' conftest.er1 >conftest.err
6595 rm -f conftest.er1
6596 cat conftest.err >&5
6597 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6598 (exit $ac_status); } >/dev/null && {
6599 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
6600 test ! -s conftest.err
6601 }; then
6602 ac_header_preproc=yes
6603 else
6604 echo "$as_me: failed program was:" >&5
6605 sed 's/^/| /' conftest.$ac_ext >&5
6607 ac_header_preproc=no
6610 rm -f conftest.err conftest.$ac_ext
6611 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
6612 echo "${ECHO_T}$ac_header_preproc" >&6; }
6614 # So? What about this header?
6615 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
6616 yes:no: )
6617 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
6618 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
6619 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
6620 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
6621 ac_header_preproc=yes
6623 no:yes:* )
6624 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
6625 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
6626 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
6627 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
6628 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
6629 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
6630 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
6631 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
6632 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
6633 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
6634 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
6635 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
6638 esac
6639 { echo "$as_me:$LINENO: checking for $ac_header" >&5
6640 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
6641 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
6642 echo $ECHO_N "(cached) $ECHO_C" >&6
6643 else
6644 eval "$as_ac_Header=\$ac_header_preproc"
6646 ac_res=`eval echo '${'$as_ac_Header'}'`
6647 { echo "$as_me:$LINENO: result: $ac_res" >&5
6648 echo "${ECHO_T}$ac_res" >&6; }
6651 if test `eval echo '${'$as_ac_Header'}'` = yes; then
6652 cat >>confdefs.h <<_ACEOF
6653 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
6654 _ACEOF
6658 done
6661 { echo "$as_me:$LINENO: checking if personality LINUX32 can be set" >&5
6662 echo $ECHO_N "checking if personality LINUX32 can be set... $ECHO_C" >&6; }
6663 cat >conftest.$ac_ext <<_ACEOF
6664 /* confdefs.h. */
6665 _ACEOF
6666 cat confdefs.h >>conftest.$ac_ext
6667 cat >>conftest.$ac_ext <<_ACEOF
6668 /* end confdefs.h. */
6669 #include <sys/personality.h>
6671 main ()
6673 personality (PER_LINUX32)
6675 return 0;
6677 _ACEOF
6678 rm -f conftest.$ac_objext
6679 if { (ac_try="$ac_compile"
6680 case "(($ac_try" in
6681 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6682 *) ac_try_echo=$ac_try;;
6683 esac
6684 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6685 (eval "$ac_compile") 2>conftest.er1
6686 ac_status=$?
6687 grep -v '^ *+' conftest.er1 >conftest.err
6688 rm -f conftest.er1
6689 cat conftest.err >&5
6690 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6691 (exit $ac_status); } && {
6692 test -z "$ac_c_werror_flag" ||
6693 test ! -s conftest.err
6694 } && test -s conftest.$ac_objext; then
6695 emacs_cv_personality_linux32=yes
6696 else
6697 echo "$as_me: failed program was:" >&5
6698 sed 's/^/| /' conftest.$ac_ext >&5
6700 emacs_cv_personality_linux32=no
6703 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6704 { echo "$as_me:$LINENO: result: $emacs_cv_personality_linux32" >&5
6705 echo "${ECHO_T}$emacs_cv_personality_linux32" >&6; }
6707 if test $emacs_cv_personality_linux32 = yes; then
6709 cat >>confdefs.h <<\_ACEOF
6710 #define HAVE_PERSONALITY_LINUX32 1
6711 _ACEOF
6716 for ac_header in term.h
6718 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
6719 { echo "$as_me:$LINENO: checking for $ac_header" >&5
6720 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
6721 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
6722 echo $ECHO_N "(cached) $ECHO_C" >&6
6723 else
6724 cat >conftest.$ac_ext <<_ACEOF
6725 /* confdefs.h. */
6726 _ACEOF
6727 cat confdefs.h >>conftest.$ac_ext
6728 cat >>conftest.$ac_ext <<_ACEOF
6729 /* end confdefs.h. */
6730 #include <$ac_header>
6731 _ACEOF
6732 if { (ac_try="$ac_cpp conftest.$ac_ext"
6733 case "(($ac_try" in
6734 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6735 *) ac_try_echo=$ac_try;;
6736 esac
6737 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6738 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
6739 ac_status=$?
6740 grep -v '^ *+' conftest.er1 >conftest.err
6741 rm -f conftest.er1
6742 cat conftest.err >&5
6743 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6744 (exit $ac_status); } >/dev/null && {
6745 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
6746 test ! -s conftest.err
6747 }; then
6748 eval "$as_ac_Header=yes"
6749 else
6750 echo "$as_me: failed program was:" >&5
6751 sed 's/^/| /' conftest.$ac_ext >&5
6753 eval "$as_ac_Header=no"
6756 rm -f conftest.err conftest.$ac_ext
6758 ac_res=`eval echo '${'$as_ac_Header'}'`
6759 { echo "$as_me:$LINENO: result: $ac_res" >&5
6760 echo "${ECHO_T}$ac_res" >&6; }
6761 if test `eval echo '${'$as_ac_Header'}'` = yes; then
6762 cat >>confdefs.h <<_ACEOF
6763 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
6764 _ACEOF
6768 done
6770 { echo "$as_me:$LINENO: checking for ANSI C header files" >&5
6771 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6; }
6772 if test "${ac_cv_header_stdc+set}" = set; then
6773 echo $ECHO_N "(cached) $ECHO_C" >&6
6774 else
6775 cat >conftest.$ac_ext <<_ACEOF
6776 /* confdefs.h. */
6777 _ACEOF
6778 cat confdefs.h >>conftest.$ac_ext
6779 cat >>conftest.$ac_ext <<_ACEOF
6780 /* end confdefs.h. */
6781 #include <stdlib.h>
6782 #include <stdarg.h>
6783 #include <string.h>
6784 #include <float.h>
6787 main ()
6791 return 0;
6793 _ACEOF
6794 rm -f conftest.$ac_objext
6795 if { (ac_try="$ac_compile"
6796 case "(($ac_try" in
6797 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6798 *) ac_try_echo=$ac_try;;
6799 esac
6800 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6801 (eval "$ac_compile") 2>conftest.er1
6802 ac_status=$?
6803 grep -v '^ *+' conftest.er1 >conftest.err
6804 rm -f conftest.er1
6805 cat conftest.err >&5
6806 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6807 (exit $ac_status); } && {
6808 test -z "$ac_c_werror_flag" ||
6809 test ! -s conftest.err
6810 } && test -s conftest.$ac_objext; then
6811 ac_cv_header_stdc=yes
6812 else
6813 echo "$as_me: failed program was:" >&5
6814 sed 's/^/| /' conftest.$ac_ext >&5
6816 ac_cv_header_stdc=no
6819 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6821 if test $ac_cv_header_stdc = yes; then
6822 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
6823 cat >conftest.$ac_ext <<_ACEOF
6824 /* confdefs.h. */
6825 _ACEOF
6826 cat confdefs.h >>conftest.$ac_ext
6827 cat >>conftest.$ac_ext <<_ACEOF
6828 /* end confdefs.h. */
6829 #include <string.h>
6831 _ACEOF
6832 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6833 $EGREP "memchr" >/dev/null 2>&1; then
6835 else
6836 ac_cv_header_stdc=no
6838 rm -f conftest*
6842 if test $ac_cv_header_stdc = yes; then
6843 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
6844 cat >conftest.$ac_ext <<_ACEOF
6845 /* confdefs.h. */
6846 _ACEOF
6847 cat confdefs.h >>conftest.$ac_ext
6848 cat >>conftest.$ac_ext <<_ACEOF
6849 /* end confdefs.h. */
6850 #include <stdlib.h>
6852 _ACEOF
6853 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6854 $EGREP "free" >/dev/null 2>&1; then
6856 else
6857 ac_cv_header_stdc=no
6859 rm -f conftest*
6863 if test $ac_cv_header_stdc = yes; then
6864 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
6865 if test "$cross_compiling" = yes; then
6867 else
6868 cat >conftest.$ac_ext <<_ACEOF
6869 /* confdefs.h. */
6870 _ACEOF
6871 cat confdefs.h >>conftest.$ac_ext
6872 cat >>conftest.$ac_ext <<_ACEOF
6873 /* end confdefs.h. */
6874 #include <ctype.h>
6875 #include <stdlib.h>
6876 #if ((' ' & 0x0FF) == 0x020)
6877 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
6878 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
6879 #else
6880 # define ISLOWER(c) \
6881 (('a' <= (c) && (c) <= 'i') \
6882 || ('j' <= (c) && (c) <= 'r') \
6883 || ('s' <= (c) && (c) <= 'z'))
6884 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
6885 #endif
6887 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
6889 main ()
6891 int i;
6892 for (i = 0; i < 256; i++)
6893 if (XOR (islower (i), ISLOWER (i))
6894 || toupper (i) != TOUPPER (i))
6895 return 2;
6896 return 0;
6898 _ACEOF
6899 rm -f conftest$ac_exeext
6900 if { (ac_try="$ac_link"
6901 case "(($ac_try" in
6902 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6903 *) ac_try_echo=$ac_try;;
6904 esac
6905 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6906 (eval "$ac_link") 2>&5
6907 ac_status=$?
6908 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6909 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
6910 { (case "(($ac_try" in
6911 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6912 *) ac_try_echo=$ac_try;;
6913 esac
6914 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6915 (eval "$ac_try") 2>&5
6916 ac_status=$?
6917 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6918 (exit $ac_status); }; }; then
6920 else
6921 echo "$as_me: program exited with status $ac_status" >&5
6922 echo "$as_me: failed program was:" >&5
6923 sed 's/^/| /' conftest.$ac_ext >&5
6925 ( exit $ac_status )
6926 ac_cv_header_stdc=no
6928 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
6934 { echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
6935 echo "${ECHO_T}$ac_cv_header_stdc" >&6; }
6936 if test $ac_cv_header_stdc = yes; then
6938 cat >>confdefs.h <<\_ACEOF
6939 #define STDC_HEADERS 1
6940 _ACEOF
6944 { echo "$as_me:$LINENO: checking whether time.h and sys/time.h may both be included" >&5
6945 echo $ECHO_N "checking whether time.h and sys/time.h may both be included... $ECHO_C" >&6; }
6946 if test "${ac_cv_header_time+set}" = set; then
6947 echo $ECHO_N "(cached) $ECHO_C" >&6
6948 else
6949 cat >conftest.$ac_ext <<_ACEOF
6950 /* confdefs.h. */
6951 _ACEOF
6952 cat confdefs.h >>conftest.$ac_ext
6953 cat >>conftest.$ac_ext <<_ACEOF
6954 /* end confdefs.h. */
6955 #include <sys/types.h>
6956 #include <sys/time.h>
6957 #include <time.h>
6960 main ()
6962 if ((struct tm *) 0)
6963 return 0;
6965 return 0;
6967 _ACEOF
6968 rm -f conftest.$ac_objext
6969 if { (ac_try="$ac_compile"
6970 case "(($ac_try" in
6971 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6972 *) ac_try_echo=$ac_try;;
6973 esac
6974 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6975 (eval "$ac_compile") 2>conftest.er1
6976 ac_status=$?
6977 grep -v '^ *+' conftest.er1 >conftest.err
6978 rm -f conftest.er1
6979 cat conftest.err >&5
6980 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6981 (exit $ac_status); } && {
6982 test -z "$ac_c_werror_flag" ||
6983 test ! -s conftest.err
6984 } && test -s conftest.$ac_objext; then
6985 ac_cv_header_time=yes
6986 else
6987 echo "$as_me: failed program was:" >&5
6988 sed 's/^/| /' conftest.$ac_ext >&5
6990 ac_cv_header_time=no
6993 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6995 { echo "$as_me:$LINENO: result: $ac_cv_header_time" >&5
6996 echo "${ECHO_T}$ac_cv_header_time" >&6; }
6997 if test $ac_cv_header_time = yes; then
6999 cat >>confdefs.h <<\_ACEOF
7000 #define TIME_WITH_SYS_TIME 1
7001 _ACEOF
7005 { echo "$as_me:$LINENO: checking whether sys_siglist is declared" >&5
7006 echo $ECHO_N "checking whether sys_siglist is declared... $ECHO_C" >&6; }
7007 if test "${ac_cv_have_decl_sys_siglist+set}" = set; then
7008 echo $ECHO_N "(cached) $ECHO_C" >&6
7009 else
7010 cat >conftest.$ac_ext <<_ACEOF
7011 /* confdefs.h. */
7012 _ACEOF
7013 cat confdefs.h >>conftest.$ac_ext
7014 cat >>conftest.$ac_ext <<_ACEOF
7015 /* end confdefs.h. */
7016 $ac_includes_default
7018 main ()
7020 #ifndef sys_siglist
7021 (void) sys_siglist;
7022 #endif
7025 return 0;
7027 _ACEOF
7028 rm -f conftest.$ac_objext
7029 if { (ac_try="$ac_compile"
7030 case "(($ac_try" in
7031 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7032 *) ac_try_echo=$ac_try;;
7033 esac
7034 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7035 (eval "$ac_compile") 2>conftest.er1
7036 ac_status=$?
7037 grep -v '^ *+' conftest.er1 >conftest.err
7038 rm -f conftest.er1
7039 cat conftest.err >&5
7040 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7041 (exit $ac_status); } && {
7042 test -z "$ac_c_werror_flag" ||
7043 test ! -s conftest.err
7044 } && test -s conftest.$ac_objext; then
7045 ac_cv_have_decl_sys_siglist=yes
7046 else
7047 echo "$as_me: failed program was:" >&5
7048 sed 's/^/| /' conftest.$ac_ext >&5
7050 ac_cv_have_decl_sys_siglist=no
7053 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7055 { echo "$as_me:$LINENO: result: $ac_cv_have_decl_sys_siglist" >&5
7056 echo "${ECHO_T}$ac_cv_have_decl_sys_siglist" >&6; }
7057 if test $ac_cv_have_decl_sys_siglist = yes; then
7059 cat >>confdefs.h <<_ACEOF
7060 #define HAVE_DECL_SYS_SIGLIST 1
7061 _ACEOF
7064 else
7065 cat >>confdefs.h <<_ACEOF
7066 #define HAVE_DECL_SYS_SIGLIST 0
7067 _ACEOF
7073 if test $ac_cv_have_decl_sys_siglist != yes; then
7074 # For Tru64, at least:
7075 { echo "$as_me:$LINENO: checking whether __sys_siglist is declared" >&5
7076 echo $ECHO_N "checking whether __sys_siglist is declared... $ECHO_C" >&6; }
7077 if test "${ac_cv_have_decl___sys_siglist+set}" = set; then
7078 echo $ECHO_N "(cached) $ECHO_C" >&6
7079 else
7080 cat >conftest.$ac_ext <<_ACEOF
7081 /* confdefs.h. */
7082 _ACEOF
7083 cat confdefs.h >>conftest.$ac_ext
7084 cat >>conftest.$ac_ext <<_ACEOF
7085 /* end confdefs.h. */
7086 $ac_includes_default
7088 main ()
7090 #ifndef __sys_siglist
7091 (void) __sys_siglist;
7092 #endif
7095 return 0;
7097 _ACEOF
7098 rm -f conftest.$ac_objext
7099 if { (ac_try="$ac_compile"
7100 case "(($ac_try" in
7101 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7102 *) ac_try_echo=$ac_try;;
7103 esac
7104 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7105 (eval "$ac_compile") 2>conftest.er1
7106 ac_status=$?
7107 grep -v '^ *+' conftest.er1 >conftest.err
7108 rm -f conftest.er1
7109 cat conftest.err >&5
7110 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7111 (exit $ac_status); } && {
7112 test -z "$ac_c_werror_flag" ||
7113 test ! -s conftest.err
7114 } && test -s conftest.$ac_objext; then
7115 ac_cv_have_decl___sys_siglist=yes
7116 else
7117 echo "$as_me: failed program was:" >&5
7118 sed 's/^/| /' conftest.$ac_ext >&5
7120 ac_cv_have_decl___sys_siglist=no
7123 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7125 { echo "$as_me:$LINENO: result: $ac_cv_have_decl___sys_siglist" >&5
7126 echo "${ECHO_T}$ac_cv_have_decl___sys_siglist" >&6; }
7127 if test $ac_cv_have_decl___sys_siglist = yes; then
7129 cat >>confdefs.h <<_ACEOF
7130 #define HAVE_DECL___SYS_SIGLIST 1
7131 _ACEOF
7134 else
7135 cat >>confdefs.h <<_ACEOF
7136 #define HAVE_DECL___SYS_SIGLIST 0
7137 _ACEOF
7143 if test $ac_cv_have_decl___sys_siglist = yes; then
7145 cat >>confdefs.h <<\_ACEOF
7146 #define sys_siglist __sys_siglist
7147 _ACEOF
7151 { echo "$as_me:$LINENO: checking for sys/wait.h that is POSIX.1 compatible" >&5
7152 echo $ECHO_N "checking for sys/wait.h that is POSIX.1 compatible... $ECHO_C" >&6; }
7153 if test "${ac_cv_header_sys_wait_h+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 #include <sys/types.h>
7163 #include <sys/wait.h>
7164 #ifndef WEXITSTATUS
7165 # define WEXITSTATUS(stat_val) ((unsigned int) (stat_val) >> 8)
7166 #endif
7167 #ifndef WIFEXITED
7168 # define WIFEXITED(stat_val) (((stat_val) & 255) == 0)
7169 #endif
7172 main ()
7174 int s;
7175 wait (&s);
7176 s = WIFEXITED (s) ? WEXITSTATUS (s) : 1;
7178 return 0;
7180 _ACEOF
7181 rm -f conftest.$ac_objext
7182 if { (ac_try="$ac_compile"
7183 case "(($ac_try" in
7184 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7185 *) ac_try_echo=$ac_try;;
7186 esac
7187 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7188 (eval "$ac_compile") 2>conftest.er1
7189 ac_status=$?
7190 grep -v '^ *+' conftest.er1 >conftest.err
7191 rm -f conftest.er1
7192 cat conftest.err >&5
7193 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7194 (exit $ac_status); } && {
7195 test -z "$ac_c_werror_flag" ||
7196 test ! -s conftest.err
7197 } && test -s conftest.$ac_objext; then
7198 ac_cv_header_sys_wait_h=yes
7199 else
7200 echo "$as_me: failed program was:" >&5
7201 sed 's/^/| /' conftest.$ac_ext >&5
7203 ac_cv_header_sys_wait_h=no
7206 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7208 { echo "$as_me:$LINENO: result: $ac_cv_header_sys_wait_h" >&5
7209 echo "${ECHO_T}$ac_cv_header_sys_wait_h" >&6; }
7210 if test $ac_cv_header_sys_wait_h = yes; then
7212 cat >>confdefs.h <<\_ACEOF
7213 #define HAVE_SYS_WAIT_H 1
7214 _ACEOF
7219 { echo "$as_me:$LINENO: checking for struct utimbuf" >&5
7220 echo $ECHO_N "checking for struct utimbuf... $ECHO_C" >&6; }
7221 if test "${emacs_cv_struct_utimbuf+set}" = set; then
7222 echo $ECHO_N "(cached) $ECHO_C" >&6
7223 else
7224 cat >conftest.$ac_ext <<_ACEOF
7225 /* confdefs.h. */
7226 _ACEOF
7227 cat confdefs.h >>conftest.$ac_ext
7228 cat >>conftest.$ac_ext <<_ACEOF
7229 /* end confdefs.h. */
7230 #ifdef TIME_WITH_SYS_TIME
7231 #include <sys/time.h>
7232 #include <time.h>
7233 #else
7234 #ifdef HAVE_SYS_TIME_H
7235 #include <sys/time.h>
7236 #else
7237 #include <time.h>
7238 #endif
7239 #endif
7240 #ifdef HAVE_UTIME_H
7241 #include <utime.h>
7242 #endif
7244 main ()
7246 static struct utimbuf x; x.actime = x.modtime;
7248 return 0;
7250 _ACEOF
7251 rm -f conftest.$ac_objext
7252 if { (ac_try="$ac_compile"
7253 case "(($ac_try" in
7254 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7255 *) ac_try_echo=$ac_try;;
7256 esac
7257 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7258 (eval "$ac_compile") 2>conftest.er1
7259 ac_status=$?
7260 grep -v '^ *+' conftest.er1 >conftest.err
7261 rm -f conftest.er1
7262 cat conftest.err >&5
7263 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7264 (exit $ac_status); } && {
7265 test -z "$ac_c_werror_flag" ||
7266 test ! -s conftest.err
7267 } && test -s conftest.$ac_objext; then
7268 emacs_cv_struct_utimbuf=yes
7269 else
7270 echo "$as_me: failed program was:" >&5
7271 sed 's/^/| /' conftest.$ac_ext >&5
7273 emacs_cv_struct_utimbuf=no
7276 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7278 { echo "$as_me:$LINENO: result: $emacs_cv_struct_utimbuf" >&5
7279 echo "${ECHO_T}$emacs_cv_struct_utimbuf" >&6; }
7280 if test $emacs_cv_struct_utimbuf = yes; then
7282 cat >>confdefs.h <<\_ACEOF
7283 #define HAVE_STRUCT_UTIMBUF 1
7284 _ACEOF
7288 { echo "$as_me:$LINENO: checking return type of signal handlers" >&5
7289 echo $ECHO_N "checking return type of signal handlers... $ECHO_C" >&6; }
7290 if test "${ac_cv_type_signal+set}" = set; then
7291 echo $ECHO_N "(cached) $ECHO_C" >&6
7292 else
7293 cat >conftest.$ac_ext <<_ACEOF
7294 /* confdefs.h. */
7295 _ACEOF
7296 cat confdefs.h >>conftest.$ac_ext
7297 cat >>conftest.$ac_ext <<_ACEOF
7298 /* end confdefs.h. */
7299 #include <sys/types.h>
7300 #include <signal.h>
7303 main ()
7305 return *(signal (0, 0)) (0) == 1;
7307 return 0;
7309 _ACEOF
7310 rm -f conftest.$ac_objext
7311 if { (ac_try="$ac_compile"
7312 case "(($ac_try" in
7313 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7314 *) ac_try_echo=$ac_try;;
7315 esac
7316 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7317 (eval "$ac_compile") 2>conftest.er1
7318 ac_status=$?
7319 grep -v '^ *+' conftest.er1 >conftest.err
7320 rm -f conftest.er1
7321 cat conftest.err >&5
7322 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7323 (exit $ac_status); } && {
7324 test -z "$ac_c_werror_flag" ||
7325 test ! -s conftest.err
7326 } && test -s conftest.$ac_objext; then
7327 ac_cv_type_signal=int
7328 else
7329 echo "$as_me: failed program was:" >&5
7330 sed 's/^/| /' conftest.$ac_ext >&5
7332 ac_cv_type_signal=void
7335 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7337 { echo "$as_me:$LINENO: result: $ac_cv_type_signal" >&5
7338 echo "${ECHO_T}$ac_cv_type_signal" >&6; }
7340 cat >>confdefs.h <<_ACEOF
7341 #define RETSIGTYPE $ac_cv_type_signal
7342 _ACEOF
7346 { echo "$as_me:$LINENO: checking for speed_t" >&5
7347 echo $ECHO_N "checking for speed_t... $ECHO_C" >&6; }
7348 if test "${emacs_cv_speed_t+set}" = set; then
7349 echo $ECHO_N "(cached) $ECHO_C" >&6
7350 else
7351 cat >conftest.$ac_ext <<_ACEOF
7352 /* confdefs.h. */
7353 _ACEOF
7354 cat confdefs.h >>conftest.$ac_ext
7355 cat >>conftest.$ac_ext <<_ACEOF
7356 /* end confdefs.h. */
7357 #include <termios.h>
7359 main ()
7361 speed_t x = 1;
7363 return 0;
7365 _ACEOF
7366 rm -f conftest.$ac_objext
7367 if { (ac_try="$ac_compile"
7368 case "(($ac_try" in
7369 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7370 *) ac_try_echo=$ac_try;;
7371 esac
7372 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7373 (eval "$ac_compile") 2>conftest.er1
7374 ac_status=$?
7375 grep -v '^ *+' conftest.er1 >conftest.err
7376 rm -f conftest.er1
7377 cat conftest.err >&5
7378 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7379 (exit $ac_status); } && {
7380 test -z "$ac_c_werror_flag" ||
7381 test ! -s conftest.err
7382 } && test -s conftest.$ac_objext; then
7383 emacs_cv_speed_t=yes
7384 else
7385 echo "$as_me: failed program was:" >&5
7386 sed 's/^/| /' conftest.$ac_ext >&5
7388 emacs_cv_speed_t=no
7391 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7393 { echo "$as_me:$LINENO: result: $emacs_cv_speed_t" >&5
7394 echo "${ECHO_T}$emacs_cv_speed_t" >&6; }
7395 if test $emacs_cv_speed_t = yes; then
7397 cat >>confdefs.h <<\_ACEOF
7398 #define HAVE_SPEED_T 1
7399 _ACEOF
7403 { echo "$as_me:$LINENO: checking for struct timeval" >&5
7404 echo $ECHO_N "checking for struct timeval... $ECHO_C" >&6; }
7405 if test "${emacs_cv_struct_timeval+set}" = set; then
7406 echo $ECHO_N "(cached) $ECHO_C" >&6
7407 else
7408 cat >conftest.$ac_ext <<_ACEOF
7409 /* confdefs.h. */
7410 _ACEOF
7411 cat confdefs.h >>conftest.$ac_ext
7412 cat >>conftest.$ac_ext <<_ACEOF
7413 /* end confdefs.h. */
7414 #ifdef TIME_WITH_SYS_TIME
7415 #include <sys/time.h>
7416 #include <time.h>
7417 #else
7418 #ifdef HAVE_SYS_TIME_H
7419 #include <sys/time.h>
7420 #else
7421 #include <time.h>
7422 #endif
7423 #endif
7425 main ()
7427 static struct timeval x; x.tv_sec = x.tv_usec;
7429 return 0;
7431 _ACEOF
7432 rm -f conftest.$ac_objext
7433 if { (ac_try="$ac_compile"
7434 case "(($ac_try" in
7435 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7436 *) ac_try_echo=$ac_try;;
7437 esac
7438 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7439 (eval "$ac_compile") 2>conftest.er1
7440 ac_status=$?
7441 grep -v '^ *+' conftest.er1 >conftest.err
7442 rm -f conftest.er1
7443 cat conftest.err >&5
7444 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7445 (exit $ac_status); } && {
7446 test -z "$ac_c_werror_flag" ||
7447 test ! -s conftest.err
7448 } && test -s conftest.$ac_objext; then
7449 emacs_cv_struct_timeval=yes
7450 else
7451 echo "$as_me: failed program was:" >&5
7452 sed 's/^/| /' conftest.$ac_ext >&5
7454 emacs_cv_struct_timeval=no
7457 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7459 { echo "$as_me:$LINENO: result: $emacs_cv_struct_timeval" >&5
7460 echo "${ECHO_T}$emacs_cv_struct_timeval" >&6; }
7461 HAVE_TIMEVAL=$emacs_cv_struct_timeval
7462 if test $emacs_cv_struct_timeval = yes; then
7464 cat >>confdefs.h <<\_ACEOF
7465 #define HAVE_TIMEVAL 1
7466 _ACEOF
7470 { echo "$as_me:$LINENO: checking for struct exception" >&5
7471 echo $ECHO_N "checking for struct exception... $ECHO_C" >&6; }
7472 if test "${emacs_cv_struct_exception+set}" = set; then
7473 echo $ECHO_N "(cached) $ECHO_C" >&6
7474 else
7475 cat >conftest.$ac_ext <<_ACEOF
7476 /* confdefs.h. */
7477 _ACEOF
7478 cat confdefs.h >>conftest.$ac_ext
7479 cat >>conftest.$ac_ext <<_ACEOF
7480 /* end confdefs.h. */
7481 #include <math.h>
7483 main ()
7485 static struct exception x; x.arg1 = x.arg2 = x.retval; x.name = ""; x.type = 1;
7487 return 0;
7489 _ACEOF
7490 rm -f conftest.$ac_objext
7491 if { (ac_try="$ac_compile"
7492 case "(($ac_try" in
7493 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7494 *) ac_try_echo=$ac_try;;
7495 esac
7496 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7497 (eval "$ac_compile") 2>conftest.er1
7498 ac_status=$?
7499 grep -v '^ *+' conftest.er1 >conftest.err
7500 rm -f conftest.er1
7501 cat conftest.err >&5
7502 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7503 (exit $ac_status); } && {
7504 test -z "$ac_c_werror_flag" ||
7505 test ! -s conftest.err
7506 } && test -s conftest.$ac_objext; then
7507 emacs_cv_struct_exception=yes
7508 else
7509 echo "$as_me: failed program was:" >&5
7510 sed 's/^/| /' conftest.$ac_ext >&5
7512 emacs_cv_struct_exception=no
7515 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7517 { echo "$as_me:$LINENO: result: $emacs_cv_struct_exception" >&5
7518 echo "${ECHO_T}$emacs_cv_struct_exception" >&6; }
7519 HAVE_EXCEPTION=$emacs_cv_struct_exception
7520 if test $emacs_cv_struct_exception != yes; then
7522 cat >>confdefs.h <<\_ACEOF
7523 #define NO_MATHERR 1
7524 _ACEOF
7529 for ac_header in sys/socket.h
7531 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
7532 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
7533 { echo "$as_me:$LINENO: checking for $ac_header" >&5
7534 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
7535 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
7536 echo $ECHO_N "(cached) $ECHO_C" >&6
7538 ac_res=`eval echo '${'$as_ac_Header'}'`
7539 { echo "$as_me:$LINENO: result: $ac_res" >&5
7540 echo "${ECHO_T}$ac_res" >&6; }
7541 else
7542 # Is the header compilable?
7543 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
7544 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
7545 cat >conftest.$ac_ext <<_ACEOF
7546 /* confdefs.h. */
7547 _ACEOF
7548 cat confdefs.h >>conftest.$ac_ext
7549 cat >>conftest.$ac_ext <<_ACEOF
7550 /* end confdefs.h. */
7551 $ac_includes_default
7552 #include <$ac_header>
7553 _ACEOF
7554 rm -f conftest.$ac_objext
7555 if { (ac_try="$ac_compile"
7556 case "(($ac_try" in
7557 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7558 *) ac_try_echo=$ac_try;;
7559 esac
7560 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7561 (eval "$ac_compile") 2>conftest.er1
7562 ac_status=$?
7563 grep -v '^ *+' conftest.er1 >conftest.err
7564 rm -f conftest.er1
7565 cat conftest.err >&5
7566 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7567 (exit $ac_status); } && {
7568 test -z "$ac_c_werror_flag" ||
7569 test ! -s conftest.err
7570 } && test -s conftest.$ac_objext; then
7571 ac_header_compiler=yes
7572 else
7573 echo "$as_me: failed program was:" >&5
7574 sed 's/^/| /' conftest.$ac_ext >&5
7576 ac_header_compiler=no
7579 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7580 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
7581 echo "${ECHO_T}$ac_header_compiler" >&6; }
7583 # Is the header present?
7584 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
7585 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
7586 cat >conftest.$ac_ext <<_ACEOF
7587 /* confdefs.h. */
7588 _ACEOF
7589 cat confdefs.h >>conftest.$ac_ext
7590 cat >>conftest.$ac_ext <<_ACEOF
7591 /* end confdefs.h. */
7592 #include <$ac_header>
7593 _ACEOF
7594 if { (ac_try="$ac_cpp conftest.$ac_ext"
7595 case "(($ac_try" in
7596 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7597 *) ac_try_echo=$ac_try;;
7598 esac
7599 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7600 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
7601 ac_status=$?
7602 grep -v '^ *+' conftest.er1 >conftest.err
7603 rm -f conftest.er1
7604 cat conftest.err >&5
7605 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7606 (exit $ac_status); } >/dev/null && {
7607 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
7608 test ! -s conftest.err
7609 }; then
7610 ac_header_preproc=yes
7611 else
7612 echo "$as_me: failed program was:" >&5
7613 sed 's/^/| /' conftest.$ac_ext >&5
7615 ac_header_preproc=no
7618 rm -f conftest.err conftest.$ac_ext
7619 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
7620 echo "${ECHO_T}$ac_header_preproc" >&6; }
7622 # So? What about this header?
7623 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
7624 yes:no: )
7625 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
7626 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
7627 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
7628 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
7629 ac_header_preproc=yes
7631 no:yes:* )
7632 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
7633 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
7634 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
7635 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
7636 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
7637 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
7638 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
7639 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
7640 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
7641 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
7642 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
7643 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
7646 esac
7647 { echo "$as_me:$LINENO: checking for $ac_header" >&5
7648 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
7649 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
7650 echo $ECHO_N "(cached) $ECHO_C" >&6
7651 else
7652 eval "$as_ac_Header=\$ac_header_preproc"
7654 ac_res=`eval echo '${'$as_ac_Header'}'`
7655 { echo "$as_me:$LINENO: result: $ac_res" >&5
7656 echo "${ECHO_T}$ac_res" >&6; }
7659 if test `eval echo '${'$as_ac_Header'}'` = yes; then
7660 cat >>confdefs.h <<_ACEOF
7661 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
7662 _ACEOF
7666 done
7669 for ac_header in net/if.h
7671 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
7672 { echo "$as_me:$LINENO: checking for $ac_header" >&5
7673 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
7674 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
7675 echo $ECHO_N "(cached) $ECHO_C" >&6
7676 else
7677 cat >conftest.$ac_ext <<_ACEOF
7678 /* confdefs.h. */
7679 _ACEOF
7680 cat confdefs.h >>conftest.$ac_ext
7681 cat >>conftest.$ac_ext <<_ACEOF
7682 /* end confdefs.h. */
7683 $ac_includes_default
7684 #if HAVE_SYS_SOCKET_H
7685 #include <sys/socket.h>
7686 #endif
7688 #include <$ac_header>
7689 _ACEOF
7690 rm -f conftest.$ac_objext
7691 if { (ac_try="$ac_compile"
7692 case "(($ac_try" in
7693 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7694 *) ac_try_echo=$ac_try;;
7695 esac
7696 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7697 (eval "$ac_compile") 2>conftest.er1
7698 ac_status=$?
7699 grep -v '^ *+' conftest.er1 >conftest.err
7700 rm -f conftest.er1
7701 cat conftest.err >&5
7702 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7703 (exit $ac_status); } && {
7704 test -z "$ac_c_werror_flag" ||
7705 test ! -s conftest.err
7706 } && test -s conftest.$ac_objext; then
7707 eval "$as_ac_Header=yes"
7708 else
7709 echo "$as_me: failed program was:" >&5
7710 sed 's/^/| /' conftest.$ac_ext >&5
7712 eval "$as_ac_Header=no"
7715 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7717 ac_res=`eval echo '${'$as_ac_Header'}'`
7718 { echo "$as_me:$LINENO: result: $ac_res" >&5
7719 echo "${ECHO_T}$ac_res" >&6; }
7720 if test `eval echo '${'$as_ac_Header'}'` = yes; then
7721 cat >>confdefs.h <<_ACEOF
7722 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
7723 _ACEOF
7727 done
7730 { echo "$as_me:$LINENO: checking whether struct tm is in sys/time.h or time.h" >&5
7731 echo $ECHO_N "checking whether struct tm is in sys/time.h or time.h... $ECHO_C" >&6; }
7732 if test "${ac_cv_struct_tm+set}" = set; then
7733 echo $ECHO_N "(cached) $ECHO_C" >&6
7734 else
7735 cat >conftest.$ac_ext <<_ACEOF
7736 /* confdefs.h. */
7737 _ACEOF
7738 cat confdefs.h >>conftest.$ac_ext
7739 cat >>conftest.$ac_ext <<_ACEOF
7740 /* end confdefs.h. */
7741 #include <sys/types.h>
7742 #include <time.h>
7745 main ()
7747 struct tm tm;
7748 int *p = &tm.tm_sec;
7749 return !p;
7751 return 0;
7753 _ACEOF
7754 rm -f conftest.$ac_objext
7755 if { (ac_try="$ac_compile"
7756 case "(($ac_try" in
7757 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7758 *) ac_try_echo=$ac_try;;
7759 esac
7760 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7761 (eval "$ac_compile") 2>conftest.er1
7762 ac_status=$?
7763 grep -v '^ *+' conftest.er1 >conftest.err
7764 rm -f conftest.er1
7765 cat conftest.err >&5
7766 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7767 (exit $ac_status); } && {
7768 test -z "$ac_c_werror_flag" ||
7769 test ! -s conftest.err
7770 } && test -s conftest.$ac_objext; then
7771 ac_cv_struct_tm=time.h
7772 else
7773 echo "$as_me: failed program was:" >&5
7774 sed 's/^/| /' conftest.$ac_ext >&5
7776 ac_cv_struct_tm=sys/time.h
7779 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7781 { echo "$as_me:$LINENO: result: $ac_cv_struct_tm" >&5
7782 echo "${ECHO_T}$ac_cv_struct_tm" >&6; }
7783 if test $ac_cv_struct_tm = sys/time.h; then
7785 cat >>confdefs.h <<\_ACEOF
7786 #define TM_IN_SYS_TIME 1
7787 _ACEOF
7791 { echo "$as_me:$LINENO: checking for struct tm.tm_zone" >&5
7792 echo $ECHO_N "checking for struct tm.tm_zone... $ECHO_C" >&6; }
7793 if test "${ac_cv_member_struct_tm_tm_zone+set}" = set; then
7794 echo $ECHO_N "(cached) $ECHO_C" >&6
7795 else
7796 cat >conftest.$ac_ext <<_ACEOF
7797 /* confdefs.h. */
7798 _ACEOF
7799 cat confdefs.h >>conftest.$ac_ext
7800 cat >>conftest.$ac_ext <<_ACEOF
7801 /* end confdefs.h. */
7802 #include <sys/types.h>
7803 #include <$ac_cv_struct_tm>
7807 main ()
7809 static struct tm ac_aggr;
7810 if (ac_aggr.tm_zone)
7811 return 0;
7813 return 0;
7815 _ACEOF
7816 rm -f conftest.$ac_objext
7817 if { (ac_try="$ac_compile"
7818 case "(($ac_try" in
7819 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7820 *) ac_try_echo=$ac_try;;
7821 esac
7822 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7823 (eval "$ac_compile") 2>conftest.er1
7824 ac_status=$?
7825 grep -v '^ *+' conftest.er1 >conftest.err
7826 rm -f conftest.er1
7827 cat conftest.err >&5
7828 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7829 (exit $ac_status); } && {
7830 test -z "$ac_c_werror_flag" ||
7831 test ! -s conftest.err
7832 } && test -s conftest.$ac_objext; then
7833 ac_cv_member_struct_tm_tm_zone=yes
7834 else
7835 echo "$as_me: failed program was:" >&5
7836 sed 's/^/| /' conftest.$ac_ext >&5
7838 cat >conftest.$ac_ext <<_ACEOF
7839 /* confdefs.h. */
7840 _ACEOF
7841 cat confdefs.h >>conftest.$ac_ext
7842 cat >>conftest.$ac_ext <<_ACEOF
7843 /* end confdefs.h. */
7844 #include <sys/types.h>
7845 #include <$ac_cv_struct_tm>
7849 main ()
7851 static struct tm ac_aggr;
7852 if (sizeof ac_aggr.tm_zone)
7853 return 0;
7855 return 0;
7857 _ACEOF
7858 rm -f conftest.$ac_objext
7859 if { (ac_try="$ac_compile"
7860 case "(($ac_try" in
7861 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7862 *) ac_try_echo=$ac_try;;
7863 esac
7864 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7865 (eval "$ac_compile") 2>conftest.er1
7866 ac_status=$?
7867 grep -v '^ *+' conftest.er1 >conftest.err
7868 rm -f conftest.er1
7869 cat conftest.err >&5
7870 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7871 (exit $ac_status); } && {
7872 test -z "$ac_c_werror_flag" ||
7873 test ! -s conftest.err
7874 } && test -s conftest.$ac_objext; then
7875 ac_cv_member_struct_tm_tm_zone=yes
7876 else
7877 echo "$as_me: failed program was:" >&5
7878 sed 's/^/| /' conftest.$ac_ext >&5
7880 ac_cv_member_struct_tm_tm_zone=no
7883 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7886 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7888 { echo "$as_me:$LINENO: result: $ac_cv_member_struct_tm_tm_zone" >&5
7889 echo "${ECHO_T}$ac_cv_member_struct_tm_tm_zone" >&6; }
7890 if test $ac_cv_member_struct_tm_tm_zone = yes; then
7892 cat >>confdefs.h <<_ACEOF
7893 #define HAVE_STRUCT_TM_TM_ZONE 1
7894 _ACEOF
7899 if test "$ac_cv_member_struct_tm_tm_zone" = yes; then
7901 cat >>confdefs.h <<\_ACEOF
7902 #define HAVE_TM_ZONE 1
7903 _ACEOF
7905 else
7906 { echo "$as_me:$LINENO: checking whether tzname is declared" >&5
7907 echo $ECHO_N "checking whether tzname is declared... $ECHO_C" >&6; }
7908 if test "${ac_cv_have_decl_tzname+set}" = set; then
7909 echo $ECHO_N "(cached) $ECHO_C" >&6
7910 else
7911 cat >conftest.$ac_ext <<_ACEOF
7912 /* confdefs.h. */
7913 _ACEOF
7914 cat confdefs.h >>conftest.$ac_ext
7915 cat >>conftest.$ac_ext <<_ACEOF
7916 /* end confdefs.h. */
7917 #include <time.h>
7920 main ()
7922 #ifndef tzname
7923 (void) tzname;
7924 #endif
7927 return 0;
7929 _ACEOF
7930 rm -f conftest.$ac_objext
7931 if { (ac_try="$ac_compile"
7932 case "(($ac_try" in
7933 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7934 *) ac_try_echo=$ac_try;;
7935 esac
7936 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7937 (eval "$ac_compile") 2>conftest.er1
7938 ac_status=$?
7939 grep -v '^ *+' conftest.er1 >conftest.err
7940 rm -f conftest.er1
7941 cat conftest.err >&5
7942 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7943 (exit $ac_status); } && {
7944 test -z "$ac_c_werror_flag" ||
7945 test ! -s conftest.err
7946 } && test -s conftest.$ac_objext; then
7947 ac_cv_have_decl_tzname=yes
7948 else
7949 echo "$as_me: failed program was:" >&5
7950 sed 's/^/| /' conftest.$ac_ext >&5
7952 ac_cv_have_decl_tzname=no
7955 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7957 { echo "$as_me:$LINENO: result: $ac_cv_have_decl_tzname" >&5
7958 echo "${ECHO_T}$ac_cv_have_decl_tzname" >&6; }
7959 if test $ac_cv_have_decl_tzname = yes; then
7961 cat >>confdefs.h <<_ACEOF
7962 #define HAVE_DECL_TZNAME 1
7963 _ACEOF
7966 else
7967 cat >>confdefs.h <<_ACEOF
7968 #define HAVE_DECL_TZNAME 0
7969 _ACEOF
7975 { echo "$as_me:$LINENO: checking for tzname" >&5
7976 echo $ECHO_N "checking for tzname... $ECHO_C" >&6; }
7977 if test "${ac_cv_var_tzname+set}" = set; then
7978 echo $ECHO_N "(cached) $ECHO_C" >&6
7979 else
7980 cat >conftest.$ac_ext <<_ACEOF
7981 /* confdefs.h. */
7982 _ACEOF
7983 cat confdefs.h >>conftest.$ac_ext
7984 cat >>conftest.$ac_ext <<_ACEOF
7985 /* end confdefs.h. */
7986 #include <time.h>
7987 #if !HAVE_DECL_TZNAME
7988 extern char *tzname[];
7989 #endif
7992 main ()
7994 return tzname[0][0];
7996 return 0;
7998 _ACEOF
7999 rm -f conftest.$ac_objext conftest$ac_exeext
8000 if { (ac_try="$ac_link"
8001 case "(($ac_try" in
8002 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8003 *) ac_try_echo=$ac_try;;
8004 esac
8005 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8006 (eval "$ac_link") 2>conftest.er1
8007 ac_status=$?
8008 grep -v '^ *+' conftest.er1 >conftest.err
8009 rm -f conftest.er1
8010 cat conftest.err >&5
8011 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8012 (exit $ac_status); } && {
8013 test -z "$ac_c_werror_flag" ||
8014 test ! -s conftest.err
8015 } && test -s conftest$ac_exeext &&
8016 $as_test_x conftest$ac_exeext; then
8017 ac_cv_var_tzname=yes
8018 else
8019 echo "$as_me: failed program was:" >&5
8020 sed 's/^/| /' conftest.$ac_ext >&5
8022 ac_cv_var_tzname=no
8025 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
8026 conftest$ac_exeext conftest.$ac_ext
8028 { echo "$as_me:$LINENO: result: $ac_cv_var_tzname" >&5
8029 echo "${ECHO_T}$ac_cv_var_tzname" >&6; }
8030 if test $ac_cv_var_tzname = yes; then
8032 cat >>confdefs.h <<\_ACEOF
8033 #define HAVE_TZNAME 1
8034 _ACEOF
8039 { echo "$as_me:$LINENO: checking for struct tm.tm_gmtoff" >&5
8040 echo $ECHO_N "checking for struct tm.tm_gmtoff... $ECHO_C" >&6; }
8041 if test "${ac_cv_member_struct_tm_tm_gmtoff+set}" = set; then
8042 echo $ECHO_N "(cached) $ECHO_C" >&6
8043 else
8044 cat >conftest.$ac_ext <<_ACEOF
8045 /* confdefs.h. */
8046 _ACEOF
8047 cat confdefs.h >>conftest.$ac_ext
8048 cat >>conftest.$ac_ext <<_ACEOF
8049 /* end confdefs.h. */
8050 #include <time.h>
8053 main ()
8055 static struct tm ac_aggr;
8056 if (ac_aggr.tm_gmtoff)
8057 return 0;
8059 return 0;
8061 _ACEOF
8062 rm -f conftest.$ac_objext
8063 if { (ac_try="$ac_compile"
8064 case "(($ac_try" in
8065 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8066 *) ac_try_echo=$ac_try;;
8067 esac
8068 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8069 (eval "$ac_compile") 2>conftest.er1
8070 ac_status=$?
8071 grep -v '^ *+' conftest.er1 >conftest.err
8072 rm -f conftest.er1
8073 cat conftest.err >&5
8074 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8075 (exit $ac_status); } && {
8076 test -z "$ac_c_werror_flag" ||
8077 test ! -s conftest.err
8078 } && test -s conftest.$ac_objext; then
8079 ac_cv_member_struct_tm_tm_gmtoff=yes
8080 else
8081 echo "$as_me: failed program was:" >&5
8082 sed 's/^/| /' conftest.$ac_ext >&5
8084 cat >conftest.$ac_ext <<_ACEOF
8085 /* confdefs.h. */
8086 _ACEOF
8087 cat confdefs.h >>conftest.$ac_ext
8088 cat >>conftest.$ac_ext <<_ACEOF
8089 /* end confdefs.h. */
8090 #include <time.h>
8093 main ()
8095 static struct tm ac_aggr;
8096 if (sizeof ac_aggr.tm_gmtoff)
8097 return 0;
8099 return 0;
8101 _ACEOF
8102 rm -f conftest.$ac_objext
8103 if { (ac_try="$ac_compile"
8104 case "(($ac_try" in
8105 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8106 *) ac_try_echo=$ac_try;;
8107 esac
8108 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8109 (eval "$ac_compile") 2>conftest.er1
8110 ac_status=$?
8111 grep -v '^ *+' conftest.er1 >conftest.err
8112 rm -f conftest.er1
8113 cat conftest.err >&5
8114 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8115 (exit $ac_status); } && {
8116 test -z "$ac_c_werror_flag" ||
8117 test ! -s conftest.err
8118 } && test -s conftest.$ac_objext; then
8119 ac_cv_member_struct_tm_tm_gmtoff=yes
8120 else
8121 echo "$as_me: failed program was:" >&5
8122 sed 's/^/| /' conftest.$ac_ext >&5
8124 ac_cv_member_struct_tm_tm_gmtoff=no
8127 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8130 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8132 { echo "$as_me:$LINENO: result: $ac_cv_member_struct_tm_tm_gmtoff" >&5
8133 echo "${ECHO_T}$ac_cv_member_struct_tm_tm_gmtoff" >&6; }
8134 if test $ac_cv_member_struct_tm_tm_gmtoff = yes; then
8136 cat >>confdefs.h <<\_ACEOF
8137 #define HAVE_TM_GMTOFF 1
8138 _ACEOF
8142 { echo "$as_me:$LINENO: checking for struct ifreq.ifr_flags" >&5
8143 echo $ECHO_N "checking for struct ifreq.ifr_flags... $ECHO_C" >&6; }
8144 if test "${ac_cv_member_struct_ifreq_ifr_flags+set}" = set; then
8145 echo $ECHO_N "(cached) $ECHO_C" >&6
8146 else
8147 cat >conftest.$ac_ext <<_ACEOF
8148 /* confdefs.h. */
8149 _ACEOF
8150 cat confdefs.h >>conftest.$ac_ext
8151 cat >>conftest.$ac_ext <<_ACEOF
8152 /* end confdefs.h. */
8153 $ac_includes_default
8154 #if HAVE_SYS_SOCKET_H
8155 #include <sys/socket.h>
8156 #endif
8157 #if HAVE_NET_IF_H
8158 #include <net/if.h>
8159 #endif
8162 main ()
8164 static struct ifreq ac_aggr;
8165 if (ac_aggr.ifr_flags)
8166 return 0;
8168 return 0;
8170 _ACEOF
8171 rm -f conftest.$ac_objext
8172 if { (ac_try="$ac_compile"
8173 case "(($ac_try" in
8174 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8175 *) ac_try_echo=$ac_try;;
8176 esac
8177 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8178 (eval "$ac_compile") 2>conftest.er1
8179 ac_status=$?
8180 grep -v '^ *+' conftest.er1 >conftest.err
8181 rm -f conftest.er1
8182 cat conftest.err >&5
8183 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8184 (exit $ac_status); } && {
8185 test -z "$ac_c_werror_flag" ||
8186 test ! -s conftest.err
8187 } && test -s conftest.$ac_objext; then
8188 ac_cv_member_struct_ifreq_ifr_flags=yes
8189 else
8190 echo "$as_me: failed program was:" >&5
8191 sed 's/^/| /' conftest.$ac_ext >&5
8193 cat >conftest.$ac_ext <<_ACEOF
8194 /* confdefs.h. */
8195 _ACEOF
8196 cat confdefs.h >>conftest.$ac_ext
8197 cat >>conftest.$ac_ext <<_ACEOF
8198 /* end confdefs.h. */
8199 $ac_includes_default
8200 #if HAVE_SYS_SOCKET_H
8201 #include <sys/socket.h>
8202 #endif
8203 #if HAVE_NET_IF_H
8204 #include <net/if.h>
8205 #endif
8208 main ()
8210 static struct ifreq ac_aggr;
8211 if (sizeof ac_aggr.ifr_flags)
8212 return 0;
8214 return 0;
8216 _ACEOF
8217 rm -f conftest.$ac_objext
8218 if { (ac_try="$ac_compile"
8219 case "(($ac_try" in
8220 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8221 *) ac_try_echo=$ac_try;;
8222 esac
8223 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8224 (eval "$ac_compile") 2>conftest.er1
8225 ac_status=$?
8226 grep -v '^ *+' conftest.er1 >conftest.err
8227 rm -f conftest.er1
8228 cat conftest.err >&5
8229 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8230 (exit $ac_status); } && {
8231 test -z "$ac_c_werror_flag" ||
8232 test ! -s conftest.err
8233 } && test -s conftest.$ac_objext; then
8234 ac_cv_member_struct_ifreq_ifr_flags=yes
8235 else
8236 echo "$as_me: failed program was:" >&5
8237 sed 's/^/| /' conftest.$ac_ext >&5
8239 ac_cv_member_struct_ifreq_ifr_flags=no
8242 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8245 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8247 { echo "$as_me:$LINENO: result: $ac_cv_member_struct_ifreq_ifr_flags" >&5
8248 echo "${ECHO_T}$ac_cv_member_struct_ifreq_ifr_flags" >&6; }
8249 if test $ac_cv_member_struct_ifreq_ifr_flags = yes; then
8251 cat >>confdefs.h <<_ACEOF
8252 #define HAVE_STRUCT_IFREQ_IFR_FLAGS 1
8253 _ACEOF
8257 { echo "$as_me:$LINENO: checking for struct ifreq.ifr_hwaddr" >&5
8258 echo $ECHO_N "checking for struct ifreq.ifr_hwaddr... $ECHO_C" >&6; }
8259 if test "${ac_cv_member_struct_ifreq_ifr_hwaddr+set}" = set; then
8260 echo $ECHO_N "(cached) $ECHO_C" >&6
8261 else
8262 cat >conftest.$ac_ext <<_ACEOF
8263 /* confdefs.h. */
8264 _ACEOF
8265 cat confdefs.h >>conftest.$ac_ext
8266 cat >>conftest.$ac_ext <<_ACEOF
8267 /* end confdefs.h. */
8268 $ac_includes_default
8269 #if HAVE_SYS_SOCKET_H
8270 #include <sys/socket.h>
8271 #endif
8272 #if HAVE_NET_IF_H
8273 #include <net/if.h>
8274 #endif
8277 main ()
8279 static struct ifreq ac_aggr;
8280 if (ac_aggr.ifr_hwaddr)
8281 return 0;
8283 return 0;
8285 _ACEOF
8286 rm -f conftest.$ac_objext
8287 if { (ac_try="$ac_compile"
8288 case "(($ac_try" in
8289 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8290 *) ac_try_echo=$ac_try;;
8291 esac
8292 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8293 (eval "$ac_compile") 2>conftest.er1
8294 ac_status=$?
8295 grep -v '^ *+' conftest.er1 >conftest.err
8296 rm -f conftest.er1
8297 cat conftest.err >&5
8298 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8299 (exit $ac_status); } && {
8300 test -z "$ac_c_werror_flag" ||
8301 test ! -s conftest.err
8302 } && test -s conftest.$ac_objext; then
8303 ac_cv_member_struct_ifreq_ifr_hwaddr=yes
8304 else
8305 echo "$as_me: failed program was:" >&5
8306 sed 's/^/| /' conftest.$ac_ext >&5
8308 cat >conftest.$ac_ext <<_ACEOF
8309 /* confdefs.h. */
8310 _ACEOF
8311 cat confdefs.h >>conftest.$ac_ext
8312 cat >>conftest.$ac_ext <<_ACEOF
8313 /* end confdefs.h. */
8314 $ac_includes_default
8315 #if HAVE_SYS_SOCKET_H
8316 #include <sys/socket.h>
8317 #endif
8318 #if HAVE_NET_IF_H
8319 #include <net/if.h>
8320 #endif
8323 main ()
8325 static struct ifreq ac_aggr;
8326 if (sizeof ac_aggr.ifr_hwaddr)
8327 return 0;
8329 return 0;
8331 _ACEOF
8332 rm -f conftest.$ac_objext
8333 if { (ac_try="$ac_compile"
8334 case "(($ac_try" in
8335 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8336 *) ac_try_echo=$ac_try;;
8337 esac
8338 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8339 (eval "$ac_compile") 2>conftest.er1
8340 ac_status=$?
8341 grep -v '^ *+' conftest.er1 >conftest.err
8342 rm -f conftest.er1
8343 cat conftest.err >&5
8344 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8345 (exit $ac_status); } && {
8346 test -z "$ac_c_werror_flag" ||
8347 test ! -s conftest.err
8348 } && test -s conftest.$ac_objext; then
8349 ac_cv_member_struct_ifreq_ifr_hwaddr=yes
8350 else
8351 echo "$as_me: failed program was:" >&5
8352 sed 's/^/| /' conftest.$ac_ext >&5
8354 ac_cv_member_struct_ifreq_ifr_hwaddr=no
8357 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8360 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8362 { echo "$as_me:$LINENO: result: $ac_cv_member_struct_ifreq_ifr_hwaddr" >&5
8363 echo "${ECHO_T}$ac_cv_member_struct_ifreq_ifr_hwaddr" >&6; }
8364 if test $ac_cv_member_struct_ifreq_ifr_hwaddr = yes; then
8366 cat >>confdefs.h <<_ACEOF
8367 #define HAVE_STRUCT_IFREQ_IFR_HWADDR 1
8368 _ACEOF
8372 { echo "$as_me:$LINENO: checking for struct ifreq.ifr_netmask" >&5
8373 echo $ECHO_N "checking for struct ifreq.ifr_netmask... $ECHO_C" >&6; }
8374 if test "${ac_cv_member_struct_ifreq_ifr_netmask+set}" = set; then
8375 echo $ECHO_N "(cached) $ECHO_C" >&6
8376 else
8377 cat >conftest.$ac_ext <<_ACEOF
8378 /* confdefs.h. */
8379 _ACEOF
8380 cat confdefs.h >>conftest.$ac_ext
8381 cat >>conftest.$ac_ext <<_ACEOF
8382 /* end confdefs.h. */
8383 $ac_includes_default
8384 #if HAVE_SYS_SOCKET_H
8385 #include <sys/socket.h>
8386 #endif
8387 #if HAVE_NET_IF_H
8388 #include <net/if.h>
8389 #endif
8392 main ()
8394 static struct ifreq ac_aggr;
8395 if (ac_aggr.ifr_netmask)
8396 return 0;
8398 return 0;
8400 _ACEOF
8401 rm -f conftest.$ac_objext
8402 if { (ac_try="$ac_compile"
8403 case "(($ac_try" in
8404 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8405 *) ac_try_echo=$ac_try;;
8406 esac
8407 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8408 (eval "$ac_compile") 2>conftest.er1
8409 ac_status=$?
8410 grep -v '^ *+' conftest.er1 >conftest.err
8411 rm -f conftest.er1
8412 cat conftest.err >&5
8413 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8414 (exit $ac_status); } && {
8415 test -z "$ac_c_werror_flag" ||
8416 test ! -s conftest.err
8417 } && test -s conftest.$ac_objext; then
8418 ac_cv_member_struct_ifreq_ifr_netmask=yes
8419 else
8420 echo "$as_me: failed program was:" >&5
8421 sed 's/^/| /' conftest.$ac_ext >&5
8423 cat >conftest.$ac_ext <<_ACEOF
8424 /* confdefs.h. */
8425 _ACEOF
8426 cat confdefs.h >>conftest.$ac_ext
8427 cat >>conftest.$ac_ext <<_ACEOF
8428 /* end confdefs.h. */
8429 $ac_includes_default
8430 #if HAVE_SYS_SOCKET_H
8431 #include <sys/socket.h>
8432 #endif
8433 #if HAVE_NET_IF_H
8434 #include <net/if.h>
8435 #endif
8438 main ()
8440 static struct ifreq ac_aggr;
8441 if (sizeof ac_aggr.ifr_netmask)
8442 return 0;
8444 return 0;
8446 _ACEOF
8447 rm -f conftest.$ac_objext
8448 if { (ac_try="$ac_compile"
8449 case "(($ac_try" in
8450 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8451 *) ac_try_echo=$ac_try;;
8452 esac
8453 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8454 (eval "$ac_compile") 2>conftest.er1
8455 ac_status=$?
8456 grep -v '^ *+' conftest.er1 >conftest.err
8457 rm -f conftest.er1
8458 cat conftest.err >&5
8459 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8460 (exit $ac_status); } && {
8461 test -z "$ac_c_werror_flag" ||
8462 test ! -s conftest.err
8463 } && test -s conftest.$ac_objext; then
8464 ac_cv_member_struct_ifreq_ifr_netmask=yes
8465 else
8466 echo "$as_me: failed program was:" >&5
8467 sed 's/^/| /' conftest.$ac_ext >&5
8469 ac_cv_member_struct_ifreq_ifr_netmask=no
8472 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8475 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8477 { echo "$as_me:$LINENO: result: $ac_cv_member_struct_ifreq_ifr_netmask" >&5
8478 echo "${ECHO_T}$ac_cv_member_struct_ifreq_ifr_netmask" >&6; }
8479 if test $ac_cv_member_struct_ifreq_ifr_netmask = yes; then
8481 cat >>confdefs.h <<_ACEOF
8482 #define HAVE_STRUCT_IFREQ_IFR_NETMASK 1
8483 _ACEOF
8487 { echo "$as_me:$LINENO: checking for struct ifreq.ifr_broadaddr" >&5
8488 echo $ECHO_N "checking for struct ifreq.ifr_broadaddr... $ECHO_C" >&6; }
8489 if test "${ac_cv_member_struct_ifreq_ifr_broadaddr+set}" = set; then
8490 echo $ECHO_N "(cached) $ECHO_C" >&6
8491 else
8492 cat >conftest.$ac_ext <<_ACEOF
8493 /* confdefs.h. */
8494 _ACEOF
8495 cat confdefs.h >>conftest.$ac_ext
8496 cat >>conftest.$ac_ext <<_ACEOF
8497 /* end confdefs.h. */
8498 $ac_includes_default
8499 #if HAVE_SYS_SOCKET_H
8500 #include <sys/socket.h>
8501 #endif
8502 #if HAVE_NET_IF_H
8503 #include <net/if.h>
8504 #endif
8507 main ()
8509 static struct ifreq ac_aggr;
8510 if (ac_aggr.ifr_broadaddr)
8511 return 0;
8513 return 0;
8515 _ACEOF
8516 rm -f conftest.$ac_objext
8517 if { (ac_try="$ac_compile"
8518 case "(($ac_try" in
8519 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8520 *) ac_try_echo=$ac_try;;
8521 esac
8522 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8523 (eval "$ac_compile") 2>conftest.er1
8524 ac_status=$?
8525 grep -v '^ *+' conftest.er1 >conftest.err
8526 rm -f conftest.er1
8527 cat conftest.err >&5
8528 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8529 (exit $ac_status); } && {
8530 test -z "$ac_c_werror_flag" ||
8531 test ! -s conftest.err
8532 } && test -s conftest.$ac_objext; then
8533 ac_cv_member_struct_ifreq_ifr_broadaddr=yes
8534 else
8535 echo "$as_me: failed program was:" >&5
8536 sed 's/^/| /' conftest.$ac_ext >&5
8538 cat >conftest.$ac_ext <<_ACEOF
8539 /* confdefs.h. */
8540 _ACEOF
8541 cat confdefs.h >>conftest.$ac_ext
8542 cat >>conftest.$ac_ext <<_ACEOF
8543 /* end confdefs.h. */
8544 $ac_includes_default
8545 #if HAVE_SYS_SOCKET_H
8546 #include <sys/socket.h>
8547 #endif
8548 #if HAVE_NET_IF_H
8549 #include <net/if.h>
8550 #endif
8553 main ()
8555 static struct ifreq ac_aggr;
8556 if (sizeof ac_aggr.ifr_broadaddr)
8557 return 0;
8559 return 0;
8561 _ACEOF
8562 rm -f conftest.$ac_objext
8563 if { (ac_try="$ac_compile"
8564 case "(($ac_try" in
8565 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8566 *) ac_try_echo=$ac_try;;
8567 esac
8568 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8569 (eval "$ac_compile") 2>conftest.er1
8570 ac_status=$?
8571 grep -v '^ *+' conftest.er1 >conftest.err
8572 rm -f conftest.er1
8573 cat conftest.err >&5
8574 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8575 (exit $ac_status); } && {
8576 test -z "$ac_c_werror_flag" ||
8577 test ! -s conftest.err
8578 } && test -s conftest.$ac_objext; then
8579 ac_cv_member_struct_ifreq_ifr_broadaddr=yes
8580 else
8581 echo "$as_me: failed program was:" >&5
8582 sed 's/^/| /' conftest.$ac_ext >&5
8584 ac_cv_member_struct_ifreq_ifr_broadaddr=no
8587 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8590 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8592 { echo "$as_me:$LINENO: result: $ac_cv_member_struct_ifreq_ifr_broadaddr" >&5
8593 echo "${ECHO_T}$ac_cv_member_struct_ifreq_ifr_broadaddr" >&6; }
8594 if test $ac_cv_member_struct_ifreq_ifr_broadaddr = yes; then
8596 cat >>confdefs.h <<_ACEOF
8597 #define HAVE_STRUCT_IFREQ_IFR_BROADADDR 1
8598 _ACEOF
8602 { echo "$as_me:$LINENO: checking for struct ifreq.ifr_addr" >&5
8603 echo $ECHO_N "checking for struct ifreq.ifr_addr... $ECHO_C" >&6; }
8604 if test "${ac_cv_member_struct_ifreq_ifr_addr+set}" = set; then
8605 echo $ECHO_N "(cached) $ECHO_C" >&6
8606 else
8607 cat >conftest.$ac_ext <<_ACEOF
8608 /* confdefs.h. */
8609 _ACEOF
8610 cat confdefs.h >>conftest.$ac_ext
8611 cat >>conftest.$ac_ext <<_ACEOF
8612 /* end confdefs.h. */
8613 $ac_includes_default
8614 #if HAVE_SYS_SOCKET_H
8615 #include <sys/socket.h>
8616 #endif
8617 #if HAVE_NET_IF_H
8618 #include <net/if.h>
8619 #endif
8622 main ()
8624 static struct ifreq ac_aggr;
8625 if (ac_aggr.ifr_addr)
8626 return 0;
8628 return 0;
8630 _ACEOF
8631 rm -f conftest.$ac_objext
8632 if { (ac_try="$ac_compile"
8633 case "(($ac_try" in
8634 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8635 *) ac_try_echo=$ac_try;;
8636 esac
8637 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8638 (eval "$ac_compile") 2>conftest.er1
8639 ac_status=$?
8640 grep -v '^ *+' conftest.er1 >conftest.err
8641 rm -f conftest.er1
8642 cat conftest.err >&5
8643 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8644 (exit $ac_status); } && {
8645 test -z "$ac_c_werror_flag" ||
8646 test ! -s conftest.err
8647 } && test -s conftest.$ac_objext; then
8648 ac_cv_member_struct_ifreq_ifr_addr=yes
8649 else
8650 echo "$as_me: failed program was:" >&5
8651 sed 's/^/| /' conftest.$ac_ext >&5
8653 cat >conftest.$ac_ext <<_ACEOF
8654 /* confdefs.h. */
8655 _ACEOF
8656 cat confdefs.h >>conftest.$ac_ext
8657 cat >>conftest.$ac_ext <<_ACEOF
8658 /* end confdefs.h. */
8659 $ac_includes_default
8660 #if HAVE_SYS_SOCKET_H
8661 #include <sys/socket.h>
8662 #endif
8663 #if HAVE_NET_IF_H
8664 #include <net/if.h>
8665 #endif
8668 main ()
8670 static struct ifreq ac_aggr;
8671 if (sizeof ac_aggr.ifr_addr)
8672 return 0;
8674 return 0;
8676 _ACEOF
8677 rm -f conftest.$ac_objext
8678 if { (ac_try="$ac_compile"
8679 case "(($ac_try" in
8680 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8681 *) ac_try_echo=$ac_try;;
8682 esac
8683 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8684 (eval "$ac_compile") 2>conftest.er1
8685 ac_status=$?
8686 grep -v '^ *+' conftest.er1 >conftest.err
8687 rm -f conftest.er1
8688 cat conftest.err >&5
8689 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8690 (exit $ac_status); } && {
8691 test -z "$ac_c_werror_flag" ||
8692 test ! -s conftest.err
8693 } && test -s conftest.$ac_objext; then
8694 ac_cv_member_struct_ifreq_ifr_addr=yes
8695 else
8696 echo "$as_me: failed program was:" >&5
8697 sed 's/^/| /' conftest.$ac_ext >&5
8699 ac_cv_member_struct_ifreq_ifr_addr=no
8702 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8705 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8707 { echo "$as_me:$LINENO: result: $ac_cv_member_struct_ifreq_ifr_addr" >&5
8708 echo "${ECHO_T}$ac_cv_member_struct_ifreq_ifr_addr" >&6; }
8709 if test $ac_cv_member_struct_ifreq_ifr_addr = yes; then
8711 cat >>confdefs.h <<_ACEOF
8712 #define HAVE_STRUCT_IFREQ_IFR_ADDR 1
8713 _ACEOF
8720 { echo "$as_me:$LINENO: checking for function prototypes" >&5
8721 echo $ECHO_N "checking for function prototypes... $ECHO_C" >&6; }
8722 if test "$ac_cv_prog_cc_c89" != no; then
8723 { echo "$as_me:$LINENO: result: yes" >&5
8724 echo "${ECHO_T}yes" >&6; }
8726 cat >>confdefs.h <<\_ACEOF
8727 #define PROTOTYPES 1
8728 _ACEOF
8731 cat >>confdefs.h <<\_ACEOF
8732 #define __PROTOTYPES 1
8733 _ACEOF
8735 else
8736 { echo "$as_me:$LINENO: result: no" >&5
8737 echo "${ECHO_T}no" >&6; }
8740 { echo "$as_me:$LINENO: checking for working volatile" >&5
8741 echo $ECHO_N "checking for working volatile... $ECHO_C" >&6; }
8742 if test "${ac_cv_c_volatile+set}" = set; then
8743 echo $ECHO_N "(cached) $ECHO_C" >&6
8744 else
8745 cat >conftest.$ac_ext <<_ACEOF
8746 /* confdefs.h. */
8747 _ACEOF
8748 cat confdefs.h >>conftest.$ac_ext
8749 cat >>conftest.$ac_ext <<_ACEOF
8750 /* end confdefs.h. */
8753 main ()
8756 volatile int x;
8757 int * volatile y = (int *) 0;
8758 return !x && !y;
8760 return 0;
8762 _ACEOF
8763 rm -f conftest.$ac_objext
8764 if { (ac_try="$ac_compile"
8765 case "(($ac_try" in
8766 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8767 *) ac_try_echo=$ac_try;;
8768 esac
8769 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8770 (eval "$ac_compile") 2>conftest.er1
8771 ac_status=$?
8772 grep -v '^ *+' conftest.er1 >conftest.err
8773 rm -f conftest.er1
8774 cat conftest.err >&5
8775 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8776 (exit $ac_status); } && {
8777 test -z "$ac_c_werror_flag" ||
8778 test ! -s conftest.err
8779 } && test -s conftest.$ac_objext; then
8780 ac_cv_c_volatile=yes
8781 else
8782 echo "$as_me: failed program was:" >&5
8783 sed 's/^/| /' conftest.$ac_ext >&5
8785 ac_cv_c_volatile=no
8788 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8790 { echo "$as_me:$LINENO: result: $ac_cv_c_volatile" >&5
8791 echo "${ECHO_T}$ac_cv_c_volatile" >&6; }
8792 if test $ac_cv_c_volatile = no; then
8794 cat >>confdefs.h <<\_ACEOF
8795 #define volatile
8796 _ACEOF
8800 { echo "$as_me:$LINENO: checking for an ANSI C-conforming const" >&5
8801 echo $ECHO_N "checking for an ANSI C-conforming const... $ECHO_C" >&6; }
8802 if test "${ac_cv_c_const+set}" = set; then
8803 echo $ECHO_N "(cached) $ECHO_C" >&6
8804 else
8805 cat >conftest.$ac_ext <<_ACEOF
8806 /* confdefs.h. */
8807 _ACEOF
8808 cat confdefs.h >>conftest.$ac_ext
8809 cat >>conftest.$ac_ext <<_ACEOF
8810 /* end confdefs.h. */
8813 main ()
8815 /* FIXME: Include the comments suggested by Paul. */
8816 #ifndef __cplusplus
8817 /* Ultrix mips cc rejects this. */
8818 typedef int charset[2];
8819 const charset cs;
8820 /* SunOS 4.1.1 cc rejects this. */
8821 char const *const *pcpcc;
8822 char **ppc;
8823 /* NEC SVR4.0.2 mips cc rejects this. */
8824 struct point {int x, y;};
8825 static struct point const zero = {0,0};
8826 /* AIX XL C 1.02.0.0 rejects this.
8827 It does not let you subtract one const X* pointer from another in
8828 an arm of an if-expression whose if-part is not a constant
8829 expression */
8830 const char *g = "string";
8831 pcpcc = &g + (g ? g-g : 0);
8832 /* HPUX 7.0 cc rejects these. */
8833 ++pcpcc;
8834 ppc = (char**) pcpcc;
8835 pcpcc = (char const *const *) ppc;
8836 { /* SCO 3.2v4 cc rejects this. */
8837 char *t;
8838 char const *s = 0 ? (char *) 0 : (char const *) 0;
8840 *t++ = 0;
8841 if (s) return 0;
8843 { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
8844 int x[] = {25, 17};
8845 const int *foo = &x[0];
8846 ++foo;
8848 { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
8849 typedef const int *iptr;
8850 iptr p = 0;
8851 ++p;
8853 { /* AIX XL C 1.02.0.0 rejects this saying
8854 "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
8855 struct s { int j; const int *ap[3]; };
8856 struct s *b; b->j = 5;
8858 { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
8859 const int foo = 10;
8860 if (!foo) return 0;
8862 return !cs[0] && !zero.x;
8863 #endif
8866 return 0;
8868 _ACEOF
8869 rm -f conftest.$ac_objext
8870 if { (ac_try="$ac_compile"
8871 case "(($ac_try" in
8872 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8873 *) ac_try_echo=$ac_try;;
8874 esac
8875 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8876 (eval "$ac_compile") 2>conftest.er1
8877 ac_status=$?
8878 grep -v '^ *+' conftest.er1 >conftest.err
8879 rm -f conftest.er1
8880 cat conftest.err >&5
8881 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8882 (exit $ac_status); } && {
8883 test -z "$ac_c_werror_flag" ||
8884 test ! -s conftest.err
8885 } && test -s conftest.$ac_objext; then
8886 ac_cv_c_const=yes
8887 else
8888 echo "$as_me: failed program was:" >&5
8889 sed 's/^/| /' conftest.$ac_ext >&5
8891 ac_cv_c_const=no
8894 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8896 { echo "$as_me:$LINENO: result: $ac_cv_c_const" >&5
8897 echo "${ECHO_T}$ac_cv_c_const" >&6; }
8898 if test $ac_cv_c_const = no; then
8900 cat >>confdefs.h <<\_ACEOF
8901 #define const
8902 _ACEOF
8906 { echo "$as_me:$LINENO: checking for void * support" >&5
8907 echo $ECHO_N "checking for void * support... $ECHO_C" >&6; }
8908 if test "${emacs_cv_void_star+set}" = set; then
8909 echo $ECHO_N "(cached) $ECHO_C" >&6
8910 else
8911 cat >conftest.$ac_ext <<_ACEOF
8912 /* confdefs.h. */
8913 _ACEOF
8914 cat confdefs.h >>conftest.$ac_ext
8915 cat >>conftest.$ac_ext <<_ACEOF
8916 /* end confdefs.h. */
8919 main ()
8921 void * foo;
8923 return 0;
8925 _ACEOF
8926 rm -f conftest.$ac_objext
8927 if { (ac_try="$ac_compile"
8928 case "(($ac_try" in
8929 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8930 *) ac_try_echo=$ac_try;;
8931 esac
8932 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8933 (eval "$ac_compile") 2>conftest.er1
8934 ac_status=$?
8935 grep -v '^ *+' conftest.er1 >conftest.err
8936 rm -f conftest.er1
8937 cat conftest.err >&5
8938 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8939 (exit $ac_status); } && {
8940 test -z "$ac_c_werror_flag" ||
8941 test ! -s conftest.err
8942 } && test -s conftest.$ac_objext; then
8943 emacs_cv_void_star=yes
8944 else
8945 echo "$as_me: failed program was:" >&5
8946 sed 's/^/| /' conftest.$ac_ext >&5
8948 emacs_cv_void_star=no
8951 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8953 { echo "$as_me:$LINENO: result: $emacs_cv_void_star" >&5
8954 echo "${ECHO_T}$emacs_cv_void_star" >&6; }
8955 if test $emacs_cv_void_star = yes; then
8956 cat >>confdefs.h <<\_ACEOF
8957 #define POINTER_TYPE void
8958 _ACEOF
8960 else
8961 cat >>confdefs.h <<\_ACEOF
8962 #define POINTER_TYPE char
8963 _ACEOF
8971 { echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5
8972 echo $ECHO_N "checking whether ${MAKE-make} sets \$(MAKE)... $ECHO_C" >&6; }
8973 set x ${MAKE-make}; ac_make=`echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
8974 if { as_var=ac_cv_prog_make_${ac_make}_set; eval "test \"\${$as_var+set}\" = set"; }; then
8975 echo $ECHO_N "(cached) $ECHO_C" >&6
8976 else
8977 cat >conftest.make <<\_ACEOF
8978 SHELL = /bin/sh
8979 all:
8980 @echo '@@@%%%=$(MAKE)=@@@%%%'
8981 _ACEOF
8982 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
8983 case `${MAKE-make} -f conftest.make 2>/dev/null` in
8984 *@@@%%%=?*=@@@%%%*)
8985 eval ac_cv_prog_make_${ac_make}_set=yes;;
8987 eval ac_cv_prog_make_${ac_make}_set=no;;
8988 esac
8989 rm -f conftest.make
8991 if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
8992 { echo "$as_me:$LINENO: result: yes" >&5
8993 echo "${ECHO_T}yes" >&6; }
8994 SET_MAKE=
8995 else
8996 { echo "$as_me:$LINENO: result: no" >&5
8997 echo "${ECHO_T}no" >&6; }
8998 SET_MAKE="MAKE=${MAKE-make}"
9002 { echo "$as_me:$LINENO: checking for long file names" >&5
9003 echo $ECHO_N "checking for long file names... $ECHO_C" >&6; }
9004 if test "${ac_cv_sys_long_file_names+set}" = set; then
9005 echo $ECHO_N "(cached) $ECHO_C" >&6
9006 else
9007 ac_cv_sys_long_file_names=yes
9008 # Test for long file names in all the places we know might matter:
9009 # . the current directory, where building will happen
9010 # $prefix/lib where we will be installing things
9011 # $exec_prefix/lib likewise
9012 # $TMPDIR if set, where it might want to write temporary files
9013 # /tmp where it might want to write temporary files
9014 # /var/tmp likewise
9015 # /usr/tmp likewise
9016 for ac_dir in . "$TMPDIR" /tmp /var/tmp /usr/tmp "$prefix/lib" "$exec_prefix/lib"; do
9017 # Skip $TMPDIR if it is empty or bogus, and skip $exec_prefix/lib
9018 # in the usual case where exec_prefix is '${prefix}'.
9019 case $ac_dir in #(
9020 . | /* | ?:[\\/]*) ;; #(
9021 *) continue;;
9022 esac
9023 test -w "$ac_dir/." || continue # It is less confusing to not echo anything here.
9024 ac_xdir=$ac_dir/cf$$
9025 (umask 077 && mkdir "$ac_xdir" 2>/dev/null) || continue
9026 ac_tf1=$ac_xdir/conftest9012345
9027 ac_tf2=$ac_xdir/conftest9012346
9028 touch "$ac_tf1" 2>/dev/null && test -f "$ac_tf1" && test ! -f "$ac_tf2" ||
9029 ac_cv_sys_long_file_names=no
9030 rm -f -r "$ac_xdir" 2>/dev/null
9031 test $ac_cv_sys_long_file_names = no && break
9032 done
9034 { echo "$as_me:$LINENO: result: $ac_cv_sys_long_file_names" >&5
9035 echo "${ECHO_T}$ac_cv_sys_long_file_names" >&6; }
9036 if test $ac_cv_sys_long_file_names = yes; then
9038 cat >>confdefs.h <<\_ACEOF
9039 #define HAVE_LONG_FILE_NAMES 1
9040 _ACEOF
9045 #### Choose a window system.
9047 { echo "$as_me:$LINENO: checking for X" >&5
9048 echo $ECHO_N "checking for X... $ECHO_C" >&6; }
9051 # Check whether --with-x was given.
9052 if test "${with_x+set}" = set; then
9053 withval=$with_x;
9056 # $have_x is `yes', `no', `disabled', or empty when we do not yet know.
9057 if test "x$with_x" = xno; then
9058 # The user explicitly disabled X.
9059 have_x=disabled
9060 else
9061 case $x_includes,$x_libraries in #(
9062 *\'*) { { echo "$as_me:$LINENO: error: Cannot use X directory names containing '" >&5
9063 echo "$as_me: error: Cannot use X directory names containing '" >&2;}
9064 { (exit 1); exit 1; }; };; #(
9065 *,NONE | NONE,*) if test "${ac_cv_have_x+set}" = set; then
9066 echo $ECHO_N "(cached) $ECHO_C" >&6
9067 else
9068 # One or both of the vars are not set, and there is no cached value.
9069 ac_x_includes=no ac_x_libraries=no
9070 rm -f -r conftest.dir
9071 if mkdir conftest.dir; then
9072 cd conftest.dir
9073 cat >Imakefile <<'_ACEOF'
9074 incroot:
9075 @echo incroot='${INCROOT}'
9076 usrlibdir:
9077 @echo usrlibdir='${USRLIBDIR}'
9078 libdir:
9079 @echo libdir='${LIBDIR}'
9080 _ACEOF
9081 if (export CC; ${XMKMF-xmkmf}) >/dev/null 2>/dev/null && test -f Makefile; then
9082 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
9083 for ac_var in incroot usrlibdir libdir; do
9084 eval "ac_im_$ac_var=\`\${MAKE-make} $ac_var 2>/dev/null | sed -n 's/^$ac_var=//p'\`"
9085 done
9086 # Open Windows xmkmf reportedly sets LIBDIR instead of USRLIBDIR.
9087 for ac_extension in a so sl; do
9088 if test ! -f "$ac_im_usrlibdir/libX11.$ac_extension" &&
9089 test -f "$ac_im_libdir/libX11.$ac_extension"; then
9090 ac_im_usrlibdir=$ac_im_libdir; break
9092 done
9093 # Screen out bogus values from the imake configuration. They are
9094 # bogus both because they are the default anyway, and because
9095 # using them would break gcc on systems where it needs fixed includes.
9096 case $ac_im_incroot in
9097 /usr/include) ac_x_includes= ;;
9098 *) test -f "$ac_im_incroot/X11/Xos.h" && ac_x_includes=$ac_im_incroot;;
9099 esac
9100 case $ac_im_usrlibdir in
9101 /usr/lib | /lib) ;;
9102 *) test -d "$ac_im_usrlibdir" && ac_x_libraries=$ac_im_usrlibdir ;;
9103 esac
9105 cd ..
9106 rm -f -r conftest.dir
9109 # Standard set of common directories for X headers.
9110 # Check X11 before X11Rn because it is often a symlink to the current release.
9111 ac_x_header_dirs='
9112 /usr/X11/include
9113 /usr/X11R6/include
9114 /usr/X11R5/include
9115 /usr/X11R4/include
9117 /usr/include/X11
9118 /usr/include/X11R6
9119 /usr/include/X11R5
9120 /usr/include/X11R4
9122 /usr/local/X11/include
9123 /usr/local/X11R6/include
9124 /usr/local/X11R5/include
9125 /usr/local/X11R4/include
9127 /usr/local/include/X11
9128 /usr/local/include/X11R6
9129 /usr/local/include/X11R5
9130 /usr/local/include/X11R4
9132 /usr/X386/include
9133 /usr/x386/include
9134 /usr/XFree86/include/X11
9136 /usr/include
9137 /usr/local/include
9138 /usr/unsupported/include
9139 /usr/athena/include
9140 /usr/local/x11r5/include
9141 /usr/lpp/Xamples/include
9143 /usr/openwin/include
9144 /usr/openwin/share/include'
9146 if test "$ac_x_includes" = no; then
9147 # Guess where to find include files, by looking for Xlib.h.
9148 # First, try using that file with no special directory specified.
9149 cat >conftest.$ac_ext <<_ACEOF
9150 /* confdefs.h. */
9151 _ACEOF
9152 cat confdefs.h >>conftest.$ac_ext
9153 cat >>conftest.$ac_ext <<_ACEOF
9154 /* end confdefs.h. */
9155 #include <X11/Xlib.h>
9156 _ACEOF
9157 if { (ac_try="$ac_cpp conftest.$ac_ext"
9158 case "(($ac_try" in
9159 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9160 *) ac_try_echo=$ac_try;;
9161 esac
9162 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9163 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
9164 ac_status=$?
9165 grep -v '^ *+' conftest.er1 >conftest.err
9166 rm -f conftest.er1
9167 cat conftest.err >&5
9168 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9169 (exit $ac_status); } >/dev/null && {
9170 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
9171 test ! -s conftest.err
9172 }; then
9173 # We can compile using X headers with no special include directory.
9174 ac_x_includes=
9175 else
9176 echo "$as_me: failed program was:" >&5
9177 sed 's/^/| /' conftest.$ac_ext >&5
9179 for ac_dir in $ac_x_header_dirs; do
9180 if test -r "$ac_dir/X11/Xlib.h"; then
9181 ac_x_includes=$ac_dir
9182 break
9184 done
9187 rm -f conftest.err conftest.$ac_ext
9188 fi # $ac_x_includes = no
9190 if test "$ac_x_libraries" = no; then
9191 # Check for the libraries.
9192 # See if we find them without any special options.
9193 # Don't add to $LIBS permanently.
9194 ac_save_LIBS=$LIBS
9195 LIBS="-lX11 $LIBS"
9196 cat >conftest.$ac_ext <<_ACEOF
9197 /* confdefs.h. */
9198 _ACEOF
9199 cat confdefs.h >>conftest.$ac_ext
9200 cat >>conftest.$ac_ext <<_ACEOF
9201 /* end confdefs.h. */
9202 #include <X11/Xlib.h>
9204 main ()
9206 XrmInitialize ()
9208 return 0;
9210 _ACEOF
9211 rm -f conftest.$ac_objext conftest$ac_exeext
9212 if { (ac_try="$ac_link"
9213 case "(($ac_try" in
9214 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9215 *) ac_try_echo=$ac_try;;
9216 esac
9217 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9218 (eval "$ac_link") 2>conftest.er1
9219 ac_status=$?
9220 grep -v '^ *+' conftest.er1 >conftest.err
9221 rm -f conftest.er1
9222 cat conftest.err >&5
9223 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9224 (exit $ac_status); } && {
9225 test -z "$ac_c_werror_flag" ||
9226 test ! -s conftest.err
9227 } && test -s conftest$ac_exeext &&
9228 $as_test_x conftest$ac_exeext; then
9229 LIBS=$ac_save_LIBS
9230 # We can link X programs with no special library path.
9231 ac_x_libraries=
9232 else
9233 echo "$as_me: failed program was:" >&5
9234 sed 's/^/| /' conftest.$ac_ext >&5
9236 LIBS=$ac_save_LIBS
9237 for ac_dir in `echo "$ac_x_includes $ac_x_header_dirs" | sed s/include/lib/g`
9239 # Don't even attempt the hair of trying to link an X program!
9240 for ac_extension in a so sl; do
9241 if test -r "$ac_dir/libX11.$ac_extension"; then
9242 ac_x_libraries=$ac_dir
9243 break 2
9245 done
9246 done
9249 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
9250 conftest$ac_exeext conftest.$ac_ext
9251 fi # $ac_x_libraries = no
9253 case $ac_x_includes,$ac_x_libraries in #(
9254 no,* | *,no | *\'*)
9255 # Didn't find X, or a directory has "'" in its name.
9256 ac_cv_have_x="have_x=no";; #(
9258 # Record where we found X for the cache.
9259 ac_cv_have_x="have_x=yes\
9260 ac_x_includes='$ac_x_includes'\
9261 ac_x_libraries='$ac_x_libraries'"
9262 esac
9264 ;; #(
9265 *) have_x=yes;;
9266 esac
9267 eval "$ac_cv_have_x"
9268 fi # $with_x != no
9270 if test "$have_x" != yes; then
9271 { echo "$as_me:$LINENO: result: $have_x" >&5
9272 echo "${ECHO_T}$have_x" >&6; }
9273 no_x=yes
9274 else
9275 # If each of the values was on the command line, it overrides each guess.
9276 test "x$x_includes" = xNONE && x_includes=$ac_x_includes
9277 test "x$x_libraries" = xNONE && x_libraries=$ac_x_libraries
9278 # Update the cache value to reflect the command line values.
9279 ac_cv_have_x="have_x=yes\
9280 ac_x_includes='$x_includes'\
9281 ac_x_libraries='$x_libraries'"
9282 { echo "$as_me:$LINENO: result: libraries $x_libraries, headers $x_includes" >&5
9283 echo "${ECHO_T}libraries $x_libraries, headers $x_includes" >&6; }
9286 if test "$no_x" = yes; then
9287 window_system=none
9288 else
9289 window_system=x11
9292 if test "${x_libraries}" != NONE; then
9293 if test -n "${x_libraries}"; then
9294 LD_SWITCH_X_SITE=-L`echo ${x_libraries} | sed -e "s/:/ -L/g"`
9295 LD_SWITCH_X_SITE_AUX=-R`echo ${x_libraries} | sed -e "s/:/ -R/g"`
9297 x_default_search_path=""
9298 x_search_path=${x_libraries}
9299 if test -z "${x_search_path}"; then
9300 x_search_path=/usr/lib
9302 for x_library in `echo ${x_search_path}: | \
9303 sed -e "s/:/ /g" -e p -e "s:/lib[^ /]* :/share :g"`; do
9304 x_search_path="\
9305 ${x_library}/X11/%L/%T/%N%C%S:\
9306 ${x_library}/X11/%l/%T/%N%C%S:\
9307 ${x_library}/X11/%T/%N%C%S:\
9308 ${x_library}/X11/%L/%T/%N%S:\
9309 ${x_library}/X11/%l/%T/%N%S:\
9310 ${x_library}/X11/%T/%N%S"
9311 if test x"${x_default_search_path}" = x; then
9312 x_default_search_path=${x_search_path}
9313 else
9314 x_default_search_path="${x_search_path}:${x_default_search_path}"
9316 done
9318 if test "${x_includes}" != NONE && test -n "${x_includes}"; then
9319 C_SWITCH_X_SITE=-I`echo ${x_includes} | sed -e "s/:/ -I/g"`
9322 if test x"${x_includes}" = x; then
9323 bitmapdir=/usr/include/X11/bitmaps
9324 else
9325 # accumulate include directories that have X11 bitmap subdirectories
9326 bmd_acc="dummyval"
9327 for bmd in `echo ${x_includes} | sed -e "s/:/ /g"`; do
9328 if test -d "${bmd}/X11/bitmaps"; then
9329 bmd_acc="${bmd_acc}:${bmd}/X11/bitmaps"
9331 if test -d "${bmd}/bitmaps"; then
9332 bmd_acc="${bmd_acc}:${bmd}/bitmaps"
9334 done
9335 if test ${bmd_acc} != "dummyval"; then
9336 bitmapdir=`echo ${bmd_acc} | sed -e "s/^dummyval://"`
9340 HAVE_CARBON=no
9341 if test "${with_carbon}" != no; then
9342 if test "${ac_cv_header_Carbon_Carbon_h+set}" = set; then
9343 { echo "$as_me:$LINENO: checking for Carbon/Carbon.h" >&5
9344 echo $ECHO_N "checking for Carbon/Carbon.h... $ECHO_C" >&6; }
9345 if test "${ac_cv_header_Carbon_Carbon_h+set}" = set; then
9346 echo $ECHO_N "(cached) $ECHO_C" >&6
9348 { echo "$as_me:$LINENO: result: $ac_cv_header_Carbon_Carbon_h" >&5
9349 echo "${ECHO_T}$ac_cv_header_Carbon_Carbon_h" >&6; }
9350 else
9351 # Is the header compilable?
9352 { echo "$as_me:$LINENO: checking Carbon/Carbon.h usability" >&5
9353 echo $ECHO_N "checking Carbon/Carbon.h usability... $ECHO_C" >&6; }
9354 cat >conftest.$ac_ext <<_ACEOF
9355 /* confdefs.h. */
9356 _ACEOF
9357 cat confdefs.h >>conftest.$ac_ext
9358 cat >>conftest.$ac_ext <<_ACEOF
9359 /* end confdefs.h. */
9360 $ac_includes_default
9361 #include <Carbon/Carbon.h>
9362 _ACEOF
9363 rm -f conftest.$ac_objext
9364 if { (ac_try="$ac_compile"
9365 case "(($ac_try" in
9366 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9367 *) ac_try_echo=$ac_try;;
9368 esac
9369 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9370 (eval "$ac_compile") 2>conftest.er1
9371 ac_status=$?
9372 grep -v '^ *+' conftest.er1 >conftest.err
9373 rm -f conftest.er1
9374 cat conftest.err >&5
9375 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9376 (exit $ac_status); } && {
9377 test -z "$ac_c_werror_flag" ||
9378 test ! -s conftest.err
9379 } && test -s conftest.$ac_objext; then
9380 ac_header_compiler=yes
9381 else
9382 echo "$as_me: failed program was:" >&5
9383 sed 's/^/| /' conftest.$ac_ext >&5
9385 ac_header_compiler=no
9388 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9389 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
9390 echo "${ECHO_T}$ac_header_compiler" >&6; }
9392 # Is the header present?
9393 { echo "$as_me:$LINENO: checking Carbon/Carbon.h presence" >&5
9394 echo $ECHO_N "checking Carbon/Carbon.h presence... $ECHO_C" >&6; }
9395 cat >conftest.$ac_ext <<_ACEOF
9396 /* confdefs.h. */
9397 _ACEOF
9398 cat confdefs.h >>conftest.$ac_ext
9399 cat >>conftest.$ac_ext <<_ACEOF
9400 /* end confdefs.h. */
9401 #include <Carbon/Carbon.h>
9402 _ACEOF
9403 if { (ac_try="$ac_cpp conftest.$ac_ext"
9404 case "(($ac_try" in
9405 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9406 *) ac_try_echo=$ac_try;;
9407 esac
9408 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9409 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
9410 ac_status=$?
9411 grep -v '^ *+' conftest.er1 >conftest.err
9412 rm -f conftest.er1
9413 cat conftest.err >&5
9414 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9415 (exit $ac_status); } >/dev/null && {
9416 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
9417 test ! -s conftest.err
9418 }; then
9419 ac_header_preproc=yes
9420 else
9421 echo "$as_me: failed program was:" >&5
9422 sed 's/^/| /' conftest.$ac_ext >&5
9424 ac_header_preproc=no
9427 rm -f conftest.err conftest.$ac_ext
9428 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
9429 echo "${ECHO_T}$ac_header_preproc" >&6; }
9431 # So? What about this header?
9432 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
9433 yes:no: )
9434 { echo "$as_me:$LINENO: WARNING: Carbon/Carbon.h: accepted by the compiler, rejected by the preprocessor!" >&5
9435 echo "$as_me: WARNING: Carbon/Carbon.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
9436 { echo "$as_me:$LINENO: WARNING: Carbon/Carbon.h: proceeding with the compiler's result" >&5
9437 echo "$as_me: WARNING: Carbon/Carbon.h: proceeding with the compiler's result" >&2;}
9438 ac_header_preproc=yes
9440 no:yes:* )
9441 { echo "$as_me:$LINENO: WARNING: Carbon/Carbon.h: present but cannot be compiled" >&5
9442 echo "$as_me: WARNING: Carbon/Carbon.h: present but cannot be compiled" >&2;}
9443 { echo "$as_me:$LINENO: WARNING: Carbon/Carbon.h: check for missing prerequisite headers?" >&5
9444 echo "$as_me: WARNING: Carbon/Carbon.h: check for missing prerequisite headers?" >&2;}
9445 { echo "$as_me:$LINENO: WARNING: Carbon/Carbon.h: see the Autoconf documentation" >&5
9446 echo "$as_me: WARNING: Carbon/Carbon.h: see the Autoconf documentation" >&2;}
9447 { echo "$as_me:$LINENO: WARNING: Carbon/Carbon.h: section \"Present But Cannot Be Compiled\"" >&5
9448 echo "$as_me: WARNING: Carbon/Carbon.h: section \"Present But Cannot Be Compiled\"" >&2;}
9449 { echo "$as_me:$LINENO: WARNING: Carbon/Carbon.h: proceeding with the preprocessor's result" >&5
9450 echo "$as_me: WARNING: Carbon/Carbon.h: proceeding with the preprocessor's result" >&2;}
9451 { echo "$as_me:$LINENO: WARNING: Carbon/Carbon.h: in the future, the compiler will take precedence" >&5
9452 echo "$as_me: WARNING: Carbon/Carbon.h: in the future, the compiler will take precedence" >&2;}
9455 esac
9456 { echo "$as_me:$LINENO: checking for Carbon/Carbon.h" >&5
9457 echo $ECHO_N "checking for Carbon/Carbon.h... $ECHO_C" >&6; }
9458 if test "${ac_cv_header_Carbon_Carbon_h+set}" = set; then
9459 echo $ECHO_N "(cached) $ECHO_C" >&6
9460 else
9461 ac_cv_header_Carbon_Carbon_h=$ac_header_preproc
9463 { echo "$as_me:$LINENO: result: $ac_cv_header_Carbon_Carbon_h" >&5
9464 echo "${ECHO_T}$ac_cv_header_Carbon_Carbon_h" >&6; }
9467 if test $ac_cv_header_Carbon_Carbon_h = yes; then
9468 HAVE_CARBON=yes
9473 if test "${window_system}" = x11 && test "${HAVE_CARBON}" = yes; then
9474 if test "${with_carbon+set}" != set \
9475 && test "${carbon_appdir_x+set}" != set; then
9476 for var in with_x with_x_toolkit with_xim \
9477 with_xpm with_jpeg with_tiff with_gif with_png; do
9478 if eval test \"\${$var+set}\" = set; then
9479 HAVE_CARBON=no
9480 break
9482 done
9485 if test "${HAVE_CARBON}" = yes; then
9486 window_system=mac
9489 case "${window_system}" in
9490 x11 )
9491 HAVE_X_WINDOWS=yes
9492 HAVE_X11=yes
9493 case "${with_x_toolkit}" in
9494 athena | lucid ) USE_X_TOOLKIT=LUCID ;;
9495 motif ) USE_X_TOOLKIT=MOTIF ;;
9496 gtk ) with_gtk=yes
9497 USE_X_TOOLKIT=none ;;
9498 no ) USE_X_TOOLKIT=none ;;
9499 * ) USE_X_TOOLKIT=maybe ;;
9500 esac
9502 mac | none )
9503 HAVE_X_WINDOWS=no
9504 HAVE_X11=no
9505 USE_X_TOOLKIT=none
9507 esac
9509 if test "$window_system" = none && test "X$with_x" != "Xno"; then
9510 # Extract the first word of "X", so it can be a program name with args.
9511 set dummy X; ac_word=$2
9512 { echo "$as_me:$LINENO: checking for $ac_word" >&5
9513 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
9514 if test "${ac_cv_prog_HAVE_XSERVER+set}" = set; then
9515 echo $ECHO_N "(cached) $ECHO_C" >&6
9516 else
9517 if test -n "$HAVE_XSERVER"; then
9518 ac_cv_prog_HAVE_XSERVER="$HAVE_XSERVER" # Let the user override the test.
9519 else
9520 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9521 for as_dir in $PATH
9523 IFS=$as_save_IFS
9524 test -z "$as_dir" && as_dir=.
9525 for ac_exec_ext in '' $ac_executable_extensions; do
9526 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9527 ac_cv_prog_HAVE_XSERVER="true"
9528 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
9529 break 2
9531 done
9532 done
9533 IFS=$as_save_IFS
9535 test -z "$ac_cv_prog_HAVE_XSERVER" && ac_cv_prog_HAVE_XSERVER="false"
9538 HAVE_XSERVER=$ac_cv_prog_HAVE_XSERVER
9539 if test -n "$HAVE_XSERVER"; then
9540 { echo "$as_me:$LINENO: result: $HAVE_XSERVER" >&5
9541 echo "${ECHO_T}$HAVE_XSERVER" >&6; }
9542 else
9543 { echo "$as_me:$LINENO: result: no" >&5
9544 echo "${ECHO_T}no" >&6; }
9548 if test "$HAVE_XSERVER" = true ||
9549 test -n "$DISPLAY" ||
9550 test "`echo /usr/lib/libX11.*`" != "/usr/lib/libX11.*"; then
9551 { { echo "$as_me:$LINENO: error: You seem to be running X, but no X development libraries
9552 were found. You should install the relevant development files for X
9553 and for the toolkit you want, such as Gtk+, Lesstif or Motif. Also make
9554 sure you have development files for image handling, i.e.
9555 tiff, gif, jpeg, png and xpm.
9556 If you are sure you want Emacs compiled without X window support, pass
9557 --without-x
9558 to configure." >&5
9559 echo "$as_me: error: You seem to be running X, but no X development libraries
9560 were found. You should install the relevant development files for X
9561 and for the toolkit you want, such as Gtk+, Lesstif or Motif. Also make
9562 sure you have development files for image handling, i.e.
9563 tiff, gif, jpeg, png and xpm.
9564 If you are sure you want Emacs compiled without X window support, pass
9565 --without-x
9566 to configure." >&2;}
9567 { (exit 1); exit 1; }; }
9571 ### If we're using X11, we should use the X menu package.
9572 HAVE_MENUS=no
9573 case ${HAVE_X11} in
9574 yes ) HAVE_MENUS=yes ;;
9575 esac
9577 ### Compute the unexec source name from the object name.
9578 UNEXEC_SRC="`echo ${unexec} | sed 's/\.o/.c/'`"
9580 # Do the opsystem or machine files prohibit the use of the GNU malloc?
9581 # Assume not, until told otherwise.
9582 GNU_MALLOC=yes
9583 doug_lea_malloc=yes
9584 { echo "$as_me:$LINENO: checking for malloc_get_state" >&5
9585 echo $ECHO_N "checking for malloc_get_state... $ECHO_C" >&6; }
9586 if test "${ac_cv_func_malloc_get_state+set}" = set; then
9587 echo $ECHO_N "(cached) $ECHO_C" >&6
9588 else
9589 cat >conftest.$ac_ext <<_ACEOF
9590 /* confdefs.h. */
9591 _ACEOF
9592 cat confdefs.h >>conftest.$ac_ext
9593 cat >>conftest.$ac_ext <<_ACEOF
9594 /* end confdefs.h. */
9595 /* Define malloc_get_state to an innocuous variant, in case <limits.h> declares malloc_get_state.
9596 For example, HP-UX 11i <limits.h> declares gettimeofday. */
9597 #define malloc_get_state innocuous_malloc_get_state
9599 /* System header to define __stub macros and hopefully few prototypes,
9600 which can conflict with char malloc_get_state (); below.
9601 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
9602 <limits.h> exists even on freestanding compilers. */
9604 #ifdef __STDC__
9605 # include <limits.h>
9606 #else
9607 # include <assert.h>
9608 #endif
9610 #undef malloc_get_state
9612 /* Override any GCC internal prototype to avoid an error.
9613 Use char because int might match the return type of a GCC
9614 builtin and then its argument prototype would still apply. */
9615 #ifdef __cplusplus
9616 extern "C"
9617 #endif
9618 char malloc_get_state ();
9619 /* The GNU C library defines this for functions which it implements
9620 to always fail with ENOSYS. Some functions are actually named
9621 something starting with __ and the normal name is an alias. */
9622 #if defined __stub_malloc_get_state || defined __stub___malloc_get_state
9623 choke me
9624 #endif
9627 main ()
9629 return malloc_get_state ();
9631 return 0;
9633 _ACEOF
9634 rm -f conftest.$ac_objext conftest$ac_exeext
9635 if { (ac_try="$ac_link"
9636 case "(($ac_try" in
9637 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9638 *) ac_try_echo=$ac_try;;
9639 esac
9640 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9641 (eval "$ac_link") 2>conftest.er1
9642 ac_status=$?
9643 grep -v '^ *+' conftest.er1 >conftest.err
9644 rm -f conftest.er1
9645 cat conftest.err >&5
9646 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9647 (exit $ac_status); } && {
9648 test -z "$ac_c_werror_flag" ||
9649 test ! -s conftest.err
9650 } && test -s conftest$ac_exeext &&
9651 $as_test_x conftest$ac_exeext; then
9652 ac_cv_func_malloc_get_state=yes
9653 else
9654 echo "$as_me: failed program was:" >&5
9655 sed 's/^/| /' conftest.$ac_ext >&5
9657 ac_cv_func_malloc_get_state=no
9660 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
9661 conftest$ac_exeext conftest.$ac_ext
9663 { echo "$as_me:$LINENO: result: $ac_cv_func_malloc_get_state" >&5
9664 echo "${ECHO_T}$ac_cv_func_malloc_get_state" >&6; }
9665 if test $ac_cv_func_malloc_get_state = yes; then
9667 else
9668 doug_lea_malloc=no
9671 { echo "$as_me:$LINENO: checking for malloc_set_state" >&5
9672 echo $ECHO_N "checking for malloc_set_state... $ECHO_C" >&6; }
9673 if test "${ac_cv_func_malloc_set_state+set}" = set; then
9674 echo $ECHO_N "(cached) $ECHO_C" >&6
9675 else
9676 cat >conftest.$ac_ext <<_ACEOF
9677 /* confdefs.h. */
9678 _ACEOF
9679 cat confdefs.h >>conftest.$ac_ext
9680 cat >>conftest.$ac_ext <<_ACEOF
9681 /* end confdefs.h. */
9682 /* Define malloc_set_state to an innocuous variant, in case <limits.h> declares malloc_set_state.
9683 For example, HP-UX 11i <limits.h> declares gettimeofday. */
9684 #define malloc_set_state innocuous_malloc_set_state
9686 /* System header to define __stub macros and hopefully few prototypes,
9687 which can conflict with char malloc_set_state (); below.
9688 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
9689 <limits.h> exists even on freestanding compilers. */
9691 #ifdef __STDC__
9692 # include <limits.h>
9693 #else
9694 # include <assert.h>
9695 #endif
9697 #undef malloc_set_state
9699 /* Override any GCC internal prototype to avoid an error.
9700 Use char because int might match the return type of a GCC
9701 builtin and then its argument prototype would still apply. */
9702 #ifdef __cplusplus
9703 extern "C"
9704 #endif
9705 char malloc_set_state ();
9706 /* The GNU C library defines this for functions which it implements
9707 to always fail with ENOSYS. Some functions are actually named
9708 something starting with __ and the normal name is an alias. */
9709 #if defined __stub_malloc_set_state || defined __stub___malloc_set_state
9710 choke me
9711 #endif
9714 main ()
9716 return malloc_set_state ();
9718 return 0;
9720 _ACEOF
9721 rm -f conftest.$ac_objext conftest$ac_exeext
9722 if { (ac_try="$ac_link"
9723 case "(($ac_try" in
9724 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9725 *) ac_try_echo=$ac_try;;
9726 esac
9727 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9728 (eval "$ac_link") 2>conftest.er1
9729 ac_status=$?
9730 grep -v '^ *+' conftest.er1 >conftest.err
9731 rm -f conftest.er1
9732 cat conftest.err >&5
9733 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9734 (exit $ac_status); } && {
9735 test -z "$ac_c_werror_flag" ||
9736 test ! -s conftest.err
9737 } && test -s conftest$ac_exeext &&
9738 $as_test_x conftest$ac_exeext; then
9739 ac_cv_func_malloc_set_state=yes
9740 else
9741 echo "$as_me: failed program was:" >&5
9742 sed 's/^/| /' conftest.$ac_ext >&5
9744 ac_cv_func_malloc_set_state=no
9747 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
9748 conftest$ac_exeext conftest.$ac_ext
9750 { echo "$as_me:$LINENO: result: $ac_cv_func_malloc_set_state" >&5
9751 echo "${ECHO_T}$ac_cv_func_malloc_set_state" >&6; }
9752 if test $ac_cv_func_malloc_set_state = yes; then
9754 else
9755 doug_lea_malloc=no
9758 { echo "$as_me:$LINENO: checking whether __after_morecore_hook exists" >&5
9759 echo $ECHO_N "checking whether __after_morecore_hook exists... $ECHO_C" >&6; }
9760 if test "${emacs_cv_var___after_morecore_hook+set}" = set; then
9761 echo $ECHO_N "(cached) $ECHO_C" >&6
9762 else
9763 cat >conftest.$ac_ext <<_ACEOF
9764 /* confdefs.h. */
9765 _ACEOF
9766 cat confdefs.h >>conftest.$ac_ext
9767 cat >>conftest.$ac_ext <<_ACEOF
9768 /* end confdefs.h. */
9769 extern void (* __after_morecore_hook)();
9771 main ()
9773 __after_morecore_hook = 0
9775 return 0;
9777 _ACEOF
9778 rm -f conftest.$ac_objext conftest$ac_exeext
9779 if { (ac_try="$ac_link"
9780 case "(($ac_try" in
9781 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9782 *) ac_try_echo=$ac_try;;
9783 esac
9784 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9785 (eval "$ac_link") 2>conftest.er1
9786 ac_status=$?
9787 grep -v '^ *+' conftest.er1 >conftest.err
9788 rm -f conftest.er1
9789 cat conftest.err >&5
9790 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9791 (exit $ac_status); } && {
9792 test -z "$ac_c_werror_flag" ||
9793 test ! -s conftest.err
9794 } && test -s conftest$ac_exeext &&
9795 $as_test_x conftest$ac_exeext; then
9796 emacs_cv_var___after_morecore_hook=yes
9797 else
9798 echo "$as_me: failed program was:" >&5
9799 sed 's/^/| /' conftest.$ac_ext >&5
9801 emacs_cv_var___after_morecore_hook=no
9804 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
9805 conftest$ac_exeext conftest.$ac_ext
9807 { echo "$as_me:$LINENO: result: $emacs_cv_var___after_morecore_hook" >&5
9808 echo "${ECHO_T}$emacs_cv_var___after_morecore_hook" >&6; }
9809 if test $emacs_cv_var___after_morecore_hook = no; then
9810 doug_lea_malloc=no
9812 if test "${system_malloc}" = "yes"; then
9813 GNU_MALLOC=no
9814 GNU_MALLOC_reason="
9815 (The GNU allocators don't work with this system configuration.)"
9817 if test "$doug_lea_malloc" = "yes" ; then
9818 if test "$GNU_MALLOC" = yes ; then
9819 GNU_MALLOC_reason="
9820 (Using Doug Lea's new malloc from the GNU C Library.)"
9823 cat >>confdefs.h <<\_ACEOF
9824 #define DOUG_LEA_MALLOC 1
9825 _ACEOF
9829 if test x"${REL_ALLOC}" = x; then
9830 REL_ALLOC=${GNU_MALLOC}
9836 for ac_header in stdlib.h unistd.h
9838 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
9839 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
9840 { echo "$as_me:$LINENO: checking for $ac_header" >&5
9841 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
9842 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
9843 echo $ECHO_N "(cached) $ECHO_C" >&6
9845 ac_res=`eval echo '${'$as_ac_Header'}'`
9846 { echo "$as_me:$LINENO: result: $ac_res" >&5
9847 echo "${ECHO_T}$ac_res" >&6; }
9848 else
9849 # Is the header compilable?
9850 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
9851 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
9852 cat >conftest.$ac_ext <<_ACEOF
9853 /* confdefs.h. */
9854 _ACEOF
9855 cat confdefs.h >>conftest.$ac_ext
9856 cat >>conftest.$ac_ext <<_ACEOF
9857 /* end confdefs.h. */
9858 $ac_includes_default
9859 #include <$ac_header>
9860 _ACEOF
9861 rm -f conftest.$ac_objext
9862 if { (ac_try="$ac_compile"
9863 case "(($ac_try" in
9864 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9865 *) ac_try_echo=$ac_try;;
9866 esac
9867 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9868 (eval "$ac_compile") 2>conftest.er1
9869 ac_status=$?
9870 grep -v '^ *+' conftest.er1 >conftest.err
9871 rm -f conftest.er1
9872 cat conftest.err >&5
9873 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9874 (exit $ac_status); } && {
9875 test -z "$ac_c_werror_flag" ||
9876 test ! -s conftest.err
9877 } && test -s conftest.$ac_objext; then
9878 ac_header_compiler=yes
9879 else
9880 echo "$as_me: failed program was:" >&5
9881 sed 's/^/| /' conftest.$ac_ext >&5
9883 ac_header_compiler=no
9886 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9887 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
9888 echo "${ECHO_T}$ac_header_compiler" >&6; }
9890 # Is the header present?
9891 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
9892 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
9893 cat >conftest.$ac_ext <<_ACEOF
9894 /* confdefs.h. */
9895 _ACEOF
9896 cat confdefs.h >>conftest.$ac_ext
9897 cat >>conftest.$ac_ext <<_ACEOF
9898 /* end confdefs.h. */
9899 #include <$ac_header>
9900 _ACEOF
9901 if { (ac_try="$ac_cpp conftest.$ac_ext"
9902 case "(($ac_try" in
9903 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9904 *) ac_try_echo=$ac_try;;
9905 esac
9906 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9907 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
9908 ac_status=$?
9909 grep -v '^ *+' conftest.er1 >conftest.err
9910 rm -f conftest.er1
9911 cat conftest.err >&5
9912 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9913 (exit $ac_status); } >/dev/null && {
9914 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
9915 test ! -s conftest.err
9916 }; then
9917 ac_header_preproc=yes
9918 else
9919 echo "$as_me: failed program was:" >&5
9920 sed 's/^/| /' conftest.$ac_ext >&5
9922 ac_header_preproc=no
9925 rm -f conftest.err conftest.$ac_ext
9926 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
9927 echo "${ECHO_T}$ac_header_preproc" >&6; }
9929 # So? What about this header?
9930 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
9931 yes:no: )
9932 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
9933 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
9934 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
9935 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
9936 ac_header_preproc=yes
9938 no:yes:* )
9939 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
9940 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
9941 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
9942 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
9943 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
9944 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
9945 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
9946 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
9947 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
9948 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
9949 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
9950 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
9953 esac
9954 { echo "$as_me:$LINENO: checking for $ac_header" >&5
9955 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
9956 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
9957 echo $ECHO_N "(cached) $ECHO_C" >&6
9958 else
9959 eval "$as_ac_Header=\$ac_header_preproc"
9961 ac_res=`eval echo '${'$as_ac_Header'}'`
9962 { echo "$as_me:$LINENO: result: $ac_res" >&5
9963 echo "${ECHO_T}$ac_res" >&6; }
9966 if test `eval echo '${'$as_ac_Header'}'` = yes; then
9967 cat >>confdefs.h <<_ACEOF
9968 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
9969 _ACEOF
9973 done
9976 for ac_func in getpagesize
9978 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
9979 { echo "$as_me:$LINENO: checking for $ac_func" >&5
9980 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
9981 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
9982 echo $ECHO_N "(cached) $ECHO_C" >&6
9983 else
9984 cat >conftest.$ac_ext <<_ACEOF
9985 /* confdefs.h. */
9986 _ACEOF
9987 cat confdefs.h >>conftest.$ac_ext
9988 cat >>conftest.$ac_ext <<_ACEOF
9989 /* end confdefs.h. */
9990 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
9991 For example, HP-UX 11i <limits.h> declares gettimeofday. */
9992 #define $ac_func innocuous_$ac_func
9994 /* System header to define __stub macros and hopefully few prototypes,
9995 which can conflict with char $ac_func (); below.
9996 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
9997 <limits.h> exists even on freestanding compilers. */
9999 #ifdef __STDC__
10000 # include <limits.h>
10001 #else
10002 # include <assert.h>
10003 #endif
10005 #undef $ac_func
10007 /* Override any GCC internal prototype to avoid an error.
10008 Use char because int might match the return type of a GCC
10009 builtin and then its argument prototype would still apply. */
10010 #ifdef __cplusplus
10011 extern "C"
10012 #endif
10013 char $ac_func ();
10014 /* The GNU C library defines this for functions which it implements
10015 to always fail with ENOSYS. Some functions are actually named
10016 something starting with __ and the normal name is an alias. */
10017 #if defined __stub_$ac_func || defined __stub___$ac_func
10018 choke me
10019 #endif
10022 main ()
10024 return $ac_func ();
10026 return 0;
10028 _ACEOF
10029 rm -f conftest.$ac_objext conftest$ac_exeext
10030 if { (ac_try="$ac_link"
10031 case "(($ac_try" in
10032 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10033 *) ac_try_echo=$ac_try;;
10034 esac
10035 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10036 (eval "$ac_link") 2>conftest.er1
10037 ac_status=$?
10038 grep -v '^ *+' conftest.er1 >conftest.err
10039 rm -f conftest.er1
10040 cat conftest.err >&5
10041 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10042 (exit $ac_status); } && {
10043 test -z "$ac_c_werror_flag" ||
10044 test ! -s conftest.err
10045 } && test -s conftest$ac_exeext &&
10046 $as_test_x conftest$ac_exeext; then
10047 eval "$as_ac_var=yes"
10048 else
10049 echo "$as_me: failed program was:" >&5
10050 sed 's/^/| /' conftest.$ac_ext >&5
10052 eval "$as_ac_var=no"
10055 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
10056 conftest$ac_exeext conftest.$ac_ext
10058 ac_res=`eval echo '${'$as_ac_var'}'`
10059 { echo "$as_me:$LINENO: result: $ac_res" >&5
10060 echo "${ECHO_T}$ac_res" >&6; }
10061 if test `eval echo '${'$as_ac_var'}'` = yes; then
10062 cat >>confdefs.h <<_ACEOF
10063 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
10064 _ACEOF
10067 done
10069 { echo "$as_me:$LINENO: checking for working mmap" >&5
10070 echo $ECHO_N "checking for working mmap... $ECHO_C" >&6; }
10071 if test "${ac_cv_func_mmap_fixed_mapped+set}" = set; then
10072 echo $ECHO_N "(cached) $ECHO_C" >&6
10073 else
10074 if test "$cross_compiling" = yes; then
10075 ac_cv_func_mmap_fixed_mapped=no
10076 else
10077 cat >conftest.$ac_ext <<_ACEOF
10078 /* confdefs.h. */
10079 _ACEOF
10080 cat confdefs.h >>conftest.$ac_ext
10081 cat >>conftest.$ac_ext <<_ACEOF
10082 /* end confdefs.h. */
10083 $ac_includes_default
10084 /* malloc might have been renamed as rpl_malloc. */
10085 #undef malloc
10087 /* Thanks to Mike Haertel and Jim Avera for this test.
10088 Here is a matrix of mmap possibilities:
10089 mmap private not fixed
10090 mmap private fixed at somewhere currently unmapped
10091 mmap private fixed at somewhere already mapped
10092 mmap shared not fixed
10093 mmap shared fixed at somewhere currently unmapped
10094 mmap shared fixed at somewhere already mapped
10095 For private mappings, we should verify that changes cannot be read()
10096 back from the file, nor mmap's back from the file at a different
10097 address. (There have been systems where private was not correctly
10098 implemented like the infamous i386 svr4.0, and systems where the
10099 VM page cache was not coherent with the file system buffer cache
10100 like early versions of FreeBSD and possibly contemporary NetBSD.)
10101 For shared mappings, we should conversely verify that changes get
10102 propagated back to all the places they're supposed to be.
10104 Grep wants private fixed already mapped.
10105 The main things grep needs to know about mmap are:
10106 * does it exist and is it safe to write into the mmap'd area
10107 * how to use it (BSD variants) */
10109 #include <fcntl.h>
10110 #include <sys/mman.h>
10112 #if !defined STDC_HEADERS && !defined HAVE_STDLIB_H
10113 char *malloc ();
10114 #endif
10116 /* This mess was copied from the GNU getpagesize.h. */
10117 #ifndef HAVE_GETPAGESIZE
10118 /* Assume that all systems that can run configure have sys/param.h. */
10119 # ifndef HAVE_SYS_PARAM_H
10120 # define HAVE_SYS_PARAM_H 1
10121 # endif
10123 # ifdef _SC_PAGESIZE
10124 # define getpagesize() sysconf(_SC_PAGESIZE)
10125 # else /* no _SC_PAGESIZE */
10126 # ifdef HAVE_SYS_PARAM_H
10127 # include <sys/param.h>
10128 # ifdef EXEC_PAGESIZE
10129 # define getpagesize() EXEC_PAGESIZE
10130 # else /* no EXEC_PAGESIZE */
10131 # ifdef NBPG
10132 # define getpagesize() NBPG * CLSIZE
10133 # ifndef CLSIZE
10134 # define CLSIZE 1
10135 # endif /* no CLSIZE */
10136 # else /* no NBPG */
10137 # ifdef NBPC
10138 # define getpagesize() NBPC
10139 # else /* no NBPC */
10140 # ifdef PAGESIZE
10141 # define getpagesize() PAGESIZE
10142 # endif /* PAGESIZE */
10143 # endif /* no NBPC */
10144 # endif /* no NBPG */
10145 # endif /* no EXEC_PAGESIZE */
10146 # else /* no HAVE_SYS_PARAM_H */
10147 # define getpagesize() 8192 /* punt totally */
10148 # endif /* no HAVE_SYS_PARAM_H */
10149 # endif /* no _SC_PAGESIZE */
10151 #endif /* no HAVE_GETPAGESIZE */
10154 main ()
10156 char *data, *data2, *data3;
10157 int i, pagesize;
10158 int fd;
10160 pagesize = getpagesize ();
10162 /* First, make a file with some known garbage in it. */
10163 data = (char *) malloc (pagesize);
10164 if (!data)
10165 return 1;
10166 for (i = 0; i < pagesize; ++i)
10167 *(data + i) = rand ();
10168 umask (0);
10169 fd = creat ("conftest.mmap", 0600);
10170 if (fd < 0)
10171 return 1;
10172 if (write (fd, data, pagesize) != pagesize)
10173 return 1;
10174 close (fd);
10176 /* Next, try to mmap the file at a fixed address which already has
10177 something else allocated at it. If we can, also make sure that
10178 we see the same garbage. */
10179 fd = open ("conftest.mmap", O_RDWR);
10180 if (fd < 0)
10181 return 1;
10182 data2 = (char *) malloc (2 * pagesize);
10183 if (!data2)
10184 return 1;
10185 data2 += (pagesize - ((long int) data2 & (pagesize - 1))) & (pagesize - 1);
10186 if (data2 != mmap (data2, pagesize, PROT_READ | PROT_WRITE,
10187 MAP_PRIVATE | MAP_FIXED, fd, 0L))
10188 return 1;
10189 for (i = 0; i < pagesize; ++i)
10190 if (*(data + i) != *(data2 + i))
10191 return 1;
10193 /* Finally, make sure that changes to the mapped area do not
10194 percolate back to the file as seen by read(). (This is a bug on
10195 some variants of i386 svr4.0.) */
10196 for (i = 0; i < pagesize; ++i)
10197 *(data2 + i) = *(data2 + i) + 1;
10198 data3 = (char *) malloc (pagesize);
10199 if (!data3)
10200 return 1;
10201 if (read (fd, data3, pagesize) != pagesize)
10202 return 1;
10203 for (i = 0; i < pagesize; ++i)
10204 if (*(data + i) != *(data3 + i))
10205 return 1;
10206 close (fd);
10207 return 0;
10209 _ACEOF
10210 rm -f conftest$ac_exeext
10211 if { (ac_try="$ac_link"
10212 case "(($ac_try" in
10213 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10214 *) ac_try_echo=$ac_try;;
10215 esac
10216 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10217 (eval "$ac_link") 2>&5
10218 ac_status=$?
10219 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10220 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
10221 { (case "(($ac_try" in
10222 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10223 *) ac_try_echo=$ac_try;;
10224 esac
10225 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10226 (eval "$ac_try") 2>&5
10227 ac_status=$?
10228 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10229 (exit $ac_status); }; }; then
10230 ac_cv_func_mmap_fixed_mapped=yes
10231 else
10232 echo "$as_me: program exited with status $ac_status" >&5
10233 echo "$as_me: failed program was:" >&5
10234 sed 's/^/| /' conftest.$ac_ext >&5
10236 ( exit $ac_status )
10237 ac_cv_func_mmap_fixed_mapped=no
10239 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
10244 { echo "$as_me:$LINENO: result: $ac_cv_func_mmap_fixed_mapped" >&5
10245 echo "${ECHO_T}$ac_cv_func_mmap_fixed_mapped" >&6; }
10246 if test $ac_cv_func_mmap_fixed_mapped = yes; then
10248 cat >>confdefs.h <<\_ACEOF
10249 #define HAVE_MMAP 1
10250 _ACEOF
10253 rm -f conftest.mmap
10255 if test $use_mmap_for_buffers = yes; then
10256 REL_ALLOC=no
10259 LIBS="$libsrc_libs $LIBS"
10262 { echo "$as_me:$LINENO: checking for dnet_ntoa in -ldnet" >&5
10263 echo $ECHO_N "checking for dnet_ntoa in -ldnet... $ECHO_C" >&6; }
10264 if test "${ac_cv_lib_dnet_dnet_ntoa+set}" = set; then
10265 echo $ECHO_N "(cached) $ECHO_C" >&6
10266 else
10267 ac_check_lib_save_LIBS=$LIBS
10268 LIBS="-ldnet $LIBS"
10269 cat >conftest.$ac_ext <<_ACEOF
10270 /* confdefs.h. */
10271 _ACEOF
10272 cat confdefs.h >>conftest.$ac_ext
10273 cat >>conftest.$ac_ext <<_ACEOF
10274 /* end confdefs.h. */
10276 /* Override any GCC internal prototype to avoid an error.
10277 Use char because int might match the return type of a GCC
10278 builtin and then its argument prototype would still apply. */
10279 #ifdef __cplusplus
10280 extern "C"
10281 #endif
10282 char dnet_ntoa ();
10284 main ()
10286 return dnet_ntoa ();
10288 return 0;
10290 _ACEOF
10291 rm -f conftest.$ac_objext conftest$ac_exeext
10292 if { (ac_try="$ac_link"
10293 case "(($ac_try" in
10294 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10295 *) ac_try_echo=$ac_try;;
10296 esac
10297 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10298 (eval "$ac_link") 2>conftest.er1
10299 ac_status=$?
10300 grep -v '^ *+' conftest.er1 >conftest.err
10301 rm -f conftest.er1
10302 cat conftest.err >&5
10303 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10304 (exit $ac_status); } && {
10305 test -z "$ac_c_werror_flag" ||
10306 test ! -s conftest.err
10307 } && test -s conftest$ac_exeext &&
10308 $as_test_x conftest$ac_exeext; then
10309 ac_cv_lib_dnet_dnet_ntoa=yes
10310 else
10311 echo "$as_me: failed program was:" >&5
10312 sed 's/^/| /' conftest.$ac_ext >&5
10314 ac_cv_lib_dnet_dnet_ntoa=no
10317 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
10318 conftest$ac_exeext conftest.$ac_ext
10319 LIBS=$ac_check_lib_save_LIBS
10321 { echo "$as_me:$LINENO: result: $ac_cv_lib_dnet_dnet_ntoa" >&5
10322 echo "${ECHO_T}$ac_cv_lib_dnet_dnet_ntoa" >&6; }
10323 if test $ac_cv_lib_dnet_dnet_ntoa = yes; then
10324 cat >>confdefs.h <<_ACEOF
10325 #define HAVE_LIBDNET 1
10326 _ACEOF
10328 LIBS="-ldnet $LIBS"
10333 { echo "$as_me:$LINENO: checking for main in -lXbsd" >&5
10334 echo $ECHO_N "checking for main in -lXbsd... $ECHO_C" >&6; }
10335 if test "${ac_cv_lib_Xbsd_main+set}" = set; then
10336 echo $ECHO_N "(cached) $ECHO_C" >&6
10337 else
10338 ac_check_lib_save_LIBS=$LIBS
10339 LIBS="-lXbsd $LIBS"
10340 cat >conftest.$ac_ext <<_ACEOF
10341 /* confdefs.h. */
10342 _ACEOF
10343 cat confdefs.h >>conftest.$ac_ext
10344 cat >>conftest.$ac_ext <<_ACEOF
10345 /* end confdefs.h. */
10349 main ()
10351 return main ();
10353 return 0;
10355 _ACEOF
10356 rm -f conftest.$ac_objext conftest$ac_exeext
10357 if { (ac_try="$ac_link"
10358 case "(($ac_try" in
10359 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10360 *) ac_try_echo=$ac_try;;
10361 esac
10362 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10363 (eval "$ac_link") 2>conftest.er1
10364 ac_status=$?
10365 grep -v '^ *+' conftest.er1 >conftest.err
10366 rm -f conftest.er1
10367 cat conftest.err >&5
10368 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10369 (exit $ac_status); } && {
10370 test -z "$ac_c_werror_flag" ||
10371 test ! -s conftest.err
10372 } && test -s conftest$ac_exeext &&
10373 $as_test_x conftest$ac_exeext; then
10374 ac_cv_lib_Xbsd_main=yes
10375 else
10376 echo "$as_me: failed program was:" >&5
10377 sed 's/^/| /' conftest.$ac_ext >&5
10379 ac_cv_lib_Xbsd_main=no
10382 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
10383 conftest$ac_exeext conftest.$ac_ext
10384 LIBS=$ac_check_lib_save_LIBS
10386 { echo "$as_me:$LINENO: result: $ac_cv_lib_Xbsd_main" >&5
10387 echo "${ECHO_T}$ac_cv_lib_Xbsd_main" >&6; }
10388 if test $ac_cv_lib_Xbsd_main = yes; then
10389 LD_SWITCH_X_SITE="$LD_SWITCH_X_SITE -lXbsd"
10394 { echo "$as_me:$LINENO: checking for cma_open in -lpthreads" >&5
10395 echo $ECHO_N "checking for cma_open in -lpthreads... $ECHO_C" >&6; }
10396 if test "${ac_cv_lib_pthreads_cma_open+set}" = set; then
10397 echo $ECHO_N "(cached) $ECHO_C" >&6
10398 else
10399 ac_check_lib_save_LIBS=$LIBS
10400 LIBS="-lpthreads $LIBS"
10401 cat >conftest.$ac_ext <<_ACEOF
10402 /* confdefs.h. */
10403 _ACEOF
10404 cat confdefs.h >>conftest.$ac_ext
10405 cat >>conftest.$ac_ext <<_ACEOF
10406 /* end confdefs.h. */
10408 /* Override any GCC internal prototype to avoid an error.
10409 Use char because int might match the return type of a GCC
10410 builtin and then its argument prototype would still apply. */
10411 #ifdef __cplusplus
10412 extern "C"
10413 #endif
10414 char cma_open ();
10416 main ()
10418 return cma_open ();
10420 return 0;
10422 _ACEOF
10423 rm -f conftest.$ac_objext conftest$ac_exeext
10424 if { (ac_try="$ac_link"
10425 case "(($ac_try" in
10426 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10427 *) ac_try_echo=$ac_try;;
10428 esac
10429 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10430 (eval "$ac_link") 2>conftest.er1
10431 ac_status=$?
10432 grep -v '^ *+' conftest.er1 >conftest.err
10433 rm -f conftest.er1
10434 cat conftest.err >&5
10435 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10436 (exit $ac_status); } && {
10437 test -z "$ac_c_werror_flag" ||
10438 test ! -s conftest.err
10439 } && test -s conftest$ac_exeext &&
10440 $as_test_x conftest$ac_exeext; then
10441 ac_cv_lib_pthreads_cma_open=yes
10442 else
10443 echo "$as_me: failed program was:" >&5
10444 sed 's/^/| /' conftest.$ac_ext >&5
10446 ac_cv_lib_pthreads_cma_open=no
10449 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
10450 conftest$ac_exeext conftest.$ac_ext
10451 LIBS=$ac_check_lib_save_LIBS
10453 { echo "$as_me:$LINENO: result: $ac_cv_lib_pthreads_cma_open" >&5
10454 echo "${ECHO_T}$ac_cv_lib_pthreads_cma_open" >&6; }
10455 if test $ac_cv_lib_pthreads_cma_open = yes; then
10456 cat >>confdefs.h <<_ACEOF
10457 #define HAVE_LIBPTHREADS 1
10458 _ACEOF
10460 LIBS="-lpthreads $LIBS"
10466 case ${host_os} in
10467 aix*)
10468 { echo "$as_me:$LINENO: checking for -bbigtoc option" >&5
10469 echo $ECHO_N "checking for -bbigtoc option... $ECHO_C" >&6; }
10470 if test "${gdb_cv_bigtoc+set}" = set; then
10471 echo $ECHO_N "(cached) $ECHO_C" >&6
10472 else
10474 case $GCC in
10475 yes) gdb_cv_bigtoc=-Wl,-bbigtoc ;;
10476 *) gdb_cv_bigtoc=-bbigtoc ;;
10477 esac
10479 LDFLAGS=$LDFLAGS\ $gdb_cv_bigtoc
10480 cat >conftest.$ac_ext <<_ACEOF
10481 /* confdefs.h. */
10482 _ACEOF
10483 cat confdefs.h >>conftest.$ac_ext
10484 cat >>conftest.$ac_ext <<_ACEOF
10485 /* end confdefs.h. */
10488 main ()
10490 int i;
10492 return 0;
10494 _ACEOF
10495 rm -f conftest.$ac_objext conftest$ac_exeext
10496 if { (ac_try="$ac_link"
10497 case "(($ac_try" in
10498 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10499 *) ac_try_echo=$ac_try;;
10500 esac
10501 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10502 (eval "$ac_link") 2>conftest.er1
10503 ac_status=$?
10504 grep -v '^ *+' conftest.er1 >conftest.err
10505 rm -f conftest.er1
10506 cat conftest.err >&5
10507 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10508 (exit $ac_status); } && {
10509 test -z "$ac_c_werror_flag" ||
10510 test ! -s conftest.err
10511 } && test -s conftest$ac_exeext &&
10512 $as_test_x conftest$ac_exeext; then
10514 else
10515 echo "$as_me: failed program was:" >&5
10516 sed 's/^/| /' conftest.$ac_ext >&5
10518 gdb_cv_bigtoc=
10521 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
10522 conftest$ac_exeext conftest.$ac_ext
10525 { echo "$as_me:$LINENO: result: $gdb_cv_bigtoc" >&5
10526 echo "${ECHO_T}$gdb_cv_bigtoc" >&6; }
10528 esac
10530 # Change CFLAGS and CPPFLAGS temporarily so that C_SWITCH_X_SITE gets
10531 # used for the tests that follow. We set them back to REAL_CFLAGS and
10532 # REAL_CPPFLAGS later on.
10534 REAL_CPPFLAGS="$CPPFLAGS"
10536 if test "${HAVE_X11}" = "yes"; then
10537 DEFS="$C_SWITCH_X_SITE $DEFS"
10538 LDFLAGS="$LDFLAGS $LD_SWITCH_X_SITE"
10539 LIBS="$LIBX $LIBS"
10540 CFLAGS="$C_SWITCH_X_SITE $CFLAGS"
10541 CPPFLAGS="$C_SWITCH_X_SITE $CPPFLAGS"
10543 # On Solaris, arrange for LD_RUN_PATH to point to the X libraries for tests.
10544 # This is handled by LD_SWITCH_X_SITE_AUX during the real build,
10545 # but it's more convenient here to set LD_RUN_PATH
10546 # since this also works on hosts that don't understand LD_SWITCH_X_SITE_AUX.
10547 if test "${x_libraries}" != NONE && test -n "${x_libraries}"; then
10548 LD_RUN_PATH=$x_libraries${LD_RUN_PATH+:}$LD_RUN_PATH
10549 export LD_RUN_PATH
10552 if test "${opsys}" = "gnu-linux"; then
10553 { echo "$as_me:$LINENO: checking whether X on GNU/Linux needs -b to link" >&5
10554 echo $ECHO_N "checking whether X on GNU/Linux needs -b to link... $ECHO_C" >&6; }
10555 cat >conftest.$ac_ext <<_ACEOF
10556 /* confdefs.h. */
10557 _ACEOF
10558 cat confdefs.h >>conftest.$ac_ext
10559 cat >>conftest.$ac_ext <<_ACEOF
10560 /* end confdefs.h. */
10563 main ()
10565 XOpenDisplay ("foo");
10567 return 0;
10569 _ACEOF
10570 rm -f conftest.$ac_objext conftest$ac_exeext
10571 if { (ac_try="$ac_link"
10572 case "(($ac_try" in
10573 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10574 *) ac_try_echo=$ac_try;;
10575 esac
10576 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10577 (eval "$ac_link") 2>conftest.er1
10578 ac_status=$?
10579 grep -v '^ *+' conftest.er1 >conftest.err
10580 rm -f conftest.er1
10581 cat conftest.err >&5
10582 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10583 (exit $ac_status); } && {
10584 test -z "$ac_c_werror_flag" ||
10585 test ! -s conftest.err
10586 } && test -s conftest$ac_exeext &&
10587 $as_test_x conftest$ac_exeext; then
10588 xlinux_first_failure=no
10589 else
10590 echo "$as_me: failed program was:" >&5
10591 sed 's/^/| /' conftest.$ac_ext >&5
10593 xlinux_first_failure=yes
10596 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
10597 conftest$ac_exeext conftest.$ac_ext
10598 if test "${xlinux_first_failure}" = "yes"; then
10599 OLD_LD_SWITCH_X_SITE="$LD_SWITCH_X_SITE"
10600 OLD_C_SWITCH_X_SITE="$C_SWITCH_X_SITE"
10601 OLD_CPPFLAGS="$CPPFLAGS"
10602 OLD_LIBS="$LIBS"
10603 LD_SWITCH_X_SITE="$LD_SWITCH_X_SITE -b i486-linuxaout"
10604 C_SWITCH_X_SITE="$C_SWITCH_X_SITE -b i486-linuxaout"
10605 CPPFLAGS="$CPPFLAGS -b i486-linuxaout"
10606 LIBS="$LIBS -b i486-linuxaout"
10607 cat >conftest.$ac_ext <<_ACEOF
10608 /* confdefs.h. */
10609 _ACEOF
10610 cat confdefs.h >>conftest.$ac_ext
10611 cat >>conftest.$ac_ext <<_ACEOF
10612 /* end confdefs.h. */
10615 main ()
10617 XOpenDisplay ("foo");
10619 return 0;
10621 _ACEOF
10622 rm -f conftest.$ac_objext conftest$ac_exeext
10623 if { (ac_try="$ac_link"
10624 case "(($ac_try" in
10625 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10626 *) ac_try_echo=$ac_try;;
10627 esac
10628 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10629 (eval "$ac_link") 2>conftest.er1
10630 ac_status=$?
10631 grep -v '^ *+' conftest.er1 >conftest.err
10632 rm -f conftest.er1
10633 cat conftest.err >&5
10634 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10635 (exit $ac_status); } && {
10636 test -z "$ac_c_werror_flag" ||
10637 test ! -s conftest.err
10638 } && test -s conftest$ac_exeext &&
10639 $as_test_x conftest$ac_exeext; then
10640 xlinux_second_failure=no
10641 else
10642 echo "$as_me: failed program was:" >&5
10643 sed 's/^/| /' conftest.$ac_ext >&5
10645 xlinux_second_failure=yes
10648 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
10649 conftest$ac_exeext conftest.$ac_ext
10650 if test "${xlinux_second_failure}" = "yes"; then
10651 # If we get the same failure with -b, there is no use adding -b.
10652 # So take it out. This plays safe.
10653 LD_SWITCH_X_SITE="$OLD_LD_SWITCH_X_SITE"
10654 C_SWITCH_X_SITE="$OLD_C_SWITCH_X_SITE"
10655 CPPFLAGS="$OLD_CPPFLAGS"
10656 LIBS="$OLD_LIBS"
10657 { echo "$as_me:$LINENO: result: no" >&5
10658 echo "${ECHO_T}no" >&6; }
10659 else
10660 { echo "$as_me:$LINENO: result: yes" >&5
10661 echo "${ECHO_T}yes" >&6; }
10663 else
10664 { echo "$as_me:$LINENO: result: no" >&5
10665 echo "${ECHO_T}no" >&6; }
10669 # Reportedly, some broken Solaris systems have XKBlib.h but are missing
10670 # header files included from there.
10671 { echo "$as_me:$LINENO: checking for Xkb" >&5
10672 echo $ECHO_N "checking for Xkb... $ECHO_C" >&6; }
10673 cat >conftest.$ac_ext <<_ACEOF
10674 /* confdefs.h. */
10675 _ACEOF
10676 cat confdefs.h >>conftest.$ac_ext
10677 cat >>conftest.$ac_ext <<_ACEOF
10678 /* end confdefs.h. */
10679 #include <X11/Xlib.h>
10680 #include <X11/XKBlib.h>
10682 main ()
10684 XkbDescPtr kb = XkbGetKeyboard (0, XkbAllComponentsMask, XkbUseCoreKbd);
10686 return 0;
10688 _ACEOF
10689 rm -f conftest.$ac_objext conftest$ac_exeext
10690 if { (ac_try="$ac_link"
10691 case "(($ac_try" in
10692 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10693 *) ac_try_echo=$ac_try;;
10694 esac
10695 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10696 (eval "$ac_link") 2>conftest.er1
10697 ac_status=$?
10698 grep -v '^ *+' conftest.er1 >conftest.err
10699 rm -f conftest.er1
10700 cat conftest.err >&5
10701 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10702 (exit $ac_status); } && {
10703 test -z "$ac_c_werror_flag" ||
10704 test ! -s conftest.err
10705 } && test -s conftest$ac_exeext &&
10706 $as_test_x conftest$ac_exeext; then
10707 emacs_xkb=yes
10708 else
10709 echo "$as_me: failed program was:" >&5
10710 sed 's/^/| /' conftest.$ac_ext >&5
10712 emacs_xkb=no
10715 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
10716 conftest$ac_exeext conftest.$ac_ext
10717 { echo "$as_me:$LINENO: result: $emacs_xkb" >&5
10718 echo "${ECHO_T}$emacs_xkb" >&6; }
10719 if test $emacs_xkb = yes; then
10721 cat >>confdefs.h <<\_ACEOF
10722 #define HAVE_XKBGETKEYBOARD 1
10723 _ACEOF
10731 for ac_func in XrmSetDatabase XScreenResourceString \
10732 XScreenNumberOfScreen XSetWMProtocols
10734 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
10735 { echo "$as_me:$LINENO: checking for $ac_func" >&5
10736 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
10737 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
10738 echo $ECHO_N "(cached) $ECHO_C" >&6
10739 else
10740 cat >conftest.$ac_ext <<_ACEOF
10741 /* confdefs.h. */
10742 _ACEOF
10743 cat confdefs.h >>conftest.$ac_ext
10744 cat >>conftest.$ac_ext <<_ACEOF
10745 /* end confdefs.h. */
10746 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
10747 For example, HP-UX 11i <limits.h> declares gettimeofday. */
10748 #define $ac_func innocuous_$ac_func
10750 /* System header to define __stub macros and hopefully few prototypes,
10751 which can conflict with char $ac_func (); below.
10752 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
10753 <limits.h> exists even on freestanding compilers. */
10755 #ifdef __STDC__
10756 # include <limits.h>
10757 #else
10758 # include <assert.h>
10759 #endif
10761 #undef $ac_func
10763 /* Override any GCC internal prototype to avoid an error.
10764 Use char because int might match the return type of a GCC
10765 builtin and then its argument prototype would still apply. */
10766 #ifdef __cplusplus
10767 extern "C"
10768 #endif
10769 char $ac_func ();
10770 /* The GNU C library defines this for functions which it implements
10771 to always fail with ENOSYS. Some functions are actually named
10772 something starting with __ and the normal name is an alias. */
10773 #if defined __stub_$ac_func || defined __stub___$ac_func
10774 choke me
10775 #endif
10778 main ()
10780 return $ac_func ();
10782 return 0;
10784 _ACEOF
10785 rm -f conftest.$ac_objext conftest$ac_exeext
10786 if { (ac_try="$ac_link"
10787 case "(($ac_try" in
10788 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10789 *) ac_try_echo=$ac_try;;
10790 esac
10791 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10792 (eval "$ac_link") 2>conftest.er1
10793 ac_status=$?
10794 grep -v '^ *+' conftest.er1 >conftest.err
10795 rm -f conftest.er1
10796 cat conftest.err >&5
10797 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10798 (exit $ac_status); } && {
10799 test -z "$ac_c_werror_flag" ||
10800 test ! -s conftest.err
10801 } && test -s conftest$ac_exeext &&
10802 $as_test_x conftest$ac_exeext; then
10803 eval "$as_ac_var=yes"
10804 else
10805 echo "$as_me: failed program was:" >&5
10806 sed 's/^/| /' conftest.$ac_ext >&5
10808 eval "$as_ac_var=no"
10811 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
10812 conftest$ac_exeext conftest.$ac_ext
10814 ac_res=`eval echo '${'$as_ac_var'}'`
10815 { echo "$as_me:$LINENO: result: $ac_res" >&5
10816 echo "${ECHO_T}$ac_res" >&6; }
10817 if test `eval echo '${'$as_ac_var'}'` = yes; then
10818 cat >>confdefs.h <<_ACEOF
10819 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
10820 _ACEOF
10823 done
10827 if test "${window_system}" = "x11"; then
10828 { echo "$as_me:$LINENO: checking X11 version 6" >&5
10829 echo $ECHO_N "checking X11 version 6... $ECHO_C" >&6; }
10830 if test "${emacs_cv_x11_version_6+set}" = set; then
10831 echo $ECHO_N "(cached) $ECHO_C" >&6
10832 else
10833 cat >conftest.$ac_ext <<_ACEOF
10834 /* confdefs.h. */
10835 _ACEOF
10836 cat confdefs.h >>conftest.$ac_ext
10837 cat >>conftest.$ac_ext <<_ACEOF
10838 /* end confdefs.h. */
10839 #include <X11/Xlib.h>
10841 main ()
10843 #if XlibSpecificationRelease < 6
10844 fail;
10845 #endif
10848 return 0;
10850 _ACEOF
10851 rm -f conftest.$ac_objext conftest$ac_exeext
10852 if { (ac_try="$ac_link"
10853 case "(($ac_try" in
10854 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10855 *) ac_try_echo=$ac_try;;
10856 esac
10857 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10858 (eval "$ac_link") 2>conftest.er1
10859 ac_status=$?
10860 grep -v '^ *+' conftest.er1 >conftest.err
10861 rm -f conftest.er1
10862 cat conftest.err >&5
10863 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10864 (exit $ac_status); } && {
10865 test -z "$ac_c_werror_flag" ||
10866 test ! -s conftest.err
10867 } && test -s conftest$ac_exeext &&
10868 $as_test_x conftest$ac_exeext; then
10869 emacs_cv_x11_version_6=yes
10870 else
10871 echo "$as_me: failed program was:" >&5
10872 sed 's/^/| /' conftest.$ac_ext >&5
10874 emacs_cv_x11_version_6=no
10877 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
10878 conftest$ac_exeext conftest.$ac_ext
10881 if test $emacs_cv_x11_version_6 = yes; then
10882 { echo "$as_me:$LINENO: result: 6 or newer" >&5
10883 echo "${ECHO_T}6 or newer" >&6; }
10885 cat >>confdefs.h <<\_ACEOF
10886 #define HAVE_X11R6 1
10887 _ACEOF
10889 else
10890 { echo "$as_me:$LINENO: result: before 6" >&5
10891 echo "${ECHO_T}before 6" >&6; }
10896 ### Use -lrsvg-2 if available, unless `--with-rsvg=no' is specified.
10897 HAVE_RSVG=no
10898 if test "${HAVE_X11}" = "yes" || test "${HAVE_CARBON}" = "yes"; then
10899 if test "${with_rsvg}" != "no"; then
10900 RSVG_REQUIRED=2.0.0
10901 RSVG_MODULE="librsvg-2.0 >= $RSVG_REQUIRED"
10904 succeeded=no
10906 # Extract the first word of "pkg-config", so it can be a program name with args.
10907 set dummy pkg-config; ac_word=$2
10908 { echo "$as_me:$LINENO: checking for $ac_word" >&5
10909 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
10910 if test "${ac_cv_path_PKG_CONFIG+set}" = set; then
10911 echo $ECHO_N "(cached) $ECHO_C" >&6
10912 else
10913 case $PKG_CONFIG in
10914 [\\/]* | ?:[\\/]*)
10915 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
10918 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10919 for as_dir in $PATH
10921 IFS=$as_save_IFS
10922 test -z "$as_dir" && as_dir=.
10923 for ac_exec_ext in '' $ac_executable_extensions; do
10924 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10925 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
10926 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
10927 break 2
10929 done
10930 done
10931 IFS=$as_save_IFS
10933 test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG="no"
10935 esac
10937 PKG_CONFIG=$ac_cv_path_PKG_CONFIG
10938 if test -n "$PKG_CONFIG"; then
10939 { echo "$as_me:$LINENO: result: $PKG_CONFIG" >&5
10940 echo "${ECHO_T}$PKG_CONFIG" >&6; }
10941 else
10942 { echo "$as_me:$LINENO: result: no" >&5
10943 echo "${ECHO_T}no" >&6; }
10948 if test "$PKG_CONFIG" = "no" ; then
10950 else
10951 PKG_CONFIG_MIN_VERSION=0.9.0
10952 if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
10953 { echo "$as_me:$LINENO: checking for $RSVG_MODULE" >&5
10954 echo $ECHO_N "checking for $RSVG_MODULE... $ECHO_C" >&6; }
10956 if $PKG_CONFIG --exists "$RSVG_MODULE" 2>&5; then
10957 { echo "$as_me:$LINENO: result: yes" >&5
10958 echo "${ECHO_T}yes" >&6; }
10959 succeeded=yes
10961 { echo "$as_me:$LINENO: checking RSVG_CFLAGS" >&5
10962 echo $ECHO_N "checking RSVG_CFLAGS... $ECHO_C" >&6; }
10963 RSVG_CFLAGS=`$PKG_CONFIG --cflags "$RSVG_MODULE"|sed -e 's,///*,/,g'`
10964 { echo "$as_me:$LINENO: result: $RSVG_CFLAGS" >&5
10965 echo "${ECHO_T}$RSVG_CFLAGS" >&6; }
10967 { echo "$as_me:$LINENO: checking RSVG_LIBS" >&5
10968 echo $ECHO_N "checking RSVG_LIBS... $ECHO_C" >&6; }
10969 RSVG_LIBS=`$PKG_CONFIG --libs "$RSVG_MODULE"|sed -e 's,///*,/,g'`
10970 { echo "$as_me:$LINENO: result: $RSVG_LIBS" >&5
10971 echo "${ECHO_T}$RSVG_LIBS" >&6; }
10972 else
10973 { echo "$as_me:$LINENO: result: no" >&5
10974 echo "${ECHO_T}no" >&6; }
10975 RSVG_CFLAGS=""
10976 RSVG_LIBS=""
10977 ## If we have a custom action on failure, don't print errors, but
10978 ## do set a variable so people can do so.
10979 RSVG_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "$RSVG_MODULE"`
10985 else
10986 echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
10987 echo "*** See http://www.freedesktop.org/software/pkgconfig"
10991 if test $succeeded = yes; then
10993 else
11000 if test ".${RSVG_CFLAGS}" != "."; then
11001 HAVE_RSVG=yes
11003 cat >>confdefs.h <<\_ACEOF
11004 #define HAVE_RSVG 1
11005 _ACEOF
11007 CFLAGS="$CFLAGS $RSVG_CFLAGS"
11008 LIBS="$RSVG_LIBS $LIBS"
11014 HAVE_GTK=no
11015 if test "${with_gtk}" = "yes" || test "$USE_X_TOOLKIT" = "maybe"; then
11016 GLIB_REQUIRED=2.6
11017 GTK_REQUIRED=2.6
11018 GTK_MODULES="gtk+-2.0 >= $GTK_REQUIRED glib-2.0 >= $GLIB_REQUIRED"
11021 succeeded=no
11023 # Extract the first word of "pkg-config", so it can be a program name with args.
11024 set dummy pkg-config; ac_word=$2
11025 { echo "$as_me:$LINENO: checking for $ac_word" >&5
11026 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
11027 if test "${ac_cv_path_PKG_CONFIG+set}" = set; then
11028 echo $ECHO_N "(cached) $ECHO_C" >&6
11029 else
11030 case $PKG_CONFIG in
11031 [\\/]* | ?:[\\/]*)
11032 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
11035 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11036 for as_dir in $PATH
11038 IFS=$as_save_IFS
11039 test -z "$as_dir" && as_dir=.
11040 for ac_exec_ext in '' $ac_executable_extensions; do
11041 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11042 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
11043 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
11044 break 2
11046 done
11047 done
11048 IFS=$as_save_IFS
11050 test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG="no"
11052 esac
11054 PKG_CONFIG=$ac_cv_path_PKG_CONFIG
11055 if test -n "$PKG_CONFIG"; then
11056 { echo "$as_me:$LINENO: result: $PKG_CONFIG" >&5
11057 echo "${ECHO_T}$PKG_CONFIG" >&6; }
11058 else
11059 { echo "$as_me:$LINENO: result: no" >&5
11060 echo "${ECHO_T}no" >&6; }
11065 if test "$PKG_CONFIG" = "no" ; then
11066 pkg_check_gtk=no
11067 else
11068 PKG_CONFIG_MIN_VERSION=0.9.0
11069 if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
11070 { echo "$as_me:$LINENO: checking for $GTK_MODULES" >&5
11071 echo $ECHO_N "checking for $GTK_MODULES... $ECHO_C" >&6; }
11073 if $PKG_CONFIG --exists "$GTK_MODULES" 2>&5; then
11074 { echo "$as_me:$LINENO: result: yes" >&5
11075 echo "${ECHO_T}yes" >&6; }
11076 succeeded=yes
11078 { echo "$as_me:$LINENO: checking GTK_CFLAGS" >&5
11079 echo $ECHO_N "checking GTK_CFLAGS... $ECHO_C" >&6; }
11080 GTK_CFLAGS=`$PKG_CONFIG --cflags "$GTK_MODULES"|sed -e 's,///*,/,g'`
11081 { echo "$as_me:$LINENO: result: $GTK_CFLAGS" >&5
11082 echo "${ECHO_T}$GTK_CFLAGS" >&6; }
11084 { echo "$as_me:$LINENO: checking GTK_LIBS" >&5
11085 echo $ECHO_N "checking GTK_LIBS... $ECHO_C" >&6; }
11086 GTK_LIBS=`$PKG_CONFIG --libs "$GTK_MODULES"|sed -e 's,///*,/,g'`
11087 { echo "$as_me:$LINENO: result: $GTK_LIBS" >&5
11088 echo "${ECHO_T}$GTK_LIBS" >&6; }
11089 else
11090 { echo "$as_me:$LINENO: result: no" >&5
11091 echo "${ECHO_T}no" >&6; }
11092 GTK_CFLAGS=""
11093 GTK_LIBS=""
11094 ## If we have a custom action on failure, don't print errors, but
11095 ## do set a variable so people can do so.
11096 GTK_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "$GTK_MODULES"`
11102 else
11103 echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
11104 echo "*** See http://www.freedesktop.org/software/pkgconfig"
11108 if test $succeeded = yes; then
11109 pkg_check_gtk=yes
11110 else
11111 pkg_check_gtk=no
11114 if test "$pkg_check_gtk" = "no" && test "$USE_X_TOOLKIT" != "maybe"; then
11115 { { echo "$as_me:$LINENO: error: $GTK_PKG_ERRORS" >&5
11116 echo "$as_me: error: $GTK_PKG_ERRORS" >&2;}
11117 { (exit 1); exit 1; }; }
11122 if test x"$pkg_check_gtk" = xyes; then
11126 C_SWITCH_X_SITE="$C_SWITCH_X_SITE $GTK_CFLAGS"
11127 CFLAGS="$CFLAGS $GTK_CFLAGS"
11128 LIBS="$GTK_LIBS $LIBS"
11129 GTK_COMPILES=no
11131 for ac_func in gtk_main
11133 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
11134 { echo "$as_me:$LINENO: checking for $ac_func" >&5
11135 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
11136 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
11137 echo $ECHO_N "(cached) $ECHO_C" >&6
11138 else
11139 cat >conftest.$ac_ext <<_ACEOF
11140 /* confdefs.h. */
11141 _ACEOF
11142 cat confdefs.h >>conftest.$ac_ext
11143 cat >>conftest.$ac_ext <<_ACEOF
11144 /* end confdefs.h. */
11145 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
11146 For example, HP-UX 11i <limits.h> declares gettimeofday. */
11147 #define $ac_func innocuous_$ac_func
11149 /* System header to define __stub macros and hopefully few prototypes,
11150 which can conflict with char $ac_func (); below.
11151 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
11152 <limits.h> exists even on freestanding compilers. */
11154 #ifdef __STDC__
11155 # include <limits.h>
11156 #else
11157 # include <assert.h>
11158 #endif
11160 #undef $ac_func
11162 /* Override any GCC internal prototype to avoid an error.
11163 Use char because int might match the return type of a GCC
11164 builtin and then its argument prototype would still apply. */
11165 #ifdef __cplusplus
11166 extern "C"
11167 #endif
11168 char $ac_func ();
11169 /* The GNU C library defines this for functions which it implements
11170 to always fail with ENOSYS. Some functions are actually named
11171 something starting with __ and the normal name is an alias. */
11172 #if defined __stub_$ac_func || defined __stub___$ac_func
11173 choke me
11174 #endif
11177 main ()
11179 return $ac_func ();
11181 return 0;
11183 _ACEOF
11184 rm -f conftest.$ac_objext conftest$ac_exeext
11185 if { (ac_try="$ac_link"
11186 case "(($ac_try" in
11187 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11188 *) ac_try_echo=$ac_try;;
11189 esac
11190 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11191 (eval "$ac_link") 2>conftest.er1
11192 ac_status=$?
11193 grep -v '^ *+' conftest.er1 >conftest.err
11194 rm -f conftest.er1
11195 cat conftest.err >&5
11196 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11197 (exit $ac_status); } && {
11198 test -z "$ac_c_werror_flag" ||
11199 test ! -s conftest.err
11200 } && test -s conftest$ac_exeext &&
11201 $as_test_x conftest$ac_exeext; then
11202 eval "$as_ac_var=yes"
11203 else
11204 echo "$as_me: failed program was:" >&5
11205 sed 's/^/| /' conftest.$ac_ext >&5
11207 eval "$as_ac_var=no"
11210 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
11211 conftest$ac_exeext conftest.$ac_ext
11213 ac_res=`eval echo '${'$as_ac_var'}'`
11214 { echo "$as_me:$LINENO: result: $ac_res" >&5
11215 echo "${ECHO_T}$ac_res" >&6; }
11216 if test `eval echo '${'$as_ac_var'}'` = yes; then
11217 cat >>confdefs.h <<_ACEOF
11218 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
11219 _ACEOF
11220 GTK_COMPILES=yes
11222 done
11224 if test "${GTK_COMPILES}" != "yes"; then
11225 if test "$USE_X_TOOLKIT" != "maybe"; then
11226 { { echo "$as_me:$LINENO: error: Gtk+ wanted, but it does not compile, see config.log. Maybe some x11-devel files missing?" >&5
11227 echo "$as_me: error: Gtk+ wanted, but it does not compile, see config.log. Maybe some x11-devel files missing?" >&2;}
11228 { (exit 1); exit 1; }; };
11230 else
11231 HAVE_GTK=yes
11233 cat >>confdefs.h <<\_ACEOF
11234 #define USE_GTK 1
11235 _ACEOF
11237 USE_X_TOOLKIT=none
11238 if $PKG_CONFIG --atleast-version=2.10 gtk+-2.0; then
11240 else
11241 { echo "$as_me:$LINENO: WARNING: Your version of Gtk+ will have problems with
11242 closing open displays. This is no problem if you just use
11243 one display, but if you use more than one and close one of them
11244 Emacs may crash." >&5
11245 echo "$as_me: WARNING: Your version of Gtk+ will have problems with
11246 closing open displays. This is no problem if you just use
11247 one display, but if you use more than one and close one of them
11248 Emacs may crash." >&2;}
11249 sleep 3
11256 if test "${HAVE_GTK}" = "yes"; then
11258 if test "$with_toolkit_scroll_bars" != no; then
11259 with_toolkit_scroll_bars=yes
11262 HAVE_GTK_MULTIDISPLAY=no
11264 for ac_func in gdk_display_open
11266 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
11267 { echo "$as_me:$LINENO: checking for $ac_func" >&5
11268 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
11269 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
11270 echo $ECHO_N "(cached) $ECHO_C" >&6
11271 else
11272 cat >conftest.$ac_ext <<_ACEOF
11273 /* confdefs.h. */
11274 _ACEOF
11275 cat confdefs.h >>conftest.$ac_ext
11276 cat >>conftest.$ac_ext <<_ACEOF
11277 /* end confdefs.h. */
11278 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
11279 For example, HP-UX 11i <limits.h> declares gettimeofday. */
11280 #define $ac_func innocuous_$ac_func
11282 /* System header to define __stub macros and hopefully few prototypes,
11283 which can conflict with char $ac_func (); below.
11284 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
11285 <limits.h> exists even on freestanding compilers. */
11287 #ifdef __STDC__
11288 # include <limits.h>
11289 #else
11290 # include <assert.h>
11291 #endif
11293 #undef $ac_func
11295 /* Override any GCC internal prototype to avoid an error.
11296 Use char because int might match the return type of a GCC
11297 builtin and then its argument prototype would still apply. */
11298 #ifdef __cplusplus
11299 extern "C"
11300 #endif
11301 char $ac_func ();
11302 /* The GNU C library defines this for functions which it implements
11303 to always fail with ENOSYS. Some functions are actually named
11304 something starting with __ and the normal name is an alias. */
11305 #if defined __stub_$ac_func || defined __stub___$ac_func
11306 choke me
11307 #endif
11310 main ()
11312 return $ac_func ();
11314 return 0;
11316 _ACEOF
11317 rm -f conftest.$ac_objext conftest$ac_exeext
11318 if { (ac_try="$ac_link"
11319 case "(($ac_try" in
11320 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11321 *) ac_try_echo=$ac_try;;
11322 esac
11323 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11324 (eval "$ac_link") 2>conftest.er1
11325 ac_status=$?
11326 grep -v '^ *+' conftest.er1 >conftest.err
11327 rm -f conftest.er1
11328 cat conftest.err >&5
11329 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11330 (exit $ac_status); } && {
11331 test -z "$ac_c_werror_flag" ||
11332 test ! -s conftest.err
11333 } && test -s conftest$ac_exeext &&
11334 $as_test_x conftest$ac_exeext; then
11335 eval "$as_ac_var=yes"
11336 else
11337 echo "$as_me: failed program was:" >&5
11338 sed 's/^/| /' conftest.$ac_ext >&5
11340 eval "$as_ac_var=no"
11343 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
11344 conftest$ac_exeext conftest.$ac_ext
11346 ac_res=`eval echo '${'$as_ac_var'}'`
11347 { echo "$as_me:$LINENO: result: $ac_res" >&5
11348 echo "${ECHO_T}$ac_res" >&6; }
11349 if test `eval echo '${'$as_ac_var'}'` = yes; then
11350 cat >>confdefs.h <<_ACEOF
11351 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
11352 _ACEOF
11353 HAVE_GTK_MULTIDISPLAY=yes
11355 done
11357 if test "${HAVE_GTK_MULTIDISPLAY}" = "yes"; then
11359 cat >>confdefs.h <<\_ACEOF
11360 #define HAVE_GTK_MULTIDISPLAY 1
11361 _ACEOF
11365 HAVE_GTK_FILE_SELECTION=no
11367 for ac_func in gtk_file_selection_new
11369 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
11370 { echo "$as_me:$LINENO: checking for $ac_func" >&5
11371 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
11372 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
11373 echo $ECHO_N "(cached) $ECHO_C" >&6
11374 else
11375 cat >conftest.$ac_ext <<_ACEOF
11376 /* confdefs.h. */
11377 _ACEOF
11378 cat confdefs.h >>conftest.$ac_ext
11379 cat >>conftest.$ac_ext <<_ACEOF
11380 /* end confdefs.h. */
11381 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
11382 For example, HP-UX 11i <limits.h> declares gettimeofday. */
11383 #define $ac_func innocuous_$ac_func
11385 /* System header to define __stub macros and hopefully few prototypes,
11386 which can conflict with char $ac_func (); below.
11387 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
11388 <limits.h> exists even on freestanding compilers. */
11390 #ifdef __STDC__
11391 # include <limits.h>
11392 #else
11393 # include <assert.h>
11394 #endif
11396 #undef $ac_func
11398 /* Override any GCC internal prototype to avoid an error.
11399 Use char because int might match the return type of a GCC
11400 builtin and then its argument prototype would still apply. */
11401 #ifdef __cplusplus
11402 extern "C"
11403 #endif
11404 char $ac_func ();
11405 /* The GNU C library defines this for functions which it implements
11406 to always fail with ENOSYS. Some functions are actually named
11407 something starting with __ and the normal name is an alias. */
11408 #if defined __stub_$ac_func || defined __stub___$ac_func
11409 choke me
11410 #endif
11413 main ()
11415 return $ac_func ();
11417 return 0;
11419 _ACEOF
11420 rm -f conftest.$ac_objext conftest$ac_exeext
11421 if { (ac_try="$ac_link"
11422 case "(($ac_try" in
11423 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11424 *) ac_try_echo=$ac_try;;
11425 esac
11426 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11427 (eval "$ac_link") 2>conftest.er1
11428 ac_status=$?
11429 grep -v '^ *+' conftest.er1 >conftest.err
11430 rm -f conftest.er1
11431 cat conftest.err >&5
11432 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11433 (exit $ac_status); } && {
11434 test -z "$ac_c_werror_flag" ||
11435 test ! -s conftest.err
11436 } && test -s conftest$ac_exeext &&
11437 $as_test_x conftest$ac_exeext; then
11438 eval "$as_ac_var=yes"
11439 else
11440 echo "$as_me: failed program was:" >&5
11441 sed 's/^/| /' conftest.$ac_ext >&5
11443 eval "$as_ac_var=no"
11446 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
11447 conftest$ac_exeext conftest.$ac_ext
11449 ac_res=`eval echo '${'$as_ac_var'}'`
11450 { echo "$as_me:$LINENO: result: $ac_res" >&5
11451 echo "${ECHO_T}$ac_res" >&6; }
11452 if test `eval echo '${'$as_ac_var'}'` = yes; then
11453 cat >>confdefs.h <<_ACEOF
11454 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
11455 _ACEOF
11456 HAVE_GTK_FILE_SELECTION=yes
11458 done
11461 HAVE_GTK_FILE_CHOOSER=no
11463 for ac_func in gtk_file_chooser_dialog_new
11465 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
11466 { echo "$as_me:$LINENO: checking for $ac_func" >&5
11467 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
11468 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
11469 echo $ECHO_N "(cached) $ECHO_C" >&6
11470 else
11471 cat >conftest.$ac_ext <<_ACEOF
11472 /* confdefs.h. */
11473 _ACEOF
11474 cat confdefs.h >>conftest.$ac_ext
11475 cat >>conftest.$ac_ext <<_ACEOF
11476 /* end confdefs.h. */
11477 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
11478 For example, HP-UX 11i <limits.h> declares gettimeofday. */
11479 #define $ac_func innocuous_$ac_func
11481 /* System header to define __stub macros and hopefully few prototypes,
11482 which can conflict with char $ac_func (); below.
11483 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
11484 <limits.h> exists even on freestanding compilers. */
11486 #ifdef __STDC__
11487 # include <limits.h>
11488 #else
11489 # include <assert.h>
11490 #endif
11492 #undef $ac_func
11494 /* Override any GCC internal prototype to avoid an error.
11495 Use char because int might match the return type of a GCC
11496 builtin and then its argument prototype would still apply. */
11497 #ifdef __cplusplus
11498 extern "C"
11499 #endif
11500 char $ac_func ();
11501 /* The GNU C library defines this for functions which it implements
11502 to always fail with ENOSYS. Some functions are actually named
11503 something starting with __ and the normal name is an alias. */
11504 #if defined __stub_$ac_func || defined __stub___$ac_func
11505 choke me
11506 #endif
11509 main ()
11511 return $ac_func ();
11513 return 0;
11515 _ACEOF
11516 rm -f conftest.$ac_objext conftest$ac_exeext
11517 if { (ac_try="$ac_link"
11518 case "(($ac_try" in
11519 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11520 *) ac_try_echo=$ac_try;;
11521 esac
11522 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11523 (eval "$ac_link") 2>conftest.er1
11524 ac_status=$?
11525 grep -v '^ *+' conftest.er1 >conftest.err
11526 rm -f conftest.er1
11527 cat conftest.err >&5
11528 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11529 (exit $ac_status); } && {
11530 test -z "$ac_c_werror_flag" ||
11531 test ! -s conftest.err
11532 } && test -s conftest$ac_exeext &&
11533 $as_test_x conftest$ac_exeext; then
11534 eval "$as_ac_var=yes"
11535 else
11536 echo "$as_me: failed program was:" >&5
11537 sed 's/^/| /' conftest.$ac_ext >&5
11539 eval "$as_ac_var=no"
11542 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
11543 conftest$ac_exeext conftest.$ac_ext
11545 ac_res=`eval echo '${'$as_ac_var'}'`
11546 { echo "$as_me:$LINENO: result: $ac_res" >&5
11547 echo "${ECHO_T}$ac_res" >&6; }
11548 if test `eval echo '${'$as_ac_var'}'` = yes; then
11549 cat >>confdefs.h <<_ACEOF
11550 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
11551 _ACEOF
11552 HAVE_GTK_FILE_CHOOSER=yes
11554 done
11557 if test "$HAVE_GTK_FILE_SELECTION" = yes \
11558 && test "$HAVE_GTK_FILE_CHOOSER" = yes; then
11560 cat >>confdefs.h <<\_ACEOF
11561 #define HAVE_GTK_FILE_BOTH 1
11562 _ACEOF
11566 if test "$HAVE_GTK_FILE_CHOOSER" = yes; then
11567 HAVE_GTK_AND_PTHREAD=no
11569 for ac_header in pthread.h
11571 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
11572 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11573 { echo "$as_me:$LINENO: checking for $ac_header" >&5
11574 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
11575 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11576 echo $ECHO_N "(cached) $ECHO_C" >&6
11578 ac_res=`eval echo '${'$as_ac_Header'}'`
11579 { echo "$as_me:$LINENO: result: $ac_res" >&5
11580 echo "${ECHO_T}$ac_res" >&6; }
11581 else
11582 # Is the header compilable?
11583 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
11584 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
11585 cat >conftest.$ac_ext <<_ACEOF
11586 /* confdefs.h. */
11587 _ACEOF
11588 cat confdefs.h >>conftest.$ac_ext
11589 cat >>conftest.$ac_ext <<_ACEOF
11590 /* end confdefs.h. */
11591 $ac_includes_default
11592 #include <$ac_header>
11593 _ACEOF
11594 rm -f conftest.$ac_objext
11595 if { (ac_try="$ac_compile"
11596 case "(($ac_try" in
11597 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11598 *) ac_try_echo=$ac_try;;
11599 esac
11600 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11601 (eval "$ac_compile") 2>conftest.er1
11602 ac_status=$?
11603 grep -v '^ *+' conftest.er1 >conftest.err
11604 rm -f conftest.er1
11605 cat conftest.err >&5
11606 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11607 (exit $ac_status); } && {
11608 test -z "$ac_c_werror_flag" ||
11609 test ! -s conftest.err
11610 } && test -s conftest.$ac_objext; then
11611 ac_header_compiler=yes
11612 else
11613 echo "$as_me: failed program was:" >&5
11614 sed 's/^/| /' conftest.$ac_ext >&5
11616 ac_header_compiler=no
11619 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11620 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
11621 echo "${ECHO_T}$ac_header_compiler" >&6; }
11623 # Is the header present?
11624 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
11625 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
11626 cat >conftest.$ac_ext <<_ACEOF
11627 /* confdefs.h. */
11628 _ACEOF
11629 cat confdefs.h >>conftest.$ac_ext
11630 cat >>conftest.$ac_ext <<_ACEOF
11631 /* end confdefs.h. */
11632 #include <$ac_header>
11633 _ACEOF
11634 if { (ac_try="$ac_cpp conftest.$ac_ext"
11635 case "(($ac_try" in
11636 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11637 *) ac_try_echo=$ac_try;;
11638 esac
11639 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11640 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
11641 ac_status=$?
11642 grep -v '^ *+' conftest.er1 >conftest.err
11643 rm -f conftest.er1
11644 cat conftest.err >&5
11645 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11646 (exit $ac_status); } >/dev/null && {
11647 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
11648 test ! -s conftest.err
11649 }; then
11650 ac_header_preproc=yes
11651 else
11652 echo "$as_me: failed program was:" >&5
11653 sed 's/^/| /' conftest.$ac_ext >&5
11655 ac_header_preproc=no
11658 rm -f conftest.err conftest.$ac_ext
11659 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
11660 echo "${ECHO_T}$ac_header_preproc" >&6; }
11662 # So? What about this header?
11663 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
11664 yes:no: )
11665 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
11666 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
11667 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
11668 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
11669 ac_header_preproc=yes
11671 no:yes:* )
11672 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
11673 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
11674 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
11675 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
11676 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
11677 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
11678 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
11679 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
11680 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
11681 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
11682 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
11683 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
11686 esac
11687 { echo "$as_me:$LINENO: checking for $ac_header" >&5
11688 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
11689 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11690 echo $ECHO_N "(cached) $ECHO_C" >&6
11691 else
11692 eval "$as_ac_Header=\$ac_header_preproc"
11694 ac_res=`eval echo '${'$as_ac_Header'}'`
11695 { echo "$as_me:$LINENO: result: $ac_res" >&5
11696 echo "${ECHO_T}$ac_res" >&6; }
11699 if test `eval echo '${'$as_ac_Header'}'` = yes; then
11700 cat >>confdefs.h <<_ACEOF
11701 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
11702 _ACEOF
11706 done
11708 if test "$ac_cv_header_pthread_h"; then
11709 { echo "$as_me:$LINENO: checking for pthread_self in -lpthread" >&5
11710 echo $ECHO_N "checking for pthread_self in -lpthread... $ECHO_C" >&6; }
11711 if test "${ac_cv_lib_pthread_pthread_self+set}" = set; then
11712 echo $ECHO_N "(cached) $ECHO_C" >&6
11713 else
11714 ac_check_lib_save_LIBS=$LIBS
11715 LIBS="-lpthread $LIBS"
11716 cat >conftest.$ac_ext <<_ACEOF
11717 /* confdefs.h. */
11718 _ACEOF
11719 cat confdefs.h >>conftest.$ac_ext
11720 cat >>conftest.$ac_ext <<_ACEOF
11721 /* end confdefs.h. */
11723 /* Override any GCC internal prototype to avoid an error.
11724 Use char because int might match the return type of a GCC
11725 builtin and then its argument prototype would still apply. */
11726 #ifdef __cplusplus
11727 extern "C"
11728 #endif
11729 char pthread_self ();
11731 main ()
11733 return pthread_self ();
11735 return 0;
11737 _ACEOF
11738 rm -f conftest.$ac_objext conftest$ac_exeext
11739 if { (ac_try="$ac_link"
11740 case "(($ac_try" in
11741 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11742 *) ac_try_echo=$ac_try;;
11743 esac
11744 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11745 (eval "$ac_link") 2>conftest.er1
11746 ac_status=$?
11747 grep -v '^ *+' conftest.er1 >conftest.err
11748 rm -f conftest.er1
11749 cat conftest.err >&5
11750 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11751 (exit $ac_status); } && {
11752 test -z "$ac_c_werror_flag" ||
11753 test ! -s conftest.err
11754 } && test -s conftest$ac_exeext &&
11755 $as_test_x conftest$ac_exeext; then
11756 ac_cv_lib_pthread_pthread_self=yes
11757 else
11758 echo "$as_me: failed program was:" >&5
11759 sed 's/^/| /' conftest.$ac_ext >&5
11761 ac_cv_lib_pthread_pthread_self=no
11764 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
11765 conftest$ac_exeext conftest.$ac_ext
11766 LIBS=$ac_check_lib_save_LIBS
11768 { echo "$as_me:$LINENO: result: $ac_cv_lib_pthread_pthread_self" >&5
11769 echo "${ECHO_T}$ac_cv_lib_pthread_pthread_self" >&6; }
11770 if test $ac_cv_lib_pthread_pthread_self = yes; then
11771 HAVE_GTK_AND_PTHREAD=yes
11775 if test "$HAVE_GTK_AND_PTHREAD" = yes; then
11776 case "${canonical}" in
11777 *-hpux*) ;;
11778 *) GTK_LIBS="$GTK_LIBS -lpthread" ;;
11779 esac
11781 cat >>confdefs.h <<\_ACEOF
11782 #define HAVE_GTK_AND_PTHREAD 1
11783 _ACEOF
11789 HAVE_DBUS=no
11790 if test "${with_dbus}" = "yes"; then
11792 succeeded=no
11794 # Extract the first word of "pkg-config", so it can be a program name with args.
11795 set dummy pkg-config; ac_word=$2
11796 { echo "$as_me:$LINENO: checking for $ac_word" >&5
11797 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
11798 if test "${ac_cv_path_PKG_CONFIG+set}" = set; then
11799 echo $ECHO_N "(cached) $ECHO_C" >&6
11800 else
11801 case $PKG_CONFIG in
11802 [\\/]* | ?:[\\/]*)
11803 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
11806 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11807 for as_dir in $PATH
11809 IFS=$as_save_IFS
11810 test -z "$as_dir" && as_dir=.
11811 for ac_exec_ext in '' $ac_executable_extensions; do
11812 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11813 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
11814 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
11815 break 2
11817 done
11818 done
11819 IFS=$as_save_IFS
11821 test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG="no"
11823 esac
11825 PKG_CONFIG=$ac_cv_path_PKG_CONFIG
11826 if test -n "$PKG_CONFIG"; then
11827 { echo "$as_me:$LINENO: result: $PKG_CONFIG" >&5
11828 echo "${ECHO_T}$PKG_CONFIG" >&6; }
11829 else
11830 { echo "$as_me:$LINENO: result: no" >&5
11831 echo "${ECHO_T}no" >&6; }
11836 if test "$PKG_CONFIG" = "no" ; then
11837 HAVE_DBUS=no
11838 else
11839 PKG_CONFIG_MIN_VERSION=0.9.0
11840 if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
11841 { echo "$as_me:$LINENO: checking for dbus-1 >= 1.0" >&5
11842 echo $ECHO_N "checking for dbus-1 >= 1.0... $ECHO_C" >&6; }
11844 if $PKG_CONFIG --exists "dbus-1 >= 1.0" 2>&5; then
11845 { echo "$as_me:$LINENO: result: yes" >&5
11846 echo "${ECHO_T}yes" >&6; }
11847 succeeded=yes
11849 { echo "$as_me:$LINENO: checking DBUS_CFLAGS" >&5
11850 echo $ECHO_N "checking DBUS_CFLAGS... $ECHO_C" >&6; }
11851 DBUS_CFLAGS=`$PKG_CONFIG --cflags "dbus-1 >= 1.0"|sed -e 's,///*,/,g'`
11852 { echo "$as_me:$LINENO: result: $DBUS_CFLAGS" >&5
11853 echo "${ECHO_T}$DBUS_CFLAGS" >&6; }
11855 { echo "$as_me:$LINENO: checking DBUS_LIBS" >&5
11856 echo $ECHO_N "checking DBUS_LIBS... $ECHO_C" >&6; }
11857 DBUS_LIBS=`$PKG_CONFIG --libs "dbus-1 >= 1.0"|sed -e 's,///*,/,g'`
11858 { echo "$as_me:$LINENO: result: $DBUS_LIBS" >&5
11859 echo "${ECHO_T}$DBUS_LIBS" >&6; }
11860 else
11861 { echo "$as_me:$LINENO: result: no" >&5
11862 echo "${ECHO_T}no" >&6; }
11863 DBUS_CFLAGS=""
11864 DBUS_LIBS=""
11865 ## If we have a custom action on failure, don't print errors, but
11866 ## do set a variable so people can do so.
11867 DBUS_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "dbus-1 >= 1.0"`
11873 else
11874 echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
11875 echo "*** See http://www.freedesktop.org/software/pkgconfig"
11879 if test $succeeded = yes; then
11880 HAVE_DBUS=yes
11881 else
11882 HAVE_DBUS=no
11885 if test "$HAVE_DBUS" = yes; then
11887 cat >>confdefs.h <<\_ACEOF
11888 #define HAVE_DBUS 1
11889 _ACEOF
11894 HAVE_XAW3D=no
11895 if test x"${USE_X_TOOLKIT}" = xmaybe || test x"${USE_X_TOOLKIT}" = xLUCID; then
11896 if test "$with_xaw3d" != no; then
11897 { echo "$as_me:$LINENO: checking for xaw3d" >&5
11898 echo $ECHO_N "checking for xaw3d... $ECHO_C" >&6; }
11899 if test "${emacs_cv_xaw3d+set}" = set; then
11900 echo $ECHO_N "(cached) $ECHO_C" >&6
11901 else
11902 cat >conftest.$ac_ext <<_ACEOF
11903 /* confdefs.h. */
11904 _ACEOF
11905 cat confdefs.h >>conftest.$ac_ext
11906 cat >>conftest.$ac_ext <<_ACEOF
11907 /* end confdefs.h. */
11909 #include <X11/Intrinsic.h>
11910 #include <X11/Xaw3d/Simple.h>
11912 main ()
11916 return 0;
11918 _ACEOF
11919 rm -f conftest.$ac_objext conftest$ac_exeext
11920 if { (ac_try="$ac_link"
11921 case "(($ac_try" in
11922 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11923 *) ac_try_echo=$ac_try;;
11924 esac
11925 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11926 (eval "$ac_link") 2>conftest.er1
11927 ac_status=$?
11928 grep -v '^ *+' conftest.er1 >conftest.err
11929 rm -f conftest.er1
11930 cat conftest.err >&5
11931 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11932 (exit $ac_status); } && {
11933 test -z "$ac_c_werror_flag" ||
11934 test ! -s conftest.err
11935 } && test -s conftest$ac_exeext &&
11936 $as_test_x conftest$ac_exeext; then
11937 emacs_cv_xaw3d=yes
11938 else
11939 echo "$as_me: failed program was:" >&5
11940 sed 's/^/| /' conftest.$ac_ext >&5
11942 emacs_cv_xaw3d=no
11945 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
11946 conftest$ac_exeext conftest.$ac_ext
11949 else
11950 emacs_cv_xaw3d=no
11952 if test $emacs_cv_xaw3d = yes; then
11953 { echo "$as_me:$LINENO: result: yes; using Lucid toolkit" >&5
11954 echo "${ECHO_T}yes; using Lucid toolkit" >&6; }
11955 USE_X_TOOLKIT=LUCID
11956 HAVE_XAW3D=yes
11958 cat >>confdefs.h <<\_ACEOF
11959 #define HAVE_XAW3D 1
11960 _ACEOF
11962 else
11963 { echo "$as_me:$LINENO: result: no" >&5
11964 echo "${ECHO_T}no" >&6; }
11965 { echo "$as_me:$LINENO: checking for libXaw" >&5
11966 echo $ECHO_N "checking for libXaw... $ECHO_C" >&6; }
11967 if test "${emacs_cv_xaw+set}" = set; then
11968 echo $ECHO_N "(cached) $ECHO_C" >&6
11969 else
11970 cat >conftest.$ac_ext <<_ACEOF
11971 /* confdefs.h. */
11972 _ACEOF
11973 cat confdefs.h >>conftest.$ac_ext
11974 cat >>conftest.$ac_ext <<_ACEOF
11975 /* end confdefs.h. */
11977 #include <X11/Intrinsic.h>
11978 #include <X11/Xaw/Simple.h>
11980 main ()
11984 return 0;
11986 _ACEOF
11987 rm -f conftest.$ac_objext conftest$ac_exeext
11988 if { (ac_try="$ac_link"
11989 case "(($ac_try" in
11990 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11991 *) ac_try_echo=$ac_try;;
11992 esac
11993 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11994 (eval "$ac_link") 2>conftest.er1
11995 ac_status=$?
11996 grep -v '^ *+' conftest.er1 >conftest.err
11997 rm -f conftest.er1
11998 cat conftest.err >&5
11999 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12000 (exit $ac_status); } && {
12001 test -z "$ac_c_werror_flag" ||
12002 test ! -s conftest.err
12003 } && test -s conftest$ac_exeext &&
12004 $as_test_x conftest$ac_exeext; then
12005 emacs_cv_xaw=yes
12006 else
12007 echo "$as_me: failed program was:" >&5
12008 sed 's/^/| /' conftest.$ac_ext >&5
12010 emacs_cv_xaw=no
12013 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
12014 conftest$ac_exeext conftest.$ac_ext
12017 if test $emacs_cv_xaw = yes; then
12018 { echo "$as_me:$LINENO: result: yes; using Lucid toolkit" >&5
12019 echo "${ECHO_T}yes; using Lucid toolkit" >&6; }
12020 USE_X_TOOLKIT=LUCID
12021 elif test x"${USE_X_TOOLKIT}" = xLUCID; then
12022 { { echo "$as_me:$LINENO: error: Lucid toolkit requires X11/Xaw include files" >&5
12023 echo "$as_me: error: Lucid toolkit requires X11/Xaw include files" >&2;}
12024 { (exit 1); exit 1; }; }
12025 else
12026 { echo "$as_me:$LINENO: result: no; do not use toolkit by default" >&5
12027 echo "${ECHO_T}no; do not use toolkit by default" >&6; }
12028 USE_X_TOOLKIT=none
12033 X_TOOLKIT_TYPE=$USE_X_TOOLKIT
12035 if test "${USE_X_TOOLKIT}" != "none"; then
12036 { echo "$as_me:$LINENO: checking X11 toolkit version" >&5
12037 echo $ECHO_N "checking X11 toolkit version... $ECHO_C" >&6; }
12038 if test "${emacs_cv_x11_toolkit_version_6+set}" = set; then
12039 echo $ECHO_N "(cached) $ECHO_C" >&6
12040 else
12041 cat >conftest.$ac_ext <<_ACEOF
12042 /* confdefs.h. */
12043 _ACEOF
12044 cat confdefs.h >>conftest.$ac_ext
12045 cat >>conftest.$ac_ext <<_ACEOF
12046 /* end confdefs.h. */
12047 #include <X11/Intrinsic.h>
12049 main ()
12051 #if XtSpecificationRelease < 6
12052 fail;
12053 #endif
12056 return 0;
12058 _ACEOF
12059 rm -f conftest.$ac_objext conftest$ac_exeext
12060 if { (ac_try="$ac_link"
12061 case "(($ac_try" in
12062 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12063 *) ac_try_echo=$ac_try;;
12064 esac
12065 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12066 (eval "$ac_link") 2>conftest.er1
12067 ac_status=$?
12068 grep -v '^ *+' conftest.er1 >conftest.err
12069 rm -f conftest.er1
12070 cat conftest.err >&5
12071 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12072 (exit $ac_status); } && {
12073 test -z "$ac_c_werror_flag" ||
12074 test ! -s conftest.err
12075 } && test -s conftest$ac_exeext &&
12076 $as_test_x conftest$ac_exeext; then
12077 emacs_cv_x11_toolkit_version_6=yes
12078 else
12079 echo "$as_me: failed program was:" >&5
12080 sed 's/^/| /' conftest.$ac_ext >&5
12082 emacs_cv_x11_toolkit_version_6=no
12085 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
12086 conftest$ac_exeext conftest.$ac_ext
12089 HAVE_X11XTR6=$emacs_cv_x11_toolkit_version_6
12090 if test $emacs_cv_x11_toolkit_version_6 = yes; then
12091 { echo "$as_me:$LINENO: result: 6 or newer" >&5
12092 echo "${ECHO_T}6 or newer" >&6; }
12094 cat >>confdefs.h <<\_ACEOF
12095 #define HAVE_X11XTR6 1
12096 _ACEOF
12098 else
12099 { echo "$as_me:$LINENO: result: before 6" >&5
12100 echo "${ECHO_T}before 6" >&6; }
12103 OLDLIBS="$LIBS"
12104 if test x$HAVE_X11XTR6 = xyes; then
12105 LIBS="-lXt -lSM -lICE $LIBS"
12106 else
12107 LIBS="-lXt $LIBS"
12110 { echo "$as_me:$LINENO: checking for XmuConvertStandardSelection in -lXmu" >&5
12111 echo $ECHO_N "checking for XmuConvertStandardSelection in -lXmu... $ECHO_C" >&6; }
12112 if test "${ac_cv_lib_Xmu_XmuConvertStandardSelection+set}" = set; then
12113 echo $ECHO_N "(cached) $ECHO_C" >&6
12114 else
12115 ac_check_lib_save_LIBS=$LIBS
12116 LIBS="-lXmu $LIBS"
12117 cat >conftest.$ac_ext <<_ACEOF
12118 /* confdefs.h. */
12119 _ACEOF
12120 cat confdefs.h >>conftest.$ac_ext
12121 cat >>conftest.$ac_ext <<_ACEOF
12122 /* end confdefs.h. */
12124 /* Override any GCC internal prototype to avoid an error.
12125 Use char because int might match the return type of a GCC
12126 builtin and then its argument prototype would still apply. */
12127 #ifdef __cplusplus
12128 extern "C"
12129 #endif
12130 char XmuConvertStandardSelection ();
12132 main ()
12134 return XmuConvertStandardSelection ();
12136 return 0;
12138 _ACEOF
12139 rm -f conftest.$ac_objext conftest$ac_exeext
12140 if { (ac_try="$ac_link"
12141 case "(($ac_try" in
12142 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12143 *) ac_try_echo=$ac_try;;
12144 esac
12145 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12146 (eval "$ac_link") 2>conftest.er1
12147 ac_status=$?
12148 grep -v '^ *+' conftest.er1 >conftest.err
12149 rm -f conftest.er1
12150 cat conftest.err >&5
12151 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12152 (exit $ac_status); } && {
12153 test -z "$ac_c_werror_flag" ||
12154 test ! -s conftest.err
12155 } && test -s conftest$ac_exeext &&
12156 $as_test_x conftest$ac_exeext; then
12157 ac_cv_lib_Xmu_XmuConvertStandardSelection=yes
12158 else
12159 echo "$as_me: failed program was:" >&5
12160 sed 's/^/| /' conftest.$ac_ext >&5
12162 ac_cv_lib_Xmu_XmuConvertStandardSelection=no
12165 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
12166 conftest$ac_exeext conftest.$ac_ext
12167 LIBS=$ac_check_lib_save_LIBS
12169 { echo "$as_me:$LINENO: result: $ac_cv_lib_Xmu_XmuConvertStandardSelection" >&5
12170 echo "${ECHO_T}$ac_cv_lib_Xmu_XmuConvertStandardSelection" >&6; }
12171 if test $ac_cv_lib_Xmu_XmuConvertStandardSelection = yes; then
12172 cat >>confdefs.h <<_ACEOF
12173 #define HAVE_LIBXMU 1
12174 _ACEOF
12176 LIBS="-lXmu $LIBS"
12180 test $ac_cv_lib_Xmu_XmuConvertStandardSelection = no && LIBS="$OLDLIBS"
12183 # On Irix 6.5, at least, we need XShapeQueryExtension from -lXext for Xaw3D.
12184 if test "${HAVE_X11}" = "yes"; then
12185 if test "${USE_X_TOOLKIT}" != "none"; then
12187 { echo "$as_me:$LINENO: checking for XShapeQueryExtension in -lXext" >&5
12188 echo $ECHO_N "checking for XShapeQueryExtension in -lXext... $ECHO_C" >&6; }
12189 if test "${ac_cv_lib_Xext_XShapeQueryExtension+set}" = set; then
12190 echo $ECHO_N "(cached) $ECHO_C" >&6
12191 else
12192 ac_check_lib_save_LIBS=$LIBS
12193 LIBS="-lXext $LIBS"
12194 cat >conftest.$ac_ext <<_ACEOF
12195 /* confdefs.h. */
12196 _ACEOF
12197 cat confdefs.h >>conftest.$ac_ext
12198 cat >>conftest.$ac_ext <<_ACEOF
12199 /* end confdefs.h. */
12201 /* Override any GCC internal prototype to avoid an error.
12202 Use char because int might match the return type of a GCC
12203 builtin and then its argument prototype would still apply. */
12204 #ifdef __cplusplus
12205 extern "C"
12206 #endif
12207 char XShapeQueryExtension ();
12209 main ()
12211 return XShapeQueryExtension ();
12213 return 0;
12215 _ACEOF
12216 rm -f conftest.$ac_objext conftest$ac_exeext
12217 if { (ac_try="$ac_link"
12218 case "(($ac_try" in
12219 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12220 *) ac_try_echo=$ac_try;;
12221 esac
12222 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12223 (eval "$ac_link") 2>conftest.er1
12224 ac_status=$?
12225 grep -v '^ *+' conftest.er1 >conftest.err
12226 rm -f conftest.er1
12227 cat conftest.err >&5
12228 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12229 (exit $ac_status); } && {
12230 test -z "$ac_c_werror_flag" ||
12231 test ! -s conftest.err
12232 } && test -s conftest$ac_exeext &&
12233 $as_test_x conftest$ac_exeext; then
12234 ac_cv_lib_Xext_XShapeQueryExtension=yes
12235 else
12236 echo "$as_me: failed program was:" >&5
12237 sed 's/^/| /' conftest.$ac_ext >&5
12239 ac_cv_lib_Xext_XShapeQueryExtension=no
12242 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
12243 conftest$ac_exeext conftest.$ac_ext
12244 LIBS=$ac_check_lib_save_LIBS
12246 { echo "$as_me:$LINENO: result: $ac_cv_lib_Xext_XShapeQueryExtension" >&5
12247 echo "${ECHO_T}$ac_cv_lib_Xext_XShapeQueryExtension" >&6; }
12248 if test $ac_cv_lib_Xext_XShapeQueryExtension = yes; then
12249 cat >>confdefs.h <<_ACEOF
12250 #define HAVE_LIBXEXT 1
12251 _ACEOF
12253 LIBS="-lXext $LIBS"
12260 if test "${USE_X_TOOLKIT}" = "MOTIF"; then
12261 { echo "$as_me:$LINENO: checking for Motif version 2.1" >&5
12262 echo $ECHO_N "checking for Motif version 2.1... $ECHO_C" >&6; }
12263 if test "${emacs_cv_motif_version_2_1+set}" = set; then
12264 echo $ECHO_N "(cached) $ECHO_C" >&6
12265 else
12266 cat >conftest.$ac_ext <<_ACEOF
12267 /* confdefs.h. */
12268 _ACEOF
12269 cat confdefs.h >>conftest.$ac_ext
12270 cat >>conftest.$ac_ext <<_ACEOF
12271 /* end confdefs.h. */
12272 #include <Xm/Xm.h>
12274 main ()
12276 #if XmVERSION > 2 || (XmVERSION == 2 && XmREVISION >= 1)
12277 int x = 5;
12278 #else
12279 Motif version prior to 2.1.
12280 #endif
12282 return 0;
12284 _ACEOF
12285 rm -f conftest.$ac_objext
12286 if { (ac_try="$ac_compile"
12287 case "(($ac_try" in
12288 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12289 *) ac_try_echo=$ac_try;;
12290 esac
12291 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12292 (eval "$ac_compile") 2>conftest.er1
12293 ac_status=$?
12294 grep -v '^ *+' conftest.er1 >conftest.err
12295 rm -f conftest.er1
12296 cat conftest.err >&5
12297 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12298 (exit $ac_status); } && {
12299 test -z "$ac_c_werror_flag" ||
12300 test ! -s conftest.err
12301 } && test -s conftest.$ac_objext; then
12302 emacs_cv_motif_version_2_1=yes
12303 else
12304 echo "$as_me: failed program was:" >&5
12305 sed 's/^/| /' conftest.$ac_ext >&5
12307 emacs_cv_motif_version_2_1=no
12310 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12312 { echo "$as_me:$LINENO: result: $emacs_cv_motif_version_2_1" >&5
12313 echo "${ECHO_T}$emacs_cv_motif_version_2_1" >&6; }
12314 HAVE_MOTIF_2_1=$emacs_cv_motif_version_2_1
12315 if test $emacs_cv_motif_version_2_1 = yes; then
12316 HAVE_LIBXP=no
12318 cat >>confdefs.h <<\_ACEOF
12319 #define HAVE_MOTIF_2_1 1
12320 _ACEOF
12322 { echo "$as_me:$LINENO: checking for XpCreateContext in -lXp" >&5
12323 echo $ECHO_N "checking for XpCreateContext in -lXp... $ECHO_C" >&6; }
12324 if test "${ac_cv_lib_Xp_XpCreateContext+set}" = set; then
12325 echo $ECHO_N "(cached) $ECHO_C" >&6
12326 else
12327 ac_check_lib_save_LIBS=$LIBS
12328 LIBS="-lXp $LIBS"
12329 cat >conftest.$ac_ext <<_ACEOF
12330 /* confdefs.h. */
12331 _ACEOF
12332 cat confdefs.h >>conftest.$ac_ext
12333 cat >>conftest.$ac_ext <<_ACEOF
12334 /* end confdefs.h. */
12336 /* Override any GCC internal prototype to avoid an error.
12337 Use char because int might match the return type of a GCC
12338 builtin and then its argument prototype would still apply. */
12339 #ifdef __cplusplus
12340 extern "C"
12341 #endif
12342 char XpCreateContext ();
12344 main ()
12346 return XpCreateContext ();
12348 return 0;
12350 _ACEOF
12351 rm -f conftest.$ac_objext conftest$ac_exeext
12352 if { (ac_try="$ac_link"
12353 case "(($ac_try" in
12354 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12355 *) ac_try_echo=$ac_try;;
12356 esac
12357 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12358 (eval "$ac_link") 2>conftest.er1
12359 ac_status=$?
12360 grep -v '^ *+' conftest.er1 >conftest.err
12361 rm -f conftest.er1
12362 cat conftest.err >&5
12363 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12364 (exit $ac_status); } && {
12365 test -z "$ac_c_werror_flag" ||
12366 test ! -s conftest.err
12367 } && test -s conftest$ac_exeext &&
12368 $as_test_x conftest$ac_exeext; then
12369 ac_cv_lib_Xp_XpCreateContext=yes
12370 else
12371 echo "$as_me: failed program was:" >&5
12372 sed 's/^/| /' conftest.$ac_ext >&5
12374 ac_cv_lib_Xp_XpCreateContext=no
12377 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
12378 conftest$ac_exeext conftest.$ac_ext
12379 LIBS=$ac_check_lib_save_LIBS
12381 { echo "$as_me:$LINENO: result: $ac_cv_lib_Xp_XpCreateContext" >&5
12382 echo "${ECHO_T}$ac_cv_lib_Xp_XpCreateContext" >&6; }
12383 if test $ac_cv_lib_Xp_XpCreateContext = yes; then
12384 HAVE_LIBXP=yes
12387 if test ${HAVE_LIBXP} = yes; then
12389 cat >>confdefs.h <<\_ACEOF
12390 #define HAVE_LIBXP 1
12391 _ACEOF
12394 else
12395 { echo "$as_me:$LINENO: checking for LessTif where some systems put it" >&5
12396 echo $ECHO_N "checking for LessTif where some systems put it... $ECHO_C" >&6; }
12397 if test "${emacs_cv_lesstif+set}" = set; then
12398 echo $ECHO_N "(cached) $ECHO_C" >&6
12399 else
12400 # We put this in CFLAGS temporarily to precede other -I options
12401 # that might be in CFLAGS temporarily.
12402 # We put this in CPPFLAGS where it precedes the other -I options.
12403 OLD_CPPFLAGS=$CPPFLAGS
12404 OLD_CFLAGS=$CFLAGS
12405 CPPFLAGS="-I/usr/X11R6/LessTif/Motif1.2/include $CPPFLAGS"
12406 CFLAGS="-I/usr/X11R6/LessTif/Motif1.2/include $CFLAGS"
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 </usr/X11R6/LessTif/Motif1.2/include/Xm/Xm.h>
12415 main ()
12417 int x = 5;
12419 return 0;
12421 _ACEOF
12422 rm -f conftest.$ac_objext
12423 if { (ac_try="$ac_compile"
12424 case "(($ac_try" in
12425 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12426 *) ac_try_echo=$ac_try;;
12427 esac
12428 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12429 (eval "$ac_compile") 2>conftest.er1
12430 ac_status=$?
12431 grep -v '^ *+' conftest.er1 >conftest.err
12432 rm -f conftest.er1
12433 cat conftest.err >&5
12434 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12435 (exit $ac_status); } && {
12436 test -z "$ac_c_werror_flag" ||
12437 test ! -s conftest.err
12438 } && test -s conftest.$ac_objext; then
12439 emacs_cv_lesstif=yes
12440 else
12441 echo "$as_me: failed program was:" >&5
12442 sed 's/^/| /' conftest.$ac_ext >&5
12444 emacs_cv_lesstif=no
12447 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12449 { echo "$as_me:$LINENO: result: $emacs_cv_lesstif" >&5
12450 echo "${ECHO_T}$emacs_cv_lesstif" >&6; }
12451 if test $emacs_cv_lesstif = yes; then
12452 # Make sure this -I option remains in CPPFLAGS after it is set
12453 # back to REAL_CPPFLAGS.
12454 # There is no need to change REAL_CFLAGS, because REAL_CFLAGS does not
12455 # have those other -I options anyway. Ultimately, having this
12456 # directory ultimately in CPPFLAGS will be enough.
12457 REAL_CPPFLAGS="-I/usr/X11R6/LessTif/Motif1.2/include $REAL_CPPFLAGS"
12458 LDFLAGS="-L/usr/X11R6/LessTif/Motif1.2/lib $LDFLAGS"
12459 else
12460 CFLAGS=$OLD_CFLAGS
12461 CPPFLAGS=$OLD_CPPFLAGS
12468 USE_TOOLKIT_SCROLL_BARS=no
12469 if test "${with_toolkit_scroll_bars}" != "no"; then
12470 if test "${USE_X_TOOLKIT}" != "none"; then
12471 if test "${USE_X_TOOLKIT}" = "MOTIF"; then
12472 cat >>confdefs.h <<\_ACEOF
12473 #define USE_TOOLKIT_SCROLL_BARS 1
12474 _ACEOF
12476 HAVE_XAW3D=no
12477 USE_TOOLKIT_SCROLL_BARS=yes
12478 elif test "${HAVE_XAW3D}" = "yes"; then
12479 cat >>confdefs.h <<\_ACEOF
12480 #define USE_TOOLKIT_SCROLL_BARS 1
12481 _ACEOF
12483 USE_TOOLKIT_SCROLL_BARS=yes
12485 elif test "${HAVE_GTK}" = "yes"; then
12486 cat >>confdefs.h <<\_ACEOF
12487 #define USE_TOOLKIT_SCROLL_BARS 1
12488 _ACEOF
12490 USE_TOOLKIT_SCROLL_BARS=yes
12491 elif test "${HAVE_CARBON}" = "yes"; then
12492 cat >>confdefs.h <<\_ACEOF
12493 #define USE_TOOLKIT_SCROLL_BARS 1
12494 _ACEOF
12496 USE_TOOLKIT_SCROLL_BARS=yes
12500 cat >conftest.$ac_ext <<_ACEOF
12501 /* confdefs.h. */
12502 _ACEOF
12503 cat confdefs.h >>conftest.$ac_ext
12504 cat >>conftest.$ac_ext <<_ACEOF
12505 /* end confdefs.h. */
12507 #include <X11/Xlib.h>
12508 #include <X11/Xresource.h>
12510 main ()
12512 XIMProc callback;
12514 return 0;
12516 _ACEOF
12517 rm -f conftest.$ac_objext
12518 if { (ac_try="$ac_compile"
12519 case "(($ac_try" in
12520 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12521 *) ac_try_echo=$ac_try;;
12522 esac
12523 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12524 (eval "$ac_compile") 2>conftest.er1
12525 ac_status=$?
12526 grep -v '^ *+' conftest.er1 >conftest.err
12527 rm -f conftest.er1
12528 cat conftest.err >&5
12529 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12530 (exit $ac_status); } && {
12531 test -z "$ac_c_werror_flag" ||
12532 test ! -s conftest.err
12533 } && test -s conftest.$ac_objext; then
12534 HAVE_XIM=yes
12536 cat >>confdefs.h <<\_ACEOF
12537 #define HAVE_XIM 1
12538 _ACEOF
12540 else
12541 echo "$as_me: failed program was:" >&5
12542 sed 's/^/| /' conftest.$ac_ext >&5
12544 HAVE_XIM=no
12547 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12550 if test "${with_xim}" != "no"; then
12552 cat >>confdefs.h <<\_ACEOF
12553 #define USE_XIM 1
12554 _ACEOF
12559 if test "${HAVE_XIM}" != "no"; then
12560 late_CFLAGS=$CFLAGS
12561 if test "$GCC" = yes; then
12562 CFLAGS="$CFLAGS --pedantic-errors"
12564 cat >conftest.$ac_ext <<_ACEOF
12565 /* confdefs.h. */
12566 _ACEOF
12567 cat confdefs.h >>conftest.$ac_ext
12568 cat >>conftest.$ac_ext <<_ACEOF
12569 /* end confdefs.h. */
12571 #include <X11/Xlib.h>
12572 #include <X11/Xresource.h>
12574 main ()
12576 Display *display;
12577 XrmDatabase db;
12578 char *res_name;
12579 char *res_class;
12580 XIMProc callback;
12581 XPointer *client_data;
12582 #ifndef __GNUC__
12583 /* If we're not using GCC, it's probably not XFree86, and this is
12584 probably right, but we can't use something like --pedantic-errors. */
12585 extern Bool XRegisterIMInstantiateCallback(Display*, XrmDatabase, char*,
12586 char*, XIMProc, XPointer*);
12587 #endif
12588 (void)XRegisterIMInstantiateCallback(display, db, res_name, res_class, callback,
12589 client_data);
12591 return 0;
12593 _ACEOF
12594 rm -f conftest.$ac_objext
12595 if { (ac_try="$ac_compile"
12596 case "(($ac_try" in
12597 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12598 *) ac_try_echo=$ac_try;;
12599 esac
12600 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12601 (eval "$ac_compile") 2>conftest.er1
12602 ac_status=$?
12603 grep -v '^ *+' conftest.er1 >conftest.err
12604 rm -f conftest.er1
12605 cat conftest.err >&5
12606 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12607 (exit $ac_status); } && {
12608 test -z "$ac_c_werror_flag" ||
12609 test ! -s conftest.err
12610 } && test -s conftest.$ac_objext; then
12611 emacs_cv_arg6_star=yes
12612 else
12613 echo "$as_me: failed program was:" >&5
12614 sed 's/^/| /' conftest.$ac_ext >&5
12619 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12621 if test "$emacs_cv_arg6_star" = yes; then
12622 cat >>confdefs.h <<\_ACEOF
12623 #define XRegisterIMInstantiateCallback_arg6 XPointer*
12624 _ACEOF
12626 else
12627 cat >>confdefs.h <<\_ACEOF
12628 #define XRegisterIMInstantiateCallback_arg6 XPointer
12629 _ACEOF
12632 CFLAGS=$late_CFLAGS
12635 ### Start of font-backend section.
12636 if test "${HAVE_X11}" != "yes"; then
12637 USE_FONT_BACKEND=no
12640 if test "${USE_FONT_BACKEND}" = "yes"; then
12642 cat >>confdefs.h <<\_ACEOF
12643 #define USE_FONT_BACKEND 1
12644 _ACEOF
12647 ## Use -lXft if available, unless `--with-freetype=no' nor `--with-xft=no'.
12648 HAVE_XFT=maybe
12649 if test "x${with_freetype}" = "xno"; then
12650 with_xft="no";
12652 if test "x${with_xft}" != "xno"; then
12655 succeeded=no
12657 # Extract the first word of "pkg-config", so it can be a program name with args.
12658 set dummy pkg-config; ac_word=$2
12659 { echo "$as_me:$LINENO: checking for $ac_word" >&5
12660 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
12661 if test "${ac_cv_path_PKG_CONFIG+set}" = set; then
12662 echo $ECHO_N "(cached) $ECHO_C" >&6
12663 else
12664 case $PKG_CONFIG in
12665 [\\/]* | ?:[\\/]*)
12666 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
12669 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12670 for as_dir in $PATH
12672 IFS=$as_save_IFS
12673 test -z "$as_dir" && as_dir=.
12674 for ac_exec_ext in '' $ac_executable_extensions; do
12675 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
12676 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
12677 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
12678 break 2
12680 done
12681 done
12682 IFS=$as_save_IFS
12684 test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG="no"
12686 esac
12688 PKG_CONFIG=$ac_cv_path_PKG_CONFIG
12689 if test -n "$PKG_CONFIG"; then
12690 { echo "$as_me:$LINENO: result: $PKG_CONFIG" >&5
12691 echo "${ECHO_T}$PKG_CONFIG" >&6; }
12692 else
12693 { echo "$as_me:$LINENO: result: no" >&5
12694 echo "${ECHO_T}no" >&6; }
12699 if test "$PKG_CONFIG" = "no" ; then
12700 HAVE_XFT=no
12701 else
12702 PKG_CONFIG_MIN_VERSION=0.9.0
12703 if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
12704 { echo "$as_me:$LINENO: checking for xft >= 0.13.0" >&5
12705 echo $ECHO_N "checking for xft >= 0.13.0... $ECHO_C" >&6; }
12707 if $PKG_CONFIG --exists "xft >= 0.13.0" 2>&5; then
12708 { echo "$as_me:$LINENO: result: yes" >&5
12709 echo "${ECHO_T}yes" >&6; }
12710 succeeded=yes
12712 { echo "$as_me:$LINENO: checking XFT_CFLAGS" >&5
12713 echo $ECHO_N "checking XFT_CFLAGS... $ECHO_C" >&6; }
12714 XFT_CFLAGS=`$PKG_CONFIG --cflags "xft >= 0.13.0"|sed -e 's,///*,/,g'`
12715 { echo "$as_me:$LINENO: result: $XFT_CFLAGS" >&5
12716 echo "${ECHO_T}$XFT_CFLAGS" >&6; }
12718 { echo "$as_me:$LINENO: checking XFT_LIBS" >&5
12719 echo $ECHO_N "checking XFT_LIBS... $ECHO_C" >&6; }
12720 XFT_LIBS=`$PKG_CONFIG --libs "xft >= 0.13.0"|sed -e 's,///*,/,g'`
12721 { echo "$as_me:$LINENO: result: $XFT_LIBS" >&5
12722 echo "${ECHO_T}$XFT_LIBS" >&6; }
12723 else
12724 { echo "$as_me:$LINENO: result: no" >&5
12725 echo "${ECHO_T}no" >&6; }
12726 XFT_CFLAGS=""
12727 XFT_LIBS=""
12728 ## If we have a custom action on failure, don't print errors, but
12729 ## do set a variable so people can do so.
12730 XFT_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "xft >= 0.13.0"`
12736 else
12737 echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
12738 echo "*** See http://www.freedesktop.org/software/pkgconfig"
12742 if test $succeeded = yes; then
12744 else
12745 HAVE_XFT=no
12748 if test "$HAVE_XFT" != no; then
12749 OLD_CPPFLAGS="$CPPFLAGS"
12750 OLD_CFLAGS="$CFLAGS"
12751 OLD_LIBS="$LIBS"
12752 CPPFLAGS="$CPPFLAGS $XFT_CFLAGS"
12753 CFLAGS="$CFLAGS $XFT_CFLAGS"
12754 LIBS="$XFT_LIBS $LIBS"
12755 if test "${ac_cv_header_X11_Xft_Xft_h+set}" = set; then
12756 { echo "$as_me:$LINENO: checking for X11/Xft/Xft.h" >&5
12757 echo $ECHO_N "checking for X11/Xft/Xft.h... $ECHO_C" >&6; }
12758 if test "${ac_cv_header_X11_Xft_Xft_h+set}" = set; then
12759 echo $ECHO_N "(cached) $ECHO_C" >&6
12761 { echo "$as_me:$LINENO: result: $ac_cv_header_X11_Xft_Xft_h" >&5
12762 echo "${ECHO_T}$ac_cv_header_X11_Xft_Xft_h" >&6; }
12763 else
12764 # Is the header compilable?
12765 { echo "$as_me:$LINENO: checking X11/Xft/Xft.h usability" >&5
12766 echo $ECHO_N "checking X11/Xft/Xft.h usability... $ECHO_C" >&6; }
12767 cat >conftest.$ac_ext <<_ACEOF
12768 /* confdefs.h. */
12769 _ACEOF
12770 cat confdefs.h >>conftest.$ac_ext
12771 cat >>conftest.$ac_ext <<_ACEOF
12772 /* end confdefs.h. */
12773 $ac_includes_default
12774 #include <X11/Xft/Xft.h>
12775 _ACEOF
12776 rm -f conftest.$ac_objext
12777 if { (ac_try="$ac_compile"
12778 case "(($ac_try" in
12779 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12780 *) ac_try_echo=$ac_try;;
12781 esac
12782 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12783 (eval "$ac_compile") 2>conftest.er1
12784 ac_status=$?
12785 grep -v '^ *+' conftest.er1 >conftest.err
12786 rm -f conftest.er1
12787 cat conftest.err >&5
12788 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12789 (exit $ac_status); } && {
12790 test -z "$ac_c_werror_flag" ||
12791 test ! -s conftest.err
12792 } && test -s conftest.$ac_objext; then
12793 ac_header_compiler=yes
12794 else
12795 echo "$as_me: failed program was:" >&5
12796 sed 's/^/| /' conftest.$ac_ext >&5
12798 ac_header_compiler=no
12801 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12802 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
12803 echo "${ECHO_T}$ac_header_compiler" >&6; }
12805 # Is the header present?
12806 { echo "$as_me:$LINENO: checking X11/Xft/Xft.h presence" >&5
12807 echo $ECHO_N "checking X11/Xft/Xft.h presence... $ECHO_C" >&6; }
12808 cat >conftest.$ac_ext <<_ACEOF
12809 /* confdefs.h. */
12810 _ACEOF
12811 cat confdefs.h >>conftest.$ac_ext
12812 cat >>conftest.$ac_ext <<_ACEOF
12813 /* end confdefs.h. */
12814 #include <X11/Xft/Xft.h>
12815 _ACEOF
12816 if { (ac_try="$ac_cpp conftest.$ac_ext"
12817 case "(($ac_try" in
12818 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12819 *) ac_try_echo=$ac_try;;
12820 esac
12821 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12822 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
12823 ac_status=$?
12824 grep -v '^ *+' conftest.er1 >conftest.err
12825 rm -f conftest.er1
12826 cat conftest.err >&5
12827 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12828 (exit $ac_status); } >/dev/null && {
12829 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
12830 test ! -s conftest.err
12831 }; then
12832 ac_header_preproc=yes
12833 else
12834 echo "$as_me: failed program was:" >&5
12835 sed 's/^/| /' conftest.$ac_ext >&5
12837 ac_header_preproc=no
12840 rm -f conftest.err conftest.$ac_ext
12841 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
12842 echo "${ECHO_T}$ac_header_preproc" >&6; }
12844 # So? What about this header?
12845 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
12846 yes:no: )
12847 { echo "$as_me:$LINENO: WARNING: X11/Xft/Xft.h: accepted by the compiler, rejected by the preprocessor!" >&5
12848 echo "$as_me: WARNING: X11/Xft/Xft.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
12849 { echo "$as_me:$LINENO: WARNING: X11/Xft/Xft.h: proceeding with the compiler's result" >&5
12850 echo "$as_me: WARNING: X11/Xft/Xft.h: proceeding with the compiler's result" >&2;}
12851 ac_header_preproc=yes
12853 no:yes:* )
12854 { echo "$as_me:$LINENO: WARNING: X11/Xft/Xft.h: present but cannot be compiled" >&5
12855 echo "$as_me: WARNING: X11/Xft/Xft.h: present but cannot be compiled" >&2;}
12856 { echo "$as_me:$LINENO: WARNING: X11/Xft/Xft.h: check for missing prerequisite headers?" >&5
12857 echo "$as_me: WARNING: X11/Xft/Xft.h: check for missing prerequisite headers?" >&2;}
12858 { echo "$as_me:$LINENO: WARNING: X11/Xft/Xft.h: see the Autoconf documentation" >&5
12859 echo "$as_me: WARNING: X11/Xft/Xft.h: see the Autoconf documentation" >&2;}
12860 { echo "$as_me:$LINENO: WARNING: X11/Xft/Xft.h: section \"Present But Cannot Be Compiled\"" >&5
12861 echo "$as_me: WARNING: X11/Xft/Xft.h: section \"Present But Cannot Be Compiled\"" >&2;}
12862 { echo "$as_me:$LINENO: WARNING: X11/Xft/Xft.h: proceeding with the preprocessor's result" >&5
12863 echo "$as_me: WARNING: X11/Xft/Xft.h: proceeding with the preprocessor's result" >&2;}
12864 { echo "$as_me:$LINENO: WARNING: X11/Xft/Xft.h: in the future, the compiler will take precedence" >&5
12865 echo "$as_me: WARNING: X11/Xft/Xft.h: in the future, the compiler will take precedence" >&2;}
12868 esac
12869 { echo "$as_me:$LINENO: checking for X11/Xft/Xft.h" >&5
12870 echo $ECHO_N "checking for X11/Xft/Xft.h... $ECHO_C" >&6; }
12871 if test "${ac_cv_header_X11_Xft_Xft_h+set}" = set; then
12872 echo $ECHO_N "(cached) $ECHO_C" >&6
12873 else
12874 ac_cv_header_X11_Xft_Xft_h=$ac_header_preproc
12876 { echo "$as_me:$LINENO: result: $ac_cv_header_X11_Xft_Xft_h" >&5
12877 echo "${ECHO_T}$ac_cv_header_X11_Xft_Xft_h" >&6; }
12880 if test $ac_cv_header_X11_Xft_Xft_h = yes; then
12881 { echo "$as_me:$LINENO: checking for XftFontOpen in -lXft" >&5
12882 echo $ECHO_N "checking for XftFontOpen in -lXft... $ECHO_C" >&6; }
12883 if test "${ac_cv_lib_Xft_XftFontOpen+set}" = set; then
12884 echo $ECHO_N "(cached) $ECHO_C" >&6
12885 else
12886 ac_check_lib_save_LIBS=$LIBS
12887 LIBS="-lXft $XFT_LIBS $LIBS"
12888 cat >conftest.$ac_ext <<_ACEOF
12889 /* confdefs.h. */
12890 _ACEOF
12891 cat confdefs.h >>conftest.$ac_ext
12892 cat >>conftest.$ac_ext <<_ACEOF
12893 /* end confdefs.h. */
12895 /* Override any GCC internal prototype to avoid an error.
12896 Use char because int might match the return type of a GCC
12897 builtin and then its argument prototype would still apply. */
12898 #ifdef __cplusplus
12899 extern "C"
12900 #endif
12901 char XftFontOpen ();
12903 main ()
12905 return XftFontOpen ();
12907 return 0;
12909 _ACEOF
12910 rm -f conftest.$ac_objext conftest$ac_exeext
12911 if { (ac_try="$ac_link"
12912 case "(($ac_try" in
12913 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12914 *) ac_try_echo=$ac_try;;
12915 esac
12916 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12917 (eval "$ac_link") 2>conftest.er1
12918 ac_status=$?
12919 grep -v '^ *+' conftest.er1 >conftest.err
12920 rm -f conftest.er1
12921 cat conftest.err >&5
12922 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12923 (exit $ac_status); } && {
12924 test -z "$ac_c_werror_flag" ||
12925 test ! -s conftest.err
12926 } && test -s conftest$ac_exeext &&
12927 $as_test_x conftest$ac_exeext; then
12928 ac_cv_lib_Xft_XftFontOpen=yes
12929 else
12930 echo "$as_me: failed program was:" >&5
12931 sed 's/^/| /' conftest.$ac_ext >&5
12933 ac_cv_lib_Xft_XftFontOpen=no
12936 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
12937 conftest$ac_exeext conftest.$ac_ext
12938 LIBS=$ac_check_lib_save_LIBS
12940 { echo "$as_me:$LINENO: result: $ac_cv_lib_Xft_XftFontOpen" >&5
12941 echo "${ECHO_T}$ac_cv_lib_Xft_XftFontOpen" >&6; }
12942 if test $ac_cv_lib_Xft_XftFontOpen = yes; then
12943 HAVE_XFT=yes
12950 if test "${HAVE_XFT}" = "yes"; then
12952 cat >>confdefs.h <<\_ACEOF
12953 #define HAVE_XFT 1
12954 _ACEOF
12957 C_SWITCH_X_SITE="$C_SWITCH_X_SITE $XFT_CFLAGS"
12958 else
12959 CPPFLAGS="$OLD_CPPFLAGS"
12960 CFLAGS="$OLD_CFLAGS"
12961 LIBS="$OLD_LIBS"
12962 fi # "${HAVE_XFT}" = "yes"
12963 fi # "$HAVE_XFT" != no
12964 fi # "x${with_xft}" != "xno"
12966 if test "$HAVE_XFT" != "yes"; then
12967 HAVE_XFT=no
12971 HAVE_FREETYPE=no
12972 ### Use -lfreetype if available, unless `--with-freetype=no'.
12973 if test "${HAVE_XFT}" = "yes"; then
12974 HAVE_FREETYPE=yes
12975 elif test "x${with_freetype}" != "xno"; then
12978 succeeded=no
12980 # Extract the first word of "pkg-config", so it can be a program name with args.
12981 set dummy pkg-config; ac_word=$2
12982 { echo "$as_me:$LINENO: checking for $ac_word" >&5
12983 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
12984 if test "${ac_cv_path_PKG_CONFIG+set}" = set; then
12985 echo $ECHO_N "(cached) $ECHO_C" >&6
12986 else
12987 case $PKG_CONFIG in
12988 [\\/]* | ?:[\\/]*)
12989 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
12992 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12993 for as_dir in $PATH
12995 IFS=$as_save_IFS
12996 test -z "$as_dir" && as_dir=.
12997 for ac_exec_ext in '' $ac_executable_extensions; do
12998 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
12999 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
13000 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
13001 break 2
13003 done
13004 done
13005 IFS=$as_save_IFS
13007 test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG="no"
13009 esac
13011 PKG_CONFIG=$ac_cv_path_PKG_CONFIG
13012 if test -n "$PKG_CONFIG"; then
13013 { echo "$as_me:$LINENO: result: $PKG_CONFIG" >&5
13014 echo "${ECHO_T}$PKG_CONFIG" >&6; }
13015 else
13016 { echo "$as_me:$LINENO: result: no" >&5
13017 echo "${ECHO_T}no" >&6; }
13022 if test "$PKG_CONFIG" = "no" ; then
13023 HAVE_FREETYPE=no
13024 else
13025 PKG_CONFIG_MIN_VERSION=0.9.0
13026 if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
13027 { echo "$as_me:$LINENO: checking for freetype2" >&5
13028 echo $ECHO_N "checking for freetype2... $ECHO_C" >&6; }
13030 if $PKG_CONFIG --exists "freetype2" 2>&5; then
13031 { echo "$as_me:$LINENO: result: yes" >&5
13032 echo "${ECHO_T}yes" >&6; }
13033 succeeded=yes
13035 { echo "$as_me:$LINENO: checking FREETYPE_CFLAGS" >&5
13036 echo $ECHO_N "checking FREETYPE_CFLAGS... $ECHO_C" >&6; }
13037 FREETYPE_CFLAGS=`$PKG_CONFIG --cflags "freetype2"|sed -e 's,///*,/,g'`
13038 { echo "$as_me:$LINENO: result: $FREETYPE_CFLAGS" >&5
13039 echo "${ECHO_T}$FREETYPE_CFLAGS" >&6; }
13041 { echo "$as_me:$LINENO: checking FREETYPE_LIBS" >&5
13042 echo $ECHO_N "checking FREETYPE_LIBS... $ECHO_C" >&6; }
13043 FREETYPE_LIBS=`$PKG_CONFIG --libs "freetype2"|sed -e 's,///*,/,g'`
13044 { echo "$as_me:$LINENO: result: $FREETYPE_LIBS" >&5
13045 echo "${ECHO_T}$FREETYPE_LIBS" >&6; }
13046 else
13047 { echo "$as_me:$LINENO: result: no" >&5
13048 echo "${ECHO_T}no" >&6; }
13049 FREETYPE_CFLAGS=""
13050 FREETYPE_LIBS=""
13051 ## If we have a custom action on failure, don't print errors, but
13052 ## do set a variable so people can do so.
13053 FREETYPE_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "freetype2"`
13059 else
13060 echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
13061 echo "*** See http://www.freedesktop.org/software/pkgconfig"
13065 if test $succeeded = yes; then
13066 HAVE_FREETYPE=yes
13067 else
13068 HAVE_FREETYPE=no
13071 if test "${HAVE_FREETYPE}" = "yes"; then
13073 succeeded=no
13075 # Extract the first word of "pkg-config", so it can be a program name with args.
13076 set dummy pkg-config; ac_word=$2
13077 { echo "$as_me:$LINENO: checking for $ac_word" >&5
13078 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
13079 if test "${ac_cv_path_PKG_CONFIG+set}" = set; then
13080 echo $ECHO_N "(cached) $ECHO_C" >&6
13081 else
13082 case $PKG_CONFIG in
13083 [\\/]* | ?:[\\/]*)
13084 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
13087 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13088 for as_dir in $PATH
13090 IFS=$as_save_IFS
13091 test -z "$as_dir" && as_dir=.
13092 for ac_exec_ext in '' $ac_executable_extensions; do
13093 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
13094 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
13095 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
13096 break 2
13098 done
13099 done
13100 IFS=$as_save_IFS
13102 test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG="no"
13104 esac
13106 PKG_CONFIG=$ac_cv_path_PKG_CONFIG
13107 if test -n "$PKG_CONFIG"; then
13108 { echo "$as_me:$LINENO: result: $PKG_CONFIG" >&5
13109 echo "${ECHO_T}$PKG_CONFIG" >&6; }
13110 else
13111 { echo "$as_me:$LINENO: result: no" >&5
13112 echo "${ECHO_T}no" >&6; }
13117 if test "$PKG_CONFIG" = "no" ; then
13118 HAVE_FC=no
13119 else
13120 PKG_CONFIG_MIN_VERSION=0.9.0
13121 if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
13122 { echo "$as_me:$LINENO: checking for fontconfig" >&5
13123 echo $ECHO_N "checking for fontconfig... $ECHO_C" >&6; }
13125 if $PKG_CONFIG --exists "fontconfig" 2>&5; then
13126 { echo "$as_me:$LINENO: result: yes" >&5
13127 echo "${ECHO_T}yes" >&6; }
13128 succeeded=yes
13130 { echo "$as_me:$LINENO: checking FONTCONFIG_CFLAGS" >&5
13131 echo $ECHO_N "checking FONTCONFIG_CFLAGS... $ECHO_C" >&6; }
13132 FONTCONFIG_CFLAGS=`$PKG_CONFIG --cflags "fontconfig"|sed -e 's,///*,/,g'`
13133 { echo "$as_me:$LINENO: result: $FONTCONFIG_CFLAGS" >&5
13134 echo "${ECHO_T}$FONTCONFIG_CFLAGS" >&6; }
13136 { echo "$as_me:$LINENO: checking FONTCONFIG_LIBS" >&5
13137 echo $ECHO_N "checking FONTCONFIG_LIBS... $ECHO_C" >&6; }
13138 FONTCONFIG_LIBS=`$PKG_CONFIG --libs "fontconfig"|sed -e 's,///*,/,g'`
13139 { echo "$as_me:$LINENO: result: $FONTCONFIG_LIBS" >&5
13140 echo "${ECHO_T}$FONTCONFIG_LIBS" >&6; }
13141 else
13142 { echo "$as_me:$LINENO: result: no" >&5
13143 echo "${ECHO_T}no" >&6; }
13144 FONTCONFIG_CFLAGS=""
13145 FONTCONFIG_LIBS=""
13146 ## If we have a custom action on failure, don't print errors, but
13147 ## do set a variable so people can do so.
13148 FONTCONFIG_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "fontconfig"`
13154 else
13155 echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
13156 echo "*** See http://www.freedesktop.org/software/pkgconfig"
13160 if test $succeeded = yes; then
13161 HAVE_FC=yes
13162 else
13163 HAVE_FC=no
13166 if test "${HAVE_FC}" = "no"; then
13167 HAVE_FREETYPE=no
13172 HAVE_LIBOTF=no
13173 if test "${HAVE_FREETYPE}" = "yes"; then
13175 cat >>confdefs.h <<\_ACEOF
13176 #define HAVE_FREETYPE 1
13177 _ACEOF
13179 if test "${with_libotf}" != "no"; then
13181 succeeded=no
13183 # Extract the first word of "pkg-config", so it can be a program name with args.
13184 set dummy pkg-config; ac_word=$2
13185 { echo "$as_me:$LINENO: checking for $ac_word" >&5
13186 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
13187 if test "${ac_cv_path_PKG_CONFIG+set}" = set; then
13188 echo $ECHO_N "(cached) $ECHO_C" >&6
13189 else
13190 case $PKG_CONFIG in
13191 [\\/]* | ?:[\\/]*)
13192 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
13195 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13196 for as_dir in $PATH
13198 IFS=$as_save_IFS
13199 test -z "$as_dir" && as_dir=.
13200 for ac_exec_ext in '' $ac_executable_extensions; do
13201 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
13202 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
13203 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
13204 break 2
13206 done
13207 done
13208 IFS=$as_save_IFS
13210 test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG="no"
13212 esac
13214 PKG_CONFIG=$ac_cv_path_PKG_CONFIG
13215 if test -n "$PKG_CONFIG"; then
13216 { echo "$as_me:$LINENO: result: $PKG_CONFIG" >&5
13217 echo "${ECHO_T}$PKG_CONFIG" >&6; }
13218 else
13219 { echo "$as_me:$LINENO: result: no" >&5
13220 echo "${ECHO_T}no" >&6; }
13225 if test "$PKG_CONFIG" = "no" ; then
13226 HAVE_LIBOTF=no
13227 else
13228 PKG_CONFIG_MIN_VERSION=0.9.0
13229 if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
13230 { echo "$as_me:$LINENO: checking for libotf" >&5
13231 echo $ECHO_N "checking for libotf... $ECHO_C" >&6; }
13233 if $PKG_CONFIG --exists "libotf" 2>&5; then
13234 { echo "$as_me:$LINENO: result: yes" >&5
13235 echo "${ECHO_T}yes" >&6; }
13236 succeeded=yes
13238 { echo "$as_me:$LINENO: checking LIBOTF_CFLAGS" >&5
13239 echo $ECHO_N "checking LIBOTF_CFLAGS... $ECHO_C" >&6; }
13240 LIBOTF_CFLAGS=`$PKG_CONFIG --cflags "libotf"|sed -e 's,///*,/,g'`
13241 { echo "$as_me:$LINENO: result: $LIBOTF_CFLAGS" >&5
13242 echo "${ECHO_T}$LIBOTF_CFLAGS" >&6; }
13244 { echo "$as_me:$LINENO: checking LIBOTF_LIBS" >&5
13245 echo $ECHO_N "checking LIBOTF_LIBS... $ECHO_C" >&6; }
13246 LIBOTF_LIBS=`$PKG_CONFIG --libs "libotf"|sed -e 's,///*,/,g'`
13247 { echo "$as_me:$LINENO: result: $LIBOTF_LIBS" >&5
13248 echo "${ECHO_T}$LIBOTF_LIBS" >&6; }
13249 else
13250 { echo "$as_me:$LINENO: result: no" >&5
13251 echo "${ECHO_T}no" >&6; }
13252 LIBOTF_CFLAGS=""
13253 LIBOTF_LIBS=""
13254 ## If we have a custom action on failure, don't print errors, but
13255 ## do set a variable so people can do so.
13256 LIBOTF_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "libotf"`
13262 else
13263 echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
13264 echo "*** See http://www.freedesktop.org/software/pkgconfig"
13268 if test $succeeded = yes; then
13269 HAVE_LIBOTF=yes
13270 else
13271 HAVE_LIBOTF=no
13274 if test "$HAVE_LIBOTF" = "yes"; then
13276 cat >>confdefs.h <<\_ACEOF
13277 #define HAVE_LIBOTF 1
13278 _ACEOF
13284 HAVE_M17N_FLT=no
13285 if test "${with_m17n_flt}" != "no"; then
13287 succeeded=no
13289 # Extract the first word of "pkg-config", so it can be a program name with args.
13290 set dummy pkg-config; ac_word=$2
13291 { echo "$as_me:$LINENO: checking for $ac_word" >&5
13292 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
13293 if test "${ac_cv_path_PKG_CONFIG+set}" = set; then
13294 echo $ECHO_N "(cached) $ECHO_C" >&6
13295 else
13296 case $PKG_CONFIG in
13297 [\\/]* | ?:[\\/]*)
13298 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
13301 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13302 for as_dir in $PATH
13304 IFS=$as_save_IFS
13305 test -z "$as_dir" && as_dir=.
13306 for ac_exec_ext in '' $ac_executable_extensions; do
13307 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
13308 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
13309 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
13310 break 2
13312 done
13313 done
13314 IFS=$as_save_IFS
13316 test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG="no"
13318 esac
13320 PKG_CONFIG=$ac_cv_path_PKG_CONFIG
13321 if test -n "$PKG_CONFIG"; then
13322 { echo "$as_me:$LINENO: result: $PKG_CONFIG" >&5
13323 echo "${ECHO_T}$PKG_CONFIG" >&6; }
13324 else
13325 { echo "$as_me:$LINENO: result: no" >&5
13326 echo "${ECHO_T}no" >&6; }
13331 if test "$PKG_CONFIG" = "no" ; then
13332 HAVE_M17N_FLT=no
13333 else
13334 PKG_CONFIG_MIN_VERSION=0.9.0
13335 if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
13336 { echo "$as_me:$LINENO: checking for m17n-flt" >&5
13337 echo $ECHO_N "checking for m17n-flt... $ECHO_C" >&6; }
13339 if $PKG_CONFIG --exists "m17n-flt" 2>&5; then
13340 { echo "$as_me:$LINENO: result: yes" >&5
13341 echo "${ECHO_T}yes" >&6; }
13342 succeeded=yes
13344 { echo "$as_me:$LINENO: checking M17N_FLT_CFLAGS" >&5
13345 echo $ECHO_N "checking M17N_FLT_CFLAGS... $ECHO_C" >&6; }
13346 M17N_FLT_CFLAGS=`$PKG_CONFIG --cflags "m17n-flt"|sed -e 's,///*,/,g'`
13347 { echo "$as_me:$LINENO: result: $M17N_FLT_CFLAGS" >&5
13348 echo "${ECHO_T}$M17N_FLT_CFLAGS" >&6; }
13350 { echo "$as_me:$LINENO: checking M17N_FLT_LIBS" >&5
13351 echo $ECHO_N "checking M17N_FLT_LIBS... $ECHO_C" >&6; }
13352 M17N_FLT_LIBS=`$PKG_CONFIG --libs "m17n-flt"|sed -e 's,///*,/,g'`
13353 { echo "$as_me:$LINENO: result: $M17N_FLT_LIBS" >&5
13354 echo "${ECHO_T}$M17N_FLT_LIBS" >&6; }
13355 else
13356 { echo "$as_me:$LINENO: result: no" >&5
13357 echo "${ECHO_T}no" >&6; }
13358 M17N_FLT_CFLAGS=""
13359 M17N_FLT_LIBS=""
13360 ## If we have a custom action on failure, don't print errors, but
13361 ## do set a variable so people can do so.
13362 M17N_FLT_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "m17n-flt"`
13368 else
13369 echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
13370 echo "*** See http://www.freedesktop.org/software/pkgconfig"
13374 if test $succeeded = yes; then
13375 HAVE_M17N_FLT=yes
13376 else
13377 HAVE_M17N_FLT=no
13380 if test "$HAVE_M17N_FLT" = "yes"; then
13382 cat >>confdefs.h <<\_ACEOF
13383 #define HAVE_M17N_FLT 1
13384 _ACEOF
13398 fi # "${USE_FONT_BACKEND}" = "yes"
13399 ### End of font-backend section.
13401 ### Use -lXpm if available, unless `--with-xpm=no'.
13402 HAVE_XPM=no
13403 if test "${HAVE_X11}" = "yes"; then
13404 if test "${with_xpm}" != "no"; then
13405 if test "${ac_cv_header_X11_xpm_h+set}" = set; then
13406 { echo "$as_me:$LINENO: checking for X11/xpm.h" >&5
13407 echo $ECHO_N "checking for X11/xpm.h... $ECHO_C" >&6; }
13408 if test "${ac_cv_header_X11_xpm_h+set}" = set; then
13409 echo $ECHO_N "(cached) $ECHO_C" >&6
13411 { echo "$as_me:$LINENO: result: $ac_cv_header_X11_xpm_h" >&5
13412 echo "${ECHO_T}$ac_cv_header_X11_xpm_h" >&6; }
13413 else
13414 # Is the header compilable?
13415 { echo "$as_me:$LINENO: checking X11/xpm.h usability" >&5
13416 echo $ECHO_N "checking X11/xpm.h usability... $ECHO_C" >&6; }
13417 cat >conftest.$ac_ext <<_ACEOF
13418 /* confdefs.h. */
13419 _ACEOF
13420 cat confdefs.h >>conftest.$ac_ext
13421 cat >>conftest.$ac_ext <<_ACEOF
13422 /* end confdefs.h. */
13423 $ac_includes_default
13424 #include <X11/xpm.h>
13425 _ACEOF
13426 rm -f conftest.$ac_objext
13427 if { (ac_try="$ac_compile"
13428 case "(($ac_try" in
13429 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13430 *) ac_try_echo=$ac_try;;
13431 esac
13432 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13433 (eval "$ac_compile") 2>conftest.er1
13434 ac_status=$?
13435 grep -v '^ *+' conftest.er1 >conftest.err
13436 rm -f conftest.er1
13437 cat conftest.err >&5
13438 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13439 (exit $ac_status); } && {
13440 test -z "$ac_c_werror_flag" ||
13441 test ! -s conftest.err
13442 } && test -s conftest.$ac_objext; then
13443 ac_header_compiler=yes
13444 else
13445 echo "$as_me: failed program was:" >&5
13446 sed 's/^/| /' conftest.$ac_ext >&5
13448 ac_header_compiler=no
13451 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13452 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
13453 echo "${ECHO_T}$ac_header_compiler" >&6; }
13455 # Is the header present?
13456 { echo "$as_me:$LINENO: checking X11/xpm.h presence" >&5
13457 echo $ECHO_N "checking X11/xpm.h presence... $ECHO_C" >&6; }
13458 cat >conftest.$ac_ext <<_ACEOF
13459 /* confdefs.h. */
13460 _ACEOF
13461 cat confdefs.h >>conftest.$ac_ext
13462 cat >>conftest.$ac_ext <<_ACEOF
13463 /* end confdefs.h. */
13464 #include <X11/xpm.h>
13465 _ACEOF
13466 if { (ac_try="$ac_cpp conftest.$ac_ext"
13467 case "(($ac_try" in
13468 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13469 *) ac_try_echo=$ac_try;;
13470 esac
13471 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13472 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
13473 ac_status=$?
13474 grep -v '^ *+' conftest.er1 >conftest.err
13475 rm -f conftest.er1
13476 cat conftest.err >&5
13477 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13478 (exit $ac_status); } >/dev/null && {
13479 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
13480 test ! -s conftest.err
13481 }; then
13482 ac_header_preproc=yes
13483 else
13484 echo "$as_me: failed program was:" >&5
13485 sed 's/^/| /' conftest.$ac_ext >&5
13487 ac_header_preproc=no
13490 rm -f conftest.err conftest.$ac_ext
13491 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
13492 echo "${ECHO_T}$ac_header_preproc" >&6; }
13494 # So? What about this header?
13495 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
13496 yes:no: )
13497 { echo "$as_me:$LINENO: WARNING: X11/xpm.h: accepted by the compiler, rejected by the preprocessor!" >&5
13498 echo "$as_me: WARNING: X11/xpm.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
13499 { echo "$as_me:$LINENO: WARNING: X11/xpm.h: proceeding with the compiler's result" >&5
13500 echo "$as_me: WARNING: X11/xpm.h: proceeding with the compiler's result" >&2;}
13501 ac_header_preproc=yes
13503 no:yes:* )
13504 { echo "$as_me:$LINENO: WARNING: X11/xpm.h: present but cannot be compiled" >&5
13505 echo "$as_me: WARNING: X11/xpm.h: present but cannot be compiled" >&2;}
13506 { echo "$as_me:$LINENO: WARNING: X11/xpm.h: check for missing prerequisite headers?" >&5
13507 echo "$as_me: WARNING: X11/xpm.h: check for missing prerequisite headers?" >&2;}
13508 { echo "$as_me:$LINENO: WARNING: X11/xpm.h: see the Autoconf documentation" >&5
13509 echo "$as_me: WARNING: X11/xpm.h: see the Autoconf documentation" >&2;}
13510 { echo "$as_me:$LINENO: WARNING: X11/xpm.h: section \"Present But Cannot Be Compiled\"" >&5
13511 echo "$as_me: WARNING: X11/xpm.h: section \"Present But Cannot Be Compiled\"" >&2;}
13512 { echo "$as_me:$LINENO: WARNING: X11/xpm.h: proceeding with the preprocessor's result" >&5
13513 echo "$as_me: WARNING: X11/xpm.h: proceeding with the preprocessor's result" >&2;}
13514 { echo "$as_me:$LINENO: WARNING: X11/xpm.h: in the future, the compiler will take precedence" >&5
13515 echo "$as_me: WARNING: X11/xpm.h: in the future, the compiler will take precedence" >&2;}
13518 esac
13519 { echo "$as_me:$LINENO: checking for X11/xpm.h" >&5
13520 echo $ECHO_N "checking for X11/xpm.h... $ECHO_C" >&6; }
13521 if test "${ac_cv_header_X11_xpm_h+set}" = set; then
13522 echo $ECHO_N "(cached) $ECHO_C" >&6
13523 else
13524 ac_cv_header_X11_xpm_h=$ac_header_preproc
13526 { echo "$as_me:$LINENO: result: $ac_cv_header_X11_xpm_h" >&5
13527 echo "${ECHO_T}$ac_cv_header_X11_xpm_h" >&6; }
13530 if test $ac_cv_header_X11_xpm_h = yes; then
13531 { echo "$as_me:$LINENO: checking for XpmReadFileToPixmap in -lXpm" >&5
13532 echo $ECHO_N "checking for XpmReadFileToPixmap in -lXpm... $ECHO_C" >&6; }
13533 if test "${ac_cv_lib_Xpm_XpmReadFileToPixmap+set}" = set; then
13534 echo $ECHO_N "(cached) $ECHO_C" >&6
13535 else
13536 ac_check_lib_save_LIBS=$LIBS
13537 LIBS="-lXpm -lX11 $LIBS"
13538 cat >conftest.$ac_ext <<_ACEOF
13539 /* confdefs.h. */
13540 _ACEOF
13541 cat confdefs.h >>conftest.$ac_ext
13542 cat >>conftest.$ac_ext <<_ACEOF
13543 /* end confdefs.h. */
13545 /* Override any GCC internal prototype to avoid an error.
13546 Use char because int might match the return type of a GCC
13547 builtin and then its argument prototype would still apply. */
13548 #ifdef __cplusplus
13549 extern "C"
13550 #endif
13551 char XpmReadFileToPixmap ();
13553 main ()
13555 return XpmReadFileToPixmap ();
13557 return 0;
13559 _ACEOF
13560 rm -f conftest.$ac_objext conftest$ac_exeext
13561 if { (ac_try="$ac_link"
13562 case "(($ac_try" in
13563 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13564 *) ac_try_echo=$ac_try;;
13565 esac
13566 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13567 (eval "$ac_link") 2>conftest.er1
13568 ac_status=$?
13569 grep -v '^ *+' conftest.er1 >conftest.err
13570 rm -f conftest.er1
13571 cat conftest.err >&5
13572 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13573 (exit $ac_status); } && {
13574 test -z "$ac_c_werror_flag" ||
13575 test ! -s conftest.err
13576 } && test -s conftest$ac_exeext &&
13577 $as_test_x conftest$ac_exeext; then
13578 ac_cv_lib_Xpm_XpmReadFileToPixmap=yes
13579 else
13580 echo "$as_me: failed program was:" >&5
13581 sed 's/^/| /' conftest.$ac_ext >&5
13583 ac_cv_lib_Xpm_XpmReadFileToPixmap=no
13586 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
13587 conftest$ac_exeext conftest.$ac_ext
13588 LIBS=$ac_check_lib_save_LIBS
13590 { echo "$as_me:$LINENO: result: $ac_cv_lib_Xpm_XpmReadFileToPixmap" >&5
13591 echo "${ECHO_T}$ac_cv_lib_Xpm_XpmReadFileToPixmap" >&6; }
13592 if test $ac_cv_lib_Xpm_XpmReadFileToPixmap = yes; then
13593 HAVE_XPM=yes
13599 if test "${HAVE_XPM}" = "yes"; then
13600 { echo "$as_me:$LINENO: checking for XpmReturnAllocPixels preprocessor define" >&5
13601 echo $ECHO_N "checking for XpmReturnAllocPixels preprocessor define... $ECHO_C" >&6; }
13602 cat >conftest.$ac_ext <<_ACEOF
13603 /* confdefs.h. */
13604 _ACEOF
13605 cat confdefs.h >>conftest.$ac_ext
13606 cat >>conftest.$ac_ext <<_ACEOF
13607 /* end confdefs.h. */
13608 #include "X11/xpm.h"
13609 #ifndef XpmReturnAllocPixels
13610 no_return_alloc_pixels
13611 #endif
13613 _ACEOF
13614 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
13615 $EGREP "no_return_alloc_pixels" >/dev/null 2>&1; then
13616 HAVE_XPM=no
13617 else
13618 HAVE_XPM=yes
13620 rm -f conftest*
13623 if test "${HAVE_XPM}" = "yes"; then
13624 { echo "$as_me:$LINENO: result: yes" >&5
13625 echo "${ECHO_T}yes" >&6; }
13626 else
13627 { echo "$as_me:$LINENO: result: no" >&5
13628 echo "${ECHO_T}no" >&6; }
13633 if test "${HAVE_XPM}" = "yes"; then
13635 cat >>confdefs.h <<\_ACEOF
13636 #define HAVE_XPM 1
13637 _ACEOF
13642 ### Use -ljpeg if available, unless `--with-jpeg=no'.
13643 HAVE_JPEG=no
13644 if test "${HAVE_X11}" = "yes"; then
13645 if test "${with_jpeg}" != "no"; then
13646 if test "${ac_cv_header_jerror_h+set}" = set; then
13647 { echo "$as_me:$LINENO: checking for jerror.h" >&5
13648 echo $ECHO_N "checking for jerror.h... $ECHO_C" >&6; }
13649 if test "${ac_cv_header_jerror_h+set}" = set; then
13650 echo $ECHO_N "(cached) $ECHO_C" >&6
13652 { echo "$as_me:$LINENO: result: $ac_cv_header_jerror_h" >&5
13653 echo "${ECHO_T}$ac_cv_header_jerror_h" >&6; }
13654 else
13655 # Is the header compilable?
13656 { echo "$as_me:$LINENO: checking jerror.h usability" >&5
13657 echo $ECHO_N "checking jerror.h usability... $ECHO_C" >&6; }
13658 cat >conftest.$ac_ext <<_ACEOF
13659 /* confdefs.h. */
13660 _ACEOF
13661 cat confdefs.h >>conftest.$ac_ext
13662 cat >>conftest.$ac_ext <<_ACEOF
13663 /* end confdefs.h. */
13664 $ac_includes_default
13665 #include <jerror.h>
13666 _ACEOF
13667 rm -f conftest.$ac_objext
13668 if { (ac_try="$ac_compile"
13669 case "(($ac_try" in
13670 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13671 *) ac_try_echo=$ac_try;;
13672 esac
13673 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13674 (eval "$ac_compile") 2>conftest.er1
13675 ac_status=$?
13676 grep -v '^ *+' conftest.er1 >conftest.err
13677 rm -f conftest.er1
13678 cat conftest.err >&5
13679 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13680 (exit $ac_status); } && {
13681 test -z "$ac_c_werror_flag" ||
13682 test ! -s conftest.err
13683 } && test -s conftest.$ac_objext; then
13684 ac_header_compiler=yes
13685 else
13686 echo "$as_me: failed program was:" >&5
13687 sed 's/^/| /' conftest.$ac_ext >&5
13689 ac_header_compiler=no
13692 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13693 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
13694 echo "${ECHO_T}$ac_header_compiler" >&6; }
13696 # Is the header present?
13697 { echo "$as_me:$LINENO: checking jerror.h presence" >&5
13698 echo $ECHO_N "checking jerror.h presence... $ECHO_C" >&6; }
13699 cat >conftest.$ac_ext <<_ACEOF
13700 /* confdefs.h. */
13701 _ACEOF
13702 cat confdefs.h >>conftest.$ac_ext
13703 cat >>conftest.$ac_ext <<_ACEOF
13704 /* end confdefs.h. */
13705 #include <jerror.h>
13706 _ACEOF
13707 if { (ac_try="$ac_cpp conftest.$ac_ext"
13708 case "(($ac_try" in
13709 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13710 *) ac_try_echo=$ac_try;;
13711 esac
13712 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13713 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
13714 ac_status=$?
13715 grep -v '^ *+' conftest.er1 >conftest.err
13716 rm -f conftest.er1
13717 cat conftest.err >&5
13718 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13719 (exit $ac_status); } >/dev/null && {
13720 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
13721 test ! -s conftest.err
13722 }; then
13723 ac_header_preproc=yes
13724 else
13725 echo "$as_me: failed program was:" >&5
13726 sed 's/^/| /' conftest.$ac_ext >&5
13728 ac_header_preproc=no
13731 rm -f conftest.err conftest.$ac_ext
13732 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
13733 echo "${ECHO_T}$ac_header_preproc" >&6; }
13735 # So? What about this header?
13736 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
13737 yes:no: )
13738 { echo "$as_me:$LINENO: WARNING: jerror.h: accepted by the compiler, rejected by the preprocessor!" >&5
13739 echo "$as_me: WARNING: jerror.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
13740 { echo "$as_me:$LINENO: WARNING: jerror.h: proceeding with the compiler's result" >&5
13741 echo "$as_me: WARNING: jerror.h: proceeding with the compiler's result" >&2;}
13742 ac_header_preproc=yes
13744 no:yes:* )
13745 { echo "$as_me:$LINENO: WARNING: jerror.h: present but cannot be compiled" >&5
13746 echo "$as_me: WARNING: jerror.h: present but cannot be compiled" >&2;}
13747 { echo "$as_me:$LINENO: WARNING: jerror.h: check for missing prerequisite headers?" >&5
13748 echo "$as_me: WARNING: jerror.h: check for missing prerequisite headers?" >&2;}
13749 { echo "$as_me:$LINENO: WARNING: jerror.h: see the Autoconf documentation" >&5
13750 echo "$as_me: WARNING: jerror.h: see the Autoconf documentation" >&2;}
13751 { echo "$as_me:$LINENO: WARNING: jerror.h: section \"Present But Cannot Be Compiled\"" >&5
13752 echo "$as_me: WARNING: jerror.h: section \"Present But Cannot Be Compiled\"" >&2;}
13753 { echo "$as_me:$LINENO: WARNING: jerror.h: proceeding with the preprocessor's result" >&5
13754 echo "$as_me: WARNING: jerror.h: proceeding with the preprocessor's result" >&2;}
13755 { echo "$as_me:$LINENO: WARNING: jerror.h: in the future, the compiler will take precedence" >&5
13756 echo "$as_me: WARNING: jerror.h: in the future, the compiler will take precedence" >&2;}
13759 esac
13760 { echo "$as_me:$LINENO: checking for jerror.h" >&5
13761 echo $ECHO_N "checking for jerror.h... $ECHO_C" >&6; }
13762 if test "${ac_cv_header_jerror_h+set}" = set; then
13763 echo $ECHO_N "(cached) $ECHO_C" >&6
13764 else
13765 ac_cv_header_jerror_h=$ac_header_preproc
13767 { echo "$as_me:$LINENO: result: $ac_cv_header_jerror_h" >&5
13768 echo "${ECHO_T}$ac_cv_header_jerror_h" >&6; }
13771 if test $ac_cv_header_jerror_h = yes; then
13772 { echo "$as_me:$LINENO: checking for jpeg_destroy_compress in -ljpeg" >&5
13773 echo $ECHO_N "checking for jpeg_destroy_compress in -ljpeg... $ECHO_C" >&6; }
13774 if test "${ac_cv_lib_jpeg_jpeg_destroy_compress+set}" = set; then
13775 echo $ECHO_N "(cached) $ECHO_C" >&6
13776 else
13777 ac_check_lib_save_LIBS=$LIBS
13778 LIBS="-ljpeg $LIBS"
13779 cat >conftest.$ac_ext <<_ACEOF
13780 /* confdefs.h. */
13781 _ACEOF
13782 cat confdefs.h >>conftest.$ac_ext
13783 cat >>conftest.$ac_ext <<_ACEOF
13784 /* end confdefs.h. */
13786 /* Override any GCC internal prototype to avoid an error.
13787 Use char because int might match the return type of a GCC
13788 builtin and then its argument prototype would still apply. */
13789 #ifdef __cplusplus
13790 extern "C"
13791 #endif
13792 char jpeg_destroy_compress ();
13794 main ()
13796 return jpeg_destroy_compress ();
13798 return 0;
13800 _ACEOF
13801 rm -f conftest.$ac_objext conftest$ac_exeext
13802 if { (ac_try="$ac_link"
13803 case "(($ac_try" in
13804 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13805 *) ac_try_echo=$ac_try;;
13806 esac
13807 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13808 (eval "$ac_link") 2>conftest.er1
13809 ac_status=$?
13810 grep -v '^ *+' conftest.er1 >conftest.err
13811 rm -f conftest.er1
13812 cat conftest.err >&5
13813 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13814 (exit $ac_status); } && {
13815 test -z "$ac_c_werror_flag" ||
13816 test ! -s conftest.err
13817 } && test -s conftest$ac_exeext &&
13818 $as_test_x conftest$ac_exeext; then
13819 ac_cv_lib_jpeg_jpeg_destroy_compress=yes
13820 else
13821 echo "$as_me: failed program was:" >&5
13822 sed 's/^/| /' conftest.$ac_ext >&5
13824 ac_cv_lib_jpeg_jpeg_destroy_compress=no
13827 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
13828 conftest$ac_exeext conftest.$ac_ext
13829 LIBS=$ac_check_lib_save_LIBS
13831 { echo "$as_me:$LINENO: result: $ac_cv_lib_jpeg_jpeg_destroy_compress" >&5
13832 echo "${ECHO_T}$ac_cv_lib_jpeg_jpeg_destroy_compress" >&6; }
13833 if test $ac_cv_lib_jpeg_jpeg_destroy_compress = yes; then
13834 HAVE_JPEG=yes
13843 if test "${HAVE_JPEG}" = "yes"; then
13844 cat >>confdefs.h <<\_ACEOF
13845 #define HAVE_JPEG 1
13846 _ACEOF
13848 cat >conftest.$ac_ext <<_ACEOF
13849 /* confdefs.h. */
13850 _ACEOF
13851 cat confdefs.h >>conftest.$ac_ext
13852 cat >>conftest.$ac_ext <<_ACEOF
13853 /* end confdefs.h. */
13854 #include <jpeglib.h>
13855 version=JPEG_LIB_VERSION
13857 _ACEOF
13858 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
13859 $EGREP "version= *(6[2-9]|[7-9][0-9])" >/dev/null 2>&1; then
13860 cat >>confdefs.h <<\_ACEOF
13861 #define HAVE_JPEG 1
13862 _ACEOF
13864 else
13865 { echo "$as_me:$LINENO: WARNING: libjpeg found, but not version 6b or later" >&5
13866 echo "$as_me: WARNING: libjpeg found, but not version 6b or later" >&2;}
13867 HAVE_JPEG=no
13869 rm -f conftest*
13874 ### Use -lpng if available, unless `--with-png=no'.
13875 HAVE_PNG=no
13876 if test "${HAVE_X11}" = "yes"; then
13877 if test "${with_png}" != "no"; then
13878 # Debian unstable as of July 2003 has multiple libpngs, and puts png.h
13879 # in /usr/include/libpng.
13882 for ac_header in png.h libpng/png.h
13884 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
13885 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
13886 { echo "$as_me:$LINENO: checking for $ac_header" >&5
13887 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
13888 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
13889 echo $ECHO_N "(cached) $ECHO_C" >&6
13891 ac_res=`eval echo '${'$as_ac_Header'}'`
13892 { echo "$as_me:$LINENO: result: $ac_res" >&5
13893 echo "${ECHO_T}$ac_res" >&6; }
13894 else
13895 # Is the header compilable?
13896 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
13897 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
13898 cat >conftest.$ac_ext <<_ACEOF
13899 /* confdefs.h. */
13900 _ACEOF
13901 cat confdefs.h >>conftest.$ac_ext
13902 cat >>conftest.$ac_ext <<_ACEOF
13903 /* end confdefs.h. */
13904 $ac_includes_default
13905 #include <$ac_header>
13906 _ACEOF
13907 rm -f conftest.$ac_objext
13908 if { (ac_try="$ac_compile"
13909 case "(($ac_try" in
13910 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13911 *) ac_try_echo=$ac_try;;
13912 esac
13913 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13914 (eval "$ac_compile") 2>conftest.er1
13915 ac_status=$?
13916 grep -v '^ *+' conftest.er1 >conftest.err
13917 rm -f conftest.er1
13918 cat conftest.err >&5
13919 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13920 (exit $ac_status); } && {
13921 test -z "$ac_c_werror_flag" ||
13922 test ! -s conftest.err
13923 } && test -s conftest.$ac_objext; then
13924 ac_header_compiler=yes
13925 else
13926 echo "$as_me: failed program was:" >&5
13927 sed 's/^/| /' conftest.$ac_ext >&5
13929 ac_header_compiler=no
13932 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13933 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
13934 echo "${ECHO_T}$ac_header_compiler" >&6; }
13936 # Is the header present?
13937 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
13938 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
13939 cat >conftest.$ac_ext <<_ACEOF
13940 /* confdefs.h. */
13941 _ACEOF
13942 cat confdefs.h >>conftest.$ac_ext
13943 cat >>conftest.$ac_ext <<_ACEOF
13944 /* end confdefs.h. */
13945 #include <$ac_header>
13946 _ACEOF
13947 if { (ac_try="$ac_cpp conftest.$ac_ext"
13948 case "(($ac_try" in
13949 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13950 *) ac_try_echo=$ac_try;;
13951 esac
13952 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13953 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
13954 ac_status=$?
13955 grep -v '^ *+' conftest.er1 >conftest.err
13956 rm -f conftest.er1
13957 cat conftest.err >&5
13958 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13959 (exit $ac_status); } >/dev/null && {
13960 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
13961 test ! -s conftest.err
13962 }; then
13963 ac_header_preproc=yes
13964 else
13965 echo "$as_me: failed program was:" >&5
13966 sed 's/^/| /' conftest.$ac_ext >&5
13968 ac_header_preproc=no
13971 rm -f conftest.err conftest.$ac_ext
13972 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
13973 echo "${ECHO_T}$ac_header_preproc" >&6; }
13975 # So? What about this header?
13976 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
13977 yes:no: )
13978 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
13979 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
13980 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
13981 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
13982 ac_header_preproc=yes
13984 no:yes:* )
13985 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
13986 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
13987 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
13988 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
13989 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
13990 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
13991 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
13992 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
13993 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
13994 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
13995 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
13996 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
13999 esac
14000 { echo "$as_me:$LINENO: checking for $ac_header" >&5
14001 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
14002 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
14003 echo $ECHO_N "(cached) $ECHO_C" >&6
14004 else
14005 eval "$as_ac_Header=\$ac_header_preproc"
14007 ac_res=`eval echo '${'$as_ac_Header'}'`
14008 { echo "$as_me:$LINENO: result: $ac_res" >&5
14009 echo "${ECHO_T}$ac_res" >&6; }
14012 if test `eval echo '${'$as_ac_Header'}'` = yes; then
14013 cat >>confdefs.h <<_ACEOF
14014 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
14015 _ACEOF
14019 done
14021 if test "$ac_cv_header_png_h" = yes || test "$ac_cv_header_libpng_png_h" = yes ; then
14022 { echo "$as_me:$LINENO: checking for png_get_channels in -lpng" >&5
14023 echo $ECHO_N "checking for png_get_channels in -lpng... $ECHO_C" >&6; }
14024 if test "${ac_cv_lib_png_png_get_channels+set}" = set; then
14025 echo $ECHO_N "(cached) $ECHO_C" >&6
14026 else
14027 ac_check_lib_save_LIBS=$LIBS
14028 LIBS="-lpng -lz -lm $LIBS"
14029 cat >conftest.$ac_ext <<_ACEOF
14030 /* confdefs.h. */
14031 _ACEOF
14032 cat confdefs.h >>conftest.$ac_ext
14033 cat >>conftest.$ac_ext <<_ACEOF
14034 /* end confdefs.h. */
14036 /* Override any GCC internal prototype to avoid an error.
14037 Use char because int might match the return type of a GCC
14038 builtin and then its argument prototype would still apply. */
14039 #ifdef __cplusplus
14040 extern "C"
14041 #endif
14042 char png_get_channels ();
14044 main ()
14046 return png_get_channels ();
14048 return 0;
14050 _ACEOF
14051 rm -f conftest.$ac_objext conftest$ac_exeext
14052 if { (ac_try="$ac_link"
14053 case "(($ac_try" in
14054 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14055 *) ac_try_echo=$ac_try;;
14056 esac
14057 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14058 (eval "$ac_link") 2>conftest.er1
14059 ac_status=$?
14060 grep -v '^ *+' conftest.er1 >conftest.err
14061 rm -f conftest.er1
14062 cat conftest.err >&5
14063 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14064 (exit $ac_status); } && {
14065 test -z "$ac_c_werror_flag" ||
14066 test ! -s conftest.err
14067 } && test -s conftest$ac_exeext &&
14068 $as_test_x conftest$ac_exeext; then
14069 ac_cv_lib_png_png_get_channels=yes
14070 else
14071 echo "$as_me: failed program was:" >&5
14072 sed 's/^/| /' conftest.$ac_ext >&5
14074 ac_cv_lib_png_png_get_channels=no
14077 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
14078 conftest$ac_exeext conftest.$ac_ext
14079 LIBS=$ac_check_lib_save_LIBS
14081 { echo "$as_me:$LINENO: result: $ac_cv_lib_png_png_get_channels" >&5
14082 echo "${ECHO_T}$ac_cv_lib_png_png_get_channels" >&6; }
14083 if test $ac_cv_lib_png_png_get_channels = yes; then
14084 HAVE_PNG=yes
14090 if test "${HAVE_PNG}" = "yes"; then
14092 cat >>confdefs.h <<\_ACEOF
14093 #define HAVE_PNG 1
14094 _ACEOF
14099 ### Use -ltiff if available, unless `--with-tiff=no'.
14100 HAVE_TIFF=no
14101 if test "${HAVE_X11}" = "yes"; then
14102 if test "${with_tiff}" != "no"; then
14103 if test "${ac_cv_header_tiffio_h+set}" = set; then
14104 { echo "$as_me:$LINENO: checking for tiffio.h" >&5
14105 echo $ECHO_N "checking for tiffio.h... $ECHO_C" >&6; }
14106 if test "${ac_cv_header_tiffio_h+set}" = set; then
14107 echo $ECHO_N "(cached) $ECHO_C" >&6
14109 { echo "$as_me:$LINENO: result: $ac_cv_header_tiffio_h" >&5
14110 echo "${ECHO_T}$ac_cv_header_tiffio_h" >&6; }
14111 else
14112 # Is the header compilable?
14113 { echo "$as_me:$LINENO: checking tiffio.h usability" >&5
14114 echo $ECHO_N "checking tiffio.h usability... $ECHO_C" >&6; }
14115 cat >conftest.$ac_ext <<_ACEOF
14116 /* confdefs.h. */
14117 _ACEOF
14118 cat confdefs.h >>conftest.$ac_ext
14119 cat >>conftest.$ac_ext <<_ACEOF
14120 /* end confdefs.h. */
14121 $ac_includes_default
14122 #include <tiffio.h>
14123 _ACEOF
14124 rm -f conftest.$ac_objext
14125 if { (ac_try="$ac_compile"
14126 case "(($ac_try" in
14127 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14128 *) ac_try_echo=$ac_try;;
14129 esac
14130 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14131 (eval "$ac_compile") 2>conftest.er1
14132 ac_status=$?
14133 grep -v '^ *+' conftest.er1 >conftest.err
14134 rm -f conftest.er1
14135 cat conftest.err >&5
14136 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14137 (exit $ac_status); } && {
14138 test -z "$ac_c_werror_flag" ||
14139 test ! -s conftest.err
14140 } && test -s conftest.$ac_objext; then
14141 ac_header_compiler=yes
14142 else
14143 echo "$as_me: failed program was:" >&5
14144 sed 's/^/| /' conftest.$ac_ext >&5
14146 ac_header_compiler=no
14149 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14150 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
14151 echo "${ECHO_T}$ac_header_compiler" >&6; }
14153 # Is the header present?
14154 { echo "$as_me:$LINENO: checking tiffio.h presence" >&5
14155 echo $ECHO_N "checking tiffio.h presence... $ECHO_C" >&6; }
14156 cat >conftest.$ac_ext <<_ACEOF
14157 /* confdefs.h. */
14158 _ACEOF
14159 cat confdefs.h >>conftest.$ac_ext
14160 cat >>conftest.$ac_ext <<_ACEOF
14161 /* end confdefs.h. */
14162 #include <tiffio.h>
14163 _ACEOF
14164 if { (ac_try="$ac_cpp conftest.$ac_ext"
14165 case "(($ac_try" in
14166 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14167 *) ac_try_echo=$ac_try;;
14168 esac
14169 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14170 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
14171 ac_status=$?
14172 grep -v '^ *+' conftest.er1 >conftest.err
14173 rm -f conftest.er1
14174 cat conftest.err >&5
14175 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14176 (exit $ac_status); } >/dev/null && {
14177 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
14178 test ! -s conftest.err
14179 }; then
14180 ac_header_preproc=yes
14181 else
14182 echo "$as_me: failed program was:" >&5
14183 sed 's/^/| /' conftest.$ac_ext >&5
14185 ac_header_preproc=no
14188 rm -f conftest.err conftest.$ac_ext
14189 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
14190 echo "${ECHO_T}$ac_header_preproc" >&6; }
14192 # So? What about this header?
14193 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
14194 yes:no: )
14195 { echo "$as_me:$LINENO: WARNING: tiffio.h: accepted by the compiler, rejected by the preprocessor!" >&5
14196 echo "$as_me: WARNING: tiffio.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
14197 { echo "$as_me:$LINENO: WARNING: tiffio.h: proceeding with the compiler's result" >&5
14198 echo "$as_me: WARNING: tiffio.h: proceeding with the compiler's result" >&2;}
14199 ac_header_preproc=yes
14201 no:yes:* )
14202 { echo "$as_me:$LINENO: WARNING: tiffio.h: present but cannot be compiled" >&5
14203 echo "$as_me: WARNING: tiffio.h: present but cannot be compiled" >&2;}
14204 { echo "$as_me:$LINENO: WARNING: tiffio.h: check for missing prerequisite headers?" >&5
14205 echo "$as_me: WARNING: tiffio.h: check for missing prerequisite headers?" >&2;}
14206 { echo "$as_me:$LINENO: WARNING: tiffio.h: see the Autoconf documentation" >&5
14207 echo "$as_me: WARNING: tiffio.h: see the Autoconf documentation" >&2;}
14208 { echo "$as_me:$LINENO: WARNING: tiffio.h: section \"Present But Cannot Be Compiled\"" >&5
14209 echo "$as_me: WARNING: tiffio.h: section \"Present But Cannot Be Compiled\"" >&2;}
14210 { echo "$as_me:$LINENO: WARNING: tiffio.h: proceeding with the preprocessor's result" >&5
14211 echo "$as_me: WARNING: tiffio.h: proceeding with the preprocessor's result" >&2;}
14212 { echo "$as_me:$LINENO: WARNING: tiffio.h: in the future, the compiler will take precedence" >&5
14213 echo "$as_me: WARNING: tiffio.h: in the future, the compiler will take precedence" >&2;}
14216 esac
14217 { echo "$as_me:$LINENO: checking for tiffio.h" >&5
14218 echo $ECHO_N "checking for tiffio.h... $ECHO_C" >&6; }
14219 if test "${ac_cv_header_tiffio_h+set}" = set; then
14220 echo $ECHO_N "(cached) $ECHO_C" >&6
14221 else
14222 ac_cv_header_tiffio_h=$ac_header_preproc
14224 { echo "$as_me:$LINENO: result: $ac_cv_header_tiffio_h" >&5
14225 echo "${ECHO_T}$ac_cv_header_tiffio_h" >&6; }
14228 if test $ac_cv_header_tiffio_h = yes; then
14229 tifflibs="-lz -lm"
14230 # At least one tiff package requires the jpeg library.
14231 if test "${HAVE_JPEG}" = yes; then tifflibs="-ljpeg $tifflibs"; fi
14232 { echo "$as_me:$LINENO: checking for TIFFGetVersion in -ltiff" >&5
14233 echo $ECHO_N "checking for TIFFGetVersion in -ltiff... $ECHO_C" >&6; }
14234 if test "${ac_cv_lib_tiff_TIFFGetVersion+set}" = set; then
14235 echo $ECHO_N "(cached) $ECHO_C" >&6
14236 else
14237 ac_check_lib_save_LIBS=$LIBS
14238 LIBS="-ltiff $tifflibs $LIBS"
14239 cat >conftest.$ac_ext <<_ACEOF
14240 /* confdefs.h. */
14241 _ACEOF
14242 cat confdefs.h >>conftest.$ac_ext
14243 cat >>conftest.$ac_ext <<_ACEOF
14244 /* end confdefs.h. */
14246 /* Override any GCC internal prototype to avoid an error.
14247 Use char because int might match the return type of a GCC
14248 builtin and then its argument prototype would still apply. */
14249 #ifdef __cplusplus
14250 extern "C"
14251 #endif
14252 char TIFFGetVersion ();
14254 main ()
14256 return TIFFGetVersion ();
14258 return 0;
14260 _ACEOF
14261 rm -f conftest.$ac_objext conftest$ac_exeext
14262 if { (ac_try="$ac_link"
14263 case "(($ac_try" in
14264 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14265 *) ac_try_echo=$ac_try;;
14266 esac
14267 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14268 (eval "$ac_link") 2>conftest.er1
14269 ac_status=$?
14270 grep -v '^ *+' conftest.er1 >conftest.err
14271 rm -f conftest.er1
14272 cat conftest.err >&5
14273 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14274 (exit $ac_status); } && {
14275 test -z "$ac_c_werror_flag" ||
14276 test ! -s conftest.err
14277 } && test -s conftest$ac_exeext &&
14278 $as_test_x conftest$ac_exeext; then
14279 ac_cv_lib_tiff_TIFFGetVersion=yes
14280 else
14281 echo "$as_me: failed program was:" >&5
14282 sed 's/^/| /' conftest.$ac_ext >&5
14284 ac_cv_lib_tiff_TIFFGetVersion=no
14287 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
14288 conftest$ac_exeext conftest.$ac_ext
14289 LIBS=$ac_check_lib_save_LIBS
14291 { echo "$as_me:$LINENO: result: $ac_cv_lib_tiff_TIFFGetVersion" >&5
14292 echo "${ECHO_T}$ac_cv_lib_tiff_TIFFGetVersion" >&6; }
14293 if test $ac_cv_lib_tiff_TIFFGetVersion = yes; then
14294 HAVE_TIFF=yes
14302 if test "${HAVE_TIFF}" = "yes"; then
14304 cat >>confdefs.h <<\_ACEOF
14305 #define HAVE_TIFF 1
14306 _ACEOF
14311 ### Use -lgif or -lungif if available, unless `--with-gif=no'.
14312 HAVE_GIF=no
14313 if test "${HAVE_X11}" = "yes" && test "${with_gif}" != "no"; then
14314 if test "${ac_cv_header_gif_lib_h+set}" = set; then
14315 { echo "$as_me:$LINENO: checking for gif_lib.h" >&5
14316 echo $ECHO_N "checking for gif_lib.h... $ECHO_C" >&6; }
14317 if test "${ac_cv_header_gif_lib_h+set}" = set; then
14318 echo $ECHO_N "(cached) $ECHO_C" >&6
14320 { echo "$as_me:$LINENO: result: $ac_cv_header_gif_lib_h" >&5
14321 echo "${ECHO_T}$ac_cv_header_gif_lib_h" >&6; }
14322 else
14323 # Is the header compilable?
14324 { echo "$as_me:$LINENO: checking gif_lib.h usability" >&5
14325 echo $ECHO_N "checking gif_lib.h usability... $ECHO_C" >&6; }
14326 cat >conftest.$ac_ext <<_ACEOF
14327 /* confdefs.h. */
14328 _ACEOF
14329 cat confdefs.h >>conftest.$ac_ext
14330 cat >>conftest.$ac_ext <<_ACEOF
14331 /* end confdefs.h. */
14332 $ac_includes_default
14333 #include <gif_lib.h>
14334 _ACEOF
14335 rm -f conftest.$ac_objext
14336 if { (ac_try="$ac_compile"
14337 case "(($ac_try" in
14338 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14339 *) ac_try_echo=$ac_try;;
14340 esac
14341 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14342 (eval "$ac_compile") 2>conftest.er1
14343 ac_status=$?
14344 grep -v '^ *+' conftest.er1 >conftest.err
14345 rm -f conftest.er1
14346 cat conftest.err >&5
14347 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14348 (exit $ac_status); } && {
14349 test -z "$ac_c_werror_flag" ||
14350 test ! -s conftest.err
14351 } && test -s conftest.$ac_objext; then
14352 ac_header_compiler=yes
14353 else
14354 echo "$as_me: failed program was:" >&5
14355 sed 's/^/| /' conftest.$ac_ext >&5
14357 ac_header_compiler=no
14360 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14361 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
14362 echo "${ECHO_T}$ac_header_compiler" >&6; }
14364 # Is the header present?
14365 { echo "$as_me:$LINENO: checking gif_lib.h presence" >&5
14366 echo $ECHO_N "checking gif_lib.h presence... $ECHO_C" >&6; }
14367 cat >conftest.$ac_ext <<_ACEOF
14368 /* confdefs.h. */
14369 _ACEOF
14370 cat confdefs.h >>conftest.$ac_ext
14371 cat >>conftest.$ac_ext <<_ACEOF
14372 /* end confdefs.h. */
14373 #include <gif_lib.h>
14374 _ACEOF
14375 if { (ac_try="$ac_cpp conftest.$ac_ext"
14376 case "(($ac_try" in
14377 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14378 *) ac_try_echo=$ac_try;;
14379 esac
14380 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14381 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
14382 ac_status=$?
14383 grep -v '^ *+' conftest.er1 >conftest.err
14384 rm -f conftest.er1
14385 cat conftest.err >&5
14386 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14387 (exit $ac_status); } >/dev/null && {
14388 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
14389 test ! -s conftest.err
14390 }; then
14391 ac_header_preproc=yes
14392 else
14393 echo "$as_me: failed program was:" >&5
14394 sed 's/^/| /' conftest.$ac_ext >&5
14396 ac_header_preproc=no
14399 rm -f conftest.err conftest.$ac_ext
14400 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
14401 echo "${ECHO_T}$ac_header_preproc" >&6; }
14403 # So? What about this header?
14404 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
14405 yes:no: )
14406 { echo "$as_me:$LINENO: WARNING: gif_lib.h: accepted by the compiler, rejected by the preprocessor!" >&5
14407 echo "$as_me: WARNING: gif_lib.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
14408 { echo "$as_me:$LINENO: WARNING: gif_lib.h: proceeding with the compiler's result" >&5
14409 echo "$as_me: WARNING: gif_lib.h: proceeding with the compiler's result" >&2;}
14410 ac_header_preproc=yes
14412 no:yes:* )
14413 { echo "$as_me:$LINENO: WARNING: gif_lib.h: present but cannot be compiled" >&5
14414 echo "$as_me: WARNING: gif_lib.h: present but cannot be compiled" >&2;}
14415 { echo "$as_me:$LINENO: WARNING: gif_lib.h: check for missing prerequisite headers?" >&5
14416 echo "$as_me: WARNING: gif_lib.h: check for missing prerequisite headers?" >&2;}
14417 { echo "$as_me:$LINENO: WARNING: gif_lib.h: see the Autoconf documentation" >&5
14418 echo "$as_me: WARNING: gif_lib.h: see the Autoconf documentation" >&2;}
14419 { echo "$as_me:$LINENO: WARNING: gif_lib.h: section \"Present But Cannot Be Compiled\"" >&5
14420 echo "$as_me: WARNING: gif_lib.h: section \"Present But Cannot Be Compiled\"" >&2;}
14421 { echo "$as_me:$LINENO: WARNING: gif_lib.h: proceeding with the preprocessor's result" >&5
14422 echo "$as_me: WARNING: gif_lib.h: proceeding with the preprocessor's result" >&2;}
14423 { echo "$as_me:$LINENO: WARNING: gif_lib.h: in the future, the compiler will take precedence" >&5
14424 echo "$as_me: WARNING: gif_lib.h: in the future, the compiler will take precedence" >&2;}
14427 esac
14428 { echo "$as_me:$LINENO: checking for gif_lib.h" >&5
14429 echo $ECHO_N "checking for gif_lib.h... $ECHO_C" >&6; }
14430 if test "${ac_cv_header_gif_lib_h+set}" = set; then
14431 echo $ECHO_N "(cached) $ECHO_C" >&6
14432 else
14433 ac_cv_header_gif_lib_h=$ac_header_preproc
14435 { echo "$as_me:$LINENO: result: $ac_cv_header_gif_lib_h" >&5
14436 echo "${ECHO_T}$ac_cv_header_gif_lib_h" >&6; }
14439 if test $ac_cv_header_gif_lib_h = yes; then
14440 # EGifPutExtensionLast only exists from version libungif-4.1.0b1.
14441 # Earlier versions can crash Emacs.
14442 { echo "$as_me:$LINENO: checking for EGifPutExtensionLast in -lgif" >&5
14443 echo $ECHO_N "checking for EGifPutExtensionLast in -lgif... $ECHO_C" >&6; }
14444 if test "${ac_cv_lib_gif_EGifPutExtensionLast+set}" = set; then
14445 echo $ECHO_N "(cached) $ECHO_C" >&6
14446 else
14447 ac_check_lib_save_LIBS=$LIBS
14448 LIBS="-lgif $LIBS"
14449 cat >conftest.$ac_ext <<_ACEOF
14450 /* confdefs.h. */
14451 _ACEOF
14452 cat confdefs.h >>conftest.$ac_ext
14453 cat >>conftest.$ac_ext <<_ACEOF
14454 /* end confdefs.h. */
14456 /* Override any GCC internal prototype to avoid an error.
14457 Use char because int might match the return type of a GCC
14458 builtin and then its argument prototype would still apply. */
14459 #ifdef __cplusplus
14460 extern "C"
14461 #endif
14462 char EGifPutExtensionLast ();
14464 main ()
14466 return EGifPutExtensionLast ();
14468 return 0;
14470 _ACEOF
14471 rm -f conftest.$ac_objext conftest$ac_exeext
14472 if { (ac_try="$ac_link"
14473 case "(($ac_try" in
14474 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14475 *) ac_try_echo=$ac_try;;
14476 esac
14477 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14478 (eval "$ac_link") 2>conftest.er1
14479 ac_status=$?
14480 grep -v '^ *+' conftest.er1 >conftest.err
14481 rm -f conftest.er1
14482 cat conftest.err >&5
14483 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14484 (exit $ac_status); } && {
14485 test -z "$ac_c_werror_flag" ||
14486 test ! -s conftest.err
14487 } && test -s conftest$ac_exeext &&
14488 $as_test_x conftest$ac_exeext; then
14489 ac_cv_lib_gif_EGifPutExtensionLast=yes
14490 else
14491 echo "$as_me: failed program was:" >&5
14492 sed 's/^/| /' conftest.$ac_ext >&5
14494 ac_cv_lib_gif_EGifPutExtensionLast=no
14497 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
14498 conftest$ac_exeext conftest.$ac_ext
14499 LIBS=$ac_check_lib_save_LIBS
14501 { echo "$as_me:$LINENO: result: $ac_cv_lib_gif_EGifPutExtensionLast" >&5
14502 echo "${ECHO_T}$ac_cv_lib_gif_EGifPutExtensionLast" >&6; }
14503 if test $ac_cv_lib_gif_EGifPutExtensionLast = yes; then
14504 HAVE_GIF=yes
14505 else
14506 try_libungif=yes
14513 if test "$HAVE_GIF" = yes; then
14514 ac_gif_lib_name="-lgif"
14517 # If gif_lib.h but no libgif, try libungif.
14518 if test x"$try_libungif" = xyes; then
14519 { echo "$as_me:$LINENO: checking for EGifPutExtensionLast in -lungif" >&5
14520 echo $ECHO_N "checking for EGifPutExtensionLast in -lungif... $ECHO_C" >&6; }
14521 if test "${ac_cv_lib_ungif_EGifPutExtensionLast+set}" = set; then
14522 echo $ECHO_N "(cached) $ECHO_C" >&6
14523 else
14524 ac_check_lib_save_LIBS=$LIBS
14525 LIBS="-lungif $LIBS"
14526 cat >conftest.$ac_ext <<_ACEOF
14527 /* confdefs.h. */
14528 _ACEOF
14529 cat confdefs.h >>conftest.$ac_ext
14530 cat >>conftest.$ac_ext <<_ACEOF
14531 /* end confdefs.h. */
14533 /* Override any GCC internal prototype to avoid an error.
14534 Use char because int might match the return type of a GCC
14535 builtin and then its argument prototype would still apply. */
14536 #ifdef __cplusplus
14537 extern "C"
14538 #endif
14539 char EGifPutExtensionLast ();
14541 main ()
14543 return EGifPutExtensionLast ();
14545 return 0;
14547 _ACEOF
14548 rm -f conftest.$ac_objext conftest$ac_exeext
14549 if { (ac_try="$ac_link"
14550 case "(($ac_try" in
14551 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14552 *) ac_try_echo=$ac_try;;
14553 esac
14554 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14555 (eval "$ac_link") 2>conftest.er1
14556 ac_status=$?
14557 grep -v '^ *+' conftest.er1 >conftest.err
14558 rm -f conftest.er1
14559 cat conftest.err >&5
14560 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14561 (exit $ac_status); } && {
14562 test -z "$ac_c_werror_flag" ||
14563 test ! -s conftest.err
14564 } && test -s conftest$ac_exeext &&
14565 $as_test_x conftest$ac_exeext; then
14566 ac_cv_lib_ungif_EGifPutExtensionLast=yes
14567 else
14568 echo "$as_me: failed program was:" >&5
14569 sed 's/^/| /' conftest.$ac_ext >&5
14571 ac_cv_lib_ungif_EGifPutExtensionLast=no
14574 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
14575 conftest$ac_exeext conftest.$ac_ext
14576 LIBS=$ac_check_lib_save_LIBS
14578 { echo "$as_me:$LINENO: result: $ac_cv_lib_ungif_EGifPutExtensionLast" >&5
14579 echo "${ECHO_T}$ac_cv_lib_ungif_EGifPutExtensionLast" >&6; }
14580 if test $ac_cv_lib_ungif_EGifPutExtensionLast = yes; then
14581 HAVE_GIF=yes
14585 if test "$HAVE_GIF" = yes; then
14587 cat >>confdefs.h <<\_ACEOF
14588 #define LIBGIF -lungif
14589 _ACEOF
14591 ac_gif_lib_name="-lungif"
14595 if test "${HAVE_GIF}" = "yes"; then
14597 cat >>confdefs.h <<\_ACEOF
14598 #define HAVE_GIF 1
14599 _ACEOF
14604 if test "${HAVE_X11}" = "yes"; then
14605 MISSING=""
14606 WITH_NO=""
14607 test "${with_xpm}" != "no" && test "${HAVE_XPM}" != "yes" &&
14608 MISSING="libXpm" && WITH_NO="--with-xpm=no"
14609 test "${with_jpeg}" != "no" && test "${HAVE_JPEG}" != "yes" &&
14610 MISSING="$MISSING libjpeg" && WITH_NO="$WITH_NO --with-jpeg=no"
14611 test "${with_png}" != "no" && test "${HAVE_PNG}" != "yes" &&
14612 MISSING="$MISSING libpng" && WITH_NO="$WITH_NO --with-png=no"
14613 test "${with_gif}" != "no" && test "${HAVE_GIF}" != "yes" &&
14614 MISSING="$MISSING libgif/libungif" && WITH_NO="$WITH_NO --with-gif=no"
14615 test "${with_tiff}" != "no" && test "${HAVE_TIFF}" != "yes" &&
14616 MISSING="$MISSING libtiff" && WITH_NO="$WITH_NO --with-tiff=no"
14618 if test "X${MISSING}" != X; then
14619 { { echo "$as_me:$LINENO: error: The following required libraries were not found:
14620 $MISSING
14621 Maybe some development libraries/packages are missing?
14622 If you don't want to link with them give
14623 $WITH_NO
14624 as options to configure" >&5
14625 echo "$as_me: error: The following required libraries were not found:
14626 $MISSING
14627 Maybe some development libraries/packages are missing?
14628 If you don't want to link with them give
14629 $WITH_NO
14630 as options to configure" >&2;}
14631 { (exit 1); exit 1; }; }
14635 ### Use -lgpm if available, unless `--with-gpm=no'.
14636 HAVE_GPM=no
14637 if test "${with_gpm}" != "no"; then
14638 if test "${ac_cv_header_gpm_h+set}" = set; then
14639 { echo "$as_me:$LINENO: checking for gpm.h" >&5
14640 echo $ECHO_N "checking for gpm.h... $ECHO_C" >&6; }
14641 if test "${ac_cv_header_gpm_h+set}" = set; then
14642 echo $ECHO_N "(cached) $ECHO_C" >&6
14644 { echo "$as_me:$LINENO: result: $ac_cv_header_gpm_h" >&5
14645 echo "${ECHO_T}$ac_cv_header_gpm_h" >&6; }
14646 else
14647 # Is the header compilable?
14648 { echo "$as_me:$LINENO: checking gpm.h usability" >&5
14649 echo $ECHO_N "checking gpm.h usability... $ECHO_C" >&6; }
14650 cat >conftest.$ac_ext <<_ACEOF
14651 /* confdefs.h. */
14652 _ACEOF
14653 cat confdefs.h >>conftest.$ac_ext
14654 cat >>conftest.$ac_ext <<_ACEOF
14655 /* end confdefs.h. */
14656 $ac_includes_default
14657 #include <gpm.h>
14658 _ACEOF
14659 rm -f conftest.$ac_objext
14660 if { (ac_try="$ac_compile"
14661 case "(($ac_try" in
14662 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14663 *) ac_try_echo=$ac_try;;
14664 esac
14665 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14666 (eval "$ac_compile") 2>conftest.er1
14667 ac_status=$?
14668 grep -v '^ *+' conftest.er1 >conftest.err
14669 rm -f conftest.er1
14670 cat conftest.err >&5
14671 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14672 (exit $ac_status); } && {
14673 test -z "$ac_c_werror_flag" ||
14674 test ! -s conftest.err
14675 } && test -s conftest.$ac_objext; then
14676 ac_header_compiler=yes
14677 else
14678 echo "$as_me: failed program was:" >&5
14679 sed 's/^/| /' conftest.$ac_ext >&5
14681 ac_header_compiler=no
14684 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14685 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
14686 echo "${ECHO_T}$ac_header_compiler" >&6; }
14688 # Is the header present?
14689 { echo "$as_me:$LINENO: checking gpm.h presence" >&5
14690 echo $ECHO_N "checking gpm.h presence... $ECHO_C" >&6; }
14691 cat >conftest.$ac_ext <<_ACEOF
14692 /* confdefs.h. */
14693 _ACEOF
14694 cat confdefs.h >>conftest.$ac_ext
14695 cat >>conftest.$ac_ext <<_ACEOF
14696 /* end confdefs.h. */
14697 #include <gpm.h>
14698 _ACEOF
14699 if { (ac_try="$ac_cpp conftest.$ac_ext"
14700 case "(($ac_try" in
14701 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14702 *) ac_try_echo=$ac_try;;
14703 esac
14704 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14705 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
14706 ac_status=$?
14707 grep -v '^ *+' conftest.er1 >conftest.err
14708 rm -f conftest.er1
14709 cat conftest.err >&5
14710 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14711 (exit $ac_status); } >/dev/null && {
14712 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
14713 test ! -s conftest.err
14714 }; then
14715 ac_header_preproc=yes
14716 else
14717 echo "$as_me: failed program was:" >&5
14718 sed 's/^/| /' conftest.$ac_ext >&5
14720 ac_header_preproc=no
14723 rm -f conftest.err conftest.$ac_ext
14724 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
14725 echo "${ECHO_T}$ac_header_preproc" >&6; }
14727 # So? What about this header?
14728 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
14729 yes:no: )
14730 { echo "$as_me:$LINENO: WARNING: gpm.h: accepted by the compiler, rejected by the preprocessor!" >&5
14731 echo "$as_me: WARNING: gpm.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
14732 { echo "$as_me:$LINENO: WARNING: gpm.h: proceeding with the compiler's result" >&5
14733 echo "$as_me: WARNING: gpm.h: proceeding with the compiler's result" >&2;}
14734 ac_header_preproc=yes
14736 no:yes:* )
14737 { echo "$as_me:$LINENO: WARNING: gpm.h: present but cannot be compiled" >&5
14738 echo "$as_me: WARNING: gpm.h: present but cannot be compiled" >&2;}
14739 { echo "$as_me:$LINENO: WARNING: gpm.h: check for missing prerequisite headers?" >&5
14740 echo "$as_me: WARNING: gpm.h: check for missing prerequisite headers?" >&2;}
14741 { echo "$as_me:$LINENO: WARNING: gpm.h: see the Autoconf documentation" >&5
14742 echo "$as_me: WARNING: gpm.h: see the Autoconf documentation" >&2;}
14743 { echo "$as_me:$LINENO: WARNING: gpm.h: section \"Present But Cannot Be Compiled\"" >&5
14744 echo "$as_me: WARNING: gpm.h: section \"Present But Cannot Be Compiled\"" >&2;}
14745 { echo "$as_me:$LINENO: WARNING: gpm.h: proceeding with the preprocessor's result" >&5
14746 echo "$as_me: WARNING: gpm.h: proceeding with the preprocessor's result" >&2;}
14747 { echo "$as_me:$LINENO: WARNING: gpm.h: in the future, the compiler will take precedence" >&5
14748 echo "$as_me: WARNING: gpm.h: in the future, the compiler will take precedence" >&2;}
14751 esac
14752 { echo "$as_me:$LINENO: checking for gpm.h" >&5
14753 echo $ECHO_N "checking for gpm.h... $ECHO_C" >&6; }
14754 if test "${ac_cv_header_gpm_h+set}" = set; then
14755 echo $ECHO_N "(cached) $ECHO_C" >&6
14756 else
14757 ac_cv_header_gpm_h=$ac_header_preproc
14759 { echo "$as_me:$LINENO: result: $ac_cv_header_gpm_h" >&5
14760 echo "${ECHO_T}$ac_cv_header_gpm_h" >&6; }
14763 if test $ac_cv_header_gpm_h = yes; then
14764 { echo "$as_me:$LINENO: checking for Gpm_Open in -lgpm" >&5
14765 echo $ECHO_N "checking for Gpm_Open in -lgpm... $ECHO_C" >&6; }
14766 if test "${ac_cv_lib_gpm_Gpm_Open+set}" = set; then
14767 echo $ECHO_N "(cached) $ECHO_C" >&6
14768 else
14769 ac_check_lib_save_LIBS=$LIBS
14770 LIBS="-lgpm $LIBS"
14771 cat >conftest.$ac_ext <<_ACEOF
14772 /* confdefs.h. */
14773 _ACEOF
14774 cat confdefs.h >>conftest.$ac_ext
14775 cat >>conftest.$ac_ext <<_ACEOF
14776 /* end confdefs.h. */
14778 /* Override any GCC internal prototype to avoid an error.
14779 Use char because int might match the return type of a GCC
14780 builtin and then its argument prototype would still apply. */
14781 #ifdef __cplusplus
14782 extern "C"
14783 #endif
14784 char Gpm_Open ();
14786 main ()
14788 return Gpm_Open ();
14790 return 0;
14792 _ACEOF
14793 rm -f conftest.$ac_objext conftest$ac_exeext
14794 if { (ac_try="$ac_link"
14795 case "(($ac_try" in
14796 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14797 *) ac_try_echo=$ac_try;;
14798 esac
14799 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14800 (eval "$ac_link") 2>conftest.er1
14801 ac_status=$?
14802 grep -v '^ *+' conftest.er1 >conftest.err
14803 rm -f conftest.er1
14804 cat conftest.err >&5
14805 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14806 (exit $ac_status); } && {
14807 test -z "$ac_c_werror_flag" ||
14808 test ! -s conftest.err
14809 } && test -s conftest$ac_exeext &&
14810 $as_test_x conftest$ac_exeext; then
14811 ac_cv_lib_gpm_Gpm_Open=yes
14812 else
14813 echo "$as_me: failed program was:" >&5
14814 sed 's/^/| /' conftest.$ac_ext >&5
14816 ac_cv_lib_gpm_Gpm_Open=no
14819 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
14820 conftest$ac_exeext conftest.$ac_ext
14821 LIBS=$ac_check_lib_save_LIBS
14823 { echo "$as_me:$LINENO: result: $ac_cv_lib_gpm_Gpm_Open" >&5
14824 echo "${ECHO_T}$ac_cv_lib_gpm_Gpm_Open" >&6; }
14825 if test $ac_cv_lib_gpm_Gpm_Open = yes; then
14826 HAVE_GPM=yes
14834 if test "${HAVE_GPM}" = "yes"; then
14836 cat >>confdefs.h <<\_ACEOF
14837 #define HAVE_GPM 1
14838 _ACEOF
14842 if test "${ac_cv_header_malloc_malloc_h+set}" = set; then
14843 { echo "$as_me:$LINENO: checking for malloc/malloc.h" >&5
14844 echo $ECHO_N "checking for malloc/malloc.h... $ECHO_C" >&6; }
14845 if test "${ac_cv_header_malloc_malloc_h+set}" = set; then
14846 echo $ECHO_N "(cached) $ECHO_C" >&6
14848 { echo "$as_me:$LINENO: result: $ac_cv_header_malloc_malloc_h" >&5
14849 echo "${ECHO_T}$ac_cv_header_malloc_malloc_h" >&6; }
14850 else
14851 # Is the header compilable?
14852 { echo "$as_me:$LINENO: checking malloc/malloc.h usability" >&5
14853 echo $ECHO_N "checking malloc/malloc.h usability... $ECHO_C" >&6; }
14854 cat >conftest.$ac_ext <<_ACEOF
14855 /* confdefs.h. */
14856 _ACEOF
14857 cat confdefs.h >>conftest.$ac_ext
14858 cat >>conftest.$ac_ext <<_ACEOF
14859 /* end confdefs.h. */
14860 $ac_includes_default
14861 #include <malloc/malloc.h>
14862 _ACEOF
14863 rm -f conftest.$ac_objext
14864 if { (ac_try="$ac_compile"
14865 case "(($ac_try" in
14866 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14867 *) ac_try_echo=$ac_try;;
14868 esac
14869 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14870 (eval "$ac_compile") 2>conftest.er1
14871 ac_status=$?
14872 grep -v '^ *+' conftest.er1 >conftest.err
14873 rm -f conftest.er1
14874 cat conftest.err >&5
14875 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14876 (exit $ac_status); } && {
14877 test -z "$ac_c_werror_flag" ||
14878 test ! -s conftest.err
14879 } && test -s conftest.$ac_objext; then
14880 ac_header_compiler=yes
14881 else
14882 echo "$as_me: failed program was:" >&5
14883 sed 's/^/| /' conftest.$ac_ext >&5
14885 ac_header_compiler=no
14888 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14889 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
14890 echo "${ECHO_T}$ac_header_compiler" >&6; }
14892 # Is the header present?
14893 { echo "$as_me:$LINENO: checking malloc/malloc.h presence" >&5
14894 echo $ECHO_N "checking malloc/malloc.h presence... $ECHO_C" >&6; }
14895 cat >conftest.$ac_ext <<_ACEOF
14896 /* confdefs.h. */
14897 _ACEOF
14898 cat confdefs.h >>conftest.$ac_ext
14899 cat >>conftest.$ac_ext <<_ACEOF
14900 /* end confdefs.h. */
14901 #include <malloc/malloc.h>
14902 _ACEOF
14903 if { (ac_try="$ac_cpp conftest.$ac_ext"
14904 case "(($ac_try" in
14905 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14906 *) ac_try_echo=$ac_try;;
14907 esac
14908 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14909 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
14910 ac_status=$?
14911 grep -v '^ *+' conftest.er1 >conftest.err
14912 rm -f conftest.er1
14913 cat conftest.err >&5
14914 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14915 (exit $ac_status); } >/dev/null && {
14916 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
14917 test ! -s conftest.err
14918 }; then
14919 ac_header_preproc=yes
14920 else
14921 echo "$as_me: failed program was:" >&5
14922 sed 's/^/| /' conftest.$ac_ext >&5
14924 ac_header_preproc=no
14927 rm -f conftest.err conftest.$ac_ext
14928 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
14929 echo "${ECHO_T}$ac_header_preproc" >&6; }
14931 # So? What about this header?
14932 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
14933 yes:no: )
14934 { echo "$as_me:$LINENO: WARNING: malloc/malloc.h: accepted by the compiler, rejected by the preprocessor!" >&5
14935 echo "$as_me: WARNING: malloc/malloc.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
14936 { echo "$as_me:$LINENO: WARNING: malloc/malloc.h: proceeding with the compiler's result" >&5
14937 echo "$as_me: WARNING: malloc/malloc.h: proceeding with the compiler's result" >&2;}
14938 ac_header_preproc=yes
14940 no:yes:* )
14941 { echo "$as_me:$LINENO: WARNING: malloc/malloc.h: present but cannot be compiled" >&5
14942 echo "$as_me: WARNING: malloc/malloc.h: present but cannot be compiled" >&2;}
14943 { echo "$as_me:$LINENO: WARNING: malloc/malloc.h: check for missing prerequisite headers?" >&5
14944 echo "$as_me: WARNING: malloc/malloc.h: check for missing prerequisite headers?" >&2;}
14945 { echo "$as_me:$LINENO: WARNING: malloc/malloc.h: see the Autoconf documentation" >&5
14946 echo "$as_me: WARNING: malloc/malloc.h: see the Autoconf documentation" >&2;}
14947 { echo "$as_me:$LINENO: WARNING: malloc/malloc.h: section \"Present But Cannot Be Compiled\"" >&5
14948 echo "$as_me: WARNING: malloc/malloc.h: section \"Present But Cannot Be Compiled\"" >&2;}
14949 { echo "$as_me:$LINENO: WARNING: malloc/malloc.h: proceeding with the preprocessor's result" >&5
14950 echo "$as_me: WARNING: malloc/malloc.h: proceeding with the preprocessor's result" >&2;}
14951 { echo "$as_me:$LINENO: WARNING: malloc/malloc.h: in the future, the compiler will take precedence" >&5
14952 echo "$as_me: WARNING: malloc/malloc.h: in the future, the compiler will take precedence" >&2;}
14955 esac
14956 { echo "$as_me:$LINENO: checking for malloc/malloc.h" >&5
14957 echo $ECHO_N "checking for malloc/malloc.h... $ECHO_C" >&6; }
14958 if test "${ac_cv_header_malloc_malloc_h+set}" = set; then
14959 echo $ECHO_N "(cached) $ECHO_C" >&6
14960 else
14961 ac_cv_header_malloc_malloc_h=$ac_header_preproc
14963 { echo "$as_me:$LINENO: result: $ac_cv_header_malloc_malloc_h" >&5
14964 echo "${ECHO_T}$ac_cv_header_malloc_malloc_h" >&6; }
14967 if test $ac_cv_header_malloc_malloc_h = yes; then
14969 cat >>confdefs.h <<\_ACEOF
14970 #define HAVE_MALLOC_MALLOC_H 1
14971 _ACEOF
14977 ### Use Mac OS X Carbon API to implement GUI.
14978 if test "${HAVE_CARBON}" = "yes"; then
14980 cat >>confdefs.h <<\_ACEOF
14981 #define HAVE_CARBON 1
14982 _ACEOF
14984 ## Specify the install directory
14985 carbon_appdir=
14986 if test "${carbon_appdir_x}" != ""; then
14987 case ${carbon_appdir_x} in
14988 y | ye | yes) carbon_appdir=/Applications ;;
14989 * ) carbon_appdir=${carbon_appdir_x} ;;
14990 esac
14992 # We also have mouse menus.
14993 HAVE_MENUS=yes
14996 ### Use session management (-lSM -lICE) if available
14997 HAVE_X_SM=no
14998 if test "${HAVE_X11}" = "yes"; then
14999 if test "${ac_cv_header_X11_SM_SMlib_h+set}" = set; then
15000 { echo "$as_me:$LINENO: checking for X11/SM/SMlib.h" >&5
15001 echo $ECHO_N "checking for X11/SM/SMlib.h... $ECHO_C" >&6; }
15002 if test "${ac_cv_header_X11_SM_SMlib_h+set}" = set; then
15003 echo $ECHO_N "(cached) $ECHO_C" >&6
15005 { echo "$as_me:$LINENO: result: $ac_cv_header_X11_SM_SMlib_h" >&5
15006 echo "${ECHO_T}$ac_cv_header_X11_SM_SMlib_h" >&6; }
15007 else
15008 # Is the header compilable?
15009 { echo "$as_me:$LINENO: checking X11/SM/SMlib.h usability" >&5
15010 echo $ECHO_N "checking X11/SM/SMlib.h usability... $ECHO_C" >&6; }
15011 cat >conftest.$ac_ext <<_ACEOF
15012 /* confdefs.h. */
15013 _ACEOF
15014 cat confdefs.h >>conftest.$ac_ext
15015 cat >>conftest.$ac_ext <<_ACEOF
15016 /* end confdefs.h. */
15017 $ac_includes_default
15018 #include <X11/SM/SMlib.h>
15019 _ACEOF
15020 rm -f conftest.$ac_objext
15021 if { (ac_try="$ac_compile"
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_compile") 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); } && {
15034 test -z "$ac_c_werror_flag" ||
15035 test ! -s conftest.err
15036 } && test -s conftest.$ac_objext; then
15037 ac_header_compiler=yes
15038 else
15039 echo "$as_me: failed program was:" >&5
15040 sed 's/^/| /' conftest.$ac_ext >&5
15042 ac_header_compiler=no
15045 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15046 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
15047 echo "${ECHO_T}$ac_header_compiler" >&6; }
15049 # Is the header present?
15050 { echo "$as_me:$LINENO: checking X11/SM/SMlib.h presence" >&5
15051 echo $ECHO_N "checking X11/SM/SMlib.h presence... $ECHO_C" >&6; }
15052 cat >conftest.$ac_ext <<_ACEOF
15053 /* confdefs.h. */
15054 _ACEOF
15055 cat confdefs.h >>conftest.$ac_ext
15056 cat >>conftest.$ac_ext <<_ACEOF
15057 /* end confdefs.h. */
15058 #include <X11/SM/SMlib.h>
15059 _ACEOF
15060 if { (ac_try="$ac_cpp conftest.$ac_ext"
15061 case "(($ac_try" in
15062 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15063 *) ac_try_echo=$ac_try;;
15064 esac
15065 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15066 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
15067 ac_status=$?
15068 grep -v '^ *+' conftest.er1 >conftest.err
15069 rm -f conftest.er1
15070 cat conftest.err >&5
15071 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15072 (exit $ac_status); } >/dev/null && {
15073 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
15074 test ! -s conftest.err
15075 }; then
15076 ac_header_preproc=yes
15077 else
15078 echo "$as_me: failed program was:" >&5
15079 sed 's/^/| /' conftest.$ac_ext >&5
15081 ac_header_preproc=no
15084 rm -f conftest.err conftest.$ac_ext
15085 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
15086 echo "${ECHO_T}$ac_header_preproc" >&6; }
15088 # So? What about this header?
15089 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
15090 yes:no: )
15091 { echo "$as_me:$LINENO: WARNING: X11/SM/SMlib.h: accepted by the compiler, rejected by the preprocessor!" >&5
15092 echo "$as_me: WARNING: X11/SM/SMlib.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
15093 { echo "$as_me:$LINENO: WARNING: X11/SM/SMlib.h: proceeding with the compiler's result" >&5
15094 echo "$as_me: WARNING: X11/SM/SMlib.h: proceeding with the compiler's result" >&2;}
15095 ac_header_preproc=yes
15097 no:yes:* )
15098 { echo "$as_me:$LINENO: WARNING: X11/SM/SMlib.h: present but cannot be compiled" >&5
15099 echo "$as_me: WARNING: X11/SM/SMlib.h: present but cannot be compiled" >&2;}
15100 { echo "$as_me:$LINENO: WARNING: X11/SM/SMlib.h: check for missing prerequisite headers?" >&5
15101 echo "$as_me: WARNING: X11/SM/SMlib.h: check for missing prerequisite headers?" >&2;}
15102 { echo "$as_me:$LINENO: WARNING: X11/SM/SMlib.h: see the Autoconf documentation" >&5
15103 echo "$as_me: WARNING: X11/SM/SMlib.h: see the Autoconf documentation" >&2;}
15104 { echo "$as_me:$LINENO: WARNING: X11/SM/SMlib.h: section \"Present But Cannot Be Compiled\"" >&5
15105 echo "$as_me: WARNING: X11/SM/SMlib.h: section \"Present But Cannot Be Compiled\"" >&2;}
15106 { echo "$as_me:$LINENO: WARNING: X11/SM/SMlib.h: proceeding with the preprocessor's result" >&5
15107 echo "$as_me: WARNING: X11/SM/SMlib.h: proceeding with the preprocessor's result" >&2;}
15108 { echo "$as_me:$LINENO: WARNING: X11/SM/SMlib.h: in the future, the compiler will take precedence" >&5
15109 echo "$as_me: WARNING: X11/SM/SMlib.h: in the future, the compiler will take precedence" >&2;}
15112 esac
15113 { echo "$as_me:$LINENO: checking for X11/SM/SMlib.h" >&5
15114 echo $ECHO_N "checking for X11/SM/SMlib.h... $ECHO_C" >&6; }
15115 if test "${ac_cv_header_X11_SM_SMlib_h+set}" = set; then
15116 echo $ECHO_N "(cached) $ECHO_C" >&6
15117 else
15118 ac_cv_header_X11_SM_SMlib_h=$ac_header_preproc
15120 { echo "$as_me:$LINENO: result: $ac_cv_header_X11_SM_SMlib_h" >&5
15121 echo "${ECHO_T}$ac_cv_header_X11_SM_SMlib_h" >&6; }
15124 if test $ac_cv_header_X11_SM_SMlib_h = yes; then
15125 { echo "$as_me:$LINENO: checking for SmcOpenConnection in -lSM" >&5
15126 echo $ECHO_N "checking for SmcOpenConnection in -lSM... $ECHO_C" >&6; }
15127 if test "${ac_cv_lib_SM_SmcOpenConnection+set}" = set; then
15128 echo $ECHO_N "(cached) $ECHO_C" >&6
15129 else
15130 ac_check_lib_save_LIBS=$LIBS
15131 LIBS="-lSM -lICE $LIBS"
15132 cat >conftest.$ac_ext <<_ACEOF
15133 /* confdefs.h. */
15134 _ACEOF
15135 cat confdefs.h >>conftest.$ac_ext
15136 cat >>conftest.$ac_ext <<_ACEOF
15137 /* end confdefs.h. */
15139 /* Override any GCC internal prototype to avoid an error.
15140 Use char because int might match the return type of a GCC
15141 builtin and then its argument prototype would still apply. */
15142 #ifdef __cplusplus
15143 extern "C"
15144 #endif
15145 char SmcOpenConnection ();
15147 main ()
15149 return SmcOpenConnection ();
15151 return 0;
15153 _ACEOF
15154 rm -f conftest.$ac_objext conftest$ac_exeext
15155 if { (ac_try="$ac_link"
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_link") 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_exeext &&
15171 $as_test_x conftest$ac_exeext; then
15172 ac_cv_lib_SM_SmcOpenConnection=yes
15173 else
15174 echo "$as_me: failed program was:" >&5
15175 sed 's/^/| /' conftest.$ac_ext >&5
15177 ac_cv_lib_SM_SmcOpenConnection=no
15180 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
15181 conftest$ac_exeext conftest.$ac_ext
15182 LIBS=$ac_check_lib_save_LIBS
15184 { echo "$as_me:$LINENO: result: $ac_cv_lib_SM_SmcOpenConnection" >&5
15185 echo "${ECHO_T}$ac_cv_lib_SM_SmcOpenConnection" >&6; }
15186 if test $ac_cv_lib_SM_SmcOpenConnection = yes; then
15187 HAVE_X_SM=yes
15194 if test "${HAVE_X_SM}" = "yes"; then
15196 cat >>confdefs.h <<\_ACEOF
15197 #define HAVE_X_SM 1
15198 _ACEOF
15200 case "$LIBS" in
15201 *-lSM*) ;;
15202 *) LIBS="-lSM -lICE $LIBS" ;;
15203 esac
15207 # If netdb.h doesn't declare h_errno, we must declare it by hand.
15208 { echo "$as_me:$LINENO: checking whether netdb declares h_errno" >&5
15209 echo $ECHO_N "checking whether netdb declares h_errno... $ECHO_C" >&6; }
15210 if test "${emacs_cv_netdb_declares_h_errno+set}" = set; then
15211 echo $ECHO_N "(cached) $ECHO_C" >&6
15212 else
15213 cat >conftest.$ac_ext <<_ACEOF
15214 /* confdefs.h. */
15215 _ACEOF
15216 cat confdefs.h >>conftest.$ac_ext
15217 cat >>conftest.$ac_ext <<_ACEOF
15218 /* end confdefs.h. */
15219 #include <netdb.h>
15221 main ()
15223 return h_errno;
15225 return 0;
15227 _ACEOF
15228 rm -f conftest.$ac_objext conftest$ac_exeext
15229 if { (ac_try="$ac_link"
15230 case "(($ac_try" in
15231 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15232 *) ac_try_echo=$ac_try;;
15233 esac
15234 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15235 (eval "$ac_link") 2>conftest.er1
15236 ac_status=$?
15237 grep -v '^ *+' conftest.er1 >conftest.err
15238 rm -f conftest.er1
15239 cat conftest.err >&5
15240 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15241 (exit $ac_status); } && {
15242 test -z "$ac_c_werror_flag" ||
15243 test ! -s conftest.err
15244 } && test -s conftest$ac_exeext &&
15245 $as_test_x conftest$ac_exeext; then
15246 emacs_cv_netdb_declares_h_errno=yes
15247 else
15248 echo "$as_me: failed program was:" >&5
15249 sed 's/^/| /' conftest.$ac_ext >&5
15251 emacs_cv_netdb_declares_h_errno=no
15254 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
15255 conftest$ac_exeext conftest.$ac_ext
15257 { echo "$as_me:$LINENO: result: $emacs_cv_netdb_declares_h_errno" >&5
15258 echo "${ECHO_T}$emacs_cv_netdb_declares_h_errno" >&6; }
15259 if test $emacs_cv_netdb_declares_h_errno = yes; then
15261 cat >>confdefs.h <<\_ACEOF
15262 #define HAVE_H_ERRNO 1
15263 _ACEOF
15267 # The Ultrix 4.2 mips builtin alloca declared by alloca.h only works
15268 # for constant arguments. Useless!
15269 { echo "$as_me:$LINENO: checking for working alloca.h" >&5
15270 echo $ECHO_N "checking for working alloca.h... $ECHO_C" >&6; }
15271 if test "${ac_cv_working_alloca_h+set}" = set; then
15272 echo $ECHO_N "(cached) $ECHO_C" >&6
15273 else
15274 cat >conftest.$ac_ext <<_ACEOF
15275 /* confdefs.h. */
15276 _ACEOF
15277 cat confdefs.h >>conftest.$ac_ext
15278 cat >>conftest.$ac_ext <<_ACEOF
15279 /* end confdefs.h. */
15280 #include <alloca.h>
15282 main ()
15284 char *p = (char *) alloca (2 * sizeof (int));
15285 if (p) return 0;
15287 return 0;
15289 _ACEOF
15290 rm -f conftest.$ac_objext conftest$ac_exeext
15291 if { (ac_try="$ac_link"
15292 case "(($ac_try" in
15293 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15294 *) ac_try_echo=$ac_try;;
15295 esac
15296 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15297 (eval "$ac_link") 2>conftest.er1
15298 ac_status=$?
15299 grep -v '^ *+' conftest.er1 >conftest.err
15300 rm -f conftest.er1
15301 cat conftest.err >&5
15302 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15303 (exit $ac_status); } && {
15304 test -z "$ac_c_werror_flag" ||
15305 test ! -s conftest.err
15306 } && test -s conftest$ac_exeext &&
15307 $as_test_x conftest$ac_exeext; then
15308 ac_cv_working_alloca_h=yes
15309 else
15310 echo "$as_me: failed program was:" >&5
15311 sed 's/^/| /' conftest.$ac_ext >&5
15313 ac_cv_working_alloca_h=no
15316 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
15317 conftest$ac_exeext conftest.$ac_ext
15319 { echo "$as_me:$LINENO: result: $ac_cv_working_alloca_h" >&5
15320 echo "${ECHO_T}$ac_cv_working_alloca_h" >&6; }
15321 if test $ac_cv_working_alloca_h = yes; then
15323 cat >>confdefs.h <<\_ACEOF
15324 #define HAVE_ALLOCA_H 1
15325 _ACEOF
15329 { echo "$as_me:$LINENO: checking for alloca" >&5
15330 echo $ECHO_N "checking for alloca... $ECHO_C" >&6; }
15331 if test "${ac_cv_func_alloca_works+set}" = set; then
15332 echo $ECHO_N "(cached) $ECHO_C" >&6
15333 else
15334 cat >conftest.$ac_ext <<_ACEOF
15335 /* confdefs.h. */
15336 _ACEOF
15337 cat confdefs.h >>conftest.$ac_ext
15338 cat >>conftest.$ac_ext <<_ACEOF
15339 /* end confdefs.h. */
15340 #ifdef __GNUC__
15341 # define alloca __builtin_alloca
15342 #else
15343 # ifdef _MSC_VER
15344 # include <malloc.h>
15345 # define alloca _alloca
15346 # else
15347 # ifdef HAVE_ALLOCA_H
15348 # include <alloca.h>
15349 # else
15350 # ifdef _AIX
15351 #pragma alloca
15352 # else
15353 # ifndef alloca /* predefined by HP cc +Olibcalls */
15354 char *alloca ();
15355 # endif
15356 # endif
15357 # endif
15358 # endif
15359 #endif
15362 main ()
15364 char *p = (char *) alloca (1);
15365 if (p) return 0;
15367 return 0;
15369 _ACEOF
15370 rm -f conftest.$ac_objext conftest$ac_exeext
15371 if { (ac_try="$ac_link"
15372 case "(($ac_try" in
15373 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15374 *) ac_try_echo=$ac_try;;
15375 esac
15376 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15377 (eval "$ac_link") 2>conftest.er1
15378 ac_status=$?
15379 grep -v '^ *+' conftest.er1 >conftest.err
15380 rm -f conftest.er1
15381 cat conftest.err >&5
15382 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15383 (exit $ac_status); } && {
15384 test -z "$ac_c_werror_flag" ||
15385 test ! -s conftest.err
15386 } && test -s conftest$ac_exeext &&
15387 $as_test_x conftest$ac_exeext; then
15388 ac_cv_func_alloca_works=yes
15389 else
15390 echo "$as_me: failed program was:" >&5
15391 sed 's/^/| /' conftest.$ac_ext >&5
15393 ac_cv_func_alloca_works=no
15396 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
15397 conftest$ac_exeext conftest.$ac_ext
15399 { echo "$as_me:$LINENO: result: $ac_cv_func_alloca_works" >&5
15400 echo "${ECHO_T}$ac_cv_func_alloca_works" >&6; }
15402 if test $ac_cv_func_alloca_works = yes; then
15404 cat >>confdefs.h <<\_ACEOF
15405 #define HAVE_ALLOCA 1
15406 _ACEOF
15408 else
15409 # The SVR3 libPW and SVR4 libucb both contain incompatible functions
15410 # that cause trouble. Some versions do not even contain alloca or
15411 # contain a buggy version. If you still want to use their alloca,
15412 # use ar to extract alloca.o from them instead of compiling alloca.c.
15414 ALLOCA=\${LIBOBJDIR}alloca.$ac_objext
15416 cat >>confdefs.h <<\_ACEOF
15417 #define C_ALLOCA 1
15418 _ACEOF
15421 { echo "$as_me:$LINENO: checking whether \`alloca.c' needs Cray hooks" >&5
15422 echo $ECHO_N "checking whether \`alloca.c' needs Cray hooks... $ECHO_C" >&6; }
15423 if test "${ac_cv_os_cray+set}" = set; then
15424 echo $ECHO_N "(cached) $ECHO_C" >&6
15425 else
15426 cat >conftest.$ac_ext <<_ACEOF
15427 /* confdefs.h. */
15428 _ACEOF
15429 cat confdefs.h >>conftest.$ac_ext
15430 cat >>conftest.$ac_ext <<_ACEOF
15431 /* end confdefs.h. */
15432 #if defined CRAY && ! defined CRAY2
15433 webecray
15434 #else
15435 wenotbecray
15436 #endif
15438 _ACEOF
15439 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
15440 $EGREP "webecray" >/dev/null 2>&1; then
15441 ac_cv_os_cray=yes
15442 else
15443 ac_cv_os_cray=no
15445 rm -f conftest*
15448 { echo "$as_me:$LINENO: result: $ac_cv_os_cray" >&5
15449 echo "${ECHO_T}$ac_cv_os_cray" >&6; }
15450 if test $ac_cv_os_cray = yes; then
15451 for ac_func in _getb67 GETB67 getb67; do
15452 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
15453 { echo "$as_me:$LINENO: checking for $ac_func" >&5
15454 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
15455 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
15456 echo $ECHO_N "(cached) $ECHO_C" >&6
15457 else
15458 cat >conftest.$ac_ext <<_ACEOF
15459 /* confdefs.h. */
15460 _ACEOF
15461 cat confdefs.h >>conftest.$ac_ext
15462 cat >>conftest.$ac_ext <<_ACEOF
15463 /* end confdefs.h. */
15464 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
15465 For example, HP-UX 11i <limits.h> declares gettimeofday. */
15466 #define $ac_func innocuous_$ac_func
15468 /* System header to define __stub macros and hopefully few prototypes,
15469 which can conflict with char $ac_func (); below.
15470 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
15471 <limits.h> exists even on freestanding compilers. */
15473 #ifdef __STDC__
15474 # include <limits.h>
15475 #else
15476 # include <assert.h>
15477 #endif
15479 #undef $ac_func
15481 /* Override any GCC internal prototype to avoid an error.
15482 Use char because int might match the return type of a GCC
15483 builtin and then its argument prototype would still apply. */
15484 #ifdef __cplusplus
15485 extern "C"
15486 #endif
15487 char $ac_func ();
15488 /* The GNU C library defines this for functions which it implements
15489 to always fail with ENOSYS. Some functions are actually named
15490 something starting with __ and the normal name is an alias. */
15491 #if defined __stub_$ac_func || defined __stub___$ac_func
15492 choke me
15493 #endif
15496 main ()
15498 return $ac_func ();
15500 return 0;
15502 _ACEOF
15503 rm -f conftest.$ac_objext conftest$ac_exeext
15504 if { (ac_try="$ac_link"
15505 case "(($ac_try" in
15506 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15507 *) ac_try_echo=$ac_try;;
15508 esac
15509 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15510 (eval "$ac_link") 2>conftest.er1
15511 ac_status=$?
15512 grep -v '^ *+' conftest.er1 >conftest.err
15513 rm -f conftest.er1
15514 cat conftest.err >&5
15515 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15516 (exit $ac_status); } && {
15517 test -z "$ac_c_werror_flag" ||
15518 test ! -s conftest.err
15519 } && test -s conftest$ac_exeext &&
15520 $as_test_x conftest$ac_exeext; then
15521 eval "$as_ac_var=yes"
15522 else
15523 echo "$as_me: failed program was:" >&5
15524 sed 's/^/| /' conftest.$ac_ext >&5
15526 eval "$as_ac_var=no"
15529 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
15530 conftest$ac_exeext conftest.$ac_ext
15532 ac_res=`eval echo '${'$as_ac_var'}'`
15533 { echo "$as_me:$LINENO: result: $ac_res" >&5
15534 echo "${ECHO_T}$ac_res" >&6; }
15535 if test `eval echo '${'$as_ac_var'}'` = yes; then
15537 cat >>confdefs.h <<_ACEOF
15538 #define CRAY_STACKSEG_END $ac_func
15539 _ACEOF
15541 break
15544 done
15547 { echo "$as_me:$LINENO: checking stack direction for C alloca" >&5
15548 echo $ECHO_N "checking stack direction for C alloca... $ECHO_C" >&6; }
15549 if test "${ac_cv_c_stack_direction+set}" = set; then
15550 echo $ECHO_N "(cached) $ECHO_C" >&6
15551 else
15552 if test "$cross_compiling" = yes; then
15553 ac_cv_c_stack_direction=0
15554 else
15555 cat >conftest.$ac_ext <<_ACEOF
15556 /* confdefs.h. */
15557 _ACEOF
15558 cat confdefs.h >>conftest.$ac_ext
15559 cat >>conftest.$ac_ext <<_ACEOF
15560 /* end confdefs.h. */
15561 $ac_includes_default
15563 find_stack_direction ()
15565 static char *addr = 0;
15566 auto char dummy;
15567 if (addr == 0)
15569 addr = &dummy;
15570 return find_stack_direction ();
15572 else
15573 return (&dummy > addr) ? 1 : -1;
15577 main ()
15579 return find_stack_direction () < 0;
15581 _ACEOF
15582 rm -f conftest$ac_exeext
15583 if { (ac_try="$ac_link"
15584 case "(($ac_try" in
15585 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15586 *) ac_try_echo=$ac_try;;
15587 esac
15588 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15589 (eval "$ac_link") 2>&5
15590 ac_status=$?
15591 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15592 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
15593 { (case "(($ac_try" in
15594 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15595 *) ac_try_echo=$ac_try;;
15596 esac
15597 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15598 (eval "$ac_try") 2>&5
15599 ac_status=$?
15600 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15601 (exit $ac_status); }; }; then
15602 ac_cv_c_stack_direction=1
15603 else
15604 echo "$as_me: program exited with status $ac_status" >&5
15605 echo "$as_me: failed program was:" >&5
15606 sed 's/^/| /' conftest.$ac_ext >&5
15608 ( exit $ac_status )
15609 ac_cv_c_stack_direction=-1
15611 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
15616 { echo "$as_me:$LINENO: result: $ac_cv_c_stack_direction" >&5
15617 echo "${ECHO_T}$ac_cv_c_stack_direction" >&6; }
15619 cat >>confdefs.h <<_ACEOF
15620 #define STACK_DIRECTION $ac_cv_c_stack_direction
15621 _ACEOF
15627 if test x"$ac_cv_func_alloca_works" != xyes; then
15628 { { echo "$as_me:$LINENO: error: a system implementation of alloca is required " >&5
15629 echo "$as_me: error: a system implementation of alloca is required " >&2;}
15630 { (exit 1); exit 1; }; }
15633 # fmod, logb, and frexp are found in -lm on most systems.
15634 # On HPUX 9.01, -lm does not contain logb, so check for sqrt.
15636 { echo "$as_me:$LINENO: checking for sqrt in -lm" >&5
15637 echo $ECHO_N "checking for sqrt in -lm... $ECHO_C" >&6; }
15638 if test "${ac_cv_lib_m_sqrt+set}" = set; then
15639 echo $ECHO_N "(cached) $ECHO_C" >&6
15640 else
15641 ac_check_lib_save_LIBS=$LIBS
15642 LIBS="-lm $LIBS"
15643 cat >conftest.$ac_ext <<_ACEOF
15644 /* confdefs.h. */
15645 _ACEOF
15646 cat confdefs.h >>conftest.$ac_ext
15647 cat >>conftest.$ac_ext <<_ACEOF
15648 /* end confdefs.h. */
15650 /* Override any GCC internal prototype to avoid an error.
15651 Use char because int might match the return type of a GCC
15652 builtin and then its argument prototype would still apply. */
15653 #ifdef __cplusplus
15654 extern "C"
15655 #endif
15656 char sqrt ();
15658 main ()
15660 return sqrt ();
15662 return 0;
15664 _ACEOF
15665 rm -f conftest.$ac_objext conftest$ac_exeext
15666 if { (ac_try="$ac_link"
15667 case "(($ac_try" in
15668 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15669 *) ac_try_echo=$ac_try;;
15670 esac
15671 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15672 (eval "$ac_link") 2>conftest.er1
15673 ac_status=$?
15674 grep -v '^ *+' conftest.er1 >conftest.err
15675 rm -f conftest.er1
15676 cat conftest.err >&5
15677 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15678 (exit $ac_status); } && {
15679 test -z "$ac_c_werror_flag" ||
15680 test ! -s conftest.err
15681 } && test -s conftest$ac_exeext &&
15682 $as_test_x conftest$ac_exeext; then
15683 ac_cv_lib_m_sqrt=yes
15684 else
15685 echo "$as_me: failed program was:" >&5
15686 sed 's/^/| /' conftest.$ac_ext >&5
15688 ac_cv_lib_m_sqrt=no
15691 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
15692 conftest$ac_exeext conftest.$ac_ext
15693 LIBS=$ac_check_lib_save_LIBS
15695 { echo "$as_me:$LINENO: result: $ac_cv_lib_m_sqrt" >&5
15696 echo "${ECHO_T}$ac_cv_lib_m_sqrt" >&6; }
15697 if test $ac_cv_lib_m_sqrt = yes; then
15698 cat >>confdefs.h <<_ACEOF
15699 #define HAVE_LIBM 1
15700 _ACEOF
15702 LIBS="-lm $LIBS"
15707 # Check for mail-locking functions in a "mail" library. Probably this should
15708 # have the same check as for liblockfile below.
15710 { echo "$as_me:$LINENO: checking for maillock in -lmail" >&5
15711 echo $ECHO_N "checking for maillock in -lmail... $ECHO_C" >&6; }
15712 if test "${ac_cv_lib_mail_maillock+set}" = set; then
15713 echo $ECHO_N "(cached) $ECHO_C" >&6
15714 else
15715 ac_check_lib_save_LIBS=$LIBS
15716 LIBS="-lmail $LIBS"
15717 cat >conftest.$ac_ext <<_ACEOF
15718 /* confdefs.h. */
15719 _ACEOF
15720 cat confdefs.h >>conftest.$ac_ext
15721 cat >>conftest.$ac_ext <<_ACEOF
15722 /* end confdefs.h. */
15724 /* Override any GCC internal prototype to avoid an error.
15725 Use char because int might match the return type of a GCC
15726 builtin and then its argument prototype would still apply. */
15727 #ifdef __cplusplus
15728 extern "C"
15729 #endif
15730 char maillock ();
15732 main ()
15734 return maillock ();
15736 return 0;
15738 _ACEOF
15739 rm -f conftest.$ac_objext conftest$ac_exeext
15740 if { (ac_try="$ac_link"
15741 case "(($ac_try" in
15742 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15743 *) ac_try_echo=$ac_try;;
15744 esac
15745 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15746 (eval "$ac_link") 2>conftest.er1
15747 ac_status=$?
15748 grep -v '^ *+' conftest.er1 >conftest.err
15749 rm -f conftest.er1
15750 cat conftest.err >&5
15751 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15752 (exit $ac_status); } && {
15753 test -z "$ac_c_werror_flag" ||
15754 test ! -s conftest.err
15755 } && test -s conftest$ac_exeext &&
15756 $as_test_x conftest$ac_exeext; then
15757 ac_cv_lib_mail_maillock=yes
15758 else
15759 echo "$as_me: failed program was:" >&5
15760 sed 's/^/| /' conftest.$ac_ext >&5
15762 ac_cv_lib_mail_maillock=no
15765 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
15766 conftest$ac_exeext conftest.$ac_ext
15767 LIBS=$ac_check_lib_save_LIBS
15769 { echo "$as_me:$LINENO: result: $ac_cv_lib_mail_maillock" >&5
15770 echo "${ECHO_T}$ac_cv_lib_mail_maillock" >&6; }
15771 if test $ac_cv_lib_mail_maillock = yes; then
15772 cat >>confdefs.h <<_ACEOF
15773 #define HAVE_LIBMAIL 1
15774 _ACEOF
15776 LIBS="-lmail $LIBS"
15781 { echo "$as_me:$LINENO: checking for maillock in -llockfile" >&5
15782 echo $ECHO_N "checking for maillock in -llockfile... $ECHO_C" >&6; }
15783 if test "${ac_cv_lib_lockfile_maillock+set}" = set; then
15784 echo $ECHO_N "(cached) $ECHO_C" >&6
15785 else
15786 ac_check_lib_save_LIBS=$LIBS
15787 LIBS="-llockfile $LIBS"
15788 cat >conftest.$ac_ext <<_ACEOF
15789 /* confdefs.h. */
15790 _ACEOF
15791 cat confdefs.h >>conftest.$ac_ext
15792 cat >>conftest.$ac_ext <<_ACEOF
15793 /* end confdefs.h. */
15795 /* Override any GCC internal prototype to avoid an error.
15796 Use char because int might match the return type of a GCC
15797 builtin and then its argument prototype would still apply. */
15798 #ifdef __cplusplus
15799 extern "C"
15800 #endif
15801 char maillock ();
15803 main ()
15805 return maillock ();
15807 return 0;
15809 _ACEOF
15810 rm -f conftest.$ac_objext conftest$ac_exeext
15811 if { (ac_try="$ac_link"
15812 case "(($ac_try" in
15813 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15814 *) ac_try_echo=$ac_try;;
15815 esac
15816 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15817 (eval "$ac_link") 2>conftest.er1
15818 ac_status=$?
15819 grep -v '^ *+' conftest.er1 >conftest.err
15820 rm -f conftest.er1
15821 cat conftest.err >&5
15822 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15823 (exit $ac_status); } && {
15824 test -z "$ac_c_werror_flag" ||
15825 test ! -s conftest.err
15826 } && test -s conftest$ac_exeext &&
15827 $as_test_x conftest$ac_exeext; then
15828 ac_cv_lib_lockfile_maillock=yes
15829 else
15830 echo "$as_me: failed program was:" >&5
15831 sed 's/^/| /' conftest.$ac_ext >&5
15833 ac_cv_lib_lockfile_maillock=no
15836 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
15837 conftest$ac_exeext conftest.$ac_ext
15838 LIBS=$ac_check_lib_save_LIBS
15840 { echo "$as_me:$LINENO: result: $ac_cv_lib_lockfile_maillock" >&5
15841 echo "${ECHO_T}$ac_cv_lib_lockfile_maillock" >&6; }
15842 if test $ac_cv_lib_lockfile_maillock = yes; then
15843 cat >>confdefs.h <<_ACEOF
15844 #define HAVE_LIBLOCKFILE 1
15845 _ACEOF
15847 LIBS="-llockfile $LIBS"
15851 # If we have the shared liblockfile, assume we must use it for mail
15852 # locking (e.g. Debian). If we couldn't link against liblockfile
15853 # (no liblockfile.a installed), ensure that we don't need to.
15854 if test "$ac_cv_lib_lockfile_maillock" = no; then
15855 # Extract the first word of "liblockfile.so", so it can be a program name with args.
15856 set dummy liblockfile.so; ac_word=$2
15857 { echo "$as_me:$LINENO: checking for $ac_word" >&5
15858 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
15859 if test "${ac_cv_prog_liblockfile+set}" = set; then
15860 echo $ECHO_N "(cached) $ECHO_C" >&6
15861 else
15862 if test -n "$liblockfile"; then
15863 ac_cv_prog_liblockfile="$liblockfile" # Let the user override the test.
15864 else
15865 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
15866 as_dummy="/usr/lib:/lib:/usr/local/lib:$LD_LIBRARY_PATH"
15867 for as_dir in $as_dummy
15869 IFS=$as_save_IFS
15870 test -z "$as_dir" && as_dir=.
15871 for ac_exec_ext in '' $ac_executable_extensions; do
15872 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
15873 ac_cv_prog_liblockfile="yes"
15874 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
15875 break 2
15877 done
15878 done
15879 IFS=$as_save_IFS
15881 test -z "$ac_cv_prog_liblockfile" && ac_cv_prog_liblockfile="no"
15884 liblockfile=$ac_cv_prog_liblockfile
15885 if test -n "$liblockfile"; then
15886 { echo "$as_me:$LINENO: result: $liblockfile" >&5
15887 echo "${ECHO_T}$liblockfile" >&6; }
15888 else
15889 { echo "$as_me:$LINENO: result: no" >&5
15890 echo "${ECHO_T}no" >&6; }
15894 if test $ac_cv_prog_liblockfile = yes; then
15895 { { echo "$as_me:$LINENO: error: Shared liblockfile found but can't link against it.
15896 This probably means that movemail could lose mail.
15897 There may be a \`development' package to install containing liblockfile." >&5
15898 echo "$as_me: error: Shared liblockfile found but can't link against it.
15899 This probably means that movemail could lose mail.
15900 There may be a \`development' package to install containing liblockfile." >&2;}
15901 { (exit 1); exit 1; }; }
15902 else :
15906 for ac_func in touchlock
15908 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
15909 { echo "$as_me:$LINENO: checking for $ac_func" >&5
15910 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
15911 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
15912 echo $ECHO_N "(cached) $ECHO_C" >&6
15913 else
15914 cat >conftest.$ac_ext <<_ACEOF
15915 /* confdefs.h. */
15916 _ACEOF
15917 cat confdefs.h >>conftest.$ac_ext
15918 cat >>conftest.$ac_ext <<_ACEOF
15919 /* end confdefs.h. */
15920 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
15921 For example, HP-UX 11i <limits.h> declares gettimeofday. */
15922 #define $ac_func innocuous_$ac_func
15924 /* System header to define __stub macros and hopefully few prototypes,
15925 which can conflict with char $ac_func (); below.
15926 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
15927 <limits.h> exists even on freestanding compilers. */
15929 #ifdef __STDC__
15930 # include <limits.h>
15931 #else
15932 # include <assert.h>
15933 #endif
15935 #undef $ac_func
15937 /* Override any GCC internal prototype to avoid an error.
15938 Use char because int might match the return type of a GCC
15939 builtin and then its argument prototype would still apply. */
15940 #ifdef __cplusplus
15941 extern "C"
15942 #endif
15943 char $ac_func ();
15944 /* The GNU C library defines this for functions which it implements
15945 to always fail with ENOSYS. Some functions are actually named
15946 something starting with __ and the normal name is an alias. */
15947 #if defined __stub_$ac_func || defined __stub___$ac_func
15948 choke me
15949 #endif
15952 main ()
15954 return $ac_func ();
15956 return 0;
15958 _ACEOF
15959 rm -f conftest.$ac_objext conftest$ac_exeext
15960 if { (ac_try="$ac_link"
15961 case "(($ac_try" in
15962 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15963 *) ac_try_echo=$ac_try;;
15964 esac
15965 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15966 (eval "$ac_link") 2>conftest.er1
15967 ac_status=$?
15968 grep -v '^ *+' conftest.er1 >conftest.err
15969 rm -f conftest.er1
15970 cat conftest.err >&5
15971 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15972 (exit $ac_status); } && {
15973 test -z "$ac_c_werror_flag" ||
15974 test ! -s conftest.err
15975 } && test -s conftest$ac_exeext &&
15976 $as_test_x conftest$ac_exeext; then
15977 eval "$as_ac_var=yes"
15978 else
15979 echo "$as_me: failed program was:" >&5
15980 sed 's/^/| /' conftest.$ac_ext >&5
15982 eval "$as_ac_var=no"
15985 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
15986 conftest$ac_exeext conftest.$ac_ext
15988 ac_res=`eval echo '${'$as_ac_var'}'`
15989 { echo "$as_me:$LINENO: result: $ac_res" >&5
15990 echo "${ECHO_T}$ac_res" >&6; }
15991 if test `eval echo '${'$as_ac_var'}'` = yes; then
15992 cat >>confdefs.h <<_ACEOF
15993 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
15994 _ACEOF
15997 done
16000 for ac_header in maillock.h
16002 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
16003 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
16004 { echo "$as_me:$LINENO: checking for $ac_header" >&5
16005 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
16006 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
16007 echo $ECHO_N "(cached) $ECHO_C" >&6
16009 ac_res=`eval echo '${'$as_ac_Header'}'`
16010 { echo "$as_me:$LINENO: result: $ac_res" >&5
16011 echo "${ECHO_T}$ac_res" >&6; }
16012 else
16013 # Is the header compilable?
16014 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
16015 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
16016 cat >conftest.$ac_ext <<_ACEOF
16017 /* confdefs.h. */
16018 _ACEOF
16019 cat confdefs.h >>conftest.$ac_ext
16020 cat >>conftest.$ac_ext <<_ACEOF
16021 /* end confdefs.h. */
16022 $ac_includes_default
16023 #include <$ac_header>
16024 _ACEOF
16025 rm -f conftest.$ac_objext
16026 if { (ac_try="$ac_compile"
16027 case "(($ac_try" in
16028 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16029 *) ac_try_echo=$ac_try;;
16030 esac
16031 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16032 (eval "$ac_compile") 2>conftest.er1
16033 ac_status=$?
16034 grep -v '^ *+' conftest.er1 >conftest.err
16035 rm -f conftest.er1
16036 cat conftest.err >&5
16037 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16038 (exit $ac_status); } && {
16039 test -z "$ac_c_werror_flag" ||
16040 test ! -s conftest.err
16041 } && test -s conftest.$ac_objext; then
16042 ac_header_compiler=yes
16043 else
16044 echo "$as_me: failed program was:" >&5
16045 sed 's/^/| /' conftest.$ac_ext >&5
16047 ac_header_compiler=no
16050 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16051 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
16052 echo "${ECHO_T}$ac_header_compiler" >&6; }
16054 # Is the header present?
16055 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
16056 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
16057 cat >conftest.$ac_ext <<_ACEOF
16058 /* confdefs.h. */
16059 _ACEOF
16060 cat confdefs.h >>conftest.$ac_ext
16061 cat >>conftest.$ac_ext <<_ACEOF
16062 /* end confdefs.h. */
16063 #include <$ac_header>
16064 _ACEOF
16065 if { (ac_try="$ac_cpp conftest.$ac_ext"
16066 case "(($ac_try" in
16067 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16068 *) ac_try_echo=$ac_try;;
16069 esac
16070 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16071 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
16072 ac_status=$?
16073 grep -v '^ *+' conftest.er1 >conftest.err
16074 rm -f conftest.er1
16075 cat conftest.err >&5
16076 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16077 (exit $ac_status); } >/dev/null && {
16078 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
16079 test ! -s conftest.err
16080 }; then
16081 ac_header_preproc=yes
16082 else
16083 echo "$as_me: failed program was:" >&5
16084 sed 's/^/| /' conftest.$ac_ext >&5
16086 ac_header_preproc=no
16089 rm -f conftest.err conftest.$ac_ext
16090 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
16091 echo "${ECHO_T}$ac_header_preproc" >&6; }
16093 # So? What about this header?
16094 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
16095 yes:no: )
16096 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
16097 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
16098 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
16099 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
16100 ac_header_preproc=yes
16102 no:yes:* )
16103 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
16104 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
16105 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
16106 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
16107 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
16108 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
16109 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
16110 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
16111 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
16112 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
16113 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
16114 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
16117 esac
16118 { echo "$as_me:$LINENO: checking for $ac_header" >&5
16119 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
16120 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
16121 echo $ECHO_N "(cached) $ECHO_C" >&6
16122 else
16123 eval "$as_ac_Header=\$ac_header_preproc"
16125 ac_res=`eval echo '${'$as_ac_Header'}'`
16126 { echo "$as_me:$LINENO: result: $ac_res" >&5
16127 echo "${ECHO_T}$ac_res" >&6; }
16130 if test `eval echo '${'$as_ac_Header'}'` = yes; then
16131 cat >>confdefs.h <<_ACEOF
16132 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
16133 _ACEOF
16137 done
16208 for ac_func in gethostname getdomainname dup2 \
16209 rename closedir mkdir rmdir sysinfo getrusage get_current_dir_name \
16210 random lrand48 bcopy bcmp logb frexp fmod rint cbrt ftime setsid \
16211 strerror fpathconf select mktime euidaccess getpagesize tzset setlocale \
16212 utimes setrlimit setpgid getcwd getwd shutdown getaddrinfo \
16213 __fpending mblen mbrlen mbsinit strsignal setitimer ualarm index rindex \
16214 sendto recvfrom getsockopt setsockopt getsockname getpeername \
16215 gai_strerror mkstemp getline getdelim mremap memmove fsync sync bzero \
16216 memset memcmp difftime memcpy mempcpy mblen mbrlen posix_memalign
16218 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
16219 { echo "$as_me:$LINENO: checking for $ac_func" >&5
16220 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
16221 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
16222 echo $ECHO_N "(cached) $ECHO_C" >&6
16223 else
16224 cat >conftest.$ac_ext <<_ACEOF
16225 /* confdefs.h. */
16226 _ACEOF
16227 cat confdefs.h >>conftest.$ac_ext
16228 cat >>conftest.$ac_ext <<_ACEOF
16229 /* end confdefs.h. */
16230 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
16231 For example, HP-UX 11i <limits.h> declares gettimeofday. */
16232 #define $ac_func innocuous_$ac_func
16234 /* System header to define __stub macros and hopefully few prototypes,
16235 which can conflict with char $ac_func (); below.
16236 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
16237 <limits.h> exists even on freestanding compilers. */
16239 #ifdef __STDC__
16240 # include <limits.h>
16241 #else
16242 # include <assert.h>
16243 #endif
16245 #undef $ac_func
16247 /* Override any GCC internal prototype to avoid an error.
16248 Use char because int might match the return type of a GCC
16249 builtin and then its argument prototype would still apply. */
16250 #ifdef __cplusplus
16251 extern "C"
16252 #endif
16253 char $ac_func ();
16254 /* The GNU C library defines this for functions which it implements
16255 to always fail with ENOSYS. Some functions are actually named
16256 something starting with __ and the normal name is an alias. */
16257 #if defined __stub_$ac_func || defined __stub___$ac_func
16258 choke me
16259 #endif
16262 main ()
16264 return $ac_func ();
16266 return 0;
16268 _ACEOF
16269 rm -f conftest.$ac_objext conftest$ac_exeext
16270 if { (ac_try="$ac_link"
16271 case "(($ac_try" in
16272 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16273 *) ac_try_echo=$ac_try;;
16274 esac
16275 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16276 (eval "$ac_link") 2>conftest.er1
16277 ac_status=$?
16278 grep -v '^ *+' conftest.er1 >conftest.err
16279 rm -f conftest.er1
16280 cat conftest.err >&5
16281 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16282 (exit $ac_status); } && {
16283 test -z "$ac_c_werror_flag" ||
16284 test ! -s conftest.err
16285 } && test -s conftest$ac_exeext &&
16286 $as_test_x conftest$ac_exeext; then
16287 eval "$as_ac_var=yes"
16288 else
16289 echo "$as_me: failed program was:" >&5
16290 sed 's/^/| /' conftest.$ac_ext >&5
16292 eval "$as_ac_var=no"
16295 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
16296 conftest$ac_exeext conftest.$ac_ext
16298 ac_res=`eval echo '${'$as_ac_var'}'`
16299 { echo "$as_me:$LINENO: result: $ac_res" >&5
16300 echo "${ECHO_T}$ac_res" >&6; }
16301 if test `eval echo '${'$as_ac_var'}'` = yes; then
16302 cat >>confdefs.h <<_ACEOF
16303 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
16304 _ACEOF
16307 done
16311 for ac_header in sys/un.h
16313 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
16314 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
16315 { echo "$as_me:$LINENO: checking for $ac_header" >&5
16316 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
16317 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
16318 echo $ECHO_N "(cached) $ECHO_C" >&6
16320 ac_res=`eval echo '${'$as_ac_Header'}'`
16321 { echo "$as_me:$LINENO: result: $ac_res" >&5
16322 echo "${ECHO_T}$ac_res" >&6; }
16323 else
16324 # Is the header compilable?
16325 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
16326 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
16327 cat >conftest.$ac_ext <<_ACEOF
16328 /* confdefs.h. */
16329 _ACEOF
16330 cat confdefs.h >>conftest.$ac_ext
16331 cat >>conftest.$ac_ext <<_ACEOF
16332 /* end confdefs.h. */
16333 $ac_includes_default
16334 #include <$ac_header>
16335 _ACEOF
16336 rm -f conftest.$ac_objext
16337 if { (ac_try="$ac_compile"
16338 case "(($ac_try" in
16339 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16340 *) ac_try_echo=$ac_try;;
16341 esac
16342 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16343 (eval "$ac_compile") 2>conftest.er1
16344 ac_status=$?
16345 grep -v '^ *+' conftest.er1 >conftest.err
16346 rm -f conftest.er1
16347 cat conftest.err >&5
16348 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16349 (exit $ac_status); } && {
16350 test -z "$ac_c_werror_flag" ||
16351 test ! -s conftest.err
16352 } && test -s conftest.$ac_objext; then
16353 ac_header_compiler=yes
16354 else
16355 echo "$as_me: failed program was:" >&5
16356 sed 's/^/| /' conftest.$ac_ext >&5
16358 ac_header_compiler=no
16361 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16362 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
16363 echo "${ECHO_T}$ac_header_compiler" >&6; }
16365 # Is the header present?
16366 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
16367 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
16368 cat >conftest.$ac_ext <<_ACEOF
16369 /* confdefs.h. */
16370 _ACEOF
16371 cat confdefs.h >>conftest.$ac_ext
16372 cat >>conftest.$ac_ext <<_ACEOF
16373 /* end confdefs.h. */
16374 #include <$ac_header>
16375 _ACEOF
16376 if { (ac_try="$ac_cpp conftest.$ac_ext"
16377 case "(($ac_try" in
16378 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16379 *) ac_try_echo=$ac_try;;
16380 esac
16381 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16382 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
16383 ac_status=$?
16384 grep -v '^ *+' conftest.er1 >conftest.err
16385 rm -f conftest.er1
16386 cat conftest.err >&5
16387 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16388 (exit $ac_status); } >/dev/null && {
16389 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
16390 test ! -s conftest.err
16391 }; then
16392 ac_header_preproc=yes
16393 else
16394 echo "$as_me: failed program was:" >&5
16395 sed 's/^/| /' conftest.$ac_ext >&5
16397 ac_header_preproc=no
16400 rm -f conftest.err conftest.$ac_ext
16401 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
16402 echo "${ECHO_T}$ac_header_preproc" >&6; }
16404 # So? What about this header?
16405 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
16406 yes:no: )
16407 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
16408 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
16409 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
16410 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
16411 ac_header_preproc=yes
16413 no:yes:* )
16414 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
16415 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
16416 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
16417 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
16418 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
16419 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
16420 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
16421 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
16422 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
16423 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
16424 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
16425 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
16428 esac
16429 { echo "$as_me:$LINENO: checking for $ac_header" >&5
16430 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
16431 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
16432 echo $ECHO_N "(cached) $ECHO_C" >&6
16433 else
16434 eval "$as_ac_Header=\$ac_header_preproc"
16436 ac_res=`eval echo '${'$as_ac_Header'}'`
16437 { echo "$as_me:$LINENO: result: $ac_res" >&5
16438 echo "${ECHO_T}$ac_res" >&6; }
16441 if test `eval echo '${'$as_ac_Header'}'` = yes; then
16442 cat >>confdefs.h <<_ACEOF
16443 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
16444 _ACEOF
16448 done
16455 for ac_header in $ac_header_list
16457 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
16458 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
16459 { echo "$as_me:$LINENO: checking for $ac_header" >&5
16460 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
16461 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
16462 echo $ECHO_N "(cached) $ECHO_C" >&6
16464 ac_res=`eval echo '${'$as_ac_Header'}'`
16465 { echo "$as_me:$LINENO: result: $ac_res" >&5
16466 echo "${ECHO_T}$ac_res" >&6; }
16467 else
16468 # Is the header compilable?
16469 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
16470 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
16471 cat >conftest.$ac_ext <<_ACEOF
16472 /* confdefs.h. */
16473 _ACEOF
16474 cat confdefs.h >>conftest.$ac_ext
16475 cat >>conftest.$ac_ext <<_ACEOF
16476 /* end confdefs.h. */
16477 $ac_includes_default
16478 #include <$ac_header>
16479 _ACEOF
16480 rm -f conftest.$ac_objext
16481 if { (ac_try="$ac_compile"
16482 case "(($ac_try" in
16483 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16484 *) ac_try_echo=$ac_try;;
16485 esac
16486 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16487 (eval "$ac_compile") 2>conftest.er1
16488 ac_status=$?
16489 grep -v '^ *+' conftest.er1 >conftest.err
16490 rm -f conftest.er1
16491 cat conftest.err >&5
16492 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16493 (exit $ac_status); } && {
16494 test -z "$ac_c_werror_flag" ||
16495 test ! -s conftest.err
16496 } && test -s conftest.$ac_objext; then
16497 ac_header_compiler=yes
16498 else
16499 echo "$as_me: failed program was:" >&5
16500 sed 's/^/| /' conftest.$ac_ext >&5
16502 ac_header_compiler=no
16505 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16506 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
16507 echo "${ECHO_T}$ac_header_compiler" >&6; }
16509 # Is the header present?
16510 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
16511 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
16512 cat >conftest.$ac_ext <<_ACEOF
16513 /* confdefs.h. */
16514 _ACEOF
16515 cat confdefs.h >>conftest.$ac_ext
16516 cat >>conftest.$ac_ext <<_ACEOF
16517 /* end confdefs.h. */
16518 #include <$ac_header>
16519 _ACEOF
16520 if { (ac_try="$ac_cpp conftest.$ac_ext"
16521 case "(($ac_try" in
16522 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16523 *) ac_try_echo=$ac_try;;
16524 esac
16525 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16526 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
16527 ac_status=$?
16528 grep -v '^ *+' conftest.er1 >conftest.err
16529 rm -f conftest.er1
16530 cat conftest.err >&5
16531 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16532 (exit $ac_status); } >/dev/null && {
16533 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
16534 test ! -s conftest.err
16535 }; then
16536 ac_header_preproc=yes
16537 else
16538 echo "$as_me: failed program was:" >&5
16539 sed 's/^/| /' conftest.$ac_ext >&5
16541 ac_header_preproc=no
16544 rm -f conftest.err conftest.$ac_ext
16545 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
16546 echo "${ECHO_T}$ac_header_preproc" >&6; }
16548 # So? What about this header?
16549 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
16550 yes:no: )
16551 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
16552 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
16553 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
16554 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
16555 ac_header_preproc=yes
16557 no:yes:* )
16558 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
16559 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
16560 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
16561 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
16562 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
16563 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
16564 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
16565 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
16566 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
16567 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
16568 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
16569 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
16572 esac
16573 { echo "$as_me:$LINENO: checking for $ac_header" >&5
16574 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
16575 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
16576 echo $ECHO_N "(cached) $ECHO_C" >&6
16577 else
16578 eval "$as_ac_Header=\$ac_header_preproc"
16580 ac_res=`eval echo '${'$as_ac_Header'}'`
16581 { echo "$as_me:$LINENO: result: $ac_res" >&5
16582 echo "${ECHO_T}$ac_res" >&6; }
16585 if test `eval echo '${'$as_ac_Header'}'` = yes; then
16586 cat >>confdefs.h <<_ACEOF
16587 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
16588 _ACEOF
16592 done
16602 for ac_func in $ac_func_list
16604 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
16605 { echo "$as_me:$LINENO: checking for $ac_func" >&5
16606 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
16607 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
16608 echo $ECHO_N "(cached) $ECHO_C" >&6
16609 else
16610 cat >conftest.$ac_ext <<_ACEOF
16611 /* confdefs.h. */
16612 _ACEOF
16613 cat confdefs.h >>conftest.$ac_ext
16614 cat >>conftest.$ac_ext <<_ACEOF
16615 /* end confdefs.h. */
16616 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
16617 For example, HP-UX 11i <limits.h> declares gettimeofday. */
16618 #define $ac_func innocuous_$ac_func
16620 /* System header to define __stub macros and hopefully few prototypes,
16621 which can conflict with char $ac_func (); below.
16622 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
16623 <limits.h> exists even on freestanding compilers. */
16625 #ifdef __STDC__
16626 # include <limits.h>
16627 #else
16628 # include <assert.h>
16629 #endif
16631 #undef $ac_func
16633 /* Override any GCC internal prototype to avoid an error.
16634 Use char because int might match the return type of a GCC
16635 builtin and then its argument prototype would still apply. */
16636 #ifdef __cplusplus
16637 extern "C"
16638 #endif
16639 char $ac_func ();
16640 /* The GNU C library defines this for functions which it implements
16641 to always fail with ENOSYS. Some functions are actually named
16642 something starting with __ and the normal name is an alias. */
16643 #if defined __stub_$ac_func || defined __stub___$ac_func
16644 choke me
16645 #endif
16648 main ()
16650 return $ac_func ();
16652 return 0;
16654 _ACEOF
16655 rm -f conftest.$ac_objext conftest$ac_exeext
16656 if { (ac_try="$ac_link"
16657 case "(($ac_try" in
16658 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16659 *) ac_try_echo=$ac_try;;
16660 esac
16661 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16662 (eval "$ac_link") 2>conftest.er1
16663 ac_status=$?
16664 grep -v '^ *+' conftest.er1 >conftest.err
16665 rm -f conftest.er1
16666 cat conftest.err >&5
16667 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16668 (exit $ac_status); } && {
16669 test -z "$ac_c_werror_flag" ||
16670 test ! -s conftest.err
16671 } && test -s conftest$ac_exeext &&
16672 $as_test_x conftest$ac_exeext; then
16673 eval "$as_ac_var=yes"
16674 else
16675 echo "$as_me: failed program was:" >&5
16676 sed 's/^/| /' conftest.$ac_ext >&5
16678 eval "$as_ac_var=no"
16681 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
16682 conftest$ac_exeext conftest.$ac_ext
16684 ac_res=`eval echo '${'$as_ac_var'}'`
16685 { echo "$as_me:$LINENO: result: $ac_res" >&5
16686 echo "${ECHO_T}$ac_res" >&6; }
16687 if test `eval echo '${'$as_ac_var'}'` = yes; then
16688 cat >>confdefs.h <<_ACEOF
16689 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
16690 _ACEOF
16693 done
16711 { echo "$as_me:$LINENO: checking for working mktime" >&5
16712 echo $ECHO_N "checking for working mktime... $ECHO_C" >&6; }
16713 if test "${ac_cv_func_working_mktime+set}" = set; then
16714 echo $ECHO_N "(cached) $ECHO_C" >&6
16715 else
16716 if test "$cross_compiling" = yes; then
16717 ac_cv_func_working_mktime=no
16718 else
16719 cat >conftest.$ac_ext <<_ACEOF
16720 /* confdefs.h. */
16721 _ACEOF
16722 cat confdefs.h >>conftest.$ac_ext
16723 cat >>conftest.$ac_ext <<_ACEOF
16724 /* end confdefs.h. */
16725 /* Test program from Paul Eggert and Tony Leneis. */
16726 #ifdef TIME_WITH_SYS_TIME
16727 # include <sys/time.h>
16728 # include <time.h>
16729 #else
16730 # ifdef HAVE_SYS_TIME_H
16731 # include <sys/time.h>
16732 # else
16733 # include <time.h>
16734 # endif
16735 #endif
16737 #include <stdlib.h>
16739 #ifdef HAVE_UNISTD_H
16740 # include <unistd.h>
16741 #endif
16743 #ifndef HAVE_ALARM
16744 # define alarm(X) /* empty */
16745 #endif
16747 /* Work around redefinition to rpl_putenv by other config tests. */
16748 #undef putenv
16750 static time_t time_t_max;
16751 static time_t time_t_min;
16753 /* Values we'll use to set the TZ environment variable. */
16754 static char *tz_strings[] = {
16755 (char *) 0, "TZ=GMT0", "TZ=JST-9",
16756 "TZ=EST+3EDT+2,M10.1.0/00:00:00,M2.3.0/00:00:00"
16758 #define N_STRINGS (sizeof (tz_strings) / sizeof (tz_strings[0]))
16760 /* Return 0 if mktime fails to convert a date in the spring-forward gap.
16761 Based on a problem report from Andreas Jaeger. */
16762 static int
16763 spring_forward_gap ()
16765 /* glibc (up to about 1998-10-07) failed this test. */
16766 struct tm tm;
16768 /* Use the portable POSIX.1 specification "TZ=PST8PDT,M4.1.0,M10.5.0"
16769 instead of "TZ=America/Vancouver" in order to detect the bug even
16770 on systems that don't support the Olson extension, or don't have the
16771 full zoneinfo tables installed. */
16772 putenv ("TZ=PST8PDT,M4.1.0,M10.5.0");
16774 tm.tm_year = 98;
16775 tm.tm_mon = 3;
16776 tm.tm_mday = 5;
16777 tm.tm_hour = 2;
16778 tm.tm_min = 0;
16779 tm.tm_sec = 0;
16780 tm.tm_isdst = -1;
16781 return mktime (&tm) != (time_t) -1;
16784 static int
16785 mktime_test1 (now)
16786 time_t now;
16788 struct tm *lt;
16789 return ! (lt = localtime (&now)) || mktime (lt) == now;
16792 static int
16793 mktime_test (now)
16794 time_t now;
16796 return (mktime_test1 (now)
16797 && mktime_test1 ((time_t) (time_t_max - now))
16798 && mktime_test1 ((time_t) (time_t_min + now)));
16801 static int
16802 irix_6_4_bug ()
16804 /* Based on code from Ariel Faigon. */
16805 struct tm tm;
16806 tm.tm_year = 96;
16807 tm.tm_mon = 3;
16808 tm.tm_mday = 0;
16809 tm.tm_hour = 0;
16810 tm.tm_min = 0;
16811 tm.tm_sec = 0;
16812 tm.tm_isdst = -1;
16813 mktime (&tm);
16814 return tm.tm_mon == 2 && tm.tm_mday == 31;
16817 static int
16818 bigtime_test (j)
16819 int j;
16821 struct tm tm;
16822 time_t now;
16823 tm.tm_year = tm.tm_mon = tm.tm_mday = tm.tm_hour = tm.tm_min = tm.tm_sec = j;
16824 now = mktime (&tm);
16825 if (now != (time_t) -1)
16827 struct tm *lt = localtime (&now);
16828 if (! (lt
16829 && lt->tm_year == tm.tm_year
16830 && lt->tm_mon == tm.tm_mon
16831 && lt->tm_mday == tm.tm_mday
16832 && lt->tm_hour == tm.tm_hour
16833 && lt->tm_min == tm.tm_min
16834 && lt->tm_sec == tm.tm_sec
16835 && lt->tm_yday == tm.tm_yday
16836 && lt->tm_wday == tm.tm_wday
16837 && ((lt->tm_isdst < 0 ? -1 : 0 < lt->tm_isdst)
16838 == (tm.tm_isdst < 0 ? -1 : 0 < tm.tm_isdst))))
16839 return 0;
16841 return 1;
16844 static int
16845 year_2050_test ()
16847 /* The correct answer for 2050-02-01 00:00:00 in Pacific time,
16848 ignoring leap seconds. */
16849 unsigned long int answer = 2527315200UL;
16851 struct tm tm;
16852 time_t t;
16853 tm.tm_year = 2050 - 1900;
16854 tm.tm_mon = 2 - 1;
16855 tm.tm_mday = 1;
16856 tm.tm_hour = tm.tm_min = tm.tm_sec = 0;
16857 tm.tm_isdst = -1;
16859 /* Use the portable POSIX.1 specification "TZ=PST8PDT,M4.1.0,M10.5.0"
16860 instead of "TZ=America/Vancouver" in order to detect the bug even
16861 on systems that don't support the Olson extension, or don't have the
16862 full zoneinfo tables installed. */
16863 putenv ("TZ=PST8PDT,M4.1.0,M10.5.0");
16865 t = mktime (&tm);
16867 /* Check that the result is either a failure, or close enough
16868 to the correct answer that we can assume the discrepancy is
16869 due to leap seconds. */
16870 return (t == (time_t) -1
16871 || (0 < t && answer - 120 <= t && t <= answer + 120));
16875 main ()
16877 time_t t, delta;
16878 int i, j;
16880 /* This test makes some buggy mktime implementations loop.
16881 Give up after 60 seconds; a mktime slower than that
16882 isn't worth using anyway. */
16883 alarm (60);
16885 for (time_t_max = 1; 0 < time_t_max; time_t_max *= 2)
16886 continue;
16887 time_t_max--;
16888 if ((time_t) -1 < 0)
16889 for (time_t_min = -1; (time_t) (time_t_min * 2) < 0; time_t_min *= 2)
16890 continue;
16891 delta = time_t_max / 997; /* a suitable prime number */
16892 for (i = 0; i < N_STRINGS; i++)
16894 if (tz_strings[i])
16895 putenv (tz_strings[i]);
16897 for (t = 0; t <= time_t_max - delta; t += delta)
16898 if (! mktime_test (t))
16899 return 1;
16900 if (! (mktime_test ((time_t) 1)
16901 && mktime_test ((time_t) (60 * 60))
16902 && mktime_test ((time_t) (60 * 60 * 24))))
16903 return 1;
16905 for (j = 1; 0 < j; j *= 2)
16906 if (! bigtime_test (j))
16907 return 1;
16908 if (! bigtime_test (j - 1))
16909 return 1;
16911 return ! (irix_6_4_bug () && spring_forward_gap () && year_2050_test ());
16913 _ACEOF
16914 rm -f conftest$ac_exeext
16915 if { (ac_try="$ac_link"
16916 case "(($ac_try" in
16917 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16918 *) ac_try_echo=$ac_try;;
16919 esac
16920 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16921 (eval "$ac_link") 2>&5
16922 ac_status=$?
16923 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16924 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
16925 { (case "(($ac_try" in
16926 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16927 *) ac_try_echo=$ac_try;;
16928 esac
16929 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16930 (eval "$ac_try") 2>&5
16931 ac_status=$?
16932 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16933 (exit $ac_status); }; }; then
16934 ac_cv_func_working_mktime=yes
16935 else
16936 echo "$as_me: program exited with status $ac_status" >&5
16937 echo "$as_me: failed program was:" >&5
16938 sed 's/^/| /' conftest.$ac_ext >&5
16940 ( exit $ac_status )
16941 ac_cv_func_working_mktime=no
16943 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
16948 { echo "$as_me:$LINENO: result: $ac_cv_func_working_mktime" >&5
16949 echo "${ECHO_T}$ac_cv_func_working_mktime" >&6; }
16950 if test $ac_cv_func_working_mktime = no; then
16951 case " $LIBOBJS " in
16952 *" mktime.$ac_objext "* ) ;;
16953 *) LIBOBJS="$LIBOBJS mktime.$ac_objext"
16955 esac
16959 if test "$ac_cv_func_working_mktime" = no; then
16961 cat >>confdefs.h <<\_ACEOF
16962 #define BROKEN_MKTIME 1
16963 _ACEOF
16967 ac_have_func=no # yes means we've found a way to get the load average.
16969 # Make sure getloadavg.c is where it belongs, at configure-time.
16970 test -f "$srcdir/$ac_config_libobj_dir/getloadavg.c" ||
16971 { { echo "$as_me:$LINENO: error: $srcdir/$ac_config_libobj_dir/getloadavg.c is missing" >&5
16972 echo "$as_me: error: $srcdir/$ac_config_libobj_dir/getloadavg.c is missing" >&2;}
16973 { (exit 1); exit 1; }; }
16975 ac_save_LIBS=$LIBS
16977 # Check for getloadavg, but be sure not to touch the cache variable.
16978 ({ echo "$as_me:$LINENO: checking for getloadavg" >&5
16979 echo $ECHO_N "checking for getloadavg... $ECHO_C" >&6; }
16980 if test "${ac_cv_func_getloadavg+set}" = set; then
16981 echo $ECHO_N "(cached) $ECHO_C" >&6
16982 else
16983 cat >conftest.$ac_ext <<_ACEOF
16984 /* confdefs.h. */
16985 _ACEOF
16986 cat confdefs.h >>conftest.$ac_ext
16987 cat >>conftest.$ac_ext <<_ACEOF
16988 /* end confdefs.h. */
16989 /* Define getloadavg to an innocuous variant, in case <limits.h> declares getloadavg.
16990 For example, HP-UX 11i <limits.h> declares gettimeofday. */
16991 #define getloadavg innocuous_getloadavg
16993 /* System header to define __stub macros and hopefully few prototypes,
16994 which can conflict with char getloadavg (); below.
16995 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
16996 <limits.h> exists even on freestanding compilers. */
16998 #ifdef __STDC__
16999 # include <limits.h>
17000 #else
17001 # include <assert.h>
17002 #endif
17004 #undef getloadavg
17006 /* Override any GCC internal prototype to avoid an error.
17007 Use char because int might match the return type of a GCC
17008 builtin and then its argument prototype would still apply. */
17009 #ifdef __cplusplus
17010 extern "C"
17011 #endif
17012 char getloadavg ();
17013 /* The GNU C library defines this for functions which it implements
17014 to always fail with ENOSYS. Some functions are actually named
17015 something starting with __ and the normal name is an alias. */
17016 #if defined __stub_getloadavg || defined __stub___getloadavg
17017 choke me
17018 #endif
17021 main ()
17023 return getloadavg ();
17025 return 0;
17027 _ACEOF
17028 rm -f conftest.$ac_objext conftest$ac_exeext
17029 if { (ac_try="$ac_link"
17030 case "(($ac_try" in
17031 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17032 *) ac_try_echo=$ac_try;;
17033 esac
17034 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17035 (eval "$ac_link") 2>conftest.er1
17036 ac_status=$?
17037 grep -v '^ *+' conftest.er1 >conftest.err
17038 rm -f conftest.er1
17039 cat conftest.err >&5
17040 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17041 (exit $ac_status); } && {
17042 test -z "$ac_c_werror_flag" ||
17043 test ! -s conftest.err
17044 } && test -s conftest$ac_exeext &&
17045 $as_test_x conftest$ac_exeext; then
17046 ac_cv_func_getloadavg=yes
17047 else
17048 echo "$as_me: failed program was:" >&5
17049 sed 's/^/| /' conftest.$ac_ext >&5
17051 ac_cv_func_getloadavg=no
17054 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
17055 conftest$ac_exeext conftest.$ac_ext
17057 { echo "$as_me:$LINENO: result: $ac_cv_func_getloadavg" >&5
17058 echo "${ECHO_T}$ac_cv_func_getloadavg" >&6; }
17059 if test $ac_cv_func_getloadavg = yes; then
17060 exit 0
17061 else
17062 exit 1
17064 ) && ac_have_func=yes
17066 # On HPUX9, an unprivileged user can get load averages through this function.
17068 for ac_func in pstat_getdynamic
17070 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
17071 { echo "$as_me:$LINENO: checking for $ac_func" >&5
17072 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
17073 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
17074 echo $ECHO_N "(cached) $ECHO_C" >&6
17075 else
17076 cat >conftest.$ac_ext <<_ACEOF
17077 /* confdefs.h. */
17078 _ACEOF
17079 cat confdefs.h >>conftest.$ac_ext
17080 cat >>conftest.$ac_ext <<_ACEOF
17081 /* end confdefs.h. */
17082 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
17083 For example, HP-UX 11i <limits.h> declares gettimeofday. */
17084 #define $ac_func innocuous_$ac_func
17086 /* System header to define __stub macros and hopefully few prototypes,
17087 which can conflict with char $ac_func (); below.
17088 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
17089 <limits.h> exists even on freestanding compilers. */
17091 #ifdef __STDC__
17092 # include <limits.h>
17093 #else
17094 # include <assert.h>
17095 #endif
17097 #undef $ac_func
17099 /* Override any GCC internal prototype to avoid an error.
17100 Use char because int might match the return type of a GCC
17101 builtin and then its argument prototype would still apply. */
17102 #ifdef __cplusplus
17103 extern "C"
17104 #endif
17105 char $ac_func ();
17106 /* The GNU C library defines this for functions which it implements
17107 to always fail with ENOSYS. Some functions are actually named
17108 something starting with __ and the normal name is an alias. */
17109 #if defined __stub_$ac_func || defined __stub___$ac_func
17110 choke me
17111 #endif
17114 main ()
17116 return $ac_func ();
17118 return 0;
17120 _ACEOF
17121 rm -f conftest.$ac_objext conftest$ac_exeext
17122 if { (ac_try="$ac_link"
17123 case "(($ac_try" in
17124 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17125 *) ac_try_echo=$ac_try;;
17126 esac
17127 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17128 (eval "$ac_link") 2>conftest.er1
17129 ac_status=$?
17130 grep -v '^ *+' conftest.er1 >conftest.err
17131 rm -f conftest.er1
17132 cat conftest.err >&5
17133 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17134 (exit $ac_status); } && {
17135 test -z "$ac_c_werror_flag" ||
17136 test ! -s conftest.err
17137 } && test -s conftest$ac_exeext &&
17138 $as_test_x conftest$ac_exeext; then
17139 eval "$as_ac_var=yes"
17140 else
17141 echo "$as_me: failed program was:" >&5
17142 sed 's/^/| /' conftest.$ac_ext >&5
17144 eval "$as_ac_var=no"
17147 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
17148 conftest$ac_exeext conftest.$ac_ext
17150 ac_res=`eval echo '${'$as_ac_var'}'`
17151 { echo "$as_me:$LINENO: result: $ac_res" >&5
17152 echo "${ECHO_T}$ac_res" >&6; }
17153 if test `eval echo '${'$as_ac_var'}'` = yes; then
17154 cat >>confdefs.h <<_ACEOF
17155 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
17156 _ACEOF
17159 done
17162 # Solaris has libkstat which does not require root.
17164 { echo "$as_me:$LINENO: checking for kstat_open in -lkstat" >&5
17165 echo $ECHO_N "checking for kstat_open in -lkstat... $ECHO_C" >&6; }
17166 if test "${ac_cv_lib_kstat_kstat_open+set}" = set; then
17167 echo $ECHO_N "(cached) $ECHO_C" >&6
17168 else
17169 ac_check_lib_save_LIBS=$LIBS
17170 LIBS="-lkstat $LIBS"
17171 cat >conftest.$ac_ext <<_ACEOF
17172 /* confdefs.h. */
17173 _ACEOF
17174 cat confdefs.h >>conftest.$ac_ext
17175 cat >>conftest.$ac_ext <<_ACEOF
17176 /* end confdefs.h. */
17178 /* Override any GCC internal prototype to avoid an error.
17179 Use char because int might match the return type of a GCC
17180 builtin and then its argument prototype would still apply. */
17181 #ifdef __cplusplus
17182 extern "C"
17183 #endif
17184 char kstat_open ();
17186 main ()
17188 return kstat_open ();
17190 return 0;
17192 _ACEOF
17193 rm -f conftest.$ac_objext conftest$ac_exeext
17194 if { (ac_try="$ac_link"
17195 case "(($ac_try" in
17196 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17197 *) ac_try_echo=$ac_try;;
17198 esac
17199 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17200 (eval "$ac_link") 2>conftest.er1
17201 ac_status=$?
17202 grep -v '^ *+' conftest.er1 >conftest.err
17203 rm -f conftest.er1
17204 cat conftest.err >&5
17205 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17206 (exit $ac_status); } && {
17207 test -z "$ac_c_werror_flag" ||
17208 test ! -s conftest.err
17209 } && test -s conftest$ac_exeext &&
17210 $as_test_x conftest$ac_exeext; then
17211 ac_cv_lib_kstat_kstat_open=yes
17212 else
17213 echo "$as_me: failed program was:" >&5
17214 sed 's/^/| /' conftest.$ac_ext >&5
17216 ac_cv_lib_kstat_kstat_open=no
17219 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
17220 conftest$ac_exeext conftest.$ac_ext
17221 LIBS=$ac_check_lib_save_LIBS
17223 { echo "$as_me:$LINENO: result: $ac_cv_lib_kstat_kstat_open" >&5
17224 echo "${ECHO_T}$ac_cv_lib_kstat_kstat_open" >&6; }
17225 if test $ac_cv_lib_kstat_kstat_open = yes; then
17226 cat >>confdefs.h <<_ACEOF
17227 #define HAVE_LIBKSTAT 1
17228 _ACEOF
17230 LIBS="-lkstat $LIBS"
17234 test $ac_cv_lib_kstat_kstat_open = yes && ac_have_func=yes
17236 # Some systems with -lutil have (and need) -lkvm as well, some do not.
17237 # On Solaris, -lkvm requires nlist from -lelf, so check that first
17238 # to get the right answer into the cache.
17239 # For kstat on solaris, we need libelf to force the definition of SVR4 below.
17240 if test $ac_have_func = no; then
17241 { echo "$as_me:$LINENO: checking for elf_begin in -lelf" >&5
17242 echo $ECHO_N "checking for elf_begin in -lelf... $ECHO_C" >&6; }
17243 if test "${ac_cv_lib_elf_elf_begin+set}" = set; then
17244 echo $ECHO_N "(cached) $ECHO_C" >&6
17245 else
17246 ac_check_lib_save_LIBS=$LIBS
17247 LIBS="-lelf $LIBS"
17248 cat >conftest.$ac_ext <<_ACEOF
17249 /* confdefs.h. */
17250 _ACEOF
17251 cat confdefs.h >>conftest.$ac_ext
17252 cat >>conftest.$ac_ext <<_ACEOF
17253 /* end confdefs.h. */
17255 /* Override any GCC internal prototype to avoid an error.
17256 Use char because int might match the return type of a GCC
17257 builtin and then its argument prototype would still apply. */
17258 #ifdef __cplusplus
17259 extern "C"
17260 #endif
17261 char elf_begin ();
17263 main ()
17265 return elf_begin ();
17267 return 0;
17269 _ACEOF
17270 rm -f conftest.$ac_objext conftest$ac_exeext
17271 if { (ac_try="$ac_link"
17272 case "(($ac_try" in
17273 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17274 *) ac_try_echo=$ac_try;;
17275 esac
17276 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17277 (eval "$ac_link") 2>conftest.er1
17278 ac_status=$?
17279 grep -v '^ *+' conftest.er1 >conftest.err
17280 rm -f conftest.er1
17281 cat conftest.err >&5
17282 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17283 (exit $ac_status); } && {
17284 test -z "$ac_c_werror_flag" ||
17285 test ! -s conftest.err
17286 } && test -s conftest$ac_exeext &&
17287 $as_test_x conftest$ac_exeext; then
17288 ac_cv_lib_elf_elf_begin=yes
17289 else
17290 echo "$as_me: failed program was:" >&5
17291 sed 's/^/| /' conftest.$ac_ext >&5
17293 ac_cv_lib_elf_elf_begin=no
17296 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
17297 conftest$ac_exeext conftest.$ac_ext
17298 LIBS=$ac_check_lib_save_LIBS
17300 { echo "$as_me:$LINENO: result: $ac_cv_lib_elf_elf_begin" >&5
17301 echo "${ECHO_T}$ac_cv_lib_elf_elf_begin" >&6; }
17302 if test $ac_cv_lib_elf_elf_begin = yes; then
17303 LIBS="-lelf $LIBS"
17307 if test $ac_have_func = no; then
17308 { echo "$as_me:$LINENO: checking for kvm_open in -lkvm" >&5
17309 echo $ECHO_N "checking for kvm_open in -lkvm... $ECHO_C" >&6; }
17310 if test "${ac_cv_lib_kvm_kvm_open+set}" = set; then
17311 echo $ECHO_N "(cached) $ECHO_C" >&6
17312 else
17313 ac_check_lib_save_LIBS=$LIBS
17314 LIBS="-lkvm $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 kvm_open ();
17330 main ()
17332 return kvm_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_kvm_kvm_open=yes
17356 else
17357 echo "$as_me: failed program was:" >&5
17358 sed 's/^/| /' conftest.$ac_ext >&5
17360 ac_cv_lib_kvm_kvm_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_kvm_kvm_open" >&5
17368 echo "${ECHO_T}$ac_cv_lib_kvm_kvm_open" >&6; }
17369 if test $ac_cv_lib_kvm_kvm_open = yes; then
17370 LIBS="-lkvm $LIBS"
17373 # Check for the 4.4BSD definition of getloadavg.
17374 { echo "$as_me:$LINENO: checking for getloadavg in -lutil" >&5
17375 echo $ECHO_N "checking for getloadavg in -lutil... $ECHO_C" >&6; }
17376 if test "${ac_cv_lib_util_getloadavg+set}" = set; then
17377 echo $ECHO_N "(cached) $ECHO_C" >&6
17378 else
17379 ac_check_lib_save_LIBS=$LIBS
17380 LIBS="-lutil $LIBS"
17381 cat >conftest.$ac_ext <<_ACEOF
17382 /* confdefs.h. */
17383 _ACEOF
17384 cat confdefs.h >>conftest.$ac_ext
17385 cat >>conftest.$ac_ext <<_ACEOF
17386 /* end confdefs.h. */
17388 /* Override any GCC internal prototype to avoid an error.
17389 Use char because int might match the return type of a GCC
17390 builtin and then its argument prototype would still apply. */
17391 #ifdef __cplusplus
17392 extern "C"
17393 #endif
17394 char getloadavg ();
17396 main ()
17398 return getloadavg ();
17400 return 0;
17402 _ACEOF
17403 rm -f conftest.$ac_objext conftest$ac_exeext
17404 if { (ac_try="$ac_link"
17405 case "(($ac_try" in
17406 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17407 *) ac_try_echo=$ac_try;;
17408 esac
17409 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17410 (eval "$ac_link") 2>conftest.er1
17411 ac_status=$?
17412 grep -v '^ *+' conftest.er1 >conftest.err
17413 rm -f conftest.er1
17414 cat conftest.err >&5
17415 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17416 (exit $ac_status); } && {
17417 test -z "$ac_c_werror_flag" ||
17418 test ! -s conftest.err
17419 } && test -s conftest$ac_exeext &&
17420 $as_test_x conftest$ac_exeext; then
17421 ac_cv_lib_util_getloadavg=yes
17422 else
17423 echo "$as_me: failed program was:" >&5
17424 sed 's/^/| /' conftest.$ac_ext >&5
17426 ac_cv_lib_util_getloadavg=no
17429 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
17430 conftest$ac_exeext conftest.$ac_ext
17431 LIBS=$ac_check_lib_save_LIBS
17433 { echo "$as_me:$LINENO: result: $ac_cv_lib_util_getloadavg" >&5
17434 echo "${ECHO_T}$ac_cv_lib_util_getloadavg" >&6; }
17435 if test $ac_cv_lib_util_getloadavg = yes; then
17436 LIBS="-lutil $LIBS" ac_have_func=yes ac_cv_func_getloadavg_setgid=yes
17441 if test $ac_have_func = no; then
17442 # There is a commonly available library for RS/6000 AIX.
17443 # Since it is not a standard part of AIX, it might be installed locally.
17444 ac_getloadavg_LIBS=$LIBS
17445 LIBS="-L/usr/local/lib $LIBS"
17446 { echo "$as_me:$LINENO: checking for getloadavg in -lgetloadavg" >&5
17447 echo $ECHO_N "checking for getloadavg in -lgetloadavg... $ECHO_C" >&6; }
17448 if test "${ac_cv_lib_getloadavg_getloadavg+set}" = set; then
17449 echo $ECHO_N "(cached) $ECHO_C" >&6
17450 else
17451 ac_check_lib_save_LIBS=$LIBS
17452 LIBS="-lgetloadavg $LIBS"
17453 cat >conftest.$ac_ext <<_ACEOF
17454 /* confdefs.h. */
17455 _ACEOF
17456 cat confdefs.h >>conftest.$ac_ext
17457 cat >>conftest.$ac_ext <<_ACEOF
17458 /* end confdefs.h. */
17460 /* Override any GCC internal prototype to avoid an error.
17461 Use char because int might match the return type of a GCC
17462 builtin and then its argument prototype would still apply. */
17463 #ifdef __cplusplus
17464 extern "C"
17465 #endif
17466 char getloadavg ();
17468 main ()
17470 return getloadavg ();
17472 return 0;
17474 _ACEOF
17475 rm -f conftest.$ac_objext conftest$ac_exeext
17476 if { (ac_try="$ac_link"
17477 case "(($ac_try" in
17478 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17479 *) ac_try_echo=$ac_try;;
17480 esac
17481 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17482 (eval "$ac_link") 2>conftest.er1
17483 ac_status=$?
17484 grep -v '^ *+' conftest.er1 >conftest.err
17485 rm -f conftest.er1
17486 cat conftest.err >&5
17487 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17488 (exit $ac_status); } && {
17489 test -z "$ac_c_werror_flag" ||
17490 test ! -s conftest.err
17491 } && test -s conftest$ac_exeext &&
17492 $as_test_x conftest$ac_exeext; then
17493 ac_cv_lib_getloadavg_getloadavg=yes
17494 else
17495 echo "$as_me: failed program was:" >&5
17496 sed 's/^/| /' conftest.$ac_ext >&5
17498 ac_cv_lib_getloadavg_getloadavg=no
17501 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
17502 conftest$ac_exeext conftest.$ac_ext
17503 LIBS=$ac_check_lib_save_LIBS
17505 { echo "$as_me:$LINENO: result: $ac_cv_lib_getloadavg_getloadavg" >&5
17506 echo "${ECHO_T}$ac_cv_lib_getloadavg_getloadavg" >&6; }
17507 if test $ac_cv_lib_getloadavg_getloadavg = yes; then
17508 LIBS="-lgetloadavg $LIBS"
17509 else
17510 LIBS=$ac_getloadavg_LIBS
17515 # Make sure it is really in the library, if we think we found it,
17516 # otherwise set up the replacement function.
17518 for ac_func in getloadavg
17520 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
17521 { echo "$as_me:$LINENO: checking for $ac_func" >&5
17522 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
17523 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
17524 echo $ECHO_N "(cached) $ECHO_C" >&6
17525 else
17526 cat >conftest.$ac_ext <<_ACEOF
17527 /* confdefs.h. */
17528 _ACEOF
17529 cat confdefs.h >>conftest.$ac_ext
17530 cat >>conftest.$ac_ext <<_ACEOF
17531 /* end confdefs.h. */
17532 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
17533 For example, HP-UX 11i <limits.h> declares gettimeofday. */
17534 #define $ac_func innocuous_$ac_func
17536 /* System header to define __stub macros and hopefully few prototypes,
17537 which can conflict with char $ac_func (); below.
17538 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
17539 <limits.h> exists even on freestanding compilers. */
17541 #ifdef __STDC__
17542 # include <limits.h>
17543 #else
17544 # include <assert.h>
17545 #endif
17547 #undef $ac_func
17549 /* Override any GCC internal prototype to avoid an error.
17550 Use char because int might match the return type of a GCC
17551 builtin and then its argument prototype would still apply. */
17552 #ifdef __cplusplus
17553 extern "C"
17554 #endif
17555 char $ac_func ();
17556 /* The GNU C library defines this for functions which it implements
17557 to always fail with ENOSYS. Some functions are actually named
17558 something starting with __ and the normal name is an alias. */
17559 #if defined __stub_$ac_func || defined __stub___$ac_func
17560 choke me
17561 #endif
17564 main ()
17566 return $ac_func ();
17568 return 0;
17570 _ACEOF
17571 rm -f conftest.$ac_objext conftest$ac_exeext
17572 if { (ac_try="$ac_link"
17573 case "(($ac_try" in
17574 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17575 *) ac_try_echo=$ac_try;;
17576 esac
17577 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17578 (eval "$ac_link") 2>conftest.er1
17579 ac_status=$?
17580 grep -v '^ *+' conftest.er1 >conftest.err
17581 rm -f conftest.er1
17582 cat conftest.err >&5
17583 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17584 (exit $ac_status); } && {
17585 test -z "$ac_c_werror_flag" ||
17586 test ! -s conftest.err
17587 } && test -s conftest$ac_exeext &&
17588 $as_test_x conftest$ac_exeext; then
17589 eval "$as_ac_var=yes"
17590 else
17591 echo "$as_me: failed program was:" >&5
17592 sed 's/^/| /' conftest.$ac_ext >&5
17594 eval "$as_ac_var=no"
17597 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
17598 conftest$ac_exeext conftest.$ac_ext
17600 ac_res=`eval echo '${'$as_ac_var'}'`
17601 { echo "$as_me:$LINENO: result: $ac_res" >&5
17602 echo "${ECHO_T}$ac_res" >&6; }
17603 if test `eval echo '${'$as_ac_var'}'` = yes; then
17604 cat >>confdefs.h <<_ACEOF
17605 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
17606 _ACEOF
17608 else
17609 case " $LIBOBJS " in
17610 *" getloadavg.$ac_objext "* ) ;;
17611 *) LIBOBJS="$LIBOBJS getloadavg.$ac_objext"
17613 esac
17616 cat >>confdefs.h <<\_ACEOF
17617 #define C_GETLOADAVG 1
17618 _ACEOF
17620 # Figure out what our getloadavg.c needs.
17621 ac_have_func=no
17622 if test "${ac_cv_header_sys_dg_sys_info_h+set}" = set; then
17623 { echo "$as_me:$LINENO: checking for sys/dg_sys_info.h" >&5
17624 echo $ECHO_N "checking for sys/dg_sys_info.h... $ECHO_C" >&6; }
17625 if test "${ac_cv_header_sys_dg_sys_info_h+set}" = set; then
17626 echo $ECHO_N "(cached) $ECHO_C" >&6
17628 { echo "$as_me:$LINENO: result: $ac_cv_header_sys_dg_sys_info_h" >&5
17629 echo "${ECHO_T}$ac_cv_header_sys_dg_sys_info_h" >&6; }
17630 else
17631 # Is the header compilable?
17632 { echo "$as_me:$LINENO: checking sys/dg_sys_info.h usability" >&5
17633 echo $ECHO_N "checking sys/dg_sys_info.h usability... $ECHO_C" >&6; }
17634 cat >conftest.$ac_ext <<_ACEOF
17635 /* confdefs.h. */
17636 _ACEOF
17637 cat confdefs.h >>conftest.$ac_ext
17638 cat >>conftest.$ac_ext <<_ACEOF
17639 /* end confdefs.h. */
17640 $ac_includes_default
17641 #include <sys/dg_sys_info.h>
17642 _ACEOF
17643 rm -f conftest.$ac_objext
17644 if { (ac_try="$ac_compile"
17645 case "(($ac_try" in
17646 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17647 *) ac_try_echo=$ac_try;;
17648 esac
17649 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17650 (eval "$ac_compile") 2>conftest.er1
17651 ac_status=$?
17652 grep -v '^ *+' conftest.er1 >conftest.err
17653 rm -f conftest.er1
17654 cat conftest.err >&5
17655 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17656 (exit $ac_status); } && {
17657 test -z "$ac_c_werror_flag" ||
17658 test ! -s conftest.err
17659 } && test -s conftest.$ac_objext; then
17660 ac_header_compiler=yes
17661 else
17662 echo "$as_me: failed program was:" >&5
17663 sed 's/^/| /' conftest.$ac_ext >&5
17665 ac_header_compiler=no
17668 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17669 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
17670 echo "${ECHO_T}$ac_header_compiler" >&6; }
17672 # Is the header present?
17673 { echo "$as_me:$LINENO: checking sys/dg_sys_info.h presence" >&5
17674 echo $ECHO_N "checking sys/dg_sys_info.h presence... $ECHO_C" >&6; }
17675 cat >conftest.$ac_ext <<_ACEOF
17676 /* confdefs.h. */
17677 _ACEOF
17678 cat confdefs.h >>conftest.$ac_ext
17679 cat >>conftest.$ac_ext <<_ACEOF
17680 /* end confdefs.h. */
17681 #include <sys/dg_sys_info.h>
17682 _ACEOF
17683 if { (ac_try="$ac_cpp conftest.$ac_ext"
17684 case "(($ac_try" in
17685 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17686 *) ac_try_echo=$ac_try;;
17687 esac
17688 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17689 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
17690 ac_status=$?
17691 grep -v '^ *+' conftest.er1 >conftest.err
17692 rm -f conftest.er1
17693 cat conftest.err >&5
17694 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17695 (exit $ac_status); } >/dev/null && {
17696 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
17697 test ! -s conftest.err
17698 }; then
17699 ac_header_preproc=yes
17700 else
17701 echo "$as_me: failed program was:" >&5
17702 sed 's/^/| /' conftest.$ac_ext >&5
17704 ac_header_preproc=no
17707 rm -f conftest.err conftest.$ac_ext
17708 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
17709 echo "${ECHO_T}$ac_header_preproc" >&6; }
17711 # So? What about this header?
17712 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
17713 yes:no: )
17714 { echo "$as_me:$LINENO: WARNING: sys/dg_sys_info.h: accepted by the compiler, rejected by the preprocessor!" >&5
17715 echo "$as_me: WARNING: sys/dg_sys_info.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
17716 { echo "$as_me:$LINENO: WARNING: sys/dg_sys_info.h: proceeding with the compiler's result" >&5
17717 echo "$as_me: WARNING: sys/dg_sys_info.h: proceeding with the compiler's result" >&2;}
17718 ac_header_preproc=yes
17720 no:yes:* )
17721 { echo "$as_me:$LINENO: WARNING: sys/dg_sys_info.h: present but cannot be compiled" >&5
17722 echo "$as_me: WARNING: sys/dg_sys_info.h: present but cannot be compiled" >&2;}
17723 { echo "$as_me:$LINENO: WARNING: sys/dg_sys_info.h: check for missing prerequisite headers?" >&5
17724 echo "$as_me: WARNING: sys/dg_sys_info.h: check for missing prerequisite headers?" >&2;}
17725 { echo "$as_me:$LINENO: WARNING: sys/dg_sys_info.h: see the Autoconf documentation" >&5
17726 echo "$as_me: WARNING: sys/dg_sys_info.h: see the Autoconf documentation" >&2;}
17727 { echo "$as_me:$LINENO: WARNING: sys/dg_sys_info.h: section \"Present But Cannot Be Compiled\"" >&5
17728 echo "$as_me: WARNING: sys/dg_sys_info.h: section \"Present But Cannot Be Compiled\"" >&2;}
17729 { echo "$as_me:$LINENO: WARNING: sys/dg_sys_info.h: proceeding with the preprocessor's result" >&5
17730 echo "$as_me: WARNING: sys/dg_sys_info.h: proceeding with the preprocessor's result" >&2;}
17731 { echo "$as_me:$LINENO: WARNING: sys/dg_sys_info.h: in the future, the compiler will take precedence" >&5
17732 echo "$as_me: WARNING: sys/dg_sys_info.h: in the future, the compiler will take precedence" >&2;}
17735 esac
17736 { echo "$as_me:$LINENO: checking for sys/dg_sys_info.h" >&5
17737 echo $ECHO_N "checking for sys/dg_sys_info.h... $ECHO_C" >&6; }
17738 if test "${ac_cv_header_sys_dg_sys_info_h+set}" = set; then
17739 echo $ECHO_N "(cached) $ECHO_C" >&6
17740 else
17741 ac_cv_header_sys_dg_sys_info_h=$ac_header_preproc
17743 { echo "$as_me:$LINENO: result: $ac_cv_header_sys_dg_sys_info_h" >&5
17744 echo "${ECHO_T}$ac_cv_header_sys_dg_sys_info_h" >&6; }
17747 if test $ac_cv_header_sys_dg_sys_info_h = yes; then
17748 ac_have_func=yes
17750 cat >>confdefs.h <<\_ACEOF
17751 #define DGUX 1
17752 _ACEOF
17755 { echo "$as_me:$LINENO: checking for dg_sys_info in -ldgc" >&5
17756 echo $ECHO_N "checking for dg_sys_info in -ldgc... $ECHO_C" >&6; }
17757 if test "${ac_cv_lib_dgc_dg_sys_info+set}" = set; then
17758 echo $ECHO_N "(cached) $ECHO_C" >&6
17759 else
17760 ac_check_lib_save_LIBS=$LIBS
17761 LIBS="-ldgc $LIBS"
17762 cat >conftest.$ac_ext <<_ACEOF
17763 /* confdefs.h. */
17764 _ACEOF
17765 cat confdefs.h >>conftest.$ac_ext
17766 cat >>conftest.$ac_ext <<_ACEOF
17767 /* end confdefs.h. */
17769 /* Override any GCC internal prototype to avoid an error.
17770 Use char because int might match the return type of a GCC
17771 builtin and then its argument prototype would still apply. */
17772 #ifdef __cplusplus
17773 extern "C"
17774 #endif
17775 char dg_sys_info ();
17777 main ()
17779 return dg_sys_info ();
17781 return 0;
17783 _ACEOF
17784 rm -f conftest.$ac_objext conftest$ac_exeext
17785 if { (ac_try="$ac_link"
17786 case "(($ac_try" in
17787 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17788 *) ac_try_echo=$ac_try;;
17789 esac
17790 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17791 (eval "$ac_link") 2>conftest.er1
17792 ac_status=$?
17793 grep -v '^ *+' conftest.er1 >conftest.err
17794 rm -f conftest.er1
17795 cat conftest.err >&5
17796 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17797 (exit $ac_status); } && {
17798 test -z "$ac_c_werror_flag" ||
17799 test ! -s conftest.err
17800 } && test -s conftest$ac_exeext &&
17801 $as_test_x conftest$ac_exeext; then
17802 ac_cv_lib_dgc_dg_sys_info=yes
17803 else
17804 echo "$as_me: failed program was:" >&5
17805 sed 's/^/| /' conftest.$ac_ext >&5
17807 ac_cv_lib_dgc_dg_sys_info=no
17810 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
17811 conftest$ac_exeext conftest.$ac_ext
17812 LIBS=$ac_check_lib_save_LIBS
17814 { echo "$as_me:$LINENO: result: $ac_cv_lib_dgc_dg_sys_info" >&5
17815 echo "${ECHO_T}$ac_cv_lib_dgc_dg_sys_info" >&6; }
17816 if test $ac_cv_lib_dgc_dg_sys_info = yes; then
17817 cat >>confdefs.h <<_ACEOF
17818 #define HAVE_LIBDGC 1
17819 _ACEOF
17821 LIBS="-ldgc $LIBS"
17829 if test "${ac_cv_header_locale_h+set}" = set; then
17830 { echo "$as_me:$LINENO: checking for locale.h" >&5
17831 echo $ECHO_N "checking for locale.h... $ECHO_C" >&6; }
17832 if test "${ac_cv_header_locale_h+set}" = set; then
17833 echo $ECHO_N "(cached) $ECHO_C" >&6
17835 { echo "$as_me:$LINENO: result: $ac_cv_header_locale_h" >&5
17836 echo "${ECHO_T}$ac_cv_header_locale_h" >&6; }
17837 else
17838 # Is the header compilable?
17839 { echo "$as_me:$LINENO: checking locale.h usability" >&5
17840 echo $ECHO_N "checking locale.h usability... $ECHO_C" >&6; }
17841 cat >conftest.$ac_ext <<_ACEOF
17842 /* confdefs.h. */
17843 _ACEOF
17844 cat confdefs.h >>conftest.$ac_ext
17845 cat >>conftest.$ac_ext <<_ACEOF
17846 /* end confdefs.h. */
17847 $ac_includes_default
17848 #include <locale.h>
17849 _ACEOF
17850 rm -f conftest.$ac_objext
17851 if { (ac_try="$ac_compile"
17852 case "(($ac_try" in
17853 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17854 *) ac_try_echo=$ac_try;;
17855 esac
17856 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17857 (eval "$ac_compile") 2>conftest.er1
17858 ac_status=$?
17859 grep -v '^ *+' conftest.er1 >conftest.err
17860 rm -f conftest.er1
17861 cat conftest.err >&5
17862 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17863 (exit $ac_status); } && {
17864 test -z "$ac_c_werror_flag" ||
17865 test ! -s conftest.err
17866 } && test -s conftest.$ac_objext; then
17867 ac_header_compiler=yes
17868 else
17869 echo "$as_me: failed program was:" >&5
17870 sed 's/^/| /' conftest.$ac_ext >&5
17872 ac_header_compiler=no
17875 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17876 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
17877 echo "${ECHO_T}$ac_header_compiler" >&6; }
17879 # Is the header present?
17880 { echo "$as_me:$LINENO: checking locale.h presence" >&5
17881 echo $ECHO_N "checking locale.h presence... $ECHO_C" >&6; }
17882 cat >conftest.$ac_ext <<_ACEOF
17883 /* confdefs.h. */
17884 _ACEOF
17885 cat confdefs.h >>conftest.$ac_ext
17886 cat >>conftest.$ac_ext <<_ACEOF
17887 /* end confdefs.h. */
17888 #include <locale.h>
17889 _ACEOF
17890 if { (ac_try="$ac_cpp conftest.$ac_ext"
17891 case "(($ac_try" in
17892 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17893 *) ac_try_echo=$ac_try;;
17894 esac
17895 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17896 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
17897 ac_status=$?
17898 grep -v '^ *+' conftest.er1 >conftest.err
17899 rm -f conftest.er1
17900 cat conftest.err >&5
17901 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17902 (exit $ac_status); } >/dev/null && {
17903 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
17904 test ! -s conftest.err
17905 }; then
17906 ac_header_preproc=yes
17907 else
17908 echo "$as_me: failed program was:" >&5
17909 sed 's/^/| /' conftest.$ac_ext >&5
17911 ac_header_preproc=no
17914 rm -f conftest.err conftest.$ac_ext
17915 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
17916 echo "${ECHO_T}$ac_header_preproc" >&6; }
17918 # So? What about this header?
17919 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
17920 yes:no: )
17921 { echo "$as_me:$LINENO: WARNING: locale.h: accepted by the compiler, rejected by the preprocessor!" >&5
17922 echo "$as_me: WARNING: locale.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
17923 { echo "$as_me:$LINENO: WARNING: locale.h: proceeding with the compiler's result" >&5
17924 echo "$as_me: WARNING: locale.h: proceeding with the compiler's result" >&2;}
17925 ac_header_preproc=yes
17927 no:yes:* )
17928 { echo "$as_me:$LINENO: WARNING: locale.h: present but cannot be compiled" >&5
17929 echo "$as_me: WARNING: locale.h: present but cannot be compiled" >&2;}
17930 { echo "$as_me:$LINENO: WARNING: locale.h: check for missing prerequisite headers?" >&5
17931 echo "$as_me: WARNING: locale.h: check for missing prerequisite headers?" >&2;}
17932 { echo "$as_me:$LINENO: WARNING: locale.h: see the Autoconf documentation" >&5
17933 echo "$as_me: WARNING: locale.h: see the Autoconf documentation" >&2;}
17934 { echo "$as_me:$LINENO: WARNING: locale.h: section \"Present But Cannot Be Compiled\"" >&5
17935 echo "$as_me: WARNING: locale.h: section \"Present But Cannot Be Compiled\"" >&2;}
17936 { echo "$as_me:$LINENO: WARNING: locale.h: proceeding with the preprocessor's result" >&5
17937 echo "$as_me: WARNING: locale.h: proceeding with the preprocessor's result" >&2;}
17938 { echo "$as_me:$LINENO: WARNING: locale.h: in the future, the compiler will take precedence" >&5
17939 echo "$as_me: WARNING: locale.h: in the future, the compiler will take precedence" >&2;}
17942 esac
17943 { echo "$as_me:$LINENO: checking for locale.h" >&5
17944 echo $ECHO_N "checking for locale.h... $ECHO_C" >&6; }
17945 if test "${ac_cv_header_locale_h+set}" = set; then
17946 echo $ECHO_N "(cached) $ECHO_C" >&6
17947 else
17948 ac_cv_header_locale_h=$ac_header_preproc
17950 { echo "$as_me:$LINENO: result: $ac_cv_header_locale_h" >&5
17951 echo "${ECHO_T}$ac_cv_header_locale_h" >&6; }
17957 for ac_func in setlocale
17959 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
17960 { echo "$as_me:$LINENO: checking for $ac_func" >&5
17961 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
17962 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
17963 echo $ECHO_N "(cached) $ECHO_C" >&6
17964 else
17965 cat >conftest.$ac_ext <<_ACEOF
17966 /* confdefs.h. */
17967 _ACEOF
17968 cat confdefs.h >>conftest.$ac_ext
17969 cat >>conftest.$ac_ext <<_ACEOF
17970 /* end confdefs.h. */
17971 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
17972 For example, HP-UX 11i <limits.h> declares gettimeofday. */
17973 #define $ac_func innocuous_$ac_func
17975 /* System header to define __stub macros and hopefully few prototypes,
17976 which can conflict with char $ac_func (); below.
17977 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
17978 <limits.h> exists even on freestanding compilers. */
17980 #ifdef __STDC__
17981 # include <limits.h>
17982 #else
17983 # include <assert.h>
17984 #endif
17986 #undef $ac_func
17988 /* Override any GCC internal prototype to avoid an error.
17989 Use char because int might match the return type of a GCC
17990 builtin and then its argument prototype would still apply. */
17991 #ifdef __cplusplus
17992 extern "C"
17993 #endif
17994 char $ac_func ();
17995 /* The GNU C library defines this for functions which it implements
17996 to always fail with ENOSYS. Some functions are actually named
17997 something starting with __ and the normal name is an alias. */
17998 #if defined __stub_$ac_func || defined __stub___$ac_func
17999 choke me
18000 #endif
18003 main ()
18005 return $ac_func ();
18007 return 0;
18009 _ACEOF
18010 rm -f conftest.$ac_objext conftest$ac_exeext
18011 if { (ac_try="$ac_link"
18012 case "(($ac_try" in
18013 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18014 *) ac_try_echo=$ac_try;;
18015 esac
18016 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18017 (eval "$ac_link") 2>conftest.er1
18018 ac_status=$?
18019 grep -v '^ *+' conftest.er1 >conftest.err
18020 rm -f conftest.er1
18021 cat conftest.err >&5
18022 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18023 (exit $ac_status); } && {
18024 test -z "$ac_c_werror_flag" ||
18025 test ! -s conftest.err
18026 } && test -s conftest$ac_exeext &&
18027 $as_test_x conftest$ac_exeext; then
18028 eval "$as_ac_var=yes"
18029 else
18030 echo "$as_me: failed program was:" >&5
18031 sed 's/^/| /' conftest.$ac_ext >&5
18033 eval "$as_ac_var=no"
18036 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
18037 conftest$ac_exeext conftest.$ac_ext
18039 ac_res=`eval echo '${'$as_ac_var'}'`
18040 { echo "$as_me:$LINENO: result: $ac_res" >&5
18041 echo "${ECHO_T}$ac_res" >&6; }
18042 if test `eval echo '${'$as_ac_var'}'` = yes; then
18043 cat >>confdefs.h <<_ACEOF
18044 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
18045 _ACEOF
18048 done
18051 # We cannot check for <dwarf.h>, because Solaris 2 does not use dwarf (it
18052 # uses stabs), but it is still SVR4. We cannot check for <elf.h> because
18053 # Irix 4.0.5F has the header but not the library.
18054 if test $ac_have_func = no && test "$ac_cv_lib_elf_elf_begin" = yes; then
18055 ac_have_func=yes
18057 cat >>confdefs.h <<\_ACEOF
18058 #define SVR4 1
18059 _ACEOF
18063 if test $ac_have_func = no; then
18064 if test "${ac_cv_header_inq_stats_cpustats_h+set}" = set; then
18065 { echo "$as_me:$LINENO: checking for inq_stats/cpustats.h" >&5
18066 echo $ECHO_N "checking for inq_stats/cpustats.h... $ECHO_C" >&6; }
18067 if test "${ac_cv_header_inq_stats_cpustats_h+set}" = set; then
18068 echo $ECHO_N "(cached) $ECHO_C" >&6
18070 { echo "$as_me:$LINENO: result: $ac_cv_header_inq_stats_cpustats_h" >&5
18071 echo "${ECHO_T}$ac_cv_header_inq_stats_cpustats_h" >&6; }
18072 else
18073 # Is the header compilable?
18074 { echo "$as_me:$LINENO: checking inq_stats/cpustats.h usability" >&5
18075 echo $ECHO_N "checking inq_stats/cpustats.h usability... $ECHO_C" >&6; }
18076 cat >conftest.$ac_ext <<_ACEOF
18077 /* confdefs.h. */
18078 _ACEOF
18079 cat confdefs.h >>conftest.$ac_ext
18080 cat >>conftest.$ac_ext <<_ACEOF
18081 /* end confdefs.h. */
18082 $ac_includes_default
18083 #include <inq_stats/cpustats.h>
18084 _ACEOF
18085 rm -f conftest.$ac_objext
18086 if { (ac_try="$ac_compile"
18087 case "(($ac_try" in
18088 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18089 *) ac_try_echo=$ac_try;;
18090 esac
18091 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18092 (eval "$ac_compile") 2>conftest.er1
18093 ac_status=$?
18094 grep -v '^ *+' conftest.er1 >conftest.err
18095 rm -f conftest.er1
18096 cat conftest.err >&5
18097 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18098 (exit $ac_status); } && {
18099 test -z "$ac_c_werror_flag" ||
18100 test ! -s conftest.err
18101 } && test -s conftest.$ac_objext; then
18102 ac_header_compiler=yes
18103 else
18104 echo "$as_me: failed program was:" >&5
18105 sed 's/^/| /' conftest.$ac_ext >&5
18107 ac_header_compiler=no
18110 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18111 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
18112 echo "${ECHO_T}$ac_header_compiler" >&6; }
18114 # Is the header present?
18115 { echo "$as_me:$LINENO: checking inq_stats/cpustats.h presence" >&5
18116 echo $ECHO_N "checking inq_stats/cpustats.h presence... $ECHO_C" >&6; }
18117 cat >conftest.$ac_ext <<_ACEOF
18118 /* confdefs.h. */
18119 _ACEOF
18120 cat confdefs.h >>conftest.$ac_ext
18121 cat >>conftest.$ac_ext <<_ACEOF
18122 /* end confdefs.h. */
18123 #include <inq_stats/cpustats.h>
18124 _ACEOF
18125 if { (ac_try="$ac_cpp conftest.$ac_ext"
18126 case "(($ac_try" in
18127 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18128 *) ac_try_echo=$ac_try;;
18129 esac
18130 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18131 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
18132 ac_status=$?
18133 grep -v '^ *+' conftest.er1 >conftest.err
18134 rm -f conftest.er1
18135 cat conftest.err >&5
18136 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18137 (exit $ac_status); } >/dev/null && {
18138 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
18139 test ! -s conftest.err
18140 }; then
18141 ac_header_preproc=yes
18142 else
18143 echo "$as_me: failed program was:" >&5
18144 sed 's/^/| /' conftest.$ac_ext >&5
18146 ac_header_preproc=no
18149 rm -f conftest.err conftest.$ac_ext
18150 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
18151 echo "${ECHO_T}$ac_header_preproc" >&6; }
18153 # So? What about this header?
18154 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
18155 yes:no: )
18156 { echo "$as_me:$LINENO: WARNING: inq_stats/cpustats.h: accepted by the compiler, rejected by the preprocessor!" >&5
18157 echo "$as_me: WARNING: inq_stats/cpustats.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
18158 { echo "$as_me:$LINENO: WARNING: inq_stats/cpustats.h: proceeding with the compiler's result" >&5
18159 echo "$as_me: WARNING: inq_stats/cpustats.h: proceeding with the compiler's result" >&2;}
18160 ac_header_preproc=yes
18162 no:yes:* )
18163 { echo "$as_me:$LINENO: WARNING: inq_stats/cpustats.h: present but cannot be compiled" >&5
18164 echo "$as_me: WARNING: inq_stats/cpustats.h: present but cannot be compiled" >&2;}
18165 { echo "$as_me:$LINENO: WARNING: inq_stats/cpustats.h: check for missing prerequisite headers?" >&5
18166 echo "$as_me: WARNING: inq_stats/cpustats.h: check for missing prerequisite headers?" >&2;}
18167 { echo "$as_me:$LINENO: WARNING: inq_stats/cpustats.h: see the Autoconf documentation" >&5
18168 echo "$as_me: WARNING: inq_stats/cpustats.h: see the Autoconf documentation" >&2;}
18169 { echo "$as_me:$LINENO: WARNING: inq_stats/cpustats.h: section \"Present But Cannot Be Compiled\"" >&5
18170 echo "$as_me: WARNING: inq_stats/cpustats.h: section \"Present But Cannot Be Compiled\"" >&2;}
18171 { echo "$as_me:$LINENO: WARNING: inq_stats/cpustats.h: proceeding with the preprocessor's result" >&5
18172 echo "$as_me: WARNING: inq_stats/cpustats.h: proceeding with the preprocessor's result" >&2;}
18173 { echo "$as_me:$LINENO: WARNING: inq_stats/cpustats.h: in the future, the compiler will take precedence" >&5
18174 echo "$as_me: WARNING: inq_stats/cpustats.h: in the future, the compiler will take precedence" >&2;}
18177 esac
18178 { echo "$as_me:$LINENO: checking for inq_stats/cpustats.h" >&5
18179 echo $ECHO_N "checking for inq_stats/cpustats.h... $ECHO_C" >&6; }
18180 if test "${ac_cv_header_inq_stats_cpustats_h+set}" = set; then
18181 echo $ECHO_N "(cached) $ECHO_C" >&6
18182 else
18183 ac_cv_header_inq_stats_cpustats_h=$ac_header_preproc
18185 { echo "$as_me:$LINENO: result: $ac_cv_header_inq_stats_cpustats_h" >&5
18186 echo "${ECHO_T}$ac_cv_header_inq_stats_cpustats_h" >&6; }
18189 if test $ac_cv_header_inq_stats_cpustats_h = yes; then
18190 ac_have_func=yes
18192 cat >>confdefs.h <<\_ACEOF
18193 #define UMAX 1
18194 _ACEOF
18197 cat >>confdefs.h <<\_ACEOF
18198 #define UMAX4_3 1
18199 _ACEOF
18206 if test $ac_have_func = no; then
18207 if test "${ac_cv_header_sys_cpustats_h+set}" = set; then
18208 { echo "$as_me:$LINENO: checking for sys/cpustats.h" >&5
18209 echo $ECHO_N "checking for sys/cpustats.h... $ECHO_C" >&6; }
18210 if test "${ac_cv_header_sys_cpustats_h+set}" = set; then
18211 echo $ECHO_N "(cached) $ECHO_C" >&6
18213 { echo "$as_me:$LINENO: result: $ac_cv_header_sys_cpustats_h" >&5
18214 echo "${ECHO_T}$ac_cv_header_sys_cpustats_h" >&6; }
18215 else
18216 # Is the header compilable?
18217 { echo "$as_me:$LINENO: checking sys/cpustats.h usability" >&5
18218 echo $ECHO_N "checking sys/cpustats.h usability... $ECHO_C" >&6; }
18219 cat >conftest.$ac_ext <<_ACEOF
18220 /* confdefs.h. */
18221 _ACEOF
18222 cat confdefs.h >>conftest.$ac_ext
18223 cat >>conftest.$ac_ext <<_ACEOF
18224 /* end confdefs.h. */
18225 $ac_includes_default
18226 #include <sys/cpustats.h>
18227 _ACEOF
18228 rm -f conftest.$ac_objext
18229 if { (ac_try="$ac_compile"
18230 case "(($ac_try" in
18231 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18232 *) ac_try_echo=$ac_try;;
18233 esac
18234 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18235 (eval "$ac_compile") 2>conftest.er1
18236 ac_status=$?
18237 grep -v '^ *+' conftest.er1 >conftest.err
18238 rm -f conftest.er1
18239 cat conftest.err >&5
18240 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18241 (exit $ac_status); } && {
18242 test -z "$ac_c_werror_flag" ||
18243 test ! -s conftest.err
18244 } && test -s conftest.$ac_objext; then
18245 ac_header_compiler=yes
18246 else
18247 echo "$as_me: failed program was:" >&5
18248 sed 's/^/| /' conftest.$ac_ext >&5
18250 ac_header_compiler=no
18253 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18254 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
18255 echo "${ECHO_T}$ac_header_compiler" >&6; }
18257 # Is the header present?
18258 { echo "$as_me:$LINENO: checking sys/cpustats.h presence" >&5
18259 echo $ECHO_N "checking sys/cpustats.h presence... $ECHO_C" >&6; }
18260 cat >conftest.$ac_ext <<_ACEOF
18261 /* confdefs.h. */
18262 _ACEOF
18263 cat confdefs.h >>conftest.$ac_ext
18264 cat >>conftest.$ac_ext <<_ACEOF
18265 /* end confdefs.h. */
18266 #include <sys/cpustats.h>
18267 _ACEOF
18268 if { (ac_try="$ac_cpp conftest.$ac_ext"
18269 case "(($ac_try" in
18270 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18271 *) ac_try_echo=$ac_try;;
18272 esac
18273 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18274 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
18275 ac_status=$?
18276 grep -v '^ *+' conftest.er1 >conftest.err
18277 rm -f conftest.er1
18278 cat conftest.err >&5
18279 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18280 (exit $ac_status); } >/dev/null && {
18281 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
18282 test ! -s conftest.err
18283 }; then
18284 ac_header_preproc=yes
18285 else
18286 echo "$as_me: failed program was:" >&5
18287 sed 's/^/| /' conftest.$ac_ext >&5
18289 ac_header_preproc=no
18292 rm -f conftest.err conftest.$ac_ext
18293 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
18294 echo "${ECHO_T}$ac_header_preproc" >&6; }
18296 # So? What about this header?
18297 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
18298 yes:no: )
18299 { echo "$as_me:$LINENO: WARNING: sys/cpustats.h: accepted by the compiler, rejected by the preprocessor!" >&5
18300 echo "$as_me: WARNING: sys/cpustats.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
18301 { echo "$as_me:$LINENO: WARNING: sys/cpustats.h: proceeding with the compiler's result" >&5
18302 echo "$as_me: WARNING: sys/cpustats.h: proceeding with the compiler's result" >&2;}
18303 ac_header_preproc=yes
18305 no:yes:* )
18306 { echo "$as_me:$LINENO: WARNING: sys/cpustats.h: present but cannot be compiled" >&5
18307 echo "$as_me: WARNING: sys/cpustats.h: present but cannot be compiled" >&2;}
18308 { echo "$as_me:$LINENO: WARNING: sys/cpustats.h: check for missing prerequisite headers?" >&5
18309 echo "$as_me: WARNING: sys/cpustats.h: check for missing prerequisite headers?" >&2;}
18310 { echo "$as_me:$LINENO: WARNING: sys/cpustats.h: see the Autoconf documentation" >&5
18311 echo "$as_me: WARNING: sys/cpustats.h: see the Autoconf documentation" >&2;}
18312 { echo "$as_me:$LINENO: WARNING: sys/cpustats.h: section \"Present But Cannot Be Compiled\"" >&5
18313 echo "$as_me: WARNING: sys/cpustats.h: section \"Present But Cannot Be Compiled\"" >&2;}
18314 { echo "$as_me:$LINENO: WARNING: sys/cpustats.h: proceeding with the preprocessor's result" >&5
18315 echo "$as_me: WARNING: sys/cpustats.h: proceeding with the preprocessor's result" >&2;}
18316 { echo "$as_me:$LINENO: WARNING: sys/cpustats.h: in the future, the compiler will take precedence" >&5
18317 echo "$as_me: WARNING: sys/cpustats.h: in the future, the compiler will take precedence" >&2;}
18320 esac
18321 { echo "$as_me:$LINENO: checking for sys/cpustats.h" >&5
18322 echo $ECHO_N "checking for sys/cpustats.h... $ECHO_C" >&6; }
18323 if test "${ac_cv_header_sys_cpustats_h+set}" = set; then
18324 echo $ECHO_N "(cached) $ECHO_C" >&6
18325 else
18326 ac_cv_header_sys_cpustats_h=$ac_header_preproc
18328 { echo "$as_me:$LINENO: result: $ac_cv_header_sys_cpustats_h" >&5
18329 echo "${ECHO_T}$ac_cv_header_sys_cpustats_h" >&6; }
18332 if test $ac_cv_header_sys_cpustats_h = yes; then
18333 ac_have_func=yes; cat >>confdefs.h <<\_ACEOF
18334 #define UMAX 1
18335 _ACEOF
18342 if test $ac_have_func = no; then
18344 for ac_header in mach/mach.h
18346 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
18347 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
18348 { echo "$as_me:$LINENO: checking for $ac_header" >&5
18349 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
18350 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
18351 echo $ECHO_N "(cached) $ECHO_C" >&6
18353 ac_res=`eval echo '${'$as_ac_Header'}'`
18354 { echo "$as_me:$LINENO: result: $ac_res" >&5
18355 echo "${ECHO_T}$ac_res" >&6; }
18356 else
18357 # Is the header compilable?
18358 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
18359 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
18360 cat >conftest.$ac_ext <<_ACEOF
18361 /* confdefs.h. */
18362 _ACEOF
18363 cat confdefs.h >>conftest.$ac_ext
18364 cat >>conftest.$ac_ext <<_ACEOF
18365 /* end confdefs.h. */
18366 $ac_includes_default
18367 #include <$ac_header>
18368 _ACEOF
18369 rm -f conftest.$ac_objext
18370 if { (ac_try="$ac_compile"
18371 case "(($ac_try" in
18372 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18373 *) ac_try_echo=$ac_try;;
18374 esac
18375 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18376 (eval "$ac_compile") 2>conftest.er1
18377 ac_status=$?
18378 grep -v '^ *+' conftest.er1 >conftest.err
18379 rm -f conftest.er1
18380 cat conftest.err >&5
18381 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18382 (exit $ac_status); } && {
18383 test -z "$ac_c_werror_flag" ||
18384 test ! -s conftest.err
18385 } && test -s conftest.$ac_objext; then
18386 ac_header_compiler=yes
18387 else
18388 echo "$as_me: failed program was:" >&5
18389 sed 's/^/| /' conftest.$ac_ext >&5
18391 ac_header_compiler=no
18394 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18395 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
18396 echo "${ECHO_T}$ac_header_compiler" >&6; }
18398 # Is the header present?
18399 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
18400 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
18401 cat >conftest.$ac_ext <<_ACEOF
18402 /* confdefs.h. */
18403 _ACEOF
18404 cat confdefs.h >>conftest.$ac_ext
18405 cat >>conftest.$ac_ext <<_ACEOF
18406 /* end confdefs.h. */
18407 #include <$ac_header>
18408 _ACEOF
18409 if { (ac_try="$ac_cpp conftest.$ac_ext"
18410 case "(($ac_try" in
18411 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18412 *) ac_try_echo=$ac_try;;
18413 esac
18414 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18415 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
18416 ac_status=$?
18417 grep -v '^ *+' conftest.er1 >conftest.err
18418 rm -f conftest.er1
18419 cat conftest.err >&5
18420 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18421 (exit $ac_status); } >/dev/null && {
18422 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
18423 test ! -s conftest.err
18424 }; then
18425 ac_header_preproc=yes
18426 else
18427 echo "$as_me: failed program was:" >&5
18428 sed 's/^/| /' conftest.$ac_ext >&5
18430 ac_header_preproc=no
18433 rm -f conftest.err conftest.$ac_ext
18434 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
18435 echo "${ECHO_T}$ac_header_preproc" >&6; }
18437 # So? What about this header?
18438 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
18439 yes:no: )
18440 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
18441 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
18442 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
18443 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
18444 ac_header_preproc=yes
18446 no:yes:* )
18447 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
18448 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
18449 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
18450 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
18451 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
18452 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
18453 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
18454 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
18455 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
18456 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
18457 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
18458 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
18461 esac
18462 { echo "$as_me:$LINENO: checking for $ac_header" >&5
18463 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
18464 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
18465 echo $ECHO_N "(cached) $ECHO_C" >&6
18466 else
18467 eval "$as_ac_Header=\$ac_header_preproc"
18469 ac_res=`eval echo '${'$as_ac_Header'}'`
18470 { echo "$as_me:$LINENO: result: $ac_res" >&5
18471 echo "${ECHO_T}$ac_res" >&6; }
18474 if test `eval echo '${'$as_ac_Header'}'` = yes; then
18475 cat >>confdefs.h <<_ACEOF
18476 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
18477 _ACEOF
18481 done
18486 for ac_header in nlist.h
18488 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
18489 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
18490 { echo "$as_me:$LINENO: checking for $ac_header" >&5
18491 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
18492 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
18493 echo $ECHO_N "(cached) $ECHO_C" >&6
18495 ac_res=`eval echo '${'$as_ac_Header'}'`
18496 { echo "$as_me:$LINENO: result: $ac_res" >&5
18497 echo "${ECHO_T}$ac_res" >&6; }
18498 else
18499 # Is the header compilable?
18500 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
18501 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
18502 cat >conftest.$ac_ext <<_ACEOF
18503 /* confdefs.h. */
18504 _ACEOF
18505 cat confdefs.h >>conftest.$ac_ext
18506 cat >>conftest.$ac_ext <<_ACEOF
18507 /* end confdefs.h. */
18508 $ac_includes_default
18509 #include <$ac_header>
18510 _ACEOF
18511 rm -f conftest.$ac_objext
18512 if { (ac_try="$ac_compile"
18513 case "(($ac_try" in
18514 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18515 *) ac_try_echo=$ac_try;;
18516 esac
18517 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18518 (eval "$ac_compile") 2>conftest.er1
18519 ac_status=$?
18520 grep -v '^ *+' conftest.er1 >conftest.err
18521 rm -f conftest.er1
18522 cat conftest.err >&5
18523 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18524 (exit $ac_status); } && {
18525 test -z "$ac_c_werror_flag" ||
18526 test ! -s conftest.err
18527 } && test -s conftest.$ac_objext; then
18528 ac_header_compiler=yes
18529 else
18530 echo "$as_me: failed program was:" >&5
18531 sed 's/^/| /' conftest.$ac_ext >&5
18533 ac_header_compiler=no
18536 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18537 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
18538 echo "${ECHO_T}$ac_header_compiler" >&6; }
18540 # Is the header present?
18541 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
18542 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
18543 cat >conftest.$ac_ext <<_ACEOF
18544 /* confdefs.h. */
18545 _ACEOF
18546 cat confdefs.h >>conftest.$ac_ext
18547 cat >>conftest.$ac_ext <<_ACEOF
18548 /* end confdefs.h. */
18549 #include <$ac_header>
18550 _ACEOF
18551 if { (ac_try="$ac_cpp conftest.$ac_ext"
18552 case "(($ac_try" in
18553 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18554 *) ac_try_echo=$ac_try;;
18555 esac
18556 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18557 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
18558 ac_status=$?
18559 grep -v '^ *+' conftest.er1 >conftest.err
18560 rm -f conftest.er1
18561 cat conftest.err >&5
18562 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18563 (exit $ac_status); } >/dev/null && {
18564 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
18565 test ! -s conftest.err
18566 }; then
18567 ac_header_preproc=yes
18568 else
18569 echo "$as_me: failed program was:" >&5
18570 sed 's/^/| /' conftest.$ac_ext >&5
18572 ac_header_preproc=no
18575 rm -f conftest.err conftest.$ac_ext
18576 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
18577 echo "${ECHO_T}$ac_header_preproc" >&6; }
18579 # So? What about this header?
18580 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
18581 yes:no: )
18582 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
18583 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
18584 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
18585 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
18586 ac_header_preproc=yes
18588 no:yes:* )
18589 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
18590 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
18591 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
18592 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
18593 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
18594 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
18595 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
18596 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
18597 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
18598 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
18599 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
18600 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
18603 esac
18604 { echo "$as_me:$LINENO: checking for $ac_header" >&5
18605 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
18606 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
18607 echo $ECHO_N "(cached) $ECHO_C" >&6
18608 else
18609 eval "$as_ac_Header=\$ac_header_preproc"
18611 ac_res=`eval echo '${'$as_ac_Header'}'`
18612 { echo "$as_me:$LINENO: result: $ac_res" >&5
18613 echo "${ECHO_T}$ac_res" >&6; }
18616 if test `eval echo '${'$as_ac_Header'}'` = yes; then
18617 cat >>confdefs.h <<_ACEOF
18618 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
18619 _ACEOF
18620 { echo "$as_me:$LINENO: checking for struct nlist.n_un.n_name" >&5
18621 echo $ECHO_N "checking for struct nlist.n_un.n_name... $ECHO_C" >&6; }
18622 if test "${ac_cv_member_struct_nlist_n_un_n_name+set}" = set; then
18623 echo $ECHO_N "(cached) $ECHO_C" >&6
18624 else
18625 cat >conftest.$ac_ext <<_ACEOF
18626 /* confdefs.h. */
18627 _ACEOF
18628 cat confdefs.h >>conftest.$ac_ext
18629 cat >>conftest.$ac_ext <<_ACEOF
18630 /* end confdefs.h. */
18631 #include <nlist.h>
18634 main ()
18636 static struct nlist ac_aggr;
18637 if (ac_aggr.n_un.n_name)
18638 return 0;
18640 return 0;
18642 _ACEOF
18643 rm -f conftest.$ac_objext
18644 if { (ac_try="$ac_compile"
18645 case "(($ac_try" in
18646 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18647 *) ac_try_echo=$ac_try;;
18648 esac
18649 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18650 (eval "$ac_compile") 2>conftest.er1
18651 ac_status=$?
18652 grep -v '^ *+' conftest.er1 >conftest.err
18653 rm -f conftest.er1
18654 cat conftest.err >&5
18655 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18656 (exit $ac_status); } && {
18657 test -z "$ac_c_werror_flag" ||
18658 test ! -s conftest.err
18659 } && test -s conftest.$ac_objext; then
18660 ac_cv_member_struct_nlist_n_un_n_name=yes
18661 else
18662 echo "$as_me: failed program was:" >&5
18663 sed 's/^/| /' conftest.$ac_ext >&5
18665 cat >conftest.$ac_ext <<_ACEOF
18666 /* confdefs.h. */
18667 _ACEOF
18668 cat confdefs.h >>conftest.$ac_ext
18669 cat >>conftest.$ac_ext <<_ACEOF
18670 /* end confdefs.h. */
18671 #include <nlist.h>
18674 main ()
18676 static struct nlist ac_aggr;
18677 if (sizeof ac_aggr.n_un.n_name)
18678 return 0;
18680 return 0;
18682 _ACEOF
18683 rm -f conftest.$ac_objext
18684 if { (ac_try="$ac_compile"
18685 case "(($ac_try" in
18686 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18687 *) ac_try_echo=$ac_try;;
18688 esac
18689 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18690 (eval "$ac_compile") 2>conftest.er1
18691 ac_status=$?
18692 grep -v '^ *+' conftest.er1 >conftest.err
18693 rm -f conftest.er1
18694 cat conftest.err >&5
18695 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18696 (exit $ac_status); } && {
18697 test -z "$ac_c_werror_flag" ||
18698 test ! -s conftest.err
18699 } && test -s conftest.$ac_objext; then
18700 ac_cv_member_struct_nlist_n_un_n_name=yes
18701 else
18702 echo "$as_me: failed program was:" >&5
18703 sed 's/^/| /' conftest.$ac_ext >&5
18705 ac_cv_member_struct_nlist_n_un_n_name=no
18708 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18711 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18713 { echo "$as_me:$LINENO: result: $ac_cv_member_struct_nlist_n_un_n_name" >&5
18714 echo "${ECHO_T}$ac_cv_member_struct_nlist_n_un_n_name" >&6; }
18715 if test $ac_cv_member_struct_nlist_n_un_n_name = yes; then
18717 cat >>confdefs.h <<_ACEOF
18718 #define HAVE_STRUCT_NLIST_N_UN_N_NAME 1
18719 _ACEOF
18722 cat >>confdefs.h <<\_ACEOF
18723 #define NLIST_NAME_UNION 1
18724 _ACEOF
18731 done
18734 done
18737 # Some definitions of getloadavg require that the program be installed setgid.
18738 { echo "$as_me:$LINENO: checking whether getloadavg requires setgid" >&5
18739 echo $ECHO_N "checking whether getloadavg requires setgid... $ECHO_C" >&6; }
18740 if test "${ac_cv_func_getloadavg_setgid+set}" = set; then
18741 echo $ECHO_N "(cached) $ECHO_C" >&6
18742 else
18743 cat >conftest.$ac_ext <<_ACEOF
18744 /* confdefs.h. */
18745 _ACEOF
18746 cat confdefs.h >>conftest.$ac_ext
18747 cat >>conftest.$ac_ext <<_ACEOF
18748 /* end confdefs.h. */
18749 #include "$srcdir/$ac_config_libobj_dir/getloadavg.c"
18750 #ifdef LDAV_PRIVILEGED
18751 Yowza Am I SETGID yet
18752 #endif
18753 _ACEOF
18754 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
18755 $EGREP "Yowza Am I SETGID yet" >/dev/null 2>&1; then
18756 ac_cv_func_getloadavg_setgid=yes
18757 else
18758 ac_cv_func_getloadavg_setgid=no
18760 rm -f conftest*
18763 { echo "$as_me:$LINENO: result: $ac_cv_func_getloadavg_setgid" >&5
18764 echo "${ECHO_T}$ac_cv_func_getloadavg_setgid" >&6; }
18765 if test $ac_cv_func_getloadavg_setgid = yes; then
18766 NEED_SETGID=true
18768 cat >>confdefs.h <<\_ACEOF
18769 #define GETLOADAVG_PRIVILEGED 1
18770 _ACEOF
18772 else
18773 NEED_SETGID=false
18776 if test $ac_cv_func_getloadavg_setgid = yes; then
18777 { echo "$as_me:$LINENO: checking group of /dev/kmem" >&5
18778 echo $ECHO_N "checking group of /dev/kmem... $ECHO_C" >&6; }
18779 if test "${ac_cv_group_kmem+set}" = set; then
18780 echo $ECHO_N "(cached) $ECHO_C" >&6
18781 else
18782 # On Solaris, /dev/kmem is a symlink. Get info on the real file.
18783 ac_ls_output=`ls -lgL /dev/kmem 2>/dev/null`
18784 # If we got an error (system does not support symlinks), try without -L.
18785 test -z "$ac_ls_output" && ac_ls_output=`ls -lg /dev/kmem`
18786 ac_cv_group_kmem=`echo $ac_ls_output \
18787 | sed -ne 's/[ ][ ]*/ /g;
18788 s/^.[sSrwx-]* *[0-9]* *\([^0-9]*\) *.*/\1/;
18789 / /s/.* //;p;'`
18792 { echo "$as_me:$LINENO: result: $ac_cv_group_kmem" >&5
18793 echo "${ECHO_T}$ac_cv_group_kmem" >&6; }
18794 KMEM_GROUP=$ac_cv_group_kmem
18796 if test "x$ac_save_LIBS" = x; then
18797 GETLOADAVG_LIBS=$LIBS
18798 else
18799 GETLOADAVG_LIBS=`echo "$LIBS" | sed "s!$ac_save_LIBS!!"`
18801 LIBS=$ac_save_LIBS
18805 { echo "$as_me:$LINENO: checking for _LARGEFILE_SOURCE value needed for large files" >&5
18806 echo $ECHO_N "checking for _LARGEFILE_SOURCE value needed for large files... $ECHO_C" >&6; }
18807 if test "${ac_cv_sys_largefile_source+set}" = set; then
18808 echo $ECHO_N "(cached) $ECHO_C" >&6
18809 else
18810 while :; do
18811 cat >conftest.$ac_ext <<_ACEOF
18812 /* confdefs.h. */
18813 _ACEOF
18814 cat confdefs.h >>conftest.$ac_ext
18815 cat >>conftest.$ac_ext <<_ACEOF
18816 /* end confdefs.h. */
18817 #include <stdio.h>
18819 main ()
18821 return fseeko (stdin, 0, 0) && (fseeko) (stdin, 0, 0);
18823 return 0;
18825 _ACEOF
18826 rm -f conftest.$ac_objext conftest$ac_exeext
18827 if { (ac_try="$ac_link"
18828 case "(($ac_try" in
18829 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18830 *) ac_try_echo=$ac_try;;
18831 esac
18832 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18833 (eval "$ac_link") 2>conftest.er1
18834 ac_status=$?
18835 grep -v '^ *+' conftest.er1 >conftest.err
18836 rm -f conftest.er1
18837 cat conftest.err >&5
18838 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18839 (exit $ac_status); } && {
18840 test -z "$ac_c_werror_flag" ||
18841 test ! -s conftest.err
18842 } && test -s conftest$ac_exeext &&
18843 $as_test_x conftest$ac_exeext; then
18844 ac_cv_sys_largefile_source=no; break
18845 else
18846 echo "$as_me: failed program was:" >&5
18847 sed 's/^/| /' conftest.$ac_ext >&5
18852 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
18853 conftest$ac_exeext conftest.$ac_ext
18854 cat >conftest.$ac_ext <<_ACEOF
18855 /* confdefs.h. */
18856 _ACEOF
18857 cat confdefs.h >>conftest.$ac_ext
18858 cat >>conftest.$ac_ext <<_ACEOF
18859 /* end confdefs.h. */
18860 #define _LARGEFILE_SOURCE 1
18861 #include <stdio.h>
18863 main ()
18865 return fseeko (stdin, 0, 0) && (fseeko) (stdin, 0, 0);
18867 return 0;
18869 _ACEOF
18870 rm -f conftest.$ac_objext conftest$ac_exeext
18871 if { (ac_try="$ac_link"
18872 case "(($ac_try" in
18873 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18874 *) ac_try_echo=$ac_try;;
18875 esac
18876 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18877 (eval "$ac_link") 2>conftest.er1
18878 ac_status=$?
18879 grep -v '^ *+' conftest.er1 >conftest.err
18880 rm -f conftest.er1
18881 cat conftest.err >&5
18882 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18883 (exit $ac_status); } && {
18884 test -z "$ac_c_werror_flag" ||
18885 test ! -s conftest.err
18886 } && test -s conftest$ac_exeext &&
18887 $as_test_x conftest$ac_exeext; then
18888 ac_cv_sys_largefile_source=1; break
18889 else
18890 echo "$as_me: failed program was:" >&5
18891 sed 's/^/| /' conftest.$ac_ext >&5
18896 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
18897 conftest$ac_exeext conftest.$ac_ext
18898 ac_cv_sys_largefile_source=unknown
18899 break
18900 done
18902 { echo "$as_me:$LINENO: result: $ac_cv_sys_largefile_source" >&5
18903 echo "${ECHO_T}$ac_cv_sys_largefile_source" >&6; }
18904 case $ac_cv_sys_largefile_source in #(
18905 no | unknown) ;;
18907 cat >>confdefs.h <<_ACEOF
18908 #define _LARGEFILE_SOURCE $ac_cv_sys_largefile_source
18909 _ACEOF
18911 esac
18912 rm -f conftest*
18914 # We used to try defining _XOPEN_SOURCE=500 too, to work around a bug
18915 # in glibc 2.1.3, but that breaks too many other things.
18916 # If you want fseeko and ftello with glibc, upgrade to a fixed glibc.
18917 if test $ac_cv_sys_largefile_source != unknown; then
18919 cat >>confdefs.h <<\_ACEOF
18920 #define HAVE_FSEEKO 1
18921 _ACEOF
18926 # Configure getopt.
18927 # getopt.m4 serial 10
18929 # The getopt module assume you want GNU getopt, with getopt_long etc,
18930 # rather than vanilla POSIX getopt. This means your your code should
18931 # always include <getopt.h> for the getopt prototypes.
18943 # Prerequisites of lib/getopt*.
18948 GETOPT_H=
18950 for ac_header in getopt.h
18952 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
18953 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
18954 { echo "$as_me:$LINENO: checking for $ac_header" >&5
18955 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
18956 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
18957 echo $ECHO_N "(cached) $ECHO_C" >&6
18959 ac_res=`eval echo '${'$as_ac_Header'}'`
18960 { echo "$as_me:$LINENO: result: $ac_res" >&5
18961 echo "${ECHO_T}$ac_res" >&6; }
18962 else
18963 # Is the header compilable?
18964 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
18965 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
18966 cat >conftest.$ac_ext <<_ACEOF
18967 /* confdefs.h. */
18968 _ACEOF
18969 cat confdefs.h >>conftest.$ac_ext
18970 cat >>conftest.$ac_ext <<_ACEOF
18971 /* end confdefs.h. */
18972 $ac_includes_default
18973 #include <$ac_header>
18974 _ACEOF
18975 rm -f conftest.$ac_objext
18976 if { (ac_try="$ac_compile"
18977 case "(($ac_try" in
18978 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18979 *) ac_try_echo=$ac_try;;
18980 esac
18981 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18982 (eval "$ac_compile") 2>conftest.er1
18983 ac_status=$?
18984 grep -v '^ *+' conftest.er1 >conftest.err
18985 rm -f conftest.er1
18986 cat conftest.err >&5
18987 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18988 (exit $ac_status); } && {
18989 test -z "$ac_c_werror_flag" ||
18990 test ! -s conftest.err
18991 } && test -s conftest.$ac_objext; then
18992 ac_header_compiler=yes
18993 else
18994 echo "$as_me: failed program was:" >&5
18995 sed 's/^/| /' conftest.$ac_ext >&5
18997 ac_header_compiler=no
19000 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19001 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
19002 echo "${ECHO_T}$ac_header_compiler" >&6; }
19004 # Is the header present?
19005 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
19006 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
19007 cat >conftest.$ac_ext <<_ACEOF
19008 /* confdefs.h. */
19009 _ACEOF
19010 cat confdefs.h >>conftest.$ac_ext
19011 cat >>conftest.$ac_ext <<_ACEOF
19012 /* end confdefs.h. */
19013 #include <$ac_header>
19014 _ACEOF
19015 if { (ac_try="$ac_cpp conftest.$ac_ext"
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_cpp conftest.$ac_ext") 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); } >/dev/null && {
19028 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
19029 test ! -s conftest.err
19030 }; then
19031 ac_header_preproc=yes
19032 else
19033 echo "$as_me: failed program was:" >&5
19034 sed 's/^/| /' conftest.$ac_ext >&5
19036 ac_header_preproc=no
19039 rm -f conftest.err conftest.$ac_ext
19040 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
19041 echo "${ECHO_T}$ac_header_preproc" >&6; }
19043 # So? What about this header?
19044 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
19045 yes:no: )
19046 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
19047 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
19048 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
19049 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
19050 ac_header_preproc=yes
19052 no:yes:* )
19053 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
19054 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
19055 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
19056 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
19057 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
19058 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
19059 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
19060 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
19061 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
19062 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
19063 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
19064 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
19067 esac
19068 { echo "$as_me:$LINENO: checking for $ac_header" >&5
19069 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
19070 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
19071 echo $ECHO_N "(cached) $ECHO_C" >&6
19072 else
19073 eval "$as_ac_Header=\$ac_header_preproc"
19075 ac_res=`eval echo '${'$as_ac_Header'}'`
19076 { echo "$as_me:$LINENO: result: $ac_res" >&5
19077 echo "${ECHO_T}$ac_res" >&6; }
19080 if test `eval echo '${'$as_ac_Header'}'` = yes; then
19081 cat >>confdefs.h <<_ACEOF
19082 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
19083 _ACEOF
19085 else
19086 GETOPT_H=getopt.h
19089 done
19091 if test -z "$GETOPT_H"; then
19093 for ac_func in getopt_long_only
19095 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
19096 { echo "$as_me:$LINENO: checking for $ac_func" >&5
19097 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
19098 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
19099 echo $ECHO_N "(cached) $ECHO_C" >&6
19100 else
19101 cat >conftest.$ac_ext <<_ACEOF
19102 /* confdefs.h. */
19103 _ACEOF
19104 cat confdefs.h >>conftest.$ac_ext
19105 cat >>conftest.$ac_ext <<_ACEOF
19106 /* end confdefs.h. */
19107 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
19108 For example, HP-UX 11i <limits.h> declares gettimeofday. */
19109 #define $ac_func innocuous_$ac_func
19111 /* System header to define __stub macros and hopefully few prototypes,
19112 which can conflict with char $ac_func (); below.
19113 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
19114 <limits.h> exists even on freestanding compilers. */
19116 #ifdef __STDC__
19117 # include <limits.h>
19118 #else
19119 # include <assert.h>
19120 #endif
19122 #undef $ac_func
19124 /* Override any GCC internal prototype to avoid an error.
19125 Use char because int might match the return type of a GCC
19126 builtin and then its argument prototype would still apply. */
19127 #ifdef __cplusplus
19128 extern "C"
19129 #endif
19130 char $ac_func ();
19131 /* The GNU C library defines this for functions which it implements
19132 to always fail with ENOSYS. Some functions are actually named
19133 something starting with __ and the normal name is an alias. */
19134 #if defined __stub_$ac_func || defined __stub___$ac_func
19135 choke me
19136 #endif
19139 main ()
19141 return $ac_func ();
19143 return 0;
19145 _ACEOF
19146 rm -f conftest.$ac_objext conftest$ac_exeext
19147 if { (ac_try="$ac_link"
19148 case "(($ac_try" in
19149 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19150 *) ac_try_echo=$ac_try;;
19151 esac
19152 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19153 (eval "$ac_link") 2>conftest.er1
19154 ac_status=$?
19155 grep -v '^ *+' conftest.er1 >conftest.err
19156 rm -f conftest.er1
19157 cat conftest.err >&5
19158 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19159 (exit $ac_status); } && {
19160 test -z "$ac_c_werror_flag" ||
19161 test ! -s conftest.err
19162 } && test -s conftest$ac_exeext &&
19163 $as_test_x conftest$ac_exeext; then
19164 eval "$as_ac_var=yes"
19165 else
19166 echo "$as_me: failed program was:" >&5
19167 sed 's/^/| /' conftest.$ac_ext >&5
19169 eval "$as_ac_var=no"
19172 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
19173 conftest$ac_exeext conftest.$ac_ext
19175 ac_res=`eval echo '${'$as_ac_var'}'`
19176 { echo "$as_me:$LINENO: result: $ac_res" >&5
19177 echo "${ECHO_T}$ac_res" >&6; }
19178 if test `eval echo '${'$as_ac_var'}'` = yes; then
19179 cat >>confdefs.h <<_ACEOF
19180 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
19181 _ACEOF
19183 else
19184 GETOPT_H=getopt.h
19186 done
19190 if test -z "$GETOPT_H"; then
19191 { echo "$as_me:$LINENO: checking whether optreset is declared" >&5
19192 echo $ECHO_N "checking whether optreset is declared... $ECHO_C" >&6; }
19193 if test "${ac_cv_have_decl_optreset+set}" = set; then
19194 echo $ECHO_N "(cached) $ECHO_C" >&6
19195 else
19196 cat >conftest.$ac_ext <<_ACEOF
19197 /* confdefs.h. */
19198 _ACEOF
19199 cat confdefs.h >>conftest.$ac_ext
19200 cat >>conftest.$ac_ext <<_ACEOF
19201 /* end confdefs.h. */
19202 #include <getopt.h>
19205 main ()
19207 #ifndef optreset
19208 (void) optreset;
19209 #endif
19212 return 0;
19214 _ACEOF
19215 rm -f conftest.$ac_objext
19216 if { (ac_try="$ac_compile"
19217 case "(($ac_try" in
19218 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19219 *) ac_try_echo=$ac_try;;
19220 esac
19221 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19222 (eval "$ac_compile") 2>conftest.er1
19223 ac_status=$?
19224 grep -v '^ *+' conftest.er1 >conftest.err
19225 rm -f conftest.er1
19226 cat conftest.err >&5
19227 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19228 (exit $ac_status); } && {
19229 test -z "$ac_c_werror_flag" ||
19230 test ! -s conftest.err
19231 } && test -s conftest.$ac_objext; then
19232 ac_cv_have_decl_optreset=yes
19233 else
19234 echo "$as_me: failed program was:" >&5
19235 sed 's/^/| /' conftest.$ac_ext >&5
19237 ac_cv_have_decl_optreset=no
19240 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19242 { echo "$as_me:$LINENO: result: $ac_cv_have_decl_optreset" >&5
19243 echo "${ECHO_T}$ac_cv_have_decl_optreset" >&6; }
19244 if test $ac_cv_have_decl_optreset = yes; then
19245 GETOPT_H=getopt.h
19250 if test -z "$GETOPT_H"; then
19251 { echo "$as_me:$LINENO: checking for working GNU getopt function" >&5
19252 echo $ECHO_N "checking for working GNU getopt function... $ECHO_C" >&6; }
19253 if test "${gl_cv_func_gnu_getopt+set}" = set; then
19254 echo $ECHO_N "(cached) $ECHO_C" >&6
19255 else
19256 if test "$cross_compiling" = yes; then
19257 { echo "$as_me:$LINENO: checking whether getopt_clip is declared" >&5
19258 echo $ECHO_N "checking whether getopt_clip is declared... $ECHO_C" >&6; }
19259 if test "${ac_cv_have_decl_getopt_clip+set}" = set; then
19260 echo $ECHO_N "(cached) $ECHO_C" >&6
19261 else
19262 cat >conftest.$ac_ext <<_ACEOF
19263 /* confdefs.h. */
19264 _ACEOF
19265 cat confdefs.h >>conftest.$ac_ext
19266 cat >>conftest.$ac_ext <<_ACEOF
19267 /* end confdefs.h. */
19268 #include <getopt.h>
19271 main ()
19273 #ifndef getopt_clip
19274 (void) getopt_clip;
19275 #endif
19278 return 0;
19280 _ACEOF
19281 rm -f conftest.$ac_objext
19282 if { (ac_try="$ac_compile"
19283 case "(($ac_try" in
19284 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19285 *) ac_try_echo=$ac_try;;
19286 esac
19287 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19288 (eval "$ac_compile") 2>conftest.er1
19289 ac_status=$?
19290 grep -v '^ *+' conftest.er1 >conftest.err
19291 rm -f conftest.er1
19292 cat conftest.err >&5
19293 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19294 (exit $ac_status); } && {
19295 test -z "$ac_c_werror_flag" ||
19296 test ! -s conftest.err
19297 } && test -s conftest.$ac_objext; then
19298 ac_cv_have_decl_getopt_clip=yes
19299 else
19300 echo "$as_me: failed program was:" >&5
19301 sed 's/^/| /' conftest.$ac_ext >&5
19303 ac_cv_have_decl_getopt_clip=no
19306 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19308 { echo "$as_me:$LINENO: result: $ac_cv_have_decl_getopt_clip" >&5
19309 echo "${ECHO_T}$ac_cv_have_decl_getopt_clip" >&6; }
19310 if test $ac_cv_have_decl_getopt_clip = yes; then
19311 gl_cv_func_gnu_getopt=no
19312 else
19313 gl_cv_func_gnu_getopt=yes
19316 else
19317 cat >conftest.$ac_ext <<_ACEOF
19318 /* confdefs.h. */
19319 _ACEOF
19320 cat confdefs.h >>conftest.$ac_ext
19321 cat >>conftest.$ac_ext <<_ACEOF
19322 /* end confdefs.h. */
19323 #include <getopt.h>
19325 main ()
19328 char *myargv[3];
19329 myargv[0] = "conftest";
19330 myargv[1] = "-+";
19331 myargv[2] = 0;
19332 return getopt (2, myargv, "+a") != '?';
19335 return 0;
19337 _ACEOF
19338 rm -f conftest$ac_exeext
19339 if { (ac_try="$ac_link"
19340 case "(($ac_try" in
19341 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19342 *) ac_try_echo=$ac_try;;
19343 esac
19344 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19345 (eval "$ac_link") 2>&5
19346 ac_status=$?
19347 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19348 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
19349 { (case "(($ac_try" in
19350 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19351 *) ac_try_echo=$ac_try;;
19352 esac
19353 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19354 (eval "$ac_try") 2>&5
19355 ac_status=$?
19356 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19357 (exit $ac_status); }; }; then
19358 gl_cv_func_gnu_getopt=yes
19359 else
19360 echo "$as_me: program exited with status $ac_status" >&5
19361 echo "$as_me: failed program was:" >&5
19362 sed 's/^/| /' conftest.$ac_ext >&5
19364 ( exit $ac_status )
19365 gl_cv_func_gnu_getopt=no
19367 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
19372 { echo "$as_me:$LINENO: result: $gl_cv_func_gnu_getopt" >&5
19373 echo "${ECHO_T}$gl_cv_func_gnu_getopt" >&6; }
19374 if test "$gl_cv_func_gnu_getopt" = "no"; then
19375 GETOPT_H=getopt.h
19381 if test -n "$GETOPT_H"; then
19384 GETOPT_H=getopt.h
19386 cat >>confdefs.h <<\_ACEOF
19387 #define __GETOPT_PREFIX rpl_
19388 _ACEOF
19393 GETOPTOBJS='getopt.o getopt1.o'
19400 { echo "$as_me:$LINENO: checking whether getpgrp requires zero arguments" >&5
19401 echo $ECHO_N "checking whether getpgrp requires zero arguments... $ECHO_C" >&6; }
19402 if test "${ac_cv_func_getpgrp_void+set}" = set; then
19403 echo $ECHO_N "(cached) $ECHO_C" >&6
19404 else
19405 # Use it with a single arg.
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 $ac_includes_default
19414 main ()
19416 getpgrp (0);
19418 return 0;
19420 _ACEOF
19421 rm -f conftest.$ac_objext
19422 if { (ac_try="$ac_compile"
19423 case "(($ac_try" in
19424 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19425 *) ac_try_echo=$ac_try;;
19426 esac
19427 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19428 (eval "$ac_compile") 2>conftest.er1
19429 ac_status=$?
19430 grep -v '^ *+' conftest.er1 >conftest.err
19431 rm -f conftest.er1
19432 cat conftest.err >&5
19433 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19434 (exit $ac_status); } && {
19435 test -z "$ac_c_werror_flag" ||
19436 test ! -s conftest.err
19437 } && test -s conftest.$ac_objext; then
19438 ac_cv_func_getpgrp_void=no
19439 else
19440 echo "$as_me: failed program was:" >&5
19441 sed 's/^/| /' conftest.$ac_ext >&5
19443 ac_cv_func_getpgrp_void=yes
19446 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19449 { echo "$as_me:$LINENO: result: $ac_cv_func_getpgrp_void" >&5
19450 echo "${ECHO_T}$ac_cv_func_getpgrp_void" >&6; }
19451 if test $ac_cv_func_getpgrp_void = yes; then
19453 cat >>confdefs.h <<\_ACEOF
19454 #define GETPGRP_VOID 1
19455 _ACEOF
19461 for ac_func in strftime
19463 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
19464 { echo "$as_me:$LINENO: checking for $ac_func" >&5
19465 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
19466 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
19467 echo $ECHO_N "(cached) $ECHO_C" >&6
19468 else
19469 cat >conftest.$ac_ext <<_ACEOF
19470 /* confdefs.h. */
19471 _ACEOF
19472 cat confdefs.h >>conftest.$ac_ext
19473 cat >>conftest.$ac_ext <<_ACEOF
19474 /* end confdefs.h. */
19475 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
19476 For example, HP-UX 11i <limits.h> declares gettimeofday. */
19477 #define $ac_func innocuous_$ac_func
19479 /* System header to define __stub macros and hopefully few prototypes,
19480 which can conflict with char $ac_func (); below.
19481 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
19482 <limits.h> exists even on freestanding compilers. */
19484 #ifdef __STDC__
19485 # include <limits.h>
19486 #else
19487 # include <assert.h>
19488 #endif
19490 #undef $ac_func
19492 /* Override any GCC internal prototype to avoid an error.
19493 Use char because int might match the return type of a GCC
19494 builtin and then its argument prototype would still apply. */
19495 #ifdef __cplusplus
19496 extern "C"
19497 #endif
19498 char $ac_func ();
19499 /* The GNU C library defines this for functions which it implements
19500 to always fail with ENOSYS. Some functions are actually named
19501 something starting with __ and the normal name is an alias. */
19502 #if defined __stub_$ac_func || defined __stub___$ac_func
19503 choke me
19504 #endif
19507 main ()
19509 return $ac_func ();
19511 return 0;
19513 _ACEOF
19514 rm -f conftest.$ac_objext conftest$ac_exeext
19515 if { (ac_try="$ac_link"
19516 case "(($ac_try" in
19517 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19518 *) ac_try_echo=$ac_try;;
19519 esac
19520 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19521 (eval "$ac_link") 2>conftest.er1
19522 ac_status=$?
19523 grep -v '^ *+' conftest.er1 >conftest.err
19524 rm -f conftest.er1
19525 cat conftest.err >&5
19526 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19527 (exit $ac_status); } && {
19528 test -z "$ac_c_werror_flag" ||
19529 test ! -s conftest.err
19530 } && test -s conftest$ac_exeext &&
19531 $as_test_x conftest$ac_exeext; then
19532 eval "$as_ac_var=yes"
19533 else
19534 echo "$as_me: failed program was:" >&5
19535 sed 's/^/| /' conftest.$ac_ext >&5
19537 eval "$as_ac_var=no"
19540 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
19541 conftest$ac_exeext conftest.$ac_ext
19543 ac_res=`eval echo '${'$as_ac_var'}'`
19544 { echo "$as_me:$LINENO: result: $ac_res" >&5
19545 echo "${ECHO_T}$ac_res" >&6; }
19546 if test `eval echo '${'$as_ac_var'}'` = yes; then
19547 cat >>confdefs.h <<_ACEOF
19548 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
19549 _ACEOF
19551 else
19552 # strftime is in -lintl on SCO UNIX.
19553 { echo "$as_me:$LINENO: checking for strftime in -lintl" >&5
19554 echo $ECHO_N "checking for strftime in -lintl... $ECHO_C" >&6; }
19555 if test "${ac_cv_lib_intl_strftime+set}" = set; then
19556 echo $ECHO_N "(cached) $ECHO_C" >&6
19557 else
19558 ac_check_lib_save_LIBS=$LIBS
19559 LIBS="-lintl $LIBS"
19560 cat >conftest.$ac_ext <<_ACEOF
19561 /* confdefs.h. */
19562 _ACEOF
19563 cat confdefs.h >>conftest.$ac_ext
19564 cat >>conftest.$ac_ext <<_ACEOF
19565 /* end confdefs.h. */
19567 /* Override any GCC internal prototype to avoid an error.
19568 Use char because int might match the return type of a GCC
19569 builtin and then its argument prototype would still apply. */
19570 #ifdef __cplusplus
19571 extern "C"
19572 #endif
19573 char strftime ();
19575 main ()
19577 return strftime ();
19579 return 0;
19581 _ACEOF
19582 rm -f conftest.$ac_objext conftest$ac_exeext
19583 if { (ac_try="$ac_link"
19584 case "(($ac_try" in
19585 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19586 *) ac_try_echo=$ac_try;;
19587 esac
19588 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19589 (eval "$ac_link") 2>conftest.er1
19590 ac_status=$?
19591 grep -v '^ *+' conftest.er1 >conftest.err
19592 rm -f conftest.er1
19593 cat conftest.err >&5
19594 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19595 (exit $ac_status); } && {
19596 test -z "$ac_c_werror_flag" ||
19597 test ! -s conftest.err
19598 } && test -s conftest$ac_exeext &&
19599 $as_test_x conftest$ac_exeext; then
19600 ac_cv_lib_intl_strftime=yes
19601 else
19602 echo "$as_me: failed program was:" >&5
19603 sed 's/^/| /' conftest.$ac_ext >&5
19605 ac_cv_lib_intl_strftime=no
19608 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
19609 conftest$ac_exeext conftest.$ac_ext
19610 LIBS=$ac_check_lib_save_LIBS
19612 { echo "$as_me:$LINENO: result: $ac_cv_lib_intl_strftime" >&5
19613 echo "${ECHO_T}$ac_cv_lib_intl_strftime" >&6; }
19614 if test $ac_cv_lib_intl_strftime = yes; then
19615 cat >>confdefs.h <<\_ACEOF
19616 #define HAVE_STRFTIME 1
19617 _ACEOF
19619 LIBS="-lintl $LIBS"
19623 done
19626 # UNIX98 PTYs.
19628 for ac_func in grantpt
19630 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
19631 { echo "$as_me:$LINENO: checking for $ac_func" >&5
19632 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
19633 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
19634 echo $ECHO_N "(cached) $ECHO_C" >&6
19635 else
19636 cat >conftest.$ac_ext <<_ACEOF
19637 /* confdefs.h. */
19638 _ACEOF
19639 cat confdefs.h >>conftest.$ac_ext
19640 cat >>conftest.$ac_ext <<_ACEOF
19641 /* end confdefs.h. */
19642 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
19643 For example, HP-UX 11i <limits.h> declares gettimeofday. */
19644 #define $ac_func innocuous_$ac_func
19646 /* System header to define __stub macros and hopefully few prototypes,
19647 which can conflict with char $ac_func (); below.
19648 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
19649 <limits.h> exists even on freestanding compilers. */
19651 #ifdef __STDC__
19652 # include <limits.h>
19653 #else
19654 # include <assert.h>
19655 #endif
19657 #undef $ac_func
19659 /* Override any GCC internal prototype to avoid an error.
19660 Use char because int might match the return type of a GCC
19661 builtin and then its argument prototype would still apply. */
19662 #ifdef __cplusplus
19663 extern "C"
19664 #endif
19665 char $ac_func ();
19666 /* The GNU C library defines this for functions which it implements
19667 to always fail with ENOSYS. Some functions are actually named
19668 something starting with __ and the normal name is an alias. */
19669 #if defined __stub_$ac_func || defined __stub___$ac_func
19670 choke me
19671 #endif
19674 main ()
19676 return $ac_func ();
19678 return 0;
19680 _ACEOF
19681 rm -f conftest.$ac_objext conftest$ac_exeext
19682 if { (ac_try="$ac_link"
19683 case "(($ac_try" in
19684 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19685 *) ac_try_echo=$ac_try;;
19686 esac
19687 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19688 (eval "$ac_link") 2>conftest.er1
19689 ac_status=$?
19690 grep -v '^ *+' conftest.er1 >conftest.err
19691 rm -f conftest.er1
19692 cat conftest.err >&5
19693 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19694 (exit $ac_status); } && {
19695 test -z "$ac_c_werror_flag" ||
19696 test ! -s conftest.err
19697 } && test -s conftest$ac_exeext &&
19698 $as_test_x conftest$ac_exeext; then
19699 eval "$as_ac_var=yes"
19700 else
19701 echo "$as_me: failed program was:" >&5
19702 sed 's/^/| /' conftest.$ac_ext >&5
19704 eval "$as_ac_var=no"
19707 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
19708 conftest$ac_exeext conftest.$ac_ext
19710 ac_res=`eval echo '${'$as_ac_var'}'`
19711 { echo "$as_me:$LINENO: result: $ac_res" >&5
19712 echo "${ECHO_T}$ac_res" >&6; }
19713 if test `eval echo '${'$as_ac_var'}'` = yes; then
19714 cat >>confdefs.h <<_ACEOF
19715 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
19716 _ACEOF
19719 done
19722 # PTY-related GNU extensions.
19724 for ac_func in getpt
19726 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
19727 { echo "$as_me:$LINENO: checking for $ac_func" >&5
19728 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
19729 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
19730 echo $ECHO_N "(cached) $ECHO_C" >&6
19731 else
19732 cat >conftest.$ac_ext <<_ACEOF
19733 /* confdefs.h. */
19734 _ACEOF
19735 cat confdefs.h >>conftest.$ac_ext
19736 cat >>conftest.$ac_ext <<_ACEOF
19737 /* end confdefs.h. */
19738 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
19739 For example, HP-UX 11i <limits.h> declares gettimeofday. */
19740 #define $ac_func innocuous_$ac_func
19742 /* System header to define __stub macros and hopefully few prototypes,
19743 which can conflict with char $ac_func (); below.
19744 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
19745 <limits.h> exists even on freestanding compilers. */
19747 #ifdef __STDC__
19748 # include <limits.h>
19749 #else
19750 # include <assert.h>
19751 #endif
19753 #undef $ac_func
19755 /* Override any GCC internal prototype to avoid an error.
19756 Use char because int might match the return type of a GCC
19757 builtin and then its argument prototype would still apply. */
19758 #ifdef __cplusplus
19759 extern "C"
19760 #endif
19761 char $ac_func ();
19762 /* The GNU C library defines this for functions which it implements
19763 to always fail with ENOSYS. Some functions are actually named
19764 something starting with __ and the normal name is an alias. */
19765 #if defined __stub_$ac_func || defined __stub___$ac_func
19766 choke me
19767 #endif
19770 main ()
19772 return $ac_func ();
19774 return 0;
19776 _ACEOF
19777 rm -f conftest.$ac_objext conftest$ac_exeext
19778 if { (ac_try="$ac_link"
19779 case "(($ac_try" in
19780 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19781 *) ac_try_echo=$ac_try;;
19782 esac
19783 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19784 (eval "$ac_link") 2>conftest.er1
19785 ac_status=$?
19786 grep -v '^ *+' conftest.er1 >conftest.err
19787 rm -f conftest.er1
19788 cat conftest.err >&5
19789 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19790 (exit $ac_status); } && {
19791 test -z "$ac_c_werror_flag" ||
19792 test ! -s conftest.err
19793 } && test -s conftest$ac_exeext &&
19794 $as_test_x conftest$ac_exeext; then
19795 eval "$as_ac_var=yes"
19796 else
19797 echo "$as_me: failed program was:" >&5
19798 sed 's/^/| /' conftest.$ac_ext >&5
19800 eval "$as_ac_var=no"
19803 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
19804 conftest$ac_exeext conftest.$ac_ext
19806 ac_res=`eval echo '${'$as_ac_var'}'`
19807 { echo "$as_me:$LINENO: result: $ac_res" >&5
19808 echo "${ECHO_T}$ac_res" >&6; }
19809 if test `eval echo '${'$as_ac_var'}'` = yes; then
19810 cat >>confdefs.h <<_ACEOF
19811 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
19812 _ACEOF
19815 done
19818 # Check this now, so that we will NOT find the above functions in ncurses.
19819 # That is because we have not set up to link ncurses in lib-src.
19820 # It's better to believe a function is not available
19821 # than to expect to find it in ncurses.
19823 { echo "$as_me:$LINENO: checking for tparm in -lncurses" >&5
19824 echo $ECHO_N "checking for tparm in -lncurses... $ECHO_C" >&6; }
19825 if test "${ac_cv_lib_ncurses_tparm+set}" = set; then
19826 echo $ECHO_N "(cached) $ECHO_C" >&6
19827 else
19828 ac_check_lib_save_LIBS=$LIBS
19829 LIBS="-lncurses $LIBS"
19830 cat >conftest.$ac_ext <<_ACEOF
19831 /* confdefs.h. */
19832 _ACEOF
19833 cat confdefs.h >>conftest.$ac_ext
19834 cat >>conftest.$ac_ext <<_ACEOF
19835 /* end confdefs.h. */
19837 /* Override any GCC internal prototype to avoid an error.
19838 Use char because int might match the return type of a GCC
19839 builtin and then its argument prototype would still apply. */
19840 #ifdef __cplusplus
19841 extern "C"
19842 #endif
19843 char tparm ();
19845 main ()
19847 return tparm ();
19849 return 0;
19851 _ACEOF
19852 rm -f conftest.$ac_objext conftest$ac_exeext
19853 if { (ac_try="$ac_link"
19854 case "(($ac_try" in
19855 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19856 *) ac_try_echo=$ac_try;;
19857 esac
19858 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19859 (eval "$ac_link") 2>conftest.er1
19860 ac_status=$?
19861 grep -v '^ *+' conftest.er1 >conftest.err
19862 rm -f conftest.er1
19863 cat conftest.err >&5
19864 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19865 (exit $ac_status); } && {
19866 test -z "$ac_c_werror_flag" ||
19867 test ! -s conftest.err
19868 } && test -s conftest$ac_exeext &&
19869 $as_test_x conftest$ac_exeext; then
19870 ac_cv_lib_ncurses_tparm=yes
19871 else
19872 echo "$as_me: failed program was:" >&5
19873 sed 's/^/| /' conftest.$ac_ext >&5
19875 ac_cv_lib_ncurses_tparm=no
19878 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
19879 conftest$ac_exeext conftest.$ac_ext
19880 LIBS=$ac_check_lib_save_LIBS
19882 { echo "$as_me:$LINENO: result: $ac_cv_lib_ncurses_tparm" >&5
19883 echo "${ECHO_T}$ac_cv_lib_ncurses_tparm" >&6; }
19884 if test $ac_cv_lib_ncurses_tparm = yes; then
19885 cat >>confdefs.h <<_ACEOF
19886 #define HAVE_LIBNCURSES 1
19887 _ACEOF
19889 LIBS="-lncurses $LIBS"
19894 # Do we have res_init, for detecting changes in /etc/resolv.conf?
19896 resolv=no
19897 cat >conftest.$ac_ext <<_ACEOF
19898 /* confdefs.h. */
19899 _ACEOF
19900 cat confdefs.h >>conftest.$ac_ext
19901 cat >>conftest.$ac_ext <<_ACEOF
19902 /* end confdefs.h. */
19903 #include <netinet/in.h>
19904 #include <arpa/nameser.h>
19905 #include <resolv.h>
19907 main ()
19909 return res_init();
19911 return 0;
19913 _ACEOF
19914 rm -f conftest.$ac_objext conftest$ac_exeext
19915 if { (ac_try="$ac_link"
19916 case "(($ac_try" in
19917 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19918 *) ac_try_echo=$ac_try;;
19919 esac
19920 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19921 (eval "$ac_link") 2>conftest.er1
19922 ac_status=$?
19923 grep -v '^ *+' conftest.er1 >conftest.err
19924 rm -f conftest.er1
19925 cat conftest.err >&5
19926 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19927 (exit $ac_status); } && {
19928 test -z "$ac_c_werror_flag" ||
19929 test ! -s conftest.err
19930 } && test -s conftest$ac_exeext &&
19931 $as_test_x conftest$ac_exeext; then
19932 have_res_init=yes
19933 else
19934 echo "$as_me: failed program was:" >&5
19935 sed 's/^/| /' conftest.$ac_ext >&5
19937 have_res_init=no
19940 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
19941 conftest$ac_exeext conftest.$ac_ext
19942 if test "$have_res_init" = no; then
19943 OLIBS="$LIBS"
19944 LIBS="$LIBS -lresolv"
19945 { echo "$as_me:$LINENO: checking for res_init with -lresolv" >&5
19946 echo $ECHO_N "checking for res_init with -lresolv... $ECHO_C" >&6; }
19947 cat >conftest.$ac_ext <<_ACEOF
19948 /* confdefs.h. */
19949 _ACEOF
19950 cat confdefs.h >>conftest.$ac_ext
19951 cat >>conftest.$ac_ext <<_ACEOF
19952 /* end confdefs.h. */
19953 #include <netinet/in.h>
19954 #include <arpa/nameser.h>
19955 #include <resolv.h>
19957 main ()
19959 return res_init();
19961 return 0;
19963 _ACEOF
19964 rm -f conftest.$ac_objext conftest$ac_exeext
19965 if { (ac_try="$ac_link"
19966 case "(($ac_try" in
19967 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19968 *) ac_try_echo=$ac_try;;
19969 esac
19970 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19971 (eval "$ac_link") 2>conftest.er1
19972 ac_status=$?
19973 grep -v '^ *+' conftest.er1 >conftest.err
19974 rm -f conftest.er1
19975 cat conftest.err >&5
19976 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19977 (exit $ac_status); } && {
19978 test -z "$ac_c_werror_flag" ||
19979 test ! -s conftest.err
19980 } && test -s conftest$ac_exeext &&
19981 $as_test_x conftest$ac_exeext; then
19982 have_res_init=yes
19983 else
19984 echo "$as_me: failed program was:" >&5
19985 sed 's/^/| /' conftest.$ac_ext >&5
19987 have_res_init=no
19990 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
19991 conftest$ac_exeext conftest.$ac_ext
19992 { echo "$as_me:$LINENO: result: $have_res_init" >&5
19993 echo "${ECHO_T}$have_res_init" >&6; }
19994 if test "$have_res_init" = yes ; then
19995 resolv=yes
19997 LIBS="$OLIBS"
20000 if test "$have_res_init" = yes; then
20002 cat >>confdefs.h <<\_ACEOF
20003 #define HAVE_RES_INIT 1
20004 _ACEOF
20008 # Do we need the Hesiod library to provide the support routines?
20009 if test "$with_hesiod" = yes ; then
20010 # Don't set $LIBS here -- see comments above.
20011 { echo "$as_me:$LINENO: checking for res_send" >&5
20012 echo $ECHO_N "checking for res_send... $ECHO_C" >&6; }
20013 if test "${ac_cv_func_res_send+set}" = set; then
20014 echo $ECHO_N "(cached) $ECHO_C" >&6
20015 else
20016 cat >conftest.$ac_ext <<_ACEOF
20017 /* confdefs.h. */
20018 _ACEOF
20019 cat confdefs.h >>conftest.$ac_ext
20020 cat >>conftest.$ac_ext <<_ACEOF
20021 /* end confdefs.h. */
20022 /* Define res_send to an innocuous variant, in case <limits.h> declares res_send.
20023 For example, HP-UX 11i <limits.h> declares gettimeofday. */
20024 #define res_send innocuous_res_send
20026 /* System header to define __stub macros and hopefully few prototypes,
20027 which can conflict with char res_send (); below.
20028 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
20029 <limits.h> exists even on freestanding compilers. */
20031 #ifdef __STDC__
20032 # include <limits.h>
20033 #else
20034 # include <assert.h>
20035 #endif
20037 #undef res_send
20039 /* Override any GCC internal prototype to avoid an error.
20040 Use char because int might match the return type of a GCC
20041 builtin and then its argument prototype would still apply. */
20042 #ifdef __cplusplus
20043 extern "C"
20044 #endif
20045 char res_send ();
20046 /* The GNU C library defines this for functions which it implements
20047 to always fail with ENOSYS. Some functions are actually named
20048 something starting with __ and the normal name is an alias. */
20049 #if defined __stub_res_send || defined __stub___res_send
20050 choke me
20051 #endif
20054 main ()
20056 return res_send ();
20058 return 0;
20060 _ACEOF
20061 rm -f conftest.$ac_objext conftest$ac_exeext
20062 if { (ac_try="$ac_link"
20063 case "(($ac_try" in
20064 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20065 *) ac_try_echo=$ac_try;;
20066 esac
20067 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20068 (eval "$ac_link") 2>conftest.er1
20069 ac_status=$?
20070 grep -v '^ *+' conftest.er1 >conftest.err
20071 rm -f conftest.er1
20072 cat conftest.err >&5
20073 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20074 (exit $ac_status); } && {
20075 test -z "$ac_c_werror_flag" ||
20076 test ! -s conftest.err
20077 } && test -s conftest$ac_exeext &&
20078 $as_test_x conftest$ac_exeext; then
20079 ac_cv_func_res_send=yes
20080 else
20081 echo "$as_me: failed program was:" >&5
20082 sed 's/^/| /' conftest.$ac_ext >&5
20084 ac_cv_func_res_send=no
20087 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
20088 conftest$ac_exeext conftest.$ac_ext
20090 { echo "$as_me:$LINENO: result: $ac_cv_func_res_send" >&5
20091 echo "${ECHO_T}$ac_cv_func_res_send" >&6; }
20092 if test $ac_cv_func_res_send = yes; then
20094 else
20095 { echo "$as_me:$LINENO: checking for __res_send" >&5
20096 echo $ECHO_N "checking for __res_send... $ECHO_C" >&6; }
20097 if test "${ac_cv_func___res_send+set}" = set; then
20098 echo $ECHO_N "(cached) $ECHO_C" >&6
20099 else
20100 cat >conftest.$ac_ext <<_ACEOF
20101 /* confdefs.h. */
20102 _ACEOF
20103 cat confdefs.h >>conftest.$ac_ext
20104 cat >>conftest.$ac_ext <<_ACEOF
20105 /* end confdefs.h. */
20106 /* Define __res_send to an innocuous variant, in case <limits.h> declares __res_send.
20107 For example, HP-UX 11i <limits.h> declares gettimeofday. */
20108 #define __res_send innocuous___res_send
20110 /* System header to define __stub macros and hopefully few prototypes,
20111 which can conflict with char __res_send (); below.
20112 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
20113 <limits.h> exists even on freestanding compilers. */
20115 #ifdef __STDC__
20116 # include <limits.h>
20117 #else
20118 # include <assert.h>
20119 #endif
20121 #undef __res_send
20123 /* Override any GCC internal prototype to avoid an error.
20124 Use char because int might match the return type of a GCC
20125 builtin and then its argument prototype would still apply. */
20126 #ifdef __cplusplus
20127 extern "C"
20128 #endif
20129 char __res_send ();
20130 /* The GNU C library defines this for functions which it implements
20131 to always fail with ENOSYS. Some functions are actually named
20132 something starting with __ and the normal name is an alias. */
20133 #if defined __stub___res_send || defined __stub_____res_send
20134 choke me
20135 #endif
20138 main ()
20140 return __res_send ();
20142 return 0;
20144 _ACEOF
20145 rm -f conftest.$ac_objext conftest$ac_exeext
20146 if { (ac_try="$ac_link"
20147 case "(($ac_try" in
20148 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20149 *) ac_try_echo=$ac_try;;
20150 esac
20151 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20152 (eval "$ac_link") 2>conftest.er1
20153 ac_status=$?
20154 grep -v '^ *+' conftest.er1 >conftest.err
20155 rm -f conftest.er1
20156 cat conftest.err >&5
20157 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20158 (exit $ac_status); } && {
20159 test -z "$ac_c_werror_flag" ||
20160 test ! -s conftest.err
20161 } && test -s conftest$ac_exeext &&
20162 $as_test_x conftest$ac_exeext; then
20163 ac_cv_func___res_send=yes
20164 else
20165 echo "$as_me: failed program was:" >&5
20166 sed 's/^/| /' conftest.$ac_ext >&5
20168 ac_cv_func___res_send=no
20171 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
20172 conftest$ac_exeext conftest.$ac_ext
20174 { echo "$as_me:$LINENO: result: $ac_cv_func___res_send" >&5
20175 echo "${ECHO_T}$ac_cv_func___res_send" >&6; }
20176 if test $ac_cv_func___res_send = yes; then
20178 else
20179 { echo "$as_me:$LINENO: checking for res_send in -lresolv" >&5
20180 echo $ECHO_N "checking for res_send in -lresolv... $ECHO_C" >&6; }
20181 if test "${ac_cv_lib_resolv_res_send+set}" = set; then
20182 echo $ECHO_N "(cached) $ECHO_C" >&6
20183 else
20184 ac_check_lib_save_LIBS=$LIBS
20185 LIBS="-lresolv $LIBS"
20186 cat >conftest.$ac_ext <<_ACEOF
20187 /* confdefs.h. */
20188 _ACEOF
20189 cat confdefs.h >>conftest.$ac_ext
20190 cat >>conftest.$ac_ext <<_ACEOF
20191 /* end confdefs.h. */
20193 /* Override any GCC internal prototype to avoid an error.
20194 Use char because int might match the return type of a GCC
20195 builtin and then its argument prototype would still apply. */
20196 #ifdef __cplusplus
20197 extern "C"
20198 #endif
20199 char res_send ();
20201 main ()
20203 return res_send ();
20205 return 0;
20207 _ACEOF
20208 rm -f conftest.$ac_objext conftest$ac_exeext
20209 if { (ac_try="$ac_link"
20210 case "(($ac_try" in
20211 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20212 *) ac_try_echo=$ac_try;;
20213 esac
20214 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20215 (eval "$ac_link") 2>conftest.er1
20216 ac_status=$?
20217 grep -v '^ *+' conftest.er1 >conftest.err
20218 rm -f conftest.er1
20219 cat conftest.err >&5
20220 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20221 (exit $ac_status); } && {
20222 test -z "$ac_c_werror_flag" ||
20223 test ! -s conftest.err
20224 } && test -s conftest$ac_exeext &&
20225 $as_test_x conftest$ac_exeext; then
20226 ac_cv_lib_resolv_res_send=yes
20227 else
20228 echo "$as_me: failed program was:" >&5
20229 sed 's/^/| /' conftest.$ac_ext >&5
20231 ac_cv_lib_resolv_res_send=no
20234 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
20235 conftest$ac_exeext conftest.$ac_ext
20236 LIBS=$ac_check_lib_save_LIBS
20238 { echo "$as_me:$LINENO: result: $ac_cv_lib_resolv_res_send" >&5
20239 echo "${ECHO_T}$ac_cv_lib_resolv_res_send" >&6; }
20240 if test $ac_cv_lib_resolv_res_send = yes; then
20241 resolv=yes
20242 else
20243 { echo "$as_me:$LINENO: checking for __res_send in -lresolv" >&5
20244 echo $ECHO_N "checking for __res_send in -lresolv... $ECHO_C" >&6; }
20245 if test "${ac_cv_lib_resolv___res_send+set}" = set; then
20246 echo $ECHO_N "(cached) $ECHO_C" >&6
20247 else
20248 ac_check_lib_save_LIBS=$LIBS
20249 LIBS="-lresolv $LIBS"
20250 cat >conftest.$ac_ext <<_ACEOF
20251 /* confdefs.h. */
20252 _ACEOF
20253 cat confdefs.h >>conftest.$ac_ext
20254 cat >>conftest.$ac_ext <<_ACEOF
20255 /* end confdefs.h. */
20257 /* Override any GCC internal prototype to avoid an error.
20258 Use char because int might match the return type of a GCC
20259 builtin and then its argument prototype would still apply. */
20260 #ifdef __cplusplus
20261 extern "C"
20262 #endif
20263 char __res_send ();
20265 main ()
20267 return __res_send ();
20269 return 0;
20271 _ACEOF
20272 rm -f conftest.$ac_objext conftest$ac_exeext
20273 if { (ac_try="$ac_link"
20274 case "(($ac_try" in
20275 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20276 *) ac_try_echo=$ac_try;;
20277 esac
20278 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20279 (eval "$ac_link") 2>conftest.er1
20280 ac_status=$?
20281 grep -v '^ *+' conftest.er1 >conftest.err
20282 rm -f conftest.er1
20283 cat conftest.err >&5
20284 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20285 (exit $ac_status); } && {
20286 test -z "$ac_c_werror_flag" ||
20287 test ! -s conftest.err
20288 } && test -s conftest$ac_exeext &&
20289 $as_test_x conftest$ac_exeext; then
20290 ac_cv_lib_resolv___res_send=yes
20291 else
20292 echo "$as_me: failed program was:" >&5
20293 sed 's/^/| /' conftest.$ac_ext >&5
20295 ac_cv_lib_resolv___res_send=no
20298 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
20299 conftest$ac_exeext conftest.$ac_ext
20300 LIBS=$ac_check_lib_save_LIBS
20302 { echo "$as_me:$LINENO: result: $ac_cv_lib_resolv___res_send" >&5
20303 echo "${ECHO_T}$ac_cv_lib_resolv___res_send" >&6; }
20304 if test $ac_cv_lib_resolv___res_send = yes; then
20305 resolv=yes
20314 if test "$resolv" = yes ; then
20315 RESOLVLIB=-lresolv
20316 else
20317 RESOLVLIB=
20319 { echo "$as_me:$LINENO: checking for hes_getmailhost" >&5
20320 echo $ECHO_N "checking for hes_getmailhost... $ECHO_C" >&6; }
20321 if test "${ac_cv_func_hes_getmailhost+set}" = set; then
20322 echo $ECHO_N "(cached) $ECHO_C" >&6
20323 else
20324 cat >conftest.$ac_ext <<_ACEOF
20325 /* confdefs.h. */
20326 _ACEOF
20327 cat confdefs.h >>conftest.$ac_ext
20328 cat >>conftest.$ac_ext <<_ACEOF
20329 /* end confdefs.h. */
20330 /* Define hes_getmailhost to an innocuous variant, in case <limits.h> declares hes_getmailhost.
20331 For example, HP-UX 11i <limits.h> declares gettimeofday. */
20332 #define hes_getmailhost innocuous_hes_getmailhost
20334 /* System header to define __stub macros and hopefully few prototypes,
20335 which can conflict with char hes_getmailhost (); below.
20336 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
20337 <limits.h> exists even on freestanding compilers. */
20339 #ifdef __STDC__
20340 # include <limits.h>
20341 #else
20342 # include <assert.h>
20343 #endif
20345 #undef hes_getmailhost
20347 /* Override any GCC internal prototype to avoid an error.
20348 Use char because int might match the return type of a GCC
20349 builtin and then its argument prototype would still apply. */
20350 #ifdef __cplusplus
20351 extern "C"
20352 #endif
20353 char hes_getmailhost ();
20354 /* The GNU C library defines this for functions which it implements
20355 to always fail with ENOSYS. Some functions are actually named
20356 something starting with __ and the normal name is an alias. */
20357 #if defined __stub_hes_getmailhost || defined __stub___hes_getmailhost
20358 choke me
20359 #endif
20362 main ()
20364 return hes_getmailhost ();
20366 return 0;
20368 _ACEOF
20369 rm -f conftest.$ac_objext conftest$ac_exeext
20370 if { (ac_try="$ac_link"
20371 case "(($ac_try" in
20372 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20373 *) ac_try_echo=$ac_try;;
20374 esac
20375 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20376 (eval "$ac_link") 2>conftest.er1
20377 ac_status=$?
20378 grep -v '^ *+' conftest.er1 >conftest.err
20379 rm -f conftest.er1
20380 cat conftest.err >&5
20381 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20382 (exit $ac_status); } && {
20383 test -z "$ac_c_werror_flag" ||
20384 test ! -s conftest.err
20385 } && test -s conftest$ac_exeext &&
20386 $as_test_x conftest$ac_exeext; then
20387 ac_cv_func_hes_getmailhost=yes
20388 else
20389 echo "$as_me: failed program was:" >&5
20390 sed 's/^/| /' conftest.$ac_ext >&5
20392 ac_cv_func_hes_getmailhost=no
20395 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
20396 conftest$ac_exeext conftest.$ac_ext
20398 { echo "$as_me:$LINENO: result: $ac_cv_func_hes_getmailhost" >&5
20399 echo "${ECHO_T}$ac_cv_func_hes_getmailhost" >&6; }
20400 if test $ac_cv_func_hes_getmailhost = yes; then
20402 else
20403 { echo "$as_me:$LINENO: checking for hes_getmailhost in -lhesiod" >&5
20404 echo $ECHO_N "checking for hes_getmailhost in -lhesiod... $ECHO_C" >&6; }
20405 if test "${ac_cv_lib_hesiod_hes_getmailhost+set}" = set; then
20406 echo $ECHO_N "(cached) $ECHO_C" >&6
20407 else
20408 ac_check_lib_save_LIBS=$LIBS
20409 LIBS="-lhesiod $RESOLVLIB $LIBS"
20410 cat >conftest.$ac_ext <<_ACEOF
20411 /* confdefs.h. */
20412 _ACEOF
20413 cat confdefs.h >>conftest.$ac_ext
20414 cat >>conftest.$ac_ext <<_ACEOF
20415 /* end confdefs.h. */
20417 /* Override any GCC internal prototype to avoid an error.
20418 Use char because int might match the return type of a GCC
20419 builtin and then its argument prototype would still apply. */
20420 #ifdef __cplusplus
20421 extern "C"
20422 #endif
20423 char hes_getmailhost ();
20425 main ()
20427 return hes_getmailhost ();
20429 return 0;
20431 _ACEOF
20432 rm -f conftest.$ac_objext conftest$ac_exeext
20433 if { (ac_try="$ac_link"
20434 case "(($ac_try" in
20435 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20436 *) ac_try_echo=$ac_try;;
20437 esac
20438 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20439 (eval "$ac_link") 2>conftest.er1
20440 ac_status=$?
20441 grep -v '^ *+' conftest.er1 >conftest.err
20442 rm -f conftest.er1
20443 cat conftest.err >&5
20444 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20445 (exit $ac_status); } && {
20446 test -z "$ac_c_werror_flag" ||
20447 test ! -s conftest.err
20448 } && test -s conftest$ac_exeext &&
20449 $as_test_x conftest$ac_exeext; then
20450 ac_cv_lib_hesiod_hes_getmailhost=yes
20451 else
20452 echo "$as_me: failed program was:" >&5
20453 sed 's/^/| /' conftest.$ac_ext >&5
20455 ac_cv_lib_hesiod_hes_getmailhost=no
20458 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
20459 conftest$ac_exeext conftest.$ac_ext
20460 LIBS=$ac_check_lib_save_LIBS
20462 { echo "$as_me:$LINENO: result: $ac_cv_lib_hesiod_hes_getmailhost" >&5
20463 echo "${ECHO_T}$ac_cv_lib_hesiod_hes_getmailhost" >&6; }
20464 if test $ac_cv_lib_hesiod_hes_getmailhost = yes; then
20466 cat >>confdefs.h <<\_ACEOF
20467 #define HAVE_LIBHESIOD 1
20468 _ACEOF
20470 else
20478 # Do we need libresolv (due to res_init or Hesiod)?
20479 if test "$resolv" = yes ; then
20481 cat >>confdefs.h <<\_ACEOF
20482 #define HAVE_LIBRESOLV 1
20483 _ACEOF
20487 # These tell us which Kerberos-related libraries to use.
20488 if test "${with_kerberos+set}" = set; then
20490 { echo "$as_me:$LINENO: checking for com_err in -lcom_err" >&5
20491 echo $ECHO_N "checking for com_err in -lcom_err... $ECHO_C" >&6; }
20492 if test "${ac_cv_lib_com_err_com_err+set}" = set; then
20493 echo $ECHO_N "(cached) $ECHO_C" >&6
20494 else
20495 ac_check_lib_save_LIBS=$LIBS
20496 LIBS="-lcom_err $LIBS"
20497 cat >conftest.$ac_ext <<_ACEOF
20498 /* confdefs.h. */
20499 _ACEOF
20500 cat confdefs.h >>conftest.$ac_ext
20501 cat >>conftest.$ac_ext <<_ACEOF
20502 /* end confdefs.h. */
20504 /* Override any GCC internal prototype to avoid an error.
20505 Use char because int might match the return type of a GCC
20506 builtin and then its argument prototype would still apply. */
20507 #ifdef __cplusplus
20508 extern "C"
20509 #endif
20510 char com_err ();
20512 main ()
20514 return com_err ();
20516 return 0;
20518 _ACEOF
20519 rm -f conftest.$ac_objext conftest$ac_exeext
20520 if { (ac_try="$ac_link"
20521 case "(($ac_try" in
20522 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20523 *) ac_try_echo=$ac_try;;
20524 esac
20525 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20526 (eval "$ac_link") 2>conftest.er1
20527 ac_status=$?
20528 grep -v '^ *+' conftest.er1 >conftest.err
20529 rm -f conftest.er1
20530 cat conftest.err >&5
20531 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20532 (exit $ac_status); } && {
20533 test -z "$ac_c_werror_flag" ||
20534 test ! -s conftest.err
20535 } && test -s conftest$ac_exeext &&
20536 $as_test_x conftest$ac_exeext; then
20537 ac_cv_lib_com_err_com_err=yes
20538 else
20539 echo "$as_me: failed program was:" >&5
20540 sed 's/^/| /' conftest.$ac_ext >&5
20542 ac_cv_lib_com_err_com_err=no
20545 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
20546 conftest$ac_exeext conftest.$ac_ext
20547 LIBS=$ac_check_lib_save_LIBS
20549 { echo "$as_me:$LINENO: result: $ac_cv_lib_com_err_com_err" >&5
20550 echo "${ECHO_T}$ac_cv_lib_com_err_com_err" >&6; }
20551 if test $ac_cv_lib_com_err_com_err = yes; then
20552 cat >>confdefs.h <<_ACEOF
20553 #define HAVE_LIBCOM_ERR 1
20554 _ACEOF
20556 LIBS="-lcom_err $LIBS"
20561 { echo "$as_me:$LINENO: checking for mit_des_cbc_encrypt in -lk5crypto" >&5
20562 echo $ECHO_N "checking for mit_des_cbc_encrypt in -lk5crypto... $ECHO_C" >&6; }
20563 if test "${ac_cv_lib_k5crypto_mit_des_cbc_encrypt+set}" = set; then
20564 echo $ECHO_N "(cached) $ECHO_C" >&6
20565 else
20566 ac_check_lib_save_LIBS=$LIBS
20567 LIBS="-lk5crypto $LIBS"
20568 cat >conftest.$ac_ext <<_ACEOF
20569 /* confdefs.h. */
20570 _ACEOF
20571 cat confdefs.h >>conftest.$ac_ext
20572 cat >>conftest.$ac_ext <<_ACEOF
20573 /* end confdefs.h. */
20575 /* Override any GCC internal prototype to avoid an error.
20576 Use char because int might match the return type of a GCC
20577 builtin and then its argument prototype would still apply. */
20578 #ifdef __cplusplus
20579 extern "C"
20580 #endif
20581 char mit_des_cbc_encrypt ();
20583 main ()
20585 return mit_des_cbc_encrypt ();
20587 return 0;
20589 _ACEOF
20590 rm -f conftest.$ac_objext conftest$ac_exeext
20591 if { (ac_try="$ac_link"
20592 case "(($ac_try" in
20593 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20594 *) ac_try_echo=$ac_try;;
20595 esac
20596 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20597 (eval "$ac_link") 2>conftest.er1
20598 ac_status=$?
20599 grep -v '^ *+' conftest.er1 >conftest.err
20600 rm -f conftest.er1
20601 cat conftest.err >&5
20602 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20603 (exit $ac_status); } && {
20604 test -z "$ac_c_werror_flag" ||
20605 test ! -s conftest.err
20606 } && test -s conftest$ac_exeext &&
20607 $as_test_x conftest$ac_exeext; then
20608 ac_cv_lib_k5crypto_mit_des_cbc_encrypt=yes
20609 else
20610 echo "$as_me: failed program was:" >&5
20611 sed 's/^/| /' conftest.$ac_ext >&5
20613 ac_cv_lib_k5crypto_mit_des_cbc_encrypt=no
20616 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
20617 conftest$ac_exeext conftest.$ac_ext
20618 LIBS=$ac_check_lib_save_LIBS
20620 { echo "$as_me:$LINENO: result: $ac_cv_lib_k5crypto_mit_des_cbc_encrypt" >&5
20621 echo "${ECHO_T}$ac_cv_lib_k5crypto_mit_des_cbc_encrypt" >&6; }
20622 if test $ac_cv_lib_k5crypto_mit_des_cbc_encrypt = yes; then
20623 cat >>confdefs.h <<_ACEOF
20624 #define HAVE_LIBK5CRYPTO 1
20625 _ACEOF
20627 LIBS="-lk5crypto $LIBS"
20632 { echo "$as_me:$LINENO: checking for mit_des_cbc_encrypt in -lcrypto" >&5
20633 echo $ECHO_N "checking for mit_des_cbc_encrypt in -lcrypto... $ECHO_C" >&6; }
20634 if test "${ac_cv_lib_crypto_mit_des_cbc_encrypt+set}" = set; then
20635 echo $ECHO_N "(cached) $ECHO_C" >&6
20636 else
20637 ac_check_lib_save_LIBS=$LIBS
20638 LIBS="-lcrypto $LIBS"
20639 cat >conftest.$ac_ext <<_ACEOF
20640 /* confdefs.h. */
20641 _ACEOF
20642 cat confdefs.h >>conftest.$ac_ext
20643 cat >>conftest.$ac_ext <<_ACEOF
20644 /* end confdefs.h. */
20646 /* Override any GCC internal prototype to avoid an error.
20647 Use char because int might match the return type of a GCC
20648 builtin and then its argument prototype would still apply. */
20649 #ifdef __cplusplus
20650 extern "C"
20651 #endif
20652 char mit_des_cbc_encrypt ();
20654 main ()
20656 return mit_des_cbc_encrypt ();
20658 return 0;
20660 _ACEOF
20661 rm -f conftest.$ac_objext conftest$ac_exeext
20662 if { (ac_try="$ac_link"
20663 case "(($ac_try" in
20664 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20665 *) ac_try_echo=$ac_try;;
20666 esac
20667 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20668 (eval "$ac_link") 2>conftest.er1
20669 ac_status=$?
20670 grep -v '^ *+' conftest.er1 >conftest.err
20671 rm -f conftest.er1
20672 cat conftest.err >&5
20673 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20674 (exit $ac_status); } && {
20675 test -z "$ac_c_werror_flag" ||
20676 test ! -s conftest.err
20677 } && test -s conftest$ac_exeext &&
20678 $as_test_x conftest$ac_exeext; then
20679 ac_cv_lib_crypto_mit_des_cbc_encrypt=yes
20680 else
20681 echo "$as_me: failed program was:" >&5
20682 sed 's/^/| /' conftest.$ac_ext >&5
20684 ac_cv_lib_crypto_mit_des_cbc_encrypt=no
20687 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
20688 conftest$ac_exeext conftest.$ac_ext
20689 LIBS=$ac_check_lib_save_LIBS
20691 { echo "$as_me:$LINENO: result: $ac_cv_lib_crypto_mit_des_cbc_encrypt" >&5
20692 echo "${ECHO_T}$ac_cv_lib_crypto_mit_des_cbc_encrypt" >&6; }
20693 if test $ac_cv_lib_crypto_mit_des_cbc_encrypt = yes; then
20694 cat >>confdefs.h <<_ACEOF
20695 #define HAVE_LIBCRYPTO 1
20696 _ACEOF
20698 LIBS="-lcrypto $LIBS"
20703 { echo "$as_me:$LINENO: checking for krb5_init_context in -lkrb5" >&5
20704 echo $ECHO_N "checking for krb5_init_context in -lkrb5... $ECHO_C" >&6; }
20705 if test "${ac_cv_lib_krb5_krb5_init_context+set}" = set; then
20706 echo $ECHO_N "(cached) $ECHO_C" >&6
20707 else
20708 ac_check_lib_save_LIBS=$LIBS
20709 LIBS="-lkrb5 $LIBS"
20710 cat >conftest.$ac_ext <<_ACEOF
20711 /* confdefs.h. */
20712 _ACEOF
20713 cat confdefs.h >>conftest.$ac_ext
20714 cat >>conftest.$ac_ext <<_ACEOF
20715 /* end confdefs.h. */
20717 /* Override any GCC internal prototype to avoid an error.
20718 Use char because int might match the return type of a GCC
20719 builtin and then its argument prototype would still apply. */
20720 #ifdef __cplusplus
20721 extern "C"
20722 #endif
20723 char krb5_init_context ();
20725 main ()
20727 return krb5_init_context ();
20729 return 0;
20731 _ACEOF
20732 rm -f conftest.$ac_objext conftest$ac_exeext
20733 if { (ac_try="$ac_link"
20734 case "(($ac_try" in
20735 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20736 *) ac_try_echo=$ac_try;;
20737 esac
20738 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20739 (eval "$ac_link") 2>conftest.er1
20740 ac_status=$?
20741 grep -v '^ *+' conftest.er1 >conftest.err
20742 rm -f conftest.er1
20743 cat conftest.err >&5
20744 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20745 (exit $ac_status); } && {
20746 test -z "$ac_c_werror_flag" ||
20747 test ! -s conftest.err
20748 } && test -s conftest$ac_exeext &&
20749 $as_test_x conftest$ac_exeext; then
20750 ac_cv_lib_krb5_krb5_init_context=yes
20751 else
20752 echo "$as_me: failed program was:" >&5
20753 sed 's/^/| /' conftest.$ac_ext >&5
20755 ac_cv_lib_krb5_krb5_init_context=no
20758 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
20759 conftest$ac_exeext conftest.$ac_ext
20760 LIBS=$ac_check_lib_save_LIBS
20762 { echo "$as_me:$LINENO: result: $ac_cv_lib_krb5_krb5_init_context" >&5
20763 echo "${ECHO_T}$ac_cv_lib_krb5_krb5_init_context" >&6; }
20764 if test $ac_cv_lib_krb5_krb5_init_context = yes; then
20765 cat >>confdefs.h <<_ACEOF
20766 #define HAVE_LIBKRB5 1
20767 _ACEOF
20769 LIBS="-lkrb5 $LIBS"
20773 if test "${with_kerberos5+set}" != set; then
20775 { echo "$as_me:$LINENO: checking for des_cbc_encrypt in -ldes425" >&5
20776 echo $ECHO_N "checking for des_cbc_encrypt in -ldes425... $ECHO_C" >&6; }
20777 if test "${ac_cv_lib_des425_des_cbc_encrypt+set}" = set; then
20778 echo $ECHO_N "(cached) $ECHO_C" >&6
20779 else
20780 ac_check_lib_save_LIBS=$LIBS
20781 LIBS="-ldes425 $LIBS"
20782 cat >conftest.$ac_ext <<_ACEOF
20783 /* confdefs.h. */
20784 _ACEOF
20785 cat confdefs.h >>conftest.$ac_ext
20786 cat >>conftest.$ac_ext <<_ACEOF
20787 /* end confdefs.h. */
20789 /* Override any GCC internal prototype to avoid an error.
20790 Use char because int might match the return type of a GCC
20791 builtin and then its argument prototype would still apply. */
20792 #ifdef __cplusplus
20793 extern "C"
20794 #endif
20795 char des_cbc_encrypt ();
20797 main ()
20799 return des_cbc_encrypt ();
20801 return 0;
20803 _ACEOF
20804 rm -f conftest.$ac_objext conftest$ac_exeext
20805 if { (ac_try="$ac_link"
20806 case "(($ac_try" in
20807 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20808 *) ac_try_echo=$ac_try;;
20809 esac
20810 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20811 (eval "$ac_link") 2>conftest.er1
20812 ac_status=$?
20813 grep -v '^ *+' conftest.er1 >conftest.err
20814 rm -f conftest.er1
20815 cat conftest.err >&5
20816 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20817 (exit $ac_status); } && {
20818 test -z "$ac_c_werror_flag" ||
20819 test ! -s conftest.err
20820 } && test -s conftest$ac_exeext &&
20821 $as_test_x conftest$ac_exeext; then
20822 ac_cv_lib_des425_des_cbc_encrypt=yes
20823 else
20824 echo "$as_me: failed program was:" >&5
20825 sed 's/^/| /' conftest.$ac_ext >&5
20827 ac_cv_lib_des425_des_cbc_encrypt=no
20830 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
20831 conftest$ac_exeext conftest.$ac_ext
20832 LIBS=$ac_check_lib_save_LIBS
20834 { echo "$as_me:$LINENO: result: $ac_cv_lib_des425_des_cbc_encrypt" >&5
20835 echo "${ECHO_T}$ac_cv_lib_des425_des_cbc_encrypt" >&6; }
20836 if test $ac_cv_lib_des425_des_cbc_encrypt = yes; then
20837 cat >>confdefs.h <<_ACEOF
20838 #define HAVE_LIBDES425 1
20839 _ACEOF
20841 LIBS="-ldes425 $LIBS"
20843 else
20845 { echo "$as_me:$LINENO: checking for des_cbc_encrypt in -ldes" >&5
20846 echo $ECHO_N "checking for des_cbc_encrypt in -ldes... $ECHO_C" >&6; }
20847 if test "${ac_cv_lib_des_des_cbc_encrypt+set}" = set; then
20848 echo $ECHO_N "(cached) $ECHO_C" >&6
20849 else
20850 ac_check_lib_save_LIBS=$LIBS
20851 LIBS="-ldes $LIBS"
20852 cat >conftest.$ac_ext <<_ACEOF
20853 /* confdefs.h. */
20854 _ACEOF
20855 cat confdefs.h >>conftest.$ac_ext
20856 cat >>conftest.$ac_ext <<_ACEOF
20857 /* end confdefs.h. */
20859 /* Override any GCC internal prototype to avoid an error.
20860 Use char because int might match the return type of a GCC
20861 builtin and then its argument prototype would still apply. */
20862 #ifdef __cplusplus
20863 extern "C"
20864 #endif
20865 char des_cbc_encrypt ();
20867 main ()
20869 return des_cbc_encrypt ();
20871 return 0;
20873 _ACEOF
20874 rm -f conftest.$ac_objext conftest$ac_exeext
20875 if { (ac_try="$ac_link"
20876 case "(($ac_try" in
20877 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20878 *) ac_try_echo=$ac_try;;
20879 esac
20880 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20881 (eval "$ac_link") 2>conftest.er1
20882 ac_status=$?
20883 grep -v '^ *+' conftest.er1 >conftest.err
20884 rm -f conftest.er1
20885 cat conftest.err >&5
20886 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20887 (exit $ac_status); } && {
20888 test -z "$ac_c_werror_flag" ||
20889 test ! -s conftest.err
20890 } && test -s conftest$ac_exeext &&
20891 $as_test_x conftest$ac_exeext; then
20892 ac_cv_lib_des_des_cbc_encrypt=yes
20893 else
20894 echo "$as_me: failed program was:" >&5
20895 sed 's/^/| /' conftest.$ac_ext >&5
20897 ac_cv_lib_des_des_cbc_encrypt=no
20900 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
20901 conftest$ac_exeext conftest.$ac_ext
20902 LIBS=$ac_check_lib_save_LIBS
20904 { echo "$as_me:$LINENO: result: $ac_cv_lib_des_des_cbc_encrypt" >&5
20905 echo "${ECHO_T}$ac_cv_lib_des_des_cbc_encrypt" >&6; }
20906 if test $ac_cv_lib_des_des_cbc_encrypt = yes; then
20907 cat >>confdefs.h <<_ACEOF
20908 #define HAVE_LIBDES 1
20909 _ACEOF
20911 LIBS="-ldes $LIBS"
20918 { echo "$as_me:$LINENO: checking for krb_get_cred in -lkrb4" >&5
20919 echo $ECHO_N "checking for krb_get_cred in -lkrb4... $ECHO_C" >&6; }
20920 if test "${ac_cv_lib_krb4_krb_get_cred+set}" = set; then
20921 echo $ECHO_N "(cached) $ECHO_C" >&6
20922 else
20923 ac_check_lib_save_LIBS=$LIBS
20924 LIBS="-lkrb4 $LIBS"
20925 cat >conftest.$ac_ext <<_ACEOF
20926 /* confdefs.h. */
20927 _ACEOF
20928 cat confdefs.h >>conftest.$ac_ext
20929 cat >>conftest.$ac_ext <<_ACEOF
20930 /* end confdefs.h. */
20932 /* Override any GCC internal prototype to avoid an error.
20933 Use char because int might match the return type of a GCC
20934 builtin and then its argument prototype would still apply. */
20935 #ifdef __cplusplus
20936 extern "C"
20937 #endif
20938 char krb_get_cred ();
20940 main ()
20942 return krb_get_cred ();
20944 return 0;
20946 _ACEOF
20947 rm -f conftest.$ac_objext conftest$ac_exeext
20948 if { (ac_try="$ac_link"
20949 case "(($ac_try" in
20950 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20951 *) ac_try_echo=$ac_try;;
20952 esac
20953 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20954 (eval "$ac_link") 2>conftest.er1
20955 ac_status=$?
20956 grep -v '^ *+' conftest.er1 >conftest.err
20957 rm -f conftest.er1
20958 cat conftest.err >&5
20959 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20960 (exit $ac_status); } && {
20961 test -z "$ac_c_werror_flag" ||
20962 test ! -s conftest.err
20963 } && test -s conftest$ac_exeext &&
20964 $as_test_x conftest$ac_exeext; then
20965 ac_cv_lib_krb4_krb_get_cred=yes
20966 else
20967 echo "$as_me: failed program was:" >&5
20968 sed 's/^/| /' conftest.$ac_ext >&5
20970 ac_cv_lib_krb4_krb_get_cred=no
20973 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
20974 conftest$ac_exeext conftest.$ac_ext
20975 LIBS=$ac_check_lib_save_LIBS
20977 { echo "$as_me:$LINENO: result: $ac_cv_lib_krb4_krb_get_cred" >&5
20978 echo "${ECHO_T}$ac_cv_lib_krb4_krb_get_cred" >&6; }
20979 if test $ac_cv_lib_krb4_krb_get_cred = yes; then
20980 cat >>confdefs.h <<_ACEOF
20981 #define HAVE_LIBKRB4 1
20982 _ACEOF
20984 LIBS="-lkrb4 $LIBS"
20986 else
20988 { echo "$as_me:$LINENO: checking for krb_get_cred in -lkrb" >&5
20989 echo $ECHO_N "checking for krb_get_cred in -lkrb... $ECHO_C" >&6; }
20990 if test "${ac_cv_lib_krb_krb_get_cred+set}" = set; then
20991 echo $ECHO_N "(cached) $ECHO_C" >&6
20992 else
20993 ac_check_lib_save_LIBS=$LIBS
20994 LIBS="-lkrb $LIBS"
20995 cat >conftest.$ac_ext <<_ACEOF
20996 /* confdefs.h. */
20997 _ACEOF
20998 cat confdefs.h >>conftest.$ac_ext
20999 cat >>conftest.$ac_ext <<_ACEOF
21000 /* end confdefs.h. */
21002 /* Override any GCC internal prototype to avoid an error.
21003 Use char because int might match the return type of a GCC
21004 builtin and then its argument prototype would still apply. */
21005 #ifdef __cplusplus
21006 extern "C"
21007 #endif
21008 char krb_get_cred ();
21010 main ()
21012 return krb_get_cred ();
21014 return 0;
21016 _ACEOF
21017 rm -f conftest.$ac_objext conftest$ac_exeext
21018 if { (ac_try="$ac_link"
21019 case "(($ac_try" in
21020 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21021 *) ac_try_echo=$ac_try;;
21022 esac
21023 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21024 (eval "$ac_link") 2>conftest.er1
21025 ac_status=$?
21026 grep -v '^ *+' conftest.er1 >conftest.err
21027 rm -f conftest.er1
21028 cat conftest.err >&5
21029 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21030 (exit $ac_status); } && {
21031 test -z "$ac_c_werror_flag" ||
21032 test ! -s conftest.err
21033 } && test -s conftest$ac_exeext &&
21034 $as_test_x conftest$ac_exeext; then
21035 ac_cv_lib_krb_krb_get_cred=yes
21036 else
21037 echo "$as_me: failed program was:" >&5
21038 sed 's/^/| /' conftest.$ac_ext >&5
21040 ac_cv_lib_krb_krb_get_cred=no
21043 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
21044 conftest$ac_exeext conftest.$ac_ext
21045 LIBS=$ac_check_lib_save_LIBS
21047 { echo "$as_me:$LINENO: result: $ac_cv_lib_krb_krb_get_cred" >&5
21048 echo "${ECHO_T}$ac_cv_lib_krb_krb_get_cred" >&6; }
21049 if test $ac_cv_lib_krb_krb_get_cred = yes; then
21050 cat >>confdefs.h <<_ACEOF
21051 #define HAVE_LIBKRB 1
21052 _ACEOF
21054 LIBS="-lkrb $LIBS"
21062 if test "${with_kerberos5+set}" = set; then
21064 for ac_header in krb5.h
21066 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
21067 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
21068 { echo "$as_me:$LINENO: checking for $ac_header" >&5
21069 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
21070 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
21071 echo $ECHO_N "(cached) $ECHO_C" >&6
21073 ac_res=`eval echo '${'$as_ac_Header'}'`
21074 { echo "$as_me:$LINENO: result: $ac_res" >&5
21075 echo "${ECHO_T}$ac_res" >&6; }
21076 else
21077 # Is the header compilable?
21078 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
21079 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
21080 cat >conftest.$ac_ext <<_ACEOF
21081 /* confdefs.h. */
21082 _ACEOF
21083 cat confdefs.h >>conftest.$ac_ext
21084 cat >>conftest.$ac_ext <<_ACEOF
21085 /* end confdefs.h. */
21086 $ac_includes_default
21087 #include <$ac_header>
21088 _ACEOF
21089 rm -f conftest.$ac_objext
21090 if { (ac_try="$ac_compile"
21091 case "(($ac_try" in
21092 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21093 *) ac_try_echo=$ac_try;;
21094 esac
21095 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21096 (eval "$ac_compile") 2>conftest.er1
21097 ac_status=$?
21098 grep -v '^ *+' conftest.er1 >conftest.err
21099 rm -f conftest.er1
21100 cat conftest.err >&5
21101 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21102 (exit $ac_status); } && {
21103 test -z "$ac_c_werror_flag" ||
21104 test ! -s conftest.err
21105 } && test -s conftest.$ac_objext; then
21106 ac_header_compiler=yes
21107 else
21108 echo "$as_me: failed program was:" >&5
21109 sed 's/^/| /' conftest.$ac_ext >&5
21111 ac_header_compiler=no
21114 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21115 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
21116 echo "${ECHO_T}$ac_header_compiler" >&6; }
21118 # Is the header present?
21119 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
21120 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
21121 cat >conftest.$ac_ext <<_ACEOF
21122 /* confdefs.h. */
21123 _ACEOF
21124 cat confdefs.h >>conftest.$ac_ext
21125 cat >>conftest.$ac_ext <<_ACEOF
21126 /* end confdefs.h. */
21127 #include <$ac_header>
21128 _ACEOF
21129 if { (ac_try="$ac_cpp conftest.$ac_ext"
21130 case "(($ac_try" in
21131 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21132 *) ac_try_echo=$ac_try;;
21133 esac
21134 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21135 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
21136 ac_status=$?
21137 grep -v '^ *+' conftest.er1 >conftest.err
21138 rm -f conftest.er1
21139 cat conftest.err >&5
21140 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21141 (exit $ac_status); } >/dev/null && {
21142 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
21143 test ! -s conftest.err
21144 }; then
21145 ac_header_preproc=yes
21146 else
21147 echo "$as_me: failed program was:" >&5
21148 sed 's/^/| /' conftest.$ac_ext >&5
21150 ac_header_preproc=no
21153 rm -f conftest.err conftest.$ac_ext
21154 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
21155 echo "${ECHO_T}$ac_header_preproc" >&6; }
21157 # So? What about this header?
21158 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
21159 yes:no: )
21160 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
21161 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
21162 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
21163 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
21164 ac_header_preproc=yes
21166 no:yes:* )
21167 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
21168 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
21169 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
21170 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
21171 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
21172 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
21173 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
21174 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
21175 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
21176 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
21177 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
21178 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
21181 esac
21182 { echo "$as_me:$LINENO: checking for $ac_header" >&5
21183 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
21184 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
21185 echo $ECHO_N "(cached) $ECHO_C" >&6
21186 else
21187 eval "$as_ac_Header=\$ac_header_preproc"
21189 ac_res=`eval echo '${'$as_ac_Header'}'`
21190 { echo "$as_me:$LINENO: result: $ac_res" >&5
21191 echo "${ECHO_T}$ac_res" >&6; }
21194 if test `eval echo '${'$as_ac_Header'}'` = yes; then
21195 cat >>confdefs.h <<_ACEOF
21196 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
21197 _ACEOF
21201 done
21203 else
21205 for ac_header in des.h
21207 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
21208 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
21209 { echo "$as_me:$LINENO: checking for $ac_header" >&5
21210 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
21211 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
21212 echo $ECHO_N "(cached) $ECHO_C" >&6
21214 ac_res=`eval echo '${'$as_ac_Header'}'`
21215 { echo "$as_me:$LINENO: result: $ac_res" >&5
21216 echo "${ECHO_T}$ac_res" >&6; }
21217 else
21218 # Is the header compilable?
21219 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
21220 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
21221 cat >conftest.$ac_ext <<_ACEOF
21222 /* confdefs.h. */
21223 _ACEOF
21224 cat confdefs.h >>conftest.$ac_ext
21225 cat >>conftest.$ac_ext <<_ACEOF
21226 /* end confdefs.h. */
21227 $ac_includes_default
21228 #include <$ac_header>
21229 _ACEOF
21230 rm -f conftest.$ac_objext
21231 if { (ac_try="$ac_compile"
21232 case "(($ac_try" in
21233 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21234 *) ac_try_echo=$ac_try;;
21235 esac
21236 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21237 (eval "$ac_compile") 2>conftest.er1
21238 ac_status=$?
21239 grep -v '^ *+' conftest.er1 >conftest.err
21240 rm -f conftest.er1
21241 cat conftest.err >&5
21242 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21243 (exit $ac_status); } && {
21244 test -z "$ac_c_werror_flag" ||
21245 test ! -s conftest.err
21246 } && test -s conftest.$ac_objext; then
21247 ac_header_compiler=yes
21248 else
21249 echo "$as_me: failed program was:" >&5
21250 sed 's/^/| /' conftest.$ac_ext >&5
21252 ac_header_compiler=no
21255 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21256 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
21257 echo "${ECHO_T}$ac_header_compiler" >&6; }
21259 # Is the header present?
21260 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
21261 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
21262 cat >conftest.$ac_ext <<_ACEOF
21263 /* confdefs.h. */
21264 _ACEOF
21265 cat confdefs.h >>conftest.$ac_ext
21266 cat >>conftest.$ac_ext <<_ACEOF
21267 /* end confdefs.h. */
21268 #include <$ac_header>
21269 _ACEOF
21270 if { (ac_try="$ac_cpp conftest.$ac_ext"
21271 case "(($ac_try" in
21272 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21273 *) ac_try_echo=$ac_try;;
21274 esac
21275 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21276 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
21277 ac_status=$?
21278 grep -v '^ *+' conftest.er1 >conftest.err
21279 rm -f conftest.er1
21280 cat conftest.err >&5
21281 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21282 (exit $ac_status); } >/dev/null && {
21283 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
21284 test ! -s conftest.err
21285 }; then
21286 ac_header_preproc=yes
21287 else
21288 echo "$as_me: failed program was:" >&5
21289 sed 's/^/| /' conftest.$ac_ext >&5
21291 ac_header_preproc=no
21294 rm -f conftest.err conftest.$ac_ext
21295 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
21296 echo "${ECHO_T}$ac_header_preproc" >&6; }
21298 # So? What about this header?
21299 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
21300 yes:no: )
21301 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
21302 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
21303 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
21304 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
21305 ac_header_preproc=yes
21307 no:yes:* )
21308 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
21309 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
21310 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
21311 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
21312 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
21313 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
21314 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
21315 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
21316 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
21317 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
21318 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
21319 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
21322 esac
21323 { echo "$as_me:$LINENO: checking for $ac_header" >&5
21324 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
21325 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
21326 echo $ECHO_N "(cached) $ECHO_C" >&6
21327 else
21328 eval "$as_ac_Header=\$ac_header_preproc"
21330 ac_res=`eval echo '${'$as_ac_Header'}'`
21331 { echo "$as_me:$LINENO: result: $ac_res" >&5
21332 echo "${ECHO_T}$ac_res" >&6; }
21335 if test `eval echo '${'$as_ac_Header'}'` = yes; then
21336 cat >>confdefs.h <<_ACEOF
21337 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
21338 _ACEOF
21340 else
21342 for ac_header in kerberosIV/des.h
21344 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
21345 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
21346 { echo "$as_me:$LINENO: checking for $ac_header" >&5
21347 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
21348 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
21349 echo $ECHO_N "(cached) $ECHO_C" >&6
21351 ac_res=`eval echo '${'$as_ac_Header'}'`
21352 { echo "$as_me:$LINENO: result: $ac_res" >&5
21353 echo "${ECHO_T}$ac_res" >&6; }
21354 else
21355 # Is the header compilable?
21356 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
21357 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
21358 cat >conftest.$ac_ext <<_ACEOF
21359 /* confdefs.h. */
21360 _ACEOF
21361 cat confdefs.h >>conftest.$ac_ext
21362 cat >>conftest.$ac_ext <<_ACEOF
21363 /* end confdefs.h. */
21364 $ac_includes_default
21365 #include <$ac_header>
21366 _ACEOF
21367 rm -f conftest.$ac_objext
21368 if { (ac_try="$ac_compile"
21369 case "(($ac_try" in
21370 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21371 *) ac_try_echo=$ac_try;;
21372 esac
21373 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21374 (eval "$ac_compile") 2>conftest.er1
21375 ac_status=$?
21376 grep -v '^ *+' conftest.er1 >conftest.err
21377 rm -f conftest.er1
21378 cat conftest.err >&5
21379 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21380 (exit $ac_status); } && {
21381 test -z "$ac_c_werror_flag" ||
21382 test ! -s conftest.err
21383 } && test -s conftest.$ac_objext; then
21384 ac_header_compiler=yes
21385 else
21386 echo "$as_me: failed program was:" >&5
21387 sed 's/^/| /' conftest.$ac_ext >&5
21389 ac_header_compiler=no
21392 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21393 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
21394 echo "${ECHO_T}$ac_header_compiler" >&6; }
21396 # Is the header present?
21397 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
21398 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
21399 cat >conftest.$ac_ext <<_ACEOF
21400 /* confdefs.h. */
21401 _ACEOF
21402 cat confdefs.h >>conftest.$ac_ext
21403 cat >>conftest.$ac_ext <<_ACEOF
21404 /* end confdefs.h. */
21405 #include <$ac_header>
21406 _ACEOF
21407 if { (ac_try="$ac_cpp conftest.$ac_ext"
21408 case "(($ac_try" in
21409 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21410 *) ac_try_echo=$ac_try;;
21411 esac
21412 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21413 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
21414 ac_status=$?
21415 grep -v '^ *+' conftest.er1 >conftest.err
21416 rm -f conftest.er1
21417 cat conftest.err >&5
21418 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21419 (exit $ac_status); } >/dev/null && {
21420 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
21421 test ! -s conftest.err
21422 }; then
21423 ac_header_preproc=yes
21424 else
21425 echo "$as_me: failed program was:" >&5
21426 sed 's/^/| /' conftest.$ac_ext >&5
21428 ac_header_preproc=no
21431 rm -f conftest.err conftest.$ac_ext
21432 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
21433 echo "${ECHO_T}$ac_header_preproc" >&6; }
21435 # So? What about this header?
21436 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
21437 yes:no: )
21438 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
21439 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
21440 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
21441 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
21442 ac_header_preproc=yes
21444 no:yes:* )
21445 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
21446 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
21447 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
21448 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
21449 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
21450 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
21451 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
21452 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
21453 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
21454 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
21455 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
21456 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
21459 esac
21460 { echo "$as_me:$LINENO: checking for $ac_header" >&5
21461 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
21462 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
21463 echo $ECHO_N "(cached) $ECHO_C" >&6
21464 else
21465 eval "$as_ac_Header=\$ac_header_preproc"
21467 ac_res=`eval echo '${'$as_ac_Header'}'`
21468 { echo "$as_me:$LINENO: result: $ac_res" >&5
21469 echo "${ECHO_T}$ac_res" >&6; }
21472 if test `eval echo '${'$as_ac_Header'}'` = yes; then
21473 cat >>confdefs.h <<_ACEOF
21474 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
21475 _ACEOF
21477 else
21479 for ac_header in kerberos/des.h
21481 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
21482 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
21483 { echo "$as_me:$LINENO: checking for $ac_header" >&5
21484 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
21485 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
21486 echo $ECHO_N "(cached) $ECHO_C" >&6
21488 ac_res=`eval echo '${'$as_ac_Header'}'`
21489 { echo "$as_me:$LINENO: result: $ac_res" >&5
21490 echo "${ECHO_T}$ac_res" >&6; }
21491 else
21492 # Is the header compilable?
21493 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
21494 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
21495 cat >conftest.$ac_ext <<_ACEOF
21496 /* confdefs.h. */
21497 _ACEOF
21498 cat confdefs.h >>conftest.$ac_ext
21499 cat >>conftest.$ac_ext <<_ACEOF
21500 /* end confdefs.h. */
21501 $ac_includes_default
21502 #include <$ac_header>
21503 _ACEOF
21504 rm -f conftest.$ac_objext
21505 if { (ac_try="$ac_compile"
21506 case "(($ac_try" in
21507 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21508 *) ac_try_echo=$ac_try;;
21509 esac
21510 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21511 (eval "$ac_compile") 2>conftest.er1
21512 ac_status=$?
21513 grep -v '^ *+' conftest.er1 >conftest.err
21514 rm -f conftest.er1
21515 cat conftest.err >&5
21516 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21517 (exit $ac_status); } && {
21518 test -z "$ac_c_werror_flag" ||
21519 test ! -s conftest.err
21520 } && test -s conftest.$ac_objext; then
21521 ac_header_compiler=yes
21522 else
21523 echo "$as_me: failed program was:" >&5
21524 sed 's/^/| /' conftest.$ac_ext >&5
21526 ac_header_compiler=no
21529 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21530 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
21531 echo "${ECHO_T}$ac_header_compiler" >&6; }
21533 # Is the header present?
21534 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
21535 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
21536 cat >conftest.$ac_ext <<_ACEOF
21537 /* confdefs.h. */
21538 _ACEOF
21539 cat confdefs.h >>conftest.$ac_ext
21540 cat >>conftest.$ac_ext <<_ACEOF
21541 /* end confdefs.h. */
21542 #include <$ac_header>
21543 _ACEOF
21544 if { (ac_try="$ac_cpp conftest.$ac_ext"
21545 case "(($ac_try" in
21546 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21547 *) ac_try_echo=$ac_try;;
21548 esac
21549 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21550 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
21551 ac_status=$?
21552 grep -v '^ *+' conftest.er1 >conftest.err
21553 rm -f conftest.er1
21554 cat conftest.err >&5
21555 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21556 (exit $ac_status); } >/dev/null && {
21557 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
21558 test ! -s conftest.err
21559 }; then
21560 ac_header_preproc=yes
21561 else
21562 echo "$as_me: failed program was:" >&5
21563 sed 's/^/| /' conftest.$ac_ext >&5
21565 ac_header_preproc=no
21568 rm -f conftest.err conftest.$ac_ext
21569 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
21570 echo "${ECHO_T}$ac_header_preproc" >&6; }
21572 # So? What about this header?
21573 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
21574 yes:no: )
21575 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
21576 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
21577 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
21578 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
21579 ac_header_preproc=yes
21581 no:yes:* )
21582 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
21583 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
21584 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
21585 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
21586 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
21587 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
21588 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
21589 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
21590 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
21591 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
21592 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
21593 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
21596 esac
21597 { echo "$as_me:$LINENO: checking for $ac_header" >&5
21598 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
21599 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
21600 echo $ECHO_N "(cached) $ECHO_C" >&6
21601 else
21602 eval "$as_ac_Header=\$ac_header_preproc"
21604 ac_res=`eval echo '${'$as_ac_Header'}'`
21605 { echo "$as_me:$LINENO: result: $ac_res" >&5
21606 echo "${ECHO_T}$ac_res" >&6; }
21609 if test `eval echo '${'$as_ac_Header'}'` = yes; then
21610 cat >>confdefs.h <<_ACEOF
21611 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
21612 _ACEOF
21616 done
21620 done
21624 done
21627 for ac_header in krb.h
21629 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
21630 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
21631 { echo "$as_me:$LINENO: checking for $ac_header" >&5
21632 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
21633 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
21634 echo $ECHO_N "(cached) $ECHO_C" >&6
21636 ac_res=`eval echo '${'$as_ac_Header'}'`
21637 { echo "$as_me:$LINENO: result: $ac_res" >&5
21638 echo "${ECHO_T}$ac_res" >&6; }
21639 else
21640 # Is the header compilable?
21641 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
21642 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
21643 cat >conftest.$ac_ext <<_ACEOF
21644 /* confdefs.h. */
21645 _ACEOF
21646 cat confdefs.h >>conftest.$ac_ext
21647 cat >>conftest.$ac_ext <<_ACEOF
21648 /* end confdefs.h. */
21649 $ac_includes_default
21650 #include <$ac_header>
21651 _ACEOF
21652 rm -f conftest.$ac_objext
21653 if { (ac_try="$ac_compile"
21654 case "(($ac_try" in
21655 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21656 *) ac_try_echo=$ac_try;;
21657 esac
21658 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21659 (eval "$ac_compile") 2>conftest.er1
21660 ac_status=$?
21661 grep -v '^ *+' conftest.er1 >conftest.err
21662 rm -f conftest.er1
21663 cat conftest.err >&5
21664 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21665 (exit $ac_status); } && {
21666 test -z "$ac_c_werror_flag" ||
21667 test ! -s conftest.err
21668 } && test -s conftest.$ac_objext; then
21669 ac_header_compiler=yes
21670 else
21671 echo "$as_me: failed program was:" >&5
21672 sed 's/^/| /' conftest.$ac_ext >&5
21674 ac_header_compiler=no
21677 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21678 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
21679 echo "${ECHO_T}$ac_header_compiler" >&6; }
21681 # Is the header present?
21682 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
21683 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
21684 cat >conftest.$ac_ext <<_ACEOF
21685 /* confdefs.h. */
21686 _ACEOF
21687 cat confdefs.h >>conftest.$ac_ext
21688 cat >>conftest.$ac_ext <<_ACEOF
21689 /* end confdefs.h. */
21690 #include <$ac_header>
21691 _ACEOF
21692 if { (ac_try="$ac_cpp conftest.$ac_ext"
21693 case "(($ac_try" in
21694 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21695 *) ac_try_echo=$ac_try;;
21696 esac
21697 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21698 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
21699 ac_status=$?
21700 grep -v '^ *+' conftest.er1 >conftest.err
21701 rm -f conftest.er1
21702 cat conftest.err >&5
21703 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21704 (exit $ac_status); } >/dev/null && {
21705 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
21706 test ! -s conftest.err
21707 }; then
21708 ac_header_preproc=yes
21709 else
21710 echo "$as_me: failed program was:" >&5
21711 sed 's/^/| /' conftest.$ac_ext >&5
21713 ac_header_preproc=no
21716 rm -f conftest.err conftest.$ac_ext
21717 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
21718 echo "${ECHO_T}$ac_header_preproc" >&6; }
21720 # So? What about this header?
21721 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
21722 yes:no: )
21723 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
21724 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
21725 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
21726 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
21727 ac_header_preproc=yes
21729 no:yes:* )
21730 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
21731 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
21732 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
21733 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
21734 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
21735 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
21736 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
21737 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
21738 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
21739 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
21740 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
21741 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
21744 esac
21745 { echo "$as_me:$LINENO: checking for $ac_header" >&5
21746 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
21747 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
21748 echo $ECHO_N "(cached) $ECHO_C" >&6
21749 else
21750 eval "$as_ac_Header=\$ac_header_preproc"
21752 ac_res=`eval echo '${'$as_ac_Header'}'`
21753 { echo "$as_me:$LINENO: result: $ac_res" >&5
21754 echo "${ECHO_T}$ac_res" >&6; }
21757 if test `eval echo '${'$as_ac_Header'}'` = yes; then
21758 cat >>confdefs.h <<_ACEOF
21759 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
21760 _ACEOF
21762 else
21764 for ac_header in kerberosIV/krb.h
21766 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
21767 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
21768 { echo "$as_me:$LINENO: checking for $ac_header" >&5
21769 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
21770 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
21771 echo $ECHO_N "(cached) $ECHO_C" >&6
21773 ac_res=`eval echo '${'$as_ac_Header'}'`
21774 { echo "$as_me:$LINENO: result: $ac_res" >&5
21775 echo "${ECHO_T}$ac_res" >&6; }
21776 else
21777 # Is the header compilable?
21778 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
21779 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
21780 cat >conftest.$ac_ext <<_ACEOF
21781 /* confdefs.h. */
21782 _ACEOF
21783 cat confdefs.h >>conftest.$ac_ext
21784 cat >>conftest.$ac_ext <<_ACEOF
21785 /* end confdefs.h. */
21786 $ac_includes_default
21787 #include <$ac_header>
21788 _ACEOF
21789 rm -f conftest.$ac_objext
21790 if { (ac_try="$ac_compile"
21791 case "(($ac_try" in
21792 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21793 *) ac_try_echo=$ac_try;;
21794 esac
21795 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21796 (eval "$ac_compile") 2>conftest.er1
21797 ac_status=$?
21798 grep -v '^ *+' conftest.er1 >conftest.err
21799 rm -f conftest.er1
21800 cat conftest.err >&5
21801 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21802 (exit $ac_status); } && {
21803 test -z "$ac_c_werror_flag" ||
21804 test ! -s conftest.err
21805 } && test -s conftest.$ac_objext; then
21806 ac_header_compiler=yes
21807 else
21808 echo "$as_me: failed program was:" >&5
21809 sed 's/^/| /' conftest.$ac_ext >&5
21811 ac_header_compiler=no
21814 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21815 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
21816 echo "${ECHO_T}$ac_header_compiler" >&6; }
21818 # Is the header present?
21819 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
21820 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
21821 cat >conftest.$ac_ext <<_ACEOF
21822 /* confdefs.h. */
21823 _ACEOF
21824 cat confdefs.h >>conftest.$ac_ext
21825 cat >>conftest.$ac_ext <<_ACEOF
21826 /* end confdefs.h. */
21827 #include <$ac_header>
21828 _ACEOF
21829 if { (ac_try="$ac_cpp conftest.$ac_ext"
21830 case "(($ac_try" in
21831 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21832 *) ac_try_echo=$ac_try;;
21833 esac
21834 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21835 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
21836 ac_status=$?
21837 grep -v '^ *+' conftest.er1 >conftest.err
21838 rm -f conftest.er1
21839 cat conftest.err >&5
21840 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21841 (exit $ac_status); } >/dev/null && {
21842 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
21843 test ! -s conftest.err
21844 }; then
21845 ac_header_preproc=yes
21846 else
21847 echo "$as_me: failed program was:" >&5
21848 sed 's/^/| /' conftest.$ac_ext >&5
21850 ac_header_preproc=no
21853 rm -f conftest.err conftest.$ac_ext
21854 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
21855 echo "${ECHO_T}$ac_header_preproc" >&6; }
21857 # So? What about this header?
21858 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
21859 yes:no: )
21860 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
21861 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
21862 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
21863 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
21864 ac_header_preproc=yes
21866 no:yes:* )
21867 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
21868 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
21869 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
21870 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
21871 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
21872 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
21873 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
21874 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
21875 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
21876 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
21877 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
21878 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
21881 esac
21882 { echo "$as_me:$LINENO: checking for $ac_header" >&5
21883 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
21884 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
21885 echo $ECHO_N "(cached) $ECHO_C" >&6
21886 else
21887 eval "$as_ac_Header=\$ac_header_preproc"
21889 ac_res=`eval echo '${'$as_ac_Header'}'`
21890 { echo "$as_me:$LINENO: result: $ac_res" >&5
21891 echo "${ECHO_T}$ac_res" >&6; }
21894 if test `eval echo '${'$as_ac_Header'}'` = yes; then
21895 cat >>confdefs.h <<_ACEOF
21896 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
21897 _ACEOF
21899 else
21901 for ac_header in kerberos/krb.h
21903 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
21904 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
21905 { echo "$as_me:$LINENO: checking for $ac_header" >&5
21906 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
21907 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
21908 echo $ECHO_N "(cached) $ECHO_C" >&6
21910 ac_res=`eval echo '${'$as_ac_Header'}'`
21911 { echo "$as_me:$LINENO: result: $ac_res" >&5
21912 echo "${ECHO_T}$ac_res" >&6; }
21913 else
21914 # Is the header compilable?
21915 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
21916 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
21917 cat >conftest.$ac_ext <<_ACEOF
21918 /* confdefs.h. */
21919 _ACEOF
21920 cat confdefs.h >>conftest.$ac_ext
21921 cat >>conftest.$ac_ext <<_ACEOF
21922 /* end confdefs.h. */
21923 $ac_includes_default
21924 #include <$ac_header>
21925 _ACEOF
21926 rm -f conftest.$ac_objext
21927 if { (ac_try="$ac_compile"
21928 case "(($ac_try" in
21929 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21930 *) ac_try_echo=$ac_try;;
21931 esac
21932 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21933 (eval "$ac_compile") 2>conftest.er1
21934 ac_status=$?
21935 grep -v '^ *+' conftest.er1 >conftest.err
21936 rm -f conftest.er1
21937 cat conftest.err >&5
21938 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21939 (exit $ac_status); } && {
21940 test -z "$ac_c_werror_flag" ||
21941 test ! -s conftest.err
21942 } && test -s conftest.$ac_objext; then
21943 ac_header_compiler=yes
21944 else
21945 echo "$as_me: failed program was:" >&5
21946 sed 's/^/| /' conftest.$ac_ext >&5
21948 ac_header_compiler=no
21951 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21952 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
21953 echo "${ECHO_T}$ac_header_compiler" >&6; }
21955 # Is the header present?
21956 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
21957 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
21958 cat >conftest.$ac_ext <<_ACEOF
21959 /* confdefs.h. */
21960 _ACEOF
21961 cat confdefs.h >>conftest.$ac_ext
21962 cat >>conftest.$ac_ext <<_ACEOF
21963 /* end confdefs.h. */
21964 #include <$ac_header>
21965 _ACEOF
21966 if { (ac_try="$ac_cpp conftest.$ac_ext"
21967 case "(($ac_try" in
21968 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21969 *) ac_try_echo=$ac_try;;
21970 esac
21971 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21972 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
21973 ac_status=$?
21974 grep -v '^ *+' conftest.er1 >conftest.err
21975 rm -f conftest.er1
21976 cat conftest.err >&5
21977 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21978 (exit $ac_status); } >/dev/null && {
21979 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
21980 test ! -s conftest.err
21981 }; then
21982 ac_header_preproc=yes
21983 else
21984 echo "$as_me: failed program was:" >&5
21985 sed 's/^/| /' conftest.$ac_ext >&5
21987 ac_header_preproc=no
21990 rm -f conftest.err conftest.$ac_ext
21991 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
21992 echo "${ECHO_T}$ac_header_preproc" >&6; }
21994 # So? What about this header?
21995 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
21996 yes:no: )
21997 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
21998 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
21999 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
22000 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
22001 ac_header_preproc=yes
22003 no:yes:* )
22004 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
22005 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
22006 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
22007 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
22008 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
22009 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
22010 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
22011 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
22012 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
22013 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
22014 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
22015 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
22018 esac
22019 { echo "$as_me:$LINENO: checking for $ac_header" >&5
22020 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
22021 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
22022 echo $ECHO_N "(cached) $ECHO_C" >&6
22023 else
22024 eval "$as_ac_Header=\$ac_header_preproc"
22026 ac_res=`eval echo '${'$as_ac_Header'}'`
22027 { echo "$as_me:$LINENO: result: $ac_res" >&5
22028 echo "${ECHO_T}$ac_res" >&6; }
22031 if test `eval echo '${'$as_ac_Header'}'` = yes; then
22032 cat >>confdefs.h <<_ACEOF
22033 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
22034 _ACEOF
22038 done
22042 done
22046 done
22050 for ac_header in com_err.h
22052 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
22053 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
22054 { echo "$as_me:$LINENO: checking for $ac_header" >&5
22055 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
22056 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
22057 echo $ECHO_N "(cached) $ECHO_C" >&6
22059 ac_res=`eval echo '${'$as_ac_Header'}'`
22060 { echo "$as_me:$LINENO: result: $ac_res" >&5
22061 echo "${ECHO_T}$ac_res" >&6; }
22062 else
22063 # Is the header compilable?
22064 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
22065 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
22066 cat >conftest.$ac_ext <<_ACEOF
22067 /* confdefs.h. */
22068 _ACEOF
22069 cat confdefs.h >>conftest.$ac_ext
22070 cat >>conftest.$ac_ext <<_ACEOF
22071 /* end confdefs.h. */
22072 $ac_includes_default
22073 #include <$ac_header>
22074 _ACEOF
22075 rm -f conftest.$ac_objext
22076 if { (ac_try="$ac_compile"
22077 case "(($ac_try" in
22078 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22079 *) ac_try_echo=$ac_try;;
22080 esac
22081 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22082 (eval "$ac_compile") 2>conftest.er1
22083 ac_status=$?
22084 grep -v '^ *+' conftest.er1 >conftest.err
22085 rm -f conftest.er1
22086 cat conftest.err >&5
22087 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22088 (exit $ac_status); } && {
22089 test -z "$ac_c_werror_flag" ||
22090 test ! -s conftest.err
22091 } && test -s conftest.$ac_objext; then
22092 ac_header_compiler=yes
22093 else
22094 echo "$as_me: failed program was:" >&5
22095 sed 's/^/| /' conftest.$ac_ext >&5
22097 ac_header_compiler=no
22100 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22101 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
22102 echo "${ECHO_T}$ac_header_compiler" >&6; }
22104 # Is the header present?
22105 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
22106 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
22107 cat >conftest.$ac_ext <<_ACEOF
22108 /* confdefs.h. */
22109 _ACEOF
22110 cat confdefs.h >>conftest.$ac_ext
22111 cat >>conftest.$ac_ext <<_ACEOF
22112 /* end confdefs.h. */
22113 #include <$ac_header>
22114 _ACEOF
22115 if { (ac_try="$ac_cpp conftest.$ac_ext"
22116 case "(($ac_try" in
22117 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22118 *) ac_try_echo=$ac_try;;
22119 esac
22120 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22121 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
22122 ac_status=$?
22123 grep -v '^ *+' conftest.er1 >conftest.err
22124 rm -f conftest.er1
22125 cat conftest.err >&5
22126 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22127 (exit $ac_status); } >/dev/null && {
22128 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
22129 test ! -s conftest.err
22130 }; then
22131 ac_header_preproc=yes
22132 else
22133 echo "$as_me: failed program was:" >&5
22134 sed 's/^/| /' conftest.$ac_ext >&5
22136 ac_header_preproc=no
22139 rm -f conftest.err conftest.$ac_ext
22140 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
22141 echo "${ECHO_T}$ac_header_preproc" >&6; }
22143 # So? What about this header?
22144 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
22145 yes:no: )
22146 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
22147 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
22148 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
22149 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
22150 ac_header_preproc=yes
22152 no:yes:* )
22153 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
22154 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
22155 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
22156 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
22157 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
22158 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
22159 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
22160 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
22161 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
22162 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
22163 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
22164 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
22167 esac
22168 { echo "$as_me:$LINENO: checking for $ac_header" >&5
22169 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
22170 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
22171 echo $ECHO_N "(cached) $ECHO_C" >&6
22172 else
22173 eval "$as_ac_Header=\$ac_header_preproc"
22175 ac_res=`eval echo '${'$as_ac_Header'}'`
22176 { echo "$as_me:$LINENO: result: $ac_res" >&5
22177 echo "${ECHO_T}$ac_res" >&6; }
22180 if test `eval echo '${'$as_ac_Header'}'` = yes; then
22181 cat >>confdefs.h <<_ACEOF
22182 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
22183 _ACEOF
22187 done
22191 # Solaris requires -lintl if you want strerror (which calls dgettext)
22192 # to return localized messages.
22194 { echo "$as_me:$LINENO: checking for dgettext in -lintl" >&5
22195 echo $ECHO_N "checking for dgettext in -lintl... $ECHO_C" >&6; }
22196 if test "${ac_cv_lib_intl_dgettext+set}" = set; then
22197 echo $ECHO_N "(cached) $ECHO_C" >&6
22198 else
22199 ac_check_lib_save_LIBS=$LIBS
22200 LIBS="-lintl $LIBS"
22201 cat >conftest.$ac_ext <<_ACEOF
22202 /* confdefs.h. */
22203 _ACEOF
22204 cat confdefs.h >>conftest.$ac_ext
22205 cat >>conftest.$ac_ext <<_ACEOF
22206 /* end confdefs.h. */
22208 /* Override any GCC internal prototype to avoid an error.
22209 Use char because int might match the return type of a GCC
22210 builtin and then its argument prototype would still apply. */
22211 #ifdef __cplusplus
22212 extern "C"
22213 #endif
22214 char dgettext ();
22216 main ()
22218 return dgettext ();
22220 return 0;
22222 _ACEOF
22223 rm -f conftest.$ac_objext conftest$ac_exeext
22224 if { (ac_try="$ac_link"
22225 case "(($ac_try" in
22226 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22227 *) ac_try_echo=$ac_try;;
22228 esac
22229 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22230 (eval "$ac_link") 2>conftest.er1
22231 ac_status=$?
22232 grep -v '^ *+' conftest.er1 >conftest.err
22233 rm -f conftest.er1
22234 cat conftest.err >&5
22235 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22236 (exit $ac_status); } && {
22237 test -z "$ac_c_werror_flag" ||
22238 test ! -s conftest.err
22239 } && test -s conftest$ac_exeext &&
22240 $as_test_x conftest$ac_exeext; then
22241 ac_cv_lib_intl_dgettext=yes
22242 else
22243 echo "$as_me: failed program was:" >&5
22244 sed 's/^/| /' conftest.$ac_ext >&5
22246 ac_cv_lib_intl_dgettext=no
22249 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
22250 conftest$ac_exeext conftest.$ac_ext
22251 LIBS=$ac_check_lib_save_LIBS
22253 { echo "$as_me:$LINENO: result: $ac_cv_lib_intl_dgettext" >&5
22254 echo "${ECHO_T}$ac_cv_lib_intl_dgettext" >&6; }
22255 if test $ac_cv_lib_intl_dgettext = yes; then
22256 cat >>confdefs.h <<_ACEOF
22257 #define HAVE_LIBINTL 1
22258 _ACEOF
22260 LIBS="-lintl $LIBS"
22265 { echo "$as_me:$LINENO: checking whether localtime caches TZ" >&5
22266 echo $ECHO_N "checking whether localtime caches TZ... $ECHO_C" >&6; }
22267 if test "${emacs_cv_localtime_cache+set}" = set; then
22268 echo $ECHO_N "(cached) $ECHO_C" >&6
22269 else
22270 if test x$ac_cv_func_tzset = xyes; then
22271 if test "$cross_compiling" = yes; then
22272 # If we have tzset, assume the worst when cross-compiling.
22273 emacs_cv_localtime_cache=yes
22274 else
22275 cat >conftest.$ac_ext <<_ACEOF
22276 /* confdefs.h. */
22277 _ACEOF
22278 cat confdefs.h >>conftest.$ac_ext
22279 cat >>conftest.$ac_ext <<_ACEOF
22280 /* end confdefs.h. */
22281 #include <time.h>
22282 extern char **environ;
22283 unset_TZ ()
22285 char **from, **to;
22286 for (to = from = environ; (*to = *from); from++)
22287 if (! (to[0][0] == 'T' && to[0][1] == 'Z' && to[0][2] == '='))
22288 to++;
22290 char TZ_GMT0[] = "TZ=GMT0";
22291 char TZ_PST8[] = "TZ=PST8";
22292 main()
22294 time_t now = time ((time_t *) 0);
22295 int hour_GMT0, hour_unset;
22296 if (putenv (TZ_GMT0) != 0)
22297 exit (1);
22298 hour_GMT0 = localtime (&now)->tm_hour;
22299 unset_TZ ();
22300 hour_unset = localtime (&now)->tm_hour;
22301 if (putenv (TZ_PST8) != 0)
22302 exit (1);
22303 if (localtime (&now)->tm_hour == hour_GMT0)
22304 exit (1);
22305 unset_TZ ();
22306 if (localtime (&now)->tm_hour != hour_unset)
22307 exit (1);
22308 exit (0);
22310 _ACEOF
22311 rm -f conftest$ac_exeext
22312 if { (ac_try="$ac_link"
22313 case "(($ac_try" in
22314 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22315 *) ac_try_echo=$ac_try;;
22316 esac
22317 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22318 (eval "$ac_link") 2>&5
22319 ac_status=$?
22320 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22321 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
22322 { (case "(($ac_try" in
22323 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22324 *) ac_try_echo=$ac_try;;
22325 esac
22326 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22327 (eval "$ac_try") 2>&5
22328 ac_status=$?
22329 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22330 (exit $ac_status); }; }; then
22331 emacs_cv_localtime_cache=no
22332 else
22333 echo "$as_me: program exited with status $ac_status" >&5
22334 echo "$as_me: failed program was:" >&5
22335 sed 's/^/| /' conftest.$ac_ext >&5
22337 ( exit $ac_status )
22338 emacs_cv_localtime_cache=yes
22340 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
22344 else
22345 # If we lack tzset, report that localtime does not cache TZ,
22346 # since we can't invalidate the cache if we don't have tzset.
22347 emacs_cv_localtime_cache=no
22350 { echo "$as_me:$LINENO: result: $emacs_cv_localtime_cache" >&5
22351 echo "${ECHO_T}$emacs_cv_localtime_cache" >&6; }
22352 if test $emacs_cv_localtime_cache = yes; then
22354 cat >>confdefs.h <<\_ACEOF
22355 #define LOCALTIME_CACHE 1
22356 _ACEOF
22360 if test "x$HAVE_TIMEVAL" = xyes; then
22362 for ac_func in gettimeofday
22364 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
22365 { echo "$as_me:$LINENO: checking for $ac_func" >&5
22366 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
22367 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
22368 echo $ECHO_N "(cached) $ECHO_C" >&6
22369 else
22370 cat >conftest.$ac_ext <<_ACEOF
22371 /* confdefs.h. */
22372 _ACEOF
22373 cat confdefs.h >>conftest.$ac_ext
22374 cat >>conftest.$ac_ext <<_ACEOF
22375 /* end confdefs.h. */
22376 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
22377 For example, HP-UX 11i <limits.h> declares gettimeofday. */
22378 #define $ac_func innocuous_$ac_func
22380 /* System header to define __stub macros and hopefully few prototypes,
22381 which can conflict with char $ac_func (); below.
22382 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
22383 <limits.h> exists even on freestanding compilers. */
22385 #ifdef __STDC__
22386 # include <limits.h>
22387 #else
22388 # include <assert.h>
22389 #endif
22391 #undef $ac_func
22393 /* Override any GCC internal prototype to avoid an error.
22394 Use char because int might match the return type of a GCC
22395 builtin and then its argument prototype would still apply. */
22396 #ifdef __cplusplus
22397 extern "C"
22398 #endif
22399 char $ac_func ();
22400 /* The GNU C library defines this for functions which it implements
22401 to always fail with ENOSYS. Some functions are actually named
22402 something starting with __ and the normal name is an alias. */
22403 #if defined __stub_$ac_func || defined __stub___$ac_func
22404 choke me
22405 #endif
22408 main ()
22410 return $ac_func ();
22412 return 0;
22414 _ACEOF
22415 rm -f conftest.$ac_objext conftest$ac_exeext
22416 if { (ac_try="$ac_link"
22417 case "(($ac_try" in
22418 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22419 *) ac_try_echo=$ac_try;;
22420 esac
22421 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22422 (eval "$ac_link") 2>conftest.er1
22423 ac_status=$?
22424 grep -v '^ *+' conftest.er1 >conftest.err
22425 rm -f conftest.er1
22426 cat conftest.err >&5
22427 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22428 (exit $ac_status); } && {
22429 test -z "$ac_c_werror_flag" ||
22430 test ! -s conftest.err
22431 } && test -s conftest$ac_exeext &&
22432 $as_test_x conftest$ac_exeext; then
22433 eval "$as_ac_var=yes"
22434 else
22435 echo "$as_me: failed program was:" >&5
22436 sed 's/^/| /' conftest.$ac_ext >&5
22438 eval "$as_ac_var=no"
22441 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
22442 conftest$ac_exeext conftest.$ac_ext
22444 ac_res=`eval echo '${'$as_ac_var'}'`
22445 { echo "$as_me:$LINENO: result: $ac_res" >&5
22446 echo "${ECHO_T}$ac_res" >&6; }
22447 if test `eval echo '${'$as_ac_var'}'` = yes; then
22448 cat >>confdefs.h <<_ACEOF
22449 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
22450 _ACEOF
22453 done
22455 if test $ac_cv_func_gettimeofday = yes; then
22456 { echo "$as_me:$LINENO: checking whether gettimeofday can accept two arguments" >&5
22457 echo $ECHO_N "checking whether gettimeofday can accept two arguments... $ECHO_C" >&6; }
22458 if test "${emacs_cv_gettimeofday_two_arguments+set}" = set; then
22459 echo $ECHO_N "(cached) $ECHO_C" >&6
22460 else
22461 cat >conftest.$ac_ext <<_ACEOF
22462 /* confdefs.h. */
22463 _ACEOF
22464 cat confdefs.h >>conftest.$ac_ext
22465 cat >>conftest.$ac_ext <<_ACEOF
22466 /* end confdefs.h. */
22468 #ifdef TIME_WITH_SYS_TIME
22469 #include <sys/time.h>
22470 #include <time.h>
22471 #else
22472 #ifdef HAVE_SYS_TIME_H
22473 #include <sys/time.h>
22474 #else
22475 #include <time.h>
22476 #endif
22477 #endif
22479 main ()
22481 struct timeval time;
22482 gettimeofday (&time, 0);
22484 return 0;
22486 _ACEOF
22487 rm -f conftest.$ac_objext
22488 if { (ac_try="$ac_compile"
22489 case "(($ac_try" in
22490 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22491 *) ac_try_echo=$ac_try;;
22492 esac
22493 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22494 (eval "$ac_compile") 2>conftest.er1
22495 ac_status=$?
22496 grep -v '^ *+' conftest.er1 >conftest.err
22497 rm -f conftest.er1
22498 cat conftest.err >&5
22499 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22500 (exit $ac_status); } && {
22501 test -z "$ac_c_werror_flag" ||
22502 test ! -s conftest.err
22503 } && test -s conftest.$ac_objext; then
22504 emacs_cv_gettimeofday_two_arguments=yes
22505 else
22506 echo "$as_me: failed program was:" >&5
22507 sed 's/^/| /' conftest.$ac_ext >&5
22509 emacs_cv_gettimeofday_two_arguments=no
22512 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22514 { echo "$as_me:$LINENO: result: $emacs_cv_gettimeofday_two_arguments" >&5
22515 echo "${ECHO_T}$emacs_cv_gettimeofday_two_arguments" >&6; }
22516 if test $emacs_cv_gettimeofday_two_arguments = no; then
22518 cat >>confdefs.h <<\_ACEOF
22519 #define GETTIMEOFDAY_ONE_ARGUMENT 1
22520 _ACEOF
22526 ok_so_far=yes
22527 { echo "$as_me:$LINENO: checking for socket" >&5
22528 echo $ECHO_N "checking for socket... $ECHO_C" >&6; }
22529 if test "${ac_cv_func_socket+set}" = set; then
22530 echo $ECHO_N "(cached) $ECHO_C" >&6
22531 else
22532 cat >conftest.$ac_ext <<_ACEOF
22533 /* confdefs.h. */
22534 _ACEOF
22535 cat confdefs.h >>conftest.$ac_ext
22536 cat >>conftest.$ac_ext <<_ACEOF
22537 /* end confdefs.h. */
22538 /* Define socket to an innocuous variant, in case <limits.h> declares socket.
22539 For example, HP-UX 11i <limits.h> declares gettimeofday. */
22540 #define socket innocuous_socket
22542 /* System header to define __stub macros and hopefully few prototypes,
22543 which can conflict with char socket (); below.
22544 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
22545 <limits.h> exists even on freestanding compilers. */
22547 #ifdef __STDC__
22548 # include <limits.h>
22549 #else
22550 # include <assert.h>
22551 #endif
22553 #undef socket
22555 /* Override any GCC internal prototype to avoid an error.
22556 Use char because int might match the return type of a GCC
22557 builtin and then its argument prototype would still apply. */
22558 #ifdef __cplusplus
22559 extern "C"
22560 #endif
22561 char socket ();
22562 /* The GNU C library defines this for functions which it implements
22563 to always fail with ENOSYS. Some functions are actually named
22564 something starting with __ and the normal name is an alias. */
22565 #if defined __stub_socket || defined __stub___socket
22566 choke me
22567 #endif
22570 main ()
22572 return socket ();
22574 return 0;
22576 _ACEOF
22577 rm -f conftest.$ac_objext conftest$ac_exeext
22578 if { (ac_try="$ac_link"
22579 case "(($ac_try" in
22580 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22581 *) ac_try_echo=$ac_try;;
22582 esac
22583 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22584 (eval "$ac_link") 2>conftest.er1
22585 ac_status=$?
22586 grep -v '^ *+' conftest.er1 >conftest.err
22587 rm -f conftest.er1
22588 cat conftest.err >&5
22589 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22590 (exit $ac_status); } && {
22591 test -z "$ac_c_werror_flag" ||
22592 test ! -s conftest.err
22593 } && test -s conftest$ac_exeext &&
22594 $as_test_x conftest$ac_exeext; then
22595 ac_cv_func_socket=yes
22596 else
22597 echo "$as_me: failed program was:" >&5
22598 sed 's/^/| /' conftest.$ac_ext >&5
22600 ac_cv_func_socket=no
22603 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
22604 conftest$ac_exeext conftest.$ac_ext
22606 { echo "$as_me:$LINENO: result: $ac_cv_func_socket" >&5
22607 echo "${ECHO_T}$ac_cv_func_socket" >&6; }
22608 if test $ac_cv_func_socket = yes; then
22610 else
22611 ok_so_far=no
22614 if test $ok_so_far = yes; then
22615 if test "${ac_cv_header_netinet_in_h+set}" = set; then
22616 { echo "$as_me:$LINENO: checking for netinet/in.h" >&5
22617 echo $ECHO_N "checking for netinet/in.h... $ECHO_C" >&6; }
22618 if test "${ac_cv_header_netinet_in_h+set}" = set; then
22619 echo $ECHO_N "(cached) $ECHO_C" >&6
22621 { echo "$as_me:$LINENO: result: $ac_cv_header_netinet_in_h" >&5
22622 echo "${ECHO_T}$ac_cv_header_netinet_in_h" >&6; }
22623 else
22624 # Is the header compilable?
22625 { echo "$as_me:$LINENO: checking netinet/in.h usability" >&5
22626 echo $ECHO_N "checking netinet/in.h usability... $ECHO_C" >&6; }
22627 cat >conftest.$ac_ext <<_ACEOF
22628 /* confdefs.h. */
22629 _ACEOF
22630 cat confdefs.h >>conftest.$ac_ext
22631 cat >>conftest.$ac_ext <<_ACEOF
22632 /* end confdefs.h. */
22633 $ac_includes_default
22634 #include <netinet/in.h>
22635 _ACEOF
22636 rm -f conftest.$ac_objext
22637 if { (ac_try="$ac_compile"
22638 case "(($ac_try" in
22639 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22640 *) ac_try_echo=$ac_try;;
22641 esac
22642 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22643 (eval "$ac_compile") 2>conftest.er1
22644 ac_status=$?
22645 grep -v '^ *+' conftest.er1 >conftest.err
22646 rm -f conftest.er1
22647 cat conftest.err >&5
22648 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22649 (exit $ac_status); } && {
22650 test -z "$ac_c_werror_flag" ||
22651 test ! -s conftest.err
22652 } && test -s conftest.$ac_objext; then
22653 ac_header_compiler=yes
22654 else
22655 echo "$as_me: failed program was:" >&5
22656 sed 's/^/| /' conftest.$ac_ext >&5
22658 ac_header_compiler=no
22661 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22662 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
22663 echo "${ECHO_T}$ac_header_compiler" >&6; }
22665 # Is the header present?
22666 { echo "$as_me:$LINENO: checking netinet/in.h presence" >&5
22667 echo $ECHO_N "checking netinet/in.h presence... $ECHO_C" >&6; }
22668 cat >conftest.$ac_ext <<_ACEOF
22669 /* confdefs.h. */
22670 _ACEOF
22671 cat confdefs.h >>conftest.$ac_ext
22672 cat >>conftest.$ac_ext <<_ACEOF
22673 /* end confdefs.h. */
22674 #include <netinet/in.h>
22675 _ACEOF
22676 if { (ac_try="$ac_cpp conftest.$ac_ext"
22677 case "(($ac_try" in
22678 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22679 *) ac_try_echo=$ac_try;;
22680 esac
22681 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22682 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
22683 ac_status=$?
22684 grep -v '^ *+' conftest.er1 >conftest.err
22685 rm -f conftest.er1
22686 cat conftest.err >&5
22687 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22688 (exit $ac_status); } >/dev/null && {
22689 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
22690 test ! -s conftest.err
22691 }; then
22692 ac_header_preproc=yes
22693 else
22694 echo "$as_me: failed program was:" >&5
22695 sed 's/^/| /' conftest.$ac_ext >&5
22697 ac_header_preproc=no
22700 rm -f conftest.err conftest.$ac_ext
22701 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
22702 echo "${ECHO_T}$ac_header_preproc" >&6; }
22704 # So? What about this header?
22705 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
22706 yes:no: )
22707 { echo "$as_me:$LINENO: WARNING: netinet/in.h: accepted by the compiler, rejected by the preprocessor!" >&5
22708 echo "$as_me: WARNING: netinet/in.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
22709 { echo "$as_me:$LINENO: WARNING: netinet/in.h: proceeding with the compiler's result" >&5
22710 echo "$as_me: WARNING: netinet/in.h: proceeding with the compiler's result" >&2;}
22711 ac_header_preproc=yes
22713 no:yes:* )
22714 { echo "$as_me:$LINENO: WARNING: netinet/in.h: present but cannot be compiled" >&5
22715 echo "$as_me: WARNING: netinet/in.h: present but cannot be compiled" >&2;}
22716 { echo "$as_me:$LINENO: WARNING: netinet/in.h: check for missing prerequisite headers?" >&5
22717 echo "$as_me: WARNING: netinet/in.h: check for missing prerequisite headers?" >&2;}
22718 { echo "$as_me:$LINENO: WARNING: netinet/in.h: see the Autoconf documentation" >&5
22719 echo "$as_me: WARNING: netinet/in.h: see the Autoconf documentation" >&2;}
22720 { echo "$as_me:$LINENO: WARNING: netinet/in.h: section \"Present But Cannot Be Compiled\"" >&5
22721 echo "$as_me: WARNING: netinet/in.h: section \"Present But Cannot Be Compiled\"" >&2;}
22722 { echo "$as_me:$LINENO: WARNING: netinet/in.h: proceeding with the preprocessor's result" >&5
22723 echo "$as_me: WARNING: netinet/in.h: proceeding with the preprocessor's result" >&2;}
22724 { echo "$as_me:$LINENO: WARNING: netinet/in.h: in the future, the compiler will take precedence" >&5
22725 echo "$as_me: WARNING: netinet/in.h: in the future, the compiler will take precedence" >&2;}
22728 esac
22729 { echo "$as_me:$LINENO: checking for netinet/in.h" >&5
22730 echo $ECHO_N "checking for netinet/in.h... $ECHO_C" >&6; }
22731 if test "${ac_cv_header_netinet_in_h+set}" = set; then
22732 echo $ECHO_N "(cached) $ECHO_C" >&6
22733 else
22734 ac_cv_header_netinet_in_h=$ac_header_preproc
22736 { echo "$as_me:$LINENO: result: $ac_cv_header_netinet_in_h" >&5
22737 echo "${ECHO_T}$ac_cv_header_netinet_in_h" >&6; }
22740 if test $ac_cv_header_netinet_in_h = yes; then
22742 else
22743 ok_so_far=no
22748 if test $ok_so_far = yes; then
22749 if test "${ac_cv_header_arpa_inet_h+set}" = set; then
22750 { echo "$as_me:$LINENO: checking for arpa/inet.h" >&5
22751 echo $ECHO_N "checking for arpa/inet.h... $ECHO_C" >&6; }
22752 if test "${ac_cv_header_arpa_inet_h+set}" = set; then
22753 echo $ECHO_N "(cached) $ECHO_C" >&6
22755 { echo "$as_me:$LINENO: result: $ac_cv_header_arpa_inet_h" >&5
22756 echo "${ECHO_T}$ac_cv_header_arpa_inet_h" >&6; }
22757 else
22758 # Is the header compilable?
22759 { echo "$as_me:$LINENO: checking arpa/inet.h usability" >&5
22760 echo $ECHO_N "checking arpa/inet.h usability... $ECHO_C" >&6; }
22761 cat >conftest.$ac_ext <<_ACEOF
22762 /* confdefs.h. */
22763 _ACEOF
22764 cat confdefs.h >>conftest.$ac_ext
22765 cat >>conftest.$ac_ext <<_ACEOF
22766 /* end confdefs.h. */
22767 $ac_includes_default
22768 #include <arpa/inet.h>
22769 _ACEOF
22770 rm -f conftest.$ac_objext
22771 if { (ac_try="$ac_compile"
22772 case "(($ac_try" in
22773 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22774 *) ac_try_echo=$ac_try;;
22775 esac
22776 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22777 (eval "$ac_compile") 2>conftest.er1
22778 ac_status=$?
22779 grep -v '^ *+' conftest.er1 >conftest.err
22780 rm -f conftest.er1
22781 cat conftest.err >&5
22782 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22783 (exit $ac_status); } && {
22784 test -z "$ac_c_werror_flag" ||
22785 test ! -s conftest.err
22786 } && test -s conftest.$ac_objext; then
22787 ac_header_compiler=yes
22788 else
22789 echo "$as_me: failed program was:" >&5
22790 sed 's/^/| /' conftest.$ac_ext >&5
22792 ac_header_compiler=no
22795 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22796 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
22797 echo "${ECHO_T}$ac_header_compiler" >&6; }
22799 # Is the header present?
22800 { echo "$as_me:$LINENO: checking arpa/inet.h presence" >&5
22801 echo $ECHO_N "checking arpa/inet.h presence... $ECHO_C" >&6; }
22802 cat >conftest.$ac_ext <<_ACEOF
22803 /* confdefs.h. */
22804 _ACEOF
22805 cat confdefs.h >>conftest.$ac_ext
22806 cat >>conftest.$ac_ext <<_ACEOF
22807 /* end confdefs.h. */
22808 #include <arpa/inet.h>
22809 _ACEOF
22810 if { (ac_try="$ac_cpp conftest.$ac_ext"
22811 case "(($ac_try" in
22812 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22813 *) ac_try_echo=$ac_try;;
22814 esac
22815 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22816 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
22817 ac_status=$?
22818 grep -v '^ *+' conftest.er1 >conftest.err
22819 rm -f conftest.er1
22820 cat conftest.err >&5
22821 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22822 (exit $ac_status); } >/dev/null && {
22823 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
22824 test ! -s conftest.err
22825 }; then
22826 ac_header_preproc=yes
22827 else
22828 echo "$as_me: failed program was:" >&5
22829 sed 's/^/| /' conftest.$ac_ext >&5
22831 ac_header_preproc=no
22834 rm -f conftest.err conftest.$ac_ext
22835 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
22836 echo "${ECHO_T}$ac_header_preproc" >&6; }
22838 # So? What about this header?
22839 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
22840 yes:no: )
22841 { echo "$as_me:$LINENO: WARNING: arpa/inet.h: accepted by the compiler, rejected by the preprocessor!" >&5
22842 echo "$as_me: WARNING: arpa/inet.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
22843 { echo "$as_me:$LINENO: WARNING: arpa/inet.h: proceeding with the compiler's result" >&5
22844 echo "$as_me: WARNING: arpa/inet.h: proceeding with the compiler's result" >&2;}
22845 ac_header_preproc=yes
22847 no:yes:* )
22848 { echo "$as_me:$LINENO: WARNING: arpa/inet.h: present but cannot be compiled" >&5
22849 echo "$as_me: WARNING: arpa/inet.h: present but cannot be compiled" >&2;}
22850 { echo "$as_me:$LINENO: WARNING: arpa/inet.h: check for missing prerequisite headers?" >&5
22851 echo "$as_me: WARNING: arpa/inet.h: check for missing prerequisite headers?" >&2;}
22852 { echo "$as_me:$LINENO: WARNING: arpa/inet.h: see the Autoconf documentation" >&5
22853 echo "$as_me: WARNING: arpa/inet.h: see the Autoconf documentation" >&2;}
22854 { echo "$as_me:$LINENO: WARNING: arpa/inet.h: section \"Present But Cannot Be Compiled\"" >&5
22855 echo "$as_me: WARNING: arpa/inet.h: section \"Present But Cannot Be Compiled\"" >&2;}
22856 { echo "$as_me:$LINENO: WARNING: arpa/inet.h: proceeding with the preprocessor's result" >&5
22857 echo "$as_me: WARNING: arpa/inet.h: proceeding with the preprocessor's result" >&2;}
22858 { echo "$as_me:$LINENO: WARNING: arpa/inet.h: in the future, the compiler will take precedence" >&5
22859 echo "$as_me: WARNING: arpa/inet.h: in the future, the compiler will take precedence" >&2;}
22862 esac
22863 { echo "$as_me:$LINENO: checking for arpa/inet.h" >&5
22864 echo $ECHO_N "checking for arpa/inet.h... $ECHO_C" >&6; }
22865 if test "${ac_cv_header_arpa_inet_h+set}" = set; then
22866 echo $ECHO_N "(cached) $ECHO_C" >&6
22867 else
22868 ac_cv_header_arpa_inet_h=$ac_header_preproc
22870 { echo "$as_me:$LINENO: result: $ac_cv_header_arpa_inet_h" >&5
22871 echo "${ECHO_T}$ac_cv_header_arpa_inet_h" >&6; }
22874 if test $ac_cv_header_arpa_inet_h = yes; then
22876 else
22877 ok_so_far=no
22882 if test $ok_so_far = yes; then
22884 cat >>confdefs.h <<\_ACEOF
22885 #define HAVE_INET_SOCKETS 1
22886 _ACEOF
22891 for ac_header in sys/ioctl.h
22893 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
22894 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
22895 { echo "$as_me:$LINENO: checking for $ac_header" >&5
22896 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
22897 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
22898 echo $ECHO_N "(cached) $ECHO_C" >&6
22900 ac_res=`eval echo '${'$as_ac_Header'}'`
22901 { echo "$as_me:$LINENO: result: $ac_res" >&5
22902 echo "${ECHO_T}$ac_res" >&6; }
22903 else
22904 # Is the header compilable?
22905 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
22906 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
22907 cat >conftest.$ac_ext <<_ACEOF
22908 /* confdefs.h. */
22909 _ACEOF
22910 cat confdefs.h >>conftest.$ac_ext
22911 cat >>conftest.$ac_ext <<_ACEOF
22912 /* end confdefs.h. */
22913 $ac_includes_default
22914 #include <$ac_header>
22915 _ACEOF
22916 rm -f conftest.$ac_objext
22917 if { (ac_try="$ac_compile"
22918 case "(($ac_try" in
22919 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22920 *) ac_try_echo=$ac_try;;
22921 esac
22922 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22923 (eval "$ac_compile") 2>conftest.er1
22924 ac_status=$?
22925 grep -v '^ *+' conftest.er1 >conftest.err
22926 rm -f conftest.er1
22927 cat conftest.err >&5
22928 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22929 (exit $ac_status); } && {
22930 test -z "$ac_c_werror_flag" ||
22931 test ! -s conftest.err
22932 } && test -s conftest.$ac_objext; then
22933 ac_header_compiler=yes
22934 else
22935 echo "$as_me: failed program was:" >&5
22936 sed 's/^/| /' conftest.$ac_ext >&5
22938 ac_header_compiler=no
22941 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22942 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
22943 echo "${ECHO_T}$ac_header_compiler" >&6; }
22945 # Is the header present?
22946 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
22947 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
22948 cat >conftest.$ac_ext <<_ACEOF
22949 /* confdefs.h. */
22950 _ACEOF
22951 cat confdefs.h >>conftest.$ac_ext
22952 cat >>conftest.$ac_ext <<_ACEOF
22953 /* end confdefs.h. */
22954 #include <$ac_header>
22955 _ACEOF
22956 if { (ac_try="$ac_cpp conftest.$ac_ext"
22957 case "(($ac_try" in
22958 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22959 *) ac_try_echo=$ac_try;;
22960 esac
22961 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22962 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
22963 ac_status=$?
22964 grep -v '^ *+' conftest.er1 >conftest.err
22965 rm -f conftest.er1
22966 cat conftest.err >&5
22967 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22968 (exit $ac_status); } >/dev/null && {
22969 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
22970 test ! -s conftest.err
22971 }; then
22972 ac_header_preproc=yes
22973 else
22974 echo "$as_me: failed program was:" >&5
22975 sed 's/^/| /' conftest.$ac_ext >&5
22977 ac_header_preproc=no
22980 rm -f conftest.err conftest.$ac_ext
22981 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
22982 echo "${ECHO_T}$ac_header_preproc" >&6; }
22984 # So? What about this header?
22985 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
22986 yes:no: )
22987 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
22988 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
22989 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
22990 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
22991 ac_header_preproc=yes
22993 no:yes:* )
22994 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
22995 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
22996 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
22997 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
22998 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
22999 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
23000 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
23001 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
23002 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
23003 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
23004 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
23005 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
23008 esac
23009 { echo "$as_me:$LINENO: checking for $ac_header" >&5
23010 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
23011 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
23012 echo $ECHO_N "(cached) $ECHO_C" >&6
23013 else
23014 eval "$as_ac_Header=\$ac_header_preproc"
23016 ac_res=`eval echo '${'$as_ac_Header'}'`
23017 { echo "$as_me:$LINENO: result: $ac_res" >&5
23018 echo "${ECHO_T}$ac_res" >&6; }
23021 if test `eval echo '${'$as_ac_Header'}'` = yes; then
23022 cat >>confdefs.h <<_ACEOF
23023 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
23024 _ACEOF
23028 done
23031 if test -f /usr/lpp/X11/bin/smt.exp; then
23033 cat >>confdefs.h <<\_ACEOF
23034 #define HAVE_AIX_SMT_EXP 1
23035 _ACEOF
23039 { echo "$as_me:$LINENO: checking whether system supports dynamic ptys" >&5
23040 echo $ECHO_N "checking whether system supports dynamic ptys... $ECHO_C" >&6; }
23041 if test -d /dev/pts && ls -d /dev/ptmx > /dev/null 2>&1 ; then
23042 { echo "$as_me:$LINENO: result: yes" >&5
23043 echo "${ECHO_T}yes" >&6; }
23045 cat >>confdefs.h <<\_ACEOF
23046 #define HAVE_DEV_PTMX 1
23047 _ACEOF
23049 else
23050 { echo "$as_me:$LINENO: result: no" >&5
23051 echo "${ECHO_T}no" >&6; }
23054 { echo "$as_me:$LINENO: checking for pid_t" >&5
23055 echo $ECHO_N "checking for pid_t... $ECHO_C" >&6; }
23056 if test "${ac_cv_type_pid_t+set}" = set; then
23057 echo $ECHO_N "(cached) $ECHO_C" >&6
23058 else
23059 cat >conftest.$ac_ext <<_ACEOF
23060 /* confdefs.h. */
23061 _ACEOF
23062 cat confdefs.h >>conftest.$ac_ext
23063 cat >>conftest.$ac_ext <<_ACEOF
23064 /* end confdefs.h. */
23065 $ac_includes_default
23066 typedef pid_t ac__type_new_;
23068 main ()
23070 if ((ac__type_new_ *) 0)
23071 return 0;
23072 if (sizeof (ac__type_new_))
23073 return 0;
23075 return 0;
23077 _ACEOF
23078 rm -f conftest.$ac_objext
23079 if { (ac_try="$ac_compile"
23080 case "(($ac_try" in
23081 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23082 *) ac_try_echo=$ac_try;;
23083 esac
23084 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23085 (eval "$ac_compile") 2>conftest.er1
23086 ac_status=$?
23087 grep -v '^ *+' conftest.er1 >conftest.err
23088 rm -f conftest.er1
23089 cat conftest.err >&5
23090 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23091 (exit $ac_status); } && {
23092 test -z "$ac_c_werror_flag" ||
23093 test ! -s conftest.err
23094 } && test -s conftest.$ac_objext; then
23095 ac_cv_type_pid_t=yes
23096 else
23097 echo "$as_me: failed program was:" >&5
23098 sed 's/^/| /' conftest.$ac_ext >&5
23100 ac_cv_type_pid_t=no
23103 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23105 { echo "$as_me:$LINENO: result: $ac_cv_type_pid_t" >&5
23106 echo "${ECHO_T}$ac_cv_type_pid_t" >&6; }
23107 if test $ac_cv_type_pid_t = yes; then
23109 else
23111 cat >>confdefs.h <<_ACEOF
23112 #define pid_t int
23113 _ACEOF
23118 for ac_header in vfork.h
23120 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
23121 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
23122 { echo "$as_me:$LINENO: checking for $ac_header" >&5
23123 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
23124 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
23125 echo $ECHO_N "(cached) $ECHO_C" >&6
23127 ac_res=`eval echo '${'$as_ac_Header'}'`
23128 { echo "$as_me:$LINENO: result: $ac_res" >&5
23129 echo "${ECHO_T}$ac_res" >&6; }
23130 else
23131 # Is the header compilable?
23132 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
23133 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
23134 cat >conftest.$ac_ext <<_ACEOF
23135 /* confdefs.h. */
23136 _ACEOF
23137 cat confdefs.h >>conftest.$ac_ext
23138 cat >>conftest.$ac_ext <<_ACEOF
23139 /* end confdefs.h. */
23140 $ac_includes_default
23141 #include <$ac_header>
23142 _ACEOF
23143 rm -f conftest.$ac_objext
23144 if { (ac_try="$ac_compile"
23145 case "(($ac_try" in
23146 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23147 *) ac_try_echo=$ac_try;;
23148 esac
23149 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23150 (eval "$ac_compile") 2>conftest.er1
23151 ac_status=$?
23152 grep -v '^ *+' conftest.er1 >conftest.err
23153 rm -f conftest.er1
23154 cat conftest.err >&5
23155 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23156 (exit $ac_status); } && {
23157 test -z "$ac_c_werror_flag" ||
23158 test ! -s conftest.err
23159 } && test -s conftest.$ac_objext; then
23160 ac_header_compiler=yes
23161 else
23162 echo "$as_me: failed program was:" >&5
23163 sed 's/^/| /' conftest.$ac_ext >&5
23165 ac_header_compiler=no
23168 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23169 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
23170 echo "${ECHO_T}$ac_header_compiler" >&6; }
23172 # Is the header present?
23173 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
23174 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
23175 cat >conftest.$ac_ext <<_ACEOF
23176 /* confdefs.h. */
23177 _ACEOF
23178 cat confdefs.h >>conftest.$ac_ext
23179 cat >>conftest.$ac_ext <<_ACEOF
23180 /* end confdefs.h. */
23181 #include <$ac_header>
23182 _ACEOF
23183 if { (ac_try="$ac_cpp conftest.$ac_ext"
23184 case "(($ac_try" in
23185 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23186 *) ac_try_echo=$ac_try;;
23187 esac
23188 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23189 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
23190 ac_status=$?
23191 grep -v '^ *+' conftest.er1 >conftest.err
23192 rm -f conftest.er1
23193 cat conftest.err >&5
23194 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23195 (exit $ac_status); } >/dev/null && {
23196 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
23197 test ! -s conftest.err
23198 }; then
23199 ac_header_preproc=yes
23200 else
23201 echo "$as_me: failed program was:" >&5
23202 sed 's/^/| /' conftest.$ac_ext >&5
23204 ac_header_preproc=no
23207 rm -f conftest.err conftest.$ac_ext
23208 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
23209 echo "${ECHO_T}$ac_header_preproc" >&6; }
23211 # So? What about this header?
23212 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
23213 yes:no: )
23214 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
23215 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
23216 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
23217 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
23218 ac_header_preproc=yes
23220 no:yes:* )
23221 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
23222 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
23223 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
23224 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
23225 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
23226 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
23227 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
23228 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
23229 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
23230 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
23231 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
23232 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
23235 esac
23236 { echo "$as_me:$LINENO: checking for $ac_header" >&5
23237 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
23238 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
23239 echo $ECHO_N "(cached) $ECHO_C" >&6
23240 else
23241 eval "$as_ac_Header=\$ac_header_preproc"
23243 ac_res=`eval echo '${'$as_ac_Header'}'`
23244 { echo "$as_me:$LINENO: result: $ac_res" >&5
23245 echo "${ECHO_T}$ac_res" >&6; }
23248 if test `eval echo '${'$as_ac_Header'}'` = yes; then
23249 cat >>confdefs.h <<_ACEOF
23250 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
23251 _ACEOF
23255 done
23259 for ac_func in fork vfork
23261 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
23262 { echo "$as_me:$LINENO: checking for $ac_func" >&5
23263 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
23264 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
23265 echo $ECHO_N "(cached) $ECHO_C" >&6
23266 else
23267 cat >conftest.$ac_ext <<_ACEOF
23268 /* confdefs.h. */
23269 _ACEOF
23270 cat confdefs.h >>conftest.$ac_ext
23271 cat >>conftest.$ac_ext <<_ACEOF
23272 /* end confdefs.h. */
23273 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
23274 For example, HP-UX 11i <limits.h> declares gettimeofday. */
23275 #define $ac_func innocuous_$ac_func
23277 /* System header to define __stub macros and hopefully few prototypes,
23278 which can conflict with char $ac_func (); below.
23279 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
23280 <limits.h> exists even on freestanding compilers. */
23282 #ifdef __STDC__
23283 # include <limits.h>
23284 #else
23285 # include <assert.h>
23286 #endif
23288 #undef $ac_func
23290 /* Override any GCC internal prototype to avoid an error.
23291 Use char because int might match the return type of a GCC
23292 builtin and then its argument prototype would still apply. */
23293 #ifdef __cplusplus
23294 extern "C"
23295 #endif
23296 char $ac_func ();
23297 /* The GNU C library defines this for functions which it implements
23298 to always fail with ENOSYS. Some functions are actually named
23299 something starting with __ and the normal name is an alias. */
23300 #if defined __stub_$ac_func || defined __stub___$ac_func
23301 choke me
23302 #endif
23305 main ()
23307 return $ac_func ();
23309 return 0;
23311 _ACEOF
23312 rm -f conftest.$ac_objext conftest$ac_exeext
23313 if { (ac_try="$ac_link"
23314 case "(($ac_try" in
23315 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23316 *) ac_try_echo=$ac_try;;
23317 esac
23318 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23319 (eval "$ac_link") 2>conftest.er1
23320 ac_status=$?
23321 grep -v '^ *+' conftest.er1 >conftest.err
23322 rm -f conftest.er1
23323 cat conftest.err >&5
23324 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23325 (exit $ac_status); } && {
23326 test -z "$ac_c_werror_flag" ||
23327 test ! -s conftest.err
23328 } && test -s conftest$ac_exeext &&
23329 $as_test_x conftest$ac_exeext; then
23330 eval "$as_ac_var=yes"
23331 else
23332 echo "$as_me: failed program was:" >&5
23333 sed 's/^/| /' conftest.$ac_ext >&5
23335 eval "$as_ac_var=no"
23338 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
23339 conftest$ac_exeext conftest.$ac_ext
23341 ac_res=`eval echo '${'$as_ac_var'}'`
23342 { echo "$as_me:$LINENO: result: $ac_res" >&5
23343 echo "${ECHO_T}$ac_res" >&6; }
23344 if test `eval echo '${'$as_ac_var'}'` = yes; then
23345 cat >>confdefs.h <<_ACEOF
23346 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
23347 _ACEOF
23350 done
23352 if test "x$ac_cv_func_fork" = xyes; then
23353 { echo "$as_me:$LINENO: checking for working fork" >&5
23354 echo $ECHO_N "checking for working fork... $ECHO_C" >&6; }
23355 if test "${ac_cv_func_fork_works+set}" = set; then
23356 echo $ECHO_N "(cached) $ECHO_C" >&6
23357 else
23358 if test "$cross_compiling" = yes; then
23359 ac_cv_func_fork_works=cross
23360 else
23361 cat >conftest.$ac_ext <<_ACEOF
23362 /* confdefs.h. */
23363 _ACEOF
23364 cat confdefs.h >>conftest.$ac_ext
23365 cat >>conftest.$ac_ext <<_ACEOF
23366 /* end confdefs.h. */
23367 $ac_includes_default
23369 main ()
23372 /* By Ruediger Kuhlmann. */
23373 return fork () < 0;
23376 return 0;
23378 _ACEOF
23379 rm -f conftest$ac_exeext
23380 if { (ac_try="$ac_link"
23381 case "(($ac_try" in
23382 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23383 *) ac_try_echo=$ac_try;;
23384 esac
23385 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23386 (eval "$ac_link") 2>&5
23387 ac_status=$?
23388 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23389 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
23390 { (case "(($ac_try" in
23391 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23392 *) ac_try_echo=$ac_try;;
23393 esac
23394 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23395 (eval "$ac_try") 2>&5
23396 ac_status=$?
23397 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23398 (exit $ac_status); }; }; then
23399 ac_cv_func_fork_works=yes
23400 else
23401 echo "$as_me: program exited with status $ac_status" >&5
23402 echo "$as_me: failed program was:" >&5
23403 sed 's/^/| /' conftest.$ac_ext >&5
23405 ( exit $ac_status )
23406 ac_cv_func_fork_works=no
23408 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
23413 { echo "$as_me:$LINENO: result: $ac_cv_func_fork_works" >&5
23414 echo "${ECHO_T}$ac_cv_func_fork_works" >&6; }
23416 else
23417 ac_cv_func_fork_works=$ac_cv_func_fork
23419 if test "x$ac_cv_func_fork_works" = xcross; then
23420 case $host in
23421 *-*-amigaos* | *-*-msdosdjgpp*)
23422 # Override, as these systems have only a dummy fork() stub
23423 ac_cv_func_fork_works=no
23426 ac_cv_func_fork_works=yes
23428 esac
23429 { echo "$as_me:$LINENO: WARNING: result $ac_cv_func_fork_works guessed because of cross compilation" >&5
23430 echo "$as_me: WARNING: result $ac_cv_func_fork_works guessed because of cross compilation" >&2;}
23432 ac_cv_func_vfork_works=$ac_cv_func_vfork
23433 if test "x$ac_cv_func_vfork" = xyes; then
23434 { echo "$as_me:$LINENO: checking for working vfork" >&5
23435 echo $ECHO_N "checking for working vfork... $ECHO_C" >&6; }
23436 if test "${ac_cv_func_vfork_works+set}" = set; then
23437 echo $ECHO_N "(cached) $ECHO_C" >&6
23438 else
23439 if test "$cross_compiling" = yes; then
23440 ac_cv_func_vfork_works=cross
23441 else
23442 cat >conftest.$ac_ext <<_ACEOF
23443 /* confdefs.h. */
23444 _ACEOF
23445 cat confdefs.h >>conftest.$ac_ext
23446 cat >>conftest.$ac_ext <<_ACEOF
23447 /* end confdefs.h. */
23448 /* Thanks to Paul Eggert for this test. */
23449 $ac_includes_default
23450 #include <sys/wait.h>
23451 #ifdef HAVE_VFORK_H
23452 # include <vfork.h>
23453 #endif
23454 /* On some sparc systems, changes by the child to local and incoming
23455 argument registers are propagated back to the parent. The compiler
23456 is told about this with #include <vfork.h>, but some compilers
23457 (e.g. gcc -O) don't grok <vfork.h>. Test for this by using a
23458 static variable whose address is put into a register that is
23459 clobbered by the vfork. */
23460 static void
23461 #ifdef __cplusplus
23462 sparc_address_test (int arg)
23463 # else
23464 sparc_address_test (arg) int arg;
23465 #endif
23467 static pid_t child;
23468 if (!child) {
23469 child = vfork ();
23470 if (child < 0) {
23471 perror ("vfork");
23472 _exit(2);
23474 if (!child) {
23475 arg = getpid();
23476 write(-1, "", 0);
23477 _exit (arg);
23483 main ()
23485 pid_t parent = getpid ();
23486 pid_t child;
23488 sparc_address_test (0);
23490 child = vfork ();
23492 if (child == 0) {
23493 /* Here is another test for sparc vfork register problems. This
23494 test uses lots of local variables, at least as many local
23495 variables as main has allocated so far including compiler
23496 temporaries. 4 locals are enough for gcc 1.40.3 on a Solaris
23497 4.1.3 sparc, but we use 8 to be safe. A buggy compiler should
23498 reuse the register of parent for one of the local variables,
23499 since it will think that parent can't possibly be used any more
23500 in this routine. Assigning to the local variable will thus
23501 munge parent in the parent process. */
23502 pid_t
23503 p = getpid(), p1 = getpid(), p2 = getpid(), p3 = getpid(),
23504 p4 = getpid(), p5 = getpid(), p6 = getpid(), p7 = getpid();
23505 /* Convince the compiler that p..p7 are live; otherwise, it might
23506 use the same hardware register for all 8 local variables. */
23507 if (p != p1 || p != p2 || p != p3 || p != p4
23508 || p != p5 || p != p6 || p != p7)
23509 _exit(1);
23511 /* On some systems (e.g. IRIX 3.3), vfork doesn't separate parent
23512 from child file descriptors. If the child closes a descriptor
23513 before it execs or exits, this munges the parent's descriptor
23514 as well. Test for this by closing stdout in the child. */
23515 _exit(close(fileno(stdout)) != 0);
23516 } else {
23517 int status;
23518 struct stat st;
23520 while (wait(&status) != child)
23522 return (
23523 /* Was there some problem with vforking? */
23524 child < 0
23526 /* Did the child fail? (This shouldn't happen.) */
23527 || status
23529 /* Did the vfork/compiler bug occur? */
23530 || parent != getpid()
23532 /* Did the file descriptor bug occur? */
23533 || fstat(fileno(stdout), &st) != 0
23537 _ACEOF
23538 rm -f conftest$ac_exeext
23539 if { (ac_try="$ac_link"
23540 case "(($ac_try" in
23541 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23542 *) ac_try_echo=$ac_try;;
23543 esac
23544 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23545 (eval "$ac_link") 2>&5
23546 ac_status=$?
23547 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23548 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
23549 { (case "(($ac_try" in
23550 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23551 *) ac_try_echo=$ac_try;;
23552 esac
23553 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23554 (eval "$ac_try") 2>&5
23555 ac_status=$?
23556 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23557 (exit $ac_status); }; }; then
23558 ac_cv_func_vfork_works=yes
23559 else
23560 echo "$as_me: program exited with status $ac_status" >&5
23561 echo "$as_me: failed program was:" >&5
23562 sed 's/^/| /' conftest.$ac_ext >&5
23564 ( exit $ac_status )
23565 ac_cv_func_vfork_works=no
23567 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
23572 { echo "$as_me:$LINENO: result: $ac_cv_func_vfork_works" >&5
23573 echo "${ECHO_T}$ac_cv_func_vfork_works" >&6; }
23576 if test "x$ac_cv_func_fork_works" = xcross; then
23577 ac_cv_func_vfork_works=$ac_cv_func_vfork
23578 { echo "$as_me:$LINENO: WARNING: result $ac_cv_func_vfork_works guessed because of cross compilation" >&5
23579 echo "$as_me: WARNING: result $ac_cv_func_vfork_works guessed because of cross compilation" >&2;}
23582 if test "x$ac_cv_func_vfork_works" = xyes; then
23584 cat >>confdefs.h <<\_ACEOF
23585 #define HAVE_WORKING_VFORK 1
23586 _ACEOF
23588 else
23590 cat >>confdefs.h <<\_ACEOF
23591 #define vfork fork
23592 _ACEOF
23595 if test "x$ac_cv_func_fork_works" = xyes; then
23597 cat >>confdefs.h <<\_ACEOF
23598 #define HAVE_WORKING_FORK 1
23599 _ACEOF
23604 { echo "$as_me:$LINENO: checking for nl_langinfo and CODESET" >&5
23605 echo $ECHO_N "checking for nl_langinfo and CODESET... $ECHO_C" >&6; }
23606 if test "${emacs_cv_langinfo_codeset+set}" = set; then
23607 echo $ECHO_N "(cached) $ECHO_C" >&6
23608 else
23609 cat >conftest.$ac_ext <<_ACEOF
23610 /* confdefs.h. */
23611 _ACEOF
23612 cat confdefs.h >>conftest.$ac_ext
23613 cat >>conftest.$ac_ext <<_ACEOF
23614 /* end confdefs.h. */
23615 #include <langinfo.h>
23617 main ()
23619 char* cs = nl_langinfo(CODESET);
23621 return 0;
23623 _ACEOF
23624 rm -f conftest.$ac_objext conftest$ac_exeext
23625 if { (ac_try="$ac_link"
23626 case "(($ac_try" in
23627 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23628 *) ac_try_echo=$ac_try;;
23629 esac
23630 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23631 (eval "$ac_link") 2>conftest.er1
23632 ac_status=$?
23633 grep -v '^ *+' conftest.er1 >conftest.err
23634 rm -f conftest.er1
23635 cat conftest.err >&5
23636 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23637 (exit $ac_status); } && {
23638 test -z "$ac_c_werror_flag" ||
23639 test ! -s conftest.err
23640 } && test -s conftest$ac_exeext &&
23641 $as_test_x conftest$ac_exeext; then
23642 emacs_cv_langinfo_codeset=yes
23643 else
23644 echo "$as_me: failed program was:" >&5
23645 sed 's/^/| /' conftest.$ac_ext >&5
23647 emacs_cv_langinfo_codeset=no
23650 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
23651 conftest$ac_exeext conftest.$ac_ext
23654 { echo "$as_me:$LINENO: result: $emacs_cv_langinfo_codeset" >&5
23655 echo "${ECHO_T}$emacs_cv_langinfo_codeset" >&6; }
23656 if test $emacs_cv_langinfo_codeset = yes; then
23658 cat >>confdefs.h <<\_ACEOF
23659 #define HAVE_LANGINFO_CODESET 1
23660 _ACEOF
23664 { echo "$as_me:$LINENO: checking for size_t" >&5
23665 echo $ECHO_N "checking for size_t... $ECHO_C" >&6; }
23666 if test "${ac_cv_type_size_t+set}" = set; then
23667 echo $ECHO_N "(cached) $ECHO_C" >&6
23668 else
23669 cat >conftest.$ac_ext <<_ACEOF
23670 /* confdefs.h. */
23671 _ACEOF
23672 cat confdefs.h >>conftest.$ac_ext
23673 cat >>conftest.$ac_ext <<_ACEOF
23674 /* end confdefs.h. */
23675 $ac_includes_default
23676 typedef size_t ac__type_new_;
23678 main ()
23680 if ((ac__type_new_ *) 0)
23681 return 0;
23682 if (sizeof (ac__type_new_))
23683 return 0;
23685 return 0;
23687 _ACEOF
23688 rm -f conftest.$ac_objext
23689 if { (ac_try="$ac_compile"
23690 case "(($ac_try" in
23691 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23692 *) ac_try_echo=$ac_try;;
23693 esac
23694 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23695 (eval "$ac_compile") 2>conftest.er1
23696 ac_status=$?
23697 grep -v '^ *+' conftest.er1 >conftest.err
23698 rm -f conftest.er1
23699 cat conftest.err >&5
23700 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23701 (exit $ac_status); } && {
23702 test -z "$ac_c_werror_flag" ||
23703 test ! -s conftest.err
23704 } && test -s conftest.$ac_objext; then
23705 ac_cv_type_size_t=yes
23706 else
23707 echo "$as_me: failed program was:" >&5
23708 sed 's/^/| /' conftest.$ac_ext >&5
23710 ac_cv_type_size_t=no
23713 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23715 { echo "$as_me:$LINENO: result: $ac_cv_type_size_t" >&5
23716 echo "${ECHO_T}$ac_cv_type_size_t" >&6; }
23717 if test $ac_cv_type_size_t = yes; then
23719 cat >>confdefs.h <<_ACEOF
23720 #define HAVE_SIZE_T 1
23721 _ACEOF
23727 { echo "$as_me:$LINENO: checking for mbstate_t" >&5
23728 echo $ECHO_N "checking for mbstate_t... $ECHO_C" >&6; }
23729 if test "${ac_cv_type_mbstate_t+set}" = set; then
23730 echo $ECHO_N "(cached) $ECHO_C" >&6
23731 else
23732 cat >conftest.$ac_ext <<_ACEOF
23733 /* confdefs.h. */
23734 _ACEOF
23735 cat confdefs.h >>conftest.$ac_ext
23736 cat >>conftest.$ac_ext <<_ACEOF
23737 /* end confdefs.h. */
23738 $ac_includes_default
23739 # include <wchar.h>
23741 main ()
23743 mbstate_t x; return sizeof x;
23745 return 0;
23747 _ACEOF
23748 rm -f conftest.$ac_objext
23749 if { (ac_try="$ac_compile"
23750 case "(($ac_try" in
23751 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23752 *) ac_try_echo=$ac_try;;
23753 esac
23754 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23755 (eval "$ac_compile") 2>conftest.er1
23756 ac_status=$?
23757 grep -v '^ *+' conftest.er1 >conftest.err
23758 rm -f conftest.er1
23759 cat conftest.err >&5
23760 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23761 (exit $ac_status); } && {
23762 test -z "$ac_c_werror_flag" ||
23763 test ! -s conftest.err
23764 } && test -s conftest.$ac_objext; then
23765 ac_cv_type_mbstate_t=yes
23766 else
23767 echo "$as_me: failed program was:" >&5
23768 sed 's/^/| /' conftest.$ac_ext >&5
23770 ac_cv_type_mbstate_t=no
23773 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23775 { echo "$as_me:$LINENO: result: $ac_cv_type_mbstate_t" >&5
23776 echo "${ECHO_T}$ac_cv_type_mbstate_t" >&6; }
23777 if test $ac_cv_type_mbstate_t = yes; then
23779 cat >>confdefs.h <<\_ACEOF
23780 #define HAVE_MBSTATE_T 1
23781 _ACEOF
23783 else
23785 cat >>confdefs.h <<\_ACEOF
23786 #define mbstate_t int
23787 _ACEOF
23791 { echo "$as_me:$LINENO: checking for C restrict keyword" >&5
23792 echo $ECHO_N "checking for C restrict keyword... $ECHO_C" >&6; }
23793 if test "${emacs_cv_c_restrict+set}" = set; then
23794 echo $ECHO_N "(cached) $ECHO_C" >&6
23795 else
23796 cat >conftest.$ac_ext <<_ACEOF
23797 /* confdefs.h. */
23798 _ACEOF
23799 cat confdefs.h >>conftest.$ac_ext
23800 cat >>conftest.$ac_ext <<_ACEOF
23801 /* end confdefs.h. */
23802 void fred (int *restrict x);
23804 main ()
23808 return 0;
23810 _ACEOF
23811 rm -f conftest.$ac_objext
23812 if { (ac_try="$ac_compile"
23813 case "(($ac_try" in
23814 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23815 *) ac_try_echo=$ac_try;;
23816 esac
23817 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23818 (eval "$ac_compile") 2>conftest.er1
23819 ac_status=$?
23820 grep -v '^ *+' conftest.er1 >conftest.err
23821 rm -f conftest.er1
23822 cat conftest.err >&5
23823 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23824 (exit $ac_status); } && {
23825 test -z "$ac_c_werror_flag" ||
23826 test ! -s conftest.err
23827 } && test -s conftest.$ac_objext; then
23828 emacs_cv_c_restrict=yes
23829 else
23830 echo "$as_me: failed program was:" >&5
23831 sed 's/^/| /' conftest.$ac_ext >&5
23833 cat >conftest.$ac_ext <<_ACEOF
23834 /* confdefs.h. */
23835 _ACEOF
23836 cat confdefs.h >>conftest.$ac_ext
23837 cat >>conftest.$ac_ext <<_ACEOF
23838 /* end confdefs.h. */
23839 void fred (int *__restrict x);
23841 main ()
23845 return 0;
23847 _ACEOF
23848 rm -f conftest.$ac_objext
23849 if { (ac_try="$ac_compile"
23850 case "(($ac_try" in
23851 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23852 *) ac_try_echo=$ac_try;;
23853 esac
23854 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23855 (eval "$ac_compile") 2>conftest.er1
23856 ac_status=$?
23857 grep -v '^ *+' conftest.er1 >conftest.err
23858 rm -f conftest.er1
23859 cat conftest.err >&5
23860 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23861 (exit $ac_status); } && {
23862 test -z "$ac_c_werror_flag" ||
23863 test ! -s conftest.err
23864 } && test -s conftest.$ac_objext; then
23865 emacs_cv_c_restrict=__restrict
23866 else
23867 echo "$as_me: failed program was:" >&5
23868 sed 's/^/| /' conftest.$ac_ext >&5
23870 emacs_cv_c_restrict=no
23873 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23876 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23878 { echo "$as_me:$LINENO: result: $emacs_cv_c_restrict" >&5
23879 echo "${ECHO_T}$emacs_cv_c_restrict" >&6; }
23880 case "$emacs_cv_c_restrict" in
23881 yes) emacs_restrict=restrict;;
23882 no) emacs_restrict="";;
23883 *) emacs_restrict="$emacs_cv_c_restrict";;
23884 esac
23885 if test "$emacs_restrict" != __restrict; then
23887 cat >>confdefs.h <<_ACEOF
23888 #define __restrict $emacs_restrict
23889 _ACEOF
23893 { echo "$as_me:$LINENO: checking for C restricted array declarations" >&5
23894 echo $ECHO_N "checking for C restricted array declarations... $ECHO_C" >&6; }
23895 if test "${emacs_cv_c_restrict_arr+set}" = set; then
23896 echo $ECHO_N "(cached) $ECHO_C" >&6
23897 else
23898 cat >conftest.$ac_ext <<_ACEOF
23899 /* confdefs.h. */
23900 _ACEOF
23901 cat confdefs.h >>conftest.$ac_ext
23902 cat >>conftest.$ac_ext <<_ACEOF
23903 /* end confdefs.h. */
23904 void fred (int x[__restrict]);
23906 main ()
23910 return 0;
23912 _ACEOF
23913 rm -f conftest.$ac_objext
23914 if { (ac_try="$ac_compile"
23915 case "(($ac_try" in
23916 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23917 *) ac_try_echo=$ac_try;;
23918 esac
23919 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23920 (eval "$ac_compile") 2>conftest.er1
23921 ac_status=$?
23922 grep -v '^ *+' conftest.er1 >conftest.err
23923 rm -f conftest.er1
23924 cat conftest.err >&5
23925 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23926 (exit $ac_status); } && {
23927 test -z "$ac_c_werror_flag" ||
23928 test ! -s conftest.err
23929 } && test -s conftest.$ac_objext; then
23930 emacs_cv_c_restrict_arr=yes
23931 else
23932 echo "$as_me: failed program was:" >&5
23933 sed 's/^/| /' conftest.$ac_ext >&5
23935 emacs_cv_c_restrict_arr=no
23938 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23940 { echo "$as_me:$LINENO: result: $emacs_cv_c_restrict_arr" >&5
23941 echo "${ECHO_T}$emacs_cv_c_restrict_arr" >&6; }
23942 if test "$emacs_cv_c_restrict_arr" = yes; then
23944 cat >>confdefs.h <<\_ACEOF
23945 #define __restrict_arr __restrict
23946 _ACEOF
23952 # Set up the CFLAGS for real compilation, so we can substitute it.
23953 CFLAGS="$REAL_CFLAGS"
23954 CPPFLAGS="$REAL_CPPFLAGS"
23956 #### Find out which version of Emacs this is.
23957 version=`grep 'defconst[ ]*emacs-version' ${srcdir}/lisp/version.el \
23958 | sed -e 's/^[^"]*"\([^"]*\)".*$/\1/'`
23959 if test x"${version}" = x; then
23960 { { echo "$as_me:$LINENO: error: can't find current emacs version in \`${srcdir}/lisp/version.el'." >&5
23961 echo "$as_me: error: can't find current emacs version in \`${srcdir}/lisp/version.el'." >&2;}
23962 { (exit 1); exit 1; }; }
23965 ### Specify what sort of things we'll be editing into Makefile and config.h.
23966 ### Use configuration here uncanonicalized to avoid exceeding size limits.
24002 cat >>confdefs.h <<_ACEOF
24003 #define EMACS_CONFIGURATION "${canonical}"
24004 _ACEOF
24007 cat >>confdefs.h <<_ACEOF
24008 #define EMACS_CONFIG_OPTIONS "${ac_configure_args}"
24009 _ACEOF
24012 cat >>confdefs.h <<_ACEOF
24013 #define config_machfile "${machfile}"
24014 _ACEOF
24017 cat >>confdefs.h <<_ACEOF
24018 #define config_opsysfile "${opsysfile}"
24019 _ACEOF
24022 cat >>confdefs.h <<_ACEOF
24023 #define LD_SWITCH_X_SITE ${LD_SWITCH_X_SITE}
24024 _ACEOF
24027 cat >>confdefs.h <<_ACEOF
24028 #define LD_SWITCH_X_SITE_AUX ${LD_SWITCH_X_SITE_AUX}
24029 _ACEOF
24032 cat >>confdefs.h <<_ACEOF
24033 #define C_SWITCH_X_SITE ${C_SWITCH_X_SITE}
24034 _ACEOF
24037 cat >>confdefs.h <<_ACEOF
24038 #define UNEXEC_SRC ${UNEXEC_SRC}
24039 _ACEOF
24042 if test "${HAVE_X_WINDOWS}" = "yes" ; then
24044 cat >>confdefs.h <<\_ACEOF
24045 #define HAVE_X_WINDOWS 1
24046 _ACEOF
24049 if test "${USE_X_TOOLKIT}" != "none" ; then
24051 cat >>confdefs.h <<\_ACEOF
24052 #define USE_X_TOOLKIT 1
24053 _ACEOF
24055 if test "${USE_X_TOOLKIT}" == "LUCID"; then
24057 cat >>confdefs.h <<\_ACEOF
24058 #define USE_LUCID 1
24059 _ACEOF
24061 elif test "${USE_X_TOOLKIT}" == "MOTIF"; then
24063 cat >>confdefs.h <<\_ACEOF
24064 #define USE_MOTIF 1
24065 _ACEOF
24069 if test "${HAVE_X11}" = "yes" ; then
24071 cat >>confdefs.h <<\_ACEOF
24072 #define HAVE_X11 1
24073 _ACEOF
24076 if test "${HAVE_MENUS}" = "yes" ; then
24078 cat >>confdefs.h <<\_ACEOF
24079 #define HAVE_MENUS 1
24080 _ACEOF
24083 if test "${GNU_MALLOC}" = "yes" ; then
24085 cat >>confdefs.h <<\_ACEOF
24086 #define GNU_MALLOC 1
24087 _ACEOF
24090 if test "${REL_ALLOC}" = "yes" ; then
24092 cat >>confdefs.h <<\_ACEOF
24093 #define REL_ALLOC 1
24094 _ACEOF
24103 #### Report on what we decided to do.
24104 #### Report GTK as a toolkit, even if it doesn't use Xt.
24105 #### It makes printing result more understandable as using GTK sets
24106 #### toolkit_scroll_bars to yes by default.
24107 if test "${HAVE_GTK}" = "yes"; then
24108 USE_X_TOOLKIT=GTK
24111 echo "
24112 Configured for \`${canonical}'.
24114 Where should the build process find the source code? ${srcdir}
24115 What operating system and machine description files should Emacs use?
24116 \`${opsysfile}' and \`${machfile}'
24117 What compiler should emacs be built with? ${CC} ${CFLAGS}
24118 Should Emacs use the GNU version of malloc? ${GNU_MALLOC}${GNU_MALLOC_reason}
24119 Should Emacs use a relocating allocator for buffers? ${REL_ALLOC}
24120 Should Emacs use mmap(2) for buffer allocation? $use_mmap_for_buffers
24121 What window system should Emacs use? ${window_system}
24122 What toolkit should Emacs use? ${USE_X_TOOLKIT}"
24124 if test -n "${x_includes}"; then
24125 echo " Where do we find X Windows header files? ${x_includes}"
24126 else
24127 echo " Where do we find X Windows header files? Standard dirs"
24129 if test -n "${x_libraries}"; then
24130 echo " Where do we find X Windows libraries? ${x_libraries}"
24131 else
24132 echo " Where do we find X Windows libraries? Standard dirs"
24135 echo " Does Emacs use -lXaw3d? ${HAVE_XAW3D}"
24136 echo " Does Emacs use -lXpm? ${HAVE_XPM}"
24137 echo " Does Emacs use -ljpeg? ${HAVE_JPEG}"
24138 echo " Does Emacs use -ltiff? ${HAVE_TIFF}"
24139 echo " Does Emacs use a gif library? ${HAVE_GIF} $ac_gif_lib_name"
24140 echo " Does Emacs use -lpng? ${HAVE_PNG}"
24141 echo " Does Emacs use -lrsvg-2? ${HAVE_RSVG}"
24142 echo " Does Emacs use -lgpm? ${HAVE_GPM}"
24143 echo " Does Emacs use -ldbus? ${HAVE_DBUS}"
24144 echo " Does Emacs use a font backend? ${USE_FONT_BACKEND}"
24146 if test "${USE_FONT_BACKEND}" = "yes"; then
24147 echo " Does Emacs use -lfreetype? ${HAVE_FREETYPE}"
24148 echo " Does Emacs use -lm17n-flt? ${HAVE_M17N_FLT}"
24149 echo " Does Emacs use -lotf? ${HAVE_LIBOTF}"
24150 echo " Does Emacs use -lxft? ${HAVE_XFT}"
24152 echo " Does Emacs use X toolkit scroll bars? ${USE_TOOLKIT_SCROLL_BARS}"
24153 echo
24155 if test $USE_XASSERTS = yes; then
24156 echo " Compiling with asserts turned on."
24157 CPPFLAGS="$CPPFLAGS -DXASSERTS=1"
24160 echo
24162 if test "$USE_X_TOOLKIT" = GTK; then
24163 case "$canonical" in
24164 *cygwin*)
24165 echo "There are known problems with Emacs and Gtk+ on cygwin, so you
24166 will probably get a crash on startup. If this happens, please use another
24167 toolkit for Emacs. See etc/PROBLEMS for more information."
24169 esac
24173 if test "$HAVE_CARBON" = "yes"; then
24174 echo
24175 echo "Warning: The Mac Carbon port is currently unsupported and has
24176 known problems. It is not recommended for use by non-developers.
24177 Read the emacs-devel archives for more information."
24178 echo
24181 if test "$HAVE_DBUS" = yes && test "${opsys}" != "gnu-linux"; then
24182 echo "D-Bus integration has been tested for GNU/Linux only."
24183 echo
24187 # Remove any trailing slashes in these variables.
24188 test "${prefix}" != NONE &&
24189 prefix=`echo "${prefix}" | sed 's,\([^/]\)/*$,\1,'`
24190 test "${exec_prefix}" != NONE &&
24191 exec_prefix=`echo "${exec_prefix}" | sed 's,\([^/]\)/*$,\1,'`
24193 ## Check if the C preprocessor will convert `..' to `. .'. If so, set
24194 ## CPP_NEED_TRADITIONAL to `yes' so that the code to generate Makefile
24195 ## from Makefile.c can correctly provide the arg `-traditional' to the
24196 ## C preprocessor.
24198 cat >conftest.$ac_ext <<_ACEOF
24199 /* confdefs.h. */
24200 _ACEOF
24201 cat confdefs.h >>conftest.$ac_ext
24202 cat >>conftest.$ac_ext <<_ACEOF
24203 /* end confdefs.h. */
24204 yes..yes
24205 _ACEOF
24206 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
24207 $EGREP "yes..yes" >/dev/null 2>&1; then
24208 CPP_NEED_TRADITIONAL=no
24209 else
24210 CPP_NEED_TRADITIONAL=yes
24212 rm -f conftest*
24215 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"
24217 ac_config_commands="$ac_config_commands default"
24219 cat >confcache <<\_ACEOF
24220 # This file is a shell script that caches the results of configure
24221 # tests run on this system so they can be shared between configure
24222 # scripts and configure runs, see configure's option --config-cache.
24223 # It is not useful on other systems. If it contains results you don't
24224 # want to keep, you may remove or edit it.
24226 # config.status only pays attention to the cache file if you give it
24227 # the --recheck option to rerun configure.
24229 # `ac_cv_env_foo' variables (set or unset) will be overridden when
24230 # loading this file, other *unset* `ac_cv_foo' will be assigned the
24231 # following values.
24233 _ACEOF
24235 # The following way of writing the cache mishandles newlines in values,
24236 # but we know of no workaround that is simple, portable, and efficient.
24237 # So, we kill variables containing newlines.
24238 # Ultrix sh set writes to stderr and can't be redirected directly,
24239 # and sets the high bit in the cache file unless we assign to the vars.
24241 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
24242 eval ac_val=\$$ac_var
24243 case $ac_val in #(
24244 *${as_nl}*)
24245 case $ac_var in #(
24246 *_cv_*) { echo "$as_me:$LINENO: WARNING: Cache variable $ac_var contains a newline." >&5
24247 echo "$as_me: WARNING: Cache variable $ac_var contains a newline." >&2;} ;;
24248 esac
24249 case $ac_var in #(
24250 _ | IFS | as_nl) ;; #(
24251 *) $as_unset $ac_var ;;
24252 esac ;;
24253 esac
24254 done
24256 (set) 2>&1 |
24257 case $as_nl`(ac_space=' '; set) 2>&1` in #(
24258 *${as_nl}ac_space=\ *)
24259 # `set' does not quote correctly, so add quotes (double-quote
24260 # substitution turns \\\\ into \\, and sed turns \\ into \).
24261 sed -n \
24262 "s/'/'\\\\''/g;
24263 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
24264 ;; #(
24266 # `set' quotes correctly as required by POSIX, so do not add quotes.
24267 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
24269 esac |
24270 sort
24272 sed '
24273 /^ac_cv_env_/b end
24274 t clear
24275 :clear
24276 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
24277 t end
24278 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
24279 :end' >>confcache
24280 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
24281 if test -w "$cache_file"; then
24282 test "x$cache_file" != "x/dev/null" &&
24283 { echo "$as_me:$LINENO: updating cache $cache_file" >&5
24284 echo "$as_me: updating cache $cache_file" >&6;}
24285 cat confcache >$cache_file
24286 else
24287 { echo "$as_me:$LINENO: not updating unwritable cache $cache_file" >&5
24288 echo "$as_me: not updating unwritable cache $cache_file" >&6;}
24291 rm -f confcache
24293 test "x$prefix" = xNONE && prefix=$ac_default_prefix
24294 # Let make expand exec_prefix.
24295 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
24297 DEFS=-DHAVE_CONFIG_H
24299 ac_libobjs=
24300 ac_ltlibobjs=
24301 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
24302 # 1. Remove the extension, and $U if already installed.
24303 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
24304 ac_i=`echo "$ac_i" | sed "$ac_script"`
24305 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
24306 # will be set to the directory where LIBOBJS objects are built.
24307 ac_libobjs="$ac_libobjs \${LIBOBJDIR}$ac_i\$U.$ac_objext"
24308 ac_ltlibobjs="$ac_ltlibobjs \${LIBOBJDIR}$ac_i"'$U.lo'
24309 done
24310 LIBOBJS=$ac_libobjs
24312 LTLIBOBJS=$ac_ltlibobjs
24316 : ${CONFIG_STATUS=./config.status}
24317 ac_clean_files_save=$ac_clean_files
24318 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
24319 { echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
24320 echo "$as_me: creating $CONFIG_STATUS" >&6;}
24321 cat >$CONFIG_STATUS <<_ACEOF
24322 #! $SHELL
24323 # Generated by $as_me.
24324 # Run this file to recreate the current configuration.
24325 # Compiler output produced by configure, useful for debugging
24326 # configure, is in config.log if it exists.
24328 debug=false
24329 ac_cs_recheck=false
24330 ac_cs_silent=false
24331 SHELL=\${CONFIG_SHELL-$SHELL}
24332 _ACEOF
24334 cat >>$CONFIG_STATUS <<\_ACEOF
24335 ## --------------------- ##
24336 ## M4sh Initialization. ##
24337 ## --------------------- ##
24339 # Be more Bourne compatible
24340 DUALCASE=1; export DUALCASE # for MKS sh
24341 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
24342 emulate sh
24343 NULLCMD=:
24344 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
24345 # is contrary to our usage. Disable this feature.
24346 alias -g '${1+"$@"}'='"$@"'
24347 setopt NO_GLOB_SUBST
24348 else
24349 case `(set -o) 2>/dev/null` in
24350 *posix*) set -o posix ;;
24351 esac
24358 # PATH needs CR
24359 # Avoid depending upon Character Ranges.
24360 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
24361 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
24362 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
24363 as_cr_digits='0123456789'
24364 as_cr_alnum=$as_cr_Letters$as_cr_digits
24366 # The user is always right.
24367 if test "${PATH_SEPARATOR+set}" != set; then
24368 echo "#! /bin/sh" >conf$$.sh
24369 echo "exit 0" >>conf$$.sh
24370 chmod +x conf$$.sh
24371 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
24372 PATH_SEPARATOR=';'
24373 else
24374 PATH_SEPARATOR=:
24376 rm -f conf$$.sh
24379 # Support unset when possible.
24380 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
24381 as_unset=unset
24382 else
24383 as_unset=false
24387 # IFS
24388 # We need space, tab and new line, in precisely that order. Quoting is
24389 # there to prevent editors from complaining about space-tab.
24390 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
24391 # splitting by setting IFS to empty value.)
24392 as_nl='
24394 IFS=" "" $as_nl"
24396 # Find who we are. Look in the path if we contain no directory separator.
24397 case $0 in
24398 *[\\/]* ) as_myself=$0 ;;
24399 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
24400 for as_dir in $PATH
24402 IFS=$as_save_IFS
24403 test -z "$as_dir" && as_dir=.
24404 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
24405 done
24406 IFS=$as_save_IFS
24409 esac
24410 # We did not find ourselves, most probably we were run as `sh COMMAND'
24411 # in which case we are not to be found in the path.
24412 if test "x$as_myself" = x; then
24413 as_myself=$0
24415 if test ! -f "$as_myself"; then
24416 echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
24417 { (exit 1); exit 1; }
24420 # Work around bugs in pre-3.0 UWIN ksh.
24421 for as_var in ENV MAIL MAILPATH
24422 do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
24423 done
24424 PS1='$ '
24425 PS2='> '
24426 PS4='+ '
24428 # NLS nuisances.
24429 for as_var in \
24430 LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
24431 LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
24432 LC_TELEPHONE LC_TIME
24434 if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
24435 eval $as_var=C; export $as_var
24436 else
24437 ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
24439 done
24441 # Required to use basename.
24442 if expr a : '\(a\)' >/dev/null 2>&1 &&
24443 test "X`expr 00001 : '.*\(...\)'`" = X001; then
24444 as_expr=expr
24445 else
24446 as_expr=false
24449 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
24450 as_basename=basename
24451 else
24452 as_basename=false
24456 # Name of the executable.
24457 as_me=`$as_basename -- "$0" ||
24458 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
24459 X"$0" : 'X\(//\)$' \| \
24460 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
24461 echo X/"$0" |
24462 sed '/^.*\/\([^/][^/]*\)\/*$/{
24463 s//\1/
24466 /^X\/\(\/\/\)$/{
24467 s//\1/
24470 /^X\/\(\/\).*/{
24471 s//\1/
24474 s/.*/./; q'`
24476 # CDPATH.
24477 $as_unset CDPATH
24481 as_lineno_1=$LINENO
24482 as_lineno_2=$LINENO
24483 test "x$as_lineno_1" != "x$as_lineno_2" &&
24484 test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2" || {
24486 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
24487 # uniformly replaced by the line number. The first 'sed' inserts a
24488 # line-number line after each line using $LINENO; the second 'sed'
24489 # does the real work. The second script uses 'N' to pair each
24490 # line-number line with the line containing $LINENO, and appends
24491 # trailing '-' during substitution so that $LINENO is not a special
24492 # case at line end.
24493 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
24494 # scripts with optimization help from Paolo Bonzini. Blame Lee
24495 # E. McMahon (1931-1989) for sed's syntax. :-)
24496 sed -n '
24498 /[$]LINENO/=
24499 ' <$as_myself |
24500 sed '
24501 s/[$]LINENO.*/&-/
24502 t lineno
24504 :lineno
24506 :loop
24507 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
24508 t loop
24509 s/-\n.*//
24510 ' >$as_me.lineno &&
24511 chmod +x "$as_me.lineno" ||
24512 { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
24513 { (exit 1); exit 1; }; }
24515 # Don't try to exec as it changes $[0], causing all sort of problems
24516 # (the dirname of $[0] is not the place where we might find the
24517 # original and so on. Autoconf is especially sensitive to this).
24518 . "./$as_me.lineno"
24519 # Exit status is that of the last command.
24520 exit
24524 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
24525 as_dirname=dirname
24526 else
24527 as_dirname=false
24530 ECHO_C= ECHO_N= ECHO_T=
24531 case `echo -n x` in
24532 -n*)
24533 case `echo 'x\c'` in
24534 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
24535 *) ECHO_C='\c';;
24536 esac;;
24538 ECHO_N='-n';;
24539 esac
24541 if expr a : '\(a\)' >/dev/null 2>&1 &&
24542 test "X`expr 00001 : '.*\(...\)'`" = X001; then
24543 as_expr=expr
24544 else
24545 as_expr=false
24548 rm -f conf$$ conf$$.exe conf$$.file
24549 if test -d conf$$.dir; then
24550 rm -f conf$$.dir/conf$$.file
24551 else
24552 rm -f conf$$.dir
24553 mkdir conf$$.dir
24555 echo >conf$$.file
24556 if ln -s conf$$.file conf$$ 2>/dev/null; then
24557 as_ln_s='ln -s'
24558 # ... but there are two gotchas:
24559 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
24560 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
24561 # In both cases, we have to default to `cp -p'.
24562 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
24563 as_ln_s='cp -p'
24564 elif ln conf$$.file conf$$ 2>/dev/null; then
24565 as_ln_s=ln
24566 else
24567 as_ln_s='cp -p'
24569 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
24570 rmdir conf$$.dir 2>/dev/null
24572 if mkdir -p . 2>/dev/null; then
24573 as_mkdir_p=:
24574 else
24575 test -d ./-p && rmdir ./-p
24576 as_mkdir_p=false
24579 if test -x / >/dev/null 2>&1; then
24580 as_test_x='test -x'
24581 else
24582 if ls -dL / >/dev/null 2>&1; then
24583 as_ls_L_option=L
24584 else
24585 as_ls_L_option=
24587 as_test_x='
24588 eval sh -c '\''
24589 if test -d "$1"; then
24590 test -d "$1/.";
24591 else
24592 case $1 in
24593 -*)set "./$1";;
24594 esac;
24595 case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in
24596 ???[sx]*):;;*)false;;esac;fi
24597 '\'' sh
24600 as_executable_p=$as_test_x
24602 # Sed expression to map a string onto a valid CPP name.
24603 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
24605 # Sed expression to map a string onto a valid variable name.
24606 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
24609 exec 6>&1
24611 # Save the log message, to keep $[0] and so on meaningful, and to
24612 # report actual input values of CONFIG_FILES etc. instead of their
24613 # values after options handling.
24614 ac_log="
24615 This file was extended by emacs $as_me 23.0.60, which was
24616 generated by GNU Autoconf 2.61. Invocation command line was
24618 CONFIG_FILES = $CONFIG_FILES
24619 CONFIG_HEADERS = $CONFIG_HEADERS
24620 CONFIG_LINKS = $CONFIG_LINKS
24621 CONFIG_COMMANDS = $CONFIG_COMMANDS
24622 $ $0 $@
24624 on `(hostname || uname -n) 2>/dev/null | sed 1q`
24627 _ACEOF
24629 cat >>$CONFIG_STATUS <<_ACEOF
24630 # Files that config.status was made for.
24631 config_files="$ac_config_files"
24632 config_headers="$ac_config_headers"
24633 config_commands="$ac_config_commands"
24635 _ACEOF
24637 cat >>$CONFIG_STATUS <<\_ACEOF
24638 ac_cs_usage="\
24639 \`$as_me' instantiates files from templates according to the
24640 current configuration.
24642 Usage: $0 [OPTIONS] [FILE]...
24644 -h, --help print this help, then exit
24645 -V, --version print version number and configuration settings, then exit
24646 -q, --quiet do not print progress messages
24647 -d, --debug don't remove temporary files
24648 --recheck update $as_me by reconfiguring in the same conditions
24649 --file=FILE[:TEMPLATE]
24650 instantiate the configuration file FILE
24651 --header=FILE[:TEMPLATE]
24652 instantiate the configuration header FILE
24654 Configuration files:
24655 $config_files
24657 Configuration headers:
24658 $config_headers
24660 Configuration commands:
24661 $config_commands
24663 Report bugs to <bug-autoconf@gnu.org>."
24665 _ACEOF
24666 cat >>$CONFIG_STATUS <<_ACEOF
24667 ac_cs_version="\\
24668 emacs config.status 23.0.60
24669 configured by $0, generated by GNU Autoconf 2.61,
24670 with options \\"`echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`\\"
24672 Copyright (C) 2006 Free Software Foundation, Inc.
24673 This config.status script is free software; the Free Software Foundation
24674 gives unlimited permission to copy, distribute and modify it."
24676 ac_pwd='$ac_pwd'
24677 srcdir='$srcdir'
24678 INSTALL='$INSTALL'
24679 _ACEOF
24681 cat >>$CONFIG_STATUS <<\_ACEOF
24682 # If no file are specified by the user, then we need to provide default
24683 # value. By we need to know if files were specified by the user.
24684 ac_need_defaults=:
24685 while test $# != 0
24687 case $1 in
24688 --*=*)
24689 ac_option=`expr "X$1" : 'X\([^=]*\)='`
24690 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
24691 ac_shift=:
24694 ac_option=$1
24695 ac_optarg=$2
24696 ac_shift=shift
24698 esac
24700 case $ac_option in
24701 # Handling of the options.
24702 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
24703 ac_cs_recheck=: ;;
24704 --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
24705 echo "$ac_cs_version"; exit ;;
24706 --debug | --debu | --deb | --de | --d | -d )
24707 debug=: ;;
24708 --file | --fil | --fi | --f )
24709 $ac_shift
24710 CONFIG_FILES="$CONFIG_FILES $ac_optarg"
24711 ac_need_defaults=false;;
24712 --header | --heade | --head | --hea )
24713 $ac_shift
24714 CONFIG_HEADERS="$CONFIG_HEADERS $ac_optarg"
24715 ac_need_defaults=false;;
24716 --he | --h)
24717 # Conflict between --help and --header
24718 { echo "$as_me: error: ambiguous option: $1
24719 Try \`$0 --help' for more information." >&2
24720 { (exit 1); exit 1; }; };;
24721 --help | --hel | -h )
24722 echo "$ac_cs_usage"; exit ;;
24723 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
24724 | -silent | --silent | --silen | --sile | --sil | --si | --s)
24725 ac_cs_silent=: ;;
24727 # This is an error.
24728 -*) { echo "$as_me: error: unrecognized option: $1
24729 Try \`$0 --help' for more information." >&2
24730 { (exit 1); exit 1; }; } ;;
24732 *) ac_config_targets="$ac_config_targets $1"
24733 ac_need_defaults=false ;;
24735 esac
24736 shift
24737 done
24739 ac_configure_extra_args=
24741 if $ac_cs_silent; then
24742 exec 6>/dev/null
24743 ac_configure_extra_args="$ac_configure_extra_args --silent"
24746 _ACEOF
24747 cat >>$CONFIG_STATUS <<_ACEOF
24748 if \$ac_cs_recheck; then
24749 echo "running CONFIG_SHELL=$SHELL $SHELL $0 "$ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6
24750 CONFIG_SHELL=$SHELL
24751 export CONFIG_SHELL
24752 exec $SHELL "$0"$ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
24755 _ACEOF
24756 cat >>$CONFIG_STATUS <<\_ACEOF
24757 exec 5>>config.log
24759 echo
24760 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
24761 ## Running $as_me. ##
24762 _ASBOX
24763 echo "$ac_log"
24764 } >&5
24766 _ACEOF
24767 cat >>$CONFIG_STATUS <<_ACEOF
24769 # INIT-COMMANDS
24771 GCC="$GCC" NON_GNU_CPP="$NON_GNU_CPP" CPP="$CPP" CPP_NEED_TRADITIONAL="$CPP_NEED_TRADITIONAL" CPPFLAGS="$CPPFLAGS"
24773 _ACEOF
24775 cat >>$CONFIG_STATUS <<\_ACEOF
24777 # Handling of arguments.
24778 for ac_config_target in $ac_config_targets
24780 case $ac_config_target in
24781 "src/config.h") CONFIG_HEADERS="$CONFIG_HEADERS src/config.h:src/config.in" ;;
24782 "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
24783 "lib-src/Makefile.c") CONFIG_FILES="$CONFIG_FILES lib-src/Makefile.c:lib-src/Makefile.in" ;;
24784 "oldXMenu/Makefile") CONFIG_FILES="$CONFIG_FILES oldXMenu/Makefile" ;;
24785 "doc/emacs/Makefile") CONFIG_FILES="$CONFIG_FILES doc/emacs/Makefile" ;;
24786 "doc/misc/Makefile") CONFIG_FILES="$CONFIG_FILES doc/misc/Makefile" ;;
24787 "doc/lispintro/Makefile") CONFIG_FILES="$CONFIG_FILES doc/lispintro/Makefile" ;;
24788 "doc/lispref/Makefile") CONFIG_FILES="$CONFIG_FILES doc/lispref/Makefile" ;;
24789 "src/Makefile.c") CONFIG_FILES="$CONFIG_FILES src/Makefile.c:src/Makefile.in" ;;
24790 "lwlib/Makefile") CONFIG_FILES="$CONFIG_FILES lwlib/Makefile" ;;
24791 "lisp/Makefile") CONFIG_FILES="$CONFIG_FILES lisp/Makefile" ;;
24792 "leim/Makefile") CONFIG_FILES="$CONFIG_FILES leim/Makefile" ;;
24793 "default") CONFIG_COMMANDS="$CONFIG_COMMANDS default" ;;
24795 *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
24796 echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
24797 { (exit 1); exit 1; }; };;
24798 esac
24799 done
24802 # If the user did not use the arguments to specify the items to instantiate,
24803 # then the envvar interface is used. Set only those that are not.
24804 # We use the long form for the default assignment because of an extremely
24805 # bizarre bug on SunOS 4.1.3.
24806 if $ac_need_defaults; then
24807 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
24808 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
24809 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
24812 # Have a temporary directory for convenience. Make it in the build tree
24813 # simply because there is no reason against having it here, and in addition,
24814 # creating and moving files from /tmp can sometimes cause problems.
24815 # Hook for its removal unless debugging.
24816 # Note that there is a small window in which the directory will not be cleaned:
24817 # after its creation but before its name has been assigned to `$tmp'.
24818 $debug ||
24820 tmp=
24821 trap 'exit_status=$?
24822 { test -z "$tmp" || test ! -d "$tmp" || rm -fr "$tmp"; } && exit $exit_status
24824 trap '{ (exit 1); exit 1; }' 1 2 13 15
24826 # Create a (secure) tmp directory for tmp files.
24829 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
24830 test -n "$tmp" && test -d "$tmp"
24831 } ||
24833 tmp=./conf$$-$RANDOM
24834 (umask 077 && mkdir "$tmp")
24835 } ||
24837 echo "$me: cannot create a temporary directory in ." >&2
24838 { (exit 1); exit 1; }
24842 # Set up the sed scripts for CONFIG_FILES section.
24845 # No need to generate the scripts if there are no CONFIG_FILES.
24846 # This happens for instance when ./config.status config.h
24847 if test -n "$CONFIG_FILES"; then
24849 _ACEOF
24853 ac_delim='%!_!# '
24854 for ac_last_try in false false false false false :; do
24855 cat >conf$$subs.sed <<_ACEOF
24856 SHELL!$SHELL$ac_delim
24857 PATH_SEPARATOR!$PATH_SEPARATOR$ac_delim
24858 PACKAGE_NAME!$PACKAGE_NAME$ac_delim
24859 PACKAGE_TARNAME!$PACKAGE_TARNAME$ac_delim
24860 PACKAGE_VERSION!$PACKAGE_VERSION$ac_delim
24861 PACKAGE_STRING!$PACKAGE_STRING$ac_delim
24862 PACKAGE_BUGREPORT!$PACKAGE_BUGREPORT$ac_delim
24863 exec_prefix!$exec_prefix$ac_delim
24864 prefix!$prefix$ac_delim
24865 program_transform_name!$program_transform_name$ac_delim
24866 bindir!$bindir$ac_delim
24867 sbindir!$sbindir$ac_delim
24868 libexecdir!$libexecdir$ac_delim
24869 datarootdir!$datarootdir$ac_delim
24870 datadir!$datadir$ac_delim
24871 sysconfdir!$sysconfdir$ac_delim
24872 sharedstatedir!$sharedstatedir$ac_delim
24873 localstatedir!$localstatedir$ac_delim
24874 includedir!$includedir$ac_delim
24875 oldincludedir!$oldincludedir$ac_delim
24876 docdir!$docdir$ac_delim
24877 infodir!$infodir$ac_delim
24878 htmldir!$htmldir$ac_delim
24879 dvidir!$dvidir$ac_delim
24880 pdfdir!$pdfdir$ac_delim
24881 psdir!$psdir$ac_delim
24882 libdir!$libdir$ac_delim
24883 localedir!$localedir$ac_delim
24884 mandir!$mandir$ac_delim
24885 DEFS!$DEFS$ac_delim
24886 ECHO_C!$ECHO_C$ac_delim
24887 ECHO_N!$ECHO_N$ac_delim
24888 ECHO_T!$ECHO_T$ac_delim
24889 LIBS!$LIBS$ac_delim
24890 build_alias!$build_alias$ac_delim
24891 host_alias!$host_alias$ac_delim
24892 target_alias!$target_alias$ac_delim
24893 MAINT!$MAINT$ac_delim
24894 build!$build$ac_delim
24895 build_cpu!$build_cpu$ac_delim
24896 build_vendor!$build_vendor$ac_delim
24897 build_os!$build_os$ac_delim
24898 host!$host$ac_delim
24899 host_cpu!$host_cpu$ac_delim
24900 host_vendor!$host_vendor$ac_delim
24901 host_os!$host_os$ac_delim
24902 CC!$CC$ac_delim
24903 CFLAGS!$CFLAGS$ac_delim
24904 LDFLAGS!$LDFLAGS$ac_delim
24905 CPPFLAGS!$CPPFLAGS$ac_delim
24906 ac_ct_CC!$ac_ct_CC$ac_delim
24907 EXEEXT!$EXEEXT$ac_delim
24908 OBJEXT!$OBJEXT$ac_delim
24909 CPP!$CPP$ac_delim
24910 GREP!$GREP$ac_delim
24911 EGREP!$EGREP$ac_delim
24912 LN_S!$LN_S$ac_delim
24913 INSTALL_PROGRAM!$INSTALL_PROGRAM$ac_delim
24914 INSTALL_SCRIPT!$INSTALL_SCRIPT$ac_delim
24915 INSTALL_DATA!$INSTALL_DATA$ac_delim
24916 RANLIB!$RANLIB$ac_delim
24917 INSTALL_INFO!$INSTALL_INFO$ac_delim
24918 GZIP_PROG!$GZIP_PROG$ac_delim
24919 MAKEINFO!$MAKEINFO$ac_delim
24920 LIBSOUND!$LIBSOUND$ac_delim
24921 PKG_CONFIG!$PKG_CONFIG$ac_delim
24922 ALSA_CFLAGS!$ALSA_CFLAGS$ac_delim
24923 ALSA_LIBS!$ALSA_LIBS$ac_delim
24924 CFLAGS_SOUND!$CFLAGS_SOUND$ac_delim
24925 SET_MAKE!$SET_MAKE$ac_delim
24926 XMKMF!$XMKMF$ac_delim
24927 HAVE_XSERVER!$HAVE_XSERVER$ac_delim
24928 RSVG_CFLAGS!$RSVG_CFLAGS$ac_delim
24929 RSVG_LIBS!$RSVG_LIBS$ac_delim
24930 GTK_CFLAGS!$GTK_CFLAGS$ac_delim
24931 GTK_LIBS!$GTK_LIBS$ac_delim
24932 DBUS_CFLAGS!$DBUS_CFLAGS$ac_delim
24933 DBUS_LIBS!$DBUS_LIBS$ac_delim
24934 XFT_CFLAGS!$XFT_CFLAGS$ac_delim
24935 XFT_LIBS!$XFT_LIBS$ac_delim
24936 FREETYPE_CFLAGS!$FREETYPE_CFLAGS$ac_delim
24937 FREETYPE_LIBS!$FREETYPE_LIBS$ac_delim
24938 FONTCONFIG_CFLAGS!$FONTCONFIG_CFLAGS$ac_delim
24939 FONTCONFIG_LIBS!$FONTCONFIG_LIBS$ac_delim
24940 LIBOTF_CFLAGS!$LIBOTF_CFLAGS$ac_delim
24941 LIBOTF_LIBS!$LIBOTF_LIBS$ac_delim
24942 M17N_FLT_CFLAGS!$M17N_FLT_CFLAGS$ac_delim
24943 M17N_FLT_LIBS!$M17N_FLT_LIBS$ac_delim
24944 ALLOCA!$ALLOCA$ac_delim
24945 liblockfile!$liblockfile$ac_delim
24946 LIBOBJS!$LIBOBJS$ac_delim
24947 NEED_SETGID!$NEED_SETGID$ac_delim
24948 KMEM_GROUP!$KMEM_GROUP$ac_delim
24949 GETLOADAVG_LIBS!$GETLOADAVG_LIBS$ac_delim
24950 GETOPT_H!$GETOPT_H$ac_delim
24951 GETOPTOBJS!$GETOPTOBJS$ac_delim
24952 version!$version$ac_delim
24953 _ACEOF
24955 if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 97; then
24956 break
24957 elif $ac_last_try; then
24958 { { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
24959 echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
24960 { (exit 1); exit 1; }; }
24961 else
24962 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
24964 done
24966 ac_eof=`sed -n '/^CEOF[0-9]*$/s/CEOF/0/p' conf$$subs.sed`
24967 if test -n "$ac_eof"; then
24968 ac_eof=`echo "$ac_eof" | sort -nru | sed 1q`
24969 ac_eof=`expr $ac_eof + 1`
24972 cat >>$CONFIG_STATUS <<_ACEOF
24973 cat >"\$tmp/subs-1.sed" <<\CEOF$ac_eof
24974 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
24975 _ACEOF
24976 sed '
24977 s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g
24978 s/^/s,@/; s/!/@,|#_!!_#|/
24981 s/'"$ac_delim"'$/,g/; t
24982 s/$/\\/; p
24983 N; s/^.*\n//; s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g; b n
24984 ' >>$CONFIG_STATUS <conf$$subs.sed
24985 rm -f conf$$subs.sed
24986 cat >>$CONFIG_STATUS <<_ACEOF
24987 CEOF$ac_eof
24988 _ACEOF
24991 ac_delim='%!_!# '
24992 for ac_last_try in false false false false false :; do
24993 cat >conf$$subs.sed <<_ACEOF
24994 configuration!$configuration$ac_delim
24995 canonical!$canonical$ac_delim
24996 srcdir!$srcdir$ac_delim
24997 lispdir!$lispdir$ac_delim
24998 locallisppath!$locallisppath$ac_delim
24999 lisppath!$lisppath$ac_delim
25000 x_default_search_path!$x_default_search_path$ac_delim
25001 etcdir!$etcdir$ac_delim
25002 archlibdir!$archlibdir$ac_delim
25003 bitmapdir!$bitmapdir$ac_delim
25004 gamedir!$gamedir$ac_delim
25005 gameuser!$gameuser$ac_delim
25006 c_switch_system!$c_switch_system$ac_delim
25007 c_switch_machine!$c_switch_machine$ac_delim
25008 LD_SWITCH_X_SITE!$LD_SWITCH_X_SITE$ac_delim
25009 LD_SWITCH_X_SITE_AUX!$LD_SWITCH_X_SITE_AUX$ac_delim
25010 C_SWITCH_X_SITE!$C_SWITCH_X_SITE$ac_delim
25011 X_TOOLKIT_TYPE!$X_TOOLKIT_TYPE$ac_delim
25012 machfile!$machfile$ac_delim
25013 opsysfile!$opsysfile$ac_delim
25014 carbon_appdir!$carbon_appdir$ac_delim
25015 LTLIBOBJS!$LTLIBOBJS$ac_delim
25016 _ACEOF
25018 if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 22; then
25019 break
25020 elif $ac_last_try; then
25021 { { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
25022 echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
25023 { (exit 1); exit 1; }; }
25024 else
25025 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
25027 done
25029 ac_eof=`sed -n '/^CEOF[0-9]*$/s/CEOF/0/p' conf$$subs.sed`
25030 if test -n "$ac_eof"; then
25031 ac_eof=`echo "$ac_eof" | sort -nru | sed 1q`
25032 ac_eof=`expr $ac_eof + 1`
25035 cat >>$CONFIG_STATUS <<_ACEOF
25036 cat >"\$tmp/subs-2.sed" <<\CEOF$ac_eof
25037 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b end
25038 _ACEOF
25039 sed '
25040 s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g
25041 s/^/s,@/; s/!/@,|#_!!_#|/
25044 s/'"$ac_delim"'$/,g/; t
25045 s/$/\\/; p
25046 N; s/^.*\n//; s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g; b n
25047 ' >>$CONFIG_STATUS <conf$$subs.sed
25048 rm -f conf$$subs.sed
25049 cat >>$CONFIG_STATUS <<_ACEOF
25050 :end
25051 s/|#_!!_#|//g
25052 CEOF$ac_eof
25053 _ACEOF
25056 # VPATH may cause trouble with some makes, so we remove $(srcdir),
25057 # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
25058 # trailing colons and then remove the whole line if VPATH becomes empty
25059 # (actually we leave an empty line to preserve line numbers).
25060 if test "x$srcdir" = x.; then
25061 ac_vpsub='/^[ ]*VPATH[ ]*=/{
25062 s/:*\$(srcdir):*/:/
25063 s/:*\${srcdir}:*/:/
25064 s/:*@srcdir@:*/:/
25065 s/^\([^=]*=[ ]*\):*/\1/
25066 s/:*$//
25067 s/^[^=]*=[ ]*$//
25071 cat >>$CONFIG_STATUS <<\_ACEOF
25072 fi # test -n "$CONFIG_FILES"
25075 for ac_tag in :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS
25077 case $ac_tag in
25078 :[FHLC]) ac_mode=$ac_tag; continue;;
25079 esac
25080 case $ac_mode$ac_tag in
25081 :[FHL]*:*);;
25082 :L* | :C*:*) { { echo "$as_me:$LINENO: error: Invalid tag $ac_tag." >&5
25083 echo "$as_me: error: Invalid tag $ac_tag." >&2;}
25084 { (exit 1); exit 1; }; };;
25085 :[FH]-) ac_tag=-:-;;
25086 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
25087 esac
25088 ac_save_IFS=$IFS
25089 IFS=:
25090 set x $ac_tag
25091 IFS=$ac_save_IFS
25092 shift
25093 ac_file=$1
25094 shift
25096 case $ac_mode in
25097 :L) ac_source=$1;;
25098 :[FH])
25099 ac_file_inputs=
25100 for ac_f
25102 case $ac_f in
25103 -) ac_f="$tmp/stdin";;
25104 *) # Look for the file first in the build tree, then in the source tree
25105 # (if the path is not absolute). The absolute path cannot be DOS-style,
25106 # because $ac_f cannot contain `:'.
25107 test -f "$ac_f" ||
25108 case $ac_f in
25109 [\\/$]*) false;;
25110 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
25111 esac ||
25112 { { echo "$as_me:$LINENO: error: cannot find input file: $ac_f" >&5
25113 echo "$as_me: error: cannot find input file: $ac_f" >&2;}
25114 { (exit 1); exit 1; }; };;
25115 esac
25116 ac_file_inputs="$ac_file_inputs $ac_f"
25117 done
25119 # Let's still pretend it is `configure' which instantiates (i.e., don't
25120 # use $as_me), people would be surprised to read:
25121 # /* config.h. Generated by config.status. */
25122 configure_input="Generated from "`IFS=:
25123 echo $* | sed 's|^[^:]*/||;s|:[^:]*/|, |g'`" by configure."
25124 if test x"$ac_file" != x-; then
25125 configure_input="$ac_file. $configure_input"
25126 { echo "$as_me:$LINENO: creating $ac_file" >&5
25127 echo "$as_me: creating $ac_file" >&6;}
25130 case $ac_tag in
25131 *:-:* | *:-) cat >"$tmp/stdin";;
25132 esac
25134 esac
25136 ac_dir=`$as_dirname -- "$ac_file" ||
25137 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
25138 X"$ac_file" : 'X\(//\)[^/]' \| \
25139 X"$ac_file" : 'X\(//\)$' \| \
25140 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
25141 echo X"$ac_file" |
25142 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
25143 s//\1/
25146 /^X\(\/\/\)[^/].*/{
25147 s//\1/
25150 /^X\(\/\/\)$/{
25151 s//\1/
25154 /^X\(\/\).*/{
25155 s//\1/
25158 s/.*/./; q'`
25159 { as_dir="$ac_dir"
25160 case $as_dir in #(
25161 -*) as_dir=./$as_dir;;
25162 esac
25163 test -d "$as_dir" || { $as_mkdir_p && mkdir -p "$as_dir"; } || {
25164 as_dirs=
25165 while :; do
25166 case $as_dir in #(
25167 *\'*) as_qdir=`echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #(
25168 *) as_qdir=$as_dir;;
25169 esac
25170 as_dirs="'$as_qdir' $as_dirs"
25171 as_dir=`$as_dirname -- "$as_dir" ||
25172 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
25173 X"$as_dir" : 'X\(//\)[^/]' \| \
25174 X"$as_dir" : 'X\(//\)$' \| \
25175 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
25176 echo X"$as_dir" |
25177 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
25178 s//\1/
25181 /^X\(\/\/\)[^/].*/{
25182 s//\1/
25185 /^X\(\/\/\)$/{
25186 s//\1/
25189 /^X\(\/\).*/{
25190 s//\1/
25193 s/.*/./; q'`
25194 test -d "$as_dir" && break
25195 done
25196 test -z "$as_dirs" || eval "mkdir $as_dirs"
25197 } || test -d "$as_dir" || { { echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5
25198 echo "$as_me: error: cannot create directory $as_dir" >&2;}
25199 { (exit 1); exit 1; }; }; }
25200 ac_builddir=.
25202 case "$ac_dir" in
25203 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
25205 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
25206 # A ".." for each directory in $ac_dir_suffix.
25207 ac_top_builddir_sub=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'`
25208 case $ac_top_builddir_sub in
25209 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
25210 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
25211 esac ;;
25212 esac
25213 ac_abs_top_builddir=$ac_pwd
25214 ac_abs_builddir=$ac_pwd$ac_dir_suffix
25215 # for backward compatibility:
25216 ac_top_builddir=$ac_top_build_prefix
25218 case $srcdir in
25219 .) # We are building in place.
25220 ac_srcdir=.
25221 ac_top_srcdir=$ac_top_builddir_sub
25222 ac_abs_top_srcdir=$ac_pwd ;;
25223 [\\/]* | ?:[\\/]* ) # Absolute name.
25224 ac_srcdir=$srcdir$ac_dir_suffix;
25225 ac_top_srcdir=$srcdir
25226 ac_abs_top_srcdir=$srcdir ;;
25227 *) # Relative name.
25228 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
25229 ac_top_srcdir=$ac_top_build_prefix$srcdir
25230 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
25231 esac
25232 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
25235 case $ac_mode in
25238 # CONFIG_FILE
25241 case $INSTALL in
25242 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
25243 *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
25244 esac
25245 _ACEOF
25247 cat >>$CONFIG_STATUS <<\_ACEOF
25248 # If the template does not know about datarootdir, expand it.
25249 # FIXME: This hack should be removed a few years after 2.60.
25250 ac_datarootdir_hack=; ac_datarootdir_seen=
25252 case `sed -n '/datarootdir/ {
25256 /@datadir@/p
25257 /@docdir@/p
25258 /@infodir@/p
25259 /@localedir@/p
25260 /@mandir@/p
25261 ' $ac_file_inputs` in
25262 *datarootdir*) ac_datarootdir_seen=yes;;
25263 *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
25264 { echo "$as_me:$LINENO: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
25265 echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
25266 _ACEOF
25267 cat >>$CONFIG_STATUS <<_ACEOF
25268 ac_datarootdir_hack='
25269 s&@datadir@&$datadir&g
25270 s&@docdir@&$docdir&g
25271 s&@infodir@&$infodir&g
25272 s&@localedir@&$localedir&g
25273 s&@mandir@&$mandir&g
25274 s&\\\${datarootdir}&$datarootdir&g' ;;
25275 esac
25276 _ACEOF
25278 # Neutralize VPATH when `$srcdir' = `.'.
25279 # Shell code in configure.ac might set extrasub.
25280 # FIXME: do we really want to maintain this feature?
25281 cat >>$CONFIG_STATUS <<_ACEOF
25282 sed "$ac_vpsub
25283 $extrasub
25284 _ACEOF
25285 cat >>$CONFIG_STATUS <<\_ACEOF
25287 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
25288 s&@configure_input@&$configure_input&;t t
25289 s&@top_builddir@&$ac_top_builddir_sub&;t t
25290 s&@srcdir@&$ac_srcdir&;t t
25291 s&@abs_srcdir@&$ac_abs_srcdir&;t t
25292 s&@top_srcdir@&$ac_top_srcdir&;t t
25293 s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
25294 s&@builddir@&$ac_builddir&;t t
25295 s&@abs_builddir@&$ac_abs_builddir&;t t
25296 s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
25297 s&@INSTALL@&$ac_INSTALL&;t t
25298 $ac_datarootdir_hack
25299 " $ac_file_inputs | sed -f "$tmp/subs-1.sed" | sed -f "$tmp/subs-2.sed" >$tmp/out
25301 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
25302 { ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out"`; test -n "$ac_out"; } &&
25303 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' "$tmp/out"`; test -z "$ac_out"; } &&
25304 { echo "$as_me:$LINENO: WARNING: $ac_file contains a reference to the variable \`datarootdir'
25305 which seems to be undefined. Please make sure it is defined." >&5
25306 echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
25307 which seems to be undefined. Please make sure it is defined." >&2;}
25309 rm -f "$tmp/stdin"
25310 case $ac_file in
25311 -) cat "$tmp/out"; rm -f "$tmp/out";;
25312 *) rm -f "$ac_file"; mv "$tmp/out" $ac_file;;
25313 esac
25317 # CONFIG_HEADER
25319 _ACEOF
25321 # Transform confdefs.h into a sed script `conftest.defines', that
25322 # substitutes the proper values into config.h.in to produce config.h.
25323 rm -f conftest.defines conftest.tail
25324 # First, append a space to every undef/define line, to ease matching.
25325 echo 's/$/ /' >conftest.defines
25326 # Then, protect against being on the right side of a sed subst, or in
25327 # an unquoted here document, in config.status. If some macros were
25328 # called several times there might be several #defines for the same
25329 # symbol, which is useless. But do not sort them, since the last
25330 # AC_DEFINE must be honored.
25331 ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
25332 # These sed commands are passed to sed as "A NAME B PARAMS C VALUE D", where
25333 # NAME is the cpp macro being defined, VALUE is the value it is being given.
25334 # PARAMS is the parameter list in the macro definition--in most cases, it's
25335 # just an empty string.
25336 ac_dA='s,^\\([ #]*\\)[^ ]*\\([ ]*'
25337 ac_dB='\\)[ (].*,\\1define\\2'
25338 ac_dC=' '
25339 ac_dD=' ,'
25341 uniq confdefs.h |
25342 sed -n '
25343 t rset
25344 :rset
25345 s/^[ ]*#[ ]*define[ ][ ]*//
25346 t ok
25349 s/[\\&,]/\\&/g
25350 s/^\('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/ '"$ac_dA"'\1'"$ac_dB"'\2'"${ac_dC}"'\3'"$ac_dD"'/p
25351 s/^\('"$ac_word_re"'\)[ ]*\(.*\)/'"$ac_dA"'\1'"$ac_dB$ac_dC"'\2'"$ac_dD"'/p
25352 ' >>conftest.defines
25354 # Remove the space that was appended to ease matching.
25355 # Then replace #undef with comments. This is necessary, for
25356 # example, in the case of _POSIX_SOURCE, which is predefined and required
25357 # on some systems where configure will not decide to define it.
25358 # (The regexp can be short, since the line contains either #define or #undef.)
25359 echo 's/ $//
25360 s,^[ #]*u.*,/* & */,' >>conftest.defines
25362 # Break up conftest.defines:
25363 ac_max_sed_lines=50
25365 # First sed command is: sed -f defines.sed $ac_file_inputs >"$tmp/out1"
25366 # Second one is: sed -f defines.sed "$tmp/out1" >"$tmp/out2"
25367 # Third one will be: sed -f defines.sed "$tmp/out2" >"$tmp/out1"
25368 # et cetera.
25369 ac_in='$ac_file_inputs'
25370 ac_out='"$tmp/out1"'
25371 ac_nxt='"$tmp/out2"'
25373 while :
25375 # Write a here document:
25376 cat >>$CONFIG_STATUS <<_ACEOF
25377 # First, check the format of the line:
25378 cat >"\$tmp/defines.sed" <<\\CEOF
25379 /^[ ]*#[ ]*undef[ ][ ]*$ac_word_re[ ]*\$/b def
25380 /^[ ]*#[ ]*define[ ][ ]*$ac_word_re[( ]/b def
25382 :def
25383 _ACEOF
25384 sed ${ac_max_sed_lines}q conftest.defines >>$CONFIG_STATUS
25385 echo 'CEOF
25386 sed -f "$tmp/defines.sed"' "$ac_in >$ac_out" >>$CONFIG_STATUS
25387 ac_in=$ac_out; ac_out=$ac_nxt; ac_nxt=$ac_in
25388 sed 1,${ac_max_sed_lines}d conftest.defines >conftest.tail
25389 grep . conftest.tail >/dev/null || break
25390 rm -f conftest.defines
25391 mv conftest.tail conftest.defines
25392 done
25393 rm -f conftest.defines conftest.tail
25395 echo "ac_result=$ac_in" >>$CONFIG_STATUS
25396 cat >>$CONFIG_STATUS <<\_ACEOF
25397 if test x"$ac_file" != x-; then
25398 echo "/* $configure_input */" >"$tmp/config.h"
25399 cat "$ac_result" >>"$tmp/config.h"
25400 if diff $ac_file "$tmp/config.h" >/dev/null 2>&1; then
25401 { echo "$as_me:$LINENO: $ac_file is unchanged" >&5
25402 echo "$as_me: $ac_file is unchanged" >&6;}
25403 else
25404 rm -f $ac_file
25405 mv "$tmp/config.h" $ac_file
25407 else
25408 echo "/* $configure_input */"
25409 cat "$ac_result"
25411 rm -f "$tmp/out12"
25414 :C) { echo "$as_me:$LINENO: executing $ac_file commands" >&5
25415 echo "$as_me: executing $ac_file commands" >&6;}
25417 esac
25420 case $ac_file$ac_mode in
25421 "default":C)
25423 ### Make the necessary directories, if they don't exist.
25424 for dir in etc lisp ; do
25425 test -d ${dir} || mkdir ${dir}
25426 done
25428 # Build src/Makefile from ${srcdir}/src/Makefile.c
25429 # and lib-src/Makefile from ${srcdir}/lib-src/Makefile.c
25430 # This must be done after src/config.h is built, since we rely on that file.
25432 # Now get this: Some word that is part of the ${srcdir} directory name
25433 # or the ${configuration} value might, just might, happen to be an
25434 # identifier like `sun4' or `i386' or something, and be predefined by
25435 # the C preprocessor to some helpful value like 1, or maybe the empty
25436 # string. Needless to say consequent macro substitutions are less
25437 # than conducive to the makefile finding the correct directory.
25438 undefs="`echo $top_srcdir $configuration $canonical |
25439 sed -e 's/[^a-zA-Z0-9_]/ /g' -e 's/^/ /' -e 's/ *$//' \
25440 -e 's/ */ -U/g' -e 's/-U[0-9][^ ]*//g' \
25443 echo creating src/epaths.h
25444 ${MAKE-make} epaths-force
25446 # As of 2000-11-19, newest development versions of GNU cpp preprocess
25447 # `..' to `. .' unless invoked with -traditional
25449 if test "x$GCC" = xyes && test "x$CPP_NEED_TRADITIONAL" = xyes; then
25450 CPPFLAGS="$CPPFLAGS -traditional"
25453 echo creating lib-src/Makefile
25454 ( cd lib-src
25455 rm -f junk.c junk1.c junk2.c
25456 sed -e '/start of cpp stuff/q' \
25457 < Makefile.c > junk1.c
25458 sed -e '1,/start of cpp stuff/d'\
25459 -e 's,/\*\*/#\(.*\)$,/* \1 */,' \
25460 < Makefile.c > junk.c
25461 $CPP $undefs -I. -I$srcdir/src $CPPFLAGS junk.c | \
25462 sed -e 's/^ / /' -e '/^#/d' -e '/^[ \f]*$/d' > junk2.c
25463 cat junk1.c junk2.c > Makefile.new
25464 rm -f junk.c junk1.c junk2.c
25465 chmod 444 Makefile.new
25466 mv -f Makefile.new Makefile
25469 echo creating src/Makefile
25470 ( cd src
25471 rm -f junk.c junk1.c junk2.c
25472 sed -e '/start of cpp stuff/q' \
25473 < Makefile.c > junk1.c
25474 sed -e '1,/start of cpp stuff/d'\
25475 -e 's,/\*\*/#\(.*\)$,/* \1 */,' \
25476 < Makefile.c > junk.c
25477 $CPP $undefs -I. -I$srcdir/src $CPPFLAGS junk.c | \
25478 sed -e 's/^ / /' -e '/^#/d' -e '/^[ \f]*$/d' > junk2.c
25479 cat junk1.c junk2.c > Makefile.new
25480 rm -f junk.c junk1.c junk2.c
25481 chmod 444 Makefile.new
25482 mv -f Makefile.new Makefile
25485 if test ! -f src/.gdbinit && test -f $srcdir/src/.gdbinit; then
25486 echo creating src/.gdbinit
25487 echo source $srcdir/src/.gdbinit > src/.gdbinit
25490 # This is how we know whether to re-run configure in certain cases.
25491 touch src/config.stamp
25495 esac
25496 done # for ac_tag
25499 { (exit 0); exit 0; }
25500 _ACEOF
25501 chmod +x $CONFIG_STATUS
25502 ac_clean_files=$ac_clean_files_save
25505 # configure is writing to config.log, and then calls config.status.
25506 # config.status does its own redirection, appending to config.log.
25507 # Unfortunately, on DOS this fails, as config.log is still kept open
25508 # by configure, so config.status won't be able to write to it; its
25509 # output is simply discarded. So we exec the FD to /dev/null,
25510 # effectively closing config.log, so it can be properly (re)opened and
25511 # appended to by config.status. When coming back to configure, we
25512 # need to make the FD available again.
25513 if test "$no_create" != yes; then
25514 ac_cs_success=:
25515 ac_config_status_args=
25516 test "$silent" = yes &&
25517 ac_config_status_args="$ac_config_status_args --quiet"
25518 exec 5>/dev/null
25519 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
25520 exec 5>>config.log
25521 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
25522 # would make configure fail if this is the last instruction.
25523 $ac_cs_success || { (exit 1); exit 1; }