(doc-view-mode): Bugfix: Add conversion killing
[emacs.git] / configure
blob18fd1f917844f992cd2a1b4cc3b523052806617b
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 ns_appdir
737 ns_appbindir
738 ns_appresdir
739 ns_appsrc
740 GNUSTEP_MAKEFILES
741 GNUSTEP_SYSTEM_HEADERS
742 GNUSTEP_SYSTEM_LIBRARIES
743 GNU_OBJC_CFLAGS
744 LIB_SRC_EXTRA_INSTALLABLES
745 LTLIBOBJS'
746 ac_subst_files=''
747 ac_precious_vars='build_alias
748 host_alias
749 target_alias
751 CFLAGS
752 LDFLAGS
753 LIBS
754 CPPFLAGS
756 XMKMF'
759 # Initialize some variables set by options.
760 ac_init_help=
761 ac_init_version=false
762 # The variables have the same names as the options, with
763 # dashes changed to underlines.
764 cache_file=/dev/null
765 exec_prefix=NONE
766 no_create=
767 no_recursion=
768 prefix=NONE
769 program_prefix=NONE
770 program_suffix=NONE
771 program_transform_name=s,x,x,
772 silent=
773 site=
774 srcdir=
775 verbose=
776 x_includes=NONE
777 x_libraries=NONE
779 # Installation directory options.
780 # These are left unexpanded so users can "make install exec_prefix=/foo"
781 # and all the variables that are supposed to be based on exec_prefix
782 # by default will actually change.
783 # Use braces instead of parens because sh, perl, etc. also accept them.
784 # (The list follows the same order as the GNU Coding Standards.)
785 bindir='${exec_prefix}/bin'
786 sbindir='${exec_prefix}/sbin'
787 libexecdir='${exec_prefix}/libexec'
788 datarootdir='${prefix}/share'
789 datadir='${datarootdir}'
790 sysconfdir='${prefix}/etc'
791 sharedstatedir='${prefix}/com'
792 localstatedir='${prefix}/var'
793 includedir='${prefix}/include'
794 oldincludedir='/usr/include'
795 docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
796 infodir='${datarootdir}/info'
797 htmldir='${docdir}'
798 dvidir='${docdir}'
799 pdfdir='${docdir}'
800 psdir='${docdir}'
801 libdir='${exec_prefix}/lib'
802 localedir='${datarootdir}/locale'
803 mandir='${datarootdir}/man'
805 ac_prev=
806 ac_dashdash=
807 for ac_option
809 # If the previous option needs an argument, assign it.
810 if test -n "$ac_prev"; then
811 eval $ac_prev=\$ac_option
812 ac_prev=
813 continue
816 case $ac_option in
817 *=*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
818 *) ac_optarg=yes ;;
819 esac
821 # Accept the important Cygnus configure options, so we can diagnose typos.
823 case $ac_dashdash$ac_option in
825 ac_dashdash=yes ;;
827 -bindir | --bindir | --bindi | --bind | --bin | --bi)
828 ac_prev=bindir ;;
829 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
830 bindir=$ac_optarg ;;
832 -build | --build | --buil | --bui | --bu)
833 ac_prev=build_alias ;;
834 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
835 build_alias=$ac_optarg ;;
837 -cache-file | --cache-file | --cache-fil | --cache-fi \
838 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
839 ac_prev=cache_file ;;
840 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
841 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
842 cache_file=$ac_optarg ;;
844 --config-cache | -C)
845 cache_file=config.cache ;;
847 -datadir | --datadir | --datadi | --datad)
848 ac_prev=datadir ;;
849 -datadir=* | --datadir=* | --datadi=* | --datad=*)
850 datadir=$ac_optarg ;;
852 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
853 | --dataroo | --dataro | --datar)
854 ac_prev=datarootdir ;;
855 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
856 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
857 datarootdir=$ac_optarg ;;
859 -disable-* | --disable-*)
860 ac_feature=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
861 # Reject names that are not valid shell variable names.
862 expr "x$ac_feature" : ".*[^-._$as_cr_alnum]" >/dev/null &&
863 { echo "$as_me: error: invalid feature name: $ac_feature" >&2
864 { (exit 1); exit 1; }; }
865 ac_feature=`echo $ac_feature | sed 's/[-.]/_/g'`
866 eval enable_$ac_feature=no ;;
868 -docdir | --docdir | --docdi | --doc | --do)
869 ac_prev=docdir ;;
870 -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
871 docdir=$ac_optarg ;;
873 -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
874 ac_prev=dvidir ;;
875 -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
876 dvidir=$ac_optarg ;;
878 -enable-* | --enable-*)
879 ac_feature=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
880 # Reject names that are not valid shell variable names.
881 expr "x$ac_feature" : ".*[^-._$as_cr_alnum]" >/dev/null &&
882 { echo "$as_me: error: invalid feature name: $ac_feature" >&2
883 { (exit 1); exit 1; }; }
884 ac_feature=`echo $ac_feature | sed 's/[-.]/_/g'`
885 eval enable_$ac_feature=\$ac_optarg ;;
887 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
888 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
889 | --exec | --exe | --ex)
890 ac_prev=exec_prefix ;;
891 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
892 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
893 | --exec=* | --exe=* | --ex=*)
894 exec_prefix=$ac_optarg ;;
896 -gas | --gas | --ga | --g)
897 # Obsolete; use --with-gas.
898 with_gas=yes ;;
900 -help | --help | --hel | --he | -h)
901 ac_init_help=long ;;
902 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
903 ac_init_help=recursive ;;
904 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
905 ac_init_help=short ;;
907 -host | --host | --hos | --ho)
908 ac_prev=host_alias ;;
909 -host=* | --host=* | --hos=* | --ho=*)
910 host_alias=$ac_optarg ;;
912 -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
913 ac_prev=htmldir ;;
914 -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
915 | --ht=*)
916 htmldir=$ac_optarg ;;
918 -includedir | --includedir | --includedi | --included | --include \
919 | --includ | --inclu | --incl | --inc)
920 ac_prev=includedir ;;
921 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
922 | --includ=* | --inclu=* | --incl=* | --inc=*)
923 includedir=$ac_optarg ;;
925 -infodir | --infodir | --infodi | --infod | --info | --inf)
926 ac_prev=infodir ;;
927 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
928 infodir=$ac_optarg ;;
930 -libdir | --libdir | --libdi | --libd)
931 ac_prev=libdir ;;
932 -libdir=* | --libdir=* | --libdi=* | --libd=*)
933 libdir=$ac_optarg ;;
935 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
936 | --libexe | --libex | --libe)
937 ac_prev=libexecdir ;;
938 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
939 | --libexe=* | --libex=* | --libe=*)
940 libexecdir=$ac_optarg ;;
942 -localedir | --localedir | --localedi | --localed | --locale)
943 ac_prev=localedir ;;
944 -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
945 localedir=$ac_optarg ;;
947 -localstatedir | --localstatedir | --localstatedi | --localstated \
948 | --localstate | --localstat | --localsta | --localst | --locals)
949 ac_prev=localstatedir ;;
950 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
951 | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
952 localstatedir=$ac_optarg ;;
954 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
955 ac_prev=mandir ;;
956 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
957 mandir=$ac_optarg ;;
959 -nfp | --nfp | --nf)
960 # Obsolete; use --without-fp.
961 with_fp=no ;;
963 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
964 | --no-cr | --no-c | -n)
965 no_create=yes ;;
967 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
968 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
969 no_recursion=yes ;;
971 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
972 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
973 | --oldin | --oldi | --old | --ol | --o)
974 ac_prev=oldincludedir ;;
975 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
976 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
977 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
978 oldincludedir=$ac_optarg ;;
980 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
981 ac_prev=prefix ;;
982 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
983 prefix=$ac_optarg ;;
985 -program-prefix | --program-prefix | --program-prefi | --program-pref \
986 | --program-pre | --program-pr | --program-p)
987 ac_prev=program_prefix ;;
988 -program-prefix=* | --program-prefix=* | --program-prefi=* \
989 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
990 program_prefix=$ac_optarg ;;
992 -program-suffix | --program-suffix | --program-suffi | --program-suff \
993 | --program-suf | --program-su | --program-s)
994 ac_prev=program_suffix ;;
995 -program-suffix=* | --program-suffix=* | --program-suffi=* \
996 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
997 program_suffix=$ac_optarg ;;
999 -program-transform-name | --program-transform-name \
1000 | --program-transform-nam | --program-transform-na \
1001 | --program-transform-n | --program-transform- \
1002 | --program-transform | --program-transfor \
1003 | --program-transfo | --program-transf \
1004 | --program-trans | --program-tran \
1005 | --progr-tra | --program-tr | --program-t)
1006 ac_prev=program_transform_name ;;
1007 -program-transform-name=* | --program-transform-name=* \
1008 | --program-transform-nam=* | --program-transform-na=* \
1009 | --program-transform-n=* | --program-transform-=* \
1010 | --program-transform=* | --program-transfor=* \
1011 | --program-transfo=* | --program-transf=* \
1012 | --program-trans=* | --program-tran=* \
1013 | --progr-tra=* | --program-tr=* | --program-t=*)
1014 program_transform_name=$ac_optarg ;;
1016 -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1017 ac_prev=pdfdir ;;
1018 -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1019 pdfdir=$ac_optarg ;;
1021 -psdir | --psdir | --psdi | --psd | --ps)
1022 ac_prev=psdir ;;
1023 -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1024 psdir=$ac_optarg ;;
1026 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1027 | -silent | --silent | --silen | --sile | --sil)
1028 silent=yes ;;
1030 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1031 ac_prev=sbindir ;;
1032 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1033 | --sbi=* | --sb=*)
1034 sbindir=$ac_optarg ;;
1036 -sharedstatedir | --sharedstatedir | --sharedstatedi \
1037 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1038 | --sharedst | --shareds | --shared | --share | --shar \
1039 | --sha | --sh)
1040 ac_prev=sharedstatedir ;;
1041 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1042 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1043 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1044 | --sha=* | --sh=*)
1045 sharedstatedir=$ac_optarg ;;
1047 -site | --site | --sit)
1048 ac_prev=site ;;
1049 -site=* | --site=* | --sit=*)
1050 site=$ac_optarg ;;
1052 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1053 ac_prev=srcdir ;;
1054 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1055 srcdir=$ac_optarg ;;
1057 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1058 | --syscon | --sysco | --sysc | --sys | --sy)
1059 ac_prev=sysconfdir ;;
1060 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1061 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1062 sysconfdir=$ac_optarg ;;
1064 -target | --target | --targe | --targ | --tar | --ta | --t)
1065 ac_prev=target_alias ;;
1066 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1067 target_alias=$ac_optarg ;;
1069 -v | -verbose | --verbose | --verbos | --verbo | --verb)
1070 verbose=yes ;;
1072 -version | --version | --versio | --versi | --vers | -V)
1073 ac_init_version=: ;;
1075 -with-* | --with-*)
1076 ac_package=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1077 # Reject names that are not valid shell variable names.
1078 expr "x$ac_package" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1079 { echo "$as_me: error: invalid package name: $ac_package" >&2
1080 { (exit 1); exit 1; }; }
1081 ac_package=`echo $ac_package | sed 's/[-.]/_/g'`
1082 eval with_$ac_package=\$ac_optarg ;;
1084 -without-* | --without-*)
1085 ac_package=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1086 # Reject names that are not valid shell variable names.
1087 expr "x$ac_package" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1088 { echo "$as_me: error: invalid package name: $ac_package" >&2
1089 { (exit 1); exit 1; }; }
1090 ac_package=`echo $ac_package | sed 's/[-.]/_/g'`
1091 eval with_$ac_package=no ;;
1093 --x)
1094 # Obsolete; use --with-x.
1095 with_x=yes ;;
1097 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1098 | --x-incl | --x-inc | --x-in | --x-i)
1099 ac_prev=x_includes ;;
1100 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1101 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1102 x_includes=$ac_optarg ;;
1104 -x-libraries | --x-libraries | --x-librarie | --x-librari \
1105 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1106 ac_prev=x_libraries ;;
1107 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1108 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1109 x_libraries=$ac_optarg ;;
1111 -*) { echo "$as_me: error: unrecognized option: $ac_option
1112 Try \`$0 --help' for more information." >&2
1113 { (exit 1); exit 1; }; }
1116 *=*)
1117 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1118 # Reject names that are not valid shell variable names.
1119 expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev/null &&
1120 { echo "$as_me: error: invalid variable name: $ac_envvar" >&2
1121 { (exit 1); exit 1; }; }
1122 eval $ac_envvar=\$ac_optarg
1123 export $ac_envvar ;;
1126 # FIXME: should be removed in autoconf 3.0.
1127 echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1128 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1129 echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1130 : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
1133 esac
1134 done
1136 if test -n "$ac_prev"; then
1137 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1138 { echo "$as_me: error: missing argument to $ac_option" >&2
1139 { (exit 1); exit 1; }; }
1142 # Be sure to have absolute directory names.
1143 for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \
1144 datadir sysconfdir sharedstatedir localstatedir includedir \
1145 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1146 libdir localedir mandir
1148 eval ac_val=\$$ac_var
1149 case $ac_val in
1150 [\\/$]* | ?:[\\/]* ) continue;;
1151 NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1152 esac
1153 { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
1154 { (exit 1); exit 1; }; }
1155 done
1157 # There might be people who depend on the old broken behavior: `$host'
1158 # used to hold the argument of --host etc.
1159 # FIXME: To remove some day.
1160 build=$build_alias
1161 host=$host_alias
1162 target=$target_alias
1164 # FIXME: To remove some day.
1165 if test "x$host_alias" != x; then
1166 if test "x$build_alias" = x; then
1167 cross_compiling=maybe
1168 echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
1169 If a cross compiler is detected then cross compile mode will be used." >&2
1170 elif test "x$build_alias" != "x$host_alias"; then
1171 cross_compiling=yes
1175 ac_tool_prefix=
1176 test -n "$host_alias" && ac_tool_prefix=$host_alias-
1178 test "$silent" = yes && exec 6>/dev/null
1181 ac_pwd=`pwd` && test -n "$ac_pwd" &&
1182 ac_ls_di=`ls -di .` &&
1183 ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1184 { echo "$as_me: error: Working directory cannot be determined" >&2
1185 { (exit 1); exit 1; }; }
1186 test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1187 { echo "$as_me: error: pwd does not report name of working directory" >&2
1188 { (exit 1); exit 1; }; }
1191 # Find the source files, if location was not specified.
1192 if test -z "$srcdir"; then
1193 ac_srcdir_defaulted=yes
1194 # Try the directory containing this script, then the parent directory.
1195 ac_confdir=`$as_dirname -- "$0" ||
1196 $as_expr X"$0" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1197 X"$0" : 'X\(//\)[^/]' \| \
1198 X"$0" : 'X\(//\)$' \| \
1199 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
1200 echo X"$0" |
1201 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1202 s//\1/
1205 /^X\(\/\/\)[^/].*/{
1206 s//\1/
1209 /^X\(\/\/\)$/{
1210 s//\1/
1213 /^X\(\/\).*/{
1214 s//\1/
1217 s/.*/./; q'`
1218 srcdir=$ac_confdir
1219 if test ! -r "$srcdir/$ac_unique_file"; then
1220 srcdir=..
1222 else
1223 ac_srcdir_defaulted=no
1225 if test ! -r "$srcdir/$ac_unique_file"; then
1226 test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1227 { echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2
1228 { (exit 1); exit 1; }; }
1230 ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1231 ac_abs_confdir=`(
1232 cd "$srcdir" && test -r "./$ac_unique_file" || { echo "$as_me: error: $ac_msg" >&2
1233 { (exit 1); exit 1; }; }
1234 pwd)`
1235 # When building in place, set srcdir=.
1236 if test "$ac_abs_confdir" = "$ac_pwd"; then
1237 srcdir=.
1239 # Remove unnecessary trailing slashes from srcdir.
1240 # Double slashes in file names in object file debugging info
1241 # mess up M-x gdb in Emacs.
1242 case $srcdir in
1243 */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1244 esac
1245 for ac_var in $ac_precious_vars; do
1246 eval ac_env_${ac_var}_set=\${${ac_var}+set}
1247 eval ac_env_${ac_var}_value=\$${ac_var}
1248 eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1249 eval ac_cv_env_${ac_var}_value=\$${ac_var}
1250 done
1253 # Report the --help message.
1255 if test "$ac_init_help" = "long"; then
1256 # Omit some internal or obsolete options to make the list less imposing.
1257 # This message is too long to be a string in the A/UX 3.1 sh.
1258 cat <<_ACEOF
1259 \`configure' configures emacs 23.0.60 to adapt to many kinds of systems.
1261 Usage: $0 [OPTION]... [VAR=VALUE]...
1263 To assign environment variables (e.g., CC, CFLAGS...), specify them as
1264 VAR=VALUE. See below for descriptions of some of the useful variables.
1266 Defaults for the options are specified in brackets.
1268 Configuration:
1269 -h, --help display this help and exit
1270 --help=short display options specific to this package
1271 --help=recursive display the short help of all the included packages
1272 -V, --version display version information and exit
1273 -q, --quiet, --silent do not print \`checking...' messages
1274 --cache-file=FILE cache test results in FILE [disabled]
1275 -C, --config-cache alias for \`--cache-file=config.cache'
1276 -n, --no-create do not create output files
1277 --srcdir=DIR find the sources in DIR [configure dir or \`..']
1279 Installation directories:
1280 --prefix=PREFIX install architecture-independent files in PREFIX
1281 [$ac_default_prefix]
1282 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
1283 [PREFIX]
1285 By default, \`make install' will install all the files in
1286 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
1287 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1288 for instance \`--prefix=\$HOME'.
1290 For better control, use the options below.
1292 Fine tuning of the installation directories:
1293 --bindir=DIR user executables [EPREFIX/bin]
1294 --sbindir=DIR system admin executables [EPREFIX/sbin]
1295 --libexecdir=DIR program executables [EPREFIX/libexec]
1296 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
1297 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
1298 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
1299 --libdir=DIR object code libraries [EPREFIX/lib]
1300 --includedir=DIR C header files [PREFIX/include]
1301 --oldincludedir=DIR C header files for non-gcc [/usr/include]
1302 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
1303 --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
1304 --infodir=DIR info documentation [DATAROOTDIR/info]
1305 --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
1306 --mandir=DIR man documentation [DATAROOTDIR/man]
1307 --docdir=DIR documentation root [DATAROOTDIR/doc/emacs]
1308 --htmldir=DIR html documentation [DOCDIR]
1309 --dvidir=DIR dvi documentation [DOCDIR]
1310 --pdfdir=DIR pdf documentation [DOCDIR]
1311 --psdir=DIR ps documentation [DOCDIR]
1312 _ACEOF
1314 cat <<\_ACEOF
1316 Program names:
1317 --program-prefix=PREFIX prepend PREFIX to installed program names
1318 --program-suffix=SUFFIX append SUFFIX to installed program names
1319 --program-transform-name=PROGRAM run sed PROGRAM on installed program names
1321 X features:
1322 --x-includes=DIR X include files are in DIR
1323 --x-libraries=DIR X library files are in DIR
1325 System types:
1326 --build=BUILD configure for building on BUILD [guessed]
1327 --host=HOST cross-compile to build programs to run on HOST [BUILD]
1328 _ACEOF
1331 if test -n "$ac_init_help"; then
1332 case $ac_init_help in
1333 short | recursive ) echo "Configuration of emacs 23.0.60:";;
1334 esac
1335 cat <<\_ACEOF
1337 Optional Features:
1338 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
1339 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
1340 --enable-cocoa-experimental-ctrl-g
1341 enable experimental improved ctrl-g recognition
1342 --disable-ns-self-contained
1343 disable self contained build under NeXTstep
1344 --enable-asserts compile code with asserts enabled
1345 --enable-maintainer-mode
1346 enable make rules and dependencies not useful (and
1347 sometimes confusing) to the casual installer
1348 --enable-locallisppath=PATH
1349 directories Emacs should search for lisp files
1350 specific to this site
1351 --disable-largefile omit support for large files
1353 Optional Packages:
1354 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
1355 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
1356 --without-pop don't support POP mail retrieval with movemail
1357 --with-kerberos support Kerberos-authenticated POP
1358 --with-kerberos5 support Kerberos version 5 authenticated POP
1359 --with-hesiod support Hesiod to get the POP server host
1360 --without-sound don't compile with sound support
1361 --without-sync-input process async input synchronously
1362 --with-x-toolkit=KIT use an X toolkit (KIT one of: yes, lucid, athena,
1363 motif, gtk, no)
1364 --without-xpm don't compile with XPM image support
1365 --without-jpeg don't compile with JPEG image support
1366 --without-tiff don't compile with TIFF image support
1367 --without-gif don't compile with GIF image support
1368 --without-png don't compile with PNG image support
1369 --without-rsvg don't compile with SVG image support
1370 --without-freetype don't use Freetype for local font support
1371 --without-xft don't use XFT for anti aliased fonts
1372 --without-libotf don't use libotf for OpenType font support
1373 --without-m17n-flt don't use m17n-flt for text shaping
1374 --without-toolkit-scroll-bars
1375 don't use Motif or Xaw3d scroll bars
1376 --without-xaw3d don't use Xaw3d
1377 --without-xim don't use X11 XIM
1378 --with-ns use nextstep (Cocoa or GNUstep) windowing system
1379 --without-gpm don't use -lgpm for mouse support on a GNU/Linux
1380 console
1381 --without-dbus don't compile with D-Bus support
1382 --without-makeinfo don't require makeinfo for building manuals
1384 --with-pkg-config-prog=PATH
1385 path to pkg-config for finding GTK and librsvg
1386 --with-gnustep-conf=PATH
1387 path to GNUstep.conf; default $GNUSTEP_CONFIG_FILE,
1388 or /etc/GNUstep/GNUstep.conf
1389 --with-x use the X Window System
1391 Some influential environment variables:
1392 CC C compiler command
1393 CFLAGS C compiler flags
1394 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
1395 nonstandard directory <lib dir>
1396 LIBS libraries to pass to the linker, e.g. -l<library>
1397 CPPFLAGS C/C++/Objective C preprocessor flags, e.g. -I<include dir> if
1398 you have headers in a nonstandard directory <include dir>
1399 CPP C preprocessor
1400 XMKMF Path to xmkmf, Makefile generator for X Window System
1402 Use these variables to override the choices made by `configure' or to help
1403 it to find libraries and programs with nonstandard names/locations.
1405 _ACEOF
1406 ac_status=$?
1409 if test "$ac_init_help" = "recursive"; then
1410 # If there are subdirs, report their specific --help.
1411 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1412 test -d "$ac_dir" || continue
1413 ac_builddir=.
1415 case "$ac_dir" in
1416 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1418 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
1419 # A ".." for each directory in $ac_dir_suffix.
1420 ac_top_builddir_sub=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'`
1421 case $ac_top_builddir_sub in
1422 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1423 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1424 esac ;;
1425 esac
1426 ac_abs_top_builddir=$ac_pwd
1427 ac_abs_builddir=$ac_pwd$ac_dir_suffix
1428 # for backward compatibility:
1429 ac_top_builddir=$ac_top_build_prefix
1431 case $srcdir in
1432 .) # We are building in place.
1433 ac_srcdir=.
1434 ac_top_srcdir=$ac_top_builddir_sub
1435 ac_abs_top_srcdir=$ac_pwd ;;
1436 [\\/]* | ?:[\\/]* ) # Absolute name.
1437 ac_srcdir=$srcdir$ac_dir_suffix;
1438 ac_top_srcdir=$srcdir
1439 ac_abs_top_srcdir=$srcdir ;;
1440 *) # Relative name.
1441 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1442 ac_top_srcdir=$ac_top_build_prefix$srcdir
1443 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1444 esac
1445 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1447 cd "$ac_dir" || { ac_status=$?; continue; }
1448 # Check for guested configure.
1449 if test -f "$ac_srcdir/configure.gnu"; then
1450 echo &&
1451 $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1452 elif test -f "$ac_srcdir/configure"; then
1453 echo &&
1454 $SHELL "$ac_srcdir/configure" --help=recursive
1455 else
1456 echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1457 fi || ac_status=$?
1458 cd "$ac_pwd" || { ac_status=$?; break; }
1459 done
1462 test -n "$ac_init_help" && exit $ac_status
1463 if $ac_init_version; then
1464 cat <<\_ACEOF
1465 emacs configure 23.0.60
1466 generated by GNU Autoconf 2.61
1468 Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
1469 2002, 2003, 2004, 2005, 2006 Free Software Foundation, Inc.
1470 This configure script is free software; the Free Software Foundation
1471 gives unlimited permission to copy, distribute and modify it.
1472 _ACEOF
1473 exit
1475 cat >config.log <<_ACEOF
1476 This file contains any messages produced by compilers while
1477 running configure, to aid debugging if configure makes a mistake.
1479 It was created by emacs $as_me 23.0.60, which was
1480 generated by GNU Autoconf 2.61. Invocation command line was
1482 $ $0 $@
1484 _ACEOF
1485 exec 5>>config.log
1487 cat <<_ASUNAME
1488 ## --------- ##
1489 ## Platform. ##
1490 ## --------- ##
1492 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1493 uname -m = `(uname -m) 2>/dev/null || echo unknown`
1494 uname -r = `(uname -r) 2>/dev/null || echo unknown`
1495 uname -s = `(uname -s) 2>/dev/null || echo unknown`
1496 uname -v = `(uname -v) 2>/dev/null || echo unknown`
1498 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1499 /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
1501 /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
1502 /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
1503 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1504 /usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
1505 /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
1506 /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
1507 /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
1509 _ASUNAME
1511 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1512 for as_dir in $PATH
1514 IFS=$as_save_IFS
1515 test -z "$as_dir" && as_dir=.
1516 echo "PATH: $as_dir"
1517 done
1518 IFS=$as_save_IFS
1520 } >&5
1522 cat >&5 <<_ACEOF
1525 ## ----------- ##
1526 ## Core tests. ##
1527 ## ----------- ##
1529 _ACEOF
1532 # Keep a trace of the command line.
1533 # Strip out --no-create and --no-recursion so they do not pile up.
1534 # Strip out --silent because we don't want to record it for future runs.
1535 # Also quote any args containing shell meta-characters.
1536 # Make two passes to allow for proper duplicate-argument suppression.
1537 ac_configure_args=
1538 ac_configure_args0=
1539 ac_configure_args1=
1540 ac_must_keep_next=false
1541 for ac_pass in 1 2
1543 for ac_arg
1545 case $ac_arg in
1546 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1547 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1548 | -silent | --silent | --silen | --sile | --sil)
1549 continue ;;
1550 *\'*)
1551 ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1552 esac
1553 case $ac_pass in
1554 1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;;
1556 ac_configure_args1="$ac_configure_args1 '$ac_arg'"
1557 if test $ac_must_keep_next = true; then
1558 ac_must_keep_next=false # Got value, back to normal.
1559 else
1560 case $ac_arg in
1561 *=* | --config-cache | -C | -disable-* | --disable-* \
1562 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1563 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1564 | -with-* | --with-* | -without-* | --without-* | --x)
1565 case "$ac_configure_args0 " in
1566 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1567 esac
1569 -* ) ac_must_keep_next=true ;;
1570 esac
1572 ac_configure_args="$ac_configure_args '$ac_arg'"
1574 esac
1575 done
1576 done
1577 $as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; }
1578 $as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; }
1580 # When interrupted or exit'd, cleanup temporary files, and complete
1581 # config.log. We remove comments because anyway the quotes in there
1582 # would cause problems or look ugly.
1583 # WARNING: Use '\'' to represent an apostrophe within the trap.
1584 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
1585 trap 'exit_status=$?
1586 # Save into config.log some information that might help in debugging.
1588 echo
1590 cat <<\_ASBOX
1591 ## ---------------- ##
1592 ## Cache variables. ##
1593 ## ---------------- ##
1594 _ASBOX
1595 echo
1596 # The following way of writing the cache mishandles newlines in values,
1598 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
1599 eval ac_val=\$$ac_var
1600 case $ac_val in #(
1601 *${as_nl}*)
1602 case $ac_var in #(
1603 *_cv_*) { echo "$as_me:$LINENO: WARNING: Cache variable $ac_var contains a newline." >&5
1604 echo "$as_me: WARNING: Cache variable $ac_var contains a newline." >&2;} ;;
1605 esac
1606 case $ac_var in #(
1607 _ | IFS | as_nl) ;; #(
1608 *) $as_unset $ac_var ;;
1609 esac ;;
1610 esac
1611 done
1612 (set) 2>&1 |
1613 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
1614 *${as_nl}ac_space=\ *)
1615 sed -n \
1616 "s/'\''/'\''\\\\'\'''\''/g;
1617 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
1618 ;; #(
1620 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
1622 esac |
1623 sort
1625 echo
1627 cat <<\_ASBOX
1628 ## ----------------- ##
1629 ## Output variables. ##
1630 ## ----------------- ##
1631 _ASBOX
1632 echo
1633 for ac_var in $ac_subst_vars
1635 eval ac_val=\$$ac_var
1636 case $ac_val in
1637 *\'\''*) ac_val=`echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1638 esac
1639 echo "$ac_var='\''$ac_val'\''"
1640 done | sort
1641 echo
1643 if test -n "$ac_subst_files"; then
1644 cat <<\_ASBOX
1645 ## ------------------- ##
1646 ## File substitutions. ##
1647 ## ------------------- ##
1648 _ASBOX
1649 echo
1650 for ac_var in $ac_subst_files
1652 eval ac_val=\$$ac_var
1653 case $ac_val in
1654 *\'\''*) ac_val=`echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1655 esac
1656 echo "$ac_var='\''$ac_val'\''"
1657 done | sort
1658 echo
1661 if test -s confdefs.h; then
1662 cat <<\_ASBOX
1663 ## ----------- ##
1664 ## confdefs.h. ##
1665 ## ----------- ##
1666 _ASBOX
1667 echo
1668 cat confdefs.h
1669 echo
1671 test "$ac_signal" != 0 &&
1672 echo "$as_me: caught signal $ac_signal"
1673 echo "$as_me: exit $exit_status"
1674 } >&5
1675 rm -f core *.core core.conftest.* &&
1676 rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
1677 exit $exit_status
1679 for ac_signal in 1 2 13 15; do
1680 trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
1681 done
1682 ac_signal=0
1684 # confdefs.h avoids OS command line length limits that DEFS can exceed.
1685 rm -f -r conftest* confdefs.h
1687 # Predefined preprocessor variables.
1689 cat >>confdefs.h <<_ACEOF
1690 #define PACKAGE_NAME "$PACKAGE_NAME"
1691 _ACEOF
1694 cat >>confdefs.h <<_ACEOF
1695 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
1696 _ACEOF
1699 cat >>confdefs.h <<_ACEOF
1700 #define PACKAGE_VERSION "$PACKAGE_VERSION"
1701 _ACEOF
1704 cat >>confdefs.h <<_ACEOF
1705 #define PACKAGE_STRING "$PACKAGE_STRING"
1706 _ACEOF
1709 cat >>confdefs.h <<_ACEOF
1710 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
1711 _ACEOF
1714 # Let the site file select an alternate cache file if it wants to.
1715 # Prefer explicitly selected file to automatically selected ones.
1716 if test -n "$CONFIG_SITE"; then
1717 set x "$CONFIG_SITE"
1718 elif test "x$prefix" != xNONE; then
1719 set x "$prefix/share/config.site" "$prefix/etc/config.site"
1720 else
1721 set x "$ac_default_prefix/share/config.site" \
1722 "$ac_default_prefix/etc/config.site"
1724 shift
1725 for ac_site_file
1727 if test -r "$ac_site_file"; then
1728 { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
1729 echo "$as_me: loading site script $ac_site_file" >&6;}
1730 sed 's/^/| /' "$ac_site_file" >&5
1731 . "$ac_site_file"
1733 done
1735 if test -r "$cache_file"; then
1736 # Some versions of bash will fail to source /dev/null (special
1737 # files actually), so we avoid doing that.
1738 if test -f "$cache_file"; then
1739 { echo "$as_me:$LINENO: loading cache $cache_file" >&5
1740 echo "$as_me: loading cache $cache_file" >&6;}
1741 case $cache_file in
1742 [\\/]* | ?:[\\/]* ) . "$cache_file";;
1743 *) . "./$cache_file";;
1744 esac
1746 else
1747 { echo "$as_me:$LINENO: creating cache $cache_file" >&5
1748 echo "$as_me: creating cache $cache_file" >&6;}
1749 >$cache_file
1752 ac_header_list="$ac_header_list sys/time.h"
1753 ac_header_list="$ac_header_list unistd.h"
1754 ac_func_list="$ac_func_list alarm"
1755 # Check that the precious variables saved in the cache have kept the same
1756 # value.
1757 ac_cache_corrupted=false
1758 for ac_var in $ac_precious_vars; do
1759 eval ac_old_set=\$ac_cv_env_${ac_var}_set
1760 eval ac_new_set=\$ac_env_${ac_var}_set
1761 eval ac_old_val=\$ac_cv_env_${ac_var}_value
1762 eval ac_new_val=\$ac_env_${ac_var}_value
1763 case $ac_old_set,$ac_new_set in
1764 set,)
1765 { echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
1766 echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
1767 ac_cache_corrupted=: ;;
1768 ,set)
1769 { echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5
1770 echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
1771 ac_cache_corrupted=: ;;
1772 ,);;
1774 if test "x$ac_old_val" != "x$ac_new_val"; then
1775 { echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
1776 echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
1777 { echo "$as_me:$LINENO: former value: $ac_old_val" >&5
1778 echo "$as_me: former value: $ac_old_val" >&2;}
1779 { echo "$as_me:$LINENO: current value: $ac_new_val" >&5
1780 echo "$as_me: current value: $ac_new_val" >&2;}
1781 ac_cache_corrupted=:
1782 fi;;
1783 esac
1784 # Pass precious variables to config.status.
1785 if test "$ac_new_set" = set; then
1786 case $ac_new_val in
1787 *\'*) ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
1788 *) ac_arg=$ac_var=$ac_new_val ;;
1789 esac
1790 case " $ac_configure_args " in
1791 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
1792 *) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
1793 esac
1795 done
1796 if $ac_cache_corrupted; then
1797 { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
1798 echo "$as_me: error: changes in the environment can compromise the build" >&2;}
1799 { { echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
1800 echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
1801 { (exit 1); exit 1; }; }
1828 ac_ext=c
1829 ac_cpp='$CPP $CPPFLAGS'
1830 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1831 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1832 ac_compiler_gnu=$ac_cv_c_compiler_gnu
1835 ac_config_headers="$ac_config_headers src/config.h:src/config.in"
1839 test "$program_prefix" != NONE &&
1840 program_transform_name="s&^&$program_prefix&;$program_transform_name"
1841 # Use a double $ so make ignores it.
1842 test "$program_suffix" != NONE &&
1843 program_transform_name="s&\$&$program_suffix&;$program_transform_name"
1844 # Double any \ or $. echo might interpret backslashes.
1845 # By default was `s,x,x', remove it if useless.
1846 cat <<\_ACEOF >conftest.sed
1847 s/[\\$]/&&/g;s/;s,x,x,$//
1848 _ACEOF
1849 program_transform_name=`echo $program_transform_name | sed -f conftest.sed`
1850 rm -f conftest.sed
1853 lispdir='${datadir}/emacs/${version}/lisp'
1854 locallisppath='${datadir}/emacs/${version}/site-lisp:'\
1855 '${datadir}/emacs/site-lisp'
1856 lisppath='${locallisppath}:${lispdir}:${datadir}/emacs/${version}/leim'
1857 etcdir='${datadir}/emacs/${version}/etc'
1858 archlibdir='${libexecdir}/emacs/${version}/${configuration}'
1859 docdir='${datadir}/emacs/${version}/etc'
1860 gamedir='${localstatedir}/games/emacs'
1862 gameuser=games
1867 # Check whether --with-pop was given.
1868 if test "${with_pop+set}" = set; then
1869 withval=$with_pop;
1870 else
1871 with_pop=yes
1874 if test "$with_pop" = yes; then
1875 cat >>confdefs.h <<\_ACEOF
1876 #define MAIL_USE_POP 1
1877 _ACEOF
1883 # Check whether --with-kerberos was given.
1884 if test "${with_kerberos+set}" = set; then
1885 withval=$with_kerberos;
1886 else
1887 with_kerberos=no
1890 if test "$with_kerberos" != no; then
1891 cat >>confdefs.h <<\_ACEOF
1892 #define KERBEROS 1
1893 _ACEOF
1899 # Check whether --with-kerberos5 was given.
1900 if test "${with_kerberos5+set}" = set; then
1901 withval=$with_kerberos5;
1902 else
1903 with_kerberos5=no
1906 if test "${with_kerberos5}" != no; then
1907 if test "${with_kerberos}" = no; then
1908 with_kerberos=yes
1909 cat >>confdefs.h <<\_ACEOF
1910 #define KERBEROS 1
1911 _ACEOF
1915 cat >>confdefs.h <<\_ACEOF
1916 #define KERBEROS5 1
1917 _ACEOF
1922 # Check whether --with-hesiod was given.
1923 if test "${with_hesiod+set}" = set; then
1924 withval=$with_hesiod;
1925 else
1926 with_hesiod=no
1929 if test "$with_hesiod" != no; then
1931 cat >>confdefs.h <<\_ACEOF
1932 #define HESIOD 1
1933 _ACEOF
1938 # Check whether --with-sound was given.
1939 if test "${with_sound+set}" = set; then
1940 withval=$with_sound;
1941 else
1942 with_sound=yes
1947 # Check whether --with-sync-input was given.
1948 if test "${with_sync_input+set}" = set; then
1949 withval=$with_sync_input;
1950 else
1951 with_sync_input=yes
1954 if test "$with_sync_input" = yes; then
1956 cat >>confdefs.h <<\_ACEOF
1957 #define SYNC_INPUT 1
1958 _ACEOF
1963 # Check whether --with-x-toolkit was given.
1964 if test "${with_x_toolkit+set}" = set; then
1965 withval=$with_x_toolkit; case "${withval}" in
1966 y | ye | yes ) val=gtk ;;
1967 n | no ) val=no ;;
1968 l | lu | luc | luci | lucid ) val=lucid ;;
1969 a | at | ath | athe | athen | athena ) val=athena ;;
1970 m | mo | mot | moti | motif ) val=motif ;;
1971 g | gt | gtk ) val=gtk ;;
1973 { { echo "$as_me:$LINENO: error: \`--with-x-toolkit=$withval' is invalid;
1974 this option's value should be \`yes', \`no', \`lucid', \`athena', \`motif' or \`gtk'.
1975 \`yes' and \`gtk' are synonyms. \`athena' and \`lucid' are synonyms." >&5
1976 echo "$as_me: error: \`--with-x-toolkit=$withval' is invalid;
1977 this option's value should be \`yes', \`no', \`lucid', \`athena', \`motif' or \`gtk'.
1978 \`yes' and \`gtk' are synonyms. \`athena' and \`lucid' are synonyms." >&2;}
1979 { (exit 1); exit 1; }; }
1981 esac
1982 with_x_toolkit=$val
1988 # Check whether --with-xpm was given.
1989 if test "${with_xpm+set}" = set; then
1990 withval=$with_xpm;
1991 else
1992 with_xpm=yes
1996 # Check whether --with-jpeg was given.
1997 if test "${with_jpeg+set}" = set; then
1998 withval=$with_jpeg;
1999 else
2000 with_jpeg=yes
2004 # Check whether --with-tiff was given.
2005 if test "${with_tiff+set}" = set; then
2006 withval=$with_tiff;
2007 else
2008 with_tiff=yes
2012 # Check whether --with-gif was given.
2013 if test "${with_gif+set}" = set; then
2014 withval=$with_gif;
2015 else
2016 with_gif=yes
2020 # Check whether --with-png was given.
2021 if test "${with_png+set}" = set; then
2022 withval=$with_png;
2023 else
2024 with_png=yes
2028 # Check whether --with-rsvg was given.
2029 if test "${with_rsvg+set}" = set; then
2030 withval=$with_rsvg;
2031 else
2032 with_rsvg=yes
2037 # Check whether --with-freetype was given.
2038 if test "${with_freetype+set}" = set; then
2039 withval=$with_freetype;
2040 else
2041 with_freetype=yes
2045 # Check whether --with-xft was given.
2046 if test "${with_xft+set}" = set; then
2047 withval=$with_xft;
2048 else
2049 with_xft=yes
2053 # Check whether --with-libotf was given.
2054 if test "${with_libotf+set}" = set; then
2055 withval=$with_libotf;
2056 else
2057 with_libotf=yes
2061 # Check whether --with-m17n-flt was given.
2062 if test "${with_m17n_flt+set}" = set; then
2063 withval=$with_m17n_flt;
2064 else
2065 with_m17n_flt=yes
2070 # Check whether --with-toolkit-scroll-bars was given.
2071 if test "${with_toolkit_scroll_bars+set}" = set; then
2072 withval=$with_toolkit_scroll_bars;
2073 else
2074 with_toolkit_scroll_bars=yes
2078 # Check whether --with-xaw3d was given.
2079 if test "${with_xaw3d+set}" = set; then
2080 withval=$with_xaw3d;
2081 else
2082 with_xaw3d=yes
2086 # Check whether --with-xim was given.
2087 if test "${with_xim+set}" = set; then
2088 withval=$with_xim;
2089 else
2090 with_xim=yes
2094 # Check whether --with-ns was given.
2095 if test "${with_ns+set}" = set; then
2096 withval=$with_ns;
2097 else
2098 with_ns=no
2103 # Check whether --with-gpm was given.
2104 if test "${with_gpm+set}" = set; then
2105 withval=$with_gpm;
2106 else
2107 with_gpm=yes
2111 # Check whether --with-dbus was given.
2112 if test "${with_dbus+set}" = set; then
2113 withval=$with_dbus;
2114 else
2115 with_dbus=yes
2119 ## For the times when you want to build Emacs but don't have
2120 ## a suitable makeinfo, and can live without the manuals.
2122 # Check whether --with-makeinfo was given.
2123 if test "${with_makeinfo+set}" = set; then
2124 withval=$with_makeinfo;
2125 else
2126 with_makeinfo=yes
2131 # Check whether --with-gtk was given.
2132 if test "${with_gtk+set}" = set; then
2133 withval=$with_gtk; { { echo "$as_me:$LINENO: error: --with-gtk has been removed. Use --with-x-toolkit to
2134 specify a toolkit." >&5
2135 echo "$as_me: error: --with-gtk has been removed. Use --with-x-toolkit to
2136 specify a toolkit." >&2;}
2137 { (exit 1); exit 1; }; }
2142 # Check whether --with-gcc was given.
2143 if test "${with_gcc+set}" = set; then
2144 withval=$with_gcc; { { echo "$as_me:$LINENO: error: --with-gcc has been removed. Set the \`CC' environment
2145 variable to specify a compiler." >&5
2146 echo "$as_me: error: --with-gcc has been removed. Set the \`CC' environment
2147 variable to specify a compiler." >&2;}
2148 { (exit 1); exit 1; }; }
2153 # Check whether --with-pkg-config-prog was given.
2154 if test "${with_pkg_config_prog+set}" = set; then
2155 withval=$with_pkg_config_prog;
2158 if test "X${with_pkg_config_prog}" != X; then
2159 if test "${with_pkg_config_prog}" != yes; then
2160 PKG_CONFIG="${with_pkg_config_prog}"
2165 # Check whether --with-gnustep-conf was given.
2166 if test "${with_gnustep_conf+set}" = set; then
2167 withval=$with_gnustep_conf;
2170 test "X${with_gnustep_conf}" != X && test "${with_gnustep_conf}" != yes && \
2171 GNUSTEP_CONFIG_FILE="${with_gnustep_conf}"
2172 test "X$GNUSTEP_CONFIG_FILE" = "X" && \
2173 GNUSTEP_CONFIG_FILE=/etc/GNUstep/GNUstep.conf
2175 # Check whether --enable-cocoa-experimental-ctrl-g was given.
2176 if test "${enable_cocoa_experimental_ctrl_g+set}" = set; then
2177 enableval=$enable_cocoa_experimental_ctrl_g; EN_COCOA_EXPERIMENTAL_CTRL_G=$enableval
2178 else
2179 EN_COCOA_EXPERIMENTAL_CTRL_G=no
2183 # Check whether --enable-ns-self-contained was given.
2184 if test "${enable_ns_self_contained+set}" = set; then
2185 enableval=$enable_ns_self_contained; EN_NS_SELF_CONTAINED=$enableval
2186 else
2187 EN_NS_SELF_CONTAINED=yes
2191 # Check whether --enable-asserts was given.
2192 if test "${enable_asserts+set}" = set; then
2193 enableval=$enable_asserts; USE_XASSERTS=$enableval
2194 else
2195 USE_XASSERTS=no
2199 # Check whether --enable-maintainer-mode was given.
2200 if test "${enable_maintainer_mode+set}" = set; then
2201 enableval=$enable_maintainer_mode; USE_MAINTAINER_MODE=$enableval
2202 else
2203 USE_MAINTAINER_MODE=no
2206 if test $USE_MAINTAINER_MODE = yes; then
2207 MAINT=
2208 else
2209 MAINT=#
2213 # Check whether --enable-locallisppath was given.
2214 if test "${enable_locallisppath+set}" = set; then
2215 enableval=$enable_locallisppath; if test "${enableval}" = "no"; then
2216 locallisppath=
2217 elif test "${enableval}" != "yes"; then
2218 locallisppath=${enableval}
2223 #### Make srcdir absolute, if it isn't already. It's important to
2224 #### avoid running the path through pwd unnecessarily, since pwd can
2225 #### give you automounter prefixes, which can go away. We do all this
2226 #### so Emacs can find its files when run uninstalled.
2227 ## Make sure CDPATH doesn't affect cd (in case PWD is relative).
2228 unset CDPATH
2229 case "${srcdir}" in
2230 /* ) ;;
2232 ## We may be able to use the $PWD environment variable to make this
2233 ## absolute. But sometimes PWD is inaccurate.
2234 ## Note: we used to use ${PWD} at the end instead of `pwd`,
2235 ## but that tested only for a well-formed and valid PWD,
2236 ## it did not object when PWD was well-formed and valid but just wrong.
2237 if test ".${PWD}" != "." && test ".`(cd ${PWD} ; sh -c pwd)`" = ".`pwd`" ;
2238 then
2239 srcdir="$PWD"
2240 else
2241 srcdir="`(cd ${srcdir}; pwd)`"
2244 * ) srcdir="`(cd ${srcdir}; pwd)`" ;;
2245 esac
2247 #### Check if the source directory already has a configured system in it.
2248 if test `pwd` != `(cd ${srcdir} && pwd)` \
2249 && test -f "${srcdir}/src/config.h" ; then
2250 { echo "$as_me:$LINENO: WARNING: The directory tree \`${srcdir}' is being used
2251 as a build directory right now; it has been configured in its own
2252 right. To configure in another directory as well, you MUST
2253 use GNU make. If you do not have GNU make, then you must
2254 now do \`make distclean' in ${srcdir},
2255 and then run $0 again." >&5
2256 echo "$as_me: WARNING: The directory tree \`${srcdir}' is being used
2257 as a build directory right now; it has been configured in its own
2258 right. To configure in another directory as well, you MUST
2259 use GNU make. If you do not have GNU make, then you must
2260 now do \`make distclean' in ${srcdir},
2261 and then run $0 again." >&2;}
2264 #### Given the configuration name, set machfile and opsysfile to the
2265 #### names of the m/*.h and s/*.h files we should use.
2267 ### Canonicalize the configuration name.
2269 ac_aux_dir=
2270 for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do
2271 if test -f "$ac_dir/install-sh"; then
2272 ac_aux_dir=$ac_dir
2273 ac_install_sh="$ac_aux_dir/install-sh -c"
2274 break
2275 elif test -f "$ac_dir/install.sh"; then
2276 ac_aux_dir=$ac_dir
2277 ac_install_sh="$ac_aux_dir/install.sh -c"
2278 break
2279 elif test -f "$ac_dir/shtool"; then
2280 ac_aux_dir=$ac_dir
2281 ac_install_sh="$ac_aux_dir/shtool install -c"
2282 break
2284 done
2285 if test -z "$ac_aux_dir"; then
2286 { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" >&5
2287 echo "$as_me: error: cannot find install-sh or install.sh in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" >&2;}
2288 { (exit 1); exit 1; }; }
2291 # These three variables are undocumented and unsupported,
2292 # and are intended to be withdrawn in a future Autoconf release.
2293 # They can cause serious problems if a builder's source tree is in a directory
2294 # whose full name contains unusual characters.
2295 ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
2296 ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
2297 ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var.
2300 # Make sure we can run config.sub.
2301 $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
2302 { { echo "$as_me:$LINENO: error: cannot run $SHELL $ac_aux_dir/config.sub" >&5
2303 echo "$as_me: error: cannot run $SHELL $ac_aux_dir/config.sub" >&2;}
2304 { (exit 1); exit 1; }; }
2306 { echo "$as_me:$LINENO: checking build system type" >&5
2307 echo $ECHO_N "checking build system type... $ECHO_C" >&6; }
2308 if test "${ac_cv_build+set}" = set; then
2309 echo $ECHO_N "(cached) $ECHO_C" >&6
2310 else
2311 ac_build_alias=$build_alias
2312 test "x$ac_build_alias" = x &&
2313 ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
2314 test "x$ac_build_alias" = x &&
2315 { { echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5
2316 echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
2317 { (exit 1); exit 1; }; }
2318 ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
2319 { { echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&5
2320 echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&2;}
2321 { (exit 1); exit 1; }; }
2324 { echo "$as_me:$LINENO: result: $ac_cv_build" >&5
2325 echo "${ECHO_T}$ac_cv_build" >&6; }
2326 case $ac_cv_build in
2327 *-*-*) ;;
2328 *) { { echo "$as_me:$LINENO: error: invalid value of canonical build" >&5
2329 echo "$as_me: error: invalid value of canonical build" >&2;}
2330 { (exit 1); exit 1; }; };;
2331 esac
2332 build=$ac_cv_build
2333 ac_save_IFS=$IFS; IFS='-'
2334 set x $ac_cv_build
2335 shift
2336 build_cpu=$1
2337 build_vendor=$2
2338 shift; shift
2339 # Remember, the first character of IFS is used to create $*,
2340 # except with old shells:
2341 build_os=$*
2342 IFS=$ac_save_IFS
2343 case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
2346 { echo "$as_me:$LINENO: checking host system type" >&5
2347 echo $ECHO_N "checking host system type... $ECHO_C" >&6; }
2348 if test "${ac_cv_host+set}" = set; then
2349 echo $ECHO_N "(cached) $ECHO_C" >&6
2350 else
2351 if test "x$host_alias" = x; then
2352 ac_cv_host=$ac_cv_build
2353 else
2354 ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
2355 { { echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&5
2356 echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&2;}
2357 { (exit 1); exit 1; }; }
2361 { echo "$as_me:$LINENO: result: $ac_cv_host" >&5
2362 echo "${ECHO_T}$ac_cv_host" >&6; }
2363 case $ac_cv_host in
2364 *-*-*) ;;
2365 *) { { echo "$as_me:$LINENO: error: invalid value of canonical host" >&5
2366 echo "$as_me: error: invalid value of canonical host" >&2;}
2367 { (exit 1); exit 1; }; };;
2368 esac
2369 host=$ac_cv_host
2370 ac_save_IFS=$IFS; IFS='-'
2371 set x $ac_cv_host
2372 shift
2373 host_cpu=$1
2374 host_vendor=$2
2375 shift; shift
2376 # Remember, the first character of IFS is used to create $*,
2377 # except with old shells:
2378 host_os=$*
2379 IFS=$ac_save_IFS
2380 case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
2383 canonical=$host
2384 configuration=${host_alias-${build_alias-$host}}
2388 ### If you add support for a new configuration, add code to this
2389 ### switch statement to recognize your configuration name and select
2390 ### the appropriate operating system and machine description files.
2392 ### You would hope that you could choose an m/*.h file pretty much
2393 ### based on the machine portion of the configuration name, and an s-
2394 ### file based on the operating system portion. However, it turns out
2395 ### that each m/*.h file is pretty manufacturer-specific - for
2396 ### example mips.h is MIPS
2397 ### So we basically have to have a special case for each
2398 ### configuration name.
2400 ### As far as handling version numbers on operating systems is
2401 ### concerned, make sure things will fail in a fixable way. If
2402 ### /etc/MACHINES doesn't say anything about version numbers, be
2403 ### prepared to handle anything reasonably. If version numbers
2404 ### matter, be sure /etc/MACHINES says something about it.
2406 ### Eric Raymond says we should accept strings like "sysvr4" to mean
2407 ### "System V Release 4"; he writes, "The old convention encouraged
2408 ### confusion between `system' and `release' levels'."
2410 machine='' opsys='' unported=no
2411 case "${canonical}" in
2413 ## FreeBSD ports
2414 *-*-freebsd* )
2415 opsys=freebsd
2416 case "${canonical}" in
2417 alpha*-*-freebsd*) machine=alpha ;;
2418 arm*-*-freebsd*) machine=arm ;;
2419 ia64-*-freebsd*) machine=ia64 ;;
2420 sparc-*-freebsd*) machine=sparc ;;
2421 sparc64-*-freebsd*) machine=sparc ;;
2422 powerpc-*-freebsd*) machine=macppc ;;
2423 i[3456]86-*-freebsd*) machine=intel386 ;;
2424 amd64-*-freebsd*|x86_64-*-freebsd*) machine=amdx86-64 ;;
2425 esac
2428 ## FreeBSD kernel + glibc based userland
2429 *-*-kfreebsd*gnu* )
2430 opsys=gnu-kfreebsd
2431 case "${canonical}" in
2432 alpha*-*-kfreebsd*) machine=alpha ;;
2433 ia64-*-kfreebsd*) machine=ia64 ;;
2434 sparc-*-kfreebsd*) machine=sparc ;;
2435 sparc64-*-kfreebsd*) machine=sparc ;;
2436 powerpc-*-kfreebsd*) machine=macppc ;;
2437 i[3456]86-*-kfreebsd*) machine=intel386 ;;
2438 amd64-*-kfreebsd*|x86_64-*-kfreebsd*) machine=amdx86-64 ;;
2439 esac
2442 ## NetBSD ports
2443 *-*-netbsd* )
2444 opsys=netbsd
2445 if test -f /usr/lib/crti.o; then
2447 cat >>confdefs.h <<\_ACEOF
2448 #define HAVE_CRTIN
2449 _ACEOF
2453 case "${canonical}" in
2454 alpha*-*-netbsd*) machine=alpha ;;
2455 i[3456]86-*-netbsd*) machine=intel386 ;;
2456 powerpc-*-netbsd*) machine=macppc ;;
2457 sparc*-*-netbsd*) machine=sparc ;;
2458 vax-*-netbsd*) machine=vax ;;
2459 arm-*-netbsd*) machine=arm ;;
2460 x86_64-*-netbsd*) machine=amdx86-64 ;;
2461 hppa-*-netbsd*) machine=hp800 ;;
2462 esac
2465 ## OpenBSD ports
2466 *-*-openbsd* )
2467 opsys=openbsd
2468 case "${canonical}" in
2469 alpha*-*-openbsd*) machine=alpha ;;
2470 arm-*-openbsd*) machine=arm ;;
2471 i386-*-openbsd*) machine=intel386 ;;
2472 powerpc-*-openbsd*) machine=macppc ;;
2473 sparc*-*-openbsd*) machine=sparc ;;
2474 vax-*-openbsd*) machine=vax ;;
2475 x86_64-*-openbsd*) machine=amdx86-64 ;;
2476 esac
2479 ## LynxOS ports
2480 *-*-lynxos* )
2481 opsys=lynxos
2482 case "${canonical}" in
2483 i[3456]86-*-lynxos*) machine=intel386 ;;
2484 powerpc-*-lynxos*) machine=powerpc ;;
2485 esac
2488 alpha*-*-linux-gnu* )
2489 machine=alpha opsys=gnu-linux
2492 arm*-*-linux-gnu* )
2493 machine=arm opsys=gnu-linux
2496 ## Apple Darwin / Mac OS X
2497 *-apple-darwin* )
2498 case "${canonical}" in
2499 i[3456]86-* ) machine=intel386 ;;
2500 powerpc-* ) machine=macppc ;;
2501 * ) unported=yes ;;
2502 esac
2503 opsys=darwin
2504 # Define CPP as follows to make autoconf work correctly.
2505 CPP="${CC-cc} -E -no-cpp-precomp"
2506 # Use fink packages if available.
2507 if test -d /sw/include && test -d /sw/lib; then
2508 GCC_TEST_OPTIONS="-I/sw/include -L/sw/lib"
2509 CPP="${CPP} ${GCC_TEST_OPTIONS}"
2510 NON_GCC_TEST_OPTIONS=${GCC_TEST_OPTIONS}
2514 ## HP 9000 series 700 and 800, running HP/UX
2515 hppa*-hp-hpux10.2* )
2516 machine=hp800 opsys=hpux10-20
2518 hppa*-hp-hpux1[1-9]* )
2519 machine=hp800 opsys=hpux11
2520 CFLAGS="-D_INCLUDE__STDC_A1_SOURCE $CFLAGS"
2523 hppa*-*-linux-gnu* )
2524 machine=hp800 opsys=gnu-linux
2527 ## IBM machines
2528 s390-*-linux-gnu* )
2529 machine=ibms390 opsys=gnu-linux
2531 s390x-*-linux-gnu* )
2532 machine=ibms390x opsys=gnu-linux
2534 rs6000-ibm-aix4.2* | powerpc-ibm-aix4.2* )
2535 machine=ibmrs6000 opsys=aix4-2
2537 rs6000-ibm-aix4.3* | powerpc-ibm-aix4.3* )
2538 machine=ibmrs6000 opsys=aix4-2
2540 rs6000-ibm-aix5* | powerpc-ibm-aix5* )
2541 machine=ibmrs6000 opsys=aix4-2
2543 rs6000-ibm-aix5* | powerpc-ibm-aix6* )
2544 machine=ibmrs6000 opsys=aix4-2
2547 ## Macintosh PowerPC
2548 powerpc*-*-linux-gnu* )
2549 machine=macppc opsys=gnu-linux
2552 ## Silicon Graphics machines
2553 ## Iris 4D
2554 mips-sgi-irix6.5 )
2555 machine=iris4d opsys=irix6-5
2556 # Without defining _LANGUAGE_C, things get masked out in the headers
2557 # so that, for instance, grepping for `free' in stdlib.h fails and
2558 # AC_HEADER_STD_C fails. (MIPSPro 7.2.1.2m compilers, Irix 6.5.3m).
2559 NON_GNU_CPP="/lib/cpp -D_LANGUAGE_C"
2560 NON_GCC_TEST_OPTIONS="-D_LANGUAGE_C"
2563 ## Suns
2564 sparc-*-linux-gnu* | sparc64-*-linux-gnu* )
2565 machine=sparc opsys=gnu-linux
2568 *-sun-solaris* \
2569 | i[3456]86-*-solaris2* | i[3456]86-*-sunos5* | powerpc*-*-solaris2* \
2570 | rs6000-*-solaris2*)
2571 case "${canonical}" in
2572 i[3456]86-*-* ) machine=intel386 ;;
2573 amd64-*-*|x86_64-*-*) machine=amdx86-64 ;;
2574 powerpc* | rs6000* ) machine=ibmrs6000 ;;
2575 sparc* ) machine=sparc ;;
2576 * ) unported=yes ;;
2577 esac
2578 case "${canonical}" in
2579 *-sunos5.3* | *-solaris2.3* )
2580 opsys=sol2-3
2581 NON_GNU_CPP=/usr/ccs/lib/cpp
2583 *-sunos5.4* | *-solaris2.4* )
2584 opsys=sol2-4
2585 NON_GNU_CPP=/usr/ccs/lib/cpp
2586 RANLIB="ar -ts"
2588 *-sunos5.5* | *-solaris2.5* )
2589 opsys=sol2-5
2590 NON_GNU_CPP=/usr/ccs/lib/cpp
2591 RANLIB="ar -ts"
2593 *-sunos5.6* | *-solaris2.6* )
2594 opsys=sol2-6
2595 NON_GNU_CPP=/usr/ccs/lib/cpp
2596 RANLIB="ar -ts"
2598 *-sunos5.[7-9]* | *-solaris2.[7-9]* )
2599 opsys=sol2-6
2600 emacs_check_sunpro_c=yes
2601 NON_GNU_CPP=/usr/ccs/lib/cpp
2603 *-sunos5* | *-solaris* )
2604 opsys=sol2-10
2605 emacs_check_sunpro_c=yes
2606 NON_GNU_CPP=/usr/ccs/lib/cpp
2608 esac
2609 ## Watch out for a compiler that we know will not work.
2610 case "${canonical}" in
2611 *-solaris* | *-sunos5* )
2612 if [ "x$CC" = x/usr/ucb/cc ]; then
2613 ## /usr/ucb/cc doesn't work;
2614 ## we should find some other compiler that does work.
2615 unset CC
2618 *) ;;
2619 esac
2622 ## Vaxen.
2623 vax-dec-* )
2624 machine=vax
2625 case "${canonical}" in
2626 *-vms* ) opsys=vms ;;
2627 * ) unported=yes
2628 esac
2631 ## IA-64
2632 ia64*-*-linux* )
2633 machine=ia64 opsys=gnu-linux
2636 ## Intel 386 machines where we don't care about the manufacturer
2637 i[3456]86-*-* )
2638 machine=intel386
2639 case "${canonical}" in
2640 *-cygwin ) opsys=cygwin ;;
2641 *-darwin* ) opsys=darwin
2642 CPP="${CC-cc} -E -no-cpp-precomp"
2644 *-linux-gnu* ) opsys=gnu-linux ;;
2645 *-sysv4.2uw* ) opsys=unixware; NON_GNU_CPP=/lib/cpp ;;
2646 *-sysv5uw* ) opsys=unixware; NON_GNU_CPP=/lib/cpp ;;
2647 *-sysv5OpenUNIX* ) opsys=unixware; NON_GNU_CPP=/lib/cpp ;;
2648 ## Otherwise, we'll fall through to the generic opsys code at the bottom.
2649 esac
2652 ## m68k Linux-based GNU system
2653 m68k-*-linux-gnu* )
2654 machine=m68k opsys=gnu-linux
2657 ## Mips Linux-based GNU system
2658 mips-*-linux-gnu* | mipsel-*-linux-gnu* )
2659 machine=mips opsys=gnu-linux
2662 ## AMD x86-64 Linux-based GNU system
2663 x86_64-*-linux-gnu* )
2664 machine=amdx86-64 opsys=gnu-linux
2667 ## Tensilica Xtensa Linux-based GNU system
2668 xtensa*-*-linux-gnu* )
2669 machine=xtensa opsys=gnu-linux
2672 ## SuperH Linux-based GNU system
2673 sh[34]*-*-linux-gnu* )
2674 machine=sh3 opsys=gnu-linux
2678 unported=yes
2680 esac
2682 ### If the code above didn't choose an operating system, just choose
2683 ### an operating system based on the configuration name. You really
2684 ### only want to use this when you have no idea what the right
2685 ### operating system is; if you know what operating systems a machine
2686 ### runs, it's cleaner to make it explicit in the case statement
2687 ### above.
2688 if test x"${opsys}" = x; then
2689 case "${canonical}" in
2690 *-gnu* ) opsys=gnu ;;
2691 *-sysv4.2uw* ) opsys=unixware ;;
2692 *-sysv5uw* ) opsys=unixware ;;
2693 *-sysv5OpenUNIX* ) opsys=unixware ;;
2694 *-sysv4.1* | *-sysvr4.1* )
2695 NON_GNU_CPP=/usr/lib/cpp
2696 opsys=usg5-4 ;;
2697 *-sysv4.[2-9]* | *-sysvr4.[2-9]* )
2698 if [ x$NON_GNU_CPP = x ]; then
2699 if [ -f /usr/ccs/lib/cpp ]; then
2700 NON_GNU_CPP=/usr/ccs/lib/cpp
2701 else
2702 NON_GNU_CPP=/lib/cpp
2705 opsys=usg5-4-2 ;;
2706 *-sysv4* | *-sysvr4* ) opsys=usg5-4 ;;
2708 unported=yes
2710 esac
2715 if test $unported = yes; then
2716 { { echo "$as_me:$LINENO: error: Emacs hasn't been ported to \`${canonical}' systems.
2717 Check \`etc/MACHINES' for recognized configuration names." >&5
2718 echo "$as_me: error: Emacs hasn't been ported to \`${canonical}' systems.
2719 Check \`etc/MACHINES' for recognized configuration names." >&2;}
2720 { (exit 1); exit 1; }; }
2723 machfile="m/${machine}.h"
2724 opsysfile="s/${opsys}.h"
2727 #### Choose a compiler.
2728 test -n "$CC" && cc_specified=yes
2730 # Save the value of CFLAGS that the user specified.
2731 SPECIFIED_CFLAGS="$CFLAGS"
2733 ac_ext=c
2734 ac_cpp='$CPP $CPPFLAGS'
2735 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2736 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2737 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2738 if test -n "$ac_tool_prefix"; then
2739 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
2740 set dummy ${ac_tool_prefix}gcc; ac_word=$2
2741 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2742 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2743 if test "${ac_cv_prog_CC+set}" = set; then
2744 echo $ECHO_N "(cached) $ECHO_C" >&6
2745 else
2746 if test -n "$CC"; then
2747 ac_cv_prog_CC="$CC" # Let the user override the test.
2748 else
2749 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2750 for as_dir in $PATH
2752 IFS=$as_save_IFS
2753 test -z "$as_dir" && as_dir=.
2754 for ac_exec_ext in '' $ac_executable_extensions; do
2755 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2756 ac_cv_prog_CC="${ac_tool_prefix}gcc"
2757 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2758 break 2
2760 done
2761 done
2762 IFS=$as_save_IFS
2766 CC=$ac_cv_prog_CC
2767 if test -n "$CC"; then
2768 { echo "$as_me:$LINENO: result: $CC" >&5
2769 echo "${ECHO_T}$CC" >&6; }
2770 else
2771 { echo "$as_me:$LINENO: result: no" >&5
2772 echo "${ECHO_T}no" >&6; }
2777 if test -z "$ac_cv_prog_CC"; then
2778 ac_ct_CC=$CC
2779 # Extract the first word of "gcc", so it can be a program name with args.
2780 set dummy gcc; ac_word=$2
2781 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2782 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2783 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2784 echo $ECHO_N "(cached) $ECHO_C" >&6
2785 else
2786 if test -n "$ac_ct_CC"; then
2787 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2788 else
2789 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2790 for as_dir in $PATH
2792 IFS=$as_save_IFS
2793 test -z "$as_dir" && as_dir=.
2794 for ac_exec_ext in '' $ac_executable_extensions; do
2795 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2796 ac_cv_prog_ac_ct_CC="gcc"
2797 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2798 break 2
2800 done
2801 done
2802 IFS=$as_save_IFS
2806 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2807 if test -n "$ac_ct_CC"; then
2808 { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2809 echo "${ECHO_T}$ac_ct_CC" >&6; }
2810 else
2811 { echo "$as_me:$LINENO: result: no" >&5
2812 echo "${ECHO_T}no" >&6; }
2815 if test "x$ac_ct_CC" = x; then
2816 CC=""
2817 else
2818 case $cross_compiling:$ac_tool_warned in
2819 yes:)
2820 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
2821 whose name does not start with the host triplet. If you think this
2822 configuration is useful to you, please write to autoconf@gnu.org." >&5
2823 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
2824 whose name does not start with the host triplet. If you think this
2825 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
2826 ac_tool_warned=yes ;;
2827 esac
2828 CC=$ac_ct_CC
2830 else
2831 CC="$ac_cv_prog_CC"
2834 if test -z "$CC"; then
2835 if test -n "$ac_tool_prefix"; then
2836 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
2837 set dummy ${ac_tool_prefix}cc; ac_word=$2
2838 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2839 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2840 if test "${ac_cv_prog_CC+set}" = set; then
2841 echo $ECHO_N "(cached) $ECHO_C" >&6
2842 else
2843 if test -n "$CC"; then
2844 ac_cv_prog_CC="$CC" # Let the user override the test.
2845 else
2846 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2847 for as_dir in $PATH
2849 IFS=$as_save_IFS
2850 test -z "$as_dir" && as_dir=.
2851 for ac_exec_ext in '' $ac_executable_extensions; do
2852 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2853 ac_cv_prog_CC="${ac_tool_prefix}cc"
2854 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2855 break 2
2857 done
2858 done
2859 IFS=$as_save_IFS
2863 CC=$ac_cv_prog_CC
2864 if test -n "$CC"; then
2865 { echo "$as_me:$LINENO: result: $CC" >&5
2866 echo "${ECHO_T}$CC" >&6; }
2867 else
2868 { echo "$as_me:$LINENO: result: no" >&5
2869 echo "${ECHO_T}no" >&6; }
2875 if test -z "$CC"; then
2876 # Extract the first word of "cc", so it can be a program name with args.
2877 set dummy cc; ac_word=$2
2878 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2879 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2880 if test "${ac_cv_prog_CC+set}" = set; then
2881 echo $ECHO_N "(cached) $ECHO_C" >&6
2882 else
2883 if test -n "$CC"; then
2884 ac_cv_prog_CC="$CC" # Let the user override the test.
2885 else
2886 ac_prog_rejected=no
2887 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2888 for as_dir in $PATH
2890 IFS=$as_save_IFS
2891 test -z "$as_dir" && as_dir=.
2892 for ac_exec_ext in '' $ac_executable_extensions; do
2893 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2894 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
2895 ac_prog_rejected=yes
2896 continue
2898 ac_cv_prog_CC="cc"
2899 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2900 break 2
2902 done
2903 done
2904 IFS=$as_save_IFS
2906 if test $ac_prog_rejected = yes; then
2907 # We found a bogon in the path, so make sure we never use it.
2908 set dummy $ac_cv_prog_CC
2909 shift
2910 if test $# != 0; then
2911 # We chose a different compiler from the bogus one.
2912 # However, it has the same basename, so the bogon will be chosen
2913 # first if we set CC to just the basename; use the full file name.
2914 shift
2915 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
2920 CC=$ac_cv_prog_CC
2921 if test -n "$CC"; then
2922 { echo "$as_me:$LINENO: result: $CC" >&5
2923 echo "${ECHO_T}$CC" >&6; }
2924 else
2925 { echo "$as_me:$LINENO: result: no" >&5
2926 echo "${ECHO_T}no" >&6; }
2931 if test -z "$CC"; then
2932 if test -n "$ac_tool_prefix"; then
2933 for ac_prog in cl.exe
2935 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
2936 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
2937 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2938 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2939 if test "${ac_cv_prog_CC+set}" = set; then
2940 echo $ECHO_N "(cached) $ECHO_C" >&6
2941 else
2942 if test -n "$CC"; then
2943 ac_cv_prog_CC="$CC" # Let the user override the test.
2944 else
2945 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2946 for as_dir in $PATH
2948 IFS=$as_save_IFS
2949 test -z "$as_dir" && as_dir=.
2950 for ac_exec_ext in '' $ac_executable_extensions; do
2951 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2952 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
2953 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2954 break 2
2956 done
2957 done
2958 IFS=$as_save_IFS
2962 CC=$ac_cv_prog_CC
2963 if test -n "$CC"; then
2964 { echo "$as_me:$LINENO: result: $CC" >&5
2965 echo "${ECHO_T}$CC" >&6; }
2966 else
2967 { echo "$as_me:$LINENO: result: no" >&5
2968 echo "${ECHO_T}no" >&6; }
2972 test -n "$CC" && break
2973 done
2975 if test -z "$CC"; then
2976 ac_ct_CC=$CC
2977 for ac_prog in cl.exe
2979 # Extract the first word of "$ac_prog", so it can be a program name with args.
2980 set dummy $ac_prog; ac_word=$2
2981 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2982 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2983 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2984 echo $ECHO_N "(cached) $ECHO_C" >&6
2985 else
2986 if test -n "$ac_ct_CC"; then
2987 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2988 else
2989 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2990 for as_dir in $PATH
2992 IFS=$as_save_IFS
2993 test -z "$as_dir" && as_dir=.
2994 for ac_exec_ext in '' $ac_executable_extensions; do
2995 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2996 ac_cv_prog_ac_ct_CC="$ac_prog"
2997 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2998 break 2
3000 done
3001 done
3002 IFS=$as_save_IFS
3006 ac_ct_CC=$ac_cv_prog_ac_ct_CC
3007 if test -n "$ac_ct_CC"; then
3008 { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
3009 echo "${ECHO_T}$ac_ct_CC" >&6; }
3010 else
3011 { echo "$as_me:$LINENO: result: no" >&5
3012 echo "${ECHO_T}no" >&6; }
3016 test -n "$ac_ct_CC" && break
3017 done
3019 if test "x$ac_ct_CC" = x; then
3020 CC=""
3021 else
3022 case $cross_compiling:$ac_tool_warned in
3023 yes:)
3024 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
3025 whose name does not start with the host triplet. If you think this
3026 configuration is useful to you, please write to autoconf@gnu.org." >&5
3027 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
3028 whose name does not start with the host triplet. If you think this
3029 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
3030 ac_tool_warned=yes ;;
3031 esac
3032 CC=$ac_ct_CC
3039 test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
3040 See \`config.log' for more details." >&5
3041 echo "$as_me: error: no acceptable C compiler found in \$PATH
3042 See \`config.log' for more details." >&2;}
3043 { (exit 1); exit 1; }; }
3045 # Provide some information about the compiler.
3046 echo "$as_me:$LINENO: checking for C compiler version" >&5
3047 ac_compiler=`set X $ac_compile; echo $2`
3048 { (ac_try="$ac_compiler --version >&5"
3049 case "(($ac_try" in
3050 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3051 *) ac_try_echo=$ac_try;;
3052 esac
3053 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3054 (eval "$ac_compiler --version >&5") 2>&5
3055 ac_status=$?
3056 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3057 (exit $ac_status); }
3058 { (ac_try="$ac_compiler -v >&5"
3059 case "(($ac_try" in
3060 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3061 *) ac_try_echo=$ac_try;;
3062 esac
3063 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3064 (eval "$ac_compiler -v >&5") 2>&5
3065 ac_status=$?
3066 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3067 (exit $ac_status); }
3068 { (ac_try="$ac_compiler -V >&5"
3069 case "(($ac_try" in
3070 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3071 *) ac_try_echo=$ac_try;;
3072 esac
3073 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3074 (eval "$ac_compiler -V >&5") 2>&5
3075 ac_status=$?
3076 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3077 (exit $ac_status); }
3079 cat >conftest.$ac_ext <<_ACEOF
3080 /* confdefs.h. */
3081 _ACEOF
3082 cat confdefs.h >>conftest.$ac_ext
3083 cat >>conftest.$ac_ext <<_ACEOF
3084 /* end confdefs.h. */
3087 main ()
3091 return 0;
3093 _ACEOF
3094 ac_clean_files_save=$ac_clean_files
3095 ac_clean_files="$ac_clean_files a.out a.exe b.out"
3096 # Try to create an executable without -o first, disregard a.out.
3097 # It will help us diagnose broken compilers, and finding out an intuition
3098 # of exeext.
3099 { echo "$as_me:$LINENO: checking for C compiler default output file name" >&5
3100 echo $ECHO_N "checking for C compiler default output file name... $ECHO_C" >&6; }
3101 ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
3103 # List of possible output files, starting from the most likely.
3104 # The algorithm is not robust to junk in `.', hence go to wildcards (a.*)
3105 # only as a last resort. b.out is created by i960 compilers.
3106 ac_files='a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out'
3108 # The IRIX 6 linker writes into existing files which may not be
3109 # executable, retaining their permissions. Remove them first so a
3110 # subsequent execution test works.
3111 ac_rmfiles=
3112 for ac_file in $ac_files
3114 case $ac_file in
3115 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj ) ;;
3116 * ) ac_rmfiles="$ac_rmfiles $ac_file";;
3117 esac
3118 done
3119 rm -f $ac_rmfiles
3121 if { (ac_try="$ac_link_default"
3122 case "(($ac_try" in
3123 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3124 *) ac_try_echo=$ac_try;;
3125 esac
3126 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3127 (eval "$ac_link_default") 2>&5
3128 ac_status=$?
3129 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3130 (exit $ac_status); }; then
3131 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
3132 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
3133 # in a Makefile. We should not override ac_cv_exeext if it was cached,
3134 # so that the user can short-circuit this test for compilers unknown to
3135 # Autoconf.
3136 for ac_file in $ac_files ''
3138 test -f "$ac_file" || continue
3139 case $ac_file in
3140 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj )
3142 [ab].out )
3143 # We found the default executable, but exeext='' is most
3144 # certainly right.
3145 break;;
3146 *.* )
3147 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
3148 then :; else
3149 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3151 # We set ac_cv_exeext here because the later test for it is not
3152 # safe: cross compilers may not add the suffix if given an `-o'
3153 # argument, so we may need to know it at that point already.
3154 # Even if this section looks crufty: it has the advantage of
3155 # actually working.
3156 break;;
3158 break;;
3159 esac
3160 done
3161 test "$ac_cv_exeext" = no && ac_cv_exeext=
3163 else
3164 ac_file=''
3167 { echo "$as_me:$LINENO: result: $ac_file" >&5
3168 echo "${ECHO_T}$ac_file" >&6; }
3169 if test -z "$ac_file"; then
3170 echo "$as_me: failed program was:" >&5
3171 sed 's/^/| /' conftest.$ac_ext >&5
3173 { { echo "$as_me:$LINENO: error: C compiler cannot create executables
3174 See \`config.log' for more details." >&5
3175 echo "$as_me: error: C compiler cannot create executables
3176 See \`config.log' for more details." >&2;}
3177 { (exit 77); exit 77; }; }
3180 ac_exeext=$ac_cv_exeext
3182 # Check that the compiler produces executables we can run. If not, either
3183 # the compiler is broken, or we cross compile.
3184 { echo "$as_me:$LINENO: checking whether the C compiler works" >&5
3185 echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6; }
3186 # FIXME: These cross compiler hacks should be removed for Autoconf 3.0
3187 # If not cross compiling, check that we can run a simple program.
3188 if test "$cross_compiling" != yes; then
3189 if { ac_try='./$ac_file'
3190 { (case "(($ac_try" in
3191 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3192 *) ac_try_echo=$ac_try;;
3193 esac
3194 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3195 (eval "$ac_try") 2>&5
3196 ac_status=$?
3197 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3198 (exit $ac_status); }; }; then
3199 cross_compiling=no
3200 else
3201 if test "$cross_compiling" = maybe; then
3202 cross_compiling=yes
3203 else
3204 { { echo "$as_me:$LINENO: error: cannot run C compiled programs.
3205 If you meant to cross compile, use \`--host'.
3206 See \`config.log' for more details." >&5
3207 echo "$as_me: error: cannot run C compiled programs.
3208 If you meant to cross compile, use \`--host'.
3209 See \`config.log' for more details." >&2;}
3210 { (exit 1); exit 1; }; }
3214 { echo "$as_me:$LINENO: result: yes" >&5
3215 echo "${ECHO_T}yes" >&6; }
3217 rm -f a.out a.exe conftest$ac_cv_exeext b.out
3218 ac_clean_files=$ac_clean_files_save
3219 # Check that the compiler produces executables we can run. If not, either
3220 # the compiler is broken, or we cross compile.
3221 { echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
3222 echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6; }
3223 { echo "$as_me:$LINENO: result: $cross_compiling" >&5
3224 echo "${ECHO_T}$cross_compiling" >&6; }
3226 { echo "$as_me:$LINENO: checking for suffix of executables" >&5
3227 echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6; }
3228 if { (ac_try="$ac_link"
3229 case "(($ac_try" in
3230 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3231 *) ac_try_echo=$ac_try;;
3232 esac
3233 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3234 (eval "$ac_link") 2>&5
3235 ac_status=$?
3236 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3237 (exit $ac_status); }; then
3238 # If both `conftest.exe' and `conftest' are `present' (well, observable)
3239 # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
3240 # work properly (i.e., refer to `conftest.exe'), while it won't with
3241 # `rm'.
3242 for ac_file in conftest.exe conftest conftest.*; do
3243 test -f "$ac_file" || continue
3244 case $ac_file in
3245 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj ) ;;
3246 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3247 break;;
3248 * ) break;;
3249 esac
3250 done
3251 else
3252 { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
3253 See \`config.log' for more details." >&5
3254 echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
3255 See \`config.log' for more details." >&2;}
3256 { (exit 1); exit 1; }; }
3259 rm -f conftest$ac_cv_exeext
3260 { echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
3261 echo "${ECHO_T}$ac_cv_exeext" >&6; }
3263 rm -f conftest.$ac_ext
3264 EXEEXT=$ac_cv_exeext
3265 ac_exeext=$EXEEXT
3266 { echo "$as_me:$LINENO: checking for suffix of object files" >&5
3267 echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6; }
3268 if test "${ac_cv_objext+set}" = set; then
3269 echo $ECHO_N "(cached) $ECHO_C" >&6
3270 else
3271 cat >conftest.$ac_ext <<_ACEOF
3272 /* confdefs.h. */
3273 _ACEOF
3274 cat confdefs.h >>conftest.$ac_ext
3275 cat >>conftest.$ac_ext <<_ACEOF
3276 /* end confdefs.h. */
3279 main ()
3283 return 0;
3285 _ACEOF
3286 rm -f conftest.o conftest.obj
3287 if { (ac_try="$ac_compile"
3288 case "(($ac_try" in
3289 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3290 *) ac_try_echo=$ac_try;;
3291 esac
3292 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3293 (eval "$ac_compile") 2>&5
3294 ac_status=$?
3295 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3296 (exit $ac_status); }; then
3297 for ac_file in conftest.o conftest.obj conftest.*; do
3298 test -f "$ac_file" || continue;
3299 case $ac_file in
3300 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf ) ;;
3301 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
3302 break;;
3303 esac
3304 done
3305 else
3306 echo "$as_me: failed program was:" >&5
3307 sed 's/^/| /' conftest.$ac_ext >&5
3309 { { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
3310 See \`config.log' for more details." >&5
3311 echo "$as_me: error: cannot compute suffix of object files: cannot compile
3312 See \`config.log' for more details." >&2;}
3313 { (exit 1); exit 1; }; }
3316 rm -f conftest.$ac_cv_objext conftest.$ac_ext
3318 { echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
3319 echo "${ECHO_T}$ac_cv_objext" >&6; }
3320 OBJEXT=$ac_cv_objext
3321 ac_objext=$OBJEXT
3322 { echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
3323 echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6; }
3324 if test "${ac_cv_c_compiler_gnu+set}" = set; then
3325 echo $ECHO_N "(cached) $ECHO_C" >&6
3326 else
3327 cat >conftest.$ac_ext <<_ACEOF
3328 /* confdefs.h. */
3329 _ACEOF
3330 cat confdefs.h >>conftest.$ac_ext
3331 cat >>conftest.$ac_ext <<_ACEOF
3332 /* end confdefs.h. */
3335 main ()
3337 #ifndef __GNUC__
3338 choke me
3339 #endif
3342 return 0;
3344 _ACEOF
3345 rm -f conftest.$ac_objext
3346 if { (ac_try="$ac_compile"
3347 case "(($ac_try" in
3348 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3349 *) ac_try_echo=$ac_try;;
3350 esac
3351 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3352 (eval "$ac_compile") 2>conftest.er1
3353 ac_status=$?
3354 grep -v '^ *+' conftest.er1 >conftest.err
3355 rm -f conftest.er1
3356 cat conftest.err >&5
3357 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3358 (exit $ac_status); } && {
3359 test -z "$ac_c_werror_flag" ||
3360 test ! -s conftest.err
3361 } && test -s conftest.$ac_objext; then
3362 ac_compiler_gnu=yes
3363 else
3364 echo "$as_me: failed program was:" >&5
3365 sed 's/^/| /' conftest.$ac_ext >&5
3367 ac_compiler_gnu=no
3370 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3371 ac_cv_c_compiler_gnu=$ac_compiler_gnu
3374 { echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
3375 echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6; }
3376 GCC=`test $ac_compiler_gnu = yes && echo yes`
3377 ac_test_CFLAGS=${CFLAGS+set}
3378 ac_save_CFLAGS=$CFLAGS
3379 { echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
3380 echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6; }
3381 if test "${ac_cv_prog_cc_g+set}" = set; then
3382 echo $ECHO_N "(cached) $ECHO_C" >&6
3383 else
3384 ac_save_c_werror_flag=$ac_c_werror_flag
3385 ac_c_werror_flag=yes
3386 ac_cv_prog_cc_g=no
3387 CFLAGS="-g"
3388 cat >conftest.$ac_ext <<_ACEOF
3389 /* confdefs.h. */
3390 _ACEOF
3391 cat confdefs.h >>conftest.$ac_ext
3392 cat >>conftest.$ac_ext <<_ACEOF
3393 /* end confdefs.h. */
3396 main ()
3400 return 0;
3402 _ACEOF
3403 rm -f conftest.$ac_objext
3404 if { (ac_try="$ac_compile"
3405 case "(($ac_try" in
3406 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3407 *) ac_try_echo=$ac_try;;
3408 esac
3409 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3410 (eval "$ac_compile") 2>conftest.er1
3411 ac_status=$?
3412 grep -v '^ *+' conftest.er1 >conftest.err
3413 rm -f conftest.er1
3414 cat conftest.err >&5
3415 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3416 (exit $ac_status); } && {
3417 test -z "$ac_c_werror_flag" ||
3418 test ! -s conftest.err
3419 } && test -s conftest.$ac_objext; then
3420 ac_cv_prog_cc_g=yes
3421 else
3422 echo "$as_me: failed program was:" >&5
3423 sed 's/^/| /' conftest.$ac_ext >&5
3425 CFLAGS=""
3426 cat >conftest.$ac_ext <<_ACEOF
3427 /* confdefs.h. */
3428 _ACEOF
3429 cat confdefs.h >>conftest.$ac_ext
3430 cat >>conftest.$ac_ext <<_ACEOF
3431 /* end confdefs.h. */
3434 main ()
3438 return 0;
3440 _ACEOF
3441 rm -f conftest.$ac_objext
3442 if { (ac_try="$ac_compile"
3443 case "(($ac_try" in
3444 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3445 *) ac_try_echo=$ac_try;;
3446 esac
3447 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3448 (eval "$ac_compile") 2>conftest.er1
3449 ac_status=$?
3450 grep -v '^ *+' conftest.er1 >conftest.err
3451 rm -f conftest.er1
3452 cat conftest.err >&5
3453 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3454 (exit $ac_status); } && {
3455 test -z "$ac_c_werror_flag" ||
3456 test ! -s conftest.err
3457 } && test -s conftest.$ac_objext; then
3459 else
3460 echo "$as_me: failed program was:" >&5
3461 sed 's/^/| /' conftest.$ac_ext >&5
3463 ac_c_werror_flag=$ac_save_c_werror_flag
3464 CFLAGS="-g"
3465 cat >conftest.$ac_ext <<_ACEOF
3466 /* confdefs.h. */
3467 _ACEOF
3468 cat confdefs.h >>conftest.$ac_ext
3469 cat >>conftest.$ac_ext <<_ACEOF
3470 /* end confdefs.h. */
3473 main ()
3477 return 0;
3479 _ACEOF
3480 rm -f conftest.$ac_objext
3481 if { (ac_try="$ac_compile"
3482 case "(($ac_try" in
3483 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3484 *) ac_try_echo=$ac_try;;
3485 esac
3486 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3487 (eval "$ac_compile") 2>conftest.er1
3488 ac_status=$?
3489 grep -v '^ *+' conftest.er1 >conftest.err
3490 rm -f conftest.er1
3491 cat conftest.err >&5
3492 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3493 (exit $ac_status); } && {
3494 test -z "$ac_c_werror_flag" ||
3495 test ! -s conftest.err
3496 } && test -s conftest.$ac_objext; then
3497 ac_cv_prog_cc_g=yes
3498 else
3499 echo "$as_me: failed program was:" >&5
3500 sed 's/^/| /' conftest.$ac_ext >&5
3505 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3508 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3511 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3512 ac_c_werror_flag=$ac_save_c_werror_flag
3514 { echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
3515 echo "${ECHO_T}$ac_cv_prog_cc_g" >&6; }
3516 if test "$ac_test_CFLAGS" = set; then
3517 CFLAGS=$ac_save_CFLAGS
3518 elif test $ac_cv_prog_cc_g = yes; then
3519 if test "$GCC" = yes; then
3520 CFLAGS="-g -O2"
3521 else
3522 CFLAGS="-g"
3524 else
3525 if test "$GCC" = yes; then
3526 CFLAGS="-O2"
3527 else
3528 CFLAGS=
3531 { echo "$as_me:$LINENO: checking for $CC option to accept ISO C89" >&5
3532 echo $ECHO_N "checking for $CC option to accept ISO C89... $ECHO_C" >&6; }
3533 if test "${ac_cv_prog_cc_c89+set}" = set; then
3534 echo $ECHO_N "(cached) $ECHO_C" >&6
3535 else
3536 ac_cv_prog_cc_c89=no
3537 ac_save_CC=$CC
3538 cat >conftest.$ac_ext <<_ACEOF
3539 /* confdefs.h. */
3540 _ACEOF
3541 cat confdefs.h >>conftest.$ac_ext
3542 cat >>conftest.$ac_ext <<_ACEOF
3543 /* end confdefs.h. */
3544 #include <stdarg.h>
3545 #include <stdio.h>
3546 #include <sys/types.h>
3547 #include <sys/stat.h>
3548 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
3549 struct buf { int x; };
3550 FILE * (*rcsopen) (struct buf *, struct stat *, int);
3551 static char *e (p, i)
3552 char **p;
3553 int i;
3555 return p[i];
3557 static char *f (char * (*g) (char **, int), char **p, ...)
3559 char *s;
3560 va_list v;
3561 va_start (v,p);
3562 s = g (p, va_arg (v,int));
3563 va_end (v);
3564 return s;
3567 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
3568 function prototypes and stuff, but not '\xHH' hex character constants.
3569 These don't provoke an error unfortunately, instead are silently treated
3570 as 'x'. The following induces an error, until -std is added to get
3571 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
3572 array size at least. It's necessary to write '\x00'==0 to get something
3573 that's true only with -std. */
3574 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
3576 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
3577 inside strings and character constants. */
3578 #define FOO(x) 'x'
3579 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
3581 int test (int i, double x);
3582 struct s1 {int (*f) (int a);};
3583 struct s2 {int (*f) (double a);};
3584 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
3585 int argc;
3586 char **argv;
3588 main ()
3590 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
3592 return 0;
3594 _ACEOF
3595 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
3596 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
3598 CC="$ac_save_CC $ac_arg"
3599 rm -f conftest.$ac_objext
3600 if { (ac_try="$ac_compile"
3601 case "(($ac_try" in
3602 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3603 *) ac_try_echo=$ac_try;;
3604 esac
3605 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3606 (eval "$ac_compile") 2>conftest.er1
3607 ac_status=$?
3608 grep -v '^ *+' conftest.er1 >conftest.err
3609 rm -f conftest.er1
3610 cat conftest.err >&5
3611 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3612 (exit $ac_status); } && {
3613 test -z "$ac_c_werror_flag" ||
3614 test ! -s conftest.err
3615 } && test -s conftest.$ac_objext; then
3616 ac_cv_prog_cc_c89=$ac_arg
3617 else
3618 echo "$as_me: failed program was:" >&5
3619 sed 's/^/| /' conftest.$ac_ext >&5
3624 rm -f core conftest.err conftest.$ac_objext
3625 test "x$ac_cv_prog_cc_c89" != "xno" && break
3626 done
3627 rm -f conftest.$ac_ext
3628 CC=$ac_save_CC
3631 # AC_CACHE_VAL
3632 case "x$ac_cv_prog_cc_c89" in
3634 { echo "$as_me:$LINENO: result: none needed" >&5
3635 echo "${ECHO_T}none needed" >&6; } ;;
3636 xno)
3637 { echo "$as_me:$LINENO: result: unsupported" >&5
3638 echo "${ECHO_T}unsupported" >&6; } ;;
3640 CC="$CC $ac_cv_prog_cc_c89"
3641 { echo "$as_me:$LINENO: result: $ac_cv_prog_cc_c89" >&5
3642 echo "${ECHO_T}$ac_cv_prog_cc_c89" >&6; } ;;
3643 esac
3646 ac_ext=c
3647 ac_cpp='$CPP $CPPFLAGS'
3648 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3649 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3650 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3653 # On Suns, sometimes $CPP names a directory.
3654 if test -n "$CPP" && test -d "$CPP"; then
3655 CPP=
3658 ## If not using gcc, and on Solaris, and no CPP specified, see if
3659 ## using a Sun compiler, which needs -Xs to prevent whitespace.
3660 if test x"$GCC" != xyes && test x"$emacs_check_sunpro_c" = xyes && \
3661 test x"$CPP" = x; then
3662 { echo "$as_me:$LINENO: checking whether we are using a Sun C compiler" >&5
3663 echo $ECHO_N "checking whether we are using a Sun C compiler... $ECHO_C" >&6; }
3665 if test "${emacs_cv_sunpro_c+set}" = set; then
3666 echo $ECHO_N "(cached) $ECHO_C" >&6
3667 else
3668 cat >conftest.$ac_ext <<_ACEOF
3669 /* confdefs.h. */
3670 _ACEOF
3671 cat confdefs.h >>conftest.$ac_ext
3672 cat >>conftest.$ac_ext <<_ACEOF
3673 /* end confdefs.h. */
3676 main ()
3678 #ifndef __SUNPRO_C
3679 fail;
3680 #endif
3683 return 0;
3685 _ACEOF
3686 rm -f conftest.$ac_objext conftest$ac_exeext
3687 if { (ac_try="$ac_link"
3688 case "(($ac_try" in
3689 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3690 *) ac_try_echo=$ac_try;;
3691 esac
3692 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3693 (eval "$ac_link") 2>conftest.er1
3694 ac_status=$?
3695 grep -v '^ *+' conftest.er1 >conftest.err
3696 rm -f conftest.er1
3697 cat conftest.err >&5
3698 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3699 (exit $ac_status); } && {
3700 test -z "$ac_c_werror_flag" ||
3701 test ! -s conftest.err
3702 } && test -s conftest$ac_exeext &&
3703 $as_test_x conftest$ac_exeext; then
3704 emacs_cv_sunpro_c=yes
3705 else
3706 echo "$as_me: failed program was:" >&5
3707 sed 's/^/| /' conftest.$ac_ext >&5
3709 emacs_cv_sunpro_c=no
3712 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
3713 conftest$ac_exeext conftest.$ac_ext
3716 { echo "$as_me:$LINENO: result: $emacs_cv_sunpro_c" >&5
3717 echo "${ECHO_T}$emacs_cv_sunpro_c" >&6; }
3719 if test x"$emacs_cv_sunpro_c" = xyes; then
3720 NON_GNU_CPP="$CC -E -Xs"
3724 #### Some systems specify a CPP to use unless we are using GCC.
3725 #### Now that we know whether we are using GCC, we can decide whether
3726 #### to use that one.
3727 if test "x$NON_GNU_CPP" != x && test x$GCC != xyes && test "x$CPP" = x
3728 then
3729 CPP="$NON_GNU_CPP"
3732 #### Some systems specify a CC to use unless we are using GCC.
3733 #### Now that we know whether we are using GCC, we can decide whether
3734 #### to use that one.
3735 if test "x$NON_GNU_CC" != x && test x$GCC != xyes &&
3736 test x$cc_specified != xyes
3737 then
3738 CC="$NON_GNU_CC"
3741 if test x$GCC = xyes && test "x$GCC_TEST_OPTIONS" != x
3742 then
3743 CC="$CC $GCC_TEST_OPTIONS"
3746 if test x$GCC = x && test "x$NON_GCC_TEST_OPTIONS" != x
3747 then
3748 CC="$CC $NON_GCC_TEST_OPTIONS"
3752 cat >>confdefs.h <<\_ACEOF
3753 #define _GNU_SOURCE 1
3754 _ACEOF
3757 ac_ext=c
3758 ac_cpp='$CPP $CPPFLAGS'
3759 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3760 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3761 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3762 { echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
3763 echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6; }
3764 # On Suns, sometimes $CPP names a directory.
3765 if test -n "$CPP" && test -d "$CPP"; then
3766 CPP=
3768 if test -z "$CPP"; then
3769 if test "${ac_cv_prog_CPP+set}" = set; then
3770 echo $ECHO_N "(cached) $ECHO_C" >&6
3771 else
3772 # Double quotes because CPP needs to be expanded
3773 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
3775 ac_preproc_ok=false
3776 for ac_c_preproc_warn_flag in '' yes
3778 # Use a header file that comes with gcc, so configuring glibc
3779 # with a fresh cross-compiler works.
3780 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3781 # <limits.h> exists even on freestanding compilers.
3782 # On the NeXT, cc -E runs the code through the compiler's parser,
3783 # not just through cpp. "Syntax error" is here to catch this case.
3784 cat >conftest.$ac_ext <<_ACEOF
3785 /* confdefs.h. */
3786 _ACEOF
3787 cat confdefs.h >>conftest.$ac_ext
3788 cat >>conftest.$ac_ext <<_ACEOF
3789 /* end confdefs.h. */
3790 #ifdef __STDC__
3791 # include <limits.h>
3792 #else
3793 # include <assert.h>
3794 #endif
3795 Syntax error
3796 _ACEOF
3797 if { (ac_try="$ac_cpp conftest.$ac_ext"
3798 case "(($ac_try" in
3799 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3800 *) ac_try_echo=$ac_try;;
3801 esac
3802 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3803 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
3804 ac_status=$?
3805 grep -v '^ *+' conftest.er1 >conftest.err
3806 rm -f conftest.er1
3807 cat conftest.err >&5
3808 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3809 (exit $ac_status); } >/dev/null && {
3810 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
3811 test ! -s conftest.err
3812 }; then
3814 else
3815 echo "$as_me: failed program was:" >&5
3816 sed 's/^/| /' conftest.$ac_ext >&5
3818 # Broken: fails on valid input.
3819 continue
3822 rm -f conftest.err conftest.$ac_ext
3824 # OK, works on sane cases. Now check whether nonexistent headers
3825 # can be detected and how.
3826 cat >conftest.$ac_ext <<_ACEOF
3827 /* confdefs.h. */
3828 _ACEOF
3829 cat confdefs.h >>conftest.$ac_ext
3830 cat >>conftest.$ac_ext <<_ACEOF
3831 /* end confdefs.h. */
3832 #include <ac_nonexistent.h>
3833 _ACEOF
3834 if { (ac_try="$ac_cpp conftest.$ac_ext"
3835 case "(($ac_try" in
3836 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3837 *) ac_try_echo=$ac_try;;
3838 esac
3839 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3840 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
3841 ac_status=$?
3842 grep -v '^ *+' conftest.er1 >conftest.err
3843 rm -f conftest.er1
3844 cat conftest.err >&5
3845 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3846 (exit $ac_status); } >/dev/null && {
3847 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
3848 test ! -s conftest.err
3849 }; then
3850 # Broken: success on invalid input.
3851 continue
3852 else
3853 echo "$as_me: failed program was:" >&5
3854 sed 's/^/| /' conftest.$ac_ext >&5
3856 # Passes both tests.
3857 ac_preproc_ok=:
3858 break
3861 rm -f conftest.err conftest.$ac_ext
3863 done
3864 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3865 rm -f conftest.err conftest.$ac_ext
3866 if $ac_preproc_ok; then
3867 break
3870 done
3871 ac_cv_prog_CPP=$CPP
3874 CPP=$ac_cv_prog_CPP
3875 else
3876 ac_cv_prog_CPP=$CPP
3878 { echo "$as_me:$LINENO: result: $CPP" >&5
3879 echo "${ECHO_T}$CPP" >&6; }
3880 ac_preproc_ok=false
3881 for ac_c_preproc_warn_flag in '' yes
3883 # Use a header file that comes with gcc, so configuring glibc
3884 # with a fresh cross-compiler works.
3885 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3886 # <limits.h> exists even on freestanding compilers.
3887 # On the NeXT, cc -E runs the code through the compiler's parser,
3888 # not just through cpp. "Syntax error" is here to catch this case.
3889 cat >conftest.$ac_ext <<_ACEOF
3890 /* confdefs.h. */
3891 _ACEOF
3892 cat confdefs.h >>conftest.$ac_ext
3893 cat >>conftest.$ac_ext <<_ACEOF
3894 /* end confdefs.h. */
3895 #ifdef __STDC__
3896 # include <limits.h>
3897 #else
3898 # include <assert.h>
3899 #endif
3900 Syntax error
3901 _ACEOF
3902 if { (ac_try="$ac_cpp conftest.$ac_ext"
3903 case "(($ac_try" in
3904 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3905 *) ac_try_echo=$ac_try;;
3906 esac
3907 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3908 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
3909 ac_status=$?
3910 grep -v '^ *+' conftest.er1 >conftest.err
3911 rm -f conftest.er1
3912 cat conftest.err >&5
3913 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3914 (exit $ac_status); } >/dev/null && {
3915 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
3916 test ! -s conftest.err
3917 }; then
3919 else
3920 echo "$as_me: failed program was:" >&5
3921 sed 's/^/| /' conftest.$ac_ext >&5
3923 # Broken: fails on valid input.
3924 continue
3927 rm -f conftest.err conftest.$ac_ext
3929 # OK, works on sane cases. Now check whether nonexistent headers
3930 # can be detected and how.
3931 cat >conftest.$ac_ext <<_ACEOF
3932 /* confdefs.h. */
3933 _ACEOF
3934 cat confdefs.h >>conftest.$ac_ext
3935 cat >>conftest.$ac_ext <<_ACEOF
3936 /* end confdefs.h. */
3937 #include <ac_nonexistent.h>
3938 _ACEOF
3939 if { (ac_try="$ac_cpp conftest.$ac_ext"
3940 case "(($ac_try" in
3941 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3942 *) ac_try_echo=$ac_try;;
3943 esac
3944 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3945 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
3946 ac_status=$?
3947 grep -v '^ *+' conftest.er1 >conftest.err
3948 rm -f conftest.er1
3949 cat conftest.err >&5
3950 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3951 (exit $ac_status); } >/dev/null && {
3952 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
3953 test ! -s conftest.err
3954 }; then
3955 # Broken: success on invalid input.
3956 continue
3957 else
3958 echo "$as_me: failed program was:" >&5
3959 sed 's/^/| /' conftest.$ac_ext >&5
3961 # Passes both tests.
3962 ac_preproc_ok=:
3963 break
3966 rm -f conftest.err conftest.$ac_ext
3968 done
3969 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3970 rm -f conftest.err conftest.$ac_ext
3971 if $ac_preproc_ok; then
3973 else
3974 { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
3975 See \`config.log' for more details." >&5
3976 echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
3977 See \`config.log' for more details." >&2;}
3978 { (exit 1); exit 1; }; }
3981 ac_ext=c
3982 ac_cpp='$CPP $CPPFLAGS'
3983 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3984 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3985 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3988 { echo "$as_me:$LINENO: checking for grep that handles long lines and -e" >&5
3989 echo $ECHO_N "checking for grep that handles long lines and -e... $ECHO_C" >&6; }
3990 if test "${ac_cv_path_GREP+set}" = set; then
3991 echo $ECHO_N "(cached) $ECHO_C" >&6
3992 else
3993 # Extract the first word of "grep ggrep" to use in msg output
3994 if test -z "$GREP"; then
3995 set dummy grep ggrep; ac_prog_name=$2
3996 if test "${ac_cv_path_GREP+set}" = set; then
3997 echo $ECHO_N "(cached) $ECHO_C" >&6
3998 else
3999 ac_path_GREP_found=false
4000 # Loop through the user's path and test for each of PROGNAME-LIST
4001 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4002 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4004 IFS=$as_save_IFS
4005 test -z "$as_dir" && as_dir=.
4006 for ac_prog in grep ggrep; do
4007 for ac_exec_ext in '' $ac_executable_extensions; do
4008 ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
4009 { test -f "$ac_path_GREP" && $as_test_x "$ac_path_GREP"; } || continue
4010 # Check for GNU ac_path_GREP and select it if it is found.
4011 # Check for GNU $ac_path_GREP
4012 case `"$ac_path_GREP" --version 2>&1` in
4013 *GNU*)
4014 ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
4016 ac_count=0
4017 echo $ECHO_N "0123456789$ECHO_C" >"conftest.in"
4018 while :
4020 cat "conftest.in" "conftest.in" >"conftest.tmp"
4021 mv "conftest.tmp" "conftest.in"
4022 cp "conftest.in" "conftest.nl"
4023 echo 'GREP' >> "conftest.nl"
4024 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4025 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4026 ac_count=`expr $ac_count + 1`
4027 if test $ac_count -gt ${ac_path_GREP_max-0}; then
4028 # Best one so far, save it but keep looking for a better one
4029 ac_cv_path_GREP="$ac_path_GREP"
4030 ac_path_GREP_max=$ac_count
4032 # 10*(2^10) chars as input seems more than enough
4033 test $ac_count -gt 10 && break
4034 done
4035 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4036 esac
4039 $ac_path_GREP_found && break 3
4040 done
4041 done
4043 done
4044 IFS=$as_save_IFS
4049 GREP="$ac_cv_path_GREP"
4050 if test -z "$GREP"; then
4051 { { echo "$as_me:$LINENO: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
4052 echo "$as_me: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
4053 { (exit 1); exit 1; }; }
4056 else
4057 ac_cv_path_GREP=$GREP
4062 { echo "$as_me:$LINENO: result: $ac_cv_path_GREP" >&5
4063 echo "${ECHO_T}$ac_cv_path_GREP" >&6; }
4064 GREP="$ac_cv_path_GREP"
4067 { echo "$as_me:$LINENO: checking for egrep" >&5
4068 echo $ECHO_N "checking for egrep... $ECHO_C" >&6; }
4069 if test "${ac_cv_path_EGREP+set}" = set; then
4070 echo $ECHO_N "(cached) $ECHO_C" >&6
4071 else
4072 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
4073 then ac_cv_path_EGREP="$GREP -E"
4074 else
4075 # Extract the first word of "egrep" to use in msg output
4076 if test -z "$EGREP"; then
4077 set dummy egrep; ac_prog_name=$2
4078 if test "${ac_cv_path_EGREP+set}" = set; then
4079 echo $ECHO_N "(cached) $ECHO_C" >&6
4080 else
4081 ac_path_EGREP_found=false
4082 # Loop through the user's path and test for each of PROGNAME-LIST
4083 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4084 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4086 IFS=$as_save_IFS
4087 test -z "$as_dir" && as_dir=.
4088 for ac_prog in egrep; do
4089 for ac_exec_ext in '' $ac_executable_extensions; do
4090 ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
4091 { test -f "$ac_path_EGREP" && $as_test_x "$ac_path_EGREP"; } || continue
4092 # Check for GNU ac_path_EGREP and select it if it is found.
4093 # Check for GNU $ac_path_EGREP
4094 case `"$ac_path_EGREP" --version 2>&1` in
4095 *GNU*)
4096 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
4098 ac_count=0
4099 echo $ECHO_N "0123456789$ECHO_C" >"conftest.in"
4100 while :
4102 cat "conftest.in" "conftest.in" >"conftest.tmp"
4103 mv "conftest.tmp" "conftest.in"
4104 cp "conftest.in" "conftest.nl"
4105 echo 'EGREP' >> "conftest.nl"
4106 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4107 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4108 ac_count=`expr $ac_count + 1`
4109 if test $ac_count -gt ${ac_path_EGREP_max-0}; then
4110 # Best one so far, save it but keep looking for a better one
4111 ac_cv_path_EGREP="$ac_path_EGREP"
4112 ac_path_EGREP_max=$ac_count
4114 # 10*(2^10) chars as input seems more than enough
4115 test $ac_count -gt 10 && break
4116 done
4117 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4118 esac
4121 $ac_path_EGREP_found && break 3
4122 done
4123 done
4125 done
4126 IFS=$as_save_IFS
4131 EGREP="$ac_cv_path_EGREP"
4132 if test -z "$EGREP"; then
4133 { { echo "$as_me:$LINENO: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
4134 echo "$as_me: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
4135 { (exit 1); exit 1; }; }
4138 else
4139 ac_cv_path_EGREP=$EGREP
4145 { echo "$as_me:$LINENO: result: $ac_cv_path_EGREP" >&5
4146 echo "${ECHO_T}$ac_cv_path_EGREP" >&6; }
4147 EGREP="$ac_cv_path_EGREP"
4151 { echo "$as_me:$LINENO: checking for AIX" >&5
4152 echo $ECHO_N "checking for AIX... $ECHO_C" >&6; }
4153 cat >conftest.$ac_ext <<_ACEOF
4154 /* confdefs.h. */
4155 _ACEOF
4156 cat confdefs.h >>conftest.$ac_ext
4157 cat >>conftest.$ac_ext <<_ACEOF
4158 /* end confdefs.h. */
4159 #ifdef _AIX
4161 #endif
4163 _ACEOF
4164 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4165 $EGREP "yes" >/dev/null 2>&1; then
4166 { echo "$as_me:$LINENO: result: yes" >&5
4167 echo "${ECHO_T}yes" >&6; }
4168 cat >>confdefs.h <<\_ACEOF
4169 #define _ALL_SOURCE 1
4170 _ACEOF
4172 else
4173 { echo "$as_me:$LINENO: result: no" >&5
4174 echo "${ECHO_T}no" >&6; }
4176 rm -f conftest*
4179 { echo "$as_me:$LINENO: checking for ANSI C header files" >&5
4180 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6; }
4181 if test "${ac_cv_header_stdc+set}" = set; then
4182 echo $ECHO_N "(cached) $ECHO_C" >&6
4183 else
4184 cat >conftest.$ac_ext <<_ACEOF
4185 /* confdefs.h. */
4186 _ACEOF
4187 cat confdefs.h >>conftest.$ac_ext
4188 cat >>conftest.$ac_ext <<_ACEOF
4189 /* end confdefs.h. */
4190 #include <stdlib.h>
4191 #include <stdarg.h>
4192 #include <string.h>
4193 #include <float.h>
4196 main ()
4200 return 0;
4202 _ACEOF
4203 rm -f conftest.$ac_objext
4204 if { (ac_try="$ac_compile"
4205 case "(($ac_try" in
4206 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4207 *) ac_try_echo=$ac_try;;
4208 esac
4209 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4210 (eval "$ac_compile") 2>conftest.er1
4211 ac_status=$?
4212 grep -v '^ *+' conftest.er1 >conftest.err
4213 rm -f conftest.er1
4214 cat conftest.err >&5
4215 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4216 (exit $ac_status); } && {
4217 test -z "$ac_c_werror_flag" ||
4218 test ! -s conftest.err
4219 } && test -s conftest.$ac_objext; then
4220 ac_cv_header_stdc=yes
4221 else
4222 echo "$as_me: failed program was:" >&5
4223 sed 's/^/| /' conftest.$ac_ext >&5
4225 ac_cv_header_stdc=no
4228 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4230 if test $ac_cv_header_stdc = yes; then
4231 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
4232 cat >conftest.$ac_ext <<_ACEOF
4233 /* confdefs.h. */
4234 _ACEOF
4235 cat confdefs.h >>conftest.$ac_ext
4236 cat >>conftest.$ac_ext <<_ACEOF
4237 /* end confdefs.h. */
4238 #include <string.h>
4240 _ACEOF
4241 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4242 $EGREP "memchr" >/dev/null 2>&1; then
4244 else
4245 ac_cv_header_stdc=no
4247 rm -f conftest*
4251 if test $ac_cv_header_stdc = yes; then
4252 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
4253 cat >conftest.$ac_ext <<_ACEOF
4254 /* confdefs.h. */
4255 _ACEOF
4256 cat confdefs.h >>conftest.$ac_ext
4257 cat >>conftest.$ac_ext <<_ACEOF
4258 /* end confdefs.h. */
4259 #include <stdlib.h>
4261 _ACEOF
4262 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4263 $EGREP "free" >/dev/null 2>&1; then
4265 else
4266 ac_cv_header_stdc=no
4268 rm -f conftest*
4272 if test $ac_cv_header_stdc = yes; then
4273 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
4274 if test "$cross_compiling" = yes; then
4276 else
4277 cat >conftest.$ac_ext <<_ACEOF
4278 /* confdefs.h. */
4279 _ACEOF
4280 cat confdefs.h >>conftest.$ac_ext
4281 cat >>conftest.$ac_ext <<_ACEOF
4282 /* end confdefs.h. */
4283 #include <ctype.h>
4284 #include <stdlib.h>
4285 #if ((' ' & 0x0FF) == 0x020)
4286 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
4287 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
4288 #else
4289 # define ISLOWER(c) \
4290 (('a' <= (c) && (c) <= 'i') \
4291 || ('j' <= (c) && (c) <= 'r') \
4292 || ('s' <= (c) && (c) <= 'z'))
4293 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
4294 #endif
4296 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
4298 main ()
4300 int i;
4301 for (i = 0; i < 256; i++)
4302 if (XOR (islower (i), ISLOWER (i))
4303 || toupper (i) != TOUPPER (i))
4304 return 2;
4305 return 0;
4307 _ACEOF
4308 rm -f conftest$ac_exeext
4309 if { (ac_try="$ac_link"
4310 case "(($ac_try" in
4311 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4312 *) ac_try_echo=$ac_try;;
4313 esac
4314 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4315 (eval "$ac_link") 2>&5
4316 ac_status=$?
4317 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4318 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
4319 { (case "(($ac_try" in
4320 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4321 *) ac_try_echo=$ac_try;;
4322 esac
4323 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4324 (eval "$ac_try") 2>&5
4325 ac_status=$?
4326 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4327 (exit $ac_status); }; }; then
4329 else
4330 echo "$as_me: program exited with status $ac_status" >&5
4331 echo "$as_me: failed program was:" >&5
4332 sed 's/^/| /' conftest.$ac_ext >&5
4334 ( exit $ac_status )
4335 ac_cv_header_stdc=no
4337 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
4343 { echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
4344 echo "${ECHO_T}$ac_cv_header_stdc" >&6; }
4345 if test $ac_cv_header_stdc = yes; then
4347 cat >>confdefs.h <<\_ACEOF
4348 #define STDC_HEADERS 1
4349 _ACEOF
4353 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
4363 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
4364 inttypes.h stdint.h unistd.h
4366 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
4367 { echo "$as_me:$LINENO: checking for $ac_header" >&5
4368 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
4369 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
4370 echo $ECHO_N "(cached) $ECHO_C" >&6
4371 else
4372 cat >conftest.$ac_ext <<_ACEOF
4373 /* confdefs.h. */
4374 _ACEOF
4375 cat confdefs.h >>conftest.$ac_ext
4376 cat >>conftest.$ac_ext <<_ACEOF
4377 /* end confdefs.h. */
4378 $ac_includes_default
4380 #include <$ac_header>
4381 _ACEOF
4382 rm -f conftest.$ac_objext
4383 if { (ac_try="$ac_compile"
4384 case "(($ac_try" in
4385 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4386 *) ac_try_echo=$ac_try;;
4387 esac
4388 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4389 (eval "$ac_compile") 2>conftest.er1
4390 ac_status=$?
4391 grep -v '^ *+' conftest.er1 >conftest.err
4392 rm -f conftest.er1
4393 cat conftest.err >&5
4394 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4395 (exit $ac_status); } && {
4396 test -z "$ac_c_werror_flag" ||
4397 test ! -s conftest.err
4398 } && test -s conftest.$ac_objext; then
4399 eval "$as_ac_Header=yes"
4400 else
4401 echo "$as_me: failed program was:" >&5
4402 sed 's/^/| /' conftest.$ac_ext >&5
4404 eval "$as_ac_Header=no"
4407 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4409 ac_res=`eval echo '${'$as_ac_Header'}'`
4410 { echo "$as_me:$LINENO: result: $ac_res" >&5
4411 echo "${ECHO_T}$ac_res" >&6; }
4412 if test `eval echo '${'$as_ac_Header'}'` = yes; then
4413 cat >>confdefs.h <<_ACEOF
4414 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
4415 _ACEOF
4419 done
4422 if test "${ac_cv_header_minix_config_h+set}" = set; then
4423 { echo "$as_me:$LINENO: checking for minix/config.h" >&5
4424 echo $ECHO_N "checking for minix/config.h... $ECHO_C" >&6; }
4425 if test "${ac_cv_header_minix_config_h+set}" = set; then
4426 echo $ECHO_N "(cached) $ECHO_C" >&6
4428 { echo "$as_me:$LINENO: result: $ac_cv_header_minix_config_h" >&5
4429 echo "${ECHO_T}$ac_cv_header_minix_config_h" >&6; }
4430 else
4431 # Is the header compilable?
4432 { echo "$as_me:$LINENO: checking minix/config.h usability" >&5
4433 echo $ECHO_N "checking minix/config.h usability... $ECHO_C" >&6; }
4434 cat >conftest.$ac_ext <<_ACEOF
4435 /* confdefs.h. */
4436 _ACEOF
4437 cat confdefs.h >>conftest.$ac_ext
4438 cat >>conftest.$ac_ext <<_ACEOF
4439 /* end confdefs.h. */
4440 $ac_includes_default
4441 #include <minix/config.h>
4442 _ACEOF
4443 rm -f conftest.$ac_objext
4444 if { (ac_try="$ac_compile"
4445 case "(($ac_try" in
4446 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4447 *) ac_try_echo=$ac_try;;
4448 esac
4449 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4450 (eval "$ac_compile") 2>conftest.er1
4451 ac_status=$?
4452 grep -v '^ *+' conftest.er1 >conftest.err
4453 rm -f conftest.er1
4454 cat conftest.err >&5
4455 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4456 (exit $ac_status); } && {
4457 test -z "$ac_c_werror_flag" ||
4458 test ! -s conftest.err
4459 } && test -s conftest.$ac_objext; then
4460 ac_header_compiler=yes
4461 else
4462 echo "$as_me: failed program was:" >&5
4463 sed 's/^/| /' conftest.$ac_ext >&5
4465 ac_header_compiler=no
4468 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4469 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
4470 echo "${ECHO_T}$ac_header_compiler" >&6; }
4472 # Is the header present?
4473 { echo "$as_me:$LINENO: checking minix/config.h presence" >&5
4474 echo $ECHO_N "checking minix/config.h presence... $ECHO_C" >&6; }
4475 cat >conftest.$ac_ext <<_ACEOF
4476 /* confdefs.h. */
4477 _ACEOF
4478 cat confdefs.h >>conftest.$ac_ext
4479 cat >>conftest.$ac_ext <<_ACEOF
4480 /* end confdefs.h. */
4481 #include <minix/config.h>
4482 _ACEOF
4483 if { (ac_try="$ac_cpp conftest.$ac_ext"
4484 case "(($ac_try" in
4485 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4486 *) ac_try_echo=$ac_try;;
4487 esac
4488 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4489 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
4490 ac_status=$?
4491 grep -v '^ *+' conftest.er1 >conftest.err
4492 rm -f conftest.er1
4493 cat conftest.err >&5
4494 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4495 (exit $ac_status); } >/dev/null && {
4496 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
4497 test ! -s conftest.err
4498 }; then
4499 ac_header_preproc=yes
4500 else
4501 echo "$as_me: failed program was:" >&5
4502 sed 's/^/| /' conftest.$ac_ext >&5
4504 ac_header_preproc=no
4507 rm -f conftest.err conftest.$ac_ext
4508 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
4509 echo "${ECHO_T}$ac_header_preproc" >&6; }
4511 # So? What about this header?
4512 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
4513 yes:no: )
4514 { echo "$as_me:$LINENO: WARNING: minix/config.h: accepted by the compiler, rejected by the preprocessor!" >&5
4515 echo "$as_me: WARNING: minix/config.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
4516 { echo "$as_me:$LINENO: WARNING: minix/config.h: proceeding with the compiler's result" >&5
4517 echo "$as_me: WARNING: minix/config.h: proceeding with the compiler's result" >&2;}
4518 ac_header_preproc=yes
4520 no:yes:* )
4521 { echo "$as_me:$LINENO: WARNING: minix/config.h: present but cannot be compiled" >&5
4522 echo "$as_me: WARNING: minix/config.h: present but cannot be compiled" >&2;}
4523 { echo "$as_me:$LINENO: WARNING: minix/config.h: check for missing prerequisite headers?" >&5
4524 echo "$as_me: WARNING: minix/config.h: check for missing prerequisite headers?" >&2;}
4525 { echo "$as_me:$LINENO: WARNING: minix/config.h: see the Autoconf documentation" >&5
4526 echo "$as_me: WARNING: minix/config.h: see the Autoconf documentation" >&2;}
4527 { echo "$as_me:$LINENO: WARNING: minix/config.h: section \"Present But Cannot Be Compiled\"" >&5
4528 echo "$as_me: WARNING: minix/config.h: section \"Present But Cannot Be Compiled\"" >&2;}
4529 { echo "$as_me:$LINENO: WARNING: minix/config.h: proceeding with the preprocessor's result" >&5
4530 echo "$as_me: WARNING: minix/config.h: proceeding with the preprocessor's result" >&2;}
4531 { echo "$as_me:$LINENO: WARNING: minix/config.h: in the future, the compiler will take precedence" >&5
4532 echo "$as_me: WARNING: minix/config.h: in the future, the compiler will take precedence" >&2;}
4535 esac
4536 { echo "$as_me:$LINENO: checking for minix/config.h" >&5
4537 echo $ECHO_N "checking for minix/config.h... $ECHO_C" >&6; }
4538 if test "${ac_cv_header_minix_config_h+set}" = set; then
4539 echo $ECHO_N "(cached) $ECHO_C" >&6
4540 else
4541 ac_cv_header_minix_config_h=$ac_header_preproc
4543 { echo "$as_me:$LINENO: result: $ac_cv_header_minix_config_h" >&5
4544 echo "${ECHO_T}$ac_cv_header_minix_config_h" >&6; }
4547 if test $ac_cv_header_minix_config_h = yes; then
4548 MINIX=yes
4549 else
4550 MINIX=
4554 if test "$MINIX" = yes; then
4556 cat >>confdefs.h <<\_ACEOF
4557 #define _POSIX_SOURCE 1
4558 _ACEOF
4561 cat >>confdefs.h <<\_ACEOF
4562 #define _POSIX_1_SOURCE 2
4563 _ACEOF
4566 cat >>confdefs.h <<\_ACEOF
4567 #define _MINIX 1
4568 _ACEOF
4582 { echo "$as_me:$LINENO: checking whether it is safe to define __EXTENSIONS__" >&5
4583 echo $ECHO_N "checking whether it is safe to define __EXTENSIONS__... $ECHO_C" >&6; }
4584 if test "${ac_cv_safe_to_define___extensions__+set}" = set; then
4585 echo $ECHO_N "(cached) $ECHO_C" >&6
4586 else
4587 cat >conftest.$ac_ext <<_ACEOF
4588 /* confdefs.h. */
4589 _ACEOF
4590 cat confdefs.h >>conftest.$ac_ext
4591 cat >>conftest.$ac_ext <<_ACEOF
4592 /* end confdefs.h. */
4594 # define __EXTENSIONS__ 1
4595 $ac_includes_default
4597 main ()
4601 return 0;
4603 _ACEOF
4604 rm -f conftest.$ac_objext
4605 if { (ac_try="$ac_compile"
4606 case "(($ac_try" in
4607 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4608 *) ac_try_echo=$ac_try;;
4609 esac
4610 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4611 (eval "$ac_compile") 2>conftest.er1
4612 ac_status=$?
4613 grep -v '^ *+' conftest.er1 >conftest.err
4614 rm -f conftest.er1
4615 cat conftest.err >&5
4616 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4617 (exit $ac_status); } && {
4618 test -z "$ac_c_werror_flag" ||
4619 test ! -s conftest.err
4620 } && test -s conftest.$ac_objext; then
4621 ac_cv_safe_to_define___extensions__=yes
4622 else
4623 echo "$as_me: failed program was:" >&5
4624 sed 's/^/| /' conftest.$ac_ext >&5
4626 ac_cv_safe_to_define___extensions__=no
4629 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4631 { echo "$as_me:$LINENO: result: $ac_cv_safe_to_define___extensions__" >&5
4632 echo "${ECHO_T}$ac_cv_safe_to_define___extensions__" >&6; }
4633 test $ac_cv_safe_to_define___extensions__ = yes &&
4634 cat >>confdefs.h <<\_ACEOF
4635 #define __EXTENSIONS__ 1
4636 _ACEOF
4638 cat >>confdefs.h <<\_ACEOF
4639 #define _POSIX_PTHREAD_SEMANTICS 1
4640 _ACEOF
4642 cat >>confdefs.h <<\_ACEOF
4643 #define _TANDEM_SOURCE 1
4644 _ACEOF
4648 ### Use -Wno-pointer-sign if the compiler supports it
4649 { echo "$as_me:$LINENO: checking whether gcc understands -Wno-pointer-sign" >&5
4650 echo $ECHO_N "checking whether gcc understands -Wno-pointer-sign... $ECHO_C" >&6; }
4651 SAVE_CFLAGS="$CFLAGS"
4652 CFLAGS="$CFLAGS -Wno-pointer-sign"
4653 cat >conftest.$ac_ext <<_ACEOF
4654 /* confdefs.h. */
4655 _ACEOF
4656 cat confdefs.h >>conftest.$ac_ext
4657 cat >>conftest.$ac_ext <<_ACEOF
4658 /* end confdefs.h. */
4661 main ()
4665 return 0;
4667 _ACEOF
4668 rm -f conftest.$ac_objext
4669 if { (ac_try="$ac_compile"
4670 case "(($ac_try" in
4671 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4672 *) ac_try_echo=$ac_try;;
4673 esac
4674 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4675 (eval "$ac_compile") 2>conftest.er1
4676 ac_status=$?
4677 grep -v '^ *+' conftest.er1 >conftest.err
4678 rm -f conftest.er1
4679 cat conftest.err >&5
4680 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4681 (exit $ac_status); } && {
4682 test -z "$ac_c_werror_flag" ||
4683 test ! -s conftest.err
4684 } && test -s conftest.$ac_objext; then
4685 has_option=yes
4686 else
4687 echo "$as_me: failed program was:" >&5
4688 sed 's/^/| /' conftest.$ac_ext >&5
4690 has_option=no
4693 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4694 if test $has_option = yes; then
4695 C_WARNINGS_SWITCH="-Wno-pointer-sign $C_WARNINGS_SWITCH"
4697 { echo "$as_me:$LINENO: result: $has_option" >&5
4698 echo "${ECHO_T}$has_option" >&6; }
4699 CFLAGS="$SAVE_CFLAGS"
4700 unset has_option
4701 unset SAVE_CFLAGS
4703 #### Some other nice autoconf tests.
4705 { echo "$as_me:$LINENO: checking whether ln -s works" >&5
4706 echo $ECHO_N "checking whether ln -s works... $ECHO_C" >&6; }
4707 LN_S=$as_ln_s
4708 if test "$LN_S" = "ln -s"; then
4709 { echo "$as_me:$LINENO: result: yes" >&5
4710 echo "${ECHO_T}yes" >&6; }
4711 else
4712 { echo "$as_me:$LINENO: result: no, using $LN_S" >&5
4713 echo "${ECHO_T}no, using $LN_S" >&6; }
4716 ac_ext=c
4717 ac_cpp='$CPP $CPPFLAGS'
4718 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4719 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4720 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4721 { echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
4722 echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6; }
4723 # On Suns, sometimes $CPP names a directory.
4724 if test -n "$CPP" && test -d "$CPP"; then
4725 CPP=
4727 if test -z "$CPP"; then
4728 if test "${ac_cv_prog_CPP+set}" = set; then
4729 echo $ECHO_N "(cached) $ECHO_C" >&6
4730 else
4731 # Double quotes because CPP needs to be expanded
4732 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
4734 ac_preproc_ok=false
4735 for ac_c_preproc_warn_flag in '' yes
4737 # Use a header file that comes with gcc, so configuring glibc
4738 # with a fresh cross-compiler works.
4739 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4740 # <limits.h> exists even on freestanding compilers.
4741 # On the NeXT, cc -E runs the code through the compiler's parser,
4742 # not just through cpp. "Syntax error" is here to catch this case.
4743 cat >conftest.$ac_ext <<_ACEOF
4744 /* confdefs.h. */
4745 _ACEOF
4746 cat confdefs.h >>conftest.$ac_ext
4747 cat >>conftest.$ac_ext <<_ACEOF
4748 /* end confdefs.h. */
4749 #ifdef __STDC__
4750 # include <limits.h>
4751 #else
4752 # include <assert.h>
4753 #endif
4754 Syntax error
4755 _ACEOF
4756 if { (ac_try="$ac_cpp conftest.$ac_ext"
4757 case "(($ac_try" in
4758 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4759 *) ac_try_echo=$ac_try;;
4760 esac
4761 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4762 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
4763 ac_status=$?
4764 grep -v '^ *+' conftest.er1 >conftest.err
4765 rm -f conftest.er1
4766 cat conftest.err >&5
4767 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4768 (exit $ac_status); } >/dev/null && {
4769 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
4770 test ! -s conftest.err
4771 }; then
4773 else
4774 echo "$as_me: failed program was:" >&5
4775 sed 's/^/| /' conftest.$ac_ext >&5
4777 # Broken: fails on valid input.
4778 continue
4781 rm -f conftest.err conftest.$ac_ext
4783 # OK, works on sane cases. Now check whether nonexistent headers
4784 # can be detected and how.
4785 cat >conftest.$ac_ext <<_ACEOF
4786 /* confdefs.h. */
4787 _ACEOF
4788 cat confdefs.h >>conftest.$ac_ext
4789 cat >>conftest.$ac_ext <<_ACEOF
4790 /* end confdefs.h. */
4791 #include <ac_nonexistent.h>
4792 _ACEOF
4793 if { (ac_try="$ac_cpp conftest.$ac_ext"
4794 case "(($ac_try" in
4795 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4796 *) ac_try_echo=$ac_try;;
4797 esac
4798 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4799 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
4800 ac_status=$?
4801 grep -v '^ *+' conftest.er1 >conftest.err
4802 rm -f conftest.er1
4803 cat conftest.err >&5
4804 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4805 (exit $ac_status); } >/dev/null && {
4806 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
4807 test ! -s conftest.err
4808 }; then
4809 # Broken: success on invalid input.
4810 continue
4811 else
4812 echo "$as_me: failed program was:" >&5
4813 sed 's/^/| /' conftest.$ac_ext >&5
4815 # Passes both tests.
4816 ac_preproc_ok=:
4817 break
4820 rm -f conftest.err conftest.$ac_ext
4822 done
4823 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4824 rm -f conftest.err conftest.$ac_ext
4825 if $ac_preproc_ok; then
4826 break
4829 done
4830 ac_cv_prog_CPP=$CPP
4833 CPP=$ac_cv_prog_CPP
4834 else
4835 ac_cv_prog_CPP=$CPP
4837 { echo "$as_me:$LINENO: result: $CPP" >&5
4838 echo "${ECHO_T}$CPP" >&6; }
4839 ac_preproc_ok=false
4840 for ac_c_preproc_warn_flag in '' yes
4842 # Use a header file that comes with gcc, so configuring glibc
4843 # with a fresh cross-compiler works.
4844 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4845 # <limits.h> exists even on freestanding compilers.
4846 # On the NeXT, cc -E runs the code through the compiler's parser,
4847 # not just through cpp. "Syntax error" is here to catch this case.
4848 cat >conftest.$ac_ext <<_ACEOF
4849 /* confdefs.h. */
4850 _ACEOF
4851 cat confdefs.h >>conftest.$ac_ext
4852 cat >>conftest.$ac_ext <<_ACEOF
4853 /* end confdefs.h. */
4854 #ifdef __STDC__
4855 # include <limits.h>
4856 #else
4857 # include <assert.h>
4858 #endif
4859 Syntax error
4860 _ACEOF
4861 if { (ac_try="$ac_cpp conftest.$ac_ext"
4862 case "(($ac_try" in
4863 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4864 *) ac_try_echo=$ac_try;;
4865 esac
4866 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4867 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
4868 ac_status=$?
4869 grep -v '^ *+' conftest.er1 >conftest.err
4870 rm -f conftest.er1
4871 cat conftest.err >&5
4872 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4873 (exit $ac_status); } >/dev/null && {
4874 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
4875 test ! -s conftest.err
4876 }; then
4878 else
4879 echo "$as_me: failed program was:" >&5
4880 sed 's/^/| /' conftest.$ac_ext >&5
4882 # Broken: fails on valid input.
4883 continue
4886 rm -f conftest.err conftest.$ac_ext
4888 # OK, works on sane cases. Now check whether nonexistent headers
4889 # can be detected and how.
4890 cat >conftest.$ac_ext <<_ACEOF
4891 /* confdefs.h. */
4892 _ACEOF
4893 cat confdefs.h >>conftest.$ac_ext
4894 cat >>conftest.$ac_ext <<_ACEOF
4895 /* end confdefs.h. */
4896 #include <ac_nonexistent.h>
4897 _ACEOF
4898 if { (ac_try="$ac_cpp conftest.$ac_ext"
4899 case "(($ac_try" in
4900 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4901 *) ac_try_echo=$ac_try;;
4902 esac
4903 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4904 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
4905 ac_status=$?
4906 grep -v '^ *+' conftest.er1 >conftest.err
4907 rm -f conftest.er1
4908 cat conftest.err >&5
4909 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4910 (exit $ac_status); } >/dev/null && {
4911 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
4912 test ! -s conftest.err
4913 }; then
4914 # Broken: success on invalid input.
4915 continue
4916 else
4917 echo "$as_me: failed program was:" >&5
4918 sed 's/^/| /' conftest.$ac_ext >&5
4920 # Passes both tests.
4921 ac_preproc_ok=:
4922 break
4925 rm -f conftest.err conftest.$ac_ext
4927 done
4928 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4929 rm -f conftest.err conftest.$ac_ext
4930 if $ac_preproc_ok; then
4932 else
4933 { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
4934 See \`config.log' for more details." >&5
4935 echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
4936 See \`config.log' for more details." >&2;}
4937 { (exit 1); exit 1; }; }
4940 ac_ext=c
4941 ac_cpp='$CPP $CPPFLAGS'
4942 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4943 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4944 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4946 # Find a good install program. We prefer a C program (faster),
4947 # so one script is as good as another. But avoid the broken or
4948 # incompatible versions:
4949 # SysV /etc/install, /usr/sbin/install
4950 # SunOS /usr/etc/install
4951 # IRIX /sbin/install
4952 # AIX /bin/install
4953 # AmigaOS /C/install, which installs bootblocks on floppy discs
4954 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
4955 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
4956 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
4957 # OS/2's system install, which has a completely different semantic
4958 # ./install, which can be erroneously created by make from ./install.sh.
4959 { echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
4960 echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6; }
4961 if test -z "$INSTALL"; then
4962 if test "${ac_cv_path_install+set}" = set; then
4963 echo $ECHO_N "(cached) $ECHO_C" >&6
4964 else
4965 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4966 for as_dir in $PATH
4968 IFS=$as_save_IFS
4969 test -z "$as_dir" && as_dir=.
4970 # Account for people who put trailing slashes in PATH elements.
4971 case $as_dir/ in
4972 ./ | .// | /cC/* | \
4973 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
4974 ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
4975 /usr/ucb/* ) ;;
4977 # OSF1 and SCO ODT 3.0 have their own names for install.
4978 # Don't use installbsd from OSF since it installs stuff as root
4979 # by default.
4980 for ac_prog in ginstall scoinst install; do
4981 for ac_exec_ext in '' $ac_executable_extensions; do
4982 if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; }; then
4983 if test $ac_prog = install &&
4984 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
4985 # AIX install. It has an incompatible calling convention.
4987 elif test $ac_prog = install &&
4988 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
4989 # program-specific install script used by HP pwplus--don't use.
4991 else
4992 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
4993 break 3
4996 done
4997 done
4999 esac
5000 done
5001 IFS=$as_save_IFS
5005 if test "${ac_cv_path_install+set}" = set; then
5006 INSTALL=$ac_cv_path_install
5007 else
5008 # As a last resort, use the slow shell script. Don't cache a
5009 # value for INSTALL within a source directory, because that will
5010 # break other packages using the cache if that directory is
5011 # removed, or if the value is a relative name.
5012 INSTALL=$ac_install_sh
5015 { echo "$as_me:$LINENO: result: $INSTALL" >&5
5016 echo "${ECHO_T}$INSTALL" >&6; }
5018 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
5019 # It thinks the first close brace ends the variable substitution.
5020 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
5022 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
5024 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
5026 if test "x$RANLIB" = x; then
5027 if test -n "$ac_tool_prefix"; then
5028 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
5029 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
5030 { echo "$as_me:$LINENO: checking for $ac_word" >&5
5031 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5032 if test "${ac_cv_prog_RANLIB+set}" = set; then
5033 echo $ECHO_N "(cached) $ECHO_C" >&6
5034 else
5035 if test -n "$RANLIB"; then
5036 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
5037 else
5038 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5039 for as_dir in $PATH
5041 IFS=$as_save_IFS
5042 test -z "$as_dir" && as_dir=.
5043 for ac_exec_ext in '' $ac_executable_extensions; do
5044 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5045 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
5046 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5047 break 2
5049 done
5050 done
5051 IFS=$as_save_IFS
5055 RANLIB=$ac_cv_prog_RANLIB
5056 if test -n "$RANLIB"; then
5057 { echo "$as_me:$LINENO: result: $RANLIB" >&5
5058 echo "${ECHO_T}$RANLIB" >&6; }
5059 else
5060 { echo "$as_me:$LINENO: result: no" >&5
5061 echo "${ECHO_T}no" >&6; }
5066 if test -z "$ac_cv_prog_RANLIB"; then
5067 ac_ct_RANLIB=$RANLIB
5068 # Extract the first word of "ranlib", so it can be a program name with args.
5069 set dummy ranlib; ac_word=$2
5070 { echo "$as_me:$LINENO: checking for $ac_word" >&5
5071 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5072 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
5073 echo $ECHO_N "(cached) $ECHO_C" >&6
5074 else
5075 if test -n "$ac_ct_RANLIB"; then
5076 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
5077 else
5078 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5079 for as_dir in $PATH
5081 IFS=$as_save_IFS
5082 test -z "$as_dir" && as_dir=.
5083 for ac_exec_ext in '' $ac_executable_extensions; do
5084 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5085 ac_cv_prog_ac_ct_RANLIB="ranlib"
5086 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5087 break 2
5089 done
5090 done
5091 IFS=$as_save_IFS
5095 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
5096 if test -n "$ac_ct_RANLIB"; then
5097 { echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
5098 echo "${ECHO_T}$ac_ct_RANLIB" >&6; }
5099 else
5100 { echo "$as_me:$LINENO: result: no" >&5
5101 echo "${ECHO_T}no" >&6; }
5104 if test "x$ac_ct_RANLIB" = x; then
5105 RANLIB=":"
5106 else
5107 case $cross_compiling:$ac_tool_warned in
5108 yes:)
5109 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
5110 whose name does not start with the host triplet. If you think this
5111 configuration is useful to you, please write to autoconf@gnu.org." >&5
5112 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
5113 whose name does not start with the host triplet. If you think this
5114 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
5115 ac_tool_warned=yes ;;
5116 esac
5117 RANLIB=$ac_ct_RANLIB
5119 else
5120 RANLIB="$ac_cv_prog_RANLIB"
5124 # Extract the first word of "install-info", so it can be a program name with args.
5125 set dummy install-info; ac_word=$2
5126 { echo "$as_me:$LINENO: checking for $ac_word" >&5
5127 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5128 if test "${ac_cv_path_INSTALL_INFO+set}" = set; then
5129 echo $ECHO_N "(cached) $ECHO_C" >&6
5130 else
5131 case $INSTALL_INFO in
5132 [\\/]* | ?:[\\/]*)
5133 ac_cv_path_INSTALL_INFO="$INSTALL_INFO" # Let the user override the test with a path.
5136 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5137 for as_dir in $PATH
5139 IFS=$as_save_IFS
5140 test -z "$as_dir" && as_dir=.
5141 for ac_exec_ext in '' $ac_executable_extensions; do
5142 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5143 ac_cv_path_INSTALL_INFO="$as_dir/$ac_word$ac_exec_ext"
5144 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5145 break 2
5147 done
5148 done
5149 IFS=$as_save_IFS
5152 esac
5154 INSTALL_INFO=$ac_cv_path_INSTALL_INFO
5155 if test -n "$INSTALL_INFO"; then
5156 { echo "$as_me:$LINENO: result: $INSTALL_INFO" >&5
5157 echo "${ECHO_T}$INSTALL_INFO" >&6; }
5158 else
5159 { echo "$as_me:$LINENO: result: no" >&5
5160 echo "${ECHO_T}no" >&6; }
5164 # Extract the first word of "install-info", so it can be a program name with args.
5165 set dummy install-info; ac_word=$2
5166 { echo "$as_me:$LINENO: checking for $ac_word" >&5
5167 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5168 if test "${ac_cv_path_INSTALL_INFO+set}" = set; then
5169 echo $ECHO_N "(cached) $ECHO_C" >&6
5170 else
5171 case $INSTALL_INFO in
5172 [\\/]* | ?:[\\/]*)
5173 ac_cv_path_INSTALL_INFO="$INSTALL_INFO" # Let the user override the test with a path.
5176 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5177 for as_dir in /usr/sbin
5179 IFS=$as_save_IFS
5180 test -z "$as_dir" && as_dir=.
5181 for ac_exec_ext in '' $ac_executable_extensions; do
5182 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5183 ac_cv_path_INSTALL_INFO="$as_dir/$ac_word$ac_exec_ext"
5184 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5185 break 2
5187 done
5188 done
5189 IFS=$as_save_IFS
5192 esac
5194 INSTALL_INFO=$ac_cv_path_INSTALL_INFO
5195 if test -n "$INSTALL_INFO"; then
5196 { echo "$as_me:$LINENO: result: $INSTALL_INFO" >&5
5197 echo "${ECHO_T}$INSTALL_INFO" >&6; }
5198 else
5199 { echo "$as_me:$LINENO: result: no" >&5
5200 echo "${ECHO_T}no" >&6; }
5204 # Extract the first word of "install-info", so it can be a program name with args.
5205 set dummy install-info; ac_word=$2
5206 { echo "$as_me:$LINENO: checking for $ac_word" >&5
5207 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5208 if test "${ac_cv_path_INSTALL_INFO+set}" = set; then
5209 echo $ECHO_N "(cached) $ECHO_C" >&6
5210 else
5211 case $INSTALL_INFO in
5212 [\\/]* | ?:[\\/]*)
5213 ac_cv_path_INSTALL_INFO="$INSTALL_INFO" # Let the user override the test with a path.
5216 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5217 for as_dir in /sbin
5219 IFS=$as_save_IFS
5220 test -z "$as_dir" && as_dir=.
5221 for ac_exec_ext in '' $ac_executable_extensions; do
5222 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5223 ac_cv_path_INSTALL_INFO="$as_dir/$ac_word$ac_exec_ext"
5224 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5225 break 2
5227 done
5228 done
5229 IFS=$as_save_IFS
5231 test -z "$ac_cv_path_INSTALL_INFO" && ac_cv_path_INSTALL_INFO=":"
5233 esac
5235 INSTALL_INFO=$ac_cv_path_INSTALL_INFO
5236 if test -n "$INSTALL_INFO"; then
5237 { echo "$as_me:$LINENO: result: $INSTALL_INFO" >&5
5238 echo "${ECHO_T}$INSTALL_INFO" >&6; }
5239 else
5240 { echo "$as_me:$LINENO: result: no" >&5
5241 echo "${ECHO_T}no" >&6; }
5245 # Extract the first word of "gzip", so it can be a program name with args.
5246 set dummy gzip; ac_word=$2
5247 { echo "$as_me:$LINENO: checking for $ac_word" >&5
5248 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5249 if test "${ac_cv_path_GZIP_PROG+set}" = set; then
5250 echo $ECHO_N "(cached) $ECHO_C" >&6
5251 else
5252 case $GZIP_PROG in
5253 [\\/]* | ?:[\\/]*)
5254 ac_cv_path_GZIP_PROG="$GZIP_PROG" # Let the user override the test with a path.
5257 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5258 for as_dir in $PATH
5260 IFS=$as_save_IFS
5261 test -z "$as_dir" && as_dir=.
5262 for ac_exec_ext in '' $ac_executable_extensions; do
5263 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5264 ac_cv_path_GZIP_PROG="$as_dir/$ac_word$ac_exec_ext"
5265 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5266 break 2
5268 done
5269 done
5270 IFS=$as_save_IFS
5273 esac
5275 GZIP_PROG=$ac_cv_path_GZIP_PROG
5276 if test -n "$GZIP_PROG"; then
5277 { echo "$as_me:$LINENO: result: $GZIP_PROG" >&5
5278 echo "${ECHO_T}$GZIP_PROG" >&6; }
5279 else
5280 { echo "$as_me:$LINENO: result: no" >&5
5281 echo "${ECHO_T}no" >&6; }
5287 ## Need makeinfo >= 4.6 (?) to build the manuals.
5288 # Extract the first word of "makeinfo", so it can be a program name with args.
5289 set dummy makeinfo; ac_word=$2
5290 { echo "$as_me:$LINENO: checking for $ac_word" >&5
5291 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5292 if test "${ac_cv_path_MAKEINFO+set}" = set; then
5293 echo $ECHO_N "(cached) $ECHO_C" >&6
5294 else
5295 case $MAKEINFO in
5296 [\\/]* | ?:[\\/]*)
5297 ac_cv_path_MAKEINFO="$MAKEINFO" # Let the user override the test with a path.
5300 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5301 for as_dir in $PATH
5303 IFS=$as_save_IFS
5304 test -z "$as_dir" && as_dir=.
5305 for ac_exec_ext in '' $ac_executable_extensions; do
5306 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5307 ac_cv_path_MAKEINFO="$as_dir/$ac_word$ac_exec_ext"
5308 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5309 break 2
5311 done
5312 done
5313 IFS=$as_save_IFS
5315 test -z "$ac_cv_path_MAKEINFO" && ac_cv_path_MAKEINFO="no"
5317 esac
5319 MAKEINFO=$ac_cv_path_MAKEINFO
5320 if test -n "$MAKEINFO"; then
5321 { echo "$as_me:$LINENO: result: $MAKEINFO" >&5
5322 echo "${ECHO_T}$MAKEINFO" >&6; }
5323 else
5324 { echo "$as_me:$LINENO: result: no" >&5
5325 echo "${ECHO_T}no" >&6; }
5329 if test "$MAKEINFO" != "no" && \
5330 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
5331 MAKEINFO=no
5334 ## Makeinfo is unusual. For a released Emacs, the manuals are
5335 ## pre-built, and not deleted by the normal clean rules. makeinfo is
5336 ## therefore in the category of "special tools" not normally required, which
5337 ## configure does not have to check for (eg autoconf itself).
5338 ## In a CVS checkout on the other hand, the manuals are not included.
5339 ## So makeinfo is a requirement to build from CVS, and configure
5340 ## should test for it as it does for any other build requirement.
5341 ## We use the presence of $srcdir/info/emacs to distinguish a release,
5342 ## with pre-built manuals, from a CVS checkout.
5343 if test "$MAKEINFO" = "no"; then
5344 if test "x${with_makeinfo}" = "xno"; then
5345 MAKEINFO=off
5346 elif ! test -e $srcdir/info/emacs; then
5347 { { echo "$as_me:$LINENO: error: You do not seem to have makeinfo >= 4.6, and your
5348 source tree does not seem to have pre-built manuals in the \`info' directory.
5349 Either install a suitable version of makeinfo, or re-run configure
5350 with the \`--without-makeinfo' option to build without the manuals. " >&5
5351 echo "$as_me: error: You do not seem to have makeinfo >= 4.6, and your
5352 source tree does not seem to have pre-built manuals in the \`info' directory.
5353 Either install a suitable version of makeinfo, or re-run configure
5354 with the \`--without-makeinfo' option to build without the manuals. " >&2;}
5355 { (exit 1); exit 1; }; }
5360 if test x$GCC = xyes && test "x$GCC_LINK_TEST_OPTIONS" != x
5361 then
5362 ac_link="$ac_link $GCC_LINK_TEST_OPTIONS"
5365 if test x$GCC = x && test "x$NON_GCC_LINK_TEST_OPTIONS" != x
5366 then
5367 ac_link="$ac_link $NON_GCC_LINK_TEST_OPTIONS"
5371 late_LDFLAGS=$LDFLAGS
5372 if test "$GCC" = yes; then
5373 LDFLAGS="$LDFLAGS -Wl,-znocombreloc"
5374 else
5375 LDFLAGS="$LDFLAGS -znocombreloc"
5378 { echo "$as_me:$LINENO: checking for -znocombreloc" >&5
5379 echo $ECHO_N "checking for -znocombreloc... $ECHO_C" >&6; }
5380 cat >conftest.$ac_ext <<_ACEOF
5381 main(){return 0;}
5382 _ACEOF
5383 rm -f conftest.$ac_objext conftest$ac_exeext
5384 if { (ac_try="$ac_link"
5385 case "(($ac_try" in
5386 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5387 *) ac_try_echo=$ac_try;;
5388 esac
5389 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5390 (eval "$ac_link") 2>conftest.er1
5391 ac_status=$?
5392 grep -v '^ *+' conftest.er1 >conftest.err
5393 rm -f conftest.er1
5394 cat conftest.err >&5
5395 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5396 (exit $ac_status); } && {
5397 test -z "$ac_c_werror_flag" ||
5398 test ! -s conftest.err
5399 } && test -s conftest$ac_exeext &&
5400 $as_test_x conftest$ac_exeext; then
5401 { echo "$as_me:$LINENO: result: yes" >&5
5402 echo "${ECHO_T}yes" >&6; }
5403 else
5404 echo "$as_me: failed program was:" >&5
5405 sed 's/^/| /' conftest.$ac_ext >&5
5407 LDFLAGS=$late_LDFLAGS
5408 { echo "$as_me:$LINENO: result: no" >&5
5409 echo "${ECHO_T}no" >&6; }
5412 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
5413 conftest$ac_exeext conftest.$ac_ext
5415 #### Extract some information from the operating system and machine files.
5417 { echo "$as_me:$LINENO: checking the machine- and system-dependent files to find out
5418 - which libraries the lib-src programs will want, and
5419 - whether the GNU malloc routines are usable..." >&5
5420 echo "$as_me: checking the machine- and system-dependent files to find out
5421 - which libraries the lib-src programs will want, and
5422 - whether the GNU malloc routines are usable..." >&6;}
5424 ### First figure out CFLAGS (which we use for running the compiler here)
5425 ### and REAL_CFLAGS (which we use for real compilation).
5426 ### The two are the same except on a few systems, where they are made
5427 ### different to work around various lossages. For example,
5428 ### GCC 2.5 on GNU/Linux needs them to be different because it treats -g
5429 ### as implying static linking.
5431 ### If the CFLAGS env var is specified, we use that value
5432 ### instead of the default.
5434 ### It's not important that this name contain the PID; you can't run
5435 ### two configures in the same directory and have anything work
5436 ### anyway.
5437 tempcname="conftest.c"
5439 echo '
5440 #include "'${srcdir}'/src/'${opsysfile}'"
5441 #include "'${srcdir}'/src/'${machfile}'"
5442 #ifndef LIBS_MACHINE
5443 #define LIBS_MACHINE
5444 #endif
5445 #ifndef LIBS_SYSTEM
5446 #define LIBS_SYSTEM
5447 #endif
5448 #ifndef C_SWITCH_SYSTEM
5449 #define C_SWITCH_SYSTEM
5450 #endif
5451 #ifndef C_SWITCH_MACHINE
5452 #define C_SWITCH_MACHINE
5453 #endif
5454 configure___ libsrc_libs=LIBS_MACHINE LIBS_SYSTEM
5455 configure___ c_switch_system=C_SWITCH_SYSTEM
5456 configure___ c_switch_machine=C_SWITCH_MACHINE
5458 #ifndef LIB_X11_LIB
5459 #define LIB_X11_LIB -lX11
5460 #endif
5462 #ifndef LIBX11_SYSTEM
5463 #define LIBX11_SYSTEM
5464 #endif
5465 configure___ LIBX=LIB_X11_LIB LIBX11_SYSTEM
5467 #ifdef UNEXEC
5468 configure___ unexec=UNEXEC
5469 #else
5470 configure___ unexec=unexec.o
5471 #endif
5473 #ifdef SYSTEM_MALLOC
5474 configure___ system_malloc=yes
5475 #else
5476 configure___ system_malloc=no
5477 #endif
5479 #ifdef USE_MMAP_FOR_BUFFERS
5480 configure___ use_mmap_for_buffers=yes
5481 #else
5482 configure___ use_mmap_for_buffers=no
5483 #endif
5485 #ifndef C_DEBUG_SWITCH
5486 #define C_DEBUG_SWITCH -g
5487 #endif
5489 #ifndef C_OPTIMIZE_SWITCH
5490 #ifdef __GNUC__
5491 #define C_OPTIMIZE_SWITCH -O2
5492 #else
5493 #define C_OPTIMIZE_SWITCH -O
5494 #endif
5495 #endif
5497 #ifndef C_WARNINGS_SWITCH
5498 #define C_WARNINGS_SWITCH ${C_WARNINGS_SWITCH}
5499 #endif
5501 #ifndef LD_SWITCH_MACHINE
5502 #define LD_SWITCH_MACHINE
5503 #endif
5505 #ifndef LD_SWITCH_SYSTEM
5506 #define LD_SWITCH_SYSTEM
5507 #endif
5509 #ifndef LD_SWITCH_X_SITE_AUX
5510 #define LD_SWITCH_X_SITE_AUX
5511 #endif
5513 configure___ ld_switch_system=LD_SWITCH_SYSTEM
5514 configure___ ld_switch_machine=LD_SWITCH_MACHINE
5516 #ifdef THIS_IS_CONFIGURE
5518 /* Get the CFLAGS for tests in configure. */
5519 #ifdef __GNUC__
5520 configure___ CFLAGS=C_DEBUG_SWITCH C_OPTIMIZE_SWITCH '${SPECIFIED_CFLAGS}'
5521 #else
5522 configure___ CFLAGS=C_DEBUG_SWITCH '${SPECIFIED_CFLAGS}'
5523 #endif
5525 #else /* not THIS_IS_CONFIGURE */
5527 /* Get the CFLAGS for real compilation. */
5528 #ifdef __GNUC__
5529 configure___ REAL_CFLAGS=C_DEBUG_SWITCH C_OPTIMIZE_SWITCH C_WARNINGS_SWITCH '${SPECIFIED_CFLAGS}'
5530 #else
5531 configure___ REAL_CFLAGS=C_DEBUG_SWITCH '${SPECIFIED_CFLAGS}'
5532 #endif
5534 #endif /* not THIS_IS_CONFIGURE */
5535 ' > ${tempcname}
5537 # The value of CPP is a quoted variable reference, so we need to do this
5538 # to get its actual value...
5539 CPP=`eval "echo $CPP"`
5540 eval `${CPP} -Isrc ${tempcname} \
5541 | sed -n -e 's/^configure___ \([^=]*=\)\(.*\)$/\1"\2"/p'`
5542 if test "x$SPECIFIED_CFLAGS" = x; then
5543 eval `${CPP} -Isrc -DTHIS_IS_CONFIGURE ${tempcname} \
5544 | sed -n -e 's/^configure___ \([^=]*=\)\(.*\)$/\1"\2"/p'`
5545 else
5546 REAL_CFLAGS="$CFLAGS"
5548 rm ${tempcname}
5550 ac_link="$ac_link $ld_switch_machine $ld_switch_system"
5552 ### Make sure subsequent tests use flags consistent with the build flags.
5554 if test x"${OVERRIDE_CPPFLAGS}" != x; then
5555 CPPFLAGS="${OVERRIDE_CPPFLAGS}"
5556 else
5557 CPPFLAGS="$c_switch_system $c_switch_machine $CPPFLAGS"
5562 # Check whether --enable-largefile was given.
5563 if test "${enable_largefile+set}" = set; then
5564 enableval=$enable_largefile;
5567 if test "$enable_largefile" != no; then
5569 { echo "$as_me:$LINENO: checking for special C compiler options needed for large files" >&5
5570 echo $ECHO_N "checking for special C compiler options needed for large files... $ECHO_C" >&6; }
5571 if test "${ac_cv_sys_largefile_CC+set}" = set; then
5572 echo $ECHO_N "(cached) $ECHO_C" >&6
5573 else
5574 ac_cv_sys_largefile_CC=no
5575 if test "$GCC" != yes; then
5576 ac_save_CC=$CC
5577 while :; do
5578 # IRIX 6.2 and later do not support large files by default,
5579 # so use the C compiler's -n32 option if that helps.
5580 cat >conftest.$ac_ext <<_ACEOF
5581 /* confdefs.h. */
5582 _ACEOF
5583 cat confdefs.h >>conftest.$ac_ext
5584 cat >>conftest.$ac_ext <<_ACEOF
5585 /* end confdefs.h. */
5586 #include <sys/types.h>
5587 /* Check that off_t can represent 2**63 - 1 correctly.
5588 We can't simply define LARGE_OFF_T to be 9223372036854775807,
5589 since some C++ compilers masquerading as C compilers
5590 incorrectly reject 9223372036854775807. */
5591 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
5592 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
5593 && LARGE_OFF_T % 2147483647 == 1)
5594 ? 1 : -1];
5596 main ()
5600 return 0;
5602 _ACEOF
5603 rm -f conftest.$ac_objext
5604 if { (ac_try="$ac_compile"
5605 case "(($ac_try" in
5606 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5607 *) ac_try_echo=$ac_try;;
5608 esac
5609 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5610 (eval "$ac_compile") 2>conftest.er1
5611 ac_status=$?
5612 grep -v '^ *+' conftest.er1 >conftest.err
5613 rm -f conftest.er1
5614 cat conftest.err >&5
5615 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5616 (exit $ac_status); } && {
5617 test -z "$ac_c_werror_flag" ||
5618 test ! -s conftest.err
5619 } && test -s conftest.$ac_objext; then
5620 break
5621 else
5622 echo "$as_me: failed program was:" >&5
5623 sed 's/^/| /' conftest.$ac_ext >&5
5628 rm -f core conftest.err conftest.$ac_objext
5629 CC="$CC -n32"
5630 rm -f conftest.$ac_objext
5631 if { (ac_try="$ac_compile"
5632 case "(($ac_try" in
5633 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5634 *) ac_try_echo=$ac_try;;
5635 esac
5636 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5637 (eval "$ac_compile") 2>conftest.er1
5638 ac_status=$?
5639 grep -v '^ *+' conftest.er1 >conftest.err
5640 rm -f conftest.er1
5641 cat conftest.err >&5
5642 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5643 (exit $ac_status); } && {
5644 test -z "$ac_c_werror_flag" ||
5645 test ! -s conftest.err
5646 } && test -s conftest.$ac_objext; then
5647 ac_cv_sys_largefile_CC=' -n32'; break
5648 else
5649 echo "$as_me: failed program was:" >&5
5650 sed 's/^/| /' conftest.$ac_ext >&5
5655 rm -f core conftest.err conftest.$ac_objext
5656 break
5657 done
5658 CC=$ac_save_CC
5659 rm -f conftest.$ac_ext
5662 { echo "$as_me:$LINENO: result: $ac_cv_sys_largefile_CC" >&5
5663 echo "${ECHO_T}$ac_cv_sys_largefile_CC" >&6; }
5664 if test "$ac_cv_sys_largefile_CC" != no; then
5665 CC=$CC$ac_cv_sys_largefile_CC
5668 { echo "$as_me:$LINENO: checking for _FILE_OFFSET_BITS value needed for large files" >&5
5669 echo $ECHO_N "checking for _FILE_OFFSET_BITS value needed for large files... $ECHO_C" >&6; }
5670 if test "${ac_cv_sys_file_offset_bits+set}" = set; then
5671 echo $ECHO_N "(cached) $ECHO_C" >&6
5672 else
5673 while :; do
5674 cat >conftest.$ac_ext <<_ACEOF
5675 /* confdefs.h. */
5676 _ACEOF
5677 cat confdefs.h >>conftest.$ac_ext
5678 cat >>conftest.$ac_ext <<_ACEOF
5679 /* end confdefs.h. */
5680 #include <sys/types.h>
5681 /* Check that off_t can represent 2**63 - 1 correctly.
5682 We can't simply define LARGE_OFF_T to be 9223372036854775807,
5683 since some C++ compilers masquerading as C compilers
5684 incorrectly reject 9223372036854775807. */
5685 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
5686 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
5687 && LARGE_OFF_T % 2147483647 == 1)
5688 ? 1 : -1];
5690 main ()
5694 return 0;
5696 _ACEOF
5697 rm -f conftest.$ac_objext
5698 if { (ac_try="$ac_compile"
5699 case "(($ac_try" in
5700 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5701 *) ac_try_echo=$ac_try;;
5702 esac
5703 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5704 (eval "$ac_compile") 2>conftest.er1
5705 ac_status=$?
5706 grep -v '^ *+' conftest.er1 >conftest.err
5707 rm -f conftest.er1
5708 cat conftest.err >&5
5709 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5710 (exit $ac_status); } && {
5711 test -z "$ac_c_werror_flag" ||
5712 test ! -s conftest.err
5713 } && test -s conftest.$ac_objext; then
5714 ac_cv_sys_file_offset_bits=no; break
5715 else
5716 echo "$as_me: failed program was:" >&5
5717 sed 's/^/| /' conftest.$ac_ext >&5
5722 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5723 cat >conftest.$ac_ext <<_ACEOF
5724 /* confdefs.h. */
5725 _ACEOF
5726 cat confdefs.h >>conftest.$ac_ext
5727 cat >>conftest.$ac_ext <<_ACEOF
5728 /* end confdefs.h. */
5729 #define _FILE_OFFSET_BITS 64
5730 #include <sys/types.h>
5731 /* Check that off_t can represent 2**63 - 1 correctly.
5732 We can't simply define LARGE_OFF_T to be 9223372036854775807,
5733 since some C++ compilers masquerading as C compilers
5734 incorrectly reject 9223372036854775807. */
5735 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
5736 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
5737 && LARGE_OFF_T % 2147483647 == 1)
5738 ? 1 : -1];
5740 main ()
5744 return 0;
5746 _ACEOF
5747 rm -f conftest.$ac_objext
5748 if { (ac_try="$ac_compile"
5749 case "(($ac_try" in
5750 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5751 *) ac_try_echo=$ac_try;;
5752 esac
5753 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5754 (eval "$ac_compile") 2>conftest.er1
5755 ac_status=$?
5756 grep -v '^ *+' conftest.er1 >conftest.err
5757 rm -f conftest.er1
5758 cat conftest.err >&5
5759 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5760 (exit $ac_status); } && {
5761 test -z "$ac_c_werror_flag" ||
5762 test ! -s conftest.err
5763 } && test -s conftest.$ac_objext; then
5764 ac_cv_sys_file_offset_bits=64; break
5765 else
5766 echo "$as_me: failed program was:" >&5
5767 sed 's/^/| /' conftest.$ac_ext >&5
5772 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5773 ac_cv_sys_file_offset_bits=unknown
5774 break
5775 done
5777 { echo "$as_me:$LINENO: result: $ac_cv_sys_file_offset_bits" >&5
5778 echo "${ECHO_T}$ac_cv_sys_file_offset_bits" >&6; }
5779 case $ac_cv_sys_file_offset_bits in #(
5780 no | unknown) ;;
5782 cat >>confdefs.h <<_ACEOF
5783 #define _FILE_OFFSET_BITS $ac_cv_sys_file_offset_bits
5784 _ACEOF
5786 esac
5787 rm -f conftest*
5788 if test $ac_cv_sys_file_offset_bits = unknown; then
5789 { echo "$as_me:$LINENO: checking for _LARGE_FILES value needed for large files" >&5
5790 echo $ECHO_N "checking for _LARGE_FILES value needed for large files... $ECHO_C" >&6; }
5791 if test "${ac_cv_sys_large_files+set}" = set; then
5792 echo $ECHO_N "(cached) $ECHO_C" >&6
5793 else
5794 while :; do
5795 cat >conftest.$ac_ext <<_ACEOF
5796 /* confdefs.h. */
5797 _ACEOF
5798 cat confdefs.h >>conftest.$ac_ext
5799 cat >>conftest.$ac_ext <<_ACEOF
5800 /* end confdefs.h. */
5801 #include <sys/types.h>
5802 /* Check that off_t can represent 2**63 - 1 correctly.
5803 We can't simply define LARGE_OFF_T to be 9223372036854775807,
5804 since some C++ compilers masquerading as C compilers
5805 incorrectly reject 9223372036854775807. */
5806 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
5807 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
5808 && LARGE_OFF_T % 2147483647 == 1)
5809 ? 1 : -1];
5811 main ()
5815 return 0;
5817 _ACEOF
5818 rm -f conftest.$ac_objext
5819 if { (ac_try="$ac_compile"
5820 case "(($ac_try" in
5821 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5822 *) ac_try_echo=$ac_try;;
5823 esac
5824 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5825 (eval "$ac_compile") 2>conftest.er1
5826 ac_status=$?
5827 grep -v '^ *+' conftest.er1 >conftest.err
5828 rm -f conftest.er1
5829 cat conftest.err >&5
5830 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5831 (exit $ac_status); } && {
5832 test -z "$ac_c_werror_flag" ||
5833 test ! -s conftest.err
5834 } && test -s conftest.$ac_objext; then
5835 ac_cv_sys_large_files=no; break
5836 else
5837 echo "$as_me: failed program was:" >&5
5838 sed 's/^/| /' conftest.$ac_ext >&5
5843 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5844 cat >conftest.$ac_ext <<_ACEOF
5845 /* confdefs.h. */
5846 _ACEOF
5847 cat confdefs.h >>conftest.$ac_ext
5848 cat >>conftest.$ac_ext <<_ACEOF
5849 /* end confdefs.h. */
5850 #define _LARGE_FILES 1
5851 #include <sys/types.h>
5852 /* Check that off_t can represent 2**63 - 1 correctly.
5853 We can't simply define LARGE_OFF_T to be 9223372036854775807,
5854 since some C++ compilers masquerading as C compilers
5855 incorrectly reject 9223372036854775807. */
5856 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
5857 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
5858 && LARGE_OFF_T % 2147483647 == 1)
5859 ? 1 : -1];
5861 main ()
5865 return 0;
5867 _ACEOF
5868 rm -f conftest.$ac_objext
5869 if { (ac_try="$ac_compile"
5870 case "(($ac_try" in
5871 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5872 *) ac_try_echo=$ac_try;;
5873 esac
5874 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5875 (eval "$ac_compile") 2>conftest.er1
5876 ac_status=$?
5877 grep -v '^ *+' conftest.er1 >conftest.err
5878 rm -f conftest.er1
5879 cat conftest.err >&5
5880 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5881 (exit $ac_status); } && {
5882 test -z "$ac_c_werror_flag" ||
5883 test ! -s conftest.err
5884 } && test -s conftest.$ac_objext; then
5885 ac_cv_sys_large_files=1; break
5886 else
5887 echo "$as_me: failed program was:" >&5
5888 sed 's/^/| /' conftest.$ac_ext >&5
5893 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5894 ac_cv_sys_large_files=unknown
5895 break
5896 done
5898 { echo "$as_me:$LINENO: result: $ac_cv_sys_large_files" >&5
5899 echo "${ECHO_T}$ac_cv_sys_large_files" >&6; }
5900 case $ac_cv_sys_large_files in #(
5901 no | unknown) ;;
5903 cat >>confdefs.h <<_ACEOF
5904 #define _LARGE_FILES $ac_cv_sys_large_files
5905 _ACEOF
5907 esac
5908 rm -f conftest*
5914 ### The standard library on x86-64 and s390x GNU/Linux distributions can
5915 ### be located in either /usr/lib64 or /usr/lib.
5916 case "${canonical}" in
5917 x86_64-*-linux-gnu* | s390x-*-linux-gnu* )
5918 if test -d /usr/lib64; then
5920 cat >>confdefs.h <<\_ACEOF
5921 #define HAVE_LIB64_DIR 1
5922 _ACEOF
5925 esac
5930 if test "${with_sound}" != "no"; then
5931 # Sound support for GNU/Linux and the free BSDs.
5935 for ac_header in machine/soundcard.h sys/soundcard.h soundcard.h
5937 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
5938 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
5939 { echo "$as_me:$LINENO: checking for $ac_header" >&5
5940 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
5941 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
5942 echo $ECHO_N "(cached) $ECHO_C" >&6
5944 ac_res=`eval echo '${'$as_ac_Header'}'`
5945 { echo "$as_me:$LINENO: result: $ac_res" >&5
5946 echo "${ECHO_T}$ac_res" >&6; }
5947 else
5948 # Is the header compilable?
5949 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
5950 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
5951 cat >conftest.$ac_ext <<_ACEOF
5952 /* confdefs.h. */
5953 _ACEOF
5954 cat confdefs.h >>conftest.$ac_ext
5955 cat >>conftest.$ac_ext <<_ACEOF
5956 /* end confdefs.h. */
5957 $ac_includes_default
5958 #include <$ac_header>
5959 _ACEOF
5960 rm -f conftest.$ac_objext
5961 if { (ac_try="$ac_compile"
5962 case "(($ac_try" in
5963 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5964 *) ac_try_echo=$ac_try;;
5965 esac
5966 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5967 (eval "$ac_compile") 2>conftest.er1
5968 ac_status=$?
5969 grep -v '^ *+' conftest.er1 >conftest.err
5970 rm -f conftest.er1
5971 cat conftest.err >&5
5972 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5973 (exit $ac_status); } && {
5974 test -z "$ac_c_werror_flag" ||
5975 test ! -s conftest.err
5976 } && test -s conftest.$ac_objext; then
5977 ac_header_compiler=yes
5978 else
5979 echo "$as_me: failed program was:" >&5
5980 sed 's/^/| /' conftest.$ac_ext >&5
5982 ac_header_compiler=no
5985 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5986 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
5987 echo "${ECHO_T}$ac_header_compiler" >&6; }
5989 # Is the header present?
5990 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
5991 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
5992 cat >conftest.$ac_ext <<_ACEOF
5993 /* confdefs.h. */
5994 _ACEOF
5995 cat confdefs.h >>conftest.$ac_ext
5996 cat >>conftest.$ac_ext <<_ACEOF
5997 /* end confdefs.h. */
5998 #include <$ac_header>
5999 _ACEOF
6000 if { (ac_try="$ac_cpp conftest.$ac_ext"
6001 case "(($ac_try" in
6002 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6003 *) ac_try_echo=$ac_try;;
6004 esac
6005 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6006 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
6007 ac_status=$?
6008 grep -v '^ *+' conftest.er1 >conftest.err
6009 rm -f conftest.er1
6010 cat conftest.err >&5
6011 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6012 (exit $ac_status); } >/dev/null && {
6013 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
6014 test ! -s conftest.err
6015 }; then
6016 ac_header_preproc=yes
6017 else
6018 echo "$as_me: failed program was:" >&5
6019 sed 's/^/| /' conftest.$ac_ext >&5
6021 ac_header_preproc=no
6024 rm -f conftest.err conftest.$ac_ext
6025 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
6026 echo "${ECHO_T}$ac_header_preproc" >&6; }
6028 # So? What about this header?
6029 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
6030 yes:no: )
6031 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
6032 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
6033 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
6034 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
6035 ac_header_preproc=yes
6037 no:yes:* )
6038 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
6039 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
6040 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
6041 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
6042 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
6043 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
6044 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
6045 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
6046 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
6047 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
6048 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
6049 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
6052 esac
6053 { echo "$as_me:$LINENO: checking for $ac_header" >&5
6054 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
6055 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
6056 echo $ECHO_N "(cached) $ECHO_C" >&6
6057 else
6058 eval "$as_ac_Header=\$ac_header_preproc"
6060 ac_res=`eval echo '${'$as_ac_Header'}'`
6061 { echo "$as_me:$LINENO: result: $ac_res" >&5
6062 echo "${ECHO_T}$ac_res" >&6; }
6065 if test `eval echo '${'$as_ac_Header'}'` = yes; then
6066 cat >>confdefs.h <<_ACEOF
6067 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
6068 _ACEOF
6072 done
6074 # Emulation library used on NetBSD.
6075 { echo "$as_me:$LINENO: checking for _oss_ioctl in -lossaudio" >&5
6076 echo $ECHO_N "checking for _oss_ioctl in -lossaudio... $ECHO_C" >&6; }
6077 if test "${ac_cv_lib_ossaudio__oss_ioctl+set}" = set; then
6078 echo $ECHO_N "(cached) $ECHO_C" >&6
6079 else
6080 ac_check_lib_save_LIBS=$LIBS
6081 LIBS="-lossaudio $LIBS"
6082 cat >conftest.$ac_ext <<_ACEOF
6083 /* confdefs.h. */
6084 _ACEOF
6085 cat confdefs.h >>conftest.$ac_ext
6086 cat >>conftest.$ac_ext <<_ACEOF
6087 /* end confdefs.h. */
6089 /* Override any GCC internal prototype to avoid an error.
6090 Use char because int might match the return type of a GCC
6091 builtin and then its argument prototype would still apply. */
6092 #ifdef __cplusplus
6093 extern "C"
6094 #endif
6095 char _oss_ioctl ();
6097 main ()
6099 return _oss_ioctl ();
6101 return 0;
6103 _ACEOF
6104 rm -f conftest.$ac_objext conftest$ac_exeext
6105 if { (ac_try="$ac_link"
6106 case "(($ac_try" in
6107 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6108 *) ac_try_echo=$ac_try;;
6109 esac
6110 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6111 (eval "$ac_link") 2>conftest.er1
6112 ac_status=$?
6113 grep -v '^ *+' conftest.er1 >conftest.err
6114 rm -f conftest.er1
6115 cat conftest.err >&5
6116 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6117 (exit $ac_status); } && {
6118 test -z "$ac_c_werror_flag" ||
6119 test ! -s conftest.err
6120 } && test -s conftest$ac_exeext &&
6121 $as_test_x conftest$ac_exeext; then
6122 ac_cv_lib_ossaudio__oss_ioctl=yes
6123 else
6124 echo "$as_me: failed program was:" >&5
6125 sed 's/^/| /' conftest.$ac_ext >&5
6127 ac_cv_lib_ossaudio__oss_ioctl=no
6130 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
6131 conftest$ac_exeext conftest.$ac_ext
6132 LIBS=$ac_check_lib_save_LIBS
6134 { echo "$as_me:$LINENO: result: $ac_cv_lib_ossaudio__oss_ioctl" >&5
6135 echo "${ECHO_T}$ac_cv_lib_ossaudio__oss_ioctl" >&6; }
6136 if test $ac_cv_lib_ossaudio__oss_ioctl = yes; then
6137 LIBSOUND=-lossaudio
6138 else
6139 LIBSOUND=
6144 ALSA_REQUIRED=1.0.0
6145 ALSA_MODULES="alsa >= $ALSA_REQUIRED"
6147 succeeded=no
6149 # Extract the first word of "pkg-config", so it can be a program name with args.
6150 set dummy pkg-config; ac_word=$2
6151 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6152 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6153 if test "${ac_cv_path_PKG_CONFIG+set}" = set; then
6154 echo $ECHO_N "(cached) $ECHO_C" >&6
6155 else
6156 case $PKG_CONFIG in
6157 [\\/]* | ?:[\\/]*)
6158 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
6161 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6162 for as_dir in $PATH
6164 IFS=$as_save_IFS
6165 test -z "$as_dir" && as_dir=.
6166 for ac_exec_ext in '' $ac_executable_extensions; do
6167 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6168 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
6169 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6170 break 2
6172 done
6173 done
6174 IFS=$as_save_IFS
6176 test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG="no"
6178 esac
6180 PKG_CONFIG=$ac_cv_path_PKG_CONFIG
6181 if test -n "$PKG_CONFIG"; then
6182 { echo "$as_me:$LINENO: result: $PKG_CONFIG" >&5
6183 echo "${ECHO_T}$PKG_CONFIG" >&6; }
6184 else
6185 { echo "$as_me:$LINENO: result: no" >&5
6186 echo "${ECHO_T}no" >&6; }
6191 if test "$PKG_CONFIG" = "no" ; then
6192 HAVE_ALSA=no
6193 else
6194 PKG_CONFIG_MIN_VERSION=0.9.0
6195 if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
6196 { echo "$as_me:$LINENO: checking for $ALSA_MODULES" >&5
6197 echo $ECHO_N "checking for $ALSA_MODULES... $ECHO_C" >&6; }
6199 if $PKG_CONFIG --exists "$ALSA_MODULES" 2>&5; then
6200 { echo "$as_me:$LINENO: result: yes" >&5
6201 echo "${ECHO_T}yes" >&6; }
6202 succeeded=yes
6204 { echo "$as_me:$LINENO: checking ALSA_CFLAGS" >&5
6205 echo $ECHO_N "checking ALSA_CFLAGS... $ECHO_C" >&6; }
6206 ALSA_CFLAGS=`$PKG_CONFIG --cflags "$ALSA_MODULES"|sed -e 's,///*,/,g'`
6207 { echo "$as_me:$LINENO: result: $ALSA_CFLAGS" >&5
6208 echo "${ECHO_T}$ALSA_CFLAGS" >&6; }
6210 { echo "$as_me:$LINENO: checking ALSA_LIBS" >&5
6211 echo $ECHO_N "checking ALSA_LIBS... $ECHO_C" >&6; }
6212 ALSA_LIBS=`$PKG_CONFIG --libs "$ALSA_MODULES"|sed -e 's,///*,/,g'`
6213 { echo "$as_me:$LINENO: result: $ALSA_LIBS" >&5
6214 echo "${ECHO_T}$ALSA_LIBS" >&6; }
6215 else
6216 { echo "$as_me:$LINENO: result: no" >&5
6217 echo "${ECHO_T}no" >&6; }
6218 ALSA_CFLAGS=""
6219 ALSA_LIBS=""
6220 ## If we have a custom action on failure, don't print errors, but
6221 ## do set a variable so people can do so.
6222 ALSA_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "$ALSA_MODULES"`
6228 else
6229 echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
6230 echo "*** See http://www.freedesktop.org/software/pkgconfig"
6234 if test $succeeded = yes; then
6235 HAVE_ALSA=yes
6236 else
6237 HAVE_ALSA=no
6240 if test $HAVE_ALSA = yes; then
6241 SAVE_CFLAGS="$CFLAGS"
6242 SAVE_LDFLAGS="$LDFLAGS"
6243 CFLAGS="$ALSA_CFLAGS $CFLAGS"
6244 LDFLAGS="$ALSA_LIBS $LDFLAGS"
6245 cat >conftest.$ac_ext <<_ACEOF
6246 /* confdefs.h. */
6247 _ACEOF
6248 cat confdefs.h >>conftest.$ac_ext
6249 cat >>conftest.$ac_ext <<_ACEOF
6250 /* end confdefs.h. */
6251 #include <asoundlib.h>
6253 main ()
6255 snd_lib_error_set_handler (0);
6257 return 0;
6259 _ACEOF
6260 rm -f conftest.$ac_objext
6261 if { (ac_try="$ac_compile"
6262 case "(($ac_try" in
6263 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6264 *) ac_try_echo=$ac_try;;
6265 esac
6266 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6267 (eval "$ac_compile") 2>conftest.er1
6268 ac_status=$?
6269 grep -v '^ *+' conftest.er1 >conftest.err
6270 rm -f conftest.er1
6271 cat conftest.err >&5
6272 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6273 (exit $ac_status); } && {
6274 test -z "$ac_c_werror_flag" ||
6275 test ! -s conftest.err
6276 } && test -s conftest.$ac_objext; then
6277 emacs_alsa_normal=yes
6278 else
6279 echo "$as_me: failed program was:" >&5
6280 sed 's/^/| /' conftest.$ac_ext >&5
6282 emacs_alsa_normal=no
6285 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6286 if test "$emacs_alsa_normal" != yes; then
6287 cat >conftest.$ac_ext <<_ACEOF
6288 /* confdefs.h. */
6289 _ACEOF
6290 cat confdefs.h >>conftest.$ac_ext
6291 cat >>conftest.$ac_ext <<_ACEOF
6292 /* end confdefs.h. */
6293 #include <alsa/asoundlib.h>
6295 main ()
6297 snd_lib_error_set_handler (0);
6299 return 0;
6301 _ACEOF
6302 rm -f conftest.$ac_objext
6303 if { (ac_try="$ac_compile"
6304 case "(($ac_try" in
6305 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6306 *) ac_try_echo=$ac_try;;
6307 esac
6308 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6309 (eval "$ac_compile") 2>conftest.er1
6310 ac_status=$?
6311 grep -v '^ *+' conftest.er1 >conftest.err
6312 rm -f conftest.er1
6313 cat conftest.err >&5
6314 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6315 (exit $ac_status); } && {
6316 test -z "$ac_c_werror_flag" ||
6317 test ! -s conftest.err
6318 } && test -s conftest.$ac_objext; then
6319 emacs_alsa_subdir=yes
6320 else
6321 echo "$as_me: failed program was:" >&5
6322 sed 's/^/| /' conftest.$ac_ext >&5
6324 emacs_alsa_subdir=no
6327 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6328 if test "$emacs_alsa_subdir" != yes; then
6329 { { echo "$as_me:$LINENO: error: pkg-config found alsa, but it does not compile. See config.log for error messages." >&5
6330 echo "$as_me: error: pkg-config found alsa, but it does not compile. See config.log for error messages." >&2;}
6331 { (exit 1); exit 1; }; }
6333 ALSA_CFLAGS="$ALSA_CFLAGS -DALSA_SUBDIR_INCLUDE"
6336 CFLAGS="$SAVE_CFLAGS"
6337 LDFLAGS="$SAVE_LDFLAGS"
6338 LIBSOUND="$LIBSOUND $ALSA_LIBS"
6339 CFLAGS_SOUND="$CFLAGS_SOUND $ALSA_CFLAGS"
6341 cat >>confdefs.h <<\_ACEOF
6342 #define HAVE_ALSA 1
6343 _ACEOF
6374 for ac_header in sys/select.h sys/timeb.h sys/time.h unistd.h utime.h \
6375 linux/version.h sys/systeminfo.h termios.h limits.h string.h stdlib.h \
6376 termcap.h stdio_ext.h fcntl.h strings.h coff.h pty.h sys/mman.h \
6377 sys/param.h sys/vlimit.h sys/resource.h locale.h sys/_mbstate_t.h \
6378 sys/utsname.h pwd.h
6380 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
6381 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
6382 { echo "$as_me:$LINENO: checking for $ac_header" >&5
6383 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
6384 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
6385 echo $ECHO_N "(cached) $ECHO_C" >&6
6387 ac_res=`eval echo '${'$as_ac_Header'}'`
6388 { echo "$as_me:$LINENO: result: $ac_res" >&5
6389 echo "${ECHO_T}$ac_res" >&6; }
6390 else
6391 # Is the header compilable?
6392 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
6393 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
6394 cat >conftest.$ac_ext <<_ACEOF
6395 /* confdefs.h. */
6396 _ACEOF
6397 cat confdefs.h >>conftest.$ac_ext
6398 cat >>conftest.$ac_ext <<_ACEOF
6399 /* end confdefs.h. */
6400 $ac_includes_default
6401 #include <$ac_header>
6402 _ACEOF
6403 rm -f conftest.$ac_objext
6404 if { (ac_try="$ac_compile"
6405 case "(($ac_try" in
6406 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6407 *) ac_try_echo=$ac_try;;
6408 esac
6409 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6410 (eval "$ac_compile") 2>conftest.er1
6411 ac_status=$?
6412 grep -v '^ *+' conftest.er1 >conftest.err
6413 rm -f conftest.er1
6414 cat conftest.err >&5
6415 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6416 (exit $ac_status); } && {
6417 test -z "$ac_c_werror_flag" ||
6418 test ! -s conftest.err
6419 } && test -s conftest.$ac_objext; then
6420 ac_header_compiler=yes
6421 else
6422 echo "$as_me: failed program was:" >&5
6423 sed 's/^/| /' conftest.$ac_ext >&5
6425 ac_header_compiler=no
6428 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6429 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
6430 echo "${ECHO_T}$ac_header_compiler" >&6; }
6432 # Is the header present?
6433 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
6434 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
6435 cat >conftest.$ac_ext <<_ACEOF
6436 /* confdefs.h. */
6437 _ACEOF
6438 cat confdefs.h >>conftest.$ac_ext
6439 cat >>conftest.$ac_ext <<_ACEOF
6440 /* end confdefs.h. */
6441 #include <$ac_header>
6442 _ACEOF
6443 if { (ac_try="$ac_cpp conftest.$ac_ext"
6444 case "(($ac_try" in
6445 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6446 *) ac_try_echo=$ac_try;;
6447 esac
6448 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6449 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
6450 ac_status=$?
6451 grep -v '^ *+' conftest.er1 >conftest.err
6452 rm -f conftest.er1
6453 cat conftest.err >&5
6454 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6455 (exit $ac_status); } >/dev/null && {
6456 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
6457 test ! -s conftest.err
6458 }; then
6459 ac_header_preproc=yes
6460 else
6461 echo "$as_me: failed program was:" >&5
6462 sed 's/^/| /' conftest.$ac_ext >&5
6464 ac_header_preproc=no
6467 rm -f conftest.err conftest.$ac_ext
6468 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
6469 echo "${ECHO_T}$ac_header_preproc" >&6; }
6471 # So? What about this header?
6472 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
6473 yes:no: )
6474 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
6475 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
6476 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
6477 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
6478 ac_header_preproc=yes
6480 no:yes:* )
6481 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
6482 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
6483 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
6484 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
6485 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
6486 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
6487 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
6488 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
6489 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
6490 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
6491 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
6492 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
6495 esac
6496 { echo "$as_me:$LINENO: checking for $ac_header" >&5
6497 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
6498 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
6499 echo $ECHO_N "(cached) $ECHO_C" >&6
6500 else
6501 eval "$as_ac_Header=\$ac_header_preproc"
6503 ac_res=`eval echo '${'$as_ac_Header'}'`
6504 { echo "$as_me:$LINENO: result: $ac_res" >&5
6505 echo "${ECHO_T}$ac_res" >&6; }
6508 if test `eval echo '${'$as_ac_Header'}'` = yes; then
6509 cat >>confdefs.h <<_ACEOF
6510 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
6511 _ACEOF
6515 done
6518 { echo "$as_me:$LINENO: checking if personality LINUX32 can be set" >&5
6519 echo $ECHO_N "checking if personality LINUX32 can be set... $ECHO_C" >&6; }
6520 cat >conftest.$ac_ext <<_ACEOF
6521 /* confdefs.h. */
6522 _ACEOF
6523 cat confdefs.h >>conftest.$ac_ext
6524 cat >>conftest.$ac_ext <<_ACEOF
6525 /* end confdefs.h. */
6526 #include <sys/personality.h>
6528 main ()
6530 personality (PER_LINUX32)
6532 return 0;
6534 _ACEOF
6535 rm -f conftest.$ac_objext
6536 if { (ac_try="$ac_compile"
6537 case "(($ac_try" in
6538 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6539 *) ac_try_echo=$ac_try;;
6540 esac
6541 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6542 (eval "$ac_compile") 2>conftest.er1
6543 ac_status=$?
6544 grep -v '^ *+' conftest.er1 >conftest.err
6545 rm -f conftest.er1
6546 cat conftest.err >&5
6547 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6548 (exit $ac_status); } && {
6549 test -z "$ac_c_werror_flag" ||
6550 test ! -s conftest.err
6551 } && test -s conftest.$ac_objext; then
6552 emacs_cv_personality_linux32=yes
6553 else
6554 echo "$as_me: failed program was:" >&5
6555 sed 's/^/| /' conftest.$ac_ext >&5
6557 emacs_cv_personality_linux32=no
6560 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6561 { echo "$as_me:$LINENO: result: $emacs_cv_personality_linux32" >&5
6562 echo "${ECHO_T}$emacs_cv_personality_linux32" >&6; }
6564 if test $emacs_cv_personality_linux32 = yes; then
6566 cat >>confdefs.h <<\_ACEOF
6567 #define HAVE_PERSONALITY_LINUX32 1
6568 _ACEOF
6573 for ac_header in term.h
6575 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
6576 { echo "$as_me:$LINENO: checking for $ac_header" >&5
6577 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
6578 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
6579 echo $ECHO_N "(cached) $ECHO_C" >&6
6580 else
6581 cat >conftest.$ac_ext <<_ACEOF
6582 /* confdefs.h. */
6583 _ACEOF
6584 cat confdefs.h >>conftest.$ac_ext
6585 cat >>conftest.$ac_ext <<_ACEOF
6586 /* end confdefs.h. */
6587 #include <$ac_header>
6588 _ACEOF
6589 if { (ac_try="$ac_cpp conftest.$ac_ext"
6590 case "(($ac_try" in
6591 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6592 *) ac_try_echo=$ac_try;;
6593 esac
6594 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6595 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
6596 ac_status=$?
6597 grep -v '^ *+' conftest.er1 >conftest.err
6598 rm -f conftest.er1
6599 cat conftest.err >&5
6600 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6601 (exit $ac_status); } >/dev/null && {
6602 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
6603 test ! -s conftest.err
6604 }; then
6605 eval "$as_ac_Header=yes"
6606 else
6607 echo "$as_me: failed program was:" >&5
6608 sed 's/^/| /' conftest.$ac_ext >&5
6610 eval "$as_ac_Header=no"
6613 rm -f conftest.err conftest.$ac_ext
6615 ac_res=`eval echo '${'$as_ac_Header'}'`
6616 { echo "$as_me:$LINENO: result: $ac_res" >&5
6617 echo "${ECHO_T}$ac_res" >&6; }
6618 if test `eval echo '${'$as_ac_Header'}'` = yes; then
6619 cat >>confdefs.h <<_ACEOF
6620 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
6621 _ACEOF
6625 done
6627 { echo "$as_me:$LINENO: checking for ANSI C header files" >&5
6628 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6; }
6629 if test "${ac_cv_header_stdc+set}" = set; then
6630 echo $ECHO_N "(cached) $ECHO_C" >&6
6631 else
6632 cat >conftest.$ac_ext <<_ACEOF
6633 /* confdefs.h. */
6634 _ACEOF
6635 cat confdefs.h >>conftest.$ac_ext
6636 cat >>conftest.$ac_ext <<_ACEOF
6637 /* end confdefs.h. */
6638 #include <stdlib.h>
6639 #include <stdarg.h>
6640 #include <string.h>
6641 #include <float.h>
6644 main ()
6648 return 0;
6650 _ACEOF
6651 rm -f conftest.$ac_objext
6652 if { (ac_try="$ac_compile"
6653 case "(($ac_try" in
6654 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6655 *) ac_try_echo=$ac_try;;
6656 esac
6657 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6658 (eval "$ac_compile") 2>conftest.er1
6659 ac_status=$?
6660 grep -v '^ *+' conftest.er1 >conftest.err
6661 rm -f conftest.er1
6662 cat conftest.err >&5
6663 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6664 (exit $ac_status); } && {
6665 test -z "$ac_c_werror_flag" ||
6666 test ! -s conftest.err
6667 } && test -s conftest.$ac_objext; then
6668 ac_cv_header_stdc=yes
6669 else
6670 echo "$as_me: failed program was:" >&5
6671 sed 's/^/| /' conftest.$ac_ext >&5
6673 ac_cv_header_stdc=no
6676 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6678 if test $ac_cv_header_stdc = yes; then
6679 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
6680 cat >conftest.$ac_ext <<_ACEOF
6681 /* confdefs.h. */
6682 _ACEOF
6683 cat confdefs.h >>conftest.$ac_ext
6684 cat >>conftest.$ac_ext <<_ACEOF
6685 /* end confdefs.h. */
6686 #include <string.h>
6688 _ACEOF
6689 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6690 $EGREP "memchr" >/dev/null 2>&1; then
6692 else
6693 ac_cv_header_stdc=no
6695 rm -f conftest*
6699 if test $ac_cv_header_stdc = yes; then
6700 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
6701 cat >conftest.$ac_ext <<_ACEOF
6702 /* confdefs.h. */
6703 _ACEOF
6704 cat confdefs.h >>conftest.$ac_ext
6705 cat >>conftest.$ac_ext <<_ACEOF
6706 /* end confdefs.h. */
6707 #include <stdlib.h>
6709 _ACEOF
6710 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6711 $EGREP "free" >/dev/null 2>&1; then
6713 else
6714 ac_cv_header_stdc=no
6716 rm -f conftest*
6720 if test $ac_cv_header_stdc = yes; then
6721 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
6722 if test "$cross_compiling" = yes; then
6724 else
6725 cat >conftest.$ac_ext <<_ACEOF
6726 /* confdefs.h. */
6727 _ACEOF
6728 cat confdefs.h >>conftest.$ac_ext
6729 cat >>conftest.$ac_ext <<_ACEOF
6730 /* end confdefs.h. */
6731 #include <ctype.h>
6732 #include <stdlib.h>
6733 #if ((' ' & 0x0FF) == 0x020)
6734 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
6735 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
6736 #else
6737 # define ISLOWER(c) \
6738 (('a' <= (c) && (c) <= 'i') \
6739 || ('j' <= (c) && (c) <= 'r') \
6740 || ('s' <= (c) && (c) <= 'z'))
6741 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
6742 #endif
6744 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
6746 main ()
6748 int i;
6749 for (i = 0; i < 256; i++)
6750 if (XOR (islower (i), ISLOWER (i))
6751 || toupper (i) != TOUPPER (i))
6752 return 2;
6753 return 0;
6755 _ACEOF
6756 rm -f conftest$ac_exeext
6757 if { (ac_try="$ac_link"
6758 case "(($ac_try" in
6759 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6760 *) ac_try_echo=$ac_try;;
6761 esac
6762 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6763 (eval "$ac_link") 2>&5
6764 ac_status=$?
6765 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6766 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
6767 { (case "(($ac_try" in
6768 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6769 *) ac_try_echo=$ac_try;;
6770 esac
6771 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6772 (eval "$ac_try") 2>&5
6773 ac_status=$?
6774 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6775 (exit $ac_status); }; }; then
6777 else
6778 echo "$as_me: program exited with status $ac_status" >&5
6779 echo "$as_me: failed program was:" >&5
6780 sed 's/^/| /' conftest.$ac_ext >&5
6782 ( exit $ac_status )
6783 ac_cv_header_stdc=no
6785 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
6791 { echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
6792 echo "${ECHO_T}$ac_cv_header_stdc" >&6; }
6793 if test $ac_cv_header_stdc = yes; then
6795 cat >>confdefs.h <<\_ACEOF
6796 #define STDC_HEADERS 1
6797 _ACEOF
6801 { echo "$as_me:$LINENO: checking whether time.h and sys/time.h may both be included" >&5
6802 echo $ECHO_N "checking whether time.h and sys/time.h may both be included... $ECHO_C" >&6; }
6803 if test "${ac_cv_header_time+set}" = set; then
6804 echo $ECHO_N "(cached) $ECHO_C" >&6
6805 else
6806 cat >conftest.$ac_ext <<_ACEOF
6807 /* confdefs.h. */
6808 _ACEOF
6809 cat confdefs.h >>conftest.$ac_ext
6810 cat >>conftest.$ac_ext <<_ACEOF
6811 /* end confdefs.h. */
6812 #include <sys/types.h>
6813 #include <sys/time.h>
6814 #include <time.h>
6817 main ()
6819 if ((struct tm *) 0)
6820 return 0;
6822 return 0;
6824 _ACEOF
6825 rm -f conftest.$ac_objext
6826 if { (ac_try="$ac_compile"
6827 case "(($ac_try" in
6828 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6829 *) ac_try_echo=$ac_try;;
6830 esac
6831 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6832 (eval "$ac_compile") 2>conftest.er1
6833 ac_status=$?
6834 grep -v '^ *+' conftest.er1 >conftest.err
6835 rm -f conftest.er1
6836 cat conftest.err >&5
6837 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6838 (exit $ac_status); } && {
6839 test -z "$ac_c_werror_flag" ||
6840 test ! -s conftest.err
6841 } && test -s conftest.$ac_objext; then
6842 ac_cv_header_time=yes
6843 else
6844 echo "$as_me: failed program was:" >&5
6845 sed 's/^/| /' conftest.$ac_ext >&5
6847 ac_cv_header_time=no
6850 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6852 { echo "$as_me:$LINENO: result: $ac_cv_header_time" >&5
6853 echo "${ECHO_T}$ac_cv_header_time" >&6; }
6854 if test $ac_cv_header_time = yes; then
6856 cat >>confdefs.h <<\_ACEOF
6857 #define TIME_WITH_SYS_TIME 1
6858 _ACEOF
6862 { echo "$as_me:$LINENO: checking whether sys_siglist is declared" >&5
6863 echo $ECHO_N "checking whether sys_siglist is declared... $ECHO_C" >&6; }
6864 if test "${ac_cv_have_decl_sys_siglist+set}" = set; then
6865 echo $ECHO_N "(cached) $ECHO_C" >&6
6866 else
6867 cat >conftest.$ac_ext <<_ACEOF
6868 /* confdefs.h. */
6869 _ACEOF
6870 cat confdefs.h >>conftest.$ac_ext
6871 cat >>conftest.$ac_ext <<_ACEOF
6872 /* end confdefs.h. */
6873 $ac_includes_default
6875 main ()
6877 #ifndef sys_siglist
6878 (void) sys_siglist;
6879 #endif
6882 return 0;
6884 _ACEOF
6885 rm -f conftest.$ac_objext
6886 if { (ac_try="$ac_compile"
6887 case "(($ac_try" in
6888 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6889 *) ac_try_echo=$ac_try;;
6890 esac
6891 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6892 (eval "$ac_compile") 2>conftest.er1
6893 ac_status=$?
6894 grep -v '^ *+' conftest.er1 >conftest.err
6895 rm -f conftest.er1
6896 cat conftest.err >&5
6897 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6898 (exit $ac_status); } && {
6899 test -z "$ac_c_werror_flag" ||
6900 test ! -s conftest.err
6901 } && test -s conftest.$ac_objext; then
6902 ac_cv_have_decl_sys_siglist=yes
6903 else
6904 echo "$as_me: failed program was:" >&5
6905 sed 's/^/| /' conftest.$ac_ext >&5
6907 ac_cv_have_decl_sys_siglist=no
6910 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6912 { echo "$as_me:$LINENO: result: $ac_cv_have_decl_sys_siglist" >&5
6913 echo "${ECHO_T}$ac_cv_have_decl_sys_siglist" >&6; }
6914 if test $ac_cv_have_decl_sys_siglist = yes; then
6916 cat >>confdefs.h <<_ACEOF
6917 #define HAVE_DECL_SYS_SIGLIST 1
6918 _ACEOF
6921 else
6922 cat >>confdefs.h <<_ACEOF
6923 #define HAVE_DECL_SYS_SIGLIST 0
6924 _ACEOF
6930 if test $ac_cv_have_decl_sys_siglist != yes; then
6931 # For Tru64, at least:
6932 { echo "$as_me:$LINENO: checking whether __sys_siglist is declared" >&5
6933 echo $ECHO_N "checking whether __sys_siglist is declared... $ECHO_C" >&6; }
6934 if test "${ac_cv_have_decl___sys_siglist+set}" = set; then
6935 echo $ECHO_N "(cached) $ECHO_C" >&6
6936 else
6937 cat >conftest.$ac_ext <<_ACEOF
6938 /* confdefs.h. */
6939 _ACEOF
6940 cat confdefs.h >>conftest.$ac_ext
6941 cat >>conftest.$ac_ext <<_ACEOF
6942 /* end confdefs.h. */
6943 $ac_includes_default
6945 main ()
6947 #ifndef __sys_siglist
6948 (void) __sys_siglist;
6949 #endif
6952 return 0;
6954 _ACEOF
6955 rm -f conftest.$ac_objext
6956 if { (ac_try="$ac_compile"
6957 case "(($ac_try" in
6958 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6959 *) ac_try_echo=$ac_try;;
6960 esac
6961 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6962 (eval "$ac_compile") 2>conftest.er1
6963 ac_status=$?
6964 grep -v '^ *+' conftest.er1 >conftest.err
6965 rm -f conftest.er1
6966 cat conftest.err >&5
6967 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6968 (exit $ac_status); } && {
6969 test -z "$ac_c_werror_flag" ||
6970 test ! -s conftest.err
6971 } && test -s conftest.$ac_objext; then
6972 ac_cv_have_decl___sys_siglist=yes
6973 else
6974 echo "$as_me: failed program was:" >&5
6975 sed 's/^/| /' conftest.$ac_ext >&5
6977 ac_cv_have_decl___sys_siglist=no
6980 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6982 { echo "$as_me:$LINENO: result: $ac_cv_have_decl___sys_siglist" >&5
6983 echo "${ECHO_T}$ac_cv_have_decl___sys_siglist" >&6; }
6984 if test $ac_cv_have_decl___sys_siglist = yes; then
6986 cat >>confdefs.h <<_ACEOF
6987 #define HAVE_DECL___SYS_SIGLIST 1
6988 _ACEOF
6991 else
6992 cat >>confdefs.h <<_ACEOF
6993 #define HAVE_DECL___SYS_SIGLIST 0
6994 _ACEOF
7000 if test $ac_cv_have_decl___sys_siglist = yes; then
7002 cat >>confdefs.h <<\_ACEOF
7003 #define sys_siglist __sys_siglist
7004 _ACEOF
7008 { echo "$as_me:$LINENO: checking for sys/wait.h that is POSIX.1 compatible" >&5
7009 echo $ECHO_N "checking for sys/wait.h that is POSIX.1 compatible... $ECHO_C" >&6; }
7010 if test "${ac_cv_header_sys_wait_h+set}" = set; then
7011 echo $ECHO_N "(cached) $ECHO_C" >&6
7012 else
7013 cat >conftest.$ac_ext <<_ACEOF
7014 /* confdefs.h. */
7015 _ACEOF
7016 cat confdefs.h >>conftest.$ac_ext
7017 cat >>conftest.$ac_ext <<_ACEOF
7018 /* end confdefs.h. */
7019 #include <sys/types.h>
7020 #include <sys/wait.h>
7021 #ifndef WEXITSTATUS
7022 # define WEXITSTATUS(stat_val) ((unsigned int) (stat_val) >> 8)
7023 #endif
7024 #ifndef WIFEXITED
7025 # define WIFEXITED(stat_val) (((stat_val) & 255) == 0)
7026 #endif
7029 main ()
7031 int s;
7032 wait (&s);
7033 s = WIFEXITED (s) ? WEXITSTATUS (s) : 1;
7035 return 0;
7037 _ACEOF
7038 rm -f conftest.$ac_objext
7039 if { (ac_try="$ac_compile"
7040 case "(($ac_try" in
7041 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7042 *) ac_try_echo=$ac_try;;
7043 esac
7044 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7045 (eval "$ac_compile") 2>conftest.er1
7046 ac_status=$?
7047 grep -v '^ *+' conftest.er1 >conftest.err
7048 rm -f conftest.er1
7049 cat conftest.err >&5
7050 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7051 (exit $ac_status); } && {
7052 test -z "$ac_c_werror_flag" ||
7053 test ! -s conftest.err
7054 } && test -s conftest.$ac_objext; then
7055 ac_cv_header_sys_wait_h=yes
7056 else
7057 echo "$as_me: failed program was:" >&5
7058 sed 's/^/| /' conftest.$ac_ext >&5
7060 ac_cv_header_sys_wait_h=no
7063 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7065 { echo "$as_me:$LINENO: result: $ac_cv_header_sys_wait_h" >&5
7066 echo "${ECHO_T}$ac_cv_header_sys_wait_h" >&6; }
7067 if test $ac_cv_header_sys_wait_h = yes; then
7069 cat >>confdefs.h <<\_ACEOF
7070 #define HAVE_SYS_WAIT_H 1
7071 _ACEOF
7076 { echo "$as_me:$LINENO: checking for struct utimbuf" >&5
7077 echo $ECHO_N "checking for struct utimbuf... $ECHO_C" >&6; }
7078 if test "${emacs_cv_struct_utimbuf+set}" = set; then
7079 echo $ECHO_N "(cached) $ECHO_C" >&6
7080 else
7081 cat >conftest.$ac_ext <<_ACEOF
7082 /* confdefs.h. */
7083 _ACEOF
7084 cat confdefs.h >>conftest.$ac_ext
7085 cat >>conftest.$ac_ext <<_ACEOF
7086 /* end confdefs.h. */
7087 #ifdef TIME_WITH_SYS_TIME
7088 #include <sys/time.h>
7089 #include <time.h>
7090 #else
7091 #ifdef HAVE_SYS_TIME_H
7092 #include <sys/time.h>
7093 #else
7094 #include <time.h>
7095 #endif
7096 #endif
7097 #ifdef HAVE_UTIME_H
7098 #include <utime.h>
7099 #endif
7101 main ()
7103 static struct utimbuf x; x.actime = x.modtime;
7105 return 0;
7107 _ACEOF
7108 rm -f conftest.$ac_objext
7109 if { (ac_try="$ac_compile"
7110 case "(($ac_try" in
7111 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7112 *) ac_try_echo=$ac_try;;
7113 esac
7114 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7115 (eval "$ac_compile") 2>conftest.er1
7116 ac_status=$?
7117 grep -v '^ *+' conftest.er1 >conftest.err
7118 rm -f conftest.er1
7119 cat conftest.err >&5
7120 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7121 (exit $ac_status); } && {
7122 test -z "$ac_c_werror_flag" ||
7123 test ! -s conftest.err
7124 } && test -s conftest.$ac_objext; then
7125 emacs_cv_struct_utimbuf=yes
7126 else
7127 echo "$as_me: failed program was:" >&5
7128 sed 's/^/| /' conftest.$ac_ext >&5
7130 emacs_cv_struct_utimbuf=no
7133 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7135 { echo "$as_me:$LINENO: result: $emacs_cv_struct_utimbuf" >&5
7136 echo "${ECHO_T}$emacs_cv_struct_utimbuf" >&6; }
7137 if test $emacs_cv_struct_utimbuf = yes; then
7139 cat >>confdefs.h <<\_ACEOF
7140 #define HAVE_STRUCT_UTIMBUF 1
7141 _ACEOF
7145 { echo "$as_me:$LINENO: checking return type of signal handlers" >&5
7146 echo $ECHO_N "checking return type of signal handlers... $ECHO_C" >&6; }
7147 if test "${ac_cv_type_signal+set}" = set; then
7148 echo $ECHO_N "(cached) $ECHO_C" >&6
7149 else
7150 cat >conftest.$ac_ext <<_ACEOF
7151 /* confdefs.h. */
7152 _ACEOF
7153 cat confdefs.h >>conftest.$ac_ext
7154 cat >>conftest.$ac_ext <<_ACEOF
7155 /* end confdefs.h. */
7156 #include <sys/types.h>
7157 #include <signal.h>
7160 main ()
7162 return *(signal (0, 0)) (0) == 1;
7164 return 0;
7166 _ACEOF
7167 rm -f conftest.$ac_objext
7168 if { (ac_try="$ac_compile"
7169 case "(($ac_try" in
7170 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7171 *) ac_try_echo=$ac_try;;
7172 esac
7173 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7174 (eval "$ac_compile") 2>conftest.er1
7175 ac_status=$?
7176 grep -v '^ *+' conftest.er1 >conftest.err
7177 rm -f conftest.er1
7178 cat conftest.err >&5
7179 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7180 (exit $ac_status); } && {
7181 test -z "$ac_c_werror_flag" ||
7182 test ! -s conftest.err
7183 } && test -s conftest.$ac_objext; then
7184 ac_cv_type_signal=int
7185 else
7186 echo "$as_me: failed program was:" >&5
7187 sed 's/^/| /' conftest.$ac_ext >&5
7189 ac_cv_type_signal=void
7192 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7194 { echo "$as_me:$LINENO: result: $ac_cv_type_signal" >&5
7195 echo "${ECHO_T}$ac_cv_type_signal" >&6; }
7197 cat >>confdefs.h <<_ACEOF
7198 #define RETSIGTYPE $ac_cv_type_signal
7199 _ACEOF
7203 { echo "$as_me:$LINENO: checking for speed_t" >&5
7204 echo $ECHO_N "checking for speed_t... $ECHO_C" >&6; }
7205 if test "${emacs_cv_speed_t+set}" = set; then
7206 echo $ECHO_N "(cached) $ECHO_C" >&6
7207 else
7208 cat >conftest.$ac_ext <<_ACEOF
7209 /* confdefs.h. */
7210 _ACEOF
7211 cat confdefs.h >>conftest.$ac_ext
7212 cat >>conftest.$ac_ext <<_ACEOF
7213 /* end confdefs.h. */
7214 #include <termios.h>
7216 main ()
7218 speed_t x = 1;
7220 return 0;
7222 _ACEOF
7223 rm -f conftest.$ac_objext
7224 if { (ac_try="$ac_compile"
7225 case "(($ac_try" in
7226 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7227 *) ac_try_echo=$ac_try;;
7228 esac
7229 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7230 (eval "$ac_compile") 2>conftest.er1
7231 ac_status=$?
7232 grep -v '^ *+' conftest.er1 >conftest.err
7233 rm -f conftest.er1
7234 cat conftest.err >&5
7235 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7236 (exit $ac_status); } && {
7237 test -z "$ac_c_werror_flag" ||
7238 test ! -s conftest.err
7239 } && test -s conftest.$ac_objext; then
7240 emacs_cv_speed_t=yes
7241 else
7242 echo "$as_me: failed program was:" >&5
7243 sed 's/^/| /' conftest.$ac_ext >&5
7245 emacs_cv_speed_t=no
7248 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7250 { echo "$as_me:$LINENO: result: $emacs_cv_speed_t" >&5
7251 echo "${ECHO_T}$emacs_cv_speed_t" >&6; }
7252 if test $emacs_cv_speed_t = yes; then
7254 cat >>confdefs.h <<\_ACEOF
7255 #define HAVE_SPEED_T 1
7256 _ACEOF
7260 { echo "$as_me:$LINENO: checking for struct timeval" >&5
7261 echo $ECHO_N "checking for struct timeval... $ECHO_C" >&6; }
7262 if test "${emacs_cv_struct_timeval+set}" = set; then
7263 echo $ECHO_N "(cached) $ECHO_C" >&6
7264 else
7265 cat >conftest.$ac_ext <<_ACEOF
7266 /* confdefs.h. */
7267 _ACEOF
7268 cat confdefs.h >>conftest.$ac_ext
7269 cat >>conftest.$ac_ext <<_ACEOF
7270 /* end confdefs.h. */
7271 #ifdef TIME_WITH_SYS_TIME
7272 #include <sys/time.h>
7273 #include <time.h>
7274 #else
7275 #ifdef HAVE_SYS_TIME_H
7276 #include <sys/time.h>
7277 #else
7278 #include <time.h>
7279 #endif
7280 #endif
7282 main ()
7284 static struct timeval x; x.tv_sec = x.tv_usec;
7286 return 0;
7288 _ACEOF
7289 rm -f conftest.$ac_objext
7290 if { (ac_try="$ac_compile"
7291 case "(($ac_try" in
7292 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7293 *) ac_try_echo=$ac_try;;
7294 esac
7295 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7296 (eval "$ac_compile") 2>conftest.er1
7297 ac_status=$?
7298 grep -v '^ *+' conftest.er1 >conftest.err
7299 rm -f conftest.er1
7300 cat conftest.err >&5
7301 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7302 (exit $ac_status); } && {
7303 test -z "$ac_c_werror_flag" ||
7304 test ! -s conftest.err
7305 } && test -s conftest.$ac_objext; then
7306 emacs_cv_struct_timeval=yes
7307 else
7308 echo "$as_me: failed program was:" >&5
7309 sed 's/^/| /' conftest.$ac_ext >&5
7311 emacs_cv_struct_timeval=no
7314 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7316 { echo "$as_me:$LINENO: result: $emacs_cv_struct_timeval" >&5
7317 echo "${ECHO_T}$emacs_cv_struct_timeval" >&6; }
7318 HAVE_TIMEVAL=$emacs_cv_struct_timeval
7319 if test $emacs_cv_struct_timeval = yes; then
7321 cat >>confdefs.h <<\_ACEOF
7322 #define HAVE_TIMEVAL 1
7323 _ACEOF
7327 { echo "$as_me:$LINENO: checking for struct exception" >&5
7328 echo $ECHO_N "checking for struct exception... $ECHO_C" >&6; }
7329 if test "${emacs_cv_struct_exception+set}" = set; then
7330 echo $ECHO_N "(cached) $ECHO_C" >&6
7331 else
7332 cat >conftest.$ac_ext <<_ACEOF
7333 /* confdefs.h. */
7334 _ACEOF
7335 cat confdefs.h >>conftest.$ac_ext
7336 cat >>conftest.$ac_ext <<_ACEOF
7337 /* end confdefs.h. */
7338 #include <math.h>
7340 main ()
7342 static struct exception x; x.arg1 = x.arg2 = x.retval; x.name = ""; x.type = 1;
7344 return 0;
7346 _ACEOF
7347 rm -f conftest.$ac_objext
7348 if { (ac_try="$ac_compile"
7349 case "(($ac_try" in
7350 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7351 *) ac_try_echo=$ac_try;;
7352 esac
7353 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7354 (eval "$ac_compile") 2>conftest.er1
7355 ac_status=$?
7356 grep -v '^ *+' conftest.er1 >conftest.err
7357 rm -f conftest.er1
7358 cat conftest.err >&5
7359 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7360 (exit $ac_status); } && {
7361 test -z "$ac_c_werror_flag" ||
7362 test ! -s conftest.err
7363 } && test -s conftest.$ac_objext; then
7364 emacs_cv_struct_exception=yes
7365 else
7366 echo "$as_me: failed program was:" >&5
7367 sed 's/^/| /' conftest.$ac_ext >&5
7369 emacs_cv_struct_exception=no
7372 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7374 { echo "$as_me:$LINENO: result: $emacs_cv_struct_exception" >&5
7375 echo "${ECHO_T}$emacs_cv_struct_exception" >&6; }
7376 HAVE_EXCEPTION=$emacs_cv_struct_exception
7377 if test $emacs_cv_struct_exception != yes; then
7379 cat >>confdefs.h <<\_ACEOF
7380 #define NO_MATHERR 1
7381 _ACEOF
7386 for ac_header in sys/socket.h
7388 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
7389 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
7390 { echo "$as_me:$LINENO: checking for $ac_header" >&5
7391 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
7392 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
7393 echo $ECHO_N "(cached) $ECHO_C" >&6
7395 ac_res=`eval echo '${'$as_ac_Header'}'`
7396 { echo "$as_me:$LINENO: result: $ac_res" >&5
7397 echo "${ECHO_T}$ac_res" >&6; }
7398 else
7399 # Is the header compilable?
7400 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
7401 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
7402 cat >conftest.$ac_ext <<_ACEOF
7403 /* confdefs.h. */
7404 _ACEOF
7405 cat confdefs.h >>conftest.$ac_ext
7406 cat >>conftest.$ac_ext <<_ACEOF
7407 /* end confdefs.h. */
7408 $ac_includes_default
7409 #include <$ac_header>
7410 _ACEOF
7411 rm -f conftest.$ac_objext
7412 if { (ac_try="$ac_compile"
7413 case "(($ac_try" in
7414 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7415 *) ac_try_echo=$ac_try;;
7416 esac
7417 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7418 (eval "$ac_compile") 2>conftest.er1
7419 ac_status=$?
7420 grep -v '^ *+' conftest.er1 >conftest.err
7421 rm -f conftest.er1
7422 cat conftest.err >&5
7423 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7424 (exit $ac_status); } && {
7425 test -z "$ac_c_werror_flag" ||
7426 test ! -s conftest.err
7427 } && test -s conftest.$ac_objext; then
7428 ac_header_compiler=yes
7429 else
7430 echo "$as_me: failed program was:" >&5
7431 sed 's/^/| /' conftest.$ac_ext >&5
7433 ac_header_compiler=no
7436 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7437 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
7438 echo "${ECHO_T}$ac_header_compiler" >&6; }
7440 # Is the header present?
7441 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
7442 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
7443 cat >conftest.$ac_ext <<_ACEOF
7444 /* confdefs.h. */
7445 _ACEOF
7446 cat confdefs.h >>conftest.$ac_ext
7447 cat >>conftest.$ac_ext <<_ACEOF
7448 /* end confdefs.h. */
7449 #include <$ac_header>
7450 _ACEOF
7451 if { (ac_try="$ac_cpp conftest.$ac_ext"
7452 case "(($ac_try" in
7453 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7454 *) ac_try_echo=$ac_try;;
7455 esac
7456 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7457 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
7458 ac_status=$?
7459 grep -v '^ *+' conftest.er1 >conftest.err
7460 rm -f conftest.er1
7461 cat conftest.err >&5
7462 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7463 (exit $ac_status); } >/dev/null && {
7464 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
7465 test ! -s conftest.err
7466 }; then
7467 ac_header_preproc=yes
7468 else
7469 echo "$as_me: failed program was:" >&5
7470 sed 's/^/| /' conftest.$ac_ext >&5
7472 ac_header_preproc=no
7475 rm -f conftest.err conftest.$ac_ext
7476 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
7477 echo "${ECHO_T}$ac_header_preproc" >&6; }
7479 # So? What about this header?
7480 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
7481 yes:no: )
7482 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
7483 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
7484 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
7485 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
7486 ac_header_preproc=yes
7488 no:yes:* )
7489 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
7490 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
7491 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
7492 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
7493 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
7494 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
7495 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
7496 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
7497 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
7498 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
7499 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
7500 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
7503 esac
7504 { echo "$as_me:$LINENO: checking for $ac_header" >&5
7505 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
7506 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
7507 echo $ECHO_N "(cached) $ECHO_C" >&6
7508 else
7509 eval "$as_ac_Header=\$ac_header_preproc"
7511 ac_res=`eval echo '${'$as_ac_Header'}'`
7512 { echo "$as_me:$LINENO: result: $ac_res" >&5
7513 echo "${ECHO_T}$ac_res" >&6; }
7516 if test `eval echo '${'$as_ac_Header'}'` = yes; then
7517 cat >>confdefs.h <<_ACEOF
7518 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
7519 _ACEOF
7523 done
7526 for ac_header in net/if.h
7528 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
7529 { echo "$as_me:$LINENO: checking for $ac_header" >&5
7530 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
7531 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
7532 echo $ECHO_N "(cached) $ECHO_C" >&6
7533 else
7534 cat >conftest.$ac_ext <<_ACEOF
7535 /* confdefs.h. */
7536 _ACEOF
7537 cat confdefs.h >>conftest.$ac_ext
7538 cat >>conftest.$ac_ext <<_ACEOF
7539 /* end confdefs.h. */
7540 $ac_includes_default
7541 #if HAVE_SYS_SOCKET_H
7542 #include <sys/socket.h>
7543 #endif
7545 #include <$ac_header>
7546 _ACEOF
7547 rm -f conftest.$ac_objext
7548 if { (ac_try="$ac_compile"
7549 case "(($ac_try" in
7550 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7551 *) ac_try_echo=$ac_try;;
7552 esac
7553 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7554 (eval "$ac_compile") 2>conftest.er1
7555 ac_status=$?
7556 grep -v '^ *+' conftest.er1 >conftest.err
7557 rm -f conftest.er1
7558 cat conftest.err >&5
7559 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7560 (exit $ac_status); } && {
7561 test -z "$ac_c_werror_flag" ||
7562 test ! -s conftest.err
7563 } && test -s conftest.$ac_objext; then
7564 eval "$as_ac_Header=yes"
7565 else
7566 echo "$as_me: failed program was:" >&5
7567 sed 's/^/| /' conftest.$ac_ext >&5
7569 eval "$as_ac_Header=no"
7572 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7574 ac_res=`eval echo '${'$as_ac_Header'}'`
7575 { echo "$as_me:$LINENO: result: $ac_res" >&5
7576 echo "${ECHO_T}$ac_res" >&6; }
7577 if test `eval echo '${'$as_ac_Header'}'` = yes; then
7578 cat >>confdefs.h <<_ACEOF
7579 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
7580 _ACEOF
7584 done
7587 { echo "$as_me:$LINENO: checking whether struct tm is in sys/time.h or time.h" >&5
7588 echo $ECHO_N "checking whether struct tm is in sys/time.h or time.h... $ECHO_C" >&6; }
7589 if test "${ac_cv_struct_tm+set}" = set; then
7590 echo $ECHO_N "(cached) $ECHO_C" >&6
7591 else
7592 cat >conftest.$ac_ext <<_ACEOF
7593 /* confdefs.h. */
7594 _ACEOF
7595 cat confdefs.h >>conftest.$ac_ext
7596 cat >>conftest.$ac_ext <<_ACEOF
7597 /* end confdefs.h. */
7598 #include <sys/types.h>
7599 #include <time.h>
7602 main ()
7604 struct tm tm;
7605 int *p = &tm.tm_sec;
7606 return !p;
7608 return 0;
7610 _ACEOF
7611 rm -f conftest.$ac_objext
7612 if { (ac_try="$ac_compile"
7613 case "(($ac_try" in
7614 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7615 *) ac_try_echo=$ac_try;;
7616 esac
7617 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7618 (eval "$ac_compile") 2>conftest.er1
7619 ac_status=$?
7620 grep -v '^ *+' conftest.er1 >conftest.err
7621 rm -f conftest.er1
7622 cat conftest.err >&5
7623 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7624 (exit $ac_status); } && {
7625 test -z "$ac_c_werror_flag" ||
7626 test ! -s conftest.err
7627 } && test -s conftest.$ac_objext; then
7628 ac_cv_struct_tm=time.h
7629 else
7630 echo "$as_me: failed program was:" >&5
7631 sed 's/^/| /' conftest.$ac_ext >&5
7633 ac_cv_struct_tm=sys/time.h
7636 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7638 { echo "$as_me:$LINENO: result: $ac_cv_struct_tm" >&5
7639 echo "${ECHO_T}$ac_cv_struct_tm" >&6; }
7640 if test $ac_cv_struct_tm = sys/time.h; then
7642 cat >>confdefs.h <<\_ACEOF
7643 #define TM_IN_SYS_TIME 1
7644 _ACEOF
7648 { echo "$as_me:$LINENO: checking for struct tm.tm_zone" >&5
7649 echo $ECHO_N "checking for struct tm.tm_zone... $ECHO_C" >&6; }
7650 if test "${ac_cv_member_struct_tm_tm_zone+set}" = set; then
7651 echo $ECHO_N "(cached) $ECHO_C" >&6
7652 else
7653 cat >conftest.$ac_ext <<_ACEOF
7654 /* confdefs.h. */
7655 _ACEOF
7656 cat confdefs.h >>conftest.$ac_ext
7657 cat >>conftest.$ac_ext <<_ACEOF
7658 /* end confdefs.h. */
7659 #include <sys/types.h>
7660 #include <$ac_cv_struct_tm>
7664 main ()
7666 static struct tm ac_aggr;
7667 if (ac_aggr.tm_zone)
7668 return 0;
7670 return 0;
7672 _ACEOF
7673 rm -f conftest.$ac_objext
7674 if { (ac_try="$ac_compile"
7675 case "(($ac_try" in
7676 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7677 *) ac_try_echo=$ac_try;;
7678 esac
7679 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7680 (eval "$ac_compile") 2>conftest.er1
7681 ac_status=$?
7682 grep -v '^ *+' conftest.er1 >conftest.err
7683 rm -f conftest.er1
7684 cat conftest.err >&5
7685 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7686 (exit $ac_status); } && {
7687 test -z "$ac_c_werror_flag" ||
7688 test ! -s conftest.err
7689 } && test -s conftest.$ac_objext; then
7690 ac_cv_member_struct_tm_tm_zone=yes
7691 else
7692 echo "$as_me: failed program was:" >&5
7693 sed 's/^/| /' conftest.$ac_ext >&5
7695 cat >conftest.$ac_ext <<_ACEOF
7696 /* confdefs.h. */
7697 _ACEOF
7698 cat confdefs.h >>conftest.$ac_ext
7699 cat >>conftest.$ac_ext <<_ACEOF
7700 /* end confdefs.h. */
7701 #include <sys/types.h>
7702 #include <$ac_cv_struct_tm>
7706 main ()
7708 static struct tm ac_aggr;
7709 if (sizeof ac_aggr.tm_zone)
7710 return 0;
7712 return 0;
7714 _ACEOF
7715 rm -f conftest.$ac_objext
7716 if { (ac_try="$ac_compile"
7717 case "(($ac_try" in
7718 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7719 *) ac_try_echo=$ac_try;;
7720 esac
7721 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7722 (eval "$ac_compile") 2>conftest.er1
7723 ac_status=$?
7724 grep -v '^ *+' conftest.er1 >conftest.err
7725 rm -f conftest.er1
7726 cat conftest.err >&5
7727 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7728 (exit $ac_status); } && {
7729 test -z "$ac_c_werror_flag" ||
7730 test ! -s conftest.err
7731 } && test -s conftest.$ac_objext; then
7732 ac_cv_member_struct_tm_tm_zone=yes
7733 else
7734 echo "$as_me: failed program was:" >&5
7735 sed 's/^/| /' conftest.$ac_ext >&5
7737 ac_cv_member_struct_tm_tm_zone=no
7740 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7743 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7745 { echo "$as_me:$LINENO: result: $ac_cv_member_struct_tm_tm_zone" >&5
7746 echo "${ECHO_T}$ac_cv_member_struct_tm_tm_zone" >&6; }
7747 if test $ac_cv_member_struct_tm_tm_zone = yes; then
7749 cat >>confdefs.h <<_ACEOF
7750 #define HAVE_STRUCT_TM_TM_ZONE 1
7751 _ACEOF
7756 if test "$ac_cv_member_struct_tm_tm_zone" = yes; then
7758 cat >>confdefs.h <<\_ACEOF
7759 #define HAVE_TM_ZONE 1
7760 _ACEOF
7762 else
7763 { echo "$as_me:$LINENO: checking whether tzname is declared" >&5
7764 echo $ECHO_N "checking whether tzname is declared... $ECHO_C" >&6; }
7765 if test "${ac_cv_have_decl_tzname+set}" = set; then
7766 echo $ECHO_N "(cached) $ECHO_C" >&6
7767 else
7768 cat >conftest.$ac_ext <<_ACEOF
7769 /* confdefs.h. */
7770 _ACEOF
7771 cat confdefs.h >>conftest.$ac_ext
7772 cat >>conftest.$ac_ext <<_ACEOF
7773 /* end confdefs.h. */
7774 #include <time.h>
7777 main ()
7779 #ifndef tzname
7780 (void) tzname;
7781 #endif
7784 return 0;
7786 _ACEOF
7787 rm -f conftest.$ac_objext
7788 if { (ac_try="$ac_compile"
7789 case "(($ac_try" in
7790 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7791 *) ac_try_echo=$ac_try;;
7792 esac
7793 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7794 (eval "$ac_compile") 2>conftest.er1
7795 ac_status=$?
7796 grep -v '^ *+' conftest.er1 >conftest.err
7797 rm -f conftest.er1
7798 cat conftest.err >&5
7799 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7800 (exit $ac_status); } && {
7801 test -z "$ac_c_werror_flag" ||
7802 test ! -s conftest.err
7803 } && test -s conftest.$ac_objext; then
7804 ac_cv_have_decl_tzname=yes
7805 else
7806 echo "$as_me: failed program was:" >&5
7807 sed 's/^/| /' conftest.$ac_ext >&5
7809 ac_cv_have_decl_tzname=no
7812 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7814 { echo "$as_me:$LINENO: result: $ac_cv_have_decl_tzname" >&5
7815 echo "${ECHO_T}$ac_cv_have_decl_tzname" >&6; }
7816 if test $ac_cv_have_decl_tzname = yes; then
7818 cat >>confdefs.h <<_ACEOF
7819 #define HAVE_DECL_TZNAME 1
7820 _ACEOF
7823 else
7824 cat >>confdefs.h <<_ACEOF
7825 #define HAVE_DECL_TZNAME 0
7826 _ACEOF
7832 { echo "$as_me:$LINENO: checking for tzname" >&5
7833 echo $ECHO_N "checking for tzname... $ECHO_C" >&6; }
7834 if test "${ac_cv_var_tzname+set}" = set; then
7835 echo $ECHO_N "(cached) $ECHO_C" >&6
7836 else
7837 cat >conftest.$ac_ext <<_ACEOF
7838 /* confdefs.h. */
7839 _ACEOF
7840 cat confdefs.h >>conftest.$ac_ext
7841 cat >>conftest.$ac_ext <<_ACEOF
7842 /* end confdefs.h. */
7843 #include <time.h>
7844 #if !HAVE_DECL_TZNAME
7845 extern char *tzname[];
7846 #endif
7849 main ()
7851 return tzname[0][0];
7853 return 0;
7855 _ACEOF
7856 rm -f conftest.$ac_objext conftest$ac_exeext
7857 if { (ac_try="$ac_link"
7858 case "(($ac_try" in
7859 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7860 *) ac_try_echo=$ac_try;;
7861 esac
7862 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7863 (eval "$ac_link") 2>conftest.er1
7864 ac_status=$?
7865 grep -v '^ *+' conftest.er1 >conftest.err
7866 rm -f conftest.er1
7867 cat conftest.err >&5
7868 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7869 (exit $ac_status); } && {
7870 test -z "$ac_c_werror_flag" ||
7871 test ! -s conftest.err
7872 } && test -s conftest$ac_exeext &&
7873 $as_test_x conftest$ac_exeext; then
7874 ac_cv_var_tzname=yes
7875 else
7876 echo "$as_me: failed program was:" >&5
7877 sed 's/^/| /' conftest.$ac_ext >&5
7879 ac_cv_var_tzname=no
7882 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
7883 conftest$ac_exeext conftest.$ac_ext
7885 { echo "$as_me:$LINENO: result: $ac_cv_var_tzname" >&5
7886 echo "${ECHO_T}$ac_cv_var_tzname" >&6; }
7887 if test $ac_cv_var_tzname = yes; then
7889 cat >>confdefs.h <<\_ACEOF
7890 #define HAVE_TZNAME 1
7891 _ACEOF
7896 { echo "$as_me:$LINENO: checking for struct tm.tm_gmtoff" >&5
7897 echo $ECHO_N "checking for struct tm.tm_gmtoff... $ECHO_C" >&6; }
7898 if test "${ac_cv_member_struct_tm_tm_gmtoff+set}" = set; then
7899 echo $ECHO_N "(cached) $ECHO_C" >&6
7900 else
7901 cat >conftest.$ac_ext <<_ACEOF
7902 /* confdefs.h. */
7903 _ACEOF
7904 cat confdefs.h >>conftest.$ac_ext
7905 cat >>conftest.$ac_ext <<_ACEOF
7906 /* end confdefs.h. */
7907 #include <time.h>
7910 main ()
7912 static struct tm ac_aggr;
7913 if (ac_aggr.tm_gmtoff)
7914 return 0;
7916 return 0;
7918 _ACEOF
7919 rm -f conftest.$ac_objext
7920 if { (ac_try="$ac_compile"
7921 case "(($ac_try" in
7922 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7923 *) ac_try_echo=$ac_try;;
7924 esac
7925 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7926 (eval "$ac_compile") 2>conftest.er1
7927 ac_status=$?
7928 grep -v '^ *+' conftest.er1 >conftest.err
7929 rm -f conftest.er1
7930 cat conftest.err >&5
7931 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7932 (exit $ac_status); } && {
7933 test -z "$ac_c_werror_flag" ||
7934 test ! -s conftest.err
7935 } && test -s conftest.$ac_objext; then
7936 ac_cv_member_struct_tm_tm_gmtoff=yes
7937 else
7938 echo "$as_me: failed program was:" >&5
7939 sed 's/^/| /' conftest.$ac_ext >&5
7941 cat >conftest.$ac_ext <<_ACEOF
7942 /* confdefs.h. */
7943 _ACEOF
7944 cat confdefs.h >>conftest.$ac_ext
7945 cat >>conftest.$ac_ext <<_ACEOF
7946 /* end confdefs.h. */
7947 #include <time.h>
7950 main ()
7952 static struct tm ac_aggr;
7953 if (sizeof ac_aggr.tm_gmtoff)
7954 return 0;
7956 return 0;
7958 _ACEOF
7959 rm -f conftest.$ac_objext
7960 if { (ac_try="$ac_compile"
7961 case "(($ac_try" in
7962 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7963 *) ac_try_echo=$ac_try;;
7964 esac
7965 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7966 (eval "$ac_compile") 2>conftest.er1
7967 ac_status=$?
7968 grep -v '^ *+' conftest.er1 >conftest.err
7969 rm -f conftest.er1
7970 cat conftest.err >&5
7971 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7972 (exit $ac_status); } && {
7973 test -z "$ac_c_werror_flag" ||
7974 test ! -s conftest.err
7975 } && test -s conftest.$ac_objext; then
7976 ac_cv_member_struct_tm_tm_gmtoff=yes
7977 else
7978 echo "$as_me: failed program was:" >&5
7979 sed 's/^/| /' conftest.$ac_ext >&5
7981 ac_cv_member_struct_tm_tm_gmtoff=no
7984 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7987 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7989 { echo "$as_me:$LINENO: result: $ac_cv_member_struct_tm_tm_gmtoff" >&5
7990 echo "${ECHO_T}$ac_cv_member_struct_tm_tm_gmtoff" >&6; }
7991 if test $ac_cv_member_struct_tm_tm_gmtoff = yes; then
7993 cat >>confdefs.h <<\_ACEOF
7994 #define HAVE_TM_GMTOFF 1
7995 _ACEOF
7999 { echo "$as_me:$LINENO: checking for struct ifreq.ifr_flags" >&5
8000 echo $ECHO_N "checking for struct ifreq.ifr_flags... $ECHO_C" >&6; }
8001 if test "${ac_cv_member_struct_ifreq_ifr_flags+set}" = set; then
8002 echo $ECHO_N "(cached) $ECHO_C" >&6
8003 else
8004 cat >conftest.$ac_ext <<_ACEOF
8005 /* confdefs.h. */
8006 _ACEOF
8007 cat confdefs.h >>conftest.$ac_ext
8008 cat >>conftest.$ac_ext <<_ACEOF
8009 /* end confdefs.h. */
8010 $ac_includes_default
8011 #if HAVE_SYS_SOCKET_H
8012 #include <sys/socket.h>
8013 #endif
8014 #if HAVE_NET_IF_H
8015 #include <net/if.h>
8016 #endif
8019 main ()
8021 static struct ifreq ac_aggr;
8022 if (ac_aggr.ifr_flags)
8023 return 0;
8025 return 0;
8027 _ACEOF
8028 rm -f conftest.$ac_objext
8029 if { (ac_try="$ac_compile"
8030 case "(($ac_try" in
8031 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8032 *) ac_try_echo=$ac_try;;
8033 esac
8034 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8035 (eval "$ac_compile") 2>conftest.er1
8036 ac_status=$?
8037 grep -v '^ *+' conftest.er1 >conftest.err
8038 rm -f conftest.er1
8039 cat conftest.err >&5
8040 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8041 (exit $ac_status); } && {
8042 test -z "$ac_c_werror_flag" ||
8043 test ! -s conftest.err
8044 } && test -s conftest.$ac_objext; then
8045 ac_cv_member_struct_ifreq_ifr_flags=yes
8046 else
8047 echo "$as_me: failed program was:" >&5
8048 sed 's/^/| /' conftest.$ac_ext >&5
8050 cat >conftest.$ac_ext <<_ACEOF
8051 /* confdefs.h. */
8052 _ACEOF
8053 cat confdefs.h >>conftest.$ac_ext
8054 cat >>conftest.$ac_ext <<_ACEOF
8055 /* end confdefs.h. */
8056 $ac_includes_default
8057 #if HAVE_SYS_SOCKET_H
8058 #include <sys/socket.h>
8059 #endif
8060 #if HAVE_NET_IF_H
8061 #include <net/if.h>
8062 #endif
8065 main ()
8067 static struct ifreq ac_aggr;
8068 if (sizeof ac_aggr.ifr_flags)
8069 return 0;
8071 return 0;
8073 _ACEOF
8074 rm -f conftest.$ac_objext
8075 if { (ac_try="$ac_compile"
8076 case "(($ac_try" in
8077 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8078 *) ac_try_echo=$ac_try;;
8079 esac
8080 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8081 (eval "$ac_compile") 2>conftest.er1
8082 ac_status=$?
8083 grep -v '^ *+' conftest.er1 >conftest.err
8084 rm -f conftest.er1
8085 cat conftest.err >&5
8086 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8087 (exit $ac_status); } && {
8088 test -z "$ac_c_werror_flag" ||
8089 test ! -s conftest.err
8090 } && test -s conftest.$ac_objext; then
8091 ac_cv_member_struct_ifreq_ifr_flags=yes
8092 else
8093 echo "$as_me: failed program was:" >&5
8094 sed 's/^/| /' conftest.$ac_ext >&5
8096 ac_cv_member_struct_ifreq_ifr_flags=no
8099 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8102 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8104 { echo "$as_me:$LINENO: result: $ac_cv_member_struct_ifreq_ifr_flags" >&5
8105 echo "${ECHO_T}$ac_cv_member_struct_ifreq_ifr_flags" >&6; }
8106 if test $ac_cv_member_struct_ifreq_ifr_flags = yes; then
8108 cat >>confdefs.h <<_ACEOF
8109 #define HAVE_STRUCT_IFREQ_IFR_FLAGS 1
8110 _ACEOF
8114 { echo "$as_me:$LINENO: checking for struct ifreq.ifr_hwaddr" >&5
8115 echo $ECHO_N "checking for struct ifreq.ifr_hwaddr... $ECHO_C" >&6; }
8116 if test "${ac_cv_member_struct_ifreq_ifr_hwaddr+set}" = set; then
8117 echo $ECHO_N "(cached) $ECHO_C" >&6
8118 else
8119 cat >conftest.$ac_ext <<_ACEOF
8120 /* confdefs.h. */
8121 _ACEOF
8122 cat confdefs.h >>conftest.$ac_ext
8123 cat >>conftest.$ac_ext <<_ACEOF
8124 /* end confdefs.h. */
8125 $ac_includes_default
8126 #if HAVE_SYS_SOCKET_H
8127 #include <sys/socket.h>
8128 #endif
8129 #if HAVE_NET_IF_H
8130 #include <net/if.h>
8131 #endif
8134 main ()
8136 static struct ifreq ac_aggr;
8137 if (ac_aggr.ifr_hwaddr)
8138 return 0;
8140 return 0;
8142 _ACEOF
8143 rm -f conftest.$ac_objext
8144 if { (ac_try="$ac_compile"
8145 case "(($ac_try" in
8146 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8147 *) ac_try_echo=$ac_try;;
8148 esac
8149 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8150 (eval "$ac_compile") 2>conftest.er1
8151 ac_status=$?
8152 grep -v '^ *+' conftest.er1 >conftest.err
8153 rm -f conftest.er1
8154 cat conftest.err >&5
8155 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8156 (exit $ac_status); } && {
8157 test -z "$ac_c_werror_flag" ||
8158 test ! -s conftest.err
8159 } && test -s conftest.$ac_objext; then
8160 ac_cv_member_struct_ifreq_ifr_hwaddr=yes
8161 else
8162 echo "$as_me: failed program was:" >&5
8163 sed 's/^/| /' conftest.$ac_ext >&5
8165 cat >conftest.$ac_ext <<_ACEOF
8166 /* confdefs.h. */
8167 _ACEOF
8168 cat confdefs.h >>conftest.$ac_ext
8169 cat >>conftest.$ac_ext <<_ACEOF
8170 /* end confdefs.h. */
8171 $ac_includes_default
8172 #if HAVE_SYS_SOCKET_H
8173 #include <sys/socket.h>
8174 #endif
8175 #if HAVE_NET_IF_H
8176 #include <net/if.h>
8177 #endif
8180 main ()
8182 static struct ifreq ac_aggr;
8183 if (sizeof ac_aggr.ifr_hwaddr)
8184 return 0;
8186 return 0;
8188 _ACEOF
8189 rm -f conftest.$ac_objext
8190 if { (ac_try="$ac_compile"
8191 case "(($ac_try" in
8192 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8193 *) ac_try_echo=$ac_try;;
8194 esac
8195 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8196 (eval "$ac_compile") 2>conftest.er1
8197 ac_status=$?
8198 grep -v '^ *+' conftest.er1 >conftest.err
8199 rm -f conftest.er1
8200 cat conftest.err >&5
8201 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8202 (exit $ac_status); } && {
8203 test -z "$ac_c_werror_flag" ||
8204 test ! -s conftest.err
8205 } && test -s conftest.$ac_objext; then
8206 ac_cv_member_struct_ifreq_ifr_hwaddr=yes
8207 else
8208 echo "$as_me: failed program was:" >&5
8209 sed 's/^/| /' conftest.$ac_ext >&5
8211 ac_cv_member_struct_ifreq_ifr_hwaddr=no
8214 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8217 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8219 { echo "$as_me:$LINENO: result: $ac_cv_member_struct_ifreq_ifr_hwaddr" >&5
8220 echo "${ECHO_T}$ac_cv_member_struct_ifreq_ifr_hwaddr" >&6; }
8221 if test $ac_cv_member_struct_ifreq_ifr_hwaddr = yes; then
8223 cat >>confdefs.h <<_ACEOF
8224 #define HAVE_STRUCT_IFREQ_IFR_HWADDR 1
8225 _ACEOF
8229 { echo "$as_me:$LINENO: checking for struct ifreq.ifr_netmask" >&5
8230 echo $ECHO_N "checking for struct ifreq.ifr_netmask... $ECHO_C" >&6; }
8231 if test "${ac_cv_member_struct_ifreq_ifr_netmask+set}" = set; then
8232 echo $ECHO_N "(cached) $ECHO_C" >&6
8233 else
8234 cat >conftest.$ac_ext <<_ACEOF
8235 /* confdefs.h. */
8236 _ACEOF
8237 cat confdefs.h >>conftest.$ac_ext
8238 cat >>conftest.$ac_ext <<_ACEOF
8239 /* end confdefs.h. */
8240 $ac_includes_default
8241 #if HAVE_SYS_SOCKET_H
8242 #include <sys/socket.h>
8243 #endif
8244 #if HAVE_NET_IF_H
8245 #include <net/if.h>
8246 #endif
8249 main ()
8251 static struct ifreq ac_aggr;
8252 if (ac_aggr.ifr_netmask)
8253 return 0;
8255 return 0;
8257 _ACEOF
8258 rm -f conftest.$ac_objext
8259 if { (ac_try="$ac_compile"
8260 case "(($ac_try" in
8261 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8262 *) ac_try_echo=$ac_try;;
8263 esac
8264 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8265 (eval "$ac_compile") 2>conftest.er1
8266 ac_status=$?
8267 grep -v '^ *+' conftest.er1 >conftest.err
8268 rm -f conftest.er1
8269 cat conftest.err >&5
8270 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8271 (exit $ac_status); } && {
8272 test -z "$ac_c_werror_flag" ||
8273 test ! -s conftest.err
8274 } && test -s conftest.$ac_objext; then
8275 ac_cv_member_struct_ifreq_ifr_netmask=yes
8276 else
8277 echo "$as_me: failed program was:" >&5
8278 sed 's/^/| /' conftest.$ac_ext >&5
8280 cat >conftest.$ac_ext <<_ACEOF
8281 /* confdefs.h. */
8282 _ACEOF
8283 cat confdefs.h >>conftest.$ac_ext
8284 cat >>conftest.$ac_ext <<_ACEOF
8285 /* end confdefs.h. */
8286 $ac_includes_default
8287 #if HAVE_SYS_SOCKET_H
8288 #include <sys/socket.h>
8289 #endif
8290 #if HAVE_NET_IF_H
8291 #include <net/if.h>
8292 #endif
8295 main ()
8297 static struct ifreq ac_aggr;
8298 if (sizeof ac_aggr.ifr_netmask)
8299 return 0;
8301 return 0;
8303 _ACEOF
8304 rm -f conftest.$ac_objext
8305 if { (ac_try="$ac_compile"
8306 case "(($ac_try" in
8307 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8308 *) ac_try_echo=$ac_try;;
8309 esac
8310 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8311 (eval "$ac_compile") 2>conftest.er1
8312 ac_status=$?
8313 grep -v '^ *+' conftest.er1 >conftest.err
8314 rm -f conftest.er1
8315 cat conftest.err >&5
8316 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8317 (exit $ac_status); } && {
8318 test -z "$ac_c_werror_flag" ||
8319 test ! -s conftest.err
8320 } && test -s conftest.$ac_objext; then
8321 ac_cv_member_struct_ifreq_ifr_netmask=yes
8322 else
8323 echo "$as_me: failed program was:" >&5
8324 sed 's/^/| /' conftest.$ac_ext >&5
8326 ac_cv_member_struct_ifreq_ifr_netmask=no
8329 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8332 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8334 { echo "$as_me:$LINENO: result: $ac_cv_member_struct_ifreq_ifr_netmask" >&5
8335 echo "${ECHO_T}$ac_cv_member_struct_ifreq_ifr_netmask" >&6; }
8336 if test $ac_cv_member_struct_ifreq_ifr_netmask = yes; then
8338 cat >>confdefs.h <<_ACEOF
8339 #define HAVE_STRUCT_IFREQ_IFR_NETMASK 1
8340 _ACEOF
8344 { echo "$as_me:$LINENO: checking for struct ifreq.ifr_broadaddr" >&5
8345 echo $ECHO_N "checking for struct ifreq.ifr_broadaddr... $ECHO_C" >&6; }
8346 if test "${ac_cv_member_struct_ifreq_ifr_broadaddr+set}" = set; then
8347 echo $ECHO_N "(cached) $ECHO_C" >&6
8348 else
8349 cat >conftest.$ac_ext <<_ACEOF
8350 /* confdefs.h. */
8351 _ACEOF
8352 cat confdefs.h >>conftest.$ac_ext
8353 cat >>conftest.$ac_ext <<_ACEOF
8354 /* end confdefs.h. */
8355 $ac_includes_default
8356 #if HAVE_SYS_SOCKET_H
8357 #include <sys/socket.h>
8358 #endif
8359 #if HAVE_NET_IF_H
8360 #include <net/if.h>
8361 #endif
8364 main ()
8366 static struct ifreq ac_aggr;
8367 if (ac_aggr.ifr_broadaddr)
8368 return 0;
8370 return 0;
8372 _ACEOF
8373 rm -f conftest.$ac_objext
8374 if { (ac_try="$ac_compile"
8375 case "(($ac_try" in
8376 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8377 *) ac_try_echo=$ac_try;;
8378 esac
8379 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8380 (eval "$ac_compile") 2>conftest.er1
8381 ac_status=$?
8382 grep -v '^ *+' conftest.er1 >conftest.err
8383 rm -f conftest.er1
8384 cat conftest.err >&5
8385 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8386 (exit $ac_status); } && {
8387 test -z "$ac_c_werror_flag" ||
8388 test ! -s conftest.err
8389 } && test -s conftest.$ac_objext; then
8390 ac_cv_member_struct_ifreq_ifr_broadaddr=yes
8391 else
8392 echo "$as_me: failed program was:" >&5
8393 sed 's/^/| /' conftest.$ac_ext >&5
8395 cat >conftest.$ac_ext <<_ACEOF
8396 /* confdefs.h. */
8397 _ACEOF
8398 cat confdefs.h >>conftest.$ac_ext
8399 cat >>conftest.$ac_ext <<_ACEOF
8400 /* end confdefs.h. */
8401 $ac_includes_default
8402 #if HAVE_SYS_SOCKET_H
8403 #include <sys/socket.h>
8404 #endif
8405 #if HAVE_NET_IF_H
8406 #include <net/if.h>
8407 #endif
8410 main ()
8412 static struct ifreq ac_aggr;
8413 if (sizeof ac_aggr.ifr_broadaddr)
8414 return 0;
8416 return 0;
8418 _ACEOF
8419 rm -f conftest.$ac_objext
8420 if { (ac_try="$ac_compile"
8421 case "(($ac_try" in
8422 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8423 *) ac_try_echo=$ac_try;;
8424 esac
8425 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8426 (eval "$ac_compile") 2>conftest.er1
8427 ac_status=$?
8428 grep -v '^ *+' conftest.er1 >conftest.err
8429 rm -f conftest.er1
8430 cat conftest.err >&5
8431 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8432 (exit $ac_status); } && {
8433 test -z "$ac_c_werror_flag" ||
8434 test ! -s conftest.err
8435 } && test -s conftest.$ac_objext; then
8436 ac_cv_member_struct_ifreq_ifr_broadaddr=yes
8437 else
8438 echo "$as_me: failed program was:" >&5
8439 sed 's/^/| /' conftest.$ac_ext >&5
8441 ac_cv_member_struct_ifreq_ifr_broadaddr=no
8444 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8447 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8449 { echo "$as_me:$LINENO: result: $ac_cv_member_struct_ifreq_ifr_broadaddr" >&5
8450 echo "${ECHO_T}$ac_cv_member_struct_ifreq_ifr_broadaddr" >&6; }
8451 if test $ac_cv_member_struct_ifreq_ifr_broadaddr = yes; then
8453 cat >>confdefs.h <<_ACEOF
8454 #define HAVE_STRUCT_IFREQ_IFR_BROADADDR 1
8455 _ACEOF
8459 { echo "$as_me:$LINENO: checking for struct ifreq.ifr_addr" >&5
8460 echo $ECHO_N "checking for struct ifreq.ifr_addr... $ECHO_C" >&6; }
8461 if test "${ac_cv_member_struct_ifreq_ifr_addr+set}" = set; then
8462 echo $ECHO_N "(cached) $ECHO_C" >&6
8463 else
8464 cat >conftest.$ac_ext <<_ACEOF
8465 /* confdefs.h. */
8466 _ACEOF
8467 cat confdefs.h >>conftest.$ac_ext
8468 cat >>conftest.$ac_ext <<_ACEOF
8469 /* end confdefs.h. */
8470 $ac_includes_default
8471 #if HAVE_SYS_SOCKET_H
8472 #include <sys/socket.h>
8473 #endif
8474 #if HAVE_NET_IF_H
8475 #include <net/if.h>
8476 #endif
8479 main ()
8481 static struct ifreq ac_aggr;
8482 if (ac_aggr.ifr_addr)
8483 return 0;
8485 return 0;
8487 _ACEOF
8488 rm -f conftest.$ac_objext
8489 if { (ac_try="$ac_compile"
8490 case "(($ac_try" in
8491 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8492 *) ac_try_echo=$ac_try;;
8493 esac
8494 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8495 (eval "$ac_compile") 2>conftest.er1
8496 ac_status=$?
8497 grep -v '^ *+' conftest.er1 >conftest.err
8498 rm -f conftest.er1
8499 cat conftest.err >&5
8500 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8501 (exit $ac_status); } && {
8502 test -z "$ac_c_werror_flag" ||
8503 test ! -s conftest.err
8504 } && test -s conftest.$ac_objext; then
8505 ac_cv_member_struct_ifreq_ifr_addr=yes
8506 else
8507 echo "$as_me: failed program was:" >&5
8508 sed 's/^/| /' conftest.$ac_ext >&5
8510 cat >conftest.$ac_ext <<_ACEOF
8511 /* confdefs.h. */
8512 _ACEOF
8513 cat confdefs.h >>conftest.$ac_ext
8514 cat >>conftest.$ac_ext <<_ACEOF
8515 /* end confdefs.h. */
8516 $ac_includes_default
8517 #if HAVE_SYS_SOCKET_H
8518 #include <sys/socket.h>
8519 #endif
8520 #if HAVE_NET_IF_H
8521 #include <net/if.h>
8522 #endif
8525 main ()
8527 static struct ifreq ac_aggr;
8528 if (sizeof ac_aggr.ifr_addr)
8529 return 0;
8531 return 0;
8533 _ACEOF
8534 rm -f conftest.$ac_objext
8535 if { (ac_try="$ac_compile"
8536 case "(($ac_try" in
8537 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8538 *) ac_try_echo=$ac_try;;
8539 esac
8540 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8541 (eval "$ac_compile") 2>conftest.er1
8542 ac_status=$?
8543 grep -v '^ *+' conftest.er1 >conftest.err
8544 rm -f conftest.er1
8545 cat conftest.err >&5
8546 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8547 (exit $ac_status); } && {
8548 test -z "$ac_c_werror_flag" ||
8549 test ! -s conftest.err
8550 } && test -s conftest.$ac_objext; then
8551 ac_cv_member_struct_ifreq_ifr_addr=yes
8552 else
8553 echo "$as_me: failed program was:" >&5
8554 sed 's/^/| /' conftest.$ac_ext >&5
8556 ac_cv_member_struct_ifreq_ifr_addr=no
8559 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8562 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8564 { echo "$as_me:$LINENO: result: $ac_cv_member_struct_ifreq_ifr_addr" >&5
8565 echo "${ECHO_T}$ac_cv_member_struct_ifreq_ifr_addr" >&6; }
8566 if test $ac_cv_member_struct_ifreq_ifr_addr = yes; then
8568 cat >>confdefs.h <<_ACEOF
8569 #define HAVE_STRUCT_IFREQ_IFR_ADDR 1
8570 _ACEOF
8577 { echo "$as_me:$LINENO: checking for function prototypes" >&5
8578 echo $ECHO_N "checking for function prototypes... $ECHO_C" >&6; }
8579 if test "$ac_cv_prog_cc_c89" != no; then
8580 { echo "$as_me:$LINENO: result: yes" >&5
8581 echo "${ECHO_T}yes" >&6; }
8583 cat >>confdefs.h <<\_ACEOF
8584 #define PROTOTYPES 1
8585 _ACEOF
8588 cat >>confdefs.h <<\_ACEOF
8589 #define __PROTOTYPES 1
8590 _ACEOF
8592 else
8593 { echo "$as_me:$LINENO: result: no" >&5
8594 echo "${ECHO_T}no" >&6; }
8597 { echo "$as_me:$LINENO: checking for working volatile" >&5
8598 echo $ECHO_N "checking for working volatile... $ECHO_C" >&6; }
8599 if test "${ac_cv_c_volatile+set}" = set; then
8600 echo $ECHO_N "(cached) $ECHO_C" >&6
8601 else
8602 cat >conftest.$ac_ext <<_ACEOF
8603 /* confdefs.h. */
8604 _ACEOF
8605 cat confdefs.h >>conftest.$ac_ext
8606 cat >>conftest.$ac_ext <<_ACEOF
8607 /* end confdefs.h. */
8610 main ()
8613 volatile int x;
8614 int * volatile y = (int *) 0;
8615 return !x && !y;
8617 return 0;
8619 _ACEOF
8620 rm -f conftest.$ac_objext
8621 if { (ac_try="$ac_compile"
8622 case "(($ac_try" in
8623 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8624 *) ac_try_echo=$ac_try;;
8625 esac
8626 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8627 (eval "$ac_compile") 2>conftest.er1
8628 ac_status=$?
8629 grep -v '^ *+' conftest.er1 >conftest.err
8630 rm -f conftest.er1
8631 cat conftest.err >&5
8632 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8633 (exit $ac_status); } && {
8634 test -z "$ac_c_werror_flag" ||
8635 test ! -s conftest.err
8636 } && test -s conftest.$ac_objext; then
8637 ac_cv_c_volatile=yes
8638 else
8639 echo "$as_me: failed program was:" >&5
8640 sed 's/^/| /' conftest.$ac_ext >&5
8642 ac_cv_c_volatile=no
8645 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8647 { echo "$as_me:$LINENO: result: $ac_cv_c_volatile" >&5
8648 echo "${ECHO_T}$ac_cv_c_volatile" >&6; }
8649 if test $ac_cv_c_volatile = no; then
8651 cat >>confdefs.h <<\_ACEOF
8652 #define volatile
8653 _ACEOF
8657 { echo "$as_me:$LINENO: checking for an ANSI C-conforming const" >&5
8658 echo $ECHO_N "checking for an ANSI C-conforming const... $ECHO_C" >&6; }
8659 if test "${ac_cv_c_const+set}" = set; then
8660 echo $ECHO_N "(cached) $ECHO_C" >&6
8661 else
8662 cat >conftest.$ac_ext <<_ACEOF
8663 /* confdefs.h. */
8664 _ACEOF
8665 cat confdefs.h >>conftest.$ac_ext
8666 cat >>conftest.$ac_ext <<_ACEOF
8667 /* end confdefs.h. */
8670 main ()
8672 /* FIXME: Include the comments suggested by Paul. */
8673 #ifndef __cplusplus
8674 /* Ultrix mips cc rejects this. */
8675 typedef int charset[2];
8676 const charset cs;
8677 /* SunOS 4.1.1 cc rejects this. */
8678 char const *const *pcpcc;
8679 char **ppc;
8680 /* NEC SVR4.0.2 mips cc rejects this. */
8681 struct point {int x, y;};
8682 static struct point const zero = {0,0};
8683 /* AIX XL C 1.02.0.0 rejects this.
8684 It does not let you subtract one const X* pointer from another in
8685 an arm of an if-expression whose if-part is not a constant
8686 expression */
8687 const char *g = "string";
8688 pcpcc = &g + (g ? g-g : 0);
8689 /* HPUX 7.0 cc rejects these. */
8690 ++pcpcc;
8691 ppc = (char**) pcpcc;
8692 pcpcc = (char const *const *) ppc;
8693 { /* SCO 3.2v4 cc rejects this. */
8694 char *t;
8695 char const *s = 0 ? (char *) 0 : (char const *) 0;
8697 *t++ = 0;
8698 if (s) return 0;
8700 { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
8701 int x[] = {25, 17};
8702 const int *foo = &x[0];
8703 ++foo;
8705 { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
8706 typedef const int *iptr;
8707 iptr p = 0;
8708 ++p;
8710 { /* AIX XL C 1.02.0.0 rejects this saying
8711 "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
8712 struct s { int j; const int *ap[3]; };
8713 struct s *b; b->j = 5;
8715 { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
8716 const int foo = 10;
8717 if (!foo) return 0;
8719 return !cs[0] && !zero.x;
8720 #endif
8723 return 0;
8725 _ACEOF
8726 rm -f conftest.$ac_objext
8727 if { (ac_try="$ac_compile"
8728 case "(($ac_try" in
8729 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8730 *) ac_try_echo=$ac_try;;
8731 esac
8732 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8733 (eval "$ac_compile") 2>conftest.er1
8734 ac_status=$?
8735 grep -v '^ *+' conftest.er1 >conftest.err
8736 rm -f conftest.er1
8737 cat conftest.err >&5
8738 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8739 (exit $ac_status); } && {
8740 test -z "$ac_c_werror_flag" ||
8741 test ! -s conftest.err
8742 } && test -s conftest.$ac_objext; then
8743 ac_cv_c_const=yes
8744 else
8745 echo "$as_me: failed program was:" >&5
8746 sed 's/^/| /' conftest.$ac_ext >&5
8748 ac_cv_c_const=no
8751 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8753 { echo "$as_me:$LINENO: result: $ac_cv_c_const" >&5
8754 echo "${ECHO_T}$ac_cv_c_const" >&6; }
8755 if test $ac_cv_c_const = no; then
8757 cat >>confdefs.h <<\_ACEOF
8758 #define const
8759 _ACEOF
8763 { echo "$as_me:$LINENO: checking for void * support" >&5
8764 echo $ECHO_N "checking for void * support... $ECHO_C" >&6; }
8765 if test "${emacs_cv_void_star+set}" = set; then
8766 echo $ECHO_N "(cached) $ECHO_C" >&6
8767 else
8768 cat >conftest.$ac_ext <<_ACEOF
8769 /* confdefs.h. */
8770 _ACEOF
8771 cat confdefs.h >>conftest.$ac_ext
8772 cat >>conftest.$ac_ext <<_ACEOF
8773 /* end confdefs.h. */
8776 main ()
8778 void * foo;
8780 return 0;
8782 _ACEOF
8783 rm -f conftest.$ac_objext
8784 if { (ac_try="$ac_compile"
8785 case "(($ac_try" in
8786 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8787 *) ac_try_echo=$ac_try;;
8788 esac
8789 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8790 (eval "$ac_compile") 2>conftest.er1
8791 ac_status=$?
8792 grep -v '^ *+' conftest.er1 >conftest.err
8793 rm -f conftest.er1
8794 cat conftest.err >&5
8795 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8796 (exit $ac_status); } && {
8797 test -z "$ac_c_werror_flag" ||
8798 test ! -s conftest.err
8799 } && test -s conftest.$ac_objext; then
8800 emacs_cv_void_star=yes
8801 else
8802 echo "$as_me: failed program was:" >&5
8803 sed 's/^/| /' conftest.$ac_ext >&5
8805 emacs_cv_void_star=no
8808 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8810 { echo "$as_me:$LINENO: result: $emacs_cv_void_star" >&5
8811 echo "${ECHO_T}$emacs_cv_void_star" >&6; }
8812 if test $emacs_cv_void_star = yes; then
8813 cat >>confdefs.h <<\_ACEOF
8814 #define POINTER_TYPE void
8815 _ACEOF
8817 else
8818 cat >>confdefs.h <<\_ACEOF
8819 #define POINTER_TYPE char
8820 _ACEOF
8828 { echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5
8829 echo $ECHO_N "checking whether ${MAKE-make} sets \$(MAKE)... $ECHO_C" >&6; }
8830 set x ${MAKE-make}; ac_make=`echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
8831 if { as_var=ac_cv_prog_make_${ac_make}_set; eval "test \"\${$as_var+set}\" = set"; }; then
8832 echo $ECHO_N "(cached) $ECHO_C" >&6
8833 else
8834 cat >conftest.make <<\_ACEOF
8835 SHELL = /bin/sh
8836 all:
8837 @echo '@@@%%%=$(MAKE)=@@@%%%'
8838 _ACEOF
8839 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
8840 case `${MAKE-make} -f conftest.make 2>/dev/null` in
8841 *@@@%%%=?*=@@@%%%*)
8842 eval ac_cv_prog_make_${ac_make}_set=yes;;
8844 eval ac_cv_prog_make_${ac_make}_set=no;;
8845 esac
8846 rm -f conftest.make
8848 if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
8849 { echo "$as_me:$LINENO: result: yes" >&5
8850 echo "${ECHO_T}yes" >&6; }
8851 SET_MAKE=
8852 else
8853 { echo "$as_me:$LINENO: result: no" >&5
8854 echo "${ECHO_T}no" >&6; }
8855 SET_MAKE="MAKE=${MAKE-make}"
8859 { echo "$as_me:$LINENO: checking for long file names" >&5
8860 echo $ECHO_N "checking for long file names... $ECHO_C" >&6; }
8861 if test "${ac_cv_sys_long_file_names+set}" = set; then
8862 echo $ECHO_N "(cached) $ECHO_C" >&6
8863 else
8864 ac_cv_sys_long_file_names=yes
8865 # Test for long file names in all the places we know might matter:
8866 # . the current directory, where building will happen
8867 # $prefix/lib where we will be installing things
8868 # $exec_prefix/lib likewise
8869 # $TMPDIR if set, where it might want to write temporary files
8870 # /tmp where it might want to write temporary files
8871 # /var/tmp likewise
8872 # /usr/tmp likewise
8873 for ac_dir in . "$TMPDIR" /tmp /var/tmp /usr/tmp "$prefix/lib" "$exec_prefix/lib"; do
8874 # Skip $TMPDIR if it is empty or bogus, and skip $exec_prefix/lib
8875 # in the usual case where exec_prefix is '${prefix}'.
8876 case $ac_dir in #(
8877 . | /* | ?:[\\/]*) ;; #(
8878 *) continue;;
8879 esac
8880 test -w "$ac_dir/." || continue # It is less confusing to not echo anything here.
8881 ac_xdir=$ac_dir/cf$$
8882 (umask 077 && mkdir "$ac_xdir" 2>/dev/null) || continue
8883 ac_tf1=$ac_xdir/conftest9012345
8884 ac_tf2=$ac_xdir/conftest9012346
8885 touch "$ac_tf1" 2>/dev/null && test -f "$ac_tf1" && test ! -f "$ac_tf2" ||
8886 ac_cv_sys_long_file_names=no
8887 rm -f -r "$ac_xdir" 2>/dev/null
8888 test $ac_cv_sys_long_file_names = no && break
8889 done
8891 { echo "$as_me:$LINENO: result: $ac_cv_sys_long_file_names" >&5
8892 echo "${ECHO_T}$ac_cv_sys_long_file_names" >&6; }
8893 if test $ac_cv_sys_long_file_names = yes; then
8895 cat >>confdefs.h <<\_ACEOF
8896 #define HAVE_LONG_FILE_NAMES 1
8897 _ACEOF
8902 #### Choose a window system.
8904 { echo "$as_me:$LINENO: checking for X" >&5
8905 echo $ECHO_N "checking for X... $ECHO_C" >&6; }
8908 # Check whether --with-x was given.
8909 if test "${with_x+set}" = set; then
8910 withval=$with_x;
8913 # $have_x is `yes', `no', `disabled', or empty when we do not yet know.
8914 if test "x$with_x" = xno; then
8915 # The user explicitly disabled X.
8916 have_x=disabled
8917 else
8918 case $x_includes,$x_libraries in #(
8919 *\'*) { { echo "$as_me:$LINENO: error: Cannot use X directory names containing '" >&5
8920 echo "$as_me: error: Cannot use X directory names containing '" >&2;}
8921 { (exit 1); exit 1; }; };; #(
8922 *,NONE | NONE,*) if test "${ac_cv_have_x+set}" = set; then
8923 echo $ECHO_N "(cached) $ECHO_C" >&6
8924 else
8925 # One or both of the vars are not set, and there is no cached value.
8926 ac_x_includes=no ac_x_libraries=no
8927 rm -f -r conftest.dir
8928 if mkdir conftest.dir; then
8929 cd conftest.dir
8930 cat >Imakefile <<'_ACEOF'
8931 incroot:
8932 @echo incroot='${INCROOT}'
8933 usrlibdir:
8934 @echo usrlibdir='${USRLIBDIR}'
8935 libdir:
8936 @echo libdir='${LIBDIR}'
8937 _ACEOF
8938 if (export CC; ${XMKMF-xmkmf}) >/dev/null 2>/dev/null && test -f Makefile; then
8939 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
8940 for ac_var in incroot usrlibdir libdir; do
8941 eval "ac_im_$ac_var=\`\${MAKE-make} $ac_var 2>/dev/null | sed -n 's/^$ac_var=//p'\`"
8942 done
8943 # Open Windows xmkmf reportedly sets LIBDIR instead of USRLIBDIR.
8944 for ac_extension in a so sl; do
8945 if test ! -f "$ac_im_usrlibdir/libX11.$ac_extension" &&
8946 test -f "$ac_im_libdir/libX11.$ac_extension"; then
8947 ac_im_usrlibdir=$ac_im_libdir; break
8949 done
8950 # Screen out bogus values from the imake configuration. They are
8951 # bogus both because they are the default anyway, and because
8952 # using them would break gcc on systems where it needs fixed includes.
8953 case $ac_im_incroot in
8954 /usr/include) ac_x_includes= ;;
8955 *) test -f "$ac_im_incroot/X11/Xos.h" && ac_x_includes=$ac_im_incroot;;
8956 esac
8957 case $ac_im_usrlibdir in
8958 /usr/lib | /lib) ;;
8959 *) test -d "$ac_im_usrlibdir" && ac_x_libraries=$ac_im_usrlibdir ;;
8960 esac
8962 cd ..
8963 rm -f -r conftest.dir
8966 # Standard set of common directories for X headers.
8967 # Check X11 before X11Rn because it is often a symlink to the current release.
8968 ac_x_header_dirs='
8969 /usr/X11/include
8970 /usr/X11R6/include
8971 /usr/X11R5/include
8972 /usr/X11R4/include
8974 /usr/include/X11
8975 /usr/include/X11R6
8976 /usr/include/X11R5
8977 /usr/include/X11R4
8979 /usr/local/X11/include
8980 /usr/local/X11R6/include
8981 /usr/local/X11R5/include
8982 /usr/local/X11R4/include
8984 /usr/local/include/X11
8985 /usr/local/include/X11R6
8986 /usr/local/include/X11R5
8987 /usr/local/include/X11R4
8989 /usr/X386/include
8990 /usr/x386/include
8991 /usr/XFree86/include/X11
8993 /usr/include
8994 /usr/local/include
8995 /usr/unsupported/include
8996 /usr/athena/include
8997 /usr/local/x11r5/include
8998 /usr/lpp/Xamples/include
9000 /usr/openwin/include
9001 /usr/openwin/share/include'
9003 if test "$ac_x_includes" = no; then
9004 # Guess where to find include files, by looking for Xlib.h.
9005 # First, try using that file with no special directory specified.
9006 cat >conftest.$ac_ext <<_ACEOF
9007 /* confdefs.h. */
9008 _ACEOF
9009 cat confdefs.h >>conftest.$ac_ext
9010 cat >>conftest.$ac_ext <<_ACEOF
9011 /* end confdefs.h. */
9012 #include <X11/Xlib.h>
9013 _ACEOF
9014 if { (ac_try="$ac_cpp conftest.$ac_ext"
9015 case "(($ac_try" in
9016 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9017 *) ac_try_echo=$ac_try;;
9018 esac
9019 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9020 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
9021 ac_status=$?
9022 grep -v '^ *+' conftest.er1 >conftest.err
9023 rm -f conftest.er1
9024 cat conftest.err >&5
9025 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9026 (exit $ac_status); } >/dev/null && {
9027 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
9028 test ! -s conftest.err
9029 }; then
9030 # We can compile using X headers with no special include directory.
9031 ac_x_includes=
9032 else
9033 echo "$as_me: failed program was:" >&5
9034 sed 's/^/| /' conftest.$ac_ext >&5
9036 for ac_dir in $ac_x_header_dirs; do
9037 if test -r "$ac_dir/X11/Xlib.h"; then
9038 ac_x_includes=$ac_dir
9039 break
9041 done
9044 rm -f conftest.err conftest.$ac_ext
9045 fi # $ac_x_includes = no
9047 if test "$ac_x_libraries" = no; then
9048 # Check for the libraries.
9049 # See if we find them without any special options.
9050 # Don't add to $LIBS permanently.
9051 ac_save_LIBS=$LIBS
9052 LIBS="-lX11 $LIBS"
9053 cat >conftest.$ac_ext <<_ACEOF
9054 /* confdefs.h. */
9055 _ACEOF
9056 cat confdefs.h >>conftest.$ac_ext
9057 cat >>conftest.$ac_ext <<_ACEOF
9058 /* end confdefs.h. */
9059 #include <X11/Xlib.h>
9061 main ()
9063 XrmInitialize ()
9065 return 0;
9067 _ACEOF
9068 rm -f conftest.$ac_objext conftest$ac_exeext
9069 if { (ac_try="$ac_link"
9070 case "(($ac_try" in
9071 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9072 *) ac_try_echo=$ac_try;;
9073 esac
9074 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9075 (eval "$ac_link") 2>conftest.er1
9076 ac_status=$?
9077 grep -v '^ *+' conftest.er1 >conftest.err
9078 rm -f conftest.er1
9079 cat conftest.err >&5
9080 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9081 (exit $ac_status); } && {
9082 test -z "$ac_c_werror_flag" ||
9083 test ! -s conftest.err
9084 } && test -s conftest$ac_exeext &&
9085 $as_test_x conftest$ac_exeext; then
9086 LIBS=$ac_save_LIBS
9087 # We can link X programs with no special library path.
9088 ac_x_libraries=
9089 else
9090 echo "$as_me: failed program was:" >&5
9091 sed 's/^/| /' conftest.$ac_ext >&5
9093 LIBS=$ac_save_LIBS
9094 for ac_dir in `echo "$ac_x_includes $ac_x_header_dirs" | sed s/include/lib/g`
9096 # Don't even attempt the hair of trying to link an X program!
9097 for ac_extension in a so sl; do
9098 if test -r "$ac_dir/libX11.$ac_extension"; then
9099 ac_x_libraries=$ac_dir
9100 break 2
9102 done
9103 done
9106 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
9107 conftest$ac_exeext conftest.$ac_ext
9108 fi # $ac_x_libraries = no
9110 case $ac_x_includes,$ac_x_libraries in #(
9111 no,* | *,no | *\'*)
9112 # Didn't find X, or a directory has "'" in its name.
9113 ac_cv_have_x="have_x=no";; #(
9115 # Record where we found X for the cache.
9116 ac_cv_have_x="have_x=yes\
9117 ac_x_includes='$ac_x_includes'\
9118 ac_x_libraries='$ac_x_libraries'"
9119 esac
9121 ;; #(
9122 *) have_x=yes;;
9123 esac
9124 eval "$ac_cv_have_x"
9125 fi # $with_x != no
9127 if test "$have_x" != yes; then
9128 { echo "$as_me:$LINENO: result: $have_x" >&5
9129 echo "${ECHO_T}$have_x" >&6; }
9130 no_x=yes
9131 else
9132 # If each of the values was on the command line, it overrides each guess.
9133 test "x$x_includes" = xNONE && x_includes=$ac_x_includes
9134 test "x$x_libraries" = xNONE && x_libraries=$ac_x_libraries
9135 # Update the cache value to reflect the command line values.
9136 ac_cv_have_x="have_x=yes\
9137 ac_x_includes='$x_includes'\
9138 ac_x_libraries='$x_libraries'"
9139 { echo "$as_me:$LINENO: result: libraries $x_libraries, headers $x_includes" >&5
9140 echo "${ECHO_T}libraries $x_libraries, headers $x_includes" >&6; }
9143 if test "$no_x" = yes; then
9144 window_system=none
9145 else
9146 window_system=x11
9149 ## Workaround for bug in autoconf <= 2.62.
9150 ## http://lists.gnu.org/archive/html/emacs-devel/2008-04/msg01551.html
9151 ## No need to do anything special for these standard directories.
9152 ## This is an experiment, take it out if it causes problems.
9153 if test -n "${x_libraries}" && test x"${x_libraries}" != xNONE; then
9155 x_libraries=`echo :${x_libraries}: | sed -e 's|:/usr/lib64:|:|g' -e 's|:/lib64:|:|g' -e 's|^:||' -e 's|:$||'`
9159 if test "${x_libraries}" != NONE; then
9160 if test -n "${x_libraries}"; then
9161 LD_SWITCH_X_SITE=-L`echo ${x_libraries} | sed -e "s/:/ -L/g"`
9162 LD_SWITCH_X_SITE_AUX=-R`echo ${x_libraries} | sed -e "s/:/ -R/g"`
9164 x_default_search_path=""
9165 x_search_path=${x_libraries}
9166 if test -z "${x_search_path}"; then
9167 x_search_path=/usr/lib
9169 for x_library in `echo ${x_search_path}: | \
9170 sed -e "s/:/ /g" -e p -e "s:/lib[^ /]* :/share :g"`; do
9171 x_search_path="\
9172 ${x_library}/X11/%L/%T/%N%C%S:\
9173 ${x_library}/X11/%l/%T/%N%C%S:\
9174 ${x_library}/X11/%T/%N%C%S:\
9175 ${x_library}/X11/%L/%T/%N%S:\
9176 ${x_library}/X11/%l/%T/%N%S:\
9177 ${x_library}/X11/%T/%N%S"
9178 if test x"${x_default_search_path}" = x; then
9179 x_default_search_path=${x_search_path}
9180 else
9181 x_default_search_path="${x_search_path}:${x_default_search_path}"
9183 done
9185 if test "${x_includes}" != NONE && test -n "${x_includes}"; then
9186 C_SWITCH_X_SITE=-I`echo ${x_includes} | sed -e "s/:/ -I/g"`
9189 if test x"${x_includes}" = x; then
9190 bitmapdir=/usr/include/X11/bitmaps
9191 else
9192 # accumulate include directories that have X11 bitmap subdirectories
9193 bmd_acc="dummyval"
9194 for bmd in `echo ${x_includes} | sed -e "s/:/ /g"`; do
9195 if test -d "${bmd}/X11/bitmaps"; then
9196 bmd_acc="${bmd_acc}:${bmd}/X11/bitmaps"
9198 if test -d "${bmd}/bitmaps"; then
9199 bmd_acc="${bmd_acc}:${bmd}/bitmaps"
9201 done
9202 if test ${bmd_acc} != "dummyval"; then
9203 bitmapdir=`echo ${bmd_acc} | sed -e "s/^dummyval://"`
9207 HAVE_NS=no
9208 NS_IMPL_COCOA=no
9209 NS_IMPL_GNUSTEP=no
9210 tmp_CPPFLAGS="$CPPFLAGS"
9211 tmp_CFLAGS="$CFLAGS"
9212 CPPFLAGS="$CPPFLAGS -x objective-c"
9213 CFLAGS="$CFLAGS -x objective-c"
9214 if test "${with_ns}" != no; then
9215 if test "${opsys}" = darwin; then
9216 NS_IMPL_COCOA=yes
9217 ns_appdir=`pwd`/nextstep/Emacs.app
9218 ns_appbindir=`pwd`/nextstep/Emacs.app/Contents/MacOS
9219 ns_appresdir=`pwd`/nextstep/Emacs.app/Contents/Resources
9220 ns_appsrc=${srcdir}/nextstep/Cocoa/Emacs.base
9221 elif test -f $GNUSTEP_CONFIG_FILE; then
9222 NS_IMPL_GNUSTEP=yes
9223 ns_appdir=`pwd`/nextstep/Emacs.app
9224 ns_appbindir=`pwd`/nextstep/Emacs.app
9225 ns_appresdir=`pwd`/nextstep/Emacs.app/Resources
9226 ns_appsrc=${srcdir}/nextstep/GNUstep/Emacs.base
9227 GNUSTEP_MAKEFILES="$(. $GNUSTEP_CONFIG_FILE; echo $GNUSTEP_MAKEFILES)"
9228 GNUSTEP_SYSTEM_HEADERS="$(. $GNUSTEP_CONFIG_FILE; echo $GNUSTEP_SYSTEM_HEADERS)"
9229 GNUSTEP_SYSTEM_LIBRARIES="$(. $GNUSTEP_CONFIG_FILE; echo $GNUSTEP_SYSTEM_LIBRARIES)"
9230 CPPFLAGS="$CPPFLAGS -I${GNUSTEP_SYSTEM_HEADERS}"
9231 CFLAGS="$CFLAGS -I${GNUSTEP_SYSTEM_HEADERS}"
9232 REAL_CFLAGS="$REAL_CFLAGS -I${GNUSTEP_SYSTEM_HEADERS}"
9233 LDFLAGS="$LDFLAGS -L${GNUSTEP_SYSTEM_LIBRARIES}"
9235 if test "${ac_cv_header_AppKit_AppKit_h+set}" = set; then
9236 { echo "$as_me:$LINENO: checking for AppKit/AppKit.h" >&5
9237 echo $ECHO_N "checking for AppKit/AppKit.h... $ECHO_C" >&6; }
9238 if test "${ac_cv_header_AppKit_AppKit_h+set}" = set; then
9239 echo $ECHO_N "(cached) $ECHO_C" >&6
9241 { echo "$as_me:$LINENO: result: $ac_cv_header_AppKit_AppKit_h" >&5
9242 echo "${ECHO_T}$ac_cv_header_AppKit_AppKit_h" >&6; }
9243 else
9244 # Is the header compilable?
9245 { echo "$as_me:$LINENO: checking AppKit/AppKit.h usability" >&5
9246 echo $ECHO_N "checking AppKit/AppKit.h usability... $ECHO_C" >&6; }
9247 cat >conftest.$ac_ext <<_ACEOF
9248 /* confdefs.h. */
9249 _ACEOF
9250 cat confdefs.h >>conftest.$ac_ext
9251 cat >>conftest.$ac_ext <<_ACEOF
9252 /* end confdefs.h. */
9253 $ac_includes_default
9254 #include <AppKit/AppKit.h>
9255 _ACEOF
9256 rm -f conftest.$ac_objext
9257 if { (ac_try="$ac_compile"
9258 case "(($ac_try" in
9259 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9260 *) ac_try_echo=$ac_try;;
9261 esac
9262 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9263 (eval "$ac_compile") 2>conftest.er1
9264 ac_status=$?
9265 grep -v '^ *+' conftest.er1 >conftest.err
9266 rm -f conftest.er1
9267 cat conftest.err >&5
9268 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9269 (exit $ac_status); } && {
9270 test -z "$ac_c_werror_flag" ||
9271 test ! -s conftest.err
9272 } && test -s conftest.$ac_objext; then
9273 ac_header_compiler=yes
9274 else
9275 echo "$as_me: failed program was:" >&5
9276 sed 's/^/| /' conftest.$ac_ext >&5
9278 ac_header_compiler=no
9281 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9282 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
9283 echo "${ECHO_T}$ac_header_compiler" >&6; }
9285 # Is the header present?
9286 { echo "$as_me:$LINENO: checking AppKit/AppKit.h presence" >&5
9287 echo $ECHO_N "checking AppKit/AppKit.h presence... $ECHO_C" >&6; }
9288 cat >conftest.$ac_ext <<_ACEOF
9289 /* confdefs.h. */
9290 _ACEOF
9291 cat confdefs.h >>conftest.$ac_ext
9292 cat >>conftest.$ac_ext <<_ACEOF
9293 /* end confdefs.h. */
9294 #include <AppKit/AppKit.h>
9295 _ACEOF
9296 if { (ac_try="$ac_cpp conftest.$ac_ext"
9297 case "(($ac_try" in
9298 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9299 *) ac_try_echo=$ac_try;;
9300 esac
9301 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9302 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
9303 ac_status=$?
9304 grep -v '^ *+' conftest.er1 >conftest.err
9305 rm -f conftest.er1
9306 cat conftest.err >&5
9307 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9308 (exit $ac_status); } >/dev/null && {
9309 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
9310 test ! -s conftest.err
9311 }; then
9312 ac_header_preproc=yes
9313 else
9314 echo "$as_me: failed program was:" >&5
9315 sed 's/^/| /' conftest.$ac_ext >&5
9317 ac_header_preproc=no
9320 rm -f conftest.err conftest.$ac_ext
9321 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
9322 echo "${ECHO_T}$ac_header_preproc" >&6; }
9324 # So? What about this header?
9325 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
9326 yes:no: )
9327 { echo "$as_me:$LINENO: WARNING: AppKit/AppKit.h: accepted by the compiler, rejected by the preprocessor!" >&5
9328 echo "$as_me: WARNING: AppKit/AppKit.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
9329 { echo "$as_me:$LINENO: WARNING: AppKit/AppKit.h: proceeding with the compiler's result" >&5
9330 echo "$as_me: WARNING: AppKit/AppKit.h: proceeding with the compiler's result" >&2;}
9331 ac_header_preproc=yes
9333 no:yes:* )
9334 { echo "$as_me:$LINENO: WARNING: AppKit/AppKit.h: present but cannot be compiled" >&5
9335 echo "$as_me: WARNING: AppKit/AppKit.h: present but cannot be compiled" >&2;}
9336 { echo "$as_me:$LINENO: WARNING: AppKit/AppKit.h: check for missing prerequisite headers?" >&5
9337 echo "$as_me: WARNING: AppKit/AppKit.h: check for missing prerequisite headers?" >&2;}
9338 { echo "$as_me:$LINENO: WARNING: AppKit/AppKit.h: see the Autoconf documentation" >&5
9339 echo "$as_me: WARNING: AppKit/AppKit.h: see the Autoconf documentation" >&2;}
9340 { echo "$as_me:$LINENO: WARNING: AppKit/AppKit.h: section \"Present But Cannot Be Compiled\"" >&5
9341 echo "$as_me: WARNING: AppKit/AppKit.h: section \"Present But Cannot Be Compiled\"" >&2;}
9342 { echo "$as_me:$LINENO: WARNING: AppKit/AppKit.h: proceeding with the preprocessor's result" >&5
9343 echo "$as_me: WARNING: AppKit/AppKit.h: proceeding with the preprocessor's result" >&2;}
9344 { echo "$as_me:$LINENO: WARNING: AppKit/AppKit.h: in the future, the compiler will take precedence" >&5
9345 echo "$as_me: WARNING: AppKit/AppKit.h: in the future, the compiler will take precedence" >&2;}
9348 esac
9349 { echo "$as_me:$LINENO: checking for AppKit/AppKit.h" >&5
9350 echo $ECHO_N "checking for AppKit/AppKit.h... $ECHO_C" >&6; }
9351 if test "${ac_cv_header_AppKit_AppKit_h+set}" = set; then
9352 echo $ECHO_N "(cached) $ECHO_C" >&6
9353 else
9354 ac_cv_header_AppKit_AppKit_h=$ac_header_preproc
9356 { echo "$as_me:$LINENO: result: $ac_cv_header_AppKit_AppKit_h" >&5
9357 echo "${ECHO_T}$ac_cv_header_AppKit_AppKit_h" >&6; }
9360 if test $ac_cv_header_AppKit_AppKit_h = yes; then
9361 HAVE_NS=yes
9362 else
9363 { { echo "$as_me:$LINENO: error: \`--with-ns' was specified, but the include
9364 files are missing or cannot be compiled." >&5
9365 echo "$as_me: error: \`--with-ns' was specified, but the include
9366 files are missing or cannot be compiled." >&2;}
9367 { (exit 1); exit 1; }; }
9371 NS_HAVE_NSINTEGER=yes
9372 cat >conftest.$ac_ext <<_ACEOF
9373 /* confdefs.h. */
9374 _ACEOF
9375 cat confdefs.h >>conftest.$ac_ext
9376 cat >>conftest.$ac_ext <<_ACEOF
9377 /* end confdefs.h. */
9378 #include <Foundation/NSObjCRuntime.h>
9380 main ()
9382 NSInteger i;
9384 return 0;
9386 _ACEOF
9387 rm -f conftest.$ac_objext
9388 if { (ac_try="$ac_compile"
9389 case "(($ac_try" in
9390 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9391 *) ac_try_echo=$ac_try;;
9392 esac
9393 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9394 (eval "$ac_compile") 2>conftest.er1
9395 ac_status=$?
9396 grep -v '^ *+' conftest.er1 >conftest.err
9397 rm -f conftest.er1
9398 cat conftest.err >&5
9399 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9400 (exit $ac_status); } && {
9401 test -z "$ac_c_werror_flag" ||
9402 test ! -s conftest.err
9403 } && test -s conftest.$ac_objext; then
9404 ns_have_nsinteger=yes
9405 else
9406 echo "$as_me: failed program was:" >&5
9407 sed 's/^/| /' conftest.$ac_ext >&5
9409 ns_have_nsinteger=no
9412 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9413 if test $ns_have_nsinteger = no; then
9414 NS_HAVE_NSINTEGER=no
9417 if test "${HAVE_NS}" = yes; then
9418 window_system=nextstep
9419 with_xft=no
9420 with_freetype=no
9421 # set up packaging dirs
9422 exec_prefix=${ns_appbindir}
9423 libexecdir=${ns_appbindir}/libexec
9424 if test "${EN_NS_SELF_CONTAINED}" = yes; then
9425 prefix=${ns_appresdir}
9428 CFLAGS="$tmp_CFLAGS"
9429 CPPFLAGS="$tmp_CPPFLAGS"
9431 case "${window_system}" in
9432 x11 )
9433 HAVE_X_WINDOWS=yes
9434 HAVE_X11=yes
9435 case "${with_x_toolkit}" in
9436 athena | lucid ) USE_X_TOOLKIT=LUCID ;;
9437 motif ) USE_X_TOOLKIT=MOTIF ;;
9438 gtk ) with_gtk=yes
9439 USE_X_TOOLKIT=none ;;
9440 no ) USE_X_TOOLKIT=none ;;
9441 * ) USE_X_TOOLKIT=maybe ;;
9442 esac
9444 nextstep | none )
9445 HAVE_X_WINDOWS=no
9446 HAVE_X11=no
9447 USE_X_TOOLKIT=none
9449 esac
9451 if test "$window_system" = none && test "X$with_x" != "Xno"; then
9452 # Extract the first word of "X", so it can be a program name with args.
9453 set dummy X; ac_word=$2
9454 { echo "$as_me:$LINENO: checking for $ac_word" >&5
9455 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
9456 if test "${ac_cv_prog_HAVE_XSERVER+set}" = set; then
9457 echo $ECHO_N "(cached) $ECHO_C" >&6
9458 else
9459 if test -n "$HAVE_XSERVER"; then
9460 ac_cv_prog_HAVE_XSERVER="$HAVE_XSERVER" # Let the user override the test.
9461 else
9462 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9463 for as_dir in $PATH
9465 IFS=$as_save_IFS
9466 test -z "$as_dir" && as_dir=.
9467 for ac_exec_ext in '' $ac_executable_extensions; do
9468 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9469 ac_cv_prog_HAVE_XSERVER="true"
9470 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
9471 break 2
9473 done
9474 done
9475 IFS=$as_save_IFS
9477 test -z "$ac_cv_prog_HAVE_XSERVER" && ac_cv_prog_HAVE_XSERVER="false"
9480 HAVE_XSERVER=$ac_cv_prog_HAVE_XSERVER
9481 if test -n "$HAVE_XSERVER"; then
9482 { echo "$as_me:$LINENO: result: $HAVE_XSERVER" >&5
9483 echo "${ECHO_T}$HAVE_XSERVER" >&6; }
9484 else
9485 { echo "$as_me:$LINENO: result: no" >&5
9486 echo "${ECHO_T}no" >&6; }
9490 if test "$HAVE_XSERVER" = true ||
9491 test -n "$DISPLAY" ||
9492 test "`echo /usr/lib/libX11.*`" != "/usr/lib/libX11.*"; then
9493 { { echo "$as_me:$LINENO: error: You seem to be running X, but no X development libraries
9494 were found. You should install the relevant development files for X
9495 and for the toolkit you want, such as Gtk+, Lesstif or Motif. Also make
9496 sure you have development files for image handling, i.e.
9497 tiff, gif, jpeg, png and xpm.
9498 If you are sure you want Emacs compiled without X window support, pass
9499 --without-x
9500 to configure." >&5
9501 echo "$as_me: error: You seem to be running X, but no X development libraries
9502 were found. You should install the relevant development files for X
9503 and for the toolkit you want, such as Gtk+, Lesstif or Motif. Also make
9504 sure you have development files for image handling, i.e.
9505 tiff, gif, jpeg, png and xpm.
9506 If you are sure you want Emacs compiled without X window support, pass
9507 --without-x
9508 to configure." >&2;}
9509 { (exit 1); exit 1; }; }
9513 ### If we're using X11, we should use the X menu package.
9514 HAVE_MENUS=no
9515 case ${HAVE_X11} in
9516 yes ) HAVE_MENUS=yes ;;
9517 esac
9519 # Do the opsystem or machine files prohibit the use of the GNU malloc?
9520 # Assume not, until told otherwise.
9521 GNU_MALLOC=yes
9522 doug_lea_malloc=yes
9523 { echo "$as_me:$LINENO: checking for malloc_get_state" >&5
9524 echo $ECHO_N "checking for malloc_get_state... $ECHO_C" >&6; }
9525 if test "${ac_cv_func_malloc_get_state+set}" = set; then
9526 echo $ECHO_N "(cached) $ECHO_C" >&6
9527 else
9528 cat >conftest.$ac_ext <<_ACEOF
9529 /* confdefs.h. */
9530 _ACEOF
9531 cat confdefs.h >>conftest.$ac_ext
9532 cat >>conftest.$ac_ext <<_ACEOF
9533 /* end confdefs.h. */
9534 /* Define malloc_get_state to an innocuous variant, in case <limits.h> declares malloc_get_state.
9535 For example, HP-UX 11i <limits.h> declares gettimeofday. */
9536 #define malloc_get_state innocuous_malloc_get_state
9538 /* System header to define __stub macros and hopefully few prototypes,
9539 which can conflict with char malloc_get_state (); below.
9540 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
9541 <limits.h> exists even on freestanding compilers. */
9543 #ifdef __STDC__
9544 # include <limits.h>
9545 #else
9546 # include <assert.h>
9547 #endif
9549 #undef malloc_get_state
9551 /* Override any GCC internal prototype to avoid an error.
9552 Use char because int might match the return type of a GCC
9553 builtin and then its argument prototype would still apply. */
9554 #ifdef __cplusplus
9555 extern "C"
9556 #endif
9557 char malloc_get_state ();
9558 /* The GNU C library defines this for functions which it implements
9559 to always fail with ENOSYS. Some functions are actually named
9560 something starting with __ and the normal name is an alias. */
9561 #if defined __stub_malloc_get_state || defined __stub___malloc_get_state
9562 choke me
9563 #endif
9566 main ()
9568 return malloc_get_state ();
9570 return 0;
9572 _ACEOF
9573 rm -f conftest.$ac_objext conftest$ac_exeext
9574 if { (ac_try="$ac_link"
9575 case "(($ac_try" in
9576 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9577 *) ac_try_echo=$ac_try;;
9578 esac
9579 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9580 (eval "$ac_link") 2>conftest.er1
9581 ac_status=$?
9582 grep -v '^ *+' conftest.er1 >conftest.err
9583 rm -f conftest.er1
9584 cat conftest.err >&5
9585 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9586 (exit $ac_status); } && {
9587 test -z "$ac_c_werror_flag" ||
9588 test ! -s conftest.err
9589 } && test -s conftest$ac_exeext &&
9590 $as_test_x conftest$ac_exeext; then
9591 ac_cv_func_malloc_get_state=yes
9592 else
9593 echo "$as_me: failed program was:" >&5
9594 sed 's/^/| /' conftest.$ac_ext >&5
9596 ac_cv_func_malloc_get_state=no
9599 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
9600 conftest$ac_exeext conftest.$ac_ext
9602 { echo "$as_me:$LINENO: result: $ac_cv_func_malloc_get_state" >&5
9603 echo "${ECHO_T}$ac_cv_func_malloc_get_state" >&6; }
9604 if test $ac_cv_func_malloc_get_state = yes; then
9606 else
9607 doug_lea_malloc=no
9610 { echo "$as_me:$LINENO: checking for malloc_set_state" >&5
9611 echo $ECHO_N "checking for malloc_set_state... $ECHO_C" >&6; }
9612 if test "${ac_cv_func_malloc_set_state+set}" = set; then
9613 echo $ECHO_N "(cached) $ECHO_C" >&6
9614 else
9615 cat >conftest.$ac_ext <<_ACEOF
9616 /* confdefs.h. */
9617 _ACEOF
9618 cat confdefs.h >>conftest.$ac_ext
9619 cat >>conftest.$ac_ext <<_ACEOF
9620 /* end confdefs.h. */
9621 /* Define malloc_set_state to an innocuous variant, in case <limits.h> declares malloc_set_state.
9622 For example, HP-UX 11i <limits.h> declares gettimeofday. */
9623 #define malloc_set_state innocuous_malloc_set_state
9625 /* System header to define __stub macros and hopefully few prototypes,
9626 which can conflict with char malloc_set_state (); below.
9627 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
9628 <limits.h> exists even on freestanding compilers. */
9630 #ifdef __STDC__
9631 # include <limits.h>
9632 #else
9633 # include <assert.h>
9634 #endif
9636 #undef malloc_set_state
9638 /* Override any GCC internal prototype to avoid an error.
9639 Use char because int might match the return type of a GCC
9640 builtin and then its argument prototype would still apply. */
9641 #ifdef __cplusplus
9642 extern "C"
9643 #endif
9644 char malloc_set_state ();
9645 /* The GNU C library defines this for functions which it implements
9646 to always fail with ENOSYS. Some functions are actually named
9647 something starting with __ and the normal name is an alias. */
9648 #if defined __stub_malloc_set_state || defined __stub___malloc_set_state
9649 choke me
9650 #endif
9653 main ()
9655 return malloc_set_state ();
9657 return 0;
9659 _ACEOF
9660 rm -f conftest.$ac_objext conftest$ac_exeext
9661 if { (ac_try="$ac_link"
9662 case "(($ac_try" in
9663 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9664 *) ac_try_echo=$ac_try;;
9665 esac
9666 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9667 (eval "$ac_link") 2>conftest.er1
9668 ac_status=$?
9669 grep -v '^ *+' conftest.er1 >conftest.err
9670 rm -f conftest.er1
9671 cat conftest.err >&5
9672 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9673 (exit $ac_status); } && {
9674 test -z "$ac_c_werror_flag" ||
9675 test ! -s conftest.err
9676 } && test -s conftest$ac_exeext &&
9677 $as_test_x conftest$ac_exeext; then
9678 ac_cv_func_malloc_set_state=yes
9679 else
9680 echo "$as_me: failed program was:" >&5
9681 sed 's/^/| /' conftest.$ac_ext >&5
9683 ac_cv_func_malloc_set_state=no
9686 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
9687 conftest$ac_exeext conftest.$ac_ext
9689 { echo "$as_me:$LINENO: result: $ac_cv_func_malloc_set_state" >&5
9690 echo "${ECHO_T}$ac_cv_func_malloc_set_state" >&6; }
9691 if test $ac_cv_func_malloc_set_state = yes; then
9693 else
9694 doug_lea_malloc=no
9697 { echo "$as_me:$LINENO: checking whether __after_morecore_hook exists" >&5
9698 echo $ECHO_N "checking whether __after_morecore_hook exists... $ECHO_C" >&6; }
9699 if test "${emacs_cv_var___after_morecore_hook+set}" = set; then
9700 echo $ECHO_N "(cached) $ECHO_C" >&6
9701 else
9702 cat >conftest.$ac_ext <<_ACEOF
9703 /* confdefs.h. */
9704 _ACEOF
9705 cat confdefs.h >>conftest.$ac_ext
9706 cat >>conftest.$ac_ext <<_ACEOF
9707 /* end confdefs.h. */
9708 extern void (* __after_morecore_hook)();
9710 main ()
9712 __after_morecore_hook = 0
9714 return 0;
9716 _ACEOF
9717 rm -f conftest.$ac_objext conftest$ac_exeext
9718 if { (ac_try="$ac_link"
9719 case "(($ac_try" in
9720 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9721 *) ac_try_echo=$ac_try;;
9722 esac
9723 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9724 (eval "$ac_link") 2>conftest.er1
9725 ac_status=$?
9726 grep -v '^ *+' conftest.er1 >conftest.err
9727 rm -f conftest.er1
9728 cat conftest.err >&5
9729 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9730 (exit $ac_status); } && {
9731 test -z "$ac_c_werror_flag" ||
9732 test ! -s conftest.err
9733 } && test -s conftest$ac_exeext &&
9734 $as_test_x conftest$ac_exeext; then
9735 emacs_cv_var___after_morecore_hook=yes
9736 else
9737 echo "$as_me: failed program was:" >&5
9738 sed 's/^/| /' conftest.$ac_ext >&5
9740 emacs_cv_var___after_morecore_hook=no
9743 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
9744 conftest$ac_exeext conftest.$ac_ext
9746 { echo "$as_me:$LINENO: result: $emacs_cv_var___after_morecore_hook" >&5
9747 echo "${ECHO_T}$emacs_cv_var___after_morecore_hook" >&6; }
9748 if test $emacs_cv_var___after_morecore_hook = no; then
9749 doug_lea_malloc=no
9751 if test "${system_malloc}" = "yes"; then
9752 GNU_MALLOC=no
9753 GNU_MALLOC_reason="
9754 (The GNU allocators don't work with this system configuration.)"
9756 if test "$doug_lea_malloc" = "yes" ; then
9757 if test "$GNU_MALLOC" = yes ; then
9758 GNU_MALLOC_reason="
9759 (Using Doug Lea's new malloc from the GNU C Library.)"
9762 cat >>confdefs.h <<\_ACEOF
9763 #define DOUG_LEA_MALLOC 1
9764 _ACEOF
9768 if test x"${REL_ALLOC}" = x; then
9769 REL_ALLOC=${GNU_MALLOC}
9775 for ac_header in stdlib.h unistd.h
9777 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
9778 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
9779 { echo "$as_me:$LINENO: checking for $ac_header" >&5
9780 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
9781 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
9782 echo $ECHO_N "(cached) $ECHO_C" >&6
9784 ac_res=`eval echo '${'$as_ac_Header'}'`
9785 { echo "$as_me:$LINENO: result: $ac_res" >&5
9786 echo "${ECHO_T}$ac_res" >&6; }
9787 else
9788 # Is the header compilable?
9789 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
9790 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
9791 cat >conftest.$ac_ext <<_ACEOF
9792 /* confdefs.h. */
9793 _ACEOF
9794 cat confdefs.h >>conftest.$ac_ext
9795 cat >>conftest.$ac_ext <<_ACEOF
9796 /* end confdefs.h. */
9797 $ac_includes_default
9798 #include <$ac_header>
9799 _ACEOF
9800 rm -f conftest.$ac_objext
9801 if { (ac_try="$ac_compile"
9802 case "(($ac_try" in
9803 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9804 *) ac_try_echo=$ac_try;;
9805 esac
9806 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9807 (eval "$ac_compile") 2>conftest.er1
9808 ac_status=$?
9809 grep -v '^ *+' conftest.er1 >conftest.err
9810 rm -f conftest.er1
9811 cat conftest.err >&5
9812 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9813 (exit $ac_status); } && {
9814 test -z "$ac_c_werror_flag" ||
9815 test ! -s conftest.err
9816 } && test -s conftest.$ac_objext; then
9817 ac_header_compiler=yes
9818 else
9819 echo "$as_me: failed program was:" >&5
9820 sed 's/^/| /' conftest.$ac_ext >&5
9822 ac_header_compiler=no
9825 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9826 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
9827 echo "${ECHO_T}$ac_header_compiler" >&6; }
9829 # Is the header present?
9830 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
9831 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
9832 cat >conftest.$ac_ext <<_ACEOF
9833 /* confdefs.h. */
9834 _ACEOF
9835 cat confdefs.h >>conftest.$ac_ext
9836 cat >>conftest.$ac_ext <<_ACEOF
9837 /* end confdefs.h. */
9838 #include <$ac_header>
9839 _ACEOF
9840 if { (ac_try="$ac_cpp conftest.$ac_ext"
9841 case "(($ac_try" in
9842 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9843 *) ac_try_echo=$ac_try;;
9844 esac
9845 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9846 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
9847 ac_status=$?
9848 grep -v '^ *+' conftest.er1 >conftest.err
9849 rm -f conftest.er1
9850 cat conftest.err >&5
9851 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9852 (exit $ac_status); } >/dev/null && {
9853 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
9854 test ! -s conftest.err
9855 }; then
9856 ac_header_preproc=yes
9857 else
9858 echo "$as_me: failed program was:" >&5
9859 sed 's/^/| /' conftest.$ac_ext >&5
9861 ac_header_preproc=no
9864 rm -f conftest.err conftest.$ac_ext
9865 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
9866 echo "${ECHO_T}$ac_header_preproc" >&6; }
9868 # So? What about this header?
9869 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
9870 yes:no: )
9871 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
9872 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
9873 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
9874 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
9875 ac_header_preproc=yes
9877 no:yes:* )
9878 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
9879 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
9880 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
9881 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
9882 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
9883 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
9884 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
9885 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
9886 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
9887 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
9888 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
9889 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
9892 esac
9893 { echo "$as_me:$LINENO: checking for $ac_header" >&5
9894 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
9895 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
9896 echo $ECHO_N "(cached) $ECHO_C" >&6
9897 else
9898 eval "$as_ac_Header=\$ac_header_preproc"
9900 ac_res=`eval echo '${'$as_ac_Header'}'`
9901 { echo "$as_me:$LINENO: result: $ac_res" >&5
9902 echo "${ECHO_T}$ac_res" >&6; }
9905 if test `eval echo '${'$as_ac_Header'}'` = yes; then
9906 cat >>confdefs.h <<_ACEOF
9907 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
9908 _ACEOF
9912 done
9915 for ac_func in getpagesize
9917 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
9918 { echo "$as_me:$LINENO: checking for $ac_func" >&5
9919 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
9920 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
9921 echo $ECHO_N "(cached) $ECHO_C" >&6
9922 else
9923 cat >conftest.$ac_ext <<_ACEOF
9924 /* confdefs.h. */
9925 _ACEOF
9926 cat confdefs.h >>conftest.$ac_ext
9927 cat >>conftest.$ac_ext <<_ACEOF
9928 /* end confdefs.h. */
9929 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
9930 For example, HP-UX 11i <limits.h> declares gettimeofday. */
9931 #define $ac_func innocuous_$ac_func
9933 /* System header to define __stub macros and hopefully few prototypes,
9934 which can conflict with char $ac_func (); below.
9935 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
9936 <limits.h> exists even on freestanding compilers. */
9938 #ifdef __STDC__
9939 # include <limits.h>
9940 #else
9941 # include <assert.h>
9942 #endif
9944 #undef $ac_func
9946 /* Override any GCC internal prototype to avoid an error.
9947 Use char because int might match the return type of a GCC
9948 builtin and then its argument prototype would still apply. */
9949 #ifdef __cplusplus
9950 extern "C"
9951 #endif
9952 char $ac_func ();
9953 /* The GNU C library defines this for functions which it implements
9954 to always fail with ENOSYS. Some functions are actually named
9955 something starting with __ and the normal name is an alias. */
9956 #if defined __stub_$ac_func || defined __stub___$ac_func
9957 choke me
9958 #endif
9961 main ()
9963 return $ac_func ();
9965 return 0;
9967 _ACEOF
9968 rm -f conftest.$ac_objext conftest$ac_exeext
9969 if { (ac_try="$ac_link"
9970 case "(($ac_try" in
9971 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9972 *) ac_try_echo=$ac_try;;
9973 esac
9974 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9975 (eval "$ac_link") 2>conftest.er1
9976 ac_status=$?
9977 grep -v '^ *+' conftest.er1 >conftest.err
9978 rm -f conftest.er1
9979 cat conftest.err >&5
9980 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9981 (exit $ac_status); } && {
9982 test -z "$ac_c_werror_flag" ||
9983 test ! -s conftest.err
9984 } && test -s conftest$ac_exeext &&
9985 $as_test_x conftest$ac_exeext; then
9986 eval "$as_ac_var=yes"
9987 else
9988 echo "$as_me: failed program was:" >&5
9989 sed 's/^/| /' conftest.$ac_ext >&5
9991 eval "$as_ac_var=no"
9994 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
9995 conftest$ac_exeext conftest.$ac_ext
9997 ac_res=`eval echo '${'$as_ac_var'}'`
9998 { echo "$as_me:$LINENO: result: $ac_res" >&5
9999 echo "${ECHO_T}$ac_res" >&6; }
10000 if test `eval echo '${'$as_ac_var'}'` = yes; then
10001 cat >>confdefs.h <<_ACEOF
10002 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
10003 _ACEOF
10006 done
10008 { echo "$as_me:$LINENO: checking for working mmap" >&5
10009 echo $ECHO_N "checking for working mmap... $ECHO_C" >&6; }
10010 if test "${ac_cv_func_mmap_fixed_mapped+set}" = set; then
10011 echo $ECHO_N "(cached) $ECHO_C" >&6
10012 else
10013 if test "$cross_compiling" = yes; then
10014 ac_cv_func_mmap_fixed_mapped=no
10015 else
10016 cat >conftest.$ac_ext <<_ACEOF
10017 /* confdefs.h. */
10018 _ACEOF
10019 cat confdefs.h >>conftest.$ac_ext
10020 cat >>conftest.$ac_ext <<_ACEOF
10021 /* end confdefs.h. */
10022 $ac_includes_default
10023 /* malloc might have been renamed as rpl_malloc. */
10024 #undef malloc
10026 /* Thanks to Mike Haertel and Jim Avera for this test.
10027 Here is a matrix of mmap possibilities:
10028 mmap private not fixed
10029 mmap private fixed at somewhere currently unmapped
10030 mmap private fixed at somewhere already mapped
10031 mmap shared not fixed
10032 mmap shared fixed at somewhere currently unmapped
10033 mmap shared fixed at somewhere already mapped
10034 For private mappings, we should verify that changes cannot be read()
10035 back from the file, nor mmap's back from the file at a different
10036 address. (There have been systems where private was not correctly
10037 implemented like the infamous i386 svr4.0, and systems where the
10038 VM page cache was not coherent with the file system buffer cache
10039 like early versions of FreeBSD and possibly contemporary NetBSD.)
10040 For shared mappings, we should conversely verify that changes get
10041 propagated back to all the places they're supposed to be.
10043 Grep wants private fixed already mapped.
10044 The main things grep needs to know about mmap are:
10045 * does it exist and is it safe to write into the mmap'd area
10046 * how to use it (BSD variants) */
10048 #include <fcntl.h>
10049 #include <sys/mman.h>
10051 #if !defined STDC_HEADERS && !defined HAVE_STDLIB_H
10052 char *malloc ();
10053 #endif
10055 /* This mess was copied from the GNU getpagesize.h. */
10056 #ifndef HAVE_GETPAGESIZE
10057 /* Assume that all systems that can run configure have sys/param.h. */
10058 # ifndef HAVE_SYS_PARAM_H
10059 # define HAVE_SYS_PARAM_H 1
10060 # endif
10062 # ifdef _SC_PAGESIZE
10063 # define getpagesize() sysconf(_SC_PAGESIZE)
10064 # else /* no _SC_PAGESIZE */
10065 # ifdef HAVE_SYS_PARAM_H
10066 # include <sys/param.h>
10067 # ifdef EXEC_PAGESIZE
10068 # define getpagesize() EXEC_PAGESIZE
10069 # else /* no EXEC_PAGESIZE */
10070 # ifdef NBPG
10071 # define getpagesize() NBPG * CLSIZE
10072 # ifndef CLSIZE
10073 # define CLSIZE 1
10074 # endif /* no CLSIZE */
10075 # else /* no NBPG */
10076 # ifdef NBPC
10077 # define getpagesize() NBPC
10078 # else /* no NBPC */
10079 # ifdef PAGESIZE
10080 # define getpagesize() PAGESIZE
10081 # endif /* PAGESIZE */
10082 # endif /* no NBPC */
10083 # endif /* no NBPG */
10084 # endif /* no EXEC_PAGESIZE */
10085 # else /* no HAVE_SYS_PARAM_H */
10086 # define getpagesize() 8192 /* punt totally */
10087 # endif /* no HAVE_SYS_PARAM_H */
10088 # endif /* no _SC_PAGESIZE */
10090 #endif /* no HAVE_GETPAGESIZE */
10093 main ()
10095 char *data, *data2, *data3;
10096 int i, pagesize;
10097 int fd;
10099 pagesize = getpagesize ();
10101 /* First, make a file with some known garbage in it. */
10102 data = (char *) malloc (pagesize);
10103 if (!data)
10104 return 1;
10105 for (i = 0; i < pagesize; ++i)
10106 *(data + i) = rand ();
10107 umask (0);
10108 fd = creat ("conftest.mmap", 0600);
10109 if (fd < 0)
10110 return 1;
10111 if (write (fd, data, pagesize) != pagesize)
10112 return 1;
10113 close (fd);
10115 /* Next, try to mmap the file at a fixed address which already has
10116 something else allocated at it. If we can, also make sure that
10117 we see the same garbage. */
10118 fd = open ("conftest.mmap", O_RDWR);
10119 if (fd < 0)
10120 return 1;
10121 data2 = (char *) malloc (2 * pagesize);
10122 if (!data2)
10123 return 1;
10124 data2 += (pagesize - ((long int) data2 & (pagesize - 1))) & (pagesize - 1);
10125 if (data2 != mmap (data2, pagesize, PROT_READ | PROT_WRITE,
10126 MAP_PRIVATE | MAP_FIXED, fd, 0L))
10127 return 1;
10128 for (i = 0; i < pagesize; ++i)
10129 if (*(data + i) != *(data2 + i))
10130 return 1;
10132 /* Finally, make sure that changes to the mapped area do not
10133 percolate back to the file as seen by read(). (This is a bug on
10134 some variants of i386 svr4.0.) */
10135 for (i = 0; i < pagesize; ++i)
10136 *(data2 + i) = *(data2 + i) + 1;
10137 data3 = (char *) malloc (pagesize);
10138 if (!data3)
10139 return 1;
10140 if (read (fd, data3, pagesize) != pagesize)
10141 return 1;
10142 for (i = 0; i < pagesize; ++i)
10143 if (*(data + i) != *(data3 + i))
10144 return 1;
10145 close (fd);
10146 return 0;
10148 _ACEOF
10149 rm -f conftest$ac_exeext
10150 if { (ac_try="$ac_link"
10151 case "(($ac_try" in
10152 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10153 *) ac_try_echo=$ac_try;;
10154 esac
10155 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10156 (eval "$ac_link") 2>&5
10157 ac_status=$?
10158 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10159 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
10160 { (case "(($ac_try" in
10161 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10162 *) ac_try_echo=$ac_try;;
10163 esac
10164 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10165 (eval "$ac_try") 2>&5
10166 ac_status=$?
10167 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10168 (exit $ac_status); }; }; then
10169 ac_cv_func_mmap_fixed_mapped=yes
10170 else
10171 echo "$as_me: program exited with status $ac_status" >&5
10172 echo "$as_me: failed program was:" >&5
10173 sed 's/^/| /' conftest.$ac_ext >&5
10175 ( exit $ac_status )
10176 ac_cv_func_mmap_fixed_mapped=no
10178 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
10183 { echo "$as_me:$LINENO: result: $ac_cv_func_mmap_fixed_mapped" >&5
10184 echo "${ECHO_T}$ac_cv_func_mmap_fixed_mapped" >&6; }
10185 if test $ac_cv_func_mmap_fixed_mapped = yes; then
10187 cat >>confdefs.h <<\_ACEOF
10188 #define HAVE_MMAP 1
10189 _ACEOF
10192 rm -f conftest.mmap
10194 if test $use_mmap_for_buffers = yes; then
10195 REL_ALLOC=no
10198 LIBS="$libsrc_libs $LIBS"
10201 { echo "$as_me:$LINENO: checking for dnet_ntoa in -ldnet" >&5
10202 echo $ECHO_N "checking for dnet_ntoa in -ldnet... $ECHO_C" >&6; }
10203 if test "${ac_cv_lib_dnet_dnet_ntoa+set}" = set; then
10204 echo $ECHO_N "(cached) $ECHO_C" >&6
10205 else
10206 ac_check_lib_save_LIBS=$LIBS
10207 LIBS="-ldnet $LIBS"
10208 cat >conftest.$ac_ext <<_ACEOF
10209 /* confdefs.h. */
10210 _ACEOF
10211 cat confdefs.h >>conftest.$ac_ext
10212 cat >>conftest.$ac_ext <<_ACEOF
10213 /* end confdefs.h. */
10215 /* Override any GCC internal prototype to avoid an error.
10216 Use char because int might match the return type of a GCC
10217 builtin and then its argument prototype would still apply. */
10218 #ifdef __cplusplus
10219 extern "C"
10220 #endif
10221 char dnet_ntoa ();
10223 main ()
10225 return dnet_ntoa ();
10227 return 0;
10229 _ACEOF
10230 rm -f conftest.$ac_objext conftest$ac_exeext
10231 if { (ac_try="$ac_link"
10232 case "(($ac_try" in
10233 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10234 *) ac_try_echo=$ac_try;;
10235 esac
10236 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10237 (eval "$ac_link") 2>conftest.er1
10238 ac_status=$?
10239 grep -v '^ *+' conftest.er1 >conftest.err
10240 rm -f conftest.er1
10241 cat conftest.err >&5
10242 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10243 (exit $ac_status); } && {
10244 test -z "$ac_c_werror_flag" ||
10245 test ! -s conftest.err
10246 } && test -s conftest$ac_exeext &&
10247 $as_test_x conftest$ac_exeext; then
10248 ac_cv_lib_dnet_dnet_ntoa=yes
10249 else
10250 echo "$as_me: failed program was:" >&5
10251 sed 's/^/| /' conftest.$ac_ext >&5
10253 ac_cv_lib_dnet_dnet_ntoa=no
10256 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
10257 conftest$ac_exeext conftest.$ac_ext
10258 LIBS=$ac_check_lib_save_LIBS
10260 { echo "$as_me:$LINENO: result: $ac_cv_lib_dnet_dnet_ntoa" >&5
10261 echo "${ECHO_T}$ac_cv_lib_dnet_dnet_ntoa" >&6; }
10262 if test $ac_cv_lib_dnet_dnet_ntoa = yes; then
10263 cat >>confdefs.h <<_ACEOF
10264 #define HAVE_LIBDNET 1
10265 _ACEOF
10267 LIBS="-ldnet $LIBS"
10272 { echo "$as_me:$LINENO: checking for main in -lXbsd" >&5
10273 echo $ECHO_N "checking for main in -lXbsd... $ECHO_C" >&6; }
10274 if test "${ac_cv_lib_Xbsd_main+set}" = set; then
10275 echo $ECHO_N "(cached) $ECHO_C" >&6
10276 else
10277 ac_check_lib_save_LIBS=$LIBS
10278 LIBS="-lXbsd $LIBS"
10279 cat >conftest.$ac_ext <<_ACEOF
10280 /* confdefs.h. */
10281 _ACEOF
10282 cat confdefs.h >>conftest.$ac_ext
10283 cat >>conftest.$ac_ext <<_ACEOF
10284 /* end confdefs.h. */
10288 main ()
10290 return main ();
10292 return 0;
10294 _ACEOF
10295 rm -f conftest.$ac_objext conftest$ac_exeext
10296 if { (ac_try="$ac_link"
10297 case "(($ac_try" in
10298 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10299 *) ac_try_echo=$ac_try;;
10300 esac
10301 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10302 (eval "$ac_link") 2>conftest.er1
10303 ac_status=$?
10304 grep -v '^ *+' conftest.er1 >conftest.err
10305 rm -f conftest.er1
10306 cat conftest.err >&5
10307 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10308 (exit $ac_status); } && {
10309 test -z "$ac_c_werror_flag" ||
10310 test ! -s conftest.err
10311 } && test -s conftest$ac_exeext &&
10312 $as_test_x conftest$ac_exeext; then
10313 ac_cv_lib_Xbsd_main=yes
10314 else
10315 echo "$as_me: failed program was:" >&5
10316 sed 's/^/| /' conftest.$ac_ext >&5
10318 ac_cv_lib_Xbsd_main=no
10321 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
10322 conftest$ac_exeext conftest.$ac_ext
10323 LIBS=$ac_check_lib_save_LIBS
10325 { echo "$as_me:$LINENO: result: $ac_cv_lib_Xbsd_main" >&5
10326 echo "${ECHO_T}$ac_cv_lib_Xbsd_main" >&6; }
10327 if test $ac_cv_lib_Xbsd_main = yes; then
10328 LD_SWITCH_X_SITE="$LD_SWITCH_X_SITE -lXbsd"
10333 { echo "$as_me:$LINENO: checking for cma_open in -lpthreads" >&5
10334 echo $ECHO_N "checking for cma_open in -lpthreads... $ECHO_C" >&6; }
10335 if test "${ac_cv_lib_pthreads_cma_open+set}" = set; then
10336 echo $ECHO_N "(cached) $ECHO_C" >&6
10337 else
10338 ac_check_lib_save_LIBS=$LIBS
10339 LIBS="-lpthreads $LIBS"
10340 cat >conftest.$ac_ext <<_ACEOF
10341 /* confdefs.h. */
10342 _ACEOF
10343 cat confdefs.h >>conftest.$ac_ext
10344 cat >>conftest.$ac_ext <<_ACEOF
10345 /* end confdefs.h. */
10347 /* Override any GCC internal prototype to avoid an error.
10348 Use char because int might match the return type of a GCC
10349 builtin and then its argument prototype would still apply. */
10350 #ifdef __cplusplus
10351 extern "C"
10352 #endif
10353 char cma_open ();
10355 main ()
10357 return cma_open ();
10359 return 0;
10361 _ACEOF
10362 rm -f conftest.$ac_objext conftest$ac_exeext
10363 if { (ac_try="$ac_link"
10364 case "(($ac_try" in
10365 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10366 *) ac_try_echo=$ac_try;;
10367 esac
10368 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10369 (eval "$ac_link") 2>conftest.er1
10370 ac_status=$?
10371 grep -v '^ *+' conftest.er1 >conftest.err
10372 rm -f conftest.er1
10373 cat conftest.err >&5
10374 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10375 (exit $ac_status); } && {
10376 test -z "$ac_c_werror_flag" ||
10377 test ! -s conftest.err
10378 } && test -s conftest$ac_exeext &&
10379 $as_test_x conftest$ac_exeext; then
10380 ac_cv_lib_pthreads_cma_open=yes
10381 else
10382 echo "$as_me: failed program was:" >&5
10383 sed 's/^/| /' conftest.$ac_ext >&5
10385 ac_cv_lib_pthreads_cma_open=no
10388 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
10389 conftest$ac_exeext conftest.$ac_ext
10390 LIBS=$ac_check_lib_save_LIBS
10392 { echo "$as_me:$LINENO: result: $ac_cv_lib_pthreads_cma_open" >&5
10393 echo "${ECHO_T}$ac_cv_lib_pthreads_cma_open" >&6; }
10394 if test $ac_cv_lib_pthreads_cma_open = yes; then
10395 cat >>confdefs.h <<_ACEOF
10396 #define HAVE_LIBPTHREADS 1
10397 _ACEOF
10399 LIBS="-lpthreads $LIBS"
10405 case ${host_os} in
10406 aix*)
10407 { echo "$as_me:$LINENO: checking for -bbigtoc option" >&5
10408 echo $ECHO_N "checking for -bbigtoc option... $ECHO_C" >&6; }
10409 if test "${gdb_cv_bigtoc+set}" = set; then
10410 echo $ECHO_N "(cached) $ECHO_C" >&6
10411 else
10413 case $GCC in
10414 yes) gdb_cv_bigtoc=-Wl,-bbigtoc ;;
10415 *) gdb_cv_bigtoc=-bbigtoc ;;
10416 esac
10418 LDFLAGS=$LDFLAGS\ $gdb_cv_bigtoc
10419 cat >conftest.$ac_ext <<_ACEOF
10420 /* confdefs.h. */
10421 _ACEOF
10422 cat confdefs.h >>conftest.$ac_ext
10423 cat >>conftest.$ac_ext <<_ACEOF
10424 /* end confdefs.h. */
10427 main ()
10429 int i;
10431 return 0;
10433 _ACEOF
10434 rm -f conftest.$ac_objext conftest$ac_exeext
10435 if { (ac_try="$ac_link"
10436 case "(($ac_try" in
10437 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10438 *) ac_try_echo=$ac_try;;
10439 esac
10440 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10441 (eval "$ac_link") 2>conftest.er1
10442 ac_status=$?
10443 grep -v '^ *+' conftest.er1 >conftest.err
10444 rm -f conftest.er1
10445 cat conftest.err >&5
10446 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10447 (exit $ac_status); } && {
10448 test -z "$ac_c_werror_flag" ||
10449 test ! -s conftest.err
10450 } && test -s conftest$ac_exeext &&
10451 $as_test_x conftest$ac_exeext; then
10453 else
10454 echo "$as_me: failed program was:" >&5
10455 sed 's/^/| /' conftest.$ac_ext >&5
10457 gdb_cv_bigtoc=
10460 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
10461 conftest$ac_exeext conftest.$ac_ext
10464 { echo "$as_me:$LINENO: result: $gdb_cv_bigtoc" >&5
10465 echo "${ECHO_T}$gdb_cv_bigtoc" >&6; }
10467 esac
10469 # Change CFLAGS and CPPFLAGS temporarily so that C_SWITCH_X_SITE gets
10470 # used for the tests that follow. We set them back to REAL_CFLAGS and
10471 # REAL_CPPFLAGS later on.
10473 REAL_CPPFLAGS="$CPPFLAGS"
10475 if test "${HAVE_X11}" = "yes"; then
10476 DEFS="$C_SWITCH_X_SITE $DEFS"
10477 LDFLAGS="$LDFLAGS $LD_SWITCH_X_SITE"
10478 LIBS="$LIBX $LIBS"
10479 CFLAGS="$C_SWITCH_X_SITE $CFLAGS"
10480 CPPFLAGS="$C_SWITCH_X_SITE $CPPFLAGS"
10482 # On Solaris, arrange for LD_RUN_PATH to point to the X libraries for tests.
10483 # This is handled by LD_SWITCH_X_SITE_AUX during the real build,
10484 # but it's more convenient here to set LD_RUN_PATH
10485 # since this also works on hosts that don't understand LD_SWITCH_X_SITE_AUX.
10486 if test "${x_libraries}" != NONE && test -n "${x_libraries}"; then
10487 LD_RUN_PATH=$x_libraries${LD_RUN_PATH+:}$LD_RUN_PATH
10488 export LD_RUN_PATH
10491 if test "${opsys}" = "gnu-linux"; then
10492 { echo "$as_me:$LINENO: checking whether X on GNU/Linux needs -b to link" >&5
10493 echo $ECHO_N "checking whether X on GNU/Linux needs -b to link... $ECHO_C" >&6; }
10494 cat >conftest.$ac_ext <<_ACEOF
10495 /* confdefs.h. */
10496 _ACEOF
10497 cat confdefs.h >>conftest.$ac_ext
10498 cat >>conftest.$ac_ext <<_ACEOF
10499 /* end confdefs.h. */
10502 main ()
10504 XOpenDisplay ("foo");
10506 return 0;
10508 _ACEOF
10509 rm -f conftest.$ac_objext conftest$ac_exeext
10510 if { (ac_try="$ac_link"
10511 case "(($ac_try" in
10512 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10513 *) ac_try_echo=$ac_try;;
10514 esac
10515 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10516 (eval "$ac_link") 2>conftest.er1
10517 ac_status=$?
10518 grep -v '^ *+' conftest.er1 >conftest.err
10519 rm -f conftest.er1
10520 cat conftest.err >&5
10521 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10522 (exit $ac_status); } && {
10523 test -z "$ac_c_werror_flag" ||
10524 test ! -s conftest.err
10525 } && test -s conftest$ac_exeext &&
10526 $as_test_x conftest$ac_exeext; then
10527 xlinux_first_failure=no
10528 else
10529 echo "$as_me: failed program was:" >&5
10530 sed 's/^/| /' conftest.$ac_ext >&5
10532 xlinux_first_failure=yes
10535 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
10536 conftest$ac_exeext conftest.$ac_ext
10537 if test "${xlinux_first_failure}" = "yes"; then
10538 OLD_LD_SWITCH_X_SITE="$LD_SWITCH_X_SITE"
10539 OLD_C_SWITCH_X_SITE="$C_SWITCH_X_SITE"
10540 OLD_CPPFLAGS="$CPPFLAGS"
10541 OLD_LIBS="$LIBS"
10542 LD_SWITCH_X_SITE="$LD_SWITCH_X_SITE -b i486-linuxaout"
10543 C_SWITCH_X_SITE="$C_SWITCH_X_SITE -b i486-linuxaout"
10544 CPPFLAGS="$CPPFLAGS -b i486-linuxaout"
10545 LIBS="$LIBS -b i486-linuxaout"
10546 cat >conftest.$ac_ext <<_ACEOF
10547 /* confdefs.h. */
10548 _ACEOF
10549 cat confdefs.h >>conftest.$ac_ext
10550 cat >>conftest.$ac_ext <<_ACEOF
10551 /* end confdefs.h. */
10554 main ()
10556 XOpenDisplay ("foo");
10558 return 0;
10560 _ACEOF
10561 rm -f conftest.$ac_objext conftest$ac_exeext
10562 if { (ac_try="$ac_link"
10563 case "(($ac_try" in
10564 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10565 *) ac_try_echo=$ac_try;;
10566 esac
10567 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10568 (eval "$ac_link") 2>conftest.er1
10569 ac_status=$?
10570 grep -v '^ *+' conftest.er1 >conftest.err
10571 rm -f conftest.er1
10572 cat conftest.err >&5
10573 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10574 (exit $ac_status); } && {
10575 test -z "$ac_c_werror_flag" ||
10576 test ! -s conftest.err
10577 } && test -s conftest$ac_exeext &&
10578 $as_test_x conftest$ac_exeext; then
10579 xlinux_second_failure=no
10580 else
10581 echo "$as_me: failed program was:" >&5
10582 sed 's/^/| /' conftest.$ac_ext >&5
10584 xlinux_second_failure=yes
10587 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
10588 conftest$ac_exeext conftest.$ac_ext
10589 if test "${xlinux_second_failure}" = "yes"; then
10590 # If we get the same failure with -b, there is no use adding -b.
10591 # So take it out. This plays safe.
10592 LD_SWITCH_X_SITE="$OLD_LD_SWITCH_X_SITE"
10593 C_SWITCH_X_SITE="$OLD_C_SWITCH_X_SITE"
10594 CPPFLAGS="$OLD_CPPFLAGS"
10595 LIBS="$OLD_LIBS"
10596 { echo "$as_me:$LINENO: result: no" >&5
10597 echo "${ECHO_T}no" >&6; }
10598 else
10599 { echo "$as_me:$LINENO: result: yes" >&5
10600 echo "${ECHO_T}yes" >&6; }
10602 else
10603 { echo "$as_me:$LINENO: result: no" >&5
10604 echo "${ECHO_T}no" >&6; }
10608 # Reportedly, some broken Solaris systems have XKBlib.h but are missing
10609 # header files included from there.
10610 { echo "$as_me:$LINENO: checking for Xkb" >&5
10611 echo $ECHO_N "checking for Xkb... $ECHO_C" >&6; }
10612 cat >conftest.$ac_ext <<_ACEOF
10613 /* confdefs.h. */
10614 _ACEOF
10615 cat confdefs.h >>conftest.$ac_ext
10616 cat >>conftest.$ac_ext <<_ACEOF
10617 /* end confdefs.h. */
10618 #include <X11/Xlib.h>
10619 #include <X11/XKBlib.h>
10621 main ()
10623 XkbDescPtr kb = XkbGetKeyboard (0, XkbAllComponentsMask, XkbUseCoreKbd);
10625 return 0;
10627 _ACEOF
10628 rm -f conftest.$ac_objext conftest$ac_exeext
10629 if { (ac_try="$ac_link"
10630 case "(($ac_try" in
10631 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10632 *) ac_try_echo=$ac_try;;
10633 esac
10634 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10635 (eval "$ac_link") 2>conftest.er1
10636 ac_status=$?
10637 grep -v '^ *+' conftest.er1 >conftest.err
10638 rm -f conftest.er1
10639 cat conftest.err >&5
10640 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10641 (exit $ac_status); } && {
10642 test -z "$ac_c_werror_flag" ||
10643 test ! -s conftest.err
10644 } && test -s conftest$ac_exeext &&
10645 $as_test_x conftest$ac_exeext; then
10646 emacs_xkb=yes
10647 else
10648 echo "$as_me: failed program was:" >&5
10649 sed 's/^/| /' conftest.$ac_ext >&5
10651 emacs_xkb=no
10654 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
10655 conftest$ac_exeext conftest.$ac_ext
10656 { echo "$as_me:$LINENO: result: $emacs_xkb" >&5
10657 echo "${ECHO_T}$emacs_xkb" >&6; }
10658 if test $emacs_xkb = yes; then
10660 cat >>confdefs.h <<\_ACEOF
10661 #define HAVE_XKBGETKEYBOARD 1
10662 _ACEOF
10670 for ac_func in XrmSetDatabase XScreenResourceString \
10671 XScreenNumberOfScreen XSetWMProtocols
10673 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
10674 { echo "$as_me:$LINENO: checking for $ac_func" >&5
10675 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
10676 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
10677 echo $ECHO_N "(cached) $ECHO_C" >&6
10678 else
10679 cat >conftest.$ac_ext <<_ACEOF
10680 /* confdefs.h. */
10681 _ACEOF
10682 cat confdefs.h >>conftest.$ac_ext
10683 cat >>conftest.$ac_ext <<_ACEOF
10684 /* end confdefs.h. */
10685 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
10686 For example, HP-UX 11i <limits.h> declares gettimeofday. */
10687 #define $ac_func innocuous_$ac_func
10689 /* System header to define __stub macros and hopefully few prototypes,
10690 which can conflict with char $ac_func (); below.
10691 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
10692 <limits.h> exists even on freestanding compilers. */
10694 #ifdef __STDC__
10695 # include <limits.h>
10696 #else
10697 # include <assert.h>
10698 #endif
10700 #undef $ac_func
10702 /* Override any GCC internal prototype to avoid an error.
10703 Use char because int might match the return type of a GCC
10704 builtin and then its argument prototype would still apply. */
10705 #ifdef __cplusplus
10706 extern "C"
10707 #endif
10708 char $ac_func ();
10709 /* The GNU C library defines this for functions which it implements
10710 to always fail with ENOSYS. Some functions are actually named
10711 something starting with __ and the normal name is an alias. */
10712 #if defined __stub_$ac_func || defined __stub___$ac_func
10713 choke me
10714 #endif
10717 main ()
10719 return $ac_func ();
10721 return 0;
10723 _ACEOF
10724 rm -f conftest.$ac_objext conftest$ac_exeext
10725 if { (ac_try="$ac_link"
10726 case "(($ac_try" in
10727 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10728 *) ac_try_echo=$ac_try;;
10729 esac
10730 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10731 (eval "$ac_link") 2>conftest.er1
10732 ac_status=$?
10733 grep -v '^ *+' conftest.er1 >conftest.err
10734 rm -f conftest.er1
10735 cat conftest.err >&5
10736 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10737 (exit $ac_status); } && {
10738 test -z "$ac_c_werror_flag" ||
10739 test ! -s conftest.err
10740 } && test -s conftest$ac_exeext &&
10741 $as_test_x conftest$ac_exeext; then
10742 eval "$as_ac_var=yes"
10743 else
10744 echo "$as_me: failed program was:" >&5
10745 sed 's/^/| /' conftest.$ac_ext >&5
10747 eval "$as_ac_var=no"
10750 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
10751 conftest$ac_exeext conftest.$ac_ext
10753 ac_res=`eval echo '${'$as_ac_var'}'`
10754 { echo "$as_me:$LINENO: result: $ac_res" >&5
10755 echo "${ECHO_T}$ac_res" >&6; }
10756 if test `eval echo '${'$as_ac_var'}'` = yes; then
10757 cat >>confdefs.h <<_ACEOF
10758 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
10759 _ACEOF
10762 done
10766 if test "${window_system}" = "x11"; then
10767 { echo "$as_me:$LINENO: checking X11 version 6" >&5
10768 echo $ECHO_N "checking X11 version 6... $ECHO_C" >&6; }
10769 if test "${emacs_cv_x11_version_6+set}" = set; then
10770 echo $ECHO_N "(cached) $ECHO_C" >&6
10771 else
10772 cat >conftest.$ac_ext <<_ACEOF
10773 /* confdefs.h. */
10774 _ACEOF
10775 cat confdefs.h >>conftest.$ac_ext
10776 cat >>conftest.$ac_ext <<_ACEOF
10777 /* end confdefs.h. */
10778 #include <X11/Xlib.h>
10780 main ()
10782 #if XlibSpecificationRelease < 6
10783 fail;
10784 #endif
10787 return 0;
10789 _ACEOF
10790 rm -f conftest.$ac_objext conftest$ac_exeext
10791 if { (ac_try="$ac_link"
10792 case "(($ac_try" in
10793 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10794 *) ac_try_echo=$ac_try;;
10795 esac
10796 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10797 (eval "$ac_link") 2>conftest.er1
10798 ac_status=$?
10799 grep -v '^ *+' conftest.er1 >conftest.err
10800 rm -f conftest.er1
10801 cat conftest.err >&5
10802 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10803 (exit $ac_status); } && {
10804 test -z "$ac_c_werror_flag" ||
10805 test ! -s conftest.err
10806 } && test -s conftest$ac_exeext &&
10807 $as_test_x conftest$ac_exeext; then
10808 emacs_cv_x11_version_6=yes
10809 else
10810 echo "$as_me: failed program was:" >&5
10811 sed 's/^/| /' conftest.$ac_ext >&5
10813 emacs_cv_x11_version_6=no
10816 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
10817 conftest$ac_exeext conftest.$ac_ext
10820 if test $emacs_cv_x11_version_6 = yes; then
10821 { echo "$as_me:$LINENO: result: 6 or newer" >&5
10822 echo "${ECHO_T}6 or newer" >&6; }
10824 cat >>confdefs.h <<\_ACEOF
10825 #define HAVE_X11R6 1
10826 _ACEOF
10828 else
10829 { echo "$as_me:$LINENO: result: before 6" >&5
10830 echo "${ECHO_T}before 6" >&6; }
10835 ### Use -lrsvg-2 if available, unless `--with-rsvg=no' is specified.
10836 HAVE_RSVG=no
10837 if test "${HAVE_X11}" = "yes"; then
10838 if test "${with_rsvg}" != "no"; then
10839 RSVG_REQUIRED=2.0.0
10840 RSVG_MODULE="librsvg-2.0 >= $RSVG_REQUIRED"
10843 succeeded=no
10845 # Extract the first word of "pkg-config", so it can be a program name with args.
10846 set dummy pkg-config; ac_word=$2
10847 { echo "$as_me:$LINENO: checking for $ac_word" >&5
10848 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
10849 if test "${ac_cv_path_PKG_CONFIG+set}" = set; then
10850 echo $ECHO_N "(cached) $ECHO_C" >&6
10851 else
10852 case $PKG_CONFIG in
10853 [\\/]* | ?:[\\/]*)
10854 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
10857 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10858 for as_dir in $PATH
10860 IFS=$as_save_IFS
10861 test -z "$as_dir" && as_dir=.
10862 for ac_exec_ext in '' $ac_executable_extensions; do
10863 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10864 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
10865 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
10866 break 2
10868 done
10869 done
10870 IFS=$as_save_IFS
10872 test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG="no"
10874 esac
10876 PKG_CONFIG=$ac_cv_path_PKG_CONFIG
10877 if test -n "$PKG_CONFIG"; then
10878 { echo "$as_me:$LINENO: result: $PKG_CONFIG" >&5
10879 echo "${ECHO_T}$PKG_CONFIG" >&6; }
10880 else
10881 { echo "$as_me:$LINENO: result: no" >&5
10882 echo "${ECHO_T}no" >&6; }
10887 if test "$PKG_CONFIG" = "no" ; then
10889 else
10890 PKG_CONFIG_MIN_VERSION=0.9.0
10891 if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
10892 { echo "$as_me:$LINENO: checking for $RSVG_MODULE" >&5
10893 echo $ECHO_N "checking for $RSVG_MODULE... $ECHO_C" >&6; }
10895 if $PKG_CONFIG --exists "$RSVG_MODULE" 2>&5; then
10896 { echo "$as_me:$LINENO: result: yes" >&5
10897 echo "${ECHO_T}yes" >&6; }
10898 succeeded=yes
10900 { echo "$as_me:$LINENO: checking RSVG_CFLAGS" >&5
10901 echo $ECHO_N "checking RSVG_CFLAGS... $ECHO_C" >&6; }
10902 RSVG_CFLAGS=`$PKG_CONFIG --cflags "$RSVG_MODULE"|sed -e 's,///*,/,g'`
10903 { echo "$as_me:$LINENO: result: $RSVG_CFLAGS" >&5
10904 echo "${ECHO_T}$RSVG_CFLAGS" >&6; }
10906 { echo "$as_me:$LINENO: checking RSVG_LIBS" >&5
10907 echo $ECHO_N "checking RSVG_LIBS... $ECHO_C" >&6; }
10908 RSVG_LIBS=`$PKG_CONFIG --libs "$RSVG_MODULE"|sed -e 's,///*,/,g'`
10909 { echo "$as_me:$LINENO: result: $RSVG_LIBS" >&5
10910 echo "${ECHO_T}$RSVG_LIBS" >&6; }
10911 else
10912 { echo "$as_me:$LINENO: result: no" >&5
10913 echo "${ECHO_T}no" >&6; }
10914 RSVG_CFLAGS=""
10915 RSVG_LIBS=""
10916 ## If we have a custom action on failure, don't print errors, but
10917 ## do set a variable so people can do so.
10918 RSVG_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "$RSVG_MODULE"`
10924 else
10925 echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
10926 echo "*** See http://www.freedesktop.org/software/pkgconfig"
10930 if test $succeeded = yes; then
10932 else
10939 if test ".${RSVG_CFLAGS}" != "."; then
10940 HAVE_RSVG=yes
10942 cat >>confdefs.h <<\_ACEOF
10943 #define HAVE_RSVG 1
10944 _ACEOF
10946 CFLAGS="$CFLAGS $RSVG_CFLAGS"
10947 LIBS="$RSVG_LIBS $LIBS"
10953 HAVE_GTK=no
10954 if test "${with_gtk}" = "yes" || test "$USE_X_TOOLKIT" = "maybe"; then
10955 GLIB_REQUIRED=2.6
10956 GTK_REQUIRED=2.6
10957 GTK_MODULES="gtk+-2.0 >= $GTK_REQUIRED glib-2.0 >= $GLIB_REQUIRED"
10960 succeeded=no
10962 # Extract the first word of "pkg-config", so it can be a program name with args.
10963 set dummy pkg-config; ac_word=$2
10964 { echo "$as_me:$LINENO: checking for $ac_word" >&5
10965 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
10966 if test "${ac_cv_path_PKG_CONFIG+set}" = set; then
10967 echo $ECHO_N "(cached) $ECHO_C" >&6
10968 else
10969 case $PKG_CONFIG in
10970 [\\/]* | ?:[\\/]*)
10971 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
10974 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10975 for as_dir in $PATH
10977 IFS=$as_save_IFS
10978 test -z "$as_dir" && as_dir=.
10979 for ac_exec_ext in '' $ac_executable_extensions; do
10980 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10981 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
10982 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
10983 break 2
10985 done
10986 done
10987 IFS=$as_save_IFS
10989 test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG="no"
10991 esac
10993 PKG_CONFIG=$ac_cv_path_PKG_CONFIG
10994 if test -n "$PKG_CONFIG"; then
10995 { echo "$as_me:$LINENO: result: $PKG_CONFIG" >&5
10996 echo "${ECHO_T}$PKG_CONFIG" >&6; }
10997 else
10998 { echo "$as_me:$LINENO: result: no" >&5
10999 echo "${ECHO_T}no" >&6; }
11004 if test "$PKG_CONFIG" = "no" ; then
11005 pkg_check_gtk=no
11006 else
11007 PKG_CONFIG_MIN_VERSION=0.9.0
11008 if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
11009 { echo "$as_me:$LINENO: checking for $GTK_MODULES" >&5
11010 echo $ECHO_N "checking for $GTK_MODULES... $ECHO_C" >&6; }
11012 if $PKG_CONFIG --exists "$GTK_MODULES" 2>&5; then
11013 { echo "$as_me:$LINENO: result: yes" >&5
11014 echo "${ECHO_T}yes" >&6; }
11015 succeeded=yes
11017 { echo "$as_me:$LINENO: checking GTK_CFLAGS" >&5
11018 echo $ECHO_N "checking GTK_CFLAGS... $ECHO_C" >&6; }
11019 GTK_CFLAGS=`$PKG_CONFIG --cflags "$GTK_MODULES"|sed -e 's,///*,/,g'`
11020 { echo "$as_me:$LINENO: result: $GTK_CFLAGS" >&5
11021 echo "${ECHO_T}$GTK_CFLAGS" >&6; }
11023 { echo "$as_me:$LINENO: checking GTK_LIBS" >&5
11024 echo $ECHO_N "checking GTK_LIBS... $ECHO_C" >&6; }
11025 GTK_LIBS=`$PKG_CONFIG --libs "$GTK_MODULES"|sed -e 's,///*,/,g'`
11026 { echo "$as_me:$LINENO: result: $GTK_LIBS" >&5
11027 echo "${ECHO_T}$GTK_LIBS" >&6; }
11028 else
11029 { echo "$as_me:$LINENO: result: no" >&5
11030 echo "${ECHO_T}no" >&6; }
11031 GTK_CFLAGS=""
11032 GTK_LIBS=""
11033 ## If we have a custom action on failure, don't print errors, but
11034 ## do set a variable so people can do so.
11035 GTK_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "$GTK_MODULES"`
11041 else
11042 echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
11043 echo "*** See http://www.freedesktop.org/software/pkgconfig"
11047 if test $succeeded = yes; then
11048 pkg_check_gtk=yes
11049 else
11050 pkg_check_gtk=no
11053 if test "$pkg_check_gtk" = "no" && test "$USE_X_TOOLKIT" != "maybe"; then
11054 { { echo "$as_me:$LINENO: error: $GTK_PKG_ERRORS" >&5
11055 echo "$as_me: error: $GTK_PKG_ERRORS" >&2;}
11056 { (exit 1); exit 1; }; }
11061 if test x"$pkg_check_gtk" = xyes; then
11065 C_SWITCH_X_SITE="$C_SWITCH_X_SITE $GTK_CFLAGS"
11066 CFLAGS="$CFLAGS $GTK_CFLAGS"
11067 LIBS="$GTK_LIBS $LIBS"
11068 GTK_COMPILES=no
11070 for ac_func in gtk_main
11072 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
11073 { echo "$as_me:$LINENO: checking for $ac_func" >&5
11074 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
11075 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
11076 echo $ECHO_N "(cached) $ECHO_C" >&6
11077 else
11078 cat >conftest.$ac_ext <<_ACEOF
11079 /* confdefs.h. */
11080 _ACEOF
11081 cat confdefs.h >>conftest.$ac_ext
11082 cat >>conftest.$ac_ext <<_ACEOF
11083 /* end confdefs.h. */
11084 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
11085 For example, HP-UX 11i <limits.h> declares gettimeofday. */
11086 #define $ac_func innocuous_$ac_func
11088 /* System header to define __stub macros and hopefully few prototypes,
11089 which can conflict with char $ac_func (); below.
11090 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
11091 <limits.h> exists even on freestanding compilers. */
11093 #ifdef __STDC__
11094 # include <limits.h>
11095 #else
11096 # include <assert.h>
11097 #endif
11099 #undef $ac_func
11101 /* Override any GCC internal prototype to avoid an error.
11102 Use char because int might match the return type of a GCC
11103 builtin and then its argument prototype would still apply. */
11104 #ifdef __cplusplus
11105 extern "C"
11106 #endif
11107 char $ac_func ();
11108 /* The GNU C library defines this for functions which it implements
11109 to always fail with ENOSYS. Some functions are actually named
11110 something starting with __ and the normal name is an alias. */
11111 #if defined __stub_$ac_func || defined __stub___$ac_func
11112 choke me
11113 #endif
11116 main ()
11118 return $ac_func ();
11120 return 0;
11122 _ACEOF
11123 rm -f conftest.$ac_objext conftest$ac_exeext
11124 if { (ac_try="$ac_link"
11125 case "(($ac_try" in
11126 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11127 *) ac_try_echo=$ac_try;;
11128 esac
11129 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11130 (eval "$ac_link") 2>conftest.er1
11131 ac_status=$?
11132 grep -v '^ *+' conftest.er1 >conftest.err
11133 rm -f conftest.er1
11134 cat conftest.err >&5
11135 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11136 (exit $ac_status); } && {
11137 test -z "$ac_c_werror_flag" ||
11138 test ! -s conftest.err
11139 } && test -s conftest$ac_exeext &&
11140 $as_test_x conftest$ac_exeext; then
11141 eval "$as_ac_var=yes"
11142 else
11143 echo "$as_me: failed program was:" >&5
11144 sed 's/^/| /' conftest.$ac_ext >&5
11146 eval "$as_ac_var=no"
11149 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
11150 conftest$ac_exeext conftest.$ac_ext
11152 ac_res=`eval echo '${'$as_ac_var'}'`
11153 { echo "$as_me:$LINENO: result: $ac_res" >&5
11154 echo "${ECHO_T}$ac_res" >&6; }
11155 if test `eval echo '${'$as_ac_var'}'` = yes; then
11156 cat >>confdefs.h <<_ACEOF
11157 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
11158 _ACEOF
11159 GTK_COMPILES=yes
11161 done
11163 if test "${GTK_COMPILES}" != "yes"; then
11164 if test "$USE_X_TOOLKIT" != "maybe"; then
11165 { { echo "$as_me:$LINENO: error: Gtk+ wanted, but it does not compile, see config.log. Maybe some x11-devel files missing?" >&5
11166 echo "$as_me: error: Gtk+ wanted, but it does not compile, see config.log. Maybe some x11-devel files missing?" >&2;}
11167 { (exit 1); exit 1; }; };
11169 else
11170 HAVE_GTK=yes
11172 cat >>confdefs.h <<\_ACEOF
11173 #define USE_GTK 1
11174 _ACEOF
11176 USE_X_TOOLKIT=none
11177 if $PKG_CONFIG --atleast-version=2.10 gtk+-2.0; then
11179 else
11180 { echo "$as_me:$LINENO: WARNING: Your version of Gtk+ will have problems with
11181 closing open displays. This is no problem if you just use
11182 one display, but if you use more than one and close one of them
11183 Emacs may crash." >&5
11184 echo "$as_me: WARNING: Your version of Gtk+ will have problems with
11185 closing open displays. This is no problem if you just use
11186 one display, but if you use more than one and close one of them
11187 Emacs may crash." >&2;}
11188 sleep 3
11195 if test "${HAVE_GTK}" = "yes"; then
11197 if test "$with_toolkit_scroll_bars" != no; then
11198 with_toolkit_scroll_bars=yes
11201 HAVE_GTK_MULTIDISPLAY=no
11203 for ac_func in gdk_display_open
11205 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
11206 { echo "$as_me:$LINENO: checking for $ac_func" >&5
11207 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
11208 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
11209 echo $ECHO_N "(cached) $ECHO_C" >&6
11210 else
11211 cat >conftest.$ac_ext <<_ACEOF
11212 /* confdefs.h. */
11213 _ACEOF
11214 cat confdefs.h >>conftest.$ac_ext
11215 cat >>conftest.$ac_ext <<_ACEOF
11216 /* end confdefs.h. */
11217 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
11218 For example, HP-UX 11i <limits.h> declares gettimeofday. */
11219 #define $ac_func innocuous_$ac_func
11221 /* System header to define __stub macros and hopefully few prototypes,
11222 which can conflict with char $ac_func (); below.
11223 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
11224 <limits.h> exists even on freestanding compilers. */
11226 #ifdef __STDC__
11227 # include <limits.h>
11228 #else
11229 # include <assert.h>
11230 #endif
11232 #undef $ac_func
11234 /* Override any GCC internal prototype to avoid an error.
11235 Use char because int might match the return type of a GCC
11236 builtin and then its argument prototype would still apply. */
11237 #ifdef __cplusplus
11238 extern "C"
11239 #endif
11240 char $ac_func ();
11241 /* The GNU C library defines this for functions which it implements
11242 to always fail with ENOSYS. Some functions are actually named
11243 something starting with __ and the normal name is an alias. */
11244 #if defined __stub_$ac_func || defined __stub___$ac_func
11245 choke me
11246 #endif
11249 main ()
11251 return $ac_func ();
11253 return 0;
11255 _ACEOF
11256 rm -f conftest.$ac_objext conftest$ac_exeext
11257 if { (ac_try="$ac_link"
11258 case "(($ac_try" in
11259 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11260 *) ac_try_echo=$ac_try;;
11261 esac
11262 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11263 (eval "$ac_link") 2>conftest.er1
11264 ac_status=$?
11265 grep -v '^ *+' conftest.er1 >conftest.err
11266 rm -f conftest.er1
11267 cat conftest.err >&5
11268 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11269 (exit $ac_status); } && {
11270 test -z "$ac_c_werror_flag" ||
11271 test ! -s conftest.err
11272 } && test -s conftest$ac_exeext &&
11273 $as_test_x conftest$ac_exeext; then
11274 eval "$as_ac_var=yes"
11275 else
11276 echo "$as_me: failed program was:" >&5
11277 sed 's/^/| /' conftest.$ac_ext >&5
11279 eval "$as_ac_var=no"
11282 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
11283 conftest$ac_exeext conftest.$ac_ext
11285 ac_res=`eval echo '${'$as_ac_var'}'`
11286 { echo "$as_me:$LINENO: result: $ac_res" >&5
11287 echo "${ECHO_T}$ac_res" >&6; }
11288 if test `eval echo '${'$as_ac_var'}'` = yes; then
11289 cat >>confdefs.h <<_ACEOF
11290 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
11291 _ACEOF
11292 HAVE_GTK_MULTIDISPLAY=yes
11294 done
11296 if test "${HAVE_GTK_MULTIDISPLAY}" = "yes"; then
11298 cat >>confdefs.h <<\_ACEOF
11299 #define HAVE_GTK_MULTIDISPLAY 1
11300 _ACEOF
11304 HAVE_GTK_FILE_SELECTION=no
11306 for ac_func in gtk_file_selection_new
11308 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
11309 { echo "$as_me:$LINENO: checking for $ac_func" >&5
11310 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
11311 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
11312 echo $ECHO_N "(cached) $ECHO_C" >&6
11313 else
11314 cat >conftest.$ac_ext <<_ACEOF
11315 /* confdefs.h. */
11316 _ACEOF
11317 cat confdefs.h >>conftest.$ac_ext
11318 cat >>conftest.$ac_ext <<_ACEOF
11319 /* end confdefs.h. */
11320 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
11321 For example, HP-UX 11i <limits.h> declares gettimeofday. */
11322 #define $ac_func innocuous_$ac_func
11324 /* System header to define __stub macros and hopefully few prototypes,
11325 which can conflict with char $ac_func (); below.
11326 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
11327 <limits.h> exists even on freestanding compilers. */
11329 #ifdef __STDC__
11330 # include <limits.h>
11331 #else
11332 # include <assert.h>
11333 #endif
11335 #undef $ac_func
11337 /* Override any GCC internal prototype to avoid an error.
11338 Use char because int might match the return type of a GCC
11339 builtin and then its argument prototype would still apply. */
11340 #ifdef __cplusplus
11341 extern "C"
11342 #endif
11343 char $ac_func ();
11344 /* The GNU C library defines this for functions which it implements
11345 to always fail with ENOSYS. Some functions are actually named
11346 something starting with __ and the normal name is an alias. */
11347 #if defined __stub_$ac_func || defined __stub___$ac_func
11348 choke me
11349 #endif
11352 main ()
11354 return $ac_func ();
11356 return 0;
11358 _ACEOF
11359 rm -f conftest.$ac_objext conftest$ac_exeext
11360 if { (ac_try="$ac_link"
11361 case "(($ac_try" in
11362 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11363 *) ac_try_echo=$ac_try;;
11364 esac
11365 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11366 (eval "$ac_link") 2>conftest.er1
11367 ac_status=$?
11368 grep -v '^ *+' conftest.er1 >conftest.err
11369 rm -f conftest.er1
11370 cat conftest.err >&5
11371 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11372 (exit $ac_status); } && {
11373 test -z "$ac_c_werror_flag" ||
11374 test ! -s conftest.err
11375 } && test -s conftest$ac_exeext &&
11376 $as_test_x conftest$ac_exeext; then
11377 eval "$as_ac_var=yes"
11378 else
11379 echo "$as_me: failed program was:" >&5
11380 sed 's/^/| /' conftest.$ac_ext >&5
11382 eval "$as_ac_var=no"
11385 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
11386 conftest$ac_exeext conftest.$ac_ext
11388 ac_res=`eval echo '${'$as_ac_var'}'`
11389 { echo "$as_me:$LINENO: result: $ac_res" >&5
11390 echo "${ECHO_T}$ac_res" >&6; }
11391 if test `eval echo '${'$as_ac_var'}'` = yes; then
11392 cat >>confdefs.h <<_ACEOF
11393 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
11394 _ACEOF
11395 HAVE_GTK_FILE_SELECTION=yes
11397 done
11400 HAVE_GTK_FILE_CHOOSER=no
11402 for ac_func in gtk_file_chooser_dialog_new
11404 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
11405 { echo "$as_me:$LINENO: checking for $ac_func" >&5
11406 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
11407 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
11408 echo $ECHO_N "(cached) $ECHO_C" >&6
11409 else
11410 cat >conftest.$ac_ext <<_ACEOF
11411 /* confdefs.h. */
11412 _ACEOF
11413 cat confdefs.h >>conftest.$ac_ext
11414 cat >>conftest.$ac_ext <<_ACEOF
11415 /* end confdefs.h. */
11416 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
11417 For example, HP-UX 11i <limits.h> declares gettimeofday. */
11418 #define $ac_func innocuous_$ac_func
11420 /* System header to define __stub macros and hopefully few prototypes,
11421 which can conflict with char $ac_func (); below.
11422 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
11423 <limits.h> exists even on freestanding compilers. */
11425 #ifdef __STDC__
11426 # include <limits.h>
11427 #else
11428 # include <assert.h>
11429 #endif
11431 #undef $ac_func
11433 /* Override any GCC internal prototype to avoid an error.
11434 Use char because int might match the return type of a GCC
11435 builtin and then its argument prototype would still apply. */
11436 #ifdef __cplusplus
11437 extern "C"
11438 #endif
11439 char $ac_func ();
11440 /* The GNU C library defines this for functions which it implements
11441 to always fail with ENOSYS. Some functions are actually named
11442 something starting with __ and the normal name is an alias. */
11443 #if defined __stub_$ac_func || defined __stub___$ac_func
11444 choke me
11445 #endif
11448 main ()
11450 return $ac_func ();
11452 return 0;
11454 _ACEOF
11455 rm -f conftest.$ac_objext conftest$ac_exeext
11456 if { (ac_try="$ac_link"
11457 case "(($ac_try" in
11458 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11459 *) ac_try_echo=$ac_try;;
11460 esac
11461 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11462 (eval "$ac_link") 2>conftest.er1
11463 ac_status=$?
11464 grep -v '^ *+' conftest.er1 >conftest.err
11465 rm -f conftest.er1
11466 cat conftest.err >&5
11467 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11468 (exit $ac_status); } && {
11469 test -z "$ac_c_werror_flag" ||
11470 test ! -s conftest.err
11471 } && test -s conftest$ac_exeext &&
11472 $as_test_x conftest$ac_exeext; then
11473 eval "$as_ac_var=yes"
11474 else
11475 echo "$as_me: failed program was:" >&5
11476 sed 's/^/| /' conftest.$ac_ext >&5
11478 eval "$as_ac_var=no"
11481 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
11482 conftest$ac_exeext conftest.$ac_ext
11484 ac_res=`eval echo '${'$as_ac_var'}'`
11485 { echo "$as_me:$LINENO: result: $ac_res" >&5
11486 echo "${ECHO_T}$ac_res" >&6; }
11487 if test `eval echo '${'$as_ac_var'}'` = yes; then
11488 cat >>confdefs.h <<_ACEOF
11489 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
11490 _ACEOF
11491 HAVE_GTK_FILE_CHOOSER=yes
11493 done
11496 if test "$HAVE_GTK_FILE_SELECTION" = yes \
11497 && test "$HAVE_GTK_FILE_CHOOSER" = yes; then
11499 cat >>confdefs.h <<\_ACEOF
11500 #define HAVE_GTK_FILE_BOTH 1
11501 _ACEOF
11505 if test "$HAVE_GTK_FILE_CHOOSER" = yes; then
11506 HAVE_GTK_AND_PTHREAD=no
11508 for ac_header in pthread.h
11510 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
11511 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11512 { echo "$as_me:$LINENO: checking for $ac_header" >&5
11513 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
11514 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11515 echo $ECHO_N "(cached) $ECHO_C" >&6
11517 ac_res=`eval echo '${'$as_ac_Header'}'`
11518 { echo "$as_me:$LINENO: result: $ac_res" >&5
11519 echo "${ECHO_T}$ac_res" >&6; }
11520 else
11521 # Is the header compilable?
11522 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
11523 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
11524 cat >conftest.$ac_ext <<_ACEOF
11525 /* confdefs.h. */
11526 _ACEOF
11527 cat confdefs.h >>conftest.$ac_ext
11528 cat >>conftest.$ac_ext <<_ACEOF
11529 /* end confdefs.h. */
11530 $ac_includes_default
11531 #include <$ac_header>
11532 _ACEOF
11533 rm -f conftest.$ac_objext
11534 if { (ac_try="$ac_compile"
11535 case "(($ac_try" in
11536 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11537 *) ac_try_echo=$ac_try;;
11538 esac
11539 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11540 (eval "$ac_compile") 2>conftest.er1
11541 ac_status=$?
11542 grep -v '^ *+' conftest.er1 >conftest.err
11543 rm -f conftest.er1
11544 cat conftest.err >&5
11545 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11546 (exit $ac_status); } && {
11547 test -z "$ac_c_werror_flag" ||
11548 test ! -s conftest.err
11549 } && test -s conftest.$ac_objext; then
11550 ac_header_compiler=yes
11551 else
11552 echo "$as_me: failed program was:" >&5
11553 sed 's/^/| /' conftest.$ac_ext >&5
11555 ac_header_compiler=no
11558 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11559 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
11560 echo "${ECHO_T}$ac_header_compiler" >&6; }
11562 # Is the header present?
11563 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
11564 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
11565 cat >conftest.$ac_ext <<_ACEOF
11566 /* confdefs.h. */
11567 _ACEOF
11568 cat confdefs.h >>conftest.$ac_ext
11569 cat >>conftest.$ac_ext <<_ACEOF
11570 /* end confdefs.h. */
11571 #include <$ac_header>
11572 _ACEOF
11573 if { (ac_try="$ac_cpp conftest.$ac_ext"
11574 case "(($ac_try" in
11575 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11576 *) ac_try_echo=$ac_try;;
11577 esac
11578 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11579 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
11580 ac_status=$?
11581 grep -v '^ *+' conftest.er1 >conftest.err
11582 rm -f conftest.er1
11583 cat conftest.err >&5
11584 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11585 (exit $ac_status); } >/dev/null && {
11586 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
11587 test ! -s conftest.err
11588 }; then
11589 ac_header_preproc=yes
11590 else
11591 echo "$as_me: failed program was:" >&5
11592 sed 's/^/| /' conftest.$ac_ext >&5
11594 ac_header_preproc=no
11597 rm -f conftest.err conftest.$ac_ext
11598 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
11599 echo "${ECHO_T}$ac_header_preproc" >&6; }
11601 # So? What about this header?
11602 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
11603 yes:no: )
11604 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
11605 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
11606 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
11607 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
11608 ac_header_preproc=yes
11610 no:yes:* )
11611 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
11612 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
11613 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
11614 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
11615 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
11616 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
11617 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
11618 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
11619 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
11620 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
11621 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
11622 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
11625 esac
11626 { echo "$as_me:$LINENO: checking for $ac_header" >&5
11627 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
11628 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11629 echo $ECHO_N "(cached) $ECHO_C" >&6
11630 else
11631 eval "$as_ac_Header=\$ac_header_preproc"
11633 ac_res=`eval echo '${'$as_ac_Header'}'`
11634 { echo "$as_me:$LINENO: result: $ac_res" >&5
11635 echo "${ECHO_T}$ac_res" >&6; }
11638 if test `eval echo '${'$as_ac_Header'}'` = yes; then
11639 cat >>confdefs.h <<_ACEOF
11640 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
11641 _ACEOF
11645 done
11647 if test "$ac_cv_header_pthread_h"; then
11648 { echo "$as_me:$LINENO: checking for pthread_self in -lpthread" >&5
11649 echo $ECHO_N "checking for pthread_self in -lpthread... $ECHO_C" >&6; }
11650 if test "${ac_cv_lib_pthread_pthread_self+set}" = set; then
11651 echo $ECHO_N "(cached) $ECHO_C" >&6
11652 else
11653 ac_check_lib_save_LIBS=$LIBS
11654 LIBS="-lpthread $LIBS"
11655 cat >conftest.$ac_ext <<_ACEOF
11656 /* confdefs.h. */
11657 _ACEOF
11658 cat confdefs.h >>conftest.$ac_ext
11659 cat >>conftest.$ac_ext <<_ACEOF
11660 /* end confdefs.h. */
11662 /* Override any GCC internal prototype to avoid an error.
11663 Use char because int might match the return type of a GCC
11664 builtin and then its argument prototype would still apply. */
11665 #ifdef __cplusplus
11666 extern "C"
11667 #endif
11668 char pthread_self ();
11670 main ()
11672 return pthread_self ();
11674 return 0;
11676 _ACEOF
11677 rm -f conftest.$ac_objext conftest$ac_exeext
11678 if { (ac_try="$ac_link"
11679 case "(($ac_try" in
11680 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11681 *) ac_try_echo=$ac_try;;
11682 esac
11683 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11684 (eval "$ac_link") 2>conftest.er1
11685 ac_status=$?
11686 grep -v '^ *+' conftest.er1 >conftest.err
11687 rm -f conftest.er1
11688 cat conftest.err >&5
11689 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11690 (exit $ac_status); } && {
11691 test -z "$ac_c_werror_flag" ||
11692 test ! -s conftest.err
11693 } && test -s conftest$ac_exeext &&
11694 $as_test_x conftest$ac_exeext; then
11695 ac_cv_lib_pthread_pthread_self=yes
11696 else
11697 echo "$as_me: failed program was:" >&5
11698 sed 's/^/| /' conftest.$ac_ext >&5
11700 ac_cv_lib_pthread_pthread_self=no
11703 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
11704 conftest$ac_exeext conftest.$ac_ext
11705 LIBS=$ac_check_lib_save_LIBS
11707 { echo "$as_me:$LINENO: result: $ac_cv_lib_pthread_pthread_self" >&5
11708 echo "${ECHO_T}$ac_cv_lib_pthread_pthread_self" >&6; }
11709 if test $ac_cv_lib_pthread_pthread_self = yes; then
11710 HAVE_GTK_AND_PTHREAD=yes
11714 if test "$HAVE_GTK_AND_PTHREAD" = yes; then
11715 case "${canonical}" in
11716 *-hpux*) ;;
11717 *) GTK_LIBS="$GTK_LIBS -lpthread" ;;
11718 esac
11720 cat >>confdefs.h <<\_ACEOF
11721 #define HAVE_GTK_AND_PTHREAD 1
11722 _ACEOF
11728 HAVE_DBUS=no
11729 if test "${with_dbus}" = "yes"; then
11731 succeeded=no
11733 # Extract the first word of "pkg-config", so it can be a program name with args.
11734 set dummy pkg-config; ac_word=$2
11735 { echo "$as_me:$LINENO: checking for $ac_word" >&5
11736 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
11737 if test "${ac_cv_path_PKG_CONFIG+set}" = set; then
11738 echo $ECHO_N "(cached) $ECHO_C" >&6
11739 else
11740 case $PKG_CONFIG in
11741 [\\/]* | ?:[\\/]*)
11742 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
11745 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11746 for as_dir in $PATH
11748 IFS=$as_save_IFS
11749 test -z "$as_dir" && as_dir=.
11750 for ac_exec_ext in '' $ac_executable_extensions; do
11751 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11752 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
11753 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
11754 break 2
11756 done
11757 done
11758 IFS=$as_save_IFS
11760 test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG="no"
11762 esac
11764 PKG_CONFIG=$ac_cv_path_PKG_CONFIG
11765 if test -n "$PKG_CONFIG"; then
11766 { echo "$as_me:$LINENO: result: $PKG_CONFIG" >&5
11767 echo "${ECHO_T}$PKG_CONFIG" >&6; }
11768 else
11769 { echo "$as_me:$LINENO: result: no" >&5
11770 echo "${ECHO_T}no" >&6; }
11775 if test "$PKG_CONFIG" = "no" ; then
11776 HAVE_DBUS=no
11777 else
11778 PKG_CONFIG_MIN_VERSION=0.9.0
11779 if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
11780 { echo "$as_me:$LINENO: checking for dbus-1 >= 1.0" >&5
11781 echo $ECHO_N "checking for dbus-1 >= 1.0... $ECHO_C" >&6; }
11783 if $PKG_CONFIG --exists "dbus-1 >= 1.0" 2>&5; then
11784 { echo "$as_me:$LINENO: result: yes" >&5
11785 echo "${ECHO_T}yes" >&6; }
11786 succeeded=yes
11788 { echo "$as_me:$LINENO: checking DBUS_CFLAGS" >&5
11789 echo $ECHO_N "checking DBUS_CFLAGS... $ECHO_C" >&6; }
11790 DBUS_CFLAGS=`$PKG_CONFIG --cflags "dbus-1 >= 1.0"|sed -e 's,///*,/,g'`
11791 { echo "$as_me:$LINENO: result: $DBUS_CFLAGS" >&5
11792 echo "${ECHO_T}$DBUS_CFLAGS" >&6; }
11794 { echo "$as_me:$LINENO: checking DBUS_LIBS" >&5
11795 echo $ECHO_N "checking DBUS_LIBS... $ECHO_C" >&6; }
11796 DBUS_LIBS=`$PKG_CONFIG --libs "dbus-1 >= 1.0"|sed -e 's,///*,/,g'`
11797 { echo "$as_me:$LINENO: result: $DBUS_LIBS" >&5
11798 echo "${ECHO_T}$DBUS_LIBS" >&6; }
11799 else
11800 { echo "$as_me:$LINENO: result: no" >&5
11801 echo "${ECHO_T}no" >&6; }
11802 DBUS_CFLAGS=""
11803 DBUS_LIBS=""
11804 ## If we have a custom action on failure, don't print errors, but
11805 ## do set a variable so people can do so.
11806 DBUS_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "dbus-1 >= 1.0"`
11812 else
11813 echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
11814 echo "*** See http://www.freedesktop.org/software/pkgconfig"
11818 if test $succeeded = yes; then
11819 HAVE_DBUS=yes
11820 else
11821 HAVE_DBUS=no
11824 if test "$HAVE_DBUS" = yes; then
11826 cat >>confdefs.h <<\_ACEOF
11827 #define HAVE_DBUS 1
11828 _ACEOF
11833 HAVE_XAW3D=no
11834 if test x"${USE_X_TOOLKIT}" = xmaybe || test x"${USE_X_TOOLKIT}" = xLUCID; then
11835 if test "$with_xaw3d" != no; then
11836 { echo "$as_me:$LINENO: checking for xaw3d" >&5
11837 echo $ECHO_N "checking for xaw3d... $ECHO_C" >&6; }
11838 if test "${emacs_cv_xaw3d+set}" = set; then
11839 echo $ECHO_N "(cached) $ECHO_C" >&6
11840 else
11841 cat >conftest.$ac_ext <<_ACEOF
11842 /* confdefs.h. */
11843 _ACEOF
11844 cat confdefs.h >>conftest.$ac_ext
11845 cat >>conftest.$ac_ext <<_ACEOF
11846 /* end confdefs.h. */
11848 #include <X11/Intrinsic.h>
11849 #include <X11/Xaw3d/Simple.h>
11851 main ()
11855 return 0;
11857 _ACEOF
11858 rm -f conftest.$ac_objext conftest$ac_exeext
11859 if { (ac_try="$ac_link"
11860 case "(($ac_try" in
11861 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11862 *) ac_try_echo=$ac_try;;
11863 esac
11864 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11865 (eval "$ac_link") 2>conftest.er1
11866 ac_status=$?
11867 grep -v '^ *+' conftest.er1 >conftest.err
11868 rm -f conftest.er1
11869 cat conftest.err >&5
11870 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11871 (exit $ac_status); } && {
11872 test -z "$ac_c_werror_flag" ||
11873 test ! -s conftest.err
11874 } && test -s conftest$ac_exeext &&
11875 $as_test_x conftest$ac_exeext; then
11876 emacs_cv_xaw3d=yes
11877 else
11878 echo "$as_me: failed program was:" >&5
11879 sed 's/^/| /' conftest.$ac_ext >&5
11881 emacs_cv_xaw3d=no
11884 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
11885 conftest$ac_exeext conftest.$ac_ext
11888 else
11889 emacs_cv_xaw3d=no
11891 if test $emacs_cv_xaw3d = yes; then
11892 { echo "$as_me:$LINENO: result: yes; using Lucid toolkit" >&5
11893 echo "${ECHO_T}yes; using Lucid toolkit" >&6; }
11894 USE_X_TOOLKIT=LUCID
11895 HAVE_XAW3D=yes
11897 cat >>confdefs.h <<\_ACEOF
11898 #define HAVE_XAW3D 1
11899 _ACEOF
11901 else
11902 { echo "$as_me:$LINENO: result: no" >&5
11903 echo "${ECHO_T}no" >&6; }
11904 { echo "$as_me:$LINENO: checking for libXaw" >&5
11905 echo $ECHO_N "checking for libXaw... $ECHO_C" >&6; }
11906 if test "${emacs_cv_xaw+set}" = set; then
11907 echo $ECHO_N "(cached) $ECHO_C" >&6
11908 else
11909 cat >conftest.$ac_ext <<_ACEOF
11910 /* confdefs.h. */
11911 _ACEOF
11912 cat confdefs.h >>conftest.$ac_ext
11913 cat >>conftest.$ac_ext <<_ACEOF
11914 /* end confdefs.h. */
11916 #include <X11/Intrinsic.h>
11917 #include <X11/Xaw/Simple.h>
11919 main ()
11923 return 0;
11925 _ACEOF
11926 rm -f conftest.$ac_objext conftest$ac_exeext
11927 if { (ac_try="$ac_link"
11928 case "(($ac_try" in
11929 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11930 *) ac_try_echo=$ac_try;;
11931 esac
11932 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11933 (eval "$ac_link") 2>conftest.er1
11934 ac_status=$?
11935 grep -v '^ *+' conftest.er1 >conftest.err
11936 rm -f conftest.er1
11937 cat conftest.err >&5
11938 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11939 (exit $ac_status); } && {
11940 test -z "$ac_c_werror_flag" ||
11941 test ! -s conftest.err
11942 } && test -s conftest$ac_exeext &&
11943 $as_test_x conftest$ac_exeext; then
11944 emacs_cv_xaw=yes
11945 else
11946 echo "$as_me: failed program was:" >&5
11947 sed 's/^/| /' conftest.$ac_ext >&5
11949 emacs_cv_xaw=no
11952 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
11953 conftest$ac_exeext conftest.$ac_ext
11956 if test $emacs_cv_xaw = yes; then
11957 { echo "$as_me:$LINENO: result: yes; using Lucid toolkit" >&5
11958 echo "${ECHO_T}yes; using Lucid toolkit" >&6; }
11959 USE_X_TOOLKIT=LUCID
11960 elif test x"${USE_X_TOOLKIT}" = xLUCID; then
11961 { { echo "$as_me:$LINENO: error: Lucid toolkit requires X11/Xaw include files" >&5
11962 echo "$as_me: error: Lucid toolkit requires X11/Xaw include files" >&2;}
11963 { (exit 1); exit 1; }; }
11964 else
11965 { echo "$as_me:$LINENO: result: no; do not use toolkit by default" >&5
11966 echo "${ECHO_T}no; do not use toolkit by default" >&6; }
11967 USE_X_TOOLKIT=none
11972 X_TOOLKIT_TYPE=$USE_X_TOOLKIT
11974 if test "${USE_X_TOOLKIT}" != "none"; then
11975 { echo "$as_me:$LINENO: checking X11 toolkit version" >&5
11976 echo $ECHO_N "checking X11 toolkit version... $ECHO_C" >&6; }
11977 if test "${emacs_cv_x11_toolkit_version_6+set}" = set; then
11978 echo $ECHO_N "(cached) $ECHO_C" >&6
11979 else
11980 cat >conftest.$ac_ext <<_ACEOF
11981 /* confdefs.h. */
11982 _ACEOF
11983 cat confdefs.h >>conftest.$ac_ext
11984 cat >>conftest.$ac_ext <<_ACEOF
11985 /* end confdefs.h. */
11986 #include <X11/Intrinsic.h>
11988 main ()
11990 #if XtSpecificationRelease < 6
11991 fail;
11992 #endif
11995 return 0;
11997 _ACEOF
11998 rm -f conftest.$ac_objext conftest$ac_exeext
11999 if { (ac_try="$ac_link"
12000 case "(($ac_try" in
12001 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12002 *) ac_try_echo=$ac_try;;
12003 esac
12004 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12005 (eval "$ac_link") 2>conftest.er1
12006 ac_status=$?
12007 grep -v '^ *+' conftest.er1 >conftest.err
12008 rm -f conftest.er1
12009 cat conftest.err >&5
12010 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12011 (exit $ac_status); } && {
12012 test -z "$ac_c_werror_flag" ||
12013 test ! -s conftest.err
12014 } && test -s conftest$ac_exeext &&
12015 $as_test_x conftest$ac_exeext; then
12016 emacs_cv_x11_toolkit_version_6=yes
12017 else
12018 echo "$as_me: failed program was:" >&5
12019 sed 's/^/| /' conftest.$ac_ext >&5
12021 emacs_cv_x11_toolkit_version_6=no
12024 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
12025 conftest$ac_exeext conftest.$ac_ext
12028 HAVE_X11XTR6=$emacs_cv_x11_toolkit_version_6
12029 if test $emacs_cv_x11_toolkit_version_6 = yes; then
12030 { echo "$as_me:$LINENO: result: 6 or newer" >&5
12031 echo "${ECHO_T}6 or newer" >&6; }
12033 cat >>confdefs.h <<\_ACEOF
12034 #define HAVE_X11XTR6 1
12035 _ACEOF
12037 else
12038 { echo "$as_me:$LINENO: result: before 6" >&5
12039 echo "${ECHO_T}before 6" >&6; }
12042 OLDLIBS="$LIBS"
12043 if test x$HAVE_X11XTR6 = xyes; then
12044 LIBS="-lXt -lSM -lICE $LIBS"
12045 else
12046 LIBS="-lXt $LIBS"
12049 { echo "$as_me:$LINENO: checking for XmuConvertStandardSelection in -lXmu" >&5
12050 echo $ECHO_N "checking for XmuConvertStandardSelection in -lXmu... $ECHO_C" >&6; }
12051 if test "${ac_cv_lib_Xmu_XmuConvertStandardSelection+set}" = set; then
12052 echo $ECHO_N "(cached) $ECHO_C" >&6
12053 else
12054 ac_check_lib_save_LIBS=$LIBS
12055 LIBS="-lXmu $LIBS"
12056 cat >conftest.$ac_ext <<_ACEOF
12057 /* confdefs.h. */
12058 _ACEOF
12059 cat confdefs.h >>conftest.$ac_ext
12060 cat >>conftest.$ac_ext <<_ACEOF
12061 /* end confdefs.h. */
12063 /* Override any GCC internal prototype to avoid an error.
12064 Use char because int might match the return type of a GCC
12065 builtin and then its argument prototype would still apply. */
12066 #ifdef __cplusplus
12067 extern "C"
12068 #endif
12069 char XmuConvertStandardSelection ();
12071 main ()
12073 return XmuConvertStandardSelection ();
12075 return 0;
12077 _ACEOF
12078 rm -f conftest.$ac_objext conftest$ac_exeext
12079 if { (ac_try="$ac_link"
12080 case "(($ac_try" in
12081 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12082 *) ac_try_echo=$ac_try;;
12083 esac
12084 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12085 (eval "$ac_link") 2>conftest.er1
12086 ac_status=$?
12087 grep -v '^ *+' conftest.er1 >conftest.err
12088 rm -f conftest.er1
12089 cat conftest.err >&5
12090 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12091 (exit $ac_status); } && {
12092 test -z "$ac_c_werror_flag" ||
12093 test ! -s conftest.err
12094 } && test -s conftest$ac_exeext &&
12095 $as_test_x conftest$ac_exeext; then
12096 ac_cv_lib_Xmu_XmuConvertStandardSelection=yes
12097 else
12098 echo "$as_me: failed program was:" >&5
12099 sed 's/^/| /' conftest.$ac_ext >&5
12101 ac_cv_lib_Xmu_XmuConvertStandardSelection=no
12104 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
12105 conftest$ac_exeext conftest.$ac_ext
12106 LIBS=$ac_check_lib_save_LIBS
12108 { echo "$as_me:$LINENO: result: $ac_cv_lib_Xmu_XmuConvertStandardSelection" >&5
12109 echo "${ECHO_T}$ac_cv_lib_Xmu_XmuConvertStandardSelection" >&6; }
12110 if test $ac_cv_lib_Xmu_XmuConvertStandardSelection = yes; then
12111 cat >>confdefs.h <<_ACEOF
12112 #define HAVE_LIBXMU 1
12113 _ACEOF
12115 LIBS="-lXmu $LIBS"
12119 test $ac_cv_lib_Xmu_XmuConvertStandardSelection = no && LIBS="$OLDLIBS"
12122 # On Irix 6.5, at least, we need XShapeQueryExtension from -lXext for Xaw3D.
12123 if test "${HAVE_X11}" = "yes"; then
12124 if test "${USE_X_TOOLKIT}" != "none"; then
12126 { echo "$as_me:$LINENO: checking for XShapeQueryExtension in -lXext" >&5
12127 echo $ECHO_N "checking for XShapeQueryExtension in -lXext... $ECHO_C" >&6; }
12128 if test "${ac_cv_lib_Xext_XShapeQueryExtension+set}" = set; then
12129 echo $ECHO_N "(cached) $ECHO_C" >&6
12130 else
12131 ac_check_lib_save_LIBS=$LIBS
12132 LIBS="-lXext $LIBS"
12133 cat >conftest.$ac_ext <<_ACEOF
12134 /* confdefs.h. */
12135 _ACEOF
12136 cat confdefs.h >>conftest.$ac_ext
12137 cat >>conftest.$ac_ext <<_ACEOF
12138 /* end confdefs.h. */
12140 /* Override any GCC internal prototype to avoid an error.
12141 Use char because int might match the return type of a GCC
12142 builtin and then its argument prototype would still apply. */
12143 #ifdef __cplusplus
12144 extern "C"
12145 #endif
12146 char XShapeQueryExtension ();
12148 main ()
12150 return XShapeQueryExtension ();
12152 return 0;
12154 _ACEOF
12155 rm -f conftest.$ac_objext conftest$ac_exeext
12156 if { (ac_try="$ac_link"
12157 case "(($ac_try" in
12158 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12159 *) ac_try_echo=$ac_try;;
12160 esac
12161 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12162 (eval "$ac_link") 2>conftest.er1
12163 ac_status=$?
12164 grep -v '^ *+' conftest.er1 >conftest.err
12165 rm -f conftest.er1
12166 cat conftest.err >&5
12167 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12168 (exit $ac_status); } && {
12169 test -z "$ac_c_werror_flag" ||
12170 test ! -s conftest.err
12171 } && test -s conftest$ac_exeext &&
12172 $as_test_x conftest$ac_exeext; then
12173 ac_cv_lib_Xext_XShapeQueryExtension=yes
12174 else
12175 echo "$as_me: failed program was:" >&5
12176 sed 's/^/| /' conftest.$ac_ext >&5
12178 ac_cv_lib_Xext_XShapeQueryExtension=no
12181 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
12182 conftest$ac_exeext conftest.$ac_ext
12183 LIBS=$ac_check_lib_save_LIBS
12185 { echo "$as_me:$LINENO: result: $ac_cv_lib_Xext_XShapeQueryExtension" >&5
12186 echo "${ECHO_T}$ac_cv_lib_Xext_XShapeQueryExtension" >&6; }
12187 if test $ac_cv_lib_Xext_XShapeQueryExtension = yes; then
12188 cat >>confdefs.h <<_ACEOF
12189 #define HAVE_LIBXEXT 1
12190 _ACEOF
12192 LIBS="-lXext $LIBS"
12199 if test "${USE_X_TOOLKIT}" = "MOTIF"; then
12200 { echo "$as_me:$LINENO: checking for Motif version 2.1" >&5
12201 echo $ECHO_N "checking for Motif version 2.1... $ECHO_C" >&6; }
12202 if test "${emacs_cv_motif_version_2_1+set}" = set; then
12203 echo $ECHO_N "(cached) $ECHO_C" >&6
12204 else
12205 cat >conftest.$ac_ext <<_ACEOF
12206 /* confdefs.h. */
12207 _ACEOF
12208 cat confdefs.h >>conftest.$ac_ext
12209 cat >>conftest.$ac_ext <<_ACEOF
12210 /* end confdefs.h. */
12211 #include <Xm/Xm.h>
12213 main ()
12215 #if XmVERSION > 2 || (XmVERSION == 2 && XmREVISION >= 1)
12216 int x = 5;
12217 #else
12218 Motif version prior to 2.1.
12219 #endif
12221 return 0;
12223 _ACEOF
12224 rm -f conftest.$ac_objext
12225 if { (ac_try="$ac_compile"
12226 case "(($ac_try" in
12227 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12228 *) ac_try_echo=$ac_try;;
12229 esac
12230 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12231 (eval "$ac_compile") 2>conftest.er1
12232 ac_status=$?
12233 grep -v '^ *+' conftest.er1 >conftest.err
12234 rm -f conftest.er1
12235 cat conftest.err >&5
12236 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12237 (exit $ac_status); } && {
12238 test -z "$ac_c_werror_flag" ||
12239 test ! -s conftest.err
12240 } && test -s conftest.$ac_objext; then
12241 emacs_cv_motif_version_2_1=yes
12242 else
12243 echo "$as_me: failed program was:" >&5
12244 sed 's/^/| /' conftest.$ac_ext >&5
12246 emacs_cv_motif_version_2_1=no
12249 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12251 { echo "$as_me:$LINENO: result: $emacs_cv_motif_version_2_1" >&5
12252 echo "${ECHO_T}$emacs_cv_motif_version_2_1" >&6; }
12253 HAVE_MOTIF_2_1=$emacs_cv_motif_version_2_1
12254 if test $emacs_cv_motif_version_2_1 = yes; then
12255 HAVE_LIBXP=no
12257 cat >>confdefs.h <<\_ACEOF
12258 #define HAVE_MOTIF_2_1 1
12259 _ACEOF
12261 { echo "$as_me:$LINENO: checking for XpCreateContext in -lXp" >&5
12262 echo $ECHO_N "checking for XpCreateContext in -lXp... $ECHO_C" >&6; }
12263 if test "${ac_cv_lib_Xp_XpCreateContext+set}" = set; then
12264 echo $ECHO_N "(cached) $ECHO_C" >&6
12265 else
12266 ac_check_lib_save_LIBS=$LIBS
12267 LIBS="-lXp $LIBS"
12268 cat >conftest.$ac_ext <<_ACEOF
12269 /* confdefs.h. */
12270 _ACEOF
12271 cat confdefs.h >>conftest.$ac_ext
12272 cat >>conftest.$ac_ext <<_ACEOF
12273 /* end confdefs.h. */
12275 /* Override any GCC internal prototype to avoid an error.
12276 Use char because int might match the return type of a GCC
12277 builtin and then its argument prototype would still apply. */
12278 #ifdef __cplusplus
12279 extern "C"
12280 #endif
12281 char XpCreateContext ();
12283 main ()
12285 return XpCreateContext ();
12287 return 0;
12289 _ACEOF
12290 rm -f conftest.$ac_objext conftest$ac_exeext
12291 if { (ac_try="$ac_link"
12292 case "(($ac_try" in
12293 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12294 *) ac_try_echo=$ac_try;;
12295 esac
12296 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12297 (eval "$ac_link") 2>conftest.er1
12298 ac_status=$?
12299 grep -v '^ *+' conftest.er1 >conftest.err
12300 rm -f conftest.er1
12301 cat conftest.err >&5
12302 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12303 (exit $ac_status); } && {
12304 test -z "$ac_c_werror_flag" ||
12305 test ! -s conftest.err
12306 } && test -s conftest$ac_exeext &&
12307 $as_test_x conftest$ac_exeext; then
12308 ac_cv_lib_Xp_XpCreateContext=yes
12309 else
12310 echo "$as_me: failed program was:" >&5
12311 sed 's/^/| /' conftest.$ac_ext >&5
12313 ac_cv_lib_Xp_XpCreateContext=no
12316 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
12317 conftest$ac_exeext conftest.$ac_ext
12318 LIBS=$ac_check_lib_save_LIBS
12320 { echo "$as_me:$LINENO: result: $ac_cv_lib_Xp_XpCreateContext" >&5
12321 echo "${ECHO_T}$ac_cv_lib_Xp_XpCreateContext" >&6; }
12322 if test $ac_cv_lib_Xp_XpCreateContext = yes; then
12323 HAVE_LIBXP=yes
12326 if test ${HAVE_LIBXP} = yes; then
12328 cat >>confdefs.h <<\_ACEOF
12329 #define HAVE_LIBXP 1
12330 _ACEOF
12333 else
12334 { echo "$as_me:$LINENO: checking for LessTif where some systems put it" >&5
12335 echo $ECHO_N "checking for LessTif where some systems put it... $ECHO_C" >&6; }
12336 if test "${emacs_cv_lesstif+set}" = set; then
12337 echo $ECHO_N "(cached) $ECHO_C" >&6
12338 else
12339 # We put this in CFLAGS temporarily to precede other -I options
12340 # that might be in CFLAGS temporarily.
12341 # We put this in CPPFLAGS where it precedes the other -I options.
12342 OLD_CPPFLAGS=$CPPFLAGS
12343 OLD_CFLAGS=$CFLAGS
12344 CPPFLAGS="-I/usr/X11R6/LessTif/Motif1.2/include $CPPFLAGS"
12345 CFLAGS="-I/usr/X11R6/LessTif/Motif1.2/include $CFLAGS"
12346 cat >conftest.$ac_ext <<_ACEOF
12347 /* confdefs.h. */
12348 _ACEOF
12349 cat confdefs.h >>conftest.$ac_ext
12350 cat >>conftest.$ac_ext <<_ACEOF
12351 /* end confdefs.h. */
12352 #include </usr/X11R6/LessTif/Motif1.2/include/Xm/Xm.h>
12354 main ()
12356 int x = 5;
12358 return 0;
12360 _ACEOF
12361 rm -f conftest.$ac_objext
12362 if { (ac_try="$ac_compile"
12363 case "(($ac_try" in
12364 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12365 *) ac_try_echo=$ac_try;;
12366 esac
12367 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12368 (eval "$ac_compile") 2>conftest.er1
12369 ac_status=$?
12370 grep -v '^ *+' conftest.er1 >conftest.err
12371 rm -f conftest.er1
12372 cat conftest.err >&5
12373 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12374 (exit $ac_status); } && {
12375 test -z "$ac_c_werror_flag" ||
12376 test ! -s conftest.err
12377 } && test -s conftest.$ac_objext; then
12378 emacs_cv_lesstif=yes
12379 else
12380 echo "$as_me: failed program was:" >&5
12381 sed 's/^/| /' conftest.$ac_ext >&5
12383 emacs_cv_lesstif=no
12386 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12388 { echo "$as_me:$LINENO: result: $emacs_cv_lesstif" >&5
12389 echo "${ECHO_T}$emacs_cv_lesstif" >&6; }
12390 if test $emacs_cv_lesstif = yes; then
12391 # Make sure this -I option remains in CPPFLAGS after it is set
12392 # back to REAL_CPPFLAGS.
12393 # There is no need to change REAL_CFLAGS, because REAL_CFLAGS does not
12394 # have those other -I options anyway. Ultimately, having this
12395 # directory ultimately in CPPFLAGS will be enough.
12396 REAL_CPPFLAGS="-I/usr/X11R6/LessTif/Motif1.2/include $REAL_CPPFLAGS"
12397 LDFLAGS="-L/usr/X11R6/LessTif/Motif1.2/lib $LDFLAGS"
12398 else
12399 CFLAGS=$OLD_CFLAGS
12400 CPPFLAGS=$OLD_CPPFLAGS
12407 USE_TOOLKIT_SCROLL_BARS=no
12408 if test "${with_toolkit_scroll_bars}" != "no"; then
12409 if test "${USE_X_TOOLKIT}" != "none"; then
12410 if test "${USE_X_TOOLKIT}" = "MOTIF"; then
12411 cat >>confdefs.h <<\_ACEOF
12412 #define USE_TOOLKIT_SCROLL_BARS 1
12413 _ACEOF
12415 HAVE_XAW3D=no
12416 USE_TOOLKIT_SCROLL_BARS=yes
12417 elif test "${HAVE_XAW3D}" = "yes"; then
12418 cat >>confdefs.h <<\_ACEOF
12419 #define USE_TOOLKIT_SCROLL_BARS 1
12420 _ACEOF
12422 USE_TOOLKIT_SCROLL_BARS=yes
12424 elif test "${HAVE_GTK}" = "yes"; then
12425 cat >>confdefs.h <<\_ACEOF
12426 #define USE_TOOLKIT_SCROLL_BARS 1
12427 _ACEOF
12429 USE_TOOLKIT_SCROLL_BARS=yes
12430 elif test "${HAVE_NS}" = "yes"; then
12431 cat >>confdefs.h <<\_ACEOF
12432 #define USE_TOOLKIT_SCROLL_BARS 1
12433 _ACEOF
12435 USE_TOOLKIT_SCROLL_BARS=yes
12439 cat >conftest.$ac_ext <<_ACEOF
12440 /* confdefs.h. */
12441 _ACEOF
12442 cat confdefs.h >>conftest.$ac_ext
12443 cat >>conftest.$ac_ext <<_ACEOF
12444 /* end confdefs.h. */
12446 #include <X11/Xlib.h>
12447 #include <X11/Xresource.h>
12449 main ()
12451 XIMProc callback;
12453 return 0;
12455 _ACEOF
12456 rm -f conftest.$ac_objext
12457 if { (ac_try="$ac_compile"
12458 case "(($ac_try" in
12459 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12460 *) ac_try_echo=$ac_try;;
12461 esac
12462 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12463 (eval "$ac_compile") 2>conftest.er1
12464 ac_status=$?
12465 grep -v '^ *+' conftest.er1 >conftest.err
12466 rm -f conftest.er1
12467 cat conftest.err >&5
12468 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12469 (exit $ac_status); } && {
12470 test -z "$ac_c_werror_flag" ||
12471 test ! -s conftest.err
12472 } && test -s conftest.$ac_objext; then
12473 HAVE_XIM=yes
12475 cat >>confdefs.h <<\_ACEOF
12476 #define HAVE_XIM 1
12477 _ACEOF
12479 else
12480 echo "$as_me: failed program was:" >&5
12481 sed 's/^/| /' conftest.$ac_ext >&5
12483 HAVE_XIM=no
12486 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12489 if test "${with_xim}" != "no"; then
12491 cat >>confdefs.h <<\_ACEOF
12492 #define USE_XIM 1
12493 _ACEOF
12498 if test "${HAVE_XIM}" != "no"; then
12499 late_CFLAGS=$CFLAGS
12500 if test "$GCC" = yes; then
12501 CFLAGS="$CFLAGS --pedantic-errors"
12503 cat >conftest.$ac_ext <<_ACEOF
12504 /* confdefs.h. */
12505 _ACEOF
12506 cat confdefs.h >>conftest.$ac_ext
12507 cat >>conftest.$ac_ext <<_ACEOF
12508 /* end confdefs.h. */
12510 #include <X11/Xlib.h>
12511 #include <X11/Xresource.h>
12513 main ()
12515 Display *display;
12516 XrmDatabase db;
12517 char *res_name;
12518 char *res_class;
12519 XIMProc callback;
12520 XPointer *client_data;
12521 #ifndef __GNUC__
12522 /* If we're not using GCC, it's probably not XFree86, and this is
12523 probably right, but we can't use something like --pedantic-errors. */
12524 extern Bool XRegisterIMInstantiateCallback(Display*, XrmDatabase, char*,
12525 char*, XIMProc, XPointer*);
12526 #endif
12527 (void)XRegisterIMInstantiateCallback(display, db, res_name, res_class, callback,
12528 client_data);
12530 return 0;
12532 _ACEOF
12533 rm -f conftest.$ac_objext
12534 if { (ac_try="$ac_compile"
12535 case "(($ac_try" in
12536 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12537 *) ac_try_echo=$ac_try;;
12538 esac
12539 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12540 (eval "$ac_compile") 2>conftest.er1
12541 ac_status=$?
12542 grep -v '^ *+' conftest.er1 >conftest.err
12543 rm -f conftest.er1
12544 cat conftest.err >&5
12545 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12546 (exit $ac_status); } && {
12547 test -z "$ac_c_werror_flag" ||
12548 test ! -s conftest.err
12549 } && test -s conftest.$ac_objext; then
12550 emacs_cv_arg6_star=yes
12551 else
12552 echo "$as_me: failed program was:" >&5
12553 sed 's/^/| /' conftest.$ac_ext >&5
12558 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12560 if test "$emacs_cv_arg6_star" = yes; then
12561 cat >>confdefs.h <<\_ACEOF
12562 #define XRegisterIMInstantiateCallback_arg6 XPointer*
12563 _ACEOF
12565 else
12566 cat >>confdefs.h <<\_ACEOF
12567 #define XRegisterIMInstantiateCallback_arg6 XPointer
12568 _ACEOF
12571 CFLAGS=$late_CFLAGS
12574 ### Start of font-backend section.
12576 ## Use -lXft if available, unless `--with-freetype=no' nor `--with-xft=no'.
12577 HAVE_XFT=maybe
12578 if test "x${with_freetype}" = "xno" || test "x${with_x}" = "xno"; then
12579 with_xft="no";
12581 if test "x${with_xft}" != "xno"; then
12584 succeeded=no
12586 # Extract the first word of "pkg-config", so it can be a program name with args.
12587 set dummy pkg-config; ac_word=$2
12588 { echo "$as_me:$LINENO: checking for $ac_word" >&5
12589 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
12590 if test "${ac_cv_path_PKG_CONFIG+set}" = set; then
12591 echo $ECHO_N "(cached) $ECHO_C" >&6
12592 else
12593 case $PKG_CONFIG in
12594 [\\/]* | ?:[\\/]*)
12595 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
12598 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12599 for as_dir in $PATH
12601 IFS=$as_save_IFS
12602 test -z "$as_dir" && as_dir=.
12603 for ac_exec_ext in '' $ac_executable_extensions; do
12604 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
12605 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
12606 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
12607 break 2
12609 done
12610 done
12611 IFS=$as_save_IFS
12613 test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG="no"
12615 esac
12617 PKG_CONFIG=$ac_cv_path_PKG_CONFIG
12618 if test -n "$PKG_CONFIG"; then
12619 { echo "$as_me:$LINENO: result: $PKG_CONFIG" >&5
12620 echo "${ECHO_T}$PKG_CONFIG" >&6; }
12621 else
12622 { echo "$as_me:$LINENO: result: no" >&5
12623 echo "${ECHO_T}no" >&6; }
12628 if test "$PKG_CONFIG" = "no" ; then
12629 HAVE_XFT=no
12630 else
12631 PKG_CONFIG_MIN_VERSION=0.9.0
12632 if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
12633 { echo "$as_me:$LINENO: checking for xft >= 0.13.0" >&5
12634 echo $ECHO_N "checking for xft >= 0.13.0... $ECHO_C" >&6; }
12636 if $PKG_CONFIG --exists "xft >= 0.13.0" 2>&5; then
12637 { echo "$as_me:$LINENO: result: yes" >&5
12638 echo "${ECHO_T}yes" >&6; }
12639 succeeded=yes
12641 { echo "$as_me:$LINENO: checking XFT_CFLAGS" >&5
12642 echo $ECHO_N "checking XFT_CFLAGS... $ECHO_C" >&6; }
12643 XFT_CFLAGS=`$PKG_CONFIG --cflags "xft >= 0.13.0"|sed -e 's,///*,/,g'`
12644 { echo "$as_me:$LINENO: result: $XFT_CFLAGS" >&5
12645 echo "${ECHO_T}$XFT_CFLAGS" >&6; }
12647 { echo "$as_me:$LINENO: checking XFT_LIBS" >&5
12648 echo $ECHO_N "checking XFT_LIBS... $ECHO_C" >&6; }
12649 XFT_LIBS=`$PKG_CONFIG --libs "xft >= 0.13.0"|sed -e 's,///*,/,g'`
12650 { echo "$as_me:$LINENO: result: $XFT_LIBS" >&5
12651 echo "${ECHO_T}$XFT_LIBS" >&6; }
12652 else
12653 { echo "$as_me:$LINENO: result: no" >&5
12654 echo "${ECHO_T}no" >&6; }
12655 XFT_CFLAGS=""
12656 XFT_LIBS=""
12657 ## If we have a custom action on failure, don't print errors, but
12658 ## do set a variable so people can do so.
12659 XFT_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "xft >= 0.13.0"`
12665 else
12666 echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
12667 echo "*** See http://www.freedesktop.org/software/pkgconfig"
12671 if test $succeeded = yes; then
12673 else
12674 HAVE_XFT=no
12677 if test "$HAVE_XFT" != no; then
12678 OLD_CPPFLAGS="$CPPFLAGS"
12679 OLD_CFLAGS="$CFLAGS"
12680 OLD_LIBS="$LIBS"
12681 CPPFLAGS="$CPPFLAGS $XFT_CFLAGS"
12682 CFLAGS="$CFLAGS $XFT_CFLAGS"
12683 LIBS="$XFT_LIBS $LIBS"
12684 if test "${ac_cv_header_X11_Xft_Xft_h+set}" = set; then
12685 { echo "$as_me:$LINENO: checking for X11/Xft/Xft.h" >&5
12686 echo $ECHO_N "checking for X11/Xft/Xft.h... $ECHO_C" >&6; }
12687 if test "${ac_cv_header_X11_Xft_Xft_h+set}" = set; then
12688 echo $ECHO_N "(cached) $ECHO_C" >&6
12690 { echo "$as_me:$LINENO: result: $ac_cv_header_X11_Xft_Xft_h" >&5
12691 echo "${ECHO_T}$ac_cv_header_X11_Xft_Xft_h" >&6; }
12692 else
12693 # Is the header compilable?
12694 { echo "$as_me:$LINENO: checking X11/Xft/Xft.h usability" >&5
12695 echo $ECHO_N "checking X11/Xft/Xft.h usability... $ECHO_C" >&6; }
12696 cat >conftest.$ac_ext <<_ACEOF
12697 /* confdefs.h. */
12698 _ACEOF
12699 cat confdefs.h >>conftest.$ac_ext
12700 cat >>conftest.$ac_ext <<_ACEOF
12701 /* end confdefs.h. */
12702 $ac_includes_default
12703 #include <X11/Xft/Xft.h>
12704 _ACEOF
12705 rm -f conftest.$ac_objext
12706 if { (ac_try="$ac_compile"
12707 case "(($ac_try" in
12708 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12709 *) ac_try_echo=$ac_try;;
12710 esac
12711 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12712 (eval "$ac_compile") 2>conftest.er1
12713 ac_status=$?
12714 grep -v '^ *+' conftest.er1 >conftest.err
12715 rm -f conftest.er1
12716 cat conftest.err >&5
12717 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12718 (exit $ac_status); } && {
12719 test -z "$ac_c_werror_flag" ||
12720 test ! -s conftest.err
12721 } && test -s conftest.$ac_objext; then
12722 ac_header_compiler=yes
12723 else
12724 echo "$as_me: failed program was:" >&5
12725 sed 's/^/| /' conftest.$ac_ext >&5
12727 ac_header_compiler=no
12730 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12731 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
12732 echo "${ECHO_T}$ac_header_compiler" >&6; }
12734 # Is the header present?
12735 { echo "$as_me:$LINENO: checking X11/Xft/Xft.h presence" >&5
12736 echo $ECHO_N "checking X11/Xft/Xft.h presence... $ECHO_C" >&6; }
12737 cat >conftest.$ac_ext <<_ACEOF
12738 /* confdefs.h. */
12739 _ACEOF
12740 cat confdefs.h >>conftest.$ac_ext
12741 cat >>conftest.$ac_ext <<_ACEOF
12742 /* end confdefs.h. */
12743 #include <X11/Xft/Xft.h>
12744 _ACEOF
12745 if { (ac_try="$ac_cpp conftest.$ac_ext"
12746 case "(($ac_try" in
12747 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12748 *) ac_try_echo=$ac_try;;
12749 esac
12750 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12751 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
12752 ac_status=$?
12753 grep -v '^ *+' conftest.er1 >conftest.err
12754 rm -f conftest.er1
12755 cat conftest.err >&5
12756 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12757 (exit $ac_status); } >/dev/null && {
12758 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
12759 test ! -s conftest.err
12760 }; then
12761 ac_header_preproc=yes
12762 else
12763 echo "$as_me: failed program was:" >&5
12764 sed 's/^/| /' conftest.$ac_ext >&5
12766 ac_header_preproc=no
12769 rm -f conftest.err conftest.$ac_ext
12770 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
12771 echo "${ECHO_T}$ac_header_preproc" >&6; }
12773 # So? What about this header?
12774 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
12775 yes:no: )
12776 { echo "$as_me:$LINENO: WARNING: X11/Xft/Xft.h: accepted by the compiler, rejected by the preprocessor!" >&5
12777 echo "$as_me: WARNING: X11/Xft/Xft.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
12778 { echo "$as_me:$LINENO: WARNING: X11/Xft/Xft.h: proceeding with the compiler's result" >&5
12779 echo "$as_me: WARNING: X11/Xft/Xft.h: proceeding with the compiler's result" >&2;}
12780 ac_header_preproc=yes
12782 no:yes:* )
12783 { echo "$as_me:$LINENO: WARNING: X11/Xft/Xft.h: present but cannot be compiled" >&5
12784 echo "$as_me: WARNING: X11/Xft/Xft.h: present but cannot be compiled" >&2;}
12785 { echo "$as_me:$LINENO: WARNING: X11/Xft/Xft.h: check for missing prerequisite headers?" >&5
12786 echo "$as_me: WARNING: X11/Xft/Xft.h: check for missing prerequisite headers?" >&2;}
12787 { echo "$as_me:$LINENO: WARNING: X11/Xft/Xft.h: see the Autoconf documentation" >&5
12788 echo "$as_me: WARNING: X11/Xft/Xft.h: see the Autoconf documentation" >&2;}
12789 { echo "$as_me:$LINENO: WARNING: X11/Xft/Xft.h: section \"Present But Cannot Be Compiled\"" >&5
12790 echo "$as_me: WARNING: X11/Xft/Xft.h: section \"Present But Cannot Be Compiled\"" >&2;}
12791 { echo "$as_me:$LINENO: WARNING: X11/Xft/Xft.h: proceeding with the preprocessor's result" >&5
12792 echo "$as_me: WARNING: X11/Xft/Xft.h: proceeding with the preprocessor's result" >&2;}
12793 { echo "$as_me:$LINENO: WARNING: X11/Xft/Xft.h: in the future, the compiler will take precedence" >&5
12794 echo "$as_me: WARNING: X11/Xft/Xft.h: in the future, the compiler will take precedence" >&2;}
12797 esac
12798 { echo "$as_me:$LINENO: checking for X11/Xft/Xft.h" >&5
12799 echo $ECHO_N "checking for X11/Xft/Xft.h... $ECHO_C" >&6; }
12800 if test "${ac_cv_header_X11_Xft_Xft_h+set}" = set; then
12801 echo $ECHO_N "(cached) $ECHO_C" >&6
12802 else
12803 ac_cv_header_X11_Xft_Xft_h=$ac_header_preproc
12805 { echo "$as_me:$LINENO: result: $ac_cv_header_X11_Xft_Xft_h" >&5
12806 echo "${ECHO_T}$ac_cv_header_X11_Xft_Xft_h" >&6; }
12809 if test $ac_cv_header_X11_Xft_Xft_h = yes; then
12810 { echo "$as_me:$LINENO: checking for XftFontOpen in -lXft" >&5
12811 echo $ECHO_N "checking for XftFontOpen in -lXft... $ECHO_C" >&6; }
12812 if test "${ac_cv_lib_Xft_XftFontOpen+set}" = set; then
12813 echo $ECHO_N "(cached) $ECHO_C" >&6
12814 else
12815 ac_check_lib_save_LIBS=$LIBS
12816 LIBS="-lXft $XFT_LIBS $LIBS"
12817 cat >conftest.$ac_ext <<_ACEOF
12818 /* confdefs.h. */
12819 _ACEOF
12820 cat confdefs.h >>conftest.$ac_ext
12821 cat >>conftest.$ac_ext <<_ACEOF
12822 /* end confdefs.h. */
12824 /* Override any GCC internal prototype to avoid an error.
12825 Use char because int might match the return type of a GCC
12826 builtin and then its argument prototype would still apply. */
12827 #ifdef __cplusplus
12828 extern "C"
12829 #endif
12830 char XftFontOpen ();
12832 main ()
12834 return XftFontOpen ();
12836 return 0;
12838 _ACEOF
12839 rm -f conftest.$ac_objext conftest$ac_exeext
12840 if { (ac_try="$ac_link"
12841 case "(($ac_try" in
12842 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12843 *) ac_try_echo=$ac_try;;
12844 esac
12845 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12846 (eval "$ac_link") 2>conftest.er1
12847 ac_status=$?
12848 grep -v '^ *+' conftest.er1 >conftest.err
12849 rm -f conftest.er1
12850 cat conftest.err >&5
12851 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12852 (exit $ac_status); } && {
12853 test -z "$ac_c_werror_flag" ||
12854 test ! -s conftest.err
12855 } && test -s conftest$ac_exeext &&
12856 $as_test_x conftest$ac_exeext; then
12857 ac_cv_lib_Xft_XftFontOpen=yes
12858 else
12859 echo "$as_me: failed program was:" >&5
12860 sed 's/^/| /' conftest.$ac_ext >&5
12862 ac_cv_lib_Xft_XftFontOpen=no
12865 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
12866 conftest$ac_exeext conftest.$ac_ext
12867 LIBS=$ac_check_lib_save_LIBS
12869 { echo "$as_me:$LINENO: result: $ac_cv_lib_Xft_XftFontOpen" >&5
12870 echo "${ECHO_T}$ac_cv_lib_Xft_XftFontOpen" >&6; }
12871 if test $ac_cv_lib_Xft_XftFontOpen = yes; then
12872 HAVE_XFT=yes
12879 if test "${HAVE_XFT}" = "yes"; then
12881 cat >>confdefs.h <<\_ACEOF
12882 #define HAVE_XFT 1
12883 _ACEOF
12886 C_SWITCH_X_SITE="$C_SWITCH_X_SITE $XFT_CFLAGS"
12887 else
12888 CPPFLAGS="$OLD_CPPFLAGS"
12889 CFLAGS="$OLD_CFLAGS"
12890 LIBS="$OLD_LIBS"
12891 fi # "${HAVE_XFT}" = "yes"
12892 fi # "$HAVE_XFT" != no
12893 fi # "x${with_xft}" != "xno"
12895 if test "$HAVE_XFT" != "yes"; then
12896 HAVE_XFT=no
12900 HAVE_FREETYPE=no
12901 ### Use -lfreetype if available, unless `--with-freetype=no'.
12902 if test "${HAVE_XFT}" = "yes"; then
12903 HAVE_FREETYPE=yes
12904 elif test "x${with_freetype}" != "xno" && test "x${with_x}" != "xno"; then
12907 succeeded=no
12909 # Extract the first word of "pkg-config", so it can be a program name with args.
12910 set dummy pkg-config; ac_word=$2
12911 { echo "$as_me:$LINENO: checking for $ac_word" >&5
12912 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
12913 if test "${ac_cv_path_PKG_CONFIG+set}" = set; then
12914 echo $ECHO_N "(cached) $ECHO_C" >&6
12915 else
12916 case $PKG_CONFIG in
12917 [\\/]* | ?:[\\/]*)
12918 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
12921 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12922 for as_dir in $PATH
12924 IFS=$as_save_IFS
12925 test -z "$as_dir" && as_dir=.
12926 for ac_exec_ext in '' $ac_executable_extensions; do
12927 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
12928 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
12929 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
12930 break 2
12932 done
12933 done
12934 IFS=$as_save_IFS
12936 test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG="no"
12938 esac
12940 PKG_CONFIG=$ac_cv_path_PKG_CONFIG
12941 if test -n "$PKG_CONFIG"; then
12942 { echo "$as_me:$LINENO: result: $PKG_CONFIG" >&5
12943 echo "${ECHO_T}$PKG_CONFIG" >&6; }
12944 else
12945 { echo "$as_me:$LINENO: result: no" >&5
12946 echo "${ECHO_T}no" >&6; }
12951 if test "$PKG_CONFIG" = "no" ; then
12952 HAVE_FREETYPE=no
12953 else
12954 PKG_CONFIG_MIN_VERSION=0.9.0
12955 if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
12956 { echo "$as_me:$LINENO: checking for freetype2" >&5
12957 echo $ECHO_N "checking for freetype2... $ECHO_C" >&6; }
12959 if $PKG_CONFIG --exists "freetype2" 2>&5; then
12960 { echo "$as_me:$LINENO: result: yes" >&5
12961 echo "${ECHO_T}yes" >&6; }
12962 succeeded=yes
12964 { echo "$as_me:$LINENO: checking FREETYPE_CFLAGS" >&5
12965 echo $ECHO_N "checking FREETYPE_CFLAGS... $ECHO_C" >&6; }
12966 FREETYPE_CFLAGS=`$PKG_CONFIG --cflags "freetype2"|sed -e 's,///*,/,g'`
12967 { echo "$as_me:$LINENO: result: $FREETYPE_CFLAGS" >&5
12968 echo "${ECHO_T}$FREETYPE_CFLAGS" >&6; }
12970 { echo "$as_me:$LINENO: checking FREETYPE_LIBS" >&5
12971 echo $ECHO_N "checking FREETYPE_LIBS... $ECHO_C" >&6; }
12972 FREETYPE_LIBS=`$PKG_CONFIG --libs "freetype2"|sed -e 's,///*,/,g'`
12973 { echo "$as_me:$LINENO: result: $FREETYPE_LIBS" >&5
12974 echo "${ECHO_T}$FREETYPE_LIBS" >&6; }
12975 else
12976 { echo "$as_me:$LINENO: result: no" >&5
12977 echo "${ECHO_T}no" >&6; }
12978 FREETYPE_CFLAGS=""
12979 FREETYPE_LIBS=""
12980 ## If we have a custom action on failure, don't print errors, but
12981 ## do set a variable so people can do so.
12982 FREETYPE_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "freetype2"`
12988 else
12989 echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
12990 echo "*** See http://www.freedesktop.org/software/pkgconfig"
12994 if test $succeeded = yes; then
12995 HAVE_FREETYPE=yes
12996 else
12997 HAVE_FREETYPE=no
13000 if test "${HAVE_FREETYPE}" = "yes"; then
13002 succeeded=no
13004 # Extract the first word of "pkg-config", so it can be a program name with args.
13005 set dummy pkg-config; ac_word=$2
13006 { echo "$as_me:$LINENO: checking for $ac_word" >&5
13007 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
13008 if test "${ac_cv_path_PKG_CONFIG+set}" = set; then
13009 echo $ECHO_N "(cached) $ECHO_C" >&6
13010 else
13011 case $PKG_CONFIG in
13012 [\\/]* | ?:[\\/]*)
13013 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
13016 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13017 for as_dir in $PATH
13019 IFS=$as_save_IFS
13020 test -z "$as_dir" && as_dir=.
13021 for ac_exec_ext in '' $ac_executable_extensions; do
13022 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
13023 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
13024 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
13025 break 2
13027 done
13028 done
13029 IFS=$as_save_IFS
13031 test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG="no"
13033 esac
13035 PKG_CONFIG=$ac_cv_path_PKG_CONFIG
13036 if test -n "$PKG_CONFIG"; then
13037 { echo "$as_me:$LINENO: result: $PKG_CONFIG" >&5
13038 echo "${ECHO_T}$PKG_CONFIG" >&6; }
13039 else
13040 { echo "$as_me:$LINENO: result: no" >&5
13041 echo "${ECHO_T}no" >&6; }
13046 if test "$PKG_CONFIG" = "no" ; then
13047 HAVE_FC=no
13048 else
13049 PKG_CONFIG_MIN_VERSION=0.9.0
13050 if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
13051 { echo "$as_me:$LINENO: checking for fontconfig" >&5
13052 echo $ECHO_N "checking for fontconfig... $ECHO_C" >&6; }
13054 if $PKG_CONFIG --exists "fontconfig" 2>&5; then
13055 { echo "$as_me:$LINENO: result: yes" >&5
13056 echo "${ECHO_T}yes" >&6; }
13057 succeeded=yes
13059 { echo "$as_me:$LINENO: checking FONTCONFIG_CFLAGS" >&5
13060 echo $ECHO_N "checking FONTCONFIG_CFLAGS... $ECHO_C" >&6; }
13061 FONTCONFIG_CFLAGS=`$PKG_CONFIG --cflags "fontconfig"|sed -e 's,///*,/,g'`
13062 { echo "$as_me:$LINENO: result: $FONTCONFIG_CFLAGS" >&5
13063 echo "${ECHO_T}$FONTCONFIG_CFLAGS" >&6; }
13065 { echo "$as_me:$LINENO: checking FONTCONFIG_LIBS" >&5
13066 echo $ECHO_N "checking FONTCONFIG_LIBS... $ECHO_C" >&6; }
13067 FONTCONFIG_LIBS=`$PKG_CONFIG --libs "fontconfig"|sed -e 's,///*,/,g'`
13068 { echo "$as_me:$LINENO: result: $FONTCONFIG_LIBS" >&5
13069 echo "${ECHO_T}$FONTCONFIG_LIBS" >&6; }
13070 else
13071 { echo "$as_me:$LINENO: result: no" >&5
13072 echo "${ECHO_T}no" >&6; }
13073 FONTCONFIG_CFLAGS=""
13074 FONTCONFIG_LIBS=""
13075 ## If we have a custom action on failure, don't print errors, but
13076 ## do set a variable so people can do so.
13077 FONTCONFIG_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "fontconfig"`
13083 else
13084 echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
13085 echo "*** See http://www.freedesktop.org/software/pkgconfig"
13089 if test $succeeded = yes; then
13090 HAVE_FC=yes
13091 else
13092 HAVE_FC=no
13095 if test "${HAVE_FC}" = "no"; then
13096 HAVE_FREETYPE=no
13101 HAVE_LIBOTF=no
13102 if test "${HAVE_FREETYPE}" = "yes"; then
13104 cat >>confdefs.h <<\_ACEOF
13105 #define HAVE_FREETYPE 1
13106 _ACEOF
13108 if test "${with_libotf}" != "no"; then
13110 succeeded=no
13112 # Extract the first word of "pkg-config", so it can be a program name with args.
13113 set dummy pkg-config; ac_word=$2
13114 { echo "$as_me:$LINENO: checking for $ac_word" >&5
13115 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
13116 if test "${ac_cv_path_PKG_CONFIG+set}" = set; then
13117 echo $ECHO_N "(cached) $ECHO_C" >&6
13118 else
13119 case $PKG_CONFIG in
13120 [\\/]* | ?:[\\/]*)
13121 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
13124 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13125 for as_dir in $PATH
13127 IFS=$as_save_IFS
13128 test -z "$as_dir" && as_dir=.
13129 for ac_exec_ext in '' $ac_executable_extensions; do
13130 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
13131 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
13132 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
13133 break 2
13135 done
13136 done
13137 IFS=$as_save_IFS
13139 test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG="no"
13141 esac
13143 PKG_CONFIG=$ac_cv_path_PKG_CONFIG
13144 if test -n "$PKG_CONFIG"; then
13145 { echo "$as_me:$LINENO: result: $PKG_CONFIG" >&5
13146 echo "${ECHO_T}$PKG_CONFIG" >&6; }
13147 else
13148 { echo "$as_me:$LINENO: result: no" >&5
13149 echo "${ECHO_T}no" >&6; }
13154 if test "$PKG_CONFIG" = "no" ; then
13155 HAVE_LIBOTF=no
13156 else
13157 PKG_CONFIG_MIN_VERSION=0.9.0
13158 if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
13159 { echo "$as_me:$LINENO: checking for libotf" >&5
13160 echo $ECHO_N "checking for libotf... $ECHO_C" >&6; }
13162 if $PKG_CONFIG --exists "libotf" 2>&5; then
13163 { echo "$as_me:$LINENO: result: yes" >&5
13164 echo "${ECHO_T}yes" >&6; }
13165 succeeded=yes
13167 { echo "$as_me:$LINENO: checking LIBOTF_CFLAGS" >&5
13168 echo $ECHO_N "checking LIBOTF_CFLAGS... $ECHO_C" >&6; }
13169 LIBOTF_CFLAGS=`$PKG_CONFIG --cflags "libotf"|sed -e 's,///*,/,g'`
13170 { echo "$as_me:$LINENO: result: $LIBOTF_CFLAGS" >&5
13171 echo "${ECHO_T}$LIBOTF_CFLAGS" >&6; }
13173 { echo "$as_me:$LINENO: checking LIBOTF_LIBS" >&5
13174 echo $ECHO_N "checking LIBOTF_LIBS... $ECHO_C" >&6; }
13175 LIBOTF_LIBS=`$PKG_CONFIG --libs "libotf"|sed -e 's,///*,/,g'`
13176 { echo "$as_me:$LINENO: result: $LIBOTF_LIBS" >&5
13177 echo "${ECHO_T}$LIBOTF_LIBS" >&6; }
13178 else
13179 { echo "$as_me:$LINENO: result: no" >&5
13180 echo "${ECHO_T}no" >&6; }
13181 LIBOTF_CFLAGS=""
13182 LIBOTF_LIBS=""
13183 ## If we have a custom action on failure, don't print errors, but
13184 ## do set a variable so people can do so.
13185 LIBOTF_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "libotf"`
13191 else
13192 echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
13193 echo "*** See http://www.freedesktop.org/software/pkgconfig"
13197 if test $succeeded = yes; then
13198 HAVE_LIBOTF=yes
13199 else
13200 HAVE_LIBOTF=no
13203 if test "$HAVE_LIBOTF" = "yes"; then
13205 cat >>confdefs.h <<\_ACEOF
13206 #define HAVE_LIBOTF 1
13207 _ACEOF
13213 HAVE_M17N_FLT=no
13214 if test "${HAVE_LIBOTF}" = yes; then
13215 if test "${with_m17n_flt}" != "no"; then
13217 succeeded=no
13219 # Extract the first word of "pkg-config", so it can be a program name with args.
13220 set dummy pkg-config; ac_word=$2
13221 { echo "$as_me:$LINENO: checking for $ac_word" >&5
13222 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
13223 if test "${ac_cv_path_PKG_CONFIG+set}" = set; then
13224 echo $ECHO_N "(cached) $ECHO_C" >&6
13225 else
13226 case $PKG_CONFIG in
13227 [\\/]* | ?:[\\/]*)
13228 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
13231 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13232 for as_dir in $PATH
13234 IFS=$as_save_IFS
13235 test -z "$as_dir" && as_dir=.
13236 for ac_exec_ext in '' $ac_executable_extensions; do
13237 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
13238 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
13239 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
13240 break 2
13242 done
13243 done
13244 IFS=$as_save_IFS
13246 test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG="no"
13248 esac
13250 PKG_CONFIG=$ac_cv_path_PKG_CONFIG
13251 if test -n "$PKG_CONFIG"; then
13252 { echo "$as_me:$LINENO: result: $PKG_CONFIG" >&5
13253 echo "${ECHO_T}$PKG_CONFIG" >&6; }
13254 else
13255 { echo "$as_me:$LINENO: result: no" >&5
13256 echo "${ECHO_T}no" >&6; }
13261 if test "$PKG_CONFIG" = "no" ; then
13262 HAVE_M17N_FLT=no
13263 else
13264 PKG_CONFIG_MIN_VERSION=0.9.0
13265 if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
13266 { echo "$as_me:$LINENO: checking for m17n-flt" >&5
13267 echo $ECHO_N "checking for m17n-flt... $ECHO_C" >&6; }
13269 if $PKG_CONFIG --exists "m17n-flt" 2>&5; then
13270 { echo "$as_me:$LINENO: result: yes" >&5
13271 echo "${ECHO_T}yes" >&6; }
13272 succeeded=yes
13274 { echo "$as_me:$LINENO: checking M17N_FLT_CFLAGS" >&5
13275 echo $ECHO_N "checking M17N_FLT_CFLAGS... $ECHO_C" >&6; }
13276 M17N_FLT_CFLAGS=`$PKG_CONFIG --cflags "m17n-flt"|sed -e 's,///*,/,g'`
13277 { echo "$as_me:$LINENO: result: $M17N_FLT_CFLAGS" >&5
13278 echo "${ECHO_T}$M17N_FLT_CFLAGS" >&6; }
13280 { echo "$as_me:$LINENO: checking M17N_FLT_LIBS" >&5
13281 echo $ECHO_N "checking M17N_FLT_LIBS... $ECHO_C" >&6; }
13282 M17N_FLT_LIBS=`$PKG_CONFIG --libs "m17n-flt"|sed -e 's,///*,/,g'`
13283 { echo "$as_me:$LINENO: result: $M17N_FLT_LIBS" >&5
13284 echo "${ECHO_T}$M17N_FLT_LIBS" >&6; }
13285 else
13286 { echo "$as_me:$LINENO: result: no" >&5
13287 echo "${ECHO_T}no" >&6; }
13288 M17N_FLT_CFLAGS=""
13289 M17N_FLT_LIBS=""
13290 ## If we have a custom action on failure, don't print errors, but
13291 ## do set a variable so people can do so.
13292 M17N_FLT_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "m17n-flt"`
13298 else
13299 echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
13300 echo "*** See http://www.freedesktop.org/software/pkgconfig"
13304 if test $succeeded = yes; then
13305 HAVE_M17N_FLT=yes
13306 else
13307 HAVE_M17N_FLT=no
13310 if test "$HAVE_M17N_FLT" = "yes"; then
13312 cat >>confdefs.h <<\_ACEOF
13313 #define HAVE_M17N_FLT 1
13314 _ACEOF
13329 ### End of font-backend section.
13331 ### Use -lXpm if available, unless `--with-xpm=no'.
13332 HAVE_XPM=no
13333 if test "${HAVE_X11}" = "yes"; then
13334 if test "${with_xpm}" != "no"; then
13335 if test "${ac_cv_header_X11_xpm_h+set}" = set; then
13336 { echo "$as_me:$LINENO: checking for X11/xpm.h" >&5
13337 echo $ECHO_N "checking for X11/xpm.h... $ECHO_C" >&6; }
13338 if test "${ac_cv_header_X11_xpm_h+set}" = set; then
13339 echo $ECHO_N "(cached) $ECHO_C" >&6
13341 { echo "$as_me:$LINENO: result: $ac_cv_header_X11_xpm_h" >&5
13342 echo "${ECHO_T}$ac_cv_header_X11_xpm_h" >&6; }
13343 else
13344 # Is the header compilable?
13345 { echo "$as_me:$LINENO: checking X11/xpm.h usability" >&5
13346 echo $ECHO_N "checking X11/xpm.h usability... $ECHO_C" >&6; }
13347 cat >conftest.$ac_ext <<_ACEOF
13348 /* confdefs.h. */
13349 _ACEOF
13350 cat confdefs.h >>conftest.$ac_ext
13351 cat >>conftest.$ac_ext <<_ACEOF
13352 /* end confdefs.h. */
13353 $ac_includes_default
13354 #include <X11/xpm.h>
13355 _ACEOF
13356 rm -f conftest.$ac_objext
13357 if { (ac_try="$ac_compile"
13358 case "(($ac_try" in
13359 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13360 *) ac_try_echo=$ac_try;;
13361 esac
13362 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13363 (eval "$ac_compile") 2>conftest.er1
13364 ac_status=$?
13365 grep -v '^ *+' conftest.er1 >conftest.err
13366 rm -f conftest.er1
13367 cat conftest.err >&5
13368 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13369 (exit $ac_status); } && {
13370 test -z "$ac_c_werror_flag" ||
13371 test ! -s conftest.err
13372 } && test -s conftest.$ac_objext; then
13373 ac_header_compiler=yes
13374 else
13375 echo "$as_me: failed program was:" >&5
13376 sed 's/^/| /' conftest.$ac_ext >&5
13378 ac_header_compiler=no
13381 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13382 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
13383 echo "${ECHO_T}$ac_header_compiler" >&6; }
13385 # Is the header present?
13386 { echo "$as_me:$LINENO: checking X11/xpm.h presence" >&5
13387 echo $ECHO_N "checking X11/xpm.h presence... $ECHO_C" >&6; }
13388 cat >conftest.$ac_ext <<_ACEOF
13389 /* confdefs.h. */
13390 _ACEOF
13391 cat confdefs.h >>conftest.$ac_ext
13392 cat >>conftest.$ac_ext <<_ACEOF
13393 /* end confdefs.h. */
13394 #include <X11/xpm.h>
13395 _ACEOF
13396 if { (ac_try="$ac_cpp conftest.$ac_ext"
13397 case "(($ac_try" in
13398 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13399 *) ac_try_echo=$ac_try;;
13400 esac
13401 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13402 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
13403 ac_status=$?
13404 grep -v '^ *+' conftest.er1 >conftest.err
13405 rm -f conftest.er1
13406 cat conftest.err >&5
13407 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13408 (exit $ac_status); } >/dev/null && {
13409 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
13410 test ! -s conftest.err
13411 }; then
13412 ac_header_preproc=yes
13413 else
13414 echo "$as_me: failed program was:" >&5
13415 sed 's/^/| /' conftest.$ac_ext >&5
13417 ac_header_preproc=no
13420 rm -f conftest.err conftest.$ac_ext
13421 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
13422 echo "${ECHO_T}$ac_header_preproc" >&6; }
13424 # So? What about this header?
13425 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
13426 yes:no: )
13427 { echo "$as_me:$LINENO: WARNING: X11/xpm.h: accepted by the compiler, rejected by the preprocessor!" >&5
13428 echo "$as_me: WARNING: X11/xpm.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
13429 { echo "$as_me:$LINENO: WARNING: X11/xpm.h: proceeding with the compiler's result" >&5
13430 echo "$as_me: WARNING: X11/xpm.h: proceeding with the compiler's result" >&2;}
13431 ac_header_preproc=yes
13433 no:yes:* )
13434 { echo "$as_me:$LINENO: WARNING: X11/xpm.h: present but cannot be compiled" >&5
13435 echo "$as_me: WARNING: X11/xpm.h: present but cannot be compiled" >&2;}
13436 { echo "$as_me:$LINENO: WARNING: X11/xpm.h: check for missing prerequisite headers?" >&5
13437 echo "$as_me: WARNING: X11/xpm.h: check for missing prerequisite headers?" >&2;}
13438 { echo "$as_me:$LINENO: WARNING: X11/xpm.h: see the Autoconf documentation" >&5
13439 echo "$as_me: WARNING: X11/xpm.h: see the Autoconf documentation" >&2;}
13440 { echo "$as_me:$LINENO: WARNING: X11/xpm.h: section \"Present But Cannot Be Compiled\"" >&5
13441 echo "$as_me: WARNING: X11/xpm.h: section \"Present But Cannot Be Compiled\"" >&2;}
13442 { echo "$as_me:$LINENO: WARNING: X11/xpm.h: proceeding with the preprocessor's result" >&5
13443 echo "$as_me: WARNING: X11/xpm.h: proceeding with the preprocessor's result" >&2;}
13444 { echo "$as_me:$LINENO: WARNING: X11/xpm.h: in the future, the compiler will take precedence" >&5
13445 echo "$as_me: WARNING: X11/xpm.h: in the future, the compiler will take precedence" >&2;}
13448 esac
13449 { echo "$as_me:$LINENO: checking for X11/xpm.h" >&5
13450 echo $ECHO_N "checking for X11/xpm.h... $ECHO_C" >&6; }
13451 if test "${ac_cv_header_X11_xpm_h+set}" = set; then
13452 echo $ECHO_N "(cached) $ECHO_C" >&6
13453 else
13454 ac_cv_header_X11_xpm_h=$ac_header_preproc
13456 { echo "$as_me:$LINENO: result: $ac_cv_header_X11_xpm_h" >&5
13457 echo "${ECHO_T}$ac_cv_header_X11_xpm_h" >&6; }
13460 if test $ac_cv_header_X11_xpm_h = yes; then
13461 { echo "$as_me:$LINENO: checking for XpmReadFileToPixmap in -lXpm" >&5
13462 echo $ECHO_N "checking for XpmReadFileToPixmap in -lXpm... $ECHO_C" >&6; }
13463 if test "${ac_cv_lib_Xpm_XpmReadFileToPixmap+set}" = set; then
13464 echo $ECHO_N "(cached) $ECHO_C" >&6
13465 else
13466 ac_check_lib_save_LIBS=$LIBS
13467 LIBS="-lXpm -lX11 $LIBS"
13468 cat >conftest.$ac_ext <<_ACEOF
13469 /* confdefs.h. */
13470 _ACEOF
13471 cat confdefs.h >>conftest.$ac_ext
13472 cat >>conftest.$ac_ext <<_ACEOF
13473 /* end confdefs.h. */
13475 /* Override any GCC internal prototype to avoid an error.
13476 Use char because int might match the return type of a GCC
13477 builtin and then its argument prototype would still apply. */
13478 #ifdef __cplusplus
13479 extern "C"
13480 #endif
13481 char XpmReadFileToPixmap ();
13483 main ()
13485 return XpmReadFileToPixmap ();
13487 return 0;
13489 _ACEOF
13490 rm -f conftest.$ac_objext conftest$ac_exeext
13491 if { (ac_try="$ac_link"
13492 case "(($ac_try" in
13493 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13494 *) ac_try_echo=$ac_try;;
13495 esac
13496 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13497 (eval "$ac_link") 2>conftest.er1
13498 ac_status=$?
13499 grep -v '^ *+' conftest.er1 >conftest.err
13500 rm -f conftest.er1
13501 cat conftest.err >&5
13502 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13503 (exit $ac_status); } && {
13504 test -z "$ac_c_werror_flag" ||
13505 test ! -s conftest.err
13506 } && test -s conftest$ac_exeext &&
13507 $as_test_x conftest$ac_exeext; then
13508 ac_cv_lib_Xpm_XpmReadFileToPixmap=yes
13509 else
13510 echo "$as_me: failed program was:" >&5
13511 sed 's/^/| /' conftest.$ac_ext >&5
13513 ac_cv_lib_Xpm_XpmReadFileToPixmap=no
13516 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
13517 conftest$ac_exeext conftest.$ac_ext
13518 LIBS=$ac_check_lib_save_LIBS
13520 { echo "$as_me:$LINENO: result: $ac_cv_lib_Xpm_XpmReadFileToPixmap" >&5
13521 echo "${ECHO_T}$ac_cv_lib_Xpm_XpmReadFileToPixmap" >&6; }
13522 if test $ac_cv_lib_Xpm_XpmReadFileToPixmap = yes; then
13523 HAVE_XPM=yes
13529 if test "${HAVE_XPM}" = "yes"; then
13530 { echo "$as_me:$LINENO: checking for XpmReturnAllocPixels preprocessor define" >&5
13531 echo $ECHO_N "checking for XpmReturnAllocPixels preprocessor define... $ECHO_C" >&6; }
13532 cat >conftest.$ac_ext <<_ACEOF
13533 /* confdefs.h. */
13534 _ACEOF
13535 cat confdefs.h >>conftest.$ac_ext
13536 cat >>conftest.$ac_ext <<_ACEOF
13537 /* end confdefs.h. */
13538 #include "X11/xpm.h"
13539 #ifndef XpmReturnAllocPixels
13540 no_return_alloc_pixels
13541 #endif
13543 _ACEOF
13544 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
13545 $EGREP "no_return_alloc_pixels" >/dev/null 2>&1; then
13546 HAVE_XPM=no
13547 else
13548 HAVE_XPM=yes
13550 rm -f conftest*
13553 if test "${HAVE_XPM}" = "yes"; then
13554 { echo "$as_me:$LINENO: result: yes" >&5
13555 echo "${ECHO_T}yes" >&6; }
13556 else
13557 { echo "$as_me:$LINENO: result: no" >&5
13558 echo "${ECHO_T}no" >&6; }
13563 if test "${HAVE_XPM}" = "yes"; then
13565 cat >>confdefs.h <<\_ACEOF
13566 #define HAVE_XPM 1
13567 _ACEOF
13572 ### Use -ljpeg if available, unless `--with-jpeg=no'.
13573 HAVE_JPEG=no
13574 if test "${HAVE_X11}" = "yes"; then
13575 if test "${with_jpeg}" != "no"; then
13576 if test "${ac_cv_header_jerror_h+set}" = set; then
13577 { echo "$as_me:$LINENO: checking for jerror.h" >&5
13578 echo $ECHO_N "checking for jerror.h... $ECHO_C" >&6; }
13579 if test "${ac_cv_header_jerror_h+set}" = set; then
13580 echo $ECHO_N "(cached) $ECHO_C" >&6
13582 { echo "$as_me:$LINENO: result: $ac_cv_header_jerror_h" >&5
13583 echo "${ECHO_T}$ac_cv_header_jerror_h" >&6; }
13584 else
13585 # Is the header compilable?
13586 { echo "$as_me:$LINENO: checking jerror.h usability" >&5
13587 echo $ECHO_N "checking jerror.h usability... $ECHO_C" >&6; }
13588 cat >conftest.$ac_ext <<_ACEOF
13589 /* confdefs.h. */
13590 _ACEOF
13591 cat confdefs.h >>conftest.$ac_ext
13592 cat >>conftest.$ac_ext <<_ACEOF
13593 /* end confdefs.h. */
13594 $ac_includes_default
13595 #include <jerror.h>
13596 _ACEOF
13597 rm -f conftest.$ac_objext
13598 if { (ac_try="$ac_compile"
13599 case "(($ac_try" in
13600 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13601 *) ac_try_echo=$ac_try;;
13602 esac
13603 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13604 (eval "$ac_compile") 2>conftest.er1
13605 ac_status=$?
13606 grep -v '^ *+' conftest.er1 >conftest.err
13607 rm -f conftest.er1
13608 cat conftest.err >&5
13609 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13610 (exit $ac_status); } && {
13611 test -z "$ac_c_werror_flag" ||
13612 test ! -s conftest.err
13613 } && test -s conftest.$ac_objext; then
13614 ac_header_compiler=yes
13615 else
13616 echo "$as_me: failed program was:" >&5
13617 sed 's/^/| /' conftest.$ac_ext >&5
13619 ac_header_compiler=no
13622 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13623 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
13624 echo "${ECHO_T}$ac_header_compiler" >&6; }
13626 # Is the header present?
13627 { echo "$as_me:$LINENO: checking jerror.h presence" >&5
13628 echo $ECHO_N "checking jerror.h presence... $ECHO_C" >&6; }
13629 cat >conftest.$ac_ext <<_ACEOF
13630 /* confdefs.h. */
13631 _ACEOF
13632 cat confdefs.h >>conftest.$ac_ext
13633 cat >>conftest.$ac_ext <<_ACEOF
13634 /* end confdefs.h. */
13635 #include <jerror.h>
13636 _ACEOF
13637 if { (ac_try="$ac_cpp conftest.$ac_ext"
13638 case "(($ac_try" in
13639 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13640 *) ac_try_echo=$ac_try;;
13641 esac
13642 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13643 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
13644 ac_status=$?
13645 grep -v '^ *+' conftest.er1 >conftest.err
13646 rm -f conftest.er1
13647 cat conftest.err >&5
13648 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13649 (exit $ac_status); } >/dev/null && {
13650 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
13651 test ! -s conftest.err
13652 }; then
13653 ac_header_preproc=yes
13654 else
13655 echo "$as_me: failed program was:" >&5
13656 sed 's/^/| /' conftest.$ac_ext >&5
13658 ac_header_preproc=no
13661 rm -f conftest.err conftest.$ac_ext
13662 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
13663 echo "${ECHO_T}$ac_header_preproc" >&6; }
13665 # So? What about this header?
13666 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
13667 yes:no: )
13668 { echo "$as_me:$LINENO: WARNING: jerror.h: accepted by the compiler, rejected by the preprocessor!" >&5
13669 echo "$as_me: WARNING: jerror.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
13670 { echo "$as_me:$LINENO: WARNING: jerror.h: proceeding with the compiler's result" >&5
13671 echo "$as_me: WARNING: jerror.h: proceeding with the compiler's result" >&2;}
13672 ac_header_preproc=yes
13674 no:yes:* )
13675 { echo "$as_me:$LINENO: WARNING: jerror.h: present but cannot be compiled" >&5
13676 echo "$as_me: WARNING: jerror.h: present but cannot be compiled" >&2;}
13677 { echo "$as_me:$LINENO: WARNING: jerror.h: check for missing prerequisite headers?" >&5
13678 echo "$as_me: WARNING: jerror.h: check for missing prerequisite headers?" >&2;}
13679 { echo "$as_me:$LINENO: WARNING: jerror.h: see the Autoconf documentation" >&5
13680 echo "$as_me: WARNING: jerror.h: see the Autoconf documentation" >&2;}
13681 { echo "$as_me:$LINENO: WARNING: jerror.h: section \"Present But Cannot Be Compiled\"" >&5
13682 echo "$as_me: WARNING: jerror.h: section \"Present But Cannot Be Compiled\"" >&2;}
13683 { echo "$as_me:$LINENO: WARNING: jerror.h: proceeding with the preprocessor's result" >&5
13684 echo "$as_me: WARNING: jerror.h: proceeding with the preprocessor's result" >&2;}
13685 { echo "$as_me:$LINENO: WARNING: jerror.h: in the future, the compiler will take precedence" >&5
13686 echo "$as_me: WARNING: jerror.h: in the future, the compiler will take precedence" >&2;}
13689 esac
13690 { echo "$as_me:$LINENO: checking for jerror.h" >&5
13691 echo $ECHO_N "checking for jerror.h... $ECHO_C" >&6; }
13692 if test "${ac_cv_header_jerror_h+set}" = set; then
13693 echo $ECHO_N "(cached) $ECHO_C" >&6
13694 else
13695 ac_cv_header_jerror_h=$ac_header_preproc
13697 { echo "$as_me:$LINENO: result: $ac_cv_header_jerror_h" >&5
13698 echo "${ECHO_T}$ac_cv_header_jerror_h" >&6; }
13701 if test $ac_cv_header_jerror_h = yes; then
13702 { echo "$as_me:$LINENO: checking for jpeg_destroy_compress in -ljpeg" >&5
13703 echo $ECHO_N "checking for jpeg_destroy_compress in -ljpeg... $ECHO_C" >&6; }
13704 if test "${ac_cv_lib_jpeg_jpeg_destroy_compress+set}" = set; then
13705 echo $ECHO_N "(cached) $ECHO_C" >&6
13706 else
13707 ac_check_lib_save_LIBS=$LIBS
13708 LIBS="-ljpeg $LIBS"
13709 cat >conftest.$ac_ext <<_ACEOF
13710 /* confdefs.h. */
13711 _ACEOF
13712 cat confdefs.h >>conftest.$ac_ext
13713 cat >>conftest.$ac_ext <<_ACEOF
13714 /* end confdefs.h. */
13716 /* Override any GCC internal prototype to avoid an error.
13717 Use char because int might match the return type of a GCC
13718 builtin and then its argument prototype would still apply. */
13719 #ifdef __cplusplus
13720 extern "C"
13721 #endif
13722 char jpeg_destroy_compress ();
13724 main ()
13726 return jpeg_destroy_compress ();
13728 return 0;
13730 _ACEOF
13731 rm -f conftest.$ac_objext conftest$ac_exeext
13732 if { (ac_try="$ac_link"
13733 case "(($ac_try" in
13734 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13735 *) ac_try_echo=$ac_try;;
13736 esac
13737 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13738 (eval "$ac_link") 2>conftest.er1
13739 ac_status=$?
13740 grep -v '^ *+' conftest.er1 >conftest.err
13741 rm -f conftest.er1
13742 cat conftest.err >&5
13743 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13744 (exit $ac_status); } && {
13745 test -z "$ac_c_werror_flag" ||
13746 test ! -s conftest.err
13747 } && test -s conftest$ac_exeext &&
13748 $as_test_x conftest$ac_exeext; then
13749 ac_cv_lib_jpeg_jpeg_destroy_compress=yes
13750 else
13751 echo "$as_me: failed program was:" >&5
13752 sed 's/^/| /' conftest.$ac_ext >&5
13754 ac_cv_lib_jpeg_jpeg_destroy_compress=no
13757 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
13758 conftest$ac_exeext conftest.$ac_ext
13759 LIBS=$ac_check_lib_save_LIBS
13761 { echo "$as_me:$LINENO: result: $ac_cv_lib_jpeg_jpeg_destroy_compress" >&5
13762 echo "${ECHO_T}$ac_cv_lib_jpeg_jpeg_destroy_compress" >&6; }
13763 if test $ac_cv_lib_jpeg_jpeg_destroy_compress = yes; then
13764 HAVE_JPEG=yes
13773 if test "${HAVE_JPEG}" = "yes"; then
13774 cat >>confdefs.h <<\_ACEOF
13775 #define HAVE_JPEG 1
13776 _ACEOF
13778 cat >conftest.$ac_ext <<_ACEOF
13779 /* confdefs.h. */
13780 _ACEOF
13781 cat confdefs.h >>conftest.$ac_ext
13782 cat >>conftest.$ac_ext <<_ACEOF
13783 /* end confdefs.h. */
13784 #include <jpeglib.h>
13785 version=JPEG_LIB_VERSION
13787 _ACEOF
13788 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
13789 $EGREP "version= *(6[2-9]|[7-9][0-9])" >/dev/null 2>&1; then
13790 cat >>confdefs.h <<\_ACEOF
13791 #define HAVE_JPEG 1
13792 _ACEOF
13794 else
13795 { echo "$as_me:$LINENO: WARNING: libjpeg found, but not version 6b or later" >&5
13796 echo "$as_me: WARNING: libjpeg found, but not version 6b or later" >&2;}
13797 HAVE_JPEG=no
13799 rm -f conftest*
13804 ### Use -lpng if available, unless `--with-png=no'.
13805 HAVE_PNG=no
13806 if test "${HAVE_X11}" = "yes"; then
13807 if test "${with_png}" != "no"; then
13808 # Debian unstable as of July 2003 has multiple libpngs, and puts png.h
13809 # in /usr/include/libpng.
13812 for ac_header in png.h libpng/png.h
13814 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
13815 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
13816 { echo "$as_me:$LINENO: checking for $ac_header" >&5
13817 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
13818 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
13819 echo $ECHO_N "(cached) $ECHO_C" >&6
13821 ac_res=`eval echo '${'$as_ac_Header'}'`
13822 { echo "$as_me:$LINENO: result: $ac_res" >&5
13823 echo "${ECHO_T}$ac_res" >&6; }
13824 else
13825 # Is the header compilable?
13826 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
13827 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
13828 cat >conftest.$ac_ext <<_ACEOF
13829 /* confdefs.h. */
13830 _ACEOF
13831 cat confdefs.h >>conftest.$ac_ext
13832 cat >>conftest.$ac_ext <<_ACEOF
13833 /* end confdefs.h. */
13834 $ac_includes_default
13835 #include <$ac_header>
13836 _ACEOF
13837 rm -f conftest.$ac_objext
13838 if { (ac_try="$ac_compile"
13839 case "(($ac_try" in
13840 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13841 *) ac_try_echo=$ac_try;;
13842 esac
13843 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13844 (eval "$ac_compile") 2>conftest.er1
13845 ac_status=$?
13846 grep -v '^ *+' conftest.er1 >conftest.err
13847 rm -f conftest.er1
13848 cat conftest.err >&5
13849 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13850 (exit $ac_status); } && {
13851 test -z "$ac_c_werror_flag" ||
13852 test ! -s conftest.err
13853 } && test -s conftest.$ac_objext; then
13854 ac_header_compiler=yes
13855 else
13856 echo "$as_me: failed program was:" >&5
13857 sed 's/^/| /' conftest.$ac_ext >&5
13859 ac_header_compiler=no
13862 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13863 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
13864 echo "${ECHO_T}$ac_header_compiler" >&6; }
13866 # Is the header present?
13867 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
13868 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
13869 cat >conftest.$ac_ext <<_ACEOF
13870 /* confdefs.h. */
13871 _ACEOF
13872 cat confdefs.h >>conftest.$ac_ext
13873 cat >>conftest.$ac_ext <<_ACEOF
13874 /* end confdefs.h. */
13875 #include <$ac_header>
13876 _ACEOF
13877 if { (ac_try="$ac_cpp conftest.$ac_ext"
13878 case "(($ac_try" in
13879 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13880 *) ac_try_echo=$ac_try;;
13881 esac
13882 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13883 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
13884 ac_status=$?
13885 grep -v '^ *+' conftest.er1 >conftest.err
13886 rm -f conftest.er1
13887 cat conftest.err >&5
13888 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13889 (exit $ac_status); } >/dev/null && {
13890 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
13891 test ! -s conftest.err
13892 }; then
13893 ac_header_preproc=yes
13894 else
13895 echo "$as_me: failed program was:" >&5
13896 sed 's/^/| /' conftest.$ac_ext >&5
13898 ac_header_preproc=no
13901 rm -f conftest.err conftest.$ac_ext
13902 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
13903 echo "${ECHO_T}$ac_header_preproc" >&6; }
13905 # So? What about this header?
13906 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
13907 yes:no: )
13908 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
13909 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
13910 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
13911 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
13912 ac_header_preproc=yes
13914 no:yes:* )
13915 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
13916 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
13917 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
13918 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
13919 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
13920 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
13921 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
13922 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
13923 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
13924 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
13925 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
13926 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
13929 esac
13930 { echo "$as_me:$LINENO: checking for $ac_header" >&5
13931 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
13932 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
13933 echo $ECHO_N "(cached) $ECHO_C" >&6
13934 else
13935 eval "$as_ac_Header=\$ac_header_preproc"
13937 ac_res=`eval echo '${'$as_ac_Header'}'`
13938 { echo "$as_me:$LINENO: result: $ac_res" >&5
13939 echo "${ECHO_T}$ac_res" >&6; }
13942 if test `eval echo '${'$as_ac_Header'}'` = yes; then
13943 cat >>confdefs.h <<_ACEOF
13944 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
13945 _ACEOF
13949 done
13951 if test "$ac_cv_header_png_h" = yes || test "$ac_cv_header_libpng_png_h" = yes ; then
13952 { echo "$as_me:$LINENO: checking for png_get_channels in -lpng" >&5
13953 echo $ECHO_N "checking for png_get_channels in -lpng... $ECHO_C" >&6; }
13954 if test "${ac_cv_lib_png_png_get_channels+set}" = set; then
13955 echo $ECHO_N "(cached) $ECHO_C" >&6
13956 else
13957 ac_check_lib_save_LIBS=$LIBS
13958 LIBS="-lpng -lz -lm $LIBS"
13959 cat >conftest.$ac_ext <<_ACEOF
13960 /* confdefs.h. */
13961 _ACEOF
13962 cat confdefs.h >>conftest.$ac_ext
13963 cat >>conftest.$ac_ext <<_ACEOF
13964 /* end confdefs.h. */
13966 /* Override any GCC internal prototype to avoid an error.
13967 Use char because int might match the return type of a GCC
13968 builtin and then its argument prototype would still apply. */
13969 #ifdef __cplusplus
13970 extern "C"
13971 #endif
13972 char png_get_channels ();
13974 main ()
13976 return png_get_channels ();
13978 return 0;
13980 _ACEOF
13981 rm -f conftest.$ac_objext conftest$ac_exeext
13982 if { (ac_try="$ac_link"
13983 case "(($ac_try" in
13984 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13985 *) ac_try_echo=$ac_try;;
13986 esac
13987 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13988 (eval "$ac_link") 2>conftest.er1
13989 ac_status=$?
13990 grep -v '^ *+' conftest.er1 >conftest.err
13991 rm -f conftest.er1
13992 cat conftest.err >&5
13993 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13994 (exit $ac_status); } && {
13995 test -z "$ac_c_werror_flag" ||
13996 test ! -s conftest.err
13997 } && test -s conftest$ac_exeext &&
13998 $as_test_x conftest$ac_exeext; then
13999 ac_cv_lib_png_png_get_channels=yes
14000 else
14001 echo "$as_me: failed program was:" >&5
14002 sed 's/^/| /' conftest.$ac_ext >&5
14004 ac_cv_lib_png_png_get_channels=no
14007 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
14008 conftest$ac_exeext conftest.$ac_ext
14009 LIBS=$ac_check_lib_save_LIBS
14011 { echo "$as_me:$LINENO: result: $ac_cv_lib_png_png_get_channels" >&5
14012 echo "${ECHO_T}$ac_cv_lib_png_png_get_channels" >&6; }
14013 if test $ac_cv_lib_png_png_get_channels = yes; then
14014 HAVE_PNG=yes
14020 if test "${HAVE_PNG}" = "yes"; then
14022 cat >>confdefs.h <<\_ACEOF
14023 #define HAVE_PNG 1
14024 _ACEOF
14029 ### Use -ltiff if available, unless `--with-tiff=no'.
14030 HAVE_TIFF=no
14031 if test "${HAVE_X11}" = "yes"; then
14032 if test "${with_tiff}" != "no"; then
14033 if test "${ac_cv_header_tiffio_h+set}" = set; then
14034 { echo "$as_me:$LINENO: checking for tiffio.h" >&5
14035 echo $ECHO_N "checking for tiffio.h... $ECHO_C" >&6; }
14036 if test "${ac_cv_header_tiffio_h+set}" = set; then
14037 echo $ECHO_N "(cached) $ECHO_C" >&6
14039 { echo "$as_me:$LINENO: result: $ac_cv_header_tiffio_h" >&5
14040 echo "${ECHO_T}$ac_cv_header_tiffio_h" >&6; }
14041 else
14042 # Is the header compilable?
14043 { echo "$as_me:$LINENO: checking tiffio.h usability" >&5
14044 echo $ECHO_N "checking tiffio.h usability... $ECHO_C" >&6; }
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. */
14051 $ac_includes_default
14052 #include <tiffio.h>
14053 _ACEOF
14054 rm -f conftest.$ac_objext
14055 if { (ac_try="$ac_compile"
14056 case "(($ac_try" in
14057 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14058 *) ac_try_echo=$ac_try;;
14059 esac
14060 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14061 (eval "$ac_compile") 2>conftest.er1
14062 ac_status=$?
14063 grep -v '^ *+' conftest.er1 >conftest.err
14064 rm -f conftest.er1
14065 cat conftest.err >&5
14066 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14067 (exit $ac_status); } && {
14068 test -z "$ac_c_werror_flag" ||
14069 test ! -s conftest.err
14070 } && test -s conftest.$ac_objext; then
14071 ac_header_compiler=yes
14072 else
14073 echo "$as_me: failed program was:" >&5
14074 sed 's/^/| /' conftest.$ac_ext >&5
14076 ac_header_compiler=no
14079 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14080 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
14081 echo "${ECHO_T}$ac_header_compiler" >&6; }
14083 # Is the header present?
14084 { echo "$as_me:$LINENO: checking tiffio.h presence" >&5
14085 echo $ECHO_N "checking tiffio.h presence... $ECHO_C" >&6; }
14086 cat >conftest.$ac_ext <<_ACEOF
14087 /* confdefs.h. */
14088 _ACEOF
14089 cat confdefs.h >>conftest.$ac_ext
14090 cat >>conftest.$ac_ext <<_ACEOF
14091 /* end confdefs.h. */
14092 #include <tiffio.h>
14093 _ACEOF
14094 if { (ac_try="$ac_cpp conftest.$ac_ext"
14095 case "(($ac_try" in
14096 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14097 *) ac_try_echo=$ac_try;;
14098 esac
14099 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14100 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
14101 ac_status=$?
14102 grep -v '^ *+' conftest.er1 >conftest.err
14103 rm -f conftest.er1
14104 cat conftest.err >&5
14105 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14106 (exit $ac_status); } >/dev/null && {
14107 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
14108 test ! -s conftest.err
14109 }; then
14110 ac_header_preproc=yes
14111 else
14112 echo "$as_me: failed program was:" >&5
14113 sed 's/^/| /' conftest.$ac_ext >&5
14115 ac_header_preproc=no
14118 rm -f conftest.err conftest.$ac_ext
14119 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
14120 echo "${ECHO_T}$ac_header_preproc" >&6; }
14122 # So? What about this header?
14123 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
14124 yes:no: )
14125 { echo "$as_me:$LINENO: WARNING: tiffio.h: accepted by the compiler, rejected by the preprocessor!" >&5
14126 echo "$as_me: WARNING: tiffio.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
14127 { echo "$as_me:$LINENO: WARNING: tiffio.h: proceeding with the compiler's result" >&5
14128 echo "$as_me: WARNING: tiffio.h: proceeding with the compiler's result" >&2;}
14129 ac_header_preproc=yes
14131 no:yes:* )
14132 { echo "$as_me:$LINENO: WARNING: tiffio.h: present but cannot be compiled" >&5
14133 echo "$as_me: WARNING: tiffio.h: present but cannot be compiled" >&2;}
14134 { echo "$as_me:$LINENO: WARNING: tiffio.h: check for missing prerequisite headers?" >&5
14135 echo "$as_me: WARNING: tiffio.h: check for missing prerequisite headers?" >&2;}
14136 { echo "$as_me:$LINENO: WARNING: tiffio.h: see the Autoconf documentation" >&5
14137 echo "$as_me: WARNING: tiffio.h: see the Autoconf documentation" >&2;}
14138 { echo "$as_me:$LINENO: WARNING: tiffio.h: section \"Present But Cannot Be Compiled\"" >&5
14139 echo "$as_me: WARNING: tiffio.h: section \"Present But Cannot Be Compiled\"" >&2;}
14140 { echo "$as_me:$LINENO: WARNING: tiffio.h: proceeding with the preprocessor's result" >&5
14141 echo "$as_me: WARNING: tiffio.h: proceeding with the preprocessor's result" >&2;}
14142 { echo "$as_me:$LINENO: WARNING: tiffio.h: in the future, the compiler will take precedence" >&5
14143 echo "$as_me: WARNING: tiffio.h: in the future, the compiler will take precedence" >&2;}
14146 esac
14147 { echo "$as_me:$LINENO: checking for tiffio.h" >&5
14148 echo $ECHO_N "checking for tiffio.h... $ECHO_C" >&6; }
14149 if test "${ac_cv_header_tiffio_h+set}" = set; then
14150 echo $ECHO_N "(cached) $ECHO_C" >&6
14151 else
14152 ac_cv_header_tiffio_h=$ac_header_preproc
14154 { echo "$as_me:$LINENO: result: $ac_cv_header_tiffio_h" >&5
14155 echo "${ECHO_T}$ac_cv_header_tiffio_h" >&6; }
14158 if test $ac_cv_header_tiffio_h = yes; then
14159 tifflibs="-lz -lm"
14160 # At least one tiff package requires the jpeg library.
14161 if test "${HAVE_JPEG}" = yes; then tifflibs="-ljpeg $tifflibs"; fi
14162 { echo "$as_me:$LINENO: checking for TIFFGetVersion in -ltiff" >&5
14163 echo $ECHO_N "checking for TIFFGetVersion in -ltiff... $ECHO_C" >&6; }
14164 if test "${ac_cv_lib_tiff_TIFFGetVersion+set}" = set; then
14165 echo $ECHO_N "(cached) $ECHO_C" >&6
14166 else
14167 ac_check_lib_save_LIBS=$LIBS
14168 LIBS="-ltiff $tifflibs $LIBS"
14169 cat >conftest.$ac_ext <<_ACEOF
14170 /* confdefs.h. */
14171 _ACEOF
14172 cat confdefs.h >>conftest.$ac_ext
14173 cat >>conftest.$ac_ext <<_ACEOF
14174 /* end confdefs.h. */
14176 /* Override any GCC internal prototype to avoid an error.
14177 Use char because int might match the return type of a GCC
14178 builtin and then its argument prototype would still apply. */
14179 #ifdef __cplusplus
14180 extern "C"
14181 #endif
14182 char TIFFGetVersion ();
14184 main ()
14186 return TIFFGetVersion ();
14188 return 0;
14190 _ACEOF
14191 rm -f conftest.$ac_objext conftest$ac_exeext
14192 if { (ac_try="$ac_link"
14193 case "(($ac_try" in
14194 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14195 *) ac_try_echo=$ac_try;;
14196 esac
14197 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14198 (eval "$ac_link") 2>conftest.er1
14199 ac_status=$?
14200 grep -v '^ *+' conftest.er1 >conftest.err
14201 rm -f conftest.er1
14202 cat conftest.err >&5
14203 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14204 (exit $ac_status); } && {
14205 test -z "$ac_c_werror_flag" ||
14206 test ! -s conftest.err
14207 } && test -s conftest$ac_exeext &&
14208 $as_test_x conftest$ac_exeext; then
14209 ac_cv_lib_tiff_TIFFGetVersion=yes
14210 else
14211 echo "$as_me: failed program was:" >&5
14212 sed 's/^/| /' conftest.$ac_ext >&5
14214 ac_cv_lib_tiff_TIFFGetVersion=no
14217 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
14218 conftest$ac_exeext conftest.$ac_ext
14219 LIBS=$ac_check_lib_save_LIBS
14221 { echo "$as_me:$LINENO: result: $ac_cv_lib_tiff_TIFFGetVersion" >&5
14222 echo "${ECHO_T}$ac_cv_lib_tiff_TIFFGetVersion" >&6; }
14223 if test $ac_cv_lib_tiff_TIFFGetVersion = yes; then
14224 HAVE_TIFF=yes
14232 if test "${HAVE_TIFF}" = "yes"; then
14234 cat >>confdefs.h <<\_ACEOF
14235 #define HAVE_TIFF 1
14236 _ACEOF
14241 ### Use -lgif or -lungif if available, unless `--with-gif=no'.
14242 HAVE_GIF=no
14243 if test "${HAVE_X11}" = "yes" && test "${with_gif}" != "no"; then
14244 if test "${ac_cv_header_gif_lib_h+set}" = set; then
14245 { echo "$as_me:$LINENO: checking for gif_lib.h" >&5
14246 echo $ECHO_N "checking for gif_lib.h... $ECHO_C" >&6; }
14247 if test "${ac_cv_header_gif_lib_h+set}" = set; then
14248 echo $ECHO_N "(cached) $ECHO_C" >&6
14250 { echo "$as_me:$LINENO: result: $ac_cv_header_gif_lib_h" >&5
14251 echo "${ECHO_T}$ac_cv_header_gif_lib_h" >&6; }
14252 else
14253 # Is the header compilable?
14254 { echo "$as_me:$LINENO: checking gif_lib.h usability" >&5
14255 echo $ECHO_N "checking gif_lib.h usability... $ECHO_C" >&6; }
14256 cat >conftest.$ac_ext <<_ACEOF
14257 /* confdefs.h. */
14258 _ACEOF
14259 cat confdefs.h >>conftest.$ac_ext
14260 cat >>conftest.$ac_ext <<_ACEOF
14261 /* end confdefs.h. */
14262 $ac_includes_default
14263 #include <gif_lib.h>
14264 _ACEOF
14265 rm -f conftest.$ac_objext
14266 if { (ac_try="$ac_compile"
14267 case "(($ac_try" in
14268 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14269 *) ac_try_echo=$ac_try;;
14270 esac
14271 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14272 (eval "$ac_compile") 2>conftest.er1
14273 ac_status=$?
14274 grep -v '^ *+' conftest.er1 >conftest.err
14275 rm -f conftest.er1
14276 cat conftest.err >&5
14277 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14278 (exit $ac_status); } && {
14279 test -z "$ac_c_werror_flag" ||
14280 test ! -s conftest.err
14281 } && test -s conftest.$ac_objext; then
14282 ac_header_compiler=yes
14283 else
14284 echo "$as_me: failed program was:" >&5
14285 sed 's/^/| /' conftest.$ac_ext >&5
14287 ac_header_compiler=no
14290 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14291 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
14292 echo "${ECHO_T}$ac_header_compiler" >&6; }
14294 # Is the header present?
14295 { echo "$as_me:$LINENO: checking gif_lib.h presence" >&5
14296 echo $ECHO_N "checking gif_lib.h presence... $ECHO_C" >&6; }
14297 cat >conftest.$ac_ext <<_ACEOF
14298 /* confdefs.h. */
14299 _ACEOF
14300 cat confdefs.h >>conftest.$ac_ext
14301 cat >>conftest.$ac_ext <<_ACEOF
14302 /* end confdefs.h. */
14303 #include <gif_lib.h>
14304 _ACEOF
14305 if { (ac_try="$ac_cpp conftest.$ac_ext"
14306 case "(($ac_try" in
14307 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14308 *) ac_try_echo=$ac_try;;
14309 esac
14310 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14311 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
14312 ac_status=$?
14313 grep -v '^ *+' conftest.er1 >conftest.err
14314 rm -f conftest.er1
14315 cat conftest.err >&5
14316 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14317 (exit $ac_status); } >/dev/null && {
14318 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
14319 test ! -s conftest.err
14320 }; then
14321 ac_header_preproc=yes
14322 else
14323 echo "$as_me: failed program was:" >&5
14324 sed 's/^/| /' conftest.$ac_ext >&5
14326 ac_header_preproc=no
14329 rm -f conftest.err conftest.$ac_ext
14330 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
14331 echo "${ECHO_T}$ac_header_preproc" >&6; }
14333 # So? What about this header?
14334 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
14335 yes:no: )
14336 { echo "$as_me:$LINENO: WARNING: gif_lib.h: accepted by the compiler, rejected by the preprocessor!" >&5
14337 echo "$as_me: WARNING: gif_lib.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
14338 { echo "$as_me:$LINENO: WARNING: gif_lib.h: proceeding with the compiler's result" >&5
14339 echo "$as_me: WARNING: gif_lib.h: proceeding with the compiler's result" >&2;}
14340 ac_header_preproc=yes
14342 no:yes:* )
14343 { echo "$as_me:$LINENO: WARNING: gif_lib.h: present but cannot be compiled" >&5
14344 echo "$as_me: WARNING: gif_lib.h: present but cannot be compiled" >&2;}
14345 { echo "$as_me:$LINENO: WARNING: gif_lib.h: check for missing prerequisite headers?" >&5
14346 echo "$as_me: WARNING: gif_lib.h: check for missing prerequisite headers?" >&2;}
14347 { echo "$as_me:$LINENO: WARNING: gif_lib.h: see the Autoconf documentation" >&5
14348 echo "$as_me: WARNING: gif_lib.h: see the Autoconf documentation" >&2;}
14349 { echo "$as_me:$LINENO: WARNING: gif_lib.h: section \"Present But Cannot Be Compiled\"" >&5
14350 echo "$as_me: WARNING: gif_lib.h: section \"Present But Cannot Be Compiled\"" >&2;}
14351 { echo "$as_me:$LINENO: WARNING: gif_lib.h: proceeding with the preprocessor's result" >&5
14352 echo "$as_me: WARNING: gif_lib.h: proceeding with the preprocessor's result" >&2;}
14353 { echo "$as_me:$LINENO: WARNING: gif_lib.h: in the future, the compiler will take precedence" >&5
14354 echo "$as_me: WARNING: gif_lib.h: in the future, the compiler will take precedence" >&2;}
14357 esac
14358 { echo "$as_me:$LINENO: checking for gif_lib.h" >&5
14359 echo $ECHO_N "checking for gif_lib.h... $ECHO_C" >&6; }
14360 if test "${ac_cv_header_gif_lib_h+set}" = set; then
14361 echo $ECHO_N "(cached) $ECHO_C" >&6
14362 else
14363 ac_cv_header_gif_lib_h=$ac_header_preproc
14365 { echo "$as_me:$LINENO: result: $ac_cv_header_gif_lib_h" >&5
14366 echo "${ECHO_T}$ac_cv_header_gif_lib_h" >&6; }
14369 if test $ac_cv_header_gif_lib_h = yes; then
14370 # EGifPutExtensionLast only exists from version libungif-4.1.0b1.
14371 # Earlier versions can crash Emacs.
14372 { echo "$as_me:$LINENO: checking for EGifPutExtensionLast in -lgif" >&5
14373 echo $ECHO_N "checking for EGifPutExtensionLast in -lgif... $ECHO_C" >&6; }
14374 if test "${ac_cv_lib_gif_EGifPutExtensionLast+set}" = set; then
14375 echo $ECHO_N "(cached) $ECHO_C" >&6
14376 else
14377 ac_check_lib_save_LIBS=$LIBS
14378 LIBS="-lgif $LIBS"
14379 cat >conftest.$ac_ext <<_ACEOF
14380 /* confdefs.h. */
14381 _ACEOF
14382 cat confdefs.h >>conftest.$ac_ext
14383 cat >>conftest.$ac_ext <<_ACEOF
14384 /* end confdefs.h. */
14386 /* Override any GCC internal prototype to avoid an error.
14387 Use char because int might match the return type of a GCC
14388 builtin and then its argument prototype would still apply. */
14389 #ifdef __cplusplus
14390 extern "C"
14391 #endif
14392 char EGifPutExtensionLast ();
14394 main ()
14396 return EGifPutExtensionLast ();
14398 return 0;
14400 _ACEOF
14401 rm -f conftest.$ac_objext conftest$ac_exeext
14402 if { (ac_try="$ac_link"
14403 case "(($ac_try" in
14404 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14405 *) ac_try_echo=$ac_try;;
14406 esac
14407 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14408 (eval "$ac_link") 2>conftest.er1
14409 ac_status=$?
14410 grep -v '^ *+' conftest.er1 >conftest.err
14411 rm -f conftest.er1
14412 cat conftest.err >&5
14413 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14414 (exit $ac_status); } && {
14415 test -z "$ac_c_werror_flag" ||
14416 test ! -s conftest.err
14417 } && test -s conftest$ac_exeext &&
14418 $as_test_x conftest$ac_exeext; then
14419 ac_cv_lib_gif_EGifPutExtensionLast=yes
14420 else
14421 echo "$as_me: failed program was:" >&5
14422 sed 's/^/| /' conftest.$ac_ext >&5
14424 ac_cv_lib_gif_EGifPutExtensionLast=no
14427 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
14428 conftest$ac_exeext conftest.$ac_ext
14429 LIBS=$ac_check_lib_save_LIBS
14431 { echo "$as_me:$LINENO: result: $ac_cv_lib_gif_EGifPutExtensionLast" >&5
14432 echo "${ECHO_T}$ac_cv_lib_gif_EGifPutExtensionLast" >&6; }
14433 if test $ac_cv_lib_gif_EGifPutExtensionLast = yes; then
14434 HAVE_GIF=yes
14435 else
14436 try_libungif=yes
14443 if test "$HAVE_GIF" = yes; then
14444 ac_gif_lib_name="-lgif"
14447 # If gif_lib.h but no libgif, try libungif.
14448 if test x"$try_libungif" = xyes; then
14449 { echo "$as_me:$LINENO: checking for EGifPutExtensionLast in -lungif" >&5
14450 echo $ECHO_N "checking for EGifPutExtensionLast in -lungif... $ECHO_C" >&6; }
14451 if test "${ac_cv_lib_ungif_EGifPutExtensionLast+set}" = set; then
14452 echo $ECHO_N "(cached) $ECHO_C" >&6
14453 else
14454 ac_check_lib_save_LIBS=$LIBS
14455 LIBS="-lungif $LIBS"
14456 cat >conftest.$ac_ext <<_ACEOF
14457 /* confdefs.h. */
14458 _ACEOF
14459 cat confdefs.h >>conftest.$ac_ext
14460 cat >>conftest.$ac_ext <<_ACEOF
14461 /* end confdefs.h. */
14463 /* Override any GCC internal prototype to avoid an error.
14464 Use char because int might match the return type of a GCC
14465 builtin and then its argument prototype would still apply. */
14466 #ifdef __cplusplus
14467 extern "C"
14468 #endif
14469 char EGifPutExtensionLast ();
14471 main ()
14473 return EGifPutExtensionLast ();
14475 return 0;
14477 _ACEOF
14478 rm -f conftest.$ac_objext conftest$ac_exeext
14479 if { (ac_try="$ac_link"
14480 case "(($ac_try" in
14481 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14482 *) ac_try_echo=$ac_try;;
14483 esac
14484 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14485 (eval "$ac_link") 2>conftest.er1
14486 ac_status=$?
14487 grep -v '^ *+' conftest.er1 >conftest.err
14488 rm -f conftest.er1
14489 cat conftest.err >&5
14490 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14491 (exit $ac_status); } && {
14492 test -z "$ac_c_werror_flag" ||
14493 test ! -s conftest.err
14494 } && test -s conftest$ac_exeext &&
14495 $as_test_x conftest$ac_exeext; then
14496 ac_cv_lib_ungif_EGifPutExtensionLast=yes
14497 else
14498 echo "$as_me: failed program was:" >&5
14499 sed 's/^/| /' conftest.$ac_ext >&5
14501 ac_cv_lib_ungif_EGifPutExtensionLast=no
14504 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
14505 conftest$ac_exeext conftest.$ac_ext
14506 LIBS=$ac_check_lib_save_LIBS
14508 { echo "$as_me:$LINENO: result: $ac_cv_lib_ungif_EGifPutExtensionLast" >&5
14509 echo "${ECHO_T}$ac_cv_lib_ungif_EGifPutExtensionLast" >&6; }
14510 if test $ac_cv_lib_ungif_EGifPutExtensionLast = yes; then
14511 HAVE_GIF=yes
14515 if test "$HAVE_GIF" = yes; then
14517 cat >>confdefs.h <<\_ACEOF
14518 #define LIBGIF -lungif
14519 _ACEOF
14521 ac_gif_lib_name="-lungif"
14525 if test "${HAVE_GIF}" = "yes"; then
14527 cat >>confdefs.h <<\_ACEOF
14528 #define HAVE_GIF 1
14529 _ACEOF
14534 if test "${HAVE_X11}" = "yes"; then
14535 MISSING=""
14536 WITH_NO=""
14537 test "${with_xpm}" != "no" && test "${HAVE_XPM}" != "yes" &&
14538 MISSING="libXpm" && WITH_NO="--with-xpm=no"
14539 test "${with_jpeg}" != "no" && test "${HAVE_JPEG}" != "yes" &&
14540 MISSING="$MISSING libjpeg" && WITH_NO="$WITH_NO --with-jpeg=no"
14541 test "${with_png}" != "no" && test "${HAVE_PNG}" != "yes" &&
14542 MISSING="$MISSING libpng" && WITH_NO="$WITH_NO --with-png=no"
14543 test "${with_gif}" != "no" && test "${HAVE_GIF}" != "yes" &&
14544 MISSING="$MISSING libgif/libungif" && WITH_NO="$WITH_NO --with-gif=no"
14545 test "${with_tiff}" != "no" && test "${HAVE_TIFF}" != "yes" &&
14546 MISSING="$MISSING libtiff" && WITH_NO="$WITH_NO --with-tiff=no"
14548 if test "X${MISSING}" != X; then
14549 { { echo "$as_me:$LINENO: error: The following required libraries were not found:
14550 $MISSING
14551 Maybe some development libraries/packages are missing?
14552 If you don't want to link with them give
14553 $WITH_NO
14554 as options to configure" >&5
14555 echo "$as_me: error: The following required libraries were not found:
14556 $MISSING
14557 Maybe some development libraries/packages are missing?
14558 If you don't want to link with them give
14559 $WITH_NO
14560 as options to configure" >&2;}
14561 { (exit 1); exit 1; }; }
14565 ### Use -lgpm if available, unless `--with-gpm=no'.
14566 HAVE_GPM=no
14567 if test "${with_gpm}" != "no"; then
14568 if test "${ac_cv_header_gpm_h+set}" = set; then
14569 { echo "$as_me:$LINENO: checking for gpm.h" >&5
14570 echo $ECHO_N "checking for gpm.h... $ECHO_C" >&6; }
14571 if test "${ac_cv_header_gpm_h+set}" = set; then
14572 echo $ECHO_N "(cached) $ECHO_C" >&6
14574 { echo "$as_me:$LINENO: result: $ac_cv_header_gpm_h" >&5
14575 echo "${ECHO_T}$ac_cv_header_gpm_h" >&6; }
14576 else
14577 # Is the header compilable?
14578 { echo "$as_me:$LINENO: checking gpm.h usability" >&5
14579 echo $ECHO_N "checking gpm.h usability... $ECHO_C" >&6; }
14580 cat >conftest.$ac_ext <<_ACEOF
14581 /* confdefs.h. */
14582 _ACEOF
14583 cat confdefs.h >>conftest.$ac_ext
14584 cat >>conftest.$ac_ext <<_ACEOF
14585 /* end confdefs.h. */
14586 $ac_includes_default
14587 #include <gpm.h>
14588 _ACEOF
14589 rm -f conftest.$ac_objext
14590 if { (ac_try="$ac_compile"
14591 case "(($ac_try" in
14592 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14593 *) ac_try_echo=$ac_try;;
14594 esac
14595 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14596 (eval "$ac_compile") 2>conftest.er1
14597 ac_status=$?
14598 grep -v '^ *+' conftest.er1 >conftest.err
14599 rm -f conftest.er1
14600 cat conftest.err >&5
14601 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14602 (exit $ac_status); } && {
14603 test -z "$ac_c_werror_flag" ||
14604 test ! -s conftest.err
14605 } && test -s conftest.$ac_objext; then
14606 ac_header_compiler=yes
14607 else
14608 echo "$as_me: failed program was:" >&5
14609 sed 's/^/| /' conftest.$ac_ext >&5
14611 ac_header_compiler=no
14614 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14615 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
14616 echo "${ECHO_T}$ac_header_compiler" >&6; }
14618 # Is the header present?
14619 { echo "$as_me:$LINENO: checking gpm.h presence" >&5
14620 echo $ECHO_N "checking gpm.h presence... $ECHO_C" >&6; }
14621 cat >conftest.$ac_ext <<_ACEOF
14622 /* confdefs.h. */
14623 _ACEOF
14624 cat confdefs.h >>conftest.$ac_ext
14625 cat >>conftest.$ac_ext <<_ACEOF
14626 /* end confdefs.h. */
14627 #include <gpm.h>
14628 _ACEOF
14629 if { (ac_try="$ac_cpp conftest.$ac_ext"
14630 case "(($ac_try" in
14631 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14632 *) ac_try_echo=$ac_try;;
14633 esac
14634 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14635 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
14636 ac_status=$?
14637 grep -v '^ *+' conftest.er1 >conftest.err
14638 rm -f conftest.er1
14639 cat conftest.err >&5
14640 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14641 (exit $ac_status); } >/dev/null && {
14642 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
14643 test ! -s conftest.err
14644 }; then
14645 ac_header_preproc=yes
14646 else
14647 echo "$as_me: failed program was:" >&5
14648 sed 's/^/| /' conftest.$ac_ext >&5
14650 ac_header_preproc=no
14653 rm -f conftest.err conftest.$ac_ext
14654 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
14655 echo "${ECHO_T}$ac_header_preproc" >&6; }
14657 # So? What about this header?
14658 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
14659 yes:no: )
14660 { echo "$as_me:$LINENO: WARNING: gpm.h: accepted by the compiler, rejected by the preprocessor!" >&5
14661 echo "$as_me: WARNING: gpm.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
14662 { echo "$as_me:$LINENO: WARNING: gpm.h: proceeding with the compiler's result" >&5
14663 echo "$as_me: WARNING: gpm.h: proceeding with the compiler's result" >&2;}
14664 ac_header_preproc=yes
14666 no:yes:* )
14667 { echo "$as_me:$LINENO: WARNING: gpm.h: present but cannot be compiled" >&5
14668 echo "$as_me: WARNING: gpm.h: present but cannot be compiled" >&2;}
14669 { echo "$as_me:$LINENO: WARNING: gpm.h: check for missing prerequisite headers?" >&5
14670 echo "$as_me: WARNING: gpm.h: check for missing prerequisite headers?" >&2;}
14671 { echo "$as_me:$LINENO: WARNING: gpm.h: see the Autoconf documentation" >&5
14672 echo "$as_me: WARNING: gpm.h: see the Autoconf documentation" >&2;}
14673 { echo "$as_me:$LINENO: WARNING: gpm.h: section \"Present But Cannot Be Compiled\"" >&5
14674 echo "$as_me: WARNING: gpm.h: section \"Present But Cannot Be Compiled\"" >&2;}
14675 { echo "$as_me:$LINENO: WARNING: gpm.h: proceeding with the preprocessor's result" >&5
14676 echo "$as_me: WARNING: gpm.h: proceeding with the preprocessor's result" >&2;}
14677 { echo "$as_me:$LINENO: WARNING: gpm.h: in the future, the compiler will take precedence" >&5
14678 echo "$as_me: WARNING: gpm.h: in the future, the compiler will take precedence" >&2;}
14681 esac
14682 { echo "$as_me:$LINENO: checking for gpm.h" >&5
14683 echo $ECHO_N "checking for gpm.h... $ECHO_C" >&6; }
14684 if test "${ac_cv_header_gpm_h+set}" = set; then
14685 echo $ECHO_N "(cached) $ECHO_C" >&6
14686 else
14687 ac_cv_header_gpm_h=$ac_header_preproc
14689 { echo "$as_me:$LINENO: result: $ac_cv_header_gpm_h" >&5
14690 echo "${ECHO_T}$ac_cv_header_gpm_h" >&6; }
14693 if test $ac_cv_header_gpm_h = yes; then
14694 { echo "$as_me:$LINENO: checking for Gpm_Open in -lgpm" >&5
14695 echo $ECHO_N "checking for Gpm_Open in -lgpm... $ECHO_C" >&6; }
14696 if test "${ac_cv_lib_gpm_Gpm_Open+set}" = set; then
14697 echo $ECHO_N "(cached) $ECHO_C" >&6
14698 else
14699 ac_check_lib_save_LIBS=$LIBS
14700 LIBS="-lgpm $LIBS"
14701 cat >conftest.$ac_ext <<_ACEOF
14702 /* confdefs.h. */
14703 _ACEOF
14704 cat confdefs.h >>conftest.$ac_ext
14705 cat >>conftest.$ac_ext <<_ACEOF
14706 /* end confdefs.h. */
14708 /* Override any GCC internal prototype to avoid an error.
14709 Use char because int might match the return type of a GCC
14710 builtin and then its argument prototype would still apply. */
14711 #ifdef __cplusplus
14712 extern "C"
14713 #endif
14714 char Gpm_Open ();
14716 main ()
14718 return Gpm_Open ();
14720 return 0;
14722 _ACEOF
14723 rm -f conftest.$ac_objext conftest$ac_exeext
14724 if { (ac_try="$ac_link"
14725 case "(($ac_try" in
14726 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14727 *) ac_try_echo=$ac_try;;
14728 esac
14729 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14730 (eval "$ac_link") 2>conftest.er1
14731 ac_status=$?
14732 grep -v '^ *+' conftest.er1 >conftest.err
14733 rm -f conftest.er1
14734 cat conftest.err >&5
14735 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14736 (exit $ac_status); } && {
14737 test -z "$ac_c_werror_flag" ||
14738 test ! -s conftest.err
14739 } && test -s conftest$ac_exeext &&
14740 $as_test_x conftest$ac_exeext; then
14741 ac_cv_lib_gpm_Gpm_Open=yes
14742 else
14743 echo "$as_me: failed program was:" >&5
14744 sed 's/^/| /' conftest.$ac_ext >&5
14746 ac_cv_lib_gpm_Gpm_Open=no
14749 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
14750 conftest$ac_exeext conftest.$ac_ext
14751 LIBS=$ac_check_lib_save_LIBS
14753 { echo "$as_me:$LINENO: result: $ac_cv_lib_gpm_Gpm_Open" >&5
14754 echo "${ECHO_T}$ac_cv_lib_gpm_Gpm_Open" >&6; }
14755 if test $ac_cv_lib_gpm_Gpm_Open = yes; then
14756 HAVE_GPM=yes
14764 if test "${HAVE_GPM}" = "yes"; then
14766 cat >>confdefs.h <<\_ACEOF
14767 #define HAVE_GPM 1
14768 _ACEOF
14772 if test "${ac_cv_header_malloc_malloc_h+set}" = set; then
14773 { echo "$as_me:$LINENO: checking for malloc/malloc.h" >&5
14774 echo $ECHO_N "checking for malloc/malloc.h... $ECHO_C" >&6; }
14775 if test "${ac_cv_header_malloc_malloc_h+set}" = set; then
14776 echo $ECHO_N "(cached) $ECHO_C" >&6
14778 { echo "$as_me:$LINENO: result: $ac_cv_header_malloc_malloc_h" >&5
14779 echo "${ECHO_T}$ac_cv_header_malloc_malloc_h" >&6; }
14780 else
14781 # Is the header compilable?
14782 { echo "$as_me:$LINENO: checking malloc/malloc.h usability" >&5
14783 echo $ECHO_N "checking malloc/malloc.h usability... $ECHO_C" >&6; }
14784 cat >conftest.$ac_ext <<_ACEOF
14785 /* confdefs.h. */
14786 _ACEOF
14787 cat confdefs.h >>conftest.$ac_ext
14788 cat >>conftest.$ac_ext <<_ACEOF
14789 /* end confdefs.h. */
14790 $ac_includes_default
14791 #include <malloc/malloc.h>
14792 _ACEOF
14793 rm -f conftest.$ac_objext
14794 if { (ac_try="$ac_compile"
14795 case "(($ac_try" in
14796 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14797 *) ac_try_echo=$ac_try;;
14798 esac
14799 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14800 (eval "$ac_compile") 2>conftest.er1
14801 ac_status=$?
14802 grep -v '^ *+' conftest.er1 >conftest.err
14803 rm -f conftest.er1
14804 cat conftest.err >&5
14805 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14806 (exit $ac_status); } && {
14807 test -z "$ac_c_werror_flag" ||
14808 test ! -s conftest.err
14809 } && test -s conftest.$ac_objext; then
14810 ac_header_compiler=yes
14811 else
14812 echo "$as_me: failed program was:" >&5
14813 sed 's/^/| /' conftest.$ac_ext >&5
14815 ac_header_compiler=no
14818 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14819 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
14820 echo "${ECHO_T}$ac_header_compiler" >&6; }
14822 # Is the header present?
14823 { echo "$as_me:$LINENO: checking malloc/malloc.h presence" >&5
14824 echo $ECHO_N "checking malloc/malloc.h presence... $ECHO_C" >&6; }
14825 cat >conftest.$ac_ext <<_ACEOF
14826 /* confdefs.h. */
14827 _ACEOF
14828 cat confdefs.h >>conftest.$ac_ext
14829 cat >>conftest.$ac_ext <<_ACEOF
14830 /* end confdefs.h. */
14831 #include <malloc/malloc.h>
14832 _ACEOF
14833 if { (ac_try="$ac_cpp conftest.$ac_ext"
14834 case "(($ac_try" in
14835 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14836 *) ac_try_echo=$ac_try;;
14837 esac
14838 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14839 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
14840 ac_status=$?
14841 grep -v '^ *+' conftest.er1 >conftest.err
14842 rm -f conftest.er1
14843 cat conftest.err >&5
14844 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14845 (exit $ac_status); } >/dev/null && {
14846 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
14847 test ! -s conftest.err
14848 }; then
14849 ac_header_preproc=yes
14850 else
14851 echo "$as_me: failed program was:" >&5
14852 sed 's/^/| /' conftest.$ac_ext >&5
14854 ac_header_preproc=no
14857 rm -f conftest.err conftest.$ac_ext
14858 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
14859 echo "${ECHO_T}$ac_header_preproc" >&6; }
14861 # So? What about this header?
14862 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
14863 yes:no: )
14864 { echo "$as_me:$LINENO: WARNING: malloc/malloc.h: accepted by the compiler, rejected by the preprocessor!" >&5
14865 echo "$as_me: WARNING: malloc/malloc.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
14866 { echo "$as_me:$LINENO: WARNING: malloc/malloc.h: proceeding with the compiler's result" >&5
14867 echo "$as_me: WARNING: malloc/malloc.h: proceeding with the compiler's result" >&2;}
14868 ac_header_preproc=yes
14870 no:yes:* )
14871 { echo "$as_me:$LINENO: WARNING: malloc/malloc.h: present but cannot be compiled" >&5
14872 echo "$as_me: WARNING: malloc/malloc.h: present but cannot be compiled" >&2;}
14873 { echo "$as_me:$LINENO: WARNING: malloc/malloc.h: check for missing prerequisite headers?" >&5
14874 echo "$as_me: WARNING: malloc/malloc.h: check for missing prerequisite headers?" >&2;}
14875 { echo "$as_me:$LINENO: WARNING: malloc/malloc.h: see the Autoconf documentation" >&5
14876 echo "$as_me: WARNING: malloc/malloc.h: see the Autoconf documentation" >&2;}
14877 { echo "$as_me:$LINENO: WARNING: malloc/malloc.h: section \"Present But Cannot Be Compiled\"" >&5
14878 echo "$as_me: WARNING: malloc/malloc.h: section \"Present But Cannot Be Compiled\"" >&2;}
14879 { echo "$as_me:$LINENO: WARNING: malloc/malloc.h: proceeding with the preprocessor's result" >&5
14880 echo "$as_me: WARNING: malloc/malloc.h: proceeding with the preprocessor's result" >&2;}
14881 { echo "$as_me:$LINENO: WARNING: malloc/malloc.h: in the future, the compiler will take precedence" >&5
14882 echo "$as_me: WARNING: malloc/malloc.h: in the future, the compiler will take precedence" >&2;}
14885 esac
14886 { echo "$as_me:$LINENO: checking for malloc/malloc.h" >&5
14887 echo $ECHO_N "checking for malloc/malloc.h... $ECHO_C" >&6; }
14888 if test "${ac_cv_header_malloc_malloc_h+set}" = set; then
14889 echo $ECHO_N "(cached) $ECHO_C" >&6
14890 else
14891 ac_cv_header_malloc_malloc_h=$ac_header_preproc
14893 { echo "$as_me:$LINENO: result: $ac_cv_header_malloc_malloc_h" >&5
14894 echo "${ECHO_T}$ac_cv_header_malloc_malloc_h" >&6; }
14897 if test $ac_cv_header_malloc_malloc_h = yes; then
14899 cat >>confdefs.h <<\_ACEOF
14900 #define HAVE_MALLOC_MALLOC_H 1
14901 _ACEOF
14907 ### Use NeXTstep API to implement GUI.
14908 if test "${HAVE_NS}" = "yes"; then
14910 cat >>confdefs.h <<\_ACEOF
14911 #define HAVE_NS 1
14912 _ACEOF
14914 if test "${NS_IMPL_COCOA}" = "yes"; then
14916 cat >>confdefs.h <<\_ACEOF
14917 #define NS_IMPL_COCOA 1
14918 _ACEOF
14920 GNU_OBJC_CFLAGS=
14921 LIB_SRC_EXTRA_INSTALLABLES=mac-fix-env
14923 if test "${EN_COCOA_EXPERIMENTAL_CTRL_G}" = "yes"; then
14925 cat >>confdefs.h <<\_ACEOF
14926 #define COCOA_EXPERIMENTAL_CTRL_G 1
14927 _ACEOF
14930 if test "${NS_IMPL_GNUSTEP}" = "yes"; then
14932 cat >>confdefs.h <<\_ACEOF
14933 #define NS_IMPL_GNUSTEP 1
14934 _ACEOF
14936 GNU_OBJC_CFLAGS="-fgnu-runtime -Wno-import -fconstant-string-class=NSConstantString -DGNUSTEP_BASE_LIBRARY=1 -DGNU_GUI_LIBRARY=1 -DGNU_RUNTIME=1 -DGSWARN -DGSDIAGNOSE"
14938 if test "${NS_HAVE_NSINTEGER}" = "yes"; then
14940 cat >>confdefs.h <<\_ACEOF
14941 #define NS_HAVE_NSINTEGER 1
14942 _ACEOF
14945 # We also have mouse menus.
14946 HAVE_MENUS=yes
14950 ### Use session management (-lSM -lICE) if available
14951 HAVE_X_SM=no
14952 if test "${HAVE_X11}" = "yes"; then
14953 if test "${ac_cv_header_X11_SM_SMlib_h+set}" = set; then
14954 { echo "$as_me:$LINENO: checking for X11/SM/SMlib.h" >&5
14955 echo $ECHO_N "checking for X11/SM/SMlib.h... $ECHO_C" >&6; }
14956 if test "${ac_cv_header_X11_SM_SMlib_h+set}" = set; then
14957 echo $ECHO_N "(cached) $ECHO_C" >&6
14959 { echo "$as_me:$LINENO: result: $ac_cv_header_X11_SM_SMlib_h" >&5
14960 echo "${ECHO_T}$ac_cv_header_X11_SM_SMlib_h" >&6; }
14961 else
14962 # Is the header compilable?
14963 { echo "$as_me:$LINENO: checking X11/SM/SMlib.h usability" >&5
14964 echo $ECHO_N "checking X11/SM/SMlib.h usability... $ECHO_C" >&6; }
14965 cat >conftest.$ac_ext <<_ACEOF
14966 /* confdefs.h. */
14967 _ACEOF
14968 cat confdefs.h >>conftest.$ac_ext
14969 cat >>conftest.$ac_ext <<_ACEOF
14970 /* end confdefs.h. */
14971 $ac_includes_default
14972 #include <X11/SM/SMlib.h>
14973 _ACEOF
14974 rm -f conftest.$ac_objext
14975 if { (ac_try="$ac_compile"
14976 case "(($ac_try" in
14977 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14978 *) ac_try_echo=$ac_try;;
14979 esac
14980 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14981 (eval "$ac_compile") 2>conftest.er1
14982 ac_status=$?
14983 grep -v '^ *+' conftest.er1 >conftest.err
14984 rm -f conftest.er1
14985 cat conftest.err >&5
14986 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14987 (exit $ac_status); } && {
14988 test -z "$ac_c_werror_flag" ||
14989 test ! -s conftest.err
14990 } && test -s conftest.$ac_objext; then
14991 ac_header_compiler=yes
14992 else
14993 echo "$as_me: failed program was:" >&5
14994 sed 's/^/| /' conftest.$ac_ext >&5
14996 ac_header_compiler=no
14999 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15000 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
15001 echo "${ECHO_T}$ac_header_compiler" >&6; }
15003 # Is the header present?
15004 { echo "$as_me:$LINENO: checking X11/SM/SMlib.h presence" >&5
15005 echo $ECHO_N "checking X11/SM/SMlib.h presence... $ECHO_C" >&6; }
15006 cat >conftest.$ac_ext <<_ACEOF
15007 /* confdefs.h. */
15008 _ACEOF
15009 cat confdefs.h >>conftest.$ac_ext
15010 cat >>conftest.$ac_ext <<_ACEOF
15011 /* end confdefs.h. */
15012 #include <X11/SM/SMlib.h>
15013 _ACEOF
15014 if { (ac_try="$ac_cpp conftest.$ac_ext"
15015 case "(($ac_try" in
15016 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15017 *) ac_try_echo=$ac_try;;
15018 esac
15019 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15020 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
15021 ac_status=$?
15022 grep -v '^ *+' conftest.er1 >conftest.err
15023 rm -f conftest.er1
15024 cat conftest.err >&5
15025 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15026 (exit $ac_status); } >/dev/null && {
15027 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
15028 test ! -s conftest.err
15029 }; then
15030 ac_header_preproc=yes
15031 else
15032 echo "$as_me: failed program was:" >&5
15033 sed 's/^/| /' conftest.$ac_ext >&5
15035 ac_header_preproc=no
15038 rm -f conftest.err conftest.$ac_ext
15039 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
15040 echo "${ECHO_T}$ac_header_preproc" >&6; }
15042 # So? What about this header?
15043 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
15044 yes:no: )
15045 { echo "$as_me:$LINENO: WARNING: X11/SM/SMlib.h: accepted by the compiler, rejected by the preprocessor!" >&5
15046 echo "$as_me: WARNING: X11/SM/SMlib.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
15047 { echo "$as_me:$LINENO: WARNING: X11/SM/SMlib.h: proceeding with the compiler's result" >&5
15048 echo "$as_me: WARNING: X11/SM/SMlib.h: proceeding with the compiler's result" >&2;}
15049 ac_header_preproc=yes
15051 no:yes:* )
15052 { echo "$as_me:$LINENO: WARNING: X11/SM/SMlib.h: present but cannot be compiled" >&5
15053 echo "$as_me: WARNING: X11/SM/SMlib.h: present but cannot be compiled" >&2;}
15054 { echo "$as_me:$LINENO: WARNING: X11/SM/SMlib.h: check for missing prerequisite headers?" >&5
15055 echo "$as_me: WARNING: X11/SM/SMlib.h: check for missing prerequisite headers?" >&2;}
15056 { echo "$as_me:$LINENO: WARNING: X11/SM/SMlib.h: see the Autoconf documentation" >&5
15057 echo "$as_me: WARNING: X11/SM/SMlib.h: see the Autoconf documentation" >&2;}
15058 { echo "$as_me:$LINENO: WARNING: X11/SM/SMlib.h: section \"Present But Cannot Be Compiled\"" >&5
15059 echo "$as_me: WARNING: X11/SM/SMlib.h: section \"Present But Cannot Be Compiled\"" >&2;}
15060 { echo "$as_me:$LINENO: WARNING: X11/SM/SMlib.h: proceeding with the preprocessor's result" >&5
15061 echo "$as_me: WARNING: X11/SM/SMlib.h: proceeding with the preprocessor's result" >&2;}
15062 { echo "$as_me:$LINENO: WARNING: X11/SM/SMlib.h: in the future, the compiler will take precedence" >&5
15063 echo "$as_me: WARNING: X11/SM/SMlib.h: in the future, the compiler will take precedence" >&2;}
15066 esac
15067 { echo "$as_me:$LINENO: checking for X11/SM/SMlib.h" >&5
15068 echo $ECHO_N "checking for X11/SM/SMlib.h... $ECHO_C" >&6; }
15069 if test "${ac_cv_header_X11_SM_SMlib_h+set}" = set; then
15070 echo $ECHO_N "(cached) $ECHO_C" >&6
15071 else
15072 ac_cv_header_X11_SM_SMlib_h=$ac_header_preproc
15074 { echo "$as_me:$LINENO: result: $ac_cv_header_X11_SM_SMlib_h" >&5
15075 echo "${ECHO_T}$ac_cv_header_X11_SM_SMlib_h" >&6; }
15078 if test $ac_cv_header_X11_SM_SMlib_h = yes; then
15079 { echo "$as_me:$LINENO: checking for SmcOpenConnection in -lSM" >&5
15080 echo $ECHO_N "checking for SmcOpenConnection in -lSM... $ECHO_C" >&6; }
15081 if test "${ac_cv_lib_SM_SmcOpenConnection+set}" = set; then
15082 echo $ECHO_N "(cached) $ECHO_C" >&6
15083 else
15084 ac_check_lib_save_LIBS=$LIBS
15085 LIBS="-lSM -lICE $LIBS"
15086 cat >conftest.$ac_ext <<_ACEOF
15087 /* confdefs.h. */
15088 _ACEOF
15089 cat confdefs.h >>conftest.$ac_ext
15090 cat >>conftest.$ac_ext <<_ACEOF
15091 /* end confdefs.h. */
15093 /* Override any GCC internal prototype to avoid an error.
15094 Use char because int might match the return type of a GCC
15095 builtin and then its argument prototype would still apply. */
15096 #ifdef __cplusplus
15097 extern "C"
15098 #endif
15099 char SmcOpenConnection ();
15101 main ()
15103 return SmcOpenConnection ();
15105 return 0;
15107 _ACEOF
15108 rm -f conftest.$ac_objext conftest$ac_exeext
15109 if { (ac_try="$ac_link"
15110 case "(($ac_try" in
15111 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15112 *) ac_try_echo=$ac_try;;
15113 esac
15114 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15115 (eval "$ac_link") 2>conftest.er1
15116 ac_status=$?
15117 grep -v '^ *+' conftest.er1 >conftest.err
15118 rm -f conftest.er1
15119 cat conftest.err >&5
15120 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15121 (exit $ac_status); } && {
15122 test -z "$ac_c_werror_flag" ||
15123 test ! -s conftest.err
15124 } && test -s conftest$ac_exeext &&
15125 $as_test_x conftest$ac_exeext; then
15126 ac_cv_lib_SM_SmcOpenConnection=yes
15127 else
15128 echo "$as_me: failed program was:" >&5
15129 sed 's/^/| /' conftest.$ac_ext >&5
15131 ac_cv_lib_SM_SmcOpenConnection=no
15134 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
15135 conftest$ac_exeext conftest.$ac_ext
15136 LIBS=$ac_check_lib_save_LIBS
15138 { echo "$as_me:$LINENO: result: $ac_cv_lib_SM_SmcOpenConnection" >&5
15139 echo "${ECHO_T}$ac_cv_lib_SM_SmcOpenConnection" >&6; }
15140 if test $ac_cv_lib_SM_SmcOpenConnection = yes; then
15141 HAVE_X_SM=yes
15148 if test "${HAVE_X_SM}" = "yes"; then
15150 cat >>confdefs.h <<\_ACEOF
15151 #define HAVE_X_SM 1
15152 _ACEOF
15154 case "$LIBS" in
15155 *-lSM*) ;;
15156 *) LIBS="-lSM -lICE $LIBS" ;;
15157 esac
15161 # If netdb.h doesn't declare h_errno, we must declare it by hand.
15162 { echo "$as_me:$LINENO: checking whether netdb declares h_errno" >&5
15163 echo $ECHO_N "checking whether netdb declares h_errno... $ECHO_C" >&6; }
15164 if test "${emacs_cv_netdb_declares_h_errno+set}" = set; then
15165 echo $ECHO_N "(cached) $ECHO_C" >&6
15166 else
15167 cat >conftest.$ac_ext <<_ACEOF
15168 /* confdefs.h. */
15169 _ACEOF
15170 cat confdefs.h >>conftest.$ac_ext
15171 cat >>conftest.$ac_ext <<_ACEOF
15172 /* end confdefs.h. */
15173 #include <netdb.h>
15175 main ()
15177 return h_errno;
15179 return 0;
15181 _ACEOF
15182 rm -f conftest.$ac_objext conftest$ac_exeext
15183 if { (ac_try="$ac_link"
15184 case "(($ac_try" in
15185 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15186 *) ac_try_echo=$ac_try;;
15187 esac
15188 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15189 (eval "$ac_link") 2>conftest.er1
15190 ac_status=$?
15191 grep -v '^ *+' conftest.er1 >conftest.err
15192 rm -f conftest.er1
15193 cat conftest.err >&5
15194 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15195 (exit $ac_status); } && {
15196 test -z "$ac_c_werror_flag" ||
15197 test ! -s conftest.err
15198 } && test -s conftest$ac_exeext &&
15199 $as_test_x conftest$ac_exeext; then
15200 emacs_cv_netdb_declares_h_errno=yes
15201 else
15202 echo "$as_me: failed program was:" >&5
15203 sed 's/^/| /' conftest.$ac_ext >&5
15205 emacs_cv_netdb_declares_h_errno=no
15208 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
15209 conftest$ac_exeext conftest.$ac_ext
15211 { echo "$as_me:$LINENO: result: $emacs_cv_netdb_declares_h_errno" >&5
15212 echo "${ECHO_T}$emacs_cv_netdb_declares_h_errno" >&6; }
15213 if test $emacs_cv_netdb_declares_h_errno = yes; then
15215 cat >>confdefs.h <<\_ACEOF
15216 #define HAVE_H_ERRNO 1
15217 _ACEOF
15221 # The Ultrix 4.2 mips builtin alloca declared by alloca.h only works
15222 # for constant arguments. Useless!
15223 { echo "$as_me:$LINENO: checking for working alloca.h" >&5
15224 echo $ECHO_N "checking for working alloca.h... $ECHO_C" >&6; }
15225 if test "${ac_cv_working_alloca_h+set}" = set; then
15226 echo $ECHO_N "(cached) $ECHO_C" >&6
15227 else
15228 cat >conftest.$ac_ext <<_ACEOF
15229 /* confdefs.h. */
15230 _ACEOF
15231 cat confdefs.h >>conftest.$ac_ext
15232 cat >>conftest.$ac_ext <<_ACEOF
15233 /* end confdefs.h. */
15234 #include <alloca.h>
15236 main ()
15238 char *p = (char *) alloca (2 * sizeof (int));
15239 if (p) return 0;
15241 return 0;
15243 _ACEOF
15244 rm -f conftest.$ac_objext conftest$ac_exeext
15245 if { (ac_try="$ac_link"
15246 case "(($ac_try" in
15247 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15248 *) ac_try_echo=$ac_try;;
15249 esac
15250 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15251 (eval "$ac_link") 2>conftest.er1
15252 ac_status=$?
15253 grep -v '^ *+' conftest.er1 >conftest.err
15254 rm -f conftest.er1
15255 cat conftest.err >&5
15256 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15257 (exit $ac_status); } && {
15258 test -z "$ac_c_werror_flag" ||
15259 test ! -s conftest.err
15260 } && test -s conftest$ac_exeext &&
15261 $as_test_x conftest$ac_exeext; then
15262 ac_cv_working_alloca_h=yes
15263 else
15264 echo "$as_me: failed program was:" >&5
15265 sed 's/^/| /' conftest.$ac_ext >&5
15267 ac_cv_working_alloca_h=no
15270 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
15271 conftest$ac_exeext conftest.$ac_ext
15273 { echo "$as_me:$LINENO: result: $ac_cv_working_alloca_h" >&5
15274 echo "${ECHO_T}$ac_cv_working_alloca_h" >&6; }
15275 if test $ac_cv_working_alloca_h = yes; then
15277 cat >>confdefs.h <<\_ACEOF
15278 #define HAVE_ALLOCA_H 1
15279 _ACEOF
15283 { echo "$as_me:$LINENO: checking for alloca" >&5
15284 echo $ECHO_N "checking for alloca... $ECHO_C" >&6; }
15285 if test "${ac_cv_func_alloca_works+set}" = set; then
15286 echo $ECHO_N "(cached) $ECHO_C" >&6
15287 else
15288 cat >conftest.$ac_ext <<_ACEOF
15289 /* confdefs.h. */
15290 _ACEOF
15291 cat confdefs.h >>conftest.$ac_ext
15292 cat >>conftest.$ac_ext <<_ACEOF
15293 /* end confdefs.h. */
15294 #ifdef __GNUC__
15295 # define alloca __builtin_alloca
15296 #else
15297 # ifdef _MSC_VER
15298 # include <malloc.h>
15299 # define alloca _alloca
15300 # else
15301 # ifdef HAVE_ALLOCA_H
15302 # include <alloca.h>
15303 # else
15304 # ifdef _AIX
15305 #pragma alloca
15306 # else
15307 # ifndef alloca /* predefined by HP cc +Olibcalls */
15308 char *alloca ();
15309 # endif
15310 # endif
15311 # endif
15312 # endif
15313 #endif
15316 main ()
15318 char *p = (char *) alloca (1);
15319 if (p) return 0;
15321 return 0;
15323 _ACEOF
15324 rm -f conftest.$ac_objext conftest$ac_exeext
15325 if { (ac_try="$ac_link"
15326 case "(($ac_try" in
15327 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15328 *) ac_try_echo=$ac_try;;
15329 esac
15330 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15331 (eval "$ac_link") 2>conftest.er1
15332 ac_status=$?
15333 grep -v '^ *+' conftest.er1 >conftest.err
15334 rm -f conftest.er1
15335 cat conftest.err >&5
15336 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15337 (exit $ac_status); } && {
15338 test -z "$ac_c_werror_flag" ||
15339 test ! -s conftest.err
15340 } && test -s conftest$ac_exeext &&
15341 $as_test_x conftest$ac_exeext; then
15342 ac_cv_func_alloca_works=yes
15343 else
15344 echo "$as_me: failed program was:" >&5
15345 sed 's/^/| /' conftest.$ac_ext >&5
15347 ac_cv_func_alloca_works=no
15350 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
15351 conftest$ac_exeext conftest.$ac_ext
15353 { echo "$as_me:$LINENO: result: $ac_cv_func_alloca_works" >&5
15354 echo "${ECHO_T}$ac_cv_func_alloca_works" >&6; }
15356 if test $ac_cv_func_alloca_works = yes; then
15358 cat >>confdefs.h <<\_ACEOF
15359 #define HAVE_ALLOCA 1
15360 _ACEOF
15362 else
15363 # The SVR3 libPW and SVR4 libucb both contain incompatible functions
15364 # that cause trouble. Some versions do not even contain alloca or
15365 # contain a buggy version. If you still want to use their alloca,
15366 # use ar to extract alloca.o from them instead of compiling alloca.c.
15368 ALLOCA=\${LIBOBJDIR}alloca.$ac_objext
15370 cat >>confdefs.h <<\_ACEOF
15371 #define C_ALLOCA 1
15372 _ACEOF
15375 { echo "$as_me:$LINENO: checking whether \`alloca.c' needs Cray hooks" >&5
15376 echo $ECHO_N "checking whether \`alloca.c' needs Cray hooks... $ECHO_C" >&6; }
15377 if test "${ac_cv_os_cray+set}" = set; then
15378 echo $ECHO_N "(cached) $ECHO_C" >&6
15379 else
15380 cat >conftest.$ac_ext <<_ACEOF
15381 /* confdefs.h. */
15382 _ACEOF
15383 cat confdefs.h >>conftest.$ac_ext
15384 cat >>conftest.$ac_ext <<_ACEOF
15385 /* end confdefs.h. */
15386 #if defined CRAY && ! defined CRAY2
15387 webecray
15388 #else
15389 wenotbecray
15390 #endif
15392 _ACEOF
15393 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
15394 $EGREP "webecray" >/dev/null 2>&1; then
15395 ac_cv_os_cray=yes
15396 else
15397 ac_cv_os_cray=no
15399 rm -f conftest*
15402 { echo "$as_me:$LINENO: result: $ac_cv_os_cray" >&5
15403 echo "${ECHO_T}$ac_cv_os_cray" >&6; }
15404 if test $ac_cv_os_cray = yes; then
15405 for ac_func in _getb67 GETB67 getb67; do
15406 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
15407 { echo "$as_me:$LINENO: checking for $ac_func" >&5
15408 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
15409 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
15410 echo $ECHO_N "(cached) $ECHO_C" >&6
15411 else
15412 cat >conftest.$ac_ext <<_ACEOF
15413 /* confdefs.h. */
15414 _ACEOF
15415 cat confdefs.h >>conftest.$ac_ext
15416 cat >>conftest.$ac_ext <<_ACEOF
15417 /* end confdefs.h. */
15418 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
15419 For example, HP-UX 11i <limits.h> declares gettimeofday. */
15420 #define $ac_func innocuous_$ac_func
15422 /* System header to define __stub macros and hopefully few prototypes,
15423 which can conflict with char $ac_func (); below.
15424 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
15425 <limits.h> exists even on freestanding compilers. */
15427 #ifdef __STDC__
15428 # include <limits.h>
15429 #else
15430 # include <assert.h>
15431 #endif
15433 #undef $ac_func
15435 /* Override any GCC internal prototype to avoid an error.
15436 Use char because int might match the return type of a GCC
15437 builtin and then its argument prototype would still apply. */
15438 #ifdef __cplusplus
15439 extern "C"
15440 #endif
15441 char $ac_func ();
15442 /* The GNU C library defines this for functions which it implements
15443 to always fail with ENOSYS. Some functions are actually named
15444 something starting with __ and the normal name is an alias. */
15445 #if defined __stub_$ac_func || defined __stub___$ac_func
15446 choke me
15447 #endif
15450 main ()
15452 return $ac_func ();
15454 return 0;
15456 _ACEOF
15457 rm -f conftest.$ac_objext conftest$ac_exeext
15458 if { (ac_try="$ac_link"
15459 case "(($ac_try" in
15460 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15461 *) ac_try_echo=$ac_try;;
15462 esac
15463 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15464 (eval "$ac_link") 2>conftest.er1
15465 ac_status=$?
15466 grep -v '^ *+' conftest.er1 >conftest.err
15467 rm -f conftest.er1
15468 cat conftest.err >&5
15469 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15470 (exit $ac_status); } && {
15471 test -z "$ac_c_werror_flag" ||
15472 test ! -s conftest.err
15473 } && test -s conftest$ac_exeext &&
15474 $as_test_x conftest$ac_exeext; then
15475 eval "$as_ac_var=yes"
15476 else
15477 echo "$as_me: failed program was:" >&5
15478 sed 's/^/| /' conftest.$ac_ext >&5
15480 eval "$as_ac_var=no"
15483 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
15484 conftest$ac_exeext conftest.$ac_ext
15486 ac_res=`eval echo '${'$as_ac_var'}'`
15487 { echo "$as_me:$LINENO: result: $ac_res" >&5
15488 echo "${ECHO_T}$ac_res" >&6; }
15489 if test `eval echo '${'$as_ac_var'}'` = yes; then
15491 cat >>confdefs.h <<_ACEOF
15492 #define CRAY_STACKSEG_END $ac_func
15493 _ACEOF
15495 break
15498 done
15501 { echo "$as_me:$LINENO: checking stack direction for C alloca" >&5
15502 echo $ECHO_N "checking stack direction for C alloca... $ECHO_C" >&6; }
15503 if test "${ac_cv_c_stack_direction+set}" = set; then
15504 echo $ECHO_N "(cached) $ECHO_C" >&6
15505 else
15506 if test "$cross_compiling" = yes; then
15507 ac_cv_c_stack_direction=0
15508 else
15509 cat >conftest.$ac_ext <<_ACEOF
15510 /* confdefs.h. */
15511 _ACEOF
15512 cat confdefs.h >>conftest.$ac_ext
15513 cat >>conftest.$ac_ext <<_ACEOF
15514 /* end confdefs.h. */
15515 $ac_includes_default
15517 find_stack_direction ()
15519 static char *addr = 0;
15520 auto char dummy;
15521 if (addr == 0)
15523 addr = &dummy;
15524 return find_stack_direction ();
15526 else
15527 return (&dummy > addr) ? 1 : -1;
15531 main ()
15533 return find_stack_direction () < 0;
15535 _ACEOF
15536 rm -f conftest$ac_exeext
15537 if { (ac_try="$ac_link"
15538 case "(($ac_try" in
15539 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15540 *) ac_try_echo=$ac_try;;
15541 esac
15542 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15543 (eval "$ac_link") 2>&5
15544 ac_status=$?
15545 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15546 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
15547 { (case "(($ac_try" in
15548 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15549 *) ac_try_echo=$ac_try;;
15550 esac
15551 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15552 (eval "$ac_try") 2>&5
15553 ac_status=$?
15554 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15555 (exit $ac_status); }; }; then
15556 ac_cv_c_stack_direction=1
15557 else
15558 echo "$as_me: program exited with status $ac_status" >&5
15559 echo "$as_me: failed program was:" >&5
15560 sed 's/^/| /' conftest.$ac_ext >&5
15562 ( exit $ac_status )
15563 ac_cv_c_stack_direction=-1
15565 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
15570 { echo "$as_me:$LINENO: result: $ac_cv_c_stack_direction" >&5
15571 echo "${ECHO_T}$ac_cv_c_stack_direction" >&6; }
15573 cat >>confdefs.h <<_ACEOF
15574 #define STACK_DIRECTION $ac_cv_c_stack_direction
15575 _ACEOF
15581 if test x"$ac_cv_func_alloca_works" != xyes; then
15582 { { echo "$as_me:$LINENO: error: a system implementation of alloca is required " >&5
15583 echo "$as_me: error: a system implementation of alloca is required " >&2;}
15584 { (exit 1); exit 1; }; }
15587 # fmod, logb, and frexp are found in -lm on most systems.
15588 # On HPUX 9.01, -lm does not contain logb, so check for sqrt.
15590 { echo "$as_me:$LINENO: checking for sqrt in -lm" >&5
15591 echo $ECHO_N "checking for sqrt in -lm... $ECHO_C" >&6; }
15592 if test "${ac_cv_lib_m_sqrt+set}" = set; then
15593 echo $ECHO_N "(cached) $ECHO_C" >&6
15594 else
15595 ac_check_lib_save_LIBS=$LIBS
15596 LIBS="-lm $LIBS"
15597 cat >conftest.$ac_ext <<_ACEOF
15598 /* confdefs.h. */
15599 _ACEOF
15600 cat confdefs.h >>conftest.$ac_ext
15601 cat >>conftest.$ac_ext <<_ACEOF
15602 /* end confdefs.h. */
15604 /* Override any GCC internal prototype to avoid an error.
15605 Use char because int might match the return type of a GCC
15606 builtin and then its argument prototype would still apply. */
15607 #ifdef __cplusplus
15608 extern "C"
15609 #endif
15610 char sqrt ();
15612 main ()
15614 return sqrt ();
15616 return 0;
15618 _ACEOF
15619 rm -f conftest.$ac_objext conftest$ac_exeext
15620 if { (ac_try="$ac_link"
15621 case "(($ac_try" in
15622 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15623 *) ac_try_echo=$ac_try;;
15624 esac
15625 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15626 (eval "$ac_link") 2>conftest.er1
15627 ac_status=$?
15628 grep -v '^ *+' conftest.er1 >conftest.err
15629 rm -f conftest.er1
15630 cat conftest.err >&5
15631 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15632 (exit $ac_status); } && {
15633 test -z "$ac_c_werror_flag" ||
15634 test ! -s conftest.err
15635 } && test -s conftest$ac_exeext &&
15636 $as_test_x conftest$ac_exeext; then
15637 ac_cv_lib_m_sqrt=yes
15638 else
15639 echo "$as_me: failed program was:" >&5
15640 sed 's/^/| /' conftest.$ac_ext >&5
15642 ac_cv_lib_m_sqrt=no
15645 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
15646 conftest$ac_exeext conftest.$ac_ext
15647 LIBS=$ac_check_lib_save_LIBS
15649 { echo "$as_me:$LINENO: result: $ac_cv_lib_m_sqrt" >&5
15650 echo "${ECHO_T}$ac_cv_lib_m_sqrt" >&6; }
15651 if test $ac_cv_lib_m_sqrt = yes; then
15652 cat >>confdefs.h <<_ACEOF
15653 #define HAVE_LIBM 1
15654 _ACEOF
15656 LIBS="-lm $LIBS"
15661 # Check for mail-locking functions in a "mail" library. Probably this should
15662 # have the same check as for liblockfile below.
15664 { echo "$as_me:$LINENO: checking for maillock in -lmail" >&5
15665 echo $ECHO_N "checking for maillock in -lmail... $ECHO_C" >&6; }
15666 if test "${ac_cv_lib_mail_maillock+set}" = set; then
15667 echo $ECHO_N "(cached) $ECHO_C" >&6
15668 else
15669 ac_check_lib_save_LIBS=$LIBS
15670 LIBS="-lmail $LIBS"
15671 cat >conftest.$ac_ext <<_ACEOF
15672 /* confdefs.h. */
15673 _ACEOF
15674 cat confdefs.h >>conftest.$ac_ext
15675 cat >>conftest.$ac_ext <<_ACEOF
15676 /* end confdefs.h. */
15678 /* Override any GCC internal prototype to avoid an error.
15679 Use char because int might match the return type of a GCC
15680 builtin and then its argument prototype would still apply. */
15681 #ifdef __cplusplus
15682 extern "C"
15683 #endif
15684 char maillock ();
15686 main ()
15688 return maillock ();
15690 return 0;
15692 _ACEOF
15693 rm -f conftest.$ac_objext conftest$ac_exeext
15694 if { (ac_try="$ac_link"
15695 case "(($ac_try" in
15696 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15697 *) ac_try_echo=$ac_try;;
15698 esac
15699 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15700 (eval "$ac_link") 2>conftest.er1
15701 ac_status=$?
15702 grep -v '^ *+' conftest.er1 >conftest.err
15703 rm -f conftest.er1
15704 cat conftest.err >&5
15705 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15706 (exit $ac_status); } && {
15707 test -z "$ac_c_werror_flag" ||
15708 test ! -s conftest.err
15709 } && test -s conftest$ac_exeext &&
15710 $as_test_x conftest$ac_exeext; then
15711 ac_cv_lib_mail_maillock=yes
15712 else
15713 echo "$as_me: failed program was:" >&5
15714 sed 's/^/| /' conftest.$ac_ext >&5
15716 ac_cv_lib_mail_maillock=no
15719 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
15720 conftest$ac_exeext conftest.$ac_ext
15721 LIBS=$ac_check_lib_save_LIBS
15723 { echo "$as_me:$LINENO: result: $ac_cv_lib_mail_maillock" >&5
15724 echo "${ECHO_T}$ac_cv_lib_mail_maillock" >&6; }
15725 if test $ac_cv_lib_mail_maillock = yes; then
15726 cat >>confdefs.h <<_ACEOF
15727 #define HAVE_LIBMAIL 1
15728 _ACEOF
15730 LIBS="-lmail $LIBS"
15735 { echo "$as_me:$LINENO: checking for maillock in -llockfile" >&5
15736 echo $ECHO_N "checking for maillock in -llockfile... $ECHO_C" >&6; }
15737 if test "${ac_cv_lib_lockfile_maillock+set}" = set; then
15738 echo $ECHO_N "(cached) $ECHO_C" >&6
15739 else
15740 ac_check_lib_save_LIBS=$LIBS
15741 LIBS="-llockfile $LIBS"
15742 cat >conftest.$ac_ext <<_ACEOF
15743 /* confdefs.h. */
15744 _ACEOF
15745 cat confdefs.h >>conftest.$ac_ext
15746 cat >>conftest.$ac_ext <<_ACEOF
15747 /* end confdefs.h. */
15749 /* Override any GCC internal prototype to avoid an error.
15750 Use char because int might match the return type of a GCC
15751 builtin and then its argument prototype would still apply. */
15752 #ifdef __cplusplus
15753 extern "C"
15754 #endif
15755 char maillock ();
15757 main ()
15759 return maillock ();
15761 return 0;
15763 _ACEOF
15764 rm -f conftest.$ac_objext conftest$ac_exeext
15765 if { (ac_try="$ac_link"
15766 case "(($ac_try" in
15767 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15768 *) ac_try_echo=$ac_try;;
15769 esac
15770 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15771 (eval "$ac_link") 2>conftest.er1
15772 ac_status=$?
15773 grep -v '^ *+' conftest.er1 >conftest.err
15774 rm -f conftest.er1
15775 cat conftest.err >&5
15776 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15777 (exit $ac_status); } && {
15778 test -z "$ac_c_werror_flag" ||
15779 test ! -s conftest.err
15780 } && test -s conftest$ac_exeext &&
15781 $as_test_x conftest$ac_exeext; then
15782 ac_cv_lib_lockfile_maillock=yes
15783 else
15784 echo "$as_me: failed program was:" >&5
15785 sed 's/^/| /' conftest.$ac_ext >&5
15787 ac_cv_lib_lockfile_maillock=no
15790 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
15791 conftest$ac_exeext conftest.$ac_ext
15792 LIBS=$ac_check_lib_save_LIBS
15794 { echo "$as_me:$LINENO: result: $ac_cv_lib_lockfile_maillock" >&5
15795 echo "${ECHO_T}$ac_cv_lib_lockfile_maillock" >&6; }
15796 if test $ac_cv_lib_lockfile_maillock = yes; then
15797 cat >>confdefs.h <<_ACEOF
15798 #define HAVE_LIBLOCKFILE 1
15799 _ACEOF
15801 LIBS="-llockfile $LIBS"
15805 # If we have the shared liblockfile, assume we must use it for mail
15806 # locking (e.g. Debian). If we couldn't link against liblockfile
15807 # (no liblockfile.a installed), ensure that we don't need to.
15808 if test "$ac_cv_lib_lockfile_maillock" = no; then
15809 # Extract the first word of "liblockfile.so", so it can be a program name with args.
15810 set dummy liblockfile.so; ac_word=$2
15811 { echo "$as_me:$LINENO: checking for $ac_word" >&5
15812 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
15813 if test "${ac_cv_prog_liblockfile+set}" = set; then
15814 echo $ECHO_N "(cached) $ECHO_C" >&6
15815 else
15816 if test -n "$liblockfile"; then
15817 ac_cv_prog_liblockfile="$liblockfile" # Let the user override the test.
15818 else
15819 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
15820 as_dummy="/usr/lib:/lib:/usr/local/lib:$LD_LIBRARY_PATH"
15821 for as_dir in $as_dummy
15823 IFS=$as_save_IFS
15824 test -z "$as_dir" && as_dir=.
15825 for ac_exec_ext in '' $ac_executable_extensions; do
15826 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
15827 ac_cv_prog_liblockfile="yes"
15828 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
15829 break 2
15831 done
15832 done
15833 IFS=$as_save_IFS
15835 test -z "$ac_cv_prog_liblockfile" && ac_cv_prog_liblockfile="no"
15838 liblockfile=$ac_cv_prog_liblockfile
15839 if test -n "$liblockfile"; then
15840 { echo "$as_me:$LINENO: result: $liblockfile" >&5
15841 echo "${ECHO_T}$liblockfile" >&6; }
15842 else
15843 { echo "$as_me:$LINENO: result: no" >&5
15844 echo "${ECHO_T}no" >&6; }
15848 if test $ac_cv_prog_liblockfile = yes; then
15849 { { echo "$as_me:$LINENO: error: Shared liblockfile found but can't link against it.
15850 This probably means that movemail could lose mail.
15851 There may be a \`development' package to install containing liblockfile." >&5
15852 echo "$as_me: error: Shared liblockfile found but can't link against it.
15853 This probably means that movemail could lose mail.
15854 There may be a \`development' package to install containing liblockfile." >&2;}
15855 { (exit 1); exit 1; }; }
15856 else :
15860 for ac_func in touchlock
15862 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
15863 { echo "$as_me:$LINENO: checking for $ac_func" >&5
15864 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
15865 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
15866 echo $ECHO_N "(cached) $ECHO_C" >&6
15867 else
15868 cat >conftest.$ac_ext <<_ACEOF
15869 /* confdefs.h. */
15870 _ACEOF
15871 cat confdefs.h >>conftest.$ac_ext
15872 cat >>conftest.$ac_ext <<_ACEOF
15873 /* end confdefs.h. */
15874 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
15875 For example, HP-UX 11i <limits.h> declares gettimeofday. */
15876 #define $ac_func innocuous_$ac_func
15878 /* System header to define __stub macros and hopefully few prototypes,
15879 which can conflict with char $ac_func (); below.
15880 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
15881 <limits.h> exists even on freestanding compilers. */
15883 #ifdef __STDC__
15884 # include <limits.h>
15885 #else
15886 # include <assert.h>
15887 #endif
15889 #undef $ac_func
15891 /* Override any GCC internal prototype to avoid an error.
15892 Use char because int might match the return type of a GCC
15893 builtin and then its argument prototype would still apply. */
15894 #ifdef __cplusplus
15895 extern "C"
15896 #endif
15897 char $ac_func ();
15898 /* The GNU C library defines this for functions which it implements
15899 to always fail with ENOSYS. Some functions are actually named
15900 something starting with __ and the normal name is an alias. */
15901 #if defined __stub_$ac_func || defined __stub___$ac_func
15902 choke me
15903 #endif
15906 main ()
15908 return $ac_func ();
15910 return 0;
15912 _ACEOF
15913 rm -f conftest.$ac_objext conftest$ac_exeext
15914 if { (ac_try="$ac_link"
15915 case "(($ac_try" in
15916 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15917 *) ac_try_echo=$ac_try;;
15918 esac
15919 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15920 (eval "$ac_link") 2>conftest.er1
15921 ac_status=$?
15922 grep -v '^ *+' conftest.er1 >conftest.err
15923 rm -f conftest.er1
15924 cat conftest.err >&5
15925 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15926 (exit $ac_status); } && {
15927 test -z "$ac_c_werror_flag" ||
15928 test ! -s conftest.err
15929 } && test -s conftest$ac_exeext &&
15930 $as_test_x conftest$ac_exeext; then
15931 eval "$as_ac_var=yes"
15932 else
15933 echo "$as_me: failed program was:" >&5
15934 sed 's/^/| /' conftest.$ac_ext >&5
15936 eval "$as_ac_var=no"
15939 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
15940 conftest$ac_exeext conftest.$ac_ext
15942 ac_res=`eval echo '${'$as_ac_var'}'`
15943 { echo "$as_me:$LINENO: result: $ac_res" >&5
15944 echo "${ECHO_T}$ac_res" >&6; }
15945 if test `eval echo '${'$as_ac_var'}'` = yes; then
15946 cat >>confdefs.h <<_ACEOF
15947 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
15948 _ACEOF
15951 done
15954 for ac_header in maillock.h
15956 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
15957 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15958 { echo "$as_me:$LINENO: checking for $ac_header" >&5
15959 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
15960 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15961 echo $ECHO_N "(cached) $ECHO_C" >&6
15963 ac_res=`eval echo '${'$as_ac_Header'}'`
15964 { echo "$as_me:$LINENO: result: $ac_res" >&5
15965 echo "${ECHO_T}$ac_res" >&6; }
15966 else
15967 # Is the header compilable?
15968 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
15969 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
15970 cat >conftest.$ac_ext <<_ACEOF
15971 /* confdefs.h. */
15972 _ACEOF
15973 cat confdefs.h >>conftest.$ac_ext
15974 cat >>conftest.$ac_ext <<_ACEOF
15975 /* end confdefs.h. */
15976 $ac_includes_default
15977 #include <$ac_header>
15978 _ACEOF
15979 rm -f conftest.$ac_objext
15980 if { (ac_try="$ac_compile"
15981 case "(($ac_try" in
15982 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15983 *) ac_try_echo=$ac_try;;
15984 esac
15985 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15986 (eval "$ac_compile") 2>conftest.er1
15987 ac_status=$?
15988 grep -v '^ *+' conftest.er1 >conftest.err
15989 rm -f conftest.er1
15990 cat conftest.err >&5
15991 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15992 (exit $ac_status); } && {
15993 test -z "$ac_c_werror_flag" ||
15994 test ! -s conftest.err
15995 } && test -s conftest.$ac_objext; then
15996 ac_header_compiler=yes
15997 else
15998 echo "$as_me: failed program was:" >&5
15999 sed 's/^/| /' conftest.$ac_ext >&5
16001 ac_header_compiler=no
16004 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16005 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
16006 echo "${ECHO_T}$ac_header_compiler" >&6; }
16008 # Is the header present?
16009 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
16010 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
16011 cat >conftest.$ac_ext <<_ACEOF
16012 /* confdefs.h. */
16013 _ACEOF
16014 cat confdefs.h >>conftest.$ac_ext
16015 cat >>conftest.$ac_ext <<_ACEOF
16016 /* end confdefs.h. */
16017 #include <$ac_header>
16018 _ACEOF
16019 if { (ac_try="$ac_cpp conftest.$ac_ext"
16020 case "(($ac_try" in
16021 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16022 *) ac_try_echo=$ac_try;;
16023 esac
16024 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16025 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
16026 ac_status=$?
16027 grep -v '^ *+' conftest.er1 >conftest.err
16028 rm -f conftest.er1
16029 cat conftest.err >&5
16030 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16031 (exit $ac_status); } >/dev/null && {
16032 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
16033 test ! -s conftest.err
16034 }; then
16035 ac_header_preproc=yes
16036 else
16037 echo "$as_me: failed program was:" >&5
16038 sed 's/^/| /' conftest.$ac_ext >&5
16040 ac_header_preproc=no
16043 rm -f conftest.err conftest.$ac_ext
16044 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
16045 echo "${ECHO_T}$ac_header_preproc" >&6; }
16047 # So? What about this header?
16048 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
16049 yes:no: )
16050 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
16051 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
16052 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
16053 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
16054 ac_header_preproc=yes
16056 no:yes:* )
16057 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
16058 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
16059 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
16060 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
16061 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
16062 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
16063 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
16064 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
16065 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
16066 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
16067 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
16068 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
16071 esac
16072 { echo "$as_me:$LINENO: checking for $ac_header" >&5
16073 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
16074 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
16075 echo $ECHO_N "(cached) $ECHO_C" >&6
16076 else
16077 eval "$as_ac_Header=\$ac_header_preproc"
16079 ac_res=`eval echo '${'$as_ac_Header'}'`
16080 { echo "$as_me:$LINENO: result: $ac_res" >&5
16081 echo "${ECHO_T}$ac_res" >&6; }
16084 if test `eval echo '${'$as_ac_Header'}'` = yes; then
16085 cat >>confdefs.h <<_ACEOF
16086 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
16087 _ACEOF
16091 done
16165 for ac_func in gethostname getdomainname dup2 \
16166 rename closedir mkdir rmdir sysinfo getrusage get_current_dir_name \
16167 random lrand48 bcopy bcmp logb frexp fmod rint cbrt ftime setsid \
16168 strerror fpathconf select mktime euidaccess getpagesize tzset setlocale \
16169 utimes getrlimit setrlimit setpgid getcwd getwd shutdown getaddrinfo \
16170 __fpending mblen mbrlen mbsinit strsignal setitimer ualarm index rindex \
16171 sendto recvfrom getsockopt setsockopt getsockname getpeername \
16172 gai_strerror mkstemp getline getdelim mremap memmove fsync sync bzero \
16173 memset memcmp difftime memcpy mempcpy mblen mbrlen posix_memalign \
16174 cfmakeraw cfsetspeed
16176 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
16177 { echo "$as_me:$LINENO: checking for $ac_func" >&5
16178 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
16179 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
16180 echo $ECHO_N "(cached) $ECHO_C" >&6
16181 else
16182 cat >conftest.$ac_ext <<_ACEOF
16183 /* confdefs.h. */
16184 _ACEOF
16185 cat confdefs.h >>conftest.$ac_ext
16186 cat >>conftest.$ac_ext <<_ACEOF
16187 /* end confdefs.h. */
16188 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
16189 For example, HP-UX 11i <limits.h> declares gettimeofday. */
16190 #define $ac_func innocuous_$ac_func
16192 /* System header to define __stub macros and hopefully few prototypes,
16193 which can conflict with char $ac_func (); below.
16194 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
16195 <limits.h> exists even on freestanding compilers. */
16197 #ifdef __STDC__
16198 # include <limits.h>
16199 #else
16200 # include <assert.h>
16201 #endif
16203 #undef $ac_func
16205 /* Override any GCC internal prototype to avoid an error.
16206 Use char because int might match the return type of a GCC
16207 builtin and then its argument prototype would still apply. */
16208 #ifdef __cplusplus
16209 extern "C"
16210 #endif
16211 char $ac_func ();
16212 /* The GNU C library defines this for functions which it implements
16213 to always fail with ENOSYS. Some functions are actually named
16214 something starting with __ and the normal name is an alias. */
16215 #if defined __stub_$ac_func || defined __stub___$ac_func
16216 choke me
16217 #endif
16220 main ()
16222 return $ac_func ();
16224 return 0;
16226 _ACEOF
16227 rm -f conftest.$ac_objext conftest$ac_exeext
16228 if { (ac_try="$ac_link"
16229 case "(($ac_try" in
16230 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16231 *) ac_try_echo=$ac_try;;
16232 esac
16233 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16234 (eval "$ac_link") 2>conftest.er1
16235 ac_status=$?
16236 grep -v '^ *+' conftest.er1 >conftest.err
16237 rm -f conftest.er1
16238 cat conftest.err >&5
16239 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16240 (exit $ac_status); } && {
16241 test -z "$ac_c_werror_flag" ||
16242 test ! -s conftest.err
16243 } && test -s conftest$ac_exeext &&
16244 $as_test_x conftest$ac_exeext; then
16245 eval "$as_ac_var=yes"
16246 else
16247 echo "$as_me: failed program was:" >&5
16248 sed 's/^/| /' conftest.$ac_ext >&5
16250 eval "$as_ac_var=no"
16253 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
16254 conftest$ac_exeext conftest.$ac_ext
16256 ac_res=`eval echo '${'$as_ac_var'}'`
16257 { echo "$as_me:$LINENO: result: $ac_res" >&5
16258 echo "${ECHO_T}$ac_res" >&6; }
16259 if test `eval echo '${'$as_ac_var'}'` = yes; then
16260 cat >>confdefs.h <<_ACEOF
16261 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
16262 _ACEOF
16265 done
16269 for ac_header in sys/un.h
16271 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
16272 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
16273 { echo "$as_me:$LINENO: checking for $ac_header" >&5
16274 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
16275 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
16276 echo $ECHO_N "(cached) $ECHO_C" >&6
16278 ac_res=`eval echo '${'$as_ac_Header'}'`
16279 { echo "$as_me:$LINENO: result: $ac_res" >&5
16280 echo "${ECHO_T}$ac_res" >&6; }
16281 else
16282 # Is the header compilable?
16283 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
16284 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
16285 cat >conftest.$ac_ext <<_ACEOF
16286 /* confdefs.h. */
16287 _ACEOF
16288 cat confdefs.h >>conftest.$ac_ext
16289 cat >>conftest.$ac_ext <<_ACEOF
16290 /* end confdefs.h. */
16291 $ac_includes_default
16292 #include <$ac_header>
16293 _ACEOF
16294 rm -f conftest.$ac_objext
16295 if { (ac_try="$ac_compile"
16296 case "(($ac_try" in
16297 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16298 *) ac_try_echo=$ac_try;;
16299 esac
16300 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16301 (eval "$ac_compile") 2>conftest.er1
16302 ac_status=$?
16303 grep -v '^ *+' conftest.er1 >conftest.err
16304 rm -f conftest.er1
16305 cat conftest.err >&5
16306 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16307 (exit $ac_status); } && {
16308 test -z "$ac_c_werror_flag" ||
16309 test ! -s conftest.err
16310 } && test -s conftest.$ac_objext; then
16311 ac_header_compiler=yes
16312 else
16313 echo "$as_me: failed program was:" >&5
16314 sed 's/^/| /' conftest.$ac_ext >&5
16316 ac_header_compiler=no
16319 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16320 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
16321 echo "${ECHO_T}$ac_header_compiler" >&6; }
16323 # Is the header present?
16324 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
16325 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
16326 cat >conftest.$ac_ext <<_ACEOF
16327 /* confdefs.h. */
16328 _ACEOF
16329 cat confdefs.h >>conftest.$ac_ext
16330 cat >>conftest.$ac_ext <<_ACEOF
16331 /* end confdefs.h. */
16332 #include <$ac_header>
16333 _ACEOF
16334 if { (ac_try="$ac_cpp conftest.$ac_ext"
16335 case "(($ac_try" in
16336 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16337 *) ac_try_echo=$ac_try;;
16338 esac
16339 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16340 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
16341 ac_status=$?
16342 grep -v '^ *+' conftest.er1 >conftest.err
16343 rm -f conftest.er1
16344 cat conftest.err >&5
16345 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16346 (exit $ac_status); } >/dev/null && {
16347 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
16348 test ! -s conftest.err
16349 }; then
16350 ac_header_preproc=yes
16351 else
16352 echo "$as_me: failed program was:" >&5
16353 sed 's/^/| /' conftest.$ac_ext >&5
16355 ac_header_preproc=no
16358 rm -f conftest.err conftest.$ac_ext
16359 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
16360 echo "${ECHO_T}$ac_header_preproc" >&6; }
16362 # So? What about this header?
16363 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
16364 yes:no: )
16365 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
16366 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
16367 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
16368 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
16369 ac_header_preproc=yes
16371 no:yes:* )
16372 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
16373 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
16374 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
16375 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
16376 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
16377 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
16378 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
16379 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
16380 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
16381 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
16382 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
16383 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
16386 esac
16387 { echo "$as_me:$LINENO: checking for $ac_header" >&5
16388 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
16389 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
16390 echo $ECHO_N "(cached) $ECHO_C" >&6
16391 else
16392 eval "$as_ac_Header=\$ac_header_preproc"
16394 ac_res=`eval echo '${'$as_ac_Header'}'`
16395 { echo "$as_me:$LINENO: result: $ac_res" >&5
16396 echo "${ECHO_T}$ac_res" >&6; }
16399 if test `eval echo '${'$as_ac_Header'}'` = yes; then
16400 cat >>confdefs.h <<_ACEOF
16401 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
16402 _ACEOF
16406 done
16413 for ac_header in $ac_header_list
16415 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
16416 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
16417 { echo "$as_me:$LINENO: checking for $ac_header" >&5
16418 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
16419 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
16420 echo $ECHO_N "(cached) $ECHO_C" >&6
16422 ac_res=`eval echo '${'$as_ac_Header'}'`
16423 { echo "$as_me:$LINENO: result: $ac_res" >&5
16424 echo "${ECHO_T}$ac_res" >&6; }
16425 else
16426 # Is the header compilable?
16427 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
16428 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
16429 cat >conftest.$ac_ext <<_ACEOF
16430 /* confdefs.h. */
16431 _ACEOF
16432 cat confdefs.h >>conftest.$ac_ext
16433 cat >>conftest.$ac_ext <<_ACEOF
16434 /* end confdefs.h. */
16435 $ac_includes_default
16436 #include <$ac_header>
16437 _ACEOF
16438 rm -f conftest.$ac_objext
16439 if { (ac_try="$ac_compile"
16440 case "(($ac_try" in
16441 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16442 *) ac_try_echo=$ac_try;;
16443 esac
16444 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16445 (eval "$ac_compile") 2>conftest.er1
16446 ac_status=$?
16447 grep -v '^ *+' conftest.er1 >conftest.err
16448 rm -f conftest.er1
16449 cat conftest.err >&5
16450 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16451 (exit $ac_status); } && {
16452 test -z "$ac_c_werror_flag" ||
16453 test ! -s conftest.err
16454 } && test -s conftest.$ac_objext; then
16455 ac_header_compiler=yes
16456 else
16457 echo "$as_me: failed program was:" >&5
16458 sed 's/^/| /' conftest.$ac_ext >&5
16460 ac_header_compiler=no
16463 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16464 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
16465 echo "${ECHO_T}$ac_header_compiler" >&6; }
16467 # Is the header present?
16468 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
16469 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
16470 cat >conftest.$ac_ext <<_ACEOF
16471 /* confdefs.h. */
16472 _ACEOF
16473 cat confdefs.h >>conftest.$ac_ext
16474 cat >>conftest.$ac_ext <<_ACEOF
16475 /* end confdefs.h. */
16476 #include <$ac_header>
16477 _ACEOF
16478 if { (ac_try="$ac_cpp conftest.$ac_ext"
16479 case "(($ac_try" in
16480 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16481 *) ac_try_echo=$ac_try;;
16482 esac
16483 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16484 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
16485 ac_status=$?
16486 grep -v '^ *+' conftest.er1 >conftest.err
16487 rm -f conftest.er1
16488 cat conftest.err >&5
16489 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16490 (exit $ac_status); } >/dev/null && {
16491 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
16492 test ! -s conftest.err
16493 }; then
16494 ac_header_preproc=yes
16495 else
16496 echo "$as_me: failed program was:" >&5
16497 sed 's/^/| /' conftest.$ac_ext >&5
16499 ac_header_preproc=no
16502 rm -f conftest.err conftest.$ac_ext
16503 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
16504 echo "${ECHO_T}$ac_header_preproc" >&6; }
16506 # So? What about this header?
16507 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
16508 yes:no: )
16509 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
16510 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
16511 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
16512 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
16513 ac_header_preproc=yes
16515 no:yes:* )
16516 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
16517 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
16518 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
16519 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
16520 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
16521 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
16522 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
16523 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
16524 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
16525 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
16526 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
16527 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
16530 esac
16531 { echo "$as_me:$LINENO: checking for $ac_header" >&5
16532 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
16533 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
16534 echo $ECHO_N "(cached) $ECHO_C" >&6
16535 else
16536 eval "$as_ac_Header=\$ac_header_preproc"
16538 ac_res=`eval echo '${'$as_ac_Header'}'`
16539 { echo "$as_me:$LINENO: result: $ac_res" >&5
16540 echo "${ECHO_T}$ac_res" >&6; }
16543 if test `eval echo '${'$as_ac_Header'}'` = yes; then
16544 cat >>confdefs.h <<_ACEOF
16545 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
16546 _ACEOF
16550 done
16560 for ac_func in $ac_func_list
16562 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
16563 { echo "$as_me:$LINENO: checking for $ac_func" >&5
16564 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
16565 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
16566 echo $ECHO_N "(cached) $ECHO_C" >&6
16567 else
16568 cat >conftest.$ac_ext <<_ACEOF
16569 /* confdefs.h. */
16570 _ACEOF
16571 cat confdefs.h >>conftest.$ac_ext
16572 cat >>conftest.$ac_ext <<_ACEOF
16573 /* end confdefs.h. */
16574 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
16575 For example, HP-UX 11i <limits.h> declares gettimeofday. */
16576 #define $ac_func innocuous_$ac_func
16578 /* System header to define __stub macros and hopefully few prototypes,
16579 which can conflict with char $ac_func (); below.
16580 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
16581 <limits.h> exists even on freestanding compilers. */
16583 #ifdef __STDC__
16584 # include <limits.h>
16585 #else
16586 # include <assert.h>
16587 #endif
16589 #undef $ac_func
16591 /* Override any GCC internal prototype to avoid an error.
16592 Use char because int might match the return type of a GCC
16593 builtin and then its argument prototype would still apply. */
16594 #ifdef __cplusplus
16595 extern "C"
16596 #endif
16597 char $ac_func ();
16598 /* The GNU C library defines this for functions which it implements
16599 to always fail with ENOSYS. Some functions are actually named
16600 something starting with __ and the normal name is an alias. */
16601 #if defined __stub_$ac_func || defined __stub___$ac_func
16602 choke me
16603 #endif
16606 main ()
16608 return $ac_func ();
16610 return 0;
16612 _ACEOF
16613 rm -f conftest.$ac_objext conftest$ac_exeext
16614 if { (ac_try="$ac_link"
16615 case "(($ac_try" in
16616 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16617 *) ac_try_echo=$ac_try;;
16618 esac
16619 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16620 (eval "$ac_link") 2>conftest.er1
16621 ac_status=$?
16622 grep -v '^ *+' conftest.er1 >conftest.err
16623 rm -f conftest.er1
16624 cat conftest.err >&5
16625 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16626 (exit $ac_status); } && {
16627 test -z "$ac_c_werror_flag" ||
16628 test ! -s conftest.err
16629 } && test -s conftest$ac_exeext &&
16630 $as_test_x conftest$ac_exeext; then
16631 eval "$as_ac_var=yes"
16632 else
16633 echo "$as_me: failed program was:" >&5
16634 sed 's/^/| /' conftest.$ac_ext >&5
16636 eval "$as_ac_var=no"
16639 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
16640 conftest$ac_exeext conftest.$ac_ext
16642 ac_res=`eval echo '${'$as_ac_var'}'`
16643 { echo "$as_me:$LINENO: result: $ac_res" >&5
16644 echo "${ECHO_T}$ac_res" >&6; }
16645 if test `eval echo '${'$as_ac_var'}'` = yes; then
16646 cat >>confdefs.h <<_ACEOF
16647 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
16648 _ACEOF
16651 done
16669 { echo "$as_me:$LINENO: checking for working mktime" >&5
16670 echo $ECHO_N "checking for working mktime... $ECHO_C" >&6; }
16671 if test "${ac_cv_func_working_mktime+set}" = set; then
16672 echo $ECHO_N "(cached) $ECHO_C" >&6
16673 else
16674 if test "$cross_compiling" = yes; then
16675 ac_cv_func_working_mktime=no
16676 else
16677 cat >conftest.$ac_ext <<_ACEOF
16678 /* confdefs.h. */
16679 _ACEOF
16680 cat confdefs.h >>conftest.$ac_ext
16681 cat >>conftest.$ac_ext <<_ACEOF
16682 /* end confdefs.h. */
16683 /* Test program from Paul Eggert and Tony Leneis. */
16684 #ifdef TIME_WITH_SYS_TIME
16685 # include <sys/time.h>
16686 # include <time.h>
16687 #else
16688 # ifdef HAVE_SYS_TIME_H
16689 # include <sys/time.h>
16690 # else
16691 # include <time.h>
16692 # endif
16693 #endif
16695 #include <limits.h>
16696 #include <stdlib.h>
16698 #ifdef HAVE_UNISTD_H
16699 # include <unistd.h>
16700 #endif
16702 #ifndef HAVE_ALARM
16703 # define alarm(X) /* empty */
16704 #endif
16706 /* Work around redefinition to rpl_putenv by other config tests. */
16707 #undef putenv
16709 static time_t time_t_max;
16710 static time_t time_t_min;
16712 /* Values we'll use to set the TZ environment variable. */
16713 static char *tz_strings[] = {
16714 (char *) 0, "TZ=GMT0", "TZ=JST-9",
16715 "TZ=EST+3EDT+2,M10.1.0/00:00:00,M2.3.0/00:00:00"
16717 #define N_STRINGS (sizeof (tz_strings) / sizeof (tz_strings[0]))
16719 /* Return 0 if mktime fails to convert a date in the spring-forward gap.
16720 Based on a problem report from Andreas Jaeger. */
16721 static int
16722 spring_forward_gap ()
16724 /* glibc (up to about 1998-10-07) failed this test. */
16725 struct tm tm;
16727 /* Use the portable POSIX.1 specification "TZ=PST8PDT,M4.1.0,M10.5.0"
16728 instead of "TZ=America/Vancouver" in order to detect the bug even
16729 on systems that don't support the Olson extension, or don't have the
16730 full zoneinfo tables installed. */
16731 putenv ("TZ=PST8PDT,M4.1.0,M10.5.0");
16733 tm.tm_year = 98;
16734 tm.tm_mon = 3;
16735 tm.tm_mday = 5;
16736 tm.tm_hour = 2;
16737 tm.tm_min = 0;
16738 tm.tm_sec = 0;
16739 tm.tm_isdst = -1;
16740 return mktime (&tm) != (time_t) -1;
16743 static int
16744 mktime_test1 (now)
16745 time_t now;
16747 struct tm *lt;
16748 return ! (lt = localtime (&now)) || mktime (lt) == now;
16751 static int
16752 mktime_test (now)
16753 time_t now;
16755 return (mktime_test1 (now)
16756 && mktime_test1 ((time_t) (time_t_max - now))
16757 && mktime_test1 ((time_t) (time_t_min + now)));
16760 static int
16761 irix_6_4_bug ()
16763 /* Based on code from Ariel Faigon. */
16764 struct tm tm;
16765 tm.tm_year = 96;
16766 tm.tm_mon = 3;
16767 tm.tm_mday = 0;
16768 tm.tm_hour = 0;
16769 tm.tm_min = 0;
16770 tm.tm_sec = 0;
16771 tm.tm_isdst = -1;
16772 mktime (&tm);
16773 return tm.tm_mon == 2 && tm.tm_mday == 31;
16776 static int
16777 bigtime_test (j)
16778 int j;
16780 struct tm tm;
16781 time_t now;
16782 tm.tm_year = tm.tm_mon = tm.tm_mday = tm.tm_hour = tm.tm_min = tm.tm_sec = j;
16783 now = mktime (&tm);
16784 if (now != (time_t) -1)
16786 struct tm *lt = localtime (&now);
16787 if (! (lt
16788 && lt->tm_year == tm.tm_year
16789 && lt->tm_mon == tm.tm_mon
16790 && lt->tm_mday == tm.tm_mday
16791 && lt->tm_hour == tm.tm_hour
16792 && lt->tm_min == tm.tm_min
16793 && lt->tm_sec == tm.tm_sec
16794 && lt->tm_yday == tm.tm_yday
16795 && lt->tm_wday == tm.tm_wday
16796 && ((lt->tm_isdst < 0 ? -1 : 0 < lt->tm_isdst)
16797 == (tm.tm_isdst < 0 ? -1 : 0 < tm.tm_isdst))))
16798 return 0;
16800 return 1;
16803 static int
16804 year_2050_test ()
16806 /* The correct answer for 2050-02-01 00:00:00 in Pacific time,
16807 ignoring leap seconds. */
16808 unsigned long int answer = 2527315200UL;
16810 struct tm tm;
16811 time_t t;
16812 tm.tm_year = 2050 - 1900;
16813 tm.tm_mon = 2 - 1;
16814 tm.tm_mday = 1;
16815 tm.tm_hour = tm.tm_min = tm.tm_sec = 0;
16816 tm.tm_isdst = -1;
16818 /* Use the portable POSIX.1 specification "TZ=PST8PDT,M4.1.0,M10.5.0"
16819 instead of "TZ=America/Vancouver" in order to detect the bug even
16820 on systems that don't support the Olson extension, or don't have the
16821 full zoneinfo tables installed. */
16822 putenv ("TZ=PST8PDT,M4.1.0,M10.5.0");
16824 t = mktime (&tm);
16826 /* Check that the result is either a failure, or close enough
16827 to the correct answer that we can assume the discrepancy is
16828 due to leap seconds. */
16829 return (t == (time_t) -1
16830 || (0 < t && answer - 120 <= t && t <= answer + 120));
16834 main ()
16836 time_t t, delta;
16837 int i, j;
16839 /* This test makes some buggy mktime implementations loop.
16840 Give up after 60 seconds; a mktime slower than that
16841 isn't worth using anyway. */
16842 alarm (60);
16844 for (;;)
16846 t = (time_t_max << 1) + 1;
16847 if (t <= time_t_max)
16848 break;
16849 time_t_max = t;
16851 time_t_min = - ((time_t) ~ (time_t) 0 == (time_t) -1) - time_t_max;
16853 delta = time_t_max / 997; /* a suitable prime number */
16854 for (i = 0; i < N_STRINGS; i++)
16856 if (tz_strings[i])
16857 putenv (tz_strings[i]);
16859 for (t = 0; t <= time_t_max - delta; t += delta)
16860 if (! mktime_test (t))
16861 return 1;
16862 if (! (mktime_test ((time_t) 1)
16863 && mktime_test ((time_t) (60 * 60))
16864 && mktime_test ((time_t) (60 * 60 * 24))))
16865 return 1;
16867 for (j = 1; ; j <<= 1)
16868 if (! bigtime_test (j))
16869 return 1;
16870 else if (INT_MAX / 2 < j)
16871 break;
16872 if (! bigtime_test (INT_MAX))
16873 return 1;
16875 return ! (irix_6_4_bug () && spring_forward_gap () && year_2050_test ());
16877 _ACEOF
16878 rm -f conftest$ac_exeext
16879 if { (ac_try="$ac_link"
16880 case "(($ac_try" in
16881 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16882 *) ac_try_echo=$ac_try;;
16883 esac
16884 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16885 (eval "$ac_link") 2>&5
16886 ac_status=$?
16887 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16888 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
16889 { (case "(($ac_try" in
16890 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16891 *) ac_try_echo=$ac_try;;
16892 esac
16893 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16894 (eval "$ac_try") 2>&5
16895 ac_status=$?
16896 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16897 (exit $ac_status); }; }; then
16898 ac_cv_func_working_mktime=yes
16899 else
16900 echo "$as_me: program exited with status $ac_status" >&5
16901 echo "$as_me: failed program was:" >&5
16902 sed 's/^/| /' conftest.$ac_ext >&5
16904 ( exit $ac_status )
16905 ac_cv_func_working_mktime=no
16907 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
16912 { echo "$as_me:$LINENO: result: $ac_cv_func_working_mktime" >&5
16913 echo "${ECHO_T}$ac_cv_func_working_mktime" >&6; }
16914 if test $ac_cv_func_working_mktime = no; then
16915 case " $LIBOBJS " in
16916 *" mktime.$ac_objext "* ) ;;
16917 *) LIBOBJS="$LIBOBJS mktime.$ac_objext"
16919 esac
16923 if test "$ac_cv_func_working_mktime" = no; then
16925 cat >>confdefs.h <<\_ACEOF
16926 #define BROKEN_MKTIME 1
16927 _ACEOF
16931 ac_have_func=no # yes means we've found a way to get the load average.
16933 # Make sure getloadavg.c is where it belongs, at configure-time.
16934 test -f "$srcdir/$ac_config_libobj_dir/getloadavg.c" ||
16935 { { echo "$as_me:$LINENO: error: $srcdir/$ac_config_libobj_dir/getloadavg.c is missing" >&5
16936 echo "$as_me: error: $srcdir/$ac_config_libobj_dir/getloadavg.c is missing" >&2;}
16937 { (exit 1); exit 1; }; }
16939 ac_save_LIBS=$LIBS
16941 # Check for getloadavg, but be sure not to touch the cache variable.
16942 ({ echo "$as_me:$LINENO: checking for getloadavg" >&5
16943 echo $ECHO_N "checking for getloadavg... $ECHO_C" >&6; }
16944 if test "${ac_cv_func_getloadavg+set}" = set; then
16945 echo $ECHO_N "(cached) $ECHO_C" >&6
16946 else
16947 cat >conftest.$ac_ext <<_ACEOF
16948 /* confdefs.h. */
16949 _ACEOF
16950 cat confdefs.h >>conftest.$ac_ext
16951 cat >>conftest.$ac_ext <<_ACEOF
16952 /* end confdefs.h. */
16953 /* Define getloadavg to an innocuous variant, in case <limits.h> declares getloadavg.
16954 For example, HP-UX 11i <limits.h> declares gettimeofday. */
16955 #define getloadavg innocuous_getloadavg
16957 /* System header to define __stub macros and hopefully few prototypes,
16958 which can conflict with char getloadavg (); below.
16959 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
16960 <limits.h> exists even on freestanding compilers. */
16962 #ifdef __STDC__
16963 # include <limits.h>
16964 #else
16965 # include <assert.h>
16966 #endif
16968 #undef getloadavg
16970 /* Override any GCC internal prototype to avoid an error.
16971 Use char because int might match the return type of a GCC
16972 builtin and then its argument prototype would still apply. */
16973 #ifdef __cplusplus
16974 extern "C"
16975 #endif
16976 char getloadavg ();
16977 /* The GNU C library defines this for functions which it implements
16978 to always fail with ENOSYS. Some functions are actually named
16979 something starting with __ and the normal name is an alias. */
16980 #if defined __stub_getloadavg || defined __stub___getloadavg
16981 choke me
16982 #endif
16985 main ()
16987 return getloadavg ();
16989 return 0;
16991 _ACEOF
16992 rm -f conftest.$ac_objext conftest$ac_exeext
16993 if { (ac_try="$ac_link"
16994 case "(($ac_try" in
16995 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16996 *) ac_try_echo=$ac_try;;
16997 esac
16998 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16999 (eval "$ac_link") 2>conftest.er1
17000 ac_status=$?
17001 grep -v '^ *+' conftest.er1 >conftest.err
17002 rm -f conftest.er1
17003 cat conftest.err >&5
17004 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17005 (exit $ac_status); } && {
17006 test -z "$ac_c_werror_flag" ||
17007 test ! -s conftest.err
17008 } && test -s conftest$ac_exeext &&
17009 $as_test_x conftest$ac_exeext; then
17010 ac_cv_func_getloadavg=yes
17011 else
17012 echo "$as_me: failed program was:" >&5
17013 sed 's/^/| /' conftest.$ac_ext >&5
17015 ac_cv_func_getloadavg=no
17018 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
17019 conftest$ac_exeext conftest.$ac_ext
17021 { echo "$as_me:$LINENO: result: $ac_cv_func_getloadavg" >&5
17022 echo "${ECHO_T}$ac_cv_func_getloadavg" >&6; }
17023 if test $ac_cv_func_getloadavg = yes; then
17024 exit 0
17025 else
17026 exit 1
17028 ) && ac_have_func=yes
17030 # On HPUX9, an unprivileged user can get load averages through this function.
17032 for ac_func in pstat_getdynamic
17034 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
17035 { echo "$as_me:$LINENO: checking for $ac_func" >&5
17036 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
17037 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
17038 echo $ECHO_N "(cached) $ECHO_C" >&6
17039 else
17040 cat >conftest.$ac_ext <<_ACEOF
17041 /* confdefs.h. */
17042 _ACEOF
17043 cat confdefs.h >>conftest.$ac_ext
17044 cat >>conftest.$ac_ext <<_ACEOF
17045 /* end confdefs.h. */
17046 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
17047 For example, HP-UX 11i <limits.h> declares gettimeofday. */
17048 #define $ac_func innocuous_$ac_func
17050 /* System header to define __stub macros and hopefully few prototypes,
17051 which can conflict with char $ac_func (); below.
17052 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
17053 <limits.h> exists even on freestanding compilers. */
17055 #ifdef __STDC__
17056 # include <limits.h>
17057 #else
17058 # include <assert.h>
17059 #endif
17061 #undef $ac_func
17063 /* Override any GCC internal prototype to avoid an error.
17064 Use char because int might match the return type of a GCC
17065 builtin and then its argument prototype would still apply. */
17066 #ifdef __cplusplus
17067 extern "C"
17068 #endif
17069 char $ac_func ();
17070 /* The GNU C library defines this for functions which it implements
17071 to always fail with ENOSYS. Some functions are actually named
17072 something starting with __ and the normal name is an alias. */
17073 #if defined __stub_$ac_func || defined __stub___$ac_func
17074 choke me
17075 #endif
17078 main ()
17080 return $ac_func ();
17082 return 0;
17084 _ACEOF
17085 rm -f conftest.$ac_objext conftest$ac_exeext
17086 if { (ac_try="$ac_link"
17087 case "(($ac_try" in
17088 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17089 *) ac_try_echo=$ac_try;;
17090 esac
17091 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17092 (eval "$ac_link") 2>conftest.er1
17093 ac_status=$?
17094 grep -v '^ *+' conftest.er1 >conftest.err
17095 rm -f conftest.er1
17096 cat conftest.err >&5
17097 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17098 (exit $ac_status); } && {
17099 test -z "$ac_c_werror_flag" ||
17100 test ! -s conftest.err
17101 } && test -s conftest$ac_exeext &&
17102 $as_test_x conftest$ac_exeext; then
17103 eval "$as_ac_var=yes"
17104 else
17105 echo "$as_me: failed program was:" >&5
17106 sed 's/^/| /' conftest.$ac_ext >&5
17108 eval "$as_ac_var=no"
17111 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
17112 conftest$ac_exeext conftest.$ac_ext
17114 ac_res=`eval echo '${'$as_ac_var'}'`
17115 { echo "$as_me:$LINENO: result: $ac_res" >&5
17116 echo "${ECHO_T}$ac_res" >&6; }
17117 if test `eval echo '${'$as_ac_var'}'` = yes; then
17118 cat >>confdefs.h <<_ACEOF
17119 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
17120 _ACEOF
17123 done
17126 # Solaris has libkstat which does not require root.
17128 { echo "$as_me:$LINENO: checking for kstat_open in -lkstat" >&5
17129 echo $ECHO_N "checking for kstat_open in -lkstat... $ECHO_C" >&6; }
17130 if test "${ac_cv_lib_kstat_kstat_open+set}" = set; then
17131 echo $ECHO_N "(cached) $ECHO_C" >&6
17132 else
17133 ac_check_lib_save_LIBS=$LIBS
17134 LIBS="-lkstat $LIBS"
17135 cat >conftest.$ac_ext <<_ACEOF
17136 /* confdefs.h. */
17137 _ACEOF
17138 cat confdefs.h >>conftest.$ac_ext
17139 cat >>conftest.$ac_ext <<_ACEOF
17140 /* end confdefs.h. */
17142 /* Override any GCC internal prototype to avoid an error.
17143 Use char because int might match the return type of a GCC
17144 builtin and then its argument prototype would still apply. */
17145 #ifdef __cplusplus
17146 extern "C"
17147 #endif
17148 char kstat_open ();
17150 main ()
17152 return kstat_open ();
17154 return 0;
17156 _ACEOF
17157 rm -f conftest.$ac_objext conftest$ac_exeext
17158 if { (ac_try="$ac_link"
17159 case "(($ac_try" in
17160 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17161 *) ac_try_echo=$ac_try;;
17162 esac
17163 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17164 (eval "$ac_link") 2>conftest.er1
17165 ac_status=$?
17166 grep -v '^ *+' conftest.er1 >conftest.err
17167 rm -f conftest.er1
17168 cat conftest.err >&5
17169 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17170 (exit $ac_status); } && {
17171 test -z "$ac_c_werror_flag" ||
17172 test ! -s conftest.err
17173 } && test -s conftest$ac_exeext &&
17174 $as_test_x conftest$ac_exeext; then
17175 ac_cv_lib_kstat_kstat_open=yes
17176 else
17177 echo "$as_me: failed program was:" >&5
17178 sed 's/^/| /' conftest.$ac_ext >&5
17180 ac_cv_lib_kstat_kstat_open=no
17183 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
17184 conftest$ac_exeext conftest.$ac_ext
17185 LIBS=$ac_check_lib_save_LIBS
17187 { echo "$as_me:$LINENO: result: $ac_cv_lib_kstat_kstat_open" >&5
17188 echo "${ECHO_T}$ac_cv_lib_kstat_kstat_open" >&6; }
17189 if test $ac_cv_lib_kstat_kstat_open = yes; then
17190 cat >>confdefs.h <<_ACEOF
17191 #define HAVE_LIBKSTAT 1
17192 _ACEOF
17194 LIBS="-lkstat $LIBS"
17198 test $ac_cv_lib_kstat_kstat_open = yes && ac_have_func=yes
17200 # Some systems with -lutil have (and need) -lkvm as well, some do not.
17201 # On Solaris, -lkvm requires nlist from -lelf, so check that first
17202 # to get the right answer into the cache.
17203 # For kstat on solaris, we need libelf to force the definition of SVR4 below.
17204 if test $ac_have_func = no; then
17205 { echo "$as_me:$LINENO: checking for elf_begin in -lelf" >&5
17206 echo $ECHO_N "checking for elf_begin in -lelf... $ECHO_C" >&6; }
17207 if test "${ac_cv_lib_elf_elf_begin+set}" = set; then
17208 echo $ECHO_N "(cached) $ECHO_C" >&6
17209 else
17210 ac_check_lib_save_LIBS=$LIBS
17211 LIBS="-lelf $LIBS"
17212 cat >conftest.$ac_ext <<_ACEOF
17213 /* confdefs.h. */
17214 _ACEOF
17215 cat confdefs.h >>conftest.$ac_ext
17216 cat >>conftest.$ac_ext <<_ACEOF
17217 /* end confdefs.h. */
17219 /* Override any GCC internal prototype to avoid an error.
17220 Use char because int might match the return type of a GCC
17221 builtin and then its argument prototype would still apply. */
17222 #ifdef __cplusplus
17223 extern "C"
17224 #endif
17225 char elf_begin ();
17227 main ()
17229 return elf_begin ();
17231 return 0;
17233 _ACEOF
17234 rm -f conftest.$ac_objext conftest$ac_exeext
17235 if { (ac_try="$ac_link"
17236 case "(($ac_try" in
17237 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17238 *) ac_try_echo=$ac_try;;
17239 esac
17240 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17241 (eval "$ac_link") 2>conftest.er1
17242 ac_status=$?
17243 grep -v '^ *+' conftest.er1 >conftest.err
17244 rm -f conftest.er1
17245 cat conftest.err >&5
17246 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17247 (exit $ac_status); } && {
17248 test -z "$ac_c_werror_flag" ||
17249 test ! -s conftest.err
17250 } && test -s conftest$ac_exeext &&
17251 $as_test_x conftest$ac_exeext; then
17252 ac_cv_lib_elf_elf_begin=yes
17253 else
17254 echo "$as_me: failed program was:" >&5
17255 sed 's/^/| /' conftest.$ac_ext >&5
17257 ac_cv_lib_elf_elf_begin=no
17260 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
17261 conftest$ac_exeext conftest.$ac_ext
17262 LIBS=$ac_check_lib_save_LIBS
17264 { echo "$as_me:$LINENO: result: $ac_cv_lib_elf_elf_begin" >&5
17265 echo "${ECHO_T}$ac_cv_lib_elf_elf_begin" >&6; }
17266 if test $ac_cv_lib_elf_elf_begin = yes; then
17267 LIBS="-lelf $LIBS"
17271 if test $ac_have_func = no; then
17272 { echo "$as_me:$LINENO: checking for kvm_open in -lkvm" >&5
17273 echo $ECHO_N "checking for kvm_open in -lkvm... $ECHO_C" >&6; }
17274 if test "${ac_cv_lib_kvm_kvm_open+set}" = set; then
17275 echo $ECHO_N "(cached) $ECHO_C" >&6
17276 else
17277 ac_check_lib_save_LIBS=$LIBS
17278 LIBS="-lkvm $LIBS"
17279 cat >conftest.$ac_ext <<_ACEOF
17280 /* confdefs.h. */
17281 _ACEOF
17282 cat confdefs.h >>conftest.$ac_ext
17283 cat >>conftest.$ac_ext <<_ACEOF
17284 /* end confdefs.h. */
17286 /* Override any GCC internal prototype to avoid an error.
17287 Use char because int might match the return type of a GCC
17288 builtin and then its argument prototype would still apply. */
17289 #ifdef __cplusplus
17290 extern "C"
17291 #endif
17292 char kvm_open ();
17294 main ()
17296 return kvm_open ();
17298 return 0;
17300 _ACEOF
17301 rm -f conftest.$ac_objext conftest$ac_exeext
17302 if { (ac_try="$ac_link"
17303 case "(($ac_try" in
17304 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17305 *) ac_try_echo=$ac_try;;
17306 esac
17307 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17308 (eval "$ac_link") 2>conftest.er1
17309 ac_status=$?
17310 grep -v '^ *+' conftest.er1 >conftest.err
17311 rm -f conftest.er1
17312 cat conftest.err >&5
17313 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17314 (exit $ac_status); } && {
17315 test -z "$ac_c_werror_flag" ||
17316 test ! -s conftest.err
17317 } && test -s conftest$ac_exeext &&
17318 $as_test_x conftest$ac_exeext; then
17319 ac_cv_lib_kvm_kvm_open=yes
17320 else
17321 echo "$as_me: failed program was:" >&5
17322 sed 's/^/| /' conftest.$ac_ext >&5
17324 ac_cv_lib_kvm_kvm_open=no
17327 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
17328 conftest$ac_exeext conftest.$ac_ext
17329 LIBS=$ac_check_lib_save_LIBS
17331 { echo "$as_me:$LINENO: result: $ac_cv_lib_kvm_kvm_open" >&5
17332 echo "${ECHO_T}$ac_cv_lib_kvm_kvm_open" >&6; }
17333 if test $ac_cv_lib_kvm_kvm_open = yes; then
17334 LIBS="-lkvm $LIBS"
17337 # Check for the 4.4BSD definition of getloadavg.
17338 { echo "$as_me:$LINENO: checking for getloadavg in -lutil" >&5
17339 echo $ECHO_N "checking for getloadavg in -lutil... $ECHO_C" >&6; }
17340 if test "${ac_cv_lib_util_getloadavg+set}" = set; then
17341 echo $ECHO_N "(cached) $ECHO_C" >&6
17342 else
17343 ac_check_lib_save_LIBS=$LIBS
17344 LIBS="-lutil $LIBS"
17345 cat >conftest.$ac_ext <<_ACEOF
17346 /* confdefs.h. */
17347 _ACEOF
17348 cat confdefs.h >>conftest.$ac_ext
17349 cat >>conftest.$ac_ext <<_ACEOF
17350 /* end confdefs.h. */
17352 /* Override any GCC internal prototype to avoid an error.
17353 Use char because int might match the return type of a GCC
17354 builtin and then its argument prototype would still apply. */
17355 #ifdef __cplusplus
17356 extern "C"
17357 #endif
17358 char getloadavg ();
17360 main ()
17362 return getloadavg ();
17364 return 0;
17366 _ACEOF
17367 rm -f conftest.$ac_objext conftest$ac_exeext
17368 if { (ac_try="$ac_link"
17369 case "(($ac_try" in
17370 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17371 *) ac_try_echo=$ac_try;;
17372 esac
17373 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17374 (eval "$ac_link") 2>conftest.er1
17375 ac_status=$?
17376 grep -v '^ *+' conftest.er1 >conftest.err
17377 rm -f conftest.er1
17378 cat conftest.err >&5
17379 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17380 (exit $ac_status); } && {
17381 test -z "$ac_c_werror_flag" ||
17382 test ! -s conftest.err
17383 } && test -s conftest$ac_exeext &&
17384 $as_test_x conftest$ac_exeext; then
17385 ac_cv_lib_util_getloadavg=yes
17386 else
17387 echo "$as_me: failed program was:" >&5
17388 sed 's/^/| /' conftest.$ac_ext >&5
17390 ac_cv_lib_util_getloadavg=no
17393 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
17394 conftest$ac_exeext conftest.$ac_ext
17395 LIBS=$ac_check_lib_save_LIBS
17397 { echo "$as_me:$LINENO: result: $ac_cv_lib_util_getloadavg" >&5
17398 echo "${ECHO_T}$ac_cv_lib_util_getloadavg" >&6; }
17399 if test $ac_cv_lib_util_getloadavg = yes; then
17400 LIBS="-lutil $LIBS" ac_have_func=yes ac_cv_func_getloadavg_setgid=yes
17405 if test $ac_have_func = no; then
17406 # There is a commonly available library for RS/6000 AIX.
17407 # Since it is not a standard part of AIX, it might be installed locally.
17408 ac_getloadavg_LIBS=$LIBS
17409 LIBS="-L/usr/local/lib $LIBS"
17410 { echo "$as_me:$LINENO: checking for getloadavg in -lgetloadavg" >&5
17411 echo $ECHO_N "checking for getloadavg in -lgetloadavg... $ECHO_C" >&6; }
17412 if test "${ac_cv_lib_getloadavg_getloadavg+set}" = set; then
17413 echo $ECHO_N "(cached) $ECHO_C" >&6
17414 else
17415 ac_check_lib_save_LIBS=$LIBS
17416 LIBS="-lgetloadavg $LIBS"
17417 cat >conftest.$ac_ext <<_ACEOF
17418 /* confdefs.h. */
17419 _ACEOF
17420 cat confdefs.h >>conftest.$ac_ext
17421 cat >>conftest.$ac_ext <<_ACEOF
17422 /* end confdefs.h. */
17424 /* Override any GCC internal prototype to avoid an error.
17425 Use char because int might match the return type of a GCC
17426 builtin and then its argument prototype would still apply. */
17427 #ifdef __cplusplus
17428 extern "C"
17429 #endif
17430 char getloadavg ();
17432 main ()
17434 return getloadavg ();
17436 return 0;
17438 _ACEOF
17439 rm -f conftest.$ac_objext conftest$ac_exeext
17440 if { (ac_try="$ac_link"
17441 case "(($ac_try" in
17442 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17443 *) ac_try_echo=$ac_try;;
17444 esac
17445 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17446 (eval "$ac_link") 2>conftest.er1
17447 ac_status=$?
17448 grep -v '^ *+' conftest.er1 >conftest.err
17449 rm -f conftest.er1
17450 cat conftest.err >&5
17451 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17452 (exit $ac_status); } && {
17453 test -z "$ac_c_werror_flag" ||
17454 test ! -s conftest.err
17455 } && test -s conftest$ac_exeext &&
17456 $as_test_x conftest$ac_exeext; then
17457 ac_cv_lib_getloadavg_getloadavg=yes
17458 else
17459 echo "$as_me: failed program was:" >&5
17460 sed 's/^/| /' conftest.$ac_ext >&5
17462 ac_cv_lib_getloadavg_getloadavg=no
17465 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
17466 conftest$ac_exeext conftest.$ac_ext
17467 LIBS=$ac_check_lib_save_LIBS
17469 { echo "$as_me:$LINENO: result: $ac_cv_lib_getloadavg_getloadavg" >&5
17470 echo "${ECHO_T}$ac_cv_lib_getloadavg_getloadavg" >&6; }
17471 if test $ac_cv_lib_getloadavg_getloadavg = yes; then
17472 LIBS="-lgetloadavg $LIBS"
17473 else
17474 LIBS=$ac_getloadavg_LIBS
17479 # Make sure it is really in the library, if we think we found it,
17480 # otherwise set up the replacement function.
17482 for ac_func in getloadavg
17484 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
17485 { echo "$as_me:$LINENO: checking for $ac_func" >&5
17486 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
17487 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
17488 echo $ECHO_N "(cached) $ECHO_C" >&6
17489 else
17490 cat >conftest.$ac_ext <<_ACEOF
17491 /* confdefs.h. */
17492 _ACEOF
17493 cat confdefs.h >>conftest.$ac_ext
17494 cat >>conftest.$ac_ext <<_ACEOF
17495 /* end confdefs.h. */
17496 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
17497 For example, HP-UX 11i <limits.h> declares gettimeofday. */
17498 #define $ac_func innocuous_$ac_func
17500 /* System header to define __stub macros and hopefully few prototypes,
17501 which can conflict with char $ac_func (); below.
17502 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
17503 <limits.h> exists even on freestanding compilers. */
17505 #ifdef __STDC__
17506 # include <limits.h>
17507 #else
17508 # include <assert.h>
17509 #endif
17511 #undef $ac_func
17513 /* Override any GCC internal prototype to avoid an error.
17514 Use char because int might match the return type of a GCC
17515 builtin and then its argument prototype would still apply. */
17516 #ifdef __cplusplus
17517 extern "C"
17518 #endif
17519 char $ac_func ();
17520 /* The GNU C library defines this for functions which it implements
17521 to always fail with ENOSYS. Some functions are actually named
17522 something starting with __ and the normal name is an alias. */
17523 #if defined __stub_$ac_func || defined __stub___$ac_func
17524 choke me
17525 #endif
17528 main ()
17530 return $ac_func ();
17532 return 0;
17534 _ACEOF
17535 rm -f conftest.$ac_objext conftest$ac_exeext
17536 if { (ac_try="$ac_link"
17537 case "(($ac_try" in
17538 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17539 *) ac_try_echo=$ac_try;;
17540 esac
17541 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17542 (eval "$ac_link") 2>conftest.er1
17543 ac_status=$?
17544 grep -v '^ *+' conftest.er1 >conftest.err
17545 rm -f conftest.er1
17546 cat conftest.err >&5
17547 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17548 (exit $ac_status); } && {
17549 test -z "$ac_c_werror_flag" ||
17550 test ! -s conftest.err
17551 } && test -s conftest$ac_exeext &&
17552 $as_test_x conftest$ac_exeext; then
17553 eval "$as_ac_var=yes"
17554 else
17555 echo "$as_me: failed program was:" >&5
17556 sed 's/^/| /' conftest.$ac_ext >&5
17558 eval "$as_ac_var=no"
17561 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
17562 conftest$ac_exeext conftest.$ac_ext
17564 ac_res=`eval echo '${'$as_ac_var'}'`
17565 { echo "$as_me:$LINENO: result: $ac_res" >&5
17566 echo "${ECHO_T}$ac_res" >&6; }
17567 if test `eval echo '${'$as_ac_var'}'` = yes; then
17568 cat >>confdefs.h <<_ACEOF
17569 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
17570 _ACEOF
17572 else
17573 case " $LIBOBJS " in
17574 *" getloadavg.$ac_objext "* ) ;;
17575 *) LIBOBJS="$LIBOBJS getloadavg.$ac_objext"
17577 esac
17580 cat >>confdefs.h <<\_ACEOF
17581 #define C_GETLOADAVG 1
17582 _ACEOF
17584 # Figure out what our getloadavg.c needs.
17585 ac_have_func=no
17586 if test "${ac_cv_header_sys_dg_sys_info_h+set}" = set; then
17587 { echo "$as_me:$LINENO: checking for sys/dg_sys_info.h" >&5
17588 echo $ECHO_N "checking for sys/dg_sys_info.h... $ECHO_C" >&6; }
17589 if test "${ac_cv_header_sys_dg_sys_info_h+set}" = set; then
17590 echo $ECHO_N "(cached) $ECHO_C" >&6
17592 { echo "$as_me:$LINENO: result: $ac_cv_header_sys_dg_sys_info_h" >&5
17593 echo "${ECHO_T}$ac_cv_header_sys_dg_sys_info_h" >&6; }
17594 else
17595 # Is the header compilable?
17596 { echo "$as_me:$LINENO: checking sys/dg_sys_info.h usability" >&5
17597 echo $ECHO_N "checking sys/dg_sys_info.h usability... $ECHO_C" >&6; }
17598 cat >conftest.$ac_ext <<_ACEOF
17599 /* confdefs.h. */
17600 _ACEOF
17601 cat confdefs.h >>conftest.$ac_ext
17602 cat >>conftest.$ac_ext <<_ACEOF
17603 /* end confdefs.h. */
17604 $ac_includes_default
17605 #include <sys/dg_sys_info.h>
17606 _ACEOF
17607 rm -f conftest.$ac_objext
17608 if { (ac_try="$ac_compile"
17609 case "(($ac_try" in
17610 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17611 *) ac_try_echo=$ac_try;;
17612 esac
17613 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17614 (eval "$ac_compile") 2>conftest.er1
17615 ac_status=$?
17616 grep -v '^ *+' conftest.er1 >conftest.err
17617 rm -f conftest.er1
17618 cat conftest.err >&5
17619 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17620 (exit $ac_status); } && {
17621 test -z "$ac_c_werror_flag" ||
17622 test ! -s conftest.err
17623 } && test -s conftest.$ac_objext; then
17624 ac_header_compiler=yes
17625 else
17626 echo "$as_me: failed program was:" >&5
17627 sed 's/^/| /' conftest.$ac_ext >&5
17629 ac_header_compiler=no
17632 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17633 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
17634 echo "${ECHO_T}$ac_header_compiler" >&6; }
17636 # Is the header present?
17637 { echo "$as_me:$LINENO: checking sys/dg_sys_info.h presence" >&5
17638 echo $ECHO_N "checking sys/dg_sys_info.h presence... $ECHO_C" >&6; }
17639 cat >conftest.$ac_ext <<_ACEOF
17640 /* confdefs.h. */
17641 _ACEOF
17642 cat confdefs.h >>conftest.$ac_ext
17643 cat >>conftest.$ac_ext <<_ACEOF
17644 /* end confdefs.h. */
17645 #include <sys/dg_sys_info.h>
17646 _ACEOF
17647 if { (ac_try="$ac_cpp conftest.$ac_ext"
17648 case "(($ac_try" in
17649 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17650 *) ac_try_echo=$ac_try;;
17651 esac
17652 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17653 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
17654 ac_status=$?
17655 grep -v '^ *+' conftest.er1 >conftest.err
17656 rm -f conftest.er1
17657 cat conftest.err >&5
17658 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17659 (exit $ac_status); } >/dev/null && {
17660 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
17661 test ! -s conftest.err
17662 }; then
17663 ac_header_preproc=yes
17664 else
17665 echo "$as_me: failed program was:" >&5
17666 sed 's/^/| /' conftest.$ac_ext >&5
17668 ac_header_preproc=no
17671 rm -f conftest.err conftest.$ac_ext
17672 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
17673 echo "${ECHO_T}$ac_header_preproc" >&6; }
17675 # So? What about this header?
17676 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
17677 yes:no: )
17678 { echo "$as_me:$LINENO: WARNING: sys/dg_sys_info.h: accepted by the compiler, rejected by the preprocessor!" >&5
17679 echo "$as_me: WARNING: sys/dg_sys_info.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
17680 { echo "$as_me:$LINENO: WARNING: sys/dg_sys_info.h: proceeding with the compiler's result" >&5
17681 echo "$as_me: WARNING: sys/dg_sys_info.h: proceeding with the compiler's result" >&2;}
17682 ac_header_preproc=yes
17684 no:yes:* )
17685 { echo "$as_me:$LINENO: WARNING: sys/dg_sys_info.h: present but cannot be compiled" >&5
17686 echo "$as_me: WARNING: sys/dg_sys_info.h: present but cannot be compiled" >&2;}
17687 { echo "$as_me:$LINENO: WARNING: sys/dg_sys_info.h: check for missing prerequisite headers?" >&5
17688 echo "$as_me: WARNING: sys/dg_sys_info.h: check for missing prerequisite headers?" >&2;}
17689 { echo "$as_me:$LINENO: WARNING: sys/dg_sys_info.h: see the Autoconf documentation" >&5
17690 echo "$as_me: WARNING: sys/dg_sys_info.h: see the Autoconf documentation" >&2;}
17691 { echo "$as_me:$LINENO: WARNING: sys/dg_sys_info.h: section \"Present But Cannot Be Compiled\"" >&5
17692 echo "$as_me: WARNING: sys/dg_sys_info.h: section \"Present But Cannot Be Compiled\"" >&2;}
17693 { echo "$as_me:$LINENO: WARNING: sys/dg_sys_info.h: proceeding with the preprocessor's result" >&5
17694 echo "$as_me: WARNING: sys/dg_sys_info.h: proceeding with the preprocessor's result" >&2;}
17695 { echo "$as_me:$LINENO: WARNING: sys/dg_sys_info.h: in the future, the compiler will take precedence" >&5
17696 echo "$as_me: WARNING: sys/dg_sys_info.h: in the future, the compiler will take precedence" >&2;}
17699 esac
17700 { echo "$as_me:$LINENO: checking for sys/dg_sys_info.h" >&5
17701 echo $ECHO_N "checking for sys/dg_sys_info.h... $ECHO_C" >&6; }
17702 if test "${ac_cv_header_sys_dg_sys_info_h+set}" = set; then
17703 echo $ECHO_N "(cached) $ECHO_C" >&6
17704 else
17705 ac_cv_header_sys_dg_sys_info_h=$ac_header_preproc
17707 { echo "$as_me:$LINENO: result: $ac_cv_header_sys_dg_sys_info_h" >&5
17708 echo "${ECHO_T}$ac_cv_header_sys_dg_sys_info_h" >&6; }
17711 if test $ac_cv_header_sys_dg_sys_info_h = yes; then
17712 ac_have_func=yes
17714 cat >>confdefs.h <<\_ACEOF
17715 #define DGUX 1
17716 _ACEOF
17719 { echo "$as_me:$LINENO: checking for dg_sys_info in -ldgc" >&5
17720 echo $ECHO_N "checking for dg_sys_info in -ldgc... $ECHO_C" >&6; }
17721 if test "${ac_cv_lib_dgc_dg_sys_info+set}" = set; then
17722 echo $ECHO_N "(cached) $ECHO_C" >&6
17723 else
17724 ac_check_lib_save_LIBS=$LIBS
17725 LIBS="-ldgc $LIBS"
17726 cat >conftest.$ac_ext <<_ACEOF
17727 /* confdefs.h. */
17728 _ACEOF
17729 cat confdefs.h >>conftest.$ac_ext
17730 cat >>conftest.$ac_ext <<_ACEOF
17731 /* end confdefs.h. */
17733 /* Override any GCC internal prototype to avoid an error.
17734 Use char because int might match the return type of a GCC
17735 builtin and then its argument prototype would still apply. */
17736 #ifdef __cplusplus
17737 extern "C"
17738 #endif
17739 char dg_sys_info ();
17741 main ()
17743 return dg_sys_info ();
17745 return 0;
17747 _ACEOF
17748 rm -f conftest.$ac_objext conftest$ac_exeext
17749 if { (ac_try="$ac_link"
17750 case "(($ac_try" in
17751 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17752 *) ac_try_echo=$ac_try;;
17753 esac
17754 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17755 (eval "$ac_link") 2>conftest.er1
17756 ac_status=$?
17757 grep -v '^ *+' conftest.er1 >conftest.err
17758 rm -f conftest.er1
17759 cat conftest.err >&5
17760 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17761 (exit $ac_status); } && {
17762 test -z "$ac_c_werror_flag" ||
17763 test ! -s conftest.err
17764 } && test -s conftest$ac_exeext &&
17765 $as_test_x conftest$ac_exeext; then
17766 ac_cv_lib_dgc_dg_sys_info=yes
17767 else
17768 echo "$as_me: failed program was:" >&5
17769 sed 's/^/| /' conftest.$ac_ext >&5
17771 ac_cv_lib_dgc_dg_sys_info=no
17774 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
17775 conftest$ac_exeext conftest.$ac_ext
17776 LIBS=$ac_check_lib_save_LIBS
17778 { echo "$as_me:$LINENO: result: $ac_cv_lib_dgc_dg_sys_info" >&5
17779 echo "${ECHO_T}$ac_cv_lib_dgc_dg_sys_info" >&6; }
17780 if test $ac_cv_lib_dgc_dg_sys_info = yes; then
17781 cat >>confdefs.h <<_ACEOF
17782 #define HAVE_LIBDGC 1
17783 _ACEOF
17785 LIBS="-ldgc $LIBS"
17793 if test "${ac_cv_header_locale_h+set}" = set; then
17794 { echo "$as_me:$LINENO: checking for locale.h" >&5
17795 echo $ECHO_N "checking for locale.h... $ECHO_C" >&6; }
17796 if test "${ac_cv_header_locale_h+set}" = set; then
17797 echo $ECHO_N "(cached) $ECHO_C" >&6
17799 { echo "$as_me:$LINENO: result: $ac_cv_header_locale_h" >&5
17800 echo "${ECHO_T}$ac_cv_header_locale_h" >&6; }
17801 else
17802 # Is the header compilable?
17803 { echo "$as_me:$LINENO: checking locale.h usability" >&5
17804 echo $ECHO_N "checking locale.h usability... $ECHO_C" >&6; }
17805 cat >conftest.$ac_ext <<_ACEOF
17806 /* confdefs.h. */
17807 _ACEOF
17808 cat confdefs.h >>conftest.$ac_ext
17809 cat >>conftest.$ac_ext <<_ACEOF
17810 /* end confdefs.h. */
17811 $ac_includes_default
17812 #include <locale.h>
17813 _ACEOF
17814 rm -f conftest.$ac_objext
17815 if { (ac_try="$ac_compile"
17816 case "(($ac_try" in
17817 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17818 *) ac_try_echo=$ac_try;;
17819 esac
17820 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17821 (eval "$ac_compile") 2>conftest.er1
17822 ac_status=$?
17823 grep -v '^ *+' conftest.er1 >conftest.err
17824 rm -f conftest.er1
17825 cat conftest.err >&5
17826 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17827 (exit $ac_status); } && {
17828 test -z "$ac_c_werror_flag" ||
17829 test ! -s conftest.err
17830 } && test -s conftest.$ac_objext; then
17831 ac_header_compiler=yes
17832 else
17833 echo "$as_me: failed program was:" >&5
17834 sed 's/^/| /' conftest.$ac_ext >&5
17836 ac_header_compiler=no
17839 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17840 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
17841 echo "${ECHO_T}$ac_header_compiler" >&6; }
17843 # Is the header present?
17844 { echo "$as_me:$LINENO: checking locale.h presence" >&5
17845 echo $ECHO_N "checking locale.h presence... $ECHO_C" >&6; }
17846 cat >conftest.$ac_ext <<_ACEOF
17847 /* confdefs.h. */
17848 _ACEOF
17849 cat confdefs.h >>conftest.$ac_ext
17850 cat >>conftest.$ac_ext <<_ACEOF
17851 /* end confdefs.h. */
17852 #include <locale.h>
17853 _ACEOF
17854 if { (ac_try="$ac_cpp conftest.$ac_ext"
17855 case "(($ac_try" in
17856 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17857 *) ac_try_echo=$ac_try;;
17858 esac
17859 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17860 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
17861 ac_status=$?
17862 grep -v '^ *+' conftest.er1 >conftest.err
17863 rm -f conftest.er1
17864 cat conftest.err >&5
17865 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17866 (exit $ac_status); } >/dev/null && {
17867 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
17868 test ! -s conftest.err
17869 }; then
17870 ac_header_preproc=yes
17871 else
17872 echo "$as_me: failed program was:" >&5
17873 sed 's/^/| /' conftest.$ac_ext >&5
17875 ac_header_preproc=no
17878 rm -f conftest.err conftest.$ac_ext
17879 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
17880 echo "${ECHO_T}$ac_header_preproc" >&6; }
17882 # So? What about this header?
17883 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
17884 yes:no: )
17885 { echo "$as_me:$LINENO: WARNING: locale.h: accepted by the compiler, rejected by the preprocessor!" >&5
17886 echo "$as_me: WARNING: locale.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
17887 { echo "$as_me:$LINENO: WARNING: locale.h: proceeding with the compiler's result" >&5
17888 echo "$as_me: WARNING: locale.h: proceeding with the compiler's result" >&2;}
17889 ac_header_preproc=yes
17891 no:yes:* )
17892 { echo "$as_me:$LINENO: WARNING: locale.h: present but cannot be compiled" >&5
17893 echo "$as_me: WARNING: locale.h: present but cannot be compiled" >&2;}
17894 { echo "$as_me:$LINENO: WARNING: locale.h: check for missing prerequisite headers?" >&5
17895 echo "$as_me: WARNING: locale.h: check for missing prerequisite headers?" >&2;}
17896 { echo "$as_me:$LINENO: WARNING: locale.h: see the Autoconf documentation" >&5
17897 echo "$as_me: WARNING: locale.h: see the Autoconf documentation" >&2;}
17898 { echo "$as_me:$LINENO: WARNING: locale.h: section \"Present But Cannot Be Compiled\"" >&5
17899 echo "$as_me: WARNING: locale.h: section \"Present But Cannot Be Compiled\"" >&2;}
17900 { echo "$as_me:$LINENO: WARNING: locale.h: proceeding with the preprocessor's result" >&5
17901 echo "$as_me: WARNING: locale.h: proceeding with the preprocessor's result" >&2;}
17902 { echo "$as_me:$LINENO: WARNING: locale.h: in the future, the compiler will take precedence" >&5
17903 echo "$as_me: WARNING: locale.h: in the future, the compiler will take precedence" >&2;}
17906 esac
17907 { echo "$as_me:$LINENO: checking for locale.h" >&5
17908 echo $ECHO_N "checking for locale.h... $ECHO_C" >&6; }
17909 if test "${ac_cv_header_locale_h+set}" = set; then
17910 echo $ECHO_N "(cached) $ECHO_C" >&6
17911 else
17912 ac_cv_header_locale_h=$ac_header_preproc
17914 { echo "$as_me:$LINENO: result: $ac_cv_header_locale_h" >&5
17915 echo "${ECHO_T}$ac_cv_header_locale_h" >&6; }
17921 for ac_func in setlocale
17923 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
17924 { echo "$as_me:$LINENO: checking for $ac_func" >&5
17925 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
17926 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
17927 echo $ECHO_N "(cached) $ECHO_C" >&6
17928 else
17929 cat >conftest.$ac_ext <<_ACEOF
17930 /* confdefs.h. */
17931 _ACEOF
17932 cat confdefs.h >>conftest.$ac_ext
17933 cat >>conftest.$ac_ext <<_ACEOF
17934 /* end confdefs.h. */
17935 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
17936 For example, HP-UX 11i <limits.h> declares gettimeofday. */
17937 #define $ac_func innocuous_$ac_func
17939 /* System header to define __stub macros and hopefully few prototypes,
17940 which can conflict with char $ac_func (); below.
17941 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
17942 <limits.h> exists even on freestanding compilers. */
17944 #ifdef __STDC__
17945 # include <limits.h>
17946 #else
17947 # include <assert.h>
17948 #endif
17950 #undef $ac_func
17952 /* Override any GCC internal prototype to avoid an error.
17953 Use char because int might match the return type of a GCC
17954 builtin and then its argument prototype would still apply. */
17955 #ifdef __cplusplus
17956 extern "C"
17957 #endif
17958 char $ac_func ();
17959 /* The GNU C library defines this for functions which it implements
17960 to always fail with ENOSYS. Some functions are actually named
17961 something starting with __ and the normal name is an alias. */
17962 #if defined __stub_$ac_func || defined __stub___$ac_func
17963 choke me
17964 #endif
17967 main ()
17969 return $ac_func ();
17971 return 0;
17973 _ACEOF
17974 rm -f conftest.$ac_objext conftest$ac_exeext
17975 if { (ac_try="$ac_link"
17976 case "(($ac_try" in
17977 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17978 *) ac_try_echo=$ac_try;;
17979 esac
17980 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17981 (eval "$ac_link") 2>conftest.er1
17982 ac_status=$?
17983 grep -v '^ *+' conftest.er1 >conftest.err
17984 rm -f conftest.er1
17985 cat conftest.err >&5
17986 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17987 (exit $ac_status); } && {
17988 test -z "$ac_c_werror_flag" ||
17989 test ! -s conftest.err
17990 } && test -s conftest$ac_exeext &&
17991 $as_test_x conftest$ac_exeext; then
17992 eval "$as_ac_var=yes"
17993 else
17994 echo "$as_me: failed program was:" >&5
17995 sed 's/^/| /' conftest.$ac_ext >&5
17997 eval "$as_ac_var=no"
18000 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
18001 conftest$ac_exeext conftest.$ac_ext
18003 ac_res=`eval echo '${'$as_ac_var'}'`
18004 { echo "$as_me:$LINENO: result: $ac_res" >&5
18005 echo "${ECHO_T}$ac_res" >&6; }
18006 if test `eval echo '${'$as_ac_var'}'` = yes; then
18007 cat >>confdefs.h <<_ACEOF
18008 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
18009 _ACEOF
18012 done
18015 # We cannot check for <dwarf.h>, because Solaris 2 does not use dwarf (it
18016 # uses stabs), but it is still SVR4. We cannot check for <elf.h> because
18017 # Irix 4.0.5F has the header but not the library.
18018 if test $ac_have_func = no && test "$ac_cv_lib_elf_elf_begin" = yes; then
18019 ac_have_func=yes
18021 cat >>confdefs.h <<\_ACEOF
18022 #define SVR4 1
18023 _ACEOF
18027 if test $ac_have_func = no; then
18028 if test "${ac_cv_header_inq_stats_cpustats_h+set}" = set; then
18029 { echo "$as_me:$LINENO: checking for inq_stats/cpustats.h" >&5
18030 echo $ECHO_N "checking for inq_stats/cpustats.h... $ECHO_C" >&6; }
18031 if test "${ac_cv_header_inq_stats_cpustats_h+set}" = set; then
18032 echo $ECHO_N "(cached) $ECHO_C" >&6
18034 { echo "$as_me:$LINENO: result: $ac_cv_header_inq_stats_cpustats_h" >&5
18035 echo "${ECHO_T}$ac_cv_header_inq_stats_cpustats_h" >&6; }
18036 else
18037 # Is the header compilable?
18038 { echo "$as_me:$LINENO: checking inq_stats/cpustats.h usability" >&5
18039 echo $ECHO_N "checking inq_stats/cpustats.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 <inq_stats/cpustats.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 inq_stats/cpustats.h presence" >&5
18080 echo $ECHO_N "checking inq_stats/cpustats.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 <inq_stats/cpustats.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: inq_stats/cpustats.h: accepted by the compiler, rejected by the preprocessor!" >&5
18121 echo "$as_me: WARNING: inq_stats/cpustats.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
18122 { echo "$as_me:$LINENO: WARNING: inq_stats/cpustats.h: proceeding with the compiler's result" >&5
18123 echo "$as_me: WARNING: inq_stats/cpustats.h: proceeding with the compiler's result" >&2;}
18124 ac_header_preproc=yes
18126 no:yes:* )
18127 { echo "$as_me:$LINENO: WARNING: inq_stats/cpustats.h: present but cannot be compiled" >&5
18128 echo "$as_me: WARNING: inq_stats/cpustats.h: present but cannot be compiled" >&2;}
18129 { echo "$as_me:$LINENO: WARNING: inq_stats/cpustats.h: check for missing prerequisite headers?" >&5
18130 echo "$as_me: WARNING: inq_stats/cpustats.h: check for missing prerequisite headers?" >&2;}
18131 { echo "$as_me:$LINENO: WARNING: inq_stats/cpustats.h: see the Autoconf documentation" >&5
18132 echo "$as_me: WARNING: inq_stats/cpustats.h: see the Autoconf documentation" >&2;}
18133 { echo "$as_me:$LINENO: WARNING: inq_stats/cpustats.h: section \"Present But Cannot Be Compiled\"" >&5
18134 echo "$as_me: WARNING: inq_stats/cpustats.h: section \"Present But Cannot Be Compiled\"" >&2;}
18135 { echo "$as_me:$LINENO: WARNING: inq_stats/cpustats.h: proceeding with the preprocessor's result" >&5
18136 echo "$as_me: WARNING: inq_stats/cpustats.h: proceeding with the preprocessor's result" >&2;}
18137 { echo "$as_me:$LINENO: WARNING: inq_stats/cpustats.h: in the future, the compiler will take precedence" >&5
18138 echo "$as_me: WARNING: inq_stats/cpustats.h: in the future, the compiler will take precedence" >&2;}
18141 esac
18142 { echo "$as_me:$LINENO: checking for inq_stats/cpustats.h" >&5
18143 echo $ECHO_N "checking for inq_stats/cpustats.h... $ECHO_C" >&6; }
18144 if test "${ac_cv_header_inq_stats_cpustats_h+set}" = set; then
18145 echo $ECHO_N "(cached) $ECHO_C" >&6
18146 else
18147 ac_cv_header_inq_stats_cpustats_h=$ac_header_preproc
18149 { echo "$as_me:$LINENO: result: $ac_cv_header_inq_stats_cpustats_h" >&5
18150 echo "${ECHO_T}$ac_cv_header_inq_stats_cpustats_h" >&6; }
18153 if test $ac_cv_header_inq_stats_cpustats_h = yes; then
18154 ac_have_func=yes
18156 cat >>confdefs.h <<\_ACEOF
18157 #define UMAX 1
18158 _ACEOF
18161 cat >>confdefs.h <<\_ACEOF
18162 #define UMAX4_3 1
18163 _ACEOF
18170 if test $ac_have_func = no; then
18171 if test "${ac_cv_header_sys_cpustats_h+set}" = set; then
18172 { echo "$as_me:$LINENO: checking for sys/cpustats.h" >&5
18173 echo $ECHO_N "checking for sys/cpustats.h... $ECHO_C" >&6; }
18174 if test "${ac_cv_header_sys_cpustats_h+set}" = set; then
18175 echo $ECHO_N "(cached) $ECHO_C" >&6
18177 { echo "$as_me:$LINENO: result: $ac_cv_header_sys_cpustats_h" >&5
18178 echo "${ECHO_T}$ac_cv_header_sys_cpustats_h" >&6; }
18179 else
18180 # Is the header compilable?
18181 { echo "$as_me:$LINENO: checking sys/cpustats.h usability" >&5
18182 echo $ECHO_N "checking sys/cpustats.h usability... $ECHO_C" >&6; }
18183 cat >conftest.$ac_ext <<_ACEOF
18184 /* confdefs.h. */
18185 _ACEOF
18186 cat confdefs.h >>conftest.$ac_ext
18187 cat >>conftest.$ac_ext <<_ACEOF
18188 /* end confdefs.h. */
18189 $ac_includes_default
18190 #include <sys/cpustats.h>
18191 _ACEOF
18192 rm -f conftest.$ac_objext
18193 if { (ac_try="$ac_compile"
18194 case "(($ac_try" in
18195 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18196 *) ac_try_echo=$ac_try;;
18197 esac
18198 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18199 (eval "$ac_compile") 2>conftest.er1
18200 ac_status=$?
18201 grep -v '^ *+' conftest.er1 >conftest.err
18202 rm -f conftest.er1
18203 cat conftest.err >&5
18204 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18205 (exit $ac_status); } && {
18206 test -z "$ac_c_werror_flag" ||
18207 test ! -s conftest.err
18208 } && test -s conftest.$ac_objext; then
18209 ac_header_compiler=yes
18210 else
18211 echo "$as_me: failed program was:" >&5
18212 sed 's/^/| /' conftest.$ac_ext >&5
18214 ac_header_compiler=no
18217 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18218 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
18219 echo "${ECHO_T}$ac_header_compiler" >&6; }
18221 # Is the header present?
18222 { echo "$as_me:$LINENO: checking sys/cpustats.h presence" >&5
18223 echo $ECHO_N "checking sys/cpustats.h presence... $ECHO_C" >&6; }
18224 cat >conftest.$ac_ext <<_ACEOF
18225 /* confdefs.h. */
18226 _ACEOF
18227 cat confdefs.h >>conftest.$ac_ext
18228 cat >>conftest.$ac_ext <<_ACEOF
18229 /* end confdefs.h. */
18230 #include <sys/cpustats.h>
18231 _ACEOF
18232 if { (ac_try="$ac_cpp conftest.$ac_ext"
18233 case "(($ac_try" in
18234 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18235 *) ac_try_echo=$ac_try;;
18236 esac
18237 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18238 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
18239 ac_status=$?
18240 grep -v '^ *+' conftest.er1 >conftest.err
18241 rm -f conftest.er1
18242 cat conftest.err >&5
18243 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18244 (exit $ac_status); } >/dev/null && {
18245 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
18246 test ! -s conftest.err
18247 }; then
18248 ac_header_preproc=yes
18249 else
18250 echo "$as_me: failed program was:" >&5
18251 sed 's/^/| /' conftest.$ac_ext >&5
18253 ac_header_preproc=no
18256 rm -f conftest.err conftest.$ac_ext
18257 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
18258 echo "${ECHO_T}$ac_header_preproc" >&6; }
18260 # So? What about this header?
18261 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
18262 yes:no: )
18263 { echo "$as_me:$LINENO: WARNING: sys/cpustats.h: accepted by the compiler, rejected by the preprocessor!" >&5
18264 echo "$as_me: WARNING: sys/cpustats.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
18265 { echo "$as_me:$LINENO: WARNING: sys/cpustats.h: proceeding with the compiler's result" >&5
18266 echo "$as_me: WARNING: sys/cpustats.h: proceeding with the compiler's result" >&2;}
18267 ac_header_preproc=yes
18269 no:yes:* )
18270 { echo "$as_me:$LINENO: WARNING: sys/cpustats.h: present but cannot be compiled" >&5
18271 echo "$as_me: WARNING: sys/cpustats.h: present but cannot be compiled" >&2;}
18272 { echo "$as_me:$LINENO: WARNING: sys/cpustats.h: check for missing prerequisite headers?" >&5
18273 echo "$as_me: WARNING: sys/cpustats.h: check for missing prerequisite headers?" >&2;}
18274 { echo "$as_me:$LINENO: WARNING: sys/cpustats.h: see the Autoconf documentation" >&5
18275 echo "$as_me: WARNING: sys/cpustats.h: see the Autoconf documentation" >&2;}
18276 { echo "$as_me:$LINENO: WARNING: sys/cpustats.h: section \"Present But Cannot Be Compiled\"" >&5
18277 echo "$as_me: WARNING: sys/cpustats.h: section \"Present But Cannot Be Compiled\"" >&2;}
18278 { echo "$as_me:$LINENO: WARNING: sys/cpustats.h: proceeding with the preprocessor's result" >&5
18279 echo "$as_me: WARNING: sys/cpustats.h: proceeding with the preprocessor's result" >&2;}
18280 { echo "$as_me:$LINENO: WARNING: sys/cpustats.h: in the future, the compiler will take precedence" >&5
18281 echo "$as_me: WARNING: sys/cpustats.h: in the future, the compiler will take precedence" >&2;}
18284 esac
18285 { echo "$as_me:$LINENO: checking for sys/cpustats.h" >&5
18286 echo $ECHO_N "checking for sys/cpustats.h... $ECHO_C" >&6; }
18287 if test "${ac_cv_header_sys_cpustats_h+set}" = set; then
18288 echo $ECHO_N "(cached) $ECHO_C" >&6
18289 else
18290 ac_cv_header_sys_cpustats_h=$ac_header_preproc
18292 { echo "$as_me:$LINENO: result: $ac_cv_header_sys_cpustats_h" >&5
18293 echo "${ECHO_T}$ac_cv_header_sys_cpustats_h" >&6; }
18296 if test $ac_cv_header_sys_cpustats_h = yes; then
18297 ac_have_func=yes; cat >>confdefs.h <<\_ACEOF
18298 #define UMAX 1
18299 _ACEOF
18306 if test $ac_have_func = no; then
18308 for ac_header in mach/mach.h
18310 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
18311 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
18312 { echo "$as_me:$LINENO: checking for $ac_header" >&5
18313 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
18314 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
18315 echo $ECHO_N "(cached) $ECHO_C" >&6
18317 ac_res=`eval echo '${'$as_ac_Header'}'`
18318 { echo "$as_me:$LINENO: result: $ac_res" >&5
18319 echo "${ECHO_T}$ac_res" >&6; }
18320 else
18321 # Is the header compilable?
18322 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
18323 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
18324 cat >conftest.$ac_ext <<_ACEOF
18325 /* confdefs.h. */
18326 _ACEOF
18327 cat confdefs.h >>conftest.$ac_ext
18328 cat >>conftest.$ac_ext <<_ACEOF
18329 /* end confdefs.h. */
18330 $ac_includes_default
18331 #include <$ac_header>
18332 _ACEOF
18333 rm -f conftest.$ac_objext
18334 if { (ac_try="$ac_compile"
18335 case "(($ac_try" in
18336 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18337 *) ac_try_echo=$ac_try;;
18338 esac
18339 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18340 (eval "$ac_compile") 2>conftest.er1
18341 ac_status=$?
18342 grep -v '^ *+' conftest.er1 >conftest.err
18343 rm -f conftest.er1
18344 cat conftest.err >&5
18345 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18346 (exit $ac_status); } && {
18347 test -z "$ac_c_werror_flag" ||
18348 test ! -s conftest.err
18349 } && test -s conftest.$ac_objext; then
18350 ac_header_compiler=yes
18351 else
18352 echo "$as_me: failed program was:" >&5
18353 sed 's/^/| /' conftest.$ac_ext >&5
18355 ac_header_compiler=no
18358 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18359 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
18360 echo "${ECHO_T}$ac_header_compiler" >&6; }
18362 # Is the header present?
18363 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
18364 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
18365 cat >conftest.$ac_ext <<_ACEOF
18366 /* confdefs.h. */
18367 _ACEOF
18368 cat confdefs.h >>conftest.$ac_ext
18369 cat >>conftest.$ac_ext <<_ACEOF
18370 /* end confdefs.h. */
18371 #include <$ac_header>
18372 _ACEOF
18373 if { (ac_try="$ac_cpp conftest.$ac_ext"
18374 case "(($ac_try" in
18375 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18376 *) ac_try_echo=$ac_try;;
18377 esac
18378 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18379 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
18380 ac_status=$?
18381 grep -v '^ *+' conftest.er1 >conftest.err
18382 rm -f conftest.er1
18383 cat conftest.err >&5
18384 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18385 (exit $ac_status); } >/dev/null && {
18386 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
18387 test ! -s conftest.err
18388 }; then
18389 ac_header_preproc=yes
18390 else
18391 echo "$as_me: failed program was:" >&5
18392 sed 's/^/| /' conftest.$ac_ext >&5
18394 ac_header_preproc=no
18397 rm -f conftest.err conftest.$ac_ext
18398 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
18399 echo "${ECHO_T}$ac_header_preproc" >&6; }
18401 # So? What about this header?
18402 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
18403 yes:no: )
18404 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
18405 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
18406 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
18407 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
18408 ac_header_preproc=yes
18410 no:yes:* )
18411 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
18412 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
18413 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
18414 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
18415 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
18416 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
18417 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
18418 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
18419 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
18420 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
18421 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
18422 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
18425 esac
18426 { echo "$as_me:$LINENO: checking for $ac_header" >&5
18427 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
18428 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
18429 echo $ECHO_N "(cached) $ECHO_C" >&6
18430 else
18431 eval "$as_ac_Header=\$ac_header_preproc"
18433 ac_res=`eval echo '${'$as_ac_Header'}'`
18434 { echo "$as_me:$LINENO: result: $ac_res" >&5
18435 echo "${ECHO_T}$ac_res" >&6; }
18438 if test `eval echo '${'$as_ac_Header'}'` = yes; then
18439 cat >>confdefs.h <<_ACEOF
18440 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
18441 _ACEOF
18445 done
18450 for ac_header in nlist.h
18452 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
18453 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
18454 { echo "$as_me:$LINENO: checking for $ac_header" >&5
18455 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
18456 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
18457 echo $ECHO_N "(cached) $ECHO_C" >&6
18459 ac_res=`eval echo '${'$as_ac_Header'}'`
18460 { echo "$as_me:$LINENO: result: $ac_res" >&5
18461 echo "${ECHO_T}$ac_res" >&6; }
18462 else
18463 # Is the header compilable?
18464 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
18465 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
18466 cat >conftest.$ac_ext <<_ACEOF
18467 /* confdefs.h. */
18468 _ACEOF
18469 cat confdefs.h >>conftest.$ac_ext
18470 cat >>conftest.$ac_ext <<_ACEOF
18471 /* end confdefs.h. */
18472 $ac_includes_default
18473 #include <$ac_header>
18474 _ACEOF
18475 rm -f conftest.$ac_objext
18476 if { (ac_try="$ac_compile"
18477 case "(($ac_try" in
18478 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18479 *) ac_try_echo=$ac_try;;
18480 esac
18481 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18482 (eval "$ac_compile") 2>conftest.er1
18483 ac_status=$?
18484 grep -v '^ *+' conftest.er1 >conftest.err
18485 rm -f conftest.er1
18486 cat conftest.err >&5
18487 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18488 (exit $ac_status); } && {
18489 test -z "$ac_c_werror_flag" ||
18490 test ! -s conftest.err
18491 } && test -s conftest.$ac_objext; then
18492 ac_header_compiler=yes
18493 else
18494 echo "$as_me: failed program was:" >&5
18495 sed 's/^/| /' conftest.$ac_ext >&5
18497 ac_header_compiler=no
18500 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18501 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
18502 echo "${ECHO_T}$ac_header_compiler" >&6; }
18504 # Is the header present?
18505 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
18506 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
18507 cat >conftest.$ac_ext <<_ACEOF
18508 /* confdefs.h. */
18509 _ACEOF
18510 cat confdefs.h >>conftest.$ac_ext
18511 cat >>conftest.$ac_ext <<_ACEOF
18512 /* end confdefs.h. */
18513 #include <$ac_header>
18514 _ACEOF
18515 if { (ac_try="$ac_cpp conftest.$ac_ext"
18516 case "(($ac_try" in
18517 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18518 *) ac_try_echo=$ac_try;;
18519 esac
18520 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18521 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
18522 ac_status=$?
18523 grep -v '^ *+' conftest.er1 >conftest.err
18524 rm -f conftest.er1
18525 cat conftest.err >&5
18526 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18527 (exit $ac_status); } >/dev/null && {
18528 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
18529 test ! -s conftest.err
18530 }; then
18531 ac_header_preproc=yes
18532 else
18533 echo "$as_me: failed program was:" >&5
18534 sed 's/^/| /' conftest.$ac_ext >&5
18536 ac_header_preproc=no
18539 rm -f conftest.err conftest.$ac_ext
18540 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
18541 echo "${ECHO_T}$ac_header_preproc" >&6; }
18543 # So? What about this header?
18544 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
18545 yes:no: )
18546 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
18547 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
18548 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
18549 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
18550 ac_header_preproc=yes
18552 no:yes:* )
18553 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
18554 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
18555 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
18556 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
18557 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
18558 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
18559 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
18560 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
18561 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
18562 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
18563 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
18564 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
18567 esac
18568 { echo "$as_me:$LINENO: checking for $ac_header" >&5
18569 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
18570 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
18571 echo $ECHO_N "(cached) $ECHO_C" >&6
18572 else
18573 eval "$as_ac_Header=\$ac_header_preproc"
18575 ac_res=`eval echo '${'$as_ac_Header'}'`
18576 { echo "$as_me:$LINENO: result: $ac_res" >&5
18577 echo "${ECHO_T}$ac_res" >&6; }
18580 if test `eval echo '${'$as_ac_Header'}'` = yes; then
18581 cat >>confdefs.h <<_ACEOF
18582 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
18583 _ACEOF
18584 { echo "$as_me:$LINENO: checking for struct nlist.n_un.n_name" >&5
18585 echo $ECHO_N "checking for struct nlist.n_un.n_name... $ECHO_C" >&6; }
18586 if test "${ac_cv_member_struct_nlist_n_un_n_name+set}" = set; then
18587 echo $ECHO_N "(cached) $ECHO_C" >&6
18588 else
18589 cat >conftest.$ac_ext <<_ACEOF
18590 /* confdefs.h. */
18591 _ACEOF
18592 cat confdefs.h >>conftest.$ac_ext
18593 cat >>conftest.$ac_ext <<_ACEOF
18594 /* end confdefs.h. */
18595 #include <nlist.h>
18598 main ()
18600 static struct nlist ac_aggr;
18601 if (ac_aggr.n_un.n_name)
18602 return 0;
18604 return 0;
18606 _ACEOF
18607 rm -f conftest.$ac_objext
18608 if { (ac_try="$ac_compile"
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_compile") 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); } && {
18621 test -z "$ac_c_werror_flag" ||
18622 test ! -s conftest.err
18623 } && test -s conftest.$ac_objext; then
18624 ac_cv_member_struct_nlist_n_un_n_name=yes
18625 else
18626 echo "$as_me: failed program was:" >&5
18627 sed 's/^/| /' conftest.$ac_ext >&5
18629 cat >conftest.$ac_ext <<_ACEOF
18630 /* confdefs.h. */
18631 _ACEOF
18632 cat confdefs.h >>conftest.$ac_ext
18633 cat >>conftest.$ac_ext <<_ACEOF
18634 /* end confdefs.h. */
18635 #include <nlist.h>
18638 main ()
18640 static struct nlist ac_aggr;
18641 if (sizeof ac_aggr.n_un.n_name)
18642 return 0;
18644 return 0;
18646 _ACEOF
18647 rm -f conftest.$ac_objext
18648 if { (ac_try="$ac_compile"
18649 case "(($ac_try" in
18650 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18651 *) ac_try_echo=$ac_try;;
18652 esac
18653 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18654 (eval "$ac_compile") 2>conftest.er1
18655 ac_status=$?
18656 grep -v '^ *+' conftest.er1 >conftest.err
18657 rm -f conftest.er1
18658 cat conftest.err >&5
18659 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18660 (exit $ac_status); } && {
18661 test -z "$ac_c_werror_flag" ||
18662 test ! -s conftest.err
18663 } && test -s conftest.$ac_objext; then
18664 ac_cv_member_struct_nlist_n_un_n_name=yes
18665 else
18666 echo "$as_me: failed program was:" >&5
18667 sed 's/^/| /' conftest.$ac_ext >&5
18669 ac_cv_member_struct_nlist_n_un_n_name=no
18672 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18675 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18677 { echo "$as_me:$LINENO: result: $ac_cv_member_struct_nlist_n_un_n_name" >&5
18678 echo "${ECHO_T}$ac_cv_member_struct_nlist_n_un_n_name" >&6; }
18679 if test $ac_cv_member_struct_nlist_n_un_n_name = yes; then
18681 cat >>confdefs.h <<_ACEOF
18682 #define HAVE_STRUCT_NLIST_N_UN_N_NAME 1
18683 _ACEOF
18686 cat >>confdefs.h <<\_ACEOF
18687 #define NLIST_NAME_UNION 1
18688 _ACEOF
18695 done
18698 done
18701 # Some definitions of getloadavg require that the program be installed setgid.
18702 { echo "$as_me:$LINENO: checking whether getloadavg requires setgid" >&5
18703 echo $ECHO_N "checking whether getloadavg requires setgid... $ECHO_C" >&6; }
18704 if test "${ac_cv_func_getloadavg_setgid+set}" = set; then
18705 echo $ECHO_N "(cached) $ECHO_C" >&6
18706 else
18707 cat >conftest.$ac_ext <<_ACEOF
18708 /* confdefs.h. */
18709 _ACEOF
18710 cat confdefs.h >>conftest.$ac_ext
18711 cat >>conftest.$ac_ext <<_ACEOF
18712 /* end confdefs.h. */
18713 #include "$srcdir/$ac_config_libobj_dir/getloadavg.c"
18714 #ifdef LDAV_PRIVILEGED
18715 Yowza Am I SETGID yet
18716 #endif
18717 _ACEOF
18718 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
18719 $EGREP "Yowza Am I SETGID yet" >/dev/null 2>&1; then
18720 ac_cv_func_getloadavg_setgid=yes
18721 else
18722 ac_cv_func_getloadavg_setgid=no
18724 rm -f conftest*
18727 { echo "$as_me:$LINENO: result: $ac_cv_func_getloadavg_setgid" >&5
18728 echo "${ECHO_T}$ac_cv_func_getloadavg_setgid" >&6; }
18729 if test $ac_cv_func_getloadavg_setgid = yes; then
18730 NEED_SETGID=true
18732 cat >>confdefs.h <<\_ACEOF
18733 #define GETLOADAVG_PRIVILEGED 1
18734 _ACEOF
18736 else
18737 NEED_SETGID=false
18740 if test $ac_cv_func_getloadavg_setgid = yes; then
18741 { echo "$as_me:$LINENO: checking group of /dev/kmem" >&5
18742 echo $ECHO_N "checking group of /dev/kmem... $ECHO_C" >&6; }
18743 if test "${ac_cv_group_kmem+set}" = set; then
18744 echo $ECHO_N "(cached) $ECHO_C" >&6
18745 else
18746 # On Solaris, /dev/kmem is a symlink. Get info on the real file.
18747 ac_ls_output=`ls -lgL /dev/kmem 2>/dev/null`
18748 # If we got an error (system does not support symlinks), try without -L.
18749 test -z "$ac_ls_output" && ac_ls_output=`ls -lg /dev/kmem`
18750 ac_cv_group_kmem=`echo $ac_ls_output \
18751 | sed -ne 's/[ ][ ]*/ /g;
18752 s/^.[sSrwx-]* *[0-9]* *\([^0-9]*\) *.*/\1/;
18753 / /s/.* //;p;'`
18756 { echo "$as_me:$LINENO: result: $ac_cv_group_kmem" >&5
18757 echo "${ECHO_T}$ac_cv_group_kmem" >&6; }
18758 KMEM_GROUP=$ac_cv_group_kmem
18760 if test "x$ac_save_LIBS" = x; then
18761 GETLOADAVG_LIBS=$LIBS
18762 else
18763 GETLOADAVG_LIBS=`echo "$LIBS" | sed "s!$ac_save_LIBS!!"`
18765 LIBS=$ac_save_LIBS
18769 { echo "$as_me:$LINENO: checking for _LARGEFILE_SOURCE value needed for large files" >&5
18770 echo $ECHO_N "checking for _LARGEFILE_SOURCE value needed for large files... $ECHO_C" >&6; }
18771 if test "${ac_cv_sys_largefile_source+set}" = set; then
18772 echo $ECHO_N "(cached) $ECHO_C" >&6
18773 else
18774 while :; do
18775 cat >conftest.$ac_ext <<_ACEOF
18776 /* confdefs.h. */
18777 _ACEOF
18778 cat confdefs.h >>conftest.$ac_ext
18779 cat >>conftest.$ac_ext <<_ACEOF
18780 /* end confdefs.h. */
18781 #include <sys/types.h> /* for off_t */
18782 #include <stdio.h>
18784 main ()
18786 int (*fp) (FILE *, off_t, int) = fseeko;
18787 return fseeko (stdin, 0, 0) && fp (stdin, 0, 0);
18789 return 0;
18791 _ACEOF
18792 rm -f conftest.$ac_objext conftest$ac_exeext
18793 if { (ac_try="$ac_link"
18794 case "(($ac_try" in
18795 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18796 *) ac_try_echo=$ac_try;;
18797 esac
18798 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18799 (eval "$ac_link") 2>conftest.er1
18800 ac_status=$?
18801 grep -v '^ *+' conftest.er1 >conftest.err
18802 rm -f conftest.er1
18803 cat conftest.err >&5
18804 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18805 (exit $ac_status); } && {
18806 test -z "$ac_c_werror_flag" ||
18807 test ! -s conftest.err
18808 } && test -s conftest$ac_exeext &&
18809 $as_test_x conftest$ac_exeext; then
18810 ac_cv_sys_largefile_source=no; break
18811 else
18812 echo "$as_me: failed program was:" >&5
18813 sed 's/^/| /' conftest.$ac_ext >&5
18818 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
18819 conftest$ac_exeext conftest.$ac_ext
18820 cat >conftest.$ac_ext <<_ACEOF
18821 /* confdefs.h. */
18822 _ACEOF
18823 cat confdefs.h >>conftest.$ac_ext
18824 cat >>conftest.$ac_ext <<_ACEOF
18825 /* end confdefs.h. */
18826 #define _LARGEFILE_SOURCE 1
18827 #include <sys/types.h> /* for off_t */
18828 #include <stdio.h>
18830 main ()
18832 int (*fp) (FILE *, off_t, int) = fseeko;
18833 return fseeko (stdin, 0, 0) && fp (stdin, 0, 0);
18835 return 0;
18837 _ACEOF
18838 rm -f conftest.$ac_objext conftest$ac_exeext
18839 if { (ac_try="$ac_link"
18840 case "(($ac_try" in
18841 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18842 *) ac_try_echo=$ac_try;;
18843 esac
18844 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18845 (eval "$ac_link") 2>conftest.er1
18846 ac_status=$?
18847 grep -v '^ *+' conftest.er1 >conftest.err
18848 rm -f conftest.er1
18849 cat conftest.err >&5
18850 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18851 (exit $ac_status); } && {
18852 test -z "$ac_c_werror_flag" ||
18853 test ! -s conftest.err
18854 } && test -s conftest$ac_exeext &&
18855 $as_test_x conftest$ac_exeext; then
18856 ac_cv_sys_largefile_source=1; break
18857 else
18858 echo "$as_me: failed program was:" >&5
18859 sed 's/^/| /' conftest.$ac_ext >&5
18864 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
18865 conftest$ac_exeext conftest.$ac_ext
18866 ac_cv_sys_largefile_source=unknown
18867 break
18868 done
18870 { echo "$as_me:$LINENO: result: $ac_cv_sys_largefile_source" >&5
18871 echo "${ECHO_T}$ac_cv_sys_largefile_source" >&6; }
18872 case $ac_cv_sys_largefile_source in #(
18873 no | unknown) ;;
18875 cat >>confdefs.h <<_ACEOF
18876 #define _LARGEFILE_SOURCE $ac_cv_sys_largefile_source
18877 _ACEOF
18879 esac
18880 rm -f conftest*
18882 # We used to try defining _XOPEN_SOURCE=500 too, to work around a bug
18883 # in glibc 2.1.3, but that breaks too many other things.
18884 # If you want fseeko and ftello with glibc, upgrade to a fixed glibc.
18885 if test $ac_cv_sys_largefile_source != unknown; then
18887 cat >>confdefs.h <<\_ACEOF
18888 #define HAVE_FSEEKO 1
18889 _ACEOF
18894 # Configure getopt.
18895 # getopt.m4 serial 10
18897 # The getopt module assume you want GNU getopt, with getopt_long etc,
18898 # rather than vanilla POSIX getopt. This means your your code should
18899 # always include <getopt.h> for the getopt prototypes.
18911 # Prerequisites of lib/getopt*.
18916 GETOPT_H=
18918 for ac_header in getopt.h
18920 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
18921 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
18922 { echo "$as_me:$LINENO: checking for $ac_header" >&5
18923 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
18924 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
18925 echo $ECHO_N "(cached) $ECHO_C" >&6
18927 ac_res=`eval echo '${'$as_ac_Header'}'`
18928 { echo "$as_me:$LINENO: result: $ac_res" >&5
18929 echo "${ECHO_T}$ac_res" >&6; }
18930 else
18931 # Is the header compilable?
18932 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
18933 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
18934 cat >conftest.$ac_ext <<_ACEOF
18935 /* confdefs.h. */
18936 _ACEOF
18937 cat confdefs.h >>conftest.$ac_ext
18938 cat >>conftest.$ac_ext <<_ACEOF
18939 /* end confdefs.h. */
18940 $ac_includes_default
18941 #include <$ac_header>
18942 _ACEOF
18943 rm -f conftest.$ac_objext
18944 if { (ac_try="$ac_compile"
18945 case "(($ac_try" in
18946 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18947 *) ac_try_echo=$ac_try;;
18948 esac
18949 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18950 (eval "$ac_compile") 2>conftest.er1
18951 ac_status=$?
18952 grep -v '^ *+' conftest.er1 >conftest.err
18953 rm -f conftest.er1
18954 cat conftest.err >&5
18955 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18956 (exit $ac_status); } && {
18957 test -z "$ac_c_werror_flag" ||
18958 test ! -s conftest.err
18959 } && test -s conftest.$ac_objext; then
18960 ac_header_compiler=yes
18961 else
18962 echo "$as_me: failed program was:" >&5
18963 sed 's/^/| /' conftest.$ac_ext >&5
18965 ac_header_compiler=no
18968 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18969 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
18970 echo "${ECHO_T}$ac_header_compiler" >&6; }
18972 # Is the header present?
18973 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
18974 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
18975 cat >conftest.$ac_ext <<_ACEOF
18976 /* confdefs.h. */
18977 _ACEOF
18978 cat confdefs.h >>conftest.$ac_ext
18979 cat >>conftest.$ac_ext <<_ACEOF
18980 /* end confdefs.h. */
18981 #include <$ac_header>
18982 _ACEOF
18983 if { (ac_try="$ac_cpp conftest.$ac_ext"
18984 case "(($ac_try" in
18985 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18986 *) ac_try_echo=$ac_try;;
18987 esac
18988 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18989 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
18990 ac_status=$?
18991 grep -v '^ *+' conftest.er1 >conftest.err
18992 rm -f conftest.er1
18993 cat conftest.err >&5
18994 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18995 (exit $ac_status); } >/dev/null && {
18996 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
18997 test ! -s conftest.err
18998 }; then
18999 ac_header_preproc=yes
19000 else
19001 echo "$as_me: failed program was:" >&5
19002 sed 's/^/| /' conftest.$ac_ext >&5
19004 ac_header_preproc=no
19007 rm -f conftest.err conftest.$ac_ext
19008 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
19009 echo "${ECHO_T}$ac_header_preproc" >&6; }
19011 # So? What about this header?
19012 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
19013 yes:no: )
19014 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
19015 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
19016 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
19017 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
19018 ac_header_preproc=yes
19020 no:yes:* )
19021 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
19022 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
19023 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
19024 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
19025 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
19026 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
19027 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
19028 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
19029 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
19030 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
19031 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
19032 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
19035 esac
19036 { echo "$as_me:$LINENO: checking for $ac_header" >&5
19037 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
19038 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
19039 echo $ECHO_N "(cached) $ECHO_C" >&6
19040 else
19041 eval "$as_ac_Header=\$ac_header_preproc"
19043 ac_res=`eval echo '${'$as_ac_Header'}'`
19044 { echo "$as_me:$LINENO: result: $ac_res" >&5
19045 echo "${ECHO_T}$ac_res" >&6; }
19048 if test `eval echo '${'$as_ac_Header'}'` = yes; then
19049 cat >>confdefs.h <<_ACEOF
19050 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
19051 _ACEOF
19053 else
19054 GETOPT_H=getopt.h
19057 done
19059 if test -z "$GETOPT_H"; then
19061 for ac_func in getopt_long_only
19063 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
19064 { echo "$as_me:$LINENO: checking for $ac_func" >&5
19065 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
19066 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
19067 echo $ECHO_N "(cached) $ECHO_C" >&6
19068 else
19069 cat >conftest.$ac_ext <<_ACEOF
19070 /* confdefs.h. */
19071 _ACEOF
19072 cat confdefs.h >>conftest.$ac_ext
19073 cat >>conftest.$ac_ext <<_ACEOF
19074 /* end confdefs.h. */
19075 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
19076 For example, HP-UX 11i <limits.h> declares gettimeofday. */
19077 #define $ac_func innocuous_$ac_func
19079 /* System header to define __stub macros and hopefully few prototypes,
19080 which can conflict with char $ac_func (); below.
19081 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
19082 <limits.h> exists even on freestanding compilers. */
19084 #ifdef __STDC__
19085 # include <limits.h>
19086 #else
19087 # include <assert.h>
19088 #endif
19090 #undef $ac_func
19092 /* Override any GCC internal prototype to avoid an error.
19093 Use char because int might match the return type of a GCC
19094 builtin and then its argument prototype would still apply. */
19095 #ifdef __cplusplus
19096 extern "C"
19097 #endif
19098 char $ac_func ();
19099 /* The GNU C library defines this for functions which it implements
19100 to always fail with ENOSYS. Some functions are actually named
19101 something starting with __ and the normal name is an alias. */
19102 #if defined __stub_$ac_func || defined __stub___$ac_func
19103 choke me
19104 #endif
19107 main ()
19109 return $ac_func ();
19111 return 0;
19113 _ACEOF
19114 rm -f conftest.$ac_objext conftest$ac_exeext
19115 if { (ac_try="$ac_link"
19116 case "(($ac_try" in
19117 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19118 *) ac_try_echo=$ac_try;;
19119 esac
19120 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19121 (eval "$ac_link") 2>conftest.er1
19122 ac_status=$?
19123 grep -v '^ *+' conftest.er1 >conftest.err
19124 rm -f conftest.er1
19125 cat conftest.err >&5
19126 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19127 (exit $ac_status); } && {
19128 test -z "$ac_c_werror_flag" ||
19129 test ! -s conftest.err
19130 } && test -s conftest$ac_exeext &&
19131 $as_test_x conftest$ac_exeext; then
19132 eval "$as_ac_var=yes"
19133 else
19134 echo "$as_me: failed program was:" >&5
19135 sed 's/^/| /' conftest.$ac_ext >&5
19137 eval "$as_ac_var=no"
19140 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
19141 conftest$ac_exeext conftest.$ac_ext
19143 ac_res=`eval echo '${'$as_ac_var'}'`
19144 { echo "$as_me:$LINENO: result: $ac_res" >&5
19145 echo "${ECHO_T}$ac_res" >&6; }
19146 if test `eval echo '${'$as_ac_var'}'` = yes; then
19147 cat >>confdefs.h <<_ACEOF
19148 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
19149 _ACEOF
19151 else
19152 GETOPT_H=getopt.h
19154 done
19158 if test -z "$GETOPT_H"; then
19159 { echo "$as_me:$LINENO: checking whether optreset is declared" >&5
19160 echo $ECHO_N "checking whether optreset is declared... $ECHO_C" >&6; }
19161 if test "${ac_cv_have_decl_optreset+set}" = set; then
19162 echo $ECHO_N "(cached) $ECHO_C" >&6
19163 else
19164 cat >conftest.$ac_ext <<_ACEOF
19165 /* confdefs.h. */
19166 _ACEOF
19167 cat confdefs.h >>conftest.$ac_ext
19168 cat >>conftest.$ac_ext <<_ACEOF
19169 /* end confdefs.h. */
19170 #include <getopt.h>
19173 main ()
19175 #ifndef optreset
19176 (void) optreset;
19177 #endif
19180 return 0;
19182 _ACEOF
19183 rm -f conftest.$ac_objext
19184 if { (ac_try="$ac_compile"
19185 case "(($ac_try" in
19186 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19187 *) ac_try_echo=$ac_try;;
19188 esac
19189 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19190 (eval "$ac_compile") 2>conftest.er1
19191 ac_status=$?
19192 grep -v '^ *+' conftest.er1 >conftest.err
19193 rm -f conftest.er1
19194 cat conftest.err >&5
19195 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19196 (exit $ac_status); } && {
19197 test -z "$ac_c_werror_flag" ||
19198 test ! -s conftest.err
19199 } && test -s conftest.$ac_objext; then
19200 ac_cv_have_decl_optreset=yes
19201 else
19202 echo "$as_me: failed program was:" >&5
19203 sed 's/^/| /' conftest.$ac_ext >&5
19205 ac_cv_have_decl_optreset=no
19208 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19210 { echo "$as_me:$LINENO: result: $ac_cv_have_decl_optreset" >&5
19211 echo "${ECHO_T}$ac_cv_have_decl_optreset" >&6; }
19212 if test $ac_cv_have_decl_optreset = yes; then
19213 GETOPT_H=getopt.h
19218 if test -z "$GETOPT_H"; then
19219 { echo "$as_me:$LINENO: checking for working GNU getopt function" >&5
19220 echo $ECHO_N "checking for working GNU getopt function... $ECHO_C" >&6; }
19221 if test "${gl_cv_func_gnu_getopt+set}" = set; then
19222 echo $ECHO_N "(cached) $ECHO_C" >&6
19223 else
19224 if test "$cross_compiling" = yes; then
19225 { echo "$as_me:$LINENO: checking whether getopt_clip is declared" >&5
19226 echo $ECHO_N "checking whether getopt_clip is declared... $ECHO_C" >&6; }
19227 if test "${ac_cv_have_decl_getopt_clip+set}" = set; then
19228 echo $ECHO_N "(cached) $ECHO_C" >&6
19229 else
19230 cat >conftest.$ac_ext <<_ACEOF
19231 /* confdefs.h. */
19232 _ACEOF
19233 cat confdefs.h >>conftest.$ac_ext
19234 cat >>conftest.$ac_ext <<_ACEOF
19235 /* end confdefs.h. */
19236 #include <getopt.h>
19239 main ()
19241 #ifndef getopt_clip
19242 (void) getopt_clip;
19243 #endif
19246 return 0;
19248 _ACEOF
19249 rm -f conftest.$ac_objext
19250 if { (ac_try="$ac_compile"
19251 case "(($ac_try" in
19252 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19253 *) ac_try_echo=$ac_try;;
19254 esac
19255 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19256 (eval "$ac_compile") 2>conftest.er1
19257 ac_status=$?
19258 grep -v '^ *+' conftest.er1 >conftest.err
19259 rm -f conftest.er1
19260 cat conftest.err >&5
19261 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19262 (exit $ac_status); } && {
19263 test -z "$ac_c_werror_flag" ||
19264 test ! -s conftest.err
19265 } && test -s conftest.$ac_objext; then
19266 ac_cv_have_decl_getopt_clip=yes
19267 else
19268 echo "$as_me: failed program was:" >&5
19269 sed 's/^/| /' conftest.$ac_ext >&5
19271 ac_cv_have_decl_getopt_clip=no
19274 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19276 { echo "$as_me:$LINENO: result: $ac_cv_have_decl_getopt_clip" >&5
19277 echo "${ECHO_T}$ac_cv_have_decl_getopt_clip" >&6; }
19278 if test $ac_cv_have_decl_getopt_clip = yes; then
19279 gl_cv_func_gnu_getopt=no
19280 else
19281 gl_cv_func_gnu_getopt=yes
19284 else
19285 cat >conftest.$ac_ext <<_ACEOF
19286 /* confdefs.h. */
19287 _ACEOF
19288 cat confdefs.h >>conftest.$ac_ext
19289 cat >>conftest.$ac_ext <<_ACEOF
19290 /* end confdefs.h. */
19291 #include <getopt.h>
19293 main ()
19296 char *myargv[3];
19297 myargv[0] = "conftest";
19298 myargv[1] = "-+";
19299 myargv[2] = 0;
19300 return getopt (2, myargv, "+a") != '?';
19303 return 0;
19305 _ACEOF
19306 rm -f conftest$ac_exeext
19307 if { (ac_try="$ac_link"
19308 case "(($ac_try" in
19309 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19310 *) ac_try_echo=$ac_try;;
19311 esac
19312 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19313 (eval "$ac_link") 2>&5
19314 ac_status=$?
19315 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19316 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
19317 { (case "(($ac_try" in
19318 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19319 *) ac_try_echo=$ac_try;;
19320 esac
19321 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19322 (eval "$ac_try") 2>&5
19323 ac_status=$?
19324 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19325 (exit $ac_status); }; }; then
19326 gl_cv_func_gnu_getopt=yes
19327 else
19328 echo "$as_me: program exited with status $ac_status" >&5
19329 echo "$as_me: failed program was:" >&5
19330 sed 's/^/| /' conftest.$ac_ext >&5
19332 ( exit $ac_status )
19333 gl_cv_func_gnu_getopt=no
19335 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
19340 { echo "$as_me:$LINENO: result: $gl_cv_func_gnu_getopt" >&5
19341 echo "${ECHO_T}$gl_cv_func_gnu_getopt" >&6; }
19342 if test "$gl_cv_func_gnu_getopt" = "no"; then
19343 GETOPT_H=getopt.h
19349 if test -n "$GETOPT_H"; then
19352 GETOPT_H=getopt.h
19354 cat >>confdefs.h <<\_ACEOF
19355 #define __GETOPT_PREFIX rpl_
19356 _ACEOF
19361 GETOPTOBJS='getopt.o getopt1.o'
19368 { echo "$as_me:$LINENO: checking whether getpgrp requires zero arguments" >&5
19369 echo $ECHO_N "checking whether getpgrp requires zero arguments... $ECHO_C" >&6; }
19370 if test "${ac_cv_func_getpgrp_void+set}" = set; then
19371 echo $ECHO_N "(cached) $ECHO_C" >&6
19372 else
19373 # Use it with a single arg.
19374 cat >conftest.$ac_ext <<_ACEOF
19375 /* confdefs.h. */
19376 _ACEOF
19377 cat confdefs.h >>conftest.$ac_ext
19378 cat >>conftest.$ac_ext <<_ACEOF
19379 /* end confdefs.h. */
19380 $ac_includes_default
19382 main ()
19384 getpgrp (0);
19386 return 0;
19388 _ACEOF
19389 rm -f conftest.$ac_objext
19390 if { (ac_try="$ac_compile"
19391 case "(($ac_try" in
19392 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19393 *) ac_try_echo=$ac_try;;
19394 esac
19395 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19396 (eval "$ac_compile") 2>conftest.er1
19397 ac_status=$?
19398 grep -v '^ *+' conftest.er1 >conftest.err
19399 rm -f conftest.er1
19400 cat conftest.err >&5
19401 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19402 (exit $ac_status); } && {
19403 test -z "$ac_c_werror_flag" ||
19404 test ! -s conftest.err
19405 } && test -s conftest.$ac_objext; then
19406 ac_cv_func_getpgrp_void=no
19407 else
19408 echo "$as_me: failed program was:" >&5
19409 sed 's/^/| /' conftest.$ac_ext >&5
19411 ac_cv_func_getpgrp_void=yes
19414 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19417 { echo "$as_me:$LINENO: result: $ac_cv_func_getpgrp_void" >&5
19418 echo "${ECHO_T}$ac_cv_func_getpgrp_void" >&6; }
19419 if test $ac_cv_func_getpgrp_void = yes; then
19421 cat >>confdefs.h <<\_ACEOF
19422 #define GETPGRP_VOID 1
19423 _ACEOF
19429 for ac_func in strftime
19431 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
19432 { echo "$as_me:$LINENO: checking for $ac_func" >&5
19433 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
19434 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
19435 echo $ECHO_N "(cached) $ECHO_C" >&6
19436 else
19437 cat >conftest.$ac_ext <<_ACEOF
19438 /* confdefs.h. */
19439 _ACEOF
19440 cat confdefs.h >>conftest.$ac_ext
19441 cat >>conftest.$ac_ext <<_ACEOF
19442 /* end confdefs.h. */
19443 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
19444 For example, HP-UX 11i <limits.h> declares gettimeofday. */
19445 #define $ac_func innocuous_$ac_func
19447 /* System header to define __stub macros and hopefully few prototypes,
19448 which can conflict with char $ac_func (); below.
19449 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
19450 <limits.h> exists even on freestanding compilers. */
19452 #ifdef __STDC__
19453 # include <limits.h>
19454 #else
19455 # include <assert.h>
19456 #endif
19458 #undef $ac_func
19460 /* Override any GCC internal prototype to avoid an error.
19461 Use char because int might match the return type of a GCC
19462 builtin and then its argument prototype would still apply. */
19463 #ifdef __cplusplus
19464 extern "C"
19465 #endif
19466 char $ac_func ();
19467 /* The GNU C library defines this for functions which it implements
19468 to always fail with ENOSYS. Some functions are actually named
19469 something starting with __ and the normal name is an alias. */
19470 #if defined __stub_$ac_func || defined __stub___$ac_func
19471 choke me
19472 #endif
19475 main ()
19477 return $ac_func ();
19479 return 0;
19481 _ACEOF
19482 rm -f conftest.$ac_objext conftest$ac_exeext
19483 if { (ac_try="$ac_link"
19484 case "(($ac_try" in
19485 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19486 *) ac_try_echo=$ac_try;;
19487 esac
19488 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19489 (eval "$ac_link") 2>conftest.er1
19490 ac_status=$?
19491 grep -v '^ *+' conftest.er1 >conftest.err
19492 rm -f conftest.er1
19493 cat conftest.err >&5
19494 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19495 (exit $ac_status); } && {
19496 test -z "$ac_c_werror_flag" ||
19497 test ! -s conftest.err
19498 } && test -s conftest$ac_exeext &&
19499 $as_test_x conftest$ac_exeext; then
19500 eval "$as_ac_var=yes"
19501 else
19502 echo "$as_me: failed program was:" >&5
19503 sed 's/^/| /' conftest.$ac_ext >&5
19505 eval "$as_ac_var=no"
19508 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
19509 conftest$ac_exeext conftest.$ac_ext
19511 ac_res=`eval echo '${'$as_ac_var'}'`
19512 { echo "$as_me:$LINENO: result: $ac_res" >&5
19513 echo "${ECHO_T}$ac_res" >&6; }
19514 if test `eval echo '${'$as_ac_var'}'` = yes; then
19515 cat >>confdefs.h <<_ACEOF
19516 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
19517 _ACEOF
19519 else
19520 # strftime is in -lintl on SCO UNIX.
19521 { echo "$as_me:$LINENO: checking for strftime in -lintl" >&5
19522 echo $ECHO_N "checking for strftime in -lintl... $ECHO_C" >&6; }
19523 if test "${ac_cv_lib_intl_strftime+set}" = set; then
19524 echo $ECHO_N "(cached) $ECHO_C" >&6
19525 else
19526 ac_check_lib_save_LIBS=$LIBS
19527 LIBS="-lintl $LIBS"
19528 cat >conftest.$ac_ext <<_ACEOF
19529 /* confdefs.h. */
19530 _ACEOF
19531 cat confdefs.h >>conftest.$ac_ext
19532 cat >>conftest.$ac_ext <<_ACEOF
19533 /* end confdefs.h. */
19535 /* Override any GCC internal prototype to avoid an error.
19536 Use char because int might match the return type of a GCC
19537 builtin and then its argument prototype would still apply. */
19538 #ifdef __cplusplus
19539 extern "C"
19540 #endif
19541 char strftime ();
19543 main ()
19545 return strftime ();
19547 return 0;
19549 _ACEOF
19550 rm -f conftest.$ac_objext conftest$ac_exeext
19551 if { (ac_try="$ac_link"
19552 case "(($ac_try" in
19553 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19554 *) ac_try_echo=$ac_try;;
19555 esac
19556 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19557 (eval "$ac_link") 2>conftest.er1
19558 ac_status=$?
19559 grep -v '^ *+' conftest.er1 >conftest.err
19560 rm -f conftest.er1
19561 cat conftest.err >&5
19562 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19563 (exit $ac_status); } && {
19564 test -z "$ac_c_werror_flag" ||
19565 test ! -s conftest.err
19566 } && test -s conftest$ac_exeext &&
19567 $as_test_x conftest$ac_exeext; then
19568 ac_cv_lib_intl_strftime=yes
19569 else
19570 echo "$as_me: failed program was:" >&5
19571 sed 's/^/| /' conftest.$ac_ext >&5
19573 ac_cv_lib_intl_strftime=no
19576 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
19577 conftest$ac_exeext conftest.$ac_ext
19578 LIBS=$ac_check_lib_save_LIBS
19580 { echo "$as_me:$LINENO: result: $ac_cv_lib_intl_strftime" >&5
19581 echo "${ECHO_T}$ac_cv_lib_intl_strftime" >&6; }
19582 if test $ac_cv_lib_intl_strftime = yes; then
19583 cat >>confdefs.h <<\_ACEOF
19584 #define HAVE_STRFTIME 1
19585 _ACEOF
19587 LIBS="-lintl $LIBS"
19591 done
19594 # UNIX98 PTYs.
19596 for ac_func in grantpt
19598 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
19599 { echo "$as_me:$LINENO: checking for $ac_func" >&5
19600 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
19601 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
19602 echo $ECHO_N "(cached) $ECHO_C" >&6
19603 else
19604 cat >conftest.$ac_ext <<_ACEOF
19605 /* confdefs.h. */
19606 _ACEOF
19607 cat confdefs.h >>conftest.$ac_ext
19608 cat >>conftest.$ac_ext <<_ACEOF
19609 /* end confdefs.h. */
19610 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
19611 For example, HP-UX 11i <limits.h> declares gettimeofday. */
19612 #define $ac_func innocuous_$ac_func
19614 /* System header to define __stub macros and hopefully few prototypes,
19615 which can conflict with char $ac_func (); below.
19616 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
19617 <limits.h> exists even on freestanding compilers. */
19619 #ifdef __STDC__
19620 # include <limits.h>
19621 #else
19622 # include <assert.h>
19623 #endif
19625 #undef $ac_func
19627 /* Override any GCC internal prototype to avoid an error.
19628 Use char because int might match the return type of a GCC
19629 builtin and then its argument prototype would still apply. */
19630 #ifdef __cplusplus
19631 extern "C"
19632 #endif
19633 char $ac_func ();
19634 /* The GNU C library defines this for functions which it implements
19635 to always fail with ENOSYS. Some functions are actually named
19636 something starting with __ and the normal name is an alias. */
19637 #if defined __stub_$ac_func || defined __stub___$ac_func
19638 choke me
19639 #endif
19642 main ()
19644 return $ac_func ();
19646 return 0;
19648 _ACEOF
19649 rm -f conftest.$ac_objext conftest$ac_exeext
19650 if { (ac_try="$ac_link"
19651 case "(($ac_try" in
19652 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19653 *) ac_try_echo=$ac_try;;
19654 esac
19655 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19656 (eval "$ac_link") 2>conftest.er1
19657 ac_status=$?
19658 grep -v '^ *+' conftest.er1 >conftest.err
19659 rm -f conftest.er1
19660 cat conftest.err >&5
19661 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19662 (exit $ac_status); } && {
19663 test -z "$ac_c_werror_flag" ||
19664 test ! -s conftest.err
19665 } && test -s conftest$ac_exeext &&
19666 $as_test_x conftest$ac_exeext; then
19667 eval "$as_ac_var=yes"
19668 else
19669 echo "$as_me: failed program was:" >&5
19670 sed 's/^/| /' conftest.$ac_ext >&5
19672 eval "$as_ac_var=no"
19675 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
19676 conftest$ac_exeext conftest.$ac_ext
19678 ac_res=`eval echo '${'$as_ac_var'}'`
19679 { echo "$as_me:$LINENO: result: $ac_res" >&5
19680 echo "${ECHO_T}$ac_res" >&6; }
19681 if test `eval echo '${'$as_ac_var'}'` = yes; then
19682 cat >>confdefs.h <<_ACEOF
19683 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
19684 _ACEOF
19687 done
19690 # PTY-related GNU extensions.
19692 for ac_func in getpt
19694 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
19695 { echo "$as_me:$LINENO: checking for $ac_func" >&5
19696 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
19697 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
19698 echo $ECHO_N "(cached) $ECHO_C" >&6
19699 else
19700 cat >conftest.$ac_ext <<_ACEOF
19701 /* confdefs.h. */
19702 _ACEOF
19703 cat confdefs.h >>conftest.$ac_ext
19704 cat >>conftest.$ac_ext <<_ACEOF
19705 /* end confdefs.h. */
19706 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
19707 For example, HP-UX 11i <limits.h> declares gettimeofday. */
19708 #define $ac_func innocuous_$ac_func
19710 /* System header to define __stub macros and hopefully few prototypes,
19711 which can conflict with char $ac_func (); below.
19712 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
19713 <limits.h> exists even on freestanding compilers. */
19715 #ifdef __STDC__
19716 # include <limits.h>
19717 #else
19718 # include <assert.h>
19719 #endif
19721 #undef $ac_func
19723 /* Override any GCC internal prototype to avoid an error.
19724 Use char because int might match the return type of a GCC
19725 builtin and then its argument prototype would still apply. */
19726 #ifdef __cplusplus
19727 extern "C"
19728 #endif
19729 char $ac_func ();
19730 /* The GNU C library defines this for functions which it implements
19731 to always fail with ENOSYS. Some functions are actually named
19732 something starting with __ and the normal name is an alias. */
19733 #if defined __stub_$ac_func || defined __stub___$ac_func
19734 choke me
19735 #endif
19738 main ()
19740 return $ac_func ();
19742 return 0;
19744 _ACEOF
19745 rm -f conftest.$ac_objext conftest$ac_exeext
19746 if { (ac_try="$ac_link"
19747 case "(($ac_try" in
19748 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19749 *) ac_try_echo=$ac_try;;
19750 esac
19751 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19752 (eval "$ac_link") 2>conftest.er1
19753 ac_status=$?
19754 grep -v '^ *+' conftest.er1 >conftest.err
19755 rm -f conftest.er1
19756 cat conftest.err >&5
19757 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19758 (exit $ac_status); } && {
19759 test -z "$ac_c_werror_flag" ||
19760 test ! -s conftest.err
19761 } && test -s conftest$ac_exeext &&
19762 $as_test_x conftest$ac_exeext; then
19763 eval "$as_ac_var=yes"
19764 else
19765 echo "$as_me: failed program was:" >&5
19766 sed 's/^/| /' conftest.$ac_ext >&5
19768 eval "$as_ac_var=no"
19771 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
19772 conftest$ac_exeext conftest.$ac_ext
19774 ac_res=`eval echo '${'$as_ac_var'}'`
19775 { echo "$as_me:$LINENO: result: $ac_res" >&5
19776 echo "${ECHO_T}$ac_res" >&6; }
19777 if test `eval echo '${'$as_ac_var'}'` = yes; then
19778 cat >>confdefs.h <<_ACEOF
19779 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
19780 _ACEOF
19783 done
19786 # Check this now, so that we will NOT find the above functions in ncurses.
19787 # That is because we have not set up to link ncurses in lib-src.
19788 # It's better to believe a function is not available
19789 # than to expect to find it in ncurses.
19791 { echo "$as_me:$LINENO: checking for tparm in -lncurses" >&5
19792 echo $ECHO_N "checking for tparm in -lncurses... $ECHO_C" >&6; }
19793 if test "${ac_cv_lib_ncurses_tparm+set}" = set; then
19794 echo $ECHO_N "(cached) $ECHO_C" >&6
19795 else
19796 ac_check_lib_save_LIBS=$LIBS
19797 LIBS="-lncurses $LIBS"
19798 cat >conftest.$ac_ext <<_ACEOF
19799 /* confdefs.h. */
19800 _ACEOF
19801 cat confdefs.h >>conftest.$ac_ext
19802 cat >>conftest.$ac_ext <<_ACEOF
19803 /* end confdefs.h. */
19805 /* Override any GCC internal prototype to avoid an error.
19806 Use char because int might match the return type of a GCC
19807 builtin and then its argument prototype would still apply. */
19808 #ifdef __cplusplus
19809 extern "C"
19810 #endif
19811 char tparm ();
19813 main ()
19815 return tparm ();
19817 return 0;
19819 _ACEOF
19820 rm -f conftest.$ac_objext conftest$ac_exeext
19821 if { (ac_try="$ac_link"
19822 case "(($ac_try" in
19823 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19824 *) ac_try_echo=$ac_try;;
19825 esac
19826 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19827 (eval "$ac_link") 2>conftest.er1
19828 ac_status=$?
19829 grep -v '^ *+' conftest.er1 >conftest.err
19830 rm -f conftest.er1
19831 cat conftest.err >&5
19832 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19833 (exit $ac_status); } && {
19834 test -z "$ac_c_werror_flag" ||
19835 test ! -s conftest.err
19836 } && test -s conftest$ac_exeext &&
19837 $as_test_x conftest$ac_exeext; then
19838 ac_cv_lib_ncurses_tparm=yes
19839 else
19840 echo "$as_me: failed program was:" >&5
19841 sed 's/^/| /' conftest.$ac_ext >&5
19843 ac_cv_lib_ncurses_tparm=no
19846 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
19847 conftest$ac_exeext conftest.$ac_ext
19848 LIBS=$ac_check_lib_save_LIBS
19850 { echo "$as_me:$LINENO: result: $ac_cv_lib_ncurses_tparm" >&5
19851 echo "${ECHO_T}$ac_cv_lib_ncurses_tparm" >&6; }
19852 if test $ac_cv_lib_ncurses_tparm = yes; then
19853 cat >>confdefs.h <<_ACEOF
19854 #define HAVE_LIBNCURSES 1
19855 _ACEOF
19857 LIBS="-lncurses $LIBS"
19862 # Do we have res_init, for detecting changes in /etc/resolv.conf?
19864 resolv=no
19865 cat >conftest.$ac_ext <<_ACEOF
19866 /* confdefs.h. */
19867 _ACEOF
19868 cat confdefs.h >>conftest.$ac_ext
19869 cat >>conftest.$ac_ext <<_ACEOF
19870 /* end confdefs.h. */
19871 #include <netinet/in.h>
19872 #include <arpa/nameser.h>
19873 #include <resolv.h>
19875 main ()
19877 return res_init();
19879 return 0;
19881 _ACEOF
19882 rm -f conftest.$ac_objext conftest$ac_exeext
19883 if { (ac_try="$ac_link"
19884 case "(($ac_try" in
19885 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19886 *) ac_try_echo=$ac_try;;
19887 esac
19888 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19889 (eval "$ac_link") 2>conftest.er1
19890 ac_status=$?
19891 grep -v '^ *+' conftest.er1 >conftest.err
19892 rm -f conftest.er1
19893 cat conftest.err >&5
19894 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19895 (exit $ac_status); } && {
19896 test -z "$ac_c_werror_flag" ||
19897 test ! -s conftest.err
19898 } && test -s conftest$ac_exeext &&
19899 $as_test_x conftest$ac_exeext; then
19900 have_res_init=yes
19901 else
19902 echo "$as_me: failed program was:" >&5
19903 sed 's/^/| /' conftest.$ac_ext >&5
19905 have_res_init=no
19908 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
19909 conftest$ac_exeext conftest.$ac_ext
19910 if test "$have_res_init" = no; then
19911 OLIBS="$LIBS"
19912 LIBS="$LIBS -lresolv"
19913 { echo "$as_me:$LINENO: checking for res_init with -lresolv" >&5
19914 echo $ECHO_N "checking for res_init with -lresolv... $ECHO_C" >&6; }
19915 cat >conftest.$ac_ext <<_ACEOF
19916 /* confdefs.h. */
19917 _ACEOF
19918 cat confdefs.h >>conftest.$ac_ext
19919 cat >>conftest.$ac_ext <<_ACEOF
19920 /* end confdefs.h. */
19921 #include <netinet/in.h>
19922 #include <arpa/nameser.h>
19923 #include <resolv.h>
19925 main ()
19927 return res_init();
19929 return 0;
19931 _ACEOF
19932 rm -f conftest.$ac_objext conftest$ac_exeext
19933 if { (ac_try="$ac_link"
19934 case "(($ac_try" in
19935 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19936 *) ac_try_echo=$ac_try;;
19937 esac
19938 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19939 (eval "$ac_link") 2>conftest.er1
19940 ac_status=$?
19941 grep -v '^ *+' conftest.er1 >conftest.err
19942 rm -f conftest.er1
19943 cat conftest.err >&5
19944 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19945 (exit $ac_status); } && {
19946 test -z "$ac_c_werror_flag" ||
19947 test ! -s conftest.err
19948 } && test -s conftest$ac_exeext &&
19949 $as_test_x conftest$ac_exeext; then
19950 have_res_init=yes
19951 else
19952 echo "$as_me: failed program was:" >&5
19953 sed 's/^/| /' conftest.$ac_ext >&5
19955 have_res_init=no
19958 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
19959 conftest$ac_exeext conftest.$ac_ext
19960 { echo "$as_me:$LINENO: result: $have_res_init" >&5
19961 echo "${ECHO_T}$have_res_init" >&6; }
19962 if test "$have_res_init" = yes ; then
19963 resolv=yes
19965 LIBS="$OLIBS"
19968 if test "$have_res_init" = yes; then
19970 cat >>confdefs.h <<\_ACEOF
19971 #define HAVE_RES_INIT 1
19972 _ACEOF
19976 # Do we need the Hesiod library to provide the support routines?
19977 if test "$with_hesiod" != no ; then
19978 # Don't set $LIBS here -- see comments above.
19979 { echo "$as_me:$LINENO: checking for res_send" >&5
19980 echo $ECHO_N "checking for res_send... $ECHO_C" >&6; }
19981 if test "${ac_cv_func_res_send+set}" = set; then
19982 echo $ECHO_N "(cached) $ECHO_C" >&6
19983 else
19984 cat >conftest.$ac_ext <<_ACEOF
19985 /* confdefs.h. */
19986 _ACEOF
19987 cat confdefs.h >>conftest.$ac_ext
19988 cat >>conftest.$ac_ext <<_ACEOF
19989 /* end confdefs.h. */
19990 /* Define res_send to an innocuous variant, in case <limits.h> declares res_send.
19991 For example, HP-UX 11i <limits.h> declares gettimeofday. */
19992 #define res_send innocuous_res_send
19994 /* System header to define __stub macros and hopefully few prototypes,
19995 which can conflict with char res_send (); below.
19996 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
19997 <limits.h> exists even on freestanding compilers. */
19999 #ifdef __STDC__
20000 # include <limits.h>
20001 #else
20002 # include <assert.h>
20003 #endif
20005 #undef res_send
20007 /* Override any GCC internal prototype to avoid an error.
20008 Use char because int might match the return type of a GCC
20009 builtin and then its argument prototype would still apply. */
20010 #ifdef __cplusplus
20011 extern "C"
20012 #endif
20013 char res_send ();
20014 /* The GNU C library defines this for functions which it implements
20015 to always fail with ENOSYS. Some functions are actually named
20016 something starting with __ and the normal name is an alias. */
20017 #if defined __stub_res_send || defined __stub___res_send
20018 choke me
20019 #endif
20022 main ()
20024 return res_send ();
20026 return 0;
20028 _ACEOF
20029 rm -f conftest.$ac_objext conftest$ac_exeext
20030 if { (ac_try="$ac_link"
20031 case "(($ac_try" in
20032 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20033 *) ac_try_echo=$ac_try;;
20034 esac
20035 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20036 (eval "$ac_link") 2>conftest.er1
20037 ac_status=$?
20038 grep -v '^ *+' conftest.er1 >conftest.err
20039 rm -f conftest.er1
20040 cat conftest.err >&5
20041 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20042 (exit $ac_status); } && {
20043 test -z "$ac_c_werror_flag" ||
20044 test ! -s conftest.err
20045 } && test -s conftest$ac_exeext &&
20046 $as_test_x conftest$ac_exeext; then
20047 ac_cv_func_res_send=yes
20048 else
20049 echo "$as_me: failed program was:" >&5
20050 sed 's/^/| /' conftest.$ac_ext >&5
20052 ac_cv_func_res_send=no
20055 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
20056 conftest$ac_exeext conftest.$ac_ext
20058 { echo "$as_me:$LINENO: result: $ac_cv_func_res_send" >&5
20059 echo "${ECHO_T}$ac_cv_func_res_send" >&6; }
20060 if test $ac_cv_func_res_send = yes; then
20062 else
20063 { echo "$as_me:$LINENO: checking for __res_send" >&5
20064 echo $ECHO_N "checking for __res_send... $ECHO_C" >&6; }
20065 if test "${ac_cv_func___res_send+set}" = set; then
20066 echo $ECHO_N "(cached) $ECHO_C" >&6
20067 else
20068 cat >conftest.$ac_ext <<_ACEOF
20069 /* confdefs.h. */
20070 _ACEOF
20071 cat confdefs.h >>conftest.$ac_ext
20072 cat >>conftest.$ac_ext <<_ACEOF
20073 /* end confdefs.h. */
20074 /* Define __res_send to an innocuous variant, in case <limits.h> declares __res_send.
20075 For example, HP-UX 11i <limits.h> declares gettimeofday. */
20076 #define __res_send innocuous___res_send
20078 /* System header to define __stub macros and hopefully few prototypes,
20079 which can conflict with char __res_send (); below.
20080 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
20081 <limits.h> exists even on freestanding compilers. */
20083 #ifdef __STDC__
20084 # include <limits.h>
20085 #else
20086 # include <assert.h>
20087 #endif
20089 #undef __res_send
20091 /* Override any GCC internal prototype to avoid an error.
20092 Use char because int might match the return type of a GCC
20093 builtin and then its argument prototype would still apply. */
20094 #ifdef __cplusplus
20095 extern "C"
20096 #endif
20097 char __res_send ();
20098 /* The GNU C library defines this for functions which it implements
20099 to always fail with ENOSYS. Some functions are actually named
20100 something starting with __ and the normal name is an alias. */
20101 #if defined __stub___res_send || defined __stub_____res_send
20102 choke me
20103 #endif
20106 main ()
20108 return __res_send ();
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 ac_cv_func___res_send=yes
20132 else
20133 echo "$as_me: failed program was:" >&5
20134 sed 's/^/| /' conftest.$ac_ext >&5
20136 ac_cv_func___res_send=no
20139 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
20140 conftest$ac_exeext conftest.$ac_ext
20142 { echo "$as_me:$LINENO: result: $ac_cv_func___res_send" >&5
20143 echo "${ECHO_T}$ac_cv_func___res_send" >&6; }
20144 if test $ac_cv_func___res_send = yes; then
20146 else
20147 { echo "$as_me:$LINENO: checking for res_send in -lresolv" >&5
20148 echo $ECHO_N "checking for res_send in -lresolv... $ECHO_C" >&6; }
20149 if test "${ac_cv_lib_resolv_res_send+set}" = set; then
20150 echo $ECHO_N "(cached) $ECHO_C" >&6
20151 else
20152 ac_check_lib_save_LIBS=$LIBS
20153 LIBS="-lresolv $LIBS"
20154 cat >conftest.$ac_ext <<_ACEOF
20155 /* confdefs.h. */
20156 _ACEOF
20157 cat confdefs.h >>conftest.$ac_ext
20158 cat >>conftest.$ac_ext <<_ACEOF
20159 /* end confdefs.h. */
20161 /* Override any GCC internal prototype to avoid an error.
20162 Use char because int might match the return type of a GCC
20163 builtin and then its argument prototype would still apply. */
20164 #ifdef __cplusplus
20165 extern "C"
20166 #endif
20167 char res_send ();
20169 main ()
20171 return res_send ();
20173 return 0;
20175 _ACEOF
20176 rm -f conftest.$ac_objext conftest$ac_exeext
20177 if { (ac_try="$ac_link"
20178 case "(($ac_try" in
20179 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20180 *) ac_try_echo=$ac_try;;
20181 esac
20182 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20183 (eval "$ac_link") 2>conftest.er1
20184 ac_status=$?
20185 grep -v '^ *+' conftest.er1 >conftest.err
20186 rm -f conftest.er1
20187 cat conftest.err >&5
20188 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20189 (exit $ac_status); } && {
20190 test -z "$ac_c_werror_flag" ||
20191 test ! -s conftest.err
20192 } && test -s conftest$ac_exeext &&
20193 $as_test_x conftest$ac_exeext; then
20194 ac_cv_lib_resolv_res_send=yes
20195 else
20196 echo "$as_me: failed program was:" >&5
20197 sed 's/^/| /' conftest.$ac_ext >&5
20199 ac_cv_lib_resolv_res_send=no
20202 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
20203 conftest$ac_exeext conftest.$ac_ext
20204 LIBS=$ac_check_lib_save_LIBS
20206 { echo "$as_me:$LINENO: result: $ac_cv_lib_resolv_res_send" >&5
20207 echo "${ECHO_T}$ac_cv_lib_resolv_res_send" >&6; }
20208 if test $ac_cv_lib_resolv_res_send = yes; then
20209 resolv=yes
20210 else
20211 { echo "$as_me:$LINENO: checking for __res_send in -lresolv" >&5
20212 echo $ECHO_N "checking for __res_send in -lresolv... $ECHO_C" >&6; }
20213 if test "${ac_cv_lib_resolv___res_send+set}" = set; then
20214 echo $ECHO_N "(cached) $ECHO_C" >&6
20215 else
20216 ac_check_lib_save_LIBS=$LIBS
20217 LIBS="-lresolv $LIBS"
20218 cat >conftest.$ac_ext <<_ACEOF
20219 /* confdefs.h. */
20220 _ACEOF
20221 cat confdefs.h >>conftest.$ac_ext
20222 cat >>conftest.$ac_ext <<_ACEOF
20223 /* end confdefs.h. */
20225 /* Override any GCC internal prototype to avoid an error.
20226 Use char because int might match the return type of a GCC
20227 builtin and then its argument prototype would still apply. */
20228 #ifdef __cplusplus
20229 extern "C"
20230 #endif
20231 char __res_send ();
20233 main ()
20235 return __res_send ();
20237 return 0;
20239 _ACEOF
20240 rm -f conftest.$ac_objext conftest$ac_exeext
20241 if { (ac_try="$ac_link"
20242 case "(($ac_try" in
20243 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20244 *) ac_try_echo=$ac_try;;
20245 esac
20246 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20247 (eval "$ac_link") 2>conftest.er1
20248 ac_status=$?
20249 grep -v '^ *+' conftest.er1 >conftest.err
20250 rm -f conftest.er1
20251 cat conftest.err >&5
20252 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20253 (exit $ac_status); } && {
20254 test -z "$ac_c_werror_flag" ||
20255 test ! -s conftest.err
20256 } && test -s conftest$ac_exeext &&
20257 $as_test_x conftest$ac_exeext; then
20258 ac_cv_lib_resolv___res_send=yes
20259 else
20260 echo "$as_me: failed program was:" >&5
20261 sed 's/^/| /' conftest.$ac_ext >&5
20263 ac_cv_lib_resolv___res_send=no
20266 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
20267 conftest$ac_exeext conftest.$ac_ext
20268 LIBS=$ac_check_lib_save_LIBS
20270 { echo "$as_me:$LINENO: result: $ac_cv_lib_resolv___res_send" >&5
20271 echo "${ECHO_T}$ac_cv_lib_resolv___res_send" >&6; }
20272 if test $ac_cv_lib_resolv___res_send = yes; then
20273 resolv=yes
20282 if test "$resolv" = yes ; then
20283 RESOLVLIB=-lresolv
20284 else
20285 RESOLVLIB=
20287 { echo "$as_me:$LINENO: checking for hes_getmailhost" >&5
20288 echo $ECHO_N "checking for hes_getmailhost... $ECHO_C" >&6; }
20289 if test "${ac_cv_func_hes_getmailhost+set}" = set; then
20290 echo $ECHO_N "(cached) $ECHO_C" >&6
20291 else
20292 cat >conftest.$ac_ext <<_ACEOF
20293 /* confdefs.h. */
20294 _ACEOF
20295 cat confdefs.h >>conftest.$ac_ext
20296 cat >>conftest.$ac_ext <<_ACEOF
20297 /* end confdefs.h. */
20298 /* Define hes_getmailhost to an innocuous variant, in case <limits.h> declares hes_getmailhost.
20299 For example, HP-UX 11i <limits.h> declares gettimeofday. */
20300 #define hes_getmailhost innocuous_hes_getmailhost
20302 /* System header to define __stub macros and hopefully few prototypes,
20303 which can conflict with char hes_getmailhost (); below.
20304 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
20305 <limits.h> exists even on freestanding compilers. */
20307 #ifdef __STDC__
20308 # include <limits.h>
20309 #else
20310 # include <assert.h>
20311 #endif
20313 #undef hes_getmailhost
20315 /* Override any GCC internal prototype to avoid an error.
20316 Use char because int might match the return type of a GCC
20317 builtin and then its argument prototype would still apply. */
20318 #ifdef __cplusplus
20319 extern "C"
20320 #endif
20321 char hes_getmailhost ();
20322 /* The GNU C library defines this for functions which it implements
20323 to always fail with ENOSYS. Some functions are actually named
20324 something starting with __ and the normal name is an alias. */
20325 #if defined __stub_hes_getmailhost || defined __stub___hes_getmailhost
20326 choke me
20327 #endif
20330 main ()
20332 return hes_getmailhost ();
20334 return 0;
20336 _ACEOF
20337 rm -f conftest.$ac_objext conftest$ac_exeext
20338 if { (ac_try="$ac_link"
20339 case "(($ac_try" in
20340 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20341 *) ac_try_echo=$ac_try;;
20342 esac
20343 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20344 (eval "$ac_link") 2>conftest.er1
20345 ac_status=$?
20346 grep -v '^ *+' conftest.er1 >conftest.err
20347 rm -f conftest.er1
20348 cat conftest.err >&5
20349 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20350 (exit $ac_status); } && {
20351 test -z "$ac_c_werror_flag" ||
20352 test ! -s conftest.err
20353 } && test -s conftest$ac_exeext &&
20354 $as_test_x conftest$ac_exeext; then
20355 ac_cv_func_hes_getmailhost=yes
20356 else
20357 echo "$as_me: failed program was:" >&5
20358 sed 's/^/| /' conftest.$ac_ext >&5
20360 ac_cv_func_hes_getmailhost=no
20363 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
20364 conftest$ac_exeext conftest.$ac_ext
20366 { echo "$as_me:$LINENO: result: $ac_cv_func_hes_getmailhost" >&5
20367 echo "${ECHO_T}$ac_cv_func_hes_getmailhost" >&6; }
20368 if test $ac_cv_func_hes_getmailhost = yes; then
20370 else
20371 { echo "$as_me:$LINENO: checking for hes_getmailhost in -lhesiod" >&5
20372 echo $ECHO_N "checking for hes_getmailhost in -lhesiod... $ECHO_C" >&6; }
20373 if test "${ac_cv_lib_hesiod_hes_getmailhost+set}" = set; then
20374 echo $ECHO_N "(cached) $ECHO_C" >&6
20375 else
20376 ac_check_lib_save_LIBS=$LIBS
20377 LIBS="-lhesiod $RESOLVLIB $LIBS"
20378 cat >conftest.$ac_ext <<_ACEOF
20379 /* confdefs.h. */
20380 _ACEOF
20381 cat confdefs.h >>conftest.$ac_ext
20382 cat >>conftest.$ac_ext <<_ACEOF
20383 /* end confdefs.h. */
20385 /* Override any GCC internal prototype to avoid an error.
20386 Use char because int might match the return type of a GCC
20387 builtin and then its argument prototype would still apply. */
20388 #ifdef __cplusplus
20389 extern "C"
20390 #endif
20391 char hes_getmailhost ();
20393 main ()
20395 return hes_getmailhost ();
20397 return 0;
20399 _ACEOF
20400 rm -f conftest.$ac_objext conftest$ac_exeext
20401 if { (ac_try="$ac_link"
20402 case "(($ac_try" in
20403 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20404 *) ac_try_echo=$ac_try;;
20405 esac
20406 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20407 (eval "$ac_link") 2>conftest.er1
20408 ac_status=$?
20409 grep -v '^ *+' conftest.er1 >conftest.err
20410 rm -f conftest.er1
20411 cat conftest.err >&5
20412 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20413 (exit $ac_status); } && {
20414 test -z "$ac_c_werror_flag" ||
20415 test ! -s conftest.err
20416 } && test -s conftest$ac_exeext &&
20417 $as_test_x conftest$ac_exeext; then
20418 ac_cv_lib_hesiod_hes_getmailhost=yes
20419 else
20420 echo "$as_me: failed program was:" >&5
20421 sed 's/^/| /' conftest.$ac_ext >&5
20423 ac_cv_lib_hesiod_hes_getmailhost=no
20426 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
20427 conftest$ac_exeext conftest.$ac_ext
20428 LIBS=$ac_check_lib_save_LIBS
20430 { echo "$as_me:$LINENO: result: $ac_cv_lib_hesiod_hes_getmailhost" >&5
20431 echo "${ECHO_T}$ac_cv_lib_hesiod_hes_getmailhost" >&6; }
20432 if test $ac_cv_lib_hesiod_hes_getmailhost = yes; then
20434 cat >>confdefs.h <<\_ACEOF
20435 #define HAVE_LIBHESIOD 1
20436 _ACEOF
20438 else
20446 # Do we need libresolv (due to res_init or Hesiod)?
20447 if test "$resolv" = yes ; then
20449 cat >>confdefs.h <<\_ACEOF
20450 #define HAVE_LIBRESOLV 1
20451 _ACEOF
20455 # These tell us which Kerberos-related libraries to use.
20456 if test "${with_kerberos}" != no; then
20458 { echo "$as_me:$LINENO: checking for com_err in -lcom_err" >&5
20459 echo $ECHO_N "checking for com_err in -lcom_err... $ECHO_C" >&6; }
20460 if test "${ac_cv_lib_com_err_com_err+set}" = set; then
20461 echo $ECHO_N "(cached) $ECHO_C" >&6
20462 else
20463 ac_check_lib_save_LIBS=$LIBS
20464 LIBS="-lcom_err $LIBS"
20465 cat >conftest.$ac_ext <<_ACEOF
20466 /* confdefs.h. */
20467 _ACEOF
20468 cat confdefs.h >>conftest.$ac_ext
20469 cat >>conftest.$ac_ext <<_ACEOF
20470 /* end confdefs.h. */
20472 /* Override any GCC internal prototype to avoid an error.
20473 Use char because int might match the return type of a GCC
20474 builtin and then its argument prototype would still apply. */
20475 #ifdef __cplusplus
20476 extern "C"
20477 #endif
20478 char com_err ();
20480 main ()
20482 return com_err ();
20484 return 0;
20486 _ACEOF
20487 rm -f conftest.$ac_objext conftest$ac_exeext
20488 if { (ac_try="$ac_link"
20489 case "(($ac_try" in
20490 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20491 *) ac_try_echo=$ac_try;;
20492 esac
20493 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20494 (eval "$ac_link") 2>conftest.er1
20495 ac_status=$?
20496 grep -v '^ *+' conftest.er1 >conftest.err
20497 rm -f conftest.er1
20498 cat conftest.err >&5
20499 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20500 (exit $ac_status); } && {
20501 test -z "$ac_c_werror_flag" ||
20502 test ! -s conftest.err
20503 } && test -s conftest$ac_exeext &&
20504 $as_test_x conftest$ac_exeext; then
20505 ac_cv_lib_com_err_com_err=yes
20506 else
20507 echo "$as_me: failed program was:" >&5
20508 sed 's/^/| /' conftest.$ac_ext >&5
20510 ac_cv_lib_com_err_com_err=no
20513 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
20514 conftest$ac_exeext conftest.$ac_ext
20515 LIBS=$ac_check_lib_save_LIBS
20517 { echo "$as_me:$LINENO: result: $ac_cv_lib_com_err_com_err" >&5
20518 echo "${ECHO_T}$ac_cv_lib_com_err_com_err" >&6; }
20519 if test $ac_cv_lib_com_err_com_err = yes; then
20520 cat >>confdefs.h <<_ACEOF
20521 #define HAVE_LIBCOM_ERR 1
20522 _ACEOF
20524 LIBS="-lcom_err $LIBS"
20529 { echo "$as_me:$LINENO: checking for mit_des_cbc_encrypt in -lk5crypto" >&5
20530 echo $ECHO_N "checking for mit_des_cbc_encrypt in -lk5crypto... $ECHO_C" >&6; }
20531 if test "${ac_cv_lib_k5crypto_mit_des_cbc_encrypt+set}" = set; then
20532 echo $ECHO_N "(cached) $ECHO_C" >&6
20533 else
20534 ac_check_lib_save_LIBS=$LIBS
20535 LIBS="-lk5crypto $LIBS"
20536 cat >conftest.$ac_ext <<_ACEOF
20537 /* confdefs.h. */
20538 _ACEOF
20539 cat confdefs.h >>conftest.$ac_ext
20540 cat >>conftest.$ac_ext <<_ACEOF
20541 /* end confdefs.h. */
20543 /* Override any GCC internal prototype to avoid an error.
20544 Use char because int might match the return type of a GCC
20545 builtin and then its argument prototype would still apply. */
20546 #ifdef __cplusplus
20547 extern "C"
20548 #endif
20549 char mit_des_cbc_encrypt ();
20551 main ()
20553 return mit_des_cbc_encrypt ();
20555 return 0;
20557 _ACEOF
20558 rm -f conftest.$ac_objext conftest$ac_exeext
20559 if { (ac_try="$ac_link"
20560 case "(($ac_try" in
20561 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20562 *) ac_try_echo=$ac_try;;
20563 esac
20564 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20565 (eval "$ac_link") 2>conftest.er1
20566 ac_status=$?
20567 grep -v '^ *+' conftest.er1 >conftest.err
20568 rm -f conftest.er1
20569 cat conftest.err >&5
20570 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20571 (exit $ac_status); } && {
20572 test -z "$ac_c_werror_flag" ||
20573 test ! -s conftest.err
20574 } && test -s conftest$ac_exeext &&
20575 $as_test_x conftest$ac_exeext; then
20576 ac_cv_lib_k5crypto_mit_des_cbc_encrypt=yes
20577 else
20578 echo "$as_me: failed program was:" >&5
20579 sed 's/^/| /' conftest.$ac_ext >&5
20581 ac_cv_lib_k5crypto_mit_des_cbc_encrypt=no
20584 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
20585 conftest$ac_exeext conftest.$ac_ext
20586 LIBS=$ac_check_lib_save_LIBS
20588 { echo "$as_me:$LINENO: result: $ac_cv_lib_k5crypto_mit_des_cbc_encrypt" >&5
20589 echo "${ECHO_T}$ac_cv_lib_k5crypto_mit_des_cbc_encrypt" >&6; }
20590 if test $ac_cv_lib_k5crypto_mit_des_cbc_encrypt = yes; then
20591 cat >>confdefs.h <<_ACEOF
20592 #define HAVE_LIBK5CRYPTO 1
20593 _ACEOF
20595 LIBS="-lk5crypto $LIBS"
20600 { echo "$as_me:$LINENO: checking for mit_des_cbc_encrypt in -lcrypto" >&5
20601 echo $ECHO_N "checking for mit_des_cbc_encrypt in -lcrypto... $ECHO_C" >&6; }
20602 if test "${ac_cv_lib_crypto_mit_des_cbc_encrypt+set}" = set; then
20603 echo $ECHO_N "(cached) $ECHO_C" >&6
20604 else
20605 ac_check_lib_save_LIBS=$LIBS
20606 LIBS="-lcrypto $LIBS"
20607 cat >conftest.$ac_ext <<_ACEOF
20608 /* confdefs.h. */
20609 _ACEOF
20610 cat confdefs.h >>conftest.$ac_ext
20611 cat >>conftest.$ac_ext <<_ACEOF
20612 /* end confdefs.h. */
20614 /* Override any GCC internal prototype to avoid an error.
20615 Use char because int might match the return type of a GCC
20616 builtin and then its argument prototype would still apply. */
20617 #ifdef __cplusplus
20618 extern "C"
20619 #endif
20620 char mit_des_cbc_encrypt ();
20622 main ()
20624 return mit_des_cbc_encrypt ();
20626 return 0;
20628 _ACEOF
20629 rm -f conftest.$ac_objext conftest$ac_exeext
20630 if { (ac_try="$ac_link"
20631 case "(($ac_try" in
20632 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20633 *) ac_try_echo=$ac_try;;
20634 esac
20635 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20636 (eval "$ac_link") 2>conftest.er1
20637 ac_status=$?
20638 grep -v '^ *+' conftest.er1 >conftest.err
20639 rm -f conftest.er1
20640 cat conftest.err >&5
20641 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20642 (exit $ac_status); } && {
20643 test -z "$ac_c_werror_flag" ||
20644 test ! -s conftest.err
20645 } && test -s conftest$ac_exeext &&
20646 $as_test_x conftest$ac_exeext; then
20647 ac_cv_lib_crypto_mit_des_cbc_encrypt=yes
20648 else
20649 echo "$as_me: failed program was:" >&5
20650 sed 's/^/| /' conftest.$ac_ext >&5
20652 ac_cv_lib_crypto_mit_des_cbc_encrypt=no
20655 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
20656 conftest$ac_exeext conftest.$ac_ext
20657 LIBS=$ac_check_lib_save_LIBS
20659 { echo "$as_me:$LINENO: result: $ac_cv_lib_crypto_mit_des_cbc_encrypt" >&5
20660 echo "${ECHO_T}$ac_cv_lib_crypto_mit_des_cbc_encrypt" >&6; }
20661 if test $ac_cv_lib_crypto_mit_des_cbc_encrypt = yes; then
20662 cat >>confdefs.h <<_ACEOF
20663 #define HAVE_LIBCRYPTO 1
20664 _ACEOF
20666 LIBS="-lcrypto $LIBS"
20671 { echo "$as_me:$LINENO: checking for krb5_init_context in -lkrb5" >&5
20672 echo $ECHO_N "checking for krb5_init_context in -lkrb5... $ECHO_C" >&6; }
20673 if test "${ac_cv_lib_krb5_krb5_init_context+set}" = set; then
20674 echo $ECHO_N "(cached) $ECHO_C" >&6
20675 else
20676 ac_check_lib_save_LIBS=$LIBS
20677 LIBS="-lkrb5 $LIBS"
20678 cat >conftest.$ac_ext <<_ACEOF
20679 /* confdefs.h. */
20680 _ACEOF
20681 cat confdefs.h >>conftest.$ac_ext
20682 cat >>conftest.$ac_ext <<_ACEOF
20683 /* end confdefs.h. */
20685 /* Override any GCC internal prototype to avoid an error.
20686 Use char because int might match the return type of a GCC
20687 builtin and then its argument prototype would still apply. */
20688 #ifdef __cplusplus
20689 extern "C"
20690 #endif
20691 char krb5_init_context ();
20693 main ()
20695 return krb5_init_context ();
20697 return 0;
20699 _ACEOF
20700 rm -f conftest.$ac_objext conftest$ac_exeext
20701 if { (ac_try="$ac_link"
20702 case "(($ac_try" in
20703 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20704 *) ac_try_echo=$ac_try;;
20705 esac
20706 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20707 (eval "$ac_link") 2>conftest.er1
20708 ac_status=$?
20709 grep -v '^ *+' conftest.er1 >conftest.err
20710 rm -f conftest.er1
20711 cat conftest.err >&5
20712 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20713 (exit $ac_status); } && {
20714 test -z "$ac_c_werror_flag" ||
20715 test ! -s conftest.err
20716 } && test -s conftest$ac_exeext &&
20717 $as_test_x conftest$ac_exeext; then
20718 ac_cv_lib_krb5_krb5_init_context=yes
20719 else
20720 echo "$as_me: failed program was:" >&5
20721 sed 's/^/| /' conftest.$ac_ext >&5
20723 ac_cv_lib_krb5_krb5_init_context=no
20726 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
20727 conftest$ac_exeext conftest.$ac_ext
20728 LIBS=$ac_check_lib_save_LIBS
20730 { echo "$as_me:$LINENO: result: $ac_cv_lib_krb5_krb5_init_context" >&5
20731 echo "${ECHO_T}$ac_cv_lib_krb5_krb5_init_context" >&6; }
20732 if test $ac_cv_lib_krb5_krb5_init_context = yes; then
20733 cat >>confdefs.h <<_ACEOF
20734 #define HAVE_LIBKRB5 1
20735 _ACEOF
20737 LIBS="-lkrb5 $LIBS"
20741 if test "${with_kerberos5}" = no; then
20743 { echo "$as_me:$LINENO: checking for des_cbc_encrypt in -ldes425" >&5
20744 echo $ECHO_N "checking for des_cbc_encrypt in -ldes425... $ECHO_C" >&6; }
20745 if test "${ac_cv_lib_des425_des_cbc_encrypt+set}" = set; then
20746 echo $ECHO_N "(cached) $ECHO_C" >&6
20747 else
20748 ac_check_lib_save_LIBS=$LIBS
20749 LIBS="-ldes425 $LIBS"
20750 cat >conftest.$ac_ext <<_ACEOF
20751 /* confdefs.h. */
20752 _ACEOF
20753 cat confdefs.h >>conftest.$ac_ext
20754 cat >>conftest.$ac_ext <<_ACEOF
20755 /* end confdefs.h. */
20757 /* Override any GCC internal prototype to avoid an error.
20758 Use char because int might match the return type of a GCC
20759 builtin and then its argument prototype would still apply. */
20760 #ifdef __cplusplus
20761 extern "C"
20762 #endif
20763 char des_cbc_encrypt ();
20765 main ()
20767 return des_cbc_encrypt ();
20769 return 0;
20771 _ACEOF
20772 rm -f conftest.$ac_objext conftest$ac_exeext
20773 if { (ac_try="$ac_link"
20774 case "(($ac_try" in
20775 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20776 *) ac_try_echo=$ac_try;;
20777 esac
20778 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20779 (eval "$ac_link") 2>conftest.er1
20780 ac_status=$?
20781 grep -v '^ *+' conftest.er1 >conftest.err
20782 rm -f conftest.er1
20783 cat conftest.err >&5
20784 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20785 (exit $ac_status); } && {
20786 test -z "$ac_c_werror_flag" ||
20787 test ! -s conftest.err
20788 } && test -s conftest$ac_exeext &&
20789 $as_test_x conftest$ac_exeext; then
20790 ac_cv_lib_des425_des_cbc_encrypt=yes
20791 else
20792 echo "$as_me: failed program was:" >&5
20793 sed 's/^/| /' conftest.$ac_ext >&5
20795 ac_cv_lib_des425_des_cbc_encrypt=no
20798 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
20799 conftest$ac_exeext conftest.$ac_ext
20800 LIBS=$ac_check_lib_save_LIBS
20802 { echo "$as_me:$LINENO: result: $ac_cv_lib_des425_des_cbc_encrypt" >&5
20803 echo "${ECHO_T}$ac_cv_lib_des425_des_cbc_encrypt" >&6; }
20804 if test $ac_cv_lib_des425_des_cbc_encrypt = yes; then
20805 cat >>confdefs.h <<_ACEOF
20806 #define HAVE_LIBDES425 1
20807 _ACEOF
20809 LIBS="-ldes425 $LIBS"
20811 else
20813 { echo "$as_me:$LINENO: checking for des_cbc_encrypt in -ldes" >&5
20814 echo $ECHO_N "checking for des_cbc_encrypt in -ldes... $ECHO_C" >&6; }
20815 if test "${ac_cv_lib_des_des_cbc_encrypt+set}" = set; then
20816 echo $ECHO_N "(cached) $ECHO_C" >&6
20817 else
20818 ac_check_lib_save_LIBS=$LIBS
20819 LIBS="-ldes $LIBS"
20820 cat >conftest.$ac_ext <<_ACEOF
20821 /* confdefs.h. */
20822 _ACEOF
20823 cat confdefs.h >>conftest.$ac_ext
20824 cat >>conftest.$ac_ext <<_ACEOF
20825 /* end confdefs.h. */
20827 /* Override any GCC internal prototype to avoid an error.
20828 Use char because int might match the return type of a GCC
20829 builtin and then its argument prototype would still apply. */
20830 #ifdef __cplusplus
20831 extern "C"
20832 #endif
20833 char des_cbc_encrypt ();
20835 main ()
20837 return des_cbc_encrypt ();
20839 return 0;
20841 _ACEOF
20842 rm -f conftest.$ac_objext conftest$ac_exeext
20843 if { (ac_try="$ac_link"
20844 case "(($ac_try" in
20845 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20846 *) ac_try_echo=$ac_try;;
20847 esac
20848 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20849 (eval "$ac_link") 2>conftest.er1
20850 ac_status=$?
20851 grep -v '^ *+' conftest.er1 >conftest.err
20852 rm -f conftest.er1
20853 cat conftest.err >&5
20854 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20855 (exit $ac_status); } && {
20856 test -z "$ac_c_werror_flag" ||
20857 test ! -s conftest.err
20858 } && test -s conftest$ac_exeext &&
20859 $as_test_x conftest$ac_exeext; then
20860 ac_cv_lib_des_des_cbc_encrypt=yes
20861 else
20862 echo "$as_me: failed program was:" >&5
20863 sed 's/^/| /' conftest.$ac_ext >&5
20865 ac_cv_lib_des_des_cbc_encrypt=no
20868 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
20869 conftest$ac_exeext conftest.$ac_ext
20870 LIBS=$ac_check_lib_save_LIBS
20872 { echo "$as_me:$LINENO: result: $ac_cv_lib_des_des_cbc_encrypt" >&5
20873 echo "${ECHO_T}$ac_cv_lib_des_des_cbc_encrypt" >&6; }
20874 if test $ac_cv_lib_des_des_cbc_encrypt = yes; then
20875 cat >>confdefs.h <<_ACEOF
20876 #define HAVE_LIBDES 1
20877 _ACEOF
20879 LIBS="-ldes $LIBS"
20886 { echo "$as_me:$LINENO: checking for krb_get_cred in -lkrb4" >&5
20887 echo $ECHO_N "checking for krb_get_cred in -lkrb4... $ECHO_C" >&6; }
20888 if test "${ac_cv_lib_krb4_krb_get_cred+set}" = set; then
20889 echo $ECHO_N "(cached) $ECHO_C" >&6
20890 else
20891 ac_check_lib_save_LIBS=$LIBS
20892 LIBS="-lkrb4 $LIBS"
20893 cat >conftest.$ac_ext <<_ACEOF
20894 /* confdefs.h. */
20895 _ACEOF
20896 cat confdefs.h >>conftest.$ac_ext
20897 cat >>conftest.$ac_ext <<_ACEOF
20898 /* end confdefs.h. */
20900 /* Override any GCC internal prototype to avoid an error.
20901 Use char because int might match the return type of a GCC
20902 builtin and then its argument prototype would still apply. */
20903 #ifdef __cplusplus
20904 extern "C"
20905 #endif
20906 char krb_get_cred ();
20908 main ()
20910 return krb_get_cred ();
20912 return 0;
20914 _ACEOF
20915 rm -f conftest.$ac_objext conftest$ac_exeext
20916 if { (ac_try="$ac_link"
20917 case "(($ac_try" in
20918 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20919 *) ac_try_echo=$ac_try;;
20920 esac
20921 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20922 (eval "$ac_link") 2>conftest.er1
20923 ac_status=$?
20924 grep -v '^ *+' conftest.er1 >conftest.err
20925 rm -f conftest.er1
20926 cat conftest.err >&5
20927 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20928 (exit $ac_status); } && {
20929 test -z "$ac_c_werror_flag" ||
20930 test ! -s conftest.err
20931 } && test -s conftest$ac_exeext &&
20932 $as_test_x conftest$ac_exeext; then
20933 ac_cv_lib_krb4_krb_get_cred=yes
20934 else
20935 echo "$as_me: failed program was:" >&5
20936 sed 's/^/| /' conftest.$ac_ext >&5
20938 ac_cv_lib_krb4_krb_get_cred=no
20941 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
20942 conftest$ac_exeext conftest.$ac_ext
20943 LIBS=$ac_check_lib_save_LIBS
20945 { echo "$as_me:$LINENO: result: $ac_cv_lib_krb4_krb_get_cred" >&5
20946 echo "${ECHO_T}$ac_cv_lib_krb4_krb_get_cred" >&6; }
20947 if test $ac_cv_lib_krb4_krb_get_cred = yes; then
20948 cat >>confdefs.h <<_ACEOF
20949 #define HAVE_LIBKRB4 1
20950 _ACEOF
20952 LIBS="-lkrb4 $LIBS"
20954 else
20956 { echo "$as_me:$LINENO: checking for krb_get_cred in -lkrb" >&5
20957 echo $ECHO_N "checking for krb_get_cred in -lkrb... $ECHO_C" >&6; }
20958 if test "${ac_cv_lib_krb_krb_get_cred+set}" = set; then
20959 echo $ECHO_N "(cached) $ECHO_C" >&6
20960 else
20961 ac_check_lib_save_LIBS=$LIBS
20962 LIBS="-lkrb $LIBS"
20963 cat >conftest.$ac_ext <<_ACEOF
20964 /* confdefs.h. */
20965 _ACEOF
20966 cat confdefs.h >>conftest.$ac_ext
20967 cat >>conftest.$ac_ext <<_ACEOF
20968 /* end confdefs.h. */
20970 /* Override any GCC internal prototype to avoid an error.
20971 Use char because int might match the return type of a GCC
20972 builtin and then its argument prototype would still apply. */
20973 #ifdef __cplusplus
20974 extern "C"
20975 #endif
20976 char krb_get_cred ();
20978 main ()
20980 return krb_get_cred ();
20982 return 0;
20984 _ACEOF
20985 rm -f conftest.$ac_objext conftest$ac_exeext
20986 if { (ac_try="$ac_link"
20987 case "(($ac_try" in
20988 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20989 *) ac_try_echo=$ac_try;;
20990 esac
20991 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20992 (eval "$ac_link") 2>conftest.er1
20993 ac_status=$?
20994 grep -v '^ *+' conftest.er1 >conftest.err
20995 rm -f conftest.er1
20996 cat conftest.err >&5
20997 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20998 (exit $ac_status); } && {
20999 test -z "$ac_c_werror_flag" ||
21000 test ! -s conftest.err
21001 } && test -s conftest$ac_exeext &&
21002 $as_test_x conftest$ac_exeext; then
21003 ac_cv_lib_krb_krb_get_cred=yes
21004 else
21005 echo "$as_me: failed program was:" >&5
21006 sed 's/^/| /' conftest.$ac_ext >&5
21008 ac_cv_lib_krb_krb_get_cred=no
21011 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
21012 conftest$ac_exeext conftest.$ac_ext
21013 LIBS=$ac_check_lib_save_LIBS
21015 { echo "$as_me:$LINENO: result: $ac_cv_lib_krb_krb_get_cred" >&5
21016 echo "${ECHO_T}$ac_cv_lib_krb_krb_get_cred" >&6; }
21017 if test $ac_cv_lib_krb_krb_get_cred = yes; then
21018 cat >>confdefs.h <<_ACEOF
21019 #define HAVE_LIBKRB 1
21020 _ACEOF
21022 LIBS="-lkrb $LIBS"
21030 if test "${with_kerberos5}" != no; then
21032 for ac_header in krb5.h
21034 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
21035 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
21036 { echo "$as_me:$LINENO: checking for $ac_header" >&5
21037 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
21038 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
21039 echo $ECHO_N "(cached) $ECHO_C" >&6
21041 ac_res=`eval echo '${'$as_ac_Header'}'`
21042 { echo "$as_me:$LINENO: result: $ac_res" >&5
21043 echo "${ECHO_T}$ac_res" >&6; }
21044 else
21045 # Is the header compilable?
21046 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
21047 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
21048 cat >conftest.$ac_ext <<_ACEOF
21049 /* confdefs.h. */
21050 _ACEOF
21051 cat confdefs.h >>conftest.$ac_ext
21052 cat >>conftest.$ac_ext <<_ACEOF
21053 /* end confdefs.h. */
21054 $ac_includes_default
21055 #include <$ac_header>
21056 _ACEOF
21057 rm -f conftest.$ac_objext
21058 if { (ac_try="$ac_compile"
21059 case "(($ac_try" in
21060 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21061 *) ac_try_echo=$ac_try;;
21062 esac
21063 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21064 (eval "$ac_compile") 2>conftest.er1
21065 ac_status=$?
21066 grep -v '^ *+' conftest.er1 >conftest.err
21067 rm -f conftest.er1
21068 cat conftest.err >&5
21069 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21070 (exit $ac_status); } && {
21071 test -z "$ac_c_werror_flag" ||
21072 test ! -s conftest.err
21073 } && test -s conftest.$ac_objext; then
21074 ac_header_compiler=yes
21075 else
21076 echo "$as_me: failed program was:" >&5
21077 sed 's/^/| /' conftest.$ac_ext >&5
21079 ac_header_compiler=no
21082 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21083 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
21084 echo "${ECHO_T}$ac_header_compiler" >&6; }
21086 # Is the header present?
21087 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
21088 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
21089 cat >conftest.$ac_ext <<_ACEOF
21090 /* confdefs.h. */
21091 _ACEOF
21092 cat confdefs.h >>conftest.$ac_ext
21093 cat >>conftest.$ac_ext <<_ACEOF
21094 /* end confdefs.h. */
21095 #include <$ac_header>
21096 _ACEOF
21097 if { (ac_try="$ac_cpp conftest.$ac_ext"
21098 case "(($ac_try" in
21099 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21100 *) ac_try_echo=$ac_try;;
21101 esac
21102 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21103 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
21104 ac_status=$?
21105 grep -v '^ *+' conftest.er1 >conftest.err
21106 rm -f conftest.er1
21107 cat conftest.err >&5
21108 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21109 (exit $ac_status); } >/dev/null && {
21110 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
21111 test ! -s conftest.err
21112 }; then
21113 ac_header_preproc=yes
21114 else
21115 echo "$as_me: failed program was:" >&5
21116 sed 's/^/| /' conftest.$ac_ext >&5
21118 ac_header_preproc=no
21121 rm -f conftest.err conftest.$ac_ext
21122 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
21123 echo "${ECHO_T}$ac_header_preproc" >&6; }
21125 # So? What about this header?
21126 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
21127 yes:no: )
21128 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
21129 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
21130 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
21131 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
21132 ac_header_preproc=yes
21134 no:yes:* )
21135 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
21136 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
21137 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
21138 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
21139 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
21140 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
21141 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
21142 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
21143 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
21144 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
21145 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
21146 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
21149 esac
21150 { echo "$as_me:$LINENO: checking for $ac_header" >&5
21151 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
21152 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
21153 echo $ECHO_N "(cached) $ECHO_C" >&6
21154 else
21155 eval "$as_ac_Header=\$ac_header_preproc"
21157 ac_res=`eval echo '${'$as_ac_Header'}'`
21158 { echo "$as_me:$LINENO: result: $ac_res" >&5
21159 echo "${ECHO_T}$ac_res" >&6; }
21162 if test `eval echo '${'$as_ac_Header'}'` = yes; then
21163 cat >>confdefs.h <<_ACEOF
21164 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
21165 _ACEOF
21166 { echo "$as_me:$LINENO: checking for krb5_error.text" >&5
21167 echo $ECHO_N "checking for krb5_error.text... $ECHO_C" >&6; }
21168 if test "${ac_cv_member_krb5_error_text+set}" = set; then
21169 echo $ECHO_N "(cached) $ECHO_C" >&6
21170 else
21171 cat >conftest.$ac_ext <<_ACEOF
21172 /* confdefs.h. */
21173 _ACEOF
21174 cat confdefs.h >>conftest.$ac_ext
21175 cat >>conftest.$ac_ext <<_ACEOF
21176 /* end confdefs.h. */
21177 #include <krb5.h>
21180 main ()
21182 static krb5_error ac_aggr;
21183 if (ac_aggr.text)
21184 return 0;
21186 return 0;
21188 _ACEOF
21189 rm -f conftest.$ac_objext
21190 if { (ac_try="$ac_compile"
21191 case "(($ac_try" in
21192 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21193 *) ac_try_echo=$ac_try;;
21194 esac
21195 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21196 (eval "$ac_compile") 2>conftest.er1
21197 ac_status=$?
21198 grep -v '^ *+' conftest.er1 >conftest.err
21199 rm -f conftest.er1
21200 cat conftest.err >&5
21201 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21202 (exit $ac_status); } && {
21203 test -z "$ac_c_werror_flag" ||
21204 test ! -s conftest.err
21205 } && test -s conftest.$ac_objext; then
21206 ac_cv_member_krb5_error_text=yes
21207 else
21208 echo "$as_me: failed program was:" >&5
21209 sed 's/^/| /' conftest.$ac_ext >&5
21211 cat >conftest.$ac_ext <<_ACEOF
21212 /* confdefs.h. */
21213 _ACEOF
21214 cat confdefs.h >>conftest.$ac_ext
21215 cat >>conftest.$ac_ext <<_ACEOF
21216 /* end confdefs.h. */
21217 #include <krb5.h>
21220 main ()
21222 static krb5_error ac_aggr;
21223 if (sizeof ac_aggr.text)
21224 return 0;
21226 return 0;
21228 _ACEOF
21229 rm -f conftest.$ac_objext
21230 if { (ac_try="$ac_compile"
21231 case "(($ac_try" in
21232 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21233 *) ac_try_echo=$ac_try;;
21234 esac
21235 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21236 (eval "$ac_compile") 2>conftest.er1
21237 ac_status=$?
21238 grep -v '^ *+' conftest.er1 >conftest.err
21239 rm -f conftest.er1
21240 cat conftest.err >&5
21241 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21242 (exit $ac_status); } && {
21243 test -z "$ac_c_werror_flag" ||
21244 test ! -s conftest.err
21245 } && test -s conftest.$ac_objext; then
21246 ac_cv_member_krb5_error_text=yes
21247 else
21248 echo "$as_me: failed program was:" >&5
21249 sed 's/^/| /' conftest.$ac_ext >&5
21251 ac_cv_member_krb5_error_text=no
21254 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21257 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21259 { echo "$as_me:$LINENO: result: $ac_cv_member_krb5_error_text" >&5
21260 echo "${ECHO_T}$ac_cv_member_krb5_error_text" >&6; }
21261 if test $ac_cv_member_krb5_error_text = yes; then
21263 cat >>confdefs.h <<_ACEOF
21264 #define HAVE_KRB5_ERROR_TEXT 1
21265 _ACEOF
21269 { echo "$as_me:$LINENO: checking for krb5_error.e_text" >&5
21270 echo $ECHO_N "checking for krb5_error.e_text... $ECHO_C" >&6; }
21271 if test "${ac_cv_member_krb5_error_e_text+set}" = set; then
21272 echo $ECHO_N "(cached) $ECHO_C" >&6
21273 else
21274 cat >conftest.$ac_ext <<_ACEOF
21275 /* confdefs.h. */
21276 _ACEOF
21277 cat confdefs.h >>conftest.$ac_ext
21278 cat >>conftest.$ac_ext <<_ACEOF
21279 /* end confdefs.h. */
21280 #include <krb5.h>
21283 main ()
21285 static krb5_error ac_aggr;
21286 if (ac_aggr.e_text)
21287 return 0;
21289 return 0;
21291 _ACEOF
21292 rm -f conftest.$ac_objext
21293 if { (ac_try="$ac_compile"
21294 case "(($ac_try" in
21295 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21296 *) ac_try_echo=$ac_try;;
21297 esac
21298 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21299 (eval "$ac_compile") 2>conftest.er1
21300 ac_status=$?
21301 grep -v '^ *+' conftest.er1 >conftest.err
21302 rm -f conftest.er1
21303 cat conftest.err >&5
21304 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21305 (exit $ac_status); } && {
21306 test -z "$ac_c_werror_flag" ||
21307 test ! -s conftest.err
21308 } && test -s conftest.$ac_objext; then
21309 ac_cv_member_krb5_error_e_text=yes
21310 else
21311 echo "$as_me: failed program was:" >&5
21312 sed 's/^/| /' conftest.$ac_ext >&5
21314 cat >conftest.$ac_ext <<_ACEOF
21315 /* confdefs.h. */
21316 _ACEOF
21317 cat confdefs.h >>conftest.$ac_ext
21318 cat >>conftest.$ac_ext <<_ACEOF
21319 /* end confdefs.h. */
21320 #include <krb5.h>
21323 main ()
21325 static krb5_error ac_aggr;
21326 if (sizeof ac_aggr.e_text)
21327 return 0;
21329 return 0;
21331 _ACEOF
21332 rm -f conftest.$ac_objext
21333 if { (ac_try="$ac_compile"
21334 case "(($ac_try" in
21335 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21336 *) ac_try_echo=$ac_try;;
21337 esac
21338 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21339 (eval "$ac_compile") 2>conftest.er1
21340 ac_status=$?
21341 grep -v '^ *+' conftest.er1 >conftest.err
21342 rm -f conftest.er1
21343 cat conftest.err >&5
21344 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21345 (exit $ac_status); } && {
21346 test -z "$ac_c_werror_flag" ||
21347 test ! -s conftest.err
21348 } && test -s conftest.$ac_objext; then
21349 ac_cv_member_krb5_error_e_text=yes
21350 else
21351 echo "$as_me: failed program was:" >&5
21352 sed 's/^/| /' conftest.$ac_ext >&5
21354 ac_cv_member_krb5_error_e_text=no
21357 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21360 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21362 { echo "$as_me:$LINENO: result: $ac_cv_member_krb5_error_e_text" >&5
21363 echo "${ECHO_T}$ac_cv_member_krb5_error_e_text" >&6; }
21364 if test $ac_cv_member_krb5_error_e_text = yes; then
21366 cat >>confdefs.h <<_ACEOF
21367 #define HAVE_KRB5_ERROR_E_TEXT 1
21368 _ACEOF
21375 done
21377 else
21379 for ac_header in des.h
21381 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
21382 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
21383 { echo "$as_me:$LINENO: checking for $ac_header" >&5
21384 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
21385 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
21386 echo $ECHO_N "(cached) $ECHO_C" >&6
21388 ac_res=`eval echo '${'$as_ac_Header'}'`
21389 { echo "$as_me:$LINENO: result: $ac_res" >&5
21390 echo "${ECHO_T}$ac_res" >&6; }
21391 else
21392 # Is the header compilable?
21393 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
21394 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
21395 cat >conftest.$ac_ext <<_ACEOF
21396 /* confdefs.h. */
21397 _ACEOF
21398 cat confdefs.h >>conftest.$ac_ext
21399 cat >>conftest.$ac_ext <<_ACEOF
21400 /* end confdefs.h. */
21401 $ac_includes_default
21402 #include <$ac_header>
21403 _ACEOF
21404 rm -f conftest.$ac_objext
21405 if { (ac_try="$ac_compile"
21406 case "(($ac_try" in
21407 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21408 *) ac_try_echo=$ac_try;;
21409 esac
21410 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21411 (eval "$ac_compile") 2>conftest.er1
21412 ac_status=$?
21413 grep -v '^ *+' conftest.er1 >conftest.err
21414 rm -f conftest.er1
21415 cat conftest.err >&5
21416 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21417 (exit $ac_status); } && {
21418 test -z "$ac_c_werror_flag" ||
21419 test ! -s conftest.err
21420 } && test -s conftest.$ac_objext; then
21421 ac_header_compiler=yes
21422 else
21423 echo "$as_me: failed program was:" >&5
21424 sed 's/^/| /' conftest.$ac_ext >&5
21426 ac_header_compiler=no
21429 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21430 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
21431 echo "${ECHO_T}$ac_header_compiler" >&6; }
21433 # Is the header present?
21434 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
21435 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
21436 cat >conftest.$ac_ext <<_ACEOF
21437 /* confdefs.h. */
21438 _ACEOF
21439 cat confdefs.h >>conftest.$ac_ext
21440 cat >>conftest.$ac_ext <<_ACEOF
21441 /* end confdefs.h. */
21442 #include <$ac_header>
21443 _ACEOF
21444 if { (ac_try="$ac_cpp conftest.$ac_ext"
21445 case "(($ac_try" in
21446 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21447 *) ac_try_echo=$ac_try;;
21448 esac
21449 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21450 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
21451 ac_status=$?
21452 grep -v '^ *+' conftest.er1 >conftest.err
21453 rm -f conftest.er1
21454 cat conftest.err >&5
21455 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21456 (exit $ac_status); } >/dev/null && {
21457 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
21458 test ! -s conftest.err
21459 }; then
21460 ac_header_preproc=yes
21461 else
21462 echo "$as_me: failed program was:" >&5
21463 sed 's/^/| /' conftest.$ac_ext >&5
21465 ac_header_preproc=no
21468 rm -f conftest.err conftest.$ac_ext
21469 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
21470 echo "${ECHO_T}$ac_header_preproc" >&6; }
21472 # So? What about this header?
21473 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
21474 yes:no: )
21475 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
21476 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
21477 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
21478 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
21479 ac_header_preproc=yes
21481 no:yes:* )
21482 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
21483 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
21484 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
21485 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
21486 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
21487 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
21488 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
21489 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
21490 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
21491 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
21492 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
21493 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
21496 esac
21497 { echo "$as_me:$LINENO: checking for $ac_header" >&5
21498 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
21499 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
21500 echo $ECHO_N "(cached) $ECHO_C" >&6
21501 else
21502 eval "$as_ac_Header=\$ac_header_preproc"
21504 ac_res=`eval echo '${'$as_ac_Header'}'`
21505 { echo "$as_me:$LINENO: result: $ac_res" >&5
21506 echo "${ECHO_T}$ac_res" >&6; }
21509 if test `eval echo '${'$as_ac_Header'}'` = yes; then
21510 cat >>confdefs.h <<_ACEOF
21511 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
21512 _ACEOF
21514 else
21516 for ac_header in kerberosIV/des.h
21518 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
21519 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
21520 { echo "$as_me:$LINENO: checking for $ac_header" >&5
21521 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
21522 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
21523 echo $ECHO_N "(cached) $ECHO_C" >&6
21525 ac_res=`eval echo '${'$as_ac_Header'}'`
21526 { echo "$as_me:$LINENO: result: $ac_res" >&5
21527 echo "${ECHO_T}$ac_res" >&6; }
21528 else
21529 # Is the header compilable?
21530 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
21531 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
21532 cat >conftest.$ac_ext <<_ACEOF
21533 /* confdefs.h. */
21534 _ACEOF
21535 cat confdefs.h >>conftest.$ac_ext
21536 cat >>conftest.$ac_ext <<_ACEOF
21537 /* end confdefs.h. */
21538 $ac_includes_default
21539 #include <$ac_header>
21540 _ACEOF
21541 rm -f conftest.$ac_objext
21542 if { (ac_try="$ac_compile"
21543 case "(($ac_try" in
21544 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21545 *) ac_try_echo=$ac_try;;
21546 esac
21547 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21548 (eval "$ac_compile") 2>conftest.er1
21549 ac_status=$?
21550 grep -v '^ *+' conftest.er1 >conftest.err
21551 rm -f conftest.er1
21552 cat conftest.err >&5
21553 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21554 (exit $ac_status); } && {
21555 test -z "$ac_c_werror_flag" ||
21556 test ! -s conftest.err
21557 } && test -s conftest.$ac_objext; then
21558 ac_header_compiler=yes
21559 else
21560 echo "$as_me: failed program was:" >&5
21561 sed 's/^/| /' conftest.$ac_ext >&5
21563 ac_header_compiler=no
21566 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21567 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
21568 echo "${ECHO_T}$ac_header_compiler" >&6; }
21570 # Is the header present?
21571 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
21572 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
21573 cat >conftest.$ac_ext <<_ACEOF
21574 /* confdefs.h. */
21575 _ACEOF
21576 cat confdefs.h >>conftest.$ac_ext
21577 cat >>conftest.$ac_ext <<_ACEOF
21578 /* end confdefs.h. */
21579 #include <$ac_header>
21580 _ACEOF
21581 if { (ac_try="$ac_cpp conftest.$ac_ext"
21582 case "(($ac_try" in
21583 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21584 *) ac_try_echo=$ac_try;;
21585 esac
21586 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21587 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
21588 ac_status=$?
21589 grep -v '^ *+' conftest.er1 >conftest.err
21590 rm -f conftest.er1
21591 cat conftest.err >&5
21592 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21593 (exit $ac_status); } >/dev/null && {
21594 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
21595 test ! -s conftest.err
21596 }; then
21597 ac_header_preproc=yes
21598 else
21599 echo "$as_me: failed program was:" >&5
21600 sed 's/^/| /' conftest.$ac_ext >&5
21602 ac_header_preproc=no
21605 rm -f conftest.err conftest.$ac_ext
21606 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
21607 echo "${ECHO_T}$ac_header_preproc" >&6; }
21609 # So? What about this header?
21610 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
21611 yes:no: )
21612 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
21613 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
21614 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
21615 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
21616 ac_header_preproc=yes
21618 no:yes:* )
21619 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
21620 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
21621 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
21622 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
21623 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
21624 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
21625 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
21626 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
21627 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
21628 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
21629 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
21630 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
21633 esac
21634 { echo "$as_me:$LINENO: checking for $ac_header" >&5
21635 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
21636 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
21637 echo $ECHO_N "(cached) $ECHO_C" >&6
21638 else
21639 eval "$as_ac_Header=\$ac_header_preproc"
21641 ac_res=`eval echo '${'$as_ac_Header'}'`
21642 { echo "$as_me:$LINENO: result: $ac_res" >&5
21643 echo "${ECHO_T}$ac_res" >&6; }
21646 if test `eval echo '${'$as_ac_Header'}'` = yes; then
21647 cat >>confdefs.h <<_ACEOF
21648 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
21649 _ACEOF
21651 else
21653 for ac_header in kerberos/des.h
21655 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
21656 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
21657 { echo "$as_me:$LINENO: checking for $ac_header" >&5
21658 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
21659 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
21660 echo $ECHO_N "(cached) $ECHO_C" >&6
21662 ac_res=`eval echo '${'$as_ac_Header'}'`
21663 { echo "$as_me:$LINENO: result: $ac_res" >&5
21664 echo "${ECHO_T}$ac_res" >&6; }
21665 else
21666 # Is the header compilable?
21667 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
21668 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
21669 cat >conftest.$ac_ext <<_ACEOF
21670 /* confdefs.h. */
21671 _ACEOF
21672 cat confdefs.h >>conftest.$ac_ext
21673 cat >>conftest.$ac_ext <<_ACEOF
21674 /* end confdefs.h. */
21675 $ac_includes_default
21676 #include <$ac_header>
21677 _ACEOF
21678 rm -f conftest.$ac_objext
21679 if { (ac_try="$ac_compile"
21680 case "(($ac_try" in
21681 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21682 *) ac_try_echo=$ac_try;;
21683 esac
21684 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21685 (eval "$ac_compile") 2>conftest.er1
21686 ac_status=$?
21687 grep -v '^ *+' conftest.er1 >conftest.err
21688 rm -f conftest.er1
21689 cat conftest.err >&5
21690 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21691 (exit $ac_status); } && {
21692 test -z "$ac_c_werror_flag" ||
21693 test ! -s conftest.err
21694 } && test -s conftest.$ac_objext; then
21695 ac_header_compiler=yes
21696 else
21697 echo "$as_me: failed program was:" >&5
21698 sed 's/^/| /' conftest.$ac_ext >&5
21700 ac_header_compiler=no
21703 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21704 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
21705 echo "${ECHO_T}$ac_header_compiler" >&6; }
21707 # Is the header present?
21708 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
21709 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
21710 cat >conftest.$ac_ext <<_ACEOF
21711 /* confdefs.h. */
21712 _ACEOF
21713 cat confdefs.h >>conftest.$ac_ext
21714 cat >>conftest.$ac_ext <<_ACEOF
21715 /* end confdefs.h. */
21716 #include <$ac_header>
21717 _ACEOF
21718 if { (ac_try="$ac_cpp conftest.$ac_ext"
21719 case "(($ac_try" in
21720 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21721 *) ac_try_echo=$ac_try;;
21722 esac
21723 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21724 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
21725 ac_status=$?
21726 grep -v '^ *+' conftest.er1 >conftest.err
21727 rm -f conftest.er1
21728 cat conftest.err >&5
21729 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21730 (exit $ac_status); } >/dev/null && {
21731 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
21732 test ! -s conftest.err
21733 }; then
21734 ac_header_preproc=yes
21735 else
21736 echo "$as_me: failed program was:" >&5
21737 sed 's/^/| /' conftest.$ac_ext >&5
21739 ac_header_preproc=no
21742 rm -f conftest.err conftest.$ac_ext
21743 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
21744 echo "${ECHO_T}$ac_header_preproc" >&6; }
21746 # So? What about this header?
21747 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
21748 yes:no: )
21749 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
21750 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
21751 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
21752 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
21753 ac_header_preproc=yes
21755 no:yes:* )
21756 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
21757 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
21758 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
21759 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
21760 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
21761 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
21762 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
21763 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
21764 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
21765 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
21766 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
21767 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
21770 esac
21771 { echo "$as_me:$LINENO: checking for $ac_header" >&5
21772 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
21773 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
21774 echo $ECHO_N "(cached) $ECHO_C" >&6
21775 else
21776 eval "$as_ac_Header=\$ac_header_preproc"
21778 ac_res=`eval echo '${'$as_ac_Header'}'`
21779 { echo "$as_me:$LINENO: result: $ac_res" >&5
21780 echo "${ECHO_T}$ac_res" >&6; }
21783 if test `eval echo '${'$as_ac_Header'}'` = yes; then
21784 cat >>confdefs.h <<_ACEOF
21785 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
21786 _ACEOF
21790 done
21794 done
21798 done
21801 for ac_header in krb.h
21803 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
21804 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
21805 { echo "$as_me:$LINENO: checking for $ac_header" >&5
21806 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
21807 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
21808 echo $ECHO_N "(cached) $ECHO_C" >&6
21810 ac_res=`eval echo '${'$as_ac_Header'}'`
21811 { echo "$as_me:$LINENO: result: $ac_res" >&5
21812 echo "${ECHO_T}$ac_res" >&6; }
21813 else
21814 # Is the header compilable?
21815 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
21816 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
21817 cat >conftest.$ac_ext <<_ACEOF
21818 /* confdefs.h. */
21819 _ACEOF
21820 cat confdefs.h >>conftest.$ac_ext
21821 cat >>conftest.$ac_ext <<_ACEOF
21822 /* end confdefs.h. */
21823 $ac_includes_default
21824 #include <$ac_header>
21825 _ACEOF
21826 rm -f conftest.$ac_objext
21827 if { (ac_try="$ac_compile"
21828 case "(($ac_try" in
21829 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21830 *) ac_try_echo=$ac_try;;
21831 esac
21832 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21833 (eval "$ac_compile") 2>conftest.er1
21834 ac_status=$?
21835 grep -v '^ *+' conftest.er1 >conftest.err
21836 rm -f conftest.er1
21837 cat conftest.err >&5
21838 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21839 (exit $ac_status); } && {
21840 test -z "$ac_c_werror_flag" ||
21841 test ! -s conftest.err
21842 } && test -s conftest.$ac_objext; then
21843 ac_header_compiler=yes
21844 else
21845 echo "$as_me: failed program was:" >&5
21846 sed 's/^/| /' conftest.$ac_ext >&5
21848 ac_header_compiler=no
21851 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21852 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
21853 echo "${ECHO_T}$ac_header_compiler" >&6; }
21855 # Is the header present?
21856 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
21857 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
21858 cat >conftest.$ac_ext <<_ACEOF
21859 /* confdefs.h. */
21860 _ACEOF
21861 cat confdefs.h >>conftest.$ac_ext
21862 cat >>conftest.$ac_ext <<_ACEOF
21863 /* end confdefs.h. */
21864 #include <$ac_header>
21865 _ACEOF
21866 if { (ac_try="$ac_cpp conftest.$ac_ext"
21867 case "(($ac_try" in
21868 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21869 *) ac_try_echo=$ac_try;;
21870 esac
21871 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21872 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
21873 ac_status=$?
21874 grep -v '^ *+' conftest.er1 >conftest.err
21875 rm -f conftest.er1
21876 cat conftest.err >&5
21877 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21878 (exit $ac_status); } >/dev/null && {
21879 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
21880 test ! -s conftest.err
21881 }; then
21882 ac_header_preproc=yes
21883 else
21884 echo "$as_me: failed program was:" >&5
21885 sed 's/^/| /' conftest.$ac_ext >&5
21887 ac_header_preproc=no
21890 rm -f conftest.err conftest.$ac_ext
21891 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
21892 echo "${ECHO_T}$ac_header_preproc" >&6; }
21894 # So? What about this header?
21895 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
21896 yes:no: )
21897 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
21898 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
21899 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
21900 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
21901 ac_header_preproc=yes
21903 no:yes:* )
21904 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
21905 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
21906 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
21907 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
21908 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
21909 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
21910 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
21911 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
21912 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
21913 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
21914 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
21915 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
21918 esac
21919 { echo "$as_me:$LINENO: checking for $ac_header" >&5
21920 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
21921 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
21922 echo $ECHO_N "(cached) $ECHO_C" >&6
21923 else
21924 eval "$as_ac_Header=\$ac_header_preproc"
21926 ac_res=`eval echo '${'$as_ac_Header'}'`
21927 { echo "$as_me:$LINENO: result: $ac_res" >&5
21928 echo "${ECHO_T}$ac_res" >&6; }
21931 if test `eval echo '${'$as_ac_Header'}'` = yes; then
21932 cat >>confdefs.h <<_ACEOF
21933 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
21934 _ACEOF
21936 else
21938 for ac_header in kerberosIV/krb.h
21940 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
21941 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
21942 { echo "$as_me:$LINENO: checking for $ac_header" >&5
21943 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
21944 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
21945 echo $ECHO_N "(cached) $ECHO_C" >&6
21947 ac_res=`eval echo '${'$as_ac_Header'}'`
21948 { echo "$as_me:$LINENO: result: $ac_res" >&5
21949 echo "${ECHO_T}$ac_res" >&6; }
21950 else
21951 # Is the header compilable?
21952 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
21953 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
21954 cat >conftest.$ac_ext <<_ACEOF
21955 /* confdefs.h. */
21956 _ACEOF
21957 cat confdefs.h >>conftest.$ac_ext
21958 cat >>conftest.$ac_ext <<_ACEOF
21959 /* end confdefs.h. */
21960 $ac_includes_default
21961 #include <$ac_header>
21962 _ACEOF
21963 rm -f conftest.$ac_objext
21964 if { (ac_try="$ac_compile"
21965 case "(($ac_try" in
21966 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21967 *) ac_try_echo=$ac_try;;
21968 esac
21969 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21970 (eval "$ac_compile") 2>conftest.er1
21971 ac_status=$?
21972 grep -v '^ *+' conftest.er1 >conftest.err
21973 rm -f conftest.er1
21974 cat conftest.err >&5
21975 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21976 (exit $ac_status); } && {
21977 test -z "$ac_c_werror_flag" ||
21978 test ! -s conftest.err
21979 } && test -s conftest.$ac_objext; then
21980 ac_header_compiler=yes
21981 else
21982 echo "$as_me: failed program was:" >&5
21983 sed 's/^/| /' conftest.$ac_ext >&5
21985 ac_header_compiler=no
21988 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21989 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
21990 echo "${ECHO_T}$ac_header_compiler" >&6; }
21992 # Is the header present?
21993 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
21994 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
21995 cat >conftest.$ac_ext <<_ACEOF
21996 /* confdefs.h. */
21997 _ACEOF
21998 cat confdefs.h >>conftest.$ac_ext
21999 cat >>conftest.$ac_ext <<_ACEOF
22000 /* end confdefs.h. */
22001 #include <$ac_header>
22002 _ACEOF
22003 if { (ac_try="$ac_cpp conftest.$ac_ext"
22004 case "(($ac_try" in
22005 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22006 *) ac_try_echo=$ac_try;;
22007 esac
22008 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22009 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
22010 ac_status=$?
22011 grep -v '^ *+' conftest.er1 >conftest.err
22012 rm -f conftest.er1
22013 cat conftest.err >&5
22014 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22015 (exit $ac_status); } >/dev/null && {
22016 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
22017 test ! -s conftest.err
22018 }; then
22019 ac_header_preproc=yes
22020 else
22021 echo "$as_me: failed program was:" >&5
22022 sed 's/^/| /' conftest.$ac_ext >&5
22024 ac_header_preproc=no
22027 rm -f conftest.err conftest.$ac_ext
22028 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
22029 echo "${ECHO_T}$ac_header_preproc" >&6; }
22031 # So? What about this header?
22032 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
22033 yes:no: )
22034 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
22035 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
22036 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
22037 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
22038 ac_header_preproc=yes
22040 no:yes:* )
22041 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
22042 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
22043 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
22044 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
22045 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
22046 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
22047 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
22048 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
22049 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
22050 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
22051 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
22052 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
22055 esac
22056 { echo "$as_me:$LINENO: checking for $ac_header" >&5
22057 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
22058 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
22059 echo $ECHO_N "(cached) $ECHO_C" >&6
22060 else
22061 eval "$as_ac_Header=\$ac_header_preproc"
22063 ac_res=`eval echo '${'$as_ac_Header'}'`
22064 { echo "$as_me:$LINENO: result: $ac_res" >&5
22065 echo "${ECHO_T}$ac_res" >&6; }
22068 if test `eval echo '${'$as_ac_Header'}'` = yes; then
22069 cat >>confdefs.h <<_ACEOF
22070 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
22071 _ACEOF
22073 else
22075 for ac_header in kerberos/krb.h
22077 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
22078 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
22079 { echo "$as_me:$LINENO: checking for $ac_header" >&5
22080 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
22081 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
22082 echo $ECHO_N "(cached) $ECHO_C" >&6
22084 ac_res=`eval echo '${'$as_ac_Header'}'`
22085 { echo "$as_me:$LINENO: result: $ac_res" >&5
22086 echo "${ECHO_T}$ac_res" >&6; }
22087 else
22088 # Is the header compilable?
22089 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
22090 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
22091 cat >conftest.$ac_ext <<_ACEOF
22092 /* confdefs.h. */
22093 _ACEOF
22094 cat confdefs.h >>conftest.$ac_ext
22095 cat >>conftest.$ac_ext <<_ACEOF
22096 /* end confdefs.h. */
22097 $ac_includes_default
22098 #include <$ac_header>
22099 _ACEOF
22100 rm -f conftest.$ac_objext
22101 if { (ac_try="$ac_compile"
22102 case "(($ac_try" in
22103 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22104 *) ac_try_echo=$ac_try;;
22105 esac
22106 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22107 (eval "$ac_compile") 2>conftest.er1
22108 ac_status=$?
22109 grep -v '^ *+' conftest.er1 >conftest.err
22110 rm -f conftest.er1
22111 cat conftest.err >&5
22112 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22113 (exit $ac_status); } && {
22114 test -z "$ac_c_werror_flag" ||
22115 test ! -s conftest.err
22116 } && test -s conftest.$ac_objext; then
22117 ac_header_compiler=yes
22118 else
22119 echo "$as_me: failed program was:" >&5
22120 sed 's/^/| /' conftest.$ac_ext >&5
22122 ac_header_compiler=no
22125 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22126 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
22127 echo "${ECHO_T}$ac_header_compiler" >&6; }
22129 # Is the header present?
22130 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
22131 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
22132 cat >conftest.$ac_ext <<_ACEOF
22133 /* confdefs.h. */
22134 _ACEOF
22135 cat confdefs.h >>conftest.$ac_ext
22136 cat >>conftest.$ac_ext <<_ACEOF
22137 /* end confdefs.h. */
22138 #include <$ac_header>
22139 _ACEOF
22140 if { (ac_try="$ac_cpp conftest.$ac_ext"
22141 case "(($ac_try" in
22142 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22143 *) ac_try_echo=$ac_try;;
22144 esac
22145 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22146 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
22147 ac_status=$?
22148 grep -v '^ *+' conftest.er1 >conftest.err
22149 rm -f conftest.er1
22150 cat conftest.err >&5
22151 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22152 (exit $ac_status); } >/dev/null && {
22153 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
22154 test ! -s conftest.err
22155 }; then
22156 ac_header_preproc=yes
22157 else
22158 echo "$as_me: failed program was:" >&5
22159 sed 's/^/| /' conftest.$ac_ext >&5
22161 ac_header_preproc=no
22164 rm -f conftest.err conftest.$ac_ext
22165 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
22166 echo "${ECHO_T}$ac_header_preproc" >&6; }
22168 # So? What about this header?
22169 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
22170 yes:no: )
22171 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
22172 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
22173 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
22174 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
22175 ac_header_preproc=yes
22177 no:yes:* )
22178 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
22179 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
22180 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
22181 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
22182 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
22183 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
22184 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
22185 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
22186 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
22187 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
22188 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
22189 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
22192 esac
22193 { echo "$as_me:$LINENO: checking for $ac_header" >&5
22194 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
22195 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
22196 echo $ECHO_N "(cached) $ECHO_C" >&6
22197 else
22198 eval "$as_ac_Header=\$ac_header_preproc"
22200 ac_res=`eval echo '${'$as_ac_Header'}'`
22201 { echo "$as_me:$LINENO: result: $ac_res" >&5
22202 echo "${ECHO_T}$ac_res" >&6; }
22205 if test `eval echo '${'$as_ac_Header'}'` = yes; then
22206 cat >>confdefs.h <<_ACEOF
22207 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
22208 _ACEOF
22212 done
22216 done
22220 done
22224 for ac_header in com_err.h
22226 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
22227 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
22228 { echo "$as_me:$LINENO: checking for $ac_header" >&5
22229 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
22230 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
22231 echo $ECHO_N "(cached) $ECHO_C" >&6
22233 ac_res=`eval echo '${'$as_ac_Header'}'`
22234 { echo "$as_me:$LINENO: result: $ac_res" >&5
22235 echo "${ECHO_T}$ac_res" >&6; }
22236 else
22237 # Is the header compilable?
22238 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
22239 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
22240 cat >conftest.$ac_ext <<_ACEOF
22241 /* confdefs.h. */
22242 _ACEOF
22243 cat confdefs.h >>conftest.$ac_ext
22244 cat >>conftest.$ac_ext <<_ACEOF
22245 /* end confdefs.h. */
22246 $ac_includes_default
22247 #include <$ac_header>
22248 _ACEOF
22249 rm -f conftest.$ac_objext
22250 if { (ac_try="$ac_compile"
22251 case "(($ac_try" in
22252 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22253 *) ac_try_echo=$ac_try;;
22254 esac
22255 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22256 (eval "$ac_compile") 2>conftest.er1
22257 ac_status=$?
22258 grep -v '^ *+' conftest.er1 >conftest.err
22259 rm -f conftest.er1
22260 cat conftest.err >&5
22261 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22262 (exit $ac_status); } && {
22263 test -z "$ac_c_werror_flag" ||
22264 test ! -s conftest.err
22265 } && test -s conftest.$ac_objext; then
22266 ac_header_compiler=yes
22267 else
22268 echo "$as_me: failed program was:" >&5
22269 sed 's/^/| /' conftest.$ac_ext >&5
22271 ac_header_compiler=no
22274 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22275 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
22276 echo "${ECHO_T}$ac_header_compiler" >&6; }
22278 # Is the header present?
22279 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
22280 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
22281 cat >conftest.$ac_ext <<_ACEOF
22282 /* confdefs.h. */
22283 _ACEOF
22284 cat confdefs.h >>conftest.$ac_ext
22285 cat >>conftest.$ac_ext <<_ACEOF
22286 /* end confdefs.h. */
22287 #include <$ac_header>
22288 _ACEOF
22289 if { (ac_try="$ac_cpp conftest.$ac_ext"
22290 case "(($ac_try" in
22291 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22292 *) ac_try_echo=$ac_try;;
22293 esac
22294 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22295 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
22296 ac_status=$?
22297 grep -v '^ *+' conftest.er1 >conftest.err
22298 rm -f conftest.er1
22299 cat conftest.err >&5
22300 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22301 (exit $ac_status); } >/dev/null && {
22302 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
22303 test ! -s conftest.err
22304 }; then
22305 ac_header_preproc=yes
22306 else
22307 echo "$as_me: failed program was:" >&5
22308 sed 's/^/| /' conftest.$ac_ext >&5
22310 ac_header_preproc=no
22313 rm -f conftest.err conftest.$ac_ext
22314 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
22315 echo "${ECHO_T}$ac_header_preproc" >&6; }
22317 # So? What about this header?
22318 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
22319 yes:no: )
22320 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
22321 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
22322 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
22323 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
22324 ac_header_preproc=yes
22326 no:yes:* )
22327 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
22328 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
22329 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
22330 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
22331 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
22332 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
22333 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
22334 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
22335 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
22336 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
22337 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
22338 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
22341 esac
22342 { echo "$as_me:$LINENO: checking for $ac_header" >&5
22343 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
22344 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
22345 echo $ECHO_N "(cached) $ECHO_C" >&6
22346 else
22347 eval "$as_ac_Header=\$ac_header_preproc"
22349 ac_res=`eval echo '${'$as_ac_Header'}'`
22350 { echo "$as_me:$LINENO: result: $ac_res" >&5
22351 echo "${ECHO_T}$ac_res" >&6; }
22354 if test `eval echo '${'$as_ac_Header'}'` = yes; then
22355 cat >>confdefs.h <<_ACEOF
22356 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
22357 _ACEOF
22361 done
22365 # Solaris requires -lintl if you want strerror (which calls dgettext)
22366 # to return localized messages.
22368 { echo "$as_me:$LINENO: checking for dgettext in -lintl" >&5
22369 echo $ECHO_N "checking for dgettext in -lintl... $ECHO_C" >&6; }
22370 if test "${ac_cv_lib_intl_dgettext+set}" = set; then
22371 echo $ECHO_N "(cached) $ECHO_C" >&6
22372 else
22373 ac_check_lib_save_LIBS=$LIBS
22374 LIBS="-lintl $LIBS"
22375 cat >conftest.$ac_ext <<_ACEOF
22376 /* confdefs.h. */
22377 _ACEOF
22378 cat confdefs.h >>conftest.$ac_ext
22379 cat >>conftest.$ac_ext <<_ACEOF
22380 /* end confdefs.h. */
22382 /* Override any GCC internal prototype to avoid an error.
22383 Use char because int might match the return type of a GCC
22384 builtin and then its argument prototype would still apply. */
22385 #ifdef __cplusplus
22386 extern "C"
22387 #endif
22388 char dgettext ();
22390 main ()
22392 return dgettext ();
22394 return 0;
22396 _ACEOF
22397 rm -f conftest.$ac_objext conftest$ac_exeext
22398 if { (ac_try="$ac_link"
22399 case "(($ac_try" in
22400 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22401 *) ac_try_echo=$ac_try;;
22402 esac
22403 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22404 (eval "$ac_link") 2>conftest.er1
22405 ac_status=$?
22406 grep -v '^ *+' conftest.er1 >conftest.err
22407 rm -f conftest.er1
22408 cat conftest.err >&5
22409 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22410 (exit $ac_status); } && {
22411 test -z "$ac_c_werror_flag" ||
22412 test ! -s conftest.err
22413 } && test -s conftest$ac_exeext &&
22414 $as_test_x conftest$ac_exeext; then
22415 ac_cv_lib_intl_dgettext=yes
22416 else
22417 echo "$as_me: failed program was:" >&5
22418 sed 's/^/| /' conftest.$ac_ext >&5
22420 ac_cv_lib_intl_dgettext=no
22423 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
22424 conftest$ac_exeext conftest.$ac_ext
22425 LIBS=$ac_check_lib_save_LIBS
22427 { echo "$as_me:$LINENO: result: $ac_cv_lib_intl_dgettext" >&5
22428 echo "${ECHO_T}$ac_cv_lib_intl_dgettext" >&6; }
22429 if test $ac_cv_lib_intl_dgettext = yes; then
22430 cat >>confdefs.h <<_ACEOF
22431 #define HAVE_LIBINTL 1
22432 _ACEOF
22434 LIBS="-lintl $LIBS"
22439 { echo "$as_me:$LINENO: checking whether localtime caches TZ" >&5
22440 echo $ECHO_N "checking whether localtime caches TZ... $ECHO_C" >&6; }
22441 if test "${emacs_cv_localtime_cache+set}" = set; then
22442 echo $ECHO_N "(cached) $ECHO_C" >&6
22443 else
22444 if test x$ac_cv_func_tzset = xyes; then
22445 if test "$cross_compiling" = yes; then
22446 # If we have tzset, assume the worst when cross-compiling.
22447 emacs_cv_localtime_cache=yes
22448 else
22449 cat >conftest.$ac_ext <<_ACEOF
22450 /* confdefs.h. */
22451 _ACEOF
22452 cat confdefs.h >>conftest.$ac_ext
22453 cat >>conftest.$ac_ext <<_ACEOF
22454 /* end confdefs.h. */
22455 #include <time.h>
22456 extern char **environ;
22457 unset_TZ ()
22459 char **from, **to;
22460 for (to = from = environ; (*to = *from); from++)
22461 if (! (to[0][0] == 'T' && to[0][1] == 'Z' && to[0][2] == '='))
22462 to++;
22464 char TZ_GMT0[] = "TZ=GMT0";
22465 char TZ_PST8[] = "TZ=PST8";
22466 main()
22468 time_t now = time ((time_t *) 0);
22469 int hour_GMT0, hour_unset;
22470 if (putenv (TZ_GMT0) != 0)
22471 exit (1);
22472 hour_GMT0 = localtime (&now)->tm_hour;
22473 unset_TZ ();
22474 hour_unset = localtime (&now)->tm_hour;
22475 if (putenv (TZ_PST8) != 0)
22476 exit (1);
22477 if (localtime (&now)->tm_hour == hour_GMT0)
22478 exit (1);
22479 unset_TZ ();
22480 if (localtime (&now)->tm_hour != hour_unset)
22481 exit (1);
22482 exit (0);
22484 _ACEOF
22485 rm -f conftest$ac_exeext
22486 if { (ac_try="$ac_link"
22487 case "(($ac_try" in
22488 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22489 *) ac_try_echo=$ac_try;;
22490 esac
22491 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22492 (eval "$ac_link") 2>&5
22493 ac_status=$?
22494 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22495 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
22496 { (case "(($ac_try" in
22497 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22498 *) ac_try_echo=$ac_try;;
22499 esac
22500 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22501 (eval "$ac_try") 2>&5
22502 ac_status=$?
22503 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22504 (exit $ac_status); }; }; then
22505 emacs_cv_localtime_cache=no
22506 else
22507 echo "$as_me: program exited with status $ac_status" >&5
22508 echo "$as_me: failed program was:" >&5
22509 sed 's/^/| /' conftest.$ac_ext >&5
22511 ( exit $ac_status )
22512 emacs_cv_localtime_cache=yes
22514 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
22518 else
22519 # If we lack tzset, report that localtime does not cache TZ,
22520 # since we can't invalidate the cache if we don't have tzset.
22521 emacs_cv_localtime_cache=no
22524 { echo "$as_me:$LINENO: result: $emacs_cv_localtime_cache" >&5
22525 echo "${ECHO_T}$emacs_cv_localtime_cache" >&6; }
22526 if test $emacs_cv_localtime_cache = yes; then
22528 cat >>confdefs.h <<\_ACEOF
22529 #define LOCALTIME_CACHE 1
22530 _ACEOF
22534 if test "x$HAVE_TIMEVAL" = xyes; then
22536 for ac_func in gettimeofday
22538 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
22539 { echo "$as_me:$LINENO: checking for $ac_func" >&5
22540 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
22541 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
22542 echo $ECHO_N "(cached) $ECHO_C" >&6
22543 else
22544 cat >conftest.$ac_ext <<_ACEOF
22545 /* confdefs.h. */
22546 _ACEOF
22547 cat confdefs.h >>conftest.$ac_ext
22548 cat >>conftest.$ac_ext <<_ACEOF
22549 /* end confdefs.h. */
22550 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
22551 For example, HP-UX 11i <limits.h> declares gettimeofday. */
22552 #define $ac_func innocuous_$ac_func
22554 /* System header to define __stub macros and hopefully few prototypes,
22555 which can conflict with char $ac_func (); below.
22556 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
22557 <limits.h> exists even on freestanding compilers. */
22559 #ifdef __STDC__
22560 # include <limits.h>
22561 #else
22562 # include <assert.h>
22563 #endif
22565 #undef $ac_func
22567 /* Override any GCC internal prototype to avoid an error.
22568 Use char because int might match the return type of a GCC
22569 builtin and then its argument prototype would still apply. */
22570 #ifdef __cplusplus
22571 extern "C"
22572 #endif
22573 char $ac_func ();
22574 /* The GNU C library defines this for functions which it implements
22575 to always fail with ENOSYS. Some functions are actually named
22576 something starting with __ and the normal name is an alias. */
22577 #if defined __stub_$ac_func || defined __stub___$ac_func
22578 choke me
22579 #endif
22582 main ()
22584 return $ac_func ();
22586 return 0;
22588 _ACEOF
22589 rm -f conftest.$ac_objext conftest$ac_exeext
22590 if { (ac_try="$ac_link"
22591 case "(($ac_try" in
22592 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22593 *) ac_try_echo=$ac_try;;
22594 esac
22595 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22596 (eval "$ac_link") 2>conftest.er1
22597 ac_status=$?
22598 grep -v '^ *+' conftest.er1 >conftest.err
22599 rm -f conftest.er1
22600 cat conftest.err >&5
22601 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22602 (exit $ac_status); } && {
22603 test -z "$ac_c_werror_flag" ||
22604 test ! -s conftest.err
22605 } && test -s conftest$ac_exeext &&
22606 $as_test_x conftest$ac_exeext; then
22607 eval "$as_ac_var=yes"
22608 else
22609 echo "$as_me: failed program was:" >&5
22610 sed 's/^/| /' conftest.$ac_ext >&5
22612 eval "$as_ac_var=no"
22615 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
22616 conftest$ac_exeext conftest.$ac_ext
22618 ac_res=`eval echo '${'$as_ac_var'}'`
22619 { echo "$as_me:$LINENO: result: $ac_res" >&5
22620 echo "${ECHO_T}$ac_res" >&6; }
22621 if test `eval echo '${'$as_ac_var'}'` = yes; then
22622 cat >>confdefs.h <<_ACEOF
22623 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
22624 _ACEOF
22627 done
22629 if test $ac_cv_func_gettimeofday = yes; then
22630 { echo "$as_me:$LINENO: checking whether gettimeofday can accept two arguments" >&5
22631 echo $ECHO_N "checking whether gettimeofday can accept two arguments... $ECHO_C" >&6; }
22632 if test "${emacs_cv_gettimeofday_two_arguments+set}" = set; then
22633 echo $ECHO_N "(cached) $ECHO_C" >&6
22634 else
22635 cat >conftest.$ac_ext <<_ACEOF
22636 /* confdefs.h. */
22637 _ACEOF
22638 cat confdefs.h >>conftest.$ac_ext
22639 cat >>conftest.$ac_ext <<_ACEOF
22640 /* end confdefs.h. */
22642 #ifdef TIME_WITH_SYS_TIME
22643 #include <sys/time.h>
22644 #include <time.h>
22645 #else
22646 #ifdef HAVE_SYS_TIME_H
22647 #include <sys/time.h>
22648 #else
22649 #include <time.h>
22650 #endif
22651 #endif
22653 main ()
22655 struct timeval time;
22656 gettimeofday (&time, 0);
22658 return 0;
22660 _ACEOF
22661 rm -f conftest.$ac_objext
22662 if { (ac_try="$ac_compile"
22663 case "(($ac_try" in
22664 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22665 *) ac_try_echo=$ac_try;;
22666 esac
22667 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22668 (eval "$ac_compile") 2>conftest.er1
22669 ac_status=$?
22670 grep -v '^ *+' conftest.er1 >conftest.err
22671 rm -f conftest.er1
22672 cat conftest.err >&5
22673 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22674 (exit $ac_status); } && {
22675 test -z "$ac_c_werror_flag" ||
22676 test ! -s conftest.err
22677 } && test -s conftest.$ac_objext; then
22678 emacs_cv_gettimeofday_two_arguments=yes
22679 else
22680 echo "$as_me: failed program was:" >&5
22681 sed 's/^/| /' conftest.$ac_ext >&5
22683 emacs_cv_gettimeofday_two_arguments=no
22686 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22688 { echo "$as_me:$LINENO: result: $emacs_cv_gettimeofday_two_arguments" >&5
22689 echo "${ECHO_T}$emacs_cv_gettimeofday_two_arguments" >&6; }
22690 if test $emacs_cv_gettimeofday_two_arguments = no; then
22692 cat >>confdefs.h <<\_ACEOF
22693 #define GETTIMEOFDAY_ONE_ARGUMENT 1
22694 _ACEOF
22700 ok_so_far=yes
22701 { echo "$as_me:$LINENO: checking for socket" >&5
22702 echo $ECHO_N "checking for socket... $ECHO_C" >&6; }
22703 if test "${ac_cv_func_socket+set}" = set; then
22704 echo $ECHO_N "(cached) $ECHO_C" >&6
22705 else
22706 cat >conftest.$ac_ext <<_ACEOF
22707 /* confdefs.h. */
22708 _ACEOF
22709 cat confdefs.h >>conftest.$ac_ext
22710 cat >>conftest.$ac_ext <<_ACEOF
22711 /* end confdefs.h. */
22712 /* Define socket to an innocuous variant, in case <limits.h> declares socket.
22713 For example, HP-UX 11i <limits.h> declares gettimeofday. */
22714 #define socket innocuous_socket
22716 /* System header to define __stub macros and hopefully few prototypes,
22717 which can conflict with char socket (); below.
22718 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
22719 <limits.h> exists even on freestanding compilers. */
22721 #ifdef __STDC__
22722 # include <limits.h>
22723 #else
22724 # include <assert.h>
22725 #endif
22727 #undef socket
22729 /* Override any GCC internal prototype to avoid an error.
22730 Use char because int might match the return type of a GCC
22731 builtin and then its argument prototype would still apply. */
22732 #ifdef __cplusplus
22733 extern "C"
22734 #endif
22735 char socket ();
22736 /* The GNU C library defines this for functions which it implements
22737 to always fail with ENOSYS. Some functions are actually named
22738 something starting with __ and the normal name is an alias. */
22739 #if defined __stub_socket || defined __stub___socket
22740 choke me
22741 #endif
22744 main ()
22746 return socket ();
22748 return 0;
22750 _ACEOF
22751 rm -f conftest.$ac_objext conftest$ac_exeext
22752 if { (ac_try="$ac_link"
22753 case "(($ac_try" in
22754 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22755 *) ac_try_echo=$ac_try;;
22756 esac
22757 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22758 (eval "$ac_link") 2>conftest.er1
22759 ac_status=$?
22760 grep -v '^ *+' conftest.er1 >conftest.err
22761 rm -f conftest.er1
22762 cat conftest.err >&5
22763 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22764 (exit $ac_status); } && {
22765 test -z "$ac_c_werror_flag" ||
22766 test ! -s conftest.err
22767 } && test -s conftest$ac_exeext &&
22768 $as_test_x conftest$ac_exeext; then
22769 ac_cv_func_socket=yes
22770 else
22771 echo "$as_me: failed program was:" >&5
22772 sed 's/^/| /' conftest.$ac_ext >&5
22774 ac_cv_func_socket=no
22777 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
22778 conftest$ac_exeext conftest.$ac_ext
22780 { echo "$as_me:$LINENO: result: $ac_cv_func_socket" >&5
22781 echo "${ECHO_T}$ac_cv_func_socket" >&6; }
22782 if test $ac_cv_func_socket = yes; then
22784 else
22785 ok_so_far=no
22788 if test $ok_so_far = yes; then
22789 if test "${ac_cv_header_netinet_in_h+set}" = set; then
22790 { echo "$as_me:$LINENO: checking for netinet/in.h" >&5
22791 echo $ECHO_N "checking for netinet/in.h... $ECHO_C" >&6; }
22792 if test "${ac_cv_header_netinet_in_h+set}" = set; then
22793 echo $ECHO_N "(cached) $ECHO_C" >&6
22795 { echo "$as_me:$LINENO: result: $ac_cv_header_netinet_in_h" >&5
22796 echo "${ECHO_T}$ac_cv_header_netinet_in_h" >&6; }
22797 else
22798 # Is the header compilable?
22799 { echo "$as_me:$LINENO: checking netinet/in.h usability" >&5
22800 echo $ECHO_N "checking netinet/in.h usability... $ECHO_C" >&6; }
22801 cat >conftest.$ac_ext <<_ACEOF
22802 /* confdefs.h. */
22803 _ACEOF
22804 cat confdefs.h >>conftest.$ac_ext
22805 cat >>conftest.$ac_ext <<_ACEOF
22806 /* end confdefs.h. */
22807 $ac_includes_default
22808 #include <netinet/in.h>
22809 _ACEOF
22810 rm -f conftest.$ac_objext
22811 if { (ac_try="$ac_compile"
22812 case "(($ac_try" in
22813 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22814 *) ac_try_echo=$ac_try;;
22815 esac
22816 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22817 (eval "$ac_compile") 2>conftest.er1
22818 ac_status=$?
22819 grep -v '^ *+' conftest.er1 >conftest.err
22820 rm -f conftest.er1
22821 cat conftest.err >&5
22822 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22823 (exit $ac_status); } && {
22824 test -z "$ac_c_werror_flag" ||
22825 test ! -s conftest.err
22826 } && test -s conftest.$ac_objext; then
22827 ac_header_compiler=yes
22828 else
22829 echo "$as_me: failed program was:" >&5
22830 sed 's/^/| /' conftest.$ac_ext >&5
22832 ac_header_compiler=no
22835 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22836 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
22837 echo "${ECHO_T}$ac_header_compiler" >&6; }
22839 # Is the header present?
22840 { echo "$as_me:$LINENO: checking netinet/in.h presence" >&5
22841 echo $ECHO_N "checking netinet/in.h presence... $ECHO_C" >&6; }
22842 cat >conftest.$ac_ext <<_ACEOF
22843 /* confdefs.h. */
22844 _ACEOF
22845 cat confdefs.h >>conftest.$ac_ext
22846 cat >>conftest.$ac_ext <<_ACEOF
22847 /* end confdefs.h. */
22848 #include <netinet/in.h>
22849 _ACEOF
22850 if { (ac_try="$ac_cpp conftest.$ac_ext"
22851 case "(($ac_try" in
22852 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22853 *) ac_try_echo=$ac_try;;
22854 esac
22855 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22856 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
22857 ac_status=$?
22858 grep -v '^ *+' conftest.er1 >conftest.err
22859 rm -f conftest.er1
22860 cat conftest.err >&5
22861 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22862 (exit $ac_status); } >/dev/null && {
22863 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
22864 test ! -s conftest.err
22865 }; then
22866 ac_header_preproc=yes
22867 else
22868 echo "$as_me: failed program was:" >&5
22869 sed 's/^/| /' conftest.$ac_ext >&5
22871 ac_header_preproc=no
22874 rm -f conftest.err conftest.$ac_ext
22875 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
22876 echo "${ECHO_T}$ac_header_preproc" >&6; }
22878 # So? What about this header?
22879 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
22880 yes:no: )
22881 { echo "$as_me:$LINENO: WARNING: netinet/in.h: accepted by the compiler, rejected by the preprocessor!" >&5
22882 echo "$as_me: WARNING: netinet/in.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
22883 { echo "$as_me:$LINENO: WARNING: netinet/in.h: proceeding with the compiler's result" >&5
22884 echo "$as_me: WARNING: netinet/in.h: proceeding with the compiler's result" >&2;}
22885 ac_header_preproc=yes
22887 no:yes:* )
22888 { echo "$as_me:$LINENO: WARNING: netinet/in.h: present but cannot be compiled" >&5
22889 echo "$as_me: WARNING: netinet/in.h: present but cannot be compiled" >&2;}
22890 { echo "$as_me:$LINENO: WARNING: netinet/in.h: check for missing prerequisite headers?" >&5
22891 echo "$as_me: WARNING: netinet/in.h: check for missing prerequisite headers?" >&2;}
22892 { echo "$as_me:$LINENO: WARNING: netinet/in.h: see the Autoconf documentation" >&5
22893 echo "$as_me: WARNING: netinet/in.h: see the Autoconf documentation" >&2;}
22894 { echo "$as_me:$LINENO: WARNING: netinet/in.h: section \"Present But Cannot Be Compiled\"" >&5
22895 echo "$as_me: WARNING: netinet/in.h: section \"Present But Cannot Be Compiled\"" >&2;}
22896 { echo "$as_me:$LINENO: WARNING: netinet/in.h: proceeding with the preprocessor's result" >&5
22897 echo "$as_me: WARNING: netinet/in.h: proceeding with the preprocessor's result" >&2;}
22898 { echo "$as_me:$LINENO: WARNING: netinet/in.h: in the future, the compiler will take precedence" >&5
22899 echo "$as_me: WARNING: netinet/in.h: in the future, the compiler will take precedence" >&2;}
22902 esac
22903 { echo "$as_me:$LINENO: checking for netinet/in.h" >&5
22904 echo $ECHO_N "checking for netinet/in.h... $ECHO_C" >&6; }
22905 if test "${ac_cv_header_netinet_in_h+set}" = set; then
22906 echo $ECHO_N "(cached) $ECHO_C" >&6
22907 else
22908 ac_cv_header_netinet_in_h=$ac_header_preproc
22910 { echo "$as_me:$LINENO: result: $ac_cv_header_netinet_in_h" >&5
22911 echo "${ECHO_T}$ac_cv_header_netinet_in_h" >&6; }
22914 if test $ac_cv_header_netinet_in_h = yes; then
22916 else
22917 ok_so_far=no
22922 if test $ok_so_far = yes; then
22923 if test "${ac_cv_header_arpa_inet_h+set}" = set; then
22924 { echo "$as_me:$LINENO: checking for arpa/inet.h" >&5
22925 echo $ECHO_N "checking for arpa/inet.h... $ECHO_C" >&6; }
22926 if test "${ac_cv_header_arpa_inet_h+set}" = set; then
22927 echo $ECHO_N "(cached) $ECHO_C" >&6
22929 { echo "$as_me:$LINENO: result: $ac_cv_header_arpa_inet_h" >&5
22930 echo "${ECHO_T}$ac_cv_header_arpa_inet_h" >&6; }
22931 else
22932 # Is the header compilable?
22933 { echo "$as_me:$LINENO: checking arpa/inet.h usability" >&5
22934 echo $ECHO_N "checking arpa/inet.h usability... $ECHO_C" >&6; }
22935 cat >conftest.$ac_ext <<_ACEOF
22936 /* confdefs.h. */
22937 _ACEOF
22938 cat confdefs.h >>conftest.$ac_ext
22939 cat >>conftest.$ac_ext <<_ACEOF
22940 /* end confdefs.h. */
22941 $ac_includes_default
22942 #include <arpa/inet.h>
22943 _ACEOF
22944 rm -f conftest.$ac_objext
22945 if { (ac_try="$ac_compile"
22946 case "(($ac_try" in
22947 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22948 *) ac_try_echo=$ac_try;;
22949 esac
22950 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22951 (eval "$ac_compile") 2>conftest.er1
22952 ac_status=$?
22953 grep -v '^ *+' conftest.er1 >conftest.err
22954 rm -f conftest.er1
22955 cat conftest.err >&5
22956 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22957 (exit $ac_status); } && {
22958 test -z "$ac_c_werror_flag" ||
22959 test ! -s conftest.err
22960 } && test -s conftest.$ac_objext; then
22961 ac_header_compiler=yes
22962 else
22963 echo "$as_me: failed program was:" >&5
22964 sed 's/^/| /' conftest.$ac_ext >&5
22966 ac_header_compiler=no
22969 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22970 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
22971 echo "${ECHO_T}$ac_header_compiler" >&6; }
22973 # Is the header present?
22974 { echo "$as_me:$LINENO: checking arpa/inet.h presence" >&5
22975 echo $ECHO_N "checking arpa/inet.h presence... $ECHO_C" >&6; }
22976 cat >conftest.$ac_ext <<_ACEOF
22977 /* confdefs.h. */
22978 _ACEOF
22979 cat confdefs.h >>conftest.$ac_ext
22980 cat >>conftest.$ac_ext <<_ACEOF
22981 /* end confdefs.h. */
22982 #include <arpa/inet.h>
22983 _ACEOF
22984 if { (ac_try="$ac_cpp conftest.$ac_ext"
22985 case "(($ac_try" in
22986 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22987 *) ac_try_echo=$ac_try;;
22988 esac
22989 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22990 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
22991 ac_status=$?
22992 grep -v '^ *+' conftest.er1 >conftest.err
22993 rm -f conftest.er1
22994 cat conftest.err >&5
22995 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22996 (exit $ac_status); } >/dev/null && {
22997 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
22998 test ! -s conftest.err
22999 }; then
23000 ac_header_preproc=yes
23001 else
23002 echo "$as_me: failed program was:" >&5
23003 sed 's/^/| /' conftest.$ac_ext >&5
23005 ac_header_preproc=no
23008 rm -f conftest.err conftest.$ac_ext
23009 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
23010 echo "${ECHO_T}$ac_header_preproc" >&6; }
23012 # So? What about this header?
23013 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
23014 yes:no: )
23015 { echo "$as_me:$LINENO: WARNING: arpa/inet.h: accepted by the compiler, rejected by the preprocessor!" >&5
23016 echo "$as_me: WARNING: arpa/inet.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
23017 { echo "$as_me:$LINENO: WARNING: arpa/inet.h: proceeding with the compiler's result" >&5
23018 echo "$as_me: WARNING: arpa/inet.h: proceeding with the compiler's result" >&2;}
23019 ac_header_preproc=yes
23021 no:yes:* )
23022 { echo "$as_me:$LINENO: WARNING: arpa/inet.h: present but cannot be compiled" >&5
23023 echo "$as_me: WARNING: arpa/inet.h: present but cannot be compiled" >&2;}
23024 { echo "$as_me:$LINENO: WARNING: arpa/inet.h: check for missing prerequisite headers?" >&5
23025 echo "$as_me: WARNING: arpa/inet.h: check for missing prerequisite headers?" >&2;}
23026 { echo "$as_me:$LINENO: WARNING: arpa/inet.h: see the Autoconf documentation" >&5
23027 echo "$as_me: WARNING: arpa/inet.h: see the Autoconf documentation" >&2;}
23028 { echo "$as_me:$LINENO: WARNING: arpa/inet.h: section \"Present But Cannot Be Compiled\"" >&5
23029 echo "$as_me: WARNING: arpa/inet.h: section \"Present But Cannot Be Compiled\"" >&2;}
23030 { echo "$as_me:$LINENO: WARNING: arpa/inet.h: proceeding with the preprocessor's result" >&5
23031 echo "$as_me: WARNING: arpa/inet.h: proceeding with the preprocessor's result" >&2;}
23032 { echo "$as_me:$LINENO: WARNING: arpa/inet.h: in the future, the compiler will take precedence" >&5
23033 echo "$as_me: WARNING: arpa/inet.h: in the future, the compiler will take precedence" >&2;}
23036 esac
23037 { echo "$as_me:$LINENO: checking for arpa/inet.h" >&5
23038 echo $ECHO_N "checking for arpa/inet.h... $ECHO_C" >&6; }
23039 if test "${ac_cv_header_arpa_inet_h+set}" = set; then
23040 echo $ECHO_N "(cached) $ECHO_C" >&6
23041 else
23042 ac_cv_header_arpa_inet_h=$ac_header_preproc
23044 { echo "$as_me:$LINENO: result: $ac_cv_header_arpa_inet_h" >&5
23045 echo "${ECHO_T}$ac_cv_header_arpa_inet_h" >&6; }
23048 if test $ac_cv_header_arpa_inet_h = yes; then
23050 else
23051 ok_so_far=no
23056 if test $ok_so_far = yes; then
23058 cat >>confdefs.h <<\_ACEOF
23059 #define HAVE_INET_SOCKETS 1
23060 _ACEOF
23065 for ac_header in sys/ioctl.h
23067 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
23068 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
23069 { echo "$as_me:$LINENO: checking for $ac_header" >&5
23070 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
23071 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
23072 echo $ECHO_N "(cached) $ECHO_C" >&6
23074 ac_res=`eval echo '${'$as_ac_Header'}'`
23075 { echo "$as_me:$LINENO: result: $ac_res" >&5
23076 echo "${ECHO_T}$ac_res" >&6; }
23077 else
23078 # Is the header compilable?
23079 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
23080 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
23081 cat >conftest.$ac_ext <<_ACEOF
23082 /* confdefs.h. */
23083 _ACEOF
23084 cat confdefs.h >>conftest.$ac_ext
23085 cat >>conftest.$ac_ext <<_ACEOF
23086 /* end confdefs.h. */
23087 $ac_includes_default
23088 #include <$ac_header>
23089 _ACEOF
23090 rm -f conftest.$ac_objext
23091 if { (ac_try="$ac_compile"
23092 case "(($ac_try" in
23093 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23094 *) ac_try_echo=$ac_try;;
23095 esac
23096 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23097 (eval "$ac_compile") 2>conftest.er1
23098 ac_status=$?
23099 grep -v '^ *+' conftest.er1 >conftest.err
23100 rm -f conftest.er1
23101 cat conftest.err >&5
23102 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23103 (exit $ac_status); } && {
23104 test -z "$ac_c_werror_flag" ||
23105 test ! -s conftest.err
23106 } && test -s conftest.$ac_objext; then
23107 ac_header_compiler=yes
23108 else
23109 echo "$as_me: failed program was:" >&5
23110 sed 's/^/| /' conftest.$ac_ext >&5
23112 ac_header_compiler=no
23115 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23116 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
23117 echo "${ECHO_T}$ac_header_compiler" >&6; }
23119 # Is the header present?
23120 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
23121 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
23122 cat >conftest.$ac_ext <<_ACEOF
23123 /* confdefs.h. */
23124 _ACEOF
23125 cat confdefs.h >>conftest.$ac_ext
23126 cat >>conftest.$ac_ext <<_ACEOF
23127 /* end confdefs.h. */
23128 #include <$ac_header>
23129 _ACEOF
23130 if { (ac_try="$ac_cpp conftest.$ac_ext"
23131 case "(($ac_try" in
23132 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23133 *) ac_try_echo=$ac_try;;
23134 esac
23135 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23136 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
23137 ac_status=$?
23138 grep -v '^ *+' conftest.er1 >conftest.err
23139 rm -f conftest.er1
23140 cat conftest.err >&5
23141 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23142 (exit $ac_status); } >/dev/null && {
23143 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
23144 test ! -s conftest.err
23145 }; then
23146 ac_header_preproc=yes
23147 else
23148 echo "$as_me: failed program was:" >&5
23149 sed 's/^/| /' conftest.$ac_ext >&5
23151 ac_header_preproc=no
23154 rm -f conftest.err conftest.$ac_ext
23155 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
23156 echo "${ECHO_T}$ac_header_preproc" >&6; }
23158 # So? What about this header?
23159 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
23160 yes:no: )
23161 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
23162 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
23163 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
23164 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
23165 ac_header_preproc=yes
23167 no:yes:* )
23168 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
23169 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
23170 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
23171 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
23172 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
23173 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
23174 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
23175 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
23176 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
23177 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
23178 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
23179 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
23182 esac
23183 { echo "$as_me:$LINENO: checking for $ac_header" >&5
23184 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
23185 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
23186 echo $ECHO_N "(cached) $ECHO_C" >&6
23187 else
23188 eval "$as_ac_Header=\$ac_header_preproc"
23190 ac_res=`eval echo '${'$as_ac_Header'}'`
23191 { echo "$as_me:$LINENO: result: $ac_res" >&5
23192 echo "${ECHO_T}$ac_res" >&6; }
23195 if test `eval echo '${'$as_ac_Header'}'` = yes; then
23196 cat >>confdefs.h <<_ACEOF
23197 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
23198 _ACEOF
23202 done
23205 if test -f /usr/lpp/X11/bin/smt.exp; then
23207 cat >>confdefs.h <<\_ACEOF
23208 #define HAVE_AIX_SMT_EXP 1
23209 _ACEOF
23213 { echo "$as_me:$LINENO: checking whether system supports dynamic ptys" >&5
23214 echo $ECHO_N "checking whether system supports dynamic ptys... $ECHO_C" >&6; }
23215 if test -d /dev/pts && ls -d /dev/ptmx > /dev/null 2>&1 ; then
23216 { echo "$as_me:$LINENO: result: yes" >&5
23217 echo "${ECHO_T}yes" >&6; }
23219 cat >>confdefs.h <<\_ACEOF
23220 #define HAVE_DEV_PTMX 1
23221 _ACEOF
23223 else
23224 { echo "$as_me:$LINENO: result: no" >&5
23225 echo "${ECHO_T}no" >&6; }
23228 { echo "$as_me:$LINENO: checking for pid_t" >&5
23229 echo $ECHO_N "checking for pid_t... $ECHO_C" >&6; }
23230 if test "${ac_cv_type_pid_t+set}" = set; then
23231 echo $ECHO_N "(cached) $ECHO_C" >&6
23232 else
23233 cat >conftest.$ac_ext <<_ACEOF
23234 /* confdefs.h. */
23235 _ACEOF
23236 cat confdefs.h >>conftest.$ac_ext
23237 cat >>conftest.$ac_ext <<_ACEOF
23238 /* end confdefs.h. */
23239 $ac_includes_default
23240 typedef pid_t ac__type_new_;
23242 main ()
23244 if ((ac__type_new_ *) 0)
23245 return 0;
23246 if (sizeof (ac__type_new_))
23247 return 0;
23249 return 0;
23251 _ACEOF
23252 rm -f conftest.$ac_objext
23253 if { (ac_try="$ac_compile"
23254 case "(($ac_try" in
23255 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23256 *) ac_try_echo=$ac_try;;
23257 esac
23258 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23259 (eval "$ac_compile") 2>conftest.er1
23260 ac_status=$?
23261 grep -v '^ *+' conftest.er1 >conftest.err
23262 rm -f conftest.er1
23263 cat conftest.err >&5
23264 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23265 (exit $ac_status); } && {
23266 test -z "$ac_c_werror_flag" ||
23267 test ! -s conftest.err
23268 } && test -s conftest.$ac_objext; then
23269 ac_cv_type_pid_t=yes
23270 else
23271 echo "$as_me: failed program was:" >&5
23272 sed 's/^/| /' conftest.$ac_ext >&5
23274 ac_cv_type_pid_t=no
23277 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23279 { echo "$as_me:$LINENO: result: $ac_cv_type_pid_t" >&5
23280 echo "${ECHO_T}$ac_cv_type_pid_t" >&6; }
23281 if test $ac_cv_type_pid_t = yes; then
23283 else
23285 cat >>confdefs.h <<_ACEOF
23286 #define pid_t int
23287 _ACEOF
23292 for ac_header in vfork.h
23294 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
23295 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
23296 { echo "$as_me:$LINENO: checking for $ac_header" >&5
23297 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
23298 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
23299 echo $ECHO_N "(cached) $ECHO_C" >&6
23301 ac_res=`eval echo '${'$as_ac_Header'}'`
23302 { echo "$as_me:$LINENO: result: $ac_res" >&5
23303 echo "${ECHO_T}$ac_res" >&6; }
23304 else
23305 # Is the header compilable?
23306 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
23307 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
23308 cat >conftest.$ac_ext <<_ACEOF
23309 /* confdefs.h. */
23310 _ACEOF
23311 cat confdefs.h >>conftest.$ac_ext
23312 cat >>conftest.$ac_ext <<_ACEOF
23313 /* end confdefs.h. */
23314 $ac_includes_default
23315 #include <$ac_header>
23316 _ACEOF
23317 rm -f conftest.$ac_objext
23318 if { (ac_try="$ac_compile"
23319 case "(($ac_try" in
23320 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23321 *) ac_try_echo=$ac_try;;
23322 esac
23323 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23324 (eval "$ac_compile") 2>conftest.er1
23325 ac_status=$?
23326 grep -v '^ *+' conftest.er1 >conftest.err
23327 rm -f conftest.er1
23328 cat conftest.err >&5
23329 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23330 (exit $ac_status); } && {
23331 test -z "$ac_c_werror_flag" ||
23332 test ! -s conftest.err
23333 } && test -s conftest.$ac_objext; then
23334 ac_header_compiler=yes
23335 else
23336 echo "$as_me: failed program was:" >&5
23337 sed 's/^/| /' conftest.$ac_ext >&5
23339 ac_header_compiler=no
23342 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23343 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
23344 echo "${ECHO_T}$ac_header_compiler" >&6; }
23346 # Is the header present?
23347 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
23348 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
23349 cat >conftest.$ac_ext <<_ACEOF
23350 /* confdefs.h. */
23351 _ACEOF
23352 cat confdefs.h >>conftest.$ac_ext
23353 cat >>conftest.$ac_ext <<_ACEOF
23354 /* end confdefs.h. */
23355 #include <$ac_header>
23356 _ACEOF
23357 if { (ac_try="$ac_cpp conftest.$ac_ext"
23358 case "(($ac_try" in
23359 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23360 *) ac_try_echo=$ac_try;;
23361 esac
23362 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23363 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
23364 ac_status=$?
23365 grep -v '^ *+' conftest.er1 >conftest.err
23366 rm -f conftest.er1
23367 cat conftest.err >&5
23368 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23369 (exit $ac_status); } >/dev/null && {
23370 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
23371 test ! -s conftest.err
23372 }; then
23373 ac_header_preproc=yes
23374 else
23375 echo "$as_me: failed program was:" >&5
23376 sed 's/^/| /' conftest.$ac_ext >&5
23378 ac_header_preproc=no
23381 rm -f conftest.err conftest.$ac_ext
23382 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
23383 echo "${ECHO_T}$ac_header_preproc" >&6; }
23385 # So? What about this header?
23386 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
23387 yes:no: )
23388 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
23389 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
23390 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
23391 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
23392 ac_header_preproc=yes
23394 no:yes:* )
23395 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
23396 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
23397 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
23398 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
23399 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
23400 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
23401 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
23402 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
23403 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
23404 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
23405 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
23406 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
23409 esac
23410 { echo "$as_me:$LINENO: checking for $ac_header" >&5
23411 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
23412 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
23413 echo $ECHO_N "(cached) $ECHO_C" >&6
23414 else
23415 eval "$as_ac_Header=\$ac_header_preproc"
23417 ac_res=`eval echo '${'$as_ac_Header'}'`
23418 { echo "$as_me:$LINENO: result: $ac_res" >&5
23419 echo "${ECHO_T}$ac_res" >&6; }
23422 if test `eval echo '${'$as_ac_Header'}'` = yes; then
23423 cat >>confdefs.h <<_ACEOF
23424 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
23425 _ACEOF
23429 done
23433 for ac_func in fork vfork
23435 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
23436 { echo "$as_me:$LINENO: checking for $ac_func" >&5
23437 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
23438 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
23439 echo $ECHO_N "(cached) $ECHO_C" >&6
23440 else
23441 cat >conftest.$ac_ext <<_ACEOF
23442 /* confdefs.h. */
23443 _ACEOF
23444 cat confdefs.h >>conftest.$ac_ext
23445 cat >>conftest.$ac_ext <<_ACEOF
23446 /* end confdefs.h. */
23447 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
23448 For example, HP-UX 11i <limits.h> declares gettimeofday. */
23449 #define $ac_func innocuous_$ac_func
23451 /* System header to define __stub macros and hopefully few prototypes,
23452 which can conflict with char $ac_func (); below.
23453 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
23454 <limits.h> exists even on freestanding compilers. */
23456 #ifdef __STDC__
23457 # include <limits.h>
23458 #else
23459 # include <assert.h>
23460 #endif
23462 #undef $ac_func
23464 /* Override any GCC internal prototype to avoid an error.
23465 Use char because int might match the return type of a GCC
23466 builtin and then its argument prototype would still apply. */
23467 #ifdef __cplusplus
23468 extern "C"
23469 #endif
23470 char $ac_func ();
23471 /* The GNU C library defines this for functions which it implements
23472 to always fail with ENOSYS. Some functions are actually named
23473 something starting with __ and the normal name is an alias. */
23474 #if defined __stub_$ac_func || defined __stub___$ac_func
23475 choke me
23476 #endif
23479 main ()
23481 return $ac_func ();
23483 return 0;
23485 _ACEOF
23486 rm -f conftest.$ac_objext conftest$ac_exeext
23487 if { (ac_try="$ac_link"
23488 case "(($ac_try" in
23489 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23490 *) ac_try_echo=$ac_try;;
23491 esac
23492 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23493 (eval "$ac_link") 2>conftest.er1
23494 ac_status=$?
23495 grep -v '^ *+' conftest.er1 >conftest.err
23496 rm -f conftest.er1
23497 cat conftest.err >&5
23498 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23499 (exit $ac_status); } && {
23500 test -z "$ac_c_werror_flag" ||
23501 test ! -s conftest.err
23502 } && test -s conftest$ac_exeext &&
23503 $as_test_x conftest$ac_exeext; then
23504 eval "$as_ac_var=yes"
23505 else
23506 echo "$as_me: failed program was:" >&5
23507 sed 's/^/| /' conftest.$ac_ext >&5
23509 eval "$as_ac_var=no"
23512 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
23513 conftest$ac_exeext conftest.$ac_ext
23515 ac_res=`eval echo '${'$as_ac_var'}'`
23516 { echo "$as_me:$LINENO: result: $ac_res" >&5
23517 echo "${ECHO_T}$ac_res" >&6; }
23518 if test `eval echo '${'$as_ac_var'}'` = yes; then
23519 cat >>confdefs.h <<_ACEOF
23520 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
23521 _ACEOF
23524 done
23526 if test "x$ac_cv_func_fork" = xyes; then
23527 { echo "$as_me:$LINENO: checking for working fork" >&5
23528 echo $ECHO_N "checking for working fork... $ECHO_C" >&6; }
23529 if test "${ac_cv_func_fork_works+set}" = set; then
23530 echo $ECHO_N "(cached) $ECHO_C" >&6
23531 else
23532 if test "$cross_compiling" = yes; then
23533 ac_cv_func_fork_works=cross
23534 else
23535 cat >conftest.$ac_ext <<_ACEOF
23536 /* confdefs.h. */
23537 _ACEOF
23538 cat confdefs.h >>conftest.$ac_ext
23539 cat >>conftest.$ac_ext <<_ACEOF
23540 /* end confdefs.h. */
23541 $ac_includes_default
23543 main ()
23546 /* By Ruediger Kuhlmann. */
23547 return fork () < 0;
23550 return 0;
23552 _ACEOF
23553 rm -f conftest$ac_exeext
23554 if { (ac_try="$ac_link"
23555 case "(($ac_try" in
23556 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23557 *) ac_try_echo=$ac_try;;
23558 esac
23559 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23560 (eval "$ac_link") 2>&5
23561 ac_status=$?
23562 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23563 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
23564 { (case "(($ac_try" in
23565 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23566 *) ac_try_echo=$ac_try;;
23567 esac
23568 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23569 (eval "$ac_try") 2>&5
23570 ac_status=$?
23571 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23572 (exit $ac_status); }; }; then
23573 ac_cv_func_fork_works=yes
23574 else
23575 echo "$as_me: program exited with status $ac_status" >&5
23576 echo "$as_me: failed program was:" >&5
23577 sed 's/^/| /' conftest.$ac_ext >&5
23579 ( exit $ac_status )
23580 ac_cv_func_fork_works=no
23582 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
23587 { echo "$as_me:$LINENO: result: $ac_cv_func_fork_works" >&5
23588 echo "${ECHO_T}$ac_cv_func_fork_works" >&6; }
23590 else
23591 ac_cv_func_fork_works=$ac_cv_func_fork
23593 if test "x$ac_cv_func_fork_works" = xcross; then
23594 case $host in
23595 *-*-amigaos* | *-*-msdosdjgpp*)
23596 # Override, as these systems have only a dummy fork() stub
23597 ac_cv_func_fork_works=no
23600 ac_cv_func_fork_works=yes
23602 esac
23603 { echo "$as_me:$LINENO: WARNING: result $ac_cv_func_fork_works guessed because of cross compilation" >&5
23604 echo "$as_me: WARNING: result $ac_cv_func_fork_works guessed because of cross compilation" >&2;}
23606 ac_cv_func_vfork_works=$ac_cv_func_vfork
23607 if test "x$ac_cv_func_vfork" = xyes; then
23608 { echo "$as_me:$LINENO: checking for working vfork" >&5
23609 echo $ECHO_N "checking for working vfork... $ECHO_C" >&6; }
23610 if test "${ac_cv_func_vfork_works+set}" = set; then
23611 echo $ECHO_N "(cached) $ECHO_C" >&6
23612 else
23613 if test "$cross_compiling" = yes; then
23614 ac_cv_func_vfork_works=cross
23615 else
23616 cat >conftest.$ac_ext <<_ACEOF
23617 /* confdefs.h. */
23618 _ACEOF
23619 cat confdefs.h >>conftest.$ac_ext
23620 cat >>conftest.$ac_ext <<_ACEOF
23621 /* end confdefs.h. */
23622 /* Thanks to Paul Eggert for this test. */
23623 $ac_includes_default
23624 #include <sys/wait.h>
23625 #ifdef HAVE_VFORK_H
23626 # include <vfork.h>
23627 #endif
23628 /* On some sparc systems, changes by the child to local and incoming
23629 argument registers are propagated back to the parent. The compiler
23630 is told about this with #include <vfork.h>, but some compilers
23631 (e.g. gcc -O) don't grok <vfork.h>. Test for this by using a
23632 static variable whose address is put into a register that is
23633 clobbered by the vfork. */
23634 static void
23635 #ifdef __cplusplus
23636 sparc_address_test (int arg)
23637 # else
23638 sparc_address_test (arg) int arg;
23639 #endif
23641 static pid_t child;
23642 if (!child) {
23643 child = vfork ();
23644 if (child < 0) {
23645 perror ("vfork");
23646 _exit(2);
23648 if (!child) {
23649 arg = getpid();
23650 write(-1, "", 0);
23651 _exit (arg);
23657 main ()
23659 pid_t parent = getpid ();
23660 pid_t child;
23662 sparc_address_test (0);
23664 child = vfork ();
23666 if (child == 0) {
23667 /* Here is another test for sparc vfork register problems. This
23668 test uses lots of local variables, at least as many local
23669 variables as main has allocated so far including compiler
23670 temporaries. 4 locals are enough for gcc 1.40.3 on a Solaris
23671 4.1.3 sparc, but we use 8 to be safe. A buggy compiler should
23672 reuse the register of parent for one of the local variables,
23673 since it will think that parent can't possibly be used any more
23674 in this routine. Assigning to the local variable will thus
23675 munge parent in the parent process. */
23676 pid_t
23677 p = getpid(), p1 = getpid(), p2 = getpid(), p3 = getpid(),
23678 p4 = getpid(), p5 = getpid(), p6 = getpid(), p7 = getpid();
23679 /* Convince the compiler that p..p7 are live; otherwise, it might
23680 use the same hardware register for all 8 local variables. */
23681 if (p != p1 || p != p2 || p != p3 || p != p4
23682 || p != p5 || p != p6 || p != p7)
23683 _exit(1);
23685 /* On some systems (e.g. IRIX 3.3), vfork doesn't separate parent
23686 from child file descriptors. If the child closes a descriptor
23687 before it execs or exits, this munges the parent's descriptor
23688 as well. Test for this by closing stdout in the child. */
23689 _exit(close(fileno(stdout)) != 0);
23690 } else {
23691 int status;
23692 struct stat st;
23694 while (wait(&status) != child)
23696 return (
23697 /* Was there some problem with vforking? */
23698 child < 0
23700 /* Did the child fail? (This shouldn't happen.) */
23701 || status
23703 /* Did the vfork/compiler bug occur? */
23704 || parent != getpid()
23706 /* Did the file descriptor bug occur? */
23707 || fstat(fileno(stdout), &st) != 0
23711 _ACEOF
23712 rm -f conftest$ac_exeext
23713 if { (ac_try="$ac_link"
23714 case "(($ac_try" in
23715 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23716 *) ac_try_echo=$ac_try;;
23717 esac
23718 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23719 (eval "$ac_link") 2>&5
23720 ac_status=$?
23721 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23722 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
23723 { (case "(($ac_try" in
23724 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23725 *) ac_try_echo=$ac_try;;
23726 esac
23727 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23728 (eval "$ac_try") 2>&5
23729 ac_status=$?
23730 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23731 (exit $ac_status); }; }; then
23732 ac_cv_func_vfork_works=yes
23733 else
23734 echo "$as_me: program exited with status $ac_status" >&5
23735 echo "$as_me: failed program was:" >&5
23736 sed 's/^/| /' conftest.$ac_ext >&5
23738 ( exit $ac_status )
23739 ac_cv_func_vfork_works=no
23741 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
23746 { echo "$as_me:$LINENO: result: $ac_cv_func_vfork_works" >&5
23747 echo "${ECHO_T}$ac_cv_func_vfork_works" >&6; }
23750 if test "x$ac_cv_func_fork_works" = xcross; then
23751 ac_cv_func_vfork_works=$ac_cv_func_vfork
23752 { echo "$as_me:$LINENO: WARNING: result $ac_cv_func_vfork_works guessed because of cross compilation" >&5
23753 echo "$as_me: WARNING: result $ac_cv_func_vfork_works guessed because of cross compilation" >&2;}
23756 if test "x$ac_cv_func_vfork_works" = xyes; then
23758 cat >>confdefs.h <<\_ACEOF
23759 #define HAVE_WORKING_VFORK 1
23760 _ACEOF
23762 else
23764 cat >>confdefs.h <<\_ACEOF
23765 #define vfork fork
23766 _ACEOF
23769 if test "x$ac_cv_func_fork_works" = xyes; then
23771 cat >>confdefs.h <<\_ACEOF
23772 #define HAVE_WORKING_FORK 1
23773 _ACEOF
23778 { echo "$as_me:$LINENO: checking for nl_langinfo and CODESET" >&5
23779 echo $ECHO_N "checking for nl_langinfo and CODESET... $ECHO_C" >&6; }
23780 if test "${emacs_cv_langinfo_codeset+set}" = set; then
23781 echo $ECHO_N "(cached) $ECHO_C" >&6
23782 else
23783 cat >conftest.$ac_ext <<_ACEOF
23784 /* confdefs.h. */
23785 _ACEOF
23786 cat confdefs.h >>conftest.$ac_ext
23787 cat >>conftest.$ac_ext <<_ACEOF
23788 /* end confdefs.h. */
23789 #include <langinfo.h>
23791 main ()
23793 char* cs = nl_langinfo(CODESET);
23795 return 0;
23797 _ACEOF
23798 rm -f conftest.$ac_objext conftest$ac_exeext
23799 if { (ac_try="$ac_link"
23800 case "(($ac_try" in
23801 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23802 *) ac_try_echo=$ac_try;;
23803 esac
23804 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23805 (eval "$ac_link") 2>conftest.er1
23806 ac_status=$?
23807 grep -v '^ *+' conftest.er1 >conftest.err
23808 rm -f conftest.er1
23809 cat conftest.err >&5
23810 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23811 (exit $ac_status); } && {
23812 test -z "$ac_c_werror_flag" ||
23813 test ! -s conftest.err
23814 } && test -s conftest$ac_exeext &&
23815 $as_test_x conftest$ac_exeext; then
23816 emacs_cv_langinfo_codeset=yes
23817 else
23818 echo "$as_me: failed program was:" >&5
23819 sed 's/^/| /' conftest.$ac_ext >&5
23821 emacs_cv_langinfo_codeset=no
23824 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
23825 conftest$ac_exeext conftest.$ac_ext
23828 { echo "$as_me:$LINENO: result: $emacs_cv_langinfo_codeset" >&5
23829 echo "${ECHO_T}$emacs_cv_langinfo_codeset" >&6; }
23830 if test $emacs_cv_langinfo_codeset = yes; then
23832 cat >>confdefs.h <<\_ACEOF
23833 #define HAVE_LANGINFO_CODESET 1
23834 _ACEOF
23838 { echo "$as_me:$LINENO: checking for size_t" >&5
23839 echo $ECHO_N "checking for size_t... $ECHO_C" >&6; }
23840 if test "${ac_cv_type_size_t+set}" = set; then
23841 echo $ECHO_N "(cached) $ECHO_C" >&6
23842 else
23843 cat >conftest.$ac_ext <<_ACEOF
23844 /* confdefs.h. */
23845 _ACEOF
23846 cat confdefs.h >>conftest.$ac_ext
23847 cat >>conftest.$ac_ext <<_ACEOF
23848 /* end confdefs.h. */
23849 $ac_includes_default
23850 typedef size_t ac__type_new_;
23852 main ()
23854 if ((ac__type_new_ *) 0)
23855 return 0;
23856 if (sizeof (ac__type_new_))
23857 return 0;
23859 return 0;
23861 _ACEOF
23862 rm -f conftest.$ac_objext
23863 if { (ac_try="$ac_compile"
23864 case "(($ac_try" in
23865 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23866 *) ac_try_echo=$ac_try;;
23867 esac
23868 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23869 (eval "$ac_compile") 2>conftest.er1
23870 ac_status=$?
23871 grep -v '^ *+' conftest.er1 >conftest.err
23872 rm -f conftest.er1
23873 cat conftest.err >&5
23874 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23875 (exit $ac_status); } && {
23876 test -z "$ac_c_werror_flag" ||
23877 test ! -s conftest.err
23878 } && test -s conftest.$ac_objext; then
23879 ac_cv_type_size_t=yes
23880 else
23881 echo "$as_me: failed program was:" >&5
23882 sed 's/^/| /' conftest.$ac_ext >&5
23884 ac_cv_type_size_t=no
23887 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23889 { echo "$as_me:$LINENO: result: $ac_cv_type_size_t" >&5
23890 echo "${ECHO_T}$ac_cv_type_size_t" >&6; }
23891 if test $ac_cv_type_size_t = yes; then
23893 cat >>confdefs.h <<_ACEOF
23894 #define HAVE_SIZE_T 1
23895 _ACEOF
23901 { echo "$as_me:$LINENO: checking for mbstate_t" >&5
23902 echo $ECHO_N "checking for mbstate_t... $ECHO_C" >&6; }
23903 if test "${ac_cv_type_mbstate_t+set}" = set; then
23904 echo $ECHO_N "(cached) $ECHO_C" >&6
23905 else
23906 cat >conftest.$ac_ext <<_ACEOF
23907 /* confdefs.h. */
23908 _ACEOF
23909 cat confdefs.h >>conftest.$ac_ext
23910 cat >>conftest.$ac_ext <<_ACEOF
23911 /* end confdefs.h. */
23912 $ac_includes_default
23913 # include <wchar.h>
23915 main ()
23917 mbstate_t x; return sizeof x;
23919 return 0;
23921 _ACEOF
23922 rm -f conftest.$ac_objext
23923 if { (ac_try="$ac_compile"
23924 case "(($ac_try" in
23925 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23926 *) ac_try_echo=$ac_try;;
23927 esac
23928 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23929 (eval "$ac_compile") 2>conftest.er1
23930 ac_status=$?
23931 grep -v '^ *+' conftest.er1 >conftest.err
23932 rm -f conftest.er1
23933 cat conftest.err >&5
23934 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23935 (exit $ac_status); } && {
23936 test -z "$ac_c_werror_flag" ||
23937 test ! -s conftest.err
23938 } && test -s conftest.$ac_objext; then
23939 ac_cv_type_mbstate_t=yes
23940 else
23941 echo "$as_me: failed program was:" >&5
23942 sed 's/^/| /' conftest.$ac_ext >&5
23944 ac_cv_type_mbstate_t=no
23947 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23949 { echo "$as_me:$LINENO: result: $ac_cv_type_mbstate_t" >&5
23950 echo "${ECHO_T}$ac_cv_type_mbstate_t" >&6; }
23951 if test $ac_cv_type_mbstate_t = yes; then
23953 cat >>confdefs.h <<\_ACEOF
23954 #define HAVE_MBSTATE_T 1
23955 _ACEOF
23957 else
23959 cat >>confdefs.h <<\_ACEOF
23960 #define mbstate_t int
23961 _ACEOF
23965 { echo "$as_me:$LINENO: checking for C restrict keyword" >&5
23966 echo $ECHO_N "checking for C restrict keyword... $ECHO_C" >&6; }
23967 if test "${emacs_cv_c_restrict+set}" = set; then
23968 echo $ECHO_N "(cached) $ECHO_C" >&6
23969 else
23970 cat >conftest.$ac_ext <<_ACEOF
23971 /* confdefs.h. */
23972 _ACEOF
23973 cat confdefs.h >>conftest.$ac_ext
23974 cat >>conftest.$ac_ext <<_ACEOF
23975 /* end confdefs.h. */
23976 void fred (int *restrict x);
23978 main ()
23982 return 0;
23984 _ACEOF
23985 rm -f conftest.$ac_objext
23986 if { (ac_try="$ac_compile"
23987 case "(($ac_try" in
23988 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23989 *) ac_try_echo=$ac_try;;
23990 esac
23991 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23992 (eval "$ac_compile") 2>conftest.er1
23993 ac_status=$?
23994 grep -v '^ *+' conftest.er1 >conftest.err
23995 rm -f conftest.er1
23996 cat conftest.err >&5
23997 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23998 (exit $ac_status); } && {
23999 test -z "$ac_c_werror_flag" ||
24000 test ! -s conftest.err
24001 } && test -s conftest.$ac_objext; then
24002 emacs_cv_c_restrict=yes
24003 else
24004 echo "$as_me: failed program was:" >&5
24005 sed 's/^/| /' conftest.$ac_ext >&5
24007 cat >conftest.$ac_ext <<_ACEOF
24008 /* confdefs.h. */
24009 _ACEOF
24010 cat confdefs.h >>conftest.$ac_ext
24011 cat >>conftest.$ac_ext <<_ACEOF
24012 /* end confdefs.h. */
24013 void fred (int *__restrict x);
24015 main ()
24019 return 0;
24021 _ACEOF
24022 rm -f conftest.$ac_objext
24023 if { (ac_try="$ac_compile"
24024 case "(($ac_try" in
24025 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24026 *) ac_try_echo=$ac_try;;
24027 esac
24028 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24029 (eval "$ac_compile") 2>conftest.er1
24030 ac_status=$?
24031 grep -v '^ *+' conftest.er1 >conftest.err
24032 rm -f conftest.er1
24033 cat conftest.err >&5
24034 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24035 (exit $ac_status); } && {
24036 test -z "$ac_c_werror_flag" ||
24037 test ! -s conftest.err
24038 } && test -s conftest.$ac_objext; then
24039 emacs_cv_c_restrict=__restrict
24040 else
24041 echo "$as_me: failed program was:" >&5
24042 sed 's/^/| /' conftest.$ac_ext >&5
24044 emacs_cv_c_restrict=no
24047 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
24050 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
24052 { echo "$as_me:$LINENO: result: $emacs_cv_c_restrict" >&5
24053 echo "${ECHO_T}$emacs_cv_c_restrict" >&6; }
24054 case "$emacs_cv_c_restrict" in
24055 yes) emacs_restrict=restrict;;
24056 no) emacs_restrict="";;
24057 *) emacs_restrict="$emacs_cv_c_restrict";;
24058 esac
24059 if test "$emacs_restrict" != __restrict; then
24061 cat >>confdefs.h <<_ACEOF
24062 #define __restrict $emacs_restrict
24063 _ACEOF
24067 { echo "$as_me:$LINENO: checking for C restricted array declarations" >&5
24068 echo $ECHO_N "checking for C restricted array declarations... $ECHO_C" >&6; }
24069 if test "${emacs_cv_c_restrict_arr+set}" = set; then
24070 echo $ECHO_N "(cached) $ECHO_C" >&6
24071 else
24072 cat >conftest.$ac_ext <<_ACEOF
24073 /* confdefs.h. */
24074 _ACEOF
24075 cat confdefs.h >>conftest.$ac_ext
24076 cat >>conftest.$ac_ext <<_ACEOF
24077 /* end confdefs.h. */
24078 void fred (int x[__restrict]);
24080 main ()
24084 return 0;
24086 _ACEOF
24087 rm -f conftest.$ac_objext
24088 if { (ac_try="$ac_compile"
24089 case "(($ac_try" in
24090 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24091 *) ac_try_echo=$ac_try;;
24092 esac
24093 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24094 (eval "$ac_compile") 2>conftest.er1
24095 ac_status=$?
24096 grep -v '^ *+' conftest.er1 >conftest.err
24097 rm -f conftest.er1
24098 cat conftest.err >&5
24099 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24100 (exit $ac_status); } && {
24101 test -z "$ac_c_werror_flag" ||
24102 test ! -s conftest.err
24103 } && test -s conftest.$ac_objext; then
24104 emacs_cv_c_restrict_arr=yes
24105 else
24106 echo "$as_me: failed program was:" >&5
24107 sed 's/^/| /' conftest.$ac_ext >&5
24109 emacs_cv_c_restrict_arr=no
24112 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
24114 { echo "$as_me:$LINENO: result: $emacs_cv_c_restrict_arr" >&5
24115 echo "${ECHO_T}$emacs_cv_c_restrict_arr" >&6; }
24116 if test "$emacs_cv_c_restrict_arr" = yes; then
24118 cat >>confdefs.h <<\_ACEOF
24119 #define __restrict_arr __restrict
24120 _ACEOF
24126 # Set up the CFLAGS for real compilation, so we can substitute it.
24127 CFLAGS="$REAL_CFLAGS"
24128 CPPFLAGS="$REAL_CPPFLAGS"
24130 #### Find out which version of Emacs this is.
24131 version=`grep 'defconst[ ]*emacs-version' ${srcdir}/lisp/version.el \
24132 | sed -e 's/^[^"]*"\([^"]*\)".*$/\1/'`
24133 if test x"${version}" = x; then
24134 { { echo "$as_me:$LINENO: error: can't find current emacs version in \`${srcdir}/lisp/version.el'." >&5
24135 echo "$as_me: error: can't find current emacs version in \`${srcdir}/lisp/version.el'." >&2;}
24136 { (exit 1); exit 1; }; }
24139 ### Specify what sort of things we'll be editing into Makefile and config.h.
24140 ### Use configuration here uncanonicalized to avoid exceeding size limits.
24184 cat >>confdefs.h <<_ACEOF
24185 #define EMACS_CONFIGURATION "${canonical}"
24186 _ACEOF
24189 cat >>confdefs.h <<_ACEOF
24190 #define EMACS_CONFIG_OPTIONS "${ac_configure_args}"
24191 _ACEOF
24194 cat >>confdefs.h <<_ACEOF
24195 #define config_machfile "${machfile}"
24196 _ACEOF
24199 cat >>confdefs.h <<_ACEOF
24200 #define config_opsysfile "${opsysfile}"
24201 _ACEOF
24204 cat >>confdefs.h <<_ACEOF
24205 #define LD_SWITCH_X_SITE ${LD_SWITCH_X_SITE}
24206 _ACEOF
24209 cat >>confdefs.h <<_ACEOF
24210 #define LD_SWITCH_X_SITE_AUX ${LD_SWITCH_X_SITE_AUX}
24211 _ACEOF
24214 cat >>confdefs.h <<_ACEOF
24215 #define C_SWITCH_X_SITE ${C_SWITCH_X_SITE}
24216 _ACEOF
24219 cat >>confdefs.h <<_ACEOF
24220 #define UNEXEC_SRC ${UNEXEC_SRC}
24221 _ACEOF
24224 if test "${HAVE_X_WINDOWS}" = "yes" ; then
24226 cat >>confdefs.h <<\_ACEOF
24227 #define HAVE_X_WINDOWS 1
24228 _ACEOF
24231 if test "${USE_X_TOOLKIT}" != "none" ; then
24233 cat >>confdefs.h <<\_ACEOF
24234 #define USE_X_TOOLKIT 1
24235 _ACEOF
24237 if test "${USE_X_TOOLKIT}" = "LUCID"; then
24239 cat >>confdefs.h <<\_ACEOF
24240 #define USE_LUCID 1
24241 _ACEOF
24243 elif test "${USE_X_TOOLKIT}" = "MOTIF"; then
24245 cat >>confdefs.h <<\_ACEOF
24246 #define USE_MOTIF 1
24247 _ACEOF
24251 if test "${HAVE_X11}" = "yes" ; then
24253 cat >>confdefs.h <<\_ACEOF
24254 #define HAVE_X11 1
24255 _ACEOF
24258 if test "${HAVE_MENUS}" = "yes" ; then
24260 cat >>confdefs.h <<\_ACEOF
24261 #define HAVE_MENUS 1
24262 _ACEOF
24265 if test "${GNU_MALLOC}" = "yes" ; then
24267 cat >>confdefs.h <<\_ACEOF
24268 #define GNU_MALLOC 1
24269 _ACEOF
24272 if test "${REL_ALLOC}" = "yes" ; then
24274 cat >>confdefs.h <<\_ACEOF
24275 #define REL_ALLOC 1
24276 _ACEOF
24285 #### Report on what we decided to do.
24286 #### Report GTK as a toolkit, even if it doesn't use Xt.
24287 #### It makes printing result more understandable as using GTK sets
24288 #### toolkit_scroll_bars to yes by default.
24289 if test "${HAVE_GTK}" = "yes"; then
24290 USE_X_TOOLKIT=GTK
24293 echo "
24294 Configured for \`${canonical}'.
24296 Where should the build process find the source code? ${srcdir}
24297 What operating system and machine description files should Emacs use?
24298 \`${opsysfile}' and \`${machfile}'
24299 What compiler should emacs be built with? ${CC} ${CFLAGS}
24300 Should Emacs use the GNU version of malloc? ${GNU_MALLOC}${GNU_MALLOC_reason}
24301 Should Emacs use a relocating allocator for buffers? ${REL_ALLOC}
24302 Should Emacs use mmap(2) for buffer allocation? $use_mmap_for_buffers
24303 What window system should Emacs use? ${window_system}
24304 What toolkit should Emacs use? ${USE_X_TOOLKIT}"
24306 if test -n "${x_includes}"; then
24307 echo " Where do we find X Windows header files? ${x_includes}"
24308 else
24309 echo " Where do we find X Windows header files? Standard dirs"
24311 if test -n "${x_libraries}"; then
24312 echo " Where do we find X Windows libraries? ${x_libraries}"
24313 else
24314 echo " Where do we find X Windows libraries? Standard dirs"
24317 echo " Does Emacs use -lXaw3d? ${HAVE_XAW3D}"
24318 echo " Does Emacs use -lXpm? ${HAVE_XPM}"
24319 echo " Does Emacs use -ljpeg? ${HAVE_JPEG}"
24320 echo " Does Emacs use -ltiff? ${HAVE_TIFF}"
24321 echo " Does Emacs use a gif library? ${HAVE_GIF} $ac_gif_lib_name"
24322 echo " Does Emacs use -lpng? ${HAVE_PNG}"
24323 echo " Does Emacs use -lrsvg-2? ${HAVE_RSVG}"
24324 echo " Does Emacs use -lgpm? ${HAVE_GPM}"
24325 echo " Does Emacs use -ldbus? ${HAVE_DBUS}"
24327 echo " Does Emacs use -lfreetype? ${HAVE_FREETYPE}"
24328 echo " Does Emacs use -lm17n-flt? ${HAVE_M17N_FLT}"
24329 echo " Does Emacs use -lotf? ${HAVE_LIBOTF}"
24330 echo " Does Emacs use -lxft? ${HAVE_XFT}"
24332 echo " Does Emacs use toolkit scroll bars? ${USE_TOOLKIT_SCROLL_BARS}"
24333 echo
24335 if test $USE_XASSERTS = yes; then
24336 echo " Compiling with asserts turned on."
24337 CPPFLAGS="$CPPFLAGS -DXASSERTS=1"
24340 echo
24342 if test "$USE_X_TOOLKIT" = GTK; then
24343 case "$canonical" in
24344 *cygwin*)
24345 echo "There are known problems with Emacs and Gtk+ on cygwin, so you
24346 will probably get a crash on startup. If this happens, please use another
24347 toolkit for Emacs. See etc/PROBLEMS for more information."
24349 esac
24352 if test "$HAVE_NS" = "yes"; then
24353 echo
24354 echo "You must run \"make install\" in order to test the built application.
24355 The installed application will go to nextstep/Emacs.app and can be
24356 run or moved from there."
24357 if test "$EN_NS_SELF_CONTAINED" = "yes"; then
24358 echo "The application will be fully self-contained."
24359 else
24360 echo "The lisp resources for the application will be installed under ${prefix}.
24361 You may need to run \"make install\" with sudo. The application will fail
24362 to run if these resources are not installed."
24364 echo
24367 if test "$HAVE_DBUS" = yes && test "${opsys}" != "gnu-linux"; then
24368 echo "D-Bus integration has been tested for GNU/Linux only."
24369 echo
24373 # Remove any trailing slashes in these variables.
24374 test "${prefix}" != NONE &&
24375 prefix=`echo "${prefix}" | sed 's,\([^/]\)/*$,\1,'`
24376 test "${exec_prefix}" != NONE &&
24377 exec_prefix=`echo "${exec_prefix}" | sed 's,\([^/]\)/*$,\1,'`
24379 # Now get this: Some word that is part of the ${srcdir} directory name
24380 # or the ${configuration} value might, just might, happen to be an
24381 # identifier like `sun4' or `i386' or something, and be predefined by
24382 # the C preprocessor to some helpful value like 1, or maybe the empty
24383 # string. Needless to say consequent macro substitutions are less
24384 # than conducive to the makefile finding the correct directory.
24385 cpp_undefs="`echo $srcdir $configuration $canonical |
24386 sed -e 's/[^a-zA-Z0-9_]/ /g' -e 's/^/ /' -e 's/ *$//' \
24387 -e 's/ */ -U/g' -e 's/-U[0-9][^ ]*//g'`"
24389 ## Check if the C preprocessor will convert `..' to `. .'. If so, set
24390 ## CPP_NEED_TRADITIONAL to `yes' so that the code to generate Makefile
24391 ## from Makefile.c can correctly provide the arg `-traditional' to the
24392 ## C preprocessor.
24394 cat >conftest.$ac_ext <<_ACEOF
24395 /* confdefs.h. */
24396 _ACEOF
24397 cat confdefs.h >>conftest.$ac_ext
24398 cat >>conftest.$ac_ext <<_ACEOF
24399 /* end confdefs.h. */
24400 yes..yes
24401 _ACEOF
24402 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
24403 $EGREP "yes..yes" >/dev/null 2>&1; then
24404 CPP_NEED_TRADITIONAL=no
24405 else
24406 CPP_NEED_TRADITIONAL=yes
24408 rm -f conftest*
24411 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"
24413 ac_config_commands="$ac_config_commands default"
24415 cat >confcache <<\_ACEOF
24416 # This file is a shell script that caches the results of configure
24417 # tests run on this system so they can be shared between configure
24418 # scripts and configure runs, see configure's option --config-cache.
24419 # It is not useful on other systems. If it contains results you don't
24420 # want to keep, you may remove or edit it.
24422 # config.status only pays attention to the cache file if you give it
24423 # the --recheck option to rerun configure.
24425 # `ac_cv_env_foo' variables (set or unset) will be overridden when
24426 # loading this file, other *unset* `ac_cv_foo' will be assigned the
24427 # following values.
24429 _ACEOF
24431 # The following way of writing the cache mishandles newlines in values,
24432 # but we know of no workaround that is simple, portable, and efficient.
24433 # So, we kill variables containing newlines.
24434 # Ultrix sh set writes to stderr and can't be redirected directly,
24435 # and sets the high bit in the cache file unless we assign to the vars.
24437 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
24438 eval ac_val=\$$ac_var
24439 case $ac_val in #(
24440 *${as_nl}*)
24441 case $ac_var in #(
24442 *_cv_*) { echo "$as_me:$LINENO: WARNING: Cache variable $ac_var contains a newline." >&5
24443 echo "$as_me: WARNING: Cache variable $ac_var contains a newline." >&2;} ;;
24444 esac
24445 case $ac_var in #(
24446 _ | IFS | as_nl) ;; #(
24447 *) $as_unset $ac_var ;;
24448 esac ;;
24449 esac
24450 done
24452 (set) 2>&1 |
24453 case $as_nl`(ac_space=' '; set) 2>&1` in #(
24454 *${as_nl}ac_space=\ *)
24455 # `set' does not quote correctly, so add quotes (double-quote
24456 # substitution turns \\\\ into \\, and sed turns \\ into \).
24457 sed -n \
24458 "s/'/'\\\\''/g;
24459 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
24460 ;; #(
24462 # `set' quotes correctly as required by POSIX, so do not add quotes.
24463 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
24465 esac |
24466 sort
24468 sed '
24469 /^ac_cv_env_/b end
24470 t clear
24471 :clear
24472 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
24473 t end
24474 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
24475 :end' >>confcache
24476 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
24477 if test -w "$cache_file"; then
24478 test "x$cache_file" != "x/dev/null" &&
24479 { echo "$as_me:$LINENO: updating cache $cache_file" >&5
24480 echo "$as_me: updating cache $cache_file" >&6;}
24481 cat confcache >$cache_file
24482 else
24483 { echo "$as_me:$LINENO: not updating unwritable cache $cache_file" >&5
24484 echo "$as_me: not updating unwritable cache $cache_file" >&6;}
24487 rm -f confcache
24489 test "x$prefix" = xNONE && prefix=$ac_default_prefix
24490 # Let make expand exec_prefix.
24491 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
24493 DEFS=-DHAVE_CONFIG_H
24495 ac_libobjs=
24496 ac_ltlibobjs=
24497 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
24498 # 1. Remove the extension, and $U if already installed.
24499 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
24500 ac_i=`echo "$ac_i" | sed "$ac_script"`
24501 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
24502 # will be set to the directory where LIBOBJS objects are built.
24503 ac_libobjs="$ac_libobjs \${LIBOBJDIR}$ac_i\$U.$ac_objext"
24504 ac_ltlibobjs="$ac_ltlibobjs \${LIBOBJDIR}$ac_i"'$U.lo'
24505 done
24506 LIBOBJS=$ac_libobjs
24508 LTLIBOBJS=$ac_ltlibobjs
24512 : ${CONFIG_STATUS=./config.status}
24513 ac_clean_files_save=$ac_clean_files
24514 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
24515 { echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
24516 echo "$as_me: creating $CONFIG_STATUS" >&6;}
24517 cat >$CONFIG_STATUS <<_ACEOF
24518 #! $SHELL
24519 # Generated by $as_me.
24520 # Run this file to recreate the current configuration.
24521 # Compiler output produced by configure, useful for debugging
24522 # configure, is in config.log if it exists.
24524 debug=false
24525 ac_cs_recheck=false
24526 ac_cs_silent=false
24527 SHELL=\${CONFIG_SHELL-$SHELL}
24528 _ACEOF
24530 cat >>$CONFIG_STATUS <<\_ACEOF
24531 ## --------------------- ##
24532 ## M4sh Initialization. ##
24533 ## --------------------- ##
24535 # Be more Bourne compatible
24536 DUALCASE=1; export DUALCASE # for MKS sh
24537 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
24538 emulate sh
24539 NULLCMD=:
24540 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
24541 # is contrary to our usage. Disable this feature.
24542 alias -g '${1+"$@"}'='"$@"'
24543 setopt NO_GLOB_SUBST
24544 else
24545 case `(set -o) 2>/dev/null` in
24546 *posix*) set -o posix ;;
24547 esac
24554 # PATH needs CR
24555 # Avoid depending upon Character Ranges.
24556 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
24557 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
24558 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
24559 as_cr_digits='0123456789'
24560 as_cr_alnum=$as_cr_Letters$as_cr_digits
24562 # The user is always right.
24563 if test "${PATH_SEPARATOR+set}" != set; then
24564 echo "#! /bin/sh" >conf$$.sh
24565 echo "exit 0" >>conf$$.sh
24566 chmod +x conf$$.sh
24567 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
24568 PATH_SEPARATOR=';'
24569 else
24570 PATH_SEPARATOR=:
24572 rm -f conf$$.sh
24575 # Support unset when possible.
24576 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
24577 as_unset=unset
24578 else
24579 as_unset=false
24583 # IFS
24584 # We need space, tab and new line, in precisely that order. Quoting is
24585 # there to prevent editors from complaining about space-tab.
24586 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
24587 # splitting by setting IFS to empty value.)
24588 as_nl='
24590 IFS=" "" $as_nl"
24592 # Find who we are. Look in the path if we contain no directory separator.
24593 case $0 in
24594 *[\\/]* ) as_myself=$0 ;;
24595 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
24596 for as_dir in $PATH
24598 IFS=$as_save_IFS
24599 test -z "$as_dir" && as_dir=.
24600 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
24601 done
24602 IFS=$as_save_IFS
24605 esac
24606 # We did not find ourselves, most probably we were run as `sh COMMAND'
24607 # in which case we are not to be found in the path.
24608 if test "x$as_myself" = x; then
24609 as_myself=$0
24611 if test ! -f "$as_myself"; then
24612 echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
24613 { (exit 1); exit 1; }
24616 # Work around bugs in pre-3.0 UWIN ksh.
24617 for as_var in ENV MAIL MAILPATH
24618 do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
24619 done
24620 PS1='$ '
24621 PS2='> '
24622 PS4='+ '
24624 # NLS nuisances.
24625 for as_var in \
24626 LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
24627 LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
24628 LC_TELEPHONE LC_TIME
24630 if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
24631 eval $as_var=C; export $as_var
24632 else
24633 ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
24635 done
24637 # Required to use basename.
24638 if expr a : '\(a\)' >/dev/null 2>&1 &&
24639 test "X`expr 00001 : '.*\(...\)'`" = X001; then
24640 as_expr=expr
24641 else
24642 as_expr=false
24645 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
24646 as_basename=basename
24647 else
24648 as_basename=false
24652 # Name of the executable.
24653 as_me=`$as_basename -- "$0" ||
24654 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
24655 X"$0" : 'X\(//\)$' \| \
24656 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
24657 echo X/"$0" |
24658 sed '/^.*\/\([^/][^/]*\)\/*$/{
24659 s//\1/
24662 /^X\/\(\/\/\)$/{
24663 s//\1/
24666 /^X\/\(\/\).*/{
24667 s//\1/
24670 s/.*/./; q'`
24672 # CDPATH.
24673 $as_unset CDPATH
24677 as_lineno_1=$LINENO
24678 as_lineno_2=$LINENO
24679 test "x$as_lineno_1" != "x$as_lineno_2" &&
24680 test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2" || {
24682 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
24683 # uniformly replaced by the line number. The first 'sed' inserts a
24684 # line-number line after each line using $LINENO; the second 'sed'
24685 # does the real work. The second script uses 'N' to pair each
24686 # line-number line with the line containing $LINENO, and appends
24687 # trailing '-' during substitution so that $LINENO is not a special
24688 # case at line end.
24689 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
24690 # scripts with optimization help from Paolo Bonzini. Blame Lee
24691 # E. McMahon (1931-1989) for sed's syntax. :-)
24692 sed -n '
24694 /[$]LINENO/=
24695 ' <$as_myself |
24696 sed '
24697 s/[$]LINENO.*/&-/
24698 t lineno
24700 :lineno
24702 :loop
24703 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
24704 t loop
24705 s/-\n.*//
24706 ' >$as_me.lineno &&
24707 chmod +x "$as_me.lineno" ||
24708 { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
24709 { (exit 1); exit 1; }; }
24711 # Don't try to exec as it changes $[0], causing all sort of problems
24712 # (the dirname of $[0] is not the place where we might find the
24713 # original and so on. Autoconf is especially sensitive to this).
24714 . "./$as_me.lineno"
24715 # Exit status is that of the last command.
24716 exit
24720 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
24721 as_dirname=dirname
24722 else
24723 as_dirname=false
24726 ECHO_C= ECHO_N= ECHO_T=
24727 case `echo -n x` in
24728 -n*)
24729 case `echo 'x\c'` in
24730 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
24731 *) ECHO_C='\c';;
24732 esac;;
24734 ECHO_N='-n';;
24735 esac
24737 if expr a : '\(a\)' >/dev/null 2>&1 &&
24738 test "X`expr 00001 : '.*\(...\)'`" = X001; then
24739 as_expr=expr
24740 else
24741 as_expr=false
24744 rm -f conf$$ conf$$.exe conf$$.file
24745 if test -d conf$$.dir; then
24746 rm -f conf$$.dir/conf$$.file
24747 else
24748 rm -f conf$$.dir
24749 mkdir conf$$.dir
24751 echo >conf$$.file
24752 if ln -s conf$$.file conf$$ 2>/dev/null; then
24753 as_ln_s='ln -s'
24754 # ... but there are two gotchas:
24755 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
24756 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
24757 # In both cases, we have to default to `cp -p'.
24758 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
24759 as_ln_s='cp -p'
24760 elif ln conf$$.file conf$$ 2>/dev/null; then
24761 as_ln_s=ln
24762 else
24763 as_ln_s='cp -p'
24765 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
24766 rmdir conf$$.dir 2>/dev/null
24768 if mkdir -p . 2>/dev/null; then
24769 as_mkdir_p=:
24770 else
24771 test -d ./-p && rmdir ./-p
24772 as_mkdir_p=false
24775 if test -x / >/dev/null 2>&1; then
24776 as_test_x='test -x'
24777 else
24778 if ls -dL / >/dev/null 2>&1; then
24779 as_ls_L_option=L
24780 else
24781 as_ls_L_option=
24783 as_test_x='
24784 eval sh -c '\''
24785 if test -d "$1"; then
24786 test -d "$1/.";
24787 else
24788 case $1 in
24789 -*)set "./$1";;
24790 esac;
24791 case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in
24792 ???[sx]*):;;*)false;;esac;fi
24793 '\'' sh
24796 as_executable_p=$as_test_x
24798 # Sed expression to map a string onto a valid CPP name.
24799 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
24801 # Sed expression to map a string onto a valid variable name.
24802 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
24805 exec 6>&1
24807 # Save the log message, to keep $[0] and so on meaningful, and to
24808 # report actual input values of CONFIG_FILES etc. instead of their
24809 # values after options handling.
24810 ac_log="
24811 This file was extended by emacs $as_me 23.0.60, which was
24812 generated by GNU Autoconf 2.61. Invocation command line was
24814 CONFIG_FILES = $CONFIG_FILES
24815 CONFIG_HEADERS = $CONFIG_HEADERS
24816 CONFIG_LINKS = $CONFIG_LINKS
24817 CONFIG_COMMANDS = $CONFIG_COMMANDS
24818 $ $0 $@
24820 on `(hostname || uname -n) 2>/dev/null | sed 1q`
24823 _ACEOF
24825 cat >>$CONFIG_STATUS <<_ACEOF
24826 # Files that config.status was made for.
24827 config_files="$ac_config_files"
24828 config_headers="$ac_config_headers"
24829 config_commands="$ac_config_commands"
24831 _ACEOF
24833 cat >>$CONFIG_STATUS <<\_ACEOF
24834 ac_cs_usage="\
24835 \`$as_me' instantiates files from templates according to the
24836 current configuration.
24838 Usage: $0 [OPTIONS] [FILE]...
24840 -h, --help print this help, then exit
24841 -V, --version print version number and configuration settings, then exit
24842 -q, --quiet do not print progress messages
24843 -d, --debug don't remove temporary files
24844 --recheck update $as_me by reconfiguring in the same conditions
24845 --file=FILE[:TEMPLATE]
24846 instantiate the configuration file FILE
24847 --header=FILE[:TEMPLATE]
24848 instantiate the configuration header FILE
24850 Configuration files:
24851 $config_files
24853 Configuration headers:
24854 $config_headers
24856 Configuration commands:
24857 $config_commands
24859 Report bugs to <bug-autoconf@gnu.org>."
24861 _ACEOF
24862 cat >>$CONFIG_STATUS <<_ACEOF
24863 ac_cs_version="\\
24864 emacs config.status 23.0.60
24865 configured by $0, generated by GNU Autoconf 2.61,
24866 with options \\"`echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`\\"
24868 Copyright (C) 2006 Free Software Foundation, Inc.
24869 This config.status script is free software; the Free Software Foundation
24870 gives unlimited permission to copy, distribute and modify it."
24872 ac_pwd='$ac_pwd'
24873 srcdir='$srcdir'
24874 INSTALL='$INSTALL'
24875 _ACEOF
24877 cat >>$CONFIG_STATUS <<\_ACEOF
24878 # If no file are specified by the user, then we need to provide default
24879 # value. By we need to know if files were specified by the user.
24880 ac_need_defaults=:
24881 while test $# != 0
24883 case $1 in
24884 --*=*)
24885 ac_option=`expr "X$1" : 'X\([^=]*\)='`
24886 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
24887 ac_shift=:
24890 ac_option=$1
24891 ac_optarg=$2
24892 ac_shift=shift
24894 esac
24896 case $ac_option in
24897 # Handling of the options.
24898 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
24899 ac_cs_recheck=: ;;
24900 --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
24901 echo "$ac_cs_version"; exit ;;
24902 --debug | --debu | --deb | --de | --d | -d )
24903 debug=: ;;
24904 --file | --fil | --fi | --f )
24905 $ac_shift
24906 CONFIG_FILES="$CONFIG_FILES $ac_optarg"
24907 ac_need_defaults=false;;
24908 --header | --heade | --head | --hea )
24909 $ac_shift
24910 CONFIG_HEADERS="$CONFIG_HEADERS $ac_optarg"
24911 ac_need_defaults=false;;
24912 --he | --h)
24913 # Conflict between --help and --header
24914 { echo "$as_me: error: ambiguous option: $1
24915 Try \`$0 --help' for more information." >&2
24916 { (exit 1); exit 1; }; };;
24917 --help | --hel | -h )
24918 echo "$ac_cs_usage"; exit ;;
24919 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
24920 | -silent | --silent | --silen | --sile | --sil | --si | --s)
24921 ac_cs_silent=: ;;
24923 # This is an error.
24924 -*) { echo "$as_me: error: unrecognized option: $1
24925 Try \`$0 --help' for more information." >&2
24926 { (exit 1); exit 1; }; } ;;
24928 *) ac_config_targets="$ac_config_targets $1"
24929 ac_need_defaults=false ;;
24931 esac
24932 shift
24933 done
24935 ac_configure_extra_args=
24937 if $ac_cs_silent; then
24938 exec 6>/dev/null
24939 ac_configure_extra_args="$ac_configure_extra_args --silent"
24942 _ACEOF
24943 cat >>$CONFIG_STATUS <<_ACEOF
24944 if \$ac_cs_recheck; then
24945 echo "running CONFIG_SHELL=$SHELL $SHELL $0 "$ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6
24946 CONFIG_SHELL=$SHELL
24947 export CONFIG_SHELL
24948 exec $SHELL "$0"$ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
24951 _ACEOF
24952 cat >>$CONFIG_STATUS <<\_ACEOF
24953 exec 5>>config.log
24955 echo
24956 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
24957 ## Running $as_me. ##
24958 _ASBOX
24959 echo "$ac_log"
24960 } >&5
24962 _ACEOF
24963 cat >>$CONFIG_STATUS <<_ACEOF
24965 # INIT-COMMANDS
24967 GCC="$GCC" NON_GNU_CPP="$NON_GNU_CPP" CPP="$CPP" CPP_NEED_TRADITIONAL="$CPP_NEED_TRADITIONAL" CPPFLAGS="$CPPFLAGS" cpp_undefs="$cpp_undefs"
24969 _ACEOF
24971 cat >>$CONFIG_STATUS <<\_ACEOF
24973 # Handling of arguments.
24974 for ac_config_target in $ac_config_targets
24976 case $ac_config_target in
24977 "src/config.h") CONFIG_HEADERS="$CONFIG_HEADERS src/config.h:src/config.in" ;;
24978 "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
24979 "lib-src/Makefile.c") CONFIG_FILES="$CONFIG_FILES lib-src/Makefile.c:lib-src/Makefile.in" ;;
24980 "oldXMenu/Makefile") CONFIG_FILES="$CONFIG_FILES oldXMenu/Makefile" ;;
24981 "doc/emacs/Makefile") CONFIG_FILES="$CONFIG_FILES doc/emacs/Makefile" ;;
24982 "doc/misc/Makefile") CONFIG_FILES="$CONFIG_FILES doc/misc/Makefile" ;;
24983 "doc/lispintro/Makefile") CONFIG_FILES="$CONFIG_FILES doc/lispintro/Makefile" ;;
24984 "doc/lispref/Makefile") CONFIG_FILES="$CONFIG_FILES doc/lispref/Makefile" ;;
24985 "src/Makefile.c") CONFIG_FILES="$CONFIG_FILES src/Makefile.c:src/Makefile.in" ;;
24986 "lwlib/Makefile") CONFIG_FILES="$CONFIG_FILES lwlib/Makefile" ;;
24987 "lisp/Makefile") CONFIG_FILES="$CONFIG_FILES lisp/Makefile" ;;
24988 "leim/Makefile") CONFIG_FILES="$CONFIG_FILES leim/Makefile" ;;
24989 "default") CONFIG_COMMANDS="$CONFIG_COMMANDS default" ;;
24991 *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
24992 echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
24993 { (exit 1); exit 1; }; };;
24994 esac
24995 done
24998 # If the user did not use the arguments to specify the items to instantiate,
24999 # then the envvar interface is used. Set only those that are not.
25000 # We use the long form for the default assignment because of an extremely
25001 # bizarre bug on SunOS 4.1.3.
25002 if $ac_need_defaults; then
25003 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
25004 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
25005 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
25008 # Have a temporary directory for convenience. Make it in the build tree
25009 # simply because there is no reason against having it here, and in addition,
25010 # creating and moving files from /tmp can sometimes cause problems.
25011 # Hook for its removal unless debugging.
25012 # Note that there is a small window in which the directory will not be cleaned:
25013 # after its creation but before its name has been assigned to `$tmp'.
25014 $debug ||
25016 tmp=
25017 trap 'exit_status=$?
25018 { test -z "$tmp" || test ! -d "$tmp" || rm -fr "$tmp"; } && exit $exit_status
25020 trap '{ (exit 1); exit 1; }' 1 2 13 15
25022 # Create a (secure) tmp directory for tmp files.
25025 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
25026 test -n "$tmp" && test -d "$tmp"
25027 } ||
25029 tmp=./conf$$-$RANDOM
25030 (umask 077 && mkdir "$tmp")
25031 } ||
25033 echo "$me: cannot create a temporary directory in ." >&2
25034 { (exit 1); exit 1; }
25038 # Set up the sed scripts for CONFIG_FILES section.
25041 # No need to generate the scripts if there are no CONFIG_FILES.
25042 # This happens for instance when ./config.status config.h
25043 if test -n "$CONFIG_FILES"; then
25045 _ACEOF
25049 ac_delim='%!_!# '
25050 for ac_last_try in false false false false false :; do
25051 cat >conf$$subs.sed <<_ACEOF
25052 SHELL!$SHELL$ac_delim
25053 PATH_SEPARATOR!$PATH_SEPARATOR$ac_delim
25054 PACKAGE_NAME!$PACKAGE_NAME$ac_delim
25055 PACKAGE_TARNAME!$PACKAGE_TARNAME$ac_delim
25056 PACKAGE_VERSION!$PACKAGE_VERSION$ac_delim
25057 PACKAGE_STRING!$PACKAGE_STRING$ac_delim
25058 PACKAGE_BUGREPORT!$PACKAGE_BUGREPORT$ac_delim
25059 exec_prefix!$exec_prefix$ac_delim
25060 prefix!$prefix$ac_delim
25061 program_transform_name!$program_transform_name$ac_delim
25062 bindir!$bindir$ac_delim
25063 sbindir!$sbindir$ac_delim
25064 libexecdir!$libexecdir$ac_delim
25065 datarootdir!$datarootdir$ac_delim
25066 datadir!$datadir$ac_delim
25067 sysconfdir!$sysconfdir$ac_delim
25068 sharedstatedir!$sharedstatedir$ac_delim
25069 localstatedir!$localstatedir$ac_delim
25070 includedir!$includedir$ac_delim
25071 oldincludedir!$oldincludedir$ac_delim
25072 docdir!$docdir$ac_delim
25073 infodir!$infodir$ac_delim
25074 htmldir!$htmldir$ac_delim
25075 dvidir!$dvidir$ac_delim
25076 pdfdir!$pdfdir$ac_delim
25077 psdir!$psdir$ac_delim
25078 libdir!$libdir$ac_delim
25079 localedir!$localedir$ac_delim
25080 mandir!$mandir$ac_delim
25081 DEFS!$DEFS$ac_delim
25082 ECHO_C!$ECHO_C$ac_delim
25083 ECHO_N!$ECHO_N$ac_delim
25084 ECHO_T!$ECHO_T$ac_delim
25085 LIBS!$LIBS$ac_delim
25086 build_alias!$build_alias$ac_delim
25087 host_alias!$host_alias$ac_delim
25088 target_alias!$target_alias$ac_delim
25089 MAINT!$MAINT$ac_delim
25090 build!$build$ac_delim
25091 build_cpu!$build_cpu$ac_delim
25092 build_vendor!$build_vendor$ac_delim
25093 build_os!$build_os$ac_delim
25094 host!$host$ac_delim
25095 host_cpu!$host_cpu$ac_delim
25096 host_vendor!$host_vendor$ac_delim
25097 host_os!$host_os$ac_delim
25098 CC!$CC$ac_delim
25099 CFLAGS!$CFLAGS$ac_delim
25100 LDFLAGS!$LDFLAGS$ac_delim
25101 CPPFLAGS!$CPPFLAGS$ac_delim
25102 ac_ct_CC!$ac_ct_CC$ac_delim
25103 EXEEXT!$EXEEXT$ac_delim
25104 OBJEXT!$OBJEXT$ac_delim
25105 CPP!$CPP$ac_delim
25106 GREP!$GREP$ac_delim
25107 EGREP!$EGREP$ac_delim
25108 LN_S!$LN_S$ac_delim
25109 INSTALL_PROGRAM!$INSTALL_PROGRAM$ac_delim
25110 INSTALL_SCRIPT!$INSTALL_SCRIPT$ac_delim
25111 INSTALL_DATA!$INSTALL_DATA$ac_delim
25112 RANLIB!$RANLIB$ac_delim
25113 INSTALL_INFO!$INSTALL_INFO$ac_delim
25114 GZIP_PROG!$GZIP_PROG$ac_delim
25115 MAKEINFO!$MAKEINFO$ac_delim
25116 LIBSOUND!$LIBSOUND$ac_delim
25117 PKG_CONFIG!$PKG_CONFIG$ac_delim
25118 ALSA_CFLAGS!$ALSA_CFLAGS$ac_delim
25119 ALSA_LIBS!$ALSA_LIBS$ac_delim
25120 CFLAGS_SOUND!$CFLAGS_SOUND$ac_delim
25121 SET_MAKE!$SET_MAKE$ac_delim
25122 XMKMF!$XMKMF$ac_delim
25123 HAVE_XSERVER!$HAVE_XSERVER$ac_delim
25124 RSVG_CFLAGS!$RSVG_CFLAGS$ac_delim
25125 RSVG_LIBS!$RSVG_LIBS$ac_delim
25126 GTK_CFLAGS!$GTK_CFLAGS$ac_delim
25127 GTK_LIBS!$GTK_LIBS$ac_delim
25128 DBUS_CFLAGS!$DBUS_CFLAGS$ac_delim
25129 DBUS_LIBS!$DBUS_LIBS$ac_delim
25130 XFT_CFLAGS!$XFT_CFLAGS$ac_delim
25131 XFT_LIBS!$XFT_LIBS$ac_delim
25132 FREETYPE_CFLAGS!$FREETYPE_CFLAGS$ac_delim
25133 FREETYPE_LIBS!$FREETYPE_LIBS$ac_delim
25134 FONTCONFIG_CFLAGS!$FONTCONFIG_CFLAGS$ac_delim
25135 FONTCONFIG_LIBS!$FONTCONFIG_LIBS$ac_delim
25136 LIBOTF_CFLAGS!$LIBOTF_CFLAGS$ac_delim
25137 LIBOTF_LIBS!$LIBOTF_LIBS$ac_delim
25138 M17N_FLT_CFLAGS!$M17N_FLT_CFLAGS$ac_delim
25139 M17N_FLT_LIBS!$M17N_FLT_LIBS$ac_delim
25140 ALLOCA!$ALLOCA$ac_delim
25141 liblockfile!$liblockfile$ac_delim
25142 LIBOBJS!$LIBOBJS$ac_delim
25143 NEED_SETGID!$NEED_SETGID$ac_delim
25144 KMEM_GROUP!$KMEM_GROUP$ac_delim
25145 GETLOADAVG_LIBS!$GETLOADAVG_LIBS$ac_delim
25146 GETOPT_H!$GETOPT_H$ac_delim
25147 GETOPTOBJS!$GETOPTOBJS$ac_delim
25148 version!$version$ac_delim
25149 _ACEOF
25151 if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 97; then
25152 break
25153 elif $ac_last_try; then
25154 { { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
25155 echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
25156 { (exit 1); exit 1; }; }
25157 else
25158 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
25160 done
25162 ac_eof=`sed -n '/^CEOF[0-9]*$/s/CEOF/0/p' conf$$subs.sed`
25163 if test -n "$ac_eof"; then
25164 ac_eof=`echo "$ac_eof" | sort -nru | sed 1q`
25165 ac_eof=`expr $ac_eof + 1`
25168 cat >>$CONFIG_STATUS <<_ACEOF
25169 cat >"\$tmp/subs-1.sed" <<\CEOF$ac_eof
25170 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
25171 _ACEOF
25172 sed '
25173 s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g
25174 s/^/s,@/; s/!/@,|#_!!_#|/
25177 s/'"$ac_delim"'$/,g/; t
25178 s/$/\\/; p
25179 N; s/^.*\n//; s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g; b n
25180 ' >>$CONFIG_STATUS <conf$$subs.sed
25181 rm -f conf$$subs.sed
25182 cat >>$CONFIG_STATUS <<_ACEOF
25183 CEOF$ac_eof
25184 _ACEOF
25187 ac_delim='%!_!# '
25188 for ac_last_try in false false false false false :; do
25189 cat >conf$$subs.sed <<_ACEOF
25190 configuration!$configuration$ac_delim
25191 canonical!$canonical$ac_delim
25192 srcdir!$srcdir$ac_delim
25193 lispdir!$lispdir$ac_delim
25194 locallisppath!$locallisppath$ac_delim
25195 lisppath!$lisppath$ac_delim
25196 x_default_search_path!$x_default_search_path$ac_delim
25197 etcdir!$etcdir$ac_delim
25198 archlibdir!$archlibdir$ac_delim
25199 bitmapdir!$bitmapdir$ac_delim
25200 gamedir!$gamedir$ac_delim
25201 gameuser!$gameuser$ac_delim
25202 c_switch_system!$c_switch_system$ac_delim
25203 c_switch_machine!$c_switch_machine$ac_delim
25204 LD_SWITCH_X_SITE!$LD_SWITCH_X_SITE$ac_delim
25205 LD_SWITCH_X_SITE_AUX!$LD_SWITCH_X_SITE_AUX$ac_delim
25206 C_SWITCH_X_SITE!$C_SWITCH_X_SITE$ac_delim
25207 X_TOOLKIT_TYPE!$X_TOOLKIT_TYPE$ac_delim
25208 machfile!$machfile$ac_delim
25209 opsysfile!$opsysfile$ac_delim
25210 ns_appdir!$ns_appdir$ac_delim
25211 ns_appbindir!$ns_appbindir$ac_delim
25212 ns_appresdir!$ns_appresdir$ac_delim
25213 ns_appsrc!$ns_appsrc$ac_delim
25214 GNUSTEP_MAKEFILES!$GNUSTEP_MAKEFILES$ac_delim
25215 GNUSTEP_SYSTEM_HEADERS!$GNUSTEP_SYSTEM_HEADERS$ac_delim
25216 GNUSTEP_SYSTEM_LIBRARIES!$GNUSTEP_SYSTEM_LIBRARIES$ac_delim
25217 GNU_OBJC_CFLAGS!$GNU_OBJC_CFLAGS$ac_delim
25218 LIB_SRC_EXTRA_INSTALLABLES!$LIB_SRC_EXTRA_INSTALLABLES$ac_delim
25219 LTLIBOBJS!$LTLIBOBJS$ac_delim
25220 _ACEOF
25222 if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 30; then
25223 break
25224 elif $ac_last_try; then
25225 { { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
25226 echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
25227 { (exit 1); exit 1; }; }
25228 else
25229 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
25231 done
25233 ac_eof=`sed -n '/^CEOF[0-9]*$/s/CEOF/0/p' conf$$subs.sed`
25234 if test -n "$ac_eof"; then
25235 ac_eof=`echo "$ac_eof" | sort -nru | sed 1q`
25236 ac_eof=`expr $ac_eof + 1`
25239 cat >>$CONFIG_STATUS <<_ACEOF
25240 cat >"\$tmp/subs-2.sed" <<\CEOF$ac_eof
25241 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b end
25242 _ACEOF
25243 sed '
25244 s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g
25245 s/^/s,@/; s/!/@,|#_!!_#|/
25248 s/'"$ac_delim"'$/,g/; t
25249 s/$/\\/; p
25250 N; s/^.*\n//; s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g; b n
25251 ' >>$CONFIG_STATUS <conf$$subs.sed
25252 rm -f conf$$subs.sed
25253 cat >>$CONFIG_STATUS <<_ACEOF
25254 :end
25255 s/|#_!!_#|//g
25256 CEOF$ac_eof
25257 _ACEOF
25260 # VPATH may cause trouble with some makes, so we remove $(srcdir),
25261 # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
25262 # trailing colons and then remove the whole line if VPATH becomes empty
25263 # (actually we leave an empty line to preserve line numbers).
25264 if test "x$srcdir" = x.; then
25265 ac_vpsub='/^[ ]*VPATH[ ]*=/{
25266 s/:*\$(srcdir):*/:/
25267 s/:*\${srcdir}:*/:/
25268 s/:*@srcdir@:*/:/
25269 s/^\([^=]*=[ ]*\):*/\1/
25270 s/:*$//
25271 s/^[^=]*=[ ]*$//
25275 cat >>$CONFIG_STATUS <<\_ACEOF
25276 fi # test -n "$CONFIG_FILES"
25279 for ac_tag in :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS
25281 case $ac_tag in
25282 :[FHLC]) ac_mode=$ac_tag; continue;;
25283 esac
25284 case $ac_mode$ac_tag in
25285 :[FHL]*:*);;
25286 :L* | :C*:*) { { echo "$as_me:$LINENO: error: Invalid tag $ac_tag." >&5
25287 echo "$as_me: error: Invalid tag $ac_tag." >&2;}
25288 { (exit 1); exit 1; }; };;
25289 :[FH]-) ac_tag=-:-;;
25290 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
25291 esac
25292 ac_save_IFS=$IFS
25293 IFS=:
25294 set x $ac_tag
25295 IFS=$ac_save_IFS
25296 shift
25297 ac_file=$1
25298 shift
25300 case $ac_mode in
25301 :L) ac_source=$1;;
25302 :[FH])
25303 ac_file_inputs=
25304 for ac_f
25306 case $ac_f in
25307 -) ac_f="$tmp/stdin";;
25308 *) # Look for the file first in the build tree, then in the source tree
25309 # (if the path is not absolute). The absolute path cannot be DOS-style,
25310 # because $ac_f cannot contain `:'.
25311 test -f "$ac_f" ||
25312 case $ac_f in
25313 [\\/$]*) false;;
25314 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
25315 esac ||
25316 { { echo "$as_me:$LINENO: error: cannot find input file: $ac_f" >&5
25317 echo "$as_me: error: cannot find input file: $ac_f" >&2;}
25318 { (exit 1); exit 1; }; };;
25319 esac
25320 ac_file_inputs="$ac_file_inputs $ac_f"
25321 done
25323 # Let's still pretend it is `configure' which instantiates (i.e., don't
25324 # use $as_me), people would be surprised to read:
25325 # /* config.h. Generated by config.status. */
25326 configure_input="Generated from "`IFS=:
25327 echo $* | sed 's|^[^:]*/||;s|:[^:]*/|, |g'`" by configure."
25328 if test x"$ac_file" != x-; then
25329 configure_input="$ac_file. $configure_input"
25330 { echo "$as_me:$LINENO: creating $ac_file" >&5
25331 echo "$as_me: creating $ac_file" >&6;}
25334 case $ac_tag in
25335 *:-:* | *:-) cat >"$tmp/stdin";;
25336 esac
25338 esac
25340 ac_dir=`$as_dirname -- "$ac_file" ||
25341 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
25342 X"$ac_file" : 'X\(//\)[^/]' \| \
25343 X"$ac_file" : 'X\(//\)$' \| \
25344 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
25345 echo X"$ac_file" |
25346 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
25347 s//\1/
25350 /^X\(\/\/\)[^/].*/{
25351 s//\1/
25354 /^X\(\/\/\)$/{
25355 s//\1/
25358 /^X\(\/\).*/{
25359 s//\1/
25362 s/.*/./; q'`
25363 { as_dir="$ac_dir"
25364 case $as_dir in #(
25365 -*) as_dir=./$as_dir;;
25366 esac
25367 test -d "$as_dir" || { $as_mkdir_p && mkdir -p "$as_dir"; } || {
25368 as_dirs=
25369 while :; do
25370 case $as_dir in #(
25371 *\'*) as_qdir=`echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #(
25372 *) as_qdir=$as_dir;;
25373 esac
25374 as_dirs="'$as_qdir' $as_dirs"
25375 as_dir=`$as_dirname -- "$as_dir" ||
25376 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
25377 X"$as_dir" : 'X\(//\)[^/]' \| \
25378 X"$as_dir" : 'X\(//\)$' \| \
25379 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
25380 echo X"$as_dir" |
25381 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
25382 s//\1/
25385 /^X\(\/\/\)[^/].*/{
25386 s//\1/
25389 /^X\(\/\/\)$/{
25390 s//\1/
25393 /^X\(\/\).*/{
25394 s//\1/
25397 s/.*/./; q'`
25398 test -d "$as_dir" && break
25399 done
25400 test -z "$as_dirs" || eval "mkdir $as_dirs"
25401 } || test -d "$as_dir" || { { echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5
25402 echo "$as_me: error: cannot create directory $as_dir" >&2;}
25403 { (exit 1); exit 1; }; }; }
25404 ac_builddir=.
25406 case "$ac_dir" in
25407 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
25409 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
25410 # A ".." for each directory in $ac_dir_suffix.
25411 ac_top_builddir_sub=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'`
25412 case $ac_top_builddir_sub in
25413 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
25414 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
25415 esac ;;
25416 esac
25417 ac_abs_top_builddir=$ac_pwd
25418 ac_abs_builddir=$ac_pwd$ac_dir_suffix
25419 # for backward compatibility:
25420 ac_top_builddir=$ac_top_build_prefix
25422 case $srcdir in
25423 .) # We are building in place.
25424 ac_srcdir=.
25425 ac_top_srcdir=$ac_top_builddir_sub
25426 ac_abs_top_srcdir=$ac_pwd ;;
25427 [\\/]* | ?:[\\/]* ) # Absolute name.
25428 ac_srcdir=$srcdir$ac_dir_suffix;
25429 ac_top_srcdir=$srcdir
25430 ac_abs_top_srcdir=$srcdir ;;
25431 *) # Relative name.
25432 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
25433 ac_top_srcdir=$ac_top_build_prefix$srcdir
25434 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
25435 esac
25436 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
25439 case $ac_mode in
25442 # CONFIG_FILE
25445 case $INSTALL in
25446 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
25447 *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
25448 esac
25449 _ACEOF
25451 cat >>$CONFIG_STATUS <<\_ACEOF
25452 # If the template does not know about datarootdir, expand it.
25453 # FIXME: This hack should be removed a few years after 2.60.
25454 ac_datarootdir_hack=; ac_datarootdir_seen=
25456 case `sed -n '/datarootdir/ {
25460 /@datadir@/p
25461 /@docdir@/p
25462 /@infodir@/p
25463 /@localedir@/p
25464 /@mandir@/p
25465 ' $ac_file_inputs` in
25466 *datarootdir*) ac_datarootdir_seen=yes;;
25467 *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
25468 { echo "$as_me:$LINENO: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
25469 echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
25470 _ACEOF
25471 cat >>$CONFIG_STATUS <<_ACEOF
25472 ac_datarootdir_hack='
25473 s&@datadir@&$datadir&g
25474 s&@docdir@&$docdir&g
25475 s&@infodir@&$infodir&g
25476 s&@localedir@&$localedir&g
25477 s&@mandir@&$mandir&g
25478 s&\\\${datarootdir}&$datarootdir&g' ;;
25479 esac
25480 _ACEOF
25482 # Neutralize VPATH when `$srcdir' = `.'.
25483 # Shell code in configure.ac might set extrasub.
25484 # FIXME: do we really want to maintain this feature?
25485 cat >>$CONFIG_STATUS <<_ACEOF
25486 sed "$ac_vpsub
25487 $extrasub
25488 _ACEOF
25489 cat >>$CONFIG_STATUS <<\_ACEOF
25491 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
25492 s&@configure_input@&$configure_input&;t t
25493 s&@top_builddir@&$ac_top_builddir_sub&;t t
25494 s&@srcdir@&$ac_srcdir&;t t
25495 s&@abs_srcdir@&$ac_abs_srcdir&;t t
25496 s&@top_srcdir@&$ac_top_srcdir&;t t
25497 s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
25498 s&@builddir@&$ac_builddir&;t t
25499 s&@abs_builddir@&$ac_abs_builddir&;t t
25500 s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
25501 s&@INSTALL@&$ac_INSTALL&;t t
25502 $ac_datarootdir_hack
25503 " $ac_file_inputs | sed -f "$tmp/subs-1.sed" | sed -f "$tmp/subs-2.sed" >$tmp/out
25505 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
25506 { ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out"`; test -n "$ac_out"; } &&
25507 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' "$tmp/out"`; test -z "$ac_out"; } &&
25508 { echo "$as_me:$LINENO: WARNING: $ac_file contains a reference to the variable \`datarootdir'
25509 which seems to be undefined. Please make sure it is defined." >&5
25510 echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
25511 which seems to be undefined. Please make sure it is defined." >&2;}
25513 rm -f "$tmp/stdin"
25514 case $ac_file in
25515 -) cat "$tmp/out"; rm -f "$tmp/out";;
25516 *) rm -f "$ac_file"; mv "$tmp/out" $ac_file;;
25517 esac
25521 # CONFIG_HEADER
25523 _ACEOF
25525 # Transform confdefs.h into a sed script `conftest.defines', that
25526 # substitutes the proper values into config.h.in to produce config.h.
25527 rm -f conftest.defines conftest.tail
25528 # First, append a space to every undef/define line, to ease matching.
25529 echo 's/$/ /' >conftest.defines
25530 # Then, protect against being on the right side of a sed subst, or in
25531 # an unquoted here document, in config.status. If some macros were
25532 # called several times there might be several #defines for the same
25533 # symbol, which is useless. But do not sort them, since the last
25534 # AC_DEFINE must be honored.
25535 ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
25536 # These sed commands are passed to sed as "A NAME B PARAMS C VALUE D", where
25537 # NAME is the cpp macro being defined, VALUE is the value it is being given.
25538 # PARAMS is the parameter list in the macro definition--in most cases, it's
25539 # just an empty string.
25540 ac_dA='s,^\\([ #]*\\)[^ ]*\\([ ]*'
25541 ac_dB='\\)[ (].*,\\1define\\2'
25542 ac_dC=' '
25543 ac_dD=' ,'
25545 uniq confdefs.h |
25546 sed -n '
25547 t rset
25548 :rset
25549 s/^[ ]*#[ ]*define[ ][ ]*//
25550 t ok
25553 s/[\\&,]/\\&/g
25554 s/^\('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/ '"$ac_dA"'\1'"$ac_dB"'\2'"${ac_dC}"'\3'"$ac_dD"'/p
25555 s/^\('"$ac_word_re"'\)[ ]*\(.*\)/'"$ac_dA"'\1'"$ac_dB$ac_dC"'\2'"$ac_dD"'/p
25556 ' >>conftest.defines
25558 # Remove the space that was appended to ease matching.
25559 # Then replace #undef with comments. This is necessary, for
25560 # example, in the case of _POSIX_SOURCE, which is predefined and required
25561 # on some systems where configure will not decide to define it.
25562 # (The regexp can be short, since the line contains either #define or #undef.)
25563 echo 's/ $//
25564 s,^[ #]*u.*,/* & */,' >>conftest.defines
25566 # Break up conftest.defines:
25567 ac_max_sed_lines=50
25569 # First sed command is: sed -f defines.sed $ac_file_inputs >"$tmp/out1"
25570 # Second one is: sed -f defines.sed "$tmp/out1" >"$tmp/out2"
25571 # Third one will be: sed -f defines.sed "$tmp/out2" >"$tmp/out1"
25572 # et cetera.
25573 ac_in='$ac_file_inputs'
25574 ac_out='"$tmp/out1"'
25575 ac_nxt='"$tmp/out2"'
25577 while :
25579 # Write a here document:
25580 cat >>$CONFIG_STATUS <<_ACEOF
25581 # First, check the format of the line:
25582 cat >"\$tmp/defines.sed" <<\\CEOF
25583 /^[ ]*#[ ]*undef[ ][ ]*$ac_word_re[ ]*\$/b def
25584 /^[ ]*#[ ]*define[ ][ ]*$ac_word_re[( ]/b def
25586 :def
25587 _ACEOF
25588 sed ${ac_max_sed_lines}q conftest.defines >>$CONFIG_STATUS
25589 echo 'CEOF
25590 sed -f "$tmp/defines.sed"' "$ac_in >$ac_out" >>$CONFIG_STATUS
25591 ac_in=$ac_out; ac_out=$ac_nxt; ac_nxt=$ac_in
25592 sed 1,${ac_max_sed_lines}d conftest.defines >conftest.tail
25593 grep . conftest.tail >/dev/null || break
25594 rm -f conftest.defines
25595 mv conftest.tail conftest.defines
25596 done
25597 rm -f conftest.defines conftest.tail
25599 echo "ac_result=$ac_in" >>$CONFIG_STATUS
25600 cat >>$CONFIG_STATUS <<\_ACEOF
25601 if test x"$ac_file" != x-; then
25602 echo "/* $configure_input */" >"$tmp/config.h"
25603 cat "$ac_result" >>"$tmp/config.h"
25604 if diff $ac_file "$tmp/config.h" >/dev/null 2>&1; then
25605 { echo "$as_me:$LINENO: $ac_file is unchanged" >&5
25606 echo "$as_me: $ac_file is unchanged" >&6;}
25607 else
25608 rm -f $ac_file
25609 mv "$tmp/config.h" $ac_file
25611 else
25612 echo "/* $configure_input */"
25613 cat "$ac_result"
25615 rm -f "$tmp/out12"
25618 :C) { echo "$as_me:$LINENO: executing $ac_file commands" >&5
25619 echo "$as_me: executing $ac_file commands" >&6;}
25621 esac
25624 case $ac_file$ac_mode in
25625 "default":C)
25627 ### Make the necessary directories, if they don't exist.
25628 for dir in etc lisp ; do
25629 test -d ${dir} || mkdir ${dir}
25630 done
25632 # Build src/Makefile from ${srcdir}/src/Makefile.c
25633 # and lib-src/Makefile from ${srcdir}/lib-src/Makefile.c
25634 # This must be done after src/config.h is built, since we rely on that file.
25636 echo creating src/epaths.h
25637 ${MAKE-make} epaths-force
25639 # As of 2000-11-19, newest development versions of GNU cpp preprocess
25640 # `..' to `. .' unless invoked with -traditional
25642 if test "x$GCC" = xyes && test "x$CPP_NEED_TRADITIONAL" = xyes; then
25643 CPPFLAGS="$CPPFLAGS -traditional"
25646 echo creating lib-src/Makefile
25647 ( cd lib-src
25648 rm -f junk.c junk1.c junk2.c
25649 sed -e '/start of cpp stuff/q' \
25650 < Makefile.c > junk1.c
25651 sed -e '1,/start of cpp stuff/d'\
25652 -e 's,/\*\*/#\(.*\)$,/* \1 */,' \
25653 < Makefile.c > junk.c
25654 $CPP $cpp_undefs -I. -I$srcdir/src $CPPFLAGS junk.c | \
25655 sed -e 's/^ / /' -e '/^#/d' -e '/^[ \f]*$/d' > junk2.c
25656 cat junk1.c junk2.c > Makefile.new
25657 rm -f junk.c junk1.c junk2.c
25658 chmod 444 Makefile.new
25659 mv -f Makefile.new Makefile
25662 echo creating src/Makefile
25663 ( cd src
25664 rm -f junk.c junk1.c junk2.c
25665 sed -e '/start of cpp stuff/q' \
25666 < Makefile.c > junk1.c
25667 sed -e '1,/start of cpp stuff/d'\
25668 -e 's,/\*\*/#\(.*\)$,/* \1 */,' \
25669 < Makefile.c > junk.c
25670 $CPP $cpp_undefs -I. -I$srcdir/src $CPPFLAGS junk.c | \
25671 sed -e 's/^ / /' -e '/^#/d' -e '/^[ \f]*$/d' > junk2.c
25672 cat junk1.c junk2.c > Makefile.new
25673 rm -f junk.c junk1.c junk2.c
25674 chmod 444 Makefile.new
25675 mv -f Makefile.new Makefile
25678 if test ! -f src/.gdbinit && test -f $srcdir/src/.gdbinit; then
25679 echo creating src/.gdbinit
25680 echo source $srcdir/src/.gdbinit > src/.gdbinit
25685 esac
25686 done # for ac_tag
25689 { (exit 0); exit 0; }
25690 _ACEOF
25691 chmod +x $CONFIG_STATUS
25692 ac_clean_files=$ac_clean_files_save
25695 # configure is writing to config.log, and then calls config.status.
25696 # config.status does its own redirection, appending to config.log.
25697 # Unfortunately, on DOS this fails, as config.log is still kept open
25698 # by configure, so config.status won't be able to write to it; its
25699 # output is simply discarded. So we exec the FD to /dev/null,
25700 # effectively closing config.log, so it can be properly (re)opened and
25701 # appended to by config.status. When coming back to configure, we
25702 # need to make the FD available again.
25703 if test "$no_create" != yes; then
25704 ac_cs_success=:
25705 ac_config_status_args=
25706 test "$silent" = yes &&
25707 ac_config_status_args="$ac_config_status_args --quiet"
25708 exec 5>/dev/null
25709 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
25710 exec 5>>config.log
25711 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
25712 # would make configure fail if this is the last instruction.
25713 $ac_cs_success || { (exit 1); exit 1; }