*** empty log message ***
[emacs.git] / configure
blobbb726499e2c49969dc4e86736bfad11b6615bc93
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 ns_appdir
738 LTLIBOBJS'
739 ac_subst_files=''
740 ac_precious_vars='build_alias
741 host_alias
742 target_alias
744 CFLAGS
745 LDFLAGS
746 LIBS
747 CPPFLAGS
749 XMKMF'
752 # Initialize some variables set by options.
753 ac_init_help=
754 ac_init_version=false
755 # The variables have the same names as the options, with
756 # dashes changed to underlines.
757 cache_file=/dev/null
758 exec_prefix=NONE
759 no_create=
760 no_recursion=
761 prefix=NONE
762 program_prefix=NONE
763 program_suffix=NONE
764 program_transform_name=s,x,x,
765 silent=
766 site=
767 srcdir=
768 verbose=
769 x_includes=NONE
770 x_libraries=NONE
772 # Installation directory options.
773 # These are left unexpanded so users can "make install exec_prefix=/foo"
774 # and all the variables that are supposed to be based on exec_prefix
775 # by default will actually change.
776 # Use braces instead of parens because sh, perl, etc. also accept them.
777 # (The list follows the same order as the GNU Coding Standards.)
778 bindir='${exec_prefix}/bin'
779 sbindir='${exec_prefix}/sbin'
780 libexecdir='${exec_prefix}/libexec'
781 datarootdir='${prefix}/share'
782 datadir='${datarootdir}'
783 sysconfdir='${prefix}/etc'
784 sharedstatedir='${prefix}/com'
785 localstatedir='${prefix}/var'
786 includedir='${prefix}/include'
787 oldincludedir='/usr/include'
788 docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
789 infodir='${datarootdir}/info'
790 htmldir='${docdir}'
791 dvidir='${docdir}'
792 pdfdir='${docdir}'
793 psdir='${docdir}'
794 libdir='${exec_prefix}/lib'
795 localedir='${datarootdir}/locale'
796 mandir='${datarootdir}/man'
798 ac_prev=
799 ac_dashdash=
800 for ac_option
802 # If the previous option needs an argument, assign it.
803 if test -n "$ac_prev"; then
804 eval $ac_prev=\$ac_option
805 ac_prev=
806 continue
809 case $ac_option in
810 *=*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
811 *) ac_optarg=yes ;;
812 esac
814 # Accept the important Cygnus configure options, so we can diagnose typos.
816 case $ac_dashdash$ac_option in
818 ac_dashdash=yes ;;
820 -bindir | --bindir | --bindi | --bind | --bin | --bi)
821 ac_prev=bindir ;;
822 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
823 bindir=$ac_optarg ;;
825 -build | --build | --buil | --bui | --bu)
826 ac_prev=build_alias ;;
827 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
828 build_alias=$ac_optarg ;;
830 -cache-file | --cache-file | --cache-fil | --cache-fi \
831 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
832 ac_prev=cache_file ;;
833 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
834 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
835 cache_file=$ac_optarg ;;
837 --config-cache | -C)
838 cache_file=config.cache ;;
840 -datadir | --datadir | --datadi | --datad)
841 ac_prev=datadir ;;
842 -datadir=* | --datadir=* | --datadi=* | --datad=*)
843 datadir=$ac_optarg ;;
845 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
846 | --dataroo | --dataro | --datar)
847 ac_prev=datarootdir ;;
848 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
849 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
850 datarootdir=$ac_optarg ;;
852 -disable-* | --disable-*)
853 ac_feature=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
854 # Reject names that are not valid shell variable names.
855 expr "x$ac_feature" : ".*[^-._$as_cr_alnum]" >/dev/null &&
856 { echo "$as_me: error: invalid feature name: $ac_feature" >&2
857 { (exit 1); exit 1; }; }
858 ac_feature=`echo $ac_feature | sed 's/[-.]/_/g'`
859 eval enable_$ac_feature=no ;;
861 -docdir | --docdir | --docdi | --doc | --do)
862 ac_prev=docdir ;;
863 -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
864 docdir=$ac_optarg ;;
866 -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
867 ac_prev=dvidir ;;
868 -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
869 dvidir=$ac_optarg ;;
871 -enable-* | --enable-*)
872 ac_feature=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
873 # Reject names that are not valid shell variable names.
874 expr "x$ac_feature" : ".*[^-._$as_cr_alnum]" >/dev/null &&
875 { echo "$as_me: error: invalid feature name: $ac_feature" >&2
876 { (exit 1); exit 1; }; }
877 ac_feature=`echo $ac_feature | sed 's/[-.]/_/g'`
878 eval enable_$ac_feature=\$ac_optarg ;;
880 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
881 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
882 | --exec | --exe | --ex)
883 ac_prev=exec_prefix ;;
884 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
885 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
886 | --exec=* | --exe=* | --ex=*)
887 exec_prefix=$ac_optarg ;;
889 -gas | --gas | --ga | --g)
890 # Obsolete; use --with-gas.
891 with_gas=yes ;;
893 -help | --help | --hel | --he | -h)
894 ac_init_help=long ;;
895 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
896 ac_init_help=recursive ;;
897 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
898 ac_init_help=short ;;
900 -host | --host | --hos | --ho)
901 ac_prev=host_alias ;;
902 -host=* | --host=* | --hos=* | --ho=*)
903 host_alias=$ac_optarg ;;
905 -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
906 ac_prev=htmldir ;;
907 -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
908 | --ht=*)
909 htmldir=$ac_optarg ;;
911 -includedir | --includedir | --includedi | --included | --include \
912 | --includ | --inclu | --incl | --inc)
913 ac_prev=includedir ;;
914 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
915 | --includ=* | --inclu=* | --incl=* | --inc=*)
916 includedir=$ac_optarg ;;
918 -infodir | --infodir | --infodi | --infod | --info | --inf)
919 ac_prev=infodir ;;
920 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
921 infodir=$ac_optarg ;;
923 -libdir | --libdir | --libdi | --libd)
924 ac_prev=libdir ;;
925 -libdir=* | --libdir=* | --libdi=* | --libd=*)
926 libdir=$ac_optarg ;;
928 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
929 | --libexe | --libex | --libe)
930 ac_prev=libexecdir ;;
931 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
932 | --libexe=* | --libex=* | --libe=*)
933 libexecdir=$ac_optarg ;;
935 -localedir | --localedir | --localedi | --localed | --locale)
936 ac_prev=localedir ;;
937 -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
938 localedir=$ac_optarg ;;
940 -localstatedir | --localstatedir | --localstatedi | --localstated \
941 | --localstate | --localstat | --localsta | --localst | --locals)
942 ac_prev=localstatedir ;;
943 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
944 | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
945 localstatedir=$ac_optarg ;;
947 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
948 ac_prev=mandir ;;
949 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
950 mandir=$ac_optarg ;;
952 -nfp | --nfp | --nf)
953 # Obsolete; use --without-fp.
954 with_fp=no ;;
956 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
957 | --no-cr | --no-c | -n)
958 no_create=yes ;;
960 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
961 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
962 no_recursion=yes ;;
964 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
965 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
966 | --oldin | --oldi | --old | --ol | --o)
967 ac_prev=oldincludedir ;;
968 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
969 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
970 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
971 oldincludedir=$ac_optarg ;;
973 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
974 ac_prev=prefix ;;
975 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
976 prefix=$ac_optarg ;;
978 -program-prefix | --program-prefix | --program-prefi | --program-pref \
979 | --program-pre | --program-pr | --program-p)
980 ac_prev=program_prefix ;;
981 -program-prefix=* | --program-prefix=* | --program-prefi=* \
982 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
983 program_prefix=$ac_optarg ;;
985 -program-suffix | --program-suffix | --program-suffi | --program-suff \
986 | --program-suf | --program-su | --program-s)
987 ac_prev=program_suffix ;;
988 -program-suffix=* | --program-suffix=* | --program-suffi=* \
989 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
990 program_suffix=$ac_optarg ;;
992 -program-transform-name | --program-transform-name \
993 | --program-transform-nam | --program-transform-na \
994 | --program-transform-n | --program-transform- \
995 | --program-transform | --program-transfor \
996 | --program-transfo | --program-transf \
997 | --program-trans | --program-tran \
998 | --progr-tra | --program-tr | --program-t)
999 ac_prev=program_transform_name ;;
1000 -program-transform-name=* | --program-transform-name=* \
1001 | --program-transform-nam=* | --program-transform-na=* \
1002 | --program-transform-n=* | --program-transform-=* \
1003 | --program-transform=* | --program-transfor=* \
1004 | --program-transfo=* | --program-transf=* \
1005 | --program-trans=* | --program-tran=* \
1006 | --progr-tra=* | --program-tr=* | --program-t=*)
1007 program_transform_name=$ac_optarg ;;
1009 -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1010 ac_prev=pdfdir ;;
1011 -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1012 pdfdir=$ac_optarg ;;
1014 -psdir | --psdir | --psdi | --psd | --ps)
1015 ac_prev=psdir ;;
1016 -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1017 psdir=$ac_optarg ;;
1019 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1020 | -silent | --silent | --silen | --sile | --sil)
1021 silent=yes ;;
1023 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1024 ac_prev=sbindir ;;
1025 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1026 | --sbi=* | --sb=*)
1027 sbindir=$ac_optarg ;;
1029 -sharedstatedir | --sharedstatedir | --sharedstatedi \
1030 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1031 | --sharedst | --shareds | --shared | --share | --shar \
1032 | --sha | --sh)
1033 ac_prev=sharedstatedir ;;
1034 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1035 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1036 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1037 | --sha=* | --sh=*)
1038 sharedstatedir=$ac_optarg ;;
1040 -site | --site | --sit)
1041 ac_prev=site ;;
1042 -site=* | --site=* | --sit=*)
1043 site=$ac_optarg ;;
1045 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1046 ac_prev=srcdir ;;
1047 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1048 srcdir=$ac_optarg ;;
1050 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1051 | --syscon | --sysco | --sysc | --sys | --sy)
1052 ac_prev=sysconfdir ;;
1053 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1054 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1055 sysconfdir=$ac_optarg ;;
1057 -target | --target | --targe | --targ | --tar | --ta | --t)
1058 ac_prev=target_alias ;;
1059 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1060 target_alias=$ac_optarg ;;
1062 -v | -verbose | --verbose | --verbos | --verbo | --verb)
1063 verbose=yes ;;
1065 -version | --version | --versio | --versi | --vers | -V)
1066 ac_init_version=: ;;
1068 -with-* | --with-*)
1069 ac_package=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1070 # Reject names that are not valid shell variable names.
1071 expr "x$ac_package" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1072 { echo "$as_me: error: invalid package name: $ac_package" >&2
1073 { (exit 1); exit 1; }; }
1074 ac_package=`echo $ac_package | sed 's/[-.]/_/g'`
1075 eval with_$ac_package=\$ac_optarg ;;
1077 -without-* | --without-*)
1078 ac_package=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1079 # Reject names that are not valid shell variable names.
1080 expr "x$ac_package" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1081 { echo "$as_me: error: invalid package name: $ac_package" >&2
1082 { (exit 1); exit 1; }; }
1083 ac_package=`echo $ac_package | sed 's/[-.]/_/g'`
1084 eval with_$ac_package=no ;;
1086 --x)
1087 # Obsolete; use --with-x.
1088 with_x=yes ;;
1090 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1091 | --x-incl | --x-inc | --x-in | --x-i)
1092 ac_prev=x_includes ;;
1093 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1094 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1095 x_includes=$ac_optarg ;;
1097 -x-libraries | --x-libraries | --x-librarie | --x-librari \
1098 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1099 ac_prev=x_libraries ;;
1100 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1101 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1102 x_libraries=$ac_optarg ;;
1104 -*) { echo "$as_me: error: unrecognized option: $ac_option
1105 Try \`$0 --help' for more information." >&2
1106 { (exit 1); exit 1; }; }
1109 *=*)
1110 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1111 # Reject names that are not valid shell variable names.
1112 expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev/null &&
1113 { echo "$as_me: error: invalid variable name: $ac_envvar" >&2
1114 { (exit 1); exit 1; }; }
1115 eval $ac_envvar=\$ac_optarg
1116 export $ac_envvar ;;
1119 # FIXME: should be removed in autoconf 3.0.
1120 echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1121 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1122 echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1123 : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
1126 esac
1127 done
1129 if test -n "$ac_prev"; then
1130 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1131 { echo "$as_me: error: missing argument to $ac_option" >&2
1132 { (exit 1); exit 1; }; }
1135 # Be sure to have absolute directory names.
1136 for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \
1137 datadir sysconfdir sharedstatedir localstatedir includedir \
1138 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1139 libdir localedir mandir
1141 eval ac_val=\$$ac_var
1142 case $ac_val in
1143 [\\/$]* | ?:[\\/]* ) continue;;
1144 NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1145 esac
1146 { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
1147 { (exit 1); exit 1; }; }
1148 done
1150 # There might be people who depend on the old broken behavior: `$host'
1151 # used to hold the argument of --host etc.
1152 # FIXME: To remove some day.
1153 build=$build_alias
1154 host=$host_alias
1155 target=$target_alias
1157 # FIXME: To remove some day.
1158 if test "x$host_alias" != x; then
1159 if test "x$build_alias" = x; then
1160 cross_compiling=maybe
1161 echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
1162 If a cross compiler is detected then cross compile mode will be used." >&2
1163 elif test "x$build_alias" != "x$host_alias"; then
1164 cross_compiling=yes
1168 ac_tool_prefix=
1169 test -n "$host_alias" && ac_tool_prefix=$host_alias-
1171 test "$silent" = yes && exec 6>/dev/null
1174 ac_pwd=`pwd` && test -n "$ac_pwd" &&
1175 ac_ls_di=`ls -di .` &&
1176 ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1177 { echo "$as_me: error: Working directory cannot be determined" >&2
1178 { (exit 1); exit 1; }; }
1179 test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1180 { echo "$as_me: error: pwd does not report name of working directory" >&2
1181 { (exit 1); exit 1; }; }
1184 # Find the source files, if location was not specified.
1185 if test -z "$srcdir"; then
1186 ac_srcdir_defaulted=yes
1187 # Try the directory containing this script, then the parent directory.
1188 ac_confdir=`$as_dirname -- "$0" ||
1189 $as_expr X"$0" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1190 X"$0" : 'X\(//\)[^/]' \| \
1191 X"$0" : 'X\(//\)$' \| \
1192 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
1193 echo X"$0" |
1194 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1195 s//\1/
1198 /^X\(\/\/\)[^/].*/{
1199 s//\1/
1202 /^X\(\/\/\)$/{
1203 s//\1/
1206 /^X\(\/\).*/{
1207 s//\1/
1210 s/.*/./; q'`
1211 srcdir=$ac_confdir
1212 if test ! -r "$srcdir/$ac_unique_file"; then
1213 srcdir=..
1215 else
1216 ac_srcdir_defaulted=no
1218 if test ! -r "$srcdir/$ac_unique_file"; then
1219 test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1220 { echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2
1221 { (exit 1); exit 1; }; }
1223 ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1224 ac_abs_confdir=`(
1225 cd "$srcdir" && test -r "./$ac_unique_file" || { echo "$as_me: error: $ac_msg" >&2
1226 { (exit 1); exit 1; }; }
1227 pwd)`
1228 # When building in place, set srcdir=.
1229 if test "$ac_abs_confdir" = "$ac_pwd"; then
1230 srcdir=.
1232 # Remove unnecessary trailing slashes from srcdir.
1233 # Double slashes in file names in object file debugging info
1234 # mess up M-x gdb in Emacs.
1235 case $srcdir in
1236 */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1237 esac
1238 for ac_var in $ac_precious_vars; do
1239 eval ac_env_${ac_var}_set=\${${ac_var}+set}
1240 eval ac_env_${ac_var}_value=\$${ac_var}
1241 eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1242 eval ac_cv_env_${ac_var}_value=\$${ac_var}
1243 done
1246 # Report the --help message.
1248 if test "$ac_init_help" = "long"; then
1249 # Omit some internal or obsolete options to make the list less imposing.
1250 # This message is too long to be a string in the A/UX 3.1 sh.
1251 cat <<_ACEOF
1252 \`configure' configures emacs 23.0.60 to adapt to many kinds of systems.
1254 Usage: $0 [OPTION]... [VAR=VALUE]...
1256 To assign environment variables (e.g., CC, CFLAGS...), specify them as
1257 VAR=VALUE. See below for descriptions of some of the useful variables.
1259 Defaults for the options are specified in brackets.
1261 Configuration:
1262 -h, --help display this help and exit
1263 --help=short display options specific to this package
1264 --help=recursive display the short help of all the included packages
1265 -V, --version display version information and exit
1266 -q, --quiet, --silent do not print \`checking...' messages
1267 --cache-file=FILE cache test results in FILE [disabled]
1268 -C, --config-cache alias for \`--cache-file=config.cache'
1269 -n, --no-create do not create output files
1270 --srcdir=DIR find the sources in DIR [configure dir or \`..']
1272 Installation directories:
1273 --prefix=PREFIX install architecture-independent files in PREFIX
1274 [$ac_default_prefix]
1275 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
1276 [PREFIX]
1278 By default, \`make install' will install all the files in
1279 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
1280 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1281 for instance \`--prefix=\$HOME'.
1283 For better control, use the options below.
1285 Fine tuning of the installation directories:
1286 --bindir=DIR user executables [EPREFIX/bin]
1287 --sbindir=DIR system admin executables [EPREFIX/sbin]
1288 --libexecdir=DIR program executables [EPREFIX/libexec]
1289 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
1290 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
1291 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
1292 --libdir=DIR object code libraries [EPREFIX/lib]
1293 --includedir=DIR C header files [PREFIX/include]
1294 --oldincludedir=DIR C header files for non-gcc [/usr/include]
1295 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
1296 --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
1297 --infodir=DIR info documentation [DATAROOTDIR/info]
1298 --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
1299 --mandir=DIR man documentation [DATAROOTDIR/man]
1300 --docdir=DIR documentation root [DATAROOTDIR/doc/emacs]
1301 --htmldir=DIR html documentation [DOCDIR]
1302 --dvidir=DIR dvi documentation [DOCDIR]
1303 --pdfdir=DIR pdf documentation [DOCDIR]
1304 --psdir=DIR ps documentation [DOCDIR]
1305 _ACEOF
1307 cat <<\_ACEOF
1309 Program names:
1310 --program-prefix=PREFIX prepend PREFIX to installed program names
1311 --program-suffix=SUFFIX append SUFFIX to installed program names
1312 --program-transform-name=PROGRAM run sed PROGRAM on installed program names
1314 X features:
1315 --x-includes=DIR X include files are in DIR
1316 --x-libraries=DIR X library files are in DIR
1318 System types:
1319 --build=BUILD configure for building on BUILD [guessed]
1320 --host=HOST cross-compile to build programs to run on HOST [BUILD]
1321 _ACEOF
1324 if test -n "$ac_init_help"; then
1325 case $ac_init_help in
1326 short | recursive ) echo "Configuration of emacs 23.0.60:";;
1327 esac
1328 cat <<\_ACEOF
1330 Optional Features:
1331 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
1332 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
1333 --enable-carbon-app[=DIR]
1334 specify install directory for Emacs.app on Mac OS X
1335 [DIR=/Application]
1336 --enable-ns-app[=DIR] [DIR=/Applications]
1337 specify install directory for Emacs.app under NS
1338 --enable-cocoa-experimental-ctrl-g enable experimental improved ctrl-g recognition
1339 --enable-asserts compile code with asserts enabled
1340 --enable-maintainer-mode
1341 enable make rules and dependencies not useful (and
1342 sometimes confusing) to the casual installer
1343 --enable-locallisppath=PATH
1344 directories Emacs should search for lisp files
1345 specific to this site
1346 --disable-largefile omit support for large files
1348 Optional Packages:
1349 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
1350 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
1351 --without-pop don't support POP mail retrieval with movemail
1352 --with-kerberos support Kerberos-authenticated POP
1353 --with-kerberos5 support Kerberos version 5 authenticated POP
1354 --with-hesiod support Hesiod to get the POP server host
1355 --without-sound don't compile with sound support
1356 --without-sync-input Process async input synchronously
1357 --with-x-toolkit=KIT use an X toolkit (KIT one of: yes, lucid, athena,
1358 motif, gtk, no)
1359 --without-xpm don't compile with XPM image support
1360 --without-jpeg don't compile with JPEG image support
1361 --without-tiff don't compile with TIFF image support
1362 --without-gif don't compile with GIF image support
1363 --without-png don't compile with PNG image support
1364 --without-rsvg don't compile with SVG image support
1365 --without-freetype don't use Freetype for local font support
1366 --without-xft don't use XFT for anti aliased fonts
1367 --without-libotf don't use libotf for OpenType font support
1368 --without-m17n-flt don't use m17n-flt for text shaping
1369 --without-toolkit-scroll-bars
1370 don't use Motif or Xaw3d scroll bars
1371 --without-xaw3d don't use Xaw3d
1372 --without-xim don't use X11 XIM
1373 --with-carbon use Carbon GUI on Mac OS X. This is unsupported!
1374 --with-ns use nextstep (Cocoa or GNUstep) windowing system
1375 --without-gpm don't use -lgpm for mouse support on a GNU/Linux
1376 console
1377 --without-dbus don't compile with D-Bus support
1378 --without-makeinfo don't require makeinfo for building manuals
1380 --with-pkg-config-prog=PATH
1381 Path to pkg-config for finding GTK and librsvg
1382 --with-x use the X Window System
1384 Some influential environment variables:
1385 CC C compiler command
1386 CFLAGS C compiler flags
1387 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
1388 nonstandard directory <lib dir>
1389 LIBS libraries to pass to the linker, e.g. -l<library>
1390 CPPFLAGS C/C++/Objective C preprocessor flags, e.g. -I<include dir> if
1391 you have headers in a nonstandard directory <include dir>
1392 CPP C preprocessor
1393 XMKMF Path to xmkmf, Makefile generator for X Window System
1395 Use these variables to override the choices made by `configure' or to help
1396 it to find libraries and programs with nonstandard names/locations.
1398 _ACEOF
1399 ac_status=$?
1402 if test "$ac_init_help" = "recursive"; then
1403 # If there are subdirs, report their specific --help.
1404 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1405 test -d "$ac_dir" || continue
1406 ac_builddir=.
1408 case "$ac_dir" in
1409 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1411 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
1412 # A ".." for each directory in $ac_dir_suffix.
1413 ac_top_builddir_sub=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'`
1414 case $ac_top_builddir_sub in
1415 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1416 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1417 esac ;;
1418 esac
1419 ac_abs_top_builddir=$ac_pwd
1420 ac_abs_builddir=$ac_pwd$ac_dir_suffix
1421 # for backward compatibility:
1422 ac_top_builddir=$ac_top_build_prefix
1424 case $srcdir in
1425 .) # We are building in place.
1426 ac_srcdir=.
1427 ac_top_srcdir=$ac_top_builddir_sub
1428 ac_abs_top_srcdir=$ac_pwd ;;
1429 [\\/]* | ?:[\\/]* ) # Absolute name.
1430 ac_srcdir=$srcdir$ac_dir_suffix;
1431 ac_top_srcdir=$srcdir
1432 ac_abs_top_srcdir=$srcdir ;;
1433 *) # Relative name.
1434 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1435 ac_top_srcdir=$ac_top_build_prefix$srcdir
1436 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1437 esac
1438 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1440 cd "$ac_dir" || { ac_status=$?; continue; }
1441 # Check for guested configure.
1442 if test -f "$ac_srcdir/configure.gnu"; then
1443 echo &&
1444 $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1445 elif test -f "$ac_srcdir/configure"; then
1446 echo &&
1447 $SHELL "$ac_srcdir/configure" --help=recursive
1448 else
1449 echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1450 fi || ac_status=$?
1451 cd "$ac_pwd" || { ac_status=$?; break; }
1452 done
1455 test -n "$ac_init_help" && exit $ac_status
1456 if $ac_init_version; then
1457 cat <<\_ACEOF
1458 emacs configure 23.0.60
1459 generated by GNU Autoconf 2.61
1461 Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
1462 2002, 2003, 2004, 2005, 2006 Free Software Foundation, Inc.
1463 This configure script is free software; the Free Software Foundation
1464 gives unlimited permission to copy, distribute and modify it.
1465 _ACEOF
1466 exit
1468 cat >config.log <<_ACEOF
1469 This file contains any messages produced by compilers while
1470 running configure, to aid debugging if configure makes a mistake.
1472 It was created by emacs $as_me 23.0.60, which was
1473 generated by GNU Autoconf 2.61. Invocation command line was
1475 $ $0 $@
1477 _ACEOF
1478 exec 5>>config.log
1480 cat <<_ASUNAME
1481 ## --------- ##
1482 ## Platform. ##
1483 ## --------- ##
1485 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1486 uname -m = `(uname -m) 2>/dev/null || echo unknown`
1487 uname -r = `(uname -r) 2>/dev/null || echo unknown`
1488 uname -s = `(uname -s) 2>/dev/null || echo unknown`
1489 uname -v = `(uname -v) 2>/dev/null || echo unknown`
1491 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1492 /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
1494 /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
1495 /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
1496 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1497 /usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
1498 /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
1499 /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
1500 /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
1502 _ASUNAME
1504 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1505 for as_dir in $PATH
1507 IFS=$as_save_IFS
1508 test -z "$as_dir" && as_dir=.
1509 echo "PATH: $as_dir"
1510 done
1511 IFS=$as_save_IFS
1513 } >&5
1515 cat >&5 <<_ACEOF
1518 ## ----------- ##
1519 ## Core tests. ##
1520 ## ----------- ##
1522 _ACEOF
1525 # Keep a trace of the command line.
1526 # Strip out --no-create and --no-recursion so they do not pile up.
1527 # Strip out --silent because we don't want to record it for future runs.
1528 # Also quote any args containing shell meta-characters.
1529 # Make two passes to allow for proper duplicate-argument suppression.
1530 ac_configure_args=
1531 ac_configure_args0=
1532 ac_configure_args1=
1533 ac_must_keep_next=false
1534 for ac_pass in 1 2
1536 for ac_arg
1538 case $ac_arg in
1539 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1540 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1541 | -silent | --silent | --silen | --sile | --sil)
1542 continue ;;
1543 *\'*)
1544 ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1545 esac
1546 case $ac_pass in
1547 1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;;
1549 ac_configure_args1="$ac_configure_args1 '$ac_arg'"
1550 if test $ac_must_keep_next = true; then
1551 ac_must_keep_next=false # Got value, back to normal.
1552 else
1553 case $ac_arg in
1554 *=* | --config-cache | -C | -disable-* | --disable-* \
1555 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1556 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1557 | -with-* | --with-* | -without-* | --without-* | --x)
1558 case "$ac_configure_args0 " in
1559 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1560 esac
1562 -* ) ac_must_keep_next=true ;;
1563 esac
1565 ac_configure_args="$ac_configure_args '$ac_arg'"
1567 esac
1568 done
1569 done
1570 $as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; }
1571 $as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; }
1573 # When interrupted or exit'd, cleanup temporary files, and complete
1574 # config.log. We remove comments because anyway the quotes in there
1575 # would cause problems or look ugly.
1576 # WARNING: Use '\'' to represent an apostrophe within the trap.
1577 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
1578 trap 'exit_status=$?
1579 # Save into config.log some information that might help in debugging.
1581 echo
1583 cat <<\_ASBOX
1584 ## ---------------- ##
1585 ## Cache variables. ##
1586 ## ---------------- ##
1587 _ASBOX
1588 echo
1589 # The following way of writing the cache mishandles newlines in values,
1591 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
1592 eval ac_val=\$$ac_var
1593 case $ac_val in #(
1594 *${as_nl}*)
1595 case $ac_var in #(
1596 *_cv_*) { echo "$as_me:$LINENO: WARNING: Cache variable $ac_var contains a newline." >&5
1597 echo "$as_me: WARNING: Cache variable $ac_var contains a newline." >&2;} ;;
1598 esac
1599 case $ac_var in #(
1600 _ | IFS | as_nl) ;; #(
1601 *) $as_unset $ac_var ;;
1602 esac ;;
1603 esac
1604 done
1605 (set) 2>&1 |
1606 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
1607 *${as_nl}ac_space=\ *)
1608 sed -n \
1609 "s/'\''/'\''\\\\'\'''\''/g;
1610 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
1611 ;; #(
1613 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
1615 esac |
1616 sort
1618 echo
1620 cat <<\_ASBOX
1621 ## ----------------- ##
1622 ## Output variables. ##
1623 ## ----------------- ##
1624 _ASBOX
1625 echo
1626 for ac_var in $ac_subst_vars
1628 eval ac_val=\$$ac_var
1629 case $ac_val in
1630 *\'\''*) ac_val=`echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1631 esac
1632 echo "$ac_var='\''$ac_val'\''"
1633 done | sort
1634 echo
1636 if test -n "$ac_subst_files"; then
1637 cat <<\_ASBOX
1638 ## ------------------- ##
1639 ## File substitutions. ##
1640 ## ------------------- ##
1641 _ASBOX
1642 echo
1643 for ac_var in $ac_subst_files
1645 eval ac_val=\$$ac_var
1646 case $ac_val in
1647 *\'\''*) ac_val=`echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1648 esac
1649 echo "$ac_var='\''$ac_val'\''"
1650 done | sort
1651 echo
1654 if test -s confdefs.h; then
1655 cat <<\_ASBOX
1656 ## ----------- ##
1657 ## confdefs.h. ##
1658 ## ----------- ##
1659 _ASBOX
1660 echo
1661 cat confdefs.h
1662 echo
1664 test "$ac_signal" != 0 &&
1665 echo "$as_me: caught signal $ac_signal"
1666 echo "$as_me: exit $exit_status"
1667 } >&5
1668 rm -f core *.core core.conftest.* &&
1669 rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
1670 exit $exit_status
1672 for ac_signal in 1 2 13 15; do
1673 trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
1674 done
1675 ac_signal=0
1677 # confdefs.h avoids OS command line length limits that DEFS can exceed.
1678 rm -f -r conftest* confdefs.h
1680 # Predefined preprocessor variables.
1682 cat >>confdefs.h <<_ACEOF
1683 #define PACKAGE_NAME "$PACKAGE_NAME"
1684 _ACEOF
1687 cat >>confdefs.h <<_ACEOF
1688 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
1689 _ACEOF
1692 cat >>confdefs.h <<_ACEOF
1693 #define PACKAGE_VERSION "$PACKAGE_VERSION"
1694 _ACEOF
1697 cat >>confdefs.h <<_ACEOF
1698 #define PACKAGE_STRING "$PACKAGE_STRING"
1699 _ACEOF
1702 cat >>confdefs.h <<_ACEOF
1703 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
1704 _ACEOF
1707 # Let the site file select an alternate cache file if it wants to.
1708 # Prefer explicitly selected file to automatically selected ones.
1709 if test -n "$CONFIG_SITE"; then
1710 set x "$CONFIG_SITE"
1711 elif test "x$prefix" != xNONE; then
1712 set x "$prefix/share/config.site" "$prefix/etc/config.site"
1713 else
1714 set x "$ac_default_prefix/share/config.site" \
1715 "$ac_default_prefix/etc/config.site"
1717 shift
1718 for ac_site_file
1720 if test -r "$ac_site_file"; then
1721 { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
1722 echo "$as_me: loading site script $ac_site_file" >&6;}
1723 sed 's/^/| /' "$ac_site_file" >&5
1724 . "$ac_site_file"
1726 done
1728 if test -r "$cache_file"; then
1729 # Some versions of bash will fail to source /dev/null (special
1730 # files actually), so we avoid doing that.
1731 if test -f "$cache_file"; then
1732 { echo "$as_me:$LINENO: loading cache $cache_file" >&5
1733 echo "$as_me: loading cache $cache_file" >&6;}
1734 case $cache_file in
1735 [\\/]* | ?:[\\/]* ) . "$cache_file";;
1736 *) . "./$cache_file";;
1737 esac
1739 else
1740 { echo "$as_me:$LINENO: creating cache $cache_file" >&5
1741 echo "$as_me: creating cache $cache_file" >&6;}
1742 >$cache_file
1745 ac_header_list="$ac_header_list sys/time.h"
1746 ac_header_list="$ac_header_list unistd.h"
1747 ac_func_list="$ac_func_list alarm"
1748 # Check that the precious variables saved in the cache have kept the same
1749 # value.
1750 ac_cache_corrupted=false
1751 for ac_var in $ac_precious_vars; do
1752 eval ac_old_set=\$ac_cv_env_${ac_var}_set
1753 eval ac_new_set=\$ac_env_${ac_var}_set
1754 eval ac_old_val=\$ac_cv_env_${ac_var}_value
1755 eval ac_new_val=\$ac_env_${ac_var}_value
1756 case $ac_old_set,$ac_new_set in
1757 set,)
1758 { echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
1759 echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
1760 ac_cache_corrupted=: ;;
1761 ,set)
1762 { echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5
1763 echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
1764 ac_cache_corrupted=: ;;
1765 ,);;
1767 if test "x$ac_old_val" != "x$ac_new_val"; then
1768 { echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
1769 echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
1770 { echo "$as_me:$LINENO: former value: $ac_old_val" >&5
1771 echo "$as_me: former value: $ac_old_val" >&2;}
1772 { echo "$as_me:$LINENO: current value: $ac_new_val" >&5
1773 echo "$as_me: current value: $ac_new_val" >&2;}
1774 ac_cache_corrupted=:
1775 fi;;
1776 esac
1777 # Pass precious variables to config.status.
1778 if test "$ac_new_set" = set; then
1779 case $ac_new_val in
1780 *\'*) ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
1781 *) ac_arg=$ac_var=$ac_new_val ;;
1782 esac
1783 case " $ac_configure_args " in
1784 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
1785 *) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
1786 esac
1788 done
1789 if $ac_cache_corrupted; then
1790 { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
1791 echo "$as_me: error: changes in the environment can compromise the build" >&2;}
1792 { { echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
1793 echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
1794 { (exit 1); exit 1; }; }
1821 ac_ext=c
1822 ac_cpp='$CPP $CPPFLAGS'
1823 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1824 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1825 ac_compiler_gnu=$ac_cv_c_compiler_gnu
1828 ac_config_headers="$ac_config_headers src/config.h:src/config.in"
1832 test "$program_prefix" != NONE &&
1833 program_transform_name="s&^&$program_prefix&;$program_transform_name"
1834 # Use a double $ so make ignores it.
1835 test "$program_suffix" != NONE &&
1836 program_transform_name="s&\$&$program_suffix&;$program_transform_name"
1837 # Double any \ or $. echo might interpret backslashes.
1838 # By default was `s,x,x', remove it if useless.
1839 cat <<\_ACEOF >conftest.sed
1840 s/[\\$]/&&/g;s/;s,x,x,$//
1841 _ACEOF
1842 program_transform_name=`echo $program_transform_name | sed -f conftest.sed`
1843 rm -f conftest.sed
1846 lispdir='${datadir}/emacs/${version}/lisp'
1847 locallisppath='${datadir}/emacs/${version}/site-lisp:'\
1848 '${datadir}/emacs/site-lisp'
1849 lisppath='${locallisppath}:${lispdir}:${datadir}/emacs/${version}/leim'
1850 etcdir='${datadir}/emacs/${version}/etc'
1851 archlibdir='${libexecdir}/emacs/${version}/${configuration}'
1852 docdir='${datadir}/emacs/${version}/etc'
1853 gamedir='${localstatedir}/games/emacs'
1855 gameuser=games
1860 # Check whether --with-pop was given.
1861 if test "${with_pop+set}" = set; then
1862 withval=$with_pop;
1863 else
1864 with_pop=yes
1867 if test "$with_pop" = yes; then
1868 cat >>confdefs.h <<\_ACEOF
1869 #define MAIL_USE_POP 1
1870 _ACEOF
1876 # Check whether --with-kerberos was given.
1877 if test "${with_kerberos+set}" = set; then
1878 withval=$with_kerberos;
1879 else
1880 with_kerberos=no
1883 if test "$with_kerberos" = yes; then
1884 cat >>confdefs.h <<\_ACEOF
1885 #define KERBEROS 1
1886 _ACEOF
1892 # Check whether --with-kerberos5 was given.
1893 if test "${with_kerberos5+set}" = set; then
1894 withval=$with_kerberos5;
1895 else
1896 with_kerberos5=no
1899 if test "${with_kerberos5}" = yes; then
1900 if test "${with_kerberos}" != yes; then
1901 with_kerberos=yes
1902 cat >>confdefs.h <<\_ACEOF
1903 #define KERBEROS 1
1904 _ACEOF
1908 cat >>confdefs.h <<\_ACEOF
1909 #define KERBEROS5 1
1910 _ACEOF
1915 # Check whether --with-hesiod was given.
1916 if test "${with_hesiod+set}" = set; then
1917 withval=$with_hesiod;
1918 else
1919 with_hesiod=no
1922 if test "$with_hesiod" = yes; then
1924 cat >>confdefs.h <<\_ACEOF
1925 #define HESIOD 1
1926 _ACEOF
1931 # Check whether --with-sound was given.
1932 if test "${with_sound+set}" = set; then
1933 withval=$with_sound;
1934 else
1935 with_sound=yes
1940 # Check whether --with-sync-input was given.
1941 if test "${with_sync_input+set}" = set; then
1942 withval=$with_sync_input;
1943 else
1944 with_sync_input=yes
1947 if test "$with_sync_input" = yes; then
1949 cat >>confdefs.h <<\_ACEOF
1950 #define SYNC_INPUT 1
1951 _ACEOF
1956 # Check whether --with-x-toolkit was given.
1957 if test "${with_x_toolkit+set}" = set; then
1958 withval=$with_x_toolkit; case "${withval}" in
1959 y | ye | yes ) val=gtk ;;
1960 n | no ) val=no ;;
1961 l | lu | luc | luci | lucid ) val=lucid ;;
1962 a | at | ath | athe | athen | athena ) val=athena ;;
1963 m | mo | mot | moti | motif ) val=motif ;;
1964 g | gt | gtk ) val=gtk ;;
1966 { { echo "$as_me:$LINENO: error: \`--with-x-toolkit=$withval' is invalid;
1967 this option's value should be \`yes', \`no', \`lucid', \`athena', \`motif' or \`gtk'.
1968 \`yes' and \`gtk' are synonyms. \`athena' and \`lucid' are synonyms." >&5
1969 echo "$as_me: error: \`--with-x-toolkit=$withval' is invalid;
1970 this option's value should be \`yes', \`no', \`lucid', \`athena', \`motif' or \`gtk'.
1971 \`yes' and \`gtk' are synonyms. \`athena' and \`lucid' are synonyms." >&2;}
1972 { (exit 1); exit 1; }; }
1974 esac
1975 with_x_toolkit=$val
1981 # Check whether --with-xpm was given.
1982 if test "${with_xpm+set}" = set; then
1983 withval=$with_xpm;
1984 else
1985 with_xpm=yes
1989 # Check whether --with-jpeg was given.
1990 if test "${with_jpeg+set}" = set; then
1991 withval=$with_jpeg;
1992 else
1993 with_jpeg=yes
1997 # Check whether --with-tiff was given.
1998 if test "${with_tiff+set}" = set; then
1999 withval=$with_tiff;
2000 else
2001 with_tiff=yes
2005 # Check whether --with-gif was given.
2006 if test "${with_gif+set}" = set; then
2007 withval=$with_gif;
2008 else
2009 with_gif=yes
2013 # Check whether --with-png was given.
2014 if test "${with_png+set}" = set; then
2015 withval=$with_png;
2016 else
2017 with_png=yes
2021 # Check whether --with-rsvg was given.
2022 if test "${with_rsvg+set}" = set; then
2023 withval=$with_rsvg;
2024 else
2025 with_rsvg=yes
2030 # Check whether --with-freetype was given.
2031 if test "${with_freetype+set}" = set; then
2032 withval=$with_freetype;
2033 else
2034 with_freetype=yes
2038 # Check whether --with-xft was given.
2039 if test "${with_xft+set}" = set; then
2040 withval=$with_xft;
2041 else
2042 with_xft=yes
2046 # Check whether --with-libotf was given.
2047 if test "${with_libotf+set}" = set; then
2048 withval=$with_libotf;
2049 else
2050 with_libotf=yes
2054 # Check whether --with-m17n-flt was given.
2055 if test "${with_m17n_flt+set}" = set; then
2056 withval=$with_m17n_flt;
2057 else
2058 with_m17n_flt=yes
2063 # Check whether --with-toolkit-scroll-bars was given.
2064 if test "${with_toolkit_scroll_bars+set}" = set; then
2065 withval=$with_toolkit_scroll_bars;
2066 else
2067 with_toolkit_scroll_bars=yes
2071 # Check whether --with-xaw3d was given.
2072 if test "${with_xaw3d+set}" = set; then
2073 withval=$with_xaw3d;
2074 else
2075 with_xaw3d=yes
2079 # Check whether --with-xim was given.
2080 if test "${with_xim+set}" = set; then
2081 withval=$with_xim;
2082 else
2083 with_xim=yes
2087 # Check whether --with-carbon was given.
2088 if test "${with_carbon+set}" = set; then
2089 withval=$with_carbon;
2090 else
2091 with_carbon=no
2095 # Check whether --with-ns was given.
2096 if test "${with_ns+set}" = set; then
2097 withval=$with_ns;
2098 else
2099 with_ns=no
2104 # Check whether --with-gpm was given.
2105 if test "${with_gpm+set}" = set; then
2106 withval=$with_gpm;
2107 else
2108 with_gpm=yes
2112 # Check whether --with-dbus was given.
2113 if test "${with_dbus+set}" = set; then
2114 withval=$with_dbus;
2115 else
2116 with_dbus=yes
2120 ## For the times when you want to build Emacs but don't have
2121 ## a suitable makeinfo, and can live without the manuals.
2123 # Check whether --with-makeinfo was given.
2124 if test "${with_makeinfo+set}" = set; then
2125 withval=$with_makeinfo;
2126 else
2127 with_makeinfo=yes
2132 # Check whether --with-gtk was given.
2133 if test "${with_gtk+set}" = set; then
2134 withval=$with_gtk; { { echo "$as_me:$LINENO: error: --with-gtk has been removed. Use --with-x-toolkit to
2135 specify a toolkit." >&5
2136 echo "$as_me: error: --with-gtk has been removed. Use --with-x-toolkit to
2137 specify a toolkit." >&2;}
2138 { (exit 1); exit 1; }; }
2143 # Check whether --with-gcc was given.
2144 if test "${with_gcc+set}" = set; then
2145 withval=$with_gcc; { { echo "$as_me:$LINENO: error: --with-gcc has been removed. Set the \`CC' environment
2146 variable to specify a compiler." >&5
2147 echo "$as_me: error: --with-gcc has been removed. Set the \`CC' environment
2148 variable to specify a compiler." >&2;}
2149 { (exit 1); exit 1; }; }
2154 # Check whether --with-pkg-config-prog was given.
2155 if test "${with_pkg_config_prog+set}" = set; then
2156 withval=$with_pkg_config_prog;
2159 if test "X${with_pkg_config_prog}" != X; then
2160 if test "${with_pkg_config_prog}" != yes; then
2161 PKG_CONFIG="${with_pkg_config_prog}"
2165 # Check whether --enable-carbon-app was given.
2166 if test "${enable_carbon_app+set}" = set; then
2167 enableval=$enable_carbon_app; carbon_appdir_x=${enableval}
2171 # Check whether --enable-ns-app was given.
2172 if test "${enable_ns_app+set}" = set; then
2173 enableval=$enable_ns_app; ns_appdir_x=${enableval}
2177 # Check whether --enable-cocoa-experimental-ctrl-g was given.
2178 if test "${enable_cocoa_experimental_ctrl_g+set}" = set; then
2179 enableval=$enable_cocoa_experimental_ctrl_g; EN_COCOA_EXPERIMENTAL_CTRL_G=yes
2180 else
2181 EN_COCOA_EXPERIMENTAL_CTRL_G=no
2185 # Check whether --enable-asserts was given.
2186 if test "${enable_asserts+set}" = set; then
2187 enableval=$enable_asserts; USE_XASSERTS=$enableval
2188 else
2189 USE_XASSERTS=no
2193 # Check whether --enable-maintainer-mode was given.
2194 if test "${enable_maintainer_mode+set}" = set; then
2195 enableval=$enable_maintainer_mode; USE_MAINTAINER_MODE=$enableval
2196 else
2197 USE_MAINTAINER_MODE=no
2200 if test $USE_MAINTAINER_MODE = yes; then
2201 MAINT=
2202 else
2203 MAINT=#
2207 # Check whether --enable-locallisppath was given.
2208 if test "${enable_locallisppath+set}" = set; then
2209 enableval=$enable_locallisppath; if test "${enableval}" = "no"; then
2210 locallisppath=
2211 elif test "${enableval}" != "yes"; then
2212 locallisppath=${enableval}
2217 #### Make srcdir absolute, if it isn't already. It's important to
2218 #### avoid running the path through pwd unnecessarily, since pwd can
2219 #### give you automounter prefixes, which can go away. We do all this
2220 #### so Emacs can find its files when run uninstalled.
2221 ## Make sure CDPATH doesn't affect cd (in case PWD is relative).
2222 unset CDPATH
2223 case "${srcdir}" in
2224 /* ) ;;
2226 ## We may be able to use the $PWD environment variable to make this
2227 ## absolute. But sometimes PWD is inaccurate.
2228 ## Note: we used to use ${PWD} at the end instead of `pwd`,
2229 ## but that tested only for a well-formed and valid PWD,
2230 ## it did not object when PWD was well-formed and valid but just wrong.
2231 if test ".${PWD}" != "." && test ".`(cd ${PWD} ; sh -c pwd)`" = ".`pwd`" ;
2232 then
2233 srcdir="$PWD"
2234 else
2235 srcdir="`(cd ${srcdir}; pwd)`"
2238 * ) srcdir="`(cd ${srcdir}; pwd)`" ;;
2239 esac
2241 #### Check if the source directory already has a configured system in it.
2242 if test `pwd` != `(cd ${srcdir} && pwd)` \
2243 && test -f "${srcdir}/src/config.h" ; then
2244 { echo "$as_me:$LINENO: WARNING: The directory tree \`${srcdir}' is being used
2245 as a build directory right now; it has been configured in its own
2246 right. To configure in another directory as well, you MUST
2247 use GNU make. If you do not have GNU make, then you must
2248 now do \`make distclean' in ${srcdir},
2249 and then run $0 again." >&5
2250 echo "$as_me: WARNING: The directory tree \`${srcdir}' is being used
2251 as a build directory right now; it has been configured in its own
2252 right. To configure in another directory as well, you MUST
2253 use GNU make. If you do not have GNU make, then you must
2254 now do \`make distclean' in ${srcdir},
2255 and then run $0 again." >&2;}
2258 #### Given the configuration name, set machfile and opsysfile to the
2259 #### names of the m/*.h and s/*.h files we should use.
2261 ### Canonicalize the configuration name.
2263 ac_aux_dir=
2264 for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do
2265 if test -f "$ac_dir/install-sh"; then
2266 ac_aux_dir=$ac_dir
2267 ac_install_sh="$ac_aux_dir/install-sh -c"
2268 break
2269 elif test -f "$ac_dir/install.sh"; then
2270 ac_aux_dir=$ac_dir
2271 ac_install_sh="$ac_aux_dir/install.sh -c"
2272 break
2273 elif test -f "$ac_dir/shtool"; then
2274 ac_aux_dir=$ac_dir
2275 ac_install_sh="$ac_aux_dir/shtool install -c"
2276 break
2278 done
2279 if test -z "$ac_aux_dir"; then
2280 { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" >&5
2281 echo "$as_me: error: cannot find install-sh or install.sh in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" >&2;}
2282 { (exit 1); exit 1; }; }
2285 # These three variables are undocumented and unsupported,
2286 # and are intended to be withdrawn in a future Autoconf release.
2287 # They can cause serious problems if a builder's source tree is in a directory
2288 # whose full name contains unusual characters.
2289 ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
2290 ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
2291 ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var.
2294 # Make sure we can run config.sub.
2295 $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
2296 { { echo "$as_me:$LINENO: error: cannot run $SHELL $ac_aux_dir/config.sub" >&5
2297 echo "$as_me: error: cannot run $SHELL $ac_aux_dir/config.sub" >&2;}
2298 { (exit 1); exit 1; }; }
2300 { echo "$as_me:$LINENO: checking build system type" >&5
2301 echo $ECHO_N "checking build system type... $ECHO_C" >&6; }
2302 if test "${ac_cv_build+set}" = set; then
2303 echo $ECHO_N "(cached) $ECHO_C" >&6
2304 else
2305 ac_build_alias=$build_alias
2306 test "x$ac_build_alias" = x &&
2307 ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
2308 test "x$ac_build_alias" = x &&
2309 { { echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5
2310 echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
2311 { (exit 1); exit 1; }; }
2312 ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
2313 { { echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&5
2314 echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&2;}
2315 { (exit 1); exit 1; }; }
2318 { echo "$as_me:$LINENO: result: $ac_cv_build" >&5
2319 echo "${ECHO_T}$ac_cv_build" >&6; }
2320 case $ac_cv_build in
2321 *-*-*) ;;
2322 *) { { echo "$as_me:$LINENO: error: invalid value of canonical build" >&5
2323 echo "$as_me: error: invalid value of canonical build" >&2;}
2324 { (exit 1); exit 1; }; };;
2325 esac
2326 build=$ac_cv_build
2327 ac_save_IFS=$IFS; IFS='-'
2328 set x $ac_cv_build
2329 shift
2330 build_cpu=$1
2331 build_vendor=$2
2332 shift; shift
2333 # Remember, the first character of IFS is used to create $*,
2334 # except with old shells:
2335 build_os=$*
2336 IFS=$ac_save_IFS
2337 case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
2340 { echo "$as_me:$LINENO: checking host system type" >&5
2341 echo $ECHO_N "checking host system type... $ECHO_C" >&6; }
2342 if test "${ac_cv_host+set}" = set; then
2343 echo $ECHO_N "(cached) $ECHO_C" >&6
2344 else
2345 if test "x$host_alias" = x; then
2346 ac_cv_host=$ac_cv_build
2347 else
2348 ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
2349 { { echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&5
2350 echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&2;}
2351 { (exit 1); exit 1; }; }
2355 { echo "$as_me:$LINENO: result: $ac_cv_host" >&5
2356 echo "${ECHO_T}$ac_cv_host" >&6; }
2357 case $ac_cv_host in
2358 *-*-*) ;;
2359 *) { { echo "$as_me:$LINENO: error: invalid value of canonical host" >&5
2360 echo "$as_me: error: invalid value of canonical host" >&2;}
2361 { (exit 1); exit 1; }; };;
2362 esac
2363 host=$ac_cv_host
2364 ac_save_IFS=$IFS; IFS='-'
2365 set x $ac_cv_host
2366 shift
2367 host_cpu=$1
2368 host_vendor=$2
2369 shift; shift
2370 # Remember, the first character of IFS is used to create $*,
2371 # except with old shells:
2372 host_os=$*
2373 IFS=$ac_save_IFS
2374 case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
2377 canonical=$host
2378 configuration=${host_alias-${build_alias-$host}}
2382 ### If you add support for a new configuration, add code to this
2383 ### switch statement to recognize your configuration name and select
2384 ### the appropriate operating system and machine description files.
2386 ### You would hope that you could choose an m/*.h file pretty much
2387 ### based on the machine portion of the configuration name, and an s-
2388 ### file based on the operating system portion. However, it turns out
2389 ### that each m/*.h file is pretty manufacturer-specific - for
2390 ### example mips.h is MIPS
2391 ### So we basically have to have a special case for each
2392 ### configuration name.
2394 ### As far as handling version numbers on operating systems is
2395 ### concerned, make sure things will fail in a fixable way. If
2396 ### /etc/MACHINES doesn't say anything about version numbers, be
2397 ### prepared to handle anything reasonably. If version numbers
2398 ### matter, be sure /etc/MACHINES says something about it.
2400 ### Eric Raymond says we should accept strings like "sysvr4" to mean
2401 ### "System V Release 4"; he writes, "The old convention encouraged
2402 ### confusion between `system' and `release' levels'."
2404 machine='' opsys='' unported=no
2405 case "${canonical}" in
2407 ## FreeBSD ports
2408 *-*-freebsd* )
2409 opsys=freebsd
2410 case "${canonical}" in
2411 alpha*-*-freebsd*) machine=alpha ;;
2412 arm*-*-freebsd*) machine=arm ;;
2413 ia64-*-freebsd*) machine=ia64 ;;
2414 sparc-*-freebsd*) machine=sparc ;;
2415 sparc64-*-freebsd*) machine=sparc ;;
2416 powerpc-*-freebsd*) machine=macppc ;;
2417 i[3456]86-*-freebsd*) machine=intel386 ;;
2418 amd64-*-freebsd*|x86_64-*-freebsd*) machine=amdx86-64 ;;
2419 esac
2422 ## FreeBSD kernel + glibc based userland
2423 *-*-kfreebsd*gnu* )
2424 opsys=gnu-kfreebsd
2425 case "${canonical}" in
2426 alpha*-*-kfreebsd*) machine=alpha ;;
2427 ia64-*-kfreebsd*) machine=ia64 ;;
2428 sparc-*-kfreebsd*) machine=sparc ;;
2429 sparc64-*-kfreebsd*) machine=sparc ;;
2430 powerpc-*-kfreebsd*) machine=macppc ;;
2431 i[3456]86-*-kfreebsd*) machine=intel386 ;;
2432 amd64-*-kfreebsd*|x86_64-*-kfreebsd*) machine=amdx86-64 ;;
2433 esac
2436 ## NetBSD ports
2437 *-*-netbsd* )
2438 opsys=netbsd
2439 if test -f /usr/lib/crti.o; then
2441 cat >>confdefs.h <<\_ACEOF
2442 #define HAVE_CRTIN
2443 _ACEOF
2447 case "${canonical}" in
2448 alpha*-*-netbsd*) machine=alpha ;;
2449 i[3456]86-*-netbsd*) machine=intel386 ;;
2450 powerpc-*-netbsd*) machine=macppc ;;
2451 sparc*-*-netbsd*) machine=sparc ;;
2452 vax-*-netbsd*) machine=vax ;;
2453 arm-*-netbsd*) machine=arm ;;
2454 x86_64-*-netbsd*) machine=amdx86-64 ;;
2455 hppa-*-netbsd*) machine=hp800 ;;
2456 esac
2459 ## OpenBSD ports
2460 *-*-openbsd* )
2461 opsys=openbsd
2462 case "${canonical}" in
2463 alpha*-*-openbsd*) machine=alpha ;;
2464 arm-*-openbsd*) machine=arm ;;
2465 i386-*-openbsd*) machine=intel386 ;;
2466 powerpc-*-openbsd*) machine=macppc ;;
2467 sparc*-*-openbsd*) machine=sparc ;;
2468 vax-*-openbsd*) machine=vax ;;
2469 x86_64-*-openbsd*) machine=amdx86-64 ;;
2470 esac
2473 ## LynxOS ports
2474 *-*-lynxos* )
2475 opsys=lynxos
2476 case "${canonical}" in
2477 i[3456]86-*-lynxos*) machine=intel386 ;;
2478 powerpc-*-lynxos*) machine=powerpc ;;
2479 esac
2482 alpha*-*-linux-gnu* )
2483 machine=alpha opsys=gnu-linux
2486 arm*-*-linux-gnu* )
2487 machine=arm opsys=gnu-linux
2490 ## Apple Darwin / Mac OS X
2491 *-apple-darwin* )
2492 case "${canonical}" in
2493 i[3456]86-* ) machine=intel386 ;;
2494 powerpc-* ) machine=macppc ;;
2495 * ) unported=yes ;;
2496 esac
2497 opsys=darwin
2498 # Define CPP as follows to make autoconf work correctly.
2499 CPP="${CC-cc} -E -no-cpp-precomp"
2500 # Use fink packages if available.
2501 if test -d /sw/include && test -d /sw/lib; then
2502 GCC_TEST_OPTIONS="-I/sw/include -L/sw/lib"
2503 CPP="${CPP} ${GCC_TEST_OPTIONS}"
2504 NON_GCC_TEST_OPTIONS=${GCC_TEST_OPTIONS}
2508 ## HP 9000 series 700 and 800, running HP/UX
2509 hppa*-hp-hpux10.2* )
2510 machine=hp800 opsys=hpux10-20
2512 hppa*-hp-hpux1[1-9]* )
2513 machine=hp800 opsys=hpux11
2514 CFLAGS="-D_INCLUDE__STDC_A1_SOURCE $CFLAGS"
2517 hppa*-*-linux-gnu* )
2518 machine=hp800 opsys=gnu-linux
2521 ## IBM machines
2522 s390-*-linux-gnu* )
2523 machine=ibms390 opsys=gnu-linux
2525 s390x-*-linux-gnu* )
2526 machine=ibms390x opsys=gnu-linux
2528 rs6000-ibm-aix4.2* | powerpc-ibm-aix4.2* )
2529 machine=ibmrs6000 opsys=aix4-2
2531 rs6000-ibm-aix4.3* | powerpc-ibm-aix4.3* )
2532 machine=ibmrs6000 opsys=aix4-2
2534 rs6000-ibm-aix5* | powerpc-ibm-aix5* )
2535 machine=ibmrs6000 opsys=aix4-2
2537 rs6000-ibm-aix5* | powerpc-ibm-aix6* )
2538 machine=ibmrs6000 opsys=aix4-2
2541 ## Macintosh PowerPC
2542 powerpc*-*-linux-gnu* )
2543 machine=macppc opsys=gnu-linux
2546 ## Silicon Graphics machines
2547 ## Iris 4D
2548 mips-sgi-irix6.5 )
2549 machine=iris4d opsys=irix6-5
2550 # Without defining _LANGUAGE_C, things get masked out in the headers
2551 # so that, for instance, grepping for `free' in stdlib.h fails and
2552 # AC_HEADER_STD_C fails. (MIPSPro 7.2.1.2m compilers, Irix 6.5.3m).
2553 NON_GNU_CPP="/lib/cpp -D_LANGUAGE_C"
2554 NON_GCC_TEST_OPTIONS="-D_LANGUAGE_C"
2557 ## Suns
2558 sparc-*-linux-gnu* | sparc64-*-linux-gnu* )
2559 machine=sparc opsys=gnu-linux
2562 *-sun-solaris* \
2563 | i[3456]86-*-solaris2* | i[3456]86-*-sunos5* | powerpc*-*-solaris2* \
2564 | rs6000-*-solaris2*)
2565 case "${canonical}" in
2566 i[3456]86-*-* ) machine=intel386 ;;
2567 amd64-*-*|x86_64-*-*) machine=amdx86-64 ;;
2568 powerpc* | rs6000* ) machine=ibmrs6000 ;;
2569 sparc* ) machine=sparc ;;
2570 * ) unported=yes ;;
2571 esac
2572 case "${canonical}" in
2573 *-sunos5.3* | *-solaris2.3* )
2574 opsys=sol2-3
2575 NON_GNU_CPP=/usr/ccs/lib/cpp
2577 *-sunos5.4* | *-solaris2.4* )
2578 opsys=sol2-4
2579 NON_GNU_CPP=/usr/ccs/lib/cpp
2580 RANLIB="ar -ts"
2582 *-sunos5.5* | *-solaris2.5* )
2583 opsys=sol2-5
2584 NON_GNU_CPP=/usr/ccs/lib/cpp
2585 RANLIB="ar -ts"
2587 *-sunos5.6* | *-solaris2.6* )
2588 opsys=sol2-6
2589 NON_GNU_CPP=/usr/ccs/lib/cpp
2590 RANLIB="ar -ts"
2592 *-sunos5* | *-solaris* )
2593 opsys=sol2-6
2594 emacs_check_sunpro_c=yes
2595 NON_GNU_CPP=/usr/ccs/lib/cpp
2597 esac
2598 ## Watch out for a compiler that we know will not work.
2599 case "${canonical}" in
2600 *-solaris* | *-sunos5* )
2601 if [ "x$CC" = x/usr/ucb/cc ]; then
2602 ## /usr/ucb/cc doesn't work;
2603 ## we should find some other compiler that does work.
2604 unset CC
2607 *) ;;
2608 esac
2611 ## Vaxen.
2612 vax-dec-* )
2613 machine=vax
2614 case "${canonical}" in
2615 *-vms* ) opsys=vms ;;
2616 * ) unported=yes
2617 esac
2620 ## IA-64
2621 ia64*-*-linux* )
2622 machine=ia64 opsys=gnu-linux
2625 ## Intel 386 machines where we don't care about the manufacturer
2626 i[3456]86-*-* )
2627 machine=intel386
2628 case "${canonical}" in
2629 *-cygwin ) opsys=cygwin ;;
2630 *-darwin* ) opsys=darwin
2631 CPP="${CC-cc} -E -no-cpp-precomp"
2633 *-linux-gnu* ) opsys=gnu-linux ;;
2634 *-sysv4.2uw* ) opsys=unixware; NON_GNU_CPP=/lib/cpp ;;
2635 *-sysv5uw* ) opsys=unixware; NON_GNU_CPP=/lib/cpp ;;
2636 *-sysv5OpenUNIX* ) opsys=unixware; NON_GNU_CPP=/lib/cpp ;;
2637 ## Otherwise, we'll fall through to the generic opsys code at the bottom.
2638 esac
2641 ## m68k Linux-based GNU system
2642 m68k-*-linux-gnu* )
2643 machine=m68k opsys=gnu-linux
2646 ## Mips Linux-based GNU system
2647 mips-*-linux-gnu* | mipsel-*-linux-gnu* )
2648 machine=mips opsys=gnu-linux
2651 ## AMD x86-64 Linux-based GNU system
2652 x86_64-*-linux-gnu* )
2653 machine=amdx86-64 opsys=gnu-linux
2656 ## Tensilica Xtensa Linux-based GNU system
2657 xtensa*-*-linux-gnu* )
2658 machine=xtensa opsys=gnu-linux
2662 unported=yes
2664 esac
2666 ### If the code above didn't choose an operating system, just choose
2667 ### an operating system based on the configuration name. You really
2668 ### only want to use this when you have no idea what the right
2669 ### operating system is; if you know what operating systems a machine
2670 ### runs, it's cleaner to make it explicit in the case statement
2671 ### above.
2672 if test x"${opsys}" = x; then
2673 case "${canonical}" in
2674 *-gnu* ) opsys=gnu ;;
2675 *-sysv4.2uw* ) opsys=unixware ;;
2676 *-sysv5uw* ) opsys=unixware ;;
2677 *-sysv5OpenUNIX* ) opsys=unixware ;;
2678 *-sysv4.1* | *-sysvr4.1* )
2679 NON_GNU_CPP=/usr/lib/cpp
2680 opsys=usg5-4 ;;
2681 *-sysv4.[2-9]* | *-sysvr4.[2-9]* )
2682 if [ x$NON_GNU_CPP = x ]; then
2683 if [ -f /usr/ccs/lib/cpp ]; then
2684 NON_GNU_CPP=/usr/ccs/lib/cpp
2685 else
2686 NON_GNU_CPP=/lib/cpp
2689 opsys=usg5-4-2 ;;
2690 *-sysv4* | *-sysvr4* ) opsys=usg5-4 ;;
2692 unported=yes
2694 esac
2699 if test $unported = yes; then
2700 { { echo "$as_me:$LINENO: error: Emacs hasn't been ported to \`${canonical}' systems.
2701 Check \`etc/MACHINES' for recognized configuration names." >&5
2702 echo "$as_me: error: Emacs hasn't been ported to \`${canonical}' systems.
2703 Check \`etc/MACHINES' for recognized configuration names." >&2;}
2704 { (exit 1); exit 1; }; }
2707 machfile="m/${machine}.h"
2708 opsysfile="s/${opsys}.h"
2711 #### Choose a compiler.
2712 test -n "$CC" && cc_specified=yes
2714 # Save the value of CFLAGS that the user specified.
2715 SPECIFIED_CFLAGS="$CFLAGS"
2717 ac_ext=c
2718 ac_cpp='$CPP $CPPFLAGS'
2719 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2720 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2721 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2722 if test -n "$ac_tool_prefix"; then
2723 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
2724 set dummy ${ac_tool_prefix}gcc; ac_word=$2
2725 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2726 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2727 if test "${ac_cv_prog_CC+set}" = set; then
2728 echo $ECHO_N "(cached) $ECHO_C" >&6
2729 else
2730 if test -n "$CC"; then
2731 ac_cv_prog_CC="$CC" # Let the user override the test.
2732 else
2733 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2734 for as_dir in $PATH
2736 IFS=$as_save_IFS
2737 test -z "$as_dir" && as_dir=.
2738 for ac_exec_ext in '' $ac_executable_extensions; do
2739 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2740 ac_cv_prog_CC="${ac_tool_prefix}gcc"
2741 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2742 break 2
2744 done
2745 done
2746 IFS=$as_save_IFS
2750 CC=$ac_cv_prog_CC
2751 if test -n "$CC"; then
2752 { echo "$as_me:$LINENO: result: $CC" >&5
2753 echo "${ECHO_T}$CC" >&6; }
2754 else
2755 { echo "$as_me:$LINENO: result: no" >&5
2756 echo "${ECHO_T}no" >&6; }
2761 if test -z "$ac_cv_prog_CC"; then
2762 ac_ct_CC=$CC
2763 # Extract the first word of "gcc", so it can be a program name with args.
2764 set dummy gcc; ac_word=$2
2765 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2766 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2767 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2768 echo $ECHO_N "(cached) $ECHO_C" >&6
2769 else
2770 if test -n "$ac_ct_CC"; then
2771 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2772 else
2773 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2774 for as_dir in $PATH
2776 IFS=$as_save_IFS
2777 test -z "$as_dir" && as_dir=.
2778 for ac_exec_ext in '' $ac_executable_extensions; do
2779 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2780 ac_cv_prog_ac_ct_CC="gcc"
2781 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2782 break 2
2784 done
2785 done
2786 IFS=$as_save_IFS
2790 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2791 if test -n "$ac_ct_CC"; then
2792 { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2793 echo "${ECHO_T}$ac_ct_CC" >&6; }
2794 else
2795 { echo "$as_me:$LINENO: result: no" >&5
2796 echo "${ECHO_T}no" >&6; }
2799 if test "x$ac_ct_CC" = x; then
2800 CC=""
2801 else
2802 case $cross_compiling:$ac_tool_warned in
2803 yes:)
2804 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
2805 whose name does not start with the host triplet. If you think this
2806 configuration is useful to you, please write to autoconf@gnu.org." >&5
2807 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
2808 whose name does not start with the host triplet. If you think this
2809 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
2810 ac_tool_warned=yes ;;
2811 esac
2812 CC=$ac_ct_CC
2814 else
2815 CC="$ac_cv_prog_CC"
2818 if test -z "$CC"; then
2819 if test -n "$ac_tool_prefix"; then
2820 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
2821 set dummy ${ac_tool_prefix}cc; ac_word=$2
2822 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2823 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2824 if test "${ac_cv_prog_CC+set}" = set; then
2825 echo $ECHO_N "(cached) $ECHO_C" >&6
2826 else
2827 if test -n "$CC"; then
2828 ac_cv_prog_CC="$CC" # Let the user override the test.
2829 else
2830 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2831 for as_dir in $PATH
2833 IFS=$as_save_IFS
2834 test -z "$as_dir" && as_dir=.
2835 for ac_exec_ext in '' $ac_executable_extensions; do
2836 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2837 ac_cv_prog_CC="${ac_tool_prefix}cc"
2838 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2839 break 2
2841 done
2842 done
2843 IFS=$as_save_IFS
2847 CC=$ac_cv_prog_CC
2848 if test -n "$CC"; then
2849 { echo "$as_me:$LINENO: result: $CC" >&5
2850 echo "${ECHO_T}$CC" >&6; }
2851 else
2852 { echo "$as_me:$LINENO: result: no" >&5
2853 echo "${ECHO_T}no" >&6; }
2859 if test -z "$CC"; then
2860 # Extract the first word of "cc", so it can be a program name with args.
2861 set dummy cc; ac_word=$2
2862 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2863 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2864 if test "${ac_cv_prog_CC+set}" = set; then
2865 echo $ECHO_N "(cached) $ECHO_C" >&6
2866 else
2867 if test -n "$CC"; then
2868 ac_cv_prog_CC="$CC" # Let the user override the test.
2869 else
2870 ac_prog_rejected=no
2871 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2872 for as_dir in $PATH
2874 IFS=$as_save_IFS
2875 test -z "$as_dir" && as_dir=.
2876 for ac_exec_ext in '' $ac_executable_extensions; do
2877 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2878 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
2879 ac_prog_rejected=yes
2880 continue
2882 ac_cv_prog_CC="cc"
2883 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2884 break 2
2886 done
2887 done
2888 IFS=$as_save_IFS
2890 if test $ac_prog_rejected = yes; then
2891 # We found a bogon in the path, so make sure we never use it.
2892 set dummy $ac_cv_prog_CC
2893 shift
2894 if test $# != 0; then
2895 # We chose a different compiler from the bogus one.
2896 # However, it has the same basename, so the bogon will be chosen
2897 # first if we set CC to just the basename; use the full file name.
2898 shift
2899 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
2904 CC=$ac_cv_prog_CC
2905 if test -n "$CC"; then
2906 { echo "$as_me:$LINENO: result: $CC" >&5
2907 echo "${ECHO_T}$CC" >&6; }
2908 else
2909 { echo "$as_me:$LINENO: result: no" >&5
2910 echo "${ECHO_T}no" >&6; }
2915 if test -z "$CC"; then
2916 if test -n "$ac_tool_prefix"; then
2917 for ac_prog in cl.exe
2919 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
2920 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
2921 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2922 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2923 if test "${ac_cv_prog_CC+set}" = set; then
2924 echo $ECHO_N "(cached) $ECHO_C" >&6
2925 else
2926 if test -n "$CC"; then
2927 ac_cv_prog_CC="$CC" # Let the user override the test.
2928 else
2929 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2930 for as_dir in $PATH
2932 IFS=$as_save_IFS
2933 test -z "$as_dir" && as_dir=.
2934 for ac_exec_ext in '' $ac_executable_extensions; do
2935 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2936 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
2937 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2938 break 2
2940 done
2941 done
2942 IFS=$as_save_IFS
2946 CC=$ac_cv_prog_CC
2947 if test -n "$CC"; then
2948 { echo "$as_me:$LINENO: result: $CC" >&5
2949 echo "${ECHO_T}$CC" >&6; }
2950 else
2951 { echo "$as_me:$LINENO: result: no" >&5
2952 echo "${ECHO_T}no" >&6; }
2956 test -n "$CC" && break
2957 done
2959 if test -z "$CC"; then
2960 ac_ct_CC=$CC
2961 for ac_prog in cl.exe
2963 # Extract the first word of "$ac_prog", so it can be a program name with args.
2964 set dummy $ac_prog; ac_word=$2
2965 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2966 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2967 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2968 echo $ECHO_N "(cached) $ECHO_C" >&6
2969 else
2970 if test -n "$ac_ct_CC"; then
2971 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2972 else
2973 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2974 for as_dir in $PATH
2976 IFS=$as_save_IFS
2977 test -z "$as_dir" && as_dir=.
2978 for ac_exec_ext in '' $ac_executable_extensions; do
2979 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2980 ac_cv_prog_ac_ct_CC="$ac_prog"
2981 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2982 break 2
2984 done
2985 done
2986 IFS=$as_save_IFS
2990 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2991 if test -n "$ac_ct_CC"; then
2992 { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2993 echo "${ECHO_T}$ac_ct_CC" >&6; }
2994 else
2995 { echo "$as_me:$LINENO: result: no" >&5
2996 echo "${ECHO_T}no" >&6; }
3000 test -n "$ac_ct_CC" && break
3001 done
3003 if test "x$ac_ct_CC" = x; then
3004 CC=""
3005 else
3006 case $cross_compiling:$ac_tool_warned in
3007 yes:)
3008 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
3009 whose name does not start with the host triplet. If you think this
3010 configuration is useful to you, please write to autoconf@gnu.org." >&5
3011 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
3012 whose name does not start with the host triplet. If you think this
3013 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
3014 ac_tool_warned=yes ;;
3015 esac
3016 CC=$ac_ct_CC
3023 test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
3024 See \`config.log' for more details." >&5
3025 echo "$as_me: error: no acceptable C compiler found in \$PATH
3026 See \`config.log' for more details." >&2;}
3027 { (exit 1); exit 1; }; }
3029 # Provide some information about the compiler.
3030 echo "$as_me:$LINENO: checking for C compiler version" >&5
3031 ac_compiler=`set X $ac_compile; echo $2`
3032 { (ac_try="$ac_compiler --version >&5"
3033 case "(($ac_try" in
3034 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3035 *) ac_try_echo=$ac_try;;
3036 esac
3037 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3038 (eval "$ac_compiler --version >&5") 2>&5
3039 ac_status=$?
3040 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3041 (exit $ac_status); }
3042 { (ac_try="$ac_compiler -v >&5"
3043 case "(($ac_try" in
3044 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3045 *) ac_try_echo=$ac_try;;
3046 esac
3047 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3048 (eval "$ac_compiler -v >&5") 2>&5
3049 ac_status=$?
3050 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3051 (exit $ac_status); }
3052 { (ac_try="$ac_compiler -V >&5"
3053 case "(($ac_try" in
3054 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3055 *) ac_try_echo=$ac_try;;
3056 esac
3057 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3058 (eval "$ac_compiler -V >&5") 2>&5
3059 ac_status=$?
3060 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3061 (exit $ac_status); }
3063 cat >conftest.$ac_ext <<_ACEOF
3064 /* confdefs.h. */
3065 _ACEOF
3066 cat confdefs.h >>conftest.$ac_ext
3067 cat >>conftest.$ac_ext <<_ACEOF
3068 /* end confdefs.h. */
3071 main ()
3075 return 0;
3077 _ACEOF
3078 ac_clean_files_save=$ac_clean_files
3079 ac_clean_files="$ac_clean_files a.out a.exe b.out"
3080 # Try to create an executable without -o first, disregard a.out.
3081 # It will help us diagnose broken compilers, and finding out an intuition
3082 # of exeext.
3083 { echo "$as_me:$LINENO: checking for C compiler default output file name" >&5
3084 echo $ECHO_N "checking for C compiler default output file name... $ECHO_C" >&6; }
3085 ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
3087 # List of possible output files, starting from the most likely.
3088 # The algorithm is not robust to junk in `.', hence go to wildcards (a.*)
3089 # only as a last resort. b.out is created by i960 compilers.
3090 ac_files='a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out'
3092 # The IRIX 6 linker writes into existing files which may not be
3093 # executable, retaining their permissions. Remove them first so a
3094 # subsequent execution test works.
3095 ac_rmfiles=
3096 for ac_file in $ac_files
3098 case $ac_file in
3099 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj ) ;;
3100 * ) ac_rmfiles="$ac_rmfiles $ac_file";;
3101 esac
3102 done
3103 rm -f $ac_rmfiles
3105 if { (ac_try="$ac_link_default"
3106 case "(($ac_try" in
3107 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3108 *) ac_try_echo=$ac_try;;
3109 esac
3110 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3111 (eval "$ac_link_default") 2>&5
3112 ac_status=$?
3113 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3114 (exit $ac_status); }; then
3115 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
3116 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
3117 # in a Makefile. We should not override ac_cv_exeext if it was cached,
3118 # so that the user can short-circuit this test for compilers unknown to
3119 # Autoconf.
3120 for ac_file in $ac_files ''
3122 test -f "$ac_file" || continue
3123 case $ac_file in
3124 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj )
3126 [ab].out )
3127 # We found the default executable, but exeext='' is most
3128 # certainly right.
3129 break;;
3130 *.* )
3131 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
3132 then :; else
3133 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3135 # We set ac_cv_exeext here because the later test for it is not
3136 # safe: cross compilers may not add the suffix if given an `-o'
3137 # argument, so we may need to know it at that point already.
3138 # Even if this section looks crufty: it has the advantage of
3139 # actually working.
3140 break;;
3142 break;;
3143 esac
3144 done
3145 test "$ac_cv_exeext" = no && ac_cv_exeext=
3147 else
3148 ac_file=''
3151 { echo "$as_me:$LINENO: result: $ac_file" >&5
3152 echo "${ECHO_T}$ac_file" >&6; }
3153 if test -z "$ac_file"; then
3154 echo "$as_me: failed program was:" >&5
3155 sed 's/^/| /' conftest.$ac_ext >&5
3157 { { echo "$as_me:$LINENO: error: C compiler cannot create executables
3158 See \`config.log' for more details." >&5
3159 echo "$as_me: error: C compiler cannot create executables
3160 See \`config.log' for more details." >&2;}
3161 { (exit 77); exit 77; }; }
3164 ac_exeext=$ac_cv_exeext
3166 # Check that the compiler produces executables we can run. If not, either
3167 # the compiler is broken, or we cross compile.
3168 { echo "$as_me:$LINENO: checking whether the C compiler works" >&5
3169 echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6; }
3170 # FIXME: These cross compiler hacks should be removed for Autoconf 3.0
3171 # If not cross compiling, check that we can run a simple program.
3172 if test "$cross_compiling" != yes; then
3173 if { ac_try='./$ac_file'
3174 { (case "(($ac_try" in
3175 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3176 *) ac_try_echo=$ac_try;;
3177 esac
3178 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3179 (eval "$ac_try") 2>&5
3180 ac_status=$?
3181 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3182 (exit $ac_status); }; }; then
3183 cross_compiling=no
3184 else
3185 if test "$cross_compiling" = maybe; then
3186 cross_compiling=yes
3187 else
3188 { { echo "$as_me:$LINENO: error: cannot run C compiled programs.
3189 If you meant to cross compile, use \`--host'.
3190 See \`config.log' for more details." >&5
3191 echo "$as_me: error: cannot run C compiled programs.
3192 If you meant to cross compile, use \`--host'.
3193 See \`config.log' for more details." >&2;}
3194 { (exit 1); exit 1; }; }
3198 { echo "$as_me:$LINENO: result: yes" >&5
3199 echo "${ECHO_T}yes" >&6; }
3201 rm -f a.out a.exe conftest$ac_cv_exeext b.out
3202 ac_clean_files=$ac_clean_files_save
3203 # Check that the compiler produces executables we can run. If not, either
3204 # the compiler is broken, or we cross compile.
3205 { echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
3206 echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6; }
3207 { echo "$as_me:$LINENO: result: $cross_compiling" >&5
3208 echo "${ECHO_T}$cross_compiling" >&6; }
3210 { echo "$as_me:$LINENO: checking for suffix of executables" >&5
3211 echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6; }
3212 if { (ac_try="$ac_link"
3213 case "(($ac_try" in
3214 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3215 *) ac_try_echo=$ac_try;;
3216 esac
3217 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3218 (eval "$ac_link") 2>&5
3219 ac_status=$?
3220 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3221 (exit $ac_status); }; then
3222 # If both `conftest.exe' and `conftest' are `present' (well, observable)
3223 # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
3224 # work properly (i.e., refer to `conftest.exe'), while it won't with
3225 # `rm'.
3226 for ac_file in conftest.exe conftest conftest.*; do
3227 test -f "$ac_file" || continue
3228 case $ac_file in
3229 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj ) ;;
3230 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3231 break;;
3232 * ) break;;
3233 esac
3234 done
3235 else
3236 { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
3237 See \`config.log' for more details." >&5
3238 echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
3239 See \`config.log' for more details." >&2;}
3240 { (exit 1); exit 1; }; }
3243 rm -f conftest$ac_cv_exeext
3244 { echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
3245 echo "${ECHO_T}$ac_cv_exeext" >&6; }
3247 rm -f conftest.$ac_ext
3248 EXEEXT=$ac_cv_exeext
3249 ac_exeext=$EXEEXT
3250 { echo "$as_me:$LINENO: checking for suffix of object files" >&5
3251 echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6; }
3252 if test "${ac_cv_objext+set}" = set; then
3253 echo $ECHO_N "(cached) $ECHO_C" >&6
3254 else
3255 cat >conftest.$ac_ext <<_ACEOF
3256 /* confdefs.h. */
3257 _ACEOF
3258 cat confdefs.h >>conftest.$ac_ext
3259 cat >>conftest.$ac_ext <<_ACEOF
3260 /* end confdefs.h. */
3263 main ()
3267 return 0;
3269 _ACEOF
3270 rm -f conftest.o conftest.obj
3271 if { (ac_try="$ac_compile"
3272 case "(($ac_try" in
3273 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3274 *) ac_try_echo=$ac_try;;
3275 esac
3276 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3277 (eval "$ac_compile") 2>&5
3278 ac_status=$?
3279 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3280 (exit $ac_status); }; then
3281 for ac_file in conftest.o conftest.obj conftest.*; do
3282 test -f "$ac_file" || continue;
3283 case $ac_file in
3284 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf ) ;;
3285 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
3286 break;;
3287 esac
3288 done
3289 else
3290 echo "$as_me: failed program was:" >&5
3291 sed 's/^/| /' conftest.$ac_ext >&5
3293 { { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
3294 See \`config.log' for more details." >&5
3295 echo "$as_me: error: cannot compute suffix of object files: cannot compile
3296 See \`config.log' for more details." >&2;}
3297 { (exit 1); exit 1; }; }
3300 rm -f conftest.$ac_cv_objext conftest.$ac_ext
3302 { echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
3303 echo "${ECHO_T}$ac_cv_objext" >&6; }
3304 OBJEXT=$ac_cv_objext
3305 ac_objext=$OBJEXT
3306 { echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
3307 echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6; }
3308 if test "${ac_cv_c_compiler_gnu+set}" = set; then
3309 echo $ECHO_N "(cached) $ECHO_C" >&6
3310 else
3311 cat >conftest.$ac_ext <<_ACEOF
3312 /* confdefs.h. */
3313 _ACEOF
3314 cat confdefs.h >>conftest.$ac_ext
3315 cat >>conftest.$ac_ext <<_ACEOF
3316 /* end confdefs.h. */
3319 main ()
3321 #ifndef __GNUC__
3322 choke me
3323 #endif
3326 return 0;
3328 _ACEOF
3329 rm -f conftest.$ac_objext
3330 if { (ac_try="$ac_compile"
3331 case "(($ac_try" in
3332 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3333 *) ac_try_echo=$ac_try;;
3334 esac
3335 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3336 (eval "$ac_compile") 2>conftest.er1
3337 ac_status=$?
3338 grep -v '^ *+' conftest.er1 >conftest.err
3339 rm -f conftest.er1
3340 cat conftest.err >&5
3341 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3342 (exit $ac_status); } && {
3343 test -z "$ac_c_werror_flag" ||
3344 test ! -s conftest.err
3345 } && test -s conftest.$ac_objext; then
3346 ac_compiler_gnu=yes
3347 else
3348 echo "$as_me: failed program was:" >&5
3349 sed 's/^/| /' conftest.$ac_ext >&5
3351 ac_compiler_gnu=no
3354 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3355 ac_cv_c_compiler_gnu=$ac_compiler_gnu
3358 { echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
3359 echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6; }
3360 GCC=`test $ac_compiler_gnu = yes && echo yes`
3361 ac_test_CFLAGS=${CFLAGS+set}
3362 ac_save_CFLAGS=$CFLAGS
3363 { echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
3364 echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6; }
3365 if test "${ac_cv_prog_cc_g+set}" = set; then
3366 echo $ECHO_N "(cached) $ECHO_C" >&6
3367 else
3368 ac_save_c_werror_flag=$ac_c_werror_flag
3369 ac_c_werror_flag=yes
3370 ac_cv_prog_cc_g=no
3371 CFLAGS="-g"
3372 cat >conftest.$ac_ext <<_ACEOF
3373 /* confdefs.h. */
3374 _ACEOF
3375 cat confdefs.h >>conftest.$ac_ext
3376 cat >>conftest.$ac_ext <<_ACEOF
3377 /* end confdefs.h. */
3380 main ()
3384 return 0;
3386 _ACEOF
3387 rm -f conftest.$ac_objext
3388 if { (ac_try="$ac_compile"
3389 case "(($ac_try" in
3390 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3391 *) ac_try_echo=$ac_try;;
3392 esac
3393 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3394 (eval "$ac_compile") 2>conftest.er1
3395 ac_status=$?
3396 grep -v '^ *+' conftest.er1 >conftest.err
3397 rm -f conftest.er1
3398 cat conftest.err >&5
3399 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3400 (exit $ac_status); } && {
3401 test -z "$ac_c_werror_flag" ||
3402 test ! -s conftest.err
3403 } && test -s conftest.$ac_objext; then
3404 ac_cv_prog_cc_g=yes
3405 else
3406 echo "$as_me: failed program was:" >&5
3407 sed 's/^/| /' conftest.$ac_ext >&5
3409 CFLAGS=""
3410 cat >conftest.$ac_ext <<_ACEOF
3411 /* confdefs.h. */
3412 _ACEOF
3413 cat confdefs.h >>conftest.$ac_ext
3414 cat >>conftest.$ac_ext <<_ACEOF
3415 /* end confdefs.h. */
3418 main ()
3422 return 0;
3424 _ACEOF
3425 rm -f conftest.$ac_objext
3426 if { (ac_try="$ac_compile"
3427 case "(($ac_try" in
3428 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3429 *) ac_try_echo=$ac_try;;
3430 esac
3431 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3432 (eval "$ac_compile") 2>conftest.er1
3433 ac_status=$?
3434 grep -v '^ *+' conftest.er1 >conftest.err
3435 rm -f conftest.er1
3436 cat conftest.err >&5
3437 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3438 (exit $ac_status); } && {
3439 test -z "$ac_c_werror_flag" ||
3440 test ! -s conftest.err
3441 } && test -s conftest.$ac_objext; then
3443 else
3444 echo "$as_me: failed program was:" >&5
3445 sed 's/^/| /' conftest.$ac_ext >&5
3447 ac_c_werror_flag=$ac_save_c_werror_flag
3448 CFLAGS="-g"
3449 cat >conftest.$ac_ext <<_ACEOF
3450 /* confdefs.h. */
3451 _ACEOF
3452 cat confdefs.h >>conftest.$ac_ext
3453 cat >>conftest.$ac_ext <<_ACEOF
3454 /* end confdefs.h. */
3457 main ()
3461 return 0;
3463 _ACEOF
3464 rm -f conftest.$ac_objext
3465 if { (ac_try="$ac_compile"
3466 case "(($ac_try" in
3467 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3468 *) ac_try_echo=$ac_try;;
3469 esac
3470 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3471 (eval "$ac_compile") 2>conftest.er1
3472 ac_status=$?
3473 grep -v '^ *+' conftest.er1 >conftest.err
3474 rm -f conftest.er1
3475 cat conftest.err >&5
3476 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3477 (exit $ac_status); } && {
3478 test -z "$ac_c_werror_flag" ||
3479 test ! -s conftest.err
3480 } && test -s conftest.$ac_objext; then
3481 ac_cv_prog_cc_g=yes
3482 else
3483 echo "$as_me: failed program was:" >&5
3484 sed 's/^/| /' conftest.$ac_ext >&5
3489 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3492 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3495 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3496 ac_c_werror_flag=$ac_save_c_werror_flag
3498 { echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
3499 echo "${ECHO_T}$ac_cv_prog_cc_g" >&6; }
3500 if test "$ac_test_CFLAGS" = set; then
3501 CFLAGS=$ac_save_CFLAGS
3502 elif test $ac_cv_prog_cc_g = yes; then
3503 if test "$GCC" = yes; then
3504 CFLAGS="-g -O2"
3505 else
3506 CFLAGS="-g"
3508 else
3509 if test "$GCC" = yes; then
3510 CFLAGS="-O2"
3511 else
3512 CFLAGS=
3515 { echo "$as_me:$LINENO: checking for $CC option to accept ISO C89" >&5
3516 echo $ECHO_N "checking for $CC option to accept ISO C89... $ECHO_C" >&6; }
3517 if test "${ac_cv_prog_cc_c89+set}" = set; then
3518 echo $ECHO_N "(cached) $ECHO_C" >&6
3519 else
3520 ac_cv_prog_cc_c89=no
3521 ac_save_CC=$CC
3522 cat >conftest.$ac_ext <<_ACEOF
3523 /* confdefs.h. */
3524 _ACEOF
3525 cat confdefs.h >>conftest.$ac_ext
3526 cat >>conftest.$ac_ext <<_ACEOF
3527 /* end confdefs.h. */
3528 #include <stdarg.h>
3529 #include <stdio.h>
3530 #include <sys/types.h>
3531 #include <sys/stat.h>
3532 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
3533 struct buf { int x; };
3534 FILE * (*rcsopen) (struct buf *, struct stat *, int);
3535 static char *e (p, i)
3536 char **p;
3537 int i;
3539 return p[i];
3541 static char *f (char * (*g) (char **, int), char **p, ...)
3543 char *s;
3544 va_list v;
3545 va_start (v,p);
3546 s = g (p, va_arg (v,int));
3547 va_end (v);
3548 return s;
3551 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
3552 function prototypes and stuff, but not '\xHH' hex character constants.
3553 These don't provoke an error unfortunately, instead are silently treated
3554 as 'x'. The following induces an error, until -std is added to get
3555 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
3556 array size at least. It's necessary to write '\x00'==0 to get something
3557 that's true only with -std. */
3558 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
3560 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
3561 inside strings and character constants. */
3562 #define FOO(x) 'x'
3563 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
3565 int test (int i, double x);
3566 struct s1 {int (*f) (int a);};
3567 struct s2 {int (*f) (double a);};
3568 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
3569 int argc;
3570 char **argv;
3572 main ()
3574 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
3576 return 0;
3578 _ACEOF
3579 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
3580 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
3582 CC="$ac_save_CC $ac_arg"
3583 rm -f conftest.$ac_objext
3584 if { (ac_try="$ac_compile"
3585 case "(($ac_try" in
3586 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3587 *) ac_try_echo=$ac_try;;
3588 esac
3589 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3590 (eval "$ac_compile") 2>conftest.er1
3591 ac_status=$?
3592 grep -v '^ *+' conftest.er1 >conftest.err
3593 rm -f conftest.er1
3594 cat conftest.err >&5
3595 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3596 (exit $ac_status); } && {
3597 test -z "$ac_c_werror_flag" ||
3598 test ! -s conftest.err
3599 } && test -s conftest.$ac_objext; then
3600 ac_cv_prog_cc_c89=$ac_arg
3601 else
3602 echo "$as_me: failed program was:" >&5
3603 sed 's/^/| /' conftest.$ac_ext >&5
3608 rm -f core conftest.err conftest.$ac_objext
3609 test "x$ac_cv_prog_cc_c89" != "xno" && break
3610 done
3611 rm -f conftest.$ac_ext
3612 CC=$ac_save_CC
3615 # AC_CACHE_VAL
3616 case "x$ac_cv_prog_cc_c89" in
3618 { echo "$as_me:$LINENO: result: none needed" >&5
3619 echo "${ECHO_T}none needed" >&6; } ;;
3620 xno)
3621 { echo "$as_me:$LINENO: result: unsupported" >&5
3622 echo "${ECHO_T}unsupported" >&6; } ;;
3624 CC="$CC $ac_cv_prog_cc_c89"
3625 { echo "$as_me:$LINENO: result: $ac_cv_prog_cc_c89" >&5
3626 echo "${ECHO_T}$ac_cv_prog_cc_c89" >&6; } ;;
3627 esac
3630 ac_ext=c
3631 ac_cpp='$CPP $CPPFLAGS'
3632 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3633 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3634 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3637 # On Suns, sometimes $CPP names a directory.
3638 if test -n "$CPP" && test -d "$CPP"; then
3639 CPP=
3642 ## If not using gcc, and on Solaris, and no CPP specified, see if
3643 ## using a Sun compiler, which needs -Xs to prevent whitespace.
3644 if test x"$GCC" != xyes && test x"$emacs_check_sunpro_c" = xyes && \
3645 test x"$CPP" = x; then
3646 { echo "$as_me:$LINENO: checking whether we are using a Sun C compiler" >&5
3647 echo $ECHO_N "checking whether we are using a Sun C compiler... $ECHO_C" >&6; }
3649 if test "${emacs_cv_sunpro_c+set}" = set; then
3650 echo $ECHO_N "(cached) $ECHO_C" >&6
3651 else
3652 cat >conftest.$ac_ext <<_ACEOF
3653 /* confdefs.h. */
3654 _ACEOF
3655 cat confdefs.h >>conftest.$ac_ext
3656 cat >>conftest.$ac_ext <<_ACEOF
3657 /* end confdefs.h. */
3660 main ()
3662 #ifndef __SUNPRO_C
3663 fail;
3664 #endif
3667 return 0;
3669 _ACEOF
3670 rm -f conftest.$ac_objext conftest$ac_exeext
3671 if { (ac_try="$ac_link"
3672 case "(($ac_try" in
3673 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3674 *) ac_try_echo=$ac_try;;
3675 esac
3676 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3677 (eval "$ac_link") 2>conftest.er1
3678 ac_status=$?
3679 grep -v '^ *+' conftest.er1 >conftest.err
3680 rm -f conftest.er1
3681 cat conftest.err >&5
3682 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3683 (exit $ac_status); } && {
3684 test -z "$ac_c_werror_flag" ||
3685 test ! -s conftest.err
3686 } && test -s conftest$ac_exeext &&
3687 $as_test_x conftest$ac_exeext; then
3688 emacs_cv_sunpro_c=yes
3689 else
3690 echo "$as_me: failed program was:" >&5
3691 sed 's/^/| /' conftest.$ac_ext >&5
3693 emacs_cv_sunpro_c=no
3696 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
3697 conftest$ac_exeext conftest.$ac_ext
3700 { echo "$as_me:$LINENO: result: $emacs_cv_sunpro_c" >&5
3701 echo "${ECHO_T}$emacs_cv_sunpro_c" >&6; }
3703 if test x"$emacs_cv_sunpro_c" = xyes; then
3704 NON_GNU_CPP="$CC -E -Xs"
3708 #### Some systems specify a CPP to use unless we are using GCC.
3709 #### Now that we know whether we are using GCC, we can decide whether
3710 #### to use that one.
3711 if test "x$NON_GNU_CPP" != x && test x$GCC != xyes && test "x$CPP" = x
3712 then
3713 CPP="$NON_GNU_CPP"
3716 #### Some systems specify a CC to use unless we are using GCC.
3717 #### Now that we know whether we are using GCC, we can decide whether
3718 #### to use that one.
3719 if test "x$NON_GNU_CC" != x && test x$GCC != xyes &&
3720 test x$cc_specified != xyes
3721 then
3722 CC="$NON_GNU_CC"
3725 if test x$GCC = xyes && test "x$GCC_TEST_OPTIONS" != x
3726 then
3727 CC="$CC $GCC_TEST_OPTIONS"
3730 if test x$GCC = x && test "x$NON_GCC_TEST_OPTIONS" != x
3731 then
3732 CC="$CC $NON_GCC_TEST_OPTIONS"
3736 cat >>confdefs.h <<\_ACEOF
3737 #define _GNU_SOURCE 1
3738 _ACEOF
3741 ac_ext=c
3742 ac_cpp='$CPP $CPPFLAGS'
3743 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3744 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3745 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3746 { echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
3747 echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6; }
3748 # On Suns, sometimes $CPP names a directory.
3749 if test -n "$CPP" && test -d "$CPP"; then
3750 CPP=
3752 if test -z "$CPP"; then
3753 if test "${ac_cv_prog_CPP+set}" = set; then
3754 echo $ECHO_N "(cached) $ECHO_C" >&6
3755 else
3756 # Double quotes because CPP needs to be expanded
3757 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
3759 ac_preproc_ok=false
3760 for ac_c_preproc_warn_flag in '' yes
3762 # Use a header file that comes with gcc, so configuring glibc
3763 # with a fresh cross-compiler works.
3764 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3765 # <limits.h> exists even on freestanding compilers.
3766 # On the NeXT, cc -E runs the code through the compiler's parser,
3767 # not just through cpp. "Syntax error" is here to catch this case.
3768 cat >conftest.$ac_ext <<_ACEOF
3769 /* confdefs.h. */
3770 _ACEOF
3771 cat confdefs.h >>conftest.$ac_ext
3772 cat >>conftest.$ac_ext <<_ACEOF
3773 /* end confdefs.h. */
3774 #ifdef __STDC__
3775 # include <limits.h>
3776 #else
3777 # include <assert.h>
3778 #endif
3779 Syntax error
3780 _ACEOF
3781 if { (ac_try="$ac_cpp conftest.$ac_ext"
3782 case "(($ac_try" in
3783 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3784 *) ac_try_echo=$ac_try;;
3785 esac
3786 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3787 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
3788 ac_status=$?
3789 grep -v '^ *+' conftest.er1 >conftest.err
3790 rm -f conftest.er1
3791 cat conftest.err >&5
3792 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3793 (exit $ac_status); } >/dev/null && {
3794 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
3795 test ! -s conftest.err
3796 }; then
3798 else
3799 echo "$as_me: failed program was:" >&5
3800 sed 's/^/| /' conftest.$ac_ext >&5
3802 # Broken: fails on valid input.
3803 continue
3806 rm -f conftest.err conftest.$ac_ext
3808 # OK, works on sane cases. Now check whether nonexistent headers
3809 # can be detected and how.
3810 cat >conftest.$ac_ext <<_ACEOF
3811 /* confdefs.h. */
3812 _ACEOF
3813 cat confdefs.h >>conftest.$ac_ext
3814 cat >>conftest.$ac_ext <<_ACEOF
3815 /* end confdefs.h. */
3816 #include <ac_nonexistent.h>
3817 _ACEOF
3818 if { (ac_try="$ac_cpp conftest.$ac_ext"
3819 case "(($ac_try" in
3820 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3821 *) ac_try_echo=$ac_try;;
3822 esac
3823 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3824 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
3825 ac_status=$?
3826 grep -v '^ *+' conftest.er1 >conftest.err
3827 rm -f conftest.er1
3828 cat conftest.err >&5
3829 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3830 (exit $ac_status); } >/dev/null && {
3831 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
3832 test ! -s conftest.err
3833 }; then
3834 # Broken: success on invalid input.
3835 continue
3836 else
3837 echo "$as_me: failed program was:" >&5
3838 sed 's/^/| /' conftest.$ac_ext >&5
3840 # Passes both tests.
3841 ac_preproc_ok=:
3842 break
3845 rm -f conftest.err conftest.$ac_ext
3847 done
3848 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3849 rm -f conftest.err conftest.$ac_ext
3850 if $ac_preproc_ok; then
3851 break
3854 done
3855 ac_cv_prog_CPP=$CPP
3858 CPP=$ac_cv_prog_CPP
3859 else
3860 ac_cv_prog_CPP=$CPP
3862 { echo "$as_me:$LINENO: result: $CPP" >&5
3863 echo "${ECHO_T}$CPP" >&6; }
3864 ac_preproc_ok=false
3865 for ac_c_preproc_warn_flag in '' yes
3867 # Use a header file that comes with gcc, so configuring glibc
3868 # with a fresh cross-compiler works.
3869 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3870 # <limits.h> exists even on freestanding compilers.
3871 # On the NeXT, cc -E runs the code through the compiler's parser,
3872 # not just through cpp. "Syntax error" is here to catch this case.
3873 cat >conftest.$ac_ext <<_ACEOF
3874 /* confdefs.h. */
3875 _ACEOF
3876 cat confdefs.h >>conftest.$ac_ext
3877 cat >>conftest.$ac_ext <<_ACEOF
3878 /* end confdefs.h. */
3879 #ifdef __STDC__
3880 # include <limits.h>
3881 #else
3882 # include <assert.h>
3883 #endif
3884 Syntax error
3885 _ACEOF
3886 if { (ac_try="$ac_cpp conftest.$ac_ext"
3887 case "(($ac_try" in
3888 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3889 *) ac_try_echo=$ac_try;;
3890 esac
3891 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3892 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
3893 ac_status=$?
3894 grep -v '^ *+' conftest.er1 >conftest.err
3895 rm -f conftest.er1
3896 cat conftest.err >&5
3897 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3898 (exit $ac_status); } >/dev/null && {
3899 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
3900 test ! -s conftest.err
3901 }; then
3903 else
3904 echo "$as_me: failed program was:" >&5
3905 sed 's/^/| /' conftest.$ac_ext >&5
3907 # Broken: fails on valid input.
3908 continue
3911 rm -f conftest.err conftest.$ac_ext
3913 # OK, works on sane cases. Now check whether nonexistent headers
3914 # can be detected and how.
3915 cat >conftest.$ac_ext <<_ACEOF
3916 /* confdefs.h. */
3917 _ACEOF
3918 cat confdefs.h >>conftest.$ac_ext
3919 cat >>conftest.$ac_ext <<_ACEOF
3920 /* end confdefs.h. */
3921 #include <ac_nonexistent.h>
3922 _ACEOF
3923 if { (ac_try="$ac_cpp conftest.$ac_ext"
3924 case "(($ac_try" in
3925 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3926 *) ac_try_echo=$ac_try;;
3927 esac
3928 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3929 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
3930 ac_status=$?
3931 grep -v '^ *+' conftest.er1 >conftest.err
3932 rm -f conftest.er1
3933 cat conftest.err >&5
3934 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3935 (exit $ac_status); } >/dev/null && {
3936 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
3937 test ! -s conftest.err
3938 }; then
3939 # Broken: success on invalid input.
3940 continue
3941 else
3942 echo "$as_me: failed program was:" >&5
3943 sed 's/^/| /' conftest.$ac_ext >&5
3945 # Passes both tests.
3946 ac_preproc_ok=:
3947 break
3950 rm -f conftest.err conftest.$ac_ext
3952 done
3953 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3954 rm -f conftest.err conftest.$ac_ext
3955 if $ac_preproc_ok; then
3957 else
3958 { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
3959 See \`config.log' for more details." >&5
3960 echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
3961 See \`config.log' for more details." >&2;}
3962 { (exit 1); exit 1; }; }
3965 ac_ext=c
3966 ac_cpp='$CPP $CPPFLAGS'
3967 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3968 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3969 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3972 { echo "$as_me:$LINENO: checking for grep that handles long lines and -e" >&5
3973 echo $ECHO_N "checking for grep that handles long lines and -e... $ECHO_C" >&6; }
3974 if test "${ac_cv_path_GREP+set}" = set; then
3975 echo $ECHO_N "(cached) $ECHO_C" >&6
3976 else
3977 # Extract the first word of "grep ggrep" to use in msg output
3978 if test -z "$GREP"; then
3979 set dummy grep ggrep; ac_prog_name=$2
3980 if test "${ac_cv_path_GREP+set}" = set; then
3981 echo $ECHO_N "(cached) $ECHO_C" >&6
3982 else
3983 ac_path_GREP_found=false
3984 # Loop through the user's path and test for each of PROGNAME-LIST
3985 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3986 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
3988 IFS=$as_save_IFS
3989 test -z "$as_dir" && as_dir=.
3990 for ac_prog in grep ggrep; do
3991 for ac_exec_ext in '' $ac_executable_extensions; do
3992 ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
3993 { test -f "$ac_path_GREP" && $as_test_x "$ac_path_GREP"; } || continue
3994 # Check for GNU ac_path_GREP and select it if it is found.
3995 # Check for GNU $ac_path_GREP
3996 case `"$ac_path_GREP" --version 2>&1` in
3997 *GNU*)
3998 ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
4000 ac_count=0
4001 echo $ECHO_N "0123456789$ECHO_C" >"conftest.in"
4002 while :
4004 cat "conftest.in" "conftest.in" >"conftest.tmp"
4005 mv "conftest.tmp" "conftest.in"
4006 cp "conftest.in" "conftest.nl"
4007 echo 'GREP' >> "conftest.nl"
4008 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4009 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4010 ac_count=`expr $ac_count + 1`
4011 if test $ac_count -gt ${ac_path_GREP_max-0}; then
4012 # Best one so far, save it but keep looking for a better one
4013 ac_cv_path_GREP="$ac_path_GREP"
4014 ac_path_GREP_max=$ac_count
4016 # 10*(2^10) chars as input seems more than enough
4017 test $ac_count -gt 10 && break
4018 done
4019 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4020 esac
4023 $ac_path_GREP_found && break 3
4024 done
4025 done
4027 done
4028 IFS=$as_save_IFS
4033 GREP="$ac_cv_path_GREP"
4034 if test -z "$GREP"; then
4035 { { echo "$as_me:$LINENO: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
4036 echo "$as_me: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
4037 { (exit 1); exit 1; }; }
4040 else
4041 ac_cv_path_GREP=$GREP
4046 { echo "$as_me:$LINENO: result: $ac_cv_path_GREP" >&5
4047 echo "${ECHO_T}$ac_cv_path_GREP" >&6; }
4048 GREP="$ac_cv_path_GREP"
4051 { echo "$as_me:$LINENO: checking for egrep" >&5
4052 echo $ECHO_N "checking for egrep... $ECHO_C" >&6; }
4053 if test "${ac_cv_path_EGREP+set}" = set; then
4054 echo $ECHO_N "(cached) $ECHO_C" >&6
4055 else
4056 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
4057 then ac_cv_path_EGREP="$GREP -E"
4058 else
4059 # Extract the first word of "egrep" to use in msg output
4060 if test -z "$EGREP"; then
4061 set dummy egrep; ac_prog_name=$2
4062 if test "${ac_cv_path_EGREP+set}" = set; then
4063 echo $ECHO_N "(cached) $ECHO_C" >&6
4064 else
4065 ac_path_EGREP_found=false
4066 # Loop through the user's path and test for each of PROGNAME-LIST
4067 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4068 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4070 IFS=$as_save_IFS
4071 test -z "$as_dir" && as_dir=.
4072 for ac_prog in egrep; do
4073 for ac_exec_ext in '' $ac_executable_extensions; do
4074 ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
4075 { test -f "$ac_path_EGREP" && $as_test_x "$ac_path_EGREP"; } || continue
4076 # Check for GNU ac_path_EGREP and select it if it is found.
4077 # Check for GNU $ac_path_EGREP
4078 case `"$ac_path_EGREP" --version 2>&1` in
4079 *GNU*)
4080 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
4082 ac_count=0
4083 echo $ECHO_N "0123456789$ECHO_C" >"conftest.in"
4084 while :
4086 cat "conftest.in" "conftest.in" >"conftest.tmp"
4087 mv "conftest.tmp" "conftest.in"
4088 cp "conftest.in" "conftest.nl"
4089 echo 'EGREP' >> "conftest.nl"
4090 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4091 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4092 ac_count=`expr $ac_count + 1`
4093 if test $ac_count -gt ${ac_path_EGREP_max-0}; then
4094 # Best one so far, save it but keep looking for a better one
4095 ac_cv_path_EGREP="$ac_path_EGREP"
4096 ac_path_EGREP_max=$ac_count
4098 # 10*(2^10) chars as input seems more than enough
4099 test $ac_count -gt 10 && break
4100 done
4101 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4102 esac
4105 $ac_path_EGREP_found && break 3
4106 done
4107 done
4109 done
4110 IFS=$as_save_IFS
4115 EGREP="$ac_cv_path_EGREP"
4116 if test -z "$EGREP"; then
4117 { { echo "$as_me:$LINENO: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
4118 echo "$as_me: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
4119 { (exit 1); exit 1; }; }
4122 else
4123 ac_cv_path_EGREP=$EGREP
4129 { echo "$as_me:$LINENO: result: $ac_cv_path_EGREP" >&5
4130 echo "${ECHO_T}$ac_cv_path_EGREP" >&6; }
4131 EGREP="$ac_cv_path_EGREP"
4135 { echo "$as_me:$LINENO: checking for AIX" >&5
4136 echo $ECHO_N "checking for AIX... $ECHO_C" >&6; }
4137 cat >conftest.$ac_ext <<_ACEOF
4138 /* confdefs.h. */
4139 _ACEOF
4140 cat confdefs.h >>conftest.$ac_ext
4141 cat >>conftest.$ac_ext <<_ACEOF
4142 /* end confdefs.h. */
4143 #ifdef _AIX
4145 #endif
4147 _ACEOF
4148 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4149 $EGREP "yes" >/dev/null 2>&1; then
4150 { echo "$as_me:$LINENO: result: yes" >&5
4151 echo "${ECHO_T}yes" >&6; }
4152 cat >>confdefs.h <<\_ACEOF
4153 #define _ALL_SOURCE 1
4154 _ACEOF
4156 else
4157 { echo "$as_me:$LINENO: result: no" >&5
4158 echo "${ECHO_T}no" >&6; }
4160 rm -f conftest*
4163 { echo "$as_me:$LINENO: checking for ANSI C header files" >&5
4164 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6; }
4165 if test "${ac_cv_header_stdc+set}" = set; then
4166 echo $ECHO_N "(cached) $ECHO_C" >&6
4167 else
4168 cat >conftest.$ac_ext <<_ACEOF
4169 /* confdefs.h. */
4170 _ACEOF
4171 cat confdefs.h >>conftest.$ac_ext
4172 cat >>conftest.$ac_ext <<_ACEOF
4173 /* end confdefs.h. */
4174 #include <stdlib.h>
4175 #include <stdarg.h>
4176 #include <string.h>
4177 #include <float.h>
4180 main ()
4184 return 0;
4186 _ACEOF
4187 rm -f conftest.$ac_objext
4188 if { (ac_try="$ac_compile"
4189 case "(($ac_try" in
4190 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4191 *) ac_try_echo=$ac_try;;
4192 esac
4193 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4194 (eval "$ac_compile") 2>conftest.er1
4195 ac_status=$?
4196 grep -v '^ *+' conftest.er1 >conftest.err
4197 rm -f conftest.er1
4198 cat conftest.err >&5
4199 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4200 (exit $ac_status); } && {
4201 test -z "$ac_c_werror_flag" ||
4202 test ! -s conftest.err
4203 } && test -s conftest.$ac_objext; then
4204 ac_cv_header_stdc=yes
4205 else
4206 echo "$as_me: failed program was:" >&5
4207 sed 's/^/| /' conftest.$ac_ext >&5
4209 ac_cv_header_stdc=no
4212 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4214 if test $ac_cv_header_stdc = yes; then
4215 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
4216 cat >conftest.$ac_ext <<_ACEOF
4217 /* confdefs.h. */
4218 _ACEOF
4219 cat confdefs.h >>conftest.$ac_ext
4220 cat >>conftest.$ac_ext <<_ACEOF
4221 /* end confdefs.h. */
4222 #include <string.h>
4224 _ACEOF
4225 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4226 $EGREP "memchr" >/dev/null 2>&1; then
4228 else
4229 ac_cv_header_stdc=no
4231 rm -f conftest*
4235 if test $ac_cv_header_stdc = yes; then
4236 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
4237 cat >conftest.$ac_ext <<_ACEOF
4238 /* confdefs.h. */
4239 _ACEOF
4240 cat confdefs.h >>conftest.$ac_ext
4241 cat >>conftest.$ac_ext <<_ACEOF
4242 /* end confdefs.h. */
4243 #include <stdlib.h>
4245 _ACEOF
4246 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4247 $EGREP "free" >/dev/null 2>&1; then
4249 else
4250 ac_cv_header_stdc=no
4252 rm -f conftest*
4256 if test $ac_cv_header_stdc = yes; then
4257 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
4258 if test "$cross_compiling" = yes; then
4260 else
4261 cat >conftest.$ac_ext <<_ACEOF
4262 /* confdefs.h. */
4263 _ACEOF
4264 cat confdefs.h >>conftest.$ac_ext
4265 cat >>conftest.$ac_ext <<_ACEOF
4266 /* end confdefs.h. */
4267 #include <ctype.h>
4268 #include <stdlib.h>
4269 #if ((' ' & 0x0FF) == 0x020)
4270 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
4271 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
4272 #else
4273 # define ISLOWER(c) \
4274 (('a' <= (c) && (c) <= 'i') \
4275 || ('j' <= (c) && (c) <= 'r') \
4276 || ('s' <= (c) && (c) <= 'z'))
4277 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
4278 #endif
4280 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
4282 main ()
4284 int i;
4285 for (i = 0; i < 256; i++)
4286 if (XOR (islower (i), ISLOWER (i))
4287 || toupper (i) != TOUPPER (i))
4288 return 2;
4289 return 0;
4291 _ACEOF
4292 rm -f conftest$ac_exeext
4293 if { (ac_try="$ac_link"
4294 case "(($ac_try" in
4295 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4296 *) ac_try_echo=$ac_try;;
4297 esac
4298 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4299 (eval "$ac_link") 2>&5
4300 ac_status=$?
4301 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4302 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
4303 { (case "(($ac_try" in
4304 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4305 *) ac_try_echo=$ac_try;;
4306 esac
4307 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4308 (eval "$ac_try") 2>&5
4309 ac_status=$?
4310 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4311 (exit $ac_status); }; }; then
4313 else
4314 echo "$as_me: program exited with status $ac_status" >&5
4315 echo "$as_me: failed program was:" >&5
4316 sed 's/^/| /' conftest.$ac_ext >&5
4318 ( exit $ac_status )
4319 ac_cv_header_stdc=no
4321 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
4327 { echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
4328 echo "${ECHO_T}$ac_cv_header_stdc" >&6; }
4329 if test $ac_cv_header_stdc = yes; then
4331 cat >>confdefs.h <<\_ACEOF
4332 #define STDC_HEADERS 1
4333 _ACEOF
4337 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
4347 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
4348 inttypes.h stdint.h unistd.h
4350 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
4351 { echo "$as_me:$LINENO: checking for $ac_header" >&5
4352 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
4353 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
4354 echo $ECHO_N "(cached) $ECHO_C" >&6
4355 else
4356 cat >conftest.$ac_ext <<_ACEOF
4357 /* confdefs.h. */
4358 _ACEOF
4359 cat confdefs.h >>conftest.$ac_ext
4360 cat >>conftest.$ac_ext <<_ACEOF
4361 /* end confdefs.h. */
4362 $ac_includes_default
4364 #include <$ac_header>
4365 _ACEOF
4366 rm -f conftest.$ac_objext
4367 if { (ac_try="$ac_compile"
4368 case "(($ac_try" in
4369 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4370 *) ac_try_echo=$ac_try;;
4371 esac
4372 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4373 (eval "$ac_compile") 2>conftest.er1
4374 ac_status=$?
4375 grep -v '^ *+' conftest.er1 >conftest.err
4376 rm -f conftest.er1
4377 cat conftest.err >&5
4378 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4379 (exit $ac_status); } && {
4380 test -z "$ac_c_werror_flag" ||
4381 test ! -s conftest.err
4382 } && test -s conftest.$ac_objext; then
4383 eval "$as_ac_Header=yes"
4384 else
4385 echo "$as_me: failed program was:" >&5
4386 sed 's/^/| /' conftest.$ac_ext >&5
4388 eval "$as_ac_Header=no"
4391 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4393 ac_res=`eval echo '${'$as_ac_Header'}'`
4394 { echo "$as_me:$LINENO: result: $ac_res" >&5
4395 echo "${ECHO_T}$ac_res" >&6; }
4396 if test `eval echo '${'$as_ac_Header'}'` = yes; then
4397 cat >>confdefs.h <<_ACEOF
4398 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
4399 _ACEOF
4403 done
4406 if test "${ac_cv_header_minix_config_h+set}" = set; then
4407 { echo "$as_me:$LINENO: checking for minix/config.h" >&5
4408 echo $ECHO_N "checking for minix/config.h... $ECHO_C" >&6; }
4409 if test "${ac_cv_header_minix_config_h+set}" = set; then
4410 echo $ECHO_N "(cached) $ECHO_C" >&6
4412 { echo "$as_me:$LINENO: result: $ac_cv_header_minix_config_h" >&5
4413 echo "${ECHO_T}$ac_cv_header_minix_config_h" >&6; }
4414 else
4415 # Is the header compilable?
4416 { echo "$as_me:$LINENO: checking minix/config.h usability" >&5
4417 echo $ECHO_N "checking minix/config.h usability... $ECHO_C" >&6; }
4418 cat >conftest.$ac_ext <<_ACEOF
4419 /* confdefs.h. */
4420 _ACEOF
4421 cat confdefs.h >>conftest.$ac_ext
4422 cat >>conftest.$ac_ext <<_ACEOF
4423 /* end confdefs.h. */
4424 $ac_includes_default
4425 #include <minix/config.h>
4426 _ACEOF
4427 rm -f conftest.$ac_objext
4428 if { (ac_try="$ac_compile"
4429 case "(($ac_try" in
4430 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4431 *) ac_try_echo=$ac_try;;
4432 esac
4433 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4434 (eval "$ac_compile") 2>conftest.er1
4435 ac_status=$?
4436 grep -v '^ *+' conftest.er1 >conftest.err
4437 rm -f conftest.er1
4438 cat conftest.err >&5
4439 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4440 (exit $ac_status); } && {
4441 test -z "$ac_c_werror_flag" ||
4442 test ! -s conftest.err
4443 } && test -s conftest.$ac_objext; then
4444 ac_header_compiler=yes
4445 else
4446 echo "$as_me: failed program was:" >&5
4447 sed 's/^/| /' conftest.$ac_ext >&5
4449 ac_header_compiler=no
4452 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4453 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
4454 echo "${ECHO_T}$ac_header_compiler" >&6; }
4456 # Is the header present?
4457 { echo "$as_me:$LINENO: checking minix/config.h presence" >&5
4458 echo $ECHO_N "checking minix/config.h presence... $ECHO_C" >&6; }
4459 cat >conftest.$ac_ext <<_ACEOF
4460 /* confdefs.h. */
4461 _ACEOF
4462 cat confdefs.h >>conftest.$ac_ext
4463 cat >>conftest.$ac_ext <<_ACEOF
4464 /* end confdefs.h. */
4465 #include <minix/config.h>
4466 _ACEOF
4467 if { (ac_try="$ac_cpp conftest.$ac_ext"
4468 case "(($ac_try" in
4469 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4470 *) ac_try_echo=$ac_try;;
4471 esac
4472 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4473 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
4474 ac_status=$?
4475 grep -v '^ *+' conftest.er1 >conftest.err
4476 rm -f conftest.er1
4477 cat conftest.err >&5
4478 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4479 (exit $ac_status); } >/dev/null && {
4480 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
4481 test ! -s conftest.err
4482 }; then
4483 ac_header_preproc=yes
4484 else
4485 echo "$as_me: failed program was:" >&5
4486 sed 's/^/| /' conftest.$ac_ext >&5
4488 ac_header_preproc=no
4491 rm -f conftest.err conftest.$ac_ext
4492 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
4493 echo "${ECHO_T}$ac_header_preproc" >&6; }
4495 # So? What about this header?
4496 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
4497 yes:no: )
4498 { echo "$as_me:$LINENO: WARNING: minix/config.h: accepted by the compiler, rejected by the preprocessor!" >&5
4499 echo "$as_me: WARNING: minix/config.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
4500 { echo "$as_me:$LINENO: WARNING: minix/config.h: proceeding with the compiler's result" >&5
4501 echo "$as_me: WARNING: minix/config.h: proceeding with the compiler's result" >&2;}
4502 ac_header_preproc=yes
4504 no:yes:* )
4505 { echo "$as_me:$LINENO: WARNING: minix/config.h: present but cannot be compiled" >&5
4506 echo "$as_me: WARNING: minix/config.h: present but cannot be compiled" >&2;}
4507 { echo "$as_me:$LINENO: WARNING: minix/config.h: check for missing prerequisite headers?" >&5
4508 echo "$as_me: WARNING: minix/config.h: check for missing prerequisite headers?" >&2;}
4509 { echo "$as_me:$LINENO: WARNING: minix/config.h: see the Autoconf documentation" >&5
4510 echo "$as_me: WARNING: minix/config.h: see the Autoconf documentation" >&2;}
4511 { echo "$as_me:$LINENO: WARNING: minix/config.h: section \"Present But Cannot Be Compiled\"" >&5
4512 echo "$as_me: WARNING: minix/config.h: section \"Present But Cannot Be Compiled\"" >&2;}
4513 { echo "$as_me:$LINENO: WARNING: minix/config.h: proceeding with the preprocessor's result" >&5
4514 echo "$as_me: WARNING: minix/config.h: proceeding with the preprocessor's result" >&2;}
4515 { echo "$as_me:$LINENO: WARNING: minix/config.h: in the future, the compiler will take precedence" >&5
4516 echo "$as_me: WARNING: minix/config.h: in the future, the compiler will take precedence" >&2;}
4519 esac
4520 { echo "$as_me:$LINENO: checking for minix/config.h" >&5
4521 echo $ECHO_N "checking for minix/config.h... $ECHO_C" >&6; }
4522 if test "${ac_cv_header_minix_config_h+set}" = set; then
4523 echo $ECHO_N "(cached) $ECHO_C" >&6
4524 else
4525 ac_cv_header_minix_config_h=$ac_header_preproc
4527 { echo "$as_me:$LINENO: result: $ac_cv_header_minix_config_h" >&5
4528 echo "${ECHO_T}$ac_cv_header_minix_config_h" >&6; }
4531 if test $ac_cv_header_minix_config_h = yes; then
4532 MINIX=yes
4533 else
4534 MINIX=
4538 if test "$MINIX" = yes; then
4540 cat >>confdefs.h <<\_ACEOF
4541 #define _POSIX_SOURCE 1
4542 _ACEOF
4545 cat >>confdefs.h <<\_ACEOF
4546 #define _POSIX_1_SOURCE 2
4547 _ACEOF
4550 cat >>confdefs.h <<\_ACEOF
4551 #define _MINIX 1
4552 _ACEOF
4566 { echo "$as_me:$LINENO: checking whether it is safe to define __EXTENSIONS__" >&5
4567 echo $ECHO_N "checking whether it is safe to define __EXTENSIONS__... $ECHO_C" >&6; }
4568 if test "${ac_cv_safe_to_define___extensions__+set}" = set; then
4569 echo $ECHO_N "(cached) $ECHO_C" >&6
4570 else
4571 cat >conftest.$ac_ext <<_ACEOF
4572 /* confdefs.h. */
4573 _ACEOF
4574 cat confdefs.h >>conftest.$ac_ext
4575 cat >>conftest.$ac_ext <<_ACEOF
4576 /* end confdefs.h. */
4578 # define __EXTENSIONS__ 1
4579 $ac_includes_default
4581 main ()
4585 return 0;
4587 _ACEOF
4588 rm -f conftest.$ac_objext
4589 if { (ac_try="$ac_compile"
4590 case "(($ac_try" in
4591 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4592 *) ac_try_echo=$ac_try;;
4593 esac
4594 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4595 (eval "$ac_compile") 2>conftest.er1
4596 ac_status=$?
4597 grep -v '^ *+' conftest.er1 >conftest.err
4598 rm -f conftest.er1
4599 cat conftest.err >&5
4600 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4601 (exit $ac_status); } && {
4602 test -z "$ac_c_werror_flag" ||
4603 test ! -s conftest.err
4604 } && test -s conftest.$ac_objext; then
4605 ac_cv_safe_to_define___extensions__=yes
4606 else
4607 echo "$as_me: failed program was:" >&5
4608 sed 's/^/| /' conftest.$ac_ext >&5
4610 ac_cv_safe_to_define___extensions__=no
4613 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4615 { echo "$as_me:$LINENO: result: $ac_cv_safe_to_define___extensions__" >&5
4616 echo "${ECHO_T}$ac_cv_safe_to_define___extensions__" >&6; }
4617 test $ac_cv_safe_to_define___extensions__ = yes &&
4618 cat >>confdefs.h <<\_ACEOF
4619 #define __EXTENSIONS__ 1
4620 _ACEOF
4622 cat >>confdefs.h <<\_ACEOF
4623 #define _POSIX_PTHREAD_SEMANTICS 1
4624 _ACEOF
4626 cat >>confdefs.h <<\_ACEOF
4627 #define _TANDEM_SOURCE 1
4628 _ACEOF
4632 ### Use -Wno-pointer-sign if the compiler supports it
4633 { echo "$as_me:$LINENO: checking whether gcc understands -Wno-pointer-sign" >&5
4634 echo $ECHO_N "checking whether gcc understands -Wno-pointer-sign... $ECHO_C" >&6; }
4635 SAVE_CFLAGS="$CFLAGS"
4636 CFLAGS="$CFLAGS -Wno-pointer-sign"
4637 cat >conftest.$ac_ext <<_ACEOF
4638 /* confdefs.h. */
4639 _ACEOF
4640 cat confdefs.h >>conftest.$ac_ext
4641 cat >>conftest.$ac_ext <<_ACEOF
4642 /* end confdefs.h. */
4645 main ()
4649 return 0;
4651 _ACEOF
4652 rm -f conftest.$ac_objext
4653 if { (ac_try="$ac_compile"
4654 case "(($ac_try" in
4655 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4656 *) ac_try_echo=$ac_try;;
4657 esac
4658 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4659 (eval "$ac_compile") 2>conftest.er1
4660 ac_status=$?
4661 grep -v '^ *+' conftest.er1 >conftest.err
4662 rm -f conftest.er1
4663 cat conftest.err >&5
4664 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4665 (exit $ac_status); } && {
4666 test -z "$ac_c_werror_flag" ||
4667 test ! -s conftest.err
4668 } && test -s conftest.$ac_objext; then
4669 has_option=yes
4670 else
4671 echo "$as_me: failed program was:" >&5
4672 sed 's/^/| /' conftest.$ac_ext >&5
4674 has_option=no
4677 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4678 if test $has_option = yes; then
4679 C_WARNINGS_SWITCH="-Wno-pointer-sign $C_WARNINGS_SWITCH"
4681 { echo "$as_me:$LINENO: result: $has_option" >&5
4682 echo "${ECHO_T}$has_option" >&6; }
4683 CFLAGS="$SAVE_CFLAGS"
4684 unset has_option
4685 unset SAVE_CFLAGS
4687 #### Some other nice autoconf tests.
4689 { echo "$as_me:$LINENO: checking whether ln -s works" >&5
4690 echo $ECHO_N "checking whether ln -s works... $ECHO_C" >&6; }
4691 LN_S=$as_ln_s
4692 if test "$LN_S" = "ln -s"; then
4693 { echo "$as_me:$LINENO: result: yes" >&5
4694 echo "${ECHO_T}yes" >&6; }
4695 else
4696 { echo "$as_me:$LINENO: result: no, using $LN_S" >&5
4697 echo "${ECHO_T}no, using $LN_S" >&6; }
4700 ac_ext=c
4701 ac_cpp='$CPP $CPPFLAGS'
4702 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4703 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4704 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4705 { echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
4706 echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6; }
4707 # On Suns, sometimes $CPP names a directory.
4708 if test -n "$CPP" && test -d "$CPP"; then
4709 CPP=
4711 if test -z "$CPP"; then
4712 if test "${ac_cv_prog_CPP+set}" = set; then
4713 echo $ECHO_N "(cached) $ECHO_C" >&6
4714 else
4715 # Double quotes because CPP needs to be expanded
4716 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
4718 ac_preproc_ok=false
4719 for ac_c_preproc_warn_flag in '' yes
4721 # Use a header file that comes with gcc, so configuring glibc
4722 # with a fresh cross-compiler works.
4723 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4724 # <limits.h> exists even on freestanding compilers.
4725 # On the NeXT, cc -E runs the code through the compiler's parser,
4726 # not just through cpp. "Syntax error" is here to catch this case.
4727 cat >conftest.$ac_ext <<_ACEOF
4728 /* confdefs.h. */
4729 _ACEOF
4730 cat confdefs.h >>conftest.$ac_ext
4731 cat >>conftest.$ac_ext <<_ACEOF
4732 /* end confdefs.h. */
4733 #ifdef __STDC__
4734 # include <limits.h>
4735 #else
4736 # include <assert.h>
4737 #endif
4738 Syntax error
4739 _ACEOF
4740 if { (ac_try="$ac_cpp conftest.$ac_ext"
4741 case "(($ac_try" in
4742 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4743 *) ac_try_echo=$ac_try;;
4744 esac
4745 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4746 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
4747 ac_status=$?
4748 grep -v '^ *+' conftest.er1 >conftest.err
4749 rm -f conftest.er1
4750 cat conftest.err >&5
4751 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4752 (exit $ac_status); } >/dev/null && {
4753 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
4754 test ! -s conftest.err
4755 }; then
4757 else
4758 echo "$as_me: failed program was:" >&5
4759 sed 's/^/| /' conftest.$ac_ext >&5
4761 # Broken: fails on valid input.
4762 continue
4765 rm -f conftest.err conftest.$ac_ext
4767 # OK, works on sane cases. Now check whether nonexistent headers
4768 # can be detected and how.
4769 cat >conftest.$ac_ext <<_ACEOF
4770 /* confdefs.h. */
4771 _ACEOF
4772 cat confdefs.h >>conftest.$ac_ext
4773 cat >>conftest.$ac_ext <<_ACEOF
4774 /* end confdefs.h. */
4775 #include <ac_nonexistent.h>
4776 _ACEOF
4777 if { (ac_try="$ac_cpp conftest.$ac_ext"
4778 case "(($ac_try" in
4779 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4780 *) ac_try_echo=$ac_try;;
4781 esac
4782 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4783 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
4784 ac_status=$?
4785 grep -v '^ *+' conftest.er1 >conftest.err
4786 rm -f conftest.er1
4787 cat conftest.err >&5
4788 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4789 (exit $ac_status); } >/dev/null && {
4790 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
4791 test ! -s conftest.err
4792 }; then
4793 # Broken: success on invalid input.
4794 continue
4795 else
4796 echo "$as_me: failed program was:" >&5
4797 sed 's/^/| /' conftest.$ac_ext >&5
4799 # Passes both tests.
4800 ac_preproc_ok=:
4801 break
4804 rm -f conftest.err conftest.$ac_ext
4806 done
4807 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4808 rm -f conftest.err conftest.$ac_ext
4809 if $ac_preproc_ok; then
4810 break
4813 done
4814 ac_cv_prog_CPP=$CPP
4817 CPP=$ac_cv_prog_CPP
4818 else
4819 ac_cv_prog_CPP=$CPP
4821 { echo "$as_me:$LINENO: result: $CPP" >&5
4822 echo "${ECHO_T}$CPP" >&6; }
4823 ac_preproc_ok=false
4824 for ac_c_preproc_warn_flag in '' yes
4826 # Use a header file that comes with gcc, so configuring glibc
4827 # with a fresh cross-compiler works.
4828 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4829 # <limits.h> exists even on freestanding compilers.
4830 # On the NeXT, cc -E runs the code through the compiler's parser,
4831 # not just through cpp. "Syntax error" is here to catch this case.
4832 cat >conftest.$ac_ext <<_ACEOF
4833 /* confdefs.h. */
4834 _ACEOF
4835 cat confdefs.h >>conftest.$ac_ext
4836 cat >>conftest.$ac_ext <<_ACEOF
4837 /* end confdefs.h. */
4838 #ifdef __STDC__
4839 # include <limits.h>
4840 #else
4841 # include <assert.h>
4842 #endif
4843 Syntax error
4844 _ACEOF
4845 if { (ac_try="$ac_cpp conftest.$ac_ext"
4846 case "(($ac_try" in
4847 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4848 *) ac_try_echo=$ac_try;;
4849 esac
4850 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4851 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
4852 ac_status=$?
4853 grep -v '^ *+' conftest.er1 >conftest.err
4854 rm -f conftest.er1
4855 cat conftest.err >&5
4856 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4857 (exit $ac_status); } >/dev/null && {
4858 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
4859 test ! -s conftest.err
4860 }; then
4862 else
4863 echo "$as_me: failed program was:" >&5
4864 sed 's/^/| /' conftest.$ac_ext >&5
4866 # Broken: fails on valid input.
4867 continue
4870 rm -f conftest.err conftest.$ac_ext
4872 # OK, works on sane cases. Now check whether nonexistent headers
4873 # can be detected and how.
4874 cat >conftest.$ac_ext <<_ACEOF
4875 /* confdefs.h. */
4876 _ACEOF
4877 cat confdefs.h >>conftest.$ac_ext
4878 cat >>conftest.$ac_ext <<_ACEOF
4879 /* end confdefs.h. */
4880 #include <ac_nonexistent.h>
4881 _ACEOF
4882 if { (ac_try="$ac_cpp conftest.$ac_ext"
4883 case "(($ac_try" in
4884 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4885 *) ac_try_echo=$ac_try;;
4886 esac
4887 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4888 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
4889 ac_status=$?
4890 grep -v '^ *+' conftest.er1 >conftest.err
4891 rm -f conftest.er1
4892 cat conftest.err >&5
4893 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4894 (exit $ac_status); } >/dev/null && {
4895 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
4896 test ! -s conftest.err
4897 }; then
4898 # Broken: success on invalid input.
4899 continue
4900 else
4901 echo "$as_me: failed program was:" >&5
4902 sed 's/^/| /' conftest.$ac_ext >&5
4904 # Passes both tests.
4905 ac_preproc_ok=:
4906 break
4909 rm -f conftest.err conftest.$ac_ext
4911 done
4912 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4913 rm -f conftest.err conftest.$ac_ext
4914 if $ac_preproc_ok; then
4916 else
4917 { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
4918 See \`config.log' for more details." >&5
4919 echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
4920 See \`config.log' for more details." >&2;}
4921 { (exit 1); exit 1; }; }
4924 ac_ext=c
4925 ac_cpp='$CPP $CPPFLAGS'
4926 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4927 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4928 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4930 # Find a good install program. We prefer a C program (faster),
4931 # so one script is as good as another. But avoid the broken or
4932 # incompatible versions:
4933 # SysV /etc/install, /usr/sbin/install
4934 # SunOS /usr/etc/install
4935 # IRIX /sbin/install
4936 # AIX /bin/install
4937 # AmigaOS /C/install, which installs bootblocks on floppy discs
4938 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
4939 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
4940 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
4941 # OS/2's system install, which has a completely different semantic
4942 # ./install, which can be erroneously created by make from ./install.sh.
4943 { echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
4944 echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6; }
4945 if test -z "$INSTALL"; then
4946 if test "${ac_cv_path_install+set}" = set; then
4947 echo $ECHO_N "(cached) $ECHO_C" >&6
4948 else
4949 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4950 for as_dir in $PATH
4952 IFS=$as_save_IFS
4953 test -z "$as_dir" && as_dir=.
4954 # Account for people who put trailing slashes in PATH elements.
4955 case $as_dir/ in
4956 ./ | .// | /cC/* | \
4957 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
4958 ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
4959 /usr/ucb/* ) ;;
4961 # OSF1 and SCO ODT 3.0 have their own names for install.
4962 # Don't use installbsd from OSF since it installs stuff as root
4963 # by default.
4964 for ac_prog in ginstall scoinst install; do
4965 for ac_exec_ext in '' $ac_executable_extensions; do
4966 if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; }; then
4967 if test $ac_prog = install &&
4968 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
4969 # AIX install. It has an incompatible calling convention.
4971 elif test $ac_prog = install &&
4972 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
4973 # program-specific install script used by HP pwplus--don't use.
4975 else
4976 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
4977 break 3
4980 done
4981 done
4983 esac
4984 done
4985 IFS=$as_save_IFS
4989 if test "${ac_cv_path_install+set}" = set; then
4990 INSTALL=$ac_cv_path_install
4991 else
4992 # As a last resort, use the slow shell script. Don't cache a
4993 # value for INSTALL within a source directory, because that will
4994 # break other packages using the cache if that directory is
4995 # removed, or if the value is a relative name.
4996 INSTALL=$ac_install_sh
4999 { echo "$as_me:$LINENO: result: $INSTALL" >&5
5000 echo "${ECHO_T}$INSTALL" >&6; }
5002 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
5003 # It thinks the first close brace ends the variable substitution.
5004 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
5006 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
5008 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
5010 if test "x$RANLIB" = x; then
5011 if test -n "$ac_tool_prefix"; then
5012 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
5013 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
5014 { echo "$as_me:$LINENO: checking for $ac_word" >&5
5015 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5016 if test "${ac_cv_prog_RANLIB+set}" = set; then
5017 echo $ECHO_N "(cached) $ECHO_C" >&6
5018 else
5019 if test -n "$RANLIB"; then
5020 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
5021 else
5022 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5023 for as_dir in $PATH
5025 IFS=$as_save_IFS
5026 test -z "$as_dir" && as_dir=.
5027 for ac_exec_ext in '' $ac_executable_extensions; do
5028 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5029 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
5030 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5031 break 2
5033 done
5034 done
5035 IFS=$as_save_IFS
5039 RANLIB=$ac_cv_prog_RANLIB
5040 if test -n "$RANLIB"; then
5041 { echo "$as_me:$LINENO: result: $RANLIB" >&5
5042 echo "${ECHO_T}$RANLIB" >&6; }
5043 else
5044 { echo "$as_me:$LINENO: result: no" >&5
5045 echo "${ECHO_T}no" >&6; }
5050 if test -z "$ac_cv_prog_RANLIB"; then
5051 ac_ct_RANLIB=$RANLIB
5052 # Extract the first word of "ranlib", so it can be a program name with args.
5053 set dummy ranlib; ac_word=$2
5054 { echo "$as_me:$LINENO: checking for $ac_word" >&5
5055 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5056 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
5057 echo $ECHO_N "(cached) $ECHO_C" >&6
5058 else
5059 if test -n "$ac_ct_RANLIB"; then
5060 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
5061 else
5062 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5063 for as_dir in $PATH
5065 IFS=$as_save_IFS
5066 test -z "$as_dir" && as_dir=.
5067 for ac_exec_ext in '' $ac_executable_extensions; do
5068 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5069 ac_cv_prog_ac_ct_RANLIB="ranlib"
5070 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5071 break 2
5073 done
5074 done
5075 IFS=$as_save_IFS
5079 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
5080 if test -n "$ac_ct_RANLIB"; then
5081 { echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
5082 echo "${ECHO_T}$ac_ct_RANLIB" >&6; }
5083 else
5084 { echo "$as_me:$LINENO: result: no" >&5
5085 echo "${ECHO_T}no" >&6; }
5088 if test "x$ac_ct_RANLIB" = x; then
5089 RANLIB=":"
5090 else
5091 case $cross_compiling:$ac_tool_warned in
5092 yes:)
5093 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
5094 whose name does not start with the host triplet. If you think this
5095 configuration is useful to you, please write to autoconf@gnu.org." >&5
5096 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
5097 whose name does not start with the host triplet. If you think this
5098 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
5099 ac_tool_warned=yes ;;
5100 esac
5101 RANLIB=$ac_ct_RANLIB
5103 else
5104 RANLIB="$ac_cv_prog_RANLIB"
5108 # Extract the first word of "install-info", so it can be a program name with args.
5109 set dummy install-info; ac_word=$2
5110 { echo "$as_me:$LINENO: checking for $ac_word" >&5
5111 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5112 if test "${ac_cv_path_INSTALL_INFO+set}" = set; then
5113 echo $ECHO_N "(cached) $ECHO_C" >&6
5114 else
5115 case $INSTALL_INFO in
5116 [\\/]* | ?:[\\/]*)
5117 ac_cv_path_INSTALL_INFO="$INSTALL_INFO" # Let the user override the test with a path.
5120 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5121 for as_dir in $PATH
5123 IFS=$as_save_IFS
5124 test -z "$as_dir" && as_dir=.
5125 for ac_exec_ext in '' $ac_executable_extensions; do
5126 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5127 ac_cv_path_INSTALL_INFO="$as_dir/$ac_word$ac_exec_ext"
5128 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5129 break 2
5131 done
5132 done
5133 IFS=$as_save_IFS
5136 esac
5138 INSTALL_INFO=$ac_cv_path_INSTALL_INFO
5139 if test -n "$INSTALL_INFO"; then
5140 { echo "$as_me:$LINENO: result: $INSTALL_INFO" >&5
5141 echo "${ECHO_T}$INSTALL_INFO" >&6; }
5142 else
5143 { echo "$as_me:$LINENO: result: no" >&5
5144 echo "${ECHO_T}no" >&6; }
5148 # Extract the first word of "install-info", so it can be a program name with args.
5149 set dummy install-info; ac_word=$2
5150 { echo "$as_me:$LINENO: checking for $ac_word" >&5
5151 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5152 if test "${ac_cv_path_INSTALL_INFO+set}" = set; then
5153 echo $ECHO_N "(cached) $ECHO_C" >&6
5154 else
5155 case $INSTALL_INFO in
5156 [\\/]* | ?:[\\/]*)
5157 ac_cv_path_INSTALL_INFO="$INSTALL_INFO" # Let the user override the test with a path.
5160 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5161 for as_dir in /usr/sbin
5163 IFS=$as_save_IFS
5164 test -z "$as_dir" && as_dir=.
5165 for ac_exec_ext in '' $ac_executable_extensions; do
5166 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5167 ac_cv_path_INSTALL_INFO="$as_dir/$ac_word$ac_exec_ext"
5168 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5169 break 2
5171 done
5172 done
5173 IFS=$as_save_IFS
5176 esac
5178 INSTALL_INFO=$ac_cv_path_INSTALL_INFO
5179 if test -n "$INSTALL_INFO"; then
5180 { echo "$as_me:$LINENO: result: $INSTALL_INFO" >&5
5181 echo "${ECHO_T}$INSTALL_INFO" >&6; }
5182 else
5183 { echo "$as_me:$LINENO: result: no" >&5
5184 echo "${ECHO_T}no" >&6; }
5188 # Extract the first word of "install-info", so it can be a program name with args.
5189 set dummy install-info; ac_word=$2
5190 { echo "$as_me:$LINENO: checking for $ac_word" >&5
5191 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5192 if test "${ac_cv_path_INSTALL_INFO+set}" = set; then
5193 echo $ECHO_N "(cached) $ECHO_C" >&6
5194 else
5195 case $INSTALL_INFO in
5196 [\\/]* | ?:[\\/]*)
5197 ac_cv_path_INSTALL_INFO="$INSTALL_INFO" # Let the user override the test with a path.
5200 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5201 for as_dir in /sbin
5203 IFS=$as_save_IFS
5204 test -z "$as_dir" && as_dir=.
5205 for ac_exec_ext in '' $ac_executable_extensions; do
5206 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5207 ac_cv_path_INSTALL_INFO="$as_dir/$ac_word$ac_exec_ext"
5208 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5209 break 2
5211 done
5212 done
5213 IFS=$as_save_IFS
5215 test -z "$ac_cv_path_INSTALL_INFO" && ac_cv_path_INSTALL_INFO=":"
5217 esac
5219 INSTALL_INFO=$ac_cv_path_INSTALL_INFO
5220 if test -n "$INSTALL_INFO"; then
5221 { echo "$as_me:$LINENO: result: $INSTALL_INFO" >&5
5222 echo "${ECHO_T}$INSTALL_INFO" >&6; }
5223 else
5224 { echo "$as_me:$LINENO: result: no" >&5
5225 echo "${ECHO_T}no" >&6; }
5229 # Extract the first word of "gzip", so it can be a program name with args.
5230 set dummy gzip; 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_path_GZIP_PROG+set}" = set; then
5234 echo $ECHO_N "(cached) $ECHO_C" >&6
5235 else
5236 case $GZIP_PROG in
5237 [\\/]* | ?:[\\/]*)
5238 ac_cv_path_GZIP_PROG="$GZIP_PROG" # Let the user override the test with a path.
5241 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5242 for as_dir in $PATH
5244 IFS=$as_save_IFS
5245 test -z "$as_dir" && as_dir=.
5246 for ac_exec_ext in '' $ac_executable_extensions; do
5247 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5248 ac_cv_path_GZIP_PROG="$as_dir/$ac_word$ac_exec_ext"
5249 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5250 break 2
5252 done
5253 done
5254 IFS=$as_save_IFS
5257 esac
5259 GZIP_PROG=$ac_cv_path_GZIP_PROG
5260 if test -n "$GZIP_PROG"; then
5261 { echo "$as_me:$LINENO: result: $GZIP_PROG" >&5
5262 echo "${ECHO_T}$GZIP_PROG" >&6; }
5263 else
5264 { echo "$as_me:$LINENO: result: no" >&5
5265 echo "${ECHO_T}no" >&6; }
5271 ## Need makeinfo >= 4.6 (?) to build the manuals.
5272 # Extract the first word of "makeinfo", so it can be a program name with args.
5273 set dummy makeinfo; ac_word=$2
5274 { echo "$as_me:$LINENO: checking for $ac_word" >&5
5275 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5276 if test "${ac_cv_path_MAKEINFO+set}" = set; then
5277 echo $ECHO_N "(cached) $ECHO_C" >&6
5278 else
5279 case $MAKEINFO in
5280 [\\/]* | ?:[\\/]*)
5281 ac_cv_path_MAKEINFO="$MAKEINFO" # Let the user override the test with a path.
5284 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5285 for as_dir in $PATH
5287 IFS=$as_save_IFS
5288 test -z "$as_dir" && as_dir=.
5289 for ac_exec_ext in '' $ac_executable_extensions; do
5290 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5291 ac_cv_path_MAKEINFO="$as_dir/$ac_word$ac_exec_ext"
5292 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5293 break 2
5295 done
5296 done
5297 IFS=$as_save_IFS
5299 test -z "$ac_cv_path_MAKEINFO" && ac_cv_path_MAKEINFO="no"
5301 esac
5303 MAKEINFO=$ac_cv_path_MAKEINFO
5304 if test -n "$MAKEINFO"; then
5305 { echo "$as_me:$LINENO: result: $MAKEINFO" >&5
5306 echo "${ECHO_T}$MAKEINFO" >&6; }
5307 else
5308 { echo "$as_me:$LINENO: result: no" >&5
5309 echo "${ECHO_T}no" >&6; }
5313 if test "$MAKEINFO" != "no" && \
5314 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
5315 MAKEINFO=no
5318 ## Makeinfo is unusual. For a released Emacs, the manuals are
5319 ## pre-built, and not deleted by the normal clean rules. makeinfo is
5320 ## therefore in the category of "special tools" not normally required, which
5321 ## configure does not have to check for (eg autoconf itself).
5322 ## In a CVS checkout on the other hand, the manuals are not included.
5323 ## So makeinfo is a requirement to build from CVS, and configure
5324 ## should test for it as it does for any other build requirement.
5325 ## We use the presence of $srcdir/info/emacs to distinguish a release,
5326 ## with pre-built manuals, from a CVS checkout.
5327 if test "$MAKEINFO" = "no"; then
5328 if test "x${with_makeinfo}" = "xno"; then
5329 MAKEINFO=off
5330 elif ! test -e $srcdir/info/emacs; then
5331 { { echo "$as_me:$LINENO: error: You do not seem to have makeinfo >= 4.6, and your
5332 source tree does not seem to have pre-built manuals in the \`info' directory.
5333 Either install a suitable version of makeinfo, or re-run configure
5334 with the \`--without-makeinfo' option to build without the manuals. " >&5
5335 echo "$as_me: error: You do not seem to have makeinfo >= 4.6, and your
5336 source tree does not seem to have pre-built manuals in the \`info' directory.
5337 Either install a suitable version of makeinfo, or re-run configure
5338 with the \`--without-makeinfo' option to build without the manuals. " >&2;}
5339 { (exit 1); exit 1; }; }
5344 if test x$GCC = xyes && test "x$GCC_LINK_TEST_OPTIONS" != x
5345 then
5346 ac_link="$ac_link $GCC_LINK_TEST_OPTIONS"
5349 if test x$GCC = x && test "x$NON_GCC_LINK_TEST_OPTIONS" != x
5350 then
5351 ac_link="$ac_link $NON_GCC_LINK_TEST_OPTIONS"
5355 late_LDFLAGS=$LDFLAGS
5356 if test "$GCC" = yes; then
5357 LDFLAGS="$LDFLAGS -Wl,-znocombreloc"
5358 else
5359 LDFLAGS="$LDFLAGS -znocombreloc"
5362 { echo "$as_me:$LINENO: checking for -znocombreloc" >&5
5363 echo $ECHO_N "checking for -znocombreloc... $ECHO_C" >&6; }
5364 cat >conftest.$ac_ext <<_ACEOF
5365 main(){return 0;}
5366 _ACEOF
5367 rm -f conftest.$ac_objext conftest$ac_exeext
5368 if { (ac_try="$ac_link"
5369 case "(($ac_try" in
5370 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5371 *) ac_try_echo=$ac_try;;
5372 esac
5373 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5374 (eval "$ac_link") 2>conftest.er1
5375 ac_status=$?
5376 grep -v '^ *+' conftest.er1 >conftest.err
5377 rm -f conftest.er1
5378 cat conftest.err >&5
5379 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5380 (exit $ac_status); } && {
5381 test -z "$ac_c_werror_flag" ||
5382 test ! -s conftest.err
5383 } && test -s conftest$ac_exeext &&
5384 $as_test_x conftest$ac_exeext; then
5385 { echo "$as_me:$LINENO: result: yes" >&5
5386 echo "${ECHO_T}yes" >&6; }
5387 else
5388 echo "$as_me: failed program was:" >&5
5389 sed 's/^/| /' conftest.$ac_ext >&5
5391 LDFLAGS=$late_LDFLAGS
5392 { echo "$as_me:$LINENO: result: no" >&5
5393 echo "${ECHO_T}no" >&6; }
5396 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
5397 conftest$ac_exeext conftest.$ac_ext
5399 #### Extract some information from the operating system and machine files.
5401 { echo "$as_me:$LINENO: checking the machine- and system-dependent files to find out
5402 - which libraries the lib-src programs will want, and
5403 - whether the GNU malloc routines are usable..." >&5
5404 echo "$as_me: checking the machine- and system-dependent files to find out
5405 - which libraries the lib-src programs will want, and
5406 - whether the GNU malloc routines are usable..." >&6;}
5408 ### First figure out CFLAGS (which we use for running the compiler here)
5409 ### and REAL_CFLAGS (which we use for real compilation).
5410 ### The two are the same except on a few systems, where they are made
5411 ### different to work around various lossages. For example,
5412 ### GCC 2.5 on GNU/Linux needs them to be different because it treats -g
5413 ### as implying static linking.
5415 ### If the CFLAGS env var is specified, we use that value
5416 ### instead of the default.
5418 ### It's not important that this name contain the PID; you can't run
5419 ### two configures in the same directory and have anything work
5420 ### anyway.
5421 tempcname="conftest.c"
5423 echo '
5424 #include "'${srcdir}'/src/'${opsysfile}'"
5425 #include "'${srcdir}'/src/'${machfile}'"
5426 #ifndef LIBS_MACHINE
5427 #define LIBS_MACHINE
5428 #endif
5429 #ifndef LIBS_SYSTEM
5430 #define LIBS_SYSTEM
5431 #endif
5432 #ifndef C_SWITCH_SYSTEM
5433 #define C_SWITCH_SYSTEM
5434 #endif
5435 #ifndef C_SWITCH_MACHINE
5436 #define C_SWITCH_MACHINE
5437 #endif
5438 configure___ libsrc_libs=LIBS_MACHINE LIBS_SYSTEM
5439 configure___ c_switch_system=C_SWITCH_SYSTEM
5440 configure___ c_switch_machine=C_SWITCH_MACHINE
5442 #ifndef LIB_X11_LIB
5443 #define LIB_X11_LIB -lX11
5444 #endif
5446 #ifndef LIBX11_SYSTEM
5447 #define LIBX11_SYSTEM
5448 #endif
5449 configure___ LIBX=LIB_X11_LIB LIBX11_SYSTEM
5451 #ifdef UNEXEC
5452 configure___ unexec=UNEXEC
5453 #else
5454 configure___ unexec=unexec.o
5455 #endif
5457 #ifdef SYSTEM_MALLOC
5458 configure___ system_malloc=yes
5459 #else
5460 configure___ system_malloc=no
5461 #endif
5463 #ifdef USE_MMAP_FOR_BUFFERS
5464 configure___ use_mmap_for_buffers=yes
5465 #else
5466 configure___ use_mmap_for_buffers=no
5467 #endif
5469 #ifndef C_DEBUG_SWITCH
5470 #define C_DEBUG_SWITCH -g
5471 #endif
5473 #ifndef C_OPTIMIZE_SWITCH
5474 #ifdef __GNUC__
5475 #define C_OPTIMIZE_SWITCH -O2
5476 #else
5477 #define C_OPTIMIZE_SWITCH -O
5478 #endif
5479 #endif
5481 #ifndef C_WARNINGS_SWITCH
5482 #define C_WARNINGS_SWITCH ${C_WARNINGS_SWITCH}
5483 #endif
5485 #ifndef LD_SWITCH_MACHINE
5486 #define LD_SWITCH_MACHINE
5487 #endif
5489 #ifndef LD_SWITCH_SYSTEM
5490 #define LD_SWITCH_SYSTEM
5491 #endif
5493 #ifndef LD_SWITCH_X_SITE_AUX
5494 #define LD_SWITCH_X_SITE_AUX
5495 #endif
5497 configure___ ld_switch_system=LD_SWITCH_SYSTEM
5498 configure___ ld_switch_machine=LD_SWITCH_MACHINE
5500 #ifdef THIS_IS_CONFIGURE
5502 /* Get the CFLAGS for tests in configure. */
5503 #ifdef __GNUC__
5504 configure___ CFLAGS=C_DEBUG_SWITCH C_OPTIMIZE_SWITCH '${SPECIFIED_CFLAGS}'
5505 #else
5506 configure___ CFLAGS=C_DEBUG_SWITCH '${SPECIFIED_CFLAGS}'
5507 #endif
5509 #else /* not THIS_IS_CONFIGURE */
5511 /* Get the CFLAGS for real compilation. */
5512 #ifdef __GNUC__
5513 configure___ REAL_CFLAGS=C_DEBUG_SWITCH C_OPTIMIZE_SWITCH C_WARNINGS_SWITCH '${SPECIFIED_CFLAGS}'
5514 #else
5515 configure___ REAL_CFLAGS=C_DEBUG_SWITCH '${SPECIFIED_CFLAGS}'
5516 #endif
5518 #endif /* not THIS_IS_CONFIGURE */
5519 ' > ${tempcname}
5521 # The value of CPP is a quoted variable reference, so we need to do this
5522 # to get its actual value...
5523 CPP=`eval "echo $CPP"`
5524 eval `${CPP} -Isrc ${tempcname} \
5525 | sed -n -e 's/^configure___ \([^=]*=\)\(.*\)$/\1"\2"/p'`
5526 if test "x$SPECIFIED_CFLAGS" = x; then
5527 eval `${CPP} -Isrc -DTHIS_IS_CONFIGURE ${tempcname} \
5528 | sed -n -e 's/^configure___ \([^=]*=\)\(.*\)$/\1"\2"/p'`
5529 else
5530 REAL_CFLAGS="$CFLAGS"
5532 rm ${tempcname}
5534 ac_link="$ac_link $ld_switch_machine $ld_switch_system"
5536 ### Make sure subsequent tests use flags consistent with the build flags.
5538 if test x"${OVERRIDE_CPPFLAGS}" != x; then
5539 CPPFLAGS="${OVERRIDE_CPPFLAGS}"
5540 else
5541 CPPFLAGS="$c_switch_system $c_switch_machine $CPPFLAGS"
5546 # Check whether --enable-largefile was given.
5547 if test "${enable_largefile+set}" = set; then
5548 enableval=$enable_largefile;
5551 if test "$enable_largefile" != no; then
5553 { echo "$as_me:$LINENO: checking for special C compiler options needed for large files" >&5
5554 echo $ECHO_N "checking for special C compiler options needed for large files... $ECHO_C" >&6; }
5555 if test "${ac_cv_sys_largefile_CC+set}" = set; then
5556 echo $ECHO_N "(cached) $ECHO_C" >&6
5557 else
5558 ac_cv_sys_largefile_CC=no
5559 if test "$GCC" != yes; then
5560 ac_save_CC=$CC
5561 while :; do
5562 # IRIX 6.2 and later do not support large files by default,
5563 # so use the C compiler's -n32 option if that helps.
5564 cat >conftest.$ac_ext <<_ACEOF
5565 /* confdefs.h. */
5566 _ACEOF
5567 cat confdefs.h >>conftest.$ac_ext
5568 cat >>conftest.$ac_ext <<_ACEOF
5569 /* end confdefs.h. */
5570 #include <sys/types.h>
5571 /* Check that off_t can represent 2**63 - 1 correctly.
5572 We can't simply define LARGE_OFF_T to be 9223372036854775807,
5573 since some C++ compilers masquerading as C compilers
5574 incorrectly reject 9223372036854775807. */
5575 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
5576 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
5577 && LARGE_OFF_T % 2147483647 == 1)
5578 ? 1 : -1];
5580 main ()
5584 return 0;
5586 _ACEOF
5587 rm -f conftest.$ac_objext
5588 if { (ac_try="$ac_compile"
5589 case "(($ac_try" in
5590 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5591 *) ac_try_echo=$ac_try;;
5592 esac
5593 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5594 (eval "$ac_compile") 2>conftest.er1
5595 ac_status=$?
5596 grep -v '^ *+' conftest.er1 >conftest.err
5597 rm -f conftest.er1
5598 cat conftest.err >&5
5599 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5600 (exit $ac_status); } && {
5601 test -z "$ac_c_werror_flag" ||
5602 test ! -s conftest.err
5603 } && test -s conftest.$ac_objext; then
5604 break
5605 else
5606 echo "$as_me: failed program was:" >&5
5607 sed 's/^/| /' conftest.$ac_ext >&5
5612 rm -f core conftest.err conftest.$ac_objext
5613 CC="$CC -n32"
5614 rm -f conftest.$ac_objext
5615 if { (ac_try="$ac_compile"
5616 case "(($ac_try" in
5617 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5618 *) ac_try_echo=$ac_try;;
5619 esac
5620 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5621 (eval "$ac_compile") 2>conftest.er1
5622 ac_status=$?
5623 grep -v '^ *+' conftest.er1 >conftest.err
5624 rm -f conftest.er1
5625 cat conftest.err >&5
5626 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5627 (exit $ac_status); } && {
5628 test -z "$ac_c_werror_flag" ||
5629 test ! -s conftest.err
5630 } && test -s conftest.$ac_objext; then
5631 ac_cv_sys_largefile_CC=' -n32'; break
5632 else
5633 echo "$as_me: failed program was:" >&5
5634 sed 's/^/| /' conftest.$ac_ext >&5
5639 rm -f core conftest.err conftest.$ac_objext
5640 break
5641 done
5642 CC=$ac_save_CC
5643 rm -f conftest.$ac_ext
5646 { echo "$as_me:$LINENO: result: $ac_cv_sys_largefile_CC" >&5
5647 echo "${ECHO_T}$ac_cv_sys_largefile_CC" >&6; }
5648 if test "$ac_cv_sys_largefile_CC" != no; then
5649 CC=$CC$ac_cv_sys_largefile_CC
5652 { echo "$as_me:$LINENO: checking for _FILE_OFFSET_BITS value needed for large files" >&5
5653 echo $ECHO_N "checking for _FILE_OFFSET_BITS value needed for large files... $ECHO_C" >&6; }
5654 if test "${ac_cv_sys_file_offset_bits+set}" = set; then
5655 echo $ECHO_N "(cached) $ECHO_C" >&6
5656 else
5657 while :; do
5658 cat >conftest.$ac_ext <<_ACEOF
5659 /* confdefs.h. */
5660 _ACEOF
5661 cat confdefs.h >>conftest.$ac_ext
5662 cat >>conftest.$ac_ext <<_ACEOF
5663 /* end confdefs.h. */
5664 #include <sys/types.h>
5665 /* Check that off_t can represent 2**63 - 1 correctly.
5666 We can't simply define LARGE_OFF_T to be 9223372036854775807,
5667 since some C++ compilers masquerading as C compilers
5668 incorrectly reject 9223372036854775807. */
5669 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
5670 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
5671 && LARGE_OFF_T % 2147483647 == 1)
5672 ? 1 : -1];
5674 main ()
5678 return 0;
5680 _ACEOF
5681 rm -f conftest.$ac_objext
5682 if { (ac_try="$ac_compile"
5683 case "(($ac_try" in
5684 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5685 *) ac_try_echo=$ac_try;;
5686 esac
5687 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5688 (eval "$ac_compile") 2>conftest.er1
5689 ac_status=$?
5690 grep -v '^ *+' conftest.er1 >conftest.err
5691 rm -f conftest.er1
5692 cat conftest.err >&5
5693 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5694 (exit $ac_status); } && {
5695 test -z "$ac_c_werror_flag" ||
5696 test ! -s conftest.err
5697 } && test -s conftest.$ac_objext; then
5698 ac_cv_sys_file_offset_bits=no; break
5699 else
5700 echo "$as_me: failed program was:" >&5
5701 sed 's/^/| /' conftest.$ac_ext >&5
5706 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5707 cat >conftest.$ac_ext <<_ACEOF
5708 /* confdefs.h. */
5709 _ACEOF
5710 cat confdefs.h >>conftest.$ac_ext
5711 cat >>conftest.$ac_ext <<_ACEOF
5712 /* end confdefs.h. */
5713 #define _FILE_OFFSET_BITS 64
5714 #include <sys/types.h>
5715 /* Check that off_t can represent 2**63 - 1 correctly.
5716 We can't simply define LARGE_OFF_T to be 9223372036854775807,
5717 since some C++ compilers masquerading as C compilers
5718 incorrectly reject 9223372036854775807. */
5719 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
5720 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
5721 && LARGE_OFF_T % 2147483647 == 1)
5722 ? 1 : -1];
5724 main ()
5728 return 0;
5730 _ACEOF
5731 rm -f conftest.$ac_objext
5732 if { (ac_try="$ac_compile"
5733 case "(($ac_try" in
5734 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5735 *) ac_try_echo=$ac_try;;
5736 esac
5737 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5738 (eval "$ac_compile") 2>conftest.er1
5739 ac_status=$?
5740 grep -v '^ *+' conftest.er1 >conftest.err
5741 rm -f conftest.er1
5742 cat conftest.err >&5
5743 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5744 (exit $ac_status); } && {
5745 test -z "$ac_c_werror_flag" ||
5746 test ! -s conftest.err
5747 } && test -s conftest.$ac_objext; then
5748 ac_cv_sys_file_offset_bits=64; break
5749 else
5750 echo "$as_me: failed program was:" >&5
5751 sed 's/^/| /' conftest.$ac_ext >&5
5756 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5757 ac_cv_sys_file_offset_bits=unknown
5758 break
5759 done
5761 { echo "$as_me:$LINENO: result: $ac_cv_sys_file_offset_bits" >&5
5762 echo "${ECHO_T}$ac_cv_sys_file_offset_bits" >&6; }
5763 case $ac_cv_sys_file_offset_bits in #(
5764 no | unknown) ;;
5766 cat >>confdefs.h <<_ACEOF
5767 #define _FILE_OFFSET_BITS $ac_cv_sys_file_offset_bits
5768 _ACEOF
5770 esac
5771 rm -f conftest*
5772 if test $ac_cv_sys_file_offset_bits = unknown; then
5773 { echo "$as_me:$LINENO: checking for _LARGE_FILES value needed for large files" >&5
5774 echo $ECHO_N "checking for _LARGE_FILES value needed for large files... $ECHO_C" >&6; }
5775 if test "${ac_cv_sys_large_files+set}" = set; then
5776 echo $ECHO_N "(cached) $ECHO_C" >&6
5777 else
5778 while :; do
5779 cat >conftest.$ac_ext <<_ACEOF
5780 /* confdefs.h. */
5781 _ACEOF
5782 cat confdefs.h >>conftest.$ac_ext
5783 cat >>conftest.$ac_ext <<_ACEOF
5784 /* end confdefs.h. */
5785 #include <sys/types.h>
5786 /* Check that off_t can represent 2**63 - 1 correctly.
5787 We can't simply define LARGE_OFF_T to be 9223372036854775807,
5788 since some C++ compilers masquerading as C compilers
5789 incorrectly reject 9223372036854775807. */
5790 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
5791 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
5792 && LARGE_OFF_T % 2147483647 == 1)
5793 ? 1 : -1];
5795 main ()
5799 return 0;
5801 _ACEOF
5802 rm -f conftest.$ac_objext
5803 if { (ac_try="$ac_compile"
5804 case "(($ac_try" in
5805 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5806 *) ac_try_echo=$ac_try;;
5807 esac
5808 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5809 (eval "$ac_compile") 2>conftest.er1
5810 ac_status=$?
5811 grep -v '^ *+' conftest.er1 >conftest.err
5812 rm -f conftest.er1
5813 cat conftest.err >&5
5814 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5815 (exit $ac_status); } && {
5816 test -z "$ac_c_werror_flag" ||
5817 test ! -s conftest.err
5818 } && test -s conftest.$ac_objext; then
5819 ac_cv_sys_large_files=no; break
5820 else
5821 echo "$as_me: failed program was:" >&5
5822 sed 's/^/| /' conftest.$ac_ext >&5
5827 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5828 cat >conftest.$ac_ext <<_ACEOF
5829 /* confdefs.h. */
5830 _ACEOF
5831 cat confdefs.h >>conftest.$ac_ext
5832 cat >>conftest.$ac_ext <<_ACEOF
5833 /* end confdefs.h. */
5834 #define _LARGE_FILES 1
5835 #include <sys/types.h>
5836 /* Check that off_t can represent 2**63 - 1 correctly.
5837 We can't simply define LARGE_OFF_T to be 9223372036854775807,
5838 since some C++ compilers masquerading as C compilers
5839 incorrectly reject 9223372036854775807. */
5840 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
5841 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
5842 && LARGE_OFF_T % 2147483647 == 1)
5843 ? 1 : -1];
5845 main ()
5849 return 0;
5851 _ACEOF
5852 rm -f conftest.$ac_objext
5853 if { (ac_try="$ac_compile"
5854 case "(($ac_try" in
5855 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5856 *) ac_try_echo=$ac_try;;
5857 esac
5858 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5859 (eval "$ac_compile") 2>conftest.er1
5860 ac_status=$?
5861 grep -v '^ *+' conftest.er1 >conftest.err
5862 rm -f conftest.er1
5863 cat conftest.err >&5
5864 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5865 (exit $ac_status); } && {
5866 test -z "$ac_c_werror_flag" ||
5867 test ! -s conftest.err
5868 } && test -s conftest.$ac_objext; then
5869 ac_cv_sys_large_files=1; break
5870 else
5871 echo "$as_me: failed program was:" >&5
5872 sed 's/^/| /' conftest.$ac_ext >&5
5877 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5878 ac_cv_sys_large_files=unknown
5879 break
5880 done
5882 { echo "$as_me:$LINENO: result: $ac_cv_sys_large_files" >&5
5883 echo "${ECHO_T}$ac_cv_sys_large_files" >&6; }
5884 case $ac_cv_sys_large_files in #(
5885 no | unknown) ;;
5887 cat >>confdefs.h <<_ACEOF
5888 #define _LARGE_FILES $ac_cv_sys_large_files
5889 _ACEOF
5891 esac
5892 rm -f conftest*
5898 ### The standard library on x86-64 and s390x GNU/Linux distributions can
5899 ### be located in either /usr/lib64 or /usr/lib.
5900 case "${canonical}" in
5901 x86_64-*-linux-gnu* | s390x-*-linux-gnu* )
5902 if test -d /usr/lib64; then
5904 cat >>confdefs.h <<\_ACEOF
5905 #define HAVE_LIB64_DIR 1
5906 _ACEOF
5909 esac
5914 if test "${with_sound}" != "no"; then
5915 # Sound support for GNU/Linux and the free BSDs.
5919 for ac_header in machine/soundcard.h sys/soundcard.h soundcard.h
5921 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
5922 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
5923 { echo "$as_me:$LINENO: checking for $ac_header" >&5
5924 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
5925 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
5926 echo $ECHO_N "(cached) $ECHO_C" >&6
5928 ac_res=`eval echo '${'$as_ac_Header'}'`
5929 { echo "$as_me:$LINENO: result: $ac_res" >&5
5930 echo "${ECHO_T}$ac_res" >&6; }
5931 else
5932 # Is the header compilable?
5933 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
5934 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
5935 cat >conftest.$ac_ext <<_ACEOF
5936 /* confdefs.h. */
5937 _ACEOF
5938 cat confdefs.h >>conftest.$ac_ext
5939 cat >>conftest.$ac_ext <<_ACEOF
5940 /* end confdefs.h. */
5941 $ac_includes_default
5942 #include <$ac_header>
5943 _ACEOF
5944 rm -f conftest.$ac_objext
5945 if { (ac_try="$ac_compile"
5946 case "(($ac_try" in
5947 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5948 *) ac_try_echo=$ac_try;;
5949 esac
5950 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5951 (eval "$ac_compile") 2>conftest.er1
5952 ac_status=$?
5953 grep -v '^ *+' conftest.er1 >conftest.err
5954 rm -f conftest.er1
5955 cat conftest.err >&5
5956 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5957 (exit $ac_status); } && {
5958 test -z "$ac_c_werror_flag" ||
5959 test ! -s conftest.err
5960 } && test -s conftest.$ac_objext; then
5961 ac_header_compiler=yes
5962 else
5963 echo "$as_me: failed program was:" >&5
5964 sed 's/^/| /' conftest.$ac_ext >&5
5966 ac_header_compiler=no
5969 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5970 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
5971 echo "${ECHO_T}$ac_header_compiler" >&6; }
5973 # Is the header present?
5974 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
5975 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
5976 cat >conftest.$ac_ext <<_ACEOF
5977 /* confdefs.h. */
5978 _ACEOF
5979 cat confdefs.h >>conftest.$ac_ext
5980 cat >>conftest.$ac_ext <<_ACEOF
5981 /* end confdefs.h. */
5982 #include <$ac_header>
5983 _ACEOF
5984 if { (ac_try="$ac_cpp conftest.$ac_ext"
5985 case "(($ac_try" in
5986 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5987 *) ac_try_echo=$ac_try;;
5988 esac
5989 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5990 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
5991 ac_status=$?
5992 grep -v '^ *+' conftest.er1 >conftest.err
5993 rm -f conftest.er1
5994 cat conftest.err >&5
5995 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5996 (exit $ac_status); } >/dev/null && {
5997 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
5998 test ! -s conftest.err
5999 }; then
6000 ac_header_preproc=yes
6001 else
6002 echo "$as_me: failed program was:" >&5
6003 sed 's/^/| /' conftest.$ac_ext >&5
6005 ac_header_preproc=no
6008 rm -f conftest.err conftest.$ac_ext
6009 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
6010 echo "${ECHO_T}$ac_header_preproc" >&6; }
6012 # So? What about this header?
6013 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
6014 yes:no: )
6015 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
6016 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
6017 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
6018 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
6019 ac_header_preproc=yes
6021 no:yes:* )
6022 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
6023 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
6024 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
6025 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
6026 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
6027 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
6028 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
6029 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
6030 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
6031 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
6032 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
6033 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
6036 esac
6037 { echo "$as_me:$LINENO: checking for $ac_header" >&5
6038 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
6039 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
6040 echo $ECHO_N "(cached) $ECHO_C" >&6
6041 else
6042 eval "$as_ac_Header=\$ac_header_preproc"
6044 ac_res=`eval echo '${'$as_ac_Header'}'`
6045 { echo "$as_me:$LINENO: result: $ac_res" >&5
6046 echo "${ECHO_T}$ac_res" >&6; }
6049 if test `eval echo '${'$as_ac_Header'}'` = yes; then
6050 cat >>confdefs.h <<_ACEOF
6051 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
6052 _ACEOF
6056 done
6058 # Emulation library used on NetBSD.
6059 { echo "$as_me:$LINENO: checking for _oss_ioctl in -lossaudio" >&5
6060 echo $ECHO_N "checking for _oss_ioctl in -lossaudio... $ECHO_C" >&6; }
6061 if test "${ac_cv_lib_ossaudio__oss_ioctl+set}" = set; then
6062 echo $ECHO_N "(cached) $ECHO_C" >&6
6063 else
6064 ac_check_lib_save_LIBS=$LIBS
6065 LIBS="-lossaudio $LIBS"
6066 cat >conftest.$ac_ext <<_ACEOF
6067 /* confdefs.h. */
6068 _ACEOF
6069 cat confdefs.h >>conftest.$ac_ext
6070 cat >>conftest.$ac_ext <<_ACEOF
6071 /* end confdefs.h. */
6073 /* Override any GCC internal prototype to avoid an error.
6074 Use char because int might match the return type of a GCC
6075 builtin and then its argument prototype would still apply. */
6076 #ifdef __cplusplus
6077 extern "C"
6078 #endif
6079 char _oss_ioctl ();
6081 main ()
6083 return _oss_ioctl ();
6085 return 0;
6087 _ACEOF
6088 rm -f conftest.$ac_objext conftest$ac_exeext
6089 if { (ac_try="$ac_link"
6090 case "(($ac_try" in
6091 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6092 *) ac_try_echo=$ac_try;;
6093 esac
6094 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6095 (eval "$ac_link") 2>conftest.er1
6096 ac_status=$?
6097 grep -v '^ *+' conftest.er1 >conftest.err
6098 rm -f conftest.er1
6099 cat conftest.err >&5
6100 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6101 (exit $ac_status); } && {
6102 test -z "$ac_c_werror_flag" ||
6103 test ! -s conftest.err
6104 } && test -s conftest$ac_exeext &&
6105 $as_test_x conftest$ac_exeext; then
6106 ac_cv_lib_ossaudio__oss_ioctl=yes
6107 else
6108 echo "$as_me: failed program was:" >&5
6109 sed 's/^/| /' conftest.$ac_ext >&5
6111 ac_cv_lib_ossaudio__oss_ioctl=no
6114 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
6115 conftest$ac_exeext conftest.$ac_ext
6116 LIBS=$ac_check_lib_save_LIBS
6118 { echo "$as_me:$LINENO: result: $ac_cv_lib_ossaudio__oss_ioctl" >&5
6119 echo "${ECHO_T}$ac_cv_lib_ossaudio__oss_ioctl" >&6; }
6120 if test $ac_cv_lib_ossaudio__oss_ioctl = yes; then
6121 LIBSOUND=-lossaudio
6122 else
6123 LIBSOUND=
6128 ALSA_REQUIRED=1.0.0
6129 ALSA_MODULES="alsa >= $ALSA_REQUIRED"
6131 succeeded=no
6133 # Extract the first word of "pkg-config", so it can be a program name with args.
6134 set dummy pkg-config; ac_word=$2
6135 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6136 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6137 if test "${ac_cv_path_PKG_CONFIG+set}" = set; then
6138 echo $ECHO_N "(cached) $ECHO_C" >&6
6139 else
6140 case $PKG_CONFIG in
6141 [\\/]* | ?:[\\/]*)
6142 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
6145 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6146 for as_dir in $PATH
6148 IFS=$as_save_IFS
6149 test -z "$as_dir" && as_dir=.
6150 for ac_exec_ext in '' $ac_executable_extensions; do
6151 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6152 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
6153 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6154 break 2
6156 done
6157 done
6158 IFS=$as_save_IFS
6160 test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG="no"
6162 esac
6164 PKG_CONFIG=$ac_cv_path_PKG_CONFIG
6165 if test -n "$PKG_CONFIG"; then
6166 { echo "$as_me:$LINENO: result: $PKG_CONFIG" >&5
6167 echo "${ECHO_T}$PKG_CONFIG" >&6; }
6168 else
6169 { echo "$as_me:$LINENO: result: no" >&5
6170 echo "${ECHO_T}no" >&6; }
6175 if test "$PKG_CONFIG" = "no" ; then
6176 HAVE_ALSA=no
6177 else
6178 PKG_CONFIG_MIN_VERSION=0.9.0
6179 if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
6180 { echo "$as_me:$LINENO: checking for $ALSA_MODULES" >&5
6181 echo $ECHO_N "checking for $ALSA_MODULES... $ECHO_C" >&6; }
6183 if $PKG_CONFIG --exists "$ALSA_MODULES" 2>&5; then
6184 { echo "$as_me:$LINENO: result: yes" >&5
6185 echo "${ECHO_T}yes" >&6; }
6186 succeeded=yes
6188 { echo "$as_me:$LINENO: checking ALSA_CFLAGS" >&5
6189 echo $ECHO_N "checking ALSA_CFLAGS... $ECHO_C" >&6; }
6190 ALSA_CFLAGS=`$PKG_CONFIG --cflags "$ALSA_MODULES"|sed -e 's,///*,/,g'`
6191 { echo "$as_me:$LINENO: result: $ALSA_CFLAGS" >&5
6192 echo "${ECHO_T}$ALSA_CFLAGS" >&6; }
6194 { echo "$as_me:$LINENO: checking ALSA_LIBS" >&5
6195 echo $ECHO_N "checking ALSA_LIBS... $ECHO_C" >&6; }
6196 ALSA_LIBS=`$PKG_CONFIG --libs "$ALSA_MODULES"|sed -e 's,///*,/,g'`
6197 { echo "$as_me:$LINENO: result: $ALSA_LIBS" >&5
6198 echo "${ECHO_T}$ALSA_LIBS" >&6; }
6199 else
6200 { echo "$as_me:$LINENO: result: no" >&5
6201 echo "${ECHO_T}no" >&6; }
6202 ALSA_CFLAGS=""
6203 ALSA_LIBS=""
6204 ## If we have a custom action on failure, don't print errors, but
6205 ## do set a variable so people can do so.
6206 ALSA_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "$ALSA_MODULES"`
6212 else
6213 echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
6214 echo "*** See http://www.freedesktop.org/software/pkgconfig"
6218 if test $succeeded = yes; then
6219 HAVE_ALSA=yes
6220 else
6221 HAVE_ALSA=no
6224 if test $HAVE_ALSA = yes; then
6225 SAVE_CFLAGS="$CFLAGS"
6226 SAVE_LDFLAGS="$LDFLAGS"
6227 CFLAGS="$ALSA_CFLAGS $CFLAGS"
6228 LDFLAGS="$ALSA_LIBS $LDFLAGS"
6229 cat >conftest.$ac_ext <<_ACEOF
6230 /* confdefs.h. */
6231 _ACEOF
6232 cat confdefs.h >>conftest.$ac_ext
6233 cat >>conftest.$ac_ext <<_ACEOF
6234 /* end confdefs.h. */
6235 #include <asoundlib.h>
6237 main ()
6239 snd_lib_error_set_handler (0);
6241 return 0;
6243 _ACEOF
6244 rm -f conftest.$ac_objext
6245 if { (ac_try="$ac_compile"
6246 case "(($ac_try" in
6247 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6248 *) ac_try_echo=$ac_try;;
6249 esac
6250 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6251 (eval "$ac_compile") 2>conftest.er1
6252 ac_status=$?
6253 grep -v '^ *+' conftest.er1 >conftest.err
6254 rm -f conftest.er1
6255 cat conftest.err >&5
6256 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6257 (exit $ac_status); } && {
6258 test -z "$ac_c_werror_flag" ||
6259 test ! -s conftest.err
6260 } && test -s conftest.$ac_objext; then
6261 emacs_alsa_normal=yes
6262 else
6263 echo "$as_me: failed program was:" >&5
6264 sed 's/^/| /' conftest.$ac_ext >&5
6266 emacs_alsa_normal=no
6269 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6270 if test "$emacs_alsa_normal" != yes; then
6271 cat >conftest.$ac_ext <<_ACEOF
6272 /* confdefs.h. */
6273 _ACEOF
6274 cat confdefs.h >>conftest.$ac_ext
6275 cat >>conftest.$ac_ext <<_ACEOF
6276 /* end confdefs.h. */
6277 #include <alsa/asoundlib.h>
6279 main ()
6281 snd_lib_error_set_handler (0);
6283 return 0;
6285 _ACEOF
6286 rm -f conftest.$ac_objext
6287 if { (ac_try="$ac_compile"
6288 case "(($ac_try" in
6289 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6290 *) ac_try_echo=$ac_try;;
6291 esac
6292 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6293 (eval "$ac_compile") 2>conftest.er1
6294 ac_status=$?
6295 grep -v '^ *+' conftest.er1 >conftest.err
6296 rm -f conftest.er1
6297 cat conftest.err >&5
6298 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6299 (exit $ac_status); } && {
6300 test -z "$ac_c_werror_flag" ||
6301 test ! -s conftest.err
6302 } && test -s conftest.$ac_objext; then
6303 emacs_alsa_subdir=yes
6304 else
6305 echo "$as_me: failed program was:" >&5
6306 sed 's/^/| /' conftest.$ac_ext >&5
6308 emacs_alsa_subdir=no
6311 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6312 if test "$emacs_alsa_subdir" != yes; then
6313 { { echo "$as_me:$LINENO: error: pkg-config found alsa, but it does not compile. See config.log for error messages." >&5
6314 echo "$as_me: error: pkg-config found alsa, but it does not compile. See config.log for error messages." >&2;}
6315 { (exit 1); exit 1; }; }
6317 ALSA_CFLAGS="$ALSA_CFLAGS -DALSA_SUBDIR_INCLUDE"
6320 CFLAGS="$SAVE_CFLAGS"
6321 LDFLAGS="$SAVE_LDFLAGS"
6322 LIBSOUND="$LIBSOUND $ALSA_LIBS"
6323 CFLAGS_SOUND="$CFLAGS_SOUND $ALSA_CFLAGS"
6325 cat >>confdefs.h <<\_ACEOF
6326 #define HAVE_ALSA 1
6327 _ACEOF
6358 for ac_header in sys/select.h sys/timeb.h sys/time.h unistd.h utime.h \
6359 linux/version.h sys/systeminfo.h termios.h limits.h string.h stdlib.h \
6360 termcap.h stdio_ext.h fcntl.h strings.h coff.h pty.h sys/mman.h \
6361 sys/param.h sys/vlimit.h sys/resource.h locale.h sys/_mbstate_t.h \
6362 sys/utsname.h pwd.h
6364 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
6365 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
6366 { echo "$as_me:$LINENO: checking for $ac_header" >&5
6367 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
6368 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
6369 echo $ECHO_N "(cached) $ECHO_C" >&6
6371 ac_res=`eval echo '${'$as_ac_Header'}'`
6372 { echo "$as_me:$LINENO: result: $ac_res" >&5
6373 echo "${ECHO_T}$ac_res" >&6; }
6374 else
6375 # Is the header compilable?
6376 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
6377 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
6378 cat >conftest.$ac_ext <<_ACEOF
6379 /* confdefs.h. */
6380 _ACEOF
6381 cat confdefs.h >>conftest.$ac_ext
6382 cat >>conftest.$ac_ext <<_ACEOF
6383 /* end confdefs.h. */
6384 $ac_includes_default
6385 #include <$ac_header>
6386 _ACEOF
6387 rm -f conftest.$ac_objext
6388 if { (ac_try="$ac_compile"
6389 case "(($ac_try" in
6390 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6391 *) ac_try_echo=$ac_try;;
6392 esac
6393 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6394 (eval "$ac_compile") 2>conftest.er1
6395 ac_status=$?
6396 grep -v '^ *+' conftest.er1 >conftest.err
6397 rm -f conftest.er1
6398 cat conftest.err >&5
6399 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6400 (exit $ac_status); } && {
6401 test -z "$ac_c_werror_flag" ||
6402 test ! -s conftest.err
6403 } && test -s conftest.$ac_objext; then
6404 ac_header_compiler=yes
6405 else
6406 echo "$as_me: failed program was:" >&5
6407 sed 's/^/| /' conftest.$ac_ext >&5
6409 ac_header_compiler=no
6412 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6413 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
6414 echo "${ECHO_T}$ac_header_compiler" >&6; }
6416 # Is the header present?
6417 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
6418 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
6419 cat >conftest.$ac_ext <<_ACEOF
6420 /* confdefs.h. */
6421 _ACEOF
6422 cat confdefs.h >>conftest.$ac_ext
6423 cat >>conftest.$ac_ext <<_ACEOF
6424 /* end confdefs.h. */
6425 #include <$ac_header>
6426 _ACEOF
6427 if { (ac_try="$ac_cpp conftest.$ac_ext"
6428 case "(($ac_try" in
6429 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6430 *) ac_try_echo=$ac_try;;
6431 esac
6432 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6433 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
6434 ac_status=$?
6435 grep -v '^ *+' conftest.er1 >conftest.err
6436 rm -f conftest.er1
6437 cat conftest.err >&5
6438 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6439 (exit $ac_status); } >/dev/null && {
6440 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
6441 test ! -s conftest.err
6442 }; then
6443 ac_header_preproc=yes
6444 else
6445 echo "$as_me: failed program was:" >&5
6446 sed 's/^/| /' conftest.$ac_ext >&5
6448 ac_header_preproc=no
6451 rm -f conftest.err conftest.$ac_ext
6452 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
6453 echo "${ECHO_T}$ac_header_preproc" >&6; }
6455 # So? What about this header?
6456 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
6457 yes:no: )
6458 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
6459 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
6460 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
6461 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
6462 ac_header_preproc=yes
6464 no:yes:* )
6465 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
6466 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
6467 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
6468 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
6469 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
6470 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
6471 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
6472 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
6473 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
6474 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
6475 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
6476 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
6479 esac
6480 { echo "$as_me:$LINENO: checking for $ac_header" >&5
6481 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
6482 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
6483 echo $ECHO_N "(cached) $ECHO_C" >&6
6484 else
6485 eval "$as_ac_Header=\$ac_header_preproc"
6487 ac_res=`eval echo '${'$as_ac_Header'}'`
6488 { echo "$as_me:$LINENO: result: $ac_res" >&5
6489 echo "${ECHO_T}$ac_res" >&6; }
6492 if test `eval echo '${'$as_ac_Header'}'` = yes; then
6493 cat >>confdefs.h <<_ACEOF
6494 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
6495 _ACEOF
6499 done
6502 { echo "$as_me:$LINENO: checking if personality LINUX32 can be set" >&5
6503 echo $ECHO_N "checking if personality LINUX32 can be set... $ECHO_C" >&6; }
6504 cat >conftest.$ac_ext <<_ACEOF
6505 /* confdefs.h. */
6506 _ACEOF
6507 cat confdefs.h >>conftest.$ac_ext
6508 cat >>conftest.$ac_ext <<_ACEOF
6509 /* end confdefs.h. */
6510 #include <sys/personality.h>
6512 main ()
6514 personality (PER_LINUX32)
6516 return 0;
6518 _ACEOF
6519 rm -f conftest.$ac_objext
6520 if { (ac_try="$ac_compile"
6521 case "(($ac_try" in
6522 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6523 *) ac_try_echo=$ac_try;;
6524 esac
6525 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6526 (eval "$ac_compile") 2>conftest.er1
6527 ac_status=$?
6528 grep -v '^ *+' conftest.er1 >conftest.err
6529 rm -f conftest.er1
6530 cat conftest.err >&5
6531 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6532 (exit $ac_status); } && {
6533 test -z "$ac_c_werror_flag" ||
6534 test ! -s conftest.err
6535 } && test -s conftest.$ac_objext; then
6536 emacs_cv_personality_linux32=yes
6537 else
6538 echo "$as_me: failed program was:" >&5
6539 sed 's/^/| /' conftest.$ac_ext >&5
6541 emacs_cv_personality_linux32=no
6544 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6545 { echo "$as_me:$LINENO: result: $emacs_cv_personality_linux32" >&5
6546 echo "${ECHO_T}$emacs_cv_personality_linux32" >&6; }
6548 if test $emacs_cv_personality_linux32 = yes; then
6550 cat >>confdefs.h <<\_ACEOF
6551 #define HAVE_PERSONALITY_LINUX32 1
6552 _ACEOF
6557 for ac_header in term.h
6559 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
6560 { echo "$as_me:$LINENO: checking for $ac_header" >&5
6561 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
6562 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
6563 echo $ECHO_N "(cached) $ECHO_C" >&6
6564 else
6565 cat >conftest.$ac_ext <<_ACEOF
6566 /* confdefs.h. */
6567 _ACEOF
6568 cat confdefs.h >>conftest.$ac_ext
6569 cat >>conftest.$ac_ext <<_ACEOF
6570 /* end confdefs.h. */
6571 #include <$ac_header>
6572 _ACEOF
6573 if { (ac_try="$ac_cpp conftest.$ac_ext"
6574 case "(($ac_try" in
6575 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6576 *) ac_try_echo=$ac_try;;
6577 esac
6578 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6579 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
6580 ac_status=$?
6581 grep -v '^ *+' conftest.er1 >conftest.err
6582 rm -f conftest.er1
6583 cat conftest.err >&5
6584 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6585 (exit $ac_status); } >/dev/null && {
6586 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
6587 test ! -s conftest.err
6588 }; then
6589 eval "$as_ac_Header=yes"
6590 else
6591 echo "$as_me: failed program was:" >&5
6592 sed 's/^/| /' conftest.$ac_ext >&5
6594 eval "$as_ac_Header=no"
6597 rm -f conftest.err conftest.$ac_ext
6599 ac_res=`eval echo '${'$as_ac_Header'}'`
6600 { echo "$as_me:$LINENO: result: $ac_res" >&5
6601 echo "${ECHO_T}$ac_res" >&6; }
6602 if test `eval echo '${'$as_ac_Header'}'` = yes; then
6603 cat >>confdefs.h <<_ACEOF
6604 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
6605 _ACEOF
6609 done
6611 { echo "$as_me:$LINENO: checking for ANSI C header files" >&5
6612 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6; }
6613 if test "${ac_cv_header_stdc+set}" = set; then
6614 echo $ECHO_N "(cached) $ECHO_C" >&6
6615 else
6616 cat >conftest.$ac_ext <<_ACEOF
6617 /* confdefs.h. */
6618 _ACEOF
6619 cat confdefs.h >>conftest.$ac_ext
6620 cat >>conftest.$ac_ext <<_ACEOF
6621 /* end confdefs.h. */
6622 #include <stdlib.h>
6623 #include <stdarg.h>
6624 #include <string.h>
6625 #include <float.h>
6628 main ()
6632 return 0;
6634 _ACEOF
6635 rm -f conftest.$ac_objext
6636 if { (ac_try="$ac_compile"
6637 case "(($ac_try" in
6638 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6639 *) ac_try_echo=$ac_try;;
6640 esac
6641 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6642 (eval "$ac_compile") 2>conftest.er1
6643 ac_status=$?
6644 grep -v '^ *+' conftest.er1 >conftest.err
6645 rm -f conftest.er1
6646 cat conftest.err >&5
6647 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6648 (exit $ac_status); } && {
6649 test -z "$ac_c_werror_flag" ||
6650 test ! -s conftest.err
6651 } && test -s conftest.$ac_objext; then
6652 ac_cv_header_stdc=yes
6653 else
6654 echo "$as_me: failed program was:" >&5
6655 sed 's/^/| /' conftest.$ac_ext >&5
6657 ac_cv_header_stdc=no
6660 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6662 if test $ac_cv_header_stdc = yes; then
6663 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
6664 cat >conftest.$ac_ext <<_ACEOF
6665 /* confdefs.h. */
6666 _ACEOF
6667 cat confdefs.h >>conftest.$ac_ext
6668 cat >>conftest.$ac_ext <<_ACEOF
6669 /* end confdefs.h. */
6670 #include <string.h>
6672 _ACEOF
6673 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6674 $EGREP "memchr" >/dev/null 2>&1; then
6676 else
6677 ac_cv_header_stdc=no
6679 rm -f conftest*
6683 if test $ac_cv_header_stdc = yes; then
6684 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
6685 cat >conftest.$ac_ext <<_ACEOF
6686 /* confdefs.h. */
6687 _ACEOF
6688 cat confdefs.h >>conftest.$ac_ext
6689 cat >>conftest.$ac_ext <<_ACEOF
6690 /* end confdefs.h. */
6691 #include <stdlib.h>
6693 _ACEOF
6694 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6695 $EGREP "free" >/dev/null 2>&1; then
6697 else
6698 ac_cv_header_stdc=no
6700 rm -f conftest*
6704 if test $ac_cv_header_stdc = yes; then
6705 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
6706 if test "$cross_compiling" = yes; then
6708 else
6709 cat >conftest.$ac_ext <<_ACEOF
6710 /* confdefs.h. */
6711 _ACEOF
6712 cat confdefs.h >>conftest.$ac_ext
6713 cat >>conftest.$ac_ext <<_ACEOF
6714 /* end confdefs.h. */
6715 #include <ctype.h>
6716 #include <stdlib.h>
6717 #if ((' ' & 0x0FF) == 0x020)
6718 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
6719 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
6720 #else
6721 # define ISLOWER(c) \
6722 (('a' <= (c) && (c) <= 'i') \
6723 || ('j' <= (c) && (c) <= 'r') \
6724 || ('s' <= (c) && (c) <= 'z'))
6725 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
6726 #endif
6728 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
6730 main ()
6732 int i;
6733 for (i = 0; i < 256; i++)
6734 if (XOR (islower (i), ISLOWER (i))
6735 || toupper (i) != TOUPPER (i))
6736 return 2;
6737 return 0;
6739 _ACEOF
6740 rm -f conftest$ac_exeext
6741 if { (ac_try="$ac_link"
6742 case "(($ac_try" in
6743 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6744 *) ac_try_echo=$ac_try;;
6745 esac
6746 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6747 (eval "$ac_link") 2>&5
6748 ac_status=$?
6749 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6750 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
6751 { (case "(($ac_try" in
6752 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6753 *) ac_try_echo=$ac_try;;
6754 esac
6755 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6756 (eval "$ac_try") 2>&5
6757 ac_status=$?
6758 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6759 (exit $ac_status); }; }; then
6761 else
6762 echo "$as_me: program exited with status $ac_status" >&5
6763 echo "$as_me: failed program was:" >&5
6764 sed 's/^/| /' conftest.$ac_ext >&5
6766 ( exit $ac_status )
6767 ac_cv_header_stdc=no
6769 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
6775 { echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
6776 echo "${ECHO_T}$ac_cv_header_stdc" >&6; }
6777 if test $ac_cv_header_stdc = yes; then
6779 cat >>confdefs.h <<\_ACEOF
6780 #define STDC_HEADERS 1
6781 _ACEOF
6785 { echo "$as_me:$LINENO: checking whether time.h and sys/time.h may both be included" >&5
6786 echo $ECHO_N "checking whether time.h and sys/time.h may both be included... $ECHO_C" >&6; }
6787 if test "${ac_cv_header_time+set}" = set; then
6788 echo $ECHO_N "(cached) $ECHO_C" >&6
6789 else
6790 cat >conftest.$ac_ext <<_ACEOF
6791 /* confdefs.h. */
6792 _ACEOF
6793 cat confdefs.h >>conftest.$ac_ext
6794 cat >>conftest.$ac_ext <<_ACEOF
6795 /* end confdefs.h. */
6796 #include <sys/types.h>
6797 #include <sys/time.h>
6798 #include <time.h>
6801 main ()
6803 if ((struct tm *) 0)
6804 return 0;
6806 return 0;
6808 _ACEOF
6809 rm -f conftest.$ac_objext
6810 if { (ac_try="$ac_compile"
6811 case "(($ac_try" in
6812 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6813 *) ac_try_echo=$ac_try;;
6814 esac
6815 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6816 (eval "$ac_compile") 2>conftest.er1
6817 ac_status=$?
6818 grep -v '^ *+' conftest.er1 >conftest.err
6819 rm -f conftest.er1
6820 cat conftest.err >&5
6821 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6822 (exit $ac_status); } && {
6823 test -z "$ac_c_werror_flag" ||
6824 test ! -s conftest.err
6825 } && test -s conftest.$ac_objext; then
6826 ac_cv_header_time=yes
6827 else
6828 echo "$as_me: failed program was:" >&5
6829 sed 's/^/| /' conftest.$ac_ext >&5
6831 ac_cv_header_time=no
6834 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6836 { echo "$as_me:$LINENO: result: $ac_cv_header_time" >&5
6837 echo "${ECHO_T}$ac_cv_header_time" >&6; }
6838 if test $ac_cv_header_time = yes; then
6840 cat >>confdefs.h <<\_ACEOF
6841 #define TIME_WITH_SYS_TIME 1
6842 _ACEOF
6846 { echo "$as_me:$LINENO: checking whether sys_siglist is declared" >&5
6847 echo $ECHO_N "checking whether sys_siglist is declared... $ECHO_C" >&6; }
6848 if test "${ac_cv_have_decl_sys_siglist+set}" = set; then
6849 echo $ECHO_N "(cached) $ECHO_C" >&6
6850 else
6851 cat >conftest.$ac_ext <<_ACEOF
6852 /* confdefs.h. */
6853 _ACEOF
6854 cat confdefs.h >>conftest.$ac_ext
6855 cat >>conftest.$ac_ext <<_ACEOF
6856 /* end confdefs.h. */
6857 $ac_includes_default
6859 main ()
6861 #ifndef sys_siglist
6862 (void) sys_siglist;
6863 #endif
6866 return 0;
6868 _ACEOF
6869 rm -f conftest.$ac_objext
6870 if { (ac_try="$ac_compile"
6871 case "(($ac_try" in
6872 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6873 *) ac_try_echo=$ac_try;;
6874 esac
6875 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6876 (eval "$ac_compile") 2>conftest.er1
6877 ac_status=$?
6878 grep -v '^ *+' conftest.er1 >conftest.err
6879 rm -f conftest.er1
6880 cat conftest.err >&5
6881 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6882 (exit $ac_status); } && {
6883 test -z "$ac_c_werror_flag" ||
6884 test ! -s conftest.err
6885 } && test -s conftest.$ac_objext; then
6886 ac_cv_have_decl_sys_siglist=yes
6887 else
6888 echo "$as_me: failed program was:" >&5
6889 sed 's/^/| /' conftest.$ac_ext >&5
6891 ac_cv_have_decl_sys_siglist=no
6894 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6896 { echo "$as_me:$LINENO: result: $ac_cv_have_decl_sys_siglist" >&5
6897 echo "${ECHO_T}$ac_cv_have_decl_sys_siglist" >&6; }
6898 if test $ac_cv_have_decl_sys_siglist = yes; then
6900 cat >>confdefs.h <<_ACEOF
6901 #define HAVE_DECL_SYS_SIGLIST 1
6902 _ACEOF
6905 else
6906 cat >>confdefs.h <<_ACEOF
6907 #define HAVE_DECL_SYS_SIGLIST 0
6908 _ACEOF
6914 if test $ac_cv_have_decl_sys_siglist != yes; then
6915 # For Tru64, at least:
6916 { echo "$as_me:$LINENO: checking whether __sys_siglist is declared" >&5
6917 echo $ECHO_N "checking whether __sys_siglist is declared... $ECHO_C" >&6; }
6918 if test "${ac_cv_have_decl___sys_siglist+set}" = set; then
6919 echo $ECHO_N "(cached) $ECHO_C" >&6
6920 else
6921 cat >conftest.$ac_ext <<_ACEOF
6922 /* confdefs.h. */
6923 _ACEOF
6924 cat confdefs.h >>conftest.$ac_ext
6925 cat >>conftest.$ac_ext <<_ACEOF
6926 /* end confdefs.h. */
6927 $ac_includes_default
6929 main ()
6931 #ifndef __sys_siglist
6932 (void) __sys_siglist;
6933 #endif
6936 return 0;
6938 _ACEOF
6939 rm -f conftest.$ac_objext
6940 if { (ac_try="$ac_compile"
6941 case "(($ac_try" in
6942 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6943 *) ac_try_echo=$ac_try;;
6944 esac
6945 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6946 (eval "$ac_compile") 2>conftest.er1
6947 ac_status=$?
6948 grep -v '^ *+' conftest.er1 >conftest.err
6949 rm -f conftest.er1
6950 cat conftest.err >&5
6951 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6952 (exit $ac_status); } && {
6953 test -z "$ac_c_werror_flag" ||
6954 test ! -s conftest.err
6955 } && test -s conftest.$ac_objext; then
6956 ac_cv_have_decl___sys_siglist=yes
6957 else
6958 echo "$as_me: failed program was:" >&5
6959 sed 's/^/| /' conftest.$ac_ext >&5
6961 ac_cv_have_decl___sys_siglist=no
6964 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6966 { echo "$as_me:$LINENO: result: $ac_cv_have_decl___sys_siglist" >&5
6967 echo "${ECHO_T}$ac_cv_have_decl___sys_siglist" >&6; }
6968 if test $ac_cv_have_decl___sys_siglist = yes; then
6970 cat >>confdefs.h <<_ACEOF
6971 #define HAVE_DECL___SYS_SIGLIST 1
6972 _ACEOF
6975 else
6976 cat >>confdefs.h <<_ACEOF
6977 #define HAVE_DECL___SYS_SIGLIST 0
6978 _ACEOF
6984 if test $ac_cv_have_decl___sys_siglist = yes; then
6986 cat >>confdefs.h <<\_ACEOF
6987 #define sys_siglist __sys_siglist
6988 _ACEOF
6992 { echo "$as_me:$LINENO: checking for sys/wait.h that is POSIX.1 compatible" >&5
6993 echo $ECHO_N "checking for sys/wait.h that is POSIX.1 compatible... $ECHO_C" >&6; }
6994 if test "${ac_cv_header_sys_wait_h+set}" = set; then
6995 echo $ECHO_N "(cached) $ECHO_C" >&6
6996 else
6997 cat >conftest.$ac_ext <<_ACEOF
6998 /* confdefs.h. */
6999 _ACEOF
7000 cat confdefs.h >>conftest.$ac_ext
7001 cat >>conftest.$ac_ext <<_ACEOF
7002 /* end confdefs.h. */
7003 #include <sys/types.h>
7004 #include <sys/wait.h>
7005 #ifndef WEXITSTATUS
7006 # define WEXITSTATUS(stat_val) ((unsigned int) (stat_val) >> 8)
7007 #endif
7008 #ifndef WIFEXITED
7009 # define WIFEXITED(stat_val) (((stat_val) & 255) == 0)
7010 #endif
7013 main ()
7015 int s;
7016 wait (&s);
7017 s = WIFEXITED (s) ? WEXITSTATUS (s) : 1;
7019 return 0;
7021 _ACEOF
7022 rm -f conftest.$ac_objext
7023 if { (ac_try="$ac_compile"
7024 case "(($ac_try" in
7025 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7026 *) ac_try_echo=$ac_try;;
7027 esac
7028 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7029 (eval "$ac_compile") 2>conftest.er1
7030 ac_status=$?
7031 grep -v '^ *+' conftest.er1 >conftest.err
7032 rm -f conftest.er1
7033 cat conftest.err >&5
7034 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7035 (exit $ac_status); } && {
7036 test -z "$ac_c_werror_flag" ||
7037 test ! -s conftest.err
7038 } && test -s conftest.$ac_objext; then
7039 ac_cv_header_sys_wait_h=yes
7040 else
7041 echo "$as_me: failed program was:" >&5
7042 sed 's/^/| /' conftest.$ac_ext >&5
7044 ac_cv_header_sys_wait_h=no
7047 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7049 { echo "$as_me:$LINENO: result: $ac_cv_header_sys_wait_h" >&5
7050 echo "${ECHO_T}$ac_cv_header_sys_wait_h" >&6; }
7051 if test $ac_cv_header_sys_wait_h = yes; then
7053 cat >>confdefs.h <<\_ACEOF
7054 #define HAVE_SYS_WAIT_H 1
7055 _ACEOF
7060 { echo "$as_me:$LINENO: checking for struct utimbuf" >&5
7061 echo $ECHO_N "checking for struct utimbuf... $ECHO_C" >&6; }
7062 if test "${emacs_cv_struct_utimbuf+set}" = set; then
7063 echo $ECHO_N "(cached) $ECHO_C" >&6
7064 else
7065 cat >conftest.$ac_ext <<_ACEOF
7066 /* confdefs.h. */
7067 _ACEOF
7068 cat confdefs.h >>conftest.$ac_ext
7069 cat >>conftest.$ac_ext <<_ACEOF
7070 /* end confdefs.h. */
7071 #ifdef TIME_WITH_SYS_TIME
7072 #include <sys/time.h>
7073 #include <time.h>
7074 #else
7075 #ifdef HAVE_SYS_TIME_H
7076 #include <sys/time.h>
7077 #else
7078 #include <time.h>
7079 #endif
7080 #endif
7081 #ifdef HAVE_UTIME_H
7082 #include <utime.h>
7083 #endif
7085 main ()
7087 static struct utimbuf x; x.actime = x.modtime;
7089 return 0;
7091 _ACEOF
7092 rm -f conftest.$ac_objext
7093 if { (ac_try="$ac_compile"
7094 case "(($ac_try" in
7095 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7096 *) ac_try_echo=$ac_try;;
7097 esac
7098 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7099 (eval "$ac_compile") 2>conftest.er1
7100 ac_status=$?
7101 grep -v '^ *+' conftest.er1 >conftest.err
7102 rm -f conftest.er1
7103 cat conftest.err >&5
7104 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7105 (exit $ac_status); } && {
7106 test -z "$ac_c_werror_flag" ||
7107 test ! -s conftest.err
7108 } && test -s conftest.$ac_objext; then
7109 emacs_cv_struct_utimbuf=yes
7110 else
7111 echo "$as_me: failed program was:" >&5
7112 sed 's/^/| /' conftest.$ac_ext >&5
7114 emacs_cv_struct_utimbuf=no
7117 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7119 { echo "$as_me:$LINENO: result: $emacs_cv_struct_utimbuf" >&5
7120 echo "${ECHO_T}$emacs_cv_struct_utimbuf" >&6; }
7121 if test $emacs_cv_struct_utimbuf = yes; then
7123 cat >>confdefs.h <<\_ACEOF
7124 #define HAVE_STRUCT_UTIMBUF 1
7125 _ACEOF
7129 { echo "$as_me:$LINENO: checking return type of signal handlers" >&5
7130 echo $ECHO_N "checking return type of signal handlers... $ECHO_C" >&6; }
7131 if test "${ac_cv_type_signal+set}" = set; then
7132 echo $ECHO_N "(cached) $ECHO_C" >&6
7133 else
7134 cat >conftest.$ac_ext <<_ACEOF
7135 /* confdefs.h. */
7136 _ACEOF
7137 cat confdefs.h >>conftest.$ac_ext
7138 cat >>conftest.$ac_ext <<_ACEOF
7139 /* end confdefs.h. */
7140 #include <sys/types.h>
7141 #include <signal.h>
7144 main ()
7146 return *(signal (0, 0)) (0) == 1;
7148 return 0;
7150 _ACEOF
7151 rm -f conftest.$ac_objext
7152 if { (ac_try="$ac_compile"
7153 case "(($ac_try" in
7154 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7155 *) ac_try_echo=$ac_try;;
7156 esac
7157 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7158 (eval "$ac_compile") 2>conftest.er1
7159 ac_status=$?
7160 grep -v '^ *+' conftest.er1 >conftest.err
7161 rm -f conftest.er1
7162 cat conftest.err >&5
7163 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7164 (exit $ac_status); } && {
7165 test -z "$ac_c_werror_flag" ||
7166 test ! -s conftest.err
7167 } && test -s conftest.$ac_objext; then
7168 ac_cv_type_signal=int
7169 else
7170 echo "$as_me: failed program was:" >&5
7171 sed 's/^/| /' conftest.$ac_ext >&5
7173 ac_cv_type_signal=void
7176 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7178 { echo "$as_me:$LINENO: result: $ac_cv_type_signal" >&5
7179 echo "${ECHO_T}$ac_cv_type_signal" >&6; }
7181 cat >>confdefs.h <<_ACEOF
7182 #define RETSIGTYPE $ac_cv_type_signal
7183 _ACEOF
7187 { echo "$as_me:$LINENO: checking for speed_t" >&5
7188 echo $ECHO_N "checking for speed_t... $ECHO_C" >&6; }
7189 if test "${emacs_cv_speed_t+set}" = set; then
7190 echo $ECHO_N "(cached) $ECHO_C" >&6
7191 else
7192 cat >conftest.$ac_ext <<_ACEOF
7193 /* confdefs.h. */
7194 _ACEOF
7195 cat confdefs.h >>conftest.$ac_ext
7196 cat >>conftest.$ac_ext <<_ACEOF
7197 /* end confdefs.h. */
7198 #include <termios.h>
7200 main ()
7202 speed_t x = 1;
7204 return 0;
7206 _ACEOF
7207 rm -f conftest.$ac_objext
7208 if { (ac_try="$ac_compile"
7209 case "(($ac_try" in
7210 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7211 *) ac_try_echo=$ac_try;;
7212 esac
7213 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7214 (eval "$ac_compile") 2>conftest.er1
7215 ac_status=$?
7216 grep -v '^ *+' conftest.er1 >conftest.err
7217 rm -f conftest.er1
7218 cat conftest.err >&5
7219 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7220 (exit $ac_status); } && {
7221 test -z "$ac_c_werror_flag" ||
7222 test ! -s conftest.err
7223 } && test -s conftest.$ac_objext; then
7224 emacs_cv_speed_t=yes
7225 else
7226 echo "$as_me: failed program was:" >&5
7227 sed 's/^/| /' conftest.$ac_ext >&5
7229 emacs_cv_speed_t=no
7232 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7234 { echo "$as_me:$LINENO: result: $emacs_cv_speed_t" >&5
7235 echo "${ECHO_T}$emacs_cv_speed_t" >&6; }
7236 if test $emacs_cv_speed_t = yes; then
7238 cat >>confdefs.h <<\_ACEOF
7239 #define HAVE_SPEED_T 1
7240 _ACEOF
7244 { echo "$as_me:$LINENO: checking for struct timeval" >&5
7245 echo $ECHO_N "checking for struct timeval... $ECHO_C" >&6; }
7246 if test "${emacs_cv_struct_timeval+set}" = set; then
7247 echo $ECHO_N "(cached) $ECHO_C" >&6
7248 else
7249 cat >conftest.$ac_ext <<_ACEOF
7250 /* confdefs.h. */
7251 _ACEOF
7252 cat confdefs.h >>conftest.$ac_ext
7253 cat >>conftest.$ac_ext <<_ACEOF
7254 /* end confdefs.h. */
7255 #ifdef TIME_WITH_SYS_TIME
7256 #include <sys/time.h>
7257 #include <time.h>
7258 #else
7259 #ifdef HAVE_SYS_TIME_H
7260 #include <sys/time.h>
7261 #else
7262 #include <time.h>
7263 #endif
7264 #endif
7266 main ()
7268 static struct timeval x; x.tv_sec = x.tv_usec;
7270 return 0;
7272 _ACEOF
7273 rm -f conftest.$ac_objext
7274 if { (ac_try="$ac_compile"
7275 case "(($ac_try" in
7276 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7277 *) ac_try_echo=$ac_try;;
7278 esac
7279 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7280 (eval "$ac_compile") 2>conftest.er1
7281 ac_status=$?
7282 grep -v '^ *+' conftest.er1 >conftest.err
7283 rm -f conftest.er1
7284 cat conftest.err >&5
7285 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7286 (exit $ac_status); } && {
7287 test -z "$ac_c_werror_flag" ||
7288 test ! -s conftest.err
7289 } && test -s conftest.$ac_objext; then
7290 emacs_cv_struct_timeval=yes
7291 else
7292 echo "$as_me: failed program was:" >&5
7293 sed 's/^/| /' conftest.$ac_ext >&5
7295 emacs_cv_struct_timeval=no
7298 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7300 { echo "$as_me:$LINENO: result: $emacs_cv_struct_timeval" >&5
7301 echo "${ECHO_T}$emacs_cv_struct_timeval" >&6; }
7302 HAVE_TIMEVAL=$emacs_cv_struct_timeval
7303 if test $emacs_cv_struct_timeval = yes; then
7305 cat >>confdefs.h <<\_ACEOF
7306 #define HAVE_TIMEVAL 1
7307 _ACEOF
7311 { echo "$as_me:$LINENO: checking for struct exception" >&5
7312 echo $ECHO_N "checking for struct exception... $ECHO_C" >&6; }
7313 if test "${emacs_cv_struct_exception+set}" = set; then
7314 echo $ECHO_N "(cached) $ECHO_C" >&6
7315 else
7316 cat >conftest.$ac_ext <<_ACEOF
7317 /* confdefs.h. */
7318 _ACEOF
7319 cat confdefs.h >>conftest.$ac_ext
7320 cat >>conftest.$ac_ext <<_ACEOF
7321 /* end confdefs.h. */
7322 #include <math.h>
7324 main ()
7326 static struct exception x; x.arg1 = x.arg2 = x.retval; x.name = ""; x.type = 1;
7328 return 0;
7330 _ACEOF
7331 rm -f conftest.$ac_objext
7332 if { (ac_try="$ac_compile"
7333 case "(($ac_try" in
7334 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7335 *) ac_try_echo=$ac_try;;
7336 esac
7337 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7338 (eval "$ac_compile") 2>conftest.er1
7339 ac_status=$?
7340 grep -v '^ *+' conftest.er1 >conftest.err
7341 rm -f conftest.er1
7342 cat conftest.err >&5
7343 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7344 (exit $ac_status); } && {
7345 test -z "$ac_c_werror_flag" ||
7346 test ! -s conftest.err
7347 } && test -s conftest.$ac_objext; then
7348 emacs_cv_struct_exception=yes
7349 else
7350 echo "$as_me: failed program was:" >&5
7351 sed 's/^/| /' conftest.$ac_ext >&5
7353 emacs_cv_struct_exception=no
7356 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7358 { echo "$as_me:$LINENO: result: $emacs_cv_struct_exception" >&5
7359 echo "${ECHO_T}$emacs_cv_struct_exception" >&6; }
7360 HAVE_EXCEPTION=$emacs_cv_struct_exception
7361 if test $emacs_cv_struct_exception != yes; then
7363 cat >>confdefs.h <<\_ACEOF
7364 #define NO_MATHERR 1
7365 _ACEOF
7370 for ac_header in sys/socket.h
7372 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
7373 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
7374 { echo "$as_me:$LINENO: checking for $ac_header" >&5
7375 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
7376 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
7377 echo $ECHO_N "(cached) $ECHO_C" >&6
7379 ac_res=`eval echo '${'$as_ac_Header'}'`
7380 { echo "$as_me:$LINENO: result: $ac_res" >&5
7381 echo "${ECHO_T}$ac_res" >&6; }
7382 else
7383 # Is the header compilable?
7384 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
7385 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
7386 cat >conftest.$ac_ext <<_ACEOF
7387 /* confdefs.h. */
7388 _ACEOF
7389 cat confdefs.h >>conftest.$ac_ext
7390 cat >>conftest.$ac_ext <<_ACEOF
7391 /* end confdefs.h. */
7392 $ac_includes_default
7393 #include <$ac_header>
7394 _ACEOF
7395 rm -f conftest.$ac_objext
7396 if { (ac_try="$ac_compile"
7397 case "(($ac_try" in
7398 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7399 *) ac_try_echo=$ac_try;;
7400 esac
7401 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7402 (eval "$ac_compile") 2>conftest.er1
7403 ac_status=$?
7404 grep -v '^ *+' conftest.er1 >conftest.err
7405 rm -f conftest.er1
7406 cat conftest.err >&5
7407 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7408 (exit $ac_status); } && {
7409 test -z "$ac_c_werror_flag" ||
7410 test ! -s conftest.err
7411 } && test -s conftest.$ac_objext; then
7412 ac_header_compiler=yes
7413 else
7414 echo "$as_me: failed program was:" >&5
7415 sed 's/^/| /' conftest.$ac_ext >&5
7417 ac_header_compiler=no
7420 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7421 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
7422 echo "${ECHO_T}$ac_header_compiler" >&6; }
7424 # Is the header present?
7425 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
7426 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
7427 cat >conftest.$ac_ext <<_ACEOF
7428 /* confdefs.h. */
7429 _ACEOF
7430 cat confdefs.h >>conftest.$ac_ext
7431 cat >>conftest.$ac_ext <<_ACEOF
7432 /* end confdefs.h. */
7433 #include <$ac_header>
7434 _ACEOF
7435 if { (ac_try="$ac_cpp conftest.$ac_ext"
7436 case "(($ac_try" in
7437 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7438 *) ac_try_echo=$ac_try;;
7439 esac
7440 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7441 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
7442 ac_status=$?
7443 grep -v '^ *+' conftest.er1 >conftest.err
7444 rm -f conftest.er1
7445 cat conftest.err >&5
7446 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7447 (exit $ac_status); } >/dev/null && {
7448 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
7449 test ! -s conftest.err
7450 }; then
7451 ac_header_preproc=yes
7452 else
7453 echo "$as_me: failed program was:" >&5
7454 sed 's/^/| /' conftest.$ac_ext >&5
7456 ac_header_preproc=no
7459 rm -f conftest.err conftest.$ac_ext
7460 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
7461 echo "${ECHO_T}$ac_header_preproc" >&6; }
7463 # So? What about this header?
7464 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
7465 yes:no: )
7466 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
7467 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
7468 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
7469 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
7470 ac_header_preproc=yes
7472 no:yes:* )
7473 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
7474 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
7475 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
7476 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
7477 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
7478 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
7479 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
7480 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
7481 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
7482 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
7483 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
7484 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
7487 esac
7488 { echo "$as_me:$LINENO: checking for $ac_header" >&5
7489 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
7490 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
7491 echo $ECHO_N "(cached) $ECHO_C" >&6
7492 else
7493 eval "$as_ac_Header=\$ac_header_preproc"
7495 ac_res=`eval echo '${'$as_ac_Header'}'`
7496 { echo "$as_me:$LINENO: result: $ac_res" >&5
7497 echo "${ECHO_T}$ac_res" >&6; }
7500 if test `eval echo '${'$as_ac_Header'}'` = yes; then
7501 cat >>confdefs.h <<_ACEOF
7502 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
7503 _ACEOF
7507 done
7510 for ac_header in net/if.h
7512 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
7513 { echo "$as_me:$LINENO: checking for $ac_header" >&5
7514 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
7515 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
7516 echo $ECHO_N "(cached) $ECHO_C" >&6
7517 else
7518 cat >conftest.$ac_ext <<_ACEOF
7519 /* confdefs.h. */
7520 _ACEOF
7521 cat confdefs.h >>conftest.$ac_ext
7522 cat >>conftest.$ac_ext <<_ACEOF
7523 /* end confdefs.h. */
7524 $ac_includes_default
7525 #if HAVE_SYS_SOCKET_H
7526 #include <sys/socket.h>
7527 #endif
7529 #include <$ac_header>
7530 _ACEOF
7531 rm -f conftest.$ac_objext
7532 if { (ac_try="$ac_compile"
7533 case "(($ac_try" in
7534 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7535 *) ac_try_echo=$ac_try;;
7536 esac
7537 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7538 (eval "$ac_compile") 2>conftest.er1
7539 ac_status=$?
7540 grep -v '^ *+' conftest.er1 >conftest.err
7541 rm -f conftest.er1
7542 cat conftest.err >&5
7543 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7544 (exit $ac_status); } && {
7545 test -z "$ac_c_werror_flag" ||
7546 test ! -s conftest.err
7547 } && test -s conftest.$ac_objext; then
7548 eval "$as_ac_Header=yes"
7549 else
7550 echo "$as_me: failed program was:" >&5
7551 sed 's/^/| /' conftest.$ac_ext >&5
7553 eval "$as_ac_Header=no"
7556 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7558 ac_res=`eval echo '${'$as_ac_Header'}'`
7559 { echo "$as_me:$LINENO: result: $ac_res" >&5
7560 echo "${ECHO_T}$ac_res" >&6; }
7561 if test `eval echo '${'$as_ac_Header'}'` = yes; then
7562 cat >>confdefs.h <<_ACEOF
7563 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
7564 _ACEOF
7568 done
7571 { echo "$as_me:$LINENO: checking whether struct tm is in sys/time.h or time.h" >&5
7572 echo $ECHO_N "checking whether struct tm is in sys/time.h or time.h... $ECHO_C" >&6; }
7573 if test "${ac_cv_struct_tm+set}" = set; then
7574 echo $ECHO_N "(cached) $ECHO_C" >&6
7575 else
7576 cat >conftest.$ac_ext <<_ACEOF
7577 /* confdefs.h. */
7578 _ACEOF
7579 cat confdefs.h >>conftest.$ac_ext
7580 cat >>conftest.$ac_ext <<_ACEOF
7581 /* end confdefs.h. */
7582 #include <sys/types.h>
7583 #include <time.h>
7586 main ()
7588 struct tm tm;
7589 int *p = &tm.tm_sec;
7590 return !p;
7592 return 0;
7594 _ACEOF
7595 rm -f conftest.$ac_objext
7596 if { (ac_try="$ac_compile"
7597 case "(($ac_try" in
7598 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7599 *) ac_try_echo=$ac_try;;
7600 esac
7601 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7602 (eval "$ac_compile") 2>conftest.er1
7603 ac_status=$?
7604 grep -v '^ *+' conftest.er1 >conftest.err
7605 rm -f conftest.er1
7606 cat conftest.err >&5
7607 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7608 (exit $ac_status); } && {
7609 test -z "$ac_c_werror_flag" ||
7610 test ! -s conftest.err
7611 } && test -s conftest.$ac_objext; then
7612 ac_cv_struct_tm=time.h
7613 else
7614 echo "$as_me: failed program was:" >&5
7615 sed 's/^/| /' conftest.$ac_ext >&5
7617 ac_cv_struct_tm=sys/time.h
7620 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7622 { echo "$as_me:$LINENO: result: $ac_cv_struct_tm" >&5
7623 echo "${ECHO_T}$ac_cv_struct_tm" >&6; }
7624 if test $ac_cv_struct_tm = sys/time.h; then
7626 cat >>confdefs.h <<\_ACEOF
7627 #define TM_IN_SYS_TIME 1
7628 _ACEOF
7632 { echo "$as_me:$LINENO: checking for struct tm.tm_zone" >&5
7633 echo $ECHO_N "checking for struct tm.tm_zone... $ECHO_C" >&6; }
7634 if test "${ac_cv_member_struct_tm_tm_zone+set}" = set; then
7635 echo $ECHO_N "(cached) $ECHO_C" >&6
7636 else
7637 cat >conftest.$ac_ext <<_ACEOF
7638 /* confdefs.h. */
7639 _ACEOF
7640 cat confdefs.h >>conftest.$ac_ext
7641 cat >>conftest.$ac_ext <<_ACEOF
7642 /* end confdefs.h. */
7643 #include <sys/types.h>
7644 #include <$ac_cv_struct_tm>
7648 main ()
7650 static struct tm ac_aggr;
7651 if (ac_aggr.tm_zone)
7652 return 0;
7654 return 0;
7656 _ACEOF
7657 rm -f conftest.$ac_objext
7658 if { (ac_try="$ac_compile"
7659 case "(($ac_try" in
7660 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7661 *) ac_try_echo=$ac_try;;
7662 esac
7663 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7664 (eval "$ac_compile") 2>conftest.er1
7665 ac_status=$?
7666 grep -v '^ *+' conftest.er1 >conftest.err
7667 rm -f conftest.er1
7668 cat conftest.err >&5
7669 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7670 (exit $ac_status); } && {
7671 test -z "$ac_c_werror_flag" ||
7672 test ! -s conftest.err
7673 } && test -s conftest.$ac_objext; then
7674 ac_cv_member_struct_tm_tm_zone=yes
7675 else
7676 echo "$as_me: failed program was:" >&5
7677 sed 's/^/| /' conftest.$ac_ext >&5
7679 cat >conftest.$ac_ext <<_ACEOF
7680 /* confdefs.h. */
7681 _ACEOF
7682 cat confdefs.h >>conftest.$ac_ext
7683 cat >>conftest.$ac_ext <<_ACEOF
7684 /* end confdefs.h. */
7685 #include <sys/types.h>
7686 #include <$ac_cv_struct_tm>
7690 main ()
7692 static struct tm ac_aggr;
7693 if (sizeof ac_aggr.tm_zone)
7694 return 0;
7696 return 0;
7698 _ACEOF
7699 rm -f conftest.$ac_objext
7700 if { (ac_try="$ac_compile"
7701 case "(($ac_try" in
7702 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7703 *) ac_try_echo=$ac_try;;
7704 esac
7705 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7706 (eval "$ac_compile") 2>conftest.er1
7707 ac_status=$?
7708 grep -v '^ *+' conftest.er1 >conftest.err
7709 rm -f conftest.er1
7710 cat conftest.err >&5
7711 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7712 (exit $ac_status); } && {
7713 test -z "$ac_c_werror_flag" ||
7714 test ! -s conftest.err
7715 } && test -s conftest.$ac_objext; then
7716 ac_cv_member_struct_tm_tm_zone=yes
7717 else
7718 echo "$as_me: failed program was:" >&5
7719 sed 's/^/| /' conftest.$ac_ext >&5
7721 ac_cv_member_struct_tm_tm_zone=no
7724 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7727 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7729 { echo "$as_me:$LINENO: result: $ac_cv_member_struct_tm_tm_zone" >&5
7730 echo "${ECHO_T}$ac_cv_member_struct_tm_tm_zone" >&6; }
7731 if test $ac_cv_member_struct_tm_tm_zone = yes; then
7733 cat >>confdefs.h <<_ACEOF
7734 #define HAVE_STRUCT_TM_TM_ZONE 1
7735 _ACEOF
7740 if test "$ac_cv_member_struct_tm_tm_zone" = yes; then
7742 cat >>confdefs.h <<\_ACEOF
7743 #define HAVE_TM_ZONE 1
7744 _ACEOF
7746 else
7747 { echo "$as_me:$LINENO: checking whether tzname is declared" >&5
7748 echo $ECHO_N "checking whether tzname is declared... $ECHO_C" >&6; }
7749 if test "${ac_cv_have_decl_tzname+set}" = set; then
7750 echo $ECHO_N "(cached) $ECHO_C" >&6
7751 else
7752 cat >conftest.$ac_ext <<_ACEOF
7753 /* confdefs.h. */
7754 _ACEOF
7755 cat confdefs.h >>conftest.$ac_ext
7756 cat >>conftest.$ac_ext <<_ACEOF
7757 /* end confdefs.h. */
7758 #include <time.h>
7761 main ()
7763 #ifndef tzname
7764 (void) tzname;
7765 #endif
7768 return 0;
7770 _ACEOF
7771 rm -f conftest.$ac_objext
7772 if { (ac_try="$ac_compile"
7773 case "(($ac_try" in
7774 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7775 *) ac_try_echo=$ac_try;;
7776 esac
7777 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7778 (eval "$ac_compile") 2>conftest.er1
7779 ac_status=$?
7780 grep -v '^ *+' conftest.er1 >conftest.err
7781 rm -f conftest.er1
7782 cat conftest.err >&5
7783 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7784 (exit $ac_status); } && {
7785 test -z "$ac_c_werror_flag" ||
7786 test ! -s conftest.err
7787 } && test -s conftest.$ac_objext; then
7788 ac_cv_have_decl_tzname=yes
7789 else
7790 echo "$as_me: failed program was:" >&5
7791 sed 's/^/| /' conftest.$ac_ext >&5
7793 ac_cv_have_decl_tzname=no
7796 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7798 { echo "$as_me:$LINENO: result: $ac_cv_have_decl_tzname" >&5
7799 echo "${ECHO_T}$ac_cv_have_decl_tzname" >&6; }
7800 if test $ac_cv_have_decl_tzname = yes; then
7802 cat >>confdefs.h <<_ACEOF
7803 #define HAVE_DECL_TZNAME 1
7804 _ACEOF
7807 else
7808 cat >>confdefs.h <<_ACEOF
7809 #define HAVE_DECL_TZNAME 0
7810 _ACEOF
7816 { echo "$as_me:$LINENO: checking for tzname" >&5
7817 echo $ECHO_N "checking for tzname... $ECHO_C" >&6; }
7818 if test "${ac_cv_var_tzname+set}" = set; then
7819 echo $ECHO_N "(cached) $ECHO_C" >&6
7820 else
7821 cat >conftest.$ac_ext <<_ACEOF
7822 /* confdefs.h. */
7823 _ACEOF
7824 cat confdefs.h >>conftest.$ac_ext
7825 cat >>conftest.$ac_ext <<_ACEOF
7826 /* end confdefs.h. */
7827 #include <time.h>
7828 #if !HAVE_DECL_TZNAME
7829 extern char *tzname[];
7830 #endif
7833 main ()
7835 return tzname[0][0];
7837 return 0;
7839 _ACEOF
7840 rm -f conftest.$ac_objext conftest$ac_exeext
7841 if { (ac_try="$ac_link"
7842 case "(($ac_try" in
7843 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7844 *) ac_try_echo=$ac_try;;
7845 esac
7846 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7847 (eval "$ac_link") 2>conftest.er1
7848 ac_status=$?
7849 grep -v '^ *+' conftest.er1 >conftest.err
7850 rm -f conftest.er1
7851 cat conftest.err >&5
7852 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7853 (exit $ac_status); } && {
7854 test -z "$ac_c_werror_flag" ||
7855 test ! -s conftest.err
7856 } && test -s conftest$ac_exeext &&
7857 $as_test_x conftest$ac_exeext; then
7858 ac_cv_var_tzname=yes
7859 else
7860 echo "$as_me: failed program was:" >&5
7861 sed 's/^/| /' conftest.$ac_ext >&5
7863 ac_cv_var_tzname=no
7866 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
7867 conftest$ac_exeext conftest.$ac_ext
7869 { echo "$as_me:$LINENO: result: $ac_cv_var_tzname" >&5
7870 echo "${ECHO_T}$ac_cv_var_tzname" >&6; }
7871 if test $ac_cv_var_tzname = yes; then
7873 cat >>confdefs.h <<\_ACEOF
7874 #define HAVE_TZNAME 1
7875 _ACEOF
7880 { echo "$as_me:$LINENO: checking for struct tm.tm_gmtoff" >&5
7881 echo $ECHO_N "checking for struct tm.tm_gmtoff... $ECHO_C" >&6; }
7882 if test "${ac_cv_member_struct_tm_tm_gmtoff+set}" = set; then
7883 echo $ECHO_N "(cached) $ECHO_C" >&6
7884 else
7885 cat >conftest.$ac_ext <<_ACEOF
7886 /* confdefs.h. */
7887 _ACEOF
7888 cat confdefs.h >>conftest.$ac_ext
7889 cat >>conftest.$ac_ext <<_ACEOF
7890 /* end confdefs.h. */
7891 #include <time.h>
7894 main ()
7896 static struct tm ac_aggr;
7897 if (ac_aggr.tm_gmtoff)
7898 return 0;
7900 return 0;
7902 _ACEOF
7903 rm -f conftest.$ac_objext
7904 if { (ac_try="$ac_compile"
7905 case "(($ac_try" in
7906 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7907 *) ac_try_echo=$ac_try;;
7908 esac
7909 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7910 (eval "$ac_compile") 2>conftest.er1
7911 ac_status=$?
7912 grep -v '^ *+' conftest.er1 >conftest.err
7913 rm -f conftest.er1
7914 cat conftest.err >&5
7915 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7916 (exit $ac_status); } && {
7917 test -z "$ac_c_werror_flag" ||
7918 test ! -s conftest.err
7919 } && test -s conftest.$ac_objext; then
7920 ac_cv_member_struct_tm_tm_gmtoff=yes
7921 else
7922 echo "$as_me: failed program was:" >&5
7923 sed 's/^/| /' conftest.$ac_ext >&5
7925 cat >conftest.$ac_ext <<_ACEOF
7926 /* confdefs.h. */
7927 _ACEOF
7928 cat confdefs.h >>conftest.$ac_ext
7929 cat >>conftest.$ac_ext <<_ACEOF
7930 /* end confdefs.h. */
7931 #include <time.h>
7934 main ()
7936 static struct tm ac_aggr;
7937 if (sizeof ac_aggr.tm_gmtoff)
7938 return 0;
7940 return 0;
7942 _ACEOF
7943 rm -f conftest.$ac_objext
7944 if { (ac_try="$ac_compile"
7945 case "(($ac_try" in
7946 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7947 *) ac_try_echo=$ac_try;;
7948 esac
7949 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7950 (eval "$ac_compile") 2>conftest.er1
7951 ac_status=$?
7952 grep -v '^ *+' conftest.er1 >conftest.err
7953 rm -f conftest.er1
7954 cat conftest.err >&5
7955 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7956 (exit $ac_status); } && {
7957 test -z "$ac_c_werror_flag" ||
7958 test ! -s conftest.err
7959 } && test -s conftest.$ac_objext; then
7960 ac_cv_member_struct_tm_tm_gmtoff=yes
7961 else
7962 echo "$as_me: failed program was:" >&5
7963 sed 's/^/| /' conftest.$ac_ext >&5
7965 ac_cv_member_struct_tm_tm_gmtoff=no
7968 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7971 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7973 { echo "$as_me:$LINENO: result: $ac_cv_member_struct_tm_tm_gmtoff" >&5
7974 echo "${ECHO_T}$ac_cv_member_struct_tm_tm_gmtoff" >&6; }
7975 if test $ac_cv_member_struct_tm_tm_gmtoff = yes; then
7977 cat >>confdefs.h <<\_ACEOF
7978 #define HAVE_TM_GMTOFF 1
7979 _ACEOF
7983 { echo "$as_me:$LINENO: checking for struct ifreq.ifr_flags" >&5
7984 echo $ECHO_N "checking for struct ifreq.ifr_flags... $ECHO_C" >&6; }
7985 if test "${ac_cv_member_struct_ifreq_ifr_flags+set}" = set; then
7986 echo $ECHO_N "(cached) $ECHO_C" >&6
7987 else
7988 cat >conftest.$ac_ext <<_ACEOF
7989 /* confdefs.h. */
7990 _ACEOF
7991 cat confdefs.h >>conftest.$ac_ext
7992 cat >>conftest.$ac_ext <<_ACEOF
7993 /* end confdefs.h. */
7994 $ac_includes_default
7995 #if HAVE_SYS_SOCKET_H
7996 #include <sys/socket.h>
7997 #endif
7998 #if HAVE_NET_IF_H
7999 #include <net/if.h>
8000 #endif
8003 main ()
8005 static struct ifreq ac_aggr;
8006 if (ac_aggr.ifr_flags)
8007 return 0;
8009 return 0;
8011 _ACEOF
8012 rm -f conftest.$ac_objext
8013 if { (ac_try="$ac_compile"
8014 case "(($ac_try" in
8015 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8016 *) ac_try_echo=$ac_try;;
8017 esac
8018 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8019 (eval "$ac_compile") 2>conftest.er1
8020 ac_status=$?
8021 grep -v '^ *+' conftest.er1 >conftest.err
8022 rm -f conftest.er1
8023 cat conftest.err >&5
8024 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8025 (exit $ac_status); } && {
8026 test -z "$ac_c_werror_flag" ||
8027 test ! -s conftest.err
8028 } && test -s conftest.$ac_objext; then
8029 ac_cv_member_struct_ifreq_ifr_flags=yes
8030 else
8031 echo "$as_me: failed program was:" >&5
8032 sed 's/^/| /' conftest.$ac_ext >&5
8034 cat >conftest.$ac_ext <<_ACEOF
8035 /* confdefs.h. */
8036 _ACEOF
8037 cat confdefs.h >>conftest.$ac_ext
8038 cat >>conftest.$ac_ext <<_ACEOF
8039 /* end confdefs.h. */
8040 $ac_includes_default
8041 #if HAVE_SYS_SOCKET_H
8042 #include <sys/socket.h>
8043 #endif
8044 #if HAVE_NET_IF_H
8045 #include <net/if.h>
8046 #endif
8049 main ()
8051 static struct ifreq ac_aggr;
8052 if (sizeof ac_aggr.ifr_flags)
8053 return 0;
8055 return 0;
8057 _ACEOF
8058 rm -f conftest.$ac_objext
8059 if { (ac_try="$ac_compile"
8060 case "(($ac_try" in
8061 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8062 *) ac_try_echo=$ac_try;;
8063 esac
8064 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8065 (eval "$ac_compile") 2>conftest.er1
8066 ac_status=$?
8067 grep -v '^ *+' conftest.er1 >conftest.err
8068 rm -f conftest.er1
8069 cat conftest.err >&5
8070 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8071 (exit $ac_status); } && {
8072 test -z "$ac_c_werror_flag" ||
8073 test ! -s conftest.err
8074 } && test -s conftest.$ac_objext; then
8075 ac_cv_member_struct_ifreq_ifr_flags=yes
8076 else
8077 echo "$as_me: failed program was:" >&5
8078 sed 's/^/| /' conftest.$ac_ext >&5
8080 ac_cv_member_struct_ifreq_ifr_flags=no
8083 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8086 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8088 { echo "$as_me:$LINENO: result: $ac_cv_member_struct_ifreq_ifr_flags" >&5
8089 echo "${ECHO_T}$ac_cv_member_struct_ifreq_ifr_flags" >&6; }
8090 if test $ac_cv_member_struct_ifreq_ifr_flags = yes; then
8092 cat >>confdefs.h <<_ACEOF
8093 #define HAVE_STRUCT_IFREQ_IFR_FLAGS 1
8094 _ACEOF
8098 { echo "$as_me:$LINENO: checking for struct ifreq.ifr_hwaddr" >&5
8099 echo $ECHO_N "checking for struct ifreq.ifr_hwaddr... $ECHO_C" >&6; }
8100 if test "${ac_cv_member_struct_ifreq_ifr_hwaddr+set}" = set; then
8101 echo $ECHO_N "(cached) $ECHO_C" >&6
8102 else
8103 cat >conftest.$ac_ext <<_ACEOF
8104 /* confdefs.h. */
8105 _ACEOF
8106 cat confdefs.h >>conftest.$ac_ext
8107 cat >>conftest.$ac_ext <<_ACEOF
8108 /* end confdefs.h. */
8109 $ac_includes_default
8110 #if HAVE_SYS_SOCKET_H
8111 #include <sys/socket.h>
8112 #endif
8113 #if HAVE_NET_IF_H
8114 #include <net/if.h>
8115 #endif
8118 main ()
8120 static struct ifreq ac_aggr;
8121 if (ac_aggr.ifr_hwaddr)
8122 return 0;
8124 return 0;
8126 _ACEOF
8127 rm -f conftest.$ac_objext
8128 if { (ac_try="$ac_compile"
8129 case "(($ac_try" in
8130 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8131 *) ac_try_echo=$ac_try;;
8132 esac
8133 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8134 (eval "$ac_compile") 2>conftest.er1
8135 ac_status=$?
8136 grep -v '^ *+' conftest.er1 >conftest.err
8137 rm -f conftest.er1
8138 cat conftest.err >&5
8139 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8140 (exit $ac_status); } && {
8141 test -z "$ac_c_werror_flag" ||
8142 test ! -s conftest.err
8143 } && test -s conftest.$ac_objext; then
8144 ac_cv_member_struct_ifreq_ifr_hwaddr=yes
8145 else
8146 echo "$as_me: failed program was:" >&5
8147 sed 's/^/| /' conftest.$ac_ext >&5
8149 cat >conftest.$ac_ext <<_ACEOF
8150 /* confdefs.h. */
8151 _ACEOF
8152 cat confdefs.h >>conftest.$ac_ext
8153 cat >>conftest.$ac_ext <<_ACEOF
8154 /* end confdefs.h. */
8155 $ac_includes_default
8156 #if HAVE_SYS_SOCKET_H
8157 #include <sys/socket.h>
8158 #endif
8159 #if HAVE_NET_IF_H
8160 #include <net/if.h>
8161 #endif
8164 main ()
8166 static struct ifreq ac_aggr;
8167 if (sizeof ac_aggr.ifr_hwaddr)
8168 return 0;
8170 return 0;
8172 _ACEOF
8173 rm -f conftest.$ac_objext
8174 if { (ac_try="$ac_compile"
8175 case "(($ac_try" in
8176 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8177 *) ac_try_echo=$ac_try;;
8178 esac
8179 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8180 (eval "$ac_compile") 2>conftest.er1
8181 ac_status=$?
8182 grep -v '^ *+' conftest.er1 >conftest.err
8183 rm -f conftest.er1
8184 cat conftest.err >&5
8185 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8186 (exit $ac_status); } && {
8187 test -z "$ac_c_werror_flag" ||
8188 test ! -s conftest.err
8189 } && test -s conftest.$ac_objext; then
8190 ac_cv_member_struct_ifreq_ifr_hwaddr=yes
8191 else
8192 echo "$as_me: failed program was:" >&5
8193 sed 's/^/| /' conftest.$ac_ext >&5
8195 ac_cv_member_struct_ifreq_ifr_hwaddr=no
8198 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8201 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8203 { echo "$as_me:$LINENO: result: $ac_cv_member_struct_ifreq_ifr_hwaddr" >&5
8204 echo "${ECHO_T}$ac_cv_member_struct_ifreq_ifr_hwaddr" >&6; }
8205 if test $ac_cv_member_struct_ifreq_ifr_hwaddr = yes; then
8207 cat >>confdefs.h <<_ACEOF
8208 #define HAVE_STRUCT_IFREQ_IFR_HWADDR 1
8209 _ACEOF
8213 { echo "$as_me:$LINENO: checking for struct ifreq.ifr_netmask" >&5
8214 echo $ECHO_N "checking for struct ifreq.ifr_netmask... $ECHO_C" >&6; }
8215 if test "${ac_cv_member_struct_ifreq_ifr_netmask+set}" = set; then
8216 echo $ECHO_N "(cached) $ECHO_C" >&6
8217 else
8218 cat >conftest.$ac_ext <<_ACEOF
8219 /* confdefs.h. */
8220 _ACEOF
8221 cat confdefs.h >>conftest.$ac_ext
8222 cat >>conftest.$ac_ext <<_ACEOF
8223 /* end confdefs.h. */
8224 $ac_includes_default
8225 #if HAVE_SYS_SOCKET_H
8226 #include <sys/socket.h>
8227 #endif
8228 #if HAVE_NET_IF_H
8229 #include <net/if.h>
8230 #endif
8233 main ()
8235 static struct ifreq ac_aggr;
8236 if (ac_aggr.ifr_netmask)
8237 return 0;
8239 return 0;
8241 _ACEOF
8242 rm -f conftest.$ac_objext
8243 if { (ac_try="$ac_compile"
8244 case "(($ac_try" in
8245 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8246 *) ac_try_echo=$ac_try;;
8247 esac
8248 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8249 (eval "$ac_compile") 2>conftest.er1
8250 ac_status=$?
8251 grep -v '^ *+' conftest.er1 >conftest.err
8252 rm -f conftest.er1
8253 cat conftest.err >&5
8254 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8255 (exit $ac_status); } && {
8256 test -z "$ac_c_werror_flag" ||
8257 test ! -s conftest.err
8258 } && test -s conftest.$ac_objext; then
8259 ac_cv_member_struct_ifreq_ifr_netmask=yes
8260 else
8261 echo "$as_me: failed program was:" >&5
8262 sed 's/^/| /' conftest.$ac_ext >&5
8264 cat >conftest.$ac_ext <<_ACEOF
8265 /* confdefs.h. */
8266 _ACEOF
8267 cat confdefs.h >>conftest.$ac_ext
8268 cat >>conftest.$ac_ext <<_ACEOF
8269 /* end confdefs.h. */
8270 $ac_includes_default
8271 #if HAVE_SYS_SOCKET_H
8272 #include <sys/socket.h>
8273 #endif
8274 #if HAVE_NET_IF_H
8275 #include <net/if.h>
8276 #endif
8279 main ()
8281 static struct ifreq ac_aggr;
8282 if (sizeof ac_aggr.ifr_netmask)
8283 return 0;
8285 return 0;
8287 _ACEOF
8288 rm -f conftest.$ac_objext
8289 if { (ac_try="$ac_compile"
8290 case "(($ac_try" in
8291 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8292 *) ac_try_echo=$ac_try;;
8293 esac
8294 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8295 (eval "$ac_compile") 2>conftest.er1
8296 ac_status=$?
8297 grep -v '^ *+' conftest.er1 >conftest.err
8298 rm -f conftest.er1
8299 cat conftest.err >&5
8300 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8301 (exit $ac_status); } && {
8302 test -z "$ac_c_werror_flag" ||
8303 test ! -s conftest.err
8304 } && test -s conftest.$ac_objext; then
8305 ac_cv_member_struct_ifreq_ifr_netmask=yes
8306 else
8307 echo "$as_me: failed program was:" >&5
8308 sed 's/^/| /' conftest.$ac_ext >&5
8310 ac_cv_member_struct_ifreq_ifr_netmask=no
8313 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8316 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8318 { echo "$as_me:$LINENO: result: $ac_cv_member_struct_ifreq_ifr_netmask" >&5
8319 echo "${ECHO_T}$ac_cv_member_struct_ifreq_ifr_netmask" >&6; }
8320 if test $ac_cv_member_struct_ifreq_ifr_netmask = yes; then
8322 cat >>confdefs.h <<_ACEOF
8323 #define HAVE_STRUCT_IFREQ_IFR_NETMASK 1
8324 _ACEOF
8328 { echo "$as_me:$LINENO: checking for struct ifreq.ifr_broadaddr" >&5
8329 echo $ECHO_N "checking for struct ifreq.ifr_broadaddr... $ECHO_C" >&6; }
8330 if test "${ac_cv_member_struct_ifreq_ifr_broadaddr+set}" = set; then
8331 echo $ECHO_N "(cached) $ECHO_C" >&6
8332 else
8333 cat >conftest.$ac_ext <<_ACEOF
8334 /* confdefs.h. */
8335 _ACEOF
8336 cat confdefs.h >>conftest.$ac_ext
8337 cat >>conftest.$ac_ext <<_ACEOF
8338 /* end confdefs.h. */
8339 $ac_includes_default
8340 #if HAVE_SYS_SOCKET_H
8341 #include <sys/socket.h>
8342 #endif
8343 #if HAVE_NET_IF_H
8344 #include <net/if.h>
8345 #endif
8348 main ()
8350 static struct ifreq ac_aggr;
8351 if (ac_aggr.ifr_broadaddr)
8352 return 0;
8354 return 0;
8356 _ACEOF
8357 rm -f conftest.$ac_objext
8358 if { (ac_try="$ac_compile"
8359 case "(($ac_try" in
8360 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8361 *) ac_try_echo=$ac_try;;
8362 esac
8363 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8364 (eval "$ac_compile") 2>conftest.er1
8365 ac_status=$?
8366 grep -v '^ *+' conftest.er1 >conftest.err
8367 rm -f conftest.er1
8368 cat conftest.err >&5
8369 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8370 (exit $ac_status); } && {
8371 test -z "$ac_c_werror_flag" ||
8372 test ! -s conftest.err
8373 } && test -s conftest.$ac_objext; then
8374 ac_cv_member_struct_ifreq_ifr_broadaddr=yes
8375 else
8376 echo "$as_me: failed program was:" >&5
8377 sed 's/^/| /' conftest.$ac_ext >&5
8379 cat >conftest.$ac_ext <<_ACEOF
8380 /* confdefs.h. */
8381 _ACEOF
8382 cat confdefs.h >>conftest.$ac_ext
8383 cat >>conftest.$ac_ext <<_ACEOF
8384 /* end confdefs.h. */
8385 $ac_includes_default
8386 #if HAVE_SYS_SOCKET_H
8387 #include <sys/socket.h>
8388 #endif
8389 #if HAVE_NET_IF_H
8390 #include <net/if.h>
8391 #endif
8394 main ()
8396 static struct ifreq ac_aggr;
8397 if (sizeof ac_aggr.ifr_broadaddr)
8398 return 0;
8400 return 0;
8402 _ACEOF
8403 rm -f conftest.$ac_objext
8404 if { (ac_try="$ac_compile"
8405 case "(($ac_try" in
8406 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8407 *) ac_try_echo=$ac_try;;
8408 esac
8409 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8410 (eval "$ac_compile") 2>conftest.er1
8411 ac_status=$?
8412 grep -v '^ *+' conftest.er1 >conftest.err
8413 rm -f conftest.er1
8414 cat conftest.err >&5
8415 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8416 (exit $ac_status); } && {
8417 test -z "$ac_c_werror_flag" ||
8418 test ! -s conftest.err
8419 } && test -s conftest.$ac_objext; then
8420 ac_cv_member_struct_ifreq_ifr_broadaddr=yes
8421 else
8422 echo "$as_me: failed program was:" >&5
8423 sed 's/^/| /' conftest.$ac_ext >&5
8425 ac_cv_member_struct_ifreq_ifr_broadaddr=no
8428 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8431 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8433 { echo "$as_me:$LINENO: result: $ac_cv_member_struct_ifreq_ifr_broadaddr" >&5
8434 echo "${ECHO_T}$ac_cv_member_struct_ifreq_ifr_broadaddr" >&6; }
8435 if test $ac_cv_member_struct_ifreq_ifr_broadaddr = yes; then
8437 cat >>confdefs.h <<_ACEOF
8438 #define HAVE_STRUCT_IFREQ_IFR_BROADADDR 1
8439 _ACEOF
8443 { echo "$as_me:$LINENO: checking for struct ifreq.ifr_addr" >&5
8444 echo $ECHO_N "checking for struct ifreq.ifr_addr... $ECHO_C" >&6; }
8445 if test "${ac_cv_member_struct_ifreq_ifr_addr+set}" = set; then
8446 echo $ECHO_N "(cached) $ECHO_C" >&6
8447 else
8448 cat >conftest.$ac_ext <<_ACEOF
8449 /* confdefs.h. */
8450 _ACEOF
8451 cat confdefs.h >>conftest.$ac_ext
8452 cat >>conftest.$ac_ext <<_ACEOF
8453 /* end confdefs.h. */
8454 $ac_includes_default
8455 #if HAVE_SYS_SOCKET_H
8456 #include <sys/socket.h>
8457 #endif
8458 #if HAVE_NET_IF_H
8459 #include <net/if.h>
8460 #endif
8463 main ()
8465 static struct ifreq ac_aggr;
8466 if (ac_aggr.ifr_addr)
8467 return 0;
8469 return 0;
8471 _ACEOF
8472 rm -f conftest.$ac_objext
8473 if { (ac_try="$ac_compile"
8474 case "(($ac_try" in
8475 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8476 *) ac_try_echo=$ac_try;;
8477 esac
8478 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8479 (eval "$ac_compile") 2>conftest.er1
8480 ac_status=$?
8481 grep -v '^ *+' conftest.er1 >conftest.err
8482 rm -f conftest.er1
8483 cat conftest.err >&5
8484 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8485 (exit $ac_status); } && {
8486 test -z "$ac_c_werror_flag" ||
8487 test ! -s conftest.err
8488 } && test -s conftest.$ac_objext; then
8489 ac_cv_member_struct_ifreq_ifr_addr=yes
8490 else
8491 echo "$as_me: failed program was:" >&5
8492 sed 's/^/| /' conftest.$ac_ext >&5
8494 cat >conftest.$ac_ext <<_ACEOF
8495 /* confdefs.h. */
8496 _ACEOF
8497 cat confdefs.h >>conftest.$ac_ext
8498 cat >>conftest.$ac_ext <<_ACEOF
8499 /* end confdefs.h. */
8500 $ac_includes_default
8501 #if HAVE_SYS_SOCKET_H
8502 #include <sys/socket.h>
8503 #endif
8504 #if HAVE_NET_IF_H
8505 #include <net/if.h>
8506 #endif
8509 main ()
8511 static struct ifreq ac_aggr;
8512 if (sizeof ac_aggr.ifr_addr)
8513 return 0;
8515 return 0;
8517 _ACEOF
8518 rm -f conftest.$ac_objext
8519 if { (ac_try="$ac_compile"
8520 case "(($ac_try" in
8521 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8522 *) ac_try_echo=$ac_try;;
8523 esac
8524 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8525 (eval "$ac_compile") 2>conftest.er1
8526 ac_status=$?
8527 grep -v '^ *+' conftest.er1 >conftest.err
8528 rm -f conftest.er1
8529 cat conftest.err >&5
8530 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8531 (exit $ac_status); } && {
8532 test -z "$ac_c_werror_flag" ||
8533 test ! -s conftest.err
8534 } && test -s conftest.$ac_objext; then
8535 ac_cv_member_struct_ifreq_ifr_addr=yes
8536 else
8537 echo "$as_me: failed program was:" >&5
8538 sed 's/^/| /' conftest.$ac_ext >&5
8540 ac_cv_member_struct_ifreq_ifr_addr=no
8543 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8546 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8548 { echo "$as_me:$LINENO: result: $ac_cv_member_struct_ifreq_ifr_addr" >&5
8549 echo "${ECHO_T}$ac_cv_member_struct_ifreq_ifr_addr" >&6; }
8550 if test $ac_cv_member_struct_ifreq_ifr_addr = yes; then
8552 cat >>confdefs.h <<_ACEOF
8553 #define HAVE_STRUCT_IFREQ_IFR_ADDR 1
8554 _ACEOF
8561 { echo "$as_me:$LINENO: checking for function prototypes" >&5
8562 echo $ECHO_N "checking for function prototypes... $ECHO_C" >&6; }
8563 if test "$ac_cv_prog_cc_c89" != no; then
8564 { echo "$as_me:$LINENO: result: yes" >&5
8565 echo "${ECHO_T}yes" >&6; }
8567 cat >>confdefs.h <<\_ACEOF
8568 #define PROTOTYPES 1
8569 _ACEOF
8572 cat >>confdefs.h <<\_ACEOF
8573 #define __PROTOTYPES 1
8574 _ACEOF
8576 else
8577 { echo "$as_me:$LINENO: result: no" >&5
8578 echo "${ECHO_T}no" >&6; }
8581 { echo "$as_me:$LINENO: checking for working volatile" >&5
8582 echo $ECHO_N "checking for working volatile... $ECHO_C" >&6; }
8583 if test "${ac_cv_c_volatile+set}" = set; then
8584 echo $ECHO_N "(cached) $ECHO_C" >&6
8585 else
8586 cat >conftest.$ac_ext <<_ACEOF
8587 /* confdefs.h. */
8588 _ACEOF
8589 cat confdefs.h >>conftest.$ac_ext
8590 cat >>conftest.$ac_ext <<_ACEOF
8591 /* end confdefs.h. */
8594 main ()
8597 volatile int x;
8598 int * volatile y = (int *) 0;
8599 return !x && !y;
8601 return 0;
8603 _ACEOF
8604 rm -f conftest.$ac_objext
8605 if { (ac_try="$ac_compile"
8606 case "(($ac_try" in
8607 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8608 *) ac_try_echo=$ac_try;;
8609 esac
8610 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8611 (eval "$ac_compile") 2>conftest.er1
8612 ac_status=$?
8613 grep -v '^ *+' conftest.er1 >conftest.err
8614 rm -f conftest.er1
8615 cat conftest.err >&5
8616 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8617 (exit $ac_status); } && {
8618 test -z "$ac_c_werror_flag" ||
8619 test ! -s conftest.err
8620 } && test -s conftest.$ac_objext; then
8621 ac_cv_c_volatile=yes
8622 else
8623 echo "$as_me: failed program was:" >&5
8624 sed 's/^/| /' conftest.$ac_ext >&5
8626 ac_cv_c_volatile=no
8629 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8631 { echo "$as_me:$LINENO: result: $ac_cv_c_volatile" >&5
8632 echo "${ECHO_T}$ac_cv_c_volatile" >&6; }
8633 if test $ac_cv_c_volatile = no; then
8635 cat >>confdefs.h <<\_ACEOF
8636 #define volatile
8637 _ACEOF
8641 { echo "$as_me:$LINENO: checking for an ANSI C-conforming const" >&5
8642 echo $ECHO_N "checking for an ANSI C-conforming const... $ECHO_C" >&6; }
8643 if test "${ac_cv_c_const+set}" = set; then
8644 echo $ECHO_N "(cached) $ECHO_C" >&6
8645 else
8646 cat >conftest.$ac_ext <<_ACEOF
8647 /* confdefs.h. */
8648 _ACEOF
8649 cat confdefs.h >>conftest.$ac_ext
8650 cat >>conftest.$ac_ext <<_ACEOF
8651 /* end confdefs.h. */
8654 main ()
8656 /* FIXME: Include the comments suggested by Paul. */
8657 #ifndef __cplusplus
8658 /* Ultrix mips cc rejects this. */
8659 typedef int charset[2];
8660 const charset cs;
8661 /* SunOS 4.1.1 cc rejects this. */
8662 char const *const *pcpcc;
8663 char **ppc;
8664 /* NEC SVR4.0.2 mips cc rejects this. */
8665 struct point {int x, y;};
8666 static struct point const zero = {0,0};
8667 /* AIX XL C 1.02.0.0 rejects this.
8668 It does not let you subtract one const X* pointer from another in
8669 an arm of an if-expression whose if-part is not a constant
8670 expression */
8671 const char *g = "string";
8672 pcpcc = &g + (g ? g-g : 0);
8673 /* HPUX 7.0 cc rejects these. */
8674 ++pcpcc;
8675 ppc = (char**) pcpcc;
8676 pcpcc = (char const *const *) ppc;
8677 { /* SCO 3.2v4 cc rejects this. */
8678 char *t;
8679 char const *s = 0 ? (char *) 0 : (char const *) 0;
8681 *t++ = 0;
8682 if (s) return 0;
8684 { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
8685 int x[] = {25, 17};
8686 const int *foo = &x[0];
8687 ++foo;
8689 { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
8690 typedef const int *iptr;
8691 iptr p = 0;
8692 ++p;
8694 { /* AIX XL C 1.02.0.0 rejects this saying
8695 "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
8696 struct s { int j; const int *ap[3]; };
8697 struct s *b; b->j = 5;
8699 { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
8700 const int foo = 10;
8701 if (!foo) return 0;
8703 return !cs[0] && !zero.x;
8704 #endif
8707 return 0;
8709 _ACEOF
8710 rm -f conftest.$ac_objext
8711 if { (ac_try="$ac_compile"
8712 case "(($ac_try" in
8713 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8714 *) ac_try_echo=$ac_try;;
8715 esac
8716 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8717 (eval "$ac_compile") 2>conftest.er1
8718 ac_status=$?
8719 grep -v '^ *+' conftest.er1 >conftest.err
8720 rm -f conftest.er1
8721 cat conftest.err >&5
8722 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8723 (exit $ac_status); } && {
8724 test -z "$ac_c_werror_flag" ||
8725 test ! -s conftest.err
8726 } && test -s conftest.$ac_objext; then
8727 ac_cv_c_const=yes
8728 else
8729 echo "$as_me: failed program was:" >&5
8730 sed 's/^/| /' conftest.$ac_ext >&5
8732 ac_cv_c_const=no
8735 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8737 { echo "$as_me:$LINENO: result: $ac_cv_c_const" >&5
8738 echo "${ECHO_T}$ac_cv_c_const" >&6; }
8739 if test $ac_cv_c_const = no; then
8741 cat >>confdefs.h <<\_ACEOF
8742 #define const
8743 _ACEOF
8747 { echo "$as_me:$LINENO: checking for void * support" >&5
8748 echo $ECHO_N "checking for void * support... $ECHO_C" >&6; }
8749 if test "${emacs_cv_void_star+set}" = set; then
8750 echo $ECHO_N "(cached) $ECHO_C" >&6
8751 else
8752 cat >conftest.$ac_ext <<_ACEOF
8753 /* confdefs.h. */
8754 _ACEOF
8755 cat confdefs.h >>conftest.$ac_ext
8756 cat >>conftest.$ac_ext <<_ACEOF
8757 /* end confdefs.h. */
8760 main ()
8762 void * foo;
8764 return 0;
8766 _ACEOF
8767 rm -f conftest.$ac_objext
8768 if { (ac_try="$ac_compile"
8769 case "(($ac_try" in
8770 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8771 *) ac_try_echo=$ac_try;;
8772 esac
8773 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8774 (eval "$ac_compile") 2>conftest.er1
8775 ac_status=$?
8776 grep -v '^ *+' conftest.er1 >conftest.err
8777 rm -f conftest.er1
8778 cat conftest.err >&5
8779 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8780 (exit $ac_status); } && {
8781 test -z "$ac_c_werror_flag" ||
8782 test ! -s conftest.err
8783 } && test -s conftest.$ac_objext; then
8784 emacs_cv_void_star=yes
8785 else
8786 echo "$as_me: failed program was:" >&5
8787 sed 's/^/| /' conftest.$ac_ext >&5
8789 emacs_cv_void_star=no
8792 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8794 { echo "$as_me:$LINENO: result: $emacs_cv_void_star" >&5
8795 echo "${ECHO_T}$emacs_cv_void_star" >&6; }
8796 if test $emacs_cv_void_star = yes; then
8797 cat >>confdefs.h <<\_ACEOF
8798 #define POINTER_TYPE void
8799 _ACEOF
8801 else
8802 cat >>confdefs.h <<\_ACEOF
8803 #define POINTER_TYPE char
8804 _ACEOF
8812 { echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5
8813 echo $ECHO_N "checking whether ${MAKE-make} sets \$(MAKE)... $ECHO_C" >&6; }
8814 set x ${MAKE-make}; ac_make=`echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
8815 if { as_var=ac_cv_prog_make_${ac_make}_set; eval "test \"\${$as_var+set}\" = set"; }; then
8816 echo $ECHO_N "(cached) $ECHO_C" >&6
8817 else
8818 cat >conftest.make <<\_ACEOF
8819 SHELL = /bin/sh
8820 all:
8821 @echo '@@@%%%=$(MAKE)=@@@%%%'
8822 _ACEOF
8823 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
8824 case `${MAKE-make} -f conftest.make 2>/dev/null` in
8825 *@@@%%%=?*=@@@%%%*)
8826 eval ac_cv_prog_make_${ac_make}_set=yes;;
8828 eval ac_cv_prog_make_${ac_make}_set=no;;
8829 esac
8830 rm -f conftest.make
8832 if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
8833 { echo "$as_me:$LINENO: result: yes" >&5
8834 echo "${ECHO_T}yes" >&6; }
8835 SET_MAKE=
8836 else
8837 { echo "$as_me:$LINENO: result: no" >&5
8838 echo "${ECHO_T}no" >&6; }
8839 SET_MAKE="MAKE=${MAKE-make}"
8843 { echo "$as_me:$LINENO: checking for long file names" >&5
8844 echo $ECHO_N "checking for long file names... $ECHO_C" >&6; }
8845 if test "${ac_cv_sys_long_file_names+set}" = set; then
8846 echo $ECHO_N "(cached) $ECHO_C" >&6
8847 else
8848 ac_cv_sys_long_file_names=yes
8849 # Test for long file names in all the places we know might matter:
8850 # . the current directory, where building will happen
8851 # $prefix/lib where we will be installing things
8852 # $exec_prefix/lib likewise
8853 # $TMPDIR if set, where it might want to write temporary files
8854 # /tmp where it might want to write temporary files
8855 # /var/tmp likewise
8856 # /usr/tmp likewise
8857 for ac_dir in . "$TMPDIR" /tmp /var/tmp /usr/tmp "$prefix/lib" "$exec_prefix/lib"; do
8858 # Skip $TMPDIR if it is empty or bogus, and skip $exec_prefix/lib
8859 # in the usual case where exec_prefix is '${prefix}'.
8860 case $ac_dir in #(
8861 . | /* | ?:[\\/]*) ;; #(
8862 *) continue;;
8863 esac
8864 test -w "$ac_dir/." || continue # It is less confusing to not echo anything here.
8865 ac_xdir=$ac_dir/cf$$
8866 (umask 077 && mkdir "$ac_xdir" 2>/dev/null) || continue
8867 ac_tf1=$ac_xdir/conftest9012345
8868 ac_tf2=$ac_xdir/conftest9012346
8869 touch "$ac_tf1" 2>/dev/null && test -f "$ac_tf1" && test ! -f "$ac_tf2" ||
8870 ac_cv_sys_long_file_names=no
8871 rm -f -r "$ac_xdir" 2>/dev/null
8872 test $ac_cv_sys_long_file_names = no && break
8873 done
8875 { echo "$as_me:$LINENO: result: $ac_cv_sys_long_file_names" >&5
8876 echo "${ECHO_T}$ac_cv_sys_long_file_names" >&6; }
8877 if test $ac_cv_sys_long_file_names = yes; then
8879 cat >>confdefs.h <<\_ACEOF
8880 #define HAVE_LONG_FILE_NAMES 1
8881 _ACEOF
8886 #### Choose a window system.
8888 { echo "$as_me:$LINENO: checking for X" >&5
8889 echo $ECHO_N "checking for X... $ECHO_C" >&6; }
8892 # Check whether --with-x was given.
8893 if test "${with_x+set}" = set; then
8894 withval=$with_x;
8897 # $have_x is `yes', `no', `disabled', or empty when we do not yet know.
8898 if test "x$with_x" = xno; then
8899 # The user explicitly disabled X.
8900 have_x=disabled
8901 else
8902 case $x_includes,$x_libraries in #(
8903 *\'*) { { echo "$as_me:$LINENO: error: Cannot use X directory names containing '" >&5
8904 echo "$as_me: error: Cannot use X directory names containing '" >&2;}
8905 { (exit 1); exit 1; }; };; #(
8906 *,NONE | NONE,*) if test "${ac_cv_have_x+set}" = set; then
8907 echo $ECHO_N "(cached) $ECHO_C" >&6
8908 else
8909 # One or both of the vars are not set, and there is no cached value.
8910 ac_x_includes=no ac_x_libraries=no
8911 rm -f -r conftest.dir
8912 if mkdir conftest.dir; then
8913 cd conftest.dir
8914 cat >Imakefile <<'_ACEOF'
8915 incroot:
8916 @echo incroot='${INCROOT}'
8917 usrlibdir:
8918 @echo usrlibdir='${USRLIBDIR}'
8919 libdir:
8920 @echo libdir='${LIBDIR}'
8921 _ACEOF
8922 if (export CC; ${XMKMF-xmkmf}) >/dev/null 2>/dev/null && test -f Makefile; then
8923 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
8924 for ac_var in incroot usrlibdir libdir; do
8925 eval "ac_im_$ac_var=\`\${MAKE-make} $ac_var 2>/dev/null | sed -n 's/^$ac_var=//p'\`"
8926 done
8927 # Open Windows xmkmf reportedly sets LIBDIR instead of USRLIBDIR.
8928 for ac_extension in a so sl; do
8929 if test ! -f "$ac_im_usrlibdir/libX11.$ac_extension" &&
8930 test -f "$ac_im_libdir/libX11.$ac_extension"; then
8931 ac_im_usrlibdir=$ac_im_libdir; break
8933 done
8934 # Screen out bogus values from the imake configuration. They are
8935 # bogus both because they are the default anyway, and because
8936 # using them would break gcc on systems where it needs fixed includes.
8937 case $ac_im_incroot in
8938 /usr/include) ac_x_includes= ;;
8939 *) test -f "$ac_im_incroot/X11/Xos.h" && ac_x_includes=$ac_im_incroot;;
8940 esac
8941 case $ac_im_usrlibdir in
8942 /usr/lib | /lib) ;;
8943 *) test -d "$ac_im_usrlibdir" && ac_x_libraries=$ac_im_usrlibdir ;;
8944 esac
8946 cd ..
8947 rm -f -r conftest.dir
8950 # Standard set of common directories for X headers.
8951 # Check X11 before X11Rn because it is often a symlink to the current release.
8952 ac_x_header_dirs='
8953 /usr/X11/include
8954 /usr/X11R6/include
8955 /usr/X11R5/include
8956 /usr/X11R4/include
8958 /usr/include/X11
8959 /usr/include/X11R6
8960 /usr/include/X11R5
8961 /usr/include/X11R4
8963 /usr/local/X11/include
8964 /usr/local/X11R6/include
8965 /usr/local/X11R5/include
8966 /usr/local/X11R4/include
8968 /usr/local/include/X11
8969 /usr/local/include/X11R6
8970 /usr/local/include/X11R5
8971 /usr/local/include/X11R4
8973 /usr/X386/include
8974 /usr/x386/include
8975 /usr/XFree86/include/X11
8977 /usr/include
8978 /usr/local/include
8979 /usr/unsupported/include
8980 /usr/athena/include
8981 /usr/local/x11r5/include
8982 /usr/lpp/Xamples/include
8984 /usr/openwin/include
8985 /usr/openwin/share/include'
8987 if test "$ac_x_includes" = no; then
8988 # Guess where to find include files, by looking for Xlib.h.
8989 # First, try using that file with no special directory specified.
8990 cat >conftest.$ac_ext <<_ACEOF
8991 /* confdefs.h. */
8992 _ACEOF
8993 cat confdefs.h >>conftest.$ac_ext
8994 cat >>conftest.$ac_ext <<_ACEOF
8995 /* end confdefs.h. */
8996 #include <X11/Xlib.h>
8997 _ACEOF
8998 if { (ac_try="$ac_cpp conftest.$ac_ext"
8999 case "(($ac_try" in
9000 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9001 *) ac_try_echo=$ac_try;;
9002 esac
9003 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9004 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
9005 ac_status=$?
9006 grep -v '^ *+' conftest.er1 >conftest.err
9007 rm -f conftest.er1
9008 cat conftest.err >&5
9009 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9010 (exit $ac_status); } >/dev/null && {
9011 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
9012 test ! -s conftest.err
9013 }; then
9014 # We can compile using X headers with no special include directory.
9015 ac_x_includes=
9016 else
9017 echo "$as_me: failed program was:" >&5
9018 sed 's/^/| /' conftest.$ac_ext >&5
9020 for ac_dir in $ac_x_header_dirs; do
9021 if test -r "$ac_dir/X11/Xlib.h"; then
9022 ac_x_includes=$ac_dir
9023 break
9025 done
9028 rm -f conftest.err conftest.$ac_ext
9029 fi # $ac_x_includes = no
9031 if test "$ac_x_libraries" = no; then
9032 # Check for the libraries.
9033 # See if we find them without any special options.
9034 # Don't add to $LIBS permanently.
9035 ac_save_LIBS=$LIBS
9036 LIBS="-lX11 $LIBS"
9037 cat >conftest.$ac_ext <<_ACEOF
9038 /* confdefs.h. */
9039 _ACEOF
9040 cat confdefs.h >>conftest.$ac_ext
9041 cat >>conftest.$ac_ext <<_ACEOF
9042 /* end confdefs.h. */
9043 #include <X11/Xlib.h>
9045 main ()
9047 XrmInitialize ()
9049 return 0;
9051 _ACEOF
9052 rm -f conftest.$ac_objext conftest$ac_exeext
9053 if { (ac_try="$ac_link"
9054 case "(($ac_try" in
9055 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9056 *) ac_try_echo=$ac_try;;
9057 esac
9058 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9059 (eval "$ac_link") 2>conftest.er1
9060 ac_status=$?
9061 grep -v '^ *+' conftest.er1 >conftest.err
9062 rm -f conftest.er1
9063 cat conftest.err >&5
9064 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9065 (exit $ac_status); } && {
9066 test -z "$ac_c_werror_flag" ||
9067 test ! -s conftest.err
9068 } && test -s conftest$ac_exeext &&
9069 $as_test_x conftest$ac_exeext; then
9070 LIBS=$ac_save_LIBS
9071 # We can link X programs with no special library path.
9072 ac_x_libraries=
9073 else
9074 echo "$as_me: failed program was:" >&5
9075 sed 's/^/| /' conftest.$ac_ext >&5
9077 LIBS=$ac_save_LIBS
9078 for ac_dir in `echo "$ac_x_includes $ac_x_header_dirs" | sed s/include/lib/g`
9080 # Don't even attempt the hair of trying to link an X program!
9081 for ac_extension in a so sl; do
9082 if test -r "$ac_dir/libX11.$ac_extension"; then
9083 ac_x_libraries=$ac_dir
9084 break 2
9086 done
9087 done
9090 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
9091 conftest$ac_exeext conftest.$ac_ext
9092 fi # $ac_x_libraries = no
9094 case $ac_x_includes,$ac_x_libraries in #(
9095 no,* | *,no | *\'*)
9096 # Didn't find X, or a directory has "'" in its name.
9097 ac_cv_have_x="have_x=no";; #(
9099 # Record where we found X for the cache.
9100 ac_cv_have_x="have_x=yes\
9101 ac_x_includes='$ac_x_includes'\
9102 ac_x_libraries='$ac_x_libraries'"
9103 esac
9105 ;; #(
9106 *) have_x=yes;;
9107 esac
9108 eval "$ac_cv_have_x"
9109 fi # $with_x != no
9111 if test "$have_x" != yes; then
9112 { echo "$as_me:$LINENO: result: $have_x" >&5
9113 echo "${ECHO_T}$have_x" >&6; }
9114 no_x=yes
9115 else
9116 # If each of the values was on the command line, it overrides each guess.
9117 test "x$x_includes" = xNONE && x_includes=$ac_x_includes
9118 test "x$x_libraries" = xNONE && x_libraries=$ac_x_libraries
9119 # Update the cache value to reflect the command line values.
9120 ac_cv_have_x="have_x=yes\
9121 ac_x_includes='$x_includes'\
9122 ac_x_libraries='$x_libraries'"
9123 { echo "$as_me:$LINENO: result: libraries $x_libraries, headers $x_includes" >&5
9124 echo "${ECHO_T}libraries $x_libraries, headers $x_includes" >&6; }
9127 if test "$no_x" = yes; then
9128 window_system=none
9129 else
9130 window_system=x11
9133 ## Workaround for bug in autoconf <= 2.62.
9134 ## http://lists.gnu.org/archive/html/emacs-devel/2008-04/msg01551.html
9135 ## No need to do anything special for these standard directories.
9136 ## This is an experiment, take it out if it causes problems.
9137 if test -n "${x_libraries}" && test x"${x_libraries}" != xNONE; then
9139 x_libraries=`echo :${x_libraries}: | sed -e 's|:/usr/lib64:|:|g' -e 's|:/lib64:|:|g' -e 's|^:||' -e 's|:$||'`
9143 if test "${x_libraries}" != NONE; then
9144 if test -n "${x_libraries}"; then
9145 LD_SWITCH_X_SITE=-L`echo ${x_libraries} | sed -e "s/:/ -L/g"`
9146 LD_SWITCH_X_SITE_AUX=-R`echo ${x_libraries} | sed -e "s/:/ -R/g"`
9148 x_default_search_path=""
9149 x_search_path=${x_libraries}
9150 if test -z "${x_search_path}"; then
9151 x_search_path=/usr/lib
9153 for x_library in `echo ${x_search_path}: | \
9154 sed -e "s/:/ /g" -e p -e "s:/lib[^ /]* :/share :g"`; do
9155 x_search_path="\
9156 ${x_library}/X11/%L/%T/%N%C%S:\
9157 ${x_library}/X11/%l/%T/%N%C%S:\
9158 ${x_library}/X11/%T/%N%C%S:\
9159 ${x_library}/X11/%L/%T/%N%S:\
9160 ${x_library}/X11/%l/%T/%N%S:\
9161 ${x_library}/X11/%T/%N%S"
9162 if test x"${x_default_search_path}" = x; then
9163 x_default_search_path=${x_search_path}
9164 else
9165 x_default_search_path="${x_search_path}:${x_default_search_path}"
9167 done
9169 if test "${x_includes}" != NONE && test -n "${x_includes}"; then
9170 C_SWITCH_X_SITE=-I`echo ${x_includes} | sed -e "s/:/ -I/g"`
9173 if test x"${x_includes}" = x; then
9174 bitmapdir=/usr/include/X11/bitmaps
9175 else
9176 # accumulate include directories that have X11 bitmap subdirectories
9177 bmd_acc="dummyval"
9178 for bmd in `echo ${x_includes} | sed -e "s/:/ /g"`; do
9179 if test -d "${bmd}/X11/bitmaps"; then
9180 bmd_acc="${bmd_acc}:${bmd}/X11/bitmaps"
9182 if test -d "${bmd}/bitmaps"; then
9183 bmd_acc="${bmd_acc}:${bmd}/bitmaps"
9185 done
9186 if test ${bmd_acc} != "dummyval"; then
9187 bitmapdir=`echo ${bmd_acc} | sed -e "s/^dummyval://"`
9191 HAVE_CARBON=no
9192 if test "${with_carbon}" != no; then
9193 if test "${ac_cv_header_Carbon_Carbon_h+set}" = set; then
9194 { echo "$as_me:$LINENO: checking for Carbon/Carbon.h" >&5
9195 echo $ECHO_N "checking for Carbon/Carbon.h... $ECHO_C" >&6; }
9196 if test "${ac_cv_header_Carbon_Carbon_h+set}" = set; then
9197 echo $ECHO_N "(cached) $ECHO_C" >&6
9199 { echo "$as_me:$LINENO: result: $ac_cv_header_Carbon_Carbon_h" >&5
9200 echo "${ECHO_T}$ac_cv_header_Carbon_Carbon_h" >&6; }
9201 else
9202 # Is the header compilable?
9203 { echo "$as_me:$LINENO: checking Carbon/Carbon.h usability" >&5
9204 echo $ECHO_N "checking Carbon/Carbon.h usability... $ECHO_C" >&6; }
9205 cat >conftest.$ac_ext <<_ACEOF
9206 /* confdefs.h. */
9207 _ACEOF
9208 cat confdefs.h >>conftest.$ac_ext
9209 cat >>conftest.$ac_ext <<_ACEOF
9210 /* end confdefs.h. */
9211 $ac_includes_default
9212 #include <Carbon/Carbon.h>
9213 _ACEOF
9214 rm -f conftest.$ac_objext
9215 if { (ac_try="$ac_compile"
9216 case "(($ac_try" in
9217 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9218 *) ac_try_echo=$ac_try;;
9219 esac
9220 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9221 (eval "$ac_compile") 2>conftest.er1
9222 ac_status=$?
9223 grep -v '^ *+' conftest.er1 >conftest.err
9224 rm -f conftest.er1
9225 cat conftest.err >&5
9226 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9227 (exit $ac_status); } && {
9228 test -z "$ac_c_werror_flag" ||
9229 test ! -s conftest.err
9230 } && test -s conftest.$ac_objext; then
9231 ac_header_compiler=yes
9232 else
9233 echo "$as_me: failed program was:" >&5
9234 sed 's/^/| /' conftest.$ac_ext >&5
9236 ac_header_compiler=no
9239 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9240 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
9241 echo "${ECHO_T}$ac_header_compiler" >&6; }
9243 # Is the header present?
9244 { echo "$as_me:$LINENO: checking Carbon/Carbon.h presence" >&5
9245 echo $ECHO_N "checking Carbon/Carbon.h presence... $ECHO_C" >&6; }
9246 cat >conftest.$ac_ext <<_ACEOF
9247 /* confdefs.h. */
9248 _ACEOF
9249 cat confdefs.h >>conftest.$ac_ext
9250 cat >>conftest.$ac_ext <<_ACEOF
9251 /* end confdefs.h. */
9252 #include <Carbon/Carbon.h>
9253 _ACEOF
9254 if { (ac_try="$ac_cpp conftest.$ac_ext"
9255 case "(($ac_try" in
9256 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9257 *) ac_try_echo=$ac_try;;
9258 esac
9259 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9260 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
9261 ac_status=$?
9262 grep -v '^ *+' conftest.er1 >conftest.err
9263 rm -f conftest.er1
9264 cat conftest.err >&5
9265 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9266 (exit $ac_status); } >/dev/null && {
9267 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
9268 test ! -s conftest.err
9269 }; then
9270 ac_header_preproc=yes
9271 else
9272 echo "$as_me: failed program was:" >&5
9273 sed 's/^/| /' conftest.$ac_ext >&5
9275 ac_header_preproc=no
9278 rm -f conftest.err conftest.$ac_ext
9279 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
9280 echo "${ECHO_T}$ac_header_preproc" >&6; }
9282 # So? What about this header?
9283 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
9284 yes:no: )
9285 { echo "$as_me:$LINENO: WARNING: Carbon/Carbon.h: accepted by the compiler, rejected by the preprocessor!" >&5
9286 echo "$as_me: WARNING: Carbon/Carbon.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
9287 { echo "$as_me:$LINENO: WARNING: Carbon/Carbon.h: proceeding with the compiler's result" >&5
9288 echo "$as_me: WARNING: Carbon/Carbon.h: proceeding with the compiler's result" >&2;}
9289 ac_header_preproc=yes
9291 no:yes:* )
9292 { echo "$as_me:$LINENO: WARNING: Carbon/Carbon.h: present but cannot be compiled" >&5
9293 echo "$as_me: WARNING: Carbon/Carbon.h: present but cannot be compiled" >&2;}
9294 { echo "$as_me:$LINENO: WARNING: Carbon/Carbon.h: check for missing prerequisite headers?" >&5
9295 echo "$as_me: WARNING: Carbon/Carbon.h: check for missing prerequisite headers?" >&2;}
9296 { echo "$as_me:$LINENO: WARNING: Carbon/Carbon.h: see the Autoconf documentation" >&5
9297 echo "$as_me: WARNING: Carbon/Carbon.h: see the Autoconf documentation" >&2;}
9298 { echo "$as_me:$LINENO: WARNING: Carbon/Carbon.h: section \"Present But Cannot Be Compiled\"" >&5
9299 echo "$as_me: WARNING: Carbon/Carbon.h: section \"Present But Cannot Be Compiled\"" >&2;}
9300 { echo "$as_me:$LINENO: WARNING: Carbon/Carbon.h: proceeding with the preprocessor's result" >&5
9301 echo "$as_me: WARNING: Carbon/Carbon.h: proceeding with the preprocessor's result" >&2;}
9302 { echo "$as_me:$LINENO: WARNING: Carbon/Carbon.h: in the future, the compiler will take precedence" >&5
9303 echo "$as_me: WARNING: Carbon/Carbon.h: in the future, the compiler will take precedence" >&2;}
9306 esac
9307 { echo "$as_me:$LINENO: checking for Carbon/Carbon.h" >&5
9308 echo $ECHO_N "checking for Carbon/Carbon.h... $ECHO_C" >&6; }
9309 if test "${ac_cv_header_Carbon_Carbon_h+set}" = set; then
9310 echo $ECHO_N "(cached) $ECHO_C" >&6
9311 else
9312 ac_cv_header_Carbon_Carbon_h=$ac_header_preproc
9314 { echo "$as_me:$LINENO: result: $ac_cv_header_Carbon_Carbon_h" >&5
9315 echo "${ECHO_T}$ac_cv_header_Carbon_Carbon_h" >&6; }
9318 if test $ac_cv_header_Carbon_Carbon_h = yes; then
9319 HAVE_CARBON=yes
9324 if test "${window_system}" = x11 && test "${HAVE_CARBON}" = yes; then
9325 if test "${with_carbon+set}" != set \
9326 && test "${carbon_appdir_x+set}" != set; then
9327 for var in with_x with_x_toolkit with_xim \
9328 with_xpm with_jpeg with_tiff with_gif with_png; do
9329 if eval test \"\${$var+set}\" = set; then
9330 HAVE_CARBON=no
9331 break
9333 done
9336 if test "${HAVE_CARBON}" = yes; then
9337 window_system=mac
9340 HAVE_NS=no
9341 COCOA=no
9342 GNUSTEP=no
9343 tmp_CPPFLAGS="$CPPFLAGS"
9344 tmp_CFLAGS="$CFLAGS"
9345 CPPFLAGS="$CPPFLAGS -x objective-c"
9346 CFLAGS="$CFLAGS -x objective-c"
9347 if test "${with_ns}" != no; then
9348 if test "${opsys}" = darwin; then
9349 COCOA=yes
9350 elif test -f /etc/GNUstep/GNUstep.conf; then
9351 GNUSTEP=yes
9352 GNUSTEP_SYSTEM_HEADERS="$(source /etc/GNUstep/GNUstep.conf; echo $GNUSTEP_SYSTEM_HEADERS)"
9353 GNUSTEP_SYSTEM_LIBRARIES="$(source /etc/GNUstep/GNUstep.conf; echo $GNUSTEP_SYSTEM_LIBRARIES)"
9354 CPPFLAGS="$CPPFLAGS -I${GNUSTEP_SYSTEM_HEADERS}"
9355 CFLAGS="$CFLAGS -I${GNUSTEP_SYSTEM_HEADERS}"
9356 REAL_CFLAGS="$REAL_CFLAGS -I${GNUSTEP_SYSTEM_HEADERS}"
9357 LDFLAGS="$LDFLAGS -L${GNUSTEP_SYSTEM_LIBRARIES}"
9359 if test "${ac_cv_header_AppKit_AppKit_h+set}" = set; then
9360 { echo "$as_me:$LINENO: checking for AppKit/AppKit.h" >&5
9361 echo $ECHO_N "checking for AppKit/AppKit.h... $ECHO_C" >&6; }
9362 if test "${ac_cv_header_AppKit_AppKit_h+set}" = set; then
9363 echo $ECHO_N "(cached) $ECHO_C" >&6
9365 { echo "$as_me:$LINENO: result: $ac_cv_header_AppKit_AppKit_h" >&5
9366 echo "${ECHO_T}$ac_cv_header_AppKit_AppKit_h" >&6; }
9367 else
9368 # Is the header compilable?
9369 { echo "$as_me:$LINENO: checking AppKit/AppKit.h usability" >&5
9370 echo $ECHO_N "checking AppKit/AppKit.h usability... $ECHO_C" >&6; }
9371 cat >conftest.$ac_ext <<_ACEOF
9372 /* confdefs.h. */
9373 _ACEOF
9374 cat confdefs.h >>conftest.$ac_ext
9375 cat >>conftest.$ac_ext <<_ACEOF
9376 /* end confdefs.h. */
9377 $ac_includes_default
9378 #include <AppKit/AppKit.h>
9379 _ACEOF
9380 rm -f conftest.$ac_objext
9381 if { (ac_try="$ac_compile"
9382 case "(($ac_try" in
9383 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9384 *) ac_try_echo=$ac_try;;
9385 esac
9386 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9387 (eval "$ac_compile") 2>conftest.er1
9388 ac_status=$?
9389 grep -v '^ *+' conftest.er1 >conftest.err
9390 rm -f conftest.er1
9391 cat conftest.err >&5
9392 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9393 (exit $ac_status); } && {
9394 test -z "$ac_c_werror_flag" ||
9395 test ! -s conftest.err
9396 } && test -s conftest.$ac_objext; then
9397 ac_header_compiler=yes
9398 else
9399 echo "$as_me: failed program was:" >&5
9400 sed 's/^/| /' conftest.$ac_ext >&5
9402 ac_header_compiler=no
9405 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9406 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
9407 echo "${ECHO_T}$ac_header_compiler" >&6; }
9409 # Is the header present?
9410 { echo "$as_me:$LINENO: checking AppKit/AppKit.h presence" >&5
9411 echo $ECHO_N "checking AppKit/AppKit.h presence... $ECHO_C" >&6; }
9412 cat >conftest.$ac_ext <<_ACEOF
9413 /* confdefs.h. */
9414 _ACEOF
9415 cat confdefs.h >>conftest.$ac_ext
9416 cat >>conftest.$ac_ext <<_ACEOF
9417 /* end confdefs.h. */
9418 #include <AppKit/AppKit.h>
9419 _ACEOF
9420 if { (ac_try="$ac_cpp conftest.$ac_ext"
9421 case "(($ac_try" in
9422 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9423 *) ac_try_echo=$ac_try;;
9424 esac
9425 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9426 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
9427 ac_status=$?
9428 grep -v '^ *+' conftest.er1 >conftest.err
9429 rm -f conftest.er1
9430 cat conftest.err >&5
9431 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9432 (exit $ac_status); } >/dev/null && {
9433 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
9434 test ! -s conftest.err
9435 }; then
9436 ac_header_preproc=yes
9437 else
9438 echo "$as_me: failed program was:" >&5
9439 sed 's/^/| /' conftest.$ac_ext >&5
9441 ac_header_preproc=no
9444 rm -f conftest.err conftest.$ac_ext
9445 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
9446 echo "${ECHO_T}$ac_header_preproc" >&6; }
9448 # So? What about this header?
9449 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
9450 yes:no: )
9451 { echo "$as_me:$LINENO: WARNING: AppKit/AppKit.h: accepted by the compiler, rejected by the preprocessor!" >&5
9452 echo "$as_me: WARNING: AppKit/AppKit.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
9453 { echo "$as_me:$LINENO: WARNING: AppKit/AppKit.h: proceeding with the compiler's result" >&5
9454 echo "$as_me: WARNING: AppKit/AppKit.h: proceeding with the compiler's result" >&2;}
9455 ac_header_preproc=yes
9457 no:yes:* )
9458 { echo "$as_me:$LINENO: WARNING: AppKit/AppKit.h: present but cannot be compiled" >&5
9459 echo "$as_me: WARNING: AppKit/AppKit.h: present but cannot be compiled" >&2;}
9460 { echo "$as_me:$LINENO: WARNING: AppKit/AppKit.h: check for missing prerequisite headers?" >&5
9461 echo "$as_me: WARNING: AppKit/AppKit.h: check for missing prerequisite headers?" >&2;}
9462 { echo "$as_me:$LINENO: WARNING: AppKit/AppKit.h: see the Autoconf documentation" >&5
9463 echo "$as_me: WARNING: AppKit/AppKit.h: see the Autoconf documentation" >&2;}
9464 { echo "$as_me:$LINENO: WARNING: AppKit/AppKit.h: section \"Present But Cannot Be Compiled\"" >&5
9465 echo "$as_me: WARNING: AppKit/AppKit.h: section \"Present But Cannot Be Compiled\"" >&2;}
9466 { echo "$as_me:$LINENO: WARNING: AppKit/AppKit.h: proceeding with the preprocessor's result" >&5
9467 echo "$as_me: WARNING: AppKit/AppKit.h: proceeding with the preprocessor's result" >&2;}
9468 { echo "$as_me:$LINENO: WARNING: AppKit/AppKit.h: in the future, the compiler will take precedence" >&5
9469 echo "$as_me: WARNING: AppKit/AppKit.h: in the future, the compiler will take precedence" >&2;}
9472 esac
9473 { echo "$as_me:$LINENO: checking for AppKit/AppKit.h" >&5
9474 echo $ECHO_N "checking for AppKit/AppKit.h... $ECHO_C" >&6; }
9475 if test "${ac_cv_header_AppKit_AppKit_h+set}" = set; then
9476 echo $ECHO_N "(cached) $ECHO_C" >&6
9477 else
9478 ac_cv_header_AppKit_AppKit_h=$ac_header_preproc
9480 { echo "$as_me:$LINENO: result: $ac_cv_header_AppKit_AppKit_h" >&5
9481 echo "${ECHO_T}$ac_cv_header_AppKit_AppKit_h" >&6; }
9484 if test $ac_cv_header_AppKit_AppKit_h = yes; then
9485 HAVE_NS=yes
9490 if test "${window_system}" = x11 && test "${HAVE_NS}" = yes; then
9491 if test "${with_ns+set}" != set \
9492 && test "${ns_appdir_x+set}" != set; then
9493 HAVE_NS=no
9497 if test "${window_system}" = mac && test "${HAVE_NS}" = yes; then
9498 if test "${with_ns+set}" != set \
9499 && test "${ns_appdir_x+set}" != set; then
9500 HAVE_NS=no
9501 else
9502 HAVE_CARBON=no
9505 if test "${HAVE_NS}" = yes; then
9506 window_system=nextstep
9507 with_xft=no
9508 with_freetype=no
9510 CFLAGS="$tmp_CFLAGS"
9511 CPPFLAGS="$tmp_CPPFLAGS"
9513 case "${window_system}" in
9514 x11 )
9515 HAVE_X_WINDOWS=yes
9516 HAVE_X11=yes
9517 case "${with_x_toolkit}" in
9518 athena | lucid ) USE_X_TOOLKIT=LUCID ;;
9519 motif ) USE_X_TOOLKIT=MOTIF ;;
9520 gtk ) with_gtk=yes
9521 USE_X_TOOLKIT=none ;;
9522 no ) USE_X_TOOLKIT=none ;;
9523 * ) USE_X_TOOLKIT=maybe ;;
9524 esac
9526 nextstep | mac | none )
9527 HAVE_X_WINDOWS=no
9528 HAVE_X11=no
9529 USE_X_TOOLKIT=none
9531 esac
9533 if test "$window_system" = none && test "X$with_x" != "Xno"; then
9534 # Extract the first word of "X", so it can be a program name with args.
9535 set dummy X; ac_word=$2
9536 { echo "$as_me:$LINENO: checking for $ac_word" >&5
9537 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
9538 if test "${ac_cv_prog_HAVE_XSERVER+set}" = set; then
9539 echo $ECHO_N "(cached) $ECHO_C" >&6
9540 else
9541 if test -n "$HAVE_XSERVER"; then
9542 ac_cv_prog_HAVE_XSERVER="$HAVE_XSERVER" # Let the user override the test.
9543 else
9544 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9545 for as_dir in $PATH
9547 IFS=$as_save_IFS
9548 test -z "$as_dir" && as_dir=.
9549 for ac_exec_ext in '' $ac_executable_extensions; do
9550 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9551 ac_cv_prog_HAVE_XSERVER="true"
9552 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
9553 break 2
9555 done
9556 done
9557 IFS=$as_save_IFS
9559 test -z "$ac_cv_prog_HAVE_XSERVER" && ac_cv_prog_HAVE_XSERVER="false"
9562 HAVE_XSERVER=$ac_cv_prog_HAVE_XSERVER
9563 if test -n "$HAVE_XSERVER"; then
9564 { echo "$as_me:$LINENO: result: $HAVE_XSERVER" >&5
9565 echo "${ECHO_T}$HAVE_XSERVER" >&6; }
9566 else
9567 { echo "$as_me:$LINENO: result: no" >&5
9568 echo "${ECHO_T}no" >&6; }
9572 if test "$HAVE_XSERVER" = true ||
9573 test -n "$DISPLAY" ||
9574 test "`echo /usr/lib/libX11.*`" != "/usr/lib/libX11.*"; then
9575 { { echo "$as_me:$LINENO: error: You seem to be running X, but no X development libraries
9576 were found. You should install the relevant development files for X
9577 and for the toolkit you want, such as Gtk+, Lesstif or Motif. Also make
9578 sure you have development files for image handling, i.e.
9579 tiff, gif, jpeg, png and xpm.
9580 If you are sure you want Emacs compiled without X window support, pass
9581 --without-x
9582 to configure." >&5
9583 echo "$as_me: error: You seem to be running X, but no X development libraries
9584 were found. You should install the relevant development files for X
9585 and for the toolkit you want, such as Gtk+, Lesstif or Motif. Also make
9586 sure you have development files for image handling, i.e.
9587 tiff, gif, jpeg, png and xpm.
9588 If you are sure you want Emacs compiled without X window support, pass
9589 --without-x
9590 to configure." >&2;}
9591 { (exit 1); exit 1; }; }
9595 ### If we're using X11, we should use the X menu package.
9596 HAVE_MENUS=no
9597 case ${HAVE_X11} in
9598 yes ) HAVE_MENUS=yes ;;
9599 esac
9601 # Do the opsystem or machine files prohibit the use of the GNU malloc?
9602 # Assume not, until told otherwise.
9603 GNU_MALLOC=yes
9604 doug_lea_malloc=yes
9605 { echo "$as_me:$LINENO: checking for malloc_get_state" >&5
9606 echo $ECHO_N "checking for malloc_get_state... $ECHO_C" >&6; }
9607 if test "${ac_cv_func_malloc_get_state+set}" = set; then
9608 echo $ECHO_N "(cached) $ECHO_C" >&6
9609 else
9610 cat >conftest.$ac_ext <<_ACEOF
9611 /* confdefs.h. */
9612 _ACEOF
9613 cat confdefs.h >>conftest.$ac_ext
9614 cat >>conftest.$ac_ext <<_ACEOF
9615 /* end confdefs.h. */
9616 /* Define malloc_get_state to an innocuous variant, in case <limits.h> declares malloc_get_state.
9617 For example, HP-UX 11i <limits.h> declares gettimeofday. */
9618 #define malloc_get_state innocuous_malloc_get_state
9620 /* System header to define __stub macros and hopefully few prototypes,
9621 which can conflict with char malloc_get_state (); below.
9622 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
9623 <limits.h> exists even on freestanding compilers. */
9625 #ifdef __STDC__
9626 # include <limits.h>
9627 #else
9628 # include <assert.h>
9629 #endif
9631 #undef malloc_get_state
9633 /* Override any GCC internal prototype to avoid an error.
9634 Use char because int might match the return type of a GCC
9635 builtin and then its argument prototype would still apply. */
9636 #ifdef __cplusplus
9637 extern "C"
9638 #endif
9639 char malloc_get_state ();
9640 /* The GNU C library defines this for functions which it implements
9641 to always fail with ENOSYS. Some functions are actually named
9642 something starting with __ and the normal name is an alias. */
9643 #if defined __stub_malloc_get_state || defined __stub___malloc_get_state
9644 choke me
9645 #endif
9648 main ()
9650 return malloc_get_state ();
9652 return 0;
9654 _ACEOF
9655 rm -f conftest.$ac_objext conftest$ac_exeext
9656 if { (ac_try="$ac_link"
9657 case "(($ac_try" in
9658 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9659 *) ac_try_echo=$ac_try;;
9660 esac
9661 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9662 (eval "$ac_link") 2>conftest.er1
9663 ac_status=$?
9664 grep -v '^ *+' conftest.er1 >conftest.err
9665 rm -f conftest.er1
9666 cat conftest.err >&5
9667 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9668 (exit $ac_status); } && {
9669 test -z "$ac_c_werror_flag" ||
9670 test ! -s conftest.err
9671 } && test -s conftest$ac_exeext &&
9672 $as_test_x conftest$ac_exeext; then
9673 ac_cv_func_malloc_get_state=yes
9674 else
9675 echo "$as_me: failed program was:" >&5
9676 sed 's/^/| /' conftest.$ac_ext >&5
9678 ac_cv_func_malloc_get_state=no
9681 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
9682 conftest$ac_exeext conftest.$ac_ext
9684 { echo "$as_me:$LINENO: result: $ac_cv_func_malloc_get_state" >&5
9685 echo "${ECHO_T}$ac_cv_func_malloc_get_state" >&6; }
9686 if test $ac_cv_func_malloc_get_state = yes; then
9688 else
9689 doug_lea_malloc=no
9692 { echo "$as_me:$LINENO: checking for malloc_set_state" >&5
9693 echo $ECHO_N "checking for malloc_set_state... $ECHO_C" >&6; }
9694 if test "${ac_cv_func_malloc_set_state+set}" = set; then
9695 echo $ECHO_N "(cached) $ECHO_C" >&6
9696 else
9697 cat >conftest.$ac_ext <<_ACEOF
9698 /* confdefs.h. */
9699 _ACEOF
9700 cat confdefs.h >>conftest.$ac_ext
9701 cat >>conftest.$ac_ext <<_ACEOF
9702 /* end confdefs.h. */
9703 /* Define malloc_set_state to an innocuous variant, in case <limits.h> declares malloc_set_state.
9704 For example, HP-UX 11i <limits.h> declares gettimeofday. */
9705 #define malloc_set_state innocuous_malloc_set_state
9707 /* System header to define __stub macros and hopefully few prototypes,
9708 which can conflict with char malloc_set_state (); below.
9709 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
9710 <limits.h> exists even on freestanding compilers. */
9712 #ifdef __STDC__
9713 # include <limits.h>
9714 #else
9715 # include <assert.h>
9716 #endif
9718 #undef malloc_set_state
9720 /* Override any GCC internal prototype to avoid an error.
9721 Use char because int might match the return type of a GCC
9722 builtin and then its argument prototype would still apply. */
9723 #ifdef __cplusplus
9724 extern "C"
9725 #endif
9726 char malloc_set_state ();
9727 /* The GNU C library defines this for functions which it implements
9728 to always fail with ENOSYS. Some functions are actually named
9729 something starting with __ and the normal name is an alias. */
9730 #if defined __stub_malloc_set_state || defined __stub___malloc_set_state
9731 choke me
9732 #endif
9735 main ()
9737 return malloc_set_state ();
9739 return 0;
9741 _ACEOF
9742 rm -f conftest.$ac_objext conftest$ac_exeext
9743 if { (ac_try="$ac_link"
9744 case "(($ac_try" in
9745 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9746 *) ac_try_echo=$ac_try;;
9747 esac
9748 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9749 (eval "$ac_link") 2>conftest.er1
9750 ac_status=$?
9751 grep -v '^ *+' conftest.er1 >conftest.err
9752 rm -f conftest.er1
9753 cat conftest.err >&5
9754 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9755 (exit $ac_status); } && {
9756 test -z "$ac_c_werror_flag" ||
9757 test ! -s conftest.err
9758 } && test -s conftest$ac_exeext &&
9759 $as_test_x conftest$ac_exeext; then
9760 ac_cv_func_malloc_set_state=yes
9761 else
9762 echo "$as_me: failed program was:" >&5
9763 sed 's/^/| /' conftest.$ac_ext >&5
9765 ac_cv_func_malloc_set_state=no
9768 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
9769 conftest$ac_exeext conftest.$ac_ext
9771 { echo "$as_me:$LINENO: result: $ac_cv_func_malloc_set_state" >&5
9772 echo "${ECHO_T}$ac_cv_func_malloc_set_state" >&6; }
9773 if test $ac_cv_func_malloc_set_state = yes; then
9775 else
9776 doug_lea_malloc=no
9779 { echo "$as_me:$LINENO: checking whether __after_morecore_hook exists" >&5
9780 echo $ECHO_N "checking whether __after_morecore_hook exists... $ECHO_C" >&6; }
9781 if test "${emacs_cv_var___after_morecore_hook+set}" = set; then
9782 echo $ECHO_N "(cached) $ECHO_C" >&6
9783 else
9784 cat >conftest.$ac_ext <<_ACEOF
9785 /* confdefs.h. */
9786 _ACEOF
9787 cat confdefs.h >>conftest.$ac_ext
9788 cat >>conftest.$ac_ext <<_ACEOF
9789 /* end confdefs.h. */
9790 extern void (* __after_morecore_hook)();
9792 main ()
9794 __after_morecore_hook = 0
9796 return 0;
9798 _ACEOF
9799 rm -f conftest.$ac_objext conftest$ac_exeext
9800 if { (ac_try="$ac_link"
9801 case "(($ac_try" in
9802 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9803 *) ac_try_echo=$ac_try;;
9804 esac
9805 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9806 (eval "$ac_link") 2>conftest.er1
9807 ac_status=$?
9808 grep -v '^ *+' conftest.er1 >conftest.err
9809 rm -f conftest.er1
9810 cat conftest.err >&5
9811 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9812 (exit $ac_status); } && {
9813 test -z "$ac_c_werror_flag" ||
9814 test ! -s conftest.err
9815 } && test -s conftest$ac_exeext &&
9816 $as_test_x conftest$ac_exeext; then
9817 emacs_cv_var___after_morecore_hook=yes
9818 else
9819 echo "$as_me: failed program was:" >&5
9820 sed 's/^/| /' conftest.$ac_ext >&5
9822 emacs_cv_var___after_morecore_hook=no
9825 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
9826 conftest$ac_exeext conftest.$ac_ext
9828 { echo "$as_me:$LINENO: result: $emacs_cv_var___after_morecore_hook" >&5
9829 echo "${ECHO_T}$emacs_cv_var___after_morecore_hook" >&6; }
9830 if test $emacs_cv_var___after_morecore_hook = no; then
9831 doug_lea_malloc=no
9833 if test "${system_malloc}" = "yes"; then
9834 GNU_MALLOC=no
9835 GNU_MALLOC_reason="
9836 (The GNU allocators don't work with this system configuration.)"
9838 if test "$doug_lea_malloc" = "yes" ; then
9839 if test "$GNU_MALLOC" = yes ; then
9840 GNU_MALLOC_reason="
9841 (Using Doug Lea's new malloc from the GNU C Library.)"
9844 cat >>confdefs.h <<\_ACEOF
9845 #define DOUG_LEA_MALLOC 1
9846 _ACEOF
9850 if test x"${REL_ALLOC}" = x; then
9851 REL_ALLOC=${GNU_MALLOC}
9857 for ac_header in stdlib.h unistd.h
9859 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
9860 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
9861 { echo "$as_me:$LINENO: checking for $ac_header" >&5
9862 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
9863 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
9864 echo $ECHO_N "(cached) $ECHO_C" >&6
9866 ac_res=`eval echo '${'$as_ac_Header'}'`
9867 { echo "$as_me:$LINENO: result: $ac_res" >&5
9868 echo "${ECHO_T}$ac_res" >&6; }
9869 else
9870 # Is the header compilable?
9871 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
9872 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
9873 cat >conftest.$ac_ext <<_ACEOF
9874 /* confdefs.h. */
9875 _ACEOF
9876 cat confdefs.h >>conftest.$ac_ext
9877 cat >>conftest.$ac_ext <<_ACEOF
9878 /* end confdefs.h. */
9879 $ac_includes_default
9880 #include <$ac_header>
9881 _ACEOF
9882 rm -f conftest.$ac_objext
9883 if { (ac_try="$ac_compile"
9884 case "(($ac_try" in
9885 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9886 *) ac_try_echo=$ac_try;;
9887 esac
9888 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9889 (eval "$ac_compile") 2>conftest.er1
9890 ac_status=$?
9891 grep -v '^ *+' conftest.er1 >conftest.err
9892 rm -f conftest.er1
9893 cat conftest.err >&5
9894 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9895 (exit $ac_status); } && {
9896 test -z "$ac_c_werror_flag" ||
9897 test ! -s conftest.err
9898 } && test -s conftest.$ac_objext; then
9899 ac_header_compiler=yes
9900 else
9901 echo "$as_me: failed program was:" >&5
9902 sed 's/^/| /' conftest.$ac_ext >&5
9904 ac_header_compiler=no
9907 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9908 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
9909 echo "${ECHO_T}$ac_header_compiler" >&6; }
9911 # Is the header present?
9912 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
9913 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
9914 cat >conftest.$ac_ext <<_ACEOF
9915 /* confdefs.h. */
9916 _ACEOF
9917 cat confdefs.h >>conftest.$ac_ext
9918 cat >>conftest.$ac_ext <<_ACEOF
9919 /* end confdefs.h. */
9920 #include <$ac_header>
9921 _ACEOF
9922 if { (ac_try="$ac_cpp conftest.$ac_ext"
9923 case "(($ac_try" in
9924 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9925 *) ac_try_echo=$ac_try;;
9926 esac
9927 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9928 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
9929 ac_status=$?
9930 grep -v '^ *+' conftest.er1 >conftest.err
9931 rm -f conftest.er1
9932 cat conftest.err >&5
9933 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9934 (exit $ac_status); } >/dev/null && {
9935 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
9936 test ! -s conftest.err
9937 }; then
9938 ac_header_preproc=yes
9939 else
9940 echo "$as_me: failed program was:" >&5
9941 sed 's/^/| /' conftest.$ac_ext >&5
9943 ac_header_preproc=no
9946 rm -f conftest.err conftest.$ac_ext
9947 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
9948 echo "${ECHO_T}$ac_header_preproc" >&6; }
9950 # So? What about this header?
9951 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
9952 yes:no: )
9953 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
9954 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
9955 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
9956 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
9957 ac_header_preproc=yes
9959 no:yes:* )
9960 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
9961 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
9962 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
9963 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
9964 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
9965 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
9966 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
9967 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
9968 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
9969 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
9970 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
9971 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
9974 esac
9975 { echo "$as_me:$LINENO: checking for $ac_header" >&5
9976 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
9977 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
9978 echo $ECHO_N "(cached) $ECHO_C" >&6
9979 else
9980 eval "$as_ac_Header=\$ac_header_preproc"
9982 ac_res=`eval echo '${'$as_ac_Header'}'`
9983 { echo "$as_me:$LINENO: result: $ac_res" >&5
9984 echo "${ECHO_T}$ac_res" >&6; }
9987 if test `eval echo '${'$as_ac_Header'}'` = yes; then
9988 cat >>confdefs.h <<_ACEOF
9989 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
9990 _ACEOF
9994 done
9997 for ac_func in getpagesize
9999 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
10000 { echo "$as_me:$LINENO: checking for $ac_func" >&5
10001 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
10002 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
10003 echo $ECHO_N "(cached) $ECHO_C" >&6
10004 else
10005 cat >conftest.$ac_ext <<_ACEOF
10006 /* confdefs.h. */
10007 _ACEOF
10008 cat confdefs.h >>conftest.$ac_ext
10009 cat >>conftest.$ac_ext <<_ACEOF
10010 /* end confdefs.h. */
10011 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
10012 For example, HP-UX 11i <limits.h> declares gettimeofday. */
10013 #define $ac_func innocuous_$ac_func
10015 /* System header to define __stub macros and hopefully few prototypes,
10016 which can conflict with char $ac_func (); below.
10017 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
10018 <limits.h> exists even on freestanding compilers. */
10020 #ifdef __STDC__
10021 # include <limits.h>
10022 #else
10023 # include <assert.h>
10024 #endif
10026 #undef $ac_func
10028 /* Override any GCC internal prototype to avoid an error.
10029 Use char because int might match the return type of a GCC
10030 builtin and then its argument prototype would still apply. */
10031 #ifdef __cplusplus
10032 extern "C"
10033 #endif
10034 char $ac_func ();
10035 /* The GNU C library defines this for functions which it implements
10036 to always fail with ENOSYS. Some functions are actually named
10037 something starting with __ and the normal name is an alias. */
10038 #if defined __stub_$ac_func || defined __stub___$ac_func
10039 choke me
10040 #endif
10043 main ()
10045 return $ac_func ();
10047 return 0;
10049 _ACEOF
10050 rm -f conftest.$ac_objext conftest$ac_exeext
10051 if { (ac_try="$ac_link"
10052 case "(($ac_try" in
10053 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10054 *) ac_try_echo=$ac_try;;
10055 esac
10056 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10057 (eval "$ac_link") 2>conftest.er1
10058 ac_status=$?
10059 grep -v '^ *+' conftest.er1 >conftest.err
10060 rm -f conftest.er1
10061 cat conftest.err >&5
10062 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10063 (exit $ac_status); } && {
10064 test -z "$ac_c_werror_flag" ||
10065 test ! -s conftest.err
10066 } && test -s conftest$ac_exeext &&
10067 $as_test_x conftest$ac_exeext; then
10068 eval "$as_ac_var=yes"
10069 else
10070 echo "$as_me: failed program was:" >&5
10071 sed 's/^/| /' conftest.$ac_ext >&5
10073 eval "$as_ac_var=no"
10076 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
10077 conftest$ac_exeext conftest.$ac_ext
10079 ac_res=`eval echo '${'$as_ac_var'}'`
10080 { echo "$as_me:$LINENO: result: $ac_res" >&5
10081 echo "${ECHO_T}$ac_res" >&6; }
10082 if test `eval echo '${'$as_ac_var'}'` = yes; then
10083 cat >>confdefs.h <<_ACEOF
10084 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
10085 _ACEOF
10088 done
10090 { echo "$as_me:$LINENO: checking for working mmap" >&5
10091 echo $ECHO_N "checking for working mmap... $ECHO_C" >&6; }
10092 if test "${ac_cv_func_mmap_fixed_mapped+set}" = set; then
10093 echo $ECHO_N "(cached) $ECHO_C" >&6
10094 else
10095 if test "$cross_compiling" = yes; then
10096 ac_cv_func_mmap_fixed_mapped=no
10097 else
10098 cat >conftest.$ac_ext <<_ACEOF
10099 /* confdefs.h. */
10100 _ACEOF
10101 cat confdefs.h >>conftest.$ac_ext
10102 cat >>conftest.$ac_ext <<_ACEOF
10103 /* end confdefs.h. */
10104 $ac_includes_default
10105 /* malloc might have been renamed as rpl_malloc. */
10106 #undef malloc
10108 /* Thanks to Mike Haertel and Jim Avera for this test.
10109 Here is a matrix of mmap possibilities:
10110 mmap private not fixed
10111 mmap private fixed at somewhere currently unmapped
10112 mmap private fixed at somewhere already mapped
10113 mmap shared not fixed
10114 mmap shared fixed at somewhere currently unmapped
10115 mmap shared fixed at somewhere already mapped
10116 For private mappings, we should verify that changes cannot be read()
10117 back from the file, nor mmap's back from the file at a different
10118 address. (There have been systems where private was not correctly
10119 implemented like the infamous i386 svr4.0, and systems where the
10120 VM page cache was not coherent with the file system buffer cache
10121 like early versions of FreeBSD and possibly contemporary NetBSD.)
10122 For shared mappings, we should conversely verify that changes get
10123 propagated back to all the places they're supposed to be.
10125 Grep wants private fixed already mapped.
10126 The main things grep needs to know about mmap are:
10127 * does it exist and is it safe to write into the mmap'd area
10128 * how to use it (BSD variants) */
10130 #include <fcntl.h>
10131 #include <sys/mman.h>
10133 #if !defined STDC_HEADERS && !defined HAVE_STDLIB_H
10134 char *malloc ();
10135 #endif
10137 /* This mess was copied from the GNU getpagesize.h. */
10138 #ifndef HAVE_GETPAGESIZE
10139 /* Assume that all systems that can run configure have sys/param.h. */
10140 # ifndef HAVE_SYS_PARAM_H
10141 # define HAVE_SYS_PARAM_H 1
10142 # endif
10144 # ifdef _SC_PAGESIZE
10145 # define getpagesize() sysconf(_SC_PAGESIZE)
10146 # else /* no _SC_PAGESIZE */
10147 # ifdef HAVE_SYS_PARAM_H
10148 # include <sys/param.h>
10149 # ifdef EXEC_PAGESIZE
10150 # define getpagesize() EXEC_PAGESIZE
10151 # else /* no EXEC_PAGESIZE */
10152 # ifdef NBPG
10153 # define getpagesize() NBPG * CLSIZE
10154 # ifndef CLSIZE
10155 # define CLSIZE 1
10156 # endif /* no CLSIZE */
10157 # else /* no NBPG */
10158 # ifdef NBPC
10159 # define getpagesize() NBPC
10160 # else /* no NBPC */
10161 # ifdef PAGESIZE
10162 # define getpagesize() PAGESIZE
10163 # endif /* PAGESIZE */
10164 # endif /* no NBPC */
10165 # endif /* no NBPG */
10166 # endif /* no EXEC_PAGESIZE */
10167 # else /* no HAVE_SYS_PARAM_H */
10168 # define getpagesize() 8192 /* punt totally */
10169 # endif /* no HAVE_SYS_PARAM_H */
10170 # endif /* no _SC_PAGESIZE */
10172 #endif /* no HAVE_GETPAGESIZE */
10175 main ()
10177 char *data, *data2, *data3;
10178 int i, pagesize;
10179 int fd;
10181 pagesize = getpagesize ();
10183 /* First, make a file with some known garbage in it. */
10184 data = (char *) malloc (pagesize);
10185 if (!data)
10186 return 1;
10187 for (i = 0; i < pagesize; ++i)
10188 *(data + i) = rand ();
10189 umask (0);
10190 fd = creat ("conftest.mmap", 0600);
10191 if (fd < 0)
10192 return 1;
10193 if (write (fd, data, pagesize) != pagesize)
10194 return 1;
10195 close (fd);
10197 /* Next, try to mmap the file at a fixed address which already has
10198 something else allocated at it. If we can, also make sure that
10199 we see the same garbage. */
10200 fd = open ("conftest.mmap", O_RDWR);
10201 if (fd < 0)
10202 return 1;
10203 data2 = (char *) malloc (2 * pagesize);
10204 if (!data2)
10205 return 1;
10206 data2 += (pagesize - ((long int) data2 & (pagesize - 1))) & (pagesize - 1);
10207 if (data2 != mmap (data2, pagesize, PROT_READ | PROT_WRITE,
10208 MAP_PRIVATE | MAP_FIXED, fd, 0L))
10209 return 1;
10210 for (i = 0; i < pagesize; ++i)
10211 if (*(data + i) != *(data2 + i))
10212 return 1;
10214 /* Finally, make sure that changes to the mapped area do not
10215 percolate back to the file as seen by read(). (This is a bug on
10216 some variants of i386 svr4.0.) */
10217 for (i = 0; i < pagesize; ++i)
10218 *(data2 + i) = *(data2 + i) + 1;
10219 data3 = (char *) malloc (pagesize);
10220 if (!data3)
10221 return 1;
10222 if (read (fd, data3, pagesize) != pagesize)
10223 return 1;
10224 for (i = 0; i < pagesize; ++i)
10225 if (*(data + i) != *(data3 + i))
10226 return 1;
10227 close (fd);
10228 return 0;
10230 _ACEOF
10231 rm -f conftest$ac_exeext
10232 if { (ac_try="$ac_link"
10233 case "(($ac_try" in
10234 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10235 *) ac_try_echo=$ac_try;;
10236 esac
10237 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10238 (eval "$ac_link") 2>&5
10239 ac_status=$?
10240 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10241 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
10242 { (case "(($ac_try" in
10243 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10244 *) ac_try_echo=$ac_try;;
10245 esac
10246 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10247 (eval "$ac_try") 2>&5
10248 ac_status=$?
10249 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10250 (exit $ac_status); }; }; then
10251 ac_cv_func_mmap_fixed_mapped=yes
10252 else
10253 echo "$as_me: program exited with status $ac_status" >&5
10254 echo "$as_me: failed program was:" >&5
10255 sed 's/^/| /' conftest.$ac_ext >&5
10257 ( exit $ac_status )
10258 ac_cv_func_mmap_fixed_mapped=no
10260 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
10265 { echo "$as_me:$LINENO: result: $ac_cv_func_mmap_fixed_mapped" >&5
10266 echo "${ECHO_T}$ac_cv_func_mmap_fixed_mapped" >&6; }
10267 if test $ac_cv_func_mmap_fixed_mapped = yes; then
10269 cat >>confdefs.h <<\_ACEOF
10270 #define HAVE_MMAP 1
10271 _ACEOF
10274 rm -f conftest.mmap
10276 if test $use_mmap_for_buffers = yes; then
10277 REL_ALLOC=no
10280 LIBS="$libsrc_libs $LIBS"
10283 { echo "$as_me:$LINENO: checking for dnet_ntoa in -ldnet" >&5
10284 echo $ECHO_N "checking for dnet_ntoa in -ldnet... $ECHO_C" >&6; }
10285 if test "${ac_cv_lib_dnet_dnet_ntoa+set}" = set; then
10286 echo $ECHO_N "(cached) $ECHO_C" >&6
10287 else
10288 ac_check_lib_save_LIBS=$LIBS
10289 LIBS="-ldnet $LIBS"
10290 cat >conftest.$ac_ext <<_ACEOF
10291 /* confdefs.h. */
10292 _ACEOF
10293 cat confdefs.h >>conftest.$ac_ext
10294 cat >>conftest.$ac_ext <<_ACEOF
10295 /* end confdefs.h. */
10297 /* Override any GCC internal prototype to avoid an error.
10298 Use char because int might match the return type of a GCC
10299 builtin and then its argument prototype would still apply. */
10300 #ifdef __cplusplus
10301 extern "C"
10302 #endif
10303 char dnet_ntoa ();
10305 main ()
10307 return dnet_ntoa ();
10309 return 0;
10311 _ACEOF
10312 rm -f conftest.$ac_objext conftest$ac_exeext
10313 if { (ac_try="$ac_link"
10314 case "(($ac_try" in
10315 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10316 *) ac_try_echo=$ac_try;;
10317 esac
10318 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10319 (eval "$ac_link") 2>conftest.er1
10320 ac_status=$?
10321 grep -v '^ *+' conftest.er1 >conftest.err
10322 rm -f conftest.er1
10323 cat conftest.err >&5
10324 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10325 (exit $ac_status); } && {
10326 test -z "$ac_c_werror_flag" ||
10327 test ! -s conftest.err
10328 } && test -s conftest$ac_exeext &&
10329 $as_test_x conftest$ac_exeext; then
10330 ac_cv_lib_dnet_dnet_ntoa=yes
10331 else
10332 echo "$as_me: failed program was:" >&5
10333 sed 's/^/| /' conftest.$ac_ext >&5
10335 ac_cv_lib_dnet_dnet_ntoa=no
10338 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
10339 conftest$ac_exeext conftest.$ac_ext
10340 LIBS=$ac_check_lib_save_LIBS
10342 { echo "$as_me:$LINENO: result: $ac_cv_lib_dnet_dnet_ntoa" >&5
10343 echo "${ECHO_T}$ac_cv_lib_dnet_dnet_ntoa" >&6; }
10344 if test $ac_cv_lib_dnet_dnet_ntoa = yes; then
10345 cat >>confdefs.h <<_ACEOF
10346 #define HAVE_LIBDNET 1
10347 _ACEOF
10349 LIBS="-ldnet $LIBS"
10354 { echo "$as_me:$LINENO: checking for main in -lXbsd" >&5
10355 echo $ECHO_N "checking for main in -lXbsd... $ECHO_C" >&6; }
10356 if test "${ac_cv_lib_Xbsd_main+set}" = set; then
10357 echo $ECHO_N "(cached) $ECHO_C" >&6
10358 else
10359 ac_check_lib_save_LIBS=$LIBS
10360 LIBS="-lXbsd $LIBS"
10361 cat >conftest.$ac_ext <<_ACEOF
10362 /* confdefs.h. */
10363 _ACEOF
10364 cat confdefs.h >>conftest.$ac_ext
10365 cat >>conftest.$ac_ext <<_ACEOF
10366 /* end confdefs.h. */
10370 main ()
10372 return main ();
10374 return 0;
10376 _ACEOF
10377 rm -f conftest.$ac_objext conftest$ac_exeext
10378 if { (ac_try="$ac_link"
10379 case "(($ac_try" in
10380 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10381 *) ac_try_echo=$ac_try;;
10382 esac
10383 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10384 (eval "$ac_link") 2>conftest.er1
10385 ac_status=$?
10386 grep -v '^ *+' conftest.er1 >conftest.err
10387 rm -f conftest.er1
10388 cat conftest.err >&5
10389 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10390 (exit $ac_status); } && {
10391 test -z "$ac_c_werror_flag" ||
10392 test ! -s conftest.err
10393 } && test -s conftest$ac_exeext &&
10394 $as_test_x conftest$ac_exeext; then
10395 ac_cv_lib_Xbsd_main=yes
10396 else
10397 echo "$as_me: failed program was:" >&5
10398 sed 's/^/| /' conftest.$ac_ext >&5
10400 ac_cv_lib_Xbsd_main=no
10403 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
10404 conftest$ac_exeext conftest.$ac_ext
10405 LIBS=$ac_check_lib_save_LIBS
10407 { echo "$as_me:$LINENO: result: $ac_cv_lib_Xbsd_main" >&5
10408 echo "${ECHO_T}$ac_cv_lib_Xbsd_main" >&6; }
10409 if test $ac_cv_lib_Xbsd_main = yes; then
10410 LD_SWITCH_X_SITE="$LD_SWITCH_X_SITE -lXbsd"
10415 { echo "$as_me:$LINENO: checking for cma_open in -lpthreads" >&5
10416 echo $ECHO_N "checking for cma_open in -lpthreads... $ECHO_C" >&6; }
10417 if test "${ac_cv_lib_pthreads_cma_open+set}" = set; then
10418 echo $ECHO_N "(cached) $ECHO_C" >&6
10419 else
10420 ac_check_lib_save_LIBS=$LIBS
10421 LIBS="-lpthreads $LIBS"
10422 cat >conftest.$ac_ext <<_ACEOF
10423 /* confdefs.h. */
10424 _ACEOF
10425 cat confdefs.h >>conftest.$ac_ext
10426 cat >>conftest.$ac_ext <<_ACEOF
10427 /* end confdefs.h. */
10429 /* Override any GCC internal prototype to avoid an error.
10430 Use char because int might match the return type of a GCC
10431 builtin and then its argument prototype would still apply. */
10432 #ifdef __cplusplus
10433 extern "C"
10434 #endif
10435 char cma_open ();
10437 main ()
10439 return cma_open ();
10441 return 0;
10443 _ACEOF
10444 rm -f conftest.$ac_objext conftest$ac_exeext
10445 if { (ac_try="$ac_link"
10446 case "(($ac_try" in
10447 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10448 *) ac_try_echo=$ac_try;;
10449 esac
10450 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10451 (eval "$ac_link") 2>conftest.er1
10452 ac_status=$?
10453 grep -v '^ *+' conftest.er1 >conftest.err
10454 rm -f conftest.er1
10455 cat conftest.err >&5
10456 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10457 (exit $ac_status); } && {
10458 test -z "$ac_c_werror_flag" ||
10459 test ! -s conftest.err
10460 } && test -s conftest$ac_exeext &&
10461 $as_test_x conftest$ac_exeext; then
10462 ac_cv_lib_pthreads_cma_open=yes
10463 else
10464 echo "$as_me: failed program was:" >&5
10465 sed 's/^/| /' conftest.$ac_ext >&5
10467 ac_cv_lib_pthreads_cma_open=no
10470 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
10471 conftest$ac_exeext conftest.$ac_ext
10472 LIBS=$ac_check_lib_save_LIBS
10474 { echo "$as_me:$LINENO: result: $ac_cv_lib_pthreads_cma_open" >&5
10475 echo "${ECHO_T}$ac_cv_lib_pthreads_cma_open" >&6; }
10476 if test $ac_cv_lib_pthreads_cma_open = yes; then
10477 cat >>confdefs.h <<_ACEOF
10478 #define HAVE_LIBPTHREADS 1
10479 _ACEOF
10481 LIBS="-lpthreads $LIBS"
10487 case ${host_os} in
10488 aix*)
10489 { echo "$as_me:$LINENO: checking for -bbigtoc option" >&5
10490 echo $ECHO_N "checking for -bbigtoc option... $ECHO_C" >&6; }
10491 if test "${gdb_cv_bigtoc+set}" = set; then
10492 echo $ECHO_N "(cached) $ECHO_C" >&6
10493 else
10495 case $GCC in
10496 yes) gdb_cv_bigtoc=-Wl,-bbigtoc ;;
10497 *) gdb_cv_bigtoc=-bbigtoc ;;
10498 esac
10500 LDFLAGS=$LDFLAGS\ $gdb_cv_bigtoc
10501 cat >conftest.$ac_ext <<_ACEOF
10502 /* confdefs.h. */
10503 _ACEOF
10504 cat confdefs.h >>conftest.$ac_ext
10505 cat >>conftest.$ac_ext <<_ACEOF
10506 /* end confdefs.h. */
10509 main ()
10511 int i;
10513 return 0;
10515 _ACEOF
10516 rm -f conftest.$ac_objext conftest$ac_exeext
10517 if { (ac_try="$ac_link"
10518 case "(($ac_try" in
10519 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10520 *) ac_try_echo=$ac_try;;
10521 esac
10522 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10523 (eval "$ac_link") 2>conftest.er1
10524 ac_status=$?
10525 grep -v '^ *+' conftest.er1 >conftest.err
10526 rm -f conftest.er1
10527 cat conftest.err >&5
10528 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10529 (exit $ac_status); } && {
10530 test -z "$ac_c_werror_flag" ||
10531 test ! -s conftest.err
10532 } && test -s conftest$ac_exeext &&
10533 $as_test_x conftest$ac_exeext; then
10535 else
10536 echo "$as_me: failed program was:" >&5
10537 sed 's/^/| /' conftest.$ac_ext >&5
10539 gdb_cv_bigtoc=
10542 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
10543 conftest$ac_exeext conftest.$ac_ext
10546 { echo "$as_me:$LINENO: result: $gdb_cv_bigtoc" >&5
10547 echo "${ECHO_T}$gdb_cv_bigtoc" >&6; }
10549 esac
10551 # Change CFLAGS and CPPFLAGS temporarily so that C_SWITCH_X_SITE gets
10552 # used for the tests that follow. We set them back to REAL_CFLAGS and
10553 # REAL_CPPFLAGS later on.
10555 REAL_CPPFLAGS="$CPPFLAGS"
10557 if test "${HAVE_X11}" = "yes"; then
10558 DEFS="$C_SWITCH_X_SITE $DEFS"
10559 LDFLAGS="$LDFLAGS $LD_SWITCH_X_SITE"
10560 LIBS="$LIBX $LIBS"
10561 CFLAGS="$C_SWITCH_X_SITE $CFLAGS"
10562 CPPFLAGS="$C_SWITCH_X_SITE $CPPFLAGS"
10564 # On Solaris, arrange for LD_RUN_PATH to point to the X libraries for tests.
10565 # This is handled by LD_SWITCH_X_SITE_AUX during the real build,
10566 # but it's more convenient here to set LD_RUN_PATH
10567 # since this also works on hosts that don't understand LD_SWITCH_X_SITE_AUX.
10568 if test "${x_libraries}" != NONE && test -n "${x_libraries}"; then
10569 LD_RUN_PATH=$x_libraries${LD_RUN_PATH+:}$LD_RUN_PATH
10570 export LD_RUN_PATH
10573 if test "${opsys}" = "gnu-linux"; then
10574 { echo "$as_me:$LINENO: checking whether X on GNU/Linux needs -b to link" >&5
10575 echo $ECHO_N "checking whether X on GNU/Linux needs -b to link... $ECHO_C" >&6; }
10576 cat >conftest.$ac_ext <<_ACEOF
10577 /* confdefs.h. */
10578 _ACEOF
10579 cat confdefs.h >>conftest.$ac_ext
10580 cat >>conftest.$ac_ext <<_ACEOF
10581 /* end confdefs.h. */
10584 main ()
10586 XOpenDisplay ("foo");
10588 return 0;
10590 _ACEOF
10591 rm -f conftest.$ac_objext conftest$ac_exeext
10592 if { (ac_try="$ac_link"
10593 case "(($ac_try" in
10594 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10595 *) ac_try_echo=$ac_try;;
10596 esac
10597 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10598 (eval "$ac_link") 2>conftest.er1
10599 ac_status=$?
10600 grep -v '^ *+' conftest.er1 >conftest.err
10601 rm -f conftest.er1
10602 cat conftest.err >&5
10603 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10604 (exit $ac_status); } && {
10605 test -z "$ac_c_werror_flag" ||
10606 test ! -s conftest.err
10607 } && test -s conftest$ac_exeext &&
10608 $as_test_x conftest$ac_exeext; then
10609 xlinux_first_failure=no
10610 else
10611 echo "$as_me: failed program was:" >&5
10612 sed 's/^/| /' conftest.$ac_ext >&5
10614 xlinux_first_failure=yes
10617 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
10618 conftest$ac_exeext conftest.$ac_ext
10619 if test "${xlinux_first_failure}" = "yes"; then
10620 OLD_LD_SWITCH_X_SITE="$LD_SWITCH_X_SITE"
10621 OLD_C_SWITCH_X_SITE="$C_SWITCH_X_SITE"
10622 OLD_CPPFLAGS="$CPPFLAGS"
10623 OLD_LIBS="$LIBS"
10624 LD_SWITCH_X_SITE="$LD_SWITCH_X_SITE -b i486-linuxaout"
10625 C_SWITCH_X_SITE="$C_SWITCH_X_SITE -b i486-linuxaout"
10626 CPPFLAGS="$CPPFLAGS -b i486-linuxaout"
10627 LIBS="$LIBS -b i486-linuxaout"
10628 cat >conftest.$ac_ext <<_ACEOF
10629 /* confdefs.h. */
10630 _ACEOF
10631 cat confdefs.h >>conftest.$ac_ext
10632 cat >>conftest.$ac_ext <<_ACEOF
10633 /* end confdefs.h. */
10636 main ()
10638 XOpenDisplay ("foo");
10640 return 0;
10642 _ACEOF
10643 rm -f conftest.$ac_objext conftest$ac_exeext
10644 if { (ac_try="$ac_link"
10645 case "(($ac_try" in
10646 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10647 *) ac_try_echo=$ac_try;;
10648 esac
10649 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10650 (eval "$ac_link") 2>conftest.er1
10651 ac_status=$?
10652 grep -v '^ *+' conftest.er1 >conftest.err
10653 rm -f conftest.er1
10654 cat conftest.err >&5
10655 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10656 (exit $ac_status); } && {
10657 test -z "$ac_c_werror_flag" ||
10658 test ! -s conftest.err
10659 } && test -s conftest$ac_exeext &&
10660 $as_test_x conftest$ac_exeext; then
10661 xlinux_second_failure=no
10662 else
10663 echo "$as_me: failed program was:" >&5
10664 sed 's/^/| /' conftest.$ac_ext >&5
10666 xlinux_second_failure=yes
10669 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
10670 conftest$ac_exeext conftest.$ac_ext
10671 if test "${xlinux_second_failure}" = "yes"; then
10672 # If we get the same failure with -b, there is no use adding -b.
10673 # So take it out. This plays safe.
10674 LD_SWITCH_X_SITE="$OLD_LD_SWITCH_X_SITE"
10675 C_SWITCH_X_SITE="$OLD_C_SWITCH_X_SITE"
10676 CPPFLAGS="$OLD_CPPFLAGS"
10677 LIBS="$OLD_LIBS"
10678 { echo "$as_me:$LINENO: result: no" >&5
10679 echo "${ECHO_T}no" >&6; }
10680 else
10681 { echo "$as_me:$LINENO: result: yes" >&5
10682 echo "${ECHO_T}yes" >&6; }
10684 else
10685 { echo "$as_me:$LINENO: result: no" >&5
10686 echo "${ECHO_T}no" >&6; }
10690 # Reportedly, some broken Solaris systems have XKBlib.h but are missing
10691 # header files included from there.
10692 { echo "$as_me:$LINENO: checking for Xkb" >&5
10693 echo $ECHO_N "checking for Xkb... $ECHO_C" >&6; }
10694 cat >conftest.$ac_ext <<_ACEOF
10695 /* confdefs.h. */
10696 _ACEOF
10697 cat confdefs.h >>conftest.$ac_ext
10698 cat >>conftest.$ac_ext <<_ACEOF
10699 /* end confdefs.h. */
10700 #include <X11/Xlib.h>
10701 #include <X11/XKBlib.h>
10703 main ()
10705 XkbDescPtr kb = XkbGetKeyboard (0, XkbAllComponentsMask, XkbUseCoreKbd);
10707 return 0;
10709 _ACEOF
10710 rm -f conftest.$ac_objext conftest$ac_exeext
10711 if { (ac_try="$ac_link"
10712 case "(($ac_try" in
10713 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10714 *) ac_try_echo=$ac_try;;
10715 esac
10716 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10717 (eval "$ac_link") 2>conftest.er1
10718 ac_status=$?
10719 grep -v '^ *+' conftest.er1 >conftest.err
10720 rm -f conftest.er1
10721 cat conftest.err >&5
10722 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10723 (exit $ac_status); } && {
10724 test -z "$ac_c_werror_flag" ||
10725 test ! -s conftest.err
10726 } && test -s conftest$ac_exeext &&
10727 $as_test_x conftest$ac_exeext; then
10728 emacs_xkb=yes
10729 else
10730 echo "$as_me: failed program was:" >&5
10731 sed 's/^/| /' conftest.$ac_ext >&5
10733 emacs_xkb=no
10736 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
10737 conftest$ac_exeext conftest.$ac_ext
10738 { echo "$as_me:$LINENO: result: $emacs_xkb" >&5
10739 echo "${ECHO_T}$emacs_xkb" >&6; }
10740 if test $emacs_xkb = yes; then
10742 cat >>confdefs.h <<\_ACEOF
10743 #define HAVE_XKBGETKEYBOARD 1
10744 _ACEOF
10752 for ac_func in XrmSetDatabase XScreenResourceString \
10753 XScreenNumberOfScreen XSetWMProtocols
10755 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
10756 { echo "$as_me:$LINENO: checking for $ac_func" >&5
10757 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
10758 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
10759 echo $ECHO_N "(cached) $ECHO_C" >&6
10760 else
10761 cat >conftest.$ac_ext <<_ACEOF
10762 /* confdefs.h. */
10763 _ACEOF
10764 cat confdefs.h >>conftest.$ac_ext
10765 cat >>conftest.$ac_ext <<_ACEOF
10766 /* end confdefs.h. */
10767 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
10768 For example, HP-UX 11i <limits.h> declares gettimeofday. */
10769 #define $ac_func innocuous_$ac_func
10771 /* System header to define __stub macros and hopefully few prototypes,
10772 which can conflict with char $ac_func (); below.
10773 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
10774 <limits.h> exists even on freestanding compilers. */
10776 #ifdef __STDC__
10777 # include <limits.h>
10778 #else
10779 # include <assert.h>
10780 #endif
10782 #undef $ac_func
10784 /* Override any GCC internal prototype to avoid an error.
10785 Use char because int might match the return type of a GCC
10786 builtin and then its argument prototype would still apply. */
10787 #ifdef __cplusplus
10788 extern "C"
10789 #endif
10790 char $ac_func ();
10791 /* The GNU C library defines this for functions which it implements
10792 to always fail with ENOSYS. Some functions are actually named
10793 something starting with __ and the normal name is an alias. */
10794 #if defined __stub_$ac_func || defined __stub___$ac_func
10795 choke me
10796 #endif
10799 main ()
10801 return $ac_func ();
10803 return 0;
10805 _ACEOF
10806 rm -f conftest.$ac_objext conftest$ac_exeext
10807 if { (ac_try="$ac_link"
10808 case "(($ac_try" in
10809 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10810 *) ac_try_echo=$ac_try;;
10811 esac
10812 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10813 (eval "$ac_link") 2>conftest.er1
10814 ac_status=$?
10815 grep -v '^ *+' conftest.er1 >conftest.err
10816 rm -f conftest.er1
10817 cat conftest.err >&5
10818 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10819 (exit $ac_status); } && {
10820 test -z "$ac_c_werror_flag" ||
10821 test ! -s conftest.err
10822 } && test -s conftest$ac_exeext &&
10823 $as_test_x conftest$ac_exeext; then
10824 eval "$as_ac_var=yes"
10825 else
10826 echo "$as_me: failed program was:" >&5
10827 sed 's/^/| /' conftest.$ac_ext >&5
10829 eval "$as_ac_var=no"
10832 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
10833 conftest$ac_exeext conftest.$ac_ext
10835 ac_res=`eval echo '${'$as_ac_var'}'`
10836 { echo "$as_me:$LINENO: result: $ac_res" >&5
10837 echo "${ECHO_T}$ac_res" >&6; }
10838 if test `eval echo '${'$as_ac_var'}'` = yes; then
10839 cat >>confdefs.h <<_ACEOF
10840 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
10841 _ACEOF
10844 done
10848 if test "${window_system}" = "x11"; then
10849 { echo "$as_me:$LINENO: checking X11 version 6" >&5
10850 echo $ECHO_N "checking X11 version 6... $ECHO_C" >&6; }
10851 if test "${emacs_cv_x11_version_6+set}" = set; then
10852 echo $ECHO_N "(cached) $ECHO_C" >&6
10853 else
10854 cat >conftest.$ac_ext <<_ACEOF
10855 /* confdefs.h. */
10856 _ACEOF
10857 cat confdefs.h >>conftest.$ac_ext
10858 cat >>conftest.$ac_ext <<_ACEOF
10859 /* end confdefs.h. */
10860 #include <X11/Xlib.h>
10862 main ()
10864 #if XlibSpecificationRelease < 6
10865 fail;
10866 #endif
10869 return 0;
10871 _ACEOF
10872 rm -f conftest.$ac_objext conftest$ac_exeext
10873 if { (ac_try="$ac_link"
10874 case "(($ac_try" in
10875 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10876 *) ac_try_echo=$ac_try;;
10877 esac
10878 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10879 (eval "$ac_link") 2>conftest.er1
10880 ac_status=$?
10881 grep -v '^ *+' conftest.er1 >conftest.err
10882 rm -f conftest.er1
10883 cat conftest.err >&5
10884 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10885 (exit $ac_status); } && {
10886 test -z "$ac_c_werror_flag" ||
10887 test ! -s conftest.err
10888 } && test -s conftest$ac_exeext &&
10889 $as_test_x conftest$ac_exeext; then
10890 emacs_cv_x11_version_6=yes
10891 else
10892 echo "$as_me: failed program was:" >&5
10893 sed 's/^/| /' conftest.$ac_ext >&5
10895 emacs_cv_x11_version_6=no
10898 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
10899 conftest$ac_exeext conftest.$ac_ext
10902 if test $emacs_cv_x11_version_6 = yes; then
10903 { echo "$as_me:$LINENO: result: 6 or newer" >&5
10904 echo "${ECHO_T}6 or newer" >&6; }
10906 cat >>confdefs.h <<\_ACEOF
10907 #define HAVE_X11R6 1
10908 _ACEOF
10910 else
10911 { echo "$as_me:$LINENO: result: before 6" >&5
10912 echo "${ECHO_T}before 6" >&6; }
10917 ### Use -lrsvg-2 if available, unless `--with-rsvg=no' is specified.
10918 HAVE_RSVG=no
10919 if test "${HAVE_X11}" = "yes" || test "${HAVE_CARBON}" = "yes"; then
10920 if test "${with_rsvg}" != "no"; then
10921 RSVG_REQUIRED=2.0.0
10922 RSVG_MODULE="librsvg-2.0 >= $RSVG_REQUIRED"
10925 succeeded=no
10927 # Extract the first word of "pkg-config", so it can be a program name with args.
10928 set dummy pkg-config; ac_word=$2
10929 { echo "$as_me:$LINENO: checking for $ac_word" >&5
10930 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
10931 if test "${ac_cv_path_PKG_CONFIG+set}" = set; then
10932 echo $ECHO_N "(cached) $ECHO_C" >&6
10933 else
10934 case $PKG_CONFIG in
10935 [\\/]* | ?:[\\/]*)
10936 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
10939 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10940 for as_dir in $PATH
10942 IFS=$as_save_IFS
10943 test -z "$as_dir" && as_dir=.
10944 for ac_exec_ext in '' $ac_executable_extensions; do
10945 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10946 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
10947 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
10948 break 2
10950 done
10951 done
10952 IFS=$as_save_IFS
10954 test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG="no"
10956 esac
10958 PKG_CONFIG=$ac_cv_path_PKG_CONFIG
10959 if test -n "$PKG_CONFIG"; then
10960 { echo "$as_me:$LINENO: result: $PKG_CONFIG" >&5
10961 echo "${ECHO_T}$PKG_CONFIG" >&6; }
10962 else
10963 { echo "$as_me:$LINENO: result: no" >&5
10964 echo "${ECHO_T}no" >&6; }
10969 if test "$PKG_CONFIG" = "no" ; then
10971 else
10972 PKG_CONFIG_MIN_VERSION=0.9.0
10973 if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
10974 { echo "$as_me:$LINENO: checking for $RSVG_MODULE" >&5
10975 echo $ECHO_N "checking for $RSVG_MODULE... $ECHO_C" >&6; }
10977 if $PKG_CONFIG --exists "$RSVG_MODULE" 2>&5; then
10978 { echo "$as_me:$LINENO: result: yes" >&5
10979 echo "${ECHO_T}yes" >&6; }
10980 succeeded=yes
10982 { echo "$as_me:$LINENO: checking RSVG_CFLAGS" >&5
10983 echo $ECHO_N "checking RSVG_CFLAGS... $ECHO_C" >&6; }
10984 RSVG_CFLAGS=`$PKG_CONFIG --cflags "$RSVG_MODULE"|sed -e 's,///*,/,g'`
10985 { echo "$as_me:$LINENO: result: $RSVG_CFLAGS" >&5
10986 echo "${ECHO_T}$RSVG_CFLAGS" >&6; }
10988 { echo "$as_me:$LINENO: checking RSVG_LIBS" >&5
10989 echo $ECHO_N "checking RSVG_LIBS... $ECHO_C" >&6; }
10990 RSVG_LIBS=`$PKG_CONFIG --libs "$RSVG_MODULE"|sed -e 's,///*,/,g'`
10991 { echo "$as_me:$LINENO: result: $RSVG_LIBS" >&5
10992 echo "${ECHO_T}$RSVG_LIBS" >&6; }
10993 else
10994 { echo "$as_me:$LINENO: result: no" >&5
10995 echo "${ECHO_T}no" >&6; }
10996 RSVG_CFLAGS=""
10997 RSVG_LIBS=""
10998 ## If we have a custom action on failure, don't print errors, but
10999 ## do set a variable so people can do so.
11000 RSVG_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "$RSVG_MODULE"`
11006 else
11007 echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
11008 echo "*** See http://www.freedesktop.org/software/pkgconfig"
11012 if test $succeeded = yes; then
11014 else
11021 if test ".${RSVG_CFLAGS}" != "."; then
11022 HAVE_RSVG=yes
11024 cat >>confdefs.h <<\_ACEOF
11025 #define HAVE_RSVG 1
11026 _ACEOF
11028 CFLAGS="$CFLAGS $RSVG_CFLAGS"
11029 LIBS="$RSVG_LIBS $LIBS"
11035 HAVE_GTK=no
11036 if test "${with_gtk}" = "yes" || test "$USE_X_TOOLKIT" = "maybe"; then
11037 GLIB_REQUIRED=2.6
11038 GTK_REQUIRED=2.6
11039 GTK_MODULES="gtk+-2.0 >= $GTK_REQUIRED glib-2.0 >= $GLIB_REQUIRED"
11042 succeeded=no
11044 # Extract the first word of "pkg-config", so it can be a program name with args.
11045 set dummy pkg-config; ac_word=$2
11046 { echo "$as_me:$LINENO: checking for $ac_word" >&5
11047 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
11048 if test "${ac_cv_path_PKG_CONFIG+set}" = set; then
11049 echo $ECHO_N "(cached) $ECHO_C" >&6
11050 else
11051 case $PKG_CONFIG in
11052 [\\/]* | ?:[\\/]*)
11053 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
11056 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11057 for as_dir in $PATH
11059 IFS=$as_save_IFS
11060 test -z "$as_dir" && as_dir=.
11061 for ac_exec_ext in '' $ac_executable_extensions; do
11062 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11063 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
11064 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
11065 break 2
11067 done
11068 done
11069 IFS=$as_save_IFS
11071 test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG="no"
11073 esac
11075 PKG_CONFIG=$ac_cv_path_PKG_CONFIG
11076 if test -n "$PKG_CONFIG"; then
11077 { echo "$as_me:$LINENO: result: $PKG_CONFIG" >&5
11078 echo "${ECHO_T}$PKG_CONFIG" >&6; }
11079 else
11080 { echo "$as_me:$LINENO: result: no" >&5
11081 echo "${ECHO_T}no" >&6; }
11086 if test "$PKG_CONFIG" = "no" ; then
11087 pkg_check_gtk=no
11088 else
11089 PKG_CONFIG_MIN_VERSION=0.9.0
11090 if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
11091 { echo "$as_me:$LINENO: checking for $GTK_MODULES" >&5
11092 echo $ECHO_N "checking for $GTK_MODULES... $ECHO_C" >&6; }
11094 if $PKG_CONFIG --exists "$GTK_MODULES" 2>&5; then
11095 { echo "$as_me:$LINENO: result: yes" >&5
11096 echo "${ECHO_T}yes" >&6; }
11097 succeeded=yes
11099 { echo "$as_me:$LINENO: checking GTK_CFLAGS" >&5
11100 echo $ECHO_N "checking GTK_CFLAGS... $ECHO_C" >&6; }
11101 GTK_CFLAGS=`$PKG_CONFIG --cflags "$GTK_MODULES"|sed -e 's,///*,/,g'`
11102 { echo "$as_me:$LINENO: result: $GTK_CFLAGS" >&5
11103 echo "${ECHO_T}$GTK_CFLAGS" >&6; }
11105 { echo "$as_me:$LINENO: checking GTK_LIBS" >&5
11106 echo $ECHO_N "checking GTK_LIBS... $ECHO_C" >&6; }
11107 GTK_LIBS=`$PKG_CONFIG --libs "$GTK_MODULES"|sed -e 's,///*,/,g'`
11108 { echo "$as_me:$LINENO: result: $GTK_LIBS" >&5
11109 echo "${ECHO_T}$GTK_LIBS" >&6; }
11110 else
11111 { echo "$as_me:$LINENO: result: no" >&5
11112 echo "${ECHO_T}no" >&6; }
11113 GTK_CFLAGS=""
11114 GTK_LIBS=""
11115 ## If we have a custom action on failure, don't print errors, but
11116 ## do set a variable so people can do so.
11117 GTK_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "$GTK_MODULES"`
11123 else
11124 echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
11125 echo "*** See http://www.freedesktop.org/software/pkgconfig"
11129 if test $succeeded = yes; then
11130 pkg_check_gtk=yes
11131 else
11132 pkg_check_gtk=no
11135 if test "$pkg_check_gtk" = "no" && test "$USE_X_TOOLKIT" != "maybe"; then
11136 { { echo "$as_me:$LINENO: error: $GTK_PKG_ERRORS" >&5
11137 echo "$as_me: error: $GTK_PKG_ERRORS" >&2;}
11138 { (exit 1); exit 1; }; }
11143 if test x"$pkg_check_gtk" = xyes; then
11147 C_SWITCH_X_SITE="$C_SWITCH_X_SITE $GTK_CFLAGS"
11148 CFLAGS="$CFLAGS $GTK_CFLAGS"
11149 LIBS="$GTK_LIBS $LIBS"
11150 GTK_COMPILES=no
11152 for ac_func in gtk_main
11154 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
11155 { echo "$as_me:$LINENO: checking for $ac_func" >&5
11156 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
11157 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
11158 echo $ECHO_N "(cached) $ECHO_C" >&6
11159 else
11160 cat >conftest.$ac_ext <<_ACEOF
11161 /* confdefs.h. */
11162 _ACEOF
11163 cat confdefs.h >>conftest.$ac_ext
11164 cat >>conftest.$ac_ext <<_ACEOF
11165 /* end confdefs.h. */
11166 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
11167 For example, HP-UX 11i <limits.h> declares gettimeofday. */
11168 #define $ac_func innocuous_$ac_func
11170 /* System header to define __stub macros and hopefully few prototypes,
11171 which can conflict with char $ac_func (); below.
11172 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
11173 <limits.h> exists even on freestanding compilers. */
11175 #ifdef __STDC__
11176 # include <limits.h>
11177 #else
11178 # include <assert.h>
11179 #endif
11181 #undef $ac_func
11183 /* Override any GCC internal prototype to avoid an error.
11184 Use char because int might match the return type of a GCC
11185 builtin and then its argument prototype would still apply. */
11186 #ifdef __cplusplus
11187 extern "C"
11188 #endif
11189 char $ac_func ();
11190 /* The GNU C library defines this for functions which it implements
11191 to always fail with ENOSYS. Some functions are actually named
11192 something starting with __ and the normal name is an alias. */
11193 #if defined __stub_$ac_func || defined __stub___$ac_func
11194 choke me
11195 #endif
11198 main ()
11200 return $ac_func ();
11202 return 0;
11204 _ACEOF
11205 rm -f conftest.$ac_objext conftest$ac_exeext
11206 if { (ac_try="$ac_link"
11207 case "(($ac_try" in
11208 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11209 *) ac_try_echo=$ac_try;;
11210 esac
11211 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11212 (eval "$ac_link") 2>conftest.er1
11213 ac_status=$?
11214 grep -v '^ *+' conftest.er1 >conftest.err
11215 rm -f conftest.er1
11216 cat conftest.err >&5
11217 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11218 (exit $ac_status); } && {
11219 test -z "$ac_c_werror_flag" ||
11220 test ! -s conftest.err
11221 } && test -s conftest$ac_exeext &&
11222 $as_test_x conftest$ac_exeext; then
11223 eval "$as_ac_var=yes"
11224 else
11225 echo "$as_me: failed program was:" >&5
11226 sed 's/^/| /' conftest.$ac_ext >&5
11228 eval "$as_ac_var=no"
11231 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
11232 conftest$ac_exeext conftest.$ac_ext
11234 ac_res=`eval echo '${'$as_ac_var'}'`
11235 { echo "$as_me:$LINENO: result: $ac_res" >&5
11236 echo "${ECHO_T}$ac_res" >&6; }
11237 if test `eval echo '${'$as_ac_var'}'` = yes; then
11238 cat >>confdefs.h <<_ACEOF
11239 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
11240 _ACEOF
11241 GTK_COMPILES=yes
11243 done
11245 if test "${GTK_COMPILES}" != "yes"; then
11246 if test "$USE_X_TOOLKIT" != "maybe"; then
11247 { { echo "$as_me:$LINENO: error: Gtk+ wanted, but it does not compile, see config.log. Maybe some x11-devel files missing?" >&5
11248 echo "$as_me: error: Gtk+ wanted, but it does not compile, see config.log. Maybe some x11-devel files missing?" >&2;}
11249 { (exit 1); exit 1; }; };
11251 else
11252 HAVE_GTK=yes
11254 cat >>confdefs.h <<\_ACEOF
11255 #define USE_GTK 1
11256 _ACEOF
11258 USE_X_TOOLKIT=none
11259 if $PKG_CONFIG --atleast-version=2.10 gtk+-2.0; then
11261 else
11262 { echo "$as_me:$LINENO: WARNING: Your version of Gtk+ will have problems with
11263 closing open displays. This is no problem if you just use
11264 one display, but if you use more than one and close one of them
11265 Emacs may crash." >&5
11266 echo "$as_me: WARNING: Your version of Gtk+ will have problems with
11267 closing open displays. This is no problem if you just use
11268 one display, but if you use more than one and close one of them
11269 Emacs may crash." >&2;}
11270 sleep 3
11277 if test "${HAVE_GTK}" = "yes"; then
11279 if test "$with_toolkit_scroll_bars" != no; then
11280 with_toolkit_scroll_bars=yes
11283 HAVE_GTK_MULTIDISPLAY=no
11285 for ac_func in gdk_display_open
11287 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
11288 { echo "$as_me:$LINENO: checking for $ac_func" >&5
11289 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
11290 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
11291 echo $ECHO_N "(cached) $ECHO_C" >&6
11292 else
11293 cat >conftest.$ac_ext <<_ACEOF
11294 /* confdefs.h. */
11295 _ACEOF
11296 cat confdefs.h >>conftest.$ac_ext
11297 cat >>conftest.$ac_ext <<_ACEOF
11298 /* end confdefs.h. */
11299 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
11300 For example, HP-UX 11i <limits.h> declares gettimeofday. */
11301 #define $ac_func innocuous_$ac_func
11303 /* System header to define __stub macros and hopefully few prototypes,
11304 which can conflict with char $ac_func (); below.
11305 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
11306 <limits.h> exists even on freestanding compilers. */
11308 #ifdef __STDC__
11309 # include <limits.h>
11310 #else
11311 # include <assert.h>
11312 #endif
11314 #undef $ac_func
11316 /* Override any GCC internal prototype to avoid an error.
11317 Use char because int might match the return type of a GCC
11318 builtin and then its argument prototype would still apply. */
11319 #ifdef __cplusplus
11320 extern "C"
11321 #endif
11322 char $ac_func ();
11323 /* The GNU C library defines this for functions which it implements
11324 to always fail with ENOSYS. Some functions are actually named
11325 something starting with __ and the normal name is an alias. */
11326 #if defined __stub_$ac_func || defined __stub___$ac_func
11327 choke me
11328 #endif
11331 main ()
11333 return $ac_func ();
11335 return 0;
11337 _ACEOF
11338 rm -f conftest.$ac_objext conftest$ac_exeext
11339 if { (ac_try="$ac_link"
11340 case "(($ac_try" in
11341 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11342 *) ac_try_echo=$ac_try;;
11343 esac
11344 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11345 (eval "$ac_link") 2>conftest.er1
11346 ac_status=$?
11347 grep -v '^ *+' conftest.er1 >conftest.err
11348 rm -f conftest.er1
11349 cat conftest.err >&5
11350 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11351 (exit $ac_status); } && {
11352 test -z "$ac_c_werror_flag" ||
11353 test ! -s conftest.err
11354 } && test -s conftest$ac_exeext &&
11355 $as_test_x conftest$ac_exeext; then
11356 eval "$as_ac_var=yes"
11357 else
11358 echo "$as_me: failed program was:" >&5
11359 sed 's/^/| /' conftest.$ac_ext >&5
11361 eval "$as_ac_var=no"
11364 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
11365 conftest$ac_exeext conftest.$ac_ext
11367 ac_res=`eval echo '${'$as_ac_var'}'`
11368 { echo "$as_me:$LINENO: result: $ac_res" >&5
11369 echo "${ECHO_T}$ac_res" >&6; }
11370 if test `eval echo '${'$as_ac_var'}'` = yes; then
11371 cat >>confdefs.h <<_ACEOF
11372 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
11373 _ACEOF
11374 HAVE_GTK_MULTIDISPLAY=yes
11376 done
11378 if test "${HAVE_GTK_MULTIDISPLAY}" = "yes"; then
11380 cat >>confdefs.h <<\_ACEOF
11381 #define HAVE_GTK_MULTIDISPLAY 1
11382 _ACEOF
11386 HAVE_GTK_FILE_SELECTION=no
11388 for ac_func in gtk_file_selection_new
11390 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
11391 { echo "$as_me:$LINENO: checking for $ac_func" >&5
11392 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
11393 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
11394 echo $ECHO_N "(cached) $ECHO_C" >&6
11395 else
11396 cat >conftest.$ac_ext <<_ACEOF
11397 /* confdefs.h. */
11398 _ACEOF
11399 cat confdefs.h >>conftest.$ac_ext
11400 cat >>conftest.$ac_ext <<_ACEOF
11401 /* end confdefs.h. */
11402 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
11403 For example, HP-UX 11i <limits.h> declares gettimeofday. */
11404 #define $ac_func innocuous_$ac_func
11406 /* System header to define __stub macros and hopefully few prototypes,
11407 which can conflict with char $ac_func (); below.
11408 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
11409 <limits.h> exists even on freestanding compilers. */
11411 #ifdef __STDC__
11412 # include <limits.h>
11413 #else
11414 # include <assert.h>
11415 #endif
11417 #undef $ac_func
11419 /* Override any GCC internal prototype to avoid an error.
11420 Use char because int might match the return type of a GCC
11421 builtin and then its argument prototype would still apply. */
11422 #ifdef __cplusplus
11423 extern "C"
11424 #endif
11425 char $ac_func ();
11426 /* The GNU C library defines this for functions which it implements
11427 to always fail with ENOSYS. Some functions are actually named
11428 something starting with __ and the normal name is an alias. */
11429 #if defined __stub_$ac_func || defined __stub___$ac_func
11430 choke me
11431 #endif
11434 main ()
11436 return $ac_func ();
11438 return 0;
11440 _ACEOF
11441 rm -f conftest.$ac_objext conftest$ac_exeext
11442 if { (ac_try="$ac_link"
11443 case "(($ac_try" in
11444 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11445 *) ac_try_echo=$ac_try;;
11446 esac
11447 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11448 (eval "$ac_link") 2>conftest.er1
11449 ac_status=$?
11450 grep -v '^ *+' conftest.er1 >conftest.err
11451 rm -f conftest.er1
11452 cat conftest.err >&5
11453 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11454 (exit $ac_status); } && {
11455 test -z "$ac_c_werror_flag" ||
11456 test ! -s conftest.err
11457 } && test -s conftest$ac_exeext &&
11458 $as_test_x conftest$ac_exeext; then
11459 eval "$as_ac_var=yes"
11460 else
11461 echo "$as_me: failed program was:" >&5
11462 sed 's/^/| /' conftest.$ac_ext >&5
11464 eval "$as_ac_var=no"
11467 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
11468 conftest$ac_exeext conftest.$ac_ext
11470 ac_res=`eval echo '${'$as_ac_var'}'`
11471 { echo "$as_me:$LINENO: result: $ac_res" >&5
11472 echo "${ECHO_T}$ac_res" >&6; }
11473 if test `eval echo '${'$as_ac_var'}'` = yes; then
11474 cat >>confdefs.h <<_ACEOF
11475 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
11476 _ACEOF
11477 HAVE_GTK_FILE_SELECTION=yes
11479 done
11482 HAVE_GTK_FILE_CHOOSER=no
11484 for ac_func in gtk_file_chooser_dialog_new
11486 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
11487 { echo "$as_me:$LINENO: checking for $ac_func" >&5
11488 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
11489 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
11490 echo $ECHO_N "(cached) $ECHO_C" >&6
11491 else
11492 cat >conftest.$ac_ext <<_ACEOF
11493 /* confdefs.h. */
11494 _ACEOF
11495 cat confdefs.h >>conftest.$ac_ext
11496 cat >>conftest.$ac_ext <<_ACEOF
11497 /* end confdefs.h. */
11498 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
11499 For example, HP-UX 11i <limits.h> declares gettimeofday. */
11500 #define $ac_func innocuous_$ac_func
11502 /* System header to define __stub macros and hopefully few prototypes,
11503 which can conflict with char $ac_func (); below.
11504 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
11505 <limits.h> exists even on freestanding compilers. */
11507 #ifdef __STDC__
11508 # include <limits.h>
11509 #else
11510 # include <assert.h>
11511 #endif
11513 #undef $ac_func
11515 /* Override any GCC internal prototype to avoid an error.
11516 Use char because int might match the return type of a GCC
11517 builtin and then its argument prototype would still apply. */
11518 #ifdef __cplusplus
11519 extern "C"
11520 #endif
11521 char $ac_func ();
11522 /* The GNU C library defines this for functions which it implements
11523 to always fail with ENOSYS. Some functions are actually named
11524 something starting with __ and the normal name is an alias. */
11525 #if defined __stub_$ac_func || defined __stub___$ac_func
11526 choke me
11527 #endif
11530 main ()
11532 return $ac_func ();
11534 return 0;
11536 _ACEOF
11537 rm -f conftest.$ac_objext conftest$ac_exeext
11538 if { (ac_try="$ac_link"
11539 case "(($ac_try" in
11540 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11541 *) ac_try_echo=$ac_try;;
11542 esac
11543 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11544 (eval "$ac_link") 2>conftest.er1
11545 ac_status=$?
11546 grep -v '^ *+' conftest.er1 >conftest.err
11547 rm -f conftest.er1
11548 cat conftest.err >&5
11549 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11550 (exit $ac_status); } && {
11551 test -z "$ac_c_werror_flag" ||
11552 test ! -s conftest.err
11553 } && test -s conftest$ac_exeext &&
11554 $as_test_x conftest$ac_exeext; then
11555 eval "$as_ac_var=yes"
11556 else
11557 echo "$as_me: failed program was:" >&5
11558 sed 's/^/| /' conftest.$ac_ext >&5
11560 eval "$as_ac_var=no"
11563 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
11564 conftest$ac_exeext conftest.$ac_ext
11566 ac_res=`eval echo '${'$as_ac_var'}'`
11567 { echo "$as_me:$LINENO: result: $ac_res" >&5
11568 echo "${ECHO_T}$ac_res" >&6; }
11569 if test `eval echo '${'$as_ac_var'}'` = yes; then
11570 cat >>confdefs.h <<_ACEOF
11571 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
11572 _ACEOF
11573 HAVE_GTK_FILE_CHOOSER=yes
11575 done
11578 if test "$HAVE_GTK_FILE_SELECTION" = yes \
11579 && test "$HAVE_GTK_FILE_CHOOSER" = yes; then
11581 cat >>confdefs.h <<\_ACEOF
11582 #define HAVE_GTK_FILE_BOTH 1
11583 _ACEOF
11587 if test "$HAVE_GTK_FILE_CHOOSER" = yes; then
11588 HAVE_GTK_AND_PTHREAD=no
11590 for ac_header in pthread.h
11592 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
11593 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11594 { echo "$as_me:$LINENO: checking for $ac_header" >&5
11595 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
11596 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11597 echo $ECHO_N "(cached) $ECHO_C" >&6
11599 ac_res=`eval echo '${'$as_ac_Header'}'`
11600 { echo "$as_me:$LINENO: result: $ac_res" >&5
11601 echo "${ECHO_T}$ac_res" >&6; }
11602 else
11603 # Is the header compilable?
11604 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
11605 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
11606 cat >conftest.$ac_ext <<_ACEOF
11607 /* confdefs.h. */
11608 _ACEOF
11609 cat confdefs.h >>conftest.$ac_ext
11610 cat >>conftest.$ac_ext <<_ACEOF
11611 /* end confdefs.h. */
11612 $ac_includes_default
11613 #include <$ac_header>
11614 _ACEOF
11615 rm -f conftest.$ac_objext
11616 if { (ac_try="$ac_compile"
11617 case "(($ac_try" in
11618 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11619 *) ac_try_echo=$ac_try;;
11620 esac
11621 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11622 (eval "$ac_compile") 2>conftest.er1
11623 ac_status=$?
11624 grep -v '^ *+' conftest.er1 >conftest.err
11625 rm -f conftest.er1
11626 cat conftest.err >&5
11627 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11628 (exit $ac_status); } && {
11629 test -z "$ac_c_werror_flag" ||
11630 test ! -s conftest.err
11631 } && test -s conftest.$ac_objext; then
11632 ac_header_compiler=yes
11633 else
11634 echo "$as_me: failed program was:" >&5
11635 sed 's/^/| /' conftest.$ac_ext >&5
11637 ac_header_compiler=no
11640 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11641 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
11642 echo "${ECHO_T}$ac_header_compiler" >&6; }
11644 # Is the header present?
11645 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
11646 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
11647 cat >conftest.$ac_ext <<_ACEOF
11648 /* confdefs.h. */
11649 _ACEOF
11650 cat confdefs.h >>conftest.$ac_ext
11651 cat >>conftest.$ac_ext <<_ACEOF
11652 /* end confdefs.h. */
11653 #include <$ac_header>
11654 _ACEOF
11655 if { (ac_try="$ac_cpp conftest.$ac_ext"
11656 case "(($ac_try" in
11657 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11658 *) ac_try_echo=$ac_try;;
11659 esac
11660 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11661 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
11662 ac_status=$?
11663 grep -v '^ *+' conftest.er1 >conftest.err
11664 rm -f conftest.er1
11665 cat conftest.err >&5
11666 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11667 (exit $ac_status); } >/dev/null && {
11668 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
11669 test ! -s conftest.err
11670 }; then
11671 ac_header_preproc=yes
11672 else
11673 echo "$as_me: failed program was:" >&5
11674 sed 's/^/| /' conftest.$ac_ext >&5
11676 ac_header_preproc=no
11679 rm -f conftest.err conftest.$ac_ext
11680 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
11681 echo "${ECHO_T}$ac_header_preproc" >&6; }
11683 # So? What about this header?
11684 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
11685 yes:no: )
11686 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
11687 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
11688 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
11689 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
11690 ac_header_preproc=yes
11692 no:yes:* )
11693 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
11694 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
11695 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
11696 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
11697 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
11698 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
11699 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
11700 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
11701 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
11702 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
11703 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
11704 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
11707 esac
11708 { echo "$as_me:$LINENO: checking for $ac_header" >&5
11709 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
11710 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11711 echo $ECHO_N "(cached) $ECHO_C" >&6
11712 else
11713 eval "$as_ac_Header=\$ac_header_preproc"
11715 ac_res=`eval echo '${'$as_ac_Header'}'`
11716 { echo "$as_me:$LINENO: result: $ac_res" >&5
11717 echo "${ECHO_T}$ac_res" >&6; }
11720 if test `eval echo '${'$as_ac_Header'}'` = yes; then
11721 cat >>confdefs.h <<_ACEOF
11722 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
11723 _ACEOF
11727 done
11729 if test "$ac_cv_header_pthread_h"; then
11730 { echo "$as_me:$LINENO: checking for pthread_self in -lpthread" >&5
11731 echo $ECHO_N "checking for pthread_self in -lpthread... $ECHO_C" >&6; }
11732 if test "${ac_cv_lib_pthread_pthread_self+set}" = set; then
11733 echo $ECHO_N "(cached) $ECHO_C" >&6
11734 else
11735 ac_check_lib_save_LIBS=$LIBS
11736 LIBS="-lpthread $LIBS"
11737 cat >conftest.$ac_ext <<_ACEOF
11738 /* confdefs.h. */
11739 _ACEOF
11740 cat confdefs.h >>conftest.$ac_ext
11741 cat >>conftest.$ac_ext <<_ACEOF
11742 /* end confdefs.h. */
11744 /* Override any GCC internal prototype to avoid an error.
11745 Use char because int might match the return type of a GCC
11746 builtin and then its argument prototype would still apply. */
11747 #ifdef __cplusplus
11748 extern "C"
11749 #endif
11750 char pthread_self ();
11752 main ()
11754 return pthread_self ();
11756 return 0;
11758 _ACEOF
11759 rm -f conftest.$ac_objext conftest$ac_exeext
11760 if { (ac_try="$ac_link"
11761 case "(($ac_try" in
11762 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11763 *) ac_try_echo=$ac_try;;
11764 esac
11765 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11766 (eval "$ac_link") 2>conftest.er1
11767 ac_status=$?
11768 grep -v '^ *+' conftest.er1 >conftest.err
11769 rm -f conftest.er1
11770 cat conftest.err >&5
11771 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11772 (exit $ac_status); } && {
11773 test -z "$ac_c_werror_flag" ||
11774 test ! -s conftest.err
11775 } && test -s conftest$ac_exeext &&
11776 $as_test_x conftest$ac_exeext; then
11777 ac_cv_lib_pthread_pthread_self=yes
11778 else
11779 echo "$as_me: failed program was:" >&5
11780 sed 's/^/| /' conftest.$ac_ext >&5
11782 ac_cv_lib_pthread_pthread_self=no
11785 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
11786 conftest$ac_exeext conftest.$ac_ext
11787 LIBS=$ac_check_lib_save_LIBS
11789 { echo "$as_me:$LINENO: result: $ac_cv_lib_pthread_pthread_self" >&5
11790 echo "${ECHO_T}$ac_cv_lib_pthread_pthread_self" >&6; }
11791 if test $ac_cv_lib_pthread_pthread_self = yes; then
11792 HAVE_GTK_AND_PTHREAD=yes
11796 if test "$HAVE_GTK_AND_PTHREAD" = yes; then
11797 case "${canonical}" in
11798 *-hpux*) ;;
11799 *) GTK_LIBS="$GTK_LIBS -lpthread" ;;
11800 esac
11802 cat >>confdefs.h <<\_ACEOF
11803 #define HAVE_GTK_AND_PTHREAD 1
11804 _ACEOF
11810 HAVE_DBUS=no
11811 if test "${with_dbus}" = "yes"; then
11813 succeeded=no
11815 # Extract the first word of "pkg-config", so it can be a program name with args.
11816 set dummy pkg-config; ac_word=$2
11817 { echo "$as_me:$LINENO: checking for $ac_word" >&5
11818 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
11819 if test "${ac_cv_path_PKG_CONFIG+set}" = set; then
11820 echo $ECHO_N "(cached) $ECHO_C" >&6
11821 else
11822 case $PKG_CONFIG in
11823 [\\/]* | ?:[\\/]*)
11824 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
11827 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11828 for as_dir in $PATH
11830 IFS=$as_save_IFS
11831 test -z "$as_dir" && as_dir=.
11832 for ac_exec_ext in '' $ac_executable_extensions; do
11833 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11834 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
11835 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
11836 break 2
11838 done
11839 done
11840 IFS=$as_save_IFS
11842 test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG="no"
11844 esac
11846 PKG_CONFIG=$ac_cv_path_PKG_CONFIG
11847 if test -n "$PKG_CONFIG"; then
11848 { echo "$as_me:$LINENO: result: $PKG_CONFIG" >&5
11849 echo "${ECHO_T}$PKG_CONFIG" >&6; }
11850 else
11851 { echo "$as_me:$LINENO: result: no" >&5
11852 echo "${ECHO_T}no" >&6; }
11857 if test "$PKG_CONFIG" = "no" ; then
11858 HAVE_DBUS=no
11859 else
11860 PKG_CONFIG_MIN_VERSION=0.9.0
11861 if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
11862 { echo "$as_me:$LINENO: checking for dbus-1 >= 1.0" >&5
11863 echo $ECHO_N "checking for dbus-1 >= 1.0... $ECHO_C" >&6; }
11865 if $PKG_CONFIG --exists "dbus-1 >= 1.0" 2>&5; then
11866 { echo "$as_me:$LINENO: result: yes" >&5
11867 echo "${ECHO_T}yes" >&6; }
11868 succeeded=yes
11870 { echo "$as_me:$LINENO: checking DBUS_CFLAGS" >&5
11871 echo $ECHO_N "checking DBUS_CFLAGS... $ECHO_C" >&6; }
11872 DBUS_CFLAGS=`$PKG_CONFIG --cflags "dbus-1 >= 1.0"|sed -e 's,///*,/,g'`
11873 { echo "$as_me:$LINENO: result: $DBUS_CFLAGS" >&5
11874 echo "${ECHO_T}$DBUS_CFLAGS" >&6; }
11876 { echo "$as_me:$LINENO: checking DBUS_LIBS" >&5
11877 echo $ECHO_N "checking DBUS_LIBS... $ECHO_C" >&6; }
11878 DBUS_LIBS=`$PKG_CONFIG --libs "dbus-1 >= 1.0"|sed -e 's,///*,/,g'`
11879 { echo "$as_me:$LINENO: result: $DBUS_LIBS" >&5
11880 echo "${ECHO_T}$DBUS_LIBS" >&6; }
11881 else
11882 { echo "$as_me:$LINENO: result: no" >&5
11883 echo "${ECHO_T}no" >&6; }
11884 DBUS_CFLAGS=""
11885 DBUS_LIBS=""
11886 ## If we have a custom action on failure, don't print errors, but
11887 ## do set a variable so people can do so.
11888 DBUS_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "dbus-1 >= 1.0"`
11894 else
11895 echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
11896 echo "*** See http://www.freedesktop.org/software/pkgconfig"
11900 if test $succeeded = yes; then
11901 HAVE_DBUS=yes
11902 else
11903 HAVE_DBUS=no
11906 if test "$HAVE_DBUS" = yes; then
11908 cat >>confdefs.h <<\_ACEOF
11909 #define HAVE_DBUS 1
11910 _ACEOF
11915 HAVE_XAW3D=no
11916 if test x"${USE_X_TOOLKIT}" = xmaybe || test x"${USE_X_TOOLKIT}" = xLUCID; then
11917 if test "$with_xaw3d" != no; then
11918 { echo "$as_me:$LINENO: checking for xaw3d" >&5
11919 echo $ECHO_N "checking for xaw3d... $ECHO_C" >&6; }
11920 if test "${emacs_cv_xaw3d+set}" = set; then
11921 echo $ECHO_N "(cached) $ECHO_C" >&6
11922 else
11923 cat >conftest.$ac_ext <<_ACEOF
11924 /* confdefs.h. */
11925 _ACEOF
11926 cat confdefs.h >>conftest.$ac_ext
11927 cat >>conftest.$ac_ext <<_ACEOF
11928 /* end confdefs.h. */
11930 #include <X11/Intrinsic.h>
11931 #include <X11/Xaw3d/Simple.h>
11933 main ()
11937 return 0;
11939 _ACEOF
11940 rm -f conftest.$ac_objext conftest$ac_exeext
11941 if { (ac_try="$ac_link"
11942 case "(($ac_try" in
11943 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11944 *) ac_try_echo=$ac_try;;
11945 esac
11946 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11947 (eval "$ac_link") 2>conftest.er1
11948 ac_status=$?
11949 grep -v '^ *+' conftest.er1 >conftest.err
11950 rm -f conftest.er1
11951 cat conftest.err >&5
11952 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11953 (exit $ac_status); } && {
11954 test -z "$ac_c_werror_flag" ||
11955 test ! -s conftest.err
11956 } && test -s conftest$ac_exeext &&
11957 $as_test_x conftest$ac_exeext; then
11958 emacs_cv_xaw3d=yes
11959 else
11960 echo "$as_me: failed program was:" >&5
11961 sed 's/^/| /' conftest.$ac_ext >&5
11963 emacs_cv_xaw3d=no
11966 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
11967 conftest$ac_exeext conftest.$ac_ext
11970 else
11971 emacs_cv_xaw3d=no
11973 if test $emacs_cv_xaw3d = yes; then
11974 { echo "$as_me:$LINENO: result: yes; using Lucid toolkit" >&5
11975 echo "${ECHO_T}yes; using Lucid toolkit" >&6; }
11976 USE_X_TOOLKIT=LUCID
11977 HAVE_XAW3D=yes
11979 cat >>confdefs.h <<\_ACEOF
11980 #define HAVE_XAW3D 1
11981 _ACEOF
11983 else
11984 { echo "$as_me:$LINENO: result: no" >&5
11985 echo "${ECHO_T}no" >&6; }
11986 { echo "$as_me:$LINENO: checking for libXaw" >&5
11987 echo $ECHO_N "checking for libXaw... $ECHO_C" >&6; }
11988 if test "${emacs_cv_xaw+set}" = set; then
11989 echo $ECHO_N "(cached) $ECHO_C" >&6
11990 else
11991 cat >conftest.$ac_ext <<_ACEOF
11992 /* confdefs.h. */
11993 _ACEOF
11994 cat confdefs.h >>conftest.$ac_ext
11995 cat >>conftest.$ac_ext <<_ACEOF
11996 /* end confdefs.h. */
11998 #include <X11/Intrinsic.h>
11999 #include <X11/Xaw/Simple.h>
12001 main ()
12005 return 0;
12007 _ACEOF
12008 rm -f conftest.$ac_objext conftest$ac_exeext
12009 if { (ac_try="$ac_link"
12010 case "(($ac_try" in
12011 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12012 *) ac_try_echo=$ac_try;;
12013 esac
12014 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12015 (eval "$ac_link") 2>conftest.er1
12016 ac_status=$?
12017 grep -v '^ *+' conftest.er1 >conftest.err
12018 rm -f conftest.er1
12019 cat conftest.err >&5
12020 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12021 (exit $ac_status); } && {
12022 test -z "$ac_c_werror_flag" ||
12023 test ! -s conftest.err
12024 } && test -s conftest$ac_exeext &&
12025 $as_test_x conftest$ac_exeext; then
12026 emacs_cv_xaw=yes
12027 else
12028 echo "$as_me: failed program was:" >&5
12029 sed 's/^/| /' conftest.$ac_ext >&5
12031 emacs_cv_xaw=no
12034 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
12035 conftest$ac_exeext conftest.$ac_ext
12038 if test $emacs_cv_xaw = yes; then
12039 { echo "$as_me:$LINENO: result: yes; using Lucid toolkit" >&5
12040 echo "${ECHO_T}yes; using Lucid toolkit" >&6; }
12041 USE_X_TOOLKIT=LUCID
12042 elif test x"${USE_X_TOOLKIT}" = xLUCID; then
12043 { { echo "$as_me:$LINENO: error: Lucid toolkit requires X11/Xaw include files" >&5
12044 echo "$as_me: error: Lucid toolkit requires X11/Xaw include files" >&2;}
12045 { (exit 1); exit 1; }; }
12046 else
12047 { echo "$as_me:$LINENO: result: no; do not use toolkit by default" >&5
12048 echo "${ECHO_T}no; do not use toolkit by default" >&6; }
12049 USE_X_TOOLKIT=none
12054 X_TOOLKIT_TYPE=$USE_X_TOOLKIT
12056 if test "${USE_X_TOOLKIT}" != "none"; then
12057 { echo "$as_me:$LINENO: checking X11 toolkit version" >&5
12058 echo $ECHO_N "checking X11 toolkit version... $ECHO_C" >&6; }
12059 if test "${emacs_cv_x11_toolkit_version_6+set}" = set; then
12060 echo $ECHO_N "(cached) $ECHO_C" >&6
12061 else
12062 cat >conftest.$ac_ext <<_ACEOF
12063 /* confdefs.h. */
12064 _ACEOF
12065 cat confdefs.h >>conftest.$ac_ext
12066 cat >>conftest.$ac_ext <<_ACEOF
12067 /* end confdefs.h. */
12068 #include <X11/Intrinsic.h>
12070 main ()
12072 #if XtSpecificationRelease < 6
12073 fail;
12074 #endif
12077 return 0;
12079 _ACEOF
12080 rm -f conftest.$ac_objext conftest$ac_exeext
12081 if { (ac_try="$ac_link"
12082 case "(($ac_try" in
12083 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12084 *) ac_try_echo=$ac_try;;
12085 esac
12086 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12087 (eval "$ac_link") 2>conftest.er1
12088 ac_status=$?
12089 grep -v '^ *+' conftest.er1 >conftest.err
12090 rm -f conftest.er1
12091 cat conftest.err >&5
12092 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12093 (exit $ac_status); } && {
12094 test -z "$ac_c_werror_flag" ||
12095 test ! -s conftest.err
12096 } && test -s conftest$ac_exeext &&
12097 $as_test_x conftest$ac_exeext; then
12098 emacs_cv_x11_toolkit_version_6=yes
12099 else
12100 echo "$as_me: failed program was:" >&5
12101 sed 's/^/| /' conftest.$ac_ext >&5
12103 emacs_cv_x11_toolkit_version_6=no
12106 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
12107 conftest$ac_exeext conftest.$ac_ext
12110 HAVE_X11XTR6=$emacs_cv_x11_toolkit_version_6
12111 if test $emacs_cv_x11_toolkit_version_6 = yes; then
12112 { echo "$as_me:$LINENO: result: 6 or newer" >&5
12113 echo "${ECHO_T}6 or newer" >&6; }
12115 cat >>confdefs.h <<\_ACEOF
12116 #define HAVE_X11XTR6 1
12117 _ACEOF
12119 else
12120 { echo "$as_me:$LINENO: result: before 6" >&5
12121 echo "${ECHO_T}before 6" >&6; }
12124 OLDLIBS="$LIBS"
12125 if test x$HAVE_X11XTR6 = xyes; then
12126 LIBS="-lXt -lSM -lICE $LIBS"
12127 else
12128 LIBS="-lXt $LIBS"
12131 { echo "$as_me:$LINENO: checking for XmuConvertStandardSelection in -lXmu" >&5
12132 echo $ECHO_N "checking for XmuConvertStandardSelection in -lXmu... $ECHO_C" >&6; }
12133 if test "${ac_cv_lib_Xmu_XmuConvertStandardSelection+set}" = set; then
12134 echo $ECHO_N "(cached) $ECHO_C" >&6
12135 else
12136 ac_check_lib_save_LIBS=$LIBS
12137 LIBS="-lXmu $LIBS"
12138 cat >conftest.$ac_ext <<_ACEOF
12139 /* confdefs.h. */
12140 _ACEOF
12141 cat confdefs.h >>conftest.$ac_ext
12142 cat >>conftest.$ac_ext <<_ACEOF
12143 /* end confdefs.h. */
12145 /* Override any GCC internal prototype to avoid an error.
12146 Use char because int might match the return type of a GCC
12147 builtin and then its argument prototype would still apply. */
12148 #ifdef __cplusplus
12149 extern "C"
12150 #endif
12151 char XmuConvertStandardSelection ();
12153 main ()
12155 return XmuConvertStandardSelection ();
12157 return 0;
12159 _ACEOF
12160 rm -f conftest.$ac_objext conftest$ac_exeext
12161 if { (ac_try="$ac_link"
12162 case "(($ac_try" in
12163 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12164 *) ac_try_echo=$ac_try;;
12165 esac
12166 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12167 (eval "$ac_link") 2>conftest.er1
12168 ac_status=$?
12169 grep -v '^ *+' conftest.er1 >conftest.err
12170 rm -f conftest.er1
12171 cat conftest.err >&5
12172 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12173 (exit $ac_status); } && {
12174 test -z "$ac_c_werror_flag" ||
12175 test ! -s conftest.err
12176 } && test -s conftest$ac_exeext &&
12177 $as_test_x conftest$ac_exeext; then
12178 ac_cv_lib_Xmu_XmuConvertStandardSelection=yes
12179 else
12180 echo "$as_me: failed program was:" >&5
12181 sed 's/^/| /' conftest.$ac_ext >&5
12183 ac_cv_lib_Xmu_XmuConvertStandardSelection=no
12186 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
12187 conftest$ac_exeext conftest.$ac_ext
12188 LIBS=$ac_check_lib_save_LIBS
12190 { echo "$as_me:$LINENO: result: $ac_cv_lib_Xmu_XmuConvertStandardSelection" >&5
12191 echo "${ECHO_T}$ac_cv_lib_Xmu_XmuConvertStandardSelection" >&6; }
12192 if test $ac_cv_lib_Xmu_XmuConvertStandardSelection = yes; then
12193 cat >>confdefs.h <<_ACEOF
12194 #define HAVE_LIBXMU 1
12195 _ACEOF
12197 LIBS="-lXmu $LIBS"
12201 test $ac_cv_lib_Xmu_XmuConvertStandardSelection = no && LIBS="$OLDLIBS"
12204 # On Irix 6.5, at least, we need XShapeQueryExtension from -lXext for Xaw3D.
12205 if test "${HAVE_X11}" = "yes"; then
12206 if test "${USE_X_TOOLKIT}" != "none"; then
12208 { echo "$as_me:$LINENO: checking for XShapeQueryExtension in -lXext" >&5
12209 echo $ECHO_N "checking for XShapeQueryExtension in -lXext... $ECHO_C" >&6; }
12210 if test "${ac_cv_lib_Xext_XShapeQueryExtension+set}" = set; then
12211 echo $ECHO_N "(cached) $ECHO_C" >&6
12212 else
12213 ac_check_lib_save_LIBS=$LIBS
12214 LIBS="-lXext $LIBS"
12215 cat >conftest.$ac_ext <<_ACEOF
12216 /* confdefs.h. */
12217 _ACEOF
12218 cat confdefs.h >>conftest.$ac_ext
12219 cat >>conftest.$ac_ext <<_ACEOF
12220 /* end confdefs.h. */
12222 /* Override any GCC internal prototype to avoid an error.
12223 Use char because int might match the return type of a GCC
12224 builtin and then its argument prototype would still apply. */
12225 #ifdef __cplusplus
12226 extern "C"
12227 #endif
12228 char XShapeQueryExtension ();
12230 main ()
12232 return XShapeQueryExtension ();
12234 return 0;
12236 _ACEOF
12237 rm -f conftest.$ac_objext conftest$ac_exeext
12238 if { (ac_try="$ac_link"
12239 case "(($ac_try" in
12240 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12241 *) ac_try_echo=$ac_try;;
12242 esac
12243 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12244 (eval "$ac_link") 2>conftest.er1
12245 ac_status=$?
12246 grep -v '^ *+' conftest.er1 >conftest.err
12247 rm -f conftest.er1
12248 cat conftest.err >&5
12249 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12250 (exit $ac_status); } && {
12251 test -z "$ac_c_werror_flag" ||
12252 test ! -s conftest.err
12253 } && test -s conftest$ac_exeext &&
12254 $as_test_x conftest$ac_exeext; then
12255 ac_cv_lib_Xext_XShapeQueryExtension=yes
12256 else
12257 echo "$as_me: failed program was:" >&5
12258 sed 's/^/| /' conftest.$ac_ext >&5
12260 ac_cv_lib_Xext_XShapeQueryExtension=no
12263 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
12264 conftest$ac_exeext conftest.$ac_ext
12265 LIBS=$ac_check_lib_save_LIBS
12267 { echo "$as_me:$LINENO: result: $ac_cv_lib_Xext_XShapeQueryExtension" >&5
12268 echo "${ECHO_T}$ac_cv_lib_Xext_XShapeQueryExtension" >&6; }
12269 if test $ac_cv_lib_Xext_XShapeQueryExtension = yes; then
12270 cat >>confdefs.h <<_ACEOF
12271 #define HAVE_LIBXEXT 1
12272 _ACEOF
12274 LIBS="-lXext $LIBS"
12281 if test "${USE_X_TOOLKIT}" = "MOTIF"; then
12282 { echo "$as_me:$LINENO: checking for Motif version 2.1" >&5
12283 echo $ECHO_N "checking for Motif version 2.1... $ECHO_C" >&6; }
12284 if test "${emacs_cv_motif_version_2_1+set}" = set; then
12285 echo $ECHO_N "(cached) $ECHO_C" >&6
12286 else
12287 cat >conftest.$ac_ext <<_ACEOF
12288 /* confdefs.h. */
12289 _ACEOF
12290 cat confdefs.h >>conftest.$ac_ext
12291 cat >>conftest.$ac_ext <<_ACEOF
12292 /* end confdefs.h. */
12293 #include <Xm/Xm.h>
12295 main ()
12297 #if XmVERSION > 2 || (XmVERSION == 2 && XmREVISION >= 1)
12298 int x = 5;
12299 #else
12300 Motif version prior to 2.1.
12301 #endif
12303 return 0;
12305 _ACEOF
12306 rm -f conftest.$ac_objext
12307 if { (ac_try="$ac_compile"
12308 case "(($ac_try" in
12309 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12310 *) ac_try_echo=$ac_try;;
12311 esac
12312 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12313 (eval "$ac_compile") 2>conftest.er1
12314 ac_status=$?
12315 grep -v '^ *+' conftest.er1 >conftest.err
12316 rm -f conftest.er1
12317 cat conftest.err >&5
12318 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12319 (exit $ac_status); } && {
12320 test -z "$ac_c_werror_flag" ||
12321 test ! -s conftest.err
12322 } && test -s conftest.$ac_objext; then
12323 emacs_cv_motif_version_2_1=yes
12324 else
12325 echo "$as_me: failed program was:" >&5
12326 sed 's/^/| /' conftest.$ac_ext >&5
12328 emacs_cv_motif_version_2_1=no
12331 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12333 { echo "$as_me:$LINENO: result: $emacs_cv_motif_version_2_1" >&5
12334 echo "${ECHO_T}$emacs_cv_motif_version_2_1" >&6; }
12335 HAVE_MOTIF_2_1=$emacs_cv_motif_version_2_1
12336 if test $emacs_cv_motif_version_2_1 = yes; then
12337 HAVE_LIBXP=no
12339 cat >>confdefs.h <<\_ACEOF
12340 #define HAVE_MOTIF_2_1 1
12341 _ACEOF
12343 { echo "$as_me:$LINENO: checking for XpCreateContext in -lXp" >&5
12344 echo $ECHO_N "checking for XpCreateContext in -lXp... $ECHO_C" >&6; }
12345 if test "${ac_cv_lib_Xp_XpCreateContext+set}" = set; then
12346 echo $ECHO_N "(cached) $ECHO_C" >&6
12347 else
12348 ac_check_lib_save_LIBS=$LIBS
12349 LIBS="-lXp $LIBS"
12350 cat >conftest.$ac_ext <<_ACEOF
12351 /* confdefs.h. */
12352 _ACEOF
12353 cat confdefs.h >>conftest.$ac_ext
12354 cat >>conftest.$ac_ext <<_ACEOF
12355 /* end confdefs.h. */
12357 /* Override any GCC internal prototype to avoid an error.
12358 Use char because int might match the return type of a GCC
12359 builtin and then its argument prototype would still apply. */
12360 #ifdef __cplusplus
12361 extern "C"
12362 #endif
12363 char XpCreateContext ();
12365 main ()
12367 return XpCreateContext ();
12369 return 0;
12371 _ACEOF
12372 rm -f conftest.$ac_objext conftest$ac_exeext
12373 if { (ac_try="$ac_link"
12374 case "(($ac_try" in
12375 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12376 *) ac_try_echo=$ac_try;;
12377 esac
12378 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12379 (eval "$ac_link") 2>conftest.er1
12380 ac_status=$?
12381 grep -v '^ *+' conftest.er1 >conftest.err
12382 rm -f conftest.er1
12383 cat conftest.err >&5
12384 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12385 (exit $ac_status); } && {
12386 test -z "$ac_c_werror_flag" ||
12387 test ! -s conftest.err
12388 } && test -s conftest$ac_exeext &&
12389 $as_test_x conftest$ac_exeext; then
12390 ac_cv_lib_Xp_XpCreateContext=yes
12391 else
12392 echo "$as_me: failed program was:" >&5
12393 sed 's/^/| /' conftest.$ac_ext >&5
12395 ac_cv_lib_Xp_XpCreateContext=no
12398 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
12399 conftest$ac_exeext conftest.$ac_ext
12400 LIBS=$ac_check_lib_save_LIBS
12402 { echo "$as_me:$LINENO: result: $ac_cv_lib_Xp_XpCreateContext" >&5
12403 echo "${ECHO_T}$ac_cv_lib_Xp_XpCreateContext" >&6; }
12404 if test $ac_cv_lib_Xp_XpCreateContext = yes; then
12405 HAVE_LIBXP=yes
12408 if test ${HAVE_LIBXP} = yes; then
12410 cat >>confdefs.h <<\_ACEOF
12411 #define HAVE_LIBXP 1
12412 _ACEOF
12415 else
12416 { echo "$as_me:$LINENO: checking for LessTif where some systems put it" >&5
12417 echo $ECHO_N "checking for LessTif where some systems put it... $ECHO_C" >&6; }
12418 if test "${emacs_cv_lesstif+set}" = set; then
12419 echo $ECHO_N "(cached) $ECHO_C" >&6
12420 else
12421 # We put this in CFLAGS temporarily to precede other -I options
12422 # that might be in CFLAGS temporarily.
12423 # We put this in CPPFLAGS where it precedes the other -I options.
12424 OLD_CPPFLAGS=$CPPFLAGS
12425 OLD_CFLAGS=$CFLAGS
12426 CPPFLAGS="-I/usr/X11R6/LessTif/Motif1.2/include $CPPFLAGS"
12427 CFLAGS="-I/usr/X11R6/LessTif/Motif1.2/include $CFLAGS"
12428 cat >conftest.$ac_ext <<_ACEOF
12429 /* confdefs.h. */
12430 _ACEOF
12431 cat confdefs.h >>conftest.$ac_ext
12432 cat >>conftest.$ac_ext <<_ACEOF
12433 /* end confdefs.h. */
12434 #include </usr/X11R6/LessTif/Motif1.2/include/Xm/Xm.h>
12436 main ()
12438 int x = 5;
12440 return 0;
12442 _ACEOF
12443 rm -f conftest.$ac_objext
12444 if { (ac_try="$ac_compile"
12445 case "(($ac_try" in
12446 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12447 *) ac_try_echo=$ac_try;;
12448 esac
12449 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12450 (eval "$ac_compile") 2>conftest.er1
12451 ac_status=$?
12452 grep -v '^ *+' conftest.er1 >conftest.err
12453 rm -f conftest.er1
12454 cat conftest.err >&5
12455 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12456 (exit $ac_status); } && {
12457 test -z "$ac_c_werror_flag" ||
12458 test ! -s conftest.err
12459 } && test -s conftest.$ac_objext; then
12460 emacs_cv_lesstif=yes
12461 else
12462 echo "$as_me: failed program was:" >&5
12463 sed 's/^/| /' conftest.$ac_ext >&5
12465 emacs_cv_lesstif=no
12468 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12470 { echo "$as_me:$LINENO: result: $emacs_cv_lesstif" >&5
12471 echo "${ECHO_T}$emacs_cv_lesstif" >&6; }
12472 if test $emacs_cv_lesstif = yes; then
12473 # Make sure this -I option remains in CPPFLAGS after it is set
12474 # back to REAL_CPPFLAGS.
12475 # There is no need to change REAL_CFLAGS, because REAL_CFLAGS does not
12476 # have those other -I options anyway. Ultimately, having this
12477 # directory ultimately in CPPFLAGS will be enough.
12478 REAL_CPPFLAGS="-I/usr/X11R6/LessTif/Motif1.2/include $REAL_CPPFLAGS"
12479 LDFLAGS="-L/usr/X11R6/LessTif/Motif1.2/lib $LDFLAGS"
12480 else
12481 CFLAGS=$OLD_CFLAGS
12482 CPPFLAGS=$OLD_CPPFLAGS
12489 USE_TOOLKIT_SCROLL_BARS=no
12490 if test "${with_toolkit_scroll_bars}" != "no"; then
12491 if test "${USE_X_TOOLKIT}" != "none"; then
12492 if test "${USE_X_TOOLKIT}" = "MOTIF"; then
12493 cat >>confdefs.h <<\_ACEOF
12494 #define USE_TOOLKIT_SCROLL_BARS 1
12495 _ACEOF
12497 HAVE_XAW3D=no
12498 USE_TOOLKIT_SCROLL_BARS=yes
12499 elif test "${HAVE_XAW3D}" = "yes"; then
12500 cat >>confdefs.h <<\_ACEOF
12501 #define USE_TOOLKIT_SCROLL_BARS 1
12502 _ACEOF
12504 USE_TOOLKIT_SCROLL_BARS=yes
12506 elif test "${HAVE_GTK}" = "yes"; then
12507 cat >>confdefs.h <<\_ACEOF
12508 #define USE_TOOLKIT_SCROLL_BARS 1
12509 _ACEOF
12511 USE_TOOLKIT_SCROLL_BARS=yes
12512 elif test "${HAVE_CARBON}" = "yes"; then
12513 cat >>confdefs.h <<\_ACEOF
12514 #define USE_TOOLKIT_SCROLL_BARS 1
12515 _ACEOF
12517 USE_TOOLKIT_SCROLL_BARS=yes
12518 elif test "${HAVE_NS}" = "yes"; then
12519 cat >>confdefs.h <<\_ACEOF
12520 #define USE_TOOLKIT_SCROLL_BARS 1
12521 _ACEOF
12523 USE_TOOLKIT_SCROLL_BARS=yes
12527 cat >conftest.$ac_ext <<_ACEOF
12528 /* confdefs.h. */
12529 _ACEOF
12530 cat confdefs.h >>conftest.$ac_ext
12531 cat >>conftest.$ac_ext <<_ACEOF
12532 /* end confdefs.h. */
12534 #include <X11/Xlib.h>
12535 #include <X11/Xresource.h>
12537 main ()
12539 XIMProc callback;
12541 return 0;
12543 _ACEOF
12544 rm -f conftest.$ac_objext
12545 if { (ac_try="$ac_compile"
12546 case "(($ac_try" in
12547 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12548 *) ac_try_echo=$ac_try;;
12549 esac
12550 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12551 (eval "$ac_compile") 2>conftest.er1
12552 ac_status=$?
12553 grep -v '^ *+' conftest.er1 >conftest.err
12554 rm -f conftest.er1
12555 cat conftest.err >&5
12556 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12557 (exit $ac_status); } && {
12558 test -z "$ac_c_werror_flag" ||
12559 test ! -s conftest.err
12560 } && test -s conftest.$ac_objext; then
12561 HAVE_XIM=yes
12563 cat >>confdefs.h <<\_ACEOF
12564 #define HAVE_XIM 1
12565 _ACEOF
12567 else
12568 echo "$as_me: failed program was:" >&5
12569 sed 's/^/| /' conftest.$ac_ext >&5
12571 HAVE_XIM=no
12574 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12577 if test "${with_xim}" != "no"; then
12579 cat >>confdefs.h <<\_ACEOF
12580 #define USE_XIM 1
12581 _ACEOF
12586 if test "${HAVE_XIM}" != "no"; then
12587 late_CFLAGS=$CFLAGS
12588 if test "$GCC" = yes; then
12589 CFLAGS="$CFLAGS --pedantic-errors"
12591 cat >conftest.$ac_ext <<_ACEOF
12592 /* confdefs.h. */
12593 _ACEOF
12594 cat confdefs.h >>conftest.$ac_ext
12595 cat >>conftest.$ac_ext <<_ACEOF
12596 /* end confdefs.h. */
12598 #include <X11/Xlib.h>
12599 #include <X11/Xresource.h>
12601 main ()
12603 Display *display;
12604 XrmDatabase db;
12605 char *res_name;
12606 char *res_class;
12607 XIMProc callback;
12608 XPointer *client_data;
12609 #ifndef __GNUC__
12610 /* If we're not using GCC, it's probably not XFree86, and this is
12611 probably right, but we can't use something like --pedantic-errors. */
12612 extern Bool XRegisterIMInstantiateCallback(Display*, XrmDatabase, char*,
12613 char*, XIMProc, XPointer*);
12614 #endif
12615 (void)XRegisterIMInstantiateCallback(display, db, res_name, res_class, callback,
12616 client_data);
12618 return 0;
12620 _ACEOF
12621 rm -f conftest.$ac_objext
12622 if { (ac_try="$ac_compile"
12623 case "(($ac_try" in
12624 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12625 *) ac_try_echo=$ac_try;;
12626 esac
12627 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12628 (eval "$ac_compile") 2>conftest.er1
12629 ac_status=$?
12630 grep -v '^ *+' conftest.er1 >conftest.err
12631 rm -f conftest.er1
12632 cat conftest.err >&5
12633 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12634 (exit $ac_status); } && {
12635 test -z "$ac_c_werror_flag" ||
12636 test ! -s conftest.err
12637 } && test -s conftest.$ac_objext; then
12638 emacs_cv_arg6_star=yes
12639 else
12640 echo "$as_me: failed program was:" >&5
12641 sed 's/^/| /' conftest.$ac_ext >&5
12646 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12648 if test "$emacs_cv_arg6_star" = yes; then
12649 cat >>confdefs.h <<\_ACEOF
12650 #define XRegisterIMInstantiateCallback_arg6 XPointer*
12651 _ACEOF
12653 else
12654 cat >>confdefs.h <<\_ACEOF
12655 #define XRegisterIMInstantiateCallback_arg6 XPointer
12656 _ACEOF
12659 CFLAGS=$late_CFLAGS
12662 ### Start of font-backend section.
12664 ## Use -lXft if available, unless `--with-freetype=no' nor `--with-xft=no'.
12665 HAVE_XFT=maybe
12666 if test "x${with_freetype}" = "xno"; then
12667 with_xft="no";
12669 if test "x${with_xft}" != "xno"; then
12672 succeeded=no
12674 # Extract the first word of "pkg-config", so it can be a program name with args.
12675 set dummy pkg-config; ac_word=$2
12676 { echo "$as_me:$LINENO: checking for $ac_word" >&5
12677 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
12678 if test "${ac_cv_path_PKG_CONFIG+set}" = set; then
12679 echo $ECHO_N "(cached) $ECHO_C" >&6
12680 else
12681 case $PKG_CONFIG in
12682 [\\/]* | ?:[\\/]*)
12683 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
12686 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12687 for as_dir in $PATH
12689 IFS=$as_save_IFS
12690 test -z "$as_dir" && as_dir=.
12691 for ac_exec_ext in '' $ac_executable_extensions; do
12692 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
12693 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
12694 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
12695 break 2
12697 done
12698 done
12699 IFS=$as_save_IFS
12701 test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG="no"
12703 esac
12705 PKG_CONFIG=$ac_cv_path_PKG_CONFIG
12706 if test -n "$PKG_CONFIG"; then
12707 { echo "$as_me:$LINENO: result: $PKG_CONFIG" >&5
12708 echo "${ECHO_T}$PKG_CONFIG" >&6; }
12709 else
12710 { echo "$as_me:$LINENO: result: no" >&5
12711 echo "${ECHO_T}no" >&6; }
12716 if test "$PKG_CONFIG" = "no" ; then
12717 HAVE_XFT=no
12718 else
12719 PKG_CONFIG_MIN_VERSION=0.9.0
12720 if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
12721 { echo "$as_me:$LINENO: checking for xft >= 0.13.0" >&5
12722 echo $ECHO_N "checking for xft >= 0.13.0... $ECHO_C" >&6; }
12724 if $PKG_CONFIG --exists "xft >= 0.13.0" 2>&5; then
12725 { echo "$as_me:$LINENO: result: yes" >&5
12726 echo "${ECHO_T}yes" >&6; }
12727 succeeded=yes
12729 { echo "$as_me:$LINENO: checking XFT_CFLAGS" >&5
12730 echo $ECHO_N "checking XFT_CFLAGS... $ECHO_C" >&6; }
12731 XFT_CFLAGS=`$PKG_CONFIG --cflags "xft >= 0.13.0"|sed -e 's,///*,/,g'`
12732 { echo "$as_me:$LINENO: result: $XFT_CFLAGS" >&5
12733 echo "${ECHO_T}$XFT_CFLAGS" >&6; }
12735 { echo "$as_me:$LINENO: checking XFT_LIBS" >&5
12736 echo $ECHO_N "checking XFT_LIBS... $ECHO_C" >&6; }
12737 XFT_LIBS=`$PKG_CONFIG --libs "xft >= 0.13.0"|sed -e 's,///*,/,g'`
12738 { echo "$as_me:$LINENO: result: $XFT_LIBS" >&5
12739 echo "${ECHO_T}$XFT_LIBS" >&6; }
12740 else
12741 { echo "$as_me:$LINENO: result: no" >&5
12742 echo "${ECHO_T}no" >&6; }
12743 XFT_CFLAGS=""
12744 XFT_LIBS=""
12745 ## If we have a custom action on failure, don't print errors, but
12746 ## do set a variable so people can do so.
12747 XFT_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "xft >= 0.13.0"`
12753 else
12754 echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
12755 echo "*** See http://www.freedesktop.org/software/pkgconfig"
12759 if test $succeeded = yes; then
12761 else
12762 HAVE_XFT=no
12765 if test "$HAVE_XFT" != no; then
12766 OLD_CPPFLAGS="$CPPFLAGS"
12767 OLD_CFLAGS="$CFLAGS"
12768 OLD_LIBS="$LIBS"
12769 CPPFLAGS="$CPPFLAGS $XFT_CFLAGS"
12770 CFLAGS="$CFLAGS $XFT_CFLAGS"
12771 LIBS="$XFT_LIBS $LIBS"
12772 if test "${ac_cv_header_X11_Xft_Xft_h+set}" = set; then
12773 { echo "$as_me:$LINENO: checking for X11/Xft/Xft.h" >&5
12774 echo $ECHO_N "checking for X11/Xft/Xft.h... $ECHO_C" >&6; }
12775 if test "${ac_cv_header_X11_Xft_Xft_h+set}" = set; then
12776 echo $ECHO_N "(cached) $ECHO_C" >&6
12778 { echo "$as_me:$LINENO: result: $ac_cv_header_X11_Xft_Xft_h" >&5
12779 echo "${ECHO_T}$ac_cv_header_X11_Xft_Xft_h" >&6; }
12780 else
12781 # Is the header compilable?
12782 { echo "$as_me:$LINENO: checking X11/Xft/Xft.h usability" >&5
12783 echo $ECHO_N "checking X11/Xft/Xft.h usability... $ECHO_C" >&6; }
12784 cat >conftest.$ac_ext <<_ACEOF
12785 /* confdefs.h. */
12786 _ACEOF
12787 cat confdefs.h >>conftest.$ac_ext
12788 cat >>conftest.$ac_ext <<_ACEOF
12789 /* end confdefs.h. */
12790 $ac_includes_default
12791 #include <X11/Xft/Xft.h>
12792 _ACEOF
12793 rm -f conftest.$ac_objext
12794 if { (ac_try="$ac_compile"
12795 case "(($ac_try" in
12796 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12797 *) ac_try_echo=$ac_try;;
12798 esac
12799 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12800 (eval "$ac_compile") 2>conftest.er1
12801 ac_status=$?
12802 grep -v '^ *+' conftest.er1 >conftest.err
12803 rm -f conftest.er1
12804 cat conftest.err >&5
12805 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12806 (exit $ac_status); } && {
12807 test -z "$ac_c_werror_flag" ||
12808 test ! -s conftest.err
12809 } && test -s conftest.$ac_objext; then
12810 ac_header_compiler=yes
12811 else
12812 echo "$as_me: failed program was:" >&5
12813 sed 's/^/| /' conftest.$ac_ext >&5
12815 ac_header_compiler=no
12818 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12819 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
12820 echo "${ECHO_T}$ac_header_compiler" >&6; }
12822 # Is the header present?
12823 { echo "$as_me:$LINENO: checking X11/Xft/Xft.h presence" >&5
12824 echo $ECHO_N "checking X11/Xft/Xft.h presence... $ECHO_C" >&6; }
12825 cat >conftest.$ac_ext <<_ACEOF
12826 /* confdefs.h. */
12827 _ACEOF
12828 cat confdefs.h >>conftest.$ac_ext
12829 cat >>conftest.$ac_ext <<_ACEOF
12830 /* end confdefs.h. */
12831 #include <X11/Xft/Xft.h>
12832 _ACEOF
12833 if { (ac_try="$ac_cpp conftest.$ac_ext"
12834 case "(($ac_try" in
12835 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12836 *) ac_try_echo=$ac_try;;
12837 esac
12838 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12839 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
12840 ac_status=$?
12841 grep -v '^ *+' conftest.er1 >conftest.err
12842 rm -f conftest.er1
12843 cat conftest.err >&5
12844 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12845 (exit $ac_status); } >/dev/null && {
12846 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
12847 test ! -s conftest.err
12848 }; then
12849 ac_header_preproc=yes
12850 else
12851 echo "$as_me: failed program was:" >&5
12852 sed 's/^/| /' conftest.$ac_ext >&5
12854 ac_header_preproc=no
12857 rm -f conftest.err conftest.$ac_ext
12858 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
12859 echo "${ECHO_T}$ac_header_preproc" >&6; }
12861 # So? What about this header?
12862 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
12863 yes:no: )
12864 { echo "$as_me:$LINENO: WARNING: X11/Xft/Xft.h: accepted by the compiler, rejected by the preprocessor!" >&5
12865 echo "$as_me: WARNING: X11/Xft/Xft.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
12866 { echo "$as_me:$LINENO: WARNING: X11/Xft/Xft.h: proceeding with the compiler's result" >&5
12867 echo "$as_me: WARNING: X11/Xft/Xft.h: proceeding with the compiler's result" >&2;}
12868 ac_header_preproc=yes
12870 no:yes:* )
12871 { echo "$as_me:$LINENO: WARNING: X11/Xft/Xft.h: present but cannot be compiled" >&5
12872 echo "$as_me: WARNING: X11/Xft/Xft.h: present but cannot be compiled" >&2;}
12873 { echo "$as_me:$LINENO: WARNING: X11/Xft/Xft.h: check for missing prerequisite headers?" >&5
12874 echo "$as_me: WARNING: X11/Xft/Xft.h: check for missing prerequisite headers?" >&2;}
12875 { echo "$as_me:$LINENO: WARNING: X11/Xft/Xft.h: see the Autoconf documentation" >&5
12876 echo "$as_me: WARNING: X11/Xft/Xft.h: see the Autoconf documentation" >&2;}
12877 { echo "$as_me:$LINENO: WARNING: X11/Xft/Xft.h: section \"Present But Cannot Be Compiled\"" >&5
12878 echo "$as_me: WARNING: X11/Xft/Xft.h: section \"Present But Cannot Be Compiled\"" >&2;}
12879 { echo "$as_me:$LINENO: WARNING: X11/Xft/Xft.h: proceeding with the preprocessor's result" >&5
12880 echo "$as_me: WARNING: X11/Xft/Xft.h: proceeding with the preprocessor's result" >&2;}
12881 { echo "$as_me:$LINENO: WARNING: X11/Xft/Xft.h: in the future, the compiler will take precedence" >&5
12882 echo "$as_me: WARNING: X11/Xft/Xft.h: in the future, the compiler will take precedence" >&2;}
12885 esac
12886 { echo "$as_me:$LINENO: checking for X11/Xft/Xft.h" >&5
12887 echo $ECHO_N "checking for X11/Xft/Xft.h... $ECHO_C" >&6; }
12888 if test "${ac_cv_header_X11_Xft_Xft_h+set}" = set; then
12889 echo $ECHO_N "(cached) $ECHO_C" >&6
12890 else
12891 ac_cv_header_X11_Xft_Xft_h=$ac_header_preproc
12893 { echo "$as_me:$LINENO: result: $ac_cv_header_X11_Xft_Xft_h" >&5
12894 echo "${ECHO_T}$ac_cv_header_X11_Xft_Xft_h" >&6; }
12897 if test $ac_cv_header_X11_Xft_Xft_h = yes; then
12898 { echo "$as_me:$LINENO: checking for XftFontOpen in -lXft" >&5
12899 echo $ECHO_N "checking for XftFontOpen in -lXft... $ECHO_C" >&6; }
12900 if test "${ac_cv_lib_Xft_XftFontOpen+set}" = set; then
12901 echo $ECHO_N "(cached) $ECHO_C" >&6
12902 else
12903 ac_check_lib_save_LIBS=$LIBS
12904 LIBS="-lXft $XFT_LIBS $LIBS"
12905 cat >conftest.$ac_ext <<_ACEOF
12906 /* confdefs.h. */
12907 _ACEOF
12908 cat confdefs.h >>conftest.$ac_ext
12909 cat >>conftest.$ac_ext <<_ACEOF
12910 /* end confdefs.h. */
12912 /* Override any GCC internal prototype to avoid an error.
12913 Use char because int might match the return type of a GCC
12914 builtin and then its argument prototype would still apply. */
12915 #ifdef __cplusplus
12916 extern "C"
12917 #endif
12918 char XftFontOpen ();
12920 main ()
12922 return XftFontOpen ();
12924 return 0;
12926 _ACEOF
12927 rm -f conftest.$ac_objext conftest$ac_exeext
12928 if { (ac_try="$ac_link"
12929 case "(($ac_try" in
12930 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12931 *) ac_try_echo=$ac_try;;
12932 esac
12933 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12934 (eval "$ac_link") 2>conftest.er1
12935 ac_status=$?
12936 grep -v '^ *+' conftest.er1 >conftest.err
12937 rm -f conftest.er1
12938 cat conftest.err >&5
12939 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12940 (exit $ac_status); } && {
12941 test -z "$ac_c_werror_flag" ||
12942 test ! -s conftest.err
12943 } && test -s conftest$ac_exeext &&
12944 $as_test_x conftest$ac_exeext; then
12945 ac_cv_lib_Xft_XftFontOpen=yes
12946 else
12947 echo "$as_me: failed program was:" >&5
12948 sed 's/^/| /' conftest.$ac_ext >&5
12950 ac_cv_lib_Xft_XftFontOpen=no
12953 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
12954 conftest$ac_exeext conftest.$ac_ext
12955 LIBS=$ac_check_lib_save_LIBS
12957 { echo "$as_me:$LINENO: result: $ac_cv_lib_Xft_XftFontOpen" >&5
12958 echo "${ECHO_T}$ac_cv_lib_Xft_XftFontOpen" >&6; }
12959 if test $ac_cv_lib_Xft_XftFontOpen = yes; then
12960 HAVE_XFT=yes
12967 if test "${HAVE_XFT}" = "yes"; then
12969 cat >>confdefs.h <<\_ACEOF
12970 #define HAVE_XFT 1
12971 _ACEOF
12974 C_SWITCH_X_SITE="$C_SWITCH_X_SITE $XFT_CFLAGS"
12975 else
12976 CPPFLAGS="$OLD_CPPFLAGS"
12977 CFLAGS="$OLD_CFLAGS"
12978 LIBS="$OLD_LIBS"
12979 fi # "${HAVE_XFT}" = "yes"
12980 fi # "$HAVE_XFT" != no
12981 fi # "x${with_xft}" != "xno"
12983 if test "$HAVE_XFT" != "yes"; then
12984 HAVE_XFT=no
12988 HAVE_FREETYPE=no
12989 ### Use -lfreetype if available, unless `--with-freetype=no'.
12990 if test "${HAVE_XFT}" = "yes"; then
12991 HAVE_FREETYPE=yes
12992 elif test "x${with_freetype}" != "xno"; then
12995 succeeded=no
12997 # Extract the first word of "pkg-config", so it can be a program name with args.
12998 set dummy pkg-config; ac_word=$2
12999 { echo "$as_me:$LINENO: checking for $ac_word" >&5
13000 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
13001 if test "${ac_cv_path_PKG_CONFIG+set}" = set; then
13002 echo $ECHO_N "(cached) $ECHO_C" >&6
13003 else
13004 case $PKG_CONFIG in
13005 [\\/]* | ?:[\\/]*)
13006 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
13009 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13010 for as_dir in $PATH
13012 IFS=$as_save_IFS
13013 test -z "$as_dir" && as_dir=.
13014 for ac_exec_ext in '' $ac_executable_extensions; do
13015 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
13016 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
13017 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
13018 break 2
13020 done
13021 done
13022 IFS=$as_save_IFS
13024 test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG="no"
13026 esac
13028 PKG_CONFIG=$ac_cv_path_PKG_CONFIG
13029 if test -n "$PKG_CONFIG"; then
13030 { echo "$as_me:$LINENO: result: $PKG_CONFIG" >&5
13031 echo "${ECHO_T}$PKG_CONFIG" >&6; }
13032 else
13033 { echo "$as_me:$LINENO: result: no" >&5
13034 echo "${ECHO_T}no" >&6; }
13039 if test "$PKG_CONFIG" = "no" ; then
13040 HAVE_FREETYPE=no
13041 else
13042 PKG_CONFIG_MIN_VERSION=0.9.0
13043 if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
13044 { echo "$as_me:$LINENO: checking for freetype2" >&5
13045 echo $ECHO_N "checking for freetype2... $ECHO_C" >&6; }
13047 if $PKG_CONFIG --exists "freetype2" 2>&5; then
13048 { echo "$as_me:$LINENO: result: yes" >&5
13049 echo "${ECHO_T}yes" >&6; }
13050 succeeded=yes
13052 { echo "$as_me:$LINENO: checking FREETYPE_CFLAGS" >&5
13053 echo $ECHO_N "checking FREETYPE_CFLAGS... $ECHO_C" >&6; }
13054 FREETYPE_CFLAGS=`$PKG_CONFIG --cflags "freetype2"|sed -e 's,///*,/,g'`
13055 { echo "$as_me:$LINENO: result: $FREETYPE_CFLAGS" >&5
13056 echo "${ECHO_T}$FREETYPE_CFLAGS" >&6; }
13058 { echo "$as_me:$LINENO: checking FREETYPE_LIBS" >&5
13059 echo $ECHO_N "checking FREETYPE_LIBS... $ECHO_C" >&6; }
13060 FREETYPE_LIBS=`$PKG_CONFIG --libs "freetype2"|sed -e 's,///*,/,g'`
13061 { echo "$as_me:$LINENO: result: $FREETYPE_LIBS" >&5
13062 echo "${ECHO_T}$FREETYPE_LIBS" >&6; }
13063 else
13064 { echo "$as_me:$LINENO: result: no" >&5
13065 echo "${ECHO_T}no" >&6; }
13066 FREETYPE_CFLAGS=""
13067 FREETYPE_LIBS=""
13068 ## If we have a custom action on failure, don't print errors, but
13069 ## do set a variable so people can do so.
13070 FREETYPE_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "freetype2"`
13076 else
13077 echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
13078 echo "*** See http://www.freedesktop.org/software/pkgconfig"
13082 if test $succeeded = yes; then
13083 HAVE_FREETYPE=yes
13084 else
13085 HAVE_FREETYPE=no
13088 if test "${HAVE_FREETYPE}" = "yes"; then
13090 succeeded=no
13092 # Extract the first word of "pkg-config", so it can be a program name with args.
13093 set dummy pkg-config; ac_word=$2
13094 { echo "$as_me:$LINENO: checking for $ac_word" >&5
13095 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
13096 if test "${ac_cv_path_PKG_CONFIG+set}" = set; then
13097 echo $ECHO_N "(cached) $ECHO_C" >&6
13098 else
13099 case $PKG_CONFIG in
13100 [\\/]* | ?:[\\/]*)
13101 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
13104 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13105 for as_dir in $PATH
13107 IFS=$as_save_IFS
13108 test -z "$as_dir" && as_dir=.
13109 for ac_exec_ext in '' $ac_executable_extensions; do
13110 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
13111 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
13112 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
13113 break 2
13115 done
13116 done
13117 IFS=$as_save_IFS
13119 test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG="no"
13121 esac
13123 PKG_CONFIG=$ac_cv_path_PKG_CONFIG
13124 if test -n "$PKG_CONFIG"; then
13125 { echo "$as_me:$LINENO: result: $PKG_CONFIG" >&5
13126 echo "${ECHO_T}$PKG_CONFIG" >&6; }
13127 else
13128 { echo "$as_me:$LINENO: result: no" >&5
13129 echo "${ECHO_T}no" >&6; }
13134 if test "$PKG_CONFIG" = "no" ; then
13135 HAVE_FC=no
13136 else
13137 PKG_CONFIG_MIN_VERSION=0.9.0
13138 if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
13139 { echo "$as_me:$LINENO: checking for fontconfig" >&5
13140 echo $ECHO_N "checking for fontconfig... $ECHO_C" >&6; }
13142 if $PKG_CONFIG --exists "fontconfig" 2>&5; then
13143 { echo "$as_me:$LINENO: result: yes" >&5
13144 echo "${ECHO_T}yes" >&6; }
13145 succeeded=yes
13147 { echo "$as_me:$LINENO: checking FONTCONFIG_CFLAGS" >&5
13148 echo $ECHO_N "checking FONTCONFIG_CFLAGS... $ECHO_C" >&6; }
13149 FONTCONFIG_CFLAGS=`$PKG_CONFIG --cflags "fontconfig"|sed -e 's,///*,/,g'`
13150 { echo "$as_me:$LINENO: result: $FONTCONFIG_CFLAGS" >&5
13151 echo "${ECHO_T}$FONTCONFIG_CFLAGS" >&6; }
13153 { echo "$as_me:$LINENO: checking FONTCONFIG_LIBS" >&5
13154 echo $ECHO_N "checking FONTCONFIG_LIBS... $ECHO_C" >&6; }
13155 FONTCONFIG_LIBS=`$PKG_CONFIG --libs "fontconfig"|sed -e 's,///*,/,g'`
13156 { echo "$as_me:$LINENO: result: $FONTCONFIG_LIBS" >&5
13157 echo "${ECHO_T}$FONTCONFIG_LIBS" >&6; }
13158 else
13159 { echo "$as_me:$LINENO: result: no" >&5
13160 echo "${ECHO_T}no" >&6; }
13161 FONTCONFIG_CFLAGS=""
13162 FONTCONFIG_LIBS=""
13163 ## If we have a custom action on failure, don't print errors, but
13164 ## do set a variable so people can do so.
13165 FONTCONFIG_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "fontconfig"`
13171 else
13172 echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
13173 echo "*** See http://www.freedesktop.org/software/pkgconfig"
13177 if test $succeeded = yes; then
13178 HAVE_FC=yes
13179 else
13180 HAVE_FC=no
13183 if test "${HAVE_FC}" = "no"; then
13184 HAVE_FREETYPE=no
13189 HAVE_LIBOTF=no
13190 if test "${HAVE_FREETYPE}" = "yes"; then
13192 cat >>confdefs.h <<\_ACEOF
13193 #define HAVE_FREETYPE 1
13194 _ACEOF
13196 if test "${with_libotf}" != "no"; then
13198 succeeded=no
13200 # Extract the first word of "pkg-config", so it can be a program name with args.
13201 set dummy pkg-config; ac_word=$2
13202 { echo "$as_me:$LINENO: checking for $ac_word" >&5
13203 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
13204 if test "${ac_cv_path_PKG_CONFIG+set}" = set; then
13205 echo $ECHO_N "(cached) $ECHO_C" >&6
13206 else
13207 case $PKG_CONFIG in
13208 [\\/]* | ?:[\\/]*)
13209 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
13212 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13213 for as_dir in $PATH
13215 IFS=$as_save_IFS
13216 test -z "$as_dir" && as_dir=.
13217 for ac_exec_ext in '' $ac_executable_extensions; do
13218 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
13219 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
13220 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
13221 break 2
13223 done
13224 done
13225 IFS=$as_save_IFS
13227 test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG="no"
13229 esac
13231 PKG_CONFIG=$ac_cv_path_PKG_CONFIG
13232 if test -n "$PKG_CONFIG"; then
13233 { echo "$as_me:$LINENO: result: $PKG_CONFIG" >&5
13234 echo "${ECHO_T}$PKG_CONFIG" >&6; }
13235 else
13236 { echo "$as_me:$LINENO: result: no" >&5
13237 echo "${ECHO_T}no" >&6; }
13242 if test "$PKG_CONFIG" = "no" ; then
13243 HAVE_LIBOTF=no
13244 else
13245 PKG_CONFIG_MIN_VERSION=0.9.0
13246 if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
13247 { echo "$as_me:$LINENO: checking for libotf" >&5
13248 echo $ECHO_N "checking for libotf... $ECHO_C" >&6; }
13250 if $PKG_CONFIG --exists "libotf" 2>&5; then
13251 { echo "$as_me:$LINENO: result: yes" >&5
13252 echo "${ECHO_T}yes" >&6; }
13253 succeeded=yes
13255 { echo "$as_me:$LINENO: checking LIBOTF_CFLAGS" >&5
13256 echo $ECHO_N "checking LIBOTF_CFLAGS... $ECHO_C" >&6; }
13257 LIBOTF_CFLAGS=`$PKG_CONFIG --cflags "libotf"|sed -e 's,///*,/,g'`
13258 { echo "$as_me:$LINENO: result: $LIBOTF_CFLAGS" >&5
13259 echo "${ECHO_T}$LIBOTF_CFLAGS" >&6; }
13261 { echo "$as_me:$LINENO: checking LIBOTF_LIBS" >&5
13262 echo $ECHO_N "checking LIBOTF_LIBS... $ECHO_C" >&6; }
13263 LIBOTF_LIBS=`$PKG_CONFIG --libs "libotf"|sed -e 's,///*,/,g'`
13264 { echo "$as_me:$LINENO: result: $LIBOTF_LIBS" >&5
13265 echo "${ECHO_T}$LIBOTF_LIBS" >&6; }
13266 else
13267 { echo "$as_me:$LINENO: result: no" >&5
13268 echo "${ECHO_T}no" >&6; }
13269 LIBOTF_CFLAGS=""
13270 LIBOTF_LIBS=""
13271 ## If we have a custom action on failure, don't print errors, but
13272 ## do set a variable so people can do so.
13273 LIBOTF_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "libotf"`
13279 else
13280 echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
13281 echo "*** See http://www.freedesktop.org/software/pkgconfig"
13285 if test $succeeded = yes; then
13286 HAVE_LIBOTF=yes
13287 else
13288 HAVE_LIBOTF=no
13291 if test "$HAVE_LIBOTF" = "yes"; then
13293 cat >>confdefs.h <<\_ACEOF
13294 #define HAVE_LIBOTF 1
13295 _ACEOF
13301 HAVE_M17N_FLT=no
13302 if test "${with_m17n_flt}" != "no"; then
13304 succeeded=no
13306 # Extract the first word of "pkg-config", so it can be a program name with args.
13307 set dummy pkg-config; ac_word=$2
13308 { echo "$as_me:$LINENO: checking for $ac_word" >&5
13309 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
13310 if test "${ac_cv_path_PKG_CONFIG+set}" = set; then
13311 echo $ECHO_N "(cached) $ECHO_C" >&6
13312 else
13313 case $PKG_CONFIG in
13314 [\\/]* | ?:[\\/]*)
13315 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
13318 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13319 for as_dir in $PATH
13321 IFS=$as_save_IFS
13322 test -z "$as_dir" && as_dir=.
13323 for ac_exec_ext in '' $ac_executable_extensions; do
13324 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
13325 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
13326 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
13327 break 2
13329 done
13330 done
13331 IFS=$as_save_IFS
13333 test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG="no"
13335 esac
13337 PKG_CONFIG=$ac_cv_path_PKG_CONFIG
13338 if test -n "$PKG_CONFIG"; then
13339 { echo "$as_me:$LINENO: result: $PKG_CONFIG" >&5
13340 echo "${ECHO_T}$PKG_CONFIG" >&6; }
13341 else
13342 { echo "$as_me:$LINENO: result: no" >&5
13343 echo "${ECHO_T}no" >&6; }
13348 if test "$PKG_CONFIG" = "no" ; then
13349 HAVE_M17N_FLT=no
13350 else
13351 PKG_CONFIG_MIN_VERSION=0.9.0
13352 if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
13353 { echo "$as_me:$LINENO: checking for m17n-flt" >&5
13354 echo $ECHO_N "checking for m17n-flt... $ECHO_C" >&6; }
13356 if $PKG_CONFIG --exists "m17n-flt" 2>&5; then
13357 { echo "$as_me:$LINENO: result: yes" >&5
13358 echo "${ECHO_T}yes" >&6; }
13359 succeeded=yes
13361 { echo "$as_me:$LINENO: checking M17N_FLT_CFLAGS" >&5
13362 echo $ECHO_N "checking M17N_FLT_CFLAGS... $ECHO_C" >&6; }
13363 M17N_FLT_CFLAGS=`$PKG_CONFIG --cflags "m17n-flt"|sed -e 's,///*,/,g'`
13364 { echo "$as_me:$LINENO: result: $M17N_FLT_CFLAGS" >&5
13365 echo "${ECHO_T}$M17N_FLT_CFLAGS" >&6; }
13367 { echo "$as_me:$LINENO: checking M17N_FLT_LIBS" >&5
13368 echo $ECHO_N "checking M17N_FLT_LIBS... $ECHO_C" >&6; }
13369 M17N_FLT_LIBS=`$PKG_CONFIG --libs "m17n-flt"|sed -e 's,///*,/,g'`
13370 { echo "$as_me:$LINENO: result: $M17N_FLT_LIBS" >&5
13371 echo "${ECHO_T}$M17N_FLT_LIBS" >&6; }
13372 else
13373 { echo "$as_me:$LINENO: result: no" >&5
13374 echo "${ECHO_T}no" >&6; }
13375 M17N_FLT_CFLAGS=""
13376 M17N_FLT_LIBS=""
13377 ## If we have a custom action on failure, don't print errors, but
13378 ## do set a variable so people can do so.
13379 M17N_FLT_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "m17n-flt"`
13385 else
13386 echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
13387 echo "*** See http://www.freedesktop.org/software/pkgconfig"
13391 if test $succeeded = yes; then
13392 HAVE_M17N_FLT=yes
13393 else
13394 HAVE_M17N_FLT=no
13397 if test "$HAVE_M17N_FLT" = "yes"; then
13399 cat >>confdefs.h <<\_ACEOF
13400 #define HAVE_M17N_FLT 1
13401 _ACEOF
13415 ### End of font-backend section.
13417 ### Use -lXpm if available, unless `--with-xpm=no'.
13418 HAVE_XPM=no
13419 if test "${HAVE_X11}" = "yes"; then
13420 if test "${with_xpm}" != "no"; then
13421 if test "${ac_cv_header_X11_xpm_h+set}" = set; then
13422 { echo "$as_me:$LINENO: checking for X11/xpm.h" >&5
13423 echo $ECHO_N "checking for X11/xpm.h... $ECHO_C" >&6; }
13424 if test "${ac_cv_header_X11_xpm_h+set}" = set; then
13425 echo $ECHO_N "(cached) $ECHO_C" >&6
13427 { echo "$as_me:$LINENO: result: $ac_cv_header_X11_xpm_h" >&5
13428 echo "${ECHO_T}$ac_cv_header_X11_xpm_h" >&6; }
13429 else
13430 # Is the header compilable?
13431 { echo "$as_me:$LINENO: checking X11/xpm.h usability" >&5
13432 echo $ECHO_N "checking X11/xpm.h usability... $ECHO_C" >&6; }
13433 cat >conftest.$ac_ext <<_ACEOF
13434 /* confdefs.h. */
13435 _ACEOF
13436 cat confdefs.h >>conftest.$ac_ext
13437 cat >>conftest.$ac_ext <<_ACEOF
13438 /* end confdefs.h. */
13439 $ac_includes_default
13440 #include <X11/xpm.h>
13441 _ACEOF
13442 rm -f conftest.$ac_objext
13443 if { (ac_try="$ac_compile"
13444 case "(($ac_try" in
13445 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13446 *) ac_try_echo=$ac_try;;
13447 esac
13448 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13449 (eval "$ac_compile") 2>conftest.er1
13450 ac_status=$?
13451 grep -v '^ *+' conftest.er1 >conftest.err
13452 rm -f conftest.er1
13453 cat conftest.err >&5
13454 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13455 (exit $ac_status); } && {
13456 test -z "$ac_c_werror_flag" ||
13457 test ! -s conftest.err
13458 } && test -s conftest.$ac_objext; then
13459 ac_header_compiler=yes
13460 else
13461 echo "$as_me: failed program was:" >&5
13462 sed 's/^/| /' conftest.$ac_ext >&5
13464 ac_header_compiler=no
13467 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13468 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
13469 echo "${ECHO_T}$ac_header_compiler" >&6; }
13471 # Is the header present?
13472 { echo "$as_me:$LINENO: checking X11/xpm.h presence" >&5
13473 echo $ECHO_N "checking X11/xpm.h presence... $ECHO_C" >&6; }
13474 cat >conftest.$ac_ext <<_ACEOF
13475 /* confdefs.h. */
13476 _ACEOF
13477 cat confdefs.h >>conftest.$ac_ext
13478 cat >>conftest.$ac_ext <<_ACEOF
13479 /* end confdefs.h. */
13480 #include <X11/xpm.h>
13481 _ACEOF
13482 if { (ac_try="$ac_cpp conftest.$ac_ext"
13483 case "(($ac_try" in
13484 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13485 *) ac_try_echo=$ac_try;;
13486 esac
13487 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13488 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
13489 ac_status=$?
13490 grep -v '^ *+' conftest.er1 >conftest.err
13491 rm -f conftest.er1
13492 cat conftest.err >&5
13493 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13494 (exit $ac_status); } >/dev/null && {
13495 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
13496 test ! -s conftest.err
13497 }; then
13498 ac_header_preproc=yes
13499 else
13500 echo "$as_me: failed program was:" >&5
13501 sed 's/^/| /' conftest.$ac_ext >&5
13503 ac_header_preproc=no
13506 rm -f conftest.err conftest.$ac_ext
13507 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
13508 echo "${ECHO_T}$ac_header_preproc" >&6; }
13510 # So? What about this header?
13511 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
13512 yes:no: )
13513 { echo "$as_me:$LINENO: WARNING: X11/xpm.h: accepted by the compiler, rejected by the preprocessor!" >&5
13514 echo "$as_me: WARNING: X11/xpm.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
13515 { echo "$as_me:$LINENO: WARNING: X11/xpm.h: proceeding with the compiler's result" >&5
13516 echo "$as_me: WARNING: X11/xpm.h: proceeding with the compiler's result" >&2;}
13517 ac_header_preproc=yes
13519 no:yes:* )
13520 { echo "$as_me:$LINENO: WARNING: X11/xpm.h: present but cannot be compiled" >&5
13521 echo "$as_me: WARNING: X11/xpm.h: present but cannot be compiled" >&2;}
13522 { echo "$as_me:$LINENO: WARNING: X11/xpm.h: check for missing prerequisite headers?" >&5
13523 echo "$as_me: WARNING: X11/xpm.h: check for missing prerequisite headers?" >&2;}
13524 { echo "$as_me:$LINENO: WARNING: X11/xpm.h: see the Autoconf documentation" >&5
13525 echo "$as_me: WARNING: X11/xpm.h: see the Autoconf documentation" >&2;}
13526 { echo "$as_me:$LINENO: WARNING: X11/xpm.h: section \"Present But Cannot Be Compiled\"" >&5
13527 echo "$as_me: WARNING: X11/xpm.h: section \"Present But Cannot Be Compiled\"" >&2;}
13528 { echo "$as_me:$LINENO: WARNING: X11/xpm.h: proceeding with the preprocessor's result" >&5
13529 echo "$as_me: WARNING: X11/xpm.h: proceeding with the preprocessor's result" >&2;}
13530 { echo "$as_me:$LINENO: WARNING: X11/xpm.h: in the future, the compiler will take precedence" >&5
13531 echo "$as_me: WARNING: X11/xpm.h: in the future, the compiler will take precedence" >&2;}
13534 esac
13535 { echo "$as_me:$LINENO: checking for X11/xpm.h" >&5
13536 echo $ECHO_N "checking for X11/xpm.h... $ECHO_C" >&6; }
13537 if test "${ac_cv_header_X11_xpm_h+set}" = set; then
13538 echo $ECHO_N "(cached) $ECHO_C" >&6
13539 else
13540 ac_cv_header_X11_xpm_h=$ac_header_preproc
13542 { echo "$as_me:$LINENO: result: $ac_cv_header_X11_xpm_h" >&5
13543 echo "${ECHO_T}$ac_cv_header_X11_xpm_h" >&6; }
13546 if test $ac_cv_header_X11_xpm_h = yes; then
13547 { echo "$as_me:$LINENO: checking for XpmReadFileToPixmap in -lXpm" >&5
13548 echo $ECHO_N "checking for XpmReadFileToPixmap in -lXpm... $ECHO_C" >&6; }
13549 if test "${ac_cv_lib_Xpm_XpmReadFileToPixmap+set}" = set; then
13550 echo $ECHO_N "(cached) $ECHO_C" >&6
13551 else
13552 ac_check_lib_save_LIBS=$LIBS
13553 LIBS="-lXpm -lX11 $LIBS"
13554 cat >conftest.$ac_ext <<_ACEOF
13555 /* confdefs.h. */
13556 _ACEOF
13557 cat confdefs.h >>conftest.$ac_ext
13558 cat >>conftest.$ac_ext <<_ACEOF
13559 /* end confdefs.h. */
13561 /* Override any GCC internal prototype to avoid an error.
13562 Use char because int might match the return type of a GCC
13563 builtin and then its argument prototype would still apply. */
13564 #ifdef __cplusplus
13565 extern "C"
13566 #endif
13567 char XpmReadFileToPixmap ();
13569 main ()
13571 return XpmReadFileToPixmap ();
13573 return 0;
13575 _ACEOF
13576 rm -f conftest.$ac_objext conftest$ac_exeext
13577 if { (ac_try="$ac_link"
13578 case "(($ac_try" in
13579 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13580 *) ac_try_echo=$ac_try;;
13581 esac
13582 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13583 (eval "$ac_link") 2>conftest.er1
13584 ac_status=$?
13585 grep -v '^ *+' conftest.er1 >conftest.err
13586 rm -f conftest.er1
13587 cat conftest.err >&5
13588 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13589 (exit $ac_status); } && {
13590 test -z "$ac_c_werror_flag" ||
13591 test ! -s conftest.err
13592 } && test -s conftest$ac_exeext &&
13593 $as_test_x conftest$ac_exeext; then
13594 ac_cv_lib_Xpm_XpmReadFileToPixmap=yes
13595 else
13596 echo "$as_me: failed program was:" >&5
13597 sed 's/^/| /' conftest.$ac_ext >&5
13599 ac_cv_lib_Xpm_XpmReadFileToPixmap=no
13602 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
13603 conftest$ac_exeext conftest.$ac_ext
13604 LIBS=$ac_check_lib_save_LIBS
13606 { echo "$as_me:$LINENO: result: $ac_cv_lib_Xpm_XpmReadFileToPixmap" >&5
13607 echo "${ECHO_T}$ac_cv_lib_Xpm_XpmReadFileToPixmap" >&6; }
13608 if test $ac_cv_lib_Xpm_XpmReadFileToPixmap = yes; then
13609 HAVE_XPM=yes
13615 if test "${HAVE_XPM}" = "yes"; then
13616 { echo "$as_me:$LINENO: checking for XpmReturnAllocPixels preprocessor define" >&5
13617 echo $ECHO_N "checking for XpmReturnAllocPixels preprocessor define... $ECHO_C" >&6; }
13618 cat >conftest.$ac_ext <<_ACEOF
13619 /* confdefs.h. */
13620 _ACEOF
13621 cat confdefs.h >>conftest.$ac_ext
13622 cat >>conftest.$ac_ext <<_ACEOF
13623 /* end confdefs.h. */
13624 #include "X11/xpm.h"
13625 #ifndef XpmReturnAllocPixels
13626 no_return_alloc_pixels
13627 #endif
13629 _ACEOF
13630 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
13631 $EGREP "no_return_alloc_pixels" >/dev/null 2>&1; then
13632 HAVE_XPM=no
13633 else
13634 HAVE_XPM=yes
13636 rm -f conftest*
13639 if test "${HAVE_XPM}" = "yes"; then
13640 { echo "$as_me:$LINENO: result: yes" >&5
13641 echo "${ECHO_T}yes" >&6; }
13642 else
13643 { echo "$as_me:$LINENO: result: no" >&5
13644 echo "${ECHO_T}no" >&6; }
13649 if test "${HAVE_XPM}" = "yes"; then
13651 cat >>confdefs.h <<\_ACEOF
13652 #define HAVE_XPM 1
13653 _ACEOF
13658 ### Use -ljpeg if available, unless `--with-jpeg=no'.
13659 HAVE_JPEG=no
13660 if test "${HAVE_X11}" = "yes"; then
13661 if test "${with_jpeg}" != "no"; then
13662 if test "${ac_cv_header_jerror_h+set}" = set; then
13663 { echo "$as_me:$LINENO: checking for jerror.h" >&5
13664 echo $ECHO_N "checking for jerror.h... $ECHO_C" >&6; }
13665 if test "${ac_cv_header_jerror_h+set}" = set; then
13666 echo $ECHO_N "(cached) $ECHO_C" >&6
13668 { echo "$as_me:$LINENO: result: $ac_cv_header_jerror_h" >&5
13669 echo "${ECHO_T}$ac_cv_header_jerror_h" >&6; }
13670 else
13671 # Is the header compilable?
13672 { echo "$as_me:$LINENO: checking jerror.h usability" >&5
13673 echo $ECHO_N "checking jerror.h usability... $ECHO_C" >&6; }
13674 cat >conftest.$ac_ext <<_ACEOF
13675 /* confdefs.h. */
13676 _ACEOF
13677 cat confdefs.h >>conftest.$ac_ext
13678 cat >>conftest.$ac_ext <<_ACEOF
13679 /* end confdefs.h. */
13680 $ac_includes_default
13681 #include <jerror.h>
13682 _ACEOF
13683 rm -f conftest.$ac_objext
13684 if { (ac_try="$ac_compile"
13685 case "(($ac_try" in
13686 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13687 *) ac_try_echo=$ac_try;;
13688 esac
13689 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13690 (eval "$ac_compile") 2>conftest.er1
13691 ac_status=$?
13692 grep -v '^ *+' conftest.er1 >conftest.err
13693 rm -f conftest.er1
13694 cat conftest.err >&5
13695 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13696 (exit $ac_status); } && {
13697 test -z "$ac_c_werror_flag" ||
13698 test ! -s conftest.err
13699 } && test -s conftest.$ac_objext; then
13700 ac_header_compiler=yes
13701 else
13702 echo "$as_me: failed program was:" >&5
13703 sed 's/^/| /' conftest.$ac_ext >&5
13705 ac_header_compiler=no
13708 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13709 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
13710 echo "${ECHO_T}$ac_header_compiler" >&6; }
13712 # Is the header present?
13713 { echo "$as_me:$LINENO: checking jerror.h presence" >&5
13714 echo $ECHO_N "checking jerror.h presence... $ECHO_C" >&6; }
13715 cat >conftest.$ac_ext <<_ACEOF
13716 /* confdefs.h. */
13717 _ACEOF
13718 cat confdefs.h >>conftest.$ac_ext
13719 cat >>conftest.$ac_ext <<_ACEOF
13720 /* end confdefs.h. */
13721 #include <jerror.h>
13722 _ACEOF
13723 if { (ac_try="$ac_cpp conftest.$ac_ext"
13724 case "(($ac_try" in
13725 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13726 *) ac_try_echo=$ac_try;;
13727 esac
13728 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13729 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
13730 ac_status=$?
13731 grep -v '^ *+' conftest.er1 >conftest.err
13732 rm -f conftest.er1
13733 cat conftest.err >&5
13734 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13735 (exit $ac_status); } >/dev/null && {
13736 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
13737 test ! -s conftest.err
13738 }; then
13739 ac_header_preproc=yes
13740 else
13741 echo "$as_me: failed program was:" >&5
13742 sed 's/^/| /' conftest.$ac_ext >&5
13744 ac_header_preproc=no
13747 rm -f conftest.err conftest.$ac_ext
13748 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
13749 echo "${ECHO_T}$ac_header_preproc" >&6; }
13751 # So? What about this header?
13752 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
13753 yes:no: )
13754 { echo "$as_me:$LINENO: WARNING: jerror.h: accepted by the compiler, rejected by the preprocessor!" >&5
13755 echo "$as_me: WARNING: jerror.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
13756 { echo "$as_me:$LINENO: WARNING: jerror.h: proceeding with the compiler's result" >&5
13757 echo "$as_me: WARNING: jerror.h: proceeding with the compiler's result" >&2;}
13758 ac_header_preproc=yes
13760 no:yes:* )
13761 { echo "$as_me:$LINENO: WARNING: jerror.h: present but cannot be compiled" >&5
13762 echo "$as_me: WARNING: jerror.h: present but cannot be compiled" >&2;}
13763 { echo "$as_me:$LINENO: WARNING: jerror.h: check for missing prerequisite headers?" >&5
13764 echo "$as_me: WARNING: jerror.h: check for missing prerequisite headers?" >&2;}
13765 { echo "$as_me:$LINENO: WARNING: jerror.h: see the Autoconf documentation" >&5
13766 echo "$as_me: WARNING: jerror.h: see the Autoconf documentation" >&2;}
13767 { echo "$as_me:$LINENO: WARNING: jerror.h: section \"Present But Cannot Be Compiled\"" >&5
13768 echo "$as_me: WARNING: jerror.h: section \"Present But Cannot Be Compiled\"" >&2;}
13769 { echo "$as_me:$LINENO: WARNING: jerror.h: proceeding with the preprocessor's result" >&5
13770 echo "$as_me: WARNING: jerror.h: proceeding with the preprocessor's result" >&2;}
13771 { echo "$as_me:$LINENO: WARNING: jerror.h: in the future, the compiler will take precedence" >&5
13772 echo "$as_me: WARNING: jerror.h: in the future, the compiler will take precedence" >&2;}
13775 esac
13776 { echo "$as_me:$LINENO: checking for jerror.h" >&5
13777 echo $ECHO_N "checking for jerror.h... $ECHO_C" >&6; }
13778 if test "${ac_cv_header_jerror_h+set}" = set; then
13779 echo $ECHO_N "(cached) $ECHO_C" >&6
13780 else
13781 ac_cv_header_jerror_h=$ac_header_preproc
13783 { echo "$as_me:$LINENO: result: $ac_cv_header_jerror_h" >&5
13784 echo "${ECHO_T}$ac_cv_header_jerror_h" >&6; }
13787 if test $ac_cv_header_jerror_h = yes; then
13788 { echo "$as_me:$LINENO: checking for jpeg_destroy_compress in -ljpeg" >&5
13789 echo $ECHO_N "checking for jpeg_destroy_compress in -ljpeg... $ECHO_C" >&6; }
13790 if test "${ac_cv_lib_jpeg_jpeg_destroy_compress+set}" = set; then
13791 echo $ECHO_N "(cached) $ECHO_C" >&6
13792 else
13793 ac_check_lib_save_LIBS=$LIBS
13794 LIBS="-ljpeg $LIBS"
13795 cat >conftest.$ac_ext <<_ACEOF
13796 /* confdefs.h. */
13797 _ACEOF
13798 cat confdefs.h >>conftest.$ac_ext
13799 cat >>conftest.$ac_ext <<_ACEOF
13800 /* end confdefs.h. */
13802 /* Override any GCC internal prototype to avoid an error.
13803 Use char because int might match the return type of a GCC
13804 builtin and then its argument prototype would still apply. */
13805 #ifdef __cplusplus
13806 extern "C"
13807 #endif
13808 char jpeg_destroy_compress ();
13810 main ()
13812 return jpeg_destroy_compress ();
13814 return 0;
13816 _ACEOF
13817 rm -f conftest.$ac_objext conftest$ac_exeext
13818 if { (ac_try="$ac_link"
13819 case "(($ac_try" in
13820 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13821 *) ac_try_echo=$ac_try;;
13822 esac
13823 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13824 (eval "$ac_link") 2>conftest.er1
13825 ac_status=$?
13826 grep -v '^ *+' conftest.er1 >conftest.err
13827 rm -f conftest.er1
13828 cat conftest.err >&5
13829 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13830 (exit $ac_status); } && {
13831 test -z "$ac_c_werror_flag" ||
13832 test ! -s conftest.err
13833 } && test -s conftest$ac_exeext &&
13834 $as_test_x conftest$ac_exeext; then
13835 ac_cv_lib_jpeg_jpeg_destroy_compress=yes
13836 else
13837 echo "$as_me: failed program was:" >&5
13838 sed 's/^/| /' conftest.$ac_ext >&5
13840 ac_cv_lib_jpeg_jpeg_destroy_compress=no
13843 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
13844 conftest$ac_exeext conftest.$ac_ext
13845 LIBS=$ac_check_lib_save_LIBS
13847 { echo "$as_me:$LINENO: result: $ac_cv_lib_jpeg_jpeg_destroy_compress" >&5
13848 echo "${ECHO_T}$ac_cv_lib_jpeg_jpeg_destroy_compress" >&6; }
13849 if test $ac_cv_lib_jpeg_jpeg_destroy_compress = yes; then
13850 HAVE_JPEG=yes
13859 if test "${HAVE_JPEG}" = "yes"; then
13860 cat >>confdefs.h <<\_ACEOF
13861 #define HAVE_JPEG 1
13862 _ACEOF
13864 cat >conftest.$ac_ext <<_ACEOF
13865 /* confdefs.h. */
13866 _ACEOF
13867 cat confdefs.h >>conftest.$ac_ext
13868 cat >>conftest.$ac_ext <<_ACEOF
13869 /* end confdefs.h. */
13870 #include <jpeglib.h>
13871 version=JPEG_LIB_VERSION
13873 _ACEOF
13874 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
13875 $EGREP "version= *(6[2-9]|[7-9][0-9])" >/dev/null 2>&1; then
13876 cat >>confdefs.h <<\_ACEOF
13877 #define HAVE_JPEG 1
13878 _ACEOF
13880 else
13881 { echo "$as_me:$LINENO: WARNING: libjpeg found, but not version 6b or later" >&5
13882 echo "$as_me: WARNING: libjpeg found, but not version 6b or later" >&2;}
13883 HAVE_JPEG=no
13885 rm -f conftest*
13890 ### Use -lpng if available, unless `--with-png=no'.
13891 HAVE_PNG=no
13892 if test "${HAVE_X11}" = "yes"; then
13893 if test "${with_png}" != "no"; then
13894 # Debian unstable as of July 2003 has multiple libpngs, and puts png.h
13895 # in /usr/include/libpng.
13898 for ac_header in png.h libpng/png.h
13900 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
13901 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
13902 { echo "$as_me:$LINENO: checking for $ac_header" >&5
13903 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
13904 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
13905 echo $ECHO_N "(cached) $ECHO_C" >&6
13907 ac_res=`eval echo '${'$as_ac_Header'}'`
13908 { echo "$as_me:$LINENO: result: $ac_res" >&5
13909 echo "${ECHO_T}$ac_res" >&6; }
13910 else
13911 # Is the header compilable?
13912 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
13913 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
13914 cat >conftest.$ac_ext <<_ACEOF
13915 /* confdefs.h. */
13916 _ACEOF
13917 cat confdefs.h >>conftest.$ac_ext
13918 cat >>conftest.$ac_ext <<_ACEOF
13919 /* end confdefs.h. */
13920 $ac_includes_default
13921 #include <$ac_header>
13922 _ACEOF
13923 rm -f conftest.$ac_objext
13924 if { (ac_try="$ac_compile"
13925 case "(($ac_try" in
13926 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13927 *) ac_try_echo=$ac_try;;
13928 esac
13929 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13930 (eval "$ac_compile") 2>conftest.er1
13931 ac_status=$?
13932 grep -v '^ *+' conftest.er1 >conftest.err
13933 rm -f conftest.er1
13934 cat conftest.err >&5
13935 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13936 (exit $ac_status); } && {
13937 test -z "$ac_c_werror_flag" ||
13938 test ! -s conftest.err
13939 } && test -s conftest.$ac_objext; then
13940 ac_header_compiler=yes
13941 else
13942 echo "$as_me: failed program was:" >&5
13943 sed 's/^/| /' conftest.$ac_ext >&5
13945 ac_header_compiler=no
13948 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13949 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
13950 echo "${ECHO_T}$ac_header_compiler" >&6; }
13952 # Is the header present?
13953 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
13954 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
13955 cat >conftest.$ac_ext <<_ACEOF
13956 /* confdefs.h. */
13957 _ACEOF
13958 cat confdefs.h >>conftest.$ac_ext
13959 cat >>conftest.$ac_ext <<_ACEOF
13960 /* end confdefs.h. */
13961 #include <$ac_header>
13962 _ACEOF
13963 if { (ac_try="$ac_cpp conftest.$ac_ext"
13964 case "(($ac_try" in
13965 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13966 *) ac_try_echo=$ac_try;;
13967 esac
13968 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13969 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
13970 ac_status=$?
13971 grep -v '^ *+' conftest.er1 >conftest.err
13972 rm -f conftest.er1
13973 cat conftest.err >&5
13974 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13975 (exit $ac_status); } >/dev/null && {
13976 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
13977 test ! -s conftest.err
13978 }; then
13979 ac_header_preproc=yes
13980 else
13981 echo "$as_me: failed program was:" >&5
13982 sed 's/^/| /' conftest.$ac_ext >&5
13984 ac_header_preproc=no
13987 rm -f conftest.err conftest.$ac_ext
13988 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
13989 echo "${ECHO_T}$ac_header_preproc" >&6; }
13991 # So? What about this header?
13992 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
13993 yes:no: )
13994 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
13995 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
13996 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
13997 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
13998 ac_header_preproc=yes
14000 no:yes:* )
14001 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
14002 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
14003 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
14004 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
14005 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
14006 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
14007 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
14008 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
14009 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
14010 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
14011 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
14012 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
14015 esac
14016 { echo "$as_me:$LINENO: checking for $ac_header" >&5
14017 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
14018 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
14019 echo $ECHO_N "(cached) $ECHO_C" >&6
14020 else
14021 eval "$as_ac_Header=\$ac_header_preproc"
14023 ac_res=`eval echo '${'$as_ac_Header'}'`
14024 { echo "$as_me:$LINENO: result: $ac_res" >&5
14025 echo "${ECHO_T}$ac_res" >&6; }
14028 if test `eval echo '${'$as_ac_Header'}'` = yes; then
14029 cat >>confdefs.h <<_ACEOF
14030 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
14031 _ACEOF
14035 done
14037 if test "$ac_cv_header_png_h" = yes || test "$ac_cv_header_libpng_png_h" = yes ; then
14038 { echo "$as_me:$LINENO: checking for png_get_channels in -lpng" >&5
14039 echo $ECHO_N "checking for png_get_channels in -lpng... $ECHO_C" >&6; }
14040 if test "${ac_cv_lib_png_png_get_channels+set}" = set; then
14041 echo $ECHO_N "(cached) $ECHO_C" >&6
14042 else
14043 ac_check_lib_save_LIBS=$LIBS
14044 LIBS="-lpng -lz -lm $LIBS"
14045 cat >conftest.$ac_ext <<_ACEOF
14046 /* confdefs.h. */
14047 _ACEOF
14048 cat confdefs.h >>conftest.$ac_ext
14049 cat >>conftest.$ac_ext <<_ACEOF
14050 /* end confdefs.h. */
14052 /* Override any GCC internal prototype to avoid an error.
14053 Use char because int might match the return type of a GCC
14054 builtin and then its argument prototype would still apply. */
14055 #ifdef __cplusplus
14056 extern "C"
14057 #endif
14058 char png_get_channels ();
14060 main ()
14062 return png_get_channels ();
14064 return 0;
14066 _ACEOF
14067 rm -f conftest.$ac_objext conftest$ac_exeext
14068 if { (ac_try="$ac_link"
14069 case "(($ac_try" in
14070 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14071 *) ac_try_echo=$ac_try;;
14072 esac
14073 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14074 (eval "$ac_link") 2>conftest.er1
14075 ac_status=$?
14076 grep -v '^ *+' conftest.er1 >conftest.err
14077 rm -f conftest.er1
14078 cat conftest.err >&5
14079 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14080 (exit $ac_status); } && {
14081 test -z "$ac_c_werror_flag" ||
14082 test ! -s conftest.err
14083 } && test -s conftest$ac_exeext &&
14084 $as_test_x conftest$ac_exeext; then
14085 ac_cv_lib_png_png_get_channels=yes
14086 else
14087 echo "$as_me: failed program was:" >&5
14088 sed 's/^/| /' conftest.$ac_ext >&5
14090 ac_cv_lib_png_png_get_channels=no
14093 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
14094 conftest$ac_exeext conftest.$ac_ext
14095 LIBS=$ac_check_lib_save_LIBS
14097 { echo "$as_me:$LINENO: result: $ac_cv_lib_png_png_get_channels" >&5
14098 echo "${ECHO_T}$ac_cv_lib_png_png_get_channels" >&6; }
14099 if test $ac_cv_lib_png_png_get_channels = yes; then
14100 HAVE_PNG=yes
14106 if test "${HAVE_PNG}" = "yes"; then
14108 cat >>confdefs.h <<\_ACEOF
14109 #define HAVE_PNG 1
14110 _ACEOF
14115 ### Use -ltiff if available, unless `--with-tiff=no'.
14116 HAVE_TIFF=no
14117 if test "${HAVE_X11}" = "yes"; then
14118 if test "${with_tiff}" != "no"; then
14119 if test "${ac_cv_header_tiffio_h+set}" = set; then
14120 { echo "$as_me:$LINENO: checking for tiffio.h" >&5
14121 echo $ECHO_N "checking for tiffio.h... $ECHO_C" >&6; }
14122 if test "${ac_cv_header_tiffio_h+set}" = set; then
14123 echo $ECHO_N "(cached) $ECHO_C" >&6
14125 { echo "$as_me:$LINENO: result: $ac_cv_header_tiffio_h" >&5
14126 echo "${ECHO_T}$ac_cv_header_tiffio_h" >&6; }
14127 else
14128 # Is the header compilable?
14129 { echo "$as_me:$LINENO: checking tiffio.h usability" >&5
14130 echo $ECHO_N "checking tiffio.h usability... $ECHO_C" >&6; }
14131 cat >conftest.$ac_ext <<_ACEOF
14132 /* confdefs.h. */
14133 _ACEOF
14134 cat confdefs.h >>conftest.$ac_ext
14135 cat >>conftest.$ac_ext <<_ACEOF
14136 /* end confdefs.h. */
14137 $ac_includes_default
14138 #include <tiffio.h>
14139 _ACEOF
14140 rm -f conftest.$ac_objext
14141 if { (ac_try="$ac_compile"
14142 case "(($ac_try" in
14143 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14144 *) ac_try_echo=$ac_try;;
14145 esac
14146 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14147 (eval "$ac_compile") 2>conftest.er1
14148 ac_status=$?
14149 grep -v '^ *+' conftest.er1 >conftest.err
14150 rm -f conftest.er1
14151 cat conftest.err >&5
14152 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14153 (exit $ac_status); } && {
14154 test -z "$ac_c_werror_flag" ||
14155 test ! -s conftest.err
14156 } && test -s conftest.$ac_objext; then
14157 ac_header_compiler=yes
14158 else
14159 echo "$as_me: failed program was:" >&5
14160 sed 's/^/| /' conftest.$ac_ext >&5
14162 ac_header_compiler=no
14165 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14166 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
14167 echo "${ECHO_T}$ac_header_compiler" >&6; }
14169 # Is the header present?
14170 { echo "$as_me:$LINENO: checking tiffio.h presence" >&5
14171 echo $ECHO_N "checking tiffio.h presence... $ECHO_C" >&6; }
14172 cat >conftest.$ac_ext <<_ACEOF
14173 /* confdefs.h. */
14174 _ACEOF
14175 cat confdefs.h >>conftest.$ac_ext
14176 cat >>conftest.$ac_ext <<_ACEOF
14177 /* end confdefs.h. */
14178 #include <tiffio.h>
14179 _ACEOF
14180 if { (ac_try="$ac_cpp conftest.$ac_ext"
14181 case "(($ac_try" in
14182 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14183 *) ac_try_echo=$ac_try;;
14184 esac
14185 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14186 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
14187 ac_status=$?
14188 grep -v '^ *+' conftest.er1 >conftest.err
14189 rm -f conftest.er1
14190 cat conftest.err >&5
14191 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14192 (exit $ac_status); } >/dev/null && {
14193 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
14194 test ! -s conftest.err
14195 }; then
14196 ac_header_preproc=yes
14197 else
14198 echo "$as_me: failed program was:" >&5
14199 sed 's/^/| /' conftest.$ac_ext >&5
14201 ac_header_preproc=no
14204 rm -f conftest.err conftest.$ac_ext
14205 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
14206 echo "${ECHO_T}$ac_header_preproc" >&6; }
14208 # So? What about this header?
14209 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
14210 yes:no: )
14211 { echo "$as_me:$LINENO: WARNING: tiffio.h: accepted by the compiler, rejected by the preprocessor!" >&5
14212 echo "$as_me: WARNING: tiffio.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
14213 { echo "$as_me:$LINENO: WARNING: tiffio.h: proceeding with the compiler's result" >&5
14214 echo "$as_me: WARNING: tiffio.h: proceeding with the compiler's result" >&2;}
14215 ac_header_preproc=yes
14217 no:yes:* )
14218 { echo "$as_me:$LINENO: WARNING: tiffio.h: present but cannot be compiled" >&5
14219 echo "$as_me: WARNING: tiffio.h: present but cannot be compiled" >&2;}
14220 { echo "$as_me:$LINENO: WARNING: tiffio.h: check for missing prerequisite headers?" >&5
14221 echo "$as_me: WARNING: tiffio.h: check for missing prerequisite headers?" >&2;}
14222 { echo "$as_me:$LINENO: WARNING: tiffio.h: see the Autoconf documentation" >&5
14223 echo "$as_me: WARNING: tiffio.h: see the Autoconf documentation" >&2;}
14224 { echo "$as_me:$LINENO: WARNING: tiffio.h: section \"Present But Cannot Be Compiled\"" >&5
14225 echo "$as_me: WARNING: tiffio.h: section \"Present But Cannot Be Compiled\"" >&2;}
14226 { echo "$as_me:$LINENO: WARNING: tiffio.h: proceeding with the preprocessor's result" >&5
14227 echo "$as_me: WARNING: tiffio.h: proceeding with the preprocessor's result" >&2;}
14228 { echo "$as_me:$LINENO: WARNING: tiffio.h: in the future, the compiler will take precedence" >&5
14229 echo "$as_me: WARNING: tiffio.h: in the future, the compiler will take precedence" >&2;}
14232 esac
14233 { echo "$as_me:$LINENO: checking for tiffio.h" >&5
14234 echo $ECHO_N "checking for tiffio.h... $ECHO_C" >&6; }
14235 if test "${ac_cv_header_tiffio_h+set}" = set; then
14236 echo $ECHO_N "(cached) $ECHO_C" >&6
14237 else
14238 ac_cv_header_tiffio_h=$ac_header_preproc
14240 { echo "$as_me:$LINENO: result: $ac_cv_header_tiffio_h" >&5
14241 echo "${ECHO_T}$ac_cv_header_tiffio_h" >&6; }
14244 if test $ac_cv_header_tiffio_h = yes; then
14245 tifflibs="-lz -lm"
14246 # At least one tiff package requires the jpeg library.
14247 if test "${HAVE_JPEG}" = yes; then tifflibs="-ljpeg $tifflibs"; fi
14248 { echo "$as_me:$LINENO: checking for TIFFGetVersion in -ltiff" >&5
14249 echo $ECHO_N "checking for TIFFGetVersion in -ltiff... $ECHO_C" >&6; }
14250 if test "${ac_cv_lib_tiff_TIFFGetVersion+set}" = set; then
14251 echo $ECHO_N "(cached) $ECHO_C" >&6
14252 else
14253 ac_check_lib_save_LIBS=$LIBS
14254 LIBS="-ltiff $tifflibs $LIBS"
14255 cat >conftest.$ac_ext <<_ACEOF
14256 /* confdefs.h. */
14257 _ACEOF
14258 cat confdefs.h >>conftest.$ac_ext
14259 cat >>conftest.$ac_ext <<_ACEOF
14260 /* end confdefs.h. */
14262 /* Override any GCC internal prototype to avoid an error.
14263 Use char because int might match the return type of a GCC
14264 builtin and then its argument prototype would still apply. */
14265 #ifdef __cplusplus
14266 extern "C"
14267 #endif
14268 char TIFFGetVersion ();
14270 main ()
14272 return TIFFGetVersion ();
14274 return 0;
14276 _ACEOF
14277 rm -f conftest.$ac_objext conftest$ac_exeext
14278 if { (ac_try="$ac_link"
14279 case "(($ac_try" in
14280 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14281 *) ac_try_echo=$ac_try;;
14282 esac
14283 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14284 (eval "$ac_link") 2>conftest.er1
14285 ac_status=$?
14286 grep -v '^ *+' conftest.er1 >conftest.err
14287 rm -f conftest.er1
14288 cat conftest.err >&5
14289 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14290 (exit $ac_status); } && {
14291 test -z "$ac_c_werror_flag" ||
14292 test ! -s conftest.err
14293 } && test -s conftest$ac_exeext &&
14294 $as_test_x conftest$ac_exeext; then
14295 ac_cv_lib_tiff_TIFFGetVersion=yes
14296 else
14297 echo "$as_me: failed program was:" >&5
14298 sed 's/^/| /' conftest.$ac_ext >&5
14300 ac_cv_lib_tiff_TIFFGetVersion=no
14303 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
14304 conftest$ac_exeext conftest.$ac_ext
14305 LIBS=$ac_check_lib_save_LIBS
14307 { echo "$as_me:$LINENO: result: $ac_cv_lib_tiff_TIFFGetVersion" >&5
14308 echo "${ECHO_T}$ac_cv_lib_tiff_TIFFGetVersion" >&6; }
14309 if test $ac_cv_lib_tiff_TIFFGetVersion = yes; then
14310 HAVE_TIFF=yes
14318 if test "${HAVE_TIFF}" = "yes"; then
14320 cat >>confdefs.h <<\_ACEOF
14321 #define HAVE_TIFF 1
14322 _ACEOF
14327 ### Use -lgif or -lungif if available, unless `--with-gif=no'.
14328 HAVE_GIF=no
14329 if test "${HAVE_X11}" = "yes" && test "${with_gif}" != "no"; then
14330 if test "${ac_cv_header_gif_lib_h+set}" = set; then
14331 { echo "$as_me:$LINENO: checking for gif_lib.h" >&5
14332 echo $ECHO_N "checking for gif_lib.h... $ECHO_C" >&6; }
14333 if test "${ac_cv_header_gif_lib_h+set}" = set; then
14334 echo $ECHO_N "(cached) $ECHO_C" >&6
14336 { echo "$as_me:$LINENO: result: $ac_cv_header_gif_lib_h" >&5
14337 echo "${ECHO_T}$ac_cv_header_gif_lib_h" >&6; }
14338 else
14339 # Is the header compilable?
14340 { echo "$as_me:$LINENO: checking gif_lib.h usability" >&5
14341 echo $ECHO_N "checking gif_lib.h usability... $ECHO_C" >&6; }
14342 cat >conftest.$ac_ext <<_ACEOF
14343 /* confdefs.h. */
14344 _ACEOF
14345 cat confdefs.h >>conftest.$ac_ext
14346 cat >>conftest.$ac_ext <<_ACEOF
14347 /* end confdefs.h. */
14348 $ac_includes_default
14349 #include <gif_lib.h>
14350 _ACEOF
14351 rm -f conftest.$ac_objext
14352 if { (ac_try="$ac_compile"
14353 case "(($ac_try" in
14354 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14355 *) ac_try_echo=$ac_try;;
14356 esac
14357 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14358 (eval "$ac_compile") 2>conftest.er1
14359 ac_status=$?
14360 grep -v '^ *+' conftest.er1 >conftest.err
14361 rm -f conftest.er1
14362 cat conftest.err >&5
14363 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14364 (exit $ac_status); } && {
14365 test -z "$ac_c_werror_flag" ||
14366 test ! -s conftest.err
14367 } && test -s conftest.$ac_objext; then
14368 ac_header_compiler=yes
14369 else
14370 echo "$as_me: failed program was:" >&5
14371 sed 's/^/| /' conftest.$ac_ext >&5
14373 ac_header_compiler=no
14376 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14377 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
14378 echo "${ECHO_T}$ac_header_compiler" >&6; }
14380 # Is the header present?
14381 { echo "$as_me:$LINENO: checking gif_lib.h presence" >&5
14382 echo $ECHO_N "checking gif_lib.h presence... $ECHO_C" >&6; }
14383 cat >conftest.$ac_ext <<_ACEOF
14384 /* confdefs.h. */
14385 _ACEOF
14386 cat confdefs.h >>conftest.$ac_ext
14387 cat >>conftest.$ac_ext <<_ACEOF
14388 /* end confdefs.h. */
14389 #include <gif_lib.h>
14390 _ACEOF
14391 if { (ac_try="$ac_cpp conftest.$ac_ext"
14392 case "(($ac_try" in
14393 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14394 *) ac_try_echo=$ac_try;;
14395 esac
14396 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14397 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
14398 ac_status=$?
14399 grep -v '^ *+' conftest.er1 >conftest.err
14400 rm -f conftest.er1
14401 cat conftest.err >&5
14402 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14403 (exit $ac_status); } >/dev/null && {
14404 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
14405 test ! -s conftest.err
14406 }; then
14407 ac_header_preproc=yes
14408 else
14409 echo "$as_me: failed program was:" >&5
14410 sed 's/^/| /' conftest.$ac_ext >&5
14412 ac_header_preproc=no
14415 rm -f conftest.err conftest.$ac_ext
14416 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
14417 echo "${ECHO_T}$ac_header_preproc" >&6; }
14419 # So? What about this header?
14420 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
14421 yes:no: )
14422 { echo "$as_me:$LINENO: WARNING: gif_lib.h: accepted by the compiler, rejected by the preprocessor!" >&5
14423 echo "$as_me: WARNING: gif_lib.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
14424 { echo "$as_me:$LINENO: WARNING: gif_lib.h: proceeding with the compiler's result" >&5
14425 echo "$as_me: WARNING: gif_lib.h: proceeding with the compiler's result" >&2;}
14426 ac_header_preproc=yes
14428 no:yes:* )
14429 { echo "$as_me:$LINENO: WARNING: gif_lib.h: present but cannot be compiled" >&5
14430 echo "$as_me: WARNING: gif_lib.h: present but cannot be compiled" >&2;}
14431 { echo "$as_me:$LINENO: WARNING: gif_lib.h: check for missing prerequisite headers?" >&5
14432 echo "$as_me: WARNING: gif_lib.h: check for missing prerequisite headers?" >&2;}
14433 { echo "$as_me:$LINENO: WARNING: gif_lib.h: see the Autoconf documentation" >&5
14434 echo "$as_me: WARNING: gif_lib.h: see the Autoconf documentation" >&2;}
14435 { echo "$as_me:$LINENO: WARNING: gif_lib.h: section \"Present But Cannot Be Compiled\"" >&5
14436 echo "$as_me: WARNING: gif_lib.h: section \"Present But Cannot Be Compiled\"" >&2;}
14437 { echo "$as_me:$LINENO: WARNING: gif_lib.h: proceeding with the preprocessor's result" >&5
14438 echo "$as_me: WARNING: gif_lib.h: proceeding with the preprocessor's result" >&2;}
14439 { echo "$as_me:$LINENO: WARNING: gif_lib.h: in the future, the compiler will take precedence" >&5
14440 echo "$as_me: WARNING: gif_lib.h: in the future, the compiler will take precedence" >&2;}
14443 esac
14444 { echo "$as_me:$LINENO: checking for gif_lib.h" >&5
14445 echo $ECHO_N "checking for gif_lib.h... $ECHO_C" >&6; }
14446 if test "${ac_cv_header_gif_lib_h+set}" = set; then
14447 echo $ECHO_N "(cached) $ECHO_C" >&6
14448 else
14449 ac_cv_header_gif_lib_h=$ac_header_preproc
14451 { echo "$as_me:$LINENO: result: $ac_cv_header_gif_lib_h" >&5
14452 echo "${ECHO_T}$ac_cv_header_gif_lib_h" >&6; }
14455 if test $ac_cv_header_gif_lib_h = yes; then
14456 # EGifPutExtensionLast only exists from version libungif-4.1.0b1.
14457 # Earlier versions can crash Emacs.
14458 { echo "$as_me:$LINENO: checking for EGifPutExtensionLast in -lgif" >&5
14459 echo $ECHO_N "checking for EGifPutExtensionLast in -lgif... $ECHO_C" >&6; }
14460 if test "${ac_cv_lib_gif_EGifPutExtensionLast+set}" = set; then
14461 echo $ECHO_N "(cached) $ECHO_C" >&6
14462 else
14463 ac_check_lib_save_LIBS=$LIBS
14464 LIBS="-lgif $LIBS"
14465 cat >conftest.$ac_ext <<_ACEOF
14466 /* confdefs.h. */
14467 _ACEOF
14468 cat confdefs.h >>conftest.$ac_ext
14469 cat >>conftest.$ac_ext <<_ACEOF
14470 /* end confdefs.h. */
14472 /* Override any GCC internal prototype to avoid an error.
14473 Use char because int might match the return type of a GCC
14474 builtin and then its argument prototype would still apply. */
14475 #ifdef __cplusplus
14476 extern "C"
14477 #endif
14478 char EGifPutExtensionLast ();
14480 main ()
14482 return EGifPutExtensionLast ();
14484 return 0;
14486 _ACEOF
14487 rm -f conftest.$ac_objext conftest$ac_exeext
14488 if { (ac_try="$ac_link"
14489 case "(($ac_try" in
14490 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14491 *) ac_try_echo=$ac_try;;
14492 esac
14493 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14494 (eval "$ac_link") 2>conftest.er1
14495 ac_status=$?
14496 grep -v '^ *+' conftest.er1 >conftest.err
14497 rm -f conftest.er1
14498 cat conftest.err >&5
14499 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14500 (exit $ac_status); } && {
14501 test -z "$ac_c_werror_flag" ||
14502 test ! -s conftest.err
14503 } && test -s conftest$ac_exeext &&
14504 $as_test_x conftest$ac_exeext; then
14505 ac_cv_lib_gif_EGifPutExtensionLast=yes
14506 else
14507 echo "$as_me: failed program was:" >&5
14508 sed 's/^/| /' conftest.$ac_ext >&5
14510 ac_cv_lib_gif_EGifPutExtensionLast=no
14513 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
14514 conftest$ac_exeext conftest.$ac_ext
14515 LIBS=$ac_check_lib_save_LIBS
14517 { echo "$as_me:$LINENO: result: $ac_cv_lib_gif_EGifPutExtensionLast" >&5
14518 echo "${ECHO_T}$ac_cv_lib_gif_EGifPutExtensionLast" >&6; }
14519 if test $ac_cv_lib_gif_EGifPutExtensionLast = yes; then
14520 HAVE_GIF=yes
14521 else
14522 try_libungif=yes
14529 if test "$HAVE_GIF" = yes; then
14530 ac_gif_lib_name="-lgif"
14533 # If gif_lib.h but no libgif, try libungif.
14534 if test x"$try_libungif" = xyes; then
14535 { echo "$as_me:$LINENO: checking for EGifPutExtensionLast in -lungif" >&5
14536 echo $ECHO_N "checking for EGifPutExtensionLast in -lungif... $ECHO_C" >&6; }
14537 if test "${ac_cv_lib_ungif_EGifPutExtensionLast+set}" = set; then
14538 echo $ECHO_N "(cached) $ECHO_C" >&6
14539 else
14540 ac_check_lib_save_LIBS=$LIBS
14541 LIBS="-lungif $LIBS"
14542 cat >conftest.$ac_ext <<_ACEOF
14543 /* confdefs.h. */
14544 _ACEOF
14545 cat confdefs.h >>conftest.$ac_ext
14546 cat >>conftest.$ac_ext <<_ACEOF
14547 /* end confdefs.h. */
14549 /* Override any GCC internal prototype to avoid an error.
14550 Use char because int might match the return type of a GCC
14551 builtin and then its argument prototype would still apply. */
14552 #ifdef __cplusplus
14553 extern "C"
14554 #endif
14555 char EGifPutExtensionLast ();
14557 main ()
14559 return EGifPutExtensionLast ();
14561 return 0;
14563 _ACEOF
14564 rm -f conftest.$ac_objext conftest$ac_exeext
14565 if { (ac_try="$ac_link"
14566 case "(($ac_try" in
14567 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14568 *) ac_try_echo=$ac_try;;
14569 esac
14570 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14571 (eval "$ac_link") 2>conftest.er1
14572 ac_status=$?
14573 grep -v '^ *+' conftest.er1 >conftest.err
14574 rm -f conftest.er1
14575 cat conftest.err >&5
14576 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14577 (exit $ac_status); } && {
14578 test -z "$ac_c_werror_flag" ||
14579 test ! -s conftest.err
14580 } && test -s conftest$ac_exeext &&
14581 $as_test_x conftest$ac_exeext; then
14582 ac_cv_lib_ungif_EGifPutExtensionLast=yes
14583 else
14584 echo "$as_me: failed program was:" >&5
14585 sed 's/^/| /' conftest.$ac_ext >&5
14587 ac_cv_lib_ungif_EGifPutExtensionLast=no
14590 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
14591 conftest$ac_exeext conftest.$ac_ext
14592 LIBS=$ac_check_lib_save_LIBS
14594 { echo "$as_me:$LINENO: result: $ac_cv_lib_ungif_EGifPutExtensionLast" >&5
14595 echo "${ECHO_T}$ac_cv_lib_ungif_EGifPutExtensionLast" >&6; }
14596 if test $ac_cv_lib_ungif_EGifPutExtensionLast = yes; then
14597 HAVE_GIF=yes
14601 if test "$HAVE_GIF" = yes; then
14603 cat >>confdefs.h <<\_ACEOF
14604 #define LIBGIF -lungif
14605 _ACEOF
14607 ac_gif_lib_name="-lungif"
14611 if test "${HAVE_GIF}" = "yes"; then
14613 cat >>confdefs.h <<\_ACEOF
14614 #define HAVE_GIF 1
14615 _ACEOF
14620 if test "${HAVE_X11}" = "yes"; then
14621 MISSING=""
14622 WITH_NO=""
14623 test "${with_xpm}" != "no" && test "${HAVE_XPM}" != "yes" &&
14624 MISSING="libXpm" && WITH_NO="--with-xpm=no"
14625 test "${with_jpeg}" != "no" && test "${HAVE_JPEG}" != "yes" &&
14626 MISSING="$MISSING libjpeg" && WITH_NO="$WITH_NO --with-jpeg=no"
14627 test "${with_png}" != "no" && test "${HAVE_PNG}" != "yes" &&
14628 MISSING="$MISSING libpng" && WITH_NO="$WITH_NO --with-png=no"
14629 test "${with_gif}" != "no" && test "${HAVE_GIF}" != "yes" &&
14630 MISSING="$MISSING libgif/libungif" && WITH_NO="$WITH_NO --with-gif=no"
14631 test "${with_tiff}" != "no" && test "${HAVE_TIFF}" != "yes" &&
14632 MISSING="$MISSING libtiff" && WITH_NO="$WITH_NO --with-tiff=no"
14634 if test "X${MISSING}" != X; then
14635 { { echo "$as_me:$LINENO: error: The following required libraries were not found:
14636 $MISSING
14637 Maybe some development libraries/packages are missing?
14638 If you don't want to link with them give
14639 $WITH_NO
14640 as options to configure" >&5
14641 echo "$as_me: error: The following required libraries were not found:
14642 $MISSING
14643 Maybe some development libraries/packages are missing?
14644 If you don't want to link with them give
14645 $WITH_NO
14646 as options to configure" >&2;}
14647 { (exit 1); exit 1; }; }
14651 ### Use -lgpm if available, unless `--with-gpm=no'.
14652 HAVE_GPM=no
14653 if test "${with_gpm}" != "no"; then
14654 if test "${ac_cv_header_gpm_h+set}" = set; then
14655 { echo "$as_me:$LINENO: checking for gpm.h" >&5
14656 echo $ECHO_N "checking for gpm.h... $ECHO_C" >&6; }
14657 if test "${ac_cv_header_gpm_h+set}" = set; then
14658 echo $ECHO_N "(cached) $ECHO_C" >&6
14660 { echo "$as_me:$LINENO: result: $ac_cv_header_gpm_h" >&5
14661 echo "${ECHO_T}$ac_cv_header_gpm_h" >&6; }
14662 else
14663 # Is the header compilable?
14664 { echo "$as_me:$LINENO: checking gpm.h usability" >&5
14665 echo $ECHO_N "checking gpm.h usability... $ECHO_C" >&6; }
14666 cat >conftest.$ac_ext <<_ACEOF
14667 /* confdefs.h. */
14668 _ACEOF
14669 cat confdefs.h >>conftest.$ac_ext
14670 cat >>conftest.$ac_ext <<_ACEOF
14671 /* end confdefs.h. */
14672 $ac_includes_default
14673 #include <gpm.h>
14674 _ACEOF
14675 rm -f conftest.$ac_objext
14676 if { (ac_try="$ac_compile"
14677 case "(($ac_try" in
14678 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14679 *) ac_try_echo=$ac_try;;
14680 esac
14681 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14682 (eval "$ac_compile") 2>conftest.er1
14683 ac_status=$?
14684 grep -v '^ *+' conftest.er1 >conftest.err
14685 rm -f conftest.er1
14686 cat conftest.err >&5
14687 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14688 (exit $ac_status); } && {
14689 test -z "$ac_c_werror_flag" ||
14690 test ! -s conftest.err
14691 } && test -s conftest.$ac_objext; then
14692 ac_header_compiler=yes
14693 else
14694 echo "$as_me: failed program was:" >&5
14695 sed 's/^/| /' conftest.$ac_ext >&5
14697 ac_header_compiler=no
14700 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14701 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
14702 echo "${ECHO_T}$ac_header_compiler" >&6; }
14704 # Is the header present?
14705 { echo "$as_me:$LINENO: checking gpm.h presence" >&5
14706 echo $ECHO_N "checking gpm.h presence... $ECHO_C" >&6; }
14707 cat >conftest.$ac_ext <<_ACEOF
14708 /* confdefs.h. */
14709 _ACEOF
14710 cat confdefs.h >>conftest.$ac_ext
14711 cat >>conftest.$ac_ext <<_ACEOF
14712 /* end confdefs.h. */
14713 #include <gpm.h>
14714 _ACEOF
14715 if { (ac_try="$ac_cpp conftest.$ac_ext"
14716 case "(($ac_try" in
14717 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14718 *) ac_try_echo=$ac_try;;
14719 esac
14720 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14721 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
14722 ac_status=$?
14723 grep -v '^ *+' conftest.er1 >conftest.err
14724 rm -f conftest.er1
14725 cat conftest.err >&5
14726 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14727 (exit $ac_status); } >/dev/null && {
14728 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
14729 test ! -s conftest.err
14730 }; then
14731 ac_header_preproc=yes
14732 else
14733 echo "$as_me: failed program was:" >&5
14734 sed 's/^/| /' conftest.$ac_ext >&5
14736 ac_header_preproc=no
14739 rm -f conftest.err conftest.$ac_ext
14740 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
14741 echo "${ECHO_T}$ac_header_preproc" >&6; }
14743 # So? What about this header?
14744 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
14745 yes:no: )
14746 { echo "$as_me:$LINENO: WARNING: gpm.h: accepted by the compiler, rejected by the preprocessor!" >&5
14747 echo "$as_me: WARNING: gpm.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
14748 { echo "$as_me:$LINENO: WARNING: gpm.h: proceeding with the compiler's result" >&5
14749 echo "$as_me: WARNING: gpm.h: proceeding with the compiler's result" >&2;}
14750 ac_header_preproc=yes
14752 no:yes:* )
14753 { echo "$as_me:$LINENO: WARNING: gpm.h: present but cannot be compiled" >&5
14754 echo "$as_me: WARNING: gpm.h: present but cannot be compiled" >&2;}
14755 { echo "$as_me:$LINENO: WARNING: gpm.h: check for missing prerequisite headers?" >&5
14756 echo "$as_me: WARNING: gpm.h: check for missing prerequisite headers?" >&2;}
14757 { echo "$as_me:$LINENO: WARNING: gpm.h: see the Autoconf documentation" >&5
14758 echo "$as_me: WARNING: gpm.h: see the Autoconf documentation" >&2;}
14759 { echo "$as_me:$LINENO: WARNING: gpm.h: section \"Present But Cannot Be Compiled\"" >&5
14760 echo "$as_me: WARNING: gpm.h: section \"Present But Cannot Be Compiled\"" >&2;}
14761 { echo "$as_me:$LINENO: WARNING: gpm.h: proceeding with the preprocessor's result" >&5
14762 echo "$as_me: WARNING: gpm.h: proceeding with the preprocessor's result" >&2;}
14763 { echo "$as_me:$LINENO: WARNING: gpm.h: in the future, the compiler will take precedence" >&5
14764 echo "$as_me: WARNING: gpm.h: in the future, the compiler will take precedence" >&2;}
14767 esac
14768 { echo "$as_me:$LINENO: checking for gpm.h" >&5
14769 echo $ECHO_N "checking for gpm.h... $ECHO_C" >&6; }
14770 if test "${ac_cv_header_gpm_h+set}" = set; then
14771 echo $ECHO_N "(cached) $ECHO_C" >&6
14772 else
14773 ac_cv_header_gpm_h=$ac_header_preproc
14775 { echo "$as_me:$LINENO: result: $ac_cv_header_gpm_h" >&5
14776 echo "${ECHO_T}$ac_cv_header_gpm_h" >&6; }
14779 if test $ac_cv_header_gpm_h = yes; then
14780 { echo "$as_me:$LINENO: checking for Gpm_Open in -lgpm" >&5
14781 echo $ECHO_N "checking for Gpm_Open in -lgpm... $ECHO_C" >&6; }
14782 if test "${ac_cv_lib_gpm_Gpm_Open+set}" = set; then
14783 echo $ECHO_N "(cached) $ECHO_C" >&6
14784 else
14785 ac_check_lib_save_LIBS=$LIBS
14786 LIBS="-lgpm $LIBS"
14787 cat >conftest.$ac_ext <<_ACEOF
14788 /* confdefs.h. */
14789 _ACEOF
14790 cat confdefs.h >>conftest.$ac_ext
14791 cat >>conftest.$ac_ext <<_ACEOF
14792 /* end confdefs.h. */
14794 /* Override any GCC internal prototype to avoid an error.
14795 Use char because int might match the return type of a GCC
14796 builtin and then its argument prototype would still apply. */
14797 #ifdef __cplusplus
14798 extern "C"
14799 #endif
14800 char Gpm_Open ();
14802 main ()
14804 return Gpm_Open ();
14806 return 0;
14808 _ACEOF
14809 rm -f conftest.$ac_objext conftest$ac_exeext
14810 if { (ac_try="$ac_link"
14811 case "(($ac_try" in
14812 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14813 *) ac_try_echo=$ac_try;;
14814 esac
14815 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14816 (eval "$ac_link") 2>conftest.er1
14817 ac_status=$?
14818 grep -v '^ *+' conftest.er1 >conftest.err
14819 rm -f conftest.er1
14820 cat conftest.err >&5
14821 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14822 (exit $ac_status); } && {
14823 test -z "$ac_c_werror_flag" ||
14824 test ! -s conftest.err
14825 } && test -s conftest$ac_exeext &&
14826 $as_test_x conftest$ac_exeext; then
14827 ac_cv_lib_gpm_Gpm_Open=yes
14828 else
14829 echo "$as_me: failed program was:" >&5
14830 sed 's/^/| /' conftest.$ac_ext >&5
14832 ac_cv_lib_gpm_Gpm_Open=no
14835 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
14836 conftest$ac_exeext conftest.$ac_ext
14837 LIBS=$ac_check_lib_save_LIBS
14839 { echo "$as_me:$LINENO: result: $ac_cv_lib_gpm_Gpm_Open" >&5
14840 echo "${ECHO_T}$ac_cv_lib_gpm_Gpm_Open" >&6; }
14841 if test $ac_cv_lib_gpm_Gpm_Open = yes; then
14842 HAVE_GPM=yes
14850 if test "${HAVE_GPM}" = "yes"; then
14852 cat >>confdefs.h <<\_ACEOF
14853 #define HAVE_GPM 1
14854 _ACEOF
14858 if test "${ac_cv_header_malloc_malloc_h+set}" = set; then
14859 { echo "$as_me:$LINENO: checking for malloc/malloc.h" >&5
14860 echo $ECHO_N "checking for malloc/malloc.h... $ECHO_C" >&6; }
14861 if test "${ac_cv_header_malloc_malloc_h+set}" = set; then
14862 echo $ECHO_N "(cached) $ECHO_C" >&6
14864 { echo "$as_me:$LINENO: result: $ac_cv_header_malloc_malloc_h" >&5
14865 echo "${ECHO_T}$ac_cv_header_malloc_malloc_h" >&6; }
14866 else
14867 # Is the header compilable?
14868 { echo "$as_me:$LINENO: checking malloc/malloc.h usability" >&5
14869 echo $ECHO_N "checking malloc/malloc.h usability... $ECHO_C" >&6; }
14870 cat >conftest.$ac_ext <<_ACEOF
14871 /* confdefs.h. */
14872 _ACEOF
14873 cat confdefs.h >>conftest.$ac_ext
14874 cat >>conftest.$ac_ext <<_ACEOF
14875 /* end confdefs.h. */
14876 $ac_includes_default
14877 #include <malloc/malloc.h>
14878 _ACEOF
14879 rm -f conftest.$ac_objext
14880 if { (ac_try="$ac_compile"
14881 case "(($ac_try" in
14882 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14883 *) ac_try_echo=$ac_try;;
14884 esac
14885 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14886 (eval "$ac_compile") 2>conftest.er1
14887 ac_status=$?
14888 grep -v '^ *+' conftest.er1 >conftest.err
14889 rm -f conftest.er1
14890 cat conftest.err >&5
14891 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14892 (exit $ac_status); } && {
14893 test -z "$ac_c_werror_flag" ||
14894 test ! -s conftest.err
14895 } && test -s conftest.$ac_objext; then
14896 ac_header_compiler=yes
14897 else
14898 echo "$as_me: failed program was:" >&5
14899 sed 's/^/| /' conftest.$ac_ext >&5
14901 ac_header_compiler=no
14904 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14905 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
14906 echo "${ECHO_T}$ac_header_compiler" >&6; }
14908 # Is the header present?
14909 { echo "$as_me:$LINENO: checking malloc/malloc.h presence" >&5
14910 echo $ECHO_N "checking malloc/malloc.h presence... $ECHO_C" >&6; }
14911 cat >conftest.$ac_ext <<_ACEOF
14912 /* confdefs.h. */
14913 _ACEOF
14914 cat confdefs.h >>conftest.$ac_ext
14915 cat >>conftest.$ac_ext <<_ACEOF
14916 /* end confdefs.h. */
14917 #include <malloc/malloc.h>
14918 _ACEOF
14919 if { (ac_try="$ac_cpp conftest.$ac_ext"
14920 case "(($ac_try" in
14921 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14922 *) ac_try_echo=$ac_try;;
14923 esac
14924 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14925 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
14926 ac_status=$?
14927 grep -v '^ *+' conftest.er1 >conftest.err
14928 rm -f conftest.er1
14929 cat conftest.err >&5
14930 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14931 (exit $ac_status); } >/dev/null && {
14932 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
14933 test ! -s conftest.err
14934 }; then
14935 ac_header_preproc=yes
14936 else
14937 echo "$as_me: failed program was:" >&5
14938 sed 's/^/| /' conftest.$ac_ext >&5
14940 ac_header_preproc=no
14943 rm -f conftest.err conftest.$ac_ext
14944 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
14945 echo "${ECHO_T}$ac_header_preproc" >&6; }
14947 # So? What about this header?
14948 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
14949 yes:no: )
14950 { echo "$as_me:$LINENO: WARNING: malloc/malloc.h: accepted by the compiler, rejected by the preprocessor!" >&5
14951 echo "$as_me: WARNING: malloc/malloc.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
14952 { echo "$as_me:$LINENO: WARNING: malloc/malloc.h: proceeding with the compiler's result" >&5
14953 echo "$as_me: WARNING: malloc/malloc.h: proceeding with the compiler's result" >&2;}
14954 ac_header_preproc=yes
14956 no:yes:* )
14957 { echo "$as_me:$LINENO: WARNING: malloc/malloc.h: present but cannot be compiled" >&5
14958 echo "$as_me: WARNING: malloc/malloc.h: present but cannot be compiled" >&2;}
14959 { echo "$as_me:$LINENO: WARNING: malloc/malloc.h: check for missing prerequisite headers?" >&5
14960 echo "$as_me: WARNING: malloc/malloc.h: check for missing prerequisite headers?" >&2;}
14961 { echo "$as_me:$LINENO: WARNING: malloc/malloc.h: see the Autoconf documentation" >&5
14962 echo "$as_me: WARNING: malloc/malloc.h: see the Autoconf documentation" >&2;}
14963 { echo "$as_me:$LINENO: WARNING: malloc/malloc.h: section \"Present But Cannot Be Compiled\"" >&5
14964 echo "$as_me: WARNING: malloc/malloc.h: section \"Present But Cannot Be Compiled\"" >&2;}
14965 { echo "$as_me:$LINENO: WARNING: malloc/malloc.h: proceeding with the preprocessor's result" >&5
14966 echo "$as_me: WARNING: malloc/malloc.h: proceeding with the preprocessor's result" >&2;}
14967 { echo "$as_me:$LINENO: WARNING: malloc/malloc.h: in the future, the compiler will take precedence" >&5
14968 echo "$as_me: WARNING: malloc/malloc.h: in the future, the compiler will take precedence" >&2;}
14971 esac
14972 { echo "$as_me:$LINENO: checking for malloc/malloc.h" >&5
14973 echo $ECHO_N "checking for malloc/malloc.h... $ECHO_C" >&6; }
14974 if test "${ac_cv_header_malloc_malloc_h+set}" = set; then
14975 echo $ECHO_N "(cached) $ECHO_C" >&6
14976 else
14977 ac_cv_header_malloc_malloc_h=$ac_header_preproc
14979 { echo "$as_me:$LINENO: result: $ac_cv_header_malloc_malloc_h" >&5
14980 echo "${ECHO_T}$ac_cv_header_malloc_malloc_h" >&6; }
14983 if test $ac_cv_header_malloc_malloc_h = yes; then
14985 cat >>confdefs.h <<\_ACEOF
14986 #define HAVE_MALLOC_MALLOC_H 1
14987 _ACEOF
14993 ### Use Mac OS X Carbon API to implement GUI.
14994 if test "${HAVE_CARBON}" = "yes"; then
14996 cat >>confdefs.h <<\_ACEOF
14997 #define HAVE_CARBON 1
14998 _ACEOF
15001 for ac_header in AvailabilityMacros.h
15003 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
15004 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15005 { echo "$as_me:$LINENO: checking for $ac_header" >&5
15006 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
15007 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15008 echo $ECHO_N "(cached) $ECHO_C" >&6
15010 ac_res=`eval echo '${'$as_ac_Header'}'`
15011 { echo "$as_me:$LINENO: result: $ac_res" >&5
15012 echo "${ECHO_T}$ac_res" >&6; }
15013 else
15014 # Is the header compilable?
15015 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
15016 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
15017 cat >conftest.$ac_ext <<_ACEOF
15018 /* confdefs.h. */
15019 _ACEOF
15020 cat confdefs.h >>conftest.$ac_ext
15021 cat >>conftest.$ac_ext <<_ACEOF
15022 /* end confdefs.h. */
15023 $ac_includes_default
15024 #include <$ac_header>
15025 _ACEOF
15026 rm -f conftest.$ac_objext
15027 if { (ac_try="$ac_compile"
15028 case "(($ac_try" in
15029 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15030 *) ac_try_echo=$ac_try;;
15031 esac
15032 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15033 (eval "$ac_compile") 2>conftest.er1
15034 ac_status=$?
15035 grep -v '^ *+' conftest.er1 >conftest.err
15036 rm -f conftest.er1
15037 cat conftest.err >&5
15038 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15039 (exit $ac_status); } && {
15040 test -z "$ac_c_werror_flag" ||
15041 test ! -s conftest.err
15042 } && test -s conftest.$ac_objext; then
15043 ac_header_compiler=yes
15044 else
15045 echo "$as_me: failed program was:" >&5
15046 sed 's/^/| /' conftest.$ac_ext >&5
15048 ac_header_compiler=no
15051 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15052 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
15053 echo "${ECHO_T}$ac_header_compiler" >&6; }
15055 # Is the header present?
15056 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
15057 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
15058 cat >conftest.$ac_ext <<_ACEOF
15059 /* confdefs.h. */
15060 _ACEOF
15061 cat confdefs.h >>conftest.$ac_ext
15062 cat >>conftest.$ac_ext <<_ACEOF
15063 /* end confdefs.h. */
15064 #include <$ac_header>
15065 _ACEOF
15066 if { (ac_try="$ac_cpp conftest.$ac_ext"
15067 case "(($ac_try" in
15068 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15069 *) ac_try_echo=$ac_try;;
15070 esac
15071 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15072 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
15073 ac_status=$?
15074 grep -v '^ *+' conftest.er1 >conftest.err
15075 rm -f conftest.er1
15076 cat conftest.err >&5
15077 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15078 (exit $ac_status); } >/dev/null && {
15079 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
15080 test ! -s conftest.err
15081 }; then
15082 ac_header_preproc=yes
15083 else
15084 echo "$as_me: failed program was:" >&5
15085 sed 's/^/| /' conftest.$ac_ext >&5
15087 ac_header_preproc=no
15090 rm -f conftest.err conftest.$ac_ext
15091 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
15092 echo "${ECHO_T}$ac_header_preproc" >&6; }
15094 # So? What about this header?
15095 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
15096 yes:no: )
15097 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
15098 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
15099 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
15100 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
15101 ac_header_preproc=yes
15103 no:yes:* )
15104 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
15105 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
15106 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
15107 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
15108 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
15109 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
15110 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
15111 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
15112 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
15113 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
15114 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
15115 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
15118 esac
15119 { echo "$as_me:$LINENO: checking for $ac_header" >&5
15120 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
15121 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15122 echo $ECHO_N "(cached) $ECHO_C" >&6
15123 else
15124 eval "$as_ac_Header=\$ac_header_preproc"
15126 ac_res=`eval echo '${'$as_ac_Header'}'`
15127 { echo "$as_me:$LINENO: result: $ac_res" >&5
15128 echo "${ECHO_T}$ac_res" >&6; }
15131 if test `eval echo '${'$as_ac_Header'}'` = yes; then
15132 cat >>confdefs.h <<_ACEOF
15133 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
15134 _ACEOF
15138 done
15140 ## Specify the install directory
15141 carbon_appdir=
15142 if test "${carbon_appdir_x}" != ""; then
15143 case ${carbon_appdir_x} in
15144 y | ye | yes) carbon_appdir=/Applications ;;
15145 * ) carbon_appdir=${carbon_appdir_x} ;;
15146 esac
15148 # We also have mouse menus.
15149 HAVE_MENUS=yes
15151 ### Use NeXTstep API to implement GUI.
15152 if test "${HAVE_NS}" = "yes"; then
15154 cat >>confdefs.h <<\_ACEOF
15155 #define HAVE_NS 1
15156 _ACEOF
15158 ## Specify the install directory
15159 ns_appdir=
15160 if test "${ns_appdir_x}" != ""; then
15161 case ${ns_appdir_x} in
15162 y | ye | yes) ns_appdir=/Applications ;;
15163 * ) ns_appdir=${ns_appdir_x} ;;
15164 esac
15166 if test "${COCOA}" = "yes"; then
15168 cat >>confdefs.h <<\_ACEOF
15169 #define NS_IMPL_COCOA 1
15170 _ACEOF
15173 if test "${EN_COCOA_EXPERIMENTAL_CTRL_G}" = "yes"; then
15175 cat >>confdefs.h <<\_ACEOF
15176 #define COCOA_EXPERIMENTAL_CTRL_G 1
15177 _ACEOF
15180 if test "${GNUSTEP}" = "yes"; then
15182 cat >>confdefs.h <<\_ACEOF
15183 #define NS_IMPL_GNUSTEP 1
15184 _ACEOF
15187 # We also have mouse menus.
15188 HAVE_MENUS=yes
15192 ### Use session management (-lSM -lICE) if available
15193 HAVE_X_SM=no
15194 if test "${HAVE_X11}" = "yes"; then
15195 if test "${ac_cv_header_X11_SM_SMlib_h+set}" = set; then
15196 { echo "$as_me:$LINENO: checking for X11/SM/SMlib.h" >&5
15197 echo $ECHO_N "checking for X11/SM/SMlib.h... $ECHO_C" >&6; }
15198 if test "${ac_cv_header_X11_SM_SMlib_h+set}" = set; then
15199 echo $ECHO_N "(cached) $ECHO_C" >&6
15201 { echo "$as_me:$LINENO: result: $ac_cv_header_X11_SM_SMlib_h" >&5
15202 echo "${ECHO_T}$ac_cv_header_X11_SM_SMlib_h" >&6; }
15203 else
15204 # Is the header compilable?
15205 { echo "$as_me:$LINENO: checking X11/SM/SMlib.h usability" >&5
15206 echo $ECHO_N "checking X11/SM/SMlib.h usability... $ECHO_C" >&6; }
15207 cat >conftest.$ac_ext <<_ACEOF
15208 /* confdefs.h. */
15209 _ACEOF
15210 cat confdefs.h >>conftest.$ac_ext
15211 cat >>conftest.$ac_ext <<_ACEOF
15212 /* end confdefs.h. */
15213 $ac_includes_default
15214 #include <X11/SM/SMlib.h>
15215 _ACEOF
15216 rm -f conftest.$ac_objext
15217 if { (ac_try="$ac_compile"
15218 case "(($ac_try" in
15219 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15220 *) ac_try_echo=$ac_try;;
15221 esac
15222 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15223 (eval "$ac_compile") 2>conftest.er1
15224 ac_status=$?
15225 grep -v '^ *+' conftest.er1 >conftest.err
15226 rm -f conftest.er1
15227 cat conftest.err >&5
15228 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15229 (exit $ac_status); } && {
15230 test -z "$ac_c_werror_flag" ||
15231 test ! -s conftest.err
15232 } && test -s conftest.$ac_objext; then
15233 ac_header_compiler=yes
15234 else
15235 echo "$as_me: failed program was:" >&5
15236 sed 's/^/| /' conftest.$ac_ext >&5
15238 ac_header_compiler=no
15241 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15242 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
15243 echo "${ECHO_T}$ac_header_compiler" >&6; }
15245 # Is the header present?
15246 { echo "$as_me:$LINENO: checking X11/SM/SMlib.h presence" >&5
15247 echo $ECHO_N "checking X11/SM/SMlib.h presence... $ECHO_C" >&6; }
15248 cat >conftest.$ac_ext <<_ACEOF
15249 /* confdefs.h. */
15250 _ACEOF
15251 cat confdefs.h >>conftest.$ac_ext
15252 cat >>conftest.$ac_ext <<_ACEOF
15253 /* end confdefs.h. */
15254 #include <X11/SM/SMlib.h>
15255 _ACEOF
15256 if { (ac_try="$ac_cpp conftest.$ac_ext"
15257 case "(($ac_try" in
15258 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15259 *) ac_try_echo=$ac_try;;
15260 esac
15261 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15262 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
15263 ac_status=$?
15264 grep -v '^ *+' conftest.er1 >conftest.err
15265 rm -f conftest.er1
15266 cat conftest.err >&5
15267 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15268 (exit $ac_status); } >/dev/null && {
15269 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
15270 test ! -s conftest.err
15271 }; then
15272 ac_header_preproc=yes
15273 else
15274 echo "$as_me: failed program was:" >&5
15275 sed 's/^/| /' conftest.$ac_ext >&5
15277 ac_header_preproc=no
15280 rm -f conftest.err conftest.$ac_ext
15281 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
15282 echo "${ECHO_T}$ac_header_preproc" >&6; }
15284 # So? What about this header?
15285 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
15286 yes:no: )
15287 { echo "$as_me:$LINENO: WARNING: X11/SM/SMlib.h: accepted by the compiler, rejected by the preprocessor!" >&5
15288 echo "$as_me: WARNING: X11/SM/SMlib.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
15289 { echo "$as_me:$LINENO: WARNING: X11/SM/SMlib.h: proceeding with the compiler's result" >&5
15290 echo "$as_me: WARNING: X11/SM/SMlib.h: proceeding with the compiler's result" >&2;}
15291 ac_header_preproc=yes
15293 no:yes:* )
15294 { echo "$as_me:$LINENO: WARNING: X11/SM/SMlib.h: present but cannot be compiled" >&5
15295 echo "$as_me: WARNING: X11/SM/SMlib.h: present but cannot be compiled" >&2;}
15296 { echo "$as_me:$LINENO: WARNING: X11/SM/SMlib.h: check for missing prerequisite headers?" >&5
15297 echo "$as_me: WARNING: X11/SM/SMlib.h: check for missing prerequisite headers?" >&2;}
15298 { echo "$as_me:$LINENO: WARNING: X11/SM/SMlib.h: see the Autoconf documentation" >&5
15299 echo "$as_me: WARNING: X11/SM/SMlib.h: see the Autoconf documentation" >&2;}
15300 { echo "$as_me:$LINENO: WARNING: X11/SM/SMlib.h: section \"Present But Cannot Be Compiled\"" >&5
15301 echo "$as_me: WARNING: X11/SM/SMlib.h: section \"Present But Cannot Be Compiled\"" >&2;}
15302 { echo "$as_me:$LINENO: WARNING: X11/SM/SMlib.h: proceeding with the preprocessor's result" >&5
15303 echo "$as_me: WARNING: X11/SM/SMlib.h: proceeding with the preprocessor's result" >&2;}
15304 { echo "$as_me:$LINENO: WARNING: X11/SM/SMlib.h: in the future, the compiler will take precedence" >&5
15305 echo "$as_me: WARNING: X11/SM/SMlib.h: in the future, the compiler will take precedence" >&2;}
15308 esac
15309 { echo "$as_me:$LINENO: checking for X11/SM/SMlib.h" >&5
15310 echo $ECHO_N "checking for X11/SM/SMlib.h... $ECHO_C" >&6; }
15311 if test "${ac_cv_header_X11_SM_SMlib_h+set}" = set; then
15312 echo $ECHO_N "(cached) $ECHO_C" >&6
15313 else
15314 ac_cv_header_X11_SM_SMlib_h=$ac_header_preproc
15316 { echo "$as_me:$LINENO: result: $ac_cv_header_X11_SM_SMlib_h" >&5
15317 echo "${ECHO_T}$ac_cv_header_X11_SM_SMlib_h" >&6; }
15320 if test $ac_cv_header_X11_SM_SMlib_h = yes; then
15321 { echo "$as_me:$LINENO: checking for SmcOpenConnection in -lSM" >&5
15322 echo $ECHO_N "checking for SmcOpenConnection in -lSM... $ECHO_C" >&6; }
15323 if test "${ac_cv_lib_SM_SmcOpenConnection+set}" = set; then
15324 echo $ECHO_N "(cached) $ECHO_C" >&6
15325 else
15326 ac_check_lib_save_LIBS=$LIBS
15327 LIBS="-lSM -lICE $LIBS"
15328 cat >conftest.$ac_ext <<_ACEOF
15329 /* confdefs.h. */
15330 _ACEOF
15331 cat confdefs.h >>conftest.$ac_ext
15332 cat >>conftest.$ac_ext <<_ACEOF
15333 /* end confdefs.h. */
15335 /* Override any GCC internal prototype to avoid an error.
15336 Use char because int might match the return type of a GCC
15337 builtin and then its argument prototype would still apply. */
15338 #ifdef __cplusplus
15339 extern "C"
15340 #endif
15341 char SmcOpenConnection ();
15343 main ()
15345 return SmcOpenConnection ();
15347 return 0;
15349 _ACEOF
15350 rm -f conftest.$ac_objext conftest$ac_exeext
15351 if { (ac_try="$ac_link"
15352 case "(($ac_try" in
15353 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15354 *) ac_try_echo=$ac_try;;
15355 esac
15356 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15357 (eval "$ac_link") 2>conftest.er1
15358 ac_status=$?
15359 grep -v '^ *+' conftest.er1 >conftest.err
15360 rm -f conftest.er1
15361 cat conftest.err >&5
15362 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15363 (exit $ac_status); } && {
15364 test -z "$ac_c_werror_flag" ||
15365 test ! -s conftest.err
15366 } && test -s conftest$ac_exeext &&
15367 $as_test_x conftest$ac_exeext; then
15368 ac_cv_lib_SM_SmcOpenConnection=yes
15369 else
15370 echo "$as_me: failed program was:" >&5
15371 sed 's/^/| /' conftest.$ac_ext >&5
15373 ac_cv_lib_SM_SmcOpenConnection=no
15376 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
15377 conftest$ac_exeext conftest.$ac_ext
15378 LIBS=$ac_check_lib_save_LIBS
15380 { echo "$as_me:$LINENO: result: $ac_cv_lib_SM_SmcOpenConnection" >&5
15381 echo "${ECHO_T}$ac_cv_lib_SM_SmcOpenConnection" >&6; }
15382 if test $ac_cv_lib_SM_SmcOpenConnection = yes; then
15383 HAVE_X_SM=yes
15390 if test "${HAVE_X_SM}" = "yes"; then
15392 cat >>confdefs.h <<\_ACEOF
15393 #define HAVE_X_SM 1
15394 _ACEOF
15396 case "$LIBS" in
15397 *-lSM*) ;;
15398 *) LIBS="-lSM -lICE $LIBS" ;;
15399 esac
15403 # If netdb.h doesn't declare h_errno, we must declare it by hand.
15404 { echo "$as_me:$LINENO: checking whether netdb declares h_errno" >&5
15405 echo $ECHO_N "checking whether netdb declares h_errno... $ECHO_C" >&6; }
15406 if test "${emacs_cv_netdb_declares_h_errno+set}" = set; then
15407 echo $ECHO_N "(cached) $ECHO_C" >&6
15408 else
15409 cat >conftest.$ac_ext <<_ACEOF
15410 /* confdefs.h. */
15411 _ACEOF
15412 cat confdefs.h >>conftest.$ac_ext
15413 cat >>conftest.$ac_ext <<_ACEOF
15414 /* end confdefs.h. */
15415 #include <netdb.h>
15417 main ()
15419 return h_errno;
15421 return 0;
15423 _ACEOF
15424 rm -f conftest.$ac_objext conftest$ac_exeext
15425 if { (ac_try="$ac_link"
15426 case "(($ac_try" in
15427 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15428 *) ac_try_echo=$ac_try;;
15429 esac
15430 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15431 (eval "$ac_link") 2>conftest.er1
15432 ac_status=$?
15433 grep -v '^ *+' conftest.er1 >conftest.err
15434 rm -f conftest.er1
15435 cat conftest.err >&5
15436 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15437 (exit $ac_status); } && {
15438 test -z "$ac_c_werror_flag" ||
15439 test ! -s conftest.err
15440 } && test -s conftest$ac_exeext &&
15441 $as_test_x conftest$ac_exeext; then
15442 emacs_cv_netdb_declares_h_errno=yes
15443 else
15444 echo "$as_me: failed program was:" >&5
15445 sed 's/^/| /' conftest.$ac_ext >&5
15447 emacs_cv_netdb_declares_h_errno=no
15450 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
15451 conftest$ac_exeext conftest.$ac_ext
15453 { echo "$as_me:$LINENO: result: $emacs_cv_netdb_declares_h_errno" >&5
15454 echo "${ECHO_T}$emacs_cv_netdb_declares_h_errno" >&6; }
15455 if test $emacs_cv_netdb_declares_h_errno = yes; then
15457 cat >>confdefs.h <<\_ACEOF
15458 #define HAVE_H_ERRNO 1
15459 _ACEOF
15463 # The Ultrix 4.2 mips builtin alloca declared by alloca.h only works
15464 # for constant arguments. Useless!
15465 { echo "$as_me:$LINENO: checking for working alloca.h" >&5
15466 echo $ECHO_N "checking for working alloca.h... $ECHO_C" >&6; }
15467 if test "${ac_cv_working_alloca_h+set}" = set; then
15468 echo $ECHO_N "(cached) $ECHO_C" >&6
15469 else
15470 cat >conftest.$ac_ext <<_ACEOF
15471 /* confdefs.h. */
15472 _ACEOF
15473 cat confdefs.h >>conftest.$ac_ext
15474 cat >>conftest.$ac_ext <<_ACEOF
15475 /* end confdefs.h. */
15476 #include <alloca.h>
15478 main ()
15480 char *p = (char *) alloca (2 * sizeof (int));
15481 if (p) return 0;
15483 return 0;
15485 _ACEOF
15486 rm -f conftest.$ac_objext conftest$ac_exeext
15487 if { (ac_try="$ac_link"
15488 case "(($ac_try" in
15489 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15490 *) ac_try_echo=$ac_try;;
15491 esac
15492 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15493 (eval "$ac_link") 2>conftest.er1
15494 ac_status=$?
15495 grep -v '^ *+' conftest.er1 >conftest.err
15496 rm -f conftest.er1
15497 cat conftest.err >&5
15498 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15499 (exit $ac_status); } && {
15500 test -z "$ac_c_werror_flag" ||
15501 test ! -s conftest.err
15502 } && test -s conftest$ac_exeext &&
15503 $as_test_x conftest$ac_exeext; then
15504 ac_cv_working_alloca_h=yes
15505 else
15506 echo "$as_me: failed program was:" >&5
15507 sed 's/^/| /' conftest.$ac_ext >&5
15509 ac_cv_working_alloca_h=no
15512 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
15513 conftest$ac_exeext conftest.$ac_ext
15515 { echo "$as_me:$LINENO: result: $ac_cv_working_alloca_h" >&5
15516 echo "${ECHO_T}$ac_cv_working_alloca_h" >&6; }
15517 if test $ac_cv_working_alloca_h = yes; then
15519 cat >>confdefs.h <<\_ACEOF
15520 #define HAVE_ALLOCA_H 1
15521 _ACEOF
15525 { echo "$as_me:$LINENO: checking for alloca" >&5
15526 echo $ECHO_N "checking for alloca... $ECHO_C" >&6; }
15527 if test "${ac_cv_func_alloca_works+set}" = set; then
15528 echo $ECHO_N "(cached) $ECHO_C" >&6
15529 else
15530 cat >conftest.$ac_ext <<_ACEOF
15531 /* confdefs.h. */
15532 _ACEOF
15533 cat confdefs.h >>conftest.$ac_ext
15534 cat >>conftest.$ac_ext <<_ACEOF
15535 /* end confdefs.h. */
15536 #ifdef __GNUC__
15537 # define alloca __builtin_alloca
15538 #else
15539 # ifdef _MSC_VER
15540 # include <malloc.h>
15541 # define alloca _alloca
15542 # else
15543 # ifdef HAVE_ALLOCA_H
15544 # include <alloca.h>
15545 # else
15546 # ifdef _AIX
15547 #pragma alloca
15548 # else
15549 # ifndef alloca /* predefined by HP cc +Olibcalls */
15550 char *alloca ();
15551 # endif
15552 # endif
15553 # endif
15554 # endif
15555 #endif
15558 main ()
15560 char *p = (char *) alloca (1);
15561 if (p) return 0;
15563 return 0;
15565 _ACEOF
15566 rm -f conftest.$ac_objext conftest$ac_exeext
15567 if { (ac_try="$ac_link"
15568 case "(($ac_try" in
15569 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15570 *) ac_try_echo=$ac_try;;
15571 esac
15572 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15573 (eval "$ac_link") 2>conftest.er1
15574 ac_status=$?
15575 grep -v '^ *+' conftest.er1 >conftest.err
15576 rm -f conftest.er1
15577 cat conftest.err >&5
15578 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15579 (exit $ac_status); } && {
15580 test -z "$ac_c_werror_flag" ||
15581 test ! -s conftest.err
15582 } && test -s conftest$ac_exeext &&
15583 $as_test_x conftest$ac_exeext; then
15584 ac_cv_func_alloca_works=yes
15585 else
15586 echo "$as_me: failed program was:" >&5
15587 sed 's/^/| /' conftest.$ac_ext >&5
15589 ac_cv_func_alloca_works=no
15592 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
15593 conftest$ac_exeext conftest.$ac_ext
15595 { echo "$as_me:$LINENO: result: $ac_cv_func_alloca_works" >&5
15596 echo "${ECHO_T}$ac_cv_func_alloca_works" >&6; }
15598 if test $ac_cv_func_alloca_works = yes; then
15600 cat >>confdefs.h <<\_ACEOF
15601 #define HAVE_ALLOCA 1
15602 _ACEOF
15604 else
15605 # The SVR3 libPW and SVR4 libucb both contain incompatible functions
15606 # that cause trouble. Some versions do not even contain alloca or
15607 # contain a buggy version. If you still want to use their alloca,
15608 # use ar to extract alloca.o from them instead of compiling alloca.c.
15610 ALLOCA=\${LIBOBJDIR}alloca.$ac_objext
15612 cat >>confdefs.h <<\_ACEOF
15613 #define C_ALLOCA 1
15614 _ACEOF
15617 { echo "$as_me:$LINENO: checking whether \`alloca.c' needs Cray hooks" >&5
15618 echo $ECHO_N "checking whether \`alloca.c' needs Cray hooks... $ECHO_C" >&6; }
15619 if test "${ac_cv_os_cray+set}" = set; then
15620 echo $ECHO_N "(cached) $ECHO_C" >&6
15621 else
15622 cat >conftest.$ac_ext <<_ACEOF
15623 /* confdefs.h. */
15624 _ACEOF
15625 cat confdefs.h >>conftest.$ac_ext
15626 cat >>conftest.$ac_ext <<_ACEOF
15627 /* end confdefs.h. */
15628 #if defined CRAY && ! defined CRAY2
15629 webecray
15630 #else
15631 wenotbecray
15632 #endif
15634 _ACEOF
15635 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
15636 $EGREP "webecray" >/dev/null 2>&1; then
15637 ac_cv_os_cray=yes
15638 else
15639 ac_cv_os_cray=no
15641 rm -f conftest*
15644 { echo "$as_me:$LINENO: result: $ac_cv_os_cray" >&5
15645 echo "${ECHO_T}$ac_cv_os_cray" >&6; }
15646 if test $ac_cv_os_cray = yes; then
15647 for ac_func in _getb67 GETB67 getb67; do
15648 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
15649 { echo "$as_me:$LINENO: checking for $ac_func" >&5
15650 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
15651 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
15652 echo $ECHO_N "(cached) $ECHO_C" >&6
15653 else
15654 cat >conftest.$ac_ext <<_ACEOF
15655 /* confdefs.h. */
15656 _ACEOF
15657 cat confdefs.h >>conftest.$ac_ext
15658 cat >>conftest.$ac_ext <<_ACEOF
15659 /* end confdefs.h. */
15660 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
15661 For example, HP-UX 11i <limits.h> declares gettimeofday. */
15662 #define $ac_func innocuous_$ac_func
15664 /* System header to define __stub macros and hopefully few prototypes,
15665 which can conflict with char $ac_func (); below.
15666 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
15667 <limits.h> exists even on freestanding compilers. */
15669 #ifdef __STDC__
15670 # include <limits.h>
15671 #else
15672 # include <assert.h>
15673 #endif
15675 #undef $ac_func
15677 /* Override any GCC internal prototype to avoid an error.
15678 Use char because int might match the return type of a GCC
15679 builtin and then its argument prototype would still apply. */
15680 #ifdef __cplusplus
15681 extern "C"
15682 #endif
15683 char $ac_func ();
15684 /* The GNU C library defines this for functions which it implements
15685 to always fail with ENOSYS. Some functions are actually named
15686 something starting with __ and the normal name is an alias. */
15687 #if defined __stub_$ac_func || defined __stub___$ac_func
15688 choke me
15689 #endif
15692 main ()
15694 return $ac_func ();
15696 return 0;
15698 _ACEOF
15699 rm -f conftest.$ac_objext conftest$ac_exeext
15700 if { (ac_try="$ac_link"
15701 case "(($ac_try" in
15702 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15703 *) ac_try_echo=$ac_try;;
15704 esac
15705 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15706 (eval "$ac_link") 2>conftest.er1
15707 ac_status=$?
15708 grep -v '^ *+' conftest.er1 >conftest.err
15709 rm -f conftest.er1
15710 cat conftest.err >&5
15711 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15712 (exit $ac_status); } && {
15713 test -z "$ac_c_werror_flag" ||
15714 test ! -s conftest.err
15715 } && test -s conftest$ac_exeext &&
15716 $as_test_x conftest$ac_exeext; then
15717 eval "$as_ac_var=yes"
15718 else
15719 echo "$as_me: failed program was:" >&5
15720 sed 's/^/| /' conftest.$ac_ext >&5
15722 eval "$as_ac_var=no"
15725 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
15726 conftest$ac_exeext conftest.$ac_ext
15728 ac_res=`eval echo '${'$as_ac_var'}'`
15729 { echo "$as_me:$LINENO: result: $ac_res" >&5
15730 echo "${ECHO_T}$ac_res" >&6; }
15731 if test `eval echo '${'$as_ac_var'}'` = yes; then
15733 cat >>confdefs.h <<_ACEOF
15734 #define CRAY_STACKSEG_END $ac_func
15735 _ACEOF
15737 break
15740 done
15743 { echo "$as_me:$LINENO: checking stack direction for C alloca" >&5
15744 echo $ECHO_N "checking stack direction for C alloca... $ECHO_C" >&6; }
15745 if test "${ac_cv_c_stack_direction+set}" = set; then
15746 echo $ECHO_N "(cached) $ECHO_C" >&6
15747 else
15748 if test "$cross_compiling" = yes; then
15749 ac_cv_c_stack_direction=0
15750 else
15751 cat >conftest.$ac_ext <<_ACEOF
15752 /* confdefs.h. */
15753 _ACEOF
15754 cat confdefs.h >>conftest.$ac_ext
15755 cat >>conftest.$ac_ext <<_ACEOF
15756 /* end confdefs.h. */
15757 $ac_includes_default
15759 find_stack_direction ()
15761 static char *addr = 0;
15762 auto char dummy;
15763 if (addr == 0)
15765 addr = &dummy;
15766 return find_stack_direction ();
15768 else
15769 return (&dummy > addr) ? 1 : -1;
15773 main ()
15775 return find_stack_direction () < 0;
15777 _ACEOF
15778 rm -f conftest$ac_exeext
15779 if { (ac_try="$ac_link"
15780 case "(($ac_try" in
15781 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15782 *) ac_try_echo=$ac_try;;
15783 esac
15784 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15785 (eval "$ac_link") 2>&5
15786 ac_status=$?
15787 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15788 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
15789 { (case "(($ac_try" in
15790 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15791 *) ac_try_echo=$ac_try;;
15792 esac
15793 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15794 (eval "$ac_try") 2>&5
15795 ac_status=$?
15796 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15797 (exit $ac_status); }; }; then
15798 ac_cv_c_stack_direction=1
15799 else
15800 echo "$as_me: program exited with status $ac_status" >&5
15801 echo "$as_me: failed program was:" >&5
15802 sed 's/^/| /' conftest.$ac_ext >&5
15804 ( exit $ac_status )
15805 ac_cv_c_stack_direction=-1
15807 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
15812 { echo "$as_me:$LINENO: result: $ac_cv_c_stack_direction" >&5
15813 echo "${ECHO_T}$ac_cv_c_stack_direction" >&6; }
15815 cat >>confdefs.h <<_ACEOF
15816 #define STACK_DIRECTION $ac_cv_c_stack_direction
15817 _ACEOF
15823 if test x"$ac_cv_func_alloca_works" != xyes; then
15824 { { echo "$as_me:$LINENO: error: a system implementation of alloca is required " >&5
15825 echo "$as_me: error: a system implementation of alloca is required " >&2;}
15826 { (exit 1); exit 1; }; }
15829 # fmod, logb, and frexp are found in -lm on most systems.
15830 # On HPUX 9.01, -lm does not contain logb, so check for sqrt.
15832 { echo "$as_me:$LINENO: checking for sqrt in -lm" >&5
15833 echo $ECHO_N "checking for sqrt in -lm... $ECHO_C" >&6; }
15834 if test "${ac_cv_lib_m_sqrt+set}" = set; then
15835 echo $ECHO_N "(cached) $ECHO_C" >&6
15836 else
15837 ac_check_lib_save_LIBS=$LIBS
15838 LIBS="-lm $LIBS"
15839 cat >conftest.$ac_ext <<_ACEOF
15840 /* confdefs.h. */
15841 _ACEOF
15842 cat confdefs.h >>conftest.$ac_ext
15843 cat >>conftest.$ac_ext <<_ACEOF
15844 /* end confdefs.h. */
15846 /* Override any GCC internal prototype to avoid an error.
15847 Use char because int might match the return type of a GCC
15848 builtin and then its argument prototype would still apply. */
15849 #ifdef __cplusplus
15850 extern "C"
15851 #endif
15852 char sqrt ();
15854 main ()
15856 return sqrt ();
15858 return 0;
15860 _ACEOF
15861 rm -f conftest.$ac_objext conftest$ac_exeext
15862 if { (ac_try="$ac_link"
15863 case "(($ac_try" in
15864 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15865 *) ac_try_echo=$ac_try;;
15866 esac
15867 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15868 (eval "$ac_link") 2>conftest.er1
15869 ac_status=$?
15870 grep -v '^ *+' conftest.er1 >conftest.err
15871 rm -f conftest.er1
15872 cat conftest.err >&5
15873 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15874 (exit $ac_status); } && {
15875 test -z "$ac_c_werror_flag" ||
15876 test ! -s conftest.err
15877 } && test -s conftest$ac_exeext &&
15878 $as_test_x conftest$ac_exeext; then
15879 ac_cv_lib_m_sqrt=yes
15880 else
15881 echo "$as_me: failed program was:" >&5
15882 sed 's/^/| /' conftest.$ac_ext >&5
15884 ac_cv_lib_m_sqrt=no
15887 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
15888 conftest$ac_exeext conftest.$ac_ext
15889 LIBS=$ac_check_lib_save_LIBS
15891 { echo "$as_me:$LINENO: result: $ac_cv_lib_m_sqrt" >&5
15892 echo "${ECHO_T}$ac_cv_lib_m_sqrt" >&6; }
15893 if test $ac_cv_lib_m_sqrt = yes; then
15894 cat >>confdefs.h <<_ACEOF
15895 #define HAVE_LIBM 1
15896 _ACEOF
15898 LIBS="-lm $LIBS"
15903 # Check for mail-locking functions in a "mail" library. Probably this should
15904 # have the same check as for liblockfile below.
15906 { echo "$as_me:$LINENO: checking for maillock in -lmail" >&5
15907 echo $ECHO_N "checking for maillock in -lmail... $ECHO_C" >&6; }
15908 if test "${ac_cv_lib_mail_maillock+set}" = set; then
15909 echo $ECHO_N "(cached) $ECHO_C" >&6
15910 else
15911 ac_check_lib_save_LIBS=$LIBS
15912 LIBS="-lmail $LIBS"
15913 cat >conftest.$ac_ext <<_ACEOF
15914 /* confdefs.h. */
15915 _ACEOF
15916 cat confdefs.h >>conftest.$ac_ext
15917 cat >>conftest.$ac_ext <<_ACEOF
15918 /* end confdefs.h. */
15920 /* Override any GCC internal prototype to avoid an error.
15921 Use char because int might match the return type of a GCC
15922 builtin and then its argument prototype would still apply. */
15923 #ifdef __cplusplus
15924 extern "C"
15925 #endif
15926 char maillock ();
15928 main ()
15930 return maillock ();
15932 return 0;
15934 _ACEOF
15935 rm -f conftest.$ac_objext conftest$ac_exeext
15936 if { (ac_try="$ac_link"
15937 case "(($ac_try" in
15938 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15939 *) ac_try_echo=$ac_try;;
15940 esac
15941 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15942 (eval "$ac_link") 2>conftest.er1
15943 ac_status=$?
15944 grep -v '^ *+' conftest.er1 >conftest.err
15945 rm -f conftest.er1
15946 cat conftest.err >&5
15947 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15948 (exit $ac_status); } && {
15949 test -z "$ac_c_werror_flag" ||
15950 test ! -s conftest.err
15951 } && test -s conftest$ac_exeext &&
15952 $as_test_x conftest$ac_exeext; then
15953 ac_cv_lib_mail_maillock=yes
15954 else
15955 echo "$as_me: failed program was:" >&5
15956 sed 's/^/| /' conftest.$ac_ext >&5
15958 ac_cv_lib_mail_maillock=no
15961 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
15962 conftest$ac_exeext conftest.$ac_ext
15963 LIBS=$ac_check_lib_save_LIBS
15965 { echo "$as_me:$LINENO: result: $ac_cv_lib_mail_maillock" >&5
15966 echo "${ECHO_T}$ac_cv_lib_mail_maillock" >&6; }
15967 if test $ac_cv_lib_mail_maillock = yes; then
15968 cat >>confdefs.h <<_ACEOF
15969 #define HAVE_LIBMAIL 1
15970 _ACEOF
15972 LIBS="-lmail $LIBS"
15977 { echo "$as_me:$LINENO: checking for maillock in -llockfile" >&5
15978 echo $ECHO_N "checking for maillock in -llockfile... $ECHO_C" >&6; }
15979 if test "${ac_cv_lib_lockfile_maillock+set}" = set; then
15980 echo $ECHO_N "(cached) $ECHO_C" >&6
15981 else
15982 ac_check_lib_save_LIBS=$LIBS
15983 LIBS="-llockfile $LIBS"
15984 cat >conftest.$ac_ext <<_ACEOF
15985 /* confdefs.h. */
15986 _ACEOF
15987 cat confdefs.h >>conftest.$ac_ext
15988 cat >>conftest.$ac_ext <<_ACEOF
15989 /* end confdefs.h. */
15991 /* Override any GCC internal prototype to avoid an error.
15992 Use char because int might match the return type of a GCC
15993 builtin and then its argument prototype would still apply. */
15994 #ifdef __cplusplus
15995 extern "C"
15996 #endif
15997 char maillock ();
15999 main ()
16001 return maillock ();
16003 return 0;
16005 _ACEOF
16006 rm -f conftest.$ac_objext conftest$ac_exeext
16007 if { (ac_try="$ac_link"
16008 case "(($ac_try" in
16009 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16010 *) ac_try_echo=$ac_try;;
16011 esac
16012 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16013 (eval "$ac_link") 2>conftest.er1
16014 ac_status=$?
16015 grep -v '^ *+' conftest.er1 >conftest.err
16016 rm -f conftest.er1
16017 cat conftest.err >&5
16018 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16019 (exit $ac_status); } && {
16020 test -z "$ac_c_werror_flag" ||
16021 test ! -s conftest.err
16022 } && test -s conftest$ac_exeext &&
16023 $as_test_x conftest$ac_exeext; then
16024 ac_cv_lib_lockfile_maillock=yes
16025 else
16026 echo "$as_me: failed program was:" >&5
16027 sed 's/^/| /' conftest.$ac_ext >&5
16029 ac_cv_lib_lockfile_maillock=no
16032 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
16033 conftest$ac_exeext conftest.$ac_ext
16034 LIBS=$ac_check_lib_save_LIBS
16036 { echo "$as_me:$LINENO: result: $ac_cv_lib_lockfile_maillock" >&5
16037 echo "${ECHO_T}$ac_cv_lib_lockfile_maillock" >&6; }
16038 if test $ac_cv_lib_lockfile_maillock = yes; then
16039 cat >>confdefs.h <<_ACEOF
16040 #define HAVE_LIBLOCKFILE 1
16041 _ACEOF
16043 LIBS="-llockfile $LIBS"
16047 # If we have the shared liblockfile, assume we must use it for mail
16048 # locking (e.g. Debian). If we couldn't link against liblockfile
16049 # (no liblockfile.a installed), ensure that we don't need to.
16050 if test "$ac_cv_lib_lockfile_maillock" = no; then
16051 # Extract the first word of "liblockfile.so", so it can be a program name with args.
16052 set dummy liblockfile.so; ac_word=$2
16053 { echo "$as_me:$LINENO: checking for $ac_word" >&5
16054 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
16055 if test "${ac_cv_prog_liblockfile+set}" = set; then
16056 echo $ECHO_N "(cached) $ECHO_C" >&6
16057 else
16058 if test -n "$liblockfile"; then
16059 ac_cv_prog_liblockfile="$liblockfile" # Let the user override the test.
16060 else
16061 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
16062 as_dummy="/usr/lib:/lib:/usr/local/lib:$LD_LIBRARY_PATH"
16063 for as_dir in $as_dummy
16065 IFS=$as_save_IFS
16066 test -z "$as_dir" && as_dir=.
16067 for ac_exec_ext in '' $ac_executable_extensions; do
16068 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
16069 ac_cv_prog_liblockfile="yes"
16070 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
16071 break 2
16073 done
16074 done
16075 IFS=$as_save_IFS
16077 test -z "$ac_cv_prog_liblockfile" && ac_cv_prog_liblockfile="no"
16080 liblockfile=$ac_cv_prog_liblockfile
16081 if test -n "$liblockfile"; then
16082 { echo "$as_me:$LINENO: result: $liblockfile" >&5
16083 echo "${ECHO_T}$liblockfile" >&6; }
16084 else
16085 { echo "$as_me:$LINENO: result: no" >&5
16086 echo "${ECHO_T}no" >&6; }
16090 if test $ac_cv_prog_liblockfile = yes; then
16091 { { echo "$as_me:$LINENO: error: Shared liblockfile found but can't link against it.
16092 This probably means that movemail could lose mail.
16093 There may be a \`development' package to install containing liblockfile." >&5
16094 echo "$as_me: error: Shared liblockfile found but can't link against it.
16095 This probably means that movemail could lose mail.
16096 There may be a \`development' package to install containing liblockfile." >&2;}
16097 { (exit 1); exit 1; }; }
16098 else :
16102 for ac_func in touchlock
16104 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
16105 { echo "$as_me:$LINENO: checking for $ac_func" >&5
16106 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
16107 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
16108 echo $ECHO_N "(cached) $ECHO_C" >&6
16109 else
16110 cat >conftest.$ac_ext <<_ACEOF
16111 /* confdefs.h. */
16112 _ACEOF
16113 cat confdefs.h >>conftest.$ac_ext
16114 cat >>conftest.$ac_ext <<_ACEOF
16115 /* end confdefs.h. */
16116 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
16117 For example, HP-UX 11i <limits.h> declares gettimeofday. */
16118 #define $ac_func innocuous_$ac_func
16120 /* System header to define __stub macros and hopefully few prototypes,
16121 which can conflict with char $ac_func (); below.
16122 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
16123 <limits.h> exists even on freestanding compilers. */
16125 #ifdef __STDC__
16126 # include <limits.h>
16127 #else
16128 # include <assert.h>
16129 #endif
16131 #undef $ac_func
16133 /* Override any GCC internal prototype to avoid an error.
16134 Use char because int might match the return type of a GCC
16135 builtin and then its argument prototype would still apply. */
16136 #ifdef __cplusplus
16137 extern "C"
16138 #endif
16139 char $ac_func ();
16140 /* The GNU C library defines this for functions which it implements
16141 to always fail with ENOSYS. Some functions are actually named
16142 something starting with __ and the normal name is an alias. */
16143 #if defined __stub_$ac_func || defined __stub___$ac_func
16144 choke me
16145 #endif
16148 main ()
16150 return $ac_func ();
16152 return 0;
16154 _ACEOF
16155 rm -f conftest.$ac_objext conftest$ac_exeext
16156 if { (ac_try="$ac_link"
16157 case "(($ac_try" in
16158 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16159 *) ac_try_echo=$ac_try;;
16160 esac
16161 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16162 (eval "$ac_link") 2>conftest.er1
16163 ac_status=$?
16164 grep -v '^ *+' conftest.er1 >conftest.err
16165 rm -f conftest.er1
16166 cat conftest.err >&5
16167 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16168 (exit $ac_status); } && {
16169 test -z "$ac_c_werror_flag" ||
16170 test ! -s conftest.err
16171 } && test -s conftest$ac_exeext &&
16172 $as_test_x conftest$ac_exeext; then
16173 eval "$as_ac_var=yes"
16174 else
16175 echo "$as_me: failed program was:" >&5
16176 sed 's/^/| /' conftest.$ac_ext >&5
16178 eval "$as_ac_var=no"
16181 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
16182 conftest$ac_exeext conftest.$ac_ext
16184 ac_res=`eval echo '${'$as_ac_var'}'`
16185 { echo "$as_me:$LINENO: result: $ac_res" >&5
16186 echo "${ECHO_T}$ac_res" >&6; }
16187 if test `eval echo '${'$as_ac_var'}'` = yes; then
16188 cat >>confdefs.h <<_ACEOF
16189 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
16190 _ACEOF
16193 done
16196 for ac_header in maillock.h
16198 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
16199 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
16200 { echo "$as_me:$LINENO: checking for $ac_header" >&5
16201 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
16202 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
16203 echo $ECHO_N "(cached) $ECHO_C" >&6
16205 ac_res=`eval echo '${'$as_ac_Header'}'`
16206 { echo "$as_me:$LINENO: result: $ac_res" >&5
16207 echo "${ECHO_T}$ac_res" >&6; }
16208 else
16209 # Is the header compilable?
16210 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
16211 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
16212 cat >conftest.$ac_ext <<_ACEOF
16213 /* confdefs.h. */
16214 _ACEOF
16215 cat confdefs.h >>conftest.$ac_ext
16216 cat >>conftest.$ac_ext <<_ACEOF
16217 /* end confdefs.h. */
16218 $ac_includes_default
16219 #include <$ac_header>
16220 _ACEOF
16221 rm -f conftest.$ac_objext
16222 if { (ac_try="$ac_compile"
16223 case "(($ac_try" in
16224 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16225 *) ac_try_echo=$ac_try;;
16226 esac
16227 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16228 (eval "$ac_compile") 2>conftest.er1
16229 ac_status=$?
16230 grep -v '^ *+' conftest.er1 >conftest.err
16231 rm -f conftest.er1
16232 cat conftest.err >&5
16233 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16234 (exit $ac_status); } && {
16235 test -z "$ac_c_werror_flag" ||
16236 test ! -s conftest.err
16237 } && test -s conftest.$ac_objext; then
16238 ac_header_compiler=yes
16239 else
16240 echo "$as_me: failed program was:" >&5
16241 sed 's/^/| /' conftest.$ac_ext >&5
16243 ac_header_compiler=no
16246 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16247 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
16248 echo "${ECHO_T}$ac_header_compiler" >&6; }
16250 # Is the header present?
16251 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
16252 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
16253 cat >conftest.$ac_ext <<_ACEOF
16254 /* confdefs.h. */
16255 _ACEOF
16256 cat confdefs.h >>conftest.$ac_ext
16257 cat >>conftest.$ac_ext <<_ACEOF
16258 /* end confdefs.h. */
16259 #include <$ac_header>
16260 _ACEOF
16261 if { (ac_try="$ac_cpp conftest.$ac_ext"
16262 case "(($ac_try" in
16263 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16264 *) ac_try_echo=$ac_try;;
16265 esac
16266 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16267 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
16268 ac_status=$?
16269 grep -v '^ *+' conftest.er1 >conftest.err
16270 rm -f conftest.er1
16271 cat conftest.err >&5
16272 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16273 (exit $ac_status); } >/dev/null && {
16274 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
16275 test ! -s conftest.err
16276 }; then
16277 ac_header_preproc=yes
16278 else
16279 echo "$as_me: failed program was:" >&5
16280 sed 's/^/| /' conftest.$ac_ext >&5
16282 ac_header_preproc=no
16285 rm -f conftest.err conftest.$ac_ext
16286 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
16287 echo "${ECHO_T}$ac_header_preproc" >&6; }
16289 # So? What about this header?
16290 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
16291 yes:no: )
16292 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
16293 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
16294 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
16295 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
16296 ac_header_preproc=yes
16298 no:yes:* )
16299 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
16300 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
16301 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
16302 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
16303 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
16304 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
16305 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
16306 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
16307 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
16308 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
16309 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
16310 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
16313 esac
16314 { echo "$as_me:$LINENO: checking for $ac_header" >&5
16315 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
16316 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
16317 echo $ECHO_N "(cached) $ECHO_C" >&6
16318 else
16319 eval "$as_ac_Header=\$ac_header_preproc"
16321 ac_res=`eval echo '${'$as_ac_Header'}'`
16322 { echo "$as_me:$LINENO: result: $ac_res" >&5
16323 echo "${ECHO_T}$ac_res" >&6; }
16326 if test `eval echo '${'$as_ac_Header'}'` = yes; then
16327 cat >>confdefs.h <<_ACEOF
16328 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
16329 _ACEOF
16333 done
16406 for ac_func in gethostname getdomainname dup2 \
16407 rename closedir mkdir rmdir sysinfo getrusage get_current_dir_name \
16408 random lrand48 bcopy bcmp logb frexp fmod rint cbrt ftime setsid \
16409 strerror fpathconf select mktime euidaccess getpagesize tzset setlocale \
16410 utimes setrlimit setpgid getcwd getwd shutdown getaddrinfo \
16411 __fpending mblen mbrlen mbsinit strsignal setitimer ualarm index rindex \
16412 sendto recvfrom getsockopt setsockopt getsockname getpeername \
16413 gai_strerror mkstemp getline getdelim mremap memmove fsync sync bzero \
16414 memset memcmp difftime memcpy mempcpy mblen mbrlen posix_memalign \
16415 cfmakeraw cfsetspeed
16417 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
16418 { echo "$as_me:$LINENO: checking for $ac_func" >&5
16419 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
16420 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
16421 echo $ECHO_N "(cached) $ECHO_C" >&6
16422 else
16423 cat >conftest.$ac_ext <<_ACEOF
16424 /* confdefs.h. */
16425 _ACEOF
16426 cat confdefs.h >>conftest.$ac_ext
16427 cat >>conftest.$ac_ext <<_ACEOF
16428 /* end confdefs.h. */
16429 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
16430 For example, HP-UX 11i <limits.h> declares gettimeofday. */
16431 #define $ac_func innocuous_$ac_func
16433 /* System header to define __stub macros and hopefully few prototypes,
16434 which can conflict with char $ac_func (); below.
16435 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
16436 <limits.h> exists even on freestanding compilers. */
16438 #ifdef __STDC__
16439 # include <limits.h>
16440 #else
16441 # include <assert.h>
16442 #endif
16444 #undef $ac_func
16446 /* Override any GCC internal prototype to avoid an error.
16447 Use char because int might match the return type of a GCC
16448 builtin and then its argument prototype would still apply. */
16449 #ifdef __cplusplus
16450 extern "C"
16451 #endif
16452 char $ac_func ();
16453 /* The GNU C library defines this for functions which it implements
16454 to always fail with ENOSYS. Some functions are actually named
16455 something starting with __ and the normal name is an alias. */
16456 #if defined __stub_$ac_func || defined __stub___$ac_func
16457 choke me
16458 #endif
16461 main ()
16463 return $ac_func ();
16465 return 0;
16467 _ACEOF
16468 rm -f conftest.$ac_objext conftest$ac_exeext
16469 if { (ac_try="$ac_link"
16470 case "(($ac_try" in
16471 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16472 *) ac_try_echo=$ac_try;;
16473 esac
16474 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16475 (eval "$ac_link") 2>conftest.er1
16476 ac_status=$?
16477 grep -v '^ *+' conftest.er1 >conftest.err
16478 rm -f conftest.er1
16479 cat conftest.err >&5
16480 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16481 (exit $ac_status); } && {
16482 test -z "$ac_c_werror_flag" ||
16483 test ! -s conftest.err
16484 } && test -s conftest$ac_exeext &&
16485 $as_test_x conftest$ac_exeext; then
16486 eval "$as_ac_var=yes"
16487 else
16488 echo "$as_me: failed program was:" >&5
16489 sed 's/^/| /' conftest.$ac_ext >&5
16491 eval "$as_ac_var=no"
16494 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
16495 conftest$ac_exeext conftest.$ac_ext
16497 ac_res=`eval echo '${'$as_ac_var'}'`
16498 { echo "$as_me:$LINENO: result: $ac_res" >&5
16499 echo "${ECHO_T}$ac_res" >&6; }
16500 if test `eval echo '${'$as_ac_var'}'` = yes; then
16501 cat >>confdefs.h <<_ACEOF
16502 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
16503 _ACEOF
16506 done
16510 for ac_header in sys/un.h
16512 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
16513 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
16514 { echo "$as_me:$LINENO: checking for $ac_header" >&5
16515 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
16516 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
16517 echo $ECHO_N "(cached) $ECHO_C" >&6
16519 ac_res=`eval echo '${'$as_ac_Header'}'`
16520 { echo "$as_me:$LINENO: result: $ac_res" >&5
16521 echo "${ECHO_T}$ac_res" >&6; }
16522 else
16523 # Is the header compilable?
16524 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
16525 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
16526 cat >conftest.$ac_ext <<_ACEOF
16527 /* confdefs.h. */
16528 _ACEOF
16529 cat confdefs.h >>conftest.$ac_ext
16530 cat >>conftest.$ac_ext <<_ACEOF
16531 /* end confdefs.h. */
16532 $ac_includes_default
16533 #include <$ac_header>
16534 _ACEOF
16535 rm -f conftest.$ac_objext
16536 if { (ac_try="$ac_compile"
16537 case "(($ac_try" in
16538 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16539 *) ac_try_echo=$ac_try;;
16540 esac
16541 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16542 (eval "$ac_compile") 2>conftest.er1
16543 ac_status=$?
16544 grep -v '^ *+' conftest.er1 >conftest.err
16545 rm -f conftest.er1
16546 cat conftest.err >&5
16547 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16548 (exit $ac_status); } && {
16549 test -z "$ac_c_werror_flag" ||
16550 test ! -s conftest.err
16551 } && test -s conftest.$ac_objext; then
16552 ac_header_compiler=yes
16553 else
16554 echo "$as_me: failed program was:" >&5
16555 sed 's/^/| /' conftest.$ac_ext >&5
16557 ac_header_compiler=no
16560 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16561 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
16562 echo "${ECHO_T}$ac_header_compiler" >&6; }
16564 # Is the header present?
16565 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
16566 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
16567 cat >conftest.$ac_ext <<_ACEOF
16568 /* confdefs.h. */
16569 _ACEOF
16570 cat confdefs.h >>conftest.$ac_ext
16571 cat >>conftest.$ac_ext <<_ACEOF
16572 /* end confdefs.h. */
16573 #include <$ac_header>
16574 _ACEOF
16575 if { (ac_try="$ac_cpp conftest.$ac_ext"
16576 case "(($ac_try" in
16577 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16578 *) ac_try_echo=$ac_try;;
16579 esac
16580 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16581 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
16582 ac_status=$?
16583 grep -v '^ *+' conftest.er1 >conftest.err
16584 rm -f conftest.er1
16585 cat conftest.err >&5
16586 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16587 (exit $ac_status); } >/dev/null && {
16588 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
16589 test ! -s conftest.err
16590 }; then
16591 ac_header_preproc=yes
16592 else
16593 echo "$as_me: failed program was:" >&5
16594 sed 's/^/| /' conftest.$ac_ext >&5
16596 ac_header_preproc=no
16599 rm -f conftest.err conftest.$ac_ext
16600 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
16601 echo "${ECHO_T}$ac_header_preproc" >&6; }
16603 # So? What about this header?
16604 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
16605 yes:no: )
16606 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
16607 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
16608 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
16609 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
16610 ac_header_preproc=yes
16612 no:yes:* )
16613 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
16614 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
16615 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
16616 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
16617 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
16618 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
16619 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
16620 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
16621 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
16622 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
16623 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
16624 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
16627 esac
16628 { echo "$as_me:$LINENO: checking for $ac_header" >&5
16629 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
16630 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
16631 echo $ECHO_N "(cached) $ECHO_C" >&6
16632 else
16633 eval "$as_ac_Header=\$ac_header_preproc"
16635 ac_res=`eval echo '${'$as_ac_Header'}'`
16636 { echo "$as_me:$LINENO: result: $ac_res" >&5
16637 echo "${ECHO_T}$ac_res" >&6; }
16640 if test `eval echo '${'$as_ac_Header'}'` = yes; then
16641 cat >>confdefs.h <<_ACEOF
16642 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
16643 _ACEOF
16647 done
16654 for ac_header in $ac_header_list
16656 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
16657 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
16658 { echo "$as_me:$LINENO: checking for $ac_header" >&5
16659 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
16660 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
16661 echo $ECHO_N "(cached) $ECHO_C" >&6
16663 ac_res=`eval echo '${'$as_ac_Header'}'`
16664 { echo "$as_me:$LINENO: result: $ac_res" >&5
16665 echo "${ECHO_T}$ac_res" >&6; }
16666 else
16667 # Is the header compilable?
16668 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
16669 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
16670 cat >conftest.$ac_ext <<_ACEOF
16671 /* confdefs.h. */
16672 _ACEOF
16673 cat confdefs.h >>conftest.$ac_ext
16674 cat >>conftest.$ac_ext <<_ACEOF
16675 /* end confdefs.h. */
16676 $ac_includes_default
16677 #include <$ac_header>
16678 _ACEOF
16679 rm -f conftest.$ac_objext
16680 if { (ac_try="$ac_compile"
16681 case "(($ac_try" in
16682 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16683 *) ac_try_echo=$ac_try;;
16684 esac
16685 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16686 (eval "$ac_compile") 2>conftest.er1
16687 ac_status=$?
16688 grep -v '^ *+' conftest.er1 >conftest.err
16689 rm -f conftest.er1
16690 cat conftest.err >&5
16691 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16692 (exit $ac_status); } && {
16693 test -z "$ac_c_werror_flag" ||
16694 test ! -s conftest.err
16695 } && test -s conftest.$ac_objext; then
16696 ac_header_compiler=yes
16697 else
16698 echo "$as_me: failed program was:" >&5
16699 sed 's/^/| /' conftest.$ac_ext >&5
16701 ac_header_compiler=no
16704 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16705 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
16706 echo "${ECHO_T}$ac_header_compiler" >&6; }
16708 # Is the header present?
16709 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
16710 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
16711 cat >conftest.$ac_ext <<_ACEOF
16712 /* confdefs.h. */
16713 _ACEOF
16714 cat confdefs.h >>conftest.$ac_ext
16715 cat >>conftest.$ac_ext <<_ACEOF
16716 /* end confdefs.h. */
16717 #include <$ac_header>
16718 _ACEOF
16719 if { (ac_try="$ac_cpp conftest.$ac_ext"
16720 case "(($ac_try" in
16721 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16722 *) ac_try_echo=$ac_try;;
16723 esac
16724 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16725 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
16726 ac_status=$?
16727 grep -v '^ *+' conftest.er1 >conftest.err
16728 rm -f conftest.er1
16729 cat conftest.err >&5
16730 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16731 (exit $ac_status); } >/dev/null && {
16732 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
16733 test ! -s conftest.err
16734 }; then
16735 ac_header_preproc=yes
16736 else
16737 echo "$as_me: failed program was:" >&5
16738 sed 's/^/| /' conftest.$ac_ext >&5
16740 ac_header_preproc=no
16743 rm -f conftest.err conftest.$ac_ext
16744 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
16745 echo "${ECHO_T}$ac_header_preproc" >&6; }
16747 # So? What about this header?
16748 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
16749 yes:no: )
16750 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
16751 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
16752 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
16753 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
16754 ac_header_preproc=yes
16756 no:yes:* )
16757 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
16758 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
16759 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
16760 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
16761 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
16762 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
16763 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
16764 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
16765 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
16766 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
16767 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
16768 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
16771 esac
16772 { echo "$as_me:$LINENO: checking for $ac_header" >&5
16773 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
16774 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
16775 echo $ECHO_N "(cached) $ECHO_C" >&6
16776 else
16777 eval "$as_ac_Header=\$ac_header_preproc"
16779 ac_res=`eval echo '${'$as_ac_Header'}'`
16780 { echo "$as_me:$LINENO: result: $ac_res" >&5
16781 echo "${ECHO_T}$ac_res" >&6; }
16784 if test `eval echo '${'$as_ac_Header'}'` = yes; then
16785 cat >>confdefs.h <<_ACEOF
16786 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
16787 _ACEOF
16791 done
16801 for ac_func in $ac_func_list
16803 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
16804 { echo "$as_me:$LINENO: checking for $ac_func" >&5
16805 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
16806 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
16807 echo $ECHO_N "(cached) $ECHO_C" >&6
16808 else
16809 cat >conftest.$ac_ext <<_ACEOF
16810 /* confdefs.h. */
16811 _ACEOF
16812 cat confdefs.h >>conftest.$ac_ext
16813 cat >>conftest.$ac_ext <<_ACEOF
16814 /* end confdefs.h. */
16815 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
16816 For example, HP-UX 11i <limits.h> declares gettimeofday. */
16817 #define $ac_func innocuous_$ac_func
16819 /* System header to define __stub macros and hopefully few prototypes,
16820 which can conflict with char $ac_func (); below.
16821 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
16822 <limits.h> exists even on freestanding compilers. */
16824 #ifdef __STDC__
16825 # include <limits.h>
16826 #else
16827 # include <assert.h>
16828 #endif
16830 #undef $ac_func
16832 /* Override any GCC internal prototype to avoid an error.
16833 Use char because int might match the return type of a GCC
16834 builtin and then its argument prototype would still apply. */
16835 #ifdef __cplusplus
16836 extern "C"
16837 #endif
16838 char $ac_func ();
16839 /* The GNU C library defines this for functions which it implements
16840 to always fail with ENOSYS. Some functions are actually named
16841 something starting with __ and the normal name is an alias. */
16842 #if defined __stub_$ac_func || defined __stub___$ac_func
16843 choke me
16844 #endif
16847 main ()
16849 return $ac_func ();
16851 return 0;
16853 _ACEOF
16854 rm -f conftest.$ac_objext conftest$ac_exeext
16855 if { (ac_try="$ac_link"
16856 case "(($ac_try" in
16857 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16858 *) ac_try_echo=$ac_try;;
16859 esac
16860 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16861 (eval "$ac_link") 2>conftest.er1
16862 ac_status=$?
16863 grep -v '^ *+' conftest.er1 >conftest.err
16864 rm -f conftest.er1
16865 cat conftest.err >&5
16866 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16867 (exit $ac_status); } && {
16868 test -z "$ac_c_werror_flag" ||
16869 test ! -s conftest.err
16870 } && test -s conftest$ac_exeext &&
16871 $as_test_x conftest$ac_exeext; then
16872 eval "$as_ac_var=yes"
16873 else
16874 echo "$as_me: failed program was:" >&5
16875 sed 's/^/| /' conftest.$ac_ext >&5
16877 eval "$as_ac_var=no"
16880 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
16881 conftest$ac_exeext conftest.$ac_ext
16883 ac_res=`eval echo '${'$as_ac_var'}'`
16884 { echo "$as_me:$LINENO: result: $ac_res" >&5
16885 echo "${ECHO_T}$ac_res" >&6; }
16886 if test `eval echo '${'$as_ac_var'}'` = yes; then
16887 cat >>confdefs.h <<_ACEOF
16888 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
16889 _ACEOF
16892 done
16910 { echo "$as_me:$LINENO: checking for working mktime" >&5
16911 echo $ECHO_N "checking for working mktime... $ECHO_C" >&6; }
16912 if test "${ac_cv_func_working_mktime+set}" = set; then
16913 echo $ECHO_N "(cached) $ECHO_C" >&6
16914 else
16915 if test "$cross_compiling" = yes; then
16916 ac_cv_func_working_mktime=no
16917 else
16918 cat >conftest.$ac_ext <<_ACEOF
16919 /* confdefs.h. */
16920 _ACEOF
16921 cat confdefs.h >>conftest.$ac_ext
16922 cat >>conftest.$ac_ext <<_ACEOF
16923 /* end confdefs.h. */
16924 /* Test program from Paul Eggert and Tony Leneis. */
16925 #ifdef TIME_WITH_SYS_TIME
16926 # include <sys/time.h>
16927 # include <time.h>
16928 #else
16929 # ifdef HAVE_SYS_TIME_H
16930 # include <sys/time.h>
16931 # else
16932 # include <time.h>
16933 # endif
16934 #endif
16936 #include <stdlib.h>
16938 #ifdef HAVE_UNISTD_H
16939 # include <unistd.h>
16940 #endif
16942 #ifndef HAVE_ALARM
16943 # define alarm(X) /* empty */
16944 #endif
16946 /* Work around redefinition to rpl_putenv by other config tests. */
16947 #undef putenv
16949 static time_t time_t_max;
16950 static time_t time_t_min;
16952 /* Values we'll use to set the TZ environment variable. */
16953 static char *tz_strings[] = {
16954 (char *) 0, "TZ=GMT0", "TZ=JST-9",
16955 "TZ=EST+3EDT+2,M10.1.0/00:00:00,M2.3.0/00:00:00"
16957 #define N_STRINGS (sizeof (tz_strings) / sizeof (tz_strings[0]))
16959 /* Return 0 if mktime fails to convert a date in the spring-forward gap.
16960 Based on a problem report from Andreas Jaeger. */
16961 static int
16962 spring_forward_gap ()
16964 /* glibc (up to about 1998-10-07) failed this test. */
16965 struct tm tm;
16967 /* Use the portable POSIX.1 specification "TZ=PST8PDT,M4.1.0,M10.5.0"
16968 instead of "TZ=America/Vancouver" in order to detect the bug even
16969 on systems that don't support the Olson extension, or don't have the
16970 full zoneinfo tables installed. */
16971 putenv ("TZ=PST8PDT,M4.1.0,M10.5.0");
16973 tm.tm_year = 98;
16974 tm.tm_mon = 3;
16975 tm.tm_mday = 5;
16976 tm.tm_hour = 2;
16977 tm.tm_min = 0;
16978 tm.tm_sec = 0;
16979 tm.tm_isdst = -1;
16980 return mktime (&tm) != (time_t) -1;
16983 static int
16984 mktime_test1 (now)
16985 time_t now;
16987 struct tm *lt;
16988 return ! (lt = localtime (&now)) || mktime (lt) == now;
16991 static int
16992 mktime_test (now)
16993 time_t now;
16995 return (mktime_test1 (now)
16996 && mktime_test1 ((time_t) (time_t_max - now))
16997 && mktime_test1 ((time_t) (time_t_min + now)));
17000 static int
17001 irix_6_4_bug ()
17003 /* Based on code from Ariel Faigon. */
17004 struct tm tm;
17005 tm.tm_year = 96;
17006 tm.tm_mon = 3;
17007 tm.tm_mday = 0;
17008 tm.tm_hour = 0;
17009 tm.tm_min = 0;
17010 tm.tm_sec = 0;
17011 tm.tm_isdst = -1;
17012 mktime (&tm);
17013 return tm.tm_mon == 2 && tm.tm_mday == 31;
17016 static int
17017 bigtime_test (j)
17018 int j;
17020 struct tm tm;
17021 time_t now;
17022 tm.tm_year = tm.tm_mon = tm.tm_mday = tm.tm_hour = tm.tm_min = tm.tm_sec = j;
17023 now = mktime (&tm);
17024 if (now != (time_t) -1)
17026 struct tm *lt = localtime (&now);
17027 if (! (lt
17028 && lt->tm_year == tm.tm_year
17029 && lt->tm_mon == tm.tm_mon
17030 && lt->tm_mday == tm.tm_mday
17031 && lt->tm_hour == tm.tm_hour
17032 && lt->tm_min == tm.tm_min
17033 && lt->tm_sec == tm.tm_sec
17034 && lt->tm_yday == tm.tm_yday
17035 && lt->tm_wday == tm.tm_wday
17036 && ((lt->tm_isdst < 0 ? -1 : 0 < lt->tm_isdst)
17037 == (tm.tm_isdst < 0 ? -1 : 0 < tm.tm_isdst))))
17038 return 0;
17040 return 1;
17043 static int
17044 year_2050_test ()
17046 /* The correct answer for 2050-02-01 00:00:00 in Pacific time,
17047 ignoring leap seconds. */
17048 unsigned long int answer = 2527315200UL;
17050 struct tm tm;
17051 time_t t;
17052 tm.tm_year = 2050 - 1900;
17053 tm.tm_mon = 2 - 1;
17054 tm.tm_mday = 1;
17055 tm.tm_hour = tm.tm_min = tm.tm_sec = 0;
17056 tm.tm_isdst = -1;
17058 /* Use the portable POSIX.1 specification "TZ=PST8PDT,M4.1.0,M10.5.0"
17059 instead of "TZ=America/Vancouver" in order to detect the bug even
17060 on systems that don't support the Olson extension, or don't have the
17061 full zoneinfo tables installed. */
17062 putenv ("TZ=PST8PDT,M4.1.0,M10.5.0");
17064 t = mktime (&tm);
17066 /* Check that the result is either a failure, or close enough
17067 to the correct answer that we can assume the discrepancy is
17068 due to leap seconds. */
17069 return (t == (time_t) -1
17070 || (0 < t && answer - 120 <= t && t <= answer + 120));
17074 main ()
17076 time_t t, delta;
17077 int i, j;
17079 /* This test makes some buggy mktime implementations loop.
17080 Give up after 60 seconds; a mktime slower than that
17081 isn't worth using anyway. */
17082 alarm (60);
17084 for (time_t_max = 1; 0 < time_t_max; time_t_max *= 2)
17085 continue;
17086 time_t_max--;
17087 if ((time_t) -1 < 0)
17088 for (time_t_min = -1; (time_t) (time_t_min * 2) < 0; time_t_min *= 2)
17089 continue;
17090 delta = time_t_max / 997; /* a suitable prime number */
17091 for (i = 0; i < N_STRINGS; i++)
17093 if (tz_strings[i])
17094 putenv (tz_strings[i]);
17096 for (t = 0; t <= time_t_max - delta; t += delta)
17097 if (! mktime_test (t))
17098 return 1;
17099 if (! (mktime_test ((time_t) 1)
17100 && mktime_test ((time_t) (60 * 60))
17101 && mktime_test ((time_t) (60 * 60 * 24))))
17102 return 1;
17104 for (j = 1; 0 < j; j *= 2)
17105 if (! bigtime_test (j))
17106 return 1;
17107 if (! bigtime_test (j - 1))
17108 return 1;
17110 return ! (irix_6_4_bug () && spring_forward_gap () && year_2050_test ());
17112 _ACEOF
17113 rm -f conftest$ac_exeext
17114 if { (ac_try="$ac_link"
17115 case "(($ac_try" in
17116 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17117 *) ac_try_echo=$ac_try;;
17118 esac
17119 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17120 (eval "$ac_link") 2>&5
17121 ac_status=$?
17122 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17123 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
17124 { (case "(($ac_try" in
17125 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17126 *) ac_try_echo=$ac_try;;
17127 esac
17128 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17129 (eval "$ac_try") 2>&5
17130 ac_status=$?
17131 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17132 (exit $ac_status); }; }; then
17133 ac_cv_func_working_mktime=yes
17134 else
17135 echo "$as_me: program exited with status $ac_status" >&5
17136 echo "$as_me: failed program was:" >&5
17137 sed 's/^/| /' conftest.$ac_ext >&5
17139 ( exit $ac_status )
17140 ac_cv_func_working_mktime=no
17142 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
17147 { echo "$as_me:$LINENO: result: $ac_cv_func_working_mktime" >&5
17148 echo "${ECHO_T}$ac_cv_func_working_mktime" >&6; }
17149 if test $ac_cv_func_working_mktime = no; then
17150 case " $LIBOBJS " in
17151 *" mktime.$ac_objext "* ) ;;
17152 *) LIBOBJS="$LIBOBJS mktime.$ac_objext"
17154 esac
17158 if test "$ac_cv_func_working_mktime" = no; then
17160 cat >>confdefs.h <<\_ACEOF
17161 #define BROKEN_MKTIME 1
17162 _ACEOF
17166 ac_have_func=no # yes means we've found a way to get the load average.
17168 # Make sure getloadavg.c is where it belongs, at configure-time.
17169 test -f "$srcdir/$ac_config_libobj_dir/getloadavg.c" ||
17170 { { echo "$as_me:$LINENO: error: $srcdir/$ac_config_libobj_dir/getloadavg.c is missing" >&5
17171 echo "$as_me: error: $srcdir/$ac_config_libobj_dir/getloadavg.c is missing" >&2;}
17172 { (exit 1); exit 1; }; }
17174 ac_save_LIBS=$LIBS
17176 # Check for getloadavg, but be sure not to touch the cache variable.
17177 ({ echo "$as_me:$LINENO: checking for getloadavg" >&5
17178 echo $ECHO_N "checking for getloadavg... $ECHO_C" >&6; }
17179 if test "${ac_cv_func_getloadavg+set}" = set; then
17180 echo $ECHO_N "(cached) $ECHO_C" >&6
17181 else
17182 cat >conftest.$ac_ext <<_ACEOF
17183 /* confdefs.h. */
17184 _ACEOF
17185 cat confdefs.h >>conftest.$ac_ext
17186 cat >>conftest.$ac_ext <<_ACEOF
17187 /* end confdefs.h. */
17188 /* Define getloadavg to an innocuous variant, in case <limits.h> declares getloadavg.
17189 For example, HP-UX 11i <limits.h> declares gettimeofday. */
17190 #define getloadavg innocuous_getloadavg
17192 /* System header to define __stub macros and hopefully few prototypes,
17193 which can conflict with char getloadavg (); below.
17194 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
17195 <limits.h> exists even on freestanding compilers. */
17197 #ifdef __STDC__
17198 # include <limits.h>
17199 #else
17200 # include <assert.h>
17201 #endif
17203 #undef getloadavg
17205 /* Override any GCC internal prototype to avoid an error.
17206 Use char because int might match the return type of a GCC
17207 builtin and then its argument prototype would still apply. */
17208 #ifdef __cplusplus
17209 extern "C"
17210 #endif
17211 char getloadavg ();
17212 /* The GNU C library defines this for functions which it implements
17213 to always fail with ENOSYS. Some functions are actually named
17214 something starting with __ and the normal name is an alias. */
17215 #if defined __stub_getloadavg || defined __stub___getloadavg
17216 choke me
17217 #endif
17220 main ()
17222 return getloadavg ();
17224 return 0;
17226 _ACEOF
17227 rm -f conftest.$ac_objext conftest$ac_exeext
17228 if { (ac_try="$ac_link"
17229 case "(($ac_try" in
17230 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17231 *) ac_try_echo=$ac_try;;
17232 esac
17233 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17234 (eval "$ac_link") 2>conftest.er1
17235 ac_status=$?
17236 grep -v '^ *+' conftest.er1 >conftest.err
17237 rm -f conftest.er1
17238 cat conftest.err >&5
17239 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17240 (exit $ac_status); } && {
17241 test -z "$ac_c_werror_flag" ||
17242 test ! -s conftest.err
17243 } && test -s conftest$ac_exeext &&
17244 $as_test_x conftest$ac_exeext; then
17245 ac_cv_func_getloadavg=yes
17246 else
17247 echo "$as_me: failed program was:" >&5
17248 sed 's/^/| /' conftest.$ac_ext >&5
17250 ac_cv_func_getloadavg=no
17253 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
17254 conftest$ac_exeext conftest.$ac_ext
17256 { echo "$as_me:$LINENO: result: $ac_cv_func_getloadavg" >&5
17257 echo "${ECHO_T}$ac_cv_func_getloadavg" >&6; }
17258 if test $ac_cv_func_getloadavg = yes; then
17259 exit 0
17260 else
17261 exit 1
17263 ) && ac_have_func=yes
17265 # On HPUX9, an unprivileged user can get load averages through this function.
17267 for ac_func in pstat_getdynamic
17269 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
17270 { echo "$as_me:$LINENO: checking for $ac_func" >&5
17271 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
17272 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
17273 echo $ECHO_N "(cached) $ECHO_C" >&6
17274 else
17275 cat >conftest.$ac_ext <<_ACEOF
17276 /* confdefs.h. */
17277 _ACEOF
17278 cat confdefs.h >>conftest.$ac_ext
17279 cat >>conftest.$ac_ext <<_ACEOF
17280 /* end confdefs.h. */
17281 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
17282 For example, HP-UX 11i <limits.h> declares gettimeofday. */
17283 #define $ac_func innocuous_$ac_func
17285 /* System header to define __stub macros and hopefully few prototypes,
17286 which can conflict with char $ac_func (); below.
17287 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
17288 <limits.h> exists even on freestanding compilers. */
17290 #ifdef __STDC__
17291 # include <limits.h>
17292 #else
17293 # include <assert.h>
17294 #endif
17296 #undef $ac_func
17298 /* Override any GCC internal prototype to avoid an error.
17299 Use char because int might match the return type of a GCC
17300 builtin and then its argument prototype would still apply. */
17301 #ifdef __cplusplus
17302 extern "C"
17303 #endif
17304 char $ac_func ();
17305 /* The GNU C library defines this for functions which it implements
17306 to always fail with ENOSYS. Some functions are actually named
17307 something starting with __ and the normal name is an alias. */
17308 #if defined __stub_$ac_func || defined __stub___$ac_func
17309 choke me
17310 #endif
17313 main ()
17315 return $ac_func ();
17317 return 0;
17319 _ACEOF
17320 rm -f conftest.$ac_objext conftest$ac_exeext
17321 if { (ac_try="$ac_link"
17322 case "(($ac_try" in
17323 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17324 *) ac_try_echo=$ac_try;;
17325 esac
17326 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17327 (eval "$ac_link") 2>conftest.er1
17328 ac_status=$?
17329 grep -v '^ *+' conftest.er1 >conftest.err
17330 rm -f conftest.er1
17331 cat conftest.err >&5
17332 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17333 (exit $ac_status); } && {
17334 test -z "$ac_c_werror_flag" ||
17335 test ! -s conftest.err
17336 } && test -s conftest$ac_exeext &&
17337 $as_test_x conftest$ac_exeext; then
17338 eval "$as_ac_var=yes"
17339 else
17340 echo "$as_me: failed program was:" >&5
17341 sed 's/^/| /' conftest.$ac_ext >&5
17343 eval "$as_ac_var=no"
17346 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
17347 conftest$ac_exeext conftest.$ac_ext
17349 ac_res=`eval echo '${'$as_ac_var'}'`
17350 { echo "$as_me:$LINENO: result: $ac_res" >&5
17351 echo "${ECHO_T}$ac_res" >&6; }
17352 if test `eval echo '${'$as_ac_var'}'` = yes; then
17353 cat >>confdefs.h <<_ACEOF
17354 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
17355 _ACEOF
17358 done
17361 # Solaris has libkstat which does not require root.
17363 { echo "$as_me:$LINENO: checking for kstat_open in -lkstat" >&5
17364 echo $ECHO_N "checking for kstat_open in -lkstat... $ECHO_C" >&6; }
17365 if test "${ac_cv_lib_kstat_kstat_open+set}" = set; then
17366 echo $ECHO_N "(cached) $ECHO_C" >&6
17367 else
17368 ac_check_lib_save_LIBS=$LIBS
17369 LIBS="-lkstat $LIBS"
17370 cat >conftest.$ac_ext <<_ACEOF
17371 /* confdefs.h. */
17372 _ACEOF
17373 cat confdefs.h >>conftest.$ac_ext
17374 cat >>conftest.$ac_ext <<_ACEOF
17375 /* end confdefs.h. */
17377 /* Override any GCC internal prototype to avoid an error.
17378 Use char because int might match the return type of a GCC
17379 builtin and then its argument prototype would still apply. */
17380 #ifdef __cplusplus
17381 extern "C"
17382 #endif
17383 char kstat_open ();
17385 main ()
17387 return kstat_open ();
17389 return 0;
17391 _ACEOF
17392 rm -f conftest.$ac_objext conftest$ac_exeext
17393 if { (ac_try="$ac_link"
17394 case "(($ac_try" in
17395 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17396 *) ac_try_echo=$ac_try;;
17397 esac
17398 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17399 (eval "$ac_link") 2>conftest.er1
17400 ac_status=$?
17401 grep -v '^ *+' conftest.er1 >conftest.err
17402 rm -f conftest.er1
17403 cat conftest.err >&5
17404 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17405 (exit $ac_status); } && {
17406 test -z "$ac_c_werror_flag" ||
17407 test ! -s conftest.err
17408 } && test -s conftest$ac_exeext &&
17409 $as_test_x conftest$ac_exeext; then
17410 ac_cv_lib_kstat_kstat_open=yes
17411 else
17412 echo "$as_me: failed program was:" >&5
17413 sed 's/^/| /' conftest.$ac_ext >&5
17415 ac_cv_lib_kstat_kstat_open=no
17418 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
17419 conftest$ac_exeext conftest.$ac_ext
17420 LIBS=$ac_check_lib_save_LIBS
17422 { echo "$as_me:$LINENO: result: $ac_cv_lib_kstat_kstat_open" >&5
17423 echo "${ECHO_T}$ac_cv_lib_kstat_kstat_open" >&6; }
17424 if test $ac_cv_lib_kstat_kstat_open = yes; then
17425 cat >>confdefs.h <<_ACEOF
17426 #define HAVE_LIBKSTAT 1
17427 _ACEOF
17429 LIBS="-lkstat $LIBS"
17433 test $ac_cv_lib_kstat_kstat_open = yes && ac_have_func=yes
17435 # Some systems with -lutil have (and need) -lkvm as well, some do not.
17436 # On Solaris, -lkvm requires nlist from -lelf, so check that first
17437 # to get the right answer into the cache.
17438 # For kstat on solaris, we need libelf to force the definition of SVR4 below.
17439 if test $ac_have_func = no; then
17440 { echo "$as_me:$LINENO: checking for elf_begin in -lelf" >&5
17441 echo $ECHO_N "checking for elf_begin in -lelf... $ECHO_C" >&6; }
17442 if test "${ac_cv_lib_elf_elf_begin+set}" = set; then
17443 echo $ECHO_N "(cached) $ECHO_C" >&6
17444 else
17445 ac_check_lib_save_LIBS=$LIBS
17446 LIBS="-lelf $LIBS"
17447 cat >conftest.$ac_ext <<_ACEOF
17448 /* confdefs.h. */
17449 _ACEOF
17450 cat confdefs.h >>conftest.$ac_ext
17451 cat >>conftest.$ac_ext <<_ACEOF
17452 /* end confdefs.h. */
17454 /* Override any GCC internal prototype to avoid an error.
17455 Use char because int might match the return type of a GCC
17456 builtin and then its argument prototype would still apply. */
17457 #ifdef __cplusplus
17458 extern "C"
17459 #endif
17460 char elf_begin ();
17462 main ()
17464 return elf_begin ();
17466 return 0;
17468 _ACEOF
17469 rm -f conftest.$ac_objext conftest$ac_exeext
17470 if { (ac_try="$ac_link"
17471 case "(($ac_try" in
17472 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17473 *) ac_try_echo=$ac_try;;
17474 esac
17475 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17476 (eval "$ac_link") 2>conftest.er1
17477 ac_status=$?
17478 grep -v '^ *+' conftest.er1 >conftest.err
17479 rm -f conftest.er1
17480 cat conftest.err >&5
17481 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17482 (exit $ac_status); } && {
17483 test -z "$ac_c_werror_flag" ||
17484 test ! -s conftest.err
17485 } && test -s conftest$ac_exeext &&
17486 $as_test_x conftest$ac_exeext; then
17487 ac_cv_lib_elf_elf_begin=yes
17488 else
17489 echo "$as_me: failed program was:" >&5
17490 sed 's/^/| /' conftest.$ac_ext >&5
17492 ac_cv_lib_elf_elf_begin=no
17495 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
17496 conftest$ac_exeext conftest.$ac_ext
17497 LIBS=$ac_check_lib_save_LIBS
17499 { echo "$as_me:$LINENO: result: $ac_cv_lib_elf_elf_begin" >&5
17500 echo "${ECHO_T}$ac_cv_lib_elf_elf_begin" >&6; }
17501 if test $ac_cv_lib_elf_elf_begin = yes; then
17502 LIBS="-lelf $LIBS"
17506 if test $ac_have_func = no; then
17507 { echo "$as_me:$LINENO: checking for kvm_open in -lkvm" >&5
17508 echo $ECHO_N "checking for kvm_open in -lkvm... $ECHO_C" >&6; }
17509 if test "${ac_cv_lib_kvm_kvm_open+set}" = set; then
17510 echo $ECHO_N "(cached) $ECHO_C" >&6
17511 else
17512 ac_check_lib_save_LIBS=$LIBS
17513 LIBS="-lkvm $LIBS"
17514 cat >conftest.$ac_ext <<_ACEOF
17515 /* confdefs.h. */
17516 _ACEOF
17517 cat confdefs.h >>conftest.$ac_ext
17518 cat >>conftest.$ac_ext <<_ACEOF
17519 /* end confdefs.h. */
17521 /* Override any GCC internal prototype to avoid an error.
17522 Use char because int might match the return type of a GCC
17523 builtin and then its argument prototype would still apply. */
17524 #ifdef __cplusplus
17525 extern "C"
17526 #endif
17527 char kvm_open ();
17529 main ()
17531 return kvm_open ();
17533 return 0;
17535 _ACEOF
17536 rm -f conftest.$ac_objext conftest$ac_exeext
17537 if { (ac_try="$ac_link"
17538 case "(($ac_try" in
17539 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17540 *) ac_try_echo=$ac_try;;
17541 esac
17542 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17543 (eval "$ac_link") 2>conftest.er1
17544 ac_status=$?
17545 grep -v '^ *+' conftest.er1 >conftest.err
17546 rm -f conftest.er1
17547 cat conftest.err >&5
17548 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17549 (exit $ac_status); } && {
17550 test -z "$ac_c_werror_flag" ||
17551 test ! -s conftest.err
17552 } && test -s conftest$ac_exeext &&
17553 $as_test_x conftest$ac_exeext; then
17554 ac_cv_lib_kvm_kvm_open=yes
17555 else
17556 echo "$as_me: failed program was:" >&5
17557 sed 's/^/| /' conftest.$ac_ext >&5
17559 ac_cv_lib_kvm_kvm_open=no
17562 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
17563 conftest$ac_exeext conftest.$ac_ext
17564 LIBS=$ac_check_lib_save_LIBS
17566 { echo "$as_me:$LINENO: result: $ac_cv_lib_kvm_kvm_open" >&5
17567 echo "${ECHO_T}$ac_cv_lib_kvm_kvm_open" >&6; }
17568 if test $ac_cv_lib_kvm_kvm_open = yes; then
17569 LIBS="-lkvm $LIBS"
17572 # Check for the 4.4BSD definition of getloadavg.
17573 { echo "$as_me:$LINENO: checking for getloadavg in -lutil" >&5
17574 echo $ECHO_N "checking for getloadavg in -lutil... $ECHO_C" >&6; }
17575 if test "${ac_cv_lib_util_getloadavg+set}" = set; then
17576 echo $ECHO_N "(cached) $ECHO_C" >&6
17577 else
17578 ac_check_lib_save_LIBS=$LIBS
17579 LIBS="-lutil $LIBS"
17580 cat >conftest.$ac_ext <<_ACEOF
17581 /* confdefs.h. */
17582 _ACEOF
17583 cat confdefs.h >>conftest.$ac_ext
17584 cat >>conftest.$ac_ext <<_ACEOF
17585 /* end confdefs.h. */
17587 /* Override any GCC internal prototype to avoid an error.
17588 Use char because int might match the return type of a GCC
17589 builtin and then its argument prototype would still apply. */
17590 #ifdef __cplusplus
17591 extern "C"
17592 #endif
17593 char getloadavg ();
17595 main ()
17597 return getloadavg ();
17599 return 0;
17601 _ACEOF
17602 rm -f conftest.$ac_objext conftest$ac_exeext
17603 if { (ac_try="$ac_link"
17604 case "(($ac_try" in
17605 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17606 *) ac_try_echo=$ac_try;;
17607 esac
17608 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17609 (eval "$ac_link") 2>conftest.er1
17610 ac_status=$?
17611 grep -v '^ *+' conftest.er1 >conftest.err
17612 rm -f conftest.er1
17613 cat conftest.err >&5
17614 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17615 (exit $ac_status); } && {
17616 test -z "$ac_c_werror_flag" ||
17617 test ! -s conftest.err
17618 } && test -s conftest$ac_exeext &&
17619 $as_test_x conftest$ac_exeext; then
17620 ac_cv_lib_util_getloadavg=yes
17621 else
17622 echo "$as_me: failed program was:" >&5
17623 sed 's/^/| /' conftest.$ac_ext >&5
17625 ac_cv_lib_util_getloadavg=no
17628 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
17629 conftest$ac_exeext conftest.$ac_ext
17630 LIBS=$ac_check_lib_save_LIBS
17632 { echo "$as_me:$LINENO: result: $ac_cv_lib_util_getloadavg" >&5
17633 echo "${ECHO_T}$ac_cv_lib_util_getloadavg" >&6; }
17634 if test $ac_cv_lib_util_getloadavg = yes; then
17635 LIBS="-lutil $LIBS" ac_have_func=yes ac_cv_func_getloadavg_setgid=yes
17640 if test $ac_have_func = no; then
17641 # There is a commonly available library for RS/6000 AIX.
17642 # Since it is not a standard part of AIX, it might be installed locally.
17643 ac_getloadavg_LIBS=$LIBS
17644 LIBS="-L/usr/local/lib $LIBS"
17645 { echo "$as_me:$LINENO: checking for getloadavg in -lgetloadavg" >&5
17646 echo $ECHO_N "checking for getloadavg in -lgetloadavg... $ECHO_C" >&6; }
17647 if test "${ac_cv_lib_getloadavg_getloadavg+set}" = set; then
17648 echo $ECHO_N "(cached) $ECHO_C" >&6
17649 else
17650 ac_check_lib_save_LIBS=$LIBS
17651 LIBS="-lgetloadavg $LIBS"
17652 cat >conftest.$ac_ext <<_ACEOF
17653 /* confdefs.h. */
17654 _ACEOF
17655 cat confdefs.h >>conftest.$ac_ext
17656 cat >>conftest.$ac_ext <<_ACEOF
17657 /* end confdefs.h. */
17659 /* Override any GCC internal prototype to avoid an error.
17660 Use char because int might match the return type of a GCC
17661 builtin and then its argument prototype would still apply. */
17662 #ifdef __cplusplus
17663 extern "C"
17664 #endif
17665 char getloadavg ();
17667 main ()
17669 return getloadavg ();
17671 return 0;
17673 _ACEOF
17674 rm -f conftest.$ac_objext conftest$ac_exeext
17675 if { (ac_try="$ac_link"
17676 case "(($ac_try" in
17677 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17678 *) ac_try_echo=$ac_try;;
17679 esac
17680 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17681 (eval "$ac_link") 2>conftest.er1
17682 ac_status=$?
17683 grep -v '^ *+' conftest.er1 >conftest.err
17684 rm -f conftest.er1
17685 cat conftest.err >&5
17686 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17687 (exit $ac_status); } && {
17688 test -z "$ac_c_werror_flag" ||
17689 test ! -s conftest.err
17690 } && test -s conftest$ac_exeext &&
17691 $as_test_x conftest$ac_exeext; then
17692 ac_cv_lib_getloadavg_getloadavg=yes
17693 else
17694 echo "$as_me: failed program was:" >&5
17695 sed 's/^/| /' conftest.$ac_ext >&5
17697 ac_cv_lib_getloadavg_getloadavg=no
17700 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
17701 conftest$ac_exeext conftest.$ac_ext
17702 LIBS=$ac_check_lib_save_LIBS
17704 { echo "$as_me:$LINENO: result: $ac_cv_lib_getloadavg_getloadavg" >&5
17705 echo "${ECHO_T}$ac_cv_lib_getloadavg_getloadavg" >&6; }
17706 if test $ac_cv_lib_getloadavg_getloadavg = yes; then
17707 LIBS="-lgetloadavg $LIBS"
17708 else
17709 LIBS=$ac_getloadavg_LIBS
17714 # Make sure it is really in the library, if we think we found it,
17715 # otherwise set up the replacement function.
17717 for ac_func in getloadavg
17719 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
17720 { echo "$as_me:$LINENO: checking for $ac_func" >&5
17721 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
17722 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
17723 echo $ECHO_N "(cached) $ECHO_C" >&6
17724 else
17725 cat >conftest.$ac_ext <<_ACEOF
17726 /* confdefs.h. */
17727 _ACEOF
17728 cat confdefs.h >>conftest.$ac_ext
17729 cat >>conftest.$ac_ext <<_ACEOF
17730 /* end confdefs.h. */
17731 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
17732 For example, HP-UX 11i <limits.h> declares gettimeofday. */
17733 #define $ac_func innocuous_$ac_func
17735 /* System header to define __stub macros and hopefully few prototypes,
17736 which can conflict with char $ac_func (); below.
17737 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
17738 <limits.h> exists even on freestanding compilers. */
17740 #ifdef __STDC__
17741 # include <limits.h>
17742 #else
17743 # include <assert.h>
17744 #endif
17746 #undef $ac_func
17748 /* Override any GCC internal prototype to avoid an error.
17749 Use char because int might match the return type of a GCC
17750 builtin and then its argument prototype would still apply. */
17751 #ifdef __cplusplus
17752 extern "C"
17753 #endif
17754 char $ac_func ();
17755 /* The GNU C library defines this for functions which it implements
17756 to always fail with ENOSYS. Some functions are actually named
17757 something starting with __ and the normal name is an alias. */
17758 #if defined __stub_$ac_func || defined __stub___$ac_func
17759 choke me
17760 #endif
17763 main ()
17765 return $ac_func ();
17767 return 0;
17769 _ACEOF
17770 rm -f conftest.$ac_objext conftest$ac_exeext
17771 if { (ac_try="$ac_link"
17772 case "(($ac_try" in
17773 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17774 *) ac_try_echo=$ac_try;;
17775 esac
17776 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17777 (eval "$ac_link") 2>conftest.er1
17778 ac_status=$?
17779 grep -v '^ *+' conftest.er1 >conftest.err
17780 rm -f conftest.er1
17781 cat conftest.err >&5
17782 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17783 (exit $ac_status); } && {
17784 test -z "$ac_c_werror_flag" ||
17785 test ! -s conftest.err
17786 } && test -s conftest$ac_exeext &&
17787 $as_test_x conftest$ac_exeext; then
17788 eval "$as_ac_var=yes"
17789 else
17790 echo "$as_me: failed program was:" >&5
17791 sed 's/^/| /' conftest.$ac_ext >&5
17793 eval "$as_ac_var=no"
17796 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
17797 conftest$ac_exeext conftest.$ac_ext
17799 ac_res=`eval echo '${'$as_ac_var'}'`
17800 { echo "$as_me:$LINENO: result: $ac_res" >&5
17801 echo "${ECHO_T}$ac_res" >&6; }
17802 if test `eval echo '${'$as_ac_var'}'` = yes; then
17803 cat >>confdefs.h <<_ACEOF
17804 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
17805 _ACEOF
17807 else
17808 case " $LIBOBJS " in
17809 *" getloadavg.$ac_objext "* ) ;;
17810 *) LIBOBJS="$LIBOBJS getloadavg.$ac_objext"
17812 esac
17815 cat >>confdefs.h <<\_ACEOF
17816 #define C_GETLOADAVG 1
17817 _ACEOF
17819 # Figure out what our getloadavg.c needs.
17820 ac_have_func=no
17821 if test "${ac_cv_header_sys_dg_sys_info_h+set}" = set; then
17822 { echo "$as_me:$LINENO: checking for sys/dg_sys_info.h" >&5
17823 echo $ECHO_N "checking for sys/dg_sys_info.h... $ECHO_C" >&6; }
17824 if test "${ac_cv_header_sys_dg_sys_info_h+set}" = set; then
17825 echo $ECHO_N "(cached) $ECHO_C" >&6
17827 { echo "$as_me:$LINENO: result: $ac_cv_header_sys_dg_sys_info_h" >&5
17828 echo "${ECHO_T}$ac_cv_header_sys_dg_sys_info_h" >&6; }
17829 else
17830 # Is the header compilable?
17831 { echo "$as_me:$LINENO: checking sys/dg_sys_info.h usability" >&5
17832 echo $ECHO_N "checking sys/dg_sys_info.h usability... $ECHO_C" >&6; }
17833 cat >conftest.$ac_ext <<_ACEOF
17834 /* confdefs.h. */
17835 _ACEOF
17836 cat confdefs.h >>conftest.$ac_ext
17837 cat >>conftest.$ac_ext <<_ACEOF
17838 /* end confdefs.h. */
17839 $ac_includes_default
17840 #include <sys/dg_sys_info.h>
17841 _ACEOF
17842 rm -f conftest.$ac_objext
17843 if { (ac_try="$ac_compile"
17844 case "(($ac_try" in
17845 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17846 *) ac_try_echo=$ac_try;;
17847 esac
17848 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17849 (eval "$ac_compile") 2>conftest.er1
17850 ac_status=$?
17851 grep -v '^ *+' conftest.er1 >conftest.err
17852 rm -f conftest.er1
17853 cat conftest.err >&5
17854 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17855 (exit $ac_status); } && {
17856 test -z "$ac_c_werror_flag" ||
17857 test ! -s conftest.err
17858 } && test -s conftest.$ac_objext; then
17859 ac_header_compiler=yes
17860 else
17861 echo "$as_me: failed program was:" >&5
17862 sed 's/^/| /' conftest.$ac_ext >&5
17864 ac_header_compiler=no
17867 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17868 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
17869 echo "${ECHO_T}$ac_header_compiler" >&6; }
17871 # Is the header present?
17872 { echo "$as_me:$LINENO: checking sys/dg_sys_info.h presence" >&5
17873 echo $ECHO_N "checking sys/dg_sys_info.h presence... $ECHO_C" >&6; }
17874 cat >conftest.$ac_ext <<_ACEOF
17875 /* confdefs.h. */
17876 _ACEOF
17877 cat confdefs.h >>conftest.$ac_ext
17878 cat >>conftest.$ac_ext <<_ACEOF
17879 /* end confdefs.h. */
17880 #include <sys/dg_sys_info.h>
17881 _ACEOF
17882 if { (ac_try="$ac_cpp conftest.$ac_ext"
17883 case "(($ac_try" in
17884 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17885 *) ac_try_echo=$ac_try;;
17886 esac
17887 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17888 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
17889 ac_status=$?
17890 grep -v '^ *+' conftest.er1 >conftest.err
17891 rm -f conftest.er1
17892 cat conftest.err >&5
17893 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17894 (exit $ac_status); } >/dev/null && {
17895 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
17896 test ! -s conftest.err
17897 }; then
17898 ac_header_preproc=yes
17899 else
17900 echo "$as_me: failed program was:" >&5
17901 sed 's/^/| /' conftest.$ac_ext >&5
17903 ac_header_preproc=no
17906 rm -f conftest.err conftest.$ac_ext
17907 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
17908 echo "${ECHO_T}$ac_header_preproc" >&6; }
17910 # So? What about this header?
17911 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
17912 yes:no: )
17913 { echo "$as_me:$LINENO: WARNING: sys/dg_sys_info.h: accepted by the compiler, rejected by the preprocessor!" >&5
17914 echo "$as_me: WARNING: sys/dg_sys_info.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
17915 { echo "$as_me:$LINENO: WARNING: sys/dg_sys_info.h: proceeding with the compiler's result" >&5
17916 echo "$as_me: WARNING: sys/dg_sys_info.h: proceeding with the compiler's result" >&2;}
17917 ac_header_preproc=yes
17919 no:yes:* )
17920 { echo "$as_me:$LINENO: WARNING: sys/dg_sys_info.h: present but cannot be compiled" >&5
17921 echo "$as_me: WARNING: sys/dg_sys_info.h: present but cannot be compiled" >&2;}
17922 { echo "$as_me:$LINENO: WARNING: sys/dg_sys_info.h: check for missing prerequisite headers?" >&5
17923 echo "$as_me: WARNING: sys/dg_sys_info.h: check for missing prerequisite headers?" >&2;}
17924 { echo "$as_me:$LINENO: WARNING: sys/dg_sys_info.h: see the Autoconf documentation" >&5
17925 echo "$as_me: WARNING: sys/dg_sys_info.h: see the Autoconf documentation" >&2;}
17926 { echo "$as_me:$LINENO: WARNING: sys/dg_sys_info.h: section \"Present But Cannot Be Compiled\"" >&5
17927 echo "$as_me: WARNING: sys/dg_sys_info.h: section \"Present But Cannot Be Compiled\"" >&2;}
17928 { echo "$as_me:$LINENO: WARNING: sys/dg_sys_info.h: proceeding with the preprocessor's result" >&5
17929 echo "$as_me: WARNING: sys/dg_sys_info.h: proceeding with the preprocessor's result" >&2;}
17930 { echo "$as_me:$LINENO: WARNING: sys/dg_sys_info.h: in the future, the compiler will take precedence" >&5
17931 echo "$as_me: WARNING: sys/dg_sys_info.h: in the future, the compiler will take precedence" >&2;}
17934 esac
17935 { echo "$as_me:$LINENO: checking for sys/dg_sys_info.h" >&5
17936 echo $ECHO_N "checking for sys/dg_sys_info.h... $ECHO_C" >&6; }
17937 if test "${ac_cv_header_sys_dg_sys_info_h+set}" = set; then
17938 echo $ECHO_N "(cached) $ECHO_C" >&6
17939 else
17940 ac_cv_header_sys_dg_sys_info_h=$ac_header_preproc
17942 { echo "$as_me:$LINENO: result: $ac_cv_header_sys_dg_sys_info_h" >&5
17943 echo "${ECHO_T}$ac_cv_header_sys_dg_sys_info_h" >&6; }
17946 if test $ac_cv_header_sys_dg_sys_info_h = yes; then
17947 ac_have_func=yes
17949 cat >>confdefs.h <<\_ACEOF
17950 #define DGUX 1
17951 _ACEOF
17954 { echo "$as_me:$LINENO: checking for dg_sys_info in -ldgc" >&5
17955 echo $ECHO_N "checking for dg_sys_info in -ldgc... $ECHO_C" >&6; }
17956 if test "${ac_cv_lib_dgc_dg_sys_info+set}" = set; then
17957 echo $ECHO_N "(cached) $ECHO_C" >&6
17958 else
17959 ac_check_lib_save_LIBS=$LIBS
17960 LIBS="-ldgc $LIBS"
17961 cat >conftest.$ac_ext <<_ACEOF
17962 /* confdefs.h. */
17963 _ACEOF
17964 cat confdefs.h >>conftest.$ac_ext
17965 cat >>conftest.$ac_ext <<_ACEOF
17966 /* end confdefs.h. */
17968 /* Override any GCC internal prototype to avoid an error.
17969 Use char because int might match the return type of a GCC
17970 builtin and then its argument prototype would still apply. */
17971 #ifdef __cplusplus
17972 extern "C"
17973 #endif
17974 char dg_sys_info ();
17976 main ()
17978 return dg_sys_info ();
17980 return 0;
17982 _ACEOF
17983 rm -f conftest.$ac_objext conftest$ac_exeext
17984 if { (ac_try="$ac_link"
17985 case "(($ac_try" in
17986 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17987 *) ac_try_echo=$ac_try;;
17988 esac
17989 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17990 (eval "$ac_link") 2>conftest.er1
17991 ac_status=$?
17992 grep -v '^ *+' conftest.er1 >conftest.err
17993 rm -f conftest.er1
17994 cat conftest.err >&5
17995 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17996 (exit $ac_status); } && {
17997 test -z "$ac_c_werror_flag" ||
17998 test ! -s conftest.err
17999 } && test -s conftest$ac_exeext &&
18000 $as_test_x conftest$ac_exeext; then
18001 ac_cv_lib_dgc_dg_sys_info=yes
18002 else
18003 echo "$as_me: failed program was:" >&5
18004 sed 's/^/| /' conftest.$ac_ext >&5
18006 ac_cv_lib_dgc_dg_sys_info=no
18009 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
18010 conftest$ac_exeext conftest.$ac_ext
18011 LIBS=$ac_check_lib_save_LIBS
18013 { echo "$as_me:$LINENO: result: $ac_cv_lib_dgc_dg_sys_info" >&5
18014 echo "${ECHO_T}$ac_cv_lib_dgc_dg_sys_info" >&6; }
18015 if test $ac_cv_lib_dgc_dg_sys_info = yes; then
18016 cat >>confdefs.h <<_ACEOF
18017 #define HAVE_LIBDGC 1
18018 _ACEOF
18020 LIBS="-ldgc $LIBS"
18028 if test "${ac_cv_header_locale_h+set}" = set; then
18029 { echo "$as_me:$LINENO: checking for locale.h" >&5
18030 echo $ECHO_N "checking for locale.h... $ECHO_C" >&6; }
18031 if test "${ac_cv_header_locale_h+set}" = set; then
18032 echo $ECHO_N "(cached) $ECHO_C" >&6
18034 { echo "$as_me:$LINENO: result: $ac_cv_header_locale_h" >&5
18035 echo "${ECHO_T}$ac_cv_header_locale_h" >&6; }
18036 else
18037 # Is the header compilable?
18038 { echo "$as_me:$LINENO: checking locale.h usability" >&5
18039 echo $ECHO_N "checking locale.h usability... $ECHO_C" >&6; }
18040 cat >conftest.$ac_ext <<_ACEOF
18041 /* confdefs.h. */
18042 _ACEOF
18043 cat confdefs.h >>conftest.$ac_ext
18044 cat >>conftest.$ac_ext <<_ACEOF
18045 /* end confdefs.h. */
18046 $ac_includes_default
18047 #include <locale.h>
18048 _ACEOF
18049 rm -f conftest.$ac_objext
18050 if { (ac_try="$ac_compile"
18051 case "(($ac_try" in
18052 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18053 *) ac_try_echo=$ac_try;;
18054 esac
18055 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18056 (eval "$ac_compile") 2>conftest.er1
18057 ac_status=$?
18058 grep -v '^ *+' conftest.er1 >conftest.err
18059 rm -f conftest.er1
18060 cat conftest.err >&5
18061 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18062 (exit $ac_status); } && {
18063 test -z "$ac_c_werror_flag" ||
18064 test ! -s conftest.err
18065 } && test -s conftest.$ac_objext; then
18066 ac_header_compiler=yes
18067 else
18068 echo "$as_me: failed program was:" >&5
18069 sed 's/^/| /' conftest.$ac_ext >&5
18071 ac_header_compiler=no
18074 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18075 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
18076 echo "${ECHO_T}$ac_header_compiler" >&6; }
18078 # Is the header present?
18079 { echo "$as_me:$LINENO: checking locale.h presence" >&5
18080 echo $ECHO_N "checking locale.h presence... $ECHO_C" >&6; }
18081 cat >conftest.$ac_ext <<_ACEOF
18082 /* confdefs.h. */
18083 _ACEOF
18084 cat confdefs.h >>conftest.$ac_ext
18085 cat >>conftest.$ac_ext <<_ACEOF
18086 /* end confdefs.h. */
18087 #include <locale.h>
18088 _ACEOF
18089 if { (ac_try="$ac_cpp conftest.$ac_ext"
18090 case "(($ac_try" in
18091 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18092 *) ac_try_echo=$ac_try;;
18093 esac
18094 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18095 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
18096 ac_status=$?
18097 grep -v '^ *+' conftest.er1 >conftest.err
18098 rm -f conftest.er1
18099 cat conftest.err >&5
18100 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18101 (exit $ac_status); } >/dev/null && {
18102 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
18103 test ! -s conftest.err
18104 }; then
18105 ac_header_preproc=yes
18106 else
18107 echo "$as_me: failed program was:" >&5
18108 sed 's/^/| /' conftest.$ac_ext >&5
18110 ac_header_preproc=no
18113 rm -f conftest.err conftest.$ac_ext
18114 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
18115 echo "${ECHO_T}$ac_header_preproc" >&6; }
18117 # So? What about this header?
18118 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
18119 yes:no: )
18120 { echo "$as_me:$LINENO: WARNING: locale.h: accepted by the compiler, rejected by the preprocessor!" >&5
18121 echo "$as_me: WARNING: locale.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
18122 { echo "$as_me:$LINENO: WARNING: locale.h: proceeding with the compiler's result" >&5
18123 echo "$as_me: WARNING: locale.h: proceeding with the compiler's result" >&2;}
18124 ac_header_preproc=yes
18126 no:yes:* )
18127 { echo "$as_me:$LINENO: WARNING: locale.h: present but cannot be compiled" >&5
18128 echo "$as_me: WARNING: locale.h: present but cannot be compiled" >&2;}
18129 { echo "$as_me:$LINENO: WARNING: locale.h: check for missing prerequisite headers?" >&5
18130 echo "$as_me: WARNING: locale.h: check for missing prerequisite headers?" >&2;}
18131 { echo "$as_me:$LINENO: WARNING: locale.h: see the Autoconf documentation" >&5
18132 echo "$as_me: WARNING: locale.h: see the Autoconf documentation" >&2;}
18133 { echo "$as_me:$LINENO: WARNING: locale.h: section \"Present But Cannot Be Compiled\"" >&5
18134 echo "$as_me: WARNING: locale.h: section \"Present But Cannot Be Compiled\"" >&2;}
18135 { echo "$as_me:$LINENO: WARNING: locale.h: proceeding with the preprocessor's result" >&5
18136 echo "$as_me: WARNING: locale.h: proceeding with the preprocessor's result" >&2;}
18137 { echo "$as_me:$LINENO: WARNING: locale.h: in the future, the compiler will take precedence" >&5
18138 echo "$as_me: WARNING: locale.h: in the future, the compiler will take precedence" >&2;}
18141 esac
18142 { echo "$as_me:$LINENO: checking for locale.h" >&5
18143 echo $ECHO_N "checking for locale.h... $ECHO_C" >&6; }
18144 if test "${ac_cv_header_locale_h+set}" = set; then
18145 echo $ECHO_N "(cached) $ECHO_C" >&6
18146 else
18147 ac_cv_header_locale_h=$ac_header_preproc
18149 { echo "$as_me:$LINENO: result: $ac_cv_header_locale_h" >&5
18150 echo "${ECHO_T}$ac_cv_header_locale_h" >&6; }
18156 for ac_func in setlocale
18158 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
18159 { echo "$as_me:$LINENO: checking for $ac_func" >&5
18160 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
18161 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
18162 echo $ECHO_N "(cached) $ECHO_C" >&6
18163 else
18164 cat >conftest.$ac_ext <<_ACEOF
18165 /* confdefs.h. */
18166 _ACEOF
18167 cat confdefs.h >>conftest.$ac_ext
18168 cat >>conftest.$ac_ext <<_ACEOF
18169 /* end confdefs.h. */
18170 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
18171 For example, HP-UX 11i <limits.h> declares gettimeofday. */
18172 #define $ac_func innocuous_$ac_func
18174 /* System header to define __stub macros and hopefully few prototypes,
18175 which can conflict with char $ac_func (); below.
18176 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
18177 <limits.h> exists even on freestanding compilers. */
18179 #ifdef __STDC__
18180 # include <limits.h>
18181 #else
18182 # include <assert.h>
18183 #endif
18185 #undef $ac_func
18187 /* Override any GCC internal prototype to avoid an error.
18188 Use char because int might match the return type of a GCC
18189 builtin and then its argument prototype would still apply. */
18190 #ifdef __cplusplus
18191 extern "C"
18192 #endif
18193 char $ac_func ();
18194 /* The GNU C library defines this for functions which it implements
18195 to always fail with ENOSYS. Some functions are actually named
18196 something starting with __ and the normal name is an alias. */
18197 #if defined __stub_$ac_func || defined __stub___$ac_func
18198 choke me
18199 #endif
18202 main ()
18204 return $ac_func ();
18206 return 0;
18208 _ACEOF
18209 rm -f conftest.$ac_objext conftest$ac_exeext
18210 if { (ac_try="$ac_link"
18211 case "(($ac_try" in
18212 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18213 *) ac_try_echo=$ac_try;;
18214 esac
18215 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18216 (eval "$ac_link") 2>conftest.er1
18217 ac_status=$?
18218 grep -v '^ *+' conftest.er1 >conftest.err
18219 rm -f conftest.er1
18220 cat conftest.err >&5
18221 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18222 (exit $ac_status); } && {
18223 test -z "$ac_c_werror_flag" ||
18224 test ! -s conftest.err
18225 } && test -s conftest$ac_exeext &&
18226 $as_test_x conftest$ac_exeext; then
18227 eval "$as_ac_var=yes"
18228 else
18229 echo "$as_me: failed program was:" >&5
18230 sed 's/^/| /' conftest.$ac_ext >&5
18232 eval "$as_ac_var=no"
18235 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
18236 conftest$ac_exeext conftest.$ac_ext
18238 ac_res=`eval echo '${'$as_ac_var'}'`
18239 { echo "$as_me:$LINENO: result: $ac_res" >&5
18240 echo "${ECHO_T}$ac_res" >&6; }
18241 if test `eval echo '${'$as_ac_var'}'` = yes; then
18242 cat >>confdefs.h <<_ACEOF
18243 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
18244 _ACEOF
18247 done
18250 # We cannot check for <dwarf.h>, because Solaris 2 does not use dwarf (it
18251 # uses stabs), but it is still SVR4. We cannot check for <elf.h> because
18252 # Irix 4.0.5F has the header but not the library.
18253 if test $ac_have_func = no && test "$ac_cv_lib_elf_elf_begin" = yes; then
18254 ac_have_func=yes
18256 cat >>confdefs.h <<\_ACEOF
18257 #define SVR4 1
18258 _ACEOF
18262 if test $ac_have_func = no; then
18263 if test "${ac_cv_header_inq_stats_cpustats_h+set}" = set; then
18264 { echo "$as_me:$LINENO: checking for inq_stats/cpustats.h" >&5
18265 echo $ECHO_N "checking for inq_stats/cpustats.h... $ECHO_C" >&6; }
18266 if test "${ac_cv_header_inq_stats_cpustats_h+set}" = set; then
18267 echo $ECHO_N "(cached) $ECHO_C" >&6
18269 { echo "$as_me:$LINENO: result: $ac_cv_header_inq_stats_cpustats_h" >&5
18270 echo "${ECHO_T}$ac_cv_header_inq_stats_cpustats_h" >&6; }
18271 else
18272 # Is the header compilable?
18273 { echo "$as_me:$LINENO: checking inq_stats/cpustats.h usability" >&5
18274 echo $ECHO_N "checking inq_stats/cpustats.h usability... $ECHO_C" >&6; }
18275 cat >conftest.$ac_ext <<_ACEOF
18276 /* confdefs.h. */
18277 _ACEOF
18278 cat confdefs.h >>conftest.$ac_ext
18279 cat >>conftest.$ac_ext <<_ACEOF
18280 /* end confdefs.h. */
18281 $ac_includes_default
18282 #include <inq_stats/cpustats.h>
18283 _ACEOF
18284 rm -f conftest.$ac_objext
18285 if { (ac_try="$ac_compile"
18286 case "(($ac_try" in
18287 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18288 *) ac_try_echo=$ac_try;;
18289 esac
18290 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18291 (eval "$ac_compile") 2>conftest.er1
18292 ac_status=$?
18293 grep -v '^ *+' conftest.er1 >conftest.err
18294 rm -f conftest.er1
18295 cat conftest.err >&5
18296 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18297 (exit $ac_status); } && {
18298 test -z "$ac_c_werror_flag" ||
18299 test ! -s conftest.err
18300 } && test -s conftest.$ac_objext; then
18301 ac_header_compiler=yes
18302 else
18303 echo "$as_me: failed program was:" >&5
18304 sed 's/^/| /' conftest.$ac_ext >&5
18306 ac_header_compiler=no
18309 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18310 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
18311 echo "${ECHO_T}$ac_header_compiler" >&6; }
18313 # Is the header present?
18314 { echo "$as_me:$LINENO: checking inq_stats/cpustats.h presence" >&5
18315 echo $ECHO_N "checking inq_stats/cpustats.h presence... $ECHO_C" >&6; }
18316 cat >conftest.$ac_ext <<_ACEOF
18317 /* confdefs.h. */
18318 _ACEOF
18319 cat confdefs.h >>conftest.$ac_ext
18320 cat >>conftest.$ac_ext <<_ACEOF
18321 /* end confdefs.h. */
18322 #include <inq_stats/cpustats.h>
18323 _ACEOF
18324 if { (ac_try="$ac_cpp conftest.$ac_ext"
18325 case "(($ac_try" in
18326 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18327 *) ac_try_echo=$ac_try;;
18328 esac
18329 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18330 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
18331 ac_status=$?
18332 grep -v '^ *+' conftest.er1 >conftest.err
18333 rm -f conftest.er1
18334 cat conftest.err >&5
18335 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18336 (exit $ac_status); } >/dev/null && {
18337 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
18338 test ! -s conftest.err
18339 }; then
18340 ac_header_preproc=yes
18341 else
18342 echo "$as_me: failed program was:" >&5
18343 sed 's/^/| /' conftest.$ac_ext >&5
18345 ac_header_preproc=no
18348 rm -f conftest.err conftest.$ac_ext
18349 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
18350 echo "${ECHO_T}$ac_header_preproc" >&6; }
18352 # So? What about this header?
18353 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
18354 yes:no: )
18355 { echo "$as_me:$LINENO: WARNING: inq_stats/cpustats.h: accepted by the compiler, rejected by the preprocessor!" >&5
18356 echo "$as_me: WARNING: inq_stats/cpustats.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
18357 { echo "$as_me:$LINENO: WARNING: inq_stats/cpustats.h: proceeding with the compiler's result" >&5
18358 echo "$as_me: WARNING: inq_stats/cpustats.h: proceeding with the compiler's result" >&2;}
18359 ac_header_preproc=yes
18361 no:yes:* )
18362 { echo "$as_me:$LINENO: WARNING: inq_stats/cpustats.h: present but cannot be compiled" >&5
18363 echo "$as_me: WARNING: inq_stats/cpustats.h: present but cannot be compiled" >&2;}
18364 { echo "$as_me:$LINENO: WARNING: inq_stats/cpustats.h: check for missing prerequisite headers?" >&5
18365 echo "$as_me: WARNING: inq_stats/cpustats.h: check for missing prerequisite headers?" >&2;}
18366 { echo "$as_me:$LINENO: WARNING: inq_stats/cpustats.h: see the Autoconf documentation" >&5
18367 echo "$as_me: WARNING: inq_stats/cpustats.h: see the Autoconf documentation" >&2;}
18368 { echo "$as_me:$LINENO: WARNING: inq_stats/cpustats.h: section \"Present But Cannot Be Compiled\"" >&5
18369 echo "$as_me: WARNING: inq_stats/cpustats.h: section \"Present But Cannot Be Compiled\"" >&2;}
18370 { echo "$as_me:$LINENO: WARNING: inq_stats/cpustats.h: proceeding with the preprocessor's result" >&5
18371 echo "$as_me: WARNING: inq_stats/cpustats.h: proceeding with the preprocessor's result" >&2;}
18372 { echo "$as_me:$LINENO: WARNING: inq_stats/cpustats.h: in the future, the compiler will take precedence" >&5
18373 echo "$as_me: WARNING: inq_stats/cpustats.h: in the future, the compiler will take precedence" >&2;}
18376 esac
18377 { echo "$as_me:$LINENO: checking for inq_stats/cpustats.h" >&5
18378 echo $ECHO_N "checking for inq_stats/cpustats.h... $ECHO_C" >&6; }
18379 if test "${ac_cv_header_inq_stats_cpustats_h+set}" = set; then
18380 echo $ECHO_N "(cached) $ECHO_C" >&6
18381 else
18382 ac_cv_header_inq_stats_cpustats_h=$ac_header_preproc
18384 { echo "$as_me:$LINENO: result: $ac_cv_header_inq_stats_cpustats_h" >&5
18385 echo "${ECHO_T}$ac_cv_header_inq_stats_cpustats_h" >&6; }
18388 if test $ac_cv_header_inq_stats_cpustats_h = yes; then
18389 ac_have_func=yes
18391 cat >>confdefs.h <<\_ACEOF
18392 #define UMAX 1
18393 _ACEOF
18396 cat >>confdefs.h <<\_ACEOF
18397 #define UMAX4_3 1
18398 _ACEOF
18405 if test $ac_have_func = no; then
18406 if test "${ac_cv_header_sys_cpustats_h+set}" = set; then
18407 { echo "$as_me:$LINENO: checking for sys/cpustats.h" >&5
18408 echo $ECHO_N "checking for sys/cpustats.h... $ECHO_C" >&6; }
18409 if test "${ac_cv_header_sys_cpustats_h+set}" = set; then
18410 echo $ECHO_N "(cached) $ECHO_C" >&6
18412 { echo "$as_me:$LINENO: result: $ac_cv_header_sys_cpustats_h" >&5
18413 echo "${ECHO_T}$ac_cv_header_sys_cpustats_h" >&6; }
18414 else
18415 # Is the header compilable?
18416 { echo "$as_me:$LINENO: checking sys/cpustats.h usability" >&5
18417 echo $ECHO_N "checking sys/cpustats.h usability... $ECHO_C" >&6; }
18418 cat >conftest.$ac_ext <<_ACEOF
18419 /* confdefs.h. */
18420 _ACEOF
18421 cat confdefs.h >>conftest.$ac_ext
18422 cat >>conftest.$ac_ext <<_ACEOF
18423 /* end confdefs.h. */
18424 $ac_includes_default
18425 #include <sys/cpustats.h>
18426 _ACEOF
18427 rm -f conftest.$ac_objext
18428 if { (ac_try="$ac_compile"
18429 case "(($ac_try" in
18430 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18431 *) ac_try_echo=$ac_try;;
18432 esac
18433 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18434 (eval "$ac_compile") 2>conftest.er1
18435 ac_status=$?
18436 grep -v '^ *+' conftest.er1 >conftest.err
18437 rm -f conftest.er1
18438 cat conftest.err >&5
18439 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18440 (exit $ac_status); } && {
18441 test -z "$ac_c_werror_flag" ||
18442 test ! -s conftest.err
18443 } && test -s conftest.$ac_objext; then
18444 ac_header_compiler=yes
18445 else
18446 echo "$as_me: failed program was:" >&5
18447 sed 's/^/| /' conftest.$ac_ext >&5
18449 ac_header_compiler=no
18452 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18453 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
18454 echo "${ECHO_T}$ac_header_compiler" >&6; }
18456 # Is the header present?
18457 { echo "$as_me:$LINENO: checking sys/cpustats.h presence" >&5
18458 echo $ECHO_N "checking sys/cpustats.h presence... $ECHO_C" >&6; }
18459 cat >conftest.$ac_ext <<_ACEOF
18460 /* confdefs.h. */
18461 _ACEOF
18462 cat confdefs.h >>conftest.$ac_ext
18463 cat >>conftest.$ac_ext <<_ACEOF
18464 /* end confdefs.h. */
18465 #include <sys/cpustats.h>
18466 _ACEOF
18467 if { (ac_try="$ac_cpp conftest.$ac_ext"
18468 case "(($ac_try" in
18469 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18470 *) ac_try_echo=$ac_try;;
18471 esac
18472 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18473 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
18474 ac_status=$?
18475 grep -v '^ *+' conftest.er1 >conftest.err
18476 rm -f conftest.er1
18477 cat conftest.err >&5
18478 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18479 (exit $ac_status); } >/dev/null && {
18480 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
18481 test ! -s conftest.err
18482 }; then
18483 ac_header_preproc=yes
18484 else
18485 echo "$as_me: failed program was:" >&5
18486 sed 's/^/| /' conftest.$ac_ext >&5
18488 ac_header_preproc=no
18491 rm -f conftest.err conftest.$ac_ext
18492 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
18493 echo "${ECHO_T}$ac_header_preproc" >&6; }
18495 # So? What about this header?
18496 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
18497 yes:no: )
18498 { echo "$as_me:$LINENO: WARNING: sys/cpustats.h: accepted by the compiler, rejected by the preprocessor!" >&5
18499 echo "$as_me: WARNING: sys/cpustats.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
18500 { echo "$as_me:$LINENO: WARNING: sys/cpustats.h: proceeding with the compiler's result" >&5
18501 echo "$as_me: WARNING: sys/cpustats.h: proceeding with the compiler's result" >&2;}
18502 ac_header_preproc=yes
18504 no:yes:* )
18505 { echo "$as_me:$LINENO: WARNING: sys/cpustats.h: present but cannot be compiled" >&5
18506 echo "$as_me: WARNING: sys/cpustats.h: present but cannot be compiled" >&2;}
18507 { echo "$as_me:$LINENO: WARNING: sys/cpustats.h: check for missing prerequisite headers?" >&5
18508 echo "$as_me: WARNING: sys/cpustats.h: check for missing prerequisite headers?" >&2;}
18509 { echo "$as_me:$LINENO: WARNING: sys/cpustats.h: see the Autoconf documentation" >&5
18510 echo "$as_me: WARNING: sys/cpustats.h: see the Autoconf documentation" >&2;}
18511 { echo "$as_me:$LINENO: WARNING: sys/cpustats.h: section \"Present But Cannot Be Compiled\"" >&5
18512 echo "$as_me: WARNING: sys/cpustats.h: section \"Present But Cannot Be Compiled\"" >&2;}
18513 { echo "$as_me:$LINENO: WARNING: sys/cpustats.h: proceeding with the preprocessor's result" >&5
18514 echo "$as_me: WARNING: sys/cpustats.h: proceeding with the preprocessor's result" >&2;}
18515 { echo "$as_me:$LINENO: WARNING: sys/cpustats.h: in the future, the compiler will take precedence" >&5
18516 echo "$as_me: WARNING: sys/cpustats.h: in the future, the compiler will take precedence" >&2;}
18519 esac
18520 { echo "$as_me:$LINENO: checking for sys/cpustats.h" >&5
18521 echo $ECHO_N "checking for sys/cpustats.h... $ECHO_C" >&6; }
18522 if test "${ac_cv_header_sys_cpustats_h+set}" = set; then
18523 echo $ECHO_N "(cached) $ECHO_C" >&6
18524 else
18525 ac_cv_header_sys_cpustats_h=$ac_header_preproc
18527 { echo "$as_me:$LINENO: result: $ac_cv_header_sys_cpustats_h" >&5
18528 echo "${ECHO_T}$ac_cv_header_sys_cpustats_h" >&6; }
18531 if test $ac_cv_header_sys_cpustats_h = yes; then
18532 ac_have_func=yes; cat >>confdefs.h <<\_ACEOF
18533 #define UMAX 1
18534 _ACEOF
18541 if test $ac_have_func = no; then
18543 for ac_header in mach/mach.h
18545 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
18546 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
18547 { echo "$as_me:$LINENO: checking for $ac_header" >&5
18548 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
18549 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
18550 echo $ECHO_N "(cached) $ECHO_C" >&6
18552 ac_res=`eval echo '${'$as_ac_Header'}'`
18553 { echo "$as_me:$LINENO: result: $ac_res" >&5
18554 echo "${ECHO_T}$ac_res" >&6; }
18555 else
18556 # Is the header compilable?
18557 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
18558 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
18559 cat >conftest.$ac_ext <<_ACEOF
18560 /* confdefs.h. */
18561 _ACEOF
18562 cat confdefs.h >>conftest.$ac_ext
18563 cat >>conftest.$ac_ext <<_ACEOF
18564 /* end confdefs.h. */
18565 $ac_includes_default
18566 #include <$ac_header>
18567 _ACEOF
18568 rm -f conftest.$ac_objext
18569 if { (ac_try="$ac_compile"
18570 case "(($ac_try" in
18571 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18572 *) ac_try_echo=$ac_try;;
18573 esac
18574 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18575 (eval "$ac_compile") 2>conftest.er1
18576 ac_status=$?
18577 grep -v '^ *+' conftest.er1 >conftest.err
18578 rm -f conftest.er1
18579 cat conftest.err >&5
18580 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18581 (exit $ac_status); } && {
18582 test -z "$ac_c_werror_flag" ||
18583 test ! -s conftest.err
18584 } && test -s conftest.$ac_objext; then
18585 ac_header_compiler=yes
18586 else
18587 echo "$as_me: failed program was:" >&5
18588 sed 's/^/| /' conftest.$ac_ext >&5
18590 ac_header_compiler=no
18593 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18594 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
18595 echo "${ECHO_T}$ac_header_compiler" >&6; }
18597 # Is the header present?
18598 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
18599 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
18600 cat >conftest.$ac_ext <<_ACEOF
18601 /* confdefs.h. */
18602 _ACEOF
18603 cat confdefs.h >>conftest.$ac_ext
18604 cat >>conftest.$ac_ext <<_ACEOF
18605 /* end confdefs.h. */
18606 #include <$ac_header>
18607 _ACEOF
18608 if { (ac_try="$ac_cpp conftest.$ac_ext"
18609 case "(($ac_try" in
18610 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18611 *) ac_try_echo=$ac_try;;
18612 esac
18613 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18614 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
18615 ac_status=$?
18616 grep -v '^ *+' conftest.er1 >conftest.err
18617 rm -f conftest.er1
18618 cat conftest.err >&5
18619 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18620 (exit $ac_status); } >/dev/null && {
18621 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
18622 test ! -s conftest.err
18623 }; then
18624 ac_header_preproc=yes
18625 else
18626 echo "$as_me: failed program was:" >&5
18627 sed 's/^/| /' conftest.$ac_ext >&5
18629 ac_header_preproc=no
18632 rm -f conftest.err conftest.$ac_ext
18633 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
18634 echo "${ECHO_T}$ac_header_preproc" >&6; }
18636 # So? What about this header?
18637 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
18638 yes:no: )
18639 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
18640 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
18641 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
18642 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
18643 ac_header_preproc=yes
18645 no:yes:* )
18646 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
18647 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
18648 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
18649 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
18650 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
18651 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
18652 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
18653 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
18654 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
18655 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
18656 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
18657 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
18660 esac
18661 { echo "$as_me:$LINENO: checking for $ac_header" >&5
18662 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
18663 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
18664 echo $ECHO_N "(cached) $ECHO_C" >&6
18665 else
18666 eval "$as_ac_Header=\$ac_header_preproc"
18668 ac_res=`eval echo '${'$as_ac_Header'}'`
18669 { echo "$as_me:$LINENO: result: $ac_res" >&5
18670 echo "${ECHO_T}$ac_res" >&6; }
18673 if test `eval echo '${'$as_ac_Header'}'` = yes; then
18674 cat >>confdefs.h <<_ACEOF
18675 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
18676 _ACEOF
18680 done
18685 for ac_header in nlist.h
18687 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
18688 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
18689 { echo "$as_me:$LINENO: checking for $ac_header" >&5
18690 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
18691 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
18692 echo $ECHO_N "(cached) $ECHO_C" >&6
18694 ac_res=`eval echo '${'$as_ac_Header'}'`
18695 { echo "$as_me:$LINENO: result: $ac_res" >&5
18696 echo "${ECHO_T}$ac_res" >&6; }
18697 else
18698 # Is the header compilable?
18699 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
18700 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
18701 cat >conftest.$ac_ext <<_ACEOF
18702 /* confdefs.h. */
18703 _ACEOF
18704 cat confdefs.h >>conftest.$ac_ext
18705 cat >>conftest.$ac_ext <<_ACEOF
18706 /* end confdefs.h. */
18707 $ac_includes_default
18708 #include <$ac_header>
18709 _ACEOF
18710 rm -f conftest.$ac_objext
18711 if { (ac_try="$ac_compile"
18712 case "(($ac_try" in
18713 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18714 *) ac_try_echo=$ac_try;;
18715 esac
18716 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18717 (eval "$ac_compile") 2>conftest.er1
18718 ac_status=$?
18719 grep -v '^ *+' conftest.er1 >conftest.err
18720 rm -f conftest.er1
18721 cat conftest.err >&5
18722 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18723 (exit $ac_status); } && {
18724 test -z "$ac_c_werror_flag" ||
18725 test ! -s conftest.err
18726 } && test -s conftest.$ac_objext; then
18727 ac_header_compiler=yes
18728 else
18729 echo "$as_me: failed program was:" >&5
18730 sed 's/^/| /' conftest.$ac_ext >&5
18732 ac_header_compiler=no
18735 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18736 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
18737 echo "${ECHO_T}$ac_header_compiler" >&6; }
18739 # Is the header present?
18740 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
18741 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
18742 cat >conftest.$ac_ext <<_ACEOF
18743 /* confdefs.h. */
18744 _ACEOF
18745 cat confdefs.h >>conftest.$ac_ext
18746 cat >>conftest.$ac_ext <<_ACEOF
18747 /* end confdefs.h. */
18748 #include <$ac_header>
18749 _ACEOF
18750 if { (ac_try="$ac_cpp conftest.$ac_ext"
18751 case "(($ac_try" in
18752 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18753 *) ac_try_echo=$ac_try;;
18754 esac
18755 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18756 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
18757 ac_status=$?
18758 grep -v '^ *+' conftest.er1 >conftest.err
18759 rm -f conftest.er1
18760 cat conftest.err >&5
18761 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18762 (exit $ac_status); } >/dev/null && {
18763 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
18764 test ! -s conftest.err
18765 }; then
18766 ac_header_preproc=yes
18767 else
18768 echo "$as_me: failed program was:" >&5
18769 sed 's/^/| /' conftest.$ac_ext >&5
18771 ac_header_preproc=no
18774 rm -f conftest.err conftest.$ac_ext
18775 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
18776 echo "${ECHO_T}$ac_header_preproc" >&6; }
18778 # So? What about this header?
18779 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
18780 yes:no: )
18781 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
18782 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
18783 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
18784 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
18785 ac_header_preproc=yes
18787 no:yes:* )
18788 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
18789 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
18790 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
18791 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
18792 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
18793 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
18794 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
18795 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
18796 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
18797 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
18798 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
18799 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
18802 esac
18803 { echo "$as_me:$LINENO: checking for $ac_header" >&5
18804 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
18805 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
18806 echo $ECHO_N "(cached) $ECHO_C" >&6
18807 else
18808 eval "$as_ac_Header=\$ac_header_preproc"
18810 ac_res=`eval echo '${'$as_ac_Header'}'`
18811 { echo "$as_me:$LINENO: result: $ac_res" >&5
18812 echo "${ECHO_T}$ac_res" >&6; }
18815 if test `eval echo '${'$as_ac_Header'}'` = yes; then
18816 cat >>confdefs.h <<_ACEOF
18817 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
18818 _ACEOF
18819 { echo "$as_me:$LINENO: checking for struct nlist.n_un.n_name" >&5
18820 echo $ECHO_N "checking for struct nlist.n_un.n_name... $ECHO_C" >&6; }
18821 if test "${ac_cv_member_struct_nlist_n_un_n_name+set}" = set; then
18822 echo $ECHO_N "(cached) $ECHO_C" >&6
18823 else
18824 cat >conftest.$ac_ext <<_ACEOF
18825 /* confdefs.h. */
18826 _ACEOF
18827 cat confdefs.h >>conftest.$ac_ext
18828 cat >>conftest.$ac_ext <<_ACEOF
18829 /* end confdefs.h. */
18830 #include <nlist.h>
18833 main ()
18835 static struct nlist ac_aggr;
18836 if (ac_aggr.n_un.n_name)
18837 return 0;
18839 return 0;
18841 _ACEOF
18842 rm -f conftest.$ac_objext
18843 if { (ac_try="$ac_compile"
18844 case "(($ac_try" in
18845 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18846 *) ac_try_echo=$ac_try;;
18847 esac
18848 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18849 (eval "$ac_compile") 2>conftest.er1
18850 ac_status=$?
18851 grep -v '^ *+' conftest.er1 >conftest.err
18852 rm -f conftest.er1
18853 cat conftest.err >&5
18854 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18855 (exit $ac_status); } && {
18856 test -z "$ac_c_werror_flag" ||
18857 test ! -s conftest.err
18858 } && test -s conftest.$ac_objext; then
18859 ac_cv_member_struct_nlist_n_un_n_name=yes
18860 else
18861 echo "$as_me: failed program was:" >&5
18862 sed 's/^/| /' conftest.$ac_ext >&5
18864 cat >conftest.$ac_ext <<_ACEOF
18865 /* confdefs.h. */
18866 _ACEOF
18867 cat confdefs.h >>conftest.$ac_ext
18868 cat >>conftest.$ac_ext <<_ACEOF
18869 /* end confdefs.h. */
18870 #include <nlist.h>
18873 main ()
18875 static struct nlist ac_aggr;
18876 if (sizeof ac_aggr.n_un.n_name)
18877 return 0;
18879 return 0;
18881 _ACEOF
18882 rm -f conftest.$ac_objext
18883 if { (ac_try="$ac_compile"
18884 case "(($ac_try" in
18885 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18886 *) ac_try_echo=$ac_try;;
18887 esac
18888 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18889 (eval "$ac_compile") 2>conftest.er1
18890 ac_status=$?
18891 grep -v '^ *+' conftest.er1 >conftest.err
18892 rm -f conftest.er1
18893 cat conftest.err >&5
18894 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18895 (exit $ac_status); } && {
18896 test -z "$ac_c_werror_flag" ||
18897 test ! -s conftest.err
18898 } && test -s conftest.$ac_objext; then
18899 ac_cv_member_struct_nlist_n_un_n_name=yes
18900 else
18901 echo "$as_me: failed program was:" >&5
18902 sed 's/^/| /' conftest.$ac_ext >&5
18904 ac_cv_member_struct_nlist_n_un_n_name=no
18907 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18910 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18912 { echo "$as_me:$LINENO: result: $ac_cv_member_struct_nlist_n_un_n_name" >&5
18913 echo "${ECHO_T}$ac_cv_member_struct_nlist_n_un_n_name" >&6; }
18914 if test $ac_cv_member_struct_nlist_n_un_n_name = yes; then
18916 cat >>confdefs.h <<_ACEOF
18917 #define HAVE_STRUCT_NLIST_N_UN_N_NAME 1
18918 _ACEOF
18921 cat >>confdefs.h <<\_ACEOF
18922 #define NLIST_NAME_UNION 1
18923 _ACEOF
18930 done
18933 done
18936 # Some definitions of getloadavg require that the program be installed setgid.
18937 { echo "$as_me:$LINENO: checking whether getloadavg requires setgid" >&5
18938 echo $ECHO_N "checking whether getloadavg requires setgid... $ECHO_C" >&6; }
18939 if test "${ac_cv_func_getloadavg_setgid+set}" = set; then
18940 echo $ECHO_N "(cached) $ECHO_C" >&6
18941 else
18942 cat >conftest.$ac_ext <<_ACEOF
18943 /* confdefs.h. */
18944 _ACEOF
18945 cat confdefs.h >>conftest.$ac_ext
18946 cat >>conftest.$ac_ext <<_ACEOF
18947 /* end confdefs.h. */
18948 #include "$srcdir/$ac_config_libobj_dir/getloadavg.c"
18949 #ifdef LDAV_PRIVILEGED
18950 Yowza Am I SETGID yet
18951 #endif
18952 _ACEOF
18953 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
18954 $EGREP "Yowza Am I SETGID yet" >/dev/null 2>&1; then
18955 ac_cv_func_getloadavg_setgid=yes
18956 else
18957 ac_cv_func_getloadavg_setgid=no
18959 rm -f conftest*
18962 { echo "$as_me:$LINENO: result: $ac_cv_func_getloadavg_setgid" >&5
18963 echo "${ECHO_T}$ac_cv_func_getloadavg_setgid" >&6; }
18964 if test $ac_cv_func_getloadavg_setgid = yes; then
18965 NEED_SETGID=true
18967 cat >>confdefs.h <<\_ACEOF
18968 #define GETLOADAVG_PRIVILEGED 1
18969 _ACEOF
18971 else
18972 NEED_SETGID=false
18975 if test $ac_cv_func_getloadavg_setgid = yes; then
18976 { echo "$as_me:$LINENO: checking group of /dev/kmem" >&5
18977 echo $ECHO_N "checking group of /dev/kmem... $ECHO_C" >&6; }
18978 if test "${ac_cv_group_kmem+set}" = set; then
18979 echo $ECHO_N "(cached) $ECHO_C" >&6
18980 else
18981 # On Solaris, /dev/kmem is a symlink. Get info on the real file.
18982 ac_ls_output=`ls -lgL /dev/kmem 2>/dev/null`
18983 # If we got an error (system does not support symlinks), try without -L.
18984 test -z "$ac_ls_output" && ac_ls_output=`ls -lg /dev/kmem`
18985 ac_cv_group_kmem=`echo $ac_ls_output \
18986 | sed -ne 's/[ ][ ]*/ /g;
18987 s/^.[sSrwx-]* *[0-9]* *\([^0-9]*\) *.*/\1/;
18988 / /s/.* //;p;'`
18991 { echo "$as_me:$LINENO: result: $ac_cv_group_kmem" >&5
18992 echo "${ECHO_T}$ac_cv_group_kmem" >&6; }
18993 KMEM_GROUP=$ac_cv_group_kmem
18995 if test "x$ac_save_LIBS" = x; then
18996 GETLOADAVG_LIBS=$LIBS
18997 else
18998 GETLOADAVG_LIBS=`echo "$LIBS" | sed "s!$ac_save_LIBS!!"`
19000 LIBS=$ac_save_LIBS
19004 { echo "$as_me:$LINENO: checking for _LARGEFILE_SOURCE value needed for large files" >&5
19005 echo $ECHO_N "checking for _LARGEFILE_SOURCE value needed for large files... $ECHO_C" >&6; }
19006 if test "${ac_cv_sys_largefile_source+set}" = set; then
19007 echo $ECHO_N "(cached) $ECHO_C" >&6
19008 else
19009 while :; do
19010 cat >conftest.$ac_ext <<_ACEOF
19011 /* confdefs.h. */
19012 _ACEOF
19013 cat confdefs.h >>conftest.$ac_ext
19014 cat >>conftest.$ac_ext <<_ACEOF
19015 /* end confdefs.h. */
19016 #include <stdio.h>
19018 main ()
19020 return fseeko (stdin, 0, 0) && (fseeko) (stdin, 0, 0);
19022 return 0;
19024 _ACEOF
19025 rm -f conftest.$ac_objext conftest$ac_exeext
19026 if { (ac_try="$ac_link"
19027 case "(($ac_try" in
19028 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19029 *) ac_try_echo=$ac_try;;
19030 esac
19031 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19032 (eval "$ac_link") 2>conftest.er1
19033 ac_status=$?
19034 grep -v '^ *+' conftest.er1 >conftest.err
19035 rm -f conftest.er1
19036 cat conftest.err >&5
19037 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19038 (exit $ac_status); } && {
19039 test -z "$ac_c_werror_flag" ||
19040 test ! -s conftest.err
19041 } && test -s conftest$ac_exeext &&
19042 $as_test_x conftest$ac_exeext; then
19043 ac_cv_sys_largefile_source=no; break
19044 else
19045 echo "$as_me: failed program was:" >&5
19046 sed 's/^/| /' conftest.$ac_ext >&5
19051 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
19052 conftest$ac_exeext conftest.$ac_ext
19053 cat >conftest.$ac_ext <<_ACEOF
19054 /* confdefs.h. */
19055 _ACEOF
19056 cat confdefs.h >>conftest.$ac_ext
19057 cat >>conftest.$ac_ext <<_ACEOF
19058 /* end confdefs.h. */
19059 #define _LARGEFILE_SOURCE 1
19060 #include <stdio.h>
19062 main ()
19064 return fseeko (stdin, 0, 0) && (fseeko) (stdin, 0, 0);
19066 return 0;
19068 _ACEOF
19069 rm -f conftest.$ac_objext conftest$ac_exeext
19070 if { (ac_try="$ac_link"
19071 case "(($ac_try" in
19072 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19073 *) ac_try_echo=$ac_try;;
19074 esac
19075 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19076 (eval "$ac_link") 2>conftest.er1
19077 ac_status=$?
19078 grep -v '^ *+' conftest.er1 >conftest.err
19079 rm -f conftest.er1
19080 cat conftest.err >&5
19081 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19082 (exit $ac_status); } && {
19083 test -z "$ac_c_werror_flag" ||
19084 test ! -s conftest.err
19085 } && test -s conftest$ac_exeext &&
19086 $as_test_x conftest$ac_exeext; then
19087 ac_cv_sys_largefile_source=1; break
19088 else
19089 echo "$as_me: failed program was:" >&5
19090 sed 's/^/| /' conftest.$ac_ext >&5
19095 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
19096 conftest$ac_exeext conftest.$ac_ext
19097 ac_cv_sys_largefile_source=unknown
19098 break
19099 done
19101 { echo "$as_me:$LINENO: result: $ac_cv_sys_largefile_source" >&5
19102 echo "${ECHO_T}$ac_cv_sys_largefile_source" >&6; }
19103 case $ac_cv_sys_largefile_source in #(
19104 no | unknown) ;;
19106 cat >>confdefs.h <<_ACEOF
19107 #define _LARGEFILE_SOURCE $ac_cv_sys_largefile_source
19108 _ACEOF
19110 esac
19111 rm -f conftest*
19113 # We used to try defining _XOPEN_SOURCE=500 too, to work around a bug
19114 # in glibc 2.1.3, but that breaks too many other things.
19115 # If you want fseeko and ftello with glibc, upgrade to a fixed glibc.
19116 if test $ac_cv_sys_largefile_source != unknown; then
19118 cat >>confdefs.h <<\_ACEOF
19119 #define HAVE_FSEEKO 1
19120 _ACEOF
19125 # Configure getopt.
19126 # getopt.m4 serial 10
19128 # The getopt module assume you want GNU getopt, with getopt_long etc,
19129 # rather than vanilla POSIX getopt. This means your your code should
19130 # always include <getopt.h> for the getopt prototypes.
19142 # Prerequisites of lib/getopt*.
19147 GETOPT_H=
19149 for ac_header in getopt.h
19151 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
19152 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
19153 { echo "$as_me:$LINENO: checking for $ac_header" >&5
19154 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
19155 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
19156 echo $ECHO_N "(cached) $ECHO_C" >&6
19158 ac_res=`eval echo '${'$as_ac_Header'}'`
19159 { echo "$as_me:$LINENO: result: $ac_res" >&5
19160 echo "${ECHO_T}$ac_res" >&6; }
19161 else
19162 # Is the header compilable?
19163 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
19164 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
19165 cat >conftest.$ac_ext <<_ACEOF
19166 /* confdefs.h. */
19167 _ACEOF
19168 cat confdefs.h >>conftest.$ac_ext
19169 cat >>conftest.$ac_ext <<_ACEOF
19170 /* end confdefs.h. */
19171 $ac_includes_default
19172 #include <$ac_header>
19173 _ACEOF
19174 rm -f conftest.$ac_objext
19175 if { (ac_try="$ac_compile"
19176 case "(($ac_try" in
19177 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19178 *) ac_try_echo=$ac_try;;
19179 esac
19180 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19181 (eval "$ac_compile") 2>conftest.er1
19182 ac_status=$?
19183 grep -v '^ *+' conftest.er1 >conftest.err
19184 rm -f conftest.er1
19185 cat conftest.err >&5
19186 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19187 (exit $ac_status); } && {
19188 test -z "$ac_c_werror_flag" ||
19189 test ! -s conftest.err
19190 } && test -s conftest.$ac_objext; then
19191 ac_header_compiler=yes
19192 else
19193 echo "$as_me: failed program was:" >&5
19194 sed 's/^/| /' conftest.$ac_ext >&5
19196 ac_header_compiler=no
19199 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19200 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
19201 echo "${ECHO_T}$ac_header_compiler" >&6; }
19203 # Is the header present?
19204 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
19205 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
19206 cat >conftest.$ac_ext <<_ACEOF
19207 /* confdefs.h. */
19208 _ACEOF
19209 cat confdefs.h >>conftest.$ac_ext
19210 cat >>conftest.$ac_ext <<_ACEOF
19211 /* end confdefs.h. */
19212 #include <$ac_header>
19213 _ACEOF
19214 if { (ac_try="$ac_cpp conftest.$ac_ext"
19215 case "(($ac_try" in
19216 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19217 *) ac_try_echo=$ac_try;;
19218 esac
19219 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19220 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
19221 ac_status=$?
19222 grep -v '^ *+' conftest.er1 >conftest.err
19223 rm -f conftest.er1
19224 cat conftest.err >&5
19225 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19226 (exit $ac_status); } >/dev/null && {
19227 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
19228 test ! -s conftest.err
19229 }; then
19230 ac_header_preproc=yes
19231 else
19232 echo "$as_me: failed program was:" >&5
19233 sed 's/^/| /' conftest.$ac_ext >&5
19235 ac_header_preproc=no
19238 rm -f conftest.err conftest.$ac_ext
19239 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
19240 echo "${ECHO_T}$ac_header_preproc" >&6; }
19242 # So? What about this header?
19243 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
19244 yes:no: )
19245 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
19246 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
19247 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
19248 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
19249 ac_header_preproc=yes
19251 no:yes:* )
19252 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
19253 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
19254 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
19255 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
19256 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
19257 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
19258 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
19259 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
19260 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
19261 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
19262 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
19263 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
19266 esac
19267 { echo "$as_me:$LINENO: checking for $ac_header" >&5
19268 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
19269 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
19270 echo $ECHO_N "(cached) $ECHO_C" >&6
19271 else
19272 eval "$as_ac_Header=\$ac_header_preproc"
19274 ac_res=`eval echo '${'$as_ac_Header'}'`
19275 { echo "$as_me:$LINENO: result: $ac_res" >&5
19276 echo "${ECHO_T}$ac_res" >&6; }
19279 if test `eval echo '${'$as_ac_Header'}'` = yes; then
19280 cat >>confdefs.h <<_ACEOF
19281 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
19282 _ACEOF
19284 else
19285 GETOPT_H=getopt.h
19288 done
19290 if test -z "$GETOPT_H"; then
19292 for ac_func in getopt_long_only
19294 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
19295 { echo "$as_me:$LINENO: checking for $ac_func" >&5
19296 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
19297 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
19298 echo $ECHO_N "(cached) $ECHO_C" >&6
19299 else
19300 cat >conftest.$ac_ext <<_ACEOF
19301 /* confdefs.h. */
19302 _ACEOF
19303 cat confdefs.h >>conftest.$ac_ext
19304 cat >>conftest.$ac_ext <<_ACEOF
19305 /* end confdefs.h. */
19306 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
19307 For example, HP-UX 11i <limits.h> declares gettimeofday. */
19308 #define $ac_func innocuous_$ac_func
19310 /* System header to define __stub macros and hopefully few prototypes,
19311 which can conflict with char $ac_func (); below.
19312 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
19313 <limits.h> exists even on freestanding compilers. */
19315 #ifdef __STDC__
19316 # include <limits.h>
19317 #else
19318 # include <assert.h>
19319 #endif
19321 #undef $ac_func
19323 /* Override any GCC internal prototype to avoid an error.
19324 Use char because int might match the return type of a GCC
19325 builtin and then its argument prototype would still apply. */
19326 #ifdef __cplusplus
19327 extern "C"
19328 #endif
19329 char $ac_func ();
19330 /* The GNU C library defines this for functions which it implements
19331 to always fail with ENOSYS. Some functions are actually named
19332 something starting with __ and the normal name is an alias. */
19333 #if defined __stub_$ac_func || defined __stub___$ac_func
19334 choke me
19335 #endif
19338 main ()
19340 return $ac_func ();
19342 return 0;
19344 _ACEOF
19345 rm -f conftest.$ac_objext conftest$ac_exeext
19346 if { (ac_try="$ac_link"
19347 case "(($ac_try" in
19348 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19349 *) ac_try_echo=$ac_try;;
19350 esac
19351 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19352 (eval "$ac_link") 2>conftest.er1
19353 ac_status=$?
19354 grep -v '^ *+' conftest.er1 >conftest.err
19355 rm -f conftest.er1
19356 cat conftest.err >&5
19357 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19358 (exit $ac_status); } && {
19359 test -z "$ac_c_werror_flag" ||
19360 test ! -s conftest.err
19361 } && test -s conftest$ac_exeext &&
19362 $as_test_x conftest$ac_exeext; then
19363 eval "$as_ac_var=yes"
19364 else
19365 echo "$as_me: failed program was:" >&5
19366 sed 's/^/| /' conftest.$ac_ext >&5
19368 eval "$as_ac_var=no"
19371 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
19372 conftest$ac_exeext conftest.$ac_ext
19374 ac_res=`eval echo '${'$as_ac_var'}'`
19375 { echo "$as_me:$LINENO: result: $ac_res" >&5
19376 echo "${ECHO_T}$ac_res" >&6; }
19377 if test `eval echo '${'$as_ac_var'}'` = yes; then
19378 cat >>confdefs.h <<_ACEOF
19379 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
19380 _ACEOF
19382 else
19383 GETOPT_H=getopt.h
19385 done
19389 if test -z "$GETOPT_H"; then
19390 { echo "$as_me:$LINENO: checking whether optreset is declared" >&5
19391 echo $ECHO_N "checking whether optreset is declared... $ECHO_C" >&6; }
19392 if test "${ac_cv_have_decl_optreset+set}" = set; then
19393 echo $ECHO_N "(cached) $ECHO_C" >&6
19394 else
19395 cat >conftest.$ac_ext <<_ACEOF
19396 /* confdefs.h. */
19397 _ACEOF
19398 cat confdefs.h >>conftest.$ac_ext
19399 cat >>conftest.$ac_ext <<_ACEOF
19400 /* end confdefs.h. */
19401 #include <getopt.h>
19404 main ()
19406 #ifndef optreset
19407 (void) optreset;
19408 #endif
19411 return 0;
19413 _ACEOF
19414 rm -f conftest.$ac_objext
19415 if { (ac_try="$ac_compile"
19416 case "(($ac_try" in
19417 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19418 *) ac_try_echo=$ac_try;;
19419 esac
19420 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19421 (eval "$ac_compile") 2>conftest.er1
19422 ac_status=$?
19423 grep -v '^ *+' conftest.er1 >conftest.err
19424 rm -f conftest.er1
19425 cat conftest.err >&5
19426 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19427 (exit $ac_status); } && {
19428 test -z "$ac_c_werror_flag" ||
19429 test ! -s conftest.err
19430 } && test -s conftest.$ac_objext; then
19431 ac_cv_have_decl_optreset=yes
19432 else
19433 echo "$as_me: failed program was:" >&5
19434 sed 's/^/| /' conftest.$ac_ext >&5
19436 ac_cv_have_decl_optreset=no
19439 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19441 { echo "$as_me:$LINENO: result: $ac_cv_have_decl_optreset" >&5
19442 echo "${ECHO_T}$ac_cv_have_decl_optreset" >&6; }
19443 if test $ac_cv_have_decl_optreset = yes; then
19444 GETOPT_H=getopt.h
19449 if test -z "$GETOPT_H"; then
19450 { echo "$as_me:$LINENO: checking for working GNU getopt function" >&5
19451 echo $ECHO_N "checking for working GNU getopt function... $ECHO_C" >&6; }
19452 if test "${gl_cv_func_gnu_getopt+set}" = set; then
19453 echo $ECHO_N "(cached) $ECHO_C" >&6
19454 else
19455 if test "$cross_compiling" = yes; then
19456 { echo "$as_me:$LINENO: checking whether getopt_clip is declared" >&5
19457 echo $ECHO_N "checking whether getopt_clip is declared... $ECHO_C" >&6; }
19458 if test "${ac_cv_have_decl_getopt_clip+set}" = set; then
19459 echo $ECHO_N "(cached) $ECHO_C" >&6
19460 else
19461 cat >conftest.$ac_ext <<_ACEOF
19462 /* confdefs.h. */
19463 _ACEOF
19464 cat confdefs.h >>conftest.$ac_ext
19465 cat >>conftest.$ac_ext <<_ACEOF
19466 /* end confdefs.h. */
19467 #include <getopt.h>
19470 main ()
19472 #ifndef getopt_clip
19473 (void) getopt_clip;
19474 #endif
19477 return 0;
19479 _ACEOF
19480 rm -f conftest.$ac_objext
19481 if { (ac_try="$ac_compile"
19482 case "(($ac_try" in
19483 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19484 *) ac_try_echo=$ac_try;;
19485 esac
19486 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19487 (eval "$ac_compile") 2>conftest.er1
19488 ac_status=$?
19489 grep -v '^ *+' conftest.er1 >conftest.err
19490 rm -f conftest.er1
19491 cat conftest.err >&5
19492 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19493 (exit $ac_status); } && {
19494 test -z "$ac_c_werror_flag" ||
19495 test ! -s conftest.err
19496 } && test -s conftest.$ac_objext; then
19497 ac_cv_have_decl_getopt_clip=yes
19498 else
19499 echo "$as_me: failed program was:" >&5
19500 sed 's/^/| /' conftest.$ac_ext >&5
19502 ac_cv_have_decl_getopt_clip=no
19505 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19507 { echo "$as_me:$LINENO: result: $ac_cv_have_decl_getopt_clip" >&5
19508 echo "${ECHO_T}$ac_cv_have_decl_getopt_clip" >&6; }
19509 if test $ac_cv_have_decl_getopt_clip = yes; then
19510 gl_cv_func_gnu_getopt=no
19511 else
19512 gl_cv_func_gnu_getopt=yes
19515 else
19516 cat >conftest.$ac_ext <<_ACEOF
19517 /* confdefs.h. */
19518 _ACEOF
19519 cat confdefs.h >>conftest.$ac_ext
19520 cat >>conftest.$ac_ext <<_ACEOF
19521 /* end confdefs.h. */
19522 #include <getopt.h>
19524 main ()
19527 char *myargv[3];
19528 myargv[0] = "conftest";
19529 myargv[1] = "-+";
19530 myargv[2] = 0;
19531 return getopt (2, myargv, "+a") != '?';
19534 return 0;
19536 _ACEOF
19537 rm -f conftest$ac_exeext
19538 if { (ac_try="$ac_link"
19539 case "(($ac_try" in
19540 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19541 *) ac_try_echo=$ac_try;;
19542 esac
19543 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19544 (eval "$ac_link") 2>&5
19545 ac_status=$?
19546 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19547 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
19548 { (case "(($ac_try" in
19549 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19550 *) ac_try_echo=$ac_try;;
19551 esac
19552 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19553 (eval "$ac_try") 2>&5
19554 ac_status=$?
19555 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19556 (exit $ac_status); }; }; then
19557 gl_cv_func_gnu_getopt=yes
19558 else
19559 echo "$as_me: program exited with status $ac_status" >&5
19560 echo "$as_me: failed program was:" >&5
19561 sed 's/^/| /' conftest.$ac_ext >&5
19563 ( exit $ac_status )
19564 gl_cv_func_gnu_getopt=no
19566 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
19571 { echo "$as_me:$LINENO: result: $gl_cv_func_gnu_getopt" >&5
19572 echo "${ECHO_T}$gl_cv_func_gnu_getopt" >&6; }
19573 if test "$gl_cv_func_gnu_getopt" = "no"; then
19574 GETOPT_H=getopt.h
19580 if test -n "$GETOPT_H"; then
19583 GETOPT_H=getopt.h
19585 cat >>confdefs.h <<\_ACEOF
19586 #define __GETOPT_PREFIX rpl_
19587 _ACEOF
19592 GETOPTOBJS='getopt.o getopt1.o'
19599 { echo "$as_me:$LINENO: checking whether getpgrp requires zero arguments" >&5
19600 echo $ECHO_N "checking whether getpgrp requires zero arguments... $ECHO_C" >&6; }
19601 if test "${ac_cv_func_getpgrp_void+set}" = set; then
19602 echo $ECHO_N "(cached) $ECHO_C" >&6
19603 else
19604 # Use it with a single arg.
19605 cat >conftest.$ac_ext <<_ACEOF
19606 /* confdefs.h. */
19607 _ACEOF
19608 cat confdefs.h >>conftest.$ac_ext
19609 cat >>conftest.$ac_ext <<_ACEOF
19610 /* end confdefs.h. */
19611 $ac_includes_default
19613 main ()
19615 getpgrp (0);
19617 return 0;
19619 _ACEOF
19620 rm -f conftest.$ac_objext
19621 if { (ac_try="$ac_compile"
19622 case "(($ac_try" in
19623 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19624 *) ac_try_echo=$ac_try;;
19625 esac
19626 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19627 (eval "$ac_compile") 2>conftest.er1
19628 ac_status=$?
19629 grep -v '^ *+' conftest.er1 >conftest.err
19630 rm -f conftest.er1
19631 cat conftest.err >&5
19632 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19633 (exit $ac_status); } && {
19634 test -z "$ac_c_werror_flag" ||
19635 test ! -s conftest.err
19636 } && test -s conftest.$ac_objext; then
19637 ac_cv_func_getpgrp_void=no
19638 else
19639 echo "$as_me: failed program was:" >&5
19640 sed 's/^/| /' conftest.$ac_ext >&5
19642 ac_cv_func_getpgrp_void=yes
19645 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19648 { echo "$as_me:$LINENO: result: $ac_cv_func_getpgrp_void" >&5
19649 echo "${ECHO_T}$ac_cv_func_getpgrp_void" >&6; }
19650 if test $ac_cv_func_getpgrp_void = yes; then
19652 cat >>confdefs.h <<\_ACEOF
19653 #define GETPGRP_VOID 1
19654 _ACEOF
19660 for ac_func in strftime
19662 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
19663 { echo "$as_me:$LINENO: checking for $ac_func" >&5
19664 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
19665 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
19666 echo $ECHO_N "(cached) $ECHO_C" >&6
19667 else
19668 cat >conftest.$ac_ext <<_ACEOF
19669 /* confdefs.h. */
19670 _ACEOF
19671 cat confdefs.h >>conftest.$ac_ext
19672 cat >>conftest.$ac_ext <<_ACEOF
19673 /* end confdefs.h. */
19674 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
19675 For example, HP-UX 11i <limits.h> declares gettimeofday. */
19676 #define $ac_func innocuous_$ac_func
19678 /* System header to define __stub macros and hopefully few prototypes,
19679 which can conflict with char $ac_func (); below.
19680 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
19681 <limits.h> exists even on freestanding compilers. */
19683 #ifdef __STDC__
19684 # include <limits.h>
19685 #else
19686 # include <assert.h>
19687 #endif
19689 #undef $ac_func
19691 /* Override any GCC internal prototype to avoid an error.
19692 Use char because int might match the return type of a GCC
19693 builtin and then its argument prototype would still apply. */
19694 #ifdef __cplusplus
19695 extern "C"
19696 #endif
19697 char $ac_func ();
19698 /* The GNU C library defines this for functions which it implements
19699 to always fail with ENOSYS. Some functions are actually named
19700 something starting with __ and the normal name is an alias. */
19701 #if defined __stub_$ac_func || defined __stub___$ac_func
19702 choke me
19703 #endif
19706 main ()
19708 return $ac_func ();
19710 return 0;
19712 _ACEOF
19713 rm -f conftest.$ac_objext conftest$ac_exeext
19714 if { (ac_try="$ac_link"
19715 case "(($ac_try" in
19716 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19717 *) ac_try_echo=$ac_try;;
19718 esac
19719 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19720 (eval "$ac_link") 2>conftest.er1
19721 ac_status=$?
19722 grep -v '^ *+' conftest.er1 >conftest.err
19723 rm -f conftest.er1
19724 cat conftest.err >&5
19725 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19726 (exit $ac_status); } && {
19727 test -z "$ac_c_werror_flag" ||
19728 test ! -s conftest.err
19729 } && test -s conftest$ac_exeext &&
19730 $as_test_x conftest$ac_exeext; then
19731 eval "$as_ac_var=yes"
19732 else
19733 echo "$as_me: failed program was:" >&5
19734 sed 's/^/| /' conftest.$ac_ext >&5
19736 eval "$as_ac_var=no"
19739 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
19740 conftest$ac_exeext conftest.$ac_ext
19742 ac_res=`eval echo '${'$as_ac_var'}'`
19743 { echo "$as_me:$LINENO: result: $ac_res" >&5
19744 echo "${ECHO_T}$ac_res" >&6; }
19745 if test `eval echo '${'$as_ac_var'}'` = yes; then
19746 cat >>confdefs.h <<_ACEOF
19747 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
19748 _ACEOF
19750 else
19751 # strftime is in -lintl on SCO UNIX.
19752 { echo "$as_me:$LINENO: checking for strftime in -lintl" >&5
19753 echo $ECHO_N "checking for strftime in -lintl... $ECHO_C" >&6; }
19754 if test "${ac_cv_lib_intl_strftime+set}" = set; then
19755 echo $ECHO_N "(cached) $ECHO_C" >&6
19756 else
19757 ac_check_lib_save_LIBS=$LIBS
19758 LIBS="-lintl $LIBS"
19759 cat >conftest.$ac_ext <<_ACEOF
19760 /* confdefs.h. */
19761 _ACEOF
19762 cat confdefs.h >>conftest.$ac_ext
19763 cat >>conftest.$ac_ext <<_ACEOF
19764 /* end confdefs.h. */
19766 /* Override any GCC internal prototype to avoid an error.
19767 Use char because int might match the return type of a GCC
19768 builtin and then its argument prototype would still apply. */
19769 #ifdef __cplusplus
19770 extern "C"
19771 #endif
19772 char strftime ();
19774 main ()
19776 return strftime ();
19778 return 0;
19780 _ACEOF
19781 rm -f conftest.$ac_objext conftest$ac_exeext
19782 if { (ac_try="$ac_link"
19783 case "(($ac_try" in
19784 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19785 *) ac_try_echo=$ac_try;;
19786 esac
19787 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19788 (eval "$ac_link") 2>conftest.er1
19789 ac_status=$?
19790 grep -v '^ *+' conftest.er1 >conftest.err
19791 rm -f conftest.er1
19792 cat conftest.err >&5
19793 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19794 (exit $ac_status); } && {
19795 test -z "$ac_c_werror_flag" ||
19796 test ! -s conftest.err
19797 } && test -s conftest$ac_exeext &&
19798 $as_test_x conftest$ac_exeext; then
19799 ac_cv_lib_intl_strftime=yes
19800 else
19801 echo "$as_me: failed program was:" >&5
19802 sed 's/^/| /' conftest.$ac_ext >&5
19804 ac_cv_lib_intl_strftime=no
19807 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
19808 conftest$ac_exeext conftest.$ac_ext
19809 LIBS=$ac_check_lib_save_LIBS
19811 { echo "$as_me:$LINENO: result: $ac_cv_lib_intl_strftime" >&5
19812 echo "${ECHO_T}$ac_cv_lib_intl_strftime" >&6; }
19813 if test $ac_cv_lib_intl_strftime = yes; then
19814 cat >>confdefs.h <<\_ACEOF
19815 #define HAVE_STRFTIME 1
19816 _ACEOF
19818 LIBS="-lintl $LIBS"
19822 done
19825 # UNIX98 PTYs.
19827 for ac_func in grantpt
19829 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
19830 { echo "$as_me:$LINENO: checking for $ac_func" >&5
19831 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
19832 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
19833 echo $ECHO_N "(cached) $ECHO_C" >&6
19834 else
19835 cat >conftest.$ac_ext <<_ACEOF
19836 /* confdefs.h. */
19837 _ACEOF
19838 cat confdefs.h >>conftest.$ac_ext
19839 cat >>conftest.$ac_ext <<_ACEOF
19840 /* end confdefs.h. */
19841 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
19842 For example, HP-UX 11i <limits.h> declares gettimeofday. */
19843 #define $ac_func innocuous_$ac_func
19845 /* System header to define __stub macros and hopefully few prototypes,
19846 which can conflict with char $ac_func (); below.
19847 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
19848 <limits.h> exists even on freestanding compilers. */
19850 #ifdef __STDC__
19851 # include <limits.h>
19852 #else
19853 # include <assert.h>
19854 #endif
19856 #undef $ac_func
19858 /* Override any GCC internal prototype to avoid an error.
19859 Use char because int might match the return type of a GCC
19860 builtin and then its argument prototype would still apply. */
19861 #ifdef __cplusplus
19862 extern "C"
19863 #endif
19864 char $ac_func ();
19865 /* The GNU C library defines this for functions which it implements
19866 to always fail with ENOSYS. Some functions are actually named
19867 something starting with __ and the normal name is an alias. */
19868 #if defined __stub_$ac_func || defined __stub___$ac_func
19869 choke me
19870 #endif
19873 main ()
19875 return $ac_func ();
19877 return 0;
19879 _ACEOF
19880 rm -f conftest.$ac_objext conftest$ac_exeext
19881 if { (ac_try="$ac_link"
19882 case "(($ac_try" in
19883 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19884 *) ac_try_echo=$ac_try;;
19885 esac
19886 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19887 (eval "$ac_link") 2>conftest.er1
19888 ac_status=$?
19889 grep -v '^ *+' conftest.er1 >conftest.err
19890 rm -f conftest.er1
19891 cat conftest.err >&5
19892 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19893 (exit $ac_status); } && {
19894 test -z "$ac_c_werror_flag" ||
19895 test ! -s conftest.err
19896 } && test -s conftest$ac_exeext &&
19897 $as_test_x conftest$ac_exeext; then
19898 eval "$as_ac_var=yes"
19899 else
19900 echo "$as_me: failed program was:" >&5
19901 sed 's/^/| /' conftest.$ac_ext >&5
19903 eval "$as_ac_var=no"
19906 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
19907 conftest$ac_exeext conftest.$ac_ext
19909 ac_res=`eval echo '${'$as_ac_var'}'`
19910 { echo "$as_me:$LINENO: result: $ac_res" >&5
19911 echo "${ECHO_T}$ac_res" >&6; }
19912 if test `eval echo '${'$as_ac_var'}'` = yes; then
19913 cat >>confdefs.h <<_ACEOF
19914 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
19915 _ACEOF
19918 done
19921 # PTY-related GNU extensions.
19923 for ac_func in getpt
19925 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
19926 { echo "$as_me:$LINENO: checking for $ac_func" >&5
19927 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
19928 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
19929 echo $ECHO_N "(cached) $ECHO_C" >&6
19930 else
19931 cat >conftest.$ac_ext <<_ACEOF
19932 /* confdefs.h. */
19933 _ACEOF
19934 cat confdefs.h >>conftest.$ac_ext
19935 cat >>conftest.$ac_ext <<_ACEOF
19936 /* end confdefs.h. */
19937 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
19938 For example, HP-UX 11i <limits.h> declares gettimeofday. */
19939 #define $ac_func innocuous_$ac_func
19941 /* System header to define __stub macros and hopefully few prototypes,
19942 which can conflict with char $ac_func (); below.
19943 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
19944 <limits.h> exists even on freestanding compilers. */
19946 #ifdef __STDC__
19947 # include <limits.h>
19948 #else
19949 # include <assert.h>
19950 #endif
19952 #undef $ac_func
19954 /* Override any GCC internal prototype to avoid an error.
19955 Use char because int might match the return type of a GCC
19956 builtin and then its argument prototype would still apply. */
19957 #ifdef __cplusplus
19958 extern "C"
19959 #endif
19960 char $ac_func ();
19961 /* The GNU C library defines this for functions which it implements
19962 to always fail with ENOSYS. Some functions are actually named
19963 something starting with __ and the normal name is an alias. */
19964 #if defined __stub_$ac_func || defined __stub___$ac_func
19965 choke me
19966 #endif
19969 main ()
19971 return $ac_func ();
19973 return 0;
19975 _ACEOF
19976 rm -f conftest.$ac_objext conftest$ac_exeext
19977 if { (ac_try="$ac_link"
19978 case "(($ac_try" in
19979 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19980 *) ac_try_echo=$ac_try;;
19981 esac
19982 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19983 (eval "$ac_link") 2>conftest.er1
19984 ac_status=$?
19985 grep -v '^ *+' conftest.er1 >conftest.err
19986 rm -f conftest.er1
19987 cat conftest.err >&5
19988 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19989 (exit $ac_status); } && {
19990 test -z "$ac_c_werror_flag" ||
19991 test ! -s conftest.err
19992 } && test -s conftest$ac_exeext &&
19993 $as_test_x conftest$ac_exeext; then
19994 eval "$as_ac_var=yes"
19995 else
19996 echo "$as_me: failed program was:" >&5
19997 sed 's/^/| /' conftest.$ac_ext >&5
19999 eval "$as_ac_var=no"
20002 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
20003 conftest$ac_exeext conftest.$ac_ext
20005 ac_res=`eval echo '${'$as_ac_var'}'`
20006 { echo "$as_me:$LINENO: result: $ac_res" >&5
20007 echo "${ECHO_T}$ac_res" >&6; }
20008 if test `eval echo '${'$as_ac_var'}'` = yes; then
20009 cat >>confdefs.h <<_ACEOF
20010 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
20011 _ACEOF
20014 done
20017 # Check this now, so that we will NOT find the above functions in ncurses.
20018 # That is because we have not set up to link ncurses in lib-src.
20019 # It's better to believe a function is not available
20020 # than to expect to find it in ncurses.
20022 { echo "$as_me:$LINENO: checking for tparm in -lncurses" >&5
20023 echo $ECHO_N "checking for tparm in -lncurses... $ECHO_C" >&6; }
20024 if test "${ac_cv_lib_ncurses_tparm+set}" = set; then
20025 echo $ECHO_N "(cached) $ECHO_C" >&6
20026 else
20027 ac_check_lib_save_LIBS=$LIBS
20028 LIBS="-lncurses $LIBS"
20029 cat >conftest.$ac_ext <<_ACEOF
20030 /* confdefs.h. */
20031 _ACEOF
20032 cat confdefs.h >>conftest.$ac_ext
20033 cat >>conftest.$ac_ext <<_ACEOF
20034 /* end confdefs.h. */
20036 /* Override any GCC internal prototype to avoid an error.
20037 Use char because int might match the return type of a GCC
20038 builtin and then its argument prototype would still apply. */
20039 #ifdef __cplusplus
20040 extern "C"
20041 #endif
20042 char tparm ();
20044 main ()
20046 return tparm ();
20048 return 0;
20050 _ACEOF
20051 rm -f conftest.$ac_objext conftest$ac_exeext
20052 if { (ac_try="$ac_link"
20053 case "(($ac_try" in
20054 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20055 *) ac_try_echo=$ac_try;;
20056 esac
20057 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20058 (eval "$ac_link") 2>conftest.er1
20059 ac_status=$?
20060 grep -v '^ *+' conftest.er1 >conftest.err
20061 rm -f conftest.er1
20062 cat conftest.err >&5
20063 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20064 (exit $ac_status); } && {
20065 test -z "$ac_c_werror_flag" ||
20066 test ! -s conftest.err
20067 } && test -s conftest$ac_exeext &&
20068 $as_test_x conftest$ac_exeext; then
20069 ac_cv_lib_ncurses_tparm=yes
20070 else
20071 echo "$as_me: failed program was:" >&5
20072 sed 's/^/| /' conftest.$ac_ext >&5
20074 ac_cv_lib_ncurses_tparm=no
20077 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
20078 conftest$ac_exeext conftest.$ac_ext
20079 LIBS=$ac_check_lib_save_LIBS
20081 { echo "$as_me:$LINENO: result: $ac_cv_lib_ncurses_tparm" >&5
20082 echo "${ECHO_T}$ac_cv_lib_ncurses_tparm" >&6; }
20083 if test $ac_cv_lib_ncurses_tparm = yes; then
20084 cat >>confdefs.h <<_ACEOF
20085 #define HAVE_LIBNCURSES 1
20086 _ACEOF
20088 LIBS="-lncurses $LIBS"
20093 # Do we have res_init, for detecting changes in /etc/resolv.conf?
20095 resolv=no
20096 cat >conftest.$ac_ext <<_ACEOF
20097 /* confdefs.h. */
20098 _ACEOF
20099 cat confdefs.h >>conftest.$ac_ext
20100 cat >>conftest.$ac_ext <<_ACEOF
20101 /* end confdefs.h. */
20102 #include <netinet/in.h>
20103 #include <arpa/nameser.h>
20104 #include <resolv.h>
20106 main ()
20108 return res_init();
20110 return 0;
20112 _ACEOF
20113 rm -f conftest.$ac_objext conftest$ac_exeext
20114 if { (ac_try="$ac_link"
20115 case "(($ac_try" in
20116 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20117 *) ac_try_echo=$ac_try;;
20118 esac
20119 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20120 (eval "$ac_link") 2>conftest.er1
20121 ac_status=$?
20122 grep -v '^ *+' conftest.er1 >conftest.err
20123 rm -f conftest.er1
20124 cat conftest.err >&5
20125 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20126 (exit $ac_status); } && {
20127 test -z "$ac_c_werror_flag" ||
20128 test ! -s conftest.err
20129 } && test -s conftest$ac_exeext &&
20130 $as_test_x conftest$ac_exeext; then
20131 have_res_init=yes
20132 else
20133 echo "$as_me: failed program was:" >&5
20134 sed 's/^/| /' conftest.$ac_ext >&5
20136 have_res_init=no
20139 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
20140 conftest$ac_exeext conftest.$ac_ext
20141 if test "$have_res_init" = no; then
20142 OLIBS="$LIBS"
20143 LIBS="$LIBS -lresolv"
20144 { echo "$as_me:$LINENO: checking for res_init with -lresolv" >&5
20145 echo $ECHO_N "checking for res_init with -lresolv... $ECHO_C" >&6; }
20146 cat >conftest.$ac_ext <<_ACEOF
20147 /* confdefs.h. */
20148 _ACEOF
20149 cat confdefs.h >>conftest.$ac_ext
20150 cat >>conftest.$ac_ext <<_ACEOF
20151 /* end confdefs.h. */
20152 #include <netinet/in.h>
20153 #include <arpa/nameser.h>
20154 #include <resolv.h>
20156 main ()
20158 return res_init();
20160 return 0;
20162 _ACEOF
20163 rm -f conftest.$ac_objext conftest$ac_exeext
20164 if { (ac_try="$ac_link"
20165 case "(($ac_try" in
20166 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20167 *) ac_try_echo=$ac_try;;
20168 esac
20169 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20170 (eval "$ac_link") 2>conftest.er1
20171 ac_status=$?
20172 grep -v '^ *+' conftest.er1 >conftest.err
20173 rm -f conftest.er1
20174 cat conftest.err >&5
20175 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20176 (exit $ac_status); } && {
20177 test -z "$ac_c_werror_flag" ||
20178 test ! -s conftest.err
20179 } && test -s conftest$ac_exeext &&
20180 $as_test_x conftest$ac_exeext; then
20181 have_res_init=yes
20182 else
20183 echo "$as_me: failed program was:" >&5
20184 sed 's/^/| /' conftest.$ac_ext >&5
20186 have_res_init=no
20189 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
20190 conftest$ac_exeext conftest.$ac_ext
20191 { echo "$as_me:$LINENO: result: $have_res_init" >&5
20192 echo "${ECHO_T}$have_res_init" >&6; }
20193 if test "$have_res_init" = yes ; then
20194 resolv=yes
20196 LIBS="$OLIBS"
20199 if test "$have_res_init" = yes; then
20201 cat >>confdefs.h <<\_ACEOF
20202 #define HAVE_RES_INIT 1
20203 _ACEOF
20207 # Do we need the Hesiod library to provide the support routines?
20208 if test "$with_hesiod" = yes ; then
20209 # Don't set $LIBS here -- see comments above.
20210 { echo "$as_me:$LINENO: checking for res_send" >&5
20211 echo $ECHO_N "checking for res_send... $ECHO_C" >&6; }
20212 if test "${ac_cv_func_res_send+set}" = set; then
20213 echo $ECHO_N "(cached) $ECHO_C" >&6
20214 else
20215 cat >conftest.$ac_ext <<_ACEOF
20216 /* confdefs.h. */
20217 _ACEOF
20218 cat confdefs.h >>conftest.$ac_ext
20219 cat >>conftest.$ac_ext <<_ACEOF
20220 /* end confdefs.h. */
20221 /* Define res_send to an innocuous variant, in case <limits.h> declares res_send.
20222 For example, HP-UX 11i <limits.h> declares gettimeofday. */
20223 #define res_send innocuous_res_send
20225 /* System header to define __stub macros and hopefully few prototypes,
20226 which can conflict with char res_send (); below.
20227 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
20228 <limits.h> exists even on freestanding compilers. */
20230 #ifdef __STDC__
20231 # include <limits.h>
20232 #else
20233 # include <assert.h>
20234 #endif
20236 #undef res_send
20238 /* Override any GCC internal prototype to avoid an error.
20239 Use char because int might match the return type of a GCC
20240 builtin and then its argument prototype would still apply. */
20241 #ifdef __cplusplus
20242 extern "C"
20243 #endif
20244 char res_send ();
20245 /* The GNU C library defines this for functions which it implements
20246 to always fail with ENOSYS. Some functions are actually named
20247 something starting with __ and the normal name is an alias. */
20248 #if defined __stub_res_send || defined __stub___res_send
20249 choke me
20250 #endif
20253 main ()
20255 return res_send ();
20257 return 0;
20259 _ACEOF
20260 rm -f conftest.$ac_objext conftest$ac_exeext
20261 if { (ac_try="$ac_link"
20262 case "(($ac_try" in
20263 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20264 *) ac_try_echo=$ac_try;;
20265 esac
20266 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20267 (eval "$ac_link") 2>conftest.er1
20268 ac_status=$?
20269 grep -v '^ *+' conftest.er1 >conftest.err
20270 rm -f conftest.er1
20271 cat conftest.err >&5
20272 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20273 (exit $ac_status); } && {
20274 test -z "$ac_c_werror_flag" ||
20275 test ! -s conftest.err
20276 } && test -s conftest$ac_exeext &&
20277 $as_test_x conftest$ac_exeext; then
20278 ac_cv_func_res_send=yes
20279 else
20280 echo "$as_me: failed program was:" >&5
20281 sed 's/^/| /' conftest.$ac_ext >&5
20283 ac_cv_func_res_send=no
20286 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
20287 conftest$ac_exeext conftest.$ac_ext
20289 { echo "$as_me:$LINENO: result: $ac_cv_func_res_send" >&5
20290 echo "${ECHO_T}$ac_cv_func_res_send" >&6; }
20291 if test $ac_cv_func_res_send = yes; then
20293 else
20294 { echo "$as_me:$LINENO: checking for __res_send" >&5
20295 echo $ECHO_N "checking for __res_send... $ECHO_C" >&6; }
20296 if test "${ac_cv_func___res_send+set}" = set; then
20297 echo $ECHO_N "(cached) $ECHO_C" >&6
20298 else
20299 cat >conftest.$ac_ext <<_ACEOF
20300 /* confdefs.h. */
20301 _ACEOF
20302 cat confdefs.h >>conftest.$ac_ext
20303 cat >>conftest.$ac_ext <<_ACEOF
20304 /* end confdefs.h. */
20305 /* Define __res_send to an innocuous variant, in case <limits.h> declares __res_send.
20306 For example, HP-UX 11i <limits.h> declares gettimeofday. */
20307 #define __res_send innocuous___res_send
20309 /* System header to define __stub macros and hopefully few prototypes,
20310 which can conflict with char __res_send (); below.
20311 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
20312 <limits.h> exists even on freestanding compilers. */
20314 #ifdef __STDC__
20315 # include <limits.h>
20316 #else
20317 # include <assert.h>
20318 #endif
20320 #undef __res_send
20322 /* Override any GCC internal prototype to avoid an error.
20323 Use char because int might match the return type of a GCC
20324 builtin and then its argument prototype would still apply. */
20325 #ifdef __cplusplus
20326 extern "C"
20327 #endif
20328 char __res_send ();
20329 /* The GNU C library defines this for functions which it implements
20330 to always fail with ENOSYS. Some functions are actually named
20331 something starting with __ and the normal name is an alias. */
20332 #if defined __stub___res_send || defined __stub_____res_send
20333 choke me
20334 #endif
20337 main ()
20339 return __res_send ();
20341 return 0;
20343 _ACEOF
20344 rm -f conftest.$ac_objext conftest$ac_exeext
20345 if { (ac_try="$ac_link"
20346 case "(($ac_try" in
20347 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20348 *) ac_try_echo=$ac_try;;
20349 esac
20350 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20351 (eval "$ac_link") 2>conftest.er1
20352 ac_status=$?
20353 grep -v '^ *+' conftest.er1 >conftest.err
20354 rm -f conftest.er1
20355 cat conftest.err >&5
20356 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20357 (exit $ac_status); } && {
20358 test -z "$ac_c_werror_flag" ||
20359 test ! -s conftest.err
20360 } && test -s conftest$ac_exeext &&
20361 $as_test_x conftest$ac_exeext; then
20362 ac_cv_func___res_send=yes
20363 else
20364 echo "$as_me: failed program was:" >&5
20365 sed 's/^/| /' conftest.$ac_ext >&5
20367 ac_cv_func___res_send=no
20370 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
20371 conftest$ac_exeext conftest.$ac_ext
20373 { echo "$as_me:$LINENO: result: $ac_cv_func___res_send" >&5
20374 echo "${ECHO_T}$ac_cv_func___res_send" >&6; }
20375 if test $ac_cv_func___res_send = yes; then
20377 else
20378 { echo "$as_me:$LINENO: checking for res_send in -lresolv" >&5
20379 echo $ECHO_N "checking for res_send in -lresolv... $ECHO_C" >&6; }
20380 if test "${ac_cv_lib_resolv_res_send+set}" = set; then
20381 echo $ECHO_N "(cached) $ECHO_C" >&6
20382 else
20383 ac_check_lib_save_LIBS=$LIBS
20384 LIBS="-lresolv $LIBS"
20385 cat >conftest.$ac_ext <<_ACEOF
20386 /* confdefs.h. */
20387 _ACEOF
20388 cat confdefs.h >>conftest.$ac_ext
20389 cat >>conftest.$ac_ext <<_ACEOF
20390 /* end confdefs.h. */
20392 /* Override any GCC internal prototype to avoid an error.
20393 Use char because int might match the return type of a GCC
20394 builtin and then its argument prototype would still apply. */
20395 #ifdef __cplusplus
20396 extern "C"
20397 #endif
20398 char res_send ();
20400 main ()
20402 return res_send ();
20404 return 0;
20406 _ACEOF
20407 rm -f conftest.$ac_objext conftest$ac_exeext
20408 if { (ac_try="$ac_link"
20409 case "(($ac_try" in
20410 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20411 *) ac_try_echo=$ac_try;;
20412 esac
20413 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20414 (eval "$ac_link") 2>conftest.er1
20415 ac_status=$?
20416 grep -v '^ *+' conftest.er1 >conftest.err
20417 rm -f conftest.er1
20418 cat conftest.err >&5
20419 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20420 (exit $ac_status); } && {
20421 test -z "$ac_c_werror_flag" ||
20422 test ! -s conftest.err
20423 } && test -s conftest$ac_exeext &&
20424 $as_test_x conftest$ac_exeext; then
20425 ac_cv_lib_resolv_res_send=yes
20426 else
20427 echo "$as_me: failed program was:" >&5
20428 sed 's/^/| /' conftest.$ac_ext >&5
20430 ac_cv_lib_resolv_res_send=no
20433 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
20434 conftest$ac_exeext conftest.$ac_ext
20435 LIBS=$ac_check_lib_save_LIBS
20437 { echo "$as_me:$LINENO: result: $ac_cv_lib_resolv_res_send" >&5
20438 echo "${ECHO_T}$ac_cv_lib_resolv_res_send" >&6; }
20439 if test $ac_cv_lib_resolv_res_send = yes; then
20440 resolv=yes
20441 else
20442 { echo "$as_me:$LINENO: checking for __res_send in -lresolv" >&5
20443 echo $ECHO_N "checking for __res_send in -lresolv... $ECHO_C" >&6; }
20444 if test "${ac_cv_lib_resolv___res_send+set}" = set; then
20445 echo $ECHO_N "(cached) $ECHO_C" >&6
20446 else
20447 ac_check_lib_save_LIBS=$LIBS
20448 LIBS="-lresolv $LIBS"
20449 cat >conftest.$ac_ext <<_ACEOF
20450 /* confdefs.h. */
20451 _ACEOF
20452 cat confdefs.h >>conftest.$ac_ext
20453 cat >>conftest.$ac_ext <<_ACEOF
20454 /* end confdefs.h. */
20456 /* Override any GCC internal prototype to avoid an error.
20457 Use char because int might match the return type of a GCC
20458 builtin and then its argument prototype would still apply. */
20459 #ifdef __cplusplus
20460 extern "C"
20461 #endif
20462 char __res_send ();
20464 main ()
20466 return __res_send ();
20468 return 0;
20470 _ACEOF
20471 rm -f conftest.$ac_objext conftest$ac_exeext
20472 if { (ac_try="$ac_link"
20473 case "(($ac_try" in
20474 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20475 *) ac_try_echo=$ac_try;;
20476 esac
20477 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20478 (eval "$ac_link") 2>conftest.er1
20479 ac_status=$?
20480 grep -v '^ *+' conftest.er1 >conftest.err
20481 rm -f conftest.er1
20482 cat conftest.err >&5
20483 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20484 (exit $ac_status); } && {
20485 test -z "$ac_c_werror_flag" ||
20486 test ! -s conftest.err
20487 } && test -s conftest$ac_exeext &&
20488 $as_test_x conftest$ac_exeext; then
20489 ac_cv_lib_resolv___res_send=yes
20490 else
20491 echo "$as_me: failed program was:" >&5
20492 sed 's/^/| /' conftest.$ac_ext >&5
20494 ac_cv_lib_resolv___res_send=no
20497 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
20498 conftest$ac_exeext conftest.$ac_ext
20499 LIBS=$ac_check_lib_save_LIBS
20501 { echo "$as_me:$LINENO: result: $ac_cv_lib_resolv___res_send" >&5
20502 echo "${ECHO_T}$ac_cv_lib_resolv___res_send" >&6; }
20503 if test $ac_cv_lib_resolv___res_send = yes; then
20504 resolv=yes
20513 if test "$resolv" = yes ; then
20514 RESOLVLIB=-lresolv
20515 else
20516 RESOLVLIB=
20518 { echo "$as_me:$LINENO: checking for hes_getmailhost" >&5
20519 echo $ECHO_N "checking for hes_getmailhost... $ECHO_C" >&6; }
20520 if test "${ac_cv_func_hes_getmailhost+set}" = set; then
20521 echo $ECHO_N "(cached) $ECHO_C" >&6
20522 else
20523 cat >conftest.$ac_ext <<_ACEOF
20524 /* confdefs.h. */
20525 _ACEOF
20526 cat confdefs.h >>conftest.$ac_ext
20527 cat >>conftest.$ac_ext <<_ACEOF
20528 /* end confdefs.h. */
20529 /* Define hes_getmailhost to an innocuous variant, in case <limits.h> declares hes_getmailhost.
20530 For example, HP-UX 11i <limits.h> declares gettimeofday. */
20531 #define hes_getmailhost innocuous_hes_getmailhost
20533 /* System header to define __stub macros and hopefully few prototypes,
20534 which can conflict with char hes_getmailhost (); below.
20535 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
20536 <limits.h> exists even on freestanding compilers. */
20538 #ifdef __STDC__
20539 # include <limits.h>
20540 #else
20541 # include <assert.h>
20542 #endif
20544 #undef hes_getmailhost
20546 /* Override any GCC internal prototype to avoid an error.
20547 Use char because int might match the return type of a GCC
20548 builtin and then its argument prototype would still apply. */
20549 #ifdef __cplusplus
20550 extern "C"
20551 #endif
20552 char hes_getmailhost ();
20553 /* The GNU C library defines this for functions which it implements
20554 to always fail with ENOSYS. Some functions are actually named
20555 something starting with __ and the normal name is an alias. */
20556 #if defined __stub_hes_getmailhost || defined __stub___hes_getmailhost
20557 choke me
20558 #endif
20561 main ()
20563 return hes_getmailhost ();
20565 return 0;
20567 _ACEOF
20568 rm -f conftest.$ac_objext conftest$ac_exeext
20569 if { (ac_try="$ac_link"
20570 case "(($ac_try" in
20571 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20572 *) ac_try_echo=$ac_try;;
20573 esac
20574 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20575 (eval "$ac_link") 2>conftest.er1
20576 ac_status=$?
20577 grep -v '^ *+' conftest.er1 >conftest.err
20578 rm -f conftest.er1
20579 cat conftest.err >&5
20580 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20581 (exit $ac_status); } && {
20582 test -z "$ac_c_werror_flag" ||
20583 test ! -s conftest.err
20584 } && test -s conftest$ac_exeext &&
20585 $as_test_x conftest$ac_exeext; then
20586 ac_cv_func_hes_getmailhost=yes
20587 else
20588 echo "$as_me: failed program was:" >&5
20589 sed 's/^/| /' conftest.$ac_ext >&5
20591 ac_cv_func_hes_getmailhost=no
20594 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
20595 conftest$ac_exeext conftest.$ac_ext
20597 { echo "$as_me:$LINENO: result: $ac_cv_func_hes_getmailhost" >&5
20598 echo "${ECHO_T}$ac_cv_func_hes_getmailhost" >&6; }
20599 if test $ac_cv_func_hes_getmailhost = yes; then
20601 else
20602 { echo "$as_me:$LINENO: checking for hes_getmailhost in -lhesiod" >&5
20603 echo $ECHO_N "checking for hes_getmailhost in -lhesiod... $ECHO_C" >&6; }
20604 if test "${ac_cv_lib_hesiod_hes_getmailhost+set}" = set; then
20605 echo $ECHO_N "(cached) $ECHO_C" >&6
20606 else
20607 ac_check_lib_save_LIBS=$LIBS
20608 LIBS="-lhesiod $RESOLVLIB $LIBS"
20609 cat >conftest.$ac_ext <<_ACEOF
20610 /* confdefs.h. */
20611 _ACEOF
20612 cat confdefs.h >>conftest.$ac_ext
20613 cat >>conftest.$ac_ext <<_ACEOF
20614 /* end confdefs.h. */
20616 /* Override any GCC internal prototype to avoid an error.
20617 Use char because int might match the return type of a GCC
20618 builtin and then its argument prototype would still apply. */
20619 #ifdef __cplusplus
20620 extern "C"
20621 #endif
20622 char hes_getmailhost ();
20624 main ()
20626 return hes_getmailhost ();
20628 return 0;
20630 _ACEOF
20631 rm -f conftest.$ac_objext conftest$ac_exeext
20632 if { (ac_try="$ac_link"
20633 case "(($ac_try" in
20634 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20635 *) ac_try_echo=$ac_try;;
20636 esac
20637 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20638 (eval "$ac_link") 2>conftest.er1
20639 ac_status=$?
20640 grep -v '^ *+' conftest.er1 >conftest.err
20641 rm -f conftest.er1
20642 cat conftest.err >&5
20643 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20644 (exit $ac_status); } && {
20645 test -z "$ac_c_werror_flag" ||
20646 test ! -s conftest.err
20647 } && test -s conftest$ac_exeext &&
20648 $as_test_x conftest$ac_exeext; then
20649 ac_cv_lib_hesiod_hes_getmailhost=yes
20650 else
20651 echo "$as_me: failed program was:" >&5
20652 sed 's/^/| /' conftest.$ac_ext >&5
20654 ac_cv_lib_hesiod_hes_getmailhost=no
20657 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
20658 conftest$ac_exeext conftest.$ac_ext
20659 LIBS=$ac_check_lib_save_LIBS
20661 { echo "$as_me:$LINENO: result: $ac_cv_lib_hesiod_hes_getmailhost" >&5
20662 echo "${ECHO_T}$ac_cv_lib_hesiod_hes_getmailhost" >&6; }
20663 if test $ac_cv_lib_hesiod_hes_getmailhost = yes; then
20665 cat >>confdefs.h <<\_ACEOF
20666 #define HAVE_LIBHESIOD 1
20667 _ACEOF
20669 else
20677 # Do we need libresolv (due to res_init or Hesiod)?
20678 if test "$resolv" = yes ; then
20680 cat >>confdefs.h <<\_ACEOF
20681 #define HAVE_LIBRESOLV 1
20682 _ACEOF
20686 # These tell us which Kerberos-related libraries to use.
20687 if test "${with_kerberos+set}" = set; then
20689 { echo "$as_me:$LINENO: checking for com_err in -lcom_err" >&5
20690 echo $ECHO_N "checking for com_err in -lcom_err... $ECHO_C" >&6; }
20691 if test "${ac_cv_lib_com_err_com_err+set}" = set; then
20692 echo $ECHO_N "(cached) $ECHO_C" >&6
20693 else
20694 ac_check_lib_save_LIBS=$LIBS
20695 LIBS="-lcom_err $LIBS"
20696 cat >conftest.$ac_ext <<_ACEOF
20697 /* confdefs.h. */
20698 _ACEOF
20699 cat confdefs.h >>conftest.$ac_ext
20700 cat >>conftest.$ac_ext <<_ACEOF
20701 /* end confdefs.h. */
20703 /* Override any GCC internal prototype to avoid an error.
20704 Use char because int might match the return type of a GCC
20705 builtin and then its argument prototype would still apply. */
20706 #ifdef __cplusplus
20707 extern "C"
20708 #endif
20709 char com_err ();
20711 main ()
20713 return com_err ();
20715 return 0;
20717 _ACEOF
20718 rm -f conftest.$ac_objext conftest$ac_exeext
20719 if { (ac_try="$ac_link"
20720 case "(($ac_try" in
20721 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20722 *) ac_try_echo=$ac_try;;
20723 esac
20724 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20725 (eval "$ac_link") 2>conftest.er1
20726 ac_status=$?
20727 grep -v '^ *+' conftest.er1 >conftest.err
20728 rm -f conftest.er1
20729 cat conftest.err >&5
20730 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20731 (exit $ac_status); } && {
20732 test -z "$ac_c_werror_flag" ||
20733 test ! -s conftest.err
20734 } && test -s conftest$ac_exeext &&
20735 $as_test_x conftest$ac_exeext; then
20736 ac_cv_lib_com_err_com_err=yes
20737 else
20738 echo "$as_me: failed program was:" >&5
20739 sed 's/^/| /' conftest.$ac_ext >&5
20741 ac_cv_lib_com_err_com_err=no
20744 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
20745 conftest$ac_exeext conftest.$ac_ext
20746 LIBS=$ac_check_lib_save_LIBS
20748 { echo "$as_me:$LINENO: result: $ac_cv_lib_com_err_com_err" >&5
20749 echo "${ECHO_T}$ac_cv_lib_com_err_com_err" >&6; }
20750 if test $ac_cv_lib_com_err_com_err = yes; then
20751 cat >>confdefs.h <<_ACEOF
20752 #define HAVE_LIBCOM_ERR 1
20753 _ACEOF
20755 LIBS="-lcom_err $LIBS"
20760 { echo "$as_me:$LINENO: checking for mit_des_cbc_encrypt in -lk5crypto" >&5
20761 echo $ECHO_N "checking for mit_des_cbc_encrypt in -lk5crypto... $ECHO_C" >&6; }
20762 if test "${ac_cv_lib_k5crypto_mit_des_cbc_encrypt+set}" = set; then
20763 echo $ECHO_N "(cached) $ECHO_C" >&6
20764 else
20765 ac_check_lib_save_LIBS=$LIBS
20766 LIBS="-lk5crypto $LIBS"
20767 cat >conftest.$ac_ext <<_ACEOF
20768 /* confdefs.h. */
20769 _ACEOF
20770 cat confdefs.h >>conftest.$ac_ext
20771 cat >>conftest.$ac_ext <<_ACEOF
20772 /* end confdefs.h. */
20774 /* Override any GCC internal prototype to avoid an error.
20775 Use char because int might match the return type of a GCC
20776 builtin and then its argument prototype would still apply. */
20777 #ifdef __cplusplus
20778 extern "C"
20779 #endif
20780 char mit_des_cbc_encrypt ();
20782 main ()
20784 return mit_des_cbc_encrypt ();
20786 return 0;
20788 _ACEOF
20789 rm -f conftest.$ac_objext conftest$ac_exeext
20790 if { (ac_try="$ac_link"
20791 case "(($ac_try" in
20792 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20793 *) ac_try_echo=$ac_try;;
20794 esac
20795 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20796 (eval "$ac_link") 2>conftest.er1
20797 ac_status=$?
20798 grep -v '^ *+' conftest.er1 >conftest.err
20799 rm -f conftest.er1
20800 cat conftest.err >&5
20801 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20802 (exit $ac_status); } && {
20803 test -z "$ac_c_werror_flag" ||
20804 test ! -s conftest.err
20805 } && test -s conftest$ac_exeext &&
20806 $as_test_x conftest$ac_exeext; then
20807 ac_cv_lib_k5crypto_mit_des_cbc_encrypt=yes
20808 else
20809 echo "$as_me: failed program was:" >&5
20810 sed 's/^/| /' conftest.$ac_ext >&5
20812 ac_cv_lib_k5crypto_mit_des_cbc_encrypt=no
20815 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
20816 conftest$ac_exeext conftest.$ac_ext
20817 LIBS=$ac_check_lib_save_LIBS
20819 { echo "$as_me:$LINENO: result: $ac_cv_lib_k5crypto_mit_des_cbc_encrypt" >&5
20820 echo "${ECHO_T}$ac_cv_lib_k5crypto_mit_des_cbc_encrypt" >&6; }
20821 if test $ac_cv_lib_k5crypto_mit_des_cbc_encrypt = yes; then
20822 cat >>confdefs.h <<_ACEOF
20823 #define HAVE_LIBK5CRYPTO 1
20824 _ACEOF
20826 LIBS="-lk5crypto $LIBS"
20831 { echo "$as_me:$LINENO: checking for mit_des_cbc_encrypt in -lcrypto" >&5
20832 echo $ECHO_N "checking for mit_des_cbc_encrypt in -lcrypto... $ECHO_C" >&6; }
20833 if test "${ac_cv_lib_crypto_mit_des_cbc_encrypt+set}" = set; then
20834 echo $ECHO_N "(cached) $ECHO_C" >&6
20835 else
20836 ac_check_lib_save_LIBS=$LIBS
20837 LIBS="-lcrypto $LIBS"
20838 cat >conftest.$ac_ext <<_ACEOF
20839 /* confdefs.h. */
20840 _ACEOF
20841 cat confdefs.h >>conftest.$ac_ext
20842 cat >>conftest.$ac_ext <<_ACEOF
20843 /* end confdefs.h. */
20845 /* Override any GCC internal prototype to avoid an error.
20846 Use char because int might match the return type of a GCC
20847 builtin and then its argument prototype would still apply. */
20848 #ifdef __cplusplus
20849 extern "C"
20850 #endif
20851 char mit_des_cbc_encrypt ();
20853 main ()
20855 return mit_des_cbc_encrypt ();
20857 return 0;
20859 _ACEOF
20860 rm -f conftest.$ac_objext conftest$ac_exeext
20861 if { (ac_try="$ac_link"
20862 case "(($ac_try" in
20863 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20864 *) ac_try_echo=$ac_try;;
20865 esac
20866 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20867 (eval "$ac_link") 2>conftest.er1
20868 ac_status=$?
20869 grep -v '^ *+' conftest.er1 >conftest.err
20870 rm -f conftest.er1
20871 cat conftest.err >&5
20872 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20873 (exit $ac_status); } && {
20874 test -z "$ac_c_werror_flag" ||
20875 test ! -s conftest.err
20876 } && test -s conftest$ac_exeext &&
20877 $as_test_x conftest$ac_exeext; then
20878 ac_cv_lib_crypto_mit_des_cbc_encrypt=yes
20879 else
20880 echo "$as_me: failed program was:" >&5
20881 sed 's/^/| /' conftest.$ac_ext >&5
20883 ac_cv_lib_crypto_mit_des_cbc_encrypt=no
20886 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
20887 conftest$ac_exeext conftest.$ac_ext
20888 LIBS=$ac_check_lib_save_LIBS
20890 { echo "$as_me:$LINENO: result: $ac_cv_lib_crypto_mit_des_cbc_encrypt" >&5
20891 echo "${ECHO_T}$ac_cv_lib_crypto_mit_des_cbc_encrypt" >&6; }
20892 if test $ac_cv_lib_crypto_mit_des_cbc_encrypt = yes; then
20893 cat >>confdefs.h <<_ACEOF
20894 #define HAVE_LIBCRYPTO 1
20895 _ACEOF
20897 LIBS="-lcrypto $LIBS"
20902 { echo "$as_me:$LINENO: checking for krb5_init_context in -lkrb5" >&5
20903 echo $ECHO_N "checking for krb5_init_context in -lkrb5... $ECHO_C" >&6; }
20904 if test "${ac_cv_lib_krb5_krb5_init_context+set}" = set; then
20905 echo $ECHO_N "(cached) $ECHO_C" >&6
20906 else
20907 ac_check_lib_save_LIBS=$LIBS
20908 LIBS="-lkrb5 $LIBS"
20909 cat >conftest.$ac_ext <<_ACEOF
20910 /* confdefs.h. */
20911 _ACEOF
20912 cat confdefs.h >>conftest.$ac_ext
20913 cat >>conftest.$ac_ext <<_ACEOF
20914 /* end confdefs.h. */
20916 /* Override any GCC internal prototype to avoid an error.
20917 Use char because int might match the return type of a GCC
20918 builtin and then its argument prototype would still apply. */
20919 #ifdef __cplusplus
20920 extern "C"
20921 #endif
20922 char krb5_init_context ();
20924 main ()
20926 return krb5_init_context ();
20928 return 0;
20930 _ACEOF
20931 rm -f conftest.$ac_objext conftest$ac_exeext
20932 if { (ac_try="$ac_link"
20933 case "(($ac_try" in
20934 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20935 *) ac_try_echo=$ac_try;;
20936 esac
20937 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20938 (eval "$ac_link") 2>conftest.er1
20939 ac_status=$?
20940 grep -v '^ *+' conftest.er1 >conftest.err
20941 rm -f conftest.er1
20942 cat conftest.err >&5
20943 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20944 (exit $ac_status); } && {
20945 test -z "$ac_c_werror_flag" ||
20946 test ! -s conftest.err
20947 } && test -s conftest$ac_exeext &&
20948 $as_test_x conftest$ac_exeext; then
20949 ac_cv_lib_krb5_krb5_init_context=yes
20950 else
20951 echo "$as_me: failed program was:" >&5
20952 sed 's/^/| /' conftest.$ac_ext >&5
20954 ac_cv_lib_krb5_krb5_init_context=no
20957 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
20958 conftest$ac_exeext conftest.$ac_ext
20959 LIBS=$ac_check_lib_save_LIBS
20961 { echo "$as_me:$LINENO: result: $ac_cv_lib_krb5_krb5_init_context" >&5
20962 echo "${ECHO_T}$ac_cv_lib_krb5_krb5_init_context" >&6; }
20963 if test $ac_cv_lib_krb5_krb5_init_context = yes; then
20964 cat >>confdefs.h <<_ACEOF
20965 #define HAVE_LIBKRB5 1
20966 _ACEOF
20968 LIBS="-lkrb5 $LIBS"
20972 if test "${with_kerberos5+set}" != set; then
20974 { echo "$as_me:$LINENO: checking for des_cbc_encrypt in -ldes425" >&5
20975 echo $ECHO_N "checking for des_cbc_encrypt in -ldes425... $ECHO_C" >&6; }
20976 if test "${ac_cv_lib_des425_des_cbc_encrypt+set}" = set; then
20977 echo $ECHO_N "(cached) $ECHO_C" >&6
20978 else
20979 ac_check_lib_save_LIBS=$LIBS
20980 LIBS="-ldes425 $LIBS"
20981 cat >conftest.$ac_ext <<_ACEOF
20982 /* confdefs.h. */
20983 _ACEOF
20984 cat confdefs.h >>conftest.$ac_ext
20985 cat >>conftest.$ac_ext <<_ACEOF
20986 /* end confdefs.h. */
20988 /* Override any GCC internal prototype to avoid an error.
20989 Use char because int might match the return type of a GCC
20990 builtin and then its argument prototype would still apply. */
20991 #ifdef __cplusplus
20992 extern "C"
20993 #endif
20994 char des_cbc_encrypt ();
20996 main ()
20998 return des_cbc_encrypt ();
21000 return 0;
21002 _ACEOF
21003 rm -f conftest.$ac_objext conftest$ac_exeext
21004 if { (ac_try="$ac_link"
21005 case "(($ac_try" in
21006 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21007 *) ac_try_echo=$ac_try;;
21008 esac
21009 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21010 (eval "$ac_link") 2>conftest.er1
21011 ac_status=$?
21012 grep -v '^ *+' conftest.er1 >conftest.err
21013 rm -f conftest.er1
21014 cat conftest.err >&5
21015 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21016 (exit $ac_status); } && {
21017 test -z "$ac_c_werror_flag" ||
21018 test ! -s conftest.err
21019 } && test -s conftest$ac_exeext &&
21020 $as_test_x conftest$ac_exeext; then
21021 ac_cv_lib_des425_des_cbc_encrypt=yes
21022 else
21023 echo "$as_me: failed program was:" >&5
21024 sed 's/^/| /' conftest.$ac_ext >&5
21026 ac_cv_lib_des425_des_cbc_encrypt=no
21029 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
21030 conftest$ac_exeext conftest.$ac_ext
21031 LIBS=$ac_check_lib_save_LIBS
21033 { echo "$as_me:$LINENO: result: $ac_cv_lib_des425_des_cbc_encrypt" >&5
21034 echo "${ECHO_T}$ac_cv_lib_des425_des_cbc_encrypt" >&6; }
21035 if test $ac_cv_lib_des425_des_cbc_encrypt = yes; then
21036 cat >>confdefs.h <<_ACEOF
21037 #define HAVE_LIBDES425 1
21038 _ACEOF
21040 LIBS="-ldes425 $LIBS"
21042 else
21044 { echo "$as_me:$LINENO: checking for des_cbc_encrypt in -ldes" >&5
21045 echo $ECHO_N "checking for des_cbc_encrypt in -ldes... $ECHO_C" >&6; }
21046 if test "${ac_cv_lib_des_des_cbc_encrypt+set}" = set; then
21047 echo $ECHO_N "(cached) $ECHO_C" >&6
21048 else
21049 ac_check_lib_save_LIBS=$LIBS
21050 LIBS="-ldes $LIBS"
21051 cat >conftest.$ac_ext <<_ACEOF
21052 /* confdefs.h. */
21053 _ACEOF
21054 cat confdefs.h >>conftest.$ac_ext
21055 cat >>conftest.$ac_ext <<_ACEOF
21056 /* end confdefs.h. */
21058 /* Override any GCC internal prototype to avoid an error.
21059 Use char because int might match the return type of a GCC
21060 builtin and then its argument prototype would still apply. */
21061 #ifdef __cplusplus
21062 extern "C"
21063 #endif
21064 char des_cbc_encrypt ();
21066 main ()
21068 return des_cbc_encrypt ();
21070 return 0;
21072 _ACEOF
21073 rm -f conftest.$ac_objext conftest$ac_exeext
21074 if { (ac_try="$ac_link"
21075 case "(($ac_try" in
21076 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21077 *) ac_try_echo=$ac_try;;
21078 esac
21079 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21080 (eval "$ac_link") 2>conftest.er1
21081 ac_status=$?
21082 grep -v '^ *+' conftest.er1 >conftest.err
21083 rm -f conftest.er1
21084 cat conftest.err >&5
21085 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21086 (exit $ac_status); } && {
21087 test -z "$ac_c_werror_flag" ||
21088 test ! -s conftest.err
21089 } && test -s conftest$ac_exeext &&
21090 $as_test_x conftest$ac_exeext; then
21091 ac_cv_lib_des_des_cbc_encrypt=yes
21092 else
21093 echo "$as_me: failed program was:" >&5
21094 sed 's/^/| /' conftest.$ac_ext >&5
21096 ac_cv_lib_des_des_cbc_encrypt=no
21099 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
21100 conftest$ac_exeext conftest.$ac_ext
21101 LIBS=$ac_check_lib_save_LIBS
21103 { echo "$as_me:$LINENO: result: $ac_cv_lib_des_des_cbc_encrypt" >&5
21104 echo "${ECHO_T}$ac_cv_lib_des_des_cbc_encrypt" >&6; }
21105 if test $ac_cv_lib_des_des_cbc_encrypt = yes; then
21106 cat >>confdefs.h <<_ACEOF
21107 #define HAVE_LIBDES 1
21108 _ACEOF
21110 LIBS="-ldes $LIBS"
21117 { echo "$as_me:$LINENO: checking for krb_get_cred in -lkrb4" >&5
21118 echo $ECHO_N "checking for krb_get_cred in -lkrb4... $ECHO_C" >&6; }
21119 if test "${ac_cv_lib_krb4_krb_get_cred+set}" = set; then
21120 echo $ECHO_N "(cached) $ECHO_C" >&6
21121 else
21122 ac_check_lib_save_LIBS=$LIBS
21123 LIBS="-lkrb4 $LIBS"
21124 cat >conftest.$ac_ext <<_ACEOF
21125 /* confdefs.h. */
21126 _ACEOF
21127 cat confdefs.h >>conftest.$ac_ext
21128 cat >>conftest.$ac_ext <<_ACEOF
21129 /* end confdefs.h. */
21131 /* Override any GCC internal prototype to avoid an error.
21132 Use char because int might match the return type of a GCC
21133 builtin and then its argument prototype would still apply. */
21134 #ifdef __cplusplus
21135 extern "C"
21136 #endif
21137 char krb_get_cred ();
21139 main ()
21141 return krb_get_cred ();
21143 return 0;
21145 _ACEOF
21146 rm -f conftest.$ac_objext conftest$ac_exeext
21147 if { (ac_try="$ac_link"
21148 case "(($ac_try" in
21149 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21150 *) ac_try_echo=$ac_try;;
21151 esac
21152 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21153 (eval "$ac_link") 2>conftest.er1
21154 ac_status=$?
21155 grep -v '^ *+' conftest.er1 >conftest.err
21156 rm -f conftest.er1
21157 cat conftest.err >&5
21158 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21159 (exit $ac_status); } && {
21160 test -z "$ac_c_werror_flag" ||
21161 test ! -s conftest.err
21162 } && test -s conftest$ac_exeext &&
21163 $as_test_x conftest$ac_exeext; then
21164 ac_cv_lib_krb4_krb_get_cred=yes
21165 else
21166 echo "$as_me: failed program was:" >&5
21167 sed 's/^/| /' conftest.$ac_ext >&5
21169 ac_cv_lib_krb4_krb_get_cred=no
21172 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
21173 conftest$ac_exeext conftest.$ac_ext
21174 LIBS=$ac_check_lib_save_LIBS
21176 { echo "$as_me:$LINENO: result: $ac_cv_lib_krb4_krb_get_cred" >&5
21177 echo "${ECHO_T}$ac_cv_lib_krb4_krb_get_cred" >&6; }
21178 if test $ac_cv_lib_krb4_krb_get_cred = yes; then
21179 cat >>confdefs.h <<_ACEOF
21180 #define HAVE_LIBKRB4 1
21181 _ACEOF
21183 LIBS="-lkrb4 $LIBS"
21185 else
21187 { echo "$as_me:$LINENO: checking for krb_get_cred in -lkrb" >&5
21188 echo $ECHO_N "checking for krb_get_cred in -lkrb... $ECHO_C" >&6; }
21189 if test "${ac_cv_lib_krb_krb_get_cred+set}" = set; then
21190 echo $ECHO_N "(cached) $ECHO_C" >&6
21191 else
21192 ac_check_lib_save_LIBS=$LIBS
21193 LIBS="-lkrb $LIBS"
21194 cat >conftest.$ac_ext <<_ACEOF
21195 /* confdefs.h. */
21196 _ACEOF
21197 cat confdefs.h >>conftest.$ac_ext
21198 cat >>conftest.$ac_ext <<_ACEOF
21199 /* end confdefs.h. */
21201 /* Override any GCC internal prototype to avoid an error.
21202 Use char because int might match the return type of a GCC
21203 builtin and then its argument prototype would still apply. */
21204 #ifdef __cplusplus
21205 extern "C"
21206 #endif
21207 char krb_get_cred ();
21209 main ()
21211 return krb_get_cred ();
21213 return 0;
21215 _ACEOF
21216 rm -f conftest.$ac_objext conftest$ac_exeext
21217 if { (ac_try="$ac_link"
21218 case "(($ac_try" in
21219 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21220 *) ac_try_echo=$ac_try;;
21221 esac
21222 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21223 (eval "$ac_link") 2>conftest.er1
21224 ac_status=$?
21225 grep -v '^ *+' conftest.er1 >conftest.err
21226 rm -f conftest.er1
21227 cat conftest.err >&5
21228 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21229 (exit $ac_status); } && {
21230 test -z "$ac_c_werror_flag" ||
21231 test ! -s conftest.err
21232 } && test -s conftest$ac_exeext &&
21233 $as_test_x conftest$ac_exeext; then
21234 ac_cv_lib_krb_krb_get_cred=yes
21235 else
21236 echo "$as_me: failed program was:" >&5
21237 sed 's/^/| /' conftest.$ac_ext >&5
21239 ac_cv_lib_krb_krb_get_cred=no
21242 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
21243 conftest$ac_exeext conftest.$ac_ext
21244 LIBS=$ac_check_lib_save_LIBS
21246 { echo "$as_me:$LINENO: result: $ac_cv_lib_krb_krb_get_cred" >&5
21247 echo "${ECHO_T}$ac_cv_lib_krb_krb_get_cred" >&6; }
21248 if test $ac_cv_lib_krb_krb_get_cred = yes; then
21249 cat >>confdefs.h <<_ACEOF
21250 #define HAVE_LIBKRB 1
21251 _ACEOF
21253 LIBS="-lkrb $LIBS"
21261 if test "${with_kerberos5+set}" = set; then
21263 for ac_header in krb5.h
21265 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
21266 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
21267 { echo "$as_me:$LINENO: checking for $ac_header" >&5
21268 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
21269 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
21270 echo $ECHO_N "(cached) $ECHO_C" >&6
21272 ac_res=`eval echo '${'$as_ac_Header'}'`
21273 { echo "$as_me:$LINENO: result: $ac_res" >&5
21274 echo "${ECHO_T}$ac_res" >&6; }
21275 else
21276 # Is the header compilable?
21277 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
21278 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
21279 cat >conftest.$ac_ext <<_ACEOF
21280 /* confdefs.h. */
21281 _ACEOF
21282 cat confdefs.h >>conftest.$ac_ext
21283 cat >>conftest.$ac_ext <<_ACEOF
21284 /* end confdefs.h. */
21285 $ac_includes_default
21286 #include <$ac_header>
21287 _ACEOF
21288 rm -f conftest.$ac_objext
21289 if { (ac_try="$ac_compile"
21290 case "(($ac_try" in
21291 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21292 *) ac_try_echo=$ac_try;;
21293 esac
21294 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21295 (eval "$ac_compile") 2>conftest.er1
21296 ac_status=$?
21297 grep -v '^ *+' conftest.er1 >conftest.err
21298 rm -f conftest.er1
21299 cat conftest.err >&5
21300 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21301 (exit $ac_status); } && {
21302 test -z "$ac_c_werror_flag" ||
21303 test ! -s conftest.err
21304 } && test -s conftest.$ac_objext; then
21305 ac_header_compiler=yes
21306 else
21307 echo "$as_me: failed program was:" >&5
21308 sed 's/^/| /' conftest.$ac_ext >&5
21310 ac_header_compiler=no
21313 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21314 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
21315 echo "${ECHO_T}$ac_header_compiler" >&6; }
21317 # Is the header present?
21318 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
21319 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
21320 cat >conftest.$ac_ext <<_ACEOF
21321 /* confdefs.h. */
21322 _ACEOF
21323 cat confdefs.h >>conftest.$ac_ext
21324 cat >>conftest.$ac_ext <<_ACEOF
21325 /* end confdefs.h. */
21326 #include <$ac_header>
21327 _ACEOF
21328 if { (ac_try="$ac_cpp conftest.$ac_ext"
21329 case "(($ac_try" in
21330 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21331 *) ac_try_echo=$ac_try;;
21332 esac
21333 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21334 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
21335 ac_status=$?
21336 grep -v '^ *+' conftest.er1 >conftest.err
21337 rm -f conftest.er1
21338 cat conftest.err >&5
21339 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21340 (exit $ac_status); } >/dev/null && {
21341 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
21342 test ! -s conftest.err
21343 }; then
21344 ac_header_preproc=yes
21345 else
21346 echo "$as_me: failed program was:" >&5
21347 sed 's/^/| /' conftest.$ac_ext >&5
21349 ac_header_preproc=no
21352 rm -f conftest.err conftest.$ac_ext
21353 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
21354 echo "${ECHO_T}$ac_header_preproc" >&6; }
21356 # So? What about this header?
21357 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
21358 yes:no: )
21359 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
21360 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
21361 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
21362 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
21363 ac_header_preproc=yes
21365 no:yes:* )
21366 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
21367 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
21368 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
21369 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
21370 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
21371 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
21372 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
21373 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
21374 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
21375 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
21376 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
21377 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
21380 esac
21381 { echo "$as_me:$LINENO: checking for $ac_header" >&5
21382 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
21383 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
21384 echo $ECHO_N "(cached) $ECHO_C" >&6
21385 else
21386 eval "$as_ac_Header=\$ac_header_preproc"
21388 ac_res=`eval echo '${'$as_ac_Header'}'`
21389 { echo "$as_me:$LINENO: result: $ac_res" >&5
21390 echo "${ECHO_T}$ac_res" >&6; }
21393 if test `eval echo '${'$as_ac_Header'}'` = yes; then
21394 cat >>confdefs.h <<_ACEOF
21395 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
21396 _ACEOF
21400 done
21402 else
21404 for ac_header in des.h
21406 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
21407 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
21408 { echo "$as_me:$LINENO: checking for $ac_header" >&5
21409 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
21410 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
21411 echo $ECHO_N "(cached) $ECHO_C" >&6
21413 ac_res=`eval echo '${'$as_ac_Header'}'`
21414 { echo "$as_me:$LINENO: result: $ac_res" >&5
21415 echo "${ECHO_T}$ac_res" >&6; }
21416 else
21417 # Is the header compilable?
21418 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
21419 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
21420 cat >conftest.$ac_ext <<_ACEOF
21421 /* confdefs.h. */
21422 _ACEOF
21423 cat confdefs.h >>conftest.$ac_ext
21424 cat >>conftest.$ac_ext <<_ACEOF
21425 /* end confdefs.h. */
21426 $ac_includes_default
21427 #include <$ac_header>
21428 _ACEOF
21429 rm -f conftest.$ac_objext
21430 if { (ac_try="$ac_compile"
21431 case "(($ac_try" in
21432 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21433 *) ac_try_echo=$ac_try;;
21434 esac
21435 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21436 (eval "$ac_compile") 2>conftest.er1
21437 ac_status=$?
21438 grep -v '^ *+' conftest.er1 >conftest.err
21439 rm -f conftest.er1
21440 cat conftest.err >&5
21441 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21442 (exit $ac_status); } && {
21443 test -z "$ac_c_werror_flag" ||
21444 test ! -s conftest.err
21445 } && test -s conftest.$ac_objext; then
21446 ac_header_compiler=yes
21447 else
21448 echo "$as_me: failed program was:" >&5
21449 sed 's/^/| /' conftest.$ac_ext >&5
21451 ac_header_compiler=no
21454 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21455 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
21456 echo "${ECHO_T}$ac_header_compiler" >&6; }
21458 # Is the header present?
21459 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
21460 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
21461 cat >conftest.$ac_ext <<_ACEOF
21462 /* confdefs.h. */
21463 _ACEOF
21464 cat confdefs.h >>conftest.$ac_ext
21465 cat >>conftest.$ac_ext <<_ACEOF
21466 /* end confdefs.h. */
21467 #include <$ac_header>
21468 _ACEOF
21469 if { (ac_try="$ac_cpp conftest.$ac_ext"
21470 case "(($ac_try" in
21471 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21472 *) ac_try_echo=$ac_try;;
21473 esac
21474 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21475 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
21476 ac_status=$?
21477 grep -v '^ *+' conftest.er1 >conftest.err
21478 rm -f conftest.er1
21479 cat conftest.err >&5
21480 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21481 (exit $ac_status); } >/dev/null && {
21482 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
21483 test ! -s conftest.err
21484 }; then
21485 ac_header_preproc=yes
21486 else
21487 echo "$as_me: failed program was:" >&5
21488 sed 's/^/| /' conftest.$ac_ext >&5
21490 ac_header_preproc=no
21493 rm -f conftest.err conftest.$ac_ext
21494 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
21495 echo "${ECHO_T}$ac_header_preproc" >&6; }
21497 # So? What about this header?
21498 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
21499 yes:no: )
21500 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
21501 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
21502 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
21503 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
21504 ac_header_preproc=yes
21506 no:yes:* )
21507 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
21508 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
21509 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
21510 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
21511 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
21512 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
21513 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
21514 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
21515 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
21516 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
21517 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
21518 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
21521 esac
21522 { echo "$as_me:$LINENO: checking for $ac_header" >&5
21523 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
21524 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
21525 echo $ECHO_N "(cached) $ECHO_C" >&6
21526 else
21527 eval "$as_ac_Header=\$ac_header_preproc"
21529 ac_res=`eval echo '${'$as_ac_Header'}'`
21530 { echo "$as_me:$LINENO: result: $ac_res" >&5
21531 echo "${ECHO_T}$ac_res" >&6; }
21534 if test `eval echo '${'$as_ac_Header'}'` = yes; then
21535 cat >>confdefs.h <<_ACEOF
21536 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
21537 _ACEOF
21539 else
21541 for ac_header in kerberosIV/des.h
21543 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
21544 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
21545 { echo "$as_me:$LINENO: checking for $ac_header" >&5
21546 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
21547 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
21548 echo $ECHO_N "(cached) $ECHO_C" >&6
21550 ac_res=`eval echo '${'$as_ac_Header'}'`
21551 { echo "$as_me:$LINENO: result: $ac_res" >&5
21552 echo "${ECHO_T}$ac_res" >&6; }
21553 else
21554 # Is the header compilable?
21555 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
21556 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
21557 cat >conftest.$ac_ext <<_ACEOF
21558 /* confdefs.h. */
21559 _ACEOF
21560 cat confdefs.h >>conftest.$ac_ext
21561 cat >>conftest.$ac_ext <<_ACEOF
21562 /* end confdefs.h. */
21563 $ac_includes_default
21564 #include <$ac_header>
21565 _ACEOF
21566 rm -f conftest.$ac_objext
21567 if { (ac_try="$ac_compile"
21568 case "(($ac_try" in
21569 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21570 *) ac_try_echo=$ac_try;;
21571 esac
21572 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21573 (eval "$ac_compile") 2>conftest.er1
21574 ac_status=$?
21575 grep -v '^ *+' conftest.er1 >conftest.err
21576 rm -f conftest.er1
21577 cat conftest.err >&5
21578 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21579 (exit $ac_status); } && {
21580 test -z "$ac_c_werror_flag" ||
21581 test ! -s conftest.err
21582 } && test -s conftest.$ac_objext; then
21583 ac_header_compiler=yes
21584 else
21585 echo "$as_me: failed program was:" >&5
21586 sed 's/^/| /' conftest.$ac_ext >&5
21588 ac_header_compiler=no
21591 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21592 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
21593 echo "${ECHO_T}$ac_header_compiler" >&6; }
21595 # Is the header present?
21596 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
21597 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
21598 cat >conftest.$ac_ext <<_ACEOF
21599 /* confdefs.h. */
21600 _ACEOF
21601 cat confdefs.h >>conftest.$ac_ext
21602 cat >>conftest.$ac_ext <<_ACEOF
21603 /* end confdefs.h. */
21604 #include <$ac_header>
21605 _ACEOF
21606 if { (ac_try="$ac_cpp conftest.$ac_ext"
21607 case "(($ac_try" in
21608 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21609 *) ac_try_echo=$ac_try;;
21610 esac
21611 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21612 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
21613 ac_status=$?
21614 grep -v '^ *+' conftest.er1 >conftest.err
21615 rm -f conftest.er1
21616 cat conftest.err >&5
21617 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21618 (exit $ac_status); } >/dev/null && {
21619 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
21620 test ! -s conftest.err
21621 }; then
21622 ac_header_preproc=yes
21623 else
21624 echo "$as_me: failed program was:" >&5
21625 sed 's/^/| /' conftest.$ac_ext >&5
21627 ac_header_preproc=no
21630 rm -f conftest.err conftest.$ac_ext
21631 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
21632 echo "${ECHO_T}$ac_header_preproc" >&6; }
21634 # So? What about this header?
21635 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
21636 yes:no: )
21637 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
21638 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
21639 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
21640 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
21641 ac_header_preproc=yes
21643 no:yes:* )
21644 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
21645 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
21646 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
21647 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
21648 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
21649 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
21650 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
21651 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
21652 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
21653 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
21654 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
21655 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
21658 esac
21659 { echo "$as_me:$LINENO: checking for $ac_header" >&5
21660 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
21661 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
21662 echo $ECHO_N "(cached) $ECHO_C" >&6
21663 else
21664 eval "$as_ac_Header=\$ac_header_preproc"
21666 ac_res=`eval echo '${'$as_ac_Header'}'`
21667 { echo "$as_me:$LINENO: result: $ac_res" >&5
21668 echo "${ECHO_T}$ac_res" >&6; }
21671 if test `eval echo '${'$as_ac_Header'}'` = yes; then
21672 cat >>confdefs.h <<_ACEOF
21673 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
21674 _ACEOF
21676 else
21678 for ac_header in kerberos/des.h
21680 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
21681 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
21682 { echo "$as_me:$LINENO: checking for $ac_header" >&5
21683 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
21684 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
21685 echo $ECHO_N "(cached) $ECHO_C" >&6
21687 ac_res=`eval echo '${'$as_ac_Header'}'`
21688 { echo "$as_me:$LINENO: result: $ac_res" >&5
21689 echo "${ECHO_T}$ac_res" >&6; }
21690 else
21691 # Is the header compilable?
21692 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
21693 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
21694 cat >conftest.$ac_ext <<_ACEOF
21695 /* confdefs.h. */
21696 _ACEOF
21697 cat confdefs.h >>conftest.$ac_ext
21698 cat >>conftest.$ac_ext <<_ACEOF
21699 /* end confdefs.h. */
21700 $ac_includes_default
21701 #include <$ac_header>
21702 _ACEOF
21703 rm -f conftest.$ac_objext
21704 if { (ac_try="$ac_compile"
21705 case "(($ac_try" in
21706 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21707 *) ac_try_echo=$ac_try;;
21708 esac
21709 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21710 (eval "$ac_compile") 2>conftest.er1
21711 ac_status=$?
21712 grep -v '^ *+' conftest.er1 >conftest.err
21713 rm -f conftest.er1
21714 cat conftest.err >&5
21715 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21716 (exit $ac_status); } && {
21717 test -z "$ac_c_werror_flag" ||
21718 test ! -s conftest.err
21719 } && test -s conftest.$ac_objext; then
21720 ac_header_compiler=yes
21721 else
21722 echo "$as_me: failed program was:" >&5
21723 sed 's/^/| /' conftest.$ac_ext >&5
21725 ac_header_compiler=no
21728 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21729 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
21730 echo "${ECHO_T}$ac_header_compiler" >&6; }
21732 # Is the header present?
21733 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
21734 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
21735 cat >conftest.$ac_ext <<_ACEOF
21736 /* confdefs.h. */
21737 _ACEOF
21738 cat confdefs.h >>conftest.$ac_ext
21739 cat >>conftest.$ac_ext <<_ACEOF
21740 /* end confdefs.h. */
21741 #include <$ac_header>
21742 _ACEOF
21743 if { (ac_try="$ac_cpp conftest.$ac_ext"
21744 case "(($ac_try" in
21745 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21746 *) ac_try_echo=$ac_try;;
21747 esac
21748 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21749 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
21750 ac_status=$?
21751 grep -v '^ *+' conftest.er1 >conftest.err
21752 rm -f conftest.er1
21753 cat conftest.err >&5
21754 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21755 (exit $ac_status); } >/dev/null && {
21756 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
21757 test ! -s conftest.err
21758 }; then
21759 ac_header_preproc=yes
21760 else
21761 echo "$as_me: failed program was:" >&5
21762 sed 's/^/| /' conftest.$ac_ext >&5
21764 ac_header_preproc=no
21767 rm -f conftest.err conftest.$ac_ext
21768 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
21769 echo "${ECHO_T}$ac_header_preproc" >&6; }
21771 # So? What about this header?
21772 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
21773 yes:no: )
21774 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
21775 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
21776 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
21777 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
21778 ac_header_preproc=yes
21780 no:yes:* )
21781 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
21782 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
21783 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
21784 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
21785 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
21786 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
21787 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
21788 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
21789 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
21790 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
21791 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
21792 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
21795 esac
21796 { echo "$as_me:$LINENO: checking for $ac_header" >&5
21797 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
21798 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
21799 echo $ECHO_N "(cached) $ECHO_C" >&6
21800 else
21801 eval "$as_ac_Header=\$ac_header_preproc"
21803 ac_res=`eval echo '${'$as_ac_Header'}'`
21804 { echo "$as_me:$LINENO: result: $ac_res" >&5
21805 echo "${ECHO_T}$ac_res" >&6; }
21808 if test `eval echo '${'$as_ac_Header'}'` = yes; then
21809 cat >>confdefs.h <<_ACEOF
21810 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
21811 _ACEOF
21815 done
21819 done
21823 done
21826 for ac_header in krb.h
21828 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
21829 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
21830 { echo "$as_me:$LINENO: checking for $ac_header" >&5
21831 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
21832 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
21833 echo $ECHO_N "(cached) $ECHO_C" >&6
21835 ac_res=`eval echo '${'$as_ac_Header'}'`
21836 { echo "$as_me:$LINENO: result: $ac_res" >&5
21837 echo "${ECHO_T}$ac_res" >&6; }
21838 else
21839 # Is the header compilable?
21840 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
21841 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
21842 cat >conftest.$ac_ext <<_ACEOF
21843 /* confdefs.h. */
21844 _ACEOF
21845 cat confdefs.h >>conftest.$ac_ext
21846 cat >>conftest.$ac_ext <<_ACEOF
21847 /* end confdefs.h. */
21848 $ac_includes_default
21849 #include <$ac_header>
21850 _ACEOF
21851 rm -f conftest.$ac_objext
21852 if { (ac_try="$ac_compile"
21853 case "(($ac_try" in
21854 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21855 *) ac_try_echo=$ac_try;;
21856 esac
21857 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21858 (eval "$ac_compile") 2>conftest.er1
21859 ac_status=$?
21860 grep -v '^ *+' conftest.er1 >conftest.err
21861 rm -f conftest.er1
21862 cat conftest.err >&5
21863 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21864 (exit $ac_status); } && {
21865 test -z "$ac_c_werror_flag" ||
21866 test ! -s conftest.err
21867 } && test -s conftest.$ac_objext; then
21868 ac_header_compiler=yes
21869 else
21870 echo "$as_me: failed program was:" >&5
21871 sed 's/^/| /' conftest.$ac_ext >&5
21873 ac_header_compiler=no
21876 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21877 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
21878 echo "${ECHO_T}$ac_header_compiler" >&6; }
21880 # Is the header present?
21881 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
21882 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
21883 cat >conftest.$ac_ext <<_ACEOF
21884 /* confdefs.h. */
21885 _ACEOF
21886 cat confdefs.h >>conftest.$ac_ext
21887 cat >>conftest.$ac_ext <<_ACEOF
21888 /* end confdefs.h. */
21889 #include <$ac_header>
21890 _ACEOF
21891 if { (ac_try="$ac_cpp conftest.$ac_ext"
21892 case "(($ac_try" in
21893 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21894 *) ac_try_echo=$ac_try;;
21895 esac
21896 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21897 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
21898 ac_status=$?
21899 grep -v '^ *+' conftest.er1 >conftest.err
21900 rm -f conftest.er1
21901 cat conftest.err >&5
21902 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21903 (exit $ac_status); } >/dev/null && {
21904 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
21905 test ! -s conftest.err
21906 }; then
21907 ac_header_preproc=yes
21908 else
21909 echo "$as_me: failed program was:" >&5
21910 sed 's/^/| /' conftest.$ac_ext >&5
21912 ac_header_preproc=no
21915 rm -f conftest.err conftest.$ac_ext
21916 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
21917 echo "${ECHO_T}$ac_header_preproc" >&6; }
21919 # So? What about this header?
21920 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
21921 yes:no: )
21922 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
21923 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
21924 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
21925 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
21926 ac_header_preproc=yes
21928 no:yes:* )
21929 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
21930 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
21931 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
21932 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
21933 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
21934 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
21935 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
21936 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
21937 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
21938 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
21939 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
21940 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
21943 esac
21944 { echo "$as_me:$LINENO: checking for $ac_header" >&5
21945 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
21946 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
21947 echo $ECHO_N "(cached) $ECHO_C" >&6
21948 else
21949 eval "$as_ac_Header=\$ac_header_preproc"
21951 ac_res=`eval echo '${'$as_ac_Header'}'`
21952 { echo "$as_me:$LINENO: result: $ac_res" >&5
21953 echo "${ECHO_T}$ac_res" >&6; }
21956 if test `eval echo '${'$as_ac_Header'}'` = yes; then
21957 cat >>confdefs.h <<_ACEOF
21958 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
21959 _ACEOF
21961 else
21963 for ac_header in kerberosIV/krb.h
21965 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
21966 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
21967 { echo "$as_me:$LINENO: checking for $ac_header" >&5
21968 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
21969 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
21970 echo $ECHO_N "(cached) $ECHO_C" >&6
21972 ac_res=`eval echo '${'$as_ac_Header'}'`
21973 { echo "$as_me:$LINENO: result: $ac_res" >&5
21974 echo "${ECHO_T}$ac_res" >&6; }
21975 else
21976 # Is the header compilable?
21977 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
21978 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
21979 cat >conftest.$ac_ext <<_ACEOF
21980 /* confdefs.h. */
21981 _ACEOF
21982 cat confdefs.h >>conftest.$ac_ext
21983 cat >>conftest.$ac_ext <<_ACEOF
21984 /* end confdefs.h. */
21985 $ac_includes_default
21986 #include <$ac_header>
21987 _ACEOF
21988 rm -f conftest.$ac_objext
21989 if { (ac_try="$ac_compile"
21990 case "(($ac_try" in
21991 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21992 *) ac_try_echo=$ac_try;;
21993 esac
21994 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21995 (eval "$ac_compile") 2>conftest.er1
21996 ac_status=$?
21997 grep -v '^ *+' conftest.er1 >conftest.err
21998 rm -f conftest.er1
21999 cat conftest.err >&5
22000 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22001 (exit $ac_status); } && {
22002 test -z "$ac_c_werror_flag" ||
22003 test ! -s conftest.err
22004 } && test -s conftest.$ac_objext; then
22005 ac_header_compiler=yes
22006 else
22007 echo "$as_me: failed program was:" >&5
22008 sed 's/^/| /' conftest.$ac_ext >&5
22010 ac_header_compiler=no
22013 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22014 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
22015 echo "${ECHO_T}$ac_header_compiler" >&6; }
22017 # Is the header present?
22018 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
22019 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
22020 cat >conftest.$ac_ext <<_ACEOF
22021 /* confdefs.h. */
22022 _ACEOF
22023 cat confdefs.h >>conftest.$ac_ext
22024 cat >>conftest.$ac_ext <<_ACEOF
22025 /* end confdefs.h. */
22026 #include <$ac_header>
22027 _ACEOF
22028 if { (ac_try="$ac_cpp conftest.$ac_ext"
22029 case "(($ac_try" in
22030 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22031 *) ac_try_echo=$ac_try;;
22032 esac
22033 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22034 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
22035 ac_status=$?
22036 grep -v '^ *+' conftest.er1 >conftest.err
22037 rm -f conftest.er1
22038 cat conftest.err >&5
22039 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22040 (exit $ac_status); } >/dev/null && {
22041 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
22042 test ! -s conftest.err
22043 }; then
22044 ac_header_preproc=yes
22045 else
22046 echo "$as_me: failed program was:" >&5
22047 sed 's/^/| /' conftest.$ac_ext >&5
22049 ac_header_preproc=no
22052 rm -f conftest.err conftest.$ac_ext
22053 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
22054 echo "${ECHO_T}$ac_header_preproc" >&6; }
22056 # So? What about this header?
22057 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
22058 yes:no: )
22059 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
22060 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
22061 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
22062 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
22063 ac_header_preproc=yes
22065 no:yes:* )
22066 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
22067 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
22068 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
22069 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
22070 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
22071 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
22072 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
22073 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
22074 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
22075 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
22076 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
22077 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
22080 esac
22081 { echo "$as_me:$LINENO: checking for $ac_header" >&5
22082 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
22083 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
22084 echo $ECHO_N "(cached) $ECHO_C" >&6
22085 else
22086 eval "$as_ac_Header=\$ac_header_preproc"
22088 ac_res=`eval echo '${'$as_ac_Header'}'`
22089 { echo "$as_me:$LINENO: result: $ac_res" >&5
22090 echo "${ECHO_T}$ac_res" >&6; }
22093 if test `eval echo '${'$as_ac_Header'}'` = yes; then
22094 cat >>confdefs.h <<_ACEOF
22095 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
22096 _ACEOF
22098 else
22100 for ac_header in kerberos/krb.h
22102 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
22103 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
22104 { echo "$as_me:$LINENO: checking for $ac_header" >&5
22105 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
22106 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
22107 echo $ECHO_N "(cached) $ECHO_C" >&6
22109 ac_res=`eval echo '${'$as_ac_Header'}'`
22110 { echo "$as_me:$LINENO: result: $ac_res" >&5
22111 echo "${ECHO_T}$ac_res" >&6; }
22112 else
22113 # Is the header compilable?
22114 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
22115 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
22116 cat >conftest.$ac_ext <<_ACEOF
22117 /* confdefs.h. */
22118 _ACEOF
22119 cat confdefs.h >>conftest.$ac_ext
22120 cat >>conftest.$ac_ext <<_ACEOF
22121 /* end confdefs.h. */
22122 $ac_includes_default
22123 #include <$ac_header>
22124 _ACEOF
22125 rm -f conftest.$ac_objext
22126 if { (ac_try="$ac_compile"
22127 case "(($ac_try" in
22128 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22129 *) ac_try_echo=$ac_try;;
22130 esac
22131 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22132 (eval "$ac_compile") 2>conftest.er1
22133 ac_status=$?
22134 grep -v '^ *+' conftest.er1 >conftest.err
22135 rm -f conftest.er1
22136 cat conftest.err >&5
22137 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22138 (exit $ac_status); } && {
22139 test -z "$ac_c_werror_flag" ||
22140 test ! -s conftest.err
22141 } && test -s conftest.$ac_objext; then
22142 ac_header_compiler=yes
22143 else
22144 echo "$as_me: failed program was:" >&5
22145 sed 's/^/| /' conftest.$ac_ext >&5
22147 ac_header_compiler=no
22150 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22151 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
22152 echo "${ECHO_T}$ac_header_compiler" >&6; }
22154 # Is the header present?
22155 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
22156 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
22157 cat >conftest.$ac_ext <<_ACEOF
22158 /* confdefs.h. */
22159 _ACEOF
22160 cat confdefs.h >>conftest.$ac_ext
22161 cat >>conftest.$ac_ext <<_ACEOF
22162 /* end confdefs.h. */
22163 #include <$ac_header>
22164 _ACEOF
22165 if { (ac_try="$ac_cpp conftest.$ac_ext"
22166 case "(($ac_try" in
22167 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22168 *) ac_try_echo=$ac_try;;
22169 esac
22170 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22171 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
22172 ac_status=$?
22173 grep -v '^ *+' conftest.er1 >conftest.err
22174 rm -f conftest.er1
22175 cat conftest.err >&5
22176 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22177 (exit $ac_status); } >/dev/null && {
22178 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
22179 test ! -s conftest.err
22180 }; then
22181 ac_header_preproc=yes
22182 else
22183 echo "$as_me: failed program was:" >&5
22184 sed 's/^/| /' conftest.$ac_ext >&5
22186 ac_header_preproc=no
22189 rm -f conftest.err conftest.$ac_ext
22190 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
22191 echo "${ECHO_T}$ac_header_preproc" >&6; }
22193 # So? What about this header?
22194 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
22195 yes:no: )
22196 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
22197 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
22198 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
22199 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
22200 ac_header_preproc=yes
22202 no:yes:* )
22203 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
22204 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
22205 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
22206 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
22207 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
22208 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
22209 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
22210 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
22211 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
22212 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
22213 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
22214 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
22217 esac
22218 { echo "$as_me:$LINENO: checking for $ac_header" >&5
22219 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
22220 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
22221 echo $ECHO_N "(cached) $ECHO_C" >&6
22222 else
22223 eval "$as_ac_Header=\$ac_header_preproc"
22225 ac_res=`eval echo '${'$as_ac_Header'}'`
22226 { echo "$as_me:$LINENO: result: $ac_res" >&5
22227 echo "${ECHO_T}$ac_res" >&6; }
22230 if test `eval echo '${'$as_ac_Header'}'` = yes; then
22231 cat >>confdefs.h <<_ACEOF
22232 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
22233 _ACEOF
22237 done
22241 done
22245 done
22249 for ac_header in com_err.h
22251 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
22252 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
22253 { echo "$as_me:$LINENO: checking for $ac_header" >&5
22254 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
22255 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
22256 echo $ECHO_N "(cached) $ECHO_C" >&6
22258 ac_res=`eval echo '${'$as_ac_Header'}'`
22259 { echo "$as_me:$LINENO: result: $ac_res" >&5
22260 echo "${ECHO_T}$ac_res" >&6; }
22261 else
22262 # Is the header compilable?
22263 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
22264 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
22265 cat >conftest.$ac_ext <<_ACEOF
22266 /* confdefs.h. */
22267 _ACEOF
22268 cat confdefs.h >>conftest.$ac_ext
22269 cat >>conftest.$ac_ext <<_ACEOF
22270 /* end confdefs.h. */
22271 $ac_includes_default
22272 #include <$ac_header>
22273 _ACEOF
22274 rm -f conftest.$ac_objext
22275 if { (ac_try="$ac_compile"
22276 case "(($ac_try" in
22277 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22278 *) ac_try_echo=$ac_try;;
22279 esac
22280 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22281 (eval "$ac_compile") 2>conftest.er1
22282 ac_status=$?
22283 grep -v '^ *+' conftest.er1 >conftest.err
22284 rm -f conftest.er1
22285 cat conftest.err >&5
22286 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22287 (exit $ac_status); } && {
22288 test -z "$ac_c_werror_flag" ||
22289 test ! -s conftest.err
22290 } && test -s conftest.$ac_objext; then
22291 ac_header_compiler=yes
22292 else
22293 echo "$as_me: failed program was:" >&5
22294 sed 's/^/| /' conftest.$ac_ext >&5
22296 ac_header_compiler=no
22299 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22300 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
22301 echo "${ECHO_T}$ac_header_compiler" >&6; }
22303 # Is the header present?
22304 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
22305 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
22306 cat >conftest.$ac_ext <<_ACEOF
22307 /* confdefs.h. */
22308 _ACEOF
22309 cat confdefs.h >>conftest.$ac_ext
22310 cat >>conftest.$ac_ext <<_ACEOF
22311 /* end confdefs.h. */
22312 #include <$ac_header>
22313 _ACEOF
22314 if { (ac_try="$ac_cpp conftest.$ac_ext"
22315 case "(($ac_try" in
22316 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22317 *) ac_try_echo=$ac_try;;
22318 esac
22319 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22320 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
22321 ac_status=$?
22322 grep -v '^ *+' conftest.er1 >conftest.err
22323 rm -f conftest.er1
22324 cat conftest.err >&5
22325 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22326 (exit $ac_status); } >/dev/null && {
22327 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
22328 test ! -s conftest.err
22329 }; then
22330 ac_header_preproc=yes
22331 else
22332 echo "$as_me: failed program was:" >&5
22333 sed 's/^/| /' conftest.$ac_ext >&5
22335 ac_header_preproc=no
22338 rm -f conftest.err conftest.$ac_ext
22339 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
22340 echo "${ECHO_T}$ac_header_preproc" >&6; }
22342 # So? What about this header?
22343 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
22344 yes:no: )
22345 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
22346 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
22347 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
22348 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
22349 ac_header_preproc=yes
22351 no:yes:* )
22352 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
22353 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
22354 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
22355 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
22356 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
22357 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
22358 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
22359 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
22360 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
22361 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
22362 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
22363 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
22366 esac
22367 { echo "$as_me:$LINENO: checking for $ac_header" >&5
22368 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
22369 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
22370 echo $ECHO_N "(cached) $ECHO_C" >&6
22371 else
22372 eval "$as_ac_Header=\$ac_header_preproc"
22374 ac_res=`eval echo '${'$as_ac_Header'}'`
22375 { echo "$as_me:$LINENO: result: $ac_res" >&5
22376 echo "${ECHO_T}$ac_res" >&6; }
22379 if test `eval echo '${'$as_ac_Header'}'` = yes; then
22380 cat >>confdefs.h <<_ACEOF
22381 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
22382 _ACEOF
22386 done
22390 # Solaris requires -lintl if you want strerror (which calls dgettext)
22391 # to return localized messages.
22393 { echo "$as_me:$LINENO: checking for dgettext in -lintl" >&5
22394 echo $ECHO_N "checking for dgettext in -lintl... $ECHO_C" >&6; }
22395 if test "${ac_cv_lib_intl_dgettext+set}" = set; then
22396 echo $ECHO_N "(cached) $ECHO_C" >&6
22397 else
22398 ac_check_lib_save_LIBS=$LIBS
22399 LIBS="-lintl $LIBS"
22400 cat >conftest.$ac_ext <<_ACEOF
22401 /* confdefs.h. */
22402 _ACEOF
22403 cat confdefs.h >>conftest.$ac_ext
22404 cat >>conftest.$ac_ext <<_ACEOF
22405 /* end confdefs.h. */
22407 /* Override any GCC internal prototype to avoid an error.
22408 Use char because int might match the return type of a GCC
22409 builtin and then its argument prototype would still apply. */
22410 #ifdef __cplusplus
22411 extern "C"
22412 #endif
22413 char dgettext ();
22415 main ()
22417 return dgettext ();
22419 return 0;
22421 _ACEOF
22422 rm -f conftest.$ac_objext conftest$ac_exeext
22423 if { (ac_try="$ac_link"
22424 case "(($ac_try" in
22425 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22426 *) ac_try_echo=$ac_try;;
22427 esac
22428 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22429 (eval "$ac_link") 2>conftest.er1
22430 ac_status=$?
22431 grep -v '^ *+' conftest.er1 >conftest.err
22432 rm -f conftest.er1
22433 cat conftest.err >&5
22434 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22435 (exit $ac_status); } && {
22436 test -z "$ac_c_werror_flag" ||
22437 test ! -s conftest.err
22438 } && test -s conftest$ac_exeext &&
22439 $as_test_x conftest$ac_exeext; then
22440 ac_cv_lib_intl_dgettext=yes
22441 else
22442 echo "$as_me: failed program was:" >&5
22443 sed 's/^/| /' conftest.$ac_ext >&5
22445 ac_cv_lib_intl_dgettext=no
22448 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
22449 conftest$ac_exeext conftest.$ac_ext
22450 LIBS=$ac_check_lib_save_LIBS
22452 { echo "$as_me:$LINENO: result: $ac_cv_lib_intl_dgettext" >&5
22453 echo "${ECHO_T}$ac_cv_lib_intl_dgettext" >&6; }
22454 if test $ac_cv_lib_intl_dgettext = yes; then
22455 cat >>confdefs.h <<_ACEOF
22456 #define HAVE_LIBINTL 1
22457 _ACEOF
22459 LIBS="-lintl $LIBS"
22464 { echo "$as_me:$LINENO: checking whether localtime caches TZ" >&5
22465 echo $ECHO_N "checking whether localtime caches TZ... $ECHO_C" >&6; }
22466 if test "${emacs_cv_localtime_cache+set}" = set; then
22467 echo $ECHO_N "(cached) $ECHO_C" >&6
22468 else
22469 if test x$ac_cv_func_tzset = xyes; then
22470 if test "$cross_compiling" = yes; then
22471 # If we have tzset, assume the worst when cross-compiling.
22472 emacs_cv_localtime_cache=yes
22473 else
22474 cat >conftest.$ac_ext <<_ACEOF
22475 /* confdefs.h. */
22476 _ACEOF
22477 cat confdefs.h >>conftest.$ac_ext
22478 cat >>conftest.$ac_ext <<_ACEOF
22479 /* end confdefs.h. */
22480 #include <time.h>
22481 extern char **environ;
22482 unset_TZ ()
22484 char **from, **to;
22485 for (to = from = environ; (*to = *from); from++)
22486 if (! (to[0][0] == 'T' && to[0][1] == 'Z' && to[0][2] == '='))
22487 to++;
22489 char TZ_GMT0[] = "TZ=GMT0";
22490 char TZ_PST8[] = "TZ=PST8";
22491 main()
22493 time_t now = time ((time_t *) 0);
22494 int hour_GMT0, hour_unset;
22495 if (putenv (TZ_GMT0) != 0)
22496 exit (1);
22497 hour_GMT0 = localtime (&now)->tm_hour;
22498 unset_TZ ();
22499 hour_unset = localtime (&now)->tm_hour;
22500 if (putenv (TZ_PST8) != 0)
22501 exit (1);
22502 if (localtime (&now)->tm_hour == hour_GMT0)
22503 exit (1);
22504 unset_TZ ();
22505 if (localtime (&now)->tm_hour != hour_unset)
22506 exit (1);
22507 exit (0);
22509 _ACEOF
22510 rm -f conftest$ac_exeext
22511 if { (ac_try="$ac_link"
22512 case "(($ac_try" in
22513 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22514 *) ac_try_echo=$ac_try;;
22515 esac
22516 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22517 (eval "$ac_link") 2>&5
22518 ac_status=$?
22519 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22520 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
22521 { (case "(($ac_try" in
22522 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22523 *) ac_try_echo=$ac_try;;
22524 esac
22525 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22526 (eval "$ac_try") 2>&5
22527 ac_status=$?
22528 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22529 (exit $ac_status); }; }; then
22530 emacs_cv_localtime_cache=no
22531 else
22532 echo "$as_me: program exited with status $ac_status" >&5
22533 echo "$as_me: failed program was:" >&5
22534 sed 's/^/| /' conftest.$ac_ext >&5
22536 ( exit $ac_status )
22537 emacs_cv_localtime_cache=yes
22539 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
22543 else
22544 # If we lack tzset, report that localtime does not cache TZ,
22545 # since we can't invalidate the cache if we don't have tzset.
22546 emacs_cv_localtime_cache=no
22549 { echo "$as_me:$LINENO: result: $emacs_cv_localtime_cache" >&5
22550 echo "${ECHO_T}$emacs_cv_localtime_cache" >&6; }
22551 if test $emacs_cv_localtime_cache = yes; then
22553 cat >>confdefs.h <<\_ACEOF
22554 #define LOCALTIME_CACHE 1
22555 _ACEOF
22559 if test "x$HAVE_TIMEVAL" = xyes; then
22561 for ac_func in gettimeofday
22563 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
22564 { echo "$as_me:$LINENO: checking for $ac_func" >&5
22565 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
22566 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
22567 echo $ECHO_N "(cached) $ECHO_C" >&6
22568 else
22569 cat >conftest.$ac_ext <<_ACEOF
22570 /* confdefs.h. */
22571 _ACEOF
22572 cat confdefs.h >>conftest.$ac_ext
22573 cat >>conftest.$ac_ext <<_ACEOF
22574 /* end confdefs.h. */
22575 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
22576 For example, HP-UX 11i <limits.h> declares gettimeofday. */
22577 #define $ac_func innocuous_$ac_func
22579 /* System header to define __stub macros and hopefully few prototypes,
22580 which can conflict with char $ac_func (); below.
22581 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
22582 <limits.h> exists even on freestanding compilers. */
22584 #ifdef __STDC__
22585 # include <limits.h>
22586 #else
22587 # include <assert.h>
22588 #endif
22590 #undef $ac_func
22592 /* Override any GCC internal prototype to avoid an error.
22593 Use char because int might match the return type of a GCC
22594 builtin and then its argument prototype would still apply. */
22595 #ifdef __cplusplus
22596 extern "C"
22597 #endif
22598 char $ac_func ();
22599 /* The GNU C library defines this for functions which it implements
22600 to always fail with ENOSYS. Some functions are actually named
22601 something starting with __ and the normal name is an alias. */
22602 #if defined __stub_$ac_func || defined __stub___$ac_func
22603 choke me
22604 #endif
22607 main ()
22609 return $ac_func ();
22611 return 0;
22613 _ACEOF
22614 rm -f conftest.$ac_objext conftest$ac_exeext
22615 if { (ac_try="$ac_link"
22616 case "(($ac_try" in
22617 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22618 *) ac_try_echo=$ac_try;;
22619 esac
22620 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22621 (eval "$ac_link") 2>conftest.er1
22622 ac_status=$?
22623 grep -v '^ *+' conftest.er1 >conftest.err
22624 rm -f conftest.er1
22625 cat conftest.err >&5
22626 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22627 (exit $ac_status); } && {
22628 test -z "$ac_c_werror_flag" ||
22629 test ! -s conftest.err
22630 } && test -s conftest$ac_exeext &&
22631 $as_test_x conftest$ac_exeext; then
22632 eval "$as_ac_var=yes"
22633 else
22634 echo "$as_me: failed program was:" >&5
22635 sed 's/^/| /' conftest.$ac_ext >&5
22637 eval "$as_ac_var=no"
22640 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
22641 conftest$ac_exeext conftest.$ac_ext
22643 ac_res=`eval echo '${'$as_ac_var'}'`
22644 { echo "$as_me:$LINENO: result: $ac_res" >&5
22645 echo "${ECHO_T}$ac_res" >&6; }
22646 if test `eval echo '${'$as_ac_var'}'` = yes; then
22647 cat >>confdefs.h <<_ACEOF
22648 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
22649 _ACEOF
22652 done
22654 if test $ac_cv_func_gettimeofday = yes; then
22655 { echo "$as_me:$LINENO: checking whether gettimeofday can accept two arguments" >&5
22656 echo $ECHO_N "checking whether gettimeofday can accept two arguments... $ECHO_C" >&6; }
22657 if test "${emacs_cv_gettimeofday_two_arguments+set}" = set; then
22658 echo $ECHO_N "(cached) $ECHO_C" >&6
22659 else
22660 cat >conftest.$ac_ext <<_ACEOF
22661 /* confdefs.h. */
22662 _ACEOF
22663 cat confdefs.h >>conftest.$ac_ext
22664 cat >>conftest.$ac_ext <<_ACEOF
22665 /* end confdefs.h. */
22667 #ifdef TIME_WITH_SYS_TIME
22668 #include <sys/time.h>
22669 #include <time.h>
22670 #else
22671 #ifdef HAVE_SYS_TIME_H
22672 #include <sys/time.h>
22673 #else
22674 #include <time.h>
22675 #endif
22676 #endif
22678 main ()
22680 struct timeval time;
22681 gettimeofday (&time, 0);
22683 return 0;
22685 _ACEOF
22686 rm -f conftest.$ac_objext
22687 if { (ac_try="$ac_compile"
22688 case "(($ac_try" in
22689 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22690 *) ac_try_echo=$ac_try;;
22691 esac
22692 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22693 (eval "$ac_compile") 2>conftest.er1
22694 ac_status=$?
22695 grep -v '^ *+' conftest.er1 >conftest.err
22696 rm -f conftest.er1
22697 cat conftest.err >&5
22698 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22699 (exit $ac_status); } && {
22700 test -z "$ac_c_werror_flag" ||
22701 test ! -s conftest.err
22702 } && test -s conftest.$ac_objext; then
22703 emacs_cv_gettimeofday_two_arguments=yes
22704 else
22705 echo "$as_me: failed program was:" >&5
22706 sed 's/^/| /' conftest.$ac_ext >&5
22708 emacs_cv_gettimeofday_two_arguments=no
22711 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22713 { echo "$as_me:$LINENO: result: $emacs_cv_gettimeofday_two_arguments" >&5
22714 echo "${ECHO_T}$emacs_cv_gettimeofday_two_arguments" >&6; }
22715 if test $emacs_cv_gettimeofday_two_arguments = no; then
22717 cat >>confdefs.h <<\_ACEOF
22718 #define GETTIMEOFDAY_ONE_ARGUMENT 1
22719 _ACEOF
22725 ok_so_far=yes
22726 { echo "$as_me:$LINENO: checking for socket" >&5
22727 echo $ECHO_N "checking for socket... $ECHO_C" >&6; }
22728 if test "${ac_cv_func_socket+set}" = set; then
22729 echo $ECHO_N "(cached) $ECHO_C" >&6
22730 else
22731 cat >conftest.$ac_ext <<_ACEOF
22732 /* confdefs.h. */
22733 _ACEOF
22734 cat confdefs.h >>conftest.$ac_ext
22735 cat >>conftest.$ac_ext <<_ACEOF
22736 /* end confdefs.h. */
22737 /* Define socket to an innocuous variant, in case <limits.h> declares socket.
22738 For example, HP-UX 11i <limits.h> declares gettimeofday. */
22739 #define socket innocuous_socket
22741 /* System header to define __stub macros and hopefully few prototypes,
22742 which can conflict with char socket (); below.
22743 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
22744 <limits.h> exists even on freestanding compilers. */
22746 #ifdef __STDC__
22747 # include <limits.h>
22748 #else
22749 # include <assert.h>
22750 #endif
22752 #undef socket
22754 /* Override any GCC internal prototype to avoid an error.
22755 Use char because int might match the return type of a GCC
22756 builtin and then its argument prototype would still apply. */
22757 #ifdef __cplusplus
22758 extern "C"
22759 #endif
22760 char socket ();
22761 /* The GNU C library defines this for functions which it implements
22762 to always fail with ENOSYS. Some functions are actually named
22763 something starting with __ and the normal name is an alias. */
22764 #if defined __stub_socket || defined __stub___socket
22765 choke me
22766 #endif
22769 main ()
22771 return socket ();
22773 return 0;
22775 _ACEOF
22776 rm -f conftest.$ac_objext conftest$ac_exeext
22777 if { (ac_try="$ac_link"
22778 case "(($ac_try" in
22779 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22780 *) ac_try_echo=$ac_try;;
22781 esac
22782 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22783 (eval "$ac_link") 2>conftest.er1
22784 ac_status=$?
22785 grep -v '^ *+' conftest.er1 >conftest.err
22786 rm -f conftest.er1
22787 cat conftest.err >&5
22788 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22789 (exit $ac_status); } && {
22790 test -z "$ac_c_werror_flag" ||
22791 test ! -s conftest.err
22792 } && test -s conftest$ac_exeext &&
22793 $as_test_x conftest$ac_exeext; then
22794 ac_cv_func_socket=yes
22795 else
22796 echo "$as_me: failed program was:" >&5
22797 sed 's/^/| /' conftest.$ac_ext >&5
22799 ac_cv_func_socket=no
22802 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
22803 conftest$ac_exeext conftest.$ac_ext
22805 { echo "$as_me:$LINENO: result: $ac_cv_func_socket" >&5
22806 echo "${ECHO_T}$ac_cv_func_socket" >&6; }
22807 if test $ac_cv_func_socket = yes; then
22809 else
22810 ok_so_far=no
22813 if test $ok_so_far = yes; then
22814 if test "${ac_cv_header_netinet_in_h+set}" = set; then
22815 { echo "$as_me:$LINENO: checking for netinet/in.h" >&5
22816 echo $ECHO_N "checking for netinet/in.h... $ECHO_C" >&6; }
22817 if test "${ac_cv_header_netinet_in_h+set}" = set; then
22818 echo $ECHO_N "(cached) $ECHO_C" >&6
22820 { echo "$as_me:$LINENO: result: $ac_cv_header_netinet_in_h" >&5
22821 echo "${ECHO_T}$ac_cv_header_netinet_in_h" >&6; }
22822 else
22823 # Is the header compilable?
22824 { echo "$as_me:$LINENO: checking netinet/in.h usability" >&5
22825 echo $ECHO_N "checking netinet/in.h usability... $ECHO_C" >&6; }
22826 cat >conftest.$ac_ext <<_ACEOF
22827 /* confdefs.h. */
22828 _ACEOF
22829 cat confdefs.h >>conftest.$ac_ext
22830 cat >>conftest.$ac_ext <<_ACEOF
22831 /* end confdefs.h. */
22832 $ac_includes_default
22833 #include <netinet/in.h>
22834 _ACEOF
22835 rm -f conftest.$ac_objext
22836 if { (ac_try="$ac_compile"
22837 case "(($ac_try" in
22838 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22839 *) ac_try_echo=$ac_try;;
22840 esac
22841 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22842 (eval "$ac_compile") 2>conftest.er1
22843 ac_status=$?
22844 grep -v '^ *+' conftest.er1 >conftest.err
22845 rm -f conftest.er1
22846 cat conftest.err >&5
22847 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22848 (exit $ac_status); } && {
22849 test -z "$ac_c_werror_flag" ||
22850 test ! -s conftest.err
22851 } && test -s conftest.$ac_objext; then
22852 ac_header_compiler=yes
22853 else
22854 echo "$as_me: failed program was:" >&5
22855 sed 's/^/| /' conftest.$ac_ext >&5
22857 ac_header_compiler=no
22860 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22861 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
22862 echo "${ECHO_T}$ac_header_compiler" >&6; }
22864 # Is the header present?
22865 { echo "$as_me:$LINENO: checking netinet/in.h presence" >&5
22866 echo $ECHO_N "checking netinet/in.h presence... $ECHO_C" >&6; }
22867 cat >conftest.$ac_ext <<_ACEOF
22868 /* confdefs.h. */
22869 _ACEOF
22870 cat confdefs.h >>conftest.$ac_ext
22871 cat >>conftest.$ac_ext <<_ACEOF
22872 /* end confdefs.h. */
22873 #include <netinet/in.h>
22874 _ACEOF
22875 if { (ac_try="$ac_cpp conftest.$ac_ext"
22876 case "(($ac_try" in
22877 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22878 *) ac_try_echo=$ac_try;;
22879 esac
22880 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22881 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
22882 ac_status=$?
22883 grep -v '^ *+' conftest.er1 >conftest.err
22884 rm -f conftest.er1
22885 cat conftest.err >&5
22886 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22887 (exit $ac_status); } >/dev/null && {
22888 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
22889 test ! -s conftest.err
22890 }; then
22891 ac_header_preproc=yes
22892 else
22893 echo "$as_me: failed program was:" >&5
22894 sed 's/^/| /' conftest.$ac_ext >&5
22896 ac_header_preproc=no
22899 rm -f conftest.err conftest.$ac_ext
22900 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
22901 echo "${ECHO_T}$ac_header_preproc" >&6; }
22903 # So? What about this header?
22904 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
22905 yes:no: )
22906 { echo "$as_me:$LINENO: WARNING: netinet/in.h: accepted by the compiler, rejected by the preprocessor!" >&5
22907 echo "$as_me: WARNING: netinet/in.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
22908 { echo "$as_me:$LINENO: WARNING: netinet/in.h: proceeding with the compiler's result" >&5
22909 echo "$as_me: WARNING: netinet/in.h: proceeding with the compiler's result" >&2;}
22910 ac_header_preproc=yes
22912 no:yes:* )
22913 { echo "$as_me:$LINENO: WARNING: netinet/in.h: present but cannot be compiled" >&5
22914 echo "$as_me: WARNING: netinet/in.h: present but cannot be compiled" >&2;}
22915 { echo "$as_me:$LINENO: WARNING: netinet/in.h: check for missing prerequisite headers?" >&5
22916 echo "$as_me: WARNING: netinet/in.h: check for missing prerequisite headers?" >&2;}
22917 { echo "$as_me:$LINENO: WARNING: netinet/in.h: see the Autoconf documentation" >&5
22918 echo "$as_me: WARNING: netinet/in.h: see the Autoconf documentation" >&2;}
22919 { echo "$as_me:$LINENO: WARNING: netinet/in.h: section \"Present But Cannot Be Compiled\"" >&5
22920 echo "$as_me: WARNING: netinet/in.h: section \"Present But Cannot Be Compiled\"" >&2;}
22921 { echo "$as_me:$LINENO: WARNING: netinet/in.h: proceeding with the preprocessor's result" >&5
22922 echo "$as_me: WARNING: netinet/in.h: proceeding with the preprocessor's result" >&2;}
22923 { echo "$as_me:$LINENO: WARNING: netinet/in.h: in the future, the compiler will take precedence" >&5
22924 echo "$as_me: WARNING: netinet/in.h: in the future, the compiler will take precedence" >&2;}
22927 esac
22928 { echo "$as_me:$LINENO: checking for netinet/in.h" >&5
22929 echo $ECHO_N "checking for netinet/in.h... $ECHO_C" >&6; }
22930 if test "${ac_cv_header_netinet_in_h+set}" = set; then
22931 echo $ECHO_N "(cached) $ECHO_C" >&6
22932 else
22933 ac_cv_header_netinet_in_h=$ac_header_preproc
22935 { echo "$as_me:$LINENO: result: $ac_cv_header_netinet_in_h" >&5
22936 echo "${ECHO_T}$ac_cv_header_netinet_in_h" >&6; }
22939 if test $ac_cv_header_netinet_in_h = yes; then
22941 else
22942 ok_so_far=no
22947 if test $ok_so_far = yes; then
22948 if test "${ac_cv_header_arpa_inet_h+set}" = set; then
22949 { echo "$as_me:$LINENO: checking for arpa/inet.h" >&5
22950 echo $ECHO_N "checking for arpa/inet.h... $ECHO_C" >&6; }
22951 if test "${ac_cv_header_arpa_inet_h+set}" = set; then
22952 echo $ECHO_N "(cached) $ECHO_C" >&6
22954 { echo "$as_me:$LINENO: result: $ac_cv_header_arpa_inet_h" >&5
22955 echo "${ECHO_T}$ac_cv_header_arpa_inet_h" >&6; }
22956 else
22957 # Is the header compilable?
22958 { echo "$as_me:$LINENO: checking arpa/inet.h usability" >&5
22959 echo $ECHO_N "checking arpa/inet.h usability... $ECHO_C" >&6; }
22960 cat >conftest.$ac_ext <<_ACEOF
22961 /* confdefs.h. */
22962 _ACEOF
22963 cat confdefs.h >>conftest.$ac_ext
22964 cat >>conftest.$ac_ext <<_ACEOF
22965 /* end confdefs.h. */
22966 $ac_includes_default
22967 #include <arpa/inet.h>
22968 _ACEOF
22969 rm -f conftest.$ac_objext
22970 if { (ac_try="$ac_compile"
22971 case "(($ac_try" in
22972 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22973 *) ac_try_echo=$ac_try;;
22974 esac
22975 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22976 (eval "$ac_compile") 2>conftest.er1
22977 ac_status=$?
22978 grep -v '^ *+' conftest.er1 >conftest.err
22979 rm -f conftest.er1
22980 cat conftest.err >&5
22981 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22982 (exit $ac_status); } && {
22983 test -z "$ac_c_werror_flag" ||
22984 test ! -s conftest.err
22985 } && test -s conftest.$ac_objext; then
22986 ac_header_compiler=yes
22987 else
22988 echo "$as_me: failed program was:" >&5
22989 sed 's/^/| /' conftest.$ac_ext >&5
22991 ac_header_compiler=no
22994 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22995 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
22996 echo "${ECHO_T}$ac_header_compiler" >&6; }
22998 # Is the header present?
22999 { echo "$as_me:$LINENO: checking arpa/inet.h presence" >&5
23000 echo $ECHO_N "checking arpa/inet.h presence... $ECHO_C" >&6; }
23001 cat >conftest.$ac_ext <<_ACEOF
23002 /* confdefs.h. */
23003 _ACEOF
23004 cat confdefs.h >>conftest.$ac_ext
23005 cat >>conftest.$ac_ext <<_ACEOF
23006 /* end confdefs.h. */
23007 #include <arpa/inet.h>
23008 _ACEOF
23009 if { (ac_try="$ac_cpp conftest.$ac_ext"
23010 case "(($ac_try" in
23011 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23012 *) ac_try_echo=$ac_try;;
23013 esac
23014 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23015 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
23016 ac_status=$?
23017 grep -v '^ *+' conftest.er1 >conftest.err
23018 rm -f conftest.er1
23019 cat conftest.err >&5
23020 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23021 (exit $ac_status); } >/dev/null && {
23022 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
23023 test ! -s conftest.err
23024 }; then
23025 ac_header_preproc=yes
23026 else
23027 echo "$as_me: failed program was:" >&5
23028 sed 's/^/| /' conftest.$ac_ext >&5
23030 ac_header_preproc=no
23033 rm -f conftest.err conftest.$ac_ext
23034 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
23035 echo "${ECHO_T}$ac_header_preproc" >&6; }
23037 # So? What about this header?
23038 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
23039 yes:no: )
23040 { echo "$as_me:$LINENO: WARNING: arpa/inet.h: accepted by the compiler, rejected by the preprocessor!" >&5
23041 echo "$as_me: WARNING: arpa/inet.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
23042 { echo "$as_me:$LINENO: WARNING: arpa/inet.h: proceeding with the compiler's result" >&5
23043 echo "$as_me: WARNING: arpa/inet.h: proceeding with the compiler's result" >&2;}
23044 ac_header_preproc=yes
23046 no:yes:* )
23047 { echo "$as_me:$LINENO: WARNING: arpa/inet.h: present but cannot be compiled" >&5
23048 echo "$as_me: WARNING: arpa/inet.h: present but cannot be compiled" >&2;}
23049 { echo "$as_me:$LINENO: WARNING: arpa/inet.h: check for missing prerequisite headers?" >&5
23050 echo "$as_me: WARNING: arpa/inet.h: check for missing prerequisite headers?" >&2;}
23051 { echo "$as_me:$LINENO: WARNING: arpa/inet.h: see the Autoconf documentation" >&5
23052 echo "$as_me: WARNING: arpa/inet.h: see the Autoconf documentation" >&2;}
23053 { echo "$as_me:$LINENO: WARNING: arpa/inet.h: section \"Present But Cannot Be Compiled\"" >&5
23054 echo "$as_me: WARNING: arpa/inet.h: section \"Present But Cannot Be Compiled\"" >&2;}
23055 { echo "$as_me:$LINENO: WARNING: arpa/inet.h: proceeding with the preprocessor's result" >&5
23056 echo "$as_me: WARNING: arpa/inet.h: proceeding with the preprocessor's result" >&2;}
23057 { echo "$as_me:$LINENO: WARNING: arpa/inet.h: in the future, the compiler will take precedence" >&5
23058 echo "$as_me: WARNING: arpa/inet.h: in the future, the compiler will take precedence" >&2;}
23061 esac
23062 { echo "$as_me:$LINENO: checking for arpa/inet.h" >&5
23063 echo $ECHO_N "checking for arpa/inet.h... $ECHO_C" >&6; }
23064 if test "${ac_cv_header_arpa_inet_h+set}" = set; then
23065 echo $ECHO_N "(cached) $ECHO_C" >&6
23066 else
23067 ac_cv_header_arpa_inet_h=$ac_header_preproc
23069 { echo "$as_me:$LINENO: result: $ac_cv_header_arpa_inet_h" >&5
23070 echo "${ECHO_T}$ac_cv_header_arpa_inet_h" >&6; }
23073 if test $ac_cv_header_arpa_inet_h = yes; then
23075 else
23076 ok_so_far=no
23081 if test $ok_so_far = yes; then
23083 cat >>confdefs.h <<\_ACEOF
23084 #define HAVE_INET_SOCKETS 1
23085 _ACEOF
23090 for ac_header in sys/ioctl.h
23092 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
23093 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
23094 { echo "$as_me:$LINENO: checking for $ac_header" >&5
23095 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
23096 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
23097 echo $ECHO_N "(cached) $ECHO_C" >&6
23099 ac_res=`eval echo '${'$as_ac_Header'}'`
23100 { echo "$as_me:$LINENO: result: $ac_res" >&5
23101 echo "${ECHO_T}$ac_res" >&6; }
23102 else
23103 # Is the header compilable?
23104 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
23105 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
23106 cat >conftest.$ac_ext <<_ACEOF
23107 /* confdefs.h. */
23108 _ACEOF
23109 cat confdefs.h >>conftest.$ac_ext
23110 cat >>conftest.$ac_ext <<_ACEOF
23111 /* end confdefs.h. */
23112 $ac_includes_default
23113 #include <$ac_header>
23114 _ACEOF
23115 rm -f conftest.$ac_objext
23116 if { (ac_try="$ac_compile"
23117 case "(($ac_try" in
23118 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23119 *) ac_try_echo=$ac_try;;
23120 esac
23121 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23122 (eval "$ac_compile") 2>conftest.er1
23123 ac_status=$?
23124 grep -v '^ *+' conftest.er1 >conftest.err
23125 rm -f conftest.er1
23126 cat conftest.err >&5
23127 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23128 (exit $ac_status); } && {
23129 test -z "$ac_c_werror_flag" ||
23130 test ! -s conftest.err
23131 } && test -s conftest.$ac_objext; then
23132 ac_header_compiler=yes
23133 else
23134 echo "$as_me: failed program was:" >&5
23135 sed 's/^/| /' conftest.$ac_ext >&5
23137 ac_header_compiler=no
23140 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23141 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
23142 echo "${ECHO_T}$ac_header_compiler" >&6; }
23144 # Is the header present?
23145 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
23146 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
23147 cat >conftest.$ac_ext <<_ACEOF
23148 /* confdefs.h. */
23149 _ACEOF
23150 cat confdefs.h >>conftest.$ac_ext
23151 cat >>conftest.$ac_ext <<_ACEOF
23152 /* end confdefs.h. */
23153 #include <$ac_header>
23154 _ACEOF
23155 if { (ac_try="$ac_cpp conftest.$ac_ext"
23156 case "(($ac_try" in
23157 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23158 *) ac_try_echo=$ac_try;;
23159 esac
23160 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23161 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
23162 ac_status=$?
23163 grep -v '^ *+' conftest.er1 >conftest.err
23164 rm -f conftest.er1
23165 cat conftest.err >&5
23166 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23167 (exit $ac_status); } >/dev/null && {
23168 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
23169 test ! -s conftest.err
23170 }; then
23171 ac_header_preproc=yes
23172 else
23173 echo "$as_me: failed program was:" >&5
23174 sed 's/^/| /' conftest.$ac_ext >&5
23176 ac_header_preproc=no
23179 rm -f conftest.err conftest.$ac_ext
23180 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
23181 echo "${ECHO_T}$ac_header_preproc" >&6; }
23183 # So? What about this header?
23184 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
23185 yes:no: )
23186 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
23187 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
23188 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
23189 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
23190 ac_header_preproc=yes
23192 no:yes:* )
23193 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
23194 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
23195 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
23196 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
23197 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
23198 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
23199 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
23200 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
23201 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
23202 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
23203 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
23204 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
23207 esac
23208 { echo "$as_me:$LINENO: checking for $ac_header" >&5
23209 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
23210 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
23211 echo $ECHO_N "(cached) $ECHO_C" >&6
23212 else
23213 eval "$as_ac_Header=\$ac_header_preproc"
23215 ac_res=`eval echo '${'$as_ac_Header'}'`
23216 { echo "$as_me:$LINENO: result: $ac_res" >&5
23217 echo "${ECHO_T}$ac_res" >&6; }
23220 if test `eval echo '${'$as_ac_Header'}'` = yes; then
23221 cat >>confdefs.h <<_ACEOF
23222 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
23223 _ACEOF
23227 done
23230 if test -f /usr/lpp/X11/bin/smt.exp; then
23232 cat >>confdefs.h <<\_ACEOF
23233 #define HAVE_AIX_SMT_EXP 1
23234 _ACEOF
23238 { echo "$as_me:$LINENO: checking whether system supports dynamic ptys" >&5
23239 echo $ECHO_N "checking whether system supports dynamic ptys... $ECHO_C" >&6; }
23240 if test -d /dev/pts && ls -d /dev/ptmx > /dev/null 2>&1 ; then
23241 { echo "$as_me:$LINENO: result: yes" >&5
23242 echo "${ECHO_T}yes" >&6; }
23244 cat >>confdefs.h <<\_ACEOF
23245 #define HAVE_DEV_PTMX 1
23246 _ACEOF
23248 else
23249 { echo "$as_me:$LINENO: result: no" >&5
23250 echo "${ECHO_T}no" >&6; }
23253 { echo "$as_me:$LINENO: checking for pid_t" >&5
23254 echo $ECHO_N "checking for pid_t... $ECHO_C" >&6; }
23255 if test "${ac_cv_type_pid_t+set}" = set; then
23256 echo $ECHO_N "(cached) $ECHO_C" >&6
23257 else
23258 cat >conftest.$ac_ext <<_ACEOF
23259 /* confdefs.h. */
23260 _ACEOF
23261 cat confdefs.h >>conftest.$ac_ext
23262 cat >>conftest.$ac_ext <<_ACEOF
23263 /* end confdefs.h. */
23264 $ac_includes_default
23265 typedef pid_t ac__type_new_;
23267 main ()
23269 if ((ac__type_new_ *) 0)
23270 return 0;
23271 if (sizeof (ac__type_new_))
23272 return 0;
23274 return 0;
23276 _ACEOF
23277 rm -f conftest.$ac_objext
23278 if { (ac_try="$ac_compile"
23279 case "(($ac_try" in
23280 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23281 *) ac_try_echo=$ac_try;;
23282 esac
23283 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23284 (eval "$ac_compile") 2>conftest.er1
23285 ac_status=$?
23286 grep -v '^ *+' conftest.er1 >conftest.err
23287 rm -f conftest.er1
23288 cat conftest.err >&5
23289 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23290 (exit $ac_status); } && {
23291 test -z "$ac_c_werror_flag" ||
23292 test ! -s conftest.err
23293 } && test -s conftest.$ac_objext; then
23294 ac_cv_type_pid_t=yes
23295 else
23296 echo "$as_me: failed program was:" >&5
23297 sed 's/^/| /' conftest.$ac_ext >&5
23299 ac_cv_type_pid_t=no
23302 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23304 { echo "$as_me:$LINENO: result: $ac_cv_type_pid_t" >&5
23305 echo "${ECHO_T}$ac_cv_type_pid_t" >&6; }
23306 if test $ac_cv_type_pid_t = yes; then
23308 else
23310 cat >>confdefs.h <<_ACEOF
23311 #define pid_t int
23312 _ACEOF
23317 for ac_header in vfork.h
23319 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
23320 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
23321 { echo "$as_me:$LINENO: checking for $ac_header" >&5
23322 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
23323 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
23324 echo $ECHO_N "(cached) $ECHO_C" >&6
23326 ac_res=`eval echo '${'$as_ac_Header'}'`
23327 { echo "$as_me:$LINENO: result: $ac_res" >&5
23328 echo "${ECHO_T}$ac_res" >&6; }
23329 else
23330 # Is the header compilable?
23331 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
23332 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
23333 cat >conftest.$ac_ext <<_ACEOF
23334 /* confdefs.h. */
23335 _ACEOF
23336 cat confdefs.h >>conftest.$ac_ext
23337 cat >>conftest.$ac_ext <<_ACEOF
23338 /* end confdefs.h. */
23339 $ac_includes_default
23340 #include <$ac_header>
23341 _ACEOF
23342 rm -f conftest.$ac_objext
23343 if { (ac_try="$ac_compile"
23344 case "(($ac_try" in
23345 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23346 *) ac_try_echo=$ac_try;;
23347 esac
23348 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23349 (eval "$ac_compile") 2>conftest.er1
23350 ac_status=$?
23351 grep -v '^ *+' conftest.er1 >conftest.err
23352 rm -f conftest.er1
23353 cat conftest.err >&5
23354 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23355 (exit $ac_status); } && {
23356 test -z "$ac_c_werror_flag" ||
23357 test ! -s conftest.err
23358 } && test -s conftest.$ac_objext; then
23359 ac_header_compiler=yes
23360 else
23361 echo "$as_me: failed program was:" >&5
23362 sed 's/^/| /' conftest.$ac_ext >&5
23364 ac_header_compiler=no
23367 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23368 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
23369 echo "${ECHO_T}$ac_header_compiler" >&6; }
23371 # Is the header present?
23372 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
23373 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
23374 cat >conftest.$ac_ext <<_ACEOF
23375 /* confdefs.h. */
23376 _ACEOF
23377 cat confdefs.h >>conftest.$ac_ext
23378 cat >>conftest.$ac_ext <<_ACEOF
23379 /* end confdefs.h. */
23380 #include <$ac_header>
23381 _ACEOF
23382 if { (ac_try="$ac_cpp conftest.$ac_ext"
23383 case "(($ac_try" in
23384 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23385 *) ac_try_echo=$ac_try;;
23386 esac
23387 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23388 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
23389 ac_status=$?
23390 grep -v '^ *+' conftest.er1 >conftest.err
23391 rm -f conftest.er1
23392 cat conftest.err >&5
23393 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23394 (exit $ac_status); } >/dev/null && {
23395 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
23396 test ! -s conftest.err
23397 }; then
23398 ac_header_preproc=yes
23399 else
23400 echo "$as_me: failed program was:" >&5
23401 sed 's/^/| /' conftest.$ac_ext >&5
23403 ac_header_preproc=no
23406 rm -f conftest.err conftest.$ac_ext
23407 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
23408 echo "${ECHO_T}$ac_header_preproc" >&6; }
23410 # So? What about this header?
23411 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
23412 yes:no: )
23413 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
23414 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
23415 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
23416 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
23417 ac_header_preproc=yes
23419 no:yes:* )
23420 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
23421 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
23422 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
23423 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
23424 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
23425 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
23426 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
23427 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
23428 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
23429 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
23430 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
23431 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
23434 esac
23435 { echo "$as_me:$LINENO: checking for $ac_header" >&5
23436 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
23437 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
23438 echo $ECHO_N "(cached) $ECHO_C" >&6
23439 else
23440 eval "$as_ac_Header=\$ac_header_preproc"
23442 ac_res=`eval echo '${'$as_ac_Header'}'`
23443 { echo "$as_me:$LINENO: result: $ac_res" >&5
23444 echo "${ECHO_T}$ac_res" >&6; }
23447 if test `eval echo '${'$as_ac_Header'}'` = yes; then
23448 cat >>confdefs.h <<_ACEOF
23449 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
23450 _ACEOF
23454 done
23458 for ac_func in fork vfork
23460 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
23461 { echo "$as_me:$LINENO: checking for $ac_func" >&5
23462 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
23463 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
23464 echo $ECHO_N "(cached) $ECHO_C" >&6
23465 else
23466 cat >conftest.$ac_ext <<_ACEOF
23467 /* confdefs.h. */
23468 _ACEOF
23469 cat confdefs.h >>conftest.$ac_ext
23470 cat >>conftest.$ac_ext <<_ACEOF
23471 /* end confdefs.h. */
23472 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
23473 For example, HP-UX 11i <limits.h> declares gettimeofday. */
23474 #define $ac_func innocuous_$ac_func
23476 /* System header to define __stub macros and hopefully few prototypes,
23477 which can conflict with char $ac_func (); below.
23478 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
23479 <limits.h> exists even on freestanding compilers. */
23481 #ifdef __STDC__
23482 # include <limits.h>
23483 #else
23484 # include <assert.h>
23485 #endif
23487 #undef $ac_func
23489 /* Override any GCC internal prototype to avoid an error.
23490 Use char because int might match the return type of a GCC
23491 builtin and then its argument prototype would still apply. */
23492 #ifdef __cplusplus
23493 extern "C"
23494 #endif
23495 char $ac_func ();
23496 /* The GNU C library defines this for functions which it implements
23497 to always fail with ENOSYS. Some functions are actually named
23498 something starting with __ and the normal name is an alias. */
23499 #if defined __stub_$ac_func || defined __stub___$ac_func
23500 choke me
23501 #endif
23504 main ()
23506 return $ac_func ();
23508 return 0;
23510 _ACEOF
23511 rm -f conftest.$ac_objext conftest$ac_exeext
23512 if { (ac_try="$ac_link"
23513 case "(($ac_try" in
23514 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23515 *) ac_try_echo=$ac_try;;
23516 esac
23517 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23518 (eval "$ac_link") 2>conftest.er1
23519 ac_status=$?
23520 grep -v '^ *+' conftest.er1 >conftest.err
23521 rm -f conftest.er1
23522 cat conftest.err >&5
23523 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23524 (exit $ac_status); } && {
23525 test -z "$ac_c_werror_flag" ||
23526 test ! -s conftest.err
23527 } && test -s conftest$ac_exeext &&
23528 $as_test_x conftest$ac_exeext; then
23529 eval "$as_ac_var=yes"
23530 else
23531 echo "$as_me: failed program was:" >&5
23532 sed 's/^/| /' conftest.$ac_ext >&5
23534 eval "$as_ac_var=no"
23537 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
23538 conftest$ac_exeext conftest.$ac_ext
23540 ac_res=`eval echo '${'$as_ac_var'}'`
23541 { echo "$as_me:$LINENO: result: $ac_res" >&5
23542 echo "${ECHO_T}$ac_res" >&6; }
23543 if test `eval echo '${'$as_ac_var'}'` = yes; then
23544 cat >>confdefs.h <<_ACEOF
23545 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
23546 _ACEOF
23549 done
23551 if test "x$ac_cv_func_fork" = xyes; then
23552 { echo "$as_me:$LINENO: checking for working fork" >&5
23553 echo $ECHO_N "checking for working fork... $ECHO_C" >&6; }
23554 if test "${ac_cv_func_fork_works+set}" = set; then
23555 echo $ECHO_N "(cached) $ECHO_C" >&6
23556 else
23557 if test "$cross_compiling" = yes; then
23558 ac_cv_func_fork_works=cross
23559 else
23560 cat >conftest.$ac_ext <<_ACEOF
23561 /* confdefs.h. */
23562 _ACEOF
23563 cat confdefs.h >>conftest.$ac_ext
23564 cat >>conftest.$ac_ext <<_ACEOF
23565 /* end confdefs.h. */
23566 $ac_includes_default
23568 main ()
23571 /* By Ruediger Kuhlmann. */
23572 return fork () < 0;
23575 return 0;
23577 _ACEOF
23578 rm -f conftest$ac_exeext
23579 if { (ac_try="$ac_link"
23580 case "(($ac_try" in
23581 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23582 *) ac_try_echo=$ac_try;;
23583 esac
23584 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23585 (eval "$ac_link") 2>&5
23586 ac_status=$?
23587 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23588 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
23589 { (case "(($ac_try" in
23590 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23591 *) ac_try_echo=$ac_try;;
23592 esac
23593 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23594 (eval "$ac_try") 2>&5
23595 ac_status=$?
23596 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23597 (exit $ac_status); }; }; then
23598 ac_cv_func_fork_works=yes
23599 else
23600 echo "$as_me: program exited with status $ac_status" >&5
23601 echo "$as_me: failed program was:" >&5
23602 sed 's/^/| /' conftest.$ac_ext >&5
23604 ( exit $ac_status )
23605 ac_cv_func_fork_works=no
23607 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
23612 { echo "$as_me:$LINENO: result: $ac_cv_func_fork_works" >&5
23613 echo "${ECHO_T}$ac_cv_func_fork_works" >&6; }
23615 else
23616 ac_cv_func_fork_works=$ac_cv_func_fork
23618 if test "x$ac_cv_func_fork_works" = xcross; then
23619 case $host in
23620 *-*-amigaos* | *-*-msdosdjgpp*)
23621 # Override, as these systems have only a dummy fork() stub
23622 ac_cv_func_fork_works=no
23625 ac_cv_func_fork_works=yes
23627 esac
23628 { echo "$as_me:$LINENO: WARNING: result $ac_cv_func_fork_works guessed because of cross compilation" >&5
23629 echo "$as_me: WARNING: result $ac_cv_func_fork_works guessed because of cross compilation" >&2;}
23631 ac_cv_func_vfork_works=$ac_cv_func_vfork
23632 if test "x$ac_cv_func_vfork" = xyes; then
23633 { echo "$as_me:$LINENO: checking for working vfork" >&5
23634 echo $ECHO_N "checking for working vfork... $ECHO_C" >&6; }
23635 if test "${ac_cv_func_vfork_works+set}" = set; then
23636 echo $ECHO_N "(cached) $ECHO_C" >&6
23637 else
23638 if test "$cross_compiling" = yes; then
23639 ac_cv_func_vfork_works=cross
23640 else
23641 cat >conftest.$ac_ext <<_ACEOF
23642 /* confdefs.h. */
23643 _ACEOF
23644 cat confdefs.h >>conftest.$ac_ext
23645 cat >>conftest.$ac_ext <<_ACEOF
23646 /* end confdefs.h. */
23647 /* Thanks to Paul Eggert for this test. */
23648 $ac_includes_default
23649 #include <sys/wait.h>
23650 #ifdef HAVE_VFORK_H
23651 # include <vfork.h>
23652 #endif
23653 /* On some sparc systems, changes by the child to local and incoming
23654 argument registers are propagated back to the parent. The compiler
23655 is told about this with #include <vfork.h>, but some compilers
23656 (e.g. gcc -O) don't grok <vfork.h>. Test for this by using a
23657 static variable whose address is put into a register that is
23658 clobbered by the vfork. */
23659 static void
23660 #ifdef __cplusplus
23661 sparc_address_test (int arg)
23662 # else
23663 sparc_address_test (arg) int arg;
23664 #endif
23666 static pid_t child;
23667 if (!child) {
23668 child = vfork ();
23669 if (child < 0) {
23670 perror ("vfork");
23671 _exit(2);
23673 if (!child) {
23674 arg = getpid();
23675 write(-1, "", 0);
23676 _exit (arg);
23682 main ()
23684 pid_t parent = getpid ();
23685 pid_t child;
23687 sparc_address_test (0);
23689 child = vfork ();
23691 if (child == 0) {
23692 /* Here is another test for sparc vfork register problems. This
23693 test uses lots of local variables, at least as many local
23694 variables as main has allocated so far including compiler
23695 temporaries. 4 locals are enough for gcc 1.40.3 on a Solaris
23696 4.1.3 sparc, but we use 8 to be safe. A buggy compiler should
23697 reuse the register of parent for one of the local variables,
23698 since it will think that parent can't possibly be used any more
23699 in this routine. Assigning to the local variable will thus
23700 munge parent in the parent process. */
23701 pid_t
23702 p = getpid(), p1 = getpid(), p2 = getpid(), p3 = getpid(),
23703 p4 = getpid(), p5 = getpid(), p6 = getpid(), p7 = getpid();
23704 /* Convince the compiler that p..p7 are live; otherwise, it might
23705 use the same hardware register for all 8 local variables. */
23706 if (p != p1 || p != p2 || p != p3 || p != p4
23707 || p != p5 || p != p6 || p != p7)
23708 _exit(1);
23710 /* On some systems (e.g. IRIX 3.3), vfork doesn't separate parent
23711 from child file descriptors. If the child closes a descriptor
23712 before it execs or exits, this munges the parent's descriptor
23713 as well. Test for this by closing stdout in the child. */
23714 _exit(close(fileno(stdout)) != 0);
23715 } else {
23716 int status;
23717 struct stat st;
23719 while (wait(&status) != child)
23721 return (
23722 /* Was there some problem with vforking? */
23723 child < 0
23725 /* Did the child fail? (This shouldn't happen.) */
23726 || status
23728 /* Did the vfork/compiler bug occur? */
23729 || parent != getpid()
23731 /* Did the file descriptor bug occur? */
23732 || fstat(fileno(stdout), &st) != 0
23736 _ACEOF
23737 rm -f conftest$ac_exeext
23738 if { (ac_try="$ac_link"
23739 case "(($ac_try" in
23740 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23741 *) ac_try_echo=$ac_try;;
23742 esac
23743 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23744 (eval "$ac_link") 2>&5
23745 ac_status=$?
23746 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23747 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
23748 { (case "(($ac_try" in
23749 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23750 *) ac_try_echo=$ac_try;;
23751 esac
23752 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23753 (eval "$ac_try") 2>&5
23754 ac_status=$?
23755 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23756 (exit $ac_status); }; }; then
23757 ac_cv_func_vfork_works=yes
23758 else
23759 echo "$as_me: program exited with status $ac_status" >&5
23760 echo "$as_me: failed program was:" >&5
23761 sed 's/^/| /' conftest.$ac_ext >&5
23763 ( exit $ac_status )
23764 ac_cv_func_vfork_works=no
23766 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
23771 { echo "$as_me:$LINENO: result: $ac_cv_func_vfork_works" >&5
23772 echo "${ECHO_T}$ac_cv_func_vfork_works" >&6; }
23775 if test "x$ac_cv_func_fork_works" = xcross; then
23776 ac_cv_func_vfork_works=$ac_cv_func_vfork
23777 { echo "$as_me:$LINENO: WARNING: result $ac_cv_func_vfork_works guessed because of cross compilation" >&5
23778 echo "$as_me: WARNING: result $ac_cv_func_vfork_works guessed because of cross compilation" >&2;}
23781 if test "x$ac_cv_func_vfork_works" = xyes; then
23783 cat >>confdefs.h <<\_ACEOF
23784 #define HAVE_WORKING_VFORK 1
23785 _ACEOF
23787 else
23789 cat >>confdefs.h <<\_ACEOF
23790 #define vfork fork
23791 _ACEOF
23794 if test "x$ac_cv_func_fork_works" = xyes; then
23796 cat >>confdefs.h <<\_ACEOF
23797 #define HAVE_WORKING_FORK 1
23798 _ACEOF
23803 { echo "$as_me:$LINENO: checking for nl_langinfo and CODESET" >&5
23804 echo $ECHO_N "checking for nl_langinfo and CODESET... $ECHO_C" >&6; }
23805 if test "${emacs_cv_langinfo_codeset+set}" = set; then
23806 echo $ECHO_N "(cached) $ECHO_C" >&6
23807 else
23808 cat >conftest.$ac_ext <<_ACEOF
23809 /* confdefs.h. */
23810 _ACEOF
23811 cat confdefs.h >>conftest.$ac_ext
23812 cat >>conftest.$ac_ext <<_ACEOF
23813 /* end confdefs.h. */
23814 #include <langinfo.h>
23816 main ()
23818 char* cs = nl_langinfo(CODESET);
23820 return 0;
23822 _ACEOF
23823 rm -f conftest.$ac_objext conftest$ac_exeext
23824 if { (ac_try="$ac_link"
23825 case "(($ac_try" in
23826 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23827 *) ac_try_echo=$ac_try;;
23828 esac
23829 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23830 (eval "$ac_link") 2>conftest.er1
23831 ac_status=$?
23832 grep -v '^ *+' conftest.er1 >conftest.err
23833 rm -f conftest.er1
23834 cat conftest.err >&5
23835 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23836 (exit $ac_status); } && {
23837 test -z "$ac_c_werror_flag" ||
23838 test ! -s conftest.err
23839 } && test -s conftest$ac_exeext &&
23840 $as_test_x conftest$ac_exeext; then
23841 emacs_cv_langinfo_codeset=yes
23842 else
23843 echo "$as_me: failed program was:" >&5
23844 sed 's/^/| /' conftest.$ac_ext >&5
23846 emacs_cv_langinfo_codeset=no
23849 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
23850 conftest$ac_exeext conftest.$ac_ext
23853 { echo "$as_me:$LINENO: result: $emacs_cv_langinfo_codeset" >&5
23854 echo "${ECHO_T}$emacs_cv_langinfo_codeset" >&6; }
23855 if test $emacs_cv_langinfo_codeset = yes; then
23857 cat >>confdefs.h <<\_ACEOF
23858 #define HAVE_LANGINFO_CODESET 1
23859 _ACEOF
23863 { echo "$as_me:$LINENO: checking for size_t" >&5
23864 echo $ECHO_N "checking for size_t... $ECHO_C" >&6; }
23865 if test "${ac_cv_type_size_t+set}" = set; then
23866 echo $ECHO_N "(cached) $ECHO_C" >&6
23867 else
23868 cat >conftest.$ac_ext <<_ACEOF
23869 /* confdefs.h. */
23870 _ACEOF
23871 cat confdefs.h >>conftest.$ac_ext
23872 cat >>conftest.$ac_ext <<_ACEOF
23873 /* end confdefs.h. */
23874 $ac_includes_default
23875 typedef size_t ac__type_new_;
23877 main ()
23879 if ((ac__type_new_ *) 0)
23880 return 0;
23881 if (sizeof (ac__type_new_))
23882 return 0;
23884 return 0;
23886 _ACEOF
23887 rm -f conftest.$ac_objext
23888 if { (ac_try="$ac_compile"
23889 case "(($ac_try" in
23890 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23891 *) ac_try_echo=$ac_try;;
23892 esac
23893 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23894 (eval "$ac_compile") 2>conftest.er1
23895 ac_status=$?
23896 grep -v '^ *+' conftest.er1 >conftest.err
23897 rm -f conftest.er1
23898 cat conftest.err >&5
23899 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23900 (exit $ac_status); } && {
23901 test -z "$ac_c_werror_flag" ||
23902 test ! -s conftest.err
23903 } && test -s conftest.$ac_objext; then
23904 ac_cv_type_size_t=yes
23905 else
23906 echo "$as_me: failed program was:" >&5
23907 sed 's/^/| /' conftest.$ac_ext >&5
23909 ac_cv_type_size_t=no
23912 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23914 { echo "$as_me:$LINENO: result: $ac_cv_type_size_t" >&5
23915 echo "${ECHO_T}$ac_cv_type_size_t" >&6; }
23916 if test $ac_cv_type_size_t = yes; then
23918 cat >>confdefs.h <<_ACEOF
23919 #define HAVE_SIZE_T 1
23920 _ACEOF
23926 { echo "$as_me:$LINENO: checking for mbstate_t" >&5
23927 echo $ECHO_N "checking for mbstate_t... $ECHO_C" >&6; }
23928 if test "${ac_cv_type_mbstate_t+set}" = set; then
23929 echo $ECHO_N "(cached) $ECHO_C" >&6
23930 else
23931 cat >conftest.$ac_ext <<_ACEOF
23932 /* confdefs.h. */
23933 _ACEOF
23934 cat confdefs.h >>conftest.$ac_ext
23935 cat >>conftest.$ac_ext <<_ACEOF
23936 /* end confdefs.h. */
23937 $ac_includes_default
23938 # include <wchar.h>
23940 main ()
23942 mbstate_t x; return sizeof x;
23944 return 0;
23946 _ACEOF
23947 rm -f conftest.$ac_objext
23948 if { (ac_try="$ac_compile"
23949 case "(($ac_try" in
23950 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23951 *) ac_try_echo=$ac_try;;
23952 esac
23953 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23954 (eval "$ac_compile") 2>conftest.er1
23955 ac_status=$?
23956 grep -v '^ *+' conftest.er1 >conftest.err
23957 rm -f conftest.er1
23958 cat conftest.err >&5
23959 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23960 (exit $ac_status); } && {
23961 test -z "$ac_c_werror_flag" ||
23962 test ! -s conftest.err
23963 } && test -s conftest.$ac_objext; then
23964 ac_cv_type_mbstate_t=yes
23965 else
23966 echo "$as_me: failed program was:" >&5
23967 sed 's/^/| /' conftest.$ac_ext >&5
23969 ac_cv_type_mbstate_t=no
23972 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23974 { echo "$as_me:$LINENO: result: $ac_cv_type_mbstate_t" >&5
23975 echo "${ECHO_T}$ac_cv_type_mbstate_t" >&6; }
23976 if test $ac_cv_type_mbstate_t = yes; then
23978 cat >>confdefs.h <<\_ACEOF
23979 #define HAVE_MBSTATE_T 1
23980 _ACEOF
23982 else
23984 cat >>confdefs.h <<\_ACEOF
23985 #define mbstate_t int
23986 _ACEOF
23990 { echo "$as_me:$LINENO: checking for C restrict keyword" >&5
23991 echo $ECHO_N "checking for C restrict keyword... $ECHO_C" >&6; }
23992 if test "${emacs_cv_c_restrict+set}" = set; then
23993 echo $ECHO_N "(cached) $ECHO_C" >&6
23994 else
23995 cat >conftest.$ac_ext <<_ACEOF
23996 /* confdefs.h. */
23997 _ACEOF
23998 cat confdefs.h >>conftest.$ac_ext
23999 cat >>conftest.$ac_ext <<_ACEOF
24000 /* end confdefs.h. */
24001 void fred (int *restrict x);
24003 main ()
24007 return 0;
24009 _ACEOF
24010 rm -f conftest.$ac_objext
24011 if { (ac_try="$ac_compile"
24012 case "(($ac_try" in
24013 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24014 *) ac_try_echo=$ac_try;;
24015 esac
24016 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24017 (eval "$ac_compile") 2>conftest.er1
24018 ac_status=$?
24019 grep -v '^ *+' conftest.er1 >conftest.err
24020 rm -f conftest.er1
24021 cat conftest.err >&5
24022 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24023 (exit $ac_status); } && {
24024 test -z "$ac_c_werror_flag" ||
24025 test ! -s conftest.err
24026 } && test -s conftest.$ac_objext; then
24027 emacs_cv_c_restrict=yes
24028 else
24029 echo "$as_me: failed program was:" >&5
24030 sed 's/^/| /' conftest.$ac_ext >&5
24032 cat >conftest.$ac_ext <<_ACEOF
24033 /* confdefs.h. */
24034 _ACEOF
24035 cat confdefs.h >>conftest.$ac_ext
24036 cat >>conftest.$ac_ext <<_ACEOF
24037 /* end confdefs.h. */
24038 void fred (int *__restrict x);
24040 main ()
24044 return 0;
24046 _ACEOF
24047 rm -f conftest.$ac_objext
24048 if { (ac_try="$ac_compile"
24049 case "(($ac_try" in
24050 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24051 *) ac_try_echo=$ac_try;;
24052 esac
24053 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24054 (eval "$ac_compile") 2>conftest.er1
24055 ac_status=$?
24056 grep -v '^ *+' conftest.er1 >conftest.err
24057 rm -f conftest.er1
24058 cat conftest.err >&5
24059 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24060 (exit $ac_status); } && {
24061 test -z "$ac_c_werror_flag" ||
24062 test ! -s conftest.err
24063 } && test -s conftest.$ac_objext; then
24064 emacs_cv_c_restrict=__restrict
24065 else
24066 echo "$as_me: failed program was:" >&5
24067 sed 's/^/| /' conftest.$ac_ext >&5
24069 emacs_cv_c_restrict=no
24072 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
24075 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
24077 { echo "$as_me:$LINENO: result: $emacs_cv_c_restrict" >&5
24078 echo "${ECHO_T}$emacs_cv_c_restrict" >&6; }
24079 case "$emacs_cv_c_restrict" in
24080 yes) emacs_restrict=restrict;;
24081 no) emacs_restrict="";;
24082 *) emacs_restrict="$emacs_cv_c_restrict";;
24083 esac
24084 if test "$emacs_restrict" != __restrict; then
24086 cat >>confdefs.h <<_ACEOF
24087 #define __restrict $emacs_restrict
24088 _ACEOF
24092 { echo "$as_me:$LINENO: checking for C restricted array declarations" >&5
24093 echo $ECHO_N "checking for C restricted array declarations... $ECHO_C" >&6; }
24094 if test "${emacs_cv_c_restrict_arr+set}" = set; then
24095 echo $ECHO_N "(cached) $ECHO_C" >&6
24096 else
24097 cat >conftest.$ac_ext <<_ACEOF
24098 /* confdefs.h. */
24099 _ACEOF
24100 cat confdefs.h >>conftest.$ac_ext
24101 cat >>conftest.$ac_ext <<_ACEOF
24102 /* end confdefs.h. */
24103 void fred (int x[__restrict]);
24105 main ()
24109 return 0;
24111 _ACEOF
24112 rm -f conftest.$ac_objext
24113 if { (ac_try="$ac_compile"
24114 case "(($ac_try" in
24115 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24116 *) ac_try_echo=$ac_try;;
24117 esac
24118 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24119 (eval "$ac_compile") 2>conftest.er1
24120 ac_status=$?
24121 grep -v '^ *+' conftest.er1 >conftest.err
24122 rm -f conftest.er1
24123 cat conftest.err >&5
24124 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24125 (exit $ac_status); } && {
24126 test -z "$ac_c_werror_flag" ||
24127 test ! -s conftest.err
24128 } && test -s conftest.$ac_objext; then
24129 emacs_cv_c_restrict_arr=yes
24130 else
24131 echo "$as_me: failed program was:" >&5
24132 sed 's/^/| /' conftest.$ac_ext >&5
24134 emacs_cv_c_restrict_arr=no
24137 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
24139 { echo "$as_me:$LINENO: result: $emacs_cv_c_restrict_arr" >&5
24140 echo "${ECHO_T}$emacs_cv_c_restrict_arr" >&6; }
24141 if test "$emacs_cv_c_restrict_arr" = yes; then
24143 cat >>confdefs.h <<\_ACEOF
24144 #define __restrict_arr __restrict
24145 _ACEOF
24151 # Set up the CFLAGS for real compilation, so we can substitute it.
24152 CFLAGS="$REAL_CFLAGS"
24153 CPPFLAGS="$REAL_CPPFLAGS"
24155 #### Find out which version of Emacs this is.
24156 version=`grep 'defconst[ ]*emacs-version' ${srcdir}/lisp/version.el \
24157 | sed -e 's/^[^"]*"\([^"]*\)".*$/\1/'`
24158 if test x"${version}" = x; then
24159 { { echo "$as_me:$LINENO: error: can't find current emacs version in \`${srcdir}/lisp/version.el'." >&5
24160 echo "$as_me: error: can't find current emacs version in \`${srcdir}/lisp/version.el'." >&2;}
24161 { (exit 1); exit 1; }; }
24164 ### Specify what sort of things we'll be editing into Makefile and config.h.
24165 ### Use configuration here uncanonicalized to avoid exceeding size limits.
24202 cat >>confdefs.h <<_ACEOF
24203 #define EMACS_CONFIGURATION "${canonical}"
24204 _ACEOF
24207 cat >>confdefs.h <<_ACEOF
24208 #define EMACS_CONFIG_OPTIONS "${ac_configure_args}"
24209 _ACEOF
24212 cat >>confdefs.h <<_ACEOF
24213 #define config_machfile "${machfile}"
24214 _ACEOF
24217 cat >>confdefs.h <<_ACEOF
24218 #define config_opsysfile "${opsysfile}"
24219 _ACEOF
24222 cat >>confdefs.h <<_ACEOF
24223 #define LD_SWITCH_X_SITE ${LD_SWITCH_X_SITE}
24224 _ACEOF
24227 cat >>confdefs.h <<_ACEOF
24228 #define LD_SWITCH_X_SITE_AUX ${LD_SWITCH_X_SITE_AUX}
24229 _ACEOF
24232 cat >>confdefs.h <<_ACEOF
24233 #define C_SWITCH_X_SITE ${C_SWITCH_X_SITE}
24234 _ACEOF
24237 cat >>confdefs.h <<_ACEOF
24238 #define UNEXEC_SRC ${UNEXEC_SRC}
24239 _ACEOF
24242 if test "${HAVE_X_WINDOWS}" = "yes" ; then
24244 cat >>confdefs.h <<\_ACEOF
24245 #define HAVE_X_WINDOWS 1
24246 _ACEOF
24249 if test "${USE_X_TOOLKIT}" != "none" ; then
24251 cat >>confdefs.h <<\_ACEOF
24252 #define USE_X_TOOLKIT 1
24253 _ACEOF
24255 if test "${USE_X_TOOLKIT}" = "LUCID"; then
24257 cat >>confdefs.h <<\_ACEOF
24258 #define USE_LUCID 1
24259 _ACEOF
24261 elif test "${USE_X_TOOLKIT}" = "MOTIF"; then
24263 cat >>confdefs.h <<\_ACEOF
24264 #define USE_MOTIF 1
24265 _ACEOF
24269 if test "${HAVE_X11}" = "yes" ; then
24271 cat >>confdefs.h <<\_ACEOF
24272 #define HAVE_X11 1
24273 _ACEOF
24276 if test "${HAVE_MENUS}" = "yes" ; then
24278 cat >>confdefs.h <<\_ACEOF
24279 #define HAVE_MENUS 1
24280 _ACEOF
24283 if test "${GNU_MALLOC}" = "yes" ; then
24285 cat >>confdefs.h <<\_ACEOF
24286 #define GNU_MALLOC 1
24287 _ACEOF
24290 if test "${REL_ALLOC}" = "yes" ; then
24292 cat >>confdefs.h <<\_ACEOF
24293 #define REL_ALLOC 1
24294 _ACEOF
24303 #### Report on what we decided to do.
24304 #### Report GTK as a toolkit, even if it doesn't use Xt.
24305 #### It makes printing result more understandable as using GTK sets
24306 #### toolkit_scroll_bars to yes by default.
24307 if test "${HAVE_GTK}" = "yes"; then
24308 USE_X_TOOLKIT=GTK
24311 echo "
24312 Configured for \`${canonical}'.
24314 Where should the build process find the source code? ${srcdir}
24315 What operating system and machine description files should Emacs use?
24316 \`${opsysfile}' and \`${machfile}'
24317 What compiler should emacs be built with? ${CC} ${CFLAGS}
24318 Should Emacs use the GNU version of malloc? ${GNU_MALLOC}${GNU_MALLOC_reason}
24319 Should Emacs use a relocating allocator for buffers? ${REL_ALLOC}
24320 Should Emacs use mmap(2) for buffer allocation? $use_mmap_for_buffers
24321 What window system should Emacs use? ${window_system}
24322 What toolkit should Emacs use? ${USE_X_TOOLKIT}"
24324 if test -n "${x_includes}"; then
24325 echo " Where do we find X Windows header files? ${x_includes}"
24326 else
24327 echo " Where do we find X Windows header files? Standard dirs"
24329 if test -n "${x_libraries}"; then
24330 echo " Where do we find X Windows libraries? ${x_libraries}"
24331 else
24332 echo " Where do we find X Windows libraries? Standard dirs"
24335 echo " Does Emacs use -lXaw3d? ${HAVE_XAW3D}"
24336 echo " Does Emacs use -lXpm? ${HAVE_XPM}"
24337 echo " Does Emacs use -ljpeg? ${HAVE_JPEG}"
24338 echo " Does Emacs use -ltiff? ${HAVE_TIFF}"
24339 echo " Does Emacs use a gif library? ${HAVE_GIF} $ac_gif_lib_name"
24340 echo " Does Emacs use -lpng? ${HAVE_PNG}"
24341 echo " Does Emacs use -lrsvg-2? ${HAVE_RSVG}"
24342 echo " Does Emacs use -lgpm? ${HAVE_GPM}"
24343 echo " Does Emacs use -ldbus? ${HAVE_DBUS}"
24345 echo " Does Emacs use -lfreetype? ${HAVE_FREETYPE}"
24346 echo " Does Emacs use -lm17n-flt? ${HAVE_M17N_FLT}"
24347 echo " Does Emacs use -lotf? ${HAVE_LIBOTF}"
24348 echo " Does Emacs use -lxft? ${HAVE_XFT}"
24350 echo " Does Emacs use X toolkit scroll bars? ${USE_TOOLKIT_SCROLL_BARS}"
24351 echo
24353 if test $USE_XASSERTS = yes; then
24354 echo " Compiling with asserts turned on."
24355 CPPFLAGS="$CPPFLAGS -DXASSERTS=1"
24358 echo
24360 if test "$USE_X_TOOLKIT" = GTK; then
24361 case "$canonical" in
24362 *cygwin*)
24363 echo "There are known problems with Emacs and Gtk+ on cygwin, so you
24364 will probably get a crash on startup. If this happens, please use another
24365 toolkit for Emacs. See etc/PROBLEMS for more information."
24367 esac
24371 if test "$HAVE_CARBON" = "yes"; then
24372 echo
24373 echo "Warning: The Mac Carbon port is currently unsupported and has
24374 known problems. It is not recommended for use by non-developers.
24375 Read the emacs-devel archives for more information."
24376 echo
24379 if test "$HAVE_DBUS" = yes && test "${opsys}" != "gnu-linux"; then
24380 echo "D-Bus integration has been tested for GNU/Linux only."
24381 echo
24385 # Remove any trailing slashes in these variables.
24386 test "${prefix}" != NONE &&
24387 prefix=`echo "${prefix}" | sed 's,\([^/]\)/*$,\1,'`
24388 test "${exec_prefix}" != NONE &&
24389 exec_prefix=`echo "${exec_prefix}" | sed 's,\([^/]\)/*$,\1,'`
24391 # Now get this: Some word that is part of the ${srcdir} directory name
24392 # or the ${configuration} value might, just might, happen to be an
24393 # identifier like `sun4' or `i386' or something, and be predefined by
24394 # the C preprocessor to some helpful value like 1, or maybe the empty
24395 # string. Needless to say consequent macro substitutions are less
24396 # than conducive to the makefile finding the correct directory.
24397 cpp_undefs="`echo $srcdir $configuration $canonical |
24398 sed -e 's/[^a-zA-Z0-9_]/ /g' -e 's/^/ /' -e 's/ *$//' \
24399 -e 's/ */ -U/g' -e 's/-U[0-9][^ ]*//g'`"
24401 ## Check if the C preprocessor will convert `..' to `. .'. If so, set
24402 ## CPP_NEED_TRADITIONAL to `yes' so that the code to generate Makefile
24403 ## from Makefile.c can correctly provide the arg `-traditional' to the
24404 ## C preprocessor.
24406 cat >conftest.$ac_ext <<_ACEOF
24407 /* confdefs.h. */
24408 _ACEOF
24409 cat confdefs.h >>conftest.$ac_ext
24410 cat >>conftest.$ac_ext <<_ACEOF
24411 /* end confdefs.h. */
24412 yes..yes
24413 _ACEOF
24414 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
24415 $EGREP "yes..yes" >/dev/null 2>&1; then
24416 CPP_NEED_TRADITIONAL=no
24417 else
24418 CPP_NEED_TRADITIONAL=yes
24420 rm -f conftest*
24423 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"
24425 ac_config_commands="$ac_config_commands default"
24427 cat >confcache <<\_ACEOF
24428 # This file is a shell script that caches the results of configure
24429 # tests run on this system so they can be shared between configure
24430 # scripts and configure runs, see configure's option --config-cache.
24431 # It is not useful on other systems. If it contains results you don't
24432 # want to keep, you may remove or edit it.
24434 # config.status only pays attention to the cache file if you give it
24435 # the --recheck option to rerun configure.
24437 # `ac_cv_env_foo' variables (set or unset) will be overridden when
24438 # loading this file, other *unset* `ac_cv_foo' will be assigned the
24439 # following values.
24441 _ACEOF
24443 # The following way of writing the cache mishandles newlines in values,
24444 # but we know of no workaround that is simple, portable, and efficient.
24445 # So, we kill variables containing newlines.
24446 # Ultrix sh set writes to stderr and can't be redirected directly,
24447 # and sets the high bit in the cache file unless we assign to the vars.
24449 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
24450 eval ac_val=\$$ac_var
24451 case $ac_val in #(
24452 *${as_nl}*)
24453 case $ac_var in #(
24454 *_cv_*) { echo "$as_me:$LINENO: WARNING: Cache variable $ac_var contains a newline." >&5
24455 echo "$as_me: WARNING: Cache variable $ac_var contains a newline." >&2;} ;;
24456 esac
24457 case $ac_var in #(
24458 _ | IFS | as_nl) ;; #(
24459 *) $as_unset $ac_var ;;
24460 esac ;;
24461 esac
24462 done
24464 (set) 2>&1 |
24465 case $as_nl`(ac_space=' '; set) 2>&1` in #(
24466 *${as_nl}ac_space=\ *)
24467 # `set' does not quote correctly, so add quotes (double-quote
24468 # substitution turns \\\\ into \\, and sed turns \\ into \).
24469 sed -n \
24470 "s/'/'\\\\''/g;
24471 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
24472 ;; #(
24474 # `set' quotes correctly as required by POSIX, so do not add quotes.
24475 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
24477 esac |
24478 sort
24480 sed '
24481 /^ac_cv_env_/b end
24482 t clear
24483 :clear
24484 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
24485 t end
24486 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
24487 :end' >>confcache
24488 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
24489 if test -w "$cache_file"; then
24490 test "x$cache_file" != "x/dev/null" &&
24491 { echo "$as_me:$LINENO: updating cache $cache_file" >&5
24492 echo "$as_me: updating cache $cache_file" >&6;}
24493 cat confcache >$cache_file
24494 else
24495 { echo "$as_me:$LINENO: not updating unwritable cache $cache_file" >&5
24496 echo "$as_me: not updating unwritable cache $cache_file" >&6;}
24499 rm -f confcache
24501 test "x$prefix" = xNONE && prefix=$ac_default_prefix
24502 # Let make expand exec_prefix.
24503 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
24505 DEFS=-DHAVE_CONFIG_H
24507 ac_libobjs=
24508 ac_ltlibobjs=
24509 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
24510 # 1. Remove the extension, and $U if already installed.
24511 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
24512 ac_i=`echo "$ac_i" | sed "$ac_script"`
24513 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
24514 # will be set to the directory where LIBOBJS objects are built.
24515 ac_libobjs="$ac_libobjs \${LIBOBJDIR}$ac_i\$U.$ac_objext"
24516 ac_ltlibobjs="$ac_ltlibobjs \${LIBOBJDIR}$ac_i"'$U.lo'
24517 done
24518 LIBOBJS=$ac_libobjs
24520 LTLIBOBJS=$ac_ltlibobjs
24524 : ${CONFIG_STATUS=./config.status}
24525 ac_clean_files_save=$ac_clean_files
24526 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
24527 { echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
24528 echo "$as_me: creating $CONFIG_STATUS" >&6;}
24529 cat >$CONFIG_STATUS <<_ACEOF
24530 #! $SHELL
24531 # Generated by $as_me.
24532 # Run this file to recreate the current configuration.
24533 # Compiler output produced by configure, useful for debugging
24534 # configure, is in config.log if it exists.
24536 debug=false
24537 ac_cs_recheck=false
24538 ac_cs_silent=false
24539 SHELL=\${CONFIG_SHELL-$SHELL}
24540 _ACEOF
24542 cat >>$CONFIG_STATUS <<\_ACEOF
24543 ## --------------------- ##
24544 ## M4sh Initialization. ##
24545 ## --------------------- ##
24547 # Be more Bourne compatible
24548 DUALCASE=1; export DUALCASE # for MKS sh
24549 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
24550 emulate sh
24551 NULLCMD=:
24552 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
24553 # is contrary to our usage. Disable this feature.
24554 alias -g '${1+"$@"}'='"$@"'
24555 setopt NO_GLOB_SUBST
24556 else
24557 case `(set -o) 2>/dev/null` in
24558 *posix*) set -o posix ;;
24559 esac
24566 # PATH needs CR
24567 # Avoid depending upon Character Ranges.
24568 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
24569 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
24570 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
24571 as_cr_digits='0123456789'
24572 as_cr_alnum=$as_cr_Letters$as_cr_digits
24574 # The user is always right.
24575 if test "${PATH_SEPARATOR+set}" != set; then
24576 echo "#! /bin/sh" >conf$$.sh
24577 echo "exit 0" >>conf$$.sh
24578 chmod +x conf$$.sh
24579 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
24580 PATH_SEPARATOR=';'
24581 else
24582 PATH_SEPARATOR=:
24584 rm -f conf$$.sh
24587 # Support unset when possible.
24588 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
24589 as_unset=unset
24590 else
24591 as_unset=false
24595 # IFS
24596 # We need space, tab and new line, in precisely that order. Quoting is
24597 # there to prevent editors from complaining about space-tab.
24598 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
24599 # splitting by setting IFS to empty value.)
24600 as_nl='
24602 IFS=" "" $as_nl"
24604 # Find who we are. Look in the path if we contain no directory separator.
24605 case $0 in
24606 *[\\/]* ) as_myself=$0 ;;
24607 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
24608 for as_dir in $PATH
24610 IFS=$as_save_IFS
24611 test -z "$as_dir" && as_dir=.
24612 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
24613 done
24614 IFS=$as_save_IFS
24617 esac
24618 # We did not find ourselves, most probably we were run as `sh COMMAND'
24619 # in which case we are not to be found in the path.
24620 if test "x$as_myself" = x; then
24621 as_myself=$0
24623 if test ! -f "$as_myself"; then
24624 echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
24625 { (exit 1); exit 1; }
24628 # Work around bugs in pre-3.0 UWIN ksh.
24629 for as_var in ENV MAIL MAILPATH
24630 do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
24631 done
24632 PS1='$ '
24633 PS2='> '
24634 PS4='+ '
24636 # NLS nuisances.
24637 for as_var in \
24638 LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
24639 LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
24640 LC_TELEPHONE LC_TIME
24642 if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
24643 eval $as_var=C; export $as_var
24644 else
24645 ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
24647 done
24649 # Required to use basename.
24650 if expr a : '\(a\)' >/dev/null 2>&1 &&
24651 test "X`expr 00001 : '.*\(...\)'`" = X001; then
24652 as_expr=expr
24653 else
24654 as_expr=false
24657 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
24658 as_basename=basename
24659 else
24660 as_basename=false
24664 # Name of the executable.
24665 as_me=`$as_basename -- "$0" ||
24666 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
24667 X"$0" : 'X\(//\)$' \| \
24668 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
24669 echo X/"$0" |
24670 sed '/^.*\/\([^/][^/]*\)\/*$/{
24671 s//\1/
24674 /^X\/\(\/\/\)$/{
24675 s//\1/
24678 /^X\/\(\/\).*/{
24679 s//\1/
24682 s/.*/./; q'`
24684 # CDPATH.
24685 $as_unset CDPATH
24689 as_lineno_1=$LINENO
24690 as_lineno_2=$LINENO
24691 test "x$as_lineno_1" != "x$as_lineno_2" &&
24692 test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2" || {
24694 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
24695 # uniformly replaced by the line number. The first 'sed' inserts a
24696 # line-number line after each line using $LINENO; the second 'sed'
24697 # does the real work. The second script uses 'N' to pair each
24698 # line-number line with the line containing $LINENO, and appends
24699 # trailing '-' during substitution so that $LINENO is not a special
24700 # case at line end.
24701 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
24702 # scripts with optimization help from Paolo Bonzini. Blame Lee
24703 # E. McMahon (1931-1989) for sed's syntax. :-)
24704 sed -n '
24706 /[$]LINENO/=
24707 ' <$as_myself |
24708 sed '
24709 s/[$]LINENO.*/&-/
24710 t lineno
24712 :lineno
24714 :loop
24715 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
24716 t loop
24717 s/-\n.*//
24718 ' >$as_me.lineno &&
24719 chmod +x "$as_me.lineno" ||
24720 { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
24721 { (exit 1); exit 1; }; }
24723 # Don't try to exec as it changes $[0], causing all sort of problems
24724 # (the dirname of $[0] is not the place where we might find the
24725 # original and so on. Autoconf is especially sensitive to this).
24726 . "./$as_me.lineno"
24727 # Exit status is that of the last command.
24728 exit
24732 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
24733 as_dirname=dirname
24734 else
24735 as_dirname=false
24738 ECHO_C= ECHO_N= ECHO_T=
24739 case `echo -n x` in
24740 -n*)
24741 case `echo 'x\c'` in
24742 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
24743 *) ECHO_C='\c';;
24744 esac;;
24746 ECHO_N='-n';;
24747 esac
24749 if expr a : '\(a\)' >/dev/null 2>&1 &&
24750 test "X`expr 00001 : '.*\(...\)'`" = X001; then
24751 as_expr=expr
24752 else
24753 as_expr=false
24756 rm -f conf$$ conf$$.exe conf$$.file
24757 if test -d conf$$.dir; then
24758 rm -f conf$$.dir/conf$$.file
24759 else
24760 rm -f conf$$.dir
24761 mkdir conf$$.dir
24763 echo >conf$$.file
24764 if ln -s conf$$.file conf$$ 2>/dev/null; then
24765 as_ln_s='ln -s'
24766 # ... but there are two gotchas:
24767 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
24768 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
24769 # In both cases, we have to default to `cp -p'.
24770 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
24771 as_ln_s='cp -p'
24772 elif ln conf$$.file conf$$ 2>/dev/null; then
24773 as_ln_s=ln
24774 else
24775 as_ln_s='cp -p'
24777 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
24778 rmdir conf$$.dir 2>/dev/null
24780 if mkdir -p . 2>/dev/null; then
24781 as_mkdir_p=:
24782 else
24783 test -d ./-p && rmdir ./-p
24784 as_mkdir_p=false
24787 if test -x / >/dev/null 2>&1; then
24788 as_test_x='test -x'
24789 else
24790 if ls -dL / >/dev/null 2>&1; then
24791 as_ls_L_option=L
24792 else
24793 as_ls_L_option=
24795 as_test_x='
24796 eval sh -c '\''
24797 if test -d "$1"; then
24798 test -d "$1/.";
24799 else
24800 case $1 in
24801 -*)set "./$1";;
24802 esac;
24803 case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in
24804 ???[sx]*):;;*)false;;esac;fi
24805 '\'' sh
24808 as_executable_p=$as_test_x
24810 # Sed expression to map a string onto a valid CPP name.
24811 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
24813 # Sed expression to map a string onto a valid variable name.
24814 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
24817 exec 6>&1
24819 # Save the log message, to keep $[0] and so on meaningful, and to
24820 # report actual input values of CONFIG_FILES etc. instead of their
24821 # values after options handling.
24822 ac_log="
24823 This file was extended by emacs $as_me 23.0.60, which was
24824 generated by GNU Autoconf 2.61. Invocation command line was
24826 CONFIG_FILES = $CONFIG_FILES
24827 CONFIG_HEADERS = $CONFIG_HEADERS
24828 CONFIG_LINKS = $CONFIG_LINKS
24829 CONFIG_COMMANDS = $CONFIG_COMMANDS
24830 $ $0 $@
24832 on `(hostname || uname -n) 2>/dev/null | sed 1q`
24835 _ACEOF
24837 cat >>$CONFIG_STATUS <<_ACEOF
24838 # Files that config.status was made for.
24839 config_files="$ac_config_files"
24840 config_headers="$ac_config_headers"
24841 config_commands="$ac_config_commands"
24843 _ACEOF
24845 cat >>$CONFIG_STATUS <<\_ACEOF
24846 ac_cs_usage="\
24847 \`$as_me' instantiates files from templates according to the
24848 current configuration.
24850 Usage: $0 [OPTIONS] [FILE]...
24852 -h, --help print this help, then exit
24853 -V, --version print version number and configuration settings, then exit
24854 -q, --quiet do not print progress messages
24855 -d, --debug don't remove temporary files
24856 --recheck update $as_me by reconfiguring in the same conditions
24857 --file=FILE[:TEMPLATE]
24858 instantiate the configuration file FILE
24859 --header=FILE[:TEMPLATE]
24860 instantiate the configuration header FILE
24862 Configuration files:
24863 $config_files
24865 Configuration headers:
24866 $config_headers
24868 Configuration commands:
24869 $config_commands
24871 Report bugs to <bug-autoconf@gnu.org>."
24873 _ACEOF
24874 cat >>$CONFIG_STATUS <<_ACEOF
24875 ac_cs_version="\\
24876 emacs config.status 23.0.60
24877 configured by $0, generated by GNU Autoconf 2.61,
24878 with options \\"`echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`\\"
24880 Copyright (C) 2006 Free Software Foundation, Inc.
24881 This config.status script is free software; the Free Software Foundation
24882 gives unlimited permission to copy, distribute and modify it."
24884 ac_pwd='$ac_pwd'
24885 srcdir='$srcdir'
24886 INSTALL='$INSTALL'
24887 _ACEOF
24889 cat >>$CONFIG_STATUS <<\_ACEOF
24890 # If no file are specified by the user, then we need to provide default
24891 # value. By we need to know if files were specified by the user.
24892 ac_need_defaults=:
24893 while test $# != 0
24895 case $1 in
24896 --*=*)
24897 ac_option=`expr "X$1" : 'X\([^=]*\)='`
24898 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
24899 ac_shift=:
24902 ac_option=$1
24903 ac_optarg=$2
24904 ac_shift=shift
24906 esac
24908 case $ac_option in
24909 # Handling of the options.
24910 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
24911 ac_cs_recheck=: ;;
24912 --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
24913 echo "$ac_cs_version"; exit ;;
24914 --debug | --debu | --deb | --de | --d | -d )
24915 debug=: ;;
24916 --file | --fil | --fi | --f )
24917 $ac_shift
24918 CONFIG_FILES="$CONFIG_FILES $ac_optarg"
24919 ac_need_defaults=false;;
24920 --header | --heade | --head | --hea )
24921 $ac_shift
24922 CONFIG_HEADERS="$CONFIG_HEADERS $ac_optarg"
24923 ac_need_defaults=false;;
24924 --he | --h)
24925 # Conflict between --help and --header
24926 { echo "$as_me: error: ambiguous option: $1
24927 Try \`$0 --help' for more information." >&2
24928 { (exit 1); exit 1; }; };;
24929 --help | --hel | -h )
24930 echo "$ac_cs_usage"; exit ;;
24931 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
24932 | -silent | --silent | --silen | --sile | --sil | --si | --s)
24933 ac_cs_silent=: ;;
24935 # This is an error.
24936 -*) { echo "$as_me: error: unrecognized option: $1
24937 Try \`$0 --help' for more information." >&2
24938 { (exit 1); exit 1; }; } ;;
24940 *) ac_config_targets="$ac_config_targets $1"
24941 ac_need_defaults=false ;;
24943 esac
24944 shift
24945 done
24947 ac_configure_extra_args=
24949 if $ac_cs_silent; then
24950 exec 6>/dev/null
24951 ac_configure_extra_args="$ac_configure_extra_args --silent"
24954 _ACEOF
24955 cat >>$CONFIG_STATUS <<_ACEOF
24956 if \$ac_cs_recheck; then
24957 echo "running CONFIG_SHELL=$SHELL $SHELL $0 "$ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6
24958 CONFIG_SHELL=$SHELL
24959 export CONFIG_SHELL
24960 exec $SHELL "$0"$ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
24963 _ACEOF
24964 cat >>$CONFIG_STATUS <<\_ACEOF
24965 exec 5>>config.log
24967 echo
24968 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
24969 ## Running $as_me. ##
24970 _ASBOX
24971 echo "$ac_log"
24972 } >&5
24974 _ACEOF
24975 cat >>$CONFIG_STATUS <<_ACEOF
24977 # INIT-COMMANDS
24979 GCC="$GCC" NON_GNU_CPP="$NON_GNU_CPP" CPP="$CPP" CPP_NEED_TRADITIONAL="$CPP_NEED_TRADITIONAL" CPPFLAGS="$CPPFLAGS" cpp_undefs="$cpp_undefs"
24981 _ACEOF
24983 cat >>$CONFIG_STATUS <<\_ACEOF
24985 # Handling of arguments.
24986 for ac_config_target in $ac_config_targets
24988 case $ac_config_target in
24989 "src/config.h") CONFIG_HEADERS="$CONFIG_HEADERS src/config.h:src/config.in" ;;
24990 "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
24991 "lib-src/Makefile.c") CONFIG_FILES="$CONFIG_FILES lib-src/Makefile.c:lib-src/Makefile.in" ;;
24992 "oldXMenu/Makefile") CONFIG_FILES="$CONFIG_FILES oldXMenu/Makefile" ;;
24993 "doc/emacs/Makefile") CONFIG_FILES="$CONFIG_FILES doc/emacs/Makefile" ;;
24994 "doc/misc/Makefile") CONFIG_FILES="$CONFIG_FILES doc/misc/Makefile" ;;
24995 "doc/lispintro/Makefile") CONFIG_FILES="$CONFIG_FILES doc/lispintro/Makefile" ;;
24996 "doc/lispref/Makefile") CONFIG_FILES="$CONFIG_FILES doc/lispref/Makefile" ;;
24997 "src/Makefile.c") CONFIG_FILES="$CONFIG_FILES src/Makefile.c:src/Makefile.in" ;;
24998 "lwlib/Makefile") CONFIG_FILES="$CONFIG_FILES lwlib/Makefile" ;;
24999 "lisp/Makefile") CONFIG_FILES="$CONFIG_FILES lisp/Makefile" ;;
25000 "leim/Makefile") CONFIG_FILES="$CONFIG_FILES leim/Makefile" ;;
25001 "default") CONFIG_COMMANDS="$CONFIG_COMMANDS default" ;;
25003 *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
25004 echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
25005 { (exit 1); exit 1; }; };;
25006 esac
25007 done
25010 # If the user did not use the arguments to specify the items to instantiate,
25011 # then the envvar interface is used. Set only those that are not.
25012 # We use the long form for the default assignment because of an extremely
25013 # bizarre bug on SunOS 4.1.3.
25014 if $ac_need_defaults; then
25015 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
25016 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
25017 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
25020 # Have a temporary directory for convenience. Make it in the build tree
25021 # simply because there is no reason against having it here, and in addition,
25022 # creating and moving files from /tmp can sometimes cause problems.
25023 # Hook for its removal unless debugging.
25024 # Note that there is a small window in which the directory will not be cleaned:
25025 # after its creation but before its name has been assigned to `$tmp'.
25026 $debug ||
25028 tmp=
25029 trap 'exit_status=$?
25030 { test -z "$tmp" || test ! -d "$tmp" || rm -fr "$tmp"; } && exit $exit_status
25032 trap '{ (exit 1); exit 1; }' 1 2 13 15
25034 # Create a (secure) tmp directory for tmp files.
25037 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
25038 test -n "$tmp" && test -d "$tmp"
25039 } ||
25041 tmp=./conf$$-$RANDOM
25042 (umask 077 && mkdir "$tmp")
25043 } ||
25045 echo "$me: cannot create a temporary directory in ." >&2
25046 { (exit 1); exit 1; }
25050 # Set up the sed scripts for CONFIG_FILES section.
25053 # No need to generate the scripts if there are no CONFIG_FILES.
25054 # This happens for instance when ./config.status config.h
25055 if test -n "$CONFIG_FILES"; then
25057 _ACEOF
25061 ac_delim='%!_!# '
25062 for ac_last_try in false false false false false :; do
25063 cat >conf$$subs.sed <<_ACEOF
25064 SHELL!$SHELL$ac_delim
25065 PATH_SEPARATOR!$PATH_SEPARATOR$ac_delim
25066 PACKAGE_NAME!$PACKAGE_NAME$ac_delim
25067 PACKAGE_TARNAME!$PACKAGE_TARNAME$ac_delim
25068 PACKAGE_VERSION!$PACKAGE_VERSION$ac_delim
25069 PACKAGE_STRING!$PACKAGE_STRING$ac_delim
25070 PACKAGE_BUGREPORT!$PACKAGE_BUGREPORT$ac_delim
25071 exec_prefix!$exec_prefix$ac_delim
25072 prefix!$prefix$ac_delim
25073 program_transform_name!$program_transform_name$ac_delim
25074 bindir!$bindir$ac_delim
25075 sbindir!$sbindir$ac_delim
25076 libexecdir!$libexecdir$ac_delim
25077 datarootdir!$datarootdir$ac_delim
25078 datadir!$datadir$ac_delim
25079 sysconfdir!$sysconfdir$ac_delim
25080 sharedstatedir!$sharedstatedir$ac_delim
25081 localstatedir!$localstatedir$ac_delim
25082 includedir!$includedir$ac_delim
25083 oldincludedir!$oldincludedir$ac_delim
25084 docdir!$docdir$ac_delim
25085 infodir!$infodir$ac_delim
25086 htmldir!$htmldir$ac_delim
25087 dvidir!$dvidir$ac_delim
25088 pdfdir!$pdfdir$ac_delim
25089 psdir!$psdir$ac_delim
25090 libdir!$libdir$ac_delim
25091 localedir!$localedir$ac_delim
25092 mandir!$mandir$ac_delim
25093 DEFS!$DEFS$ac_delim
25094 ECHO_C!$ECHO_C$ac_delim
25095 ECHO_N!$ECHO_N$ac_delim
25096 ECHO_T!$ECHO_T$ac_delim
25097 LIBS!$LIBS$ac_delim
25098 build_alias!$build_alias$ac_delim
25099 host_alias!$host_alias$ac_delim
25100 target_alias!$target_alias$ac_delim
25101 MAINT!$MAINT$ac_delim
25102 build!$build$ac_delim
25103 build_cpu!$build_cpu$ac_delim
25104 build_vendor!$build_vendor$ac_delim
25105 build_os!$build_os$ac_delim
25106 host!$host$ac_delim
25107 host_cpu!$host_cpu$ac_delim
25108 host_vendor!$host_vendor$ac_delim
25109 host_os!$host_os$ac_delim
25110 CC!$CC$ac_delim
25111 CFLAGS!$CFLAGS$ac_delim
25112 LDFLAGS!$LDFLAGS$ac_delim
25113 CPPFLAGS!$CPPFLAGS$ac_delim
25114 ac_ct_CC!$ac_ct_CC$ac_delim
25115 EXEEXT!$EXEEXT$ac_delim
25116 OBJEXT!$OBJEXT$ac_delim
25117 CPP!$CPP$ac_delim
25118 GREP!$GREP$ac_delim
25119 EGREP!$EGREP$ac_delim
25120 LN_S!$LN_S$ac_delim
25121 INSTALL_PROGRAM!$INSTALL_PROGRAM$ac_delim
25122 INSTALL_SCRIPT!$INSTALL_SCRIPT$ac_delim
25123 INSTALL_DATA!$INSTALL_DATA$ac_delim
25124 RANLIB!$RANLIB$ac_delim
25125 INSTALL_INFO!$INSTALL_INFO$ac_delim
25126 GZIP_PROG!$GZIP_PROG$ac_delim
25127 MAKEINFO!$MAKEINFO$ac_delim
25128 LIBSOUND!$LIBSOUND$ac_delim
25129 PKG_CONFIG!$PKG_CONFIG$ac_delim
25130 ALSA_CFLAGS!$ALSA_CFLAGS$ac_delim
25131 ALSA_LIBS!$ALSA_LIBS$ac_delim
25132 CFLAGS_SOUND!$CFLAGS_SOUND$ac_delim
25133 SET_MAKE!$SET_MAKE$ac_delim
25134 XMKMF!$XMKMF$ac_delim
25135 HAVE_XSERVER!$HAVE_XSERVER$ac_delim
25136 RSVG_CFLAGS!$RSVG_CFLAGS$ac_delim
25137 RSVG_LIBS!$RSVG_LIBS$ac_delim
25138 GTK_CFLAGS!$GTK_CFLAGS$ac_delim
25139 GTK_LIBS!$GTK_LIBS$ac_delim
25140 DBUS_CFLAGS!$DBUS_CFLAGS$ac_delim
25141 DBUS_LIBS!$DBUS_LIBS$ac_delim
25142 XFT_CFLAGS!$XFT_CFLAGS$ac_delim
25143 XFT_LIBS!$XFT_LIBS$ac_delim
25144 FREETYPE_CFLAGS!$FREETYPE_CFLAGS$ac_delim
25145 FREETYPE_LIBS!$FREETYPE_LIBS$ac_delim
25146 FONTCONFIG_CFLAGS!$FONTCONFIG_CFLAGS$ac_delim
25147 FONTCONFIG_LIBS!$FONTCONFIG_LIBS$ac_delim
25148 LIBOTF_CFLAGS!$LIBOTF_CFLAGS$ac_delim
25149 LIBOTF_LIBS!$LIBOTF_LIBS$ac_delim
25150 M17N_FLT_CFLAGS!$M17N_FLT_CFLAGS$ac_delim
25151 M17N_FLT_LIBS!$M17N_FLT_LIBS$ac_delim
25152 ALLOCA!$ALLOCA$ac_delim
25153 liblockfile!$liblockfile$ac_delim
25154 LIBOBJS!$LIBOBJS$ac_delim
25155 NEED_SETGID!$NEED_SETGID$ac_delim
25156 KMEM_GROUP!$KMEM_GROUP$ac_delim
25157 GETLOADAVG_LIBS!$GETLOADAVG_LIBS$ac_delim
25158 GETOPT_H!$GETOPT_H$ac_delim
25159 GETOPTOBJS!$GETOPTOBJS$ac_delim
25160 version!$version$ac_delim
25161 _ACEOF
25163 if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 97; then
25164 break
25165 elif $ac_last_try; then
25166 { { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
25167 echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
25168 { (exit 1); exit 1; }; }
25169 else
25170 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
25172 done
25174 ac_eof=`sed -n '/^CEOF[0-9]*$/s/CEOF/0/p' conf$$subs.sed`
25175 if test -n "$ac_eof"; then
25176 ac_eof=`echo "$ac_eof" | sort -nru | sed 1q`
25177 ac_eof=`expr $ac_eof + 1`
25180 cat >>$CONFIG_STATUS <<_ACEOF
25181 cat >"\$tmp/subs-1.sed" <<\CEOF$ac_eof
25182 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
25183 _ACEOF
25184 sed '
25185 s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g
25186 s/^/s,@/; s/!/@,|#_!!_#|/
25189 s/'"$ac_delim"'$/,g/; t
25190 s/$/\\/; p
25191 N; s/^.*\n//; s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g; b n
25192 ' >>$CONFIG_STATUS <conf$$subs.sed
25193 rm -f conf$$subs.sed
25194 cat >>$CONFIG_STATUS <<_ACEOF
25195 CEOF$ac_eof
25196 _ACEOF
25199 ac_delim='%!_!# '
25200 for ac_last_try in false false false false false :; do
25201 cat >conf$$subs.sed <<_ACEOF
25202 configuration!$configuration$ac_delim
25203 canonical!$canonical$ac_delim
25204 srcdir!$srcdir$ac_delim
25205 lispdir!$lispdir$ac_delim
25206 locallisppath!$locallisppath$ac_delim
25207 lisppath!$lisppath$ac_delim
25208 x_default_search_path!$x_default_search_path$ac_delim
25209 etcdir!$etcdir$ac_delim
25210 archlibdir!$archlibdir$ac_delim
25211 bitmapdir!$bitmapdir$ac_delim
25212 gamedir!$gamedir$ac_delim
25213 gameuser!$gameuser$ac_delim
25214 c_switch_system!$c_switch_system$ac_delim
25215 c_switch_machine!$c_switch_machine$ac_delim
25216 LD_SWITCH_X_SITE!$LD_SWITCH_X_SITE$ac_delim
25217 LD_SWITCH_X_SITE_AUX!$LD_SWITCH_X_SITE_AUX$ac_delim
25218 C_SWITCH_X_SITE!$C_SWITCH_X_SITE$ac_delim
25219 X_TOOLKIT_TYPE!$X_TOOLKIT_TYPE$ac_delim
25220 machfile!$machfile$ac_delim
25221 opsysfile!$opsysfile$ac_delim
25222 carbon_appdir!$carbon_appdir$ac_delim
25223 ns_appdir!$ns_appdir$ac_delim
25224 LTLIBOBJS!$LTLIBOBJS$ac_delim
25225 _ACEOF
25227 if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 23; then
25228 break
25229 elif $ac_last_try; then
25230 { { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
25231 echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
25232 { (exit 1); exit 1; }; }
25233 else
25234 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
25236 done
25238 ac_eof=`sed -n '/^CEOF[0-9]*$/s/CEOF/0/p' conf$$subs.sed`
25239 if test -n "$ac_eof"; then
25240 ac_eof=`echo "$ac_eof" | sort -nru | sed 1q`
25241 ac_eof=`expr $ac_eof + 1`
25244 cat >>$CONFIG_STATUS <<_ACEOF
25245 cat >"\$tmp/subs-2.sed" <<\CEOF$ac_eof
25246 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b end
25247 _ACEOF
25248 sed '
25249 s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g
25250 s/^/s,@/; s/!/@,|#_!!_#|/
25253 s/'"$ac_delim"'$/,g/; t
25254 s/$/\\/; p
25255 N; s/^.*\n//; s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g; b n
25256 ' >>$CONFIG_STATUS <conf$$subs.sed
25257 rm -f conf$$subs.sed
25258 cat >>$CONFIG_STATUS <<_ACEOF
25259 :end
25260 s/|#_!!_#|//g
25261 CEOF$ac_eof
25262 _ACEOF
25265 # VPATH may cause trouble with some makes, so we remove $(srcdir),
25266 # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
25267 # trailing colons and then remove the whole line if VPATH becomes empty
25268 # (actually we leave an empty line to preserve line numbers).
25269 if test "x$srcdir" = x.; then
25270 ac_vpsub='/^[ ]*VPATH[ ]*=/{
25271 s/:*\$(srcdir):*/:/
25272 s/:*\${srcdir}:*/:/
25273 s/:*@srcdir@:*/:/
25274 s/^\([^=]*=[ ]*\):*/\1/
25275 s/:*$//
25276 s/^[^=]*=[ ]*$//
25280 cat >>$CONFIG_STATUS <<\_ACEOF
25281 fi # test -n "$CONFIG_FILES"
25284 for ac_tag in :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS
25286 case $ac_tag in
25287 :[FHLC]) ac_mode=$ac_tag; continue;;
25288 esac
25289 case $ac_mode$ac_tag in
25290 :[FHL]*:*);;
25291 :L* | :C*:*) { { echo "$as_me:$LINENO: error: Invalid tag $ac_tag." >&5
25292 echo "$as_me: error: Invalid tag $ac_tag." >&2;}
25293 { (exit 1); exit 1; }; };;
25294 :[FH]-) ac_tag=-:-;;
25295 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
25296 esac
25297 ac_save_IFS=$IFS
25298 IFS=:
25299 set x $ac_tag
25300 IFS=$ac_save_IFS
25301 shift
25302 ac_file=$1
25303 shift
25305 case $ac_mode in
25306 :L) ac_source=$1;;
25307 :[FH])
25308 ac_file_inputs=
25309 for ac_f
25311 case $ac_f in
25312 -) ac_f="$tmp/stdin";;
25313 *) # Look for the file first in the build tree, then in the source tree
25314 # (if the path is not absolute). The absolute path cannot be DOS-style,
25315 # because $ac_f cannot contain `:'.
25316 test -f "$ac_f" ||
25317 case $ac_f in
25318 [\\/$]*) false;;
25319 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
25320 esac ||
25321 { { echo "$as_me:$LINENO: error: cannot find input file: $ac_f" >&5
25322 echo "$as_me: error: cannot find input file: $ac_f" >&2;}
25323 { (exit 1); exit 1; }; };;
25324 esac
25325 ac_file_inputs="$ac_file_inputs $ac_f"
25326 done
25328 # Let's still pretend it is `configure' which instantiates (i.e., don't
25329 # use $as_me), people would be surprised to read:
25330 # /* config.h. Generated by config.status. */
25331 configure_input="Generated from "`IFS=:
25332 echo $* | sed 's|^[^:]*/||;s|:[^:]*/|, |g'`" by configure."
25333 if test x"$ac_file" != x-; then
25334 configure_input="$ac_file. $configure_input"
25335 { echo "$as_me:$LINENO: creating $ac_file" >&5
25336 echo "$as_me: creating $ac_file" >&6;}
25339 case $ac_tag in
25340 *:-:* | *:-) cat >"$tmp/stdin";;
25341 esac
25343 esac
25345 ac_dir=`$as_dirname -- "$ac_file" ||
25346 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
25347 X"$ac_file" : 'X\(//\)[^/]' \| \
25348 X"$ac_file" : 'X\(//\)$' \| \
25349 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
25350 echo X"$ac_file" |
25351 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
25352 s//\1/
25355 /^X\(\/\/\)[^/].*/{
25356 s//\1/
25359 /^X\(\/\/\)$/{
25360 s//\1/
25363 /^X\(\/\).*/{
25364 s//\1/
25367 s/.*/./; q'`
25368 { as_dir="$ac_dir"
25369 case $as_dir in #(
25370 -*) as_dir=./$as_dir;;
25371 esac
25372 test -d "$as_dir" || { $as_mkdir_p && mkdir -p "$as_dir"; } || {
25373 as_dirs=
25374 while :; do
25375 case $as_dir in #(
25376 *\'*) as_qdir=`echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #(
25377 *) as_qdir=$as_dir;;
25378 esac
25379 as_dirs="'$as_qdir' $as_dirs"
25380 as_dir=`$as_dirname -- "$as_dir" ||
25381 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
25382 X"$as_dir" : 'X\(//\)[^/]' \| \
25383 X"$as_dir" : 'X\(//\)$' \| \
25384 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
25385 echo X"$as_dir" |
25386 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
25387 s//\1/
25390 /^X\(\/\/\)[^/].*/{
25391 s//\1/
25394 /^X\(\/\/\)$/{
25395 s//\1/
25398 /^X\(\/\).*/{
25399 s//\1/
25402 s/.*/./; q'`
25403 test -d "$as_dir" && break
25404 done
25405 test -z "$as_dirs" || eval "mkdir $as_dirs"
25406 } || test -d "$as_dir" || { { echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5
25407 echo "$as_me: error: cannot create directory $as_dir" >&2;}
25408 { (exit 1); exit 1; }; }; }
25409 ac_builddir=.
25411 case "$ac_dir" in
25412 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
25414 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
25415 # A ".." for each directory in $ac_dir_suffix.
25416 ac_top_builddir_sub=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'`
25417 case $ac_top_builddir_sub in
25418 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
25419 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
25420 esac ;;
25421 esac
25422 ac_abs_top_builddir=$ac_pwd
25423 ac_abs_builddir=$ac_pwd$ac_dir_suffix
25424 # for backward compatibility:
25425 ac_top_builddir=$ac_top_build_prefix
25427 case $srcdir in
25428 .) # We are building in place.
25429 ac_srcdir=.
25430 ac_top_srcdir=$ac_top_builddir_sub
25431 ac_abs_top_srcdir=$ac_pwd ;;
25432 [\\/]* | ?:[\\/]* ) # Absolute name.
25433 ac_srcdir=$srcdir$ac_dir_suffix;
25434 ac_top_srcdir=$srcdir
25435 ac_abs_top_srcdir=$srcdir ;;
25436 *) # Relative name.
25437 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
25438 ac_top_srcdir=$ac_top_build_prefix$srcdir
25439 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
25440 esac
25441 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
25444 case $ac_mode in
25447 # CONFIG_FILE
25450 case $INSTALL in
25451 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
25452 *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
25453 esac
25454 _ACEOF
25456 cat >>$CONFIG_STATUS <<\_ACEOF
25457 # If the template does not know about datarootdir, expand it.
25458 # FIXME: This hack should be removed a few years after 2.60.
25459 ac_datarootdir_hack=; ac_datarootdir_seen=
25461 case `sed -n '/datarootdir/ {
25465 /@datadir@/p
25466 /@docdir@/p
25467 /@infodir@/p
25468 /@localedir@/p
25469 /@mandir@/p
25470 ' $ac_file_inputs` in
25471 *datarootdir*) ac_datarootdir_seen=yes;;
25472 *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
25473 { echo "$as_me:$LINENO: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
25474 echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
25475 _ACEOF
25476 cat >>$CONFIG_STATUS <<_ACEOF
25477 ac_datarootdir_hack='
25478 s&@datadir@&$datadir&g
25479 s&@docdir@&$docdir&g
25480 s&@infodir@&$infodir&g
25481 s&@localedir@&$localedir&g
25482 s&@mandir@&$mandir&g
25483 s&\\\${datarootdir}&$datarootdir&g' ;;
25484 esac
25485 _ACEOF
25487 # Neutralize VPATH when `$srcdir' = `.'.
25488 # Shell code in configure.ac might set extrasub.
25489 # FIXME: do we really want to maintain this feature?
25490 cat >>$CONFIG_STATUS <<_ACEOF
25491 sed "$ac_vpsub
25492 $extrasub
25493 _ACEOF
25494 cat >>$CONFIG_STATUS <<\_ACEOF
25496 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
25497 s&@configure_input@&$configure_input&;t t
25498 s&@top_builddir@&$ac_top_builddir_sub&;t t
25499 s&@srcdir@&$ac_srcdir&;t t
25500 s&@abs_srcdir@&$ac_abs_srcdir&;t t
25501 s&@top_srcdir@&$ac_top_srcdir&;t t
25502 s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
25503 s&@builddir@&$ac_builddir&;t t
25504 s&@abs_builddir@&$ac_abs_builddir&;t t
25505 s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
25506 s&@INSTALL@&$ac_INSTALL&;t t
25507 $ac_datarootdir_hack
25508 " $ac_file_inputs | sed -f "$tmp/subs-1.sed" | sed -f "$tmp/subs-2.sed" >$tmp/out
25510 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
25511 { ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out"`; test -n "$ac_out"; } &&
25512 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' "$tmp/out"`; test -z "$ac_out"; } &&
25513 { echo "$as_me:$LINENO: WARNING: $ac_file contains a reference to the variable \`datarootdir'
25514 which seems to be undefined. Please make sure it is defined." >&5
25515 echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
25516 which seems to be undefined. Please make sure it is defined." >&2;}
25518 rm -f "$tmp/stdin"
25519 case $ac_file in
25520 -) cat "$tmp/out"; rm -f "$tmp/out";;
25521 *) rm -f "$ac_file"; mv "$tmp/out" $ac_file;;
25522 esac
25526 # CONFIG_HEADER
25528 _ACEOF
25530 # Transform confdefs.h into a sed script `conftest.defines', that
25531 # substitutes the proper values into config.h.in to produce config.h.
25532 rm -f conftest.defines conftest.tail
25533 # First, append a space to every undef/define line, to ease matching.
25534 echo 's/$/ /' >conftest.defines
25535 # Then, protect against being on the right side of a sed subst, or in
25536 # an unquoted here document, in config.status. If some macros were
25537 # called several times there might be several #defines for the same
25538 # symbol, which is useless. But do not sort them, since the last
25539 # AC_DEFINE must be honored.
25540 ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
25541 # These sed commands are passed to sed as "A NAME B PARAMS C VALUE D", where
25542 # NAME is the cpp macro being defined, VALUE is the value it is being given.
25543 # PARAMS is the parameter list in the macro definition--in most cases, it's
25544 # just an empty string.
25545 ac_dA='s,^\\([ #]*\\)[^ ]*\\([ ]*'
25546 ac_dB='\\)[ (].*,\\1define\\2'
25547 ac_dC=' '
25548 ac_dD=' ,'
25550 uniq confdefs.h |
25551 sed -n '
25552 t rset
25553 :rset
25554 s/^[ ]*#[ ]*define[ ][ ]*//
25555 t ok
25558 s/[\\&,]/\\&/g
25559 s/^\('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/ '"$ac_dA"'\1'"$ac_dB"'\2'"${ac_dC}"'\3'"$ac_dD"'/p
25560 s/^\('"$ac_word_re"'\)[ ]*\(.*\)/'"$ac_dA"'\1'"$ac_dB$ac_dC"'\2'"$ac_dD"'/p
25561 ' >>conftest.defines
25563 # Remove the space that was appended to ease matching.
25564 # Then replace #undef with comments. This is necessary, for
25565 # example, in the case of _POSIX_SOURCE, which is predefined and required
25566 # on some systems where configure will not decide to define it.
25567 # (The regexp can be short, since the line contains either #define or #undef.)
25568 echo 's/ $//
25569 s,^[ #]*u.*,/* & */,' >>conftest.defines
25571 # Break up conftest.defines:
25572 ac_max_sed_lines=50
25574 # First sed command is: sed -f defines.sed $ac_file_inputs >"$tmp/out1"
25575 # Second one is: sed -f defines.sed "$tmp/out1" >"$tmp/out2"
25576 # Third one will be: sed -f defines.sed "$tmp/out2" >"$tmp/out1"
25577 # et cetera.
25578 ac_in='$ac_file_inputs'
25579 ac_out='"$tmp/out1"'
25580 ac_nxt='"$tmp/out2"'
25582 while :
25584 # Write a here document:
25585 cat >>$CONFIG_STATUS <<_ACEOF
25586 # First, check the format of the line:
25587 cat >"\$tmp/defines.sed" <<\\CEOF
25588 /^[ ]*#[ ]*undef[ ][ ]*$ac_word_re[ ]*\$/b def
25589 /^[ ]*#[ ]*define[ ][ ]*$ac_word_re[( ]/b def
25591 :def
25592 _ACEOF
25593 sed ${ac_max_sed_lines}q conftest.defines >>$CONFIG_STATUS
25594 echo 'CEOF
25595 sed -f "$tmp/defines.sed"' "$ac_in >$ac_out" >>$CONFIG_STATUS
25596 ac_in=$ac_out; ac_out=$ac_nxt; ac_nxt=$ac_in
25597 sed 1,${ac_max_sed_lines}d conftest.defines >conftest.tail
25598 grep . conftest.tail >/dev/null || break
25599 rm -f conftest.defines
25600 mv conftest.tail conftest.defines
25601 done
25602 rm -f conftest.defines conftest.tail
25604 echo "ac_result=$ac_in" >>$CONFIG_STATUS
25605 cat >>$CONFIG_STATUS <<\_ACEOF
25606 if test x"$ac_file" != x-; then
25607 echo "/* $configure_input */" >"$tmp/config.h"
25608 cat "$ac_result" >>"$tmp/config.h"
25609 if diff $ac_file "$tmp/config.h" >/dev/null 2>&1; then
25610 { echo "$as_me:$LINENO: $ac_file is unchanged" >&5
25611 echo "$as_me: $ac_file is unchanged" >&6;}
25612 else
25613 rm -f $ac_file
25614 mv "$tmp/config.h" $ac_file
25616 else
25617 echo "/* $configure_input */"
25618 cat "$ac_result"
25620 rm -f "$tmp/out12"
25623 :C) { echo "$as_me:$LINENO: executing $ac_file commands" >&5
25624 echo "$as_me: executing $ac_file commands" >&6;}
25626 esac
25629 case $ac_file$ac_mode in
25630 "default":C)
25632 ### Make the necessary directories, if they don't exist.
25633 for dir in etc lisp ; do
25634 test -d ${dir} || mkdir ${dir}
25635 done
25637 # Build src/Makefile from ${srcdir}/src/Makefile.c
25638 # and lib-src/Makefile from ${srcdir}/lib-src/Makefile.c
25639 # This must be done after src/config.h is built, since we rely on that file.
25641 echo creating src/epaths.h
25642 ${MAKE-make} epaths-force
25644 # As of 2000-11-19, newest development versions of GNU cpp preprocess
25645 # `..' to `. .' unless invoked with -traditional
25647 if test "x$GCC" = xyes && test "x$CPP_NEED_TRADITIONAL" = xyes; then
25648 CPPFLAGS="$CPPFLAGS -traditional"
25651 echo creating lib-src/Makefile
25652 ( cd lib-src
25653 rm -f junk.c junk1.c junk2.c
25654 sed -e '/start of cpp stuff/q' \
25655 < Makefile.c > junk1.c
25656 sed -e '1,/start of cpp stuff/d'\
25657 -e 's,/\*\*/#\(.*\)$,/* \1 */,' \
25658 < Makefile.c > junk.c
25659 $CPP $cpp_undefs -I. -I$srcdir/src $CPPFLAGS junk.c | \
25660 sed -e 's/^ / /' -e '/^#/d' -e '/^[ \f]*$/d' > junk2.c
25661 cat junk1.c junk2.c > Makefile.new
25662 rm -f junk.c junk1.c junk2.c
25663 chmod 444 Makefile.new
25664 mv -f Makefile.new Makefile
25667 echo creating src/Makefile
25668 ( cd src
25669 rm -f junk.c junk1.c junk2.c
25670 sed -e '/start of cpp stuff/q' \
25671 < Makefile.c > junk1.c
25672 sed -e '1,/start of cpp stuff/d'\
25673 -e 's,/\*\*/#\(.*\)$,/* \1 */,' \
25674 < Makefile.c > junk.c
25675 $CPP $cpp_undefs -I. -I$srcdir/src $CPPFLAGS junk.c | \
25676 sed -e 's/^ / /' -e '/^#/d' -e '/^[ \f]*$/d' > junk2.c
25677 cat junk1.c junk2.c > Makefile.new
25678 rm -f junk.c junk1.c junk2.c
25679 chmod 444 Makefile.new
25680 mv -f Makefile.new Makefile
25683 if test ! -f src/.gdbinit && test -f $srcdir/src/.gdbinit; then
25684 echo creating src/.gdbinit
25685 echo source $srcdir/src/.gdbinit > src/.gdbinit
25690 esac
25691 done # for ac_tag
25694 { (exit 0); exit 0; }
25695 _ACEOF
25696 chmod +x $CONFIG_STATUS
25697 ac_clean_files=$ac_clean_files_save
25700 # configure is writing to config.log, and then calls config.status.
25701 # config.status does its own redirection, appending to config.log.
25702 # Unfortunately, on DOS this fails, as config.log is still kept open
25703 # by configure, so config.status won't be able to write to it; its
25704 # output is simply discarded. So we exec the FD to /dev/null,
25705 # effectively closing config.log, so it can be properly (re)opened and
25706 # appended to by config.status. When coming back to configure, we
25707 # need to make the FD available again.
25708 if test "$no_create" != yes; then
25709 ac_cs_success=:
25710 ac_config_status_args=
25711 test "$silent" = yes &&
25712 ac_config_status_args="$ac_config_status_args --quiet"
25713 exec 5>/dev/null
25714 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
25715 exec 5>>config.log
25716 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
25717 # would make configure fail if this is the last instruction.
25718 $ac_cs_success || { (exit 1); exit 1; }