2 # Guess values for system-dependent variables and create Makefiles.
3 # Generated by GNU Autoconf 2.65 for emacs 24.0.50.
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
='24.0.50'
553 PACKAGE_STRING
='emacs 24.0.50'
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
603 LD_SWITCH_SYSTEM_TEMACS
636 x_default_search_path
706 LD_SWITCH_X_SITE_AUX_RPATH
783 program_transform_name
794 ac_subst_files
='deps_frag
797 enable_option_checking
819 with_toolkit_scroll_bars
833 enable_ns_self_contained
835 enable_maintainer_mode
838 enable_use_lisp_union_type
844 ac_precious_vars
='build_alias
856 # Initialize some variables set by options.
858 ac_init_version
=false
859 ac_unrecognized_opts
=
861 # The variables have the same names as the options, with
862 # dashes changed to underlines.
870 program_transform_name
=s
,x
,x
,
878 # Installation directory options.
879 # These are left unexpanded so users can "make install exec_prefix=/foo"
880 # and all the variables that are supposed to be based on exec_prefix
881 # by default will actually change.
882 # Use braces instead of parens because sh, perl, etc. also accept them.
883 # (The list follows the same order as the GNU Coding Standards.)
884 bindir
='${exec_prefix}/bin'
885 sbindir
='${exec_prefix}/sbin'
886 libexecdir
='${exec_prefix}/libexec'
887 datarootdir
='${prefix}/share'
888 datadir
='${datarootdir}'
889 sysconfdir
='${prefix}/etc'
890 sharedstatedir
='${prefix}/com'
891 localstatedir
='${prefix}/var'
892 includedir
='${prefix}/include'
893 oldincludedir
='/usr/include'
894 docdir
='${datarootdir}/doc/${PACKAGE_TARNAME}'
895 infodir
='${datarootdir}/info'
900 libdir
='${exec_prefix}/lib'
901 localedir
='${datarootdir}/locale'
902 mandir
='${datarootdir}/man'
908 # If the previous option needs an argument, assign it.
909 if test -n "$ac_prev"; then
910 eval $ac_prev=\
$ac_option
916 *=*) ac_optarg
=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
920 # Accept the important Cygnus configure options, so we can diagnose typos.
922 case $ac_dashdash$ac_option in
926 -bindir |
--bindir |
--bindi |
--bind |
--bin |
--bi)
928 -bindir=* |
--bindir=* |
--bindi=* |
--bind=* |
--bin=* |
--bi=*)
931 -build |
--build |
--buil |
--bui |
--bu)
932 ac_prev
=build_alias
;;
933 -build=* |
--build=* |
--buil=* |
--bui=* |
--bu=*)
934 build_alias
=$ac_optarg ;;
936 -cache-file |
--cache-file |
--cache-fil |
--cache-fi \
937 |
--cache-f |
--cache- |
--cache |
--cach |
--cac |
--ca |
--c)
938 ac_prev
=cache_file
;;
939 -cache-file=* |
--cache-file=* |
--cache-fil=* |
--cache-fi=* \
940 |
--cache-f=* |
--cache-=* |
--cache=* |
--cach=* |
--cac=* |
--ca=* |
--c=*)
941 cache_file
=$ac_optarg ;;
944 cache_file
=config.cache
;;
946 -datadir |
--datadir |
--datadi |
--datad)
948 -datadir=* |
--datadir=* |
--datadi=* |
--datad=*)
949 datadir
=$ac_optarg ;;
951 -datarootdir |
--datarootdir |
--datarootdi |
--datarootd |
--dataroot \
952 |
--dataroo |
--dataro |
--datar)
953 ac_prev
=datarootdir
;;
954 -datarootdir=* |
--datarootdir=* |
--datarootdi=* |
--datarootd=* \
955 |
--dataroot=* |
--dataroo=* |
--dataro=* |
--datar=*)
956 datarootdir
=$ac_optarg ;;
958 -disable-* |
--disable-*)
959 ac_useropt
=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
960 # Reject names that are not valid shell variable names.
961 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev
/null
&&
962 as_fn_error
"invalid feature name: $ac_useropt"
963 ac_useropt_orig
=$ac_useropt
964 ac_useropt
=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
965 case $ac_user_opts in
969 *) ac_unrecognized_opts
="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
970 ac_unrecognized_sep
=', ';;
972 eval enable_
$ac_useropt=no
;;
974 -docdir |
--docdir |
--docdi |
--doc |
--do)
976 -docdir=* |
--docdir=* |
--docdi=* |
--doc=* |
--do=*)
979 -dvidir |
--dvidir |
--dvidi |
--dvid |
--dvi |
--dv)
981 -dvidir=* |
--dvidir=* |
--dvidi=* |
--dvid=* |
--dvi=* |
--dv=*)
984 -enable-* |
--enable-*)
985 ac_useropt
=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
986 # Reject names that are not valid shell variable names.
987 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev
/null
&&
988 as_fn_error
"invalid feature name: $ac_useropt"
989 ac_useropt_orig
=$ac_useropt
990 ac_useropt
=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
991 case $ac_user_opts in
995 *) ac_unrecognized_opts
="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
996 ac_unrecognized_sep
=', ';;
998 eval enable_
$ac_useropt=\
$ac_optarg ;;
1000 -exec-prefix |
--exec_prefix |
--exec-prefix |
--exec-prefi \
1001 |
--exec-pref |
--exec-pre |
--exec-pr |
--exec-p |
--exec- \
1002 |
--exec |
--exe |
--ex)
1003 ac_prev
=exec_prefix
;;
1004 -exec-prefix=* |
--exec_prefix=* |
--exec-prefix=* |
--exec-prefi=* \
1005 |
--exec-pref=* |
--exec-pre=* |
--exec-pr=* |
--exec-p=* |
--exec-=* \
1006 |
--exec=* |
--exe=* |
--ex=*)
1007 exec_prefix
=$ac_optarg ;;
1009 -gas |
--gas |
--ga |
--g)
1010 # Obsolete; use --with-gas.
1013 -help |
--help |
--hel |
--he |
-h)
1014 ac_init_help
=long
;;
1015 -help=r
* |
--help=r
* |
--hel=r
* |
--he=r
* |
-hr*)
1016 ac_init_help
=recursive
;;
1017 -help=s
* |
--help=s
* |
--hel=s
* |
--he=s
* |
-hs*)
1018 ac_init_help
=short
;;
1020 -host |
--host |
--hos |
--ho)
1021 ac_prev
=host_alias
;;
1022 -host=* |
--host=* |
--hos=* |
--ho=*)
1023 host_alias
=$ac_optarg ;;
1025 -htmldir |
--htmldir |
--htmldi |
--htmld |
--html |
--htm |
--ht)
1027 -htmldir=* |
--htmldir=* |
--htmldi=* |
--htmld=* |
--html=* |
--htm=* \
1029 htmldir
=$ac_optarg ;;
1031 -includedir |
--includedir |
--includedi |
--included |
--include \
1032 |
--includ |
--inclu |
--incl |
--inc)
1033 ac_prev
=includedir
;;
1034 -includedir=* |
--includedir=* |
--includedi=* |
--included=* |
--include=* \
1035 |
--includ=* |
--inclu=* |
--incl=* |
--inc=*)
1036 includedir
=$ac_optarg ;;
1038 -infodir |
--infodir |
--infodi |
--infod |
--info |
--inf)
1040 -infodir=* |
--infodir=* |
--infodi=* |
--infod=* |
--info=* |
--inf=*)
1041 infodir
=$ac_optarg ;;
1043 -libdir |
--libdir |
--libdi |
--libd)
1045 -libdir=* |
--libdir=* |
--libdi=* |
--libd=*)
1046 libdir
=$ac_optarg ;;
1048 -libexecdir |
--libexecdir |
--libexecdi |
--libexecd |
--libexec \
1049 |
--libexe |
--libex |
--libe)
1050 ac_prev
=libexecdir
;;
1051 -libexecdir=* |
--libexecdir=* |
--libexecdi=* |
--libexecd=* |
--libexec=* \
1052 |
--libexe=* |
--libex=* |
--libe=*)
1053 libexecdir
=$ac_optarg ;;
1055 -localedir |
--localedir |
--localedi |
--localed |
--locale)
1056 ac_prev
=localedir
;;
1057 -localedir=* |
--localedir=* |
--localedi=* |
--localed=* |
--locale=*)
1058 localedir
=$ac_optarg ;;
1060 -localstatedir |
--localstatedir |
--localstatedi |
--localstated \
1061 |
--localstate |
--localstat |
--localsta |
--localst |
--locals)
1062 ac_prev
=localstatedir
;;
1063 -localstatedir=* |
--localstatedir=* |
--localstatedi=* |
--localstated=* \
1064 |
--localstate=* |
--localstat=* |
--localsta=* |
--localst=* |
--locals=*)
1065 localstatedir
=$ac_optarg ;;
1067 -mandir |
--mandir |
--mandi |
--mand |
--man |
--ma |
--m)
1069 -mandir=* |
--mandir=* |
--mandi=* |
--mand=* |
--man=* |
--ma=* |
--m=*)
1070 mandir
=$ac_optarg ;;
1072 -nfp |
--nfp |
--nf)
1073 # Obsolete; use --without-fp.
1076 -no-create |
--no-create |
--no-creat |
--no-crea |
--no-cre \
1077 |
--no-cr |
--no-c |
-n)
1080 -no-recursion |
--no-recursion |
--no-recursio |
--no-recursi \
1081 |
--no-recurs |
--no-recur |
--no-recu |
--no-rec |
--no-re |
--no-r)
1084 -oldincludedir |
--oldincludedir |
--oldincludedi |
--oldincluded \
1085 |
--oldinclude |
--oldinclud |
--oldinclu |
--oldincl |
--oldinc \
1086 |
--oldin |
--oldi |
--old |
--ol |
--o)
1087 ac_prev
=oldincludedir
;;
1088 -oldincludedir=* |
--oldincludedir=* |
--oldincludedi=* |
--oldincluded=* \
1089 |
--oldinclude=* |
--oldinclud=* |
--oldinclu=* |
--oldincl=* |
--oldinc=* \
1090 |
--oldin=* |
--oldi=* |
--old=* |
--ol=* |
--o=*)
1091 oldincludedir
=$ac_optarg ;;
1093 -prefix |
--prefix |
--prefi |
--pref |
--pre |
--pr |
--p)
1095 -prefix=* |
--prefix=* |
--prefi=* |
--pref=* |
--pre=* |
--pr=* |
--p=*)
1096 prefix
=$ac_optarg ;;
1098 -program-prefix |
--program-prefix |
--program-prefi |
--program-pref \
1099 |
--program-pre |
--program-pr |
--program-p)
1100 ac_prev
=program_prefix
;;
1101 -program-prefix=* |
--program-prefix=* |
--program-prefi=* \
1102 |
--program-pref=* |
--program-pre=* |
--program-pr=* |
--program-p=*)
1103 program_prefix
=$ac_optarg ;;
1105 -program-suffix |
--program-suffix |
--program-suffi |
--program-suff \
1106 |
--program-suf |
--program-su |
--program-s)
1107 ac_prev
=program_suffix
;;
1108 -program-suffix=* |
--program-suffix=* |
--program-suffi=* \
1109 |
--program-suff=* |
--program-suf=* |
--program-su=* |
--program-s=*)
1110 program_suffix
=$ac_optarg ;;
1112 -program-transform-name |
--program-transform-name \
1113 |
--program-transform-nam |
--program-transform-na \
1114 |
--program-transform-n |
--program-transform- \
1115 |
--program-transform |
--program-transfor \
1116 |
--program-transfo |
--program-transf \
1117 |
--program-trans |
--program-tran \
1118 |
--progr-tra |
--program-tr |
--program-t)
1119 ac_prev
=program_transform_name
;;
1120 -program-transform-name=* |
--program-transform-name=* \
1121 |
--program-transform-nam=* |
--program-transform-na=* \
1122 |
--program-transform-n=* |
--program-transform-=* \
1123 |
--program-transform=* |
--program-transfor=* \
1124 |
--program-transfo=* |
--program-transf=* \
1125 |
--program-trans=* |
--program-tran=* \
1126 |
--progr-tra=* |
--program-tr=* |
--program-t=*)
1127 program_transform_name
=$ac_optarg ;;
1129 -pdfdir |
--pdfdir |
--pdfdi |
--pdfd |
--pdf |
--pd)
1131 -pdfdir=* |
--pdfdir=* |
--pdfdi=* |
--pdfd=* |
--pdf=* |
--pd=*)
1132 pdfdir
=$ac_optarg ;;
1134 -psdir |
--psdir |
--psdi |
--psd |
--ps)
1136 -psdir=* |
--psdir=* |
--psdi=* |
--psd=* |
--ps=*)
1139 -q |
-quiet |
--quiet |
--quie |
--qui |
--qu |
--q \
1140 |
-silent |
--silent |
--silen |
--sile |
--sil)
1143 -sbindir |
--sbindir |
--sbindi |
--sbind |
--sbin |
--sbi |
--sb)
1145 -sbindir=* |
--sbindir=* |
--sbindi=* |
--sbind=* |
--sbin=* \
1147 sbindir
=$ac_optarg ;;
1149 -sharedstatedir |
--sharedstatedir |
--sharedstatedi \
1150 |
--sharedstated |
--sharedstate |
--sharedstat |
--sharedsta \
1151 |
--sharedst |
--shareds |
--shared |
--share |
--shar \
1153 ac_prev
=sharedstatedir
;;
1154 -sharedstatedir=* |
--sharedstatedir=* |
--sharedstatedi=* \
1155 |
--sharedstated=* |
--sharedstate=* |
--sharedstat=* |
--sharedsta=* \
1156 |
--sharedst=* |
--shareds=* |
--shared=* |
--share=* |
--shar=* \
1158 sharedstatedir
=$ac_optarg ;;
1160 -site |
--site |
--sit)
1162 -site=* |
--site=* |
--sit=*)
1165 -srcdir |
--srcdir |
--srcdi |
--srcd |
--src |
--sr)
1167 -srcdir=* |
--srcdir=* |
--srcdi=* |
--srcd=* |
--src=* |
--sr=*)
1168 srcdir
=$ac_optarg ;;
1170 -sysconfdir |
--sysconfdir |
--sysconfdi |
--sysconfd |
--sysconf \
1171 |
--syscon |
--sysco |
--sysc |
--sys |
--sy)
1172 ac_prev
=sysconfdir
;;
1173 -sysconfdir=* |
--sysconfdir=* |
--sysconfdi=* |
--sysconfd=* |
--sysconf=* \
1174 |
--syscon=* |
--sysco=* |
--sysc=* |
--sys=* |
--sy=*)
1175 sysconfdir
=$ac_optarg ;;
1177 -target |
--target |
--targe |
--targ |
--tar |
--ta |
--t)
1178 ac_prev
=target_alias
;;
1179 -target=* |
--target=* |
--targe=* |
--targ=* |
--tar=* |
--ta=* |
--t=*)
1180 target_alias
=$ac_optarg ;;
1182 -v |
-verbose |
--verbose |
--verbos |
--verbo |
--verb)
1185 -version |
--version |
--versio |
--versi |
--vers |
-V)
1186 ac_init_version
=: ;;
1189 ac_useropt
=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1190 # Reject names that are not valid shell variable names.
1191 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev
/null
&&
1192 as_fn_error
"invalid package name: $ac_useropt"
1193 ac_useropt_orig
=$ac_useropt
1194 ac_useropt
=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1195 case $ac_user_opts in
1199 *) ac_unrecognized_opts
="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1200 ac_unrecognized_sep
=', ';;
1202 eval with_
$ac_useropt=\
$ac_optarg ;;
1204 -without-* |
--without-*)
1205 ac_useropt
=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1206 # Reject names that are not valid shell variable names.
1207 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev
/null
&&
1208 as_fn_error
"invalid package name: $ac_useropt"
1209 ac_useropt_orig
=$ac_useropt
1210 ac_useropt
=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1211 case $ac_user_opts in
1215 *) ac_unrecognized_opts
="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1216 ac_unrecognized_sep
=', ';;
1218 eval with_
$ac_useropt=no
;;
1221 # Obsolete; use --with-x.
1224 -x-includes |
--x-includes |
--x-include |
--x-includ |
--x-inclu \
1225 |
--x-incl |
--x-inc |
--x-in |
--x-i)
1226 ac_prev
=x_includes
;;
1227 -x-includes=* |
--x-includes=* |
--x-include=* |
--x-includ=* |
--x-inclu=* \
1228 |
--x-incl=* |
--x-inc=* |
--x-in=* |
--x-i=*)
1229 x_includes
=$ac_optarg ;;
1231 -x-libraries |
--x-libraries |
--x-librarie |
--x-librari \
1232 |
--x-librar |
--x-libra |
--x-libr |
--x-lib |
--x-li |
--x-l)
1233 ac_prev
=x_libraries
;;
1234 -x-libraries=* |
--x-libraries=* |
--x-librarie=* |
--x-librari=* \
1235 |
--x-librar=* |
--x-libra=* |
--x-libr=* |
--x-lib=* |
--x-li=* |
--x-l=*)
1236 x_libraries
=$ac_optarg ;;
1238 -*) as_fn_error
"unrecognized option: \`$ac_option'
1239 Try \`$0 --help' for more information."
1243 ac_envvar
=`expr "x$ac_option" : 'x\([^=]*\)='`
1244 # Reject names that are not valid shell variable names.
1245 case $ac_envvar in #(
1246 '' |
[0-9]* |
*[!_
$as_cr_alnum]* )
1247 as_fn_error
"invalid variable name: \`$ac_envvar'" ;;
1249 eval $ac_envvar=\
$ac_optarg
1250 export $ac_envvar ;;
1253 # FIXME: should be removed in autoconf 3.0.
1254 $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1255 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev
/null
&&
1256 $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1257 : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
1263 if test -n "$ac_prev"; then
1264 ac_option
=--`echo $ac_prev | sed 's/_/-/g'`
1265 as_fn_error
"missing argument to $ac_option"
1268 if test -n "$ac_unrecognized_opts"; then
1269 case $enable_option_checking in
1271 fatal
) as_fn_error
"unrecognized options: $ac_unrecognized_opts" ;;
1272 *) $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
1276 # Check all directory arguments for consistency.
1277 for ac_var
in exec_prefix prefix bindir sbindir libexecdir datarootdir \
1278 datadir sysconfdir sharedstatedir localstatedir includedir \
1279 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1280 libdir localedir mandir
1282 eval ac_val
=\$
$ac_var
1283 # Remove trailing slashes.
1286 ac_val
=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1287 eval $ac_var=\
$ac_val;;
1289 # Be sure to have absolute directory names.
1291 [\\/$
]* | ?
:[\\/]* ) continue;;
1292 NONE |
'' ) case $ac_var in *prefix
) continue;; esac;;
1294 as_fn_error
"expected an absolute directory name for --$ac_var: $ac_val"
1297 # There might be people who depend on the old broken behavior: `$host'
1298 # used to hold the argument of --host etc.
1299 # FIXME: To remove some day.
1302 target
=$target_alias
1304 # FIXME: To remove some day.
1305 if test "x$host_alias" != x
; then
1306 if test "x$build_alias" = x
; then
1307 cross_compiling
=maybe
1308 $as_echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
1309 If a cross compiler is detected then cross compile mode will be used." >&2
1310 elif test "x$build_alias" != "x$host_alias"; then
1316 test -n "$host_alias" && ac_tool_prefix
=$host_alias-
1318 test "$silent" = yes && exec 6>/dev
/null
1321 ac_pwd
=`pwd` && test -n "$ac_pwd" &&
1322 ac_ls_di
=`ls -di .` &&
1323 ac_pwd_ls_di
=`cd "$ac_pwd" && ls -di .` ||
1324 as_fn_error
"working directory cannot be determined"
1325 test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1326 as_fn_error
"pwd does not report name of working directory"
1329 # Find the source files, if location was not specified.
1330 if test -z "$srcdir"; then
1331 ac_srcdir_defaulted
=yes
1332 # Try the directory containing this script, then the parent directory.
1333 ac_confdir
=`$as_dirname -- "$as_myself" ||
1334 $as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1335 X"$as_myself" : 'X\(//\)[^/]' \| \
1336 X"$as_myself" : 'X\(//\)$' \| \
1337 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1338 $as_echo X"$as_myself" |
1339 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1357 if test ! -r "$srcdir/$ac_unique_file"; then
1361 ac_srcdir_defaulted
=no
1363 if test ! -r "$srcdir/$ac_unique_file"; then
1364 test "$ac_srcdir_defaulted" = yes && srcdir
="$ac_confdir or .."
1365 as_fn_error
"cannot find sources ($ac_unique_file) in $srcdir"
1367 ac_msg
="sources are in $srcdir, but \`cd $srcdir' does not work"
1369 cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error "$ac_msg"
1371 # When building in place, set srcdir=.
1372 if test "$ac_abs_confdir" = "$ac_pwd"; then
1375 # Remove unnecessary trailing slashes from srcdir.
1376 # Double slashes in file names in object file debugging info
1377 # mess up M-x gdb in Emacs.
1379 */) srcdir
=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1381 for ac_var
in $ac_precious_vars; do
1382 eval ac_env_
${ac_var}_set=\${${ac_var}+set}
1383 eval ac_env_
${ac_var}_value
=\$
${ac_var}
1384 eval ac_cv_env_
${ac_var}_set=\${${ac_var}+set}
1385 eval ac_cv_env_
${ac_var}_value
=\$
${ac_var}
1389 # Report the --help message.
1391 if test "$ac_init_help" = "long"; then
1392 # Omit some internal or obsolete options to make the list less imposing.
1393 # This message is too long to be a string in the A/UX 3.1 sh.
1395 \`configure' configures emacs 24.0.50 to adapt to many kinds of systems.
1397 Usage: $0 [OPTION]... [VAR=VALUE]...
1399 To assign environment variables (e.g., CC, CFLAGS...), specify them as
1400 VAR=VALUE. See below for descriptions of some of the useful variables.
1402 Defaults for the options are specified in brackets.
1405 -h, --help display this help and exit
1406 --help=short display options specific to this package
1407 --help=recursive display the short help of all the included packages
1408 -V, --version display version information and exit
1409 -q, --quiet, --silent do not print \`checking...' messages
1410 --cache-file=FILE cache test results in FILE [disabled]
1411 -C, --config-cache alias for \`--cache-file=config.cache'
1412 -n, --no-create do not create output files
1413 --srcdir=DIR find the sources in DIR [configure dir or \`..']
1415 Installation directories:
1416 --prefix=PREFIX install architecture-independent files in PREFIX
1417 [$ac_default_prefix]
1418 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
1421 By default, \`make install' will install all the files in
1422 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
1423 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1424 for instance \`--prefix=\$HOME'.
1426 For better control, use the options below.
1428 Fine tuning of the installation directories:
1429 --bindir=DIR user executables [EPREFIX/bin]
1430 --sbindir=DIR system admin executables [EPREFIX/sbin]
1431 --libexecdir=DIR program executables [EPREFIX/libexec]
1432 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
1433 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
1434 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
1435 --libdir=DIR object code libraries [EPREFIX/lib]
1436 --includedir=DIR C header files [PREFIX/include]
1437 --oldincludedir=DIR C header files for non-gcc [/usr/include]
1438 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
1439 --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
1440 --infodir=DIR info documentation [DATAROOTDIR/info]
1441 --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
1442 --mandir=DIR man documentation [DATAROOTDIR/man]
1443 --docdir=DIR documentation root [DATAROOTDIR/doc/emacs]
1444 --htmldir=DIR html documentation [DOCDIR]
1445 --dvidir=DIR dvi documentation [DOCDIR]
1446 --pdfdir=DIR pdf documentation [DOCDIR]
1447 --psdir=DIR ps documentation [DOCDIR]
1453 --program-prefix=PREFIX prepend PREFIX to installed program names
1454 --program-suffix=SUFFIX append SUFFIX to installed program names
1455 --program-transform-name=PROGRAM run
sed PROGRAM on installed program names
1458 --x-includes=DIR X include files are
in DIR
1459 --x-libraries=DIR X library files are
in DIR
1462 --build=BUILD configure
for building on BUILD
[guessed
]
1463 --host=HOST cross-compile to build programs to run on HOST
[BUILD
]
1467 if test -n "$ac_init_help"; then
1468 case $ac_init_help in
1469 short | recursive
) echo "Configuration of emacs 24.0.50:";;
1474 --disable-option-checking ignore unrecognized
--enable/--with options
1475 --disable-FEATURE do not include FEATURE
(same as
--enable-FEATURE=no
)
1476 --enable-FEATURE[=ARG
] include FEATURE
[ARG
=yes]
1477 --disable-ns-self-contained
1478 disable self contained build under NeXTstep
1479 --enable-asserts compile code with asserts enabled
1480 --enable-maintainer-mode
1481 enable make rules and dependencies not useful
(and
1482 sometimes confusing
) to the casual installer
1483 --enable-locallisppath=PATH
1484 directories Emacs should search
for lisp files
1485 specific to this site
1486 --enable-checking[=LIST
]
1487 enable expensive run-time checks. With LIST
, enable
1488 only specific categories of checks. Categories are
:
1489 all
,yes,no. Flags are
: stringbytes
, stringoverrun
,
1490 stringfreelist
, xmallocoverrun
, conslist
1491 --enable-use-lisp-union-type
1492 use a union
for the Lisp_Object data
type. This is
1493 only useful
for development
for catching certain
1495 --enable-profiling build emacs with profiling support. This might not
1496 work on all platforms
1497 --enable-autodepend automatically generate dependencies to .h-files.
1498 Requires GNU Make and Gcc. Enabled
if GNU Make and
1500 --disable-largefile omit support
for large files
1503 --with-PACKAGE[=ARG
] use PACKAGE
[ARG
=yes]
1504 --without-PACKAGE do not use PACKAGE
(same as
--with-PACKAGE=no
)
1505 --without-pop don
't support POP mail retrieval with movemail
1506 --with-kerberos support Kerberos-authenticated POP
1507 --with-kerberos5 support Kerberos version 5 authenticated POP
1508 --with-hesiod support Hesiod to get the POP server host
1509 --with-mmdf support MMDF mailboxes
1510 --with-mail-unlink unlink, rather than empty, mail spool after reading
1511 --with-mailhost=HOSTNAME
1512 string giving default POP mail host
1513 --without-sound don't compile with sound support
1514 --without-sync-input process async input synchronously
1515 --with-x-toolkit=KIT use an X toolkit
(KIT one of
: yes or gtk
, gtk3
,
1516 lucid or athena
, motif
, no
)
1517 --without-xpm don
't compile with XPM image support
1518 --without-jpeg don't compile with JPEG image support
1519 --without-tiff don
't compile with TIFF image support
1520 --without-gif don't compile with GIF image support
1521 --without-png don
't compile with PNG image support
1522 --without-rsvg don't compile with SVG image support
1523 --without-xml2 don
't compile with XML parsing support
1524 --without-imagemagick don't compile with ImageMagick image support
1525 --without-xft don
't use XFT for anti aliased fonts
1526 --without-libotf don't use libotf
for OpenType font support
1527 --without-m17n-flt don
't use m17n-flt for text shaping
1528 --without-toolkit-scroll-bars
1529 don't use Motif or Xaw3d scroll bars
1530 --without-xaw3d don
't use Xaw3d
1531 --without-xim don't use X11 XIM
1532 --with-ns use nextstep
(Cocoa or GNUstep
) windowing system
1533 --without-gpm don
't use -lgpm for mouse support on a GNU/Linux
1535 --without-dbus don't compile with D-Bus support
1536 --without-gconf don
't compile with GConf support
1537 --without-selinux don't compile with SELinux support
1538 --without-gnutls don
't use -lgnutls for SSL/TLS support
1539 --without-makeinfo don't require makeinfo
for building manuals
1540 --without-compress-info don
't compress the installed Info pages
1541 --with-pkg-config-prog=PATH
1542 path to pkg-config for finding GTK and librsvg
1543 --with-crt-dir=DIR directory containing crtn.o etc. The default is
1544 /usr/lib, or /usr/lib64 on some platforms.
1545 --with-gnustep-conf=PATH
1546 path to GNUstep.conf; default $GNUSTEP_CONFIG_FILE,
1547 or /etc/GNUstep/GNUstep.conf
1548 --with-x use the X Window System
1550 Some influential environment variables:
1551 CC C compiler command
1552 CFLAGS C compiler flags
1553 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
1554 nonstandard directory <lib dir>
1555 LIBS libraries to pass to the linker, e.g. -l<library>
1556 CPPFLAGS (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if
1557 you have headers in a nonstandard directory <include dir>
1559 XMKMF Path to xmkmf, Makefile generator for X Window System
1561 Use these variables to override the choices made by `configure' or to
help
1562 it to
find libraries and programs with nonstandard names
/locations.
1564 Report bugs to the package provider.
1569 if test "$ac_init_help" = "recursive"; then
1570 # If there are subdirs, report their specific --help.
1571 for ac_dir
in : $ac_subdirs_all; do test "x$ac_dir" = x
: && continue
1572 test -d "$ac_dir" ||
1573 { cd "$srcdir" && ac_pwd
=`pwd` && srcdir
=.
&& test -d "$ac_dir"; } ||
1578 .
) ac_dir_suffix
= ac_top_builddir_sub
=. ac_top_build_prefix
= ;;
1580 ac_dir_suffix
=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
1581 # A ".." for each directory in $ac_dir_suffix.
1582 ac_top_builddir_sub
=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
1583 case $ac_top_builddir_sub in
1584 "") ac_top_builddir_sub
=. ac_top_build_prefix
= ;;
1585 *) ac_top_build_prefix
=$ac_top_builddir_sub/ ;;
1588 ac_abs_top_builddir
=$ac_pwd
1589 ac_abs_builddir
=$ac_pwd$ac_dir_suffix
1590 # for backward compatibility:
1591 ac_top_builddir
=$ac_top_build_prefix
1594 .
) # We are building in place.
1596 ac_top_srcdir
=$ac_top_builddir_sub
1597 ac_abs_top_srcdir
=$ac_pwd ;;
1598 [\\/]* | ?
:[\\/]* ) # Absolute name.
1599 ac_srcdir
=$srcdir$ac_dir_suffix;
1600 ac_top_srcdir
=$srcdir
1601 ac_abs_top_srcdir
=$srcdir ;;
1603 ac_srcdir
=$ac_top_build_prefix$srcdir$ac_dir_suffix
1604 ac_top_srcdir
=$ac_top_build_prefix$srcdir
1605 ac_abs_top_srcdir
=$ac_pwd/$srcdir ;;
1607 ac_abs_srcdir
=$ac_abs_top_srcdir$ac_dir_suffix
1609 cd "$ac_dir" ||
{ ac_status
=$?
; continue; }
1610 # Check for guested configure.
1611 if test -f "$ac_srcdir/configure.gnu"; then
1613 $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1614 elif test -f "$ac_srcdir/configure"; then
1616 $SHELL "$ac_srcdir/configure" --help=recursive
1618 $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1620 cd "$ac_pwd" ||
{ ac_status
=$?
; break; }
1624 test -n "$ac_init_help" && exit $ac_status
1625 if $ac_init_version; then
1627 emacs configure
24.0.50
1628 generated by GNU Autoconf
2.65
1630 Copyright
(C
) 2009 Free Software Foundation
, Inc.
1631 This configure
script is free software
; the Free Software Foundation
1632 gives unlimited permission to copy
, distribute and modify it.
1637 ## ------------------------ ##
1638 ## Autoconf initialization. ##
1639 ## ------------------------ ##
1641 # ac_fn_c_try_compile LINENO
1642 # --------------------------
1643 # Try to compile conftest.$ac_ext, and return whether this succeeded.
1644 ac_fn_c_try_compile
()
1646 as_lineno
=${as_lineno-"$1"} as_lineno_stack
=as_lineno_stack
=$as_lineno_stack
1647 rm -f conftest.
$ac_objext
1648 if { { ac_try
="$ac_compile"
1650 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
1651 *) ac_try_echo=$ac_try;;
1653 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1654 $as_echo "$ac_try_echo"; } >&5
1655 (eval "$ac_compile") 2>conftest.err
1657 if test -s conftest.err; then
1658 grep -v '^ *+' conftest.err >conftest.er1
1659 cat conftest.er1 >&5
1660 mv -f conftest.er1 conftest.err
1662 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1663 test $ac_status = 0; } && {
1664 test -z "$ac_c_werror_flag" ||
1665 test ! -s conftest.err
1666 } && test -s conftest.$ac_objext; then :
1669 $as_echo "$as_me: failed program was:" >&5
1670 sed 's/^/| /' conftest.$ac_ext >&5
1674 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1675 as_fn_set_status $ac_retval
1677 } # ac_fn_c_try_compile
1679 # ac_fn_c_try_link LINENO
1680 # -----------------------
1681 # Try to link conftest.$ac_ext, and return whether this succeeded.
1684 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1685 rm -f conftest.$ac_objext conftest$ac_exeext
1686 if { { ac_try="$ac_link"
1688 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
1689 *) ac_try_echo
=$ac_try;;
1691 eval ac_try_echo
="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1692 $as_echo "$ac_try_echo"; } >&5
1693 (eval "$ac_link") 2>conftest.err
1695 if test -s conftest.err
; then
1696 grep -v '^ *+' conftest.err
>conftest.er1
1697 cat conftest.er1
>&5
1698 mv -f conftest.er1 conftest.err
1700 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1701 test $ac_status = 0; } && {
1702 test -z "$ac_c_werror_flag" ||
1703 test ! -s conftest.err
1704 } && test -s conftest
$ac_exeext && {
1705 test "$cross_compiling" = yes ||
1706 $as_test_x conftest
$ac_exeext
1710 $as_echo "$as_me: failed program was:" >&5
1711 sed 's/^/| /' conftest.
$ac_ext >&5
1715 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
1716 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
1717 # interfere with the next link command; also delete a directory that is
1718 # left behind by Apple's compiler. We do this before executing the actions.
1719 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1720 eval $as_lineno_stack; test "x$as_lineno_stack" = x
&& { as_lineno
=; unset as_lineno
;}
1721 as_fn_set_status
$ac_retval
1723 } # ac_fn_c_try_link
1725 # ac_fn_c_try_cpp LINENO
1726 # ----------------------
1727 # Try to preprocess conftest.$ac_ext, and return whether this succeeded.
1730 as_lineno
=${as_lineno-"$1"} as_lineno_stack
=as_lineno_stack
=$as_lineno_stack
1731 if { { ac_try
="$ac_cpp conftest.$ac_ext"
1733 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
1734 *) ac_try_echo=$ac_try;;
1736 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1737 $as_echo "$ac_try_echo"; } >&5
1738 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
1740 if test -s conftest.err; then
1741 grep -v '^ *+' conftest.err >conftest.er1
1742 cat conftest.er1 >&5
1743 mv -f conftest.er1 conftest.err
1745 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1746 test $ac_status = 0; } >/dev/null && {
1747 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
1748 test ! -s conftest.err
1752 $as_echo "$as_me: failed program was:" >&5
1753 sed 's/^/| /' conftest.$ac_ext >&5
1757 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1758 as_fn_set_status $ac_retval
1762 # ac_fn_c_check_header_mongrel LINENO HEADER VAR INCLUDES
1763 # -------------------------------------------------------
1764 # Tests whether HEADER exists, giving a warning if it cannot be compiled using
1765 # the include files in INCLUDES and setting the cache variable VAR
1767 ac_fn_c_check_header_mongrel ()
1769 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1770 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
1771 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1772 $as_echo_n "checking for $2... " >&6; }
1773 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
1774 $as_echo_n "(cached) " >&6
1777 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1778 $as_echo "$ac_res" >&6; }
1780 # Is the header compilable?
1781 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5
1782 $as_echo_n "checking $2 usability... " >&6; }
1783 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1784 /* end confdefs.h. */
1788 if ac_fn_c_try_compile "$LINENO"; then :
1789 ac_header_compiler=yes
1791 ac_header_compiler=no
1793 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1794 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5
1795 $as_echo "$ac_header_compiler" >&6; }
1797 # Is the header present?
1798 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5
1799 $as_echo_n "checking $2 presence... " >&6; }
1800 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1801 /* end confdefs.h. */
1804 if ac_fn_c_try_cpp "$LINENO"; then :
1805 ac_header_preproc=yes
1807 ac_header_preproc=no
1809 rm -f conftest.err conftest.$ac_ext
1810 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5
1811 $as_echo "$ac_header_preproc" >&6; }
1813 # So? What about this header?
1814 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in #((
1816 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5
1817 $as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;}
1818 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
1819 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
1822 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5
1823 $as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;}
1824 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: check for missing prerequisite headers?" >&5
1825 $as_echo "$as_me: WARNING: $2: check for missing prerequisite headers?" >&2;}
1826 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5
1827 $as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;}
1828 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&5
1829 $as_echo "$as_me: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&2;}
1830 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
1831 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
1834 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1835 $as_echo_n "checking for $2... " >&6; }
1836 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
1837 $as_echo_n "(cached) " >&6
1839 eval "$3=\$ac_header_compiler"
1842 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1843 $as_echo "$ac_res" >&6; }
1845 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1847 } # ac_fn_c_check_header_mongrel
1849 # ac_fn_c_try_run LINENO
1850 # ----------------------
1851 # Try to link conftest.$ac_ext, and return whether this succeeded. Assumes
1852 # that executables *can* be run.
1855 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1856 if { { ac_try="$ac_link"
1858 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
1859 *) ac_try_echo
=$ac_try;;
1861 eval ac_try_echo
="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1862 $as_echo "$ac_try_echo"; } >&5
1863 (eval "$ac_link") 2>&5
1865 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1866 test $ac_status = 0; } && { ac_try
='./conftest$ac_exeext'
1867 { { case "(($ac_try" in
1868 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
1869 *) ac_try_echo=$ac_try;;
1871 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1872 $as_echo "$ac_try_echo"; } >&5
1873 (eval "$ac_try") 2>&5
1875 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1876 test $ac_status = 0; }; }; then :
1879 $as_echo "$as_me: program exited with status $ac_status" >&5
1880 $as_echo "$as_me: failed program was:" >&5
1881 sed 's/^/| /' conftest.$ac_ext >&5
1883 ac_retval=$ac_status
1885 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1886 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1887 as_fn_set_status $ac_retval
1891 # ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES
1892 # -------------------------------------------------------
1893 # Tests whether HEADER exists and can be compiled using the include files in
1894 # INCLUDES, setting the cache variable VAR accordingly.
1895 ac_fn_c_check_header_compile ()
1897 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1898 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1899 $as_echo_n "checking for $2... " >&6; }
1900 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
1901 $as_echo_n "(cached) " >&6
1903 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1904 /* end confdefs.h. */
1908 if ac_fn_c_try_compile "$LINENO"; then :
1913 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1916 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1917 $as_echo "$ac_res" >&6; }
1918 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1920 } # ac_fn_c_check_header_compile
1922 # ac_fn_c_check_decl LINENO SYMBOL VAR
1923 # ------------------------------------
1924 # Tests whether SYMBOL is declared, setting cache variable VAR accordingly.
1925 ac_fn_c_check_decl ()
1927 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1928 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $2 is declared" >&5
1929 $as_echo_n "checking whether $2 is declared... " >&6; }
1930 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
1931 $as_echo_n "(cached) " >&6
1933 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1934 /* end confdefs.h. */
1947 if ac_fn_c_try_compile "$LINENO"; then :
1952 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1955 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1956 $as_echo "$ac_res" >&6; }
1957 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1959 } # ac_fn_c_check_decl
1961 # ac_fn_c_check_header_preproc LINENO HEADER VAR
1962 # ----------------------------------------------
1963 # Tests whether HEADER is present, setting the cache variable VAR accordingly.
1964 ac_fn_c_check_header_preproc ()
1966 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1967 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1968 $as_echo_n "checking for $2... " >&6; }
1969 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
1970 $as_echo_n "(cached) " >&6
1972 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1973 /* end confdefs.h. */
1976 if ac_fn_c_try_cpp "$LINENO"; then :
1981 rm -f conftest.err conftest.$ac_ext
1984 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1985 $as_echo "$ac_res" >&6; }
1986 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1988 } # ac_fn_c_check_header_preproc
1990 # ac_fn_c_check_member LINENO AGGR MEMBER VAR INCLUDES
1991 # ----------------------------------------------------
1992 # Tries to find if the field MEMBER exists in type AGGR, after including
1993 # INCLUDES, setting cache variable VAR accordingly.
1994 ac_fn_c_check_member ()
1996 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1997 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2.$3" >&5
1998 $as_echo_n "checking for $2.$3... " >&6; }
1999 if { as_var=$4; eval "test \"\${$as_var+set}\" = set"; }; then :
2000 $as_echo_n "(cached) " >&6
2002 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2003 /* end confdefs.h. */
2015 if ac_fn_c_try_compile "$LINENO"; then :
2018 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2019 /* end confdefs.h. */
2025 if (sizeof ac_aggr.$3)
2031 if ac_fn_c_try_compile "$LINENO"; then :
2036 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2038 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2041 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2042 $as_echo "$ac_res" >&6; }
2043 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2045 } # ac_fn_c_check_member
2047 # ac_fn_c_check_func LINENO FUNC VAR
2048 # ----------------------------------
2049 # Tests whether FUNC exists, setting the cache variable VAR accordingly
2050 ac_fn_c_check_func ()
2052 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2053 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2054 $as_echo_n "checking for $2... " >&6; }
2055 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
2056 $as_echo_n "(cached) " >&6
2058 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2059 /* end confdefs.h. */
2060 /* Define $2 to an innocuous variant, in case <limits.h> declares $2.
2061 For example, HP-UX 11i <limits.h> declares gettimeofday. */
2062 #define $2 innocuous_$2
2064 /* System header to define __stub macros and hopefully few prototypes,
2065 which can conflict with char $2 (); below.
2066 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
2067 <limits.h> exists even on freestanding compilers. */
2070 # include <limits.h>
2072 # include <assert.h>
2077 /* Override any GCC internal prototype to avoid an error.
2078 Use char because int might match the return type of a GCC
2079 builtin and then its argument prototype would still apply. */
2084 /* The GNU C library defines this for functions which it implements
2085 to always fail with ENOSYS. Some functions are actually named
2086 something starting with __ and the normal name is an alias. */
2087 #if defined __stub_$2 || defined __stub___$2
2099 if ac_fn_c_try_link "$LINENO"; then :
2104 rm -f core conftest.err conftest.$ac_objext \
2105 conftest$ac_exeext conftest.$ac_ext
2108 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2109 $as_echo "$ac_res" >&6; }
2110 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2112 } # ac_fn_c_check_func
2114 # ac_fn_c_check_type LINENO TYPE VAR INCLUDES
2115 # -------------------------------------------
2116 # Tests whether TYPE exists after having included INCLUDES, setting cache
2117 # variable VAR accordingly.
2118 ac_fn_c_check_type ()
2120 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2121 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2122 $as_echo_n "checking for $2... " >&6; }
2123 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
2124 $as_echo_n "(cached) " >&6
2127 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2128 /* end confdefs.h. */
2139 if ac_fn_c_try_compile "$LINENO"; then :
2140 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2141 /* end confdefs.h. */
2152 if ac_fn_c_try_compile "$LINENO"; then :
2157 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2159 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2162 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2163 $as_echo "$ac_res" >&6; }
2164 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2166 } # ac_fn_c_check_type
2167 cat >config.log <<_ACEOF
2168 This file contains any messages produced by compilers while
2169 running configure, to aid debugging if configure makes a mistake.
2171 It was created by emacs $as_me 24.0.50, which was
2172 generated by GNU Autoconf 2.65. Invocation command line was
2184 hostname = `(hostname || uname
-n) 2>/dev
/null |
sed 1q
`
2185 uname -m = `(uname
-m) 2>/dev
/null ||
echo unknown
`
2186 uname -r = `(uname
-r) 2>/dev
/null ||
echo unknown
`
2187 uname -s = `(uname
-s) 2>/dev
/null ||
echo unknown
`
2188 uname -v = `(uname
-v) 2>/dev
/null ||
echo unknown
`
2190 /usr/bin/uname -p = `(/usr
/bin
/uname
-p) 2>/dev
/null ||
echo unknown
`
2191 /bin/uname -X = `(/bin
/uname
-X) 2>/dev
/null ||
echo unknown
`
2193 /bin/arch = `(/bin
/arch
) 2>/dev
/null ||
echo unknown
`
2194 /usr/bin/arch -k = `(/usr
/bin
/arch
-k) 2>/dev
/null ||
echo unknown
`
2195 /usr/convex/getsysinfo = `(/usr
/convex
/getsysinfo
) 2>/dev
/null ||
echo unknown
`
2196 /usr/bin/hostinfo = `(/usr
/bin
/hostinfo
) 2>/dev
/null ||
echo unknown
`
2197 /bin/machine = `(/bin
/machine
) 2>/dev
/null ||
echo unknown
`
2198 /usr/bin/oslevel = `(/usr
/bin
/oslevel
) 2>/dev
/null ||
echo unknown
`
2199 /bin/universe = `(/bin
/universe
) 2>/dev
/null ||
echo unknown
`
2203 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2207 test -z "$as_dir" && as_dir=.
2208 $as_echo "PATH: $as_dir"
2224 # Keep a trace of the command line.
2225 # Strip out --no-create and --no-recursion so they do not pile up.
2226 # Strip out --silent because we don't want to record it for future runs.
2227 # Also quote any args containing shell meta-characters.
2228 # Make two passes to allow for proper duplicate-argument suppression.
2232 ac_must_keep_next=false
2238 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
2239 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
2240 | -silent | --silent | --silen | --sile | --sil)
2243 ac_arg=`$as_echo "$ac_arg" |
sed "s/'/'\\\\\\\\''/g"` ;;
2246 1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
2248 as_fn_append ac_configure_args1 " '$ac_arg'"
2249 if test $ac_must_keep_next = true; then
2250 ac_must_keep_next=false # Got value, back to normal.
2253 *=* | --config-cache | -C | -disable-* | --disable-* \
2254 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
2255 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
2256 | -with-* | --with-* | -without-* | --without-* | --x)
2257 case "$ac_configure_args0 " in
2258 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
2261 -* ) ac_must_keep_next=true ;;
2264 as_fn_append ac_configure_args " '$ac_arg'"
2269 { ac_configure_args0=; unset ac_configure_args0;}
2270 { ac_configure_args1=; unset ac_configure_args1;}
2272 # When interrupted or exit'd, cleanup temporary files, and complete
2273 # config.log. We remove comments because anyway the quotes in there
2274 # would cause problems or look ugly.
2275 # WARNING: Use '\'' to represent an apostrophe within the trap.
2276 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
2277 trap 'exit_status=$?
2278 # Save into config.log some information that might help in debugging.
2283 ## ---------------- ##
2284 ## Cache variables. ##
2285 ## ---------------- ##
2288 # The following way of writing the cache mishandles newlines in values,
2290 for ac_var in `(set) 2>&1 |
sed -n '\''s
/^\
([a-zA-Z_
][a-zA-Z0-9_
]*\
)=.
*/\
1/p
'\''`; do
2291 eval ac_val=\$$ac_var
2295 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
2296 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
2299 _ | IFS | as_nl) ;; #(
2300 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
2301 *) { eval $ac_var=; unset $ac_var;} ;;
2306 case $as_nl`(ac_space
='\'' '\''; set) 2>&1` in #(
2307 *${as_nl}ac_space=\ *)
2309 "s/'\''/'\''\\\\'\'''\''/g;
2310 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
2313 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
2321 ## ----------------- ##
2322 ## Output variables. ##
2323 ## ----------------- ##
2326 for ac_var in $ac_subst_vars
2328 eval ac_val=\$$ac_var
2330 *\'\''*) ac_val=`$as_echo "$ac_val" |
sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2332 $as_echo "$ac_var='\''$ac_val'\''"
2336 if test -n "$ac_subst_files"; then
2338 ## ------------------- ##
2339 ## File substitutions. ##
2340 ## ------------------- ##
2343 for ac_var in $ac_subst_files
2345 eval ac_val=\$$ac_var
2347 *\'\''*) ac_val=`$as_echo "$ac_val" |
sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2349 $as_echo "$ac_var='\''$ac_val'\''"
2354 if test -s confdefs.h; then
2364 test "$ac_signal" != 0 &&
2365 $as_echo "$as_me: caught signal $ac_signal"
2366 $as_echo "$as_me: exit $exit_status"
2368 rm -f core *.core core.conftest.* &&
2369 rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
2372 for ac_signal in 1 2 13 15; do
2373 trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
2377 # confdefs.h avoids OS command line length limits that DEFS can exceed.
2378 rm -f -r conftest* confdefs.h
2380 $as_echo "/* confdefs.h */" > confdefs.h
2382 # Predefined preprocessor variables.
2384 cat >>confdefs.h <<_ACEOF
2385 #define PACKAGE_NAME "$PACKAGE_NAME"
2388 cat >>confdefs.h <<_ACEOF
2389 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
2392 cat >>confdefs.h <<_ACEOF
2393 #define PACKAGE_VERSION "$PACKAGE_VERSION"
2396 cat >>confdefs.h <<_ACEOF
2397 #define PACKAGE_STRING "$PACKAGE_STRING"
2400 cat >>confdefs.h <<_ACEOF
2401 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
2404 cat >>confdefs.h <<_ACEOF
2405 #define PACKAGE_URL "$PACKAGE_URL"
2409 # Let the site file select an alternate cache file if it wants to.
2410 # Prefer an explicitly selected file to automatically selected ones.
2413 if test -n "$CONFIG_SITE"; then
2414 ac_site_file1=$CONFIG_SITE
2415 elif test "x$prefix" != xNONE; then
2416 ac_site_file1=$prefix/share/config.site
2417 ac_site_file2=$prefix/etc/config.site
2419 ac_site_file1=$ac_default_prefix/share/config.site
2420 ac_site_file2=$ac_default_prefix/etc/config.site
2422 for ac_site_file in "$ac_site_file1" "$ac_site_file2"
2424 test "x$ac_site_file" = xNONE && continue
2425 if test /dev/null != "$ac_site_file" && test -r "$ac_site_file"; then
2426 { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
2427 $as_echo "$as_me: loading site script $ac_site_file" >&6;}
2428 sed 's/^/| /' "$ac_site_file" >&5
2433 if test -r "$cache_file"; then
2434 # Some versions of bash will fail to source /dev/null (special files
2435 # actually), so we avoid doing that. DJGPP emulates it as a regular file.
2436 if test /dev/null != "$cache_file" && test -f "$cache_file"; then
2437 { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
2438 $as_echo "$as_me: loading cache $cache_file" >&6;}
2440 [\\/]* | ?:[\\/]* ) . "$cache_file";;
2441 *) . "./$cache_file";;
2445 { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
2446 $as_echo "$as_me: creating cache $cache_file" >&6;}
2450 as_fn_append ac_header_list " stdlib.h"
2451 as_fn_append ac_header_list " unistd.h"
2452 as_fn_append ac_header_list " sys/param.h"
2453 as_fn_append ac_header_list " sys/time.h"
2454 as_fn_append ac_func_list " alarm"
2455 # Check that the precious variables saved in the cache have kept the same
2457 ac_cache_corrupted=false
2458 for ac_var in $ac_precious_vars; do
2459 eval ac_old_set=\$ac_cv_env_${ac_var}_set
2460 eval ac_new_set=\$ac_env_${ac_var}_set
2461 eval ac_old_val=\$ac_cv_env_${ac_var}_value
2462 eval ac_new_val=\$ac_env_${ac_var}_value
2463 case $ac_old_set,$ac_new_set in
2465 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run
" >&5
2466 $as_echo "$as_me: error
: \
`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
2467 ac_cache_corrupted=: ;;
2469 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not
set in the previous run
" >&5
2470 $as_echo "$as_me: error
: \
`$ac_var' was not set in the previous run" >&2;}
2471 ac_cache_corrupted=: ;;
2474 if test "x$ac_old_val" != "x$ac_new_val"; then
2475 # differences in whitespace do not lead to failure.
2476 ac_old_val_w=`echo x
$ac_old_val`
2477 ac_new_val_w=`echo x
$ac_new_val`
2478 if test "$ac_old_val_w" != "$ac_new_val_w"; then
2479 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
2480 $as_echo "$as_me: error: \`$ac_var' has changed since the previous run
:" >&2;}
2481 ac_cache_corrupted=:
2483 { $as_echo "$as_me:${as_lineno-$LINENO}: warning
: ignoring whitespace changes
in \
`$ac_var' since the previous run:" >&5
2484 $as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
2485 eval $ac_var=\$ac_old_val
2487 { $as_echo "$as_me:${as_lineno-$LINENO}: former value: \`$ac_old_val'" >&5
2488 $as_echo "$as_me: former value
: \
`$ac_old_val'" >&2;}
2489 { $as_echo "$as_me:${as_lineno-$LINENO}: current value: \`$ac_new_val'" >&5
2490 $as_echo "$as_me: current value: \`$ac_new_val'" >&2;}
2493 # Pass precious variables to config.status.
2494 if test "$ac_new_set" = set; then
2496 *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s
/'/'\\\\\\\\''/g
"` ;;
2497 *) ac_arg=$ac_var=$ac_new_val ;;
2499 case " $ac_configure_args " in
2500 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
2501 *) as_fn_append ac_configure_args " '$ac_arg'" ;;
2505 if $ac_cache_corrupted; then
2506 { $as_echo "$as_me:${as_lineno-$LINENO}: error
: in \
`$ac_pwd':" >&5
2507 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2508 { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
2509 $as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
2510 as_fn_error "run \`make distclean' and
/or \
`rm $cache_file' and start over" "$LINENO" 5
2512 ## -------------------- ##
2513 ## Main body of script. ##
2514 ## -------------------- ##
2517 ac_cpp='$CPP $CPPFLAGS'
2518 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2519 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2520 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2523 ac_config_headers="$ac_config_headers src/config.h:src/config.in"
2527 test "$program_prefix" != NONE &&
2528 program_transform_name="s&^&$program_prefix&;$program_transform_name"
2529 # Use a double $ so make ignores it.
2530 test "$program_suffix" != NONE &&
2531 program_transform_name="s&\$&$program_suffix&;$program_transform_name"
2532 # Double any \ or $.
2533 # By default was `s
,x
,x
', remove it if useless.
2534 ac_script='s
/[\\$
]/&&/g
;s
/;s
,x
,x
,$
//'
2535 program_transform_name=`$as_echo "$program_transform_name" | sed "$ac_script"`
2538 lispdir='${datadir}/emacs
/${version}/lisp
'
2539 locallisppath='${datadir}/emacs
/${version}/site-lisp
:'\
2540 '${datadir}/emacs
/site-lisp
'
2541 lisppath='${locallisppath}:${lispdir}:${datadir}/emacs/${version}/leim
'
2542 etcdir='${datadir}/emacs
/${version}/etc
'
2543 archlibdir='${libexecdir}/emacs/${version}/${configuration}'
2544 docdir='${datadir}/emacs
/${version}/etc
'
2545 gamedir='${localstatedir}/games
/emacs
'
2552 # Check whether --with-pop was given.
2553 if test "${with_pop+set}" = set; then :
2559 if test "$with_pop" = yes; then
2560 $as_echo "#define MAIL_USE_POP 1" >>confdefs.h
2565 # Check whether --with-kerberos was given.
2566 if test "${with_kerberos+set}" = set; then :
2567 withval=$with_kerberos;
2572 if test "$with_kerberos" != no; then
2573 $as_echo "#define KERBEROS 1" >>confdefs.h
2578 # Check whether --with-kerberos5 was given.
2579 if test "${with_kerberos5+set}" = set; then :
2580 withval=$with_kerberos5;
2585 if test "${with_kerberos5}" != no; then
2586 if test "${with_kerberos}" = no; then
2588 $as_echo "#define KERBEROS 1" >>confdefs.h
2592 $as_echo "#define KERBEROS5 1" >>confdefs.h
2597 # Check whether --with-hesiod was given.
2598 if test "${with_hesiod+set}" = set; then :
2599 withval=$with_hesiod;
2604 if test "$with_hesiod" != no; then
2606 $as_echo "#define HESIOD 1" >>confdefs.h
2611 # Check whether --with-mmdf was given.
2612 if test "${with_mmdf+set}" = set; then :
2618 if test "$with_mmdf" != no; then
2620 $as_echo "#define MAIL_USE_MMDF 1" >>confdefs.h
2625 # Check whether --with-mail-unlink was given.
2626 if test "${with_mail_unlink+set}" = set; then :
2627 withval=$with_mail_unlink;
2632 if test "$with_mail_unlink" != no; then
2634 $as_echo "#define MAIL_UNLINK_SPOOL 1" >>confdefs.h
2639 # Check whether --with-mailhost was given.
2640 if test "${with_mailhost+set}" = set; then :
2641 withval=$with_mailhost;
2642 cat >>confdefs.h <<_ACEOF
2643 #define MAILHOST "$withval"
2650 # Check whether --with-sound was given.
2651 if test "${with_sound+set}" = set; then :
2652 withval=$with_sound;
2659 # Check whether --with-sync-input was given.
2660 if test "${with_sync_input+set}" = set; then :
2661 withval=$with_sync_input;
2666 if test "$with_sync_input" = yes; then
2668 $as_echo "#define SYNC_INPUT 1" >>confdefs.h
2673 # Check whether --with-x-toolkit was given.
2674 if test "${with_x_toolkit+set}" = set; then :
2675 withval=$with_x_toolkit; case "${withval}" in
2676 y | ye | yes ) val=gtk ;;
2678 l | lu | luc | luci | lucid ) val=lucid ;;
2679 a | at | ath | athe | athen | athena ) val=athena ;;
2680 m | mo | mot | moti | motif ) val=motif ;;
2681 g | gt | gtk ) val=gtk ;;
2684 as_fn_error "\`--with-x-toolkit=$withval' is invalid
;
2685 this option
's value should be \`yes', \
`no', \`lucid
', \`athena', \
`motif', \`gtk
' or
2686 \`gtk3'. \
`yes' and \`gtk
' are synonyms. \`athena' and \
`lucid' are synonyms." "$LINENO" 5
2695 # Check whether --with-xpm was given.
2696 if test "${with_xpm+set}" = set; then :
2703 # Check whether --with-jpeg was given.
2704 if test "${with_jpeg+set}" = set; then :
2711 # Check whether --with-tiff was given.
2712 if test "${with_tiff+set}" = set; then :
2719 # Check whether --with-gif was given.
2720 if test "${with_gif+set}" = set; then :
2727 # Check whether --with-png was given.
2728 if test "${with_png+set}" = set; then :
2735 # Check whether --with-rsvg was given.
2736 if test "${with_rsvg+set}" = set; then :
2743 # Check whether --with-xml2 was given.
2744 if test "${with_xml2+set}" = set; then :
2751 # Check whether --with-imagemagick was given.
2752 if test "${with_imagemagick+set}" = set; then :
2753 withval=$with_imagemagick;
2755 with_imagemagick=yes
2760 # Check whether --with-xft was given.
2761 if test "${with_xft+set}" = set; then :
2768 # Check whether --with-libotf was given.
2769 if test "${with_libotf+set}" = set; then :
2770 withval=$with_libotf;
2776 # Check whether --with-m17n-flt was given.
2777 if test "${with_m17n_flt+set}" = set; then :
2778 withval=$with_m17n_flt;
2785 # Check whether --with-toolkit-scroll-bars was given.
2786 if test "${with_toolkit_scroll_bars+set}" = set; then :
2787 withval=$with_toolkit_scroll_bars;
2789 with_toolkit_scroll_bars=yes
2793 # Check whether --with-xaw3d was given.
2794 if test "${with_xaw3d+set}" = set; then :
2795 withval=$with_xaw3d;
2801 # Check whether --with-xim was given.
2802 if test "${with_xim+set}" = set; then :
2809 # Check whether --with-ns was given.
2810 if test "${with_ns+set}" = set; then :
2818 # Check whether --with-gpm was given.
2819 if test "${with_gpm+set}" = set; then :
2826 # Check whether --with-dbus was given.
2827 if test "${with_dbus+set}" = set; then :
2834 # Check whether --with-gconf was given.
2835 if test "${with_gconf+set}" = set; then :
2836 withval=$with_gconf;
2842 # Check whether --with-selinux was given.
2843 if test "${with_selinux+set}" = set; then :
2844 withval=$with_selinux;
2850 # Check whether --with-gnutls was given.
2851 if test "${with_gnutls+set}" = set; then :
2852 withval=$with_gnutls;
2858 ## For the times when you want to build Emacs but don't have
2859 ## a suitable makeinfo, and can live without the manuals.
2861 # Check whether --with-makeinfo was given.
2862 if test "${with_makeinfo+set}" = set; then :
2863 withval=$with_makeinfo;
2869 ## This is an option because I do not know if all info/man support
2870 ## compressed files, nor how to test if they do so.
2872 # Check whether --with-compress-info was given.
2873 if test "${with_compress_info+set}" = set; then :
2874 withval=$with_compress_info;
2876 with_compress_info=yes
2879 if test $with_compress_info = yes; then
2887 # Check whether --with-pkg-config-prog was given.
2888 if test "${with_pkg_config_prog+set}" = set; then :
2889 withval=$with_pkg_config_prog;
2892 if test "X${with_pkg_config_prog}" != X; then
2893 if test "${with_pkg_config_prog}" != yes; then
2894 PKG_CONFIG="${with_pkg_config_prog}"
2900 # Check whether --with-crt-dir was given.
2901 if test "${with_crt_dir+set}" = set; then :
2902 withval=$with_crt_dir;
2905 CRT_DIR="${with_crt_dir}"
2908 # Check whether --with-gnustep-conf was given.
2909 if test "${with_gnustep_conf+set}" = set; then :
2910 withval=$with_gnustep_conf;
2913 test "X${with_gnustep_conf}" != X && test "${with_gnustep_conf}" != yes && \
2914 GNUSTEP_CONFIG_FILE="${with_gnustep_conf}"
2915 test "X$GNUSTEP_CONFIG_FILE" = "X" && \
2916 GNUSTEP_CONFIG_FILE=/etc/GNUstep/GNUstep.conf
2918 # Check whether --enable-ns-self-contained was given.
2919 if test "${enable_ns_self_contained+set}" = set; then :
2920 enableval=$enable_ns_self_contained; EN_NS_SELF_CONTAINED=$enableval
2922 EN_NS_SELF_CONTAINED=yes
2926 # Check whether --enable-asserts was given.
2927 if test "${enable_asserts+set}" = set; then :
2928 enableval=$enable_asserts; USE_XASSERTS=$enableval
2934 # Check whether --enable-maintainer-mode was given.
2935 if test "${enable_maintainer_mode+set}" = set; then :
2936 enableval=$enable_maintainer_mode; USE_MAINTAINER_MODE=$enableval
2938 USE_MAINTAINER_MODE=no
2941 if test $USE_MAINTAINER_MODE = yes; then
2948 # Check whether --enable-locallisppath was given.
2949 if test "${enable_locallisppath+set}" = set; then :
2950 enableval=$enable_locallisppath; if test "${enableval}" = "no"; then
2952 elif test "${enableval}" != "yes"; then
2953 locallisppath=${enableval}
2958 # Check whether --enable-checking was given.
2959 if test "${enable_checking+set}" = set; then :
2960 enableval=$enable_checking; ac_checking_flags="${enableval}"
2963 IFS="${IFS= }"; ac_save_IFS="$IFS"; IFS="$IFS,"
2964 for check in $ac_checking_flags
2967 # these set all the flags to specific states
2968 yes) ac_enable_checking=1 ;;
2969 no) ac_enable_checking= ;
2970 ac_gc_check_stringbytes= ;
2971 ac_gc_check_string_overrun= ;
2972 ac_gc_check_string_free_list= ;
2973 ac_xmalloc_overrun= ;
2974 ac_gc_check_cons_list= ;;
2975 all) ac_enable_checking=1 ;
2976 ac_gc_check_stringbytes=1 ;
2977 ac_gc_check_string_overrun=1 ;
2978 ac_gc_check_string_free_list=1 ;
2979 ac_xmalloc_overrun=1 ;
2980 ac_gc_check_cons_list=1 ;;
2981 # these enable particular checks
2982 stringbytes) ac_gc_check_stringbytes=1 ;;
2983 stringoverrun) ac_gc_check_string_overrun=1 ;;
2984 stringfreelist) ac_gc_check_string_free_list=1 ;;
2985 xmallocoverrun) ac_xmalloc_overrun=1 ;;
2986 conslist) ac_gc_check_cons_list=1 ;;
2987 *) as_fn_error "unknown check category $check" "$LINENO" 5 ;;
2992 if test x$ac_enable_checking != x ; then
2994 $as_echo "#define ENABLE_CHECKING 1" >>confdefs.h
2997 if test x$ac_gc_check_stringbytes != x ; then
2999 $as_echo "#define GC_CHECK_STRING_BYTES 1" >>confdefs.h
3002 if test x$ac_gc_check_stringoverrun != x ; then
3004 $as_echo "#define GC_CHECK_STRING_OVERRUN 1" >>confdefs.h
3007 if test x$ac_gc_check_string_free_list != x ; then
3009 $as_echo "#define GC_CHECK_STRING_FREE_LIST 1" >>confdefs.h
3012 if test x$ac_xmalloc_overrun != x ; then
3014 $as_echo "#define XMALLOC_OVERRUN_CHECK 1" >>confdefs.h
3017 if test x$ac_gc_check_cons_list != x ; then
3019 $as_echo "#define GC_CHECK_CONS_LIST 1" >>confdefs.h
3023 # Check whether --enable-use-lisp-union-type was given.
3024 if test "${enable_use_lisp_union_type+set}" = set; then :
3025 enableval=$enable_use_lisp_union_type; if test "${enableval}" != "no"; then
3027 $as_echo "#define USE_LISP_UNION_TYPE 1" >>confdefs.h
3034 # Check whether --enable-profiling was given.
3035 if test "${enable_profiling+set}" = set; then :
3036 enableval=$enable_profiling; ac_enable_profiling="${enableval}"
3039 if test x$ac_enable_profiling != x ; then
3040 PROFILING_CFLAGS="-DPROFILING=1 -pg"
3041 PROFILING_LDFLAGS="-pg"
3049 # Check whether --enable-autodepend was given.
3050 if test "${enable_autodepend+set}" = set; then :
3051 enableval=$enable_autodepend; ac_enable_autodepend="${enableval}"
3053 ac_enable_autodepend=yes
3057 #### Make srcdir absolute, if it isn't already. It's important to
3058 #### avoid running the path through pwd unnecessarily, since pwd can
3059 #### give you automounter prefixes, which can go away. We do all this
3060 #### so Emacs can find its files when run uninstalled.
3061 ## Make sure CDPATH doesn't affect cd (in case PWD is relative).
3066 ## We may be able to use the $PWD environment variable to make this
3067 ## absolute. But sometimes PWD is inaccurate.
3068 ## Note: we used to use ${PWD} at the end instead of `pwd`,
3069 ## but that tested only for a well-formed and valid PWD,
3070 ## it did not object when PWD was well-formed and valid but just wrong.
3071 if test ".${PWD}" != "." && test ".`(cd ${PWD} ; sh
-c pwd)`" = ".`pwd`" ;
3075 srcdir="`(cd ${srcdir}; pwd)`"
3078 * ) srcdir="`(cd ${srcdir}; pwd)`" ;;
3081 #### Check if the source directory already has a configured system in it.
3082 if test `pwd` != `(cd ${srcdir} && pwd)` \
3083 && test -f "${srcdir}/src/config.h" ; then
3084 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: The directory tree \`${srcdir}' is being used
3085 as a build directory right now; it has been configured in its own
3086 right. To configure in another directory as well, you MUST
3087 use GNU make. If you do not have GNU make, then you must
3088 now do \`make distclean' in ${srcdir},
3089 and
then run
$0 again.
" >&5
3090 $as_echo "$as_me: WARNING
: The directory tree \
`${srcdir}' is being used
3091 as a build directory right now; it has been configured in its own
3092 right. To configure in another directory as well, you MUST
3093 use GNU make. If you do not have GNU make, then you must
3094 now do \`make distclean
' in ${srcdir},
3095 and then run $0 again." >&2;}
3098 #### Given the configuration name, set machfile and opsysfile to the
3099 #### names of the m/*.h and s/*.h files we should use.
3101 ### Canonicalize the configuration name.
3104 for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do
3105 for ac_t in install-sh install.sh shtool; do
3106 if test -f "$ac_dir/$ac_t"; then
3108 ac_install_sh="$ac_aux_dir/$ac_t -c"
3113 if test -z "$ac_aux_dir"; then
3114 as_fn_error "cannot find install-sh, install.sh, or shtool in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" "$LINENO" 5
3117 # These three variables are undocumented and unsupported,
3118 # and are intended to be withdrawn in a future Autoconf release.
3119 # They can cause serious problems if a builder's
source tree is
in a directory
3120 # whose full name contains unusual characters.
3121 ac_config_guess
="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
3122 ac_config_sub
="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
3123 ac_configure
="$SHELL $ac_aux_dir/configure" # Please don't use this var.
3126 # Make sure we can run config.sub.
3127 $SHELL "$ac_aux_dir/config.sub" sun4
>/dev
/null
2>&1 ||
3128 as_fn_error
"cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5
3130 { $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
3131 $as_echo_n "checking build system type... " >&6; }
3132 if test "${ac_cv_build+set}" = set; then :
3133 $as_echo_n "(cached) " >&6
3135 ac_build_alias
=$build_alias
3136 test "x$ac_build_alias" = x
&&
3137 ac_build_alias
=`$SHELL "$ac_aux_dir/config.guess"`
3138 test "x$ac_build_alias" = x
&&
3139 as_fn_error
"cannot guess build type; you must specify one" "$LINENO" 5
3140 ac_cv_build
=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
3141 as_fn_error
"$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5
3144 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
3145 $as_echo "$ac_cv_build" >&6; }
3146 case $ac_cv_build in
3148 *) as_fn_error
"invalid value of canonical build" "$LINENO" 5;;
3151 ac_save_IFS
=$IFS; IFS
='-'
3157 # Remember, the first character of IFS is used to create $*,
3158 # except with old shells:
3161 case $build_os in *\
*) build_os
=`echo "$build_os" | sed 's/ /-/g'`;; esac
3164 { $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
3165 $as_echo_n "checking host system type... " >&6; }
3166 if test "${ac_cv_host+set}" = set; then :
3167 $as_echo_n "(cached) " >&6
3169 if test "x$host_alias" = x
; then
3170 ac_cv_host
=$ac_cv_build
3172 ac_cv_host
=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
3173 as_fn_error
"$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5
3177 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
3178 $as_echo "$ac_cv_host" >&6; }
3181 *) as_fn_error
"invalid value of canonical host" "$LINENO" 5;;
3184 ac_save_IFS
=$IFS; IFS
='-'
3190 # Remember, the first character of IFS is used to create $*,
3191 # except with old shells:
3194 case $host_os in *\
*) host_os
=`echo "$host_os" | sed 's/ /-/g'`;; esac
3198 configuration
=${host_alias-${build_alias-$host}}
3202 ### If you add support for a new configuration, add code to this
3203 ### switch statement to recognize your configuration name and select
3204 ### the appropriate operating system and machine description files.
3206 ### You would hope that you could choose an m/*.h file pretty much
3207 ### based on the machine portion of the configuration name, and an s/*.h
3208 ### file based on the operating system portion. However, it turns out
3209 ### that each m/*.h file is pretty manufacturer-specific - for
3210 ### example mips.h is MIPS
3211 ### So we basically have to have a special case for each
3212 ### configuration name.
3214 ### As far as handling version numbers on operating systems is
3215 ### concerned, make sure things will fail in a fixable way. If
3216 ### /etc/MACHINES doesn't say anything about version numbers, be
3217 ### prepared to handle anything reasonably. If version numbers
3218 ### matter, be sure /etc/MACHINES says something about it.
3220 machine
='' opsys
='' unported
=no
3221 case "${canonical}" in
3226 case "${canonical}" in
3227 alpha
*) machine
=alpha
;;
3228 amd64-
*|x86_64-
*) machine
=amdx86-64
;;
3229 arm
*) machine
=arm
;;
3230 ia64-
*) machine
=ia64
;;
3231 i
[3456]86-*) machine
=intel386
;;
3232 powerpc-
*) machine
=macppc
;;
3233 sparc-
*) machine
=sparc
;;
3234 sparc64-
*) machine
=sparc
;;
3238 ## FreeBSD kernel + glibc based userland
3241 case "${canonical}" in
3242 alpha
*) machine
=alpha
;;
3243 amd64-
*|x86_64-
*) machine
=amdx86-64
;;
3244 ia64-
*) machine
=ia64
;;
3245 i
[3456]86-*) machine
=intel386
;;
3246 powerpc-
*) machine
=macppc
;;
3247 sparc-
*) machine
=sparc
;;
3248 sparc64-
*) machine
=sparc
;;
3255 case "${canonical}" in
3256 alpha
*) machine
=alpha
;;
3257 x86_64-
*) machine
=amdx86-64
;;
3258 arm-
*) machine
=arm
;;
3259 hppa-
*) machine
=hp800
;;
3260 i
[3456]86-*) machine
=intel386
;;
3261 m68k-
*) machine
=m68k
;;
3262 powerpc-
*) machine
=macppc
;;
3263 mips-
*) machine
=mips
;;
3264 mipse
[bl
]-*) machine
=mips
;;
3265 sparc
*-) machine
=sparc
;;
3266 vax-
*) machine
=vax
;;
3273 case "${canonical}" in
3274 alpha
*) machine
=alpha
;;
3275 x86_64-
*) machine
=amdx86-64
;;
3276 arm-
*) machine
=arm
;;
3277 hppa-
*) machine
=hp800
;;
3278 i386-
*) machine
=intel386
;;
3279 powerpc-
*) machine
=macppc
;;
3280 sparc
*) machine
=sparc
;;
3281 vax-
*) machine
=vax
;;
3285 alpha
*-*-linux-gnu* )
3286 machine
=alpha opsys
=gnu-linux
3290 machine
=arm opsys
=gnu-linux
3293 ## Apple Darwin / Mac OS X
3295 case "${canonical}" in
3296 i
[3456]86-* ) machine
=intel386
;;
3297 powerpc-
* ) machine
=macppc
;;
3298 x86_64-
* ) machine
=amdx86-64
;;
3302 # Define CPP as follows to make autoconf work correctly.
3303 CPP
="${CC-cc} -E -no-cpp-precomp"
3304 # Use fink packages if available.
3305 if test -d /sw
/include
&& test -d /sw
/lib
; then
3306 GCC_TEST_OPTIONS
="-I/sw/include -L/sw/lib"
3307 CPP
="${CPP} ${GCC_TEST_OPTIONS}"
3308 NON_GCC_TEST_OPTIONS
=${GCC_TEST_OPTIONS}
3312 ## HP 9000 series 700 and 800, running HP/UX
3313 hppa
*-hp-hpux10.2
* )
3314 machine
=hp800 opsys
=hpux10-20
3316 hppa
*-hp-hpux1[1-9]* )
3317 machine
=hp800 opsys
=hpux11
3318 CFLAGS
="-D_INCLUDE__STDC_A1_SOURCE $CFLAGS"
3321 hppa
*-*-linux-gnu* )
3322 machine
=hp800 opsys
=gnu-linux
3327 machine
=ibms390 opsys
=gnu-linux
3329 s390x-
*-linux-gnu* )
3330 machine
=ibms390x opsys
=gnu-linux
3332 rs6000-ibm-aix4.
[23]* )
3333 machine
=ibmrs6000 opsys
=aix4-2
3335 powerpc-ibm-aix4.
[23]* )
3336 machine
=ibmrs6000 opsys
=aix4-2
3338 rs6000-ibm-aix
[56]* )
3339 machine
=ibmrs6000 opsys
=aix4-2
3341 powerpc-ibm-aix
[56]* )
3342 machine
=ibmrs6000 opsys
=aix4-2
3345 ## Macintosh PowerPC
3346 powerpc
*-*-linux-gnu* )
3347 machine
=macppc opsys
=gnu-linux
3350 ## Silicon Graphics machines
3353 machine
=iris4d opsys
=irix6-5
3354 # Without defining _LANGUAGE_C, things get masked out in the headers
3355 # so that, for instance, grepping for `free' in stdlib.h fails and
3356 # AC_HEADER_STD_C fails. (MIPSPro 7.2.1.2m compilers, Irix 6.5.3m).
3357 NON_GNU_CPP
="/lib/cpp -D_LANGUAGE_C"
3358 NON_GCC_TEST_OPTIONS
="-D_LANGUAGE_C"
3362 sparc-
*-linux-gnu* | sparc64-
*-linux-gnu* )
3363 machine
=sparc opsys
=gnu-linux
3367 | i
[3456]86-*-solaris2* | i
[3456]86-*-sunos5* \
3368 | x86_64-
*-solaris2* | x86_64-
*-sunos5*)
3369 case "${canonical}" in
3370 i
[3456]86-*-* ) machine
=intel386
;;
3371 amd64-
*-*|x86_64-
*-*) machine
=amdx86-64
;;
3372 sparc
* ) machine
=sparc
;;
3375 case "${canonical}" in
3376 *-sunos5.6
* |
*-solaris2.6
* )
3378 NON_GNU_CPP
=/usr
/ccs
/lib
/cpp
3381 *-sunos5.
[7-9]* |
*-solaris2.
[7-9]* )
3383 emacs_check_sunpro_c
=yes
3384 NON_GNU_CPP
=/usr
/ccs
/lib
/cpp
3386 *-sunos5* |
*-solaris* )
3388 emacs_check_sunpro_c
=yes
3389 NON_GNU_CPP
=/usr
/ccs
/lib
/cpp
3392 ## Watch out for a compiler that we know will not work.
3393 case "${canonical}" in
3394 *-solaris* |
*-sunos5* )
3395 if [ "x$CC" = x
/usr
/ucb
/cc
]; then
3396 ## /usr/ucb/cc doesn't work;
3397 ## we should find some other compiler that does work.
3407 machine
=ia64 opsys
=gnu-linux
3410 ## Intel 386 machines where we don't care about the manufacturer.
3413 case "${canonical}" in
3414 *-cygwin ) opsys
=cygwin
;;
3415 *-darwin* ) opsys
=darwin
3416 CPP
="${CC-cc} -E -no-cpp-precomp"
3418 *-linux-gnu* ) opsys
=gnu-linux
;;
3419 *-sysv4.2uw
* ) opsys
=unixware
; NON_GNU_CPP
=/lib
/cpp
;;
3420 *-sysv5uw* ) opsys
=unixware
; NON_GNU_CPP
=/lib
/cpp
;;
3421 *-sysv5OpenUNIX* ) opsys
=unixware
; NON_GNU_CPP
=/lib
/cpp
;;
3422 ## Otherwise, we'll fall through to the generic opsys code at the bottom.
3426 ## m68k Linux-based GNU system
3428 machine
=m68k opsys
=gnu-linux
3431 ## Mips Linux-based GNU system
3432 mips-
*-linux-gnu* | mipsel-
*-linux-gnu* \
3433 | mips64-
*-linux-gnu* | mips64el-
*-linux-gnu* )
3434 machine
=mips opsys
=gnu-linux
3437 ## AMD x86-64 Linux-based GNU system
3438 x86_64-
*-linux-gnu* )
3439 machine
=amdx86-64 opsys
=gnu-linux
3442 ## Tensilica Xtensa Linux-based GNU system
3443 xtensa
*-*-linux-gnu* )
3444 machine
=xtensa opsys
=gnu-linux
3447 ## SuperH Linux-based GNU system
3448 sh
[34]*-*-linux-gnu* )
3449 machine
=sh3 opsys
=gnu-linux
3457 ### If the code above didn't choose an operating system, just choose
3458 ### an operating system based on the configuration name. You really
3459 ### only want to use this when you have no idea what the right
3460 ### operating system is; if you know what operating systems a machine
3461 ### runs, it's cleaner to make it explicit in the case statement
3463 if test x
"${opsys}" = x
; then
3464 case "${canonical}" in
3465 *-gnu* ) opsys
=gnu
;;
3474 if test $unported = yes; then
3475 as_fn_error
"Emacs hasn't been ported to \`${canonical}' systems.
3476 Check \`etc/MACHINES' for recognized configuration names." "$LINENO" 5
3479 machfile
="m/${machine}.h"
3480 opsysfile
="s/${opsys}.h"
3483 #### Choose a compiler.
3484 test -n "$CC" && cc_specified
=yes
3486 # Save the value of CFLAGS that the user specified.
3487 SPECIFIED_CFLAGS
="$CFLAGS"
3490 ac_cpp
='$CPP $CPPFLAGS'
3491 ac_compile
='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3492 ac_link
='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3493 ac_compiler_gnu
=$ac_cv_c_compiler_gnu
3494 if test -n "$ac_tool_prefix"; then
3495 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
3496 set dummy
${ac_tool_prefix}gcc
; ac_word
=$2
3497 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3498 $as_echo_n "checking for $ac_word... " >&6; }
3499 if test "${ac_cv_prog_CC+set}" = set; then :
3500 $as_echo_n "(cached) " >&6
3502 if test -n "$CC"; then
3503 ac_cv_prog_CC
="$CC" # Let the user override the test.
3505 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
3509 test -z "$as_dir" && as_dir
=.
3510 for ac_exec_ext
in '' $ac_executable_extensions; do
3511 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3512 ac_cv_prog_CC
="${ac_tool_prefix}gcc"
3513 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3523 if test -n "$CC"; then
3524 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3525 $as_echo "$CC" >&6; }
3527 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3528 $as_echo "no" >&6; }
3533 if test -z "$ac_cv_prog_CC"; then
3535 # Extract the first word of "gcc", so it can be a program name with args.
3536 set dummy gcc
; ac_word
=$2
3537 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3538 $as_echo_n "checking for $ac_word... " >&6; }
3539 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then :
3540 $as_echo_n "(cached) " >&6
3542 if test -n "$ac_ct_CC"; then
3543 ac_cv_prog_ac_ct_CC
="$ac_ct_CC" # Let the user override the test.
3545 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
3549 test -z "$as_dir" && as_dir
=.
3550 for ac_exec_ext
in '' $ac_executable_extensions; do
3551 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3552 ac_cv_prog_ac_ct_CC
="gcc"
3553 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3562 ac_ct_CC
=$ac_cv_prog_ac_ct_CC
3563 if test -n "$ac_ct_CC"; then
3564 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3565 $as_echo "$ac_ct_CC" >&6; }
3567 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3568 $as_echo "no" >&6; }
3571 if test "x$ac_ct_CC" = x
; then
3574 case $cross_compiling:$ac_tool_warned in
3576 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3577 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3578 ac_tool_warned
=yes ;;
3586 if test -z "$CC"; then
3587 if test -n "$ac_tool_prefix"; then
3588 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
3589 set dummy
${ac_tool_prefix}cc
; ac_word
=$2
3590 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3591 $as_echo_n "checking for $ac_word... " >&6; }
3592 if test "${ac_cv_prog_CC+set}" = set; then :
3593 $as_echo_n "(cached) " >&6
3595 if test -n "$CC"; then
3596 ac_cv_prog_CC
="$CC" # Let the user override the test.
3598 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
3602 test -z "$as_dir" && as_dir
=.
3603 for ac_exec_ext
in '' $ac_executable_extensions; do
3604 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3605 ac_cv_prog_CC
="${ac_tool_prefix}cc"
3606 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3616 if test -n "$CC"; then
3617 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3618 $as_echo "$CC" >&6; }
3620 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3621 $as_echo "no" >&6; }
3627 if test -z "$CC"; then
3628 # Extract the first word of "cc", so it can be a program name with args.
3629 set dummy cc
; ac_word
=$2
3630 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3631 $as_echo_n "checking for $ac_word... " >&6; }
3632 if test "${ac_cv_prog_CC+set}" = set; then :
3633 $as_echo_n "(cached) " >&6
3635 if test -n "$CC"; then
3636 ac_cv_prog_CC
="$CC" # Let the user override the test.
3639 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
3643 test -z "$as_dir" && as_dir
=.
3644 for ac_exec_ext
in '' $ac_executable_extensions; do
3645 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3646 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
3647 ac_prog_rejected
=yes
3651 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3658 if test $ac_prog_rejected = yes; then
3659 # We found a bogon in the path, so make sure we never use it.
3660 set dummy
$ac_cv_prog_CC
3662 if test $# != 0; then
3663 # We chose a different compiler from the bogus one.
3664 # However, it has the same basename, so the bogon will be chosen
3665 # first if we set CC to just the basename; use the full file name.
3667 ac_cv_prog_CC
="$as_dir/$ac_word${1+' '}$@"
3673 if test -n "$CC"; then
3674 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3675 $as_echo "$CC" >&6; }
3677 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3678 $as_echo "no" >&6; }
3683 if test -z "$CC"; then
3684 if test -n "$ac_tool_prefix"; then
3685 for ac_prog
in cl.exe
3687 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3688 set dummy
$ac_tool_prefix$ac_prog; ac_word
=$2
3689 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3690 $as_echo_n "checking for $ac_word... " >&6; }
3691 if test "${ac_cv_prog_CC+set}" = set; then :
3692 $as_echo_n "(cached) " >&6
3694 if test -n "$CC"; then
3695 ac_cv_prog_CC
="$CC" # Let the user override the test.
3697 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
3701 test -z "$as_dir" && as_dir
=.
3702 for ac_exec_ext
in '' $ac_executable_extensions; do
3703 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3704 ac_cv_prog_CC
="$ac_tool_prefix$ac_prog"
3705 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3715 if test -n "$CC"; then
3716 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3717 $as_echo "$CC" >&6; }
3719 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3720 $as_echo "no" >&6; }
3724 test -n "$CC" && break
3727 if test -z "$CC"; then
3729 for ac_prog
in cl.exe
3731 # Extract the first word of "$ac_prog", so it can be a program name with args.
3732 set dummy
$ac_prog; ac_word
=$2
3733 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3734 $as_echo_n "checking for $ac_word... " >&6; }
3735 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then :
3736 $as_echo_n "(cached) " >&6
3738 if test -n "$ac_ct_CC"; then
3739 ac_cv_prog_ac_ct_CC
="$ac_ct_CC" # Let the user override the test.
3741 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
3745 test -z "$as_dir" && as_dir
=.
3746 for ac_exec_ext
in '' $ac_executable_extensions; do
3747 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3748 ac_cv_prog_ac_ct_CC
="$ac_prog"
3749 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3758 ac_ct_CC
=$ac_cv_prog_ac_ct_CC
3759 if test -n "$ac_ct_CC"; then
3760 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3761 $as_echo "$ac_ct_CC" >&6; }
3763 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3764 $as_echo "no" >&6; }
3768 test -n "$ac_ct_CC" && break
3771 if test "x$ac_ct_CC" = x
; then
3774 case $cross_compiling:$ac_tool_warned in
3776 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3777 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3778 ac_tool_warned
=yes ;;
3787 test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3788 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3789 as_fn_error
"no acceptable C compiler found in \$PATH
3790 See \`config.log' for more details." "$LINENO" 5; }
3792 # Provide some information about the compiler.
3793 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
3796 for ac_option
in --version -v -V -qversion; do
3797 { { ac_try
="$ac_compiler $ac_option >&5"
3799 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
3800 *) ac_try_echo=$ac_try;;
3802 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3803 $as_echo "$ac_try_echo"; } >&5
3804 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
3806 if test -s conftest.err; then
3808 ... rest of stderr output deleted ...
3809 10q' conftest.err >conftest.er1
3810 cat conftest.er1 >&5
3812 rm -f conftest.er1 conftest.err
3813 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3814 test $ac_status = 0; }
3817 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3818 /* end confdefs.h. */
3828 ac_clean_files_save=$ac_clean_files
3829 ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
3830 # Try to create an executable without -o first, disregard a.out.
3831 # It will help us diagnose broken compilers, and finding out an intuition
3833 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
3834 $as_echo_n "checking whether the C compiler works... " >&6; }
3835 ac_link_default=`$as_echo "$ac_link" |
sed 's/ -o *conftest[^ ]*//'`
3837 # The possible output files:
3838 ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
3841 for ac_file in $ac_files
3844 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3845 * ) ac_rmfiles="$ac_rmfiles $ac_file";;
3850 if { { ac_try="$ac_link_default"
3852 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
3853 *) ac_try_echo
=$ac_try;;
3855 eval ac_try_echo
="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3856 $as_echo "$ac_try_echo"; } >&5
3857 (eval "$ac_link_default") 2>&5
3859 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3860 test $ac_status = 0; }; then :
3861 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
3862 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
3863 # in a Makefile. We should not override ac_cv_exeext if it was cached,
3864 # so that the user can short-circuit this test for compilers unknown to
3866 for ac_file
in $ac_files ''
3868 test -f "$ac_file" ||
continue
3870 *.
$ac_ext |
*.xcoff |
*.tds |
*.d |
*.pdb |
*.xSYM |
*.bb |
*.bbg |
*.map |
*.inf |
*.dSYM |
*.o |
*.obj
)
3873 # We found the default executable, but exeext='' is most
3877 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no
;
3879 ac_cv_exeext
=`expr "$ac_file" : '[^.]*\(\..*\)'`
3881 # We set ac_cv_exeext here because the later test for it is not
3882 # safe: cross compilers may not add the suffix if given an `-o'
3883 # argument, so we may need to know it at that point already.
3884 # Even if this section looks crufty: it has the advantage of
3891 test "$ac_cv_exeext" = no
&& ac_cv_exeext
=
3896 if test -z "$ac_file"; then :
3897 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3898 $as_echo "no" >&6; }
3899 $as_echo "$as_me: failed program was:" >&5
3900 sed 's/^/| /' conftest.
$ac_ext >&5
3902 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3903 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3904 { as_fn_set_status
77
3905 as_fn_error
"C compiler cannot create executables
3906 See \`config.log' for more details." "$LINENO" 5; }; }
3908 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3909 $as_echo "yes" >&6; }
3911 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
3912 $as_echo_n "checking for C compiler default output file name... " >&6; }
3913 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
3914 $as_echo "$ac_file" >&6; }
3915 ac_exeext
=$ac_cv_exeext
3917 rm -f -r a.out a.out.dSYM a.exe conftest
$ac_cv_exeext b.out
3918 ac_clean_files
=$ac_clean_files_save
3919 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
3920 $as_echo_n "checking for suffix of executables... " >&6; }
3921 if { { ac_try
="$ac_link"
3923 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
3924 *) ac_try_echo=$ac_try;;
3926 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3927 $as_echo "$ac_try_echo"; } >&5
3928 (eval "$ac_link") 2>&5
3930 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3931 test $ac_status = 0; }; then :
3932 # If both `conftest.exe
' and `conftest' are
`present' (well, observable)
3933 # catch `conftest.exe
'. For instance with Cygwin, `ls conftest' will
3934 # work properly (i.e., refer to `conftest.exe'), while it won't with
3936 for ac_file
in conftest.exe conftest conftest.
*; do
3937 test -f "$ac_file" ||
continue
3939 *.
$ac_ext |
*.xcoff |
*.tds |
*.d |
*.pdb |
*.xSYM |
*.bb |
*.bbg |
*.map |
*.inf |
*.dSYM |
*.o |
*.obj
) ;;
3940 *.
* ) ac_cv_exeext
=`expr "$ac_file" : '[^.]*\(\..*\)'`
3946 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3947 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3948 as_fn_error
"cannot compute suffix of executables: cannot compile and link
3949 See \`config.log' for more details." "$LINENO" 5; }
3951 rm -f conftest conftest
$ac_cv_exeext
3952 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
3953 $as_echo "$ac_cv_exeext" >&6; }
3955 rm -f conftest.
$ac_ext
3956 EXEEXT
=$ac_cv_exeext
3958 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
3959 /* end confdefs.h. */
3964 FILE *f = fopen ("conftest.out", "w");
3965 return ferror (f) || fclose (f) != 0;
3971 ac_clean_files
="$ac_clean_files conftest.out"
3972 # Check that the compiler produces executables we can run. If not, either
3973 # the compiler is broken, or we cross compile.
3974 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
3975 $as_echo_n "checking whether we are cross compiling... " >&6; }
3976 if test "$cross_compiling" != yes; then
3977 { { ac_try
="$ac_link"
3979 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
3980 *) ac_try_echo=$ac_try;;
3982 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3983 $as_echo "$ac_try_echo"; } >&5
3984 (eval "$ac_link") 2>&5
3986 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3987 test $ac_status = 0; }
3988 if { ac_try='./conftest$ac_cv_exeext'
3989 { { case "(($ac_try" in
3990 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
3991 *) ac_try_echo
=$ac_try;;
3993 eval ac_try_echo
="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3994 $as_echo "$ac_try_echo"; } >&5
3995 (eval "$ac_try") 2>&5
3997 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3998 test $ac_status = 0; }; }; then
4001 if test "$cross_compiling" = maybe
; then
4004 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4005 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4006 as_fn_error
"cannot run C compiled programs.
4007 If you meant to cross compile, use \`--host'.
4008 See \`config.log' for more details." "$LINENO" 5; }
4012 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
4013 $as_echo "$cross_compiling" >&6; }
4015 rm -f conftest.
$ac_ext conftest
$ac_cv_exeext conftest.out
4016 ac_clean_files
=$ac_clean_files_save
4017 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
4018 $as_echo_n "checking for suffix of object files... " >&6; }
4019 if test "${ac_cv_objext+set}" = set; then :
4020 $as_echo_n "(cached) " >&6
4022 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
4023 /* end confdefs.h. */
4033 rm -f conftest.o conftest.obj
4034 if { { ac_try
="$ac_compile"
4036 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
4037 *) ac_try_echo=$ac_try;;
4039 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4040 $as_echo "$ac_try_echo"; } >&5
4041 (eval "$ac_compile") 2>&5
4043 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4044 test $ac_status = 0; }; then :
4045 for ac_file in conftest.o conftest.obj conftest.*; do
4046 test -f "$ac_file" || continue;
4048 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
4049 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
4054 $as_echo "$as_me: failed program was:" >&5
4055 sed 's/^/| /' conftest.$ac_ext >&5
4057 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4058 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4059 as_fn_error "cannot compute suffix of object files
: cannot compile
4060 See \
`config.log' for more details." "$LINENO" 5; }
4062 rm -f conftest.$ac_cv_objext conftest.$ac_ext
4064 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
4065 $as_echo "$ac_cv_objext" >&6; }
4066 OBJEXT=$ac_cv_objext
4068 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
4069 $as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
4070 if test "${ac_cv_c_compiler_gnu+set}" = set; then :
4071 $as_echo_n "(cached) " >&6
4073 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4074 /* end confdefs.h. */
4087 if ac_fn_c_try_compile "$LINENO"; then :
4092 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4093 ac_cv_c_compiler_gnu=$ac_compiler_gnu
4096 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
4097 $as_echo "$ac_cv_c_compiler_gnu" >&6; }
4098 if test $ac_compiler_gnu = yes; then
4103 ac_test_CFLAGS=${CFLAGS+set}
4104 ac_save_CFLAGS=$CFLAGS
4105 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
4106 $as_echo_n "checking whether $CC accepts -g... " >&6; }
4107 if test "${ac_cv_prog_cc_g+set}" = set; then :
4108 $as_echo_n "(cached) " >&6
4110 ac_save_c_werror_flag=$ac_c_werror_flag
4111 ac_c_werror_flag=yes
4114 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4115 /* end confdefs.h. */
4125 if ac_fn_c_try_compile "$LINENO"; then :
4129 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4130 /* end confdefs.h. */
4140 if ac_fn_c_try_compile "$LINENO"; then :
4143 ac_c_werror_flag=$ac_save_c_werror_flag
4145 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4146 /* end confdefs.h. */
4156 if ac_fn_c_try_compile "$LINENO"; then :
4159 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4161 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4163 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4164 ac_c_werror_flag=$ac_save_c_werror_flag
4166 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
4167 $as_echo "$ac_cv_prog_cc_g" >&6; }
4168 if test "$ac_test_CFLAGS" = set; then
4169 CFLAGS=$ac_save_CFLAGS
4170 elif test $ac_cv_prog_cc_g = yes; then
4171 if test "$GCC" = yes; then
4177 if test "$GCC" = yes; then
4183 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
4184 $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
4185 if test "${ac_cv_prog_cc_c89+set}" = set; then :
4186 $as_echo_n "(cached) " >&6
4188 ac_cv_prog_cc_c89=no
4190 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4191 /* end confdefs.h. */
4194 #include <sys/types.h>
4195 #include <sys/stat.h>
4196 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
4197 struct buf { int x; };
4198 FILE * (*rcsopen) (struct buf *, struct stat *, int);
4199 static char *e (p, i)
4205 static char *f (char * (*g) (char **, int), char **p, ...)
4210 s = g (p, va_arg (v,int));
4215 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
4216 function prototypes and stuff, but not '\xHH' hex character constants.
4217 These don't provoke an error unfortunately, instead are silently treated
4218 as 'x'. The following induces an error, until -std is added to get
4219 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
4220 array size at least. It's necessary to write '\x00'==0 to get something
4221 that's true only with -std. */
4222 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
4224 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
4225 inside strings and character constants. */
4227 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
4229 int test (int i, double x);
4230 struct s1 {int (*f) (int a);};
4231 struct s2 {int (*f) (double a);};
4232 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
4238 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
4243 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
4244 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
4246 CC="$ac_save_CC $ac_arg"
4247 if ac_fn_c_try_compile "$LINENO"; then :
4248 ac_cv_prog_cc_c89=$ac_arg
4250 rm -f core conftest.err conftest.$ac_objext
4251 test "x$ac_cv_prog_cc_c89" != "xno" && break
4253 rm -f conftest.$ac_ext
4258 case "x$ac_cv_prog_cc_c89" in
4260 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
4261 $as_echo "none needed" >&6; } ;;
4263 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
4264 $as_echo "unsupported" >&6; } ;;
4266 CC="$CC $ac_cv_prog_cc_c89"
4267 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
4268 $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
4270 if test "x$ac_cv_prog_cc_c89" != xno; then :
4275 ac_cpp='$CPP $CPPFLAGS'
4276 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4277 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4278 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4281 # On Suns, sometimes $CPP names a directory.
4282 if test -n "$CPP" && test -d "$CPP"; then
4286 ## If not using gcc, and on Solaris, and no CPP specified, see if
4287 ## using a Sun compiler, which needs -Xs to prevent whitespace.
4288 if test x"$GCC" != xyes && test x"$emacs_check_sunpro_c" = xyes && \
4289 test x"$CPP" = x; then
4290 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using a Sun C compiler" >&5
4291 $as_echo_n "checking whether we are using a Sun C compiler... " >&6; }
4293 if test "${emacs_cv_sunpro_c+set}" = set; then :
4294 $as_echo_n "(cached) " >&6
4296 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4297 /* end confdefs.h. */
4310 if ac_fn_c_try_link "$LINENO"; then :
4311 emacs_cv_sunpro_c=yes
4313 emacs_cv_sunpro_c=no
4315 rm -f core conftest.err conftest.$ac_objext \
4316 conftest$ac_exeext conftest.$ac_ext
4319 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $emacs_cv_sunpro_c" >&5
4320 $as_echo "$emacs_cv_sunpro_c" >&6; }
4322 if test x"$emacs_cv_sunpro_c" = xyes; then
4323 NON_GNU_CPP="$CC -E -Xs"
4327 #### Some systems specify a CPP to use unless we are using GCC.
4328 #### Now that we know whether we are using GCC, we can decide whether
4329 #### to use that one.
4330 if test "x$NON_GNU_CPP" != x && test x$GCC != xyes && test "x$CPP" = x
4335 #### Some systems specify a CC to use unless we are using GCC.
4336 #### Now that we know whether we are using GCC, we can decide whether
4337 #### to use that one.
4338 if test "x$NON_GNU_CC" != x && test x$GCC != xyes &&
4339 test x$cc_specified != xyes
4344 if test x$GCC = xyes; then
4345 test "x$GCC_TEST_OPTIONS" != x && CC="$CC $GCC_TEST_OPTIONS"
4347 test "x$NON_GCC_TEST_OPTIONS" != x && CC="$CC $NON_GCC_TEST_OPTIONS"
4351 ac_cpp='$CPP $CPPFLAGS'
4352 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4353 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4354 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4355 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
4356 $as_echo_n "checking how to run the C preprocessor... " >&6; }
4357 # On Suns, sometimes $CPP names a directory.
4358 if test -n "$CPP" && test -d "$CPP"; then
4361 if test -z "$CPP"; then
4362 if test "${ac_cv_prog_CPP+set}" = set; then :
4363 $as_echo_n "(cached) " >&6
4365 # Double quotes because CPP needs to be expanded
4366 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
4369 for ac_c_preproc_warn_flag in '' yes
4371 # Use a header file that comes with gcc, so configuring glibc
4372 # with a fresh cross-compiler works.
4373 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4374 # <limits.h> exists even on freestanding compilers.
4375 # On the NeXT, cc -E runs the code through the compiler's parser,
4376 # not just through cpp. "Syntax error" is here to catch this case.
4377 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4378 /* end confdefs.h. */
4380 # include <limits.h>
4382 # include <assert.h>
4386 if ac_fn_c_try_cpp "$LINENO"; then :
4389 # Broken: fails on valid input.
4392 rm -f conftest.err conftest.$ac_ext
4394 # OK, works on sane cases. Now check whether nonexistent headers
4395 # can be detected and how.
4396 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4397 /* end confdefs.h. */
4398 #include <ac_nonexistent.h>
4400 if ac_fn_c_try_cpp "$LINENO"; then :
4401 # Broken: success on invalid input.
4404 # Passes both tests.
4408 rm -f conftest.err conftest.$ac_ext
4411 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4412 rm -f conftest.err conftest.
$ac_ext
4413 if $ac_preproc_ok; then :
4425 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
4426 $as_echo "$CPP" >&6; }
4428 for ac_c_preproc_warn_flag
in '' yes
4430 # Use a header file that comes with gcc, so configuring glibc
4431 # with a fresh cross-compiler works.
4432 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4433 # <limits.h> exists even on freestanding compilers.
4434 # On the NeXT, cc -E runs the code through the compiler's parser,
4435 # not just through cpp. "Syntax error" is here to catch this case.
4436 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
4437 /* end confdefs.h. */
4439 # include <limits.h>
4441 # include <assert.h>
4445 if ac_fn_c_try_cpp
"$LINENO"; then :
4448 # Broken: fails on valid input.
4451 rm -f conftest.err conftest.
$ac_ext
4453 # OK, works on sane cases. Now check whether nonexistent headers
4454 # can be detected and how.
4455 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
4456 /* end confdefs.h. */
4457 #include <ac_nonexistent.h>
4459 if ac_fn_c_try_cpp
"$LINENO"; then :
4460 # Broken: success on invalid input.
4463 # Passes both tests.
4467 rm -f conftest.err conftest.
$ac_ext
4470 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4471 rm -f conftest.err conftest.
$ac_ext
4472 if $ac_preproc_ok; then :
4475 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4476 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4477 as_fn_error
"C preprocessor \"$CPP\" fails sanity check
4478 See \`config.log' for more details." "$LINENO" 5; }
4482 ac_cpp
='$CPP $CPPFLAGS'
4483 ac_compile
='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4484 ac_link
='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4485 ac_compiler_gnu
=$ac_cv_c_compiler_gnu
4488 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
4489 $as_echo_n "checking for grep that handles long lines and -e... " >&6; }
4490 if test "${ac_cv_path_GREP+set}" = set; then :
4491 $as_echo_n "(cached) " >&6
4493 if test -z "$GREP"; then
4494 ac_path_GREP_found
=false
4495 # Loop through the user's path and test for each of PROGNAME-LIST
4496 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
4497 for as_dir
in $PATH$PATH_SEPARATOR/usr
/xpg
4/bin
4500 test -z "$as_dir" && as_dir
=.
4501 for ac_prog
in grep ggrep
; do
4502 for ac_exec_ext
in '' $ac_executable_extensions; do
4503 ac_path_GREP
="$as_dir/$ac_prog$ac_exec_ext"
4504 { test -f "$ac_path_GREP" && $as_test_x "$ac_path_GREP"; } ||
continue
4505 # Check for GNU ac_path_GREP and select it if it is found.
4506 # Check for GNU $ac_path_GREP
4507 case `"$ac_path_GREP" --version 2>&1` in
4509 ac_cv_path_GREP
="$ac_path_GREP" ac_path_GREP_found
=:;;
4512 $as_echo_n 0123456789 >"conftest.in"
4515 cat "conftest.in" "conftest.in" >"conftest.tmp"
4516 mv "conftest.tmp" "conftest.in"
4517 cp "conftest.in" "conftest.nl"
4518 $as_echo 'GREP' >> "conftest.nl"
4519 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev
/null ||
break
4520 diff "conftest.out" "conftest.nl" >/dev
/null
2>&1 ||
break
4521 as_fn_arith
$ac_count + 1 && ac_count
=$as_val
4522 if test $ac_count -gt ${ac_path_GREP_max-0}; then
4523 # Best one so far, save it but keep looking for a better one
4524 ac_cv_path_GREP
="$ac_path_GREP"
4525 ac_path_GREP_max
=$ac_count
4527 # 10*(2^10) chars as input seems more than enough
4528 test $ac_count -gt 10 && break
4530 rm -f conftest.
in conftest.tmp conftest.
nl conftest.out
;;
4533 $ac_path_GREP_found && break 3
4538 if test -z "$ac_cv_path_GREP"; then
4539 as_fn_error
"no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
4542 ac_cv_path_GREP
=$GREP
4546 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
4547 $as_echo "$ac_cv_path_GREP" >&6; }
4548 GREP
="$ac_cv_path_GREP"
4551 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
4552 $as_echo_n "checking for egrep... " >&6; }
4553 if test "${ac_cv_path_EGREP+set}" = set; then :
4554 $as_echo_n "(cached) " >&6
4556 if echo a |
$GREP -E '(a|b)' >/dev
/null
2>&1
4557 then ac_cv_path_EGREP
="$GREP -E"
4559 if test -z "$EGREP"; then
4560 ac_path_EGREP_found
=false
4561 # Loop through the user's path and test for each of PROGNAME-LIST
4562 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
4563 for as_dir
in $PATH$PATH_SEPARATOR/usr
/xpg
4/bin
4566 test -z "$as_dir" && as_dir
=.
4567 for ac_prog
in egrep; do
4568 for ac_exec_ext
in '' $ac_executable_extensions; do
4569 ac_path_EGREP
="$as_dir/$ac_prog$ac_exec_ext"
4570 { test -f "$ac_path_EGREP" && $as_test_x "$ac_path_EGREP"; } ||
continue
4571 # Check for GNU ac_path_EGREP and select it if it is found.
4572 # Check for GNU $ac_path_EGREP
4573 case `"$ac_path_EGREP" --version 2>&1` in
4575 ac_cv_path_EGREP
="$ac_path_EGREP" ac_path_EGREP_found
=:;;
4578 $as_echo_n 0123456789 >"conftest.in"
4581 cat "conftest.in" "conftest.in" >"conftest.tmp"
4582 mv "conftest.tmp" "conftest.in"
4583 cp "conftest.in" "conftest.nl"
4584 $as_echo 'EGREP' >> "conftest.nl"
4585 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev
/null ||
break
4586 diff "conftest.out" "conftest.nl" >/dev
/null
2>&1 ||
break
4587 as_fn_arith
$ac_count + 1 && ac_count
=$as_val
4588 if test $ac_count -gt ${ac_path_EGREP_max-0}; then
4589 # Best one so far, save it but keep looking for a better one
4590 ac_cv_path_EGREP
="$ac_path_EGREP"
4591 ac_path_EGREP_max
=$ac_count
4593 # 10*(2^10) chars as input seems more than enough
4594 test $ac_count -gt 10 && break
4596 rm -f conftest.
in conftest.tmp conftest.
nl conftest.out
;;
4599 $ac_path_EGREP_found && break 3
4604 if test -z "$ac_cv_path_EGREP"; then
4605 as_fn_error
"no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
4608 ac_cv_path_EGREP
=$EGREP
4613 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
4614 $as_echo "$ac_cv_path_EGREP" >&6; }
4615 EGREP
="$ac_cv_path_EGREP"
4618 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
4619 $as_echo_n "checking for ANSI C header files... " >&6; }
4620 if test "${ac_cv_header_stdc+set}" = set; then :
4621 $as_echo_n "(cached) " >&6
4623 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
4624 /* end confdefs.h. */
4638 if ac_fn_c_try_compile
"$LINENO"; then :
4639 ac_cv_header_stdc
=yes
4641 ac_cv_header_stdc
=no
4643 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
4645 if test $ac_cv_header_stdc = yes; then
4646 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
4647 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
4648 /* end confdefs.h. */
4652 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4653 $EGREP "memchr" >/dev
/null
2>&1; then :
4656 ac_cv_header_stdc
=no
4662 if test $ac_cv_header_stdc = yes; then
4663 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
4664 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
4665 /* end confdefs.h. */
4669 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4670 $EGREP "free" >/dev
/null
2>&1; then :
4673 ac_cv_header_stdc
=no
4679 if test $ac_cv_header_stdc = yes; then
4680 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
4681 if test "$cross_compiling" = yes; then :
4684 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
4685 /* end confdefs.h. */
4688 #if ((' ' & 0x0FF) == 0x020)
4689 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
4690 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
4692 # define ISLOWER(c) \
4693 (('a' <= (c) && (c) <= 'i') \
4694 || ('j' <= (c) && (c) <= 'r') \
4695 || ('s' <= (c) && (c) <= 'z'))
4696 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
4699 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
4704 for (i = 0; i < 256; i++)
4705 if (XOR (islower (i), ISLOWER (i))
4706 || toupper (i) != TOUPPER (i))
4711 if ac_fn_c_try_run
"$LINENO"; then :
4714 ac_cv_header_stdc
=no
4716 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
4717 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
4722 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
4723 $as_echo "$ac_cv_header_stdc" >&6; }
4724 if test $ac_cv_header_stdc = yes; then
4726 $as_echo "#define STDC_HEADERS 1" >>confdefs.h
4730 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
4731 for ac_header
in sys
/types.h sys
/stat.h stdlib.h string.h memory.h
strings.h \
4732 inttypes.h stdint.h unistd.h
4734 as_ac_Header
=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
4735 ac_fn_c_check_header_compile
"$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
4737 eval as_val
=\$
$as_ac_Header
4738 if test "x$as_val" = x
""yes; then :
4739 cat >>confdefs.h
<<_ACEOF
4740 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
4749 ac_fn_c_check_header_mongrel
"$LINENO" "minix/config.h" "ac_cv_header_minix_config_h" "$ac_includes_default"
4750 if test "x$ac_cv_header_minix_config_h" = x
""yes; then :
4757 if test "$MINIX" = yes; then
4759 $as_echo "#define _POSIX_SOURCE 1" >>confdefs.h
4762 $as_echo "#define _POSIX_1_SOURCE 2" >>confdefs.h
4765 $as_echo "#define _MINIX 1" >>confdefs.h
4770 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether it is safe to define __EXTENSIONS__" >&5
4771 $as_echo_n "checking whether it is safe to define __EXTENSIONS__... " >&6; }
4772 if test "${ac_cv_safe_to_define___extensions__+set}" = set; then :
4773 $as_echo_n "(cached) " >&6
4775 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
4776 /* end confdefs.h. */
4778 # define __EXTENSIONS__ 1
4779 $ac_includes_default
4788 if ac_fn_c_try_compile
"$LINENO"; then :
4789 ac_cv_safe_to_define___extensions__
=yes
4791 ac_cv_safe_to_define___extensions__
=no
4793 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
4795 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_safe_to_define___extensions__" >&5
4796 $as_echo "$ac_cv_safe_to_define___extensions__" >&6; }
4797 test $ac_cv_safe_to_define___extensions__ = yes &&
4798 $as_echo "#define __EXTENSIONS__ 1" >>confdefs.h
4800 $as_echo "#define _ALL_SOURCE 1" >>confdefs.h
4802 $as_echo "#define _GNU_SOURCE 1" >>confdefs.h
4804 $as_echo "#define _POSIX_PTHREAD_SEMANTICS 1" >>confdefs.h
4806 $as_echo "#define _TANDEM_SOURCE 1" >>confdefs.h
4810 ### Use -Wno-pointer-sign if the compiler supports it
4811 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether gcc understands -Wno-pointer-sign" >&5
4812 $as_echo_n "checking whether gcc understands -Wno-pointer-sign... " >&6; }
4813 SAVE_CFLAGS
="$CFLAGS"
4814 CFLAGS
="$CFLAGS -Wno-pointer-sign"
4815 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
4816 /* end confdefs.h. */
4826 if ac_fn_c_try_compile
"$LINENO"; then :
4831 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
4832 if test $has_option = yes; then
4833 C_WARNINGS_SWITCH
="-Wno-pointer-sign $C_WARNINGS_SWITCH"
4835 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $has_option" >&5
4836 $as_echo "$has_option" >&6; }
4837 CFLAGS
="$SAVE_CFLAGS"
4841 ### Use -Wdeclaration-after-statement if the compiler supports it
4842 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether gcc understands -Wdeclaration-after-statement" >&5
4843 $as_echo_n "checking whether gcc understands -Wdeclaration-after-statement... " >&6; }
4844 SAVE_CFLAGS
="$CFLAGS"
4845 CFLAGS
="$CFLAGS -Wdeclaration-after-statement"
4846 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
4847 /* end confdefs.h. */
4857 if ac_fn_c_try_compile
"$LINENO"; then :
4862 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
4863 if test $has_option = yes; then
4864 C_WARNINGS_SWITCH
="-Wdeclaration-after-statement $C_WARNINGS_SWITCH"
4866 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $has_option" >&5
4867 $as_echo "$has_option" >&6; }
4868 CFLAGS
="$SAVE_CFLAGS"
4872 ### Use -Wold-style-definition if the compiler supports it
4873 # This can be removed when conversion to standard C is finished.
4874 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether gcc understands -Wold-style-definition" >&5
4875 $as_echo_n "checking whether gcc understands -Wold-style-definition... " >&6; }
4876 SAVE_CFLAGS
="$CFLAGS"
4877 CFLAGS
="$CFLAGS -Wold-style-definition"
4878 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
4879 /* end confdefs.h. */
4889 if ac_fn_c_try_compile
"$LINENO"; then :
4894 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
4895 if test $has_option = yes; then
4896 C_WARNINGS_SWITCH
="-Wold-style-definition $C_WARNINGS_SWITCH"
4898 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $has_option" >&5
4899 $as_echo "$has_option" >&6; }
4900 CFLAGS
="$SAVE_CFLAGS"
4904 ### Use -Wimplicit-function-declaration if the compiler supports it
4905 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether gcc understands -Wimplicit-function-declaration" >&5
4906 $as_echo_n "checking whether gcc understands -Wimplicit-function-declaration... " >&6; }
4907 SAVE_CFLAGS
="$CFLAGS"
4908 CFLAGS
="$CFLAGS -Wimplicit-function-declaration"
4909 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
4910 /* end confdefs.h. */
4920 if ac_fn_c_try_compile
"$LINENO"; then :
4925 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
4926 if test $has_option = yes; then
4927 C_WARNINGS_SWITCH
="-Wimplicit-function-declaration $C_WARNINGS_SWITCH"
4929 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $has_option" >&5
4930 $as_echo "$has_option" >&6; }
4931 CFLAGS
="$SAVE_CFLAGS"
4938 #### Some other nice autoconf tests.
4941 ac_cpp
='$CPP $CPPFLAGS'
4942 ac_compile
='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4943 ac_link
='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4944 ac_compiler_gnu
=$ac_cv_c_compiler_gnu
4945 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
4946 $as_echo_n "checking how to run the C preprocessor... " >&6; }
4947 # On Suns, sometimes $CPP names a directory.
4948 if test -n "$CPP" && test -d "$CPP"; then
4951 if test -z "$CPP"; then
4952 if test "${ac_cv_prog_CPP+set}" = set; then :
4953 $as_echo_n "(cached) " >&6
4955 # Double quotes because CPP needs to be expanded
4956 for CPP
in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
4959 for ac_c_preproc_warn_flag
in '' yes
4961 # Use a header file that comes with gcc, so configuring glibc
4962 # with a fresh cross-compiler works.
4963 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4964 # <limits.h> exists even on freestanding compilers.
4965 # On the NeXT, cc -E runs the code through the compiler's parser,
4966 # not just through cpp. "Syntax error" is here to catch this case.
4967 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
4968 /* end confdefs.h. */
4970 # include <limits.h>
4972 # include <assert.h>
4976 if ac_fn_c_try_cpp
"$LINENO"; then :
4979 # Broken: fails on valid input.
4982 rm -f conftest.err conftest.
$ac_ext
4984 # OK, works on sane cases. Now check whether nonexistent headers
4985 # can be detected and how.
4986 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
4987 /* end confdefs.h. */
4988 #include <ac_nonexistent.h>
4990 if ac_fn_c_try_cpp
"$LINENO"; then :
4991 # Broken: success on invalid input.
4994 # Passes both tests.
4998 rm -f conftest.err conftest.
$ac_ext
5001 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
5002 rm -f conftest.err conftest.
$ac_ext
5003 if $ac_preproc_ok; then :
5015 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
5016 $as_echo "$CPP" >&6; }
5018 for ac_c_preproc_warn_flag
in '' yes
5020 # Use a header file that comes with gcc, so configuring glibc
5021 # with a fresh cross-compiler works.
5022 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5023 # <limits.h> exists even on freestanding compilers.
5024 # On the NeXT, cc -E runs the code through the compiler's parser,
5025 # not just through cpp. "Syntax error" is here to catch this case.
5026 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
5027 /* end confdefs.h. */
5029 # include <limits.h>
5031 # include <assert.h>
5035 if ac_fn_c_try_cpp
"$LINENO"; then :
5038 # Broken: fails on valid input.
5041 rm -f conftest.err conftest.
$ac_ext
5043 # OK, works on sane cases. Now check whether nonexistent headers
5044 # can be detected and how.
5045 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
5046 /* end confdefs.h. */
5047 #include <ac_nonexistent.h>
5049 if ac_fn_c_try_cpp
"$LINENO"; then :
5050 # Broken: success on invalid input.
5053 # Passes both tests.
5057 rm -f conftest.err conftest.
$ac_ext
5060 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
5061 rm -f conftest.err conftest.
$ac_ext
5062 if $ac_preproc_ok; then :
5065 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
5066 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
5067 as_fn_error
"C preprocessor \"$CPP\" fails sanity check
5068 See \`config.log' for more details." "$LINENO" 5; }
5072 ac_cpp
='$CPP $CPPFLAGS'
5073 ac_compile
='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5074 ac_link
='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5075 ac_compiler_gnu
=$ac_cv_c_compiler_gnu
5077 # Find a good install program. We prefer a C program (faster),
5078 # so one script is as good as another. But avoid the broken or
5079 # incompatible versions:
5080 # SysV /etc/install, /usr/sbin/install
5081 # SunOS /usr/etc/install
5082 # IRIX /sbin/install
5084 # AmigaOS /C/install, which installs bootblocks on floppy discs
5085 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
5086 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
5087 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
5088 # OS/2's system install, which has a completely different semantic
5089 # ./install, which can be erroneously created by make from ./install.sh.
5090 # Reject install programs that cannot install multiple files.
5091 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5
5092 $as_echo_n "checking for a BSD-compatible install... " >&6; }
5093 if test -z "$INSTALL"; then
5094 if test "${ac_cv_path_install+set}" = set; then :
5095 $as_echo_n "(cached) " >&6
5097 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
5101 test -z "$as_dir" && as_dir
=.
5102 # Account for people who put trailing slashes in PATH elements.
5103 case $as_dir/ in #((
5104 .
/ | .
// |
/[cC
]/* | \
5105 /etc
/* |
/usr
/sbin
/* |
/usr
/etc
/* |
/sbin
/* |
/usr
/afsws
/bin
/* | \
5106 ?
:[\\/]os2
[\\/]install[\\/]* | ?
:[\\/]OS2
[\\/]INSTALL
[\\/]* | \
5109 # OSF1 and SCO ODT 3.0 have their own names for install.
5110 # Don't use installbsd from OSF since it installs stuff as root
5112 for ac_prog
in ginstall scoinst
install; do
5113 for ac_exec_ext
in '' $ac_executable_extensions; do
5114 if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; }; then
5115 if test $ac_prog = install &&
5116 grep dspmsg
"$as_dir/$ac_prog$ac_exec_ext" >/dev
/null
2>&1; then
5117 # AIX install. It has an incompatible calling convention.
5119 elif test $ac_prog = install &&
5120 grep pwplus
"$as_dir/$ac_prog$ac_exec_ext" >/dev
/null
2>&1; then
5121 # program-specific install script used by HP pwplus--don't use.
5124 rm -rf conftest.one conftest.two conftest.dir
5125 echo one
> conftest.one
5126 echo two
> conftest.two
5128 if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two
"`pwd`/conftest.dir" &&
5129 test -s conftest.one
&& test -s conftest.two
&&
5130 test -s conftest.dir
/conftest.one
&&
5131 test -s conftest.dir
/conftest.two
5133 ac_cv_path_install
="$as_dir/$ac_prog$ac_exec_ext -c"
5146 rm -rf conftest.one conftest.two conftest.dir
5149 if test "${ac_cv_path_install+set}" = set; then
5150 INSTALL
=$ac_cv_path_install
5152 # As a last resort, use the slow shell script. Don't cache a
5153 # value for INSTALL within a source directory, because that will
5154 # break other packages using the cache if that directory is
5155 # removed, or if the value is a relative name.
5156 INSTALL
=$ac_install_sh
5159 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
5160 $as_echo "$INSTALL" >&6; }
5162 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
5163 # It thinks the first close brace ends the variable substitution.
5164 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM
='${INSTALL}'
5166 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT
='${INSTALL}'
5168 test -z "$INSTALL_DATA" && INSTALL_DATA
='${INSTALL} -m 644'
5170 if test "x$RANLIB" = x
; then
5171 if test -n "$ac_tool_prefix"; then
5172 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
5173 set dummy
${ac_tool_prefix}ranlib
; ac_word
=$2
5174 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5175 $as_echo_n "checking for $ac_word... " >&6; }
5176 if test "${ac_cv_prog_RANLIB+set}" = set; then :
5177 $as_echo_n "(cached) " >&6
5179 if test -n "$RANLIB"; then
5180 ac_cv_prog_RANLIB
="$RANLIB" # Let the user override the test.
5182 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
5186 test -z "$as_dir" && as_dir
=.
5187 for ac_exec_ext
in '' $ac_executable_extensions; do
5188 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5189 ac_cv_prog_RANLIB
="${ac_tool_prefix}ranlib"
5190 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5199 RANLIB
=$ac_cv_prog_RANLIB
5200 if test -n "$RANLIB"; then
5201 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
5202 $as_echo "$RANLIB" >&6; }
5204 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5205 $as_echo "no" >&6; }
5210 if test -z "$ac_cv_prog_RANLIB"; then
5211 ac_ct_RANLIB
=$RANLIB
5212 # Extract the first word of "ranlib", so it can be a program name with args.
5213 set dummy ranlib
; ac_word
=$2
5214 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5215 $as_echo_n "checking for $ac_word... " >&6; }
5216 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then :
5217 $as_echo_n "(cached) " >&6
5219 if test -n "$ac_ct_RANLIB"; then
5220 ac_cv_prog_ac_ct_RANLIB
="$ac_ct_RANLIB" # Let the user override the test.
5222 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
5226 test -z "$as_dir" && as_dir
=.
5227 for ac_exec_ext
in '' $ac_executable_extensions; do
5228 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5229 ac_cv_prog_ac_ct_RANLIB
="ranlib"
5230 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5239 ac_ct_RANLIB
=$ac_cv_prog_ac_ct_RANLIB
5240 if test -n "$ac_ct_RANLIB"; then
5241 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
5242 $as_echo "$ac_ct_RANLIB" >&6; }
5244 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5245 $as_echo "no" >&6; }
5248 if test "x$ac_ct_RANLIB" = x
; then
5251 case $cross_compiling:$ac_tool_warned in
5253 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5254 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5255 ac_tool_warned
=yes ;;
5257 RANLIB
=$ac_ct_RANLIB
5260 RANLIB
="$ac_cv_prog_RANLIB"
5265 ## Although we're running on an amd64 kernel, we're actually compiling for
5266 ## the x86 architecture. The user should probably have provided an
5267 ## explicit --build to `configure', but if everything else than the kernel
5268 ## is running in i386 mode, we can help them out.
5269 if test "$machine" = "amdx86-64"; then
5270 ac_fn_c_check_decl
"$LINENO" "i386" "ac_cv_have_decl_i386" "$ac_includes_default"
5271 if test "x$ac_cv_have_decl_i386" = x
""yes; then :
5275 if test "$ac_cv_have_decl_i386" = "yes"; then
5276 canonical
=`echo "$canonical" | sed -e 's/^amd64/i386/' -e 's/^x86_64/i386/'`
5278 machfile
="m/${machine}.h"
5282 # Extract the first word of "install-info", so it can be a program name with args.
5283 set dummy install-info
; ac_word
=$2
5284 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5285 $as_echo_n "checking for $ac_word... " >&6; }
5286 if test "${ac_cv_path_INSTALL_INFO+set}" = set; then :
5287 $as_echo_n "(cached) " >&6
5289 case $INSTALL_INFO in
5291 ac_cv_path_INSTALL_INFO
="$INSTALL_INFO" # Let the user override the test with a path.
5294 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
5298 test -z "$as_dir" && as_dir
=.
5299 for ac_exec_ext
in '' $ac_executable_extensions; do
5300 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5301 ac_cv_path_INSTALL_INFO
="$as_dir/$ac_word$ac_exec_ext"
5302 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5312 INSTALL_INFO
=$ac_cv_path_INSTALL_INFO
5313 if test -n "$INSTALL_INFO"; then
5314 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL_INFO" >&5
5315 $as_echo "$INSTALL_INFO" >&6; }
5317 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5318 $as_echo "no" >&6; }
5322 # Extract the first word of "install-info", so it can be a program name with args.
5323 set dummy install-info
; ac_word
=$2
5324 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5325 $as_echo_n "checking for $ac_word... " >&6; }
5326 if test "${ac_cv_path_INSTALL_INFO+set}" = set; then :
5327 $as_echo_n "(cached) " >&6
5329 case $INSTALL_INFO in
5331 ac_cv_path_INSTALL_INFO
="$INSTALL_INFO" # Let the user override the test with a path.
5334 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
5335 for as_dir
in /usr
/sbin
5338 test -z "$as_dir" && as_dir
=.
5339 for ac_exec_ext
in '' $ac_executable_extensions; do
5340 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5341 ac_cv_path_INSTALL_INFO
="$as_dir/$ac_word$ac_exec_ext"
5342 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5352 INSTALL_INFO
=$ac_cv_path_INSTALL_INFO
5353 if test -n "$INSTALL_INFO"; then
5354 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL_INFO" >&5
5355 $as_echo "$INSTALL_INFO" >&6; }
5357 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5358 $as_echo "no" >&6; }
5362 # Extract the first word of "install-info", so it can be a program name with args.
5363 set dummy install-info
; ac_word
=$2
5364 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5365 $as_echo_n "checking for $ac_word... " >&6; }
5366 if test "${ac_cv_path_INSTALL_INFO+set}" = set; then :
5367 $as_echo_n "(cached) " >&6
5369 case $INSTALL_INFO in
5371 ac_cv_path_INSTALL_INFO
="$INSTALL_INFO" # Let the user override the test with a path.
5374 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
5378 test -z "$as_dir" && as_dir
=.
5379 for ac_exec_ext
in '' $ac_executable_extensions; do
5380 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5381 ac_cv_path_INSTALL_INFO
="$as_dir/$ac_word$ac_exec_ext"
5382 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5389 test -z "$ac_cv_path_INSTALL_INFO" && ac_cv_path_INSTALL_INFO
=":"
5393 INSTALL_INFO
=$ac_cv_path_INSTALL_INFO
5394 if test -n "$INSTALL_INFO"; then
5395 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL_INFO" >&5
5396 $as_echo "$INSTALL_INFO" >&6; }
5398 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5399 $as_echo "no" >&6; }
5403 # Extract the first word of "gzip", so it can be a program name with args.
5404 set dummy
gzip; ac_word
=$2
5405 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5406 $as_echo_n "checking for $ac_word... " >&6; }
5407 if test "${ac_cv_path_GZIP_PROG+set}" = set; then :
5408 $as_echo_n "(cached) " >&6
5412 ac_cv_path_GZIP_PROG
="$GZIP_PROG" # Let the user override the test with a path.
5415 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
5419 test -z "$as_dir" && as_dir
=.
5420 for ac_exec_ext
in '' $ac_executable_extensions; do
5421 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5422 ac_cv_path_GZIP_PROG
="$as_dir/$ac_word$ac_exec_ext"
5423 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5433 GZIP_PROG
=$ac_cv_path_GZIP_PROG
5434 if test -n "$GZIP_PROG"; then
5435 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GZIP_PROG" >&5
5436 $as_echo "$GZIP_PROG" >&6; }
5438 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5439 $as_echo "no" >&6; }
5445 ## Need makeinfo >= 4.6 (?) to build the manuals.
5446 # Extract the first word of "makeinfo", so it can be a program name with args.
5447 set dummy makeinfo
; ac_word
=$2
5448 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5449 $as_echo_n "checking for $ac_word... " >&6; }
5450 if test "${ac_cv_path_MAKEINFO+set}" = set; then :
5451 $as_echo_n "(cached) " >&6
5455 ac_cv_path_MAKEINFO
="$MAKEINFO" # Let the user override the test with a path.
5458 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
5462 test -z "$as_dir" && as_dir
=.
5463 for ac_exec_ext
in '' $ac_executable_extensions; do
5464 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5465 ac_cv_path_MAKEINFO
="$as_dir/$ac_word$ac_exec_ext"
5466 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5473 test -z "$ac_cv_path_MAKEINFO" && ac_cv_path_MAKEINFO
="no"
5477 MAKEINFO
=$ac_cv_path_MAKEINFO
5478 if test -n "$MAKEINFO"; then
5479 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAKEINFO" >&5
5480 $as_echo "$MAKEINFO" >&6; }
5482 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5483 $as_echo "no" >&6; }
5487 if test "$MAKEINFO" != "no" && \
5488 test x
"`$MAKEINFO --version 2> /dev/null | $EGREP 'texinfo[^0-9]*([1-4][0-9]+|[5-9]|4\.[6-9]|4\.[1-5][0-9]+)'`" = x
; then
5492 ## Makeinfo is unusual. For a released Emacs, the manuals are
5493 ## pre-built, and not deleted by the normal clean rules. makeinfo is
5494 ## therefore in the category of "special tools" not normally required, which
5495 ## configure does not have to check for (eg autoconf itself).
5496 ## In a Bazaar checkout on the other hand, the manuals are not included.
5497 ## So makeinfo is a requirement to build from Bazaar, and configure
5498 ## should test for it as it does for any other build requirement.
5499 ## We use the presence of $srcdir/info/emacs to distinguish a release,
5500 ## with pre-built manuals, from a Bazaar checkout.
5501 if test "$MAKEINFO" = "no"; then
5502 if test "x${with_makeinfo}" = "xno"; then
5504 elif test ! -e $srcdir/info
/emacs
; then
5505 as_fn_error
"You do not seem to have makeinfo >= 4.6, and your
5506 source tree does not seem to have pre-built manuals in the \`info' directory.
5507 Either install a suitable version of makeinfo, or re-run configure
5508 with the \`--without-makeinfo' option to build without the manuals. " "$LINENO" 5
5513 if test x
$GCC = xyes
&& test "x$GCC_LINK_TEST_OPTIONS" != x
5515 ac_link
="$ac_link $GCC_LINK_TEST_OPTIONS"
5518 if test x
$GCC = x
&& test "x$NON_GCC_LINK_TEST_OPTIONS" != x
5520 ac_link
="$ac_link $NON_GCC_LINK_TEST_OPTIONS"
5524 late_LDFLAGS
=$LDFLAGS
5525 if test "$GCC" = yes; then
5526 LDFLAGS
="$LDFLAGS -Wl,-znocombreloc"
5528 LDFLAGS
="$LDFLAGS -znocombreloc"
5531 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -znocombreloc" >&5
5532 $as_echo_n "checking for -znocombreloc... " >&6; }
5533 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
5534 /* end confdefs.h. */
5537 if ac_fn_c_try_link
"$LINENO"; then :
5538 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5539 $as_echo "yes" >&6; }
5541 LDFLAGS
=$late_LDFLAGS
5542 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5543 $as_echo "no" >&6; }
5545 rm -f core conftest.err conftest.
$ac_objext \
5546 conftest
$ac_exeext conftest.
$ac_ext
5549 # The value of CPP is a quoted variable reference, so we need to do this
5550 # to get its actual value...
5551 CPP
=`eval "echo $CPP"`
5559 $as_echo "#define CANNOT_DUMP 1" >>confdefs.h
5566 UNEXEC_OBJ
=unexelf.o
5568 # MSDOS uses unexcoff.o
5569 # MSWindows uses unexw32.o
5571 UNEXEC_OBJ
=unexaix.o
5577 UNEXEC_OBJ
=unexmacosx.o
5580 UNEXEC_OBJ
=unexhp9k800.o
5583 # Use the Solaris dldump() function, called from unexsol.c, to dump
5584 # emacs, instead of the generic ELF dump code found in unexelf.c.
5585 # The resulting binary has a complete symbol table, and is better
5586 # for debugging and other observability tools (debuggers, pstack, etc).
5588 # If you encounter a problem using dldump(), please consider sending
5589 # a message to the OpenSolaris tools-linking mailing list:
5590 # http://mail.opensolaris.org/mailman/listinfo/tools-linking
5592 # It is likely that dldump() works with older Solaris too, but this has
5593 # not been tested, so for now this change is for Solaris 10 or newer.
5594 UNEXEC_OBJ
=unexsol.o
5601 ## Let `ld' find image libs and similar things in /usr/local/lib.
5602 ## The system compiler, GCC, has apparently been modified to not
5603 ## look there, contrary to what a stock GCC would do.
5604 LD_SWITCH_SYSTEM
=-L/usr
/local
/lib
5608 ## cpp test was "ifdef __mips__", but presumably this is equivalent...
5609 test "$machine" = "mips" && LD_SWITCH_SYSTEM
="-G 0"
5613 LD_SWITCH_SYSTEM
="-Wl,-rpath,/usr/pkg/lib -L/usr/pkg/lib -Wl,-rpath,/usr/local/lib -L/usr/local/lib"
5617 ## Han Boetes <han@mijncomputer.nl> says this is necessary,
5618 ## otherwise Emacs dumps core on elf systems.
5619 LD_SWITCH_SYSTEM
="-Z"
5624 ac_link
="$ac_link $LD_SWITCH_SYSTEM"
5626 ## This setting of LD_SWITCH_SYSTEM references LD_SWITCH_X_SITE_AUX,
5627 ## which has not been defined yet. When this was handled with cpp,
5628 ## it was expanded to null when configure sourced the s/*.h file.
5629 ## Thus LD_SWITCH_SYSTEM had different values in configure and the Makefiles.
5630 ## FIXME it would be cleaner to put this in LD_SWITCH_SYSTEM_TEMACS
5631 ## (or somesuch), but because it is supposed to go at the _front_
5632 ## of LD_SWITCH_SYSTEM, we cannot do that in exactly the same way.
5633 ## Compare with the gnu-linux case below, which added to the end
5634 ## of LD_SWITCH_SYSTEM, and so can instead go at the front of
5635 ## LD_SWITCH_SYSTEM_TEMACS.
5638 ## _AUX_RPATH is like _AUX, but uses -rpath instead of -R.
5639 LD_SWITCH_SYSTEM
="\$(LD_SWITCH_X_SITE_AUX_RPATH) $LD_SWITCH_SYSTEM" ;;
5644 if test "$machine" = "alpha"; then
5645 ac_fn_c_check_decl
"$LINENO" "__ELF__" "ac_cv_have_decl___ELF__" "$ac_includes_default"
5646 if test "x$ac_cv_have_decl___ELF__" = x
""yes; then :
5650 if test "$ac_cv_have_decl___ELF__" = "yes"; then
5651 ## With ELF, make sure that all common symbols get allocated to in the
5652 ## data section. Otherwise, the dump of temacs may miss variables in
5653 ## the shared library that have been initialized. For example, with
5654 ## GNU libc, __malloc_initialized would normally be resolved to the
5655 ## shared library's .bss section, which is fatal.
5656 if test "x$GCC" = "xyes"; then
5657 C_SWITCH_MACHINE
="-fno-common"
5659 as_fn_error
"What gives? Fix me if DEC Unix supports ELF now." "$LINENO" 5
5662 UNEXEC_OBJ
=unexalpha.o
5670 ## Some programs in src produce warnings saying certain subprograms
5671 ## are too complex and need a MAXMEM value greater than 2000 for
5672 ## additional optimization. --nils@exp-math.uni-essen.de
5673 test "$opsys" = "aix4.2" && test "x$GCC" != "xyes" && \
5674 C_SWITCH_SYSTEM
="-ma -qmaxmem=4000"
5675 ## gnu-linux might need -D_BSD_SOURCE on old libc5 systems.
5676 ## It is redundant in glibc2, since we define _GNU_SOURCE.
5682 ## IBM's X11R5 uses -lIM and -liconv in AIX 3.2.2.
5683 aix4-2
) LIBS_SYSTEM
="-lrts -lIM -liconv" ;;
5685 freebsd
) LIBS_SYSTEM
="-lutil" ;;
5687 hpux
*) LIBS_SYSTEM
="-l:libdld.sl" ;;
5689 sol2
*) LIBS_SYSTEM
="-lsocket -lnsl -lkstat" ;;
5691 ## Motif needs -lgen.
5692 unixware
) LIBS_SYSTEM
="-lsocket -lnsl -lelf -lgen" ;;
5697 ### Make sure subsequent tests use flags consistent with the build flags.
5699 if test x
"${OVERRIDE_CPPFLAGS}" != x
; then
5700 CPPFLAGS
="${OVERRIDE_CPPFLAGS}"
5702 CPPFLAGS
="$C_SWITCH_SYSTEM $C_SWITCH_MACHINE $CPPFLAGS"
5707 # Check whether --enable-largefile was given.
5708 if test "${enable_largefile+set}" = set; then :
5709 enableval
=$enable_largefile;
5712 if test "$enable_largefile" != no
; then
5714 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for special C compiler options needed for large files" >&5
5715 $as_echo_n "checking for special C compiler options needed for large files... " >&6; }
5716 if test "${ac_cv_sys_largefile_CC+set}" = set; then :
5717 $as_echo_n "(cached) " >&6
5719 ac_cv_sys_largefile_CC
=no
5720 if test "$GCC" != yes; then
5723 # IRIX 6.2 and later do not support large files by default,
5724 # so use the C compiler's -n32 option if that helps.
5725 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
5726 /* end confdefs.h. */
5727 #include <sys/types.h>
5728 /* Check that off_t can represent 2**63 - 1 correctly.
5729 We can't simply define LARGE_OFF_T to be 9223372036854775807,
5730 since some C++ compilers masquerading as C compilers
5731 incorrectly reject 9223372036854775807. */
5732 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
5733 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
5734 && LARGE_OFF_T % 2147483647 == 1)
5744 if ac_fn_c_try_compile
"$LINENO"; then :
5747 rm -f core conftest.err conftest.
$ac_objext
5749 if ac_fn_c_try_compile
"$LINENO"; then :
5750 ac_cv_sys_largefile_CC
=' -n32'; break
5752 rm -f core conftest.err conftest.
$ac_objext
5756 rm -f conftest.
$ac_ext
5759 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_largefile_CC" >&5
5760 $as_echo "$ac_cv_sys_largefile_CC" >&6; }
5761 if test "$ac_cv_sys_largefile_CC" != no
; then
5762 CC
=$CC$ac_cv_sys_largefile_CC
5765 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _FILE_OFFSET_BITS value needed for large files" >&5
5766 $as_echo_n "checking for _FILE_OFFSET_BITS value needed for large files... " >&6; }
5767 if test "${ac_cv_sys_file_offset_bits+set}" = set; then :
5768 $as_echo_n "(cached) " >&6
5771 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
5772 /* end confdefs.h. */
5773 #include <sys/types.h>
5774 /* Check that off_t can represent 2**63 - 1 correctly.
5775 We can't simply define LARGE_OFF_T to be 9223372036854775807,
5776 since some C++ compilers masquerading as C compilers
5777 incorrectly reject 9223372036854775807. */
5778 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
5779 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
5780 && LARGE_OFF_T % 2147483647 == 1)
5790 if ac_fn_c_try_compile
"$LINENO"; then :
5791 ac_cv_sys_file_offset_bits
=no
; break
5793 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
5794 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
5795 /* end confdefs.h. */
5796 #define _FILE_OFFSET_BITS 64
5797 #include <sys/types.h>
5798 /* Check that off_t can represent 2**63 - 1 correctly.
5799 We can't simply define LARGE_OFF_T to be 9223372036854775807,
5800 since some C++ compilers masquerading as C compilers
5801 incorrectly reject 9223372036854775807. */
5802 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
5803 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
5804 && LARGE_OFF_T % 2147483647 == 1)
5814 if ac_fn_c_try_compile
"$LINENO"; then :
5815 ac_cv_sys_file_offset_bits
=64; break
5817 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
5818 ac_cv_sys_file_offset_bits
=unknown
5822 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_file_offset_bits" >&5
5823 $as_echo "$ac_cv_sys_file_offset_bits" >&6; }
5824 case $ac_cv_sys_file_offset_bits in #(
5827 cat >>confdefs.h
<<_ACEOF
5828 #define _FILE_OFFSET_BITS $ac_cv_sys_file_offset_bits
5833 if test $ac_cv_sys_file_offset_bits = unknown
; then
5834 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _LARGE_FILES value needed for large files" >&5
5835 $as_echo_n "checking for _LARGE_FILES value needed for large files... " >&6; }
5836 if test "${ac_cv_sys_large_files+set}" = set; then :
5837 $as_echo_n "(cached) " >&6
5840 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
5841 /* end confdefs.h. */
5842 #include <sys/types.h>
5843 /* Check that off_t can represent 2**63 - 1 correctly.
5844 We can't simply define LARGE_OFF_T to be 9223372036854775807,
5845 since some C++ compilers masquerading as C compilers
5846 incorrectly reject 9223372036854775807. */
5847 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
5848 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
5849 && LARGE_OFF_T % 2147483647 == 1)
5859 if ac_fn_c_try_compile
"$LINENO"; then :
5860 ac_cv_sys_large_files
=no
; break
5862 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
5863 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
5864 /* end confdefs.h. */
5865 #define _LARGE_FILES 1
5866 #include <sys/types.h>
5867 /* Check that off_t can represent 2**63 - 1 correctly.
5868 We can't simply define LARGE_OFF_T to be 9223372036854775807,
5869 since some C++ compilers masquerading as C compilers
5870 incorrectly reject 9223372036854775807. */
5871 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
5872 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
5873 && LARGE_OFF_T % 2147483647 == 1)
5883 if ac_fn_c_try_compile
"$LINENO"; then :
5884 ac_cv_sys_large_files
=1; break
5886 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
5887 ac_cv_sys_large_files
=unknown
5891 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_large_files" >&5
5892 $as_echo "$ac_cv_sys_large_files" >&6; }
5893 case $ac_cv_sys_large_files in #(
5896 cat >>confdefs.h
<<_ACEOF
5897 #define _LARGE_FILES $ac_cv_sys_large_files
5907 ## If user specified a crt-dir, use that unconditionally.
5908 if test "X$CRT_DIR" = "X"; then
5910 case "$canonical" in
5911 x86_64-
*-linux-gnu* | s390x-
*-linux-gnu*)
5912 ## On x86-64 and s390x GNU/Linux distributions, the standard library
5913 ## can be in a variety of places. We only try /usr/lib64 and /usr/lib.
5914 ## For anything else (eg /usr/lib32), it is up the user to specify
5915 ## the location (bug#5655).
5916 ## Test for crtn.o, not just the directory, because sometimes the
5917 ## directory exists but does not have the relevant files (bug#1287).
5918 ## FIXME better to test for binary compatibility somehow.
5919 test -e /usr
/lib64
/crtn.o
&& CRT_DIR
=/usr
/lib64
5922 powerpc64-
*-linux-gnu* | sparc64-
*-linux-gnu*) CRT_DIR
=/usr
/lib64
;;
5926 hpux10-20
) CRT_DIR
=/lib
;;
5929 ## Default is /usr/lib.
5930 test "X$CRT_DIR" = "X" && CRT_DIR
=/usr
/lib
5934 ## Some platforms don't use any of these files, so it is not
5935 ## appropriate to put this test outside the if block.
5936 test -e $CRT_DIR/crtn.o ||
test -e $CRT_DIR/crt0.o || \
5937 as_fn_error
"crt*.o not found in specified location." "$LINENO" 5
5950 START_FILES
='pre-crt0.o'
5953 ## Adding -lm confuses the dynamic linker, so omit it.
5955 START_FILES
='pre-crt0.o'
5958 LIB_STANDARD
='-lgcc -lc -lgcc $(CRT_DIR)/crtend.o $(CRT_DIR)/crtn.o'
5959 START_FILES
='pre-crt0.o $(CRT_DIR)/crt1.o $(CRT_DIR)/crti.o $(CRT_DIR)/crtbegin.o'
5961 gnu-linux | gnu-kfreebsd
)
5962 LIB_STANDARD
='-lgcc -lc -lgcc $(CRT_DIR)/crtn.o'
5963 START_FILES
='pre-crt0.o $(CRT_DIR)/crt1.o $(CRT_DIR)/crti.o'
5965 hpux10-20 | hpux11
)
5967 START_FILES
='pre-crt0.o $(CRT_DIR)/crt0.o'
5970 if test -f $CRT_DIR/crti.o
; then
5971 LIB_STANDARD
='-lgcc -lc -lgcc $(CRT_DIR)/crtend.o $(CRT_DIR)/crtn.o'
5972 START_FILES
='pre-crt0.o $(CRT_DIR)/crt0.o $(CRT_DIR)/crti.o $(CRT_DIR)/crtbegin.o'
5974 LIB_STANDARD
='-lgcc -lc -lgcc $(CRT_DIR)/crtend.o'
5975 START_FILES
='pre-crt0.o $(CRT_DIR)/crt0.o $(CRT_DIR)/crtbegin.o'
5986 if test "${with_sound}" != "no"; then
5987 # Sound support for GNU/Linux and the free BSDs.
5988 for ac_header
in machine
/soundcard.h sys
/soundcard.h soundcard.h
5990 as_ac_Header
=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
5991 ac_fn_c_check_header_mongrel
"$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
5992 eval as_val
=\$
$as_ac_Header
5993 if test "x$as_val" = x
""yes; then :
5994 cat >>confdefs.h
<<_ACEOF
5995 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
5997 have_sound_header
=yes
6002 # Emulation library used on NetBSD.
6003 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _oss_ioctl in -lossaudio" >&5
6004 $as_echo_n "checking for _oss_ioctl in -lossaudio... " >&6; }
6005 if test "${ac_cv_lib_ossaudio__oss_ioctl+set}" = set; then :
6006 $as_echo_n "(cached) " >&6
6008 ac_check_lib_save_LIBS
=$LIBS
6009 LIBS
="-lossaudio $LIBS"
6010 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
6011 /* end confdefs.h. */
6013 /* Override any GCC internal prototype to avoid an error.
6014 Use char because int might match the return type of a GCC
6015 builtin and then its argument prototype would still apply. */
6023 return _oss_ioctl ();
6028 if ac_fn_c_try_link
"$LINENO"; then :
6029 ac_cv_lib_ossaudio__oss_ioctl
=yes
6031 ac_cv_lib_ossaudio__oss_ioctl
=no
6033 rm -f core conftest.err conftest.
$ac_objext \
6034 conftest
$ac_exeext conftest.
$ac_ext
6035 LIBS
=$ac_check_lib_save_LIBS
6037 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_ossaudio__oss_ioctl" >&5
6038 $as_echo "$ac_cv_lib_ossaudio__oss_ioctl" >&6; }
6039 if test "x$ac_cv_lib_ossaudio__oss_ioctl" = x
""yes; then :
6048 ALSA_MODULES
="alsa >= $ALSA_REQUIRED"
6052 # Extract the first word of "pkg-config", so it can be a program name with args.
6053 set dummy pkg-config
; ac_word
=$2
6054 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6055 $as_echo_n "checking for $ac_word... " >&6; }
6056 if test "${ac_cv_path_PKG_CONFIG+set}" = set; then :
6057 $as_echo_n "(cached) " >&6
6061 ac_cv_path_PKG_CONFIG
="$PKG_CONFIG" # Let the user override the test with a path.
6064 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
6068 test -z "$as_dir" && as_dir
=.
6069 for ac_exec_ext
in '' $ac_executable_extensions; do
6070 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6071 ac_cv_path_PKG_CONFIG
="$as_dir/$ac_word$ac_exec_ext"
6072 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6079 test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG
="no"
6083 PKG_CONFIG
=$ac_cv_path_PKG_CONFIG
6084 if test -n "$PKG_CONFIG"; then
6085 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5
6086 $as_echo "$PKG_CONFIG" >&6; }
6088 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6089 $as_echo "no" >&6; }
6094 if test "$PKG_CONFIG" = "no" ; then
6097 PKG_CONFIG_MIN_VERSION
=0.9.0
6098 if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
6099 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ALSA_MODULES" >&5
6100 $as_echo_n "checking for $ALSA_MODULES... " >&6; }
6102 if $PKG_CONFIG --exists "$ALSA_MODULES" 2>&5; then
6103 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
6104 $as_echo "yes" >&6; }
6107 { $as_echo "$as_me:${as_lineno-$LINENO}: checking ALSA_CFLAGS" >&5
6108 $as_echo_n "checking ALSA_CFLAGS... " >&6; }
6109 ALSA_CFLAGS
=`$PKG_CONFIG --cflags "$ALSA_MODULES"|sed -e 's,///*,/,g'`
6110 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ALSA_CFLAGS" >&5
6111 $as_echo "$ALSA_CFLAGS" >&6; }
6113 { $as_echo "$as_me:${as_lineno-$LINENO}: checking ALSA_LIBS" >&5
6114 $as_echo_n "checking ALSA_LIBS... " >&6; }
6115 ALSA_LIBS
=`$PKG_CONFIG --libs "$ALSA_MODULES"|sed -e 's,///*,/,g'`
6116 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ALSA_LIBS" >&5
6117 $as_echo "$ALSA_LIBS" >&6; }
6119 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6120 $as_echo "no" >&6; }
6123 ## If we have a custom action on failure, don't print errors, but
6124 ## do set a variable so people can do so.
6125 ALSA_PKG_ERRORS
=`$PKG_CONFIG --errors-to-stdout --print-errors "$ALSA_MODULES"`
6132 echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
6133 echo "*** See http://www.freedesktop.org/software/pkgconfig"
6137 if test $succeeded = yes; then
6143 if test $HAVE_ALSA = yes; then
6144 SAVE_CFLAGS
="$CFLAGS"
6145 SAVE_LDFLAGS
="$LDFLAGS"
6146 CFLAGS
="$ALSA_CFLAGS $CFLAGS"
6147 LDFLAGS
="$ALSA_LIBS $LDFLAGS"
6148 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
6149 /* end confdefs.h. */
6150 #include <asoundlib.h>
6154 snd_lib_error_set_handler (0);
6159 if ac_fn_c_try_compile
"$LINENO"; then :
6160 emacs_alsa_normal
=yes
6162 emacs_alsa_normal
=no
6164 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
6165 if test "$emacs_alsa_normal" != yes; then
6166 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
6167 /* end confdefs.h. */
6168 #include <alsa/asoundlib.h>
6172 snd_lib_error_set_handler (0);
6177 if ac_fn_c_try_compile
"$LINENO"; then :
6178 emacs_alsa_subdir
=yes
6180 emacs_alsa_subdir
=no
6182 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
6183 if test "$emacs_alsa_subdir" != yes; then
6184 as_fn_error
"pkg-config found alsa, but it does not compile. See config.log for error messages." "$LINENO" 5
6186 ALSA_CFLAGS
="$ALSA_CFLAGS -DALSA_SUBDIR_INCLUDE"
6189 CFLAGS
="$SAVE_CFLAGS"
6190 LDFLAGS
="$SAVE_LDFLAGS"
6191 LIBSOUND
="$LIBSOUND $ALSA_LIBS"
6192 CFLAGS_SOUND
="$CFLAGS_SOUND $ALSA_CFLAGS"
6194 $as_echo "#define HAVE_ALSA 1" >>confdefs.h
6198 if test x
$have_sound_header = xyes ||
test $HAVE_ALSA = yes; then
6200 gnu-linux|freebsd|netbsd
)
6202 $as_echo "#define HAVE_SOUND 1" >>confdefs.h
6211 for ac_header
in sys
/select.h sys
/timeb.h sys
/time.h unistd.h utime.h \
6212 linux
/version.h sys
/systeminfo.h termios.h limits.h string.h stdlib.h \
6213 stdio_ext.h fcntl.h
strings.h coff.h pty.h sys
/mman.h \
6214 sys
/param.h sys
/vlimit.h sys
/resource.h locale.h sys
/_mbstate_t.h \
6215 sys
/utsname.h
pwd.h utmp.h dirent.h util.h
6217 as_ac_Header
=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
6218 ac_fn_c_check_header_mongrel
"$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
6219 eval as_val
=\$
$as_ac_Header
6220 if test "x$as_val" = x
""yes; then :
6221 cat >>confdefs.h
<<_ACEOF
6222 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
6230 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if personality LINUX32 can be set" >&5
6231 $as_echo_n "checking if personality LINUX32 can be set... " >&6; }
6232 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
6233 /* end confdefs.h. */
6234 #include <sys/personality.h>
6238 personality (PER_LINUX32)
6243 if ac_fn_c_try_compile
"$LINENO"; then :
6244 emacs_cv_personality_linux32
=yes
6246 emacs_cv_personality_linux32
=no
6248 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
6249 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $emacs_cv_personality_linux32" >&5
6250 $as_echo "$emacs_cv_personality_linux32" >&6; }
6252 if test $emacs_cv_personality_linux32 = yes; then
6254 $as_echo "#define HAVE_PERSONALITY_LINUX32 1" >>confdefs.h
6258 for ac_header
in term.h
6260 ac_fn_c_check_header_preproc
"$LINENO" "term.h" "ac_cv_header_term_h"
6261 if test "x$ac_cv_header_term_h" = x
""yes; then :
6262 cat >>confdefs.h
<<_ACEOF
6263 #define HAVE_TERM_H 1
6270 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
6271 $as_echo_n "checking for ANSI C header files... " >&6; }
6272 if test "${ac_cv_header_stdc+set}" = set; then :
6273 $as_echo_n "(cached) " >&6
6275 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
6276 /* end confdefs.h. */
6290 if ac_fn_c_try_compile
"$LINENO"; then :
6291 ac_cv_header_stdc
=yes
6293 ac_cv_header_stdc
=no
6295 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
6297 if test $ac_cv_header_stdc = yes; then
6298 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
6299 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
6300 /* end confdefs.h. */
6304 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6305 $EGREP "memchr" >/dev
/null
2>&1; then :
6308 ac_cv_header_stdc
=no
6314 if test $ac_cv_header_stdc = yes; then
6315 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
6316 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
6317 /* end confdefs.h. */
6321 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6322 $EGREP "free" >/dev
/null
2>&1; then :
6325 ac_cv_header_stdc
=no
6331 if test $ac_cv_header_stdc = yes; then
6332 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
6333 if test "$cross_compiling" = yes; then :
6336 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
6337 /* end confdefs.h. */
6340 #if ((' ' & 0x0FF) == 0x020)
6341 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
6342 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
6344 # define ISLOWER(c) \
6345 (('a' <= (c) && (c) <= 'i') \
6346 || ('j' <= (c) && (c) <= 'r') \
6347 || ('s' <= (c) && (c) <= 'z'))
6348 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
6351 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
6356 for (i = 0; i < 256; i++)
6357 if (XOR (islower (i), ISLOWER (i))
6358 || toupper (i) != TOUPPER (i))
6363 if ac_fn_c_try_run
"$LINENO"; then :
6366 ac_cv_header_stdc
=no
6368 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
6369 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
6374 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
6375 $as_echo "$ac_cv_header_stdc" >&6; }
6376 if test $ac_cv_header_stdc = yes; then
6378 $as_echo "#define STDC_HEADERS 1" >>confdefs.h
6382 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether time.h and sys/time.h may both be included" >&5
6383 $as_echo_n "checking whether time.h and sys/time.h may both be included... " >&6; }
6384 if test "${ac_cv_header_time+set}" = set; then :
6385 $as_echo_n "(cached) " >&6
6387 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
6388 /* end confdefs.h. */
6389 #include <sys/types.h>
6390 #include <sys/time.h>
6396 if ((struct tm *) 0)
6402 if ac_fn_c_try_compile
"$LINENO"; then :
6403 ac_cv_header_time
=yes
6405 ac_cv_header_time
=no
6407 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
6409 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_time" >&5
6410 $as_echo "$ac_cv_header_time" >&6; }
6411 if test $ac_cv_header_time = yes; then
6413 $as_echo "#define TIME_WITH_SYS_TIME 1" >>confdefs.h
6417 ac_fn_c_check_decl
"$LINENO" "sys_siglist" "ac_cv_have_decl_sys_siglist" "$ac_includes_default"
6418 if test "x$ac_cv_have_decl_sys_siglist" = x
""yes; then :
6424 cat >>confdefs.h
<<_ACEOF
6425 #define HAVE_DECL_SYS_SIGLIST $ac_have_decl
6428 if test $ac_cv_have_decl_sys_siglist != yes; then
6429 # For Tru64, at least:
6430 ac_fn_c_check_decl
"$LINENO" "__sys_siglist" "ac_cv_have_decl___sys_siglist" "$ac_includes_default"
6431 if test "x$ac_cv_have_decl___sys_siglist" = x
""yes; then :
6437 cat >>confdefs.h
<<_ACEOF
6438 #define HAVE_DECL___SYS_SIGLIST $ac_have_decl
6441 if test $ac_cv_have_decl___sys_siglist = yes; then
6443 $as_echo "#define sys_siglist __sys_siglist" >>confdefs.h
6447 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sys/wait.h that is POSIX.1 compatible" >&5
6448 $as_echo_n "checking for sys/wait.h that is POSIX.1 compatible... " >&6; }
6449 if test "${ac_cv_header_sys_wait_h+set}" = set; then :
6450 $as_echo_n "(cached) " >&6
6452 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
6453 /* end confdefs.h. */
6454 #include <sys/types.h>
6455 #include <sys/wait.h>
6457 # define WEXITSTATUS(stat_val) ((unsigned int) (stat_val) >> 8)
6460 # define WIFEXITED(stat_val) (((stat_val) & 255) == 0)
6468 s = WIFEXITED (s) ? WEXITSTATUS (s) : 1;
6473 if ac_fn_c_try_compile
"$LINENO"; then :
6474 ac_cv_header_sys_wait_h
=yes
6476 ac_cv_header_sys_wait_h
=no
6478 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
6480 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_sys_wait_h" >&5
6481 $as_echo "$ac_cv_header_sys_wait_h" >&6; }
6482 if test $ac_cv_header_sys_wait_h = yes; then
6484 $as_echo "#define HAVE_SYS_WAIT_H 1" >>confdefs.h
6489 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for struct utimbuf" >&5
6490 $as_echo_n "checking for struct utimbuf... " >&6; }
6491 if test "${emacs_cv_struct_utimbuf+set}" = set; then :
6492 $as_echo_n "(cached) " >&6
6494 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
6495 /* end confdefs.h. */
6496 #ifdef TIME_WITH_SYS_TIME
6497 #include <sys/time.h>
6500 #ifdef HAVE_SYS_TIME_H
6501 #include <sys/time.h>
6512 static struct utimbuf x; x.actime = x.modtime;
6517 if ac_fn_c_try_compile
"$LINENO"; then :
6518 emacs_cv_struct_utimbuf
=yes
6520 emacs_cv_struct_utimbuf
=no
6522 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
6524 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $emacs_cv_struct_utimbuf" >&5
6525 $as_echo "$emacs_cv_struct_utimbuf" >&6; }
6526 if test $emacs_cv_struct_utimbuf = yes; then
6528 $as_echo "#define HAVE_STRUCT_UTIMBUF 1" >>confdefs.h
6532 { $as_echo "$as_me:${as_lineno-$LINENO}: checking return type of signal handlers" >&5
6533 $as_echo_n "checking return type of signal handlers... " >&6; }
6534 if test "${ac_cv_type_signal+set}" = set; then :
6535 $as_echo_n "(cached) " >&6
6537 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
6538 /* end confdefs.h. */
6539 #include <sys/types.h>
6545 return *(signal (0, 0)) (0) == 1;
6550 if ac_fn_c_try_compile
"$LINENO"; then :
6551 ac_cv_type_signal
=int
6553 ac_cv_type_signal
=void
6555 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
6557 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_signal" >&5
6558 $as_echo "$ac_cv_type_signal" >&6; }
6560 cat >>confdefs.h
<<_ACEOF
6561 #define RETSIGTYPE $ac_cv_type_signal
6566 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for speed_t" >&5
6567 $as_echo_n "checking for speed_t... " >&6; }
6568 if test "${emacs_cv_speed_t+set}" = set; then :
6569 $as_echo_n "(cached) " >&6
6571 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
6572 /* end confdefs.h. */
6573 #include <termios.h>
6582 if ac_fn_c_try_compile
"$LINENO"; then :
6583 emacs_cv_speed_t
=yes
6587 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
6589 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $emacs_cv_speed_t" >&5
6590 $as_echo "$emacs_cv_speed_t" >&6; }
6591 if test $emacs_cv_speed_t = yes; then
6593 $as_echo "#define HAVE_SPEED_T 1" >>confdefs.h
6597 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for struct timeval" >&5
6598 $as_echo_n "checking for struct timeval... " >&6; }
6599 if test "${emacs_cv_struct_timeval+set}" = set; then :
6600 $as_echo_n "(cached) " >&6
6602 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
6603 /* end confdefs.h. */
6604 #ifdef TIME_WITH_SYS_TIME
6605 #include <sys/time.h>
6608 #ifdef HAVE_SYS_TIME_H
6609 #include <sys/time.h>
6617 static struct timeval x; x.tv_sec = x.tv_usec;
6622 if ac_fn_c_try_compile
"$LINENO"; then :
6623 emacs_cv_struct_timeval
=yes
6625 emacs_cv_struct_timeval
=no
6627 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
6629 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $emacs_cv_struct_timeval" >&5
6630 $as_echo "$emacs_cv_struct_timeval" >&6; }
6631 HAVE_TIMEVAL
=$emacs_cv_struct_timeval
6632 if test $emacs_cv_struct_timeval = yes; then
6634 $as_echo "#define HAVE_TIMEVAL 1" >>confdefs.h
6638 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for struct exception" >&5
6639 $as_echo_n "checking for struct exception... " >&6; }
6640 if test "${emacs_cv_struct_exception+set}" = set; then :
6641 $as_echo_n "(cached) " >&6
6643 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
6644 /* end confdefs.h. */
6649 static struct exception x; x.arg1 = x.arg2 = x.retval; x.name = ""; x.type = 1;
6654 if ac_fn_c_try_compile
"$LINENO"; then :
6655 emacs_cv_struct_exception
=yes
6657 emacs_cv_struct_exception
=no
6659 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
6661 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $emacs_cv_struct_exception" >&5
6662 $as_echo "$emacs_cv_struct_exception" >&6; }
6663 HAVE_EXCEPTION
=$emacs_cv_struct_exception
6664 if test $emacs_cv_struct_exception != yes; then
6666 $as_echo "#define NO_MATHERR 1" >>confdefs.h
6670 for ac_header
in sys
/socket.h
6672 ac_fn_c_check_header_mongrel
"$LINENO" "sys/socket.h" "ac_cv_header_sys_socket_h" "$ac_includes_default"
6673 if test "x$ac_cv_header_sys_socket_h" = x
""yes; then :
6674 cat >>confdefs.h
<<_ACEOF
6675 #define HAVE_SYS_SOCKET_H 1
6682 for ac_header
in net
/if.h
6684 ac_fn_c_check_header_compile
"$LINENO" "net/if.h" "ac_cv_header_net_if_h" "$ac_includes_default
6685 #if HAVE_SYS_SOCKET_H
6686 #include <sys/socket.h>
6689 if test "x$ac_cv_header_net_if_h" = x
""yes; then :
6690 cat >>confdefs.h
<<_ACEOF
6691 #define HAVE_NET_IF_H 1
6699 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether struct tm is in sys/time.h or time.h" >&5
6700 $as_echo_n "checking whether struct tm is in sys/time.h or time.h... " >&6; }
6701 if test "${ac_cv_struct_tm+set}" = set; then :
6702 $as_echo_n "(cached) " >&6
6704 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
6705 /* end confdefs.h. */
6706 #include <sys/types.h>
6713 int *p = &tm.tm_sec;
6719 if ac_fn_c_try_compile
"$LINENO"; then :
6720 ac_cv_struct_tm
=time.h
6722 ac_cv_struct_tm
=sys
/time.h
6724 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
6726 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_struct_tm" >&5
6727 $as_echo "$ac_cv_struct_tm" >&6; }
6728 if test $ac_cv_struct_tm = sys
/time.h
; then
6730 $as_echo "#define TM_IN_SYS_TIME 1" >>confdefs.h
6734 ac_fn_c_check_member
"$LINENO" "struct tm" "tm_zone" "ac_cv_member_struct_tm_tm_zone" "#include <sys/types.h>
6735 #include <$ac_cv_struct_tm>
6738 if test "x$ac_cv_member_struct_tm_tm_zone" = x
""yes; then :
6740 cat >>confdefs.h
<<_ACEOF
6741 #define HAVE_STRUCT_TM_TM_ZONE 1
6747 if test "$ac_cv_member_struct_tm_tm_zone" = yes; then
6749 $as_echo "#define HAVE_TM_ZONE 1" >>confdefs.h
6752 ac_fn_c_check_decl
"$LINENO" "tzname" "ac_cv_have_decl_tzname" "#include <time.h>
6754 if test "x$ac_cv_have_decl_tzname" = x
""yes; then :
6760 cat >>confdefs.h
<<_ACEOF
6761 #define HAVE_DECL_TZNAME $ac_have_decl
6764 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for tzname" >&5
6765 $as_echo_n "checking for tzname... " >&6; }
6766 if test "${ac_cv_var_tzname+set}" = set; then :
6767 $as_echo_n "(cached) " >&6
6769 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
6770 /* end confdefs.h. */
6772 #if !HAVE_DECL_TZNAME
6773 extern char *tzname[];
6779 return tzname[0][0];
6784 if ac_fn_c_try_link
"$LINENO"; then :
6785 ac_cv_var_tzname
=yes
6789 rm -f core conftest.err conftest.
$ac_objext \
6790 conftest
$ac_exeext conftest.
$ac_ext
6792 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_var_tzname" >&5
6793 $as_echo "$ac_cv_var_tzname" >&6; }
6794 if test $ac_cv_var_tzname = yes; then
6796 $as_echo "#define HAVE_TZNAME 1" >>confdefs.h
6801 ac_fn_c_check_member
"$LINENO" "struct tm" "tm_gmtoff" "ac_cv_member_struct_tm_tm_gmtoff" "#include <time.h>
6803 if test "x$ac_cv_member_struct_tm_tm_gmtoff" = x
""yes; then :
6805 $as_echo "#define HAVE_TM_GMTOFF 1" >>confdefs.h
6809 ac_fn_c_check_member
"$LINENO" "struct ifreq" "ifr_flags" "ac_cv_member_struct_ifreq_ifr_flags" "$ac_includes_default
6810 #if HAVE_SYS_SOCKET_H
6811 #include <sys/socket.h>
6817 if test "x$ac_cv_member_struct_ifreq_ifr_flags" = x
""yes; then :
6819 cat >>confdefs.h
<<_ACEOF
6820 #define HAVE_STRUCT_IFREQ_IFR_FLAGS 1
6825 ac_fn_c_check_member
"$LINENO" "struct ifreq" "ifr_hwaddr" "ac_cv_member_struct_ifreq_ifr_hwaddr" "$ac_includes_default
6826 #if HAVE_SYS_SOCKET_H
6827 #include <sys/socket.h>
6833 if test "x$ac_cv_member_struct_ifreq_ifr_hwaddr" = x
""yes; then :
6835 cat >>confdefs.h
<<_ACEOF
6836 #define HAVE_STRUCT_IFREQ_IFR_HWADDR 1
6841 ac_fn_c_check_member
"$LINENO" "struct ifreq" "ifr_netmask" "ac_cv_member_struct_ifreq_ifr_netmask" "$ac_includes_default
6842 #if HAVE_SYS_SOCKET_H
6843 #include <sys/socket.h>
6849 if test "x$ac_cv_member_struct_ifreq_ifr_netmask" = x
""yes; then :
6851 cat >>confdefs.h
<<_ACEOF
6852 #define HAVE_STRUCT_IFREQ_IFR_NETMASK 1
6857 ac_fn_c_check_member
"$LINENO" "struct ifreq" "ifr_broadaddr" "ac_cv_member_struct_ifreq_ifr_broadaddr" "$ac_includes_default
6858 #if HAVE_SYS_SOCKET_H
6859 #include <sys/socket.h>
6865 if test "x$ac_cv_member_struct_ifreq_ifr_broadaddr" = x
""yes; then :
6867 cat >>confdefs.h
<<_ACEOF
6868 #define HAVE_STRUCT_IFREQ_IFR_BROADADDR 1
6873 ac_fn_c_check_member
"$LINENO" "struct ifreq" "ifr_addr" "ac_cv_member_struct_ifreq_ifr_addr" "$ac_includes_default
6874 #if HAVE_SYS_SOCKET_H
6875 #include <sys/socket.h>
6881 if test "x$ac_cv_member_struct_ifreq_ifr_addr" = x
""yes; then :
6883 cat >>confdefs.h
<<_ACEOF
6884 #define HAVE_STRUCT_IFREQ_IFR_ADDR 1
6892 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for function prototypes" >&5
6893 $as_echo_n "checking for function prototypes... " >&6; }
6894 if test "$ac_cv_prog_cc_c89" != no
; then
6895 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
6896 $as_echo "yes" >&6; }
6898 $as_echo "#define PROTOTYPES 1" >>confdefs.h
6901 $as_echo "#define __PROTOTYPES 1" >>confdefs.h
6904 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6905 $as_echo "no" >&6; }
6908 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working volatile" >&5
6909 $as_echo_n "checking for working volatile... " >&6; }
6910 if test "${ac_cv_c_volatile+set}" = set; then :
6911 $as_echo_n "(cached) " >&6
6913 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
6914 /* end confdefs.h. */
6921 int * volatile y = (int *) 0;
6927 if ac_fn_c_try_compile
"$LINENO"; then :
6928 ac_cv_c_volatile
=yes
6932 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
6934 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_volatile" >&5
6935 $as_echo "$ac_cv_c_volatile" >&6; }
6936 if test $ac_cv_c_volatile = no
; then
6938 $as_echo "#define volatile /**/" >>confdefs.h
6942 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for an ANSI C-conforming const" >&5
6943 $as_echo_n "checking for an ANSI C-conforming const... " >&6; }
6944 if test "${ac_cv_c_const+set}" = set; then :
6945 $as_echo_n "(cached) " >&6
6947 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
6948 /* end confdefs.h. */
6953 /* FIXME: Include the comments suggested by Paul. */
6955 /* Ultrix mips cc rejects this. */
6956 typedef int charset[2];
6958 /* SunOS 4.1.1 cc rejects this. */
6959 char const *const *pcpcc;
6961 /* NEC SVR4.0.2 mips cc rejects this. */
6962 struct point {int x, y;};
6963 static struct point const zero = {0,0};
6964 /* AIX XL C 1.02.0.0 rejects this.
6965 It does not let you subtract one const X* pointer from another in
6966 an arm of an if-expression whose if-part is not a constant
6968 const char *g = "string";
6969 pcpcc = &g + (g ? g-g : 0);
6970 /* HPUX 7.0 cc rejects these. */
6972 ppc = (char**) pcpcc;
6973 pcpcc = (char const *const *) ppc;
6974 { /* SCO 3.2v4 cc rejects this. */
6976 char const *s = 0 ? (char *) 0 : (char const *) 0;
6981 { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
6983 const int *foo = &x[0];
6986 { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
6987 typedef const int *iptr;
6991 { /* AIX XL C 1.02.0.0 rejects this saying
6992 "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
6993 struct s { int j; const int *ap[3]; };
6994 struct s *b; b->j = 5;
6996 { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
7000 return !cs[0] && !zero.x;
7007 if ac_fn_c_try_compile
"$LINENO"; then :
7012 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
7014 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_const" >&5
7015 $as_echo "$ac_cv_c_const" >&6; }
7016 if test $ac_cv_c_const = no
; then
7018 $as_echo "#define const /**/" >>confdefs.h
7022 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for void * support" >&5
7023 $as_echo_n "checking for void * support... " >&6; }
7024 if test "${emacs_cv_void_star+set}" = set; then :
7025 $as_echo_n "(cached) " >&6
7027 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
7028 /* end confdefs.h. */
7038 if ac_fn_c_try_compile
"$LINENO"; then :
7039 emacs_cv_void_star
=yes
7041 emacs_cv_void_star
=no
7043 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
7045 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $emacs_cv_void_star" >&5
7046 $as_echo "$emacs_cv_void_star" >&6; }
7047 if test $emacs_cv_void_star = yes; then
7048 $as_echo "#define POINTER_TYPE void" >>confdefs.h
7051 $as_echo "#define POINTER_TYPE char" >>confdefs.h
7055 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether byte ordering is bigendian" >&5
7056 $as_echo_n "checking whether byte ordering is bigendian... " >&6; }
7057 if test "${ac_cv_c_bigendian+set}" = set; then :
7058 $as_echo_n "(cached) " >&6
7060 ac_cv_c_bigendian
=unknown
7061 # See if we're dealing with a universal compiler.
7062 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
7063 /* end confdefs.h. */
7064 #ifndef __APPLE_CC__
7065 not a universal capable compiler
7070 if ac_fn_c_try_compile
"$LINENO"; then :
7072 # Check for potential -arch flags. It is not universal unless
7073 # there are at least two -arch flags with different values.
7076 for ac_word
in $CC $CFLAGS $CPPFLAGS $LDFLAGS; do
7077 if test -n "$ac_prev"; then
7079 i?
86 | x86_64 | ppc | ppc64
)
7080 if test -z "$ac_arch" ||
test "$ac_arch" = "$ac_word"; then
7083 ac_cv_c_bigendian
=universal
7089 elif test "x$ac_word" = "x-arch"; then
7094 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
7095 if test $ac_cv_c_bigendian = unknown
; then
7096 # See if sys/param.h defines the BYTE_ORDER macro.
7097 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
7098 /* end confdefs.h. */
7099 #include <sys/types.h>
7100 #include <sys/param.h>
7105 #if ! (defined BYTE_ORDER && defined BIG_ENDIAN \
7106 && defined LITTLE_ENDIAN && BYTE_ORDER && BIG_ENDIAN \
7115 if ac_fn_c_try_compile
"$LINENO"; then :
7116 # It does; now see whether it defined to BIG_ENDIAN or not.
7117 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
7118 /* end confdefs.h. */
7119 #include <sys/types.h>
7120 #include <sys/param.h>
7125 #if BYTE_ORDER != BIG_ENDIAN
7133 if ac_fn_c_try_compile
"$LINENO"; then :
7134 ac_cv_c_bigendian
=yes
7136 ac_cv_c_bigendian
=no
7138 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
7140 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
7142 if test $ac_cv_c_bigendian = unknown
; then
7143 # See if <limits.h> defines _LITTLE_ENDIAN or _BIG_ENDIAN (e.g., Solaris).
7144 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
7145 /* end confdefs.h. */
7151 #if ! (defined _LITTLE_ENDIAN || defined _BIG_ENDIAN)
7159 if ac_fn_c_try_compile
"$LINENO"; then :
7160 # It does; now see whether it defined to _BIG_ENDIAN or not.
7161 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
7162 /* end confdefs.h. */
7176 if ac_fn_c_try_compile
"$LINENO"; then :
7177 ac_cv_c_bigendian
=yes
7179 ac_cv_c_bigendian
=no
7181 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
7183 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
7185 if test $ac_cv_c_bigendian = unknown
; then
7186 # Compile a test program.
7187 if test "$cross_compiling" = yes; then :
7188 # Try to guess by grepping values from an object file.
7189 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
7190 /* end confdefs.h. */
7191 short int ascii_mm[] =
7192 { 0x4249, 0x4765, 0x6E44, 0x6961, 0x6E53, 0x7953, 0 };
7193 short int ascii_ii[] =
7194 { 0x694C, 0x5454, 0x656C, 0x6E45, 0x6944, 0x6E61, 0 };
7195 int use_ascii (int i) {
7196 return ascii_mm[i] + ascii_ii[i];
7198 short int ebcdic_ii[] =
7199 { 0x89D3, 0xE3E3, 0x8593, 0x95C5, 0x89C4, 0x9581, 0 };
7200 short int ebcdic_mm[] =
7201 { 0xC2C9, 0xC785, 0x95C4, 0x8981, 0x95E2, 0xA8E2, 0 };
7202 int use_ebcdic (int i) {
7203 return ebcdic_mm[i] + ebcdic_ii[i];
7210 return use_ascii (foo) == use_ebcdic (foo);
7215 if ac_fn_c_try_compile
"$LINENO"; then :
7216 if grep BIGenDianSyS conftest.
$ac_objext >/dev
/null
; then
7217 ac_cv_c_bigendian
=yes
7219 if grep LiTTleEnDian conftest.
$ac_objext >/dev
/null
; then
7220 if test "$ac_cv_c_bigendian" = unknown
; then
7221 ac_cv_c_bigendian
=no
7223 # finding both strings is unlikely to happen, but who knows?
7224 ac_cv_c_bigendian
=unknown
7228 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
7230 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
7231 /* end confdefs.h. */
7232 $ac_includes_default
7237 /* Are we little or big endian? From Harbison&Steele. */
7241 char c[sizeof (long int)];
7244 return u.c[sizeof (long int) - 1] == 1;
7250 if ac_fn_c_try_run
"$LINENO"; then :
7251 ac_cv_c_bigendian
=no
7253 ac_cv_c_bigendian
=yes
7255 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
7256 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
7261 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_bigendian" >&5
7262 $as_echo "$ac_cv_c_bigendian" >&6; }
7263 case $ac_cv_c_bigendian in #(
7265 $as_echo "#define WORDS_BIGENDIAN 1" >>confdefs.h
7271 $as_echo "#define AC_APPLE_UNIVERSAL_BUILD 1" >>confdefs.h
7275 as_fn_error
"unknown endianness
7276 presetting ac_cv_c_bigendian=no (or yes) will help" "$LINENO" 5 ;;
7280 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
7281 $as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
7283 ac_make
=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
7284 if { as_var
=ac_cv_prog_make_
${ac_make}_set; eval "test \"\${$as_var+set}\" = set"; }; then :
7285 $as_echo_n "(cached) " >&6
7287 cat >conftest.
make <<\_ACEOF
7290 @
echo '@@@%%%=$(MAKE)=@@@%%%'
7292 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
7293 case `${MAKE-make} -f conftest.make 2>/dev/null` in
7295 eval ac_cv_prog_make_
${ac_make}_set
=yes;;
7297 eval ac_cv_prog_make_
${ac_make}_set
=no
;;
7301 if eval test \
$ac_cv_prog_make_${ac_make}_set
= yes; then
7302 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
7303 $as_echo "yes" >&6; }
7306 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7307 $as_echo "no" >&6; }
7308 SET_MAKE
="MAKE=${MAKE-make}"
7315 if test "$GCC" = yes && test "$ac_enable_autodepend" = yes; then
7316 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using GNU Make" >&5
7317 $as_echo_n "checking whether we are using GNU Make... " >&6; }
7319 testval
=`make --version 2>/dev/null | grep 'GNU Make'`
7320 if test "x$testval" != x
; then
7323 ac_enable_autodepend
=no
7325 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $HAVE_GNU_MAKE" >&5
7326 $as_echo "$HAVE_GNU_MAKE" >&6; }
7327 if test $HAVE_GNU_MAKE = yes; then
7328 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether gcc understands -MMD -MF" >&5
7329 $as_echo_n "checking whether gcc understands -MMD -MF... " >&6; }
7330 SAVE_CFLAGS
="$CFLAGS"
7331 CFLAGS
="$CFLAGS -MMD -MF deps.d"
7332 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
7333 /* end confdefs.h. */
7343 if ac_fn_c_try_compile
"$LINENO"; then :
7346 ac_enable_autodepend
=no
7348 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
7349 CFLAGS
="$SAVE_CFLAGS"
7350 test -f deps.d || ac_enable_autodepend
=no
7352 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_enable_autodepend" >&5
7353 $as_echo "$ac_enable_autodepend" >&6; }
7355 if test $ac_enable_autodepend = yes; then
7356 DEPFLAGS
='-MMD -MF ${DEPDIR}/$*.d'
7357 ## In parallel builds, another make might create depdir between
7358 ## the first test and mkdir, so stick another test on the end.
7359 ## Or use mkinstalldirs? mkdir -p is not portable.
7360 MKDEPDIR
='test -d ${DEPDIR} || mkdir ${DEPDIR} || test -d ${DEPDIR}'
7361 deps_frag
=autodeps.mk
7364 deps_frag
=$srcdir/src
/$deps_frag
7370 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for long file names" >&5
7371 $as_echo_n "checking for long file names... " >&6; }
7372 if test "${ac_cv_sys_long_file_names+set}" = set; then :
7373 $as_echo_n "(cached) " >&6
7375 ac_cv_sys_long_file_names
=yes
7376 # Test for long file names in all the places we know might matter:
7377 # . the current directory, where building will happen
7378 # $prefix/lib where we will be installing things
7379 # $exec_prefix/lib likewise
7380 # $TMPDIR if set, where it might want to write temporary files
7381 # /tmp where it might want to write temporary files
7384 for ac_dir
in .
"$TMPDIR" /tmp
/var
/tmp
/usr
/tmp
"$prefix/lib" "$exec_prefix/lib"; do
7385 # Skip $TMPDIR if it is empty or bogus, and skip $exec_prefix/lib
7386 # in the usual case where exec_prefix is '${prefix}'.
7388 . |
/* | ?
:[\\/]*) ;; #(
7391 test -w "$ac_dir/." ||
continue # It is less confusing to not echo anything here.
7392 ac_xdir
=$ac_dir/cf$$
7393 (umask 077 && mkdir
"$ac_xdir" 2>/dev
/null
) ||
continue
7394 ac_tf1
=$ac_xdir/conftest9012345
7395 ac_tf2
=$ac_xdir/conftest9012346
7396 touch "$ac_tf1" 2>/dev
/null
&& test -f "$ac_tf1" && test ! -f "$ac_tf2" ||
7397 ac_cv_sys_long_file_names
=no
7398 rm -f -r "$ac_xdir" 2>/dev
/null
7399 test $ac_cv_sys_long_file_names = no
&& break
7402 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_long_file_names" >&5
7403 $as_echo "$ac_cv_sys_long_file_names" >&6; }
7404 if test $ac_cv_sys_long_file_names = yes; then
7406 $as_echo "#define HAVE_LONG_FILE_NAMES 1" >>confdefs.h
7411 #### Choose a window system.
7413 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for X" >&5
7414 $as_echo_n "checking for X... " >&6; }
7417 # Check whether --with-x was given.
7418 if test "${with_x+set}" = set; then :
7422 # $have_x is `yes', `no', `disabled', or empty when we do not yet know.
7423 if test "x$with_x" = xno
; then
7424 # The user explicitly disabled X.
7427 case $x_includes,$x_libraries in #(
7428 *\'*) as_fn_error
"cannot use X directory names containing '" "$LINENO" 5;; #(
7429 *,NONE | NONE
,*) if test "${ac_cv_have_x+set}" = set; then :
7430 $as_echo_n "(cached) " >&6
7432 # One or both of the vars are not set, and there is no cached value.
7433 ac_x_includes
=no ac_x_libraries
=no
7434 rm -f -r conftest.dir
7435 if mkdir conftest.dir
; then
7437 cat >Imakefile
<<'_ACEOF'
7439 @echo incroot='${INCROOT}'
7441 @echo usrlibdir='${USRLIBDIR}'
7443 @echo libdir='${LIBDIR}'
7445 if (export CC
; ${XMKMF-xmkmf}) >/dev
/null
2>/dev
/null
&& test -f Makefile
; then
7446 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
7447 for ac_var
in incroot usrlibdir libdir
; do
7448 eval "ac_im_$ac_var=\`\${MAKE-make} $ac_var 2>/dev/null | sed -n 's/^$ac_var=//p'\`"
7450 # Open Windows xmkmf reportedly sets LIBDIR instead of USRLIBDIR.
7451 for ac_extension
in a so sl dylib la dll
; do
7452 if test ! -f "$ac_im_usrlibdir/libX11.$ac_extension" &&
7453 test -f "$ac_im_libdir/libX11.$ac_extension"; then
7454 ac_im_usrlibdir
=$ac_im_libdir; break
7457 # Screen out bogus values from the imake configuration. They are
7458 # bogus both because they are the default anyway, and because
7459 # using them would break gcc on systems where it needs fixed includes.
7460 case $ac_im_incroot in
7461 /usr
/include
) ac_x_includes
= ;;
7462 *) test -f "$ac_im_incroot/X11/Xos.h" && ac_x_includes
=$ac_im_incroot;;
7464 case $ac_im_usrlibdir in
7465 /usr
/lib |
/usr
/lib64 |
/lib |
/lib64
) ;;
7466 *) test -d "$ac_im_usrlibdir" && ac_x_libraries
=$ac_im_usrlibdir ;;
7470 rm -f -r conftest.dir
7473 # Standard set of common directories for X headers.
7474 # Check X11 before X11Rn because it is often a symlink to the current release.
7488 /usr/local/X11/include
7489 /usr/local/X11R7/include
7490 /usr/local/X11R6/include
7491 /usr/local/X11R5/include
7492 /usr/local/X11R4/include
7494 /usr/local/include/X11
7495 /usr/local/include/X11R7
7496 /usr/local/include/X11R6
7497 /usr/local/include/X11R5
7498 /usr/local/include/X11R4
7502 /usr/XFree86/include/X11
7506 /usr/unsupported/include
7508 /usr/local/x11r5/include
7509 /usr/lpp/Xamples/include
7511 /usr/openwin/include
7512 /usr/openwin/share/include'
7514 if test "$ac_x_includes" = no
; then
7515 # Guess where to find include files, by looking for Xlib.h.
7516 # First, try using that file with no special directory specified.
7517 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
7518 /* end confdefs.h. */
7519 #include <X11/Xlib.h>
7521 if ac_fn_c_try_cpp
"$LINENO"; then :
7522 # We can compile using X headers with no special include directory.
7525 for ac_dir
in $ac_x_header_dirs; do
7526 if test -r "$ac_dir/X11/Xlib.h"; then
7527 ac_x_includes
=$ac_dir
7532 rm -f conftest.err conftest.
$ac_ext
7533 fi # $ac_x_includes = no
7535 if test "$ac_x_libraries" = no
; then
7536 # Check for the libraries.
7537 # See if we find them without any special options.
7538 # Don't add to $LIBS permanently.
7541 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
7542 /* end confdefs.h. */
7543 #include <X11/Xlib.h>
7552 if ac_fn_c_try_link
"$LINENO"; then :
7554 # We can link X programs with no special library path.
7558 for ac_dir
in `$as_echo "$ac_x_includes $ac_x_header_dirs" | sed s/include/lib/g`
7560 # Don't even attempt the hair of trying to link an X program!
7561 for ac_extension
in a so sl dylib la dll
; do
7562 if test -r "$ac_dir/libX11.$ac_extension"; then
7563 ac_x_libraries
=$ac_dir
7569 rm -f core conftest.err conftest.
$ac_objext \
7570 conftest
$ac_exeext conftest.
$ac_ext
7571 fi # $ac_x_libraries = no
7573 case $ac_x_includes,$ac_x_libraries in #(
7575 # Didn't find X, or a directory has "'" in its name.
7576 ac_cv_have_x
="have_x=no";; #(
7578 # Record where we found X for the cache.
7579 ac_cv_have_x
="have_x=yes\
7580 ac_x_includes='$ac_x_includes'\
7581 ac_x_libraries='$ac_x_libraries'"
7587 eval "$ac_cv_have_x"
7590 if test "$have_x" != yes; then
7591 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_x" >&5
7592 $as_echo "$have_x" >&6; }
7595 # If each of the values was on the command line, it overrides each guess.
7596 test "x$x_includes" = xNONE
&& x_includes
=$ac_x_includes
7597 test "x$x_libraries" = xNONE
&& x_libraries
=$ac_x_libraries
7598 # Update the cache value to reflect the command line values.
7599 ac_cv_have_x
="have_x=yes\
7600 ac_x_includes='$x_includes'\
7601 ac_x_libraries='$x_libraries'"
7602 { $as_echo "$as_me:${as_lineno-$LINENO}: result: libraries $x_libraries, headers $x_includes" >&5
7603 $as_echo "libraries $x_libraries, headers $x_includes" >&6; }
7606 if test "$no_x" = yes; then
7612 ## Workaround for bug in autoconf <= 2.62.
7613 ## http://lists.gnu.org/archive/html/emacs-devel/2008-04/msg01551.html
7614 ## No need to do anything special for these standard directories.
7615 if test -n "${x_libraries}" && test x
"${x_libraries}" != xNONE
; then
7617 x_libraries
=`echo :${x_libraries}: | sed -e 's|:/usr/lib64:|:|g' -e 's|:/lib64:|:|g' -e 's|^:||' -e 's|:$||'`
7621 LD_SWITCH_X_SITE_AUX
=
7622 LD_SWITCH_X_SITE_AUX_RPATH
=
7623 if test "${x_libraries}" != NONE
; then
7624 if test -n "${x_libraries}"; then
7625 LD_SWITCH_X_SITE
=-L`echo ${x_libraries} | sed -e "s/:/ -L/g"`
7626 LD_SWITCH_X_SITE_AUX
=-R`echo ${x_libraries} | sed -e "s/:/ -R/g"`
7627 LD_SWITCH_X_SITE_AUX_RPATH
=`echo ${LD_SWITCH_X_SITE_AUX} | sed -e 's/-R/-Wl,-rpath,/'`
7629 x_default_search_path
=""
7630 x_search_path
=${x_libraries}
7631 if test -z "${x_search_path}"; then
7632 x_search_path
=/usr
/lib
7634 for x_library
in `echo ${x_search_path}: | \
7635 sed -e "s/:/ /g" -e p -e "s:/lib[^ /]* :/share :g"`; do
7637 ${x_library}/X11/%L/%T/%N%C%S:\
7638 ${x_library}/X11/%l/%T/%N%C%S:\
7639 ${x_library}/X11/%T/%N%C%S:\
7640 ${x_library}/X11/%L/%T/%N%S:\
7641 ${x_library}/X11/%l/%T/%N%S:\
7642 ${x_library}/X11/%T/%N%S"
7643 if test x
"${x_default_search_path}" = x
; then
7644 x_default_search_path
=${x_search_path}
7646 x_default_search_path
="${x_search_path}:${x_default_search_path}"
7653 if test "${x_includes}" != NONE
&& test -n "${x_includes}"; then
7654 C_SWITCH_X_SITE
=-I`echo ${x_includes} | sed -e "s/:/ -I/g"`
7657 if test x
"${x_includes}" = x
; then
7658 bitmapdir
=/usr
/include
/X11
/bitmaps
7660 # accumulate include directories that have X11 bitmap subdirectories
7662 for bmd
in `echo ${x_includes} | sed -e "s/:/ /g"`; do
7663 if test -d "${bmd}/X11/bitmaps"; then
7664 bmd_acc
="${bmd_acc}:${bmd}/X11/bitmaps"
7666 if test -d "${bmd}/bitmaps"; then
7667 bmd_acc
="${bmd_acc}:${bmd}/bitmaps"
7670 if test ${bmd_acc} != "dummyval"; then
7671 bitmapdir
=`echo ${bmd_acc} | sed -e "s/^dummyval://"`
7678 tmp_CPPFLAGS
="$CPPFLAGS"
7679 tmp_CFLAGS
="$CFLAGS"
7680 CPPFLAGS
="$CPPFLAGS -x objective-c"
7681 CFLAGS
="$CFLAGS -x objective-c"
7682 TEMACS_LDFLAGS2
="\${LDFLAGS} \${PROFILING_LDFLAGS}"
7683 if test "${with_ns}" != no
; then
7684 if test "${opsys}" = darwin
; then
7686 ns_appdir
=`pwd`/nextstep
/Emacs.app
/
7687 ns_appbindir
=${ns_appdir}Contents
/MacOS
/
7688 ns_appresdir
=${ns_appdir}Contents
/Resources
7689 ns_appsrc
=${srcdir}/nextstep
/Cocoa
/Emacs.base
7690 elif test -f $GNUSTEP_CONFIG_FILE; then
7692 ns_appdir
=`pwd`/nextstep
/Emacs.app
/
7693 ns_appbindir
=${ns_appdir}
7694 ns_appresdir
=${ns_appdir}Resources
7695 ns_appsrc
=${srcdir}/nextstep
/GNUstep
/Emacs.base
7696 GNUSTEP_SYSTEM_HEADERS
="$(. $GNUSTEP_CONFIG_FILE; echo $GNUSTEP_SYSTEM_HEADERS)"
7697 GNUSTEP_SYSTEM_LIBRARIES
="$(. $GNUSTEP_CONFIG_FILE; echo $GNUSTEP_SYSTEM_LIBRARIES)"
7698 GNUSTEP_LOCAL_HEADERS
="$(. $GNUSTEP_CONFIG_FILE; echo $GNUSTEP_LOCAL_HEADERS)"
7699 GNUSTEP_LOCAL_LIBRARIES
="$(. $GNUSTEP_CONFIG_FILE; echo $GNUSTEP_LOCAL_LIBRARIES)"
7700 test "x${GNUSTEP_LOCAL_HEADERS}" != "x" && \
7701 GNUSTEP_LOCAL_HEADERS
="-I${GNUSTEP_LOCAL_HEADERS}"
7702 test "x${GNUSTEP_LOCAL_LIBRARIES}" != "x" && \
7703 GNUSTEP_LOCAL_LIBRARIES
="-L${GNUSTEP_LOCAL_LIBRARIES}"
7704 CPPFLAGS
="$CPPFLAGS -I${GNUSTEP_SYSTEM_HEADERS} ${GNUSTEP_LOCAL_HEADERS}"
7705 CFLAGS
="$CFLAGS -I${GNUSTEP_SYSTEM_HEADERS} ${GNUSTEP_LOCAL_HEADERS}"
7706 LDFLAGS
="$LDFLAGS -L${GNUSTEP_SYSTEM_LIBRARIES} ${GNUSTEP_LOCAL_LIBRARIES}"
7711 ac_fn_c_check_header_mongrel
"$LINENO" "AppKit/AppKit.h" "ac_cv_header_AppKit_AppKit_h" "$ac_includes_default"
7712 if test "x$ac_cv_header_AppKit_AppKit_h" = x
""yes; then :
7715 as_fn_error
"\`--with-ns' was specified, but the include
7716 files are missing or cannot be compiled." "$LINENO" 5
7720 NS_HAVE_NSINTEGER
=yes
7721 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
7722 /* end confdefs.h. */
7723 #include <Foundation/NSObjCRuntime.h>
7732 if ac_fn_c_try_compile
"$LINENO"; then :
7733 ns_have_nsinteger
=yes
7735 ns_have_nsinteger
=no
7737 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
7738 if test $ns_have_nsinteger = no
; then
7739 NS_HAVE_NSINTEGER
=no
7747 if test "${HAVE_NS}" = yes; then
7748 window_system
=nextstep
7750 # set up packaging dirs
7751 exec_prefix
=${ns_appbindir}
7752 libexecdir
=${ns_appbindir}/libexec
7753 if test "${EN_NS_SELF_CONTAINED}" = yes; then
7754 prefix
=${ns_appresdir}
7756 ns_frag
=$srcdir/src
/ns.mk
7757 NS_OBJ
="nsterm.o nsfns.o nsmenu.o nsselect.o nsimage.o nsfont.o fontset.o fringe.o image.o"
7758 NS_SUPPORT
="\${lispsource}emacs-lisp/easymenu.elc \${lispsource}term/ns-win.elc"
7760 CFLAGS
="$tmp_CFLAGS"
7761 CPPFLAGS
="$tmp_CPPFLAGS"
7767 case "${window_system}" in
7771 case "${with_x_toolkit}" in
7772 athena | lucid
) USE_X_TOOLKIT
=LUCID
;;
7773 motif
) USE_X_TOOLKIT
=MOTIF
;;
7775 USE_X_TOOLKIT
=none
;;
7776 gtk3
) with_gtk3
=yes
7777 USE_X_TOOLKIT
=none
;;
7778 no
) USE_X_TOOLKIT
=none
;;
7779 * ) USE_X_TOOLKIT
=maybe
;;
7789 if test "$window_system" = none
&& test "X$with_x" != "Xno"; then
7790 # Extract the first word of "X", so it can be a program name with args.
7791 set dummy X
; ac_word
=$2
7792 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7793 $as_echo_n "checking for $ac_word... " >&6; }
7794 if test "${ac_cv_prog_HAVE_XSERVER+set}" = set; then :
7795 $as_echo_n "(cached) " >&6
7797 if test -n "$HAVE_XSERVER"; then
7798 ac_cv_prog_HAVE_XSERVER
="$HAVE_XSERVER" # Let the user override the test.
7800 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
7804 test -z "$as_dir" && as_dir
=.
7805 for ac_exec_ext
in '' $ac_executable_extensions; do
7806 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7807 ac_cv_prog_HAVE_XSERVER
="true"
7808 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7815 test -z "$ac_cv_prog_HAVE_XSERVER" && ac_cv_prog_HAVE_XSERVER
="false"
7818 HAVE_XSERVER
=$ac_cv_prog_HAVE_XSERVER
7819 if test -n "$HAVE_XSERVER"; then
7820 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $HAVE_XSERVER" >&5
7821 $as_echo "$HAVE_XSERVER" >&6; }
7823 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7824 $as_echo "no" >&6; }
7828 if test "$HAVE_XSERVER" = true ||
7829 test -n "$DISPLAY" ||
7830 test "`echo /usr/lib/libX11.*`" != "/usr/lib/libX11.*"; then
7831 as_fn_error
"You seem to be running X, but no X development libraries
7832 were found. You should install the relevant development files for X
7833 and for the toolkit you want, such as Gtk+, Lesstif or Motif. Also make
7834 sure you have development files for image handling, i.e.
7835 tiff, gif, jpeg, png and xpm.
7836 If you are sure you want Emacs compiled without X window support, pass
7838 to configure." "$LINENO" 5
7842 ### If we're using X11, we should use the X menu package.
7845 yes ) HAVE_MENUS
=yes ;;
7848 # Do the opsystem or machine files prohibit the use of the GNU malloc?
7849 # Assume not, until told otherwise.
7852 ac_fn_c_check_func
"$LINENO" "malloc_get_state" "ac_cv_func_malloc_get_state"
7853 if test "x$ac_cv_func_malloc_get_state" = x
""yes; then :
7859 ac_fn_c_check_func
"$LINENO" "malloc_set_state" "ac_cv_func_malloc_set_state"
7860 if test "x$ac_cv_func_malloc_set_state" = x
""yes; then :
7866 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether __after_morecore_hook exists" >&5
7867 $as_echo_n "checking whether __after_morecore_hook exists... " >&6; }
7868 if test "${emacs_cv_var___after_morecore_hook+set}" = set; then :
7869 $as_echo_n "(cached) " >&6
7871 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
7872 /* end confdefs.h. */
7873 extern void (* __after_morecore_hook)();
7877 __after_morecore_hook = 0
7882 if ac_fn_c_try_link
"$LINENO"; then :
7883 emacs_cv_var___after_morecore_hook
=yes
7885 emacs_cv_var___after_morecore_hook
=no
7887 rm -f core conftest.err conftest.
$ac_objext \
7888 conftest
$ac_exeext conftest.
$ac_ext
7890 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $emacs_cv_var___after_morecore_hook" >&5
7891 $as_echo "$emacs_cv_var___after_morecore_hook" >&6; }
7892 if test $emacs_cv_var___after_morecore_hook = no
; then
7899 ## darwin ld insists on the use of malloc routines in the System framework.
7900 darwin|sol2-10
) system_malloc
=yes ;;
7903 if test "${system_malloc}" = "yes"; then
7905 $as_echo "#define SYSTEM_MALLOC 1" >>confdefs.h
7909 (The GNU allocators don't work with this system configuration.)"
7913 test "$doug_lea_malloc" != "yes" && GMALLOC_OBJ
=gmalloc.o
7914 VMLIMIT_OBJ
=vm-limit.o
7919 if test "$doug_lea_malloc" = "yes" ; then
7920 if test "$GNU_MALLOC" = yes ; then
7922 (Using Doug Lea's new malloc from the GNU C Library.)"
7925 $as_echo "#define DOUG_LEA_MALLOC 1" >>confdefs.h
7928 ## Use mmap directly for allocating larger buffers.
7929 ## FIXME this comes from src/s/{gnu,gnu-linux}.h:
7930 ## #ifdef DOUG_LEA_MALLOC; #undef REL_ALLOC; #endif
7931 ## Does the AC_FUNC_MMAP test below make this check unecessary?
7933 gnu
*) REL_ALLOC
=no
;;
7937 if test x
"${REL_ALLOC}" = x
; then
7938 REL_ALLOC
=${GNU_MALLOC}
7941 use_mmap_for_buffers
=no
7943 freebsd|irix6-5
) use_mmap_for_buffers
=yes ;;
7949 for ac_header
in $ac_header_list
7951 as_ac_Header
=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
7952 ac_fn_c_check_header_compile
"$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
7954 eval as_val
=\$
$as_ac_Header
7955 if test "x$as_val" = x
""yes; then :
7956 cat >>confdefs.h
<<_ACEOF
7957 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
7971 for ac_func
in getpagesize
7973 ac_fn_c_check_func
"$LINENO" "getpagesize" "ac_cv_func_getpagesize"
7974 if test "x$ac_cv_func_getpagesize" = x
""yes; then :
7975 cat >>confdefs.h
<<_ACEOF
7976 #define HAVE_GETPAGESIZE 1
7982 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working mmap" >&5
7983 $as_echo_n "checking for working mmap... " >&6; }
7984 if test "${ac_cv_func_mmap_fixed_mapped+set}" = set; then :
7985 $as_echo_n "(cached) " >&6
7987 if test "$cross_compiling" = yes; then :
7988 ac_cv_func_mmap_fixed_mapped
=no
7990 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
7991 /* end confdefs.h. */
7992 $ac_includes_default
7993 /* malloc might have been renamed as rpl_malloc. */
7996 /* Thanks to Mike Haertel and Jim Avera for this test.
7997 Here is a matrix of mmap possibilities:
7998 mmap private not fixed
7999 mmap private fixed at somewhere currently unmapped
8000 mmap private fixed at somewhere already mapped
8001 mmap shared not fixed
8002 mmap shared fixed at somewhere currently unmapped
8003 mmap shared fixed at somewhere already mapped
8004 For private mappings, we should verify that changes cannot be read()
8005 back from the file, nor mmap's back from the file at a different
8006 address. (There have been systems where private was not correctly
8007 implemented like the infamous i386 svr4.0, and systems where the
8008 VM page cache was not coherent with the file system buffer cache
8009 like early versions of FreeBSD and possibly contemporary NetBSD.)
8010 For shared mappings, we should conversely verify that changes get
8011 propagated back to all the places they're supposed to be.
8013 Grep wants private fixed already mapped.
8014 The main things grep needs to know about mmap are:
8015 * does it exist and is it safe to write into the mmap'd area
8016 * how to use it (BSD variants) */
8019 #include <sys/mman.h>
8021 #if !defined STDC_HEADERS && !defined HAVE_STDLIB_H
8025 /* This mess was copied from the GNU getpagesize.h. */
8026 #ifndef HAVE_GETPAGESIZE
8027 # ifdef _SC_PAGESIZE
8028 # define getpagesize() sysconf(_SC_PAGESIZE)
8029 # else /* no _SC_PAGESIZE */
8030 # ifdef HAVE_SYS_PARAM_H
8031 # include <sys/param.h>
8032 # ifdef EXEC_PAGESIZE
8033 # define getpagesize() EXEC_PAGESIZE
8034 # else /* no EXEC_PAGESIZE */
8036 # define getpagesize() NBPG * CLSIZE
8039 # endif /* no CLSIZE */
8040 # else /* no NBPG */
8042 # define getpagesize() NBPC
8043 # else /* no NBPC */
8045 # define getpagesize() PAGESIZE
8046 # endif /* PAGESIZE */
8047 # endif /* no NBPC */
8048 # endif /* no NBPG */
8049 # endif /* no EXEC_PAGESIZE */
8050 # else /* no HAVE_SYS_PARAM_H */
8051 # define getpagesize() 8192 /* punt totally */
8052 # endif /* no HAVE_SYS_PARAM_H */
8053 # endif /* no _SC_PAGESIZE */
8055 #endif /* no HAVE_GETPAGESIZE */
8060 char *data, *data2, *data3;
8065 pagesize = getpagesize ();
8067 /* First, make a file with some known garbage in it. */
8068 data = (char *) malloc (pagesize);
8071 for (i = 0; i < pagesize; ++i)
8072 *(data + i) = rand ();
8074 fd = creat ("conftest.mmap", 0600);
8077 if (write (fd, data, pagesize) != pagesize)
8081 /* Next, check that the tail of a page is zero-filled. File must have
8082 non-zero length, otherwise we risk SIGBUS for entire page. */
8083 fd2 = open ("conftest.txt", O_RDWR | O_CREAT | O_TRUNC, 0600);
8087 if (write (fd2, cdata2, 1) != 1)
8089 data2 = (char *) mmap (0, pagesize, PROT_READ | PROT_WRITE, MAP_SHARED, fd2, 0L);
8090 if (data2 == MAP_FAILED)
8092 for (i = 0; i < pagesize; ++i)
8096 if (munmap (data2, pagesize))
8099 /* Next, try to mmap the file at a fixed address which already has
8100 something else allocated at it. If we can, also make sure that
8101 we see the same garbage. */
8102 fd = open ("conftest.mmap", O_RDWR);
8105 if (data2 != mmap (data2, pagesize, PROT_READ | PROT_WRITE,
8106 MAP_PRIVATE | MAP_FIXED, fd, 0L))
8108 for (i = 0; i < pagesize; ++i)
8109 if (*(data + i) != *(data2 + i))
8112 /* Finally, make sure that changes to the mapped area do not
8113 percolate back to the file as seen by read(). (This is a bug on
8114 some variants of i386 svr4.0.) */
8115 for (i = 0; i < pagesize; ++i)
8116 *(data2 + i) = *(data2 + i) + 1;
8117 data3 = (char *) malloc (pagesize);
8120 if (read (fd, data3, pagesize) != pagesize)
8122 for (i = 0; i < pagesize; ++i)
8123 if (*(data + i) != *(data3 + i))
8129 if ac_fn_c_try_run
"$LINENO"; then :
8130 ac_cv_func_mmap_fixed_mapped
=yes
8132 ac_cv_func_mmap_fixed_mapped
=no
8134 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
8135 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
8139 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_mmap_fixed_mapped" >&5
8140 $as_echo "$ac_cv_func_mmap_fixed_mapped" >&6; }
8141 if test $ac_cv_func_mmap_fixed_mapped = yes; then
8143 $as_echo "#define HAVE_MMAP 1" >>confdefs.h
8146 rm -f conftest.mmap conftest.txt
8148 if test $use_mmap_for_buffers = yes; then
8150 $as_echo "#define USE_MMAP_FOR_BUFFERS 1" >>confdefs.h
8155 LIBS
="$LIBS_SYSTEM $LIBS"
8157 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dnet_ntoa in -ldnet" >&5
8158 $as_echo_n "checking for dnet_ntoa in -ldnet... " >&6; }
8159 if test "${ac_cv_lib_dnet_dnet_ntoa+set}" = set; then :
8160 $as_echo_n "(cached) " >&6
8162 ac_check_lib_save_LIBS
=$LIBS
8164 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
8165 /* end confdefs.h. */
8167 /* Override any GCC internal prototype to avoid an error.
8168 Use char because int might match the return type of a GCC
8169 builtin and then its argument prototype would still apply. */
8177 return dnet_ntoa ();
8182 if ac_fn_c_try_link
"$LINENO"; then :
8183 ac_cv_lib_dnet_dnet_ntoa
=yes
8185 ac_cv_lib_dnet_dnet_ntoa
=no
8187 rm -f core conftest.err conftest.
$ac_objext \
8188 conftest
$ac_exeext conftest.
$ac_ext
8189 LIBS
=$ac_check_lib_save_LIBS
8191 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dnet_dnet_ntoa" >&5
8192 $as_echo "$ac_cv_lib_dnet_dnet_ntoa" >&6; }
8193 if test "x$ac_cv_lib_dnet_dnet_ntoa" = x
""yes; then :
8194 cat >>confdefs.h
<<_ACEOF
8195 #define HAVE_LIBDNET 1
8203 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for main in -lXbsd" >&5
8204 $as_echo_n "checking for main in -lXbsd... " >&6; }
8205 if test "${ac_cv_lib_Xbsd_main+set}" = set; then :
8206 $as_echo_n "(cached) " >&6
8208 ac_check_lib_save_LIBS
=$LIBS
8210 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
8211 /* end confdefs.h. */
8222 if ac_fn_c_try_link
"$LINENO"; then :
8223 ac_cv_lib_Xbsd_main
=yes
8225 ac_cv_lib_Xbsd_main
=no
8227 rm -f core conftest.err conftest.
$ac_objext \
8228 conftest
$ac_exeext conftest.
$ac_ext
8229 LIBS
=$ac_check_lib_save_LIBS
8231 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_Xbsd_main" >&5
8232 $as_echo "$ac_cv_lib_Xbsd_main" >&6; }
8233 if test "x$ac_cv_lib_Xbsd_main" = x
""yes; then :
8234 LD_SWITCH_X_SITE
="$LD_SWITCH_X_SITE -lXbsd"
8238 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for cma_open in -lpthreads" >&5
8239 $as_echo_n "checking for cma_open in -lpthreads... " >&6; }
8240 if test "${ac_cv_lib_pthreads_cma_open+set}" = set; then :
8241 $as_echo_n "(cached) " >&6
8243 ac_check_lib_save_LIBS
=$LIBS
8244 LIBS
="-lpthreads $LIBS"
8245 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
8246 /* end confdefs.h. */
8248 /* Override any GCC internal prototype to avoid an error.
8249 Use char because int might match the return type of a GCC
8250 builtin and then its argument prototype would still apply. */
8263 if ac_fn_c_try_link
"$LINENO"; then :
8264 ac_cv_lib_pthreads_cma_open
=yes
8266 ac_cv_lib_pthreads_cma_open
=no
8268 rm -f core conftest.err conftest.
$ac_objext \
8269 conftest
$ac_exeext conftest.
$ac_ext
8270 LIBS
=$ac_check_lib_save_LIBS
8272 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_pthreads_cma_open" >&5
8273 $as_echo "$ac_cv_lib_pthreads_cma_open" >&6; }
8274 if test "x$ac_cv_lib_pthreads_cma_open" = x
""yes; then :
8275 cat >>confdefs.h
<<_ACEOF
8276 #define HAVE_LIBPTHREADS 1
8279 LIBS
="-lpthreads $LIBS"
8284 ## Note: when using cpp in s/aix4.2.h, this definition depended on
8285 ## HAVE_LIBPTHREADS. That was not defined earlier in configure when
8286 ## the system file was sourced. Hence the value of LIBS_SYSTEM
8287 ## added to LIBS in configure would never contain the pthreads part,
8288 ## but the value used in Makefiles might. FIXME?
8290 ## -lpthreads seems to be necessary for Xlib in X11R6, and should
8291 ## be harmless on older versions of X where it happens to exist.
8292 test "$opsys" = "aix4-2" && \
8293 test $ac_cv_lib_pthreads_cma_open = yes && \
8294 LIBS_SYSTEM
="$LIBS_SYSTEM -lpthreads"
8299 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -bbigtoc option" >&5
8300 $as_echo_n "checking for -bbigtoc option... " >&6; }
8301 if test "${gdb_cv_bigtoc+set}" = set; then :
8302 $as_echo_n "(cached) " >&6
8306 yes) gdb_cv_bigtoc
=-Wl,-bbigtoc ;;
8307 *) gdb_cv_bigtoc
=-bbigtoc ;;
8310 LDFLAGS
=$LDFLAGS\
$gdb_cv_bigtoc
8311 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
8312 /* end confdefs.h. */
8322 if ac_fn_c_try_link
"$LINENO"; then :
8327 rm -f core conftest.err conftest.
$ac_objext \
8328 conftest
$ac_exeext conftest.
$ac_ext
8331 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gdb_cv_bigtoc" >&5
8332 $as_echo "$gdb_cv_bigtoc" >&6; }
8336 # Change CFLAGS and CPPFLAGS temporarily so that C_SWITCH_X_SITE gets
8337 # used for the tests that follow. We set them back to REAL_CFLAGS and
8338 # REAL_CPPFLAGS later on.
8340 REAL_CFLAGS
="$CFLAGS"
8341 REAL_CPPFLAGS
="$CPPFLAGS"
8343 if test "${HAVE_X11}" = "yes"; then
8344 DEFS
="$C_SWITCH_X_SITE $DEFS"
8345 LDFLAGS
="$LDFLAGS $LD_SWITCH_X_SITE"
8347 CFLAGS
="$C_SWITCH_X_SITE $CFLAGS"
8348 CPPFLAGS
="$C_SWITCH_X_SITE $CPPFLAGS"
8350 # On Solaris, arrange for LD_RUN_PATH to point to the X libraries for tests.
8351 # This is handled by LD_SWITCH_X_SITE_AUX during the real build,
8352 # but it's more convenient here to set LD_RUN_PATH
8353 # since this also works on hosts that don't understand LD_SWITCH_X_SITE_AUX.
8354 if test "${x_libraries}" != NONE
&& test -n "${x_libraries}"; then
8355 LD_RUN_PATH
=$x_libraries${LD_RUN_PATH+:}$LD_RUN_PATH
8359 if test "${opsys}" = "gnu-linux"; then
8360 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether X on GNU/Linux needs -b to link" >&5
8361 $as_echo_n "checking whether X on GNU/Linux needs -b to link... " >&6; }
8362 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
8363 /* end confdefs.h. */
8368 XOpenDisplay ("foo");
8373 if ac_fn_c_try_link
"$LINENO"; then :
8374 xlinux_first_failure
=no
8376 xlinux_first_failure
=yes
8378 rm -f core conftest.err conftest.
$ac_objext \
8379 conftest
$ac_exeext conftest.
$ac_ext
8380 if test "${xlinux_first_failure}" = "yes"; then
8381 OLD_LD_SWITCH_X_SITE
="$LD_SWITCH_X_SITE"
8382 OLD_C_SWITCH_X_SITE
="$C_SWITCH_X_SITE"
8383 OLD_CPPFLAGS
="$CPPFLAGS"
8385 LD_SWITCH_X_SITE
="$LD_SWITCH_X_SITE -b i486-linuxaout"
8386 C_SWITCH_X_SITE
="$C_SWITCH_X_SITE -b i486-linuxaout"
8387 CPPFLAGS
="$CPPFLAGS -b i486-linuxaout"
8388 LIBS
="$LIBS -b i486-linuxaout"
8389 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
8390 /* end confdefs.h. */
8395 XOpenDisplay ("foo");
8400 if ac_fn_c_try_link
"$LINENO"; then :
8401 xlinux_second_failure
=no
8403 xlinux_second_failure
=yes
8405 rm -f core conftest.err conftest.
$ac_objext \
8406 conftest
$ac_exeext conftest.
$ac_ext
8407 if test "${xlinux_second_failure}" = "yes"; then
8408 # If we get the same failure with -b, there is no use adding -b.
8409 # So take it out. This plays safe.
8410 LD_SWITCH_X_SITE
="$OLD_LD_SWITCH_X_SITE"
8411 C_SWITCH_X_SITE
="$OLD_C_SWITCH_X_SITE"
8412 CPPFLAGS
="$OLD_CPPFLAGS"
8414 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8415 $as_echo "no" >&6; }
8417 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
8418 $as_echo "yes" >&6; }
8421 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8422 $as_echo "no" >&6; }
8426 # Reportedly, some broken Solaris systems have XKBlib.h but are missing
8427 # header files included from there.
8428 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Xkb" >&5
8429 $as_echo_n "checking for Xkb... " >&6; }
8430 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
8431 /* end confdefs.h. */
8432 #include <X11/Xlib.h>
8433 #include <X11/XKBlib.h>
8437 XkbDescPtr kb = XkbGetKeyboard (0, XkbAllComponentsMask, XkbUseCoreKbd);
8442 if ac_fn_c_try_link
"$LINENO"; then :
8447 rm -f core conftest.err conftest.
$ac_objext \
8448 conftest
$ac_exeext conftest.
$ac_ext
8449 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $emacs_xkb" >&5
8450 $as_echo "$emacs_xkb" >&6; }
8451 if test $emacs_xkb = yes; then
8453 $as_echo "#define HAVE_XKBGETKEYBOARD 1" >>confdefs.h
8457 for ac_func
in XrmSetDatabase XScreenResourceString \
8458 XScreenNumberOfScreen XSetWMProtocols
8460 as_ac_var
=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
8461 ac_fn_c_check_func
"$LINENO" "$ac_func" "$as_ac_var"
8462 eval as_val
=\$
$as_ac_var
8463 if test "x$as_val" = x
""yes; then :
8464 cat >>confdefs.h
<<_ACEOF
8465 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
8473 if test "${window_system}" = "x11"; then
8474 { $as_echo "$as_me:${as_lineno-$LINENO}: checking X11 version 6" >&5
8475 $as_echo_n "checking X11 version 6... " >&6; }
8476 if test "${emacs_cv_x11_version_6+set}" = set; then :
8477 $as_echo_n "(cached) " >&6
8479 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
8480 /* end confdefs.h. */
8481 #include <X11/Xlib.h>
8485 #if XlibSpecificationRelease < 6
8493 if ac_fn_c_try_link
"$LINENO"; then :
8494 emacs_cv_x11_version_6
=yes
8496 emacs_cv_x11_version_6
=no
8498 rm -f core conftest.err conftest.
$ac_objext \
8499 conftest
$ac_exeext conftest.
$ac_ext
8502 if test $emacs_cv_x11_version_6 = yes; then
8503 { $as_echo "$as_me:${as_lineno-$LINENO}: result: 6 or newer" >&5
8504 $as_echo "6 or newer" >&6; }
8506 $as_echo "#define HAVE_X11R6 1" >>confdefs.h
8509 $as_echo "#define HAVE_X_I18N 1" >>confdefs.h
8511 ## inoue@ainet.or.jp says Solaris has a bug related to X11R6-style
8516 $as_echo "#define HAVE_X11R6_XIM 1" >>confdefs.h
8521 { $as_echo "$as_me:${as_lineno-$LINENO}: result: before 6" >&5
8522 $as_echo "before 6" >&6; }
8527 ### Use -lrsvg-2 if available, unless `--with-rsvg=no' is specified.
8529 if test "${HAVE_X11}" = "yes" ||
test "${NS_IMPL_GNUSTEP}" = "yes"; then
8530 if test "${with_rsvg}" != "no"; then
8531 RSVG_REQUIRED
=2.11.0
8532 RSVG_MODULE
="librsvg-2.0 >= $RSVG_REQUIRED"
8537 # Extract the first word of "pkg-config", so it can be a program name with args.
8538 set dummy pkg-config
; ac_word
=$2
8539 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8540 $as_echo_n "checking for $ac_word... " >&6; }
8541 if test "${ac_cv_path_PKG_CONFIG+set}" = set; then :
8542 $as_echo_n "(cached) " >&6
8546 ac_cv_path_PKG_CONFIG
="$PKG_CONFIG" # Let the user override the test with a path.
8549 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
8553 test -z "$as_dir" && as_dir
=.
8554 for ac_exec_ext
in '' $ac_executable_extensions; do
8555 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8556 ac_cv_path_PKG_CONFIG
="$as_dir/$ac_word$ac_exec_ext"
8557 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8564 test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG
="no"
8568 PKG_CONFIG
=$ac_cv_path_PKG_CONFIG
8569 if test -n "$PKG_CONFIG"; then
8570 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5
8571 $as_echo "$PKG_CONFIG" >&6; }
8573 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8574 $as_echo "no" >&6; }
8579 if test "$PKG_CONFIG" = "no" ; then
8582 PKG_CONFIG_MIN_VERSION
=0.9.0
8583 if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
8584 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $RSVG_MODULE" >&5
8585 $as_echo_n "checking for $RSVG_MODULE... " >&6; }
8587 if $PKG_CONFIG --exists "$RSVG_MODULE" 2>&5; then
8588 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
8589 $as_echo "yes" >&6; }
8592 { $as_echo "$as_me:${as_lineno-$LINENO}: checking RSVG_CFLAGS" >&5
8593 $as_echo_n "checking RSVG_CFLAGS... " >&6; }
8594 RSVG_CFLAGS
=`$PKG_CONFIG --cflags "$RSVG_MODULE"|sed -e 's,///*,/,g'`
8595 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RSVG_CFLAGS" >&5
8596 $as_echo "$RSVG_CFLAGS" >&6; }
8598 { $as_echo "$as_me:${as_lineno-$LINENO}: checking RSVG_LIBS" >&5
8599 $as_echo_n "checking RSVG_LIBS... " >&6; }
8600 RSVG_LIBS
=`$PKG_CONFIG --libs "$RSVG_MODULE"|sed -e 's,///*,/,g'`
8601 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RSVG_LIBS" >&5
8602 $as_echo "$RSVG_LIBS" >&6; }
8604 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8605 $as_echo "no" >&6; }
8608 ## If we have a custom action on failure, don't print errors, but
8609 ## do set a variable so people can do so.
8610 RSVG_PKG_ERRORS
=`$PKG_CONFIG --errors-to-stdout --print-errors "$RSVG_MODULE"`
8617 echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
8618 echo "*** See http://www.freedesktop.org/software/pkgconfig"
8622 if test $succeeded = yes; then
8631 if test $HAVE_RSVG = yes; then
8633 $as_echo "#define HAVE_RSVG 1" >>confdefs.h
8635 CFLAGS
="$CFLAGS $RSVG_CFLAGS"
8636 LIBS
="$RSVG_LIBS $LIBS"
8642 if test "${with_imagemagick}" != "no"; then
8643 IMAGEMAGICK_MODULE
="Wand"
8647 # Extract the first word of "pkg-config", so it can be a program name with args.
8648 set dummy pkg-config
; ac_word
=$2
8649 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8650 $as_echo_n "checking for $ac_word... " >&6; }
8651 if test "${ac_cv_path_PKG_CONFIG+set}" = set; then :
8652 $as_echo_n "(cached) " >&6
8656 ac_cv_path_PKG_CONFIG
="$PKG_CONFIG" # Let the user override the test with a path.
8659 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
8663 test -z "$as_dir" && as_dir
=.
8664 for ac_exec_ext
in '' $ac_executable_extensions; do
8665 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8666 ac_cv_path_PKG_CONFIG
="$as_dir/$ac_word$ac_exec_ext"
8667 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8674 test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG
="no"
8678 PKG_CONFIG
=$ac_cv_path_PKG_CONFIG
8679 if test -n "$PKG_CONFIG"; then
8680 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5
8681 $as_echo "$PKG_CONFIG" >&6; }
8683 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8684 $as_echo "no" >&6; }
8689 if test "$PKG_CONFIG" = "no" ; then
8692 PKG_CONFIG_MIN_VERSION
=0.9.0
8693 if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
8694 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $IMAGEMAGICK_MODULE" >&5
8695 $as_echo_n "checking for $IMAGEMAGICK_MODULE... " >&6; }
8697 if $PKG_CONFIG --exists "$IMAGEMAGICK_MODULE" 2>&5; then
8698 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
8699 $as_echo "yes" >&6; }
8702 { $as_echo "$as_me:${as_lineno-$LINENO}: checking IMAGEMAGICK_CFLAGS" >&5
8703 $as_echo_n "checking IMAGEMAGICK_CFLAGS... " >&6; }
8704 IMAGEMAGICK_CFLAGS
=`$PKG_CONFIG --cflags "$IMAGEMAGICK_MODULE"|sed -e 's,///*,/,g'`
8705 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $IMAGEMAGICK_CFLAGS" >&5
8706 $as_echo "$IMAGEMAGICK_CFLAGS" >&6; }
8708 { $as_echo "$as_me:${as_lineno-$LINENO}: checking IMAGEMAGICK_LIBS" >&5
8709 $as_echo_n "checking IMAGEMAGICK_LIBS... " >&6; }
8710 IMAGEMAGICK_LIBS
=`$PKG_CONFIG --libs "$IMAGEMAGICK_MODULE"|sed -e 's,///*,/,g'`
8711 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $IMAGEMAGICK_LIBS" >&5
8712 $as_echo "$IMAGEMAGICK_LIBS" >&6; }
8714 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8715 $as_echo "no" >&6; }
8716 IMAGEMAGICK_CFLAGS
=""
8718 ## If we have a custom action on failure, don't print errors, but
8719 ## do set a variable so people can do so.
8720 IMAGEMAGICK_PKG_ERRORS
=`$PKG_CONFIG --errors-to-stdout --print-errors "$IMAGEMAGICK_MODULE"`
8727 echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
8728 echo "*** See http://www.freedesktop.org/software/pkgconfig"
8732 if test $succeeded = yes; then
8733 HAVE_IMAGEMAGICK
=yes
8741 if test $HAVE_IMAGEMAGICK = yes; then
8743 $as_echo "#define HAVE_IMAGEMAGICK 1" >>confdefs.h
8745 CFLAGS
="$CFLAGS $IMAGEMAGICK_CFLAGS"
8746 LIBS
="$IMAGEMAGICK_LIBS $LIBS"
8747 for ac_func
in MagickExportImagePixels
8749 ac_fn_c_check_func
"$LINENO" "MagickExportImagePixels" "ac_cv_func_MagickExportImagePixels"
8750 if test "x$ac_cv_func_MagickExportImagePixels" = x
""yes; then :
8751 cat >>confdefs.h
<<_ACEOF
8752 #define HAVE_MAGICKEXPORTIMAGEPIXELS 1
8763 if test "${with_gtk3}" = "yes"; then
8766 GTK_MODULES
="gtk+-3.0 >= $GTK_REQUIRED glib-2.0 >= $GLIB_REQUIRED"
8771 # Extract the first word of "pkg-config", so it can be a program name with args.
8772 set dummy pkg-config
; ac_word
=$2
8773 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8774 $as_echo_n "checking for $ac_word... " >&6; }
8775 if test "${ac_cv_path_PKG_CONFIG+set}" = set; then :
8776 $as_echo_n "(cached) " >&6
8780 ac_cv_path_PKG_CONFIG
="$PKG_CONFIG" # Let the user override the test with a path.
8783 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
8787 test -z "$as_dir" && as_dir
=.
8788 for ac_exec_ext
in '' $ac_executable_extensions; do
8789 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8790 ac_cv_path_PKG_CONFIG
="$as_dir/$ac_word$ac_exec_ext"
8791 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8798 test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG
="no"
8802 PKG_CONFIG
=$ac_cv_path_PKG_CONFIG
8803 if test -n "$PKG_CONFIG"; then
8804 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5
8805 $as_echo "$PKG_CONFIG" >&6; }
8807 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8808 $as_echo "no" >&6; }
8813 if test "$PKG_CONFIG" = "no" ; then
8816 PKG_CONFIG_MIN_VERSION
=0.9.0
8817 if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
8818 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $GTK_MODULES" >&5
8819 $as_echo_n "checking for $GTK_MODULES... " >&6; }
8821 if $PKG_CONFIG --exists "$GTK_MODULES" 2>&5; then
8822 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
8823 $as_echo "yes" >&6; }
8826 { $as_echo "$as_me:${as_lineno-$LINENO}: checking GTK_CFLAGS" >&5
8827 $as_echo_n "checking GTK_CFLAGS... " >&6; }
8828 GTK_CFLAGS
=`$PKG_CONFIG --cflags "$GTK_MODULES"|sed -e 's,///*,/,g'`
8829 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GTK_CFLAGS" >&5
8830 $as_echo "$GTK_CFLAGS" >&6; }
8832 { $as_echo "$as_me:${as_lineno-$LINENO}: checking GTK_LIBS" >&5
8833 $as_echo_n "checking GTK_LIBS... " >&6; }
8834 GTK_LIBS
=`$PKG_CONFIG --libs "$GTK_MODULES"|sed -e 's,///*,/,g'`
8835 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GTK_LIBS" >&5
8836 $as_echo "$GTK_LIBS" >&6; }
8838 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8839 $as_echo "no" >&6; }
8842 ## If we have a custom action on failure, don't print errors, but
8843 ## do set a variable so people can do so.
8844 GTK_PKG_ERRORS
=`$PKG_CONFIG --errors-to-stdout --print-errors "$GTK_MODULES"`
8851 echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
8852 echo "*** See http://www.freedesktop.org/software/pkgconfig"
8856 if test $succeeded = yes; then
8862 if test "$pkg_check_gtk" = "no" && test "$USE_X_TOOLKIT" != "maybe"; then
8863 as_fn_error
"$GTK_PKG_ERRORS" "$LINENO" 5
8867 if test "$pkg_check_gtk" != "yes"; then
8869 if test "${with_gtk}" = "yes" ||
test "$USE_X_TOOLKIT" = "maybe"; then
8872 GTK_MODULES
="gtk+-2.0 >= $GTK_REQUIRED glib-2.0 >= $GLIB_REQUIRED"
8877 # Extract the first word of "pkg-config", so it can be a program name with args.
8878 set dummy pkg-config
; ac_word
=$2
8879 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8880 $as_echo_n "checking for $ac_word... " >&6; }
8881 if test "${ac_cv_path_PKG_CONFIG+set}" = set; then :
8882 $as_echo_n "(cached) " >&6
8886 ac_cv_path_PKG_CONFIG
="$PKG_CONFIG" # Let the user override the test with a path.
8889 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
8893 test -z "$as_dir" && as_dir
=.
8894 for ac_exec_ext
in '' $ac_executable_extensions; do
8895 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8896 ac_cv_path_PKG_CONFIG
="$as_dir/$ac_word$ac_exec_ext"
8897 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8904 test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG
="no"
8908 PKG_CONFIG
=$ac_cv_path_PKG_CONFIG
8909 if test -n "$PKG_CONFIG"; then
8910 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5
8911 $as_echo "$PKG_CONFIG" >&6; }
8913 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8914 $as_echo "no" >&6; }
8919 if test "$PKG_CONFIG" = "no" ; then
8922 PKG_CONFIG_MIN_VERSION
=0.9.0
8923 if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
8924 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $GTK_MODULES" >&5
8925 $as_echo_n "checking for $GTK_MODULES... " >&6; }
8927 if $PKG_CONFIG --exists "$GTK_MODULES" 2>&5; then
8928 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
8929 $as_echo "yes" >&6; }
8932 { $as_echo "$as_me:${as_lineno-$LINENO}: checking GTK_CFLAGS" >&5
8933 $as_echo_n "checking GTK_CFLAGS... " >&6; }
8934 GTK_CFLAGS
=`$PKG_CONFIG --cflags "$GTK_MODULES"|sed -e 's,///*,/,g'`
8935 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GTK_CFLAGS" >&5
8936 $as_echo "$GTK_CFLAGS" >&6; }
8938 { $as_echo "$as_me:${as_lineno-$LINENO}: checking GTK_LIBS" >&5
8939 $as_echo_n "checking GTK_LIBS... " >&6; }
8940 GTK_LIBS
=`$PKG_CONFIG --libs "$GTK_MODULES"|sed -e 's,///*,/,g'`
8941 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GTK_LIBS" >&5
8942 $as_echo "$GTK_LIBS" >&6; }
8944 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8945 $as_echo "no" >&6; }
8948 ## If we have a custom action on failure, don't print errors, but
8949 ## do set a variable so people can do so.
8950 GTK_PKG_ERRORS
=`$PKG_CONFIG --errors-to-stdout --print-errors "$GTK_MODULES"`
8957 echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
8958 echo "*** See http://www.freedesktop.org/software/pkgconfig"
8962 if test $succeeded = yes; then
8968 if test "$pkg_check_gtk" = "no" && test "$USE_X_TOOLKIT" != "maybe"; then
8969 as_fn_error
"$GTK_PKG_ERRORS" "$LINENO" 5
8975 if test x
"$pkg_check_gtk" = xyes
; then
8979 C_SWITCH_X_SITE
="$C_SWITCH_X_SITE $GTK_CFLAGS"
8980 CFLAGS
="$CFLAGS $GTK_CFLAGS"
8981 LIBS
="$GTK_LIBS $LIBS"
8983 for ac_func
in gtk_main
8985 ac_fn_c_check_func
"$LINENO" "gtk_main" "ac_cv_func_gtk_main"
8986 if test "x$ac_cv_func_gtk_main" = x
""yes; then :
8987 cat >>confdefs.h
<<_ACEOF
8988 #define HAVE_GTK_MAIN 1
8994 if test "${GTK_COMPILES}" != "yes"; then
8995 if test "$USE_X_TOOLKIT" != "maybe"; then
8996 as_fn_error
"Gtk+ wanted, but it does not compile, see config.log. Maybe some x11-devel files missing?" "$LINENO" 5;
9001 $as_echo "#define USE_GTK 1" >>confdefs.h
9005 if $PKG_CONFIG --atleast-version=2.10 gtk
+-2.0
; then
9008 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Your version of Gtk+ will have problems with
9009 closing open displays. This is no problem if you just use
9010 one display, but if you use more than one and close one of them
9011 Emacs may crash." >&5
9012 $as_echo "$as_me: WARNING: Your version of Gtk+ will have problems with
9013 closing open displays. This is no problem if you just use
9014 one display, but if you use more than one and close one of them
9015 Emacs may crash." >&2;}
9024 if test "${HAVE_GTK}" = "yes"; then
9026 if test "$with_toolkit_scroll_bars" != no
; then
9027 with_toolkit_scroll_bars
=yes
9030 HAVE_GTK_FILE_SELECTION
=no
9031 ac_fn_c_check_decl
"$LINENO" "GTK_TYPE_FILE_SELECTION" "ac_cv_have_decl_GTK_TYPE_FILE_SELECTION" "$ac_includes_default
9032 #include <gtk/gtk.h>
9034 if test "x$ac_cv_have_decl_GTK_TYPE_FILE_SELECTION" = x
""yes; then :
9035 HAVE_GTK_FILE_SELECTION
=yes
9037 HAVE_GTK_FILE_SELECTION
=no
9040 if test "$HAVE_GTK_FILE_SELECTION" = yes; then
9041 for ac_func
in gtk_file_selection_new
9043 ac_fn_c_check_func
"$LINENO" "gtk_file_selection_new" "ac_cv_func_gtk_file_selection_new"
9044 if test "x$ac_cv_func_gtk_file_selection_new" = x
""yes; then :
9045 cat >>confdefs.h
<<_ACEOF
9046 #define HAVE_GTK_FILE_SELECTION_NEW 1
9054 HAVE_GTK_AND_PTHREAD
=no
9055 for ac_header
in pthread.h
9057 ac_fn_c_check_header_mongrel
"$LINENO" "pthread.h" "ac_cv_header_pthread_h" "$ac_includes_default"
9058 if test "x$ac_cv_header_pthread_h" = x
""yes; then :
9059 cat >>confdefs.h
<<_ACEOF
9060 #define HAVE_PTHREAD_H 1
9067 if test "$ac_cv_header_pthread_h"; then
9068 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pthread_self in -lpthread" >&5
9069 $as_echo_n "checking for pthread_self in -lpthread... " >&6; }
9070 if test "${ac_cv_lib_pthread_pthread_self+set}" = set; then :
9071 $as_echo_n "(cached) " >&6
9073 ac_check_lib_save_LIBS
=$LIBS
9074 LIBS
="-lpthread $LIBS"
9075 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
9076 /* end confdefs.h. */
9078 /* Override any GCC internal prototype to avoid an error.
9079 Use char because int might match the return type of a GCC
9080 builtin and then its argument prototype would still apply. */
9084 char pthread_self ();
9088 return pthread_self ();
9093 if ac_fn_c_try_link
"$LINENO"; then :
9094 ac_cv_lib_pthread_pthread_self
=yes
9096 ac_cv_lib_pthread_pthread_self
=no
9098 rm -f core conftest.err conftest.
$ac_objext \
9099 conftest
$ac_exeext conftest.
$ac_ext
9100 LIBS
=$ac_check_lib_save_LIBS
9102 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_pthread_pthread_self" >&5
9103 $as_echo "$ac_cv_lib_pthread_pthread_self" >&6; }
9104 if test "x$ac_cv_lib_pthread_pthread_self" = x
""yes; then :
9105 HAVE_GTK_AND_PTHREAD
=yes
9109 if test "$HAVE_GTK_AND_PTHREAD" = yes; then
9110 case "${canonical}" in
9112 *) GTK_LIBS
="$GTK_LIBS -lpthread" ;;
9115 $as_echo "#define HAVE_GTK_AND_PTHREAD 1" >>confdefs.h
9119 for ac_func
in gtk_widget_get_window gtk_widget_set_has_window \
9120 gtk_dialog_get_action_area gtk_widget_get_sensitive \
9121 gtk_widget_get_mapped gtk_adjustment_get_page_size \
9122 gtk_orientable_set_orientation
9124 as_ac_var
=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
9125 ac_fn_c_check_func
"$LINENO" "$ac_func" "$as_ac_var"
9126 eval as_val
=\$
$as_ac_var
9127 if test "x$as_val" = x
""yes; then :
9128 cat >>confdefs.h
<<_ACEOF
9129 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
9140 if test "${with_dbus}" = "yes"; then
9144 # Extract the first word of "pkg-config", so it can be a program name with args.
9145 set dummy pkg-config
; ac_word
=$2
9146 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9147 $as_echo_n "checking for $ac_word... " >&6; }
9148 if test "${ac_cv_path_PKG_CONFIG+set}" = set; then :
9149 $as_echo_n "(cached) " >&6
9153 ac_cv_path_PKG_CONFIG
="$PKG_CONFIG" # Let the user override the test with a path.
9156 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
9160 test -z "$as_dir" && as_dir
=.
9161 for ac_exec_ext
in '' $ac_executable_extensions; do
9162 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9163 ac_cv_path_PKG_CONFIG
="$as_dir/$ac_word$ac_exec_ext"
9164 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9171 test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG
="no"
9175 PKG_CONFIG
=$ac_cv_path_PKG_CONFIG
9176 if test -n "$PKG_CONFIG"; then
9177 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5
9178 $as_echo "$PKG_CONFIG" >&6; }
9180 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9181 $as_echo "no" >&6; }
9186 if test "$PKG_CONFIG" = "no" ; then
9189 PKG_CONFIG_MIN_VERSION
=0.9.0
9190 if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
9191 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dbus-1 >= 1.0" >&5
9192 $as_echo_n "checking for dbus-1 >= 1.0... " >&6; }
9194 if $PKG_CONFIG --exists "dbus-1 >= 1.0" 2>&5; then
9195 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
9196 $as_echo "yes" >&6; }
9199 { $as_echo "$as_me:${as_lineno-$LINENO}: checking DBUS_CFLAGS" >&5
9200 $as_echo_n "checking DBUS_CFLAGS... " >&6; }
9201 DBUS_CFLAGS
=`$PKG_CONFIG --cflags "dbus-1 >= 1.0"|sed -e 's,///*,/,g'`
9202 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DBUS_CFLAGS" >&5
9203 $as_echo "$DBUS_CFLAGS" >&6; }
9205 { $as_echo "$as_me:${as_lineno-$LINENO}: checking DBUS_LIBS" >&5
9206 $as_echo_n "checking DBUS_LIBS... " >&6; }
9207 DBUS_LIBS
=`$PKG_CONFIG --libs "dbus-1 >= 1.0"|sed -e 's,///*,/,g'`
9208 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DBUS_LIBS" >&5
9209 $as_echo "$DBUS_LIBS" >&6; }
9211 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9212 $as_echo "no" >&6; }
9215 ## If we have a custom action on failure, don't print errors, but
9216 ## do set a variable so people can do so.
9217 DBUS_PKG_ERRORS
=`$PKG_CONFIG --errors-to-stdout --print-errors "dbus-1 >= 1.0"`
9224 echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
9225 echo "*** See http://www.freedesktop.org/software/pkgconfig"
9229 if test $succeeded = yes; then
9235 if test "$HAVE_DBUS" = yes; then
9236 LIBS
="$LIBS $DBUS_LIBS"
9238 $as_echo "#define HAVE_DBUS 1" >>confdefs.h
9240 for ac_func
in dbus_watch_get_unix_fd
9242 ac_fn_c_check_func
"$LINENO" "dbus_watch_get_unix_fd" "ac_cv_func_dbus_watch_get_unix_fd"
9243 if test "x$ac_cv_func_dbus_watch_get_unix_fd" = x
""yes; then :
9244 cat >>confdefs.h
<<_ACEOF
9245 #define HAVE_DBUS_WATCH_GET_UNIX_FD 1
9257 if test "${HAVE_X11}" = "yes" && test "${with_gconf}" = "yes"; then
9261 # Extract the first word of "pkg-config", so it can be a program name with args.
9262 set dummy pkg-config
; ac_word
=$2
9263 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9264 $as_echo_n "checking for $ac_word... " >&6; }
9265 if test "${ac_cv_path_PKG_CONFIG+set}" = set; then :
9266 $as_echo_n "(cached) " >&6
9270 ac_cv_path_PKG_CONFIG
="$PKG_CONFIG" # Let the user override the test with a path.
9273 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
9277 test -z "$as_dir" && as_dir
=.
9278 for ac_exec_ext
in '' $ac_executable_extensions; do
9279 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9280 ac_cv_path_PKG_CONFIG
="$as_dir/$ac_word$ac_exec_ext"
9281 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9288 test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG
="no"
9292 PKG_CONFIG
=$ac_cv_path_PKG_CONFIG
9293 if test -n "$PKG_CONFIG"; then
9294 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5
9295 $as_echo "$PKG_CONFIG" >&6; }
9297 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9298 $as_echo "no" >&6; }
9303 if test "$PKG_CONFIG" = "no" ; then
9306 PKG_CONFIG_MIN_VERSION
=0.9.0
9307 if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
9308 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gconf-2.0 >= 2.13" >&5
9309 $as_echo_n "checking for gconf-2.0 >= 2.13... " >&6; }
9311 if $PKG_CONFIG --exists "gconf-2.0 >= 2.13" 2>&5; then
9312 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
9313 $as_echo "yes" >&6; }
9316 { $as_echo "$as_me:${as_lineno-$LINENO}: checking GCONF_CFLAGS" >&5
9317 $as_echo_n "checking GCONF_CFLAGS... " >&6; }
9318 GCONF_CFLAGS
=`$PKG_CONFIG --cflags "gconf-2.0 >= 2.13"|sed -e 's,///*,/,g'`
9319 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GCONF_CFLAGS" >&5
9320 $as_echo "$GCONF_CFLAGS" >&6; }
9322 { $as_echo "$as_me:${as_lineno-$LINENO}: checking GCONF_LIBS" >&5
9323 $as_echo_n "checking GCONF_LIBS... " >&6; }
9324 GCONF_LIBS
=`$PKG_CONFIG --libs "gconf-2.0 >= 2.13"|sed -e 's,///*,/,g'`
9325 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GCONF_LIBS" >&5
9326 $as_echo "$GCONF_LIBS" >&6; }
9328 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9329 $as_echo "no" >&6; }
9332 ## If we have a custom action on failure, don't print errors, but
9333 ## do set a variable so people can do so.
9334 GCONF_PKG_ERRORS
=`$PKG_CONFIG --errors-to-stdout --print-errors "gconf-2.0 >= 2.13"`
9341 echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
9342 echo "*** See http://www.freedesktop.org/software/pkgconfig"
9346 if test $succeeded = yes; then
9352 if test "$HAVE_GCONF" = yes; then
9354 $as_echo "#define HAVE_GCONF 1" >>confdefs.h
9361 if test "${with_selinux}" = "yes"; then
9362 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for lgetfilecon in -lselinux" >&5
9363 $as_echo_n "checking for lgetfilecon in -lselinux... " >&6; }
9364 if test "${ac_cv_lib_selinux_lgetfilecon+set}" = set; then :
9365 $as_echo_n "(cached) " >&6
9367 ac_check_lib_save_LIBS
=$LIBS
9368 LIBS
="-lselinux $LIBS"
9369 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
9370 /* end confdefs.h. */
9372 /* Override any GCC internal prototype to avoid an error.
9373 Use char because int might match the return type of a GCC
9374 builtin and then its argument prototype would still apply. */
9378 char lgetfilecon ();
9382 return lgetfilecon ();
9387 if ac_fn_c_try_link
"$LINENO"; then :
9388 ac_cv_lib_selinux_lgetfilecon
=yes
9390 ac_cv_lib_selinux_lgetfilecon
=no
9392 rm -f core conftest.err conftest.
$ac_objext \
9393 conftest
$ac_exeext conftest.
$ac_ext
9394 LIBS
=$ac_check_lib_save_LIBS
9396 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_selinux_lgetfilecon" >&5
9397 $as_echo "$ac_cv_lib_selinux_lgetfilecon" >&6; }
9398 if test "x$ac_cv_lib_selinux_lgetfilecon" = x
""yes; then :
9404 if test "$HAVE_LIBSELINUX" = yes; then
9406 $as_echo "#define HAVE_LIBSELINUX 1" >>confdefs.h
9408 LIBSELINUX_LIBS
=-lselinux
9414 if test "${with_gnutls}" = "yes" ; then
9418 # Extract the first word of "pkg-config", so it can be a program name with args.
9419 set dummy pkg-config
; ac_word
=$2
9420 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9421 $as_echo_n "checking for $ac_word... " >&6; }
9422 if test "${ac_cv_path_PKG_CONFIG+set}" = set; then :
9423 $as_echo_n "(cached) " >&6
9427 ac_cv_path_PKG_CONFIG
="$PKG_CONFIG" # Let the user override the test with a path.
9430 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
9434 test -z "$as_dir" && as_dir
=.
9435 for ac_exec_ext
in '' $ac_executable_extensions; do
9436 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9437 ac_cv_path_PKG_CONFIG
="$as_dir/$ac_word$ac_exec_ext"
9438 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9445 test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG
="no"
9449 PKG_CONFIG
=$ac_cv_path_PKG_CONFIG
9450 if test -n "$PKG_CONFIG"; then
9451 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5
9452 $as_echo "$PKG_CONFIG" >&6; }
9454 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9455 $as_echo "no" >&6; }
9460 if test "$PKG_CONFIG" = "no" ; then
9463 PKG_CONFIG_MIN_VERSION
=0.9.0
9464 if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
9465 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gnutls >= 2.2.4" >&5
9466 $as_echo_n "checking for gnutls >= 2.2.4... " >&6; }
9468 if $PKG_CONFIG --exists "gnutls >= 2.2.4" 2>&5; then
9469 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
9470 $as_echo "yes" >&6; }
9473 { $as_echo "$as_me:${as_lineno-$LINENO}: checking LIBGNUTLS_CFLAGS" >&5
9474 $as_echo_n "checking LIBGNUTLS_CFLAGS... " >&6; }
9475 LIBGNUTLS_CFLAGS
=`$PKG_CONFIG --cflags "gnutls >= 2.2.4"|sed -e 's,///*,/,g'`
9476 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIBGNUTLS_CFLAGS" >&5
9477 $as_echo "$LIBGNUTLS_CFLAGS" >&6; }
9479 { $as_echo "$as_me:${as_lineno-$LINENO}: checking LIBGNUTLS_LIBS" >&5
9480 $as_echo_n "checking LIBGNUTLS_LIBS... " >&6; }
9481 LIBGNUTLS_LIBS
=`$PKG_CONFIG --libs "gnutls >= 2.2.4"|sed -e 's,///*,/,g'`
9482 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIBGNUTLS_LIBS" >&5
9483 $as_echo "$LIBGNUTLS_LIBS" >&6; }
9485 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9486 $as_echo "no" >&6; }
9489 ## If we have a custom action on failure, don't print errors, but
9490 ## do set a variable so people can do so.
9491 LIBGNUTLS_PKG_ERRORS
=`$PKG_CONFIG --errors-to-stdout --print-errors "gnutls >= 2.2.4"`
9498 echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
9499 echo "*** See http://www.freedesktop.org/software/pkgconfig"
9503 if test $succeeded = yes; then
9509 if test "${HAVE_GNUTLS}" = "yes"; then
9510 $as_echo "#define HAVE_GNUTLS 1" >>confdefs.h
9519 if test x
"${USE_X_TOOLKIT}" = xmaybe ||
test x
"${USE_X_TOOLKIT}" = xLUCID
; then
9520 if test "$with_xaw3d" != no
; then
9521 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for xaw3d" >&5
9522 $as_echo_n "checking for xaw3d... " >&6; }
9523 if test "${emacs_cv_xaw3d+set}" = set; then :
9524 $as_echo_n "(cached) " >&6
9526 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
9527 /* end confdefs.h. */
9529 #include <X11/Intrinsic.h>
9530 #include <X11/Xaw3d/Simple.h>
9539 if ac_fn_c_try_link
"$LINENO"; then :
9544 rm -f core conftest.err conftest.
$ac_objext \
9545 conftest
$ac_exeext conftest.
$ac_ext
9551 if test $emacs_cv_xaw3d = yes; then
9552 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes; using Lucid toolkit" >&5
9553 $as_echo "yes; using Lucid toolkit" >&6; }
9558 $as_echo "#define HAVE_XAW3D 1" >>confdefs.h
9561 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9562 $as_echo "no" >&6; }
9563 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libXaw" >&5
9564 $as_echo_n "checking for libXaw... " >&6; }
9565 if test "${emacs_cv_xaw+set}" = set; then :
9566 $as_echo_n "(cached) " >&6
9568 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
9569 /* end confdefs.h. */
9571 #include <X11/Intrinsic.h>
9572 #include <X11/Xaw/Simple.h>
9581 if ac_fn_c_try_link
"$LINENO"; then :
9586 rm -f core conftest.err conftest.
$ac_objext \
9587 conftest
$ac_exeext conftest.
$ac_ext
9590 if test $emacs_cv_xaw = yes; then
9591 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes; using Lucid toolkit" >&5
9592 $as_echo "yes; using Lucid toolkit" >&6; }
9595 elif test x
"${USE_X_TOOLKIT}" = xLUCID
; then
9596 as_fn_error
"Lucid toolkit requires X11/Xaw include files" "$LINENO" 5
9598 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no; do not use toolkit by default" >&5
9599 $as_echo "no; do not use toolkit by default" >&6; }
9605 X_TOOLKIT_TYPE
=$USE_X_TOOLKIT
9608 if test "${USE_X_TOOLKIT}" != "none"; then
9609 { $as_echo "$as_me:${as_lineno-$LINENO}: checking X11 toolkit version" >&5
9610 $as_echo_n "checking X11 toolkit version... " >&6; }
9611 if test "${emacs_cv_x11_toolkit_version_6+set}" = set; then :
9612 $as_echo_n "(cached) " >&6
9614 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
9615 /* end confdefs.h. */
9616 #include <X11/Intrinsic.h>
9620 #if XtSpecificationRelease < 6
9628 if ac_fn_c_try_link
"$LINENO"; then :
9629 emacs_cv_x11_toolkit_version_6
=yes
9631 emacs_cv_x11_toolkit_version_6
=no
9633 rm -f core conftest.err conftest.
$ac_objext \
9634 conftest
$ac_exeext conftest.
$ac_ext
9637 HAVE_X11XTR6
=$emacs_cv_x11_toolkit_version_6
9638 if test $emacs_cv_x11_toolkit_version_6 = yes; then
9639 { $as_echo "$as_me:${as_lineno-$LINENO}: result: 6 or newer" >&5
9640 $as_echo "6 or newer" >&6; }
9642 $as_echo "#define HAVE_X11XTR6 1" >>confdefs.h
9644 LIBXTR6
="-lSM -lICE"
9646 ## Use libw.a along with X11R6 Xt.
9647 unixware
) LIBXTR6
="$LIBXTR6 -lw" ;;
9650 { $as_echo "$as_me:${as_lineno-$LINENO}: result: before 6" >&5
9651 $as_echo "before 6" >&6; }
9655 if test x
$HAVE_X11XTR6 = xyes
; then
9656 LIBS
="-lXt -lSM -lICE $LIBS"
9660 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for XmuConvertStandardSelection in -lXmu" >&5
9661 $as_echo_n "checking for XmuConvertStandardSelection in -lXmu... " >&6; }
9662 if test "${ac_cv_lib_Xmu_XmuConvertStandardSelection+set}" = set; then :
9663 $as_echo_n "(cached) " >&6
9665 ac_check_lib_save_LIBS
=$LIBS
9667 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
9668 /* end confdefs.h. */
9670 /* Override any GCC internal prototype to avoid an error.
9671 Use char because int might match the return type of a GCC
9672 builtin and then its argument prototype would still apply. */
9676 char XmuConvertStandardSelection ();
9680 return XmuConvertStandardSelection ();
9685 if ac_fn_c_try_link
"$LINENO"; then :
9686 ac_cv_lib_Xmu_XmuConvertStandardSelection
=yes
9688 ac_cv_lib_Xmu_XmuConvertStandardSelection
=no
9690 rm -f core conftest.err conftest.
$ac_objext \
9691 conftest
$ac_exeext conftest.
$ac_ext
9692 LIBS
=$ac_check_lib_save_LIBS
9694 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_Xmu_XmuConvertStandardSelection" >&5
9695 $as_echo "$ac_cv_lib_Xmu_XmuConvertStandardSelection" >&6; }
9696 if test "x$ac_cv_lib_Xmu_XmuConvertStandardSelection" = x
""yes; then :
9697 cat >>confdefs.h
<<_ACEOF
9698 #define HAVE_LIBXMU 1
9705 test $ac_cv_lib_Xmu_XmuConvertStandardSelection = no
&& LIBS
="$OLDLIBS"
9711 ## These machines don't supply Xmu.
9713 test "X$ac_cv_lib_Xmu_XmuConvertStandardSelection" != "Xyes" && LIBXMU
=
9718 # On Irix 6.5, at least, we need XShapeQueryExtension from -lXext for Xaw3D.
9719 if test "${HAVE_X11}" = "yes"; then
9720 if test "${USE_X_TOOLKIT}" != "none"; then
9721 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for XShapeQueryExtension in -lXext" >&5
9722 $as_echo_n "checking for XShapeQueryExtension in -lXext... " >&6; }
9723 if test "${ac_cv_lib_Xext_XShapeQueryExtension+set}" = set; then :
9724 $as_echo_n "(cached) " >&6
9726 ac_check_lib_save_LIBS
=$LIBS
9728 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
9729 /* end confdefs.h. */
9731 /* Override any GCC internal prototype to avoid an error.
9732 Use char because int might match the return type of a GCC
9733 builtin and then its argument prototype would still apply. */
9737 char XShapeQueryExtension ();
9741 return XShapeQueryExtension ();
9746 if ac_fn_c_try_link
"$LINENO"; then :
9747 ac_cv_lib_Xext_XShapeQueryExtension
=yes
9749 ac_cv_lib_Xext_XShapeQueryExtension
=no
9751 rm -f core conftest.err conftest.
$ac_objext \
9752 conftest
$ac_exeext conftest.
$ac_ext
9753 LIBS
=$ac_check_lib_save_LIBS
9755 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_Xext_XShapeQueryExtension" >&5
9756 $as_echo "$ac_cv_lib_Xext_XShapeQueryExtension" >&6; }
9757 if test "x$ac_cv_lib_Xext_XShapeQueryExtension" = x
""yes; then :
9758 cat >>confdefs.h
<<_ACEOF
9759 #define HAVE_LIBXEXT 1
9770 if test "${USE_X_TOOLKIT}" = "MOTIF"; then
9771 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Motif version 2.1" >&5
9772 $as_echo_n "checking for Motif version 2.1... " >&6; }
9773 if test "${emacs_cv_motif_version_2_1+set}" = set; then :
9774 $as_echo_n "(cached) " >&6
9776 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
9777 /* end confdefs.h. */
9782 #if XmVERSION > 2 || (XmVERSION == 2 && XmREVISION >= 1)
9785 Motif version prior to 2.1.
9791 if ac_fn_c_try_compile
"$LINENO"; then :
9792 emacs_cv_motif_version_2_1
=yes
9794 emacs_cv_motif_version_2_1
=no
9796 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
9798 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $emacs_cv_motif_version_2_1" >&5
9799 $as_echo "$emacs_cv_motif_version_2_1" >&6; }
9800 if test $emacs_cv_motif_version_2_1 = yes; then
9801 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for XpCreateContext in -lXp" >&5
9802 $as_echo_n "checking for XpCreateContext in -lXp... " >&6; }
9803 if test "${ac_cv_lib_Xp_XpCreateContext+set}" = set; then :
9804 $as_echo_n "(cached) " >&6
9806 ac_check_lib_save_LIBS
=$LIBS
9808 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
9809 /* end confdefs.h. */
9811 /* Override any GCC internal prototype to avoid an error.
9812 Use char because int might match the return type of a GCC
9813 builtin and then its argument prototype would still apply. */
9817 char XpCreateContext ();
9821 return XpCreateContext ();
9826 if ac_fn_c_try_link
"$LINENO"; then :
9827 ac_cv_lib_Xp_XpCreateContext
=yes
9829 ac_cv_lib_Xp_XpCreateContext
=no
9831 rm -f core conftest.err conftest.
$ac_objext \
9832 conftest
$ac_exeext conftest.
$ac_ext
9833 LIBS
=$ac_check_lib_save_LIBS
9835 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_Xp_XpCreateContext" >&5
9836 $as_echo "$ac_cv_lib_Xp_XpCreateContext" >&6; }
9837 if test "x$ac_cv_lib_Xp_XpCreateContext" = x
""yes; then :
9842 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for LessTif where some systems put it" >&5
9843 $as_echo_n "checking for LessTif where some systems put it... " >&6; }
9844 if test "${emacs_cv_lesstif+set}" = set; then :
9845 $as_echo_n "(cached) " >&6
9847 # We put this in CFLAGS temporarily to precede other -I options
9848 # that might be in CFLAGS temporarily.
9849 # We put this in CPPFLAGS where it precedes the other -I options.
9850 OLD_CPPFLAGS
=$CPPFLAGS
9852 CPPFLAGS
="-I/usr/X11R6/LessTif/Motif1.2/include $CPPFLAGS"
9853 CFLAGS
="-I/usr/X11R6/LessTif/Motif1.2/include $CFLAGS"
9854 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
9855 /* end confdefs.h. */
9856 #include </usr/X11R6/LessTif/Motif1.2/include/Xm/Xm.h>
9865 if ac_fn_c_try_compile
"$LINENO"; then :
9866 emacs_cv_lesstif
=yes
9870 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
9872 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $emacs_cv_lesstif" >&5
9873 $as_echo "$emacs_cv_lesstif" >&6; }
9874 if test $emacs_cv_lesstif = yes; then
9875 # Make sure this -I option remains in CPPFLAGS after it is set
9876 # back to REAL_CPPFLAGS.
9877 # There is no need to change REAL_CFLAGS, because REAL_CFLAGS does not
9878 # have those other -I options anyway. Ultimately, having this
9879 # directory ultimately in CPPFLAGS will be enough.
9880 REAL_CPPFLAGS
="-I/usr/X11R6/LessTif/Motif1.2/include $REAL_CPPFLAGS"
9881 LDFLAGS
="-L/usr/X11R6/LessTif/Motif1.2/lib $LDFLAGS"
9884 CPPFLAGS
=$OLD_CPPFLAGS
9890 USE_TOOLKIT_SCROLL_BARS
=no
9891 if test "${with_toolkit_scroll_bars}" != "no"; then
9892 if test "${USE_X_TOOLKIT}" != "none"; then
9893 if test "${USE_X_TOOLKIT}" = "MOTIF"; then
9894 $as_echo "#define USE_TOOLKIT_SCROLL_BARS 1" >>confdefs.h
9897 USE_TOOLKIT_SCROLL_BARS
=yes
9898 elif test "${HAVE_XAW3D}" = "yes"; then
9899 $as_echo "#define USE_TOOLKIT_SCROLL_BARS 1" >>confdefs.h
9901 USE_TOOLKIT_SCROLL_BARS
=yes
9903 elif test "${HAVE_GTK}" = "yes"; then
9904 $as_echo "#define USE_TOOLKIT_SCROLL_BARS 1" >>confdefs.h
9906 USE_TOOLKIT_SCROLL_BARS
=yes
9907 elif test "${HAVE_NS}" = "yes"; then
9908 $as_echo "#define USE_TOOLKIT_SCROLL_BARS 1" >>confdefs.h
9910 USE_TOOLKIT_SCROLL_BARS
=yes
9914 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
9915 /* end confdefs.h. */
9917 #include <X11/Xlib.h>
9918 #include <X11/Xresource.h>
9927 if ac_fn_c_try_compile
"$LINENO"; then :
9930 $as_echo "#define HAVE_XIM 1" >>confdefs.h
9935 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
9938 if test "${with_xim}" != "no"; then
9940 $as_echo "#define USE_XIM 1" >>confdefs.h
9945 if test "${HAVE_XIM}" != "no"; then
9947 if test "$GCC" = yes; then
9948 CFLAGS
="$CFLAGS --pedantic-errors"
9950 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
9951 /* end confdefs.h. */
9953 #include <X11/Xlib.h>
9954 #include <X11/Xresource.h>
9963 XPointer *client_data;
9965 /* If we're not using GCC, it's probably not XFree86, and this is
9966 probably right, but we can't use something like --pedantic-errors. */
9967 extern Bool XRegisterIMInstantiateCallback(Display*, XrmDatabase, char*,
9968 char*, XIMProc, XPointer*);
9970 (void)XRegisterIMInstantiateCallback(display, db, res_name, res_class, callback,
9976 if ac_fn_c_try_compile
"$LINENO"; then :
9977 emacs_cv_arg6_star
=yes
9979 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
9980 if test "$emacs_cv_arg6_star" = yes; then
9981 $as_echo "#define XRegisterIMInstantiateCallback_arg6 XPointer*" >>confdefs.h
9984 $as_echo "#define XRegisterIMInstantiateCallback_arg6 XPointer" >>confdefs.h
9990 ### Start of font-backend (under any platform) section.
9991 # (nothing here yet -- this is a placeholder)
9992 ### End of font-backend (under any platform) section.
9994 ### Start of font-backend (under X11) section.
9995 if test "${HAVE_X11}" = "yes"; then
9999 # Extract the first word of "pkg-config", so it can be a program name with args.
10000 set dummy pkg-config
; ac_word
=$2
10001 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10002 $as_echo_n "checking for $ac_word... " >&6; }
10003 if test "${ac_cv_path_PKG_CONFIG+set}" = set; then :
10004 $as_echo_n "(cached) " >&6
10006 case $PKG_CONFIG in
10008 ac_cv_path_PKG_CONFIG
="$PKG_CONFIG" # Let the user override the test with a path.
10011 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
10012 for as_dir
in $PATH
10015 test -z "$as_dir" && as_dir
=.
10016 for ac_exec_ext
in '' $ac_executable_extensions; do
10017 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10018 ac_cv_path_PKG_CONFIG
="$as_dir/$ac_word$ac_exec_ext"
10019 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10026 test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG
="no"
10030 PKG_CONFIG
=$ac_cv_path_PKG_CONFIG
10031 if test -n "$PKG_CONFIG"; then
10032 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5
10033 $as_echo "$PKG_CONFIG" >&6; }
10035 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10036 $as_echo "no" >&6; }
10041 if test "$PKG_CONFIG" = "no" ; then
10044 PKG_CONFIG_MIN_VERSION
=0.9.0
10045 if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
10046 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for fontconfig >= 2.2.0" >&5
10047 $as_echo_n "checking for fontconfig >= 2.2.0... " >&6; }
10049 if $PKG_CONFIG --exists "fontconfig >= 2.2.0" 2>&5; then
10050 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
10051 $as_echo "yes" >&6; }
10054 { $as_echo "$as_me:${as_lineno-$LINENO}: checking FONTCONFIG_CFLAGS" >&5
10055 $as_echo_n "checking FONTCONFIG_CFLAGS... " >&6; }
10056 FONTCONFIG_CFLAGS
=`$PKG_CONFIG --cflags "fontconfig >= 2.2.0"|sed -e 's,///*,/,g'`
10057 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $FONTCONFIG_CFLAGS" >&5
10058 $as_echo "$FONTCONFIG_CFLAGS" >&6; }
10060 { $as_echo "$as_me:${as_lineno-$LINENO}: checking FONTCONFIG_LIBS" >&5
10061 $as_echo_n "checking FONTCONFIG_LIBS... " >&6; }
10062 FONTCONFIG_LIBS
=`$PKG_CONFIG --libs "fontconfig >= 2.2.0"|sed -e 's,///*,/,g'`
10063 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $FONTCONFIG_LIBS" >&5
10064 $as_echo "$FONTCONFIG_LIBS" >&6; }
10066 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10067 $as_echo "no" >&6; }
10068 FONTCONFIG_CFLAGS
=""
10070 ## If we have a custom action on failure, don't print errors, but
10071 ## do set a variable so people can do so.
10072 FONTCONFIG_PKG_ERRORS
=`$PKG_CONFIG --errors-to-stdout --print-errors "fontconfig >= 2.2.0"`
10079 echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
10080 echo "*** See http://www.freedesktop.org/software/pkgconfig"
10084 if test $succeeded = yes; then
10091 ## Use -lXft if available, unless `--with-xft=no'.
10093 if test "${HAVE_FC}" = "no" ||
test "x${with_x}" = "xno"; then
10096 if test "x${with_xft}" != "xno"; then
10101 # Extract the first word of "pkg-config", so it can be a program name with args.
10102 set dummy pkg-config
; ac_word
=$2
10103 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10104 $as_echo_n "checking for $ac_word... " >&6; }
10105 if test "${ac_cv_path_PKG_CONFIG+set}" = set; then :
10106 $as_echo_n "(cached) " >&6
10108 case $PKG_CONFIG in
10110 ac_cv_path_PKG_CONFIG
="$PKG_CONFIG" # Let the user override the test with a path.
10113 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
10114 for as_dir
in $PATH
10117 test -z "$as_dir" && as_dir
=.
10118 for ac_exec_ext
in '' $ac_executable_extensions; do
10119 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10120 ac_cv_path_PKG_CONFIG
="$as_dir/$ac_word$ac_exec_ext"
10121 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10128 test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG
="no"
10132 PKG_CONFIG
=$ac_cv_path_PKG_CONFIG
10133 if test -n "$PKG_CONFIG"; then
10134 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5
10135 $as_echo "$PKG_CONFIG" >&6; }
10137 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10138 $as_echo "no" >&6; }
10143 if test "$PKG_CONFIG" = "no" ; then
10146 PKG_CONFIG_MIN_VERSION
=0.9.0
10147 if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
10148 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for xft >= 0.13.0" >&5
10149 $as_echo_n "checking for xft >= 0.13.0... " >&6; }
10151 if $PKG_CONFIG --exists "xft >= 0.13.0" 2>&5; then
10152 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
10153 $as_echo "yes" >&6; }
10156 { $as_echo "$as_me:${as_lineno-$LINENO}: checking XFT_CFLAGS" >&5
10157 $as_echo_n "checking XFT_CFLAGS... " >&6; }
10158 XFT_CFLAGS
=`$PKG_CONFIG --cflags "xft >= 0.13.0"|sed -e 's,///*,/,g'`
10159 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $XFT_CFLAGS" >&5
10160 $as_echo "$XFT_CFLAGS" >&6; }
10162 { $as_echo "$as_me:${as_lineno-$LINENO}: checking XFT_LIBS" >&5
10163 $as_echo_n "checking XFT_LIBS... " >&6; }
10164 XFT_LIBS
=`$PKG_CONFIG --libs "xft >= 0.13.0"|sed -e 's,///*,/,g'`
10165 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $XFT_LIBS" >&5
10166 $as_echo "$XFT_LIBS" >&6; }
10168 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10169 $as_echo "no" >&6; }
10172 ## If we have a custom action on failure, don't print errors, but
10173 ## do set a variable so people can do so.
10174 XFT_PKG_ERRORS
=`$PKG_CONFIG --errors-to-stdout --print-errors "xft >= 0.13.0"`
10181 echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
10182 echo "*** See http://www.freedesktop.org/software/pkgconfig"
10186 if test $succeeded = yes; then
10192 ## Because xftfont.c uses XRenderQueryExtension, we also
10193 ## need to link to -lXrender.
10195 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for XRenderQueryExtension in -lXrender" >&5
10196 $as_echo_n "checking for XRenderQueryExtension in -lXrender... " >&6; }
10197 if test "${ac_cv_lib_Xrender_XRenderQueryExtension+set}" = set; then :
10198 $as_echo_n "(cached) " >&6
10200 ac_check_lib_save_LIBS
=$LIBS
10201 LIBS
="-lXrender $LIBS"
10202 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
10203 /* end confdefs.h. */
10205 /* Override any GCC internal prototype to avoid an error.
10206 Use char because int might match the return type of a GCC
10207 builtin and then its argument prototype would still apply. */
10211 char XRenderQueryExtension ();
10215 return XRenderQueryExtension ();
10220 if ac_fn_c_try_link
"$LINENO"; then :
10221 ac_cv_lib_Xrender_XRenderQueryExtension
=yes
10223 ac_cv_lib_Xrender_XRenderQueryExtension
=no
10225 rm -f core conftest.err conftest.
$ac_objext \
10226 conftest
$ac_exeext conftest.
$ac_ext
10227 LIBS
=$ac_check_lib_save_LIBS
10229 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_Xrender_XRenderQueryExtension" >&5
10230 $as_echo "$ac_cv_lib_Xrender_XRenderQueryExtension" >&6; }
10231 if test "x$ac_cv_lib_Xrender_XRenderQueryExtension" = x
""yes; then :
10235 if test "$HAVE_XFT" != no
&& test "$HAVE_XRENDER" != no
; then
10236 OLD_CPPFLAGS
="$CPPFLAGS"
10237 OLD_CFLAGS
="$CFLAGS"
10239 CPPFLAGS
="$CPPFLAGS $XFT_CFLAGS"
10240 CFLAGS
="$CFLAGS $XFT_CFLAGS"
10241 XFT_LIBS
="-lXrender $XFT_LIBS"
10242 LIBS
="$XFT_LIBS $LIBS"
10243 ac_fn_c_check_header_mongrel
"$LINENO" "X11/Xft/Xft.h" "ac_cv_header_X11_Xft_Xft_h" "$ac_includes_default"
10244 if test "x$ac_cv_header_X11_Xft_Xft_h" = x
""yes; then :
10245 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for XftFontOpen in -lXft" >&5
10246 $as_echo_n "checking for XftFontOpen in -lXft... " >&6; }
10247 if test "${ac_cv_lib_Xft_XftFontOpen+set}" = set; then :
10248 $as_echo_n "(cached) " >&6
10250 ac_check_lib_save_LIBS
=$LIBS
10251 LIBS
="-lXft $XFT_LIBS $LIBS"
10252 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
10253 /* end confdefs.h. */
10255 /* Override any GCC internal prototype to avoid an error.
10256 Use char because int might match the return type of a GCC
10257 builtin and then its argument prototype would still apply. */
10261 char XftFontOpen ();
10265 return XftFontOpen ();
10270 if ac_fn_c_try_link
"$LINENO"; then :
10271 ac_cv_lib_Xft_XftFontOpen
=yes
10273 ac_cv_lib_Xft_XftFontOpen
=no
10275 rm -f core conftest.err conftest.
$ac_objext \
10276 conftest
$ac_exeext conftest.
$ac_ext
10277 LIBS
=$ac_check_lib_save_LIBS
10279 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_Xft_XftFontOpen" >&5
10280 $as_echo "$ac_cv_lib_Xft_XftFontOpen" >&6; }
10281 if test "x$ac_cv_lib_Xft_XftFontOpen" = x
""yes; then :
10289 if test "${HAVE_XFT}" = "yes"; then
10291 $as_echo "#define HAVE_XFT 1" >>confdefs.h
10294 C_SWITCH_X_SITE
="$C_SWITCH_X_SITE $XFT_CFLAGS"
10296 CPPFLAGS
="$OLD_CPPFLAGS"
10297 CFLAGS
="$OLD_CFLAGS"
10299 fi # "${HAVE_XFT}" = "yes"
10300 fi # "$HAVE_XFT" != no
10301 fi # "x${with_xft}" != "xno"
10303 if test "$HAVE_XFT" != "yes"; then
10309 ## We used to allow building with FreeType and without Xft.
10310 ## However, the ftx font backend driver is not in good shape.
10311 if test "${HAVE_XFT}" = "yes"; then
10318 if test "${HAVE_FREETYPE}" = "yes"; then
10320 $as_echo "#define HAVE_FREETYPE 1" >>confdefs.h
10322 if test "${with_libotf}" != "no"; then
10326 # Extract the first word of "pkg-config", so it can be a program name with args.
10327 set dummy pkg-config
; ac_word
=$2
10328 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10329 $as_echo_n "checking for $ac_word... " >&6; }
10330 if test "${ac_cv_path_PKG_CONFIG+set}" = set; then :
10331 $as_echo_n "(cached) " >&6
10333 case $PKG_CONFIG in
10335 ac_cv_path_PKG_CONFIG
="$PKG_CONFIG" # Let the user override the test with a path.
10338 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
10339 for as_dir
in $PATH
10342 test -z "$as_dir" && as_dir
=.
10343 for ac_exec_ext
in '' $ac_executable_extensions; do
10344 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10345 ac_cv_path_PKG_CONFIG
="$as_dir/$ac_word$ac_exec_ext"
10346 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10353 test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG
="no"
10357 PKG_CONFIG
=$ac_cv_path_PKG_CONFIG
10358 if test -n "$PKG_CONFIG"; then
10359 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5
10360 $as_echo "$PKG_CONFIG" >&6; }
10362 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10363 $as_echo "no" >&6; }
10368 if test "$PKG_CONFIG" = "no" ; then
10371 PKG_CONFIG_MIN_VERSION
=0.9.0
10372 if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
10373 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libotf" >&5
10374 $as_echo_n "checking for libotf... " >&6; }
10376 if $PKG_CONFIG --exists "libotf" 2>&5; then
10377 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
10378 $as_echo "yes" >&6; }
10381 { $as_echo "$as_me:${as_lineno-$LINENO}: checking LIBOTF_CFLAGS" >&5
10382 $as_echo_n "checking LIBOTF_CFLAGS... " >&6; }
10383 LIBOTF_CFLAGS
=`$PKG_CONFIG --cflags "libotf"|sed -e 's,///*,/,g'`
10384 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIBOTF_CFLAGS" >&5
10385 $as_echo "$LIBOTF_CFLAGS" >&6; }
10387 { $as_echo "$as_me:${as_lineno-$LINENO}: checking LIBOTF_LIBS" >&5
10388 $as_echo_n "checking LIBOTF_LIBS... " >&6; }
10389 LIBOTF_LIBS
=`$PKG_CONFIG --libs "libotf"|sed -e 's,///*,/,g'`
10390 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIBOTF_LIBS" >&5
10391 $as_echo "$LIBOTF_LIBS" >&6; }
10393 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10394 $as_echo "no" >&6; }
10397 ## If we have a custom action on failure, don't print errors, but
10398 ## do set a variable so people can do so.
10399 LIBOTF_PKG_ERRORS
=`$PKG_CONFIG --errors-to-stdout --print-errors "libotf"`
10406 echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
10407 echo "*** See http://www.freedesktop.org/software/pkgconfig"
10411 if test $succeeded = yes; then
10417 if test "$HAVE_LIBOTF" = "yes"; then
10419 $as_echo "#define HAVE_LIBOTF 1" >>confdefs.h
10421 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for OTF_get_variation_glyphs in -lotf" >&5
10422 $as_echo_n "checking for OTF_get_variation_glyphs in -lotf... " >&6; }
10423 if test "${ac_cv_lib_otf_OTF_get_variation_glyphs+set}" = set; then :
10424 $as_echo_n "(cached) " >&6
10426 ac_check_lib_save_LIBS
=$LIBS
10428 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
10429 /* end confdefs.h. */
10431 /* Override any GCC internal prototype to avoid an error.
10432 Use char because int might match the return type of a GCC
10433 builtin and then its argument prototype would still apply. */
10437 char OTF_get_variation_glyphs ();
10441 return OTF_get_variation_glyphs ();
10446 if ac_fn_c_try_link
"$LINENO"; then :
10447 ac_cv_lib_otf_OTF_get_variation_glyphs
=yes
10449 ac_cv_lib_otf_OTF_get_variation_glyphs
=no
10451 rm -f core conftest.err conftest.
$ac_objext \
10452 conftest
$ac_exeext conftest.
$ac_ext
10453 LIBS
=$ac_check_lib_save_LIBS
10455 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_otf_OTF_get_variation_glyphs" >&5
10456 $as_echo "$ac_cv_lib_otf_OTF_get_variation_glyphs" >&6; }
10457 if test "x$ac_cv_lib_otf_OTF_get_variation_glyphs" = x
""yes; then :
10458 HAVE_OTF_GET_VARIATION_GLYPHS
=yes
10460 HAVE_OTF_GET_VARIATION_GLYPHS
=no
10463 if test "${HAVE_OTF_GET_VARIATION_GLYPHS}" = "yes"; then
10465 $as_echo "#define HAVE_OTF_GET_VARIATION_GLYPHS 1" >>confdefs.h
10473 if test "${HAVE_LIBOTF}" = yes; then
10474 if test "${with_m17n_flt}" != "no"; then
10478 # Extract the first word of "pkg-config", so it can be a program name with args.
10479 set dummy pkg-config
; ac_word
=$2
10480 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10481 $as_echo_n "checking for $ac_word... " >&6; }
10482 if test "${ac_cv_path_PKG_CONFIG+set}" = set; then :
10483 $as_echo_n "(cached) " >&6
10485 case $PKG_CONFIG in
10487 ac_cv_path_PKG_CONFIG
="$PKG_CONFIG" # Let the user override the test with a path.
10490 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
10491 for as_dir
in $PATH
10494 test -z "$as_dir" && as_dir
=.
10495 for ac_exec_ext
in '' $ac_executable_extensions; do
10496 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10497 ac_cv_path_PKG_CONFIG
="$as_dir/$ac_word$ac_exec_ext"
10498 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10505 test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG
="no"
10509 PKG_CONFIG
=$ac_cv_path_PKG_CONFIG
10510 if test -n "$PKG_CONFIG"; then
10511 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5
10512 $as_echo "$PKG_CONFIG" >&6; }
10514 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10515 $as_echo "no" >&6; }
10520 if test "$PKG_CONFIG" = "no" ; then
10523 PKG_CONFIG_MIN_VERSION
=0.9.0
10524 if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
10525 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for m17n-flt" >&5
10526 $as_echo_n "checking for m17n-flt... " >&6; }
10528 if $PKG_CONFIG --exists "m17n-flt" 2>&5; then
10529 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
10530 $as_echo "yes" >&6; }
10533 { $as_echo "$as_me:${as_lineno-$LINENO}: checking M17N_FLT_CFLAGS" >&5
10534 $as_echo_n "checking M17N_FLT_CFLAGS... " >&6; }
10535 M17N_FLT_CFLAGS
=`$PKG_CONFIG --cflags "m17n-flt"|sed -e 's,///*,/,g'`
10536 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $M17N_FLT_CFLAGS" >&5
10537 $as_echo "$M17N_FLT_CFLAGS" >&6; }
10539 { $as_echo "$as_me:${as_lineno-$LINENO}: checking M17N_FLT_LIBS" >&5
10540 $as_echo_n "checking M17N_FLT_LIBS... " >&6; }
10541 M17N_FLT_LIBS
=`$PKG_CONFIG --libs "m17n-flt"|sed -e 's,///*,/,g'`
10542 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $M17N_FLT_LIBS" >&5
10543 $as_echo "$M17N_FLT_LIBS" >&6; }
10545 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10546 $as_echo "no" >&6; }
10549 ## If we have a custom action on failure, don't print errors, but
10550 ## do set a variable so people can do so.
10551 M17N_FLT_PKG_ERRORS
=`$PKG_CONFIG --errors-to-stdout --print-errors "m17n-flt"`
10558 echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
10559 echo "*** See http://www.freedesktop.org/software/pkgconfig"
10563 if test $succeeded = yes; then
10569 if test "$HAVE_M17N_FLT" = "yes"; then
10571 $as_echo "#define HAVE_M17N_FLT 1" >>confdefs.h
10583 ### End of font-backend (under X11) section.
10594 ### Use -lXpm if available, unless `--with-xpm=no'.
10597 if test "${HAVE_X11}" = "yes"; then
10598 if test "${with_xpm}" != "no"; then
10599 ac_fn_c_check_header_mongrel
"$LINENO" "X11/xpm.h" "ac_cv_header_X11_xpm_h" "$ac_includes_default"
10600 if test "x$ac_cv_header_X11_xpm_h" = x
""yes; then :
10601 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for XpmReadFileToPixmap in -lXpm" >&5
10602 $as_echo_n "checking for XpmReadFileToPixmap in -lXpm... " >&6; }
10603 if test "${ac_cv_lib_Xpm_XpmReadFileToPixmap+set}" = set; then :
10604 $as_echo_n "(cached) " >&6
10606 ac_check_lib_save_LIBS
=$LIBS
10607 LIBS
="-lXpm -lX11 $LIBS"
10608 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
10609 /* end confdefs.h. */
10611 /* Override any GCC internal prototype to avoid an error.
10612 Use char because int might match the return type of a GCC
10613 builtin and then its argument prototype would still apply. */
10617 char XpmReadFileToPixmap ();
10621 return XpmReadFileToPixmap ();
10626 if ac_fn_c_try_link
"$LINENO"; then :
10627 ac_cv_lib_Xpm_XpmReadFileToPixmap
=yes
10629 ac_cv_lib_Xpm_XpmReadFileToPixmap
=no
10631 rm -f core conftest.err conftest.
$ac_objext \
10632 conftest
$ac_exeext conftest.
$ac_ext
10633 LIBS
=$ac_check_lib_save_LIBS
10635 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_Xpm_XpmReadFileToPixmap" >&5
10636 $as_echo "$ac_cv_lib_Xpm_XpmReadFileToPixmap" >&6; }
10637 if test "x$ac_cv_lib_Xpm_XpmReadFileToPixmap" = x
""yes; then :
10644 if test "${HAVE_XPM}" = "yes"; then
10645 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for XpmReturnAllocPixels preprocessor define" >&5
10646 $as_echo_n "checking for XpmReturnAllocPixels preprocessor define... " >&6; }
10647 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
10648 /* end confdefs.h. */
10649 #include "X11/xpm.h"
10650 #ifndef XpmReturnAllocPixels
10651 no_return_alloc_pixels
10655 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
10656 $EGREP "no_return_alloc_pixels" >/dev
/null
2>&1; then :
10664 if test "${HAVE_XPM}" = "yes"; then
10665 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
10666 $as_echo "yes" >&6; }
10668 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10669 $as_echo "no" >&6; }
10674 if test "${HAVE_XPM}" = "yes"; then
10676 $as_echo "#define HAVE_XPM 1" >>confdefs.h
10683 ### Use -ljpeg if available, unless `--with-jpeg=no'.
10686 if test "${HAVE_X11}" = "yes"; then
10687 if test "${with_jpeg}" != "no"; then
10688 ac_fn_c_check_header_mongrel
"$LINENO" "jerror.h" "ac_cv_header_jerror_h" "$ac_includes_default"
10689 if test "x$ac_cv_header_jerror_h" = x
""yes; then :
10690 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for jpeg_destroy_compress in -ljpeg" >&5
10691 $as_echo_n "checking for jpeg_destroy_compress in -ljpeg... " >&6; }
10692 if test "${ac_cv_lib_jpeg_jpeg_destroy_compress+set}" = set; then :
10693 $as_echo_n "(cached) " >&6
10695 ac_check_lib_save_LIBS
=$LIBS
10696 LIBS
="-ljpeg $LIBS"
10697 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
10698 /* end confdefs.h. */
10700 /* Override any GCC internal prototype to avoid an error.
10701 Use char because int might match the return type of a GCC
10702 builtin and then its argument prototype would still apply. */
10706 char jpeg_destroy_compress ();
10710 return jpeg_destroy_compress ();
10715 if ac_fn_c_try_link
"$LINENO"; then :
10716 ac_cv_lib_jpeg_jpeg_destroy_compress
=yes
10718 ac_cv_lib_jpeg_jpeg_destroy_compress
=no
10720 rm -f core conftest.err conftest.
$ac_objext \
10721 conftest
$ac_exeext conftest.
$ac_ext
10722 LIBS
=$ac_check_lib_save_LIBS
10724 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_jpeg_jpeg_destroy_compress" >&5
10725 $as_echo "$ac_cv_lib_jpeg_jpeg_destroy_compress" >&6; }
10726 if test "x$ac_cv_lib_jpeg_jpeg_destroy_compress" = x
""yes; then :
10735 if test "${HAVE_JPEG}" = "yes"; then
10736 $as_echo "#define HAVE_JPEG 1" >>confdefs.h
10738 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
10739 /* end confdefs.h. */
10740 #include <jpeglib.h>
10741 version=JPEG_LIB_VERSION
10744 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
10745 $EGREP "version= *(6[2-9]|[7-9][0-9])" >/dev
/null
2>&1; then :
10746 $as_echo "#define HAVE_JPEG 1" >>confdefs.h
10749 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: libjpeg found, but not version 6b or later" >&5
10750 $as_echo "$as_me: WARNING: libjpeg found, but not version 6b or later" >&2;}
10756 if test "${HAVE_JPEG}" = "yes"; then
10762 ### Use -lpng if available, unless `--with-png=no'.
10765 if test "${HAVE_X11}" = "yes"; then
10766 if test "${with_png}" != "no"; then
10767 # Debian unstable as of July 2003 has multiple libpngs, and puts png.h
10768 # in /usr/include/libpng.
10769 for ac_header
in png.h libpng
/png.h
10771 as_ac_Header
=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
10772 ac_fn_c_check_header_mongrel
"$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
10773 eval as_val
=\$
$as_ac_Header
10774 if test "x$as_val" = x
""yes; then :
10775 cat >>confdefs.h
<<_ACEOF
10776 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
10783 if test "$ac_cv_header_png_h" = yes ||
test "$ac_cv_header_libpng_png_h" = yes ; then
10784 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for png_get_channels in -lpng" >&5
10785 $as_echo_n "checking for png_get_channels in -lpng... " >&6; }
10786 if test "${ac_cv_lib_png_png_get_channels+set}" = set; then :
10787 $as_echo_n "(cached) " >&6
10789 ac_check_lib_save_LIBS
=$LIBS
10790 LIBS
="-lpng -lz -lm $LIBS"
10791 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
10792 /* end confdefs.h. */
10794 /* Override any GCC internal prototype to avoid an error.
10795 Use char because int might match the return type of a GCC
10796 builtin and then its argument prototype would still apply. */
10800 char png_get_channels ();
10804 return png_get_channels ();
10809 if ac_fn_c_try_link
"$LINENO"; then :
10810 ac_cv_lib_png_png_get_channels
=yes
10812 ac_cv_lib_png_png_get_channels
=no
10814 rm -f core conftest.err conftest.
$ac_objext \
10815 conftest
$ac_exeext conftest.
$ac_ext
10816 LIBS
=$ac_check_lib_save_LIBS
10818 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_png_png_get_channels" >&5
10819 $as_echo "$ac_cv_lib_png_png_get_channels" >&6; }
10820 if test "x$ac_cv_lib_png_png_get_channels" = x
""yes; then :
10827 if test "${HAVE_PNG}" = "yes"; then
10829 $as_echo "#define HAVE_PNG 1" >>confdefs.h
10831 LIBPNG
="-lpng -lz -lm"
10836 ### Use -ltiff if available, unless `--with-tiff=no'.
10839 if test "${HAVE_X11}" = "yes"; then
10840 if test "${with_tiff}" != "no"; then
10841 ac_fn_c_check_header_mongrel
"$LINENO" "tiffio.h" "ac_cv_header_tiffio_h" "$ac_includes_default"
10842 if test "x$ac_cv_header_tiffio_h" = x
""yes; then :
10844 # At least one tiff package requires the jpeg library.
10845 if test "${HAVE_JPEG}" = yes; then tifflibs
="-ljpeg $tifflibs"; fi
10846 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for TIFFGetVersion in -ltiff" >&5
10847 $as_echo_n "checking for TIFFGetVersion in -ltiff... " >&6; }
10848 if test "${ac_cv_lib_tiff_TIFFGetVersion+set}" = set; then :
10849 $as_echo_n "(cached) " >&6
10851 ac_check_lib_save_LIBS
=$LIBS
10852 LIBS
="-ltiff $tifflibs $LIBS"
10853 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
10854 /* end confdefs.h. */
10856 /* Override any GCC internal prototype to avoid an error.
10857 Use char because int might match the return type of a GCC
10858 builtin and then its argument prototype would still apply. */
10862 char TIFFGetVersion ();
10866 return TIFFGetVersion ();
10871 if ac_fn_c_try_link
"$LINENO"; then :
10872 ac_cv_lib_tiff_TIFFGetVersion
=yes
10874 ac_cv_lib_tiff_TIFFGetVersion
=no
10876 rm -f core conftest.err conftest.
$ac_objext \
10877 conftest
$ac_exeext conftest.
$ac_ext
10878 LIBS
=$ac_check_lib_save_LIBS
10880 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_tiff_TIFFGetVersion" >&5
10881 $as_echo "$ac_cv_lib_tiff_TIFFGetVersion" >&6; }
10882 if test "x$ac_cv_lib_tiff_TIFFGetVersion" = x
""yes; then :
10891 if test "${HAVE_TIFF}" = "yes"; then
10893 $as_echo "#define HAVE_TIFF 1" >>confdefs.h
10900 ### Use -lgif or -lungif if available, unless `--with-gif=no'.
10903 if test "${HAVE_X11}" = "yes" && test "${with_gif}" != "no"; then
10904 ac_fn_c_check_header_mongrel
"$LINENO" "gif_lib.h" "ac_cv_header_gif_lib_h" "$ac_includes_default"
10905 if test "x$ac_cv_header_gif_lib_h" = x
""yes; then :
10906 # EGifPutExtensionLast only exists from version libungif-4.1.0b1.
10907 # Earlier versions can crash Emacs.
10908 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for EGifPutExtensionLast in -lgif" >&5
10909 $as_echo_n "checking for EGifPutExtensionLast in -lgif... " >&6; }
10910 if test "${ac_cv_lib_gif_EGifPutExtensionLast+set}" = set; then :
10911 $as_echo_n "(cached) " >&6
10913 ac_check_lib_save_LIBS
=$LIBS
10915 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
10916 /* end confdefs.h. */
10918 /* Override any GCC internal prototype to avoid an error.
10919 Use char because int might match the return type of a GCC
10920 builtin and then its argument prototype would still apply. */
10924 char EGifPutExtensionLast ();
10928 return EGifPutExtensionLast ();
10933 if ac_fn_c_try_link
"$LINENO"; then :
10934 ac_cv_lib_gif_EGifPutExtensionLast
=yes
10936 ac_cv_lib_gif_EGifPutExtensionLast
=no
10938 rm -f core conftest.err conftest.
$ac_objext \
10939 conftest
$ac_exeext conftest.
$ac_ext
10940 LIBS
=$ac_check_lib_save_LIBS
10942 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_gif_EGifPutExtensionLast" >&5
10943 $as_echo "$ac_cv_lib_gif_EGifPutExtensionLast" >&6; }
10944 if test "x$ac_cv_lib_gif_EGifPutExtensionLast" = x
""yes; then :
10954 if test "$HAVE_GIF" = yes; then
10956 elif test "$HAVE_GIF" = maybe
; then
10957 # If gif_lib.h but no libgif, try libungif.
10958 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for EGifPutExtensionLast in -lungif" >&5
10959 $as_echo_n "checking for EGifPutExtensionLast in -lungif... " >&6; }
10960 if test "${ac_cv_lib_ungif_EGifPutExtensionLast+set}" = set; then :
10961 $as_echo_n "(cached) " >&6
10963 ac_check_lib_save_LIBS
=$LIBS
10964 LIBS
="-lungif $LIBS"
10965 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
10966 /* end confdefs.h. */
10968 /* Override any GCC internal prototype to avoid an error.
10969 Use char because int might match the return type of a GCC
10970 builtin and then its argument prototype would still apply. */
10974 char EGifPutExtensionLast ();
10978 return EGifPutExtensionLast ();
10983 if ac_fn_c_try_link
"$LINENO"; then :
10984 ac_cv_lib_ungif_EGifPutExtensionLast
=yes
10986 ac_cv_lib_ungif_EGifPutExtensionLast
=no
10988 rm -f core conftest.err conftest.
$ac_objext \
10989 conftest
$ac_exeext conftest.
$ac_ext
10990 LIBS
=$ac_check_lib_save_LIBS
10992 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_ungif_EGifPutExtensionLast" >&5
10993 $as_echo "$ac_cv_lib_ungif_EGifPutExtensionLast" >&6; }
10994 if test "x$ac_cv_lib_ungif_EGifPutExtensionLast" = x
""yes; then :
11000 test "$HAVE_GIF" = yes && LIBGIF
=-lungif
11003 if test "${HAVE_GIF}" = "yes"; then
11005 $as_echo "#define HAVE_GIF 1" >>confdefs.h
11011 if test "${HAVE_X11}" = "yes"; then
11014 test "${with_xpm}" != "no" && test "${HAVE_XPM}" != "yes" &&
11015 MISSING
="libXpm" && WITH_NO
="--with-xpm=no"
11016 test "${with_jpeg}" != "no" && test "${HAVE_JPEG}" != "yes" &&
11017 MISSING
="$MISSING libjpeg" && WITH_NO
="$WITH_NO --with-jpeg=no"
11018 test "${with_png}" != "no" && test "${HAVE_PNG}" != "yes" &&
11019 MISSING
="$MISSING libpng" && WITH_NO
="$WITH_NO --with-png=no"
11020 test "${with_gif}" != "no" && test "${HAVE_GIF}" != "yes" &&
11021 MISSING
="$MISSING libgif/libungif" && WITH_NO
="$WITH_NO --with-gif=no"
11022 test "${with_tiff}" != "no" && test "${HAVE_TIFF}" != "yes" &&
11023 MISSING
="$MISSING libtiff" && WITH_NO
="$WITH_NO --with-tiff=no"
11025 if test "X${MISSING}" != X
; then
11026 as_fn_error
"The following required libraries were not found:
11028 Maybe some development libraries/packages are missing?
11029 If you don't want to link with them give
11031 as options to configure" "$LINENO" 5
11035 ### Use -lgpm if available, unless `--with-gpm=no'.
11039 if test "${with_gpm}" != "no"; then
11040 ac_fn_c_check_header_mongrel
"$LINENO" "gpm.h" "ac_cv_header_gpm_h" "$ac_includes_default"
11041 if test "x$ac_cv_header_gpm_h" = x
""yes; then :
11042 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Gpm_Open in -lgpm" >&5
11043 $as_echo_n "checking for Gpm_Open in -lgpm... " >&6; }
11044 if test "${ac_cv_lib_gpm_Gpm_Open+set}" = set; then :
11045 $as_echo_n "(cached) " >&6
11047 ac_check_lib_save_LIBS
=$LIBS
11049 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
11050 /* end confdefs.h. */
11052 /* Override any GCC internal prototype to avoid an error.
11053 Use char because int might match the return type of a GCC
11054 builtin and then its argument prototype would still apply. */
11062 return Gpm_Open ();
11067 if ac_fn_c_try_link
"$LINENO"; then :
11068 ac_cv_lib_gpm_Gpm_Open
=yes
11070 ac_cv_lib_gpm_Gpm_Open
=no
11072 rm -f core conftest.err conftest.
$ac_objext \
11073 conftest
$ac_exeext conftest.
$ac_ext
11074 LIBS
=$ac_check_lib_save_LIBS
11076 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_gpm_Gpm_Open" >&5
11077 $as_echo "$ac_cv_lib_gpm_Gpm_Open" >&6; }
11078 if test "x$ac_cv_lib_gpm_Gpm_Open" = x
""yes; then :
11086 if test "${HAVE_GPM}" = "yes"; then
11088 $as_echo "#define HAVE_GPM 1" >>confdefs.h
11091 ## May be reset below.
11092 MOUSE_SUPPORT
="\$(GPM_MOUSE_SUPPORT)"
11097 ac_fn_c_check_header_mongrel
"$LINENO" "malloc/malloc.h" "ac_cv_header_malloc_malloc_h" "$ac_includes_default"
11098 if test "x$ac_cv_header_malloc_malloc_h" = x
""yes; then :
11100 $as_echo "#define HAVE_MALLOC_MALLOC_H 1" >>confdefs.h
11107 ### Use NeXTstep API to implement GUI.
11108 if test "${HAVE_NS}" = "yes"; then
11110 $as_echo "#define HAVE_NS 1" >>confdefs.h
11112 if test "${NS_IMPL_COCOA}" = "yes"; then
11114 $as_echo "#define NS_IMPL_COCOA 1" >>confdefs.h
11118 if test "${NS_IMPL_GNUSTEP}" = "yes"; then
11120 $as_echo "#define NS_IMPL_GNUSTEP 1" >>confdefs.h
11122 # See also .m.o rule in Makefile.in */
11123 # FIXME: are all these flags really needed? Document here why. */
11124 C_SWITCH_X_SYSTEM
="-D_REENTRANT -fPIC -fno-strict-aliasing"
11125 GNU_OBJC_CFLAGS
="-fgnu-runtime -Wno-import -fconstant-string-class=NSConstantString -DGNUSTEP_BASE_LIBRARY=1 -DGNU_GUI_LIBRARY=1 -DGNU_RUNTIME=1 -DGSWARN -DGSDIAGNOSE"
11127 if test "${NS_HAVE_NSINTEGER}" = "yes"; then
11129 $as_echo "#define NS_HAVE_NSINTEGER 1" >>confdefs.h
11132 # We also have mouse menus.
11138 ### Use session management (-lSM -lICE) if available
11141 if test "${HAVE_X11}" = "yes"; then
11142 ac_fn_c_check_header_mongrel
"$LINENO" "X11/SM/SMlib.h" "ac_cv_header_X11_SM_SMlib_h" "$ac_includes_default"
11143 if test "x$ac_cv_header_X11_SM_SMlib_h" = x
""yes; then :
11144 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for SmcOpenConnection in -lSM" >&5
11145 $as_echo_n "checking for SmcOpenConnection in -lSM... " >&6; }
11146 if test "${ac_cv_lib_SM_SmcOpenConnection+set}" = set; then :
11147 $as_echo_n "(cached) " >&6
11149 ac_check_lib_save_LIBS
=$LIBS
11150 LIBS
="-lSM -lICE $LIBS"
11151 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
11152 /* end confdefs.h. */
11154 /* Override any GCC internal prototype to avoid an error.
11155 Use char because int might match the return type of a GCC
11156 builtin and then its argument prototype would still apply. */
11160 char SmcOpenConnection ();
11164 return SmcOpenConnection ();
11169 if ac_fn_c_try_link
"$LINENO"; then :
11170 ac_cv_lib_SM_SmcOpenConnection
=yes
11172 ac_cv_lib_SM_SmcOpenConnection
=no
11174 rm -f core conftest.err conftest.
$ac_objext \
11175 conftest
$ac_exeext conftest.
$ac_ext
11176 LIBS
=$ac_check_lib_save_LIBS
11178 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_SM_SmcOpenConnection" >&5
11179 $as_echo "$ac_cv_lib_SM_SmcOpenConnection" >&6; }
11180 if test "x$ac_cv_lib_SM_SmcOpenConnection" = x
""yes; then :
11188 if test "${HAVE_X_SM}" = "yes"; then
11190 $as_echo "#define HAVE_X_SM 1" >>confdefs.h
11192 LIBXSM
="-lSM -lICE"
11195 *) LIBS
="$LIBXSM $LIBS" ;;
11201 ### Use libxml (-lxml2) if available
11202 if test "${with_xml2}" != "no"; then
11203 ### I'm not sure what the version number should be, so I just guessed.
11207 # Extract the first word of "pkg-config", so it can be a program name with args.
11208 set dummy pkg-config
; ac_word
=$2
11209 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11210 $as_echo_n "checking for $ac_word... " >&6; }
11211 if test "${ac_cv_path_PKG_CONFIG+set}" = set; then :
11212 $as_echo_n "(cached) " >&6
11214 case $PKG_CONFIG in
11216 ac_cv_path_PKG_CONFIG
="$PKG_CONFIG" # Let the user override the test with a path.
11219 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
11220 for as_dir
in $PATH
11223 test -z "$as_dir" && as_dir
=.
11224 for ac_exec_ext
in '' $ac_executable_extensions; do
11225 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11226 ac_cv_path_PKG_CONFIG
="$as_dir/$ac_word$ac_exec_ext"
11227 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11234 test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG
="no"
11238 PKG_CONFIG
=$ac_cv_path_PKG_CONFIG
11239 if test -n "$PKG_CONFIG"; then
11240 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5
11241 $as_echo "$PKG_CONFIG" >&6; }
11243 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11244 $as_echo "no" >&6; }
11249 if test "$PKG_CONFIG" = "no" ; then
11252 PKG_CONFIG_MIN_VERSION
=0.9.0
11253 if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
11254 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libxml-2.0 > 2.2.0" >&5
11255 $as_echo_n "checking for libxml-2.0 > 2.2.0... " >&6; }
11257 if $PKG_CONFIG --exists "libxml-2.0 > 2.2.0" 2>&5; then
11258 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11259 $as_echo "yes" >&6; }
11262 { $as_echo "$as_me:${as_lineno-$LINENO}: checking LIBXML2_CFLAGS" >&5
11263 $as_echo_n "checking LIBXML2_CFLAGS... " >&6; }
11264 LIBXML2_CFLAGS
=`$PKG_CONFIG --cflags "libxml-2.0 > 2.2.0"|sed -e 's,///*,/,g'`
11265 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIBXML2_CFLAGS" >&5
11266 $as_echo "$LIBXML2_CFLAGS" >&6; }
11268 { $as_echo "$as_me:${as_lineno-$LINENO}: checking LIBXML2_LIBS" >&5
11269 $as_echo_n "checking LIBXML2_LIBS... " >&6; }
11270 LIBXML2_LIBS
=`$PKG_CONFIG --libs "libxml-2.0 > 2.2.0"|sed -e 's,///*,/,g'`
11271 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIBXML2_LIBS" >&5
11272 $as_echo "$LIBXML2_LIBS" >&6; }
11274 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11275 $as_echo "no" >&6; }
11278 ## If we have a custom action on failure, don't print errors, but
11279 ## do set a variable so people can do so.
11280 LIBXML2_PKG_ERRORS
=`$PKG_CONFIG --errors-to-stdout --print-errors "libxml-2.0 > 2.2.0"`
11287 echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
11288 echo "*** See http://www.freedesktop.org/software/pkgconfig"
11292 if test $succeeded = yes; then
11298 if test "${HAVE_LIBXML2}" = "yes"; then
11299 LIBS
="$LIBXML2_LIBS $LIBS"
11300 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for htmlReadMemory in -lxml2" >&5
11301 $as_echo_n "checking for htmlReadMemory in -lxml2... " >&6; }
11302 if test "${ac_cv_lib_xml2_htmlReadMemory+set}" = set; then :
11303 $as_echo_n "(cached) " >&6
11305 ac_check_lib_save_LIBS
=$LIBS
11306 LIBS
="-lxml2 $LIBS"
11307 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
11308 /* end confdefs.h. */
11310 /* Override any GCC internal prototype to avoid an error.
11311 Use char because int might match the return type of a GCC
11312 builtin and then its argument prototype would still apply. */
11316 char htmlReadMemory ();
11320 return htmlReadMemory ();
11325 if ac_fn_c_try_link
"$LINENO"; then :
11326 ac_cv_lib_xml2_htmlReadMemory
=yes
11328 ac_cv_lib_xml2_htmlReadMemory
=no
11330 rm -f core conftest.err conftest.
$ac_objext \
11331 conftest
$ac_exeext conftest.
$ac_ext
11332 LIBS
=$ac_check_lib_save_LIBS
11334 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_xml2_htmlReadMemory" >&5
11335 $as_echo "$ac_cv_lib_xml2_htmlReadMemory" >&6; }
11336 if test "x$ac_cv_lib_xml2_htmlReadMemory" = x
""yes; then :
11342 if test "${HAVE_LIBXML2}" = "yes"; then
11344 $as_echo "#define HAVE_LIBXML2 1" >>confdefs.h
11355 # If netdb.h doesn't declare h_errno, we must declare it by hand.
11356 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether netdb declares h_errno" >&5
11357 $as_echo_n "checking whether netdb declares h_errno... " >&6; }
11358 if test "${emacs_cv_netdb_declares_h_errno+set}" = set; then :
11359 $as_echo_n "(cached) " >&6
11361 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
11362 /* end confdefs.h. */
11372 if ac_fn_c_try_link
"$LINENO"; then :
11373 emacs_cv_netdb_declares_h_errno
=yes
11375 emacs_cv_netdb_declares_h_errno
=no
11377 rm -f core conftest.err conftest.
$ac_objext \
11378 conftest
$ac_exeext conftest.
$ac_ext
11380 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $emacs_cv_netdb_declares_h_errno" >&5
11381 $as_echo "$emacs_cv_netdb_declares_h_errno" >&6; }
11382 if test $emacs_cv_netdb_declares_h_errno = yes; then
11384 $as_echo "#define HAVE_H_ERRNO 1" >>confdefs.h
11388 # The Ultrix 4.2 mips builtin alloca declared by alloca.h only works
11389 # for constant arguments. Useless!
11390 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working alloca.h" >&5
11391 $as_echo_n "checking for working alloca.h... " >&6; }
11392 if test "${ac_cv_working_alloca_h+set}" = set; then :
11393 $as_echo_n "(cached) " >&6
11395 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
11396 /* end confdefs.h. */
11397 #include <alloca.h>
11401 char *p = (char *) alloca (2 * sizeof (int));
11407 if ac_fn_c_try_link
"$LINENO"; then :
11408 ac_cv_working_alloca_h
=yes
11410 ac_cv_working_alloca_h
=no
11412 rm -f core conftest.err conftest.
$ac_objext \
11413 conftest
$ac_exeext conftest.
$ac_ext
11415 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_working_alloca_h" >&5
11416 $as_echo "$ac_cv_working_alloca_h" >&6; }
11417 if test $ac_cv_working_alloca_h = yes; then
11419 $as_echo "#define HAVE_ALLOCA_H 1" >>confdefs.h
11423 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for alloca" >&5
11424 $as_echo_n "checking for alloca... " >&6; }
11425 if test "${ac_cv_func_alloca_works+set}" = set; then :
11426 $as_echo_n "(cached) " >&6
11428 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
11429 /* end confdefs.h. */
11431 # define alloca __builtin_alloca
11434 # include <malloc.h>
11435 # define alloca _alloca
11437 # ifdef HAVE_ALLOCA_H
11438 # include <alloca.h>
11443 # ifndef alloca /* predefined by HP cc +Olibcalls */
11454 char *p = (char *) alloca (1);
11460 if ac_fn_c_try_link
"$LINENO"; then :
11461 ac_cv_func_alloca_works
=yes
11463 ac_cv_func_alloca_works
=no
11465 rm -f core conftest.err conftest.
$ac_objext \
11466 conftest
$ac_exeext conftest.
$ac_ext
11468 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_alloca_works" >&5
11469 $as_echo "$ac_cv_func_alloca_works" >&6; }
11471 if test $ac_cv_func_alloca_works = yes; then
11473 $as_echo "#define HAVE_ALLOCA 1" >>confdefs.h
11476 # The SVR3 libPW and SVR4 libucb both contain incompatible functions
11477 # that cause trouble. Some versions do not even contain alloca or
11478 # contain a buggy version. If you still want to use their alloca,
11479 # use ar to extract alloca.o from them instead of compiling alloca.c.
11481 ALLOCA
=\
${LIBOBJDIR}alloca.
$ac_objext
11483 $as_echo "#define C_ALLOCA 1" >>confdefs.h
11486 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether \`alloca.c' needs Cray hooks" >&5
11487 $as_echo_n "checking whether \`alloca.c' needs Cray hooks... " >&6; }
11488 if test "${ac_cv_os_cray+set}" = set; then :
11489 $as_echo_n "(cached) " >&6
11491 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
11492 /* end confdefs.h. */
11493 #if defined CRAY && ! defined CRAY2
11500 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
11501 $EGREP "webecray" >/dev
/null
2>&1; then :
11509 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_os_cray" >&5
11510 $as_echo "$ac_cv_os_cray" >&6; }
11511 if test $ac_cv_os_cray = yes; then
11512 for ac_func
in _getb67 GETB67 getb67
; do
11513 as_ac_var
=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
11514 ac_fn_c_check_func
"$LINENO" "$ac_func" "$as_ac_var"
11515 eval as_val
=\$
$as_ac_var
11516 if test "x$as_val" = x
""yes; then :
11518 cat >>confdefs.h
<<_ACEOF
11519 #define CRAY_STACKSEG_END $ac_func
11528 { $as_echo "$as_me:${as_lineno-$LINENO}: checking stack direction for C alloca" >&5
11529 $as_echo_n "checking stack direction for C alloca... " >&6; }
11530 if test "${ac_cv_c_stack_direction+set}" = set; then :
11531 $as_echo_n "(cached) " >&6
11533 if test "$cross_compiling" = yes; then :
11534 ac_cv_c_stack_direction
=0
11536 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
11537 /* end confdefs.h. */
11538 $ac_includes_default
11540 find_stack_direction ()
11542 static char *addr = 0;
11547 return find_stack_direction ();
11550 return (&dummy > addr) ? 1 : -1;
11556 return find_stack_direction () < 0;
11559 if ac_fn_c_try_run
"$LINENO"; then :
11560 ac_cv_c_stack_direction
=1
11562 ac_cv_c_stack_direction
=-1
11564 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
11565 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
11569 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_stack_direction" >&5
11570 $as_echo "$ac_cv_c_stack_direction" >&6; }
11571 cat >>confdefs.h
<<_ACEOF
11572 #define STACK_DIRECTION $ac_cv_c_stack_direction
11579 if test x
"$ac_cv_func_alloca_works" != xyes
; then
11580 as_fn_error
"a system implementation of alloca is required " "$LINENO" 5
11583 # fmod, logb, and frexp are found in -lm on most systems.
11584 # On HPUX 9.01, -lm does not contain logb, so check for sqrt.
11585 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sqrt in -lm" >&5
11586 $as_echo_n "checking for sqrt in -lm... " >&6; }
11587 if test "${ac_cv_lib_m_sqrt+set}" = set; then :
11588 $as_echo_n "(cached) " >&6
11590 ac_check_lib_save_LIBS
=$LIBS
11592 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
11593 /* end confdefs.h. */
11595 /* Override any GCC internal prototype to avoid an error.
11596 Use char because int might match the return type of a GCC
11597 builtin and then its argument prototype would still apply. */
11610 if ac_fn_c_try_link
"$LINENO"; then :
11611 ac_cv_lib_m_sqrt
=yes
11613 ac_cv_lib_m_sqrt
=no
11615 rm -f core conftest.err conftest.
$ac_objext \
11616 conftest
$ac_exeext conftest.
$ac_ext
11617 LIBS
=$ac_check_lib_save_LIBS
11619 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_m_sqrt" >&5
11620 $as_echo "$ac_cv_lib_m_sqrt" >&6; }
11621 if test "x$ac_cv_lib_m_sqrt" = x
""yes; then :
11622 cat >>confdefs.h
<<_ACEOF
11623 #define HAVE_LIBM 1
11631 # Check for mail-locking functions in a "mail" library. Probably this should
11632 # have the same check as for liblockfile below.
11633 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for maillock in -lmail" >&5
11634 $as_echo_n "checking for maillock in -lmail... " >&6; }
11635 if test "${ac_cv_lib_mail_maillock+set}" = set; then :
11636 $as_echo_n "(cached) " >&6
11638 ac_check_lib_save_LIBS
=$LIBS
11639 LIBS
="-lmail $LIBS"
11640 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
11641 /* end confdefs.h. */
11643 /* Override any GCC internal prototype to avoid an error.
11644 Use char because int might match the return type of a GCC
11645 builtin and then its argument prototype would still apply. */
11653 return maillock ();
11658 if ac_fn_c_try_link
"$LINENO"; then :
11659 ac_cv_lib_mail_maillock
=yes
11661 ac_cv_lib_mail_maillock
=no
11663 rm -f core conftest.err conftest.
$ac_objext \
11664 conftest
$ac_exeext conftest.
$ac_ext
11665 LIBS
=$ac_check_lib_save_LIBS
11667 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_mail_maillock" >&5
11668 $as_echo "$ac_cv_lib_mail_maillock" >&6; }
11669 if test "x$ac_cv_lib_mail_maillock" = x
""yes; then :
11675 if test $have_mail = yes; then
11677 LIBS
="$LIBS_MAIL $LIBS"
11679 $as_echo "#define HAVE_LIBMAIL 1" >>confdefs.h
11684 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for maillock in -llockfile" >&5
11685 $as_echo_n "checking for maillock in -llockfile... " >&6; }
11686 if test "${ac_cv_lib_lockfile_maillock+set}" = set; then :
11687 $as_echo_n "(cached) " >&6
11689 ac_check_lib_save_LIBS
=$LIBS
11690 LIBS
="-llockfile $LIBS"
11691 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
11692 /* end confdefs.h. */
11694 /* Override any GCC internal prototype to avoid an error.
11695 Use char because int might match the return type of a GCC
11696 builtin and then its argument prototype would still apply. */
11704 return maillock ();
11709 if ac_fn_c_try_link
"$LINENO"; then :
11710 ac_cv_lib_lockfile_maillock
=yes
11712 ac_cv_lib_lockfile_maillock
=no
11714 rm -f core conftest.err conftest.
$ac_objext \
11715 conftest
$ac_exeext conftest.
$ac_ext
11716 LIBS
=$ac_check_lib_save_LIBS
11718 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_lockfile_maillock" >&5
11719 $as_echo "$ac_cv_lib_lockfile_maillock" >&6; }
11720 if test "x$ac_cv_lib_lockfile_maillock" = x
""yes; then :
11726 if test $have_lockfile = yes; then
11727 LIBS_MAIL
=-llockfile
11728 LIBS
="$LIBS_MAIL $LIBS"
11730 $as_echo "#define HAVE_LIBLOCKFILE 1" >>confdefs.h
11733 # If we have the shared liblockfile, assume we must use it for mail
11734 # locking (e.g. Debian). If we couldn't link against liblockfile
11735 # (no liblockfile.a installed), ensure that we don't need to.
11736 # Extract the first word of "liblockfile.so", so it can be a program name with args.
11737 set dummy liblockfile.so
; ac_word
=$2
11738 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11739 $as_echo_n "checking for $ac_word... " >&6; }
11740 if test "${ac_cv_prog_liblockfile+set}" = set; then :
11741 $as_echo_n "(cached) " >&6
11743 if test -n "$liblockfile"; then
11744 ac_cv_prog_liblockfile
="$liblockfile" # Let the user override the test.
11746 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
11747 as_dummy
="/usr/lib:/lib:/usr/local/lib:$LD_LIBRARY_PATH"
11748 for as_dir
in $as_dummy
11751 test -z "$as_dir" && as_dir
=.
11752 for ac_exec_ext
in '' $ac_executable_extensions; do
11753 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11754 ac_cv_prog_liblockfile
="yes"
11755 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11762 test -z "$ac_cv_prog_liblockfile" && ac_cv_prog_liblockfile
="no"
11765 liblockfile
=$ac_cv_prog_liblockfile
11766 if test -n "$liblockfile"; then
11767 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $liblockfile" >&5
11768 $as_echo "$liblockfile" >&6; }
11770 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11771 $as_echo "no" >&6; }
11775 if test $ac_cv_prog_liblockfile = yes; then
11776 as_fn_error
"Shared liblockfile found but can't link against it.
11777 This probably means that movemail could lose mail.
11778 There may be a \`development' package to install containing liblockfile." "$LINENO" 5
11781 for ac_func
in touchlock
11783 ac_fn_c_check_func
"$LINENO" "touchlock" "ac_cv_func_touchlock"
11784 if test "x$ac_cv_func_touchlock" = x
""yes; then :
11785 cat >>confdefs.h
<<_ACEOF
11786 #define HAVE_TOUCHLOCK 1
11792 for ac_header
in maillock.h
11794 ac_fn_c_check_header_mongrel
"$LINENO" "maillock.h" "ac_cv_header_maillock_h" "$ac_includes_default"
11795 if test "x$ac_cv_header_maillock_h" = x
""yes; then :
11796 cat >>confdefs.h
<<_ACEOF
11797 #define HAVE_MAILLOCK_H 1
11806 ## Define MAIL_USE_FLOCK (or LOCKF) if the mailer uses flock (or lockf) to
11807 ## interlock access to the mail spool. The alternative is a lock file named
11808 ## /usr/spool/mail/$USER.lock.
11811 aix4-2
) mail_lock
="lockf" ;;
11813 gnu|freebsd|netbsd|openbsd|darwin|irix6-5
) mail_lock
="flock" ;;
11815 ## On GNU/Linux systems, both methods are used by various mail programs.
11816 ## I assume most people are using newer mailers that have heard of flock.
11817 ## Change this if you need to.
11818 ## Debian contains a patch which says: ``On Debian/GNU/Linux systems,
11819 ## configure gets the right answers, and that means *NOT* using flock.
11820 ## Using flock is guaranteed to be the wrong thing. See Debian Policy
11821 ## for details.'' and then uses `#ifdef DEBIAN'. Unfortunately the
11822 ## Debian maintainer hasn't provided a clean fix for Emacs.
11823 ## movemail.c will use `maillock' when MAILDIR, HAVE_LIBMAIL and
11824 ## HAVE_MAILLOCK_H are defined, so the following appears to be the
11825 ## correct logic. -- fx
11826 ## We must check for HAVE_LIBLOCKFILE too, as movemail does.
11827 ## liblockfile is a Free Software replacement for libmail, used on
11828 ## Debian systems and elsewhere. -rfr.
11831 if test $have_mail = yes ||
test $have_lockfile = yes; then
11832 test $ac_cv_header_maillock_h = yes && mail_lock
=no
11838 case "$mail_lock" in
11840 $as_echo "#define MAIL_USE_FLOCK 1" >>confdefs.h
11844 $as_echo "#define MAIL_USE_LOCKF 1" >>confdefs.h
11847 *) BLESSMAIL_TARGET
="need-blessmail" ;;
11852 for ac_func
in gethostname getdomainname dup2 \
11853 rename closedir mkdir
rmdir sysinfo getrusage get_current_dir_name \
11854 random lrand48 logb frexp fmod rint cbrt ftime setsid \
11855 strerror fpathconf
select mktime euidaccess getpagesize tzset setlocale \
11856 utimes getrlimit setrlimit setpgid getcwd getwd shutdown getaddrinfo \
11857 __fpending mblen mbrlen mbsinit strsignal setitimer ualarm strchr strrchr \
11858 sendto recvfrom getsockopt setsockopt getsockname getpeername \
11859 gai_strerror mkstemp getline getdelim mremap memmove fsync sync \
11860 memset memcmp difftime memcpy mempcpy mblen mbrlen posix_memalign \
11861 cfmakeraw cfsetspeed isnan copysign __executable_start
11863 as_ac_var
=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
11864 ac_fn_c_check_func
"$LINENO" "$ac_func" "$as_ac_var"
11865 eval as_val
=\$
$as_ac_var
11866 if test "x$as_val" = x
""yes; then :
11867 cat >>confdefs.h
<<_ACEOF
11868 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
11875 for ac_header
in sys
/un.h
11877 ac_fn_c_check_header_mongrel
"$LINENO" "sys/un.h" "ac_cv_header_sys_un_h" "$ac_includes_default"
11878 if test "x$ac_cv_header_sys_un_h" = x
""yes; then :
11879 cat >>confdefs.h
<<_ACEOF
11880 #define HAVE_SYS_UN_H 1
11893 for ac_func
in $ac_func_list
11895 as_ac_var
=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
11896 ac_fn_c_check_func
"$LINENO" "$ac_func" "$as_ac_var"
11897 eval as_val
=\$
$as_ac_var
11898 if test "x$as_val" = x
""yes; then :
11899 cat >>confdefs.h
<<_ACEOF
11900 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
11910 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working mktime" >&5
11911 $as_echo_n "checking for working mktime... " >&6; }
11912 if test "${ac_cv_func_working_mktime+set}" = set; then :
11913 $as_echo_n "(cached) " >&6
11915 if test "$cross_compiling" = yes; then :
11916 ac_cv_func_working_mktime
=no
11918 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
11919 /* end confdefs.h. */
11920 /* Test program from Paul Eggert and Tony Leneis. */
11921 #ifdef TIME_WITH_SYS_TIME
11922 # include <sys/time.h>
11925 # ifdef HAVE_SYS_TIME_H
11926 # include <sys/time.h>
11932 #include <limits.h>
11933 #include <stdlib.h>
11935 #ifdef HAVE_UNISTD_H
11936 # include <unistd.h>
11940 # define alarm(X) /* empty */
11943 /* Work around redefinition to rpl_putenv by other config tests. */
11946 static time_t time_t_max;
11947 static time_t time_t_min;
11949 /* Values we'll use to set the TZ environment variable. */
11950 static char *tz_strings[] = {
11951 (char *) 0, "TZ=GMT0", "TZ=JST-9",
11952 "TZ=EST+3EDT+2,M10.1.0/00:00:00,M2.3.0/00:00:00"
11954 #define N_STRINGS (sizeof (tz_strings) / sizeof (tz_strings[0]))
11956 /* Return 0 if mktime fails to convert a date in the spring-forward gap.
11957 Based on a problem report from Andreas Jaeger. */
11959 spring_forward_gap ()
11961 /* glibc (up to about 1998-10-07) failed this test. */
11964 /* Use the portable POSIX.1 specification "TZ=PST8PDT,M4.1.0,M10.5.0"
11965 instead of "TZ=America/Vancouver" in order to detect the bug even
11966 on systems that don't support the Olson extension, or don't have the
11967 full zoneinfo tables installed. */
11968 putenv ("TZ=PST8PDT,M4.1.0,M10.5.0");
11977 return mktime (&tm) != (time_t) -1;
11985 return ! (lt = localtime (&now)) || mktime (lt) == now;
11992 return (mktime_test1 (now)
11993 && mktime_test1 ((time_t) (time_t_max - now))
11994 && mktime_test1 ((time_t) (time_t_min + now)));
12000 /* Based on code from Ariel Faigon. */
12010 return tm.tm_mon == 2 && tm.tm_mday == 31;
12019 tm.tm_year = tm.tm_mon = tm.tm_mday = tm.tm_hour = tm.tm_min = tm.tm_sec = j;
12020 now = mktime (&tm);
12021 if (now != (time_t) -1)
12023 struct tm *lt = localtime (&now);
12025 && lt->tm_year == tm.tm_year
12026 && lt->tm_mon == tm.tm_mon
12027 && lt->tm_mday == tm.tm_mday
12028 && lt->tm_hour == tm.tm_hour
12029 && lt->tm_min == tm.tm_min
12030 && lt->tm_sec == tm.tm_sec
12031 && lt->tm_yday == tm.tm_yday
12032 && lt->tm_wday == tm.tm_wday
12033 && ((lt->tm_isdst < 0 ? -1 : 0 < lt->tm_isdst)
12034 == (tm.tm_isdst < 0 ? -1 : 0 < tm.tm_isdst))))
12043 /* The correct answer for 2050-02-01 00:00:00 in Pacific time,
12044 ignoring leap seconds. */
12045 unsigned long int answer = 2527315200UL;
12049 tm.tm_year = 2050 - 1900;
12052 tm.tm_hour = tm.tm_min = tm.tm_sec = 0;
12055 /* Use the portable POSIX.1 specification "TZ=PST8PDT,M4.1.0,M10.5.0"
12056 instead of "TZ=America/Vancouver" in order to detect the bug even
12057 on systems that don't support the Olson extension, or don't have the
12058 full zoneinfo tables installed. */
12059 putenv ("TZ=PST8PDT,M4.1.0,M10.5.0");
12063 /* Check that the result is either a failure, or close enough
12064 to the correct answer that we can assume the discrepancy is
12065 due to leap seconds. */
12066 return (t == (time_t) -1
12067 || (0 < t && answer - 120 <= t && t <= answer + 120));
12076 /* This test makes some buggy mktime implementations loop.
12077 Give up after 60 seconds; a mktime slower than that
12078 isn't worth using anyway. */
12083 t = (time_t_max << 1) + 1;
12084 if (t <= time_t_max)
12088 time_t_min = - ((time_t) ~ (time_t) 0 == (time_t) -1) - time_t_max;
12090 delta = time_t_max / 997; /* a suitable prime number */
12091 for (i = 0; i < N_STRINGS; i++)
12094 putenv (tz_strings[i]);
12096 for (t = 0; t <= time_t_max - delta; t += delta)
12097 if (! mktime_test (t))
12099 if (! (mktime_test ((time_t) 1)
12100 && mktime_test ((time_t) (60 * 60))
12101 && mktime_test ((time_t) (60 * 60 * 24))))
12104 for (j = 1; ; j <<= 1)
12105 if (! bigtime_test (j))
12107 else if (INT_MAX / 2 < j)
12109 if (! bigtime_test (INT_MAX))
12112 return ! (irix_6_4_bug () && spring_forward_gap () && year_2050_test ());
12115 if ac_fn_c_try_run
"$LINENO"; then :
12116 ac_cv_func_working_mktime
=yes
12118 ac_cv_func_working_mktime
=no
12120 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
12121 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
12125 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_working_mktime" >&5
12126 $as_echo "$ac_cv_func_working_mktime" >&6; }
12127 if test $ac_cv_func_working_mktime = no
; then
12128 case " $LIBOBJS " in
12129 *" mktime.$ac_objext "* ) ;;
12130 *) LIBOBJS
="$LIBOBJS mktime.$ac_objext"
12136 if test "$ac_cv_func_working_mktime" = no
; then
12138 $as_echo "#define BROKEN_MKTIME 1" >>confdefs.h
12142 ac_have_func
=no
# yes means we've found a way to get the load average.
12144 # Make sure getloadavg.c is where it belongs, at configure-time.
12145 test -f "$srcdir/$ac_config_libobj_dir/getloadavg.c" ||
12146 as_fn_error
"$srcdir/$ac_config_libobj_dir/getloadavg.c is missing" "$LINENO" 5
12150 # Check for getloadavg, but be sure not to touch the cache variable.
12151 (ac_fn_c_check_func
"$LINENO" "getloadavg" "ac_cv_func_getloadavg"
12152 if test "x$ac_cv_func_getloadavg" = x
""yes; then :
12157 ) && ac_have_func
=yes
12159 # On HPUX9, an unprivileged user can get load averages through this function.
12160 for ac_func
in pstat_getdynamic
12162 ac_fn_c_check_func
"$LINENO" "pstat_getdynamic" "ac_cv_func_pstat_getdynamic"
12163 if test "x$ac_cv_func_pstat_getdynamic" = x
""yes; then :
12164 cat >>confdefs.h
<<_ACEOF
12165 #define HAVE_PSTAT_GETDYNAMIC 1
12172 # Solaris has libkstat which does not require root.
12173 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for kstat_open in -lkstat" >&5
12174 $as_echo_n "checking for kstat_open in -lkstat... " >&6; }
12175 if test "${ac_cv_lib_kstat_kstat_open+set}" = set; then :
12176 $as_echo_n "(cached) " >&6
12178 ac_check_lib_save_LIBS
=$LIBS
12179 LIBS
="-lkstat $LIBS"
12180 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
12181 /* end confdefs.h. */
12183 /* Override any GCC internal prototype to avoid an error.
12184 Use char because int might match the return type of a GCC
12185 builtin and then its argument prototype would still apply. */
12189 char kstat_open ();
12193 return kstat_open ();
12198 if ac_fn_c_try_link
"$LINENO"; then :
12199 ac_cv_lib_kstat_kstat_open
=yes
12201 ac_cv_lib_kstat_kstat_open
=no
12203 rm -f core conftest.err conftest.
$ac_objext \
12204 conftest
$ac_exeext conftest.
$ac_ext
12205 LIBS
=$ac_check_lib_save_LIBS
12207 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_kstat_kstat_open" >&5
12208 $as_echo "$ac_cv_lib_kstat_kstat_open" >&6; }
12209 if test "x$ac_cv_lib_kstat_kstat_open" = x
""yes; then :
12210 cat >>confdefs.h
<<_ACEOF
12211 #define HAVE_LIBKSTAT 1
12214 LIBS
="-lkstat $LIBS"
12218 test $ac_cv_lib_kstat_kstat_open = yes && ac_have_func
=yes
12220 # Some systems with -lutil have (and need) -lkvm as well, some do not.
12221 # On Solaris, -lkvm requires nlist from -lelf, so check that first
12222 # to get the right answer into the cache.
12223 # For kstat on solaris, we need libelf to force the definition of SVR4 below.
12224 if test $ac_have_func = no
; then
12225 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for elf_begin in -lelf" >&5
12226 $as_echo_n "checking for elf_begin in -lelf... " >&6; }
12227 if test "${ac_cv_lib_elf_elf_begin+set}" = set; then :
12228 $as_echo_n "(cached) " >&6
12230 ac_check_lib_save_LIBS
=$LIBS
12232 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
12233 /* end confdefs.h. */
12235 /* Override any GCC internal prototype to avoid an error.
12236 Use char because int might match the return type of a GCC
12237 builtin and then its argument prototype would still apply. */
12245 return elf_begin ();
12250 if ac_fn_c_try_link
"$LINENO"; then :
12251 ac_cv_lib_elf_elf_begin
=yes
12253 ac_cv_lib_elf_elf_begin
=no
12255 rm -f core conftest.err conftest.
$ac_objext \
12256 conftest
$ac_exeext conftest.
$ac_ext
12257 LIBS
=$ac_check_lib_save_LIBS
12259 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_elf_elf_begin" >&5
12260 $as_echo "$ac_cv_lib_elf_elf_begin" >&6; }
12261 if test "x$ac_cv_lib_elf_elf_begin" = x
""yes; then :
12266 if test $ac_have_func = no
; then
12267 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for kvm_open in -lkvm" >&5
12268 $as_echo_n "checking for kvm_open in -lkvm... " >&6; }
12269 if test "${ac_cv_lib_kvm_kvm_open+set}" = set; then :
12270 $as_echo_n "(cached) " >&6
12272 ac_check_lib_save_LIBS
=$LIBS
12274 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
12275 /* end confdefs.h. */
12277 /* Override any GCC internal prototype to avoid an error.
12278 Use char because int might match the return type of a GCC
12279 builtin and then its argument prototype would still apply. */
12287 return kvm_open ();
12292 if ac_fn_c_try_link
"$LINENO"; then :
12293 ac_cv_lib_kvm_kvm_open
=yes
12295 ac_cv_lib_kvm_kvm_open
=no
12297 rm -f core conftest.err conftest.
$ac_objext \
12298 conftest
$ac_exeext conftest.
$ac_ext
12299 LIBS
=$ac_check_lib_save_LIBS
12301 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_kvm_kvm_open" >&5
12302 $as_echo "$ac_cv_lib_kvm_kvm_open" >&6; }
12303 if test "x$ac_cv_lib_kvm_kvm_open" = x
""yes; then :
12307 # Check for the 4.4BSD definition of getloadavg.
12308 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for getloadavg in -lutil" >&5
12309 $as_echo_n "checking for getloadavg in -lutil... " >&6; }
12310 if test "${ac_cv_lib_util_getloadavg+set}" = set; then :
12311 $as_echo_n "(cached) " >&6
12313 ac_check_lib_save_LIBS
=$LIBS
12314 LIBS
="-lutil $LIBS"
12315 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
12316 /* end confdefs.h. */
12318 /* Override any GCC internal prototype to avoid an error.
12319 Use char because int might match the return type of a GCC
12320 builtin and then its argument prototype would still apply. */
12324 char getloadavg ();
12328 return getloadavg ();
12333 if ac_fn_c_try_link
"$LINENO"; then :
12334 ac_cv_lib_util_getloadavg
=yes
12336 ac_cv_lib_util_getloadavg
=no
12338 rm -f core conftest.err conftest.
$ac_objext \
12339 conftest
$ac_exeext conftest.
$ac_ext
12340 LIBS
=$ac_check_lib_save_LIBS
12342 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_util_getloadavg" >&5
12343 $as_echo "$ac_cv_lib_util_getloadavg" >&6; }
12344 if test "x$ac_cv_lib_util_getloadavg" = x
""yes; then :
12345 LIBS
="-lutil $LIBS" ac_have_func
=yes ac_cv_func_getloadavg_setgid
=yes
12350 if test $ac_have_func = no
; then
12351 # There is a commonly available library for RS/6000 AIX.
12352 # Since it is not a standard part of AIX, it might be installed locally.
12353 ac_getloadavg_LIBS
=$LIBS
12354 LIBS
="-L/usr/local/lib $LIBS"
12355 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for getloadavg in -lgetloadavg" >&5
12356 $as_echo_n "checking for getloadavg in -lgetloadavg... " >&6; }
12357 if test "${ac_cv_lib_getloadavg_getloadavg+set}" = set; then :
12358 $as_echo_n "(cached) " >&6
12360 ac_check_lib_save_LIBS
=$LIBS
12361 LIBS
="-lgetloadavg $LIBS"
12362 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
12363 /* end confdefs.h. */
12365 /* Override any GCC internal prototype to avoid an error.
12366 Use char because int might match the return type of a GCC
12367 builtin and then its argument prototype would still apply. */
12371 char getloadavg ();
12375 return getloadavg ();
12380 if ac_fn_c_try_link
"$LINENO"; then :
12381 ac_cv_lib_getloadavg_getloadavg
=yes
12383 ac_cv_lib_getloadavg_getloadavg
=no
12385 rm -f core conftest.err conftest.
$ac_objext \
12386 conftest
$ac_exeext conftest.
$ac_ext
12387 LIBS
=$ac_check_lib_save_LIBS
12389 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_getloadavg_getloadavg" >&5
12390 $as_echo "$ac_cv_lib_getloadavg_getloadavg" >&6; }
12391 if test "x$ac_cv_lib_getloadavg_getloadavg" = x
""yes; then :
12392 LIBS
="-lgetloadavg $LIBS"
12394 LIBS
=$ac_getloadavg_LIBS
12399 # Make sure it is really in the library, if we think we found it,
12400 # otherwise set up the replacement function.
12401 for ac_func
in getloadavg
12403 ac_fn_c_check_func
"$LINENO" "getloadavg" "ac_cv_func_getloadavg"
12404 if test "x$ac_cv_func_getloadavg" = x
""yes; then :
12405 cat >>confdefs.h
<<_ACEOF
12406 #define HAVE_GETLOADAVG 1
12410 case " $LIBOBJS " in
12411 *" getloadavg.$ac_objext "* ) ;;
12412 *) LIBOBJS
="$LIBOBJS getloadavg.$ac_objext"
12417 $as_echo "#define C_GETLOADAVG 1" >>confdefs.h
12419 # Figure out what our getloadavg.c needs.
12421 ac_fn_c_check_header_mongrel
"$LINENO" "sys/dg_sys_info.h" "ac_cv_header_sys_dg_sys_info_h" "$ac_includes_default"
12422 if test "x$ac_cv_header_sys_dg_sys_info_h" = x
""yes; then :
12425 $as_echo "#define DGUX 1" >>confdefs.h
12427 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dg_sys_info in -ldgc" >&5
12428 $as_echo_n "checking for dg_sys_info in -ldgc... " >&6; }
12429 if test "${ac_cv_lib_dgc_dg_sys_info+set}" = set; then :
12430 $as_echo_n "(cached) " >&6
12432 ac_check_lib_save_LIBS
=$LIBS
12434 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
12435 /* end confdefs.h. */
12437 /* Override any GCC internal prototype to avoid an error.
12438 Use char because int might match the return type of a GCC
12439 builtin and then its argument prototype would still apply. */
12443 char dg_sys_info ();
12447 return dg_sys_info ();
12452 if ac_fn_c_try_link
"$LINENO"; then :
12453 ac_cv_lib_dgc_dg_sys_info
=yes
12455 ac_cv_lib_dgc_dg_sys_info
=no
12457 rm -f core conftest.err conftest.
$ac_objext \
12458 conftest
$ac_exeext conftest.
$ac_ext
12459 LIBS
=$ac_check_lib_save_LIBS
12461 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dgc_dg_sys_info" >&5
12462 $as_echo "$ac_cv_lib_dgc_dg_sys_info" >&6; }
12463 if test "x$ac_cv_lib_dgc_dg_sys_info" = x
""yes; then :
12464 cat >>confdefs.h
<<_ACEOF
12465 #define HAVE_LIBDGC 1
12476 ac_fn_c_check_header_mongrel
"$LINENO" "locale.h" "ac_cv_header_locale_h" "$ac_includes_default"
12477 if test "x$ac_cv_header_locale_h" = x
""yes; then :
12482 for ac_func
in setlocale
12484 ac_fn_c_check_func
"$LINENO" "setlocale" "ac_cv_func_setlocale"
12485 if test "x$ac_cv_func_setlocale" = x
""yes; then :
12486 cat >>confdefs.h
<<_ACEOF
12487 #define HAVE_SETLOCALE 1
12494 # We cannot check for <dwarf.h>, because Solaris 2 does not use dwarf (it
12495 # uses stabs), but it is still SVR4. We cannot check for <elf.h> because
12496 # Irix 4.0.5F has the header but not the library.
12497 if test $ac_have_func = no
&& test "$ac_cv_lib_elf_elf_begin" = yes; then
12500 $as_echo "#define SVR4 1" >>confdefs.h
12504 if test $ac_have_func = no
; then
12505 ac_fn_c_check_header_mongrel
"$LINENO" "inq_stats/cpustats.h" "ac_cv_header_inq_stats_cpustats_h" "$ac_includes_default"
12506 if test "x$ac_cv_header_inq_stats_cpustats_h" = x
""yes; then :
12509 $as_echo "#define UMAX 1" >>confdefs.h
12512 $as_echo "#define UMAX4_3 1" >>confdefs.h
12519 if test $ac_have_func = no
; then
12520 ac_fn_c_check_header_mongrel
"$LINENO" "sys/cpustats.h" "ac_cv_header_sys_cpustats_h" "$ac_includes_default"
12521 if test "x$ac_cv_header_sys_cpustats_h" = x
""yes; then :
12522 ac_have_func
=yes; $as_echo "#define UMAX 1" >>confdefs.h
12529 if test $ac_have_func = no
; then
12530 for ac_header
in mach
/mach.h
12532 ac_fn_c_check_header_mongrel
"$LINENO" "mach/mach.h" "ac_cv_header_mach_mach_h" "$ac_includes_default"
12533 if test "x$ac_cv_header_mach_mach_h" = x
""yes; then :
12534 cat >>confdefs.h
<<_ACEOF
12535 #define HAVE_MACH_MACH_H 1
12544 for ac_header
in nlist.h
12546 ac_fn_c_check_header_mongrel
"$LINENO" "nlist.h" "ac_cv_header_nlist_h" "$ac_includes_default"
12547 if test "x$ac_cv_header_nlist_h" = x
""yes; then :
12548 cat >>confdefs.h
<<_ACEOF
12549 #define HAVE_NLIST_H 1
12551 ac_fn_c_check_member
"$LINENO" "struct nlist" "n_un.n_name" "ac_cv_member_struct_nlist_n_un_n_name" "#include <nlist.h>
12553 if test "x$ac_cv_member_struct_nlist_n_un_n_name" = x
""yes; then :
12555 cat >>confdefs.h
<<_ACEOF
12556 #define HAVE_STRUCT_NLIST_N_UN_N_NAME 1
12560 $as_echo "#define NLIST_NAME_UNION 1" >>confdefs.h
12573 # Some definitions of getloadavg require that the program be installed setgid.
12574 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether getloadavg requires setgid" >&5
12575 $as_echo_n "checking whether getloadavg requires setgid... " >&6; }
12576 if test "${ac_cv_func_getloadavg_setgid+set}" = set; then :
12577 $as_echo_n "(cached) " >&6
12579 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
12580 /* end confdefs.h. */
12581 #include "$srcdir/$ac_config_libobj_dir/getloadavg.c"
12582 #ifdef LDAV_PRIVILEGED
12583 Yowza Am I SETGID yet
12586 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
12587 $EGREP "Yowza Am I SETGID yet" >/dev
/null
2>&1; then :
12588 ac_cv_func_getloadavg_setgid
=yes
12590 ac_cv_func_getloadavg_setgid
=no
12595 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_getloadavg_setgid" >&5
12596 $as_echo "$ac_cv_func_getloadavg_setgid" >&6; }
12597 if test $ac_cv_func_getloadavg_setgid = yes; then
12600 $as_echo "#define GETLOADAVG_PRIVILEGED 1" >>confdefs.h
12606 if test $ac_cv_func_getloadavg_setgid = yes; then
12607 { $as_echo "$as_me:${as_lineno-$LINENO}: checking group of /dev/kmem" >&5
12608 $as_echo_n "checking group of /dev/kmem... " >&6; }
12609 if test "${ac_cv_group_kmem+set}" = set; then :
12610 $as_echo_n "(cached) " >&6
12612 # On Solaris, /dev/kmem is a symlink. Get info on the real file.
12613 ac_ls_output
=`ls -lgL /dev/kmem 2>/dev/null`
12614 # If we got an error (system does not support symlinks), try without -L.
12615 test -z "$ac_ls_output" && ac_ls_output
=`ls -lg /dev/kmem`
12616 ac_cv_group_kmem
=`$as_echo "$ac_ls_output" \
12617 | sed -ne 's/[ ][ ]*/ /g;
12618 s/^.[sSrwx-]* *[0-9]* *\([^0-9]*\) *.*/\1/;
12622 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_group_kmem" >&5
12623 $as_echo "$ac_cv_group_kmem" >&6; }
12624 KMEM_GROUP
=$ac_cv_group_kmem
12626 if test "x$ac_save_LIBS" = x
; then
12627 GETLOADAVG_LIBS
=$LIBS
12629 GETLOADAVG_LIBS
=`$as_echo "$LIBS" | sed "s|$ac_save_LIBS||"`
12635 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _LARGEFILE_SOURCE value needed for large files" >&5
12636 $as_echo_n "checking for _LARGEFILE_SOURCE value needed for large files... " >&6; }
12637 if test "${ac_cv_sys_largefile_source+set}" = set; then :
12638 $as_echo_n "(cached) " >&6
12641 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
12642 /* end confdefs.h. */
12643 #include <sys/types.h> /* for off_t */
12648 int (*fp) (FILE *, off_t, int) = fseeko;
12649 return fseeko (stdin, 0, 0) && fp (stdin, 0, 0);
12654 if ac_fn_c_try_link
"$LINENO"; then :
12655 ac_cv_sys_largefile_source
=no
; break
12657 rm -f core conftest.err conftest.
$ac_objext \
12658 conftest
$ac_exeext conftest.
$ac_ext
12659 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
12660 /* end confdefs.h. */
12661 #define _LARGEFILE_SOURCE 1
12662 #include <sys/types.h> /* for off_t */
12667 int (*fp) (FILE *, off_t, int) = fseeko;
12668 return fseeko (stdin, 0, 0) && fp (stdin, 0, 0);
12673 if ac_fn_c_try_link
"$LINENO"; then :
12674 ac_cv_sys_largefile_source
=1; break
12676 rm -f core conftest.err conftest.
$ac_objext \
12677 conftest
$ac_exeext conftest.
$ac_ext
12678 ac_cv_sys_largefile_source
=unknown
12682 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_largefile_source" >&5
12683 $as_echo "$ac_cv_sys_largefile_source" >&6; }
12684 case $ac_cv_sys_largefile_source in #(
12687 cat >>confdefs.h
<<_ACEOF
12688 #define _LARGEFILE_SOURCE $ac_cv_sys_largefile_source
12694 # We used to try defining _XOPEN_SOURCE=500 too, to work around a bug
12695 # in glibc 2.1.3, but that breaks too many other things.
12696 # If you want fseeko and ftello with glibc, upgrade to a fixed glibc.
12697 if test $ac_cv_sys_largefile_source != unknown
; then
12699 $as_echo "#define HAVE_FSEEKO 1" >>confdefs.h
12704 # Configure getopt.
12705 # getopt.m4 serial 10
12707 # The getopt module assume you want GNU getopt, with getopt_long etc,
12708 # rather than vanilla POSIX getopt. This means your your code should
12709 # always include <getopt.h> for the getopt prototypes.
12721 # Prerequisites of lib/getopt*.
12727 for ac_header
in getopt.h
12729 ac_fn_c_check_header_mongrel
"$LINENO" "getopt.h" "ac_cv_header_getopt_h" "$ac_includes_default"
12730 if test "x$ac_cv_header_getopt_h" = x
""yes; then :
12731 cat >>confdefs.h
<<_ACEOF
12732 #define HAVE_GETOPT_H 1
12741 if test -z "$GETOPT_H"; then
12742 for ac_func
in getopt_long_only
12744 ac_fn_c_check_func
"$LINENO" "getopt_long_only" "ac_cv_func_getopt_long_only"
12745 if test "x$ac_cv_func_getopt_long_only" = x
""yes; then :
12746 cat >>confdefs.h
<<_ACEOF
12747 #define HAVE_GETOPT_LONG_ONLY 1
12757 if test -z "$GETOPT_H"; then
12758 ac_fn_c_check_decl
"$LINENO" "optreset" "ac_cv_have_decl_optreset" "#include <getopt.h>
12760 if test "x$ac_cv_have_decl_optreset" = x
""yes; then :
12766 if test -z "$GETOPT_H"; then
12767 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working GNU getopt function" >&5
12768 $as_echo_n "checking for working GNU getopt function... " >&6; }
12769 if test "${gl_cv_func_gnu_getopt+set}" = set; then :
12770 $as_echo_n "(cached) " >&6
12772 if test "$cross_compiling" = yes; then :
12773 ac_fn_c_check_decl
"$LINENO" "getopt_clip" "ac_cv_have_decl_getopt_clip" "#include <getopt.h>
12775 if test "x$ac_cv_have_decl_getopt_clip" = x
""yes; then :
12776 gl_cv_func_gnu_getopt
=no
12778 gl_cv_func_gnu_getopt
=yes
12782 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
12783 /* end confdefs.h. */
12784 #include <getopt.h>
12790 myargv[0] = "conftest";
12793 return getopt (2, myargv, "+a") != '?';
12799 if ac_fn_c_try_run
"$LINENO"; then :
12800 gl_cv_func_gnu_getopt
=yes
12802 gl_cv_func_gnu_getopt
=no
12804 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
12805 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
12809 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_gnu_getopt" >&5
12810 $as_echo "$gl_cv_func_gnu_getopt" >&6; }
12811 if test "$gl_cv_func_gnu_getopt" = "no"; then
12818 if test -n "$GETOPT_H"; then :
12823 $as_echo "#define __GETOPT_PREFIX rpl_" >>confdefs.h
12828 GETOPTOBJS
='getopt.o getopt1.o'
12834 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether getpgrp requires zero arguments" >&5
12835 $as_echo_n "checking whether getpgrp requires zero arguments... " >&6; }
12836 if test "${ac_cv_func_getpgrp_void+set}" = set; then :
12837 $as_echo_n "(cached) " >&6
12839 # Use it with a single arg.
12840 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
12841 /* end confdefs.h. */
12842 $ac_includes_default
12851 if ac_fn_c_try_compile
"$LINENO"; then :
12852 ac_cv_func_getpgrp_void
=no
12854 ac_cv_func_getpgrp_void
=yes
12856 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
12859 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_getpgrp_void" >&5
12860 $as_echo "$ac_cv_func_getpgrp_void" >&6; }
12861 if test $ac_cv_func_getpgrp_void = yes; then
12863 $as_echo "#define GETPGRP_VOID 1" >>confdefs.h
12868 for ac_func
in strftime
12870 ac_fn_c_check_func
"$LINENO" "strftime" "ac_cv_func_strftime"
12871 if test "x$ac_cv_func_strftime" = x
""yes; then :
12872 cat >>confdefs.h
<<_ACEOF
12873 #define HAVE_STRFTIME 1
12877 # strftime is in -lintl on SCO UNIX.
12878 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for strftime in -lintl" >&5
12879 $as_echo_n "checking for strftime in -lintl... " >&6; }
12880 if test "${ac_cv_lib_intl_strftime+set}" = set; then :
12881 $as_echo_n "(cached) " >&6
12883 ac_check_lib_save_LIBS
=$LIBS
12884 LIBS
="-lintl $LIBS"
12885 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
12886 /* end confdefs.h. */
12888 /* Override any GCC internal prototype to avoid an error.
12889 Use char because int might match the return type of a GCC
12890 builtin and then its argument prototype would still apply. */
12898 return strftime ();
12903 if ac_fn_c_try_link
"$LINENO"; then :
12904 ac_cv_lib_intl_strftime
=yes
12906 ac_cv_lib_intl_strftime
=no
12908 rm -f core conftest.err conftest.
$ac_objext \
12909 conftest
$ac_exeext conftest.
$ac_ext
12910 LIBS
=$ac_check_lib_save_LIBS
12912 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_intl_strftime" >&5
12913 $as_echo "$ac_cv_lib_intl_strftime" >&6; }
12914 if test "x$ac_cv_lib_intl_strftime" = x
""yes; then :
12915 $as_echo "#define HAVE_STRFTIME 1" >>confdefs.h
12917 LIBS
="-lintl $LIBS"
12925 for ac_func
in grantpt
12927 ac_fn_c_check_func
"$LINENO" "grantpt" "ac_cv_func_grantpt"
12928 if test "x$ac_cv_func_grantpt" = x
""yes; then :
12929 cat >>confdefs.h
<<_ACEOF
12930 #define HAVE_GRANTPT 1
12937 # PTY-related GNU extensions.
12938 for ac_func
in getpt
12940 ac_fn_c_check_func
"$LINENO" "getpt" "ac_cv_func_getpt"
12941 if test "x$ac_cv_func_getpt" = x
""yes; then :
12942 cat >>confdefs.h
<<_ACEOF
12943 #define HAVE_GETPT 1
12950 # Check this now, so that we will NOT find the above functions in ncurses.
12951 # That is because we have not set up to link ncurses in lib-src.
12952 # It's better to believe a function is not available
12953 # than to expect to find it in ncurses.
12954 # Also we need tputs and friends to be able to build at all.
12955 have_tputs_et_al
=true
12956 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing tputs" >&5
12957 $as_echo_n "checking for library containing tputs... " >&6; }
12958 if test "${ac_cv_search_tputs+set}" = set; then :
12959 $as_echo_n "(cached) " >&6
12961 ac_func_search_save_LIBS
=$LIBS
12962 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
12963 /* end confdefs.h. */
12965 /* Override any GCC internal prototype to avoid an error.
12966 Use char because int might match the return type of a GCC
12967 builtin and then its argument prototype would still apply. */
12980 for ac_lib
in '' ncurses terminfo termcap
; do
12981 if test -z "$ac_lib"; then
12982 ac_res
="none required"
12985 LIBS
="-l$ac_lib $ac_func_search_save_LIBS"
12987 if ac_fn_c_try_link
"$LINENO"; then :
12988 ac_cv_search_tputs
=$ac_res
12990 rm -f core conftest.err conftest.
$ac_objext \
12992 if test "${ac_cv_search_tputs+set}" = set; then :
12996 if test "${ac_cv_search_tputs+set}" = set; then :
12999 ac_cv_search_tputs
=no
13001 rm conftest.
$ac_ext
13002 LIBS
=$ac_func_search_save_LIBS
13004 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_tputs" >&5
13005 $as_echo "$ac_cv_search_tputs" >&6; }
13006 ac_res
=$ac_cv_search_tputs
13007 if test "$ac_res" != no
; then :
13008 test "$ac_res" = "none required" || LIBS
="$ac_res $LIBS"
13011 have_tputs_et_al
=false
13014 if test "$have_tputs_et_al" != true
; then
13015 as_fn_error
"I couldn't find termcap functions (tputs and friends).
13016 Maybe some development libraries/packages are missing? Try installing
13017 libncurses-dev(el), libterminfo-dev(el) or similar." "$LINENO" 5
13019 # Must define this when any termcap library is found.
13021 $as_echo "#define HAVE_LIBNCURSES 1" >>confdefs.h
13023 ## FIXME This was the cpp logic, but I am not sure it is right.
13024 ## The above test has not necessarily found libncurses.
13025 HAVE_LIBNCURSES
=yes
13027 ## Use terminfo instead of termcap?
13028 ## Note only system files NOT using terminfo are:
13029 ## freebsd < 40000, ms-w32, msdos, netbsd < 599002500, and
13030 ## darwin|gnu without ncurses.
13034 ## cygwin: Fewer environment variables to go wrong, more terminal types.
13035 ## hpux10-20: Use the system provided termcap(3) library.
13036 ## openbsd: David Mazieres <dm@reeducation-labor.lcs.mit.edu> says this
13037 ## is necessary. Otherwise Emacs dumps core when run -nw.
13038 aix4-2|cygwin|hpux
*|irix6-5|openbsd|sol2
*|unixware
) TERMINFO
=yes ;;
13040 ## darwin: Prevents crashes when running Emacs in Terminal.app under 10.2.
13041 ## The ncurses library has been moved out of the System framework in
13042 ## Mac OS X 10.2. So if configure detects it, set the command-line
13043 ## option to use it.
13045 ## (HAVE_LIBNCURSES was not always true, but is since 2010-03-18.)
13046 if test "x$HAVE_LIBNCURSES" = "xyes"; then
13048 LIBS_TERMCAP
="-lncurses"
13053 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether FreeBSD is new enough to use terminfo" >&5
13054 $as_echo_n "checking whether FreeBSD is new enough to use terminfo... " >&6; }
13055 if test "${emacs_cv_freebsd_terminfo+set}" = set; then :
13056 $as_echo_n "(cached) " >&6
13058 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
13059 /* end confdefs.h. */
13060 #include <osreldate.h>
13064 #if __FreeBSD_version < 400000
13072 if ac_fn_c_try_link
"$LINENO"; then :
13073 emacs_cv_freebsd_terminfo
=yes
13075 emacs_cv_freebsd_terminfo
=no
13077 rm -f core conftest.err conftest.
$ac_objext \
13078 conftest
$ac_exeext conftest.
$ac_ext
13082 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $emacs_cv_freebsd_terminfo" >&5
13083 $as_echo "$emacs_cv_freebsd_terminfo" >&6; }
13085 if test $emacs_cv_freebsd_terminfo = yes; then
13087 LIBS_TERMCAP
="-lncurses"
13089 LIBS_TERMCAP
="-ltermcap"
13094 if test $ac_cv_search_tputs = -lterminfo; then
13096 LIBS_TERMCAP
="-lterminfo"
13098 LIBS_TERMCAP
="-ltermcap"
13105 ## hpux: Make sure we get select from libc rather than from libcurses
13106 ## because libcurses on HPUX 10.10 has a broken version of select.
13107 ## We used to use -lc -lcurses, but this may be cleaner.
13108 hpux
*) LIBS_TERMCAP
="-ltermcap" ;;
13110 openbsd
) LIBS_TERMCAP
="-lncurses" ;;
13112 ## Must use system termcap, if we use any termcap. It does special things.
13113 sol2
*) test "$TERMINFO" != yes && LIBS_TERMCAP
="-ltermcap" ;;
13116 TERMCAP_OBJ
=tparam.o
13117 if test $TERMINFO = yes; then
13119 $as_echo "#define TERMINFO 1" >>confdefs.h
13122 ## Default used to be -ltermcap. Add a case above if need something else.
13123 test "x$LIBS_TERMCAP" = "x" && LIBS_TERMCAP
="-lcurses"
13125 TERMCAP_OBJ
=terminfo.o
13131 # Do we have res_init, for detecting changes in /etc/resolv.conf?
13133 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
13134 /* end confdefs.h. */
13135 #include <netinet/in.h>
13136 #include <arpa/nameser.h>
13137 #include <resolv.h>
13146 if ac_fn_c_try_link
"$LINENO"; then :
13151 rm -f core conftest.err conftest.
$ac_objext \
13152 conftest
$ac_exeext conftest.
$ac_ext
13153 if test "$have_res_init" = no
; then
13155 LIBS
="$LIBS -lresolv"
13156 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for res_init with -lresolv" >&5
13157 $as_echo_n "checking for res_init with -lresolv... " >&6; }
13158 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
13159 /* end confdefs.h. */
13160 #include <netinet/in.h>
13161 #include <arpa/nameser.h>
13162 #include <resolv.h>
13171 if ac_fn_c_try_link
"$LINENO"; then :
13176 rm -f core conftest.err conftest.
$ac_objext \
13177 conftest
$ac_exeext conftest.
$ac_ext
13178 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_res_init" >&5
13179 $as_echo "$have_res_init" >&6; }
13180 if test "$have_res_init" = yes ; then
13186 if test "$have_res_init" = yes; then
13188 $as_echo "#define HAVE_RES_INIT 1" >>confdefs.h
13192 # Do we need the Hesiod library to provide the support routines?
13194 if test "$with_hesiod" != no
; then
13195 # Don't set $LIBS here -- see comments above. FIXME which comments?
13196 ac_fn_c_check_func
"$LINENO" "res_send" "ac_cv_func_res_send"
13197 if test "x$ac_cv_func_res_send" = x
""yes; then :
13200 ac_fn_c_check_func
"$LINENO" "__res_send" "ac_cv_func___res_send"
13201 if test "x$ac_cv_func___res_send" = x
""yes; then :
13204 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for res_send in -lresolv" >&5
13205 $as_echo_n "checking for res_send in -lresolv... " >&6; }
13206 if test "${ac_cv_lib_resolv_res_send+set}" = set; then :
13207 $as_echo_n "(cached) " >&6
13209 ac_check_lib_save_LIBS
=$LIBS
13210 LIBS
="-lresolv $LIBS"
13211 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
13212 /* end confdefs.h. */
13214 /* Override any GCC internal prototype to avoid an error.
13215 Use char because int might match the return type of a GCC
13216 builtin and then its argument prototype would still apply. */
13224 return res_send ();
13229 if ac_fn_c_try_link
"$LINENO"; then :
13230 ac_cv_lib_resolv_res_send
=yes
13232 ac_cv_lib_resolv_res_send
=no
13234 rm -f core conftest.err conftest.
$ac_objext \
13235 conftest
$ac_exeext conftest.
$ac_ext
13236 LIBS
=$ac_check_lib_save_LIBS
13238 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_resolv_res_send" >&5
13239 $as_echo "$ac_cv_lib_resolv_res_send" >&6; }
13240 if test "x$ac_cv_lib_resolv_res_send" = x
""yes; then :
13243 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for __res_send in -lresolv" >&5
13244 $as_echo_n "checking for __res_send in -lresolv... " >&6; }
13245 if test "${ac_cv_lib_resolv___res_send+set}" = set; then :
13246 $as_echo_n "(cached) " >&6
13248 ac_check_lib_save_LIBS
=$LIBS
13249 LIBS
="-lresolv $LIBS"
13250 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
13251 /* end confdefs.h. */
13253 /* Override any GCC internal prototype to avoid an error.
13254 Use char because int might match the return type of a GCC
13255 builtin and then its argument prototype would still apply. */
13259 char __res_send ();
13263 return __res_send ();
13268 if ac_fn_c_try_link
"$LINENO"; then :
13269 ac_cv_lib_resolv___res_send
=yes
13271 ac_cv_lib_resolv___res_send
=no
13273 rm -f core conftest.err conftest.
$ac_objext \
13274 conftest
$ac_exeext conftest.
$ac_ext
13275 LIBS
=$ac_check_lib_save_LIBS
13277 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_resolv___res_send" >&5
13278 $as_echo "$ac_cv_lib_resolv___res_send" >&6; }
13279 if test "x$ac_cv_lib_resolv___res_send" = x
""yes; then :
13289 if test "$resolv" = yes ; then
13294 ac_fn_c_check_func
"$LINENO" "hes_getmailhost" "ac_cv_func_hes_getmailhost"
13295 if test "x$ac_cv_func_hes_getmailhost" = x
""yes; then :
13298 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for hes_getmailhost in -lhesiod" >&5
13299 $as_echo_n "checking for hes_getmailhost in -lhesiod... " >&6; }
13300 if test "${ac_cv_lib_hesiod_hes_getmailhost+set}" = set; then :
13301 $as_echo_n "(cached) " >&6
13303 ac_check_lib_save_LIBS
=$LIBS
13304 LIBS
="-lhesiod $RESOLVLIB $LIBS"
13305 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
13306 /* end confdefs.h. */
13308 /* Override any GCC internal prototype to avoid an error.
13309 Use char because int might match the return type of a GCC
13310 builtin and then its argument prototype would still apply. */
13314 char hes_getmailhost ();
13318 return hes_getmailhost ();
13323 if ac_fn_c_try_link
"$LINENO"; then :
13324 ac_cv_lib_hesiod_hes_getmailhost
=yes
13326 ac_cv_lib_hesiod_hes_getmailhost
=no
13328 rm -f core conftest.err conftest.
$ac_objext \
13329 conftest
$ac_exeext conftest.
$ac_ext
13330 LIBS
=$ac_check_lib_save_LIBS
13332 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_hesiod_hes_getmailhost" >&5
13333 $as_echo "$ac_cv_lib_hesiod_hes_getmailhost" >&6; }
13334 if test "x$ac_cv_lib_hesiod_hes_getmailhost" = x
""yes; then :
13343 if test x
"$hesiod" = xyes
; then
13345 $as_echo "#define HAVE_LIBHESIOD 1" >>confdefs.h
13352 # Do we need libresolv (due to res_init or Hesiod)?
13353 if test "$resolv" = yes ; then
13355 $as_echo "#define HAVE_LIBRESOLV 1" >>confdefs.h
13363 # These tell us which Kerberos-related libraries to use.
13370 if test "${with_kerberos}" != no
; then
13371 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for com_err in -lcom_err" >&5
13372 $as_echo_n "checking for com_err in -lcom_err... " >&6; }
13373 if test "${ac_cv_lib_com_err_com_err+set}" = set; then :
13374 $as_echo_n "(cached) " >&6
13376 ac_check_lib_save_LIBS
=$LIBS
13377 LIBS
="-lcom_err $LIBS"
13378 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
13379 /* end confdefs.h. */
13381 /* Override any GCC internal prototype to avoid an error.
13382 Use char because int might match the return type of a GCC
13383 builtin and then its argument prototype would still apply. */
13396 if ac_fn_c_try_link
"$LINENO"; then :
13397 ac_cv_lib_com_err_com_err
=yes
13399 ac_cv_lib_com_err_com_err
=no
13401 rm -f core conftest.err conftest.
$ac_objext \
13402 conftest
$ac_exeext conftest.
$ac_ext
13403 LIBS
=$ac_check_lib_save_LIBS
13405 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_com_err_com_err" >&5
13406 $as_echo "$ac_cv_lib_com_err_com_err" >&6; }
13407 if test "x$ac_cv_lib_com_err_com_err" = x
""yes; then :
13413 if test $have_com_err = yes; then
13414 COM_ERRLIB
=-lcom_err
13415 LIBS
="$COM_ERRLIB $LIBS"
13417 $as_echo "#define HAVE_LIBCOM_ERR 1" >>confdefs.h
13420 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for mit_des_cbc_encrypt in -lcrypto" >&5
13421 $as_echo_n "checking for mit_des_cbc_encrypt in -lcrypto... " >&6; }
13422 if test "${ac_cv_lib_crypto_mit_des_cbc_encrypt+set}" = set; then :
13423 $as_echo_n "(cached) " >&6
13425 ac_check_lib_save_LIBS
=$LIBS
13426 LIBS
="-lcrypto $LIBS"
13427 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
13428 /* end confdefs.h. */
13430 /* Override any GCC internal prototype to avoid an error.
13431 Use char because int might match the return type of a GCC
13432 builtin and then its argument prototype would still apply. */
13436 char mit_des_cbc_encrypt ();
13440 return mit_des_cbc_encrypt ();
13445 if ac_fn_c_try_link
"$LINENO"; then :
13446 ac_cv_lib_crypto_mit_des_cbc_encrypt
=yes
13448 ac_cv_lib_crypto_mit_des_cbc_encrypt
=no
13450 rm -f core conftest.err conftest.
$ac_objext \
13451 conftest
$ac_exeext conftest.
$ac_ext
13452 LIBS
=$ac_check_lib_save_LIBS
13454 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_crypto_mit_des_cbc_encrypt" >&5
13455 $as_echo "$ac_cv_lib_crypto_mit_des_cbc_encrypt" >&6; }
13456 if test "x$ac_cv_lib_crypto_mit_des_cbc_encrypt" = x
""yes; then :
13462 if test $have_crypto = yes; then
13464 LIBS
="$CRYPTOLIB $LIBS"
13466 $as_echo "#define HAVE_LIBCRYPTO 1" >>confdefs.h
13469 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for mit_des_cbc_encrypt in -lk5crypto" >&5
13470 $as_echo_n "checking for mit_des_cbc_encrypt in -lk5crypto... " >&6; }
13471 if test "${ac_cv_lib_k5crypto_mit_des_cbc_encrypt+set}" = set; then :
13472 $as_echo_n "(cached) " >&6
13474 ac_check_lib_save_LIBS
=$LIBS
13475 LIBS
="-lk5crypto $LIBS"
13476 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
13477 /* end confdefs.h. */
13479 /* Override any GCC internal prototype to avoid an error.
13480 Use char because int might match the return type of a GCC
13481 builtin and then its argument prototype would still apply. */
13485 char mit_des_cbc_encrypt ();
13489 return mit_des_cbc_encrypt ();
13494 if ac_fn_c_try_link
"$LINENO"; then :
13495 ac_cv_lib_k5crypto_mit_des_cbc_encrypt
=yes
13497 ac_cv_lib_k5crypto_mit_des_cbc_encrypt
=no
13499 rm -f core conftest.err conftest.
$ac_objext \
13500 conftest
$ac_exeext conftest.
$ac_ext
13501 LIBS
=$ac_check_lib_save_LIBS
13503 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_k5crypto_mit_des_cbc_encrypt" >&5
13504 $as_echo "$ac_cv_lib_k5crypto_mit_des_cbc_encrypt" >&6; }
13505 if test "x$ac_cv_lib_k5crypto_mit_des_cbc_encrypt" = x
""yes; then :
13511 if test $have_k5crypto = yes; then
13512 CRYPTOLIB
=-lk5crypto
13513 LIBS
="$CRYPTOLIB $LIBS"
13515 $as_echo "#define HAVE_LIBK5CRYPTO 1" >>confdefs.h
13518 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for krb5_init_context in -lkrb5" >&5
13519 $as_echo_n "checking for krb5_init_context in -lkrb5... " >&6; }
13520 if test "${ac_cv_lib_krb5_krb5_init_context+set}" = set; then :
13521 $as_echo_n "(cached) " >&6
13523 ac_check_lib_save_LIBS
=$LIBS
13524 LIBS
="-lkrb5 $LIBS"
13525 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
13526 /* end confdefs.h. */
13528 /* Override any GCC internal prototype to avoid an error.
13529 Use char because int might match the return type of a GCC
13530 builtin and then its argument prototype would still apply. */
13534 char krb5_init_context ();
13538 return krb5_init_context ();
13543 if ac_fn_c_try_link
"$LINENO"; then :
13544 ac_cv_lib_krb5_krb5_init_context
=yes
13546 ac_cv_lib_krb5_krb5_init_context
=no
13548 rm -f core conftest.err conftest.
$ac_objext \
13549 conftest
$ac_exeext conftest.
$ac_ext
13550 LIBS
=$ac_check_lib_save_LIBS
13552 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_krb5_krb5_init_context" >&5
13553 $as_echo "$ac_cv_lib_krb5_krb5_init_context" >&6; }
13554 if test "x$ac_cv_lib_krb5_krb5_init_context" = x
""yes; then :
13560 if test $have_krb5=yes; then
13562 LIBS
="$KRB5LIB $LIBS"
13564 $as_echo "#define HAVE_LIBKRB5 1" >>confdefs.h
13567 if test "${with_kerberos5}" = no
; then
13568 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for des_cbc_encrypt in -ldes425" >&5
13569 $as_echo_n "checking for des_cbc_encrypt in -ldes425... " >&6; }
13570 if test "${ac_cv_lib_des425_des_cbc_encrypt+set}" = set; then :
13571 $as_echo_n "(cached) " >&6
13573 ac_check_lib_save_LIBS
=$LIBS
13574 LIBS
="-ldes425 $LIBS"
13575 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
13576 /* end confdefs.h. */
13578 /* Override any GCC internal prototype to avoid an error.
13579 Use char because int might match the return type of a GCC
13580 builtin and then its argument prototype would still apply. */
13584 char des_cbc_encrypt ();
13588 return des_cbc_encrypt ();
13593 if ac_fn_c_try_link
"$LINENO"; then :
13594 ac_cv_lib_des425_des_cbc_encrypt
=yes
13596 ac_cv_lib_des425_des_cbc_encrypt
=no
13598 rm -f core conftest.err conftest.
$ac_objext \
13599 conftest
$ac_exeext conftest.
$ac_ext
13600 LIBS
=$ac_check_lib_save_LIBS
13602 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_des425_des_cbc_encrypt" >&5
13603 $as_echo "$ac_cv_lib_des425_des_cbc_encrypt" >&6; }
13604 if test "x$ac_cv_lib_des425_des_cbc_encrypt" = x
""yes; then :
13610 if test $have_des425 = yes; then
13612 LIBS
="$DESLIB $LIBS"
13614 $as_echo "#define HAVE_LIBDES425 1" >>confdefs.h
13617 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for des_cbc_encrypt in -ldes" >&5
13618 $as_echo_n "checking for des_cbc_encrypt in -ldes... " >&6; }
13619 if test "${ac_cv_lib_des_des_cbc_encrypt+set}" = set; then :
13620 $as_echo_n "(cached) " >&6
13622 ac_check_lib_save_LIBS
=$LIBS
13624 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
13625 /* end confdefs.h. */
13627 /* Override any GCC internal prototype to avoid an error.
13628 Use char because int might match the return type of a GCC
13629 builtin and then its argument prototype would still apply. */
13633 char des_cbc_encrypt ();
13637 return des_cbc_encrypt ();
13642 if ac_fn_c_try_link
"$LINENO"; then :
13643 ac_cv_lib_des_des_cbc_encrypt
=yes
13645 ac_cv_lib_des_des_cbc_encrypt
=no
13647 rm -f core conftest.err conftest.
$ac_objext \
13648 conftest
$ac_exeext conftest.
$ac_ext
13649 LIBS
=$ac_check_lib_save_LIBS
13651 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_des_des_cbc_encrypt" >&5
13652 $as_echo "$ac_cv_lib_des_des_cbc_encrypt" >&6; }
13653 if test "x$ac_cv_lib_des_des_cbc_encrypt" = x
""yes; then :
13659 if test $have_des = yes; then
13661 LIBS
="$DESLIB $LIBS"
13663 $as_echo "#define HAVE_LIBDES 1" >>confdefs.h
13667 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for krb_get_cred in -lkrb4" >&5
13668 $as_echo_n "checking for krb_get_cred in -lkrb4... " >&6; }
13669 if test "${ac_cv_lib_krb4_krb_get_cred+set}" = set; then :
13670 $as_echo_n "(cached) " >&6
13672 ac_check_lib_save_LIBS
=$LIBS
13673 LIBS
="-lkrb4 $LIBS"
13674 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
13675 /* end confdefs.h. */
13677 /* Override any GCC internal prototype to avoid an error.
13678 Use char because int might match the return type of a GCC
13679 builtin and then its argument prototype would still apply. */
13683 char krb_get_cred ();
13687 return krb_get_cred ();
13692 if ac_fn_c_try_link
"$LINENO"; then :
13693 ac_cv_lib_krb4_krb_get_cred
=yes
13695 ac_cv_lib_krb4_krb_get_cred
=no
13697 rm -f core conftest.err conftest.
$ac_objext \
13698 conftest
$ac_exeext conftest.
$ac_ext
13699 LIBS
=$ac_check_lib_save_LIBS
13701 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_krb4_krb_get_cred" >&5
13702 $as_echo "$ac_cv_lib_krb4_krb_get_cred" >&6; }
13703 if test "x$ac_cv_lib_krb4_krb_get_cred" = x
""yes; then :
13709 if test $have_krb4 = yes; then
13711 LIBS
="$KRB4LIB $LIBS"
13713 $as_echo "#define HAVE_LIBKRB4 1" >>confdefs.h
13716 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for krb_get_cred in -lkrb" >&5
13717 $as_echo_n "checking for krb_get_cred in -lkrb... " >&6; }
13718 if test "${ac_cv_lib_krb_krb_get_cred+set}" = set; then :
13719 $as_echo_n "(cached) " >&6
13721 ac_check_lib_save_LIBS
=$LIBS
13723 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
13724 /* end confdefs.h. */
13726 /* Override any GCC internal prototype to avoid an error.
13727 Use char because int might match the return type of a GCC
13728 builtin and then its argument prototype would still apply. */
13732 char krb_get_cred ();
13736 return krb_get_cred ();
13741 if ac_fn_c_try_link
"$LINENO"; then :
13742 ac_cv_lib_krb_krb_get_cred
=yes
13744 ac_cv_lib_krb_krb_get_cred
=no
13746 rm -f core conftest.err conftest.
$ac_objext \
13747 conftest
$ac_exeext conftest.
$ac_ext
13748 LIBS
=$ac_check_lib_save_LIBS
13750 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_krb_krb_get_cred" >&5
13751 $as_echo "$ac_cv_lib_krb_krb_get_cred" >&6; }
13752 if test "x$ac_cv_lib_krb_krb_get_cred" = x
""yes; then :
13758 if test $have_krb = yes; then
13760 LIBS
="$KRB4LIB $LIBS"
13762 $as_echo "#define HAVE_LIBKRB 1" >>confdefs.h
13768 if test "${with_kerberos5}" != no
; then
13769 for ac_header
in krb5.h
13771 ac_fn_c_check_header_mongrel
"$LINENO" "krb5.h" "ac_cv_header_krb5_h" "$ac_includes_default"
13772 if test "x$ac_cv_header_krb5_h" = x
""yes; then :
13773 cat >>confdefs.h
<<_ACEOF
13774 #define HAVE_KRB5_H 1
13776 ac_fn_c_check_member
"$LINENO" "krb5_error" "text" "ac_cv_member_krb5_error_text" "#include <krb5.h>
13778 if test "x$ac_cv_member_krb5_error_text" = x
""yes; then :
13780 cat >>confdefs.h
<<_ACEOF
13781 #define HAVE_KRB5_ERROR_TEXT 1
13786 ac_fn_c_check_member
"$LINENO" "krb5_error" "e_text" "ac_cv_member_krb5_error_e_text" "#include <krb5.h>
13788 if test "x$ac_cv_member_krb5_error_e_text" = x
""yes; then :
13790 cat >>confdefs.h
<<_ACEOF
13791 #define HAVE_KRB5_ERROR_E_TEXT 1
13802 for ac_header
in des.h
13804 ac_fn_c_check_header_mongrel
"$LINENO" "des.h" "ac_cv_header_des_h" "$ac_includes_default"
13805 if test "x$ac_cv_header_des_h" = x
""yes; then :
13806 cat >>confdefs.h
<<_ACEOF
13807 #define HAVE_DES_H 1
13811 for ac_header
in kerberosIV
/des.h
13813 ac_fn_c_check_header_mongrel
"$LINENO" "kerberosIV/des.h" "ac_cv_header_kerberosIV_des_h" "$ac_includes_default"
13814 if test "x$ac_cv_header_kerberosIV_des_h" = x
""yes; then :
13815 cat >>confdefs.h
<<_ACEOF
13816 #define HAVE_KERBEROSIV_DES_H 1
13820 for ac_header
in kerberos
/des.h
13822 ac_fn_c_check_header_mongrel
"$LINENO" "kerberos/des.h" "ac_cv_header_kerberos_des_h" "$ac_includes_default"
13823 if test "x$ac_cv_header_kerberos_des_h" = x
""yes; then :
13824 cat >>confdefs.h
<<_ACEOF
13825 #define HAVE_KERBEROS_DES_H 1
13840 for ac_header
in krb.h
13842 ac_fn_c_check_header_mongrel
"$LINENO" "krb.h" "ac_cv_header_krb_h" "$ac_includes_default"
13843 if test "x$ac_cv_header_krb_h" = x
""yes; then :
13844 cat >>confdefs.h
<<_ACEOF
13845 #define HAVE_KRB_H 1
13849 for ac_header
in kerberosIV
/krb.h
13851 ac_fn_c_check_header_mongrel
"$LINENO" "kerberosIV/krb.h" "ac_cv_header_kerberosIV_krb_h" "$ac_includes_default"
13852 if test "x$ac_cv_header_kerberosIV_krb_h" = x
""yes; then :
13853 cat >>confdefs.h
<<_ACEOF
13854 #define HAVE_KERBEROSIV_KRB_H 1
13858 for ac_header
in kerberos
/krb.h
13860 ac_fn_c_check_header_mongrel
"$LINENO" "kerberos/krb.h" "ac_cv_header_kerberos_krb_h" "$ac_includes_default"
13861 if test "x$ac_cv_header_kerberos_krb_h" = x
""yes; then :
13862 cat >>confdefs.h
<<_ACEOF
13863 #define HAVE_KERBEROS_KRB_H 1
13879 for ac_header
in com_err.h
13881 ac_fn_c_check_header_mongrel
"$LINENO" "com_err.h" "ac_cv_header_com_err_h" "$ac_includes_default"
13882 if test "x$ac_cv_header_com_err_h" = x
""yes; then :
13883 cat >>confdefs.h
<<_ACEOF
13884 #define HAVE_COM_ERR_H 1
13899 # Solaris requires -lintl if you want strerror (which calls dgettext)
13900 # to return localized messages.
13901 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dgettext in -lintl" >&5
13902 $as_echo_n "checking for dgettext in -lintl... " >&6; }
13903 if test "${ac_cv_lib_intl_dgettext+set}" = set; then :
13904 $as_echo_n "(cached) " >&6
13906 ac_check_lib_save_LIBS
=$LIBS
13907 LIBS
="-lintl $LIBS"
13908 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
13909 /* end confdefs.h. */
13911 /* Override any GCC internal prototype to avoid an error.
13912 Use char because int might match the return type of a GCC
13913 builtin and then its argument prototype would still apply. */
13921 return dgettext ();
13926 if ac_fn_c_try_link
"$LINENO"; then :
13927 ac_cv_lib_intl_dgettext
=yes
13929 ac_cv_lib_intl_dgettext
=no
13931 rm -f core conftest.err conftest.
$ac_objext \
13932 conftest
$ac_exeext conftest.
$ac_ext
13933 LIBS
=$ac_check_lib_save_LIBS
13935 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_intl_dgettext" >&5
13936 $as_echo "$ac_cv_lib_intl_dgettext" >&6; }
13937 if test "x$ac_cv_lib_intl_dgettext" = x
""yes; then :
13938 cat >>confdefs.h
<<_ACEOF
13939 #define HAVE_LIBINTL 1
13942 LIBS
="-lintl $LIBS"
13947 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether localtime caches TZ" >&5
13948 $as_echo_n "checking whether localtime caches TZ... " >&6; }
13949 if test "${emacs_cv_localtime_cache+set}" = set; then :
13950 $as_echo_n "(cached) " >&6
13952 if test x
$ac_cv_func_tzset = xyes
; then
13953 if test "$cross_compiling" = yes; then :
13954 # If we have tzset, assume the worst when cross-compiling.
13955 emacs_cv_localtime_cache
=yes
13957 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
13958 /* end confdefs.h. */
13960 extern char **environ;
13964 for (to = from = environ; (*to = *from); from++)
13965 if (! (to[0][0] == 'T' && to[0][1] == 'Z' && to[0][2] == '='))
13968 char TZ_GMT0[] = "TZ=GMT0";
13969 char TZ_PST8[] = "TZ=PST8";
13972 time_t now = time ((time_t *) 0);
13973 int hour_GMT0, hour_unset;
13974 if (putenv (TZ_GMT0) != 0)
13976 hour_GMT0 = localtime (&now)->tm_hour;
13978 hour_unset = localtime (&now)->tm_hour;
13979 if (putenv (TZ_PST8) != 0)
13981 if (localtime (&now)->tm_hour == hour_GMT0)
13984 if (localtime (&now)->tm_hour != hour_unset)
13989 if ac_fn_c_try_run
"$LINENO"; then :
13990 emacs_cv_localtime_cache
=no
13992 emacs_cv_localtime_cache
=yes
13994 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
13995 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
13999 # If we lack tzset, report that localtime does not cache TZ,
14000 # since we can't invalidate the cache if we don't have tzset.
14001 emacs_cv_localtime_cache
=no
14004 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $emacs_cv_localtime_cache" >&5
14005 $as_echo "$emacs_cv_localtime_cache" >&6; }
14006 if test $emacs_cv_localtime_cache = yes; then
14008 $as_echo "#define LOCALTIME_CACHE 1" >>confdefs.h
14012 if test "x$HAVE_TIMEVAL" = xyes
; then
14013 for ac_func
in gettimeofday
14015 ac_fn_c_check_func
"$LINENO" "gettimeofday" "ac_cv_func_gettimeofday"
14016 if test "x$ac_cv_func_gettimeofday" = x
""yes; then :
14017 cat >>confdefs.h
<<_ACEOF
14018 #define HAVE_GETTIMEOFDAY 1
14024 if test $ac_cv_func_gettimeofday = yes; then
14025 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether gettimeofday can accept two arguments" >&5
14026 $as_echo_n "checking whether gettimeofday can accept two arguments... " >&6; }
14027 if test "${emacs_cv_gettimeofday_two_arguments+set}" = set; then :
14028 $as_echo_n "(cached) " >&6
14030 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
14031 /* end confdefs.h. */
14033 #ifdef TIME_WITH_SYS_TIME
14034 #include <sys/time.h>
14037 #ifdef HAVE_SYS_TIME_H
14038 #include <sys/time.h>
14046 struct timeval time;
14047 gettimeofday (&time, 0);
14052 if ac_fn_c_try_compile
"$LINENO"; then :
14053 emacs_cv_gettimeofday_two_arguments
=yes
14055 emacs_cv_gettimeofday_two_arguments
=no
14057 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
14059 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $emacs_cv_gettimeofday_two_arguments" >&5
14060 $as_echo "$emacs_cv_gettimeofday_two_arguments" >&6; }
14061 if test $emacs_cv_gettimeofday_two_arguments = no
; then
14063 $as_echo "#define GETTIMEOFDAY_ONE_ARGUMENT 1" >>confdefs.h
14070 ac_fn_c_check_func
"$LINENO" "socket" "ac_cv_func_socket"
14071 if test "x$ac_cv_func_socket" = x
""yes; then :
14077 if test $ok_so_far = yes; then
14078 ac_fn_c_check_header_mongrel
"$LINENO" "netinet/in.h" "ac_cv_header_netinet_in_h" "$ac_includes_default"
14079 if test "x$ac_cv_header_netinet_in_h" = x
""yes; then :
14087 if test $ok_so_far = yes; then
14088 ac_fn_c_check_header_mongrel
"$LINENO" "arpa/inet.h" "ac_cv_header_arpa_inet_h" "$ac_includes_default"
14089 if test "x$ac_cv_header_arpa_inet_h" = x
""yes; then :
14097 if test $ok_so_far = yes; then
14099 $as_echo "#define HAVE_INET_SOCKETS 1" >>confdefs.h
14103 for ac_header
in sys
/ioctl.h
14105 ac_fn_c_check_header_mongrel
"$LINENO" "sys/ioctl.h" "ac_cv_header_sys_ioctl_h" "$ac_includes_default"
14106 if test "x$ac_cv_header_sys_ioctl_h" = x
""yes; then :
14107 cat >>confdefs.h
<<_ACEOF
14108 #define HAVE_SYS_IOCTL_H 1
14116 if test -f /usr
/lpp
/X11
/bin
/smt.exp
; then
14118 $as_echo "#define HAVE_AIX_SMT_EXP 1" >>confdefs.h
14122 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether system supports dynamic ptys" >&5
14123 $as_echo_n "checking whether system supports dynamic ptys... " >&6; }
14124 if test -d /dev
/pts
&& ls -d /dev
/ptmx
> /dev
/null
2>&1 ; then
14125 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
14126 $as_echo "yes" >&6; }
14128 $as_echo "#define HAVE_DEV_PTMX 1" >>confdefs.h
14131 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14132 $as_echo "no" >&6; }
14135 ac_fn_c_check_type
"$LINENO" "pid_t" "ac_cv_type_pid_t" "$ac_includes_default"
14136 if test "x$ac_cv_type_pid_t" = x
""yes; then :
14140 cat >>confdefs.h
<<_ACEOF
14146 for ac_header
in vfork.h
14148 ac_fn_c_check_header_mongrel
"$LINENO" "vfork.h" "ac_cv_header_vfork_h" "$ac_includes_default"
14149 if test "x$ac_cv_header_vfork_h" = x
""yes; then :
14150 cat >>confdefs.h
<<_ACEOF
14151 #define HAVE_VFORK_H 1
14158 for ac_func
in fork vfork
14160 as_ac_var
=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
14161 ac_fn_c_check_func
"$LINENO" "$ac_func" "$as_ac_var"
14162 eval as_val
=\$
$as_ac_var
14163 if test "x$as_val" = x
""yes; then :
14164 cat >>confdefs.h
<<_ACEOF
14165 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
14171 if test "x$ac_cv_func_fork" = xyes
; then
14172 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working fork" >&5
14173 $as_echo_n "checking for working fork... " >&6; }
14174 if test "${ac_cv_func_fork_works+set}" = set; then :
14175 $as_echo_n "(cached) " >&6
14177 if test "$cross_compiling" = yes; then :
14178 ac_cv_func_fork_works
=cross
14180 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
14181 /* end confdefs.h. */
14182 $ac_includes_default
14187 /* By Ruediger Kuhlmann. */
14188 return fork () < 0;
14194 if ac_fn_c_try_run
"$LINENO"; then :
14195 ac_cv_func_fork_works
=yes
14197 ac_cv_func_fork_works
=no
14199 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
14200 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
14204 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_fork_works" >&5
14205 $as_echo "$ac_cv_func_fork_works" >&6; }
14208 ac_cv_func_fork_works
=$ac_cv_func_fork
14210 if test "x$ac_cv_func_fork_works" = xcross
; then
14212 *-*-amigaos* |
*-*-msdosdjgpp*)
14213 # Override, as these systems have only a dummy fork() stub
14214 ac_cv_func_fork_works
=no
14217 ac_cv_func_fork_works
=yes
14220 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: result $ac_cv_func_fork_works guessed because of cross compilation" >&5
14221 $as_echo "$as_me: WARNING: result $ac_cv_func_fork_works guessed because of cross compilation" >&2;}
14223 ac_cv_func_vfork_works
=$ac_cv_func_vfork
14224 if test "x$ac_cv_func_vfork" = xyes
; then
14225 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working vfork" >&5
14226 $as_echo_n "checking for working vfork... " >&6; }
14227 if test "${ac_cv_func_vfork_works+set}" = set; then :
14228 $as_echo_n "(cached) " >&6
14230 if test "$cross_compiling" = yes; then :
14231 ac_cv_func_vfork_works
=cross
14233 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
14234 /* end confdefs.h. */
14235 /* Thanks to Paul Eggert for this test. */
14236 $ac_includes_default
14237 #include <sys/wait.h>
14238 #ifdef HAVE_VFORK_H
14239 # include <vfork.h>
14241 /* On some sparc systems, changes by the child to local and incoming
14242 argument registers are propagated back to the parent. The compiler
14243 is told about this with #include <vfork.h>, but some compilers
14244 (e.g. gcc -O) don't grok <vfork.h>. Test for this by using a
14245 static variable whose address is put into a register that is
14246 clobbered by the vfork. */
14249 sparc_address_test (int arg)
14251 sparc_address_test (arg) int arg;
14254 static pid_t child;
14272 pid_t parent = getpid ();
14275 sparc_address_test (0);
14280 /* Here is another test for sparc vfork register problems. This
14281 test uses lots of local variables, at least as many local
14282 variables as main has allocated so far including compiler
14283 temporaries. 4 locals are enough for gcc 1.40.3 on a Solaris
14284 4.1.3 sparc, but we use 8 to be safe. A buggy compiler should
14285 reuse the register of parent for one of the local variables,
14286 since it will think that parent can't possibly be used any more
14287 in this routine. Assigning to the local variable will thus
14288 munge parent in the parent process. */
14290 p = getpid(), p1 = getpid(), p2 = getpid(), p3 = getpid(),
14291 p4 = getpid(), p5 = getpid(), p6 = getpid(), p7 = getpid();
14292 /* Convince the compiler that p..p7 are live; otherwise, it might
14293 use the same hardware register for all 8 local variables. */
14294 if (p != p1 || p != p2 || p != p3 || p != p4
14295 || p != p5 || p != p6 || p != p7)
14298 /* On some systems (e.g. IRIX 3.3), vfork doesn't separate parent
14299 from child file descriptors. If the child closes a descriptor
14300 before it execs or exits, this munges the parent's descriptor
14301 as well. Test for this by closing stdout in the child. */
14302 _exit(close(fileno(stdout)) != 0);
14307 while (wait(&status) != child)
14310 /* Was there some problem with vforking? */
14313 /* Did the child fail? (This shouldn't happen.) */
14316 /* Did the vfork/compiler bug occur? */
14317 || parent != getpid()
14319 /* Did the file descriptor bug occur? */
14320 || fstat(fileno(stdout), &st) != 0
14325 if ac_fn_c_try_run
"$LINENO"; then :
14326 ac_cv_func_vfork_works
=yes
14328 ac_cv_func_vfork_works
=no
14330 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
14331 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
14335 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_vfork_works" >&5
14336 $as_echo "$ac_cv_func_vfork_works" >&6; }
14339 if test "x$ac_cv_func_fork_works" = xcross
; then
14340 ac_cv_func_vfork_works
=$ac_cv_func_vfork
14341 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: result $ac_cv_func_vfork_works guessed because of cross compilation" >&5
14342 $as_echo "$as_me: WARNING: result $ac_cv_func_vfork_works guessed because of cross compilation" >&2;}
14345 if test "x$ac_cv_func_vfork_works" = xyes
; then
14347 $as_echo "#define HAVE_WORKING_VFORK 1" >>confdefs.h
14351 $as_echo "#define vfork fork" >>confdefs.h
14354 if test "x$ac_cv_func_fork_works" = xyes
; then
14356 $as_echo "#define HAVE_WORKING_FORK 1" >>confdefs.h
14361 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for nl_langinfo and CODESET" >&5
14362 $as_echo_n "checking for nl_langinfo and CODESET... " >&6; }
14363 if test "${emacs_cv_langinfo_codeset+set}" = set; then :
14364 $as_echo_n "(cached) " >&6
14366 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
14367 /* end confdefs.h. */
14368 #include <langinfo.h>
14372 char* cs = nl_langinfo(CODESET);
14377 if ac_fn_c_try_link
"$LINENO"; then :
14378 emacs_cv_langinfo_codeset
=yes
14380 emacs_cv_langinfo_codeset
=no
14382 rm -f core conftest.err conftest.
$ac_objext \
14383 conftest
$ac_exeext conftest.
$ac_ext
14386 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $emacs_cv_langinfo_codeset" >&5
14387 $as_echo "$emacs_cv_langinfo_codeset" >&6; }
14388 if test $emacs_cv_langinfo_codeset = yes; then
14390 $as_echo "#define HAVE_LANGINFO_CODESET 1" >>confdefs.h
14394 ac_fn_c_check_type
"$LINENO" "size_t" "ac_cv_type_size_t" "$ac_includes_default"
14395 if test "x$ac_cv_type_size_t" = x
""yes; then :
14397 cat >>confdefs.h
<<_ACEOF
14398 #define HAVE_SIZE_T 1
14405 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for mbstate_t" >&5
14406 $as_echo_n "checking for mbstate_t... " >&6; }
14407 if test "${ac_cv_type_mbstate_t+set}" = set; then :
14408 $as_echo_n "(cached) " >&6
14410 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
14411 /* end confdefs.h. */
14412 $ac_includes_default
14413 # include <wchar.h>
14417 mbstate_t x; return sizeof x;
14422 if ac_fn_c_try_compile
"$LINENO"; then :
14423 ac_cv_type_mbstate_t
=yes
14425 ac_cv_type_mbstate_t
=no
14427 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
14429 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_mbstate_t" >&5
14430 $as_echo "$ac_cv_type_mbstate_t" >&6; }
14431 if test $ac_cv_type_mbstate_t = yes; then
14433 $as_echo "#define HAVE_MBSTATE_T 1" >>confdefs.h
14437 $as_echo "#define mbstate_t int" >>confdefs.h
14441 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for C restrict keyword" >&5
14442 $as_echo_n "checking for C restrict keyword... " >&6; }
14443 if test "${emacs_cv_c_restrict+set}" = set; then :
14444 $as_echo_n "(cached) " >&6
14446 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
14447 /* end confdefs.h. */
14448 void fred (int *restrict x);
14457 if ac_fn_c_try_compile
"$LINENO"; then :
14458 emacs_cv_c_restrict
=yes
14460 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
14461 /* end confdefs.h. */
14462 void fred (int *__restrict x);
14471 if ac_fn_c_try_compile
"$LINENO"; then :
14472 emacs_cv_c_restrict
=__restrict
14474 emacs_cv_c_restrict
=no
14476 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
14478 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
14480 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $emacs_cv_c_restrict" >&5
14481 $as_echo "$emacs_cv_c_restrict" >&6; }
14482 case "$emacs_cv_c_restrict" in
14483 yes) emacs_restrict
=restrict
;;
14484 no
) emacs_restrict
="";;
14485 *) emacs_restrict
="$emacs_cv_c_restrict";;
14487 if test "$emacs_restrict" != __restrict
; then
14489 cat >>confdefs.h
<<_ACEOF
14490 #define __restrict $emacs_restrict
14495 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for C restricted array declarations" >&5
14496 $as_echo_n "checking for C restricted array declarations... " >&6; }
14497 if test "${emacs_cv_c_restrict_arr+set}" = set; then :
14498 $as_echo_n "(cached) " >&6
14500 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
14501 /* end confdefs.h. */
14502 void fred (int x[__restrict]);
14511 if ac_fn_c_try_compile
"$LINENO"; then :
14512 emacs_cv_c_restrict_arr
=yes
14514 emacs_cv_c_restrict_arr
=no
14516 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
14518 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $emacs_cv_c_restrict_arr" >&5
14519 $as_echo "$emacs_cv_c_restrict_arr" >&6; }
14520 if test "$emacs_cv_c_restrict_arr" = yes; then
14522 $as_echo "#define __restrict_arr __restrict" >>confdefs.h
14528 # Set up the CFLAGS for real compilation, so we can substitute it.
14529 CFLAGS
="$REAL_CFLAGS"
14530 CPPFLAGS
="$REAL_CPPFLAGS"
14532 ## Hack to detect a buggy GCC version.
14533 if test "x$GCC" = xyes \
14534 && test x
"`$CC --version 2> /dev/null | grep 'gcc.* 4.5.0'`" != x \
14535 && test x
"`echo $CFLAGS | grep '\-O[23]'`" != x \
14536 && test x
"`echo $CFLAGS | grep '\-fno-optimize-sibling-calls'`" = x
; then
14537 as_fn_error
"GCC 4.5.0 has problems compiling Emacs; see etc/PROBLEMS'." "$LINENO" 5
14540 #### Find out which version of Emacs this is.
14541 version
=`grep 'const char emacs_version' ${srcdir}/src/emacs.c \
14542 | sed -e 's/^[^"]*"\([^"]*\)".*$/\1/'`
14543 if test x
"${version}" = x
; then
14544 as_fn_error
"can't find current emacs version in \`${srcdir}/src/emacs.c'." "$LINENO" 5
14546 if test x
"${version}" != x
"$PACKAGE_VERSION"; then
14547 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: version mismatch between \`${srcdir}/configure.in' and \`${srcdir}/src/emacs.c'." >&5
14548 $as_echo "$as_me: WARNING: version mismatch between \`${srcdir}/configure.in' and \`${srcdir}/src/emacs.c'." >&2;}
14551 ### Specify what sort of things we'll be editing into Makefile and config.h.
14552 ### Use configuration here uncanonicalized to avoid exceeding size limits.
14576 ## FIXME? Nothing uses @LD_SWITCH_X_SITE@.
14577 ## src/Makefile.in did add LD_SWITCH_X_SITE (as a cpp define) to the
14578 ## end of LIBX_BASE, but nothing ever set it.
14583 ## Used in lwlib/Makefile.in.
14596 cat >>confdefs.h <<_ACEOF
14597 #define EMACS_CONFIGURATION "${canonical}"
14601 cat >>confdefs.h <<_ACEOF
14602 #define EMACS_CONFIG_OPTIONS "${ac_configure_args}"
14606 cat >>confdefs.h <<_ACEOF
14607 #define config_machfile "${machfile}"
14611 cat >>confdefs.h <<_ACEOF
14612 #define config_opsysfile "${opsysfile}"
14619 if test "${HAVE_X_WINDOWS}" = "yes" ; then
14621 $as_echo "#define HAVE_X_WINDOWS 1" >>confdefs.h
14624 XOBJ
="xterm.o xfns.o xselect.o xrdb.o fontset.o xsmfns.o fringe.o image.o xsettings.o xgselect.o"
14626 if test "$HAVE_XFT" = "yes"; then
14627 FONT_OBJ
="$FONT_OBJ ftfont.o xftfont.o ftxfont.o"
14628 elif test "$HAVE_FREETYPE" = "yes"; then
14629 FONT_OBJ
="$FONT_OBJ ftfont.o ftxfont.o"
14639 if test "${USE_X_TOOLKIT}" != "none" ; then
14640 WIDGET_OBJ
=widget.o
14642 $as_echo "#define USE_X_TOOLKIT 1" >>confdefs.h
14644 if test "${USE_X_TOOLKIT}" = "LUCID"; then
14646 $as_echo "#define USE_LUCID 1" >>confdefs.h
14648 elif test "${USE_X_TOOLKIT}" = "MOTIF"; then
14650 $as_echo "#define USE_MOTIF 1" >>confdefs.h
14655 ## Paul Abrahams <abrahams at equinox.shaysnet.com> says this is needed.
14656 MOTIF_LIBW
="$MOTIF_LIBW -lXpm"
14660 ## Richard Anthony Ryan <ryanr at ellingtn.ftc.nrcs.usda.gov>
14661 ## says -lXimp is needed in UNIX_SV ... 4.2 1.1.2.
14662 MOTIF_LIBW
="MOTIF_LIBW -lXimp"
14666 ## olson@mcs.anl.gov says -li18n is needed by -lXm.
14667 MOTIF_LIBW
="$MOTIF_LIBW -li18n"
14670 MOTIF_LIBW
="$MOTIF_LIBW $LIBXP"
14676 case "$USE_X_TOOLKIT" in
14677 MOTIF
) TOOLKIT_LIBW
="$MOTIF_LIBW" ;;
14678 LUCID
) TOOLKIT_LIBW
="$LUCID_LIBW" ;;
14679 none
) test "x$HAVE_GTK" = "xyes" && TOOLKIT_LIBW
="$GTK_LIBS" ;;
14683 if test "$USE_X_TOOLKIT" = "none"; then
14684 LIBXT_OTHER
="\$(LIBXSM)"
14685 OLDXMENU_TARGET
="really-oldXMenu"
14687 LIBXT_OTHER
="\$(LIBXMU) -lXt \$(LIBXTR6) -lXext"
14688 OLDXMENU_TARGET
="really-lwlib"
14692 ## The X Menu stuff is present in the X10 distribution, but missing
14693 ## from X11. If we have X10, just use the installed library;
14694 ## otherwise, use our own copy.
14695 if test "${HAVE_X11}" = "yes" ; then
14697 $as_echo "#define HAVE_X11 1" >>confdefs.h
14700 if test "$USE_X_TOOLKIT" = "none"; then
14701 OLDXMENU
="\${oldXMenudir}libXMenu11.a"
14703 OLDXMENU
="\${lwlibdir}liblw.a"
14705 LIBXMENU
="\$(OLDXMENU)"
14706 LIBX_OTHER
="\$(LIBXT) \$(LIBX_EXTRA)"
14707 OLDXMENU_DEPS
="\${OLDXMENU} ../src/\${OLDXMENU}"
14709 ## For a syntactically valid Makefile; not actually used for anything.
14710 ## See comments in src/Makefile.in.
14712 ## FIXME This case (!HAVE_X11 && HAVE_X_WINDOWS) is no longer possible(?).
14713 if test "${HAVE_X_WINDOWS}" = "yes"; then
14722 if test "$HAVE_GTK" = "yes" ||
test "$HAVE_MENUS" != "yes"; then
14735 if test "${HAVE_MENUS}" = "yes" ; then
14737 $as_echo "#define HAVE_MENUS 1" >>confdefs.h
14741 if test "${GNU_MALLOC}" = "yes" ; then
14743 $as_echo "#define GNU_MALLOC 1" >>confdefs.h
14748 if test "${REL_ALLOC}" = "yes" ; then
14750 $as_echo "#define REL_ALLOC 1" >>confdefs.h
14753 test "$system_malloc" != "yes" && RALLOC_OBJ
=ralloc.o
14757 if test "$opsys" = "cygwin"; then
14758 CYGWIN_OBJ
="sheap.o"
14759 ## Cygwin differs because of its unexec().
14761 POST_ALLOC_OBJ
=lastfile.o
14764 PRE_ALLOC_OBJ
=lastfile.o
14773 aix4-2
) LD_SWITCH_SYSTEM_TEMACS
="-Wl,-bnodelcsect" ;;
14776 ## The -headerpad option tells ld (see man page) to leave room at the
14777 ## end of the header for adding load commands. Needed for dumping.
14778 ## 0x690 is the total size of 30 segment load commands (at 56
14779 ## each); under Cocoa 31 commands are required.
14780 if test "$HAVE_NS" = "yes"; then
14781 libs_nsgui
="-framework AppKit"
14782 headerpad_extra
=6C8
14785 headerpad_extra
=690
14787 LD_SWITCH_SYSTEM_TEMACS
="-prebind $libs_nsgui -Xlinker -headerpad -Xlinker $headerpad_extra"
14789 ## This is here because src/Makefile.in did some extra fiddling around
14790 ## with LD_SWITCH_SYSTEM. The cpp logic was:
14791 ## #ifndef LD_SWITCH_SYSTEM
14792 ## #if !defined (__GNUC__) && ((defined (BSD_SYSTEM) && !defined (COFF)))
14793 ## Since all the *bsds define LD_SWITCH_SYSTEM, this simplifies to:
14794 ## not using gcc, darwin system not on an alpha (ie darwin, since
14795 ## darwin + alpha does not occur).
14796 ## Because this was done in src/Makefile.in, the resulting part of
14797 ## LD_SWITCH_SYSTEM was not used in configure (ie, in ac_link).
14798 ## It therefore seems cleaner to put this in LD_SWITCH_SYSTEM_TEMACS,
14799 ## rather than LD_SWITCH_SYSTEM.
14800 test "x$LD_SWITCH_SYSTEM" = "x" && test "x$GCC" != "xyes" && \
14801 LD_SWITCH_SYSTEM_TEMACS
="-X $LD_SWITCH_SYSTEM_TEMACS"
14804 ## LD_SWITCH_X_SITE_AUX is a -R option saying where to find X at run-time.
14805 ## When handled by cpp, this was in LD_SWITCH_SYSTEM. However, at
14806 ## the point where configure sourced the s/*.h file, LD_SWITCH_X_SITE_AUX
14807 ## had not yet been defined and was expanded to null. Hence LD_SWITCH_SYSTEM
14808 ## had different values in configure (in ac_link) and src/Makefile.in.
14809 ## It seems clearer therefore to put this piece in LD_SWITCH_SYSTEM_TEMACS.
14810 gnu-linux
) LD_SWITCH_SYSTEM_TEMACS
="\$(LD_SWITCH_X_SITE_AUX)" ;;
14812 *) LD_SWITCH_SYSTEM_TEMACS
= ;;
14815 if test "$NS_IMPL_GNUSTEP" = "yes"; then
14816 LD_SWITCH_SYSTEM_TEMACS
="${LD_SWITCH_SYSTEM_TEMACS} -L${GNUSTEP_SYSTEM_LIBRARIES} ${GNUSTEP_LOCAL_LIBRARIES} -lgnustep-gui -lgnustep-base -lobjc -lpthread"
14825 ## gnu: GNU needs its own crt0.
14826 aix4-2|cygwin|darwin|gnu|hpux
*|irix6-5|sol2
*|unixware
) ORDINARY_LINK
=yes ;;
14828 ## On post 1.3 releases of NetBSD, gcc -nostdlib also clears the
14829 ## library search parth, i.e. it won't search /usr/lib for libc and
14830 ## friends. Using -nostartfiles instead avoids this problem, and
14831 ## will also work on earlier NetBSD releases.
14832 netbsd|openbsd
) LD_FIRSTFLAG
="-nostartfiles" ;;
14834 ## macpcc: NAKAJI Hiroyuki <nakaji@tutrp.tut.ac.jp> says
14835 ## MkLinux/LinuxPPC needs this.
14836 ## ibms390x only supports opsys = gnu-linux so it can be added here.
14839 macppc|ibms390x
) LD_FIRSTFLAG
="-nostdlib" ;;
14845 if test "x$ORDINARY_LINK" = "xyes"; then
14849 $as_echo "#define ORDINARY_LINK 1" >>confdefs.h
14852 ## The system files defining neither ORDINARY_LINK nor LD_FIRSTFLAG are:
14853 ## freebsd, gnu-* not on macppc|ibms390x.
14854 elif test "x$GCC" = "xyes" && test "x$LD_FIRSTFLAG" = "x"; then
14856 ## Versions of GCC >= 2.0 put their library, libgcc.a, in obscure
14857 ## places that are difficult to figure out at make time. Fortunately,
14858 ## these same versions allow you to pass arbitrary flags on to the
14859 ## linker, so there is no reason not to use it as a linker.
14861 ## Well, it is not quite perfect. The "-nostdlib" keeps GCC from
14862 ## searching for libraries in its internal directories, so we have to
14863 ## ask GCC explicitly where to find libgcc.a (LIB_GCC below).
14864 LD_FIRSTFLAG
="-nostdlib"
14867 ## FIXME? What setting of EDIT_LDFLAGS should this have?
14868 test "$NS_IMPL_GNUSTEP" = "yes" && LD_FIRSTFLAG
="-rdynamic"
14873 ## FIXME? The logic here is not precisely the same as that above.
14874 ## There is no check here for a pre-defined LD_FIRSTFLAG.
14875 ## Should we only be setting LIB_GCC if LD ~ -nostdlib?
14877 if test "x$GCC" = "xyes" && test "x$ORDINARY_LINK" != "xyes"; then
14880 freebsd|netbsd|openbsd
) LIB_GCC
= ;;
14883 ## armin76@gentoo.org reported that the lgcc_s flag is necessary to
14884 ## build on ARM EABI under GNU/Linux. (Bug#5518)
14885 ## Note that m/arm.h never bothered to undefine LIB_GCC first.
14886 if test "$machine" = "arm"; then
14889 ## FIXME? s/gnu-linux.h used to define LIB_GCC as below, then
14890 ## immediately undefine it again and redefine it to empty.
14891 ## Was the C_SWITCH_X_SITE part really necessary?
14892 ## LIB_GCC=`$CC $C_SWITCH_X_SITE -print-libgcc-file-name`
14897 ## Ask GCC where to find libgcc.a.
14898 *) LIB_GCC
=`$CC -print-libgcc-file-name 2> /dev/null` ;;
14905 ## If we're using X11/GNUstep, define some consequences.
14906 if test "$HAVE_X_WINDOWS" = "yes" ||
test "$HAVE_NS" = "yes"; then
14908 $as_echo "#define HAVE_WINDOW_SYSTEM 1" >>confdefs.h
14911 $as_echo "#define HAVE_MOUSE 1" >>confdefs.h
14913 MOUSE_SUPPORT
="\$(REAL_MOUSE_SUPPORT)"
14914 TOOLTIP_SUPPORT
="\${lispsource}mouse.elc"
14916 WINDOW_SUPPORT
="\$(BASE_WINDOW_SUPPORT)"
14917 test "$HAVE_X_WINDOWS" = "yes" && \
14918 WINDOW_SUPPORT
="$WINDOW_SUPPORT \$(X_WINDOW_SUPPORT)"
14928 #### Report on what we decided to do.
14929 #### Report GTK as a toolkit, even if it doesn't use Xt.
14930 #### It makes printing result more understandable as using GTK sets
14931 #### toolkit_scroll_bars to yes by default.
14932 if test "${HAVE_GTK}" = "yes"; then
14937 Configured for \`${canonical}'.
14939 Where should the build process find the source code? ${srcdir}
14940 What operating system and machine description files should Emacs use?
14941 \`${opsysfile}' and \`${machfile}'
14942 What compiler should emacs be built with? ${CC} ${CFLAGS}
14943 Should Emacs use the GNU version of malloc? ${GNU_MALLOC}${GNU_MALLOC_reason}
14944 Should Emacs use a relocating allocator for buffers? ${REL_ALLOC}
14945 Should Emacs use mmap(2) for buffer allocation? $use_mmap_for_buffers
14946 What window system should Emacs use? ${window_system}
14947 What toolkit should Emacs use? ${USE_X_TOOLKIT}"
14949 if test -n "${x_includes}"; then
14950 echo " Where do we find X Windows header files? ${x_includes}"
14952 echo " Where do we find X Windows header files? Standard dirs"
14954 if test -n "${x_libraries}"; then
14955 echo " Where do we find X Windows libraries? ${x_libraries}"
14957 echo " Where do we find X Windows libraries? Standard dirs"
14960 echo " Does Emacs use -lXaw3d? ${HAVE_XAW3D}"
14961 echo " Does Emacs use -lXpm? ${HAVE_XPM}"
14962 echo " Does Emacs use -ljpeg? ${HAVE_JPEG}"
14963 echo " Does Emacs use -ltiff? ${HAVE_TIFF}"
14964 echo " Does Emacs use a gif library? ${HAVE_GIF} $LIBGIF"
14965 echo " Does Emacs use -lpng? ${HAVE_PNG}"
14966 echo " Does Emacs use -lrsvg-2? ${HAVE_RSVG}"
14967 echo " Does Emacs use imagemagick? ${HAVE_IMAGEMAGICK}"
14969 echo " Does Emacs use -lgpm? ${HAVE_GPM}"
14970 echo " Does Emacs use -ldbus? ${HAVE_DBUS}"
14971 echo " Does Emacs use -lgconf? ${HAVE_GCONF}"
14972 echo " Does Emacs use -lselinux? ${HAVE_LIBSELINUX}"
14973 echo " Does Emacs use -lgnutls (BROKEN)? ${HAVE_GNUTLS}"
14974 echo " Does Emacs use -lxml2? ${HAVE_LIBXML2}"
14976 echo " Does Emacs use -lfreetype? ${HAVE_FREETYPE}"
14977 echo " Does Emacs use -lm17n-flt? ${HAVE_M17N_FLT}"
14978 echo " Does Emacs use -lotf? ${HAVE_LIBOTF}"
14979 echo " Does Emacs use -lxft? ${HAVE_XFT}"
14981 echo " Does Emacs use toolkit scroll bars? ${USE_TOOLKIT_SCROLL_BARS}"
14984 if test $USE_XASSERTS = yes; then
14985 echo " Compiling with asserts turned on."
14986 CPPFLAGS
="$CPPFLAGS -DXASSERTS=1"
14991 if test "$HAVE_NS" = "yes"; then
14993 echo "You must run \"make install\" in order to test the built application.
14994 The installed application will go to nextstep/Emacs.app and can be
14995 run or moved from there."
14996 if test "$EN_NS_SELF_CONTAINED" = "yes"; then
14997 echo "The application will be fully self-contained."
14999 echo "The lisp resources for the application will be installed under ${prefix}.
15000 You may need to run \"make install\" with sudo. The application will fail
15001 to run if these resources are not installed."
15006 if test "$HAVE_DBUS" = yes && test "${opsys}" != "gnu-linux"; then
15007 echo "D-Bus integration has been tested for GNU/Linux only."
15012 # Remove any trailing slashes in these variables.
15013 test "${prefix}" != NONE
&&
15014 prefix
=`echo "${prefix}" | sed 's,\([^/]\)/*$,\1,'`
15015 test "${exec_prefix}" != NONE
&&
15016 exec_prefix
=`echo "${exec_prefix}" | sed 's,\([^/]\)/*$,\1,'`
15018 ac_config_files
="$ac_config_files Makefile lib-src/Makefile oldXMenu/Makefile doc/emacs/Makefile doc/misc/Makefile doc/lispintro/Makefile doc/lispref/Makefile src/Makefile lwlib/Makefile lisp/Makefile leim/Makefile"
15020 ac_config_commands
="$ac_config_commands default"
15022 cat >confcache
<<\_ACEOF
15023 # This file is a shell script that caches the results of configure
15024 # tests run on this system so they can be shared between configure
15025 # scripts and configure runs, see configure's option --config-cache.
15026 # It is not useful on other systems. If it contains results you don't
15027 # want to keep, you may remove or edit it.
15029 # config.status only pays attention to the cache file if you give it
15030 # the --recheck option to rerun configure.
15032 # `ac_cv_env_foo' variables (set or unset) will be overridden when
15033 # loading this file, other *unset* `ac_cv_foo' will be assigned the
15034 # following values.
15038 # The following way of writing the cache mishandles newlines in values,
15039 # but we know of no workaround that is simple, portable, and efficient.
15040 # So, we kill variables containing newlines.
15041 # Ultrix sh set writes to stderr and can't be redirected directly,
15042 # and sets the high bit in the cache file unless we assign to the vars.
15044 for ac_var
in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
15045 eval ac_val
=\$
$ac_var
15049 *_cv_
*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
15050 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
15053 _ | IFS | as_nl
) ;; #(
15054 BASH_ARGV | BASH_SOURCE
) eval $ac_var= ;; #(
15055 *) { eval $ac_var=; unset $ac_var;} ;;
15061 case $as_nl`(ac_space=' '; set) 2>&1` in #(
15062 *${as_nl}ac_space
=\
*)
15063 # `set' does not quote correctly, so add quotes: double-quote
15064 # substitution turns \\\\ into \\, and sed turns \\ into \.
15067 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
15070 # `set' quotes correctly as required by POSIX, so do not add quotes.
15071 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
15080 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
15082 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
15084 if diff "$cache_file" confcache
>/dev
/null
2>&1; then :; else
15085 if test -w "$cache_file"; then
15086 test "x$cache_file" != "x/dev/null" &&
15087 { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
15088 $as_echo "$as_me: updating cache $cache_file" >&6;}
15089 cat confcache
>$cache_file
15091 { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
15092 $as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
15097 test "x$prefix" = xNONE
&& prefix
=$ac_default_prefix
15098 # Let make expand exec_prefix.
15099 test "x$exec_prefix" = xNONE
&& exec_prefix
='${prefix}'
15101 DEFS
=-DHAVE_CONFIG_H
15105 for ac_i
in : $LIBOBJS; do test "x$ac_i" = x
: && continue
15106 # 1. Remove the extension, and $U if already installed.
15107 ac_script
='s/\$U\././;s/\.o$//;s/\.obj$//'
15108 ac_i
=`$as_echo "$ac_i" | sed "$ac_script"`
15109 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
15110 # will be set to the directory where LIBOBJS objects are built.
15111 as_fn_append ac_libobjs
" \${LIBOBJDIR}$ac_i\$U.$ac_objext"
15112 as_fn_append ac_ltlibobjs
" \${LIBOBJDIR}$ac_i"'$U.lo'
15114 LIBOBJS
=$ac_libobjs
15116 LTLIBOBJS
=$ac_ltlibobjs
15121 : ${CONFIG_STATUS=./config.status}
15123 ac_clean_files_save
=$ac_clean_files
15124 ac_clean_files
="$ac_clean_files $CONFIG_STATUS"
15125 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
15126 $as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
15128 cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
15130 # Generated by $as_me.
15131 # Run this file to recreate the current configuration.
15132 # Compiler output produced by configure, useful for debugging
15133 # configure, is in config.log if it exists.
15136 ac_cs_recheck=false
15139 SHELL=\${CONFIG_SHELL-$SHELL}
15142 cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail
=1
15143 ## -------------------- ##
15144 ## M4sh Initialization. ##
15145 ## -------------------- ##
15147 # Be more Bourne compatible
15148 DUALCASE
=1; export DUALCASE
# for MKS sh
15149 if test -n "${ZSH_VERSION+set}" && (emulate sh
) >/dev
/null
2>&1; then :
15152 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
15153 # is contrary to our usage. Disable this feature.
15154 alias -g '${1+"$@"}'='"$@"'
15155 setopt NO_GLOB_SUBST
15157 case `(set -o) 2>/dev/null` in #(
15169 # Printing a long string crashes Solaris 7 /usr/bin/printf.
15170 as_echo
='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
15171 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
15172 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
15173 # Prefer a ksh shell builtin over an external printf program on Solaris,
15174 # but without wasting forks for bash or zsh.
15175 if test -z "$BASH_VERSION$ZSH_VERSION" \
15176 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
15177 as_echo='print
-r --'
15178 as_echo_n='print
-rn --'
15179 elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
15180 as_echo='printf %s
\n'
15181 as_echo_n='printf %s
'
15183 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
15184 as_echo_body='eval /usr
/ucb
/echo -n "$1$as_nl"'
15185 as_echo_n='/usr
/ucb
/echo -n'
15187 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
15188 as_echo_n_body='eval
15192 expr "X$arg" : "X\\(.*\\)$as_nl";
15193 arg
=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
15195 expr "X$arg" : "X\\(.*\\)" |
tr -d "$as_nl"
15197 export as_echo_n_body
15198 as_echo_n='sh
-c $as_echo_n_body as_echo
'
15200 export as_echo_body
15201 as_echo='sh
-c $as_echo_body as_echo
'
15204 # The user is always right.
15205 if test "${PATH_SEPARATOR+set}" != set; then
15207 (PATH='/bin
;/bin
'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
15208 (PATH='/bin
:/bin
'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
15215 # We need space, tab and new line, in precisely that order. Quoting is
15216 # there to prevent editors from complaining about space-tab.
15217 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
15218 # splitting by setting IFS to empty value.)
15221 # Find who we are. Look in the path if we contain no directory separator.
15223 *[\\/]* ) as_myself=$0 ;;
15224 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
15225 for as_dir in $PATH
15228 test -z "$as_dir" && as_dir=.
15229 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
15235 # We did not find ourselves, most probably we were run as `sh COMMAND'
15236 # in which case we are not to be found in the path.
15237 if test "x$as_myself" = x
; then
15240 if test ! -f "$as_myself"; then
15241 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
15245 # Unset variables that we do not need and which cause bugs (e.g. in
15246 # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
15247 # suppresses any "Segmentation fault" message there. '((' could
15248 # trigger a bug in pdksh 5.2.14.
15249 for as_var
in BASH_ENV ENV MAIL MAILPATH
15250 do eval test x\
${$as_var+set} = xset \
15251 && ( (unset $as_var) ||
exit 1) >/dev
/null
2>&1 && unset $as_var ||
:
15264 (unset CDPATH
) >/dev
/null
2>&1 && unset CDPATH
15267 # as_fn_error ERROR [LINENO LOG_FD]
15268 # ---------------------------------
15269 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
15270 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
15271 # script with status $?, using 1 if that was 0.
15274 as_status
=$?
; test $as_status -eq 0 && as_status
=1
15276 as_lineno
=${as_lineno-"$2"} as_lineno_stack
=as_lineno_stack
=$as_lineno_stack
15277 $as_echo "$as_me:${as_lineno-$LINENO}: error: $1" >&$3
15279 $as_echo "$as_me: error: $1" >&2
15280 as_fn_exit
$as_status
15284 # as_fn_set_status STATUS
15285 # -----------------------
15286 # Set $? to STATUS, without forking.
15287 as_fn_set_status
()
15290 } # as_fn_set_status
15292 # as_fn_exit STATUS
15293 # -----------------
15294 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
15298 as_fn_set_status
$1
15304 # Portably unset VAR.
15307 { eval $1=; unset $1;}
15309 as_unset
=as_fn_unset
15310 # as_fn_append VAR VALUE
15311 # ----------------------
15312 # Append the text in VALUE to the end of the definition contained in VAR. Take
15313 # advantage of any shell optimizations that allow amortized linear growth over
15314 # repeated appends, instead of the typical quadratic growth present in naive
15316 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev
/null
; then :
15317 eval 'as_fn_append ()
15328 # as_fn_arith ARG...
15329 # ------------------
15330 # Perform arithmetic evaluation on the ARGs, and store the result in the
15331 # global $as_val. Take advantage of shells that can avoid forks. The arguments
15332 # must be portable across $(()) and expr.
15333 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev
/null
; then :
15334 eval 'as_fn_arith ()
15341 as_val
=`expr "$@" || test $? -eq 1`
15346 if expr a
: '\(a\)' >/dev
/null
2>&1 &&
15347 test "X`expr 00001 : '.*\(...\)'`" = X001
; then
15353 if (basename -- /) >/dev
/null
2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
15354 as_basename
=basename
15359 if (as_dir
=`dirname -- /` && test "X$as_dir" = X
/) >/dev
/null
2>&1; then
15365 as_me
=`$as_basename -- "$0" ||
15366 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
15367 X"$0" : 'X\(//\)$' \| \
15368 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
15370 sed '/^.*\/\([^/][^/]*\)\/*$/{
15384 # Avoid depending upon Character Ranges.
15385 as_cr_letters
='abcdefghijklmnopqrstuvwxyz'
15386 as_cr_LETTERS
='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
15387 as_cr_Letters
=$as_cr_letters$as_cr_LETTERS
15388 as_cr_digits
='0123456789'
15389 as_cr_alnum
=$as_cr_Letters$as_cr_digits
15391 ECHO_C
= ECHO_N
= ECHO_T
=
15392 case `echo -n x` in #(((((
15394 case `echo 'xy\c'` in
15395 *c
*) ECHO_T
=' ';; # ECHO_T is single tab character.
15397 *) echo `echo ksh88 bug on AIX 6.1` > /dev
/null
15404 rm -f conf$$ conf$$.exe conf$$.
file
15405 if test -d conf$$.dir
; then
15406 rm -f conf$$.dir
/conf$$.
file
15409 mkdir conf$$.dir
2>/dev
/null
15411 if (echo >conf$$.
file) 2>/dev
/null
; then
15412 if ln -s conf$$.
file conf$$
2>/dev
/null
; then
15414 # ... but there are two gotchas:
15415 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
15416 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
15417 # In both cases, we have to default to `cp -p'.
15418 ln -s conf$$.
file conf$$.dir
2>/dev
/null
&& test ! -f conf$$.exe ||
15420 elif ln conf$$.
file conf$$
2>/dev
/null
; then
15428 rm -f conf$$ conf$$.exe conf$$.dir
/conf$$.
file conf$$.
file
15429 rmdir conf$$.dir
2>/dev
/null
15434 # Create "$as_dir" as a directory, including parents if necessary.
15439 -*) as_dir
=.
/$as_dir;;
15441 test -d "$as_dir" ||
eval $as_mkdir_p ||
{
15445 *\'*) as_qdir
=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
15446 *) as_qdir
=$as_dir;;
15448 as_dirs
="'$as_qdir' $as_dirs"
15449 as_dir
=`$as_dirname -- "$as_dir" ||
15450 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
15451 X"$as_dir" : 'X\(//\)[^/]' \| \
15452 X"$as_dir" : 'X\(//\)$' \| \
15453 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
15454 $as_echo X"$as_dir" |
15455 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
15459 /^X\(\/\/\)[^/].*/{
15472 test -d "$as_dir" && break
15474 test -z "$as_dirs" ||
eval "mkdir $as_dirs"
15475 } ||
test -d "$as_dir" || as_fn_error
"cannot create directory $as_dir"
15479 if mkdir
-p .
2>/dev
/null
; then
15480 as_mkdir_p
='mkdir -p "$as_dir"'
15482 test -d .
/-p && rmdir .
/-p
15486 if test -x / >/dev
/null
2>&1; then
15487 as_test_x
='test -x'
15489 if ls -dL / >/dev
/null
2>&1; then
15496 if test -d "$1"; then
15502 case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in #((
15503 ???[sx]*):;;*)false;;esac;fi
15507 as_executable_p
=$as_test_x
15509 # Sed expression to map a string onto a valid CPP name.
15510 as_tr_cpp
="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
15512 # Sed expression to map a string onto a valid variable name.
15513 as_tr_sh
="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
15517 ## ----------------------------------- ##
15518 ## Main body of $CONFIG_STATUS script. ##
15519 ## ----------------------------------- ##
15521 test $as_write_fail = 0 && chmod +x
$CONFIG_STATUS || ac_write_fail
=1
15523 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail
=1
15524 # Save the log message, to keep $0 and so on meaningful, and to
15525 # report actual input values of CONFIG_FILES etc. instead of their
15526 # values after options handling.
15528 This file was extended by emacs $as_me 24.0.50, which was
15529 generated by GNU Autoconf 2.65. Invocation command line was
15531 CONFIG_FILES = $CONFIG_FILES
15532 CONFIG_HEADERS = $CONFIG_HEADERS
15533 CONFIG_LINKS = $CONFIG_LINKS
15534 CONFIG_COMMANDS = $CONFIG_COMMANDS
15537 on `(hostname || uname -n) 2>/dev/null | sed 1q`
15542 case $ac_config_files in *"
15543 "*) set x
$ac_config_files; shift; ac_config_files
=$
*;;
15546 case $ac_config_headers in *"
15547 "*) set x
$ac_config_headers; shift; ac_config_headers
=$
*;;
15551 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
15552 # Files that config.status was made for.
15553 config_files="$ac_config_files"
15554 config_headers="$ac_config_headers"
15555 config_commands="$ac_config_commands"
15559 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail
=1
15561 \`$as_me' instantiates files and other configuration actions
15562 from templates according to the current configuration. Unless the files
15563 and actions are specified as TAGs, all are instantiated by default.
15565 Usage: $0 [OPTION]... [TAG]...
15567 -h, --help print this help, then exit
15568 -V, --version print version number and configuration settings, then exit
15569 --config print configuration, then exit
15570 -q, --quiet, --silent
15571 do not print progress messages
15572 -d, --debug don't remove temporary files
15573 --recheck update $as_me by reconfiguring in the same conditions
15574 --file=FILE[:TEMPLATE]
15575 instantiate the configuration file FILE
15576 --header=FILE[:TEMPLATE]
15577 instantiate the configuration header FILE
15579 Configuration files:
15582 Configuration headers:
15585 Configuration commands:
15588 Report bugs to the package provider."
15591 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
15592 ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`"
15594 emacs config.status 24.0.50
15595 configured by $0, generated by GNU Autoconf 2.65,
15596 with options \\"\$ac_cs_config\\"
15598 Copyright (C) 2009 Free Software Foundation, Inc.
15599 This config.status script is free software; the Free Software Foundation
15600 gives unlimited permission to copy, distribute and modify it."
15605 test -n "\$AWK" || AWK=awk
15608 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail
=1
15609 # The default lists apply if the user does not specify any file.
15615 ac_option
=`expr "X$1" : 'X\([^=]*\)='`
15616 ac_optarg
=`expr "X$1" : 'X[^=]*=\(.*\)'`
15627 # Handling of the options.
15628 -recheck |
--recheck |
--rechec |
--reche |
--rech |
--rec |
--re |
--r)
15630 --version |
--versio |
--versi |
--vers |
--ver |
--ve |
--v |
-V )
15631 $as_echo "$ac_cs_version"; exit ;;
15632 --config |
--confi |
--conf |
--con |
--co |
--c )
15633 $as_echo "$ac_cs_config"; exit ;;
15634 --debug |
--debu |
--deb |
--de |
--d |
-d )
15636 --file |
--fil |
--fi |
--f )
15639 *\'*) ac_optarg
=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
15641 as_fn_append CONFIG_FILES
" '$ac_optarg'"
15642 ac_need_defaults
=false
;;
15643 --header |
--heade |
--head |
--hea )
15646 *\'*) ac_optarg
=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
15648 as_fn_append CONFIG_HEADERS
" '$ac_optarg'"
15649 ac_need_defaults
=false
;;
15651 # Conflict between --help and --header
15652 as_fn_error
"ambiguous option: \`$1'
15653 Try \`$0 --help' for more information.";;
15654 --help |
--hel |
-h )
15655 $as_echo "$ac_cs_usage"; exit ;;
15656 -q |
-quiet |
--quiet |
--quie |
--qui |
--qu |
--q \
15657 |
-silent |
--silent |
--silen |
--sile |
--sil |
--si |
--s)
15660 # This is an error.
15661 -*) as_fn_error
"unrecognized option: \`$1'
15662 Try \`$0 --help' for more information." ;;
15664 *) as_fn_append ac_config_targets
" $1"
15665 ac_need_defaults
=false
;;
15671 ac_configure_extra_args
=
15673 if $ac_cs_silent; then
15675 ac_configure_extra_args
="$ac_configure_extra_args --silent"
15679 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
15680 if \$ac_cs_recheck; then
15681 set X '$SHELL' '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
15683 \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
15684 CONFIG_SHELL='$SHELL'
15685 export CONFIG_SHELL
15690 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail
=1
15694 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
15695 ## Running $as_me. ##
15701 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
15705 GCC="$GCC" NON_GNU_CPP="$NON_GNU_CPP" CPP="$CPP" CPPFLAGS="$CPPFLAGS"
15709 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail
=1
15711 # Handling of arguments.
15712 for ac_config_target
in $ac_config_targets
15714 case $ac_config_target in
15715 "src/config.h") CONFIG_HEADERS
="$CONFIG_HEADERS src/config.h:src/config.in" ;;
15716 "Makefile") CONFIG_FILES
="$CONFIG_FILES Makefile" ;;
15717 "lib-src/Makefile") CONFIG_FILES
="$CONFIG_FILES lib-src/Makefile" ;;
15718 "oldXMenu/Makefile") CONFIG_FILES
="$CONFIG_FILES oldXMenu/Makefile" ;;
15719 "doc/emacs/Makefile") CONFIG_FILES
="$CONFIG_FILES doc/emacs/Makefile" ;;
15720 "doc/misc/Makefile") CONFIG_FILES
="$CONFIG_FILES doc/misc/Makefile" ;;
15721 "doc/lispintro/Makefile") CONFIG_FILES
="$CONFIG_FILES doc/lispintro/Makefile" ;;
15722 "doc/lispref/Makefile") CONFIG_FILES
="$CONFIG_FILES doc/lispref/Makefile" ;;
15723 "src/Makefile") CONFIG_FILES
="$CONFIG_FILES src/Makefile" ;;
15724 "lwlib/Makefile") CONFIG_FILES
="$CONFIG_FILES lwlib/Makefile" ;;
15725 "lisp/Makefile") CONFIG_FILES
="$CONFIG_FILES lisp/Makefile" ;;
15726 "leim/Makefile") CONFIG_FILES
="$CONFIG_FILES leim/Makefile" ;;
15727 "default") CONFIG_COMMANDS
="$CONFIG_COMMANDS default" ;;
15729 *) as_fn_error
"invalid argument: \`$ac_config_target'" "$LINENO" 5;;
15734 # If the user did not use the arguments to specify the items to instantiate,
15735 # then the envvar interface is used. Set only those that are not.
15736 # We use the long form for the default assignment because of an extremely
15737 # bizarre bug on SunOS 4.1.3.
15738 if $ac_need_defaults; then
15739 test "${CONFIG_FILES+set}" = set || CONFIG_FILES
=$config_files
15740 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS
=$config_headers
15741 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS
=$config_commands
15744 # Have a temporary directory for convenience. Make it in the build tree
15745 # simply because there is no reason against having it here, and in addition,
15746 # creating and moving files from /tmp can sometimes cause problems.
15747 # Hook for its removal unless debugging.
15748 # Note that there is a small window in which the directory will not be cleaned:
15749 # after its creation but before its name has been assigned to `$tmp'.
15753 trap 'exit_status=$?
15754 { test -z "$tmp" || test ! -d "$tmp" || rm -fr "$tmp"; } && exit $exit_status
15756 trap 'as_fn_exit 1' 1 2 13 15
15758 # Create a (secure) tmp directory for tmp files.
15761 tmp
=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
15762 test -n "$tmp" && test -d "$tmp"
15765 tmp
=.
/conf$$
-$RANDOM
15766 (umask 077 && mkdir
"$tmp")
15767 } || as_fn_error
"cannot create a temporary directory in ." "$LINENO" 5
15769 # Set up the scripts for CONFIG_FILES section.
15770 # No need to generate them if there are no CONFIG_FILES.
15771 # This happens for instance with `./config.status config.h'.
15772 if test -n "$CONFIG_FILES"; then
15774 if $AWK 'BEGIN { getline <"/dev/null" }' </dev
/null
2>/dev
/null
; then
15775 ac_cs_awk_getline
=:
15776 ac_cs_awk_pipe_init
=
15777 ac_cs_awk_read_file
='
15778 while ((getline aline < (F[key])) > 0)
15781 ac_cs_awk_pipe_fini
=
15783 ac_cs_awk_getline
=false
15784 ac_cs_awk_pipe_init
="print \"cat <<'|#_!!_#|' &&\""
15785 ac_cs_awk_read_file
='
15787 print "cat " F[key] " &&"
15788 '$ac_cs_awk_pipe_init
15789 # The final `:' finishes the AND list.
15790 ac_cs_awk_pipe_fini
='END { print "|#_!!_#|"; print ":" }'
15792 ac_cr
=`echo X | tr X '\015'`
15793 # On cygwin, bash can eat \r inside `` if the user requested igncr.
15794 # But we know of no other shell where ac_cr would be empty at this
15795 # point, so we can use a bashism as a fallback.
15796 if test "x$ac_cr" = x
; then
15797 eval ac_cr
=\$
\'\\r
\'
15799 ac_cs_awk_cr
=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
15800 if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
15803 ac_cs_awk_cr
=$ac_cr
15806 echo 'BEGIN {' >"$tmp/subs1.awk" &&
15809 # Create commands to substitute file output variables.
15811 echo "cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1" &&
15812 echo 'cat >>"\$tmp/subs1.awk" <<\\_ACAWK &&' &&
15813 echo "$ac_subst_files" |
sed 's/.*/F["&"]="$&"/' &&
15816 } >conf$
$files.sh
&&
15817 . .
/conf$
$files.sh ||
15818 as_fn_error
"could not make $CONFIG_STATUS" "$LINENO" 5
15819 rm -f conf$
$files.sh
15822 echo "cat >conf$$subs.awk <<_ACEOF" &&
15823 echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
15825 } >conf$$subs.sh ||
15826 as_fn_error "could not
make $CONFIG_STATUS" "$LINENO" 5
15827 ac_delim_num=`echo "$ac_subst_vars" | grep -c '$'`
15829 for ac_last_try in false false false false false :; do
15830 . ./conf$$subs.sh ||
15831 as_fn_error "could not
make $CONFIG_STATUS" "$LINENO" 5
15833 ac_delim_n=`sed -n "s
/.
*$ac_delim\$
/X
/p
" conf$$subs.awk | grep -c X`
15834 if test $ac_delim_n = $ac_delim_num; then
15836 elif $ac_last_try; then
15837 as_fn_error "could not
make $CONFIG_STATUS" "$LINENO" 5
15839 ac_delim="$ac_delim!$ac_delim _
$ac_delim!! "
15842 rm -f conf$$subs.sh
15844 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
15845 cat >>"\
$tmp/subs1.
awk" <<\\_ACAWK &&
15849 s/^/S["/; s
/!.
*/"]=/
15859 s/\(.\{148\}\)..*/\1/
15861 s/["\\]/\\&/g
; s
/^
/"/; s/$/\\n"\\/
15866 s
/["\\]/\\&/g; s/^/"/; s
/$
/"\\/
15873 s/\(.\{148\}\)..*/\1/
15875 s/["\\]/\\&/g
; s
/^
/"/; s/$/"/
15879 s
/["\\]/\\&/g; s/^/"/; s
/$
/"\\/
15884 ' <conf$$subs.awk | sed '
15889 ' >>$CONFIG_STATUS || ac_write_fail=1
15890 rm -f conf$$subs.awk
15891 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
15893 cat >>"\
$tmp/subs1.
awk" <<_ACAWK &&
15894 for (key in S) S_is_set[key] = 1
15896 \$ac_cs_awk_pipe_init
15900 nfields = split(line, field, "@
")
15902 len = length(field[1])
15903 for (i = 2; i < nfields; i++) {
15905 keylen = length(key)
15906 if (S_is_set[key]) {
15908 line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
15909 len += length(value) + length(field[++i])
15914 if (nfields == 3 && !substed) {
15916 if (F[key] != "" && line ~ /^[ ]*@.*@[ ]*$/) {
15917 \$ac_cs_awk_read_file
15923 \$ac_cs_awk_pipe_fini
15926 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
15927 if sed "s
/$ac_cr//" < /dev/null > /dev/null 2>&1; then
15928 sed "s
/$ac_cr\$
//; s
/$ac_cr/$ac_cs_awk_cr/g
"
15931 fi < "$tmp/subs1.
awk" > "$tmp/subs.
awk" \
15932 || as_fn_error "could not setup config files machinery
" "$LINENO" 5
15935 # VPATH may cause trouble with some makes, so we remove $(srcdir),
15936 # ${srcdir} and @srcdir@ from VPATH if srcdir is ".
", strip leading and
15937 # trailing colons and then remove the whole line if VPATH becomes empty
15938 # (actually we leave an empty line to preserve line numbers).
15939 if test "x
$srcdir" = x.; then
15940 ac_vpsub='/^[ ]*VPATH[ ]*=/{
15941 s/:*\$(srcdir):*/:/
15942 s/:*\${srcdir}:*/:/
15944 s/^\([^=]*=[ ]*\):*/\1/
15950 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
15951 fi # test -n "$CONFIG_FILES"
15953 # Set up the scripts for CONFIG_HEADERS section.
15954 # No need to generate them if there are no CONFIG_HEADERS.
15955 # This happens for instance with `./config.status Makefile'.
15956 if test -n "$CONFIG_HEADERS"; then
15957 cat >"$tmp/defines.
awk" <<\_ACAWK ||
15961 # Transform confdefs.h into an awk script `defines.awk', embedded as
15962 # here-document in config.status, that substitutes the proper values into
15963 # config.h.in to produce config.h.
15965 # Create a delimiter string that does not exist in confdefs.h, to ease
15966 # handling of long lines.
15968 for ac_last_try in false false :; do
15969 ac_t=`sed -n "/$ac_delim/p
" confdefs.h`
15970 if test -z "$ac_t"; then
15972 elif $ac_last_try; then
15973 as_fn_error "could not
make $CONFIG_HEADERS" "$LINENO" 5
15975 ac_delim="$ac_delim!$ac_delim _
$ac_delim!! "
15979 # For the awk script, D is an array of macro values keyed by name,
15980 # likewise P contains macro parameters if any. Preserve backslash
15981 # newline sequences.
15983 ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
15985 s/.\{148\}/&'"$ac_delim"'/g
15988 s/^[ ]*#[ ]*define[ ][ ]*/ /
15995 s
/^ \
('"$ac_word_re"'\
)\
(([^
()]*)\
)[ ]*\
(.
*\
)/P
["\1"]="\2"\
15997 s
/^ \
('"$ac_word_re"'\
)[ ]*\
(.
*\
)/D
["\1"]=" \2"/p
16001 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\
1"]="\
2"\
16002 D["\
1"]=" \
3\\\\\\n
"\\/p
16004 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\
1"]=" \
2\\\\\\n
"\\/p
16009 s/.\{148\}/&'"$ac_delim"'/g
16014 s/["\\]/\\&/g
; s
/^
/"/; s/$/"/p
16017 s
/["\\]/\\&/g; s/^/"/; s
/$
/\\\\\\n
"\\/p
16019 ' <confdefs.h | sed '
16020 s/'"$ac_delim"'/"\\\
16021 "/g' >>$CONFIG_STATUS || ac_write_fail=1
16023 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
16024 for (key in D) D_is_set[key] = 1
16027 /^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
16029 split(line, arg, " ")
16030 if (arg[1] == "#") {
16034 defundef
= substr
(arg
[1], 2)
16037 split(mac1
, mac2
, "(") #)
16039 prefix
= substr
(line
, 1, index
(line
, defundef
) - 1)
16040 if (D_is_set
[macro
]) {
16041 # Preserve the white space surrounding the "#".
16042 print prefix
"define", macro P
[macro
] D
[macro
]
16045 # Replace #undef with comments. This is necessary, for example,
16046 # in the case of _POSIX_SOURCE, which is predefined and required
16047 # on some systems where configure will not decide to define it.
16048 if (defundef
== "undef") {
16049 print
"/*", prefix defundef
, macro
, "*/"
16057 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail
=1
16058 as_fn_error
"could not setup config headers machinery" "$LINENO" 5
16059 fi # test -n "$CONFIG_HEADERS"
16062 eval set X
" :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS"
16067 :[FHLC
]) ac_mode
=$ac_tag; continue;;
16069 case $ac_mode$ac_tag in
16071 :L
* |
:C
*:*) as_fn_error
"invalid tag \`$ac_tag'" "$LINENO" 5;;
16072 :[FH
]-) ac_tag
=-:-;;
16073 :[FH
]*) ac_tag
=$ac_tag:$ac_tag.
in;;
16090 -) ac_f
="$tmp/stdin";;
16091 *) # Look for the file first in the build tree, then in the source tree
16092 # (if the path is not absolute). The absolute path cannot be DOS-style,
16093 # because $ac_f cannot contain `:'.
16097 *) test -f "$srcdir/$ac_f" && ac_f
="$srcdir/$ac_f";;
16099 as_fn_error
"cannot find input file: \`$ac_f'" "$LINENO" 5;;
16101 case $ac_f in *\'*) ac_f
=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
16102 as_fn_append ac_file_inputs
" '$ac_f'"
16105 # Let's still pretend it is `configure' which instantiates (i.e., don't
16106 # use $as_me), people would be surprised to read:
16107 # /* config.h. Generated by config.status. */
16108 configure_input
='Generated from '`
16109 $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
16111 if test x
"$ac_file" != x-
; then
16112 configure_input
="$ac_file. $configure_input"
16113 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
16114 $as_echo "$as_me: creating $ac_file" >&6;}
16116 # Neutralize special characters interpreted by sed in replacement strings.
16117 case $configure_input in #(
16118 *\
&* |
*\|
* |
*\\* )
16119 ac_sed_conf_input
=`$as_echo "$configure_input" |
16120 sed 's/[\\\\&|]/\\\\&/g'`;; #(
16121 *) ac_sed_conf_input
=$configure_input;;
16125 *:-:* |
*:-) cat >"$tmp/stdin" \
16126 || as_fn_error
"could not create $ac_file" "$LINENO" 5 ;;
16131 ac_dir
=`$as_dirname -- "$ac_file" ||
16132 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
16133 X"$ac_file" : 'X\(//\)[^/]' \| \
16134 X"$ac_file" : 'X\(//\)$' \| \
16135 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
16136 $as_echo X"$ac_file" |
16137 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
16141 /^X\(\/\/\)[^/].*/{
16154 as_dir
="$ac_dir"; as_fn_mkdir_p
16158 .
) ac_dir_suffix
= ac_top_builddir_sub
=. ac_top_build_prefix
= ;;
16160 ac_dir_suffix
=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
16161 # A ".." for each directory in $ac_dir_suffix.
16162 ac_top_builddir_sub
=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
16163 case $ac_top_builddir_sub in
16164 "") ac_top_builddir_sub
=. ac_top_build_prefix
= ;;
16165 *) ac_top_build_prefix
=$ac_top_builddir_sub/ ;;
16168 ac_abs_top_builddir
=$ac_pwd
16169 ac_abs_builddir
=$ac_pwd$ac_dir_suffix
16170 # for backward compatibility:
16171 ac_top_builddir
=$ac_top_build_prefix
16174 .
) # We are building in place.
16176 ac_top_srcdir
=$ac_top_builddir_sub
16177 ac_abs_top_srcdir
=$ac_pwd ;;
16178 [\\/]* | ?
:[\\/]* ) # Absolute name.
16179 ac_srcdir
=$srcdir$ac_dir_suffix;
16180 ac_top_srcdir
=$srcdir
16181 ac_abs_top_srcdir
=$srcdir ;;
16182 *) # Relative name.
16183 ac_srcdir
=$ac_top_build_prefix$srcdir$ac_dir_suffix
16184 ac_top_srcdir
=$ac_top_build_prefix$srcdir
16185 ac_abs_top_srcdir
=$ac_pwd/$srcdir ;;
16187 ac_abs_srcdir
=$ac_abs_top_srcdir$ac_dir_suffix
16197 [\\/$
]* | ?
:[\\/]* ) ac_INSTALL
=$INSTALL ;;
16198 *) ac_INSTALL
=$ac_top_build_prefix$INSTALL ;;
16202 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail
=1
16203 # If the template does not know about datarootdir, expand it.
16204 # FIXME: This hack should be removed a few years after 2.60.
16205 ac_datarootdir_hack
=; ac_datarootdir_seen
=
16216 case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
16217 *datarootdir
*) ac_datarootdir_seen
=yes;;
16218 *@datadir@
*|
*@docdir@
*|
*@infodir@
*|
*@localedir@
*|
*@mandir@
*)
16219 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
16220 $as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
16222 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
16223 ac_datarootdir_hack='
16224 s&@datadir@&$datadir&g
16225 s&@docdir@&$docdir&g
16226 s&@infodir@&$infodir&g
16227 s&@localedir@&$localedir&g
16228 s&@mandir@&$mandir&g
16229 s&\\\${datarootdir}&$datarootdir&g' ;;
16233 # Neutralize VPATH when `$srcdir' = `.'.
16234 # Shell code in configure.ac might set extrasub.
16235 # FIXME: do we really want to maintain this feature?
16236 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
16237 ac_sed_extra="$ac_vpsub
16240 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail
=1
16242 /@
[a-zA-Z_
][a-zA-Z_0-9
]*@
/!b
16243 s|@configure_input@|
$ac_sed_conf_input|
;t t
16244 s
&@top_builddir@
&$ac_top_builddir_sub&;t t
16245 s
&@top_build_prefix@
&$ac_top_build_prefix&;t t
16246 s
&@srcdir@
&$ac_srcdir&;t t
16247 s
&@abs_srcdir@
&$ac_abs_srcdir&;t t
16248 s
&@top_srcdir@
&$ac_top_srcdir&;t t
16249 s
&@abs_top_srcdir@
&$ac_abs_top_srcdir&;t t
16250 s
&@builddir@
&$ac_builddir&;t t
16251 s
&@abs_builddir@
&$ac_abs_builddir&;t t
16252 s
&@abs_top_builddir@
&$ac_abs_top_builddir&;t t
16253 s
&@INSTALL@
&$ac_INSTALL&;t t
16254 $ac_datarootdir_hack
16256 eval sed \"\$ac_sed_extra\" "$ac_file_inputs" |
16257 if $ac_cs_awk_getline; then
16258 $AWK -f "$tmp/subs.
awk"
16260 $AWK -f "$tmp/subs.
awk" | $SHELL
16262 || as_fn_error "could not create
$ac_file" "$LINENO" 5
16264 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
16265 { ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out
"`; test -n "$ac_out"; } &&
16266 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' "$tmp/out
"`; test -z "$ac_out"; } &&
16267 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING
: $ac_file contains a reference to the variable \
`datarootdir'
16268 which seems to be undefined. Please make sure it is defined." >&5
16269 $as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir
'
16270 which seems to be undefined. Please make sure it is defined." >&2;}
16274 -) cat "$tmp/out" && rm -f "$tmp/out";;
16275 *) rm -f "$ac_file" && mv "$tmp/out" "$ac_file";;
16277 || as_fn_error "could not create $ac_file" "$LINENO" 5
16283 if test x"$ac_file" != x-; then
16285 $as_echo "/* $configure_input */" \
16286 && eval '$AWK -f "$tmp/defines.awk"' "$ac_file_inputs"
16287 } >"$tmp/config.h" \
16288 || as_fn_error "could not create $ac_file" "$LINENO" 5
16289 if diff "$ac_file" "$tmp/config.h" >/dev/null 2>&1; then
16290 { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5
16291 $as_echo "$as_me: $ac_file is unchanged" >&6;}
16294 mv "$tmp/config.h" "$ac_file" \
16295 || as_fn_error "could not create $ac_file" "$LINENO" 5
16298 $as_echo "/* $configure_input */" \
16299 && eval '$AWK -f "$tmp/defines.awk"' "$ac_file_inputs" \
16300 || as_fn_error "could not create -" "$LINENO" 5
16304 :C) { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5
16305 $as_echo "$as_me: executing $ac_file commands" >&6;}
16310 case $ac_file$ac_mode in
16313 ### Make the necessary directories, if they don't exist.
16314 for dir
in etc lisp
; do
16315 test -d ${dir} || mkdir
${dir}
16318 echo creating src
/epaths.h
16319 ${MAKE-make} epaths-force
16321 if test ! -f src
/.gdbinit
&& test -f $srcdir/src
/.gdbinit
; then
16322 echo creating src
/.gdbinit
16323 echo source $srcdir/src
/.gdbinit
> src
/.gdbinit
16334 ac_clean_files
=$ac_clean_files_save
16336 test $ac_write_fail = 0 ||
16337 as_fn_error
"write failure creating $CONFIG_STATUS" "$LINENO" 5
16340 # configure is writing to config.log, and then calls config.status.
16341 # config.status does its own redirection, appending to config.log.
16342 # Unfortunately, on DOS this fails, as config.log is still kept open
16343 # by configure, so config.status won't be able to write to it; its
16344 # output is simply discarded. So we exec the FD to /dev/null,
16345 # effectively closing config.log, so it can be properly (re)opened and
16346 # appended to by config.status. When coming back to configure, we
16347 # need to make the FD available again.
16348 if test "$no_create" != yes; then
16350 ac_config_status_args
=
16351 test "$silent" = yes &&
16352 ac_config_status_args
="$ac_config_status_args --quiet"
16354 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success
=false
16356 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
16357 # would make configure fail if this is the last instruction.
16358 $ac_cs_success || as_fn_exit $?
16360 if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no
; then
16361 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
16362 $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}