(bootstrap-prepare): Don't chmod files.
[emacs.git] / configure
blobb18a6bcfb44c96906e1e6c9cdefe78b49fc4d646
1 #! /bin/sh
2 # Guess values for system-dependent variables and create Makefiles.
3 # Generated by GNU Autoconf 2.61 for emacs 23.0.60.
5 # Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
6 # 2002, 2003, 2004, 2005, 2006 Free Software Foundation, Inc.
7 # This configure script is free software; the Free Software Foundation
8 # gives unlimited permission to copy, distribute and modify it.
9 ## --------------------- ##
10 ## M4sh Initialization. ##
11 ## --------------------- ##
13 # Be more Bourne compatible
14 DUALCASE=1; export DUALCASE # for MKS sh
15 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
16 emulate sh
17 NULLCMD=:
18 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
19 # is contrary to our usage. Disable this feature.
20 alias -g '${1+"$@"}'='"$@"'
21 setopt NO_GLOB_SUBST
22 else
23 case `(set -o) 2>/dev/null` in
24 *posix*) set -o posix ;;
25 esac
32 # PATH needs CR
33 # Avoid depending upon Character Ranges.
34 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
35 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
36 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
37 as_cr_digits='0123456789'
38 as_cr_alnum=$as_cr_Letters$as_cr_digits
40 # The user is always right.
41 if test "${PATH_SEPARATOR+set}" != set; then
42 echo "#! /bin/sh" >conf$$.sh
43 echo "exit 0" >>conf$$.sh
44 chmod +x conf$$.sh
45 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
46 PATH_SEPARATOR=';'
47 else
48 PATH_SEPARATOR=:
50 rm -f conf$$.sh
53 # Support unset when possible.
54 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
55 as_unset=unset
56 else
57 as_unset=false
61 # IFS
62 # We need space, tab and new line, in precisely that order. Quoting is
63 # there to prevent editors from complaining about space-tab.
64 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
65 # splitting by setting IFS to empty value.)
66 as_nl='
68 IFS=" "" $as_nl"
70 # Find who we are. Look in the path if we contain no directory separator.
71 case $0 in
72 *[\\/]* ) as_myself=$0 ;;
73 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
74 for as_dir in $PATH
76 IFS=$as_save_IFS
77 test -z "$as_dir" && as_dir=.
78 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
79 done
80 IFS=$as_save_IFS
83 esac
84 # We did not find ourselves, most probably we were run as `sh COMMAND'
85 # in which case we are not to be found in the path.
86 if test "x$as_myself" = x; then
87 as_myself=$0
89 if test ! -f "$as_myself"; then
90 echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
91 { (exit 1); exit 1; }
94 # Work around bugs in pre-3.0 UWIN ksh.
95 for as_var in ENV MAIL MAILPATH
96 do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
97 done
98 PS1='$ '
99 PS2='> '
100 PS4='+ '
102 # NLS nuisances.
103 for as_var in \
104 LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
105 LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
106 LC_TELEPHONE LC_TIME
108 if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
109 eval $as_var=C; export $as_var
110 else
111 ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
113 done
115 # Required to use basename.
116 if expr a : '\(a\)' >/dev/null 2>&1 &&
117 test "X`expr 00001 : '.*\(...\)'`" = X001; then
118 as_expr=expr
119 else
120 as_expr=false
123 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
124 as_basename=basename
125 else
126 as_basename=false
130 # Name of the executable.
131 as_me=`$as_basename -- "$0" ||
132 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
133 X"$0" : 'X\(//\)$' \| \
134 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
135 echo X/"$0" |
136 sed '/^.*\/\([^/][^/]*\)\/*$/{
137 s//\1/
140 /^X\/\(\/\/\)$/{
141 s//\1/
144 /^X\/\(\/\).*/{
145 s//\1/
148 s/.*/./; q'`
150 # CDPATH.
151 $as_unset CDPATH
154 if test "x$CONFIG_SHELL" = x; then
155 if (eval ":") 2>/dev/null; then
156 as_have_required=yes
157 else
158 as_have_required=no
161 if test $as_have_required = yes && (eval ":
162 (as_func_return () {
163 (exit \$1)
165 as_func_success () {
166 as_func_return 0
168 as_func_failure () {
169 as_func_return 1
171 as_func_ret_success () {
172 return 0
174 as_func_ret_failure () {
175 return 1
178 exitcode=0
179 if as_func_success; then
181 else
182 exitcode=1
183 echo as_func_success failed.
186 if as_func_failure; then
187 exitcode=1
188 echo as_func_failure succeeded.
191 if as_func_ret_success; then
193 else
194 exitcode=1
195 echo as_func_ret_success failed.
198 if as_func_ret_failure; then
199 exitcode=1
200 echo as_func_ret_failure succeeded.
203 if ( set x; as_func_ret_success y && test x = \"\$1\" ); then
205 else
206 exitcode=1
207 echo positional parameters were not saved.
210 test \$exitcode = 0) || { (exit 1); exit 1; }
213 as_lineno_1=\$LINENO
214 as_lineno_2=\$LINENO
215 test \"x\$as_lineno_1\" != \"x\$as_lineno_2\" &&
216 test \"x\`expr \$as_lineno_1 + 1\`\" = \"x\$as_lineno_2\") || { (exit 1); exit 1; }
217 ") 2> /dev/null; then
219 else
220 as_candidate_shells=
221 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
222 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
224 IFS=$as_save_IFS
225 test -z "$as_dir" && as_dir=.
226 case $as_dir in
228 for as_base in sh bash ksh sh5; do
229 as_candidate_shells="$as_candidate_shells $as_dir/$as_base"
230 done;;
231 esac
232 done
233 IFS=$as_save_IFS
236 for as_shell in $as_candidate_shells $SHELL; do
237 # Try only shells that exist, to save several forks.
238 if { test -f "$as_shell" || test -f "$as_shell.exe"; } &&
239 { ("$as_shell") 2> /dev/null <<\_ASEOF
240 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
241 emulate sh
242 NULLCMD=:
243 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
244 # is contrary to our usage. Disable this feature.
245 alias -g '${1+"$@"}'='"$@"'
246 setopt NO_GLOB_SUBST
247 else
248 case `(set -o) 2>/dev/null` in
249 *posix*) set -o posix ;;
250 esac
256 _ASEOF
257 }; then
258 CONFIG_SHELL=$as_shell
259 as_have_required=yes
260 if { "$as_shell" 2> /dev/null <<\_ASEOF
261 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
262 emulate sh
263 NULLCMD=:
264 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
265 # is contrary to our usage. Disable this feature.
266 alias -g '${1+"$@"}'='"$@"'
267 setopt NO_GLOB_SUBST
268 else
269 case `(set -o) 2>/dev/null` in
270 *posix*) set -o posix ;;
271 esac
277 (as_func_return () {
278 (exit $1)
280 as_func_success () {
281 as_func_return 0
283 as_func_failure () {
284 as_func_return 1
286 as_func_ret_success () {
287 return 0
289 as_func_ret_failure () {
290 return 1
293 exitcode=0
294 if as_func_success; then
296 else
297 exitcode=1
298 echo as_func_success failed.
301 if as_func_failure; then
302 exitcode=1
303 echo as_func_failure succeeded.
306 if as_func_ret_success; then
308 else
309 exitcode=1
310 echo as_func_ret_success failed.
313 if as_func_ret_failure; then
314 exitcode=1
315 echo as_func_ret_failure succeeded.
318 if ( set x; as_func_ret_success y && test x = "$1" ); then
320 else
321 exitcode=1
322 echo positional parameters were not saved.
325 test $exitcode = 0) || { (exit 1); exit 1; }
328 as_lineno_1=$LINENO
329 as_lineno_2=$LINENO
330 test "x$as_lineno_1" != "x$as_lineno_2" &&
331 test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2") || { (exit 1); exit 1; }
333 _ASEOF
334 }; then
335 break
340 done
342 if test "x$CONFIG_SHELL" != x; then
343 for as_var in BASH_ENV ENV
344 do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
345 done
346 export CONFIG_SHELL
347 exec "$CONFIG_SHELL" "$as_myself" ${1+"$@"}
351 if test $as_have_required = no; then
352 echo This script requires a shell more modern than all the
353 echo shells that I found on your system. Please install a
354 echo modern shell, or manually run the script under such a
355 echo shell if you do have one.
356 { (exit 1); exit 1; }
366 (eval "as_func_return () {
367 (exit \$1)
369 as_func_success () {
370 as_func_return 0
372 as_func_failure () {
373 as_func_return 1
375 as_func_ret_success () {
376 return 0
378 as_func_ret_failure () {
379 return 1
382 exitcode=0
383 if as_func_success; then
385 else
386 exitcode=1
387 echo as_func_success failed.
390 if as_func_failure; then
391 exitcode=1
392 echo as_func_failure succeeded.
395 if as_func_ret_success; then
397 else
398 exitcode=1
399 echo as_func_ret_success failed.
402 if as_func_ret_failure; then
403 exitcode=1
404 echo as_func_ret_failure succeeded.
407 if ( set x; as_func_ret_success y && test x = \"\$1\" ); then
409 else
410 exitcode=1
411 echo positional parameters were not saved.
414 test \$exitcode = 0") || {
415 echo No shell found that supports shell functions.
416 echo Please tell autoconf@gnu.org about your system,
417 echo including any error possibly output before this
418 echo message
423 as_lineno_1=$LINENO
424 as_lineno_2=$LINENO
425 test "x$as_lineno_1" != "x$as_lineno_2" &&
426 test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2" || {
428 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
429 # uniformly replaced by the line number. The first 'sed' inserts a
430 # line-number line after each line using $LINENO; the second 'sed'
431 # does the real work. The second script uses 'N' to pair each
432 # line-number line with the line containing $LINENO, and appends
433 # trailing '-' during substitution so that $LINENO is not a special
434 # case at line end.
435 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
436 # scripts with optimization help from Paolo Bonzini. Blame Lee
437 # E. McMahon (1931-1989) for sed's syntax. :-)
438 sed -n '
440 /[$]LINENO/=
441 ' <$as_myself |
442 sed '
443 s/[$]LINENO.*/&-/
444 t lineno
446 :lineno
448 :loop
449 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
450 t loop
451 s/-\n.*//
452 ' >$as_me.lineno &&
453 chmod +x "$as_me.lineno" ||
454 { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
455 { (exit 1); exit 1; }; }
457 # Don't try to exec as it changes $[0], causing all sort of problems
458 # (the dirname of $[0] is not the place where we might find the
459 # original and so on. Autoconf is especially sensitive to this).
460 . "./$as_me.lineno"
461 # Exit status is that of the last command.
462 exit
466 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
467 as_dirname=dirname
468 else
469 as_dirname=false
472 ECHO_C= ECHO_N= ECHO_T=
473 case `echo -n x` in
474 -n*)
475 case `echo 'x\c'` in
476 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
477 *) ECHO_C='\c';;
478 esac;;
480 ECHO_N='-n';;
481 esac
483 if expr a : '\(a\)' >/dev/null 2>&1 &&
484 test "X`expr 00001 : '.*\(...\)'`" = X001; then
485 as_expr=expr
486 else
487 as_expr=false
490 rm -f conf$$ conf$$.exe conf$$.file
491 if test -d conf$$.dir; then
492 rm -f conf$$.dir/conf$$.file
493 else
494 rm -f conf$$.dir
495 mkdir conf$$.dir
497 echo >conf$$.file
498 if ln -s conf$$.file conf$$ 2>/dev/null; then
499 as_ln_s='ln -s'
500 # ... but there are two gotchas:
501 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
502 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
503 # In both cases, we have to default to `cp -p'.
504 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
505 as_ln_s='cp -p'
506 elif ln conf$$.file conf$$ 2>/dev/null; then
507 as_ln_s=ln
508 else
509 as_ln_s='cp -p'
511 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
512 rmdir conf$$.dir 2>/dev/null
514 if mkdir -p . 2>/dev/null; then
515 as_mkdir_p=:
516 else
517 test -d ./-p && rmdir ./-p
518 as_mkdir_p=false
521 if test -x / >/dev/null 2>&1; then
522 as_test_x='test -x'
523 else
524 if ls -dL / >/dev/null 2>&1; then
525 as_ls_L_option=L
526 else
527 as_ls_L_option=
529 as_test_x='
530 eval sh -c '\''
531 if test -d "$1"; then
532 test -d "$1/.";
533 else
534 case $1 in
535 -*)set "./$1";;
536 esac;
537 case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in
538 ???[sx]*):;;*)false;;esac;fi
539 '\'' sh
542 as_executable_p=$as_test_x
544 # Sed expression to map a string onto a valid CPP name.
545 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
547 # Sed expression to map a string onto a valid variable name.
548 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
552 exec 7<&0 </dev/null 6>&1
554 # Name of the host.
555 # hostname on some systems (SVR3.2, Linux) returns a bogus exit status,
556 # so uname gets run too.
557 ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
560 # Initializations.
562 ac_default_prefix=/usr/local
563 ac_clean_files=
564 ac_config_libobj_dir=.
565 LIBOBJS=
566 cross_compiling=no
567 subdirs=
568 MFLAGS=
569 MAKEFLAGS=
570 SHELL=${CONFIG_SHELL-/bin/sh}
572 # Identity of this package.
573 PACKAGE_NAME='emacs'
574 PACKAGE_TARNAME='emacs'
575 PACKAGE_VERSION='23.0.60'
576 PACKAGE_STRING='emacs 23.0.60'
577 PACKAGE_BUGREPORT=''
579 ac_unique_file="src/lisp.h"
580 # Factoring default headers for most tests.
581 ac_includes_default="\
582 #include <stdio.h>
583 #ifdef HAVE_SYS_TYPES_H
584 # include <sys/types.h>
585 #endif
586 #ifdef HAVE_SYS_STAT_H
587 # include <sys/stat.h>
588 #endif
589 #ifdef STDC_HEADERS
590 # include <stdlib.h>
591 # include <stddef.h>
592 #else
593 # ifdef HAVE_STDLIB_H
594 # include <stdlib.h>
595 # endif
596 #endif
597 #ifdef HAVE_STRING_H
598 # if !defined STDC_HEADERS && defined HAVE_MEMORY_H
599 # include <memory.h>
600 # endif
601 # include <string.h>
602 #endif
603 #ifdef HAVE_STRINGS_H
604 # include <strings.h>
605 #endif
606 #ifdef HAVE_INTTYPES_H
607 # include <inttypes.h>
608 #endif
609 #ifdef HAVE_STDINT_H
610 # include <stdint.h>
611 #endif
612 #ifdef HAVE_UNISTD_H
613 # include <unistd.h>
614 #endif"
616 ac_config_libobj_dir=src
617 ac_header_list=
618 ac_func_list=
619 ac_subst_vars='SHELL
620 PATH_SEPARATOR
621 PACKAGE_NAME
622 PACKAGE_TARNAME
623 PACKAGE_VERSION
624 PACKAGE_STRING
625 PACKAGE_BUGREPORT
626 exec_prefix
627 prefix
628 program_transform_name
629 bindir
630 sbindir
631 libexecdir
632 datarootdir
633 datadir
634 sysconfdir
635 sharedstatedir
636 localstatedir
637 includedir
638 oldincludedir
639 docdir
640 infodir
641 htmldir
642 dvidir
643 pdfdir
644 psdir
645 libdir
646 localedir
647 mandir
648 DEFS
649 ECHO_C
650 ECHO_N
651 ECHO_T
652 LIBS
653 build_alias
654 host_alias
655 target_alias
656 MAINT
657 build
658 build_cpu
659 build_vendor
660 build_os
661 host
662 host_cpu
663 host_vendor
664 host_os
666 CFLAGS
667 LDFLAGS
668 CPPFLAGS
669 ac_ct_CC
670 EXEEXT
671 OBJEXT
673 GREP
674 EGREP
675 LN_S
676 INSTALL_PROGRAM
677 INSTALL_SCRIPT
678 INSTALL_DATA
679 RANLIB
680 INSTALL_INFO
681 GZIP_PROG
682 MAKEINFO
683 LIBSOUND
684 PKG_CONFIG
685 ALSA_CFLAGS
686 ALSA_LIBS
687 CFLAGS_SOUND
688 SET_MAKE
689 XMKMF
690 HAVE_XSERVER
691 RSVG_CFLAGS
692 RSVG_LIBS
693 GTK_CFLAGS
694 GTK_LIBS
695 DBUS_CFLAGS
696 DBUS_LIBS
697 XFT_CFLAGS
698 XFT_LIBS
699 FREETYPE_CFLAGS
700 FREETYPE_LIBS
701 FONTCONFIG_CFLAGS
702 FONTCONFIG_LIBS
703 LIBOTF_CFLAGS
704 LIBOTF_LIBS
705 M17N_FLT_CFLAGS
706 M17N_FLT_LIBS
707 ALLOCA
708 liblockfile
709 LIBOBJS
710 NEED_SETGID
711 KMEM_GROUP
712 GETLOADAVG_LIBS
713 GETOPT_H
714 GETOPTOBJS
715 version
716 configuration
717 canonical
718 srcdir
719 lispdir
720 locallisppath
721 lisppath
722 x_default_search_path
723 etcdir
724 archlibdir
725 bitmapdir
726 gamedir
727 gameuser
728 c_switch_system
729 c_switch_machine
730 LD_SWITCH_X_SITE
731 LD_SWITCH_X_SITE_AUX
732 C_SWITCH_X_SITE
733 X_TOOLKIT_TYPE
734 machfile
735 opsysfile
736 carbon_appdir
737 LTLIBOBJS'
738 ac_subst_files=''
739 ac_precious_vars='build_alias
740 host_alias
741 target_alias
743 CFLAGS
744 LDFLAGS
745 LIBS
746 CPPFLAGS
748 XMKMF'
751 # Initialize some variables set by options.
752 ac_init_help=
753 ac_init_version=false
754 # The variables have the same names as the options, with
755 # dashes changed to underlines.
756 cache_file=/dev/null
757 exec_prefix=NONE
758 no_create=
759 no_recursion=
760 prefix=NONE
761 program_prefix=NONE
762 program_suffix=NONE
763 program_transform_name=s,x,x,
764 silent=
765 site=
766 srcdir=
767 verbose=
768 x_includes=NONE
769 x_libraries=NONE
771 # Installation directory options.
772 # These are left unexpanded so users can "make install exec_prefix=/foo"
773 # and all the variables that are supposed to be based on exec_prefix
774 # by default will actually change.
775 # Use braces instead of parens because sh, perl, etc. also accept them.
776 # (The list follows the same order as the GNU Coding Standards.)
777 bindir='${exec_prefix}/bin'
778 sbindir='${exec_prefix}/sbin'
779 libexecdir='${exec_prefix}/libexec'
780 datarootdir='${prefix}/share'
781 datadir='${datarootdir}'
782 sysconfdir='${prefix}/etc'
783 sharedstatedir='${prefix}/com'
784 localstatedir='${prefix}/var'
785 includedir='${prefix}/include'
786 oldincludedir='/usr/include'
787 docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
788 infodir='${datarootdir}/info'
789 htmldir='${docdir}'
790 dvidir='${docdir}'
791 pdfdir='${docdir}'
792 psdir='${docdir}'
793 libdir='${exec_prefix}/lib'
794 localedir='${datarootdir}/locale'
795 mandir='${datarootdir}/man'
797 ac_prev=
798 ac_dashdash=
799 for ac_option
801 # If the previous option needs an argument, assign it.
802 if test -n "$ac_prev"; then
803 eval $ac_prev=\$ac_option
804 ac_prev=
805 continue
808 case $ac_option in
809 *=*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
810 *) ac_optarg=yes ;;
811 esac
813 # Accept the important Cygnus configure options, so we can diagnose typos.
815 case $ac_dashdash$ac_option in
817 ac_dashdash=yes ;;
819 -bindir | --bindir | --bindi | --bind | --bin | --bi)
820 ac_prev=bindir ;;
821 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
822 bindir=$ac_optarg ;;
824 -build | --build | --buil | --bui | --bu)
825 ac_prev=build_alias ;;
826 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
827 build_alias=$ac_optarg ;;
829 -cache-file | --cache-file | --cache-fil | --cache-fi \
830 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
831 ac_prev=cache_file ;;
832 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
833 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
834 cache_file=$ac_optarg ;;
836 --config-cache | -C)
837 cache_file=config.cache ;;
839 -datadir | --datadir | --datadi | --datad)
840 ac_prev=datadir ;;
841 -datadir=* | --datadir=* | --datadi=* | --datad=*)
842 datadir=$ac_optarg ;;
844 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
845 | --dataroo | --dataro | --datar)
846 ac_prev=datarootdir ;;
847 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
848 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
849 datarootdir=$ac_optarg ;;
851 -disable-* | --disable-*)
852 ac_feature=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
853 # Reject names that are not valid shell variable names.
854 expr "x$ac_feature" : ".*[^-._$as_cr_alnum]" >/dev/null &&
855 { echo "$as_me: error: invalid feature name: $ac_feature" >&2
856 { (exit 1); exit 1; }; }
857 ac_feature=`echo $ac_feature | sed 's/[-.]/_/g'`
858 eval enable_$ac_feature=no ;;
860 -docdir | --docdir | --docdi | --doc | --do)
861 ac_prev=docdir ;;
862 -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
863 docdir=$ac_optarg ;;
865 -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
866 ac_prev=dvidir ;;
867 -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
868 dvidir=$ac_optarg ;;
870 -enable-* | --enable-*)
871 ac_feature=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
872 # Reject names that are not valid shell variable names.
873 expr "x$ac_feature" : ".*[^-._$as_cr_alnum]" >/dev/null &&
874 { echo "$as_me: error: invalid feature name: $ac_feature" >&2
875 { (exit 1); exit 1; }; }
876 ac_feature=`echo $ac_feature | sed 's/[-.]/_/g'`
877 eval enable_$ac_feature=\$ac_optarg ;;
879 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
880 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
881 | --exec | --exe | --ex)
882 ac_prev=exec_prefix ;;
883 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
884 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
885 | --exec=* | --exe=* | --ex=*)
886 exec_prefix=$ac_optarg ;;
888 -gas | --gas | --ga | --g)
889 # Obsolete; use --with-gas.
890 with_gas=yes ;;
892 -help | --help | --hel | --he | -h)
893 ac_init_help=long ;;
894 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
895 ac_init_help=recursive ;;
896 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
897 ac_init_help=short ;;
899 -host | --host | --hos | --ho)
900 ac_prev=host_alias ;;
901 -host=* | --host=* | --hos=* | --ho=*)
902 host_alias=$ac_optarg ;;
904 -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
905 ac_prev=htmldir ;;
906 -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
907 | --ht=*)
908 htmldir=$ac_optarg ;;
910 -includedir | --includedir | --includedi | --included | --include \
911 | --includ | --inclu | --incl | --inc)
912 ac_prev=includedir ;;
913 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
914 | --includ=* | --inclu=* | --incl=* | --inc=*)
915 includedir=$ac_optarg ;;
917 -infodir | --infodir | --infodi | --infod | --info | --inf)
918 ac_prev=infodir ;;
919 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
920 infodir=$ac_optarg ;;
922 -libdir | --libdir | --libdi | --libd)
923 ac_prev=libdir ;;
924 -libdir=* | --libdir=* | --libdi=* | --libd=*)
925 libdir=$ac_optarg ;;
927 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
928 | --libexe | --libex | --libe)
929 ac_prev=libexecdir ;;
930 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
931 | --libexe=* | --libex=* | --libe=*)
932 libexecdir=$ac_optarg ;;
934 -localedir | --localedir | --localedi | --localed | --locale)
935 ac_prev=localedir ;;
936 -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
937 localedir=$ac_optarg ;;
939 -localstatedir | --localstatedir | --localstatedi | --localstated \
940 | --localstate | --localstat | --localsta | --localst | --locals)
941 ac_prev=localstatedir ;;
942 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
943 | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
944 localstatedir=$ac_optarg ;;
946 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
947 ac_prev=mandir ;;
948 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
949 mandir=$ac_optarg ;;
951 -nfp | --nfp | --nf)
952 # Obsolete; use --without-fp.
953 with_fp=no ;;
955 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
956 | --no-cr | --no-c | -n)
957 no_create=yes ;;
959 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
960 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
961 no_recursion=yes ;;
963 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
964 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
965 | --oldin | --oldi | --old | --ol | --o)
966 ac_prev=oldincludedir ;;
967 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
968 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
969 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
970 oldincludedir=$ac_optarg ;;
972 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
973 ac_prev=prefix ;;
974 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
975 prefix=$ac_optarg ;;
977 -program-prefix | --program-prefix | --program-prefi | --program-pref \
978 | --program-pre | --program-pr | --program-p)
979 ac_prev=program_prefix ;;
980 -program-prefix=* | --program-prefix=* | --program-prefi=* \
981 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
982 program_prefix=$ac_optarg ;;
984 -program-suffix | --program-suffix | --program-suffi | --program-suff \
985 | --program-suf | --program-su | --program-s)
986 ac_prev=program_suffix ;;
987 -program-suffix=* | --program-suffix=* | --program-suffi=* \
988 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
989 program_suffix=$ac_optarg ;;
991 -program-transform-name | --program-transform-name \
992 | --program-transform-nam | --program-transform-na \
993 | --program-transform-n | --program-transform- \
994 | --program-transform | --program-transfor \
995 | --program-transfo | --program-transf \
996 | --program-trans | --program-tran \
997 | --progr-tra | --program-tr | --program-t)
998 ac_prev=program_transform_name ;;
999 -program-transform-name=* | --program-transform-name=* \
1000 | --program-transform-nam=* | --program-transform-na=* \
1001 | --program-transform-n=* | --program-transform-=* \
1002 | --program-transform=* | --program-transfor=* \
1003 | --program-transfo=* | --program-transf=* \
1004 | --program-trans=* | --program-tran=* \
1005 | --progr-tra=* | --program-tr=* | --program-t=*)
1006 program_transform_name=$ac_optarg ;;
1008 -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1009 ac_prev=pdfdir ;;
1010 -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1011 pdfdir=$ac_optarg ;;
1013 -psdir | --psdir | --psdi | --psd | --ps)
1014 ac_prev=psdir ;;
1015 -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1016 psdir=$ac_optarg ;;
1018 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1019 | -silent | --silent | --silen | --sile | --sil)
1020 silent=yes ;;
1022 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1023 ac_prev=sbindir ;;
1024 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1025 | --sbi=* | --sb=*)
1026 sbindir=$ac_optarg ;;
1028 -sharedstatedir | --sharedstatedir | --sharedstatedi \
1029 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1030 | --sharedst | --shareds | --shared | --share | --shar \
1031 | --sha | --sh)
1032 ac_prev=sharedstatedir ;;
1033 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1034 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1035 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1036 | --sha=* | --sh=*)
1037 sharedstatedir=$ac_optarg ;;
1039 -site | --site | --sit)
1040 ac_prev=site ;;
1041 -site=* | --site=* | --sit=*)
1042 site=$ac_optarg ;;
1044 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1045 ac_prev=srcdir ;;
1046 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1047 srcdir=$ac_optarg ;;
1049 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1050 | --syscon | --sysco | --sysc | --sys | --sy)
1051 ac_prev=sysconfdir ;;
1052 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1053 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1054 sysconfdir=$ac_optarg ;;
1056 -target | --target | --targe | --targ | --tar | --ta | --t)
1057 ac_prev=target_alias ;;
1058 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1059 target_alias=$ac_optarg ;;
1061 -v | -verbose | --verbose | --verbos | --verbo | --verb)
1062 verbose=yes ;;
1064 -version | --version | --versio | --versi | --vers | -V)
1065 ac_init_version=: ;;
1067 -with-* | --with-*)
1068 ac_package=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1069 # Reject names that are not valid shell variable names.
1070 expr "x$ac_package" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1071 { echo "$as_me: error: invalid package name: $ac_package" >&2
1072 { (exit 1); exit 1; }; }
1073 ac_package=`echo $ac_package | sed 's/[-.]/_/g'`
1074 eval with_$ac_package=\$ac_optarg ;;
1076 -without-* | --without-*)
1077 ac_package=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1078 # Reject names that are not valid shell variable names.
1079 expr "x$ac_package" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1080 { echo "$as_me: error: invalid package name: $ac_package" >&2
1081 { (exit 1); exit 1; }; }
1082 ac_package=`echo $ac_package | sed 's/[-.]/_/g'`
1083 eval with_$ac_package=no ;;
1085 --x)
1086 # Obsolete; use --with-x.
1087 with_x=yes ;;
1089 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1090 | --x-incl | --x-inc | --x-in | --x-i)
1091 ac_prev=x_includes ;;
1092 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1093 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1094 x_includes=$ac_optarg ;;
1096 -x-libraries | --x-libraries | --x-librarie | --x-librari \
1097 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1098 ac_prev=x_libraries ;;
1099 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1100 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1101 x_libraries=$ac_optarg ;;
1103 -*) { echo "$as_me: error: unrecognized option: $ac_option
1104 Try \`$0 --help' for more information." >&2
1105 { (exit 1); exit 1; }; }
1108 *=*)
1109 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1110 # Reject names that are not valid shell variable names.
1111 expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev/null &&
1112 { echo "$as_me: error: invalid variable name: $ac_envvar" >&2
1113 { (exit 1); exit 1; }; }
1114 eval $ac_envvar=\$ac_optarg
1115 export $ac_envvar ;;
1118 # FIXME: should be removed in autoconf 3.0.
1119 echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1120 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1121 echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1122 : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
1125 esac
1126 done
1128 if test -n "$ac_prev"; then
1129 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1130 { echo "$as_me: error: missing argument to $ac_option" >&2
1131 { (exit 1); exit 1; }; }
1134 # Be sure to have absolute directory names.
1135 for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \
1136 datadir sysconfdir sharedstatedir localstatedir includedir \
1137 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1138 libdir localedir mandir
1140 eval ac_val=\$$ac_var
1141 case $ac_val in
1142 [\\/$]* | ?:[\\/]* ) continue;;
1143 NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1144 esac
1145 { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
1146 { (exit 1); exit 1; }; }
1147 done
1149 # There might be people who depend on the old broken behavior: `$host'
1150 # used to hold the argument of --host etc.
1151 # FIXME: To remove some day.
1152 build=$build_alias
1153 host=$host_alias
1154 target=$target_alias
1156 # FIXME: To remove some day.
1157 if test "x$host_alias" != x; then
1158 if test "x$build_alias" = x; then
1159 cross_compiling=maybe
1160 echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
1161 If a cross compiler is detected then cross compile mode will be used." >&2
1162 elif test "x$build_alias" != "x$host_alias"; then
1163 cross_compiling=yes
1167 ac_tool_prefix=
1168 test -n "$host_alias" && ac_tool_prefix=$host_alias-
1170 test "$silent" = yes && exec 6>/dev/null
1173 ac_pwd=`pwd` && test -n "$ac_pwd" &&
1174 ac_ls_di=`ls -di .` &&
1175 ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1176 { echo "$as_me: error: Working directory cannot be determined" >&2
1177 { (exit 1); exit 1; }; }
1178 test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1179 { echo "$as_me: error: pwd does not report name of working directory" >&2
1180 { (exit 1); exit 1; }; }
1183 # Find the source files, if location was not specified.
1184 if test -z "$srcdir"; then
1185 ac_srcdir_defaulted=yes
1186 # Try the directory containing this script, then the parent directory.
1187 ac_confdir=`$as_dirname -- "$0" ||
1188 $as_expr X"$0" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1189 X"$0" : 'X\(//\)[^/]' \| \
1190 X"$0" : 'X\(//\)$' \| \
1191 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
1192 echo X"$0" |
1193 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1194 s//\1/
1197 /^X\(\/\/\)[^/].*/{
1198 s//\1/
1201 /^X\(\/\/\)$/{
1202 s//\1/
1205 /^X\(\/\).*/{
1206 s//\1/
1209 s/.*/./; q'`
1210 srcdir=$ac_confdir
1211 if test ! -r "$srcdir/$ac_unique_file"; then
1212 srcdir=..
1214 else
1215 ac_srcdir_defaulted=no
1217 if test ! -r "$srcdir/$ac_unique_file"; then
1218 test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1219 { echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2
1220 { (exit 1); exit 1; }; }
1222 ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1223 ac_abs_confdir=`(
1224 cd "$srcdir" && test -r "./$ac_unique_file" || { echo "$as_me: error: $ac_msg" >&2
1225 { (exit 1); exit 1; }; }
1226 pwd)`
1227 # When building in place, set srcdir=.
1228 if test "$ac_abs_confdir" = "$ac_pwd"; then
1229 srcdir=.
1231 # Remove unnecessary trailing slashes from srcdir.
1232 # Double slashes in file names in object file debugging info
1233 # mess up M-x gdb in Emacs.
1234 case $srcdir in
1235 */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1236 esac
1237 for ac_var in $ac_precious_vars; do
1238 eval ac_env_${ac_var}_set=\${${ac_var}+set}
1239 eval ac_env_${ac_var}_value=\$${ac_var}
1240 eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1241 eval ac_cv_env_${ac_var}_value=\$${ac_var}
1242 done
1245 # Report the --help message.
1247 if test "$ac_init_help" = "long"; then
1248 # Omit some internal or obsolete options to make the list less imposing.
1249 # This message is too long to be a string in the A/UX 3.1 sh.
1250 cat <<_ACEOF
1251 \`configure' configures emacs 23.0.60 to adapt to many kinds of systems.
1253 Usage: $0 [OPTION]... [VAR=VALUE]...
1255 To assign environment variables (e.g., CC, CFLAGS...), specify them as
1256 VAR=VALUE. See below for descriptions of some of the useful variables.
1258 Defaults for the options are specified in brackets.
1260 Configuration:
1261 -h, --help display this help and exit
1262 --help=short display options specific to this package
1263 --help=recursive display the short help of all the included packages
1264 -V, --version display version information and exit
1265 -q, --quiet, --silent do not print \`checking...' messages
1266 --cache-file=FILE cache test results in FILE [disabled]
1267 -C, --config-cache alias for \`--cache-file=config.cache'
1268 -n, --no-create do not create output files
1269 --srcdir=DIR find the sources in DIR [configure dir or \`..']
1271 Installation directories:
1272 --prefix=PREFIX install architecture-independent files in PREFIX
1273 [$ac_default_prefix]
1274 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
1275 [PREFIX]
1277 By default, \`make install' will install all the files in
1278 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
1279 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1280 for instance \`--prefix=\$HOME'.
1282 For better control, use the options below.
1284 Fine tuning of the installation directories:
1285 --bindir=DIR user executables [EPREFIX/bin]
1286 --sbindir=DIR system admin executables [EPREFIX/sbin]
1287 --libexecdir=DIR program executables [EPREFIX/libexec]
1288 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
1289 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
1290 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
1291 --libdir=DIR object code libraries [EPREFIX/lib]
1292 --includedir=DIR C header files [PREFIX/include]
1293 --oldincludedir=DIR C header files for non-gcc [/usr/include]
1294 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
1295 --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
1296 --infodir=DIR info documentation [DATAROOTDIR/info]
1297 --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
1298 --mandir=DIR man documentation [DATAROOTDIR/man]
1299 --docdir=DIR documentation root [DATAROOTDIR/doc/emacs]
1300 --htmldir=DIR html documentation [DOCDIR]
1301 --dvidir=DIR dvi documentation [DOCDIR]
1302 --pdfdir=DIR pdf documentation [DOCDIR]
1303 --psdir=DIR ps documentation [DOCDIR]
1304 _ACEOF
1306 cat <<\_ACEOF
1308 Program names:
1309 --program-prefix=PREFIX prepend PREFIX to installed program names
1310 --program-suffix=SUFFIX append SUFFIX to installed program names
1311 --program-transform-name=PROGRAM run sed PROGRAM on installed program names
1313 X features:
1314 --x-includes=DIR X include files are in DIR
1315 --x-libraries=DIR X library files are in DIR
1317 System types:
1318 --build=BUILD configure for building on BUILD [guessed]
1319 --host=HOST cross-compile to build programs to run on HOST [BUILD]
1320 _ACEOF
1323 if test -n "$ac_init_help"; then
1324 case $ac_init_help in
1325 short | recursive ) echo "Configuration of emacs 23.0.60:";;
1326 esac
1327 cat <<\_ACEOF
1329 Optional Features:
1330 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
1331 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
1332 --enable-carbon-app[=DIR]
1333 specify install directory for Emacs.app on Mac OS X
1334 [DIR=/Application]
1335 --disable-font-backend don't compile font-backend support
1336 --enable-asserts compile code with asserts enabled
1337 --enable-maintainer-mode
1338 enable make rules and dependencies not useful (and
1339 sometimes confusing) to the casual installer
1340 --enable-locallisppath=PATH
1341 directories Emacs should search for lisp files
1342 specific to this site
1343 --disable-largefile omit support for large files
1345 Optional Packages:
1346 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
1347 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
1348 --without-pop don't support POP mail retrieval with movemail
1349 --with-kerberos support Kerberos-authenticated POP
1350 --with-kerberos5 support Kerberos version 5 authenticated POP
1351 --with-hesiod support Hesiod to get the POP server host
1352 --without-sound don't compile with sound support
1353 --without-sync-input Process async input synchronously
1354 --with-x-toolkit=KIT use an X toolkit (KIT one of: yes, lucid, athena,
1355 motif, gtk, no)
1356 --without-xpm don't compile with XPM image support
1357 --without-jpeg don't compile with JPEG image support
1358 --without-tiff don't compile with TIFF image support
1359 --without-gif don't compile with GIF image support
1360 --without-png don't compile with PNG image support
1361 --without-rsvg don't compile with SVG image support
1362 --without-freetype don't use Freetype for local font support
1363 --without-xft don't use XFT for anti aliased fonts
1364 --without-libotf don't use libotf for OpenType font support
1365 --without-m17n-flt don't use m17n-flt for text shaping
1366 --without-toolkit-scroll-bars
1367 don't use Motif or Xaw3d scroll bars
1368 --without-xaw3d don't use Xaw3d
1369 --without-xim don't use X11 XIM
1370 --with-carbon use Carbon GUI on Mac OS X. This is unsupported!
1371 --without-gpm don't use -lgpm for mouse support on a GNU/Linux
1372 console
1373 --without-dbus don't compile with D-Bus support
1374 --without-makeinfo don't require makeinfo for building manuals
1376 --with-pkg-config-prog=PATH
1377 Path to pkg-config for finding GTK and librsvg
1378 --with-x use the X Window System
1380 Some influential environment variables:
1381 CC C compiler command
1382 CFLAGS C compiler flags
1383 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
1384 nonstandard directory <lib dir>
1385 LIBS libraries to pass to the linker, e.g. -l<library>
1386 CPPFLAGS C/C++/Objective C preprocessor flags, e.g. -I<include dir> if
1387 you have headers in a nonstandard directory <include dir>
1388 CPP C preprocessor
1389 XMKMF Path to xmkmf, Makefile generator for X Window System
1391 Use these variables to override the choices made by `configure' or to help
1392 it to find libraries and programs with nonstandard names/locations.
1394 _ACEOF
1395 ac_status=$?
1398 if test "$ac_init_help" = "recursive"; then
1399 # If there are subdirs, report their specific --help.
1400 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1401 test -d "$ac_dir" || continue
1402 ac_builddir=.
1404 case "$ac_dir" in
1405 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1407 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
1408 # A ".." for each directory in $ac_dir_suffix.
1409 ac_top_builddir_sub=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'`
1410 case $ac_top_builddir_sub in
1411 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1412 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1413 esac ;;
1414 esac
1415 ac_abs_top_builddir=$ac_pwd
1416 ac_abs_builddir=$ac_pwd$ac_dir_suffix
1417 # for backward compatibility:
1418 ac_top_builddir=$ac_top_build_prefix
1420 case $srcdir in
1421 .) # We are building in place.
1422 ac_srcdir=.
1423 ac_top_srcdir=$ac_top_builddir_sub
1424 ac_abs_top_srcdir=$ac_pwd ;;
1425 [\\/]* | ?:[\\/]* ) # Absolute name.
1426 ac_srcdir=$srcdir$ac_dir_suffix;
1427 ac_top_srcdir=$srcdir
1428 ac_abs_top_srcdir=$srcdir ;;
1429 *) # Relative name.
1430 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1431 ac_top_srcdir=$ac_top_build_prefix$srcdir
1432 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1433 esac
1434 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1436 cd "$ac_dir" || { ac_status=$?; continue; }
1437 # Check for guested configure.
1438 if test -f "$ac_srcdir/configure.gnu"; then
1439 echo &&
1440 $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1441 elif test -f "$ac_srcdir/configure"; then
1442 echo &&
1443 $SHELL "$ac_srcdir/configure" --help=recursive
1444 else
1445 echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1446 fi || ac_status=$?
1447 cd "$ac_pwd" || { ac_status=$?; break; }
1448 done
1451 test -n "$ac_init_help" && exit $ac_status
1452 if $ac_init_version; then
1453 cat <<\_ACEOF
1454 emacs configure 23.0.60
1455 generated by GNU Autoconf 2.61
1457 Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
1458 2002, 2003, 2004, 2005, 2006 Free Software Foundation, Inc.
1459 This configure script is free software; the Free Software Foundation
1460 gives unlimited permission to copy, distribute and modify it.
1461 _ACEOF
1462 exit
1464 cat >config.log <<_ACEOF
1465 This file contains any messages produced by compilers while
1466 running configure, to aid debugging if configure makes a mistake.
1468 It was created by emacs $as_me 23.0.60, which was
1469 generated by GNU Autoconf 2.61. Invocation command line was
1471 $ $0 $@
1473 _ACEOF
1474 exec 5>>config.log
1476 cat <<_ASUNAME
1477 ## --------- ##
1478 ## Platform. ##
1479 ## --------- ##
1481 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1482 uname -m = `(uname -m) 2>/dev/null || echo unknown`
1483 uname -r = `(uname -r) 2>/dev/null || echo unknown`
1484 uname -s = `(uname -s) 2>/dev/null || echo unknown`
1485 uname -v = `(uname -v) 2>/dev/null || echo unknown`
1487 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1488 /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
1490 /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
1491 /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
1492 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1493 /usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
1494 /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
1495 /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
1496 /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
1498 _ASUNAME
1500 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1501 for as_dir in $PATH
1503 IFS=$as_save_IFS
1504 test -z "$as_dir" && as_dir=.
1505 echo "PATH: $as_dir"
1506 done
1507 IFS=$as_save_IFS
1509 } >&5
1511 cat >&5 <<_ACEOF
1514 ## ----------- ##
1515 ## Core tests. ##
1516 ## ----------- ##
1518 _ACEOF
1521 # Keep a trace of the command line.
1522 # Strip out --no-create and --no-recursion so they do not pile up.
1523 # Strip out --silent because we don't want to record it for future runs.
1524 # Also quote any args containing shell meta-characters.
1525 # Make two passes to allow for proper duplicate-argument suppression.
1526 ac_configure_args=
1527 ac_configure_args0=
1528 ac_configure_args1=
1529 ac_must_keep_next=false
1530 for ac_pass in 1 2
1532 for ac_arg
1534 case $ac_arg in
1535 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1536 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1537 | -silent | --silent | --silen | --sile | --sil)
1538 continue ;;
1539 *\'*)
1540 ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1541 esac
1542 case $ac_pass in
1543 1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;;
1545 ac_configure_args1="$ac_configure_args1 '$ac_arg'"
1546 if test $ac_must_keep_next = true; then
1547 ac_must_keep_next=false # Got value, back to normal.
1548 else
1549 case $ac_arg in
1550 *=* | --config-cache | -C | -disable-* | --disable-* \
1551 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1552 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1553 | -with-* | --with-* | -without-* | --without-* | --x)
1554 case "$ac_configure_args0 " in
1555 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1556 esac
1558 -* ) ac_must_keep_next=true ;;
1559 esac
1561 ac_configure_args="$ac_configure_args '$ac_arg'"
1563 esac
1564 done
1565 done
1566 $as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; }
1567 $as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; }
1569 # When interrupted or exit'd, cleanup temporary files, and complete
1570 # config.log. We remove comments because anyway the quotes in there
1571 # would cause problems or look ugly.
1572 # WARNING: Use '\'' to represent an apostrophe within the trap.
1573 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
1574 trap 'exit_status=$?
1575 # Save into config.log some information that might help in debugging.
1577 echo
1579 cat <<\_ASBOX
1580 ## ---------------- ##
1581 ## Cache variables. ##
1582 ## ---------------- ##
1583 _ASBOX
1584 echo
1585 # The following way of writing the cache mishandles newlines in values,
1587 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
1588 eval ac_val=\$$ac_var
1589 case $ac_val in #(
1590 *${as_nl}*)
1591 case $ac_var in #(
1592 *_cv_*) { echo "$as_me:$LINENO: WARNING: Cache variable $ac_var contains a newline." >&5
1593 echo "$as_me: WARNING: Cache variable $ac_var contains a newline." >&2;} ;;
1594 esac
1595 case $ac_var in #(
1596 _ | IFS | as_nl) ;; #(
1597 *) $as_unset $ac_var ;;
1598 esac ;;
1599 esac
1600 done
1601 (set) 2>&1 |
1602 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
1603 *${as_nl}ac_space=\ *)
1604 sed -n \
1605 "s/'\''/'\''\\\\'\'''\''/g;
1606 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
1607 ;; #(
1609 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
1611 esac |
1612 sort
1614 echo
1616 cat <<\_ASBOX
1617 ## ----------------- ##
1618 ## Output variables. ##
1619 ## ----------------- ##
1620 _ASBOX
1621 echo
1622 for ac_var in $ac_subst_vars
1624 eval ac_val=\$$ac_var
1625 case $ac_val in
1626 *\'\''*) ac_val=`echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1627 esac
1628 echo "$ac_var='\''$ac_val'\''"
1629 done | sort
1630 echo
1632 if test -n "$ac_subst_files"; then
1633 cat <<\_ASBOX
1634 ## ------------------- ##
1635 ## File substitutions. ##
1636 ## ------------------- ##
1637 _ASBOX
1638 echo
1639 for ac_var in $ac_subst_files
1641 eval ac_val=\$$ac_var
1642 case $ac_val in
1643 *\'\''*) ac_val=`echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1644 esac
1645 echo "$ac_var='\''$ac_val'\''"
1646 done | sort
1647 echo
1650 if test -s confdefs.h; then
1651 cat <<\_ASBOX
1652 ## ----------- ##
1653 ## confdefs.h. ##
1654 ## ----------- ##
1655 _ASBOX
1656 echo
1657 cat confdefs.h
1658 echo
1660 test "$ac_signal" != 0 &&
1661 echo "$as_me: caught signal $ac_signal"
1662 echo "$as_me: exit $exit_status"
1663 } >&5
1664 rm -f core *.core core.conftest.* &&
1665 rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
1666 exit $exit_status
1668 for ac_signal in 1 2 13 15; do
1669 trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
1670 done
1671 ac_signal=0
1673 # confdefs.h avoids OS command line length limits that DEFS can exceed.
1674 rm -f -r conftest* confdefs.h
1676 # Predefined preprocessor variables.
1678 cat >>confdefs.h <<_ACEOF
1679 #define PACKAGE_NAME "$PACKAGE_NAME"
1680 _ACEOF
1683 cat >>confdefs.h <<_ACEOF
1684 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
1685 _ACEOF
1688 cat >>confdefs.h <<_ACEOF
1689 #define PACKAGE_VERSION "$PACKAGE_VERSION"
1690 _ACEOF
1693 cat >>confdefs.h <<_ACEOF
1694 #define PACKAGE_STRING "$PACKAGE_STRING"
1695 _ACEOF
1698 cat >>confdefs.h <<_ACEOF
1699 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
1700 _ACEOF
1703 # Let the site file select an alternate cache file if it wants to.
1704 # Prefer explicitly selected file to automatically selected ones.
1705 if test -n "$CONFIG_SITE"; then
1706 set x "$CONFIG_SITE"
1707 elif test "x$prefix" != xNONE; then
1708 set x "$prefix/share/config.site" "$prefix/etc/config.site"
1709 else
1710 set x "$ac_default_prefix/share/config.site" \
1711 "$ac_default_prefix/etc/config.site"
1713 shift
1714 for ac_site_file
1716 if test -r "$ac_site_file"; then
1717 { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
1718 echo "$as_me: loading site script $ac_site_file" >&6;}
1719 sed 's/^/| /' "$ac_site_file" >&5
1720 . "$ac_site_file"
1722 done
1724 if test -r "$cache_file"; then
1725 # Some versions of bash will fail to source /dev/null (special
1726 # files actually), so we avoid doing that.
1727 if test -f "$cache_file"; then
1728 { echo "$as_me:$LINENO: loading cache $cache_file" >&5
1729 echo "$as_me: loading cache $cache_file" >&6;}
1730 case $cache_file in
1731 [\\/]* | ?:[\\/]* ) . "$cache_file";;
1732 *) . "./$cache_file";;
1733 esac
1735 else
1736 { echo "$as_me:$LINENO: creating cache $cache_file" >&5
1737 echo "$as_me: creating cache $cache_file" >&6;}
1738 >$cache_file
1741 ac_header_list="$ac_header_list sys/time.h"
1742 ac_header_list="$ac_header_list unistd.h"
1743 ac_func_list="$ac_func_list alarm"
1744 # Check that the precious variables saved in the cache have kept the same
1745 # value.
1746 ac_cache_corrupted=false
1747 for ac_var in $ac_precious_vars; do
1748 eval ac_old_set=\$ac_cv_env_${ac_var}_set
1749 eval ac_new_set=\$ac_env_${ac_var}_set
1750 eval ac_old_val=\$ac_cv_env_${ac_var}_value
1751 eval ac_new_val=\$ac_env_${ac_var}_value
1752 case $ac_old_set,$ac_new_set in
1753 set,)
1754 { echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
1755 echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
1756 ac_cache_corrupted=: ;;
1757 ,set)
1758 { echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5
1759 echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
1760 ac_cache_corrupted=: ;;
1761 ,);;
1763 if test "x$ac_old_val" != "x$ac_new_val"; then
1764 { echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
1765 echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
1766 { echo "$as_me:$LINENO: former value: $ac_old_val" >&5
1767 echo "$as_me: former value: $ac_old_val" >&2;}
1768 { echo "$as_me:$LINENO: current value: $ac_new_val" >&5
1769 echo "$as_me: current value: $ac_new_val" >&2;}
1770 ac_cache_corrupted=:
1771 fi;;
1772 esac
1773 # Pass precious variables to config.status.
1774 if test "$ac_new_set" = set; then
1775 case $ac_new_val in
1776 *\'*) ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
1777 *) ac_arg=$ac_var=$ac_new_val ;;
1778 esac
1779 case " $ac_configure_args " in
1780 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
1781 *) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
1782 esac
1784 done
1785 if $ac_cache_corrupted; then
1786 { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
1787 echo "$as_me: error: changes in the environment can compromise the build" >&2;}
1788 { { echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
1789 echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
1790 { (exit 1); exit 1; }; }
1817 ac_ext=c
1818 ac_cpp='$CPP $CPPFLAGS'
1819 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1820 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1821 ac_compiler_gnu=$ac_cv_c_compiler_gnu
1824 ac_config_headers="$ac_config_headers src/config.h:src/config.in"
1828 test "$program_prefix" != NONE &&
1829 program_transform_name="s&^&$program_prefix&;$program_transform_name"
1830 # Use a double $ so make ignores it.
1831 test "$program_suffix" != NONE &&
1832 program_transform_name="s&\$&$program_suffix&;$program_transform_name"
1833 # Double any \ or $. echo might interpret backslashes.
1834 # By default was `s,x,x', remove it if useless.
1835 cat <<\_ACEOF >conftest.sed
1836 s/[\\$]/&&/g;s/;s,x,x,$//
1837 _ACEOF
1838 program_transform_name=`echo $program_transform_name | sed -f conftest.sed`
1839 rm -f conftest.sed
1842 lispdir='${datadir}/emacs/${version}/lisp'
1843 locallisppath='${datadir}/emacs/${version}/site-lisp:'\
1844 '${datadir}/emacs/site-lisp'
1845 lisppath='${locallisppath}:${lispdir}:${datadir}/emacs/${version}/leim'
1846 etcdir='${datadir}/emacs/${version}/etc'
1847 archlibdir='${libexecdir}/emacs/${version}/${configuration}'
1848 docdir='${datadir}/emacs/${version}/etc'
1849 gamedir='${localstatedir}/games/emacs'
1851 gameuser=games
1856 # Check whether --with-pop was given.
1857 if test "${with_pop+set}" = set; then
1858 withval=$with_pop;
1859 else
1860 with_pop=yes
1863 if test "$with_pop" = yes; then
1864 cat >>confdefs.h <<\_ACEOF
1865 #define MAIL_USE_POP 1
1866 _ACEOF
1872 # Check whether --with-kerberos was given.
1873 if test "${with_kerberos+set}" = set; then
1874 withval=$with_kerberos;
1875 else
1876 with_kerberos=no
1879 if test "$with_kerberos" = yes; then
1880 cat >>confdefs.h <<\_ACEOF
1881 #define KERBEROS 1
1882 _ACEOF
1888 # Check whether --with-kerberos5 was given.
1889 if test "${with_kerberos5+set}" = set; then
1890 withval=$with_kerberos5;
1891 else
1892 with_kerberos5=no
1895 if test "${with_kerberos5}" = yes; then
1896 if test "${with_kerberos}" != yes; then
1897 with_kerberos=yes
1898 cat >>confdefs.h <<\_ACEOF
1899 #define KERBEROS 1
1900 _ACEOF
1904 cat >>confdefs.h <<\_ACEOF
1905 #define KERBEROS5 1
1906 _ACEOF
1911 # Check whether --with-hesiod was given.
1912 if test "${with_hesiod+set}" = set; then
1913 withval=$with_hesiod;
1914 else
1915 with_hesiod=no
1918 if test "$with_hesiod" = yes; then
1920 cat >>confdefs.h <<\_ACEOF
1921 #define HESIOD 1
1922 _ACEOF
1927 # Check whether --with-sound was given.
1928 if test "${with_sound+set}" = set; then
1929 withval=$with_sound;
1930 else
1931 with_sound=yes
1936 # Check whether --with-sync-input was given.
1937 if test "${with_sync_input+set}" = set; then
1938 withval=$with_sync_input;
1939 else
1940 with_sync_input=yes
1943 if test "$with_sync_input" = yes; then
1945 cat >>confdefs.h <<\_ACEOF
1946 #define SYNC_INPUT 1
1947 _ACEOF
1952 # Check whether --with-x-toolkit was given.
1953 if test "${with_x_toolkit+set}" = set; then
1954 withval=$with_x_toolkit; case "${withval}" in
1955 y | ye | yes ) val=gtk ;;
1956 n | no ) val=no ;;
1957 l | lu | luc | luci | lucid ) val=lucid ;;
1958 a | at | ath | athe | athen | athena ) val=athena ;;
1959 m | mo | mot | moti | motif ) val=motif ;;
1960 g | gt | gtk ) val=gtk ;;
1962 { { echo "$as_me:$LINENO: error: \`--with-x-toolkit=$withval' is invalid;
1963 this option's value should be \`yes', \`no', \`lucid', \`athena', \`motif' or \`gtk'.
1964 \`yes' and \`gtk' are synonyms. \`athena' and \`lucid' are synonyms." >&5
1965 echo "$as_me: error: \`--with-x-toolkit=$withval' is invalid;
1966 this option's value should be \`yes', \`no', \`lucid', \`athena', \`motif' or \`gtk'.
1967 \`yes' and \`gtk' are synonyms. \`athena' and \`lucid' are synonyms." >&2;}
1968 { (exit 1); exit 1; }; }
1970 esac
1971 with_x_toolkit=$val
1977 # Check whether --with-xpm was given.
1978 if test "${with_xpm+set}" = set; then
1979 withval=$with_xpm;
1980 else
1981 with_xpm=yes
1985 # Check whether --with-jpeg was given.
1986 if test "${with_jpeg+set}" = set; then
1987 withval=$with_jpeg;
1988 else
1989 with_jpeg=yes
1993 # Check whether --with-tiff was given.
1994 if test "${with_tiff+set}" = set; then
1995 withval=$with_tiff;
1996 else
1997 with_tiff=yes
2001 # Check whether --with-gif was given.
2002 if test "${with_gif+set}" = set; then
2003 withval=$with_gif;
2004 else
2005 with_gif=yes
2009 # Check whether --with-png was given.
2010 if test "${with_png+set}" = set; then
2011 withval=$with_png;
2012 else
2013 with_png=yes
2017 # Check whether --with-rsvg was given.
2018 if test "${with_rsvg+set}" = set; then
2019 withval=$with_rsvg;
2020 else
2021 with_rsvg=yes
2026 # Check whether --with-freetype was given.
2027 if test "${with_freetype+set}" = set; then
2028 withval=$with_freetype;
2029 else
2030 with_freetype=yes
2034 # Check whether --with-xft was given.
2035 if test "${with_xft+set}" = set; then
2036 withval=$with_xft;
2037 else
2038 with_xft=yes
2042 # Check whether --with-libotf was given.
2043 if test "${with_libotf+set}" = set; then
2044 withval=$with_libotf;
2045 else
2046 with_libotf=yes
2050 # Check whether --with-m17n-flt was given.
2051 if test "${with_m17n_flt+set}" = set; then
2052 withval=$with_m17n_flt;
2053 else
2054 with_m17n_flt=yes
2059 # Check whether --with-toolkit-scroll-bars was given.
2060 if test "${with_toolkit_scroll_bars+set}" = set; then
2061 withval=$with_toolkit_scroll_bars;
2062 else
2063 with_toolkit_scroll_bars=yes
2067 # Check whether --with-xaw3d was given.
2068 if test "${with_xaw3d+set}" = set; then
2069 withval=$with_xaw3d;
2070 else
2071 with_xaw3d=yes
2075 # Check whether --with-xim was given.
2076 if test "${with_xim+set}" = set; then
2077 withval=$with_xim;
2078 else
2079 with_xim=yes
2083 # Check whether --with-carbon was given.
2084 if test "${with_carbon+set}" = set; then
2085 withval=$with_carbon;
2086 else
2087 with_carbon=no
2092 # Check whether --with-gpm was given.
2093 if test "${with_gpm+set}" = set; then
2094 withval=$with_gpm;
2095 else
2096 with_gpm=yes
2100 # Check whether --with-dbus was given.
2101 if test "${with_dbus+set}" = set; then
2102 withval=$with_dbus;
2103 else
2104 with_dbus=yes
2108 ## For the times when you want to build Emacs but don't have
2109 ## a suitable makeinfo, and can live without the manuals.
2111 # Check whether --with-makeinfo was given.
2112 if test "${with_makeinfo+set}" = set; then
2113 withval=$with_makeinfo;
2114 else
2115 with_makeinfo=yes
2120 # Check whether --with-gtk was given.
2121 if test "${with_gtk+set}" = set; then
2122 withval=$with_gtk; { { echo "$as_me:$LINENO: error: --with-gtk has been removed. Use --with-x-toolkit to
2123 specify a toolkit." >&5
2124 echo "$as_me: error: --with-gtk has been removed. Use --with-x-toolkit to
2125 specify a toolkit." >&2;}
2126 { (exit 1); exit 1; }; }
2131 # Check whether --with-gcc was given.
2132 if test "${with_gcc+set}" = set; then
2133 withval=$with_gcc; { { echo "$as_me:$LINENO: error: --with-gcc has been removed. Set the \`CC' environment
2134 variable to specify a compiler." >&5
2135 echo "$as_me: error: --with-gcc has been removed. Set the \`CC' environment
2136 variable to specify a compiler." >&2;}
2137 { (exit 1); exit 1; }; }
2142 # Check whether --with-pkg-config-prog was given.
2143 if test "${with_pkg_config_prog+set}" = set; then
2144 withval=$with_pkg_config_prog;
2147 if test "X${with_pkg_config_prog}" != X; then
2148 if test "${with_pkg_config_prog}" != yes; then
2149 PKG_CONFIG="${with_pkg_config_prog}"
2153 # Check whether --enable-carbon-app was given.
2154 if test "${enable_carbon_app+set}" = set; then
2155 enableval=$enable_carbon_app; carbon_appdir_x=${enableval}
2159 ## Enabled by default.
2160 # Check whether --enable-font-backend was given.
2161 if test "${enable_font_backend+set}" = set; then
2162 enableval=$enable_font_backend; USE_FONT_BACKEND=$enableval
2163 else
2164 USE_FONT_BACKEND=yes
2168 # Check whether --enable-asserts was given.
2169 if test "${enable_asserts+set}" = set; then
2170 enableval=$enable_asserts; USE_XASSERTS=$enableval
2171 else
2172 USE_XASSERTS=no
2176 # Check whether --enable-maintainer-mode was given.
2177 if test "${enable_maintainer_mode+set}" = set; then
2178 enableval=$enable_maintainer_mode; USE_MAINTAINER_MODE=$enableval
2179 else
2180 USE_MAINTAINER_MODE=no
2183 if test $USE_MAINTAINER_MODE = yes; then
2184 MAINT=
2185 else
2186 MAINT=#
2190 # Check whether --enable-locallisppath was given.
2191 if test "${enable_locallisppath+set}" = set; then
2192 enableval=$enable_locallisppath; if test "${enableval}" = "no"; then
2193 locallisppath=
2194 elif test "${enableval}" != "yes"; then
2195 locallisppath=${enableval}
2200 #### Make srcdir absolute, if it isn't already. It's important to
2201 #### avoid running the path through pwd unnecessarily, since pwd can
2202 #### give you automounter prefixes, which can go away. We do all this
2203 #### so Emacs can find its files when run uninstalled.
2204 ## Make sure CDPATH doesn't affect cd (in case PWD is relative).
2205 unset CDPATH
2206 case "${srcdir}" in
2207 /* ) ;;
2209 ## We may be able to use the $PWD environment variable to make this
2210 ## absolute. But sometimes PWD is inaccurate.
2211 ## Note: we used to use ${PWD} at the end instead of `pwd`,
2212 ## but that tested only for a well-formed and valid PWD,
2213 ## it did not object when PWD was well-formed and valid but just wrong.
2214 if test ".${PWD}" != "." && test ".`(cd ${PWD} ; sh -c pwd)`" = ".`pwd`" ;
2215 then
2216 srcdir="$PWD"
2217 else
2218 srcdir="`(cd ${srcdir}; pwd)`"
2221 * ) srcdir="`(cd ${srcdir}; pwd)`" ;;
2222 esac
2224 #### Check if the source directory already has a configured system in it.
2225 if test `pwd` != `(cd ${srcdir} && pwd)` \
2226 && test -f "${srcdir}/src/config.h" ; then
2227 { echo "$as_me:$LINENO: WARNING: The directory tree \`${srcdir}' is being used
2228 as a build directory right now; it has been configured in its own
2229 right. To configure in another directory as well, you MUST
2230 use GNU make. If you do not have GNU make, then you must
2231 now do \`make distclean' in ${srcdir},
2232 and then run $0 again." >&5
2233 echo "$as_me: WARNING: The directory tree \`${srcdir}' is being used
2234 as a build directory right now; it has been configured in its own
2235 right. To configure in another directory as well, you MUST
2236 use GNU make. If you do not have GNU make, then you must
2237 now do \`make distclean' in ${srcdir},
2238 and then run $0 again." >&2;}
2241 #### Given the configuration name, set machfile and opsysfile to the
2242 #### names of the m/*.h and s/*.h files we should use.
2244 ### Canonicalize the configuration name.
2246 ac_aux_dir=
2247 for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do
2248 if test -f "$ac_dir/install-sh"; then
2249 ac_aux_dir=$ac_dir
2250 ac_install_sh="$ac_aux_dir/install-sh -c"
2251 break
2252 elif test -f "$ac_dir/install.sh"; then
2253 ac_aux_dir=$ac_dir
2254 ac_install_sh="$ac_aux_dir/install.sh -c"
2255 break
2256 elif test -f "$ac_dir/shtool"; then
2257 ac_aux_dir=$ac_dir
2258 ac_install_sh="$ac_aux_dir/shtool install -c"
2259 break
2261 done
2262 if test -z "$ac_aux_dir"; then
2263 { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" >&5
2264 echo "$as_me: error: cannot find install-sh or install.sh in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" >&2;}
2265 { (exit 1); exit 1; }; }
2268 # These three variables are undocumented and unsupported,
2269 # and are intended to be withdrawn in a future Autoconf release.
2270 # They can cause serious problems if a builder's source tree is in a directory
2271 # whose full name contains unusual characters.
2272 ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
2273 ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
2274 ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var.
2277 # Make sure we can run config.sub.
2278 $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
2279 { { echo "$as_me:$LINENO: error: cannot run $SHELL $ac_aux_dir/config.sub" >&5
2280 echo "$as_me: error: cannot run $SHELL $ac_aux_dir/config.sub" >&2;}
2281 { (exit 1); exit 1; }; }
2283 { echo "$as_me:$LINENO: checking build system type" >&5
2284 echo $ECHO_N "checking build system type... $ECHO_C" >&6; }
2285 if test "${ac_cv_build+set}" = set; then
2286 echo $ECHO_N "(cached) $ECHO_C" >&6
2287 else
2288 ac_build_alias=$build_alias
2289 test "x$ac_build_alias" = x &&
2290 ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
2291 test "x$ac_build_alias" = x &&
2292 { { echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5
2293 echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
2294 { (exit 1); exit 1; }; }
2295 ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
2296 { { echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&5
2297 echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&2;}
2298 { (exit 1); exit 1; }; }
2301 { echo "$as_me:$LINENO: result: $ac_cv_build" >&5
2302 echo "${ECHO_T}$ac_cv_build" >&6; }
2303 case $ac_cv_build in
2304 *-*-*) ;;
2305 *) { { echo "$as_me:$LINENO: error: invalid value of canonical build" >&5
2306 echo "$as_me: error: invalid value of canonical build" >&2;}
2307 { (exit 1); exit 1; }; };;
2308 esac
2309 build=$ac_cv_build
2310 ac_save_IFS=$IFS; IFS='-'
2311 set x $ac_cv_build
2312 shift
2313 build_cpu=$1
2314 build_vendor=$2
2315 shift; shift
2316 # Remember, the first character of IFS is used to create $*,
2317 # except with old shells:
2318 build_os=$*
2319 IFS=$ac_save_IFS
2320 case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
2323 { echo "$as_me:$LINENO: checking host system type" >&5
2324 echo $ECHO_N "checking host system type... $ECHO_C" >&6; }
2325 if test "${ac_cv_host+set}" = set; then
2326 echo $ECHO_N "(cached) $ECHO_C" >&6
2327 else
2328 if test "x$host_alias" = x; then
2329 ac_cv_host=$ac_cv_build
2330 else
2331 ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
2332 { { echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&5
2333 echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&2;}
2334 { (exit 1); exit 1; }; }
2338 { echo "$as_me:$LINENO: result: $ac_cv_host" >&5
2339 echo "${ECHO_T}$ac_cv_host" >&6; }
2340 case $ac_cv_host in
2341 *-*-*) ;;
2342 *) { { echo "$as_me:$LINENO: error: invalid value of canonical host" >&5
2343 echo "$as_me: error: invalid value of canonical host" >&2;}
2344 { (exit 1); exit 1; }; };;
2345 esac
2346 host=$ac_cv_host
2347 ac_save_IFS=$IFS; IFS='-'
2348 set x $ac_cv_host
2349 shift
2350 host_cpu=$1
2351 host_vendor=$2
2352 shift; shift
2353 # Remember, the first character of IFS is used to create $*,
2354 # except with old shells:
2355 host_os=$*
2356 IFS=$ac_save_IFS
2357 case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
2360 canonical=$host
2361 configuration=${host_alias-${build_alias-$host}}
2365 ### If you add support for a new configuration, add code to this
2366 ### switch statement to recognize your configuration name and select
2367 ### the appropriate operating system and machine description files.
2369 ### You would hope that you could choose an m/*.h file pretty much
2370 ### based on the machine portion of the configuration name, and an s-
2371 ### file based on the operating system portion. However, it turns out
2372 ### that each m/*.h file is pretty manufacturer-specific - for
2373 ### example hp9000s300.h is a 68000 machine;
2374 ### mips.h, pmax.h are all MIPS
2375 ### machines. So we basically have to have a special case for each
2376 ### configuration name.
2378 ### As far as handling version numbers on operating systems is
2379 ### concerned, make sure things will fail in a fixable way. If
2380 ### /etc/MACHINES doesn't say anything about version numbers, be
2381 ### prepared to handle anything reasonably. If version numbers
2382 ### matter, be sure /etc/MACHINES says something about it.
2384 ### Eric Raymond says we should accept strings like "sysvr4" to mean
2385 ### "System V Release 4"; he writes, "The old convention encouraged
2386 ### confusion between `system' and `release' levels'."
2388 machine='' opsys='' unported=no
2389 case "${canonical}" in
2391 ## FreeBSD ports
2392 *-*-freebsd* )
2393 opsys=freebsd
2394 case "${canonical}" in
2395 alpha*-*-freebsd*) machine=alpha ;;
2396 arm*-*-freebsd*) machine=arm ;;
2397 ia64-*-freebsd*) machine=ia64 ;;
2398 sparc64-*-freebsd*) machine=sparc ;;
2399 powerpc-*-freebsd*) machine=macppc ;;
2400 i[3456]86-*-freebsd*) machine=intel386 ;;
2401 amd64-*-freebsd*|x86_64-*-freebsd*) machine=amdx86-64 ;;
2402 esac
2405 ## FreeBSD kernel + glibc based userland
2406 *-*-kfreebsd*gnu* )
2407 opsys=gnu-kfreebsd
2408 case "${canonical}" in
2409 alpha*-*-kfreebsd*) machine=alpha ;;
2410 ia64-*-kfreebsd*) machine=ia64 ;;
2411 sparc64-*-kfreebsd*) machine=sparc ;;
2412 powerpc-*-kfreebsd*) machine=macppc ;;
2413 i[3456]86-*-kfreebsd*) machine=intel386 ;;
2414 amd64-*-kfreebsd*|x86_64-*-kfreebsd*) machine=amdx86-64 ;;
2415 esac
2418 ## NetBSD ports
2419 *-*-netbsd* )
2420 opsys=netbsd
2421 if test -f /usr/lib/crti.o; then
2423 cat >>confdefs.h <<\_ACEOF
2424 #define HAVE_CRTIN
2425 _ACEOF
2429 case "${canonical}" in
2430 alpha*-*-netbsd*) machine=alpha ;;
2431 i[3456]86-*-netbsd*) machine=intel386 ;;
2432 m68k-*-netbsd*)
2433 # This is somewhat bogus.
2434 machine=hp9000s300 ;;
2435 mips-*-netbsd*) machine=pmax ;;
2436 mipsel-*-netbsd*) machine=pmax ;;
2437 mipseb-*-netbsd*) machine=pmax ;;
2438 powerpc-*-netbsd*) machine=macppc ;;
2439 sparc*-*-netbsd*) machine=sparc ;;
2440 vax-*-netbsd*) machine=vax ;;
2441 arm-*-netbsd*) machine=arm ;;
2442 x86_64-*-netbsd*) machine=amdx86-64 ;;
2443 hppa-*-netbsd*) machine=hp800 ;;
2444 esac
2447 ## OpenBSD ports
2448 *-*-openbsd* )
2449 opsys=openbsd
2450 case "${canonical}" in
2451 alpha*-*-openbsd*) machine=alpha ;;
2452 arm-*-openbsd*) machine=arm ;;
2453 hppa-*-openbsd*) machine=hp9000s300 ;;
2454 i386-*-openbsd*) machine=intel386 ;;
2455 m68k-*-openbsd*) machine=hp9000s300 ;;
2456 powerpc-*-openbsd*) machine=macppc ;;
2457 sparc*-*-openbsd*) machine=sparc ;;
2458 vax-*-openbsd*) machine=vax ;;
2459 x86_64-*-openbsd*) machine=amdx86-64 ;;
2460 esac
2463 ## LynxOS ports
2464 *-*-lynxos* )
2465 opsys=lynxos
2466 case "${canonical}" in
2467 i[3456]86-*-lynxos*) machine=intel386 ;;
2468 powerpc-*-lynxos*) machine=powerpc ;;
2469 esac
2472 ## BSDI ports
2473 *-*-bsdi* )
2474 opsys=bsdi
2475 case "${canonical}" in
2476 i[345]86-*-bsdi*) machine=intel386 ;;
2477 sparc-*-bsdi*) machine=sparc ;;
2478 powerpc-*-bsdi*) machine=macppc ;;
2479 esac
2480 case "${canonical}" in
2481 *-*-bsd386* | *-*-bsdi1* ) opsys=bsd386 ;;
2482 *-*-bsdi2.0* ) opsys=bsdos2 ;;
2483 *-*-bsdi2* ) opsys=bsdos2-1 ;;
2484 *-*-bsdi3* ) opsys=bsdos3 ;;
2485 *-*-bsdi[45]* ) opsys=bsdos4 ;;
2486 esac
2489 alpha*-*-linux-gnu* )
2490 machine=alpha opsys=gnu-linux
2493 arm*-*-linux-gnu* )
2494 machine=arm opsys=gnu-linux
2497 ## Apple Darwin / Mac OS X
2498 *-apple-darwin* )
2499 case "${canonical}" in
2500 i[3456]86-* ) machine=intel386 ;;
2501 powerpc-* ) machine=powermac ;;
2502 * ) unported=yes ;;
2503 esac
2504 opsys=darwin
2505 # Define CPP as follows to make autoconf work correctly.
2506 CPP="${CC-cc} -E -no-cpp-precomp"
2507 # Use fink packages if available.
2508 if test -d /sw/include && test -d /sw/lib; then
2509 GCC_TEST_OPTIONS="-I/sw/include -L/sw/lib"
2510 CPP="${CPP} ${GCC_TEST_OPTIONS}"
2511 NON_GCC_TEST_OPTIONS=${GCC_TEST_OPTIONS}
2515 ## Cubix QBx/386
2516 i[3456]86-cubix-sysv* )
2517 machine=intel386 opsys=usg5-3
2520 mips-dec-ultrix[0-3].* | mips-dec-ultrix4.0* | mips-dec-bsd4.2* )
2521 machine=pmax opsys=bsd4-2
2523 mips-dec-ultrix4.[12]* | mips-dec-bsd* )
2524 machine=pmax opsys=bsd4-3
2526 mips-dec-ultrix* )
2527 machine=pmax opsys=ultrix4-3
2529 ## HP 9000 series 200 or 300
2530 m68*-hp-bsd* )
2531 machine=hp9000s300 opsys=bsd4-3
2533 ## HP/UX 7, 8, 9, and 10 are supported on these machines.
2534 m68*-hp-hpux* )
2535 case "`uname -r`" in
2536 ## Someone's system reports A.B8.05 for this.
2537 ## I wonder what other possibilities there are.
2538 *.B8.* ) machine=hp9000s300 opsys=hpux8 ;;
2539 *.08.* ) machine=hp9000s300 opsys=hpux8 ;;
2540 *.09.* ) machine=hp9000s300 opsys=hpux9 ;;
2541 *.1[0-9].* ) machine=hp9000s300 opsys=hpux9shr ;;
2542 *) machine=hp9000s300 opsys=hpux ;;
2543 esac
2546 ## HP 9000 series 700 and 800, running HP/UX
2547 hppa*-hp-hpux7* )
2548 machine=hp800 opsys=hpux
2550 hppa*-hp-hpux8* )
2551 machine=hp800 opsys=hpux8
2553 hppa*-hp-hpux9shr* )
2554 machine=hp800 opsys=hpux9shr
2556 hppa*-hp-hpux9* )
2557 machine=hp800 opsys=hpux9
2559 hppa*-hp-hpux10.2* )
2560 machine=hp800 opsys=hpux10-20
2562 hppa*-hp-hpux10* )
2563 machine=hp800 opsys=hpux10
2565 hppa*-hp-hpux1[1-9]* )
2566 machine=hp800 opsys=hpux11
2567 CFLAGS="-D_INCLUDE__STDC_A1_SOURCE $CFLAGS"
2570 hppa*-*-linux-gnu* )
2571 machine=hp800 opsys=gnu-linux
2574 ## HP 9000 series 700 and 800, running HP/UX
2575 hppa*-hp-hpux* )
2576 ## Cross-compilation? Nah!
2577 case "`uname -r`" in
2578 ## Someone's system reports A.B8.05 for this.
2579 ## I wonder what other possibilities there are.
2580 *.B8.* ) machine=hp800 opsys=hpux8 ;;
2581 *.08.* ) machine=hp800 opsys=hpux8 ;;
2582 *.09.* ) machine=hp800 opsys=hpux9 ;;
2583 *) machine=hp800 opsys=hpux10 ;;
2584 esac
2586 hppa*-*-nextstep* )
2587 machine=hp800 opsys=nextstep
2590 ## IBM machines
2591 i370-ibm-aix*)
2592 machine=ibm370aix opsys=usg5-3
2594 s390-*-linux-gnu* )
2595 machine=ibms390 opsys=gnu-linux
2597 s390x-*-linux-gnu* )
2598 machine=ibms390x opsys=gnu-linux
2600 rs6000-ibm-aix3.1* | powerpc-ibm-aix3.1* )
2601 machine=ibmrs6000 opsys=aix3-1
2603 rs6000-ibm-aix3.2.5 | powerpc-ibm-aix3.2.5 )
2604 machine=ibmrs6000 opsys=aix3-2-5
2606 rs6000-ibm-aix4.1* | powerpc-ibm-aix4.1* )
2607 machine=ibmrs6000 opsys=aix4-1
2609 rs6000-ibm-aix4.2* | powerpc-ibm-aix4.2* )
2610 machine=ibmrs6000 opsys=aix4-2
2612 rs6000-ibm-aix4.3* | powerpc-ibm-aix4.3* )
2613 machine=ibmrs6000 opsys=aix4-2
2615 rs6000-ibm-aix5* | powerpc-ibm-aix5* )
2616 machine=ibmrs6000 opsys=aix4-2
2618 rs6000-ibm-aix5* | powerpc-ibm-aix6* )
2619 machine=ibmrs6000 opsys=aix4-2
2621 rs6000-ibm-aix4.0* | powerpc-ibm-aix4.0* )
2622 machine=ibmrs6000 opsys=aix4
2624 rs6000-ibm-aix4* | powerpc-ibm-aix4* )
2625 machine=ibmrs6000 opsys=aix4-1
2627 rs6000-ibm-aix* | powerpc-ibm-aix* )
2628 machine=ibmrs6000 opsys=aix3-2
2631 ## Prime EXL
2632 i[3456]86-prime-sysv* )
2633 machine=i386 opsys=usg5-3
2636 ## ncr machine running svr4.3.
2637 i[3456]86-ncr-sysv4.3 )
2638 machine=ncr386 opsys=usg5-4-3
2641 ## Unspecified sysv on an ncr machine defaults to svr4.2.
2642 ## (Plain usg5-4 doesn't turn on POSIX signals, which we need.)
2643 i[3456]86-ncr-sysv* )
2644 machine=ncr386 opsys=usg5-4-2
2647 ## Macintosh PowerPC
2648 powerpc*-*-linux-gnu* )
2649 machine=macppc opsys=gnu-linux
2652 ## Workstations sold by MIPS
2653 ## This is not necessarily all workstations using the MIPS processor -
2654 ## Irises are produced by SGI, and DECstations by DEC.
2656 mips-mips-bsd* )
2657 machine=mips opsys=bsd4-3
2659 mips-mips-* )
2660 machine=mips opsys=usg5-2-2
2663 ## NeXT
2664 m68*-next-* | m68k-*-nextstep* )
2665 machine=m68k opsys=nextstep
2668 ## NEC EWS4800
2669 mips-nec-sysv4*)
2670 machine=ews4800 opsys=ux4800
2673 ## Siemens Nixdorf
2674 mips-siemens-sysv* | mips-sni-sysv*)
2675 machine=mips-siemens opsys=usg5-4
2676 NON_GNU_CC=/usr/ccs/bin/cc
2677 NON_GNU_CPP=/usr/ccs/lib/cpp
2680 ## Silicon Graphics machines
2681 ## Iris 4D
2682 mips-sgi-irix6.5 )
2683 machine=iris4d opsys=irix6-5
2684 # Without defining _LANGUAGE_C, things get masked out in the headers
2685 # so that, for instance, grepping for `free' in stdlib.h fails and
2686 # AC_HEADER_STD_C fails. (MIPSPro 7.2.1.2m compilers, Irix 6.5.3m).
2687 NON_GNU_CPP="/lib/cpp -D_LANGUAGE_C"
2688 NON_GCC_TEST_OPTIONS="-D_LANGUAGE_C"
2691 ## Suns
2692 sparc-*-linux-gnu* | sparc64-*-linux-gnu* )
2693 machine=sparc opsys=gnu-linux
2696 *-auspex-sunos* | *-sun-sunos* | *-sun-bsd* | *-sun-solaris* \
2697 | i[3456]86-*-solaris2* | i[3456]86-*-sunos5* | powerpc*-*-solaris2* \
2698 | rs6000-*-solaris2*)
2699 case "${canonical}" in
2700 i[3456]86-*-* ) machine=intel386 ;;
2701 amd64-*-*|x86_64-*-*) machine=amdx86-64 ;;
2702 powerpcle* ) machine=powerpcle ;;
2703 powerpc* | rs6000* ) machine=ibmrs6000 ;;
2704 sparc* ) machine=sparc ;;
2705 * ) unported=yes ;;
2706 esac
2707 case "${canonical}" in
2708 *-sunos5.3* | *-solaris2.3* )
2709 opsys=sol2-3
2710 NON_GNU_CPP=/usr/ccs/lib/cpp
2712 *-sunos5.4* | *-solaris2.4* )
2713 opsys=sol2-4
2714 NON_GNU_CPP=/usr/ccs/lib/cpp
2715 RANLIB="ar -ts"
2717 *-sunos5.5* | *-solaris2.5* )
2718 opsys=sol2-5
2719 NON_GNU_CPP=/usr/ccs/lib/cpp
2720 RANLIB="ar -ts"
2722 *-sunos5.6* | *-solaris2.6* )
2723 opsys=sol2-6
2724 NON_GNU_CPP=/usr/ccs/lib/cpp
2725 RANLIB="ar -ts"
2727 *-sunos5* | *-solaris* )
2728 opsys=sol2-6
2729 emacs_check_sunpro_c=yes
2730 NON_GNU_CPP=/usr/ccs/lib/cpp
2732 * ) opsys=bsd4-2 ;;
2733 esac
2734 ## Watch out for a compiler that we know will not work.
2735 case "${canonical}" in
2736 *-solaris* | *-sunos5* )
2737 if [ "x$CC" = x/usr/ucb/cc ]; then
2738 ## /usr/ucb/cc doesn't work;
2739 ## we should find some other compiler that does work.
2740 unset CC
2743 *) ;;
2744 esac
2746 sparc-*-nextstep* )
2747 machine=sparc opsys=nextstep
2750 ## Tandem Integrity S2
2751 mips-tandem-sysv* )
2752 machine=tandem-s2 opsys=usg5-3
2755 ## Vaxen.
2756 vax-dec-* )
2757 machine=vax
2758 case "${canonical}" in
2759 *-bsd4.1* ) opsys=bsd4-1 ;;
2760 *-bsd4.2* | *-ultrix[0-3].* | *-ultrix4.0* ) opsys=bsd4-2 ;;
2761 *-bsd4.3* | *-ultrix* ) opsys=bsd4-3 ;;
2762 *-sysv[01]* | *-sysvr[01]* ) opsys=usg5-0 ;;
2763 *-sysv2* | *-sysvr2* ) opsys=usg5-2 ;;
2764 *-vms* ) opsys=vms ;;
2765 * ) unported=yes
2766 esac
2769 ## IA-64
2770 ia64*-*-linux* )
2771 machine=ia64 opsys=gnu-linux
2774 ## Intel 386 machines where we don't care about the manufacturer
2775 i[3456]86-*-* )
2776 machine=intel386
2777 case "${canonical}" in
2778 *-cygwin ) opsys=cygwin ;;
2779 *-darwin* ) opsys=darwin
2780 CPP="${CC-cc} -E -no-cpp-precomp"
2782 *-linux-gnu* ) opsys=gnu-linux ;;
2783 *-sysv4.2uw* ) opsys=unixware; NON_GNU_CPP=/lib/cpp ;;
2784 *-sysv5uw* ) opsys=unixware; NON_GNU_CPP=/lib/cpp ;;
2785 *-sysv5OpenUNIX* ) opsys=unixware; NON_GNU_CPP=/lib/cpp ;;
2786 *-386bsd* ) opsys=386bsd ;;
2787 *-nextstep* ) opsys=nextstep ;;
2788 ## Otherwise, we'll fall through to the generic opsys code at the bottom.
2789 esac
2792 ## m68k Linux-based GNU system
2793 m68k-*-linux-gnu* )
2794 machine=m68k opsys=gnu-linux
2797 ## Mips Linux-based GNU system
2798 mips-*-linux-gnu* | mipsel-*-linux-gnu* )
2799 machine=mips opsys=gnu-linux
2802 ## UXP/DS
2803 sparc-fujitsu-sysv4* )
2804 machine=sparc opsys=uxpds
2805 NON_GNU_CPP=/usr/ccs/lib/cpp
2806 RANLIB="ar -ts"
2809 ## AMD x86-64 Linux-based GNU system
2810 x86_64-*-linux-gnu* )
2811 machine=amdx86-64 opsys=gnu-linux
2814 ## Tensilica Xtensa Linux-based GNU system
2815 xtensa*-*-linux-gnu* )
2816 machine=xtensa opsys=gnu-linux
2820 unported=yes
2822 esac
2824 ### If the code above didn't choose an operating system, just choose
2825 ### an operating system based on the configuration name. You really
2826 ### only want to use this when you have no idea what the right
2827 ### operating system is; if you know what operating systems a machine
2828 ### runs, it's cleaner to make it explicit in the case statement
2829 ### above.
2830 if test x"${opsys}" = x; then
2831 case "${canonical}" in
2832 *-gnu* ) opsys=gnu ;;
2833 *-bsd4.[01] ) opsys=bsd4-1 ;;
2834 *-bsd4.2 ) opsys=bsd4-2 ;;
2835 *-bsd4.3 ) opsys=bsd4-3 ;;
2836 *-sysv0 | *-sysvr0 ) opsys=usg5-0 ;;
2837 *-sysv2 | *-sysvr2 ) opsys=usg5-2 ;;
2838 *-sysv2.2 | *-sysvr2.2 ) opsys=usg5-2-2 ;;
2839 *-sysv3* | *-sysvr3* ) opsys=usg5-3 ;;
2840 *-sysv4.2uw* ) opsys=unixware ;;
2841 *-sysv5uw* ) opsys=unixware ;;
2842 *-sysv5OpenUNIX* ) opsys=unixware ;;
2843 *-sysv4.1* | *-sysvr4.1* )
2844 NON_GNU_CPP=/usr/lib/cpp
2845 opsys=usg5-4 ;;
2846 *-sysv4.[2-9]* | *-sysvr4.[2-9]* )
2847 if [ x$NON_GNU_CPP = x ]; then
2848 if [ -f /usr/ccs/lib/cpp ]; then
2849 NON_GNU_CPP=/usr/ccs/lib/cpp
2850 else
2851 NON_GNU_CPP=/lib/cpp
2854 opsys=usg5-4-2 ;;
2855 *-sysv4* | *-sysvr4* ) opsys=usg5-4 ;;
2857 unported=yes
2859 esac
2862 ### Tests for sytems that we beleive are obsolete and should be desupported.
2864 case "${machine}" in
2865 pmax | hp9000s300 | ibm370aix | ncr386 | ews4800 | mips-siemens | powerpcle | tandem-s2 )
2866 echo "The system that you are configuring on: ${canonical} is considered to be obsolete"
2867 echo "and it is planned to be desupported in the next version of Emacs"
2868 echo "Please email emacs-devel@gnu.org as soon as possible if this system is still in use."
2869 echo "The code is still functional, but you need to edit the 'configure' script and remove the"
2870 echo "exit 33 line. After that you can run configure again and 'complete' the build."
2871 exit 33
2873 esac
2875 case "${opsys}" in
2876 bsd386 | bsdos2-1 | bsdos2 | bsdos3 | bsdos4 | bsd4-1 | bsd4-2 | bsd4-3 | usg5-0 | usg5-2-2 | usg5-2 | usg5-3 | ultrix4-3 | 386bsd | hpux | hpux8 | hpux9 | hpux9shr | hpux10 | aix3-1 | aix3-2-5 | aix3-2 | aix4-1 | nextstep | ux4800 | uxpds | uxpv )
2877 echo "The system that you are configuring on: ${canonical} is considered to be obsolete"
2878 echo "and it is planned to be desupported in the next version of Emacs"
2879 echo "Please email emacs-devel@gnu.org as soon as possible if this system is still in use."
2880 echo "The code is still functional, but you need to edit the 'configure' script and remove the"
2881 echo "'exit 44' line. After that you can run 'configure' again and complete the build."
2882 exit 44
2884 esac
2888 if test $unported = yes; then
2889 { { echo "$as_me:$LINENO: error: Emacs hasn't been ported to \`${canonical}' systems.
2890 Check \`etc/MACHINES' for recognized configuration names." >&5
2891 echo "$as_me: error: Emacs hasn't been ported to \`${canonical}' systems.
2892 Check \`etc/MACHINES' for recognized configuration names." >&2;}
2893 { (exit 1); exit 1; }; }
2896 machfile="m/${machine}.h"
2897 opsysfile="s/${opsys}.h"
2900 #### Choose a compiler.
2901 test -n "$CC" && cc_specified=yes
2903 # Save the value of CFLAGS that the user specified.
2904 SPECIFIED_CFLAGS="$CFLAGS"
2906 ac_ext=c
2907 ac_cpp='$CPP $CPPFLAGS'
2908 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2909 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2910 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2911 if test -n "$ac_tool_prefix"; then
2912 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
2913 set dummy ${ac_tool_prefix}gcc; ac_word=$2
2914 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2915 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2916 if test "${ac_cv_prog_CC+set}" = set; then
2917 echo $ECHO_N "(cached) $ECHO_C" >&6
2918 else
2919 if test -n "$CC"; then
2920 ac_cv_prog_CC="$CC" # Let the user override the test.
2921 else
2922 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2923 for as_dir in $PATH
2925 IFS=$as_save_IFS
2926 test -z "$as_dir" && as_dir=.
2927 for ac_exec_ext in '' $ac_executable_extensions; do
2928 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2929 ac_cv_prog_CC="${ac_tool_prefix}gcc"
2930 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2931 break 2
2933 done
2934 done
2935 IFS=$as_save_IFS
2939 CC=$ac_cv_prog_CC
2940 if test -n "$CC"; then
2941 { echo "$as_me:$LINENO: result: $CC" >&5
2942 echo "${ECHO_T}$CC" >&6; }
2943 else
2944 { echo "$as_me:$LINENO: result: no" >&5
2945 echo "${ECHO_T}no" >&6; }
2950 if test -z "$ac_cv_prog_CC"; then
2951 ac_ct_CC=$CC
2952 # Extract the first word of "gcc", so it can be a program name with args.
2953 set dummy gcc; ac_word=$2
2954 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2955 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2956 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2957 echo $ECHO_N "(cached) $ECHO_C" >&6
2958 else
2959 if test -n "$ac_ct_CC"; then
2960 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2961 else
2962 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2963 for as_dir in $PATH
2965 IFS=$as_save_IFS
2966 test -z "$as_dir" && as_dir=.
2967 for ac_exec_ext in '' $ac_executable_extensions; do
2968 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2969 ac_cv_prog_ac_ct_CC="gcc"
2970 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2971 break 2
2973 done
2974 done
2975 IFS=$as_save_IFS
2979 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2980 if test -n "$ac_ct_CC"; then
2981 { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2982 echo "${ECHO_T}$ac_ct_CC" >&6; }
2983 else
2984 { echo "$as_me:$LINENO: result: no" >&5
2985 echo "${ECHO_T}no" >&6; }
2988 if test "x$ac_ct_CC" = x; then
2989 CC=""
2990 else
2991 case $cross_compiling:$ac_tool_warned in
2992 yes:)
2993 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
2994 whose name does not start with the host triplet. If you think this
2995 configuration is useful to you, please write to autoconf@gnu.org." >&5
2996 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
2997 whose name does not start with the host triplet. If you think this
2998 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
2999 ac_tool_warned=yes ;;
3000 esac
3001 CC=$ac_ct_CC
3003 else
3004 CC="$ac_cv_prog_CC"
3007 if test -z "$CC"; then
3008 if test -n "$ac_tool_prefix"; then
3009 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
3010 set dummy ${ac_tool_prefix}cc; ac_word=$2
3011 { echo "$as_me:$LINENO: checking for $ac_word" >&5
3012 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
3013 if test "${ac_cv_prog_CC+set}" = set; then
3014 echo $ECHO_N "(cached) $ECHO_C" >&6
3015 else
3016 if test -n "$CC"; then
3017 ac_cv_prog_CC="$CC" # Let the user override the test.
3018 else
3019 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3020 for as_dir in $PATH
3022 IFS=$as_save_IFS
3023 test -z "$as_dir" && as_dir=.
3024 for ac_exec_ext in '' $ac_executable_extensions; do
3025 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3026 ac_cv_prog_CC="${ac_tool_prefix}cc"
3027 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3028 break 2
3030 done
3031 done
3032 IFS=$as_save_IFS
3036 CC=$ac_cv_prog_CC
3037 if test -n "$CC"; then
3038 { echo "$as_me:$LINENO: result: $CC" >&5
3039 echo "${ECHO_T}$CC" >&6; }
3040 else
3041 { echo "$as_me:$LINENO: result: no" >&5
3042 echo "${ECHO_T}no" >&6; }
3048 if test -z "$CC"; then
3049 # Extract the first word of "cc", so it can be a program name with args.
3050 set dummy cc; ac_word=$2
3051 { echo "$as_me:$LINENO: checking for $ac_word" >&5
3052 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
3053 if test "${ac_cv_prog_CC+set}" = set; then
3054 echo $ECHO_N "(cached) $ECHO_C" >&6
3055 else
3056 if test -n "$CC"; then
3057 ac_cv_prog_CC="$CC" # Let the user override the test.
3058 else
3059 ac_prog_rejected=no
3060 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3061 for as_dir in $PATH
3063 IFS=$as_save_IFS
3064 test -z "$as_dir" && as_dir=.
3065 for ac_exec_ext in '' $ac_executable_extensions; do
3066 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3067 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
3068 ac_prog_rejected=yes
3069 continue
3071 ac_cv_prog_CC="cc"
3072 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3073 break 2
3075 done
3076 done
3077 IFS=$as_save_IFS
3079 if test $ac_prog_rejected = yes; then
3080 # We found a bogon in the path, so make sure we never use it.
3081 set dummy $ac_cv_prog_CC
3082 shift
3083 if test $# != 0; then
3084 # We chose a different compiler from the bogus one.
3085 # However, it has the same basename, so the bogon will be chosen
3086 # first if we set CC to just the basename; use the full file name.
3087 shift
3088 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
3093 CC=$ac_cv_prog_CC
3094 if test -n "$CC"; then
3095 { echo "$as_me:$LINENO: result: $CC" >&5
3096 echo "${ECHO_T}$CC" >&6; }
3097 else
3098 { echo "$as_me:$LINENO: result: no" >&5
3099 echo "${ECHO_T}no" >&6; }
3104 if test -z "$CC"; then
3105 if test -n "$ac_tool_prefix"; then
3106 for ac_prog in cl.exe
3108 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3109 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
3110 { echo "$as_me:$LINENO: checking for $ac_word" >&5
3111 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
3112 if test "${ac_cv_prog_CC+set}" = set; then
3113 echo $ECHO_N "(cached) $ECHO_C" >&6
3114 else
3115 if test -n "$CC"; then
3116 ac_cv_prog_CC="$CC" # Let the user override the test.
3117 else
3118 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3119 for as_dir in $PATH
3121 IFS=$as_save_IFS
3122 test -z "$as_dir" && as_dir=.
3123 for ac_exec_ext in '' $ac_executable_extensions; do
3124 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3125 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
3126 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3127 break 2
3129 done
3130 done
3131 IFS=$as_save_IFS
3135 CC=$ac_cv_prog_CC
3136 if test -n "$CC"; then
3137 { echo "$as_me:$LINENO: result: $CC" >&5
3138 echo "${ECHO_T}$CC" >&6; }
3139 else
3140 { echo "$as_me:$LINENO: result: no" >&5
3141 echo "${ECHO_T}no" >&6; }
3145 test -n "$CC" && break
3146 done
3148 if test -z "$CC"; then
3149 ac_ct_CC=$CC
3150 for ac_prog in cl.exe
3152 # Extract the first word of "$ac_prog", so it can be a program name with args.
3153 set dummy $ac_prog; ac_word=$2
3154 { echo "$as_me:$LINENO: checking for $ac_word" >&5
3155 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
3156 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
3157 echo $ECHO_N "(cached) $ECHO_C" >&6
3158 else
3159 if test -n "$ac_ct_CC"; then
3160 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3161 else
3162 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3163 for as_dir in $PATH
3165 IFS=$as_save_IFS
3166 test -z "$as_dir" && as_dir=.
3167 for ac_exec_ext in '' $ac_executable_extensions; do
3168 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3169 ac_cv_prog_ac_ct_CC="$ac_prog"
3170 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3171 break 2
3173 done
3174 done
3175 IFS=$as_save_IFS
3179 ac_ct_CC=$ac_cv_prog_ac_ct_CC
3180 if test -n "$ac_ct_CC"; then
3181 { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
3182 echo "${ECHO_T}$ac_ct_CC" >&6; }
3183 else
3184 { echo "$as_me:$LINENO: result: no" >&5
3185 echo "${ECHO_T}no" >&6; }
3189 test -n "$ac_ct_CC" && break
3190 done
3192 if test "x$ac_ct_CC" = x; then
3193 CC=""
3194 else
3195 case $cross_compiling:$ac_tool_warned in
3196 yes:)
3197 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
3198 whose name does not start with the host triplet. If you think this
3199 configuration is useful to you, please write to autoconf@gnu.org." >&5
3200 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
3201 whose name does not start with the host triplet. If you think this
3202 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
3203 ac_tool_warned=yes ;;
3204 esac
3205 CC=$ac_ct_CC
3212 test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
3213 See \`config.log' for more details." >&5
3214 echo "$as_me: error: no acceptable C compiler found in \$PATH
3215 See \`config.log' for more details." >&2;}
3216 { (exit 1); exit 1; }; }
3218 # Provide some information about the compiler.
3219 echo "$as_me:$LINENO: checking for C compiler version" >&5
3220 ac_compiler=`set X $ac_compile; echo $2`
3221 { (ac_try="$ac_compiler --version >&5"
3222 case "(($ac_try" in
3223 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3224 *) ac_try_echo=$ac_try;;
3225 esac
3226 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3227 (eval "$ac_compiler --version >&5") 2>&5
3228 ac_status=$?
3229 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3230 (exit $ac_status); }
3231 { (ac_try="$ac_compiler -v >&5"
3232 case "(($ac_try" in
3233 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3234 *) ac_try_echo=$ac_try;;
3235 esac
3236 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3237 (eval "$ac_compiler -v >&5") 2>&5
3238 ac_status=$?
3239 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3240 (exit $ac_status); }
3241 { (ac_try="$ac_compiler -V >&5"
3242 case "(($ac_try" in
3243 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3244 *) ac_try_echo=$ac_try;;
3245 esac
3246 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3247 (eval "$ac_compiler -V >&5") 2>&5
3248 ac_status=$?
3249 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3250 (exit $ac_status); }
3252 cat >conftest.$ac_ext <<_ACEOF
3253 /* confdefs.h. */
3254 _ACEOF
3255 cat confdefs.h >>conftest.$ac_ext
3256 cat >>conftest.$ac_ext <<_ACEOF
3257 /* end confdefs.h. */
3260 main ()
3264 return 0;
3266 _ACEOF
3267 ac_clean_files_save=$ac_clean_files
3268 ac_clean_files="$ac_clean_files a.out a.exe b.out"
3269 # Try to create an executable without -o first, disregard a.out.
3270 # It will help us diagnose broken compilers, and finding out an intuition
3271 # of exeext.
3272 { echo "$as_me:$LINENO: checking for C compiler default output file name" >&5
3273 echo $ECHO_N "checking for C compiler default output file name... $ECHO_C" >&6; }
3274 ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
3276 # List of possible output files, starting from the most likely.
3277 # The algorithm is not robust to junk in `.', hence go to wildcards (a.*)
3278 # only as a last resort. b.out is created by i960 compilers.
3279 ac_files='a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out'
3281 # The IRIX 6 linker writes into existing files which may not be
3282 # executable, retaining their permissions. Remove them first so a
3283 # subsequent execution test works.
3284 ac_rmfiles=
3285 for ac_file in $ac_files
3287 case $ac_file in
3288 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj ) ;;
3289 * ) ac_rmfiles="$ac_rmfiles $ac_file";;
3290 esac
3291 done
3292 rm -f $ac_rmfiles
3294 if { (ac_try="$ac_link_default"
3295 case "(($ac_try" in
3296 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3297 *) ac_try_echo=$ac_try;;
3298 esac
3299 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3300 (eval "$ac_link_default") 2>&5
3301 ac_status=$?
3302 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3303 (exit $ac_status); }; then
3304 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
3305 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
3306 # in a Makefile. We should not override ac_cv_exeext if it was cached,
3307 # so that the user can short-circuit this test for compilers unknown to
3308 # Autoconf.
3309 for ac_file in $ac_files ''
3311 test -f "$ac_file" || continue
3312 case $ac_file in
3313 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj )
3315 [ab].out )
3316 # We found the default executable, but exeext='' is most
3317 # certainly right.
3318 break;;
3319 *.* )
3320 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
3321 then :; else
3322 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3324 # We set ac_cv_exeext here because the later test for it is not
3325 # safe: cross compilers may not add the suffix if given an `-o'
3326 # argument, so we may need to know it at that point already.
3327 # Even if this section looks crufty: it has the advantage of
3328 # actually working.
3329 break;;
3331 break;;
3332 esac
3333 done
3334 test "$ac_cv_exeext" = no && ac_cv_exeext=
3336 else
3337 ac_file=''
3340 { echo "$as_me:$LINENO: result: $ac_file" >&5
3341 echo "${ECHO_T}$ac_file" >&6; }
3342 if test -z "$ac_file"; then
3343 echo "$as_me: failed program was:" >&5
3344 sed 's/^/| /' conftest.$ac_ext >&5
3346 { { echo "$as_me:$LINENO: error: C compiler cannot create executables
3347 See \`config.log' for more details." >&5
3348 echo "$as_me: error: C compiler cannot create executables
3349 See \`config.log' for more details." >&2;}
3350 { (exit 77); exit 77; }; }
3353 ac_exeext=$ac_cv_exeext
3355 # Check that the compiler produces executables we can run. If not, either
3356 # the compiler is broken, or we cross compile.
3357 { echo "$as_me:$LINENO: checking whether the C compiler works" >&5
3358 echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6; }
3359 # FIXME: These cross compiler hacks should be removed for Autoconf 3.0
3360 # If not cross compiling, check that we can run a simple program.
3361 if test "$cross_compiling" != yes; then
3362 if { ac_try='./$ac_file'
3363 { (case "(($ac_try" in
3364 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3365 *) ac_try_echo=$ac_try;;
3366 esac
3367 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3368 (eval "$ac_try") 2>&5
3369 ac_status=$?
3370 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3371 (exit $ac_status); }; }; then
3372 cross_compiling=no
3373 else
3374 if test "$cross_compiling" = maybe; then
3375 cross_compiling=yes
3376 else
3377 { { echo "$as_me:$LINENO: error: cannot run C compiled programs.
3378 If you meant to cross compile, use \`--host'.
3379 See \`config.log' for more details." >&5
3380 echo "$as_me: error: cannot run C compiled programs.
3381 If you meant to cross compile, use \`--host'.
3382 See \`config.log' for more details." >&2;}
3383 { (exit 1); exit 1; }; }
3387 { echo "$as_me:$LINENO: result: yes" >&5
3388 echo "${ECHO_T}yes" >&6; }
3390 rm -f a.out a.exe conftest$ac_cv_exeext b.out
3391 ac_clean_files=$ac_clean_files_save
3392 # Check that the compiler produces executables we can run. If not, either
3393 # the compiler is broken, or we cross compile.
3394 { echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
3395 echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6; }
3396 { echo "$as_me:$LINENO: result: $cross_compiling" >&5
3397 echo "${ECHO_T}$cross_compiling" >&6; }
3399 { echo "$as_me:$LINENO: checking for suffix of executables" >&5
3400 echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6; }
3401 if { (ac_try="$ac_link"
3402 case "(($ac_try" in
3403 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3404 *) ac_try_echo=$ac_try;;
3405 esac
3406 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3407 (eval "$ac_link") 2>&5
3408 ac_status=$?
3409 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3410 (exit $ac_status); }; then
3411 # If both `conftest.exe' and `conftest' are `present' (well, observable)
3412 # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
3413 # work properly (i.e., refer to `conftest.exe'), while it won't with
3414 # `rm'.
3415 for ac_file in conftest.exe conftest conftest.*; do
3416 test -f "$ac_file" || continue
3417 case $ac_file in
3418 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj ) ;;
3419 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3420 break;;
3421 * ) break;;
3422 esac
3423 done
3424 else
3425 { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
3426 See \`config.log' for more details." >&5
3427 echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
3428 See \`config.log' for more details." >&2;}
3429 { (exit 1); exit 1; }; }
3432 rm -f conftest$ac_cv_exeext
3433 { echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
3434 echo "${ECHO_T}$ac_cv_exeext" >&6; }
3436 rm -f conftest.$ac_ext
3437 EXEEXT=$ac_cv_exeext
3438 ac_exeext=$EXEEXT
3439 { echo "$as_me:$LINENO: checking for suffix of object files" >&5
3440 echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6; }
3441 if test "${ac_cv_objext+set}" = set; then
3442 echo $ECHO_N "(cached) $ECHO_C" >&6
3443 else
3444 cat >conftest.$ac_ext <<_ACEOF
3445 /* confdefs.h. */
3446 _ACEOF
3447 cat confdefs.h >>conftest.$ac_ext
3448 cat >>conftest.$ac_ext <<_ACEOF
3449 /* end confdefs.h. */
3452 main ()
3456 return 0;
3458 _ACEOF
3459 rm -f conftest.o conftest.obj
3460 if { (ac_try="$ac_compile"
3461 case "(($ac_try" in
3462 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3463 *) ac_try_echo=$ac_try;;
3464 esac
3465 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3466 (eval "$ac_compile") 2>&5
3467 ac_status=$?
3468 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3469 (exit $ac_status); }; then
3470 for ac_file in conftest.o conftest.obj conftest.*; do
3471 test -f "$ac_file" || continue;
3472 case $ac_file in
3473 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf ) ;;
3474 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
3475 break;;
3476 esac
3477 done
3478 else
3479 echo "$as_me: failed program was:" >&5
3480 sed 's/^/| /' conftest.$ac_ext >&5
3482 { { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
3483 See \`config.log' for more details." >&5
3484 echo "$as_me: error: cannot compute suffix of object files: cannot compile
3485 See \`config.log' for more details." >&2;}
3486 { (exit 1); exit 1; }; }
3489 rm -f conftest.$ac_cv_objext conftest.$ac_ext
3491 { echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
3492 echo "${ECHO_T}$ac_cv_objext" >&6; }
3493 OBJEXT=$ac_cv_objext
3494 ac_objext=$OBJEXT
3495 { echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
3496 echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6; }
3497 if test "${ac_cv_c_compiler_gnu+set}" = set; then
3498 echo $ECHO_N "(cached) $ECHO_C" >&6
3499 else
3500 cat >conftest.$ac_ext <<_ACEOF
3501 /* confdefs.h. */
3502 _ACEOF
3503 cat confdefs.h >>conftest.$ac_ext
3504 cat >>conftest.$ac_ext <<_ACEOF
3505 /* end confdefs.h. */
3508 main ()
3510 #ifndef __GNUC__
3511 choke me
3512 #endif
3515 return 0;
3517 _ACEOF
3518 rm -f conftest.$ac_objext
3519 if { (ac_try="$ac_compile"
3520 case "(($ac_try" in
3521 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3522 *) ac_try_echo=$ac_try;;
3523 esac
3524 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3525 (eval "$ac_compile") 2>conftest.er1
3526 ac_status=$?
3527 grep -v '^ *+' conftest.er1 >conftest.err
3528 rm -f conftest.er1
3529 cat conftest.err >&5
3530 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3531 (exit $ac_status); } && {
3532 test -z "$ac_c_werror_flag" ||
3533 test ! -s conftest.err
3534 } && test -s conftest.$ac_objext; then
3535 ac_compiler_gnu=yes
3536 else
3537 echo "$as_me: failed program was:" >&5
3538 sed 's/^/| /' conftest.$ac_ext >&5
3540 ac_compiler_gnu=no
3543 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3544 ac_cv_c_compiler_gnu=$ac_compiler_gnu
3547 { echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
3548 echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6; }
3549 GCC=`test $ac_compiler_gnu = yes && echo yes`
3550 ac_test_CFLAGS=${CFLAGS+set}
3551 ac_save_CFLAGS=$CFLAGS
3552 { echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
3553 echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6; }
3554 if test "${ac_cv_prog_cc_g+set}" = set; then
3555 echo $ECHO_N "(cached) $ECHO_C" >&6
3556 else
3557 ac_save_c_werror_flag=$ac_c_werror_flag
3558 ac_c_werror_flag=yes
3559 ac_cv_prog_cc_g=no
3560 CFLAGS="-g"
3561 cat >conftest.$ac_ext <<_ACEOF
3562 /* confdefs.h. */
3563 _ACEOF
3564 cat confdefs.h >>conftest.$ac_ext
3565 cat >>conftest.$ac_ext <<_ACEOF
3566 /* end confdefs.h. */
3569 main ()
3573 return 0;
3575 _ACEOF
3576 rm -f conftest.$ac_objext
3577 if { (ac_try="$ac_compile"
3578 case "(($ac_try" in
3579 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3580 *) ac_try_echo=$ac_try;;
3581 esac
3582 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3583 (eval "$ac_compile") 2>conftest.er1
3584 ac_status=$?
3585 grep -v '^ *+' conftest.er1 >conftest.err
3586 rm -f conftest.er1
3587 cat conftest.err >&5
3588 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3589 (exit $ac_status); } && {
3590 test -z "$ac_c_werror_flag" ||
3591 test ! -s conftest.err
3592 } && test -s conftest.$ac_objext; then
3593 ac_cv_prog_cc_g=yes
3594 else
3595 echo "$as_me: failed program was:" >&5
3596 sed 's/^/| /' conftest.$ac_ext >&5
3598 CFLAGS=""
3599 cat >conftest.$ac_ext <<_ACEOF
3600 /* confdefs.h. */
3601 _ACEOF
3602 cat confdefs.h >>conftest.$ac_ext
3603 cat >>conftest.$ac_ext <<_ACEOF
3604 /* end confdefs.h. */
3607 main ()
3611 return 0;
3613 _ACEOF
3614 rm -f conftest.$ac_objext
3615 if { (ac_try="$ac_compile"
3616 case "(($ac_try" in
3617 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3618 *) ac_try_echo=$ac_try;;
3619 esac
3620 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3621 (eval "$ac_compile") 2>conftest.er1
3622 ac_status=$?
3623 grep -v '^ *+' conftest.er1 >conftest.err
3624 rm -f conftest.er1
3625 cat conftest.err >&5
3626 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3627 (exit $ac_status); } && {
3628 test -z "$ac_c_werror_flag" ||
3629 test ! -s conftest.err
3630 } && test -s conftest.$ac_objext; then
3632 else
3633 echo "$as_me: failed program was:" >&5
3634 sed 's/^/| /' conftest.$ac_ext >&5
3636 ac_c_werror_flag=$ac_save_c_werror_flag
3637 CFLAGS="-g"
3638 cat >conftest.$ac_ext <<_ACEOF
3639 /* confdefs.h. */
3640 _ACEOF
3641 cat confdefs.h >>conftest.$ac_ext
3642 cat >>conftest.$ac_ext <<_ACEOF
3643 /* end confdefs.h. */
3646 main ()
3650 return 0;
3652 _ACEOF
3653 rm -f conftest.$ac_objext
3654 if { (ac_try="$ac_compile"
3655 case "(($ac_try" in
3656 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3657 *) ac_try_echo=$ac_try;;
3658 esac
3659 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3660 (eval "$ac_compile") 2>conftest.er1
3661 ac_status=$?
3662 grep -v '^ *+' conftest.er1 >conftest.err
3663 rm -f conftest.er1
3664 cat conftest.err >&5
3665 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3666 (exit $ac_status); } && {
3667 test -z "$ac_c_werror_flag" ||
3668 test ! -s conftest.err
3669 } && test -s conftest.$ac_objext; then
3670 ac_cv_prog_cc_g=yes
3671 else
3672 echo "$as_me: failed program was:" >&5
3673 sed 's/^/| /' conftest.$ac_ext >&5
3678 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3681 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3684 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3685 ac_c_werror_flag=$ac_save_c_werror_flag
3687 { echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
3688 echo "${ECHO_T}$ac_cv_prog_cc_g" >&6; }
3689 if test "$ac_test_CFLAGS" = set; then
3690 CFLAGS=$ac_save_CFLAGS
3691 elif test $ac_cv_prog_cc_g = yes; then
3692 if test "$GCC" = yes; then
3693 CFLAGS="-g -O2"
3694 else
3695 CFLAGS="-g"
3697 else
3698 if test "$GCC" = yes; then
3699 CFLAGS="-O2"
3700 else
3701 CFLAGS=
3704 { echo "$as_me:$LINENO: checking for $CC option to accept ISO C89" >&5
3705 echo $ECHO_N "checking for $CC option to accept ISO C89... $ECHO_C" >&6; }
3706 if test "${ac_cv_prog_cc_c89+set}" = set; then
3707 echo $ECHO_N "(cached) $ECHO_C" >&6
3708 else
3709 ac_cv_prog_cc_c89=no
3710 ac_save_CC=$CC
3711 cat >conftest.$ac_ext <<_ACEOF
3712 /* confdefs.h. */
3713 _ACEOF
3714 cat confdefs.h >>conftest.$ac_ext
3715 cat >>conftest.$ac_ext <<_ACEOF
3716 /* end confdefs.h. */
3717 #include <stdarg.h>
3718 #include <stdio.h>
3719 #include <sys/types.h>
3720 #include <sys/stat.h>
3721 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
3722 struct buf { int x; };
3723 FILE * (*rcsopen) (struct buf *, struct stat *, int);
3724 static char *e (p, i)
3725 char **p;
3726 int i;
3728 return p[i];
3730 static char *f (char * (*g) (char **, int), char **p, ...)
3732 char *s;
3733 va_list v;
3734 va_start (v,p);
3735 s = g (p, va_arg (v,int));
3736 va_end (v);
3737 return s;
3740 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
3741 function prototypes and stuff, but not '\xHH' hex character constants.
3742 These don't provoke an error unfortunately, instead are silently treated
3743 as 'x'. The following induces an error, until -std is added to get
3744 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
3745 array size at least. It's necessary to write '\x00'==0 to get something
3746 that's true only with -std. */
3747 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
3749 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
3750 inside strings and character constants. */
3751 #define FOO(x) 'x'
3752 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
3754 int test (int i, double x);
3755 struct s1 {int (*f) (int a);};
3756 struct s2 {int (*f) (double a);};
3757 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
3758 int argc;
3759 char **argv;
3761 main ()
3763 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
3765 return 0;
3767 _ACEOF
3768 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
3769 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
3771 CC="$ac_save_CC $ac_arg"
3772 rm -f conftest.$ac_objext
3773 if { (ac_try="$ac_compile"
3774 case "(($ac_try" in
3775 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3776 *) ac_try_echo=$ac_try;;
3777 esac
3778 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3779 (eval "$ac_compile") 2>conftest.er1
3780 ac_status=$?
3781 grep -v '^ *+' conftest.er1 >conftest.err
3782 rm -f conftest.er1
3783 cat conftest.err >&5
3784 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3785 (exit $ac_status); } && {
3786 test -z "$ac_c_werror_flag" ||
3787 test ! -s conftest.err
3788 } && test -s conftest.$ac_objext; then
3789 ac_cv_prog_cc_c89=$ac_arg
3790 else
3791 echo "$as_me: failed program was:" >&5
3792 sed 's/^/| /' conftest.$ac_ext >&5
3797 rm -f core conftest.err conftest.$ac_objext
3798 test "x$ac_cv_prog_cc_c89" != "xno" && break
3799 done
3800 rm -f conftest.$ac_ext
3801 CC=$ac_save_CC
3804 # AC_CACHE_VAL
3805 case "x$ac_cv_prog_cc_c89" in
3807 { echo "$as_me:$LINENO: result: none needed" >&5
3808 echo "${ECHO_T}none needed" >&6; } ;;
3809 xno)
3810 { echo "$as_me:$LINENO: result: unsupported" >&5
3811 echo "${ECHO_T}unsupported" >&6; } ;;
3813 CC="$CC $ac_cv_prog_cc_c89"
3814 { echo "$as_me:$LINENO: result: $ac_cv_prog_cc_c89" >&5
3815 echo "${ECHO_T}$ac_cv_prog_cc_c89" >&6; } ;;
3816 esac
3819 ac_ext=c
3820 ac_cpp='$CPP $CPPFLAGS'
3821 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3822 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3823 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3826 # On Suns, sometimes $CPP names a directory.
3827 if test -n "$CPP" && test -d "$CPP"; then
3828 CPP=
3831 ## If not using gcc, and on Solaris, and no CPP specified, see if
3832 ## using a Sun compiler, which needs -Xs to prevent whitespace.
3833 if test x"$GCC" != xyes && test x"$emacs_check_sunpro_c" = xyes && \
3834 test x"$CPP" = x; then
3835 { echo "$as_me:$LINENO: checking whether we are using a Sun C compiler" >&5
3836 echo $ECHO_N "checking whether we are using a Sun C compiler... $ECHO_C" >&6; }
3838 if test "${emacs_cv_sunpro_c+set}" = set; then
3839 echo $ECHO_N "(cached) $ECHO_C" >&6
3840 else
3841 cat >conftest.$ac_ext <<_ACEOF
3842 /* confdefs.h. */
3843 _ACEOF
3844 cat confdefs.h >>conftest.$ac_ext
3845 cat >>conftest.$ac_ext <<_ACEOF
3846 /* end confdefs.h. */
3849 main ()
3851 #ifndef __SUNPRO_C
3852 fail;
3853 #endif
3856 return 0;
3858 _ACEOF
3859 rm -f conftest.$ac_objext conftest$ac_exeext
3860 if { (ac_try="$ac_link"
3861 case "(($ac_try" in
3862 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3863 *) ac_try_echo=$ac_try;;
3864 esac
3865 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3866 (eval "$ac_link") 2>conftest.er1
3867 ac_status=$?
3868 grep -v '^ *+' conftest.er1 >conftest.err
3869 rm -f conftest.er1
3870 cat conftest.err >&5
3871 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3872 (exit $ac_status); } && {
3873 test -z "$ac_c_werror_flag" ||
3874 test ! -s conftest.err
3875 } && test -s conftest$ac_exeext &&
3876 $as_test_x conftest$ac_exeext; then
3877 emacs_cv_sunpro_c=yes
3878 else
3879 echo "$as_me: failed program was:" >&5
3880 sed 's/^/| /' conftest.$ac_ext >&5
3882 emacs_cv_sunpro_c=no
3885 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
3886 conftest$ac_exeext conftest.$ac_ext
3889 { echo "$as_me:$LINENO: result: $emacs_cv_sunpro_c" >&5
3890 echo "${ECHO_T}$emacs_cv_sunpro_c" >&6; }
3892 if test x"$emacs_cv_sunpro_c" = xyes; then
3893 NON_GNU_CPP="$CC -E -Xs"
3897 #### Some systems specify a CPP to use unless we are using GCC.
3898 #### Now that we know whether we are using GCC, we can decide whether
3899 #### to use that one.
3900 if test "x$NON_GNU_CPP" != x && test x$GCC != xyes && test "x$CPP" = x
3901 then
3902 CPP="$NON_GNU_CPP"
3905 #### Some systems specify a CC to use unless we are using GCC.
3906 #### Now that we know whether we are using GCC, we can decide whether
3907 #### to use that one.
3908 if test "x$NON_GNU_CC" != x && test x$GCC != xyes &&
3909 test x$cc_specified != xyes
3910 then
3911 CC="$NON_GNU_CC"
3914 if test x$GCC = xyes && test "x$GCC_TEST_OPTIONS" != x
3915 then
3916 CC="$CC $GCC_TEST_OPTIONS"
3919 if test x$GCC = x && test "x$NON_GCC_TEST_OPTIONS" != x
3920 then
3921 CC="$CC $NON_GCC_TEST_OPTIONS"
3925 cat >>confdefs.h <<\_ACEOF
3926 #define _GNU_SOURCE 1
3927 _ACEOF
3930 ac_ext=c
3931 ac_cpp='$CPP $CPPFLAGS'
3932 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3933 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3934 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3935 { echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
3936 echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6; }
3937 # On Suns, sometimes $CPP names a directory.
3938 if test -n "$CPP" && test -d "$CPP"; then
3939 CPP=
3941 if test -z "$CPP"; then
3942 if test "${ac_cv_prog_CPP+set}" = set; then
3943 echo $ECHO_N "(cached) $ECHO_C" >&6
3944 else
3945 # Double quotes because CPP needs to be expanded
3946 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
3948 ac_preproc_ok=false
3949 for ac_c_preproc_warn_flag in '' yes
3951 # Use a header file that comes with gcc, so configuring glibc
3952 # with a fresh cross-compiler works.
3953 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3954 # <limits.h> exists even on freestanding compilers.
3955 # On the NeXT, cc -E runs the code through the compiler's parser,
3956 # not just through cpp. "Syntax error" is here to catch this case.
3957 cat >conftest.$ac_ext <<_ACEOF
3958 /* confdefs.h. */
3959 _ACEOF
3960 cat confdefs.h >>conftest.$ac_ext
3961 cat >>conftest.$ac_ext <<_ACEOF
3962 /* end confdefs.h. */
3963 #ifdef __STDC__
3964 # include <limits.h>
3965 #else
3966 # include <assert.h>
3967 #endif
3968 Syntax error
3969 _ACEOF
3970 if { (ac_try="$ac_cpp conftest.$ac_ext"
3971 case "(($ac_try" in
3972 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3973 *) ac_try_echo=$ac_try;;
3974 esac
3975 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3976 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
3977 ac_status=$?
3978 grep -v '^ *+' conftest.er1 >conftest.err
3979 rm -f conftest.er1
3980 cat conftest.err >&5
3981 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3982 (exit $ac_status); } >/dev/null && {
3983 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
3984 test ! -s conftest.err
3985 }; then
3987 else
3988 echo "$as_me: failed program was:" >&5
3989 sed 's/^/| /' conftest.$ac_ext >&5
3991 # Broken: fails on valid input.
3992 continue
3995 rm -f conftest.err conftest.$ac_ext
3997 # OK, works on sane cases. Now check whether nonexistent headers
3998 # can be detected and how.
3999 cat >conftest.$ac_ext <<_ACEOF
4000 /* confdefs.h. */
4001 _ACEOF
4002 cat confdefs.h >>conftest.$ac_ext
4003 cat >>conftest.$ac_ext <<_ACEOF
4004 /* end confdefs.h. */
4005 #include <ac_nonexistent.h>
4006 _ACEOF
4007 if { (ac_try="$ac_cpp conftest.$ac_ext"
4008 case "(($ac_try" in
4009 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4010 *) ac_try_echo=$ac_try;;
4011 esac
4012 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4013 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
4014 ac_status=$?
4015 grep -v '^ *+' conftest.er1 >conftest.err
4016 rm -f conftest.er1
4017 cat conftest.err >&5
4018 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4019 (exit $ac_status); } >/dev/null && {
4020 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
4021 test ! -s conftest.err
4022 }; then
4023 # Broken: success on invalid input.
4024 continue
4025 else
4026 echo "$as_me: failed program was:" >&5
4027 sed 's/^/| /' conftest.$ac_ext >&5
4029 # Passes both tests.
4030 ac_preproc_ok=:
4031 break
4034 rm -f conftest.err conftest.$ac_ext
4036 done
4037 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4038 rm -f conftest.err conftest.$ac_ext
4039 if $ac_preproc_ok; then
4040 break
4043 done
4044 ac_cv_prog_CPP=$CPP
4047 CPP=$ac_cv_prog_CPP
4048 else
4049 ac_cv_prog_CPP=$CPP
4051 { echo "$as_me:$LINENO: result: $CPP" >&5
4052 echo "${ECHO_T}$CPP" >&6; }
4053 ac_preproc_ok=false
4054 for ac_c_preproc_warn_flag in '' yes
4056 # Use a header file that comes with gcc, so configuring glibc
4057 # with a fresh cross-compiler works.
4058 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4059 # <limits.h> exists even on freestanding compilers.
4060 # On the NeXT, cc -E runs the code through the compiler's parser,
4061 # not just through cpp. "Syntax error" is here to catch this case.
4062 cat >conftest.$ac_ext <<_ACEOF
4063 /* confdefs.h. */
4064 _ACEOF
4065 cat confdefs.h >>conftest.$ac_ext
4066 cat >>conftest.$ac_ext <<_ACEOF
4067 /* end confdefs.h. */
4068 #ifdef __STDC__
4069 # include <limits.h>
4070 #else
4071 # include <assert.h>
4072 #endif
4073 Syntax error
4074 _ACEOF
4075 if { (ac_try="$ac_cpp conftest.$ac_ext"
4076 case "(($ac_try" in
4077 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4078 *) ac_try_echo=$ac_try;;
4079 esac
4080 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4081 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
4082 ac_status=$?
4083 grep -v '^ *+' conftest.er1 >conftest.err
4084 rm -f conftest.er1
4085 cat conftest.err >&5
4086 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4087 (exit $ac_status); } >/dev/null && {
4088 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
4089 test ! -s conftest.err
4090 }; then
4092 else
4093 echo "$as_me: failed program was:" >&5
4094 sed 's/^/| /' conftest.$ac_ext >&5
4096 # Broken: fails on valid input.
4097 continue
4100 rm -f conftest.err conftest.$ac_ext
4102 # OK, works on sane cases. Now check whether nonexistent headers
4103 # can be detected and how.
4104 cat >conftest.$ac_ext <<_ACEOF
4105 /* confdefs.h. */
4106 _ACEOF
4107 cat confdefs.h >>conftest.$ac_ext
4108 cat >>conftest.$ac_ext <<_ACEOF
4109 /* end confdefs.h. */
4110 #include <ac_nonexistent.h>
4111 _ACEOF
4112 if { (ac_try="$ac_cpp conftest.$ac_ext"
4113 case "(($ac_try" in
4114 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4115 *) ac_try_echo=$ac_try;;
4116 esac
4117 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4118 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
4119 ac_status=$?
4120 grep -v '^ *+' conftest.er1 >conftest.err
4121 rm -f conftest.er1
4122 cat conftest.err >&5
4123 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4124 (exit $ac_status); } >/dev/null && {
4125 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
4126 test ! -s conftest.err
4127 }; then
4128 # Broken: success on invalid input.
4129 continue
4130 else
4131 echo "$as_me: failed program was:" >&5
4132 sed 's/^/| /' conftest.$ac_ext >&5
4134 # Passes both tests.
4135 ac_preproc_ok=:
4136 break
4139 rm -f conftest.err conftest.$ac_ext
4141 done
4142 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4143 rm -f conftest.err conftest.$ac_ext
4144 if $ac_preproc_ok; then
4146 else
4147 { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
4148 See \`config.log' for more details." >&5
4149 echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
4150 See \`config.log' for more details." >&2;}
4151 { (exit 1); exit 1; }; }
4154 ac_ext=c
4155 ac_cpp='$CPP $CPPFLAGS'
4156 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4157 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4158 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4161 { echo "$as_me:$LINENO: checking for grep that handles long lines and -e" >&5
4162 echo $ECHO_N "checking for grep that handles long lines and -e... $ECHO_C" >&6; }
4163 if test "${ac_cv_path_GREP+set}" = set; then
4164 echo $ECHO_N "(cached) $ECHO_C" >&6
4165 else
4166 # Extract the first word of "grep ggrep" to use in msg output
4167 if test -z "$GREP"; then
4168 set dummy grep ggrep; ac_prog_name=$2
4169 if test "${ac_cv_path_GREP+set}" = set; then
4170 echo $ECHO_N "(cached) $ECHO_C" >&6
4171 else
4172 ac_path_GREP_found=false
4173 # Loop through the user's path and test for each of PROGNAME-LIST
4174 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4175 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4177 IFS=$as_save_IFS
4178 test -z "$as_dir" && as_dir=.
4179 for ac_prog in grep ggrep; do
4180 for ac_exec_ext in '' $ac_executable_extensions; do
4181 ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
4182 { test -f "$ac_path_GREP" && $as_test_x "$ac_path_GREP"; } || continue
4183 # Check for GNU ac_path_GREP and select it if it is found.
4184 # Check for GNU $ac_path_GREP
4185 case `"$ac_path_GREP" --version 2>&1` in
4186 *GNU*)
4187 ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
4189 ac_count=0
4190 echo $ECHO_N "0123456789$ECHO_C" >"conftest.in"
4191 while :
4193 cat "conftest.in" "conftest.in" >"conftest.tmp"
4194 mv "conftest.tmp" "conftest.in"
4195 cp "conftest.in" "conftest.nl"
4196 echo 'GREP' >> "conftest.nl"
4197 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4198 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4199 ac_count=`expr $ac_count + 1`
4200 if test $ac_count -gt ${ac_path_GREP_max-0}; then
4201 # Best one so far, save it but keep looking for a better one
4202 ac_cv_path_GREP="$ac_path_GREP"
4203 ac_path_GREP_max=$ac_count
4205 # 10*(2^10) chars as input seems more than enough
4206 test $ac_count -gt 10 && break
4207 done
4208 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4209 esac
4212 $ac_path_GREP_found && break 3
4213 done
4214 done
4216 done
4217 IFS=$as_save_IFS
4222 GREP="$ac_cv_path_GREP"
4223 if test -z "$GREP"; then
4224 { { echo "$as_me:$LINENO: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
4225 echo "$as_me: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
4226 { (exit 1); exit 1; }; }
4229 else
4230 ac_cv_path_GREP=$GREP
4235 { echo "$as_me:$LINENO: result: $ac_cv_path_GREP" >&5
4236 echo "${ECHO_T}$ac_cv_path_GREP" >&6; }
4237 GREP="$ac_cv_path_GREP"
4240 { echo "$as_me:$LINENO: checking for egrep" >&5
4241 echo $ECHO_N "checking for egrep... $ECHO_C" >&6; }
4242 if test "${ac_cv_path_EGREP+set}" = set; then
4243 echo $ECHO_N "(cached) $ECHO_C" >&6
4244 else
4245 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
4246 then ac_cv_path_EGREP="$GREP -E"
4247 else
4248 # Extract the first word of "egrep" to use in msg output
4249 if test -z "$EGREP"; then
4250 set dummy egrep; ac_prog_name=$2
4251 if test "${ac_cv_path_EGREP+set}" = set; then
4252 echo $ECHO_N "(cached) $ECHO_C" >&6
4253 else
4254 ac_path_EGREP_found=false
4255 # Loop through the user's path and test for each of PROGNAME-LIST
4256 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4257 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4259 IFS=$as_save_IFS
4260 test -z "$as_dir" && as_dir=.
4261 for ac_prog in egrep; do
4262 for ac_exec_ext in '' $ac_executable_extensions; do
4263 ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
4264 { test -f "$ac_path_EGREP" && $as_test_x "$ac_path_EGREP"; } || continue
4265 # Check for GNU ac_path_EGREP and select it if it is found.
4266 # Check for GNU $ac_path_EGREP
4267 case `"$ac_path_EGREP" --version 2>&1` in
4268 *GNU*)
4269 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
4271 ac_count=0
4272 echo $ECHO_N "0123456789$ECHO_C" >"conftest.in"
4273 while :
4275 cat "conftest.in" "conftest.in" >"conftest.tmp"
4276 mv "conftest.tmp" "conftest.in"
4277 cp "conftest.in" "conftest.nl"
4278 echo 'EGREP' >> "conftest.nl"
4279 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4280 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4281 ac_count=`expr $ac_count + 1`
4282 if test $ac_count -gt ${ac_path_EGREP_max-0}; then
4283 # Best one so far, save it but keep looking for a better one
4284 ac_cv_path_EGREP="$ac_path_EGREP"
4285 ac_path_EGREP_max=$ac_count
4287 # 10*(2^10) chars as input seems more than enough
4288 test $ac_count -gt 10 && break
4289 done
4290 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4291 esac
4294 $ac_path_EGREP_found && break 3
4295 done
4296 done
4298 done
4299 IFS=$as_save_IFS
4304 EGREP="$ac_cv_path_EGREP"
4305 if test -z "$EGREP"; then
4306 { { echo "$as_me:$LINENO: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
4307 echo "$as_me: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
4308 { (exit 1); exit 1; }; }
4311 else
4312 ac_cv_path_EGREP=$EGREP
4318 { echo "$as_me:$LINENO: result: $ac_cv_path_EGREP" >&5
4319 echo "${ECHO_T}$ac_cv_path_EGREP" >&6; }
4320 EGREP="$ac_cv_path_EGREP"
4324 { echo "$as_me:$LINENO: checking for AIX" >&5
4325 echo $ECHO_N "checking for AIX... $ECHO_C" >&6; }
4326 cat >conftest.$ac_ext <<_ACEOF
4327 /* confdefs.h. */
4328 _ACEOF
4329 cat confdefs.h >>conftest.$ac_ext
4330 cat >>conftest.$ac_ext <<_ACEOF
4331 /* end confdefs.h. */
4332 #ifdef _AIX
4334 #endif
4336 _ACEOF
4337 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4338 $EGREP "yes" >/dev/null 2>&1; then
4339 { echo "$as_me:$LINENO: result: yes" >&5
4340 echo "${ECHO_T}yes" >&6; }
4341 cat >>confdefs.h <<\_ACEOF
4342 #define _ALL_SOURCE 1
4343 _ACEOF
4345 else
4346 { echo "$as_me:$LINENO: result: no" >&5
4347 echo "${ECHO_T}no" >&6; }
4349 rm -f conftest*
4352 { echo "$as_me:$LINENO: checking for ANSI C header files" >&5
4353 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6; }
4354 if test "${ac_cv_header_stdc+set}" = set; then
4355 echo $ECHO_N "(cached) $ECHO_C" >&6
4356 else
4357 cat >conftest.$ac_ext <<_ACEOF
4358 /* confdefs.h. */
4359 _ACEOF
4360 cat confdefs.h >>conftest.$ac_ext
4361 cat >>conftest.$ac_ext <<_ACEOF
4362 /* end confdefs.h. */
4363 #include <stdlib.h>
4364 #include <stdarg.h>
4365 #include <string.h>
4366 #include <float.h>
4369 main ()
4373 return 0;
4375 _ACEOF
4376 rm -f conftest.$ac_objext
4377 if { (ac_try="$ac_compile"
4378 case "(($ac_try" in
4379 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4380 *) ac_try_echo=$ac_try;;
4381 esac
4382 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4383 (eval "$ac_compile") 2>conftest.er1
4384 ac_status=$?
4385 grep -v '^ *+' conftest.er1 >conftest.err
4386 rm -f conftest.er1
4387 cat conftest.err >&5
4388 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4389 (exit $ac_status); } && {
4390 test -z "$ac_c_werror_flag" ||
4391 test ! -s conftest.err
4392 } && test -s conftest.$ac_objext; then
4393 ac_cv_header_stdc=yes
4394 else
4395 echo "$as_me: failed program was:" >&5
4396 sed 's/^/| /' conftest.$ac_ext >&5
4398 ac_cv_header_stdc=no
4401 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4403 if test $ac_cv_header_stdc = yes; then
4404 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
4405 cat >conftest.$ac_ext <<_ACEOF
4406 /* confdefs.h. */
4407 _ACEOF
4408 cat confdefs.h >>conftest.$ac_ext
4409 cat >>conftest.$ac_ext <<_ACEOF
4410 /* end confdefs.h. */
4411 #include <string.h>
4413 _ACEOF
4414 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4415 $EGREP "memchr" >/dev/null 2>&1; then
4417 else
4418 ac_cv_header_stdc=no
4420 rm -f conftest*
4424 if test $ac_cv_header_stdc = yes; then
4425 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
4426 cat >conftest.$ac_ext <<_ACEOF
4427 /* confdefs.h. */
4428 _ACEOF
4429 cat confdefs.h >>conftest.$ac_ext
4430 cat >>conftest.$ac_ext <<_ACEOF
4431 /* end confdefs.h. */
4432 #include <stdlib.h>
4434 _ACEOF
4435 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4436 $EGREP "free" >/dev/null 2>&1; then
4438 else
4439 ac_cv_header_stdc=no
4441 rm -f conftest*
4445 if test $ac_cv_header_stdc = yes; then
4446 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
4447 if test "$cross_compiling" = yes; then
4449 else
4450 cat >conftest.$ac_ext <<_ACEOF
4451 /* confdefs.h. */
4452 _ACEOF
4453 cat confdefs.h >>conftest.$ac_ext
4454 cat >>conftest.$ac_ext <<_ACEOF
4455 /* end confdefs.h. */
4456 #include <ctype.h>
4457 #include <stdlib.h>
4458 #if ((' ' & 0x0FF) == 0x020)
4459 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
4460 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
4461 #else
4462 # define ISLOWER(c) \
4463 (('a' <= (c) && (c) <= 'i') \
4464 || ('j' <= (c) && (c) <= 'r') \
4465 || ('s' <= (c) && (c) <= 'z'))
4466 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
4467 #endif
4469 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
4471 main ()
4473 int i;
4474 for (i = 0; i < 256; i++)
4475 if (XOR (islower (i), ISLOWER (i))
4476 || toupper (i) != TOUPPER (i))
4477 return 2;
4478 return 0;
4480 _ACEOF
4481 rm -f conftest$ac_exeext
4482 if { (ac_try="$ac_link"
4483 case "(($ac_try" in
4484 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4485 *) ac_try_echo=$ac_try;;
4486 esac
4487 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4488 (eval "$ac_link") 2>&5
4489 ac_status=$?
4490 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4491 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
4492 { (case "(($ac_try" in
4493 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4494 *) ac_try_echo=$ac_try;;
4495 esac
4496 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4497 (eval "$ac_try") 2>&5
4498 ac_status=$?
4499 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4500 (exit $ac_status); }; }; then
4502 else
4503 echo "$as_me: program exited with status $ac_status" >&5
4504 echo "$as_me: failed program was:" >&5
4505 sed 's/^/| /' conftest.$ac_ext >&5
4507 ( exit $ac_status )
4508 ac_cv_header_stdc=no
4510 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
4516 { echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
4517 echo "${ECHO_T}$ac_cv_header_stdc" >&6; }
4518 if test $ac_cv_header_stdc = yes; then
4520 cat >>confdefs.h <<\_ACEOF
4521 #define STDC_HEADERS 1
4522 _ACEOF
4526 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
4536 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
4537 inttypes.h stdint.h unistd.h
4539 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
4540 { echo "$as_me:$LINENO: checking for $ac_header" >&5
4541 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
4542 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
4543 echo $ECHO_N "(cached) $ECHO_C" >&6
4544 else
4545 cat >conftest.$ac_ext <<_ACEOF
4546 /* confdefs.h. */
4547 _ACEOF
4548 cat confdefs.h >>conftest.$ac_ext
4549 cat >>conftest.$ac_ext <<_ACEOF
4550 /* end confdefs.h. */
4551 $ac_includes_default
4553 #include <$ac_header>
4554 _ACEOF
4555 rm -f conftest.$ac_objext
4556 if { (ac_try="$ac_compile"
4557 case "(($ac_try" in
4558 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4559 *) ac_try_echo=$ac_try;;
4560 esac
4561 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4562 (eval "$ac_compile") 2>conftest.er1
4563 ac_status=$?
4564 grep -v '^ *+' conftest.er1 >conftest.err
4565 rm -f conftest.er1
4566 cat conftest.err >&5
4567 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4568 (exit $ac_status); } && {
4569 test -z "$ac_c_werror_flag" ||
4570 test ! -s conftest.err
4571 } && test -s conftest.$ac_objext; then
4572 eval "$as_ac_Header=yes"
4573 else
4574 echo "$as_me: failed program was:" >&5
4575 sed 's/^/| /' conftest.$ac_ext >&5
4577 eval "$as_ac_Header=no"
4580 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4582 ac_res=`eval echo '${'$as_ac_Header'}'`
4583 { echo "$as_me:$LINENO: result: $ac_res" >&5
4584 echo "${ECHO_T}$ac_res" >&6; }
4585 if test `eval echo '${'$as_ac_Header'}'` = yes; then
4586 cat >>confdefs.h <<_ACEOF
4587 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
4588 _ACEOF
4592 done
4595 if test "${ac_cv_header_minix_config_h+set}" = set; then
4596 { echo "$as_me:$LINENO: checking for minix/config.h" >&5
4597 echo $ECHO_N "checking for minix/config.h... $ECHO_C" >&6; }
4598 if test "${ac_cv_header_minix_config_h+set}" = set; then
4599 echo $ECHO_N "(cached) $ECHO_C" >&6
4601 { echo "$as_me:$LINENO: result: $ac_cv_header_minix_config_h" >&5
4602 echo "${ECHO_T}$ac_cv_header_minix_config_h" >&6; }
4603 else
4604 # Is the header compilable?
4605 { echo "$as_me:$LINENO: checking minix/config.h usability" >&5
4606 echo $ECHO_N "checking minix/config.h usability... $ECHO_C" >&6; }
4607 cat >conftest.$ac_ext <<_ACEOF
4608 /* confdefs.h. */
4609 _ACEOF
4610 cat confdefs.h >>conftest.$ac_ext
4611 cat >>conftest.$ac_ext <<_ACEOF
4612 /* end confdefs.h. */
4613 $ac_includes_default
4614 #include <minix/config.h>
4615 _ACEOF
4616 rm -f conftest.$ac_objext
4617 if { (ac_try="$ac_compile"
4618 case "(($ac_try" in
4619 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4620 *) ac_try_echo=$ac_try;;
4621 esac
4622 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4623 (eval "$ac_compile") 2>conftest.er1
4624 ac_status=$?
4625 grep -v '^ *+' conftest.er1 >conftest.err
4626 rm -f conftest.er1
4627 cat conftest.err >&5
4628 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4629 (exit $ac_status); } && {
4630 test -z "$ac_c_werror_flag" ||
4631 test ! -s conftest.err
4632 } && test -s conftest.$ac_objext; then
4633 ac_header_compiler=yes
4634 else
4635 echo "$as_me: failed program was:" >&5
4636 sed 's/^/| /' conftest.$ac_ext >&5
4638 ac_header_compiler=no
4641 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4642 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
4643 echo "${ECHO_T}$ac_header_compiler" >&6; }
4645 # Is the header present?
4646 { echo "$as_me:$LINENO: checking minix/config.h presence" >&5
4647 echo $ECHO_N "checking minix/config.h presence... $ECHO_C" >&6; }
4648 cat >conftest.$ac_ext <<_ACEOF
4649 /* confdefs.h. */
4650 _ACEOF
4651 cat confdefs.h >>conftest.$ac_ext
4652 cat >>conftest.$ac_ext <<_ACEOF
4653 /* end confdefs.h. */
4654 #include <minix/config.h>
4655 _ACEOF
4656 if { (ac_try="$ac_cpp conftest.$ac_ext"
4657 case "(($ac_try" in
4658 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4659 *) ac_try_echo=$ac_try;;
4660 esac
4661 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4662 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
4663 ac_status=$?
4664 grep -v '^ *+' conftest.er1 >conftest.err
4665 rm -f conftest.er1
4666 cat conftest.err >&5
4667 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4668 (exit $ac_status); } >/dev/null && {
4669 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
4670 test ! -s conftest.err
4671 }; then
4672 ac_header_preproc=yes
4673 else
4674 echo "$as_me: failed program was:" >&5
4675 sed 's/^/| /' conftest.$ac_ext >&5
4677 ac_header_preproc=no
4680 rm -f conftest.err conftest.$ac_ext
4681 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
4682 echo "${ECHO_T}$ac_header_preproc" >&6; }
4684 # So? What about this header?
4685 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
4686 yes:no: )
4687 { echo "$as_me:$LINENO: WARNING: minix/config.h: accepted by the compiler, rejected by the preprocessor!" >&5
4688 echo "$as_me: WARNING: minix/config.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
4689 { echo "$as_me:$LINENO: WARNING: minix/config.h: proceeding with the compiler's result" >&5
4690 echo "$as_me: WARNING: minix/config.h: proceeding with the compiler's result" >&2;}
4691 ac_header_preproc=yes
4693 no:yes:* )
4694 { echo "$as_me:$LINENO: WARNING: minix/config.h: present but cannot be compiled" >&5
4695 echo "$as_me: WARNING: minix/config.h: present but cannot be compiled" >&2;}
4696 { echo "$as_me:$LINENO: WARNING: minix/config.h: check for missing prerequisite headers?" >&5
4697 echo "$as_me: WARNING: minix/config.h: check for missing prerequisite headers?" >&2;}
4698 { echo "$as_me:$LINENO: WARNING: minix/config.h: see the Autoconf documentation" >&5
4699 echo "$as_me: WARNING: minix/config.h: see the Autoconf documentation" >&2;}
4700 { echo "$as_me:$LINENO: WARNING: minix/config.h: section \"Present But Cannot Be Compiled\"" >&5
4701 echo "$as_me: WARNING: minix/config.h: section \"Present But Cannot Be Compiled\"" >&2;}
4702 { echo "$as_me:$LINENO: WARNING: minix/config.h: proceeding with the preprocessor's result" >&5
4703 echo "$as_me: WARNING: minix/config.h: proceeding with the preprocessor's result" >&2;}
4704 { echo "$as_me:$LINENO: WARNING: minix/config.h: in the future, the compiler will take precedence" >&5
4705 echo "$as_me: WARNING: minix/config.h: in the future, the compiler will take precedence" >&2;}
4708 esac
4709 { echo "$as_me:$LINENO: checking for minix/config.h" >&5
4710 echo $ECHO_N "checking for minix/config.h... $ECHO_C" >&6; }
4711 if test "${ac_cv_header_minix_config_h+set}" = set; then
4712 echo $ECHO_N "(cached) $ECHO_C" >&6
4713 else
4714 ac_cv_header_minix_config_h=$ac_header_preproc
4716 { echo "$as_me:$LINENO: result: $ac_cv_header_minix_config_h" >&5
4717 echo "${ECHO_T}$ac_cv_header_minix_config_h" >&6; }
4720 if test $ac_cv_header_minix_config_h = yes; then
4721 MINIX=yes
4722 else
4723 MINIX=
4727 if test "$MINIX" = yes; then
4729 cat >>confdefs.h <<\_ACEOF
4730 #define _POSIX_SOURCE 1
4731 _ACEOF
4734 cat >>confdefs.h <<\_ACEOF
4735 #define _POSIX_1_SOURCE 2
4736 _ACEOF
4739 cat >>confdefs.h <<\_ACEOF
4740 #define _MINIX 1
4741 _ACEOF
4755 { echo "$as_me:$LINENO: checking whether it is safe to define __EXTENSIONS__" >&5
4756 echo $ECHO_N "checking whether it is safe to define __EXTENSIONS__... $ECHO_C" >&6; }
4757 if test "${ac_cv_safe_to_define___extensions__+set}" = set; then
4758 echo $ECHO_N "(cached) $ECHO_C" >&6
4759 else
4760 cat >conftest.$ac_ext <<_ACEOF
4761 /* confdefs.h. */
4762 _ACEOF
4763 cat confdefs.h >>conftest.$ac_ext
4764 cat >>conftest.$ac_ext <<_ACEOF
4765 /* end confdefs.h. */
4767 # define __EXTENSIONS__ 1
4768 $ac_includes_default
4770 main ()
4774 return 0;
4776 _ACEOF
4777 rm -f conftest.$ac_objext
4778 if { (ac_try="$ac_compile"
4779 case "(($ac_try" in
4780 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4781 *) ac_try_echo=$ac_try;;
4782 esac
4783 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4784 (eval "$ac_compile") 2>conftest.er1
4785 ac_status=$?
4786 grep -v '^ *+' conftest.er1 >conftest.err
4787 rm -f conftest.er1
4788 cat conftest.err >&5
4789 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4790 (exit $ac_status); } && {
4791 test -z "$ac_c_werror_flag" ||
4792 test ! -s conftest.err
4793 } && test -s conftest.$ac_objext; then
4794 ac_cv_safe_to_define___extensions__=yes
4795 else
4796 echo "$as_me: failed program was:" >&5
4797 sed 's/^/| /' conftest.$ac_ext >&5
4799 ac_cv_safe_to_define___extensions__=no
4802 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4804 { echo "$as_me:$LINENO: result: $ac_cv_safe_to_define___extensions__" >&5
4805 echo "${ECHO_T}$ac_cv_safe_to_define___extensions__" >&6; }
4806 test $ac_cv_safe_to_define___extensions__ = yes &&
4807 cat >>confdefs.h <<\_ACEOF
4808 #define __EXTENSIONS__ 1
4809 _ACEOF
4811 cat >>confdefs.h <<\_ACEOF
4812 #define _POSIX_PTHREAD_SEMANTICS 1
4813 _ACEOF
4815 cat >>confdefs.h <<\_ACEOF
4816 #define _TANDEM_SOURCE 1
4817 _ACEOF
4821 ### Use -Wno-pointer-sign if the compiler supports it
4822 { echo "$as_me:$LINENO: checking whether gcc understands -Wno-pointer-sign" >&5
4823 echo $ECHO_N "checking whether gcc understands -Wno-pointer-sign... $ECHO_C" >&6; }
4824 SAVE_CFLAGS="$CFLAGS"
4825 CFLAGS="$CFLAGS -Wno-pointer-sign"
4826 cat >conftest.$ac_ext <<_ACEOF
4827 /* confdefs.h. */
4828 _ACEOF
4829 cat confdefs.h >>conftest.$ac_ext
4830 cat >>conftest.$ac_ext <<_ACEOF
4831 /* end confdefs.h. */
4834 main ()
4838 return 0;
4840 _ACEOF
4841 rm -f conftest.$ac_objext
4842 if { (ac_try="$ac_compile"
4843 case "(($ac_try" in
4844 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4845 *) ac_try_echo=$ac_try;;
4846 esac
4847 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4848 (eval "$ac_compile") 2>conftest.er1
4849 ac_status=$?
4850 grep -v '^ *+' conftest.er1 >conftest.err
4851 rm -f conftest.er1
4852 cat conftest.err >&5
4853 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4854 (exit $ac_status); } && {
4855 test -z "$ac_c_werror_flag" ||
4856 test ! -s conftest.err
4857 } && test -s conftest.$ac_objext; then
4858 has_option=yes
4859 else
4860 echo "$as_me: failed program was:" >&5
4861 sed 's/^/| /' conftest.$ac_ext >&5
4863 has_option=no
4866 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4867 if test $has_option = yes; then
4868 C_WARNINGS_SWITCH="-Wno-pointer-sign $C_WARNINGS_SWITCH"
4870 { echo "$as_me:$LINENO: result: $has_option" >&5
4871 echo "${ECHO_T}$has_option" >&6; }
4872 CFLAGS="$SAVE_CFLAGS"
4873 unset has_option
4874 unset SAVE_CFLAGS
4876 #### Some other nice autoconf tests.
4878 { echo "$as_me:$LINENO: checking whether ln -s works" >&5
4879 echo $ECHO_N "checking whether ln -s works... $ECHO_C" >&6; }
4880 LN_S=$as_ln_s
4881 if test "$LN_S" = "ln -s"; then
4882 { echo "$as_me:$LINENO: result: yes" >&5
4883 echo "${ECHO_T}yes" >&6; }
4884 else
4885 { echo "$as_me:$LINENO: result: no, using $LN_S" >&5
4886 echo "${ECHO_T}no, using $LN_S" >&6; }
4889 ac_ext=c
4890 ac_cpp='$CPP $CPPFLAGS'
4891 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4892 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4893 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4894 { echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
4895 echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6; }
4896 # On Suns, sometimes $CPP names a directory.
4897 if test -n "$CPP" && test -d "$CPP"; then
4898 CPP=
4900 if test -z "$CPP"; then
4901 if test "${ac_cv_prog_CPP+set}" = set; then
4902 echo $ECHO_N "(cached) $ECHO_C" >&6
4903 else
4904 # Double quotes because CPP needs to be expanded
4905 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
4907 ac_preproc_ok=false
4908 for ac_c_preproc_warn_flag in '' yes
4910 # Use a header file that comes with gcc, so configuring glibc
4911 # with a fresh cross-compiler works.
4912 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4913 # <limits.h> exists even on freestanding compilers.
4914 # On the NeXT, cc -E runs the code through the compiler's parser,
4915 # not just through cpp. "Syntax error" is here to catch this case.
4916 cat >conftest.$ac_ext <<_ACEOF
4917 /* confdefs.h. */
4918 _ACEOF
4919 cat confdefs.h >>conftest.$ac_ext
4920 cat >>conftest.$ac_ext <<_ACEOF
4921 /* end confdefs.h. */
4922 #ifdef __STDC__
4923 # include <limits.h>
4924 #else
4925 # include <assert.h>
4926 #endif
4927 Syntax error
4928 _ACEOF
4929 if { (ac_try="$ac_cpp conftest.$ac_ext"
4930 case "(($ac_try" in
4931 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4932 *) ac_try_echo=$ac_try;;
4933 esac
4934 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4935 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
4936 ac_status=$?
4937 grep -v '^ *+' conftest.er1 >conftest.err
4938 rm -f conftest.er1
4939 cat conftest.err >&5
4940 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4941 (exit $ac_status); } >/dev/null && {
4942 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
4943 test ! -s conftest.err
4944 }; then
4946 else
4947 echo "$as_me: failed program was:" >&5
4948 sed 's/^/| /' conftest.$ac_ext >&5
4950 # Broken: fails on valid input.
4951 continue
4954 rm -f conftest.err conftest.$ac_ext
4956 # OK, works on sane cases. Now check whether nonexistent headers
4957 # can be detected and how.
4958 cat >conftest.$ac_ext <<_ACEOF
4959 /* confdefs.h. */
4960 _ACEOF
4961 cat confdefs.h >>conftest.$ac_ext
4962 cat >>conftest.$ac_ext <<_ACEOF
4963 /* end confdefs.h. */
4964 #include <ac_nonexistent.h>
4965 _ACEOF
4966 if { (ac_try="$ac_cpp conftest.$ac_ext"
4967 case "(($ac_try" in
4968 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4969 *) ac_try_echo=$ac_try;;
4970 esac
4971 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4972 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
4973 ac_status=$?
4974 grep -v '^ *+' conftest.er1 >conftest.err
4975 rm -f conftest.er1
4976 cat conftest.err >&5
4977 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4978 (exit $ac_status); } >/dev/null && {
4979 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
4980 test ! -s conftest.err
4981 }; then
4982 # Broken: success on invalid input.
4983 continue
4984 else
4985 echo "$as_me: failed program was:" >&5
4986 sed 's/^/| /' conftest.$ac_ext >&5
4988 # Passes both tests.
4989 ac_preproc_ok=:
4990 break
4993 rm -f conftest.err conftest.$ac_ext
4995 done
4996 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4997 rm -f conftest.err conftest.$ac_ext
4998 if $ac_preproc_ok; then
4999 break
5002 done
5003 ac_cv_prog_CPP=$CPP
5006 CPP=$ac_cv_prog_CPP
5007 else
5008 ac_cv_prog_CPP=$CPP
5010 { echo "$as_me:$LINENO: result: $CPP" >&5
5011 echo "${ECHO_T}$CPP" >&6; }
5012 ac_preproc_ok=false
5013 for ac_c_preproc_warn_flag in '' yes
5015 # Use a header file that comes with gcc, so configuring glibc
5016 # with a fresh cross-compiler works.
5017 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5018 # <limits.h> exists even on freestanding compilers.
5019 # On the NeXT, cc -E runs the code through the compiler's parser,
5020 # not just through cpp. "Syntax error" is here to catch this case.
5021 cat >conftest.$ac_ext <<_ACEOF
5022 /* confdefs.h. */
5023 _ACEOF
5024 cat confdefs.h >>conftest.$ac_ext
5025 cat >>conftest.$ac_ext <<_ACEOF
5026 /* end confdefs.h. */
5027 #ifdef __STDC__
5028 # include <limits.h>
5029 #else
5030 # include <assert.h>
5031 #endif
5032 Syntax error
5033 _ACEOF
5034 if { (ac_try="$ac_cpp conftest.$ac_ext"
5035 case "(($ac_try" in
5036 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5037 *) ac_try_echo=$ac_try;;
5038 esac
5039 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5040 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
5041 ac_status=$?
5042 grep -v '^ *+' conftest.er1 >conftest.err
5043 rm -f conftest.er1
5044 cat conftest.err >&5
5045 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5046 (exit $ac_status); } >/dev/null && {
5047 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
5048 test ! -s conftest.err
5049 }; then
5051 else
5052 echo "$as_me: failed program was:" >&5
5053 sed 's/^/| /' conftest.$ac_ext >&5
5055 # Broken: fails on valid input.
5056 continue
5059 rm -f conftest.err conftest.$ac_ext
5061 # OK, works on sane cases. Now check whether nonexistent headers
5062 # can be detected and how.
5063 cat >conftest.$ac_ext <<_ACEOF
5064 /* confdefs.h. */
5065 _ACEOF
5066 cat confdefs.h >>conftest.$ac_ext
5067 cat >>conftest.$ac_ext <<_ACEOF
5068 /* end confdefs.h. */
5069 #include <ac_nonexistent.h>
5070 _ACEOF
5071 if { (ac_try="$ac_cpp conftest.$ac_ext"
5072 case "(($ac_try" in
5073 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5074 *) ac_try_echo=$ac_try;;
5075 esac
5076 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5077 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
5078 ac_status=$?
5079 grep -v '^ *+' conftest.er1 >conftest.err
5080 rm -f conftest.er1
5081 cat conftest.err >&5
5082 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5083 (exit $ac_status); } >/dev/null && {
5084 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
5085 test ! -s conftest.err
5086 }; then
5087 # Broken: success on invalid input.
5088 continue
5089 else
5090 echo "$as_me: failed program was:" >&5
5091 sed 's/^/| /' conftest.$ac_ext >&5
5093 # Passes both tests.
5094 ac_preproc_ok=:
5095 break
5098 rm -f conftest.err conftest.$ac_ext
5100 done
5101 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
5102 rm -f conftest.err conftest.$ac_ext
5103 if $ac_preproc_ok; then
5105 else
5106 { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
5107 See \`config.log' for more details." >&5
5108 echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
5109 See \`config.log' for more details." >&2;}
5110 { (exit 1); exit 1; }; }
5113 ac_ext=c
5114 ac_cpp='$CPP $CPPFLAGS'
5115 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5116 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5117 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5119 # Find a good install program. We prefer a C program (faster),
5120 # so one script is as good as another. But avoid the broken or
5121 # incompatible versions:
5122 # SysV /etc/install, /usr/sbin/install
5123 # SunOS /usr/etc/install
5124 # IRIX /sbin/install
5125 # AIX /bin/install
5126 # AmigaOS /C/install, which installs bootblocks on floppy discs
5127 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
5128 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
5129 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
5130 # OS/2's system install, which has a completely different semantic
5131 # ./install, which can be erroneously created by make from ./install.sh.
5132 { echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
5133 echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6; }
5134 if test -z "$INSTALL"; then
5135 if test "${ac_cv_path_install+set}" = set; then
5136 echo $ECHO_N "(cached) $ECHO_C" >&6
5137 else
5138 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5139 for as_dir in $PATH
5141 IFS=$as_save_IFS
5142 test -z "$as_dir" && as_dir=.
5143 # Account for people who put trailing slashes in PATH elements.
5144 case $as_dir/ in
5145 ./ | .// | /cC/* | \
5146 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
5147 ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
5148 /usr/ucb/* ) ;;
5150 # OSF1 and SCO ODT 3.0 have their own names for install.
5151 # Don't use installbsd from OSF since it installs stuff as root
5152 # by default.
5153 for ac_prog in ginstall scoinst install; do
5154 for ac_exec_ext in '' $ac_executable_extensions; do
5155 if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; }; then
5156 if test $ac_prog = install &&
5157 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
5158 # AIX install. It has an incompatible calling convention.
5160 elif test $ac_prog = install &&
5161 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
5162 # program-specific install script used by HP pwplus--don't use.
5164 else
5165 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
5166 break 3
5169 done
5170 done
5172 esac
5173 done
5174 IFS=$as_save_IFS
5178 if test "${ac_cv_path_install+set}" = set; then
5179 INSTALL=$ac_cv_path_install
5180 else
5181 # As a last resort, use the slow shell script. Don't cache a
5182 # value for INSTALL within a source directory, because that will
5183 # break other packages using the cache if that directory is
5184 # removed, or if the value is a relative name.
5185 INSTALL=$ac_install_sh
5188 { echo "$as_me:$LINENO: result: $INSTALL" >&5
5189 echo "${ECHO_T}$INSTALL" >&6; }
5191 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
5192 # It thinks the first close brace ends the variable substitution.
5193 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
5195 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
5197 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
5199 if test "x$RANLIB" = x; then
5200 if test -n "$ac_tool_prefix"; then
5201 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
5202 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
5203 { echo "$as_me:$LINENO: checking for $ac_word" >&5
5204 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5205 if test "${ac_cv_prog_RANLIB+set}" = set; then
5206 echo $ECHO_N "(cached) $ECHO_C" >&6
5207 else
5208 if test -n "$RANLIB"; then
5209 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
5210 else
5211 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5212 for as_dir in $PATH
5214 IFS=$as_save_IFS
5215 test -z "$as_dir" && as_dir=.
5216 for ac_exec_ext in '' $ac_executable_extensions; do
5217 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5218 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
5219 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5220 break 2
5222 done
5223 done
5224 IFS=$as_save_IFS
5228 RANLIB=$ac_cv_prog_RANLIB
5229 if test -n "$RANLIB"; then
5230 { echo "$as_me:$LINENO: result: $RANLIB" >&5
5231 echo "${ECHO_T}$RANLIB" >&6; }
5232 else
5233 { echo "$as_me:$LINENO: result: no" >&5
5234 echo "${ECHO_T}no" >&6; }
5239 if test -z "$ac_cv_prog_RANLIB"; then
5240 ac_ct_RANLIB=$RANLIB
5241 # Extract the first word of "ranlib", so it can be a program name with args.
5242 set dummy ranlib; ac_word=$2
5243 { echo "$as_me:$LINENO: checking for $ac_word" >&5
5244 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5245 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
5246 echo $ECHO_N "(cached) $ECHO_C" >&6
5247 else
5248 if test -n "$ac_ct_RANLIB"; then
5249 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
5250 else
5251 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5252 for as_dir in $PATH
5254 IFS=$as_save_IFS
5255 test -z "$as_dir" && as_dir=.
5256 for ac_exec_ext in '' $ac_executable_extensions; do
5257 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5258 ac_cv_prog_ac_ct_RANLIB="ranlib"
5259 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5260 break 2
5262 done
5263 done
5264 IFS=$as_save_IFS
5268 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
5269 if test -n "$ac_ct_RANLIB"; then
5270 { echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
5271 echo "${ECHO_T}$ac_ct_RANLIB" >&6; }
5272 else
5273 { echo "$as_me:$LINENO: result: no" >&5
5274 echo "${ECHO_T}no" >&6; }
5277 if test "x$ac_ct_RANLIB" = x; then
5278 RANLIB=":"
5279 else
5280 case $cross_compiling:$ac_tool_warned in
5281 yes:)
5282 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
5283 whose name does not start with the host triplet. If you think this
5284 configuration is useful to you, please write to autoconf@gnu.org." >&5
5285 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
5286 whose name does not start with the host triplet. If you think this
5287 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
5288 ac_tool_warned=yes ;;
5289 esac
5290 RANLIB=$ac_ct_RANLIB
5292 else
5293 RANLIB="$ac_cv_prog_RANLIB"
5297 # Extract the first word of "install-info", so it can be a program name with args.
5298 set dummy install-info; ac_word=$2
5299 { echo "$as_me:$LINENO: checking for $ac_word" >&5
5300 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5301 if test "${ac_cv_path_INSTALL_INFO+set}" = set; then
5302 echo $ECHO_N "(cached) $ECHO_C" >&6
5303 else
5304 case $INSTALL_INFO in
5305 [\\/]* | ?:[\\/]*)
5306 ac_cv_path_INSTALL_INFO="$INSTALL_INFO" # Let the user override the test with a path.
5309 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5310 for as_dir in $PATH
5312 IFS=$as_save_IFS
5313 test -z "$as_dir" && as_dir=.
5314 for ac_exec_ext in '' $ac_executable_extensions; do
5315 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5316 ac_cv_path_INSTALL_INFO="$as_dir/$ac_word$ac_exec_ext"
5317 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5318 break 2
5320 done
5321 done
5322 IFS=$as_save_IFS
5325 esac
5327 INSTALL_INFO=$ac_cv_path_INSTALL_INFO
5328 if test -n "$INSTALL_INFO"; then
5329 { echo "$as_me:$LINENO: result: $INSTALL_INFO" >&5
5330 echo "${ECHO_T}$INSTALL_INFO" >&6; }
5331 else
5332 { echo "$as_me:$LINENO: result: no" >&5
5333 echo "${ECHO_T}no" >&6; }
5337 # Extract the first word of "install-info", so it can be a program name with args.
5338 set dummy install-info; ac_word=$2
5339 { echo "$as_me:$LINENO: checking for $ac_word" >&5
5340 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5341 if test "${ac_cv_path_INSTALL_INFO+set}" = set; then
5342 echo $ECHO_N "(cached) $ECHO_C" >&6
5343 else
5344 case $INSTALL_INFO in
5345 [\\/]* | ?:[\\/]*)
5346 ac_cv_path_INSTALL_INFO="$INSTALL_INFO" # Let the user override the test with a path.
5349 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5350 for as_dir in /usr/sbin
5352 IFS=$as_save_IFS
5353 test -z "$as_dir" && as_dir=.
5354 for ac_exec_ext in '' $ac_executable_extensions; do
5355 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5356 ac_cv_path_INSTALL_INFO="$as_dir/$ac_word$ac_exec_ext"
5357 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5358 break 2
5360 done
5361 done
5362 IFS=$as_save_IFS
5365 esac
5367 INSTALL_INFO=$ac_cv_path_INSTALL_INFO
5368 if test -n "$INSTALL_INFO"; then
5369 { echo "$as_me:$LINENO: result: $INSTALL_INFO" >&5
5370 echo "${ECHO_T}$INSTALL_INFO" >&6; }
5371 else
5372 { echo "$as_me:$LINENO: result: no" >&5
5373 echo "${ECHO_T}no" >&6; }
5377 # Extract the first word of "install-info", so it can be a program name with args.
5378 set dummy install-info; ac_word=$2
5379 { echo "$as_me:$LINENO: checking for $ac_word" >&5
5380 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5381 if test "${ac_cv_path_INSTALL_INFO+set}" = set; then
5382 echo $ECHO_N "(cached) $ECHO_C" >&6
5383 else
5384 case $INSTALL_INFO in
5385 [\\/]* | ?:[\\/]*)
5386 ac_cv_path_INSTALL_INFO="$INSTALL_INFO" # Let the user override the test with a path.
5389 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5390 for as_dir in /sbin
5392 IFS=$as_save_IFS
5393 test -z "$as_dir" && as_dir=.
5394 for ac_exec_ext in '' $ac_executable_extensions; do
5395 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5396 ac_cv_path_INSTALL_INFO="$as_dir/$ac_word$ac_exec_ext"
5397 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5398 break 2
5400 done
5401 done
5402 IFS=$as_save_IFS
5404 test -z "$ac_cv_path_INSTALL_INFO" && ac_cv_path_INSTALL_INFO=":"
5406 esac
5408 INSTALL_INFO=$ac_cv_path_INSTALL_INFO
5409 if test -n "$INSTALL_INFO"; then
5410 { echo "$as_me:$LINENO: result: $INSTALL_INFO" >&5
5411 echo "${ECHO_T}$INSTALL_INFO" >&6; }
5412 else
5413 { echo "$as_me:$LINENO: result: no" >&5
5414 echo "${ECHO_T}no" >&6; }
5418 # Extract the first word of "gzip", so it can be a program name with args.
5419 set dummy gzip; ac_word=$2
5420 { echo "$as_me:$LINENO: checking for $ac_word" >&5
5421 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5422 if test "${ac_cv_path_GZIP_PROG+set}" = set; then
5423 echo $ECHO_N "(cached) $ECHO_C" >&6
5424 else
5425 case $GZIP_PROG in
5426 [\\/]* | ?:[\\/]*)
5427 ac_cv_path_GZIP_PROG="$GZIP_PROG" # Let the user override the test with a path.
5430 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5431 for as_dir in $PATH
5433 IFS=$as_save_IFS
5434 test -z "$as_dir" && as_dir=.
5435 for ac_exec_ext in '' $ac_executable_extensions; do
5436 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5437 ac_cv_path_GZIP_PROG="$as_dir/$ac_word$ac_exec_ext"
5438 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5439 break 2
5441 done
5442 done
5443 IFS=$as_save_IFS
5446 esac
5448 GZIP_PROG=$ac_cv_path_GZIP_PROG
5449 if test -n "$GZIP_PROG"; then
5450 { echo "$as_me:$LINENO: result: $GZIP_PROG" >&5
5451 echo "${ECHO_T}$GZIP_PROG" >&6; }
5452 else
5453 { echo "$as_me:$LINENO: result: no" >&5
5454 echo "${ECHO_T}no" >&6; }
5460 ## Need makeinfo >= 4.6 (?) to build the manuals.
5461 # Extract the first word of "makeinfo", so it can be a program name with args.
5462 set dummy makeinfo; ac_word=$2
5463 { echo "$as_me:$LINENO: checking for $ac_word" >&5
5464 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5465 if test "${ac_cv_path_MAKEINFO+set}" = set; then
5466 echo $ECHO_N "(cached) $ECHO_C" >&6
5467 else
5468 case $MAKEINFO in
5469 [\\/]* | ?:[\\/]*)
5470 ac_cv_path_MAKEINFO="$MAKEINFO" # Let the user override the test with a path.
5473 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5474 for as_dir in $PATH
5476 IFS=$as_save_IFS
5477 test -z "$as_dir" && as_dir=.
5478 for ac_exec_ext in '' $ac_executable_extensions; do
5479 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5480 ac_cv_path_MAKEINFO="$as_dir/$ac_word$ac_exec_ext"
5481 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5482 break 2
5484 done
5485 done
5486 IFS=$as_save_IFS
5488 test -z "$ac_cv_path_MAKEINFO" && ac_cv_path_MAKEINFO="no"
5490 esac
5492 MAKEINFO=$ac_cv_path_MAKEINFO
5493 if test -n "$MAKEINFO"; then
5494 { echo "$as_me:$LINENO: result: $MAKEINFO" >&5
5495 echo "${ECHO_T}$MAKEINFO" >&6; }
5496 else
5497 { echo "$as_me:$LINENO: result: no" >&5
5498 echo "${ECHO_T}no" >&6; }
5502 if test "$MAKEINFO" != "no" && \
5503 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
5504 MAKEINFO=no
5507 ## Makeinfo is unusual. For a released Emacs, the manuals are
5508 ## pre-built, and not deleted by the normal clean rules. makeinfo is
5509 ## therefore in the category of "special tools" not normally required, which
5510 ## configure does not have to check for (eg autoconf itself).
5511 ## In a CVS checkout on the other hand, the manuals are not included.
5512 ## So makeinfo is a requirement to build from CVS, and configure
5513 ## should test for it as it does for any other build requirement.
5514 ## We use the presence of $srcdir/info/emacs to distinguish a release,
5515 ## with pre-built manuals, from a CVS checkout.
5516 if test "$MAKEINFO" = "no"; then
5517 if test "x${with_makeinfo}" = "xno"; then
5518 MAKEINFO=off
5519 elif ! test -e $srcdir/info/emacs; then
5520 { { echo "$as_me:$LINENO: error: You do not seem to have makeinfo >= 4.6, and your
5521 source tree does not seem to have pre-built manuals in the \`info' directory.
5522 Either install a suitable version of makeinfo, or re-run configure
5523 with the \`--without-makeinfo' option to build without the manuals. " >&5
5524 echo "$as_me: error: You do not seem to have makeinfo >= 4.6, and your
5525 source tree does not seem to have pre-built manuals in the \`info' directory.
5526 Either install a suitable version of makeinfo, or re-run configure
5527 with the \`--without-makeinfo' option to build without the manuals. " >&2;}
5528 { (exit 1); exit 1; }; }
5533 if test x$GCC = xyes && test "x$GCC_LINK_TEST_OPTIONS" != x
5534 then
5535 ac_link="$ac_link $GCC_LINK_TEST_OPTIONS"
5538 if test x$GCC = x && test "x$NON_GCC_LINK_TEST_OPTIONS" != x
5539 then
5540 ac_link="$ac_link $NON_GCC_LINK_TEST_OPTIONS"
5544 late_LDFLAGS=$LDFLAGS
5545 if test "$GCC" = yes; then
5546 LDFLAGS="$LDFLAGS -Wl,-znocombreloc"
5547 else
5548 LDFLAGS="$LDFLAGS -znocombreloc"
5551 { echo "$as_me:$LINENO: checking for -znocombreloc" >&5
5552 echo $ECHO_N "checking for -znocombreloc... $ECHO_C" >&6; }
5553 cat >conftest.$ac_ext <<_ACEOF
5554 main(){return 0;}
5555 _ACEOF
5556 rm -f conftest.$ac_objext conftest$ac_exeext
5557 if { (ac_try="$ac_link"
5558 case "(($ac_try" in
5559 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5560 *) ac_try_echo=$ac_try;;
5561 esac
5562 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5563 (eval "$ac_link") 2>conftest.er1
5564 ac_status=$?
5565 grep -v '^ *+' conftest.er1 >conftest.err
5566 rm -f conftest.er1
5567 cat conftest.err >&5
5568 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5569 (exit $ac_status); } && {
5570 test -z "$ac_c_werror_flag" ||
5571 test ! -s conftest.err
5572 } && test -s conftest$ac_exeext &&
5573 $as_test_x conftest$ac_exeext; then
5574 { echo "$as_me:$LINENO: result: yes" >&5
5575 echo "${ECHO_T}yes" >&6; }
5576 else
5577 echo "$as_me: failed program was:" >&5
5578 sed 's/^/| /' conftest.$ac_ext >&5
5580 LDFLAGS=$late_LDFLAGS
5581 { echo "$as_me:$LINENO: result: no" >&5
5582 echo "${ECHO_T}no" >&6; }
5585 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
5586 conftest$ac_exeext conftest.$ac_ext
5588 #### Extract some information from the operating system and machine files.
5590 { echo "$as_me:$LINENO: checking the machine- and system-dependent files to find out
5591 - which libraries the lib-src programs will want, and
5592 - whether the GNU malloc routines are usable..." >&5
5593 echo "$as_me: checking the machine- and system-dependent files to find out
5594 - which libraries the lib-src programs will want, and
5595 - whether the GNU malloc routines are usable..." >&6;}
5597 ### First figure out CFLAGS (which we use for running the compiler here)
5598 ### and REAL_CFLAGS (which we use for real compilation).
5599 ### The two are the same except on a few systems, where they are made
5600 ### different to work around various lossages. For example,
5601 ### GCC 2.5 on GNU/Linux needs them to be different because it treats -g
5602 ### as implying static linking.
5604 ### If the CFLAGS env var is specified, we use that value
5605 ### instead of the default.
5607 ### It's not important that this name contain the PID; you can't run
5608 ### two configures in the same directory and have anything work
5609 ### anyway.
5610 tempcname="conftest.c"
5612 echo '
5613 #include "'${srcdir}'/src/'${opsysfile}'"
5614 #include "'${srcdir}'/src/'${machfile}'"
5615 #ifndef LIBS_MACHINE
5616 #define LIBS_MACHINE
5617 #endif
5618 #ifndef LIBS_SYSTEM
5619 #define LIBS_SYSTEM
5620 #endif
5621 #ifndef C_SWITCH_SYSTEM
5622 #define C_SWITCH_SYSTEM
5623 #endif
5624 #ifndef C_SWITCH_MACHINE
5625 #define C_SWITCH_MACHINE
5626 #endif
5627 configure___ libsrc_libs=LIBS_MACHINE LIBS_SYSTEM
5628 configure___ c_switch_system=C_SWITCH_SYSTEM
5629 configure___ c_switch_machine=C_SWITCH_MACHINE
5631 #ifndef LIB_X11_LIB
5632 #define LIB_X11_LIB -lX11
5633 #endif
5635 #ifndef LIBX11_SYSTEM
5636 #define LIBX11_SYSTEM
5637 #endif
5638 configure___ LIBX=LIB_X11_LIB LIBX11_SYSTEM
5640 #ifdef UNEXEC
5641 configure___ unexec=UNEXEC
5642 #else
5643 configure___ unexec=unexec.o
5644 #endif
5646 #ifdef SYSTEM_MALLOC
5647 configure___ system_malloc=yes
5648 #else
5649 configure___ system_malloc=no
5650 #endif
5652 #ifdef USE_MMAP_FOR_BUFFERS
5653 configure___ use_mmap_for_buffers=yes
5654 #else
5655 configure___ use_mmap_for_buffers=no
5656 #endif
5658 #ifndef C_DEBUG_SWITCH
5659 #define C_DEBUG_SWITCH -g
5660 #endif
5662 #ifndef C_OPTIMIZE_SWITCH
5663 #ifdef __GNUC__
5664 #define C_OPTIMIZE_SWITCH -O2
5665 #else
5666 #define C_OPTIMIZE_SWITCH -O
5667 #endif
5668 #endif
5670 #ifndef C_WARNINGS_SWITCH
5671 #define C_WARNINGS_SWITCH ${C_WARNINGS_SWITCH}
5672 #endif
5674 #ifndef LD_SWITCH_MACHINE
5675 #define LD_SWITCH_MACHINE
5676 #endif
5678 #ifndef LD_SWITCH_SYSTEM
5679 #define LD_SWITCH_SYSTEM
5680 #endif
5682 #ifndef LD_SWITCH_X_SITE_AUX
5683 #define LD_SWITCH_X_SITE_AUX
5684 #endif
5686 configure___ ld_switch_system=LD_SWITCH_SYSTEM
5687 configure___ ld_switch_machine=LD_SWITCH_MACHINE
5689 #ifdef THIS_IS_CONFIGURE
5691 /* Get the CFLAGS for tests in configure. */
5692 #ifdef __GNUC__
5693 configure___ CFLAGS=C_DEBUG_SWITCH C_OPTIMIZE_SWITCH '${SPECIFIED_CFLAGS}'
5694 #else
5695 configure___ CFLAGS=C_DEBUG_SWITCH '${SPECIFIED_CFLAGS}'
5696 #endif
5698 #else /* not THIS_IS_CONFIGURE */
5700 /* Get the CFLAGS for real compilation. */
5701 #ifdef __GNUC__
5702 configure___ REAL_CFLAGS=C_DEBUG_SWITCH C_OPTIMIZE_SWITCH C_WARNINGS_SWITCH '${SPECIFIED_CFLAGS}'
5703 #else
5704 configure___ REAL_CFLAGS=C_DEBUG_SWITCH '${SPECIFIED_CFLAGS}'
5705 #endif
5707 #endif /* not THIS_IS_CONFIGURE */
5708 ' > ${tempcname}
5710 # The value of CPP is a quoted variable reference, so we need to do this
5711 # to get its actual value...
5712 CPP=`eval "echo $CPP"`
5713 eval `${CPP} -Isrc ${tempcname} \
5714 | sed -n -e 's/^configure___ \([^=]*=\)\(.*\)$/\1"\2"/p'`
5715 if test "x$SPECIFIED_CFLAGS" = x; then
5716 eval `${CPP} -Isrc -DTHIS_IS_CONFIGURE ${tempcname} \
5717 | sed -n -e 's/^configure___ \([^=]*=\)\(.*\)$/\1"\2"/p'`
5718 else
5719 REAL_CFLAGS="$CFLAGS"
5721 rm ${tempcname}
5723 ac_link="$ac_link $ld_switch_machine $ld_switch_system"
5725 ### Make sure subsequent tests use flags consistent with the build flags.
5727 if test x"${OVERRIDE_CPPFLAGS}" != x; then
5728 CPPFLAGS="${OVERRIDE_CPPFLAGS}"
5729 else
5730 CPPFLAGS="$c_switch_system $c_switch_machine $CPPFLAGS"
5735 # Check whether --enable-largefile was given.
5736 if test "${enable_largefile+set}" = set; then
5737 enableval=$enable_largefile;
5740 if test "$enable_largefile" != no; then
5742 { echo "$as_me:$LINENO: checking for special C compiler options needed for large files" >&5
5743 echo $ECHO_N "checking for special C compiler options needed for large files... $ECHO_C" >&6; }
5744 if test "${ac_cv_sys_largefile_CC+set}" = set; then
5745 echo $ECHO_N "(cached) $ECHO_C" >&6
5746 else
5747 ac_cv_sys_largefile_CC=no
5748 if test "$GCC" != yes; then
5749 ac_save_CC=$CC
5750 while :; do
5751 # IRIX 6.2 and later do not support large files by default,
5752 # so use the C compiler's -n32 option if that helps.
5753 cat >conftest.$ac_ext <<_ACEOF
5754 /* confdefs.h. */
5755 _ACEOF
5756 cat confdefs.h >>conftest.$ac_ext
5757 cat >>conftest.$ac_ext <<_ACEOF
5758 /* end confdefs.h. */
5759 #include <sys/types.h>
5760 /* Check that off_t can represent 2**63 - 1 correctly.
5761 We can't simply define LARGE_OFF_T to be 9223372036854775807,
5762 since some C++ compilers masquerading as C compilers
5763 incorrectly reject 9223372036854775807. */
5764 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
5765 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
5766 && LARGE_OFF_T % 2147483647 == 1)
5767 ? 1 : -1];
5769 main ()
5773 return 0;
5775 _ACEOF
5776 rm -f conftest.$ac_objext
5777 if { (ac_try="$ac_compile"
5778 case "(($ac_try" in
5779 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5780 *) ac_try_echo=$ac_try;;
5781 esac
5782 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5783 (eval "$ac_compile") 2>conftest.er1
5784 ac_status=$?
5785 grep -v '^ *+' conftest.er1 >conftest.err
5786 rm -f conftest.er1
5787 cat conftest.err >&5
5788 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5789 (exit $ac_status); } && {
5790 test -z "$ac_c_werror_flag" ||
5791 test ! -s conftest.err
5792 } && test -s conftest.$ac_objext; then
5793 break
5794 else
5795 echo "$as_me: failed program was:" >&5
5796 sed 's/^/| /' conftest.$ac_ext >&5
5801 rm -f core conftest.err conftest.$ac_objext
5802 CC="$CC -n32"
5803 rm -f conftest.$ac_objext
5804 if { (ac_try="$ac_compile"
5805 case "(($ac_try" in
5806 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5807 *) ac_try_echo=$ac_try;;
5808 esac
5809 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5810 (eval "$ac_compile") 2>conftest.er1
5811 ac_status=$?
5812 grep -v '^ *+' conftest.er1 >conftest.err
5813 rm -f conftest.er1
5814 cat conftest.err >&5
5815 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5816 (exit $ac_status); } && {
5817 test -z "$ac_c_werror_flag" ||
5818 test ! -s conftest.err
5819 } && test -s conftest.$ac_objext; then
5820 ac_cv_sys_largefile_CC=' -n32'; break
5821 else
5822 echo "$as_me: failed program was:" >&5
5823 sed 's/^/| /' conftest.$ac_ext >&5
5828 rm -f core conftest.err conftest.$ac_objext
5829 break
5830 done
5831 CC=$ac_save_CC
5832 rm -f conftest.$ac_ext
5835 { echo "$as_me:$LINENO: result: $ac_cv_sys_largefile_CC" >&5
5836 echo "${ECHO_T}$ac_cv_sys_largefile_CC" >&6; }
5837 if test "$ac_cv_sys_largefile_CC" != no; then
5838 CC=$CC$ac_cv_sys_largefile_CC
5841 { echo "$as_me:$LINENO: checking for _FILE_OFFSET_BITS value needed for large files" >&5
5842 echo $ECHO_N "checking for _FILE_OFFSET_BITS value needed for large files... $ECHO_C" >&6; }
5843 if test "${ac_cv_sys_file_offset_bits+set}" = set; then
5844 echo $ECHO_N "(cached) $ECHO_C" >&6
5845 else
5846 while :; do
5847 cat >conftest.$ac_ext <<_ACEOF
5848 /* confdefs.h. */
5849 _ACEOF
5850 cat confdefs.h >>conftest.$ac_ext
5851 cat >>conftest.$ac_ext <<_ACEOF
5852 /* end confdefs.h. */
5853 #include <sys/types.h>
5854 /* Check that off_t can represent 2**63 - 1 correctly.
5855 We can't simply define LARGE_OFF_T to be 9223372036854775807,
5856 since some C++ compilers masquerading as C compilers
5857 incorrectly reject 9223372036854775807. */
5858 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
5859 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
5860 && LARGE_OFF_T % 2147483647 == 1)
5861 ? 1 : -1];
5863 main ()
5867 return 0;
5869 _ACEOF
5870 rm -f conftest.$ac_objext
5871 if { (ac_try="$ac_compile"
5872 case "(($ac_try" in
5873 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5874 *) ac_try_echo=$ac_try;;
5875 esac
5876 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5877 (eval "$ac_compile") 2>conftest.er1
5878 ac_status=$?
5879 grep -v '^ *+' conftest.er1 >conftest.err
5880 rm -f conftest.er1
5881 cat conftest.err >&5
5882 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5883 (exit $ac_status); } && {
5884 test -z "$ac_c_werror_flag" ||
5885 test ! -s conftest.err
5886 } && test -s conftest.$ac_objext; then
5887 ac_cv_sys_file_offset_bits=no; break
5888 else
5889 echo "$as_me: failed program was:" >&5
5890 sed 's/^/| /' conftest.$ac_ext >&5
5895 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5896 cat >conftest.$ac_ext <<_ACEOF
5897 /* confdefs.h. */
5898 _ACEOF
5899 cat confdefs.h >>conftest.$ac_ext
5900 cat >>conftest.$ac_ext <<_ACEOF
5901 /* end confdefs.h. */
5902 #define _FILE_OFFSET_BITS 64
5903 #include <sys/types.h>
5904 /* Check that off_t can represent 2**63 - 1 correctly.
5905 We can't simply define LARGE_OFF_T to be 9223372036854775807,
5906 since some C++ compilers masquerading as C compilers
5907 incorrectly reject 9223372036854775807. */
5908 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
5909 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
5910 && LARGE_OFF_T % 2147483647 == 1)
5911 ? 1 : -1];
5913 main ()
5917 return 0;
5919 _ACEOF
5920 rm -f conftest.$ac_objext
5921 if { (ac_try="$ac_compile"
5922 case "(($ac_try" in
5923 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5924 *) ac_try_echo=$ac_try;;
5925 esac
5926 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5927 (eval "$ac_compile") 2>conftest.er1
5928 ac_status=$?
5929 grep -v '^ *+' conftest.er1 >conftest.err
5930 rm -f conftest.er1
5931 cat conftest.err >&5
5932 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5933 (exit $ac_status); } && {
5934 test -z "$ac_c_werror_flag" ||
5935 test ! -s conftest.err
5936 } && test -s conftest.$ac_objext; then
5937 ac_cv_sys_file_offset_bits=64; break
5938 else
5939 echo "$as_me: failed program was:" >&5
5940 sed 's/^/| /' conftest.$ac_ext >&5
5945 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5946 ac_cv_sys_file_offset_bits=unknown
5947 break
5948 done
5950 { echo "$as_me:$LINENO: result: $ac_cv_sys_file_offset_bits" >&5
5951 echo "${ECHO_T}$ac_cv_sys_file_offset_bits" >&6; }
5952 case $ac_cv_sys_file_offset_bits in #(
5953 no | unknown) ;;
5955 cat >>confdefs.h <<_ACEOF
5956 #define _FILE_OFFSET_BITS $ac_cv_sys_file_offset_bits
5957 _ACEOF
5959 esac
5960 rm -f conftest*
5961 if test $ac_cv_sys_file_offset_bits = unknown; then
5962 { echo "$as_me:$LINENO: checking for _LARGE_FILES value needed for large files" >&5
5963 echo $ECHO_N "checking for _LARGE_FILES value needed for large files... $ECHO_C" >&6; }
5964 if test "${ac_cv_sys_large_files+set}" = set; then
5965 echo $ECHO_N "(cached) $ECHO_C" >&6
5966 else
5967 while :; do
5968 cat >conftest.$ac_ext <<_ACEOF
5969 /* confdefs.h. */
5970 _ACEOF
5971 cat confdefs.h >>conftest.$ac_ext
5972 cat >>conftest.$ac_ext <<_ACEOF
5973 /* end confdefs.h. */
5974 #include <sys/types.h>
5975 /* Check that off_t can represent 2**63 - 1 correctly.
5976 We can't simply define LARGE_OFF_T to be 9223372036854775807,
5977 since some C++ compilers masquerading as C compilers
5978 incorrectly reject 9223372036854775807. */
5979 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
5980 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
5981 && LARGE_OFF_T % 2147483647 == 1)
5982 ? 1 : -1];
5984 main ()
5988 return 0;
5990 _ACEOF
5991 rm -f conftest.$ac_objext
5992 if { (ac_try="$ac_compile"
5993 case "(($ac_try" in
5994 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5995 *) ac_try_echo=$ac_try;;
5996 esac
5997 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5998 (eval "$ac_compile") 2>conftest.er1
5999 ac_status=$?
6000 grep -v '^ *+' conftest.er1 >conftest.err
6001 rm -f conftest.er1
6002 cat conftest.err >&5
6003 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6004 (exit $ac_status); } && {
6005 test -z "$ac_c_werror_flag" ||
6006 test ! -s conftest.err
6007 } && test -s conftest.$ac_objext; then
6008 ac_cv_sys_large_files=no; break
6009 else
6010 echo "$as_me: failed program was:" >&5
6011 sed 's/^/| /' conftest.$ac_ext >&5
6016 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6017 cat >conftest.$ac_ext <<_ACEOF
6018 /* confdefs.h. */
6019 _ACEOF
6020 cat confdefs.h >>conftest.$ac_ext
6021 cat >>conftest.$ac_ext <<_ACEOF
6022 /* end confdefs.h. */
6023 #define _LARGE_FILES 1
6024 #include <sys/types.h>
6025 /* Check that off_t can represent 2**63 - 1 correctly.
6026 We can't simply define LARGE_OFF_T to be 9223372036854775807,
6027 since some C++ compilers masquerading as C compilers
6028 incorrectly reject 9223372036854775807. */
6029 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
6030 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
6031 && LARGE_OFF_T % 2147483647 == 1)
6032 ? 1 : -1];
6034 main ()
6038 return 0;
6040 _ACEOF
6041 rm -f conftest.$ac_objext
6042 if { (ac_try="$ac_compile"
6043 case "(($ac_try" in
6044 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6045 *) ac_try_echo=$ac_try;;
6046 esac
6047 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6048 (eval "$ac_compile") 2>conftest.er1
6049 ac_status=$?
6050 grep -v '^ *+' conftest.er1 >conftest.err
6051 rm -f conftest.er1
6052 cat conftest.err >&5
6053 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6054 (exit $ac_status); } && {
6055 test -z "$ac_c_werror_flag" ||
6056 test ! -s conftest.err
6057 } && test -s conftest.$ac_objext; then
6058 ac_cv_sys_large_files=1; break
6059 else
6060 echo "$as_me: failed program was:" >&5
6061 sed 's/^/| /' conftest.$ac_ext >&5
6066 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6067 ac_cv_sys_large_files=unknown
6068 break
6069 done
6071 { echo "$as_me:$LINENO: result: $ac_cv_sys_large_files" >&5
6072 echo "${ECHO_T}$ac_cv_sys_large_files" >&6; }
6073 case $ac_cv_sys_large_files in #(
6074 no | unknown) ;;
6076 cat >>confdefs.h <<_ACEOF
6077 #define _LARGE_FILES $ac_cv_sys_large_files
6078 _ACEOF
6080 esac
6081 rm -f conftest*
6087 ### The standard library on x86-64 and s390x GNU/Linux distributions can
6088 ### be located in either /usr/lib64 or /usr/lib.
6089 case "${canonical}" in
6090 x86_64-*-linux-gnu* | s390x-*-linux-gnu* )
6091 if test -d /usr/lib64; then
6093 cat >>confdefs.h <<\_ACEOF
6094 #define HAVE_LIB64_DIR 1
6095 _ACEOF
6098 esac
6103 if test "${with_sound}" != "no"; then
6104 # Sound support for GNU/Linux and the free BSDs.
6108 for ac_header in machine/soundcard.h sys/soundcard.h soundcard.h
6110 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
6111 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
6112 { echo "$as_me:$LINENO: checking for $ac_header" >&5
6113 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
6114 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
6115 echo $ECHO_N "(cached) $ECHO_C" >&6
6117 ac_res=`eval echo '${'$as_ac_Header'}'`
6118 { echo "$as_me:$LINENO: result: $ac_res" >&5
6119 echo "${ECHO_T}$ac_res" >&6; }
6120 else
6121 # Is the header compilable?
6122 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
6123 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
6124 cat >conftest.$ac_ext <<_ACEOF
6125 /* confdefs.h. */
6126 _ACEOF
6127 cat confdefs.h >>conftest.$ac_ext
6128 cat >>conftest.$ac_ext <<_ACEOF
6129 /* end confdefs.h. */
6130 $ac_includes_default
6131 #include <$ac_header>
6132 _ACEOF
6133 rm -f conftest.$ac_objext
6134 if { (ac_try="$ac_compile"
6135 case "(($ac_try" in
6136 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6137 *) ac_try_echo=$ac_try;;
6138 esac
6139 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6140 (eval "$ac_compile") 2>conftest.er1
6141 ac_status=$?
6142 grep -v '^ *+' conftest.er1 >conftest.err
6143 rm -f conftest.er1
6144 cat conftest.err >&5
6145 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6146 (exit $ac_status); } && {
6147 test -z "$ac_c_werror_flag" ||
6148 test ! -s conftest.err
6149 } && test -s conftest.$ac_objext; then
6150 ac_header_compiler=yes
6151 else
6152 echo "$as_me: failed program was:" >&5
6153 sed 's/^/| /' conftest.$ac_ext >&5
6155 ac_header_compiler=no
6158 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6159 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
6160 echo "${ECHO_T}$ac_header_compiler" >&6; }
6162 # Is the header present?
6163 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
6164 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
6165 cat >conftest.$ac_ext <<_ACEOF
6166 /* confdefs.h. */
6167 _ACEOF
6168 cat confdefs.h >>conftest.$ac_ext
6169 cat >>conftest.$ac_ext <<_ACEOF
6170 /* end confdefs.h. */
6171 #include <$ac_header>
6172 _ACEOF
6173 if { (ac_try="$ac_cpp conftest.$ac_ext"
6174 case "(($ac_try" in
6175 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6176 *) ac_try_echo=$ac_try;;
6177 esac
6178 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6179 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
6180 ac_status=$?
6181 grep -v '^ *+' conftest.er1 >conftest.err
6182 rm -f conftest.er1
6183 cat conftest.err >&5
6184 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6185 (exit $ac_status); } >/dev/null && {
6186 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
6187 test ! -s conftest.err
6188 }; then
6189 ac_header_preproc=yes
6190 else
6191 echo "$as_me: failed program was:" >&5
6192 sed 's/^/| /' conftest.$ac_ext >&5
6194 ac_header_preproc=no
6197 rm -f conftest.err conftest.$ac_ext
6198 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
6199 echo "${ECHO_T}$ac_header_preproc" >&6; }
6201 # So? What about this header?
6202 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
6203 yes:no: )
6204 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
6205 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
6206 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
6207 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
6208 ac_header_preproc=yes
6210 no:yes:* )
6211 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
6212 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
6213 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
6214 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
6215 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
6216 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
6217 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
6218 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
6219 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
6220 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
6221 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
6222 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
6225 esac
6226 { echo "$as_me:$LINENO: checking for $ac_header" >&5
6227 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
6228 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
6229 echo $ECHO_N "(cached) $ECHO_C" >&6
6230 else
6231 eval "$as_ac_Header=\$ac_header_preproc"
6233 ac_res=`eval echo '${'$as_ac_Header'}'`
6234 { echo "$as_me:$LINENO: result: $ac_res" >&5
6235 echo "${ECHO_T}$ac_res" >&6; }
6238 if test `eval echo '${'$as_ac_Header'}'` = yes; then
6239 cat >>confdefs.h <<_ACEOF
6240 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
6241 _ACEOF
6245 done
6247 # Emulation library used on NetBSD.
6248 { echo "$as_me:$LINENO: checking for _oss_ioctl in -lossaudio" >&5
6249 echo $ECHO_N "checking for _oss_ioctl in -lossaudio... $ECHO_C" >&6; }
6250 if test "${ac_cv_lib_ossaudio__oss_ioctl+set}" = set; then
6251 echo $ECHO_N "(cached) $ECHO_C" >&6
6252 else
6253 ac_check_lib_save_LIBS=$LIBS
6254 LIBS="-lossaudio $LIBS"
6255 cat >conftest.$ac_ext <<_ACEOF
6256 /* confdefs.h. */
6257 _ACEOF
6258 cat confdefs.h >>conftest.$ac_ext
6259 cat >>conftest.$ac_ext <<_ACEOF
6260 /* end confdefs.h. */
6262 /* Override any GCC internal prototype to avoid an error.
6263 Use char because int might match the return type of a GCC
6264 builtin and then its argument prototype would still apply. */
6265 #ifdef __cplusplus
6266 extern "C"
6267 #endif
6268 char _oss_ioctl ();
6270 main ()
6272 return _oss_ioctl ();
6274 return 0;
6276 _ACEOF
6277 rm -f conftest.$ac_objext conftest$ac_exeext
6278 if { (ac_try="$ac_link"
6279 case "(($ac_try" in
6280 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6281 *) ac_try_echo=$ac_try;;
6282 esac
6283 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6284 (eval "$ac_link") 2>conftest.er1
6285 ac_status=$?
6286 grep -v '^ *+' conftest.er1 >conftest.err
6287 rm -f conftest.er1
6288 cat conftest.err >&5
6289 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6290 (exit $ac_status); } && {
6291 test -z "$ac_c_werror_flag" ||
6292 test ! -s conftest.err
6293 } && test -s conftest$ac_exeext &&
6294 $as_test_x conftest$ac_exeext; then
6295 ac_cv_lib_ossaudio__oss_ioctl=yes
6296 else
6297 echo "$as_me: failed program was:" >&5
6298 sed 's/^/| /' conftest.$ac_ext >&5
6300 ac_cv_lib_ossaudio__oss_ioctl=no
6303 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
6304 conftest$ac_exeext conftest.$ac_ext
6305 LIBS=$ac_check_lib_save_LIBS
6307 { echo "$as_me:$LINENO: result: $ac_cv_lib_ossaudio__oss_ioctl" >&5
6308 echo "${ECHO_T}$ac_cv_lib_ossaudio__oss_ioctl" >&6; }
6309 if test $ac_cv_lib_ossaudio__oss_ioctl = yes; then
6310 LIBSOUND=-lossaudio
6311 else
6312 LIBSOUND=
6317 ALSA_REQUIRED=1.0.0
6318 ALSA_MODULES="alsa >= $ALSA_REQUIRED"
6320 succeeded=no
6322 # Extract the first word of "pkg-config", so it can be a program name with args.
6323 set dummy pkg-config; ac_word=$2
6324 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6325 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6326 if test "${ac_cv_path_PKG_CONFIG+set}" = set; then
6327 echo $ECHO_N "(cached) $ECHO_C" >&6
6328 else
6329 case $PKG_CONFIG in
6330 [\\/]* | ?:[\\/]*)
6331 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
6334 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6335 for as_dir in $PATH
6337 IFS=$as_save_IFS
6338 test -z "$as_dir" && as_dir=.
6339 for ac_exec_ext in '' $ac_executable_extensions; do
6340 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6341 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
6342 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6343 break 2
6345 done
6346 done
6347 IFS=$as_save_IFS
6349 test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG="no"
6351 esac
6353 PKG_CONFIG=$ac_cv_path_PKG_CONFIG
6354 if test -n "$PKG_CONFIG"; then
6355 { echo "$as_me:$LINENO: result: $PKG_CONFIG" >&5
6356 echo "${ECHO_T}$PKG_CONFIG" >&6; }
6357 else
6358 { echo "$as_me:$LINENO: result: no" >&5
6359 echo "${ECHO_T}no" >&6; }
6364 if test "$PKG_CONFIG" = "no" ; then
6365 HAVE_ALSA=no
6366 else
6367 PKG_CONFIG_MIN_VERSION=0.9.0
6368 if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
6369 { echo "$as_me:$LINENO: checking for $ALSA_MODULES" >&5
6370 echo $ECHO_N "checking for $ALSA_MODULES... $ECHO_C" >&6; }
6372 if $PKG_CONFIG --exists "$ALSA_MODULES" 2>&5; then
6373 { echo "$as_me:$LINENO: result: yes" >&5
6374 echo "${ECHO_T}yes" >&6; }
6375 succeeded=yes
6377 { echo "$as_me:$LINENO: checking ALSA_CFLAGS" >&5
6378 echo $ECHO_N "checking ALSA_CFLAGS... $ECHO_C" >&6; }
6379 ALSA_CFLAGS=`$PKG_CONFIG --cflags "$ALSA_MODULES"|sed -e 's,///*,/,g'`
6380 { echo "$as_me:$LINENO: result: $ALSA_CFLAGS" >&5
6381 echo "${ECHO_T}$ALSA_CFLAGS" >&6; }
6383 { echo "$as_me:$LINENO: checking ALSA_LIBS" >&5
6384 echo $ECHO_N "checking ALSA_LIBS... $ECHO_C" >&6; }
6385 ALSA_LIBS=`$PKG_CONFIG --libs "$ALSA_MODULES"|sed -e 's,///*,/,g'`
6386 { echo "$as_me:$LINENO: result: $ALSA_LIBS" >&5
6387 echo "${ECHO_T}$ALSA_LIBS" >&6; }
6388 else
6389 { echo "$as_me:$LINENO: result: no" >&5
6390 echo "${ECHO_T}no" >&6; }
6391 ALSA_CFLAGS=""
6392 ALSA_LIBS=""
6393 ## If we have a custom action on failure, don't print errors, but
6394 ## do set a variable so people can do so.
6395 ALSA_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "$ALSA_MODULES"`
6401 else
6402 echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
6403 echo "*** See http://www.freedesktop.org/software/pkgconfig"
6407 if test $succeeded = yes; then
6408 HAVE_ALSA=yes
6409 else
6410 HAVE_ALSA=no
6413 if test $HAVE_ALSA = yes; then
6414 SAVE_CFLAGS="$CFLAGS"
6415 SAVE_LDFLAGS="$LDFLAGS"
6416 CFLAGS="$ALSA_CFLAGS $CFLAGS"
6417 LDFLAGS="$ALSA_LIBS $LDFLAGS"
6418 cat >conftest.$ac_ext <<_ACEOF
6419 /* confdefs.h. */
6420 _ACEOF
6421 cat confdefs.h >>conftest.$ac_ext
6422 cat >>conftest.$ac_ext <<_ACEOF
6423 /* end confdefs.h. */
6424 #include <asoundlib.h>
6426 main ()
6428 snd_lib_error_set_handler (0);
6430 return 0;
6432 _ACEOF
6433 rm -f conftest.$ac_objext
6434 if { (ac_try="$ac_compile"
6435 case "(($ac_try" in
6436 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6437 *) ac_try_echo=$ac_try;;
6438 esac
6439 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6440 (eval "$ac_compile") 2>conftest.er1
6441 ac_status=$?
6442 grep -v '^ *+' conftest.er1 >conftest.err
6443 rm -f conftest.er1
6444 cat conftest.err >&5
6445 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6446 (exit $ac_status); } && {
6447 test -z "$ac_c_werror_flag" ||
6448 test ! -s conftest.err
6449 } && test -s conftest.$ac_objext; then
6450 emacs_alsa_normal=yes
6451 else
6452 echo "$as_me: failed program was:" >&5
6453 sed 's/^/| /' conftest.$ac_ext >&5
6455 emacs_alsa_normal=no
6458 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6459 if test "$emacs_alsa_normal" != yes; then
6460 cat >conftest.$ac_ext <<_ACEOF
6461 /* confdefs.h. */
6462 _ACEOF
6463 cat confdefs.h >>conftest.$ac_ext
6464 cat >>conftest.$ac_ext <<_ACEOF
6465 /* end confdefs.h. */
6466 #include <alsa/asoundlib.h>
6468 main ()
6470 snd_lib_error_set_handler (0);
6472 return 0;
6474 _ACEOF
6475 rm -f conftest.$ac_objext
6476 if { (ac_try="$ac_compile"
6477 case "(($ac_try" in
6478 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6479 *) ac_try_echo=$ac_try;;
6480 esac
6481 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6482 (eval "$ac_compile") 2>conftest.er1
6483 ac_status=$?
6484 grep -v '^ *+' conftest.er1 >conftest.err
6485 rm -f conftest.er1
6486 cat conftest.err >&5
6487 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6488 (exit $ac_status); } && {
6489 test -z "$ac_c_werror_flag" ||
6490 test ! -s conftest.err
6491 } && test -s conftest.$ac_objext; then
6492 emacs_alsa_subdir=yes
6493 else
6494 echo "$as_me: failed program was:" >&5
6495 sed 's/^/| /' conftest.$ac_ext >&5
6497 emacs_alsa_subdir=no
6500 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6501 if test "$emacs_alsa_subdir" != yes; then
6502 { { echo "$as_me:$LINENO: error: pkg-config found alsa, but it does not compile. See config.log for error messages." >&5
6503 echo "$as_me: error: pkg-config found alsa, but it does not compile. See config.log for error messages." >&2;}
6504 { (exit 1); exit 1; }; }
6506 ALSA_CFLAGS="$ALSA_CFLAGS -DALSA_SUBDIR_INCLUDE"
6509 CFLAGS="$SAVE_CFLAGS"
6510 LDFLAGS="$SAVE_LDFLAGS"
6511 LIBSOUND="$LIBSOUND $ALSA_LIBS"
6512 CFLAGS_SOUND="$CFLAGS_SOUND $ALSA_CFLAGS"
6514 cat >>confdefs.h <<\_ACEOF
6515 #define HAVE_ALSA 1
6516 _ACEOF
6547 for ac_header in sys/select.h sys/timeb.h sys/time.h unistd.h utime.h \
6548 linux/version.h sys/systeminfo.h termios.h limits.h string.h stdlib.h \
6549 termcap.h stdio_ext.h fcntl.h strings.h coff.h pty.h sys/mman.h \
6550 sys/param.h sys/vlimit.h sys/resource.h locale.h sys/_mbstate_t.h \
6551 sys/utsname.h pwd.h
6553 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
6554 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
6555 { echo "$as_me:$LINENO: checking for $ac_header" >&5
6556 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
6557 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
6558 echo $ECHO_N "(cached) $ECHO_C" >&6
6560 ac_res=`eval echo '${'$as_ac_Header'}'`
6561 { echo "$as_me:$LINENO: result: $ac_res" >&5
6562 echo "${ECHO_T}$ac_res" >&6; }
6563 else
6564 # Is the header compilable?
6565 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
6566 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
6567 cat >conftest.$ac_ext <<_ACEOF
6568 /* confdefs.h. */
6569 _ACEOF
6570 cat confdefs.h >>conftest.$ac_ext
6571 cat >>conftest.$ac_ext <<_ACEOF
6572 /* end confdefs.h. */
6573 $ac_includes_default
6574 #include <$ac_header>
6575 _ACEOF
6576 rm -f conftest.$ac_objext
6577 if { (ac_try="$ac_compile"
6578 case "(($ac_try" in
6579 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6580 *) ac_try_echo=$ac_try;;
6581 esac
6582 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6583 (eval "$ac_compile") 2>conftest.er1
6584 ac_status=$?
6585 grep -v '^ *+' conftest.er1 >conftest.err
6586 rm -f conftest.er1
6587 cat conftest.err >&5
6588 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6589 (exit $ac_status); } && {
6590 test -z "$ac_c_werror_flag" ||
6591 test ! -s conftest.err
6592 } && test -s conftest.$ac_objext; then
6593 ac_header_compiler=yes
6594 else
6595 echo "$as_me: failed program was:" >&5
6596 sed 's/^/| /' conftest.$ac_ext >&5
6598 ac_header_compiler=no
6601 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6602 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
6603 echo "${ECHO_T}$ac_header_compiler" >&6; }
6605 # Is the header present?
6606 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
6607 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
6608 cat >conftest.$ac_ext <<_ACEOF
6609 /* confdefs.h. */
6610 _ACEOF
6611 cat confdefs.h >>conftest.$ac_ext
6612 cat >>conftest.$ac_ext <<_ACEOF
6613 /* end confdefs.h. */
6614 #include <$ac_header>
6615 _ACEOF
6616 if { (ac_try="$ac_cpp conftest.$ac_ext"
6617 case "(($ac_try" in
6618 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6619 *) ac_try_echo=$ac_try;;
6620 esac
6621 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6622 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
6623 ac_status=$?
6624 grep -v '^ *+' conftest.er1 >conftest.err
6625 rm -f conftest.er1
6626 cat conftest.err >&5
6627 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6628 (exit $ac_status); } >/dev/null && {
6629 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
6630 test ! -s conftest.err
6631 }; then
6632 ac_header_preproc=yes
6633 else
6634 echo "$as_me: failed program was:" >&5
6635 sed 's/^/| /' conftest.$ac_ext >&5
6637 ac_header_preproc=no
6640 rm -f conftest.err conftest.$ac_ext
6641 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
6642 echo "${ECHO_T}$ac_header_preproc" >&6; }
6644 # So? What about this header?
6645 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
6646 yes:no: )
6647 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
6648 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
6649 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
6650 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
6651 ac_header_preproc=yes
6653 no:yes:* )
6654 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
6655 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
6656 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
6657 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
6658 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
6659 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
6660 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
6661 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
6662 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
6663 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
6664 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
6665 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
6668 esac
6669 { echo "$as_me:$LINENO: checking for $ac_header" >&5
6670 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
6671 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
6672 echo $ECHO_N "(cached) $ECHO_C" >&6
6673 else
6674 eval "$as_ac_Header=\$ac_header_preproc"
6676 ac_res=`eval echo '${'$as_ac_Header'}'`
6677 { echo "$as_me:$LINENO: result: $ac_res" >&5
6678 echo "${ECHO_T}$ac_res" >&6; }
6681 if test `eval echo '${'$as_ac_Header'}'` = yes; then
6682 cat >>confdefs.h <<_ACEOF
6683 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
6684 _ACEOF
6688 done
6691 { echo "$as_me:$LINENO: checking if personality LINUX32 can be set" >&5
6692 echo $ECHO_N "checking if personality LINUX32 can be set... $ECHO_C" >&6; }
6693 cat >conftest.$ac_ext <<_ACEOF
6694 /* confdefs.h. */
6695 _ACEOF
6696 cat confdefs.h >>conftest.$ac_ext
6697 cat >>conftest.$ac_ext <<_ACEOF
6698 /* end confdefs.h. */
6699 #include <sys/personality.h>
6701 main ()
6703 personality (PER_LINUX32)
6705 return 0;
6707 _ACEOF
6708 rm -f conftest.$ac_objext
6709 if { (ac_try="$ac_compile"
6710 case "(($ac_try" in
6711 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6712 *) ac_try_echo=$ac_try;;
6713 esac
6714 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6715 (eval "$ac_compile") 2>conftest.er1
6716 ac_status=$?
6717 grep -v '^ *+' conftest.er1 >conftest.err
6718 rm -f conftest.er1
6719 cat conftest.err >&5
6720 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6721 (exit $ac_status); } && {
6722 test -z "$ac_c_werror_flag" ||
6723 test ! -s conftest.err
6724 } && test -s conftest.$ac_objext; then
6725 emacs_cv_personality_linux32=yes
6726 else
6727 echo "$as_me: failed program was:" >&5
6728 sed 's/^/| /' conftest.$ac_ext >&5
6730 emacs_cv_personality_linux32=no
6733 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6734 { echo "$as_me:$LINENO: result: $emacs_cv_personality_linux32" >&5
6735 echo "${ECHO_T}$emacs_cv_personality_linux32" >&6; }
6737 if test $emacs_cv_personality_linux32 = yes; then
6739 cat >>confdefs.h <<\_ACEOF
6740 #define HAVE_PERSONALITY_LINUX32 1
6741 _ACEOF
6746 for ac_header in term.h
6748 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
6749 { echo "$as_me:$LINENO: checking for $ac_header" >&5
6750 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
6751 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
6752 echo $ECHO_N "(cached) $ECHO_C" >&6
6753 else
6754 cat >conftest.$ac_ext <<_ACEOF
6755 /* confdefs.h. */
6756 _ACEOF
6757 cat confdefs.h >>conftest.$ac_ext
6758 cat >>conftest.$ac_ext <<_ACEOF
6759 /* end confdefs.h. */
6760 #include <$ac_header>
6761 _ACEOF
6762 if { (ac_try="$ac_cpp conftest.$ac_ext"
6763 case "(($ac_try" in
6764 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6765 *) ac_try_echo=$ac_try;;
6766 esac
6767 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6768 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
6769 ac_status=$?
6770 grep -v '^ *+' conftest.er1 >conftest.err
6771 rm -f conftest.er1
6772 cat conftest.err >&5
6773 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6774 (exit $ac_status); } >/dev/null && {
6775 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
6776 test ! -s conftest.err
6777 }; then
6778 eval "$as_ac_Header=yes"
6779 else
6780 echo "$as_me: failed program was:" >&5
6781 sed 's/^/| /' conftest.$ac_ext >&5
6783 eval "$as_ac_Header=no"
6786 rm -f conftest.err conftest.$ac_ext
6788 ac_res=`eval echo '${'$as_ac_Header'}'`
6789 { echo "$as_me:$LINENO: result: $ac_res" >&5
6790 echo "${ECHO_T}$ac_res" >&6; }
6791 if test `eval echo '${'$as_ac_Header'}'` = yes; then
6792 cat >>confdefs.h <<_ACEOF
6793 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
6794 _ACEOF
6798 done
6800 { echo "$as_me:$LINENO: checking for ANSI C header files" >&5
6801 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6; }
6802 if test "${ac_cv_header_stdc+set}" = set; then
6803 echo $ECHO_N "(cached) $ECHO_C" >&6
6804 else
6805 cat >conftest.$ac_ext <<_ACEOF
6806 /* confdefs.h. */
6807 _ACEOF
6808 cat confdefs.h >>conftest.$ac_ext
6809 cat >>conftest.$ac_ext <<_ACEOF
6810 /* end confdefs.h. */
6811 #include <stdlib.h>
6812 #include <stdarg.h>
6813 #include <string.h>
6814 #include <float.h>
6817 main ()
6821 return 0;
6823 _ACEOF
6824 rm -f conftest.$ac_objext
6825 if { (ac_try="$ac_compile"
6826 case "(($ac_try" in
6827 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6828 *) ac_try_echo=$ac_try;;
6829 esac
6830 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6831 (eval "$ac_compile") 2>conftest.er1
6832 ac_status=$?
6833 grep -v '^ *+' conftest.er1 >conftest.err
6834 rm -f conftest.er1
6835 cat conftest.err >&5
6836 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6837 (exit $ac_status); } && {
6838 test -z "$ac_c_werror_flag" ||
6839 test ! -s conftest.err
6840 } && test -s conftest.$ac_objext; then
6841 ac_cv_header_stdc=yes
6842 else
6843 echo "$as_me: failed program was:" >&5
6844 sed 's/^/| /' conftest.$ac_ext >&5
6846 ac_cv_header_stdc=no
6849 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6851 if test $ac_cv_header_stdc = yes; then
6852 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
6853 cat >conftest.$ac_ext <<_ACEOF
6854 /* confdefs.h. */
6855 _ACEOF
6856 cat confdefs.h >>conftest.$ac_ext
6857 cat >>conftest.$ac_ext <<_ACEOF
6858 /* end confdefs.h. */
6859 #include <string.h>
6861 _ACEOF
6862 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6863 $EGREP "memchr" >/dev/null 2>&1; then
6865 else
6866 ac_cv_header_stdc=no
6868 rm -f conftest*
6872 if test $ac_cv_header_stdc = yes; then
6873 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
6874 cat >conftest.$ac_ext <<_ACEOF
6875 /* confdefs.h. */
6876 _ACEOF
6877 cat confdefs.h >>conftest.$ac_ext
6878 cat >>conftest.$ac_ext <<_ACEOF
6879 /* end confdefs.h. */
6880 #include <stdlib.h>
6882 _ACEOF
6883 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6884 $EGREP "free" >/dev/null 2>&1; then
6886 else
6887 ac_cv_header_stdc=no
6889 rm -f conftest*
6893 if test $ac_cv_header_stdc = yes; then
6894 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
6895 if test "$cross_compiling" = yes; then
6897 else
6898 cat >conftest.$ac_ext <<_ACEOF
6899 /* confdefs.h. */
6900 _ACEOF
6901 cat confdefs.h >>conftest.$ac_ext
6902 cat >>conftest.$ac_ext <<_ACEOF
6903 /* end confdefs.h. */
6904 #include <ctype.h>
6905 #include <stdlib.h>
6906 #if ((' ' & 0x0FF) == 0x020)
6907 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
6908 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
6909 #else
6910 # define ISLOWER(c) \
6911 (('a' <= (c) && (c) <= 'i') \
6912 || ('j' <= (c) && (c) <= 'r') \
6913 || ('s' <= (c) && (c) <= 'z'))
6914 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
6915 #endif
6917 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
6919 main ()
6921 int i;
6922 for (i = 0; i < 256; i++)
6923 if (XOR (islower (i), ISLOWER (i))
6924 || toupper (i) != TOUPPER (i))
6925 return 2;
6926 return 0;
6928 _ACEOF
6929 rm -f conftest$ac_exeext
6930 if { (ac_try="$ac_link"
6931 case "(($ac_try" in
6932 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6933 *) ac_try_echo=$ac_try;;
6934 esac
6935 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6936 (eval "$ac_link") 2>&5
6937 ac_status=$?
6938 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6939 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
6940 { (case "(($ac_try" in
6941 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6942 *) ac_try_echo=$ac_try;;
6943 esac
6944 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6945 (eval "$ac_try") 2>&5
6946 ac_status=$?
6947 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6948 (exit $ac_status); }; }; then
6950 else
6951 echo "$as_me: program exited with status $ac_status" >&5
6952 echo "$as_me: failed program was:" >&5
6953 sed 's/^/| /' conftest.$ac_ext >&5
6955 ( exit $ac_status )
6956 ac_cv_header_stdc=no
6958 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
6964 { echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
6965 echo "${ECHO_T}$ac_cv_header_stdc" >&6; }
6966 if test $ac_cv_header_stdc = yes; then
6968 cat >>confdefs.h <<\_ACEOF
6969 #define STDC_HEADERS 1
6970 _ACEOF
6974 { echo "$as_me:$LINENO: checking whether time.h and sys/time.h may both be included" >&5
6975 echo $ECHO_N "checking whether time.h and sys/time.h may both be included... $ECHO_C" >&6; }
6976 if test "${ac_cv_header_time+set}" = set; then
6977 echo $ECHO_N "(cached) $ECHO_C" >&6
6978 else
6979 cat >conftest.$ac_ext <<_ACEOF
6980 /* confdefs.h. */
6981 _ACEOF
6982 cat confdefs.h >>conftest.$ac_ext
6983 cat >>conftest.$ac_ext <<_ACEOF
6984 /* end confdefs.h. */
6985 #include <sys/types.h>
6986 #include <sys/time.h>
6987 #include <time.h>
6990 main ()
6992 if ((struct tm *) 0)
6993 return 0;
6995 return 0;
6997 _ACEOF
6998 rm -f conftest.$ac_objext
6999 if { (ac_try="$ac_compile"
7000 case "(($ac_try" in
7001 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7002 *) ac_try_echo=$ac_try;;
7003 esac
7004 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7005 (eval "$ac_compile") 2>conftest.er1
7006 ac_status=$?
7007 grep -v '^ *+' conftest.er1 >conftest.err
7008 rm -f conftest.er1
7009 cat conftest.err >&5
7010 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7011 (exit $ac_status); } && {
7012 test -z "$ac_c_werror_flag" ||
7013 test ! -s conftest.err
7014 } && test -s conftest.$ac_objext; then
7015 ac_cv_header_time=yes
7016 else
7017 echo "$as_me: failed program was:" >&5
7018 sed 's/^/| /' conftest.$ac_ext >&5
7020 ac_cv_header_time=no
7023 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7025 { echo "$as_me:$LINENO: result: $ac_cv_header_time" >&5
7026 echo "${ECHO_T}$ac_cv_header_time" >&6; }
7027 if test $ac_cv_header_time = yes; then
7029 cat >>confdefs.h <<\_ACEOF
7030 #define TIME_WITH_SYS_TIME 1
7031 _ACEOF
7035 { echo "$as_me:$LINENO: checking whether sys_siglist is declared" >&5
7036 echo $ECHO_N "checking whether sys_siglist is declared... $ECHO_C" >&6; }
7037 if test "${ac_cv_have_decl_sys_siglist+set}" = set; then
7038 echo $ECHO_N "(cached) $ECHO_C" >&6
7039 else
7040 cat >conftest.$ac_ext <<_ACEOF
7041 /* confdefs.h. */
7042 _ACEOF
7043 cat confdefs.h >>conftest.$ac_ext
7044 cat >>conftest.$ac_ext <<_ACEOF
7045 /* end confdefs.h. */
7046 $ac_includes_default
7048 main ()
7050 #ifndef sys_siglist
7051 (void) sys_siglist;
7052 #endif
7055 return 0;
7057 _ACEOF
7058 rm -f conftest.$ac_objext
7059 if { (ac_try="$ac_compile"
7060 case "(($ac_try" in
7061 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7062 *) ac_try_echo=$ac_try;;
7063 esac
7064 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7065 (eval "$ac_compile") 2>conftest.er1
7066 ac_status=$?
7067 grep -v '^ *+' conftest.er1 >conftest.err
7068 rm -f conftest.er1
7069 cat conftest.err >&5
7070 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7071 (exit $ac_status); } && {
7072 test -z "$ac_c_werror_flag" ||
7073 test ! -s conftest.err
7074 } && test -s conftest.$ac_objext; then
7075 ac_cv_have_decl_sys_siglist=yes
7076 else
7077 echo "$as_me: failed program was:" >&5
7078 sed 's/^/| /' conftest.$ac_ext >&5
7080 ac_cv_have_decl_sys_siglist=no
7083 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7085 { echo "$as_me:$LINENO: result: $ac_cv_have_decl_sys_siglist" >&5
7086 echo "${ECHO_T}$ac_cv_have_decl_sys_siglist" >&6; }
7087 if test $ac_cv_have_decl_sys_siglist = yes; then
7089 cat >>confdefs.h <<_ACEOF
7090 #define HAVE_DECL_SYS_SIGLIST 1
7091 _ACEOF
7094 else
7095 cat >>confdefs.h <<_ACEOF
7096 #define HAVE_DECL_SYS_SIGLIST 0
7097 _ACEOF
7103 if test $ac_cv_have_decl_sys_siglist != yes; then
7104 # For Tru64, at least:
7105 { echo "$as_me:$LINENO: checking whether __sys_siglist is declared" >&5
7106 echo $ECHO_N "checking whether __sys_siglist is declared... $ECHO_C" >&6; }
7107 if test "${ac_cv_have_decl___sys_siglist+set}" = set; then
7108 echo $ECHO_N "(cached) $ECHO_C" >&6
7109 else
7110 cat >conftest.$ac_ext <<_ACEOF
7111 /* confdefs.h. */
7112 _ACEOF
7113 cat confdefs.h >>conftest.$ac_ext
7114 cat >>conftest.$ac_ext <<_ACEOF
7115 /* end confdefs.h. */
7116 $ac_includes_default
7118 main ()
7120 #ifndef __sys_siglist
7121 (void) __sys_siglist;
7122 #endif
7125 return 0;
7127 _ACEOF
7128 rm -f conftest.$ac_objext
7129 if { (ac_try="$ac_compile"
7130 case "(($ac_try" in
7131 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7132 *) ac_try_echo=$ac_try;;
7133 esac
7134 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7135 (eval "$ac_compile") 2>conftest.er1
7136 ac_status=$?
7137 grep -v '^ *+' conftest.er1 >conftest.err
7138 rm -f conftest.er1
7139 cat conftest.err >&5
7140 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7141 (exit $ac_status); } && {
7142 test -z "$ac_c_werror_flag" ||
7143 test ! -s conftest.err
7144 } && test -s conftest.$ac_objext; then
7145 ac_cv_have_decl___sys_siglist=yes
7146 else
7147 echo "$as_me: failed program was:" >&5
7148 sed 's/^/| /' conftest.$ac_ext >&5
7150 ac_cv_have_decl___sys_siglist=no
7153 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7155 { echo "$as_me:$LINENO: result: $ac_cv_have_decl___sys_siglist" >&5
7156 echo "${ECHO_T}$ac_cv_have_decl___sys_siglist" >&6; }
7157 if test $ac_cv_have_decl___sys_siglist = yes; then
7159 cat >>confdefs.h <<_ACEOF
7160 #define HAVE_DECL___SYS_SIGLIST 1
7161 _ACEOF
7164 else
7165 cat >>confdefs.h <<_ACEOF
7166 #define HAVE_DECL___SYS_SIGLIST 0
7167 _ACEOF
7173 if test $ac_cv_have_decl___sys_siglist = yes; then
7175 cat >>confdefs.h <<\_ACEOF
7176 #define sys_siglist __sys_siglist
7177 _ACEOF
7181 { echo "$as_me:$LINENO: checking for sys/wait.h that is POSIX.1 compatible" >&5
7182 echo $ECHO_N "checking for sys/wait.h that is POSIX.1 compatible... $ECHO_C" >&6; }
7183 if test "${ac_cv_header_sys_wait_h+set}" = set; then
7184 echo $ECHO_N "(cached) $ECHO_C" >&6
7185 else
7186 cat >conftest.$ac_ext <<_ACEOF
7187 /* confdefs.h. */
7188 _ACEOF
7189 cat confdefs.h >>conftest.$ac_ext
7190 cat >>conftest.$ac_ext <<_ACEOF
7191 /* end confdefs.h. */
7192 #include <sys/types.h>
7193 #include <sys/wait.h>
7194 #ifndef WEXITSTATUS
7195 # define WEXITSTATUS(stat_val) ((unsigned int) (stat_val) >> 8)
7196 #endif
7197 #ifndef WIFEXITED
7198 # define WIFEXITED(stat_val) (((stat_val) & 255) == 0)
7199 #endif
7202 main ()
7204 int s;
7205 wait (&s);
7206 s = WIFEXITED (s) ? WEXITSTATUS (s) : 1;
7208 return 0;
7210 _ACEOF
7211 rm -f conftest.$ac_objext
7212 if { (ac_try="$ac_compile"
7213 case "(($ac_try" in
7214 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7215 *) ac_try_echo=$ac_try;;
7216 esac
7217 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7218 (eval "$ac_compile") 2>conftest.er1
7219 ac_status=$?
7220 grep -v '^ *+' conftest.er1 >conftest.err
7221 rm -f conftest.er1
7222 cat conftest.err >&5
7223 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7224 (exit $ac_status); } && {
7225 test -z "$ac_c_werror_flag" ||
7226 test ! -s conftest.err
7227 } && test -s conftest.$ac_objext; then
7228 ac_cv_header_sys_wait_h=yes
7229 else
7230 echo "$as_me: failed program was:" >&5
7231 sed 's/^/| /' conftest.$ac_ext >&5
7233 ac_cv_header_sys_wait_h=no
7236 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7238 { echo "$as_me:$LINENO: result: $ac_cv_header_sys_wait_h" >&5
7239 echo "${ECHO_T}$ac_cv_header_sys_wait_h" >&6; }
7240 if test $ac_cv_header_sys_wait_h = yes; then
7242 cat >>confdefs.h <<\_ACEOF
7243 #define HAVE_SYS_WAIT_H 1
7244 _ACEOF
7249 { echo "$as_me:$LINENO: checking for struct utimbuf" >&5
7250 echo $ECHO_N "checking for struct utimbuf... $ECHO_C" >&6; }
7251 if test "${emacs_cv_struct_utimbuf+set}" = set; then
7252 echo $ECHO_N "(cached) $ECHO_C" >&6
7253 else
7254 cat >conftest.$ac_ext <<_ACEOF
7255 /* confdefs.h. */
7256 _ACEOF
7257 cat confdefs.h >>conftest.$ac_ext
7258 cat >>conftest.$ac_ext <<_ACEOF
7259 /* end confdefs.h. */
7260 #ifdef TIME_WITH_SYS_TIME
7261 #include <sys/time.h>
7262 #include <time.h>
7263 #else
7264 #ifdef HAVE_SYS_TIME_H
7265 #include <sys/time.h>
7266 #else
7267 #include <time.h>
7268 #endif
7269 #endif
7270 #ifdef HAVE_UTIME_H
7271 #include <utime.h>
7272 #endif
7274 main ()
7276 static struct utimbuf x; x.actime = x.modtime;
7278 return 0;
7280 _ACEOF
7281 rm -f conftest.$ac_objext
7282 if { (ac_try="$ac_compile"
7283 case "(($ac_try" in
7284 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7285 *) ac_try_echo=$ac_try;;
7286 esac
7287 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7288 (eval "$ac_compile") 2>conftest.er1
7289 ac_status=$?
7290 grep -v '^ *+' conftest.er1 >conftest.err
7291 rm -f conftest.er1
7292 cat conftest.err >&5
7293 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7294 (exit $ac_status); } && {
7295 test -z "$ac_c_werror_flag" ||
7296 test ! -s conftest.err
7297 } && test -s conftest.$ac_objext; then
7298 emacs_cv_struct_utimbuf=yes
7299 else
7300 echo "$as_me: failed program was:" >&5
7301 sed 's/^/| /' conftest.$ac_ext >&5
7303 emacs_cv_struct_utimbuf=no
7306 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7308 { echo "$as_me:$LINENO: result: $emacs_cv_struct_utimbuf" >&5
7309 echo "${ECHO_T}$emacs_cv_struct_utimbuf" >&6; }
7310 if test $emacs_cv_struct_utimbuf = yes; then
7312 cat >>confdefs.h <<\_ACEOF
7313 #define HAVE_STRUCT_UTIMBUF 1
7314 _ACEOF
7318 { echo "$as_me:$LINENO: checking return type of signal handlers" >&5
7319 echo $ECHO_N "checking return type of signal handlers... $ECHO_C" >&6; }
7320 if test "${ac_cv_type_signal+set}" = set; then
7321 echo $ECHO_N "(cached) $ECHO_C" >&6
7322 else
7323 cat >conftest.$ac_ext <<_ACEOF
7324 /* confdefs.h. */
7325 _ACEOF
7326 cat confdefs.h >>conftest.$ac_ext
7327 cat >>conftest.$ac_ext <<_ACEOF
7328 /* end confdefs.h. */
7329 #include <sys/types.h>
7330 #include <signal.h>
7333 main ()
7335 return *(signal (0, 0)) (0) == 1;
7337 return 0;
7339 _ACEOF
7340 rm -f conftest.$ac_objext
7341 if { (ac_try="$ac_compile"
7342 case "(($ac_try" in
7343 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7344 *) ac_try_echo=$ac_try;;
7345 esac
7346 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7347 (eval "$ac_compile") 2>conftest.er1
7348 ac_status=$?
7349 grep -v '^ *+' conftest.er1 >conftest.err
7350 rm -f conftest.er1
7351 cat conftest.err >&5
7352 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7353 (exit $ac_status); } && {
7354 test -z "$ac_c_werror_flag" ||
7355 test ! -s conftest.err
7356 } && test -s conftest.$ac_objext; then
7357 ac_cv_type_signal=int
7358 else
7359 echo "$as_me: failed program was:" >&5
7360 sed 's/^/| /' conftest.$ac_ext >&5
7362 ac_cv_type_signal=void
7365 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7367 { echo "$as_me:$LINENO: result: $ac_cv_type_signal" >&5
7368 echo "${ECHO_T}$ac_cv_type_signal" >&6; }
7370 cat >>confdefs.h <<_ACEOF
7371 #define RETSIGTYPE $ac_cv_type_signal
7372 _ACEOF
7376 { echo "$as_me:$LINENO: checking for speed_t" >&5
7377 echo $ECHO_N "checking for speed_t... $ECHO_C" >&6; }
7378 if test "${emacs_cv_speed_t+set}" = set; then
7379 echo $ECHO_N "(cached) $ECHO_C" >&6
7380 else
7381 cat >conftest.$ac_ext <<_ACEOF
7382 /* confdefs.h. */
7383 _ACEOF
7384 cat confdefs.h >>conftest.$ac_ext
7385 cat >>conftest.$ac_ext <<_ACEOF
7386 /* end confdefs.h. */
7387 #include <termios.h>
7389 main ()
7391 speed_t x = 1;
7393 return 0;
7395 _ACEOF
7396 rm -f conftest.$ac_objext
7397 if { (ac_try="$ac_compile"
7398 case "(($ac_try" in
7399 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7400 *) ac_try_echo=$ac_try;;
7401 esac
7402 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7403 (eval "$ac_compile") 2>conftest.er1
7404 ac_status=$?
7405 grep -v '^ *+' conftest.er1 >conftest.err
7406 rm -f conftest.er1
7407 cat conftest.err >&5
7408 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7409 (exit $ac_status); } && {
7410 test -z "$ac_c_werror_flag" ||
7411 test ! -s conftest.err
7412 } && test -s conftest.$ac_objext; then
7413 emacs_cv_speed_t=yes
7414 else
7415 echo "$as_me: failed program was:" >&5
7416 sed 's/^/| /' conftest.$ac_ext >&5
7418 emacs_cv_speed_t=no
7421 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7423 { echo "$as_me:$LINENO: result: $emacs_cv_speed_t" >&5
7424 echo "${ECHO_T}$emacs_cv_speed_t" >&6; }
7425 if test $emacs_cv_speed_t = yes; then
7427 cat >>confdefs.h <<\_ACEOF
7428 #define HAVE_SPEED_T 1
7429 _ACEOF
7433 { echo "$as_me:$LINENO: checking for struct timeval" >&5
7434 echo $ECHO_N "checking for struct timeval... $ECHO_C" >&6; }
7435 if test "${emacs_cv_struct_timeval+set}" = set; then
7436 echo $ECHO_N "(cached) $ECHO_C" >&6
7437 else
7438 cat >conftest.$ac_ext <<_ACEOF
7439 /* confdefs.h. */
7440 _ACEOF
7441 cat confdefs.h >>conftest.$ac_ext
7442 cat >>conftest.$ac_ext <<_ACEOF
7443 /* end confdefs.h. */
7444 #ifdef TIME_WITH_SYS_TIME
7445 #include <sys/time.h>
7446 #include <time.h>
7447 #else
7448 #ifdef HAVE_SYS_TIME_H
7449 #include <sys/time.h>
7450 #else
7451 #include <time.h>
7452 #endif
7453 #endif
7455 main ()
7457 static struct timeval x; x.tv_sec = x.tv_usec;
7459 return 0;
7461 _ACEOF
7462 rm -f conftest.$ac_objext
7463 if { (ac_try="$ac_compile"
7464 case "(($ac_try" in
7465 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7466 *) ac_try_echo=$ac_try;;
7467 esac
7468 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7469 (eval "$ac_compile") 2>conftest.er1
7470 ac_status=$?
7471 grep -v '^ *+' conftest.er1 >conftest.err
7472 rm -f conftest.er1
7473 cat conftest.err >&5
7474 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7475 (exit $ac_status); } && {
7476 test -z "$ac_c_werror_flag" ||
7477 test ! -s conftest.err
7478 } && test -s conftest.$ac_objext; then
7479 emacs_cv_struct_timeval=yes
7480 else
7481 echo "$as_me: failed program was:" >&5
7482 sed 's/^/| /' conftest.$ac_ext >&5
7484 emacs_cv_struct_timeval=no
7487 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7489 { echo "$as_me:$LINENO: result: $emacs_cv_struct_timeval" >&5
7490 echo "${ECHO_T}$emacs_cv_struct_timeval" >&6; }
7491 HAVE_TIMEVAL=$emacs_cv_struct_timeval
7492 if test $emacs_cv_struct_timeval = yes; then
7494 cat >>confdefs.h <<\_ACEOF
7495 #define HAVE_TIMEVAL 1
7496 _ACEOF
7500 { echo "$as_me:$LINENO: checking for struct exception" >&5
7501 echo $ECHO_N "checking for struct exception... $ECHO_C" >&6; }
7502 if test "${emacs_cv_struct_exception+set}" = set; then
7503 echo $ECHO_N "(cached) $ECHO_C" >&6
7504 else
7505 cat >conftest.$ac_ext <<_ACEOF
7506 /* confdefs.h. */
7507 _ACEOF
7508 cat confdefs.h >>conftest.$ac_ext
7509 cat >>conftest.$ac_ext <<_ACEOF
7510 /* end confdefs.h. */
7511 #include <math.h>
7513 main ()
7515 static struct exception x; x.arg1 = x.arg2 = x.retval; x.name = ""; x.type = 1;
7517 return 0;
7519 _ACEOF
7520 rm -f conftest.$ac_objext
7521 if { (ac_try="$ac_compile"
7522 case "(($ac_try" in
7523 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7524 *) ac_try_echo=$ac_try;;
7525 esac
7526 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7527 (eval "$ac_compile") 2>conftest.er1
7528 ac_status=$?
7529 grep -v '^ *+' conftest.er1 >conftest.err
7530 rm -f conftest.er1
7531 cat conftest.err >&5
7532 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7533 (exit $ac_status); } && {
7534 test -z "$ac_c_werror_flag" ||
7535 test ! -s conftest.err
7536 } && test -s conftest.$ac_objext; then
7537 emacs_cv_struct_exception=yes
7538 else
7539 echo "$as_me: failed program was:" >&5
7540 sed 's/^/| /' conftest.$ac_ext >&5
7542 emacs_cv_struct_exception=no
7545 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7547 { echo "$as_me:$LINENO: result: $emacs_cv_struct_exception" >&5
7548 echo "${ECHO_T}$emacs_cv_struct_exception" >&6; }
7549 HAVE_EXCEPTION=$emacs_cv_struct_exception
7550 if test $emacs_cv_struct_exception != yes; then
7552 cat >>confdefs.h <<\_ACEOF
7553 #define NO_MATHERR 1
7554 _ACEOF
7559 for ac_header in sys/socket.h
7561 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
7562 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
7563 { echo "$as_me:$LINENO: checking for $ac_header" >&5
7564 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
7565 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
7566 echo $ECHO_N "(cached) $ECHO_C" >&6
7568 ac_res=`eval echo '${'$as_ac_Header'}'`
7569 { echo "$as_me:$LINENO: result: $ac_res" >&5
7570 echo "${ECHO_T}$ac_res" >&6; }
7571 else
7572 # Is the header compilable?
7573 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
7574 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
7575 cat >conftest.$ac_ext <<_ACEOF
7576 /* confdefs.h. */
7577 _ACEOF
7578 cat confdefs.h >>conftest.$ac_ext
7579 cat >>conftest.$ac_ext <<_ACEOF
7580 /* end confdefs.h. */
7581 $ac_includes_default
7582 #include <$ac_header>
7583 _ACEOF
7584 rm -f conftest.$ac_objext
7585 if { (ac_try="$ac_compile"
7586 case "(($ac_try" in
7587 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7588 *) ac_try_echo=$ac_try;;
7589 esac
7590 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7591 (eval "$ac_compile") 2>conftest.er1
7592 ac_status=$?
7593 grep -v '^ *+' conftest.er1 >conftest.err
7594 rm -f conftest.er1
7595 cat conftest.err >&5
7596 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7597 (exit $ac_status); } && {
7598 test -z "$ac_c_werror_flag" ||
7599 test ! -s conftest.err
7600 } && test -s conftest.$ac_objext; then
7601 ac_header_compiler=yes
7602 else
7603 echo "$as_me: failed program was:" >&5
7604 sed 's/^/| /' conftest.$ac_ext >&5
7606 ac_header_compiler=no
7609 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7610 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
7611 echo "${ECHO_T}$ac_header_compiler" >&6; }
7613 # Is the header present?
7614 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
7615 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
7616 cat >conftest.$ac_ext <<_ACEOF
7617 /* confdefs.h. */
7618 _ACEOF
7619 cat confdefs.h >>conftest.$ac_ext
7620 cat >>conftest.$ac_ext <<_ACEOF
7621 /* end confdefs.h. */
7622 #include <$ac_header>
7623 _ACEOF
7624 if { (ac_try="$ac_cpp conftest.$ac_ext"
7625 case "(($ac_try" in
7626 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7627 *) ac_try_echo=$ac_try;;
7628 esac
7629 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7630 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
7631 ac_status=$?
7632 grep -v '^ *+' conftest.er1 >conftest.err
7633 rm -f conftest.er1
7634 cat conftest.err >&5
7635 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7636 (exit $ac_status); } >/dev/null && {
7637 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
7638 test ! -s conftest.err
7639 }; then
7640 ac_header_preproc=yes
7641 else
7642 echo "$as_me: failed program was:" >&5
7643 sed 's/^/| /' conftest.$ac_ext >&5
7645 ac_header_preproc=no
7648 rm -f conftest.err conftest.$ac_ext
7649 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
7650 echo "${ECHO_T}$ac_header_preproc" >&6; }
7652 # So? What about this header?
7653 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
7654 yes:no: )
7655 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
7656 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
7657 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
7658 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
7659 ac_header_preproc=yes
7661 no:yes:* )
7662 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
7663 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
7664 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
7665 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
7666 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
7667 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
7668 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
7669 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
7670 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
7671 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
7672 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
7673 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
7676 esac
7677 { echo "$as_me:$LINENO: checking for $ac_header" >&5
7678 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
7679 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
7680 echo $ECHO_N "(cached) $ECHO_C" >&6
7681 else
7682 eval "$as_ac_Header=\$ac_header_preproc"
7684 ac_res=`eval echo '${'$as_ac_Header'}'`
7685 { echo "$as_me:$LINENO: result: $ac_res" >&5
7686 echo "${ECHO_T}$ac_res" >&6; }
7689 if test `eval echo '${'$as_ac_Header'}'` = yes; then
7690 cat >>confdefs.h <<_ACEOF
7691 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
7692 _ACEOF
7696 done
7699 for ac_header in net/if.h
7701 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
7702 { echo "$as_me:$LINENO: checking for $ac_header" >&5
7703 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
7704 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
7705 echo $ECHO_N "(cached) $ECHO_C" >&6
7706 else
7707 cat >conftest.$ac_ext <<_ACEOF
7708 /* confdefs.h. */
7709 _ACEOF
7710 cat confdefs.h >>conftest.$ac_ext
7711 cat >>conftest.$ac_ext <<_ACEOF
7712 /* end confdefs.h. */
7713 $ac_includes_default
7714 #if HAVE_SYS_SOCKET_H
7715 #include <sys/socket.h>
7716 #endif
7718 #include <$ac_header>
7719 _ACEOF
7720 rm -f conftest.$ac_objext
7721 if { (ac_try="$ac_compile"
7722 case "(($ac_try" in
7723 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7724 *) ac_try_echo=$ac_try;;
7725 esac
7726 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7727 (eval "$ac_compile") 2>conftest.er1
7728 ac_status=$?
7729 grep -v '^ *+' conftest.er1 >conftest.err
7730 rm -f conftest.er1
7731 cat conftest.err >&5
7732 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7733 (exit $ac_status); } && {
7734 test -z "$ac_c_werror_flag" ||
7735 test ! -s conftest.err
7736 } && test -s conftest.$ac_objext; then
7737 eval "$as_ac_Header=yes"
7738 else
7739 echo "$as_me: failed program was:" >&5
7740 sed 's/^/| /' conftest.$ac_ext >&5
7742 eval "$as_ac_Header=no"
7745 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7747 ac_res=`eval echo '${'$as_ac_Header'}'`
7748 { echo "$as_me:$LINENO: result: $ac_res" >&5
7749 echo "${ECHO_T}$ac_res" >&6; }
7750 if test `eval echo '${'$as_ac_Header'}'` = yes; then
7751 cat >>confdefs.h <<_ACEOF
7752 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
7753 _ACEOF
7757 done
7760 { echo "$as_me:$LINENO: checking whether struct tm is in sys/time.h or time.h" >&5
7761 echo $ECHO_N "checking whether struct tm is in sys/time.h or time.h... $ECHO_C" >&6; }
7762 if test "${ac_cv_struct_tm+set}" = set; then
7763 echo $ECHO_N "(cached) $ECHO_C" >&6
7764 else
7765 cat >conftest.$ac_ext <<_ACEOF
7766 /* confdefs.h. */
7767 _ACEOF
7768 cat confdefs.h >>conftest.$ac_ext
7769 cat >>conftest.$ac_ext <<_ACEOF
7770 /* end confdefs.h. */
7771 #include <sys/types.h>
7772 #include <time.h>
7775 main ()
7777 struct tm tm;
7778 int *p = &tm.tm_sec;
7779 return !p;
7781 return 0;
7783 _ACEOF
7784 rm -f conftest.$ac_objext
7785 if { (ac_try="$ac_compile"
7786 case "(($ac_try" in
7787 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7788 *) ac_try_echo=$ac_try;;
7789 esac
7790 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7791 (eval "$ac_compile") 2>conftest.er1
7792 ac_status=$?
7793 grep -v '^ *+' conftest.er1 >conftest.err
7794 rm -f conftest.er1
7795 cat conftest.err >&5
7796 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7797 (exit $ac_status); } && {
7798 test -z "$ac_c_werror_flag" ||
7799 test ! -s conftest.err
7800 } && test -s conftest.$ac_objext; then
7801 ac_cv_struct_tm=time.h
7802 else
7803 echo "$as_me: failed program was:" >&5
7804 sed 's/^/| /' conftest.$ac_ext >&5
7806 ac_cv_struct_tm=sys/time.h
7809 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7811 { echo "$as_me:$LINENO: result: $ac_cv_struct_tm" >&5
7812 echo "${ECHO_T}$ac_cv_struct_tm" >&6; }
7813 if test $ac_cv_struct_tm = sys/time.h; then
7815 cat >>confdefs.h <<\_ACEOF
7816 #define TM_IN_SYS_TIME 1
7817 _ACEOF
7821 { echo "$as_me:$LINENO: checking for struct tm.tm_zone" >&5
7822 echo $ECHO_N "checking for struct tm.tm_zone... $ECHO_C" >&6; }
7823 if test "${ac_cv_member_struct_tm_tm_zone+set}" = set; then
7824 echo $ECHO_N "(cached) $ECHO_C" >&6
7825 else
7826 cat >conftest.$ac_ext <<_ACEOF
7827 /* confdefs.h. */
7828 _ACEOF
7829 cat confdefs.h >>conftest.$ac_ext
7830 cat >>conftest.$ac_ext <<_ACEOF
7831 /* end confdefs.h. */
7832 #include <sys/types.h>
7833 #include <$ac_cv_struct_tm>
7837 main ()
7839 static struct tm ac_aggr;
7840 if (ac_aggr.tm_zone)
7841 return 0;
7843 return 0;
7845 _ACEOF
7846 rm -f conftest.$ac_objext
7847 if { (ac_try="$ac_compile"
7848 case "(($ac_try" in
7849 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7850 *) ac_try_echo=$ac_try;;
7851 esac
7852 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7853 (eval "$ac_compile") 2>conftest.er1
7854 ac_status=$?
7855 grep -v '^ *+' conftest.er1 >conftest.err
7856 rm -f conftest.er1
7857 cat conftest.err >&5
7858 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7859 (exit $ac_status); } && {
7860 test -z "$ac_c_werror_flag" ||
7861 test ! -s conftest.err
7862 } && test -s conftest.$ac_objext; then
7863 ac_cv_member_struct_tm_tm_zone=yes
7864 else
7865 echo "$as_me: failed program was:" >&5
7866 sed 's/^/| /' conftest.$ac_ext >&5
7868 cat >conftest.$ac_ext <<_ACEOF
7869 /* confdefs.h. */
7870 _ACEOF
7871 cat confdefs.h >>conftest.$ac_ext
7872 cat >>conftest.$ac_ext <<_ACEOF
7873 /* end confdefs.h. */
7874 #include <sys/types.h>
7875 #include <$ac_cv_struct_tm>
7879 main ()
7881 static struct tm ac_aggr;
7882 if (sizeof ac_aggr.tm_zone)
7883 return 0;
7885 return 0;
7887 _ACEOF
7888 rm -f conftest.$ac_objext
7889 if { (ac_try="$ac_compile"
7890 case "(($ac_try" in
7891 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7892 *) ac_try_echo=$ac_try;;
7893 esac
7894 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7895 (eval "$ac_compile") 2>conftest.er1
7896 ac_status=$?
7897 grep -v '^ *+' conftest.er1 >conftest.err
7898 rm -f conftest.er1
7899 cat conftest.err >&5
7900 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7901 (exit $ac_status); } && {
7902 test -z "$ac_c_werror_flag" ||
7903 test ! -s conftest.err
7904 } && test -s conftest.$ac_objext; then
7905 ac_cv_member_struct_tm_tm_zone=yes
7906 else
7907 echo "$as_me: failed program was:" >&5
7908 sed 's/^/| /' conftest.$ac_ext >&5
7910 ac_cv_member_struct_tm_tm_zone=no
7913 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7916 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7918 { echo "$as_me:$LINENO: result: $ac_cv_member_struct_tm_tm_zone" >&5
7919 echo "${ECHO_T}$ac_cv_member_struct_tm_tm_zone" >&6; }
7920 if test $ac_cv_member_struct_tm_tm_zone = yes; then
7922 cat >>confdefs.h <<_ACEOF
7923 #define HAVE_STRUCT_TM_TM_ZONE 1
7924 _ACEOF
7929 if test "$ac_cv_member_struct_tm_tm_zone" = yes; then
7931 cat >>confdefs.h <<\_ACEOF
7932 #define HAVE_TM_ZONE 1
7933 _ACEOF
7935 else
7936 { echo "$as_me:$LINENO: checking whether tzname is declared" >&5
7937 echo $ECHO_N "checking whether tzname is declared... $ECHO_C" >&6; }
7938 if test "${ac_cv_have_decl_tzname+set}" = set; then
7939 echo $ECHO_N "(cached) $ECHO_C" >&6
7940 else
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 #ifndef tzname
7953 (void) tzname;
7954 #endif
7957 return 0;
7959 _ACEOF
7960 rm -f conftest.$ac_objext
7961 if { (ac_try="$ac_compile"
7962 case "(($ac_try" in
7963 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7964 *) ac_try_echo=$ac_try;;
7965 esac
7966 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7967 (eval "$ac_compile") 2>conftest.er1
7968 ac_status=$?
7969 grep -v '^ *+' conftest.er1 >conftest.err
7970 rm -f conftest.er1
7971 cat conftest.err >&5
7972 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7973 (exit $ac_status); } && {
7974 test -z "$ac_c_werror_flag" ||
7975 test ! -s conftest.err
7976 } && test -s conftest.$ac_objext; then
7977 ac_cv_have_decl_tzname=yes
7978 else
7979 echo "$as_me: failed program was:" >&5
7980 sed 's/^/| /' conftest.$ac_ext >&5
7982 ac_cv_have_decl_tzname=no
7985 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7987 { echo "$as_me:$LINENO: result: $ac_cv_have_decl_tzname" >&5
7988 echo "${ECHO_T}$ac_cv_have_decl_tzname" >&6; }
7989 if test $ac_cv_have_decl_tzname = yes; then
7991 cat >>confdefs.h <<_ACEOF
7992 #define HAVE_DECL_TZNAME 1
7993 _ACEOF
7996 else
7997 cat >>confdefs.h <<_ACEOF
7998 #define HAVE_DECL_TZNAME 0
7999 _ACEOF
8005 { echo "$as_me:$LINENO: checking for tzname" >&5
8006 echo $ECHO_N "checking for tzname... $ECHO_C" >&6; }
8007 if test "${ac_cv_var_tzname+set}" = set; then
8008 echo $ECHO_N "(cached) $ECHO_C" >&6
8009 else
8010 cat >conftest.$ac_ext <<_ACEOF
8011 /* confdefs.h. */
8012 _ACEOF
8013 cat confdefs.h >>conftest.$ac_ext
8014 cat >>conftest.$ac_ext <<_ACEOF
8015 /* end confdefs.h. */
8016 #include <time.h>
8017 #if !HAVE_DECL_TZNAME
8018 extern char *tzname[];
8019 #endif
8022 main ()
8024 return tzname[0][0];
8026 return 0;
8028 _ACEOF
8029 rm -f conftest.$ac_objext conftest$ac_exeext
8030 if { (ac_try="$ac_link"
8031 case "(($ac_try" in
8032 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8033 *) ac_try_echo=$ac_try;;
8034 esac
8035 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8036 (eval "$ac_link") 2>conftest.er1
8037 ac_status=$?
8038 grep -v '^ *+' conftest.er1 >conftest.err
8039 rm -f conftest.er1
8040 cat conftest.err >&5
8041 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8042 (exit $ac_status); } && {
8043 test -z "$ac_c_werror_flag" ||
8044 test ! -s conftest.err
8045 } && test -s conftest$ac_exeext &&
8046 $as_test_x conftest$ac_exeext; then
8047 ac_cv_var_tzname=yes
8048 else
8049 echo "$as_me: failed program was:" >&5
8050 sed 's/^/| /' conftest.$ac_ext >&5
8052 ac_cv_var_tzname=no
8055 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
8056 conftest$ac_exeext conftest.$ac_ext
8058 { echo "$as_me:$LINENO: result: $ac_cv_var_tzname" >&5
8059 echo "${ECHO_T}$ac_cv_var_tzname" >&6; }
8060 if test $ac_cv_var_tzname = yes; then
8062 cat >>confdefs.h <<\_ACEOF
8063 #define HAVE_TZNAME 1
8064 _ACEOF
8069 { echo "$as_me:$LINENO: checking for struct tm.tm_gmtoff" >&5
8070 echo $ECHO_N "checking for struct tm.tm_gmtoff... $ECHO_C" >&6; }
8071 if test "${ac_cv_member_struct_tm_tm_gmtoff+set}" = set; then
8072 echo $ECHO_N "(cached) $ECHO_C" >&6
8073 else
8074 cat >conftest.$ac_ext <<_ACEOF
8075 /* confdefs.h. */
8076 _ACEOF
8077 cat confdefs.h >>conftest.$ac_ext
8078 cat >>conftest.$ac_ext <<_ACEOF
8079 /* end confdefs.h. */
8080 #include <time.h>
8083 main ()
8085 static struct tm ac_aggr;
8086 if (ac_aggr.tm_gmtoff)
8087 return 0;
8089 return 0;
8091 _ACEOF
8092 rm -f conftest.$ac_objext
8093 if { (ac_try="$ac_compile"
8094 case "(($ac_try" in
8095 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8096 *) ac_try_echo=$ac_try;;
8097 esac
8098 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8099 (eval "$ac_compile") 2>conftest.er1
8100 ac_status=$?
8101 grep -v '^ *+' conftest.er1 >conftest.err
8102 rm -f conftest.er1
8103 cat conftest.err >&5
8104 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8105 (exit $ac_status); } && {
8106 test -z "$ac_c_werror_flag" ||
8107 test ! -s conftest.err
8108 } && test -s conftest.$ac_objext; then
8109 ac_cv_member_struct_tm_tm_gmtoff=yes
8110 else
8111 echo "$as_me: failed program was:" >&5
8112 sed 's/^/| /' conftest.$ac_ext >&5
8114 cat >conftest.$ac_ext <<_ACEOF
8115 /* confdefs.h. */
8116 _ACEOF
8117 cat confdefs.h >>conftest.$ac_ext
8118 cat >>conftest.$ac_ext <<_ACEOF
8119 /* end confdefs.h. */
8120 #include <time.h>
8123 main ()
8125 static struct tm ac_aggr;
8126 if (sizeof ac_aggr.tm_gmtoff)
8127 return 0;
8129 return 0;
8131 _ACEOF
8132 rm -f conftest.$ac_objext
8133 if { (ac_try="$ac_compile"
8134 case "(($ac_try" in
8135 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8136 *) ac_try_echo=$ac_try;;
8137 esac
8138 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8139 (eval "$ac_compile") 2>conftest.er1
8140 ac_status=$?
8141 grep -v '^ *+' conftest.er1 >conftest.err
8142 rm -f conftest.er1
8143 cat conftest.err >&5
8144 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8145 (exit $ac_status); } && {
8146 test -z "$ac_c_werror_flag" ||
8147 test ! -s conftest.err
8148 } && test -s conftest.$ac_objext; then
8149 ac_cv_member_struct_tm_tm_gmtoff=yes
8150 else
8151 echo "$as_me: failed program was:" >&5
8152 sed 's/^/| /' conftest.$ac_ext >&5
8154 ac_cv_member_struct_tm_tm_gmtoff=no
8157 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8160 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8162 { echo "$as_me:$LINENO: result: $ac_cv_member_struct_tm_tm_gmtoff" >&5
8163 echo "${ECHO_T}$ac_cv_member_struct_tm_tm_gmtoff" >&6; }
8164 if test $ac_cv_member_struct_tm_tm_gmtoff = yes; then
8166 cat >>confdefs.h <<\_ACEOF
8167 #define HAVE_TM_GMTOFF 1
8168 _ACEOF
8172 { echo "$as_me:$LINENO: checking for struct ifreq.ifr_flags" >&5
8173 echo $ECHO_N "checking for struct ifreq.ifr_flags... $ECHO_C" >&6; }
8174 if test "${ac_cv_member_struct_ifreq_ifr_flags+set}" = set; then
8175 echo $ECHO_N "(cached) $ECHO_C" >&6
8176 else
8177 cat >conftest.$ac_ext <<_ACEOF
8178 /* confdefs.h. */
8179 _ACEOF
8180 cat confdefs.h >>conftest.$ac_ext
8181 cat >>conftest.$ac_ext <<_ACEOF
8182 /* end confdefs.h. */
8183 $ac_includes_default
8184 #if HAVE_SYS_SOCKET_H
8185 #include <sys/socket.h>
8186 #endif
8187 #if HAVE_NET_IF_H
8188 #include <net/if.h>
8189 #endif
8192 main ()
8194 static struct ifreq ac_aggr;
8195 if (ac_aggr.ifr_flags)
8196 return 0;
8198 return 0;
8200 _ACEOF
8201 rm -f conftest.$ac_objext
8202 if { (ac_try="$ac_compile"
8203 case "(($ac_try" in
8204 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8205 *) ac_try_echo=$ac_try;;
8206 esac
8207 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8208 (eval "$ac_compile") 2>conftest.er1
8209 ac_status=$?
8210 grep -v '^ *+' conftest.er1 >conftest.err
8211 rm -f conftest.er1
8212 cat conftest.err >&5
8213 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8214 (exit $ac_status); } && {
8215 test -z "$ac_c_werror_flag" ||
8216 test ! -s conftest.err
8217 } && test -s conftest.$ac_objext; then
8218 ac_cv_member_struct_ifreq_ifr_flags=yes
8219 else
8220 echo "$as_me: failed program was:" >&5
8221 sed 's/^/| /' conftest.$ac_ext >&5
8223 cat >conftest.$ac_ext <<_ACEOF
8224 /* confdefs.h. */
8225 _ACEOF
8226 cat confdefs.h >>conftest.$ac_ext
8227 cat >>conftest.$ac_ext <<_ACEOF
8228 /* end confdefs.h. */
8229 $ac_includes_default
8230 #if HAVE_SYS_SOCKET_H
8231 #include <sys/socket.h>
8232 #endif
8233 #if HAVE_NET_IF_H
8234 #include <net/if.h>
8235 #endif
8238 main ()
8240 static struct ifreq ac_aggr;
8241 if (sizeof ac_aggr.ifr_flags)
8242 return 0;
8244 return 0;
8246 _ACEOF
8247 rm -f conftest.$ac_objext
8248 if { (ac_try="$ac_compile"
8249 case "(($ac_try" in
8250 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8251 *) ac_try_echo=$ac_try;;
8252 esac
8253 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8254 (eval "$ac_compile") 2>conftest.er1
8255 ac_status=$?
8256 grep -v '^ *+' conftest.er1 >conftest.err
8257 rm -f conftest.er1
8258 cat conftest.err >&5
8259 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8260 (exit $ac_status); } && {
8261 test -z "$ac_c_werror_flag" ||
8262 test ! -s conftest.err
8263 } && test -s conftest.$ac_objext; then
8264 ac_cv_member_struct_ifreq_ifr_flags=yes
8265 else
8266 echo "$as_me: failed program was:" >&5
8267 sed 's/^/| /' conftest.$ac_ext >&5
8269 ac_cv_member_struct_ifreq_ifr_flags=no
8272 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8275 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8277 { echo "$as_me:$LINENO: result: $ac_cv_member_struct_ifreq_ifr_flags" >&5
8278 echo "${ECHO_T}$ac_cv_member_struct_ifreq_ifr_flags" >&6; }
8279 if test $ac_cv_member_struct_ifreq_ifr_flags = yes; then
8281 cat >>confdefs.h <<_ACEOF
8282 #define HAVE_STRUCT_IFREQ_IFR_FLAGS 1
8283 _ACEOF
8287 { echo "$as_me:$LINENO: checking for struct ifreq.ifr_hwaddr" >&5
8288 echo $ECHO_N "checking for struct ifreq.ifr_hwaddr... $ECHO_C" >&6; }
8289 if test "${ac_cv_member_struct_ifreq_ifr_hwaddr+set}" = set; then
8290 echo $ECHO_N "(cached) $ECHO_C" >&6
8291 else
8292 cat >conftest.$ac_ext <<_ACEOF
8293 /* confdefs.h. */
8294 _ACEOF
8295 cat confdefs.h >>conftest.$ac_ext
8296 cat >>conftest.$ac_ext <<_ACEOF
8297 /* end confdefs.h. */
8298 $ac_includes_default
8299 #if HAVE_SYS_SOCKET_H
8300 #include <sys/socket.h>
8301 #endif
8302 #if HAVE_NET_IF_H
8303 #include <net/if.h>
8304 #endif
8307 main ()
8309 static struct ifreq ac_aggr;
8310 if (ac_aggr.ifr_hwaddr)
8311 return 0;
8313 return 0;
8315 _ACEOF
8316 rm -f conftest.$ac_objext
8317 if { (ac_try="$ac_compile"
8318 case "(($ac_try" in
8319 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8320 *) ac_try_echo=$ac_try;;
8321 esac
8322 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8323 (eval "$ac_compile") 2>conftest.er1
8324 ac_status=$?
8325 grep -v '^ *+' conftest.er1 >conftest.err
8326 rm -f conftest.er1
8327 cat conftest.err >&5
8328 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8329 (exit $ac_status); } && {
8330 test -z "$ac_c_werror_flag" ||
8331 test ! -s conftest.err
8332 } && test -s conftest.$ac_objext; then
8333 ac_cv_member_struct_ifreq_ifr_hwaddr=yes
8334 else
8335 echo "$as_me: failed program was:" >&5
8336 sed 's/^/| /' conftest.$ac_ext >&5
8338 cat >conftest.$ac_ext <<_ACEOF
8339 /* confdefs.h. */
8340 _ACEOF
8341 cat confdefs.h >>conftest.$ac_ext
8342 cat >>conftest.$ac_ext <<_ACEOF
8343 /* end confdefs.h. */
8344 $ac_includes_default
8345 #if HAVE_SYS_SOCKET_H
8346 #include <sys/socket.h>
8347 #endif
8348 #if HAVE_NET_IF_H
8349 #include <net/if.h>
8350 #endif
8353 main ()
8355 static struct ifreq ac_aggr;
8356 if (sizeof ac_aggr.ifr_hwaddr)
8357 return 0;
8359 return 0;
8361 _ACEOF
8362 rm -f conftest.$ac_objext
8363 if { (ac_try="$ac_compile"
8364 case "(($ac_try" in
8365 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8366 *) ac_try_echo=$ac_try;;
8367 esac
8368 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8369 (eval "$ac_compile") 2>conftest.er1
8370 ac_status=$?
8371 grep -v '^ *+' conftest.er1 >conftest.err
8372 rm -f conftest.er1
8373 cat conftest.err >&5
8374 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8375 (exit $ac_status); } && {
8376 test -z "$ac_c_werror_flag" ||
8377 test ! -s conftest.err
8378 } && test -s conftest.$ac_objext; then
8379 ac_cv_member_struct_ifreq_ifr_hwaddr=yes
8380 else
8381 echo "$as_me: failed program was:" >&5
8382 sed 's/^/| /' conftest.$ac_ext >&5
8384 ac_cv_member_struct_ifreq_ifr_hwaddr=no
8387 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8390 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8392 { echo "$as_me:$LINENO: result: $ac_cv_member_struct_ifreq_ifr_hwaddr" >&5
8393 echo "${ECHO_T}$ac_cv_member_struct_ifreq_ifr_hwaddr" >&6; }
8394 if test $ac_cv_member_struct_ifreq_ifr_hwaddr = yes; then
8396 cat >>confdefs.h <<_ACEOF
8397 #define HAVE_STRUCT_IFREQ_IFR_HWADDR 1
8398 _ACEOF
8402 { echo "$as_me:$LINENO: checking for struct ifreq.ifr_netmask" >&5
8403 echo $ECHO_N "checking for struct ifreq.ifr_netmask... $ECHO_C" >&6; }
8404 if test "${ac_cv_member_struct_ifreq_ifr_netmask+set}" = set; then
8405 echo $ECHO_N "(cached) $ECHO_C" >&6
8406 else
8407 cat >conftest.$ac_ext <<_ACEOF
8408 /* confdefs.h. */
8409 _ACEOF
8410 cat confdefs.h >>conftest.$ac_ext
8411 cat >>conftest.$ac_ext <<_ACEOF
8412 /* end confdefs.h. */
8413 $ac_includes_default
8414 #if HAVE_SYS_SOCKET_H
8415 #include <sys/socket.h>
8416 #endif
8417 #if HAVE_NET_IF_H
8418 #include <net/if.h>
8419 #endif
8422 main ()
8424 static struct ifreq ac_aggr;
8425 if (ac_aggr.ifr_netmask)
8426 return 0;
8428 return 0;
8430 _ACEOF
8431 rm -f conftest.$ac_objext
8432 if { (ac_try="$ac_compile"
8433 case "(($ac_try" in
8434 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8435 *) ac_try_echo=$ac_try;;
8436 esac
8437 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8438 (eval "$ac_compile") 2>conftest.er1
8439 ac_status=$?
8440 grep -v '^ *+' conftest.er1 >conftest.err
8441 rm -f conftest.er1
8442 cat conftest.err >&5
8443 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8444 (exit $ac_status); } && {
8445 test -z "$ac_c_werror_flag" ||
8446 test ! -s conftest.err
8447 } && test -s conftest.$ac_objext; then
8448 ac_cv_member_struct_ifreq_ifr_netmask=yes
8449 else
8450 echo "$as_me: failed program was:" >&5
8451 sed 's/^/| /' conftest.$ac_ext >&5
8453 cat >conftest.$ac_ext <<_ACEOF
8454 /* confdefs.h. */
8455 _ACEOF
8456 cat confdefs.h >>conftest.$ac_ext
8457 cat >>conftest.$ac_ext <<_ACEOF
8458 /* end confdefs.h. */
8459 $ac_includes_default
8460 #if HAVE_SYS_SOCKET_H
8461 #include <sys/socket.h>
8462 #endif
8463 #if HAVE_NET_IF_H
8464 #include <net/if.h>
8465 #endif
8468 main ()
8470 static struct ifreq ac_aggr;
8471 if (sizeof ac_aggr.ifr_netmask)
8472 return 0;
8474 return 0;
8476 _ACEOF
8477 rm -f conftest.$ac_objext
8478 if { (ac_try="$ac_compile"
8479 case "(($ac_try" in
8480 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8481 *) ac_try_echo=$ac_try;;
8482 esac
8483 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8484 (eval "$ac_compile") 2>conftest.er1
8485 ac_status=$?
8486 grep -v '^ *+' conftest.er1 >conftest.err
8487 rm -f conftest.er1
8488 cat conftest.err >&5
8489 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8490 (exit $ac_status); } && {
8491 test -z "$ac_c_werror_flag" ||
8492 test ! -s conftest.err
8493 } && test -s conftest.$ac_objext; then
8494 ac_cv_member_struct_ifreq_ifr_netmask=yes
8495 else
8496 echo "$as_me: failed program was:" >&5
8497 sed 's/^/| /' conftest.$ac_ext >&5
8499 ac_cv_member_struct_ifreq_ifr_netmask=no
8502 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8505 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8507 { echo "$as_me:$LINENO: result: $ac_cv_member_struct_ifreq_ifr_netmask" >&5
8508 echo "${ECHO_T}$ac_cv_member_struct_ifreq_ifr_netmask" >&6; }
8509 if test $ac_cv_member_struct_ifreq_ifr_netmask = yes; then
8511 cat >>confdefs.h <<_ACEOF
8512 #define HAVE_STRUCT_IFREQ_IFR_NETMASK 1
8513 _ACEOF
8517 { echo "$as_me:$LINENO: checking for struct ifreq.ifr_broadaddr" >&5
8518 echo $ECHO_N "checking for struct ifreq.ifr_broadaddr... $ECHO_C" >&6; }
8519 if test "${ac_cv_member_struct_ifreq_ifr_broadaddr+set}" = set; then
8520 echo $ECHO_N "(cached) $ECHO_C" >&6
8521 else
8522 cat >conftest.$ac_ext <<_ACEOF
8523 /* confdefs.h. */
8524 _ACEOF
8525 cat confdefs.h >>conftest.$ac_ext
8526 cat >>conftest.$ac_ext <<_ACEOF
8527 /* end confdefs.h. */
8528 $ac_includes_default
8529 #if HAVE_SYS_SOCKET_H
8530 #include <sys/socket.h>
8531 #endif
8532 #if HAVE_NET_IF_H
8533 #include <net/if.h>
8534 #endif
8537 main ()
8539 static struct ifreq ac_aggr;
8540 if (ac_aggr.ifr_broadaddr)
8541 return 0;
8543 return 0;
8545 _ACEOF
8546 rm -f conftest.$ac_objext
8547 if { (ac_try="$ac_compile"
8548 case "(($ac_try" in
8549 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8550 *) ac_try_echo=$ac_try;;
8551 esac
8552 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8553 (eval "$ac_compile") 2>conftest.er1
8554 ac_status=$?
8555 grep -v '^ *+' conftest.er1 >conftest.err
8556 rm -f conftest.er1
8557 cat conftest.err >&5
8558 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8559 (exit $ac_status); } && {
8560 test -z "$ac_c_werror_flag" ||
8561 test ! -s conftest.err
8562 } && test -s conftest.$ac_objext; then
8563 ac_cv_member_struct_ifreq_ifr_broadaddr=yes
8564 else
8565 echo "$as_me: failed program was:" >&5
8566 sed 's/^/| /' conftest.$ac_ext >&5
8568 cat >conftest.$ac_ext <<_ACEOF
8569 /* confdefs.h. */
8570 _ACEOF
8571 cat confdefs.h >>conftest.$ac_ext
8572 cat >>conftest.$ac_ext <<_ACEOF
8573 /* end confdefs.h. */
8574 $ac_includes_default
8575 #if HAVE_SYS_SOCKET_H
8576 #include <sys/socket.h>
8577 #endif
8578 #if HAVE_NET_IF_H
8579 #include <net/if.h>
8580 #endif
8583 main ()
8585 static struct ifreq ac_aggr;
8586 if (sizeof ac_aggr.ifr_broadaddr)
8587 return 0;
8589 return 0;
8591 _ACEOF
8592 rm -f conftest.$ac_objext
8593 if { (ac_try="$ac_compile"
8594 case "(($ac_try" in
8595 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8596 *) ac_try_echo=$ac_try;;
8597 esac
8598 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8599 (eval "$ac_compile") 2>conftest.er1
8600 ac_status=$?
8601 grep -v '^ *+' conftest.er1 >conftest.err
8602 rm -f conftest.er1
8603 cat conftest.err >&5
8604 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8605 (exit $ac_status); } && {
8606 test -z "$ac_c_werror_flag" ||
8607 test ! -s conftest.err
8608 } && test -s conftest.$ac_objext; then
8609 ac_cv_member_struct_ifreq_ifr_broadaddr=yes
8610 else
8611 echo "$as_me: failed program was:" >&5
8612 sed 's/^/| /' conftest.$ac_ext >&5
8614 ac_cv_member_struct_ifreq_ifr_broadaddr=no
8617 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8620 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8622 { echo "$as_me:$LINENO: result: $ac_cv_member_struct_ifreq_ifr_broadaddr" >&5
8623 echo "${ECHO_T}$ac_cv_member_struct_ifreq_ifr_broadaddr" >&6; }
8624 if test $ac_cv_member_struct_ifreq_ifr_broadaddr = yes; then
8626 cat >>confdefs.h <<_ACEOF
8627 #define HAVE_STRUCT_IFREQ_IFR_BROADADDR 1
8628 _ACEOF
8632 { echo "$as_me:$LINENO: checking for struct ifreq.ifr_addr" >&5
8633 echo $ECHO_N "checking for struct ifreq.ifr_addr... $ECHO_C" >&6; }
8634 if test "${ac_cv_member_struct_ifreq_ifr_addr+set}" = set; then
8635 echo $ECHO_N "(cached) $ECHO_C" >&6
8636 else
8637 cat >conftest.$ac_ext <<_ACEOF
8638 /* confdefs.h. */
8639 _ACEOF
8640 cat confdefs.h >>conftest.$ac_ext
8641 cat >>conftest.$ac_ext <<_ACEOF
8642 /* end confdefs.h. */
8643 $ac_includes_default
8644 #if HAVE_SYS_SOCKET_H
8645 #include <sys/socket.h>
8646 #endif
8647 #if HAVE_NET_IF_H
8648 #include <net/if.h>
8649 #endif
8652 main ()
8654 static struct ifreq ac_aggr;
8655 if (ac_aggr.ifr_addr)
8656 return 0;
8658 return 0;
8660 _ACEOF
8661 rm -f conftest.$ac_objext
8662 if { (ac_try="$ac_compile"
8663 case "(($ac_try" in
8664 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8665 *) ac_try_echo=$ac_try;;
8666 esac
8667 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8668 (eval "$ac_compile") 2>conftest.er1
8669 ac_status=$?
8670 grep -v '^ *+' conftest.er1 >conftest.err
8671 rm -f conftest.er1
8672 cat conftest.err >&5
8673 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8674 (exit $ac_status); } && {
8675 test -z "$ac_c_werror_flag" ||
8676 test ! -s conftest.err
8677 } && test -s conftest.$ac_objext; then
8678 ac_cv_member_struct_ifreq_ifr_addr=yes
8679 else
8680 echo "$as_me: failed program was:" >&5
8681 sed 's/^/| /' conftest.$ac_ext >&5
8683 cat >conftest.$ac_ext <<_ACEOF
8684 /* confdefs.h. */
8685 _ACEOF
8686 cat confdefs.h >>conftest.$ac_ext
8687 cat >>conftest.$ac_ext <<_ACEOF
8688 /* end confdefs.h. */
8689 $ac_includes_default
8690 #if HAVE_SYS_SOCKET_H
8691 #include <sys/socket.h>
8692 #endif
8693 #if HAVE_NET_IF_H
8694 #include <net/if.h>
8695 #endif
8698 main ()
8700 static struct ifreq ac_aggr;
8701 if (sizeof ac_aggr.ifr_addr)
8702 return 0;
8704 return 0;
8706 _ACEOF
8707 rm -f conftest.$ac_objext
8708 if { (ac_try="$ac_compile"
8709 case "(($ac_try" in
8710 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8711 *) ac_try_echo=$ac_try;;
8712 esac
8713 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8714 (eval "$ac_compile") 2>conftest.er1
8715 ac_status=$?
8716 grep -v '^ *+' conftest.er1 >conftest.err
8717 rm -f conftest.er1
8718 cat conftest.err >&5
8719 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8720 (exit $ac_status); } && {
8721 test -z "$ac_c_werror_flag" ||
8722 test ! -s conftest.err
8723 } && test -s conftest.$ac_objext; then
8724 ac_cv_member_struct_ifreq_ifr_addr=yes
8725 else
8726 echo "$as_me: failed program was:" >&5
8727 sed 's/^/| /' conftest.$ac_ext >&5
8729 ac_cv_member_struct_ifreq_ifr_addr=no
8732 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8735 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8737 { echo "$as_me:$LINENO: result: $ac_cv_member_struct_ifreq_ifr_addr" >&5
8738 echo "${ECHO_T}$ac_cv_member_struct_ifreq_ifr_addr" >&6; }
8739 if test $ac_cv_member_struct_ifreq_ifr_addr = yes; then
8741 cat >>confdefs.h <<_ACEOF
8742 #define HAVE_STRUCT_IFREQ_IFR_ADDR 1
8743 _ACEOF
8750 { echo "$as_me:$LINENO: checking for function prototypes" >&5
8751 echo $ECHO_N "checking for function prototypes... $ECHO_C" >&6; }
8752 if test "$ac_cv_prog_cc_c89" != no; then
8753 { echo "$as_me:$LINENO: result: yes" >&5
8754 echo "${ECHO_T}yes" >&6; }
8756 cat >>confdefs.h <<\_ACEOF
8757 #define PROTOTYPES 1
8758 _ACEOF
8761 cat >>confdefs.h <<\_ACEOF
8762 #define __PROTOTYPES 1
8763 _ACEOF
8765 else
8766 { echo "$as_me:$LINENO: result: no" >&5
8767 echo "${ECHO_T}no" >&6; }
8770 { echo "$as_me:$LINENO: checking for working volatile" >&5
8771 echo $ECHO_N "checking for working volatile... $ECHO_C" >&6; }
8772 if test "${ac_cv_c_volatile+set}" = set; then
8773 echo $ECHO_N "(cached) $ECHO_C" >&6
8774 else
8775 cat >conftest.$ac_ext <<_ACEOF
8776 /* confdefs.h. */
8777 _ACEOF
8778 cat confdefs.h >>conftest.$ac_ext
8779 cat >>conftest.$ac_ext <<_ACEOF
8780 /* end confdefs.h. */
8783 main ()
8786 volatile int x;
8787 int * volatile y = (int *) 0;
8788 return !x && !y;
8790 return 0;
8792 _ACEOF
8793 rm -f conftest.$ac_objext
8794 if { (ac_try="$ac_compile"
8795 case "(($ac_try" in
8796 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8797 *) ac_try_echo=$ac_try;;
8798 esac
8799 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8800 (eval "$ac_compile") 2>conftest.er1
8801 ac_status=$?
8802 grep -v '^ *+' conftest.er1 >conftest.err
8803 rm -f conftest.er1
8804 cat conftest.err >&5
8805 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8806 (exit $ac_status); } && {
8807 test -z "$ac_c_werror_flag" ||
8808 test ! -s conftest.err
8809 } && test -s conftest.$ac_objext; then
8810 ac_cv_c_volatile=yes
8811 else
8812 echo "$as_me: failed program was:" >&5
8813 sed 's/^/| /' conftest.$ac_ext >&5
8815 ac_cv_c_volatile=no
8818 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8820 { echo "$as_me:$LINENO: result: $ac_cv_c_volatile" >&5
8821 echo "${ECHO_T}$ac_cv_c_volatile" >&6; }
8822 if test $ac_cv_c_volatile = no; then
8824 cat >>confdefs.h <<\_ACEOF
8825 #define volatile
8826 _ACEOF
8830 { echo "$as_me:$LINENO: checking for an ANSI C-conforming const" >&5
8831 echo $ECHO_N "checking for an ANSI C-conforming const... $ECHO_C" >&6; }
8832 if test "${ac_cv_c_const+set}" = set; then
8833 echo $ECHO_N "(cached) $ECHO_C" >&6
8834 else
8835 cat >conftest.$ac_ext <<_ACEOF
8836 /* confdefs.h. */
8837 _ACEOF
8838 cat confdefs.h >>conftest.$ac_ext
8839 cat >>conftest.$ac_ext <<_ACEOF
8840 /* end confdefs.h. */
8843 main ()
8845 /* FIXME: Include the comments suggested by Paul. */
8846 #ifndef __cplusplus
8847 /* Ultrix mips cc rejects this. */
8848 typedef int charset[2];
8849 const charset cs;
8850 /* SunOS 4.1.1 cc rejects this. */
8851 char const *const *pcpcc;
8852 char **ppc;
8853 /* NEC SVR4.0.2 mips cc rejects this. */
8854 struct point {int x, y;};
8855 static struct point const zero = {0,0};
8856 /* AIX XL C 1.02.0.0 rejects this.
8857 It does not let you subtract one const X* pointer from another in
8858 an arm of an if-expression whose if-part is not a constant
8859 expression */
8860 const char *g = "string";
8861 pcpcc = &g + (g ? g-g : 0);
8862 /* HPUX 7.0 cc rejects these. */
8863 ++pcpcc;
8864 ppc = (char**) pcpcc;
8865 pcpcc = (char const *const *) ppc;
8866 { /* SCO 3.2v4 cc rejects this. */
8867 char *t;
8868 char const *s = 0 ? (char *) 0 : (char const *) 0;
8870 *t++ = 0;
8871 if (s) return 0;
8873 { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
8874 int x[] = {25, 17};
8875 const int *foo = &x[0];
8876 ++foo;
8878 { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
8879 typedef const int *iptr;
8880 iptr p = 0;
8881 ++p;
8883 { /* AIX XL C 1.02.0.0 rejects this saying
8884 "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
8885 struct s { int j; const int *ap[3]; };
8886 struct s *b; b->j = 5;
8888 { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
8889 const int foo = 10;
8890 if (!foo) return 0;
8892 return !cs[0] && !zero.x;
8893 #endif
8896 return 0;
8898 _ACEOF
8899 rm -f conftest.$ac_objext
8900 if { (ac_try="$ac_compile"
8901 case "(($ac_try" in
8902 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8903 *) ac_try_echo=$ac_try;;
8904 esac
8905 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8906 (eval "$ac_compile") 2>conftest.er1
8907 ac_status=$?
8908 grep -v '^ *+' conftest.er1 >conftest.err
8909 rm -f conftest.er1
8910 cat conftest.err >&5
8911 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8912 (exit $ac_status); } && {
8913 test -z "$ac_c_werror_flag" ||
8914 test ! -s conftest.err
8915 } && test -s conftest.$ac_objext; then
8916 ac_cv_c_const=yes
8917 else
8918 echo "$as_me: failed program was:" >&5
8919 sed 's/^/| /' conftest.$ac_ext >&5
8921 ac_cv_c_const=no
8924 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8926 { echo "$as_me:$LINENO: result: $ac_cv_c_const" >&5
8927 echo "${ECHO_T}$ac_cv_c_const" >&6; }
8928 if test $ac_cv_c_const = no; then
8930 cat >>confdefs.h <<\_ACEOF
8931 #define const
8932 _ACEOF
8936 { echo "$as_me:$LINENO: checking for void * support" >&5
8937 echo $ECHO_N "checking for void * support... $ECHO_C" >&6; }
8938 if test "${emacs_cv_void_star+set}" = set; then
8939 echo $ECHO_N "(cached) $ECHO_C" >&6
8940 else
8941 cat >conftest.$ac_ext <<_ACEOF
8942 /* confdefs.h. */
8943 _ACEOF
8944 cat confdefs.h >>conftest.$ac_ext
8945 cat >>conftest.$ac_ext <<_ACEOF
8946 /* end confdefs.h. */
8949 main ()
8951 void * foo;
8953 return 0;
8955 _ACEOF
8956 rm -f conftest.$ac_objext
8957 if { (ac_try="$ac_compile"
8958 case "(($ac_try" in
8959 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8960 *) ac_try_echo=$ac_try;;
8961 esac
8962 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8963 (eval "$ac_compile") 2>conftest.er1
8964 ac_status=$?
8965 grep -v '^ *+' conftest.er1 >conftest.err
8966 rm -f conftest.er1
8967 cat conftest.err >&5
8968 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8969 (exit $ac_status); } && {
8970 test -z "$ac_c_werror_flag" ||
8971 test ! -s conftest.err
8972 } && test -s conftest.$ac_objext; then
8973 emacs_cv_void_star=yes
8974 else
8975 echo "$as_me: failed program was:" >&5
8976 sed 's/^/| /' conftest.$ac_ext >&5
8978 emacs_cv_void_star=no
8981 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8983 { echo "$as_me:$LINENO: result: $emacs_cv_void_star" >&5
8984 echo "${ECHO_T}$emacs_cv_void_star" >&6; }
8985 if test $emacs_cv_void_star = yes; then
8986 cat >>confdefs.h <<\_ACEOF
8987 #define POINTER_TYPE void
8988 _ACEOF
8990 else
8991 cat >>confdefs.h <<\_ACEOF
8992 #define POINTER_TYPE char
8993 _ACEOF
9001 { echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5
9002 echo $ECHO_N "checking whether ${MAKE-make} sets \$(MAKE)... $ECHO_C" >&6; }
9003 set x ${MAKE-make}; ac_make=`echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
9004 if { as_var=ac_cv_prog_make_${ac_make}_set; eval "test \"\${$as_var+set}\" = set"; }; then
9005 echo $ECHO_N "(cached) $ECHO_C" >&6
9006 else
9007 cat >conftest.make <<\_ACEOF
9008 SHELL = /bin/sh
9009 all:
9010 @echo '@@@%%%=$(MAKE)=@@@%%%'
9011 _ACEOF
9012 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
9013 case `${MAKE-make} -f conftest.make 2>/dev/null` in
9014 *@@@%%%=?*=@@@%%%*)
9015 eval ac_cv_prog_make_${ac_make}_set=yes;;
9017 eval ac_cv_prog_make_${ac_make}_set=no;;
9018 esac
9019 rm -f conftest.make
9021 if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
9022 { echo "$as_me:$LINENO: result: yes" >&5
9023 echo "${ECHO_T}yes" >&6; }
9024 SET_MAKE=
9025 else
9026 { echo "$as_me:$LINENO: result: no" >&5
9027 echo "${ECHO_T}no" >&6; }
9028 SET_MAKE="MAKE=${MAKE-make}"
9032 { echo "$as_me:$LINENO: checking for long file names" >&5
9033 echo $ECHO_N "checking for long file names... $ECHO_C" >&6; }
9034 if test "${ac_cv_sys_long_file_names+set}" = set; then
9035 echo $ECHO_N "(cached) $ECHO_C" >&6
9036 else
9037 ac_cv_sys_long_file_names=yes
9038 # Test for long file names in all the places we know might matter:
9039 # . the current directory, where building will happen
9040 # $prefix/lib where we will be installing things
9041 # $exec_prefix/lib likewise
9042 # $TMPDIR if set, where it might want to write temporary files
9043 # /tmp where it might want to write temporary files
9044 # /var/tmp likewise
9045 # /usr/tmp likewise
9046 for ac_dir in . "$TMPDIR" /tmp /var/tmp /usr/tmp "$prefix/lib" "$exec_prefix/lib"; do
9047 # Skip $TMPDIR if it is empty or bogus, and skip $exec_prefix/lib
9048 # in the usual case where exec_prefix is '${prefix}'.
9049 case $ac_dir in #(
9050 . | /* | ?:[\\/]*) ;; #(
9051 *) continue;;
9052 esac
9053 test -w "$ac_dir/." || continue # It is less confusing to not echo anything here.
9054 ac_xdir=$ac_dir/cf$$
9055 (umask 077 && mkdir "$ac_xdir" 2>/dev/null) || continue
9056 ac_tf1=$ac_xdir/conftest9012345
9057 ac_tf2=$ac_xdir/conftest9012346
9058 touch "$ac_tf1" 2>/dev/null && test -f "$ac_tf1" && test ! -f "$ac_tf2" ||
9059 ac_cv_sys_long_file_names=no
9060 rm -f -r "$ac_xdir" 2>/dev/null
9061 test $ac_cv_sys_long_file_names = no && break
9062 done
9064 { echo "$as_me:$LINENO: result: $ac_cv_sys_long_file_names" >&5
9065 echo "${ECHO_T}$ac_cv_sys_long_file_names" >&6; }
9066 if test $ac_cv_sys_long_file_names = yes; then
9068 cat >>confdefs.h <<\_ACEOF
9069 #define HAVE_LONG_FILE_NAMES 1
9070 _ACEOF
9075 #### Choose a window system.
9077 { echo "$as_me:$LINENO: checking for X" >&5
9078 echo $ECHO_N "checking for X... $ECHO_C" >&6; }
9081 # Check whether --with-x was given.
9082 if test "${with_x+set}" = set; then
9083 withval=$with_x;
9086 # $have_x is `yes', `no', `disabled', or empty when we do not yet know.
9087 if test "x$with_x" = xno; then
9088 # The user explicitly disabled X.
9089 have_x=disabled
9090 else
9091 case $x_includes,$x_libraries in #(
9092 *\'*) { { echo "$as_me:$LINENO: error: Cannot use X directory names containing '" >&5
9093 echo "$as_me: error: Cannot use X directory names containing '" >&2;}
9094 { (exit 1); exit 1; }; };; #(
9095 *,NONE | NONE,*) if test "${ac_cv_have_x+set}" = set; then
9096 echo $ECHO_N "(cached) $ECHO_C" >&6
9097 else
9098 # One or both of the vars are not set, and there is no cached value.
9099 ac_x_includes=no ac_x_libraries=no
9100 rm -f -r conftest.dir
9101 if mkdir conftest.dir; then
9102 cd conftest.dir
9103 cat >Imakefile <<'_ACEOF'
9104 incroot:
9105 @echo incroot='${INCROOT}'
9106 usrlibdir:
9107 @echo usrlibdir='${USRLIBDIR}'
9108 libdir:
9109 @echo libdir='${LIBDIR}'
9110 _ACEOF
9111 if (export CC; ${XMKMF-xmkmf}) >/dev/null 2>/dev/null && test -f Makefile; then
9112 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
9113 for ac_var in incroot usrlibdir libdir; do
9114 eval "ac_im_$ac_var=\`\${MAKE-make} $ac_var 2>/dev/null | sed -n 's/^$ac_var=//p'\`"
9115 done
9116 # Open Windows xmkmf reportedly sets LIBDIR instead of USRLIBDIR.
9117 for ac_extension in a so sl; do
9118 if test ! -f "$ac_im_usrlibdir/libX11.$ac_extension" &&
9119 test -f "$ac_im_libdir/libX11.$ac_extension"; then
9120 ac_im_usrlibdir=$ac_im_libdir; break
9122 done
9123 # Screen out bogus values from the imake configuration. They are
9124 # bogus both because they are the default anyway, and because
9125 # using them would break gcc on systems where it needs fixed includes.
9126 case $ac_im_incroot in
9127 /usr/include) ac_x_includes= ;;
9128 *) test -f "$ac_im_incroot/X11/Xos.h" && ac_x_includes=$ac_im_incroot;;
9129 esac
9130 case $ac_im_usrlibdir in
9131 /usr/lib | /lib) ;;
9132 *) test -d "$ac_im_usrlibdir" && ac_x_libraries=$ac_im_usrlibdir ;;
9133 esac
9135 cd ..
9136 rm -f -r conftest.dir
9139 # Standard set of common directories for X headers.
9140 # Check X11 before X11Rn because it is often a symlink to the current release.
9141 ac_x_header_dirs='
9142 /usr/X11/include
9143 /usr/X11R6/include
9144 /usr/X11R5/include
9145 /usr/X11R4/include
9147 /usr/include/X11
9148 /usr/include/X11R6
9149 /usr/include/X11R5
9150 /usr/include/X11R4
9152 /usr/local/X11/include
9153 /usr/local/X11R6/include
9154 /usr/local/X11R5/include
9155 /usr/local/X11R4/include
9157 /usr/local/include/X11
9158 /usr/local/include/X11R6
9159 /usr/local/include/X11R5
9160 /usr/local/include/X11R4
9162 /usr/X386/include
9163 /usr/x386/include
9164 /usr/XFree86/include/X11
9166 /usr/include
9167 /usr/local/include
9168 /usr/unsupported/include
9169 /usr/athena/include
9170 /usr/local/x11r5/include
9171 /usr/lpp/Xamples/include
9173 /usr/openwin/include
9174 /usr/openwin/share/include'
9176 if test "$ac_x_includes" = no; then
9177 # Guess where to find include files, by looking for Xlib.h.
9178 # First, try using that file with no special directory specified.
9179 cat >conftest.$ac_ext <<_ACEOF
9180 /* confdefs.h. */
9181 _ACEOF
9182 cat confdefs.h >>conftest.$ac_ext
9183 cat >>conftest.$ac_ext <<_ACEOF
9184 /* end confdefs.h. */
9185 #include <X11/Xlib.h>
9186 _ACEOF
9187 if { (ac_try="$ac_cpp conftest.$ac_ext"
9188 case "(($ac_try" in
9189 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9190 *) ac_try_echo=$ac_try;;
9191 esac
9192 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9193 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
9194 ac_status=$?
9195 grep -v '^ *+' conftest.er1 >conftest.err
9196 rm -f conftest.er1
9197 cat conftest.err >&5
9198 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9199 (exit $ac_status); } >/dev/null && {
9200 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
9201 test ! -s conftest.err
9202 }; then
9203 # We can compile using X headers with no special include directory.
9204 ac_x_includes=
9205 else
9206 echo "$as_me: failed program was:" >&5
9207 sed 's/^/| /' conftest.$ac_ext >&5
9209 for ac_dir in $ac_x_header_dirs; do
9210 if test -r "$ac_dir/X11/Xlib.h"; then
9211 ac_x_includes=$ac_dir
9212 break
9214 done
9217 rm -f conftest.err conftest.$ac_ext
9218 fi # $ac_x_includes = no
9220 if test "$ac_x_libraries" = no; then
9221 # Check for the libraries.
9222 # See if we find them without any special options.
9223 # Don't add to $LIBS permanently.
9224 ac_save_LIBS=$LIBS
9225 LIBS="-lX11 $LIBS"
9226 cat >conftest.$ac_ext <<_ACEOF
9227 /* confdefs.h. */
9228 _ACEOF
9229 cat confdefs.h >>conftest.$ac_ext
9230 cat >>conftest.$ac_ext <<_ACEOF
9231 /* end confdefs.h. */
9232 #include <X11/Xlib.h>
9234 main ()
9236 XrmInitialize ()
9238 return 0;
9240 _ACEOF
9241 rm -f conftest.$ac_objext conftest$ac_exeext
9242 if { (ac_try="$ac_link"
9243 case "(($ac_try" in
9244 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9245 *) ac_try_echo=$ac_try;;
9246 esac
9247 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9248 (eval "$ac_link") 2>conftest.er1
9249 ac_status=$?
9250 grep -v '^ *+' conftest.er1 >conftest.err
9251 rm -f conftest.er1
9252 cat conftest.err >&5
9253 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9254 (exit $ac_status); } && {
9255 test -z "$ac_c_werror_flag" ||
9256 test ! -s conftest.err
9257 } && test -s conftest$ac_exeext &&
9258 $as_test_x conftest$ac_exeext; then
9259 LIBS=$ac_save_LIBS
9260 # We can link X programs with no special library path.
9261 ac_x_libraries=
9262 else
9263 echo "$as_me: failed program was:" >&5
9264 sed 's/^/| /' conftest.$ac_ext >&5
9266 LIBS=$ac_save_LIBS
9267 for ac_dir in `echo "$ac_x_includes $ac_x_header_dirs" | sed s/include/lib/g`
9269 # Don't even attempt the hair of trying to link an X program!
9270 for ac_extension in a so sl; do
9271 if test -r "$ac_dir/libX11.$ac_extension"; then
9272 ac_x_libraries=$ac_dir
9273 break 2
9275 done
9276 done
9279 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
9280 conftest$ac_exeext conftest.$ac_ext
9281 fi # $ac_x_libraries = no
9283 case $ac_x_includes,$ac_x_libraries in #(
9284 no,* | *,no | *\'*)
9285 # Didn't find X, or a directory has "'" in its name.
9286 ac_cv_have_x="have_x=no";; #(
9288 # Record where we found X for the cache.
9289 ac_cv_have_x="have_x=yes\
9290 ac_x_includes='$ac_x_includes'\
9291 ac_x_libraries='$ac_x_libraries'"
9292 esac
9294 ;; #(
9295 *) have_x=yes;;
9296 esac
9297 eval "$ac_cv_have_x"
9298 fi # $with_x != no
9300 if test "$have_x" != yes; then
9301 { echo "$as_me:$LINENO: result: $have_x" >&5
9302 echo "${ECHO_T}$have_x" >&6; }
9303 no_x=yes
9304 else
9305 # If each of the values was on the command line, it overrides each guess.
9306 test "x$x_includes" = xNONE && x_includes=$ac_x_includes
9307 test "x$x_libraries" = xNONE && x_libraries=$ac_x_libraries
9308 # Update the cache value to reflect the command line values.
9309 ac_cv_have_x="have_x=yes\
9310 ac_x_includes='$x_includes'\
9311 ac_x_libraries='$x_libraries'"
9312 { echo "$as_me:$LINENO: result: libraries $x_libraries, headers $x_includes" >&5
9313 echo "${ECHO_T}libraries $x_libraries, headers $x_includes" >&6; }
9316 if test "$no_x" = yes; then
9317 window_system=none
9318 else
9319 window_system=x11
9322 ## Workaround for bug in autoconf <= 2.62.
9323 ## http://lists.gnu.org/archive/html/emacs-devel/2008-04/msg01551.html
9324 ## No need to do anything special for these standard directories.
9325 ## This is an experiment, take it out if it causes problems.
9326 if test -n "${x_libraries}" && test x"${x_libraries}" != xNONE; then
9328 x_libraries=`echo :${x_libraries}: | sed -e 's|:/usr/lib64:|:|g' -e 's|:/lib64:|:|g' -e 's|^:||' -e 's|:$||'`
9332 if test "${x_libraries}" != NONE; then
9333 if test -n "${x_libraries}"; then
9334 LD_SWITCH_X_SITE=-L`echo ${x_libraries} | sed -e "s/:/ -L/g"`
9335 LD_SWITCH_X_SITE_AUX=-R`echo ${x_libraries} | sed -e "s/:/ -R/g"`
9337 x_default_search_path=""
9338 x_search_path=${x_libraries}
9339 if test -z "${x_search_path}"; then
9340 x_search_path=/usr/lib
9342 for x_library in `echo ${x_search_path}: | \
9343 sed -e "s/:/ /g" -e p -e "s:/lib[^ /]* :/share :g"`; do
9344 x_search_path="\
9345 ${x_library}/X11/%L/%T/%N%C%S:\
9346 ${x_library}/X11/%l/%T/%N%C%S:\
9347 ${x_library}/X11/%T/%N%C%S:\
9348 ${x_library}/X11/%L/%T/%N%S:\
9349 ${x_library}/X11/%l/%T/%N%S:\
9350 ${x_library}/X11/%T/%N%S"
9351 if test x"${x_default_search_path}" = x; then
9352 x_default_search_path=${x_search_path}
9353 else
9354 x_default_search_path="${x_search_path}:${x_default_search_path}"
9356 done
9358 if test "${x_includes}" != NONE && test -n "${x_includes}"; then
9359 C_SWITCH_X_SITE=-I`echo ${x_includes} | sed -e "s/:/ -I/g"`
9362 if test x"${x_includes}" = x; then
9363 bitmapdir=/usr/include/X11/bitmaps
9364 else
9365 # accumulate include directories that have X11 bitmap subdirectories
9366 bmd_acc="dummyval"
9367 for bmd in `echo ${x_includes} | sed -e "s/:/ /g"`; do
9368 if test -d "${bmd}/X11/bitmaps"; then
9369 bmd_acc="${bmd_acc}:${bmd}/X11/bitmaps"
9371 if test -d "${bmd}/bitmaps"; then
9372 bmd_acc="${bmd_acc}:${bmd}/bitmaps"
9374 done
9375 if test ${bmd_acc} != "dummyval"; then
9376 bitmapdir=`echo ${bmd_acc} | sed -e "s/^dummyval://"`
9380 HAVE_CARBON=no
9381 if test "${with_carbon}" != no; then
9382 if test "${ac_cv_header_Carbon_Carbon_h+set}" = set; then
9383 { echo "$as_me:$LINENO: checking for Carbon/Carbon.h" >&5
9384 echo $ECHO_N "checking for Carbon/Carbon.h... $ECHO_C" >&6; }
9385 if test "${ac_cv_header_Carbon_Carbon_h+set}" = set; then
9386 echo $ECHO_N "(cached) $ECHO_C" >&6
9388 { echo "$as_me:$LINENO: result: $ac_cv_header_Carbon_Carbon_h" >&5
9389 echo "${ECHO_T}$ac_cv_header_Carbon_Carbon_h" >&6; }
9390 else
9391 # Is the header compilable?
9392 { echo "$as_me:$LINENO: checking Carbon/Carbon.h usability" >&5
9393 echo $ECHO_N "checking Carbon/Carbon.h usability... $ECHO_C" >&6; }
9394 cat >conftest.$ac_ext <<_ACEOF
9395 /* confdefs.h. */
9396 _ACEOF
9397 cat confdefs.h >>conftest.$ac_ext
9398 cat >>conftest.$ac_ext <<_ACEOF
9399 /* end confdefs.h. */
9400 $ac_includes_default
9401 #include <Carbon/Carbon.h>
9402 _ACEOF
9403 rm -f conftest.$ac_objext
9404 if { (ac_try="$ac_compile"
9405 case "(($ac_try" in
9406 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9407 *) ac_try_echo=$ac_try;;
9408 esac
9409 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9410 (eval "$ac_compile") 2>conftest.er1
9411 ac_status=$?
9412 grep -v '^ *+' conftest.er1 >conftest.err
9413 rm -f conftest.er1
9414 cat conftest.err >&5
9415 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9416 (exit $ac_status); } && {
9417 test -z "$ac_c_werror_flag" ||
9418 test ! -s conftest.err
9419 } && test -s conftest.$ac_objext; then
9420 ac_header_compiler=yes
9421 else
9422 echo "$as_me: failed program was:" >&5
9423 sed 's/^/| /' conftest.$ac_ext >&5
9425 ac_header_compiler=no
9428 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9429 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
9430 echo "${ECHO_T}$ac_header_compiler" >&6; }
9432 # Is the header present?
9433 { echo "$as_me:$LINENO: checking Carbon/Carbon.h presence" >&5
9434 echo $ECHO_N "checking Carbon/Carbon.h presence... $ECHO_C" >&6; }
9435 cat >conftest.$ac_ext <<_ACEOF
9436 /* confdefs.h. */
9437 _ACEOF
9438 cat confdefs.h >>conftest.$ac_ext
9439 cat >>conftest.$ac_ext <<_ACEOF
9440 /* end confdefs.h. */
9441 #include <Carbon/Carbon.h>
9442 _ACEOF
9443 if { (ac_try="$ac_cpp conftest.$ac_ext"
9444 case "(($ac_try" in
9445 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9446 *) ac_try_echo=$ac_try;;
9447 esac
9448 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9449 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
9450 ac_status=$?
9451 grep -v '^ *+' conftest.er1 >conftest.err
9452 rm -f conftest.er1
9453 cat conftest.err >&5
9454 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9455 (exit $ac_status); } >/dev/null && {
9456 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
9457 test ! -s conftest.err
9458 }; then
9459 ac_header_preproc=yes
9460 else
9461 echo "$as_me: failed program was:" >&5
9462 sed 's/^/| /' conftest.$ac_ext >&5
9464 ac_header_preproc=no
9467 rm -f conftest.err conftest.$ac_ext
9468 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
9469 echo "${ECHO_T}$ac_header_preproc" >&6; }
9471 # So? What about this header?
9472 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
9473 yes:no: )
9474 { echo "$as_me:$LINENO: WARNING: Carbon/Carbon.h: accepted by the compiler, rejected by the preprocessor!" >&5
9475 echo "$as_me: WARNING: Carbon/Carbon.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
9476 { echo "$as_me:$LINENO: WARNING: Carbon/Carbon.h: proceeding with the compiler's result" >&5
9477 echo "$as_me: WARNING: Carbon/Carbon.h: proceeding with the compiler's result" >&2;}
9478 ac_header_preproc=yes
9480 no:yes:* )
9481 { echo "$as_me:$LINENO: WARNING: Carbon/Carbon.h: present but cannot be compiled" >&5
9482 echo "$as_me: WARNING: Carbon/Carbon.h: present but cannot be compiled" >&2;}
9483 { echo "$as_me:$LINENO: WARNING: Carbon/Carbon.h: check for missing prerequisite headers?" >&5
9484 echo "$as_me: WARNING: Carbon/Carbon.h: check for missing prerequisite headers?" >&2;}
9485 { echo "$as_me:$LINENO: WARNING: Carbon/Carbon.h: see the Autoconf documentation" >&5
9486 echo "$as_me: WARNING: Carbon/Carbon.h: see the Autoconf documentation" >&2;}
9487 { echo "$as_me:$LINENO: WARNING: Carbon/Carbon.h: section \"Present But Cannot Be Compiled\"" >&5
9488 echo "$as_me: WARNING: Carbon/Carbon.h: section \"Present But Cannot Be Compiled\"" >&2;}
9489 { echo "$as_me:$LINENO: WARNING: Carbon/Carbon.h: proceeding with the preprocessor's result" >&5
9490 echo "$as_me: WARNING: Carbon/Carbon.h: proceeding with the preprocessor's result" >&2;}
9491 { echo "$as_me:$LINENO: WARNING: Carbon/Carbon.h: in the future, the compiler will take precedence" >&5
9492 echo "$as_me: WARNING: Carbon/Carbon.h: in the future, the compiler will take precedence" >&2;}
9495 esac
9496 { echo "$as_me:$LINENO: checking for Carbon/Carbon.h" >&5
9497 echo $ECHO_N "checking for Carbon/Carbon.h... $ECHO_C" >&6; }
9498 if test "${ac_cv_header_Carbon_Carbon_h+set}" = set; then
9499 echo $ECHO_N "(cached) $ECHO_C" >&6
9500 else
9501 ac_cv_header_Carbon_Carbon_h=$ac_header_preproc
9503 { echo "$as_me:$LINENO: result: $ac_cv_header_Carbon_Carbon_h" >&5
9504 echo "${ECHO_T}$ac_cv_header_Carbon_Carbon_h" >&6; }
9507 if test $ac_cv_header_Carbon_Carbon_h = yes; then
9508 HAVE_CARBON=yes
9513 if test "${window_system}" = x11 && test "${HAVE_CARBON}" = yes; then
9514 if test "${with_carbon+set}" != set \
9515 && test "${carbon_appdir_x+set}" != set; then
9516 for var in with_x with_x_toolkit with_xim \
9517 with_xpm with_jpeg with_tiff with_gif with_png; do
9518 if eval test \"\${$var+set}\" = set; then
9519 HAVE_CARBON=no
9520 break
9522 done
9525 if test "${HAVE_CARBON}" = yes; then
9526 window_system=mac
9529 case "${window_system}" in
9530 x11 )
9531 HAVE_X_WINDOWS=yes
9532 HAVE_X11=yes
9533 case "${with_x_toolkit}" in
9534 athena | lucid ) USE_X_TOOLKIT=LUCID ;;
9535 motif ) USE_X_TOOLKIT=MOTIF ;;
9536 gtk ) with_gtk=yes
9537 USE_X_TOOLKIT=none ;;
9538 no ) USE_X_TOOLKIT=none ;;
9539 * ) USE_X_TOOLKIT=maybe ;;
9540 esac
9542 mac | none )
9543 HAVE_X_WINDOWS=no
9544 HAVE_X11=no
9545 USE_X_TOOLKIT=none
9547 esac
9549 if test "$window_system" = none && test "X$with_x" != "Xno"; then
9550 # Extract the first word of "X", so it can be a program name with args.
9551 set dummy X; ac_word=$2
9552 { echo "$as_me:$LINENO: checking for $ac_word" >&5
9553 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
9554 if test "${ac_cv_prog_HAVE_XSERVER+set}" = set; then
9555 echo $ECHO_N "(cached) $ECHO_C" >&6
9556 else
9557 if test -n "$HAVE_XSERVER"; then
9558 ac_cv_prog_HAVE_XSERVER="$HAVE_XSERVER" # Let the user override the test.
9559 else
9560 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9561 for as_dir in $PATH
9563 IFS=$as_save_IFS
9564 test -z "$as_dir" && as_dir=.
9565 for ac_exec_ext in '' $ac_executable_extensions; do
9566 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9567 ac_cv_prog_HAVE_XSERVER="true"
9568 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
9569 break 2
9571 done
9572 done
9573 IFS=$as_save_IFS
9575 test -z "$ac_cv_prog_HAVE_XSERVER" && ac_cv_prog_HAVE_XSERVER="false"
9578 HAVE_XSERVER=$ac_cv_prog_HAVE_XSERVER
9579 if test -n "$HAVE_XSERVER"; then
9580 { echo "$as_me:$LINENO: result: $HAVE_XSERVER" >&5
9581 echo "${ECHO_T}$HAVE_XSERVER" >&6; }
9582 else
9583 { echo "$as_me:$LINENO: result: no" >&5
9584 echo "${ECHO_T}no" >&6; }
9588 if test "$HAVE_XSERVER" = true ||
9589 test -n "$DISPLAY" ||
9590 test "`echo /usr/lib/libX11.*`" != "/usr/lib/libX11.*"; then
9591 { { echo "$as_me:$LINENO: error: You seem to be running X, but no X development libraries
9592 were found. You should install the relevant development files for X
9593 and for the toolkit you want, such as Gtk+, Lesstif or Motif. Also make
9594 sure you have development files for image handling, i.e.
9595 tiff, gif, jpeg, png and xpm.
9596 If you are sure you want Emacs compiled without X window support, pass
9597 --without-x
9598 to configure." >&5
9599 echo "$as_me: error: You seem to be running X, but no X development libraries
9600 were found. You should install the relevant development files for X
9601 and for the toolkit you want, such as Gtk+, Lesstif or Motif. Also make
9602 sure you have development files for image handling, i.e.
9603 tiff, gif, jpeg, png and xpm.
9604 If you are sure you want Emacs compiled without X window support, pass
9605 --without-x
9606 to configure." >&2;}
9607 { (exit 1); exit 1; }; }
9611 ### If we're using X11, we should use the X menu package.
9612 HAVE_MENUS=no
9613 case ${HAVE_X11} in
9614 yes ) HAVE_MENUS=yes ;;
9615 esac
9617 ### Compute the unexec source name from the object name.
9618 UNEXEC_SRC="`echo ${unexec} | sed 's/\.o/.c/'`"
9620 # Do the opsystem or machine files prohibit the use of the GNU malloc?
9621 # Assume not, until told otherwise.
9622 GNU_MALLOC=yes
9623 doug_lea_malloc=yes
9624 { echo "$as_me:$LINENO: checking for malloc_get_state" >&5
9625 echo $ECHO_N "checking for malloc_get_state... $ECHO_C" >&6; }
9626 if test "${ac_cv_func_malloc_get_state+set}" = set; then
9627 echo $ECHO_N "(cached) $ECHO_C" >&6
9628 else
9629 cat >conftest.$ac_ext <<_ACEOF
9630 /* confdefs.h. */
9631 _ACEOF
9632 cat confdefs.h >>conftest.$ac_ext
9633 cat >>conftest.$ac_ext <<_ACEOF
9634 /* end confdefs.h. */
9635 /* Define malloc_get_state to an innocuous variant, in case <limits.h> declares malloc_get_state.
9636 For example, HP-UX 11i <limits.h> declares gettimeofday. */
9637 #define malloc_get_state innocuous_malloc_get_state
9639 /* System header to define __stub macros and hopefully few prototypes,
9640 which can conflict with char malloc_get_state (); below.
9641 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
9642 <limits.h> exists even on freestanding compilers. */
9644 #ifdef __STDC__
9645 # include <limits.h>
9646 #else
9647 # include <assert.h>
9648 #endif
9650 #undef malloc_get_state
9652 /* Override any GCC internal prototype to avoid an error.
9653 Use char because int might match the return type of a GCC
9654 builtin and then its argument prototype would still apply. */
9655 #ifdef __cplusplus
9656 extern "C"
9657 #endif
9658 char malloc_get_state ();
9659 /* The GNU C library defines this for functions which it implements
9660 to always fail with ENOSYS. Some functions are actually named
9661 something starting with __ and the normal name is an alias. */
9662 #if defined __stub_malloc_get_state || defined __stub___malloc_get_state
9663 choke me
9664 #endif
9667 main ()
9669 return malloc_get_state ();
9671 return 0;
9673 _ACEOF
9674 rm -f conftest.$ac_objext conftest$ac_exeext
9675 if { (ac_try="$ac_link"
9676 case "(($ac_try" in
9677 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9678 *) ac_try_echo=$ac_try;;
9679 esac
9680 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9681 (eval "$ac_link") 2>conftest.er1
9682 ac_status=$?
9683 grep -v '^ *+' conftest.er1 >conftest.err
9684 rm -f conftest.er1
9685 cat conftest.err >&5
9686 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9687 (exit $ac_status); } && {
9688 test -z "$ac_c_werror_flag" ||
9689 test ! -s conftest.err
9690 } && test -s conftest$ac_exeext &&
9691 $as_test_x conftest$ac_exeext; then
9692 ac_cv_func_malloc_get_state=yes
9693 else
9694 echo "$as_me: failed program was:" >&5
9695 sed 's/^/| /' conftest.$ac_ext >&5
9697 ac_cv_func_malloc_get_state=no
9700 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
9701 conftest$ac_exeext conftest.$ac_ext
9703 { echo "$as_me:$LINENO: result: $ac_cv_func_malloc_get_state" >&5
9704 echo "${ECHO_T}$ac_cv_func_malloc_get_state" >&6; }
9705 if test $ac_cv_func_malloc_get_state = yes; then
9707 else
9708 doug_lea_malloc=no
9711 { echo "$as_me:$LINENO: checking for malloc_set_state" >&5
9712 echo $ECHO_N "checking for malloc_set_state... $ECHO_C" >&6; }
9713 if test "${ac_cv_func_malloc_set_state+set}" = set; then
9714 echo $ECHO_N "(cached) $ECHO_C" >&6
9715 else
9716 cat >conftest.$ac_ext <<_ACEOF
9717 /* confdefs.h. */
9718 _ACEOF
9719 cat confdefs.h >>conftest.$ac_ext
9720 cat >>conftest.$ac_ext <<_ACEOF
9721 /* end confdefs.h. */
9722 /* Define malloc_set_state to an innocuous variant, in case <limits.h> declares malloc_set_state.
9723 For example, HP-UX 11i <limits.h> declares gettimeofday. */
9724 #define malloc_set_state innocuous_malloc_set_state
9726 /* System header to define __stub macros and hopefully few prototypes,
9727 which can conflict with char malloc_set_state (); below.
9728 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
9729 <limits.h> exists even on freestanding compilers. */
9731 #ifdef __STDC__
9732 # include <limits.h>
9733 #else
9734 # include <assert.h>
9735 #endif
9737 #undef malloc_set_state
9739 /* Override any GCC internal prototype to avoid an error.
9740 Use char because int might match the return type of a GCC
9741 builtin and then its argument prototype would still apply. */
9742 #ifdef __cplusplus
9743 extern "C"
9744 #endif
9745 char malloc_set_state ();
9746 /* The GNU C library defines this for functions which it implements
9747 to always fail with ENOSYS. Some functions are actually named
9748 something starting with __ and the normal name is an alias. */
9749 #if defined __stub_malloc_set_state || defined __stub___malloc_set_state
9750 choke me
9751 #endif
9754 main ()
9756 return malloc_set_state ();
9758 return 0;
9760 _ACEOF
9761 rm -f conftest.$ac_objext conftest$ac_exeext
9762 if { (ac_try="$ac_link"
9763 case "(($ac_try" in
9764 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9765 *) ac_try_echo=$ac_try;;
9766 esac
9767 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9768 (eval "$ac_link") 2>conftest.er1
9769 ac_status=$?
9770 grep -v '^ *+' conftest.er1 >conftest.err
9771 rm -f conftest.er1
9772 cat conftest.err >&5
9773 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9774 (exit $ac_status); } && {
9775 test -z "$ac_c_werror_flag" ||
9776 test ! -s conftest.err
9777 } && test -s conftest$ac_exeext &&
9778 $as_test_x conftest$ac_exeext; then
9779 ac_cv_func_malloc_set_state=yes
9780 else
9781 echo "$as_me: failed program was:" >&5
9782 sed 's/^/| /' conftest.$ac_ext >&5
9784 ac_cv_func_malloc_set_state=no
9787 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
9788 conftest$ac_exeext conftest.$ac_ext
9790 { echo "$as_me:$LINENO: result: $ac_cv_func_malloc_set_state" >&5
9791 echo "${ECHO_T}$ac_cv_func_malloc_set_state" >&6; }
9792 if test $ac_cv_func_malloc_set_state = yes; then
9794 else
9795 doug_lea_malloc=no
9798 { echo "$as_me:$LINENO: checking whether __after_morecore_hook exists" >&5
9799 echo $ECHO_N "checking whether __after_morecore_hook exists... $ECHO_C" >&6; }
9800 if test "${emacs_cv_var___after_morecore_hook+set}" = set; then
9801 echo $ECHO_N "(cached) $ECHO_C" >&6
9802 else
9803 cat >conftest.$ac_ext <<_ACEOF
9804 /* confdefs.h. */
9805 _ACEOF
9806 cat confdefs.h >>conftest.$ac_ext
9807 cat >>conftest.$ac_ext <<_ACEOF
9808 /* end confdefs.h. */
9809 extern void (* __after_morecore_hook)();
9811 main ()
9813 __after_morecore_hook = 0
9815 return 0;
9817 _ACEOF
9818 rm -f conftest.$ac_objext conftest$ac_exeext
9819 if { (ac_try="$ac_link"
9820 case "(($ac_try" in
9821 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9822 *) ac_try_echo=$ac_try;;
9823 esac
9824 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9825 (eval "$ac_link") 2>conftest.er1
9826 ac_status=$?
9827 grep -v '^ *+' conftest.er1 >conftest.err
9828 rm -f conftest.er1
9829 cat conftest.err >&5
9830 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9831 (exit $ac_status); } && {
9832 test -z "$ac_c_werror_flag" ||
9833 test ! -s conftest.err
9834 } && test -s conftest$ac_exeext &&
9835 $as_test_x conftest$ac_exeext; then
9836 emacs_cv_var___after_morecore_hook=yes
9837 else
9838 echo "$as_me: failed program was:" >&5
9839 sed 's/^/| /' conftest.$ac_ext >&5
9841 emacs_cv_var___after_morecore_hook=no
9844 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
9845 conftest$ac_exeext conftest.$ac_ext
9847 { echo "$as_me:$LINENO: result: $emacs_cv_var___after_morecore_hook" >&5
9848 echo "${ECHO_T}$emacs_cv_var___after_morecore_hook" >&6; }
9849 if test $emacs_cv_var___after_morecore_hook = no; then
9850 doug_lea_malloc=no
9852 if test "${system_malloc}" = "yes"; then
9853 GNU_MALLOC=no
9854 GNU_MALLOC_reason="
9855 (The GNU allocators don't work with this system configuration.)"
9857 if test "$doug_lea_malloc" = "yes" ; then
9858 if test "$GNU_MALLOC" = yes ; then
9859 GNU_MALLOC_reason="
9860 (Using Doug Lea's new malloc from the GNU C Library.)"
9863 cat >>confdefs.h <<\_ACEOF
9864 #define DOUG_LEA_MALLOC 1
9865 _ACEOF
9869 if test x"${REL_ALLOC}" = x; then
9870 REL_ALLOC=${GNU_MALLOC}
9876 for ac_header in stdlib.h unistd.h
9878 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
9879 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
9880 { echo "$as_me:$LINENO: checking for $ac_header" >&5
9881 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
9882 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
9883 echo $ECHO_N "(cached) $ECHO_C" >&6
9885 ac_res=`eval echo '${'$as_ac_Header'}'`
9886 { echo "$as_me:$LINENO: result: $ac_res" >&5
9887 echo "${ECHO_T}$ac_res" >&6; }
9888 else
9889 # Is the header compilable?
9890 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
9891 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
9892 cat >conftest.$ac_ext <<_ACEOF
9893 /* confdefs.h. */
9894 _ACEOF
9895 cat confdefs.h >>conftest.$ac_ext
9896 cat >>conftest.$ac_ext <<_ACEOF
9897 /* end confdefs.h. */
9898 $ac_includes_default
9899 #include <$ac_header>
9900 _ACEOF
9901 rm -f conftest.$ac_objext
9902 if { (ac_try="$ac_compile"
9903 case "(($ac_try" in
9904 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9905 *) ac_try_echo=$ac_try;;
9906 esac
9907 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9908 (eval "$ac_compile") 2>conftest.er1
9909 ac_status=$?
9910 grep -v '^ *+' conftest.er1 >conftest.err
9911 rm -f conftest.er1
9912 cat conftest.err >&5
9913 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9914 (exit $ac_status); } && {
9915 test -z "$ac_c_werror_flag" ||
9916 test ! -s conftest.err
9917 } && test -s conftest.$ac_objext; then
9918 ac_header_compiler=yes
9919 else
9920 echo "$as_me: failed program was:" >&5
9921 sed 's/^/| /' conftest.$ac_ext >&5
9923 ac_header_compiler=no
9926 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9927 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
9928 echo "${ECHO_T}$ac_header_compiler" >&6; }
9930 # Is the header present?
9931 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
9932 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
9933 cat >conftest.$ac_ext <<_ACEOF
9934 /* confdefs.h. */
9935 _ACEOF
9936 cat confdefs.h >>conftest.$ac_ext
9937 cat >>conftest.$ac_ext <<_ACEOF
9938 /* end confdefs.h. */
9939 #include <$ac_header>
9940 _ACEOF
9941 if { (ac_try="$ac_cpp conftest.$ac_ext"
9942 case "(($ac_try" in
9943 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9944 *) ac_try_echo=$ac_try;;
9945 esac
9946 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9947 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
9948 ac_status=$?
9949 grep -v '^ *+' conftest.er1 >conftest.err
9950 rm -f conftest.er1
9951 cat conftest.err >&5
9952 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9953 (exit $ac_status); } >/dev/null && {
9954 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
9955 test ! -s conftest.err
9956 }; then
9957 ac_header_preproc=yes
9958 else
9959 echo "$as_me: failed program was:" >&5
9960 sed 's/^/| /' conftest.$ac_ext >&5
9962 ac_header_preproc=no
9965 rm -f conftest.err conftest.$ac_ext
9966 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
9967 echo "${ECHO_T}$ac_header_preproc" >&6; }
9969 # So? What about this header?
9970 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
9971 yes:no: )
9972 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
9973 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
9974 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
9975 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
9976 ac_header_preproc=yes
9978 no:yes:* )
9979 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
9980 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
9981 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
9982 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
9983 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
9984 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
9985 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
9986 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
9987 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
9988 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
9989 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
9990 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
9993 esac
9994 { echo "$as_me:$LINENO: checking for $ac_header" >&5
9995 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
9996 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
9997 echo $ECHO_N "(cached) $ECHO_C" >&6
9998 else
9999 eval "$as_ac_Header=\$ac_header_preproc"
10001 ac_res=`eval echo '${'$as_ac_Header'}'`
10002 { echo "$as_me:$LINENO: result: $ac_res" >&5
10003 echo "${ECHO_T}$ac_res" >&6; }
10006 if test `eval echo '${'$as_ac_Header'}'` = yes; then
10007 cat >>confdefs.h <<_ACEOF
10008 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
10009 _ACEOF
10013 done
10016 for ac_func in getpagesize
10018 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
10019 { echo "$as_me:$LINENO: checking for $ac_func" >&5
10020 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
10021 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
10022 echo $ECHO_N "(cached) $ECHO_C" >&6
10023 else
10024 cat >conftest.$ac_ext <<_ACEOF
10025 /* confdefs.h. */
10026 _ACEOF
10027 cat confdefs.h >>conftest.$ac_ext
10028 cat >>conftest.$ac_ext <<_ACEOF
10029 /* end confdefs.h. */
10030 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
10031 For example, HP-UX 11i <limits.h> declares gettimeofday. */
10032 #define $ac_func innocuous_$ac_func
10034 /* System header to define __stub macros and hopefully few prototypes,
10035 which can conflict with char $ac_func (); below.
10036 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
10037 <limits.h> exists even on freestanding compilers. */
10039 #ifdef __STDC__
10040 # include <limits.h>
10041 #else
10042 # include <assert.h>
10043 #endif
10045 #undef $ac_func
10047 /* Override any GCC internal prototype to avoid an error.
10048 Use char because int might match the return type of a GCC
10049 builtin and then its argument prototype would still apply. */
10050 #ifdef __cplusplus
10051 extern "C"
10052 #endif
10053 char $ac_func ();
10054 /* The GNU C library defines this for functions which it implements
10055 to always fail with ENOSYS. Some functions are actually named
10056 something starting with __ and the normal name is an alias. */
10057 #if defined __stub_$ac_func || defined __stub___$ac_func
10058 choke me
10059 #endif
10062 main ()
10064 return $ac_func ();
10066 return 0;
10068 _ACEOF
10069 rm -f conftest.$ac_objext conftest$ac_exeext
10070 if { (ac_try="$ac_link"
10071 case "(($ac_try" in
10072 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10073 *) ac_try_echo=$ac_try;;
10074 esac
10075 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10076 (eval "$ac_link") 2>conftest.er1
10077 ac_status=$?
10078 grep -v '^ *+' conftest.er1 >conftest.err
10079 rm -f conftest.er1
10080 cat conftest.err >&5
10081 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10082 (exit $ac_status); } && {
10083 test -z "$ac_c_werror_flag" ||
10084 test ! -s conftest.err
10085 } && test -s conftest$ac_exeext &&
10086 $as_test_x conftest$ac_exeext; then
10087 eval "$as_ac_var=yes"
10088 else
10089 echo "$as_me: failed program was:" >&5
10090 sed 's/^/| /' conftest.$ac_ext >&5
10092 eval "$as_ac_var=no"
10095 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
10096 conftest$ac_exeext conftest.$ac_ext
10098 ac_res=`eval echo '${'$as_ac_var'}'`
10099 { echo "$as_me:$LINENO: result: $ac_res" >&5
10100 echo "${ECHO_T}$ac_res" >&6; }
10101 if test `eval echo '${'$as_ac_var'}'` = yes; then
10102 cat >>confdefs.h <<_ACEOF
10103 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
10104 _ACEOF
10107 done
10109 { echo "$as_me:$LINENO: checking for working mmap" >&5
10110 echo $ECHO_N "checking for working mmap... $ECHO_C" >&6; }
10111 if test "${ac_cv_func_mmap_fixed_mapped+set}" = set; then
10112 echo $ECHO_N "(cached) $ECHO_C" >&6
10113 else
10114 if test "$cross_compiling" = yes; then
10115 ac_cv_func_mmap_fixed_mapped=no
10116 else
10117 cat >conftest.$ac_ext <<_ACEOF
10118 /* confdefs.h. */
10119 _ACEOF
10120 cat confdefs.h >>conftest.$ac_ext
10121 cat >>conftest.$ac_ext <<_ACEOF
10122 /* end confdefs.h. */
10123 $ac_includes_default
10124 /* malloc might have been renamed as rpl_malloc. */
10125 #undef malloc
10127 /* Thanks to Mike Haertel and Jim Avera for this test.
10128 Here is a matrix of mmap possibilities:
10129 mmap private not fixed
10130 mmap private fixed at somewhere currently unmapped
10131 mmap private fixed at somewhere already mapped
10132 mmap shared not fixed
10133 mmap shared fixed at somewhere currently unmapped
10134 mmap shared fixed at somewhere already mapped
10135 For private mappings, we should verify that changes cannot be read()
10136 back from the file, nor mmap's back from the file at a different
10137 address. (There have been systems where private was not correctly
10138 implemented like the infamous i386 svr4.0, and systems where the
10139 VM page cache was not coherent with the file system buffer cache
10140 like early versions of FreeBSD and possibly contemporary NetBSD.)
10141 For shared mappings, we should conversely verify that changes get
10142 propagated back to all the places they're supposed to be.
10144 Grep wants private fixed already mapped.
10145 The main things grep needs to know about mmap are:
10146 * does it exist and is it safe to write into the mmap'd area
10147 * how to use it (BSD variants) */
10149 #include <fcntl.h>
10150 #include <sys/mman.h>
10152 #if !defined STDC_HEADERS && !defined HAVE_STDLIB_H
10153 char *malloc ();
10154 #endif
10156 /* This mess was copied from the GNU getpagesize.h. */
10157 #ifndef HAVE_GETPAGESIZE
10158 /* Assume that all systems that can run configure have sys/param.h. */
10159 # ifndef HAVE_SYS_PARAM_H
10160 # define HAVE_SYS_PARAM_H 1
10161 # endif
10163 # ifdef _SC_PAGESIZE
10164 # define getpagesize() sysconf(_SC_PAGESIZE)
10165 # else /* no _SC_PAGESIZE */
10166 # ifdef HAVE_SYS_PARAM_H
10167 # include <sys/param.h>
10168 # ifdef EXEC_PAGESIZE
10169 # define getpagesize() EXEC_PAGESIZE
10170 # else /* no EXEC_PAGESIZE */
10171 # ifdef NBPG
10172 # define getpagesize() NBPG * CLSIZE
10173 # ifndef CLSIZE
10174 # define CLSIZE 1
10175 # endif /* no CLSIZE */
10176 # else /* no NBPG */
10177 # ifdef NBPC
10178 # define getpagesize() NBPC
10179 # else /* no NBPC */
10180 # ifdef PAGESIZE
10181 # define getpagesize() PAGESIZE
10182 # endif /* PAGESIZE */
10183 # endif /* no NBPC */
10184 # endif /* no NBPG */
10185 # endif /* no EXEC_PAGESIZE */
10186 # else /* no HAVE_SYS_PARAM_H */
10187 # define getpagesize() 8192 /* punt totally */
10188 # endif /* no HAVE_SYS_PARAM_H */
10189 # endif /* no _SC_PAGESIZE */
10191 #endif /* no HAVE_GETPAGESIZE */
10194 main ()
10196 char *data, *data2, *data3;
10197 int i, pagesize;
10198 int fd;
10200 pagesize = getpagesize ();
10202 /* First, make a file with some known garbage in it. */
10203 data = (char *) malloc (pagesize);
10204 if (!data)
10205 return 1;
10206 for (i = 0; i < pagesize; ++i)
10207 *(data + i) = rand ();
10208 umask (0);
10209 fd = creat ("conftest.mmap", 0600);
10210 if (fd < 0)
10211 return 1;
10212 if (write (fd, data, pagesize) != pagesize)
10213 return 1;
10214 close (fd);
10216 /* Next, try to mmap the file at a fixed address which already has
10217 something else allocated at it. If we can, also make sure that
10218 we see the same garbage. */
10219 fd = open ("conftest.mmap", O_RDWR);
10220 if (fd < 0)
10221 return 1;
10222 data2 = (char *) malloc (2 * pagesize);
10223 if (!data2)
10224 return 1;
10225 data2 += (pagesize - ((long int) data2 & (pagesize - 1))) & (pagesize - 1);
10226 if (data2 != mmap (data2, pagesize, PROT_READ | PROT_WRITE,
10227 MAP_PRIVATE | MAP_FIXED, fd, 0L))
10228 return 1;
10229 for (i = 0; i < pagesize; ++i)
10230 if (*(data + i) != *(data2 + i))
10231 return 1;
10233 /* Finally, make sure that changes to the mapped area do not
10234 percolate back to the file as seen by read(). (This is a bug on
10235 some variants of i386 svr4.0.) */
10236 for (i = 0; i < pagesize; ++i)
10237 *(data2 + i) = *(data2 + i) + 1;
10238 data3 = (char *) malloc (pagesize);
10239 if (!data3)
10240 return 1;
10241 if (read (fd, data3, pagesize) != pagesize)
10242 return 1;
10243 for (i = 0; i < pagesize; ++i)
10244 if (*(data + i) != *(data3 + i))
10245 return 1;
10246 close (fd);
10247 return 0;
10249 _ACEOF
10250 rm -f conftest$ac_exeext
10251 if { (ac_try="$ac_link"
10252 case "(($ac_try" in
10253 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10254 *) ac_try_echo=$ac_try;;
10255 esac
10256 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10257 (eval "$ac_link") 2>&5
10258 ac_status=$?
10259 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10260 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
10261 { (case "(($ac_try" in
10262 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10263 *) ac_try_echo=$ac_try;;
10264 esac
10265 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10266 (eval "$ac_try") 2>&5
10267 ac_status=$?
10268 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10269 (exit $ac_status); }; }; then
10270 ac_cv_func_mmap_fixed_mapped=yes
10271 else
10272 echo "$as_me: program exited with status $ac_status" >&5
10273 echo "$as_me: failed program was:" >&5
10274 sed 's/^/| /' conftest.$ac_ext >&5
10276 ( exit $ac_status )
10277 ac_cv_func_mmap_fixed_mapped=no
10279 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
10284 { echo "$as_me:$LINENO: result: $ac_cv_func_mmap_fixed_mapped" >&5
10285 echo "${ECHO_T}$ac_cv_func_mmap_fixed_mapped" >&6; }
10286 if test $ac_cv_func_mmap_fixed_mapped = yes; then
10288 cat >>confdefs.h <<\_ACEOF
10289 #define HAVE_MMAP 1
10290 _ACEOF
10293 rm -f conftest.mmap
10295 if test $use_mmap_for_buffers = yes; then
10296 REL_ALLOC=no
10299 LIBS="$libsrc_libs $LIBS"
10302 { echo "$as_me:$LINENO: checking for dnet_ntoa in -ldnet" >&5
10303 echo $ECHO_N "checking for dnet_ntoa in -ldnet... $ECHO_C" >&6; }
10304 if test "${ac_cv_lib_dnet_dnet_ntoa+set}" = set; then
10305 echo $ECHO_N "(cached) $ECHO_C" >&6
10306 else
10307 ac_check_lib_save_LIBS=$LIBS
10308 LIBS="-ldnet $LIBS"
10309 cat >conftest.$ac_ext <<_ACEOF
10310 /* confdefs.h. */
10311 _ACEOF
10312 cat confdefs.h >>conftest.$ac_ext
10313 cat >>conftest.$ac_ext <<_ACEOF
10314 /* end confdefs.h. */
10316 /* Override any GCC internal prototype to avoid an error.
10317 Use char because int might match the return type of a GCC
10318 builtin and then its argument prototype would still apply. */
10319 #ifdef __cplusplus
10320 extern "C"
10321 #endif
10322 char dnet_ntoa ();
10324 main ()
10326 return dnet_ntoa ();
10328 return 0;
10330 _ACEOF
10331 rm -f conftest.$ac_objext conftest$ac_exeext
10332 if { (ac_try="$ac_link"
10333 case "(($ac_try" in
10334 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10335 *) ac_try_echo=$ac_try;;
10336 esac
10337 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10338 (eval "$ac_link") 2>conftest.er1
10339 ac_status=$?
10340 grep -v '^ *+' conftest.er1 >conftest.err
10341 rm -f conftest.er1
10342 cat conftest.err >&5
10343 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10344 (exit $ac_status); } && {
10345 test -z "$ac_c_werror_flag" ||
10346 test ! -s conftest.err
10347 } && test -s conftest$ac_exeext &&
10348 $as_test_x conftest$ac_exeext; then
10349 ac_cv_lib_dnet_dnet_ntoa=yes
10350 else
10351 echo "$as_me: failed program was:" >&5
10352 sed 's/^/| /' conftest.$ac_ext >&5
10354 ac_cv_lib_dnet_dnet_ntoa=no
10357 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
10358 conftest$ac_exeext conftest.$ac_ext
10359 LIBS=$ac_check_lib_save_LIBS
10361 { echo "$as_me:$LINENO: result: $ac_cv_lib_dnet_dnet_ntoa" >&5
10362 echo "${ECHO_T}$ac_cv_lib_dnet_dnet_ntoa" >&6; }
10363 if test $ac_cv_lib_dnet_dnet_ntoa = yes; then
10364 cat >>confdefs.h <<_ACEOF
10365 #define HAVE_LIBDNET 1
10366 _ACEOF
10368 LIBS="-ldnet $LIBS"
10373 { echo "$as_me:$LINENO: checking for main in -lXbsd" >&5
10374 echo $ECHO_N "checking for main in -lXbsd... $ECHO_C" >&6; }
10375 if test "${ac_cv_lib_Xbsd_main+set}" = set; then
10376 echo $ECHO_N "(cached) $ECHO_C" >&6
10377 else
10378 ac_check_lib_save_LIBS=$LIBS
10379 LIBS="-lXbsd $LIBS"
10380 cat >conftest.$ac_ext <<_ACEOF
10381 /* confdefs.h. */
10382 _ACEOF
10383 cat confdefs.h >>conftest.$ac_ext
10384 cat >>conftest.$ac_ext <<_ACEOF
10385 /* end confdefs.h. */
10389 main ()
10391 return main ();
10393 return 0;
10395 _ACEOF
10396 rm -f conftest.$ac_objext conftest$ac_exeext
10397 if { (ac_try="$ac_link"
10398 case "(($ac_try" in
10399 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10400 *) ac_try_echo=$ac_try;;
10401 esac
10402 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10403 (eval "$ac_link") 2>conftest.er1
10404 ac_status=$?
10405 grep -v '^ *+' conftest.er1 >conftest.err
10406 rm -f conftest.er1
10407 cat conftest.err >&5
10408 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10409 (exit $ac_status); } && {
10410 test -z "$ac_c_werror_flag" ||
10411 test ! -s conftest.err
10412 } && test -s conftest$ac_exeext &&
10413 $as_test_x conftest$ac_exeext; then
10414 ac_cv_lib_Xbsd_main=yes
10415 else
10416 echo "$as_me: failed program was:" >&5
10417 sed 's/^/| /' conftest.$ac_ext >&5
10419 ac_cv_lib_Xbsd_main=no
10422 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
10423 conftest$ac_exeext conftest.$ac_ext
10424 LIBS=$ac_check_lib_save_LIBS
10426 { echo "$as_me:$LINENO: result: $ac_cv_lib_Xbsd_main" >&5
10427 echo "${ECHO_T}$ac_cv_lib_Xbsd_main" >&6; }
10428 if test $ac_cv_lib_Xbsd_main = yes; then
10429 LD_SWITCH_X_SITE="$LD_SWITCH_X_SITE -lXbsd"
10434 { echo "$as_me:$LINENO: checking for cma_open in -lpthreads" >&5
10435 echo $ECHO_N "checking for cma_open in -lpthreads... $ECHO_C" >&6; }
10436 if test "${ac_cv_lib_pthreads_cma_open+set}" = set; then
10437 echo $ECHO_N "(cached) $ECHO_C" >&6
10438 else
10439 ac_check_lib_save_LIBS=$LIBS
10440 LIBS="-lpthreads $LIBS"
10441 cat >conftest.$ac_ext <<_ACEOF
10442 /* confdefs.h. */
10443 _ACEOF
10444 cat confdefs.h >>conftest.$ac_ext
10445 cat >>conftest.$ac_ext <<_ACEOF
10446 /* end confdefs.h. */
10448 /* Override any GCC internal prototype to avoid an error.
10449 Use char because int might match the return type of a GCC
10450 builtin and then its argument prototype would still apply. */
10451 #ifdef __cplusplus
10452 extern "C"
10453 #endif
10454 char cma_open ();
10456 main ()
10458 return cma_open ();
10460 return 0;
10462 _ACEOF
10463 rm -f conftest.$ac_objext conftest$ac_exeext
10464 if { (ac_try="$ac_link"
10465 case "(($ac_try" in
10466 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10467 *) ac_try_echo=$ac_try;;
10468 esac
10469 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10470 (eval "$ac_link") 2>conftest.er1
10471 ac_status=$?
10472 grep -v '^ *+' conftest.er1 >conftest.err
10473 rm -f conftest.er1
10474 cat conftest.err >&5
10475 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10476 (exit $ac_status); } && {
10477 test -z "$ac_c_werror_flag" ||
10478 test ! -s conftest.err
10479 } && test -s conftest$ac_exeext &&
10480 $as_test_x conftest$ac_exeext; then
10481 ac_cv_lib_pthreads_cma_open=yes
10482 else
10483 echo "$as_me: failed program was:" >&5
10484 sed 's/^/| /' conftest.$ac_ext >&5
10486 ac_cv_lib_pthreads_cma_open=no
10489 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
10490 conftest$ac_exeext conftest.$ac_ext
10491 LIBS=$ac_check_lib_save_LIBS
10493 { echo "$as_me:$LINENO: result: $ac_cv_lib_pthreads_cma_open" >&5
10494 echo "${ECHO_T}$ac_cv_lib_pthreads_cma_open" >&6; }
10495 if test $ac_cv_lib_pthreads_cma_open = yes; then
10496 cat >>confdefs.h <<_ACEOF
10497 #define HAVE_LIBPTHREADS 1
10498 _ACEOF
10500 LIBS="-lpthreads $LIBS"
10506 case ${host_os} in
10507 aix*)
10508 { echo "$as_me:$LINENO: checking for -bbigtoc option" >&5
10509 echo $ECHO_N "checking for -bbigtoc option... $ECHO_C" >&6; }
10510 if test "${gdb_cv_bigtoc+set}" = set; then
10511 echo $ECHO_N "(cached) $ECHO_C" >&6
10512 else
10514 case $GCC in
10515 yes) gdb_cv_bigtoc=-Wl,-bbigtoc ;;
10516 *) gdb_cv_bigtoc=-bbigtoc ;;
10517 esac
10519 LDFLAGS=$LDFLAGS\ $gdb_cv_bigtoc
10520 cat >conftest.$ac_ext <<_ACEOF
10521 /* confdefs.h. */
10522 _ACEOF
10523 cat confdefs.h >>conftest.$ac_ext
10524 cat >>conftest.$ac_ext <<_ACEOF
10525 /* end confdefs.h. */
10528 main ()
10530 int i;
10532 return 0;
10534 _ACEOF
10535 rm -f conftest.$ac_objext conftest$ac_exeext
10536 if { (ac_try="$ac_link"
10537 case "(($ac_try" in
10538 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10539 *) ac_try_echo=$ac_try;;
10540 esac
10541 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10542 (eval "$ac_link") 2>conftest.er1
10543 ac_status=$?
10544 grep -v '^ *+' conftest.er1 >conftest.err
10545 rm -f conftest.er1
10546 cat conftest.err >&5
10547 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10548 (exit $ac_status); } && {
10549 test -z "$ac_c_werror_flag" ||
10550 test ! -s conftest.err
10551 } && test -s conftest$ac_exeext &&
10552 $as_test_x conftest$ac_exeext; then
10554 else
10555 echo "$as_me: failed program was:" >&5
10556 sed 's/^/| /' conftest.$ac_ext >&5
10558 gdb_cv_bigtoc=
10561 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
10562 conftest$ac_exeext conftest.$ac_ext
10565 { echo "$as_me:$LINENO: result: $gdb_cv_bigtoc" >&5
10566 echo "${ECHO_T}$gdb_cv_bigtoc" >&6; }
10568 esac
10570 # Change CFLAGS and CPPFLAGS temporarily so that C_SWITCH_X_SITE gets
10571 # used for the tests that follow. We set them back to REAL_CFLAGS and
10572 # REAL_CPPFLAGS later on.
10574 REAL_CPPFLAGS="$CPPFLAGS"
10576 if test "${HAVE_X11}" = "yes"; then
10577 DEFS="$C_SWITCH_X_SITE $DEFS"
10578 LDFLAGS="$LDFLAGS $LD_SWITCH_X_SITE"
10579 LIBS="$LIBX $LIBS"
10580 CFLAGS="$C_SWITCH_X_SITE $CFLAGS"
10581 CPPFLAGS="$C_SWITCH_X_SITE $CPPFLAGS"
10583 # On Solaris, arrange for LD_RUN_PATH to point to the X libraries for tests.
10584 # This is handled by LD_SWITCH_X_SITE_AUX during the real build,
10585 # but it's more convenient here to set LD_RUN_PATH
10586 # since this also works on hosts that don't understand LD_SWITCH_X_SITE_AUX.
10587 if test "${x_libraries}" != NONE && test -n "${x_libraries}"; then
10588 LD_RUN_PATH=$x_libraries${LD_RUN_PATH+:}$LD_RUN_PATH
10589 export LD_RUN_PATH
10592 if test "${opsys}" = "gnu-linux"; then
10593 { echo "$as_me:$LINENO: checking whether X on GNU/Linux needs -b to link" >&5
10594 echo $ECHO_N "checking whether X on GNU/Linux needs -b to link... $ECHO_C" >&6; }
10595 cat >conftest.$ac_ext <<_ACEOF
10596 /* confdefs.h. */
10597 _ACEOF
10598 cat confdefs.h >>conftest.$ac_ext
10599 cat >>conftest.$ac_ext <<_ACEOF
10600 /* end confdefs.h. */
10603 main ()
10605 XOpenDisplay ("foo");
10607 return 0;
10609 _ACEOF
10610 rm -f conftest.$ac_objext conftest$ac_exeext
10611 if { (ac_try="$ac_link"
10612 case "(($ac_try" in
10613 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10614 *) ac_try_echo=$ac_try;;
10615 esac
10616 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10617 (eval "$ac_link") 2>conftest.er1
10618 ac_status=$?
10619 grep -v '^ *+' conftest.er1 >conftest.err
10620 rm -f conftest.er1
10621 cat conftest.err >&5
10622 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10623 (exit $ac_status); } && {
10624 test -z "$ac_c_werror_flag" ||
10625 test ! -s conftest.err
10626 } && test -s conftest$ac_exeext &&
10627 $as_test_x conftest$ac_exeext; then
10628 xlinux_first_failure=no
10629 else
10630 echo "$as_me: failed program was:" >&5
10631 sed 's/^/| /' conftest.$ac_ext >&5
10633 xlinux_first_failure=yes
10636 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
10637 conftest$ac_exeext conftest.$ac_ext
10638 if test "${xlinux_first_failure}" = "yes"; then
10639 OLD_LD_SWITCH_X_SITE="$LD_SWITCH_X_SITE"
10640 OLD_C_SWITCH_X_SITE="$C_SWITCH_X_SITE"
10641 OLD_CPPFLAGS="$CPPFLAGS"
10642 OLD_LIBS="$LIBS"
10643 LD_SWITCH_X_SITE="$LD_SWITCH_X_SITE -b i486-linuxaout"
10644 C_SWITCH_X_SITE="$C_SWITCH_X_SITE -b i486-linuxaout"
10645 CPPFLAGS="$CPPFLAGS -b i486-linuxaout"
10646 LIBS="$LIBS -b i486-linuxaout"
10647 cat >conftest.$ac_ext <<_ACEOF
10648 /* confdefs.h. */
10649 _ACEOF
10650 cat confdefs.h >>conftest.$ac_ext
10651 cat >>conftest.$ac_ext <<_ACEOF
10652 /* end confdefs.h. */
10655 main ()
10657 XOpenDisplay ("foo");
10659 return 0;
10661 _ACEOF
10662 rm -f conftest.$ac_objext conftest$ac_exeext
10663 if { (ac_try="$ac_link"
10664 case "(($ac_try" in
10665 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10666 *) ac_try_echo=$ac_try;;
10667 esac
10668 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10669 (eval "$ac_link") 2>conftest.er1
10670 ac_status=$?
10671 grep -v '^ *+' conftest.er1 >conftest.err
10672 rm -f conftest.er1
10673 cat conftest.err >&5
10674 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10675 (exit $ac_status); } && {
10676 test -z "$ac_c_werror_flag" ||
10677 test ! -s conftest.err
10678 } && test -s conftest$ac_exeext &&
10679 $as_test_x conftest$ac_exeext; then
10680 xlinux_second_failure=no
10681 else
10682 echo "$as_me: failed program was:" >&5
10683 sed 's/^/| /' conftest.$ac_ext >&5
10685 xlinux_second_failure=yes
10688 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
10689 conftest$ac_exeext conftest.$ac_ext
10690 if test "${xlinux_second_failure}" = "yes"; then
10691 # If we get the same failure with -b, there is no use adding -b.
10692 # So take it out. This plays safe.
10693 LD_SWITCH_X_SITE="$OLD_LD_SWITCH_X_SITE"
10694 C_SWITCH_X_SITE="$OLD_C_SWITCH_X_SITE"
10695 CPPFLAGS="$OLD_CPPFLAGS"
10696 LIBS="$OLD_LIBS"
10697 { echo "$as_me:$LINENO: result: no" >&5
10698 echo "${ECHO_T}no" >&6; }
10699 else
10700 { echo "$as_me:$LINENO: result: yes" >&5
10701 echo "${ECHO_T}yes" >&6; }
10703 else
10704 { echo "$as_me:$LINENO: result: no" >&5
10705 echo "${ECHO_T}no" >&6; }
10709 # Reportedly, some broken Solaris systems have XKBlib.h but are missing
10710 # header files included from there.
10711 { echo "$as_me:$LINENO: checking for Xkb" >&5
10712 echo $ECHO_N "checking for Xkb... $ECHO_C" >&6; }
10713 cat >conftest.$ac_ext <<_ACEOF
10714 /* confdefs.h. */
10715 _ACEOF
10716 cat confdefs.h >>conftest.$ac_ext
10717 cat >>conftest.$ac_ext <<_ACEOF
10718 /* end confdefs.h. */
10719 #include <X11/Xlib.h>
10720 #include <X11/XKBlib.h>
10722 main ()
10724 XkbDescPtr kb = XkbGetKeyboard (0, XkbAllComponentsMask, XkbUseCoreKbd);
10726 return 0;
10728 _ACEOF
10729 rm -f conftest.$ac_objext conftest$ac_exeext
10730 if { (ac_try="$ac_link"
10731 case "(($ac_try" in
10732 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10733 *) ac_try_echo=$ac_try;;
10734 esac
10735 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10736 (eval "$ac_link") 2>conftest.er1
10737 ac_status=$?
10738 grep -v '^ *+' conftest.er1 >conftest.err
10739 rm -f conftest.er1
10740 cat conftest.err >&5
10741 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10742 (exit $ac_status); } && {
10743 test -z "$ac_c_werror_flag" ||
10744 test ! -s conftest.err
10745 } && test -s conftest$ac_exeext &&
10746 $as_test_x conftest$ac_exeext; then
10747 emacs_xkb=yes
10748 else
10749 echo "$as_me: failed program was:" >&5
10750 sed 's/^/| /' conftest.$ac_ext >&5
10752 emacs_xkb=no
10755 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
10756 conftest$ac_exeext conftest.$ac_ext
10757 { echo "$as_me:$LINENO: result: $emacs_xkb" >&5
10758 echo "${ECHO_T}$emacs_xkb" >&6; }
10759 if test $emacs_xkb = yes; then
10761 cat >>confdefs.h <<\_ACEOF
10762 #define HAVE_XKBGETKEYBOARD 1
10763 _ACEOF
10771 for ac_func in XrmSetDatabase XScreenResourceString \
10772 XScreenNumberOfScreen XSetWMProtocols
10774 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
10775 { echo "$as_me:$LINENO: checking for $ac_func" >&5
10776 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
10777 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
10778 echo $ECHO_N "(cached) $ECHO_C" >&6
10779 else
10780 cat >conftest.$ac_ext <<_ACEOF
10781 /* confdefs.h. */
10782 _ACEOF
10783 cat confdefs.h >>conftest.$ac_ext
10784 cat >>conftest.$ac_ext <<_ACEOF
10785 /* end confdefs.h. */
10786 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
10787 For example, HP-UX 11i <limits.h> declares gettimeofday. */
10788 #define $ac_func innocuous_$ac_func
10790 /* System header to define __stub macros and hopefully few prototypes,
10791 which can conflict with char $ac_func (); below.
10792 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
10793 <limits.h> exists even on freestanding compilers. */
10795 #ifdef __STDC__
10796 # include <limits.h>
10797 #else
10798 # include <assert.h>
10799 #endif
10801 #undef $ac_func
10803 /* Override any GCC internal prototype to avoid an error.
10804 Use char because int might match the return type of a GCC
10805 builtin and then its argument prototype would still apply. */
10806 #ifdef __cplusplus
10807 extern "C"
10808 #endif
10809 char $ac_func ();
10810 /* The GNU C library defines this for functions which it implements
10811 to always fail with ENOSYS. Some functions are actually named
10812 something starting with __ and the normal name is an alias. */
10813 #if defined __stub_$ac_func || defined __stub___$ac_func
10814 choke me
10815 #endif
10818 main ()
10820 return $ac_func ();
10822 return 0;
10824 _ACEOF
10825 rm -f conftest.$ac_objext conftest$ac_exeext
10826 if { (ac_try="$ac_link"
10827 case "(($ac_try" in
10828 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10829 *) ac_try_echo=$ac_try;;
10830 esac
10831 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10832 (eval "$ac_link") 2>conftest.er1
10833 ac_status=$?
10834 grep -v '^ *+' conftest.er1 >conftest.err
10835 rm -f conftest.er1
10836 cat conftest.err >&5
10837 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10838 (exit $ac_status); } && {
10839 test -z "$ac_c_werror_flag" ||
10840 test ! -s conftest.err
10841 } && test -s conftest$ac_exeext &&
10842 $as_test_x conftest$ac_exeext; then
10843 eval "$as_ac_var=yes"
10844 else
10845 echo "$as_me: failed program was:" >&5
10846 sed 's/^/| /' conftest.$ac_ext >&5
10848 eval "$as_ac_var=no"
10851 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
10852 conftest$ac_exeext conftest.$ac_ext
10854 ac_res=`eval echo '${'$as_ac_var'}'`
10855 { echo "$as_me:$LINENO: result: $ac_res" >&5
10856 echo "${ECHO_T}$ac_res" >&6; }
10857 if test `eval echo '${'$as_ac_var'}'` = yes; then
10858 cat >>confdefs.h <<_ACEOF
10859 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
10860 _ACEOF
10863 done
10867 if test "${window_system}" = "x11"; then
10868 { echo "$as_me:$LINENO: checking X11 version 6" >&5
10869 echo $ECHO_N "checking X11 version 6... $ECHO_C" >&6; }
10870 if test "${emacs_cv_x11_version_6+set}" = set; then
10871 echo $ECHO_N "(cached) $ECHO_C" >&6
10872 else
10873 cat >conftest.$ac_ext <<_ACEOF
10874 /* confdefs.h. */
10875 _ACEOF
10876 cat confdefs.h >>conftest.$ac_ext
10877 cat >>conftest.$ac_ext <<_ACEOF
10878 /* end confdefs.h. */
10879 #include <X11/Xlib.h>
10881 main ()
10883 #if XlibSpecificationRelease < 6
10884 fail;
10885 #endif
10888 return 0;
10890 _ACEOF
10891 rm -f conftest.$ac_objext conftest$ac_exeext
10892 if { (ac_try="$ac_link"
10893 case "(($ac_try" in
10894 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10895 *) ac_try_echo=$ac_try;;
10896 esac
10897 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10898 (eval "$ac_link") 2>conftest.er1
10899 ac_status=$?
10900 grep -v '^ *+' conftest.er1 >conftest.err
10901 rm -f conftest.er1
10902 cat conftest.err >&5
10903 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10904 (exit $ac_status); } && {
10905 test -z "$ac_c_werror_flag" ||
10906 test ! -s conftest.err
10907 } && test -s conftest$ac_exeext &&
10908 $as_test_x conftest$ac_exeext; then
10909 emacs_cv_x11_version_6=yes
10910 else
10911 echo "$as_me: failed program was:" >&5
10912 sed 's/^/| /' conftest.$ac_ext >&5
10914 emacs_cv_x11_version_6=no
10917 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
10918 conftest$ac_exeext conftest.$ac_ext
10921 if test $emacs_cv_x11_version_6 = yes; then
10922 { echo "$as_me:$LINENO: result: 6 or newer" >&5
10923 echo "${ECHO_T}6 or newer" >&6; }
10925 cat >>confdefs.h <<\_ACEOF
10926 #define HAVE_X11R6 1
10927 _ACEOF
10929 else
10930 { echo "$as_me:$LINENO: result: before 6" >&5
10931 echo "${ECHO_T}before 6" >&6; }
10936 ### Use -lrsvg-2 if available, unless `--with-rsvg=no' is specified.
10937 HAVE_RSVG=no
10938 if test "${HAVE_X11}" = "yes" || test "${HAVE_CARBON}" = "yes"; then
10939 if test "${with_rsvg}" != "no"; then
10940 RSVG_REQUIRED=2.0.0
10941 RSVG_MODULE="librsvg-2.0 >= $RSVG_REQUIRED"
10944 succeeded=no
10946 # Extract the first word of "pkg-config", so it can be a program name with args.
10947 set dummy pkg-config; ac_word=$2
10948 { echo "$as_me:$LINENO: checking for $ac_word" >&5
10949 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
10950 if test "${ac_cv_path_PKG_CONFIG+set}" = set; then
10951 echo $ECHO_N "(cached) $ECHO_C" >&6
10952 else
10953 case $PKG_CONFIG in
10954 [\\/]* | ?:[\\/]*)
10955 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
10958 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10959 for as_dir in $PATH
10961 IFS=$as_save_IFS
10962 test -z "$as_dir" && as_dir=.
10963 for ac_exec_ext in '' $ac_executable_extensions; do
10964 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10965 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
10966 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
10967 break 2
10969 done
10970 done
10971 IFS=$as_save_IFS
10973 test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG="no"
10975 esac
10977 PKG_CONFIG=$ac_cv_path_PKG_CONFIG
10978 if test -n "$PKG_CONFIG"; then
10979 { echo "$as_me:$LINENO: result: $PKG_CONFIG" >&5
10980 echo "${ECHO_T}$PKG_CONFIG" >&6; }
10981 else
10982 { echo "$as_me:$LINENO: result: no" >&5
10983 echo "${ECHO_T}no" >&6; }
10988 if test "$PKG_CONFIG" = "no" ; then
10990 else
10991 PKG_CONFIG_MIN_VERSION=0.9.0
10992 if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
10993 { echo "$as_me:$LINENO: checking for $RSVG_MODULE" >&5
10994 echo $ECHO_N "checking for $RSVG_MODULE... $ECHO_C" >&6; }
10996 if $PKG_CONFIG --exists "$RSVG_MODULE" 2>&5; then
10997 { echo "$as_me:$LINENO: result: yes" >&5
10998 echo "${ECHO_T}yes" >&6; }
10999 succeeded=yes
11001 { echo "$as_me:$LINENO: checking RSVG_CFLAGS" >&5
11002 echo $ECHO_N "checking RSVG_CFLAGS... $ECHO_C" >&6; }
11003 RSVG_CFLAGS=`$PKG_CONFIG --cflags "$RSVG_MODULE"|sed -e 's,///*,/,g'`
11004 { echo "$as_me:$LINENO: result: $RSVG_CFLAGS" >&5
11005 echo "${ECHO_T}$RSVG_CFLAGS" >&6; }
11007 { echo "$as_me:$LINENO: checking RSVG_LIBS" >&5
11008 echo $ECHO_N "checking RSVG_LIBS... $ECHO_C" >&6; }
11009 RSVG_LIBS=`$PKG_CONFIG --libs "$RSVG_MODULE"|sed -e 's,///*,/,g'`
11010 { echo "$as_me:$LINENO: result: $RSVG_LIBS" >&5
11011 echo "${ECHO_T}$RSVG_LIBS" >&6; }
11012 else
11013 { echo "$as_me:$LINENO: result: no" >&5
11014 echo "${ECHO_T}no" >&6; }
11015 RSVG_CFLAGS=""
11016 RSVG_LIBS=""
11017 ## If we have a custom action on failure, don't print errors, but
11018 ## do set a variable so people can do so.
11019 RSVG_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "$RSVG_MODULE"`
11025 else
11026 echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
11027 echo "*** See http://www.freedesktop.org/software/pkgconfig"
11031 if test $succeeded = yes; then
11033 else
11040 if test ".${RSVG_CFLAGS}" != "."; then
11041 HAVE_RSVG=yes
11043 cat >>confdefs.h <<\_ACEOF
11044 #define HAVE_RSVG 1
11045 _ACEOF
11047 CFLAGS="$CFLAGS $RSVG_CFLAGS"
11048 LIBS="$RSVG_LIBS $LIBS"
11054 HAVE_GTK=no
11055 if test "${with_gtk}" = "yes" || test "$USE_X_TOOLKIT" = "maybe"; then
11056 GLIB_REQUIRED=2.6
11057 GTK_REQUIRED=2.6
11058 GTK_MODULES="gtk+-2.0 >= $GTK_REQUIRED glib-2.0 >= $GLIB_REQUIRED"
11061 succeeded=no
11063 # Extract the first word of "pkg-config", so it can be a program name with args.
11064 set dummy pkg-config; ac_word=$2
11065 { echo "$as_me:$LINENO: checking for $ac_word" >&5
11066 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
11067 if test "${ac_cv_path_PKG_CONFIG+set}" = set; then
11068 echo $ECHO_N "(cached) $ECHO_C" >&6
11069 else
11070 case $PKG_CONFIG in
11071 [\\/]* | ?:[\\/]*)
11072 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
11075 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11076 for as_dir in $PATH
11078 IFS=$as_save_IFS
11079 test -z "$as_dir" && as_dir=.
11080 for ac_exec_ext in '' $ac_executable_extensions; do
11081 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11082 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
11083 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
11084 break 2
11086 done
11087 done
11088 IFS=$as_save_IFS
11090 test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG="no"
11092 esac
11094 PKG_CONFIG=$ac_cv_path_PKG_CONFIG
11095 if test -n "$PKG_CONFIG"; then
11096 { echo "$as_me:$LINENO: result: $PKG_CONFIG" >&5
11097 echo "${ECHO_T}$PKG_CONFIG" >&6; }
11098 else
11099 { echo "$as_me:$LINENO: result: no" >&5
11100 echo "${ECHO_T}no" >&6; }
11105 if test "$PKG_CONFIG" = "no" ; then
11106 pkg_check_gtk=no
11107 else
11108 PKG_CONFIG_MIN_VERSION=0.9.0
11109 if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
11110 { echo "$as_me:$LINENO: checking for $GTK_MODULES" >&5
11111 echo $ECHO_N "checking for $GTK_MODULES... $ECHO_C" >&6; }
11113 if $PKG_CONFIG --exists "$GTK_MODULES" 2>&5; then
11114 { echo "$as_me:$LINENO: result: yes" >&5
11115 echo "${ECHO_T}yes" >&6; }
11116 succeeded=yes
11118 { echo "$as_me:$LINENO: checking GTK_CFLAGS" >&5
11119 echo $ECHO_N "checking GTK_CFLAGS... $ECHO_C" >&6; }
11120 GTK_CFLAGS=`$PKG_CONFIG --cflags "$GTK_MODULES"|sed -e 's,///*,/,g'`
11121 { echo "$as_me:$LINENO: result: $GTK_CFLAGS" >&5
11122 echo "${ECHO_T}$GTK_CFLAGS" >&6; }
11124 { echo "$as_me:$LINENO: checking GTK_LIBS" >&5
11125 echo $ECHO_N "checking GTK_LIBS... $ECHO_C" >&6; }
11126 GTK_LIBS=`$PKG_CONFIG --libs "$GTK_MODULES"|sed -e 's,///*,/,g'`
11127 { echo "$as_me:$LINENO: result: $GTK_LIBS" >&5
11128 echo "${ECHO_T}$GTK_LIBS" >&6; }
11129 else
11130 { echo "$as_me:$LINENO: result: no" >&5
11131 echo "${ECHO_T}no" >&6; }
11132 GTK_CFLAGS=""
11133 GTK_LIBS=""
11134 ## If we have a custom action on failure, don't print errors, but
11135 ## do set a variable so people can do so.
11136 GTK_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "$GTK_MODULES"`
11142 else
11143 echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
11144 echo "*** See http://www.freedesktop.org/software/pkgconfig"
11148 if test $succeeded = yes; then
11149 pkg_check_gtk=yes
11150 else
11151 pkg_check_gtk=no
11154 if test "$pkg_check_gtk" = "no" && test "$USE_X_TOOLKIT" != "maybe"; then
11155 { { echo "$as_me:$LINENO: error: $GTK_PKG_ERRORS" >&5
11156 echo "$as_me: error: $GTK_PKG_ERRORS" >&2;}
11157 { (exit 1); exit 1; }; }
11162 if test x"$pkg_check_gtk" = xyes; then
11166 C_SWITCH_X_SITE="$C_SWITCH_X_SITE $GTK_CFLAGS"
11167 CFLAGS="$CFLAGS $GTK_CFLAGS"
11168 LIBS="$GTK_LIBS $LIBS"
11169 GTK_COMPILES=no
11171 for ac_func in gtk_main
11173 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
11174 { echo "$as_me:$LINENO: checking for $ac_func" >&5
11175 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
11176 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
11177 echo $ECHO_N "(cached) $ECHO_C" >&6
11178 else
11179 cat >conftest.$ac_ext <<_ACEOF
11180 /* confdefs.h. */
11181 _ACEOF
11182 cat confdefs.h >>conftest.$ac_ext
11183 cat >>conftest.$ac_ext <<_ACEOF
11184 /* end confdefs.h. */
11185 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
11186 For example, HP-UX 11i <limits.h> declares gettimeofday. */
11187 #define $ac_func innocuous_$ac_func
11189 /* System header to define __stub macros and hopefully few prototypes,
11190 which can conflict with char $ac_func (); below.
11191 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
11192 <limits.h> exists even on freestanding compilers. */
11194 #ifdef __STDC__
11195 # include <limits.h>
11196 #else
11197 # include <assert.h>
11198 #endif
11200 #undef $ac_func
11202 /* Override any GCC internal prototype to avoid an error.
11203 Use char because int might match the return type of a GCC
11204 builtin and then its argument prototype would still apply. */
11205 #ifdef __cplusplus
11206 extern "C"
11207 #endif
11208 char $ac_func ();
11209 /* The GNU C library defines this for functions which it implements
11210 to always fail with ENOSYS. Some functions are actually named
11211 something starting with __ and the normal name is an alias. */
11212 #if defined __stub_$ac_func || defined __stub___$ac_func
11213 choke me
11214 #endif
11217 main ()
11219 return $ac_func ();
11221 return 0;
11223 _ACEOF
11224 rm -f conftest.$ac_objext conftest$ac_exeext
11225 if { (ac_try="$ac_link"
11226 case "(($ac_try" in
11227 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11228 *) ac_try_echo=$ac_try;;
11229 esac
11230 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11231 (eval "$ac_link") 2>conftest.er1
11232 ac_status=$?
11233 grep -v '^ *+' conftest.er1 >conftest.err
11234 rm -f conftest.er1
11235 cat conftest.err >&5
11236 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11237 (exit $ac_status); } && {
11238 test -z "$ac_c_werror_flag" ||
11239 test ! -s conftest.err
11240 } && test -s conftest$ac_exeext &&
11241 $as_test_x conftest$ac_exeext; then
11242 eval "$as_ac_var=yes"
11243 else
11244 echo "$as_me: failed program was:" >&5
11245 sed 's/^/| /' conftest.$ac_ext >&5
11247 eval "$as_ac_var=no"
11250 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
11251 conftest$ac_exeext conftest.$ac_ext
11253 ac_res=`eval echo '${'$as_ac_var'}'`
11254 { echo "$as_me:$LINENO: result: $ac_res" >&5
11255 echo "${ECHO_T}$ac_res" >&6; }
11256 if test `eval echo '${'$as_ac_var'}'` = yes; then
11257 cat >>confdefs.h <<_ACEOF
11258 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
11259 _ACEOF
11260 GTK_COMPILES=yes
11262 done
11264 if test "${GTK_COMPILES}" != "yes"; then
11265 if test "$USE_X_TOOLKIT" != "maybe"; then
11266 { { echo "$as_me:$LINENO: error: Gtk+ wanted, but it does not compile, see config.log. Maybe some x11-devel files missing?" >&5
11267 echo "$as_me: error: Gtk+ wanted, but it does not compile, see config.log. Maybe some x11-devel files missing?" >&2;}
11268 { (exit 1); exit 1; }; };
11270 else
11271 HAVE_GTK=yes
11273 cat >>confdefs.h <<\_ACEOF
11274 #define USE_GTK 1
11275 _ACEOF
11277 USE_X_TOOLKIT=none
11278 if $PKG_CONFIG --atleast-version=2.10 gtk+-2.0; then
11280 else
11281 { echo "$as_me:$LINENO: WARNING: Your version of Gtk+ will have problems with
11282 closing open displays. This is no problem if you just use
11283 one display, but if you use more than one and close one of them
11284 Emacs may crash." >&5
11285 echo "$as_me: WARNING: Your version of Gtk+ will have problems with
11286 closing open displays. This is no problem if you just use
11287 one display, but if you use more than one and close one of them
11288 Emacs may crash." >&2;}
11289 sleep 3
11296 if test "${HAVE_GTK}" = "yes"; then
11298 if test "$with_toolkit_scroll_bars" != no; then
11299 with_toolkit_scroll_bars=yes
11302 HAVE_GTK_MULTIDISPLAY=no
11304 for ac_func in gdk_display_open
11306 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
11307 { echo "$as_me:$LINENO: checking for $ac_func" >&5
11308 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
11309 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
11310 echo $ECHO_N "(cached) $ECHO_C" >&6
11311 else
11312 cat >conftest.$ac_ext <<_ACEOF
11313 /* confdefs.h. */
11314 _ACEOF
11315 cat confdefs.h >>conftest.$ac_ext
11316 cat >>conftest.$ac_ext <<_ACEOF
11317 /* end confdefs.h. */
11318 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
11319 For example, HP-UX 11i <limits.h> declares gettimeofday. */
11320 #define $ac_func innocuous_$ac_func
11322 /* System header to define __stub macros and hopefully few prototypes,
11323 which can conflict with char $ac_func (); below.
11324 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
11325 <limits.h> exists even on freestanding compilers. */
11327 #ifdef __STDC__
11328 # include <limits.h>
11329 #else
11330 # include <assert.h>
11331 #endif
11333 #undef $ac_func
11335 /* Override any GCC internal prototype to avoid an error.
11336 Use char because int might match the return type of a GCC
11337 builtin and then its argument prototype would still apply. */
11338 #ifdef __cplusplus
11339 extern "C"
11340 #endif
11341 char $ac_func ();
11342 /* The GNU C library defines this for functions which it implements
11343 to always fail with ENOSYS. Some functions are actually named
11344 something starting with __ and the normal name is an alias. */
11345 #if defined __stub_$ac_func || defined __stub___$ac_func
11346 choke me
11347 #endif
11350 main ()
11352 return $ac_func ();
11354 return 0;
11356 _ACEOF
11357 rm -f conftest.$ac_objext conftest$ac_exeext
11358 if { (ac_try="$ac_link"
11359 case "(($ac_try" in
11360 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11361 *) ac_try_echo=$ac_try;;
11362 esac
11363 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11364 (eval "$ac_link") 2>conftest.er1
11365 ac_status=$?
11366 grep -v '^ *+' conftest.er1 >conftest.err
11367 rm -f conftest.er1
11368 cat conftest.err >&5
11369 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11370 (exit $ac_status); } && {
11371 test -z "$ac_c_werror_flag" ||
11372 test ! -s conftest.err
11373 } && test -s conftest$ac_exeext &&
11374 $as_test_x conftest$ac_exeext; then
11375 eval "$as_ac_var=yes"
11376 else
11377 echo "$as_me: failed program was:" >&5
11378 sed 's/^/| /' conftest.$ac_ext >&5
11380 eval "$as_ac_var=no"
11383 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
11384 conftest$ac_exeext conftest.$ac_ext
11386 ac_res=`eval echo '${'$as_ac_var'}'`
11387 { echo "$as_me:$LINENO: result: $ac_res" >&5
11388 echo "${ECHO_T}$ac_res" >&6; }
11389 if test `eval echo '${'$as_ac_var'}'` = yes; then
11390 cat >>confdefs.h <<_ACEOF
11391 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
11392 _ACEOF
11393 HAVE_GTK_MULTIDISPLAY=yes
11395 done
11397 if test "${HAVE_GTK_MULTIDISPLAY}" = "yes"; then
11399 cat >>confdefs.h <<\_ACEOF
11400 #define HAVE_GTK_MULTIDISPLAY 1
11401 _ACEOF
11405 HAVE_GTK_FILE_SELECTION=no
11407 for ac_func in gtk_file_selection_new
11409 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
11410 { echo "$as_me:$LINENO: checking for $ac_func" >&5
11411 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
11412 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
11413 echo $ECHO_N "(cached) $ECHO_C" >&6
11414 else
11415 cat >conftest.$ac_ext <<_ACEOF
11416 /* confdefs.h. */
11417 _ACEOF
11418 cat confdefs.h >>conftest.$ac_ext
11419 cat >>conftest.$ac_ext <<_ACEOF
11420 /* end confdefs.h. */
11421 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
11422 For example, HP-UX 11i <limits.h> declares gettimeofday. */
11423 #define $ac_func innocuous_$ac_func
11425 /* System header to define __stub macros and hopefully few prototypes,
11426 which can conflict with char $ac_func (); below.
11427 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
11428 <limits.h> exists even on freestanding compilers. */
11430 #ifdef __STDC__
11431 # include <limits.h>
11432 #else
11433 # include <assert.h>
11434 #endif
11436 #undef $ac_func
11438 /* Override any GCC internal prototype to avoid an error.
11439 Use char because int might match the return type of a GCC
11440 builtin and then its argument prototype would still apply. */
11441 #ifdef __cplusplus
11442 extern "C"
11443 #endif
11444 char $ac_func ();
11445 /* The GNU C library defines this for functions which it implements
11446 to always fail with ENOSYS. Some functions are actually named
11447 something starting with __ and the normal name is an alias. */
11448 #if defined __stub_$ac_func || defined __stub___$ac_func
11449 choke me
11450 #endif
11453 main ()
11455 return $ac_func ();
11457 return 0;
11459 _ACEOF
11460 rm -f conftest.$ac_objext conftest$ac_exeext
11461 if { (ac_try="$ac_link"
11462 case "(($ac_try" in
11463 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11464 *) ac_try_echo=$ac_try;;
11465 esac
11466 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11467 (eval "$ac_link") 2>conftest.er1
11468 ac_status=$?
11469 grep -v '^ *+' conftest.er1 >conftest.err
11470 rm -f conftest.er1
11471 cat conftest.err >&5
11472 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11473 (exit $ac_status); } && {
11474 test -z "$ac_c_werror_flag" ||
11475 test ! -s conftest.err
11476 } && test -s conftest$ac_exeext &&
11477 $as_test_x conftest$ac_exeext; then
11478 eval "$as_ac_var=yes"
11479 else
11480 echo "$as_me: failed program was:" >&5
11481 sed 's/^/| /' conftest.$ac_ext >&5
11483 eval "$as_ac_var=no"
11486 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
11487 conftest$ac_exeext conftest.$ac_ext
11489 ac_res=`eval echo '${'$as_ac_var'}'`
11490 { echo "$as_me:$LINENO: result: $ac_res" >&5
11491 echo "${ECHO_T}$ac_res" >&6; }
11492 if test `eval echo '${'$as_ac_var'}'` = yes; then
11493 cat >>confdefs.h <<_ACEOF
11494 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
11495 _ACEOF
11496 HAVE_GTK_FILE_SELECTION=yes
11498 done
11501 HAVE_GTK_FILE_CHOOSER=no
11503 for ac_func in gtk_file_chooser_dialog_new
11505 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
11506 { echo "$as_me:$LINENO: checking for $ac_func" >&5
11507 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
11508 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
11509 echo $ECHO_N "(cached) $ECHO_C" >&6
11510 else
11511 cat >conftest.$ac_ext <<_ACEOF
11512 /* confdefs.h. */
11513 _ACEOF
11514 cat confdefs.h >>conftest.$ac_ext
11515 cat >>conftest.$ac_ext <<_ACEOF
11516 /* end confdefs.h. */
11517 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
11518 For example, HP-UX 11i <limits.h> declares gettimeofday. */
11519 #define $ac_func innocuous_$ac_func
11521 /* System header to define __stub macros and hopefully few prototypes,
11522 which can conflict with char $ac_func (); below.
11523 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
11524 <limits.h> exists even on freestanding compilers. */
11526 #ifdef __STDC__
11527 # include <limits.h>
11528 #else
11529 # include <assert.h>
11530 #endif
11532 #undef $ac_func
11534 /* Override any GCC internal prototype to avoid an error.
11535 Use char because int might match the return type of a GCC
11536 builtin and then its argument prototype would still apply. */
11537 #ifdef __cplusplus
11538 extern "C"
11539 #endif
11540 char $ac_func ();
11541 /* The GNU C library defines this for functions which it implements
11542 to always fail with ENOSYS. Some functions are actually named
11543 something starting with __ and the normal name is an alias. */
11544 #if defined __stub_$ac_func || defined __stub___$ac_func
11545 choke me
11546 #endif
11549 main ()
11551 return $ac_func ();
11553 return 0;
11555 _ACEOF
11556 rm -f conftest.$ac_objext conftest$ac_exeext
11557 if { (ac_try="$ac_link"
11558 case "(($ac_try" in
11559 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11560 *) ac_try_echo=$ac_try;;
11561 esac
11562 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11563 (eval "$ac_link") 2>conftest.er1
11564 ac_status=$?
11565 grep -v '^ *+' conftest.er1 >conftest.err
11566 rm -f conftest.er1
11567 cat conftest.err >&5
11568 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11569 (exit $ac_status); } && {
11570 test -z "$ac_c_werror_flag" ||
11571 test ! -s conftest.err
11572 } && test -s conftest$ac_exeext &&
11573 $as_test_x conftest$ac_exeext; then
11574 eval "$as_ac_var=yes"
11575 else
11576 echo "$as_me: failed program was:" >&5
11577 sed 's/^/| /' conftest.$ac_ext >&5
11579 eval "$as_ac_var=no"
11582 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
11583 conftest$ac_exeext conftest.$ac_ext
11585 ac_res=`eval echo '${'$as_ac_var'}'`
11586 { echo "$as_me:$LINENO: result: $ac_res" >&5
11587 echo "${ECHO_T}$ac_res" >&6; }
11588 if test `eval echo '${'$as_ac_var'}'` = yes; then
11589 cat >>confdefs.h <<_ACEOF
11590 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
11591 _ACEOF
11592 HAVE_GTK_FILE_CHOOSER=yes
11594 done
11597 if test "$HAVE_GTK_FILE_SELECTION" = yes \
11598 && test "$HAVE_GTK_FILE_CHOOSER" = yes; then
11600 cat >>confdefs.h <<\_ACEOF
11601 #define HAVE_GTK_FILE_BOTH 1
11602 _ACEOF
11606 if test "$HAVE_GTK_FILE_CHOOSER" = yes; then
11607 HAVE_GTK_AND_PTHREAD=no
11609 for ac_header in pthread.h
11611 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
11612 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11613 { echo "$as_me:$LINENO: checking for $ac_header" >&5
11614 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
11615 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11616 echo $ECHO_N "(cached) $ECHO_C" >&6
11618 ac_res=`eval echo '${'$as_ac_Header'}'`
11619 { echo "$as_me:$LINENO: result: $ac_res" >&5
11620 echo "${ECHO_T}$ac_res" >&6; }
11621 else
11622 # Is the header compilable?
11623 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
11624 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
11625 cat >conftest.$ac_ext <<_ACEOF
11626 /* confdefs.h. */
11627 _ACEOF
11628 cat confdefs.h >>conftest.$ac_ext
11629 cat >>conftest.$ac_ext <<_ACEOF
11630 /* end confdefs.h. */
11631 $ac_includes_default
11632 #include <$ac_header>
11633 _ACEOF
11634 rm -f conftest.$ac_objext
11635 if { (ac_try="$ac_compile"
11636 case "(($ac_try" in
11637 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11638 *) ac_try_echo=$ac_try;;
11639 esac
11640 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11641 (eval "$ac_compile") 2>conftest.er1
11642 ac_status=$?
11643 grep -v '^ *+' conftest.er1 >conftest.err
11644 rm -f conftest.er1
11645 cat conftest.err >&5
11646 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11647 (exit $ac_status); } && {
11648 test -z "$ac_c_werror_flag" ||
11649 test ! -s conftest.err
11650 } && test -s conftest.$ac_objext; then
11651 ac_header_compiler=yes
11652 else
11653 echo "$as_me: failed program was:" >&5
11654 sed 's/^/| /' conftest.$ac_ext >&5
11656 ac_header_compiler=no
11659 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11660 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
11661 echo "${ECHO_T}$ac_header_compiler" >&6; }
11663 # Is the header present?
11664 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
11665 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
11666 cat >conftest.$ac_ext <<_ACEOF
11667 /* confdefs.h. */
11668 _ACEOF
11669 cat confdefs.h >>conftest.$ac_ext
11670 cat >>conftest.$ac_ext <<_ACEOF
11671 /* end confdefs.h. */
11672 #include <$ac_header>
11673 _ACEOF
11674 if { (ac_try="$ac_cpp conftest.$ac_ext"
11675 case "(($ac_try" in
11676 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11677 *) ac_try_echo=$ac_try;;
11678 esac
11679 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11680 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
11681 ac_status=$?
11682 grep -v '^ *+' conftest.er1 >conftest.err
11683 rm -f conftest.er1
11684 cat conftest.err >&5
11685 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11686 (exit $ac_status); } >/dev/null && {
11687 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
11688 test ! -s conftest.err
11689 }; then
11690 ac_header_preproc=yes
11691 else
11692 echo "$as_me: failed program was:" >&5
11693 sed 's/^/| /' conftest.$ac_ext >&5
11695 ac_header_preproc=no
11698 rm -f conftest.err conftest.$ac_ext
11699 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
11700 echo "${ECHO_T}$ac_header_preproc" >&6; }
11702 # So? What about this header?
11703 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
11704 yes:no: )
11705 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
11706 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
11707 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
11708 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
11709 ac_header_preproc=yes
11711 no:yes:* )
11712 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
11713 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
11714 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
11715 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
11716 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
11717 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
11718 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
11719 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
11720 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
11721 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
11722 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
11723 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
11726 esac
11727 { echo "$as_me:$LINENO: checking for $ac_header" >&5
11728 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
11729 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11730 echo $ECHO_N "(cached) $ECHO_C" >&6
11731 else
11732 eval "$as_ac_Header=\$ac_header_preproc"
11734 ac_res=`eval echo '${'$as_ac_Header'}'`
11735 { echo "$as_me:$LINENO: result: $ac_res" >&5
11736 echo "${ECHO_T}$ac_res" >&6; }
11739 if test `eval echo '${'$as_ac_Header'}'` = yes; then
11740 cat >>confdefs.h <<_ACEOF
11741 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
11742 _ACEOF
11746 done
11748 if test "$ac_cv_header_pthread_h"; then
11749 { echo "$as_me:$LINENO: checking for pthread_self in -lpthread" >&5
11750 echo $ECHO_N "checking for pthread_self in -lpthread... $ECHO_C" >&6; }
11751 if test "${ac_cv_lib_pthread_pthread_self+set}" = set; then
11752 echo $ECHO_N "(cached) $ECHO_C" >&6
11753 else
11754 ac_check_lib_save_LIBS=$LIBS
11755 LIBS="-lpthread $LIBS"
11756 cat >conftest.$ac_ext <<_ACEOF
11757 /* confdefs.h. */
11758 _ACEOF
11759 cat confdefs.h >>conftest.$ac_ext
11760 cat >>conftest.$ac_ext <<_ACEOF
11761 /* end confdefs.h. */
11763 /* Override any GCC internal prototype to avoid an error.
11764 Use char because int might match the return type of a GCC
11765 builtin and then its argument prototype would still apply. */
11766 #ifdef __cplusplus
11767 extern "C"
11768 #endif
11769 char pthread_self ();
11771 main ()
11773 return pthread_self ();
11775 return 0;
11777 _ACEOF
11778 rm -f conftest.$ac_objext conftest$ac_exeext
11779 if { (ac_try="$ac_link"
11780 case "(($ac_try" in
11781 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11782 *) ac_try_echo=$ac_try;;
11783 esac
11784 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11785 (eval "$ac_link") 2>conftest.er1
11786 ac_status=$?
11787 grep -v '^ *+' conftest.er1 >conftest.err
11788 rm -f conftest.er1
11789 cat conftest.err >&5
11790 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11791 (exit $ac_status); } && {
11792 test -z "$ac_c_werror_flag" ||
11793 test ! -s conftest.err
11794 } && test -s conftest$ac_exeext &&
11795 $as_test_x conftest$ac_exeext; then
11796 ac_cv_lib_pthread_pthread_self=yes
11797 else
11798 echo "$as_me: failed program was:" >&5
11799 sed 's/^/| /' conftest.$ac_ext >&5
11801 ac_cv_lib_pthread_pthread_self=no
11804 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
11805 conftest$ac_exeext conftest.$ac_ext
11806 LIBS=$ac_check_lib_save_LIBS
11808 { echo "$as_me:$LINENO: result: $ac_cv_lib_pthread_pthread_self" >&5
11809 echo "${ECHO_T}$ac_cv_lib_pthread_pthread_self" >&6; }
11810 if test $ac_cv_lib_pthread_pthread_self = yes; then
11811 HAVE_GTK_AND_PTHREAD=yes
11815 if test "$HAVE_GTK_AND_PTHREAD" = yes; then
11816 case "${canonical}" in
11817 *-hpux*) ;;
11818 *) GTK_LIBS="$GTK_LIBS -lpthread" ;;
11819 esac
11821 cat >>confdefs.h <<\_ACEOF
11822 #define HAVE_GTK_AND_PTHREAD 1
11823 _ACEOF
11829 HAVE_DBUS=no
11830 if test "${with_dbus}" = "yes"; then
11832 succeeded=no
11834 # Extract the first word of "pkg-config", so it can be a program name with args.
11835 set dummy pkg-config; ac_word=$2
11836 { echo "$as_me:$LINENO: checking for $ac_word" >&5
11837 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
11838 if test "${ac_cv_path_PKG_CONFIG+set}" = set; then
11839 echo $ECHO_N "(cached) $ECHO_C" >&6
11840 else
11841 case $PKG_CONFIG in
11842 [\\/]* | ?:[\\/]*)
11843 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
11846 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11847 for as_dir in $PATH
11849 IFS=$as_save_IFS
11850 test -z "$as_dir" && as_dir=.
11851 for ac_exec_ext in '' $ac_executable_extensions; do
11852 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11853 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
11854 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
11855 break 2
11857 done
11858 done
11859 IFS=$as_save_IFS
11861 test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG="no"
11863 esac
11865 PKG_CONFIG=$ac_cv_path_PKG_CONFIG
11866 if test -n "$PKG_CONFIG"; then
11867 { echo "$as_me:$LINENO: result: $PKG_CONFIG" >&5
11868 echo "${ECHO_T}$PKG_CONFIG" >&6; }
11869 else
11870 { echo "$as_me:$LINENO: result: no" >&5
11871 echo "${ECHO_T}no" >&6; }
11876 if test "$PKG_CONFIG" = "no" ; then
11877 HAVE_DBUS=no
11878 else
11879 PKG_CONFIG_MIN_VERSION=0.9.0
11880 if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
11881 { echo "$as_me:$LINENO: checking for dbus-1 >= 1.0" >&5
11882 echo $ECHO_N "checking for dbus-1 >= 1.0... $ECHO_C" >&6; }
11884 if $PKG_CONFIG --exists "dbus-1 >= 1.0" 2>&5; then
11885 { echo "$as_me:$LINENO: result: yes" >&5
11886 echo "${ECHO_T}yes" >&6; }
11887 succeeded=yes
11889 { echo "$as_me:$LINENO: checking DBUS_CFLAGS" >&5
11890 echo $ECHO_N "checking DBUS_CFLAGS... $ECHO_C" >&6; }
11891 DBUS_CFLAGS=`$PKG_CONFIG --cflags "dbus-1 >= 1.0"|sed -e 's,///*,/,g'`
11892 { echo "$as_me:$LINENO: result: $DBUS_CFLAGS" >&5
11893 echo "${ECHO_T}$DBUS_CFLAGS" >&6; }
11895 { echo "$as_me:$LINENO: checking DBUS_LIBS" >&5
11896 echo $ECHO_N "checking DBUS_LIBS... $ECHO_C" >&6; }
11897 DBUS_LIBS=`$PKG_CONFIG --libs "dbus-1 >= 1.0"|sed -e 's,///*,/,g'`
11898 { echo "$as_me:$LINENO: result: $DBUS_LIBS" >&5
11899 echo "${ECHO_T}$DBUS_LIBS" >&6; }
11900 else
11901 { echo "$as_me:$LINENO: result: no" >&5
11902 echo "${ECHO_T}no" >&6; }
11903 DBUS_CFLAGS=""
11904 DBUS_LIBS=""
11905 ## If we have a custom action on failure, don't print errors, but
11906 ## do set a variable so people can do so.
11907 DBUS_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "dbus-1 >= 1.0"`
11913 else
11914 echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
11915 echo "*** See http://www.freedesktop.org/software/pkgconfig"
11919 if test $succeeded = yes; then
11920 HAVE_DBUS=yes
11921 else
11922 HAVE_DBUS=no
11925 if test "$HAVE_DBUS" = yes; then
11927 cat >>confdefs.h <<\_ACEOF
11928 #define HAVE_DBUS 1
11929 _ACEOF
11934 HAVE_XAW3D=no
11935 if test x"${USE_X_TOOLKIT}" = xmaybe || test x"${USE_X_TOOLKIT}" = xLUCID; then
11936 if test "$with_xaw3d" != no; then
11937 { echo "$as_me:$LINENO: checking for xaw3d" >&5
11938 echo $ECHO_N "checking for xaw3d... $ECHO_C" >&6; }
11939 if test "${emacs_cv_xaw3d+set}" = set; then
11940 echo $ECHO_N "(cached) $ECHO_C" >&6
11941 else
11942 cat >conftest.$ac_ext <<_ACEOF
11943 /* confdefs.h. */
11944 _ACEOF
11945 cat confdefs.h >>conftest.$ac_ext
11946 cat >>conftest.$ac_ext <<_ACEOF
11947 /* end confdefs.h. */
11949 #include <X11/Intrinsic.h>
11950 #include <X11/Xaw3d/Simple.h>
11952 main ()
11956 return 0;
11958 _ACEOF
11959 rm -f conftest.$ac_objext conftest$ac_exeext
11960 if { (ac_try="$ac_link"
11961 case "(($ac_try" in
11962 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11963 *) ac_try_echo=$ac_try;;
11964 esac
11965 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11966 (eval "$ac_link") 2>conftest.er1
11967 ac_status=$?
11968 grep -v '^ *+' conftest.er1 >conftest.err
11969 rm -f conftest.er1
11970 cat conftest.err >&5
11971 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11972 (exit $ac_status); } && {
11973 test -z "$ac_c_werror_flag" ||
11974 test ! -s conftest.err
11975 } && test -s conftest$ac_exeext &&
11976 $as_test_x conftest$ac_exeext; then
11977 emacs_cv_xaw3d=yes
11978 else
11979 echo "$as_me: failed program was:" >&5
11980 sed 's/^/| /' conftest.$ac_ext >&5
11982 emacs_cv_xaw3d=no
11985 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
11986 conftest$ac_exeext conftest.$ac_ext
11989 else
11990 emacs_cv_xaw3d=no
11992 if test $emacs_cv_xaw3d = yes; then
11993 { echo "$as_me:$LINENO: result: yes; using Lucid toolkit" >&5
11994 echo "${ECHO_T}yes; using Lucid toolkit" >&6; }
11995 USE_X_TOOLKIT=LUCID
11996 HAVE_XAW3D=yes
11998 cat >>confdefs.h <<\_ACEOF
11999 #define HAVE_XAW3D 1
12000 _ACEOF
12002 else
12003 { echo "$as_me:$LINENO: result: no" >&5
12004 echo "${ECHO_T}no" >&6; }
12005 { echo "$as_me:$LINENO: checking for libXaw" >&5
12006 echo $ECHO_N "checking for libXaw... $ECHO_C" >&6; }
12007 if test "${emacs_cv_xaw+set}" = set; then
12008 echo $ECHO_N "(cached) $ECHO_C" >&6
12009 else
12010 cat >conftest.$ac_ext <<_ACEOF
12011 /* confdefs.h. */
12012 _ACEOF
12013 cat confdefs.h >>conftest.$ac_ext
12014 cat >>conftest.$ac_ext <<_ACEOF
12015 /* end confdefs.h. */
12017 #include <X11/Intrinsic.h>
12018 #include <X11/Xaw/Simple.h>
12020 main ()
12024 return 0;
12026 _ACEOF
12027 rm -f conftest.$ac_objext conftest$ac_exeext
12028 if { (ac_try="$ac_link"
12029 case "(($ac_try" in
12030 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12031 *) ac_try_echo=$ac_try;;
12032 esac
12033 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12034 (eval "$ac_link") 2>conftest.er1
12035 ac_status=$?
12036 grep -v '^ *+' conftest.er1 >conftest.err
12037 rm -f conftest.er1
12038 cat conftest.err >&5
12039 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12040 (exit $ac_status); } && {
12041 test -z "$ac_c_werror_flag" ||
12042 test ! -s conftest.err
12043 } && test -s conftest$ac_exeext &&
12044 $as_test_x conftest$ac_exeext; then
12045 emacs_cv_xaw=yes
12046 else
12047 echo "$as_me: failed program was:" >&5
12048 sed 's/^/| /' conftest.$ac_ext >&5
12050 emacs_cv_xaw=no
12053 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
12054 conftest$ac_exeext conftest.$ac_ext
12057 if test $emacs_cv_xaw = yes; then
12058 { echo "$as_me:$LINENO: result: yes; using Lucid toolkit" >&5
12059 echo "${ECHO_T}yes; using Lucid toolkit" >&6; }
12060 USE_X_TOOLKIT=LUCID
12061 elif test x"${USE_X_TOOLKIT}" = xLUCID; then
12062 { { echo "$as_me:$LINENO: error: Lucid toolkit requires X11/Xaw include files" >&5
12063 echo "$as_me: error: Lucid toolkit requires X11/Xaw include files" >&2;}
12064 { (exit 1); exit 1; }; }
12065 else
12066 { echo "$as_me:$LINENO: result: no; do not use toolkit by default" >&5
12067 echo "${ECHO_T}no; do not use toolkit by default" >&6; }
12068 USE_X_TOOLKIT=none
12073 X_TOOLKIT_TYPE=$USE_X_TOOLKIT
12075 if test "${USE_X_TOOLKIT}" != "none"; then
12076 { echo "$as_me:$LINENO: checking X11 toolkit version" >&5
12077 echo $ECHO_N "checking X11 toolkit version... $ECHO_C" >&6; }
12078 if test "${emacs_cv_x11_toolkit_version_6+set}" = set; then
12079 echo $ECHO_N "(cached) $ECHO_C" >&6
12080 else
12081 cat >conftest.$ac_ext <<_ACEOF
12082 /* confdefs.h. */
12083 _ACEOF
12084 cat confdefs.h >>conftest.$ac_ext
12085 cat >>conftest.$ac_ext <<_ACEOF
12086 /* end confdefs.h. */
12087 #include <X11/Intrinsic.h>
12089 main ()
12091 #if XtSpecificationRelease < 6
12092 fail;
12093 #endif
12096 return 0;
12098 _ACEOF
12099 rm -f conftest.$ac_objext conftest$ac_exeext
12100 if { (ac_try="$ac_link"
12101 case "(($ac_try" in
12102 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12103 *) ac_try_echo=$ac_try;;
12104 esac
12105 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12106 (eval "$ac_link") 2>conftest.er1
12107 ac_status=$?
12108 grep -v '^ *+' conftest.er1 >conftest.err
12109 rm -f conftest.er1
12110 cat conftest.err >&5
12111 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12112 (exit $ac_status); } && {
12113 test -z "$ac_c_werror_flag" ||
12114 test ! -s conftest.err
12115 } && test -s conftest$ac_exeext &&
12116 $as_test_x conftest$ac_exeext; then
12117 emacs_cv_x11_toolkit_version_6=yes
12118 else
12119 echo "$as_me: failed program was:" >&5
12120 sed 's/^/| /' conftest.$ac_ext >&5
12122 emacs_cv_x11_toolkit_version_6=no
12125 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
12126 conftest$ac_exeext conftest.$ac_ext
12129 HAVE_X11XTR6=$emacs_cv_x11_toolkit_version_6
12130 if test $emacs_cv_x11_toolkit_version_6 = yes; then
12131 { echo "$as_me:$LINENO: result: 6 or newer" >&5
12132 echo "${ECHO_T}6 or newer" >&6; }
12134 cat >>confdefs.h <<\_ACEOF
12135 #define HAVE_X11XTR6 1
12136 _ACEOF
12138 else
12139 { echo "$as_me:$LINENO: result: before 6" >&5
12140 echo "${ECHO_T}before 6" >&6; }
12143 OLDLIBS="$LIBS"
12144 if test x$HAVE_X11XTR6 = xyes; then
12145 LIBS="-lXt -lSM -lICE $LIBS"
12146 else
12147 LIBS="-lXt $LIBS"
12150 { echo "$as_me:$LINENO: checking for XmuConvertStandardSelection in -lXmu" >&5
12151 echo $ECHO_N "checking for XmuConvertStandardSelection in -lXmu... $ECHO_C" >&6; }
12152 if test "${ac_cv_lib_Xmu_XmuConvertStandardSelection+set}" = set; then
12153 echo $ECHO_N "(cached) $ECHO_C" >&6
12154 else
12155 ac_check_lib_save_LIBS=$LIBS
12156 LIBS="-lXmu $LIBS"
12157 cat >conftest.$ac_ext <<_ACEOF
12158 /* confdefs.h. */
12159 _ACEOF
12160 cat confdefs.h >>conftest.$ac_ext
12161 cat >>conftest.$ac_ext <<_ACEOF
12162 /* end confdefs.h. */
12164 /* Override any GCC internal prototype to avoid an error.
12165 Use char because int might match the return type of a GCC
12166 builtin and then its argument prototype would still apply. */
12167 #ifdef __cplusplus
12168 extern "C"
12169 #endif
12170 char XmuConvertStandardSelection ();
12172 main ()
12174 return XmuConvertStandardSelection ();
12176 return 0;
12178 _ACEOF
12179 rm -f conftest.$ac_objext conftest$ac_exeext
12180 if { (ac_try="$ac_link"
12181 case "(($ac_try" in
12182 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12183 *) ac_try_echo=$ac_try;;
12184 esac
12185 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12186 (eval "$ac_link") 2>conftest.er1
12187 ac_status=$?
12188 grep -v '^ *+' conftest.er1 >conftest.err
12189 rm -f conftest.er1
12190 cat conftest.err >&5
12191 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12192 (exit $ac_status); } && {
12193 test -z "$ac_c_werror_flag" ||
12194 test ! -s conftest.err
12195 } && test -s conftest$ac_exeext &&
12196 $as_test_x conftest$ac_exeext; then
12197 ac_cv_lib_Xmu_XmuConvertStandardSelection=yes
12198 else
12199 echo "$as_me: failed program was:" >&5
12200 sed 's/^/| /' conftest.$ac_ext >&5
12202 ac_cv_lib_Xmu_XmuConvertStandardSelection=no
12205 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
12206 conftest$ac_exeext conftest.$ac_ext
12207 LIBS=$ac_check_lib_save_LIBS
12209 { echo "$as_me:$LINENO: result: $ac_cv_lib_Xmu_XmuConvertStandardSelection" >&5
12210 echo "${ECHO_T}$ac_cv_lib_Xmu_XmuConvertStandardSelection" >&6; }
12211 if test $ac_cv_lib_Xmu_XmuConvertStandardSelection = yes; then
12212 cat >>confdefs.h <<_ACEOF
12213 #define HAVE_LIBXMU 1
12214 _ACEOF
12216 LIBS="-lXmu $LIBS"
12220 test $ac_cv_lib_Xmu_XmuConvertStandardSelection = no && LIBS="$OLDLIBS"
12223 # On Irix 6.5, at least, we need XShapeQueryExtension from -lXext for Xaw3D.
12224 if test "${HAVE_X11}" = "yes"; then
12225 if test "${USE_X_TOOLKIT}" != "none"; then
12227 { echo "$as_me:$LINENO: checking for XShapeQueryExtension in -lXext" >&5
12228 echo $ECHO_N "checking for XShapeQueryExtension in -lXext... $ECHO_C" >&6; }
12229 if test "${ac_cv_lib_Xext_XShapeQueryExtension+set}" = set; then
12230 echo $ECHO_N "(cached) $ECHO_C" >&6
12231 else
12232 ac_check_lib_save_LIBS=$LIBS
12233 LIBS="-lXext $LIBS"
12234 cat >conftest.$ac_ext <<_ACEOF
12235 /* confdefs.h. */
12236 _ACEOF
12237 cat confdefs.h >>conftest.$ac_ext
12238 cat >>conftest.$ac_ext <<_ACEOF
12239 /* end confdefs.h. */
12241 /* Override any GCC internal prototype to avoid an error.
12242 Use char because int might match the return type of a GCC
12243 builtin and then its argument prototype would still apply. */
12244 #ifdef __cplusplus
12245 extern "C"
12246 #endif
12247 char XShapeQueryExtension ();
12249 main ()
12251 return XShapeQueryExtension ();
12253 return 0;
12255 _ACEOF
12256 rm -f conftest.$ac_objext conftest$ac_exeext
12257 if { (ac_try="$ac_link"
12258 case "(($ac_try" in
12259 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12260 *) ac_try_echo=$ac_try;;
12261 esac
12262 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12263 (eval "$ac_link") 2>conftest.er1
12264 ac_status=$?
12265 grep -v '^ *+' conftest.er1 >conftest.err
12266 rm -f conftest.er1
12267 cat conftest.err >&5
12268 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12269 (exit $ac_status); } && {
12270 test -z "$ac_c_werror_flag" ||
12271 test ! -s conftest.err
12272 } && test -s conftest$ac_exeext &&
12273 $as_test_x conftest$ac_exeext; then
12274 ac_cv_lib_Xext_XShapeQueryExtension=yes
12275 else
12276 echo "$as_me: failed program was:" >&5
12277 sed 's/^/| /' conftest.$ac_ext >&5
12279 ac_cv_lib_Xext_XShapeQueryExtension=no
12282 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
12283 conftest$ac_exeext conftest.$ac_ext
12284 LIBS=$ac_check_lib_save_LIBS
12286 { echo "$as_me:$LINENO: result: $ac_cv_lib_Xext_XShapeQueryExtension" >&5
12287 echo "${ECHO_T}$ac_cv_lib_Xext_XShapeQueryExtension" >&6; }
12288 if test $ac_cv_lib_Xext_XShapeQueryExtension = yes; then
12289 cat >>confdefs.h <<_ACEOF
12290 #define HAVE_LIBXEXT 1
12291 _ACEOF
12293 LIBS="-lXext $LIBS"
12300 if test "${USE_X_TOOLKIT}" = "MOTIF"; then
12301 { echo "$as_me:$LINENO: checking for Motif version 2.1" >&5
12302 echo $ECHO_N "checking for Motif version 2.1... $ECHO_C" >&6; }
12303 if test "${emacs_cv_motif_version_2_1+set}" = set; then
12304 echo $ECHO_N "(cached) $ECHO_C" >&6
12305 else
12306 cat >conftest.$ac_ext <<_ACEOF
12307 /* confdefs.h. */
12308 _ACEOF
12309 cat confdefs.h >>conftest.$ac_ext
12310 cat >>conftest.$ac_ext <<_ACEOF
12311 /* end confdefs.h. */
12312 #include <Xm/Xm.h>
12314 main ()
12316 #if XmVERSION > 2 || (XmVERSION == 2 && XmREVISION >= 1)
12317 int x = 5;
12318 #else
12319 Motif version prior to 2.1.
12320 #endif
12322 return 0;
12324 _ACEOF
12325 rm -f conftest.$ac_objext
12326 if { (ac_try="$ac_compile"
12327 case "(($ac_try" in
12328 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12329 *) ac_try_echo=$ac_try;;
12330 esac
12331 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12332 (eval "$ac_compile") 2>conftest.er1
12333 ac_status=$?
12334 grep -v '^ *+' conftest.er1 >conftest.err
12335 rm -f conftest.er1
12336 cat conftest.err >&5
12337 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12338 (exit $ac_status); } && {
12339 test -z "$ac_c_werror_flag" ||
12340 test ! -s conftest.err
12341 } && test -s conftest.$ac_objext; then
12342 emacs_cv_motif_version_2_1=yes
12343 else
12344 echo "$as_me: failed program was:" >&5
12345 sed 's/^/| /' conftest.$ac_ext >&5
12347 emacs_cv_motif_version_2_1=no
12350 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12352 { echo "$as_me:$LINENO: result: $emacs_cv_motif_version_2_1" >&5
12353 echo "${ECHO_T}$emacs_cv_motif_version_2_1" >&6; }
12354 HAVE_MOTIF_2_1=$emacs_cv_motif_version_2_1
12355 if test $emacs_cv_motif_version_2_1 = yes; then
12356 HAVE_LIBXP=no
12358 cat >>confdefs.h <<\_ACEOF
12359 #define HAVE_MOTIF_2_1 1
12360 _ACEOF
12362 { echo "$as_me:$LINENO: checking for XpCreateContext in -lXp" >&5
12363 echo $ECHO_N "checking for XpCreateContext in -lXp... $ECHO_C" >&6; }
12364 if test "${ac_cv_lib_Xp_XpCreateContext+set}" = set; then
12365 echo $ECHO_N "(cached) $ECHO_C" >&6
12366 else
12367 ac_check_lib_save_LIBS=$LIBS
12368 LIBS="-lXp $LIBS"
12369 cat >conftest.$ac_ext <<_ACEOF
12370 /* confdefs.h. */
12371 _ACEOF
12372 cat confdefs.h >>conftest.$ac_ext
12373 cat >>conftest.$ac_ext <<_ACEOF
12374 /* end confdefs.h. */
12376 /* Override any GCC internal prototype to avoid an error.
12377 Use char because int might match the return type of a GCC
12378 builtin and then its argument prototype would still apply. */
12379 #ifdef __cplusplus
12380 extern "C"
12381 #endif
12382 char XpCreateContext ();
12384 main ()
12386 return XpCreateContext ();
12388 return 0;
12390 _ACEOF
12391 rm -f conftest.$ac_objext conftest$ac_exeext
12392 if { (ac_try="$ac_link"
12393 case "(($ac_try" in
12394 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12395 *) ac_try_echo=$ac_try;;
12396 esac
12397 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12398 (eval "$ac_link") 2>conftest.er1
12399 ac_status=$?
12400 grep -v '^ *+' conftest.er1 >conftest.err
12401 rm -f conftest.er1
12402 cat conftest.err >&5
12403 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12404 (exit $ac_status); } && {
12405 test -z "$ac_c_werror_flag" ||
12406 test ! -s conftest.err
12407 } && test -s conftest$ac_exeext &&
12408 $as_test_x conftest$ac_exeext; then
12409 ac_cv_lib_Xp_XpCreateContext=yes
12410 else
12411 echo "$as_me: failed program was:" >&5
12412 sed 's/^/| /' conftest.$ac_ext >&5
12414 ac_cv_lib_Xp_XpCreateContext=no
12417 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
12418 conftest$ac_exeext conftest.$ac_ext
12419 LIBS=$ac_check_lib_save_LIBS
12421 { echo "$as_me:$LINENO: result: $ac_cv_lib_Xp_XpCreateContext" >&5
12422 echo "${ECHO_T}$ac_cv_lib_Xp_XpCreateContext" >&6; }
12423 if test $ac_cv_lib_Xp_XpCreateContext = yes; then
12424 HAVE_LIBXP=yes
12427 if test ${HAVE_LIBXP} = yes; then
12429 cat >>confdefs.h <<\_ACEOF
12430 #define HAVE_LIBXP 1
12431 _ACEOF
12434 else
12435 { echo "$as_me:$LINENO: checking for LessTif where some systems put it" >&5
12436 echo $ECHO_N "checking for LessTif where some systems put it... $ECHO_C" >&6; }
12437 if test "${emacs_cv_lesstif+set}" = set; then
12438 echo $ECHO_N "(cached) $ECHO_C" >&6
12439 else
12440 # We put this in CFLAGS temporarily to precede other -I options
12441 # that might be in CFLAGS temporarily.
12442 # We put this in CPPFLAGS where it precedes the other -I options.
12443 OLD_CPPFLAGS=$CPPFLAGS
12444 OLD_CFLAGS=$CFLAGS
12445 CPPFLAGS="-I/usr/X11R6/LessTif/Motif1.2/include $CPPFLAGS"
12446 CFLAGS="-I/usr/X11R6/LessTif/Motif1.2/include $CFLAGS"
12447 cat >conftest.$ac_ext <<_ACEOF
12448 /* confdefs.h. */
12449 _ACEOF
12450 cat confdefs.h >>conftest.$ac_ext
12451 cat >>conftest.$ac_ext <<_ACEOF
12452 /* end confdefs.h. */
12453 #include </usr/X11R6/LessTif/Motif1.2/include/Xm/Xm.h>
12455 main ()
12457 int x = 5;
12459 return 0;
12461 _ACEOF
12462 rm -f conftest.$ac_objext
12463 if { (ac_try="$ac_compile"
12464 case "(($ac_try" in
12465 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12466 *) ac_try_echo=$ac_try;;
12467 esac
12468 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12469 (eval "$ac_compile") 2>conftest.er1
12470 ac_status=$?
12471 grep -v '^ *+' conftest.er1 >conftest.err
12472 rm -f conftest.er1
12473 cat conftest.err >&5
12474 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12475 (exit $ac_status); } && {
12476 test -z "$ac_c_werror_flag" ||
12477 test ! -s conftest.err
12478 } && test -s conftest.$ac_objext; then
12479 emacs_cv_lesstif=yes
12480 else
12481 echo "$as_me: failed program was:" >&5
12482 sed 's/^/| /' conftest.$ac_ext >&5
12484 emacs_cv_lesstif=no
12487 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12489 { echo "$as_me:$LINENO: result: $emacs_cv_lesstif" >&5
12490 echo "${ECHO_T}$emacs_cv_lesstif" >&6; }
12491 if test $emacs_cv_lesstif = yes; then
12492 # Make sure this -I option remains in CPPFLAGS after it is set
12493 # back to REAL_CPPFLAGS.
12494 # There is no need to change REAL_CFLAGS, because REAL_CFLAGS does not
12495 # have those other -I options anyway. Ultimately, having this
12496 # directory ultimately in CPPFLAGS will be enough.
12497 REAL_CPPFLAGS="-I/usr/X11R6/LessTif/Motif1.2/include $REAL_CPPFLAGS"
12498 LDFLAGS="-L/usr/X11R6/LessTif/Motif1.2/lib $LDFLAGS"
12499 else
12500 CFLAGS=$OLD_CFLAGS
12501 CPPFLAGS=$OLD_CPPFLAGS
12508 USE_TOOLKIT_SCROLL_BARS=no
12509 if test "${with_toolkit_scroll_bars}" != "no"; then
12510 if test "${USE_X_TOOLKIT}" != "none"; then
12511 if test "${USE_X_TOOLKIT}" = "MOTIF"; then
12512 cat >>confdefs.h <<\_ACEOF
12513 #define USE_TOOLKIT_SCROLL_BARS 1
12514 _ACEOF
12516 HAVE_XAW3D=no
12517 USE_TOOLKIT_SCROLL_BARS=yes
12518 elif test "${HAVE_XAW3D}" = "yes"; then
12519 cat >>confdefs.h <<\_ACEOF
12520 #define USE_TOOLKIT_SCROLL_BARS 1
12521 _ACEOF
12523 USE_TOOLKIT_SCROLL_BARS=yes
12525 elif test "${HAVE_GTK}" = "yes"; then
12526 cat >>confdefs.h <<\_ACEOF
12527 #define USE_TOOLKIT_SCROLL_BARS 1
12528 _ACEOF
12530 USE_TOOLKIT_SCROLL_BARS=yes
12531 elif test "${HAVE_CARBON}" = "yes"; then
12532 cat >>confdefs.h <<\_ACEOF
12533 #define USE_TOOLKIT_SCROLL_BARS 1
12534 _ACEOF
12536 USE_TOOLKIT_SCROLL_BARS=yes
12540 cat >conftest.$ac_ext <<_ACEOF
12541 /* confdefs.h. */
12542 _ACEOF
12543 cat confdefs.h >>conftest.$ac_ext
12544 cat >>conftest.$ac_ext <<_ACEOF
12545 /* end confdefs.h. */
12547 #include <X11/Xlib.h>
12548 #include <X11/Xresource.h>
12550 main ()
12552 XIMProc callback;
12554 return 0;
12556 _ACEOF
12557 rm -f conftest.$ac_objext
12558 if { (ac_try="$ac_compile"
12559 case "(($ac_try" in
12560 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12561 *) ac_try_echo=$ac_try;;
12562 esac
12563 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12564 (eval "$ac_compile") 2>conftest.er1
12565 ac_status=$?
12566 grep -v '^ *+' conftest.er1 >conftest.err
12567 rm -f conftest.er1
12568 cat conftest.err >&5
12569 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12570 (exit $ac_status); } && {
12571 test -z "$ac_c_werror_flag" ||
12572 test ! -s conftest.err
12573 } && test -s conftest.$ac_objext; then
12574 HAVE_XIM=yes
12576 cat >>confdefs.h <<\_ACEOF
12577 #define HAVE_XIM 1
12578 _ACEOF
12580 else
12581 echo "$as_me: failed program was:" >&5
12582 sed 's/^/| /' conftest.$ac_ext >&5
12584 HAVE_XIM=no
12587 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12590 if test "${with_xim}" != "no"; then
12592 cat >>confdefs.h <<\_ACEOF
12593 #define USE_XIM 1
12594 _ACEOF
12599 if test "${HAVE_XIM}" != "no"; then
12600 late_CFLAGS=$CFLAGS
12601 if test "$GCC" = yes; then
12602 CFLAGS="$CFLAGS --pedantic-errors"
12604 cat >conftest.$ac_ext <<_ACEOF
12605 /* confdefs.h. */
12606 _ACEOF
12607 cat confdefs.h >>conftest.$ac_ext
12608 cat >>conftest.$ac_ext <<_ACEOF
12609 /* end confdefs.h. */
12611 #include <X11/Xlib.h>
12612 #include <X11/Xresource.h>
12614 main ()
12616 Display *display;
12617 XrmDatabase db;
12618 char *res_name;
12619 char *res_class;
12620 XIMProc callback;
12621 XPointer *client_data;
12622 #ifndef __GNUC__
12623 /* If we're not using GCC, it's probably not XFree86, and this is
12624 probably right, but we can't use something like --pedantic-errors. */
12625 extern Bool XRegisterIMInstantiateCallback(Display*, XrmDatabase, char*,
12626 char*, XIMProc, XPointer*);
12627 #endif
12628 (void)XRegisterIMInstantiateCallback(display, db, res_name, res_class, callback,
12629 client_data);
12631 return 0;
12633 _ACEOF
12634 rm -f conftest.$ac_objext
12635 if { (ac_try="$ac_compile"
12636 case "(($ac_try" in
12637 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12638 *) ac_try_echo=$ac_try;;
12639 esac
12640 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12641 (eval "$ac_compile") 2>conftest.er1
12642 ac_status=$?
12643 grep -v '^ *+' conftest.er1 >conftest.err
12644 rm -f conftest.er1
12645 cat conftest.err >&5
12646 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12647 (exit $ac_status); } && {
12648 test -z "$ac_c_werror_flag" ||
12649 test ! -s conftest.err
12650 } && test -s conftest.$ac_objext; then
12651 emacs_cv_arg6_star=yes
12652 else
12653 echo "$as_me: failed program was:" >&5
12654 sed 's/^/| /' conftest.$ac_ext >&5
12659 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12661 if test "$emacs_cv_arg6_star" = yes; then
12662 cat >>confdefs.h <<\_ACEOF
12663 #define XRegisterIMInstantiateCallback_arg6 XPointer*
12664 _ACEOF
12666 else
12667 cat >>confdefs.h <<\_ACEOF
12668 #define XRegisterIMInstantiateCallback_arg6 XPointer
12669 _ACEOF
12672 CFLAGS=$late_CFLAGS
12675 ### Start of font-backend section.
12676 if test "${HAVE_X11}" != "yes"; then
12677 USE_FONT_BACKEND=no
12680 if test "${USE_FONT_BACKEND}" = "yes"; then
12682 cat >>confdefs.h <<\_ACEOF
12683 #define USE_FONT_BACKEND 1
12684 _ACEOF
12687 ## Use -lXft if available, unless `--with-freetype=no' nor `--with-xft=no'.
12688 HAVE_XFT=maybe
12689 if test "x${with_freetype}" = "xno"; then
12690 with_xft="no";
12692 if test "x${with_xft}" != "xno"; then
12695 succeeded=no
12697 # Extract the first word of "pkg-config", so it can be a program name with args.
12698 set dummy pkg-config; ac_word=$2
12699 { echo "$as_me:$LINENO: checking for $ac_word" >&5
12700 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
12701 if test "${ac_cv_path_PKG_CONFIG+set}" = set; then
12702 echo $ECHO_N "(cached) $ECHO_C" >&6
12703 else
12704 case $PKG_CONFIG in
12705 [\\/]* | ?:[\\/]*)
12706 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
12709 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12710 for as_dir in $PATH
12712 IFS=$as_save_IFS
12713 test -z "$as_dir" && as_dir=.
12714 for ac_exec_ext in '' $ac_executable_extensions; do
12715 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
12716 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
12717 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
12718 break 2
12720 done
12721 done
12722 IFS=$as_save_IFS
12724 test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG="no"
12726 esac
12728 PKG_CONFIG=$ac_cv_path_PKG_CONFIG
12729 if test -n "$PKG_CONFIG"; then
12730 { echo "$as_me:$LINENO: result: $PKG_CONFIG" >&5
12731 echo "${ECHO_T}$PKG_CONFIG" >&6; }
12732 else
12733 { echo "$as_me:$LINENO: result: no" >&5
12734 echo "${ECHO_T}no" >&6; }
12739 if test "$PKG_CONFIG" = "no" ; then
12740 HAVE_XFT=no
12741 else
12742 PKG_CONFIG_MIN_VERSION=0.9.0
12743 if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
12744 { echo "$as_me:$LINENO: checking for xft >= 0.13.0" >&5
12745 echo $ECHO_N "checking for xft >= 0.13.0... $ECHO_C" >&6; }
12747 if $PKG_CONFIG --exists "xft >= 0.13.0" 2>&5; then
12748 { echo "$as_me:$LINENO: result: yes" >&5
12749 echo "${ECHO_T}yes" >&6; }
12750 succeeded=yes
12752 { echo "$as_me:$LINENO: checking XFT_CFLAGS" >&5
12753 echo $ECHO_N "checking XFT_CFLAGS... $ECHO_C" >&6; }
12754 XFT_CFLAGS=`$PKG_CONFIG --cflags "xft >= 0.13.0"|sed -e 's,///*,/,g'`
12755 { echo "$as_me:$LINENO: result: $XFT_CFLAGS" >&5
12756 echo "${ECHO_T}$XFT_CFLAGS" >&6; }
12758 { echo "$as_me:$LINENO: checking XFT_LIBS" >&5
12759 echo $ECHO_N "checking XFT_LIBS... $ECHO_C" >&6; }
12760 XFT_LIBS=`$PKG_CONFIG --libs "xft >= 0.13.0"|sed -e 's,///*,/,g'`
12761 { echo "$as_me:$LINENO: result: $XFT_LIBS" >&5
12762 echo "${ECHO_T}$XFT_LIBS" >&6; }
12763 else
12764 { echo "$as_me:$LINENO: result: no" >&5
12765 echo "${ECHO_T}no" >&6; }
12766 XFT_CFLAGS=""
12767 XFT_LIBS=""
12768 ## If we have a custom action on failure, don't print errors, but
12769 ## do set a variable so people can do so.
12770 XFT_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "xft >= 0.13.0"`
12776 else
12777 echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
12778 echo "*** See http://www.freedesktop.org/software/pkgconfig"
12782 if test $succeeded = yes; then
12784 else
12785 HAVE_XFT=no
12788 if test "$HAVE_XFT" != no; then
12789 OLD_CPPFLAGS="$CPPFLAGS"
12790 OLD_CFLAGS="$CFLAGS"
12791 OLD_LIBS="$LIBS"
12792 CPPFLAGS="$CPPFLAGS $XFT_CFLAGS"
12793 CFLAGS="$CFLAGS $XFT_CFLAGS"
12794 LIBS="$XFT_LIBS $LIBS"
12795 if test "${ac_cv_header_X11_Xft_Xft_h+set}" = set; then
12796 { echo "$as_me:$LINENO: checking for X11/Xft/Xft.h" >&5
12797 echo $ECHO_N "checking for X11/Xft/Xft.h... $ECHO_C" >&6; }
12798 if test "${ac_cv_header_X11_Xft_Xft_h+set}" = set; then
12799 echo $ECHO_N "(cached) $ECHO_C" >&6
12801 { echo "$as_me:$LINENO: result: $ac_cv_header_X11_Xft_Xft_h" >&5
12802 echo "${ECHO_T}$ac_cv_header_X11_Xft_Xft_h" >&6; }
12803 else
12804 # Is the header compilable?
12805 { echo "$as_me:$LINENO: checking X11/Xft/Xft.h usability" >&5
12806 echo $ECHO_N "checking X11/Xft/Xft.h usability... $ECHO_C" >&6; }
12807 cat >conftest.$ac_ext <<_ACEOF
12808 /* confdefs.h. */
12809 _ACEOF
12810 cat confdefs.h >>conftest.$ac_ext
12811 cat >>conftest.$ac_ext <<_ACEOF
12812 /* end confdefs.h. */
12813 $ac_includes_default
12814 #include <X11/Xft/Xft.h>
12815 _ACEOF
12816 rm -f conftest.$ac_objext
12817 if { (ac_try="$ac_compile"
12818 case "(($ac_try" in
12819 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12820 *) ac_try_echo=$ac_try;;
12821 esac
12822 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12823 (eval "$ac_compile") 2>conftest.er1
12824 ac_status=$?
12825 grep -v '^ *+' conftest.er1 >conftest.err
12826 rm -f conftest.er1
12827 cat conftest.err >&5
12828 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12829 (exit $ac_status); } && {
12830 test -z "$ac_c_werror_flag" ||
12831 test ! -s conftest.err
12832 } && test -s conftest.$ac_objext; then
12833 ac_header_compiler=yes
12834 else
12835 echo "$as_me: failed program was:" >&5
12836 sed 's/^/| /' conftest.$ac_ext >&5
12838 ac_header_compiler=no
12841 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12842 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
12843 echo "${ECHO_T}$ac_header_compiler" >&6; }
12845 # Is the header present?
12846 { echo "$as_me:$LINENO: checking X11/Xft/Xft.h presence" >&5
12847 echo $ECHO_N "checking X11/Xft/Xft.h presence... $ECHO_C" >&6; }
12848 cat >conftest.$ac_ext <<_ACEOF
12849 /* confdefs.h. */
12850 _ACEOF
12851 cat confdefs.h >>conftest.$ac_ext
12852 cat >>conftest.$ac_ext <<_ACEOF
12853 /* end confdefs.h. */
12854 #include <X11/Xft/Xft.h>
12855 _ACEOF
12856 if { (ac_try="$ac_cpp conftest.$ac_ext"
12857 case "(($ac_try" in
12858 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12859 *) ac_try_echo=$ac_try;;
12860 esac
12861 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12862 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
12863 ac_status=$?
12864 grep -v '^ *+' conftest.er1 >conftest.err
12865 rm -f conftest.er1
12866 cat conftest.err >&5
12867 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12868 (exit $ac_status); } >/dev/null && {
12869 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
12870 test ! -s conftest.err
12871 }; then
12872 ac_header_preproc=yes
12873 else
12874 echo "$as_me: failed program was:" >&5
12875 sed 's/^/| /' conftest.$ac_ext >&5
12877 ac_header_preproc=no
12880 rm -f conftest.err conftest.$ac_ext
12881 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
12882 echo "${ECHO_T}$ac_header_preproc" >&6; }
12884 # So? What about this header?
12885 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
12886 yes:no: )
12887 { echo "$as_me:$LINENO: WARNING: X11/Xft/Xft.h: accepted by the compiler, rejected by the preprocessor!" >&5
12888 echo "$as_me: WARNING: X11/Xft/Xft.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
12889 { echo "$as_me:$LINENO: WARNING: X11/Xft/Xft.h: proceeding with the compiler's result" >&5
12890 echo "$as_me: WARNING: X11/Xft/Xft.h: proceeding with the compiler's result" >&2;}
12891 ac_header_preproc=yes
12893 no:yes:* )
12894 { echo "$as_me:$LINENO: WARNING: X11/Xft/Xft.h: present but cannot be compiled" >&5
12895 echo "$as_me: WARNING: X11/Xft/Xft.h: present but cannot be compiled" >&2;}
12896 { echo "$as_me:$LINENO: WARNING: X11/Xft/Xft.h: check for missing prerequisite headers?" >&5
12897 echo "$as_me: WARNING: X11/Xft/Xft.h: check for missing prerequisite headers?" >&2;}
12898 { echo "$as_me:$LINENO: WARNING: X11/Xft/Xft.h: see the Autoconf documentation" >&5
12899 echo "$as_me: WARNING: X11/Xft/Xft.h: see the Autoconf documentation" >&2;}
12900 { echo "$as_me:$LINENO: WARNING: X11/Xft/Xft.h: section \"Present But Cannot Be Compiled\"" >&5
12901 echo "$as_me: WARNING: X11/Xft/Xft.h: section \"Present But Cannot Be Compiled\"" >&2;}
12902 { echo "$as_me:$LINENO: WARNING: X11/Xft/Xft.h: proceeding with the preprocessor's result" >&5
12903 echo "$as_me: WARNING: X11/Xft/Xft.h: proceeding with the preprocessor's result" >&2;}
12904 { echo "$as_me:$LINENO: WARNING: X11/Xft/Xft.h: in the future, the compiler will take precedence" >&5
12905 echo "$as_me: WARNING: X11/Xft/Xft.h: in the future, the compiler will take precedence" >&2;}
12908 esac
12909 { echo "$as_me:$LINENO: checking for X11/Xft/Xft.h" >&5
12910 echo $ECHO_N "checking for X11/Xft/Xft.h... $ECHO_C" >&6; }
12911 if test "${ac_cv_header_X11_Xft_Xft_h+set}" = set; then
12912 echo $ECHO_N "(cached) $ECHO_C" >&6
12913 else
12914 ac_cv_header_X11_Xft_Xft_h=$ac_header_preproc
12916 { echo "$as_me:$LINENO: result: $ac_cv_header_X11_Xft_Xft_h" >&5
12917 echo "${ECHO_T}$ac_cv_header_X11_Xft_Xft_h" >&6; }
12920 if test $ac_cv_header_X11_Xft_Xft_h = yes; then
12921 { echo "$as_me:$LINENO: checking for XftFontOpen in -lXft" >&5
12922 echo $ECHO_N "checking for XftFontOpen in -lXft... $ECHO_C" >&6; }
12923 if test "${ac_cv_lib_Xft_XftFontOpen+set}" = set; then
12924 echo $ECHO_N "(cached) $ECHO_C" >&6
12925 else
12926 ac_check_lib_save_LIBS=$LIBS
12927 LIBS="-lXft $XFT_LIBS $LIBS"
12928 cat >conftest.$ac_ext <<_ACEOF
12929 /* confdefs.h. */
12930 _ACEOF
12931 cat confdefs.h >>conftest.$ac_ext
12932 cat >>conftest.$ac_ext <<_ACEOF
12933 /* end confdefs.h. */
12935 /* Override any GCC internal prototype to avoid an error.
12936 Use char because int might match the return type of a GCC
12937 builtin and then its argument prototype would still apply. */
12938 #ifdef __cplusplus
12939 extern "C"
12940 #endif
12941 char XftFontOpen ();
12943 main ()
12945 return XftFontOpen ();
12947 return 0;
12949 _ACEOF
12950 rm -f conftest.$ac_objext conftest$ac_exeext
12951 if { (ac_try="$ac_link"
12952 case "(($ac_try" in
12953 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12954 *) ac_try_echo=$ac_try;;
12955 esac
12956 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12957 (eval "$ac_link") 2>conftest.er1
12958 ac_status=$?
12959 grep -v '^ *+' conftest.er1 >conftest.err
12960 rm -f conftest.er1
12961 cat conftest.err >&5
12962 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12963 (exit $ac_status); } && {
12964 test -z "$ac_c_werror_flag" ||
12965 test ! -s conftest.err
12966 } && test -s conftest$ac_exeext &&
12967 $as_test_x conftest$ac_exeext; then
12968 ac_cv_lib_Xft_XftFontOpen=yes
12969 else
12970 echo "$as_me: failed program was:" >&5
12971 sed 's/^/| /' conftest.$ac_ext >&5
12973 ac_cv_lib_Xft_XftFontOpen=no
12976 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
12977 conftest$ac_exeext conftest.$ac_ext
12978 LIBS=$ac_check_lib_save_LIBS
12980 { echo "$as_me:$LINENO: result: $ac_cv_lib_Xft_XftFontOpen" >&5
12981 echo "${ECHO_T}$ac_cv_lib_Xft_XftFontOpen" >&6; }
12982 if test $ac_cv_lib_Xft_XftFontOpen = yes; then
12983 HAVE_XFT=yes
12990 if test "${HAVE_XFT}" = "yes"; then
12992 cat >>confdefs.h <<\_ACEOF
12993 #define HAVE_XFT 1
12994 _ACEOF
12997 C_SWITCH_X_SITE="$C_SWITCH_X_SITE $XFT_CFLAGS"
12998 else
12999 CPPFLAGS="$OLD_CPPFLAGS"
13000 CFLAGS="$OLD_CFLAGS"
13001 LIBS="$OLD_LIBS"
13002 fi # "${HAVE_XFT}" = "yes"
13003 fi # "$HAVE_XFT" != no
13004 fi # "x${with_xft}" != "xno"
13006 if test "$HAVE_XFT" != "yes"; then
13007 HAVE_XFT=no
13011 HAVE_FREETYPE=no
13012 ### Use -lfreetype if available, unless `--with-freetype=no'.
13013 if test "${HAVE_XFT}" = "yes"; then
13014 HAVE_FREETYPE=yes
13015 elif test "x${with_freetype}" != "xno"; then
13018 succeeded=no
13020 # Extract the first word of "pkg-config", so it can be a program name with args.
13021 set dummy pkg-config; ac_word=$2
13022 { echo "$as_me:$LINENO: checking for $ac_word" >&5
13023 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
13024 if test "${ac_cv_path_PKG_CONFIG+set}" = set; then
13025 echo $ECHO_N "(cached) $ECHO_C" >&6
13026 else
13027 case $PKG_CONFIG in
13028 [\\/]* | ?:[\\/]*)
13029 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
13032 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13033 for as_dir in $PATH
13035 IFS=$as_save_IFS
13036 test -z "$as_dir" && as_dir=.
13037 for ac_exec_ext in '' $ac_executable_extensions; do
13038 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
13039 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
13040 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
13041 break 2
13043 done
13044 done
13045 IFS=$as_save_IFS
13047 test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG="no"
13049 esac
13051 PKG_CONFIG=$ac_cv_path_PKG_CONFIG
13052 if test -n "$PKG_CONFIG"; then
13053 { echo "$as_me:$LINENO: result: $PKG_CONFIG" >&5
13054 echo "${ECHO_T}$PKG_CONFIG" >&6; }
13055 else
13056 { echo "$as_me:$LINENO: result: no" >&5
13057 echo "${ECHO_T}no" >&6; }
13062 if test "$PKG_CONFIG" = "no" ; then
13063 HAVE_FREETYPE=no
13064 else
13065 PKG_CONFIG_MIN_VERSION=0.9.0
13066 if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
13067 { echo "$as_me:$LINENO: checking for freetype2" >&5
13068 echo $ECHO_N "checking for freetype2... $ECHO_C" >&6; }
13070 if $PKG_CONFIG --exists "freetype2" 2>&5; then
13071 { echo "$as_me:$LINENO: result: yes" >&5
13072 echo "${ECHO_T}yes" >&6; }
13073 succeeded=yes
13075 { echo "$as_me:$LINENO: checking FREETYPE_CFLAGS" >&5
13076 echo $ECHO_N "checking FREETYPE_CFLAGS... $ECHO_C" >&6; }
13077 FREETYPE_CFLAGS=`$PKG_CONFIG --cflags "freetype2"|sed -e 's,///*,/,g'`
13078 { echo "$as_me:$LINENO: result: $FREETYPE_CFLAGS" >&5
13079 echo "${ECHO_T}$FREETYPE_CFLAGS" >&6; }
13081 { echo "$as_me:$LINENO: checking FREETYPE_LIBS" >&5
13082 echo $ECHO_N "checking FREETYPE_LIBS... $ECHO_C" >&6; }
13083 FREETYPE_LIBS=`$PKG_CONFIG --libs "freetype2"|sed -e 's,///*,/,g'`
13084 { echo "$as_me:$LINENO: result: $FREETYPE_LIBS" >&5
13085 echo "${ECHO_T}$FREETYPE_LIBS" >&6; }
13086 else
13087 { echo "$as_me:$LINENO: result: no" >&5
13088 echo "${ECHO_T}no" >&6; }
13089 FREETYPE_CFLAGS=""
13090 FREETYPE_LIBS=""
13091 ## If we have a custom action on failure, don't print errors, but
13092 ## do set a variable so people can do so.
13093 FREETYPE_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "freetype2"`
13099 else
13100 echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
13101 echo "*** See http://www.freedesktop.org/software/pkgconfig"
13105 if test $succeeded = yes; then
13106 HAVE_FREETYPE=yes
13107 else
13108 HAVE_FREETYPE=no
13111 if test "${HAVE_FREETYPE}" = "yes"; then
13113 succeeded=no
13115 # Extract the first word of "pkg-config", so it can be a program name with args.
13116 set dummy pkg-config; ac_word=$2
13117 { echo "$as_me:$LINENO: checking for $ac_word" >&5
13118 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
13119 if test "${ac_cv_path_PKG_CONFIG+set}" = set; then
13120 echo $ECHO_N "(cached) $ECHO_C" >&6
13121 else
13122 case $PKG_CONFIG in
13123 [\\/]* | ?:[\\/]*)
13124 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
13127 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13128 for as_dir in $PATH
13130 IFS=$as_save_IFS
13131 test -z "$as_dir" && as_dir=.
13132 for ac_exec_ext in '' $ac_executable_extensions; do
13133 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
13134 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
13135 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
13136 break 2
13138 done
13139 done
13140 IFS=$as_save_IFS
13142 test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG="no"
13144 esac
13146 PKG_CONFIG=$ac_cv_path_PKG_CONFIG
13147 if test -n "$PKG_CONFIG"; then
13148 { echo "$as_me:$LINENO: result: $PKG_CONFIG" >&5
13149 echo "${ECHO_T}$PKG_CONFIG" >&6; }
13150 else
13151 { echo "$as_me:$LINENO: result: no" >&5
13152 echo "${ECHO_T}no" >&6; }
13157 if test "$PKG_CONFIG" = "no" ; then
13158 HAVE_FC=no
13159 else
13160 PKG_CONFIG_MIN_VERSION=0.9.0
13161 if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
13162 { echo "$as_me:$LINENO: checking for fontconfig" >&5
13163 echo $ECHO_N "checking for fontconfig... $ECHO_C" >&6; }
13165 if $PKG_CONFIG --exists "fontconfig" 2>&5; then
13166 { echo "$as_me:$LINENO: result: yes" >&5
13167 echo "${ECHO_T}yes" >&6; }
13168 succeeded=yes
13170 { echo "$as_me:$LINENO: checking FONTCONFIG_CFLAGS" >&5
13171 echo $ECHO_N "checking FONTCONFIG_CFLAGS... $ECHO_C" >&6; }
13172 FONTCONFIG_CFLAGS=`$PKG_CONFIG --cflags "fontconfig"|sed -e 's,///*,/,g'`
13173 { echo "$as_me:$LINENO: result: $FONTCONFIG_CFLAGS" >&5
13174 echo "${ECHO_T}$FONTCONFIG_CFLAGS" >&6; }
13176 { echo "$as_me:$LINENO: checking FONTCONFIG_LIBS" >&5
13177 echo $ECHO_N "checking FONTCONFIG_LIBS... $ECHO_C" >&6; }
13178 FONTCONFIG_LIBS=`$PKG_CONFIG --libs "fontconfig"|sed -e 's,///*,/,g'`
13179 { echo "$as_me:$LINENO: result: $FONTCONFIG_LIBS" >&5
13180 echo "${ECHO_T}$FONTCONFIG_LIBS" >&6; }
13181 else
13182 { echo "$as_me:$LINENO: result: no" >&5
13183 echo "${ECHO_T}no" >&6; }
13184 FONTCONFIG_CFLAGS=""
13185 FONTCONFIG_LIBS=""
13186 ## If we have a custom action on failure, don't print errors, but
13187 ## do set a variable so people can do so.
13188 FONTCONFIG_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "fontconfig"`
13194 else
13195 echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
13196 echo "*** See http://www.freedesktop.org/software/pkgconfig"
13200 if test $succeeded = yes; then
13201 HAVE_FC=yes
13202 else
13203 HAVE_FC=no
13206 if test "${HAVE_FC}" = "no"; then
13207 HAVE_FREETYPE=no
13212 HAVE_LIBOTF=no
13213 if test "${HAVE_FREETYPE}" = "yes"; then
13215 cat >>confdefs.h <<\_ACEOF
13216 #define HAVE_FREETYPE 1
13217 _ACEOF
13219 if test "${with_libotf}" != "no"; then
13221 succeeded=no
13223 # Extract the first word of "pkg-config", so it can be a program name with args.
13224 set dummy pkg-config; ac_word=$2
13225 { echo "$as_me:$LINENO: checking for $ac_word" >&5
13226 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
13227 if test "${ac_cv_path_PKG_CONFIG+set}" = set; then
13228 echo $ECHO_N "(cached) $ECHO_C" >&6
13229 else
13230 case $PKG_CONFIG in
13231 [\\/]* | ?:[\\/]*)
13232 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
13235 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13236 for as_dir in $PATH
13238 IFS=$as_save_IFS
13239 test -z "$as_dir" && as_dir=.
13240 for ac_exec_ext in '' $ac_executable_extensions; do
13241 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
13242 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
13243 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
13244 break 2
13246 done
13247 done
13248 IFS=$as_save_IFS
13250 test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG="no"
13252 esac
13254 PKG_CONFIG=$ac_cv_path_PKG_CONFIG
13255 if test -n "$PKG_CONFIG"; then
13256 { echo "$as_me:$LINENO: result: $PKG_CONFIG" >&5
13257 echo "${ECHO_T}$PKG_CONFIG" >&6; }
13258 else
13259 { echo "$as_me:$LINENO: result: no" >&5
13260 echo "${ECHO_T}no" >&6; }
13265 if test "$PKG_CONFIG" = "no" ; then
13266 HAVE_LIBOTF=no
13267 else
13268 PKG_CONFIG_MIN_VERSION=0.9.0
13269 if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
13270 { echo "$as_me:$LINENO: checking for libotf" >&5
13271 echo $ECHO_N "checking for libotf... $ECHO_C" >&6; }
13273 if $PKG_CONFIG --exists "libotf" 2>&5; then
13274 { echo "$as_me:$LINENO: result: yes" >&5
13275 echo "${ECHO_T}yes" >&6; }
13276 succeeded=yes
13278 { echo "$as_me:$LINENO: checking LIBOTF_CFLAGS" >&5
13279 echo $ECHO_N "checking LIBOTF_CFLAGS... $ECHO_C" >&6; }
13280 LIBOTF_CFLAGS=`$PKG_CONFIG --cflags "libotf"|sed -e 's,///*,/,g'`
13281 { echo "$as_me:$LINENO: result: $LIBOTF_CFLAGS" >&5
13282 echo "${ECHO_T}$LIBOTF_CFLAGS" >&6; }
13284 { echo "$as_me:$LINENO: checking LIBOTF_LIBS" >&5
13285 echo $ECHO_N "checking LIBOTF_LIBS... $ECHO_C" >&6; }
13286 LIBOTF_LIBS=`$PKG_CONFIG --libs "libotf"|sed -e 's,///*,/,g'`
13287 { echo "$as_me:$LINENO: result: $LIBOTF_LIBS" >&5
13288 echo "${ECHO_T}$LIBOTF_LIBS" >&6; }
13289 else
13290 { echo "$as_me:$LINENO: result: no" >&5
13291 echo "${ECHO_T}no" >&6; }
13292 LIBOTF_CFLAGS=""
13293 LIBOTF_LIBS=""
13294 ## If we have a custom action on failure, don't print errors, but
13295 ## do set a variable so people can do so.
13296 LIBOTF_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "libotf"`
13302 else
13303 echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
13304 echo "*** See http://www.freedesktop.org/software/pkgconfig"
13308 if test $succeeded = yes; then
13309 HAVE_LIBOTF=yes
13310 else
13311 HAVE_LIBOTF=no
13314 if test "$HAVE_LIBOTF" = "yes"; then
13316 cat >>confdefs.h <<\_ACEOF
13317 #define HAVE_LIBOTF 1
13318 _ACEOF
13324 HAVE_M17N_FLT=no
13325 if test "${with_m17n_flt}" != "no"; then
13327 succeeded=no
13329 # Extract the first word of "pkg-config", so it can be a program name with args.
13330 set dummy pkg-config; ac_word=$2
13331 { echo "$as_me:$LINENO: checking for $ac_word" >&5
13332 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
13333 if test "${ac_cv_path_PKG_CONFIG+set}" = set; then
13334 echo $ECHO_N "(cached) $ECHO_C" >&6
13335 else
13336 case $PKG_CONFIG in
13337 [\\/]* | ?:[\\/]*)
13338 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
13341 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13342 for as_dir in $PATH
13344 IFS=$as_save_IFS
13345 test -z "$as_dir" && as_dir=.
13346 for ac_exec_ext in '' $ac_executable_extensions; do
13347 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
13348 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
13349 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
13350 break 2
13352 done
13353 done
13354 IFS=$as_save_IFS
13356 test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG="no"
13358 esac
13360 PKG_CONFIG=$ac_cv_path_PKG_CONFIG
13361 if test -n "$PKG_CONFIG"; then
13362 { echo "$as_me:$LINENO: result: $PKG_CONFIG" >&5
13363 echo "${ECHO_T}$PKG_CONFIG" >&6; }
13364 else
13365 { echo "$as_me:$LINENO: result: no" >&5
13366 echo "${ECHO_T}no" >&6; }
13371 if test "$PKG_CONFIG" = "no" ; then
13372 HAVE_M17N_FLT=no
13373 else
13374 PKG_CONFIG_MIN_VERSION=0.9.0
13375 if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
13376 { echo "$as_me:$LINENO: checking for m17n-flt" >&5
13377 echo $ECHO_N "checking for m17n-flt... $ECHO_C" >&6; }
13379 if $PKG_CONFIG --exists "m17n-flt" 2>&5; then
13380 { echo "$as_me:$LINENO: result: yes" >&5
13381 echo "${ECHO_T}yes" >&6; }
13382 succeeded=yes
13384 { echo "$as_me:$LINENO: checking M17N_FLT_CFLAGS" >&5
13385 echo $ECHO_N "checking M17N_FLT_CFLAGS... $ECHO_C" >&6; }
13386 M17N_FLT_CFLAGS=`$PKG_CONFIG --cflags "m17n-flt"|sed -e 's,///*,/,g'`
13387 { echo "$as_me:$LINENO: result: $M17N_FLT_CFLAGS" >&5
13388 echo "${ECHO_T}$M17N_FLT_CFLAGS" >&6; }
13390 { echo "$as_me:$LINENO: checking M17N_FLT_LIBS" >&5
13391 echo $ECHO_N "checking M17N_FLT_LIBS... $ECHO_C" >&6; }
13392 M17N_FLT_LIBS=`$PKG_CONFIG --libs "m17n-flt"|sed -e 's,///*,/,g'`
13393 { echo "$as_me:$LINENO: result: $M17N_FLT_LIBS" >&5
13394 echo "${ECHO_T}$M17N_FLT_LIBS" >&6; }
13395 else
13396 { echo "$as_me:$LINENO: result: no" >&5
13397 echo "${ECHO_T}no" >&6; }
13398 M17N_FLT_CFLAGS=""
13399 M17N_FLT_LIBS=""
13400 ## If we have a custom action on failure, don't print errors, but
13401 ## do set a variable so people can do so.
13402 M17N_FLT_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "m17n-flt"`
13408 else
13409 echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
13410 echo "*** See http://www.freedesktop.org/software/pkgconfig"
13414 if test $succeeded = yes; then
13415 HAVE_M17N_FLT=yes
13416 else
13417 HAVE_M17N_FLT=no
13420 if test "$HAVE_M17N_FLT" = "yes"; then
13422 cat >>confdefs.h <<\_ACEOF
13423 #define HAVE_M17N_FLT 1
13424 _ACEOF
13438 fi # "${USE_FONT_BACKEND}" = "yes"
13439 ### End of font-backend section.
13441 ### Use -lXpm if available, unless `--with-xpm=no'.
13442 HAVE_XPM=no
13443 if test "${HAVE_X11}" = "yes"; then
13444 if test "${with_xpm}" != "no"; then
13445 if test "${ac_cv_header_X11_xpm_h+set}" = set; then
13446 { echo "$as_me:$LINENO: checking for X11/xpm.h" >&5
13447 echo $ECHO_N "checking for X11/xpm.h... $ECHO_C" >&6; }
13448 if test "${ac_cv_header_X11_xpm_h+set}" = set; then
13449 echo $ECHO_N "(cached) $ECHO_C" >&6
13451 { echo "$as_me:$LINENO: result: $ac_cv_header_X11_xpm_h" >&5
13452 echo "${ECHO_T}$ac_cv_header_X11_xpm_h" >&6; }
13453 else
13454 # Is the header compilable?
13455 { echo "$as_me:$LINENO: checking X11/xpm.h usability" >&5
13456 echo $ECHO_N "checking X11/xpm.h usability... $ECHO_C" >&6; }
13457 cat >conftest.$ac_ext <<_ACEOF
13458 /* confdefs.h. */
13459 _ACEOF
13460 cat confdefs.h >>conftest.$ac_ext
13461 cat >>conftest.$ac_ext <<_ACEOF
13462 /* end confdefs.h. */
13463 $ac_includes_default
13464 #include <X11/xpm.h>
13465 _ACEOF
13466 rm -f conftest.$ac_objext
13467 if { (ac_try="$ac_compile"
13468 case "(($ac_try" in
13469 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13470 *) ac_try_echo=$ac_try;;
13471 esac
13472 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13473 (eval "$ac_compile") 2>conftest.er1
13474 ac_status=$?
13475 grep -v '^ *+' conftest.er1 >conftest.err
13476 rm -f conftest.er1
13477 cat conftest.err >&5
13478 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13479 (exit $ac_status); } && {
13480 test -z "$ac_c_werror_flag" ||
13481 test ! -s conftest.err
13482 } && test -s conftest.$ac_objext; then
13483 ac_header_compiler=yes
13484 else
13485 echo "$as_me: failed program was:" >&5
13486 sed 's/^/| /' conftest.$ac_ext >&5
13488 ac_header_compiler=no
13491 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13492 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
13493 echo "${ECHO_T}$ac_header_compiler" >&6; }
13495 # Is the header present?
13496 { echo "$as_me:$LINENO: checking X11/xpm.h presence" >&5
13497 echo $ECHO_N "checking X11/xpm.h presence... $ECHO_C" >&6; }
13498 cat >conftest.$ac_ext <<_ACEOF
13499 /* confdefs.h. */
13500 _ACEOF
13501 cat confdefs.h >>conftest.$ac_ext
13502 cat >>conftest.$ac_ext <<_ACEOF
13503 /* end confdefs.h. */
13504 #include <X11/xpm.h>
13505 _ACEOF
13506 if { (ac_try="$ac_cpp conftest.$ac_ext"
13507 case "(($ac_try" in
13508 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13509 *) ac_try_echo=$ac_try;;
13510 esac
13511 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13512 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
13513 ac_status=$?
13514 grep -v '^ *+' conftest.er1 >conftest.err
13515 rm -f conftest.er1
13516 cat conftest.err >&5
13517 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13518 (exit $ac_status); } >/dev/null && {
13519 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
13520 test ! -s conftest.err
13521 }; then
13522 ac_header_preproc=yes
13523 else
13524 echo "$as_me: failed program was:" >&5
13525 sed 's/^/| /' conftest.$ac_ext >&5
13527 ac_header_preproc=no
13530 rm -f conftest.err conftest.$ac_ext
13531 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
13532 echo "${ECHO_T}$ac_header_preproc" >&6; }
13534 # So? What about this header?
13535 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
13536 yes:no: )
13537 { echo "$as_me:$LINENO: WARNING: X11/xpm.h: accepted by the compiler, rejected by the preprocessor!" >&5
13538 echo "$as_me: WARNING: X11/xpm.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
13539 { echo "$as_me:$LINENO: WARNING: X11/xpm.h: proceeding with the compiler's result" >&5
13540 echo "$as_me: WARNING: X11/xpm.h: proceeding with the compiler's result" >&2;}
13541 ac_header_preproc=yes
13543 no:yes:* )
13544 { echo "$as_me:$LINENO: WARNING: X11/xpm.h: present but cannot be compiled" >&5
13545 echo "$as_me: WARNING: X11/xpm.h: present but cannot be compiled" >&2;}
13546 { echo "$as_me:$LINENO: WARNING: X11/xpm.h: check for missing prerequisite headers?" >&5
13547 echo "$as_me: WARNING: X11/xpm.h: check for missing prerequisite headers?" >&2;}
13548 { echo "$as_me:$LINENO: WARNING: X11/xpm.h: see the Autoconf documentation" >&5
13549 echo "$as_me: WARNING: X11/xpm.h: see the Autoconf documentation" >&2;}
13550 { echo "$as_me:$LINENO: WARNING: X11/xpm.h: section \"Present But Cannot Be Compiled\"" >&5
13551 echo "$as_me: WARNING: X11/xpm.h: section \"Present But Cannot Be Compiled\"" >&2;}
13552 { echo "$as_me:$LINENO: WARNING: X11/xpm.h: proceeding with the preprocessor's result" >&5
13553 echo "$as_me: WARNING: X11/xpm.h: proceeding with the preprocessor's result" >&2;}
13554 { echo "$as_me:$LINENO: WARNING: X11/xpm.h: in the future, the compiler will take precedence" >&5
13555 echo "$as_me: WARNING: X11/xpm.h: in the future, the compiler will take precedence" >&2;}
13558 esac
13559 { echo "$as_me:$LINENO: checking for X11/xpm.h" >&5
13560 echo $ECHO_N "checking for X11/xpm.h... $ECHO_C" >&6; }
13561 if test "${ac_cv_header_X11_xpm_h+set}" = set; then
13562 echo $ECHO_N "(cached) $ECHO_C" >&6
13563 else
13564 ac_cv_header_X11_xpm_h=$ac_header_preproc
13566 { echo "$as_me:$LINENO: result: $ac_cv_header_X11_xpm_h" >&5
13567 echo "${ECHO_T}$ac_cv_header_X11_xpm_h" >&6; }
13570 if test $ac_cv_header_X11_xpm_h = yes; then
13571 { echo "$as_me:$LINENO: checking for XpmReadFileToPixmap in -lXpm" >&5
13572 echo $ECHO_N "checking for XpmReadFileToPixmap in -lXpm... $ECHO_C" >&6; }
13573 if test "${ac_cv_lib_Xpm_XpmReadFileToPixmap+set}" = set; then
13574 echo $ECHO_N "(cached) $ECHO_C" >&6
13575 else
13576 ac_check_lib_save_LIBS=$LIBS
13577 LIBS="-lXpm -lX11 $LIBS"
13578 cat >conftest.$ac_ext <<_ACEOF
13579 /* confdefs.h. */
13580 _ACEOF
13581 cat confdefs.h >>conftest.$ac_ext
13582 cat >>conftest.$ac_ext <<_ACEOF
13583 /* end confdefs.h. */
13585 /* Override any GCC internal prototype to avoid an error.
13586 Use char because int might match the return type of a GCC
13587 builtin and then its argument prototype would still apply. */
13588 #ifdef __cplusplus
13589 extern "C"
13590 #endif
13591 char XpmReadFileToPixmap ();
13593 main ()
13595 return XpmReadFileToPixmap ();
13597 return 0;
13599 _ACEOF
13600 rm -f conftest.$ac_objext conftest$ac_exeext
13601 if { (ac_try="$ac_link"
13602 case "(($ac_try" in
13603 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13604 *) ac_try_echo=$ac_try;;
13605 esac
13606 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13607 (eval "$ac_link") 2>conftest.er1
13608 ac_status=$?
13609 grep -v '^ *+' conftest.er1 >conftest.err
13610 rm -f conftest.er1
13611 cat conftest.err >&5
13612 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13613 (exit $ac_status); } && {
13614 test -z "$ac_c_werror_flag" ||
13615 test ! -s conftest.err
13616 } && test -s conftest$ac_exeext &&
13617 $as_test_x conftest$ac_exeext; then
13618 ac_cv_lib_Xpm_XpmReadFileToPixmap=yes
13619 else
13620 echo "$as_me: failed program was:" >&5
13621 sed 's/^/| /' conftest.$ac_ext >&5
13623 ac_cv_lib_Xpm_XpmReadFileToPixmap=no
13626 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
13627 conftest$ac_exeext conftest.$ac_ext
13628 LIBS=$ac_check_lib_save_LIBS
13630 { echo "$as_me:$LINENO: result: $ac_cv_lib_Xpm_XpmReadFileToPixmap" >&5
13631 echo "${ECHO_T}$ac_cv_lib_Xpm_XpmReadFileToPixmap" >&6; }
13632 if test $ac_cv_lib_Xpm_XpmReadFileToPixmap = yes; then
13633 HAVE_XPM=yes
13639 if test "${HAVE_XPM}" = "yes"; then
13640 { echo "$as_me:$LINENO: checking for XpmReturnAllocPixels preprocessor define" >&5
13641 echo $ECHO_N "checking for XpmReturnAllocPixels preprocessor define... $ECHO_C" >&6; }
13642 cat >conftest.$ac_ext <<_ACEOF
13643 /* confdefs.h. */
13644 _ACEOF
13645 cat confdefs.h >>conftest.$ac_ext
13646 cat >>conftest.$ac_ext <<_ACEOF
13647 /* end confdefs.h. */
13648 #include "X11/xpm.h"
13649 #ifndef XpmReturnAllocPixels
13650 no_return_alloc_pixels
13651 #endif
13653 _ACEOF
13654 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
13655 $EGREP "no_return_alloc_pixels" >/dev/null 2>&1; then
13656 HAVE_XPM=no
13657 else
13658 HAVE_XPM=yes
13660 rm -f conftest*
13663 if test "${HAVE_XPM}" = "yes"; then
13664 { echo "$as_me:$LINENO: result: yes" >&5
13665 echo "${ECHO_T}yes" >&6; }
13666 else
13667 { echo "$as_me:$LINENO: result: no" >&5
13668 echo "${ECHO_T}no" >&6; }
13673 if test "${HAVE_XPM}" = "yes"; then
13675 cat >>confdefs.h <<\_ACEOF
13676 #define HAVE_XPM 1
13677 _ACEOF
13682 ### Use -ljpeg if available, unless `--with-jpeg=no'.
13683 HAVE_JPEG=no
13684 if test "${HAVE_X11}" = "yes"; then
13685 if test "${with_jpeg}" != "no"; then
13686 if test "${ac_cv_header_jerror_h+set}" = set; then
13687 { echo "$as_me:$LINENO: checking for jerror.h" >&5
13688 echo $ECHO_N "checking for jerror.h... $ECHO_C" >&6; }
13689 if test "${ac_cv_header_jerror_h+set}" = set; then
13690 echo $ECHO_N "(cached) $ECHO_C" >&6
13692 { echo "$as_me:$LINENO: result: $ac_cv_header_jerror_h" >&5
13693 echo "${ECHO_T}$ac_cv_header_jerror_h" >&6; }
13694 else
13695 # Is the header compilable?
13696 { echo "$as_me:$LINENO: checking jerror.h usability" >&5
13697 echo $ECHO_N "checking jerror.h usability... $ECHO_C" >&6; }
13698 cat >conftest.$ac_ext <<_ACEOF
13699 /* confdefs.h. */
13700 _ACEOF
13701 cat confdefs.h >>conftest.$ac_ext
13702 cat >>conftest.$ac_ext <<_ACEOF
13703 /* end confdefs.h. */
13704 $ac_includes_default
13705 #include <jerror.h>
13706 _ACEOF
13707 rm -f conftest.$ac_objext
13708 if { (ac_try="$ac_compile"
13709 case "(($ac_try" in
13710 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13711 *) ac_try_echo=$ac_try;;
13712 esac
13713 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13714 (eval "$ac_compile") 2>conftest.er1
13715 ac_status=$?
13716 grep -v '^ *+' conftest.er1 >conftest.err
13717 rm -f conftest.er1
13718 cat conftest.err >&5
13719 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13720 (exit $ac_status); } && {
13721 test -z "$ac_c_werror_flag" ||
13722 test ! -s conftest.err
13723 } && test -s conftest.$ac_objext; then
13724 ac_header_compiler=yes
13725 else
13726 echo "$as_me: failed program was:" >&5
13727 sed 's/^/| /' conftest.$ac_ext >&5
13729 ac_header_compiler=no
13732 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13733 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
13734 echo "${ECHO_T}$ac_header_compiler" >&6; }
13736 # Is the header present?
13737 { echo "$as_me:$LINENO: checking jerror.h presence" >&5
13738 echo $ECHO_N "checking jerror.h presence... $ECHO_C" >&6; }
13739 cat >conftest.$ac_ext <<_ACEOF
13740 /* confdefs.h. */
13741 _ACEOF
13742 cat confdefs.h >>conftest.$ac_ext
13743 cat >>conftest.$ac_ext <<_ACEOF
13744 /* end confdefs.h. */
13745 #include <jerror.h>
13746 _ACEOF
13747 if { (ac_try="$ac_cpp conftest.$ac_ext"
13748 case "(($ac_try" in
13749 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13750 *) ac_try_echo=$ac_try;;
13751 esac
13752 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13753 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
13754 ac_status=$?
13755 grep -v '^ *+' conftest.er1 >conftest.err
13756 rm -f conftest.er1
13757 cat conftest.err >&5
13758 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13759 (exit $ac_status); } >/dev/null && {
13760 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
13761 test ! -s conftest.err
13762 }; then
13763 ac_header_preproc=yes
13764 else
13765 echo "$as_me: failed program was:" >&5
13766 sed 's/^/| /' conftest.$ac_ext >&5
13768 ac_header_preproc=no
13771 rm -f conftest.err conftest.$ac_ext
13772 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
13773 echo "${ECHO_T}$ac_header_preproc" >&6; }
13775 # So? What about this header?
13776 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
13777 yes:no: )
13778 { echo "$as_me:$LINENO: WARNING: jerror.h: accepted by the compiler, rejected by the preprocessor!" >&5
13779 echo "$as_me: WARNING: jerror.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
13780 { echo "$as_me:$LINENO: WARNING: jerror.h: proceeding with the compiler's result" >&5
13781 echo "$as_me: WARNING: jerror.h: proceeding with the compiler's result" >&2;}
13782 ac_header_preproc=yes
13784 no:yes:* )
13785 { echo "$as_me:$LINENO: WARNING: jerror.h: present but cannot be compiled" >&5
13786 echo "$as_me: WARNING: jerror.h: present but cannot be compiled" >&2;}
13787 { echo "$as_me:$LINENO: WARNING: jerror.h: check for missing prerequisite headers?" >&5
13788 echo "$as_me: WARNING: jerror.h: check for missing prerequisite headers?" >&2;}
13789 { echo "$as_me:$LINENO: WARNING: jerror.h: see the Autoconf documentation" >&5
13790 echo "$as_me: WARNING: jerror.h: see the Autoconf documentation" >&2;}
13791 { echo "$as_me:$LINENO: WARNING: jerror.h: section \"Present But Cannot Be Compiled\"" >&5
13792 echo "$as_me: WARNING: jerror.h: section \"Present But Cannot Be Compiled\"" >&2;}
13793 { echo "$as_me:$LINENO: WARNING: jerror.h: proceeding with the preprocessor's result" >&5
13794 echo "$as_me: WARNING: jerror.h: proceeding with the preprocessor's result" >&2;}
13795 { echo "$as_me:$LINENO: WARNING: jerror.h: in the future, the compiler will take precedence" >&5
13796 echo "$as_me: WARNING: jerror.h: in the future, the compiler will take precedence" >&2;}
13799 esac
13800 { echo "$as_me:$LINENO: checking for jerror.h" >&5
13801 echo $ECHO_N "checking for jerror.h... $ECHO_C" >&6; }
13802 if test "${ac_cv_header_jerror_h+set}" = set; then
13803 echo $ECHO_N "(cached) $ECHO_C" >&6
13804 else
13805 ac_cv_header_jerror_h=$ac_header_preproc
13807 { echo "$as_me:$LINENO: result: $ac_cv_header_jerror_h" >&5
13808 echo "${ECHO_T}$ac_cv_header_jerror_h" >&6; }
13811 if test $ac_cv_header_jerror_h = yes; then
13812 { echo "$as_me:$LINENO: checking for jpeg_destroy_compress in -ljpeg" >&5
13813 echo $ECHO_N "checking for jpeg_destroy_compress in -ljpeg... $ECHO_C" >&6; }
13814 if test "${ac_cv_lib_jpeg_jpeg_destroy_compress+set}" = set; then
13815 echo $ECHO_N "(cached) $ECHO_C" >&6
13816 else
13817 ac_check_lib_save_LIBS=$LIBS
13818 LIBS="-ljpeg $LIBS"
13819 cat >conftest.$ac_ext <<_ACEOF
13820 /* confdefs.h. */
13821 _ACEOF
13822 cat confdefs.h >>conftest.$ac_ext
13823 cat >>conftest.$ac_ext <<_ACEOF
13824 /* end confdefs.h. */
13826 /* Override any GCC internal prototype to avoid an error.
13827 Use char because int might match the return type of a GCC
13828 builtin and then its argument prototype would still apply. */
13829 #ifdef __cplusplus
13830 extern "C"
13831 #endif
13832 char jpeg_destroy_compress ();
13834 main ()
13836 return jpeg_destroy_compress ();
13838 return 0;
13840 _ACEOF
13841 rm -f conftest.$ac_objext conftest$ac_exeext
13842 if { (ac_try="$ac_link"
13843 case "(($ac_try" in
13844 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13845 *) ac_try_echo=$ac_try;;
13846 esac
13847 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13848 (eval "$ac_link") 2>conftest.er1
13849 ac_status=$?
13850 grep -v '^ *+' conftest.er1 >conftest.err
13851 rm -f conftest.er1
13852 cat conftest.err >&5
13853 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13854 (exit $ac_status); } && {
13855 test -z "$ac_c_werror_flag" ||
13856 test ! -s conftest.err
13857 } && test -s conftest$ac_exeext &&
13858 $as_test_x conftest$ac_exeext; then
13859 ac_cv_lib_jpeg_jpeg_destroy_compress=yes
13860 else
13861 echo "$as_me: failed program was:" >&5
13862 sed 's/^/| /' conftest.$ac_ext >&5
13864 ac_cv_lib_jpeg_jpeg_destroy_compress=no
13867 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
13868 conftest$ac_exeext conftest.$ac_ext
13869 LIBS=$ac_check_lib_save_LIBS
13871 { echo "$as_me:$LINENO: result: $ac_cv_lib_jpeg_jpeg_destroy_compress" >&5
13872 echo "${ECHO_T}$ac_cv_lib_jpeg_jpeg_destroy_compress" >&6; }
13873 if test $ac_cv_lib_jpeg_jpeg_destroy_compress = yes; then
13874 HAVE_JPEG=yes
13883 if test "${HAVE_JPEG}" = "yes"; then
13884 cat >>confdefs.h <<\_ACEOF
13885 #define HAVE_JPEG 1
13886 _ACEOF
13888 cat >conftest.$ac_ext <<_ACEOF
13889 /* confdefs.h. */
13890 _ACEOF
13891 cat confdefs.h >>conftest.$ac_ext
13892 cat >>conftest.$ac_ext <<_ACEOF
13893 /* end confdefs.h. */
13894 #include <jpeglib.h>
13895 version=JPEG_LIB_VERSION
13897 _ACEOF
13898 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
13899 $EGREP "version= *(6[2-9]|[7-9][0-9])" >/dev/null 2>&1; then
13900 cat >>confdefs.h <<\_ACEOF
13901 #define HAVE_JPEG 1
13902 _ACEOF
13904 else
13905 { echo "$as_me:$LINENO: WARNING: libjpeg found, but not version 6b or later" >&5
13906 echo "$as_me: WARNING: libjpeg found, but not version 6b or later" >&2;}
13907 HAVE_JPEG=no
13909 rm -f conftest*
13914 ### Use -lpng if available, unless `--with-png=no'.
13915 HAVE_PNG=no
13916 if test "${HAVE_X11}" = "yes"; then
13917 if test "${with_png}" != "no"; then
13918 # Debian unstable as of July 2003 has multiple libpngs, and puts png.h
13919 # in /usr/include/libpng.
13922 for ac_header in png.h libpng/png.h
13924 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
13925 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
13926 { echo "$as_me:$LINENO: checking for $ac_header" >&5
13927 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
13928 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
13929 echo $ECHO_N "(cached) $ECHO_C" >&6
13931 ac_res=`eval echo '${'$as_ac_Header'}'`
13932 { echo "$as_me:$LINENO: result: $ac_res" >&5
13933 echo "${ECHO_T}$ac_res" >&6; }
13934 else
13935 # Is the header compilable?
13936 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
13937 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
13938 cat >conftest.$ac_ext <<_ACEOF
13939 /* confdefs.h. */
13940 _ACEOF
13941 cat confdefs.h >>conftest.$ac_ext
13942 cat >>conftest.$ac_ext <<_ACEOF
13943 /* end confdefs.h. */
13944 $ac_includes_default
13945 #include <$ac_header>
13946 _ACEOF
13947 rm -f conftest.$ac_objext
13948 if { (ac_try="$ac_compile"
13949 case "(($ac_try" in
13950 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13951 *) ac_try_echo=$ac_try;;
13952 esac
13953 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13954 (eval "$ac_compile") 2>conftest.er1
13955 ac_status=$?
13956 grep -v '^ *+' conftest.er1 >conftest.err
13957 rm -f conftest.er1
13958 cat conftest.err >&5
13959 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13960 (exit $ac_status); } && {
13961 test -z "$ac_c_werror_flag" ||
13962 test ! -s conftest.err
13963 } && test -s conftest.$ac_objext; then
13964 ac_header_compiler=yes
13965 else
13966 echo "$as_me: failed program was:" >&5
13967 sed 's/^/| /' conftest.$ac_ext >&5
13969 ac_header_compiler=no
13972 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13973 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
13974 echo "${ECHO_T}$ac_header_compiler" >&6; }
13976 # Is the header present?
13977 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
13978 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
13979 cat >conftest.$ac_ext <<_ACEOF
13980 /* confdefs.h. */
13981 _ACEOF
13982 cat confdefs.h >>conftest.$ac_ext
13983 cat >>conftest.$ac_ext <<_ACEOF
13984 /* end confdefs.h. */
13985 #include <$ac_header>
13986 _ACEOF
13987 if { (ac_try="$ac_cpp conftest.$ac_ext"
13988 case "(($ac_try" in
13989 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13990 *) ac_try_echo=$ac_try;;
13991 esac
13992 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13993 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
13994 ac_status=$?
13995 grep -v '^ *+' conftest.er1 >conftest.err
13996 rm -f conftest.er1
13997 cat conftest.err >&5
13998 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13999 (exit $ac_status); } >/dev/null && {
14000 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
14001 test ! -s conftest.err
14002 }; then
14003 ac_header_preproc=yes
14004 else
14005 echo "$as_me: failed program was:" >&5
14006 sed 's/^/| /' conftest.$ac_ext >&5
14008 ac_header_preproc=no
14011 rm -f conftest.err conftest.$ac_ext
14012 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
14013 echo "${ECHO_T}$ac_header_preproc" >&6; }
14015 # So? What about this header?
14016 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
14017 yes:no: )
14018 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
14019 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
14020 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
14021 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
14022 ac_header_preproc=yes
14024 no:yes:* )
14025 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
14026 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
14027 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
14028 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
14029 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
14030 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
14031 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
14032 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
14033 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
14034 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
14035 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
14036 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
14039 esac
14040 { echo "$as_me:$LINENO: checking for $ac_header" >&5
14041 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
14042 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
14043 echo $ECHO_N "(cached) $ECHO_C" >&6
14044 else
14045 eval "$as_ac_Header=\$ac_header_preproc"
14047 ac_res=`eval echo '${'$as_ac_Header'}'`
14048 { echo "$as_me:$LINENO: result: $ac_res" >&5
14049 echo "${ECHO_T}$ac_res" >&6; }
14052 if test `eval echo '${'$as_ac_Header'}'` = yes; then
14053 cat >>confdefs.h <<_ACEOF
14054 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
14055 _ACEOF
14059 done
14061 if test "$ac_cv_header_png_h" = yes || test "$ac_cv_header_libpng_png_h" = yes ; then
14062 { echo "$as_me:$LINENO: checking for png_get_channels in -lpng" >&5
14063 echo $ECHO_N "checking for png_get_channels in -lpng... $ECHO_C" >&6; }
14064 if test "${ac_cv_lib_png_png_get_channels+set}" = set; then
14065 echo $ECHO_N "(cached) $ECHO_C" >&6
14066 else
14067 ac_check_lib_save_LIBS=$LIBS
14068 LIBS="-lpng -lz -lm $LIBS"
14069 cat >conftest.$ac_ext <<_ACEOF
14070 /* confdefs.h. */
14071 _ACEOF
14072 cat confdefs.h >>conftest.$ac_ext
14073 cat >>conftest.$ac_ext <<_ACEOF
14074 /* end confdefs.h. */
14076 /* Override any GCC internal prototype to avoid an error.
14077 Use char because int might match the return type of a GCC
14078 builtin and then its argument prototype would still apply. */
14079 #ifdef __cplusplus
14080 extern "C"
14081 #endif
14082 char png_get_channels ();
14084 main ()
14086 return png_get_channels ();
14088 return 0;
14090 _ACEOF
14091 rm -f conftest.$ac_objext conftest$ac_exeext
14092 if { (ac_try="$ac_link"
14093 case "(($ac_try" in
14094 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14095 *) ac_try_echo=$ac_try;;
14096 esac
14097 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14098 (eval "$ac_link") 2>conftest.er1
14099 ac_status=$?
14100 grep -v '^ *+' conftest.er1 >conftest.err
14101 rm -f conftest.er1
14102 cat conftest.err >&5
14103 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14104 (exit $ac_status); } && {
14105 test -z "$ac_c_werror_flag" ||
14106 test ! -s conftest.err
14107 } && test -s conftest$ac_exeext &&
14108 $as_test_x conftest$ac_exeext; then
14109 ac_cv_lib_png_png_get_channels=yes
14110 else
14111 echo "$as_me: failed program was:" >&5
14112 sed 's/^/| /' conftest.$ac_ext >&5
14114 ac_cv_lib_png_png_get_channels=no
14117 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
14118 conftest$ac_exeext conftest.$ac_ext
14119 LIBS=$ac_check_lib_save_LIBS
14121 { echo "$as_me:$LINENO: result: $ac_cv_lib_png_png_get_channels" >&5
14122 echo "${ECHO_T}$ac_cv_lib_png_png_get_channels" >&6; }
14123 if test $ac_cv_lib_png_png_get_channels = yes; then
14124 HAVE_PNG=yes
14130 if test "${HAVE_PNG}" = "yes"; then
14132 cat >>confdefs.h <<\_ACEOF
14133 #define HAVE_PNG 1
14134 _ACEOF
14139 ### Use -ltiff if available, unless `--with-tiff=no'.
14140 HAVE_TIFF=no
14141 if test "${HAVE_X11}" = "yes"; then
14142 if test "${with_tiff}" != "no"; then
14143 if test "${ac_cv_header_tiffio_h+set}" = set; then
14144 { echo "$as_me:$LINENO: checking for tiffio.h" >&5
14145 echo $ECHO_N "checking for tiffio.h... $ECHO_C" >&6; }
14146 if test "${ac_cv_header_tiffio_h+set}" = set; then
14147 echo $ECHO_N "(cached) $ECHO_C" >&6
14149 { echo "$as_me:$LINENO: result: $ac_cv_header_tiffio_h" >&5
14150 echo "${ECHO_T}$ac_cv_header_tiffio_h" >&6; }
14151 else
14152 # Is the header compilable?
14153 { echo "$as_me:$LINENO: checking tiffio.h usability" >&5
14154 echo $ECHO_N "checking tiffio.h usability... $ECHO_C" >&6; }
14155 cat >conftest.$ac_ext <<_ACEOF
14156 /* confdefs.h. */
14157 _ACEOF
14158 cat confdefs.h >>conftest.$ac_ext
14159 cat >>conftest.$ac_ext <<_ACEOF
14160 /* end confdefs.h. */
14161 $ac_includes_default
14162 #include <tiffio.h>
14163 _ACEOF
14164 rm -f conftest.$ac_objext
14165 if { (ac_try="$ac_compile"
14166 case "(($ac_try" in
14167 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14168 *) ac_try_echo=$ac_try;;
14169 esac
14170 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14171 (eval "$ac_compile") 2>conftest.er1
14172 ac_status=$?
14173 grep -v '^ *+' conftest.er1 >conftest.err
14174 rm -f conftest.er1
14175 cat conftest.err >&5
14176 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14177 (exit $ac_status); } && {
14178 test -z "$ac_c_werror_flag" ||
14179 test ! -s conftest.err
14180 } && test -s conftest.$ac_objext; then
14181 ac_header_compiler=yes
14182 else
14183 echo "$as_me: failed program was:" >&5
14184 sed 's/^/| /' conftest.$ac_ext >&5
14186 ac_header_compiler=no
14189 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14190 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
14191 echo "${ECHO_T}$ac_header_compiler" >&6; }
14193 # Is the header present?
14194 { echo "$as_me:$LINENO: checking tiffio.h presence" >&5
14195 echo $ECHO_N "checking tiffio.h presence... $ECHO_C" >&6; }
14196 cat >conftest.$ac_ext <<_ACEOF
14197 /* confdefs.h. */
14198 _ACEOF
14199 cat confdefs.h >>conftest.$ac_ext
14200 cat >>conftest.$ac_ext <<_ACEOF
14201 /* end confdefs.h. */
14202 #include <tiffio.h>
14203 _ACEOF
14204 if { (ac_try="$ac_cpp conftest.$ac_ext"
14205 case "(($ac_try" in
14206 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14207 *) ac_try_echo=$ac_try;;
14208 esac
14209 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14210 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
14211 ac_status=$?
14212 grep -v '^ *+' conftest.er1 >conftest.err
14213 rm -f conftest.er1
14214 cat conftest.err >&5
14215 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14216 (exit $ac_status); } >/dev/null && {
14217 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
14218 test ! -s conftest.err
14219 }; then
14220 ac_header_preproc=yes
14221 else
14222 echo "$as_me: failed program was:" >&5
14223 sed 's/^/| /' conftest.$ac_ext >&5
14225 ac_header_preproc=no
14228 rm -f conftest.err conftest.$ac_ext
14229 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
14230 echo "${ECHO_T}$ac_header_preproc" >&6; }
14232 # So? What about this header?
14233 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
14234 yes:no: )
14235 { echo "$as_me:$LINENO: WARNING: tiffio.h: accepted by the compiler, rejected by the preprocessor!" >&5
14236 echo "$as_me: WARNING: tiffio.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
14237 { echo "$as_me:$LINENO: WARNING: tiffio.h: proceeding with the compiler's result" >&5
14238 echo "$as_me: WARNING: tiffio.h: proceeding with the compiler's result" >&2;}
14239 ac_header_preproc=yes
14241 no:yes:* )
14242 { echo "$as_me:$LINENO: WARNING: tiffio.h: present but cannot be compiled" >&5
14243 echo "$as_me: WARNING: tiffio.h: present but cannot be compiled" >&2;}
14244 { echo "$as_me:$LINENO: WARNING: tiffio.h: check for missing prerequisite headers?" >&5
14245 echo "$as_me: WARNING: tiffio.h: check for missing prerequisite headers?" >&2;}
14246 { echo "$as_me:$LINENO: WARNING: tiffio.h: see the Autoconf documentation" >&5
14247 echo "$as_me: WARNING: tiffio.h: see the Autoconf documentation" >&2;}
14248 { echo "$as_me:$LINENO: WARNING: tiffio.h: section \"Present But Cannot Be Compiled\"" >&5
14249 echo "$as_me: WARNING: tiffio.h: section \"Present But Cannot Be Compiled\"" >&2;}
14250 { echo "$as_me:$LINENO: WARNING: tiffio.h: proceeding with the preprocessor's result" >&5
14251 echo "$as_me: WARNING: tiffio.h: proceeding with the preprocessor's result" >&2;}
14252 { echo "$as_me:$LINENO: WARNING: tiffio.h: in the future, the compiler will take precedence" >&5
14253 echo "$as_me: WARNING: tiffio.h: in the future, the compiler will take precedence" >&2;}
14256 esac
14257 { echo "$as_me:$LINENO: checking for tiffio.h" >&5
14258 echo $ECHO_N "checking for tiffio.h... $ECHO_C" >&6; }
14259 if test "${ac_cv_header_tiffio_h+set}" = set; then
14260 echo $ECHO_N "(cached) $ECHO_C" >&6
14261 else
14262 ac_cv_header_tiffio_h=$ac_header_preproc
14264 { echo "$as_me:$LINENO: result: $ac_cv_header_tiffio_h" >&5
14265 echo "${ECHO_T}$ac_cv_header_tiffio_h" >&6; }
14268 if test $ac_cv_header_tiffio_h = yes; then
14269 tifflibs="-lz -lm"
14270 # At least one tiff package requires the jpeg library.
14271 if test "${HAVE_JPEG}" = yes; then tifflibs="-ljpeg $tifflibs"; fi
14272 { echo "$as_me:$LINENO: checking for TIFFGetVersion in -ltiff" >&5
14273 echo $ECHO_N "checking for TIFFGetVersion in -ltiff... $ECHO_C" >&6; }
14274 if test "${ac_cv_lib_tiff_TIFFGetVersion+set}" = set; then
14275 echo $ECHO_N "(cached) $ECHO_C" >&6
14276 else
14277 ac_check_lib_save_LIBS=$LIBS
14278 LIBS="-ltiff $tifflibs $LIBS"
14279 cat >conftest.$ac_ext <<_ACEOF
14280 /* confdefs.h. */
14281 _ACEOF
14282 cat confdefs.h >>conftest.$ac_ext
14283 cat >>conftest.$ac_ext <<_ACEOF
14284 /* end confdefs.h. */
14286 /* Override any GCC internal prototype to avoid an error.
14287 Use char because int might match the return type of a GCC
14288 builtin and then its argument prototype would still apply. */
14289 #ifdef __cplusplus
14290 extern "C"
14291 #endif
14292 char TIFFGetVersion ();
14294 main ()
14296 return TIFFGetVersion ();
14298 return 0;
14300 _ACEOF
14301 rm -f conftest.$ac_objext conftest$ac_exeext
14302 if { (ac_try="$ac_link"
14303 case "(($ac_try" in
14304 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14305 *) ac_try_echo=$ac_try;;
14306 esac
14307 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14308 (eval "$ac_link") 2>conftest.er1
14309 ac_status=$?
14310 grep -v '^ *+' conftest.er1 >conftest.err
14311 rm -f conftest.er1
14312 cat conftest.err >&5
14313 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14314 (exit $ac_status); } && {
14315 test -z "$ac_c_werror_flag" ||
14316 test ! -s conftest.err
14317 } && test -s conftest$ac_exeext &&
14318 $as_test_x conftest$ac_exeext; then
14319 ac_cv_lib_tiff_TIFFGetVersion=yes
14320 else
14321 echo "$as_me: failed program was:" >&5
14322 sed 's/^/| /' conftest.$ac_ext >&5
14324 ac_cv_lib_tiff_TIFFGetVersion=no
14327 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
14328 conftest$ac_exeext conftest.$ac_ext
14329 LIBS=$ac_check_lib_save_LIBS
14331 { echo "$as_me:$LINENO: result: $ac_cv_lib_tiff_TIFFGetVersion" >&5
14332 echo "${ECHO_T}$ac_cv_lib_tiff_TIFFGetVersion" >&6; }
14333 if test $ac_cv_lib_tiff_TIFFGetVersion = yes; then
14334 HAVE_TIFF=yes
14342 if test "${HAVE_TIFF}" = "yes"; then
14344 cat >>confdefs.h <<\_ACEOF
14345 #define HAVE_TIFF 1
14346 _ACEOF
14351 ### Use -lgif or -lungif if available, unless `--with-gif=no'.
14352 HAVE_GIF=no
14353 if test "${HAVE_X11}" = "yes" && test "${with_gif}" != "no"; then
14354 if test "${ac_cv_header_gif_lib_h+set}" = set; then
14355 { echo "$as_me:$LINENO: checking for gif_lib.h" >&5
14356 echo $ECHO_N "checking for gif_lib.h... $ECHO_C" >&6; }
14357 if test "${ac_cv_header_gif_lib_h+set}" = set; then
14358 echo $ECHO_N "(cached) $ECHO_C" >&6
14360 { echo "$as_me:$LINENO: result: $ac_cv_header_gif_lib_h" >&5
14361 echo "${ECHO_T}$ac_cv_header_gif_lib_h" >&6; }
14362 else
14363 # Is the header compilable?
14364 { echo "$as_me:$LINENO: checking gif_lib.h usability" >&5
14365 echo $ECHO_N "checking gif_lib.h usability... $ECHO_C" >&6; }
14366 cat >conftest.$ac_ext <<_ACEOF
14367 /* confdefs.h. */
14368 _ACEOF
14369 cat confdefs.h >>conftest.$ac_ext
14370 cat >>conftest.$ac_ext <<_ACEOF
14371 /* end confdefs.h. */
14372 $ac_includes_default
14373 #include <gif_lib.h>
14374 _ACEOF
14375 rm -f conftest.$ac_objext
14376 if { (ac_try="$ac_compile"
14377 case "(($ac_try" in
14378 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14379 *) ac_try_echo=$ac_try;;
14380 esac
14381 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14382 (eval "$ac_compile") 2>conftest.er1
14383 ac_status=$?
14384 grep -v '^ *+' conftest.er1 >conftest.err
14385 rm -f conftest.er1
14386 cat conftest.err >&5
14387 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14388 (exit $ac_status); } && {
14389 test -z "$ac_c_werror_flag" ||
14390 test ! -s conftest.err
14391 } && test -s conftest.$ac_objext; then
14392 ac_header_compiler=yes
14393 else
14394 echo "$as_me: failed program was:" >&5
14395 sed 's/^/| /' conftest.$ac_ext >&5
14397 ac_header_compiler=no
14400 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14401 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
14402 echo "${ECHO_T}$ac_header_compiler" >&6; }
14404 # Is the header present?
14405 { echo "$as_me:$LINENO: checking gif_lib.h presence" >&5
14406 echo $ECHO_N "checking gif_lib.h presence... $ECHO_C" >&6; }
14407 cat >conftest.$ac_ext <<_ACEOF
14408 /* confdefs.h. */
14409 _ACEOF
14410 cat confdefs.h >>conftest.$ac_ext
14411 cat >>conftest.$ac_ext <<_ACEOF
14412 /* end confdefs.h. */
14413 #include <gif_lib.h>
14414 _ACEOF
14415 if { (ac_try="$ac_cpp conftest.$ac_ext"
14416 case "(($ac_try" in
14417 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14418 *) ac_try_echo=$ac_try;;
14419 esac
14420 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14421 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
14422 ac_status=$?
14423 grep -v '^ *+' conftest.er1 >conftest.err
14424 rm -f conftest.er1
14425 cat conftest.err >&5
14426 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14427 (exit $ac_status); } >/dev/null && {
14428 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
14429 test ! -s conftest.err
14430 }; then
14431 ac_header_preproc=yes
14432 else
14433 echo "$as_me: failed program was:" >&5
14434 sed 's/^/| /' conftest.$ac_ext >&5
14436 ac_header_preproc=no
14439 rm -f conftest.err conftest.$ac_ext
14440 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
14441 echo "${ECHO_T}$ac_header_preproc" >&6; }
14443 # So? What about this header?
14444 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
14445 yes:no: )
14446 { echo "$as_me:$LINENO: WARNING: gif_lib.h: accepted by the compiler, rejected by the preprocessor!" >&5
14447 echo "$as_me: WARNING: gif_lib.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
14448 { echo "$as_me:$LINENO: WARNING: gif_lib.h: proceeding with the compiler's result" >&5
14449 echo "$as_me: WARNING: gif_lib.h: proceeding with the compiler's result" >&2;}
14450 ac_header_preproc=yes
14452 no:yes:* )
14453 { echo "$as_me:$LINENO: WARNING: gif_lib.h: present but cannot be compiled" >&5
14454 echo "$as_me: WARNING: gif_lib.h: present but cannot be compiled" >&2;}
14455 { echo "$as_me:$LINENO: WARNING: gif_lib.h: check for missing prerequisite headers?" >&5
14456 echo "$as_me: WARNING: gif_lib.h: check for missing prerequisite headers?" >&2;}
14457 { echo "$as_me:$LINENO: WARNING: gif_lib.h: see the Autoconf documentation" >&5
14458 echo "$as_me: WARNING: gif_lib.h: see the Autoconf documentation" >&2;}
14459 { echo "$as_me:$LINENO: WARNING: gif_lib.h: section \"Present But Cannot Be Compiled\"" >&5
14460 echo "$as_me: WARNING: gif_lib.h: section \"Present But Cannot Be Compiled\"" >&2;}
14461 { echo "$as_me:$LINENO: WARNING: gif_lib.h: proceeding with the preprocessor's result" >&5
14462 echo "$as_me: WARNING: gif_lib.h: proceeding with the preprocessor's result" >&2;}
14463 { echo "$as_me:$LINENO: WARNING: gif_lib.h: in the future, the compiler will take precedence" >&5
14464 echo "$as_me: WARNING: gif_lib.h: in the future, the compiler will take precedence" >&2;}
14467 esac
14468 { echo "$as_me:$LINENO: checking for gif_lib.h" >&5
14469 echo $ECHO_N "checking for gif_lib.h... $ECHO_C" >&6; }
14470 if test "${ac_cv_header_gif_lib_h+set}" = set; then
14471 echo $ECHO_N "(cached) $ECHO_C" >&6
14472 else
14473 ac_cv_header_gif_lib_h=$ac_header_preproc
14475 { echo "$as_me:$LINENO: result: $ac_cv_header_gif_lib_h" >&5
14476 echo "${ECHO_T}$ac_cv_header_gif_lib_h" >&6; }
14479 if test $ac_cv_header_gif_lib_h = yes; then
14480 # EGifPutExtensionLast only exists from version libungif-4.1.0b1.
14481 # Earlier versions can crash Emacs.
14482 { echo "$as_me:$LINENO: checking for EGifPutExtensionLast in -lgif" >&5
14483 echo $ECHO_N "checking for EGifPutExtensionLast in -lgif... $ECHO_C" >&6; }
14484 if test "${ac_cv_lib_gif_EGifPutExtensionLast+set}" = set; then
14485 echo $ECHO_N "(cached) $ECHO_C" >&6
14486 else
14487 ac_check_lib_save_LIBS=$LIBS
14488 LIBS="-lgif $LIBS"
14489 cat >conftest.$ac_ext <<_ACEOF
14490 /* confdefs.h. */
14491 _ACEOF
14492 cat confdefs.h >>conftest.$ac_ext
14493 cat >>conftest.$ac_ext <<_ACEOF
14494 /* end confdefs.h. */
14496 /* Override any GCC internal prototype to avoid an error.
14497 Use char because int might match the return type of a GCC
14498 builtin and then its argument prototype would still apply. */
14499 #ifdef __cplusplus
14500 extern "C"
14501 #endif
14502 char EGifPutExtensionLast ();
14504 main ()
14506 return EGifPutExtensionLast ();
14508 return 0;
14510 _ACEOF
14511 rm -f conftest.$ac_objext conftest$ac_exeext
14512 if { (ac_try="$ac_link"
14513 case "(($ac_try" in
14514 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14515 *) ac_try_echo=$ac_try;;
14516 esac
14517 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14518 (eval "$ac_link") 2>conftest.er1
14519 ac_status=$?
14520 grep -v '^ *+' conftest.er1 >conftest.err
14521 rm -f conftest.er1
14522 cat conftest.err >&5
14523 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14524 (exit $ac_status); } && {
14525 test -z "$ac_c_werror_flag" ||
14526 test ! -s conftest.err
14527 } && test -s conftest$ac_exeext &&
14528 $as_test_x conftest$ac_exeext; then
14529 ac_cv_lib_gif_EGifPutExtensionLast=yes
14530 else
14531 echo "$as_me: failed program was:" >&5
14532 sed 's/^/| /' conftest.$ac_ext >&5
14534 ac_cv_lib_gif_EGifPutExtensionLast=no
14537 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
14538 conftest$ac_exeext conftest.$ac_ext
14539 LIBS=$ac_check_lib_save_LIBS
14541 { echo "$as_me:$LINENO: result: $ac_cv_lib_gif_EGifPutExtensionLast" >&5
14542 echo "${ECHO_T}$ac_cv_lib_gif_EGifPutExtensionLast" >&6; }
14543 if test $ac_cv_lib_gif_EGifPutExtensionLast = yes; then
14544 HAVE_GIF=yes
14545 else
14546 try_libungif=yes
14553 if test "$HAVE_GIF" = yes; then
14554 ac_gif_lib_name="-lgif"
14557 # If gif_lib.h but no libgif, try libungif.
14558 if test x"$try_libungif" = xyes; then
14559 { echo "$as_me:$LINENO: checking for EGifPutExtensionLast in -lungif" >&5
14560 echo $ECHO_N "checking for EGifPutExtensionLast in -lungif... $ECHO_C" >&6; }
14561 if test "${ac_cv_lib_ungif_EGifPutExtensionLast+set}" = set; then
14562 echo $ECHO_N "(cached) $ECHO_C" >&6
14563 else
14564 ac_check_lib_save_LIBS=$LIBS
14565 LIBS="-lungif $LIBS"
14566 cat >conftest.$ac_ext <<_ACEOF
14567 /* confdefs.h. */
14568 _ACEOF
14569 cat confdefs.h >>conftest.$ac_ext
14570 cat >>conftest.$ac_ext <<_ACEOF
14571 /* end confdefs.h. */
14573 /* Override any GCC internal prototype to avoid an error.
14574 Use char because int might match the return type of a GCC
14575 builtin and then its argument prototype would still apply. */
14576 #ifdef __cplusplus
14577 extern "C"
14578 #endif
14579 char EGifPutExtensionLast ();
14581 main ()
14583 return EGifPutExtensionLast ();
14585 return 0;
14587 _ACEOF
14588 rm -f conftest.$ac_objext conftest$ac_exeext
14589 if { (ac_try="$ac_link"
14590 case "(($ac_try" in
14591 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14592 *) ac_try_echo=$ac_try;;
14593 esac
14594 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14595 (eval "$ac_link") 2>conftest.er1
14596 ac_status=$?
14597 grep -v '^ *+' conftest.er1 >conftest.err
14598 rm -f conftest.er1
14599 cat conftest.err >&5
14600 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14601 (exit $ac_status); } && {
14602 test -z "$ac_c_werror_flag" ||
14603 test ! -s conftest.err
14604 } && test -s conftest$ac_exeext &&
14605 $as_test_x conftest$ac_exeext; then
14606 ac_cv_lib_ungif_EGifPutExtensionLast=yes
14607 else
14608 echo "$as_me: failed program was:" >&5
14609 sed 's/^/| /' conftest.$ac_ext >&5
14611 ac_cv_lib_ungif_EGifPutExtensionLast=no
14614 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
14615 conftest$ac_exeext conftest.$ac_ext
14616 LIBS=$ac_check_lib_save_LIBS
14618 { echo "$as_me:$LINENO: result: $ac_cv_lib_ungif_EGifPutExtensionLast" >&5
14619 echo "${ECHO_T}$ac_cv_lib_ungif_EGifPutExtensionLast" >&6; }
14620 if test $ac_cv_lib_ungif_EGifPutExtensionLast = yes; then
14621 HAVE_GIF=yes
14625 if test "$HAVE_GIF" = yes; then
14627 cat >>confdefs.h <<\_ACEOF
14628 #define LIBGIF -lungif
14629 _ACEOF
14631 ac_gif_lib_name="-lungif"
14635 if test "${HAVE_GIF}" = "yes"; then
14637 cat >>confdefs.h <<\_ACEOF
14638 #define HAVE_GIF 1
14639 _ACEOF
14644 if test "${HAVE_X11}" = "yes"; then
14645 MISSING=""
14646 WITH_NO=""
14647 test "${with_xpm}" != "no" && test "${HAVE_XPM}" != "yes" &&
14648 MISSING="libXpm" && WITH_NO="--with-xpm=no"
14649 test "${with_jpeg}" != "no" && test "${HAVE_JPEG}" != "yes" &&
14650 MISSING="$MISSING libjpeg" && WITH_NO="$WITH_NO --with-jpeg=no"
14651 test "${with_png}" != "no" && test "${HAVE_PNG}" != "yes" &&
14652 MISSING="$MISSING libpng" && WITH_NO="$WITH_NO --with-png=no"
14653 test "${with_gif}" != "no" && test "${HAVE_GIF}" != "yes" &&
14654 MISSING="$MISSING libgif/libungif" && WITH_NO="$WITH_NO --with-gif=no"
14655 test "${with_tiff}" != "no" && test "${HAVE_TIFF}" != "yes" &&
14656 MISSING="$MISSING libtiff" && WITH_NO="$WITH_NO --with-tiff=no"
14658 if test "X${MISSING}" != X; then
14659 { { echo "$as_me:$LINENO: error: The following required libraries were not found:
14660 $MISSING
14661 Maybe some development libraries/packages are missing?
14662 If you don't want to link with them give
14663 $WITH_NO
14664 as options to configure" >&5
14665 echo "$as_me: error: The following required libraries were not found:
14666 $MISSING
14667 Maybe some development libraries/packages are missing?
14668 If you don't want to link with them give
14669 $WITH_NO
14670 as options to configure" >&2;}
14671 { (exit 1); exit 1; }; }
14675 ### Use -lgpm if available, unless `--with-gpm=no'.
14676 HAVE_GPM=no
14677 if test "${with_gpm}" != "no"; then
14678 if test "${ac_cv_header_gpm_h+set}" = set; then
14679 { echo "$as_me:$LINENO: checking for gpm.h" >&5
14680 echo $ECHO_N "checking for gpm.h... $ECHO_C" >&6; }
14681 if test "${ac_cv_header_gpm_h+set}" = set; then
14682 echo $ECHO_N "(cached) $ECHO_C" >&6
14684 { echo "$as_me:$LINENO: result: $ac_cv_header_gpm_h" >&5
14685 echo "${ECHO_T}$ac_cv_header_gpm_h" >&6; }
14686 else
14687 # Is the header compilable?
14688 { echo "$as_me:$LINENO: checking gpm.h usability" >&5
14689 echo $ECHO_N "checking gpm.h usability... $ECHO_C" >&6; }
14690 cat >conftest.$ac_ext <<_ACEOF
14691 /* confdefs.h. */
14692 _ACEOF
14693 cat confdefs.h >>conftest.$ac_ext
14694 cat >>conftest.$ac_ext <<_ACEOF
14695 /* end confdefs.h. */
14696 $ac_includes_default
14697 #include <gpm.h>
14698 _ACEOF
14699 rm -f conftest.$ac_objext
14700 if { (ac_try="$ac_compile"
14701 case "(($ac_try" in
14702 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14703 *) ac_try_echo=$ac_try;;
14704 esac
14705 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14706 (eval "$ac_compile") 2>conftest.er1
14707 ac_status=$?
14708 grep -v '^ *+' conftest.er1 >conftest.err
14709 rm -f conftest.er1
14710 cat conftest.err >&5
14711 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14712 (exit $ac_status); } && {
14713 test -z "$ac_c_werror_flag" ||
14714 test ! -s conftest.err
14715 } && test -s conftest.$ac_objext; then
14716 ac_header_compiler=yes
14717 else
14718 echo "$as_me: failed program was:" >&5
14719 sed 's/^/| /' conftest.$ac_ext >&5
14721 ac_header_compiler=no
14724 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14725 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
14726 echo "${ECHO_T}$ac_header_compiler" >&6; }
14728 # Is the header present?
14729 { echo "$as_me:$LINENO: checking gpm.h presence" >&5
14730 echo $ECHO_N "checking gpm.h presence... $ECHO_C" >&6; }
14731 cat >conftest.$ac_ext <<_ACEOF
14732 /* confdefs.h. */
14733 _ACEOF
14734 cat confdefs.h >>conftest.$ac_ext
14735 cat >>conftest.$ac_ext <<_ACEOF
14736 /* end confdefs.h. */
14737 #include <gpm.h>
14738 _ACEOF
14739 if { (ac_try="$ac_cpp conftest.$ac_ext"
14740 case "(($ac_try" in
14741 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14742 *) ac_try_echo=$ac_try;;
14743 esac
14744 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14745 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
14746 ac_status=$?
14747 grep -v '^ *+' conftest.er1 >conftest.err
14748 rm -f conftest.er1
14749 cat conftest.err >&5
14750 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14751 (exit $ac_status); } >/dev/null && {
14752 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
14753 test ! -s conftest.err
14754 }; then
14755 ac_header_preproc=yes
14756 else
14757 echo "$as_me: failed program was:" >&5
14758 sed 's/^/| /' conftest.$ac_ext >&5
14760 ac_header_preproc=no
14763 rm -f conftest.err conftest.$ac_ext
14764 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
14765 echo "${ECHO_T}$ac_header_preproc" >&6; }
14767 # So? What about this header?
14768 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
14769 yes:no: )
14770 { echo "$as_me:$LINENO: WARNING: gpm.h: accepted by the compiler, rejected by the preprocessor!" >&5
14771 echo "$as_me: WARNING: gpm.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
14772 { echo "$as_me:$LINENO: WARNING: gpm.h: proceeding with the compiler's result" >&5
14773 echo "$as_me: WARNING: gpm.h: proceeding with the compiler's result" >&2;}
14774 ac_header_preproc=yes
14776 no:yes:* )
14777 { echo "$as_me:$LINENO: WARNING: gpm.h: present but cannot be compiled" >&5
14778 echo "$as_me: WARNING: gpm.h: present but cannot be compiled" >&2;}
14779 { echo "$as_me:$LINENO: WARNING: gpm.h: check for missing prerequisite headers?" >&5
14780 echo "$as_me: WARNING: gpm.h: check for missing prerequisite headers?" >&2;}
14781 { echo "$as_me:$LINENO: WARNING: gpm.h: see the Autoconf documentation" >&5
14782 echo "$as_me: WARNING: gpm.h: see the Autoconf documentation" >&2;}
14783 { echo "$as_me:$LINENO: WARNING: gpm.h: section \"Present But Cannot Be Compiled\"" >&5
14784 echo "$as_me: WARNING: gpm.h: section \"Present But Cannot Be Compiled\"" >&2;}
14785 { echo "$as_me:$LINENO: WARNING: gpm.h: proceeding with the preprocessor's result" >&5
14786 echo "$as_me: WARNING: gpm.h: proceeding with the preprocessor's result" >&2;}
14787 { echo "$as_me:$LINENO: WARNING: gpm.h: in the future, the compiler will take precedence" >&5
14788 echo "$as_me: WARNING: gpm.h: in the future, the compiler will take precedence" >&2;}
14791 esac
14792 { echo "$as_me:$LINENO: checking for gpm.h" >&5
14793 echo $ECHO_N "checking for gpm.h... $ECHO_C" >&6; }
14794 if test "${ac_cv_header_gpm_h+set}" = set; then
14795 echo $ECHO_N "(cached) $ECHO_C" >&6
14796 else
14797 ac_cv_header_gpm_h=$ac_header_preproc
14799 { echo "$as_me:$LINENO: result: $ac_cv_header_gpm_h" >&5
14800 echo "${ECHO_T}$ac_cv_header_gpm_h" >&6; }
14803 if test $ac_cv_header_gpm_h = yes; then
14804 { echo "$as_me:$LINENO: checking for Gpm_Open in -lgpm" >&5
14805 echo $ECHO_N "checking for Gpm_Open in -lgpm... $ECHO_C" >&6; }
14806 if test "${ac_cv_lib_gpm_Gpm_Open+set}" = set; then
14807 echo $ECHO_N "(cached) $ECHO_C" >&6
14808 else
14809 ac_check_lib_save_LIBS=$LIBS
14810 LIBS="-lgpm $LIBS"
14811 cat >conftest.$ac_ext <<_ACEOF
14812 /* confdefs.h. */
14813 _ACEOF
14814 cat confdefs.h >>conftest.$ac_ext
14815 cat >>conftest.$ac_ext <<_ACEOF
14816 /* end confdefs.h. */
14818 /* Override any GCC internal prototype to avoid an error.
14819 Use char because int might match the return type of a GCC
14820 builtin and then its argument prototype would still apply. */
14821 #ifdef __cplusplus
14822 extern "C"
14823 #endif
14824 char Gpm_Open ();
14826 main ()
14828 return Gpm_Open ();
14830 return 0;
14832 _ACEOF
14833 rm -f conftest.$ac_objext conftest$ac_exeext
14834 if { (ac_try="$ac_link"
14835 case "(($ac_try" in
14836 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14837 *) ac_try_echo=$ac_try;;
14838 esac
14839 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14840 (eval "$ac_link") 2>conftest.er1
14841 ac_status=$?
14842 grep -v '^ *+' conftest.er1 >conftest.err
14843 rm -f conftest.er1
14844 cat conftest.err >&5
14845 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14846 (exit $ac_status); } && {
14847 test -z "$ac_c_werror_flag" ||
14848 test ! -s conftest.err
14849 } && test -s conftest$ac_exeext &&
14850 $as_test_x conftest$ac_exeext; then
14851 ac_cv_lib_gpm_Gpm_Open=yes
14852 else
14853 echo "$as_me: failed program was:" >&5
14854 sed 's/^/| /' conftest.$ac_ext >&5
14856 ac_cv_lib_gpm_Gpm_Open=no
14859 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
14860 conftest$ac_exeext conftest.$ac_ext
14861 LIBS=$ac_check_lib_save_LIBS
14863 { echo "$as_me:$LINENO: result: $ac_cv_lib_gpm_Gpm_Open" >&5
14864 echo "${ECHO_T}$ac_cv_lib_gpm_Gpm_Open" >&6; }
14865 if test $ac_cv_lib_gpm_Gpm_Open = yes; then
14866 HAVE_GPM=yes
14874 if test "${HAVE_GPM}" = "yes"; then
14876 cat >>confdefs.h <<\_ACEOF
14877 #define HAVE_GPM 1
14878 _ACEOF
14882 if test "${ac_cv_header_malloc_malloc_h+set}" = set; then
14883 { echo "$as_me:$LINENO: checking for malloc/malloc.h" >&5
14884 echo $ECHO_N "checking for malloc/malloc.h... $ECHO_C" >&6; }
14885 if test "${ac_cv_header_malloc_malloc_h+set}" = set; then
14886 echo $ECHO_N "(cached) $ECHO_C" >&6
14888 { echo "$as_me:$LINENO: result: $ac_cv_header_malloc_malloc_h" >&5
14889 echo "${ECHO_T}$ac_cv_header_malloc_malloc_h" >&6; }
14890 else
14891 # Is the header compilable?
14892 { echo "$as_me:$LINENO: checking malloc/malloc.h usability" >&5
14893 echo $ECHO_N "checking malloc/malloc.h usability... $ECHO_C" >&6; }
14894 cat >conftest.$ac_ext <<_ACEOF
14895 /* confdefs.h. */
14896 _ACEOF
14897 cat confdefs.h >>conftest.$ac_ext
14898 cat >>conftest.$ac_ext <<_ACEOF
14899 /* end confdefs.h. */
14900 $ac_includes_default
14901 #include <malloc/malloc.h>
14902 _ACEOF
14903 rm -f conftest.$ac_objext
14904 if { (ac_try="$ac_compile"
14905 case "(($ac_try" in
14906 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14907 *) ac_try_echo=$ac_try;;
14908 esac
14909 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14910 (eval "$ac_compile") 2>conftest.er1
14911 ac_status=$?
14912 grep -v '^ *+' conftest.er1 >conftest.err
14913 rm -f conftest.er1
14914 cat conftest.err >&5
14915 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14916 (exit $ac_status); } && {
14917 test -z "$ac_c_werror_flag" ||
14918 test ! -s conftest.err
14919 } && test -s conftest.$ac_objext; then
14920 ac_header_compiler=yes
14921 else
14922 echo "$as_me: failed program was:" >&5
14923 sed 's/^/| /' conftest.$ac_ext >&5
14925 ac_header_compiler=no
14928 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14929 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
14930 echo "${ECHO_T}$ac_header_compiler" >&6; }
14932 # Is the header present?
14933 { echo "$as_me:$LINENO: checking malloc/malloc.h presence" >&5
14934 echo $ECHO_N "checking malloc/malloc.h presence... $ECHO_C" >&6; }
14935 cat >conftest.$ac_ext <<_ACEOF
14936 /* confdefs.h. */
14937 _ACEOF
14938 cat confdefs.h >>conftest.$ac_ext
14939 cat >>conftest.$ac_ext <<_ACEOF
14940 /* end confdefs.h. */
14941 #include <malloc/malloc.h>
14942 _ACEOF
14943 if { (ac_try="$ac_cpp conftest.$ac_ext"
14944 case "(($ac_try" in
14945 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14946 *) ac_try_echo=$ac_try;;
14947 esac
14948 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14949 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
14950 ac_status=$?
14951 grep -v '^ *+' conftest.er1 >conftest.err
14952 rm -f conftest.er1
14953 cat conftest.err >&5
14954 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14955 (exit $ac_status); } >/dev/null && {
14956 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
14957 test ! -s conftest.err
14958 }; then
14959 ac_header_preproc=yes
14960 else
14961 echo "$as_me: failed program was:" >&5
14962 sed 's/^/| /' conftest.$ac_ext >&5
14964 ac_header_preproc=no
14967 rm -f conftest.err conftest.$ac_ext
14968 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
14969 echo "${ECHO_T}$ac_header_preproc" >&6; }
14971 # So? What about this header?
14972 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
14973 yes:no: )
14974 { echo "$as_me:$LINENO: WARNING: malloc/malloc.h: accepted by the compiler, rejected by the preprocessor!" >&5
14975 echo "$as_me: WARNING: malloc/malloc.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
14976 { echo "$as_me:$LINENO: WARNING: malloc/malloc.h: proceeding with the compiler's result" >&5
14977 echo "$as_me: WARNING: malloc/malloc.h: proceeding with the compiler's result" >&2;}
14978 ac_header_preproc=yes
14980 no:yes:* )
14981 { echo "$as_me:$LINENO: WARNING: malloc/malloc.h: present but cannot be compiled" >&5
14982 echo "$as_me: WARNING: malloc/malloc.h: present but cannot be compiled" >&2;}
14983 { echo "$as_me:$LINENO: WARNING: malloc/malloc.h: check for missing prerequisite headers?" >&5
14984 echo "$as_me: WARNING: malloc/malloc.h: check for missing prerequisite headers?" >&2;}
14985 { echo "$as_me:$LINENO: WARNING: malloc/malloc.h: see the Autoconf documentation" >&5
14986 echo "$as_me: WARNING: malloc/malloc.h: see the Autoconf documentation" >&2;}
14987 { echo "$as_me:$LINENO: WARNING: malloc/malloc.h: section \"Present But Cannot Be Compiled\"" >&5
14988 echo "$as_me: WARNING: malloc/malloc.h: section \"Present But Cannot Be Compiled\"" >&2;}
14989 { echo "$as_me:$LINENO: WARNING: malloc/malloc.h: proceeding with the preprocessor's result" >&5
14990 echo "$as_me: WARNING: malloc/malloc.h: proceeding with the preprocessor's result" >&2;}
14991 { echo "$as_me:$LINENO: WARNING: malloc/malloc.h: in the future, the compiler will take precedence" >&5
14992 echo "$as_me: WARNING: malloc/malloc.h: in the future, the compiler will take precedence" >&2;}
14995 esac
14996 { echo "$as_me:$LINENO: checking for malloc/malloc.h" >&5
14997 echo $ECHO_N "checking for malloc/malloc.h... $ECHO_C" >&6; }
14998 if test "${ac_cv_header_malloc_malloc_h+set}" = set; then
14999 echo $ECHO_N "(cached) $ECHO_C" >&6
15000 else
15001 ac_cv_header_malloc_malloc_h=$ac_header_preproc
15003 { echo "$as_me:$LINENO: result: $ac_cv_header_malloc_malloc_h" >&5
15004 echo "${ECHO_T}$ac_cv_header_malloc_malloc_h" >&6; }
15007 if test $ac_cv_header_malloc_malloc_h = yes; then
15009 cat >>confdefs.h <<\_ACEOF
15010 #define HAVE_MALLOC_MALLOC_H 1
15011 _ACEOF
15017 ### Use Mac OS X Carbon API to implement GUI.
15018 if test "${HAVE_CARBON}" = "yes"; then
15020 cat >>confdefs.h <<\_ACEOF
15021 #define HAVE_CARBON 1
15022 _ACEOF
15025 for ac_header in AvailabilityMacros.h
15027 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
15028 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15029 { echo "$as_me:$LINENO: checking for $ac_header" >&5
15030 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
15031 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15032 echo $ECHO_N "(cached) $ECHO_C" >&6
15034 ac_res=`eval echo '${'$as_ac_Header'}'`
15035 { echo "$as_me:$LINENO: result: $ac_res" >&5
15036 echo "${ECHO_T}$ac_res" >&6; }
15037 else
15038 # Is the header compilable?
15039 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
15040 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
15041 cat >conftest.$ac_ext <<_ACEOF
15042 /* confdefs.h. */
15043 _ACEOF
15044 cat confdefs.h >>conftest.$ac_ext
15045 cat >>conftest.$ac_ext <<_ACEOF
15046 /* end confdefs.h. */
15047 $ac_includes_default
15048 #include <$ac_header>
15049 _ACEOF
15050 rm -f conftest.$ac_objext
15051 if { (ac_try="$ac_compile"
15052 case "(($ac_try" in
15053 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15054 *) ac_try_echo=$ac_try;;
15055 esac
15056 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15057 (eval "$ac_compile") 2>conftest.er1
15058 ac_status=$?
15059 grep -v '^ *+' conftest.er1 >conftest.err
15060 rm -f conftest.er1
15061 cat conftest.err >&5
15062 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15063 (exit $ac_status); } && {
15064 test -z "$ac_c_werror_flag" ||
15065 test ! -s conftest.err
15066 } && test -s conftest.$ac_objext; then
15067 ac_header_compiler=yes
15068 else
15069 echo "$as_me: failed program was:" >&5
15070 sed 's/^/| /' conftest.$ac_ext >&5
15072 ac_header_compiler=no
15075 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15076 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
15077 echo "${ECHO_T}$ac_header_compiler" >&6; }
15079 # Is the header present?
15080 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
15081 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
15082 cat >conftest.$ac_ext <<_ACEOF
15083 /* confdefs.h. */
15084 _ACEOF
15085 cat confdefs.h >>conftest.$ac_ext
15086 cat >>conftest.$ac_ext <<_ACEOF
15087 /* end confdefs.h. */
15088 #include <$ac_header>
15089 _ACEOF
15090 if { (ac_try="$ac_cpp conftest.$ac_ext"
15091 case "(($ac_try" in
15092 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15093 *) ac_try_echo=$ac_try;;
15094 esac
15095 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15096 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
15097 ac_status=$?
15098 grep -v '^ *+' conftest.er1 >conftest.err
15099 rm -f conftest.er1
15100 cat conftest.err >&5
15101 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15102 (exit $ac_status); } >/dev/null && {
15103 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
15104 test ! -s conftest.err
15105 }; then
15106 ac_header_preproc=yes
15107 else
15108 echo "$as_me: failed program was:" >&5
15109 sed 's/^/| /' conftest.$ac_ext >&5
15111 ac_header_preproc=no
15114 rm -f conftest.err conftest.$ac_ext
15115 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
15116 echo "${ECHO_T}$ac_header_preproc" >&6; }
15118 # So? What about this header?
15119 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
15120 yes:no: )
15121 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
15122 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
15123 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
15124 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
15125 ac_header_preproc=yes
15127 no:yes:* )
15128 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
15129 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
15130 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
15131 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
15132 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
15133 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
15134 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
15135 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
15136 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
15137 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
15138 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
15139 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
15142 esac
15143 { echo "$as_me:$LINENO: checking for $ac_header" >&5
15144 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
15145 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15146 echo $ECHO_N "(cached) $ECHO_C" >&6
15147 else
15148 eval "$as_ac_Header=\$ac_header_preproc"
15150 ac_res=`eval echo '${'$as_ac_Header'}'`
15151 { echo "$as_me:$LINENO: result: $ac_res" >&5
15152 echo "${ECHO_T}$ac_res" >&6; }
15155 if test `eval echo '${'$as_ac_Header'}'` = yes; then
15156 cat >>confdefs.h <<_ACEOF
15157 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
15158 _ACEOF
15162 done
15164 ## Specify the install directory
15165 carbon_appdir=
15166 if test "${carbon_appdir_x}" != ""; then
15167 case ${carbon_appdir_x} in
15168 y | ye | yes) carbon_appdir=/Applications ;;
15169 * ) carbon_appdir=${carbon_appdir_x} ;;
15170 esac
15172 # We also have mouse menus.
15173 HAVE_MENUS=yes
15176 ### Use session management (-lSM -lICE) if available
15177 HAVE_X_SM=no
15178 if test "${HAVE_X11}" = "yes"; then
15179 if test "${ac_cv_header_X11_SM_SMlib_h+set}" = set; then
15180 { echo "$as_me:$LINENO: checking for X11/SM/SMlib.h" >&5
15181 echo $ECHO_N "checking for X11/SM/SMlib.h... $ECHO_C" >&6; }
15182 if test "${ac_cv_header_X11_SM_SMlib_h+set}" = set; then
15183 echo $ECHO_N "(cached) $ECHO_C" >&6
15185 { echo "$as_me:$LINENO: result: $ac_cv_header_X11_SM_SMlib_h" >&5
15186 echo "${ECHO_T}$ac_cv_header_X11_SM_SMlib_h" >&6; }
15187 else
15188 # Is the header compilable?
15189 { echo "$as_me:$LINENO: checking X11/SM/SMlib.h usability" >&5
15190 echo $ECHO_N "checking X11/SM/SMlib.h usability... $ECHO_C" >&6; }
15191 cat >conftest.$ac_ext <<_ACEOF
15192 /* confdefs.h. */
15193 _ACEOF
15194 cat confdefs.h >>conftest.$ac_ext
15195 cat >>conftest.$ac_ext <<_ACEOF
15196 /* end confdefs.h. */
15197 $ac_includes_default
15198 #include <X11/SM/SMlib.h>
15199 _ACEOF
15200 rm -f conftest.$ac_objext
15201 if { (ac_try="$ac_compile"
15202 case "(($ac_try" in
15203 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15204 *) ac_try_echo=$ac_try;;
15205 esac
15206 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15207 (eval "$ac_compile") 2>conftest.er1
15208 ac_status=$?
15209 grep -v '^ *+' conftest.er1 >conftest.err
15210 rm -f conftest.er1
15211 cat conftest.err >&5
15212 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15213 (exit $ac_status); } && {
15214 test -z "$ac_c_werror_flag" ||
15215 test ! -s conftest.err
15216 } && test -s conftest.$ac_objext; then
15217 ac_header_compiler=yes
15218 else
15219 echo "$as_me: failed program was:" >&5
15220 sed 's/^/| /' conftest.$ac_ext >&5
15222 ac_header_compiler=no
15225 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15226 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
15227 echo "${ECHO_T}$ac_header_compiler" >&6; }
15229 # Is the header present?
15230 { echo "$as_me:$LINENO: checking X11/SM/SMlib.h presence" >&5
15231 echo $ECHO_N "checking X11/SM/SMlib.h presence... $ECHO_C" >&6; }
15232 cat >conftest.$ac_ext <<_ACEOF
15233 /* confdefs.h. */
15234 _ACEOF
15235 cat confdefs.h >>conftest.$ac_ext
15236 cat >>conftest.$ac_ext <<_ACEOF
15237 /* end confdefs.h. */
15238 #include <X11/SM/SMlib.h>
15239 _ACEOF
15240 if { (ac_try="$ac_cpp conftest.$ac_ext"
15241 case "(($ac_try" in
15242 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15243 *) ac_try_echo=$ac_try;;
15244 esac
15245 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15246 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
15247 ac_status=$?
15248 grep -v '^ *+' conftest.er1 >conftest.err
15249 rm -f conftest.er1
15250 cat conftest.err >&5
15251 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15252 (exit $ac_status); } >/dev/null && {
15253 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
15254 test ! -s conftest.err
15255 }; then
15256 ac_header_preproc=yes
15257 else
15258 echo "$as_me: failed program was:" >&5
15259 sed 's/^/| /' conftest.$ac_ext >&5
15261 ac_header_preproc=no
15264 rm -f conftest.err conftest.$ac_ext
15265 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
15266 echo "${ECHO_T}$ac_header_preproc" >&6; }
15268 # So? What about this header?
15269 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
15270 yes:no: )
15271 { echo "$as_me:$LINENO: WARNING: X11/SM/SMlib.h: accepted by the compiler, rejected by the preprocessor!" >&5
15272 echo "$as_me: WARNING: X11/SM/SMlib.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
15273 { echo "$as_me:$LINENO: WARNING: X11/SM/SMlib.h: proceeding with the compiler's result" >&5
15274 echo "$as_me: WARNING: X11/SM/SMlib.h: proceeding with the compiler's result" >&2;}
15275 ac_header_preproc=yes
15277 no:yes:* )
15278 { echo "$as_me:$LINENO: WARNING: X11/SM/SMlib.h: present but cannot be compiled" >&5
15279 echo "$as_me: WARNING: X11/SM/SMlib.h: present but cannot be compiled" >&2;}
15280 { echo "$as_me:$LINENO: WARNING: X11/SM/SMlib.h: check for missing prerequisite headers?" >&5
15281 echo "$as_me: WARNING: X11/SM/SMlib.h: check for missing prerequisite headers?" >&2;}
15282 { echo "$as_me:$LINENO: WARNING: X11/SM/SMlib.h: see the Autoconf documentation" >&5
15283 echo "$as_me: WARNING: X11/SM/SMlib.h: see the Autoconf documentation" >&2;}
15284 { echo "$as_me:$LINENO: WARNING: X11/SM/SMlib.h: section \"Present But Cannot Be Compiled\"" >&5
15285 echo "$as_me: WARNING: X11/SM/SMlib.h: section \"Present But Cannot Be Compiled\"" >&2;}
15286 { echo "$as_me:$LINENO: WARNING: X11/SM/SMlib.h: proceeding with the preprocessor's result" >&5
15287 echo "$as_me: WARNING: X11/SM/SMlib.h: proceeding with the preprocessor's result" >&2;}
15288 { echo "$as_me:$LINENO: WARNING: X11/SM/SMlib.h: in the future, the compiler will take precedence" >&5
15289 echo "$as_me: WARNING: X11/SM/SMlib.h: in the future, the compiler will take precedence" >&2;}
15292 esac
15293 { echo "$as_me:$LINENO: checking for X11/SM/SMlib.h" >&5
15294 echo $ECHO_N "checking for X11/SM/SMlib.h... $ECHO_C" >&6; }
15295 if test "${ac_cv_header_X11_SM_SMlib_h+set}" = set; then
15296 echo $ECHO_N "(cached) $ECHO_C" >&6
15297 else
15298 ac_cv_header_X11_SM_SMlib_h=$ac_header_preproc
15300 { echo "$as_me:$LINENO: result: $ac_cv_header_X11_SM_SMlib_h" >&5
15301 echo "${ECHO_T}$ac_cv_header_X11_SM_SMlib_h" >&6; }
15304 if test $ac_cv_header_X11_SM_SMlib_h = yes; then
15305 { echo "$as_me:$LINENO: checking for SmcOpenConnection in -lSM" >&5
15306 echo $ECHO_N "checking for SmcOpenConnection in -lSM... $ECHO_C" >&6; }
15307 if test "${ac_cv_lib_SM_SmcOpenConnection+set}" = set; then
15308 echo $ECHO_N "(cached) $ECHO_C" >&6
15309 else
15310 ac_check_lib_save_LIBS=$LIBS
15311 LIBS="-lSM -lICE $LIBS"
15312 cat >conftest.$ac_ext <<_ACEOF
15313 /* confdefs.h. */
15314 _ACEOF
15315 cat confdefs.h >>conftest.$ac_ext
15316 cat >>conftest.$ac_ext <<_ACEOF
15317 /* end confdefs.h. */
15319 /* Override any GCC internal prototype to avoid an error.
15320 Use char because int might match the return type of a GCC
15321 builtin and then its argument prototype would still apply. */
15322 #ifdef __cplusplus
15323 extern "C"
15324 #endif
15325 char SmcOpenConnection ();
15327 main ()
15329 return SmcOpenConnection ();
15331 return 0;
15333 _ACEOF
15334 rm -f conftest.$ac_objext conftest$ac_exeext
15335 if { (ac_try="$ac_link"
15336 case "(($ac_try" in
15337 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15338 *) ac_try_echo=$ac_try;;
15339 esac
15340 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15341 (eval "$ac_link") 2>conftest.er1
15342 ac_status=$?
15343 grep -v '^ *+' conftest.er1 >conftest.err
15344 rm -f conftest.er1
15345 cat conftest.err >&5
15346 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15347 (exit $ac_status); } && {
15348 test -z "$ac_c_werror_flag" ||
15349 test ! -s conftest.err
15350 } && test -s conftest$ac_exeext &&
15351 $as_test_x conftest$ac_exeext; then
15352 ac_cv_lib_SM_SmcOpenConnection=yes
15353 else
15354 echo "$as_me: failed program was:" >&5
15355 sed 's/^/| /' conftest.$ac_ext >&5
15357 ac_cv_lib_SM_SmcOpenConnection=no
15360 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
15361 conftest$ac_exeext conftest.$ac_ext
15362 LIBS=$ac_check_lib_save_LIBS
15364 { echo "$as_me:$LINENO: result: $ac_cv_lib_SM_SmcOpenConnection" >&5
15365 echo "${ECHO_T}$ac_cv_lib_SM_SmcOpenConnection" >&6; }
15366 if test $ac_cv_lib_SM_SmcOpenConnection = yes; then
15367 HAVE_X_SM=yes
15374 if test "${HAVE_X_SM}" = "yes"; then
15376 cat >>confdefs.h <<\_ACEOF
15377 #define HAVE_X_SM 1
15378 _ACEOF
15380 case "$LIBS" in
15381 *-lSM*) ;;
15382 *) LIBS="-lSM -lICE $LIBS" ;;
15383 esac
15387 # If netdb.h doesn't declare h_errno, we must declare it by hand.
15388 { echo "$as_me:$LINENO: checking whether netdb declares h_errno" >&5
15389 echo $ECHO_N "checking whether netdb declares h_errno... $ECHO_C" >&6; }
15390 if test "${emacs_cv_netdb_declares_h_errno+set}" = set; then
15391 echo $ECHO_N "(cached) $ECHO_C" >&6
15392 else
15393 cat >conftest.$ac_ext <<_ACEOF
15394 /* confdefs.h. */
15395 _ACEOF
15396 cat confdefs.h >>conftest.$ac_ext
15397 cat >>conftest.$ac_ext <<_ACEOF
15398 /* end confdefs.h. */
15399 #include <netdb.h>
15401 main ()
15403 return h_errno;
15405 return 0;
15407 _ACEOF
15408 rm -f conftest.$ac_objext conftest$ac_exeext
15409 if { (ac_try="$ac_link"
15410 case "(($ac_try" in
15411 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15412 *) ac_try_echo=$ac_try;;
15413 esac
15414 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15415 (eval "$ac_link") 2>conftest.er1
15416 ac_status=$?
15417 grep -v '^ *+' conftest.er1 >conftest.err
15418 rm -f conftest.er1
15419 cat conftest.err >&5
15420 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15421 (exit $ac_status); } && {
15422 test -z "$ac_c_werror_flag" ||
15423 test ! -s conftest.err
15424 } && test -s conftest$ac_exeext &&
15425 $as_test_x conftest$ac_exeext; then
15426 emacs_cv_netdb_declares_h_errno=yes
15427 else
15428 echo "$as_me: failed program was:" >&5
15429 sed 's/^/| /' conftest.$ac_ext >&5
15431 emacs_cv_netdb_declares_h_errno=no
15434 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
15435 conftest$ac_exeext conftest.$ac_ext
15437 { echo "$as_me:$LINENO: result: $emacs_cv_netdb_declares_h_errno" >&5
15438 echo "${ECHO_T}$emacs_cv_netdb_declares_h_errno" >&6; }
15439 if test $emacs_cv_netdb_declares_h_errno = yes; then
15441 cat >>confdefs.h <<\_ACEOF
15442 #define HAVE_H_ERRNO 1
15443 _ACEOF
15447 # The Ultrix 4.2 mips builtin alloca declared by alloca.h only works
15448 # for constant arguments. Useless!
15449 { echo "$as_me:$LINENO: checking for working alloca.h" >&5
15450 echo $ECHO_N "checking for working alloca.h... $ECHO_C" >&6; }
15451 if test "${ac_cv_working_alloca_h+set}" = set; then
15452 echo $ECHO_N "(cached) $ECHO_C" >&6
15453 else
15454 cat >conftest.$ac_ext <<_ACEOF
15455 /* confdefs.h. */
15456 _ACEOF
15457 cat confdefs.h >>conftest.$ac_ext
15458 cat >>conftest.$ac_ext <<_ACEOF
15459 /* end confdefs.h. */
15460 #include <alloca.h>
15462 main ()
15464 char *p = (char *) alloca (2 * sizeof (int));
15465 if (p) return 0;
15467 return 0;
15469 _ACEOF
15470 rm -f conftest.$ac_objext conftest$ac_exeext
15471 if { (ac_try="$ac_link"
15472 case "(($ac_try" in
15473 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15474 *) ac_try_echo=$ac_try;;
15475 esac
15476 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15477 (eval "$ac_link") 2>conftest.er1
15478 ac_status=$?
15479 grep -v '^ *+' conftest.er1 >conftest.err
15480 rm -f conftest.er1
15481 cat conftest.err >&5
15482 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15483 (exit $ac_status); } && {
15484 test -z "$ac_c_werror_flag" ||
15485 test ! -s conftest.err
15486 } && test -s conftest$ac_exeext &&
15487 $as_test_x conftest$ac_exeext; then
15488 ac_cv_working_alloca_h=yes
15489 else
15490 echo "$as_me: failed program was:" >&5
15491 sed 's/^/| /' conftest.$ac_ext >&5
15493 ac_cv_working_alloca_h=no
15496 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
15497 conftest$ac_exeext conftest.$ac_ext
15499 { echo "$as_me:$LINENO: result: $ac_cv_working_alloca_h" >&5
15500 echo "${ECHO_T}$ac_cv_working_alloca_h" >&6; }
15501 if test $ac_cv_working_alloca_h = yes; then
15503 cat >>confdefs.h <<\_ACEOF
15504 #define HAVE_ALLOCA_H 1
15505 _ACEOF
15509 { echo "$as_me:$LINENO: checking for alloca" >&5
15510 echo $ECHO_N "checking for alloca... $ECHO_C" >&6; }
15511 if test "${ac_cv_func_alloca_works+set}" = set; then
15512 echo $ECHO_N "(cached) $ECHO_C" >&6
15513 else
15514 cat >conftest.$ac_ext <<_ACEOF
15515 /* confdefs.h. */
15516 _ACEOF
15517 cat confdefs.h >>conftest.$ac_ext
15518 cat >>conftest.$ac_ext <<_ACEOF
15519 /* end confdefs.h. */
15520 #ifdef __GNUC__
15521 # define alloca __builtin_alloca
15522 #else
15523 # ifdef _MSC_VER
15524 # include <malloc.h>
15525 # define alloca _alloca
15526 # else
15527 # ifdef HAVE_ALLOCA_H
15528 # include <alloca.h>
15529 # else
15530 # ifdef _AIX
15531 #pragma alloca
15532 # else
15533 # ifndef alloca /* predefined by HP cc +Olibcalls */
15534 char *alloca ();
15535 # endif
15536 # endif
15537 # endif
15538 # endif
15539 #endif
15542 main ()
15544 char *p = (char *) alloca (1);
15545 if (p) return 0;
15547 return 0;
15549 _ACEOF
15550 rm -f conftest.$ac_objext conftest$ac_exeext
15551 if { (ac_try="$ac_link"
15552 case "(($ac_try" in
15553 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15554 *) ac_try_echo=$ac_try;;
15555 esac
15556 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15557 (eval "$ac_link") 2>conftest.er1
15558 ac_status=$?
15559 grep -v '^ *+' conftest.er1 >conftest.err
15560 rm -f conftest.er1
15561 cat conftest.err >&5
15562 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15563 (exit $ac_status); } && {
15564 test -z "$ac_c_werror_flag" ||
15565 test ! -s conftest.err
15566 } && test -s conftest$ac_exeext &&
15567 $as_test_x conftest$ac_exeext; then
15568 ac_cv_func_alloca_works=yes
15569 else
15570 echo "$as_me: failed program was:" >&5
15571 sed 's/^/| /' conftest.$ac_ext >&5
15573 ac_cv_func_alloca_works=no
15576 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
15577 conftest$ac_exeext conftest.$ac_ext
15579 { echo "$as_me:$LINENO: result: $ac_cv_func_alloca_works" >&5
15580 echo "${ECHO_T}$ac_cv_func_alloca_works" >&6; }
15582 if test $ac_cv_func_alloca_works = yes; then
15584 cat >>confdefs.h <<\_ACEOF
15585 #define HAVE_ALLOCA 1
15586 _ACEOF
15588 else
15589 # The SVR3 libPW and SVR4 libucb both contain incompatible functions
15590 # that cause trouble. Some versions do not even contain alloca or
15591 # contain a buggy version. If you still want to use their alloca,
15592 # use ar to extract alloca.o from them instead of compiling alloca.c.
15594 ALLOCA=\${LIBOBJDIR}alloca.$ac_objext
15596 cat >>confdefs.h <<\_ACEOF
15597 #define C_ALLOCA 1
15598 _ACEOF
15601 { echo "$as_me:$LINENO: checking whether \`alloca.c' needs Cray hooks" >&5
15602 echo $ECHO_N "checking whether \`alloca.c' needs Cray hooks... $ECHO_C" >&6; }
15603 if test "${ac_cv_os_cray+set}" = set; then
15604 echo $ECHO_N "(cached) $ECHO_C" >&6
15605 else
15606 cat >conftest.$ac_ext <<_ACEOF
15607 /* confdefs.h. */
15608 _ACEOF
15609 cat confdefs.h >>conftest.$ac_ext
15610 cat >>conftest.$ac_ext <<_ACEOF
15611 /* end confdefs.h. */
15612 #if defined CRAY && ! defined CRAY2
15613 webecray
15614 #else
15615 wenotbecray
15616 #endif
15618 _ACEOF
15619 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
15620 $EGREP "webecray" >/dev/null 2>&1; then
15621 ac_cv_os_cray=yes
15622 else
15623 ac_cv_os_cray=no
15625 rm -f conftest*
15628 { echo "$as_me:$LINENO: result: $ac_cv_os_cray" >&5
15629 echo "${ECHO_T}$ac_cv_os_cray" >&6; }
15630 if test $ac_cv_os_cray = yes; then
15631 for ac_func in _getb67 GETB67 getb67; do
15632 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
15633 { echo "$as_me:$LINENO: checking for $ac_func" >&5
15634 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
15635 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
15636 echo $ECHO_N "(cached) $ECHO_C" >&6
15637 else
15638 cat >conftest.$ac_ext <<_ACEOF
15639 /* confdefs.h. */
15640 _ACEOF
15641 cat confdefs.h >>conftest.$ac_ext
15642 cat >>conftest.$ac_ext <<_ACEOF
15643 /* end confdefs.h. */
15644 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
15645 For example, HP-UX 11i <limits.h> declares gettimeofday. */
15646 #define $ac_func innocuous_$ac_func
15648 /* System header to define __stub macros and hopefully few prototypes,
15649 which can conflict with char $ac_func (); below.
15650 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
15651 <limits.h> exists even on freestanding compilers. */
15653 #ifdef __STDC__
15654 # include <limits.h>
15655 #else
15656 # include <assert.h>
15657 #endif
15659 #undef $ac_func
15661 /* Override any GCC internal prototype to avoid an error.
15662 Use char because int might match the return type of a GCC
15663 builtin and then its argument prototype would still apply. */
15664 #ifdef __cplusplus
15665 extern "C"
15666 #endif
15667 char $ac_func ();
15668 /* The GNU C library defines this for functions which it implements
15669 to always fail with ENOSYS. Some functions are actually named
15670 something starting with __ and the normal name is an alias. */
15671 #if defined __stub_$ac_func || defined __stub___$ac_func
15672 choke me
15673 #endif
15676 main ()
15678 return $ac_func ();
15680 return 0;
15682 _ACEOF
15683 rm -f conftest.$ac_objext conftest$ac_exeext
15684 if { (ac_try="$ac_link"
15685 case "(($ac_try" in
15686 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15687 *) ac_try_echo=$ac_try;;
15688 esac
15689 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15690 (eval "$ac_link") 2>conftest.er1
15691 ac_status=$?
15692 grep -v '^ *+' conftest.er1 >conftest.err
15693 rm -f conftest.er1
15694 cat conftest.err >&5
15695 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15696 (exit $ac_status); } && {
15697 test -z "$ac_c_werror_flag" ||
15698 test ! -s conftest.err
15699 } && test -s conftest$ac_exeext &&
15700 $as_test_x conftest$ac_exeext; then
15701 eval "$as_ac_var=yes"
15702 else
15703 echo "$as_me: failed program was:" >&5
15704 sed 's/^/| /' conftest.$ac_ext >&5
15706 eval "$as_ac_var=no"
15709 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
15710 conftest$ac_exeext conftest.$ac_ext
15712 ac_res=`eval echo '${'$as_ac_var'}'`
15713 { echo "$as_me:$LINENO: result: $ac_res" >&5
15714 echo "${ECHO_T}$ac_res" >&6; }
15715 if test `eval echo '${'$as_ac_var'}'` = yes; then
15717 cat >>confdefs.h <<_ACEOF
15718 #define CRAY_STACKSEG_END $ac_func
15719 _ACEOF
15721 break
15724 done
15727 { echo "$as_me:$LINENO: checking stack direction for C alloca" >&5
15728 echo $ECHO_N "checking stack direction for C alloca... $ECHO_C" >&6; }
15729 if test "${ac_cv_c_stack_direction+set}" = set; then
15730 echo $ECHO_N "(cached) $ECHO_C" >&6
15731 else
15732 if test "$cross_compiling" = yes; then
15733 ac_cv_c_stack_direction=0
15734 else
15735 cat >conftest.$ac_ext <<_ACEOF
15736 /* confdefs.h. */
15737 _ACEOF
15738 cat confdefs.h >>conftest.$ac_ext
15739 cat >>conftest.$ac_ext <<_ACEOF
15740 /* end confdefs.h. */
15741 $ac_includes_default
15743 find_stack_direction ()
15745 static char *addr = 0;
15746 auto char dummy;
15747 if (addr == 0)
15749 addr = &dummy;
15750 return find_stack_direction ();
15752 else
15753 return (&dummy > addr) ? 1 : -1;
15757 main ()
15759 return find_stack_direction () < 0;
15761 _ACEOF
15762 rm -f conftest$ac_exeext
15763 if { (ac_try="$ac_link"
15764 case "(($ac_try" in
15765 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15766 *) ac_try_echo=$ac_try;;
15767 esac
15768 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15769 (eval "$ac_link") 2>&5
15770 ac_status=$?
15771 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15772 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
15773 { (case "(($ac_try" in
15774 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15775 *) ac_try_echo=$ac_try;;
15776 esac
15777 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15778 (eval "$ac_try") 2>&5
15779 ac_status=$?
15780 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15781 (exit $ac_status); }; }; then
15782 ac_cv_c_stack_direction=1
15783 else
15784 echo "$as_me: program exited with status $ac_status" >&5
15785 echo "$as_me: failed program was:" >&5
15786 sed 's/^/| /' conftest.$ac_ext >&5
15788 ( exit $ac_status )
15789 ac_cv_c_stack_direction=-1
15791 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
15796 { echo "$as_me:$LINENO: result: $ac_cv_c_stack_direction" >&5
15797 echo "${ECHO_T}$ac_cv_c_stack_direction" >&6; }
15799 cat >>confdefs.h <<_ACEOF
15800 #define STACK_DIRECTION $ac_cv_c_stack_direction
15801 _ACEOF
15807 if test x"$ac_cv_func_alloca_works" != xyes; then
15808 { { echo "$as_me:$LINENO: error: a system implementation of alloca is required " >&5
15809 echo "$as_me: error: a system implementation of alloca is required " >&2;}
15810 { (exit 1); exit 1; }; }
15813 # fmod, logb, and frexp are found in -lm on most systems.
15814 # On HPUX 9.01, -lm does not contain logb, so check for sqrt.
15816 { echo "$as_me:$LINENO: checking for sqrt in -lm" >&5
15817 echo $ECHO_N "checking for sqrt in -lm... $ECHO_C" >&6; }
15818 if test "${ac_cv_lib_m_sqrt+set}" = set; then
15819 echo $ECHO_N "(cached) $ECHO_C" >&6
15820 else
15821 ac_check_lib_save_LIBS=$LIBS
15822 LIBS="-lm $LIBS"
15823 cat >conftest.$ac_ext <<_ACEOF
15824 /* confdefs.h. */
15825 _ACEOF
15826 cat confdefs.h >>conftest.$ac_ext
15827 cat >>conftest.$ac_ext <<_ACEOF
15828 /* end confdefs.h. */
15830 /* Override any GCC internal prototype to avoid an error.
15831 Use char because int might match the return type of a GCC
15832 builtin and then its argument prototype would still apply. */
15833 #ifdef __cplusplus
15834 extern "C"
15835 #endif
15836 char sqrt ();
15838 main ()
15840 return sqrt ();
15842 return 0;
15844 _ACEOF
15845 rm -f conftest.$ac_objext conftest$ac_exeext
15846 if { (ac_try="$ac_link"
15847 case "(($ac_try" in
15848 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15849 *) ac_try_echo=$ac_try;;
15850 esac
15851 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15852 (eval "$ac_link") 2>conftest.er1
15853 ac_status=$?
15854 grep -v '^ *+' conftest.er1 >conftest.err
15855 rm -f conftest.er1
15856 cat conftest.err >&5
15857 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15858 (exit $ac_status); } && {
15859 test -z "$ac_c_werror_flag" ||
15860 test ! -s conftest.err
15861 } && test -s conftest$ac_exeext &&
15862 $as_test_x conftest$ac_exeext; then
15863 ac_cv_lib_m_sqrt=yes
15864 else
15865 echo "$as_me: failed program was:" >&5
15866 sed 's/^/| /' conftest.$ac_ext >&5
15868 ac_cv_lib_m_sqrt=no
15871 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
15872 conftest$ac_exeext conftest.$ac_ext
15873 LIBS=$ac_check_lib_save_LIBS
15875 { echo "$as_me:$LINENO: result: $ac_cv_lib_m_sqrt" >&5
15876 echo "${ECHO_T}$ac_cv_lib_m_sqrt" >&6; }
15877 if test $ac_cv_lib_m_sqrt = yes; then
15878 cat >>confdefs.h <<_ACEOF
15879 #define HAVE_LIBM 1
15880 _ACEOF
15882 LIBS="-lm $LIBS"
15887 # Check for mail-locking functions in a "mail" library. Probably this should
15888 # have the same check as for liblockfile below.
15890 { echo "$as_me:$LINENO: checking for maillock in -lmail" >&5
15891 echo $ECHO_N "checking for maillock in -lmail... $ECHO_C" >&6; }
15892 if test "${ac_cv_lib_mail_maillock+set}" = set; then
15893 echo $ECHO_N "(cached) $ECHO_C" >&6
15894 else
15895 ac_check_lib_save_LIBS=$LIBS
15896 LIBS="-lmail $LIBS"
15897 cat >conftest.$ac_ext <<_ACEOF
15898 /* confdefs.h. */
15899 _ACEOF
15900 cat confdefs.h >>conftest.$ac_ext
15901 cat >>conftest.$ac_ext <<_ACEOF
15902 /* end confdefs.h. */
15904 /* Override any GCC internal prototype to avoid an error.
15905 Use char because int might match the return type of a GCC
15906 builtin and then its argument prototype would still apply. */
15907 #ifdef __cplusplus
15908 extern "C"
15909 #endif
15910 char maillock ();
15912 main ()
15914 return maillock ();
15916 return 0;
15918 _ACEOF
15919 rm -f conftest.$ac_objext conftest$ac_exeext
15920 if { (ac_try="$ac_link"
15921 case "(($ac_try" in
15922 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15923 *) ac_try_echo=$ac_try;;
15924 esac
15925 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15926 (eval "$ac_link") 2>conftest.er1
15927 ac_status=$?
15928 grep -v '^ *+' conftest.er1 >conftest.err
15929 rm -f conftest.er1
15930 cat conftest.err >&5
15931 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15932 (exit $ac_status); } && {
15933 test -z "$ac_c_werror_flag" ||
15934 test ! -s conftest.err
15935 } && test -s conftest$ac_exeext &&
15936 $as_test_x conftest$ac_exeext; then
15937 ac_cv_lib_mail_maillock=yes
15938 else
15939 echo "$as_me: failed program was:" >&5
15940 sed 's/^/| /' conftest.$ac_ext >&5
15942 ac_cv_lib_mail_maillock=no
15945 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
15946 conftest$ac_exeext conftest.$ac_ext
15947 LIBS=$ac_check_lib_save_LIBS
15949 { echo "$as_me:$LINENO: result: $ac_cv_lib_mail_maillock" >&5
15950 echo "${ECHO_T}$ac_cv_lib_mail_maillock" >&6; }
15951 if test $ac_cv_lib_mail_maillock = yes; then
15952 cat >>confdefs.h <<_ACEOF
15953 #define HAVE_LIBMAIL 1
15954 _ACEOF
15956 LIBS="-lmail $LIBS"
15961 { echo "$as_me:$LINENO: checking for maillock in -llockfile" >&5
15962 echo $ECHO_N "checking for maillock in -llockfile... $ECHO_C" >&6; }
15963 if test "${ac_cv_lib_lockfile_maillock+set}" = set; then
15964 echo $ECHO_N "(cached) $ECHO_C" >&6
15965 else
15966 ac_check_lib_save_LIBS=$LIBS
15967 LIBS="-llockfile $LIBS"
15968 cat >conftest.$ac_ext <<_ACEOF
15969 /* confdefs.h. */
15970 _ACEOF
15971 cat confdefs.h >>conftest.$ac_ext
15972 cat >>conftest.$ac_ext <<_ACEOF
15973 /* end confdefs.h. */
15975 /* Override any GCC internal prototype to avoid an error.
15976 Use char because int might match the return type of a GCC
15977 builtin and then its argument prototype would still apply. */
15978 #ifdef __cplusplus
15979 extern "C"
15980 #endif
15981 char maillock ();
15983 main ()
15985 return maillock ();
15987 return 0;
15989 _ACEOF
15990 rm -f conftest.$ac_objext conftest$ac_exeext
15991 if { (ac_try="$ac_link"
15992 case "(($ac_try" in
15993 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15994 *) ac_try_echo=$ac_try;;
15995 esac
15996 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15997 (eval "$ac_link") 2>conftest.er1
15998 ac_status=$?
15999 grep -v '^ *+' conftest.er1 >conftest.err
16000 rm -f conftest.er1
16001 cat conftest.err >&5
16002 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16003 (exit $ac_status); } && {
16004 test -z "$ac_c_werror_flag" ||
16005 test ! -s conftest.err
16006 } && test -s conftest$ac_exeext &&
16007 $as_test_x conftest$ac_exeext; then
16008 ac_cv_lib_lockfile_maillock=yes
16009 else
16010 echo "$as_me: failed program was:" >&5
16011 sed 's/^/| /' conftest.$ac_ext >&5
16013 ac_cv_lib_lockfile_maillock=no
16016 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
16017 conftest$ac_exeext conftest.$ac_ext
16018 LIBS=$ac_check_lib_save_LIBS
16020 { echo "$as_me:$LINENO: result: $ac_cv_lib_lockfile_maillock" >&5
16021 echo "${ECHO_T}$ac_cv_lib_lockfile_maillock" >&6; }
16022 if test $ac_cv_lib_lockfile_maillock = yes; then
16023 cat >>confdefs.h <<_ACEOF
16024 #define HAVE_LIBLOCKFILE 1
16025 _ACEOF
16027 LIBS="-llockfile $LIBS"
16031 # If we have the shared liblockfile, assume we must use it for mail
16032 # locking (e.g. Debian). If we couldn't link against liblockfile
16033 # (no liblockfile.a installed), ensure that we don't need to.
16034 if test "$ac_cv_lib_lockfile_maillock" = no; then
16035 # Extract the first word of "liblockfile.so", so it can be a program name with args.
16036 set dummy liblockfile.so; ac_word=$2
16037 { echo "$as_me:$LINENO: checking for $ac_word" >&5
16038 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
16039 if test "${ac_cv_prog_liblockfile+set}" = set; then
16040 echo $ECHO_N "(cached) $ECHO_C" >&6
16041 else
16042 if test -n "$liblockfile"; then
16043 ac_cv_prog_liblockfile="$liblockfile" # Let the user override the test.
16044 else
16045 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
16046 as_dummy="/usr/lib:/lib:/usr/local/lib:$LD_LIBRARY_PATH"
16047 for as_dir in $as_dummy
16049 IFS=$as_save_IFS
16050 test -z "$as_dir" && as_dir=.
16051 for ac_exec_ext in '' $ac_executable_extensions; do
16052 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
16053 ac_cv_prog_liblockfile="yes"
16054 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
16055 break 2
16057 done
16058 done
16059 IFS=$as_save_IFS
16061 test -z "$ac_cv_prog_liblockfile" && ac_cv_prog_liblockfile="no"
16064 liblockfile=$ac_cv_prog_liblockfile
16065 if test -n "$liblockfile"; then
16066 { echo "$as_me:$LINENO: result: $liblockfile" >&5
16067 echo "${ECHO_T}$liblockfile" >&6; }
16068 else
16069 { echo "$as_me:$LINENO: result: no" >&5
16070 echo "${ECHO_T}no" >&6; }
16074 if test $ac_cv_prog_liblockfile = yes; then
16075 { { echo "$as_me:$LINENO: error: Shared liblockfile found but can't link against it.
16076 This probably means that movemail could lose mail.
16077 There may be a \`development' package to install containing liblockfile." >&5
16078 echo "$as_me: error: Shared liblockfile found but can't link against it.
16079 This probably means that movemail could lose mail.
16080 There may be a \`development' package to install containing liblockfile." >&2;}
16081 { (exit 1); exit 1; }; }
16082 else :
16086 for ac_func in touchlock
16088 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
16089 { echo "$as_me:$LINENO: checking for $ac_func" >&5
16090 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
16091 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
16092 echo $ECHO_N "(cached) $ECHO_C" >&6
16093 else
16094 cat >conftest.$ac_ext <<_ACEOF
16095 /* confdefs.h. */
16096 _ACEOF
16097 cat confdefs.h >>conftest.$ac_ext
16098 cat >>conftest.$ac_ext <<_ACEOF
16099 /* end confdefs.h. */
16100 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
16101 For example, HP-UX 11i <limits.h> declares gettimeofday. */
16102 #define $ac_func innocuous_$ac_func
16104 /* System header to define __stub macros and hopefully few prototypes,
16105 which can conflict with char $ac_func (); below.
16106 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
16107 <limits.h> exists even on freestanding compilers. */
16109 #ifdef __STDC__
16110 # include <limits.h>
16111 #else
16112 # include <assert.h>
16113 #endif
16115 #undef $ac_func
16117 /* Override any GCC internal prototype to avoid an error.
16118 Use char because int might match the return type of a GCC
16119 builtin and then its argument prototype would still apply. */
16120 #ifdef __cplusplus
16121 extern "C"
16122 #endif
16123 char $ac_func ();
16124 /* The GNU C library defines this for functions which it implements
16125 to always fail with ENOSYS. Some functions are actually named
16126 something starting with __ and the normal name is an alias. */
16127 #if defined __stub_$ac_func || defined __stub___$ac_func
16128 choke me
16129 #endif
16132 main ()
16134 return $ac_func ();
16136 return 0;
16138 _ACEOF
16139 rm -f conftest.$ac_objext conftest$ac_exeext
16140 if { (ac_try="$ac_link"
16141 case "(($ac_try" in
16142 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16143 *) ac_try_echo=$ac_try;;
16144 esac
16145 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16146 (eval "$ac_link") 2>conftest.er1
16147 ac_status=$?
16148 grep -v '^ *+' conftest.er1 >conftest.err
16149 rm -f conftest.er1
16150 cat conftest.err >&5
16151 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16152 (exit $ac_status); } && {
16153 test -z "$ac_c_werror_flag" ||
16154 test ! -s conftest.err
16155 } && test -s conftest$ac_exeext &&
16156 $as_test_x conftest$ac_exeext; then
16157 eval "$as_ac_var=yes"
16158 else
16159 echo "$as_me: failed program was:" >&5
16160 sed 's/^/| /' conftest.$ac_ext >&5
16162 eval "$as_ac_var=no"
16165 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
16166 conftest$ac_exeext conftest.$ac_ext
16168 ac_res=`eval echo '${'$as_ac_var'}'`
16169 { echo "$as_me:$LINENO: result: $ac_res" >&5
16170 echo "${ECHO_T}$ac_res" >&6; }
16171 if test `eval echo '${'$as_ac_var'}'` = yes; then
16172 cat >>confdefs.h <<_ACEOF
16173 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
16174 _ACEOF
16177 done
16180 for ac_header in maillock.h
16182 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
16183 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
16184 { echo "$as_me:$LINENO: checking for $ac_header" >&5
16185 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
16186 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
16187 echo $ECHO_N "(cached) $ECHO_C" >&6
16189 ac_res=`eval echo '${'$as_ac_Header'}'`
16190 { echo "$as_me:$LINENO: result: $ac_res" >&5
16191 echo "${ECHO_T}$ac_res" >&6; }
16192 else
16193 # Is the header compilable?
16194 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
16195 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
16196 cat >conftest.$ac_ext <<_ACEOF
16197 /* confdefs.h. */
16198 _ACEOF
16199 cat confdefs.h >>conftest.$ac_ext
16200 cat >>conftest.$ac_ext <<_ACEOF
16201 /* end confdefs.h. */
16202 $ac_includes_default
16203 #include <$ac_header>
16204 _ACEOF
16205 rm -f conftest.$ac_objext
16206 if { (ac_try="$ac_compile"
16207 case "(($ac_try" in
16208 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16209 *) ac_try_echo=$ac_try;;
16210 esac
16211 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16212 (eval "$ac_compile") 2>conftest.er1
16213 ac_status=$?
16214 grep -v '^ *+' conftest.er1 >conftest.err
16215 rm -f conftest.er1
16216 cat conftest.err >&5
16217 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16218 (exit $ac_status); } && {
16219 test -z "$ac_c_werror_flag" ||
16220 test ! -s conftest.err
16221 } && test -s conftest.$ac_objext; then
16222 ac_header_compiler=yes
16223 else
16224 echo "$as_me: failed program was:" >&5
16225 sed 's/^/| /' conftest.$ac_ext >&5
16227 ac_header_compiler=no
16230 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16231 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
16232 echo "${ECHO_T}$ac_header_compiler" >&6; }
16234 # Is the header present?
16235 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
16236 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
16237 cat >conftest.$ac_ext <<_ACEOF
16238 /* confdefs.h. */
16239 _ACEOF
16240 cat confdefs.h >>conftest.$ac_ext
16241 cat >>conftest.$ac_ext <<_ACEOF
16242 /* end confdefs.h. */
16243 #include <$ac_header>
16244 _ACEOF
16245 if { (ac_try="$ac_cpp conftest.$ac_ext"
16246 case "(($ac_try" in
16247 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16248 *) ac_try_echo=$ac_try;;
16249 esac
16250 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16251 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
16252 ac_status=$?
16253 grep -v '^ *+' conftest.er1 >conftest.err
16254 rm -f conftest.er1
16255 cat conftest.err >&5
16256 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16257 (exit $ac_status); } >/dev/null && {
16258 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
16259 test ! -s conftest.err
16260 }; then
16261 ac_header_preproc=yes
16262 else
16263 echo "$as_me: failed program was:" >&5
16264 sed 's/^/| /' conftest.$ac_ext >&5
16266 ac_header_preproc=no
16269 rm -f conftest.err conftest.$ac_ext
16270 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
16271 echo "${ECHO_T}$ac_header_preproc" >&6; }
16273 # So? What about this header?
16274 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
16275 yes:no: )
16276 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
16277 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
16278 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
16279 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
16280 ac_header_preproc=yes
16282 no:yes:* )
16283 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
16284 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
16285 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
16286 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
16287 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
16288 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
16289 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
16290 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
16291 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
16292 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
16293 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
16294 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
16297 esac
16298 { echo "$as_me:$LINENO: checking for $ac_header" >&5
16299 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
16300 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
16301 echo $ECHO_N "(cached) $ECHO_C" >&6
16302 else
16303 eval "$as_ac_Header=\$ac_header_preproc"
16305 ac_res=`eval echo '${'$as_ac_Header'}'`
16306 { echo "$as_me:$LINENO: result: $ac_res" >&5
16307 echo "${ECHO_T}$ac_res" >&6; }
16310 if test `eval echo '${'$as_ac_Header'}'` = yes; then
16311 cat >>confdefs.h <<_ACEOF
16312 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
16313 _ACEOF
16317 done
16388 for ac_func in gethostname getdomainname dup2 \
16389 rename closedir mkdir rmdir sysinfo getrusage get_current_dir_name \
16390 random lrand48 bcopy bcmp logb frexp fmod rint cbrt ftime setsid \
16391 strerror fpathconf select mktime euidaccess getpagesize tzset setlocale \
16392 utimes setrlimit setpgid getcwd getwd shutdown getaddrinfo \
16393 __fpending mblen mbrlen mbsinit strsignal setitimer ualarm index rindex \
16394 sendto recvfrom getsockopt setsockopt getsockname getpeername \
16395 gai_strerror mkstemp getline getdelim mremap memmove fsync sync bzero \
16396 memset memcmp difftime memcpy mempcpy mblen mbrlen posix_memalign
16398 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
16399 { echo "$as_me:$LINENO: checking for $ac_func" >&5
16400 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
16401 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
16402 echo $ECHO_N "(cached) $ECHO_C" >&6
16403 else
16404 cat >conftest.$ac_ext <<_ACEOF
16405 /* confdefs.h. */
16406 _ACEOF
16407 cat confdefs.h >>conftest.$ac_ext
16408 cat >>conftest.$ac_ext <<_ACEOF
16409 /* end confdefs.h. */
16410 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
16411 For example, HP-UX 11i <limits.h> declares gettimeofday. */
16412 #define $ac_func innocuous_$ac_func
16414 /* System header to define __stub macros and hopefully few prototypes,
16415 which can conflict with char $ac_func (); below.
16416 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
16417 <limits.h> exists even on freestanding compilers. */
16419 #ifdef __STDC__
16420 # include <limits.h>
16421 #else
16422 # include <assert.h>
16423 #endif
16425 #undef $ac_func
16427 /* Override any GCC internal prototype to avoid an error.
16428 Use char because int might match the return type of a GCC
16429 builtin and then its argument prototype would still apply. */
16430 #ifdef __cplusplus
16431 extern "C"
16432 #endif
16433 char $ac_func ();
16434 /* The GNU C library defines this for functions which it implements
16435 to always fail with ENOSYS. Some functions are actually named
16436 something starting with __ and the normal name is an alias. */
16437 #if defined __stub_$ac_func || defined __stub___$ac_func
16438 choke me
16439 #endif
16442 main ()
16444 return $ac_func ();
16446 return 0;
16448 _ACEOF
16449 rm -f conftest.$ac_objext conftest$ac_exeext
16450 if { (ac_try="$ac_link"
16451 case "(($ac_try" in
16452 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16453 *) ac_try_echo=$ac_try;;
16454 esac
16455 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16456 (eval "$ac_link") 2>conftest.er1
16457 ac_status=$?
16458 grep -v '^ *+' conftest.er1 >conftest.err
16459 rm -f conftest.er1
16460 cat conftest.err >&5
16461 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16462 (exit $ac_status); } && {
16463 test -z "$ac_c_werror_flag" ||
16464 test ! -s conftest.err
16465 } && test -s conftest$ac_exeext &&
16466 $as_test_x conftest$ac_exeext; then
16467 eval "$as_ac_var=yes"
16468 else
16469 echo "$as_me: failed program was:" >&5
16470 sed 's/^/| /' conftest.$ac_ext >&5
16472 eval "$as_ac_var=no"
16475 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
16476 conftest$ac_exeext conftest.$ac_ext
16478 ac_res=`eval echo '${'$as_ac_var'}'`
16479 { echo "$as_me:$LINENO: result: $ac_res" >&5
16480 echo "${ECHO_T}$ac_res" >&6; }
16481 if test `eval echo '${'$as_ac_var'}'` = yes; then
16482 cat >>confdefs.h <<_ACEOF
16483 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
16484 _ACEOF
16487 done
16491 for ac_header in sys/un.h
16493 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
16494 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
16495 { echo "$as_me:$LINENO: checking for $ac_header" >&5
16496 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
16497 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
16498 echo $ECHO_N "(cached) $ECHO_C" >&6
16500 ac_res=`eval echo '${'$as_ac_Header'}'`
16501 { echo "$as_me:$LINENO: result: $ac_res" >&5
16502 echo "${ECHO_T}$ac_res" >&6; }
16503 else
16504 # Is the header compilable?
16505 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
16506 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
16507 cat >conftest.$ac_ext <<_ACEOF
16508 /* confdefs.h. */
16509 _ACEOF
16510 cat confdefs.h >>conftest.$ac_ext
16511 cat >>conftest.$ac_ext <<_ACEOF
16512 /* end confdefs.h. */
16513 $ac_includes_default
16514 #include <$ac_header>
16515 _ACEOF
16516 rm -f conftest.$ac_objext
16517 if { (ac_try="$ac_compile"
16518 case "(($ac_try" in
16519 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16520 *) ac_try_echo=$ac_try;;
16521 esac
16522 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16523 (eval "$ac_compile") 2>conftest.er1
16524 ac_status=$?
16525 grep -v '^ *+' conftest.er1 >conftest.err
16526 rm -f conftest.er1
16527 cat conftest.err >&5
16528 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16529 (exit $ac_status); } && {
16530 test -z "$ac_c_werror_flag" ||
16531 test ! -s conftest.err
16532 } && test -s conftest.$ac_objext; then
16533 ac_header_compiler=yes
16534 else
16535 echo "$as_me: failed program was:" >&5
16536 sed 's/^/| /' conftest.$ac_ext >&5
16538 ac_header_compiler=no
16541 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16542 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
16543 echo "${ECHO_T}$ac_header_compiler" >&6; }
16545 # Is the header present?
16546 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
16547 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
16548 cat >conftest.$ac_ext <<_ACEOF
16549 /* confdefs.h. */
16550 _ACEOF
16551 cat confdefs.h >>conftest.$ac_ext
16552 cat >>conftest.$ac_ext <<_ACEOF
16553 /* end confdefs.h. */
16554 #include <$ac_header>
16555 _ACEOF
16556 if { (ac_try="$ac_cpp conftest.$ac_ext"
16557 case "(($ac_try" in
16558 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16559 *) ac_try_echo=$ac_try;;
16560 esac
16561 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16562 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
16563 ac_status=$?
16564 grep -v '^ *+' conftest.er1 >conftest.err
16565 rm -f conftest.er1
16566 cat conftest.err >&5
16567 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16568 (exit $ac_status); } >/dev/null && {
16569 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
16570 test ! -s conftest.err
16571 }; then
16572 ac_header_preproc=yes
16573 else
16574 echo "$as_me: failed program was:" >&5
16575 sed 's/^/| /' conftest.$ac_ext >&5
16577 ac_header_preproc=no
16580 rm -f conftest.err conftest.$ac_ext
16581 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
16582 echo "${ECHO_T}$ac_header_preproc" >&6; }
16584 # So? What about this header?
16585 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
16586 yes:no: )
16587 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
16588 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
16589 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
16590 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
16591 ac_header_preproc=yes
16593 no:yes:* )
16594 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
16595 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
16596 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
16597 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
16598 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
16599 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
16600 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
16601 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
16602 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
16603 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
16604 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
16605 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
16608 esac
16609 { echo "$as_me:$LINENO: checking for $ac_header" >&5
16610 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
16611 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
16612 echo $ECHO_N "(cached) $ECHO_C" >&6
16613 else
16614 eval "$as_ac_Header=\$ac_header_preproc"
16616 ac_res=`eval echo '${'$as_ac_Header'}'`
16617 { echo "$as_me:$LINENO: result: $ac_res" >&5
16618 echo "${ECHO_T}$ac_res" >&6; }
16621 if test `eval echo '${'$as_ac_Header'}'` = yes; then
16622 cat >>confdefs.h <<_ACEOF
16623 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
16624 _ACEOF
16628 done
16635 for ac_header in $ac_header_list
16637 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
16638 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
16639 { echo "$as_me:$LINENO: checking for $ac_header" >&5
16640 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
16641 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
16642 echo $ECHO_N "(cached) $ECHO_C" >&6
16644 ac_res=`eval echo '${'$as_ac_Header'}'`
16645 { echo "$as_me:$LINENO: result: $ac_res" >&5
16646 echo "${ECHO_T}$ac_res" >&6; }
16647 else
16648 # Is the header compilable?
16649 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
16650 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
16651 cat >conftest.$ac_ext <<_ACEOF
16652 /* confdefs.h. */
16653 _ACEOF
16654 cat confdefs.h >>conftest.$ac_ext
16655 cat >>conftest.$ac_ext <<_ACEOF
16656 /* end confdefs.h. */
16657 $ac_includes_default
16658 #include <$ac_header>
16659 _ACEOF
16660 rm -f conftest.$ac_objext
16661 if { (ac_try="$ac_compile"
16662 case "(($ac_try" in
16663 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16664 *) ac_try_echo=$ac_try;;
16665 esac
16666 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16667 (eval "$ac_compile") 2>conftest.er1
16668 ac_status=$?
16669 grep -v '^ *+' conftest.er1 >conftest.err
16670 rm -f conftest.er1
16671 cat conftest.err >&5
16672 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16673 (exit $ac_status); } && {
16674 test -z "$ac_c_werror_flag" ||
16675 test ! -s conftest.err
16676 } && test -s conftest.$ac_objext; then
16677 ac_header_compiler=yes
16678 else
16679 echo "$as_me: failed program was:" >&5
16680 sed 's/^/| /' conftest.$ac_ext >&5
16682 ac_header_compiler=no
16685 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16686 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
16687 echo "${ECHO_T}$ac_header_compiler" >&6; }
16689 # Is the header present?
16690 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
16691 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
16692 cat >conftest.$ac_ext <<_ACEOF
16693 /* confdefs.h. */
16694 _ACEOF
16695 cat confdefs.h >>conftest.$ac_ext
16696 cat >>conftest.$ac_ext <<_ACEOF
16697 /* end confdefs.h. */
16698 #include <$ac_header>
16699 _ACEOF
16700 if { (ac_try="$ac_cpp conftest.$ac_ext"
16701 case "(($ac_try" in
16702 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16703 *) ac_try_echo=$ac_try;;
16704 esac
16705 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16706 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
16707 ac_status=$?
16708 grep -v '^ *+' conftest.er1 >conftest.err
16709 rm -f conftest.er1
16710 cat conftest.err >&5
16711 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16712 (exit $ac_status); } >/dev/null && {
16713 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
16714 test ! -s conftest.err
16715 }; then
16716 ac_header_preproc=yes
16717 else
16718 echo "$as_me: failed program was:" >&5
16719 sed 's/^/| /' conftest.$ac_ext >&5
16721 ac_header_preproc=no
16724 rm -f conftest.err conftest.$ac_ext
16725 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
16726 echo "${ECHO_T}$ac_header_preproc" >&6; }
16728 # So? What about this header?
16729 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
16730 yes:no: )
16731 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
16732 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
16733 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
16734 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
16735 ac_header_preproc=yes
16737 no:yes:* )
16738 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
16739 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
16740 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
16741 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
16742 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
16743 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
16744 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
16745 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
16746 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
16747 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
16748 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
16749 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
16752 esac
16753 { echo "$as_me:$LINENO: checking for $ac_header" >&5
16754 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
16755 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
16756 echo $ECHO_N "(cached) $ECHO_C" >&6
16757 else
16758 eval "$as_ac_Header=\$ac_header_preproc"
16760 ac_res=`eval echo '${'$as_ac_Header'}'`
16761 { echo "$as_me:$LINENO: result: $ac_res" >&5
16762 echo "${ECHO_T}$ac_res" >&6; }
16765 if test `eval echo '${'$as_ac_Header'}'` = yes; then
16766 cat >>confdefs.h <<_ACEOF
16767 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
16768 _ACEOF
16772 done
16782 for ac_func in $ac_func_list
16784 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
16785 { echo "$as_me:$LINENO: checking for $ac_func" >&5
16786 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
16787 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
16788 echo $ECHO_N "(cached) $ECHO_C" >&6
16789 else
16790 cat >conftest.$ac_ext <<_ACEOF
16791 /* confdefs.h. */
16792 _ACEOF
16793 cat confdefs.h >>conftest.$ac_ext
16794 cat >>conftest.$ac_ext <<_ACEOF
16795 /* end confdefs.h. */
16796 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
16797 For example, HP-UX 11i <limits.h> declares gettimeofday. */
16798 #define $ac_func innocuous_$ac_func
16800 /* System header to define __stub macros and hopefully few prototypes,
16801 which can conflict with char $ac_func (); below.
16802 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
16803 <limits.h> exists even on freestanding compilers. */
16805 #ifdef __STDC__
16806 # include <limits.h>
16807 #else
16808 # include <assert.h>
16809 #endif
16811 #undef $ac_func
16813 /* Override any GCC internal prototype to avoid an error.
16814 Use char because int might match the return type of a GCC
16815 builtin and then its argument prototype would still apply. */
16816 #ifdef __cplusplus
16817 extern "C"
16818 #endif
16819 char $ac_func ();
16820 /* The GNU C library defines this for functions which it implements
16821 to always fail with ENOSYS. Some functions are actually named
16822 something starting with __ and the normal name is an alias. */
16823 #if defined __stub_$ac_func || defined __stub___$ac_func
16824 choke me
16825 #endif
16828 main ()
16830 return $ac_func ();
16832 return 0;
16834 _ACEOF
16835 rm -f conftest.$ac_objext conftest$ac_exeext
16836 if { (ac_try="$ac_link"
16837 case "(($ac_try" in
16838 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16839 *) ac_try_echo=$ac_try;;
16840 esac
16841 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16842 (eval "$ac_link") 2>conftest.er1
16843 ac_status=$?
16844 grep -v '^ *+' conftest.er1 >conftest.err
16845 rm -f conftest.er1
16846 cat conftest.err >&5
16847 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16848 (exit $ac_status); } && {
16849 test -z "$ac_c_werror_flag" ||
16850 test ! -s conftest.err
16851 } && test -s conftest$ac_exeext &&
16852 $as_test_x conftest$ac_exeext; then
16853 eval "$as_ac_var=yes"
16854 else
16855 echo "$as_me: failed program was:" >&5
16856 sed 's/^/| /' conftest.$ac_ext >&5
16858 eval "$as_ac_var=no"
16861 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
16862 conftest$ac_exeext conftest.$ac_ext
16864 ac_res=`eval echo '${'$as_ac_var'}'`
16865 { echo "$as_me:$LINENO: result: $ac_res" >&5
16866 echo "${ECHO_T}$ac_res" >&6; }
16867 if test `eval echo '${'$as_ac_var'}'` = yes; then
16868 cat >>confdefs.h <<_ACEOF
16869 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
16870 _ACEOF
16873 done
16891 { echo "$as_me:$LINENO: checking for working mktime" >&5
16892 echo $ECHO_N "checking for working mktime... $ECHO_C" >&6; }
16893 if test "${ac_cv_func_working_mktime+set}" = set; then
16894 echo $ECHO_N "(cached) $ECHO_C" >&6
16895 else
16896 if test "$cross_compiling" = yes; then
16897 ac_cv_func_working_mktime=no
16898 else
16899 cat >conftest.$ac_ext <<_ACEOF
16900 /* confdefs.h. */
16901 _ACEOF
16902 cat confdefs.h >>conftest.$ac_ext
16903 cat >>conftest.$ac_ext <<_ACEOF
16904 /* end confdefs.h. */
16905 /* Test program from Paul Eggert and Tony Leneis. */
16906 #ifdef TIME_WITH_SYS_TIME
16907 # include <sys/time.h>
16908 # include <time.h>
16909 #else
16910 # ifdef HAVE_SYS_TIME_H
16911 # include <sys/time.h>
16912 # else
16913 # include <time.h>
16914 # endif
16915 #endif
16917 #include <stdlib.h>
16919 #ifdef HAVE_UNISTD_H
16920 # include <unistd.h>
16921 #endif
16923 #ifndef HAVE_ALARM
16924 # define alarm(X) /* empty */
16925 #endif
16927 /* Work around redefinition to rpl_putenv by other config tests. */
16928 #undef putenv
16930 static time_t time_t_max;
16931 static time_t time_t_min;
16933 /* Values we'll use to set the TZ environment variable. */
16934 static char *tz_strings[] = {
16935 (char *) 0, "TZ=GMT0", "TZ=JST-9",
16936 "TZ=EST+3EDT+2,M10.1.0/00:00:00,M2.3.0/00:00:00"
16938 #define N_STRINGS (sizeof (tz_strings) / sizeof (tz_strings[0]))
16940 /* Return 0 if mktime fails to convert a date in the spring-forward gap.
16941 Based on a problem report from Andreas Jaeger. */
16942 static int
16943 spring_forward_gap ()
16945 /* glibc (up to about 1998-10-07) failed this test. */
16946 struct tm tm;
16948 /* Use the portable POSIX.1 specification "TZ=PST8PDT,M4.1.0,M10.5.0"
16949 instead of "TZ=America/Vancouver" in order to detect the bug even
16950 on systems that don't support the Olson extension, or don't have the
16951 full zoneinfo tables installed. */
16952 putenv ("TZ=PST8PDT,M4.1.0,M10.5.0");
16954 tm.tm_year = 98;
16955 tm.tm_mon = 3;
16956 tm.tm_mday = 5;
16957 tm.tm_hour = 2;
16958 tm.tm_min = 0;
16959 tm.tm_sec = 0;
16960 tm.tm_isdst = -1;
16961 return mktime (&tm) != (time_t) -1;
16964 static int
16965 mktime_test1 (now)
16966 time_t now;
16968 struct tm *lt;
16969 return ! (lt = localtime (&now)) || mktime (lt) == now;
16972 static int
16973 mktime_test (now)
16974 time_t now;
16976 return (mktime_test1 (now)
16977 && mktime_test1 ((time_t) (time_t_max - now))
16978 && mktime_test1 ((time_t) (time_t_min + now)));
16981 static int
16982 irix_6_4_bug ()
16984 /* Based on code from Ariel Faigon. */
16985 struct tm tm;
16986 tm.tm_year = 96;
16987 tm.tm_mon = 3;
16988 tm.tm_mday = 0;
16989 tm.tm_hour = 0;
16990 tm.tm_min = 0;
16991 tm.tm_sec = 0;
16992 tm.tm_isdst = -1;
16993 mktime (&tm);
16994 return tm.tm_mon == 2 && tm.tm_mday == 31;
16997 static int
16998 bigtime_test (j)
16999 int j;
17001 struct tm tm;
17002 time_t now;
17003 tm.tm_year = tm.tm_mon = tm.tm_mday = tm.tm_hour = tm.tm_min = tm.tm_sec = j;
17004 now = mktime (&tm);
17005 if (now != (time_t) -1)
17007 struct tm *lt = localtime (&now);
17008 if (! (lt
17009 && lt->tm_year == tm.tm_year
17010 && lt->tm_mon == tm.tm_mon
17011 && lt->tm_mday == tm.tm_mday
17012 && lt->tm_hour == tm.tm_hour
17013 && lt->tm_min == tm.tm_min
17014 && lt->tm_sec == tm.tm_sec
17015 && lt->tm_yday == tm.tm_yday
17016 && lt->tm_wday == tm.tm_wday
17017 && ((lt->tm_isdst < 0 ? -1 : 0 < lt->tm_isdst)
17018 == (tm.tm_isdst < 0 ? -1 : 0 < tm.tm_isdst))))
17019 return 0;
17021 return 1;
17024 static int
17025 year_2050_test ()
17027 /* The correct answer for 2050-02-01 00:00:00 in Pacific time,
17028 ignoring leap seconds. */
17029 unsigned long int answer = 2527315200UL;
17031 struct tm tm;
17032 time_t t;
17033 tm.tm_year = 2050 - 1900;
17034 tm.tm_mon = 2 - 1;
17035 tm.tm_mday = 1;
17036 tm.tm_hour = tm.tm_min = tm.tm_sec = 0;
17037 tm.tm_isdst = -1;
17039 /* Use the portable POSIX.1 specification "TZ=PST8PDT,M4.1.0,M10.5.0"
17040 instead of "TZ=America/Vancouver" in order to detect the bug even
17041 on systems that don't support the Olson extension, or don't have the
17042 full zoneinfo tables installed. */
17043 putenv ("TZ=PST8PDT,M4.1.0,M10.5.0");
17045 t = mktime (&tm);
17047 /* Check that the result is either a failure, or close enough
17048 to the correct answer that we can assume the discrepancy is
17049 due to leap seconds. */
17050 return (t == (time_t) -1
17051 || (0 < t && answer - 120 <= t && t <= answer + 120));
17055 main ()
17057 time_t t, delta;
17058 int i, j;
17060 /* This test makes some buggy mktime implementations loop.
17061 Give up after 60 seconds; a mktime slower than that
17062 isn't worth using anyway. */
17063 alarm (60);
17065 for (time_t_max = 1; 0 < time_t_max; time_t_max *= 2)
17066 continue;
17067 time_t_max--;
17068 if ((time_t) -1 < 0)
17069 for (time_t_min = -1; (time_t) (time_t_min * 2) < 0; time_t_min *= 2)
17070 continue;
17071 delta = time_t_max / 997; /* a suitable prime number */
17072 for (i = 0; i < N_STRINGS; i++)
17074 if (tz_strings[i])
17075 putenv (tz_strings[i]);
17077 for (t = 0; t <= time_t_max - delta; t += delta)
17078 if (! mktime_test (t))
17079 return 1;
17080 if (! (mktime_test ((time_t) 1)
17081 && mktime_test ((time_t) (60 * 60))
17082 && mktime_test ((time_t) (60 * 60 * 24))))
17083 return 1;
17085 for (j = 1; 0 < j; j *= 2)
17086 if (! bigtime_test (j))
17087 return 1;
17088 if (! bigtime_test (j - 1))
17089 return 1;
17091 return ! (irix_6_4_bug () && spring_forward_gap () && year_2050_test ());
17093 _ACEOF
17094 rm -f conftest$ac_exeext
17095 if { (ac_try="$ac_link"
17096 case "(($ac_try" in
17097 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17098 *) ac_try_echo=$ac_try;;
17099 esac
17100 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17101 (eval "$ac_link") 2>&5
17102 ac_status=$?
17103 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17104 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
17105 { (case "(($ac_try" in
17106 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17107 *) ac_try_echo=$ac_try;;
17108 esac
17109 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17110 (eval "$ac_try") 2>&5
17111 ac_status=$?
17112 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17113 (exit $ac_status); }; }; then
17114 ac_cv_func_working_mktime=yes
17115 else
17116 echo "$as_me: program exited with status $ac_status" >&5
17117 echo "$as_me: failed program was:" >&5
17118 sed 's/^/| /' conftest.$ac_ext >&5
17120 ( exit $ac_status )
17121 ac_cv_func_working_mktime=no
17123 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
17128 { echo "$as_me:$LINENO: result: $ac_cv_func_working_mktime" >&5
17129 echo "${ECHO_T}$ac_cv_func_working_mktime" >&6; }
17130 if test $ac_cv_func_working_mktime = no; then
17131 case " $LIBOBJS " in
17132 *" mktime.$ac_objext "* ) ;;
17133 *) LIBOBJS="$LIBOBJS mktime.$ac_objext"
17135 esac
17139 if test "$ac_cv_func_working_mktime" = no; then
17141 cat >>confdefs.h <<\_ACEOF
17142 #define BROKEN_MKTIME 1
17143 _ACEOF
17147 ac_have_func=no # yes means we've found a way to get the load average.
17149 # Make sure getloadavg.c is where it belongs, at configure-time.
17150 test -f "$srcdir/$ac_config_libobj_dir/getloadavg.c" ||
17151 { { echo "$as_me:$LINENO: error: $srcdir/$ac_config_libobj_dir/getloadavg.c is missing" >&5
17152 echo "$as_me: error: $srcdir/$ac_config_libobj_dir/getloadavg.c is missing" >&2;}
17153 { (exit 1); exit 1; }; }
17155 ac_save_LIBS=$LIBS
17157 # Check for getloadavg, but be sure not to touch the cache variable.
17158 ({ echo "$as_me:$LINENO: checking for getloadavg" >&5
17159 echo $ECHO_N "checking for getloadavg... $ECHO_C" >&6; }
17160 if test "${ac_cv_func_getloadavg+set}" = set; then
17161 echo $ECHO_N "(cached) $ECHO_C" >&6
17162 else
17163 cat >conftest.$ac_ext <<_ACEOF
17164 /* confdefs.h. */
17165 _ACEOF
17166 cat confdefs.h >>conftest.$ac_ext
17167 cat >>conftest.$ac_ext <<_ACEOF
17168 /* end confdefs.h. */
17169 /* Define getloadavg to an innocuous variant, in case <limits.h> declares getloadavg.
17170 For example, HP-UX 11i <limits.h> declares gettimeofday. */
17171 #define getloadavg innocuous_getloadavg
17173 /* System header to define __stub macros and hopefully few prototypes,
17174 which can conflict with char getloadavg (); below.
17175 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
17176 <limits.h> exists even on freestanding compilers. */
17178 #ifdef __STDC__
17179 # include <limits.h>
17180 #else
17181 # include <assert.h>
17182 #endif
17184 #undef getloadavg
17186 /* Override any GCC internal prototype to avoid an error.
17187 Use char because int might match the return type of a GCC
17188 builtin and then its argument prototype would still apply. */
17189 #ifdef __cplusplus
17190 extern "C"
17191 #endif
17192 char getloadavg ();
17193 /* The GNU C library defines this for functions which it implements
17194 to always fail with ENOSYS. Some functions are actually named
17195 something starting with __ and the normal name is an alias. */
17196 #if defined __stub_getloadavg || defined __stub___getloadavg
17197 choke me
17198 #endif
17201 main ()
17203 return getloadavg ();
17205 return 0;
17207 _ACEOF
17208 rm -f conftest.$ac_objext conftest$ac_exeext
17209 if { (ac_try="$ac_link"
17210 case "(($ac_try" in
17211 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17212 *) ac_try_echo=$ac_try;;
17213 esac
17214 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17215 (eval "$ac_link") 2>conftest.er1
17216 ac_status=$?
17217 grep -v '^ *+' conftest.er1 >conftest.err
17218 rm -f conftest.er1
17219 cat conftest.err >&5
17220 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17221 (exit $ac_status); } && {
17222 test -z "$ac_c_werror_flag" ||
17223 test ! -s conftest.err
17224 } && test -s conftest$ac_exeext &&
17225 $as_test_x conftest$ac_exeext; then
17226 ac_cv_func_getloadavg=yes
17227 else
17228 echo "$as_me: failed program was:" >&5
17229 sed 's/^/| /' conftest.$ac_ext >&5
17231 ac_cv_func_getloadavg=no
17234 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
17235 conftest$ac_exeext conftest.$ac_ext
17237 { echo "$as_me:$LINENO: result: $ac_cv_func_getloadavg" >&5
17238 echo "${ECHO_T}$ac_cv_func_getloadavg" >&6; }
17239 if test $ac_cv_func_getloadavg = yes; then
17240 exit 0
17241 else
17242 exit 1
17244 ) && ac_have_func=yes
17246 # On HPUX9, an unprivileged user can get load averages through this function.
17248 for ac_func in pstat_getdynamic
17250 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
17251 { echo "$as_me:$LINENO: checking for $ac_func" >&5
17252 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
17253 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
17254 echo $ECHO_N "(cached) $ECHO_C" >&6
17255 else
17256 cat >conftest.$ac_ext <<_ACEOF
17257 /* confdefs.h. */
17258 _ACEOF
17259 cat confdefs.h >>conftest.$ac_ext
17260 cat >>conftest.$ac_ext <<_ACEOF
17261 /* end confdefs.h. */
17262 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
17263 For example, HP-UX 11i <limits.h> declares gettimeofday. */
17264 #define $ac_func innocuous_$ac_func
17266 /* System header to define __stub macros and hopefully few prototypes,
17267 which can conflict with char $ac_func (); below.
17268 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
17269 <limits.h> exists even on freestanding compilers. */
17271 #ifdef __STDC__
17272 # include <limits.h>
17273 #else
17274 # include <assert.h>
17275 #endif
17277 #undef $ac_func
17279 /* Override any GCC internal prototype to avoid an error.
17280 Use char because int might match the return type of a GCC
17281 builtin and then its argument prototype would still apply. */
17282 #ifdef __cplusplus
17283 extern "C"
17284 #endif
17285 char $ac_func ();
17286 /* The GNU C library defines this for functions which it implements
17287 to always fail with ENOSYS. Some functions are actually named
17288 something starting with __ and the normal name is an alias. */
17289 #if defined __stub_$ac_func || defined __stub___$ac_func
17290 choke me
17291 #endif
17294 main ()
17296 return $ac_func ();
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 eval "$as_ac_var=yes"
17320 else
17321 echo "$as_me: failed program was:" >&5
17322 sed 's/^/| /' conftest.$ac_ext >&5
17324 eval "$as_ac_var=no"
17327 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
17328 conftest$ac_exeext conftest.$ac_ext
17330 ac_res=`eval echo '${'$as_ac_var'}'`
17331 { echo "$as_me:$LINENO: result: $ac_res" >&5
17332 echo "${ECHO_T}$ac_res" >&6; }
17333 if test `eval echo '${'$as_ac_var'}'` = yes; then
17334 cat >>confdefs.h <<_ACEOF
17335 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
17336 _ACEOF
17339 done
17342 # Solaris has libkstat which does not require root.
17344 { echo "$as_me:$LINENO: checking for kstat_open in -lkstat" >&5
17345 echo $ECHO_N "checking for kstat_open in -lkstat... $ECHO_C" >&6; }
17346 if test "${ac_cv_lib_kstat_kstat_open+set}" = set; then
17347 echo $ECHO_N "(cached) $ECHO_C" >&6
17348 else
17349 ac_check_lib_save_LIBS=$LIBS
17350 LIBS="-lkstat $LIBS"
17351 cat >conftest.$ac_ext <<_ACEOF
17352 /* confdefs.h. */
17353 _ACEOF
17354 cat confdefs.h >>conftest.$ac_ext
17355 cat >>conftest.$ac_ext <<_ACEOF
17356 /* end confdefs.h. */
17358 /* Override any GCC internal prototype to avoid an error.
17359 Use char because int might match the return type of a GCC
17360 builtin and then its argument prototype would still apply. */
17361 #ifdef __cplusplus
17362 extern "C"
17363 #endif
17364 char kstat_open ();
17366 main ()
17368 return kstat_open ();
17370 return 0;
17372 _ACEOF
17373 rm -f conftest.$ac_objext conftest$ac_exeext
17374 if { (ac_try="$ac_link"
17375 case "(($ac_try" in
17376 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17377 *) ac_try_echo=$ac_try;;
17378 esac
17379 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17380 (eval "$ac_link") 2>conftest.er1
17381 ac_status=$?
17382 grep -v '^ *+' conftest.er1 >conftest.err
17383 rm -f conftest.er1
17384 cat conftest.err >&5
17385 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17386 (exit $ac_status); } && {
17387 test -z "$ac_c_werror_flag" ||
17388 test ! -s conftest.err
17389 } && test -s conftest$ac_exeext &&
17390 $as_test_x conftest$ac_exeext; then
17391 ac_cv_lib_kstat_kstat_open=yes
17392 else
17393 echo "$as_me: failed program was:" >&5
17394 sed 's/^/| /' conftest.$ac_ext >&5
17396 ac_cv_lib_kstat_kstat_open=no
17399 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
17400 conftest$ac_exeext conftest.$ac_ext
17401 LIBS=$ac_check_lib_save_LIBS
17403 { echo "$as_me:$LINENO: result: $ac_cv_lib_kstat_kstat_open" >&5
17404 echo "${ECHO_T}$ac_cv_lib_kstat_kstat_open" >&6; }
17405 if test $ac_cv_lib_kstat_kstat_open = yes; then
17406 cat >>confdefs.h <<_ACEOF
17407 #define HAVE_LIBKSTAT 1
17408 _ACEOF
17410 LIBS="-lkstat $LIBS"
17414 test $ac_cv_lib_kstat_kstat_open = yes && ac_have_func=yes
17416 # Some systems with -lutil have (and need) -lkvm as well, some do not.
17417 # On Solaris, -lkvm requires nlist from -lelf, so check that first
17418 # to get the right answer into the cache.
17419 # For kstat on solaris, we need libelf to force the definition of SVR4 below.
17420 if test $ac_have_func = no; then
17421 { echo "$as_me:$LINENO: checking for elf_begin in -lelf" >&5
17422 echo $ECHO_N "checking for elf_begin in -lelf... $ECHO_C" >&6; }
17423 if test "${ac_cv_lib_elf_elf_begin+set}" = set; then
17424 echo $ECHO_N "(cached) $ECHO_C" >&6
17425 else
17426 ac_check_lib_save_LIBS=$LIBS
17427 LIBS="-lelf $LIBS"
17428 cat >conftest.$ac_ext <<_ACEOF
17429 /* confdefs.h. */
17430 _ACEOF
17431 cat confdefs.h >>conftest.$ac_ext
17432 cat >>conftest.$ac_ext <<_ACEOF
17433 /* end confdefs.h. */
17435 /* Override any GCC internal prototype to avoid an error.
17436 Use char because int might match the return type of a GCC
17437 builtin and then its argument prototype would still apply. */
17438 #ifdef __cplusplus
17439 extern "C"
17440 #endif
17441 char elf_begin ();
17443 main ()
17445 return elf_begin ();
17447 return 0;
17449 _ACEOF
17450 rm -f conftest.$ac_objext conftest$ac_exeext
17451 if { (ac_try="$ac_link"
17452 case "(($ac_try" in
17453 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17454 *) ac_try_echo=$ac_try;;
17455 esac
17456 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17457 (eval "$ac_link") 2>conftest.er1
17458 ac_status=$?
17459 grep -v '^ *+' conftest.er1 >conftest.err
17460 rm -f conftest.er1
17461 cat conftest.err >&5
17462 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17463 (exit $ac_status); } && {
17464 test -z "$ac_c_werror_flag" ||
17465 test ! -s conftest.err
17466 } && test -s conftest$ac_exeext &&
17467 $as_test_x conftest$ac_exeext; then
17468 ac_cv_lib_elf_elf_begin=yes
17469 else
17470 echo "$as_me: failed program was:" >&5
17471 sed 's/^/| /' conftest.$ac_ext >&5
17473 ac_cv_lib_elf_elf_begin=no
17476 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
17477 conftest$ac_exeext conftest.$ac_ext
17478 LIBS=$ac_check_lib_save_LIBS
17480 { echo "$as_me:$LINENO: result: $ac_cv_lib_elf_elf_begin" >&5
17481 echo "${ECHO_T}$ac_cv_lib_elf_elf_begin" >&6; }
17482 if test $ac_cv_lib_elf_elf_begin = yes; then
17483 LIBS="-lelf $LIBS"
17487 if test $ac_have_func = no; then
17488 { echo "$as_me:$LINENO: checking for kvm_open in -lkvm" >&5
17489 echo $ECHO_N "checking for kvm_open in -lkvm... $ECHO_C" >&6; }
17490 if test "${ac_cv_lib_kvm_kvm_open+set}" = set; then
17491 echo $ECHO_N "(cached) $ECHO_C" >&6
17492 else
17493 ac_check_lib_save_LIBS=$LIBS
17494 LIBS="-lkvm $LIBS"
17495 cat >conftest.$ac_ext <<_ACEOF
17496 /* confdefs.h. */
17497 _ACEOF
17498 cat confdefs.h >>conftest.$ac_ext
17499 cat >>conftest.$ac_ext <<_ACEOF
17500 /* end confdefs.h. */
17502 /* Override any GCC internal prototype to avoid an error.
17503 Use char because int might match the return type of a GCC
17504 builtin and then its argument prototype would still apply. */
17505 #ifdef __cplusplus
17506 extern "C"
17507 #endif
17508 char kvm_open ();
17510 main ()
17512 return kvm_open ();
17514 return 0;
17516 _ACEOF
17517 rm -f conftest.$ac_objext conftest$ac_exeext
17518 if { (ac_try="$ac_link"
17519 case "(($ac_try" in
17520 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17521 *) ac_try_echo=$ac_try;;
17522 esac
17523 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17524 (eval "$ac_link") 2>conftest.er1
17525 ac_status=$?
17526 grep -v '^ *+' conftest.er1 >conftest.err
17527 rm -f conftest.er1
17528 cat conftest.err >&5
17529 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17530 (exit $ac_status); } && {
17531 test -z "$ac_c_werror_flag" ||
17532 test ! -s conftest.err
17533 } && test -s conftest$ac_exeext &&
17534 $as_test_x conftest$ac_exeext; then
17535 ac_cv_lib_kvm_kvm_open=yes
17536 else
17537 echo "$as_me: failed program was:" >&5
17538 sed 's/^/| /' conftest.$ac_ext >&5
17540 ac_cv_lib_kvm_kvm_open=no
17543 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
17544 conftest$ac_exeext conftest.$ac_ext
17545 LIBS=$ac_check_lib_save_LIBS
17547 { echo "$as_me:$LINENO: result: $ac_cv_lib_kvm_kvm_open" >&5
17548 echo "${ECHO_T}$ac_cv_lib_kvm_kvm_open" >&6; }
17549 if test $ac_cv_lib_kvm_kvm_open = yes; then
17550 LIBS="-lkvm $LIBS"
17553 # Check for the 4.4BSD definition of getloadavg.
17554 { echo "$as_me:$LINENO: checking for getloadavg in -lutil" >&5
17555 echo $ECHO_N "checking for getloadavg in -lutil... $ECHO_C" >&6; }
17556 if test "${ac_cv_lib_util_getloadavg+set}" = set; then
17557 echo $ECHO_N "(cached) $ECHO_C" >&6
17558 else
17559 ac_check_lib_save_LIBS=$LIBS
17560 LIBS="-lutil $LIBS"
17561 cat >conftest.$ac_ext <<_ACEOF
17562 /* confdefs.h. */
17563 _ACEOF
17564 cat confdefs.h >>conftest.$ac_ext
17565 cat >>conftest.$ac_ext <<_ACEOF
17566 /* end confdefs.h. */
17568 /* Override any GCC internal prototype to avoid an error.
17569 Use char because int might match the return type of a GCC
17570 builtin and then its argument prototype would still apply. */
17571 #ifdef __cplusplus
17572 extern "C"
17573 #endif
17574 char getloadavg ();
17576 main ()
17578 return getloadavg ();
17580 return 0;
17582 _ACEOF
17583 rm -f conftest.$ac_objext conftest$ac_exeext
17584 if { (ac_try="$ac_link"
17585 case "(($ac_try" in
17586 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17587 *) ac_try_echo=$ac_try;;
17588 esac
17589 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17590 (eval "$ac_link") 2>conftest.er1
17591 ac_status=$?
17592 grep -v '^ *+' conftest.er1 >conftest.err
17593 rm -f conftest.er1
17594 cat conftest.err >&5
17595 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17596 (exit $ac_status); } && {
17597 test -z "$ac_c_werror_flag" ||
17598 test ! -s conftest.err
17599 } && test -s conftest$ac_exeext &&
17600 $as_test_x conftest$ac_exeext; then
17601 ac_cv_lib_util_getloadavg=yes
17602 else
17603 echo "$as_me: failed program was:" >&5
17604 sed 's/^/| /' conftest.$ac_ext >&5
17606 ac_cv_lib_util_getloadavg=no
17609 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
17610 conftest$ac_exeext conftest.$ac_ext
17611 LIBS=$ac_check_lib_save_LIBS
17613 { echo "$as_me:$LINENO: result: $ac_cv_lib_util_getloadavg" >&5
17614 echo "${ECHO_T}$ac_cv_lib_util_getloadavg" >&6; }
17615 if test $ac_cv_lib_util_getloadavg = yes; then
17616 LIBS="-lutil $LIBS" ac_have_func=yes ac_cv_func_getloadavg_setgid=yes
17621 if test $ac_have_func = no; then
17622 # There is a commonly available library for RS/6000 AIX.
17623 # Since it is not a standard part of AIX, it might be installed locally.
17624 ac_getloadavg_LIBS=$LIBS
17625 LIBS="-L/usr/local/lib $LIBS"
17626 { echo "$as_me:$LINENO: checking for getloadavg in -lgetloadavg" >&5
17627 echo $ECHO_N "checking for getloadavg in -lgetloadavg... $ECHO_C" >&6; }
17628 if test "${ac_cv_lib_getloadavg_getloadavg+set}" = set; then
17629 echo $ECHO_N "(cached) $ECHO_C" >&6
17630 else
17631 ac_check_lib_save_LIBS=$LIBS
17632 LIBS="-lgetloadavg $LIBS"
17633 cat >conftest.$ac_ext <<_ACEOF
17634 /* confdefs.h. */
17635 _ACEOF
17636 cat confdefs.h >>conftest.$ac_ext
17637 cat >>conftest.$ac_ext <<_ACEOF
17638 /* end confdefs.h. */
17640 /* Override any GCC internal prototype to avoid an error.
17641 Use char because int might match the return type of a GCC
17642 builtin and then its argument prototype would still apply. */
17643 #ifdef __cplusplus
17644 extern "C"
17645 #endif
17646 char getloadavg ();
17648 main ()
17650 return getloadavg ();
17652 return 0;
17654 _ACEOF
17655 rm -f conftest.$ac_objext conftest$ac_exeext
17656 if { (ac_try="$ac_link"
17657 case "(($ac_try" in
17658 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17659 *) ac_try_echo=$ac_try;;
17660 esac
17661 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17662 (eval "$ac_link") 2>conftest.er1
17663 ac_status=$?
17664 grep -v '^ *+' conftest.er1 >conftest.err
17665 rm -f conftest.er1
17666 cat conftest.err >&5
17667 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17668 (exit $ac_status); } && {
17669 test -z "$ac_c_werror_flag" ||
17670 test ! -s conftest.err
17671 } && test -s conftest$ac_exeext &&
17672 $as_test_x conftest$ac_exeext; then
17673 ac_cv_lib_getloadavg_getloadavg=yes
17674 else
17675 echo "$as_me: failed program was:" >&5
17676 sed 's/^/| /' conftest.$ac_ext >&5
17678 ac_cv_lib_getloadavg_getloadavg=no
17681 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
17682 conftest$ac_exeext conftest.$ac_ext
17683 LIBS=$ac_check_lib_save_LIBS
17685 { echo "$as_me:$LINENO: result: $ac_cv_lib_getloadavg_getloadavg" >&5
17686 echo "${ECHO_T}$ac_cv_lib_getloadavg_getloadavg" >&6; }
17687 if test $ac_cv_lib_getloadavg_getloadavg = yes; then
17688 LIBS="-lgetloadavg $LIBS"
17689 else
17690 LIBS=$ac_getloadavg_LIBS
17695 # Make sure it is really in the library, if we think we found it,
17696 # otherwise set up the replacement function.
17698 for ac_func in getloadavg
17700 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
17701 { echo "$as_me:$LINENO: checking for $ac_func" >&5
17702 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
17703 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
17704 echo $ECHO_N "(cached) $ECHO_C" >&6
17705 else
17706 cat >conftest.$ac_ext <<_ACEOF
17707 /* confdefs.h. */
17708 _ACEOF
17709 cat confdefs.h >>conftest.$ac_ext
17710 cat >>conftest.$ac_ext <<_ACEOF
17711 /* end confdefs.h. */
17712 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
17713 For example, HP-UX 11i <limits.h> declares gettimeofday. */
17714 #define $ac_func innocuous_$ac_func
17716 /* System header to define __stub macros and hopefully few prototypes,
17717 which can conflict with char $ac_func (); below.
17718 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
17719 <limits.h> exists even on freestanding compilers. */
17721 #ifdef __STDC__
17722 # include <limits.h>
17723 #else
17724 # include <assert.h>
17725 #endif
17727 #undef $ac_func
17729 /* Override any GCC internal prototype to avoid an error.
17730 Use char because int might match the return type of a GCC
17731 builtin and then its argument prototype would still apply. */
17732 #ifdef __cplusplus
17733 extern "C"
17734 #endif
17735 char $ac_func ();
17736 /* The GNU C library defines this for functions which it implements
17737 to always fail with ENOSYS. Some functions are actually named
17738 something starting with __ and the normal name is an alias. */
17739 #if defined __stub_$ac_func || defined __stub___$ac_func
17740 choke me
17741 #endif
17744 main ()
17746 return $ac_func ();
17748 return 0;
17750 _ACEOF
17751 rm -f conftest.$ac_objext conftest$ac_exeext
17752 if { (ac_try="$ac_link"
17753 case "(($ac_try" in
17754 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17755 *) ac_try_echo=$ac_try;;
17756 esac
17757 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17758 (eval "$ac_link") 2>conftest.er1
17759 ac_status=$?
17760 grep -v '^ *+' conftest.er1 >conftest.err
17761 rm -f conftest.er1
17762 cat conftest.err >&5
17763 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17764 (exit $ac_status); } && {
17765 test -z "$ac_c_werror_flag" ||
17766 test ! -s conftest.err
17767 } && test -s conftest$ac_exeext &&
17768 $as_test_x conftest$ac_exeext; then
17769 eval "$as_ac_var=yes"
17770 else
17771 echo "$as_me: failed program was:" >&5
17772 sed 's/^/| /' conftest.$ac_ext >&5
17774 eval "$as_ac_var=no"
17777 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
17778 conftest$ac_exeext conftest.$ac_ext
17780 ac_res=`eval echo '${'$as_ac_var'}'`
17781 { echo "$as_me:$LINENO: result: $ac_res" >&5
17782 echo "${ECHO_T}$ac_res" >&6; }
17783 if test `eval echo '${'$as_ac_var'}'` = yes; then
17784 cat >>confdefs.h <<_ACEOF
17785 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
17786 _ACEOF
17788 else
17789 case " $LIBOBJS " in
17790 *" getloadavg.$ac_objext "* ) ;;
17791 *) LIBOBJS="$LIBOBJS getloadavg.$ac_objext"
17793 esac
17796 cat >>confdefs.h <<\_ACEOF
17797 #define C_GETLOADAVG 1
17798 _ACEOF
17800 # Figure out what our getloadavg.c needs.
17801 ac_have_func=no
17802 if test "${ac_cv_header_sys_dg_sys_info_h+set}" = set; then
17803 { echo "$as_me:$LINENO: checking for sys/dg_sys_info.h" >&5
17804 echo $ECHO_N "checking for sys/dg_sys_info.h... $ECHO_C" >&6; }
17805 if test "${ac_cv_header_sys_dg_sys_info_h+set}" = set; then
17806 echo $ECHO_N "(cached) $ECHO_C" >&6
17808 { echo "$as_me:$LINENO: result: $ac_cv_header_sys_dg_sys_info_h" >&5
17809 echo "${ECHO_T}$ac_cv_header_sys_dg_sys_info_h" >&6; }
17810 else
17811 # Is the header compilable?
17812 { echo "$as_me:$LINENO: checking sys/dg_sys_info.h usability" >&5
17813 echo $ECHO_N "checking sys/dg_sys_info.h usability... $ECHO_C" >&6; }
17814 cat >conftest.$ac_ext <<_ACEOF
17815 /* confdefs.h. */
17816 _ACEOF
17817 cat confdefs.h >>conftest.$ac_ext
17818 cat >>conftest.$ac_ext <<_ACEOF
17819 /* end confdefs.h. */
17820 $ac_includes_default
17821 #include <sys/dg_sys_info.h>
17822 _ACEOF
17823 rm -f conftest.$ac_objext
17824 if { (ac_try="$ac_compile"
17825 case "(($ac_try" in
17826 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17827 *) ac_try_echo=$ac_try;;
17828 esac
17829 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17830 (eval "$ac_compile") 2>conftest.er1
17831 ac_status=$?
17832 grep -v '^ *+' conftest.er1 >conftest.err
17833 rm -f conftest.er1
17834 cat conftest.err >&5
17835 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17836 (exit $ac_status); } && {
17837 test -z "$ac_c_werror_flag" ||
17838 test ! -s conftest.err
17839 } && test -s conftest.$ac_objext; then
17840 ac_header_compiler=yes
17841 else
17842 echo "$as_me: failed program was:" >&5
17843 sed 's/^/| /' conftest.$ac_ext >&5
17845 ac_header_compiler=no
17848 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17849 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
17850 echo "${ECHO_T}$ac_header_compiler" >&6; }
17852 # Is the header present?
17853 { echo "$as_me:$LINENO: checking sys/dg_sys_info.h presence" >&5
17854 echo $ECHO_N "checking sys/dg_sys_info.h presence... $ECHO_C" >&6; }
17855 cat >conftest.$ac_ext <<_ACEOF
17856 /* confdefs.h. */
17857 _ACEOF
17858 cat confdefs.h >>conftest.$ac_ext
17859 cat >>conftest.$ac_ext <<_ACEOF
17860 /* end confdefs.h. */
17861 #include <sys/dg_sys_info.h>
17862 _ACEOF
17863 if { (ac_try="$ac_cpp conftest.$ac_ext"
17864 case "(($ac_try" in
17865 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17866 *) ac_try_echo=$ac_try;;
17867 esac
17868 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17869 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
17870 ac_status=$?
17871 grep -v '^ *+' conftest.er1 >conftest.err
17872 rm -f conftest.er1
17873 cat conftest.err >&5
17874 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17875 (exit $ac_status); } >/dev/null && {
17876 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
17877 test ! -s conftest.err
17878 }; then
17879 ac_header_preproc=yes
17880 else
17881 echo "$as_me: failed program was:" >&5
17882 sed 's/^/| /' conftest.$ac_ext >&5
17884 ac_header_preproc=no
17887 rm -f conftest.err conftest.$ac_ext
17888 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
17889 echo "${ECHO_T}$ac_header_preproc" >&6; }
17891 # So? What about this header?
17892 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
17893 yes:no: )
17894 { echo "$as_me:$LINENO: WARNING: sys/dg_sys_info.h: accepted by the compiler, rejected by the preprocessor!" >&5
17895 echo "$as_me: WARNING: sys/dg_sys_info.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
17896 { echo "$as_me:$LINENO: WARNING: sys/dg_sys_info.h: proceeding with the compiler's result" >&5
17897 echo "$as_me: WARNING: sys/dg_sys_info.h: proceeding with the compiler's result" >&2;}
17898 ac_header_preproc=yes
17900 no:yes:* )
17901 { echo "$as_me:$LINENO: WARNING: sys/dg_sys_info.h: present but cannot be compiled" >&5
17902 echo "$as_me: WARNING: sys/dg_sys_info.h: present but cannot be compiled" >&2;}
17903 { echo "$as_me:$LINENO: WARNING: sys/dg_sys_info.h: check for missing prerequisite headers?" >&5
17904 echo "$as_me: WARNING: sys/dg_sys_info.h: check for missing prerequisite headers?" >&2;}
17905 { echo "$as_me:$LINENO: WARNING: sys/dg_sys_info.h: see the Autoconf documentation" >&5
17906 echo "$as_me: WARNING: sys/dg_sys_info.h: see the Autoconf documentation" >&2;}
17907 { echo "$as_me:$LINENO: WARNING: sys/dg_sys_info.h: section \"Present But Cannot Be Compiled\"" >&5
17908 echo "$as_me: WARNING: sys/dg_sys_info.h: section \"Present But Cannot Be Compiled\"" >&2;}
17909 { echo "$as_me:$LINENO: WARNING: sys/dg_sys_info.h: proceeding with the preprocessor's result" >&5
17910 echo "$as_me: WARNING: sys/dg_sys_info.h: proceeding with the preprocessor's result" >&2;}
17911 { echo "$as_me:$LINENO: WARNING: sys/dg_sys_info.h: in the future, the compiler will take precedence" >&5
17912 echo "$as_me: WARNING: sys/dg_sys_info.h: in the future, the compiler will take precedence" >&2;}
17915 esac
17916 { echo "$as_me:$LINENO: checking for sys/dg_sys_info.h" >&5
17917 echo $ECHO_N "checking for sys/dg_sys_info.h... $ECHO_C" >&6; }
17918 if test "${ac_cv_header_sys_dg_sys_info_h+set}" = set; then
17919 echo $ECHO_N "(cached) $ECHO_C" >&6
17920 else
17921 ac_cv_header_sys_dg_sys_info_h=$ac_header_preproc
17923 { echo "$as_me:$LINENO: result: $ac_cv_header_sys_dg_sys_info_h" >&5
17924 echo "${ECHO_T}$ac_cv_header_sys_dg_sys_info_h" >&6; }
17927 if test $ac_cv_header_sys_dg_sys_info_h = yes; then
17928 ac_have_func=yes
17930 cat >>confdefs.h <<\_ACEOF
17931 #define DGUX 1
17932 _ACEOF
17935 { echo "$as_me:$LINENO: checking for dg_sys_info in -ldgc" >&5
17936 echo $ECHO_N "checking for dg_sys_info in -ldgc... $ECHO_C" >&6; }
17937 if test "${ac_cv_lib_dgc_dg_sys_info+set}" = set; then
17938 echo $ECHO_N "(cached) $ECHO_C" >&6
17939 else
17940 ac_check_lib_save_LIBS=$LIBS
17941 LIBS="-ldgc $LIBS"
17942 cat >conftest.$ac_ext <<_ACEOF
17943 /* confdefs.h. */
17944 _ACEOF
17945 cat confdefs.h >>conftest.$ac_ext
17946 cat >>conftest.$ac_ext <<_ACEOF
17947 /* end confdefs.h. */
17949 /* Override any GCC internal prototype to avoid an error.
17950 Use char because int might match the return type of a GCC
17951 builtin and then its argument prototype would still apply. */
17952 #ifdef __cplusplus
17953 extern "C"
17954 #endif
17955 char dg_sys_info ();
17957 main ()
17959 return dg_sys_info ();
17961 return 0;
17963 _ACEOF
17964 rm -f conftest.$ac_objext conftest$ac_exeext
17965 if { (ac_try="$ac_link"
17966 case "(($ac_try" in
17967 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17968 *) ac_try_echo=$ac_try;;
17969 esac
17970 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17971 (eval "$ac_link") 2>conftest.er1
17972 ac_status=$?
17973 grep -v '^ *+' conftest.er1 >conftest.err
17974 rm -f conftest.er1
17975 cat conftest.err >&5
17976 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17977 (exit $ac_status); } && {
17978 test -z "$ac_c_werror_flag" ||
17979 test ! -s conftest.err
17980 } && test -s conftest$ac_exeext &&
17981 $as_test_x conftest$ac_exeext; then
17982 ac_cv_lib_dgc_dg_sys_info=yes
17983 else
17984 echo "$as_me: failed program was:" >&5
17985 sed 's/^/| /' conftest.$ac_ext >&5
17987 ac_cv_lib_dgc_dg_sys_info=no
17990 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
17991 conftest$ac_exeext conftest.$ac_ext
17992 LIBS=$ac_check_lib_save_LIBS
17994 { echo "$as_me:$LINENO: result: $ac_cv_lib_dgc_dg_sys_info" >&5
17995 echo "${ECHO_T}$ac_cv_lib_dgc_dg_sys_info" >&6; }
17996 if test $ac_cv_lib_dgc_dg_sys_info = yes; then
17997 cat >>confdefs.h <<_ACEOF
17998 #define HAVE_LIBDGC 1
17999 _ACEOF
18001 LIBS="-ldgc $LIBS"
18009 if test "${ac_cv_header_locale_h+set}" = set; then
18010 { echo "$as_me:$LINENO: checking for locale.h" >&5
18011 echo $ECHO_N "checking for locale.h... $ECHO_C" >&6; }
18012 if test "${ac_cv_header_locale_h+set}" = set; then
18013 echo $ECHO_N "(cached) $ECHO_C" >&6
18015 { echo "$as_me:$LINENO: result: $ac_cv_header_locale_h" >&5
18016 echo "${ECHO_T}$ac_cv_header_locale_h" >&6; }
18017 else
18018 # Is the header compilable?
18019 { echo "$as_me:$LINENO: checking locale.h usability" >&5
18020 echo $ECHO_N "checking locale.h usability... $ECHO_C" >&6; }
18021 cat >conftest.$ac_ext <<_ACEOF
18022 /* confdefs.h. */
18023 _ACEOF
18024 cat confdefs.h >>conftest.$ac_ext
18025 cat >>conftest.$ac_ext <<_ACEOF
18026 /* end confdefs.h. */
18027 $ac_includes_default
18028 #include <locale.h>
18029 _ACEOF
18030 rm -f conftest.$ac_objext
18031 if { (ac_try="$ac_compile"
18032 case "(($ac_try" in
18033 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18034 *) ac_try_echo=$ac_try;;
18035 esac
18036 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18037 (eval "$ac_compile") 2>conftest.er1
18038 ac_status=$?
18039 grep -v '^ *+' conftest.er1 >conftest.err
18040 rm -f conftest.er1
18041 cat conftest.err >&5
18042 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18043 (exit $ac_status); } && {
18044 test -z "$ac_c_werror_flag" ||
18045 test ! -s conftest.err
18046 } && test -s conftest.$ac_objext; then
18047 ac_header_compiler=yes
18048 else
18049 echo "$as_me: failed program was:" >&5
18050 sed 's/^/| /' conftest.$ac_ext >&5
18052 ac_header_compiler=no
18055 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18056 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
18057 echo "${ECHO_T}$ac_header_compiler" >&6; }
18059 # Is the header present?
18060 { echo "$as_me:$LINENO: checking locale.h presence" >&5
18061 echo $ECHO_N "checking locale.h presence... $ECHO_C" >&6; }
18062 cat >conftest.$ac_ext <<_ACEOF
18063 /* confdefs.h. */
18064 _ACEOF
18065 cat confdefs.h >>conftest.$ac_ext
18066 cat >>conftest.$ac_ext <<_ACEOF
18067 /* end confdefs.h. */
18068 #include <locale.h>
18069 _ACEOF
18070 if { (ac_try="$ac_cpp conftest.$ac_ext"
18071 case "(($ac_try" in
18072 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18073 *) ac_try_echo=$ac_try;;
18074 esac
18075 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18076 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
18077 ac_status=$?
18078 grep -v '^ *+' conftest.er1 >conftest.err
18079 rm -f conftest.er1
18080 cat conftest.err >&5
18081 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18082 (exit $ac_status); } >/dev/null && {
18083 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
18084 test ! -s conftest.err
18085 }; then
18086 ac_header_preproc=yes
18087 else
18088 echo "$as_me: failed program was:" >&5
18089 sed 's/^/| /' conftest.$ac_ext >&5
18091 ac_header_preproc=no
18094 rm -f conftest.err conftest.$ac_ext
18095 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
18096 echo "${ECHO_T}$ac_header_preproc" >&6; }
18098 # So? What about this header?
18099 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
18100 yes:no: )
18101 { echo "$as_me:$LINENO: WARNING: locale.h: accepted by the compiler, rejected by the preprocessor!" >&5
18102 echo "$as_me: WARNING: locale.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
18103 { echo "$as_me:$LINENO: WARNING: locale.h: proceeding with the compiler's result" >&5
18104 echo "$as_me: WARNING: locale.h: proceeding with the compiler's result" >&2;}
18105 ac_header_preproc=yes
18107 no:yes:* )
18108 { echo "$as_me:$LINENO: WARNING: locale.h: present but cannot be compiled" >&5
18109 echo "$as_me: WARNING: locale.h: present but cannot be compiled" >&2;}
18110 { echo "$as_me:$LINENO: WARNING: locale.h: check for missing prerequisite headers?" >&5
18111 echo "$as_me: WARNING: locale.h: check for missing prerequisite headers?" >&2;}
18112 { echo "$as_me:$LINENO: WARNING: locale.h: see the Autoconf documentation" >&5
18113 echo "$as_me: WARNING: locale.h: see the Autoconf documentation" >&2;}
18114 { echo "$as_me:$LINENO: WARNING: locale.h: section \"Present But Cannot Be Compiled\"" >&5
18115 echo "$as_me: WARNING: locale.h: section \"Present But Cannot Be Compiled\"" >&2;}
18116 { echo "$as_me:$LINENO: WARNING: locale.h: proceeding with the preprocessor's result" >&5
18117 echo "$as_me: WARNING: locale.h: proceeding with the preprocessor's result" >&2;}
18118 { echo "$as_me:$LINENO: WARNING: locale.h: in the future, the compiler will take precedence" >&5
18119 echo "$as_me: WARNING: locale.h: in the future, the compiler will take precedence" >&2;}
18122 esac
18123 { echo "$as_me:$LINENO: checking for locale.h" >&5
18124 echo $ECHO_N "checking for locale.h... $ECHO_C" >&6; }
18125 if test "${ac_cv_header_locale_h+set}" = set; then
18126 echo $ECHO_N "(cached) $ECHO_C" >&6
18127 else
18128 ac_cv_header_locale_h=$ac_header_preproc
18130 { echo "$as_me:$LINENO: result: $ac_cv_header_locale_h" >&5
18131 echo "${ECHO_T}$ac_cv_header_locale_h" >&6; }
18137 for ac_func in setlocale
18139 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
18140 { echo "$as_me:$LINENO: checking for $ac_func" >&5
18141 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
18142 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
18143 echo $ECHO_N "(cached) $ECHO_C" >&6
18144 else
18145 cat >conftest.$ac_ext <<_ACEOF
18146 /* confdefs.h. */
18147 _ACEOF
18148 cat confdefs.h >>conftest.$ac_ext
18149 cat >>conftest.$ac_ext <<_ACEOF
18150 /* end confdefs.h. */
18151 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
18152 For example, HP-UX 11i <limits.h> declares gettimeofday. */
18153 #define $ac_func innocuous_$ac_func
18155 /* System header to define __stub macros and hopefully few prototypes,
18156 which can conflict with char $ac_func (); below.
18157 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
18158 <limits.h> exists even on freestanding compilers. */
18160 #ifdef __STDC__
18161 # include <limits.h>
18162 #else
18163 # include <assert.h>
18164 #endif
18166 #undef $ac_func
18168 /* Override any GCC internal prototype to avoid an error.
18169 Use char because int might match the return type of a GCC
18170 builtin and then its argument prototype would still apply. */
18171 #ifdef __cplusplus
18172 extern "C"
18173 #endif
18174 char $ac_func ();
18175 /* The GNU C library defines this for functions which it implements
18176 to always fail with ENOSYS. Some functions are actually named
18177 something starting with __ and the normal name is an alias. */
18178 #if defined __stub_$ac_func || defined __stub___$ac_func
18179 choke me
18180 #endif
18183 main ()
18185 return $ac_func ();
18187 return 0;
18189 _ACEOF
18190 rm -f conftest.$ac_objext conftest$ac_exeext
18191 if { (ac_try="$ac_link"
18192 case "(($ac_try" in
18193 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18194 *) ac_try_echo=$ac_try;;
18195 esac
18196 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18197 (eval "$ac_link") 2>conftest.er1
18198 ac_status=$?
18199 grep -v '^ *+' conftest.er1 >conftest.err
18200 rm -f conftest.er1
18201 cat conftest.err >&5
18202 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18203 (exit $ac_status); } && {
18204 test -z "$ac_c_werror_flag" ||
18205 test ! -s conftest.err
18206 } && test -s conftest$ac_exeext &&
18207 $as_test_x conftest$ac_exeext; then
18208 eval "$as_ac_var=yes"
18209 else
18210 echo "$as_me: failed program was:" >&5
18211 sed 's/^/| /' conftest.$ac_ext >&5
18213 eval "$as_ac_var=no"
18216 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
18217 conftest$ac_exeext conftest.$ac_ext
18219 ac_res=`eval echo '${'$as_ac_var'}'`
18220 { echo "$as_me:$LINENO: result: $ac_res" >&5
18221 echo "${ECHO_T}$ac_res" >&6; }
18222 if test `eval echo '${'$as_ac_var'}'` = yes; then
18223 cat >>confdefs.h <<_ACEOF
18224 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
18225 _ACEOF
18228 done
18231 # We cannot check for <dwarf.h>, because Solaris 2 does not use dwarf (it
18232 # uses stabs), but it is still SVR4. We cannot check for <elf.h> because
18233 # Irix 4.0.5F has the header but not the library.
18234 if test $ac_have_func = no && test "$ac_cv_lib_elf_elf_begin" = yes; then
18235 ac_have_func=yes
18237 cat >>confdefs.h <<\_ACEOF
18238 #define SVR4 1
18239 _ACEOF
18243 if test $ac_have_func = no; then
18244 if test "${ac_cv_header_inq_stats_cpustats_h+set}" = set; then
18245 { echo "$as_me:$LINENO: checking for inq_stats/cpustats.h" >&5
18246 echo $ECHO_N "checking for inq_stats/cpustats.h... $ECHO_C" >&6; }
18247 if test "${ac_cv_header_inq_stats_cpustats_h+set}" = set; then
18248 echo $ECHO_N "(cached) $ECHO_C" >&6
18250 { echo "$as_me:$LINENO: result: $ac_cv_header_inq_stats_cpustats_h" >&5
18251 echo "${ECHO_T}$ac_cv_header_inq_stats_cpustats_h" >&6; }
18252 else
18253 # Is the header compilable?
18254 { echo "$as_me:$LINENO: checking inq_stats/cpustats.h usability" >&5
18255 echo $ECHO_N "checking inq_stats/cpustats.h usability... $ECHO_C" >&6; }
18256 cat >conftest.$ac_ext <<_ACEOF
18257 /* confdefs.h. */
18258 _ACEOF
18259 cat confdefs.h >>conftest.$ac_ext
18260 cat >>conftest.$ac_ext <<_ACEOF
18261 /* end confdefs.h. */
18262 $ac_includes_default
18263 #include <inq_stats/cpustats.h>
18264 _ACEOF
18265 rm -f conftest.$ac_objext
18266 if { (ac_try="$ac_compile"
18267 case "(($ac_try" in
18268 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18269 *) ac_try_echo=$ac_try;;
18270 esac
18271 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18272 (eval "$ac_compile") 2>conftest.er1
18273 ac_status=$?
18274 grep -v '^ *+' conftest.er1 >conftest.err
18275 rm -f conftest.er1
18276 cat conftest.err >&5
18277 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18278 (exit $ac_status); } && {
18279 test -z "$ac_c_werror_flag" ||
18280 test ! -s conftest.err
18281 } && test -s conftest.$ac_objext; then
18282 ac_header_compiler=yes
18283 else
18284 echo "$as_me: failed program was:" >&5
18285 sed 's/^/| /' conftest.$ac_ext >&5
18287 ac_header_compiler=no
18290 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18291 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
18292 echo "${ECHO_T}$ac_header_compiler" >&6; }
18294 # Is the header present?
18295 { echo "$as_me:$LINENO: checking inq_stats/cpustats.h presence" >&5
18296 echo $ECHO_N "checking inq_stats/cpustats.h presence... $ECHO_C" >&6; }
18297 cat >conftest.$ac_ext <<_ACEOF
18298 /* confdefs.h. */
18299 _ACEOF
18300 cat confdefs.h >>conftest.$ac_ext
18301 cat >>conftest.$ac_ext <<_ACEOF
18302 /* end confdefs.h. */
18303 #include <inq_stats/cpustats.h>
18304 _ACEOF
18305 if { (ac_try="$ac_cpp conftest.$ac_ext"
18306 case "(($ac_try" in
18307 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18308 *) ac_try_echo=$ac_try;;
18309 esac
18310 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18311 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
18312 ac_status=$?
18313 grep -v '^ *+' conftest.er1 >conftest.err
18314 rm -f conftest.er1
18315 cat conftest.err >&5
18316 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18317 (exit $ac_status); } >/dev/null && {
18318 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
18319 test ! -s conftest.err
18320 }; then
18321 ac_header_preproc=yes
18322 else
18323 echo "$as_me: failed program was:" >&5
18324 sed 's/^/| /' conftest.$ac_ext >&5
18326 ac_header_preproc=no
18329 rm -f conftest.err conftest.$ac_ext
18330 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
18331 echo "${ECHO_T}$ac_header_preproc" >&6; }
18333 # So? What about this header?
18334 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
18335 yes:no: )
18336 { echo "$as_me:$LINENO: WARNING: inq_stats/cpustats.h: accepted by the compiler, rejected by the preprocessor!" >&5
18337 echo "$as_me: WARNING: inq_stats/cpustats.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
18338 { echo "$as_me:$LINENO: WARNING: inq_stats/cpustats.h: proceeding with the compiler's result" >&5
18339 echo "$as_me: WARNING: inq_stats/cpustats.h: proceeding with the compiler's result" >&2;}
18340 ac_header_preproc=yes
18342 no:yes:* )
18343 { echo "$as_me:$LINENO: WARNING: inq_stats/cpustats.h: present but cannot be compiled" >&5
18344 echo "$as_me: WARNING: inq_stats/cpustats.h: present but cannot be compiled" >&2;}
18345 { echo "$as_me:$LINENO: WARNING: inq_stats/cpustats.h: check for missing prerequisite headers?" >&5
18346 echo "$as_me: WARNING: inq_stats/cpustats.h: check for missing prerequisite headers?" >&2;}
18347 { echo "$as_me:$LINENO: WARNING: inq_stats/cpustats.h: see the Autoconf documentation" >&5
18348 echo "$as_me: WARNING: inq_stats/cpustats.h: see the Autoconf documentation" >&2;}
18349 { echo "$as_me:$LINENO: WARNING: inq_stats/cpustats.h: section \"Present But Cannot Be Compiled\"" >&5
18350 echo "$as_me: WARNING: inq_stats/cpustats.h: section \"Present But Cannot Be Compiled\"" >&2;}
18351 { echo "$as_me:$LINENO: WARNING: inq_stats/cpustats.h: proceeding with the preprocessor's result" >&5
18352 echo "$as_me: WARNING: inq_stats/cpustats.h: proceeding with the preprocessor's result" >&2;}
18353 { echo "$as_me:$LINENO: WARNING: inq_stats/cpustats.h: in the future, the compiler will take precedence" >&5
18354 echo "$as_me: WARNING: inq_stats/cpustats.h: in the future, the compiler will take precedence" >&2;}
18357 esac
18358 { echo "$as_me:$LINENO: checking for inq_stats/cpustats.h" >&5
18359 echo $ECHO_N "checking for inq_stats/cpustats.h... $ECHO_C" >&6; }
18360 if test "${ac_cv_header_inq_stats_cpustats_h+set}" = set; then
18361 echo $ECHO_N "(cached) $ECHO_C" >&6
18362 else
18363 ac_cv_header_inq_stats_cpustats_h=$ac_header_preproc
18365 { echo "$as_me:$LINENO: result: $ac_cv_header_inq_stats_cpustats_h" >&5
18366 echo "${ECHO_T}$ac_cv_header_inq_stats_cpustats_h" >&6; }
18369 if test $ac_cv_header_inq_stats_cpustats_h = yes; then
18370 ac_have_func=yes
18372 cat >>confdefs.h <<\_ACEOF
18373 #define UMAX 1
18374 _ACEOF
18377 cat >>confdefs.h <<\_ACEOF
18378 #define UMAX4_3 1
18379 _ACEOF
18386 if test $ac_have_func = no; then
18387 if test "${ac_cv_header_sys_cpustats_h+set}" = set; then
18388 { echo "$as_me:$LINENO: checking for sys/cpustats.h" >&5
18389 echo $ECHO_N "checking for sys/cpustats.h... $ECHO_C" >&6; }
18390 if test "${ac_cv_header_sys_cpustats_h+set}" = set; then
18391 echo $ECHO_N "(cached) $ECHO_C" >&6
18393 { echo "$as_me:$LINENO: result: $ac_cv_header_sys_cpustats_h" >&5
18394 echo "${ECHO_T}$ac_cv_header_sys_cpustats_h" >&6; }
18395 else
18396 # Is the header compilable?
18397 { echo "$as_me:$LINENO: checking sys/cpustats.h usability" >&5
18398 echo $ECHO_N "checking sys/cpustats.h usability... $ECHO_C" >&6; }
18399 cat >conftest.$ac_ext <<_ACEOF
18400 /* confdefs.h. */
18401 _ACEOF
18402 cat confdefs.h >>conftest.$ac_ext
18403 cat >>conftest.$ac_ext <<_ACEOF
18404 /* end confdefs.h. */
18405 $ac_includes_default
18406 #include <sys/cpustats.h>
18407 _ACEOF
18408 rm -f conftest.$ac_objext
18409 if { (ac_try="$ac_compile"
18410 case "(($ac_try" in
18411 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18412 *) ac_try_echo=$ac_try;;
18413 esac
18414 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18415 (eval "$ac_compile") 2>conftest.er1
18416 ac_status=$?
18417 grep -v '^ *+' conftest.er1 >conftest.err
18418 rm -f conftest.er1
18419 cat conftest.err >&5
18420 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18421 (exit $ac_status); } && {
18422 test -z "$ac_c_werror_flag" ||
18423 test ! -s conftest.err
18424 } && test -s conftest.$ac_objext; then
18425 ac_header_compiler=yes
18426 else
18427 echo "$as_me: failed program was:" >&5
18428 sed 's/^/| /' conftest.$ac_ext >&5
18430 ac_header_compiler=no
18433 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18434 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
18435 echo "${ECHO_T}$ac_header_compiler" >&6; }
18437 # Is the header present?
18438 { echo "$as_me:$LINENO: checking sys/cpustats.h presence" >&5
18439 echo $ECHO_N "checking sys/cpustats.h presence... $ECHO_C" >&6; }
18440 cat >conftest.$ac_ext <<_ACEOF
18441 /* confdefs.h. */
18442 _ACEOF
18443 cat confdefs.h >>conftest.$ac_ext
18444 cat >>conftest.$ac_ext <<_ACEOF
18445 /* end confdefs.h. */
18446 #include <sys/cpustats.h>
18447 _ACEOF
18448 if { (ac_try="$ac_cpp conftest.$ac_ext"
18449 case "(($ac_try" in
18450 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18451 *) ac_try_echo=$ac_try;;
18452 esac
18453 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18454 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
18455 ac_status=$?
18456 grep -v '^ *+' conftest.er1 >conftest.err
18457 rm -f conftest.er1
18458 cat conftest.err >&5
18459 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18460 (exit $ac_status); } >/dev/null && {
18461 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
18462 test ! -s conftest.err
18463 }; then
18464 ac_header_preproc=yes
18465 else
18466 echo "$as_me: failed program was:" >&5
18467 sed 's/^/| /' conftest.$ac_ext >&5
18469 ac_header_preproc=no
18472 rm -f conftest.err conftest.$ac_ext
18473 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
18474 echo "${ECHO_T}$ac_header_preproc" >&6; }
18476 # So? What about this header?
18477 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
18478 yes:no: )
18479 { echo "$as_me:$LINENO: WARNING: sys/cpustats.h: accepted by the compiler, rejected by the preprocessor!" >&5
18480 echo "$as_me: WARNING: sys/cpustats.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
18481 { echo "$as_me:$LINENO: WARNING: sys/cpustats.h: proceeding with the compiler's result" >&5
18482 echo "$as_me: WARNING: sys/cpustats.h: proceeding with the compiler's result" >&2;}
18483 ac_header_preproc=yes
18485 no:yes:* )
18486 { echo "$as_me:$LINENO: WARNING: sys/cpustats.h: present but cannot be compiled" >&5
18487 echo "$as_me: WARNING: sys/cpustats.h: present but cannot be compiled" >&2;}
18488 { echo "$as_me:$LINENO: WARNING: sys/cpustats.h: check for missing prerequisite headers?" >&5
18489 echo "$as_me: WARNING: sys/cpustats.h: check for missing prerequisite headers?" >&2;}
18490 { echo "$as_me:$LINENO: WARNING: sys/cpustats.h: see the Autoconf documentation" >&5
18491 echo "$as_me: WARNING: sys/cpustats.h: see the Autoconf documentation" >&2;}
18492 { echo "$as_me:$LINENO: WARNING: sys/cpustats.h: section \"Present But Cannot Be Compiled\"" >&5
18493 echo "$as_me: WARNING: sys/cpustats.h: section \"Present But Cannot Be Compiled\"" >&2;}
18494 { echo "$as_me:$LINENO: WARNING: sys/cpustats.h: proceeding with the preprocessor's result" >&5
18495 echo "$as_me: WARNING: sys/cpustats.h: proceeding with the preprocessor's result" >&2;}
18496 { echo "$as_me:$LINENO: WARNING: sys/cpustats.h: in the future, the compiler will take precedence" >&5
18497 echo "$as_me: WARNING: sys/cpustats.h: in the future, the compiler will take precedence" >&2;}
18500 esac
18501 { echo "$as_me:$LINENO: checking for sys/cpustats.h" >&5
18502 echo $ECHO_N "checking for sys/cpustats.h... $ECHO_C" >&6; }
18503 if test "${ac_cv_header_sys_cpustats_h+set}" = set; then
18504 echo $ECHO_N "(cached) $ECHO_C" >&6
18505 else
18506 ac_cv_header_sys_cpustats_h=$ac_header_preproc
18508 { echo "$as_me:$LINENO: result: $ac_cv_header_sys_cpustats_h" >&5
18509 echo "${ECHO_T}$ac_cv_header_sys_cpustats_h" >&6; }
18512 if test $ac_cv_header_sys_cpustats_h = yes; then
18513 ac_have_func=yes; cat >>confdefs.h <<\_ACEOF
18514 #define UMAX 1
18515 _ACEOF
18522 if test $ac_have_func = no; then
18524 for ac_header in mach/mach.h
18526 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
18527 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
18528 { echo "$as_me:$LINENO: checking for $ac_header" >&5
18529 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
18530 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
18531 echo $ECHO_N "(cached) $ECHO_C" >&6
18533 ac_res=`eval echo '${'$as_ac_Header'}'`
18534 { echo "$as_me:$LINENO: result: $ac_res" >&5
18535 echo "${ECHO_T}$ac_res" >&6; }
18536 else
18537 # Is the header compilable?
18538 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
18539 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
18540 cat >conftest.$ac_ext <<_ACEOF
18541 /* confdefs.h. */
18542 _ACEOF
18543 cat confdefs.h >>conftest.$ac_ext
18544 cat >>conftest.$ac_ext <<_ACEOF
18545 /* end confdefs.h. */
18546 $ac_includes_default
18547 #include <$ac_header>
18548 _ACEOF
18549 rm -f conftest.$ac_objext
18550 if { (ac_try="$ac_compile"
18551 case "(($ac_try" in
18552 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18553 *) ac_try_echo=$ac_try;;
18554 esac
18555 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18556 (eval "$ac_compile") 2>conftest.er1
18557 ac_status=$?
18558 grep -v '^ *+' conftest.er1 >conftest.err
18559 rm -f conftest.er1
18560 cat conftest.err >&5
18561 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18562 (exit $ac_status); } && {
18563 test -z "$ac_c_werror_flag" ||
18564 test ! -s conftest.err
18565 } && test -s conftest.$ac_objext; then
18566 ac_header_compiler=yes
18567 else
18568 echo "$as_me: failed program was:" >&5
18569 sed 's/^/| /' conftest.$ac_ext >&5
18571 ac_header_compiler=no
18574 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18575 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
18576 echo "${ECHO_T}$ac_header_compiler" >&6; }
18578 # Is the header present?
18579 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
18580 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
18581 cat >conftest.$ac_ext <<_ACEOF
18582 /* confdefs.h. */
18583 _ACEOF
18584 cat confdefs.h >>conftest.$ac_ext
18585 cat >>conftest.$ac_ext <<_ACEOF
18586 /* end confdefs.h. */
18587 #include <$ac_header>
18588 _ACEOF
18589 if { (ac_try="$ac_cpp conftest.$ac_ext"
18590 case "(($ac_try" in
18591 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18592 *) ac_try_echo=$ac_try;;
18593 esac
18594 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18595 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
18596 ac_status=$?
18597 grep -v '^ *+' conftest.er1 >conftest.err
18598 rm -f conftest.er1
18599 cat conftest.err >&5
18600 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18601 (exit $ac_status); } >/dev/null && {
18602 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
18603 test ! -s conftest.err
18604 }; then
18605 ac_header_preproc=yes
18606 else
18607 echo "$as_me: failed program was:" >&5
18608 sed 's/^/| /' conftest.$ac_ext >&5
18610 ac_header_preproc=no
18613 rm -f conftest.err conftest.$ac_ext
18614 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
18615 echo "${ECHO_T}$ac_header_preproc" >&6; }
18617 # So? What about this header?
18618 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
18619 yes:no: )
18620 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
18621 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
18622 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
18623 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
18624 ac_header_preproc=yes
18626 no:yes:* )
18627 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
18628 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
18629 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
18630 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
18631 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
18632 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
18633 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
18634 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
18635 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
18636 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
18637 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
18638 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
18641 esac
18642 { echo "$as_me:$LINENO: checking for $ac_header" >&5
18643 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
18644 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
18645 echo $ECHO_N "(cached) $ECHO_C" >&6
18646 else
18647 eval "$as_ac_Header=\$ac_header_preproc"
18649 ac_res=`eval echo '${'$as_ac_Header'}'`
18650 { echo "$as_me:$LINENO: result: $ac_res" >&5
18651 echo "${ECHO_T}$ac_res" >&6; }
18654 if test `eval echo '${'$as_ac_Header'}'` = yes; then
18655 cat >>confdefs.h <<_ACEOF
18656 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
18657 _ACEOF
18661 done
18666 for ac_header in nlist.h
18668 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
18669 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
18670 { echo "$as_me:$LINENO: checking for $ac_header" >&5
18671 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
18672 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
18673 echo $ECHO_N "(cached) $ECHO_C" >&6
18675 ac_res=`eval echo '${'$as_ac_Header'}'`
18676 { echo "$as_me:$LINENO: result: $ac_res" >&5
18677 echo "${ECHO_T}$ac_res" >&6; }
18678 else
18679 # Is the header compilable?
18680 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
18681 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
18682 cat >conftest.$ac_ext <<_ACEOF
18683 /* confdefs.h. */
18684 _ACEOF
18685 cat confdefs.h >>conftest.$ac_ext
18686 cat >>conftest.$ac_ext <<_ACEOF
18687 /* end confdefs.h. */
18688 $ac_includes_default
18689 #include <$ac_header>
18690 _ACEOF
18691 rm -f conftest.$ac_objext
18692 if { (ac_try="$ac_compile"
18693 case "(($ac_try" in
18694 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18695 *) ac_try_echo=$ac_try;;
18696 esac
18697 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18698 (eval "$ac_compile") 2>conftest.er1
18699 ac_status=$?
18700 grep -v '^ *+' conftest.er1 >conftest.err
18701 rm -f conftest.er1
18702 cat conftest.err >&5
18703 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18704 (exit $ac_status); } && {
18705 test -z "$ac_c_werror_flag" ||
18706 test ! -s conftest.err
18707 } && test -s conftest.$ac_objext; then
18708 ac_header_compiler=yes
18709 else
18710 echo "$as_me: failed program was:" >&5
18711 sed 's/^/| /' conftest.$ac_ext >&5
18713 ac_header_compiler=no
18716 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18717 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
18718 echo "${ECHO_T}$ac_header_compiler" >&6; }
18720 # Is the header present?
18721 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
18722 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
18723 cat >conftest.$ac_ext <<_ACEOF
18724 /* confdefs.h. */
18725 _ACEOF
18726 cat confdefs.h >>conftest.$ac_ext
18727 cat >>conftest.$ac_ext <<_ACEOF
18728 /* end confdefs.h. */
18729 #include <$ac_header>
18730 _ACEOF
18731 if { (ac_try="$ac_cpp conftest.$ac_ext"
18732 case "(($ac_try" in
18733 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18734 *) ac_try_echo=$ac_try;;
18735 esac
18736 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18737 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
18738 ac_status=$?
18739 grep -v '^ *+' conftest.er1 >conftest.err
18740 rm -f conftest.er1
18741 cat conftest.err >&5
18742 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18743 (exit $ac_status); } >/dev/null && {
18744 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
18745 test ! -s conftest.err
18746 }; then
18747 ac_header_preproc=yes
18748 else
18749 echo "$as_me: failed program was:" >&5
18750 sed 's/^/| /' conftest.$ac_ext >&5
18752 ac_header_preproc=no
18755 rm -f conftest.err conftest.$ac_ext
18756 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
18757 echo "${ECHO_T}$ac_header_preproc" >&6; }
18759 # So? What about this header?
18760 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
18761 yes:no: )
18762 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
18763 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
18764 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
18765 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
18766 ac_header_preproc=yes
18768 no:yes:* )
18769 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
18770 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
18771 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
18772 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
18773 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
18774 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
18775 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
18776 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
18777 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
18778 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
18779 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
18780 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
18783 esac
18784 { echo "$as_me:$LINENO: checking for $ac_header" >&5
18785 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
18786 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
18787 echo $ECHO_N "(cached) $ECHO_C" >&6
18788 else
18789 eval "$as_ac_Header=\$ac_header_preproc"
18791 ac_res=`eval echo '${'$as_ac_Header'}'`
18792 { echo "$as_me:$LINENO: result: $ac_res" >&5
18793 echo "${ECHO_T}$ac_res" >&6; }
18796 if test `eval echo '${'$as_ac_Header'}'` = yes; then
18797 cat >>confdefs.h <<_ACEOF
18798 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
18799 _ACEOF
18800 { echo "$as_me:$LINENO: checking for struct nlist.n_un.n_name" >&5
18801 echo $ECHO_N "checking for struct nlist.n_un.n_name... $ECHO_C" >&6; }
18802 if test "${ac_cv_member_struct_nlist_n_un_n_name+set}" = set; then
18803 echo $ECHO_N "(cached) $ECHO_C" >&6
18804 else
18805 cat >conftest.$ac_ext <<_ACEOF
18806 /* confdefs.h. */
18807 _ACEOF
18808 cat confdefs.h >>conftest.$ac_ext
18809 cat >>conftest.$ac_ext <<_ACEOF
18810 /* end confdefs.h. */
18811 #include <nlist.h>
18814 main ()
18816 static struct nlist ac_aggr;
18817 if (ac_aggr.n_un.n_name)
18818 return 0;
18820 return 0;
18822 _ACEOF
18823 rm -f conftest.$ac_objext
18824 if { (ac_try="$ac_compile"
18825 case "(($ac_try" in
18826 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18827 *) ac_try_echo=$ac_try;;
18828 esac
18829 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18830 (eval "$ac_compile") 2>conftest.er1
18831 ac_status=$?
18832 grep -v '^ *+' conftest.er1 >conftest.err
18833 rm -f conftest.er1
18834 cat conftest.err >&5
18835 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18836 (exit $ac_status); } && {
18837 test -z "$ac_c_werror_flag" ||
18838 test ! -s conftest.err
18839 } && test -s conftest.$ac_objext; then
18840 ac_cv_member_struct_nlist_n_un_n_name=yes
18841 else
18842 echo "$as_me: failed program was:" >&5
18843 sed 's/^/| /' conftest.$ac_ext >&5
18845 cat >conftest.$ac_ext <<_ACEOF
18846 /* confdefs.h. */
18847 _ACEOF
18848 cat confdefs.h >>conftest.$ac_ext
18849 cat >>conftest.$ac_ext <<_ACEOF
18850 /* end confdefs.h. */
18851 #include <nlist.h>
18854 main ()
18856 static struct nlist ac_aggr;
18857 if (sizeof ac_aggr.n_un.n_name)
18858 return 0;
18860 return 0;
18862 _ACEOF
18863 rm -f conftest.$ac_objext
18864 if { (ac_try="$ac_compile"
18865 case "(($ac_try" in
18866 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18867 *) ac_try_echo=$ac_try;;
18868 esac
18869 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18870 (eval "$ac_compile") 2>conftest.er1
18871 ac_status=$?
18872 grep -v '^ *+' conftest.er1 >conftest.err
18873 rm -f conftest.er1
18874 cat conftest.err >&5
18875 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18876 (exit $ac_status); } && {
18877 test -z "$ac_c_werror_flag" ||
18878 test ! -s conftest.err
18879 } && test -s conftest.$ac_objext; then
18880 ac_cv_member_struct_nlist_n_un_n_name=yes
18881 else
18882 echo "$as_me: failed program was:" >&5
18883 sed 's/^/| /' conftest.$ac_ext >&5
18885 ac_cv_member_struct_nlist_n_un_n_name=no
18888 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18891 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18893 { echo "$as_me:$LINENO: result: $ac_cv_member_struct_nlist_n_un_n_name" >&5
18894 echo "${ECHO_T}$ac_cv_member_struct_nlist_n_un_n_name" >&6; }
18895 if test $ac_cv_member_struct_nlist_n_un_n_name = yes; then
18897 cat >>confdefs.h <<_ACEOF
18898 #define HAVE_STRUCT_NLIST_N_UN_N_NAME 1
18899 _ACEOF
18902 cat >>confdefs.h <<\_ACEOF
18903 #define NLIST_NAME_UNION 1
18904 _ACEOF
18911 done
18914 done
18917 # Some definitions of getloadavg require that the program be installed setgid.
18918 { echo "$as_me:$LINENO: checking whether getloadavg requires setgid" >&5
18919 echo $ECHO_N "checking whether getloadavg requires setgid... $ECHO_C" >&6; }
18920 if test "${ac_cv_func_getloadavg_setgid+set}" = set; then
18921 echo $ECHO_N "(cached) $ECHO_C" >&6
18922 else
18923 cat >conftest.$ac_ext <<_ACEOF
18924 /* confdefs.h. */
18925 _ACEOF
18926 cat confdefs.h >>conftest.$ac_ext
18927 cat >>conftest.$ac_ext <<_ACEOF
18928 /* end confdefs.h. */
18929 #include "$srcdir/$ac_config_libobj_dir/getloadavg.c"
18930 #ifdef LDAV_PRIVILEGED
18931 Yowza Am I SETGID yet
18932 #endif
18933 _ACEOF
18934 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
18935 $EGREP "Yowza Am I SETGID yet" >/dev/null 2>&1; then
18936 ac_cv_func_getloadavg_setgid=yes
18937 else
18938 ac_cv_func_getloadavg_setgid=no
18940 rm -f conftest*
18943 { echo "$as_me:$LINENO: result: $ac_cv_func_getloadavg_setgid" >&5
18944 echo "${ECHO_T}$ac_cv_func_getloadavg_setgid" >&6; }
18945 if test $ac_cv_func_getloadavg_setgid = yes; then
18946 NEED_SETGID=true
18948 cat >>confdefs.h <<\_ACEOF
18949 #define GETLOADAVG_PRIVILEGED 1
18950 _ACEOF
18952 else
18953 NEED_SETGID=false
18956 if test $ac_cv_func_getloadavg_setgid = yes; then
18957 { echo "$as_me:$LINENO: checking group of /dev/kmem" >&5
18958 echo $ECHO_N "checking group of /dev/kmem... $ECHO_C" >&6; }
18959 if test "${ac_cv_group_kmem+set}" = set; then
18960 echo $ECHO_N "(cached) $ECHO_C" >&6
18961 else
18962 # On Solaris, /dev/kmem is a symlink. Get info on the real file.
18963 ac_ls_output=`ls -lgL /dev/kmem 2>/dev/null`
18964 # If we got an error (system does not support symlinks), try without -L.
18965 test -z "$ac_ls_output" && ac_ls_output=`ls -lg /dev/kmem`
18966 ac_cv_group_kmem=`echo $ac_ls_output \
18967 | sed -ne 's/[ ][ ]*/ /g;
18968 s/^.[sSrwx-]* *[0-9]* *\([^0-9]*\) *.*/\1/;
18969 / /s/.* //;p;'`
18972 { echo "$as_me:$LINENO: result: $ac_cv_group_kmem" >&5
18973 echo "${ECHO_T}$ac_cv_group_kmem" >&6; }
18974 KMEM_GROUP=$ac_cv_group_kmem
18976 if test "x$ac_save_LIBS" = x; then
18977 GETLOADAVG_LIBS=$LIBS
18978 else
18979 GETLOADAVG_LIBS=`echo "$LIBS" | sed "s!$ac_save_LIBS!!"`
18981 LIBS=$ac_save_LIBS
18985 { echo "$as_me:$LINENO: checking for _LARGEFILE_SOURCE value needed for large files" >&5
18986 echo $ECHO_N "checking for _LARGEFILE_SOURCE value needed for large files... $ECHO_C" >&6; }
18987 if test "${ac_cv_sys_largefile_source+set}" = set; then
18988 echo $ECHO_N "(cached) $ECHO_C" >&6
18989 else
18990 while :; do
18991 cat >conftest.$ac_ext <<_ACEOF
18992 /* confdefs.h. */
18993 _ACEOF
18994 cat confdefs.h >>conftest.$ac_ext
18995 cat >>conftest.$ac_ext <<_ACEOF
18996 /* end confdefs.h. */
18997 #include <stdio.h>
18999 main ()
19001 return fseeko (stdin, 0, 0) && (fseeko) (stdin, 0, 0);
19003 return 0;
19005 _ACEOF
19006 rm -f conftest.$ac_objext conftest$ac_exeext
19007 if { (ac_try="$ac_link"
19008 case "(($ac_try" in
19009 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19010 *) ac_try_echo=$ac_try;;
19011 esac
19012 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19013 (eval "$ac_link") 2>conftest.er1
19014 ac_status=$?
19015 grep -v '^ *+' conftest.er1 >conftest.err
19016 rm -f conftest.er1
19017 cat conftest.err >&5
19018 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19019 (exit $ac_status); } && {
19020 test -z "$ac_c_werror_flag" ||
19021 test ! -s conftest.err
19022 } && test -s conftest$ac_exeext &&
19023 $as_test_x conftest$ac_exeext; then
19024 ac_cv_sys_largefile_source=no; break
19025 else
19026 echo "$as_me: failed program was:" >&5
19027 sed 's/^/| /' conftest.$ac_ext >&5
19032 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
19033 conftest$ac_exeext conftest.$ac_ext
19034 cat >conftest.$ac_ext <<_ACEOF
19035 /* confdefs.h. */
19036 _ACEOF
19037 cat confdefs.h >>conftest.$ac_ext
19038 cat >>conftest.$ac_ext <<_ACEOF
19039 /* end confdefs.h. */
19040 #define _LARGEFILE_SOURCE 1
19041 #include <stdio.h>
19043 main ()
19045 return fseeko (stdin, 0, 0) && (fseeko) (stdin, 0, 0);
19047 return 0;
19049 _ACEOF
19050 rm -f conftest.$ac_objext conftest$ac_exeext
19051 if { (ac_try="$ac_link"
19052 case "(($ac_try" in
19053 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19054 *) ac_try_echo=$ac_try;;
19055 esac
19056 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19057 (eval "$ac_link") 2>conftest.er1
19058 ac_status=$?
19059 grep -v '^ *+' conftest.er1 >conftest.err
19060 rm -f conftest.er1
19061 cat conftest.err >&5
19062 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19063 (exit $ac_status); } && {
19064 test -z "$ac_c_werror_flag" ||
19065 test ! -s conftest.err
19066 } && test -s conftest$ac_exeext &&
19067 $as_test_x conftest$ac_exeext; then
19068 ac_cv_sys_largefile_source=1; break
19069 else
19070 echo "$as_me: failed program was:" >&5
19071 sed 's/^/| /' conftest.$ac_ext >&5
19076 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
19077 conftest$ac_exeext conftest.$ac_ext
19078 ac_cv_sys_largefile_source=unknown
19079 break
19080 done
19082 { echo "$as_me:$LINENO: result: $ac_cv_sys_largefile_source" >&5
19083 echo "${ECHO_T}$ac_cv_sys_largefile_source" >&6; }
19084 case $ac_cv_sys_largefile_source in #(
19085 no | unknown) ;;
19087 cat >>confdefs.h <<_ACEOF
19088 #define _LARGEFILE_SOURCE $ac_cv_sys_largefile_source
19089 _ACEOF
19091 esac
19092 rm -f conftest*
19094 # We used to try defining _XOPEN_SOURCE=500 too, to work around a bug
19095 # in glibc 2.1.3, but that breaks too many other things.
19096 # If you want fseeko and ftello with glibc, upgrade to a fixed glibc.
19097 if test $ac_cv_sys_largefile_source != unknown; then
19099 cat >>confdefs.h <<\_ACEOF
19100 #define HAVE_FSEEKO 1
19101 _ACEOF
19106 # Configure getopt.
19107 # getopt.m4 serial 10
19109 # The getopt module assume you want GNU getopt, with getopt_long etc,
19110 # rather than vanilla POSIX getopt. This means your your code should
19111 # always include <getopt.h> for the getopt prototypes.
19123 # Prerequisites of lib/getopt*.
19128 GETOPT_H=
19130 for ac_header in getopt.h
19132 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
19133 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
19134 { echo "$as_me:$LINENO: checking for $ac_header" >&5
19135 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
19136 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
19137 echo $ECHO_N "(cached) $ECHO_C" >&6
19139 ac_res=`eval echo '${'$as_ac_Header'}'`
19140 { echo "$as_me:$LINENO: result: $ac_res" >&5
19141 echo "${ECHO_T}$ac_res" >&6; }
19142 else
19143 # Is the header compilable?
19144 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
19145 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
19146 cat >conftest.$ac_ext <<_ACEOF
19147 /* confdefs.h. */
19148 _ACEOF
19149 cat confdefs.h >>conftest.$ac_ext
19150 cat >>conftest.$ac_ext <<_ACEOF
19151 /* end confdefs.h. */
19152 $ac_includes_default
19153 #include <$ac_header>
19154 _ACEOF
19155 rm -f conftest.$ac_objext
19156 if { (ac_try="$ac_compile"
19157 case "(($ac_try" in
19158 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19159 *) ac_try_echo=$ac_try;;
19160 esac
19161 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19162 (eval "$ac_compile") 2>conftest.er1
19163 ac_status=$?
19164 grep -v '^ *+' conftest.er1 >conftest.err
19165 rm -f conftest.er1
19166 cat conftest.err >&5
19167 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19168 (exit $ac_status); } && {
19169 test -z "$ac_c_werror_flag" ||
19170 test ! -s conftest.err
19171 } && test -s conftest.$ac_objext; then
19172 ac_header_compiler=yes
19173 else
19174 echo "$as_me: failed program was:" >&5
19175 sed 's/^/| /' conftest.$ac_ext >&5
19177 ac_header_compiler=no
19180 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19181 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
19182 echo "${ECHO_T}$ac_header_compiler" >&6; }
19184 # Is the header present?
19185 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
19186 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
19187 cat >conftest.$ac_ext <<_ACEOF
19188 /* confdefs.h. */
19189 _ACEOF
19190 cat confdefs.h >>conftest.$ac_ext
19191 cat >>conftest.$ac_ext <<_ACEOF
19192 /* end confdefs.h. */
19193 #include <$ac_header>
19194 _ACEOF
19195 if { (ac_try="$ac_cpp conftest.$ac_ext"
19196 case "(($ac_try" in
19197 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19198 *) ac_try_echo=$ac_try;;
19199 esac
19200 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19201 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
19202 ac_status=$?
19203 grep -v '^ *+' conftest.er1 >conftest.err
19204 rm -f conftest.er1
19205 cat conftest.err >&5
19206 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19207 (exit $ac_status); } >/dev/null && {
19208 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
19209 test ! -s conftest.err
19210 }; then
19211 ac_header_preproc=yes
19212 else
19213 echo "$as_me: failed program was:" >&5
19214 sed 's/^/| /' conftest.$ac_ext >&5
19216 ac_header_preproc=no
19219 rm -f conftest.err conftest.$ac_ext
19220 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
19221 echo "${ECHO_T}$ac_header_preproc" >&6; }
19223 # So? What about this header?
19224 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
19225 yes:no: )
19226 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
19227 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
19228 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
19229 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
19230 ac_header_preproc=yes
19232 no:yes:* )
19233 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
19234 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
19235 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
19236 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
19237 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
19238 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
19239 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
19240 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
19241 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
19242 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
19243 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
19244 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
19247 esac
19248 { echo "$as_me:$LINENO: checking for $ac_header" >&5
19249 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
19250 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
19251 echo $ECHO_N "(cached) $ECHO_C" >&6
19252 else
19253 eval "$as_ac_Header=\$ac_header_preproc"
19255 ac_res=`eval echo '${'$as_ac_Header'}'`
19256 { echo "$as_me:$LINENO: result: $ac_res" >&5
19257 echo "${ECHO_T}$ac_res" >&6; }
19260 if test `eval echo '${'$as_ac_Header'}'` = yes; then
19261 cat >>confdefs.h <<_ACEOF
19262 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
19263 _ACEOF
19265 else
19266 GETOPT_H=getopt.h
19269 done
19271 if test -z "$GETOPT_H"; then
19273 for ac_func in getopt_long_only
19275 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
19276 { echo "$as_me:$LINENO: checking for $ac_func" >&5
19277 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
19278 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
19279 echo $ECHO_N "(cached) $ECHO_C" >&6
19280 else
19281 cat >conftest.$ac_ext <<_ACEOF
19282 /* confdefs.h. */
19283 _ACEOF
19284 cat confdefs.h >>conftest.$ac_ext
19285 cat >>conftest.$ac_ext <<_ACEOF
19286 /* end confdefs.h. */
19287 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
19288 For example, HP-UX 11i <limits.h> declares gettimeofday. */
19289 #define $ac_func innocuous_$ac_func
19291 /* System header to define __stub macros and hopefully few prototypes,
19292 which can conflict with char $ac_func (); below.
19293 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
19294 <limits.h> exists even on freestanding compilers. */
19296 #ifdef __STDC__
19297 # include <limits.h>
19298 #else
19299 # include <assert.h>
19300 #endif
19302 #undef $ac_func
19304 /* Override any GCC internal prototype to avoid an error.
19305 Use char because int might match the return type of a GCC
19306 builtin and then its argument prototype would still apply. */
19307 #ifdef __cplusplus
19308 extern "C"
19309 #endif
19310 char $ac_func ();
19311 /* The GNU C library defines this for functions which it implements
19312 to always fail with ENOSYS. Some functions are actually named
19313 something starting with __ and the normal name is an alias. */
19314 #if defined __stub_$ac_func || defined __stub___$ac_func
19315 choke me
19316 #endif
19319 main ()
19321 return $ac_func ();
19323 return 0;
19325 _ACEOF
19326 rm -f conftest.$ac_objext conftest$ac_exeext
19327 if { (ac_try="$ac_link"
19328 case "(($ac_try" in
19329 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19330 *) ac_try_echo=$ac_try;;
19331 esac
19332 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19333 (eval "$ac_link") 2>conftest.er1
19334 ac_status=$?
19335 grep -v '^ *+' conftest.er1 >conftest.err
19336 rm -f conftest.er1
19337 cat conftest.err >&5
19338 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19339 (exit $ac_status); } && {
19340 test -z "$ac_c_werror_flag" ||
19341 test ! -s conftest.err
19342 } && test -s conftest$ac_exeext &&
19343 $as_test_x conftest$ac_exeext; then
19344 eval "$as_ac_var=yes"
19345 else
19346 echo "$as_me: failed program was:" >&5
19347 sed 's/^/| /' conftest.$ac_ext >&5
19349 eval "$as_ac_var=no"
19352 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
19353 conftest$ac_exeext conftest.$ac_ext
19355 ac_res=`eval echo '${'$as_ac_var'}'`
19356 { echo "$as_me:$LINENO: result: $ac_res" >&5
19357 echo "${ECHO_T}$ac_res" >&6; }
19358 if test `eval echo '${'$as_ac_var'}'` = yes; then
19359 cat >>confdefs.h <<_ACEOF
19360 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
19361 _ACEOF
19363 else
19364 GETOPT_H=getopt.h
19366 done
19370 if test -z "$GETOPT_H"; then
19371 { echo "$as_me:$LINENO: checking whether optreset is declared" >&5
19372 echo $ECHO_N "checking whether optreset is declared... $ECHO_C" >&6; }
19373 if test "${ac_cv_have_decl_optreset+set}" = set; then
19374 echo $ECHO_N "(cached) $ECHO_C" >&6
19375 else
19376 cat >conftest.$ac_ext <<_ACEOF
19377 /* confdefs.h. */
19378 _ACEOF
19379 cat confdefs.h >>conftest.$ac_ext
19380 cat >>conftest.$ac_ext <<_ACEOF
19381 /* end confdefs.h. */
19382 #include <getopt.h>
19385 main ()
19387 #ifndef optreset
19388 (void) optreset;
19389 #endif
19392 return 0;
19394 _ACEOF
19395 rm -f conftest.$ac_objext
19396 if { (ac_try="$ac_compile"
19397 case "(($ac_try" in
19398 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19399 *) ac_try_echo=$ac_try;;
19400 esac
19401 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19402 (eval "$ac_compile") 2>conftest.er1
19403 ac_status=$?
19404 grep -v '^ *+' conftest.er1 >conftest.err
19405 rm -f conftest.er1
19406 cat conftest.err >&5
19407 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19408 (exit $ac_status); } && {
19409 test -z "$ac_c_werror_flag" ||
19410 test ! -s conftest.err
19411 } && test -s conftest.$ac_objext; then
19412 ac_cv_have_decl_optreset=yes
19413 else
19414 echo "$as_me: failed program was:" >&5
19415 sed 's/^/| /' conftest.$ac_ext >&5
19417 ac_cv_have_decl_optreset=no
19420 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19422 { echo "$as_me:$LINENO: result: $ac_cv_have_decl_optreset" >&5
19423 echo "${ECHO_T}$ac_cv_have_decl_optreset" >&6; }
19424 if test $ac_cv_have_decl_optreset = yes; then
19425 GETOPT_H=getopt.h
19430 if test -z "$GETOPT_H"; then
19431 { echo "$as_me:$LINENO: checking for working GNU getopt function" >&5
19432 echo $ECHO_N "checking for working GNU getopt function... $ECHO_C" >&6; }
19433 if test "${gl_cv_func_gnu_getopt+set}" = set; then
19434 echo $ECHO_N "(cached) $ECHO_C" >&6
19435 else
19436 if test "$cross_compiling" = yes; then
19437 { echo "$as_me:$LINENO: checking whether getopt_clip is declared" >&5
19438 echo $ECHO_N "checking whether getopt_clip is declared... $ECHO_C" >&6; }
19439 if test "${ac_cv_have_decl_getopt_clip+set}" = set; then
19440 echo $ECHO_N "(cached) $ECHO_C" >&6
19441 else
19442 cat >conftest.$ac_ext <<_ACEOF
19443 /* confdefs.h. */
19444 _ACEOF
19445 cat confdefs.h >>conftest.$ac_ext
19446 cat >>conftest.$ac_ext <<_ACEOF
19447 /* end confdefs.h. */
19448 #include <getopt.h>
19451 main ()
19453 #ifndef getopt_clip
19454 (void) getopt_clip;
19455 #endif
19458 return 0;
19460 _ACEOF
19461 rm -f conftest.$ac_objext
19462 if { (ac_try="$ac_compile"
19463 case "(($ac_try" in
19464 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19465 *) ac_try_echo=$ac_try;;
19466 esac
19467 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19468 (eval "$ac_compile") 2>conftest.er1
19469 ac_status=$?
19470 grep -v '^ *+' conftest.er1 >conftest.err
19471 rm -f conftest.er1
19472 cat conftest.err >&5
19473 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19474 (exit $ac_status); } && {
19475 test -z "$ac_c_werror_flag" ||
19476 test ! -s conftest.err
19477 } && test -s conftest.$ac_objext; then
19478 ac_cv_have_decl_getopt_clip=yes
19479 else
19480 echo "$as_me: failed program was:" >&5
19481 sed 's/^/| /' conftest.$ac_ext >&5
19483 ac_cv_have_decl_getopt_clip=no
19486 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19488 { echo "$as_me:$LINENO: result: $ac_cv_have_decl_getopt_clip" >&5
19489 echo "${ECHO_T}$ac_cv_have_decl_getopt_clip" >&6; }
19490 if test $ac_cv_have_decl_getopt_clip = yes; then
19491 gl_cv_func_gnu_getopt=no
19492 else
19493 gl_cv_func_gnu_getopt=yes
19496 else
19497 cat >conftest.$ac_ext <<_ACEOF
19498 /* confdefs.h. */
19499 _ACEOF
19500 cat confdefs.h >>conftest.$ac_ext
19501 cat >>conftest.$ac_ext <<_ACEOF
19502 /* end confdefs.h. */
19503 #include <getopt.h>
19505 main ()
19508 char *myargv[3];
19509 myargv[0] = "conftest";
19510 myargv[1] = "-+";
19511 myargv[2] = 0;
19512 return getopt (2, myargv, "+a") != '?';
19515 return 0;
19517 _ACEOF
19518 rm -f conftest$ac_exeext
19519 if { (ac_try="$ac_link"
19520 case "(($ac_try" in
19521 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19522 *) ac_try_echo=$ac_try;;
19523 esac
19524 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19525 (eval "$ac_link") 2>&5
19526 ac_status=$?
19527 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19528 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
19529 { (case "(($ac_try" in
19530 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19531 *) ac_try_echo=$ac_try;;
19532 esac
19533 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19534 (eval "$ac_try") 2>&5
19535 ac_status=$?
19536 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19537 (exit $ac_status); }; }; then
19538 gl_cv_func_gnu_getopt=yes
19539 else
19540 echo "$as_me: program exited with status $ac_status" >&5
19541 echo "$as_me: failed program was:" >&5
19542 sed 's/^/| /' conftest.$ac_ext >&5
19544 ( exit $ac_status )
19545 gl_cv_func_gnu_getopt=no
19547 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
19552 { echo "$as_me:$LINENO: result: $gl_cv_func_gnu_getopt" >&5
19553 echo "${ECHO_T}$gl_cv_func_gnu_getopt" >&6; }
19554 if test "$gl_cv_func_gnu_getopt" = "no"; then
19555 GETOPT_H=getopt.h
19561 if test -n "$GETOPT_H"; then
19564 GETOPT_H=getopt.h
19566 cat >>confdefs.h <<\_ACEOF
19567 #define __GETOPT_PREFIX rpl_
19568 _ACEOF
19573 GETOPTOBJS='getopt.o getopt1.o'
19580 { echo "$as_me:$LINENO: checking whether getpgrp requires zero arguments" >&5
19581 echo $ECHO_N "checking whether getpgrp requires zero arguments... $ECHO_C" >&6; }
19582 if test "${ac_cv_func_getpgrp_void+set}" = set; then
19583 echo $ECHO_N "(cached) $ECHO_C" >&6
19584 else
19585 # Use it with a single arg.
19586 cat >conftest.$ac_ext <<_ACEOF
19587 /* confdefs.h. */
19588 _ACEOF
19589 cat confdefs.h >>conftest.$ac_ext
19590 cat >>conftest.$ac_ext <<_ACEOF
19591 /* end confdefs.h. */
19592 $ac_includes_default
19594 main ()
19596 getpgrp (0);
19598 return 0;
19600 _ACEOF
19601 rm -f conftest.$ac_objext
19602 if { (ac_try="$ac_compile"
19603 case "(($ac_try" in
19604 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19605 *) ac_try_echo=$ac_try;;
19606 esac
19607 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19608 (eval "$ac_compile") 2>conftest.er1
19609 ac_status=$?
19610 grep -v '^ *+' conftest.er1 >conftest.err
19611 rm -f conftest.er1
19612 cat conftest.err >&5
19613 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19614 (exit $ac_status); } && {
19615 test -z "$ac_c_werror_flag" ||
19616 test ! -s conftest.err
19617 } && test -s conftest.$ac_objext; then
19618 ac_cv_func_getpgrp_void=no
19619 else
19620 echo "$as_me: failed program was:" >&5
19621 sed 's/^/| /' conftest.$ac_ext >&5
19623 ac_cv_func_getpgrp_void=yes
19626 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19629 { echo "$as_me:$LINENO: result: $ac_cv_func_getpgrp_void" >&5
19630 echo "${ECHO_T}$ac_cv_func_getpgrp_void" >&6; }
19631 if test $ac_cv_func_getpgrp_void = yes; then
19633 cat >>confdefs.h <<\_ACEOF
19634 #define GETPGRP_VOID 1
19635 _ACEOF
19641 for ac_func in strftime
19643 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
19644 { echo "$as_me:$LINENO: checking for $ac_func" >&5
19645 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
19646 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
19647 echo $ECHO_N "(cached) $ECHO_C" >&6
19648 else
19649 cat >conftest.$ac_ext <<_ACEOF
19650 /* confdefs.h. */
19651 _ACEOF
19652 cat confdefs.h >>conftest.$ac_ext
19653 cat >>conftest.$ac_ext <<_ACEOF
19654 /* end confdefs.h. */
19655 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
19656 For example, HP-UX 11i <limits.h> declares gettimeofday. */
19657 #define $ac_func innocuous_$ac_func
19659 /* System header to define __stub macros and hopefully few prototypes,
19660 which can conflict with char $ac_func (); below.
19661 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
19662 <limits.h> exists even on freestanding compilers. */
19664 #ifdef __STDC__
19665 # include <limits.h>
19666 #else
19667 # include <assert.h>
19668 #endif
19670 #undef $ac_func
19672 /* Override any GCC internal prototype to avoid an error.
19673 Use char because int might match the return type of a GCC
19674 builtin and then its argument prototype would still apply. */
19675 #ifdef __cplusplus
19676 extern "C"
19677 #endif
19678 char $ac_func ();
19679 /* The GNU C library defines this for functions which it implements
19680 to always fail with ENOSYS. Some functions are actually named
19681 something starting with __ and the normal name is an alias. */
19682 #if defined __stub_$ac_func || defined __stub___$ac_func
19683 choke me
19684 #endif
19687 main ()
19689 return $ac_func ();
19691 return 0;
19693 _ACEOF
19694 rm -f conftest.$ac_objext conftest$ac_exeext
19695 if { (ac_try="$ac_link"
19696 case "(($ac_try" in
19697 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19698 *) ac_try_echo=$ac_try;;
19699 esac
19700 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19701 (eval "$ac_link") 2>conftest.er1
19702 ac_status=$?
19703 grep -v '^ *+' conftest.er1 >conftest.err
19704 rm -f conftest.er1
19705 cat conftest.err >&5
19706 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19707 (exit $ac_status); } && {
19708 test -z "$ac_c_werror_flag" ||
19709 test ! -s conftest.err
19710 } && test -s conftest$ac_exeext &&
19711 $as_test_x conftest$ac_exeext; then
19712 eval "$as_ac_var=yes"
19713 else
19714 echo "$as_me: failed program was:" >&5
19715 sed 's/^/| /' conftest.$ac_ext >&5
19717 eval "$as_ac_var=no"
19720 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
19721 conftest$ac_exeext conftest.$ac_ext
19723 ac_res=`eval echo '${'$as_ac_var'}'`
19724 { echo "$as_me:$LINENO: result: $ac_res" >&5
19725 echo "${ECHO_T}$ac_res" >&6; }
19726 if test `eval echo '${'$as_ac_var'}'` = yes; then
19727 cat >>confdefs.h <<_ACEOF
19728 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
19729 _ACEOF
19731 else
19732 # strftime is in -lintl on SCO UNIX.
19733 { echo "$as_me:$LINENO: checking for strftime in -lintl" >&5
19734 echo $ECHO_N "checking for strftime in -lintl... $ECHO_C" >&6; }
19735 if test "${ac_cv_lib_intl_strftime+set}" = set; then
19736 echo $ECHO_N "(cached) $ECHO_C" >&6
19737 else
19738 ac_check_lib_save_LIBS=$LIBS
19739 LIBS="-lintl $LIBS"
19740 cat >conftest.$ac_ext <<_ACEOF
19741 /* confdefs.h. */
19742 _ACEOF
19743 cat confdefs.h >>conftest.$ac_ext
19744 cat >>conftest.$ac_ext <<_ACEOF
19745 /* end confdefs.h. */
19747 /* Override any GCC internal prototype to avoid an error.
19748 Use char because int might match the return type of a GCC
19749 builtin and then its argument prototype would still apply. */
19750 #ifdef __cplusplus
19751 extern "C"
19752 #endif
19753 char strftime ();
19755 main ()
19757 return strftime ();
19759 return 0;
19761 _ACEOF
19762 rm -f conftest.$ac_objext conftest$ac_exeext
19763 if { (ac_try="$ac_link"
19764 case "(($ac_try" in
19765 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19766 *) ac_try_echo=$ac_try;;
19767 esac
19768 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19769 (eval "$ac_link") 2>conftest.er1
19770 ac_status=$?
19771 grep -v '^ *+' conftest.er1 >conftest.err
19772 rm -f conftest.er1
19773 cat conftest.err >&5
19774 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19775 (exit $ac_status); } && {
19776 test -z "$ac_c_werror_flag" ||
19777 test ! -s conftest.err
19778 } && test -s conftest$ac_exeext &&
19779 $as_test_x conftest$ac_exeext; then
19780 ac_cv_lib_intl_strftime=yes
19781 else
19782 echo "$as_me: failed program was:" >&5
19783 sed 's/^/| /' conftest.$ac_ext >&5
19785 ac_cv_lib_intl_strftime=no
19788 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
19789 conftest$ac_exeext conftest.$ac_ext
19790 LIBS=$ac_check_lib_save_LIBS
19792 { echo "$as_me:$LINENO: result: $ac_cv_lib_intl_strftime" >&5
19793 echo "${ECHO_T}$ac_cv_lib_intl_strftime" >&6; }
19794 if test $ac_cv_lib_intl_strftime = yes; then
19795 cat >>confdefs.h <<\_ACEOF
19796 #define HAVE_STRFTIME 1
19797 _ACEOF
19799 LIBS="-lintl $LIBS"
19803 done
19806 # UNIX98 PTYs.
19808 for ac_func in grantpt
19810 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
19811 { echo "$as_me:$LINENO: checking for $ac_func" >&5
19812 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
19813 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
19814 echo $ECHO_N "(cached) $ECHO_C" >&6
19815 else
19816 cat >conftest.$ac_ext <<_ACEOF
19817 /* confdefs.h. */
19818 _ACEOF
19819 cat confdefs.h >>conftest.$ac_ext
19820 cat >>conftest.$ac_ext <<_ACEOF
19821 /* end confdefs.h. */
19822 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
19823 For example, HP-UX 11i <limits.h> declares gettimeofday. */
19824 #define $ac_func innocuous_$ac_func
19826 /* System header to define __stub macros and hopefully few prototypes,
19827 which can conflict with char $ac_func (); below.
19828 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
19829 <limits.h> exists even on freestanding compilers. */
19831 #ifdef __STDC__
19832 # include <limits.h>
19833 #else
19834 # include <assert.h>
19835 #endif
19837 #undef $ac_func
19839 /* Override any GCC internal prototype to avoid an error.
19840 Use char because int might match the return type of a GCC
19841 builtin and then its argument prototype would still apply. */
19842 #ifdef __cplusplus
19843 extern "C"
19844 #endif
19845 char $ac_func ();
19846 /* The GNU C library defines this for functions which it implements
19847 to always fail with ENOSYS. Some functions are actually named
19848 something starting with __ and the normal name is an alias. */
19849 #if defined __stub_$ac_func || defined __stub___$ac_func
19850 choke me
19851 #endif
19854 main ()
19856 return $ac_func ();
19858 return 0;
19860 _ACEOF
19861 rm -f conftest.$ac_objext conftest$ac_exeext
19862 if { (ac_try="$ac_link"
19863 case "(($ac_try" in
19864 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19865 *) ac_try_echo=$ac_try;;
19866 esac
19867 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19868 (eval "$ac_link") 2>conftest.er1
19869 ac_status=$?
19870 grep -v '^ *+' conftest.er1 >conftest.err
19871 rm -f conftest.er1
19872 cat conftest.err >&5
19873 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19874 (exit $ac_status); } && {
19875 test -z "$ac_c_werror_flag" ||
19876 test ! -s conftest.err
19877 } && test -s conftest$ac_exeext &&
19878 $as_test_x conftest$ac_exeext; then
19879 eval "$as_ac_var=yes"
19880 else
19881 echo "$as_me: failed program was:" >&5
19882 sed 's/^/| /' conftest.$ac_ext >&5
19884 eval "$as_ac_var=no"
19887 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
19888 conftest$ac_exeext conftest.$ac_ext
19890 ac_res=`eval echo '${'$as_ac_var'}'`
19891 { echo "$as_me:$LINENO: result: $ac_res" >&5
19892 echo "${ECHO_T}$ac_res" >&6; }
19893 if test `eval echo '${'$as_ac_var'}'` = yes; then
19894 cat >>confdefs.h <<_ACEOF
19895 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
19896 _ACEOF
19899 done
19902 # PTY-related GNU extensions.
19904 for ac_func in getpt
19906 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
19907 { echo "$as_me:$LINENO: checking for $ac_func" >&5
19908 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
19909 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
19910 echo $ECHO_N "(cached) $ECHO_C" >&6
19911 else
19912 cat >conftest.$ac_ext <<_ACEOF
19913 /* confdefs.h. */
19914 _ACEOF
19915 cat confdefs.h >>conftest.$ac_ext
19916 cat >>conftest.$ac_ext <<_ACEOF
19917 /* end confdefs.h. */
19918 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
19919 For example, HP-UX 11i <limits.h> declares gettimeofday. */
19920 #define $ac_func innocuous_$ac_func
19922 /* System header to define __stub macros and hopefully few prototypes,
19923 which can conflict with char $ac_func (); below.
19924 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
19925 <limits.h> exists even on freestanding compilers. */
19927 #ifdef __STDC__
19928 # include <limits.h>
19929 #else
19930 # include <assert.h>
19931 #endif
19933 #undef $ac_func
19935 /* Override any GCC internal prototype to avoid an error.
19936 Use char because int might match the return type of a GCC
19937 builtin and then its argument prototype would still apply. */
19938 #ifdef __cplusplus
19939 extern "C"
19940 #endif
19941 char $ac_func ();
19942 /* The GNU C library defines this for functions which it implements
19943 to always fail with ENOSYS. Some functions are actually named
19944 something starting with __ and the normal name is an alias. */
19945 #if defined __stub_$ac_func || defined __stub___$ac_func
19946 choke me
19947 #endif
19950 main ()
19952 return $ac_func ();
19954 return 0;
19956 _ACEOF
19957 rm -f conftest.$ac_objext conftest$ac_exeext
19958 if { (ac_try="$ac_link"
19959 case "(($ac_try" in
19960 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19961 *) ac_try_echo=$ac_try;;
19962 esac
19963 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19964 (eval "$ac_link") 2>conftest.er1
19965 ac_status=$?
19966 grep -v '^ *+' conftest.er1 >conftest.err
19967 rm -f conftest.er1
19968 cat conftest.err >&5
19969 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19970 (exit $ac_status); } && {
19971 test -z "$ac_c_werror_flag" ||
19972 test ! -s conftest.err
19973 } && test -s conftest$ac_exeext &&
19974 $as_test_x conftest$ac_exeext; then
19975 eval "$as_ac_var=yes"
19976 else
19977 echo "$as_me: failed program was:" >&5
19978 sed 's/^/| /' conftest.$ac_ext >&5
19980 eval "$as_ac_var=no"
19983 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
19984 conftest$ac_exeext conftest.$ac_ext
19986 ac_res=`eval echo '${'$as_ac_var'}'`
19987 { echo "$as_me:$LINENO: result: $ac_res" >&5
19988 echo "${ECHO_T}$ac_res" >&6; }
19989 if test `eval echo '${'$as_ac_var'}'` = yes; then
19990 cat >>confdefs.h <<_ACEOF
19991 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
19992 _ACEOF
19995 done
19998 # Check this now, so that we will NOT find the above functions in ncurses.
19999 # That is because we have not set up to link ncurses in lib-src.
20000 # It's better to believe a function is not available
20001 # than to expect to find it in ncurses.
20003 { echo "$as_me:$LINENO: checking for tparm in -lncurses" >&5
20004 echo $ECHO_N "checking for tparm in -lncurses... $ECHO_C" >&6; }
20005 if test "${ac_cv_lib_ncurses_tparm+set}" = set; then
20006 echo $ECHO_N "(cached) $ECHO_C" >&6
20007 else
20008 ac_check_lib_save_LIBS=$LIBS
20009 LIBS="-lncurses $LIBS"
20010 cat >conftest.$ac_ext <<_ACEOF
20011 /* confdefs.h. */
20012 _ACEOF
20013 cat confdefs.h >>conftest.$ac_ext
20014 cat >>conftest.$ac_ext <<_ACEOF
20015 /* end confdefs.h. */
20017 /* Override any GCC internal prototype to avoid an error.
20018 Use char because int might match the return type of a GCC
20019 builtin and then its argument prototype would still apply. */
20020 #ifdef __cplusplus
20021 extern "C"
20022 #endif
20023 char tparm ();
20025 main ()
20027 return tparm ();
20029 return 0;
20031 _ACEOF
20032 rm -f conftest.$ac_objext conftest$ac_exeext
20033 if { (ac_try="$ac_link"
20034 case "(($ac_try" in
20035 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20036 *) ac_try_echo=$ac_try;;
20037 esac
20038 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20039 (eval "$ac_link") 2>conftest.er1
20040 ac_status=$?
20041 grep -v '^ *+' conftest.er1 >conftest.err
20042 rm -f conftest.er1
20043 cat conftest.err >&5
20044 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20045 (exit $ac_status); } && {
20046 test -z "$ac_c_werror_flag" ||
20047 test ! -s conftest.err
20048 } && test -s conftest$ac_exeext &&
20049 $as_test_x conftest$ac_exeext; then
20050 ac_cv_lib_ncurses_tparm=yes
20051 else
20052 echo "$as_me: failed program was:" >&5
20053 sed 's/^/| /' conftest.$ac_ext >&5
20055 ac_cv_lib_ncurses_tparm=no
20058 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
20059 conftest$ac_exeext conftest.$ac_ext
20060 LIBS=$ac_check_lib_save_LIBS
20062 { echo "$as_me:$LINENO: result: $ac_cv_lib_ncurses_tparm" >&5
20063 echo "${ECHO_T}$ac_cv_lib_ncurses_tparm" >&6; }
20064 if test $ac_cv_lib_ncurses_tparm = yes; then
20065 cat >>confdefs.h <<_ACEOF
20066 #define HAVE_LIBNCURSES 1
20067 _ACEOF
20069 LIBS="-lncurses $LIBS"
20074 # Do we have res_init, for detecting changes in /etc/resolv.conf?
20076 resolv=no
20077 cat >conftest.$ac_ext <<_ACEOF
20078 /* confdefs.h. */
20079 _ACEOF
20080 cat confdefs.h >>conftest.$ac_ext
20081 cat >>conftest.$ac_ext <<_ACEOF
20082 /* end confdefs.h. */
20083 #include <netinet/in.h>
20084 #include <arpa/nameser.h>
20085 #include <resolv.h>
20087 main ()
20089 return res_init();
20091 return 0;
20093 _ACEOF
20094 rm -f conftest.$ac_objext conftest$ac_exeext
20095 if { (ac_try="$ac_link"
20096 case "(($ac_try" in
20097 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20098 *) ac_try_echo=$ac_try;;
20099 esac
20100 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20101 (eval "$ac_link") 2>conftest.er1
20102 ac_status=$?
20103 grep -v '^ *+' conftest.er1 >conftest.err
20104 rm -f conftest.er1
20105 cat conftest.err >&5
20106 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20107 (exit $ac_status); } && {
20108 test -z "$ac_c_werror_flag" ||
20109 test ! -s conftest.err
20110 } && test -s conftest$ac_exeext &&
20111 $as_test_x conftest$ac_exeext; then
20112 have_res_init=yes
20113 else
20114 echo "$as_me: failed program was:" >&5
20115 sed 's/^/| /' conftest.$ac_ext >&5
20117 have_res_init=no
20120 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
20121 conftest$ac_exeext conftest.$ac_ext
20122 if test "$have_res_init" = no; then
20123 OLIBS="$LIBS"
20124 LIBS="$LIBS -lresolv"
20125 { echo "$as_me:$LINENO: checking for res_init with -lresolv" >&5
20126 echo $ECHO_N "checking for res_init with -lresolv... $ECHO_C" >&6; }
20127 cat >conftest.$ac_ext <<_ACEOF
20128 /* confdefs.h. */
20129 _ACEOF
20130 cat confdefs.h >>conftest.$ac_ext
20131 cat >>conftest.$ac_ext <<_ACEOF
20132 /* end confdefs.h. */
20133 #include <netinet/in.h>
20134 #include <arpa/nameser.h>
20135 #include <resolv.h>
20137 main ()
20139 return res_init();
20141 return 0;
20143 _ACEOF
20144 rm -f conftest.$ac_objext conftest$ac_exeext
20145 if { (ac_try="$ac_link"
20146 case "(($ac_try" in
20147 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20148 *) ac_try_echo=$ac_try;;
20149 esac
20150 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20151 (eval "$ac_link") 2>conftest.er1
20152 ac_status=$?
20153 grep -v '^ *+' conftest.er1 >conftest.err
20154 rm -f conftest.er1
20155 cat conftest.err >&5
20156 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20157 (exit $ac_status); } && {
20158 test -z "$ac_c_werror_flag" ||
20159 test ! -s conftest.err
20160 } && test -s conftest$ac_exeext &&
20161 $as_test_x conftest$ac_exeext; then
20162 have_res_init=yes
20163 else
20164 echo "$as_me: failed program was:" >&5
20165 sed 's/^/| /' conftest.$ac_ext >&5
20167 have_res_init=no
20170 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
20171 conftest$ac_exeext conftest.$ac_ext
20172 { echo "$as_me:$LINENO: result: $have_res_init" >&5
20173 echo "${ECHO_T}$have_res_init" >&6; }
20174 if test "$have_res_init" = yes ; then
20175 resolv=yes
20177 LIBS="$OLIBS"
20180 if test "$have_res_init" = yes; then
20182 cat >>confdefs.h <<\_ACEOF
20183 #define HAVE_RES_INIT 1
20184 _ACEOF
20188 # Do we need the Hesiod library to provide the support routines?
20189 if test "$with_hesiod" = yes ; then
20190 # Don't set $LIBS here -- see comments above.
20191 { echo "$as_me:$LINENO: checking for res_send" >&5
20192 echo $ECHO_N "checking for res_send... $ECHO_C" >&6; }
20193 if test "${ac_cv_func_res_send+set}" = set; then
20194 echo $ECHO_N "(cached) $ECHO_C" >&6
20195 else
20196 cat >conftest.$ac_ext <<_ACEOF
20197 /* confdefs.h. */
20198 _ACEOF
20199 cat confdefs.h >>conftest.$ac_ext
20200 cat >>conftest.$ac_ext <<_ACEOF
20201 /* end confdefs.h. */
20202 /* Define res_send to an innocuous variant, in case <limits.h> declares res_send.
20203 For example, HP-UX 11i <limits.h> declares gettimeofday. */
20204 #define res_send innocuous_res_send
20206 /* System header to define __stub macros and hopefully few prototypes,
20207 which can conflict with char res_send (); below.
20208 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
20209 <limits.h> exists even on freestanding compilers. */
20211 #ifdef __STDC__
20212 # include <limits.h>
20213 #else
20214 # include <assert.h>
20215 #endif
20217 #undef res_send
20219 /* Override any GCC internal prototype to avoid an error.
20220 Use char because int might match the return type of a GCC
20221 builtin and then its argument prototype would still apply. */
20222 #ifdef __cplusplus
20223 extern "C"
20224 #endif
20225 char res_send ();
20226 /* The GNU C library defines this for functions which it implements
20227 to always fail with ENOSYS. Some functions are actually named
20228 something starting with __ and the normal name is an alias. */
20229 #if defined __stub_res_send || defined __stub___res_send
20230 choke me
20231 #endif
20234 main ()
20236 return res_send ();
20238 return 0;
20240 _ACEOF
20241 rm -f conftest.$ac_objext conftest$ac_exeext
20242 if { (ac_try="$ac_link"
20243 case "(($ac_try" in
20244 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20245 *) ac_try_echo=$ac_try;;
20246 esac
20247 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20248 (eval "$ac_link") 2>conftest.er1
20249 ac_status=$?
20250 grep -v '^ *+' conftest.er1 >conftest.err
20251 rm -f conftest.er1
20252 cat conftest.err >&5
20253 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20254 (exit $ac_status); } && {
20255 test -z "$ac_c_werror_flag" ||
20256 test ! -s conftest.err
20257 } && test -s conftest$ac_exeext &&
20258 $as_test_x conftest$ac_exeext; then
20259 ac_cv_func_res_send=yes
20260 else
20261 echo "$as_me: failed program was:" >&5
20262 sed 's/^/| /' conftest.$ac_ext >&5
20264 ac_cv_func_res_send=no
20267 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
20268 conftest$ac_exeext conftest.$ac_ext
20270 { echo "$as_me:$LINENO: result: $ac_cv_func_res_send" >&5
20271 echo "${ECHO_T}$ac_cv_func_res_send" >&6; }
20272 if test $ac_cv_func_res_send = yes; then
20274 else
20275 { echo "$as_me:$LINENO: checking for __res_send" >&5
20276 echo $ECHO_N "checking for __res_send... $ECHO_C" >&6; }
20277 if test "${ac_cv_func___res_send+set}" = set; then
20278 echo $ECHO_N "(cached) $ECHO_C" >&6
20279 else
20280 cat >conftest.$ac_ext <<_ACEOF
20281 /* confdefs.h. */
20282 _ACEOF
20283 cat confdefs.h >>conftest.$ac_ext
20284 cat >>conftest.$ac_ext <<_ACEOF
20285 /* end confdefs.h. */
20286 /* Define __res_send to an innocuous variant, in case <limits.h> declares __res_send.
20287 For example, HP-UX 11i <limits.h> declares gettimeofday. */
20288 #define __res_send innocuous___res_send
20290 /* System header to define __stub macros and hopefully few prototypes,
20291 which can conflict with char __res_send (); below.
20292 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
20293 <limits.h> exists even on freestanding compilers. */
20295 #ifdef __STDC__
20296 # include <limits.h>
20297 #else
20298 # include <assert.h>
20299 #endif
20301 #undef __res_send
20303 /* Override any GCC internal prototype to avoid an error.
20304 Use char because int might match the return type of a GCC
20305 builtin and then its argument prototype would still apply. */
20306 #ifdef __cplusplus
20307 extern "C"
20308 #endif
20309 char __res_send ();
20310 /* The GNU C library defines this for functions which it implements
20311 to always fail with ENOSYS. Some functions are actually named
20312 something starting with __ and the normal name is an alias. */
20313 #if defined __stub___res_send || defined __stub_____res_send
20314 choke me
20315 #endif
20318 main ()
20320 return __res_send ();
20322 return 0;
20324 _ACEOF
20325 rm -f conftest.$ac_objext conftest$ac_exeext
20326 if { (ac_try="$ac_link"
20327 case "(($ac_try" in
20328 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20329 *) ac_try_echo=$ac_try;;
20330 esac
20331 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20332 (eval "$ac_link") 2>conftest.er1
20333 ac_status=$?
20334 grep -v '^ *+' conftest.er1 >conftest.err
20335 rm -f conftest.er1
20336 cat conftest.err >&5
20337 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20338 (exit $ac_status); } && {
20339 test -z "$ac_c_werror_flag" ||
20340 test ! -s conftest.err
20341 } && test -s conftest$ac_exeext &&
20342 $as_test_x conftest$ac_exeext; then
20343 ac_cv_func___res_send=yes
20344 else
20345 echo "$as_me: failed program was:" >&5
20346 sed 's/^/| /' conftest.$ac_ext >&5
20348 ac_cv_func___res_send=no
20351 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
20352 conftest$ac_exeext conftest.$ac_ext
20354 { echo "$as_me:$LINENO: result: $ac_cv_func___res_send" >&5
20355 echo "${ECHO_T}$ac_cv_func___res_send" >&6; }
20356 if test $ac_cv_func___res_send = yes; then
20358 else
20359 { echo "$as_me:$LINENO: checking for res_send in -lresolv" >&5
20360 echo $ECHO_N "checking for res_send in -lresolv... $ECHO_C" >&6; }
20361 if test "${ac_cv_lib_resolv_res_send+set}" = set; then
20362 echo $ECHO_N "(cached) $ECHO_C" >&6
20363 else
20364 ac_check_lib_save_LIBS=$LIBS
20365 LIBS="-lresolv $LIBS"
20366 cat >conftest.$ac_ext <<_ACEOF
20367 /* confdefs.h. */
20368 _ACEOF
20369 cat confdefs.h >>conftest.$ac_ext
20370 cat >>conftest.$ac_ext <<_ACEOF
20371 /* end confdefs.h. */
20373 /* Override any GCC internal prototype to avoid an error.
20374 Use char because int might match the return type of a GCC
20375 builtin and then its argument prototype would still apply. */
20376 #ifdef __cplusplus
20377 extern "C"
20378 #endif
20379 char res_send ();
20381 main ()
20383 return res_send ();
20385 return 0;
20387 _ACEOF
20388 rm -f conftest.$ac_objext conftest$ac_exeext
20389 if { (ac_try="$ac_link"
20390 case "(($ac_try" in
20391 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20392 *) ac_try_echo=$ac_try;;
20393 esac
20394 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20395 (eval "$ac_link") 2>conftest.er1
20396 ac_status=$?
20397 grep -v '^ *+' conftest.er1 >conftest.err
20398 rm -f conftest.er1
20399 cat conftest.err >&5
20400 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20401 (exit $ac_status); } && {
20402 test -z "$ac_c_werror_flag" ||
20403 test ! -s conftest.err
20404 } && test -s conftest$ac_exeext &&
20405 $as_test_x conftest$ac_exeext; then
20406 ac_cv_lib_resolv_res_send=yes
20407 else
20408 echo "$as_me: failed program was:" >&5
20409 sed 's/^/| /' conftest.$ac_ext >&5
20411 ac_cv_lib_resolv_res_send=no
20414 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
20415 conftest$ac_exeext conftest.$ac_ext
20416 LIBS=$ac_check_lib_save_LIBS
20418 { echo "$as_me:$LINENO: result: $ac_cv_lib_resolv_res_send" >&5
20419 echo "${ECHO_T}$ac_cv_lib_resolv_res_send" >&6; }
20420 if test $ac_cv_lib_resolv_res_send = yes; then
20421 resolv=yes
20422 else
20423 { echo "$as_me:$LINENO: checking for __res_send in -lresolv" >&5
20424 echo $ECHO_N "checking for __res_send in -lresolv... $ECHO_C" >&6; }
20425 if test "${ac_cv_lib_resolv___res_send+set}" = set; then
20426 echo $ECHO_N "(cached) $ECHO_C" >&6
20427 else
20428 ac_check_lib_save_LIBS=$LIBS
20429 LIBS="-lresolv $LIBS"
20430 cat >conftest.$ac_ext <<_ACEOF
20431 /* confdefs.h. */
20432 _ACEOF
20433 cat confdefs.h >>conftest.$ac_ext
20434 cat >>conftest.$ac_ext <<_ACEOF
20435 /* end confdefs.h. */
20437 /* Override any GCC internal prototype to avoid an error.
20438 Use char because int might match the return type of a GCC
20439 builtin and then its argument prototype would still apply. */
20440 #ifdef __cplusplus
20441 extern "C"
20442 #endif
20443 char __res_send ();
20445 main ()
20447 return __res_send ();
20449 return 0;
20451 _ACEOF
20452 rm -f conftest.$ac_objext conftest$ac_exeext
20453 if { (ac_try="$ac_link"
20454 case "(($ac_try" in
20455 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20456 *) ac_try_echo=$ac_try;;
20457 esac
20458 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20459 (eval "$ac_link") 2>conftest.er1
20460 ac_status=$?
20461 grep -v '^ *+' conftest.er1 >conftest.err
20462 rm -f conftest.er1
20463 cat conftest.err >&5
20464 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20465 (exit $ac_status); } && {
20466 test -z "$ac_c_werror_flag" ||
20467 test ! -s conftest.err
20468 } && test -s conftest$ac_exeext &&
20469 $as_test_x conftest$ac_exeext; then
20470 ac_cv_lib_resolv___res_send=yes
20471 else
20472 echo "$as_me: failed program was:" >&5
20473 sed 's/^/| /' conftest.$ac_ext >&5
20475 ac_cv_lib_resolv___res_send=no
20478 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
20479 conftest$ac_exeext conftest.$ac_ext
20480 LIBS=$ac_check_lib_save_LIBS
20482 { echo "$as_me:$LINENO: result: $ac_cv_lib_resolv___res_send" >&5
20483 echo "${ECHO_T}$ac_cv_lib_resolv___res_send" >&6; }
20484 if test $ac_cv_lib_resolv___res_send = yes; then
20485 resolv=yes
20494 if test "$resolv" = yes ; then
20495 RESOLVLIB=-lresolv
20496 else
20497 RESOLVLIB=
20499 { echo "$as_me:$LINENO: checking for hes_getmailhost" >&5
20500 echo $ECHO_N "checking for hes_getmailhost... $ECHO_C" >&6; }
20501 if test "${ac_cv_func_hes_getmailhost+set}" = set; then
20502 echo $ECHO_N "(cached) $ECHO_C" >&6
20503 else
20504 cat >conftest.$ac_ext <<_ACEOF
20505 /* confdefs.h. */
20506 _ACEOF
20507 cat confdefs.h >>conftest.$ac_ext
20508 cat >>conftest.$ac_ext <<_ACEOF
20509 /* end confdefs.h. */
20510 /* Define hes_getmailhost to an innocuous variant, in case <limits.h> declares hes_getmailhost.
20511 For example, HP-UX 11i <limits.h> declares gettimeofday. */
20512 #define hes_getmailhost innocuous_hes_getmailhost
20514 /* System header to define __stub macros and hopefully few prototypes,
20515 which can conflict with char hes_getmailhost (); below.
20516 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
20517 <limits.h> exists even on freestanding compilers. */
20519 #ifdef __STDC__
20520 # include <limits.h>
20521 #else
20522 # include <assert.h>
20523 #endif
20525 #undef hes_getmailhost
20527 /* Override any GCC internal prototype to avoid an error.
20528 Use char because int might match the return type of a GCC
20529 builtin and then its argument prototype would still apply. */
20530 #ifdef __cplusplus
20531 extern "C"
20532 #endif
20533 char hes_getmailhost ();
20534 /* The GNU C library defines this for functions which it implements
20535 to always fail with ENOSYS. Some functions are actually named
20536 something starting with __ and the normal name is an alias. */
20537 #if defined __stub_hes_getmailhost || defined __stub___hes_getmailhost
20538 choke me
20539 #endif
20542 main ()
20544 return hes_getmailhost ();
20546 return 0;
20548 _ACEOF
20549 rm -f conftest.$ac_objext conftest$ac_exeext
20550 if { (ac_try="$ac_link"
20551 case "(($ac_try" in
20552 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20553 *) ac_try_echo=$ac_try;;
20554 esac
20555 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20556 (eval "$ac_link") 2>conftest.er1
20557 ac_status=$?
20558 grep -v '^ *+' conftest.er1 >conftest.err
20559 rm -f conftest.er1
20560 cat conftest.err >&5
20561 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20562 (exit $ac_status); } && {
20563 test -z "$ac_c_werror_flag" ||
20564 test ! -s conftest.err
20565 } && test -s conftest$ac_exeext &&
20566 $as_test_x conftest$ac_exeext; then
20567 ac_cv_func_hes_getmailhost=yes
20568 else
20569 echo "$as_me: failed program was:" >&5
20570 sed 's/^/| /' conftest.$ac_ext >&5
20572 ac_cv_func_hes_getmailhost=no
20575 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
20576 conftest$ac_exeext conftest.$ac_ext
20578 { echo "$as_me:$LINENO: result: $ac_cv_func_hes_getmailhost" >&5
20579 echo "${ECHO_T}$ac_cv_func_hes_getmailhost" >&6; }
20580 if test $ac_cv_func_hes_getmailhost = yes; then
20582 else
20583 { echo "$as_me:$LINENO: checking for hes_getmailhost in -lhesiod" >&5
20584 echo $ECHO_N "checking for hes_getmailhost in -lhesiod... $ECHO_C" >&6; }
20585 if test "${ac_cv_lib_hesiod_hes_getmailhost+set}" = set; then
20586 echo $ECHO_N "(cached) $ECHO_C" >&6
20587 else
20588 ac_check_lib_save_LIBS=$LIBS
20589 LIBS="-lhesiod $RESOLVLIB $LIBS"
20590 cat >conftest.$ac_ext <<_ACEOF
20591 /* confdefs.h. */
20592 _ACEOF
20593 cat confdefs.h >>conftest.$ac_ext
20594 cat >>conftest.$ac_ext <<_ACEOF
20595 /* end confdefs.h. */
20597 /* Override any GCC internal prototype to avoid an error.
20598 Use char because int might match the return type of a GCC
20599 builtin and then its argument prototype would still apply. */
20600 #ifdef __cplusplus
20601 extern "C"
20602 #endif
20603 char hes_getmailhost ();
20605 main ()
20607 return hes_getmailhost ();
20609 return 0;
20611 _ACEOF
20612 rm -f conftest.$ac_objext conftest$ac_exeext
20613 if { (ac_try="$ac_link"
20614 case "(($ac_try" in
20615 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20616 *) ac_try_echo=$ac_try;;
20617 esac
20618 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20619 (eval "$ac_link") 2>conftest.er1
20620 ac_status=$?
20621 grep -v '^ *+' conftest.er1 >conftest.err
20622 rm -f conftest.er1
20623 cat conftest.err >&5
20624 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20625 (exit $ac_status); } && {
20626 test -z "$ac_c_werror_flag" ||
20627 test ! -s conftest.err
20628 } && test -s conftest$ac_exeext &&
20629 $as_test_x conftest$ac_exeext; then
20630 ac_cv_lib_hesiod_hes_getmailhost=yes
20631 else
20632 echo "$as_me: failed program was:" >&5
20633 sed 's/^/| /' conftest.$ac_ext >&5
20635 ac_cv_lib_hesiod_hes_getmailhost=no
20638 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
20639 conftest$ac_exeext conftest.$ac_ext
20640 LIBS=$ac_check_lib_save_LIBS
20642 { echo "$as_me:$LINENO: result: $ac_cv_lib_hesiod_hes_getmailhost" >&5
20643 echo "${ECHO_T}$ac_cv_lib_hesiod_hes_getmailhost" >&6; }
20644 if test $ac_cv_lib_hesiod_hes_getmailhost = yes; then
20646 cat >>confdefs.h <<\_ACEOF
20647 #define HAVE_LIBHESIOD 1
20648 _ACEOF
20650 else
20658 # Do we need libresolv (due to res_init or Hesiod)?
20659 if test "$resolv" = yes ; then
20661 cat >>confdefs.h <<\_ACEOF
20662 #define HAVE_LIBRESOLV 1
20663 _ACEOF
20667 # These tell us which Kerberos-related libraries to use.
20668 if test "${with_kerberos+set}" = set; then
20670 { echo "$as_me:$LINENO: checking for com_err in -lcom_err" >&5
20671 echo $ECHO_N "checking for com_err in -lcom_err... $ECHO_C" >&6; }
20672 if test "${ac_cv_lib_com_err_com_err+set}" = set; then
20673 echo $ECHO_N "(cached) $ECHO_C" >&6
20674 else
20675 ac_check_lib_save_LIBS=$LIBS
20676 LIBS="-lcom_err $LIBS"
20677 cat >conftest.$ac_ext <<_ACEOF
20678 /* confdefs.h. */
20679 _ACEOF
20680 cat confdefs.h >>conftest.$ac_ext
20681 cat >>conftest.$ac_ext <<_ACEOF
20682 /* end confdefs.h. */
20684 /* Override any GCC internal prototype to avoid an error.
20685 Use char because int might match the return type of a GCC
20686 builtin and then its argument prototype would still apply. */
20687 #ifdef __cplusplus
20688 extern "C"
20689 #endif
20690 char com_err ();
20692 main ()
20694 return com_err ();
20696 return 0;
20698 _ACEOF
20699 rm -f conftest.$ac_objext conftest$ac_exeext
20700 if { (ac_try="$ac_link"
20701 case "(($ac_try" in
20702 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20703 *) ac_try_echo=$ac_try;;
20704 esac
20705 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20706 (eval "$ac_link") 2>conftest.er1
20707 ac_status=$?
20708 grep -v '^ *+' conftest.er1 >conftest.err
20709 rm -f conftest.er1
20710 cat conftest.err >&5
20711 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20712 (exit $ac_status); } && {
20713 test -z "$ac_c_werror_flag" ||
20714 test ! -s conftest.err
20715 } && test -s conftest$ac_exeext &&
20716 $as_test_x conftest$ac_exeext; then
20717 ac_cv_lib_com_err_com_err=yes
20718 else
20719 echo "$as_me: failed program was:" >&5
20720 sed 's/^/| /' conftest.$ac_ext >&5
20722 ac_cv_lib_com_err_com_err=no
20725 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
20726 conftest$ac_exeext conftest.$ac_ext
20727 LIBS=$ac_check_lib_save_LIBS
20729 { echo "$as_me:$LINENO: result: $ac_cv_lib_com_err_com_err" >&5
20730 echo "${ECHO_T}$ac_cv_lib_com_err_com_err" >&6; }
20731 if test $ac_cv_lib_com_err_com_err = yes; then
20732 cat >>confdefs.h <<_ACEOF
20733 #define HAVE_LIBCOM_ERR 1
20734 _ACEOF
20736 LIBS="-lcom_err $LIBS"
20741 { echo "$as_me:$LINENO: checking for mit_des_cbc_encrypt in -lk5crypto" >&5
20742 echo $ECHO_N "checking for mit_des_cbc_encrypt in -lk5crypto... $ECHO_C" >&6; }
20743 if test "${ac_cv_lib_k5crypto_mit_des_cbc_encrypt+set}" = set; then
20744 echo $ECHO_N "(cached) $ECHO_C" >&6
20745 else
20746 ac_check_lib_save_LIBS=$LIBS
20747 LIBS="-lk5crypto $LIBS"
20748 cat >conftest.$ac_ext <<_ACEOF
20749 /* confdefs.h. */
20750 _ACEOF
20751 cat confdefs.h >>conftest.$ac_ext
20752 cat >>conftest.$ac_ext <<_ACEOF
20753 /* end confdefs.h. */
20755 /* Override any GCC internal prototype to avoid an error.
20756 Use char because int might match the return type of a GCC
20757 builtin and then its argument prototype would still apply. */
20758 #ifdef __cplusplus
20759 extern "C"
20760 #endif
20761 char mit_des_cbc_encrypt ();
20763 main ()
20765 return mit_des_cbc_encrypt ();
20767 return 0;
20769 _ACEOF
20770 rm -f conftest.$ac_objext conftest$ac_exeext
20771 if { (ac_try="$ac_link"
20772 case "(($ac_try" in
20773 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20774 *) ac_try_echo=$ac_try;;
20775 esac
20776 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20777 (eval "$ac_link") 2>conftest.er1
20778 ac_status=$?
20779 grep -v '^ *+' conftest.er1 >conftest.err
20780 rm -f conftest.er1
20781 cat conftest.err >&5
20782 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20783 (exit $ac_status); } && {
20784 test -z "$ac_c_werror_flag" ||
20785 test ! -s conftest.err
20786 } && test -s conftest$ac_exeext &&
20787 $as_test_x conftest$ac_exeext; then
20788 ac_cv_lib_k5crypto_mit_des_cbc_encrypt=yes
20789 else
20790 echo "$as_me: failed program was:" >&5
20791 sed 's/^/| /' conftest.$ac_ext >&5
20793 ac_cv_lib_k5crypto_mit_des_cbc_encrypt=no
20796 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
20797 conftest$ac_exeext conftest.$ac_ext
20798 LIBS=$ac_check_lib_save_LIBS
20800 { echo "$as_me:$LINENO: result: $ac_cv_lib_k5crypto_mit_des_cbc_encrypt" >&5
20801 echo "${ECHO_T}$ac_cv_lib_k5crypto_mit_des_cbc_encrypt" >&6; }
20802 if test $ac_cv_lib_k5crypto_mit_des_cbc_encrypt = yes; then
20803 cat >>confdefs.h <<_ACEOF
20804 #define HAVE_LIBK5CRYPTO 1
20805 _ACEOF
20807 LIBS="-lk5crypto $LIBS"
20812 { echo "$as_me:$LINENO: checking for mit_des_cbc_encrypt in -lcrypto" >&5
20813 echo $ECHO_N "checking for mit_des_cbc_encrypt in -lcrypto... $ECHO_C" >&6; }
20814 if test "${ac_cv_lib_crypto_mit_des_cbc_encrypt+set}" = set; then
20815 echo $ECHO_N "(cached) $ECHO_C" >&6
20816 else
20817 ac_check_lib_save_LIBS=$LIBS
20818 LIBS="-lcrypto $LIBS"
20819 cat >conftest.$ac_ext <<_ACEOF
20820 /* confdefs.h. */
20821 _ACEOF
20822 cat confdefs.h >>conftest.$ac_ext
20823 cat >>conftest.$ac_ext <<_ACEOF
20824 /* end confdefs.h. */
20826 /* Override any GCC internal prototype to avoid an error.
20827 Use char because int might match the return type of a GCC
20828 builtin and then its argument prototype would still apply. */
20829 #ifdef __cplusplus
20830 extern "C"
20831 #endif
20832 char mit_des_cbc_encrypt ();
20834 main ()
20836 return mit_des_cbc_encrypt ();
20838 return 0;
20840 _ACEOF
20841 rm -f conftest.$ac_objext conftest$ac_exeext
20842 if { (ac_try="$ac_link"
20843 case "(($ac_try" in
20844 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20845 *) ac_try_echo=$ac_try;;
20846 esac
20847 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20848 (eval "$ac_link") 2>conftest.er1
20849 ac_status=$?
20850 grep -v '^ *+' conftest.er1 >conftest.err
20851 rm -f conftest.er1
20852 cat conftest.err >&5
20853 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20854 (exit $ac_status); } && {
20855 test -z "$ac_c_werror_flag" ||
20856 test ! -s conftest.err
20857 } && test -s conftest$ac_exeext &&
20858 $as_test_x conftest$ac_exeext; then
20859 ac_cv_lib_crypto_mit_des_cbc_encrypt=yes
20860 else
20861 echo "$as_me: failed program was:" >&5
20862 sed 's/^/| /' conftest.$ac_ext >&5
20864 ac_cv_lib_crypto_mit_des_cbc_encrypt=no
20867 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
20868 conftest$ac_exeext conftest.$ac_ext
20869 LIBS=$ac_check_lib_save_LIBS
20871 { echo "$as_me:$LINENO: result: $ac_cv_lib_crypto_mit_des_cbc_encrypt" >&5
20872 echo "${ECHO_T}$ac_cv_lib_crypto_mit_des_cbc_encrypt" >&6; }
20873 if test $ac_cv_lib_crypto_mit_des_cbc_encrypt = yes; then
20874 cat >>confdefs.h <<_ACEOF
20875 #define HAVE_LIBCRYPTO 1
20876 _ACEOF
20878 LIBS="-lcrypto $LIBS"
20883 { echo "$as_me:$LINENO: checking for krb5_init_context in -lkrb5" >&5
20884 echo $ECHO_N "checking for krb5_init_context in -lkrb5... $ECHO_C" >&6; }
20885 if test "${ac_cv_lib_krb5_krb5_init_context+set}" = set; then
20886 echo $ECHO_N "(cached) $ECHO_C" >&6
20887 else
20888 ac_check_lib_save_LIBS=$LIBS
20889 LIBS="-lkrb5 $LIBS"
20890 cat >conftest.$ac_ext <<_ACEOF
20891 /* confdefs.h. */
20892 _ACEOF
20893 cat confdefs.h >>conftest.$ac_ext
20894 cat >>conftest.$ac_ext <<_ACEOF
20895 /* end confdefs.h. */
20897 /* Override any GCC internal prototype to avoid an error.
20898 Use char because int might match the return type of a GCC
20899 builtin and then its argument prototype would still apply. */
20900 #ifdef __cplusplus
20901 extern "C"
20902 #endif
20903 char krb5_init_context ();
20905 main ()
20907 return krb5_init_context ();
20909 return 0;
20911 _ACEOF
20912 rm -f conftest.$ac_objext conftest$ac_exeext
20913 if { (ac_try="$ac_link"
20914 case "(($ac_try" in
20915 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20916 *) ac_try_echo=$ac_try;;
20917 esac
20918 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20919 (eval "$ac_link") 2>conftest.er1
20920 ac_status=$?
20921 grep -v '^ *+' conftest.er1 >conftest.err
20922 rm -f conftest.er1
20923 cat conftest.err >&5
20924 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20925 (exit $ac_status); } && {
20926 test -z "$ac_c_werror_flag" ||
20927 test ! -s conftest.err
20928 } && test -s conftest$ac_exeext &&
20929 $as_test_x conftest$ac_exeext; then
20930 ac_cv_lib_krb5_krb5_init_context=yes
20931 else
20932 echo "$as_me: failed program was:" >&5
20933 sed 's/^/| /' conftest.$ac_ext >&5
20935 ac_cv_lib_krb5_krb5_init_context=no
20938 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
20939 conftest$ac_exeext conftest.$ac_ext
20940 LIBS=$ac_check_lib_save_LIBS
20942 { echo "$as_me:$LINENO: result: $ac_cv_lib_krb5_krb5_init_context" >&5
20943 echo "${ECHO_T}$ac_cv_lib_krb5_krb5_init_context" >&6; }
20944 if test $ac_cv_lib_krb5_krb5_init_context = yes; then
20945 cat >>confdefs.h <<_ACEOF
20946 #define HAVE_LIBKRB5 1
20947 _ACEOF
20949 LIBS="-lkrb5 $LIBS"
20953 if test "${with_kerberos5+set}" != set; then
20955 { echo "$as_me:$LINENO: checking for des_cbc_encrypt in -ldes425" >&5
20956 echo $ECHO_N "checking for des_cbc_encrypt in -ldes425... $ECHO_C" >&6; }
20957 if test "${ac_cv_lib_des425_des_cbc_encrypt+set}" = set; then
20958 echo $ECHO_N "(cached) $ECHO_C" >&6
20959 else
20960 ac_check_lib_save_LIBS=$LIBS
20961 LIBS="-ldes425 $LIBS"
20962 cat >conftest.$ac_ext <<_ACEOF
20963 /* confdefs.h. */
20964 _ACEOF
20965 cat confdefs.h >>conftest.$ac_ext
20966 cat >>conftest.$ac_ext <<_ACEOF
20967 /* end confdefs.h. */
20969 /* Override any GCC internal prototype to avoid an error.
20970 Use char because int might match the return type of a GCC
20971 builtin and then its argument prototype would still apply. */
20972 #ifdef __cplusplus
20973 extern "C"
20974 #endif
20975 char des_cbc_encrypt ();
20977 main ()
20979 return des_cbc_encrypt ();
20981 return 0;
20983 _ACEOF
20984 rm -f conftest.$ac_objext conftest$ac_exeext
20985 if { (ac_try="$ac_link"
20986 case "(($ac_try" in
20987 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20988 *) ac_try_echo=$ac_try;;
20989 esac
20990 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20991 (eval "$ac_link") 2>conftest.er1
20992 ac_status=$?
20993 grep -v '^ *+' conftest.er1 >conftest.err
20994 rm -f conftest.er1
20995 cat conftest.err >&5
20996 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20997 (exit $ac_status); } && {
20998 test -z "$ac_c_werror_flag" ||
20999 test ! -s conftest.err
21000 } && test -s conftest$ac_exeext &&
21001 $as_test_x conftest$ac_exeext; then
21002 ac_cv_lib_des425_des_cbc_encrypt=yes
21003 else
21004 echo "$as_me: failed program was:" >&5
21005 sed 's/^/| /' conftest.$ac_ext >&5
21007 ac_cv_lib_des425_des_cbc_encrypt=no
21010 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
21011 conftest$ac_exeext conftest.$ac_ext
21012 LIBS=$ac_check_lib_save_LIBS
21014 { echo "$as_me:$LINENO: result: $ac_cv_lib_des425_des_cbc_encrypt" >&5
21015 echo "${ECHO_T}$ac_cv_lib_des425_des_cbc_encrypt" >&6; }
21016 if test $ac_cv_lib_des425_des_cbc_encrypt = yes; then
21017 cat >>confdefs.h <<_ACEOF
21018 #define HAVE_LIBDES425 1
21019 _ACEOF
21021 LIBS="-ldes425 $LIBS"
21023 else
21025 { echo "$as_me:$LINENO: checking for des_cbc_encrypt in -ldes" >&5
21026 echo $ECHO_N "checking for des_cbc_encrypt in -ldes... $ECHO_C" >&6; }
21027 if test "${ac_cv_lib_des_des_cbc_encrypt+set}" = set; then
21028 echo $ECHO_N "(cached) $ECHO_C" >&6
21029 else
21030 ac_check_lib_save_LIBS=$LIBS
21031 LIBS="-ldes $LIBS"
21032 cat >conftest.$ac_ext <<_ACEOF
21033 /* confdefs.h. */
21034 _ACEOF
21035 cat confdefs.h >>conftest.$ac_ext
21036 cat >>conftest.$ac_ext <<_ACEOF
21037 /* end confdefs.h. */
21039 /* Override any GCC internal prototype to avoid an error.
21040 Use char because int might match the return type of a GCC
21041 builtin and then its argument prototype would still apply. */
21042 #ifdef __cplusplus
21043 extern "C"
21044 #endif
21045 char des_cbc_encrypt ();
21047 main ()
21049 return des_cbc_encrypt ();
21051 return 0;
21053 _ACEOF
21054 rm -f conftest.$ac_objext conftest$ac_exeext
21055 if { (ac_try="$ac_link"
21056 case "(($ac_try" in
21057 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21058 *) ac_try_echo=$ac_try;;
21059 esac
21060 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21061 (eval "$ac_link") 2>conftest.er1
21062 ac_status=$?
21063 grep -v '^ *+' conftest.er1 >conftest.err
21064 rm -f conftest.er1
21065 cat conftest.err >&5
21066 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21067 (exit $ac_status); } && {
21068 test -z "$ac_c_werror_flag" ||
21069 test ! -s conftest.err
21070 } && test -s conftest$ac_exeext &&
21071 $as_test_x conftest$ac_exeext; then
21072 ac_cv_lib_des_des_cbc_encrypt=yes
21073 else
21074 echo "$as_me: failed program was:" >&5
21075 sed 's/^/| /' conftest.$ac_ext >&5
21077 ac_cv_lib_des_des_cbc_encrypt=no
21080 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
21081 conftest$ac_exeext conftest.$ac_ext
21082 LIBS=$ac_check_lib_save_LIBS
21084 { echo "$as_me:$LINENO: result: $ac_cv_lib_des_des_cbc_encrypt" >&5
21085 echo "${ECHO_T}$ac_cv_lib_des_des_cbc_encrypt" >&6; }
21086 if test $ac_cv_lib_des_des_cbc_encrypt = yes; then
21087 cat >>confdefs.h <<_ACEOF
21088 #define HAVE_LIBDES 1
21089 _ACEOF
21091 LIBS="-ldes $LIBS"
21098 { echo "$as_me:$LINENO: checking for krb_get_cred in -lkrb4" >&5
21099 echo $ECHO_N "checking for krb_get_cred in -lkrb4... $ECHO_C" >&6; }
21100 if test "${ac_cv_lib_krb4_krb_get_cred+set}" = set; then
21101 echo $ECHO_N "(cached) $ECHO_C" >&6
21102 else
21103 ac_check_lib_save_LIBS=$LIBS
21104 LIBS="-lkrb4 $LIBS"
21105 cat >conftest.$ac_ext <<_ACEOF
21106 /* confdefs.h. */
21107 _ACEOF
21108 cat confdefs.h >>conftest.$ac_ext
21109 cat >>conftest.$ac_ext <<_ACEOF
21110 /* end confdefs.h. */
21112 /* Override any GCC internal prototype to avoid an error.
21113 Use char because int might match the return type of a GCC
21114 builtin and then its argument prototype would still apply. */
21115 #ifdef __cplusplus
21116 extern "C"
21117 #endif
21118 char krb_get_cred ();
21120 main ()
21122 return krb_get_cred ();
21124 return 0;
21126 _ACEOF
21127 rm -f conftest.$ac_objext conftest$ac_exeext
21128 if { (ac_try="$ac_link"
21129 case "(($ac_try" in
21130 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21131 *) ac_try_echo=$ac_try;;
21132 esac
21133 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21134 (eval "$ac_link") 2>conftest.er1
21135 ac_status=$?
21136 grep -v '^ *+' conftest.er1 >conftest.err
21137 rm -f conftest.er1
21138 cat conftest.err >&5
21139 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21140 (exit $ac_status); } && {
21141 test -z "$ac_c_werror_flag" ||
21142 test ! -s conftest.err
21143 } && test -s conftest$ac_exeext &&
21144 $as_test_x conftest$ac_exeext; then
21145 ac_cv_lib_krb4_krb_get_cred=yes
21146 else
21147 echo "$as_me: failed program was:" >&5
21148 sed 's/^/| /' conftest.$ac_ext >&5
21150 ac_cv_lib_krb4_krb_get_cred=no
21153 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
21154 conftest$ac_exeext conftest.$ac_ext
21155 LIBS=$ac_check_lib_save_LIBS
21157 { echo "$as_me:$LINENO: result: $ac_cv_lib_krb4_krb_get_cred" >&5
21158 echo "${ECHO_T}$ac_cv_lib_krb4_krb_get_cred" >&6; }
21159 if test $ac_cv_lib_krb4_krb_get_cred = yes; then
21160 cat >>confdefs.h <<_ACEOF
21161 #define HAVE_LIBKRB4 1
21162 _ACEOF
21164 LIBS="-lkrb4 $LIBS"
21166 else
21168 { echo "$as_me:$LINENO: checking for krb_get_cred in -lkrb" >&5
21169 echo $ECHO_N "checking for krb_get_cred in -lkrb... $ECHO_C" >&6; }
21170 if test "${ac_cv_lib_krb_krb_get_cred+set}" = set; then
21171 echo $ECHO_N "(cached) $ECHO_C" >&6
21172 else
21173 ac_check_lib_save_LIBS=$LIBS
21174 LIBS="-lkrb $LIBS"
21175 cat >conftest.$ac_ext <<_ACEOF
21176 /* confdefs.h. */
21177 _ACEOF
21178 cat confdefs.h >>conftest.$ac_ext
21179 cat >>conftest.$ac_ext <<_ACEOF
21180 /* end confdefs.h. */
21182 /* Override any GCC internal prototype to avoid an error.
21183 Use char because int might match the return type of a GCC
21184 builtin and then its argument prototype would still apply. */
21185 #ifdef __cplusplus
21186 extern "C"
21187 #endif
21188 char krb_get_cred ();
21190 main ()
21192 return krb_get_cred ();
21194 return 0;
21196 _ACEOF
21197 rm -f conftest.$ac_objext conftest$ac_exeext
21198 if { (ac_try="$ac_link"
21199 case "(($ac_try" in
21200 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21201 *) ac_try_echo=$ac_try;;
21202 esac
21203 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21204 (eval "$ac_link") 2>conftest.er1
21205 ac_status=$?
21206 grep -v '^ *+' conftest.er1 >conftest.err
21207 rm -f conftest.er1
21208 cat conftest.err >&5
21209 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21210 (exit $ac_status); } && {
21211 test -z "$ac_c_werror_flag" ||
21212 test ! -s conftest.err
21213 } && test -s conftest$ac_exeext &&
21214 $as_test_x conftest$ac_exeext; then
21215 ac_cv_lib_krb_krb_get_cred=yes
21216 else
21217 echo "$as_me: failed program was:" >&5
21218 sed 's/^/| /' conftest.$ac_ext >&5
21220 ac_cv_lib_krb_krb_get_cred=no
21223 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
21224 conftest$ac_exeext conftest.$ac_ext
21225 LIBS=$ac_check_lib_save_LIBS
21227 { echo "$as_me:$LINENO: result: $ac_cv_lib_krb_krb_get_cred" >&5
21228 echo "${ECHO_T}$ac_cv_lib_krb_krb_get_cred" >&6; }
21229 if test $ac_cv_lib_krb_krb_get_cred = yes; then
21230 cat >>confdefs.h <<_ACEOF
21231 #define HAVE_LIBKRB 1
21232 _ACEOF
21234 LIBS="-lkrb $LIBS"
21242 if test "${with_kerberos5+set}" = set; then
21244 for ac_header in krb5.h
21246 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
21247 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
21248 { echo "$as_me:$LINENO: checking for $ac_header" >&5
21249 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
21250 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
21251 echo $ECHO_N "(cached) $ECHO_C" >&6
21253 ac_res=`eval echo '${'$as_ac_Header'}'`
21254 { echo "$as_me:$LINENO: result: $ac_res" >&5
21255 echo "${ECHO_T}$ac_res" >&6; }
21256 else
21257 # Is the header compilable?
21258 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
21259 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
21260 cat >conftest.$ac_ext <<_ACEOF
21261 /* confdefs.h. */
21262 _ACEOF
21263 cat confdefs.h >>conftest.$ac_ext
21264 cat >>conftest.$ac_ext <<_ACEOF
21265 /* end confdefs.h. */
21266 $ac_includes_default
21267 #include <$ac_header>
21268 _ACEOF
21269 rm -f conftest.$ac_objext
21270 if { (ac_try="$ac_compile"
21271 case "(($ac_try" in
21272 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21273 *) ac_try_echo=$ac_try;;
21274 esac
21275 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21276 (eval "$ac_compile") 2>conftest.er1
21277 ac_status=$?
21278 grep -v '^ *+' conftest.er1 >conftest.err
21279 rm -f conftest.er1
21280 cat conftest.err >&5
21281 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21282 (exit $ac_status); } && {
21283 test -z "$ac_c_werror_flag" ||
21284 test ! -s conftest.err
21285 } && test -s conftest.$ac_objext; then
21286 ac_header_compiler=yes
21287 else
21288 echo "$as_me: failed program was:" >&5
21289 sed 's/^/| /' conftest.$ac_ext >&5
21291 ac_header_compiler=no
21294 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21295 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
21296 echo "${ECHO_T}$ac_header_compiler" >&6; }
21298 # Is the header present?
21299 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
21300 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
21301 cat >conftest.$ac_ext <<_ACEOF
21302 /* confdefs.h. */
21303 _ACEOF
21304 cat confdefs.h >>conftest.$ac_ext
21305 cat >>conftest.$ac_ext <<_ACEOF
21306 /* end confdefs.h. */
21307 #include <$ac_header>
21308 _ACEOF
21309 if { (ac_try="$ac_cpp conftest.$ac_ext"
21310 case "(($ac_try" in
21311 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21312 *) ac_try_echo=$ac_try;;
21313 esac
21314 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21315 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
21316 ac_status=$?
21317 grep -v '^ *+' conftest.er1 >conftest.err
21318 rm -f conftest.er1
21319 cat conftest.err >&5
21320 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21321 (exit $ac_status); } >/dev/null && {
21322 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
21323 test ! -s conftest.err
21324 }; then
21325 ac_header_preproc=yes
21326 else
21327 echo "$as_me: failed program was:" >&5
21328 sed 's/^/| /' conftest.$ac_ext >&5
21330 ac_header_preproc=no
21333 rm -f conftest.err conftest.$ac_ext
21334 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
21335 echo "${ECHO_T}$ac_header_preproc" >&6; }
21337 # So? What about this header?
21338 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
21339 yes:no: )
21340 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
21341 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
21342 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
21343 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
21344 ac_header_preproc=yes
21346 no:yes:* )
21347 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
21348 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
21349 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
21350 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
21351 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
21352 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
21353 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
21354 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
21355 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
21356 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
21357 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
21358 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
21361 esac
21362 { echo "$as_me:$LINENO: checking for $ac_header" >&5
21363 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
21364 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
21365 echo $ECHO_N "(cached) $ECHO_C" >&6
21366 else
21367 eval "$as_ac_Header=\$ac_header_preproc"
21369 ac_res=`eval echo '${'$as_ac_Header'}'`
21370 { echo "$as_me:$LINENO: result: $ac_res" >&5
21371 echo "${ECHO_T}$ac_res" >&6; }
21374 if test `eval echo '${'$as_ac_Header'}'` = yes; then
21375 cat >>confdefs.h <<_ACEOF
21376 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
21377 _ACEOF
21381 done
21383 else
21385 for ac_header in des.h
21387 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
21388 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
21389 { echo "$as_me:$LINENO: checking for $ac_header" >&5
21390 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
21391 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
21392 echo $ECHO_N "(cached) $ECHO_C" >&6
21394 ac_res=`eval echo '${'$as_ac_Header'}'`
21395 { echo "$as_me:$LINENO: result: $ac_res" >&5
21396 echo "${ECHO_T}$ac_res" >&6; }
21397 else
21398 # Is the header compilable?
21399 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
21400 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
21401 cat >conftest.$ac_ext <<_ACEOF
21402 /* confdefs.h. */
21403 _ACEOF
21404 cat confdefs.h >>conftest.$ac_ext
21405 cat >>conftest.$ac_ext <<_ACEOF
21406 /* end confdefs.h. */
21407 $ac_includes_default
21408 #include <$ac_header>
21409 _ACEOF
21410 rm -f conftest.$ac_objext
21411 if { (ac_try="$ac_compile"
21412 case "(($ac_try" in
21413 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21414 *) ac_try_echo=$ac_try;;
21415 esac
21416 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21417 (eval "$ac_compile") 2>conftest.er1
21418 ac_status=$?
21419 grep -v '^ *+' conftest.er1 >conftest.err
21420 rm -f conftest.er1
21421 cat conftest.err >&5
21422 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21423 (exit $ac_status); } && {
21424 test -z "$ac_c_werror_flag" ||
21425 test ! -s conftest.err
21426 } && test -s conftest.$ac_objext; then
21427 ac_header_compiler=yes
21428 else
21429 echo "$as_me: failed program was:" >&5
21430 sed 's/^/| /' conftest.$ac_ext >&5
21432 ac_header_compiler=no
21435 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21436 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
21437 echo "${ECHO_T}$ac_header_compiler" >&6; }
21439 # Is the header present?
21440 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
21441 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
21442 cat >conftest.$ac_ext <<_ACEOF
21443 /* confdefs.h. */
21444 _ACEOF
21445 cat confdefs.h >>conftest.$ac_ext
21446 cat >>conftest.$ac_ext <<_ACEOF
21447 /* end confdefs.h. */
21448 #include <$ac_header>
21449 _ACEOF
21450 if { (ac_try="$ac_cpp conftest.$ac_ext"
21451 case "(($ac_try" in
21452 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21453 *) ac_try_echo=$ac_try;;
21454 esac
21455 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21456 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
21457 ac_status=$?
21458 grep -v '^ *+' conftest.er1 >conftest.err
21459 rm -f conftest.er1
21460 cat conftest.err >&5
21461 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21462 (exit $ac_status); } >/dev/null && {
21463 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
21464 test ! -s conftest.err
21465 }; then
21466 ac_header_preproc=yes
21467 else
21468 echo "$as_me: failed program was:" >&5
21469 sed 's/^/| /' conftest.$ac_ext >&5
21471 ac_header_preproc=no
21474 rm -f conftest.err conftest.$ac_ext
21475 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
21476 echo "${ECHO_T}$ac_header_preproc" >&6; }
21478 # So? What about this header?
21479 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
21480 yes:no: )
21481 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
21482 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
21483 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
21484 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
21485 ac_header_preproc=yes
21487 no:yes:* )
21488 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
21489 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
21490 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
21491 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
21492 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
21493 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
21494 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
21495 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
21496 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
21497 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
21498 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
21499 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
21502 esac
21503 { echo "$as_me:$LINENO: checking for $ac_header" >&5
21504 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
21505 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
21506 echo $ECHO_N "(cached) $ECHO_C" >&6
21507 else
21508 eval "$as_ac_Header=\$ac_header_preproc"
21510 ac_res=`eval echo '${'$as_ac_Header'}'`
21511 { echo "$as_me:$LINENO: result: $ac_res" >&5
21512 echo "${ECHO_T}$ac_res" >&6; }
21515 if test `eval echo '${'$as_ac_Header'}'` = yes; then
21516 cat >>confdefs.h <<_ACEOF
21517 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
21518 _ACEOF
21520 else
21522 for ac_header in kerberosIV/des.h
21524 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
21525 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
21526 { echo "$as_me:$LINENO: checking for $ac_header" >&5
21527 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
21528 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
21529 echo $ECHO_N "(cached) $ECHO_C" >&6
21531 ac_res=`eval echo '${'$as_ac_Header'}'`
21532 { echo "$as_me:$LINENO: result: $ac_res" >&5
21533 echo "${ECHO_T}$ac_res" >&6; }
21534 else
21535 # Is the header compilable?
21536 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
21537 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
21538 cat >conftest.$ac_ext <<_ACEOF
21539 /* confdefs.h. */
21540 _ACEOF
21541 cat confdefs.h >>conftest.$ac_ext
21542 cat >>conftest.$ac_ext <<_ACEOF
21543 /* end confdefs.h. */
21544 $ac_includes_default
21545 #include <$ac_header>
21546 _ACEOF
21547 rm -f conftest.$ac_objext
21548 if { (ac_try="$ac_compile"
21549 case "(($ac_try" in
21550 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21551 *) ac_try_echo=$ac_try;;
21552 esac
21553 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21554 (eval "$ac_compile") 2>conftest.er1
21555 ac_status=$?
21556 grep -v '^ *+' conftest.er1 >conftest.err
21557 rm -f conftest.er1
21558 cat conftest.err >&5
21559 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21560 (exit $ac_status); } && {
21561 test -z "$ac_c_werror_flag" ||
21562 test ! -s conftest.err
21563 } && test -s conftest.$ac_objext; then
21564 ac_header_compiler=yes
21565 else
21566 echo "$as_me: failed program was:" >&5
21567 sed 's/^/| /' conftest.$ac_ext >&5
21569 ac_header_compiler=no
21572 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21573 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
21574 echo "${ECHO_T}$ac_header_compiler" >&6; }
21576 # Is the header present?
21577 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
21578 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
21579 cat >conftest.$ac_ext <<_ACEOF
21580 /* confdefs.h. */
21581 _ACEOF
21582 cat confdefs.h >>conftest.$ac_ext
21583 cat >>conftest.$ac_ext <<_ACEOF
21584 /* end confdefs.h. */
21585 #include <$ac_header>
21586 _ACEOF
21587 if { (ac_try="$ac_cpp conftest.$ac_ext"
21588 case "(($ac_try" in
21589 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21590 *) ac_try_echo=$ac_try;;
21591 esac
21592 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21593 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
21594 ac_status=$?
21595 grep -v '^ *+' conftest.er1 >conftest.err
21596 rm -f conftest.er1
21597 cat conftest.err >&5
21598 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21599 (exit $ac_status); } >/dev/null && {
21600 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
21601 test ! -s conftest.err
21602 }; then
21603 ac_header_preproc=yes
21604 else
21605 echo "$as_me: failed program was:" >&5
21606 sed 's/^/| /' conftest.$ac_ext >&5
21608 ac_header_preproc=no
21611 rm -f conftest.err conftest.$ac_ext
21612 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
21613 echo "${ECHO_T}$ac_header_preproc" >&6; }
21615 # So? What about this header?
21616 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
21617 yes:no: )
21618 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
21619 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
21620 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
21621 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
21622 ac_header_preproc=yes
21624 no:yes:* )
21625 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
21626 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
21627 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
21628 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
21629 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
21630 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
21631 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
21632 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
21633 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
21634 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
21635 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
21636 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
21639 esac
21640 { echo "$as_me:$LINENO: checking for $ac_header" >&5
21641 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
21642 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
21643 echo $ECHO_N "(cached) $ECHO_C" >&6
21644 else
21645 eval "$as_ac_Header=\$ac_header_preproc"
21647 ac_res=`eval echo '${'$as_ac_Header'}'`
21648 { echo "$as_me:$LINENO: result: $ac_res" >&5
21649 echo "${ECHO_T}$ac_res" >&6; }
21652 if test `eval echo '${'$as_ac_Header'}'` = yes; then
21653 cat >>confdefs.h <<_ACEOF
21654 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
21655 _ACEOF
21657 else
21659 for ac_header in kerberos/des.h
21661 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
21662 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
21663 { echo "$as_me:$LINENO: checking for $ac_header" >&5
21664 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
21665 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
21666 echo $ECHO_N "(cached) $ECHO_C" >&6
21668 ac_res=`eval echo '${'$as_ac_Header'}'`
21669 { echo "$as_me:$LINENO: result: $ac_res" >&5
21670 echo "${ECHO_T}$ac_res" >&6; }
21671 else
21672 # Is the header compilable?
21673 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
21674 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
21675 cat >conftest.$ac_ext <<_ACEOF
21676 /* confdefs.h. */
21677 _ACEOF
21678 cat confdefs.h >>conftest.$ac_ext
21679 cat >>conftest.$ac_ext <<_ACEOF
21680 /* end confdefs.h. */
21681 $ac_includes_default
21682 #include <$ac_header>
21683 _ACEOF
21684 rm -f conftest.$ac_objext
21685 if { (ac_try="$ac_compile"
21686 case "(($ac_try" in
21687 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21688 *) ac_try_echo=$ac_try;;
21689 esac
21690 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21691 (eval "$ac_compile") 2>conftest.er1
21692 ac_status=$?
21693 grep -v '^ *+' conftest.er1 >conftest.err
21694 rm -f conftest.er1
21695 cat conftest.err >&5
21696 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21697 (exit $ac_status); } && {
21698 test -z "$ac_c_werror_flag" ||
21699 test ! -s conftest.err
21700 } && test -s conftest.$ac_objext; then
21701 ac_header_compiler=yes
21702 else
21703 echo "$as_me: failed program was:" >&5
21704 sed 's/^/| /' conftest.$ac_ext >&5
21706 ac_header_compiler=no
21709 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21710 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
21711 echo "${ECHO_T}$ac_header_compiler" >&6; }
21713 # Is the header present?
21714 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
21715 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
21716 cat >conftest.$ac_ext <<_ACEOF
21717 /* confdefs.h. */
21718 _ACEOF
21719 cat confdefs.h >>conftest.$ac_ext
21720 cat >>conftest.$ac_ext <<_ACEOF
21721 /* end confdefs.h. */
21722 #include <$ac_header>
21723 _ACEOF
21724 if { (ac_try="$ac_cpp conftest.$ac_ext"
21725 case "(($ac_try" in
21726 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21727 *) ac_try_echo=$ac_try;;
21728 esac
21729 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21730 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
21731 ac_status=$?
21732 grep -v '^ *+' conftest.er1 >conftest.err
21733 rm -f conftest.er1
21734 cat conftest.err >&5
21735 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21736 (exit $ac_status); } >/dev/null && {
21737 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
21738 test ! -s conftest.err
21739 }; then
21740 ac_header_preproc=yes
21741 else
21742 echo "$as_me: failed program was:" >&5
21743 sed 's/^/| /' conftest.$ac_ext >&5
21745 ac_header_preproc=no
21748 rm -f conftest.err conftest.$ac_ext
21749 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
21750 echo "${ECHO_T}$ac_header_preproc" >&6; }
21752 # So? What about this header?
21753 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
21754 yes:no: )
21755 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
21756 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
21757 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
21758 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
21759 ac_header_preproc=yes
21761 no:yes:* )
21762 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
21763 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
21764 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
21765 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
21766 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
21767 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
21768 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
21769 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
21770 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
21771 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
21772 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
21773 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
21776 esac
21777 { echo "$as_me:$LINENO: checking for $ac_header" >&5
21778 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
21779 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
21780 echo $ECHO_N "(cached) $ECHO_C" >&6
21781 else
21782 eval "$as_ac_Header=\$ac_header_preproc"
21784 ac_res=`eval echo '${'$as_ac_Header'}'`
21785 { echo "$as_me:$LINENO: result: $ac_res" >&5
21786 echo "${ECHO_T}$ac_res" >&6; }
21789 if test `eval echo '${'$as_ac_Header'}'` = yes; then
21790 cat >>confdefs.h <<_ACEOF
21791 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
21792 _ACEOF
21796 done
21800 done
21804 done
21807 for ac_header in krb.h
21809 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
21810 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
21811 { echo "$as_me:$LINENO: checking for $ac_header" >&5
21812 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
21813 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
21814 echo $ECHO_N "(cached) $ECHO_C" >&6
21816 ac_res=`eval echo '${'$as_ac_Header'}'`
21817 { echo "$as_me:$LINENO: result: $ac_res" >&5
21818 echo "${ECHO_T}$ac_res" >&6; }
21819 else
21820 # Is the header compilable?
21821 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
21822 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
21823 cat >conftest.$ac_ext <<_ACEOF
21824 /* confdefs.h. */
21825 _ACEOF
21826 cat confdefs.h >>conftest.$ac_ext
21827 cat >>conftest.$ac_ext <<_ACEOF
21828 /* end confdefs.h. */
21829 $ac_includes_default
21830 #include <$ac_header>
21831 _ACEOF
21832 rm -f conftest.$ac_objext
21833 if { (ac_try="$ac_compile"
21834 case "(($ac_try" in
21835 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21836 *) ac_try_echo=$ac_try;;
21837 esac
21838 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21839 (eval "$ac_compile") 2>conftest.er1
21840 ac_status=$?
21841 grep -v '^ *+' conftest.er1 >conftest.err
21842 rm -f conftest.er1
21843 cat conftest.err >&5
21844 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21845 (exit $ac_status); } && {
21846 test -z "$ac_c_werror_flag" ||
21847 test ! -s conftest.err
21848 } && test -s conftest.$ac_objext; then
21849 ac_header_compiler=yes
21850 else
21851 echo "$as_me: failed program was:" >&5
21852 sed 's/^/| /' conftest.$ac_ext >&5
21854 ac_header_compiler=no
21857 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21858 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
21859 echo "${ECHO_T}$ac_header_compiler" >&6; }
21861 # Is the header present?
21862 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
21863 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
21864 cat >conftest.$ac_ext <<_ACEOF
21865 /* confdefs.h. */
21866 _ACEOF
21867 cat confdefs.h >>conftest.$ac_ext
21868 cat >>conftest.$ac_ext <<_ACEOF
21869 /* end confdefs.h. */
21870 #include <$ac_header>
21871 _ACEOF
21872 if { (ac_try="$ac_cpp conftest.$ac_ext"
21873 case "(($ac_try" in
21874 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21875 *) ac_try_echo=$ac_try;;
21876 esac
21877 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21878 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
21879 ac_status=$?
21880 grep -v '^ *+' conftest.er1 >conftest.err
21881 rm -f conftest.er1
21882 cat conftest.err >&5
21883 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21884 (exit $ac_status); } >/dev/null && {
21885 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
21886 test ! -s conftest.err
21887 }; then
21888 ac_header_preproc=yes
21889 else
21890 echo "$as_me: failed program was:" >&5
21891 sed 's/^/| /' conftest.$ac_ext >&5
21893 ac_header_preproc=no
21896 rm -f conftest.err conftest.$ac_ext
21897 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
21898 echo "${ECHO_T}$ac_header_preproc" >&6; }
21900 # So? What about this header?
21901 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
21902 yes:no: )
21903 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
21904 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
21905 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
21906 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
21907 ac_header_preproc=yes
21909 no:yes:* )
21910 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
21911 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
21912 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
21913 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
21914 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
21915 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
21916 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
21917 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
21918 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
21919 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
21920 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
21921 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
21924 esac
21925 { echo "$as_me:$LINENO: checking for $ac_header" >&5
21926 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
21927 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
21928 echo $ECHO_N "(cached) $ECHO_C" >&6
21929 else
21930 eval "$as_ac_Header=\$ac_header_preproc"
21932 ac_res=`eval echo '${'$as_ac_Header'}'`
21933 { echo "$as_me:$LINENO: result: $ac_res" >&5
21934 echo "${ECHO_T}$ac_res" >&6; }
21937 if test `eval echo '${'$as_ac_Header'}'` = yes; then
21938 cat >>confdefs.h <<_ACEOF
21939 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
21940 _ACEOF
21942 else
21944 for ac_header in kerberosIV/krb.h
21946 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
21947 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
21948 { echo "$as_me:$LINENO: checking for $ac_header" >&5
21949 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
21950 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
21951 echo $ECHO_N "(cached) $ECHO_C" >&6
21953 ac_res=`eval echo '${'$as_ac_Header'}'`
21954 { echo "$as_me:$LINENO: result: $ac_res" >&5
21955 echo "${ECHO_T}$ac_res" >&6; }
21956 else
21957 # Is the header compilable?
21958 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
21959 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
21960 cat >conftest.$ac_ext <<_ACEOF
21961 /* confdefs.h. */
21962 _ACEOF
21963 cat confdefs.h >>conftest.$ac_ext
21964 cat >>conftest.$ac_ext <<_ACEOF
21965 /* end confdefs.h. */
21966 $ac_includes_default
21967 #include <$ac_header>
21968 _ACEOF
21969 rm -f conftest.$ac_objext
21970 if { (ac_try="$ac_compile"
21971 case "(($ac_try" in
21972 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21973 *) ac_try_echo=$ac_try;;
21974 esac
21975 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21976 (eval "$ac_compile") 2>conftest.er1
21977 ac_status=$?
21978 grep -v '^ *+' conftest.er1 >conftest.err
21979 rm -f conftest.er1
21980 cat conftest.err >&5
21981 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21982 (exit $ac_status); } && {
21983 test -z "$ac_c_werror_flag" ||
21984 test ! -s conftest.err
21985 } && test -s conftest.$ac_objext; then
21986 ac_header_compiler=yes
21987 else
21988 echo "$as_me: failed program was:" >&5
21989 sed 's/^/| /' conftest.$ac_ext >&5
21991 ac_header_compiler=no
21994 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21995 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
21996 echo "${ECHO_T}$ac_header_compiler" >&6; }
21998 # Is the header present?
21999 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
22000 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
22001 cat >conftest.$ac_ext <<_ACEOF
22002 /* confdefs.h. */
22003 _ACEOF
22004 cat confdefs.h >>conftest.$ac_ext
22005 cat >>conftest.$ac_ext <<_ACEOF
22006 /* end confdefs.h. */
22007 #include <$ac_header>
22008 _ACEOF
22009 if { (ac_try="$ac_cpp conftest.$ac_ext"
22010 case "(($ac_try" in
22011 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22012 *) ac_try_echo=$ac_try;;
22013 esac
22014 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22015 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
22016 ac_status=$?
22017 grep -v '^ *+' conftest.er1 >conftest.err
22018 rm -f conftest.er1
22019 cat conftest.err >&5
22020 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22021 (exit $ac_status); } >/dev/null && {
22022 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
22023 test ! -s conftest.err
22024 }; then
22025 ac_header_preproc=yes
22026 else
22027 echo "$as_me: failed program was:" >&5
22028 sed 's/^/| /' conftest.$ac_ext >&5
22030 ac_header_preproc=no
22033 rm -f conftest.err conftest.$ac_ext
22034 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
22035 echo "${ECHO_T}$ac_header_preproc" >&6; }
22037 # So? What about this header?
22038 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
22039 yes:no: )
22040 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
22041 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
22042 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
22043 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
22044 ac_header_preproc=yes
22046 no:yes:* )
22047 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
22048 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
22049 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
22050 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
22051 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
22052 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
22053 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
22054 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
22055 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
22056 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
22057 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
22058 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
22061 esac
22062 { echo "$as_me:$LINENO: checking for $ac_header" >&5
22063 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
22064 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
22065 echo $ECHO_N "(cached) $ECHO_C" >&6
22066 else
22067 eval "$as_ac_Header=\$ac_header_preproc"
22069 ac_res=`eval echo '${'$as_ac_Header'}'`
22070 { echo "$as_me:$LINENO: result: $ac_res" >&5
22071 echo "${ECHO_T}$ac_res" >&6; }
22074 if test `eval echo '${'$as_ac_Header'}'` = yes; then
22075 cat >>confdefs.h <<_ACEOF
22076 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
22077 _ACEOF
22079 else
22081 for ac_header in kerberos/krb.h
22083 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
22084 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
22085 { echo "$as_me:$LINENO: checking for $ac_header" >&5
22086 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
22087 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
22088 echo $ECHO_N "(cached) $ECHO_C" >&6
22090 ac_res=`eval echo '${'$as_ac_Header'}'`
22091 { echo "$as_me:$LINENO: result: $ac_res" >&5
22092 echo "${ECHO_T}$ac_res" >&6; }
22093 else
22094 # Is the header compilable?
22095 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
22096 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
22097 cat >conftest.$ac_ext <<_ACEOF
22098 /* confdefs.h. */
22099 _ACEOF
22100 cat confdefs.h >>conftest.$ac_ext
22101 cat >>conftest.$ac_ext <<_ACEOF
22102 /* end confdefs.h. */
22103 $ac_includes_default
22104 #include <$ac_header>
22105 _ACEOF
22106 rm -f conftest.$ac_objext
22107 if { (ac_try="$ac_compile"
22108 case "(($ac_try" in
22109 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22110 *) ac_try_echo=$ac_try;;
22111 esac
22112 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22113 (eval "$ac_compile") 2>conftest.er1
22114 ac_status=$?
22115 grep -v '^ *+' conftest.er1 >conftest.err
22116 rm -f conftest.er1
22117 cat conftest.err >&5
22118 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22119 (exit $ac_status); } && {
22120 test -z "$ac_c_werror_flag" ||
22121 test ! -s conftest.err
22122 } && test -s conftest.$ac_objext; then
22123 ac_header_compiler=yes
22124 else
22125 echo "$as_me: failed program was:" >&5
22126 sed 's/^/| /' conftest.$ac_ext >&5
22128 ac_header_compiler=no
22131 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22132 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
22133 echo "${ECHO_T}$ac_header_compiler" >&6; }
22135 # Is the header present?
22136 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
22137 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
22138 cat >conftest.$ac_ext <<_ACEOF
22139 /* confdefs.h. */
22140 _ACEOF
22141 cat confdefs.h >>conftest.$ac_ext
22142 cat >>conftest.$ac_ext <<_ACEOF
22143 /* end confdefs.h. */
22144 #include <$ac_header>
22145 _ACEOF
22146 if { (ac_try="$ac_cpp conftest.$ac_ext"
22147 case "(($ac_try" in
22148 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22149 *) ac_try_echo=$ac_try;;
22150 esac
22151 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22152 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
22153 ac_status=$?
22154 grep -v '^ *+' conftest.er1 >conftest.err
22155 rm -f conftest.er1
22156 cat conftest.err >&5
22157 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22158 (exit $ac_status); } >/dev/null && {
22159 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
22160 test ! -s conftest.err
22161 }; then
22162 ac_header_preproc=yes
22163 else
22164 echo "$as_me: failed program was:" >&5
22165 sed 's/^/| /' conftest.$ac_ext >&5
22167 ac_header_preproc=no
22170 rm -f conftest.err conftest.$ac_ext
22171 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
22172 echo "${ECHO_T}$ac_header_preproc" >&6; }
22174 # So? What about this header?
22175 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
22176 yes:no: )
22177 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
22178 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
22179 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
22180 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
22181 ac_header_preproc=yes
22183 no:yes:* )
22184 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
22185 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
22186 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
22187 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
22188 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
22189 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
22190 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
22191 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
22192 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
22193 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
22194 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
22195 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
22198 esac
22199 { echo "$as_me:$LINENO: checking for $ac_header" >&5
22200 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
22201 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
22202 echo $ECHO_N "(cached) $ECHO_C" >&6
22203 else
22204 eval "$as_ac_Header=\$ac_header_preproc"
22206 ac_res=`eval echo '${'$as_ac_Header'}'`
22207 { echo "$as_me:$LINENO: result: $ac_res" >&5
22208 echo "${ECHO_T}$ac_res" >&6; }
22211 if test `eval echo '${'$as_ac_Header'}'` = yes; then
22212 cat >>confdefs.h <<_ACEOF
22213 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
22214 _ACEOF
22218 done
22222 done
22226 done
22230 for ac_header in com_err.h
22232 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
22233 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
22234 { echo "$as_me:$LINENO: checking for $ac_header" >&5
22235 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
22236 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
22237 echo $ECHO_N "(cached) $ECHO_C" >&6
22239 ac_res=`eval echo '${'$as_ac_Header'}'`
22240 { echo "$as_me:$LINENO: result: $ac_res" >&5
22241 echo "${ECHO_T}$ac_res" >&6; }
22242 else
22243 # Is the header compilable?
22244 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
22245 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
22246 cat >conftest.$ac_ext <<_ACEOF
22247 /* confdefs.h. */
22248 _ACEOF
22249 cat confdefs.h >>conftest.$ac_ext
22250 cat >>conftest.$ac_ext <<_ACEOF
22251 /* end confdefs.h. */
22252 $ac_includes_default
22253 #include <$ac_header>
22254 _ACEOF
22255 rm -f conftest.$ac_objext
22256 if { (ac_try="$ac_compile"
22257 case "(($ac_try" in
22258 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22259 *) ac_try_echo=$ac_try;;
22260 esac
22261 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22262 (eval "$ac_compile") 2>conftest.er1
22263 ac_status=$?
22264 grep -v '^ *+' conftest.er1 >conftest.err
22265 rm -f conftest.er1
22266 cat conftest.err >&5
22267 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22268 (exit $ac_status); } && {
22269 test -z "$ac_c_werror_flag" ||
22270 test ! -s conftest.err
22271 } && test -s conftest.$ac_objext; then
22272 ac_header_compiler=yes
22273 else
22274 echo "$as_me: failed program was:" >&5
22275 sed 's/^/| /' conftest.$ac_ext >&5
22277 ac_header_compiler=no
22280 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22281 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
22282 echo "${ECHO_T}$ac_header_compiler" >&6; }
22284 # Is the header present?
22285 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
22286 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
22287 cat >conftest.$ac_ext <<_ACEOF
22288 /* confdefs.h. */
22289 _ACEOF
22290 cat confdefs.h >>conftest.$ac_ext
22291 cat >>conftest.$ac_ext <<_ACEOF
22292 /* end confdefs.h. */
22293 #include <$ac_header>
22294 _ACEOF
22295 if { (ac_try="$ac_cpp conftest.$ac_ext"
22296 case "(($ac_try" in
22297 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22298 *) ac_try_echo=$ac_try;;
22299 esac
22300 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22301 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
22302 ac_status=$?
22303 grep -v '^ *+' conftest.er1 >conftest.err
22304 rm -f conftest.er1
22305 cat conftest.err >&5
22306 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22307 (exit $ac_status); } >/dev/null && {
22308 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
22309 test ! -s conftest.err
22310 }; then
22311 ac_header_preproc=yes
22312 else
22313 echo "$as_me: failed program was:" >&5
22314 sed 's/^/| /' conftest.$ac_ext >&5
22316 ac_header_preproc=no
22319 rm -f conftest.err conftest.$ac_ext
22320 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
22321 echo "${ECHO_T}$ac_header_preproc" >&6; }
22323 # So? What about this header?
22324 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
22325 yes:no: )
22326 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
22327 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
22328 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
22329 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
22330 ac_header_preproc=yes
22332 no:yes:* )
22333 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
22334 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
22335 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
22336 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
22337 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
22338 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
22339 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
22340 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
22341 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
22342 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
22343 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
22344 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
22347 esac
22348 { echo "$as_me:$LINENO: checking for $ac_header" >&5
22349 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
22350 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
22351 echo $ECHO_N "(cached) $ECHO_C" >&6
22352 else
22353 eval "$as_ac_Header=\$ac_header_preproc"
22355 ac_res=`eval echo '${'$as_ac_Header'}'`
22356 { echo "$as_me:$LINENO: result: $ac_res" >&5
22357 echo "${ECHO_T}$ac_res" >&6; }
22360 if test `eval echo '${'$as_ac_Header'}'` = yes; then
22361 cat >>confdefs.h <<_ACEOF
22362 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
22363 _ACEOF
22367 done
22371 # Solaris requires -lintl if you want strerror (which calls dgettext)
22372 # to return localized messages.
22374 { echo "$as_me:$LINENO: checking for dgettext in -lintl" >&5
22375 echo $ECHO_N "checking for dgettext in -lintl... $ECHO_C" >&6; }
22376 if test "${ac_cv_lib_intl_dgettext+set}" = set; then
22377 echo $ECHO_N "(cached) $ECHO_C" >&6
22378 else
22379 ac_check_lib_save_LIBS=$LIBS
22380 LIBS="-lintl $LIBS"
22381 cat >conftest.$ac_ext <<_ACEOF
22382 /* confdefs.h. */
22383 _ACEOF
22384 cat confdefs.h >>conftest.$ac_ext
22385 cat >>conftest.$ac_ext <<_ACEOF
22386 /* end confdefs.h. */
22388 /* Override any GCC internal prototype to avoid an error.
22389 Use char because int might match the return type of a GCC
22390 builtin and then its argument prototype would still apply. */
22391 #ifdef __cplusplus
22392 extern "C"
22393 #endif
22394 char dgettext ();
22396 main ()
22398 return dgettext ();
22400 return 0;
22402 _ACEOF
22403 rm -f conftest.$ac_objext conftest$ac_exeext
22404 if { (ac_try="$ac_link"
22405 case "(($ac_try" in
22406 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22407 *) ac_try_echo=$ac_try;;
22408 esac
22409 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22410 (eval "$ac_link") 2>conftest.er1
22411 ac_status=$?
22412 grep -v '^ *+' conftest.er1 >conftest.err
22413 rm -f conftest.er1
22414 cat conftest.err >&5
22415 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22416 (exit $ac_status); } && {
22417 test -z "$ac_c_werror_flag" ||
22418 test ! -s conftest.err
22419 } && test -s conftest$ac_exeext &&
22420 $as_test_x conftest$ac_exeext; then
22421 ac_cv_lib_intl_dgettext=yes
22422 else
22423 echo "$as_me: failed program was:" >&5
22424 sed 's/^/| /' conftest.$ac_ext >&5
22426 ac_cv_lib_intl_dgettext=no
22429 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
22430 conftest$ac_exeext conftest.$ac_ext
22431 LIBS=$ac_check_lib_save_LIBS
22433 { echo "$as_me:$LINENO: result: $ac_cv_lib_intl_dgettext" >&5
22434 echo "${ECHO_T}$ac_cv_lib_intl_dgettext" >&6; }
22435 if test $ac_cv_lib_intl_dgettext = yes; then
22436 cat >>confdefs.h <<_ACEOF
22437 #define HAVE_LIBINTL 1
22438 _ACEOF
22440 LIBS="-lintl $LIBS"
22445 { echo "$as_me:$LINENO: checking whether localtime caches TZ" >&5
22446 echo $ECHO_N "checking whether localtime caches TZ... $ECHO_C" >&6; }
22447 if test "${emacs_cv_localtime_cache+set}" = set; then
22448 echo $ECHO_N "(cached) $ECHO_C" >&6
22449 else
22450 if test x$ac_cv_func_tzset = xyes; then
22451 if test "$cross_compiling" = yes; then
22452 # If we have tzset, assume the worst when cross-compiling.
22453 emacs_cv_localtime_cache=yes
22454 else
22455 cat >conftest.$ac_ext <<_ACEOF
22456 /* confdefs.h. */
22457 _ACEOF
22458 cat confdefs.h >>conftest.$ac_ext
22459 cat >>conftest.$ac_ext <<_ACEOF
22460 /* end confdefs.h. */
22461 #include <time.h>
22462 extern char **environ;
22463 unset_TZ ()
22465 char **from, **to;
22466 for (to = from = environ; (*to = *from); from++)
22467 if (! (to[0][0] == 'T' && to[0][1] == 'Z' && to[0][2] == '='))
22468 to++;
22470 char TZ_GMT0[] = "TZ=GMT0";
22471 char TZ_PST8[] = "TZ=PST8";
22472 main()
22474 time_t now = time ((time_t *) 0);
22475 int hour_GMT0, hour_unset;
22476 if (putenv (TZ_GMT0) != 0)
22477 exit (1);
22478 hour_GMT0 = localtime (&now)->tm_hour;
22479 unset_TZ ();
22480 hour_unset = localtime (&now)->tm_hour;
22481 if (putenv (TZ_PST8) != 0)
22482 exit (1);
22483 if (localtime (&now)->tm_hour == hour_GMT0)
22484 exit (1);
22485 unset_TZ ();
22486 if (localtime (&now)->tm_hour != hour_unset)
22487 exit (1);
22488 exit (0);
22490 _ACEOF
22491 rm -f conftest$ac_exeext
22492 if { (ac_try="$ac_link"
22493 case "(($ac_try" in
22494 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22495 *) ac_try_echo=$ac_try;;
22496 esac
22497 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22498 (eval "$ac_link") 2>&5
22499 ac_status=$?
22500 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22501 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
22502 { (case "(($ac_try" in
22503 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22504 *) ac_try_echo=$ac_try;;
22505 esac
22506 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22507 (eval "$ac_try") 2>&5
22508 ac_status=$?
22509 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22510 (exit $ac_status); }; }; then
22511 emacs_cv_localtime_cache=no
22512 else
22513 echo "$as_me: program exited with status $ac_status" >&5
22514 echo "$as_me: failed program was:" >&5
22515 sed 's/^/| /' conftest.$ac_ext >&5
22517 ( exit $ac_status )
22518 emacs_cv_localtime_cache=yes
22520 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
22524 else
22525 # If we lack tzset, report that localtime does not cache TZ,
22526 # since we can't invalidate the cache if we don't have tzset.
22527 emacs_cv_localtime_cache=no
22530 { echo "$as_me:$LINENO: result: $emacs_cv_localtime_cache" >&5
22531 echo "${ECHO_T}$emacs_cv_localtime_cache" >&6; }
22532 if test $emacs_cv_localtime_cache = yes; then
22534 cat >>confdefs.h <<\_ACEOF
22535 #define LOCALTIME_CACHE 1
22536 _ACEOF
22540 if test "x$HAVE_TIMEVAL" = xyes; then
22542 for ac_func in gettimeofday
22544 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
22545 { echo "$as_me:$LINENO: checking for $ac_func" >&5
22546 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
22547 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
22548 echo $ECHO_N "(cached) $ECHO_C" >&6
22549 else
22550 cat >conftest.$ac_ext <<_ACEOF
22551 /* confdefs.h. */
22552 _ACEOF
22553 cat confdefs.h >>conftest.$ac_ext
22554 cat >>conftest.$ac_ext <<_ACEOF
22555 /* end confdefs.h. */
22556 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
22557 For example, HP-UX 11i <limits.h> declares gettimeofday. */
22558 #define $ac_func innocuous_$ac_func
22560 /* System header to define __stub macros and hopefully few prototypes,
22561 which can conflict with char $ac_func (); below.
22562 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
22563 <limits.h> exists even on freestanding compilers. */
22565 #ifdef __STDC__
22566 # include <limits.h>
22567 #else
22568 # include <assert.h>
22569 #endif
22571 #undef $ac_func
22573 /* Override any GCC internal prototype to avoid an error.
22574 Use char because int might match the return type of a GCC
22575 builtin and then its argument prototype would still apply. */
22576 #ifdef __cplusplus
22577 extern "C"
22578 #endif
22579 char $ac_func ();
22580 /* The GNU C library defines this for functions which it implements
22581 to always fail with ENOSYS. Some functions are actually named
22582 something starting with __ and the normal name is an alias. */
22583 #if defined __stub_$ac_func || defined __stub___$ac_func
22584 choke me
22585 #endif
22588 main ()
22590 return $ac_func ();
22592 return 0;
22594 _ACEOF
22595 rm -f conftest.$ac_objext conftest$ac_exeext
22596 if { (ac_try="$ac_link"
22597 case "(($ac_try" in
22598 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22599 *) ac_try_echo=$ac_try;;
22600 esac
22601 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22602 (eval "$ac_link") 2>conftest.er1
22603 ac_status=$?
22604 grep -v '^ *+' conftest.er1 >conftest.err
22605 rm -f conftest.er1
22606 cat conftest.err >&5
22607 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22608 (exit $ac_status); } && {
22609 test -z "$ac_c_werror_flag" ||
22610 test ! -s conftest.err
22611 } && test -s conftest$ac_exeext &&
22612 $as_test_x conftest$ac_exeext; then
22613 eval "$as_ac_var=yes"
22614 else
22615 echo "$as_me: failed program was:" >&5
22616 sed 's/^/| /' conftest.$ac_ext >&5
22618 eval "$as_ac_var=no"
22621 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
22622 conftest$ac_exeext conftest.$ac_ext
22624 ac_res=`eval echo '${'$as_ac_var'}'`
22625 { echo "$as_me:$LINENO: result: $ac_res" >&5
22626 echo "${ECHO_T}$ac_res" >&6; }
22627 if test `eval echo '${'$as_ac_var'}'` = yes; then
22628 cat >>confdefs.h <<_ACEOF
22629 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
22630 _ACEOF
22633 done
22635 if test $ac_cv_func_gettimeofday = yes; then
22636 { echo "$as_me:$LINENO: checking whether gettimeofday can accept two arguments" >&5
22637 echo $ECHO_N "checking whether gettimeofday can accept two arguments... $ECHO_C" >&6; }
22638 if test "${emacs_cv_gettimeofday_two_arguments+set}" = set; then
22639 echo $ECHO_N "(cached) $ECHO_C" >&6
22640 else
22641 cat >conftest.$ac_ext <<_ACEOF
22642 /* confdefs.h. */
22643 _ACEOF
22644 cat confdefs.h >>conftest.$ac_ext
22645 cat >>conftest.$ac_ext <<_ACEOF
22646 /* end confdefs.h. */
22648 #ifdef TIME_WITH_SYS_TIME
22649 #include <sys/time.h>
22650 #include <time.h>
22651 #else
22652 #ifdef HAVE_SYS_TIME_H
22653 #include <sys/time.h>
22654 #else
22655 #include <time.h>
22656 #endif
22657 #endif
22659 main ()
22661 struct timeval time;
22662 gettimeofday (&time, 0);
22664 return 0;
22666 _ACEOF
22667 rm -f conftest.$ac_objext
22668 if { (ac_try="$ac_compile"
22669 case "(($ac_try" in
22670 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22671 *) ac_try_echo=$ac_try;;
22672 esac
22673 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22674 (eval "$ac_compile") 2>conftest.er1
22675 ac_status=$?
22676 grep -v '^ *+' conftest.er1 >conftest.err
22677 rm -f conftest.er1
22678 cat conftest.err >&5
22679 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22680 (exit $ac_status); } && {
22681 test -z "$ac_c_werror_flag" ||
22682 test ! -s conftest.err
22683 } && test -s conftest.$ac_objext; then
22684 emacs_cv_gettimeofday_two_arguments=yes
22685 else
22686 echo "$as_me: failed program was:" >&5
22687 sed 's/^/| /' conftest.$ac_ext >&5
22689 emacs_cv_gettimeofday_two_arguments=no
22692 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22694 { echo "$as_me:$LINENO: result: $emacs_cv_gettimeofday_two_arguments" >&5
22695 echo "${ECHO_T}$emacs_cv_gettimeofday_two_arguments" >&6; }
22696 if test $emacs_cv_gettimeofday_two_arguments = no; then
22698 cat >>confdefs.h <<\_ACEOF
22699 #define GETTIMEOFDAY_ONE_ARGUMENT 1
22700 _ACEOF
22706 ok_so_far=yes
22707 { echo "$as_me:$LINENO: checking for socket" >&5
22708 echo $ECHO_N "checking for socket... $ECHO_C" >&6; }
22709 if test "${ac_cv_func_socket+set}" = set; then
22710 echo $ECHO_N "(cached) $ECHO_C" >&6
22711 else
22712 cat >conftest.$ac_ext <<_ACEOF
22713 /* confdefs.h. */
22714 _ACEOF
22715 cat confdefs.h >>conftest.$ac_ext
22716 cat >>conftest.$ac_ext <<_ACEOF
22717 /* end confdefs.h. */
22718 /* Define socket to an innocuous variant, in case <limits.h> declares socket.
22719 For example, HP-UX 11i <limits.h> declares gettimeofday. */
22720 #define socket innocuous_socket
22722 /* System header to define __stub macros and hopefully few prototypes,
22723 which can conflict with char socket (); below.
22724 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
22725 <limits.h> exists even on freestanding compilers. */
22727 #ifdef __STDC__
22728 # include <limits.h>
22729 #else
22730 # include <assert.h>
22731 #endif
22733 #undef socket
22735 /* Override any GCC internal prototype to avoid an error.
22736 Use char because int might match the return type of a GCC
22737 builtin and then its argument prototype would still apply. */
22738 #ifdef __cplusplus
22739 extern "C"
22740 #endif
22741 char socket ();
22742 /* The GNU C library defines this for functions which it implements
22743 to always fail with ENOSYS. Some functions are actually named
22744 something starting with __ and the normal name is an alias. */
22745 #if defined __stub_socket || defined __stub___socket
22746 choke me
22747 #endif
22750 main ()
22752 return socket ();
22754 return 0;
22756 _ACEOF
22757 rm -f conftest.$ac_objext conftest$ac_exeext
22758 if { (ac_try="$ac_link"
22759 case "(($ac_try" in
22760 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22761 *) ac_try_echo=$ac_try;;
22762 esac
22763 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22764 (eval "$ac_link") 2>conftest.er1
22765 ac_status=$?
22766 grep -v '^ *+' conftest.er1 >conftest.err
22767 rm -f conftest.er1
22768 cat conftest.err >&5
22769 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22770 (exit $ac_status); } && {
22771 test -z "$ac_c_werror_flag" ||
22772 test ! -s conftest.err
22773 } && test -s conftest$ac_exeext &&
22774 $as_test_x conftest$ac_exeext; then
22775 ac_cv_func_socket=yes
22776 else
22777 echo "$as_me: failed program was:" >&5
22778 sed 's/^/| /' conftest.$ac_ext >&5
22780 ac_cv_func_socket=no
22783 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
22784 conftest$ac_exeext conftest.$ac_ext
22786 { echo "$as_me:$LINENO: result: $ac_cv_func_socket" >&5
22787 echo "${ECHO_T}$ac_cv_func_socket" >&6; }
22788 if test $ac_cv_func_socket = yes; then
22790 else
22791 ok_so_far=no
22794 if test $ok_so_far = yes; then
22795 if test "${ac_cv_header_netinet_in_h+set}" = set; then
22796 { echo "$as_me:$LINENO: checking for netinet/in.h" >&5
22797 echo $ECHO_N "checking for netinet/in.h... $ECHO_C" >&6; }
22798 if test "${ac_cv_header_netinet_in_h+set}" = set; then
22799 echo $ECHO_N "(cached) $ECHO_C" >&6
22801 { echo "$as_me:$LINENO: result: $ac_cv_header_netinet_in_h" >&5
22802 echo "${ECHO_T}$ac_cv_header_netinet_in_h" >&6; }
22803 else
22804 # Is the header compilable?
22805 { echo "$as_me:$LINENO: checking netinet/in.h usability" >&5
22806 echo $ECHO_N "checking netinet/in.h usability... $ECHO_C" >&6; }
22807 cat >conftest.$ac_ext <<_ACEOF
22808 /* confdefs.h. */
22809 _ACEOF
22810 cat confdefs.h >>conftest.$ac_ext
22811 cat >>conftest.$ac_ext <<_ACEOF
22812 /* end confdefs.h. */
22813 $ac_includes_default
22814 #include <netinet/in.h>
22815 _ACEOF
22816 rm -f conftest.$ac_objext
22817 if { (ac_try="$ac_compile"
22818 case "(($ac_try" in
22819 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22820 *) ac_try_echo=$ac_try;;
22821 esac
22822 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22823 (eval "$ac_compile") 2>conftest.er1
22824 ac_status=$?
22825 grep -v '^ *+' conftest.er1 >conftest.err
22826 rm -f conftest.er1
22827 cat conftest.err >&5
22828 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22829 (exit $ac_status); } && {
22830 test -z "$ac_c_werror_flag" ||
22831 test ! -s conftest.err
22832 } && test -s conftest.$ac_objext; then
22833 ac_header_compiler=yes
22834 else
22835 echo "$as_me: failed program was:" >&5
22836 sed 's/^/| /' conftest.$ac_ext >&5
22838 ac_header_compiler=no
22841 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22842 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
22843 echo "${ECHO_T}$ac_header_compiler" >&6; }
22845 # Is the header present?
22846 { echo "$as_me:$LINENO: checking netinet/in.h presence" >&5
22847 echo $ECHO_N "checking netinet/in.h presence... $ECHO_C" >&6; }
22848 cat >conftest.$ac_ext <<_ACEOF
22849 /* confdefs.h. */
22850 _ACEOF
22851 cat confdefs.h >>conftest.$ac_ext
22852 cat >>conftest.$ac_ext <<_ACEOF
22853 /* end confdefs.h. */
22854 #include <netinet/in.h>
22855 _ACEOF
22856 if { (ac_try="$ac_cpp conftest.$ac_ext"
22857 case "(($ac_try" in
22858 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22859 *) ac_try_echo=$ac_try;;
22860 esac
22861 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22862 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
22863 ac_status=$?
22864 grep -v '^ *+' conftest.er1 >conftest.err
22865 rm -f conftest.er1
22866 cat conftest.err >&5
22867 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22868 (exit $ac_status); } >/dev/null && {
22869 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
22870 test ! -s conftest.err
22871 }; then
22872 ac_header_preproc=yes
22873 else
22874 echo "$as_me: failed program was:" >&5
22875 sed 's/^/| /' conftest.$ac_ext >&5
22877 ac_header_preproc=no
22880 rm -f conftest.err conftest.$ac_ext
22881 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
22882 echo "${ECHO_T}$ac_header_preproc" >&6; }
22884 # So? What about this header?
22885 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
22886 yes:no: )
22887 { echo "$as_me:$LINENO: WARNING: netinet/in.h: accepted by the compiler, rejected by the preprocessor!" >&5
22888 echo "$as_me: WARNING: netinet/in.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
22889 { echo "$as_me:$LINENO: WARNING: netinet/in.h: proceeding with the compiler's result" >&5
22890 echo "$as_me: WARNING: netinet/in.h: proceeding with the compiler's result" >&2;}
22891 ac_header_preproc=yes
22893 no:yes:* )
22894 { echo "$as_me:$LINENO: WARNING: netinet/in.h: present but cannot be compiled" >&5
22895 echo "$as_me: WARNING: netinet/in.h: present but cannot be compiled" >&2;}
22896 { echo "$as_me:$LINENO: WARNING: netinet/in.h: check for missing prerequisite headers?" >&5
22897 echo "$as_me: WARNING: netinet/in.h: check for missing prerequisite headers?" >&2;}
22898 { echo "$as_me:$LINENO: WARNING: netinet/in.h: see the Autoconf documentation" >&5
22899 echo "$as_me: WARNING: netinet/in.h: see the Autoconf documentation" >&2;}
22900 { echo "$as_me:$LINENO: WARNING: netinet/in.h: section \"Present But Cannot Be Compiled\"" >&5
22901 echo "$as_me: WARNING: netinet/in.h: section \"Present But Cannot Be Compiled\"" >&2;}
22902 { echo "$as_me:$LINENO: WARNING: netinet/in.h: proceeding with the preprocessor's result" >&5
22903 echo "$as_me: WARNING: netinet/in.h: proceeding with the preprocessor's result" >&2;}
22904 { echo "$as_me:$LINENO: WARNING: netinet/in.h: in the future, the compiler will take precedence" >&5
22905 echo "$as_me: WARNING: netinet/in.h: in the future, the compiler will take precedence" >&2;}
22908 esac
22909 { echo "$as_me:$LINENO: checking for netinet/in.h" >&5
22910 echo $ECHO_N "checking for netinet/in.h... $ECHO_C" >&6; }
22911 if test "${ac_cv_header_netinet_in_h+set}" = set; then
22912 echo $ECHO_N "(cached) $ECHO_C" >&6
22913 else
22914 ac_cv_header_netinet_in_h=$ac_header_preproc
22916 { echo "$as_me:$LINENO: result: $ac_cv_header_netinet_in_h" >&5
22917 echo "${ECHO_T}$ac_cv_header_netinet_in_h" >&6; }
22920 if test $ac_cv_header_netinet_in_h = yes; then
22922 else
22923 ok_so_far=no
22928 if test $ok_so_far = yes; then
22929 if test "${ac_cv_header_arpa_inet_h+set}" = set; then
22930 { echo "$as_me:$LINENO: checking for arpa/inet.h" >&5
22931 echo $ECHO_N "checking for arpa/inet.h... $ECHO_C" >&6; }
22932 if test "${ac_cv_header_arpa_inet_h+set}" = set; then
22933 echo $ECHO_N "(cached) $ECHO_C" >&6
22935 { echo "$as_me:$LINENO: result: $ac_cv_header_arpa_inet_h" >&5
22936 echo "${ECHO_T}$ac_cv_header_arpa_inet_h" >&6; }
22937 else
22938 # Is the header compilable?
22939 { echo "$as_me:$LINENO: checking arpa/inet.h usability" >&5
22940 echo $ECHO_N "checking arpa/inet.h usability... $ECHO_C" >&6; }
22941 cat >conftest.$ac_ext <<_ACEOF
22942 /* confdefs.h. */
22943 _ACEOF
22944 cat confdefs.h >>conftest.$ac_ext
22945 cat >>conftest.$ac_ext <<_ACEOF
22946 /* end confdefs.h. */
22947 $ac_includes_default
22948 #include <arpa/inet.h>
22949 _ACEOF
22950 rm -f conftest.$ac_objext
22951 if { (ac_try="$ac_compile"
22952 case "(($ac_try" in
22953 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22954 *) ac_try_echo=$ac_try;;
22955 esac
22956 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22957 (eval "$ac_compile") 2>conftest.er1
22958 ac_status=$?
22959 grep -v '^ *+' conftest.er1 >conftest.err
22960 rm -f conftest.er1
22961 cat conftest.err >&5
22962 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22963 (exit $ac_status); } && {
22964 test -z "$ac_c_werror_flag" ||
22965 test ! -s conftest.err
22966 } && test -s conftest.$ac_objext; then
22967 ac_header_compiler=yes
22968 else
22969 echo "$as_me: failed program was:" >&5
22970 sed 's/^/| /' conftest.$ac_ext >&5
22972 ac_header_compiler=no
22975 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22976 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
22977 echo "${ECHO_T}$ac_header_compiler" >&6; }
22979 # Is the header present?
22980 { echo "$as_me:$LINENO: checking arpa/inet.h presence" >&5
22981 echo $ECHO_N "checking arpa/inet.h presence... $ECHO_C" >&6; }
22982 cat >conftest.$ac_ext <<_ACEOF
22983 /* confdefs.h. */
22984 _ACEOF
22985 cat confdefs.h >>conftest.$ac_ext
22986 cat >>conftest.$ac_ext <<_ACEOF
22987 /* end confdefs.h. */
22988 #include <arpa/inet.h>
22989 _ACEOF
22990 if { (ac_try="$ac_cpp conftest.$ac_ext"
22991 case "(($ac_try" in
22992 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22993 *) ac_try_echo=$ac_try;;
22994 esac
22995 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22996 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
22997 ac_status=$?
22998 grep -v '^ *+' conftest.er1 >conftest.err
22999 rm -f conftest.er1
23000 cat conftest.err >&5
23001 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23002 (exit $ac_status); } >/dev/null && {
23003 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
23004 test ! -s conftest.err
23005 }; then
23006 ac_header_preproc=yes
23007 else
23008 echo "$as_me: failed program was:" >&5
23009 sed 's/^/| /' conftest.$ac_ext >&5
23011 ac_header_preproc=no
23014 rm -f conftest.err conftest.$ac_ext
23015 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
23016 echo "${ECHO_T}$ac_header_preproc" >&6; }
23018 # So? What about this header?
23019 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
23020 yes:no: )
23021 { echo "$as_me:$LINENO: WARNING: arpa/inet.h: accepted by the compiler, rejected by the preprocessor!" >&5
23022 echo "$as_me: WARNING: arpa/inet.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
23023 { echo "$as_me:$LINENO: WARNING: arpa/inet.h: proceeding with the compiler's result" >&5
23024 echo "$as_me: WARNING: arpa/inet.h: proceeding with the compiler's result" >&2;}
23025 ac_header_preproc=yes
23027 no:yes:* )
23028 { echo "$as_me:$LINENO: WARNING: arpa/inet.h: present but cannot be compiled" >&5
23029 echo "$as_me: WARNING: arpa/inet.h: present but cannot be compiled" >&2;}
23030 { echo "$as_me:$LINENO: WARNING: arpa/inet.h: check for missing prerequisite headers?" >&5
23031 echo "$as_me: WARNING: arpa/inet.h: check for missing prerequisite headers?" >&2;}
23032 { echo "$as_me:$LINENO: WARNING: arpa/inet.h: see the Autoconf documentation" >&5
23033 echo "$as_me: WARNING: arpa/inet.h: see the Autoconf documentation" >&2;}
23034 { echo "$as_me:$LINENO: WARNING: arpa/inet.h: section \"Present But Cannot Be Compiled\"" >&5
23035 echo "$as_me: WARNING: arpa/inet.h: section \"Present But Cannot Be Compiled\"" >&2;}
23036 { echo "$as_me:$LINENO: WARNING: arpa/inet.h: proceeding with the preprocessor's result" >&5
23037 echo "$as_me: WARNING: arpa/inet.h: proceeding with the preprocessor's result" >&2;}
23038 { echo "$as_me:$LINENO: WARNING: arpa/inet.h: in the future, the compiler will take precedence" >&5
23039 echo "$as_me: WARNING: arpa/inet.h: in the future, the compiler will take precedence" >&2;}
23042 esac
23043 { echo "$as_me:$LINENO: checking for arpa/inet.h" >&5
23044 echo $ECHO_N "checking for arpa/inet.h... $ECHO_C" >&6; }
23045 if test "${ac_cv_header_arpa_inet_h+set}" = set; then
23046 echo $ECHO_N "(cached) $ECHO_C" >&6
23047 else
23048 ac_cv_header_arpa_inet_h=$ac_header_preproc
23050 { echo "$as_me:$LINENO: result: $ac_cv_header_arpa_inet_h" >&5
23051 echo "${ECHO_T}$ac_cv_header_arpa_inet_h" >&6; }
23054 if test $ac_cv_header_arpa_inet_h = yes; then
23056 else
23057 ok_so_far=no
23062 if test $ok_so_far = yes; then
23064 cat >>confdefs.h <<\_ACEOF
23065 #define HAVE_INET_SOCKETS 1
23066 _ACEOF
23071 for ac_header in sys/ioctl.h
23073 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
23074 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
23075 { echo "$as_me:$LINENO: checking for $ac_header" >&5
23076 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
23077 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
23078 echo $ECHO_N "(cached) $ECHO_C" >&6
23080 ac_res=`eval echo '${'$as_ac_Header'}'`
23081 { echo "$as_me:$LINENO: result: $ac_res" >&5
23082 echo "${ECHO_T}$ac_res" >&6; }
23083 else
23084 # Is the header compilable?
23085 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
23086 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
23087 cat >conftest.$ac_ext <<_ACEOF
23088 /* confdefs.h. */
23089 _ACEOF
23090 cat confdefs.h >>conftest.$ac_ext
23091 cat >>conftest.$ac_ext <<_ACEOF
23092 /* end confdefs.h. */
23093 $ac_includes_default
23094 #include <$ac_header>
23095 _ACEOF
23096 rm -f conftest.$ac_objext
23097 if { (ac_try="$ac_compile"
23098 case "(($ac_try" in
23099 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23100 *) ac_try_echo=$ac_try;;
23101 esac
23102 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23103 (eval "$ac_compile") 2>conftest.er1
23104 ac_status=$?
23105 grep -v '^ *+' conftest.er1 >conftest.err
23106 rm -f conftest.er1
23107 cat conftest.err >&5
23108 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23109 (exit $ac_status); } && {
23110 test -z "$ac_c_werror_flag" ||
23111 test ! -s conftest.err
23112 } && test -s conftest.$ac_objext; then
23113 ac_header_compiler=yes
23114 else
23115 echo "$as_me: failed program was:" >&5
23116 sed 's/^/| /' conftest.$ac_ext >&5
23118 ac_header_compiler=no
23121 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23122 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
23123 echo "${ECHO_T}$ac_header_compiler" >&6; }
23125 # Is the header present?
23126 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
23127 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
23128 cat >conftest.$ac_ext <<_ACEOF
23129 /* confdefs.h. */
23130 _ACEOF
23131 cat confdefs.h >>conftest.$ac_ext
23132 cat >>conftest.$ac_ext <<_ACEOF
23133 /* end confdefs.h. */
23134 #include <$ac_header>
23135 _ACEOF
23136 if { (ac_try="$ac_cpp conftest.$ac_ext"
23137 case "(($ac_try" in
23138 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23139 *) ac_try_echo=$ac_try;;
23140 esac
23141 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23142 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
23143 ac_status=$?
23144 grep -v '^ *+' conftest.er1 >conftest.err
23145 rm -f conftest.er1
23146 cat conftest.err >&5
23147 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23148 (exit $ac_status); } >/dev/null && {
23149 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
23150 test ! -s conftest.err
23151 }; then
23152 ac_header_preproc=yes
23153 else
23154 echo "$as_me: failed program was:" >&5
23155 sed 's/^/| /' conftest.$ac_ext >&5
23157 ac_header_preproc=no
23160 rm -f conftest.err conftest.$ac_ext
23161 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
23162 echo "${ECHO_T}$ac_header_preproc" >&6; }
23164 # So? What about this header?
23165 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
23166 yes:no: )
23167 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
23168 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
23169 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
23170 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
23171 ac_header_preproc=yes
23173 no:yes:* )
23174 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
23175 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
23176 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
23177 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
23178 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
23179 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
23180 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
23181 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
23182 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
23183 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
23184 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
23185 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
23188 esac
23189 { echo "$as_me:$LINENO: checking for $ac_header" >&5
23190 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
23191 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
23192 echo $ECHO_N "(cached) $ECHO_C" >&6
23193 else
23194 eval "$as_ac_Header=\$ac_header_preproc"
23196 ac_res=`eval echo '${'$as_ac_Header'}'`
23197 { echo "$as_me:$LINENO: result: $ac_res" >&5
23198 echo "${ECHO_T}$ac_res" >&6; }
23201 if test `eval echo '${'$as_ac_Header'}'` = yes; then
23202 cat >>confdefs.h <<_ACEOF
23203 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
23204 _ACEOF
23208 done
23211 if test -f /usr/lpp/X11/bin/smt.exp; then
23213 cat >>confdefs.h <<\_ACEOF
23214 #define HAVE_AIX_SMT_EXP 1
23215 _ACEOF
23219 { echo "$as_me:$LINENO: checking whether system supports dynamic ptys" >&5
23220 echo $ECHO_N "checking whether system supports dynamic ptys... $ECHO_C" >&6; }
23221 if test -d /dev/pts && ls -d /dev/ptmx > /dev/null 2>&1 ; then
23222 { echo "$as_me:$LINENO: result: yes" >&5
23223 echo "${ECHO_T}yes" >&6; }
23225 cat >>confdefs.h <<\_ACEOF
23226 #define HAVE_DEV_PTMX 1
23227 _ACEOF
23229 else
23230 { echo "$as_me:$LINENO: result: no" >&5
23231 echo "${ECHO_T}no" >&6; }
23234 { echo "$as_me:$LINENO: checking for pid_t" >&5
23235 echo $ECHO_N "checking for pid_t... $ECHO_C" >&6; }
23236 if test "${ac_cv_type_pid_t+set}" = set; then
23237 echo $ECHO_N "(cached) $ECHO_C" >&6
23238 else
23239 cat >conftest.$ac_ext <<_ACEOF
23240 /* confdefs.h. */
23241 _ACEOF
23242 cat confdefs.h >>conftest.$ac_ext
23243 cat >>conftest.$ac_ext <<_ACEOF
23244 /* end confdefs.h. */
23245 $ac_includes_default
23246 typedef pid_t ac__type_new_;
23248 main ()
23250 if ((ac__type_new_ *) 0)
23251 return 0;
23252 if (sizeof (ac__type_new_))
23253 return 0;
23255 return 0;
23257 _ACEOF
23258 rm -f conftest.$ac_objext
23259 if { (ac_try="$ac_compile"
23260 case "(($ac_try" in
23261 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23262 *) ac_try_echo=$ac_try;;
23263 esac
23264 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23265 (eval "$ac_compile") 2>conftest.er1
23266 ac_status=$?
23267 grep -v '^ *+' conftest.er1 >conftest.err
23268 rm -f conftest.er1
23269 cat conftest.err >&5
23270 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23271 (exit $ac_status); } && {
23272 test -z "$ac_c_werror_flag" ||
23273 test ! -s conftest.err
23274 } && test -s conftest.$ac_objext; then
23275 ac_cv_type_pid_t=yes
23276 else
23277 echo "$as_me: failed program was:" >&5
23278 sed 's/^/| /' conftest.$ac_ext >&5
23280 ac_cv_type_pid_t=no
23283 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23285 { echo "$as_me:$LINENO: result: $ac_cv_type_pid_t" >&5
23286 echo "${ECHO_T}$ac_cv_type_pid_t" >&6; }
23287 if test $ac_cv_type_pid_t = yes; then
23289 else
23291 cat >>confdefs.h <<_ACEOF
23292 #define pid_t int
23293 _ACEOF
23298 for ac_header in vfork.h
23300 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
23301 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
23302 { echo "$as_me:$LINENO: checking for $ac_header" >&5
23303 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
23304 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
23305 echo $ECHO_N "(cached) $ECHO_C" >&6
23307 ac_res=`eval echo '${'$as_ac_Header'}'`
23308 { echo "$as_me:$LINENO: result: $ac_res" >&5
23309 echo "${ECHO_T}$ac_res" >&6; }
23310 else
23311 # Is the header compilable?
23312 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
23313 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
23314 cat >conftest.$ac_ext <<_ACEOF
23315 /* confdefs.h. */
23316 _ACEOF
23317 cat confdefs.h >>conftest.$ac_ext
23318 cat >>conftest.$ac_ext <<_ACEOF
23319 /* end confdefs.h. */
23320 $ac_includes_default
23321 #include <$ac_header>
23322 _ACEOF
23323 rm -f conftest.$ac_objext
23324 if { (ac_try="$ac_compile"
23325 case "(($ac_try" in
23326 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23327 *) ac_try_echo=$ac_try;;
23328 esac
23329 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23330 (eval "$ac_compile") 2>conftest.er1
23331 ac_status=$?
23332 grep -v '^ *+' conftest.er1 >conftest.err
23333 rm -f conftest.er1
23334 cat conftest.err >&5
23335 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23336 (exit $ac_status); } && {
23337 test -z "$ac_c_werror_flag" ||
23338 test ! -s conftest.err
23339 } && test -s conftest.$ac_objext; then
23340 ac_header_compiler=yes
23341 else
23342 echo "$as_me: failed program was:" >&5
23343 sed 's/^/| /' conftest.$ac_ext >&5
23345 ac_header_compiler=no
23348 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23349 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
23350 echo "${ECHO_T}$ac_header_compiler" >&6; }
23352 # Is the header present?
23353 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
23354 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
23355 cat >conftest.$ac_ext <<_ACEOF
23356 /* confdefs.h. */
23357 _ACEOF
23358 cat confdefs.h >>conftest.$ac_ext
23359 cat >>conftest.$ac_ext <<_ACEOF
23360 /* end confdefs.h. */
23361 #include <$ac_header>
23362 _ACEOF
23363 if { (ac_try="$ac_cpp conftest.$ac_ext"
23364 case "(($ac_try" in
23365 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23366 *) ac_try_echo=$ac_try;;
23367 esac
23368 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23369 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
23370 ac_status=$?
23371 grep -v '^ *+' conftest.er1 >conftest.err
23372 rm -f conftest.er1
23373 cat conftest.err >&5
23374 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23375 (exit $ac_status); } >/dev/null && {
23376 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
23377 test ! -s conftest.err
23378 }; then
23379 ac_header_preproc=yes
23380 else
23381 echo "$as_me: failed program was:" >&5
23382 sed 's/^/| /' conftest.$ac_ext >&5
23384 ac_header_preproc=no
23387 rm -f conftest.err conftest.$ac_ext
23388 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
23389 echo "${ECHO_T}$ac_header_preproc" >&6; }
23391 # So? What about this header?
23392 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
23393 yes:no: )
23394 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
23395 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
23396 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
23397 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
23398 ac_header_preproc=yes
23400 no:yes:* )
23401 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
23402 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
23403 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
23404 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
23405 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
23406 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
23407 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
23408 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
23409 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
23410 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
23411 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
23412 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
23415 esac
23416 { echo "$as_me:$LINENO: checking for $ac_header" >&5
23417 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
23418 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
23419 echo $ECHO_N "(cached) $ECHO_C" >&6
23420 else
23421 eval "$as_ac_Header=\$ac_header_preproc"
23423 ac_res=`eval echo '${'$as_ac_Header'}'`
23424 { echo "$as_me:$LINENO: result: $ac_res" >&5
23425 echo "${ECHO_T}$ac_res" >&6; }
23428 if test `eval echo '${'$as_ac_Header'}'` = yes; then
23429 cat >>confdefs.h <<_ACEOF
23430 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
23431 _ACEOF
23435 done
23439 for ac_func in fork vfork
23441 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
23442 { echo "$as_me:$LINENO: checking for $ac_func" >&5
23443 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
23444 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
23445 echo $ECHO_N "(cached) $ECHO_C" >&6
23446 else
23447 cat >conftest.$ac_ext <<_ACEOF
23448 /* confdefs.h. */
23449 _ACEOF
23450 cat confdefs.h >>conftest.$ac_ext
23451 cat >>conftest.$ac_ext <<_ACEOF
23452 /* end confdefs.h. */
23453 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
23454 For example, HP-UX 11i <limits.h> declares gettimeofday. */
23455 #define $ac_func innocuous_$ac_func
23457 /* System header to define __stub macros and hopefully few prototypes,
23458 which can conflict with char $ac_func (); below.
23459 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
23460 <limits.h> exists even on freestanding compilers. */
23462 #ifdef __STDC__
23463 # include <limits.h>
23464 #else
23465 # include <assert.h>
23466 #endif
23468 #undef $ac_func
23470 /* Override any GCC internal prototype to avoid an error.
23471 Use char because int might match the return type of a GCC
23472 builtin and then its argument prototype would still apply. */
23473 #ifdef __cplusplus
23474 extern "C"
23475 #endif
23476 char $ac_func ();
23477 /* The GNU C library defines this for functions which it implements
23478 to always fail with ENOSYS. Some functions are actually named
23479 something starting with __ and the normal name is an alias. */
23480 #if defined __stub_$ac_func || defined __stub___$ac_func
23481 choke me
23482 #endif
23485 main ()
23487 return $ac_func ();
23489 return 0;
23491 _ACEOF
23492 rm -f conftest.$ac_objext conftest$ac_exeext
23493 if { (ac_try="$ac_link"
23494 case "(($ac_try" in
23495 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23496 *) ac_try_echo=$ac_try;;
23497 esac
23498 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23499 (eval "$ac_link") 2>conftest.er1
23500 ac_status=$?
23501 grep -v '^ *+' conftest.er1 >conftest.err
23502 rm -f conftest.er1
23503 cat conftest.err >&5
23504 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23505 (exit $ac_status); } && {
23506 test -z "$ac_c_werror_flag" ||
23507 test ! -s conftest.err
23508 } && test -s conftest$ac_exeext &&
23509 $as_test_x conftest$ac_exeext; then
23510 eval "$as_ac_var=yes"
23511 else
23512 echo "$as_me: failed program was:" >&5
23513 sed 's/^/| /' conftest.$ac_ext >&5
23515 eval "$as_ac_var=no"
23518 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
23519 conftest$ac_exeext conftest.$ac_ext
23521 ac_res=`eval echo '${'$as_ac_var'}'`
23522 { echo "$as_me:$LINENO: result: $ac_res" >&5
23523 echo "${ECHO_T}$ac_res" >&6; }
23524 if test `eval echo '${'$as_ac_var'}'` = yes; then
23525 cat >>confdefs.h <<_ACEOF
23526 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
23527 _ACEOF
23530 done
23532 if test "x$ac_cv_func_fork" = xyes; then
23533 { echo "$as_me:$LINENO: checking for working fork" >&5
23534 echo $ECHO_N "checking for working fork... $ECHO_C" >&6; }
23535 if test "${ac_cv_func_fork_works+set}" = set; then
23536 echo $ECHO_N "(cached) $ECHO_C" >&6
23537 else
23538 if test "$cross_compiling" = yes; then
23539 ac_cv_func_fork_works=cross
23540 else
23541 cat >conftest.$ac_ext <<_ACEOF
23542 /* confdefs.h. */
23543 _ACEOF
23544 cat confdefs.h >>conftest.$ac_ext
23545 cat >>conftest.$ac_ext <<_ACEOF
23546 /* end confdefs.h. */
23547 $ac_includes_default
23549 main ()
23552 /* By Ruediger Kuhlmann. */
23553 return fork () < 0;
23556 return 0;
23558 _ACEOF
23559 rm -f conftest$ac_exeext
23560 if { (ac_try="$ac_link"
23561 case "(($ac_try" in
23562 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23563 *) ac_try_echo=$ac_try;;
23564 esac
23565 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23566 (eval "$ac_link") 2>&5
23567 ac_status=$?
23568 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23569 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
23570 { (case "(($ac_try" in
23571 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23572 *) ac_try_echo=$ac_try;;
23573 esac
23574 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23575 (eval "$ac_try") 2>&5
23576 ac_status=$?
23577 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23578 (exit $ac_status); }; }; then
23579 ac_cv_func_fork_works=yes
23580 else
23581 echo "$as_me: program exited with status $ac_status" >&5
23582 echo "$as_me: failed program was:" >&5
23583 sed 's/^/| /' conftest.$ac_ext >&5
23585 ( exit $ac_status )
23586 ac_cv_func_fork_works=no
23588 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
23593 { echo "$as_me:$LINENO: result: $ac_cv_func_fork_works" >&5
23594 echo "${ECHO_T}$ac_cv_func_fork_works" >&6; }
23596 else
23597 ac_cv_func_fork_works=$ac_cv_func_fork
23599 if test "x$ac_cv_func_fork_works" = xcross; then
23600 case $host in
23601 *-*-amigaos* | *-*-msdosdjgpp*)
23602 # Override, as these systems have only a dummy fork() stub
23603 ac_cv_func_fork_works=no
23606 ac_cv_func_fork_works=yes
23608 esac
23609 { echo "$as_me:$LINENO: WARNING: result $ac_cv_func_fork_works guessed because of cross compilation" >&5
23610 echo "$as_me: WARNING: result $ac_cv_func_fork_works guessed because of cross compilation" >&2;}
23612 ac_cv_func_vfork_works=$ac_cv_func_vfork
23613 if test "x$ac_cv_func_vfork" = xyes; then
23614 { echo "$as_me:$LINENO: checking for working vfork" >&5
23615 echo $ECHO_N "checking for working vfork... $ECHO_C" >&6; }
23616 if test "${ac_cv_func_vfork_works+set}" = set; then
23617 echo $ECHO_N "(cached) $ECHO_C" >&6
23618 else
23619 if test "$cross_compiling" = yes; then
23620 ac_cv_func_vfork_works=cross
23621 else
23622 cat >conftest.$ac_ext <<_ACEOF
23623 /* confdefs.h. */
23624 _ACEOF
23625 cat confdefs.h >>conftest.$ac_ext
23626 cat >>conftest.$ac_ext <<_ACEOF
23627 /* end confdefs.h. */
23628 /* Thanks to Paul Eggert for this test. */
23629 $ac_includes_default
23630 #include <sys/wait.h>
23631 #ifdef HAVE_VFORK_H
23632 # include <vfork.h>
23633 #endif
23634 /* On some sparc systems, changes by the child to local and incoming
23635 argument registers are propagated back to the parent. The compiler
23636 is told about this with #include <vfork.h>, but some compilers
23637 (e.g. gcc -O) don't grok <vfork.h>. Test for this by using a
23638 static variable whose address is put into a register that is
23639 clobbered by the vfork. */
23640 static void
23641 #ifdef __cplusplus
23642 sparc_address_test (int arg)
23643 # else
23644 sparc_address_test (arg) int arg;
23645 #endif
23647 static pid_t child;
23648 if (!child) {
23649 child = vfork ();
23650 if (child < 0) {
23651 perror ("vfork");
23652 _exit(2);
23654 if (!child) {
23655 arg = getpid();
23656 write(-1, "", 0);
23657 _exit (arg);
23663 main ()
23665 pid_t parent = getpid ();
23666 pid_t child;
23668 sparc_address_test (0);
23670 child = vfork ();
23672 if (child == 0) {
23673 /* Here is another test for sparc vfork register problems. This
23674 test uses lots of local variables, at least as many local
23675 variables as main has allocated so far including compiler
23676 temporaries. 4 locals are enough for gcc 1.40.3 on a Solaris
23677 4.1.3 sparc, but we use 8 to be safe. A buggy compiler should
23678 reuse the register of parent for one of the local variables,
23679 since it will think that parent can't possibly be used any more
23680 in this routine. Assigning to the local variable will thus
23681 munge parent in the parent process. */
23682 pid_t
23683 p = getpid(), p1 = getpid(), p2 = getpid(), p3 = getpid(),
23684 p4 = getpid(), p5 = getpid(), p6 = getpid(), p7 = getpid();
23685 /* Convince the compiler that p..p7 are live; otherwise, it might
23686 use the same hardware register for all 8 local variables. */
23687 if (p != p1 || p != p2 || p != p3 || p != p4
23688 || p != p5 || p != p6 || p != p7)
23689 _exit(1);
23691 /* On some systems (e.g. IRIX 3.3), vfork doesn't separate parent
23692 from child file descriptors. If the child closes a descriptor
23693 before it execs or exits, this munges the parent's descriptor
23694 as well. Test for this by closing stdout in the child. */
23695 _exit(close(fileno(stdout)) != 0);
23696 } else {
23697 int status;
23698 struct stat st;
23700 while (wait(&status) != child)
23702 return (
23703 /* Was there some problem with vforking? */
23704 child < 0
23706 /* Did the child fail? (This shouldn't happen.) */
23707 || status
23709 /* Did the vfork/compiler bug occur? */
23710 || parent != getpid()
23712 /* Did the file descriptor bug occur? */
23713 || fstat(fileno(stdout), &st) != 0
23717 _ACEOF
23718 rm -f conftest$ac_exeext
23719 if { (ac_try="$ac_link"
23720 case "(($ac_try" in
23721 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23722 *) ac_try_echo=$ac_try;;
23723 esac
23724 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23725 (eval "$ac_link") 2>&5
23726 ac_status=$?
23727 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23728 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
23729 { (case "(($ac_try" in
23730 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23731 *) ac_try_echo=$ac_try;;
23732 esac
23733 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23734 (eval "$ac_try") 2>&5
23735 ac_status=$?
23736 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23737 (exit $ac_status); }; }; then
23738 ac_cv_func_vfork_works=yes
23739 else
23740 echo "$as_me: program exited with status $ac_status" >&5
23741 echo "$as_me: failed program was:" >&5
23742 sed 's/^/| /' conftest.$ac_ext >&5
23744 ( exit $ac_status )
23745 ac_cv_func_vfork_works=no
23747 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
23752 { echo "$as_me:$LINENO: result: $ac_cv_func_vfork_works" >&5
23753 echo "${ECHO_T}$ac_cv_func_vfork_works" >&6; }
23756 if test "x$ac_cv_func_fork_works" = xcross; then
23757 ac_cv_func_vfork_works=$ac_cv_func_vfork
23758 { echo "$as_me:$LINENO: WARNING: result $ac_cv_func_vfork_works guessed because of cross compilation" >&5
23759 echo "$as_me: WARNING: result $ac_cv_func_vfork_works guessed because of cross compilation" >&2;}
23762 if test "x$ac_cv_func_vfork_works" = xyes; then
23764 cat >>confdefs.h <<\_ACEOF
23765 #define HAVE_WORKING_VFORK 1
23766 _ACEOF
23768 else
23770 cat >>confdefs.h <<\_ACEOF
23771 #define vfork fork
23772 _ACEOF
23775 if test "x$ac_cv_func_fork_works" = xyes; then
23777 cat >>confdefs.h <<\_ACEOF
23778 #define HAVE_WORKING_FORK 1
23779 _ACEOF
23784 { echo "$as_me:$LINENO: checking for nl_langinfo and CODESET" >&5
23785 echo $ECHO_N "checking for nl_langinfo and CODESET... $ECHO_C" >&6; }
23786 if test "${emacs_cv_langinfo_codeset+set}" = set; then
23787 echo $ECHO_N "(cached) $ECHO_C" >&6
23788 else
23789 cat >conftest.$ac_ext <<_ACEOF
23790 /* confdefs.h. */
23791 _ACEOF
23792 cat confdefs.h >>conftest.$ac_ext
23793 cat >>conftest.$ac_ext <<_ACEOF
23794 /* end confdefs.h. */
23795 #include <langinfo.h>
23797 main ()
23799 char* cs = nl_langinfo(CODESET);
23801 return 0;
23803 _ACEOF
23804 rm -f conftest.$ac_objext conftest$ac_exeext
23805 if { (ac_try="$ac_link"
23806 case "(($ac_try" in
23807 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23808 *) ac_try_echo=$ac_try;;
23809 esac
23810 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23811 (eval "$ac_link") 2>conftest.er1
23812 ac_status=$?
23813 grep -v '^ *+' conftest.er1 >conftest.err
23814 rm -f conftest.er1
23815 cat conftest.err >&5
23816 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23817 (exit $ac_status); } && {
23818 test -z "$ac_c_werror_flag" ||
23819 test ! -s conftest.err
23820 } && test -s conftest$ac_exeext &&
23821 $as_test_x conftest$ac_exeext; then
23822 emacs_cv_langinfo_codeset=yes
23823 else
23824 echo "$as_me: failed program was:" >&5
23825 sed 's/^/| /' conftest.$ac_ext >&5
23827 emacs_cv_langinfo_codeset=no
23830 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
23831 conftest$ac_exeext conftest.$ac_ext
23834 { echo "$as_me:$LINENO: result: $emacs_cv_langinfo_codeset" >&5
23835 echo "${ECHO_T}$emacs_cv_langinfo_codeset" >&6; }
23836 if test $emacs_cv_langinfo_codeset = yes; then
23838 cat >>confdefs.h <<\_ACEOF
23839 #define HAVE_LANGINFO_CODESET 1
23840 _ACEOF
23844 { echo "$as_me:$LINENO: checking for size_t" >&5
23845 echo $ECHO_N "checking for size_t... $ECHO_C" >&6; }
23846 if test "${ac_cv_type_size_t+set}" = set; then
23847 echo $ECHO_N "(cached) $ECHO_C" >&6
23848 else
23849 cat >conftest.$ac_ext <<_ACEOF
23850 /* confdefs.h. */
23851 _ACEOF
23852 cat confdefs.h >>conftest.$ac_ext
23853 cat >>conftest.$ac_ext <<_ACEOF
23854 /* end confdefs.h. */
23855 $ac_includes_default
23856 typedef size_t ac__type_new_;
23858 main ()
23860 if ((ac__type_new_ *) 0)
23861 return 0;
23862 if (sizeof (ac__type_new_))
23863 return 0;
23865 return 0;
23867 _ACEOF
23868 rm -f conftest.$ac_objext
23869 if { (ac_try="$ac_compile"
23870 case "(($ac_try" in
23871 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23872 *) ac_try_echo=$ac_try;;
23873 esac
23874 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23875 (eval "$ac_compile") 2>conftest.er1
23876 ac_status=$?
23877 grep -v '^ *+' conftest.er1 >conftest.err
23878 rm -f conftest.er1
23879 cat conftest.err >&5
23880 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23881 (exit $ac_status); } && {
23882 test -z "$ac_c_werror_flag" ||
23883 test ! -s conftest.err
23884 } && test -s conftest.$ac_objext; then
23885 ac_cv_type_size_t=yes
23886 else
23887 echo "$as_me: failed program was:" >&5
23888 sed 's/^/| /' conftest.$ac_ext >&5
23890 ac_cv_type_size_t=no
23893 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23895 { echo "$as_me:$LINENO: result: $ac_cv_type_size_t" >&5
23896 echo "${ECHO_T}$ac_cv_type_size_t" >&6; }
23897 if test $ac_cv_type_size_t = yes; then
23899 cat >>confdefs.h <<_ACEOF
23900 #define HAVE_SIZE_T 1
23901 _ACEOF
23907 { echo "$as_me:$LINENO: checking for mbstate_t" >&5
23908 echo $ECHO_N "checking for mbstate_t... $ECHO_C" >&6; }
23909 if test "${ac_cv_type_mbstate_t+set}" = set; then
23910 echo $ECHO_N "(cached) $ECHO_C" >&6
23911 else
23912 cat >conftest.$ac_ext <<_ACEOF
23913 /* confdefs.h. */
23914 _ACEOF
23915 cat confdefs.h >>conftest.$ac_ext
23916 cat >>conftest.$ac_ext <<_ACEOF
23917 /* end confdefs.h. */
23918 $ac_includes_default
23919 # include <wchar.h>
23921 main ()
23923 mbstate_t x; return sizeof x;
23925 return 0;
23927 _ACEOF
23928 rm -f conftest.$ac_objext
23929 if { (ac_try="$ac_compile"
23930 case "(($ac_try" in
23931 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23932 *) ac_try_echo=$ac_try;;
23933 esac
23934 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23935 (eval "$ac_compile") 2>conftest.er1
23936 ac_status=$?
23937 grep -v '^ *+' conftest.er1 >conftest.err
23938 rm -f conftest.er1
23939 cat conftest.err >&5
23940 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23941 (exit $ac_status); } && {
23942 test -z "$ac_c_werror_flag" ||
23943 test ! -s conftest.err
23944 } && test -s conftest.$ac_objext; then
23945 ac_cv_type_mbstate_t=yes
23946 else
23947 echo "$as_me: failed program was:" >&5
23948 sed 's/^/| /' conftest.$ac_ext >&5
23950 ac_cv_type_mbstate_t=no
23953 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23955 { echo "$as_me:$LINENO: result: $ac_cv_type_mbstate_t" >&5
23956 echo "${ECHO_T}$ac_cv_type_mbstate_t" >&6; }
23957 if test $ac_cv_type_mbstate_t = yes; then
23959 cat >>confdefs.h <<\_ACEOF
23960 #define HAVE_MBSTATE_T 1
23961 _ACEOF
23963 else
23965 cat >>confdefs.h <<\_ACEOF
23966 #define mbstate_t int
23967 _ACEOF
23971 { echo "$as_me:$LINENO: checking for C restrict keyword" >&5
23972 echo $ECHO_N "checking for C restrict keyword... $ECHO_C" >&6; }
23973 if test "${emacs_cv_c_restrict+set}" = set; then
23974 echo $ECHO_N "(cached) $ECHO_C" >&6
23975 else
23976 cat >conftest.$ac_ext <<_ACEOF
23977 /* confdefs.h. */
23978 _ACEOF
23979 cat confdefs.h >>conftest.$ac_ext
23980 cat >>conftest.$ac_ext <<_ACEOF
23981 /* end confdefs.h. */
23982 void fred (int *restrict x);
23984 main ()
23988 return 0;
23990 _ACEOF
23991 rm -f conftest.$ac_objext
23992 if { (ac_try="$ac_compile"
23993 case "(($ac_try" in
23994 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23995 *) ac_try_echo=$ac_try;;
23996 esac
23997 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23998 (eval "$ac_compile") 2>conftest.er1
23999 ac_status=$?
24000 grep -v '^ *+' conftest.er1 >conftest.err
24001 rm -f conftest.er1
24002 cat conftest.err >&5
24003 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24004 (exit $ac_status); } && {
24005 test -z "$ac_c_werror_flag" ||
24006 test ! -s conftest.err
24007 } && test -s conftest.$ac_objext; then
24008 emacs_cv_c_restrict=yes
24009 else
24010 echo "$as_me: failed program was:" >&5
24011 sed 's/^/| /' conftest.$ac_ext >&5
24013 cat >conftest.$ac_ext <<_ACEOF
24014 /* confdefs.h. */
24015 _ACEOF
24016 cat confdefs.h >>conftest.$ac_ext
24017 cat >>conftest.$ac_ext <<_ACEOF
24018 /* end confdefs.h. */
24019 void fred (int *__restrict x);
24021 main ()
24025 return 0;
24027 _ACEOF
24028 rm -f conftest.$ac_objext
24029 if { (ac_try="$ac_compile"
24030 case "(($ac_try" in
24031 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24032 *) ac_try_echo=$ac_try;;
24033 esac
24034 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24035 (eval "$ac_compile") 2>conftest.er1
24036 ac_status=$?
24037 grep -v '^ *+' conftest.er1 >conftest.err
24038 rm -f conftest.er1
24039 cat conftest.err >&5
24040 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24041 (exit $ac_status); } && {
24042 test -z "$ac_c_werror_flag" ||
24043 test ! -s conftest.err
24044 } && test -s conftest.$ac_objext; then
24045 emacs_cv_c_restrict=__restrict
24046 else
24047 echo "$as_me: failed program was:" >&5
24048 sed 's/^/| /' conftest.$ac_ext >&5
24050 emacs_cv_c_restrict=no
24053 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
24056 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
24058 { echo "$as_me:$LINENO: result: $emacs_cv_c_restrict" >&5
24059 echo "${ECHO_T}$emacs_cv_c_restrict" >&6; }
24060 case "$emacs_cv_c_restrict" in
24061 yes) emacs_restrict=restrict;;
24062 no) emacs_restrict="";;
24063 *) emacs_restrict="$emacs_cv_c_restrict";;
24064 esac
24065 if test "$emacs_restrict" != __restrict; then
24067 cat >>confdefs.h <<_ACEOF
24068 #define __restrict $emacs_restrict
24069 _ACEOF
24073 { echo "$as_me:$LINENO: checking for C restricted array declarations" >&5
24074 echo $ECHO_N "checking for C restricted array declarations... $ECHO_C" >&6; }
24075 if test "${emacs_cv_c_restrict_arr+set}" = set; then
24076 echo $ECHO_N "(cached) $ECHO_C" >&6
24077 else
24078 cat >conftest.$ac_ext <<_ACEOF
24079 /* confdefs.h. */
24080 _ACEOF
24081 cat confdefs.h >>conftest.$ac_ext
24082 cat >>conftest.$ac_ext <<_ACEOF
24083 /* end confdefs.h. */
24084 void fred (int x[__restrict]);
24086 main ()
24090 return 0;
24092 _ACEOF
24093 rm -f conftest.$ac_objext
24094 if { (ac_try="$ac_compile"
24095 case "(($ac_try" in
24096 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24097 *) ac_try_echo=$ac_try;;
24098 esac
24099 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24100 (eval "$ac_compile") 2>conftest.er1
24101 ac_status=$?
24102 grep -v '^ *+' conftest.er1 >conftest.err
24103 rm -f conftest.er1
24104 cat conftest.err >&5
24105 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24106 (exit $ac_status); } && {
24107 test -z "$ac_c_werror_flag" ||
24108 test ! -s conftest.err
24109 } && test -s conftest.$ac_objext; then
24110 emacs_cv_c_restrict_arr=yes
24111 else
24112 echo "$as_me: failed program was:" >&5
24113 sed 's/^/| /' conftest.$ac_ext >&5
24115 emacs_cv_c_restrict_arr=no
24118 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
24120 { echo "$as_me:$LINENO: result: $emacs_cv_c_restrict_arr" >&5
24121 echo "${ECHO_T}$emacs_cv_c_restrict_arr" >&6; }
24122 if test "$emacs_cv_c_restrict_arr" = yes; then
24124 cat >>confdefs.h <<\_ACEOF
24125 #define __restrict_arr __restrict
24126 _ACEOF
24132 # Set up the CFLAGS for real compilation, so we can substitute it.
24133 CFLAGS="$REAL_CFLAGS"
24134 CPPFLAGS="$REAL_CPPFLAGS"
24136 #### Find out which version of Emacs this is.
24137 version=`grep 'defconst[ ]*emacs-version' ${srcdir}/lisp/version.el \
24138 | sed -e 's/^[^"]*"\([^"]*\)".*$/\1/'`
24139 if test x"${version}" = x; then
24140 { { echo "$as_me:$LINENO: error: can't find current emacs version in \`${srcdir}/lisp/version.el'." >&5
24141 echo "$as_me: error: can't find current emacs version in \`${srcdir}/lisp/version.el'." >&2;}
24142 { (exit 1); exit 1; }; }
24145 ### Specify what sort of things we'll be editing into Makefile and config.h.
24146 ### Use configuration here uncanonicalized to avoid exceeding size limits.
24182 cat >>confdefs.h <<_ACEOF
24183 #define EMACS_CONFIGURATION "${canonical}"
24184 _ACEOF
24187 cat >>confdefs.h <<_ACEOF
24188 #define EMACS_CONFIG_OPTIONS "${ac_configure_args}"
24189 _ACEOF
24192 cat >>confdefs.h <<_ACEOF
24193 #define config_machfile "${machfile}"
24194 _ACEOF
24197 cat >>confdefs.h <<_ACEOF
24198 #define config_opsysfile "${opsysfile}"
24199 _ACEOF
24202 cat >>confdefs.h <<_ACEOF
24203 #define LD_SWITCH_X_SITE ${LD_SWITCH_X_SITE}
24204 _ACEOF
24207 cat >>confdefs.h <<_ACEOF
24208 #define LD_SWITCH_X_SITE_AUX ${LD_SWITCH_X_SITE_AUX}
24209 _ACEOF
24212 cat >>confdefs.h <<_ACEOF
24213 #define C_SWITCH_X_SITE ${C_SWITCH_X_SITE}
24214 _ACEOF
24217 cat >>confdefs.h <<_ACEOF
24218 #define UNEXEC_SRC ${UNEXEC_SRC}
24219 _ACEOF
24222 if test "${HAVE_X_WINDOWS}" = "yes" ; then
24224 cat >>confdefs.h <<\_ACEOF
24225 #define HAVE_X_WINDOWS 1
24226 _ACEOF
24229 if test "${USE_X_TOOLKIT}" != "none" ; then
24231 cat >>confdefs.h <<\_ACEOF
24232 #define USE_X_TOOLKIT 1
24233 _ACEOF
24235 if test "${USE_X_TOOLKIT}" == "LUCID"; then
24237 cat >>confdefs.h <<\_ACEOF
24238 #define USE_LUCID 1
24239 _ACEOF
24241 elif test "${USE_X_TOOLKIT}" == "MOTIF"; then
24243 cat >>confdefs.h <<\_ACEOF
24244 #define USE_MOTIF 1
24245 _ACEOF
24249 if test "${HAVE_X11}" = "yes" ; then
24251 cat >>confdefs.h <<\_ACEOF
24252 #define HAVE_X11 1
24253 _ACEOF
24256 if test "${HAVE_MENUS}" = "yes" ; then
24258 cat >>confdefs.h <<\_ACEOF
24259 #define HAVE_MENUS 1
24260 _ACEOF
24263 if test "${GNU_MALLOC}" = "yes" ; then
24265 cat >>confdefs.h <<\_ACEOF
24266 #define GNU_MALLOC 1
24267 _ACEOF
24270 if test "${REL_ALLOC}" = "yes" ; then
24272 cat >>confdefs.h <<\_ACEOF
24273 #define REL_ALLOC 1
24274 _ACEOF
24283 #### Report on what we decided to do.
24284 #### Report GTK as a toolkit, even if it doesn't use Xt.
24285 #### It makes printing result more understandable as using GTK sets
24286 #### toolkit_scroll_bars to yes by default.
24287 if test "${HAVE_GTK}" = "yes"; then
24288 USE_X_TOOLKIT=GTK
24291 echo "
24292 Configured for \`${canonical}'.
24294 Where should the build process find the source code? ${srcdir}
24295 What operating system and machine description files should Emacs use?
24296 \`${opsysfile}' and \`${machfile}'
24297 What compiler should emacs be built with? ${CC} ${CFLAGS}
24298 Should Emacs use the GNU version of malloc? ${GNU_MALLOC}${GNU_MALLOC_reason}
24299 Should Emacs use a relocating allocator for buffers? ${REL_ALLOC}
24300 Should Emacs use mmap(2) for buffer allocation? $use_mmap_for_buffers
24301 What window system should Emacs use? ${window_system}
24302 What toolkit should Emacs use? ${USE_X_TOOLKIT}"
24304 if test -n "${x_includes}"; then
24305 echo " Where do we find X Windows header files? ${x_includes}"
24306 else
24307 echo " Where do we find X Windows header files? Standard dirs"
24309 if test -n "${x_libraries}"; then
24310 echo " Where do we find X Windows libraries? ${x_libraries}"
24311 else
24312 echo " Where do we find X Windows libraries? Standard dirs"
24315 echo " Does Emacs use -lXaw3d? ${HAVE_XAW3D}"
24316 echo " Does Emacs use -lXpm? ${HAVE_XPM}"
24317 echo " Does Emacs use -ljpeg? ${HAVE_JPEG}"
24318 echo " Does Emacs use -ltiff? ${HAVE_TIFF}"
24319 echo " Does Emacs use a gif library? ${HAVE_GIF} $ac_gif_lib_name"
24320 echo " Does Emacs use -lpng? ${HAVE_PNG}"
24321 echo " Does Emacs use -lrsvg-2? ${HAVE_RSVG}"
24322 echo " Does Emacs use -lgpm? ${HAVE_GPM}"
24323 echo " Does Emacs use -ldbus? ${HAVE_DBUS}"
24324 echo " Does Emacs use a font backend? ${USE_FONT_BACKEND}"
24326 if test "${USE_FONT_BACKEND}" = "yes"; then
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 X 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
24353 if test "$HAVE_CARBON" = "yes"; then
24354 echo
24355 echo "Warning: The Mac Carbon port is currently unsupported and has
24356 known problems. It is not recommended for use by non-developers.
24357 Read the emacs-devel archives for more information."
24358 echo
24361 if test "$HAVE_DBUS" = yes && test "${opsys}" != "gnu-linux"; then
24362 echo "D-Bus integration has been tested for GNU/Linux only."
24363 echo
24367 # Remove any trailing slashes in these variables.
24368 test "${prefix}" != NONE &&
24369 prefix=`echo "${prefix}" | sed 's,\([^/]\)/*$,\1,'`
24370 test "${exec_prefix}" != NONE &&
24371 exec_prefix=`echo "${exec_prefix}" | sed 's,\([^/]\)/*$,\1,'`
24373 ## Check if the C preprocessor will convert `..' to `. .'. If so, set
24374 ## CPP_NEED_TRADITIONAL to `yes' so that the code to generate Makefile
24375 ## from Makefile.c can correctly provide the arg `-traditional' to the
24376 ## C preprocessor.
24378 cat >conftest.$ac_ext <<_ACEOF
24379 /* confdefs.h. */
24380 _ACEOF
24381 cat confdefs.h >>conftest.$ac_ext
24382 cat >>conftest.$ac_ext <<_ACEOF
24383 /* end confdefs.h. */
24384 yes..yes
24385 _ACEOF
24386 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
24387 $EGREP "yes..yes" >/dev/null 2>&1; then
24388 CPP_NEED_TRADITIONAL=no
24389 else
24390 CPP_NEED_TRADITIONAL=yes
24392 rm -f conftest*
24395 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"
24397 ac_config_commands="$ac_config_commands default"
24399 cat >confcache <<\_ACEOF
24400 # This file is a shell script that caches the results of configure
24401 # tests run on this system so they can be shared between configure
24402 # scripts and configure runs, see configure's option --config-cache.
24403 # It is not useful on other systems. If it contains results you don't
24404 # want to keep, you may remove or edit it.
24406 # config.status only pays attention to the cache file if you give it
24407 # the --recheck option to rerun configure.
24409 # `ac_cv_env_foo' variables (set or unset) will be overridden when
24410 # loading this file, other *unset* `ac_cv_foo' will be assigned the
24411 # following values.
24413 _ACEOF
24415 # The following way of writing the cache mishandles newlines in values,
24416 # but we know of no workaround that is simple, portable, and efficient.
24417 # So, we kill variables containing newlines.
24418 # Ultrix sh set writes to stderr and can't be redirected directly,
24419 # and sets the high bit in the cache file unless we assign to the vars.
24421 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
24422 eval ac_val=\$$ac_var
24423 case $ac_val in #(
24424 *${as_nl}*)
24425 case $ac_var in #(
24426 *_cv_*) { echo "$as_me:$LINENO: WARNING: Cache variable $ac_var contains a newline." >&5
24427 echo "$as_me: WARNING: Cache variable $ac_var contains a newline." >&2;} ;;
24428 esac
24429 case $ac_var in #(
24430 _ | IFS | as_nl) ;; #(
24431 *) $as_unset $ac_var ;;
24432 esac ;;
24433 esac
24434 done
24436 (set) 2>&1 |
24437 case $as_nl`(ac_space=' '; set) 2>&1` in #(
24438 *${as_nl}ac_space=\ *)
24439 # `set' does not quote correctly, so add quotes (double-quote
24440 # substitution turns \\\\ into \\, and sed turns \\ into \).
24441 sed -n \
24442 "s/'/'\\\\''/g;
24443 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
24444 ;; #(
24446 # `set' quotes correctly as required by POSIX, so do not add quotes.
24447 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
24449 esac |
24450 sort
24452 sed '
24453 /^ac_cv_env_/b end
24454 t clear
24455 :clear
24456 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
24457 t end
24458 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
24459 :end' >>confcache
24460 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
24461 if test -w "$cache_file"; then
24462 test "x$cache_file" != "x/dev/null" &&
24463 { echo "$as_me:$LINENO: updating cache $cache_file" >&5
24464 echo "$as_me: updating cache $cache_file" >&6;}
24465 cat confcache >$cache_file
24466 else
24467 { echo "$as_me:$LINENO: not updating unwritable cache $cache_file" >&5
24468 echo "$as_me: not updating unwritable cache $cache_file" >&6;}
24471 rm -f confcache
24473 test "x$prefix" = xNONE && prefix=$ac_default_prefix
24474 # Let make expand exec_prefix.
24475 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
24477 DEFS=-DHAVE_CONFIG_H
24479 ac_libobjs=
24480 ac_ltlibobjs=
24481 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
24482 # 1. Remove the extension, and $U if already installed.
24483 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
24484 ac_i=`echo "$ac_i" | sed "$ac_script"`
24485 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
24486 # will be set to the directory where LIBOBJS objects are built.
24487 ac_libobjs="$ac_libobjs \${LIBOBJDIR}$ac_i\$U.$ac_objext"
24488 ac_ltlibobjs="$ac_ltlibobjs \${LIBOBJDIR}$ac_i"'$U.lo'
24489 done
24490 LIBOBJS=$ac_libobjs
24492 LTLIBOBJS=$ac_ltlibobjs
24496 : ${CONFIG_STATUS=./config.status}
24497 ac_clean_files_save=$ac_clean_files
24498 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
24499 { echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
24500 echo "$as_me: creating $CONFIG_STATUS" >&6;}
24501 cat >$CONFIG_STATUS <<_ACEOF
24502 #! $SHELL
24503 # Generated by $as_me.
24504 # Run this file to recreate the current configuration.
24505 # Compiler output produced by configure, useful for debugging
24506 # configure, is in config.log if it exists.
24508 debug=false
24509 ac_cs_recheck=false
24510 ac_cs_silent=false
24511 SHELL=\${CONFIG_SHELL-$SHELL}
24512 _ACEOF
24514 cat >>$CONFIG_STATUS <<\_ACEOF
24515 ## --------------------- ##
24516 ## M4sh Initialization. ##
24517 ## --------------------- ##
24519 # Be more Bourne compatible
24520 DUALCASE=1; export DUALCASE # for MKS sh
24521 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
24522 emulate sh
24523 NULLCMD=:
24524 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
24525 # is contrary to our usage. Disable this feature.
24526 alias -g '${1+"$@"}'='"$@"'
24527 setopt NO_GLOB_SUBST
24528 else
24529 case `(set -o) 2>/dev/null` in
24530 *posix*) set -o posix ;;
24531 esac
24538 # PATH needs CR
24539 # Avoid depending upon Character Ranges.
24540 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
24541 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
24542 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
24543 as_cr_digits='0123456789'
24544 as_cr_alnum=$as_cr_Letters$as_cr_digits
24546 # The user is always right.
24547 if test "${PATH_SEPARATOR+set}" != set; then
24548 echo "#! /bin/sh" >conf$$.sh
24549 echo "exit 0" >>conf$$.sh
24550 chmod +x conf$$.sh
24551 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
24552 PATH_SEPARATOR=';'
24553 else
24554 PATH_SEPARATOR=:
24556 rm -f conf$$.sh
24559 # Support unset when possible.
24560 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
24561 as_unset=unset
24562 else
24563 as_unset=false
24567 # IFS
24568 # We need space, tab and new line, in precisely that order. Quoting is
24569 # there to prevent editors from complaining about space-tab.
24570 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
24571 # splitting by setting IFS to empty value.)
24572 as_nl='
24574 IFS=" "" $as_nl"
24576 # Find who we are. Look in the path if we contain no directory separator.
24577 case $0 in
24578 *[\\/]* ) as_myself=$0 ;;
24579 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
24580 for as_dir in $PATH
24582 IFS=$as_save_IFS
24583 test -z "$as_dir" && as_dir=.
24584 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
24585 done
24586 IFS=$as_save_IFS
24589 esac
24590 # We did not find ourselves, most probably we were run as `sh COMMAND'
24591 # in which case we are not to be found in the path.
24592 if test "x$as_myself" = x; then
24593 as_myself=$0
24595 if test ! -f "$as_myself"; then
24596 echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
24597 { (exit 1); exit 1; }
24600 # Work around bugs in pre-3.0 UWIN ksh.
24601 for as_var in ENV MAIL MAILPATH
24602 do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
24603 done
24604 PS1='$ '
24605 PS2='> '
24606 PS4='+ '
24608 # NLS nuisances.
24609 for as_var in \
24610 LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
24611 LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
24612 LC_TELEPHONE LC_TIME
24614 if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
24615 eval $as_var=C; export $as_var
24616 else
24617 ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
24619 done
24621 # Required to use basename.
24622 if expr a : '\(a\)' >/dev/null 2>&1 &&
24623 test "X`expr 00001 : '.*\(...\)'`" = X001; then
24624 as_expr=expr
24625 else
24626 as_expr=false
24629 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
24630 as_basename=basename
24631 else
24632 as_basename=false
24636 # Name of the executable.
24637 as_me=`$as_basename -- "$0" ||
24638 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
24639 X"$0" : 'X\(//\)$' \| \
24640 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
24641 echo X/"$0" |
24642 sed '/^.*\/\([^/][^/]*\)\/*$/{
24643 s//\1/
24646 /^X\/\(\/\/\)$/{
24647 s//\1/
24650 /^X\/\(\/\).*/{
24651 s//\1/
24654 s/.*/./; q'`
24656 # CDPATH.
24657 $as_unset CDPATH
24661 as_lineno_1=$LINENO
24662 as_lineno_2=$LINENO
24663 test "x$as_lineno_1" != "x$as_lineno_2" &&
24664 test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2" || {
24666 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
24667 # uniformly replaced by the line number. The first 'sed' inserts a
24668 # line-number line after each line using $LINENO; the second 'sed'
24669 # does the real work. The second script uses 'N' to pair each
24670 # line-number line with the line containing $LINENO, and appends
24671 # trailing '-' during substitution so that $LINENO is not a special
24672 # case at line end.
24673 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
24674 # scripts with optimization help from Paolo Bonzini. Blame Lee
24675 # E. McMahon (1931-1989) for sed's syntax. :-)
24676 sed -n '
24678 /[$]LINENO/=
24679 ' <$as_myself |
24680 sed '
24681 s/[$]LINENO.*/&-/
24682 t lineno
24684 :lineno
24686 :loop
24687 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
24688 t loop
24689 s/-\n.*//
24690 ' >$as_me.lineno &&
24691 chmod +x "$as_me.lineno" ||
24692 { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
24693 { (exit 1); exit 1; }; }
24695 # Don't try to exec as it changes $[0], causing all sort of problems
24696 # (the dirname of $[0] is not the place where we might find the
24697 # original and so on. Autoconf is especially sensitive to this).
24698 . "./$as_me.lineno"
24699 # Exit status is that of the last command.
24700 exit
24704 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
24705 as_dirname=dirname
24706 else
24707 as_dirname=false
24710 ECHO_C= ECHO_N= ECHO_T=
24711 case `echo -n x` in
24712 -n*)
24713 case `echo 'x\c'` in
24714 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
24715 *) ECHO_C='\c';;
24716 esac;;
24718 ECHO_N='-n';;
24719 esac
24721 if expr a : '\(a\)' >/dev/null 2>&1 &&
24722 test "X`expr 00001 : '.*\(...\)'`" = X001; then
24723 as_expr=expr
24724 else
24725 as_expr=false
24728 rm -f conf$$ conf$$.exe conf$$.file
24729 if test -d conf$$.dir; then
24730 rm -f conf$$.dir/conf$$.file
24731 else
24732 rm -f conf$$.dir
24733 mkdir conf$$.dir
24735 echo >conf$$.file
24736 if ln -s conf$$.file conf$$ 2>/dev/null; then
24737 as_ln_s='ln -s'
24738 # ... but there are two gotchas:
24739 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
24740 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
24741 # In both cases, we have to default to `cp -p'.
24742 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
24743 as_ln_s='cp -p'
24744 elif ln conf$$.file conf$$ 2>/dev/null; then
24745 as_ln_s=ln
24746 else
24747 as_ln_s='cp -p'
24749 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
24750 rmdir conf$$.dir 2>/dev/null
24752 if mkdir -p . 2>/dev/null; then
24753 as_mkdir_p=:
24754 else
24755 test -d ./-p && rmdir ./-p
24756 as_mkdir_p=false
24759 if test -x / >/dev/null 2>&1; then
24760 as_test_x='test -x'
24761 else
24762 if ls -dL / >/dev/null 2>&1; then
24763 as_ls_L_option=L
24764 else
24765 as_ls_L_option=
24767 as_test_x='
24768 eval sh -c '\''
24769 if test -d "$1"; then
24770 test -d "$1/.";
24771 else
24772 case $1 in
24773 -*)set "./$1";;
24774 esac;
24775 case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in
24776 ???[sx]*):;;*)false;;esac;fi
24777 '\'' sh
24780 as_executable_p=$as_test_x
24782 # Sed expression to map a string onto a valid CPP name.
24783 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
24785 # Sed expression to map a string onto a valid variable name.
24786 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
24789 exec 6>&1
24791 # Save the log message, to keep $[0] and so on meaningful, and to
24792 # report actual input values of CONFIG_FILES etc. instead of their
24793 # values after options handling.
24794 ac_log="
24795 This file was extended by emacs $as_me 23.0.60, which was
24796 generated by GNU Autoconf 2.61. Invocation command line was
24798 CONFIG_FILES = $CONFIG_FILES
24799 CONFIG_HEADERS = $CONFIG_HEADERS
24800 CONFIG_LINKS = $CONFIG_LINKS
24801 CONFIG_COMMANDS = $CONFIG_COMMANDS
24802 $ $0 $@
24804 on `(hostname || uname -n) 2>/dev/null | sed 1q`
24807 _ACEOF
24809 cat >>$CONFIG_STATUS <<_ACEOF
24810 # Files that config.status was made for.
24811 config_files="$ac_config_files"
24812 config_headers="$ac_config_headers"
24813 config_commands="$ac_config_commands"
24815 _ACEOF
24817 cat >>$CONFIG_STATUS <<\_ACEOF
24818 ac_cs_usage="\
24819 \`$as_me' instantiates files from templates according to the
24820 current configuration.
24822 Usage: $0 [OPTIONS] [FILE]...
24824 -h, --help print this help, then exit
24825 -V, --version print version number and configuration settings, then exit
24826 -q, --quiet do not print progress messages
24827 -d, --debug don't remove temporary files
24828 --recheck update $as_me by reconfiguring in the same conditions
24829 --file=FILE[:TEMPLATE]
24830 instantiate the configuration file FILE
24831 --header=FILE[:TEMPLATE]
24832 instantiate the configuration header FILE
24834 Configuration files:
24835 $config_files
24837 Configuration headers:
24838 $config_headers
24840 Configuration commands:
24841 $config_commands
24843 Report bugs to <bug-autoconf@gnu.org>."
24845 _ACEOF
24846 cat >>$CONFIG_STATUS <<_ACEOF
24847 ac_cs_version="\\
24848 emacs config.status 23.0.60
24849 configured by $0, generated by GNU Autoconf 2.61,
24850 with options \\"`echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`\\"
24852 Copyright (C) 2006 Free Software Foundation, Inc.
24853 This config.status script is free software; the Free Software Foundation
24854 gives unlimited permission to copy, distribute and modify it."
24856 ac_pwd='$ac_pwd'
24857 srcdir='$srcdir'
24858 INSTALL='$INSTALL'
24859 _ACEOF
24861 cat >>$CONFIG_STATUS <<\_ACEOF
24862 # If no file are specified by the user, then we need to provide default
24863 # value. By we need to know if files were specified by the user.
24864 ac_need_defaults=:
24865 while test $# != 0
24867 case $1 in
24868 --*=*)
24869 ac_option=`expr "X$1" : 'X\([^=]*\)='`
24870 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
24871 ac_shift=:
24874 ac_option=$1
24875 ac_optarg=$2
24876 ac_shift=shift
24878 esac
24880 case $ac_option in
24881 # Handling of the options.
24882 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
24883 ac_cs_recheck=: ;;
24884 --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
24885 echo "$ac_cs_version"; exit ;;
24886 --debug | --debu | --deb | --de | --d | -d )
24887 debug=: ;;
24888 --file | --fil | --fi | --f )
24889 $ac_shift
24890 CONFIG_FILES="$CONFIG_FILES $ac_optarg"
24891 ac_need_defaults=false;;
24892 --header | --heade | --head | --hea )
24893 $ac_shift
24894 CONFIG_HEADERS="$CONFIG_HEADERS $ac_optarg"
24895 ac_need_defaults=false;;
24896 --he | --h)
24897 # Conflict between --help and --header
24898 { echo "$as_me: error: ambiguous option: $1
24899 Try \`$0 --help' for more information." >&2
24900 { (exit 1); exit 1; }; };;
24901 --help | --hel | -h )
24902 echo "$ac_cs_usage"; exit ;;
24903 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
24904 | -silent | --silent | --silen | --sile | --sil | --si | --s)
24905 ac_cs_silent=: ;;
24907 # This is an error.
24908 -*) { echo "$as_me: error: unrecognized option: $1
24909 Try \`$0 --help' for more information." >&2
24910 { (exit 1); exit 1; }; } ;;
24912 *) ac_config_targets="$ac_config_targets $1"
24913 ac_need_defaults=false ;;
24915 esac
24916 shift
24917 done
24919 ac_configure_extra_args=
24921 if $ac_cs_silent; then
24922 exec 6>/dev/null
24923 ac_configure_extra_args="$ac_configure_extra_args --silent"
24926 _ACEOF
24927 cat >>$CONFIG_STATUS <<_ACEOF
24928 if \$ac_cs_recheck; then
24929 echo "running CONFIG_SHELL=$SHELL $SHELL $0 "$ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6
24930 CONFIG_SHELL=$SHELL
24931 export CONFIG_SHELL
24932 exec $SHELL "$0"$ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
24935 _ACEOF
24936 cat >>$CONFIG_STATUS <<\_ACEOF
24937 exec 5>>config.log
24939 echo
24940 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
24941 ## Running $as_me. ##
24942 _ASBOX
24943 echo "$ac_log"
24944 } >&5
24946 _ACEOF
24947 cat >>$CONFIG_STATUS <<_ACEOF
24949 # INIT-COMMANDS
24951 GCC="$GCC" NON_GNU_CPP="$NON_GNU_CPP" CPP="$CPP" CPP_NEED_TRADITIONAL="$CPP_NEED_TRADITIONAL" CPPFLAGS="$CPPFLAGS"
24953 _ACEOF
24955 cat >>$CONFIG_STATUS <<\_ACEOF
24957 # Handling of arguments.
24958 for ac_config_target in $ac_config_targets
24960 case $ac_config_target in
24961 "src/config.h") CONFIG_HEADERS="$CONFIG_HEADERS src/config.h:src/config.in" ;;
24962 "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
24963 "lib-src/Makefile.c") CONFIG_FILES="$CONFIG_FILES lib-src/Makefile.c:lib-src/Makefile.in" ;;
24964 "oldXMenu/Makefile") CONFIG_FILES="$CONFIG_FILES oldXMenu/Makefile" ;;
24965 "doc/emacs/Makefile") CONFIG_FILES="$CONFIG_FILES doc/emacs/Makefile" ;;
24966 "doc/misc/Makefile") CONFIG_FILES="$CONFIG_FILES doc/misc/Makefile" ;;
24967 "doc/lispintro/Makefile") CONFIG_FILES="$CONFIG_FILES doc/lispintro/Makefile" ;;
24968 "doc/lispref/Makefile") CONFIG_FILES="$CONFIG_FILES doc/lispref/Makefile" ;;
24969 "src/Makefile.c") CONFIG_FILES="$CONFIG_FILES src/Makefile.c:src/Makefile.in" ;;
24970 "lwlib/Makefile") CONFIG_FILES="$CONFIG_FILES lwlib/Makefile" ;;
24971 "lisp/Makefile") CONFIG_FILES="$CONFIG_FILES lisp/Makefile" ;;
24972 "leim/Makefile") CONFIG_FILES="$CONFIG_FILES leim/Makefile" ;;
24973 "default") CONFIG_COMMANDS="$CONFIG_COMMANDS default" ;;
24975 *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
24976 echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
24977 { (exit 1); exit 1; }; };;
24978 esac
24979 done
24982 # If the user did not use the arguments to specify the items to instantiate,
24983 # then the envvar interface is used. Set only those that are not.
24984 # We use the long form for the default assignment because of an extremely
24985 # bizarre bug on SunOS 4.1.3.
24986 if $ac_need_defaults; then
24987 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
24988 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
24989 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
24992 # Have a temporary directory for convenience. Make it in the build tree
24993 # simply because there is no reason against having it here, and in addition,
24994 # creating and moving files from /tmp can sometimes cause problems.
24995 # Hook for its removal unless debugging.
24996 # Note that there is a small window in which the directory will not be cleaned:
24997 # after its creation but before its name has been assigned to `$tmp'.
24998 $debug ||
25000 tmp=
25001 trap 'exit_status=$?
25002 { test -z "$tmp" || test ! -d "$tmp" || rm -fr "$tmp"; } && exit $exit_status
25004 trap '{ (exit 1); exit 1; }' 1 2 13 15
25006 # Create a (secure) tmp directory for tmp files.
25009 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
25010 test -n "$tmp" && test -d "$tmp"
25011 } ||
25013 tmp=./conf$$-$RANDOM
25014 (umask 077 && mkdir "$tmp")
25015 } ||
25017 echo "$me: cannot create a temporary directory in ." >&2
25018 { (exit 1); exit 1; }
25022 # Set up the sed scripts for CONFIG_FILES section.
25025 # No need to generate the scripts if there are no CONFIG_FILES.
25026 # This happens for instance when ./config.status config.h
25027 if test -n "$CONFIG_FILES"; then
25029 _ACEOF
25033 ac_delim='%!_!# '
25034 for ac_last_try in false false false false false :; do
25035 cat >conf$$subs.sed <<_ACEOF
25036 SHELL!$SHELL$ac_delim
25037 PATH_SEPARATOR!$PATH_SEPARATOR$ac_delim
25038 PACKAGE_NAME!$PACKAGE_NAME$ac_delim
25039 PACKAGE_TARNAME!$PACKAGE_TARNAME$ac_delim
25040 PACKAGE_VERSION!$PACKAGE_VERSION$ac_delim
25041 PACKAGE_STRING!$PACKAGE_STRING$ac_delim
25042 PACKAGE_BUGREPORT!$PACKAGE_BUGREPORT$ac_delim
25043 exec_prefix!$exec_prefix$ac_delim
25044 prefix!$prefix$ac_delim
25045 program_transform_name!$program_transform_name$ac_delim
25046 bindir!$bindir$ac_delim
25047 sbindir!$sbindir$ac_delim
25048 libexecdir!$libexecdir$ac_delim
25049 datarootdir!$datarootdir$ac_delim
25050 datadir!$datadir$ac_delim
25051 sysconfdir!$sysconfdir$ac_delim
25052 sharedstatedir!$sharedstatedir$ac_delim
25053 localstatedir!$localstatedir$ac_delim
25054 includedir!$includedir$ac_delim
25055 oldincludedir!$oldincludedir$ac_delim
25056 docdir!$docdir$ac_delim
25057 infodir!$infodir$ac_delim
25058 htmldir!$htmldir$ac_delim
25059 dvidir!$dvidir$ac_delim
25060 pdfdir!$pdfdir$ac_delim
25061 psdir!$psdir$ac_delim
25062 libdir!$libdir$ac_delim
25063 localedir!$localedir$ac_delim
25064 mandir!$mandir$ac_delim
25065 DEFS!$DEFS$ac_delim
25066 ECHO_C!$ECHO_C$ac_delim
25067 ECHO_N!$ECHO_N$ac_delim
25068 ECHO_T!$ECHO_T$ac_delim
25069 LIBS!$LIBS$ac_delim
25070 build_alias!$build_alias$ac_delim
25071 host_alias!$host_alias$ac_delim
25072 target_alias!$target_alias$ac_delim
25073 MAINT!$MAINT$ac_delim
25074 build!$build$ac_delim
25075 build_cpu!$build_cpu$ac_delim
25076 build_vendor!$build_vendor$ac_delim
25077 build_os!$build_os$ac_delim
25078 host!$host$ac_delim
25079 host_cpu!$host_cpu$ac_delim
25080 host_vendor!$host_vendor$ac_delim
25081 host_os!$host_os$ac_delim
25082 CC!$CC$ac_delim
25083 CFLAGS!$CFLAGS$ac_delim
25084 LDFLAGS!$LDFLAGS$ac_delim
25085 CPPFLAGS!$CPPFLAGS$ac_delim
25086 ac_ct_CC!$ac_ct_CC$ac_delim
25087 EXEEXT!$EXEEXT$ac_delim
25088 OBJEXT!$OBJEXT$ac_delim
25089 CPP!$CPP$ac_delim
25090 GREP!$GREP$ac_delim
25091 EGREP!$EGREP$ac_delim
25092 LN_S!$LN_S$ac_delim
25093 INSTALL_PROGRAM!$INSTALL_PROGRAM$ac_delim
25094 INSTALL_SCRIPT!$INSTALL_SCRIPT$ac_delim
25095 INSTALL_DATA!$INSTALL_DATA$ac_delim
25096 RANLIB!$RANLIB$ac_delim
25097 INSTALL_INFO!$INSTALL_INFO$ac_delim
25098 GZIP_PROG!$GZIP_PROG$ac_delim
25099 MAKEINFO!$MAKEINFO$ac_delim
25100 LIBSOUND!$LIBSOUND$ac_delim
25101 PKG_CONFIG!$PKG_CONFIG$ac_delim
25102 ALSA_CFLAGS!$ALSA_CFLAGS$ac_delim
25103 ALSA_LIBS!$ALSA_LIBS$ac_delim
25104 CFLAGS_SOUND!$CFLAGS_SOUND$ac_delim
25105 SET_MAKE!$SET_MAKE$ac_delim
25106 XMKMF!$XMKMF$ac_delim
25107 HAVE_XSERVER!$HAVE_XSERVER$ac_delim
25108 RSVG_CFLAGS!$RSVG_CFLAGS$ac_delim
25109 RSVG_LIBS!$RSVG_LIBS$ac_delim
25110 GTK_CFLAGS!$GTK_CFLAGS$ac_delim
25111 GTK_LIBS!$GTK_LIBS$ac_delim
25112 DBUS_CFLAGS!$DBUS_CFLAGS$ac_delim
25113 DBUS_LIBS!$DBUS_LIBS$ac_delim
25114 XFT_CFLAGS!$XFT_CFLAGS$ac_delim
25115 XFT_LIBS!$XFT_LIBS$ac_delim
25116 FREETYPE_CFLAGS!$FREETYPE_CFLAGS$ac_delim
25117 FREETYPE_LIBS!$FREETYPE_LIBS$ac_delim
25118 FONTCONFIG_CFLAGS!$FONTCONFIG_CFLAGS$ac_delim
25119 FONTCONFIG_LIBS!$FONTCONFIG_LIBS$ac_delim
25120 LIBOTF_CFLAGS!$LIBOTF_CFLAGS$ac_delim
25121 LIBOTF_LIBS!$LIBOTF_LIBS$ac_delim
25122 M17N_FLT_CFLAGS!$M17N_FLT_CFLAGS$ac_delim
25123 M17N_FLT_LIBS!$M17N_FLT_LIBS$ac_delim
25124 ALLOCA!$ALLOCA$ac_delim
25125 liblockfile!$liblockfile$ac_delim
25126 LIBOBJS!$LIBOBJS$ac_delim
25127 NEED_SETGID!$NEED_SETGID$ac_delim
25128 KMEM_GROUP!$KMEM_GROUP$ac_delim
25129 GETLOADAVG_LIBS!$GETLOADAVG_LIBS$ac_delim
25130 GETOPT_H!$GETOPT_H$ac_delim
25131 GETOPTOBJS!$GETOPTOBJS$ac_delim
25132 version!$version$ac_delim
25133 _ACEOF
25135 if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 97; then
25136 break
25137 elif $ac_last_try; then
25138 { { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
25139 echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
25140 { (exit 1); exit 1; }; }
25141 else
25142 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
25144 done
25146 ac_eof=`sed -n '/^CEOF[0-9]*$/s/CEOF/0/p' conf$$subs.sed`
25147 if test -n "$ac_eof"; then
25148 ac_eof=`echo "$ac_eof" | sort -nru | sed 1q`
25149 ac_eof=`expr $ac_eof + 1`
25152 cat >>$CONFIG_STATUS <<_ACEOF
25153 cat >"\$tmp/subs-1.sed" <<\CEOF$ac_eof
25154 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
25155 _ACEOF
25156 sed '
25157 s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g
25158 s/^/s,@/; s/!/@,|#_!!_#|/
25161 s/'"$ac_delim"'$/,g/; t
25162 s/$/\\/; p
25163 N; s/^.*\n//; s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g; b n
25164 ' >>$CONFIG_STATUS <conf$$subs.sed
25165 rm -f conf$$subs.sed
25166 cat >>$CONFIG_STATUS <<_ACEOF
25167 CEOF$ac_eof
25168 _ACEOF
25171 ac_delim='%!_!# '
25172 for ac_last_try in false false false false false :; do
25173 cat >conf$$subs.sed <<_ACEOF
25174 configuration!$configuration$ac_delim
25175 canonical!$canonical$ac_delim
25176 srcdir!$srcdir$ac_delim
25177 lispdir!$lispdir$ac_delim
25178 locallisppath!$locallisppath$ac_delim
25179 lisppath!$lisppath$ac_delim
25180 x_default_search_path!$x_default_search_path$ac_delim
25181 etcdir!$etcdir$ac_delim
25182 archlibdir!$archlibdir$ac_delim
25183 bitmapdir!$bitmapdir$ac_delim
25184 gamedir!$gamedir$ac_delim
25185 gameuser!$gameuser$ac_delim
25186 c_switch_system!$c_switch_system$ac_delim
25187 c_switch_machine!$c_switch_machine$ac_delim
25188 LD_SWITCH_X_SITE!$LD_SWITCH_X_SITE$ac_delim
25189 LD_SWITCH_X_SITE_AUX!$LD_SWITCH_X_SITE_AUX$ac_delim
25190 C_SWITCH_X_SITE!$C_SWITCH_X_SITE$ac_delim
25191 X_TOOLKIT_TYPE!$X_TOOLKIT_TYPE$ac_delim
25192 machfile!$machfile$ac_delim
25193 opsysfile!$opsysfile$ac_delim
25194 carbon_appdir!$carbon_appdir$ac_delim
25195 LTLIBOBJS!$LTLIBOBJS$ac_delim
25196 _ACEOF
25198 if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 22; then
25199 break
25200 elif $ac_last_try; then
25201 { { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
25202 echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
25203 { (exit 1); exit 1; }; }
25204 else
25205 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
25207 done
25209 ac_eof=`sed -n '/^CEOF[0-9]*$/s/CEOF/0/p' conf$$subs.sed`
25210 if test -n "$ac_eof"; then
25211 ac_eof=`echo "$ac_eof" | sort -nru | sed 1q`
25212 ac_eof=`expr $ac_eof + 1`
25215 cat >>$CONFIG_STATUS <<_ACEOF
25216 cat >"\$tmp/subs-2.sed" <<\CEOF$ac_eof
25217 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b end
25218 _ACEOF
25219 sed '
25220 s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g
25221 s/^/s,@/; s/!/@,|#_!!_#|/
25224 s/'"$ac_delim"'$/,g/; t
25225 s/$/\\/; p
25226 N; s/^.*\n//; s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g; b n
25227 ' >>$CONFIG_STATUS <conf$$subs.sed
25228 rm -f conf$$subs.sed
25229 cat >>$CONFIG_STATUS <<_ACEOF
25230 :end
25231 s/|#_!!_#|//g
25232 CEOF$ac_eof
25233 _ACEOF
25236 # VPATH may cause trouble with some makes, so we remove $(srcdir),
25237 # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
25238 # trailing colons and then remove the whole line if VPATH becomes empty
25239 # (actually we leave an empty line to preserve line numbers).
25240 if test "x$srcdir" = x.; then
25241 ac_vpsub='/^[ ]*VPATH[ ]*=/{
25242 s/:*\$(srcdir):*/:/
25243 s/:*\${srcdir}:*/:/
25244 s/:*@srcdir@:*/:/
25245 s/^\([^=]*=[ ]*\):*/\1/
25246 s/:*$//
25247 s/^[^=]*=[ ]*$//
25251 cat >>$CONFIG_STATUS <<\_ACEOF
25252 fi # test -n "$CONFIG_FILES"
25255 for ac_tag in :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS
25257 case $ac_tag in
25258 :[FHLC]) ac_mode=$ac_tag; continue;;
25259 esac
25260 case $ac_mode$ac_tag in
25261 :[FHL]*:*);;
25262 :L* | :C*:*) { { echo "$as_me:$LINENO: error: Invalid tag $ac_tag." >&5
25263 echo "$as_me: error: Invalid tag $ac_tag." >&2;}
25264 { (exit 1); exit 1; }; };;
25265 :[FH]-) ac_tag=-:-;;
25266 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
25267 esac
25268 ac_save_IFS=$IFS
25269 IFS=:
25270 set x $ac_tag
25271 IFS=$ac_save_IFS
25272 shift
25273 ac_file=$1
25274 shift
25276 case $ac_mode in
25277 :L) ac_source=$1;;
25278 :[FH])
25279 ac_file_inputs=
25280 for ac_f
25282 case $ac_f in
25283 -) ac_f="$tmp/stdin";;
25284 *) # Look for the file first in the build tree, then in the source tree
25285 # (if the path is not absolute). The absolute path cannot be DOS-style,
25286 # because $ac_f cannot contain `:'.
25287 test -f "$ac_f" ||
25288 case $ac_f in
25289 [\\/$]*) false;;
25290 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
25291 esac ||
25292 { { echo "$as_me:$LINENO: error: cannot find input file: $ac_f" >&5
25293 echo "$as_me: error: cannot find input file: $ac_f" >&2;}
25294 { (exit 1); exit 1; }; };;
25295 esac
25296 ac_file_inputs="$ac_file_inputs $ac_f"
25297 done
25299 # Let's still pretend it is `configure' which instantiates (i.e., don't
25300 # use $as_me), people would be surprised to read:
25301 # /* config.h. Generated by config.status. */
25302 configure_input="Generated from "`IFS=:
25303 echo $* | sed 's|^[^:]*/||;s|:[^:]*/|, |g'`" by configure."
25304 if test x"$ac_file" != x-; then
25305 configure_input="$ac_file. $configure_input"
25306 { echo "$as_me:$LINENO: creating $ac_file" >&5
25307 echo "$as_me: creating $ac_file" >&6;}
25310 case $ac_tag in
25311 *:-:* | *:-) cat >"$tmp/stdin";;
25312 esac
25314 esac
25316 ac_dir=`$as_dirname -- "$ac_file" ||
25317 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
25318 X"$ac_file" : 'X\(//\)[^/]' \| \
25319 X"$ac_file" : 'X\(//\)$' \| \
25320 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
25321 echo X"$ac_file" |
25322 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
25323 s//\1/
25326 /^X\(\/\/\)[^/].*/{
25327 s//\1/
25330 /^X\(\/\/\)$/{
25331 s//\1/
25334 /^X\(\/\).*/{
25335 s//\1/
25338 s/.*/./; q'`
25339 { as_dir="$ac_dir"
25340 case $as_dir in #(
25341 -*) as_dir=./$as_dir;;
25342 esac
25343 test -d "$as_dir" || { $as_mkdir_p && mkdir -p "$as_dir"; } || {
25344 as_dirs=
25345 while :; do
25346 case $as_dir in #(
25347 *\'*) as_qdir=`echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #(
25348 *) as_qdir=$as_dir;;
25349 esac
25350 as_dirs="'$as_qdir' $as_dirs"
25351 as_dir=`$as_dirname -- "$as_dir" ||
25352 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
25353 X"$as_dir" : 'X\(//\)[^/]' \| \
25354 X"$as_dir" : 'X\(//\)$' \| \
25355 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
25356 echo X"$as_dir" |
25357 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
25358 s//\1/
25361 /^X\(\/\/\)[^/].*/{
25362 s//\1/
25365 /^X\(\/\/\)$/{
25366 s//\1/
25369 /^X\(\/\).*/{
25370 s//\1/
25373 s/.*/./; q'`
25374 test -d "$as_dir" && break
25375 done
25376 test -z "$as_dirs" || eval "mkdir $as_dirs"
25377 } || test -d "$as_dir" || { { echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5
25378 echo "$as_me: error: cannot create directory $as_dir" >&2;}
25379 { (exit 1); exit 1; }; }; }
25380 ac_builddir=.
25382 case "$ac_dir" in
25383 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
25385 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
25386 # A ".." for each directory in $ac_dir_suffix.
25387 ac_top_builddir_sub=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'`
25388 case $ac_top_builddir_sub in
25389 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
25390 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
25391 esac ;;
25392 esac
25393 ac_abs_top_builddir=$ac_pwd
25394 ac_abs_builddir=$ac_pwd$ac_dir_suffix
25395 # for backward compatibility:
25396 ac_top_builddir=$ac_top_build_prefix
25398 case $srcdir in
25399 .) # We are building in place.
25400 ac_srcdir=.
25401 ac_top_srcdir=$ac_top_builddir_sub
25402 ac_abs_top_srcdir=$ac_pwd ;;
25403 [\\/]* | ?:[\\/]* ) # Absolute name.
25404 ac_srcdir=$srcdir$ac_dir_suffix;
25405 ac_top_srcdir=$srcdir
25406 ac_abs_top_srcdir=$srcdir ;;
25407 *) # Relative name.
25408 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
25409 ac_top_srcdir=$ac_top_build_prefix$srcdir
25410 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
25411 esac
25412 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
25415 case $ac_mode in
25418 # CONFIG_FILE
25421 case $INSTALL in
25422 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
25423 *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
25424 esac
25425 _ACEOF
25427 cat >>$CONFIG_STATUS <<\_ACEOF
25428 # If the template does not know about datarootdir, expand it.
25429 # FIXME: This hack should be removed a few years after 2.60.
25430 ac_datarootdir_hack=; ac_datarootdir_seen=
25432 case `sed -n '/datarootdir/ {
25436 /@datadir@/p
25437 /@docdir@/p
25438 /@infodir@/p
25439 /@localedir@/p
25440 /@mandir@/p
25441 ' $ac_file_inputs` in
25442 *datarootdir*) ac_datarootdir_seen=yes;;
25443 *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
25444 { echo "$as_me:$LINENO: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
25445 echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
25446 _ACEOF
25447 cat >>$CONFIG_STATUS <<_ACEOF
25448 ac_datarootdir_hack='
25449 s&@datadir@&$datadir&g
25450 s&@docdir@&$docdir&g
25451 s&@infodir@&$infodir&g
25452 s&@localedir@&$localedir&g
25453 s&@mandir@&$mandir&g
25454 s&\\\${datarootdir}&$datarootdir&g' ;;
25455 esac
25456 _ACEOF
25458 # Neutralize VPATH when `$srcdir' = `.'.
25459 # Shell code in configure.ac might set extrasub.
25460 # FIXME: do we really want to maintain this feature?
25461 cat >>$CONFIG_STATUS <<_ACEOF
25462 sed "$ac_vpsub
25463 $extrasub
25464 _ACEOF
25465 cat >>$CONFIG_STATUS <<\_ACEOF
25467 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
25468 s&@configure_input@&$configure_input&;t t
25469 s&@top_builddir@&$ac_top_builddir_sub&;t t
25470 s&@srcdir@&$ac_srcdir&;t t
25471 s&@abs_srcdir@&$ac_abs_srcdir&;t t
25472 s&@top_srcdir@&$ac_top_srcdir&;t t
25473 s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
25474 s&@builddir@&$ac_builddir&;t t
25475 s&@abs_builddir@&$ac_abs_builddir&;t t
25476 s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
25477 s&@INSTALL@&$ac_INSTALL&;t t
25478 $ac_datarootdir_hack
25479 " $ac_file_inputs | sed -f "$tmp/subs-1.sed" | sed -f "$tmp/subs-2.sed" >$tmp/out
25481 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
25482 { ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out"`; test -n "$ac_out"; } &&
25483 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' "$tmp/out"`; test -z "$ac_out"; } &&
25484 { echo "$as_me:$LINENO: WARNING: $ac_file contains a reference to the variable \`datarootdir'
25485 which seems to be undefined. Please make sure it is defined." >&5
25486 echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
25487 which seems to be undefined. Please make sure it is defined." >&2;}
25489 rm -f "$tmp/stdin"
25490 case $ac_file in
25491 -) cat "$tmp/out"; rm -f "$tmp/out";;
25492 *) rm -f "$ac_file"; mv "$tmp/out" $ac_file;;
25493 esac
25497 # CONFIG_HEADER
25499 _ACEOF
25501 # Transform confdefs.h into a sed script `conftest.defines', that
25502 # substitutes the proper values into config.h.in to produce config.h.
25503 rm -f conftest.defines conftest.tail
25504 # First, append a space to every undef/define line, to ease matching.
25505 echo 's/$/ /' >conftest.defines
25506 # Then, protect against being on the right side of a sed subst, or in
25507 # an unquoted here document, in config.status. If some macros were
25508 # called several times there might be several #defines for the same
25509 # symbol, which is useless. But do not sort them, since the last
25510 # AC_DEFINE must be honored.
25511 ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
25512 # These sed commands are passed to sed as "A NAME B PARAMS C VALUE D", where
25513 # NAME is the cpp macro being defined, VALUE is the value it is being given.
25514 # PARAMS is the parameter list in the macro definition--in most cases, it's
25515 # just an empty string.
25516 ac_dA='s,^\\([ #]*\\)[^ ]*\\([ ]*'
25517 ac_dB='\\)[ (].*,\\1define\\2'
25518 ac_dC=' '
25519 ac_dD=' ,'
25521 uniq confdefs.h |
25522 sed -n '
25523 t rset
25524 :rset
25525 s/^[ ]*#[ ]*define[ ][ ]*//
25526 t ok
25529 s/[\\&,]/\\&/g
25530 s/^\('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/ '"$ac_dA"'\1'"$ac_dB"'\2'"${ac_dC}"'\3'"$ac_dD"'/p
25531 s/^\('"$ac_word_re"'\)[ ]*\(.*\)/'"$ac_dA"'\1'"$ac_dB$ac_dC"'\2'"$ac_dD"'/p
25532 ' >>conftest.defines
25534 # Remove the space that was appended to ease matching.
25535 # Then replace #undef with comments. This is necessary, for
25536 # example, in the case of _POSIX_SOURCE, which is predefined and required
25537 # on some systems where configure will not decide to define it.
25538 # (The regexp can be short, since the line contains either #define or #undef.)
25539 echo 's/ $//
25540 s,^[ #]*u.*,/* & */,' >>conftest.defines
25542 # Break up conftest.defines:
25543 ac_max_sed_lines=50
25545 # First sed command is: sed -f defines.sed $ac_file_inputs >"$tmp/out1"
25546 # Second one is: sed -f defines.sed "$tmp/out1" >"$tmp/out2"
25547 # Third one will be: sed -f defines.sed "$tmp/out2" >"$tmp/out1"
25548 # et cetera.
25549 ac_in='$ac_file_inputs'
25550 ac_out='"$tmp/out1"'
25551 ac_nxt='"$tmp/out2"'
25553 while :
25555 # Write a here document:
25556 cat >>$CONFIG_STATUS <<_ACEOF
25557 # First, check the format of the line:
25558 cat >"\$tmp/defines.sed" <<\\CEOF
25559 /^[ ]*#[ ]*undef[ ][ ]*$ac_word_re[ ]*\$/b def
25560 /^[ ]*#[ ]*define[ ][ ]*$ac_word_re[( ]/b def
25562 :def
25563 _ACEOF
25564 sed ${ac_max_sed_lines}q conftest.defines >>$CONFIG_STATUS
25565 echo 'CEOF
25566 sed -f "$tmp/defines.sed"' "$ac_in >$ac_out" >>$CONFIG_STATUS
25567 ac_in=$ac_out; ac_out=$ac_nxt; ac_nxt=$ac_in
25568 sed 1,${ac_max_sed_lines}d conftest.defines >conftest.tail
25569 grep . conftest.tail >/dev/null || break
25570 rm -f conftest.defines
25571 mv conftest.tail conftest.defines
25572 done
25573 rm -f conftest.defines conftest.tail
25575 echo "ac_result=$ac_in" >>$CONFIG_STATUS
25576 cat >>$CONFIG_STATUS <<\_ACEOF
25577 if test x"$ac_file" != x-; then
25578 echo "/* $configure_input */" >"$tmp/config.h"
25579 cat "$ac_result" >>"$tmp/config.h"
25580 if diff $ac_file "$tmp/config.h" >/dev/null 2>&1; then
25581 { echo "$as_me:$LINENO: $ac_file is unchanged" >&5
25582 echo "$as_me: $ac_file is unchanged" >&6;}
25583 else
25584 rm -f $ac_file
25585 mv "$tmp/config.h" $ac_file
25587 else
25588 echo "/* $configure_input */"
25589 cat "$ac_result"
25591 rm -f "$tmp/out12"
25594 :C) { echo "$as_me:$LINENO: executing $ac_file commands" >&5
25595 echo "$as_me: executing $ac_file commands" >&6;}
25597 esac
25600 case $ac_file$ac_mode in
25601 "default":C)
25603 ### Make the necessary directories, if they don't exist.
25604 for dir in etc lisp ; do
25605 test -d ${dir} || mkdir ${dir}
25606 done
25608 # Build src/Makefile from ${srcdir}/src/Makefile.c
25609 # and lib-src/Makefile from ${srcdir}/lib-src/Makefile.c
25610 # This must be done after src/config.h is built, since we rely on that file.
25612 # Now get this: Some word that is part of the ${srcdir} directory name
25613 # or the ${configuration} value might, just might, happen to be an
25614 # identifier like `sun4' or `i386' or something, and be predefined by
25615 # the C preprocessor to some helpful value like 1, or maybe the empty
25616 # string. Needless to say consequent macro substitutions are less
25617 # than conducive to the makefile finding the correct directory.
25618 undefs="`echo $top_srcdir $configuration $canonical |
25619 sed -e 's/[^a-zA-Z0-9_]/ /g' -e 's/^/ /' -e 's/ *$//' \
25620 -e 's/ */ -U/g' -e 's/-U[0-9][^ ]*//g' \
25623 echo creating src/epaths.h
25624 ${MAKE-make} epaths-force
25626 # As of 2000-11-19, newest development versions of GNU cpp preprocess
25627 # `..' to `. .' unless invoked with -traditional
25629 if test "x$GCC" = xyes && test "x$CPP_NEED_TRADITIONAL" = xyes; then
25630 CPPFLAGS="$CPPFLAGS -traditional"
25633 echo creating lib-src/Makefile
25634 ( cd lib-src
25635 rm -f junk.c junk1.c junk2.c
25636 sed -e '/start of cpp stuff/q' \
25637 < Makefile.c > junk1.c
25638 sed -e '1,/start of cpp stuff/d'\
25639 -e 's,/\*\*/#\(.*\)$,/* \1 */,' \
25640 < Makefile.c > junk.c
25641 $CPP $undefs -I. -I$srcdir/src $CPPFLAGS junk.c | \
25642 sed -e 's/^ / /' -e '/^#/d' -e '/^[ \f]*$/d' > junk2.c
25643 cat junk1.c junk2.c > Makefile.new
25644 rm -f junk.c junk1.c junk2.c
25645 chmod 444 Makefile.new
25646 mv -f Makefile.new Makefile
25649 echo creating src/Makefile
25650 ( cd src
25651 rm -f junk.c junk1.c junk2.c
25652 sed -e '/start of cpp stuff/q' \
25653 < Makefile.c > junk1.c
25654 sed -e '1,/start of cpp stuff/d'\
25655 -e 's,/\*\*/#\(.*\)$,/* \1 */,' \
25656 < Makefile.c > junk.c
25657 $CPP $undefs -I. -I$srcdir/src $CPPFLAGS junk.c | \
25658 sed -e 's/^ / /' -e '/^#/d' -e '/^[ \f]*$/d' > junk2.c
25659 cat junk1.c junk2.c > Makefile.new
25660 rm -f junk.c junk1.c junk2.c
25661 chmod 444 Makefile.new
25662 mv -f Makefile.new Makefile
25665 if test ! -f src/.gdbinit && test -f $srcdir/src/.gdbinit; then
25666 echo creating src/.gdbinit
25667 echo source $srcdir/src/.gdbinit > src/.gdbinit
25670 # This is how we know whether to re-run configure in certain cases.
25671 touch src/config.stamp
25675 esac
25676 done # for ac_tag
25679 { (exit 0); exit 0; }
25680 _ACEOF
25681 chmod +x $CONFIG_STATUS
25682 ac_clean_files=$ac_clean_files_save
25685 # configure is writing to config.log, and then calls config.status.
25686 # config.status does its own redirection, appending to config.log.
25687 # Unfortunately, on DOS this fails, as config.log is still kept open
25688 # by configure, so config.status won't be able to write to it; its
25689 # output is simply discarded. So we exec the FD to /dev/null,
25690 # effectively closing config.log, so it can be properly (re)opened and
25691 # appended to by config.status. When coming back to configure, we
25692 # need to make the FD available again.
25693 if test "$no_create" != yes; then
25694 ac_cs_success=:
25695 ac_config_status_args=
25696 test "$silent" = yes &&
25697 ac_config_status_args="$ac_config_status_args --quiet"
25698 exec 5>/dev/null
25699 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
25700 exec 5>>config.log
25701 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
25702 # would make configure fail if this is the last instruction.
25703 $ac_cs_success || { (exit 1); exit 1; }