2 # Guess values for system-dependent variables and create Makefiles.
3 # Generated by GNU Autoconf 2.65 for emacs 23.2.90.
6 # Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
7 # 2002, 2003, 2004, 2005, 2006, 2007, 2008, 2009 Free Software Foundation,
11 # This configure script is free software; the Free Software Foundation
12 # gives unlimited permission to copy, distribute and modify it.
13 ## -------------------- ##
14 ## M4sh Initialization. ##
15 ## -------------------- ##
17 # Be more Bourne compatible
18 DUALCASE
=1; export DUALCASE
# for MKS sh
19 if test -n "${ZSH_VERSION+set}" && (emulate sh
) >/dev
/null
2>&1; then :
22 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
23 # is contrary to our usage. Disable this feature.
24 alias -g '${1+"$@"}'='"$@"'
27 case `(set -o) 2>/dev/null` in #(
39 # Printing a long string crashes Solaris 7 /usr/bin/printf.
40 as_echo
='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
41 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
42 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
43 # Prefer a ksh shell builtin over an external printf program on Solaris,
44 # but without wasting forks for bash or zsh.
45 if test -z "$BASH_VERSION$ZSH_VERSION" \
46 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
48 as_echo_n='print
-rn --'
49 elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
53 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
54 as_echo_body='eval /usr
/ucb
/echo -n "$1$as_nl"'
55 as_echo_n='/usr
/ucb
/echo -n'
57 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
62 expr "X$arg" : "X\\(.*\\)$as_nl";
63 arg
=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
65 expr "X$arg" : "X\\(.*\\)" |
tr -d "$as_nl"
68 as_echo_n='sh
-c $as_echo_n_body as_echo
'
71 as_echo='sh
-c $as_echo_body as_echo
'
74 # The user is always right.
75 if test "${PATH_SEPARATOR+set}" != set; then
77 (PATH='/bin
;/bin
'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
78 (PATH='/bin
:/bin
'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
85 # We need space, tab and new line, in precisely that order. Quoting is
86 # there to prevent editors from complaining about space-tab.
87 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
88 # splitting by setting IFS to empty value.)
91 # Find who we are. Look in the path if we contain no directory separator.
93 *[\\/]* ) as_myself=$0 ;;
94 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
98 test -z "$as_dir" && as_dir=.
99 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
105 # We did not find ourselves, most probably we were run as `sh COMMAND'
106 # in which case we are not to be found in the path.
107 if test "x$as_myself" = x
; then
110 if test ! -f "$as_myself"; then
111 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
115 # Unset variables that we do not need and which cause bugs (e.g. in
116 # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
117 # suppresses any "Segmentation fault" message there. '((' could
118 # trigger a bug in pdksh 5.2.14.
119 for as_var
in BASH_ENV ENV MAIL MAILPATH
120 do eval test x\
${$as_var+set} = xset \
121 && ( (unset $as_var) ||
exit 1) >/dev
/null
2>&1 && unset $as_var ||
:
134 (unset CDPATH
) >/dev
/null
2>&1 && unset CDPATH
136 if test "x$CONFIG_SHELL" = x
; then
137 as_bourne_compatible
="if test -n \"\${ZSH_VERSION+set}\" && (emulate sh) >/dev/null 2>&1; then :
140 # Pre-4.2 versions of Zsh do word splitting on \${1+\"\$@\"}, which
141 # is contrary to our usage. Disable this feature.
142 alias -g '\${1+\"\$@\"}'='\"\$@\"'
145 case \`(set -o) 2>/dev/null\` in #(
153 as_required
="as_fn_return () { (exit \$1); }
154 as_fn_success () { as_fn_return 0; }
155 as_fn_failure () { as_fn_return 1; }
156 as_fn_ret_success () { return 0; }
157 as_fn_ret_failure () { return 1; }
160 as_fn_success || { exitcode=1; echo as_fn_success failed.; }
161 as_fn_failure && { exitcode=1; echo as_fn_failure succeeded.; }
162 as_fn_ret_success || { exitcode=1; echo as_fn_ret_success failed.; }
163 as_fn_ret_failure && { exitcode=1; echo as_fn_ret_failure succeeded.; }
164 if ( set x; as_fn_ret_success y && test x = \"\$1\" ); then :
167 exitcode=1; echo positional parameters were not saved.
169 test x\$exitcode = x0 || exit 1"
170 as_suggested
=" as_lineno_1=";as_suggested
=$as_suggested$LINENO;as_suggested
=$as_suggested" as_lineno_1a=\$LINENO
171 as_lineno_2=";as_suggested
=$as_suggested$LINENO;as_suggested
=$as_suggested" as_lineno_2a=\$LINENO
172 eval 'test \"x\$as_lineno_1'\$as_run'\" != \"x\$as_lineno_2'\$as_run'\" &&
173 test \"x\`expr \$as_lineno_1'\$as_run' + 1\`\" = \"x\$as_lineno_2'\$as_run'\"' || exit 1
174 test \$(( 1 + 1 )) = 2 || exit 1"
175 if (eval "$as_required") 2>/dev
/null
; then :
180 if test x
$as_have_required = xyes
&& (eval "$as_suggested") 2>/dev
/null
; then :
183 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
185 for as_dir
in /bin
$PATH_SEPARATOR/usr
/bin
$PATH_SEPARATOR$PATH
188 test -z "$as_dir" && as_dir
=.
192 for as_base
in sh bash ksh sh5
; do
193 # Try only shells that exist, to save several forks.
194 as_shell
=$as_dir/$as_base
195 if { test -f "$as_shell" ||
test -f "$as_shell.exe"; } &&
196 { $as_echo "$as_bourne_compatible""$as_required" | as_run
=a
"$as_shell"; } 2>/dev
/null
; then :
197 CONFIG_SHELL
=$as_shell as_have_required
=yes
198 if { $as_echo "$as_bourne_compatible""$as_suggested" | as_run
=a
"$as_shell"; } 2>/dev
/null
; then :
206 $as_found ||
{ if { test -f "$SHELL" ||
test -f "$SHELL.exe"; } &&
207 { $as_echo "$as_bourne_compatible""$as_required" | as_run
=a
"$SHELL"; } 2>/dev
/null
; then :
208 CONFIG_SHELL
=$SHELL as_have_required
=yes
213 if test "x$CONFIG_SHELL" != x
; then :
214 # We cannot yet assume a decent shell, so we have to provide a
215 # neutralization value for shells without unset; and this also
216 # works around shells that cannot unset nonexistent variables.
219 (unset BASH_ENV
) >/dev
/null
2>&1 && unset BASH_ENV ENV
221 exec "$CONFIG_SHELL" "$as_myself" ${1+"$@"}
224 if test x
$as_have_required = xno
; then :
225 $as_echo "$0: This script requires a shell more modern than all"
226 $as_echo "$0: the shells that I found on your system."
227 if test x
${ZSH_VERSION+set} = xset
; then
228 $as_echo "$0: In particular, zsh $ZSH_VERSION has bugs and should"
229 $as_echo "$0: be upgraded to zsh 4.3.4 or later."
231 $as_echo "$0: Please tell bug-autoconf@gnu.org about your system,
232 $0: including any error possibly output before this
233 $0: message. Then install a modern shell, or manually run
234 $0: the script under such a shell if you do have one."
240 SHELL
=${CONFIG_SHELL-/bin/sh}
242 # Unset more variables known to interfere with behavior of common tools.
243 CLICOLOR_FORCE
= GREP_OPTIONS
=
244 unset CLICOLOR_FORCE GREP_OPTIONS
246 ## --------------------- ##
247 ## M4sh Shell Functions. ##
248 ## --------------------- ##
251 # Portably unset VAR.
254 { eval $1=; unset $1;}
258 # as_fn_set_status STATUS
259 # -----------------------
260 # Set $? to STATUS, without forking.
268 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
278 # Create "$as_dir" as a directory, including parents if necessary.
283 -*) as_dir
=.
/$as_dir;;
285 test -d "$as_dir" ||
eval $as_mkdir_p ||
{
289 *\'*) as_qdir
=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
292 as_dirs
="'$as_qdir' $as_dirs"
293 as_dir
=`$as_dirname -- "$as_dir" ||
294 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
295 X"$as_dir" : 'X\(//\)[^/]' \| \
296 X"$as_dir" : 'X\(//\)$' \| \
297 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
298 $as_echo X"$as_dir" |
299 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
316 test -d "$as_dir" && break
318 test -z "$as_dirs" ||
eval "mkdir $as_dirs"
319 } ||
test -d "$as_dir" || as_fn_error
"cannot create directory $as_dir"
323 # as_fn_append VAR VALUE
324 # ----------------------
325 # Append the text in VALUE to the end of the definition contained in VAR. Take
326 # advantage of any shell optimizations that allow amortized linear growth over
327 # repeated appends, instead of the typical quadratic growth present in naive
329 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev
/null
; then :
330 eval 'as_fn_append ()
343 # Perform arithmetic evaluation on the ARGs, and store the result in the
344 # global $as_val. Take advantage of shells that can avoid forks. The arguments
345 # must be portable across $(()) and expr.
346 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev
/null
; then :
354 as_val
=`expr "$@" || test $? -eq 1`
359 # as_fn_error ERROR [LINENO LOG_FD]
360 # ---------------------------------
361 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
362 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
363 # script with status $?, using 1 if that was 0.
366 as_status
=$?
; test $as_status -eq 0 && as_status
=1
368 as_lineno
=${as_lineno-"$2"} as_lineno_stack
=as_lineno_stack
=$as_lineno_stack
369 $as_echo "$as_me:${as_lineno-$LINENO}: error: $1" >&$3
371 $as_echo "$as_me: error: $1" >&2
372 as_fn_exit
$as_status
375 if expr a
: '\(a\)' >/dev
/null
2>&1 &&
376 test "X`expr 00001 : '.*\(...\)'`" = X001
; then
382 if (basename -- /) >/dev
/null
2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
388 if (as_dir
=`dirname -- /` && test "X$as_dir" = X
/) >/dev
/null
2>&1; then
394 as_me
=`$as_basename -- "$0" ||
395 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
396 X"$0" : 'X\(//\)$' \| \
397 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
399 sed '/^.*\/\([^/][^/]*\)\/*$/{
413 # Avoid depending upon Character Ranges.
414 as_cr_letters
='abcdefghijklmnopqrstuvwxyz'
415 as_cr_LETTERS
='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
416 as_cr_Letters
=$as_cr_letters$as_cr_LETTERS
417 as_cr_digits
='0123456789'
418 as_cr_alnum
=$as_cr_Letters$as_cr_digits
421 as_lineno_1
=$LINENO as_lineno_1a
=$LINENO
422 as_lineno_2
=$LINENO as_lineno_2a
=$LINENO
423 eval 'test "x$as_lineno_1'$as_run'" != "x$as_lineno_2'$as_run'" &&
424 test "x`expr $as_lineno_1'$as_run' + 1`" = "x$as_lineno_2'$as_run'"' ||
{
425 # Blame Lee E. McMahon (1931-1989) for sed's syntax. :-)
437 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
441 chmod +x
"$as_me.lineno" ||
442 { $as_echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2; as_fn_exit
1; }
444 # Don't try to exec as it changes $[0], causing all sort of problems
445 # (the dirname of $[0] is not the place where we might find the
446 # original and so on. Autoconf is especially sensitive to this).
448 # Exit status is that of the last command.
452 ECHO_C
= ECHO_N
= ECHO_T
=
453 case `echo -n x` in #(((((
455 case `echo 'xy\c'` in
456 *c
*) ECHO_T
=' ';; # ECHO_T is single tab character.
458 *) echo `echo ksh88 bug on AIX 6.1` > /dev
/null
465 rm -f conf$$ conf$$.exe conf$$.
file
466 if test -d conf$$.dir
; then
467 rm -f conf$$.dir
/conf$$.
file
470 mkdir conf$$.dir
2>/dev
/null
472 if (echo >conf$$.
file) 2>/dev
/null
; then
473 if ln -s conf$$.
file conf$$
2>/dev
/null
; then
475 # ... but there are two gotchas:
476 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
477 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
478 # In both cases, we have to default to `cp -p'.
479 ln -s conf$$.
file conf$$.dir
2>/dev
/null
&& test ! -f conf$$.exe ||
481 elif ln conf$$.
file conf$$
2>/dev
/null
; then
489 rm -f conf$$ conf$$.exe conf$$.dir
/conf$$.
file conf$$.
file
490 rmdir conf$$.dir
2>/dev
/null
492 if mkdir
-p .
2>/dev
/null
; then
493 as_mkdir_p
='mkdir -p "$as_dir"'
495 test -d .
/-p && rmdir .
/-p
499 if test -x / >/dev
/null
2>&1; then
502 if ls -dL / >/dev
/null
2>&1; then
509 if test -d "$1"; then
515 case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in #((
516 ???[sx]*):;;*)false;;esac;fi
520 as_executable_p
=$as_test_x
522 # Sed expression to map a string onto a valid CPP name.
523 as_tr_cpp
="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
525 # Sed expression to map a string onto a valid variable name.
526 as_tr_sh
="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
529 test -n "$DJDIR" ||
exec 7<&0 </dev
/null
533 # hostname on some systems (SVR3.2, Linux) returns a bogus exit status,
534 # so uname gets run too.
535 ac_hostname
=`(hostname || uname -n) 2>/dev/null | sed 1q`
540 ac_default_prefix
=/usr
/local
542 ac_config_libobj_dir
=.
549 # Identity of this package.
551 PACKAGE_TARNAME
='emacs'
552 PACKAGE_VERSION
='23.2.90'
553 PACKAGE_STRING
='emacs 23.2.90'
557 ac_unique_file
="src/lisp.h"
558 # Factoring default headers for most tests.
559 ac_includes_default
="\
561 #ifdef HAVE_SYS_TYPES_H
562 # include <sys/types.h>
564 #ifdef HAVE_SYS_STAT_H
565 # include <sys/stat.h>
571 # ifdef HAVE_STDLIB_H
576 # if !defined STDC_HEADERS && defined HAVE_MEMORY_H
581 #ifdef HAVE_STRINGS_H
582 # include <strings.h>
584 #ifdef HAVE_INTTYPES_H
585 # include <inttypes.h>
594 ac_config_libobj_dir
=src
597 ac_subst_vars
='LTLIBOBJS
599 LIB_SRC_EXTRA_INSTALLABLES
601 GNUSTEP_SYSTEM_LIBRARIES
602 GNUSTEP_SYSTEM_HEADERS
621 x_default_search_path
718 program_transform_name
731 enable_option_checking
748 with_toolkit_scroll_bars
761 enable_ns_self_contained
763 enable_maintainer_mode
771 ac_precious_vars
='build_alias
783 # Initialize some variables set by options.
785 ac_init_version
=false
786 ac_unrecognized_opts
=
788 # The variables have the same names as the options, with
789 # dashes changed to underlines.
797 program_transform_name
=s
,x
,x
,
805 # Installation directory options.
806 # These are left unexpanded so users can "make install exec_prefix=/foo"
807 # and all the variables that are supposed to be based on exec_prefix
808 # by default will actually change.
809 # Use braces instead of parens because sh, perl, etc. also accept them.
810 # (The list follows the same order as the GNU Coding Standards.)
811 bindir
='${exec_prefix}/bin'
812 sbindir
='${exec_prefix}/sbin'
813 libexecdir
='${exec_prefix}/libexec'
814 datarootdir
='${prefix}/share'
815 datadir
='${datarootdir}'
816 sysconfdir
='${prefix}/etc'
817 sharedstatedir
='${prefix}/com'
818 localstatedir
='${prefix}/var'
819 includedir
='${prefix}/include'
820 oldincludedir
='/usr/include'
821 docdir
='${datarootdir}/doc/${PACKAGE_TARNAME}'
822 infodir
='${datarootdir}/info'
827 libdir
='${exec_prefix}/lib'
828 localedir
='${datarootdir}/locale'
829 mandir
='${datarootdir}/man'
835 # If the previous option needs an argument, assign it.
836 if test -n "$ac_prev"; then
837 eval $ac_prev=\
$ac_option
843 *=*) ac_optarg
=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
847 # Accept the important Cygnus configure options, so we can diagnose typos.
849 case $ac_dashdash$ac_option in
853 -bindir |
--bindir |
--bindi |
--bind |
--bin |
--bi)
855 -bindir=* |
--bindir=* |
--bindi=* |
--bind=* |
--bin=* |
--bi=*)
858 -build |
--build |
--buil |
--bui |
--bu)
859 ac_prev
=build_alias
;;
860 -build=* |
--build=* |
--buil=* |
--bui=* |
--bu=*)
861 build_alias
=$ac_optarg ;;
863 -cache-file |
--cache-file |
--cache-fil |
--cache-fi \
864 |
--cache-f |
--cache- |
--cache |
--cach |
--cac |
--ca |
--c)
865 ac_prev
=cache_file
;;
866 -cache-file=* |
--cache-file=* |
--cache-fil=* |
--cache-fi=* \
867 |
--cache-f=* |
--cache-=* |
--cache=* |
--cach=* |
--cac=* |
--ca=* |
--c=*)
868 cache_file
=$ac_optarg ;;
871 cache_file
=config.cache
;;
873 -datadir |
--datadir |
--datadi |
--datad)
875 -datadir=* |
--datadir=* |
--datadi=* |
--datad=*)
876 datadir
=$ac_optarg ;;
878 -datarootdir |
--datarootdir |
--datarootdi |
--datarootd |
--dataroot \
879 |
--dataroo |
--dataro |
--datar)
880 ac_prev
=datarootdir
;;
881 -datarootdir=* |
--datarootdir=* |
--datarootdi=* |
--datarootd=* \
882 |
--dataroot=* |
--dataroo=* |
--dataro=* |
--datar=*)
883 datarootdir
=$ac_optarg ;;
885 -disable-* |
--disable-*)
886 ac_useropt
=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
887 # Reject names that are not valid shell variable names.
888 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev
/null
&&
889 as_fn_error
"invalid feature name: $ac_useropt"
890 ac_useropt_orig
=$ac_useropt
891 ac_useropt
=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
892 case $ac_user_opts in
896 *) ac_unrecognized_opts
="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
897 ac_unrecognized_sep
=', ';;
899 eval enable_
$ac_useropt=no
;;
901 -docdir |
--docdir |
--docdi |
--doc |
--do)
903 -docdir=* |
--docdir=* |
--docdi=* |
--doc=* |
--do=*)
906 -dvidir |
--dvidir |
--dvidi |
--dvid |
--dvi |
--dv)
908 -dvidir=* |
--dvidir=* |
--dvidi=* |
--dvid=* |
--dvi=* |
--dv=*)
911 -enable-* |
--enable-*)
912 ac_useropt
=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
913 # Reject names that are not valid shell variable names.
914 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev
/null
&&
915 as_fn_error
"invalid feature name: $ac_useropt"
916 ac_useropt_orig
=$ac_useropt
917 ac_useropt
=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
918 case $ac_user_opts in
922 *) ac_unrecognized_opts
="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
923 ac_unrecognized_sep
=', ';;
925 eval enable_
$ac_useropt=\
$ac_optarg ;;
927 -exec-prefix |
--exec_prefix |
--exec-prefix |
--exec-prefi \
928 |
--exec-pref |
--exec-pre |
--exec-pr |
--exec-p |
--exec- \
929 |
--exec |
--exe |
--ex)
930 ac_prev
=exec_prefix
;;
931 -exec-prefix=* |
--exec_prefix=* |
--exec-prefix=* |
--exec-prefi=* \
932 |
--exec-pref=* |
--exec-pre=* |
--exec-pr=* |
--exec-p=* |
--exec-=* \
933 |
--exec=* |
--exe=* |
--ex=*)
934 exec_prefix
=$ac_optarg ;;
936 -gas |
--gas |
--ga |
--g)
937 # Obsolete; use --with-gas.
940 -help |
--help |
--hel |
--he |
-h)
942 -help=r
* |
--help=r
* |
--hel=r
* |
--he=r
* |
-hr*)
943 ac_init_help
=recursive
;;
944 -help=s
* |
--help=s
* |
--hel=s
* |
--he=s
* |
-hs*)
945 ac_init_help
=short
;;
947 -host |
--host |
--hos |
--ho)
948 ac_prev
=host_alias
;;
949 -host=* |
--host=* |
--hos=* |
--ho=*)
950 host_alias
=$ac_optarg ;;
952 -htmldir |
--htmldir |
--htmldi |
--htmld |
--html |
--htm |
--ht)
954 -htmldir=* |
--htmldir=* |
--htmldi=* |
--htmld=* |
--html=* |
--htm=* \
956 htmldir
=$ac_optarg ;;
958 -includedir |
--includedir |
--includedi |
--included |
--include \
959 |
--includ |
--inclu |
--incl |
--inc)
960 ac_prev
=includedir
;;
961 -includedir=* |
--includedir=* |
--includedi=* |
--included=* |
--include=* \
962 |
--includ=* |
--inclu=* |
--incl=* |
--inc=*)
963 includedir
=$ac_optarg ;;
965 -infodir |
--infodir |
--infodi |
--infod |
--info |
--inf)
967 -infodir=* |
--infodir=* |
--infodi=* |
--infod=* |
--info=* |
--inf=*)
968 infodir
=$ac_optarg ;;
970 -libdir |
--libdir |
--libdi |
--libd)
972 -libdir=* |
--libdir=* |
--libdi=* |
--libd=*)
975 -libexecdir |
--libexecdir |
--libexecdi |
--libexecd |
--libexec \
976 |
--libexe |
--libex |
--libe)
977 ac_prev
=libexecdir
;;
978 -libexecdir=* |
--libexecdir=* |
--libexecdi=* |
--libexecd=* |
--libexec=* \
979 |
--libexe=* |
--libex=* |
--libe=*)
980 libexecdir
=$ac_optarg ;;
982 -localedir |
--localedir |
--localedi |
--localed |
--locale)
984 -localedir=* |
--localedir=* |
--localedi=* |
--localed=* |
--locale=*)
985 localedir
=$ac_optarg ;;
987 -localstatedir |
--localstatedir |
--localstatedi |
--localstated \
988 |
--localstate |
--localstat |
--localsta |
--localst |
--locals)
989 ac_prev
=localstatedir
;;
990 -localstatedir=* |
--localstatedir=* |
--localstatedi=* |
--localstated=* \
991 |
--localstate=* |
--localstat=* |
--localsta=* |
--localst=* |
--locals=*)
992 localstatedir
=$ac_optarg ;;
994 -mandir |
--mandir |
--mandi |
--mand |
--man |
--ma |
--m)
996 -mandir=* |
--mandir=* |
--mandi=* |
--mand=* |
--man=* |
--ma=* |
--m=*)
1000 # Obsolete; use --without-fp.
1003 -no-create |
--no-create |
--no-creat |
--no-crea |
--no-cre \
1004 |
--no-cr |
--no-c |
-n)
1007 -no-recursion |
--no-recursion |
--no-recursio |
--no-recursi \
1008 |
--no-recurs |
--no-recur |
--no-recu |
--no-rec |
--no-re |
--no-r)
1011 -oldincludedir |
--oldincludedir |
--oldincludedi |
--oldincluded \
1012 |
--oldinclude |
--oldinclud |
--oldinclu |
--oldincl |
--oldinc \
1013 |
--oldin |
--oldi |
--old |
--ol |
--o)
1014 ac_prev
=oldincludedir
;;
1015 -oldincludedir=* |
--oldincludedir=* |
--oldincludedi=* |
--oldincluded=* \
1016 |
--oldinclude=* |
--oldinclud=* |
--oldinclu=* |
--oldincl=* |
--oldinc=* \
1017 |
--oldin=* |
--oldi=* |
--old=* |
--ol=* |
--o=*)
1018 oldincludedir
=$ac_optarg ;;
1020 -prefix |
--prefix |
--prefi |
--pref |
--pre |
--pr |
--p)
1022 -prefix=* |
--prefix=* |
--prefi=* |
--pref=* |
--pre=* |
--pr=* |
--p=*)
1023 prefix
=$ac_optarg ;;
1025 -program-prefix |
--program-prefix |
--program-prefi |
--program-pref \
1026 |
--program-pre |
--program-pr |
--program-p)
1027 ac_prev
=program_prefix
;;
1028 -program-prefix=* |
--program-prefix=* |
--program-prefi=* \
1029 |
--program-pref=* |
--program-pre=* |
--program-pr=* |
--program-p=*)
1030 program_prefix
=$ac_optarg ;;
1032 -program-suffix |
--program-suffix |
--program-suffi |
--program-suff \
1033 |
--program-suf |
--program-su |
--program-s)
1034 ac_prev
=program_suffix
;;
1035 -program-suffix=* |
--program-suffix=* |
--program-suffi=* \
1036 |
--program-suff=* |
--program-suf=* |
--program-su=* |
--program-s=*)
1037 program_suffix
=$ac_optarg ;;
1039 -program-transform-name |
--program-transform-name \
1040 |
--program-transform-nam |
--program-transform-na \
1041 |
--program-transform-n |
--program-transform- \
1042 |
--program-transform |
--program-transfor \
1043 |
--program-transfo |
--program-transf \
1044 |
--program-trans |
--program-tran \
1045 |
--progr-tra |
--program-tr |
--program-t)
1046 ac_prev
=program_transform_name
;;
1047 -program-transform-name=* |
--program-transform-name=* \
1048 |
--program-transform-nam=* |
--program-transform-na=* \
1049 |
--program-transform-n=* |
--program-transform-=* \
1050 |
--program-transform=* |
--program-transfor=* \
1051 |
--program-transfo=* |
--program-transf=* \
1052 |
--program-trans=* |
--program-tran=* \
1053 |
--progr-tra=* |
--program-tr=* |
--program-t=*)
1054 program_transform_name
=$ac_optarg ;;
1056 -pdfdir |
--pdfdir |
--pdfdi |
--pdfd |
--pdf |
--pd)
1058 -pdfdir=* |
--pdfdir=* |
--pdfdi=* |
--pdfd=* |
--pdf=* |
--pd=*)
1059 pdfdir
=$ac_optarg ;;
1061 -psdir |
--psdir |
--psdi |
--psd |
--ps)
1063 -psdir=* |
--psdir=* |
--psdi=* |
--psd=* |
--ps=*)
1066 -q |
-quiet |
--quiet |
--quie |
--qui |
--qu |
--q \
1067 |
-silent |
--silent |
--silen |
--sile |
--sil)
1070 -sbindir |
--sbindir |
--sbindi |
--sbind |
--sbin |
--sbi |
--sb)
1072 -sbindir=* |
--sbindir=* |
--sbindi=* |
--sbind=* |
--sbin=* \
1074 sbindir
=$ac_optarg ;;
1076 -sharedstatedir |
--sharedstatedir |
--sharedstatedi \
1077 |
--sharedstated |
--sharedstate |
--sharedstat |
--sharedsta \
1078 |
--sharedst |
--shareds |
--shared |
--share |
--shar \
1080 ac_prev
=sharedstatedir
;;
1081 -sharedstatedir=* |
--sharedstatedir=* |
--sharedstatedi=* \
1082 |
--sharedstated=* |
--sharedstate=* |
--sharedstat=* |
--sharedsta=* \
1083 |
--sharedst=* |
--shareds=* |
--shared=* |
--share=* |
--shar=* \
1085 sharedstatedir
=$ac_optarg ;;
1087 -site |
--site |
--sit)
1089 -site=* |
--site=* |
--sit=*)
1092 -srcdir |
--srcdir |
--srcdi |
--srcd |
--src |
--sr)
1094 -srcdir=* |
--srcdir=* |
--srcdi=* |
--srcd=* |
--src=* |
--sr=*)
1095 srcdir
=$ac_optarg ;;
1097 -sysconfdir |
--sysconfdir |
--sysconfdi |
--sysconfd |
--sysconf \
1098 |
--syscon |
--sysco |
--sysc |
--sys |
--sy)
1099 ac_prev
=sysconfdir
;;
1100 -sysconfdir=* |
--sysconfdir=* |
--sysconfdi=* |
--sysconfd=* |
--sysconf=* \
1101 |
--syscon=* |
--sysco=* |
--sysc=* |
--sys=* |
--sy=*)
1102 sysconfdir
=$ac_optarg ;;
1104 -target |
--target |
--targe |
--targ |
--tar |
--ta |
--t)
1105 ac_prev
=target_alias
;;
1106 -target=* |
--target=* |
--targe=* |
--targ=* |
--tar=* |
--ta=* |
--t=*)
1107 target_alias
=$ac_optarg ;;
1109 -v |
-verbose |
--verbose |
--verbos |
--verbo |
--verb)
1112 -version |
--version |
--versio |
--versi |
--vers |
-V)
1113 ac_init_version
=: ;;
1116 ac_useropt
=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1117 # Reject names that are not valid shell variable names.
1118 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev
/null
&&
1119 as_fn_error
"invalid package name: $ac_useropt"
1120 ac_useropt_orig
=$ac_useropt
1121 ac_useropt
=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1122 case $ac_user_opts in
1126 *) ac_unrecognized_opts
="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1127 ac_unrecognized_sep
=', ';;
1129 eval with_
$ac_useropt=\
$ac_optarg ;;
1131 -without-* |
--without-*)
1132 ac_useropt
=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1133 # Reject names that are not valid shell variable names.
1134 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev
/null
&&
1135 as_fn_error
"invalid package name: $ac_useropt"
1136 ac_useropt_orig
=$ac_useropt
1137 ac_useropt
=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1138 case $ac_user_opts in
1142 *) ac_unrecognized_opts
="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1143 ac_unrecognized_sep
=', ';;
1145 eval with_
$ac_useropt=no
;;
1148 # Obsolete; use --with-x.
1151 -x-includes |
--x-includes |
--x-include |
--x-includ |
--x-inclu \
1152 |
--x-incl |
--x-inc |
--x-in |
--x-i)
1153 ac_prev
=x_includes
;;
1154 -x-includes=* |
--x-includes=* |
--x-include=* |
--x-includ=* |
--x-inclu=* \
1155 |
--x-incl=* |
--x-inc=* |
--x-in=* |
--x-i=*)
1156 x_includes
=$ac_optarg ;;
1158 -x-libraries |
--x-libraries |
--x-librarie |
--x-librari \
1159 |
--x-librar |
--x-libra |
--x-libr |
--x-lib |
--x-li |
--x-l)
1160 ac_prev
=x_libraries
;;
1161 -x-libraries=* |
--x-libraries=* |
--x-librarie=* |
--x-librari=* \
1162 |
--x-librar=* |
--x-libra=* |
--x-libr=* |
--x-lib=* |
--x-li=* |
--x-l=*)
1163 x_libraries
=$ac_optarg ;;
1165 -*) as_fn_error
"unrecognized option: \`$ac_option'
1166 Try \`$0 --help' for more information."
1170 ac_envvar
=`expr "x$ac_option" : 'x\([^=]*\)='`
1171 # Reject names that are not valid shell variable names.
1172 case $ac_envvar in #(
1173 '' |
[0-9]* |
*[!_
$as_cr_alnum]* )
1174 as_fn_error
"invalid variable name: \`$ac_envvar'" ;;
1176 eval $ac_envvar=\
$ac_optarg
1177 export $ac_envvar ;;
1180 # FIXME: should be removed in autoconf 3.0.
1181 $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1182 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev
/null
&&
1183 $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1184 : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
1190 if test -n "$ac_prev"; then
1191 ac_option
=--`echo $ac_prev | sed 's/_/-/g'`
1192 as_fn_error
"missing argument to $ac_option"
1195 if test -n "$ac_unrecognized_opts"; then
1196 case $enable_option_checking in
1198 fatal
) as_fn_error
"unrecognized options: $ac_unrecognized_opts" ;;
1199 *) $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
1203 # Check all directory arguments for consistency.
1204 for ac_var
in exec_prefix prefix bindir sbindir libexecdir datarootdir \
1205 datadir sysconfdir sharedstatedir localstatedir includedir \
1206 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1207 libdir localedir mandir
1209 eval ac_val
=\$
$ac_var
1210 # Remove trailing slashes.
1213 ac_val
=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1214 eval $ac_var=\
$ac_val;;
1216 # Be sure to have absolute directory names.
1218 [\\/$
]* | ?
:[\\/]* ) continue;;
1219 NONE |
'' ) case $ac_var in *prefix
) continue;; esac;;
1221 as_fn_error
"expected an absolute directory name for --$ac_var: $ac_val"
1224 # There might be people who depend on the old broken behavior: `$host'
1225 # used to hold the argument of --host etc.
1226 # FIXME: To remove some day.
1229 target
=$target_alias
1231 # FIXME: To remove some day.
1232 if test "x$host_alias" != x
; then
1233 if test "x$build_alias" = x
; then
1234 cross_compiling
=maybe
1235 $as_echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
1236 If a cross compiler is detected then cross compile mode will be used." >&2
1237 elif test "x$build_alias" != "x$host_alias"; then
1243 test -n "$host_alias" && ac_tool_prefix
=$host_alias-
1245 test "$silent" = yes && exec 6>/dev
/null
1248 ac_pwd
=`pwd` && test -n "$ac_pwd" &&
1249 ac_ls_di
=`ls -di .` &&
1250 ac_pwd_ls_di
=`cd "$ac_pwd" && ls -di .` ||
1251 as_fn_error
"working directory cannot be determined"
1252 test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1253 as_fn_error
"pwd does not report name of working directory"
1256 # Find the source files, if location was not specified.
1257 if test -z "$srcdir"; then
1258 ac_srcdir_defaulted
=yes
1259 # Try the directory containing this script, then the parent directory.
1260 ac_confdir
=`$as_dirname -- "$as_myself" ||
1261 $as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1262 X"$as_myself" : 'X\(//\)[^/]' \| \
1263 X"$as_myself" : 'X\(//\)$' \| \
1264 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1265 $as_echo X"$as_myself" |
1266 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1284 if test ! -r "$srcdir/$ac_unique_file"; then
1288 ac_srcdir_defaulted
=no
1290 if test ! -r "$srcdir/$ac_unique_file"; then
1291 test "$ac_srcdir_defaulted" = yes && srcdir
="$ac_confdir or .."
1292 as_fn_error
"cannot find sources ($ac_unique_file) in $srcdir"
1294 ac_msg
="sources are in $srcdir, but \`cd $srcdir' does not work"
1296 cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error "$ac_msg"
1298 # When building in place, set srcdir=.
1299 if test "$ac_abs_confdir" = "$ac_pwd"; then
1302 # Remove unnecessary trailing slashes from srcdir.
1303 # Double slashes in file names in object file debugging info
1304 # mess up M-x gdb in Emacs.
1306 */) srcdir
=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1308 for ac_var
in $ac_precious_vars; do
1309 eval ac_env_
${ac_var}_set=\${${ac_var}+set}
1310 eval ac_env_
${ac_var}_value
=\$
${ac_var}
1311 eval ac_cv_env_
${ac_var}_set=\${${ac_var}+set}
1312 eval ac_cv_env_
${ac_var}_value
=\$
${ac_var}
1316 # Report the --help message.
1318 if test "$ac_init_help" = "long"; then
1319 # Omit some internal or obsolete options to make the list less imposing.
1320 # This message is too long to be a string in the A/UX 3.1 sh.
1322 \`configure' configures emacs 23.2.90 to adapt to many kinds of systems.
1324 Usage: $0 [OPTION]... [VAR=VALUE]...
1326 To assign environment variables (e.g., CC, CFLAGS...), specify them as
1327 VAR=VALUE. See below for descriptions of some of the useful variables.
1329 Defaults for the options are specified in brackets.
1332 -h, --help display this help and exit
1333 --help=short display options specific to this package
1334 --help=recursive display the short help of all the included packages
1335 -V, --version display version information and exit
1336 -q, --quiet, --silent do not print \`checking...' messages
1337 --cache-file=FILE cache test results in FILE [disabled]
1338 -C, --config-cache alias for \`--cache-file=config.cache'
1339 -n, --no-create do not create output files
1340 --srcdir=DIR find the sources in DIR [configure dir or \`..']
1342 Installation directories:
1343 --prefix=PREFIX install architecture-independent files in PREFIX
1344 [$ac_default_prefix]
1345 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
1348 By default, \`make install' will install all the files in
1349 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
1350 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1351 for instance \`--prefix=\$HOME'.
1353 For better control, use the options below.
1355 Fine tuning of the installation directories:
1356 --bindir=DIR user executables [EPREFIX/bin]
1357 --sbindir=DIR system admin executables [EPREFIX/sbin]
1358 --libexecdir=DIR program executables [EPREFIX/libexec]
1359 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
1360 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
1361 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
1362 --libdir=DIR object code libraries [EPREFIX/lib]
1363 --includedir=DIR C header files [PREFIX/include]
1364 --oldincludedir=DIR C header files for non-gcc [/usr/include]
1365 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
1366 --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
1367 --infodir=DIR info documentation [DATAROOTDIR/info]
1368 --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
1369 --mandir=DIR man documentation [DATAROOTDIR/man]
1370 --docdir=DIR documentation root [DATAROOTDIR/doc/emacs]
1371 --htmldir=DIR html documentation [DOCDIR]
1372 --dvidir=DIR dvi documentation [DOCDIR]
1373 --pdfdir=DIR pdf documentation [DOCDIR]
1374 --psdir=DIR ps documentation [DOCDIR]
1380 --program-prefix=PREFIX prepend PREFIX to installed program names
1381 --program-suffix=SUFFIX append SUFFIX to installed program names
1382 --program-transform-name=PROGRAM run
sed PROGRAM on installed program names
1385 --x-includes=DIR X include files are
in DIR
1386 --x-libraries=DIR X library files are
in DIR
1389 --build=BUILD configure
for building on BUILD
[guessed
]
1390 --host=HOST cross-compile to build programs to run on HOST
[BUILD
]
1394 if test -n "$ac_init_help"; then
1395 case $ac_init_help in
1396 short | recursive
) echo "Configuration of emacs 23.2.90:";;
1401 --disable-option-checking ignore unrecognized
--enable/--with options
1402 --disable-FEATURE do not include FEATURE
(same as
--enable-FEATURE=no
)
1403 --enable-FEATURE[=ARG
] include FEATURE
[ARG
=yes]
1404 --disable-ns-self-contained
1405 disable self contained build under NeXTstep
1406 --enable-asserts compile code with asserts enabled
1407 --enable-maintainer-mode
1408 enable make rules and dependencies not useful
(and
1409 sometimes confusing
) to the casual installer
1410 --enable-locallisppath=PATH
1411 directories Emacs should search
for lisp files
1412 specific to this site
1413 --enable-checking[=LIST
]
1414 enable expensive run-time checks. With LIST
, enable
1415 only specific categories of checks. Categories are
:
1416 all
,yes,no. Flags are
: stringbytes
, stringoverrun
,
1417 stringfreelist
, xmallocoverrun
, conslist
1418 --enable-profiling build emacs with profiling support. This might not
1419 work on all platforms
1420 --enable-autodepend automatically generate dependencies to .h-files.
1421 Requires GNU Make and Gcc. Enabled
if GNU Make and
1423 --disable-largefile omit support
for large files
1426 --with-PACKAGE[=ARG
] use PACKAGE
[ARG
=yes]
1427 --without-PACKAGE do not use PACKAGE
(same as
--with-PACKAGE=no
)
1428 --without-pop don
't support POP mail retrieval with movemail
1429 --with-kerberos support Kerberos-authenticated POP
1430 --with-kerberos5 support Kerberos version 5 authenticated POP
1431 --with-hesiod support Hesiod to get the POP server host
1432 --without-sound don't compile with sound support
1433 --without-sync-input process async input synchronously
1434 --with-x-toolkit=KIT use an X toolkit
(KIT one of
: yes, lucid
, athena
,
1436 --without-xpm don
't compile with XPM image support
1437 --without-jpeg don't compile with JPEG image support
1438 --without-tiff don
't compile with TIFF image support
1439 --without-gif don't compile with GIF image support
1440 --without-png don
't compile with PNG image support
1441 --without-rsvg don't compile with SVG image support
1442 --without-xft don
't use XFT for anti aliased fonts
1443 --without-libotf don't use libotf
for OpenType font support
1444 --without-m17n-flt don
't use m17n-flt for text shaping
1445 --without-toolkit-scroll-bars
1446 don't use Motif or Xaw3d scroll bars
1447 --without-xaw3d don
't use Xaw3d
1448 --without-xim don't use X11 XIM
1449 --with-ns use nextstep
(Cocoa or GNUstep
) windowing system
1450 --without-gpm don
't use -lgpm for mouse support on a GNU/Linux
1452 --without-dbus don't compile with D-Bus support
1453 --without-gconf don
't compile with GConf support
1454 --without-makeinfo don't require makeinfo
for building manuals
1456 --with-pkg-config-prog=PATH
1457 path to pkg-config
for finding GTK and librsvg
1458 --with-crt-dir=DIR directory containing crtn.o etc. This option is only
1459 used on x86-64 and s390x GNU
/Linux architectures.
1460 --with-gnustep-conf=PATH
1461 path to GNUstep.conf
; default
$GNUSTEP_CONFIG_FILE,
1462 or
/etc
/GNUstep
/GNUstep.conf
1463 --with-x use the X Window System
1465 Some influential environment variables
:
1466 CC C compiler
command
1467 CFLAGS C compiler flags
1468 LDFLAGS linker flags
, e.g.
-L<lib dir
> if you have libraries
in a
1469 nonstandard directory
<lib dir
>
1470 LIBS libraries to pass to the linker
, e.g.
-l<library
>
1471 CPPFLAGS
(Objective
) C
/C
++ preprocessor flags
, e.g.
-I<include dir
> if
1472 you have headers
in a nonstandard directory
<include dir
>
1474 XMKMF Path to xmkmf
, Makefile generator
for X Window System
1476 Use these variables to override the choices made by
`configure' or to help
1477 it to find libraries and programs with nonstandard names/locations.
1479 Report bugs to the package provider.
1484 if test "$ac_init_help" = "recursive"; then
1485 # If there are subdirs, report their specific --help.
1486 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1487 test -d "$ac_dir" ||
1488 { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
1493 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1495 ac_dir_suffix=/`$as_echo "$ac_dir" |
sed 's|^\.[\\/]||'`
1496 # A ".." for each directory in $ac_dir_suffix.
1497 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" |
sed 's|/[^\\/]*|/..|g;s|/||'`
1498 case $ac_top_builddir_sub in
1499 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1500 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1503 ac_abs_top_builddir=$ac_pwd
1504 ac_abs_builddir=$ac_pwd$ac_dir_suffix
1505 # for backward compatibility:
1506 ac_top_builddir=$ac_top_build_prefix
1509 .) # We are building in place.
1511 ac_top_srcdir=$ac_top_builddir_sub
1512 ac_abs_top_srcdir=$ac_pwd ;;
1513 [\\/]* | ?:[\\/]* ) # Absolute name.
1514 ac_srcdir=$srcdir$ac_dir_suffix;
1515 ac_top_srcdir=$srcdir
1516 ac_abs_top_srcdir=$srcdir ;;
1518 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1519 ac_top_srcdir=$ac_top_build_prefix$srcdir
1520 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1522 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1524 cd "$ac_dir" || { ac_status=$?; continue; }
1525 # Check for guested configure.
1526 if test -f "$ac_srcdir/configure.gnu"; then
1528 $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1529 elif test -f "$ac_srcdir/configure"; then
1531 $SHELL "$ac_srcdir/configure" --help=recursive
1533 $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1535 cd "$ac_pwd" || { ac_status=$?; break; }
1539 test -n "$ac_init_help" && exit $ac_status
1540 if $ac_init_version; then
1542 emacs configure 23.2.90
1543 generated by GNU Autoconf 2.65
1545 Copyright (C) 2009 Free Software Foundation, Inc.
1546 This configure script is free software; the Free Software Foundation
1547 gives unlimited permission to copy, distribute and modify it.
1552 ## ------------------------ ##
1553 ## Autoconf initialization. ##
1554 ## ------------------------ ##
1556 # ac_fn_c_try_compile LINENO
1557 # --------------------------
1558 # Try to compile conftest.$ac_ext, and return whether this succeeded.
1559 ac_fn_c_try_compile ()
1561 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1562 rm -f conftest.$ac_objext
1563 if { { ac_try="$ac_compile"
1565 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
1566 *) ac_try_echo
=$ac_try;;
1568 eval ac_try_echo
="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1569 $as_echo "$ac_try_echo"; } >&5
1570 (eval "$ac_compile") 2>conftest.err
1572 if test -s conftest.err
; then
1573 grep -v '^ *+' conftest.err
>conftest.er1
1574 cat conftest.er1
>&5
1575 mv -f conftest.er1 conftest.err
1577 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1578 test $ac_status = 0; } && {
1579 test -z "$ac_c_werror_flag" ||
1580 test ! -s conftest.err
1581 } && test -s conftest.
$ac_objext; then :
1584 $as_echo "$as_me: failed program was:" >&5
1585 sed 's/^/| /' conftest.
$ac_ext >&5
1589 eval $as_lineno_stack; test "x$as_lineno_stack" = x
&& { as_lineno
=; unset as_lineno
;}
1590 as_fn_set_status
$ac_retval
1592 } # ac_fn_c_try_compile
1594 # ac_fn_c_try_link LINENO
1595 # -----------------------
1596 # Try to link conftest.$ac_ext, and return whether this succeeded.
1599 as_lineno
=${as_lineno-"$1"} as_lineno_stack
=as_lineno_stack
=$as_lineno_stack
1600 rm -f conftest.
$ac_objext conftest
$ac_exeext
1601 if { { ac_try
="$ac_link"
1603 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
1604 *) ac_try_echo=$ac_try;;
1606 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1607 $as_echo "$ac_try_echo"; } >&5
1608 (eval "$ac_link") 2>conftest.err
1610 if test -s conftest.err; then
1611 grep -v '^ *+' conftest.err >conftest.er1
1612 cat conftest.er1 >&5
1613 mv -f conftest.er1 conftest.err
1615 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1616 test $ac_status = 0; } && {
1617 test -z "$ac_c_werror_flag" ||
1618 test ! -s conftest.err
1619 } && test -s conftest$ac_exeext && {
1620 test "$cross_compiling" = yes ||
1621 $as_test_x conftest$ac_exeext
1625 $as_echo "$as_me: failed program was:" >&5
1626 sed 's/^/| /' conftest.$ac_ext >&5
1630 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
1631 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
1632 # interfere with the next link command; also delete a directory that is
1633 # left behind by Apple's compiler. We do this before executing the actions.
1634 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1635 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1636 as_fn_set_status $ac_retval
1638 } # ac_fn_c_try_link
1640 # ac_fn_c_try_cpp LINENO
1641 # ----------------------
1642 # Try to preprocess conftest.$ac_ext, and return whether this succeeded.
1645 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1646 if { { ac_try="$ac_cpp conftest.$ac_ext"
1648 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
1649 *) ac_try_echo
=$ac_try;;
1651 eval ac_try_echo
="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1652 $as_echo "$ac_try_echo"; } >&5
1653 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
1655 if test -s conftest.err
; then
1656 grep -v '^ *+' conftest.err
>conftest.er1
1657 cat conftest.er1
>&5
1658 mv -f conftest.er1 conftest.err
1660 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1661 test $ac_status = 0; } >/dev
/null
&& {
1662 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
1663 test ! -s conftest.err
1667 $as_echo "$as_me: failed program was:" >&5
1668 sed 's/^/| /' conftest.
$ac_ext >&5
1672 eval $as_lineno_stack; test "x$as_lineno_stack" = x
&& { as_lineno
=; unset as_lineno
;}
1673 as_fn_set_status
$ac_retval
1677 # ac_fn_c_check_header_mongrel LINENO HEADER VAR INCLUDES
1678 # -------------------------------------------------------
1679 # Tests whether HEADER exists, giving a warning if it cannot be compiled using
1680 # the include files in INCLUDES and setting the cache variable VAR
1682 ac_fn_c_check_header_mongrel
()
1684 as_lineno
=${as_lineno-"$1"} as_lineno_stack
=as_lineno_stack
=$as_lineno_stack
1685 if { as_var
=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
1686 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1687 $as_echo_n "checking for $2... " >&6; }
1688 if { as_var
=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
1689 $as_echo_n "(cached) " >&6
1692 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1693 $as_echo "$ac_res" >&6; }
1695 # Is the header compilable?
1696 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5
1697 $as_echo_n "checking $2 usability... " >&6; }
1698 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
1699 /* end confdefs.h. */
1703 if ac_fn_c_try_compile
"$LINENO"; then :
1704 ac_header_compiler
=yes
1706 ac_header_compiler
=no
1708 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
1709 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5
1710 $as_echo "$ac_header_compiler" >&6; }
1712 # Is the header present?
1713 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5
1714 $as_echo_n "checking $2 presence... " >&6; }
1715 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
1716 /* end confdefs.h. */
1719 if ac_fn_c_try_cpp
"$LINENO"; then :
1720 ac_header_preproc
=yes
1722 ac_header_preproc
=no
1724 rm -f conftest.err conftest.
$ac_ext
1725 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5
1726 $as_echo "$ac_header_preproc" >&6; }
1728 # So? What about this header?
1729 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in #((
1731 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5
1732 $as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;}
1733 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
1734 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
1737 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5
1738 $as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;}
1739 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: check for missing prerequisite headers?" >&5
1740 $as_echo "$as_me: WARNING: $2: check for missing prerequisite headers?" >&2;}
1741 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5
1742 $as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;}
1743 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&5
1744 $as_echo "$as_me: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&2;}
1745 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
1746 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
1749 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1750 $as_echo_n "checking for $2... " >&6; }
1751 if { as_var
=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
1752 $as_echo_n "(cached) " >&6
1754 eval "$3=\$ac_header_compiler"
1757 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1758 $as_echo "$ac_res" >&6; }
1760 eval $as_lineno_stack; test "x$as_lineno_stack" = x
&& { as_lineno
=; unset as_lineno
;}
1762 } # ac_fn_c_check_header_mongrel
1764 # ac_fn_c_try_run LINENO
1765 # ----------------------
1766 # Try to link conftest.$ac_ext, and return whether this succeeded. Assumes
1767 # that executables *can* be run.
1770 as_lineno
=${as_lineno-"$1"} as_lineno_stack
=as_lineno_stack
=$as_lineno_stack
1771 if { { ac_try
="$ac_link"
1773 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
1774 *) ac_try_echo=$ac_try;;
1776 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1777 $as_echo "$ac_try_echo"; } >&5
1778 (eval "$ac_link") 2>&5
1780 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1781 test $ac_status = 0; } && { ac_try='./conftest$ac_exeext'
1782 { { case "(($ac_try" in
1783 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
1784 *) ac_try_echo
=$ac_try;;
1786 eval ac_try_echo
="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1787 $as_echo "$ac_try_echo"; } >&5
1788 (eval "$ac_try") 2>&5
1790 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1791 test $ac_status = 0; }; }; then :
1794 $as_echo "$as_me: program exited with status $ac_status" >&5
1795 $as_echo "$as_me: failed program was:" >&5
1796 sed 's/^/| /' conftest.
$ac_ext >&5
1798 ac_retval
=$ac_status
1800 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1801 eval $as_lineno_stack; test "x$as_lineno_stack" = x
&& { as_lineno
=; unset as_lineno
;}
1802 as_fn_set_status
$ac_retval
1806 # ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES
1807 # -------------------------------------------------------
1808 # Tests whether HEADER exists and can be compiled using the include files in
1809 # INCLUDES, setting the cache variable VAR accordingly.
1810 ac_fn_c_check_header_compile
()
1812 as_lineno
=${as_lineno-"$1"} as_lineno_stack
=as_lineno_stack
=$as_lineno_stack
1813 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1814 $as_echo_n "checking for $2... " >&6; }
1815 if { as_var
=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
1816 $as_echo_n "(cached) " >&6
1818 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
1819 /* end confdefs.h. */
1823 if ac_fn_c_try_compile
"$LINENO"; then :
1828 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
1831 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1832 $as_echo "$ac_res" >&6; }
1833 eval $as_lineno_stack; test "x$as_lineno_stack" = x
&& { as_lineno
=; unset as_lineno
;}
1835 } # ac_fn_c_check_header_compile
1837 # ac_fn_c_check_header_preproc LINENO HEADER VAR
1838 # ----------------------------------------------
1839 # Tests whether HEADER is present, setting the cache variable VAR accordingly.
1840 ac_fn_c_check_header_preproc
()
1842 as_lineno
=${as_lineno-"$1"} as_lineno_stack
=as_lineno_stack
=$as_lineno_stack
1843 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1844 $as_echo_n "checking for $2... " >&6; }
1845 if { as_var
=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
1846 $as_echo_n "(cached) " >&6
1848 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
1849 /* end confdefs.h. */
1852 if ac_fn_c_try_cpp
"$LINENO"; then :
1857 rm -f conftest.err conftest.
$ac_ext
1860 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1861 $as_echo "$ac_res" >&6; }
1862 eval $as_lineno_stack; test "x$as_lineno_stack" = x
&& { as_lineno
=; unset as_lineno
;}
1864 } # ac_fn_c_check_header_preproc
1866 # ac_fn_c_check_decl LINENO SYMBOL VAR
1867 # ------------------------------------
1868 # Tests whether SYMBOL is declared, setting cache variable VAR accordingly.
1869 ac_fn_c_check_decl
()
1871 as_lineno
=${as_lineno-"$1"} as_lineno_stack
=as_lineno_stack
=$as_lineno_stack
1872 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $2 is declared" >&5
1873 $as_echo_n "checking whether $2 is declared... " >&6; }
1874 if { as_var
=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
1875 $as_echo_n "(cached) " >&6
1877 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
1878 /* end confdefs.h. */
1891 if ac_fn_c_try_compile
"$LINENO"; then :
1896 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
1899 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1900 $as_echo "$ac_res" >&6; }
1901 eval $as_lineno_stack; test "x$as_lineno_stack" = x
&& { as_lineno
=; unset as_lineno
;}
1903 } # ac_fn_c_check_decl
1905 # ac_fn_c_check_member LINENO AGGR MEMBER VAR INCLUDES
1906 # ----------------------------------------------------
1907 # Tries to find if the field MEMBER exists in type AGGR, after including
1908 # INCLUDES, setting cache variable VAR accordingly.
1909 ac_fn_c_check_member
()
1911 as_lineno
=${as_lineno-"$1"} as_lineno_stack
=as_lineno_stack
=$as_lineno_stack
1912 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2.$3" >&5
1913 $as_echo_n "checking for $2.$3... " >&6; }
1914 if { as_var
=$4; eval "test \"\${$as_var+set}\" = set"; }; then :
1915 $as_echo_n "(cached) " >&6
1917 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
1918 /* end confdefs.h. */
1930 if ac_fn_c_try_compile
"$LINENO"; then :
1933 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
1934 /* end confdefs.h. */
1940 if (sizeof ac_aggr.$3)
1946 if ac_fn_c_try_compile
"$LINENO"; then :
1951 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
1953 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
1956 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1957 $as_echo "$ac_res" >&6; }
1958 eval $as_lineno_stack; test "x$as_lineno_stack" = x
&& { as_lineno
=; unset as_lineno
;}
1960 } # ac_fn_c_check_member
1962 # ac_fn_c_check_func LINENO FUNC VAR
1963 # ----------------------------------
1964 # Tests whether FUNC exists, setting the cache variable VAR accordingly
1965 ac_fn_c_check_func
()
1967 as_lineno
=${as_lineno-"$1"} as_lineno_stack
=as_lineno_stack
=$as_lineno_stack
1968 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1969 $as_echo_n "checking for $2... " >&6; }
1970 if { as_var
=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
1971 $as_echo_n "(cached) " >&6
1973 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
1974 /* end confdefs.h. */
1975 /* Define $2 to an innocuous variant, in case <limits.h> declares $2.
1976 For example, HP-UX 11i <limits.h> declares gettimeofday. */
1977 #define $2 innocuous_$2
1979 /* System header to define __stub macros and hopefully few prototypes,
1980 which can conflict with char $2 (); below.
1981 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
1982 <limits.h> exists even on freestanding compilers. */
1985 # include <limits.h>
1987 # include <assert.h>
1992 /* Override any GCC internal prototype to avoid an error.
1993 Use char because int might match the return type of a GCC
1994 builtin and then its argument prototype would still apply. */
1999 /* The GNU C library defines this for functions which it implements
2000 to always fail with ENOSYS. Some functions are actually named
2001 something starting with __ and the normal name is an alias. */
2002 #if defined __stub_$2 || defined __stub___$2
2014 if ac_fn_c_try_link
"$LINENO"; then :
2019 rm -f core conftest.err conftest.
$ac_objext \
2020 conftest
$ac_exeext conftest.
$ac_ext
2023 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2024 $as_echo "$ac_res" >&6; }
2025 eval $as_lineno_stack; test "x$as_lineno_stack" = x
&& { as_lineno
=; unset as_lineno
;}
2027 } # ac_fn_c_check_func
2029 # ac_fn_c_check_type LINENO TYPE VAR INCLUDES
2030 # -------------------------------------------
2031 # Tests whether TYPE exists after having included INCLUDES, setting cache
2032 # variable VAR accordingly.
2033 ac_fn_c_check_type
()
2035 as_lineno
=${as_lineno-"$1"} as_lineno_stack
=as_lineno_stack
=$as_lineno_stack
2036 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2037 $as_echo_n "checking for $2... " >&6; }
2038 if { as_var
=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
2039 $as_echo_n "(cached) " >&6
2042 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
2043 /* end confdefs.h. */
2054 if ac_fn_c_try_compile
"$LINENO"; then :
2055 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
2056 /* end confdefs.h. */
2067 if ac_fn_c_try_compile
"$LINENO"; then :
2072 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
2074 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
2077 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2078 $as_echo "$ac_res" >&6; }
2079 eval $as_lineno_stack; test "x$as_lineno_stack" = x
&& { as_lineno
=; unset as_lineno
;}
2081 } # ac_fn_c_check_type
2082 cat >config.log
<<_ACEOF
2083 This file contains any messages produced by compilers while
2084 running configure, to aid debugging if configure makes a mistake.
2086 It was created by emacs $as_me 23.2.90, which was
2087 generated by GNU Autoconf 2.65. Invocation command line was
2099 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
2100 uname -m = `(uname -m) 2>/dev/null || echo unknown`
2101 uname -r = `(uname -r) 2>/dev/null || echo unknown`
2102 uname -s = `(uname -s) 2>/dev/null || echo unknown`
2103 uname -v = `(uname -v) 2>/dev/null || echo unknown`
2105 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
2106 /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
2108 /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
2109 /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
2110 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
2111 /usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
2112 /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
2113 /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
2114 /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
2118 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
2122 test -z "$as_dir" && as_dir
=.
2123 $as_echo "PATH: $as_dir"
2139 # Keep a trace of the command line.
2140 # Strip out --no-create and --no-recursion so they do not pile up.
2141 # Strip out --silent because we don't want to record it for future runs.
2142 # Also quote any args containing shell meta-characters.
2143 # Make two passes to allow for proper duplicate-argument suppression.
2147 ac_must_keep_next
=false
2153 -no-create |
--no-c* |
-n |
-no-recursion |
--no-r*) continue ;;
2154 -q |
-quiet |
--quiet |
--quie |
--qui |
--qu |
--q \
2155 |
-silent |
--silent |
--silen |
--sile |
--sil)
2158 ac_arg
=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
2161 1) as_fn_append ac_configure_args0
" '$ac_arg'" ;;
2163 as_fn_append ac_configure_args1
" '$ac_arg'"
2164 if test $ac_must_keep_next = true
; then
2165 ac_must_keep_next
=false
# Got value, back to normal.
2168 *=* |
--config-cache |
-C |
-disable-* |
--disable-* \
2169 |
-enable-* |
--enable-* |
-gas |
--g* |
-nfp |
--nf* \
2170 |
-q |
-quiet |
--q* |
-silent |
--sil* |
-v |
-verb* \
2171 |
-with-* |
--with-* |
-without-* |
--without-* |
--x)
2172 case "$ac_configure_args0 " in
2173 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
2176 -* ) ac_must_keep_next
=true
;;
2179 as_fn_append ac_configure_args
" '$ac_arg'"
2184 { ac_configure_args0
=; unset ac_configure_args0
;}
2185 { ac_configure_args1
=; unset ac_configure_args1
;}
2187 # When interrupted or exit'd, cleanup temporary files, and complete
2188 # config.log. We remove comments because anyway the quotes in there
2189 # would cause problems or look ugly.
2190 # WARNING: Use '\'' to represent an apostrophe within the trap.
2191 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
2192 trap 'exit_status=$?
2193 # Save into config.log some information that might help in debugging.
2198 ## ---------------- ##
2199 ## Cache variables. ##
2200 ## ---------------- ##
2203 # The following way of writing the cache mishandles newlines in values,
2205 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
2206 eval ac_val=\$$ac_var
2210 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
2211 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
2214 _ | IFS | as_nl) ;; #(
2215 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
2216 *) { eval $ac_var=; unset $ac_var;} ;;
2221 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
2222 *${as_nl}ac_space=\ *)
2224 "s/'\''/'\''\\\\'\'''\''/g;
2225 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
2228 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
2236 ## ----------------- ##
2237 ## Output variables. ##
2238 ## ----------------- ##
2241 for ac_var in $ac_subst_vars
2243 eval ac_val=\$$ac_var
2245 *\'\''*) ac_val
=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2247 $as_echo "$ac_var='\''$ac_val'\''"
2251 if test -n "$ac_subst_files"; then
2253 ## ------------------- ##
2254 ## File substitutions. ##
2255 ## ------------------- ##
2258 for ac_var
in $ac_subst_files
2260 eval ac_val
=\$
$ac_var
2262 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2264 $as_echo "$ac_var='\''$ac_val'\''"
2269 if test -s confdefs.h; then
2279 test "$ac_signal" != 0 &&
2280 $as_echo "$as_me: caught signal $ac_signal"
2281 $as_echo "$as_me: exit $exit_status"
2283 rm -f core *.core core.conftest.* &&
2284 rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
2287 for ac_signal
in 1 2 13 15; do
2288 trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
2292 # confdefs.h avoids OS command line length limits that DEFS can exceed.
2293 rm -f -r conftest
* confdefs.h
2295 $as_echo "/* confdefs.h */" > confdefs.h
2297 # Predefined preprocessor variables.
2299 cat >>confdefs.h
<<_ACEOF
2300 #define PACKAGE_NAME "$PACKAGE_NAME"
2303 cat >>confdefs.h
<<_ACEOF
2304 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
2307 cat >>confdefs.h
<<_ACEOF
2308 #define PACKAGE_VERSION "$PACKAGE_VERSION"
2311 cat >>confdefs.h
<<_ACEOF
2312 #define PACKAGE_STRING "$PACKAGE_STRING"
2315 cat >>confdefs.h
<<_ACEOF
2316 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
2319 cat >>confdefs.h
<<_ACEOF
2320 #define PACKAGE_URL "$PACKAGE_URL"
2324 # Let the site file select an alternate cache file if it wants to.
2325 # Prefer an explicitly selected file to automatically selected ones.
2328 if test -n "$CONFIG_SITE"; then
2329 ac_site_file1
=$CONFIG_SITE
2330 elif test "x$prefix" != xNONE
; then
2331 ac_site_file1
=$prefix/share
/config.site
2332 ac_site_file2
=$prefix/etc
/config.site
2334 ac_site_file1
=$ac_default_prefix/share
/config.site
2335 ac_site_file2
=$ac_default_prefix/etc
/config.site
2337 for ac_site_file
in "$ac_site_file1" "$ac_site_file2"
2339 test "x$ac_site_file" = xNONE
&& continue
2340 if test /dev
/null
!= "$ac_site_file" && test -r "$ac_site_file"; then
2341 { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
2342 $as_echo "$as_me: loading site script $ac_site_file" >&6;}
2343 sed 's/^/| /' "$ac_site_file" >&5
2348 if test -r "$cache_file"; then
2349 # Some versions of bash will fail to source /dev/null (special files
2350 # actually), so we avoid doing that. DJGPP emulates it as a regular file.
2351 if test /dev
/null
!= "$cache_file" && test -f "$cache_file"; then
2352 { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
2353 $as_echo "$as_me: loading cache $cache_file" >&6;}
2355 [\\/]* | ?
:[\\/]* ) .
"$cache_file";;
2356 *) .
"./$cache_file";;
2360 { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
2361 $as_echo "$as_me: creating cache $cache_file" >&6;}
2365 as_fn_append ac_header_list
" stdlib.h"
2366 as_fn_append ac_header_list
" unistd.h"
2367 as_fn_append ac_header_list
" sys/param.h"
2368 as_fn_append ac_header_list
" sys/time.h"
2369 as_fn_append ac_func_list
" alarm"
2370 # Check that the precious variables saved in the cache have kept the same
2372 ac_cache_corrupted
=false
2373 for ac_var
in $ac_precious_vars; do
2374 eval ac_old_set
=\
$ac_cv_env_${ac_var}_set
2375 eval ac_new_set
=\
$ac_env_${ac_var}_set
2376 eval ac_old_val
=\
$ac_cv_env_${ac_var}_value
2377 eval ac_new_val
=\
$ac_env_${ac_var}_value
2378 case $ac_old_set,$ac_new_set in
2380 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
2381 $as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
2382 ac_cache_corrupted
=: ;;
2384 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
2385 $as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
2386 ac_cache_corrupted
=: ;;
2389 if test "x$ac_old_val" != "x$ac_new_val"; then
2390 # differences in whitespace do not lead to failure.
2391 ac_old_val_w
=`echo x $ac_old_val`
2392 ac_new_val_w
=`echo x $ac_new_val`
2393 if test "$ac_old_val_w" != "$ac_new_val_w"; then
2394 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
2395 $as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
2396 ac_cache_corrupted
=:
2398 { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
2399 $as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
2400 eval $ac_var=\
$ac_old_val
2402 { $as_echo "$as_me:${as_lineno-$LINENO}: former value: \`$ac_old_val'" >&5
2403 $as_echo "$as_me: former value: \`$ac_old_val'" >&2;}
2404 { $as_echo "$as_me:${as_lineno-$LINENO}: current value: \`$ac_new_val'" >&5
2405 $as_echo "$as_me: current value: \`$ac_new_val'" >&2;}
2408 # Pass precious variables to config.status.
2409 if test "$ac_new_set" = set; then
2411 *\'*) ac_arg
=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
2412 *) ac_arg
=$ac_var=$ac_new_val ;;
2414 case " $ac_configure_args " in
2415 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
2416 *) as_fn_append ac_configure_args
" '$ac_arg'" ;;
2420 if $ac_cache_corrupted; then
2421 { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2422 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2423 { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
2424 $as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
2425 as_fn_error
"run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5
2427 ## -------------------- ##
2428 ## Main body of script. ##
2429 ## -------------------- ##
2432 ac_cpp
='$CPP $CPPFLAGS'
2433 ac_compile
='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2434 ac_link
='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2435 ac_compiler_gnu
=$ac_cv_c_compiler_gnu
2438 ac_config_headers
="$ac_config_headers src/config.h:src/config.in"
2442 test "$program_prefix" != NONE
&&
2443 program_transform_name
="s&^&$program_prefix&;$program_transform_name"
2444 # Use a double $ so make ignores it.
2445 test "$program_suffix" != NONE
&&
2446 program_transform_name
="s&\$&$program_suffix&;$program_transform_name"
2447 # Double any \ or $.
2448 # By default was `s,x,x', remove it if useless.
2449 ac_script
='s/[\\$]/&&/g;s/;s,x,x,$//'
2450 program_transform_name
=`$as_echo "$program_transform_name" | sed "$ac_script"`
2453 lispdir
='${datadir}/emacs/${version}/lisp'
2454 locallisppath
='${datadir}/emacs/${version}/site-lisp:'\
2455 '${datadir}/emacs/site-lisp'
2456 lisppath
='${locallisppath}:${lispdir}:${datadir}/emacs/${version}/leim'
2457 etcdir
='${datadir}/emacs/${version}/etc'
2458 archlibdir
='${libexecdir}/emacs/${version}/${configuration}'
2459 docdir
='${datadir}/emacs/${version}/etc'
2460 gamedir
='${localstatedir}/games/emacs'
2467 # Check whether --with-pop was given.
2468 if test "${with_pop+set}" = set; then :
2474 if test "$with_pop" = yes; then
2475 $as_echo "#define MAIL_USE_POP 1" >>confdefs.h
2480 # Check whether --with-kerberos was given.
2481 if test "${with_kerberos+set}" = set; then :
2482 withval
=$with_kerberos;
2487 if test "$with_kerberos" != no
; then
2488 $as_echo "#define KERBEROS 1" >>confdefs.h
2493 # Check whether --with-kerberos5 was given.
2494 if test "${with_kerberos5+set}" = set; then :
2495 withval
=$with_kerberos5;
2500 if test "${with_kerberos5}" != no
; then
2501 if test "${with_kerberos}" = no
; then
2503 $as_echo "#define KERBEROS 1" >>confdefs.h
2507 $as_echo "#define KERBEROS5 1" >>confdefs.h
2512 # Check whether --with-hesiod was given.
2513 if test "${with_hesiod+set}" = set; then :
2514 withval
=$with_hesiod;
2519 if test "$with_hesiod" != no
; then
2521 $as_echo "#define HESIOD 1" >>confdefs.h
2526 # Check whether --with-sound was given.
2527 if test "${with_sound+set}" = set; then :
2528 withval
=$with_sound;
2535 # Check whether --with-sync-input was given.
2536 if test "${with_sync_input+set}" = set; then :
2537 withval
=$with_sync_input;
2542 if test "$with_sync_input" = yes; then
2544 $as_echo "#define SYNC_INPUT 1" >>confdefs.h
2549 # Check whether --with-x-toolkit was given.
2550 if test "${with_x_toolkit+set}" = set; then :
2551 withval
=$with_x_toolkit; case "${withval}" in
2552 y | ye |
yes ) val
=gtk
;;
2554 l | lu | luc | luci | lucid
) val
=lucid
;;
2555 a |
at | ath | athe | athen | athena
) val
=athena
;;
2556 m | mo | mot | moti | motif
) val
=motif
;;
2557 g | gt | gtk
) val
=gtk
;;
2559 as_fn_error
"\`--with-x-toolkit=$withval' is invalid;
2560 this option's value should be \`yes', \`no', \`lucid', \`athena', \`motif' or \`gtk'.
2561 \`yes' and \`gtk' are synonyms. \`athena' and \`lucid' are synonyms." "$LINENO" 5
2570 # Check whether --with-xpm was given.
2571 if test "${with_xpm+set}" = set; then :
2578 # Check whether --with-jpeg was given.
2579 if test "${with_jpeg+set}" = set; then :
2586 # Check whether --with-tiff was given.
2587 if test "${with_tiff+set}" = set; then :
2594 # Check whether --with-gif was given.
2595 if test "${with_gif+set}" = set; then :
2602 # Check whether --with-png was given.
2603 if test "${with_png+set}" = set; then :
2610 # Check whether --with-rsvg was given.
2611 if test "${with_rsvg+set}" = set; then :
2619 # Check whether --with-xft was given.
2620 if test "${with_xft+set}" = set; then :
2627 # Check whether --with-libotf was given.
2628 if test "${with_libotf+set}" = set; then :
2629 withval
=$with_libotf;
2635 # Check whether --with-m17n-flt was given.
2636 if test "${with_m17n_flt+set}" = set; then :
2637 withval
=$with_m17n_flt;
2644 # Check whether --with-toolkit-scroll-bars was given.
2645 if test "${with_toolkit_scroll_bars+set}" = set; then :
2646 withval
=$with_toolkit_scroll_bars;
2648 with_toolkit_scroll_bars
=yes
2652 # Check whether --with-xaw3d was given.
2653 if test "${with_xaw3d+set}" = set; then :
2654 withval
=$with_xaw3d;
2660 # Check whether --with-xim was given.
2661 if test "${with_xim+set}" = set; then :
2668 # Check whether --with-ns was given.
2669 if test "${with_ns+set}" = set; then :
2677 # Check whether --with-gpm was given.
2678 if test "${with_gpm+set}" = set; then :
2685 # Check whether --with-dbus was given.
2686 if test "${with_dbus+set}" = set; then :
2693 # Check whether --with-gconf was given.
2694 if test "${with_gconf+set}" = set; then :
2695 withval
=$with_gconf;
2701 ## For the times when you want to build Emacs but don't have
2702 ## a suitable makeinfo, and can live without the manuals.
2704 # Check whether --with-makeinfo was given.
2705 if test "${with_makeinfo+set}" = set; then :
2706 withval
=$with_makeinfo;
2713 # Check whether --with-gtk was given.
2714 if test "${with_gtk+set}" = set; then :
2715 withval
=$with_gtk; as_fn_error
"--with-gtk has been removed. Use --with-x-toolkit to
2716 specify a toolkit." "$LINENO" 5
2721 # Check whether --with-gcc was given.
2722 if test "${with_gcc+set}" = set; then :
2723 withval
=$with_gcc; as_fn_error
"--with-gcc has been removed. Set the \`CC' environment
2724 variable to specify a compiler." "$LINENO" 5
2729 # Check whether --with-pkg-config-prog was given.
2730 if test "${with_pkg_config_prog+set}" = set; then :
2731 withval
=$with_pkg_config_prog;
2734 if test "X${with_pkg_config_prog}" != X
; then
2735 if test "${with_pkg_config_prog}" != yes; then
2736 PKG_CONFIG
="${with_pkg_config_prog}"
2742 # Check whether --with-crt-dir was given.
2743 if test "${with_crt_dir+set}" = set; then :
2744 withval
=$with_crt_dir;
2747 CRT_DIR
="${with_crt_dir}"
2750 # Check whether --with-gnustep-conf was given.
2751 if test "${with_gnustep_conf+set}" = set; then :
2752 withval
=$with_gnustep_conf;
2755 test "X${with_gnustep_conf}" != X
&& test "${with_gnustep_conf}" != yes && \
2756 GNUSTEP_CONFIG_FILE
="${with_gnustep_conf}"
2757 test "X$GNUSTEP_CONFIG_FILE" = "X" && \
2758 GNUSTEP_CONFIG_FILE
=/etc
/GNUstep
/GNUstep.conf
2760 # Check whether --enable-ns-self-contained was given.
2761 if test "${enable_ns_self_contained+set}" = set; then :
2762 enableval
=$enable_ns_self_contained; EN_NS_SELF_CONTAINED
=$enableval
2764 EN_NS_SELF_CONTAINED
=yes
2768 # Check whether --enable-asserts was given.
2769 if test "${enable_asserts+set}" = set; then :
2770 enableval
=$enable_asserts; USE_XASSERTS
=$enableval
2776 # Check whether --enable-maintainer-mode was given.
2777 if test "${enable_maintainer_mode+set}" = set; then :
2778 enableval
=$enable_maintainer_mode; USE_MAINTAINER_MODE
=$enableval
2780 USE_MAINTAINER_MODE
=no
2783 if test $USE_MAINTAINER_MODE = yes; then
2790 # Check whether --enable-locallisppath was given.
2791 if test "${enable_locallisppath+set}" = set; then :
2792 enableval
=$enable_locallisppath; if test "${enableval}" = "no"; then
2794 elif test "${enableval}" != "yes"; then
2795 locallisppath
=${enableval}
2800 # Check whether --enable-checking was given.
2801 if test "${enable_checking+set}" = set; then :
2802 enableval
=$enable_checking; ac_checking_flags
="${enableval}"
2805 IFS
="${IFS= }"; ac_save_IFS
="$IFS"; IFS
="$IFS,"
2806 for check
in $ac_checking_flags
2809 # these set all the flags to specific states
2810 yes) ac_enable_checking
=1 ;;
2811 no
) ac_enable_checking
= ;
2812 ac_gc_check_stringbytes
= ;
2813 ac_gc_check_string_overrun
= ;
2814 ac_gc_check_string_free_list
= ;
2815 ac_xmalloc_overrun
= ;
2816 ac_gc_check_cons_list
= ;;
2817 all
) ac_enable_checking
=1 ;
2818 ac_gc_check_stringbytes
=1 ;
2819 ac_gc_check_string_overrun
=1 ;
2820 ac_gc_check_string_free_list
=1 ;
2821 ac_xmalloc_overrun
=1 ;
2822 ac_gc_check_cons_list
=1 ;;
2823 # these enable particular checks
2824 stringbytes
) ac_gc_check_stringbytes
=1 ;;
2825 stringoverrun
) ac_gc_check_string_overrun
=1 ;;
2826 stringfreelist
) ac_gc_check_string_free_list
=1 ;;
2827 xmallocoverrun
) ac_xmalloc_overrun
=1 ;;
2828 conslist
) ac_gc_check_cons_list
=1 ;;
2829 *) as_fn_error
"unknown check category $check" "$LINENO" 5 ;;
2834 if test x
$ac_enable_checking != x
; then
2836 $as_echo "#define ENABLE_CHECKING 1" >>confdefs.h
2839 if test x
$ac_gc_check_stringbytes != x
; then
2841 $as_echo "#define GC_CHECK_STRING_BYTES 1" >>confdefs.h
2844 if test x
$ac_gc_check_stringoverrun != x
; then
2846 $as_echo "#define GC_CHECK_STRING_OVERRUN 1" >>confdefs.h
2849 if test x
$ac_gc_check_string_free_list != x
; then
2851 $as_echo "#define GC_CHECK_STRING_FREE_LIST 1" >>confdefs.h
2854 if test x
$ac_xmalloc_overrun != x
; then
2856 $as_echo "#define XMALLOC_OVERRUN_CHECK 1" >>confdefs.h
2859 if test x
$ac_gc_check_cons_list != x
; then
2861 $as_echo "#define GC_CHECK_CONS_LIST 1" >>confdefs.h
2865 # Check whether --enable-profiling was given.
2866 if test "${enable_profiling+set}" = set; then :
2867 enableval
=$enable_profiling; ac_enable_profiling
="${enableval}"
2870 if test x
$ac_enable_profiling != x
; then
2871 PROFILING_CFLAGS
="-DPROFILING=1 -pg"
2872 PROFILING_LDFLAGS
="-pg"
2878 # Check whether --enable-autodepend was given.
2879 if test "${enable_autodepend+set}" = set; then :
2880 enableval
=$enable_autodepend; ac_enable_autodepend
="${enableval}"
2882 ac_enable_autodepend
=yes
2886 #### Make srcdir absolute, if it isn't already. It's important to
2887 #### avoid running the path through pwd unnecessarily, since pwd can
2888 #### give you automounter prefixes, which can go away. We do all this
2889 #### so Emacs can find its files when run uninstalled.
2890 ## Make sure CDPATH doesn't affect cd (in case PWD is relative).
2895 ## We may be able to use the $PWD environment variable to make this
2896 ## absolute. But sometimes PWD is inaccurate.
2897 ## Note: we used to use ${PWD} at the end instead of `pwd`,
2898 ## but that tested only for a well-formed and valid PWD,
2899 ## it did not object when PWD was well-formed and valid but just wrong.
2900 if test ".${PWD}" != "." && test ".`(cd ${PWD} ; sh -c pwd)`" = ".`pwd`" ;
2904 srcdir
="`(cd ${srcdir}; pwd)`"
2907 * ) srcdir
="`(cd ${srcdir}; pwd)`" ;;
2910 #### Check if the source directory already has a configured system in it.
2911 if test `pwd` != `(cd ${srcdir} && pwd)` \
2912 && test -f "${srcdir}/src/config.h" ; then
2913 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: The directory tree \`${srcdir}' is being used
2914 as a build directory right now; it has been configured in its own
2915 right. To configure in another directory as well, you MUST
2916 use GNU make. If you do not have GNU make, then you must
2917 now do \`make distclean' in ${srcdir},
2918 and then run $0 again." >&5
2919 $as_echo "$as_me: WARNING: The directory tree \`${srcdir}' is being used
2920 as a build directory right now; it has been configured in its own
2921 right. To configure in another directory as well, you MUST
2922 use GNU make. If you do not have GNU make, then you must
2923 now do \`make distclean' in ${srcdir},
2924 and then run $0 again." >&2;}
2927 #### Given the configuration name, set machfile and opsysfile to the
2928 #### names of the m/*.h and s/*.h files we should use.
2930 ### Canonicalize the configuration name.
2933 for ac_dir
in "$srcdir" "$srcdir/.." "$srcdir/../.."; do
2934 for ac_t
in install-sh
install.sh shtool
; do
2935 if test -f "$ac_dir/$ac_t"; then
2937 ac_install_sh
="$ac_aux_dir/$ac_t -c"
2942 if test -z "$ac_aux_dir"; then
2943 as_fn_error
"cannot find install-sh, install.sh, or shtool in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" "$LINENO" 5
2946 # These three variables are undocumented and unsupported,
2947 # and are intended to be withdrawn in a future Autoconf release.
2948 # They can cause serious problems if a builder's source tree is in a directory
2949 # whose full name contains unusual characters.
2950 ac_config_guess
="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
2951 ac_config_sub
="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
2952 ac_configure
="$SHELL $ac_aux_dir/configure" # Please don't use this var.
2955 # Make sure we can run config.sub.
2956 $SHELL "$ac_aux_dir/config.sub" sun4
>/dev
/null
2>&1 ||
2957 as_fn_error
"cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5
2959 { $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
2960 $as_echo_n "checking build system type... " >&6; }
2961 if test "${ac_cv_build+set}" = set; then :
2962 $as_echo_n "(cached) " >&6
2964 ac_build_alias
=$build_alias
2965 test "x$ac_build_alias" = x
&&
2966 ac_build_alias
=`$SHELL "$ac_aux_dir/config.guess"`
2967 test "x$ac_build_alias" = x
&&
2968 as_fn_error
"cannot guess build type; you must specify one" "$LINENO" 5
2969 ac_cv_build
=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
2970 as_fn_error
"$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5
2973 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
2974 $as_echo "$ac_cv_build" >&6; }
2975 case $ac_cv_build in
2977 *) as_fn_error
"invalid value of canonical build" "$LINENO" 5;;
2980 ac_save_IFS
=$IFS; IFS
='-'
2986 # Remember, the first character of IFS is used to create $*,
2987 # except with old shells:
2990 case $build_os in *\
*) build_os
=`echo "$build_os" | sed 's/ /-/g'`;; esac
2993 { $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
2994 $as_echo_n "checking host system type... " >&6; }
2995 if test "${ac_cv_host+set}" = set; then :
2996 $as_echo_n "(cached) " >&6
2998 if test "x$host_alias" = x
; then
2999 ac_cv_host
=$ac_cv_build
3001 ac_cv_host
=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
3002 as_fn_error
"$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5
3006 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
3007 $as_echo "$ac_cv_host" >&6; }
3010 *) as_fn_error
"invalid value of canonical host" "$LINENO" 5;;
3013 ac_save_IFS
=$IFS; IFS
='-'
3019 # Remember, the first character of IFS is used to create $*,
3020 # except with old shells:
3023 case $host_os in *\
*) host_os
=`echo "$host_os" | sed 's/ /-/g'`;; esac
3027 configuration
=${host_alias-${build_alias-$host}}
3031 ### If you add support for a new configuration, add code to this
3032 ### switch statement to recognize your configuration name and select
3033 ### the appropriate operating system and machine description files.
3035 ### You would hope that you could choose an m/*.h file pretty much
3036 ### based on the machine portion of the configuration name, and an s-
3037 ### file based on the operating system portion. However, it turns out
3038 ### that each m/*.h file is pretty manufacturer-specific - for
3039 ### example mips.h is MIPS
3040 ### So we basically have to have a special case for each
3041 ### configuration name.
3043 ### As far as handling version numbers on operating systems is
3044 ### concerned, make sure things will fail in a fixable way. If
3045 ### /etc/MACHINES doesn't say anything about version numbers, be
3046 ### prepared to handle anything reasonably. If version numbers
3047 ### matter, be sure /etc/MACHINES says something about it.
3049 ### Eric Raymond says we should accept strings like "sysvr4" to mean
3050 ### "System V Release 4"; he writes, "The old convention encouraged
3051 ### confusion between `system' and `release' levels'."
3053 machine
='' opsys
='' unported
=no
3054 case "${canonical}" in
3059 case "${canonical}" in
3060 alpha
*-*-freebsd*) machine
=alpha
;;
3061 arm
*-*-freebsd*) machine
=arm
;;
3062 ia64-
*-freebsd*) machine
=ia64
;;
3063 sparc-
*-freebsd*) machine
=sparc
;;
3064 sparc64-
*-freebsd*) machine
=sparc
;;
3065 powerpc-
*-freebsd*) machine
=macppc
;;
3066 i
[3456]86-*-freebsd*) machine
=intel386
;;
3067 amd64-
*-freebsd*|x86_64-
*-freebsd*) machine
=amdx86-64
;;
3071 ## FreeBSD kernel + glibc based userland
3074 case "${canonical}" in
3075 alpha
*-*-kfreebsd*) machine
=alpha
;;
3076 ia64-
*-kfreebsd*) machine
=ia64
;;
3077 sparc-
*-kfreebsd*) machine
=sparc
;;
3078 sparc64-
*-kfreebsd*) machine
=sparc
;;
3079 powerpc-
*-kfreebsd*) machine
=macppc
;;
3080 i
[3456]86-*-kfreebsd*) machine
=intel386
;;
3081 amd64-
*-kfreebsd*|x86_64-
*-kfreebsd*) machine
=amdx86-64
;;
3088 if test -f /usr
/lib
/crti.o
; then
3090 $as_echo "#define HAVE_CRTIN /**/" >>confdefs.h
3094 case "${canonical}" in
3095 alpha
*-*-netbsd*) machine
=alpha
;;
3096 i
[3456]86-*-netbsd*) machine
=intel386
;;
3097 mips-
*-netbsd*) machine
=mips
;;
3098 mipsel-
*-netbsd*) machine
=mips
;;
3099 mipseb-
*-netbsd*) machine
=mips
;;
3100 powerpc-
*-netbsd*) machine
=macppc
;;
3101 sparc
*-*-netbsd*) machine
=sparc
;;
3102 vax-
*-netbsd*) machine
=vax
;;
3103 arm-
*-netbsd*) machine
=arm
;;
3104 x86_64-
*-netbsd*) machine
=amdx86-64
;;
3105 hppa-
*-netbsd*) machine
=hp800
;;
3106 m68k-
*-netbsd*) machine
=m68k
;;
3113 case "${canonical}" in
3114 alpha
*-*-openbsd*) machine
=alpha
;;
3115 arm-
*-openbsd*) machine
=arm
;;
3116 i386-
*-openbsd*) machine
=intel386
;;
3117 powerpc-
*-openbsd*) machine
=macppc
;;
3118 sparc
*-*-openbsd*) machine
=sparc
;;
3119 vax-
*-openbsd*) machine
=vax
;;
3120 x86_64-
*-openbsd*) machine
=amdx86-64
;;
3121 hppa-
*-openbsd*) machine
=hp800
;;
3128 case "${canonical}" in
3129 i
[3456]86-*-lynxos*) machine
=intel386
;;
3130 powerpc-
*-lynxos*) machine
=powerpc
;;
3134 alpha
*-*-linux-gnu* )
3135 machine
=alpha opsys
=gnu-linux
3139 machine
=arm opsys
=gnu-linux
3142 ## Apple Darwin / Mac OS X
3144 case "${canonical}" in
3145 i
[3456]86-* ) machine
=intel386
;;
3146 powerpc-
* ) machine
=macppc
;;
3147 x86_64-
* ) machine
=amdx86-64
;;
3151 # Define CPP as follows to make autoconf work correctly.
3152 CPP
="${CC-cc} -E -no-cpp-precomp"
3153 # Use fink packages if available.
3154 if test -d /sw
/include
&& test -d /sw
/lib
; then
3155 GCC_TEST_OPTIONS
="-I/sw/include -L/sw/lib"
3156 CPP
="${CPP} ${GCC_TEST_OPTIONS}"
3157 NON_GCC_TEST_OPTIONS
=${GCC_TEST_OPTIONS}
3161 ## HP 9000 series 700 and 800, running HP/UX
3162 hppa
*-hp-hpux10.2
* )
3163 machine
=hp800 opsys
=hpux10-20
3165 hppa
*-hp-hpux1[1-9]* )
3166 machine
=hp800 opsys
=hpux11
3167 CFLAGS
="-D_INCLUDE__STDC_A1_SOURCE $CFLAGS"
3170 hppa
*-*-linux-gnu* )
3171 machine
=hp800 opsys
=gnu-linux
3176 machine
=ibms390 opsys
=gnu-linux
3178 s390x-
*-linux-gnu* )
3179 machine
=ibms390x opsys
=gnu-linux
3181 rs6000-ibm-aix4.2
* | powerpc-ibm-aix4.2
* )
3182 machine
=ibmrs6000 opsys
=aix4-2
3184 rs6000-ibm-aix4.3
* | powerpc-ibm-aix4.3
* )
3185 machine
=ibmrs6000 opsys
=aix4-2
3187 rs6000-ibm-aix5
* | powerpc-ibm-aix5
* )
3188 machine
=ibmrs6000 opsys
=aix4-2
3190 rs6000-ibm-aix6
* | powerpc-ibm-aix6
* )
3191 machine
=ibmrs6000 opsys
=aix4-2
3194 ## Macintosh PowerPC
3195 powerpc
*-*-linux-gnu* )
3196 machine
=macppc opsys
=gnu-linux
3199 ## Silicon Graphics machines
3202 machine
=iris4d opsys
=irix6-5
3203 # Without defining _LANGUAGE_C, things get masked out in the headers
3204 # so that, for instance, grepping for `free' in stdlib.h fails and
3205 # AC_HEADER_STD_C fails. (MIPSPro 7.2.1.2m compilers, Irix 6.5.3m).
3206 NON_GNU_CPP
="/lib/cpp -D_LANGUAGE_C"
3207 NON_GCC_TEST_OPTIONS
="-D_LANGUAGE_C"
3211 sparc-
*-linux-gnu* | sparc64-
*-linux-gnu* )
3212 machine
=sparc opsys
=gnu-linux
3216 | i
[3456]86-*-solaris2* | i
[3456]86-*-sunos5* \
3217 | x86_64-
*-solaris2* | x86_64-
*-sunos5* \
3218 | powerpc
*-*-solaris2* | rs6000-
*-solaris2*)
3219 case "${canonical}" in
3220 i
[3456]86-*-* ) machine
=intel386
;;
3221 amd64-
*-*|x86_64-
*-*) machine
=amdx86-64
;;
3222 powerpc
* | rs6000
* ) machine
=ibmrs6000
;;
3223 sparc
* ) machine
=sparc
;;
3226 case "${canonical}" in
3227 *-sunos5.3
* |
*-solaris2.3
* )
3229 NON_GNU_CPP
=/usr
/ccs
/lib
/cpp
3231 *-sunos5.4
* |
*-solaris2.4
* )
3233 NON_GNU_CPP
=/usr
/ccs
/lib
/cpp
3236 *-sunos5.5
* |
*-solaris2.5
* )
3238 NON_GNU_CPP
=/usr
/ccs
/lib
/cpp
3241 *-sunos5.6
* |
*-solaris2.6
* )
3243 NON_GNU_CPP
=/usr
/ccs
/lib
/cpp
3246 *-sunos5.
[7-9]* |
*-solaris2.
[7-9]* )
3248 emacs_check_sunpro_c
=yes
3249 NON_GNU_CPP
=/usr
/ccs
/lib
/cpp
3251 *-sunos5* |
*-solaris* )
3253 emacs_check_sunpro_c
=yes
3254 NON_GNU_CPP
=/usr
/ccs
/lib
/cpp
3257 ## Watch out for a compiler that we know will not work.
3258 case "${canonical}" in
3259 *-solaris* |
*-sunos5* )
3260 if [ "x$CC" = x
/usr
/ucb
/cc
]; then
3261 ## /usr/ucb/cc doesn't work;
3262 ## we should find some other compiler that does work.
3272 machine
=ia64 opsys
=gnu-linux
3275 ## Intel 386 machines where we don't care about the manufacturer
3278 case "${canonical}" in
3279 *-cygwin ) opsys
=cygwin
;;
3280 *-darwin* ) opsys
=darwin
3281 CPP
="${CC-cc} -E -no-cpp-precomp"
3283 *-linux-gnu* ) opsys
=gnu-linux
;;
3284 *-sysv4.2uw
* ) opsys
=unixware
; NON_GNU_CPP
=/lib
/cpp
;;
3285 *-sysv5uw* ) opsys
=unixware
; NON_GNU_CPP
=/lib
/cpp
;;
3286 *-sysv5OpenUNIX* ) opsys
=unixware
; NON_GNU_CPP
=/lib
/cpp
;;
3287 ## Otherwise, we'll fall through to the generic opsys code at the bottom.
3291 ## m68k Linux-based GNU system
3293 machine
=m68k opsys
=gnu-linux
3296 ## Mips Linux-based GNU system
3297 mips-
*-linux-gnu* | mipsel-
*-linux-gnu* \
3298 | mips64-
*-linux-gnu* | mips64el-
*-linux-gnu* )
3299 machine
=mips opsys
=gnu-linux
3302 ## AMD x86-64 Linux-based GNU system
3303 x86_64-
*-linux-gnu* )
3304 machine
=amdx86-64 opsys
=gnu-linux
3307 ## Tensilica Xtensa Linux-based GNU system
3308 xtensa
*-*-linux-gnu* )
3309 machine
=xtensa opsys
=gnu-linux
3312 ## SuperH Linux-based GNU system
3313 sh
[34]*-*-linux-gnu* )
3314 machine
=sh3 opsys
=gnu-linux
3322 ### If the code above didn't choose an operating system, just choose
3323 ### an operating system based on the configuration name. You really
3324 ### only want to use this when you have no idea what the right
3325 ### operating system is; if you know what operating systems a machine
3326 ### runs, it's cleaner to make it explicit in the case statement
3328 if test x
"${opsys}" = x
; then
3329 case "${canonical}" in
3330 *-gnu* ) opsys
=gnu
;;
3331 *-sysv4.2uw
* ) opsys
=unixware
;;
3332 *-sysv5uw* ) opsys
=unixware
;;
3333 *-sysv5OpenUNIX* ) opsys
=unixware
;;
3334 *-sysv4.1
* |
*-sysvr4.1
* )
3335 NON_GNU_CPP
=/usr
/lib
/cpp
3337 *-sysv4.
[2-9]* |
*-sysvr4.
[2-9]* )
3338 if [ x
$NON_GNU_CPP = x
]; then
3339 if [ -f /usr
/ccs
/lib
/cpp
]; then
3340 NON_GNU_CPP
=/usr
/ccs
/lib
/cpp
3342 NON_GNU_CPP
=/lib
/cpp
3346 *-sysv4* |
*-sysvr4* ) opsys
=usg5-4
;;
3355 if test $unported = yes; then
3356 as_fn_error
"Emacs hasn't been ported to \`${canonical}' systems.
3357 Check \`etc/MACHINES' for recognized configuration names." "$LINENO" 5
3360 machfile
="m/${machine}.h"
3361 opsysfile
="s/${opsys}.h"
3364 #### Choose a compiler.
3365 test -n "$CC" && cc_specified
=yes
3367 # Save the value of CFLAGS that the user specified.
3368 SPECIFIED_CFLAGS
="$CFLAGS"
3371 ac_cpp
='$CPP $CPPFLAGS'
3372 ac_compile
='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3373 ac_link
='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3374 ac_compiler_gnu
=$ac_cv_c_compiler_gnu
3375 if test -n "$ac_tool_prefix"; then
3376 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
3377 set dummy
${ac_tool_prefix}gcc
; ac_word
=$2
3378 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3379 $as_echo_n "checking for $ac_word... " >&6; }
3380 if test "${ac_cv_prog_CC+set}" = set; then :
3381 $as_echo_n "(cached) " >&6
3383 if test -n "$CC"; then
3384 ac_cv_prog_CC
="$CC" # Let the user override the test.
3386 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
3390 test -z "$as_dir" && as_dir
=.
3391 for ac_exec_ext
in '' $ac_executable_extensions; do
3392 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3393 ac_cv_prog_CC
="${ac_tool_prefix}gcc"
3394 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3404 if test -n "$CC"; then
3405 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3406 $as_echo "$CC" >&6; }
3408 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3409 $as_echo "no" >&6; }
3414 if test -z "$ac_cv_prog_CC"; then
3416 # Extract the first word of "gcc", so it can be a program name with args.
3417 set dummy gcc
; ac_word
=$2
3418 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3419 $as_echo_n "checking for $ac_word... " >&6; }
3420 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then :
3421 $as_echo_n "(cached) " >&6
3423 if test -n "$ac_ct_CC"; then
3424 ac_cv_prog_ac_ct_CC
="$ac_ct_CC" # Let the user override the test.
3426 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
3430 test -z "$as_dir" && as_dir
=.
3431 for ac_exec_ext
in '' $ac_executable_extensions; do
3432 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3433 ac_cv_prog_ac_ct_CC
="gcc"
3434 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3443 ac_ct_CC
=$ac_cv_prog_ac_ct_CC
3444 if test -n "$ac_ct_CC"; then
3445 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3446 $as_echo "$ac_ct_CC" >&6; }
3448 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3449 $as_echo "no" >&6; }
3452 if test "x$ac_ct_CC" = x
; then
3455 case $cross_compiling:$ac_tool_warned in
3457 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3458 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3459 ac_tool_warned
=yes ;;
3467 if test -z "$CC"; then
3468 if test -n "$ac_tool_prefix"; then
3469 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
3470 set dummy
${ac_tool_prefix}cc
; ac_word
=$2
3471 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3472 $as_echo_n "checking for $ac_word... " >&6; }
3473 if test "${ac_cv_prog_CC+set}" = set; then :
3474 $as_echo_n "(cached) " >&6
3476 if test -n "$CC"; then
3477 ac_cv_prog_CC
="$CC" # Let the user override the test.
3479 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
3483 test -z "$as_dir" && as_dir
=.
3484 for ac_exec_ext
in '' $ac_executable_extensions; do
3485 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3486 ac_cv_prog_CC
="${ac_tool_prefix}cc"
3487 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3497 if test -n "$CC"; then
3498 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3499 $as_echo "$CC" >&6; }
3501 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3502 $as_echo "no" >&6; }
3508 if test -z "$CC"; then
3509 # Extract the first word of "cc", so it can be a program name with args.
3510 set dummy cc
; ac_word
=$2
3511 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3512 $as_echo_n "checking for $ac_word... " >&6; }
3513 if test "${ac_cv_prog_CC+set}" = set; then :
3514 $as_echo_n "(cached) " >&6
3516 if test -n "$CC"; then
3517 ac_cv_prog_CC
="$CC" # Let the user override the test.
3520 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
3524 test -z "$as_dir" && as_dir
=.
3525 for ac_exec_ext
in '' $ac_executable_extensions; do
3526 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3527 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
3528 ac_prog_rejected
=yes
3532 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3539 if test $ac_prog_rejected = yes; then
3540 # We found a bogon in the path, so make sure we never use it.
3541 set dummy
$ac_cv_prog_CC
3543 if test $# != 0; then
3544 # We chose a different compiler from the bogus one.
3545 # However, it has the same basename, so the bogon will be chosen
3546 # first if we set CC to just the basename; use the full file name.
3548 ac_cv_prog_CC
="$as_dir/$ac_word${1+' '}$@"
3554 if test -n "$CC"; then
3555 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3556 $as_echo "$CC" >&6; }
3558 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3559 $as_echo "no" >&6; }
3564 if test -z "$CC"; then
3565 if test -n "$ac_tool_prefix"; then
3566 for ac_prog
in cl.exe
3568 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3569 set dummy
$ac_tool_prefix$ac_prog; ac_word
=$2
3570 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3571 $as_echo_n "checking for $ac_word... " >&6; }
3572 if test "${ac_cv_prog_CC+set}" = set; then :
3573 $as_echo_n "(cached) " >&6
3575 if test -n "$CC"; then
3576 ac_cv_prog_CC
="$CC" # Let the user override the test.
3578 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
3582 test -z "$as_dir" && as_dir
=.
3583 for ac_exec_ext
in '' $ac_executable_extensions; do
3584 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3585 ac_cv_prog_CC
="$ac_tool_prefix$ac_prog"
3586 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3596 if test -n "$CC"; then
3597 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3598 $as_echo "$CC" >&6; }
3600 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3601 $as_echo "no" >&6; }
3605 test -n "$CC" && break
3608 if test -z "$CC"; then
3610 for ac_prog
in cl.exe
3612 # Extract the first word of "$ac_prog", so it can be a program name with args.
3613 set dummy
$ac_prog; ac_word
=$2
3614 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3615 $as_echo_n "checking for $ac_word... " >&6; }
3616 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then :
3617 $as_echo_n "(cached) " >&6
3619 if test -n "$ac_ct_CC"; then
3620 ac_cv_prog_ac_ct_CC
="$ac_ct_CC" # Let the user override the test.
3622 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
3626 test -z "$as_dir" && as_dir
=.
3627 for ac_exec_ext
in '' $ac_executable_extensions; do
3628 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3629 ac_cv_prog_ac_ct_CC
="$ac_prog"
3630 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3639 ac_ct_CC
=$ac_cv_prog_ac_ct_CC
3640 if test -n "$ac_ct_CC"; then
3641 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3642 $as_echo "$ac_ct_CC" >&6; }
3644 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3645 $as_echo "no" >&6; }
3649 test -n "$ac_ct_CC" && break
3652 if test "x$ac_ct_CC" = x
; then
3655 case $cross_compiling:$ac_tool_warned in
3657 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3658 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3659 ac_tool_warned
=yes ;;
3668 test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3669 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3670 as_fn_error
"no acceptable C compiler found in \$PATH
3671 See \`config.log' for more details." "$LINENO" 5; }
3673 # Provide some information about the compiler.
3674 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
3677 for ac_option
in --version -v -V -qversion; do
3678 { { ac_try
="$ac_compiler $ac_option >&5"
3680 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
3681 *) ac_try_echo=$ac_try;;
3683 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3684 $as_echo "$ac_try_echo"; } >&5
3685 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
3687 if test -s conftest.err; then
3689 ... rest of stderr output deleted ...
3690 10q' conftest.err >conftest.er1
3691 cat conftest.er1 >&5
3693 rm -f conftest.er1 conftest.err
3694 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3695 test $ac_status = 0; }
3698 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3699 /* end confdefs.h. */
3709 ac_clean_files_save=$ac_clean_files
3710 ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
3711 # Try to create an executable without -o first, disregard a.out.
3712 # It will help us diagnose broken compilers, and finding out an intuition
3714 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
3715 $as_echo_n "checking whether the C compiler works... " >&6; }
3716 ac_link_default=`$as_echo "$ac_link" |
sed 's/ -o *conftest[^ ]*//'`
3718 # The possible output files:
3719 ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
3722 for ac_file in $ac_files
3725 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3726 * ) ac_rmfiles="$ac_rmfiles $ac_file";;
3731 if { { ac_try="$ac_link_default"
3733 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
3734 *) ac_try_echo
=$ac_try;;
3736 eval ac_try_echo
="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3737 $as_echo "$ac_try_echo"; } >&5
3738 (eval "$ac_link_default") 2>&5
3740 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3741 test $ac_status = 0; }; then :
3742 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
3743 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
3744 # in a Makefile. We should not override ac_cv_exeext if it was cached,
3745 # so that the user can short-circuit this test for compilers unknown to
3747 for ac_file
in $ac_files ''
3749 test -f "$ac_file" ||
continue
3751 *.
$ac_ext |
*.xcoff |
*.tds |
*.d |
*.pdb |
*.xSYM |
*.bb |
*.bbg |
*.map |
*.inf |
*.dSYM |
*.o |
*.obj
)
3754 # We found the default executable, but exeext='' is most
3758 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no
;
3760 ac_cv_exeext
=`expr "$ac_file" : '[^.]*\(\..*\)'`
3762 # We set ac_cv_exeext here because the later test for it is not
3763 # safe: cross compilers may not add the suffix if given an `-o'
3764 # argument, so we may need to know it at that point already.
3765 # Even if this section looks crufty: it has the advantage of
3772 test "$ac_cv_exeext" = no
&& ac_cv_exeext
=
3777 if test -z "$ac_file"; then :
3778 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3779 $as_echo "no" >&6; }
3780 $as_echo "$as_me: failed program was:" >&5
3781 sed 's/^/| /' conftest.
$ac_ext >&5
3783 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3784 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3785 { as_fn_set_status
77
3786 as_fn_error
"C compiler cannot create executables
3787 See \`config.log' for more details." "$LINENO" 5; }; }
3789 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3790 $as_echo "yes" >&6; }
3792 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
3793 $as_echo_n "checking for C compiler default output file name... " >&6; }
3794 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
3795 $as_echo "$ac_file" >&6; }
3796 ac_exeext
=$ac_cv_exeext
3798 rm -f -r a.out a.out.dSYM a.exe conftest
$ac_cv_exeext b.out
3799 ac_clean_files
=$ac_clean_files_save
3800 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
3801 $as_echo_n "checking for suffix of executables... " >&6; }
3802 if { { ac_try
="$ac_link"
3804 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
3805 *) ac_try_echo=$ac_try;;
3807 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3808 $as_echo "$ac_try_echo"; } >&5
3809 (eval "$ac_link") 2>&5
3811 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3812 test $ac_status = 0; }; then :
3813 # If both `conftest.exe
' and `conftest' are
`present' (well, observable)
3814 # catch `conftest.exe
'. For instance with Cygwin, `ls conftest' will
3815 # work properly (i.e., refer to `conftest.exe'), while it won't with
3817 for ac_file
in conftest.exe conftest conftest.
*; do
3818 test -f "$ac_file" ||
continue
3820 *.
$ac_ext |
*.xcoff |
*.tds |
*.d |
*.pdb |
*.xSYM |
*.bb |
*.bbg |
*.map |
*.inf |
*.dSYM |
*.o |
*.obj
) ;;
3821 *.
* ) ac_cv_exeext
=`expr "$ac_file" : '[^.]*\(\..*\)'`
3827 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3828 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3829 as_fn_error
"cannot compute suffix of executables: cannot compile and link
3830 See \`config.log' for more details." "$LINENO" 5; }
3832 rm -f conftest conftest
$ac_cv_exeext
3833 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
3834 $as_echo "$ac_cv_exeext" >&6; }
3836 rm -f conftest.
$ac_ext
3837 EXEEXT
=$ac_cv_exeext
3839 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
3840 /* end confdefs.h. */
3845 FILE *f = fopen ("conftest.out", "w");
3846 return ferror (f) || fclose (f) != 0;
3852 ac_clean_files
="$ac_clean_files conftest.out"
3853 # Check that the compiler produces executables we can run. If not, either
3854 # the compiler is broken, or we cross compile.
3855 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
3856 $as_echo_n "checking whether we are cross compiling... " >&6; }
3857 if test "$cross_compiling" != yes; then
3858 { { ac_try
="$ac_link"
3860 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
3861 *) ac_try_echo=$ac_try;;
3863 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3864 $as_echo "$ac_try_echo"; } >&5
3865 (eval "$ac_link") 2>&5
3867 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3868 test $ac_status = 0; }
3869 if { ac_try='./conftest$ac_cv_exeext'
3870 { { case "(($ac_try" in
3871 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
3872 *) ac_try_echo
=$ac_try;;
3874 eval ac_try_echo
="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3875 $as_echo "$ac_try_echo"; } >&5
3876 (eval "$ac_try") 2>&5
3878 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3879 test $ac_status = 0; }; }; then
3882 if test "$cross_compiling" = maybe
; then
3885 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3886 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3887 as_fn_error
"cannot run C compiled programs.
3888 If you meant to cross compile, use \`--host'.
3889 See \`config.log' for more details." "$LINENO" 5; }
3893 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
3894 $as_echo "$cross_compiling" >&6; }
3896 rm -f conftest.
$ac_ext conftest
$ac_cv_exeext conftest.out
3897 ac_clean_files
=$ac_clean_files_save
3898 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
3899 $as_echo_n "checking for suffix of object files... " >&6; }
3900 if test "${ac_cv_objext+set}" = set; then :
3901 $as_echo_n "(cached) " >&6
3903 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
3904 /* end confdefs.h. */
3914 rm -f conftest.o conftest.obj
3915 if { { ac_try
="$ac_compile"
3917 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
3918 *) ac_try_echo=$ac_try;;
3920 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3921 $as_echo "$ac_try_echo"; } >&5
3922 (eval "$ac_compile") 2>&5
3924 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3925 test $ac_status = 0; }; then :
3926 for ac_file in conftest.o conftest.obj conftest.*; do
3927 test -f "$ac_file" || continue;
3929 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
3930 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
3935 $as_echo "$as_me: failed program was:" >&5
3936 sed 's/^/| /' conftest.$ac_ext >&5
3938 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3939 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3940 as_fn_error "cannot compute suffix of object files
: cannot compile
3941 See \
`config.log' for more details." "$LINENO" 5; }
3943 rm -f conftest.$ac_cv_objext conftest.$ac_ext
3945 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
3946 $as_echo "$ac_cv_objext" >&6; }
3947 OBJEXT=$ac_cv_objext
3949 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
3950 $as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
3951 if test "${ac_cv_c_compiler_gnu+set}" = set; then :
3952 $as_echo_n "(cached) " >&6
3954 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3955 /* end confdefs.h. */
3968 if ac_fn_c_try_compile "$LINENO"; then :
3973 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3974 ac_cv_c_compiler_gnu=$ac_compiler_gnu
3977 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
3978 $as_echo "$ac_cv_c_compiler_gnu" >&6; }
3979 if test $ac_compiler_gnu = yes; then
3984 ac_test_CFLAGS=${CFLAGS+set}
3985 ac_save_CFLAGS=$CFLAGS
3986 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
3987 $as_echo_n "checking whether $CC accepts -g... " >&6; }
3988 if test "${ac_cv_prog_cc_g+set}" = set; then :
3989 $as_echo_n "(cached) " >&6
3991 ac_save_c_werror_flag=$ac_c_werror_flag
3992 ac_c_werror_flag=yes
3995 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3996 /* end confdefs.h. */
4006 if ac_fn_c_try_compile "$LINENO"; then :
4010 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4011 /* end confdefs.h. */
4021 if ac_fn_c_try_compile "$LINENO"; then :
4024 ac_c_werror_flag=$ac_save_c_werror_flag
4026 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4027 /* end confdefs.h. */
4037 if ac_fn_c_try_compile "$LINENO"; then :
4040 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4042 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4044 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4045 ac_c_werror_flag=$ac_save_c_werror_flag
4047 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
4048 $as_echo "$ac_cv_prog_cc_g" >&6; }
4049 if test "$ac_test_CFLAGS" = set; then
4050 CFLAGS=$ac_save_CFLAGS
4051 elif test $ac_cv_prog_cc_g = yes; then
4052 if test "$GCC" = yes; then
4058 if test "$GCC" = yes; then
4064 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
4065 $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
4066 if test "${ac_cv_prog_cc_c89+set}" = set; then :
4067 $as_echo_n "(cached) " >&6
4069 ac_cv_prog_cc_c89=no
4071 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4072 /* end confdefs.h. */
4075 #include <sys/types.h>
4076 #include <sys/stat.h>
4077 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
4078 struct buf { int x; };
4079 FILE * (*rcsopen) (struct buf *, struct stat *, int);
4080 static char *e (p, i)
4086 static char *f (char * (*g) (char **, int), char **p, ...)
4091 s = g (p, va_arg (v,int));
4096 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
4097 function prototypes and stuff, but not '\xHH' hex character constants.
4098 These don't provoke an error unfortunately, instead are silently treated
4099 as 'x'. The following induces an error, until -std is added to get
4100 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
4101 array size at least. It's necessary to write '\x00'==0 to get something
4102 that's true only with -std. */
4103 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
4105 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
4106 inside strings and character constants. */
4108 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
4110 int test (int i, double x);
4111 struct s1 {int (*f) (int a);};
4112 struct s2 {int (*f) (double a);};
4113 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
4119 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
4124 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
4125 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
4127 CC="$ac_save_CC $ac_arg"
4128 if ac_fn_c_try_compile "$LINENO"; then :
4129 ac_cv_prog_cc_c89=$ac_arg
4131 rm -f core conftest.err conftest.$ac_objext
4132 test "x$ac_cv_prog_cc_c89" != "xno" && break
4134 rm -f conftest.$ac_ext
4139 case "x$ac_cv_prog_cc_c89" in
4141 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
4142 $as_echo "none needed" >&6; } ;;
4144 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
4145 $as_echo "unsupported" >&6; } ;;
4147 CC="$CC $ac_cv_prog_cc_c89"
4148 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
4149 $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
4151 if test "x$ac_cv_prog_cc_c89" != xno; then :
4156 ac_cpp='$CPP $CPPFLAGS'
4157 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4158 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4159 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4162 # On Suns, sometimes $CPP names a directory.
4163 if test -n "$CPP" && test -d "$CPP"; then
4167 ## If not using gcc, and on Solaris, and no CPP specified, see if
4168 ## using a Sun compiler, which needs -Xs to prevent whitespace.
4169 if test x"$GCC" != xyes && test x"$emacs_check_sunpro_c" = xyes && \
4170 test x"$CPP" = x; then
4171 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using a Sun C compiler" >&5
4172 $as_echo_n "checking whether we are using a Sun C compiler... " >&6; }
4174 if test "${emacs_cv_sunpro_c+set}" = set; then :
4175 $as_echo_n "(cached) " >&6
4177 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4178 /* end confdefs.h. */
4191 if ac_fn_c_try_link "$LINENO"; then :
4192 emacs_cv_sunpro_c=yes
4194 emacs_cv_sunpro_c=no
4196 rm -f core conftest.err conftest.$ac_objext \
4197 conftest$ac_exeext conftest.$ac_ext
4200 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $emacs_cv_sunpro_c" >&5
4201 $as_echo "$emacs_cv_sunpro_c" >&6; }
4203 if test x"$emacs_cv_sunpro_c" = xyes; then
4204 NON_GNU_CPP="$CC -E -Xs"
4208 #### Some systems specify a CPP to use unless we are using GCC.
4209 #### Now that we know whether we are using GCC, we can decide whether
4210 #### to use that one.
4211 if test "x$NON_GNU_CPP" != x && test x$GCC != xyes && test "x$CPP" = x
4216 #### Some systems specify a CC to use unless we are using GCC.
4217 #### Now that we know whether we are using GCC, we can decide whether
4218 #### to use that one.
4219 if test "x$NON_GNU_CC" != x && test x$GCC != xyes &&
4220 test x$cc_specified != xyes
4225 if test x$GCC = xyes && test "x$GCC_TEST_OPTIONS" != x
4227 CC="$CC $GCC_TEST_OPTIONS"
4230 if test x$GCC = x && test "x$NON_GCC_TEST_OPTIONS" != x
4232 CC="$CC $NON_GCC_TEST_OPTIONS"
4236 ac_cpp='$CPP $CPPFLAGS'
4237 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4238 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4239 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4240 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
4241 $as_echo_n "checking how to run the C preprocessor... " >&6; }
4242 # On Suns, sometimes $CPP names a directory.
4243 if test -n "$CPP" && test -d "$CPP"; then
4246 if test -z "$CPP"; then
4247 if test "${ac_cv_prog_CPP+set}" = set; then :
4248 $as_echo_n "(cached) " >&6
4250 # Double quotes because CPP needs to be expanded
4251 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
4254 for ac_c_preproc_warn_flag in '' yes
4256 # Use a header file that comes with gcc, so configuring glibc
4257 # with a fresh cross-compiler works.
4258 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4259 # <limits.h> exists even on freestanding compilers.
4260 # On the NeXT, cc -E runs the code through the compiler's parser,
4261 # not just through cpp. "Syntax error" is here to catch this case.
4262 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4263 /* end confdefs.h. */
4265 # include <limits.h>
4267 # include <assert.h>
4271 if ac_fn_c_try_cpp "$LINENO"; then :
4274 # Broken: fails on valid input.
4277 rm -f conftest.err conftest.$ac_ext
4279 # OK, works on sane cases. Now check whether nonexistent headers
4280 # can be detected and how.
4281 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4282 /* end confdefs.h. */
4283 #include <ac_nonexistent.h>
4285 if ac_fn_c_try_cpp "$LINENO"; then :
4286 # Broken: success on invalid input.
4289 # Passes both tests.
4293 rm -f conftest.err conftest.$ac_ext
4296 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4297 rm -f conftest.err conftest.
$ac_ext
4298 if $ac_preproc_ok; then :
4310 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
4311 $as_echo "$CPP" >&6; }
4313 for ac_c_preproc_warn_flag
in '' yes
4315 # Use a header file that comes with gcc, so configuring glibc
4316 # with a fresh cross-compiler works.
4317 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4318 # <limits.h> exists even on freestanding compilers.
4319 # On the NeXT, cc -E runs the code through the compiler's parser,
4320 # not just through cpp. "Syntax error" is here to catch this case.
4321 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
4322 /* end confdefs.h. */
4324 # include <limits.h>
4326 # include <assert.h>
4330 if ac_fn_c_try_cpp
"$LINENO"; then :
4333 # Broken: fails on valid input.
4336 rm -f conftest.err conftest.
$ac_ext
4338 # OK, works on sane cases. Now check whether nonexistent headers
4339 # can be detected and how.
4340 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
4341 /* end confdefs.h. */
4342 #include <ac_nonexistent.h>
4344 if ac_fn_c_try_cpp
"$LINENO"; then :
4345 # Broken: success on invalid input.
4348 # Passes both tests.
4352 rm -f conftest.err conftest.
$ac_ext
4355 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4356 rm -f conftest.err conftest.
$ac_ext
4357 if $ac_preproc_ok; then :
4360 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4361 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4362 as_fn_error
"C preprocessor \"$CPP\" fails sanity check
4363 See \`config.log' for more details." "$LINENO" 5; }
4367 ac_cpp
='$CPP $CPPFLAGS'
4368 ac_compile
='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4369 ac_link
='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4370 ac_compiler_gnu
=$ac_cv_c_compiler_gnu
4373 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
4374 $as_echo_n "checking for grep that handles long lines and -e... " >&6; }
4375 if test "${ac_cv_path_GREP+set}" = set; then :
4376 $as_echo_n "(cached) " >&6
4378 if test -z "$GREP"; then
4379 ac_path_GREP_found
=false
4380 # Loop through the user's path and test for each of PROGNAME-LIST
4381 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
4382 for as_dir
in $PATH$PATH_SEPARATOR/usr
/xpg
4/bin
4385 test -z "$as_dir" && as_dir
=.
4386 for ac_prog
in grep ggrep
; do
4387 for ac_exec_ext
in '' $ac_executable_extensions; do
4388 ac_path_GREP
="$as_dir/$ac_prog$ac_exec_ext"
4389 { test -f "$ac_path_GREP" && $as_test_x "$ac_path_GREP"; } ||
continue
4390 # Check for GNU ac_path_GREP and select it if it is found.
4391 # Check for GNU $ac_path_GREP
4392 case `"$ac_path_GREP" --version 2>&1` in
4394 ac_cv_path_GREP
="$ac_path_GREP" ac_path_GREP_found
=:;;
4397 $as_echo_n 0123456789 >"conftest.in"
4400 cat "conftest.in" "conftest.in" >"conftest.tmp"
4401 mv "conftest.tmp" "conftest.in"
4402 cp "conftest.in" "conftest.nl"
4403 $as_echo 'GREP' >> "conftest.nl"
4404 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev
/null ||
break
4405 diff "conftest.out" "conftest.nl" >/dev
/null
2>&1 ||
break
4406 as_fn_arith
$ac_count + 1 && ac_count
=$as_val
4407 if test $ac_count -gt ${ac_path_GREP_max-0}; then
4408 # Best one so far, save it but keep looking for a better one
4409 ac_cv_path_GREP
="$ac_path_GREP"
4410 ac_path_GREP_max
=$ac_count
4412 # 10*(2^10) chars as input seems more than enough
4413 test $ac_count -gt 10 && break
4415 rm -f conftest.
in conftest.tmp conftest.
nl conftest.out
;;
4418 $ac_path_GREP_found && break 3
4423 if test -z "$ac_cv_path_GREP"; then
4424 as_fn_error
"no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
4427 ac_cv_path_GREP
=$GREP
4431 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
4432 $as_echo "$ac_cv_path_GREP" >&6; }
4433 GREP
="$ac_cv_path_GREP"
4436 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
4437 $as_echo_n "checking for egrep... " >&6; }
4438 if test "${ac_cv_path_EGREP+set}" = set; then :
4439 $as_echo_n "(cached) " >&6
4441 if echo a |
$GREP -E '(a|b)' >/dev
/null
2>&1
4442 then ac_cv_path_EGREP
="$GREP -E"
4444 if test -z "$EGREP"; then
4445 ac_path_EGREP_found
=false
4446 # Loop through the user's path and test for each of PROGNAME-LIST
4447 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
4448 for as_dir
in $PATH$PATH_SEPARATOR/usr
/xpg
4/bin
4451 test -z "$as_dir" && as_dir
=.
4452 for ac_prog
in egrep; do
4453 for ac_exec_ext
in '' $ac_executable_extensions; do
4454 ac_path_EGREP
="$as_dir/$ac_prog$ac_exec_ext"
4455 { test -f "$ac_path_EGREP" && $as_test_x "$ac_path_EGREP"; } ||
continue
4456 # Check for GNU ac_path_EGREP and select it if it is found.
4457 # Check for GNU $ac_path_EGREP
4458 case `"$ac_path_EGREP" --version 2>&1` in
4460 ac_cv_path_EGREP
="$ac_path_EGREP" ac_path_EGREP_found
=:;;
4463 $as_echo_n 0123456789 >"conftest.in"
4466 cat "conftest.in" "conftest.in" >"conftest.tmp"
4467 mv "conftest.tmp" "conftest.in"
4468 cp "conftest.in" "conftest.nl"
4469 $as_echo 'EGREP' >> "conftest.nl"
4470 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev
/null ||
break
4471 diff "conftest.out" "conftest.nl" >/dev
/null
2>&1 ||
break
4472 as_fn_arith
$ac_count + 1 && ac_count
=$as_val
4473 if test $ac_count -gt ${ac_path_EGREP_max-0}; then
4474 # Best one so far, save it but keep looking for a better one
4475 ac_cv_path_EGREP
="$ac_path_EGREP"
4476 ac_path_EGREP_max
=$ac_count
4478 # 10*(2^10) chars as input seems more than enough
4479 test $ac_count -gt 10 && break
4481 rm -f conftest.
in conftest.tmp conftest.
nl conftest.out
;;
4484 $ac_path_EGREP_found && break 3
4489 if test -z "$ac_cv_path_EGREP"; then
4490 as_fn_error
"no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
4493 ac_cv_path_EGREP
=$EGREP
4498 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
4499 $as_echo "$ac_cv_path_EGREP" >&6; }
4500 EGREP
="$ac_cv_path_EGREP"
4503 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
4504 $as_echo_n "checking for ANSI C header files... " >&6; }
4505 if test "${ac_cv_header_stdc+set}" = set; then :
4506 $as_echo_n "(cached) " >&6
4508 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
4509 /* end confdefs.h. */
4523 if ac_fn_c_try_compile
"$LINENO"; then :
4524 ac_cv_header_stdc
=yes
4526 ac_cv_header_stdc
=no
4528 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
4530 if test $ac_cv_header_stdc = yes; then
4531 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
4532 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
4533 /* end confdefs.h. */
4537 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4538 $EGREP "memchr" >/dev
/null
2>&1; then :
4541 ac_cv_header_stdc
=no
4547 if test $ac_cv_header_stdc = yes; then
4548 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
4549 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
4550 /* end confdefs.h. */
4554 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4555 $EGREP "free" >/dev
/null
2>&1; then :
4558 ac_cv_header_stdc
=no
4564 if test $ac_cv_header_stdc = yes; then
4565 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
4566 if test "$cross_compiling" = yes; then :
4569 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
4570 /* end confdefs.h. */
4573 #if ((' ' & 0x0FF) == 0x020)
4574 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
4575 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
4577 # define ISLOWER(c) \
4578 (('a' <= (c) && (c) <= 'i') \
4579 || ('j' <= (c) && (c) <= 'r') \
4580 || ('s' <= (c) && (c) <= 'z'))
4581 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
4584 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
4589 for (i = 0; i < 256; i++)
4590 if (XOR (islower (i), ISLOWER (i))
4591 || toupper (i) != TOUPPER (i))
4596 if ac_fn_c_try_run
"$LINENO"; then :
4599 ac_cv_header_stdc
=no
4601 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
4602 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
4607 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
4608 $as_echo "$ac_cv_header_stdc" >&6; }
4609 if test $ac_cv_header_stdc = yes; then
4611 $as_echo "#define STDC_HEADERS 1" >>confdefs.h
4615 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
4616 for ac_header
in sys
/types.h sys
/stat.h stdlib.h string.h memory.h
strings.h \
4617 inttypes.h stdint.h unistd.h
4619 as_ac_Header
=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
4620 ac_fn_c_check_header_compile
"$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
4622 eval as_val
=\$
$as_ac_Header
4623 if test "x$as_val" = x
""yes; then :
4624 cat >>confdefs.h
<<_ACEOF
4625 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
4634 ac_fn_c_check_header_mongrel
"$LINENO" "minix/config.h" "ac_cv_header_minix_config_h" "$ac_includes_default"
4635 if test "x$ac_cv_header_minix_config_h" = x
""yes; then :
4642 if test "$MINIX" = yes; then
4644 $as_echo "#define _POSIX_SOURCE 1" >>confdefs.h
4647 $as_echo "#define _POSIX_1_SOURCE 2" >>confdefs.h
4650 $as_echo "#define _MINIX 1" >>confdefs.h
4655 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether it is safe to define __EXTENSIONS__" >&5
4656 $as_echo_n "checking whether it is safe to define __EXTENSIONS__... " >&6; }
4657 if test "${ac_cv_safe_to_define___extensions__+set}" = set; then :
4658 $as_echo_n "(cached) " >&6
4660 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
4661 /* end confdefs.h. */
4663 # define __EXTENSIONS__ 1
4664 $ac_includes_default
4673 if ac_fn_c_try_compile
"$LINENO"; then :
4674 ac_cv_safe_to_define___extensions__
=yes
4676 ac_cv_safe_to_define___extensions__
=no
4678 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
4680 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_safe_to_define___extensions__" >&5
4681 $as_echo "$ac_cv_safe_to_define___extensions__" >&6; }
4682 test $ac_cv_safe_to_define___extensions__ = yes &&
4683 $as_echo "#define __EXTENSIONS__ 1" >>confdefs.h
4685 $as_echo "#define _ALL_SOURCE 1" >>confdefs.h
4687 $as_echo "#define _GNU_SOURCE 1" >>confdefs.h
4689 $as_echo "#define _POSIX_PTHREAD_SEMANTICS 1" >>confdefs.h
4691 $as_echo "#define _TANDEM_SOURCE 1" >>confdefs.h
4695 ### Use -Wno-pointer-sign if the compiler supports it
4696 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether gcc understands -Wno-pointer-sign" >&5
4697 $as_echo_n "checking whether gcc understands -Wno-pointer-sign... " >&6; }
4698 SAVE_CFLAGS
="$CFLAGS"
4699 CFLAGS
="$CFLAGS -Wno-pointer-sign"
4700 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
4701 /* end confdefs.h. */
4711 if ac_fn_c_try_compile
"$LINENO"; then :
4716 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
4717 if test $has_option = yes; then
4718 C_WARNINGS_SWITCH
="-Wno-pointer-sign $C_WARNINGS_SWITCH"
4720 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $has_option" >&5
4721 $as_echo "$has_option" >&6; }
4722 CFLAGS
="$SAVE_CFLAGS"
4726 ### Use -Wdeclaration-after-statement if the compiler supports it
4727 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether gcc understands -Wdeclaration-after-statement" >&5
4728 $as_echo_n "checking whether gcc understands -Wdeclaration-after-statement... " >&6; }
4729 SAVE_CFLAGS
="$CFLAGS"
4730 CFLAGS
="$CFLAGS -Wdeclaration-after-statement"
4731 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
4732 /* end confdefs.h. */
4742 if ac_fn_c_try_compile
"$LINENO"; then :
4747 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
4748 if test $has_option = yes; then
4749 C_WARNINGS_SWITCH
="-Wdeclaration-after-statement $C_WARNINGS_SWITCH"
4751 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $has_option" >&5
4752 $as_echo "$has_option" >&6; }
4753 CFLAGS
="$SAVE_CFLAGS"
4757 #### Some other nice autoconf tests.
4759 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5
4760 $as_echo_n "checking whether ln -s works... " >&6; }
4762 if test "$LN_S" = "ln -s"; then
4763 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4764 $as_echo "yes" >&6; }
4766 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5
4767 $as_echo "no, using $LN_S" >&6; }
4771 ac_cpp
='$CPP $CPPFLAGS'
4772 ac_compile
='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4773 ac_link
='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4774 ac_compiler_gnu
=$ac_cv_c_compiler_gnu
4775 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
4776 $as_echo_n "checking how to run the C preprocessor... " >&6; }
4777 # On Suns, sometimes $CPP names a directory.
4778 if test -n "$CPP" && test -d "$CPP"; then
4781 if test -z "$CPP"; then
4782 if test "${ac_cv_prog_CPP+set}" = set; then :
4783 $as_echo_n "(cached) " >&6
4785 # Double quotes because CPP needs to be expanded
4786 for CPP
in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
4789 for ac_c_preproc_warn_flag
in '' yes
4791 # Use a header file that comes with gcc, so configuring glibc
4792 # with a fresh cross-compiler works.
4793 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4794 # <limits.h> exists even on freestanding compilers.
4795 # On the NeXT, cc -E runs the code through the compiler's parser,
4796 # not just through cpp. "Syntax error" is here to catch this case.
4797 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
4798 /* end confdefs.h. */
4800 # include <limits.h>
4802 # include <assert.h>
4806 if ac_fn_c_try_cpp
"$LINENO"; then :
4809 # Broken: fails on valid input.
4812 rm -f conftest.err conftest.
$ac_ext
4814 # OK, works on sane cases. Now check whether nonexistent headers
4815 # can be detected and how.
4816 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
4817 /* end confdefs.h. */
4818 #include <ac_nonexistent.h>
4820 if ac_fn_c_try_cpp
"$LINENO"; then :
4821 # Broken: success on invalid input.
4824 # Passes both tests.
4828 rm -f conftest.err conftest.
$ac_ext
4831 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4832 rm -f conftest.err conftest.
$ac_ext
4833 if $ac_preproc_ok; then :
4845 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
4846 $as_echo "$CPP" >&6; }
4848 for ac_c_preproc_warn_flag
in '' yes
4850 # Use a header file that comes with gcc, so configuring glibc
4851 # with a fresh cross-compiler works.
4852 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4853 # <limits.h> exists even on freestanding compilers.
4854 # On the NeXT, cc -E runs the code through the compiler's parser,
4855 # not just through cpp. "Syntax error" is here to catch this case.
4856 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
4857 /* end confdefs.h. */
4859 # include <limits.h>
4861 # include <assert.h>
4865 if ac_fn_c_try_cpp
"$LINENO"; then :
4868 # Broken: fails on valid input.
4871 rm -f conftest.err conftest.
$ac_ext
4873 # OK, works on sane cases. Now check whether nonexistent headers
4874 # can be detected and how.
4875 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
4876 /* end confdefs.h. */
4877 #include <ac_nonexistent.h>
4879 if ac_fn_c_try_cpp
"$LINENO"; then :
4880 # Broken: success on invalid input.
4883 # Passes both tests.
4887 rm -f conftest.err conftest.
$ac_ext
4890 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4891 rm -f conftest.err conftest.
$ac_ext
4892 if $ac_preproc_ok; then :
4895 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4896 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4897 as_fn_error
"C preprocessor \"$CPP\" fails sanity check
4898 See \`config.log' for more details." "$LINENO" 5; }
4902 ac_cpp
='$CPP $CPPFLAGS'
4903 ac_compile
='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4904 ac_link
='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4905 ac_compiler_gnu
=$ac_cv_c_compiler_gnu
4907 # Find a good install program. We prefer a C program (faster),
4908 # so one script is as good as another. But avoid the broken or
4909 # incompatible versions:
4910 # SysV /etc/install, /usr/sbin/install
4911 # SunOS /usr/etc/install
4912 # IRIX /sbin/install
4914 # AmigaOS /C/install, which installs bootblocks on floppy discs
4915 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
4916 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
4917 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
4918 # OS/2's system install, which has a completely different semantic
4919 # ./install, which can be erroneously created by make from ./install.sh.
4920 # Reject install programs that cannot install multiple files.
4921 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5
4922 $as_echo_n "checking for a BSD-compatible install... " >&6; }
4923 if test -z "$INSTALL"; then
4924 if test "${ac_cv_path_install+set}" = set; then :
4925 $as_echo_n "(cached) " >&6
4927 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
4931 test -z "$as_dir" && as_dir
=.
4932 # Account for people who put trailing slashes in PATH elements.
4933 case $as_dir/ in #((
4934 .
/ | .
// |
/[cC
]/* | \
4935 /etc
/* |
/usr
/sbin
/* |
/usr
/etc
/* |
/sbin
/* |
/usr
/afsws
/bin
/* | \
4936 ?
:[\\/]os2
[\\/]install[\\/]* | ?
:[\\/]OS2
[\\/]INSTALL
[\\/]* | \
4939 # OSF1 and SCO ODT 3.0 have their own names for install.
4940 # Don't use installbsd from OSF since it installs stuff as root
4942 for ac_prog
in ginstall scoinst
install; do
4943 for ac_exec_ext
in '' $ac_executable_extensions; do
4944 if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; }; then
4945 if test $ac_prog = install &&
4946 grep dspmsg
"$as_dir/$ac_prog$ac_exec_ext" >/dev
/null
2>&1; then
4947 # AIX install. It has an incompatible calling convention.
4949 elif test $ac_prog = install &&
4950 grep pwplus
"$as_dir/$ac_prog$ac_exec_ext" >/dev
/null
2>&1; then
4951 # program-specific install script used by HP pwplus--don't use.
4954 rm -rf conftest.one conftest.two conftest.dir
4955 echo one
> conftest.one
4956 echo two
> conftest.two
4958 if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two
"`pwd`/conftest.dir" &&
4959 test -s conftest.one
&& test -s conftest.two
&&
4960 test -s conftest.dir
/conftest.one
&&
4961 test -s conftest.dir
/conftest.two
4963 ac_cv_path_install
="$as_dir/$ac_prog$ac_exec_ext -c"
4976 rm -rf conftest.one conftest.two conftest.dir
4979 if test "${ac_cv_path_install+set}" = set; then
4980 INSTALL
=$ac_cv_path_install
4982 # As a last resort, use the slow shell script. Don't cache a
4983 # value for INSTALL within a source directory, because that will
4984 # break other packages using the cache if that directory is
4985 # removed, or if the value is a relative name.
4986 INSTALL
=$ac_install_sh
4989 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
4990 $as_echo "$INSTALL" >&6; }
4992 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
4993 # It thinks the first close brace ends the variable substitution.
4994 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM
='${INSTALL}'
4996 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT
='${INSTALL}'
4998 test -z "$INSTALL_DATA" && INSTALL_DATA
='${INSTALL} -m 644'
5000 if test "x$RANLIB" = x
; then
5001 if test -n "$ac_tool_prefix"; then
5002 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
5003 set dummy
${ac_tool_prefix}ranlib
; ac_word
=$2
5004 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5005 $as_echo_n "checking for $ac_word... " >&6; }
5006 if test "${ac_cv_prog_RANLIB+set}" = set; then :
5007 $as_echo_n "(cached) " >&6
5009 if test -n "$RANLIB"; then
5010 ac_cv_prog_RANLIB
="$RANLIB" # Let the user override the test.
5012 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
5016 test -z "$as_dir" && as_dir
=.
5017 for ac_exec_ext
in '' $ac_executable_extensions; do
5018 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5019 ac_cv_prog_RANLIB
="${ac_tool_prefix}ranlib"
5020 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5029 RANLIB
=$ac_cv_prog_RANLIB
5030 if test -n "$RANLIB"; then
5031 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
5032 $as_echo "$RANLIB" >&6; }
5034 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5035 $as_echo "no" >&6; }
5040 if test -z "$ac_cv_prog_RANLIB"; then
5041 ac_ct_RANLIB
=$RANLIB
5042 # Extract the first word of "ranlib", so it can be a program name with args.
5043 set dummy ranlib
; ac_word
=$2
5044 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5045 $as_echo_n "checking for $ac_word... " >&6; }
5046 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then :
5047 $as_echo_n "(cached) " >&6
5049 if test -n "$ac_ct_RANLIB"; then
5050 ac_cv_prog_ac_ct_RANLIB
="$ac_ct_RANLIB" # Let the user override the test.
5052 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
5056 test -z "$as_dir" && as_dir
=.
5057 for ac_exec_ext
in '' $ac_executable_extensions; do
5058 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5059 ac_cv_prog_ac_ct_RANLIB
="ranlib"
5060 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5069 ac_ct_RANLIB
=$ac_cv_prog_ac_ct_RANLIB
5070 if test -n "$ac_ct_RANLIB"; then
5071 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
5072 $as_echo "$ac_ct_RANLIB" >&6; }
5074 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5075 $as_echo "no" >&6; }
5078 if test "x$ac_ct_RANLIB" = x
; then
5081 case $cross_compiling:$ac_tool_warned in
5083 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5084 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5085 ac_tool_warned
=yes ;;
5087 RANLIB
=$ac_ct_RANLIB
5090 RANLIB
="$ac_cv_prog_RANLIB"
5094 # Extract the first word of "install-info", so it can be a program name with args.
5095 set dummy install-info
; ac_word
=$2
5096 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5097 $as_echo_n "checking for $ac_word... " >&6; }
5098 if test "${ac_cv_path_INSTALL_INFO+set}" = set; then :
5099 $as_echo_n "(cached) " >&6
5101 case $INSTALL_INFO in
5103 ac_cv_path_INSTALL_INFO
="$INSTALL_INFO" # Let the user override the test with a path.
5106 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
5110 test -z "$as_dir" && as_dir
=.
5111 for ac_exec_ext
in '' $ac_executable_extensions; do
5112 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5113 ac_cv_path_INSTALL_INFO
="$as_dir/$ac_word$ac_exec_ext"
5114 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5124 INSTALL_INFO
=$ac_cv_path_INSTALL_INFO
5125 if test -n "$INSTALL_INFO"; then
5126 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL_INFO" >&5
5127 $as_echo "$INSTALL_INFO" >&6; }
5129 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5130 $as_echo "no" >&6; }
5134 # Extract the first word of "install-info", so it can be a program name with args.
5135 set dummy install-info
; ac_word
=$2
5136 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5137 $as_echo_n "checking for $ac_word... " >&6; }
5138 if test "${ac_cv_path_INSTALL_INFO+set}" = set; then :
5139 $as_echo_n "(cached) " >&6
5141 case $INSTALL_INFO in
5143 ac_cv_path_INSTALL_INFO
="$INSTALL_INFO" # Let the user override the test with a path.
5146 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
5147 for as_dir
in /usr
/sbin
5150 test -z "$as_dir" && as_dir
=.
5151 for ac_exec_ext
in '' $ac_executable_extensions; do
5152 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5153 ac_cv_path_INSTALL_INFO
="$as_dir/$ac_word$ac_exec_ext"
5154 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5164 INSTALL_INFO
=$ac_cv_path_INSTALL_INFO
5165 if test -n "$INSTALL_INFO"; then
5166 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL_INFO" >&5
5167 $as_echo "$INSTALL_INFO" >&6; }
5169 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5170 $as_echo "no" >&6; }
5174 # Extract the first word of "install-info", so it can be a program name with args.
5175 set dummy install-info
; ac_word
=$2
5176 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5177 $as_echo_n "checking for $ac_word... " >&6; }
5178 if test "${ac_cv_path_INSTALL_INFO+set}" = set; then :
5179 $as_echo_n "(cached) " >&6
5181 case $INSTALL_INFO in
5183 ac_cv_path_INSTALL_INFO
="$INSTALL_INFO" # Let the user override the test with a path.
5186 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
5190 test -z "$as_dir" && as_dir
=.
5191 for ac_exec_ext
in '' $ac_executable_extensions; do
5192 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5193 ac_cv_path_INSTALL_INFO
="$as_dir/$ac_word$ac_exec_ext"
5194 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5201 test -z "$ac_cv_path_INSTALL_INFO" && ac_cv_path_INSTALL_INFO
=":"
5205 INSTALL_INFO
=$ac_cv_path_INSTALL_INFO
5206 if test -n "$INSTALL_INFO"; then
5207 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL_INFO" >&5
5208 $as_echo "$INSTALL_INFO" >&6; }
5210 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5211 $as_echo "no" >&6; }
5215 # Extract the first word of "gzip", so it can be a program name with args.
5216 set dummy
gzip; ac_word
=$2
5217 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5218 $as_echo_n "checking for $ac_word... " >&6; }
5219 if test "${ac_cv_path_GZIP_PROG+set}" = set; then :
5220 $as_echo_n "(cached) " >&6
5224 ac_cv_path_GZIP_PROG
="$GZIP_PROG" # Let the user override the test with a path.
5227 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
5231 test -z "$as_dir" && as_dir
=.
5232 for ac_exec_ext
in '' $ac_executable_extensions; do
5233 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5234 ac_cv_path_GZIP_PROG
="$as_dir/$ac_word$ac_exec_ext"
5235 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5245 GZIP_PROG
=$ac_cv_path_GZIP_PROG
5246 if test -n "$GZIP_PROG"; then
5247 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GZIP_PROG" >&5
5248 $as_echo "$GZIP_PROG" >&6; }
5250 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5251 $as_echo "no" >&6; }
5257 ## Need makeinfo >= 4.6 (?) to build the manuals.
5258 # Extract the first word of "makeinfo", so it can be a program name with args.
5259 set dummy makeinfo
; ac_word
=$2
5260 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5261 $as_echo_n "checking for $ac_word... " >&6; }
5262 if test "${ac_cv_path_MAKEINFO+set}" = set; then :
5263 $as_echo_n "(cached) " >&6
5267 ac_cv_path_MAKEINFO
="$MAKEINFO" # Let the user override the test with a path.
5270 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
5274 test -z "$as_dir" && as_dir
=.
5275 for ac_exec_ext
in '' $ac_executable_extensions; do
5276 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5277 ac_cv_path_MAKEINFO
="$as_dir/$ac_word$ac_exec_ext"
5278 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5285 test -z "$ac_cv_path_MAKEINFO" && ac_cv_path_MAKEINFO
="no"
5289 MAKEINFO
=$ac_cv_path_MAKEINFO
5290 if test -n "$MAKEINFO"; then
5291 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAKEINFO" >&5
5292 $as_echo "$MAKEINFO" >&6; }
5294 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5295 $as_echo "no" >&6; }
5299 if test "$MAKEINFO" != "no" && \
5300 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
5304 ## Makeinfo is unusual. For a released Emacs, the manuals are
5305 ## pre-built, and not deleted by the normal clean rules. makeinfo is
5306 ## therefore in the category of "special tools" not normally required, which
5307 ## configure does not have to check for (eg autoconf itself).
5308 ## In a Bazaar checkout on the other hand, the manuals are not included.
5309 ## So makeinfo is a requirement to build from Bazaar, and configure
5310 ## should test for it as it does for any other build requirement.
5311 ## We use the presence of $srcdir/info/emacs to distinguish a release,
5312 ## with pre-built manuals, from a Bazaar checkout.
5313 if test "$MAKEINFO" = "no"; then
5314 if test "x${with_makeinfo}" = "xno"; then
5316 elif ! test -e $srcdir/info
/emacs
; then
5317 as_fn_error
"You do not seem to have makeinfo >= 4.6, and your
5318 source tree does not seem to have pre-built manuals in the \`info' directory.
5319 Either install a suitable version of makeinfo, or re-run configure
5320 with the \`--without-makeinfo' option to build without the manuals. " "$LINENO" 5
5325 if test x
$GCC = xyes
&& test "x$GCC_LINK_TEST_OPTIONS" != x
5327 ac_link
="$ac_link $GCC_LINK_TEST_OPTIONS"
5330 if test x
$GCC = x
&& test "x$NON_GCC_LINK_TEST_OPTIONS" != x
5332 ac_link
="$ac_link $NON_GCC_LINK_TEST_OPTIONS"
5336 late_LDFLAGS
=$LDFLAGS
5337 if test "$GCC" = yes; then
5338 LDFLAGS
="$LDFLAGS -Wl,-znocombreloc"
5340 LDFLAGS
="$LDFLAGS -znocombreloc"
5343 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -znocombreloc" >&5
5344 $as_echo_n "checking for -znocombreloc... " >&6; }
5345 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
5346 /* end confdefs.h. */
5349 if ac_fn_c_try_link
"$LINENO"; then :
5350 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5351 $as_echo "yes" >&6; }
5353 LDFLAGS
=$late_LDFLAGS
5354 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5355 $as_echo "no" >&6; }
5357 rm -f core conftest.err conftest.
$ac_objext \
5358 conftest
$ac_exeext conftest.
$ac_ext
5360 #### Extract some information from the operating system and machine files.
5362 { $as_echo "$as_me:${as_lineno-$LINENO}: checking the machine- and system-dependent files to find out
5363 - which libraries the lib-src programs will want, and
5364 - whether the GNU malloc routines are usable..." >&5
5365 $as_echo "$as_me: checking the machine- and system-dependent files to find out
5366 - which libraries the lib-src programs will want, and
5367 - whether the GNU malloc routines are usable..." >&6;}
5369 ### First figure out CFLAGS (which we use for running the compiler here)
5370 ### and REAL_CFLAGS (which we use for real compilation).
5371 ### The two are the same except on a few systems, where they are made
5372 ### different to work around various lossages. For example,
5373 ### GCC 2.5 on GNU/Linux needs them to be different because it treats -g
5374 ### as implying static linking.
5376 ### If the CFLAGS env var is specified, we use that value
5377 ### instead of the default.
5379 ### It's not important that this name contain the PID; you can't run
5380 ### two configures in the same directory and have anything work
5382 tempcname
="conftest.c"
5385 #include "'${srcdir}'/src/'${opsysfile}'"
5386 #include "'${srcdir}'/src/'${machfile}'"
5387 #ifndef LIBS_MACHINE
5388 #define LIBS_MACHINE
5393 #ifndef C_SWITCH_SYSTEM
5394 #define C_SWITCH_SYSTEM
5396 #ifndef C_SWITCH_MACHINE
5397 #define C_SWITCH_MACHINE
5399 configure___ libsrc_libs=LIBS_MACHINE LIBS_SYSTEM
5400 configure___ c_switch_system=C_SWITCH_SYSTEM
5401 configure___ c_switch_machine=C_SWITCH_MACHINE
5404 #define LIB_X11_LIB -lX11
5407 #ifndef LIBX11_SYSTEM
5408 #define LIBX11_SYSTEM
5410 configure___ LIBX=LIB_X11_LIB LIBX11_SYSTEM
5413 configure___ unexec=UNEXEC
5415 configure___ unexec=unexec.o
5418 #ifdef SYSTEM_MALLOC
5419 configure___ system_malloc=yes
5421 configure___ system_malloc=no
5424 #ifdef USE_MMAP_FOR_BUFFERS
5425 configure___ use_mmap_for_buffers=yes
5427 configure___ use_mmap_for_buffers=no
5430 #ifndef C_DEBUG_SWITCH
5431 #define C_DEBUG_SWITCH -g
5434 #ifndef C_OPTIMIZE_SWITCH
5436 #define C_OPTIMIZE_SWITCH -O2
5438 #define C_OPTIMIZE_SWITCH -O
5442 #ifndef C_WARNINGS_SWITCH
5443 #define C_WARNINGS_SWITCH ${C_WARNINGS_SWITCH}
5446 #ifndef LD_SWITCH_MACHINE
5447 #define LD_SWITCH_MACHINE
5450 #ifndef LD_SWITCH_SYSTEM
5451 #define LD_SWITCH_SYSTEM
5454 #ifndef LD_SWITCH_X_SITE_AUX
5455 #define LD_SWITCH_X_SITE_AUX
5458 configure___ ld_switch_system=LD_SWITCH_SYSTEM
5459 configure___ ld_switch_machine=LD_SWITCH_MACHINE
5461 #ifdef THIS_IS_CONFIGURE
5463 /* Get the CFLAGS for tests in configure. */
5465 configure___ CFLAGS=C_DEBUG_SWITCH C_OPTIMIZE_SWITCH '${SPECIFIED_CFLAGS}'
5467 configure___ CFLAGS=C_DEBUG_SWITCH '${SPECIFIED_CFLAGS}'
5470 #else /* not THIS_IS_CONFIGURE */
5472 /* Get the CFLAGS for real compilation. */
5474 configure___ REAL_CFLAGS=C_DEBUG_SWITCH C_OPTIMIZE_SWITCH C_WARNINGS_SWITCH ${PROFILING_CFLAGS} '${SPECIFIED_CFLAGS}'
5476 configure___ REAL_CFLAGS=C_DEBUG_SWITCH '${SPECIFIED_CFLAGS}'
5479 #endif /* not THIS_IS_CONFIGURE */
5482 LDFLAGS
="${LDFLAGS} ${PROFILING_LDFLAGS}"
5484 # The value of CPP is a quoted variable reference, so we need to do this
5485 # to get its actual value...
5486 CPP
=`eval "echo $CPP"`
5487 eval `${CPP} -Isrc ${tempcname} \
5488 | sed -n -e 's/^configure___ \([^=]*=\)\(.*\)$/\1"\2"/p'`
5489 if test "x$SPECIFIED_CFLAGS" = x
; then
5490 eval `${CPP} -Isrc -DTHIS_IS_CONFIGURE ${tempcname} \
5491 | sed -n -e 's/^configure___ \([^=]*=\)\(.*\)$/\1"\2"/p'`
5493 REAL_CFLAGS
="$CFLAGS"
5497 ac_link
="$ac_link $ld_switch_machine $ld_switch_system"
5499 ### Make sure subsequent tests use flags consistent with the build flags.
5501 if test x
"${OVERRIDE_CPPFLAGS}" != x
; then
5502 CPPFLAGS
="${OVERRIDE_CPPFLAGS}"
5504 CPPFLAGS
="$c_switch_system $c_switch_machine $CPPFLAGS"
5509 # Check whether --enable-largefile was given.
5510 if test "${enable_largefile+set}" = set; then :
5511 enableval
=$enable_largefile;
5514 if test "$enable_largefile" != no
; then
5516 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for special C compiler options needed for large files" >&5
5517 $as_echo_n "checking for special C compiler options needed for large files... " >&6; }
5518 if test "${ac_cv_sys_largefile_CC+set}" = set; then :
5519 $as_echo_n "(cached) " >&6
5521 ac_cv_sys_largefile_CC
=no
5522 if test "$GCC" != yes; then
5525 # IRIX 6.2 and later do not support large files by default,
5526 # so use the C compiler's -n32 option if that helps.
5527 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
5528 /* end confdefs.h. */
5529 #include <sys/types.h>
5530 /* Check that off_t can represent 2**63 - 1 correctly.
5531 We can't simply define LARGE_OFF_T to be 9223372036854775807,
5532 since some C++ compilers masquerading as C compilers
5533 incorrectly reject 9223372036854775807. */
5534 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
5535 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
5536 && LARGE_OFF_T % 2147483647 == 1)
5546 if ac_fn_c_try_compile
"$LINENO"; then :
5549 rm -f core conftest.err conftest.
$ac_objext
5551 if ac_fn_c_try_compile
"$LINENO"; then :
5552 ac_cv_sys_largefile_CC
=' -n32'; break
5554 rm -f core conftest.err conftest.
$ac_objext
5558 rm -f conftest.
$ac_ext
5561 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_largefile_CC" >&5
5562 $as_echo "$ac_cv_sys_largefile_CC" >&6; }
5563 if test "$ac_cv_sys_largefile_CC" != no
; then
5564 CC
=$CC$ac_cv_sys_largefile_CC
5567 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _FILE_OFFSET_BITS value needed for large files" >&5
5568 $as_echo_n "checking for _FILE_OFFSET_BITS value needed for large files... " >&6; }
5569 if test "${ac_cv_sys_file_offset_bits+set}" = set; then :
5570 $as_echo_n "(cached) " >&6
5573 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
5574 /* end confdefs.h. */
5575 #include <sys/types.h>
5576 /* Check that off_t can represent 2**63 - 1 correctly.
5577 We can't simply define LARGE_OFF_T to be 9223372036854775807,
5578 since some C++ compilers masquerading as C compilers
5579 incorrectly reject 9223372036854775807. */
5580 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
5581 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
5582 && LARGE_OFF_T % 2147483647 == 1)
5592 if ac_fn_c_try_compile
"$LINENO"; then :
5593 ac_cv_sys_file_offset_bits
=no
; break
5595 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
5596 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
5597 /* end confdefs.h. */
5598 #define _FILE_OFFSET_BITS 64
5599 #include <sys/types.h>
5600 /* Check that off_t can represent 2**63 - 1 correctly.
5601 We can't simply define LARGE_OFF_T to be 9223372036854775807,
5602 since some C++ compilers masquerading as C compilers
5603 incorrectly reject 9223372036854775807. */
5604 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
5605 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
5606 && LARGE_OFF_T % 2147483647 == 1)
5616 if ac_fn_c_try_compile
"$LINENO"; then :
5617 ac_cv_sys_file_offset_bits
=64; break
5619 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
5620 ac_cv_sys_file_offset_bits
=unknown
5624 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_file_offset_bits" >&5
5625 $as_echo "$ac_cv_sys_file_offset_bits" >&6; }
5626 case $ac_cv_sys_file_offset_bits in #(
5629 cat >>confdefs.h
<<_ACEOF
5630 #define _FILE_OFFSET_BITS $ac_cv_sys_file_offset_bits
5635 if test $ac_cv_sys_file_offset_bits = unknown
; then
5636 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _LARGE_FILES value needed for large files" >&5
5637 $as_echo_n "checking for _LARGE_FILES value needed for large files... " >&6; }
5638 if test "${ac_cv_sys_large_files+set}" = set; then :
5639 $as_echo_n "(cached) " >&6
5642 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
5643 /* end confdefs.h. */
5644 #include <sys/types.h>
5645 /* Check that off_t can represent 2**63 - 1 correctly.
5646 We can't simply define LARGE_OFF_T to be 9223372036854775807,
5647 since some C++ compilers masquerading as C compilers
5648 incorrectly reject 9223372036854775807. */
5649 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
5650 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
5651 && LARGE_OFF_T % 2147483647 == 1)
5661 if ac_fn_c_try_compile
"$LINENO"; then :
5662 ac_cv_sys_large_files
=no
; break
5664 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
5665 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
5666 /* end confdefs.h. */
5667 #define _LARGE_FILES 1
5668 #include <sys/types.h>
5669 /* Check that off_t can represent 2**63 - 1 correctly.
5670 We can't simply define LARGE_OFF_T to be 9223372036854775807,
5671 since some C++ compilers masquerading as C compilers
5672 incorrectly reject 9223372036854775807. */
5673 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
5674 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
5675 && LARGE_OFF_T % 2147483647 == 1)
5685 if ac_fn_c_try_compile
"$LINENO"; then :
5686 ac_cv_sys_large_files
=1; break
5688 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
5689 ac_cv_sys_large_files
=unknown
5693 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_large_files" >&5
5694 $as_echo "$ac_cv_sys_large_files" >&6; }
5695 case $ac_cv_sys_large_files in #(
5698 cat >>confdefs.h
<<_ACEOF
5699 #define _LARGE_FILES $ac_cv_sys_large_files
5708 ## Note: at present CRT_DIR is only used for amdx86-64 and ibms390x.
5709 ## Other machine types hard-code the location in src/[ms]/*.h.
5710 case "${canonical}" in
5711 x86_64-
*-linux-gnu* | s390x-
*-linux-gnu* )
5712 ## On x86-64 and s390x GNU/Linux distributions, the standard library
5713 ## can be in a variety of places. We only try /usr/lib64 and /usr/lib.
5714 ## For anything else (eg /usr/lib32), it is up the user to specify
5715 ## the location (bug#5655).
5716 ## Test for crtn.o, not just the directory, because sometimes the
5717 ## directory exists but does not have the relevant files (bug#1287).
5718 ## If user specified a crt-dir, use that unconditionally.
5719 if test "X$CRT_DIR" = "X"; then
5721 test -e /usr
/lib64
/crtn.o
&& CRT_DIR
=/usr
/lib64
5724 test -e $CRT_DIR/crtn.o ||
test -e $CRT_DIR/crt0.o || \
5725 as_fn_error
"crt*.o not found. Use --with-crt-dir to specify the location." "$LINENO" 5
5728 test "X$CRT_DIR" = "X" && CRT_DIR
=/usr
/lib
5734 if test "${with_sound}" != "no"; then
5735 # Sound support for GNU/Linux and the free BSDs.
5736 for ac_header
in machine
/soundcard.h sys
/soundcard.h soundcard.h
5738 as_ac_Header
=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
5739 ac_fn_c_check_header_mongrel
"$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
5740 eval as_val
=\$
$as_ac_Header
5741 if test "x$as_val" = x
""yes; then :
5742 cat >>confdefs.h
<<_ACEOF
5743 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
5750 # Emulation library used on NetBSD.
5751 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _oss_ioctl in -lossaudio" >&5
5752 $as_echo_n "checking for _oss_ioctl in -lossaudio... " >&6; }
5753 if test "${ac_cv_lib_ossaudio__oss_ioctl+set}" = set; then :
5754 $as_echo_n "(cached) " >&6
5756 ac_check_lib_save_LIBS
=$LIBS
5757 LIBS
="-lossaudio $LIBS"
5758 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
5759 /* end confdefs.h. */
5761 /* Override any GCC internal prototype to avoid an error.
5762 Use char because int might match the return type of a GCC
5763 builtin and then its argument prototype would still apply. */
5771 return _oss_ioctl ();
5776 if ac_fn_c_try_link
"$LINENO"; then :
5777 ac_cv_lib_ossaudio__oss_ioctl
=yes
5779 ac_cv_lib_ossaudio__oss_ioctl
=no
5781 rm -f core conftest.err conftest.
$ac_objext \
5782 conftest
$ac_exeext conftest.
$ac_ext
5783 LIBS
=$ac_check_lib_save_LIBS
5785 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_ossaudio__oss_ioctl" >&5
5786 $as_echo "$ac_cv_lib_ossaudio__oss_ioctl" >&6; }
5787 if test "x$ac_cv_lib_ossaudio__oss_ioctl" = x
""yes; then :
5796 ALSA_MODULES
="alsa >= $ALSA_REQUIRED"
5800 # Extract the first word of "pkg-config", so it can be a program name with args.
5801 set dummy pkg-config
; ac_word
=$2
5802 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5803 $as_echo_n "checking for $ac_word... " >&6; }
5804 if test "${ac_cv_path_PKG_CONFIG+set}" = set; then :
5805 $as_echo_n "(cached) " >&6
5809 ac_cv_path_PKG_CONFIG
="$PKG_CONFIG" # Let the user override the test with a path.
5812 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
5816 test -z "$as_dir" && as_dir
=.
5817 for ac_exec_ext
in '' $ac_executable_extensions; do
5818 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5819 ac_cv_path_PKG_CONFIG
="$as_dir/$ac_word$ac_exec_ext"
5820 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5827 test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG
="no"
5831 PKG_CONFIG
=$ac_cv_path_PKG_CONFIG
5832 if test -n "$PKG_CONFIG"; then
5833 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5
5834 $as_echo "$PKG_CONFIG" >&6; }
5836 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5837 $as_echo "no" >&6; }
5842 if test "$PKG_CONFIG" = "no" ; then
5845 PKG_CONFIG_MIN_VERSION
=0.9.0
5846 if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
5847 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ALSA_MODULES" >&5
5848 $as_echo_n "checking for $ALSA_MODULES... " >&6; }
5850 if $PKG_CONFIG --exists "$ALSA_MODULES" 2>&5; then
5851 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5852 $as_echo "yes" >&6; }
5855 { $as_echo "$as_me:${as_lineno-$LINENO}: checking ALSA_CFLAGS" >&5
5856 $as_echo_n "checking ALSA_CFLAGS... " >&6; }
5857 ALSA_CFLAGS
=`$PKG_CONFIG --cflags "$ALSA_MODULES"|sed -e 's,///*,/,g'`
5858 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ALSA_CFLAGS" >&5
5859 $as_echo "$ALSA_CFLAGS" >&6; }
5861 { $as_echo "$as_me:${as_lineno-$LINENO}: checking ALSA_LIBS" >&5
5862 $as_echo_n "checking ALSA_LIBS... " >&6; }
5863 ALSA_LIBS
=`$PKG_CONFIG --libs "$ALSA_MODULES"|sed -e 's,///*,/,g'`
5864 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ALSA_LIBS" >&5
5865 $as_echo "$ALSA_LIBS" >&6; }
5867 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5868 $as_echo "no" >&6; }
5871 ## If we have a custom action on failure, don't print errors, but
5872 ## do set a variable so people can do so.
5873 ALSA_PKG_ERRORS
=`$PKG_CONFIG --errors-to-stdout --print-errors "$ALSA_MODULES"`
5880 echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
5881 echo "*** See http://www.freedesktop.org/software/pkgconfig"
5885 if test $succeeded = yes; then
5891 if test $HAVE_ALSA = yes; then
5892 SAVE_CFLAGS
="$CFLAGS"
5893 SAVE_LDFLAGS
="$LDFLAGS"
5894 CFLAGS
="$ALSA_CFLAGS $CFLAGS"
5895 LDFLAGS
="$ALSA_LIBS $LDFLAGS"
5896 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
5897 /* end confdefs.h. */
5898 #include <asoundlib.h>
5902 snd_lib_error_set_handler (0);
5907 if ac_fn_c_try_compile
"$LINENO"; then :
5908 emacs_alsa_normal
=yes
5910 emacs_alsa_normal
=no
5912 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
5913 if test "$emacs_alsa_normal" != yes; then
5914 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
5915 /* end confdefs.h. */
5916 #include <alsa/asoundlib.h>
5920 snd_lib_error_set_handler (0);
5925 if ac_fn_c_try_compile
"$LINENO"; then :
5926 emacs_alsa_subdir
=yes
5928 emacs_alsa_subdir
=no
5930 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
5931 if test "$emacs_alsa_subdir" != yes; then
5932 as_fn_error
"pkg-config found alsa, but it does not compile. See config.log for error messages." "$LINENO" 5
5934 ALSA_CFLAGS
="$ALSA_CFLAGS -DALSA_SUBDIR_INCLUDE"
5937 CFLAGS
="$SAVE_CFLAGS"
5938 LDFLAGS
="$SAVE_LDFLAGS"
5939 LIBSOUND
="$LIBSOUND $ALSA_LIBS"
5940 CFLAGS_SOUND
="$CFLAGS_SOUND $ALSA_CFLAGS"
5942 $as_echo "#define HAVE_ALSA 1" >>confdefs.h
5948 for ac_header
in sys
/select.h sys
/timeb.h sys
/time.h unistd.h utime.h \
5949 linux
/version.h sys
/systeminfo.h termios.h limits.h string.h stdlib.h \
5950 termcap.h stdio_ext.h fcntl.h
strings.h coff.h pty.h sys
/mman.h \
5951 sys
/param.h sys
/vlimit.h sys
/resource.h locale.h sys
/_mbstate_t.h \
5952 sys
/utsname.h
pwd.h utmp.h
5954 as_ac_Header
=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
5955 ac_fn_c_check_header_mongrel
"$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
5956 eval as_val
=\$
$as_ac_Header
5957 if test "x$as_val" = x
""yes; then :
5958 cat >>confdefs.h
<<_ACEOF
5959 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
5967 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if personality LINUX32 can be set" >&5
5968 $as_echo_n "checking if personality LINUX32 can be set... " >&6; }
5969 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
5970 /* end confdefs.h. */
5971 #include <sys/personality.h>
5975 personality (PER_LINUX32)
5980 if ac_fn_c_try_compile
"$LINENO"; then :
5981 emacs_cv_personality_linux32
=yes
5983 emacs_cv_personality_linux32
=no
5985 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
5986 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $emacs_cv_personality_linux32" >&5
5987 $as_echo "$emacs_cv_personality_linux32" >&6; }
5989 if test $emacs_cv_personality_linux32 = yes; then
5991 $as_echo "#define HAVE_PERSONALITY_LINUX32 1" >>confdefs.h
5995 for ac_header
in term.h
5997 ac_fn_c_check_header_preproc
"$LINENO" "term.h" "ac_cv_header_term_h"
5998 if test "x$ac_cv_header_term_h" = x
""yes; then :
5999 cat >>confdefs.h
<<_ACEOF
6000 #define HAVE_TERM_H 1
6007 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
6008 $as_echo_n "checking for ANSI C header files... " >&6; }
6009 if test "${ac_cv_header_stdc+set}" = set; then :
6010 $as_echo_n "(cached) " >&6
6012 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
6013 /* end confdefs.h. */
6027 if ac_fn_c_try_compile
"$LINENO"; then :
6028 ac_cv_header_stdc
=yes
6030 ac_cv_header_stdc
=no
6032 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
6034 if test $ac_cv_header_stdc = yes; then
6035 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
6036 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
6037 /* end confdefs.h. */
6041 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6042 $EGREP "memchr" >/dev
/null
2>&1; then :
6045 ac_cv_header_stdc
=no
6051 if test $ac_cv_header_stdc = yes; then
6052 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
6053 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
6054 /* end confdefs.h. */
6058 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6059 $EGREP "free" >/dev
/null
2>&1; then :
6062 ac_cv_header_stdc
=no
6068 if test $ac_cv_header_stdc = yes; then
6069 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
6070 if test "$cross_compiling" = yes; then :
6073 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
6074 /* end confdefs.h. */
6077 #if ((' ' & 0x0FF) == 0x020)
6078 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
6079 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
6081 # define ISLOWER(c) \
6082 (('a' <= (c) && (c) <= 'i') \
6083 || ('j' <= (c) && (c) <= 'r') \
6084 || ('s' <= (c) && (c) <= 'z'))
6085 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
6088 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
6093 for (i = 0; i < 256; i++)
6094 if (XOR (islower (i), ISLOWER (i))
6095 || toupper (i) != TOUPPER (i))
6100 if ac_fn_c_try_run
"$LINENO"; then :
6103 ac_cv_header_stdc
=no
6105 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
6106 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
6111 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
6112 $as_echo "$ac_cv_header_stdc" >&6; }
6113 if test $ac_cv_header_stdc = yes; then
6115 $as_echo "#define STDC_HEADERS 1" >>confdefs.h
6119 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether time.h and sys/time.h may both be included" >&5
6120 $as_echo_n "checking whether time.h and sys/time.h may both be included... " >&6; }
6121 if test "${ac_cv_header_time+set}" = set; then :
6122 $as_echo_n "(cached) " >&6
6124 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
6125 /* end confdefs.h. */
6126 #include <sys/types.h>
6127 #include <sys/time.h>
6133 if ((struct tm *) 0)
6139 if ac_fn_c_try_compile
"$LINENO"; then :
6140 ac_cv_header_time
=yes
6142 ac_cv_header_time
=no
6144 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
6146 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_time" >&5
6147 $as_echo "$ac_cv_header_time" >&6; }
6148 if test $ac_cv_header_time = yes; then
6150 $as_echo "#define TIME_WITH_SYS_TIME 1" >>confdefs.h
6154 ac_fn_c_check_decl
"$LINENO" "sys_siglist" "ac_cv_have_decl_sys_siglist" "$ac_includes_default"
6155 if test "x$ac_cv_have_decl_sys_siglist" = x
""yes; then :
6161 cat >>confdefs.h
<<_ACEOF
6162 #define HAVE_DECL_SYS_SIGLIST $ac_have_decl
6165 if test $ac_cv_have_decl_sys_siglist != yes; then
6166 # For Tru64, at least:
6167 ac_fn_c_check_decl
"$LINENO" "__sys_siglist" "ac_cv_have_decl___sys_siglist" "$ac_includes_default"
6168 if test "x$ac_cv_have_decl___sys_siglist" = x
""yes; then :
6174 cat >>confdefs.h
<<_ACEOF
6175 #define HAVE_DECL___SYS_SIGLIST $ac_have_decl
6178 if test $ac_cv_have_decl___sys_siglist = yes; then
6180 $as_echo "#define sys_siglist __sys_siglist" >>confdefs.h
6184 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sys/wait.h that is POSIX.1 compatible" >&5
6185 $as_echo_n "checking for sys/wait.h that is POSIX.1 compatible... " >&6; }
6186 if test "${ac_cv_header_sys_wait_h+set}" = set; then :
6187 $as_echo_n "(cached) " >&6
6189 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
6190 /* end confdefs.h. */
6191 #include <sys/types.h>
6192 #include <sys/wait.h>
6194 # define WEXITSTATUS(stat_val) ((unsigned int) (stat_val) >> 8)
6197 # define WIFEXITED(stat_val) (((stat_val) & 255) == 0)
6205 s = WIFEXITED (s) ? WEXITSTATUS (s) : 1;
6210 if ac_fn_c_try_compile
"$LINENO"; then :
6211 ac_cv_header_sys_wait_h
=yes
6213 ac_cv_header_sys_wait_h
=no
6215 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
6217 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_sys_wait_h" >&5
6218 $as_echo "$ac_cv_header_sys_wait_h" >&6; }
6219 if test $ac_cv_header_sys_wait_h = yes; then
6221 $as_echo "#define HAVE_SYS_WAIT_H 1" >>confdefs.h
6226 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for struct utimbuf" >&5
6227 $as_echo_n "checking for struct utimbuf... " >&6; }
6228 if test "${emacs_cv_struct_utimbuf+set}" = set; then :
6229 $as_echo_n "(cached) " >&6
6231 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
6232 /* end confdefs.h. */
6233 #ifdef TIME_WITH_SYS_TIME
6234 #include <sys/time.h>
6237 #ifdef HAVE_SYS_TIME_H
6238 #include <sys/time.h>
6249 static struct utimbuf x; x.actime = x.modtime;
6254 if ac_fn_c_try_compile
"$LINENO"; then :
6255 emacs_cv_struct_utimbuf
=yes
6257 emacs_cv_struct_utimbuf
=no
6259 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
6261 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $emacs_cv_struct_utimbuf" >&5
6262 $as_echo "$emacs_cv_struct_utimbuf" >&6; }
6263 if test $emacs_cv_struct_utimbuf = yes; then
6265 $as_echo "#define HAVE_STRUCT_UTIMBUF 1" >>confdefs.h
6269 { $as_echo "$as_me:${as_lineno-$LINENO}: checking return type of signal handlers" >&5
6270 $as_echo_n "checking return type of signal handlers... " >&6; }
6271 if test "${ac_cv_type_signal+set}" = set; then :
6272 $as_echo_n "(cached) " >&6
6274 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
6275 /* end confdefs.h. */
6276 #include <sys/types.h>
6282 return *(signal (0, 0)) (0) == 1;
6287 if ac_fn_c_try_compile
"$LINENO"; then :
6288 ac_cv_type_signal
=int
6290 ac_cv_type_signal
=void
6292 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
6294 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_signal" >&5
6295 $as_echo "$ac_cv_type_signal" >&6; }
6297 cat >>confdefs.h
<<_ACEOF
6298 #define RETSIGTYPE $ac_cv_type_signal
6303 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for speed_t" >&5
6304 $as_echo_n "checking for speed_t... " >&6; }
6305 if test "${emacs_cv_speed_t+set}" = set; then :
6306 $as_echo_n "(cached) " >&6
6308 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
6309 /* end confdefs.h. */
6310 #include <termios.h>
6319 if ac_fn_c_try_compile
"$LINENO"; then :
6320 emacs_cv_speed_t
=yes
6324 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
6326 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $emacs_cv_speed_t" >&5
6327 $as_echo "$emacs_cv_speed_t" >&6; }
6328 if test $emacs_cv_speed_t = yes; then
6330 $as_echo "#define HAVE_SPEED_T 1" >>confdefs.h
6334 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for struct timeval" >&5
6335 $as_echo_n "checking for struct timeval... " >&6; }
6336 if test "${emacs_cv_struct_timeval+set}" = set; then :
6337 $as_echo_n "(cached) " >&6
6339 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
6340 /* end confdefs.h. */
6341 #ifdef TIME_WITH_SYS_TIME
6342 #include <sys/time.h>
6345 #ifdef HAVE_SYS_TIME_H
6346 #include <sys/time.h>
6354 static struct timeval x; x.tv_sec = x.tv_usec;
6359 if ac_fn_c_try_compile
"$LINENO"; then :
6360 emacs_cv_struct_timeval
=yes
6362 emacs_cv_struct_timeval
=no
6364 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
6366 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $emacs_cv_struct_timeval" >&5
6367 $as_echo "$emacs_cv_struct_timeval" >&6; }
6368 HAVE_TIMEVAL
=$emacs_cv_struct_timeval
6369 if test $emacs_cv_struct_timeval = yes; then
6371 $as_echo "#define HAVE_TIMEVAL 1" >>confdefs.h
6375 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for struct exception" >&5
6376 $as_echo_n "checking for struct exception... " >&6; }
6377 if test "${emacs_cv_struct_exception+set}" = set; then :
6378 $as_echo_n "(cached) " >&6
6380 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
6381 /* end confdefs.h. */
6386 static struct exception x; x.arg1 = x.arg2 = x.retval; x.name = ""; x.type = 1;
6391 if ac_fn_c_try_compile
"$LINENO"; then :
6392 emacs_cv_struct_exception
=yes
6394 emacs_cv_struct_exception
=no
6396 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
6398 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $emacs_cv_struct_exception" >&5
6399 $as_echo "$emacs_cv_struct_exception" >&6; }
6400 HAVE_EXCEPTION
=$emacs_cv_struct_exception
6401 if test $emacs_cv_struct_exception != yes; then
6403 $as_echo "#define NO_MATHERR 1" >>confdefs.h
6407 for ac_header
in sys
/socket.h
6409 ac_fn_c_check_header_mongrel
"$LINENO" "sys/socket.h" "ac_cv_header_sys_socket_h" "$ac_includes_default"
6410 if test "x$ac_cv_header_sys_socket_h" = x
""yes; then :
6411 cat >>confdefs.h
<<_ACEOF
6412 #define HAVE_SYS_SOCKET_H 1
6419 for ac_header
in net
/if.h
6421 ac_fn_c_check_header_compile
"$LINENO" "net/if.h" "ac_cv_header_net_if_h" "$ac_includes_default
6422 #if HAVE_SYS_SOCKET_H
6423 #include <sys/socket.h>
6426 if test "x$ac_cv_header_net_if_h" = x
""yes; then :
6427 cat >>confdefs.h
<<_ACEOF
6428 #define HAVE_NET_IF_H 1
6436 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether struct tm is in sys/time.h or time.h" >&5
6437 $as_echo_n "checking whether struct tm is in sys/time.h or time.h... " >&6; }
6438 if test "${ac_cv_struct_tm+set}" = set; then :
6439 $as_echo_n "(cached) " >&6
6441 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
6442 /* end confdefs.h. */
6443 #include <sys/types.h>
6450 int *p = &tm.tm_sec;
6456 if ac_fn_c_try_compile
"$LINENO"; then :
6457 ac_cv_struct_tm
=time.h
6459 ac_cv_struct_tm
=sys
/time.h
6461 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
6463 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_struct_tm" >&5
6464 $as_echo "$ac_cv_struct_tm" >&6; }
6465 if test $ac_cv_struct_tm = sys
/time.h
; then
6467 $as_echo "#define TM_IN_SYS_TIME 1" >>confdefs.h
6471 ac_fn_c_check_member
"$LINENO" "struct tm" "tm_zone" "ac_cv_member_struct_tm_tm_zone" "#include <sys/types.h>
6472 #include <$ac_cv_struct_tm>
6475 if test "x$ac_cv_member_struct_tm_tm_zone" = x
""yes; then :
6477 cat >>confdefs.h
<<_ACEOF
6478 #define HAVE_STRUCT_TM_TM_ZONE 1
6484 if test "$ac_cv_member_struct_tm_tm_zone" = yes; then
6486 $as_echo "#define HAVE_TM_ZONE 1" >>confdefs.h
6489 ac_fn_c_check_decl
"$LINENO" "tzname" "ac_cv_have_decl_tzname" "#include <time.h>
6491 if test "x$ac_cv_have_decl_tzname" = x
""yes; then :
6497 cat >>confdefs.h
<<_ACEOF
6498 #define HAVE_DECL_TZNAME $ac_have_decl
6501 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for tzname" >&5
6502 $as_echo_n "checking for tzname... " >&6; }
6503 if test "${ac_cv_var_tzname+set}" = set; then :
6504 $as_echo_n "(cached) " >&6
6506 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
6507 /* end confdefs.h. */
6509 #if !HAVE_DECL_TZNAME
6510 extern char *tzname[];
6516 return tzname[0][0];
6521 if ac_fn_c_try_link
"$LINENO"; then :
6522 ac_cv_var_tzname
=yes
6526 rm -f core conftest.err conftest.
$ac_objext \
6527 conftest
$ac_exeext conftest.
$ac_ext
6529 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_var_tzname" >&5
6530 $as_echo "$ac_cv_var_tzname" >&6; }
6531 if test $ac_cv_var_tzname = yes; then
6533 $as_echo "#define HAVE_TZNAME 1" >>confdefs.h
6538 ac_fn_c_check_member
"$LINENO" "struct tm" "tm_gmtoff" "ac_cv_member_struct_tm_tm_gmtoff" "#include <time.h>
6540 if test "x$ac_cv_member_struct_tm_tm_gmtoff" = x
""yes; then :
6542 $as_echo "#define HAVE_TM_GMTOFF 1" >>confdefs.h
6546 ac_fn_c_check_member
"$LINENO" "struct ifreq" "ifr_flags" "ac_cv_member_struct_ifreq_ifr_flags" "$ac_includes_default
6547 #if HAVE_SYS_SOCKET_H
6548 #include <sys/socket.h>
6554 if test "x$ac_cv_member_struct_ifreq_ifr_flags" = x
""yes; then :
6556 cat >>confdefs.h
<<_ACEOF
6557 #define HAVE_STRUCT_IFREQ_IFR_FLAGS 1
6562 ac_fn_c_check_member
"$LINENO" "struct ifreq" "ifr_hwaddr" "ac_cv_member_struct_ifreq_ifr_hwaddr" "$ac_includes_default
6563 #if HAVE_SYS_SOCKET_H
6564 #include <sys/socket.h>
6570 if test "x$ac_cv_member_struct_ifreq_ifr_hwaddr" = x
""yes; then :
6572 cat >>confdefs.h
<<_ACEOF
6573 #define HAVE_STRUCT_IFREQ_IFR_HWADDR 1
6578 ac_fn_c_check_member
"$LINENO" "struct ifreq" "ifr_netmask" "ac_cv_member_struct_ifreq_ifr_netmask" "$ac_includes_default
6579 #if HAVE_SYS_SOCKET_H
6580 #include <sys/socket.h>
6586 if test "x$ac_cv_member_struct_ifreq_ifr_netmask" = x
""yes; then :
6588 cat >>confdefs.h
<<_ACEOF
6589 #define HAVE_STRUCT_IFREQ_IFR_NETMASK 1
6594 ac_fn_c_check_member
"$LINENO" "struct ifreq" "ifr_broadaddr" "ac_cv_member_struct_ifreq_ifr_broadaddr" "$ac_includes_default
6595 #if HAVE_SYS_SOCKET_H
6596 #include <sys/socket.h>
6602 if test "x$ac_cv_member_struct_ifreq_ifr_broadaddr" = x
""yes; then :
6604 cat >>confdefs.h
<<_ACEOF
6605 #define HAVE_STRUCT_IFREQ_IFR_BROADADDR 1
6610 ac_fn_c_check_member
"$LINENO" "struct ifreq" "ifr_addr" "ac_cv_member_struct_ifreq_ifr_addr" "$ac_includes_default
6611 #if HAVE_SYS_SOCKET_H
6612 #include <sys/socket.h>
6618 if test "x$ac_cv_member_struct_ifreq_ifr_addr" = x
""yes; then :
6620 cat >>confdefs.h
<<_ACEOF
6621 #define HAVE_STRUCT_IFREQ_IFR_ADDR 1
6629 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for function prototypes" >&5
6630 $as_echo_n "checking for function prototypes... " >&6; }
6631 if test "$ac_cv_prog_cc_c89" != no
; then
6632 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
6633 $as_echo "yes" >&6; }
6635 $as_echo "#define PROTOTYPES 1" >>confdefs.h
6638 $as_echo "#define __PROTOTYPES 1" >>confdefs.h
6641 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6642 $as_echo "no" >&6; }
6645 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working volatile" >&5
6646 $as_echo_n "checking for working volatile... " >&6; }
6647 if test "${ac_cv_c_volatile+set}" = set; then :
6648 $as_echo_n "(cached) " >&6
6650 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
6651 /* end confdefs.h. */
6658 int * volatile y = (int *) 0;
6664 if ac_fn_c_try_compile
"$LINENO"; then :
6665 ac_cv_c_volatile
=yes
6669 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
6671 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_volatile" >&5
6672 $as_echo "$ac_cv_c_volatile" >&6; }
6673 if test $ac_cv_c_volatile = no
; then
6675 $as_echo "#define volatile /**/" >>confdefs.h
6679 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for an ANSI C-conforming const" >&5
6680 $as_echo_n "checking for an ANSI C-conforming const... " >&6; }
6681 if test "${ac_cv_c_const+set}" = set; then :
6682 $as_echo_n "(cached) " >&6
6684 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
6685 /* end confdefs.h. */
6690 /* FIXME: Include the comments suggested by Paul. */
6692 /* Ultrix mips cc rejects this. */
6693 typedef int charset[2];
6695 /* SunOS 4.1.1 cc rejects this. */
6696 char const *const *pcpcc;
6698 /* NEC SVR4.0.2 mips cc rejects this. */
6699 struct point {int x, y;};
6700 static struct point const zero = {0,0};
6701 /* AIX XL C 1.02.0.0 rejects this.
6702 It does not let you subtract one const X* pointer from another in
6703 an arm of an if-expression whose if-part is not a constant
6705 const char *g = "string";
6706 pcpcc = &g + (g ? g-g : 0);
6707 /* HPUX 7.0 cc rejects these. */
6709 ppc = (char**) pcpcc;
6710 pcpcc = (char const *const *) ppc;
6711 { /* SCO 3.2v4 cc rejects this. */
6713 char const *s = 0 ? (char *) 0 : (char const *) 0;
6718 { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
6720 const int *foo = &x[0];
6723 { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
6724 typedef const int *iptr;
6728 { /* AIX XL C 1.02.0.0 rejects this saying
6729 "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
6730 struct s { int j; const int *ap[3]; };
6731 struct s *b; b->j = 5;
6733 { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
6737 return !cs[0] && !zero.x;
6744 if ac_fn_c_try_compile
"$LINENO"; then :
6749 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
6751 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_const" >&5
6752 $as_echo "$ac_cv_c_const" >&6; }
6753 if test $ac_cv_c_const = no
; then
6755 $as_echo "#define const /**/" >>confdefs.h
6759 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for void * support" >&5
6760 $as_echo_n "checking for void * support... " >&6; }
6761 if test "${emacs_cv_void_star+set}" = set; then :
6762 $as_echo_n "(cached) " >&6
6764 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
6765 /* end confdefs.h. */
6775 if ac_fn_c_try_compile
"$LINENO"; then :
6776 emacs_cv_void_star
=yes
6778 emacs_cv_void_star
=no
6780 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
6782 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $emacs_cv_void_star" >&5
6783 $as_echo "$emacs_cv_void_star" >&6; }
6784 if test $emacs_cv_void_star = yes; then
6785 $as_echo "#define POINTER_TYPE void" >>confdefs.h
6788 $as_echo "#define POINTER_TYPE char" >>confdefs.h
6795 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
6796 $as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
6798 ac_make
=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
6799 if { as_var
=ac_cv_prog_make_
${ac_make}_set; eval "test \"\${$as_var+set}\" = set"; }; then :
6800 $as_echo_n "(cached) " >&6
6802 cat >conftest.
make <<\_ACEOF
6805 @
echo '@@@%%%=$(MAKE)=@@@%%%'
6807 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
6808 case `${MAKE-make} -f conftest.make 2>/dev/null` in
6810 eval ac_cv_prog_make_
${ac_make}_set
=yes;;
6812 eval ac_cv_prog_make_
${ac_make}_set
=no
;;
6816 if eval test \
$ac_cv_prog_make_${ac_make}_set
= yes; then
6817 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
6818 $as_echo "yes" >&6; }
6821 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6822 $as_echo "no" >&6; }
6823 SET_MAKE
="MAKE=${MAKE-make}"
6827 if test "$GCC" = yes && test "$ac_enable_autodepend" = yes; then
6828 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using GNU Make" >&5
6829 $as_echo_n "checking whether we are using GNU Make... " >&6; }
6831 testval
=`make --version 2>/dev/null | grep 'GNU Make'`
6832 if test "x$testval" != x
; then
6835 ac_enable_autodepend
=no
6837 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $HAVE_GNU_MAKE" >&5
6838 $as_echo "$HAVE_GNU_MAKE" >&6; }
6839 if test $HAVE_GNU_MAKE = yes; then
6840 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether gcc understands -MMD -MF" >&5
6841 $as_echo_n "checking whether gcc understands -MMD -MF... " >&6; }
6842 SAVE_CFLAGS
="$CFLAGS"
6843 CFLAGS
="$CFLAGS -MMD -MF deps.d"
6844 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
6845 /* end confdefs.h. */
6855 if ac_fn_c_try_compile
"$LINENO"; then :
6858 ac_enable_autodepend
=no
6860 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
6861 CFLAGS
="$SAVE_CFLAGS"
6862 test -f deps.d || ac_enable_autodepend
=no
6864 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_enable_autodepend" >&5
6865 $as_echo "$ac_enable_autodepend" >&6; }
6867 if test $ac_enable_autodepend = yes; then
6869 $as_echo "#define AUTO_DEPEND 1" >>confdefs.h
6874 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for long file names" >&5
6875 $as_echo_n "checking for long file names... " >&6; }
6876 if test "${ac_cv_sys_long_file_names+set}" = set; then :
6877 $as_echo_n "(cached) " >&6
6879 ac_cv_sys_long_file_names
=yes
6880 # Test for long file names in all the places we know might matter:
6881 # . the current directory, where building will happen
6882 # $prefix/lib where we will be installing things
6883 # $exec_prefix/lib likewise
6884 # $TMPDIR if set, where it might want to write temporary files
6885 # /tmp where it might want to write temporary files
6888 for ac_dir
in .
"$TMPDIR" /tmp
/var
/tmp
/usr
/tmp
"$prefix/lib" "$exec_prefix/lib"; do
6889 # Skip $TMPDIR if it is empty or bogus, and skip $exec_prefix/lib
6890 # in the usual case where exec_prefix is '${prefix}'.
6892 . |
/* | ?
:[\\/]*) ;; #(
6895 test -w "$ac_dir/." ||
continue # It is less confusing to not echo anything here.
6896 ac_xdir
=$ac_dir/cf$$
6897 (umask 077 && mkdir
"$ac_xdir" 2>/dev
/null
) ||
continue
6898 ac_tf1
=$ac_xdir/conftest9012345
6899 ac_tf2
=$ac_xdir/conftest9012346
6900 touch "$ac_tf1" 2>/dev
/null
&& test -f "$ac_tf1" && test ! -f "$ac_tf2" ||
6901 ac_cv_sys_long_file_names
=no
6902 rm -f -r "$ac_xdir" 2>/dev
/null
6903 test $ac_cv_sys_long_file_names = no
&& break
6906 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_long_file_names" >&5
6907 $as_echo "$ac_cv_sys_long_file_names" >&6; }
6908 if test $ac_cv_sys_long_file_names = yes; then
6910 $as_echo "#define HAVE_LONG_FILE_NAMES 1" >>confdefs.h
6915 #### Choose a window system.
6917 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for X" >&5
6918 $as_echo_n "checking for X... " >&6; }
6921 # Check whether --with-x was given.
6922 if test "${with_x+set}" = set; then :
6926 # $have_x is `yes', `no', `disabled', or empty when we do not yet know.
6927 if test "x$with_x" = xno
; then
6928 # The user explicitly disabled X.
6931 case $x_includes,$x_libraries in #(
6932 *\'*) as_fn_error
"cannot use X directory names containing '" "$LINENO" 5;; #(
6933 *,NONE | NONE
,*) if test "${ac_cv_have_x+set}" = set; then :
6934 $as_echo_n "(cached) " >&6
6936 # One or both of the vars are not set, and there is no cached value.
6937 ac_x_includes
=no ac_x_libraries
=no
6938 rm -f -r conftest.dir
6939 if mkdir conftest.dir
; then
6941 cat >Imakefile
<<'_ACEOF'
6943 @echo incroot='${INCROOT}'
6945 @echo usrlibdir='${USRLIBDIR}'
6947 @echo libdir='${LIBDIR}'
6949 if (export CC
; ${XMKMF-xmkmf}) >/dev
/null
2>/dev
/null
&& test -f Makefile
; then
6950 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
6951 for ac_var
in incroot usrlibdir libdir
; do
6952 eval "ac_im_$ac_var=\`\${MAKE-make} $ac_var 2>/dev/null | sed -n 's/^$ac_var=//p'\`"
6954 # Open Windows xmkmf reportedly sets LIBDIR instead of USRLIBDIR.
6955 for ac_extension
in a so sl dylib la dll
; do
6956 if test ! -f "$ac_im_usrlibdir/libX11.$ac_extension" &&
6957 test -f "$ac_im_libdir/libX11.$ac_extension"; then
6958 ac_im_usrlibdir
=$ac_im_libdir; break
6961 # Screen out bogus values from the imake configuration. They are
6962 # bogus both because they are the default anyway, and because
6963 # using them would break gcc on systems where it needs fixed includes.
6964 case $ac_im_incroot in
6965 /usr
/include
) ac_x_includes
= ;;
6966 *) test -f "$ac_im_incroot/X11/Xos.h" && ac_x_includes
=$ac_im_incroot;;
6968 case $ac_im_usrlibdir in
6969 /usr
/lib |
/usr
/lib64 |
/lib |
/lib64
) ;;
6970 *) test -d "$ac_im_usrlibdir" && ac_x_libraries
=$ac_im_usrlibdir ;;
6974 rm -f -r conftest.dir
6977 # Standard set of common directories for X headers.
6978 # Check X11 before X11Rn because it is often a symlink to the current release.
6992 /usr/local/X11/include
6993 /usr/local/X11R7/include
6994 /usr/local/X11R6/include
6995 /usr/local/X11R5/include
6996 /usr/local/X11R4/include
6998 /usr/local/include/X11
6999 /usr/local/include/X11R7
7000 /usr/local/include/X11R6
7001 /usr/local/include/X11R5
7002 /usr/local/include/X11R4
7006 /usr/XFree86/include/X11
7010 /usr/unsupported/include
7012 /usr/local/x11r5/include
7013 /usr/lpp/Xamples/include
7015 /usr/openwin/include
7016 /usr/openwin/share/include'
7018 if test "$ac_x_includes" = no
; then
7019 # Guess where to find include files, by looking for Xlib.h.
7020 # First, try using that file with no special directory specified.
7021 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
7022 /* end confdefs.h. */
7023 #include <X11/Xlib.h>
7025 if ac_fn_c_try_cpp
"$LINENO"; then :
7026 # We can compile using X headers with no special include directory.
7029 for ac_dir
in $ac_x_header_dirs; do
7030 if test -r "$ac_dir/X11/Xlib.h"; then
7031 ac_x_includes
=$ac_dir
7036 rm -f conftest.err conftest.
$ac_ext
7037 fi # $ac_x_includes = no
7039 if test "$ac_x_libraries" = no
; then
7040 # Check for the libraries.
7041 # See if we find them without any special options.
7042 # Don't add to $LIBS permanently.
7045 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
7046 /* end confdefs.h. */
7047 #include <X11/Xlib.h>
7056 if ac_fn_c_try_link
"$LINENO"; then :
7058 # We can link X programs with no special library path.
7062 for ac_dir
in `$as_echo "$ac_x_includes $ac_x_header_dirs" | sed s/include/lib/g`
7064 # Don't even attempt the hair of trying to link an X program!
7065 for ac_extension
in a so sl dylib la dll
; do
7066 if test -r "$ac_dir/libX11.$ac_extension"; then
7067 ac_x_libraries
=$ac_dir
7073 rm -f core conftest.err conftest.
$ac_objext \
7074 conftest
$ac_exeext conftest.
$ac_ext
7075 fi # $ac_x_libraries = no
7077 case $ac_x_includes,$ac_x_libraries in #(
7079 # Didn't find X, or a directory has "'" in its name.
7080 ac_cv_have_x
="have_x=no";; #(
7082 # Record where we found X for the cache.
7083 ac_cv_have_x
="have_x=yes\
7084 ac_x_includes='$ac_x_includes'\
7085 ac_x_libraries='$ac_x_libraries'"
7091 eval "$ac_cv_have_x"
7094 if test "$have_x" != yes; then
7095 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_x" >&5
7096 $as_echo "$have_x" >&6; }
7099 # If each of the values was on the command line, it overrides each guess.
7100 test "x$x_includes" = xNONE
&& x_includes
=$ac_x_includes
7101 test "x$x_libraries" = xNONE
&& x_libraries
=$ac_x_libraries
7102 # Update the cache value to reflect the command line values.
7103 ac_cv_have_x
="have_x=yes\
7104 ac_x_includes='$x_includes'\
7105 ac_x_libraries='$x_libraries'"
7106 { $as_echo "$as_me:${as_lineno-$LINENO}: result: libraries $x_libraries, headers $x_includes" >&5
7107 $as_echo "libraries $x_libraries, headers $x_includes" >&6; }
7110 if test "$no_x" = yes; then
7116 ## Workaround for bug in autoconf <= 2.62.
7117 ## http://lists.gnu.org/archive/html/emacs-devel/2008-04/msg01551.html
7118 ## No need to do anything special for these standard directories.
7119 ## This is an experiment, take it out if it causes problems.
7120 if test -n "${x_libraries}" && test x
"${x_libraries}" != xNONE
; then
7122 x_libraries
=`echo :${x_libraries}: | sed -e 's|:/usr/lib64:|:|g' -e 's|:/lib64:|:|g' -e 's|^:||' -e 's|:$||'`
7126 if test "${x_libraries}" != NONE
; then
7127 if test -n "${x_libraries}"; then
7128 LD_SWITCH_X_SITE
=-L`echo ${x_libraries} | sed -e "s/:/ -L/g"`
7129 LD_SWITCH_X_SITE_AUX
=-R`echo ${x_libraries} | sed -e "s/:/ -R/g"`
7131 x_default_search_path
=""
7132 x_search_path
=${x_libraries}
7133 if test -z "${x_search_path}"; then
7134 x_search_path
=/usr
/lib
7136 for x_library
in `echo ${x_search_path}: | \
7137 sed -e "s/:/ /g" -e p -e "s:/lib[^ /]* :/share :g"`; do
7139 ${x_library}/X11/%L/%T/%N%C%S:\
7140 ${x_library}/X11/%l/%T/%N%C%S:\
7141 ${x_library}/X11/%T/%N%C%S:\
7142 ${x_library}/X11/%L/%T/%N%S:\
7143 ${x_library}/X11/%l/%T/%N%S:\
7144 ${x_library}/X11/%T/%N%S"
7145 if test x
"${x_default_search_path}" = x
; then
7146 x_default_search_path
=${x_search_path}
7148 x_default_search_path
="${x_search_path}:${x_default_search_path}"
7152 if test "${x_includes}" != NONE
&& test -n "${x_includes}"; then
7153 C_SWITCH_X_SITE
=-I`echo ${x_includes} | sed -e "s/:/ -I/g"`
7156 if test x
"${x_includes}" = x
; then
7157 bitmapdir
=/usr
/include
/X11
/bitmaps
7159 # accumulate include directories that have X11 bitmap subdirectories
7161 for bmd
in `echo ${x_includes} | sed -e "s/:/ /g"`; do
7162 if test -d "${bmd}/X11/bitmaps"; then
7163 bmd_acc
="${bmd_acc}:${bmd}/X11/bitmaps"
7165 if test -d "${bmd}/bitmaps"; then
7166 bmd_acc
="${bmd_acc}:${bmd}/bitmaps"
7169 if test ${bmd_acc} != "dummyval"; then
7170 bitmapdir
=`echo ${bmd_acc} | sed -e "s/^dummyval://"`
7177 tmp_CPPFLAGS
="$CPPFLAGS"
7178 tmp_CFLAGS
="$CFLAGS"
7179 CPPFLAGS
="$CPPFLAGS -x objective-c"
7180 CFLAGS
="$CFLAGS -x objective-c"
7181 if test "${with_ns}" != no
; then
7182 if test "${opsys}" = darwin
; then
7184 ns_appdir
=`pwd`/nextstep
/Emacs.app
7185 ns_appbindir
=`pwd`/nextstep
/Emacs.app
/Contents
/MacOS
7186 ns_appresdir
=`pwd`/nextstep
/Emacs.app
/Contents
/Resources
7187 ns_appsrc
=${srcdir}/nextstep
/Cocoa
/Emacs.base
7188 elif test -f $GNUSTEP_CONFIG_FILE; then
7190 ns_appdir
=`pwd`/nextstep
/Emacs.app
7191 ns_appbindir
=`pwd`/nextstep
/Emacs.app
7192 ns_appresdir
=`pwd`/nextstep
/Emacs.app
/Resources
7193 ns_appsrc
=${srcdir}/nextstep
/GNUstep
/Emacs.base
7194 GNUSTEP_MAKEFILES
="$(. $GNUSTEP_CONFIG_FILE; echo $GNUSTEP_MAKEFILES)"
7195 GNUSTEP_SYSTEM_HEADERS
="$(. $GNUSTEP_CONFIG_FILE; echo $GNUSTEP_SYSTEM_HEADERS)"
7196 GNUSTEP_SYSTEM_LIBRARIES
="$(. $GNUSTEP_CONFIG_FILE; echo $GNUSTEP_SYSTEM_LIBRARIES)"
7197 CPPFLAGS
="$CPPFLAGS -I${GNUSTEP_SYSTEM_HEADERS}"
7198 CFLAGS
="$CFLAGS -I${GNUSTEP_SYSTEM_HEADERS}"
7199 REAL_CFLAGS
="$REAL_CFLAGS -I${GNUSTEP_SYSTEM_HEADERS}"
7200 LDFLAGS
="$LDFLAGS -L${GNUSTEP_SYSTEM_LIBRARIES}"
7202 ac_fn_c_check_header_mongrel
"$LINENO" "AppKit/AppKit.h" "ac_cv_header_AppKit_AppKit_h" "$ac_includes_default"
7203 if test "x$ac_cv_header_AppKit_AppKit_h" = x
""yes; then :
7206 as_fn_error
"\`--with-ns' was specified, but the include
7207 files are missing or cannot be compiled." "$LINENO" 5
7211 NS_HAVE_NSINTEGER
=yes
7212 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
7213 /* end confdefs.h. */
7214 #include <Foundation/NSObjCRuntime.h>
7223 if ac_fn_c_try_compile
"$LINENO"; then :
7224 ns_have_nsinteger
=yes
7226 ns_have_nsinteger
=no
7228 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
7229 if test $ns_have_nsinteger = no
; then
7230 NS_HAVE_NSINTEGER
=no
7233 if test "${HAVE_NS}" = yes; then
7234 window_system
=nextstep
7236 # set up packaging dirs
7237 exec_prefix
=${ns_appbindir}
7238 libexecdir
=${ns_appbindir}/libexec
7239 if test "${EN_NS_SELF_CONTAINED}" = yes; then
7240 prefix
=${ns_appresdir}
7243 CFLAGS
="$tmp_CFLAGS"
7244 CPPFLAGS
="$tmp_CPPFLAGS"
7246 case "${window_system}" in
7250 case "${with_x_toolkit}" in
7251 athena | lucid
) USE_X_TOOLKIT
=LUCID
;;
7252 motif
) USE_X_TOOLKIT
=MOTIF
;;
7254 USE_X_TOOLKIT
=none
;;
7255 no
) USE_X_TOOLKIT
=none
;;
7256 * ) USE_X_TOOLKIT
=maybe
;;
7266 if test "$window_system" = none
&& test "X$with_x" != "Xno"; then
7267 # Extract the first word of "X", so it can be a program name with args.
7268 set dummy X
; ac_word
=$2
7269 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7270 $as_echo_n "checking for $ac_word... " >&6; }
7271 if test "${ac_cv_prog_HAVE_XSERVER+set}" = set; then :
7272 $as_echo_n "(cached) " >&6
7274 if test -n "$HAVE_XSERVER"; then
7275 ac_cv_prog_HAVE_XSERVER
="$HAVE_XSERVER" # Let the user override the test.
7277 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
7281 test -z "$as_dir" && as_dir
=.
7282 for ac_exec_ext
in '' $ac_executable_extensions; do
7283 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7284 ac_cv_prog_HAVE_XSERVER
="true"
7285 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7292 test -z "$ac_cv_prog_HAVE_XSERVER" && ac_cv_prog_HAVE_XSERVER
="false"
7295 HAVE_XSERVER
=$ac_cv_prog_HAVE_XSERVER
7296 if test -n "$HAVE_XSERVER"; then
7297 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $HAVE_XSERVER" >&5
7298 $as_echo "$HAVE_XSERVER" >&6; }
7300 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7301 $as_echo "no" >&6; }
7305 if test "$HAVE_XSERVER" = true ||
7306 test -n "$DISPLAY" ||
7307 test "`echo /usr/lib/libX11.*`" != "/usr/lib/libX11.*"; then
7308 as_fn_error
"You seem to be running X, but no X development libraries
7309 were found. You should install the relevant development files for X
7310 and for the toolkit you want, such as Gtk+, Lesstif or Motif. Also make
7311 sure you have development files for image handling, i.e.
7312 tiff, gif, jpeg, png and xpm.
7313 If you are sure you want Emacs compiled without X window support, pass
7315 to configure." "$LINENO" 5
7319 ### If we're using X11, we should use the X menu package.
7322 yes ) HAVE_MENUS
=yes ;;
7325 # Do the opsystem or machine files prohibit the use of the GNU malloc?
7326 # Assume not, until told otherwise.
7329 ac_fn_c_check_func
"$LINENO" "malloc_get_state" "ac_cv_func_malloc_get_state"
7330 if test "x$ac_cv_func_malloc_get_state" = x
""yes; then :
7336 ac_fn_c_check_func
"$LINENO" "malloc_set_state" "ac_cv_func_malloc_set_state"
7337 if test "x$ac_cv_func_malloc_set_state" = x
""yes; then :
7343 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether __after_morecore_hook exists" >&5
7344 $as_echo_n "checking whether __after_morecore_hook exists... " >&6; }
7345 if test "${emacs_cv_var___after_morecore_hook+set}" = set; then :
7346 $as_echo_n "(cached) " >&6
7348 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
7349 /* end confdefs.h. */
7350 extern void (* __after_morecore_hook)();
7354 __after_morecore_hook = 0
7359 if ac_fn_c_try_link
"$LINENO"; then :
7360 emacs_cv_var___after_morecore_hook
=yes
7362 emacs_cv_var___after_morecore_hook
=no
7364 rm -f core conftest.err conftest.
$ac_objext \
7365 conftest
$ac_exeext conftest.
$ac_ext
7367 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $emacs_cv_var___after_morecore_hook" >&5
7368 $as_echo "$emacs_cv_var___after_morecore_hook" >&6; }
7369 if test $emacs_cv_var___after_morecore_hook = no
; then
7372 if test "${system_malloc}" = "yes"; then
7375 (The GNU allocators don't work with this system configuration.)"
7377 if test "$doug_lea_malloc" = "yes" ; then
7378 if test "$GNU_MALLOC" = yes ; then
7380 (Using Doug Lea's new malloc from the GNU C Library.)"
7383 $as_echo "#define DOUG_LEA_MALLOC 1" >>confdefs.h
7387 if test x
"${REL_ALLOC}" = x
; then
7388 REL_ALLOC
=${GNU_MALLOC}
7395 for ac_header
in $ac_header_list
7397 as_ac_Header
=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
7398 ac_fn_c_check_header_compile
"$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
7400 eval as_val
=\$
$as_ac_Header
7401 if test "x$as_val" = x
""yes; then :
7402 cat >>confdefs.h
<<_ACEOF
7403 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
7417 for ac_func
in getpagesize
7419 ac_fn_c_check_func
"$LINENO" "getpagesize" "ac_cv_func_getpagesize"
7420 if test "x$ac_cv_func_getpagesize" = x
""yes; then :
7421 cat >>confdefs.h
<<_ACEOF
7422 #define HAVE_GETPAGESIZE 1
7428 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working mmap" >&5
7429 $as_echo_n "checking for working mmap... " >&6; }
7430 if test "${ac_cv_func_mmap_fixed_mapped+set}" = set; then :
7431 $as_echo_n "(cached) " >&6
7433 if test "$cross_compiling" = yes; then :
7434 ac_cv_func_mmap_fixed_mapped
=no
7436 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
7437 /* end confdefs.h. */
7438 $ac_includes_default
7439 /* malloc might have been renamed as rpl_malloc. */
7442 /* Thanks to Mike Haertel and Jim Avera for this test.
7443 Here is a matrix of mmap possibilities:
7444 mmap private not fixed
7445 mmap private fixed at somewhere currently unmapped
7446 mmap private fixed at somewhere already mapped
7447 mmap shared not fixed
7448 mmap shared fixed at somewhere currently unmapped
7449 mmap shared fixed at somewhere already mapped
7450 For private mappings, we should verify that changes cannot be read()
7451 back from the file, nor mmap's back from the file at a different
7452 address. (There have been systems where private was not correctly
7453 implemented like the infamous i386 svr4.0, and systems where the
7454 VM page cache was not coherent with the file system buffer cache
7455 like early versions of FreeBSD and possibly contemporary NetBSD.)
7456 For shared mappings, we should conversely verify that changes get
7457 propagated back to all the places they're supposed to be.
7459 Grep wants private fixed already mapped.
7460 The main things grep needs to know about mmap are:
7461 * does it exist and is it safe to write into the mmap'd area
7462 * how to use it (BSD variants) */
7465 #include <sys/mman.h>
7467 #if !defined STDC_HEADERS && !defined HAVE_STDLIB_H
7471 /* This mess was copied from the GNU getpagesize.h. */
7472 #ifndef HAVE_GETPAGESIZE
7473 # ifdef _SC_PAGESIZE
7474 # define getpagesize() sysconf(_SC_PAGESIZE)
7475 # else /* no _SC_PAGESIZE */
7476 # ifdef HAVE_SYS_PARAM_H
7477 # include <sys/param.h>
7478 # ifdef EXEC_PAGESIZE
7479 # define getpagesize() EXEC_PAGESIZE
7480 # else /* no EXEC_PAGESIZE */
7482 # define getpagesize() NBPG * CLSIZE
7485 # endif /* no CLSIZE */
7486 # else /* no NBPG */
7488 # define getpagesize() NBPC
7489 # else /* no NBPC */
7491 # define getpagesize() PAGESIZE
7492 # endif /* PAGESIZE */
7493 # endif /* no NBPC */
7494 # endif /* no NBPG */
7495 # endif /* no EXEC_PAGESIZE */
7496 # else /* no HAVE_SYS_PARAM_H */
7497 # define getpagesize() 8192 /* punt totally */
7498 # endif /* no HAVE_SYS_PARAM_H */
7499 # endif /* no _SC_PAGESIZE */
7501 #endif /* no HAVE_GETPAGESIZE */
7506 char *data, *data2, *data3;
7510 pagesize = getpagesize ();
7512 /* First, make a file with some known garbage in it. */
7513 data = (char *) malloc (pagesize);
7516 for (i = 0; i < pagesize; ++i)
7517 *(data + i) = rand ();
7519 fd = creat ("conftest.mmap", 0600);
7522 if (write (fd, data, pagesize) != pagesize)
7526 /* Next, check that the tail of a page is zero-filled. File must have
7527 non-zero length, otherwise we risk SIGBUS for entire page. */
7528 fd2 = open ("conftest.txt", O_RDWR | O_CREAT | O_TRUNC, 0600);
7532 if (write (fd2, data2, 1) != 1)
7534 data2 = mmap (0, pagesize, PROT_READ | PROT_WRITE, MAP_SHARED, fd2, 0L);
7535 if (data2 == MAP_FAILED)
7537 for (i = 0; i < pagesize; ++i)
7541 if (munmap (data2, pagesize))
7544 /* Next, try to mmap the file at a fixed address which already has
7545 something else allocated at it. If we can, also make sure that
7546 we see the same garbage. */
7547 fd = open ("conftest.mmap", O_RDWR);
7550 if (data2 != mmap (data2, pagesize, PROT_READ | PROT_WRITE,
7551 MAP_PRIVATE | MAP_FIXED, fd, 0L))
7553 for (i = 0; i < pagesize; ++i)
7554 if (*(data + i) != *(data2 + i))
7557 /* Finally, make sure that changes to the mapped area do not
7558 percolate back to the file as seen by read(). (This is a bug on
7559 some variants of i386 svr4.0.) */
7560 for (i = 0; i < pagesize; ++i)
7561 *(data2 + i) = *(data2 + i) + 1;
7562 data3 = (char *) malloc (pagesize);
7565 if (read (fd, data3, pagesize) != pagesize)
7567 for (i = 0; i < pagesize; ++i)
7568 if (*(data + i) != *(data3 + i))
7574 if ac_fn_c_try_run
"$LINENO"; then :
7575 ac_cv_func_mmap_fixed_mapped
=yes
7577 ac_cv_func_mmap_fixed_mapped
=no
7579 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
7580 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
7584 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_mmap_fixed_mapped" >&5
7585 $as_echo "$ac_cv_func_mmap_fixed_mapped" >&6; }
7586 if test $ac_cv_func_mmap_fixed_mapped = yes; then
7588 $as_echo "#define HAVE_MMAP 1" >>confdefs.h
7591 rm -f conftest.mmap conftest.txt
7593 if test $use_mmap_for_buffers = yes; then
7597 LIBS
="$libsrc_libs $LIBS"
7599 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dnet_ntoa in -ldnet" >&5
7600 $as_echo_n "checking for dnet_ntoa in -ldnet... " >&6; }
7601 if test "${ac_cv_lib_dnet_dnet_ntoa+set}" = set; then :
7602 $as_echo_n "(cached) " >&6
7604 ac_check_lib_save_LIBS
=$LIBS
7606 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
7607 /* end confdefs.h. */
7609 /* Override any GCC internal prototype to avoid an error.
7610 Use char because int might match the return type of a GCC
7611 builtin and then its argument prototype would still apply. */
7619 return dnet_ntoa ();
7624 if ac_fn_c_try_link
"$LINENO"; then :
7625 ac_cv_lib_dnet_dnet_ntoa
=yes
7627 ac_cv_lib_dnet_dnet_ntoa
=no
7629 rm -f core conftest.err conftest.
$ac_objext \
7630 conftest
$ac_exeext conftest.
$ac_ext
7631 LIBS
=$ac_check_lib_save_LIBS
7633 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dnet_dnet_ntoa" >&5
7634 $as_echo "$ac_cv_lib_dnet_dnet_ntoa" >&6; }
7635 if test "x$ac_cv_lib_dnet_dnet_ntoa" = x
""yes; then :
7636 cat >>confdefs.h
<<_ACEOF
7637 #define HAVE_LIBDNET 1
7645 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for main in -lXbsd" >&5
7646 $as_echo_n "checking for main in -lXbsd... " >&6; }
7647 if test "${ac_cv_lib_Xbsd_main+set}" = set; then :
7648 $as_echo_n "(cached) " >&6
7650 ac_check_lib_save_LIBS
=$LIBS
7652 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
7653 /* end confdefs.h. */
7664 if ac_fn_c_try_link
"$LINENO"; then :
7665 ac_cv_lib_Xbsd_main
=yes
7667 ac_cv_lib_Xbsd_main
=no
7669 rm -f core conftest.err conftest.
$ac_objext \
7670 conftest
$ac_exeext conftest.
$ac_ext
7671 LIBS
=$ac_check_lib_save_LIBS
7673 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_Xbsd_main" >&5
7674 $as_echo "$ac_cv_lib_Xbsd_main" >&6; }
7675 if test "x$ac_cv_lib_Xbsd_main" = x
""yes; then :
7676 LD_SWITCH_X_SITE
="$LD_SWITCH_X_SITE -lXbsd"
7680 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for cma_open in -lpthreads" >&5
7681 $as_echo_n "checking for cma_open in -lpthreads... " >&6; }
7682 if test "${ac_cv_lib_pthreads_cma_open+set}" = set; then :
7683 $as_echo_n "(cached) " >&6
7685 ac_check_lib_save_LIBS
=$LIBS
7686 LIBS
="-lpthreads $LIBS"
7687 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
7688 /* end confdefs.h. */
7690 /* Override any GCC internal prototype to avoid an error.
7691 Use char because int might match the return type of a GCC
7692 builtin and then its argument prototype would still apply. */
7705 if ac_fn_c_try_link
"$LINENO"; then :
7706 ac_cv_lib_pthreads_cma_open
=yes
7708 ac_cv_lib_pthreads_cma_open
=no
7710 rm -f core conftest.err conftest.
$ac_objext \
7711 conftest
$ac_exeext conftest.
$ac_ext
7712 LIBS
=$ac_check_lib_save_LIBS
7714 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_pthreads_cma_open" >&5
7715 $as_echo "$ac_cv_lib_pthreads_cma_open" >&6; }
7716 if test "x$ac_cv_lib_pthreads_cma_open" = x
""yes; then :
7717 cat >>confdefs.h
<<_ACEOF
7718 #define HAVE_LIBPTHREADS 1
7721 LIBS
="-lpthreads $LIBS"
7729 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -bbigtoc option" >&5
7730 $as_echo_n "checking for -bbigtoc option... " >&6; }
7731 if test "${gdb_cv_bigtoc+set}" = set; then :
7732 $as_echo_n "(cached) " >&6
7736 yes) gdb_cv_bigtoc
=-Wl,-bbigtoc ;;
7737 *) gdb_cv_bigtoc
=-bbigtoc ;;
7740 LDFLAGS
=$LDFLAGS\
$gdb_cv_bigtoc
7741 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
7742 /* end confdefs.h. */
7752 if ac_fn_c_try_link
"$LINENO"; then :
7757 rm -f core conftest.err conftest.
$ac_objext \
7758 conftest
$ac_exeext conftest.
$ac_ext
7761 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gdb_cv_bigtoc" >&5
7762 $as_echo "$gdb_cv_bigtoc" >&6; }
7766 # Change CFLAGS and CPPFLAGS temporarily so that C_SWITCH_X_SITE gets
7767 # used for the tests that follow. We set them back to REAL_CFLAGS and
7768 # REAL_CPPFLAGS later on.
7770 REAL_CPPFLAGS
="$CPPFLAGS"
7772 if test "${HAVE_X11}" = "yes"; then
7773 DEFS
="$C_SWITCH_X_SITE $DEFS"
7774 LDFLAGS
="$LDFLAGS $LD_SWITCH_X_SITE"
7776 CFLAGS
="$C_SWITCH_X_SITE $CFLAGS"
7777 CPPFLAGS
="$C_SWITCH_X_SITE $CPPFLAGS"
7779 # On Solaris, arrange for LD_RUN_PATH to point to the X libraries for tests.
7780 # This is handled by LD_SWITCH_X_SITE_AUX during the real build,
7781 # but it's more convenient here to set LD_RUN_PATH
7782 # since this also works on hosts that don't understand LD_SWITCH_X_SITE_AUX.
7783 if test "${x_libraries}" != NONE
&& test -n "${x_libraries}"; then
7784 LD_RUN_PATH
=$x_libraries${LD_RUN_PATH+:}$LD_RUN_PATH
7788 if test "${opsys}" = "gnu-linux"; then
7789 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether X on GNU/Linux needs -b to link" >&5
7790 $as_echo_n "checking whether X on GNU/Linux needs -b to link... " >&6; }
7791 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
7792 /* end confdefs.h. */
7797 XOpenDisplay ("foo");
7802 if ac_fn_c_try_link
"$LINENO"; then :
7803 xlinux_first_failure
=no
7805 xlinux_first_failure
=yes
7807 rm -f core conftest.err conftest.
$ac_objext \
7808 conftest
$ac_exeext conftest.
$ac_ext
7809 if test "${xlinux_first_failure}" = "yes"; then
7810 OLD_LD_SWITCH_X_SITE
="$LD_SWITCH_X_SITE"
7811 OLD_C_SWITCH_X_SITE
="$C_SWITCH_X_SITE"
7812 OLD_CPPFLAGS
="$CPPFLAGS"
7814 LD_SWITCH_X_SITE
="$LD_SWITCH_X_SITE -b i486-linuxaout"
7815 C_SWITCH_X_SITE
="$C_SWITCH_X_SITE -b i486-linuxaout"
7816 CPPFLAGS
="$CPPFLAGS -b i486-linuxaout"
7817 LIBS
="$LIBS -b i486-linuxaout"
7818 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
7819 /* end confdefs.h. */
7824 XOpenDisplay ("foo");
7829 if ac_fn_c_try_link
"$LINENO"; then :
7830 xlinux_second_failure
=no
7832 xlinux_second_failure
=yes
7834 rm -f core conftest.err conftest.
$ac_objext \
7835 conftest
$ac_exeext conftest.
$ac_ext
7836 if test "${xlinux_second_failure}" = "yes"; then
7837 # If we get the same failure with -b, there is no use adding -b.
7838 # So take it out. This plays safe.
7839 LD_SWITCH_X_SITE
="$OLD_LD_SWITCH_X_SITE"
7840 C_SWITCH_X_SITE
="$OLD_C_SWITCH_X_SITE"
7841 CPPFLAGS
="$OLD_CPPFLAGS"
7843 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7844 $as_echo "no" >&6; }
7846 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
7847 $as_echo "yes" >&6; }
7850 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7851 $as_echo "no" >&6; }
7855 # Reportedly, some broken Solaris systems have XKBlib.h but are missing
7856 # header files included from there.
7857 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Xkb" >&5
7858 $as_echo_n "checking for Xkb... " >&6; }
7859 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
7860 /* end confdefs.h. */
7861 #include <X11/Xlib.h>
7862 #include <X11/XKBlib.h>
7866 XkbDescPtr kb = XkbGetKeyboard (0, XkbAllComponentsMask, XkbUseCoreKbd);
7871 if ac_fn_c_try_link
"$LINENO"; then :
7876 rm -f core conftest.err conftest.
$ac_objext \
7877 conftest
$ac_exeext conftest.
$ac_ext
7878 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $emacs_xkb" >&5
7879 $as_echo "$emacs_xkb" >&6; }
7880 if test $emacs_xkb = yes; then
7882 $as_echo "#define HAVE_XKBGETKEYBOARD 1" >>confdefs.h
7886 for ac_func
in XrmSetDatabase XScreenResourceString \
7887 XScreenNumberOfScreen XSetWMProtocols
7889 as_ac_var
=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
7890 ac_fn_c_check_func
"$LINENO" "$ac_func" "$as_ac_var"
7891 eval as_val
=\$
$as_ac_var
7892 if test "x$as_val" = x
""yes; then :
7893 cat >>confdefs.h
<<_ACEOF
7894 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
7902 if test "${window_system}" = "x11"; then
7903 { $as_echo "$as_me:${as_lineno-$LINENO}: checking X11 version 6" >&5
7904 $as_echo_n "checking X11 version 6... " >&6; }
7905 if test "${emacs_cv_x11_version_6+set}" = set; then :
7906 $as_echo_n "(cached) " >&6
7908 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
7909 /* end confdefs.h. */
7910 #include <X11/Xlib.h>
7914 #if XlibSpecificationRelease < 6
7922 if ac_fn_c_try_link
"$LINENO"; then :
7923 emacs_cv_x11_version_6
=yes
7925 emacs_cv_x11_version_6
=no
7927 rm -f core conftest.err conftest.
$ac_objext \
7928 conftest
$ac_exeext conftest.
$ac_ext
7931 if test $emacs_cv_x11_version_6 = yes; then
7932 { $as_echo "$as_me:${as_lineno-$LINENO}: result: 6 or newer" >&5
7933 $as_echo "6 or newer" >&6; }
7935 $as_echo "#define HAVE_X11R6 1" >>confdefs.h
7938 { $as_echo "$as_me:${as_lineno-$LINENO}: result: before 6" >&5
7939 $as_echo "before 6" >&6; }
7944 ### Use -lrsvg-2 if available, unless `--with-rsvg=no' is specified.
7946 if test "${HAVE_X11}" = "yes" ||
test "${NS_IMPL_GNUSTEP}" = "yes"; then
7947 if test "${with_rsvg}" != "no"; then
7948 RSVG_REQUIRED
=2.11.0
7949 RSVG_MODULE
="librsvg-2.0 >= $RSVG_REQUIRED"
7954 # Extract the first word of "pkg-config", so it can be a program name with args.
7955 set dummy pkg-config
; ac_word
=$2
7956 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7957 $as_echo_n "checking for $ac_word... " >&6; }
7958 if test "${ac_cv_path_PKG_CONFIG+set}" = set; then :
7959 $as_echo_n "(cached) " >&6
7963 ac_cv_path_PKG_CONFIG
="$PKG_CONFIG" # Let the user override the test with a path.
7966 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
7970 test -z "$as_dir" && as_dir
=.
7971 for ac_exec_ext
in '' $ac_executable_extensions; do
7972 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7973 ac_cv_path_PKG_CONFIG
="$as_dir/$ac_word$ac_exec_ext"
7974 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7981 test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG
="no"
7985 PKG_CONFIG
=$ac_cv_path_PKG_CONFIG
7986 if test -n "$PKG_CONFIG"; then
7987 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5
7988 $as_echo "$PKG_CONFIG" >&6; }
7990 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7991 $as_echo "no" >&6; }
7996 if test "$PKG_CONFIG" = "no" ; then
7999 PKG_CONFIG_MIN_VERSION
=0.9.0
8000 if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
8001 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $RSVG_MODULE" >&5
8002 $as_echo_n "checking for $RSVG_MODULE... " >&6; }
8004 if $PKG_CONFIG --exists "$RSVG_MODULE" 2>&5; then
8005 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
8006 $as_echo "yes" >&6; }
8009 { $as_echo "$as_me:${as_lineno-$LINENO}: checking RSVG_CFLAGS" >&5
8010 $as_echo_n "checking RSVG_CFLAGS... " >&6; }
8011 RSVG_CFLAGS
=`$PKG_CONFIG --cflags "$RSVG_MODULE"|sed -e 's,///*,/,g'`
8012 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RSVG_CFLAGS" >&5
8013 $as_echo "$RSVG_CFLAGS" >&6; }
8015 { $as_echo "$as_me:${as_lineno-$LINENO}: checking RSVG_LIBS" >&5
8016 $as_echo_n "checking RSVG_LIBS... " >&6; }
8017 RSVG_LIBS
=`$PKG_CONFIG --libs "$RSVG_MODULE"|sed -e 's,///*,/,g'`
8018 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RSVG_LIBS" >&5
8019 $as_echo "$RSVG_LIBS" >&6; }
8021 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8022 $as_echo "no" >&6; }
8025 ## If we have a custom action on failure, don't print errors, but
8026 ## do set a variable so people can do so.
8027 RSVG_PKG_ERRORS
=`$PKG_CONFIG --errors-to-stdout --print-errors "$RSVG_MODULE"`
8034 echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
8035 echo "*** See http://www.freedesktop.org/software/pkgconfig"
8039 if test $succeeded = yes; then
8048 if test ".${RSVG_CFLAGS}" != "."; then
8051 $as_echo "#define HAVE_RSVG 1" >>confdefs.h
8053 CFLAGS
="$CFLAGS $RSVG_CFLAGS"
8054 LIBS
="$RSVG_LIBS $LIBS"
8061 if test "${with_gtk}" = "yes" ||
test "$USE_X_TOOLKIT" = "maybe"; then
8064 GTK_MODULES
="gtk+-2.0 >= $GTK_REQUIRED glib-2.0 >= $GLIB_REQUIRED"
8069 # Extract the first word of "pkg-config", so it can be a program name with args.
8070 set dummy pkg-config
; ac_word
=$2
8071 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8072 $as_echo_n "checking for $ac_word... " >&6; }
8073 if test "${ac_cv_path_PKG_CONFIG+set}" = set; then :
8074 $as_echo_n "(cached) " >&6
8078 ac_cv_path_PKG_CONFIG
="$PKG_CONFIG" # Let the user override the test with a path.
8081 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
8085 test -z "$as_dir" && as_dir
=.
8086 for ac_exec_ext
in '' $ac_executable_extensions; do
8087 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8088 ac_cv_path_PKG_CONFIG
="$as_dir/$ac_word$ac_exec_ext"
8089 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8096 test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG
="no"
8100 PKG_CONFIG
=$ac_cv_path_PKG_CONFIG
8101 if test -n "$PKG_CONFIG"; then
8102 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5
8103 $as_echo "$PKG_CONFIG" >&6; }
8105 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8106 $as_echo "no" >&6; }
8111 if test "$PKG_CONFIG" = "no" ; then
8114 PKG_CONFIG_MIN_VERSION
=0.9.0
8115 if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
8116 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $GTK_MODULES" >&5
8117 $as_echo_n "checking for $GTK_MODULES... " >&6; }
8119 if $PKG_CONFIG --exists "$GTK_MODULES" 2>&5; then
8120 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
8121 $as_echo "yes" >&6; }
8124 { $as_echo "$as_me:${as_lineno-$LINENO}: checking GTK_CFLAGS" >&5
8125 $as_echo_n "checking GTK_CFLAGS... " >&6; }
8126 GTK_CFLAGS
=`$PKG_CONFIG --cflags "$GTK_MODULES"|sed -e 's,///*,/,g'`
8127 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GTK_CFLAGS" >&5
8128 $as_echo "$GTK_CFLAGS" >&6; }
8130 { $as_echo "$as_me:${as_lineno-$LINENO}: checking GTK_LIBS" >&5
8131 $as_echo_n "checking GTK_LIBS... " >&6; }
8132 GTK_LIBS
=`$PKG_CONFIG --libs "$GTK_MODULES"|sed -e 's,///*,/,g'`
8133 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GTK_LIBS" >&5
8134 $as_echo "$GTK_LIBS" >&6; }
8136 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8137 $as_echo "no" >&6; }
8140 ## If we have a custom action on failure, don't print errors, but
8141 ## do set a variable so people can do so.
8142 GTK_PKG_ERRORS
=`$PKG_CONFIG --errors-to-stdout --print-errors "$GTK_MODULES"`
8149 echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
8150 echo "*** See http://www.freedesktop.org/software/pkgconfig"
8154 if test $succeeded = yes; then
8160 if test "$pkg_check_gtk" = "no" && test "$USE_X_TOOLKIT" != "maybe"; then
8161 as_fn_error
"$GTK_PKG_ERRORS" "$LINENO" 5
8166 if test x
"$pkg_check_gtk" = xyes
; then
8170 C_SWITCH_X_SITE
="$C_SWITCH_X_SITE $GTK_CFLAGS"
8171 CFLAGS
="$CFLAGS $GTK_CFLAGS"
8172 LIBS
="$GTK_LIBS $LIBS"
8174 for ac_func
in gtk_main
8176 ac_fn_c_check_func
"$LINENO" "gtk_main" "ac_cv_func_gtk_main"
8177 if test "x$ac_cv_func_gtk_main" = x
""yes; then :
8178 cat >>confdefs.h
<<_ACEOF
8179 #define HAVE_GTK_MAIN 1
8185 if test "${GTK_COMPILES}" != "yes"; then
8186 if test "$USE_X_TOOLKIT" != "maybe"; then
8187 as_fn_error
"Gtk+ wanted, but it does not compile, see config.log. Maybe some x11-devel files missing?" "$LINENO" 5;
8192 $as_echo "#define USE_GTK 1" >>confdefs.h
8195 if $PKG_CONFIG --atleast-version=2.10 gtk
+-2.0
; then
8198 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Your version of Gtk+ will have problems with
8199 closing open displays. This is no problem if you just use
8200 one display, but if you use more than one and close one of them
8201 Emacs may crash." >&5
8202 $as_echo "$as_me: WARNING: Your version of Gtk+ will have problems with
8203 closing open displays. This is no problem if you just use
8204 one display, but if you use more than one and close one of them
8205 Emacs may crash." >&2;}
8213 if test "${HAVE_GTK}" = "yes"; then
8215 if test "$with_toolkit_scroll_bars" != no
; then
8216 with_toolkit_scroll_bars
=yes
8219 HAVE_GTK_MULTIDISPLAY
=no
8220 for ac_func
in gdk_display_open
8222 ac_fn_c_check_func
"$LINENO" "gdk_display_open" "ac_cv_func_gdk_display_open"
8223 if test "x$ac_cv_func_gdk_display_open" = x
""yes; then :
8224 cat >>confdefs.h
<<_ACEOF
8225 #define HAVE_GDK_DISPLAY_OPEN 1
8227 HAVE_GTK_MULTIDISPLAY
=yes
8231 if test "${HAVE_GTK_MULTIDISPLAY}" = "yes"; then
8233 $as_echo "#define HAVE_GTK_MULTIDISPLAY 1" >>confdefs.h
8237 HAVE_GTK_FILE_SELECTION
=no
8238 ac_fn_c_check_decl
"$LINENO" "GTK_TYPE_FILE_SELECTION" "ac_cv_have_decl_GTK_TYPE_FILE_SELECTION" "$ac_includes_default
8239 #include <gtk/gtk.h>
8241 if test "x$ac_cv_have_decl_GTK_TYPE_FILE_SELECTION" = x
""yes; then :
8242 HAVE_GTK_FILE_SELECTION
=yes
8244 HAVE_GTK_FILE_SELECTION
=no
8247 if test "$HAVE_GTK_FILE_SELECTION" = yes; then
8248 for ac_func
in gtk_file_selection_new
8250 ac_fn_c_check_func
"$LINENO" "gtk_file_selection_new" "ac_cv_func_gtk_file_selection_new"
8251 if test "x$ac_cv_func_gtk_file_selection_new" = x
""yes; then :
8252 cat >>confdefs.h
<<_ACEOF
8253 #define HAVE_GTK_FILE_SELECTION_NEW 1
8255 HAVE_GTK_FILE_SELECTION
=yes
8257 HAVE_GTK_FILE_SELECTION
=no
8263 HAVE_GTK_FILE_CHOOSER
=no
8264 ac_fn_c_check_decl
"$LINENO" "GTK_TYPE_FILE_CHOOSER" "ac_cv_have_decl_GTK_TYPE_FILE_CHOOSER" "$ac_includes_default
8265 #include <gtk/gtk.h>
8267 if test "x$ac_cv_have_decl_GTK_TYPE_FILE_CHOOSER" = x
""yes; then :
8268 HAVE_GTK_FILE_CHOOSER
=yes
8270 HAVE_GTK_FILE_CHOOSER
=no
8273 if test "$HAVE_GTK_FILE_CHOOSER" = yes; then
8274 for ac_func
in gtk_file_chooser_dialog_new
8276 ac_fn_c_check_func
"$LINENO" "gtk_file_chooser_dialog_new" "ac_cv_func_gtk_file_chooser_dialog_new"
8277 if test "x$ac_cv_func_gtk_file_chooser_dialog_new" = x
""yes; then :
8278 cat >>confdefs.h
<<_ACEOF
8279 #define HAVE_GTK_FILE_CHOOSER_DIALOG_NEW 1
8281 HAVE_GTK_FILE_CHOOSER
=yes
8283 HAVE_GTK_FILE_CHOOSER
=no
8289 if test "$HAVE_GTK_FILE_SELECTION" = yes \
8290 && test "$HAVE_GTK_FILE_CHOOSER" = yes; then
8292 $as_echo "#define HAVE_GTK_FILE_BOTH 1" >>confdefs.h
8296 if test "$HAVE_GTK_FILE_CHOOSER" = yes; then
8297 HAVE_GTK_AND_PTHREAD
=no
8298 for ac_header
in pthread.h
8300 ac_fn_c_check_header_mongrel
"$LINENO" "pthread.h" "ac_cv_header_pthread_h" "$ac_includes_default"
8301 if test "x$ac_cv_header_pthread_h" = x
""yes; then :
8302 cat >>confdefs.h
<<_ACEOF
8303 #define HAVE_PTHREAD_H 1
8310 if test "$ac_cv_header_pthread_h"; then
8311 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pthread_self in -lpthread" >&5
8312 $as_echo_n "checking for pthread_self in -lpthread... " >&6; }
8313 if test "${ac_cv_lib_pthread_pthread_self+set}" = set; then :
8314 $as_echo_n "(cached) " >&6
8316 ac_check_lib_save_LIBS
=$LIBS
8317 LIBS
="-lpthread $LIBS"
8318 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
8319 /* end confdefs.h. */
8321 /* Override any GCC internal prototype to avoid an error.
8322 Use char because int might match the return type of a GCC
8323 builtin and then its argument prototype would still apply. */
8327 char pthread_self ();
8331 return pthread_self ();
8336 if ac_fn_c_try_link
"$LINENO"; then :
8337 ac_cv_lib_pthread_pthread_self
=yes
8339 ac_cv_lib_pthread_pthread_self
=no
8341 rm -f core conftest.err conftest.
$ac_objext \
8342 conftest
$ac_exeext conftest.
$ac_ext
8343 LIBS
=$ac_check_lib_save_LIBS
8345 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_pthread_pthread_self" >&5
8346 $as_echo "$ac_cv_lib_pthread_pthread_self" >&6; }
8347 if test "x$ac_cv_lib_pthread_pthread_self" = x
""yes; then :
8348 HAVE_GTK_AND_PTHREAD
=yes
8352 if test "$HAVE_GTK_AND_PTHREAD" = yes; then
8353 case "${canonical}" in
8355 *) GTK_LIBS
="$GTK_LIBS -lpthread" ;;
8358 $as_echo "#define HAVE_GTK_AND_PTHREAD 1" >>confdefs.h
8365 if test "${with_dbus}" = "yes"; then
8369 # Extract the first word of "pkg-config", so it can be a program name with args.
8370 set dummy pkg-config
; ac_word
=$2
8371 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8372 $as_echo_n "checking for $ac_word... " >&6; }
8373 if test "${ac_cv_path_PKG_CONFIG+set}" = set; then :
8374 $as_echo_n "(cached) " >&6
8378 ac_cv_path_PKG_CONFIG
="$PKG_CONFIG" # Let the user override the test with a path.
8381 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
8385 test -z "$as_dir" && as_dir
=.
8386 for ac_exec_ext
in '' $ac_executable_extensions; do
8387 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8388 ac_cv_path_PKG_CONFIG
="$as_dir/$ac_word$ac_exec_ext"
8389 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8396 test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG
="no"
8400 PKG_CONFIG
=$ac_cv_path_PKG_CONFIG
8401 if test -n "$PKG_CONFIG"; then
8402 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5
8403 $as_echo "$PKG_CONFIG" >&6; }
8405 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8406 $as_echo "no" >&6; }
8411 if test "$PKG_CONFIG" = "no" ; then
8414 PKG_CONFIG_MIN_VERSION
=0.9.0
8415 if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
8416 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dbus-1 >= 1.0" >&5
8417 $as_echo_n "checking for dbus-1 >= 1.0... " >&6; }
8419 if $PKG_CONFIG --exists "dbus-1 >= 1.0" 2>&5; then
8420 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
8421 $as_echo "yes" >&6; }
8424 { $as_echo "$as_me:${as_lineno-$LINENO}: checking DBUS_CFLAGS" >&5
8425 $as_echo_n "checking DBUS_CFLAGS... " >&6; }
8426 DBUS_CFLAGS
=`$PKG_CONFIG --cflags "dbus-1 >= 1.0"|sed -e 's,///*,/,g'`
8427 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DBUS_CFLAGS" >&5
8428 $as_echo "$DBUS_CFLAGS" >&6; }
8430 { $as_echo "$as_me:${as_lineno-$LINENO}: checking DBUS_LIBS" >&5
8431 $as_echo_n "checking DBUS_LIBS... " >&6; }
8432 DBUS_LIBS
=`$PKG_CONFIG --libs "dbus-1 >= 1.0"|sed -e 's,///*,/,g'`
8433 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DBUS_LIBS" >&5
8434 $as_echo "$DBUS_LIBS" >&6; }
8436 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8437 $as_echo "no" >&6; }
8440 ## If we have a custom action on failure, don't print errors, but
8441 ## do set a variable so people can do so.
8442 DBUS_PKG_ERRORS
=`$PKG_CONFIG --errors-to-stdout --print-errors "dbus-1 >= 1.0"`
8449 echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
8450 echo "*** See http://www.freedesktop.org/software/pkgconfig"
8454 if test $succeeded = yes; then
8460 if test "$HAVE_DBUS" = yes; then
8461 LIBS
="$LIBS $DBUS_LIBS"
8463 $as_echo "#define HAVE_DBUS 1" >>confdefs.h
8465 for ac_func
in dbus_watch_get_unix_fd
8467 ac_fn_c_check_func
"$LINENO" "dbus_watch_get_unix_fd" "ac_cv_func_dbus_watch_get_unix_fd"
8468 if test "x$ac_cv_func_dbus_watch_get_unix_fd" = x
""yes; then :
8469 cat >>confdefs.h
<<_ACEOF
8470 #define HAVE_DBUS_WATCH_GET_UNIX_FD 1
8480 if test "${HAVE_X11}" = "yes" && test "${with_gconf}" = "yes"; then
8484 # Extract the first word of "pkg-config", so it can be a program name with args.
8485 set dummy pkg-config
; ac_word
=$2
8486 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8487 $as_echo_n "checking for $ac_word... " >&6; }
8488 if test "${ac_cv_path_PKG_CONFIG+set}" = set; then :
8489 $as_echo_n "(cached) " >&6
8493 ac_cv_path_PKG_CONFIG
="$PKG_CONFIG" # Let the user override the test with a path.
8496 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
8500 test -z "$as_dir" && as_dir
=.
8501 for ac_exec_ext
in '' $ac_executable_extensions; do
8502 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8503 ac_cv_path_PKG_CONFIG
="$as_dir/$ac_word$ac_exec_ext"
8504 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8511 test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG
="no"
8515 PKG_CONFIG
=$ac_cv_path_PKG_CONFIG
8516 if test -n "$PKG_CONFIG"; then
8517 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5
8518 $as_echo "$PKG_CONFIG" >&6; }
8520 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8521 $as_echo "no" >&6; }
8526 if test "$PKG_CONFIG" = "no" ; then
8529 PKG_CONFIG_MIN_VERSION
=0.9.0
8530 if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
8531 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gconf-2.0 >= 2.13" >&5
8532 $as_echo_n "checking for gconf-2.0 >= 2.13... " >&6; }
8534 if $PKG_CONFIG --exists "gconf-2.0 >= 2.13" 2>&5; then
8535 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
8536 $as_echo "yes" >&6; }
8539 { $as_echo "$as_me:${as_lineno-$LINENO}: checking GCONF_CFLAGS" >&5
8540 $as_echo_n "checking GCONF_CFLAGS... " >&6; }
8541 GCONF_CFLAGS
=`$PKG_CONFIG --cflags "gconf-2.0 >= 2.13"|sed -e 's,///*,/,g'`
8542 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GCONF_CFLAGS" >&5
8543 $as_echo "$GCONF_CFLAGS" >&6; }
8545 { $as_echo "$as_me:${as_lineno-$LINENO}: checking GCONF_LIBS" >&5
8546 $as_echo_n "checking GCONF_LIBS... " >&6; }
8547 GCONF_LIBS
=`$PKG_CONFIG --libs "gconf-2.0 >= 2.13"|sed -e 's,///*,/,g'`
8548 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GCONF_LIBS" >&5
8549 $as_echo "$GCONF_LIBS" >&6; }
8551 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8552 $as_echo "no" >&6; }
8555 ## If we have a custom action on failure, don't print errors, but
8556 ## do set a variable so people can do so.
8557 GCONF_PKG_ERRORS
=`$PKG_CONFIG --errors-to-stdout --print-errors "gconf-2.0 >= 2.13"`
8564 echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
8565 echo "*** See http://www.freedesktop.org/software/pkgconfig"
8569 if test $succeeded = yes; then
8575 if test "$HAVE_GCONF" = yes; then
8577 $as_echo "#define HAVE_GCONF 1" >>confdefs.h
8579 for ac_func
in g_type_init
8581 ac_fn_c_check_func
"$LINENO" "g_type_init" "ac_cv_func_g_type_init"
8582 if test "x$ac_cv_func_g_type_init" = x
""yes; then :
8583 cat >>confdefs.h
<<_ACEOF
8584 #define HAVE_G_TYPE_INIT 1
8594 if test x
"${USE_X_TOOLKIT}" = xmaybe ||
test x
"${USE_X_TOOLKIT}" = xLUCID
; then
8595 if test "$with_xaw3d" != no
; then
8596 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for xaw3d" >&5
8597 $as_echo_n "checking for xaw3d... " >&6; }
8598 if test "${emacs_cv_xaw3d+set}" = set; then :
8599 $as_echo_n "(cached) " >&6
8601 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
8602 /* end confdefs.h. */
8604 #include <X11/Intrinsic.h>
8605 #include <X11/Xaw3d/Simple.h>
8614 if ac_fn_c_try_link
"$LINENO"; then :
8619 rm -f core conftest.err conftest.
$ac_objext \
8620 conftest
$ac_exeext conftest.
$ac_ext
8626 if test $emacs_cv_xaw3d = yes; then
8627 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes; using Lucid toolkit" >&5
8628 $as_echo "yes; using Lucid toolkit" >&6; }
8632 $as_echo "#define HAVE_XAW3D 1" >>confdefs.h
8635 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8636 $as_echo "no" >&6; }
8637 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libXaw" >&5
8638 $as_echo_n "checking for libXaw... " >&6; }
8639 if test "${emacs_cv_xaw+set}" = set; then :
8640 $as_echo_n "(cached) " >&6
8642 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
8643 /* end confdefs.h. */
8645 #include <X11/Intrinsic.h>
8646 #include <X11/Xaw/Simple.h>
8655 if ac_fn_c_try_link
"$LINENO"; then :
8660 rm -f core conftest.err conftest.
$ac_objext \
8661 conftest
$ac_exeext conftest.
$ac_ext
8664 if test $emacs_cv_xaw = yes; then
8665 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes; using Lucid toolkit" >&5
8666 $as_echo "yes; using Lucid toolkit" >&6; }
8668 elif test x
"${USE_X_TOOLKIT}" = xLUCID
; then
8669 as_fn_error
"Lucid toolkit requires X11/Xaw include files" "$LINENO" 5
8671 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no; do not use toolkit by default" >&5
8672 $as_echo "no; do not use toolkit by default" >&6; }
8678 X_TOOLKIT_TYPE
=$USE_X_TOOLKIT
8680 if test "${USE_X_TOOLKIT}" != "none"; then
8681 { $as_echo "$as_me:${as_lineno-$LINENO}: checking X11 toolkit version" >&5
8682 $as_echo_n "checking X11 toolkit version... " >&6; }
8683 if test "${emacs_cv_x11_toolkit_version_6+set}" = set; then :
8684 $as_echo_n "(cached) " >&6
8686 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
8687 /* end confdefs.h. */
8688 #include <X11/Intrinsic.h>
8692 #if XtSpecificationRelease < 6
8700 if ac_fn_c_try_link
"$LINENO"; then :
8701 emacs_cv_x11_toolkit_version_6
=yes
8703 emacs_cv_x11_toolkit_version_6
=no
8705 rm -f core conftest.err conftest.
$ac_objext \
8706 conftest
$ac_exeext conftest.
$ac_ext
8709 HAVE_X11XTR6
=$emacs_cv_x11_toolkit_version_6
8710 if test $emacs_cv_x11_toolkit_version_6 = yes; then
8711 { $as_echo "$as_me:${as_lineno-$LINENO}: result: 6 or newer" >&5
8712 $as_echo "6 or newer" >&6; }
8714 $as_echo "#define HAVE_X11XTR6 1" >>confdefs.h
8717 { $as_echo "$as_me:${as_lineno-$LINENO}: result: before 6" >&5
8718 $as_echo "before 6" >&6; }
8722 if test x
$HAVE_X11XTR6 = xyes
; then
8723 LIBS
="-lXt -lSM -lICE $LIBS"
8727 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for XmuConvertStandardSelection in -lXmu" >&5
8728 $as_echo_n "checking for XmuConvertStandardSelection in -lXmu... " >&6; }
8729 if test "${ac_cv_lib_Xmu_XmuConvertStandardSelection+set}" = set; then :
8730 $as_echo_n "(cached) " >&6
8732 ac_check_lib_save_LIBS
=$LIBS
8734 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
8735 /* end confdefs.h. */
8737 /* Override any GCC internal prototype to avoid an error.
8738 Use char because int might match the return type of a GCC
8739 builtin and then its argument prototype would still apply. */
8743 char XmuConvertStandardSelection ();
8747 return XmuConvertStandardSelection ();
8752 if ac_fn_c_try_link
"$LINENO"; then :
8753 ac_cv_lib_Xmu_XmuConvertStandardSelection
=yes
8755 ac_cv_lib_Xmu_XmuConvertStandardSelection
=no
8757 rm -f core conftest.err conftest.
$ac_objext \
8758 conftest
$ac_exeext conftest.
$ac_ext
8759 LIBS
=$ac_check_lib_save_LIBS
8761 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_Xmu_XmuConvertStandardSelection" >&5
8762 $as_echo "$ac_cv_lib_Xmu_XmuConvertStandardSelection" >&6; }
8763 if test "x$ac_cv_lib_Xmu_XmuConvertStandardSelection" = x
""yes; then :
8764 cat >>confdefs.h
<<_ACEOF
8765 #define HAVE_LIBXMU 1
8772 test $ac_cv_lib_Xmu_XmuConvertStandardSelection = no
&& LIBS
="$OLDLIBS"
8775 # On Irix 6.5, at least, we need XShapeQueryExtension from -lXext for Xaw3D.
8776 if test "${HAVE_X11}" = "yes"; then
8777 if test "${USE_X_TOOLKIT}" != "none"; then
8778 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for XShapeQueryExtension in -lXext" >&5
8779 $as_echo_n "checking for XShapeQueryExtension in -lXext... " >&6; }
8780 if test "${ac_cv_lib_Xext_XShapeQueryExtension+set}" = set; then :
8781 $as_echo_n "(cached) " >&6
8783 ac_check_lib_save_LIBS
=$LIBS
8785 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
8786 /* end confdefs.h. */
8788 /* Override any GCC internal prototype to avoid an error.
8789 Use char because int might match the return type of a GCC
8790 builtin and then its argument prototype would still apply. */
8794 char XShapeQueryExtension ();
8798 return XShapeQueryExtension ();
8803 if ac_fn_c_try_link
"$LINENO"; then :
8804 ac_cv_lib_Xext_XShapeQueryExtension
=yes
8806 ac_cv_lib_Xext_XShapeQueryExtension
=no
8808 rm -f core conftest.err conftest.
$ac_objext \
8809 conftest
$ac_exeext conftest.
$ac_ext
8810 LIBS
=$ac_check_lib_save_LIBS
8812 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_Xext_XShapeQueryExtension" >&5
8813 $as_echo "$ac_cv_lib_Xext_XShapeQueryExtension" >&6; }
8814 if test "x$ac_cv_lib_Xext_XShapeQueryExtension" = x
""yes; then :
8815 cat >>confdefs.h
<<_ACEOF
8816 #define HAVE_LIBXEXT 1
8826 if test "${USE_X_TOOLKIT}" = "MOTIF"; then
8827 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Motif version 2.1" >&5
8828 $as_echo_n "checking for Motif version 2.1... " >&6; }
8829 if test "${emacs_cv_motif_version_2_1+set}" = set; then :
8830 $as_echo_n "(cached) " >&6
8832 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
8833 /* end confdefs.h. */
8838 #if XmVERSION > 2 || (XmVERSION == 2 && XmREVISION >= 1)
8841 Motif version prior to 2.1.
8847 if ac_fn_c_try_compile
"$LINENO"; then :
8848 emacs_cv_motif_version_2_1
=yes
8850 emacs_cv_motif_version_2_1
=no
8852 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
8854 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $emacs_cv_motif_version_2_1" >&5
8855 $as_echo "$emacs_cv_motif_version_2_1" >&6; }
8856 HAVE_MOTIF_2_1
=$emacs_cv_motif_version_2_1
8857 if test $emacs_cv_motif_version_2_1 = yes; then
8860 $as_echo "#define HAVE_MOTIF_2_1 1" >>confdefs.h
8862 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for XpCreateContext in -lXp" >&5
8863 $as_echo_n "checking for XpCreateContext in -lXp... " >&6; }
8864 if test "${ac_cv_lib_Xp_XpCreateContext+set}" = set; then :
8865 $as_echo_n "(cached) " >&6
8867 ac_check_lib_save_LIBS
=$LIBS
8869 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
8870 /* end confdefs.h. */
8872 /* Override any GCC internal prototype to avoid an error.
8873 Use char because int might match the return type of a GCC
8874 builtin and then its argument prototype would still apply. */
8878 char XpCreateContext ();
8882 return XpCreateContext ();
8887 if ac_fn_c_try_link
"$LINENO"; then :
8888 ac_cv_lib_Xp_XpCreateContext
=yes
8890 ac_cv_lib_Xp_XpCreateContext
=no
8892 rm -f core conftest.err conftest.
$ac_objext \
8893 conftest
$ac_exeext conftest.
$ac_ext
8894 LIBS
=$ac_check_lib_save_LIBS
8896 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_Xp_XpCreateContext" >&5
8897 $as_echo "$ac_cv_lib_Xp_XpCreateContext" >&6; }
8898 if test "x$ac_cv_lib_Xp_XpCreateContext" = x
""yes; then :
8902 if test ${HAVE_LIBXP} = yes; then
8904 $as_echo "#define HAVE_LIBXP 1" >>confdefs.h
8908 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for LessTif where some systems put it" >&5
8909 $as_echo_n "checking for LessTif where some systems put it... " >&6; }
8910 if test "${emacs_cv_lesstif+set}" = set; then :
8911 $as_echo_n "(cached) " >&6
8913 # We put this in CFLAGS temporarily to precede other -I options
8914 # that might be in CFLAGS temporarily.
8915 # We put this in CPPFLAGS where it precedes the other -I options.
8916 OLD_CPPFLAGS
=$CPPFLAGS
8918 CPPFLAGS
="-I/usr/X11R6/LessTif/Motif1.2/include $CPPFLAGS"
8919 CFLAGS
="-I/usr/X11R6/LessTif/Motif1.2/include $CFLAGS"
8920 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
8921 /* end confdefs.h. */
8922 #include </usr/X11R6/LessTif/Motif1.2/include/Xm/Xm.h>
8931 if ac_fn_c_try_compile
"$LINENO"; then :
8932 emacs_cv_lesstif
=yes
8936 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
8938 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $emacs_cv_lesstif" >&5
8939 $as_echo "$emacs_cv_lesstif" >&6; }
8940 if test $emacs_cv_lesstif = yes; then
8941 # Make sure this -I option remains in CPPFLAGS after it is set
8942 # back to REAL_CPPFLAGS.
8943 # There is no need to change REAL_CFLAGS, because REAL_CFLAGS does not
8944 # have those other -I options anyway. Ultimately, having this
8945 # directory ultimately in CPPFLAGS will be enough.
8946 REAL_CPPFLAGS
="-I/usr/X11R6/LessTif/Motif1.2/include $REAL_CPPFLAGS"
8947 LDFLAGS
="-L/usr/X11R6/LessTif/Motif1.2/lib $LDFLAGS"
8950 CPPFLAGS
=$OLD_CPPFLAGS
8956 USE_TOOLKIT_SCROLL_BARS
=no
8957 if test "${with_toolkit_scroll_bars}" != "no"; then
8958 if test "${USE_X_TOOLKIT}" != "none"; then
8959 if test "${USE_X_TOOLKIT}" = "MOTIF"; then
8960 $as_echo "#define USE_TOOLKIT_SCROLL_BARS 1" >>confdefs.h
8963 USE_TOOLKIT_SCROLL_BARS
=yes
8964 elif test "${HAVE_XAW3D}" = "yes"; then
8965 $as_echo "#define USE_TOOLKIT_SCROLL_BARS 1" >>confdefs.h
8967 USE_TOOLKIT_SCROLL_BARS
=yes
8969 elif test "${HAVE_GTK}" = "yes"; then
8970 $as_echo "#define USE_TOOLKIT_SCROLL_BARS 1" >>confdefs.h
8972 USE_TOOLKIT_SCROLL_BARS
=yes
8973 elif test "${HAVE_NS}" = "yes"; then
8974 $as_echo "#define USE_TOOLKIT_SCROLL_BARS 1" >>confdefs.h
8976 USE_TOOLKIT_SCROLL_BARS
=yes
8980 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
8981 /* end confdefs.h. */
8983 #include <X11/Xlib.h>
8984 #include <X11/Xresource.h>
8993 if ac_fn_c_try_compile
"$LINENO"; then :
8996 $as_echo "#define HAVE_XIM 1" >>confdefs.h
9001 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
9004 if test "${with_xim}" != "no"; then
9006 $as_echo "#define USE_XIM 1" >>confdefs.h
9011 if test "${HAVE_XIM}" != "no"; then
9013 if test "$GCC" = yes; then
9014 CFLAGS
="$CFLAGS --pedantic-errors"
9016 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
9017 /* end confdefs.h. */
9019 #include <X11/Xlib.h>
9020 #include <X11/Xresource.h>
9029 XPointer *client_data;
9031 /* If we're not using GCC, it's probably not XFree86, and this is
9032 probably right, but we can't use something like --pedantic-errors. */
9033 extern Bool XRegisterIMInstantiateCallback(Display*, XrmDatabase, char*,
9034 char*, XIMProc, XPointer*);
9036 (void)XRegisterIMInstantiateCallback(display, db, res_name, res_class, callback,
9042 if ac_fn_c_try_compile
"$LINENO"; then :
9043 emacs_cv_arg6_star
=yes
9045 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
9046 if test "$emacs_cv_arg6_star" = yes; then
9047 $as_echo "#define XRegisterIMInstantiateCallback_arg6 XPointer*" >>confdefs.h
9050 $as_echo "#define XRegisterIMInstantiateCallback_arg6 XPointer" >>confdefs.h
9056 ### Start of font-backend (under any platform) section.
9057 # (nothing here yet -- this is a placeholder)
9058 ### End of font-backend (under any platform) section.
9060 ### Start of font-backend (under X11) section.
9061 if test "${HAVE_X11}" = "yes"; then
9065 # Extract the first word of "pkg-config", so it can be a program name with args.
9066 set dummy pkg-config
; ac_word
=$2
9067 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9068 $as_echo_n "checking for $ac_word... " >&6; }
9069 if test "${ac_cv_path_PKG_CONFIG+set}" = set; then :
9070 $as_echo_n "(cached) " >&6
9074 ac_cv_path_PKG_CONFIG
="$PKG_CONFIG" # Let the user override the test with a path.
9077 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
9081 test -z "$as_dir" && as_dir
=.
9082 for ac_exec_ext
in '' $ac_executable_extensions; do
9083 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9084 ac_cv_path_PKG_CONFIG
="$as_dir/$ac_word$ac_exec_ext"
9085 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9092 test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG
="no"
9096 PKG_CONFIG
=$ac_cv_path_PKG_CONFIG
9097 if test -n "$PKG_CONFIG"; then
9098 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5
9099 $as_echo "$PKG_CONFIG" >&6; }
9101 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9102 $as_echo "no" >&6; }
9107 if test "$PKG_CONFIG" = "no" ; then
9110 PKG_CONFIG_MIN_VERSION
=0.9.0
9111 if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
9112 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for fontconfig >= 2.2.0" >&5
9113 $as_echo_n "checking for fontconfig >= 2.2.0... " >&6; }
9115 if $PKG_CONFIG --exists "fontconfig >= 2.2.0" 2>&5; then
9116 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
9117 $as_echo "yes" >&6; }
9120 { $as_echo "$as_me:${as_lineno-$LINENO}: checking FONTCONFIG_CFLAGS" >&5
9121 $as_echo_n "checking FONTCONFIG_CFLAGS... " >&6; }
9122 FONTCONFIG_CFLAGS
=`$PKG_CONFIG --cflags "fontconfig >= 2.2.0"|sed -e 's,///*,/,g'`
9123 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $FONTCONFIG_CFLAGS" >&5
9124 $as_echo "$FONTCONFIG_CFLAGS" >&6; }
9126 { $as_echo "$as_me:${as_lineno-$LINENO}: checking FONTCONFIG_LIBS" >&5
9127 $as_echo_n "checking FONTCONFIG_LIBS... " >&6; }
9128 FONTCONFIG_LIBS
=`$PKG_CONFIG --libs "fontconfig >= 2.2.0"|sed -e 's,///*,/,g'`
9129 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $FONTCONFIG_LIBS" >&5
9130 $as_echo "$FONTCONFIG_LIBS" >&6; }
9132 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9133 $as_echo "no" >&6; }
9134 FONTCONFIG_CFLAGS
=""
9136 ## If we have a custom action on failure, don't print errors, but
9137 ## do set a variable so people can do so.
9138 FONTCONFIG_PKG_ERRORS
=`$PKG_CONFIG --errors-to-stdout --print-errors "fontconfig >= 2.2.0"`
9145 echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
9146 echo "*** See http://www.freedesktop.org/software/pkgconfig"
9150 if test $succeeded = yes; then
9157 ## Use -lXft if available, unless `--with-xft=no'.
9159 if test "${HAVE_FC}" = "no" ||
test "x${with_x}" = "xno"; then
9162 if test "x${with_xft}" != "xno"; then
9167 # Extract the first word of "pkg-config", so it can be a program name with args.
9168 set dummy pkg-config
; ac_word
=$2
9169 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9170 $as_echo_n "checking for $ac_word... " >&6; }
9171 if test "${ac_cv_path_PKG_CONFIG+set}" = set; then :
9172 $as_echo_n "(cached) " >&6
9176 ac_cv_path_PKG_CONFIG
="$PKG_CONFIG" # Let the user override the test with a path.
9179 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
9183 test -z "$as_dir" && as_dir
=.
9184 for ac_exec_ext
in '' $ac_executable_extensions; do
9185 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9186 ac_cv_path_PKG_CONFIG
="$as_dir/$ac_word$ac_exec_ext"
9187 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9194 test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG
="no"
9198 PKG_CONFIG
=$ac_cv_path_PKG_CONFIG
9199 if test -n "$PKG_CONFIG"; then
9200 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5
9201 $as_echo "$PKG_CONFIG" >&6; }
9203 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9204 $as_echo "no" >&6; }
9209 if test "$PKG_CONFIG" = "no" ; then
9212 PKG_CONFIG_MIN_VERSION
=0.9.0
9213 if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
9214 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for xft >= 0.13.0" >&5
9215 $as_echo_n "checking for xft >= 0.13.0... " >&6; }
9217 if $PKG_CONFIG --exists "xft >= 0.13.0" 2>&5; then
9218 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
9219 $as_echo "yes" >&6; }
9222 { $as_echo "$as_me:${as_lineno-$LINENO}: checking XFT_CFLAGS" >&5
9223 $as_echo_n "checking XFT_CFLAGS... " >&6; }
9224 XFT_CFLAGS
=`$PKG_CONFIG --cflags "xft >= 0.13.0"|sed -e 's,///*,/,g'`
9225 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $XFT_CFLAGS" >&5
9226 $as_echo "$XFT_CFLAGS" >&6; }
9228 { $as_echo "$as_me:${as_lineno-$LINENO}: checking XFT_LIBS" >&5
9229 $as_echo_n "checking XFT_LIBS... " >&6; }
9230 XFT_LIBS
=`$PKG_CONFIG --libs "xft >= 0.13.0"|sed -e 's,///*,/,g'`
9231 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $XFT_LIBS" >&5
9232 $as_echo "$XFT_LIBS" >&6; }
9234 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9235 $as_echo "no" >&6; }
9238 ## If we have a custom action on failure, don't print errors, but
9239 ## do set a variable so people can do so.
9240 XFT_PKG_ERRORS
=`$PKG_CONFIG --errors-to-stdout --print-errors "xft >= 0.13.0"`
9247 echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
9248 echo "*** See http://www.freedesktop.org/software/pkgconfig"
9252 if test $succeeded = yes; then
9258 ## Because xftfont.c uses XRenderQueryExtension, we also
9259 ## need to link to -lXrender.
9261 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for XRenderQueryExtension in -lXrender" >&5
9262 $as_echo_n "checking for XRenderQueryExtension in -lXrender... " >&6; }
9263 if test "${ac_cv_lib_Xrender_XRenderQueryExtension+set}" = set; then :
9264 $as_echo_n "(cached) " >&6
9266 ac_check_lib_save_LIBS
=$LIBS
9267 LIBS
="-lXrender $LIBS"
9268 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
9269 /* end confdefs.h. */
9271 /* Override any GCC internal prototype to avoid an error.
9272 Use char because int might match the return type of a GCC
9273 builtin and then its argument prototype would still apply. */
9277 char XRenderQueryExtension ();
9281 return XRenderQueryExtension ();
9286 if ac_fn_c_try_link
"$LINENO"; then :
9287 ac_cv_lib_Xrender_XRenderQueryExtension
=yes
9289 ac_cv_lib_Xrender_XRenderQueryExtension
=no
9291 rm -f core conftest.err conftest.
$ac_objext \
9292 conftest
$ac_exeext conftest.
$ac_ext
9293 LIBS
=$ac_check_lib_save_LIBS
9295 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_Xrender_XRenderQueryExtension" >&5
9296 $as_echo "$ac_cv_lib_Xrender_XRenderQueryExtension" >&6; }
9297 if test "x$ac_cv_lib_Xrender_XRenderQueryExtension" = x
""yes; then :
9301 if test "$HAVE_XFT" != no
&& test "$HAVE_XRENDER" != no
; then
9302 OLD_CPPFLAGS
="$CPPFLAGS"
9303 OLD_CFLAGS
="$CFLAGS"
9305 CPPFLAGS
="$CPPFLAGS $XFT_CFLAGS"
9306 CFLAGS
="$CFLAGS $XFT_CFLAGS"
9307 XFT_LIBS
="-lXrender $XFT_LIBS"
9308 LIBS
="$XFT_LIBS $LIBS"
9309 ac_fn_c_check_header_mongrel
"$LINENO" "X11/Xft/Xft.h" "ac_cv_header_X11_Xft_Xft_h" "$ac_includes_default"
9310 if test "x$ac_cv_header_X11_Xft_Xft_h" = x
""yes; then :
9311 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for XftFontOpen in -lXft" >&5
9312 $as_echo_n "checking for XftFontOpen in -lXft... " >&6; }
9313 if test "${ac_cv_lib_Xft_XftFontOpen+set}" = set; then :
9314 $as_echo_n "(cached) " >&6
9316 ac_check_lib_save_LIBS
=$LIBS
9317 LIBS
="-lXft $XFT_LIBS $LIBS"
9318 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
9319 /* end confdefs.h. */
9321 /* Override any GCC internal prototype to avoid an error.
9322 Use char because int might match the return type of a GCC
9323 builtin and then its argument prototype would still apply. */
9327 char XftFontOpen ();
9331 return XftFontOpen ();
9336 if ac_fn_c_try_link
"$LINENO"; then :
9337 ac_cv_lib_Xft_XftFontOpen
=yes
9339 ac_cv_lib_Xft_XftFontOpen
=no
9341 rm -f core conftest.err conftest.
$ac_objext \
9342 conftest
$ac_exeext conftest.
$ac_ext
9343 LIBS
=$ac_check_lib_save_LIBS
9345 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_Xft_XftFontOpen" >&5
9346 $as_echo "$ac_cv_lib_Xft_XftFontOpen" >&6; }
9347 if test "x$ac_cv_lib_Xft_XftFontOpen" = x
""yes; then :
9355 if test "${HAVE_XFT}" = "yes"; then
9357 $as_echo "#define HAVE_XFT 1" >>confdefs.h
9360 C_SWITCH_X_SITE
="$C_SWITCH_X_SITE $XFT_CFLAGS"
9362 CPPFLAGS
="$OLD_CPPFLAGS"
9363 CFLAGS
="$OLD_CFLAGS"
9365 fi # "${HAVE_XFT}" = "yes"
9366 fi # "$HAVE_XFT" != no
9367 fi # "x${with_xft}" != "xno"
9369 if test "$HAVE_XFT" != "yes"; then
9375 ## We used to allow building with FreeType and without Xft.
9376 ## However, the ftx font backend driver is not in good shape.
9377 if test "${HAVE_XFT}" = "yes"; then
9384 if test "${HAVE_FREETYPE}" = "yes"; then
9386 $as_echo "#define HAVE_FREETYPE 1" >>confdefs.h
9388 if test "${with_libotf}" != "no"; then
9392 # Extract the first word of "pkg-config", so it can be a program name with args.
9393 set dummy pkg-config
; ac_word
=$2
9394 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9395 $as_echo_n "checking for $ac_word... " >&6; }
9396 if test "${ac_cv_path_PKG_CONFIG+set}" = set; then :
9397 $as_echo_n "(cached) " >&6
9401 ac_cv_path_PKG_CONFIG
="$PKG_CONFIG" # Let the user override the test with a path.
9404 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
9408 test -z "$as_dir" && as_dir
=.
9409 for ac_exec_ext
in '' $ac_executable_extensions; do
9410 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9411 ac_cv_path_PKG_CONFIG
="$as_dir/$ac_word$ac_exec_ext"
9412 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9419 test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG
="no"
9423 PKG_CONFIG
=$ac_cv_path_PKG_CONFIG
9424 if test -n "$PKG_CONFIG"; then
9425 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5
9426 $as_echo "$PKG_CONFIG" >&6; }
9428 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9429 $as_echo "no" >&6; }
9434 if test "$PKG_CONFIG" = "no" ; then
9437 PKG_CONFIG_MIN_VERSION
=0.9.0
9438 if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
9439 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libotf" >&5
9440 $as_echo_n "checking for libotf... " >&6; }
9442 if $PKG_CONFIG --exists "libotf" 2>&5; then
9443 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
9444 $as_echo "yes" >&6; }
9447 { $as_echo "$as_me:${as_lineno-$LINENO}: checking LIBOTF_CFLAGS" >&5
9448 $as_echo_n "checking LIBOTF_CFLAGS... " >&6; }
9449 LIBOTF_CFLAGS
=`$PKG_CONFIG --cflags "libotf"|sed -e 's,///*,/,g'`
9450 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIBOTF_CFLAGS" >&5
9451 $as_echo "$LIBOTF_CFLAGS" >&6; }
9453 { $as_echo "$as_me:${as_lineno-$LINENO}: checking LIBOTF_LIBS" >&5
9454 $as_echo_n "checking LIBOTF_LIBS... " >&6; }
9455 LIBOTF_LIBS
=`$PKG_CONFIG --libs "libotf"|sed -e 's,///*,/,g'`
9456 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIBOTF_LIBS" >&5
9457 $as_echo "$LIBOTF_LIBS" >&6; }
9459 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9460 $as_echo "no" >&6; }
9463 ## If we have a custom action on failure, don't print errors, but
9464 ## do set a variable so people can do so.
9465 LIBOTF_PKG_ERRORS
=`$PKG_CONFIG --errors-to-stdout --print-errors "libotf"`
9472 echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
9473 echo "*** See http://www.freedesktop.org/software/pkgconfig"
9477 if test $succeeded = yes; then
9483 if test "$HAVE_LIBOTF" = "yes"; then
9485 $as_echo "#define HAVE_LIBOTF 1" >>confdefs.h
9487 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for OTF_get_variation_glyphs in -lotf" >&5
9488 $as_echo_n "checking for OTF_get_variation_glyphs in -lotf... " >&6; }
9489 if test "${ac_cv_lib_otf_OTF_get_variation_glyphs+set}" = set; then :
9490 $as_echo_n "(cached) " >&6
9492 ac_check_lib_save_LIBS
=$LIBS
9494 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
9495 /* end confdefs.h. */
9497 /* Override any GCC internal prototype to avoid an error.
9498 Use char because int might match the return type of a GCC
9499 builtin and then its argument prototype would still apply. */
9503 char OTF_get_variation_glyphs ();
9507 return OTF_get_variation_glyphs ();
9512 if ac_fn_c_try_link
"$LINENO"; then :
9513 ac_cv_lib_otf_OTF_get_variation_glyphs
=yes
9515 ac_cv_lib_otf_OTF_get_variation_glyphs
=no
9517 rm -f core conftest.err conftest.
$ac_objext \
9518 conftest
$ac_exeext conftest.
$ac_ext
9519 LIBS
=$ac_check_lib_save_LIBS
9521 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_otf_OTF_get_variation_glyphs" >&5
9522 $as_echo "$ac_cv_lib_otf_OTF_get_variation_glyphs" >&6; }
9523 if test "x$ac_cv_lib_otf_OTF_get_variation_glyphs" = x
""yes; then :
9524 HAVE_OTF_GET_VARIATION_GLYPHS
=yes
9526 HAVE_OTF_GET_VARIATION_GLYPHS
=no
9529 if test "${HAVE_OTF_GET_VARIATION_GLYPHS}" = "yes"; then
9531 $as_echo "#define HAVE_OTF_GET_VARIATION_GLYPHS 1" >>confdefs.h
9539 if test "${HAVE_LIBOTF}" = yes; then
9540 if test "${with_m17n_flt}" != "no"; then
9544 # Extract the first word of "pkg-config", so it can be a program name with args.
9545 set dummy pkg-config
; ac_word
=$2
9546 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9547 $as_echo_n "checking for $ac_word... " >&6; }
9548 if test "${ac_cv_path_PKG_CONFIG+set}" = set; then :
9549 $as_echo_n "(cached) " >&6
9553 ac_cv_path_PKG_CONFIG
="$PKG_CONFIG" # Let the user override the test with a path.
9556 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
9560 test -z "$as_dir" && as_dir
=.
9561 for ac_exec_ext
in '' $ac_executable_extensions; do
9562 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9563 ac_cv_path_PKG_CONFIG
="$as_dir/$ac_word$ac_exec_ext"
9564 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9571 test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG
="no"
9575 PKG_CONFIG
=$ac_cv_path_PKG_CONFIG
9576 if test -n "$PKG_CONFIG"; then
9577 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5
9578 $as_echo "$PKG_CONFIG" >&6; }
9580 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9581 $as_echo "no" >&6; }
9586 if test "$PKG_CONFIG" = "no" ; then
9589 PKG_CONFIG_MIN_VERSION
=0.9.0
9590 if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
9591 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for m17n-flt" >&5
9592 $as_echo_n "checking for m17n-flt... " >&6; }
9594 if $PKG_CONFIG --exists "m17n-flt" 2>&5; then
9595 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
9596 $as_echo "yes" >&6; }
9599 { $as_echo "$as_me:${as_lineno-$LINENO}: checking M17N_FLT_CFLAGS" >&5
9600 $as_echo_n "checking M17N_FLT_CFLAGS... " >&6; }
9601 M17N_FLT_CFLAGS
=`$PKG_CONFIG --cflags "m17n-flt"|sed -e 's,///*,/,g'`
9602 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $M17N_FLT_CFLAGS" >&5
9603 $as_echo "$M17N_FLT_CFLAGS" >&6; }
9605 { $as_echo "$as_me:${as_lineno-$LINENO}: checking M17N_FLT_LIBS" >&5
9606 $as_echo_n "checking M17N_FLT_LIBS... " >&6; }
9607 M17N_FLT_LIBS
=`$PKG_CONFIG --libs "m17n-flt"|sed -e 's,///*,/,g'`
9608 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $M17N_FLT_LIBS" >&5
9609 $as_echo "$M17N_FLT_LIBS" >&6; }
9611 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9612 $as_echo "no" >&6; }
9615 ## If we have a custom action on failure, don't print errors, but
9616 ## do set a variable so people can do so.
9617 M17N_FLT_PKG_ERRORS
=`$PKG_CONFIG --errors-to-stdout --print-errors "m17n-flt"`
9624 echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
9625 echo "*** See http://www.freedesktop.org/software/pkgconfig"
9629 if test $succeeded = yes; then
9635 if test "$HAVE_M17N_FLT" = "yes"; then
9637 $as_echo "#define HAVE_M17N_FLT 1" >>confdefs.h
9648 ### End of font-backend (under X11) section.
9659 ### Use -lXpm if available, unless `--with-xpm=no'.
9661 if test "${HAVE_X11}" = "yes"; then
9662 if test "${with_xpm}" != "no"; then
9663 ac_fn_c_check_header_mongrel
"$LINENO" "X11/xpm.h" "ac_cv_header_X11_xpm_h" "$ac_includes_default"
9664 if test "x$ac_cv_header_X11_xpm_h" = x
""yes; then :
9665 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for XpmReadFileToPixmap in -lXpm" >&5
9666 $as_echo_n "checking for XpmReadFileToPixmap in -lXpm... " >&6; }
9667 if test "${ac_cv_lib_Xpm_XpmReadFileToPixmap+set}" = set; then :
9668 $as_echo_n "(cached) " >&6
9670 ac_check_lib_save_LIBS
=$LIBS
9671 LIBS
="-lXpm -lX11 $LIBS"
9672 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
9673 /* end confdefs.h. */
9675 /* Override any GCC internal prototype to avoid an error.
9676 Use char because int might match the return type of a GCC
9677 builtin and then its argument prototype would still apply. */
9681 char XpmReadFileToPixmap ();
9685 return XpmReadFileToPixmap ();
9690 if ac_fn_c_try_link
"$LINENO"; then :
9691 ac_cv_lib_Xpm_XpmReadFileToPixmap
=yes
9693 ac_cv_lib_Xpm_XpmReadFileToPixmap
=no
9695 rm -f core conftest.err conftest.
$ac_objext \
9696 conftest
$ac_exeext conftest.
$ac_ext
9697 LIBS
=$ac_check_lib_save_LIBS
9699 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_Xpm_XpmReadFileToPixmap" >&5
9700 $as_echo "$ac_cv_lib_Xpm_XpmReadFileToPixmap" >&6; }
9701 if test "x$ac_cv_lib_Xpm_XpmReadFileToPixmap" = x
""yes; then :
9708 if test "${HAVE_XPM}" = "yes"; then
9709 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for XpmReturnAllocPixels preprocessor define" >&5
9710 $as_echo_n "checking for XpmReturnAllocPixels preprocessor define... " >&6; }
9711 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
9712 /* end confdefs.h. */
9713 #include "X11/xpm.h"
9714 #ifndef XpmReturnAllocPixels
9715 no_return_alloc_pixels
9719 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
9720 $EGREP "no_return_alloc_pixels" >/dev
/null
2>&1; then :
9728 if test "${HAVE_XPM}" = "yes"; then
9729 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
9730 $as_echo "yes" >&6; }
9732 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9733 $as_echo "no" >&6; }
9738 if test "${HAVE_XPM}" = "yes"; then
9740 $as_echo "#define HAVE_XPM 1" >>confdefs.h
9745 ### Use -ljpeg if available, unless `--with-jpeg=no'.
9747 if test "${HAVE_X11}" = "yes"; then
9748 if test "${with_jpeg}" != "no"; then
9749 ac_fn_c_check_header_mongrel
"$LINENO" "jerror.h" "ac_cv_header_jerror_h" "$ac_includes_default"
9750 if test "x$ac_cv_header_jerror_h" = x
""yes; then :
9751 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for jpeg_destroy_compress in -ljpeg" >&5
9752 $as_echo_n "checking for jpeg_destroy_compress in -ljpeg... " >&6; }
9753 if test "${ac_cv_lib_jpeg_jpeg_destroy_compress+set}" = set; then :
9754 $as_echo_n "(cached) " >&6
9756 ac_check_lib_save_LIBS
=$LIBS
9758 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
9759 /* end confdefs.h. */
9761 /* Override any GCC internal prototype to avoid an error.
9762 Use char because int might match the return type of a GCC
9763 builtin and then its argument prototype would still apply. */
9767 char jpeg_destroy_compress ();
9771 return jpeg_destroy_compress ();
9776 if ac_fn_c_try_link
"$LINENO"; then :
9777 ac_cv_lib_jpeg_jpeg_destroy_compress
=yes
9779 ac_cv_lib_jpeg_jpeg_destroy_compress
=no
9781 rm -f core conftest.err conftest.
$ac_objext \
9782 conftest
$ac_exeext conftest.
$ac_ext
9783 LIBS
=$ac_check_lib_save_LIBS
9785 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_jpeg_jpeg_destroy_compress" >&5
9786 $as_echo "$ac_cv_lib_jpeg_jpeg_destroy_compress" >&6; }
9787 if test "x$ac_cv_lib_jpeg_jpeg_destroy_compress" = x
""yes; then :
9796 if test "${HAVE_JPEG}" = "yes"; then
9797 $as_echo "#define HAVE_JPEG 1" >>confdefs.h
9799 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
9800 /* end confdefs.h. */
9801 #include <jpeglib.h>
9802 version=JPEG_LIB_VERSION
9805 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
9806 $EGREP "version= *(6[2-9]|[7-9][0-9])" >/dev
/null
2>&1; then :
9807 $as_echo "#define HAVE_JPEG 1" >>confdefs.h
9810 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: libjpeg found, but not version 6b or later" >&5
9811 $as_echo "$as_me: WARNING: libjpeg found, but not version 6b or later" >&2;}
9819 ### Use -lpng if available, unless `--with-png=no'.
9821 if test "${HAVE_X11}" = "yes"; then
9822 if test "${with_png}" != "no"; then
9823 # Debian unstable as of July 2003 has multiple libpngs, and puts png.h
9824 # in /usr/include/libpng.
9825 for ac_header
in png.h libpng
/png.h
9827 as_ac_Header
=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
9828 ac_fn_c_check_header_mongrel
"$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
9829 eval as_val
=\$
$as_ac_Header
9830 if test "x$as_val" = x
""yes; then :
9831 cat >>confdefs.h
<<_ACEOF
9832 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
9839 if test "$ac_cv_header_png_h" = yes ||
test "$ac_cv_header_libpng_png_h" = yes ; then
9840 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for png_get_channels in -lpng" >&5
9841 $as_echo_n "checking for png_get_channels in -lpng... " >&6; }
9842 if test "${ac_cv_lib_png_png_get_channels+set}" = set; then :
9843 $as_echo_n "(cached) " >&6
9845 ac_check_lib_save_LIBS
=$LIBS
9846 LIBS
="-lpng -lz -lm $LIBS"
9847 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
9848 /* end confdefs.h. */
9850 /* Override any GCC internal prototype to avoid an error.
9851 Use char because int might match the return type of a GCC
9852 builtin and then its argument prototype would still apply. */
9856 char png_get_channels ();
9860 return png_get_channels ();
9865 if ac_fn_c_try_link
"$LINENO"; then :
9866 ac_cv_lib_png_png_get_channels
=yes
9868 ac_cv_lib_png_png_get_channels
=no
9870 rm -f core conftest.err conftest.
$ac_objext \
9871 conftest
$ac_exeext conftest.
$ac_ext
9872 LIBS
=$ac_check_lib_save_LIBS
9874 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_png_png_get_channels" >&5
9875 $as_echo "$ac_cv_lib_png_png_get_channels" >&6; }
9876 if test "x$ac_cv_lib_png_png_get_channels" = x
""yes; then :
9883 if test "${HAVE_PNG}" = "yes"; then
9885 $as_echo "#define HAVE_PNG 1" >>confdefs.h
9890 ### Use -ltiff if available, unless `--with-tiff=no'.
9892 if test "${HAVE_X11}" = "yes"; then
9893 if test "${with_tiff}" != "no"; then
9894 ac_fn_c_check_header_mongrel
"$LINENO" "tiffio.h" "ac_cv_header_tiffio_h" "$ac_includes_default"
9895 if test "x$ac_cv_header_tiffio_h" = x
""yes; then :
9897 # At least one tiff package requires the jpeg library.
9898 if test "${HAVE_JPEG}" = yes; then tifflibs
="-ljpeg $tifflibs"; fi
9899 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for TIFFGetVersion in -ltiff" >&5
9900 $as_echo_n "checking for TIFFGetVersion in -ltiff... " >&6; }
9901 if test "${ac_cv_lib_tiff_TIFFGetVersion+set}" = set; then :
9902 $as_echo_n "(cached) " >&6
9904 ac_check_lib_save_LIBS
=$LIBS
9905 LIBS
="-ltiff $tifflibs $LIBS"
9906 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
9907 /* end confdefs.h. */
9909 /* Override any GCC internal prototype to avoid an error.
9910 Use char because int might match the return type of a GCC
9911 builtin and then its argument prototype would still apply. */
9915 char TIFFGetVersion ();
9919 return TIFFGetVersion ();
9924 if ac_fn_c_try_link
"$LINENO"; then :
9925 ac_cv_lib_tiff_TIFFGetVersion
=yes
9927 ac_cv_lib_tiff_TIFFGetVersion
=no
9929 rm -f core conftest.err conftest.
$ac_objext \
9930 conftest
$ac_exeext conftest.
$ac_ext
9931 LIBS
=$ac_check_lib_save_LIBS
9933 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_tiff_TIFFGetVersion" >&5
9934 $as_echo "$ac_cv_lib_tiff_TIFFGetVersion" >&6; }
9935 if test "x$ac_cv_lib_tiff_TIFFGetVersion" = x
""yes; then :
9944 if test "${HAVE_TIFF}" = "yes"; then
9946 $as_echo "#define HAVE_TIFF 1" >>confdefs.h
9951 ### Use -lgif or -lungif if available, unless `--with-gif=no'.
9953 if test "${HAVE_X11}" = "yes" && test "${with_gif}" != "no"; then
9954 ac_fn_c_check_header_mongrel
"$LINENO" "gif_lib.h" "ac_cv_header_gif_lib_h" "$ac_includes_default"
9955 if test "x$ac_cv_header_gif_lib_h" = x
""yes; then :
9956 # EGifPutExtensionLast only exists from version libungif-4.1.0b1.
9957 # Earlier versions can crash Emacs.
9958 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for EGifPutExtensionLast in -lgif" >&5
9959 $as_echo_n "checking for EGifPutExtensionLast in -lgif... " >&6; }
9960 if test "${ac_cv_lib_gif_EGifPutExtensionLast+set}" = set; then :
9961 $as_echo_n "(cached) " >&6
9963 ac_check_lib_save_LIBS
=$LIBS
9965 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
9966 /* end confdefs.h. */
9968 /* Override any GCC internal prototype to avoid an error.
9969 Use char because int might match the return type of a GCC
9970 builtin and then its argument prototype would still apply. */
9974 char EGifPutExtensionLast ();
9978 return EGifPutExtensionLast ();
9983 if ac_fn_c_try_link
"$LINENO"; then :
9984 ac_cv_lib_gif_EGifPutExtensionLast
=yes
9986 ac_cv_lib_gif_EGifPutExtensionLast
=no
9988 rm -f core conftest.err conftest.
$ac_objext \
9989 conftest
$ac_exeext conftest.
$ac_ext
9990 LIBS
=$ac_check_lib_save_LIBS
9992 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_gif_EGifPutExtensionLast" >&5
9993 $as_echo "$ac_cv_lib_gif_EGifPutExtensionLast" >&6; }
9994 if test "x$ac_cv_lib_gif_EGifPutExtensionLast" = x
""yes; then :
10004 if test "$HAVE_GIF" = yes; then
10005 ac_gif_lib_name
="-lgif"
10008 # If gif_lib.h but no libgif, try libungif.
10009 if test x
"$try_libungif" = xyes
; then
10010 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for EGifPutExtensionLast in -lungif" >&5
10011 $as_echo_n "checking for EGifPutExtensionLast in -lungif... " >&6; }
10012 if test "${ac_cv_lib_ungif_EGifPutExtensionLast+set}" = set; then :
10013 $as_echo_n "(cached) " >&6
10015 ac_check_lib_save_LIBS
=$LIBS
10016 LIBS
="-lungif $LIBS"
10017 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
10018 /* end confdefs.h. */
10020 /* Override any GCC internal prototype to avoid an error.
10021 Use char because int might match the return type of a GCC
10022 builtin and then its argument prototype would still apply. */
10026 char EGifPutExtensionLast ();
10030 return EGifPutExtensionLast ();
10035 if ac_fn_c_try_link
"$LINENO"; then :
10036 ac_cv_lib_ungif_EGifPutExtensionLast
=yes
10038 ac_cv_lib_ungif_EGifPutExtensionLast
=no
10040 rm -f core conftest.err conftest.
$ac_objext \
10041 conftest
$ac_exeext conftest.
$ac_ext
10042 LIBS
=$ac_check_lib_save_LIBS
10044 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_ungif_EGifPutExtensionLast" >&5
10045 $as_echo "$ac_cv_lib_ungif_EGifPutExtensionLast" >&6; }
10046 if test "x$ac_cv_lib_ungif_EGifPutExtensionLast" = x
""yes; then :
10051 if test "$HAVE_GIF" = yes; then
10053 $as_echo "#define LIBGIF -lungif" >>confdefs.h
10055 ac_gif_lib_name
="-lungif"
10059 if test "${HAVE_GIF}" = "yes"; then
10061 $as_echo "#define HAVE_GIF 1" >>confdefs.h
10066 if test "${HAVE_X11}" = "yes"; then
10069 test "${with_xpm}" != "no" && test "${HAVE_XPM}" != "yes" &&
10070 MISSING
="libXpm" && WITH_NO
="--with-xpm=no"
10071 test "${with_jpeg}" != "no" && test "${HAVE_JPEG}" != "yes" &&
10072 MISSING
="$MISSING libjpeg" && WITH_NO
="$WITH_NO --with-jpeg=no"
10073 test "${with_png}" != "no" && test "${HAVE_PNG}" != "yes" &&
10074 MISSING
="$MISSING libpng" && WITH_NO
="$WITH_NO --with-png=no"
10075 test "${with_gif}" != "no" && test "${HAVE_GIF}" != "yes" &&
10076 MISSING
="$MISSING libgif/libungif" && WITH_NO
="$WITH_NO --with-gif=no"
10077 test "${with_tiff}" != "no" && test "${HAVE_TIFF}" != "yes" &&
10078 MISSING
="$MISSING libtiff" && WITH_NO
="$WITH_NO --with-tiff=no"
10080 if test "X${MISSING}" != X
; then
10081 as_fn_error
"The following required libraries were not found:
10083 Maybe some development libraries/packages are missing?
10084 If you don't want to link with them give
10086 as options to configure" "$LINENO" 5
10090 ### Use -lgpm if available, unless `--with-gpm=no'.
10092 if test "${with_gpm}" != "no"; then
10093 ac_fn_c_check_header_mongrel
"$LINENO" "gpm.h" "ac_cv_header_gpm_h" "$ac_includes_default"
10094 if test "x$ac_cv_header_gpm_h" = x
""yes; then :
10095 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Gpm_Open in -lgpm" >&5
10096 $as_echo_n "checking for Gpm_Open in -lgpm... " >&6; }
10097 if test "${ac_cv_lib_gpm_Gpm_Open+set}" = set; then :
10098 $as_echo_n "(cached) " >&6
10100 ac_check_lib_save_LIBS
=$LIBS
10102 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
10103 /* end confdefs.h. */
10105 /* Override any GCC internal prototype to avoid an error.
10106 Use char because int might match the return type of a GCC
10107 builtin and then its argument prototype would still apply. */
10115 return Gpm_Open ();
10120 if ac_fn_c_try_link
"$LINENO"; then :
10121 ac_cv_lib_gpm_Gpm_Open
=yes
10123 ac_cv_lib_gpm_Gpm_Open
=no
10125 rm -f core conftest.err conftest.
$ac_objext \
10126 conftest
$ac_exeext conftest.
$ac_ext
10127 LIBS
=$ac_check_lib_save_LIBS
10129 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_gpm_Gpm_Open" >&5
10130 $as_echo "$ac_cv_lib_gpm_Gpm_Open" >&6; }
10131 if test "x$ac_cv_lib_gpm_Gpm_Open" = x
""yes; then :
10140 if test "${HAVE_GPM}" = "yes"; then
10142 $as_echo "#define HAVE_GPM 1" >>confdefs.h
10146 ac_fn_c_check_header_mongrel
"$LINENO" "malloc/malloc.h" "ac_cv_header_malloc_malloc_h" "$ac_includes_default"
10147 if test "x$ac_cv_header_malloc_malloc_h" = x
""yes; then :
10149 $as_echo "#define HAVE_MALLOC_MALLOC_H 1" >>confdefs.h
10155 ### Use NeXTstep API to implement GUI.
10156 if test "${HAVE_NS}" = "yes"; then
10158 $as_echo "#define HAVE_NS 1" >>confdefs.h
10160 if test "${NS_IMPL_COCOA}" = "yes"; then
10162 $as_echo "#define NS_IMPL_COCOA 1" >>confdefs.h
10166 if test "${NS_IMPL_GNUSTEP}" = "yes"; then
10168 $as_echo "#define NS_IMPL_GNUSTEP 1" >>confdefs.h
10170 GNU_OBJC_CFLAGS
="-fgnu-runtime -Wno-import -fconstant-string-class=NSConstantString -DGNUSTEP_BASE_LIBRARY=1 -DGNU_GUI_LIBRARY=1 -DGNU_RUNTIME=1 -DGSWARN -DGSDIAGNOSE"
10172 if test "${NS_HAVE_NSINTEGER}" = "yes"; then
10174 $as_echo "#define NS_HAVE_NSINTEGER 1" >>confdefs.h
10177 # We also have mouse menus.
10183 ### Use session management (-lSM -lICE) if available
10185 if test "${HAVE_X11}" = "yes"; then
10186 ac_fn_c_check_header_mongrel
"$LINENO" "X11/SM/SMlib.h" "ac_cv_header_X11_SM_SMlib_h" "$ac_includes_default"
10187 if test "x$ac_cv_header_X11_SM_SMlib_h" = x
""yes; then :
10188 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for SmcOpenConnection in -lSM" >&5
10189 $as_echo_n "checking for SmcOpenConnection in -lSM... " >&6; }
10190 if test "${ac_cv_lib_SM_SmcOpenConnection+set}" = set; then :
10191 $as_echo_n "(cached) " >&6
10193 ac_check_lib_save_LIBS
=$LIBS
10194 LIBS
="-lSM -lICE $LIBS"
10195 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
10196 /* end confdefs.h. */
10198 /* Override any GCC internal prototype to avoid an error.
10199 Use char because int might match the return type of a GCC
10200 builtin and then its argument prototype would still apply. */
10204 char SmcOpenConnection ();
10208 return SmcOpenConnection ();
10213 if ac_fn_c_try_link
"$LINENO"; then :
10214 ac_cv_lib_SM_SmcOpenConnection
=yes
10216 ac_cv_lib_SM_SmcOpenConnection
=no
10218 rm -f core conftest.err conftest.
$ac_objext \
10219 conftest
$ac_exeext conftest.
$ac_ext
10220 LIBS
=$ac_check_lib_save_LIBS
10222 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_SM_SmcOpenConnection" >&5
10223 $as_echo "$ac_cv_lib_SM_SmcOpenConnection" >&6; }
10224 if test "x$ac_cv_lib_SM_SmcOpenConnection" = x
""yes; then :
10232 if test "${HAVE_X_SM}" = "yes"; then
10234 $as_echo "#define HAVE_X_SM 1" >>confdefs.h
10238 *) LIBS
="-lSM -lICE $LIBS" ;;
10243 # If netdb.h doesn't declare h_errno, we must declare it by hand.
10244 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether netdb declares h_errno" >&5
10245 $as_echo_n "checking whether netdb declares h_errno... " >&6; }
10246 if test "${emacs_cv_netdb_declares_h_errno+set}" = set; then :
10247 $as_echo_n "(cached) " >&6
10249 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
10250 /* end confdefs.h. */
10260 if ac_fn_c_try_link
"$LINENO"; then :
10261 emacs_cv_netdb_declares_h_errno
=yes
10263 emacs_cv_netdb_declares_h_errno
=no
10265 rm -f core conftest.err conftest.
$ac_objext \
10266 conftest
$ac_exeext conftest.
$ac_ext
10268 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $emacs_cv_netdb_declares_h_errno" >&5
10269 $as_echo "$emacs_cv_netdb_declares_h_errno" >&6; }
10270 if test $emacs_cv_netdb_declares_h_errno = yes; then
10272 $as_echo "#define HAVE_H_ERRNO 1" >>confdefs.h
10276 # The Ultrix 4.2 mips builtin alloca declared by alloca.h only works
10277 # for constant arguments. Useless!
10278 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working alloca.h" >&5
10279 $as_echo_n "checking for working alloca.h... " >&6; }
10280 if test "${ac_cv_working_alloca_h+set}" = set; then :
10281 $as_echo_n "(cached) " >&6
10283 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
10284 /* end confdefs.h. */
10285 #include <alloca.h>
10289 char *p = (char *) alloca (2 * sizeof (int));
10295 if ac_fn_c_try_link
"$LINENO"; then :
10296 ac_cv_working_alloca_h
=yes
10298 ac_cv_working_alloca_h
=no
10300 rm -f core conftest.err conftest.
$ac_objext \
10301 conftest
$ac_exeext conftest.
$ac_ext
10303 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_working_alloca_h" >&5
10304 $as_echo "$ac_cv_working_alloca_h" >&6; }
10305 if test $ac_cv_working_alloca_h = yes; then
10307 $as_echo "#define HAVE_ALLOCA_H 1" >>confdefs.h
10311 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for alloca" >&5
10312 $as_echo_n "checking for alloca... " >&6; }
10313 if test "${ac_cv_func_alloca_works+set}" = set; then :
10314 $as_echo_n "(cached) " >&6
10316 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
10317 /* end confdefs.h. */
10319 # define alloca __builtin_alloca
10322 # include <malloc.h>
10323 # define alloca _alloca
10325 # ifdef HAVE_ALLOCA_H
10326 # include <alloca.h>
10331 # ifndef alloca /* predefined by HP cc +Olibcalls */
10342 char *p = (char *) alloca (1);
10348 if ac_fn_c_try_link
"$LINENO"; then :
10349 ac_cv_func_alloca_works
=yes
10351 ac_cv_func_alloca_works
=no
10353 rm -f core conftest.err conftest.
$ac_objext \
10354 conftest
$ac_exeext conftest.
$ac_ext
10356 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_alloca_works" >&5
10357 $as_echo "$ac_cv_func_alloca_works" >&6; }
10359 if test $ac_cv_func_alloca_works = yes; then
10361 $as_echo "#define HAVE_ALLOCA 1" >>confdefs.h
10364 # The SVR3 libPW and SVR4 libucb both contain incompatible functions
10365 # that cause trouble. Some versions do not even contain alloca or
10366 # contain a buggy version. If you still want to use their alloca,
10367 # use ar to extract alloca.o from them instead of compiling alloca.c.
10369 ALLOCA
=\
${LIBOBJDIR}alloca.
$ac_objext
10371 $as_echo "#define C_ALLOCA 1" >>confdefs.h
10374 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether \`alloca.c' needs Cray hooks" >&5
10375 $as_echo_n "checking whether \`alloca.c' needs Cray hooks... " >&6; }
10376 if test "${ac_cv_os_cray+set}" = set; then :
10377 $as_echo_n "(cached) " >&6
10379 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
10380 /* end confdefs.h. */
10381 #if defined CRAY && ! defined CRAY2
10388 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
10389 $EGREP "webecray" >/dev
/null
2>&1; then :
10397 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_os_cray" >&5
10398 $as_echo "$ac_cv_os_cray" >&6; }
10399 if test $ac_cv_os_cray = yes; then
10400 for ac_func
in _getb67 GETB67 getb67
; do
10401 as_ac_var
=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
10402 ac_fn_c_check_func
"$LINENO" "$ac_func" "$as_ac_var"
10403 eval as_val
=\$
$as_ac_var
10404 if test "x$as_val" = x
""yes; then :
10406 cat >>confdefs.h
<<_ACEOF
10407 #define CRAY_STACKSEG_END $ac_func
10416 { $as_echo "$as_me:${as_lineno-$LINENO}: checking stack direction for C alloca" >&5
10417 $as_echo_n "checking stack direction for C alloca... " >&6; }
10418 if test "${ac_cv_c_stack_direction+set}" = set; then :
10419 $as_echo_n "(cached) " >&6
10421 if test "$cross_compiling" = yes; then :
10422 ac_cv_c_stack_direction
=0
10424 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
10425 /* end confdefs.h. */
10426 $ac_includes_default
10428 find_stack_direction ()
10430 static char *addr = 0;
10435 return find_stack_direction ();
10438 return (&dummy > addr) ? 1 : -1;
10444 return find_stack_direction () < 0;
10447 if ac_fn_c_try_run
"$LINENO"; then :
10448 ac_cv_c_stack_direction
=1
10450 ac_cv_c_stack_direction
=-1
10452 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
10453 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
10457 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_stack_direction" >&5
10458 $as_echo "$ac_cv_c_stack_direction" >&6; }
10459 cat >>confdefs.h
<<_ACEOF
10460 #define STACK_DIRECTION $ac_cv_c_stack_direction
10467 if test x
"$ac_cv_func_alloca_works" != xyes
; then
10468 as_fn_error
"a system implementation of alloca is required " "$LINENO" 5
10471 # fmod, logb, and frexp are found in -lm on most systems.
10472 # On HPUX 9.01, -lm does not contain logb, so check for sqrt.
10473 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sqrt in -lm" >&5
10474 $as_echo_n "checking for sqrt in -lm... " >&6; }
10475 if test "${ac_cv_lib_m_sqrt+set}" = set; then :
10476 $as_echo_n "(cached) " >&6
10478 ac_check_lib_save_LIBS
=$LIBS
10480 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
10481 /* end confdefs.h. */
10483 /* Override any GCC internal prototype to avoid an error.
10484 Use char because int might match the return type of a GCC
10485 builtin and then its argument prototype would still apply. */
10498 if ac_fn_c_try_link
"$LINENO"; then :
10499 ac_cv_lib_m_sqrt
=yes
10501 ac_cv_lib_m_sqrt
=no
10503 rm -f core conftest.err conftest.
$ac_objext \
10504 conftest
$ac_exeext conftest.
$ac_ext
10505 LIBS
=$ac_check_lib_save_LIBS
10507 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_m_sqrt" >&5
10508 $as_echo "$ac_cv_lib_m_sqrt" >&6; }
10509 if test "x$ac_cv_lib_m_sqrt" = x
""yes; then :
10510 cat >>confdefs.h
<<_ACEOF
10511 #define HAVE_LIBM 1
10519 # Check for mail-locking functions in a "mail" library. Probably this should
10520 # have the same check as for liblockfile below.
10521 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for maillock in -lmail" >&5
10522 $as_echo_n "checking for maillock in -lmail... " >&6; }
10523 if test "${ac_cv_lib_mail_maillock+set}" = set; then :
10524 $as_echo_n "(cached) " >&6
10526 ac_check_lib_save_LIBS
=$LIBS
10527 LIBS
="-lmail $LIBS"
10528 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
10529 /* end confdefs.h. */
10531 /* Override any GCC internal prototype to avoid an error.
10532 Use char because int might match the return type of a GCC
10533 builtin and then its argument prototype would still apply. */
10541 return maillock ();
10546 if ac_fn_c_try_link
"$LINENO"; then :
10547 ac_cv_lib_mail_maillock
=yes
10549 ac_cv_lib_mail_maillock
=no
10551 rm -f core conftest.err conftest.
$ac_objext \
10552 conftest
$ac_exeext conftest.
$ac_ext
10553 LIBS
=$ac_check_lib_save_LIBS
10555 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_mail_maillock" >&5
10556 $as_echo "$ac_cv_lib_mail_maillock" >&6; }
10557 if test "x$ac_cv_lib_mail_maillock" = x
""yes; then :
10558 cat >>confdefs.h
<<_ACEOF
10559 #define HAVE_LIBMAIL 1
10562 LIBS
="-lmail $LIBS"
10566 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for maillock in -llockfile" >&5
10567 $as_echo_n "checking for maillock in -llockfile... " >&6; }
10568 if test "${ac_cv_lib_lockfile_maillock+set}" = set; then :
10569 $as_echo_n "(cached) " >&6
10571 ac_check_lib_save_LIBS
=$LIBS
10572 LIBS
="-llockfile $LIBS"
10573 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
10574 /* end confdefs.h. */
10576 /* Override any GCC internal prototype to avoid an error.
10577 Use char because int might match the return type of a GCC
10578 builtin and then its argument prototype would still apply. */
10586 return maillock ();
10591 if ac_fn_c_try_link
"$LINENO"; then :
10592 ac_cv_lib_lockfile_maillock
=yes
10594 ac_cv_lib_lockfile_maillock
=no
10596 rm -f core conftest.err conftest.
$ac_objext \
10597 conftest
$ac_exeext conftest.
$ac_ext
10598 LIBS
=$ac_check_lib_save_LIBS
10600 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_lockfile_maillock" >&5
10601 $as_echo "$ac_cv_lib_lockfile_maillock" >&6; }
10602 if test "x$ac_cv_lib_lockfile_maillock" = x
""yes; then :
10603 cat >>confdefs.h
<<_ACEOF
10604 #define HAVE_LIBLOCKFILE 1
10607 LIBS
="-llockfile $LIBS"
10611 # If we have the shared liblockfile, assume we must use it for mail
10612 # locking (e.g. Debian). If we couldn't link against liblockfile
10613 # (no liblockfile.a installed), ensure that we don't need to.
10614 if test "$ac_cv_lib_lockfile_maillock" = no
; then
10615 # Extract the first word of "liblockfile.so", so it can be a program name with args.
10616 set dummy liblockfile.so
; ac_word
=$2
10617 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10618 $as_echo_n "checking for $ac_word... " >&6; }
10619 if test "${ac_cv_prog_liblockfile+set}" = set; then :
10620 $as_echo_n "(cached) " >&6
10622 if test -n "$liblockfile"; then
10623 ac_cv_prog_liblockfile
="$liblockfile" # Let the user override the test.
10625 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
10626 as_dummy
="/usr/lib:/lib:/usr/local/lib:$LD_LIBRARY_PATH"
10627 for as_dir
in $as_dummy
10630 test -z "$as_dir" && as_dir
=.
10631 for ac_exec_ext
in '' $ac_executable_extensions; do
10632 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10633 ac_cv_prog_liblockfile
="yes"
10634 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10641 test -z "$ac_cv_prog_liblockfile" && ac_cv_prog_liblockfile
="no"
10644 liblockfile
=$ac_cv_prog_liblockfile
10645 if test -n "$liblockfile"; then
10646 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $liblockfile" >&5
10647 $as_echo "$liblockfile" >&6; }
10649 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10650 $as_echo "no" >&6; }
10654 if test $ac_cv_prog_liblockfile = yes; then
10655 as_fn_error
"Shared liblockfile found but can't link against it.
10656 This probably means that movemail could lose mail.
10657 There may be a \`development' package to install containing liblockfile." "$LINENO" 5
10661 for ac_func
in touchlock
10663 ac_fn_c_check_func
"$LINENO" "touchlock" "ac_cv_func_touchlock"
10664 if test "x$ac_cv_func_touchlock" = x
""yes; then :
10665 cat >>confdefs.h
<<_ACEOF
10666 #define HAVE_TOUCHLOCK 1
10672 for ac_header
in maillock.h
10674 ac_fn_c_check_header_mongrel
"$LINENO" "maillock.h" "ac_cv_header_maillock_h" "$ac_includes_default"
10675 if test "x$ac_cv_header_maillock_h" = x
""yes; then :
10676 cat >>confdefs.h
<<_ACEOF
10677 #define HAVE_MAILLOCK_H 1
10685 for ac_func
in gethostname getdomainname dup2 \
10686 rename closedir mkdir
rmdir sysinfo getrusage get_current_dir_name \
10687 random lrand48 bcopy bcmp logb frexp fmod rint cbrt ftime setsid \
10688 strerror fpathconf
select mktime euidaccess getpagesize tzset setlocale \
10689 utimes getrlimit setrlimit setpgid getcwd getwd shutdown getaddrinfo \
10690 __fpending mblen mbrlen mbsinit strsignal setitimer ualarm index rindex \
10691 sendto recvfrom getsockopt setsockopt getsockname getpeername \
10692 gai_strerror mkstemp getline getdelim mremap memmove fsync sync bzero \
10693 memset memcmp difftime memcpy mempcpy mblen mbrlen posix_memalign \
10694 cfmakeraw cfsetspeed
10696 as_ac_var
=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
10697 ac_fn_c_check_func
"$LINENO" "$ac_func" "$as_ac_var"
10698 eval as_val
=\$
$as_ac_var
10699 if test "x$as_val" = x
""yes; then :
10700 cat >>confdefs.h
<<_ACEOF
10701 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
10708 for ac_header
in sys
/un.h
10710 ac_fn_c_check_header_mongrel
"$LINENO" "sys/un.h" "ac_cv_header_sys_un_h" "$ac_includes_default"
10711 if test "x$ac_cv_header_sys_un_h" = x
""yes; then :
10712 cat >>confdefs.h
<<_ACEOF
10713 #define HAVE_SYS_UN_H 1
10726 for ac_func
in $ac_func_list
10728 as_ac_var
=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
10729 ac_fn_c_check_func
"$LINENO" "$ac_func" "$as_ac_var"
10730 eval as_val
=\$
$as_ac_var
10731 if test "x$as_val" = x
""yes; then :
10732 cat >>confdefs.h
<<_ACEOF
10733 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
10743 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working mktime" >&5
10744 $as_echo_n "checking for working mktime... " >&6; }
10745 if test "${ac_cv_func_working_mktime+set}" = set; then :
10746 $as_echo_n "(cached) " >&6
10748 if test "$cross_compiling" = yes; then :
10749 ac_cv_func_working_mktime
=no
10751 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
10752 /* end confdefs.h. */
10753 /* Test program from Paul Eggert and Tony Leneis. */
10754 #ifdef TIME_WITH_SYS_TIME
10755 # include <sys/time.h>
10758 # ifdef HAVE_SYS_TIME_H
10759 # include <sys/time.h>
10765 #include <limits.h>
10766 #include <stdlib.h>
10768 #ifdef HAVE_UNISTD_H
10769 # include <unistd.h>
10773 # define alarm(X) /* empty */
10776 /* Work around redefinition to rpl_putenv by other config tests. */
10779 static time_t time_t_max;
10780 static time_t time_t_min;
10782 /* Values we'll use to set the TZ environment variable. */
10783 static char *tz_strings[] = {
10784 (char *) 0, "TZ=GMT0", "TZ=JST-9",
10785 "TZ=EST+3EDT+2,M10.1.0/00:00:00,M2.3.0/00:00:00"
10787 #define N_STRINGS (sizeof (tz_strings) / sizeof (tz_strings[0]))
10789 /* Return 0 if mktime fails to convert a date in the spring-forward gap.
10790 Based on a problem report from Andreas Jaeger. */
10792 spring_forward_gap ()
10794 /* glibc (up to about 1998-10-07) failed this test. */
10797 /* Use the portable POSIX.1 specification "TZ=PST8PDT,M4.1.0,M10.5.0"
10798 instead of "TZ=America/Vancouver" in order to detect the bug even
10799 on systems that don't support the Olson extension, or don't have the
10800 full zoneinfo tables installed. */
10801 putenv ("TZ=PST8PDT,M4.1.0,M10.5.0");
10810 return mktime (&tm) != (time_t) -1;
10818 return ! (lt = localtime (&now)) || mktime (lt) == now;
10825 return (mktime_test1 (now)
10826 && mktime_test1 ((time_t) (time_t_max - now))
10827 && mktime_test1 ((time_t) (time_t_min + now)));
10833 /* Based on code from Ariel Faigon. */
10843 return tm.tm_mon == 2 && tm.tm_mday == 31;
10852 tm.tm_year = tm.tm_mon = tm.tm_mday = tm.tm_hour = tm.tm_min = tm.tm_sec = j;
10853 now = mktime (&tm);
10854 if (now != (time_t) -1)
10856 struct tm *lt = localtime (&now);
10858 && lt->tm_year == tm.tm_year
10859 && lt->tm_mon == tm.tm_mon
10860 && lt->tm_mday == tm.tm_mday
10861 && lt->tm_hour == tm.tm_hour
10862 && lt->tm_min == tm.tm_min
10863 && lt->tm_sec == tm.tm_sec
10864 && lt->tm_yday == tm.tm_yday
10865 && lt->tm_wday == tm.tm_wday
10866 && ((lt->tm_isdst < 0 ? -1 : 0 < lt->tm_isdst)
10867 == (tm.tm_isdst < 0 ? -1 : 0 < tm.tm_isdst))))
10876 /* The correct answer for 2050-02-01 00:00:00 in Pacific time,
10877 ignoring leap seconds. */
10878 unsigned long int answer = 2527315200UL;
10882 tm.tm_year = 2050 - 1900;
10885 tm.tm_hour = tm.tm_min = tm.tm_sec = 0;
10888 /* Use the portable POSIX.1 specification "TZ=PST8PDT,M4.1.0,M10.5.0"
10889 instead of "TZ=America/Vancouver" in order to detect the bug even
10890 on systems that don't support the Olson extension, or don't have the
10891 full zoneinfo tables installed. */
10892 putenv ("TZ=PST8PDT,M4.1.0,M10.5.0");
10896 /* Check that the result is either a failure, or close enough
10897 to the correct answer that we can assume the discrepancy is
10898 due to leap seconds. */
10899 return (t == (time_t) -1
10900 || (0 < t && answer - 120 <= t && t <= answer + 120));
10909 /* This test makes some buggy mktime implementations loop.
10910 Give up after 60 seconds; a mktime slower than that
10911 isn't worth using anyway. */
10916 t = (time_t_max << 1) + 1;
10917 if (t <= time_t_max)
10921 time_t_min = - ((time_t) ~ (time_t) 0 == (time_t) -1) - time_t_max;
10923 delta = time_t_max / 997; /* a suitable prime number */
10924 for (i = 0; i < N_STRINGS; i++)
10927 putenv (tz_strings[i]);
10929 for (t = 0; t <= time_t_max - delta; t += delta)
10930 if (! mktime_test (t))
10932 if (! (mktime_test ((time_t) 1)
10933 && mktime_test ((time_t) (60 * 60))
10934 && mktime_test ((time_t) (60 * 60 * 24))))
10937 for (j = 1; ; j <<= 1)
10938 if (! bigtime_test (j))
10940 else if (INT_MAX / 2 < j)
10942 if (! bigtime_test (INT_MAX))
10945 return ! (irix_6_4_bug () && spring_forward_gap () && year_2050_test ());
10948 if ac_fn_c_try_run
"$LINENO"; then :
10949 ac_cv_func_working_mktime
=yes
10951 ac_cv_func_working_mktime
=no
10953 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
10954 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
10958 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_working_mktime" >&5
10959 $as_echo "$ac_cv_func_working_mktime" >&6; }
10960 if test $ac_cv_func_working_mktime = no
; then
10961 case " $LIBOBJS " in
10962 *" mktime.$ac_objext "* ) ;;
10963 *) LIBOBJS
="$LIBOBJS mktime.$ac_objext"
10969 if test "$ac_cv_func_working_mktime" = no
; then
10971 $as_echo "#define BROKEN_MKTIME 1" >>confdefs.h
10975 ac_have_func
=no
# yes means we've found a way to get the load average.
10977 # Make sure getloadavg.c is where it belongs, at configure-time.
10978 test -f "$srcdir/$ac_config_libobj_dir/getloadavg.c" ||
10979 as_fn_error
"$srcdir/$ac_config_libobj_dir/getloadavg.c is missing" "$LINENO" 5
10983 # Check for getloadavg, but be sure not to touch the cache variable.
10984 (ac_fn_c_check_func
"$LINENO" "getloadavg" "ac_cv_func_getloadavg"
10985 if test "x$ac_cv_func_getloadavg" = x
""yes; then :
10990 ) && ac_have_func
=yes
10992 # On HPUX9, an unprivileged user can get load averages through this function.
10993 for ac_func
in pstat_getdynamic
10995 ac_fn_c_check_func
"$LINENO" "pstat_getdynamic" "ac_cv_func_pstat_getdynamic"
10996 if test "x$ac_cv_func_pstat_getdynamic" = x
""yes; then :
10997 cat >>confdefs.h
<<_ACEOF
10998 #define HAVE_PSTAT_GETDYNAMIC 1
11005 # Solaris has libkstat which does not require root.
11006 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for kstat_open in -lkstat" >&5
11007 $as_echo_n "checking for kstat_open in -lkstat... " >&6; }
11008 if test "${ac_cv_lib_kstat_kstat_open+set}" = set; then :
11009 $as_echo_n "(cached) " >&6
11011 ac_check_lib_save_LIBS
=$LIBS
11012 LIBS
="-lkstat $LIBS"
11013 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
11014 /* end confdefs.h. */
11016 /* Override any GCC internal prototype to avoid an error.
11017 Use char because int might match the return type of a GCC
11018 builtin and then its argument prototype would still apply. */
11022 char kstat_open ();
11026 return kstat_open ();
11031 if ac_fn_c_try_link
"$LINENO"; then :
11032 ac_cv_lib_kstat_kstat_open
=yes
11034 ac_cv_lib_kstat_kstat_open
=no
11036 rm -f core conftest.err conftest.
$ac_objext \
11037 conftest
$ac_exeext conftest.
$ac_ext
11038 LIBS
=$ac_check_lib_save_LIBS
11040 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_kstat_kstat_open" >&5
11041 $as_echo "$ac_cv_lib_kstat_kstat_open" >&6; }
11042 if test "x$ac_cv_lib_kstat_kstat_open" = x
""yes; then :
11043 cat >>confdefs.h
<<_ACEOF
11044 #define HAVE_LIBKSTAT 1
11047 LIBS
="-lkstat $LIBS"
11051 test $ac_cv_lib_kstat_kstat_open = yes && ac_have_func
=yes
11053 # Some systems with -lutil have (and need) -lkvm as well, some do not.
11054 # On Solaris, -lkvm requires nlist from -lelf, so check that first
11055 # to get the right answer into the cache.
11056 # For kstat on solaris, we need libelf to force the definition of SVR4 below.
11057 if test $ac_have_func = no
; then
11058 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for elf_begin in -lelf" >&5
11059 $as_echo_n "checking for elf_begin in -lelf... " >&6; }
11060 if test "${ac_cv_lib_elf_elf_begin+set}" = set; then :
11061 $as_echo_n "(cached) " >&6
11063 ac_check_lib_save_LIBS
=$LIBS
11065 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
11066 /* end confdefs.h. */
11068 /* Override any GCC internal prototype to avoid an error.
11069 Use char because int might match the return type of a GCC
11070 builtin and then its argument prototype would still apply. */
11078 return elf_begin ();
11083 if ac_fn_c_try_link
"$LINENO"; then :
11084 ac_cv_lib_elf_elf_begin
=yes
11086 ac_cv_lib_elf_elf_begin
=no
11088 rm -f core conftest.err conftest.
$ac_objext \
11089 conftest
$ac_exeext conftest.
$ac_ext
11090 LIBS
=$ac_check_lib_save_LIBS
11092 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_elf_elf_begin" >&5
11093 $as_echo "$ac_cv_lib_elf_elf_begin" >&6; }
11094 if test "x$ac_cv_lib_elf_elf_begin" = x
""yes; then :
11099 if test $ac_have_func = no
; then
11100 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for kvm_open in -lkvm" >&5
11101 $as_echo_n "checking for kvm_open in -lkvm... " >&6; }
11102 if test "${ac_cv_lib_kvm_kvm_open+set}" = set; then :
11103 $as_echo_n "(cached) " >&6
11105 ac_check_lib_save_LIBS
=$LIBS
11107 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
11108 /* end confdefs.h. */
11110 /* Override any GCC internal prototype to avoid an error.
11111 Use char because int might match the return type of a GCC
11112 builtin and then its argument prototype would still apply. */
11120 return kvm_open ();
11125 if ac_fn_c_try_link
"$LINENO"; then :
11126 ac_cv_lib_kvm_kvm_open
=yes
11128 ac_cv_lib_kvm_kvm_open
=no
11130 rm -f core conftest.err conftest.
$ac_objext \
11131 conftest
$ac_exeext conftest.
$ac_ext
11132 LIBS
=$ac_check_lib_save_LIBS
11134 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_kvm_kvm_open" >&5
11135 $as_echo "$ac_cv_lib_kvm_kvm_open" >&6; }
11136 if test "x$ac_cv_lib_kvm_kvm_open" = x
""yes; then :
11140 # Check for the 4.4BSD definition of getloadavg.
11141 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for getloadavg in -lutil" >&5
11142 $as_echo_n "checking for getloadavg in -lutil... " >&6; }
11143 if test "${ac_cv_lib_util_getloadavg+set}" = set; then :
11144 $as_echo_n "(cached) " >&6
11146 ac_check_lib_save_LIBS
=$LIBS
11147 LIBS
="-lutil $LIBS"
11148 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
11149 /* end confdefs.h. */
11151 /* Override any GCC internal prototype to avoid an error.
11152 Use char because int might match the return type of a GCC
11153 builtin and then its argument prototype would still apply. */
11157 char getloadavg ();
11161 return getloadavg ();
11166 if ac_fn_c_try_link
"$LINENO"; then :
11167 ac_cv_lib_util_getloadavg
=yes
11169 ac_cv_lib_util_getloadavg
=no
11171 rm -f core conftest.err conftest.
$ac_objext \
11172 conftest
$ac_exeext conftest.
$ac_ext
11173 LIBS
=$ac_check_lib_save_LIBS
11175 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_util_getloadavg" >&5
11176 $as_echo "$ac_cv_lib_util_getloadavg" >&6; }
11177 if test "x$ac_cv_lib_util_getloadavg" = x
""yes; then :
11178 LIBS
="-lutil $LIBS" ac_have_func
=yes ac_cv_func_getloadavg_setgid
=yes
11183 if test $ac_have_func = no
; then
11184 # There is a commonly available library for RS/6000 AIX.
11185 # Since it is not a standard part of AIX, it might be installed locally.
11186 ac_getloadavg_LIBS
=$LIBS
11187 LIBS
="-L/usr/local/lib $LIBS"
11188 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for getloadavg in -lgetloadavg" >&5
11189 $as_echo_n "checking for getloadavg in -lgetloadavg... " >&6; }
11190 if test "${ac_cv_lib_getloadavg_getloadavg+set}" = set; then :
11191 $as_echo_n "(cached) " >&6
11193 ac_check_lib_save_LIBS
=$LIBS
11194 LIBS
="-lgetloadavg $LIBS"
11195 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
11196 /* end confdefs.h. */
11198 /* Override any GCC internal prototype to avoid an error.
11199 Use char because int might match the return type of a GCC
11200 builtin and then its argument prototype would still apply. */
11204 char getloadavg ();
11208 return getloadavg ();
11213 if ac_fn_c_try_link
"$LINENO"; then :
11214 ac_cv_lib_getloadavg_getloadavg
=yes
11216 ac_cv_lib_getloadavg_getloadavg
=no
11218 rm -f core conftest.err conftest.
$ac_objext \
11219 conftest
$ac_exeext conftest.
$ac_ext
11220 LIBS
=$ac_check_lib_save_LIBS
11222 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_getloadavg_getloadavg" >&5
11223 $as_echo "$ac_cv_lib_getloadavg_getloadavg" >&6; }
11224 if test "x$ac_cv_lib_getloadavg_getloadavg" = x
""yes; then :
11225 LIBS
="-lgetloadavg $LIBS"
11227 LIBS
=$ac_getloadavg_LIBS
11232 # Make sure it is really in the library, if we think we found it,
11233 # otherwise set up the replacement function.
11234 for ac_func
in getloadavg
11236 ac_fn_c_check_func
"$LINENO" "getloadavg" "ac_cv_func_getloadavg"
11237 if test "x$ac_cv_func_getloadavg" = x
""yes; then :
11238 cat >>confdefs.h
<<_ACEOF
11239 #define HAVE_GETLOADAVG 1
11243 case " $LIBOBJS " in
11244 *" getloadavg.$ac_objext "* ) ;;
11245 *) LIBOBJS
="$LIBOBJS getloadavg.$ac_objext"
11250 $as_echo "#define C_GETLOADAVG 1" >>confdefs.h
11252 # Figure out what our getloadavg.c needs.
11254 ac_fn_c_check_header_mongrel
"$LINENO" "sys/dg_sys_info.h" "ac_cv_header_sys_dg_sys_info_h" "$ac_includes_default"
11255 if test "x$ac_cv_header_sys_dg_sys_info_h" = x
""yes; then :
11258 $as_echo "#define DGUX 1" >>confdefs.h
11260 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dg_sys_info in -ldgc" >&5
11261 $as_echo_n "checking for dg_sys_info in -ldgc... " >&6; }
11262 if test "${ac_cv_lib_dgc_dg_sys_info+set}" = set; then :
11263 $as_echo_n "(cached) " >&6
11265 ac_check_lib_save_LIBS
=$LIBS
11267 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
11268 /* end confdefs.h. */
11270 /* Override any GCC internal prototype to avoid an error.
11271 Use char because int might match the return type of a GCC
11272 builtin and then its argument prototype would still apply. */
11276 char dg_sys_info ();
11280 return dg_sys_info ();
11285 if ac_fn_c_try_link
"$LINENO"; then :
11286 ac_cv_lib_dgc_dg_sys_info
=yes
11288 ac_cv_lib_dgc_dg_sys_info
=no
11290 rm -f core conftest.err conftest.
$ac_objext \
11291 conftest
$ac_exeext conftest.
$ac_ext
11292 LIBS
=$ac_check_lib_save_LIBS
11294 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dgc_dg_sys_info" >&5
11295 $as_echo "$ac_cv_lib_dgc_dg_sys_info" >&6; }
11296 if test "x$ac_cv_lib_dgc_dg_sys_info" = x
""yes; then :
11297 cat >>confdefs.h
<<_ACEOF
11298 #define HAVE_LIBDGC 1
11309 ac_fn_c_check_header_mongrel
"$LINENO" "locale.h" "ac_cv_header_locale_h" "$ac_includes_default"
11310 if test "x$ac_cv_header_locale_h" = x
""yes; then :
11315 for ac_func
in setlocale
11317 ac_fn_c_check_func
"$LINENO" "setlocale" "ac_cv_func_setlocale"
11318 if test "x$ac_cv_func_setlocale" = x
""yes; then :
11319 cat >>confdefs.h
<<_ACEOF
11320 #define HAVE_SETLOCALE 1
11327 # We cannot check for <dwarf.h>, because Solaris 2 does not use dwarf (it
11328 # uses stabs), but it is still SVR4. We cannot check for <elf.h> because
11329 # Irix 4.0.5F has the header but not the library.
11330 if test $ac_have_func = no
&& test "$ac_cv_lib_elf_elf_begin" = yes; then
11333 $as_echo "#define SVR4 1" >>confdefs.h
11337 if test $ac_have_func = no
; then
11338 ac_fn_c_check_header_mongrel
"$LINENO" "inq_stats/cpustats.h" "ac_cv_header_inq_stats_cpustats_h" "$ac_includes_default"
11339 if test "x$ac_cv_header_inq_stats_cpustats_h" = x
""yes; then :
11342 $as_echo "#define UMAX 1" >>confdefs.h
11345 $as_echo "#define UMAX4_3 1" >>confdefs.h
11352 if test $ac_have_func = no
; then
11353 ac_fn_c_check_header_mongrel
"$LINENO" "sys/cpustats.h" "ac_cv_header_sys_cpustats_h" "$ac_includes_default"
11354 if test "x$ac_cv_header_sys_cpustats_h" = x
""yes; then :
11355 ac_have_func
=yes; $as_echo "#define UMAX 1" >>confdefs.h
11362 if test $ac_have_func = no
; then
11363 for ac_header
in mach
/mach.h
11365 ac_fn_c_check_header_mongrel
"$LINENO" "mach/mach.h" "ac_cv_header_mach_mach_h" "$ac_includes_default"
11366 if test "x$ac_cv_header_mach_mach_h" = x
""yes; then :
11367 cat >>confdefs.h
<<_ACEOF
11368 #define HAVE_MACH_MACH_H 1
11377 for ac_header
in nlist.h
11379 ac_fn_c_check_header_mongrel
"$LINENO" "nlist.h" "ac_cv_header_nlist_h" "$ac_includes_default"
11380 if test "x$ac_cv_header_nlist_h" = x
""yes; then :
11381 cat >>confdefs.h
<<_ACEOF
11382 #define HAVE_NLIST_H 1
11384 ac_fn_c_check_member
"$LINENO" "struct nlist" "n_un.n_name" "ac_cv_member_struct_nlist_n_un_n_name" "#include <nlist.h>
11386 if test "x$ac_cv_member_struct_nlist_n_un_n_name" = x
""yes; then :
11388 cat >>confdefs.h
<<_ACEOF
11389 #define HAVE_STRUCT_NLIST_N_UN_N_NAME 1
11393 $as_echo "#define NLIST_NAME_UNION 1" >>confdefs.h
11406 # Some definitions of getloadavg require that the program be installed setgid.
11407 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether getloadavg requires setgid" >&5
11408 $as_echo_n "checking whether getloadavg requires setgid... " >&6; }
11409 if test "${ac_cv_func_getloadavg_setgid+set}" = set; then :
11410 $as_echo_n "(cached) " >&6
11412 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
11413 /* end confdefs.h. */
11414 #include "$srcdir/$ac_config_libobj_dir/getloadavg.c"
11415 #ifdef LDAV_PRIVILEGED
11416 Yowza Am I SETGID yet
11419 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
11420 $EGREP "Yowza Am I SETGID yet" >/dev
/null
2>&1; then :
11421 ac_cv_func_getloadavg_setgid
=yes
11423 ac_cv_func_getloadavg_setgid
=no
11428 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_getloadavg_setgid" >&5
11429 $as_echo "$ac_cv_func_getloadavg_setgid" >&6; }
11430 if test $ac_cv_func_getloadavg_setgid = yes; then
11433 $as_echo "#define GETLOADAVG_PRIVILEGED 1" >>confdefs.h
11439 if test $ac_cv_func_getloadavg_setgid = yes; then
11440 { $as_echo "$as_me:${as_lineno-$LINENO}: checking group of /dev/kmem" >&5
11441 $as_echo_n "checking group of /dev/kmem... " >&6; }
11442 if test "${ac_cv_group_kmem+set}" = set; then :
11443 $as_echo_n "(cached) " >&6
11445 # On Solaris, /dev/kmem is a symlink. Get info on the real file.
11446 ac_ls_output
=`ls -lgL /dev/kmem 2>/dev/null`
11447 # If we got an error (system does not support symlinks), try without -L.
11448 test -z "$ac_ls_output" && ac_ls_output
=`ls -lg /dev/kmem`
11449 ac_cv_group_kmem
=`$as_echo "$ac_ls_output" \
11450 | sed -ne 's/[ ][ ]*/ /g;
11451 s/^.[sSrwx-]* *[0-9]* *\([^0-9]*\) *.*/\1/;
11455 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_group_kmem" >&5
11456 $as_echo "$ac_cv_group_kmem" >&6; }
11457 KMEM_GROUP
=$ac_cv_group_kmem
11459 if test "x$ac_save_LIBS" = x
; then
11460 GETLOADAVG_LIBS
=$LIBS
11462 GETLOADAVG_LIBS
=`$as_echo "$LIBS" | sed "s|$ac_save_LIBS||"`
11468 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _LARGEFILE_SOURCE value needed for large files" >&5
11469 $as_echo_n "checking for _LARGEFILE_SOURCE value needed for large files... " >&6; }
11470 if test "${ac_cv_sys_largefile_source+set}" = set; then :
11471 $as_echo_n "(cached) " >&6
11474 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
11475 /* end confdefs.h. */
11476 #include <sys/types.h> /* for off_t */
11481 int (*fp) (FILE *, off_t, int) = fseeko;
11482 return fseeko (stdin, 0, 0) && fp (stdin, 0, 0);
11487 if ac_fn_c_try_link
"$LINENO"; then :
11488 ac_cv_sys_largefile_source
=no
; break
11490 rm -f core conftest.err conftest.
$ac_objext \
11491 conftest
$ac_exeext conftest.
$ac_ext
11492 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
11493 /* end confdefs.h. */
11494 #define _LARGEFILE_SOURCE 1
11495 #include <sys/types.h> /* for off_t */
11500 int (*fp) (FILE *, off_t, int) = fseeko;
11501 return fseeko (stdin, 0, 0) && fp (stdin, 0, 0);
11506 if ac_fn_c_try_link
"$LINENO"; then :
11507 ac_cv_sys_largefile_source
=1; break
11509 rm -f core conftest.err conftest.
$ac_objext \
11510 conftest
$ac_exeext conftest.
$ac_ext
11511 ac_cv_sys_largefile_source
=unknown
11515 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_largefile_source" >&5
11516 $as_echo "$ac_cv_sys_largefile_source" >&6; }
11517 case $ac_cv_sys_largefile_source in #(
11520 cat >>confdefs.h
<<_ACEOF
11521 #define _LARGEFILE_SOURCE $ac_cv_sys_largefile_source
11527 # We used to try defining _XOPEN_SOURCE=500 too, to work around a bug
11528 # in glibc 2.1.3, but that breaks too many other things.
11529 # If you want fseeko and ftello with glibc, upgrade to a fixed glibc.
11530 if test $ac_cv_sys_largefile_source != unknown
; then
11532 $as_echo "#define HAVE_FSEEKO 1" >>confdefs.h
11537 # Configure getopt.
11538 # getopt.m4 serial 10
11540 # The getopt module assume you want GNU getopt, with getopt_long etc,
11541 # rather than vanilla POSIX getopt. This means your your code should
11542 # always include <getopt.h> for the getopt prototypes.
11554 # Prerequisites of lib/getopt*.
11560 for ac_header
in getopt.h
11562 ac_fn_c_check_header_mongrel
"$LINENO" "getopt.h" "ac_cv_header_getopt_h" "$ac_includes_default"
11563 if test "x$ac_cv_header_getopt_h" = x
""yes; then :
11564 cat >>confdefs.h
<<_ACEOF
11565 #define HAVE_GETOPT_H 1
11574 if test -z "$GETOPT_H"; then
11575 for ac_func
in getopt_long_only
11577 ac_fn_c_check_func
"$LINENO" "getopt_long_only" "ac_cv_func_getopt_long_only"
11578 if test "x$ac_cv_func_getopt_long_only" = x
""yes; then :
11579 cat >>confdefs.h
<<_ACEOF
11580 #define HAVE_GETOPT_LONG_ONLY 1
11590 if test -z "$GETOPT_H"; then
11591 ac_fn_c_check_decl
"$LINENO" "optreset" "ac_cv_have_decl_optreset" "#include <getopt.h>
11593 if test "x$ac_cv_have_decl_optreset" = x
""yes; then :
11599 if test -z "$GETOPT_H"; then
11600 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working GNU getopt function" >&5
11601 $as_echo_n "checking for working GNU getopt function... " >&6; }
11602 if test "${gl_cv_func_gnu_getopt+set}" = set; then :
11603 $as_echo_n "(cached) " >&6
11605 if test "$cross_compiling" = yes; then :
11606 ac_fn_c_check_decl
"$LINENO" "getopt_clip" "ac_cv_have_decl_getopt_clip" "#include <getopt.h>
11608 if test "x$ac_cv_have_decl_getopt_clip" = x
""yes; then :
11609 gl_cv_func_gnu_getopt
=no
11611 gl_cv_func_gnu_getopt
=yes
11615 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
11616 /* end confdefs.h. */
11617 #include <getopt.h>
11623 myargv[0] = "conftest";
11626 return getopt (2, myargv, "+a") != '?';
11632 if ac_fn_c_try_run
"$LINENO"; then :
11633 gl_cv_func_gnu_getopt
=yes
11635 gl_cv_func_gnu_getopt
=no
11637 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
11638 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
11642 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_gnu_getopt" >&5
11643 $as_echo "$gl_cv_func_gnu_getopt" >&6; }
11644 if test "$gl_cv_func_gnu_getopt" = "no"; then
11651 if test -n "$GETOPT_H"; then :
11656 $as_echo "#define __GETOPT_PREFIX rpl_" >>confdefs.h
11661 GETOPTOBJS
='getopt.o getopt1.o'
11667 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether getpgrp requires zero arguments" >&5
11668 $as_echo_n "checking whether getpgrp requires zero arguments... " >&6; }
11669 if test "${ac_cv_func_getpgrp_void+set}" = set; then :
11670 $as_echo_n "(cached) " >&6
11672 # Use it with a single arg.
11673 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
11674 /* end confdefs.h. */
11675 $ac_includes_default
11684 if ac_fn_c_try_compile
"$LINENO"; then :
11685 ac_cv_func_getpgrp_void
=no
11687 ac_cv_func_getpgrp_void
=yes
11689 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
11692 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_getpgrp_void" >&5
11693 $as_echo "$ac_cv_func_getpgrp_void" >&6; }
11694 if test $ac_cv_func_getpgrp_void = yes; then
11696 $as_echo "#define GETPGRP_VOID 1" >>confdefs.h
11701 for ac_func
in strftime
11703 ac_fn_c_check_func
"$LINENO" "strftime" "ac_cv_func_strftime"
11704 if test "x$ac_cv_func_strftime" = x
""yes; then :
11705 cat >>confdefs.h
<<_ACEOF
11706 #define HAVE_STRFTIME 1
11710 # strftime is in -lintl on SCO UNIX.
11711 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for strftime in -lintl" >&5
11712 $as_echo_n "checking for strftime in -lintl... " >&6; }
11713 if test "${ac_cv_lib_intl_strftime+set}" = set; then :
11714 $as_echo_n "(cached) " >&6
11716 ac_check_lib_save_LIBS
=$LIBS
11717 LIBS
="-lintl $LIBS"
11718 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
11719 /* end confdefs.h. */
11721 /* Override any GCC internal prototype to avoid an error.
11722 Use char because int might match the return type of a GCC
11723 builtin and then its argument prototype would still apply. */
11731 return strftime ();
11736 if ac_fn_c_try_link
"$LINENO"; then :
11737 ac_cv_lib_intl_strftime
=yes
11739 ac_cv_lib_intl_strftime
=no
11741 rm -f core conftest.err conftest.
$ac_objext \
11742 conftest
$ac_exeext conftest.
$ac_ext
11743 LIBS
=$ac_check_lib_save_LIBS
11745 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_intl_strftime" >&5
11746 $as_echo "$ac_cv_lib_intl_strftime" >&6; }
11747 if test "x$ac_cv_lib_intl_strftime" = x
""yes; then :
11748 $as_echo "#define HAVE_STRFTIME 1" >>confdefs.h
11750 LIBS
="-lintl $LIBS"
11758 for ac_func
in grantpt
11760 ac_fn_c_check_func
"$LINENO" "grantpt" "ac_cv_func_grantpt"
11761 if test "x$ac_cv_func_grantpt" = x
""yes; then :
11762 cat >>confdefs.h
<<_ACEOF
11763 #define HAVE_GRANTPT 1
11770 # PTY-related GNU extensions.
11771 for ac_func
in getpt
11773 ac_fn_c_check_func
"$LINENO" "getpt" "ac_cv_func_getpt"
11774 if test "x$ac_cv_func_getpt" = x
""yes; then :
11775 cat >>confdefs.h
<<_ACEOF
11776 #define HAVE_GETPT 1
11783 # Check this now, so that we will NOT find the above functions in ncurses.
11784 # That is because we have not set up to link ncurses in lib-src.
11785 # It's better to believe a function is not available
11786 # than to expect to find it in ncurses.
11787 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for tparm in -lncurses" >&5
11788 $as_echo_n "checking for tparm in -lncurses... " >&6; }
11789 if test "${ac_cv_lib_ncurses_tparm+set}" = set; then :
11790 $as_echo_n "(cached) " >&6
11792 ac_check_lib_save_LIBS
=$LIBS
11793 LIBS
="-lncurses $LIBS"
11794 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
11795 /* end confdefs.h. */
11797 /* Override any GCC internal prototype to avoid an error.
11798 Use char because int might match the return type of a GCC
11799 builtin and then its argument prototype would still apply. */
11812 if ac_fn_c_try_link
"$LINENO"; then :
11813 ac_cv_lib_ncurses_tparm
=yes
11815 ac_cv_lib_ncurses_tparm
=no
11817 rm -f core conftest.err conftest.
$ac_objext \
11818 conftest
$ac_exeext conftest.
$ac_ext
11819 LIBS
=$ac_check_lib_save_LIBS
11821 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_ncurses_tparm" >&5
11822 $as_echo "$ac_cv_lib_ncurses_tparm" >&6; }
11823 if test "x$ac_cv_lib_ncurses_tparm" = x
""yes; then :
11824 cat >>confdefs.h
<<_ACEOF
11825 #define HAVE_LIBNCURSES 1
11828 LIBS
="-lncurses $LIBS"
11833 # Do we have res_init, for detecting changes in /etc/resolv.conf?
11836 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
11837 /* end confdefs.h. */
11838 #include <netinet/in.h>
11839 #include <arpa/nameser.h>
11840 #include <resolv.h>
11849 if ac_fn_c_try_link
"$LINENO"; then :
11854 rm -f core conftest.err conftest.
$ac_objext \
11855 conftest
$ac_exeext conftest.
$ac_ext
11856 if test "$have_res_init" = no
; then
11858 LIBS
="$LIBS -lresolv"
11859 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for res_init with -lresolv" >&5
11860 $as_echo_n "checking for res_init with -lresolv... " >&6; }
11861 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
11862 /* end confdefs.h. */
11863 #include <netinet/in.h>
11864 #include <arpa/nameser.h>
11865 #include <resolv.h>
11874 if ac_fn_c_try_link
"$LINENO"; then :
11879 rm -f core conftest.err conftest.
$ac_objext \
11880 conftest
$ac_exeext conftest.
$ac_ext
11881 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_res_init" >&5
11882 $as_echo "$have_res_init" >&6; }
11883 if test "$have_res_init" = yes ; then
11889 if test "$have_res_init" = yes; then
11891 $as_echo "#define HAVE_RES_INIT 1" >>confdefs.h
11895 # Do we need the Hesiod library to provide the support routines?
11896 if test "$with_hesiod" != no
; then
11897 # Don't set $LIBS here -- see comments above.
11898 ac_fn_c_check_func
"$LINENO" "res_send" "ac_cv_func_res_send"
11899 if test "x$ac_cv_func_res_send" = x
""yes; then :
11902 ac_fn_c_check_func
"$LINENO" "__res_send" "ac_cv_func___res_send"
11903 if test "x$ac_cv_func___res_send" = x
""yes; then :
11906 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for res_send in -lresolv" >&5
11907 $as_echo_n "checking for res_send in -lresolv... " >&6; }
11908 if test "${ac_cv_lib_resolv_res_send+set}" = set; then :
11909 $as_echo_n "(cached) " >&6
11911 ac_check_lib_save_LIBS
=$LIBS
11912 LIBS
="-lresolv $LIBS"
11913 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
11914 /* end confdefs.h. */
11916 /* Override any GCC internal prototype to avoid an error.
11917 Use char because int might match the return type of a GCC
11918 builtin and then its argument prototype would still apply. */
11926 return res_send ();
11931 if ac_fn_c_try_link
"$LINENO"; then :
11932 ac_cv_lib_resolv_res_send
=yes
11934 ac_cv_lib_resolv_res_send
=no
11936 rm -f core conftest.err conftest.
$ac_objext \
11937 conftest
$ac_exeext conftest.
$ac_ext
11938 LIBS
=$ac_check_lib_save_LIBS
11940 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_resolv_res_send" >&5
11941 $as_echo "$ac_cv_lib_resolv_res_send" >&6; }
11942 if test "x$ac_cv_lib_resolv_res_send" = x
""yes; then :
11945 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for __res_send in -lresolv" >&5
11946 $as_echo_n "checking for __res_send in -lresolv... " >&6; }
11947 if test "${ac_cv_lib_resolv___res_send+set}" = set; then :
11948 $as_echo_n "(cached) " >&6
11950 ac_check_lib_save_LIBS
=$LIBS
11951 LIBS
="-lresolv $LIBS"
11952 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
11953 /* end confdefs.h. */
11955 /* Override any GCC internal prototype to avoid an error.
11956 Use char because int might match the return type of a GCC
11957 builtin and then its argument prototype would still apply. */
11961 char __res_send ();
11965 return __res_send ();
11970 if ac_fn_c_try_link
"$LINENO"; then :
11971 ac_cv_lib_resolv___res_send
=yes
11973 ac_cv_lib_resolv___res_send
=no
11975 rm -f core conftest.err conftest.
$ac_objext \
11976 conftest
$ac_exeext conftest.
$ac_ext
11977 LIBS
=$ac_check_lib_save_LIBS
11979 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_resolv___res_send" >&5
11980 $as_echo "$ac_cv_lib_resolv___res_send" >&6; }
11981 if test "x$ac_cv_lib_resolv___res_send" = x
""yes; then :
11991 if test "$resolv" = yes ; then
11996 ac_fn_c_check_func
"$LINENO" "hes_getmailhost" "ac_cv_func_hes_getmailhost"
11997 if test "x$ac_cv_func_hes_getmailhost" = x
""yes; then :
12000 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for hes_getmailhost in -lhesiod" >&5
12001 $as_echo_n "checking for hes_getmailhost in -lhesiod... " >&6; }
12002 if test "${ac_cv_lib_hesiod_hes_getmailhost+set}" = set; then :
12003 $as_echo_n "(cached) " >&6
12005 ac_check_lib_save_LIBS
=$LIBS
12006 LIBS
="-lhesiod $RESOLVLIB $LIBS"
12007 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
12008 /* end confdefs.h. */
12010 /* Override any GCC internal prototype to avoid an error.
12011 Use char because int might match the return type of a GCC
12012 builtin and then its argument prototype would still apply. */
12016 char hes_getmailhost ();
12020 return hes_getmailhost ();
12025 if ac_fn_c_try_link
"$LINENO"; then :
12026 ac_cv_lib_hesiod_hes_getmailhost
=yes
12028 ac_cv_lib_hesiod_hes_getmailhost
=no
12030 rm -f core conftest.err conftest.
$ac_objext \
12031 conftest
$ac_exeext conftest.
$ac_ext
12032 LIBS
=$ac_check_lib_save_LIBS
12034 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_hesiod_hes_getmailhost" >&5
12035 $as_echo "$ac_cv_lib_hesiod_hes_getmailhost" >&6; }
12036 if test "x$ac_cv_lib_hesiod_hes_getmailhost" = x
""yes; then :
12038 $as_echo "#define HAVE_LIBHESIOD 1" >>confdefs.h
12048 # Do we need libresolv (due to res_init or Hesiod)?
12049 if test "$resolv" = yes ; then
12051 $as_echo "#define HAVE_LIBRESOLV 1" >>confdefs.h
12055 # These tell us which Kerberos-related libraries to use.
12056 if test "${with_kerberos}" != no
; then
12057 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for com_err in -lcom_err" >&5
12058 $as_echo_n "checking for com_err in -lcom_err... " >&6; }
12059 if test "${ac_cv_lib_com_err_com_err+set}" = set; then :
12060 $as_echo_n "(cached) " >&6
12062 ac_check_lib_save_LIBS
=$LIBS
12063 LIBS
="-lcom_err $LIBS"
12064 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
12065 /* end confdefs.h. */
12067 /* Override any GCC internal prototype to avoid an error.
12068 Use char because int might match the return type of a GCC
12069 builtin and then its argument prototype would still apply. */
12082 if ac_fn_c_try_link
"$LINENO"; then :
12083 ac_cv_lib_com_err_com_err
=yes
12085 ac_cv_lib_com_err_com_err
=no
12087 rm -f core conftest.err conftest.
$ac_objext \
12088 conftest
$ac_exeext conftest.
$ac_ext
12089 LIBS
=$ac_check_lib_save_LIBS
12091 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_com_err_com_err" >&5
12092 $as_echo "$ac_cv_lib_com_err_com_err" >&6; }
12093 if test "x$ac_cv_lib_com_err_com_err" = x
""yes; then :
12094 cat >>confdefs.h
<<_ACEOF
12095 #define HAVE_LIBCOM_ERR 1
12098 LIBS
="-lcom_err $LIBS"
12102 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for mit_des_cbc_encrypt in -lk5crypto" >&5
12103 $as_echo_n "checking for mit_des_cbc_encrypt in -lk5crypto... " >&6; }
12104 if test "${ac_cv_lib_k5crypto_mit_des_cbc_encrypt+set}" = set; then :
12105 $as_echo_n "(cached) " >&6
12107 ac_check_lib_save_LIBS
=$LIBS
12108 LIBS
="-lk5crypto $LIBS"
12109 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
12110 /* end confdefs.h. */
12112 /* Override any GCC internal prototype to avoid an error.
12113 Use char because int might match the return type of a GCC
12114 builtin and then its argument prototype would still apply. */
12118 char mit_des_cbc_encrypt ();
12122 return mit_des_cbc_encrypt ();
12127 if ac_fn_c_try_link
"$LINENO"; then :
12128 ac_cv_lib_k5crypto_mit_des_cbc_encrypt
=yes
12130 ac_cv_lib_k5crypto_mit_des_cbc_encrypt
=no
12132 rm -f core conftest.err conftest.
$ac_objext \
12133 conftest
$ac_exeext conftest.
$ac_ext
12134 LIBS
=$ac_check_lib_save_LIBS
12136 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_k5crypto_mit_des_cbc_encrypt" >&5
12137 $as_echo "$ac_cv_lib_k5crypto_mit_des_cbc_encrypt" >&6; }
12138 if test "x$ac_cv_lib_k5crypto_mit_des_cbc_encrypt" = x
""yes; then :
12139 cat >>confdefs.h
<<_ACEOF
12140 #define HAVE_LIBK5CRYPTO 1
12143 LIBS
="-lk5crypto $LIBS"
12147 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for mit_des_cbc_encrypt in -lcrypto" >&5
12148 $as_echo_n "checking for mit_des_cbc_encrypt in -lcrypto... " >&6; }
12149 if test "${ac_cv_lib_crypto_mit_des_cbc_encrypt+set}" = set; then :
12150 $as_echo_n "(cached) " >&6
12152 ac_check_lib_save_LIBS
=$LIBS
12153 LIBS
="-lcrypto $LIBS"
12154 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
12155 /* end confdefs.h. */
12157 /* Override any GCC internal prototype to avoid an error.
12158 Use char because int might match the return type of a GCC
12159 builtin and then its argument prototype would still apply. */
12163 char mit_des_cbc_encrypt ();
12167 return mit_des_cbc_encrypt ();
12172 if ac_fn_c_try_link
"$LINENO"; then :
12173 ac_cv_lib_crypto_mit_des_cbc_encrypt
=yes
12175 ac_cv_lib_crypto_mit_des_cbc_encrypt
=no
12177 rm -f core conftest.err conftest.
$ac_objext \
12178 conftest
$ac_exeext conftest.
$ac_ext
12179 LIBS
=$ac_check_lib_save_LIBS
12181 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_crypto_mit_des_cbc_encrypt" >&5
12182 $as_echo "$ac_cv_lib_crypto_mit_des_cbc_encrypt" >&6; }
12183 if test "x$ac_cv_lib_crypto_mit_des_cbc_encrypt" = x
""yes; then :
12184 cat >>confdefs.h
<<_ACEOF
12185 #define HAVE_LIBCRYPTO 1
12188 LIBS
="-lcrypto $LIBS"
12192 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for krb5_init_context in -lkrb5" >&5
12193 $as_echo_n "checking for krb5_init_context in -lkrb5... " >&6; }
12194 if test "${ac_cv_lib_krb5_krb5_init_context+set}" = set; then :
12195 $as_echo_n "(cached) " >&6
12197 ac_check_lib_save_LIBS
=$LIBS
12198 LIBS
="-lkrb5 $LIBS"
12199 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
12200 /* end confdefs.h. */
12202 /* Override any GCC internal prototype to avoid an error.
12203 Use char because int might match the return type of a GCC
12204 builtin and then its argument prototype would still apply. */
12208 char krb5_init_context ();
12212 return krb5_init_context ();
12217 if ac_fn_c_try_link
"$LINENO"; then :
12218 ac_cv_lib_krb5_krb5_init_context
=yes
12220 ac_cv_lib_krb5_krb5_init_context
=no
12222 rm -f core conftest.err conftest.
$ac_objext \
12223 conftest
$ac_exeext conftest.
$ac_ext
12224 LIBS
=$ac_check_lib_save_LIBS
12226 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_krb5_krb5_init_context" >&5
12227 $as_echo "$ac_cv_lib_krb5_krb5_init_context" >&6; }
12228 if test "x$ac_cv_lib_krb5_krb5_init_context" = x
""yes; then :
12229 cat >>confdefs.h
<<_ACEOF
12230 #define HAVE_LIBKRB5 1
12233 LIBS
="-lkrb5 $LIBS"
12237 if test "${with_kerberos5}" = no
; then
12238 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for des_cbc_encrypt in -ldes425" >&5
12239 $as_echo_n "checking for des_cbc_encrypt in -ldes425... " >&6; }
12240 if test "${ac_cv_lib_des425_des_cbc_encrypt+set}" = set; then :
12241 $as_echo_n "(cached) " >&6
12243 ac_check_lib_save_LIBS
=$LIBS
12244 LIBS
="-ldes425 $LIBS"
12245 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
12246 /* end confdefs.h. */
12248 /* Override any GCC internal prototype to avoid an error.
12249 Use char because int might match the return type of a GCC
12250 builtin and then its argument prototype would still apply. */
12254 char des_cbc_encrypt ();
12258 return des_cbc_encrypt ();
12263 if ac_fn_c_try_link
"$LINENO"; then :
12264 ac_cv_lib_des425_des_cbc_encrypt
=yes
12266 ac_cv_lib_des425_des_cbc_encrypt
=no
12268 rm -f core conftest.err conftest.
$ac_objext \
12269 conftest
$ac_exeext conftest.
$ac_ext
12270 LIBS
=$ac_check_lib_save_LIBS
12272 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_des425_des_cbc_encrypt" >&5
12273 $as_echo "$ac_cv_lib_des425_des_cbc_encrypt" >&6; }
12274 if test "x$ac_cv_lib_des425_des_cbc_encrypt" = x
""yes; then :
12275 cat >>confdefs.h
<<_ACEOF
12276 #define HAVE_LIBDES425 1
12279 LIBS
="-ldes425 $LIBS"
12282 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for des_cbc_encrypt in -ldes" >&5
12283 $as_echo_n "checking for des_cbc_encrypt in -ldes... " >&6; }
12284 if test "${ac_cv_lib_des_des_cbc_encrypt+set}" = set; then :
12285 $as_echo_n "(cached) " >&6
12287 ac_check_lib_save_LIBS
=$LIBS
12289 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
12290 /* end confdefs.h. */
12292 /* Override any GCC internal prototype to avoid an error.
12293 Use char because int might match the return type of a GCC
12294 builtin and then its argument prototype would still apply. */
12298 char des_cbc_encrypt ();
12302 return des_cbc_encrypt ();
12307 if ac_fn_c_try_link
"$LINENO"; then :
12308 ac_cv_lib_des_des_cbc_encrypt
=yes
12310 ac_cv_lib_des_des_cbc_encrypt
=no
12312 rm -f core conftest.err conftest.
$ac_objext \
12313 conftest
$ac_exeext conftest.
$ac_ext
12314 LIBS
=$ac_check_lib_save_LIBS
12316 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_des_des_cbc_encrypt" >&5
12317 $as_echo "$ac_cv_lib_des_des_cbc_encrypt" >&6; }
12318 if test "x$ac_cv_lib_des_des_cbc_encrypt" = x
""yes; then :
12319 cat >>confdefs.h
<<_ACEOF
12320 #define HAVE_LIBDES 1
12329 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for krb_get_cred in -lkrb4" >&5
12330 $as_echo_n "checking for krb_get_cred in -lkrb4... " >&6; }
12331 if test "${ac_cv_lib_krb4_krb_get_cred+set}" = set; then :
12332 $as_echo_n "(cached) " >&6
12334 ac_check_lib_save_LIBS
=$LIBS
12335 LIBS
="-lkrb4 $LIBS"
12336 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
12337 /* end confdefs.h. */
12339 /* Override any GCC internal prototype to avoid an error.
12340 Use char because int might match the return type of a GCC
12341 builtin and then its argument prototype would still apply. */
12345 char krb_get_cred ();
12349 return krb_get_cred ();
12354 if ac_fn_c_try_link
"$LINENO"; then :
12355 ac_cv_lib_krb4_krb_get_cred
=yes
12357 ac_cv_lib_krb4_krb_get_cred
=no
12359 rm -f core conftest.err conftest.
$ac_objext \
12360 conftest
$ac_exeext conftest.
$ac_ext
12361 LIBS
=$ac_check_lib_save_LIBS
12363 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_krb4_krb_get_cred" >&5
12364 $as_echo "$ac_cv_lib_krb4_krb_get_cred" >&6; }
12365 if test "x$ac_cv_lib_krb4_krb_get_cred" = x
""yes; then :
12366 cat >>confdefs.h
<<_ACEOF
12367 #define HAVE_LIBKRB4 1
12370 LIBS
="-lkrb4 $LIBS"
12373 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for krb_get_cred in -lkrb" >&5
12374 $as_echo_n "checking for krb_get_cred in -lkrb... " >&6; }
12375 if test "${ac_cv_lib_krb_krb_get_cred+set}" = set; then :
12376 $as_echo_n "(cached) " >&6
12378 ac_check_lib_save_LIBS
=$LIBS
12380 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
12381 /* end confdefs.h. */
12383 /* Override any GCC internal prototype to avoid an error.
12384 Use char because int might match the return type of a GCC
12385 builtin and then its argument prototype would still apply. */
12389 char krb_get_cred ();
12393 return krb_get_cred ();
12398 if ac_fn_c_try_link
"$LINENO"; then :
12399 ac_cv_lib_krb_krb_get_cred
=yes
12401 ac_cv_lib_krb_krb_get_cred
=no
12403 rm -f core conftest.err conftest.
$ac_objext \
12404 conftest
$ac_exeext conftest.
$ac_ext
12405 LIBS
=$ac_check_lib_save_LIBS
12407 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_krb_krb_get_cred" >&5
12408 $as_echo "$ac_cv_lib_krb_krb_get_cred" >&6; }
12409 if test "x$ac_cv_lib_krb_krb_get_cred" = x
""yes; then :
12410 cat >>confdefs.h
<<_ACEOF
12411 #define HAVE_LIBKRB 1
12422 if test "${with_kerberos5}" != no
; then
12423 for ac_header
in krb5.h
12425 ac_fn_c_check_header_mongrel
"$LINENO" "krb5.h" "ac_cv_header_krb5_h" "$ac_includes_default"
12426 if test "x$ac_cv_header_krb5_h" = x
""yes; then :
12427 cat >>confdefs.h
<<_ACEOF
12428 #define HAVE_KRB5_H 1
12430 ac_fn_c_check_member
"$LINENO" "krb5_error" "text" "ac_cv_member_krb5_error_text" "#include <krb5.h>
12432 if test "x$ac_cv_member_krb5_error_text" = x
""yes; then :
12434 cat >>confdefs.h
<<_ACEOF
12435 #define HAVE_KRB5_ERROR_TEXT 1
12440 ac_fn_c_check_member
"$LINENO" "krb5_error" "e_text" "ac_cv_member_krb5_error_e_text" "#include <krb5.h>
12442 if test "x$ac_cv_member_krb5_error_e_text" = x
""yes; then :
12444 cat >>confdefs.h
<<_ACEOF
12445 #define HAVE_KRB5_ERROR_E_TEXT 1
12456 for ac_header
in des.h
12458 ac_fn_c_check_header_mongrel
"$LINENO" "des.h" "ac_cv_header_des_h" "$ac_includes_default"
12459 if test "x$ac_cv_header_des_h" = x
""yes; then :
12460 cat >>confdefs.h
<<_ACEOF
12461 #define HAVE_DES_H 1
12465 for ac_header
in kerberosIV
/des.h
12467 ac_fn_c_check_header_mongrel
"$LINENO" "kerberosIV/des.h" "ac_cv_header_kerberosIV_des_h" "$ac_includes_default"
12468 if test "x$ac_cv_header_kerberosIV_des_h" = x
""yes; then :
12469 cat >>confdefs.h
<<_ACEOF
12470 #define HAVE_KERBEROSIV_DES_H 1
12474 for ac_header
in kerberos
/des.h
12476 ac_fn_c_check_header_mongrel
"$LINENO" "kerberos/des.h" "ac_cv_header_kerberos_des_h" "$ac_includes_default"
12477 if test "x$ac_cv_header_kerberos_des_h" = x
""yes; then :
12478 cat >>confdefs.h
<<_ACEOF
12479 #define HAVE_KERBEROS_DES_H 1
12494 for ac_header
in krb.h
12496 ac_fn_c_check_header_mongrel
"$LINENO" "krb.h" "ac_cv_header_krb_h" "$ac_includes_default"
12497 if test "x$ac_cv_header_krb_h" = x
""yes; then :
12498 cat >>confdefs.h
<<_ACEOF
12499 #define HAVE_KRB_H 1
12503 for ac_header
in kerberosIV
/krb.h
12505 ac_fn_c_check_header_mongrel
"$LINENO" "kerberosIV/krb.h" "ac_cv_header_kerberosIV_krb_h" "$ac_includes_default"
12506 if test "x$ac_cv_header_kerberosIV_krb_h" = x
""yes; then :
12507 cat >>confdefs.h
<<_ACEOF
12508 #define HAVE_KERBEROSIV_KRB_H 1
12512 for ac_header
in kerberos
/krb.h
12514 ac_fn_c_check_header_mongrel
"$LINENO" "kerberos/krb.h" "ac_cv_header_kerberos_krb_h" "$ac_includes_default"
12515 if test "x$ac_cv_header_kerberos_krb_h" = x
""yes; then :
12516 cat >>confdefs.h
<<_ACEOF
12517 #define HAVE_KERBEROS_KRB_H 1
12533 for ac_header
in com_err.h
12535 ac_fn_c_check_header_mongrel
"$LINENO" "com_err.h" "ac_cv_header_com_err_h" "$ac_includes_default"
12536 if test "x$ac_cv_header_com_err_h" = x
""yes; then :
12537 cat >>confdefs.h
<<_ACEOF
12538 #define HAVE_COM_ERR_H 1
12547 # Solaris requires -lintl if you want strerror (which calls dgettext)
12548 # to return localized messages.
12549 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dgettext in -lintl" >&5
12550 $as_echo_n "checking for dgettext in -lintl... " >&6; }
12551 if test "${ac_cv_lib_intl_dgettext+set}" = set; then :
12552 $as_echo_n "(cached) " >&6
12554 ac_check_lib_save_LIBS
=$LIBS
12555 LIBS
="-lintl $LIBS"
12556 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
12557 /* end confdefs.h. */
12559 /* Override any GCC internal prototype to avoid an error.
12560 Use char because int might match the return type of a GCC
12561 builtin and then its argument prototype would still apply. */
12569 return dgettext ();
12574 if ac_fn_c_try_link
"$LINENO"; then :
12575 ac_cv_lib_intl_dgettext
=yes
12577 ac_cv_lib_intl_dgettext
=no
12579 rm -f core conftest.err conftest.
$ac_objext \
12580 conftest
$ac_exeext conftest.
$ac_ext
12581 LIBS
=$ac_check_lib_save_LIBS
12583 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_intl_dgettext" >&5
12584 $as_echo "$ac_cv_lib_intl_dgettext" >&6; }
12585 if test "x$ac_cv_lib_intl_dgettext" = x
""yes; then :
12586 cat >>confdefs.h
<<_ACEOF
12587 #define HAVE_LIBINTL 1
12590 LIBS
="-lintl $LIBS"
12595 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether localtime caches TZ" >&5
12596 $as_echo_n "checking whether localtime caches TZ... " >&6; }
12597 if test "${emacs_cv_localtime_cache+set}" = set; then :
12598 $as_echo_n "(cached) " >&6
12600 if test x
$ac_cv_func_tzset = xyes
; then
12601 if test "$cross_compiling" = yes; then :
12602 # If we have tzset, assume the worst when cross-compiling.
12603 emacs_cv_localtime_cache
=yes
12605 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
12606 /* end confdefs.h. */
12608 extern char **environ;
12612 for (to = from = environ; (*to = *from); from++)
12613 if (! (to[0][0] == 'T' && to[0][1] == 'Z' && to[0][2] == '='))
12616 char TZ_GMT0[] = "TZ=GMT0";
12617 char TZ_PST8[] = "TZ=PST8";
12620 time_t now = time ((time_t *) 0);
12621 int hour_GMT0, hour_unset;
12622 if (putenv (TZ_GMT0) != 0)
12624 hour_GMT0 = localtime (&now)->tm_hour;
12626 hour_unset = localtime (&now)->tm_hour;
12627 if (putenv (TZ_PST8) != 0)
12629 if (localtime (&now)->tm_hour == hour_GMT0)
12632 if (localtime (&now)->tm_hour != hour_unset)
12637 if ac_fn_c_try_run
"$LINENO"; then :
12638 emacs_cv_localtime_cache
=no
12640 emacs_cv_localtime_cache
=yes
12642 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
12643 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
12647 # If we lack tzset, report that localtime does not cache TZ,
12648 # since we can't invalidate the cache if we don't have tzset.
12649 emacs_cv_localtime_cache
=no
12652 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $emacs_cv_localtime_cache" >&5
12653 $as_echo "$emacs_cv_localtime_cache" >&6; }
12654 if test $emacs_cv_localtime_cache = yes; then
12656 $as_echo "#define LOCALTIME_CACHE 1" >>confdefs.h
12660 if test "x$HAVE_TIMEVAL" = xyes
; then
12661 for ac_func
in gettimeofday
12663 ac_fn_c_check_func
"$LINENO" "gettimeofday" "ac_cv_func_gettimeofday"
12664 if test "x$ac_cv_func_gettimeofday" = x
""yes; then :
12665 cat >>confdefs.h
<<_ACEOF
12666 #define HAVE_GETTIMEOFDAY 1
12672 if test $ac_cv_func_gettimeofday = yes; then
12673 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether gettimeofday can accept two arguments" >&5
12674 $as_echo_n "checking whether gettimeofday can accept two arguments... " >&6; }
12675 if test "${emacs_cv_gettimeofday_two_arguments+set}" = set; then :
12676 $as_echo_n "(cached) " >&6
12678 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
12679 /* end confdefs.h. */
12681 #ifdef TIME_WITH_SYS_TIME
12682 #include <sys/time.h>
12685 #ifdef HAVE_SYS_TIME_H
12686 #include <sys/time.h>
12694 struct timeval time;
12695 gettimeofday (&time, 0);
12700 if ac_fn_c_try_compile
"$LINENO"; then :
12701 emacs_cv_gettimeofday_two_arguments
=yes
12703 emacs_cv_gettimeofday_two_arguments
=no
12705 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
12707 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $emacs_cv_gettimeofday_two_arguments" >&5
12708 $as_echo "$emacs_cv_gettimeofday_two_arguments" >&6; }
12709 if test $emacs_cv_gettimeofday_two_arguments = no
; then
12711 $as_echo "#define GETTIMEOFDAY_ONE_ARGUMENT 1" >>confdefs.h
12718 ac_fn_c_check_func
"$LINENO" "socket" "ac_cv_func_socket"
12719 if test "x$ac_cv_func_socket" = x
""yes; then :
12725 if test $ok_so_far = yes; then
12726 ac_fn_c_check_header_mongrel
"$LINENO" "netinet/in.h" "ac_cv_header_netinet_in_h" "$ac_includes_default"
12727 if test "x$ac_cv_header_netinet_in_h" = x
""yes; then :
12735 if test $ok_so_far = yes; then
12736 ac_fn_c_check_header_mongrel
"$LINENO" "arpa/inet.h" "ac_cv_header_arpa_inet_h" "$ac_includes_default"
12737 if test "x$ac_cv_header_arpa_inet_h" = x
""yes; then :
12745 if test $ok_so_far = yes; then
12747 $as_echo "#define HAVE_INET_SOCKETS 1" >>confdefs.h
12751 for ac_header
in sys
/ioctl.h
12753 ac_fn_c_check_header_mongrel
"$LINENO" "sys/ioctl.h" "ac_cv_header_sys_ioctl_h" "$ac_includes_default"
12754 if test "x$ac_cv_header_sys_ioctl_h" = x
""yes; then :
12755 cat >>confdefs.h
<<_ACEOF
12756 #define HAVE_SYS_IOCTL_H 1
12764 if test -f /usr
/lpp
/X11
/bin
/smt.exp
; then
12766 $as_echo "#define HAVE_AIX_SMT_EXP 1" >>confdefs.h
12770 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether system supports dynamic ptys" >&5
12771 $as_echo_n "checking whether system supports dynamic ptys... " >&6; }
12772 if test -d /dev
/pts
&& ls -d /dev
/ptmx
> /dev
/null
2>&1 ; then
12773 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
12774 $as_echo "yes" >&6; }
12776 $as_echo "#define HAVE_DEV_PTMX 1" >>confdefs.h
12779 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12780 $as_echo "no" >&6; }
12783 ac_fn_c_check_type
"$LINENO" "pid_t" "ac_cv_type_pid_t" "$ac_includes_default"
12784 if test "x$ac_cv_type_pid_t" = x
""yes; then :
12788 cat >>confdefs.h
<<_ACEOF
12794 for ac_header
in vfork.h
12796 ac_fn_c_check_header_mongrel
"$LINENO" "vfork.h" "ac_cv_header_vfork_h" "$ac_includes_default"
12797 if test "x$ac_cv_header_vfork_h" = x
""yes; then :
12798 cat >>confdefs.h
<<_ACEOF
12799 #define HAVE_VFORK_H 1
12806 for ac_func
in fork vfork
12808 as_ac_var
=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
12809 ac_fn_c_check_func
"$LINENO" "$ac_func" "$as_ac_var"
12810 eval as_val
=\$
$as_ac_var
12811 if test "x$as_val" = x
""yes; then :
12812 cat >>confdefs.h
<<_ACEOF
12813 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
12819 if test "x$ac_cv_func_fork" = xyes
; then
12820 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working fork" >&5
12821 $as_echo_n "checking for working fork... " >&6; }
12822 if test "${ac_cv_func_fork_works+set}" = set; then :
12823 $as_echo_n "(cached) " >&6
12825 if test "$cross_compiling" = yes; then :
12826 ac_cv_func_fork_works
=cross
12828 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
12829 /* end confdefs.h. */
12830 $ac_includes_default
12835 /* By Ruediger Kuhlmann. */
12836 return fork () < 0;
12842 if ac_fn_c_try_run
"$LINENO"; then :
12843 ac_cv_func_fork_works
=yes
12845 ac_cv_func_fork_works
=no
12847 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
12848 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
12852 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_fork_works" >&5
12853 $as_echo "$ac_cv_func_fork_works" >&6; }
12856 ac_cv_func_fork_works
=$ac_cv_func_fork
12858 if test "x$ac_cv_func_fork_works" = xcross
; then
12860 *-*-amigaos* |
*-*-msdosdjgpp*)
12861 # Override, as these systems have only a dummy fork() stub
12862 ac_cv_func_fork_works
=no
12865 ac_cv_func_fork_works
=yes
12868 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: result $ac_cv_func_fork_works guessed because of cross compilation" >&5
12869 $as_echo "$as_me: WARNING: result $ac_cv_func_fork_works guessed because of cross compilation" >&2;}
12871 ac_cv_func_vfork_works
=$ac_cv_func_vfork
12872 if test "x$ac_cv_func_vfork" = xyes
; then
12873 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working vfork" >&5
12874 $as_echo_n "checking for working vfork... " >&6; }
12875 if test "${ac_cv_func_vfork_works+set}" = set; then :
12876 $as_echo_n "(cached) " >&6
12878 if test "$cross_compiling" = yes; then :
12879 ac_cv_func_vfork_works
=cross
12881 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
12882 /* end confdefs.h. */
12883 /* Thanks to Paul Eggert for this test. */
12884 $ac_includes_default
12885 #include <sys/wait.h>
12886 #ifdef HAVE_VFORK_H
12887 # include <vfork.h>
12889 /* On some sparc systems, changes by the child to local and incoming
12890 argument registers are propagated back to the parent. The compiler
12891 is told about this with #include <vfork.h>, but some compilers
12892 (e.g. gcc -O) don't grok <vfork.h>. Test for this by using a
12893 static variable whose address is put into a register that is
12894 clobbered by the vfork. */
12897 sparc_address_test (int arg)
12899 sparc_address_test (arg) int arg;
12902 static pid_t child;
12920 pid_t parent = getpid ();
12923 sparc_address_test (0);
12928 /* Here is another test for sparc vfork register problems. This
12929 test uses lots of local variables, at least as many local
12930 variables as main has allocated so far including compiler
12931 temporaries. 4 locals are enough for gcc 1.40.3 on a Solaris
12932 4.1.3 sparc, but we use 8 to be safe. A buggy compiler should
12933 reuse the register of parent for one of the local variables,
12934 since it will think that parent can't possibly be used any more
12935 in this routine. Assigning to the local variable will thus
12936 munge parent in the parent process. */
12938 p = getpid(), p1 = getpid(), p2 = getpid(), p3 = getpid(),
12939 p4 = getpid(), p5 = getpid(), p6 = getpid(), p7 = getpid();
12940 /* Convince the compiler that p..p7 are live; otherwise, it might
12941 use the same hardware register for all 8 local variables. */
12942 if (p != p1 || p != p2 || p != p3 || p != p4
12943 || p != p5 || p != p6 || p != p7)
12946 /* On some systems (e.g. IRIX 3.3), vfork doesn't separate parent
12947 from child file descriptors. If the child closes a descriptor
12948 before it execs or exits, this munges the parent's descriptor
12949 as well. Test for this by closing stdout in the child. */
12950 _exit(close(fileno(stdout)) != 0);
12955 while (wait(&status) != child)
12958 /* Was there some problem with vforking? */
12961 /* Did the child fail? (This shouldn't happen.) */
12964 /* Did the vfork/compiler bug occur? */
12965 || parent != getpid()
12967 /* Did the file descriptor bug occur? */
12968 || fstat(fileno(stdout), &st) != 0
12973 if ac_fn_c_try_run
"$LINENO"; then :
12974 ac_cv_func_vfork_works
=yes
12976 ac_cv_func_vfork_works
=no
12978 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
12979 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
12983 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_vfork_works" >&5
12984 $as_echo "$ac_cv_func_vfork_works" >&6; }
12987 if test "x$ac_cv_func_fork_works" = xcross
; then
12988 ac_cv_func_vfork_works
=$ac_cv_func_vfork
12989 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: result $ac_cv_func_vfork_works guessed because of cross compilation" >&5
12990 $as_echo "$as_me: WARNING: result $ac_cv_func_vfork_works guessed because of cross compilation" >&2;}
12993 if test "x$ac_cv_func_vfork_works" = xyes
; then
12995 $as_echo "#define HAVE_WORKING_VFORK 1" >>confdefs.h
12999 $as_echo "#define vfork fork" >>confdefs.h
13002 if test "x$ac_cv_func_fork_works" = xyes
; then
13004 $as_echo "#define HAVE_WORKING_FORK 1" >>confdefs.h
13009 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for nl_langinfo and CODESET" >&5
13010 $as_echo_n "checking for nl_langinfo and CODESET... " >&6; }
13011 if test "${emacs_cv_langinfo_codeset+set}" = set; then :
13012 $as_echo_n "(cached) " >&6
13014 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
13015 /* end confdefs.h. */
13016 #include <langinfo.h>
13020 char* cs = nl_langinfo(CODESET);
13025 if ac_fn_c_try_link
"$LINENO"; then :
13026 emacs_cv_langinfo_codeset
=yes
13028 emacs_cv_langinfo_codeset
=no
13030 rm -f core conftest.err conftest.
$ac_objext \
13031 conftest
$ac_exeext conftest.
$ac_ext
13034 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $emacs_cv_langinfo_codeset" >&5
13035 $as_echo "$emacs_cv_langinfo_codeset" >&6; }
13036 if test $emacs_cv_langinfo_codeset = yes; then
13038 $as_echo "#define HAVE_LANGINFO_CODESET 1" >>confdefs.h
13042 ac_fn_c_check_type
"$LINENO" "size_t" "ac_cv_type_size_t" "$ac_includes_default"
13043 if test "x$ac_cv_type_size_t" = x
""yes; then :
13045 cat >>confdefs.h
<<_ACEOF
13046 #define HAVE_SIZE_T 1
13053 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for mbstate_t" >&5
13054 $as_echo_n "checking for mbstate_t... " >&6; }
13055 if test "${ac_cv_type_mbstate_t+set}" = set; then :
13056 $as_echo_n "(cached) " >&6
13058 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
13059 /* end confdefs.h. */
13060 $ac_includes_default
13061 # include <wchar.h>
13065 mbstate_t x; return sizeof x;
13070 if ac_fn_c_try_compile
"$LINENO"; then :
13071 ac_cv_type_mbstate_t
=yes
13073 ac_cv_type_mbstate_t
=no
13075 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
13077 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_mbstate_t" >&5
13078 $as_echo "$ac_cv_type_mbstate_t" >&6; }
13079 if test $ac_cv_type_mbstate_t = yes; then
13081 $as_echo "#define HAVE_MBSTATE_T 1" >>confdefs.h
13085 $as_echo "#define mbstate_t int" >>confdefs.h
13089 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for C restrict keyword" >&5
13090 $as_echo_n "checking for C restrict keyword... " >&6; }
13091 if test "${emacs_cv_c_restrict+set}" = set; then :
13092 $as_echo_n "(cached) " >&6
13094 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
13095 /* end confdefs.h. */
13096 void fred (int *restrict x);
13105 if ac_fn_c_try_compile
"$LINENO"; then :
13106 emacs_cv_c_restrict
=yes
13108 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
13109 /* end confdefs.h. */
13110 void fred (int *__restrict x);
13119 if ac_fn_c_try_compile
"$LINENO"; then :
13120 emacs_cv_c_restrict
=__restrict
13122 emacs_cv_c_restrict
=no
13124 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
13126 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
13128 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $emacs_cv_c_restrict" >&5
13129 $as_echo "$emacs_cv_c_restrict" >&6; }
13130 case "$emacs_cv_c_restrict" in
13131 yes) emacs_restrict
=restrict
;;
13132 no
) emacs_restrict
="";;
13133 *) emacs_restrict
="$emacs_cv_c_restrict";;
13135 if test "$emacs_restrict" != __restrict
; then
13137 cat >>confdefs.h
<<_ACEOF
13138 #define __restrict $emacs_restrict
13143 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for C restricted array declarations" >&5
13144 $as_echo_n "checking for C restricted array declarations... " >&6; }
13145 if test "${emacs_cv_c_restrict_arr+set}" = set; then :
13146 $as_echo_n "(cached) " >&6
13148 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
13149 /* end confdefs.h. */
13150 void fred (int x[__restrict]);
13159 if ac_fn_c_try_compile
"$LINENO"; then :
13160 emacs_cv_c_restrict_arr
=yes
13162 emacs_cv_c_restrict_arr
=no
13164 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
13166 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $emacs_cv_c_restrict_arr" >&5
13167 $as_echo "$emacs_cv_c_restrict_arr" >&6; }
13168 if test "$emacs_cv_c_restrict_arr" = yes; then
13170 $as_echo "#define __restrict_arr __restrict" >>confdefs.h
13176 # Set up the CFLAGS for real compilation, so we can substitute it.
13177 CFLAGS
="$REAL_CFLAGS"
13178 CPPFLAGS
="$REAL_CPPFLAGS"
13180 ## Hack to detect a buggy GCC version.
13181 if test "x$GCC" = xyes \
13182 && test x
"`$CC --version 2> /dev/null | grep 'gcc.* 4.5.0'`" != x \
13183 && test x
"`echo $CFLAGS | grep '\-O[23]'`" != x \
13184 && test x
"`echo $CFLAGS | grep '\-fno-optimize-sibling-calls'`" = x
; then
13185 as_fn_error
"GCC 4.5.0 has problems compiling Emacs; see etc/PROBLEMS'." "$LINENO" 5
13188 #### Find out which version of Emacs this is.
13189 version
=`grep 'defconst[ ]*emacs-version' ${srcdir}/lisp/version.el \
13190 | sed -e 's/^[^"]*"\([^"]*\)".*$/\1/'`
13191 if test x
"${version}" = x
; then
13192 as_fn_error
"can't find current emacs version in \`${srcdir}/lisp/version.el'." "$LINENO" 5
13194 if test x
"${version}" != x
"$PACKAGE_VERSION"; then
13195 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: version mismatch between \`${srcdir}/configure.in' and \`${srcdir}/lisp/version.el'." >&5
13196 $as_echo "$as_me: WARNING: version mismatch between \`${srcdir}/configure.in' and \`${srcdir}/lisp/version.el'." >&2;}
13199 ### Specify what sort of things we'll be editing into Makefile and config.h.
13200 ### Use configuration here uncanonicalized to avoid exceeding size limits.
13245 cat >>confdefs.h <<_ACEOF
13246 #define EMACS_CONFIGURATION "${canonical}"
13250 cat >>confdefs.h <<_ACEOF
13251 #define EMACS_CONFIG_OPTIONS "${ac_configure_args}"
13255 cat >>confdefs.h <<_ACEOF
13256 #define config_machfile "${machfile}"
13260 cat >>confdefs.h <<_ACEOF
13261 #define config_opsysfile "${opsysfile}"
13265 cat >>confdefs.h <<_ACEOF
13266 #define LD_SWITCH_X_SITE ${LD_SWITCH_X_SITE}
13270 cat >>confdefs.h <<_ACEOF
13271 #define LD_SWITCH_X_SITE_AUX ${LD_SWITCH_X_SITE_AUX}
13275 cat >>confdefs.h <<_ACEOF
13276 #define C_SWITCH_X_SITE ${C_SWITCH_X_SITE}
13280 cat >>confdefs.h <<_ACEOF
13281 #define UNEXEC_SRC ${UNEXEC_SRC}
13285 if test "${HAVE_X_WINDOWS}" = "yes" ; then
13287 $as_echo "#define HAVE_X_WINDOWS 1" >>confdefs.h
13290 if test "${USE_X_TOOLKIT}" != "none" ; then
13292 $as_echo "#define USE_X_TOOLKIT 1" >>confdefs.h
13294 if test "${USE_X_TOOLKIT}" = "LUCID"; then
13296 $as_echo "#define USE_LUCID 1" >>confdefs.h
13298 elif test "${USE_X_TOOLKIT}" = "MOTIF"; then
13300 $as_echo "#define USE_MOTIF 1" >>confdefs.h
13304 if test "${HAVE_X11}" = "yes" ; then
13306 $as_echo "#define HAVE_X11 1" >>confdefs.h
13309 if test "${HAVE_MENUS}" = "yes" ; then
13311 $as_echo "#define HAVE_MENUS 1" >>confdefs.h
13314 if test "${GNU_MALLOC}" = "yes" ; then
13316 $as_echo "#define GNU_MALLOC 1" >>confdefs.h
13319 if test "${REL_ALLOC}" = "yes" ; then
13321 $as_echo "#define REL_ALLOC 1" >>confdefs.h
13328 #### Report on what we decided to do.
13329 #### Report GTK as a toolkit, even if it doesn't use Xt.
13330 #### It makes printing result more understandable as using GTK sets
13331 #### toolkit_scroll_bars to yes by default.
13332 if test "${HAVE_GTK}" = "yes"; then
13337 Configured for \`${canonical}'.
13339 Where should the build process find the source code? ${srcdir}
13340 What operating system and machine description files should Emacs use?
13341 \`${opsysfile}' and \`${machfile}'
13342 What compiler should emacs be built with? ${CC} ${CFLAGS}
13343 Should Emacs use the GNU version of malloc? ${GNU_MALLOC}${GNU_MALLOC_reason}
13344 Should Emacs use a relocating allocator for buffers? ${REL_ALLOC}
13345 Should Emacs use mmap(2) for buffer allocation? $use_mmap_for_buffers
13346 What window system should Emacs use? ${window_system}
13347 What toolkit should Emacs use? ${USE_X_TOOLKIT}"
13349 if test -n "${x_includes}"; then
13350 echo " Where do we find X Windows header files? ${x_includes}"
13352 echo " Where do we find X Windows header files? Standard dirs"
13354 if test -n "${x_libraries}"; then
13355 echo " Where do we find X Windows libraries? ${x_libraries}"
13357 echo " Where do we find X Windows libraries? Standard dirs"
13360 echo " Does Emacs use -lXaw3d? ${HAVE_XAW3D}"
13361 echo " Does Emacs use -lXpm? ${HAVE_XPM}"
13362 echo " Does Emacs use -ljpeg? ${HAVE_JPEG}"
13363 echo " Does Emacs use -ltiff? ${HAVE_TIFF}"
13364 echo " Does Emacs use a gif library? ${HAVE_GIF} $ac_gif_lib_name"
13365 echo " Does Emacs use -lpng? ${HAVE_PNG}"
13366 echo " Does Emacs use -lrsvg-2? ${HAVE_RSVG}"
13367 echo " Does Emacs use -lgpm? ${HAVE_GPM}"
13368 echo " Does Emacs use -ldbus? ${HAVE_DBUS}"
13369 echo " Does Emacs use -lgconf? ${HAVE_GCONF}"
13371 echo " Does Emacs use -lfreetype? ${HAVE_FREETYPE}"
13372 echo " Does Emacs use -lm17n-flt? ${HAVE_M17N_FLT}"
13373 echo " Does Emacs use -lotf? ${HAVE_LIBOTF}"
13374 echo " Does Emacs use -lxft? ${HAVE_XFT}"
13376 echo " Does Emacs use toolkit scroll bars? ${USE_TOOLKIT_SCROLL_BARS}"
13379 if test $USE_XASSERTS = yes; then
13380 echo " Compiling with asserts turned on."
13381 CPPFLAGS
="$CPPFLAGS -DXASSERTS=1"
13386 if test "$HAVE_NS" = "yes"; then
13388 echo "You must run \"make install\" in order to test the built application.
13389 The installed application will go to nextstep/Emacs.app and can be
13390 run or moved from there."
13391 if test "$EN_NS_SELF_CONTAINED" = "yes"; then
13392 echo "The application will be fully self-contained."
13394 echo "The lisp resources for the application will be installed under ${prefix}.
13395 You may need to run \"make install\" with sudo. The application will fail
13396 to run if these resources are not installed."
13402 # Remove any trailing slashes in these variables.
13403 test "${prefix}" != NONE
&&
13404 prefix
=`echo "${prefix}" | sed 's,\([^/]\)/*$,\1,'`
13405 test "${exec_prefix}" != NONE
&&
13406 exec_prefix
=`echo "${exec_prefix}" | sed 's,\([^/]\)/*$,\1,'`
13408 # Now get this: Some word that is part of the ${srcdir} directory name
13409 # or the ${configuration} value might, just might, happen to be an
13410 # identifier like `sun4' or `i386' or something, and be predefined by
13411 # the C preprocessor to some helpful value like 1, or maybe the empty
13412 # string. Needless to say consequent macro substitutions are less
13413 # than conducive to the makefile finding the correct directory.
13414 cpp_undefs
="`echo $srcdir $configuration $canonical unix |
13415 sed -e 's/[^a-zA-Z0-9_]/ /g' -e 's/^/ /' -e 's/ *$//' \
13416 -e 's/ */ -U/g' -e 's/-U[0-9][^ ]*//g'`"
13418 ## Check if the C preprocessor will convert `..' to `. .'. If so, set
13419 ## CPP_NEED_TRADITIONAL to `yes' so that the code to generate Makefile
13420 ## from Makefile.c can correctly provide the arg `-traditional' to the
13423 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
13424 /* end confdefs.h. */
13427 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
13428 $EGREP "yes..yes" >/dev
/null
2>&1; then :
13429 CPP_NEED_TRADITIONAL
=no
13431 CPP_NEED_TRADITIONAL
=yes
13436 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"
13438 ac_config_commands
="$ac_config_commands default"
13440 cat >confcache
<<\_ACEOF
13441 # This file is a shell script that caches the results of configure
13442 # tests run on this system so they can be shared between configure
13443 # scripts and configure runs, see configure's option --config-cache.
13444 # It is not useful on other systems. If it contains results you don't
13445 # want to keep, you may remove or edit it.
13447 # config.status only pays attention to the cache file if you give it
13448 # the --recheck option to rerun configure.
13450 # `ac_cv_env_foo' variables (set or unset) will be overridden when
13451 # loading this file, other *unset* `ac_cv_foo' will be assigned the
13452 # following values.
13456 # The following way of writing the cache mishandles newlines in values,
13457 # but we know of no workaround that is simple, portable, and efficient.
13458 # So, we kill variables containing newlines.
13459 # Ultrix sh set writes to stderr and can't be redirected directly,
13460 # and sets the high bit in the cache file unless we assign to the vars.
13462 for ac_var
in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
13463 eval ac_val
=\$
$ac_var
13467 *_cv_
*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
13468 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
13471 _ | IFS | as_nl
) ;; #(
13472 BASH_ARGV | BASH_SOURCE
) eval $ac_var= ;; #(
13473 *) { eval $ac_var=; unset $ac_var;} ;;
13479 case $as_nl`(ac_space=' '; set) 2>&1` in #(
13480 *${as_nl}ac_space
=\
*)
13481 # `set' does not quote correctly, so add quotes: double-quote
13482 # substitution turns \\\\ into \\, and sed turns \\ into \.
13485 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
13488 # `set' quotes correctly as required by POSIX, so do not add quotes.
13489 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
13498 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
13500 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
13502 if diff "$cache_file" confcache
>/dev
/null
2>&1; then :; else
13503 if test -w "$cache_file"; then
13504 test "x$cache_file" != "x/dev/null" &&
13505 { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
13506 $as_echo "$as_me: updating cache $cache_file" >&6;}
13507 cat confcache
>$cache_file
13509 { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
13510 $as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
13515 test "x$prefix" = xNONE
&& prefix
=$ac_default_prefix
13516 # Let make expand exec_prefix.
13517 test "x$exec_prefix" = xNONE
&& exec_prefix
='${prefix}'
13519 DEFS
=-DHAVE_CONFIG_H
13523 for ac_i
in : $LIBOBJS; do test "x$ac_i" = x
: && continue
13524 # 1. Remove the extension, and $U if already installed.
13525 ac_script
='s/\$U\././;s/\.o$//;s/\.obj$//'
13526 ac_i
=`$as_echo "$ac_i" | sed "$ac_script"`
13527 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
13528 # will be set to the directory where LIBOBJS objects are built.
13529 as_fn_append ac_libobjs
" \${LIBOBJDIR}$ac_i\$U.$ac_objext"
13530 as_fn_append ac_ltlibobjs
" \${LIBOBJDIR}$ac_i"'$U.lo'
13532 LIBOBJS
=$ac_libobjs
13534 LTLIBOBJS
=$ac_ltlibobjs
13538 : ${CONFIG_STATUS=./config.status}
13540 ac_clean_files_save
=$ac_clean_files
13541 ac_clean_files
="$ac_clean_files $CONFIG_STATUS"
13542 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
13543 $as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
13545 cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
13547 # Generated by $as_me.
13548 # Run this file to recreate the current configuration.
13549 # Compiler output produced by configure, useful for debugging
13550 # configure, is in config.log if it exists.
13553 ac_cs_recheck=false
13556 SHELL=\${CONFIG_SHELL-$SHELL}
13559 cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail
=1
13560 ## -------------------- ##
13561 ## M4sh Initialization. ##
13562 ## -------------------- ##
13564 # Be more Bourne compatible
13565 DUALCASE
=1; export DUALCASE
# for MKS sh
13566 if test -n "${ZSH_VERSION+set}" && (emulate sh
) >/dev
/null
2>&1; then :
13569 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
13570 # is contrary to our usage. Disable this feature.
13571 alias -g '${1+"$@"}'='"$@"'
13572 setopt NO_GLOB_SUBST
13574 case `(set -o) 2>/dev/null` in #(
13586 # Printing a long string crashes Solaris 7 /usr/bin/printf.
13587 as_echo
='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
13588 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
13589 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
13590 # Prefer a ksh shell builtin over an external printf program on Solaris,
13591 # but without wasting forks for bash or zsh.
13592 if test -z "$BASH_VERSION$ZSH_VERSION" \
13593 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
13594 as_echo='print
-r --'
13595 as_echo_n='print
-rn --'
13596 elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
13597 as_echo='printf %s
\n'
13598 as_echo_n='printf %s
'
13600 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
13601 as_echo_body='eval /usr
/ucb
/echo -n "$1$as_nl"'
13602 as_echo_n='/usr
/ucb
/echo -n'
13604 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
13605 as_echo_n_body='eval
13609 expr "X$arg" : "X\\(.*\\)$as_nl";
13610 arg
=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
13612 expr "X$arg" : "X\\(.*\\)" |
tr -d "$as_nl"
13614 export as_echo_n_body
13615 as_echo_n='sh
-c $as_echo_n_body as_echo
'
13617 export as_echo_body
13618 as_echo='sh
-c $as_echo_body as_echo
'
13621 # The user is always right.
13622 if test "${PATH_SEPARATOR+set}" != set; then
13624 (PATH='/bin
;/bin
'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
13625 (PATH='/bin
:/bin
'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
13632 # We need space, tab and new line, in precisely that order. Quoting is
13633 # there to prevent editors from complaining about space-tab.
13634 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
13635 # splitting by setting IFS to empty value.)
13638 # Find who we are. Look in the path if we contain no directory separator.
13640 *[\\/]* ) as_myself=$0 ;;
13641 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13642 for as_dir in $PATH
13645 test -z "$as_dir" && as_dir=.
13646 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
13652 # We did not find ourselves, most probably we were run as `sh COMMAND'
13653 # in which case we are not to be found in the path.
13654 if test "x$as_myself" = x
; then
13657 if test ! -f "$as_myself"; then
13658 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
13662 # Unset variables that we do not need and which cause bugs (e.g. in
13663 # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
13664 # suppresses any "Segmentation fault" message there. '((' could
13665 # trigger a bug in pdksh 5.2.14.
13666 for as_var
in BASH_ENV ENV MAIL MAILPATH
13667 do eval test x\
${$as_var+set} = xset \
13668 && ( (unset $as_var) ||
exit 1) >/dev
/null
2>&1 && unset $as_var ||
:
13681 (unset CDPATH
) >/dev
/null
2>&1 && unset CDPATH
13684 # as_fn_error ERROR [LINENO LOG_FD]
13685 # ---------------------------------
13686 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
13687 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
13688 # script with status $?, using 1 if that was 0.
13691 as_status
=$?
; test $as_status -eq 0 && as_status
=1
13693 as_lineno
=${as_lineno-"$2"} as_lineno_stack
=as_lineno_stack
=$as_lineno_stack
13694 $as_echo "$as_me:${as_lineno-$LINENO}: error: $1" >&$3
13696 $as_echo "$as_me: error: $1" >&2
13697 as_fn_exit
$as_status
13701 # as_fn_set_status STATUS
13702 # -----------------------
13703 # Set $? to STATUS, without forking.
13704 as_fn_set_status
()
13707 } # as_fn_set_status
13709 # as_fn_exit STATUS
13710 # -----------------
13711 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
13715 as_fn_set_status
$1
13721 # Portably unset VAR.
13724 { eval $1=; unset $1;}
13726 as_unset
=as_fn_unset
13727 # as_fn_append VAR VALUE
13728 # ----------------------
13729 # Append the text in VALUE to the end of the definition contained in VAR. Take
13730 # advantage of any shell optimizations that allow amortized linear growth over
13731 # repeated appends, instead of the typical quadratic growth present in naive
13733 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev
/null
; then :
13734 eval 'as_fn_append ()
13745 # as_fn_arith ARG...
13746 # ------------------
13747 # Perform arithmetic evaluation on the ARGs, and store the result in the
13748 # global $as_val. Take advantage of shells that can avoid forks. The arguments
13749 # must be portable across $(()) and expr.
13750 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev
/null
; then :
13751 eval 'as_fn_arith ()
13758 as_val
=`expr "$@" || test $? -eq 1`
13763 if expr a
: '\(a\)' >/dev
/null
2>&1 &&
13764 test "X`expr 00001 : '.*\(...\)'`" = X001
; then
13770 if (basename -- /) >/dev
/null
2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
13771 as_basename
=basename
13776 if (as_dir
=`dirname -- /` && test "X$as_dir" = X
/) >/dev
/null
2>&1; then
13782 as_me
=`$as_basename -- "$0" ||
13783 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
13784 X"$0" : 'X\(//\)$' \| \
13785 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
13787 sed '/^.*\/\([^/][^/]*\)\/*$/{
13801 # Avoid depending upon Character Ranges.
13802 as_cr_letters
='abcdefghijklmnopqrstuvwxyz'
13803 as_cr_LETTERS
='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
13804 as_cr_Letters
=$as_cr_letters$as_cr_LETTERS
13805 as_cr_digits
='0123456789'
13806 as_cr_alnum
=$as_cr_Letters$as_cr_digits
13808 ECHO_C
= ECHO_N
= ECHO_T
=
13809 case `echo -n x` in #(((((
13811 case `echo 'xy\c'` in
13812 *c
*) ECHO_T
=' ';; # ECHO_T is single tab character.
13814 *) echo `echo ksh88 bug on AIX 6.1` > /dev
/null
13821 rm -f conf$$ conf$$.exe conf$$.
file
13822 if test -d conf$$.dir
; then
13823 rm -f conf$$.dir
/conf$$.
file
13826 mkdir conf$$.dir
2>/dev
/null
13828 if (echo >conf$$.
file) 2>/dev
/null
; then
13829 if ln -s conf$$.
file conf$$
2>/dev
/null
; then
13831 # ... but there are two gotchas:
13832 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
13833 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
13834 # In both cases, we have to default to `cp -p'.
13835 ln -s conf$$.
file conf$$.dir
2>/dev
/null
&& test ! -f conf$$.exe ||
13837 elif ln conf$$.
file conf$$
2>/dev
/null
; then
13845 rm -f conf$$ conf$$.exe conf$$.dir
/conf$$.
file conf$$.
file
13846 rmdir conf$$.dir
2>/dev
/null
13851 # Create "$as_dir" as a directory, including parents if necessary.
13856 -*) as_dir
=.
/$as_dir;;
13858 test -d "$as_dir" ||
eval $as_mkdir_p ||
{
13862 *\'*) as_qdir
=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
13863 *) as_qdir
=$as_dir;;
13865 as_dirs
="'$as_qdir' $as_dirs"
13866 as_dir
=`$as_dirname -- "$as_dir" ||
13867 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
13868 X"$as_dir" : 'X\(//\)[^/]' \| \
13869 X"$as_dir" : 'X\(//\)$' \| \
13870 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
13871 $as_echo X"$as_dir" |
13872 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
13876 /^X\(\/\/\)[^/].*/{
13889 test -d "$as_dir" && break
13891 test -z "$as_dirs" ||
eval "mkdir $as_dirs"
13892 } ||
test -d "$as_dir" || as_fn_error
"cannot create directory $as_dir"
13896 if mkdir
-p .
2>/dev
/null
; then
13897 as_mkdir_p
='mkdir -p "$as_dir"'
13899 test -d .
/-p && rmdir .
/-p
13903 if test -x / >/dev
/null
2>&1; then
13904 as_test_x
='test -x'
13906 if ls -dL / >/dev
/null
2>&1; then
13913 if test -d "$1"; then
13919 case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in #((
13920 ???[sx]*):;;*)false;;esac;fi
13924 as_executable_p
=$as_test_x
13926 # Sed expression to map a string onto a valid CPP name.
13927 as_tr_cpp
="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
13929 # Sed expression to map a string onto a valid variable name.
13930 as_tr_sh
="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
13934 ## ----------------------------------- ##
13935 ## Main body of $CONFIG_STATUS script. ##
13936 ## ----------------------------------- ##
13938 test $as_write_fail = 0 && chmod +x
$CONFIG_STATUS || ac_write_fail
=1
13940 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail
=1
13941 # Save the log message, to keep $0 and so on meaningful, and to
13942 # report actual input values of CONFIG_FILES etc. instead of their
13943 # values after options handling.
13945 This file was extended by emacs $as_me 23.2.90, which was
13946 generated by GNU Autoconf 2.65. Invocation command line was
13948 CONFIG_FILES = $CONFIG_FILES
13949 CONFIG_HEADERS = $CONFIG_HEADERS
13950 CONFIG_LINKS = $CONFIG_LINKS
13951 CONFIG_COMMANDS = $CONFIG_COMMANDS
13954 on `(hostname || uname -n) 2>/dev/null | sed 1q`
13959 case $ac_config_files in *"
13960 "*) set x
$ac_config_files; shift; ac_config_files
=$
*;;
13963 case $ac_config_headers in *"
13964 "*) set x
$ac_config_headers; shift; ac_config_headers
=$
*;;
13968 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
13969 # Files that config.status was made for.
13970 config_files="$ac_config_files"
13971 config_headers="$ac_config_headers"
13972 config_commands="$ac_config_commands"
13976 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail
=1
13978 \`$as_me' instantiates files and other configuration actions
13979 from templates according to the current configuration. Unless the files
13980 and actions are specified as TAGs, all are instantiated by default.
13982 Usage: $0 [OPTION]... [TAG]...
13984 -h, --help print this help, then exit
13985 -V, --version print version number and configuration settings, then exit
13986 --config print configuration, then exit
13987 -q, --quiet, --silent
13988 do not print progress messages
13989 -d, --debug don't remove temporary files
13990 --recheck update $as_me by reconfiguring in the same conditions
13991 --file=FILE[:TEMPLATE]
13992 instantiate the configuration file FILE
13993 --header=FILE[:TEMPLATE]
13994 instantiate the configuration header FILE
13996 Configuration files:
13999 Configuration headers:
14002 Configuration commands:
14005 Report bugs to the package provider."
14008 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
14009 ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`"
14011 emacs config.status 23.2.90
14012 configured by $0, generated by GNU Autoconf 2.65,
14013 with options \\"\$ac_cs_config\\"
14015 Copyright (C) 2009 Free Software Foundation, Inc.
14016 This config.status script is free software; the Free Software Foundation
14017 gives unlimited permission to copy, distribute and modify it."
14022 test -n "\$AWK" || AWK=awk
14025 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail
=1
14026 # The default lists apply if the user does not specify any file.
14032 ac_option
=`expr "X$1" : 'X\([^=]*\)='`
14033 ac_optarg
=`expr "X$1" : 'X[^=]*=\(.*\)'`
14044 # Handling of the options.
14045 -recheck |
--recheck |
--rechec |
--reche |
--rech |
--rec |
--re |
--r)
14047 --version |
--versio |
--versi |
--vers |
--ver |
--ve |
--v |
-V )
14048 $as_echo "$ac_cs_version"; exit ;;
14049 --config |
--confi |
--conf |
--con |
--co |
--c )
14050 $as_echo "$ac_cs_config"; exit ;;
14051 --debug |
--debu |
--deb |
--de |
--d |
-d )
14053 --file |
--fil |
--fi |
--f )
14056 *\'*) ac_optarg
=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
14058 as_fn_append CONFIG_FILES
" '$ac_optarg'"
14059 ac_need_defaults
=false
;;
14060 --header |
--heade |
--head |
--hea )
14063 *\'*) ac_optarg
=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
14065 as_fn_append CONFIG_HEADERS
" '$ac_optarg'"
14066 ac_need_defaults
=false
;;
14068 # Conflict between --help and --header
14069 as_fn_error
"ambiguous option: \`$1'
14070 Try \`$0 --help' for more information.";;
14071 --help |
--hel |
-h )
14072 $as_echo "$ac_cs_usage"; exit ;;
14073 -q |
-quiet |
--quiet |
--quie |
--qui |
--qu |
--q \
14074 |
-silent |
--silent |
--silen |
--sile |
--sil |
--si |
--s)
14077 # This is an error.
14078 -*) as_fn_error
"unrecognized option: \`$1'
14079 Try \`$0 --help' for more information." ;;
14081 *) as_fn_append ac_config_targets
" $1"
14082 ac_need_defaults
=false
;;
14088 ac_configure_extra_args
=
14090 if $ac_cs_silent; then
14092 ac_configure_extra_args
="$ac_configure_extra_args --silent"
14096 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
14097 if \$ac_cs_recheck; then
14098 set X '$SHELL' '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
14100 \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
14101 CONFIG_SHELL='$SHELL'
14102 export CONFIG_SHELL
14107 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail
=1
14111 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
14112 ## Running $as_me. ##
14118 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
14122 GCC="$GCC" NON_GNU_CPP="$NON_GNU_CPP" CPP="$CPP" CPP_NEED_TRADITIONAL="$CPP_NEED_TRADITIONAL" CPPFLAGS="$CPPFLAGS" cpp_undefs="$cpp_undefs"
14126 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail
=1
14128 # Handling of arguments.
14129 for ac_config_target
in $ac_config_targets
14131 case $ac_config_target in
14132 "src/config.h") CONFIG_HEADERS
="$CONFIG_HEADERS src/config.h:src/config.in" ;;
14133 "Makefile") CONFIG_FILES
="$CONFIG_FILES Makefile" ;;
14134 "lib-src/Makefile.c") CONFIG_FILES
="$CONFIG_FILES lib-src/Makefile.c:lib-src/Makefile.in" ;;
14135 "oldXMenu/Makefile") CONFIG_FILES
="$CONFIG_FILES oldXMenu/Makefile" ;;
14136 "doc/emacs/Makefile") CONFIG_FILES
="$CONFIG_FILES doc/emacs/Makefile" ;;
14137 "doc/misc/Makefile") CONFIG_FILES
="$CONFIG_FILES doc/misc/Makefile" ;;
14138 "doc/lispintro/Makefile") CONFIG_FILES
="$CONFIG_FILES doc/lispintro/Makefile" ;;
14139 "doc/lispref/Makefile") CONFIG_FILES
="$CONFIG_FILES doc/lispref/Makefile" ;;
14140 "src/Makefile.c") CONFIG_FILES
="$CONFIG_FILES src/Makefile.c:src/Makefile.in" ;;
14141 "lwlib/Makefile") CONFIG_FILES
="$CONFIG_FILES lwlib/Makefile" ;;
14142 "lisp/Makefile") CONFIG_FILES
="$CONFIG_FILES lisp/Makefile" ;;
14143 "leim/Makefile") CONFIG_FILES
="$CONFIG_FILES leim/Makefile" ;;
14144 "default") CONFIG_COMMANDS
="$CONFIG_COMMANDS default" ;;
14146 *) as_fn_error
"invalid argument: \`$ac_config_target'" "$LINENO" 5;;
14151 # If the user did not use the arguments to specify the items to instantiate,
14152 # then the envvar interface is used. Set only those that are not.
14153 # We use the long form for the default assignment because of an extremely
14154 # bizarre bug on SunOS 4.1.3.
14155 if $ac_need_defaults; then
14156 test "${CONFIG_FILES+set}" = set || CONFIG_FILES
=$config_files
14157 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS
=$config_headers
14158 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS
=$config_commands
14161 # Have a temporary directory for convenience. Make it in the build tree
14162 # simply because there is no reason against having it here, and in addition,
14163 # creating and moving files from /tmp can sometimes cause problems.
14164 # Hook for its removal unless debugging.
14165 # Note that there is a small window in which the directory will not be cleaned:
14166 # after its creation but before its name has been assigned to `$tmp'.
14170 trap 'exit_status=$?
14171 { test -z "$tmp" || test ! -d "$tmp" || rm -fr "$tmp"; } && exit $exit_status
14173 trap 'as_fn_exit 1' 1 2 13 15
14175 # Create a (secure) tmp directory for tmp files.
14178 tmp
=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
14179 test -n "$tmp" && test -d "$tmp"
14182 tmp
=.
/conf$$
-$RANDOM
14183 (umask 077 && mkdir
"$tmp")
14184 } || as_fn_error
"cannot create a temporary directory in ." "$LINENO" 5
14186 # Set up the scripts for CONFIG_FILES section.
14187 # No need to generate them if there are no CONFIG_FILES.
14188 # This happens for instance with `./config.status config.h'.
14189 if test -n "$CONFIG_FILES"; then
14192 ac_cr
=`echo X | tr X '\015'`
14193 # On cygwin, bash can eat \r inside `` if the user requested igncr.
14194 # But we know of no other shell where ac_cr would be empty at this
14195 # point, so we can use a bashism as a fallback.
14196 if test "x$ac_cr" = x
; then
14197 eval ac_cr
=\$
\'\\r
\'
14199 ac_cs_awk_cr
=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
14200 if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
14203 ac_cs_awk_cr
=$ac_cr
14206 echo 'BEGIN {' >"$tmp/subs1.awk" &&
14211 echo "cat >conf$$subs.awk <<_ACEOF" &&
14212 echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
14214 } >conf$$subs.sh ||
14215 as_fn_error "could not
make $CONFIG_STATUS" "$LINENO" 5
14216 ac_delim_num=`echo "$ac_subst_vars" | grep -c '$'`
14218 for ac_last_try in false false false false false :; do
14219 . ./conf$$subs.sh ||
14220 as_fn_error "could not
make $CONFIG_STATUS" "$LINENO" 5
14222 ac_delim_n=`sed -n "s
/.
*$ac_delim\$
/X
/p
" conf$$subs.awk | grep -c X`
14223 if test $ac_delim_n = $ac_delim_num; then
14225 elif $ac_last_try; then
14226 as_fn_error "could not
make $CONFIG_STATUS" "$LINENO" 5
14228 ac_delim="$ac_delim!$ac_delim _
$ac_delim!! "
14231 rm -f conf$$subs.sh
14233 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
14234 cat >>"\
$tmp/subs1.
awk" <<\\_ACAWK &&
14238 s/^/S["/; s
/!.
*/"]=/
14248 s/\(.\{148\}\)..*/\1/
14250 s/["\\]/\\&/g
; s
/^
/"/; s/$/\\n"\\/
14255 s
/["\\]/\\&/g; s/^/"/; s
/$
/"\\/
14262 s/\(.\{148\}\)..*/\1/
14264 s/["\\]/\\&/g
; s
/^
/"/; s/$/"/
14268 s
/["\\]/\\&/g; s/^/"/; s
/$
/"\\/
14273 ' <conf$$subs.awk | sed '
14278 ' >>$CONFIG_STATUS || ac_write_fail=1
14279 rm -f conf$$subs.awk
14280 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
14282 cat >>"\
$tmp/subs1.
awk" <<_ACAWK &&
14283 for (key in S) S_is_set[key] = 1
14289 nfields = split(line, field, "@
")
14291 len = length(field[1])
14292 for (i = 2; i < nfields; i++) {
14294 keylen = length(key)
14295 if (S_is_set[key]) {
14297 line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
14298 len += length(value) + length(field[++i])
14309 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
14310 if sed "s
/$ac_cr//" < /dev/null > /dev/null 2>&1; then
14311 sed "s
/$ac_cr\$
//; s
/$ac_cr/$ac_cs_awk_cr/g
"
14314 fi < "$tmp/subs1.
awk" > "$tmp/subs.
awk" \
14315 || as_fn_error "could not setup config files machinery
" "$LINENO" 5
14318 # VPATH may cause trouble with some makes, so we remove $(srcdir),
14319 # ${srcdir} and @srcdir@ from VPATH if srcdir is ".
", strip leading and
14320 # trailing colons and then remove the whole line if VPATH becomes empty
14321 # (actually we leave an empty line to preserve line numbers).
14322 if test "x
$srcdir" = x.; then
14323 ac_vpsub='/^[ ]*VPATH[ ]*=/{
14324 s/:*\$(srcdir):*/:/
14325 s/:*\${srcdir}:*/:/
14327 s/^\([^=]*=[ ]*\):*/\1/
14333 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
14334 fi # test -n "$CONFIG_FILES"
14336 # Set up the scripts for CONFIG_HEADERS section.
14337 # No need to generate them if there are no CONFIG_HEADERS.
14338 # This happens for instance with `./config.status Makefile'.
14339 if test -n "$CONFIG_HEADERS"; then
14340 cat >"$tmp/defines.
awk" <<\_ACAWK ||
14344 # Transform confdefs.h into an awk script `defines.awk', embedded as
14345 # here-document in config.status, that substitutes the proper values into
14346 # config.h.in to produce config.h.
14348 # Create a delimiter string that does not exist in confdefs.h, to ease
14349 # handling of long lines.
14351 for ac_last_try in false false :; do
14352 ac_t=`sed -n "/$ac_delim/p
" confdefs.h`
14353 if test -z "$ac_t"; then
14355 elif $ac_last_try; then
14356 as_fn_error "could not
make $CONFIG_HEADERS" "$LINENO" 5
14358 ac_delim="$ac_delim!$ac_delim _
$ac_delim!! "
14362 # For the awk script, D is an array of macro values keyed by name,
14363 # likewise P contains macro parameters if any. Preserve backslash
14364 # newline sequences.
14366 ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
14368 s/.\{148\}/&'"$ac_delim"'/g
14371 s/^[ ]*#[ ]*define[ ][ ]*/ /
14378 s
/^ \
('"$ac_word_re"'\
)\
(([^
()]*)\
)[ ]*\
(.
*\
)/P
["\1"]="\2"\
14380 s
/^ \
('"$ac_word_re"'\
)[ ]*\
(.
*\
)/D
["\1"]=" \2"/p
14384 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\
1"]="\
2"\
14385 D["\
1"]=" \
3\\\\\\n
"\\/p
14387 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\
1"]=" \
2\\\\\\n
"\\/p
14392 s/.\{148\}/&'"$ac_delim"'/g
14397 s/["\\]/\\&/g
; s
/^
/"/; s/$/"/p
14400 s
/["\\]/\\&/g; s/^/"/; s
/$
/\\\\\\n
"\\/p
14402 ' <confdefs.h | sed '
14403 s/'"$ac_delim"'/"\\\
14404 "/g' >>$CONFIG_STATUS || ac_write_fail=1
14406 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
14407 for (key in D) D_is_set[key] = 1
14410 /^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
14412 split(line, arg, " ")
14413 if (arg[1] == "#") {
14417 defundef
= substr
(arg
[1], 2)
14420 split(mac1
, mac2
, "(") #)
14422 prefix
= substr
(line
, 1, index
(line
, defundef
) - 1)
14423 if (D_is_set
[macro
]) {
14424 # Preserve the white space surrounding the "#".
14425 print prefix
"define", macro P
[macro
] D
[macro
]
14428 # Replace #undef with comments. This is necessary, for example,
14429 # in the case of _POSIX_SOURCE, which is predefined and required
14430 # on some systems where configure will not decide to define it.
14431 if (defundef
== "undef") {
14432 print
"/*", prefix defundef
, macro
, "*/"
14440 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail
=1
14441 as_fn_error
"could not setup config headers machinery" "$LINENO" 5
14442 fi # test -n "$CONFIG_HEADERS"
14445 eval set X
" :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS"
14450 :[FHLC
]) ac_mode
=$ac_tag; continue;;
14452 case $ac_mode$ac_tag in
14454 :L
* |
:C
*:*) as_fn_error
"invalid tag \`$ac_tag'" "$LINENO" 5;;
14455 :[FH
]-) ac_tag
=-:-;;
14456 :[FH
]*) ac_tag
=$ac_tag:$ac_tag.
in;;
14473 -) ac_f
="$tmp/stdin";;
14474 *) # Look for the file first in the build tree, then in the source tree
14475 # (if the path is not absolute). The absolute path cannot be DOS-style,
14476 # because $ac_f cannot contain `:'.
14480 *) test -f "$srcdir/$ac_f" && ac_f
="$srcdir/$ac_f";;
14482 as_fn_error
"cannot find input file: \`$ac_f'" "$LINENO" 5;;
14484 case $ac_f in *\'*) ac_f
=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
14485 as_fn_append ac_file_inputs
" '$ac_f'"
14488 # Let's still pretend it is `configure' which instantiates (i.e., don't
14489 # use $as_me), people would be surprised to read:
14490 # /* config.h. Generated by config.status. */
14491 configure_input
='Generated from '`
14492 $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
14494 if test x
"$ac_file" != x-
; then
14495 configure_input
="$ac_file. $configure_input"
14496 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
14497 $as_echo "$as_me: creating $ac_file" >&6;}
14499 # Neutralize special characters interpreted by sed in replacement strings.
14500 case $configure_input in #(
14501 *\
&* |
*\|
* |
*\\* )
14502 ac_sed_conf_input
=`$as_echo "$configure_input" |
14503 sed 's/[\\\\&|]/\\\\&/g'`;; #(
14504 *) ac_sed_conf_input
=$configure_input;;
14508 *:-:* |
*:-) cat >"$tmp/stdin" \
14509 || as_fn_error
"could not create $ac_file" "$LINENO" 5 ;;
14514 ac_dir
=`$as_dirname -- "$ac_file" ||
14515 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
14516 X"$ac_file" : 'X\(//\)[^/]' \| \
14517 X"$ac_file" : 'X\(//\)$' \| \
14518 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
14519 $as_echo X"$ac_file" |
14520 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
14524 /^X\(\/\/\)[^/].*/{
14537 as_dir
="$ac_dir"; as_fn_mkdir_p
14541 .
) ac_dir_suffix
= ac_top_builddir_sub
=. ac_top_build_prefix
= ;;
14543 ac_dir_suffix
=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
14544 # A ".." for each directory in $ac_dir_suffix.
14545 ac_top_builddir_sub
=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
14546 case $ac_top_builddir_sub in
14547 "") ac_top_builddir_sub
=. ac_top_build_prefix
= ;;
14548 *) ac_top_build_prefix
=$ac_top_builddir_sub/ ;;
14551 ac_abs_top_builddir
=$ac_pwd
14552 ac_abs_builddir
=$ac_pwd$ac_dir_suffix
14553 # for backward compatibility:
14554 ac_top_builddir
=$ac_top_build_prefix
14557 .
) # We are building in place.
14559 ac_top_srcdir
=$ac_top_builddir_sub
14560 ac_abs_top_srcdir
=$ac_pwd ;;
14561 [\\/]* | ?
:[\\/]* ) # Absolute name.
14562 ac_srcdir
=$srcdir$ac_dir_suffix;
14563 ac_top_srcdir
=$srcdir
14564 ac_abs_top_srcdir
=$srcdir ;;
14565 *) # Relative name.
14566 ac_srcdir
=$ac_top_build_prefix$srcdir$ac_dir_suffix
14567 ac_top_srcdir
=$ac_top_build_prefix$srcdir
14568 ac_abs_top_srcdir
=$ac_pwd/$srcdir ;;
14570 ac_abs_srcdir
=$ac_abs_top_srcdir$ac_dir_suffix
14580 [\\/$
]* | ?
:[\\/]* ) ac_INSTALL
=$INSTALL ;;
14581 *) ac_INSTALL
=$ac_top_build_prefix$INSTALL ;;
14585 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail
=1
14586 # If the template does not know about datarootdir, expand it.
14587 # FIXME: This hack should be removed a few years after 2.60.
14588 ac_datarootdir_hack
=; ac_datarootdir_seen
=
14599 case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
14600 *datarootdir
*) ac_datarootdir_seen
=yes;;
14601 *@datadir@
*|
*@docdir@
*|
*@infodir@
*|
*@localedir@
*|
*@mandir@
*)
14602 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
14603 $as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
14605 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
14606 ac_datarootdir_hack='
14607 s&@datadir@&$datadir&g
14608 s&@docdir@&$docdir&g
14609 s&@infodir@&$infodir&g
14610 s&@localedir@&$localedir&g
14611 s&@mandir@&$mandir&g
14612 s&\\\${datarootdir}&$datarootdir&g' ;;
14616 # Neutralize VPATH when `$srcdir' = `.'.
14617 # Shell code in configure.ac might set extrasub.
14618 # FIXME: do we really want to maintain this feature?
14619 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
14620 ac_sed_extra="$ac_vpsub
14623 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail
=1
14625 /@
[a-zA-Z_
][a-zA-Z_0-9
]*@
/!b
14626 s|@configure_input@|
$ac_sed_conf_input|
;t t
14627 s
&@top_builddir@
&$ac_top_builddir_sub&;t t
14628 s
&@top_build_prefix@
&$ac_top_build_prefix&;t t
14629 s
&@srcdir@
&$ac_srcdir&;t t
14630 s
&@abs_srcdir@
&$ac_abs_srcdir&;t t
14631 s
&@top_srcdir@
&$ac_top_srcdir&;t t
14632 s
&@abs_top_srcdir@
&$ac_abs_top_srcdir&;t t
14633 s
&@builddir@
&$ac_builddir&;t t
14634 s
&@abs_builddir@
&$ac_abs_builddir&;t t
14635 s
&@abs_top_builddir@
&$ac_abs_top_builddir&;t t
14636 s
&@INSTALL@
&$ac_INSTALL&;t t
14637 $ac_datarootdir_hack
14639 eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$tmp/subs.
awk" >$tmp/out \
14640 || as_fn_error "could not create
$ac_file" "$LINENO" 5
14642 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
14643 { ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out
"`; test -n "$ac_out"; } &&
14644 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' "$tmp/out
"`; test -z "$ac_out"; } &&
14645 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING
: $ac_file contains a reference to the variable \
`datarootdir'
14646 which seems to be undefined. Please make sure it is defined." >&5
14647 $as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir
'
14648 which seems to be undefined. Please make sure it is defined." >&2;}
14652 -) cat "$tmp/out" && rm -f "$tmp/out";;
14653 *) rm -f "$ac_file" && mv "$tmp/out" "$ac_file";;
14655 || as_fn_error "could not create $ac_file" "$LINENO" 5
14661 if test x"$ac_file" != x-; then
14663 $as_echo "/* $configure_input */" \
14664 && eval '$AWK -f "$tmp/defines.awk"' "$ac_file_inputs"
14665 } >"$tmp/config.h" \
14666 || as_fn_error "could not create $ac_file" "$LINENO" 5
14667 if diff "$ac_file" "$tmp/config.h" >/dev/null 2>&1; then
14668 { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5
14669 $as_echo "$as_me: $ac_file is unchanged" >&6;}
14672 mv "$tmp/config.h" "$ac_file" \
14673 || as_fn_error "could not create $ac_file" "$LINENO" 5
14676 $as_echo "/* $configure_input */" \
14677 && eval '$AWK -f "$tmp/defines.awk"' "$ac_file_inputs" \
14678 || as_fn_error "could not create -" "$LINENO" 5
14682 :C) { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5
14683 $as_echo "$as_me: executing $ac_file commands" >&6;}
14688 case $ac_file$ac_mode in
14691 ### Make the necessary directories, if they don't exist.
14692 for dir
in etc lisp
; do
14693 test -d ${dir} || mkdir
${dir}
14696 # Build src/Makefile from ${srcdir}/src/Makefile.c
14697 # and lib-src/Makefile from ${srcdir}/lib-src/Makefile.c
14698 # This must be done after src/config.h is built, since we rely on that file.
14700 echo creating src
/epaths.h
14701 ${MAKE-make} epaths-force
14703 # As of 2000-11-19, newest development versions of GNU cpp preprocess
14704 # `..' to `. .' unless invoked with -traditional
14706 if test "x$GCC" = xyes
&& test "x$CPP_NEED_TRADITIONAL" = xyes
; then
14707 CPPFLAGS
="$CPPFLAGS -traditional"
14710 echo creating lib-src
/Makefile
14712 rm -f junk.c junk1.c junk2.c
14713 sed -e '/start of cpp stuff/q' \
14714 < Makefile.c
> junk1.c
14715 sed -e '1,/start of cpp stuff/d'\
14716 -e 's,/\*\*/#\(.*\)$,/* \1 */,' \
14717 < Makefile.c
> junk.c
14718 $CPP -P $cpp_undefs -I.
-I$srcdir/src
$CPPFLAGS junk.c | \
14719 sed -e 's/^ / /' -e '/^#/d' -e '/^[ \f]*$/d' > junk2.c
14720 cat junk1.c junk2.c
> Makefile.new
14721 rm -f junk.c junk1.c junk2.c
14722 chmod 444 Makefile.new
14723 mv -f Makefile.new Makefile
14726 echo creating src
/Makefile
14728 rm -f junk.c junk1.c junk2.c
14729 sed -e '/start of cpp stuff/q' \
14730 < Makefile.c
> junk1.c
14731 sed -e '1,/start of cpp stuff/d'\
14732 -e 's,/\*\*/#\(.*\)$,/* \1 */,' \
14733 < Makefile.c
> junk.c
14734 $CPP -P $cpp_undefs -I.
-I$srcdir/src
$CPPFLAGS junk.c | \
14735 sed -e 's/^ / /' -e '/^#/d' -e '/^[ \f]*$/d' > junk2.c
14736 cat junk1.c junk2.c
> Makefile.new
14737 rm -f junk.c junk1.c junk2.c
14738 chmod 444 Makefile.new
14739 mv -f Makefile.new Makefile
14742 if test ! -f src
/.gdbinit
&& test -f $srcdir/src
/.gdbinit
; then
14743 echo creating src
/.gdbinit
14744 echo source $srcdir/src
/.gdbinit
> src
/.gdbinit
14755 ac_clean_files
=$ac_clean_files_save
14757 test $ac_write_fail = 0 ||
14758 as_fn_error
"write failure creating $CONFIG_STATUS" "$LINENO" 5
14761 # configure is writing to config.log, and then calls config.status.
14762 # config.status does its own redirection, appending to config.log.
14763 # Unfortunately, on DOS this fails, as config.log is still kept open
14764 # by configure, so config.status won't be able to write to it; its
14765 # output is simply discarded. So we exec the FD to /dev/null,
14766 # effectively closing config.log, so it can be properly (re)opened and
14767 # appended to by config.status. When coming back to configure, we
14768 # need to make the FD available again.
14769 if test "$no_create" != yes; then
14771 ac_config_status_args
=
14772 test "$silent" = yes &&
14773 ac_config_status_args
="$ac_config_status_args --quiet"
14775 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success
=false
14777 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
14778 # would make configure fail if this is the last instruction.
14779 $ac_cs_success || as_fn_exit $?
14781 if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no
; then
14782 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
14783 $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}