2 # Guess values for system-dependent variables and create Makefiles.
3 # Generated by GNU Autoconf 2.68 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, 2010 Free Software
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.
94 *[\\/]* ) as_myself=$0 ;;
95 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
99 test -z "$as_dir" && as_dir=.
100 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
106 # We did not find ourselves, most probably we were run as `sh COMMAND'
107 # in which case we are not to be found in the path.
108 if test "x$as_myself" = x
; then
111 if test ! -f "$as_myself"; then
112 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
116 # Unset variables that we do not need and which cause bugs (e.g. in
117 # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
118 # suppresses any "Segmentation fault" message there. '((' could
119 # trigger a bug in pdksh 5.2.14.
120 for as_var
in BASH_ENV ENV MAIL MAILPATH
121 do eval test x\
${$as_var+set} = xset \
122 && ( (unset $as_var) ||
exit 1) >/dev
/null
2>&1 && unset $as_var ||
:
135 (unset CDPATH
) >/dev
/null
2>&1 && unset CDPATH
137 if test "x$CONFIG_SHELL" = x
; then
138 as_bourne_compatible
="if test -n \"\${ZSH_VERSION+set}\" && (emulate sh) >/dev/null 2>&1; then :
141 # Pre-4.2 versions of Zsh do word splitting on \${1+\"\$@\"}, which
142 # is contrary to our usage. Disable this feature.
143 alias -g '\${1+\"\$@\"}'='\"\$@\"'
146 case \`(set -o) 2>/dev/null\` in #(
154 as_required
="as_fn_return () { (exit \$1); }
155 as_fn_success () { as_fn_return 0; }
156 as_fn_failure () { as_fn_return 1; }
157 as_fn_ret_success () { return 0; }
158 as_fn_ret_failure () { return 1; }
161 as_fn_success || { exitcode=1; echo as_fn_success failed.; }
162 as_fn_failure && { exitcode=1; echo as_fn_failure succeeded.; }
163 as_fn_ret_success || { exitcode=1; echo as_fn_ret_success failed.; }
164 as_fn_ret_failure && { exitcode=1; echo as_fn_ret_failure succeeded.; }
165 if ( set x; as_fn_ret_success y && test x = \"\$1\" ); then :
168 exitcode=1; echo positional parameters were not saved.
170 test x\$exitcode = x0 || exit 1"
171 as_suggested
=" as_lineno_1=";as_suggested
=$as_suggested$LINENO;as_suggested
=$as_suggested" as_lineno_1a=\$LINENO
172 as_lineno_2=";as_suggested
=$as_suggested$LINENO;as_suggested
=$as_suggested" as_lineno_2a=\$LINENO
173 eval 'test \"x\$as_lineno_1'\$as_run'\" != \"x\$as_lineno_2'\$as_run'\" &&
174 test \"x\`expr \$as_lineno_1'\$as_run' + 1\`\" = \"x\$as_lineno_2'\$as_run'\"' || exit 1
175 test \$(( 1 + 1 )) = 2 || exit 1"
176 if (eval "$as_required") 2>/dev
/null
; then :
181 if test x
$as_have_required = xyes
&& (eval "$as_suggested") 2>/dev
/null
; then :
184 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
186 for as_dir
in /bin
$PATH_SEPARATOR/usr
/bin
$PATH_SEPARATOR$PATH
189 test -z "$as_dir" && as_dir
=.
193 for as_base
in sh bash ksh sh5
; do
194 # Try only shells that exist, to save several forks.
195 as_shell
=$as_dir/$as_base
196 if { test -f "$as_shell" ||
test -f "$as_shell.exe"; } &&
197 { $as_echo "$as_bourne_compatible""$as_required" | as_run
=a
"$as_shell"; } 2>/dev
/null
; then :
198 CONFIG_SHELL
=$as_shell as_have_required
=yes
199 if { $as_echo "$as_bourne_compatible""$as_suggested" | as_run
=a
"$as_shell"; } 2>/dev
/null
; then :
207 $as_found ||
{ if { test -f "$SHELL" ||
test -f "$SHELL.exe"; } &&
208 { $as_echo "$as_bourne_compatible""$as_required" | as_run
=a
"$SHELL"; } 2>/dev
/null
; then :
209 CONFIG_SHELL
=$SHELL as_have_required
=yes
214 if test "x$CONFIG_SHELL" != x
; then :
215 # We cannot yet assume a decent shell, so we have to provide a
216 # neutralization value for shells without unset; and this also
217 # works around shells that cannot unset nonexistent variables.
218 # Preserve -v and -x to the replacement shell.
221 (unset BASH_ENV
) >/dev
/null
2>&1 && unset BASH_ENV ENV
224 *v
*x
* |
*x
*v
* ) as_opts
=-vx ;;
229 exec "$CONFIG_SHELL" $as_opts "$as_myself" ${1+"$@"}
232 if test x
$as_have_required = xno
; then :
233 $as_echo "$0: This script requires a shell more modern than all"
234 $as_echo "$0: the shells that I found on your system."
235 if test x
${ZSH_VERSION+set} = xset
; then
236 $as_echo "$0: In particular, zsh $ZSH_VERSION has bugs and should"
237 $as_echo "$0: be upgraded to zsh 4.3.4 or later."
239 $as_echo "$0: Please tell bug-autoconf@gnu.org about your system,
240 $0: including any error possibly output before this
241 $0: message. Then install a modern shell, or manually run
242 $0: the script under such a shell if you do have one."
248 SHELL
=${CONFIG_SHELL-/bin/sh}
250 # Unset more variables known to interfere with behavior of common tools.
251 CLICOLOR_FORCE
= GREP_OPTIONS
=
252 unset CLICOLOR_FORCE GREP_OPTIONS
254 ## --------------------- ##
255 ## M4sh Shell Functions. ##
256 ## --------------------- ##
259 # Portably unset VAR.
262 { eval $1=; unset $1;}
266 # as_fn_set_status STATUS
267 # -----------------------
268 # Set $? to STATUS, without forking.
276 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
286 # Create "$as_dir" as a directory, including parents if necessary.
291 -*) as_dir
=.
/$as_dir;;
293 test -d "$as_dir" ||
eval $as_mkdir_p ||
{
297 *\'*) as_qdir
=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
300 as_dirs
="'$as_qdir' $as_dirs"
301 as_dir
=`$as_dirname -- "$as_dir" ||
302 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
303 X"$as_dir" : 'X\(//\)[^/]' \| \
304 X"$as_dir" : 'X\(//\)$' \| \
305 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
306 $as_echo X"$as_dir" |
307 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
324 test -d "$as_dir" && break
326 test -z "$as_dirs" ||
eval "mkdir $as_dirs"
327 } ||
test -d "$as_dir" || as_fn_error $?
"cannot create directory $as_dir"
331 # as_fn_append VAR VALUE
332 # ----------------------
333 # Append the text in VALUE to the end of the definition contained in VAR. Take
334 # advantage of any shell optimizations that allow amortized linear growth over
335 # repeated appends, instead of the typical quadratic growth present in naive
337 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev
/null
; then :
338 eval 'as_fn_append ()
351 # Perform arithmetic evaluation on the ARGs, and store the result in the
352 # global $as_val. Take advantage of shells that can avoid forks. The arguments
353 # must be portable across $(()) and expr.
354 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev
/null
; then :
362 as_val
=`expr "$@" || test $? -eq 1`
367 # as_fn_error STATUS ERROR [LINENO LOG_FD]
368 # ----------------------------------------
369 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
370 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
371 # script with STATUS, using 1 if that was 0.
374 as_status
=$1; test $as_status -eq 0 && as_status
=1
376 as_lineno
=${as_lineno-"$3"} as_lineno_stack
=as_lineno_stack
=$as_lineno_stack
377 $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
379 $as_echo "$as_me: error: $2" >&2
380 as_fn_exit
$as_status
383 if expr a
: '\(a\)' >/dev
/null
2>&1 &&
384 test "X`expr 00001 : '.*\(...\)'`" = X001
; then
390 if (basename -- /) >/dev
/null
2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
396 if (as_dir
=`dirname -- /` && test "X$as_dir" = X
/) >/dev
/null
2>&1; then
402 as_me
=`$as_basename -- "$0" ||
403 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
404 X"$0" : 'X\(//\)$' \| \
405 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
407 sed '/^.*\/\([^/][^/]*\)\/*$/{
421 # Avoid depending upon Character Ranges.
422 as_cr_letters
='abcdefghijklmnopqrstuvwxyz'
423 as_cr_LETTERS
='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
424 as_cr_Letters
=$as_cr_letters$as_cr_LETTERS
425 as_cr_digits
='0123456789'
426 as_cr_alnum
=$as_cr_Letters$as_cr_digits
429 as_lineno_1
=$LINENO as_lineno_1a
=$LINENO
430 as_lineno_2
=$LINENO as_lineno_2a
=$LINENO
431 eval 'test "x$as_lineno_1'$as_run'" != "x$as_lineno_2'$as_run'" &&
432 test "x`expr $as_lineno_1'$as_run' + 1`" = "x$as_lineno_2'$as_run'"' ||
{
433 # Blame Lee E. McMahon (1931-1989) for sed's syntax. :-)
445 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
449 chmod +x
"$as_me.lineno" ||
450 { $as_echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2; as_fn_exit
1; }
452 # Don't try to exec as it changes $[0], causing all sort of problems
453 # (the dirname of $[0] is not the place where we might find the
454 # original and so on. Autoconf is especially sensitive to this).
456 # Exit status is that of the last command.
460 ECHO_C
= ECHO_N
= ECHO_T
=
461 case `echo -n x` in #(((((
463 case `echo 'xy\c'` in
464 *c
*) ECHO_T
=' ';; # ECHO_T is single tab character.
466 *) echo `echo ksh88 bug on AIX 6.1` > /dev
/null
473 rm -f conf$$ conf$$.exe conf$$.
file
474 if test -d conf$$.dir
; then
475 rm -f conf$$.dir
/conf$$.
file
478 mkdir conf$$.dir
2>/dev
/null
480 if (echo >conf$$.
file) 2>/dev
/null
; then
481 if ln -s conf$$.
file conf$$
2>/dev
/null
; then
483 # ... but there are two gotchas:
484 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
485 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
486 # In both cases, we have to default to `cp -p'.
487 ln -s conf$$.
file conf$$.dir
2>/dev
/null
&& test ! -f conf$$.exe ||
489 elif ln conf$$.
file conf$$
2>/dev
/null
; then
497 rm -f conf$$ conf$$.exe conf$$.dir
/conf$$.
file conf$$.
file
498 rmdir conf$$.dir
2>/dev
/null
500 if mkdir
-p .
2>/dev
/null
; then
501 as_mkdir_p
='mkdir -p "$as_dir"'
503 test -d .
/-p && rmdir .
/-p
507 if test -x / >/dev
/null
2>&1; then
510 if ls -dL / >/dev
/null
2>&1; then
517 if test -d "$1"; then
523 case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in #((
524 ???[sx]*):;;*)false;;esac;fi
528 as_executable_p
=$as_test_x
530 # Sed expression to map a string onto a valid CPP name.
531 as_tr_cpp
="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
533 # Sed expression to map a string onto a valid variable name.
534 as_tr_sh
="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
537 test -n "$DJDIR" ||
exec 7<&0 </dev
/null
541 # hostname on some systems (SVR3.2, old GNU/Linux) returns a bogus exit status,
542 # so uname gets run too.
543 ac_hostname
=`(hostname || uname -n) 2>/dev/null | sed 1q`
548 ac_default_prefix
=/usr
/local
550 ac_config_libobj_dir
=.
557 # Identity of this package.
559 PACKAGE_TARNAME
='emacs'
560 PACKAGE_VERSION
='24.0.50'
561 PACKAGE_STRING
='emacs 24.0.50'
565 ac_unique_file
="src/lisp.h"
566 # Factoring default headers for most tests.
567 ac_includes_default
="\
569 #ifdef HAVE_SYS_TYPES_H
570 # include <sys/types.h>
572 #ifdef HAVE_SYS_STAT_H
573 # include <sys/stat.h>
579 # ifdef HAVE_STDLIB_H
584 # if !defined STDC_HEADERS && defined HAVE_MEMORY_H
589 #ifdef HAVE_STRINGS_H
590 # include <strings.h>
592 #ifdef HAVE_INTTYPES_H
593 # include <inttypes.h>
602 ac_config_libobj_dir
=src
604 gl_getopt_required
=POSIX
605 gl_getopt_required
=POSIX
607 ac_subst_vars
='gltests_LTLIBOBJS
619 LD_SWITCH_SYSTEM_TEMACS
652 x_default_search_path
673 NEXT_AS_FIRST_DIRECTIVE_UNISTD_H
675 PTHREAD_H_DEFINES_STRUCT_TIMESPEC
676 SYS_TIME_H_DEFINES_STRUCT_TIMESPEC
677 TIME_H_DEFINES_STRUCT_TIMESPEC
678 NEXT_AS_FIRST_DIRECTIVE_TIME_H
680 NEXT_AS_FIRST_DIRECTIVE_STDDEF_H
687 APPLE_UNIVERSAL_BUILD
695 HAVE_DECL_LOCALTIME_R
705 NEXT_AS_FIRST_DIRECTIVE_GETOPT_H
709 INCLUDE_NEXT_AS_FIRST_DIRECTIVE
711 UNISTD_H_HAVE_WINSOCK2_H_AND_USE_SOCKETS
712 UNISTD_H_HAVE_WINSOCK2_H
731 REPLACE_GETDOMAINNAME
741 HAVE_DECL_GETUSERSHELL
742 HAVE_DECL_GETPAGESIZE
744 HAVE_DECL_GETDOMAINNAME
779 GNULIB_UNISTD_H_SIGPIPE
780 GNULIB_UNISTD_H_GETOPT
816 GL_COND_LIBTOOL_FALSE
869 LD_SWITCH_X_SITE_AUX_RPATH
931 INSTALL_STRIP_PROGRAM
973 program_transform_name
984 ac_subst_files
='deps_frag
987 enable_option_checking
1009 with_toolkit_scroll_bars
1020 with_pkg_config_prog
1024 enable_ns_self_contained
1026 enable_maintainer_mode
1027 enable_locallisppath
1029 enable_use_lisp_union_type
1032 enable_dependency_tracking
1036 ac_precious_vars
='build_alias
1051 # Initialize some variables set by options.
1053 ac_init_version
=false
1054 ac_unrecognized_opts
=
1055 ac_unrecognized_sep
=
1056 # The variables have the same names as the options, with
1057 # dashes changed to underlines.
1058 cache_file
=/dev
/null
1065 program_transform_name
=s
,x
,x
,
1073 # Installation directory options.
1074 # These are left unexpanded so users can "make install exec_prefix=/foo"
1075 # and all the variables that are supposed to be based on exec_prefix
1076 # by default will actually change.
1077 # Use braces instead of parens because sh, perl, etc. also accept them.
1078 # (The list follows the same order as the GNU Coding Standards.)
1079 bindir
='${exec_prefix}/bin'
1080 sbindir
='${exec_prefix}/sbin'
1081 libexecdir
='${exec_prefix}/libexec'
1082 datarootdir
='${prefix}/share'
1083 datadir
='${datarootdir}'
1084 sysconfdir
='${prefix}/etc'
1085 sharedstatedir
='${prefix}/com'
1086 localstatedir
='${prefix}/var'
1087 includedir
='${prefix}/include'
1088 oldincludedir
='/usr/include'
1089 docdir
='${datarootdir}/doc/${PACKAGE_TARNAME}'
1090 infodir
='${datarootdir}/info'
1095 libdir
='${exec_prefix}/lib'
1096 localedir
='${datarootdir}/locale'
1097 mandir
='${datarootdir}/man'
1103 # If the previous option needs an argument, assign it.
1104 if test -n "$ac_prev"; then
1105 eval $ac_prev=\
$ac_option
1111 *=?
*) ac_optarg
=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
1116 # Accept the important Cygnus configure options, so we can diagnose typos.
1118 case $ac_dashdash$ac_option in
1122 -bindir |
--bindir |
--bindi |
--bind |
--bin |
--bi)
1124 -bindir=* |
--bindir=* |
--bindi=* |
--bind=* |
--bin=* |
--bi=*)
1125 bindir
=$ac_optarg ;;
1127 -build |
--build |
--buil |
--bui |
--bu)
1128 ac_prev
=build_alias
;;
1129 -build=* |
--build=* |
--buil=* |
--bui=* |
--bu=*)
1130 build_alias
=$ac_optarg ;;
1132 -cache-file |
--cache-file |
--cache-fil |
--cache-fi \
1133 |
--cache-f |
--cache- |
--cache |
--cach |
--cac |
--ca |
--c)
1134 ac_prev
=cache_file
;;
1135 -cache-file=* |
--cache-file=* |
--cache-fil=* |
--cache-fi=* \
1136 |
--cache-f=* |
--cache-=* |
--cache=* |
--cach=* |
--cac=* |
--ca=* |
--c=*)
1137 cache_file
=$ac_optarg ;;
1139 --config-cache |
-C)
1140 cache_file
=config.cache
;;
1142 -datadir |
--datadir |
--datadi |
--datad)
1144 -datadir=* |
--datadir=* |
--datadi=* |
--datad=*)
1145 datadir
=$ac_optarg ;;
1147 -datarootdir |
--datarootdir |
--datarootdi |
--datarootd |
--dataroot \
1148 |
--dataroo |
--dataro |
--datar)
1149 ac_prev
=datarootdir
;;
1150 -datarootdir=* |
--datarootdir=* |
--datarootdi=* |
--datarootd=* \
1151 |
--dataroot=* |
--dataroo=* |
--dataro=* |
--datar=*)
1152 datarootdir
=$ac_optarg ;;
1154 -disable-* |
--disable-*)
1155 ac_useropt
=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
1156 # Reject names that are not valid shell variable names.
1157 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev
/null
&&
1158 as_fn_error $?
"invalid feature name: $ac_useropt"
1159 ac_useropt_orig
=$ac_useropt
1160 ac_useropt
=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1161 case $ac_user_opts in
1163 "enable_
$ac_useropt"
1165 *) ac_unrecognized_opts
="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
1166 ac_unrecognized_sep
=', ';;
1168 eval enable_
$ac_useropt=no
;;
1170 -docdir |
--docdir |
--docdi |
--doc |
--do)
1172 -docdir=* |
--docdir=* |
--docdi=* |
--doc=* |
--do=*)
1173 docdir
=$ac_optarg ;;
1175 -dvidir |
--dvidir |
--dvidi |
--dvid |
--dvi |
--dv)
1177 -dvidir=* |
--dvidir=* |
--dvidi=* |
--dvid=* |
--dvi=* |
--dv=*)
1178 dvidir
=$ac_optarg ;;
1180 -enable-* |
--enable-*)
1181 ac_useropt
=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
1182 # Reject names that are not valid shell variable names.
1183 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev
/null
&&
1184 as_fn_error $?
"invalid feature name: $ac_useropt"
1185 ac_useropt_orig
=$ac_useropt
1186 ac_useropt
=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1187 case $ac_user_opts in
1189 "enable_
$ac_useropt"
1191 *) ac_unrecognized_opts
="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
1192 ac_unrecognized_sep
=', ';;
1194 eval enable_
$ac_useropt=\
$ac_optarg ;;
1196 -exec-prefix |
--exec_prefix |
--exec-prefix |
--exec-prefi \
1197 |
--exec-pref |
--exec-pre |
--exec-pr |
--exec-p |
--exec- \
1198 |
--exec |
--exe |
--ex)
1199 ac_prev
=exec_prefix
;;
1200 -exec-prefix=* |
--exec_prefix=* |
--exec-prefix=* |
--exec-prefi=* \
1201 |
--exec-pref=* |
--exec-pre=* |
--exec-pr=* |
--exec-p=* |
--exec-=* \
1202 |
--exec=* |
--exe=* |
--ex=*)
1203 exec_prefix
=$ac_optarg ;;
1205 -gas |
--gas |
--ga |
--g)
1206 # Obsolete; use --with-gas.
1209 -help |
--help |
--hel |
--he |
-h)
1210 ac_init_help
=long
;;
1211 -help=r
* |
--help=r
* |
--hel=r
* |
--he=r
* |
-hr*)
1212 ac_init_help
=recursive
;;
1213 -help=s
* |
--help=s
* |
--hel=s
* |
--he=s
* |
-hs*)
1214 ac_init_help
=short
;;
1216 -host |
--host |
--hos |
--ho)
1217 ac_prev
=host_alias
;;
1218 -host=* |
--host=* |
--hos=* |
--ho=*)
1219 host_alias
=$ac_optarg ;;
1221 -htmldir |
--htmldir |
--htmldi |
--htmld |
--html |
--htm |
--ht)
1223 -htmldir=* |
--htmldir=* |
--htmldi=* |
--htmld=* |
--html=* |
--htm=* \
1225 htmldir
=$ac_optarg ;;
1227 -includedir |
--includedir |
--includedi |
--included |
--include \
1228 |
--includ |
--inclu |
--incl |
--inc)
1229 ac_prev
=includedir
;;
1230 -includedir=* |
--includedir=* |
--includedi=* |
--included=* |
--include=* \
1231 |
--includ=* |
--inclu=* |
--incl=* |
--inc=*)
1232 includedir
=$ac_optarg ;;
1234 -infodir |
--infodir |
--infodi |
--infod |
--info |
--inf)
1236 -infodir=* |
--infodir=* |
--infodi=* |
--infod=* |
--info=* |
--inf=*)
1237 infodir
=$ac_optarg ;;
1239 -libdir |
--libdir |
--libdi |
--libd)
1241 -libdir=* |
--libdir=* |
--libdi=* |
--libd=*)
1242 libdir
=$ac_optarg ;;
1244 -libexecdir |
--libexecdir |
--libexecdi |
--libexecd |
--libexec \
1245 |
--libexe |
--libex |
--libe)
1246 ac_prev
=libexecdir
;;
1247 -libexecdir=* |
--libexecdir=* |
--libexecdi=* |
--libexecd=* |
--libexec=* \
1248 |
--libexe=* |
--libex=* |
--libe=*)
1249 libexecdir
=$ac_optarg ;;
1251 -localedir |
--localedir |
--localedi |
--localed |
--locale)
1252 ac_prev
=localedir
;;
1253 -localedir=* |
--localedir=* |
--localedi=* |
--localed=* |
--locale=*)
1254 localedir
=$ac_optarg ;;
1256 -localstatedir |
--localstatedir |
--localstatedi |
--localstated \
1257 |
--localstate |
--localstat |
--localsta |
--localst |
--locals)
1258 ac_prev
=localstatedir
;;
1259 -localstatedir=* |
--localstatedir=* |
--localstatedi=* |
--localstated=* \
1260 |
--localstate=* |
--localstat=* |
--localsta=* |
--localst=* |
--locals=*)
1261 localstatedir
=$ac_optarg ;;
1263 -mandir |
--mandir |
--mandi |
--mand |
--man |
--ma |
--m)
1265 -mandir=* |
--mandir=* |
--mandi=* |
--mand=* |
--man=* |
--ma=* |
--m=*)
1266 mandir
=$ac_optarg ;;
1268 -nfp |
--nfp |
--nf)
1269 # Obsolete; use --without-fp.
1272 -no-create |
--no-create |
--no-creat |
--no-crea |
--no-cre \
1273 |
--no-cr |
--no-c |
-n)
1276 -no-recursion |
--no-recursion |
--no-recursio |
--no-recursi \
1277 |
--no-recurs |
--no-recur |
--no-recu |
--no-rec |
--no-re |
--no-r)
1280 -oldincludedir |
--oldincludedir |
--oldincludedi |
--oldincluded \
1281 |
--oldinclude |
--oldinclud |
--oldinclu |
--oldincl |
--oldinc \
1282 |
--oldin |
--oldi |
--old |
--ol |
--o)
1283 ac_prev
=oldincludedir
;;
1284 -oldincludedir=* |
--oldincludedir=* |
--oldincludedi=* |
--oldincluded=* \
1285 |
--oldinclude=* |
--oldinclud=* |
--oldinclu=* |
--oldincl=* |
--oldinc=* \
1286 |
--oldin=* |
--oldi=* |
--old=* |
--ol=* |
--o=*)
1287 oldincludedir
=$ac_optarg ;;
1289 -prefix |
--prefix |
--prefi |
--pref |
--pre |
--pr |
--p)
1291 -prefix=* |
--prefix=* |
--prefi=* |
--pref=* |
--pre=* |
--pr=* |
--p=*)
1292 prefix
=$ac_optarg ;;
1294 -program-prefix |
--program-prefix |
--program-prefi |
--program-pref \
1295 |
--program-pre |
--program-pr |
--program-p)
1296 ac_prev
=program_prefix
;;
1297 -program-prefix=* |
--program-prefix=* |
--program-prefi=* \
1298 |
--program-pref=* |
--program-pre=* |
--program-pr=* |
--program-p=*)
1299 program_prefix
=$ac_optarg ;;
1301 -program-suffix |
--program-suffix |
--program-suffi |
--program-suff \
1302 |
--program-suf |
--program-su |
--program-s)
1303 ac_prev
=program_suffix
;;
1304 -program-suffix=* |
--program-suffix=* |
--program-suffi=* \
1305 |
--program-suff=* |
--program-suf=* |
--program-su=* |
--program-s=*)
1306 program_suffix
=$ac_optarg ;;
1308 -program-transform-name |
--program-transform-name \
1309 |
--program-transform-nam |
--program-transform-na \
1310 |
--program-transform-n |
--program-transform- \
1311 |
--program-transform |
--program-transfor \
1312 |
--program-transfo |
--program-transf \
1313 |
--program-trans |
--program-tran \
1314 |
--progr-tra |
--program-tr |
--program-t)
1315 ac_prev
=program_transform_name
;;
1316 -program-transform-name=* |
--program-transform-name=* \
1317 |
--program-transform-nam=* |
--program-transform-na=* \
1318 |
--program-transform-n=* |
--program-transform-=* \
1319 |
--program-transform=* |
--program-transfor=* \
1320 |
--program-transfo=* |
--program-transf=* \
1321 |
--program-trans=* |
--program-tran=* \
1322 |
--progr-tra=* |
--program-tr=* |
--program-t=*)
1323 program_transform_name
=$ac_optarg ;;
1325 -pdfdir |
--pdfdir |
--pdfdi |
--pdfd |
--pdf |
--pd)
1327 -pdfdir=* |
--pdfdir=* |
--pdfdi=* |
--pdfd=* |
--pdf=* |
--pd=*)
1328 pdfdir
=$ac_optarg ;;
1330 -psdir |
--psdir |
--psdi |
--psd |
--ps)
1332 -psdir=* |
--psdir=* |
--psdi=* |
--psd=* |
--ps=*)
1335 -q |
-quiet |
--quiet |
--quie |
--qui |
--qu |
--q \
1336 |
-silent |
--silent |
--silen |
--sile |
--sil)
1339 -sbindir |
--sbindir |
--sbindi |
--sbind |
--sbin |
--sbi |
--sb)
1341 -sbindir=* |
--sbindir=* |
--sbindi=* |
--sbind=* |
--sbin=* \
1343 sbindir
=$ac_optarg ;;
1345 -sharedstatedir |
--sharedstatedir |
--sharedstatedi \
1346 |
--sharedstated |
--sharedstate |
--sharedstat |
--sharedsta \
1347 |
--sharedst |
--shareds |
--shared |
--share |
--shar \
1349 ac_prev
=sharedstatedir
;;
1350 -sharedstatedir=* |
--sharedstatedir=* |
--sharedstatedi=* \
1351 |
--sharedstated=* |
--sharedstate=* |
--sharedstat=* |
--sharedsta=* \
1352 |
--sharedst=* |
--shareds=* |
--shared=* |
--share=* |
--shar=* \
1354 sharedstatedir
=$ac_optarg ;;
1356 -site |
--site |
--sit)
1358 -site=* |
--site=* |
--sit=*)
1361 -srcdir |
--srcdir |
--srcdi |
--srcd |
--src |
--sr)
1363 -srcdir=* |
--srcdir=* |
--srcdi=* |
--srcd=* |
--src=* |
--sr=*)
1364 srcdir
=$ac_optarg ;;
1366 -sysconfdir |
--sysconfdir |
--sysconfdi |
--sysconfd |
--sysconf \
1367 |
--syscon |
--sysco |
--sysc |
--sys |
--sy)
1368 ac_prev
=sysconfdir
;;
1369 -sysconfdir=* |
--sysconfdir=* |
--sysconfdi=* |
--sysconfd=* |
--sysconf=* \
1370 |
--syscon=* |
--sysco=* |
--sysc=* |
--sys=* |
--sy=*)
1371 sysconfdir
=$ac_optarg ;;
1373 -target |
--target |
--targe |
--targ |
--tar |
--ta |
--t)
1374 ac_prev
=target_alias
;;
1375 -target=* |
--target=* |
--targe=* |
--targ=* |
--tar=* |
--ta=* |
--t=*)
1376 target_alias
=$ac_optarg ;;
1378 -v |
-verbose |
--verbose |
--verbos |
--verbo |
--verb)
1381 -version |
--version |
--versio |
--versi |
--vers |
-V)
1382 ac_init_version
=: ;;
1385 ac_useropt
=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1386 # Reject names that are not valid shell variable names.
1387 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev
/null
&&
1388 as_fn_error $?
"invalid package name: $ac_useropt"
1389 ac_useropt_orig
=$ac_useropt
1390 ac_useropt
=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1391 case $ac_user_opts in
1395 *) ac_unrecognized_opts
="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1396 ac_unrecognized_sep
=', ';;
1398 eval with_
$ac_useropt=\
$ac_optarg ;;
1400 -without-* |
--without-*)
1401 ac_useropt
=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1402 # Reject names that are not valid shell variable names.
1403 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev
/null
&&
1404 as_fn_error $?
"invalid package name: $ac_useropt"
1405 ac_useropt_orig
=$ac_useropt
1406 ac_useropt
=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1407 case $ac_user_opts in
1411 *) ac_unrecognized_opts
="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1412 ac_unrecognized_sep
=', ';;
1414 eval with_
$ac_useropt=no
;;
1417 # Obsolete; use --with-x.
1420 -x-includes |
--x-includes |
--x-include |
--x-includ |
--x-inclu \
1421 |
--x-incl |
--x-inc |
--x-in |
--x-i)
1422 ac_prev
=x_includes
;;
1423 -x-includes=* |
--x-includes=* |
--x-include=* |
--x-includ=* |
--x-inclu=* \
1424 |
--x-incl=* |
--x-inc=* |
--x-in=* |
--x-i=*)
1425 x_includes
=$ac_optarg ;;
1427 -x-libraries |
--x-libraries |
--x-librarie |
--x-librari \
1428 |
--x-librar |
--x-libra |
--x-libr |
--x-lib |
--x-li |
--x-l)
1429 ac_prev
=x_libraries
;;
1430 -x-libraries=* |
--x-libraries=* |
--x-librarie=* |
--x-librari=* \
1431 |
--x-librar=* |
--x-libra=* |
--x-libr=* |
--x-lib=* |
--x-li=* |
--x-l=*)
1432 x_libraries
=$ac_optarg ;;
1434 -*) as_fn_error $?
"unrecognized option: \`$ac_option'
1435 Try \`$0 --help' for more information"
1439 ac_envvar
=`expr "x$ac_option" : 'x\([^=]*\)='`
1440 # Reject names that are not valid shell variable names.
1441 case $ac_envvar in #(
1442 '' |
[0-9]* |
*[!_
$as_cr_alnum]* )
1443 as_fn_error $?
"invalid variable name: \`$ac_envvar'" ;;
1445 eval $ac_envvar=\
$ac_optarg
1446 export $ac_envvar ;;
1449 # FIXME: should be removed in autoconf 3.0.
1450 $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1451 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev
/null
&&
1452 $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1453 : "${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}"
1459 if test -n "$ac_prev"; then
1460 ac_option
=--`echo $ac_prev | sed 's/_/-/g'`
1461 as_fn_error $?
"missing argument to $ac_option"
1464 if test -n "$ac_unrecognized_opts"; then
1465 case $enable_option_checking in
1467 fatal
) as_fn_error $?
"unrecognized options: $ac_unrecognized_opts" ;;
1468 *) $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
1472 # Check all directory arguments for consistency.
1473 for ac_var
in exec_prefix prefix bindir sbindir libexecdir datarootdir \
1474 datadir sysconfdir sharedstatedir localstatedir includedir \
1475 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1476 libdir localedir mandir
1478 eval ac_val
=\$
$ac_var
1479 # Remove trailing slashes.
1482 ac_val
=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1483 eval $ac_var=\
$ac_val;;
1485 # Be sure to have absolute directory names.
1487 [\\/$
]* | ?
:[\\/]* ) continue;;
1488 NONE |
'' ) case $ac_var in *prefix
) continue;; esac;;
1490 as_fn_error $?
"expected an absolute directory name for --$ac_var: $ac_val"
1493 # There might be people who depend on the old broken behavior: `$host'
1494 # used to hold the argument of --host etc.
1495 # FIXME: To remove some day.
1498 target
=$target_alias
1500 # FIXME: To remove some day.
1501 if test "x$host_alias" != x
; then
1502 if test "x$build_alias" = x
; then
1503 cross_compiling
=maybe
1504 $as_echo "$as_me: WARNING: if you wanted to set the --build type, don't use --host.
1505 If a cross compiler is detected then cross compile mode will be used" >&2
1506 elif test "x$build_alias" != "x$host_alias"; then
1512 test -n "$host_alias" && ac_tool_prefix
=$host_alias-
1514 test "$silent" = yes && exec 6>/dev
/null
1517 ac_pwd
=`pwd` && test -n "$ac_pwd" &&
1518 ac_ls_di
=`ls -di .` &&
1519 ac_pwd_ls_di
=`cd "$ac_pwd" && ls -di .` ||
1520 as_fn_error $?
"working directory cannot be determined"
1521 test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1522 as_fn_error $?
"pwd does not report name of working directory"
1525 # Find the source files, if location was not specified.
1526 if test -z "$srcdir"; then
1527 ac_srcdir_defaulted
=yes
1528 # Try the directory containing this script, then the parent directory.
1529 ac_confdir
=`$as_dirname -- "$as_myself" ||
1530 $as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1531 X"$as_myself" : 'X\(//\)[^/]' \| \
1532 X"$as_myself" : 'X\(//\)$' \| \
1533 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1534 $as_echo X"$as_myself" |
1535 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1553 if test ! -r "$srcdir/$ac_unique_file"; then
1557 ac_srcdir_defaulted
=no
1559 if test ! -r "$srcdir/$ac_unique_file"; then
1560 test "$ac_srcdir_defaulted" = yes && srcdir
="$ac_confdir or .."
1561 as_fn_error $?
"cannot find sources ($ac_unique_file) in $srcdir"
1563 ac_msg
="sources are in $srcdir, but \`cd $srcdir' does not work"
1565 cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg"
1567 # When building in place, set srcdir=.
1568 if test "$ac_abs_confdir" = "$ac_pwd"; then
1571 # Remove unnecessary trailing slashes from srcdir.
1572 # Double slashes in file names in object file debugging info
1573 # mess up M-x gdb in Emacs.
1575 */) srcdir
=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1577 for ac_var
in $ac_precious_vars; do
1578 eval ac_env_
${ac_var}_set=\${${ac_var}+set}
1579 eval ac_env_
${ac_var}_value
=\$
${ac_var}
1580 eval ac_cv_env_
${ac_var}_set=\${${ac_var}+set}
1581 eval ac_cv_env_
${ac_var}_value
=\$
${ac_var}
1585 # Report the --help message.
1587 if test "$ac_init_help" = "long"; then
1588 # Omit some internal or obsolete options to make the list less imposing.
1589 # This message is too long to be a string in the A/UX 3.1 sh.
1591 \`configure' configures emacs 24.0.50 to adapt to many kinds of systems.
1593 Usage: $0 [OPTION]... [VAR=VALUE]...
1595 To assign environment variables (e.g., CC, CFLAGS...), specify them as
1596 VAR=VALUE. See below for descriptions of some of the useful variables.
1598 Defaults for the options are specified in brackets.
1601 -h, --help display this help and exit
1602 --help=short display options specific to this package
1603 --help=recursive display the short help of all the included packages
1604 -V, --version display version information and exit
1605 -q, --quiet, --silent do not print \`checking ...' messages
1606 --cache-file=FILE cache test results in FILE [disabled]
1607 -C, --config-cache alias for \`--cache-file=config.cache'
1608 -n, --no-create do not create output files
1609 --srcdir=DIR find the sources in DIR [configure dir or \`..']
1611 Installation directories:
1612 --prefix=PREFIX install architecture-independent files in PREFIX
1613 [$ac_default_prefix]
1614 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
1617 By default, \`make install' will install all the files in
1618 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
1619 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1620 for instance \`--prefix=\$HOME'.
1622 For better control, use the options below.
1624 Fine tuning of the installation directories:
1625 --bindir=DIR user executables [EPREFIX/bin]
1626 --sbindir=DIR system admin executables [EPREFIX/sbin]
1627 --libexecdir=DIR program executables [EPREFIX/libexec]
1628 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
1629 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
1630 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
1631 --libdir=DIR object code libraries [EPREFIX/lib]
1632 --includedir=DIR C header files [PREFIX/include]
1633 --oldincludedir=DIR C header files for non-gcc [/usr/include]
1634 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
1635 --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
1636 --infodir=DIR info documentation [DATAROOTDIR/info]
1637 --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
1638 --mandir=DIR man documentation [DATAROOTDIR/man]
1639 --docdir=DIR documentation root [DATAROOTDIR/doc/emacs]
1640 --htmldir=DIR html documentation [DOCDIR]
1641 --dvidir=DIR dvi documentation [DOCDIR]
1642 --pdfdir=DIR pdf documentation [DOCDIR]
1643 --psdir=DIR ps documentation [DOCDIR]
1649 --program-prefix=PREFIX prepend PREFIX to installed program names
1650 --program-suffix=SUFFIX append SUFFIX to installed program names
1651 --program-transform-name=PROGRAM run
sed PROGRAM on installed program names
1654 --x-includes=DIR X include files are
in DIR
1655 --x-libraries=DIR X library files are
in DIR
1658 --build=BUILD configure
for building on BUILD
[guessed
]
1659 --host=HOST cross-compile to build programs to run on HOST
[BUILD
]
1663 if test -n "$ac_init_help"; then
1664 case $ac_init_help in
1665 short | recursive
) echo "Configuration of emacs 24.0.50:";;
1670 --disable-option-checking ignore unrecognized
--enable/--with options
1671 --disable-FEATURE do not include FEATURE
(same as
--enable-FEATURE=no
)
1672 --enable-FEATURE[=ARG
] include FEATURE
[ARG
=yes]
1673 --disable-ns-self-contained
1674 disable self contained build under NeXTstep
1675 --enable-asserts compile code with asserts enabled
1676 --enable-maintainer-mode
1677 enable make rules and dependencies not useful
(and
1678 sometimes confusing
) to the casual installer
1679 --enable-locallisppath=PATH
1680 directories Emacs should search
for lisp files
1681 specific to this site
1682 --enable-checking[=LIST
]
1683 enable expensive run-time checks. With LIST
, enable
1684 only specific categories of checks. Categories are
:
1685 all
,yes,no. Flags are
: stringbytes
, stringoverrun
,
1686 stringfreelist
, xmallocoverrun
, conslist
1687 --enable-use-lisp-union-type
1688 use a union
for the Lisp_Object data
type. This is
1689 only useful
for development
for catching certain
1691 --enable-profiling build emacs with profiling support. This might not
1692 work on all platforms
1693 --enable-autodepend automatically generate dependencies to .h-files.
1694 Requires GNU Make and Gcc. Enabled
if GNU Make and
1696 --disable-dependency-tracking speeds up one-time build
1697 --enable-dependency-tracking do not reject slow dependency extractors
1698 --disable-largefile omit support
for large files
1701 --with-PACKAGE[=ARG
] use PACKAGE
[ARG
=yes]
1702 --without-PACKAGE do not use PACKAGE
(same as
--with-PACKAGE=no
)
1703 --without-pop don
't support POP mail retrieval with movemail
1704 --with-kerberos support Kerberos-authenticated POP
1705 --with-kerberos5 support Kerberos version 5 authenticated POP
1706 --with-hesiod support Hesiod to get the POP server host
1707 --with-mmdf support MMDF mailboxes
1708 --with-mail-unlink unlink, rather than empty, mail spool after reading
1709 --with-mailhost=HOSTNAME
1710 string giving default POP mail host
1711 --without-sound don't compile with sound support
1712 --without-sync-input process async input synchronously
1713 --with-x-toolkit=KIT use an X toolkit
(KIT one of
: yes or gtk
, gtk3
,
1714 lucid or athena
, motif
, no
)
1715 --without-xpm don
't compile with XPM image support
1716 --without-jpeg don't compile with JPEG image support
1717 --without-tiff don
't compile with TIFF image support
1718 --without-gif don't compile with GIF image support
1719 --without-png don
't compile with PNG image support
1720 --without-rsvg don't compile with SVG image support
1721 --without-xml2 don
't compile with XML parsing support
1722 --without-imagemagick don't compile with ImageMagick image support
1723 --without-xft don
't use XFT for anti aliased fonts
1724 --without-libotf don't use libotf
for OpenType font support
1725 --without-m17n-flt don
't use m17n-flt for text shaping
1726 --without-toolkit-scroll-bars
1727 don't use Motif or Xaw3d scroll bars
1728 --without-xaw3d don
't use Xaw3d
1729 --without-xim don't use X11 XIM
1730 --with-ns use nextstep
(Cocoa or GNUstep
) windowing system
1731 --without-gpm don
't use -lgpm for mouse support on a GNU/Linux
1733 --without-dbus don't compile with D-Bus support
1734 --without-gconf don
't compile with GConf support
1735 --without-selinux don't compile with SELinux support
1736 --without-gnutls don
't use -lgnutls for SSL/TLS support
1737 --without-makeinfo don't require makeinfo
for building manuals
1738 --without-compress-info don
't compress the installed Info pages
1739 --with-pkg-config-prog=PATH
1740 path to pkg-config for finding GTK and librsvg
1741 --with-crt-dir=DIR directory containing crtn.o etc. The default is
1742 /usr/lib, or /usr/lib64 on some platforms.
1743 --with-gameuser=USER user for shared game score files
1744 --with-gnustep-conf=PATH
1745 path to GNUstep.conf; default $GNUSTEP_CONFIG_FILE,
1746 or /etc/GNUstep/GNUstep.conf
1747 --with-x use the X Window System
1749 Some influential environment variables:
1750 CC C compiler command
1751 CFLAGS C compiler flags
1752 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
1753 nonstandard directory <lib dir>
1754 LIBS libraries to pass to the linker, e.g. -l<library>
1755 CPPFLAGS (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if
1756 you have headers in a nonstandard directory <include dir>
1758 XMKMF Path to xmkmf, Makefile generator for X Window System
1760 Use these variables to override the choices made by `configure' or to
help
1761 it to
find libraries and programs with nonstandard names
/locations.
1763 Report bugs to the package provider.
1768 if test "$ac_init_help" = "recursive"; then
1769 # If there are subdirs, report their specific --help.
1770 for ac_dir
in : $ac_subdirs_all; do test "x$ac_dir" = x
: && continue
1771 test -d "$ac_dir" ||
1772 { cd "$srcdir" && ac_pwd
=`pwd` && srcdir
=.
&& test -d "$ac_dir"; } ||
1777 .
) ac_dir_suffix
= ac_top_builddir_sub
=. ac_top_build_prefix
= ;;
1779 ac_dir_suffix
=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
1780 # A ".." for each directory in $ac_dir_suffix.
1781 ac_top_builddir_sub
=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
1782 case $ac_top_builddir_sub in
1783 "") ac_top_builddir_sub
=. ac_top_build_prefix
= ;;
1784 *) ac_top_build_prefix
=$ac_top_builddir_sub/ ;;
1787 ac_abs_top_builddir
=$ac_pwd
1788 ac_abs_builddir
=$ac_pwd$ac_dir_suffix
1789 # for backward compatibility:
1790 ac_top_builddir
=$ac_top_build_prefix
1793 .
) # We are building in place.
1795 ac_top_srcdir
=$ac_top_builddir_sub
1796 ac_abs_top_srcdir
=$ac_pwd ;;
1797 [\\/]* | ?
:[\\/]* ) # Absolute name.
1798 ac_srcdir
=$srcdir$ac_dir_suffix;
1799 ac_top_srcdir
=$srcdir
1800 ac_abs_top_srcdir
=$srcdir ;;
1802 ac_srcdir
=$ac_top_build_prefix$srcdir$ac_dir_suffix
1803 ac_top_srcdir
=$ac_top_build_prefix$srcdir
1804 ac_abs_top_srcdir
=$ac_pwd/$srcdir ;;
1806 ac_abs_srcdir
=$ac_abs_top_srcdir$ac_dir_suffix
1808 cd "$ac_dir" ||
{ ac_status
=$?
; continue; }
1809 # Check for guested configure.
1810 if test -f "$ac_srcdir/configure.gnu"; then
1812 $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1813 elif test -f "$ac_srcdir/configure"; then
1815 $SHELL "$ac_srcdir/configure" --help=recursive
1817 $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1819 cd "$ac_pwd" ||
{ ac_status
=$?
; break; }
1823 test -n "$ac_init_help" && exit $ac_status
1824 if $ac_init_version; then
1826 emacs configure
24.0.50
1827 generated by GNU Autoconf
2.68
1829 Copyright
(C
) 2010 Free Software Foundation
, Inc.
1830 This configure
script is free software
; the Free Software Foundation
1831 gives unlimited permission to copy
, distribute and modify it.
1836 ## ------------------------ ##
1837 ## Autoconf initialization. ##
1838 ## ------------------------ ##
1840 # ac_fn_c_try_compile LINENO
1841 # --------------------------
1842 # Try to compile conftest.$ac_ext, and return whether this succeeded.
1843 ac_fn_c_try_compile
()
1845 as_lineno
=${as_lineno-"$1"} as_lineno_stack
=as_lineno_stack
=$as_lineno_stack
1846 rm -f conftest.
$ac_objext
1847 if { { ac_try
="$ac_compile"
1849 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
1850 *) ac_try_echo=$ac_try;;
1852 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1853 $as_echo "$ac_try_echo"; } >&5
1854 (eval "$ac_compile") 2>conftest.err
1856 if test -s conftest.err; then
1857 grep -v '^ *+' conftest.err >conftest.er1
1858 cat conftest.er1 >&5
1859 mv -f conftest.er1 conftest.err
1861 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1862 test $ac_status = 0; } && {
1863 test -z "$ac_c_werror_flag" ||
1864 test ! -s conftest.err
1865 } && test -s conftest.$ac_objext; then :
1868 $as_echo "$as_me: failed program was:" >&5
1869 sed 's/^/| /' conftest.$ac_ext >&5
1873 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1874 as_fn_set_status $ac_retval
1876 } # ac_fn_c_try_compile
1878 # ac_fn_c_try_cpp LINENO
1879 # ----------------------
1880 # Try to preprocess conftest.$ac_ext, and return whether this succeeded.
1883 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1884 if { { ac_try="$ac_cpp conftest.$ac_ext"
1886 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
1887 *) ac_try_echo
=$ac_try;;
1889 eval ac_try_echo
="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1890 $as_echo "$ac_try_echo"; } >&5
1891 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
1893 if test -s conftest.err
; then
1894 grep -v '^ *+' conftest.err
>conftest.er1
1895 cat conftest.er1
>&5
1896 mv -f conftest.er1 conftest.err
1898 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1899 test $ac_status = 0; } > conftest.i
&& {
1900 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
1901 test ! -s conftest.err
1905 $as_echo "$as_me: failed program was:" >&5
1906 sed 's/^/| /' conftest.
$ac_ext >&5
1910 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1911 as_fn_set_status
$ac_retval
1915 # ac_fn_c_check_header_mongrel LINENO HEADER VAR INCLUDES
1916 # -------------------------------------------------------
1917 # Tests whether HEADER exists, giving a warning if it cannot be compiled using
1918 # the include files in INCLUDES and setting the cache variable VAR
1920 ac_fn_c_check_header_mongrel
()
1922 as_lineno
=${as_lineno-"$1"} as_lineno_stack
=as_lineno_stack
=$as_lineno_stack
1923 if eval \
${$3+:} false
; then :
1924 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1925 $as_echo_n "checking for $2... " >&6; }
1926 if eval \
${$3+:} false
; then :
1927 $as_echo_n "(cached) " >&6
1930 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1931 $as_echo "$ac_res" >&6; }
1933 # Is the header compilable?
1934 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5
1935 $as_echo_n "checking $2 usability... " >&6; }
1936 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
1937 /* end confdefs.h. */
1941 if ac_fn_c_try_compile
"$LINENO"; then :
1942 ac_header_compiler
=yes
1944 ac_header_compiler
=no
1946 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
1947 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5
1948 $as_echo "$ac_header_compiler" >&6; }
1950 # Is the header present?
1951 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5
1952 $as_echo_n "checking $2 presence... " >&6; }
1953 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
1954 /* end confdefs.h. */
1957 if ac_fn_c_try_cpp
"$LINENO"; then :
1958 ac_header_preproc
=yes
1960 ac_header_preproc
=no
1962 rm -f conftest.err conftest.i conftest.
$ac_ext
1963 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5
1964 $as_echo "$ac_header_preproc" >&6; }
1966 # So? What about this header?
1967 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in #((
1969 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5
1970 $as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;}
1971 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
1972 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
1975 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5
1976 $as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;}
1977 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: check for missing prerequisite headers?" >&5
1978 $as_echo "$as_me: WARNING: $2: check for missing prerequisite headers?" >&2;}
1979 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5
1980 $as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;}
1981 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&5
1982 $as_echo "$as_me: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&2;}
1983 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
1984 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
1987 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1988 $as_echo_n "checking for $2... " >&6; }
1989 if eval \
${$3+:} false
; then :
1990 $as_echo_n "(cached) " >&6
1992 eval "$3=\$ac_header_compiler"
1995 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1996 $as_echo "$ac_res" >&6; }
1998 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2000 } # ac_fn_c_check_header_mongrel
2002 # ac_fn_c_try_run LINENO
2003 # ----------------------
2004 # Try to link conftest.$ac_ext, and return whether this succeeded. Assumes
2005 # that executables *can* be run.
2008 as_lineno
=${as_lineno-"$1"} as_lineno_stack
=as_lineno_stack
=$as_lineno_stack
2009 if { { ac_try
="$ac_link"
2011 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
2012 *) ac_try_echo=$ac_try;;
2014 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2015 $as_echo "$ac_try_echo"; } >&5
2016 (eval "$ac_link") 2>&5
2018 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2019 test $ac_status = 0; } && { ac_try='./conftest$ac_exeext'
2020 { { case "(($ac_try" in
2021 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
2022 *) ac_try_echo
=$ac_try;;
2024 eval ac_try_echo
="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2025 $as_echo "$ac_try_echo"; } >&5
2026 (eval "$ac_try") 2>&5
2028 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2029 test $ac_status = 0; }; }; then :
2032 $as_echo "$as_me: program exited with status $ac_status" >&5
2033 $as_echo "$as_me: failed program was:" >&5
2034 sed 's/^/| /' conftest.
$ac_ext >&5
2036 ac_retval
=$ac_status
2038 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
2039 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2040 as_fn_set_status
$ac_retval
2044 # ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES
2045 # -------------------------------------------------------
2046 # Tests whether HEADER exists and can be compiled using the include files in
2047 # INCLUDES, setting the cache variable VAR accordingly.
2048 ac_fn_c_check_header_compile
()
2050 as_lineno
=${as_lineno-"$1"} as_lineno_stack
=as_lineno_stack
=$as_lineno_stack
2051 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2052 $as_echo_n "checking for $2... " >&6; }
2053 if eval \
${$3+:} false
; then :
2054 $as_echo_n "(cached) " >&6
2056 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
2057 /* end confdefs.h. */
2061 if ac_fn_c_try_compile
"$LINENO"; then :
2066 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
2069 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2070 $as_echo "$ac_res" >&6; }
2071 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2073 } # ac_fn_c_check_header_compile
2075 # ac_fn_c_try_link LINENO
2076 # -----------------------
2077 # Try to link conftest.$ac_ext, and return whether this succeeded.
2080 as_lineno
=${as_lineno-"$1"} as_lineno_stack
=as_lineno_stack
=$as_lineno_stack
2081 rm -f conftest.
$ac_objext conftest
$ac_exeext
2082 if { { ac_try
="$ac_link"
2084 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
2085 *) ac_try_echo=$ac_try;;
2087 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2088 $as_echo "$ac_try_echo"; } >&5
2089 (eval "$ac_link") 2>conftest.err
2091 if test -s conftest.err; then
2092 grep -v '^ *+' conftest.err >conftest.er1
2093 cat conftest.er1 >&5
2094 mv -f conftest.er1 conftest.err
2096 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2097 test $ac_status = 0; } && {
2098 test -z "$ac_c_werror_flag" ||
2099 test ! -s conftest.err
2100 } && test -s conftest$ac_exeext && {
2101 test "$cross_compiling" = yes ||
2102 $as_test_x conftest$ac_exeext
2106 $as_echo "$as_me: failed program was:" >&5
2107 sed 's/^/| /' conftest.$ac_ext >&5
2111 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
2112 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
2113 # interfere with the next link command; also delete a directory that is
2114 # left behind by Apple's compiler. We do this before executing the actions.
2115 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
2116 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2117 as_fn_set_status $ac_retval
2119 } # ac_fn_c_try_link
2121 # ac_fn_c_check_decl LINENO SYMBOL VAR INCLUDES
2122 # ---------------------------------------------
2123 # Tests whether SYMBOL is declared in INCLUDES, setting cache variable VAR
2125 ac_fn_c_check_decl ()
2127 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2128 as_decl_name=`echo $2|
sed 's/ *(.*//'`
2129 as_decl_use=`echo $2|
sed -e 's/(/((/' -e 's/)/) 0&/' -e 's/,/) 0& (/g'`
2130 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $as_decl_name is declared" >&5
2131 $as_echo_n "checking whether $as_decl_name is declared... " >&6; }
2132 if eval \${$3+:} false; then :
2133 $as_echo_n "(cached) " >&6
2135 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2136 /* end confdefs.h. */
2141 #ifndef $as_decl_name
2143 (void) $as_decl_use;
2145 (void) $as_decl_name;
2153 if ac_fn_c_try_compile "$LINENO"; then :
2158 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2161 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2162 $as_echo "$ac_res" >&6; }
2163 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2165 } # ac_fn_c_check_decl
2167 # ac_fn_c_check_header_preproc LINENO HEADER VAR
2168 # ----------------------------------------------
2169 # Tests whether HEADER is present, setting the cache variable VAR accordingly.
2170 ac_fn_c_check_header_preproc ()
2172 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2173 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2174 $as_echo_n "checking for $2... " >&6; }
2175 if eval \${$3+:} false; then :
2176 $as_echo_n "(cached) " >&6
2178 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2179 /* end confdefs.h. */
2182 if ac_fn_c_try_cpp "$LINENO"; then :
2187 rm -f conftest.err conftest.i conftest.$ac_ext
2190 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2191 $as_echo "$ac_res" >&6; }
2192 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2194 } # ac_fn_c_check_header_preproc
2196 # ac_fn_c_check_member LINENO AGGR MEMBER VAR INCLUDES
2197 # ----------------------------------------------------
2198 # Tries to find if the field MEMBER exists in type AGGR, after including
2199 # INCLUDES, setting cache variable VAR accordingly.
2200 ac_fn_c_check_member ()
2202 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2203 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2.$3" >&5
2204 $as_echo_n "checking for $2.$3... " >&6; }
2205 if eval \${$4+:} false; then :
2206 $as_echo_n "(cached) " >&6
2208 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2209 /* end confdefs.h. */
2221 if ac_fn_c_try_compile "$LINENO"; then :
2224 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2225 /* end confdefs.h. */
2231 if (sizeof ac_aggr.$3)
2237 if ac_fn_c_try_compile "$LINENO"; then :
2242 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2244 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2247 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2248 $as_echo "$ac_res" >&6; }
2249 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2251 } # ac_fn_c_check_member
2253 # ac_fn_c_check_func LINENO FUNC VAR
2254 # ----------------------------------
2255 # Tests whether FUNC exists, setting the cache variable VAR accordingly
2256 ac_fn_c_check_func ()
2258 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2259 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2260 $as_echo_n "checking for $2... " >&6; }
2261 if eval \${$3+:} false; then :
2262 $as_echo_n "(cached) " >&6
2264 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2265 /* end confdefs.h. */
2266 /* Define $2 to an innocuous variant, in case <limits.h> declares $2.
2267 For example, HP-UX 11i <limits.h> declares gettimeofday. */
2268 #define $2 innocuous_$2
2270 /* System header to define __stub macros and hopefully few prototypes,
2271 which can conflict with char $2 (); below.
2272 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
2273 <limits.h> exists even on freestanding compilers. */
2276 # include <limits.h>
2278 # include <assert.h>
2283 /* Override any GCC internal prototype to avoid an error.
2284 Use char because int might match the return type of a GCC
2285 builtin and then its argument prototype would still apply. */
2290 /* The GNU C library defines this for functions which it implements
2291 to always fail with ENOSYS. Some functions are actually named
2292 something starting with __ and the normal name is an alias. */
2293 #if defined __stub_$2 || defined __stub___$2
2305 if ac_fn_c_try_link "$LINENO"; then :
2310 rm -f core conftest.err conftest.$ac_objext \
2311 conftest$ac_exeext conftest.$ac_ext
2314 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2315 $as_echo "$ac_res" >&6; }
2316 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2318 } # ac_fn_c_check_func
2320 # ac_fn_c_check_type LINENO TYPE VAR INCLUDES
2321 # -------------------------------------------
2322 # Tests whether TYPE exists after having included INCLUDES, setting cache
2323 # variable VAR accordingly.
2324 ac_fn_c_check_type ()
2326 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2327 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2328 $as_echo_n "checking for $2... " >&6; }
2329 if eval \${$3+:} false; then :
2330 $as_echo_n "(cached) " >&6
2333 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2334 /* end confdefs.h. */
2345 if ac_fn_c_try_compile "$LINENO"; then :
2346 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2347 /* end confdefs.h. */
2358 if ac_fn_c_try_compile "$LINENO"; then :
2363 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2365 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2368 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2369 $as_echo "$ac_res" >&6; }
2370 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2372 } # ac_fn_c_check_type
2373 cat >config.log <<_ACEOF
2374 This file contains any messages produced by compilers while
2375 running configure, to aid debugging if configure makes a mistake.
2377 It was created by emacs $as_me 24.0.50, which was
2378 generated by GNU Autoconf 2.68. Invocation command line was
2390 hostname = `(hostname || uname
-n) 2>/dev
/null |
sed 1q
`
2391 uname -m = `(uname
-m) 2>/dev
/null ||
echo unknown
`
2392 uname -r = `(uname
-r) 2>/dev
/null ||
echo unknown
`
2393 uname -s = `(uname
-s) 2>/dev
/null ||
echo unknown
`
2394 uname -v = `(uname
-v) 2>/dev
/null ||
echo unknown
`
2396 /usr/bin/uname -p = `(/usr
/bin
/uname
-p) 2>/dev
/null ||
echo unknown
`
2397 /bin/uname -X = `(/bin
/uname
-X) 2>/dev
/null ||
echo unknown
`
2399 /bin/arch = `(/bin
/arch
) 2>/dev
/null ||
echo unknown
`
2400 /usr/bin/arch -k = `(/usr
/bin
/arch
-k) 2>/dev
/null ||
echo unknown
`
2401 /usr/convex/getsysinfo = `(/usr
/convex
/getsysinfo
) 2>/dev
/null ||
echo unknown
`
2402 /usr/bin/hostinfo = `(/usr
/bin
/hostinfo
) 2>/dev
/null ||
echo unknown
`
2403 /bin/machine = `(/bin
/machine
) 2>/dev
/null ||
echo unknown
`
2404 /usr/bin/oslevel = `(/usr
/bin
/oslevel
) 2>/dev
/null ||
echo unknown
`
2405 /bin/universe = `(/bin
/universe
) 2>/dev
/null ||
echo unknown
`
2409 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2413 test -z "$as_dir" && as_dir=.
2414 $as_echo "PATH: $as_dir"
2430 # Keep a trace of the command line.
2431 # Strip out --no-create and --no-recursion so they do not pile up.
2432 # Strip out --silent because we don't want to record it for future runs.
2433 # Also quote any args containing shell meta-characters.
2434 # Make two passes to allow for proper duplicate-argument suppression.
2438 ac_must_keep_next=false
2444 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
2445 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
2446 | -silent | --silent | --silen | --sile | --sil)
2449 ac_arg=`$as_echo "$ac_arg" |
sed "s/'/'\\\\\\\\''/g"` ;;
2452 1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
2454 as_fn_append ac_configure_args1 " '$ac_arg'"
2455 if test $ac_must_keep_next = true; then
2456 ac_must_keep_next=false # Got value, back to normal.
2459 *=* | --config-cache | -C | -disable-* | --disable-* \
2460 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
2461 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
2462 | -with-* | --with-* | -without-* | --without-* | --x)
2463 case "$ac_configure_args0 " in
2464 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
2467 -* ) ac_must_keep_next=true ;;
2470 as_fn_append ac_configure_args " '$ac_arg'"
2475 { ac_configure_args0=; unset ac_configure_args0;}
2476 { ac_configure_args1=; unset ac_configure_args1;}
2478 # When interrupted or exit'd, cleanup temporary files, and complete
2479 # config.log. We remove comments because anyway the quotes in there
2480 # would cause problems or look ugly.
2481 # WARNING: Use '\'' to represent an apostrophe within the trap.
2482 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
2483 trap 'exit_status=$?
2484 # Save into config.log some information that might help in debugging.
2488 $as_echo "## ---------------- ##
2489 ## Cache variables. ##
2490 ## ---------------- ##"
2492 # The following way of writing the cache mishandles newlines in values,
2494 for ac_var in `(set) 2>&1 |
sed -n '\''s
/^\
([a-zA-Z_
][a-zA-Z0-9_
]*\
)=.
*/\
1/p
'\''`; do
2495 eval ac_val=\$$ac_var
2499 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
2500 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
2503 _ | IFS | as_nl) ;; #(
2504 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
2505 *) { eval $ac_var=; unset $ac_var;} ;;
2510 case $as_nl`(ac_space
='\'' '\''; set) 2>&1` in #(
2511 *${as_nl}ac_space=\ *)
2513 "s/'\''/'\''\\\\'\'''\''/g;
2514 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
2517 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
2524 $as_echo "## ----------------- ##
2525 ## Output variables. ##
2526 ## ----------------- ##"
2528 for ac_var in $ac_subst_vars
2530 eval ac_val=\$$ac_var
2532 *\'\''*) ac_val=`$as_echo "$ac_val" |
sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2534 $as_echo "$ac_var='\''$ac_val'\''"
2538 if test -n "$ac_subst_files"; then
2539 $as_echo "## ------------------- ##
2540 ## File substitutions. ##
2541 ## ------------------- ##"
2543 for ac_var in $ac_subst_files
2545 eval ac_val=\$$ac_var
2547 *\'\''*) ac_val=`$as_echo "$ac_val" |
sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2549 $as_echo "$ac_var='\''$ac_val'\''"
2554 if test -s confdefs.h; then
2555 $as_echo "## ----------- ##
2562 test "$ac_signal" != 0 &&
2563 $as_echo "$as_me: caught signal $ac_signal"
2564 $as_echo "$as_me: exit $exit_status"
2566 rm -f core *.core core.conftest.* &&
2567 rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
2570 for ac_signal in 1 2 13 15; do
2571 trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
2575 # confdefs.h avoids OS command line length limits that DEFS can exceed.
2576 rm -f -r conftest* confdefs.h
2578 $as_echo "/* confdefs.h */" > confdefs.h
2580 # Predefined preprocessor variables.
2582 cat >>confdefs.h <<_ACEOF
2583 #define PACKAGE_NAME "$PACKAGE_NAME"
2586 cat >>confdefs.h <<_ACEOF
2587 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
2590 cat >>confdefs.h <<_ACEOF
2591 #define PACKAGE_VERSION "$PACKAGE_VERSION"
2594 cat >>confdefs.h <<_ACEOF
2595 #define PACKAGE_STRING "$PACKAGE_STRING"
2598 cat >>confdefs.h <<_ACEOF
2599 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
2602 cat >>confdefs.h <<_ACEOF
2603 #define PACKAGE_URL "$PACKAGE_URL"
2607 # Let the site file select an alternate cache file if it wants to.
2608 # Prefer an explicitly selected file to automatically selected ones.
2611 if test -n "$CONFIG_SITE"; then
2612 # We do not want a PATH search for config.site.
2613 case $CONFIG_SITE in #((
2614 -*) ac_site_file1=./$CONFIG_SITE;;
2615 */*) ac_site_file1=$CONFIG_SITE;;
2616 *) ac_site_file1=./$CONFIG_SITE;;
2618 elif test "x$prefix" != xNONE; then
2619 ac_site_file1=$prefix/share/config.site
2620 ac_site_file2=$prefix/etc/config.site
2622 ac_site_file1=$ac_default_prefix/share/config.site
2623 ac_site_file2=$ac_default_prefix/etc/config.site
2625 for ac_site_file in "$ac_site_file1" "$ac_site_file2"
2627 test "x$ac_site_file" = xNONE && continue
2628 if test /dev/null != "$ac_site_file" && test -r "$ac_site_file"; then
2629 { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
2630 $as_echo "$as_me: loading site script $ac_site_file" >&6;}
2631 sed 's/^/| /' "$ac_site_file" >&5
2633 || { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2634 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2635 as_fn_error $? "failed to load site
script $ac_site_file
2636 See \
`config.log' for more details" "$LINENO" 5; }
2640 if test -r "$cache_file"; then
2641 # Some versions of bash will fail to source /dev/null (special files
2642 # actually), so we avoid doing that. DJGPP emulates it as a regular file.
2643 if test /dev/null != "$cache_file" && test -f "$cache_file"; then
2644 { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
2645 $as_echo "$as_me: loading cache $cache_file" >&6;}
2647 [\\/]* | ?:[\\/]* ) . "$cache_file";;
2648 *) . "./$cache_file";;
2652 { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
2653 $as_echo "$as_me: creating cache $cache_file" >&6;}
2657 as_fn_append ac_header_list " stdlib.h"
2658 as_fn_append ac_header_list " unistd.h"
2659 as_fn_append ac_header_list " sys/param.h"
2660 gl_getopt_required=GNU
2661 as_fn_append ac_header_list " getopt.h"
2662 as_fn_append ac_func_list " alarm"
2663 as_fn_append ac_func_list " tzset"
2664 as_fn_append ac_header_list " sys/time.h"
2665 as_fn_append ac_func_list " localtime_r"
2666 # Check that the precious variables saved in the cache have kept the same
2668 ac_cache_corrupted=false
2669 for ac_var in $ac_precious_vars; do
2670 eval ac_old_set=\$ac_cv_env_${ac_var}_set
2671 eval ac_new_set=\$ac_env_${ac_var}_set
2672 eval ac_old_val=\$ac_cv_env_${ac_var}_value
2673 eval ac_new_val=\$ac_env_${ac_var}_value
2674 case $ac_old_set,$ac_new_set in
2676 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run
" >&5
2677 $as_echo "$as_me: error
: \
`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
2678 ac_cache_corrupted=: ;;
2680 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not
set in the previous run
" >&5
2681 $as_echo "$as_me: error
: \
`$ac_var' was not set in the previous run" >&2;}
2682 ac_cache_corrupted=: ;;
2685 if test "x$ac_old_val" != "x$ac_new_val"; then
2686 # differences in whitespace do not lead to failure.
2687 ac_old_val_w=`echo x
$ac_old_val`
2688 ac_new_val_w=`echo x
$ac_new_val`
2689 if test "$ac_old_val_w" != "$ac_new_val_w"; then
2690 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
2691 $as_echo "$as_me: error: \`$ac_var' has changed since the previous run
:" >&2;}
2692 ac_cache_corrupted=:
2694 { $as_echo "$as_me:${as_lineno-$LINENO}: warning
: ignoring whitespace changes
in \
`$ac_var' since the previous run:" >&5
2695 $as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
2696 eval $ac_var=\$ac_old_val
2698 { $as_echo "$as_me:${as_lineno-$LINENO}: former value: \`$ac_old_val'" >&5
2699 $as_echo "$as_me: former value
: \
`$ac_old_val'" >&2;}
2700 { $as_echo "$as_me:${as_lineno-$LINENO}: current value: \`$ac_new_val'" >&5
2701 $as_echo "$as_me: current value: \`$ac_new_val'" >&2;}
2704 # Pass precious variables to config.status.
2705 if test "$ac_new_set" = set; then
2707 *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s
/'/'\\\\\\\\''/g
"` ;;
2708 *) ac_arg=$ac_var=$ac_new_val ;;
2710 case " $ac_configure_args " in
2711 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
2712 *) as_fn_append ac_configure_args " '$ac_arg'" ;;
2716 if $ac_cache_corrupted; then
2717 { $as_echo "$as_me:${as_lineno-$LINENO}: error
: in \
`$ac_pwd':" >&5
2718 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2719 { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
2720 $as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
2721 as_fn_error $? "run \`make distclean' and
/or \
`rm $cache_file' and start over" "$LINENO" 5
2723 ## -------------------- ##
2724 ## Main body of script. ##
2725 ## -------------------- ##
2728 ac_cpp='$CPP $CPPFLAGS'
2729 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2730 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2731 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2734 ac_config_headers="$ac_config_headers src/config.h:src/config.in"
2737 am__api_version='1.11'
2740 for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do
2741 if test -f "$ac_dir/install-sh"; then
2743 ac_install_sh="$ac_aux_dir/install-sh -c"
2745 elif test -f "$ac_dir/install.sh"; then
2747 ac_install_sh="$ac_aux_dir/install.sh -c"
2749 elif test -f "$ac_dir/shtool"; then
2751 ac_install_sh="$ac_aux_dir/shtool install -c"
2755 if test -z "$ac_aux_dir"; then
2756 as_fn_error $? "cannot find install-sh, install.sh, or shtool in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" "$LINENO" 5
2759 # These three variables are undocumented and unsupported,
2760 # and are intended to be withdrawn in a future Autoconf release.
2761 # They can cause serious problems if a builder's source tree is in a directory
2762 # whose full name contains unusual characters.
2763 ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
2764 ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
2765 ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var.
2768 # Find a good install program. We prefer a C program (faster),
2769 # so one script is as good as another. But avoid the broken or
2770 # incompatible versions:
2771 # SysV /etc/install, /usr/sbin/install
2772 # SunOS /usr/etc/install
2773 # IRIX /sbin/install
2775 # AmigaOS /C/install, which installs bootblocks on floppy discs
2776 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
2777 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
2778 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
2779 # OS/2's system install, which has a completely different semantic
2780 # ./install, which can be erroneously created by make from ./install.sh.
2781 # Reject install programs that cannot install multiple files.
2782 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5
2783 $as_echo_n "checking for a BSD-compatible install... " >&6; }
2784 if test -z "$INSTALL"; then
2785 if ${ac_cv_path_install+:} false; then :
2786 $as_echo_n "(cached) " >&6
2788 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2792 test -z "$as_dir" && as_dir=.
2793 # Account for people who put trailing slashes in PATH elements.
2794 case $as_dir/ in #((
2795 ./ | .// | /[cC]/* | \
2796 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
2797 ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \
2800 # OSF1 and SCO ODT 3.0 have their own names for install.
2801 # Don't use installbsd from OSF since it installs stuff as root
2803 for ac_prog in ginstall scoinst install; do
2804 for ac_exec_ext in '' $ac_executable_extensions; do
2805 if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; }; then
2806 if test $ac_prog = install &&
2807 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2808 # AIX install. It has an incompatible calling convention.
2810 elif test $ac_prog = install &&
2811 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2812 # program-specific install script used by HP pwplus--don't use.
2815 rm -rf conftest.one conftest.two conftest.dir
2816 echo one > conftest.one
2817 echo two > conftest.two
2819 if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" &&
2820 test -s conftest.one && test -s conftest.two &&
2821 test -s conftest.dir/conftest.one &&
2822 test -s conftest.dir/conftest.two
2824 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
2837 rm -rf conftest.one conftest.two conftest.dir
2840 if test "${ac_cv_path_install+set}" = set; then
2841 INSTALL=$ac_cv_path_install
2843 # As a last resort, use the slow shell script. Don't cache a
2844 # value for INSTALL within a source directory, because that will
2845 # break other packages using the cache if that directory is
2846 # removed, or if the value is a relative name.
2847 INSTALL=$ac_install_sh
2850 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
2851 $as_echo "$INSTALL" >&6; }
2853 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
2854 # It thinks the first close brace ends the variable substitution.
2855 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
2857 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
2859 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
2861 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether build environment is sane" >&5
2862 $as_echo_n "checking whether build environment is sane... " >&6; }
2865 echo timestamp > conftest.file
2866 # Reject unsafe characters in $srcdir or the absolute working directory
2867 # name. Accept space and tab only in the latter.
2871 *[\\\"\#\$\&\'\`$am_lf]*)
2872 as_fn_error $?
"unsafe absolute working directory name" "$LINENO" 5;;
2875 *[\\\"\
#\$\&\'\`$am_lf\ \ ]*)
2876 as_fn_error $?
"unsafe srcdir value: \`$srcdir'" "$LINENO" 5;;
2879 # Do `set' in a subshell so we don't clobber the current shell's
2880 # arguments. Must try -L first in case configure is actually a
2881 # symlink; some systems play weird games with the mod time of symlinks
2882 # (eg FreeBSD returns the mod time of the symlink's containing
2885 set X
`ls -Lt "$srcdir/configure" conftest.file 2> /dev/null`
2886 if test "$*" = "X"; then
2888 set X
`ls -t "$srcdir/configure" conftest.file`
2891 if test "$*" != "X $srcdir/configure conftest.file" \
2892 && test "$*" != "X conftest.file $srcdir/configure"; then
2894 # If neither matched, then we have a broken ls. This can happen
2895 # if, for instance, CONFIG_SHELL is bash and it inherits a
2896 # broken ls alias from the environment. This has actually
2897 # happened. Such a system could not be considered "sane".
2898 as_fn_error $?
"ls -t appears to fail. Make sure there is not a broken
2899 alias in your environment" "$LINENO" 5
2902 test "$2" = conftest.
file
2908 as_fn_error $?
"newly created file is older than distributed files!
2909 Check your system clock" "$LINENO" 5
2911 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
2912 $as_echo "yes" >&6; }
2913 test "$program_prefix" != NONE
&&
2914 program_transform_name
="s&^&$program_prefix&;$program_transform_name"
2915 # Use a double $ so make ignores it.
2916 test "$program_suffix" != NONE
&&
2917 program_transform_name
="s&\$&$program_suffix&;$program_transform_name"
2918 # Double any \ or $.
2919 # By default was `s,x,x', remove it if useless.
2920 ac_script
='s/[\\$]/&&/g;s/;s,x,x,$//'
2921 program_transform_name
=`$as_echo "$program_transform_name" | sed "$ac_script"`
2923 # expand $ac_aux_dir to an absolute path
2924 am_aux_dir
=`cd $ac_aux_dir && pwd`
2926 if test x
"${MISSING+set}" != xset
; then
2929 MISSING
="\${SHELL} \"$am_aux_dir/missing\"" ;;
2931 MISSING
="\${SHELL} $am_aux_dir/missing" ;;
2934 # Use eval to expand $SHELL
2935 if eval "$MISSING --run true"; then
2936 am_missing_run
="$MISSING --run "
2939 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`missing' script is too old or missing" >&5
2940 $as_echo "$as_me: WARNING: \`missing' script is too old or missing" >&2;}
2943 if test x
"${install_sh}" != xset
; then
2946 install_sh
="\${SHELL} '$am_aux_dir/install-sh'" ;;
2948 install_sh
="\${SHELL} $am_aux_dir/install-sh"
2952 # Installed binaries are usually stripped using `strip' when the user
2953 # run `make install-strip'. However `strip' might not be the right
2954 # tool to use in cross-compilation environments, therefore Automake
2955 # will honor the `STRIP' environment variable to overrule this program.
2956 if test "$cross_compiling" != no
; then
2957 if test -n "$ac_tool_prefix"; then
2958 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
2959 set dummy
${ac_tool_prefix}strip
; ac_word
=$2
2960 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2961 $as_echo_n "checking for $ac_word... " >&6; }
2962 if ${ac_cv_prog_STRIP+:} false
; then :
2963 $as_echo_n "(cached) " >&6
2965 if test -n "$STRIP"; then
2966 ac_cv_prog_STRIP
="$STRIP" # Let the user override the test.
2968 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
2972 test -z "$as_dir" && as_dir
=.
2973 for ac_exec_ext
in '' $ac_executable_extensions; do
2974 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2975 ac_cv_prog_STRIP
="${ac_tool_prefix}strip"
2976 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2985 STRIP
=$ac_cv_prog_STRIP
2986 if test -n "$STRIP"; then
2987 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
2988 $as_echo "$STRIP" >&6; }
2990 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2991 $as_echo "no" >&6; }
2996 if test -z "$ac_cv_prog_STRIP"; then
2998 # Extract the first word of "strip", so it can be a program name with args.
2999 set dummy strip
; ac_word
=$2
3000 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3001 $as_echo_n "checking for $ac_word... " >&6; }
3002 if ${ac_cv_prog_ac_ct_STRIP+:} false
; then :
3003 $as_echo_n "(cached) " >&6
3005 if test -n "$ac_ct_STRIP"; then
3006 ac_cv_prog_ac_ct_STRIP
="$ac_ct_STRIP" # Let the user override the test.
3008 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
3012 test -z "$as_dir" && as_dir
=.
3013 for ac_exec_ext
in '' $ac_executable_extensions; do
3014 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3015 ac_cv_prog_ac_ct_STRIP
="strip"
3016 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3025 ac_ct_STRIP
=$ac_cv_prog_ac_ct_STRIP
3026 if test -n "$ac_ct_STRIP"; then
3027 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
3028 $as_echo "$ac_ct_STRIP" >&6; }
3030 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3031 $as_echo "no" >&6; }
3034 if test "x$ac_ct_STRIP" = x
; then
3037 case $cross_compiling:$ac_tool_warned in
3039 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3040 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3041 ac_tool_warned
=yes ;;
3046 STRIP
="$ac_cv_prog_STRIP"
3050 INSTALL_STRIP_PROGRAM
="\$(install_sh) -c -s"
3052 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a thread-safe mkdir -p" >&5
3053 $as_echo_n "checking for a thread-safe mkdir -p... " >&6; }
3054 if test -z "$MKDIR_P"; then
3055 if ${ac_cv_path_mkdir+:} false
; then :
3056 $as_echo_n "(cached) " >&6
3058 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
3059 for as_dir
in $PATH$PATH_SEPARATOR/opt
/sfw
/bin
3062 test -z "$as_dir" && as_dir
=.
3063 for ac_prog
in mkdir gmkdir
; do
3064 for ac_exec_ext
in '' $ac_executable_extensions; do
3065 { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; } ||
continue
3066 case `"$as_dir/$ac_prog$ac_exec_ext" --version 2>&1` in #(
3067 'mkdir (GNU coreutils) '* | \
3068 'mkdir (coreutils) '* | \
3069 'mkdir (fileutils) '4.1*)
3070 ac_cv_path_mkdir
=$as_dir/$ac_prog$ac_exec_ext
3080 test -d .
/--version && rmdir .
/--version
3081 if test "${ac_cv_path_mkdir+set}" = set; then
3082 MKDIR_P
="$ac_cv_path_mkdir -p"
3084 # As a last resort, use the slow shell script. Don't cache a
3085 # value for MKDIR_P within a source directory, because that will
3086 # break other packages using the cache if that directory is
3087 # removed, or if the value is a relative name.
3088 MKDIR_P
="$ac_install_sh -d"
3091 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MKDIR_P" >&5
3092 $as_echo "$MKDIR_P" >&6; }
3097 [\\/$
]* | ?
:[\\/]*) ;;
3098 */*) mkdir_p
="\$(top_builddir)/$mkdir_p" ;;
3101 for ac_prog
in gawk mawk nawk
awk
3103 # Extract the first word of "$ac_prog", so it can be a program name with args.
3104 set dummy
$ac_prog; ac_word
=$2
3105 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3106 $as_echo_n "checking for $ac_word... " >&6; }
3107 if ${ac_cv_prog_AWK+:} false
; then :
3108 $as_echo_n "(cached) " >&6
3110 if test -n "$AWK"; then
3111 ac_cv_prog_AWK
="$AWK" # Let the user override the test.
3113 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
3117 test -z "$as_dir" && as_dir
=.
3118 for ac_exec_ext
in '' $ac_executable_extensions; do
3119 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3120 ac_cv_prog_AWK
="$ac_prog"
3121 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3131 if test -n "$AWK"; then
3132 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
3133 $as_echo "$AWK" >&6; }
3135 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3136 $as_echo "no" >&6; }
3140 test -n "$AWK" && break
3143 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
3144 $as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
3146 ac_make
=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
3147 if eval \
${ac_cv_prog_make_${ac_make}_set+:} false
; then :
3148 $as_echo_n "(cached) " >&6
3150 cat >conftest.
make <<\_ACEOF
3153 @
echo '@@@%%%=$(MAKE)=@@@%%%'
3155 # GNU make sometimes prints "make[1]: Entering ...", which would confuse us.
3156 case `${MAKE-make} -f conftest.make 2>/dev/null` in
3158 eval ac_cv_prog_make_
${ac_make}_set
=yes;;
3160 eval ac_cv_prog_make_
${ac_make}_set
=no
;;
3164 if eval test \
$ac_cv_prog_make_${ac_make}_set
= yes; then
3165 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3166 $as_echo "yes" >&6; }
3169 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3170 $as_echo "no" >&6; }
3171 SET_MAKE
="MAKE=${MAKE-make}"
3174 rm -rf .tst
2>/dev
/null
3175 mkdir .tst
2>/dev
/null
3176 if test -d .tst
; then
3181 rmdir .tst
2>/dev
/null
3183 if test "`cd $srcdir && pwd`" != "`pwd`"; then
3184 # Use -I$(srcdir) only when $(srcdir) != ., so that make's output
3185 # is not polluted with repeated "-I."
3186 am__isrc
=' -I$(srcdir)'
3187 # test to see if srcdir already configured
3188 if test -f $srcdir/config.status
; then
3189 as_fn_error $?
"source directory already configured; run \"make distclean\" there first" "$LINENO" 5
3193 # test whether we have cygpath
3194 if test -z "$CYGPATH_W"; then
3195 if (cygpath
--version) >/dev
/null
2>/dev
/null
; then
3196 CYGPATH_W
='cygpath -w'
3203 # Define the identity of the package.
3208 cat >>confdefs.h
<<_ACEOF
3209 #define PACKAGE "$PACKAGE"
3213 cat >>confdefs.h
<<_ACEOF
3214 #define VERSION "$VERSION"
3217 # Some tools Automake needs.
3219 ACLOCAL
=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
3222 AUTOCONF
=${AUTOCONF-"${am_missing_run}autoconf"}
3225 AUTOMAKE
=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
3228 AUTOHEADER
=${AUTOHEADER-"${am_missing_run}autoheader"}
3231 MAKEINFO
=${MAKEINFO-"${am_missing_run}makeinfo"}
3233 # We need awk for the "check" target. The system "awk" is bad on
3235 # Always define AMTAR for backward compatibility.
3237 AMTAR
=${AMTAR-"${am_missing_run}tar"}
3239 am__tar
='${AMTAR} chof - "$$tardir"'; am__untar
='${AMTAR} xf -'
3248 lispdir
='${datadir}/emacs/${version}/lisp'
3249 locallisppath
='${datadir}/emacs/${version}/site-lisp:'\
3250 '${datadir}/emacs/site-lisp'
3251 lisppath
='${locallisppath}:${lispdir}:${datadir}/emacs/${version}/leim'
3252 etcdir
='${datadir}/emacs/${version}/etc'
3253 archlibdir
='${libexecdir}/emacs/${version}/${configuration}'
3254 docdir
='${datadir}/emacs/${version}/etc'
3255 gamedir
='${localstatedir}/games/emacs'
3260 # Check whether --with-pop was given.
3261 if test "${with_pop+set}" = set; then :
3267 if test "$with_pop" = yes; then
3268 $as_echo "#define MAIL_USE_POP 1" >>confdefs.h
3273 # Check whether --with-kerberos was given.
3274 if test "${with_kerberos+set}" = set; then :
3275 withval
=$with_kerberos;
3280 if test "$with_kerberos" != no
; then
3281 $as_echo "#define KERBEROS 1" >>confdefs.h
3286 # Check whether --with-kerberos5 was given.
3287 if test "${with_kerberos5+set}" = set; then :
3288 withval
=$with_kerberos5;
3293 if test "${with_kerberos5}" != no
; then
3294 if test "${with_kerberos}" = no
; then
3296 $as_echo "#define KERBEROS 1" >>confdefs.h
3300 $as_echo "#define KERBEROS5 1" >>confdefs.h
3305 # Check whether --with-hesiod was given.
3306 if test "${with_hesiod+set}" = set; then :
3307 withval
=$with_hesiod;
3312 if test "$with_hesiod" != no
; then
3314 $as_echo "#define HESIOD 1" >>confdefs.h
3319 # Check whether --with-mmdf was given.
3320 if test "${with_mmdf+set}" = set; then :
3326 if test "$with_mmdf" != no
; then
3328 $as_echo "#define MAIL_USE_MMDF 1" >>confdefs.h
3333 # Check whether --with-mail-unlink was given.
3334 if test "${with_mail_unlink+set}" = set; then :
3335 withval
=$with_mail_unlink;
3340 if test "$with_mail_unlink" != no
; then
3342 $as_echo "#define MAIL_UNLINK_SPOOL 1" >>confdefs.h
3347 # Check whether --with-mailhost was given.
3348 if test "${with_mailhost+set}" = set; then :
3349 withval
=$with_mailhost;
3350 cat >>confdefs.h
<<_ACEOF
3351 #define MAILHOST "$withval"
3358 # Check whether --with-sound was given.
3359 if test "${with_sound+set}" = set; then :
3360 withval
=$with_sound;
3367 # Check whether --with-sync-input was given.
3368 if test "${with_sync_input+set}" = set; then :
3369 withval
=$with_sync_input;
3374 if test "$with_sync_input" = yes; then
3376 $as_echo "#define SYNC_INPUT 1" >>confdefs.h
3381 # Check whether --with-x-toolkit was given.
3382 if test "${with_x_toolkit+set}" = set; then :
3383 withval
=$with_x_toolkit; case "${withval}" in
3384 y | ye |
yes ) val
=gtk
;;
3386 l | lu | luc | luci | lucid
) val
=lucid
;;
3387 a |
at | ath | athe | athen | athena
) val
=athena
;;
3388 m | mo | mot | moti | motif
) val
=motif
;;
3389 g | gt | gtk
) val
=gtk
;;
3392 as_fn_error $?
"\`--with-x-toolkit=$withval' is invalid;
3393 this option's value should be \`yes', \`no', \`lucid', \`athena', \`motif', \`gtk' or
3394 \`gtk3'. \`yes' and \`gtk' are synonyms. \`athena' and \`lucid' are synonyms." "$LINENO" 5
3403 # Check whether --with-xpm was given.
3404 if test "${with_xpm+set}" = set; then :
3411 # Check whether --with-jpeg was given.
3412 if test "${with_jpeg+set}" = set; then :
3419 # Check whether --with-tiff was given.
3420 if test "${with_tiff+set}" = set; then :
3427 # Check whether --with-gif was given.
3428 if test "${with_gif+set}" = set; then :
3435 # Check whether --with-png was given.
3436 if test "${with_png+set}" = set; then :
3443 # Check whether --with-rsvg was given.
3444 if test "${with_rsvg+set}" = set; then :
3451 # Check whether --with-xml2 was given.
3452 if test "${with_xml2+set}" = set; then :
3459 # Check whether --with-imagemagick was given.
3460 if test "${with_imagemagick+set}" = set; then :
3461 withval
=$with_imagemagick;
3463 with_imagemagick
=yes
3468 # Check whether --with-xft was given.
3469 if test "${with_xft+set}" = set; then :
3476 # Check whether --with-libotf was given.
3477 if test "${with_libotf+set}" = set; then :
3478 withval
=$with_libotf;
3484 # Check whether --with-m17n-flt was given.
3485 if test "${with_m17n_flt+set}" = set; then :
3486 withval
=$with_m17n_flt;
3493 # Check whether --with-toolkit-scroll-bars was given.
3494 if test "${with_toolkit_scroll_bars+set}" = set; then :
3495 withval
=$with_toolkit_scroll_bars;
3497 with_toolkit_scroll_bars
=yes
3501 # Check whether --with-xaw3d was given.
3502 if test "${with_xaw3d+set}" = set; then :
3503 withval
=$with_xaw3d;
3509 # Check whether --with-xim was given.
3510 if test "${with_xim+set}" = set; then :
3517 # Check whether --with-ns was given.
3518 if test "${with_ns+set}" = set; then :
3526 # Check whether --with-gpm was given.
3527 if test "${with_gpm+set}" = set; then :
3534 # Check whether --with-dbus was given.
3535 if test "${with_dbus+set}" = set; then :
3542 # Check whether --with-gconf was given.
3543 if test "${with_gconf+set}" = set; then :
3544 withval
=$with_gconf;
3550 # Check whether --with-selinux was given.
3551 if test "${with_selinux+set}" = set; then :
3552 withval
=$with_selinux;
3558 # Check whether --with-gnutls was given.
3559 if test "${with_gnutls+set}" = set; then :
3560 withval
=$with_gnutls;
3566 ## For the times when you want to build Emacs but don't have
3567 ## a suitable makeinfo, and can live without the manuals.
3569 # Check whether --with-makeinfo was given.
3570 if test "${with_makeinfo+set}" = set; then :
3571 withval
=$with_makeinfo;
3577 ## This is an option because I do not know if all info/man support
3578 ## compressed files, nor how to test if they do so.
3580 # Check whether --with-compress-info was given.
3581 if test "${with_compress_info+set}" = set; then :
3582 withval
=$with_compress_info;
3584 with_compress_info
=yes
3587 if test $with_compress_info = yes; then
3595 # Check whether --with-pkg-config-prog was given.
3596 if test "${with_pkg_config_prog+set}" = set; then :
3597 withval
=$with_pkg_config_prog;
3600 if test "X${with_pkg_config_prog}" != X
; then
3601 if test "${with_pkg_config_prog}" != yes; then
3602 PKG_CONFIG
="${with_pkg_config_prog}"
3608 # Check whether --with-crt-dir was given.
3609 if test "${with_crt_dir+set}" = set; then :
3610 withval
=$with_crt_dir;
3613 CRT_DIR
="${with_crt_dir}"
3616 # Check whether --with-gameuser was given.
3617 if test "${with_gameuser+set}" = set; then :
3618 withval
=$with_gameuser;
3621 test "X${with_gameuser}" != X
&& test "${with_gameuser}" != yes \
3622 && gameuser
="${with_gameuser}"
3623 test "X$gameuser" = X
&& gameuser
=games
3626 # Check whether --with-gnustep-conf was given.
3627 if test "${with_gnustep_conf+set}" = set; then :
3628 withval
=$with_gnustep_conf;
3631 test "X${with_gnustep_conf}" != X
&& test "${with_gnustep_conf}" != yes && \
3632 GNUSTEP_CONFIG_FILE
="${with_gnustep_conf}"
3633 test "X$GNUSTEP_CONFIG_FILE" = "X" && \
3634 GNUSTEP_CONFIG_FILE
=/etc
/GNUstep
/GNUstep.conf
3636 # Check whether --enable-ns-self-contained was given.
3637 if test "${enable_ns_self_contained+set}" = set; then :
3638 enableval
=$enable_ns_self_contained; EN_NS_SELF_CONTAINED
=$enableval
3640 EN_NS_SELF_CONTAINED
=yes
3644 # Check whether --enable-asserts was given.
3645 if test "${enable_asserts+set}" = set; then :
3646 enableval
=$enable_asserts; USE_XASSERTS
=$enableval
3652 # Check whether --enable-maintainer-mode was given.
3653 if test "${enable_maintainer_mode+set}" = set; then :
3654 enableval
=$enable_maintainer_mode; USE_MAINTAINER_MODE
=$enableval
3656 USE_MAINTAINER_MODE
=no
3659 if test $USE_MAINTAINER_MODE = yes; then
3666 # Check whether --enable-locallisppath was given.
3667 if test "${enable_locallisppath+set}" = set; then :
3668 enableval
=$enable_locallisppath; if test "${enableval}" = "no"; then
3670 elif test "${enableval}" != "yes"; then
3671 locallisppath
=${enableval}
3676 # Check whether --enable-checking was given.
3677 if test "${enable_checking+set}" = set; then :
3678 enableval
=$enable_checking; ac_checking_flags
="${enableval}"
3681 IFS
="${IFS= }"; ac_save_IFS
="$IFS"; IFS
="$IFS,"
3682 for check
in $ac_checking_flags
3685 # these set all the flags to specific states
3686 yes) ac_enable_checking
=1 ;;
3687 no
) ac_enable_checking
= ;
3688 ac_gc_check_stringbytes
= ;
3689 ac_gc_check_string_overrun
= ;
3690 ac_gc_check_string_free_list
= ;
3691 ac_xmalloc_overrun
= ;
3692 ac_gc_check_cons_list
= ;;
3693 all
) ac_enable_checking
=1 ;
3694 ac_gc_check_stringbytes
=1 ;
3695 ac_gc_check_string_overrun
=1 ;
3696 ac_gc_check_string_free_list
=1 ;
3697 ac_xmalloc_overrun
=1 ;
3698 ac_gc_check_cons_list
=1 ;;
3699 # these enable particular checks
3700 stringbytes
) ac_gc_check_stringbytes
=1 ;;
3701 stringoverrun
) ac_gc_check_string_overrun
=1 ;;
3702 stringfreelist
) ac_gc_check_string_free_list
=1 ;;
3703 xmallocoverrun
) ac_xmalloc_overrun
=1 ;;
3704 conslist
) ac_gc_check_cons_list
=1 ;;
3705 *) as_fn_error $?
"unknown check category $check" "$LINENO" 5 ;;
3710 if test x
$ac_enable_checking != x
; then
3712 $as_echo "#define ENABLE_CHECKING 1" >>confdefs.h
3715 if test x
$ac_gc_check_stringbytes != x
; then
3717 $as_echo "#define GC_CHECK_STRING_BYTES 1" >>confdefs.h
3720 if test x
$ac_gc_check_stringoverrun != x
; then
3722 $as_echo "#define GC_CHECK_STRING_OVERRUN 1" >>confdefs.h
3725 if test x
$ac_gc_check_string_free_list != x
; then
3727 $as_echo "#define GC_CHECK_STRING_FREE_LIST 1" >>confdefs.h
3730 if test x
$ac_xmalloc_overrun != x
; then
3732 $as_echo "#define XMALLOC_OVERRUN_CHECK 1" >>confdefs.h
3735 if test x
$ac_gc_check_cons_list != x
; then
3737 $as_echo "#define GC_CHECK_CONS_LIST 1" >>confdefs.h
3741 # Check whether --enable-use-lisp-union-type was given.
3742 if test "${enable_use_lisp_union_type+set}" = set; then :
3743 enableval
=$enable_use_lisp_union_type; if test "${enableval}" != "no"; then
3745 $as_echo "#define USE_LISP_UNION_TYPE 1" >>confdefs.h
3752 # Check whether --enable-profiling was given.
3753 if test "${enable_profiling+set}" = set; then :
3754 enableval
=$enable_profiling; ac_enable_profiling
="${enableval}"
3757 if test x
$ac_enable_profiling != x
; then
3758 PROFILING_CFLAGS
="-DPROFILING=1 -pg"
3764 # Check whether --enable-autodepend was given.
3765 if test "${enable_autodepend+set}" = set; then :
3766 enableval
=$enable_autodepend; ac_enable_autodepend
="${enableval}"
3768 ac_enable_autodepend
=yes
3772 #### Make srcdir absolute, if it isn't already. It's important to
3773 #### avoid running the path through pwd unnecessarily, since pwd can
3774 #### give you automounter prefixes, which can go away. We do all this
3775 #### so Emacs can find its files when run uninstalled.
3776 ## Make sure CDPATH doesn't affect cd (in case PWD is relative).
3781 ## We may be able to use the $PWD environment variable to make this
3782 ## absolute. But sometimes PWD is inaccurate.
3783 ## Note: we used to use ${PWD} at the end instead of `pwd`,
3784 ## but that tested only for a well-formed and valid PWD,
3785 ## it did not object when PWD was well-formed and valid but just wrong.
3786 if test ".${PWD}" != "." && test ".`(cd ${PWD} ; sh -c pwd)`" = ".`pwd`" ;
3790 srcdir
="`(cd ${srcdir}; pwd)`"
3793 * ) srcdir
="`(cd ${srcdir}; pwd)`" ;;
3796 #### Check if the source directory already has a configured system in it.
3797 if test `pwd` != `(cd ${srcdir} && pwd)` \
3798 && test -f "${srcdir}/src/config.h" ; then
3799 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: The directory tree \`${srcdir}' is being used
3800 as a build directory right now; it has been configured in its own
3801 right. To configure in another directory as well, you MUST
3802 use GNU make. If you do not have GNU make, then you must
3803 now do \`make distclean' in ${srcdir},
3804 and then run $0 again." >&5
3805 $as_echo "$as_me: WARNING: The directory tree \`${srcdir}' is being used
3806 as a build directory right now; it has been configured in its own
3807 right. To configure in another directory as well, you MUST
3808 use GNU make. If you do not have GNU make, then you must
3809 now do \`make distclean' in ${srcdir},
3810 and then run $0 again." >&2;}
3813 #### Given the configuration name, set machfile and opsysfile to the
3814 #### names of the m/*.h and s/*.h files we should use.
3816 ### Canonicalize the configuration name.
3818 # Make sure we can run config.sub.
3819 $SHELL "$ac_aux_dir/config.sub" sun4
>/dev
/null
2>&1 ||
3820 as_fn_error $?
"cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5
3822 { $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
3823 $as_echo_n "checking build system type... " >&6; }
3824 if ${ac_cv_build+:} false
; then :
3825 $as_echo_n "(cached) " >&6
3827 ac_build_alias
=$build_alias
3828 test "x$ac_build_alias" = x
&&
3829 ac_build_alias
=`$SHELL "$ac_aux_dir/config.guess"`
3830 test "x$ac_build_alias" = x
&&
3831 as_fn_error $?
"cannot guess build type; you must specify one" "$LINENO" 5
3832 ac_cv_build
=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
3833 as_fn_error $?
"$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5
3836 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
3837 $as_echo "$ac_cv_build" >&6; }
3838 case $ac_cv_build in
3840 *) as_fn_error $?
"invalid value of canonical build" "$LINENO" 5;;
3843 ac_save_IFS
=$IFS; IFS
='-'
3849 # Remember, the first character of IFS is used to create $*,
3850 # except with old shells:
3853 case $build_os in *\
*) build_os
=`echo "$build_os" | sed 's/ /-/g'`;; esac
3856 { $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
3857 $as_echo_n "checking host system type... " >&6; }
3858 if ${ac_cv_host+:} false
; then :
3859 $as_echo_n "(cached) " >&6
3861 if test "x$host_alias" = x
; then
3862 ac_cv_host
=$ac_cv_build
3864 ac_cv_host
=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
3865 as_fn_error $?
"$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5
3869 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
3870 $as_echo "$ac_cv_host" >&6; }
3873 *) as_fn_error $?
"invalid value of canonical host" "$LINENO" 5;;
3876 ac_save_IFS
=$IFS; IFS
='-'
3882 # Remember, the first character of IFS is used to create $*,
3883 # except with old shells:
3886 case $host_os in *\
*) host_os
=`echo "$host_os" | sed 's/ /-/g'`;; esac
3890 configuration
=${host_alias-${build_alias-$host}}
3894 ### If you add support for a new configuration, add code to this
3895 ### switch statement to recognize your configuration name and select
3896 ### the appropriate operating system and machine description files.
3898 ### You would hope that you could choose an m/*.h file pretty much
3899 ### based on the machine portion of the configuration name, and an s/*.h
3900 ### file based on the operating system portion. However, it turns out
3901 ### that each m/*.h file is pretty manufacturer-specific - for
3902 ### example mips.h is MIPS
3903 ### So we basically have to have a special case for each
3904 ### configuration name.
3906 ### As far as handling version numbers on operating systems is
3907 ### concerned, make sure things will fail in a fixable way. If
3908 ### /etc/MACHINES doesn't say anything about version numbers, be
3909 ### prepared to handle anything reasonably. If version numbers
3910 ### matter, be sure /etc/MACHINES says something about it.
3912 machine
='' opsys
='' unported
=no
3913 case "${canonical}" in
3918 case ${canonical} in
3919 alpha
*) machine
=alpha
;;
3920 s390-
*) machine
=ibms390
;;
3921 s390x-
*) machine
=ibms390x
;;
3922 powerpc
*) machine
=macppc
;;
3923 sparc
*) machine
=sparc
;;
3924 ia64
*) machine
=ia64
;;
3925 m68k
*) machine
=m68k
;;
3926 x86_64
*) machine
=amdx86-64
;;
3933 case "${canonical}" in
3934 alpha
*) machine
=alpha
;;
3935 amd64-
*|x86_64-
*) machine
=amdx86-64
;;
3936 ia64-
*) machine
=ia64
;;
3937 i
[3456]86-*) machine
=intel386
;;
3938 powerpc-
*) machine
=macppc
;;
3939 sparc-
*) machine
=sparc
;;
3940 sparc64-
*) machine
=sparc
;;
3944 ## FreeBSD kernel + glibc based userland
3947 case "${canonical}" in
3948 alpha
*) machine
=alpha
;;
3949 amd64-
*|x86_64-
*) machine
=amdx86-64
;;
3950 ia64-
*) machine
=ia64
;;
3951 i
[3456]86-*) machine
=intel386
;;
3952 powerpc-
*) machine
=macppc
;;
3953 sparc-
*) machine
=sparc
;;
3954 sparc64-
*) machine
=sparc
;;
3961 case "${canonical}" in
3962 alpha
*) machine
=alpha
;;
3963 x86_64-
*) machine
=amdx86-64
;;
3964 i
[3456]86-*) machine
=intel386
;;
3965 m68k-
*) machine
=m68k
;;
3966 powerpc-
*) machine
=macppc
;;
3967 sparc
*-) machine
=sparc
;;
3968 vax-
*) machine
=vax
;;
3975 case "${canonical}" in
3976 alpha
*) machine
=alpha
;;
3977 x86_64-
*) machine
=amdx86-64
;;
3978 i386-
*) machine
=intel386
;;
3979 powerpc-
*) machine
=macppc
;;
3980 sparc
*) machine
=sparc
;;
3981 vax-
*) machine
=vax
;;
3985 ## Apple Darwin / Mac OS X
3987 case "${canonical}" in
3988 i
[3456]86-* ) machine
=intel386
;;
3989 powerpc-
* ) machine
=macppc
;;
3990 x86_64-
* ) machine
=amdx86-64
;;
3994 # Define CPP as follows to make autoconf work correctly.
3995 CPP
="${CC-cc} -E -no-cpp-precomp"
3996 # Use fink packages if available.
3997 if test -d /sw
/include
&& test -d /sw
/lib
; then
3998 GCC_TEST_OPTIONS
="-I/sw/include -L/sw/lib"
3999 CPP
="${CPP} ${GCC_TEST_OPTIONS}"
4000 NON_GCC_TEST_OPTIONS
=${GCC_TEST_OPTIONS}
4004 ## HP 9000 series 700 and 800, running HP/UX
4005 hppa
*-hp-hpux10.2
* )
4008 hppa
*-hp-hpux1[1-9]* )
4010 CFLAGS
="-D_INCLUDE__STDC_A1_SOURCE $CFLAGS"
4013 ia64
*-hp-hpux1[1-9]* )
4014 machine
=hp800 opsys
=hpux11
4015 ## FIXME. Peter O'Gorman reports that dumping using unexelf.o doesn't
4016 ## work either: http://debbugs.gnu.org/cgi/bugreport.cgi?bug=6811
4020 hppa
*-*-linux-gnu* )
4021 machine
=hp800 opsys
=gnu-linux
4025 rs6000-ibm-aix4.
[23]* )
4026 machine
=ibmrs6000 opsys
=aix4-2
4028 powerpc-ibm-aix4.
[23]* )
4029 machine
=ibmrs6000 opsys
=aix4-2
4031 rs6000-ibm-aix
[56]* )
4032 machine
=ibmrs6000 opsys
=aix4-2
4034 powerpc-ibm-aix
[56]* )
4035 machine
=ibmrs6000 opsys
=aix4-2
4038 ## Silicon Graphics machines
4041 machine
=iris4d opsys
=irix6-5
4042 # Without defining _LANGUAGE_C, things get masked out in the headers
4043 # so that, for instance, grepping for `free' in stdlib.h fails and
4044 # AC_HEADER_STD_C fails. (MIPSPro 7.2.1.2m compilers, Irix 6.5.3m).
4045 NON_GNU_CPP
="/lib/cpp -D_LANGUAGE_C"
4046 NON_GCC_TEST_OPTIONS
="-D_LANGUAGE_C"
4051 | i
[3456]86-*-solaris2* | i
[3456]86-*-sunos5* \
4052 | x86_64-
*-solaris2* | x86_64-
*-sunos5*)
4053 case "${canonical}" in
4054 i
[3456]86-*-* ) machine
=intel386
;;
4055 amd64-
*-*|x86_64-
*-*) machine
=amdx86-64
;;
4056 sparc
* ) machine
=sparc
;;
4059 case "${canonical}" in
4060 *-sunos5.6
* |
*-solaris2.6
* )
4062 NON_GNU_CPP
=/usr
/ccs
/lib
/cpp
4065 *-sunos5.
[7-9]* |
*-solaris2.
[7-9]* )
4067 emacs_check_sunpro_c
=yes
4068 NON_GNU_CPP
=/usr
/ccs
/lib
/cpp
4070 *-sunos5* |
*-solaris* )
4072 emacs_check_sunpro_c
=yes
4073 NON_GNU_CPP
=/usr
/ccs
/lib
/cpp
4076 ## Watch out for a compiler that we know will not work.
4077 case "${canonical}" in
4078 *-solaris* |
*-sunos5* )
4079 if [ "x$CC" = x
/usr
/ucb
/cc
]; then
4080 ## /usr/ucb/cc doesn't work;
4081 ## we should find some other compiler that does work.
4089 ## Intel 386 machines where we don't care about the manufacturer.
4092 case "${canonical}" in
4093 *-cygwin ) opsys
=cygwin
;;
4094 *-darwin* ) opsys
=darwin
4095 CPP
="${CC-cc} -E -no-cpp-precomp"
4097 *-sysv4.2uw
* ) opsys
=unixware
; NON_GNU_CPP
=/lib
/cpp
;;
4098 *-sysv5uw* ) opsys
=unixware
; NON_GNU_CPP
=/lib
/cpp
;;
4099 *-sysv5OpenUNIX* ) opsys
=unixware
; NON_GNU_CPP
=/lib
/cpp
;;
4100 ## Otherwise, we'll fall through to the generic opsys code at the bottom.
4109 ### If the code above didn't choose an operating system, just choose
4110 ### an operating system based on the configuration name. You really
4111 ### only want to use this when you have no idea what the right
4112 ### operating system is; if you know what operating systems a machine
4113 ### runs, it's cleaner to make it explicit in the case statement
4115 if test x
"${opsys}" = x
; then
4116 case "${canonical}" in
4117 *-gnu* ) opsys
=gnu
;;
4126 if test $unported = yes; then
4127 as_fn_error $?
"Emacs hasn't been ported to \`${canonical}' systems.
4128 Check \`etc/MACHINES' for recognized configuration names." "$LINENO" 5
4131 if test -n "$machine"; then
4132 machfile
="m/${machine}.h"
4136 opsysfile
="s/${opsys}.h"
4139 #### Choose a compiler.
4140 test -n "$CC" && cc_specified
=yes
4142 # Save the value of CFLAGS that the user specified.
4143 SPECIFIED_CFLAGS
="$CFLAGS"
4146 ac_cpp
='$CPP $CPPFLAGS'
4147 ac_compile
='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4148 ac_link
='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4149 ac_compiler_gnu
=$ac_cv_c_compiler_gnu
4150 if test -n "$ac_tool_prefix"; then
4151 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
4152 set dummy
${ac_tool_prefix}gcc
; ac_word
=$2
4153 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4154 $as_echo_n "checking for $ac_word... " >&6; }
4155 if ${ac_cv_prog_CC+:} false
; then :
4156 $as_echo_n "(cached) " >&6
4158 if test -n "$CC"; then
4159 ac_cv_prog_CC
="$CC" # Let the user override the test.
4161 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
4165 test -z "$as_dir" && as_dir
=.
4166 for ac_exec_ext
in '' $ac_executable_extensions; do
4167 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4168 ac_cv_prog_CC
="${ac_tool_prefix}gcc"
4169 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4179 if test -n "$CC"; then
4180 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
4181 $as_echo "$CC" >&6; }
4183 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4184 $as_echo "no" >&6; }
4189 if test -z "$ac_cv_prog_CC"; then
4191 # Extract the first word of "gcc", so it can be a program name with args.
4192 set dummy gcc
; ac_word
=$2
4193 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4194 $as_echo_n "checking for $ac_word... " >&6; }
4195 if ${ac_cv_prog_ac_ct_CC+:} false
; then :
4196 $as_echo_n "(cached) " >&6
4198 if test -n "$ac_ct_CC"; then
4199 ac_cv_prog_ac_ct_CC
="$ac_ct_CC" # Let the user override the test.
4201 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
4205 test -z "$as_dir" && as_dir
=.
4206 for ac_exec_ext
in '' $ac_executable_extensions; do
4207 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4208 ac_cv_prog_ac_ct_CC
="gcc"
4209 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4218 ac_ct_CC
=$ac_cv_prog_ac_ct_CC
4219 if test -n "$ac_ct_CC"; then
4220 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
4221 $as_echo "$ac_ct_CC" >&6; }
4223 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4224 $as_echo "no" >&6; }
4227 if test "x$ac_ct_CC" = x
; then
4230 case $cross_compiling:$ac_tool_warned in
4232 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4233 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4234 ac_tool_warned
=yes ;;
4242 if test -z "$CC"; then
4243 if test -n "$ac_tool_prefix"; then
4244 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
4245 set dummy
${ac_tool_prefix}cc
; ac_word
=$2
4246 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4247 $as_echo_n "checking for $ac_word... " >&6; }
4248 if ${ac_cv_prog_CC+:} false
; then :
4249 $as_echo_n "(cached) " >&6
4251 if test -n "$CC"; then
4252 ac_cv_prog_CC
="$CC" # Let the user override the test.
4254 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
4258 test -z "$as_dir" && as_dir
=.
4259 for ac_exec_ext
in '' $ac_executable_extensions; do
4260 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4261 ac_cv_prog_CC
="${ac_tool_prefix}cc"
4262 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4272 if test -n "$CC"; then
4273 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
4274 $as_echo "$CC" >&6; }
4276 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4277 $as_echo "no" >&6; }
4283 if test -z "$CC"; then
4284 # Extract the first word of "cc", so it can be a program name with args.
4285 set dummy cc
; ac_word
=$2
4286 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4287 $as_echo_n "checking for $ac_word... " >&6; }
4288 if ${ac_cv_prog_CC+:} false
; then :
4289 $as_echo_n "(cached) " >&6
4291 if test -n "$CC"; then
4292 ac_cv_prog_CC
="$CC" # Let the user override the test.
4295 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
4299 test -z "$as_dir" && as_dir
=.
4300 for ac_exec_ext
in '' $ac_executable_extensions; do
4301 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4302 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
4303 ac_prog_rejected
=yes
4307 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4314 if test $ac_prog_rejected = yes; then
4315 # We found a bogon in the path, so make sure we never use it.
4316 set dummy
$ac_cv_prog_CC
4318 if test $# != 0; then
4319 # We chose a different compiler from the bogus one.
4320 # However, it has the same basename, so the bogon will be chosen
4321 # first if we set CC to just the basename; use the full file name.
4323 ac_cv_prog_CC
="$as_dir/$ac_word${1+' '}$@"
4329 if test -n "$CC"; then
4330 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
4331 $as_echo "$CC" >&6; }
4333 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4334 $as_echo "no" >&6; }
4339 if test -z "$CC"; then
4340 if test -n "$ac_tool_prefix"; then
4341 for ac_prog
in cl.exe
4343 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
4344 set dummy
$ac_tool_prefix$ac_prog; ac_word
=$2
4345 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4346 $as_echo_n "checking for $ac_word... " >&6; }
4347 if ${ac_cv_prog_CC+:} false
; then :
4348 $as_echo_n "(cached) " >&6
4350 if test -n "$CC"; then
4351 ac_cv_prog_CC
="$CC" # Let the user override the test.
4353 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
4357 test -z "$as_dir" && as_dir
=.
4358 for ac_exec_ext
in '' $ac_executable_extensions; do
4359 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4360 ac_cv_prog_CC
="$ac_tool_prefix$ac_prog"
4361 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4371 if test -n "$CC"; then
4372 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
4373 $as_echo "$CC" >&6; }
4375 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4376 $as_echo "no" >&6; }
4380 test -n "$CC" && break
4383 if test -z "$CC"; then
4385 for ac_prog
in cl.exe
4387 # Extract the first word of "$ac_prog", so it can be a program name with args.
4388 set dummy
$ac_prog; ac_word
=$2
4389 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4390 $as_echo_n "checking for $ac_word... " >&6; }
4391 if ${ac_cv_prog_ac_ct_CC+:} false
; then :
4392 $as_echo_n "(cached) " >&6
4394 if test -n "$ac_ct_CC"; then
4395 ac_cv_prog_ac_ct_CC
="$ac_ct_CC" # Let the user override the test.
4397 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
4401 test -z "$as_dir" && as_dir
=.
4402 for ac_exec_ext
in '' $ac_executable_extensions; do
4403 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4404 ac_cv_prog_ac_ct_CC
="$ac_prog"
4405 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4414 ac_ct_CC
=$ac_cv_prog_ac_ct_CC
4415 if test -n "$ac_ct_CC"; then
4416 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
4417 $as_echo "$ac_ct_CC" >&6; }
4419 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4420 $as_echo "no" >&6; }
4424 test -n "$ac_ct_CC" && break
4427 if test "x$ac_ct_CC" = x
; then
4430 case $cross_compiling:$ac_tool_warned in
4432 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4433 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4434 ac_tool_warned
=yes ;;
4443 test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4444 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4445 as_fn_error $?
"no acceptable C compiler found in \$PATH
4446 See \`config.log' for more details" "$LINENO" 5; }
4448 # Provide some information about the compiler.
4449 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
4452 for ac_option
in --version -v -V -qversion; do
4453 { { ac_try
="$ac_compiler $ac_option >&5"
4455 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
4456 *) ac_try_echo=$ac_try;;
4458 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4459 $as_echo "$ac_try_echo"; } >&5
4460 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
4462 if test -s conftest.err; then
4464 ... rest of stderr output deleted ...
4465 10q' conftest.err >conftest.er1
4466 cat conftest.er1 >&5
4468 rm -f conftest.er1 conftest.err
4469 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4470 test $ac_status = 0; }
4473 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4474 /* end confdefs.h. */
4484 ac_clean_files_save=$ac_clean_files
4485 ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
4486 # Try to create an executable without -o first, disregard a.out.
4487 # It will help us diagnose broken compilers, and finding out an intuition
4489 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
4490 $as_echo_n "checking whether the C compiler works... " >&6; }
4491 ac_link_default=`$as_echo "$ac_link" |
sed 's/ -o *conftest[^ ]*//'`
4493 # The possible output files:
4494 ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
4497 for ac_file in $ac_files
4500 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
4501 * ) ac_rmfiles="$ac_rmfiles $ac_file";;
4506 if { { ac_try="$ac_link_default"
4508 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
4509 *) ac_try_echo
=$ac_try;;
4511 eval ac_try_echo
="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4512 $as_echo "$ac_try_echo"; } >&5
4513 (eval "$ac_link_default") 2>&5
4515 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4516 test $ac_status = 0; }; then :
4517 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
4518 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
4519 # in a Makefile. We should not override ac_cv_exeext if it was cached,
4520 # so that the user can short-circuit this test for compilers unknown to
4522 for ac_file
in $ac_files ''
4524 test -f "$ac_file" ||
continue
4526 *.
$ac_ext |
*.xcoff |
*.tds |
*.d |
*.pdb |
*.xSYM |
*.bb |
*.bbg |
*.map |
*.inf |
*.dSYM |
*.o |
*.obj
)
4529 # We found the default executable, but exeext='' is most
4533 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no
;
4535 ac_cv_exeext
=`expr "$ac_file" : '[^.]*\(\..*\)'`
4537 # We set ac_cv_exeext here because the later test for it is not
4538 # safe: cross compilers may not add the suffix if given an `-o'
4539 # argument, so we may need to know it at that point already.
4540 # Even if this section looks crufty: it has the advantage of
4547 test "$ac_cv_exeext" = no
&& ac_cv_exeext
=
4552 if test -z "$ac_file"; then :
4553 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4554 $as_echo "no" >&6; }
4555 $as_echo "$as_me: failed program was:" >&5
4556 sed 's/^/| /' conftest.
$ac_ext >&5
4558 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4559 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4560 as_fn_error
77 "C compiler cannot create executables
4561 See \`config.log' for more details" "$LINENO" 5; }
4563 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4564 $as_echo "yes" >&6; }
4566 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
4567 $as_echo_n "checking for C compiler default output file name... " >&6; }
4568 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
4569 $as_echo "$ac_file" >&6; }
4570 ac_exeext
=$ac_cv_exeext
4572 rm -f -r a.out a.out.dSYM a.exe conftest
$ac_cv_exeext b.out
4573 ac_clean_files
=$ac_clean_files_save
4574 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
4575 $as_echo_n "checking for suffix of executables... " >&6; }
4576 if { { ac_try
="$ac_link"
4578 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
4579 *) ac_try_echo=$ac_try;;
4581 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4582 $as_echo "$ac_try_echo"; } >&5
4583 (eval "$ac_link") 2>&5
4585 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4586 test $ac_status = 0; }; then :
4587 # If both `conftest.exe
' and `conftest' are
`present' (well, observable)
4588 # catch `conftest.exe
'. For instance with Cygwin, `ls conftest' will
4589 # work properly (i.e., refer to `conftest.exe'), while it won't with
4591 for ac_file
in conftest.exe conftest conftest.
*; do
4592 test -f "$ac_file" ||
continue
4594 *.
$ac_ext |
*.xcoff |
*.tds |
*.d |
*.pdb |
*.xSYM |
*.bb |
*.bbg |
*.map |
*.inf |
*.dSYM |
*.o |
*.obj
) ;;
4595 *.
* ) ac_cv_exeext
=`expr "$ac_file" : '[^.]*\(\..*\)'`
4601 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4602 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4603 as_fn_error $?
"cannot compute suffix of executables: cannot compile and link
4604 See \`config.log' for more details" "$LINENO" 5; }
4606 rm -f conftest conftest
$ac_cv_exeext
4607 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
4608 $as_echo "$ac_cv_exeext" >&6; }
4610 rm -f conftest.
$ac_ext
4611 EXEEXT
=$ac_cv_exeext
4613 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
4614 /* end confdefs.h. */
4619 FILE *f = fopen ("conftest.out", "w");
4620 return ferror (f) || fclose (f) != 0;
4626 ac_clean_files
="$ac_clean_files conftest.out"
4627 # Check that the compiler produces executables we can run. If not, either
4628 # the compiler is broken, or we cross compile.
4629 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
4630 $as_echo_n "checking whether we are cross compiling... " >&6; }
4631 if test "$cross_compiling" != yes; then
4632 { { ac_try
="$ac_link"
4634 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
4635 *) ac_try_echo=$ac_try;;
4637 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4638 $as_echo "$ac_try_echo"; } >&5
4639 (eval "$ac_link") 2>&5
4641 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4642 test $ac_status = 0; }
4643 if { ac_try='./conftest$ac_cv_exeext'
4644 { { case "(($ac_try" in
4645 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
4646 *) ac_try_echo
=$ac_try;;
4648 eval ac_try_echo
="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4649 $as_echo "$ac_try_echo"; } >&5
4650 (eval "$ac_try") 2>&5
4652 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4653 test $ac_status = 0; }; }; then
4656 if test "$cross_compiling" = maybe
; then
4659 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4660 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4661 as_fn_error $?
"cannot run C compiled programs.
4662 If you meant to cross compile, use \`--host'.
4663 See \`config.log' for more details" "$LINENO" 5; }
4667 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
4668 $as_echo "$cross_compiling" >&6; }
4670 rm -f conftest.
$ac_ext conftest
$ac_cv_exeext conftest.out
4671 ac_clean_files
=$ac_clean_files_save
4672 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
4673 $as_echo_n "checking for suffix of object files... " >&6; }
4674 if ${ac_cv_objext+:} false
; then :
4675 $as_echo_n "(cached) " >&6
4677 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
4678 /* end confdefs.h. */
4688 rm -f conftest.o conftest.obj
4689 if { { ac_try
="$ac_compile"
4691 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
4692 *) ac_try_echo=$ac_try;;
4694 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4695 $as_echo "$ac_try_echo"; } >&5
4696 (eval "$ac_compile") 2>&5
4698 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4699 test $ac_status = 0; }; then :
4700 for ac_file in conftest.o conftest.obj conftest.*; do
4701 test -f "$ac_file" || continue;
4703 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
4704 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
4709 $as_echo "$as_me: failed program was:" >&5
4710 sed 's/^/| /' conftest.$ac_ext >&5
4712 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4713 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4714 as_fn_error $? "cannot compute suffix of object files
: cannot compile
4715 See \
`config.log' for more details" "$LINENO" 5; }
4717 rm -f conftest.$ac_cv_objext conftest.$ac_ext
4719 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
4720 $as_echo "$ac_cv_objext" >&6; }
4721 OBJEXT=$ac_cv_objext
4723 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
4724 $as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
4725 if ${ac_cv_c_compiler_gnu+:} false; then :
4726 $as_echo_n "(cached) " >&6
4728 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4729 /* end confdefs.h. */
4742 if ac_fn_c_try_compile "$LINENO"; then :
4747 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4748 ac_cv_c_compiler_gnu=$ac_compiler_gnu
4751 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
4752 $as_echo "$ac_cv_c_compiler_gnu" >&6; }
4753 if test $ac_compiler_gnu = yes; then
4758 ac_test_CFLAGS=${CFLAGS+set}
4759 ac_save_CFLAGS=$CFLAGS
4760 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
4761 $as_echo_n "checking whether $CC accepts -g... " >&6; }
4762 if ${ac_cv_prog_cc_g+:} false; then :
4763 $as_echo_n "(cached) " >&6
4765 ac_save_c_werror_flag=$ac_c_werror_flag
4766 ac_c_werror_flag=yes
4769 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4770 /* end confdefs.h. */
4780 if ac_fn_c_try_compile "$LINENO"; then :
4784 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4785 /* end confdefs.h. */
4795 if ac_fn_c_try_compile "$LINENO"; then :
4798 ac_c_werror_flag=$ac_save_c_werror_flag
4800 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4801 /* end confdefs.h. */
4811 if ac_fn_c_try_compile "$LINENO"; then :
4814 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4816 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4818 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4819 ac_c_werror_flag=$ac_save_c_werror_flag
4821 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
4822 $as_echo "$ac_cv_prog_cc_g" >&6; }
4823 if test "$ac_test_CFLAGS" = set; then
4824 CFLAGS=$ac_save_CFLAGS
4825 elif test $ac_cv_prog_cc_g = yes; then
4826 if test "$GCC" = yes; then
4832 if test "$GCC" = yes; then
4838 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
4839 $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
4840 if ${ac_cv_prog_cc_c89+:} false; then :
4841 $as_echo_n "(cached) " >&6
4843 ac_cv_prog_cc_c89=no
4845 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4846 /* end confdefs.h. */
4849 #include <sys/types.h>
4850 #include <sys/stat.h>
4851 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
4852 struct buf { int x; };
4853 FILE * (*rcsopen) (struct buf *, struct stat *, int);
4854 static char *e (p, i)
4860 static char *f (char * (*g) (char **, int), char **p, ...)
4865 s = g (p, va_arg (v,int));
4870 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
4871 function prototypes and stuff, but not '\xHH' hex character constants.
4872 These don't provoke an error unfortunately, instead are silently treated
4873 as 'x'. The following induces an error, until -std is added to get
4874 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
4875 array size at least. It's necessary to write '\x00'==0 to get something
4876 that's true only with -std. */
4877 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
4879 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
4880 inside strings and character constants. */
4882 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
4884 int test (int i, double x);
4885 struct s1 {int (*f) (int a);};
4886 struct s2 {int (*f) (double a);};
4887 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
4893 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
4898 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
4899 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
4901 CC="$ac_save_CC $ac_arg"
4902 if ac_fn_c_try_compile "$LINENO"; then :
4903 ac_cv_prog_cc_c89=$ac_arg
4905 rm -f core conftest.err conftest.$ac_objext
4906 test "x$ac_cv_prog_cc_c89" != "xno" && break
4908 rm -f conftest.$ac_ext
4913 case "x$ac_cv_prog_cc_c89" in
4915 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
4916 $as_echo "none needed" >&6; } ;;
4918 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
4919 $as_echo "unsupported" >&6; } ;;
4921 CC="$CC $ac_cv_prog_cc_c89"
4922 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
4923 $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
4925 if test "x$ac_cv_prog_cc_c89" != xno; then :
4930 ac_cpp='$CPP $CPPFLAGS'
4931 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4932 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4933 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4934 DEPDIR="${am__leading_dot}deps"
4936 ac_config_commands="$ac_config_commands depfiles"
4939 am_make=${MAKE-make}
4940 cat > confinc << 'END'
4942 @echo this is the am__doit target
4945 # If we don't find an include directive, just comment out the code.
4946 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for style of include used by $am_make" >&5
4947 $as_echo_n "checking for style of include used by $am_make... " >&6; }
4951 # First try GNU make style include.
4952 echo "include confinc" > confmf
4953 # Ignore all kinds of additional output from `make'.
4954 case `$am_make -s -f confmf 2> /dev/null` in #(
4955 *the\ am__doit\ target*)
4961 # Now try BSD make style include.
4962 if test "$am__include" = "#"; then
4963 echo '.include
"confinc"' > confmf
4964 case `$am_make -s -f confmf 2> /dev/null` in #(
4965 *the\ am__doit\ target*)
4966 am__include=.include
4974 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $_am_result" >&5
4975 $as_echo "$_am_result" >&6; }
4976 rm -f confinc confmf
4978 # Check whether --enable-dependency-tracking was given.
4979 if test "${enable_dependency_tracking+set}" = set; then :
4980 enableval=$enable_dependency_tracking;
4983 if test "x$enable_dependency_tracking" != xno; then
4984 am_depcomp="$ac_aux_dir/depcomp"
4987 if test "x$enable_dependency_tracking" != xno
; then
4997 depcc
="$CC" am_compiler_list
=
4999 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
5000 $as_echo_n "checking dependency style of $depcc... " >&6; }
5001 if ${am_cv_CC_dependencies_compiler_type+:} false
; then :
5002 $as_echo_n "(cached) " >&6
5004 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
5005 # We make a subdir and do the tests there. Otherwise we can end up
5006 # making bogus files that we don't know about and never remove. For
5007 # instance it was reported that on HP-UX the gcc test will end up
5008 # making a dummy file named `D' -- because `-MD' means `put the output
5011 # Copy depcomp to subdir because otherwise we won't find it if we're
5012 # using a relative directory.
5013 cp "$am_depcomp" conftest.dir
5015 # We will build objects and dependencies in a subdirectory because
5016 # it helps to detect inapplicable dependency modes. For instance
5017 # both Tru64's cc and ICC support -MD to output dependencies as a
5018 # side effect of compilation, but ICC will put the dependencies in
5019 # the current directory while Tru64 will put them in the object
5023 am_cv_CC_dependencies_compiler_type
=none
5024 if test "$am_compiler_list" = ""; then
5025 am_compiler_list
=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
5028 case " $depcc " in #(
5029 *\
-arch\
*\
-arch\
*) am__universal
=true
;;
5032 for depmode
in $am_compiler_list; do
5033 # Setup a source with many dependencies, because some compilers
5034 # like to wrap large dependency lists on column 80 (with \), and
5035 # we should not choose a depcomp mode which is confused by this.
5037 # We need to recreate these files for each test, as the compiler may
5038 # overwrite some of them when testing with obscure command lines.
5039 # This happens at least with the AIX C compiler.
5041 for i
in 1 2 3 4 5 6; do
5042 echo '#include "conftst'$i'.h"' >> sub
/conftest.c
5043 # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
5044 # Solaris 8's {/usr,}/bin/sh.
5045 touch sub
/conftst
$i.h
5047 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
5049 # We check with `-c' and `-o' for the sake of the "dashmstdout"
5050 # mode. It turns out that the SunPro C++ compiler does not properly
5051 # handle `-M -o', and we need to detect this. Also, some Intel
5052 # versions had trouble with output in subdirs
5053 am__obj
=sub
/conftest.
${OBJEXT-o}
5054 am__minus_obj
="-o $am__obj"
5057 # This depmode causes a compiler race in universal mode.
5058 test "$am__universal" = false ||
continue
5061 # after this tag, mechanisms are not by side-effect, so they'll
5062 # only be used when explicitly requested
5063 if test "x$enable_dependency_tracking" = xyes
; then
5069 msvisualcpp | msvcmsys
)
5070 # This compiler won't grok `-c -o', but also, the minuso test has
5071 # not run yet. These depmodes are late enough in the game, and
5072 # so weak that their functioning should not be impacted.
5073 am__obj
=conftest.
${OBJEXT-o}
5078 if depmode
=$depmode \
5079 source=sub
/conftest.c object
=$am__obj \
5080 depfile
=sub
/conftest.Po tmpdepfile
=sub
/conftest.TPo \
5081 $SHELL .
/depcomp
$depcc -c $am__minus_obj sub
/conftest.c \
5082 >/dev
/null
2>conftest.err
&&
5083 grep sub
/conftst1.h sub
/conftest.Po
> /dev
/null
2>&1 &&
5084 grep sub
/conftst6.h sub
/conftest.Po
> /dev
/null
2>&1 &&
5085 grep $am__obj sub
/conftest.Po
> /dev
/null
2>&1 &&
5086 ${MAKE-make} -s -f confmf
> /dev
/null
2>&1; then
5087 # icc doesn't choke on unknown options, it will just issue warnings
5088 # or remarks (even with -Werror). So we grep stderr for any message
5089 # that says an option was ignored or not supported.
5090 # When given -MP, icc 7.0 and 7.1 complain thusly:
5091 # icc: Command line warning: ignoring option '-M'; no argument required
5092 # The diagnosis changed in icc 8.0:
5093 # icc: Command line remark: option '-MP' not supported
5094 if (grep 'ignoring option' conftest.err ||
5095 grep 'not supported' conftest.err
) >/dev
/null
2>&1; then :; else
5096 am_cv_CC_dependencies_compiler_type
=$depmode
5105 am_cv_CC_dependencies_compiler_type
=none
5109 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5
5110 $as_echo "$am_cv_CC_dependencies_compiler_type" >&6; }
5111 CCDEPMODE
=depmode
=$am_cv_CC_dependencies_compiler_type
5114 test "x$enable_dependency_tracking" != xno \
5115 && test "$am_cv_CC_dependencies_compiler_type" = gcc3
; then
5117 am__fastdepCC_FALSE
='#'
5119 am__fastdepCC_TRUE
='#'
5120 am__fastdepCC_FALSE
=
5124 if test "x$CC" != xcc
; then
5125 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC and cc understand -c and -o together" >&5
5126 $as_echo_n "checking whether $CC and cc understand -c and -o together... " >&6; }
5128 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether cc understands -c and -o together" >&5
5129 $as_echo_n "checking whether cc understands -c and -o together... " >&6; }
5131 set dummy
$CC; ac_cc
=`$as_echo "$2" |
5132 sed 's/[^a-zA-Z0-9_]/_/g;s/^[0-9]/_/'`
5133 if eval \
${ac_cv_prog_cc_${ac_cc}_c_o+:} false
; then :
5134 $as_echo_n "(cached) " >&6
5136 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
5137 /* end confdefs.h. */
5147 # Make sure it works both with $CC and with simple cc.
5148 # We do the test twice because some compilers refuse to overwrite an
5149 # existing .o file with -o, though they will create one.
5150 ac_try
='$CC -c conftest.$ac_ext -o conftest2.$ac_objext >&5'
5152 if { { case "(($ac_try" in
5153 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
5154 *) ac_try_echo=$ac_try;;
5156 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
5157 $as_echo "$ac_try_echo"; } >&5
5158 (eval "$ac_try") 2>&5
5160 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5161 test $ac_status = 0; } &&
5162 test -f conftest2.$ac_objext && { { case "(($ac_try" in
5163 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
5164 *) ac_try_echo
=$ac_try;;
5166 eval ac_try_echo
="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
5167 $as_echo "$ac_try_echo"; } >&5
5168 (eval "$ac_try") 2>&5
5170 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5171 test $ac_status = 0; };
5173 eval ac_cv_prog_cc_
${ac_cc}_c_o
=yes
5174 if test "x$CC" != xcc
; then
5175 # Test first that cc exists at all.
5176 if { ac_try
='cc -c conftest.$ac_ext >&5'
5177 { { case "(($ac_try" in
5178 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
5179 *) ac_try_echo=$ac_try;;
5181 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
5182 $as_echo "$ac_try_echo"; } >&5
5183 (eval "$ac_try") 2>&5
5185 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5186 test $ac_status = 0; }; }; then
5187 ac_try='cc -c conftest.$ac_ext -o conftest2.$ac_objext >&5'
5189 if { { case "(($ac_try" in
5190 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
5191 *) ac_try_echo
=$ac_try;;
5193 eval ac_try_echo
="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
5194 $as_echo "$ac_try_echo"; } >&5
5195 (eval "$ac_try") 2>&5
5197 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5198 test $ac_status = 0; } &&
5199 test -f conftest2.
$ac_objext && { { case "(($ac_try" in
5200 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
5201 *) ac_try_echo=$ac_try;;
5203 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
5204 $as_echo "$ac_try_echo"; } >&5
5205 (eval "$ac_try") 2>&5
5207 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5208 test $ac_status = 0; };
5213 # cc exists but doesn't like -o.
5214 eval ac_cv_prog_cc_${ac_cc}_c_o=no
5219 eval ac_cv_prog_cc_${ac_cc}_c_o=no
5221 rm -f core conftest*
5224 if eval test \$ac_cv_prog_cc_${ac_cc}_c_o = yes; then
5225 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5226 $as_echo "yes" >&6; }
5228 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5229 $as_echo "no" >&6; }
5231 $as_echo "#define NO_MINUS_C_MINUS_O 1" >>confdefs.h
5235 # FIXME: we rely on the cache variable name because
5236 # there is no other way.
5238 am_cc=`echo $2 |
sed 's/[^a-zA-Z0-9_]/_/g;s/^[0-9]/_/'`
5239 eval am_t=\$ac_cv_prog_cc_${am_cc}_c_o
5240 if test "$am_t" != yes; then
5241 # Losing compiler, so override with the script.
5242 # FIXME: It is wrong to rewrite CC.
5243 # But if we don't then we get into trouble of one sort or another.
5244 # A longer-term fix would be to have automake use am__CC in this case,
5245 # and then we could set am__CC="\$(top_srcdir)/compile \$(CC)"
5246 CC="$am_aux_dir/compile $CC"
5251 # Initialize gnulib right after verifying that the C compiler works.
5252 if test -n "$ac_tool_prefix"; then
5253 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
5254 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
5255 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5256 $as_echo_n "checking for $ac_word... " >&6; }
5257 if ${ac_cv_prog_RANLIB+:} false; then :
5258 $as_echo_n "(cached) " >&6
5260 if test -n "$RANLIB"; then
5261 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
5263 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5267 test -z "$as_dir" && as_dir=.
5268 for ac_exec_ext in '' $ac_executable_extensions; do
5269 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5270 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
5271 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5280 RANLIB=$ac_cv_prog_RANLIB
5281 if test -n "$RANLIB"; then
5282 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
5283 $as_echo "$RANLIB" >&6; }
5285 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5286 $as_echo "no" >&6; }
5291 if test -z "$ac_cv_prog_RANLIB"; then
5292 ac_ct_RANLIB=$RANLIB
5293 # Extract the first word of "ranlib", so it can be a program name with args.
5294 set dummy ranlib; ac_word=$2
5295 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5296 $as_echo_n "checking for $ac_word... " >&6; }
5297 if ${ac_cv_prog_ac_ct_RANLIB+:} false; then :
5298 $as_echo_n "(cached) " >&6
5300 if test -n "$ac_ct_RANLIB"; then
5301 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
5303 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5307 test -z "$as_dir" && as_dir=.
5308 for ac_exec_ext in '' $ac_executable_extensions; do
5309 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5310 ac_cv_prog_ac_ct_RANLIB="ranlib"
5311 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5320 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
5321 if test -n "$ac_ct_RANLIB"; then
5322 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
5323 $as_echo "$ac_ct_RANLIB" >&6; }
5325 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5326 $as_echo "no" >&6; }
5329 if test "x$ac_ct_RANLIB" = x; then
5332 case $cross_compiling:$ac_tool_warned in
5334 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5335 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5336 ac_tool_warned=yes ;;
5338 RANLIB=$ac_ct_RANLIB
5341 RANLIB="$ac_cv_prog_RANLIB"
5346 ac_cpp='$CPP $CPPFLAGS'
5347 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5348 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5349 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5350 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
5351 $as_echo_n "checking how to run the C preprocessor... " >&6; }
5352 # On Suns, sometimes $CPP names a directory.
5353 if test -n "$CPP" && test -d "$CPP"; then
5356 if test -z "$CPP"; then
5357 if ${ac_cv_prog_CPP+:} false; then :
5358 $as_echo_n "(cached) " >&6
5360 # Double quotes because CPP needs to be expanded
5361 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
5364 for ac_c_preproc_warn_flag in '' yes
5366 # Use a header file that comes with gcc, so configuring glibc
5367 # with a fresh cross-compiler works.
5368 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5369 # <limits.h> exists even on freestanding compilers.
5370 # On the NeXT, cc -E runs the code through the compiler's parser,
5371 # not just through cpp. "Syntax error" is here to catch this case.
5372 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5373 /* end confdefs.h. */
5375 # include <limits.h>
5377 # include <assert.h>
5381 if ac_fn_c_try_cpp "$LINENO"; then :
5384 # Broken: fails on valid input.
5387 rm -f conftest.err conftest.i conftest.$ac_ext
5389 # OK, works on sane cases. Now check whether nonexistent headers
5390 # can be detected and how.
5391 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5392 /* end confdefs.h. */
5393 #include <ac_nonexistent.h>
5395 if ac_fn_c_try_cpp "$LINENO"; then :
5396 # Broken: success on invalid input.
5399 # Passes both tests.
5403 rm -f conftest.err conftest.i conftest.$ac_ext
5406 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
5407 rm -f conftest.i conftest.err conftest.
$ac_ext
5408 if $ac_preproc_ok; then :
5420 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
5421 $as_echo "$CPP" >&6; }
5423 for ac_c_preproc_warn_flag
in '' yes
5425 # Use a header file that comes with gcc, so configuring glibc
5426 # with a fresh cross-compiler works.
5427 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5428 # <limits.h> exists even on freestanding compilers.
5429 # On the NeXT, cc -E runs the code through the compiler's parser,
5430 # not just through cpp. "Syntax error" is here to catch this case.
5431 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
5432 /* end confdefs.h. */
5434 # include <limits.h>
5436 # include <assert.h>
5440 if ac_fn_c_try_cpp
"$LINENO"; then :
5443 # Broken: fails on valid input.
5446 rm -f conftest.err conftest.i conftest.
$ac_ext
5448 # OK, works on sane cases. Now check whether nonexistent headers
5449 # can be detected and how.
5450 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
5451 /* end confdefs.h. */
5452 #include <ac_nonexistent.h>
5454 if ac_fn_c_try_cpp
"$LINENO"; then :
5455 # Broken: success on invalid input.
5458 # Passes both tests.
5462 rm -f conftest.err conftest.i conftest.
$ac_ext
5465 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
5466 rm -f conftest.i conftest.err conftest.
$ac_ext
5467 if $ac_preproc_ok; then :
5470 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
5471 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
5472 as_fn_error $?
"C preprocessor \"$CPP\" fails sanity check
5473 See \`config.log' for more details" "$LINENO" 5; }
5477 ac_cpp
='$CPP $CPPFLAGS'
5478 ac_compile
='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5479 ac_link
='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5480 ac_compiler_gnu
=$ac_cv_c_compiler_gnu
5483 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
5484 $as_echo_n "checking for grep that handles long lines and -e... " >&6; }
5485 if ${ac_cv_path_GREP+:} false
; then :
5486 $as_echo_n "(cached) " >&6
5488 if test -z "$GREP"; then
5489 ac_path_GREP_found
=false
5490 # Loop through the user's path and test for each of PROGNAME-LIST
5491 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
5492 for as_dir
in $PATH$PATH_SEPARATOR/usr
/xpg
4/bin
5495 test -z "$as_dir" && as_dir
=.
5496 for ac_prog
in grep ggrep
; do
5497 for ac_exec_ext
in '' $ac_executable_extensions; do
5498 ac_path_GREP
="$as_dir/$ac_prog$ac_exec_ext"
5499 { test -f "$ac_path_GREP" && $as_test_x "$ac_path_GREP"; } ||
continue
5500 # Check for GNU ac_path_GREP and select it if it is found.
5501 # Check for GNU $ac_path_GREP
5502 case `"$ac_path_GREP" --version 2>&1` in
5504 ac_cv_path_GREP
="$ac_path_GREP" ac_path_GREP_found
=:;;
5507 $as_echo_n 0123456789 >"conftest.in"
5510 cat "conftest.in" "conftest.in" >"conftest.tmp"
5511 mv "conftest.tmp" "conftest.in"
5512 cp "conftest.in" "conftest.nl"
5513 $as_echo 'GREP' >> "conftest.nl"
5514 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev
/null ||
break
5515 diff "conftest.out" "conftest.nl" >/dev
/null
2>&1 ||
break
5516 as_fn_arith
$ac_count + 1 && ac_count
=$as_val
5517 if test $ac_count -gt ${ac_path_GREP_max-0}; then
5518 # Best one so far, save it but keep looking for a better one
5519 ac_cv_path_GREP
="$ac_path_GREP"
5520 ac_path_GREP_max
=$ac_count
5522 # 10*(2^10) chars as input seems more than enough
5523 test $ac_count -gt 10 && break
5525 rm -f conftest.
in conftest.tmp conftest.
nl conftest.out
;;
5528 $ac_path_GREP_found && break 3
5533 if test -z "$ac_cv_path_GREP"; then
5534 as_fn_error $?
"no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
5537 ac_cv_path_GREP
=$GREP
5541 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
5542 $as_echo "$ac_cv_path_GREP" >&6; }
5543 GREP
="$ac_cv_path_GREP"
5546 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
5547 $as_echo_n "checking for egrep... " >&6; }
5548 if ${ac_cv_path_EGREP+:} false
; then :
5549 $as_echo_n "(cached) " >&6
5551 if echo a |
$GREP -E '(a|b)' >/dev
/null
2>&1
5552 then ac_cv_path_EGREP
="$GREP -E"
5554 if test -z "$EGREP"; then
5555 ac_path_EGREP_found
=false
5556 # Loop through the user's path and test for each of PROGNAME-LIST
5557 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
5558 for as_dir
in $PATH$PATH_SEPARATOR/usr
/xpg
4/bin
5561 test -z "$as_dir" && as_dir
=.
5562 for ac_prog
in egrep; do
5563 for ac_exec_ext
in '' $ac_executable_extensions; do
5564 ac_path_EGREP
="$as_dir/$ac_prog$ac_exec_ext"
5565 { test -f "$ac_path_EGREP" && $as_test_x "$ac_path_EGREP"; } ||
continue
5566 # Check for GNU ac_path_EGREP and select it if it is found.
5567 # Check for GNU $ac_path_EGREP
5568 case `"$ac_path_EGREP" --version 2>&1` in
5570 ac_cv_path_EGREP
="$ac_path_EGREP" ac_path_EGREP_found
=:;;
5573 $as_echo_n 0123456789 >"conftest.in"
5576 cat "conftest.in" "conftest.in" >"conftest.tmp"
5577 mv "conftest.tmp" "conftest.in"
5578 cp "conftest.in" "conftest.nl"
5579 $as_echo 'EGREP' >> "conftest.nl"
5580 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev
/null ||
break
5581 diff "conftest.out" "conftest.nl" >/dev
/null
2>&1 ||
break
5582 as_fn_arith
$ac_count + 1 && ac_count
=$as_val
5583 if test $ac_count -gt ${ac_path_EGREP_max-0}; then
5584 # Best one so far, save it but keep looking for a better one
5585 ac_cv_path_EGREP
="$ac_path_EGREP"
5586 ac_path_EGREP_max
=$ac_count
5588 # 10*(2^10) chars as input seems more than enough
5589 test $ac_count -gt 10 && break
5591 rm -f conftest.
in conftest.tmp conftest.
nl conftest.out
;;
5594 $ac_path_EGREP_found && break 3
5599 if test -z "$ac_cv_path_EGREP"; then
5600 as_fn_error $?
"no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
5603 ac_cv_path_EGREP
=$EGREP
5608 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
5609 $as_echo "$ac_cv_path_EGREP" >&6; }
5610 EGREP
="$ac_cv_path_EGREP"
5613 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
5614 $as_echo_n "checking for ANSI C header files... " >&6; }
5615 if ${ac_cv_header_stdc+:} false
; then :
5616 $as_echo_n "(cached) " >&6
5618 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
5619 /* end confdefs.h. */
5633 if ac_fn_c_try_compile
"$LINENO"; then :
5634 ac_cv_header_stdc
=yes
5636 ac_cv_header_stdc
=no
5638 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
5640 if test $ac_cv_header_stdc = yes; then
5641 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
5642 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
5643 /* end confdefs.h. */
5647 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5648 $EGREP "memchr" >/dev
/null
2>&1; then :
5651 ac_cv_header_stdc
=no
5657 if test $ac_cv_header_stdc = yes; then
5658 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
5659 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
5660 /* end confdefs.h. */
5664 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5665 $EGREP "free" >/dev
/null
2>&1; then :
5668 ac_cv_header_stdc
=no
5674 if test $ac_cv_header_stdc = yes; then
5675 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
5676 if test "$cross_compiling" = yes; then :
5679 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
5680 /* end confdefs.h. */
5683 #if ((' ' & 0x0FF) == 0x020)
5684 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
5685 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
5687 # define ISLOWER(c) \
5688 (('a' <= (c) && (c) <= 'i') \
5689 || ('j' <= (c) && (c) <= 'r') \
5690 || ('s' <= (c) && (c) <= 'z'))
5691 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
5694 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
5699 for (i = 0; i < 256; i++)
5700 if (XOR (islower (i), ISLOWER (i))
5701 || toupper (i) != TOUPPER (i))
5706 if ac_fn_c_try_run
"$LINENO"; then :
5709 ac_cv_header_stdc
=no
5711 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
5712 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
5717 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
5718 $as_echo "$ac_cv_header_stdc" >&6; }
5719 if test $ac_cv_header_stdc = yes; then
5721 $as_echo "#define STDC_HEADERS 1" >>confdefs.h
5725 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
5726 for ac_header
in sys
/types.h sys
/stat.h stdlib.h string.h memory.h
strings.h \
5727 inttypes.h stdint.h unistd.h
5729 as_ac_Header
=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
5730 ac_fn_c_check_header_compile
"$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
5732 if eval test \"x\$
"$as_ac_Header"\" = x
"yes"; then :
5733 cat >>confdefs.h
<<_ACEOF
5734 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
5745 ac_fn_c_check_header_mongrel
"$LINENO" "minix/config.h" "ac_cv_header_minix_config_h" "$ac_includes_default"
5746 if test "x$ac_cv_header_minix_config_h" = xyes
; then :
5753 if test "$MINIX" = yes; then
5755 $as_echo "#define _POSIX_SOURCE 1" >>confdefs.h
5758 $as_echo "#define _POSIX_1_SOURCE 2" >>confdefs.h
5761 $as_echo "#define _MINIX 1" >>confdefs.h
5768 $as_echo "#define _XOPEN_SOURCE 500" >>confdefs.h
5774 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether it is safe to define __EXTENSIONS__" >&5
5775 $as_echo_n "checking whether it is safe to define __EXTENSIONS__... " >&6; }
5776 if ${ac_cv_safe_to_define___extensions__+:} false
; then :
5777 $as_echo_n "(cached) " >&6
5779 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
5780 /* end confdefs.h. */
5782 # define __EXTENSIONS__ 1
5783 $ac_includes_default
5792 if ac_fn_c_try_compile
"$LINENO"; then :
5793 ac_cv_safe_to_define___extensions__
=yes
5795 ac_cv_safe_to_define___extensions__
=no
5797 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
5799 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_safe_to_define___extensions__" >&5
5800 $as_echo "$ac_cv_safe_to_define___extensions__" >&6; }
5801 test $ac_cv_safe_to_define___extensions__ = yes &&
5802 $as_echo "#define __EXTENSIONS__ 1" >>confdefs.h
5804 $as_echo "#define _ALL_SOURCE 1" >>confdefs.h
5806 $as_echo "#define _GNU_SOURCE 1" >>confdefs.h
5808 $as_echo "#define _POSIX_PTHREAD_SEMANTICS 1" >>confdefs.h
5810 $as_echo "#define _TANDEM_SOURCE 1" >>confdefs.h
5821 # Code from module arg-nonnull:
5822 # Code from module c++defs:
5823 # Code from module dtoastr:
5824 # Code from module extensions:
5826 # Code from module getopt-gnu:
5827 # Code from module getopt-posix:
5828 # Code from module gettext-h:
5829 # Code from module include_next:
5830 # Code from module intprops:
5831 # Code from module mktime:
5832 # Code from module multiarch:
5833 # Code from module stdbool:
5834 # Code from module stddef:
5835 # Code from module strftime:
5836 # Code from module time:
5837 # Code from module time_r:
5838 # Code from module unistd:
5839 # Code from module warn-on-use:
5842 # On Suns, sometimes $CPP names a directory.
5843 if test -n "$CPP" && test -d "$CPP"; then
5847 ## If not using gcc, and on Solaris, and no CPP specified, see if
5848 ## using a Sun compiler, which needs -Xs to prevent whitespace.
5849 if test x
"$GCC" != xyes
&& test x
"$emacs_check_sunpro_c" = xyes
&& \
5850 test x
"$CPP" = x
; then
5851 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using a Sun C compiler" >&5
5852 $as_echo_n "checking whether we are using a Sun C compiler... " >&6; }
5853 if ${emacs_cv_sunpro_c+:} false
; then :
5854 $as_echo_n "(cached) " >&6
5856 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
5857 /* end confdefs.h. */
5870 if ac_fn_c_try_link
"$LINENO"; then :
5871 emacs_cv_sunpro_c
=yes
5873 emacs_cv_sunpro_c
=no
5875 rm -f core conftest.err conftest.
$ac_objext \
5876 conftest
$ac_exeext conftest.
$ac_ext
5879 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $emacs_cv_sunpro_c" >&5
5880 $as_echo "$emacs_cv_sunpro_c" >&6; }
5882 if test x
"$emacs_cv_sunpro_c" = xyes
; then
5883 NON_GNU_CPP
="$CC -E -Xs"
5887 #### Some systems specify a CPP to use unless we are using GCC.
5888 #### Now that we know whether we are using GCC, we can decide whether
5889 #### to use that one.
5890 if test "x$NON_GNU_CPP" != x
&& test x
$GCC != xyes
&& test "x$CPP" = x
5895 #### Some systems specify a CC to use unless we are using GCC.
5896 #### Now that we know whether we are using GCC, we can decide whether
5897 #### to use that one.
5898 if test "x$NON_GNU_CC" != x
&& test x
$GCC != xyes
&&
5899 test x
$cc_specified != xyes
5904 if test x
$GCC = xyes
; then
5905 test "x$GCC_TEST_OPTIONS" != x
&& CC
="$CC $GCC_TEST_OPTIONS"
5907 test "x$NON_GCC_TEST_OPTIONS" != x
&& CC
="$CC $NON_GCC_TEST_OPTIONS"
5910 ### Use -Wno-pointer-sign if the compiler supports it
5911 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether gcc understands -Wno-pointer-sign" >&5
5912 $as_echo_n "checking whether gcc understands -Wno-pointer-sign... " >&6; }
5913 SAVE_CFLAGS
="$CFLAGS"
5914 CFLAGS
="$CFLAGS -Wno-pointer-sign"
5915 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
5916 /* end confdefs.h. */
5926 if ac_fn_c_try_compile
"$LINENO"; then :
5931 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
5932 if test $has_option = yes; then
5933 C_WARNINGS_SWITCH
="-Wno-pointer-sign $C_WARNINGS_SWITCH"
5935 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $has_option" >&5
5936 $as_echo "$has_option" >&6; }
5937 CFLAGS
="$SAVE_CFLAGS"
5941 ### Use -Wdeclaration-after-statement if the compiler supports it
5942 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether gcc understands -Wdeclaration-after-statement" >&5
5943 $as_echo_n "checking whether gcc understands -Wdeclaration-after-statement... " >&6; }
5944 SAVE_CFLAGS
="$CFLAGS"
5945 CFLAGS
="$CFLAGS -Wdeclaration-after-statement"
5946 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
5947 /* end confdefs.h. */
5957 if ac_fn_c_try_compile
"$LINENO"; then :
5962 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
5963 if test $has_option = yes; then
5964 C_WARNINGS_SWITCH
="-Wdeclaration-after-statement $C_WARNINGS_SWITCH"
5966 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $has_option" >&5
5967 $as_echo "$has_option" >&6; }
5968 CFLAGS
="$SAVE_CFLAGS"
5972 ### Use -Wold-style-definition if the compiler supports it
5973 # This can be removed when conversion to standard C is finished.
5974 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether gcc understands -Wold-style-definition" >&5
5975 $as_echo_n "checking whether gcc understands -Wold-style-definition... " >&6; }
5976 SAVE_CFLAGS
="$CFLAGS"
5977 CFLAGS
="$CFLAGS -Wold-style-definition"
5978 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
5979 /* end confdefs.h. */
5989 if ac_fn_c_try_compile
"$LINENO"; then :
5994 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
5995 if test $has_option = yes; then
5996 C_WARNINGS_SWITCH
="-Wold-style-definition $C_WARNINGS_SWITCH"
5998 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $has_option" >&5
5999 $as_echo "$has_option" >&6; }
6000 CFLAGS
="$SAVE_CFLAGS"
6004 ### Use -Wimplicit-function-declaration if the compiler supports it
6005 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether gcc understands -Wimplicit-function-declaration" >&5
6006 $as_echo_n "checking whether gcc understands -Wimplicit-function-declaration... " >&6; }
6007 SAVE_CFLAGS
="$CFLAGS"
6008 CFLAGS
="$CFLAGS -Wimplicit-function-declaration"
6009 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
6010 /* end confdefs.h. */
6020 if ac_fn_c_try_compile
"$LINENO"; then :
6025 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
6026 if test $has_option = yes; then
6027 C_WARNINGS_SWITCH
="-Wimplicit-function-declaration $C_WARNINGS_SWITCH"
6029 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $has_option" >&5
6030 $as_echo "$has_option" >&6; }
6031 CFLAGS
="$SAVE_CFLAGS"
6038 #### Some other nice autoconf tests.
6041 ac_cpp
='$CPP $CPPFLAGS'
6042 ac_compile
='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6043 ac_link
='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6044 ac_compiler_gnu
=$ac_cv_c_compiler_gnu
6045 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
6046 $as_echo_n "checking how to run the C preprocessor... " >&6; }
6047 # On Suns, sometimes $CPP names a directory.
6048 if test -n "$CPP" && test -d "$CPP"; then
6051 if test -z "$CPP"; then
6052 if ${ac_cv_prog_CPP+:} false
; then :
6053 $as_echo_n "(cached) " >&6
6055 # Double quotes because CPP needs to be expanded
6056 for CPP
in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
6059 for ac_c_preproc_warn_flag
in '' yes
6061 # Use a header file that comes with gcc, so configuring glibc
6062 # with a fresh cross-compiler works.
6063 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
6064 # <limits.h> exists even on freestanding compilers.
6065 # On the NeXT, cc -E runs the code through the compiler's parser,
6066 # not just through cpp. "Syntax error" is here to catch this case.
6067 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
6068 /* end confdefs.h. */
6070 # include <limits.h>
6072 # include <assert.h>
6076 if ac_fn_c_try_cpp
"$LINENO"; then :
6079 # Broken: fails on valid input.
6082 rm -f conftest.err conftest.i conftest.
$ac_ext
6084 # OK, works on sane cases. Now check whether nonexistent headers
6085 # can be detected and how.
6086 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
6087 /* end confdefs.h. */
6088 #include <ac_nonexistent.h>
6090 if ac_fn_c_try_cpp
"$LINENO"; then :
6091 # Broken: success on invalid input.
6094 # Passes both tests.
6098 rm -f conftest.err conftest.i conftest.
$ac_ext
6101 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
6102 rm -f conftest.i conftest.err conftest.
$ac_ext
6103 if $ac_preproc_ok; then :
6115 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
6116 $as_echo "$CPP" >&6; }
6118 for ac_c_preproc_warn_flag
in '' yes
6120 # Use a header file that comes with gcc, so configuring glibc
6121 # with a fresh cross-compiler works.
6122 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
6123 # <limits.h> exists even on freestanding compilers.
6124 # On the NeXT, cc -E runs the code through the compiler's parser,
6125 # not just through cpp. "Syntax error" is here to catch this case.
6126 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
6127 /* end confdefs.h. */
6129 # include <limits.h>
6131 # include <assert.h>
6135 if ac_fn_c_try_cpp
"$LINENO"; then :
6138 # Broken: fails on valid input.
6141 rm -f conftest.err conftest.i conftest.
$ac_ext
6143 # OK, works on sane cases. Now check whether nonexistent headers
6144 # can be detected and how.
6145 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
6146 /* end confdefs.h. */
6147 #include <ac_nonexistent.h>
6149 if ac_fn_c_try_cpp
"$LINENO"; then :
6150 # Broken: success on invalid input.
6153 # Passes both tests.
6157 rm -f conftest.err conftest.i conftest.
$ac_ext
6160 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
6161 rm -f conftest.i conftest.err conftest.
$ac_ext
6162 if $ac_preproc_ok; then :
6165 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
6166 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
6167 as_fn_error $?
"C preprocessor \"$CPP\" fails sanity check
6168 See \`config.log' for more details" "$LINENO" 5; }
6172 ac_cpp
='$CPP $CPPFLAGS'
6173 ac_compile
='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6174 ac_link
='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6175 ac_compiler_gnu
=$ac_cv_c_compiler_gnu
6178 if test "x$RANLIB" = x
; then
6179 if test -n "$ac_tool_prefix"; then
6180 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
6181 set dummy
${ac_tool_prefix}ranlib
; ac_word
=$2
6182 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6183 $as_echo_n "checking for $ac_word... " >&6; }
6184 if ${ac_cv_prog_RANLIB+:} false
; then :
6185 $as_echo_n "(cached) " >&6
6187 if test -n "$RANLIB"; then
6188 ac_cv_prog_RANLIB
="$RANLIB" # Let the user override the test.
6190 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
6194 test -z "$as_dir" && as_dir
=.
6195 for ac_exec_ext
in '' $ac_executable_extensions; do
6196 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6197 ac_cv_prog_RANLIB
="${ac_tool_prefix}ranlib"
6198 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6207 RANLIB
=$ac_cv_prog_RANLIB
6208 if test -n "$RANLIB"; then
6209 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
6210 $as_echo "$RANLIB" >&6; }
6212 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6213 $as_echo "no" >&6; }
6218 if test -z "$ac_cv_prog_RANLIB"; then
6219 ac_ct_RANLIB
=$RANLIB
6220 # Extract the first word of "ranlib", so it can be a program name with args.
6221 set dummy ranlib
; ac_word
=$2
6222 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6223 $as_echo_n "checking for $ac_word... " >&6; }
6224 if ${ac_cv_prog_ac_ct_RANLIB+:} false
; then :
6225 $as_echo_n "(cached) " >&6
6227 if test -n "$ac_ct_RANLIB"; then
6228 ac_cv_prog_ac_ct_RANLIB
="$ac_ct_RANLIB" # Let the user override the test.
6230 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
6234 test -z "$as_dir" && as_dir
=.
6235 for ac_exec_ext
in '' $ac_executable_extensions; do
6236 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6237 ac_cv_prog_ac_ct_RANLIB
="ranlib"
6238 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6247 ac_ct_RANLIB
=$ac_cv_prog_ac_ct_RANLIB
6248 if test -n "$ac_ct_RANLIB"; then
6249 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
6250 $as_echo "$ac_ct_RANLIB" >&6; }
6252 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6253 $as_echo "no" >&6; }
6256 if test "x$ac_ct_RANLIB" = x
; then
6259 case $cross_compiling:$ac_tool_warned in
6261 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6262 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6263 ac_tool_warned
=yes ;;
6265 RANLIB
=$ac_ct_RANLIB
6268 RANLIB
="$ac_cv_prog_RANLIB"
6273 ## Although we're running on an amd64 kernel, we're actually compiling for
6274 ## the x86 architecture. The user should probably have provided an
6275 ## explicit --build to `configure', but if everything else than the kernel
6276 ## is running in i386 mode, we can help them out.
6277 if test "$machine" = "amdx86-64"; then
6278 ac_fn_c_check_decl
"$LINENO" "i386" "ac_cv_have_decl_i386" "$ac_includes_default"
6279 if test "x$ac_cv_have_decl_i386" = xyes
; then :
6283 if test "$ac_cv_have_decl_i386" = "yes"; then
6284 canonical
=`echo "$canonical" | sed -e 's/^amd64/i386/' -e 's/^x86_64/i386/'`
6286 machfile
="m/${machine}.h"
6290 # Extract the first word of "install-info", so it can be a program name with args.
6291 set dummy install-info
; ac_word
=$2
6292 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6293 $as_echo_n "checking for $ac_word... " >&6; }
6294 if ${ac_cv_path_INSTALL_INFO+:} false
; then :
6295 $as_echo_n "(cached) " >&6
6297 case $INSTALL_INFO in
6299 ac_cv_path_INSTALL_INFO
="$INSTALL_INFO" # Let the user override the test with a path.
6302 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
6306 test -z "$as_dir" && as_dir
=.
6307 for ac_exec_ext
in '' $ac_executable_extensions; do
6308 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6309 ac_cv_path_INSTALL_INFO
="$as_dir/$ac_word$ac_exec_ext"
6310 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6320 INSTALL_INFO
=$ac_cv_path_INSTALL_INFO
6321 if test -n "$INSTALL_INFO"; then
6322 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL_INFO" >&5
6323 $as_echo "$INSTALL_INFO" >&6; }
6325 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6326 $as_echo "no" >&6; }
6330 # Extract the first word of "install-info", so it can be a program name with args.
6331 set dummy install-info
; ac_word
=$2
6332 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6333 $as_echo_n "checking for $ac_word... " >&6; }
6334 if ${ac_cv_path_INSTALL_INFO+:} false
; then :
6335 $as_echo_n "(cached) " >&6
6337 case $INSTALL_INFO in
6339 ac_cv_path_INSTALL_INFO
="$INSTALL_INFO" # Let the user override the test with a path.
6342 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
6343 for as_dir
in /usr
/sbin
6346 test -z "$as_dir" && as_dir
=.
6347 for ac_exec_ext
in '' $ac_executable_extensions; do
6348 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6349 ac_cv_path_INSTALL_INFO
="$as_dir/$ac_word$ac_exec_ext"
6350 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6360 INSTALL_INFO
=$ac_cv_path_INSTALL_INFO
6361 if test -n "$INSTALL_INFO"; then
6362 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL_INFO" >&5
6363 $as_echo "$INSTALL_INFO" >&6; }
6365 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6366 $as_echo "no" >&6; }
6370 # Extract the first word of "install-info", so it can be a program name with args.
6371 set dummy install-info
; ac_word
=$2
6372 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6373 $as_echo_n "checking for $ac_word... " >&6; }
6374 if ${ac_cv_path_INSTALL_INFO+:} false
; then :
6375 $as_echo_n "(cached) " >&6
6377 case $INSTALL_INFO in
6379 ac_cv_path_INSTALL_INFO
="$INSTALL_INFO" # Let the user override the test with a path.
6382 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
6386 test -z "$as_dir" && as_dir
=.
6387 for ac_exec_ext
in '' $ac_executable_extensions; do
6388 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6389 ac_cv_path_INSTALL_INFO
="$as_dir/$ac_word$ac_exec_ext"
6390 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6397 test -z "$ac_cv_path_INSTALL_INFO" && ac_cv_path_INSTALL_INFO
=":"
6401 INSTALL_INFO
=$ac_cv_path_INSTALL_INFO
6402 if test -n "$INSTALL_INFO"; then
6403 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL_INFO" >&5
6404 $as_echo "$INSTALL_INFO" >&6; }
6406 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6407 $as_echo "no" >&6; }
6411 # Extract the first word of "gzip", so it can be a program name with args.
6412 set dummy
gzip; ac_word
=$2
6413 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6414 $as_echo_n "checking for $ac_word... " >&6; }
6415 if ${ac_cv_path_GZIP_PROG+:} false
; then :
6416 $as_echo_n "(cached) " >&6
6420 ac_cv_path_GZIP_PROG
="$GZIP_PROG" # Let the user override the test with a path.
6423 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
6427 test -z "$as_dir" && as_dir
=.
6428 for ac_exec_ext
in '' $ac_executable_extensions; do
6429 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6430 ac_cv_path_GZIP_PROG
="$as_dir/$ac_word$ac_exec_ext"
6431 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6441 GZIP_PROG
=$ac_cv_path_GZIP_PROG
6442 if test -n "$GZIP_PROG"; then
6443 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GZIP_PROG" >&5
6444 $as_echo "$GZIP_PROG" >&6; }
6446 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6447 $as_echo "no" >&6; }
6453 ## Need makeinfo >= 4.6 (?) to build the manuals.
6454 # Extract the first word of "makeinfo", so it can be a program name with args.
6455 set dummy makeinfo
; ac_word
=$2
6456 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6457 $as_echo_n "checking for $ac_word... " >&6; }
6458 if ${ac_cv_path_MAKEINFO+:} false
; then :
6459 $as_echo_n "(cached) " >&6
6463 ac_cv_path_MAKEINFO
="$MAKEINFO" # Let the user override the test with a path.
6466 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
6470 test -z "$as_dir" && as_dir
=.
6471 for ac_exec_ext
in '' $ac_executable_extensions; do
6472 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6473 ac_cv_path_MAKEINFO
="$as_dir/$ac_word$ac_exec_ext"
6474 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6481 test -z "$ac_cv_path_MAKEINFO" && ac_cv_path_MAKEINFO
="no"
6485 MAKEINFO
=$ac_cv_path_MAKEINFO
6486 if test -n "$MAKEINFO"; then
6487 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAKEINFO" >&5
6488 $as_echo "$MAKEINFO" >&6; }
6490 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6491 $as_echo "no" >&6; }
6495 if test "$MAKEINFO" != "no" && \
6496 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
6500 ## Makeinfo is unusual. For a released Emacs, the manuals are
6501 ## pre-built, and not deleted by the normal clean rules. makeinfo is
6502 ## therefore in the category of "special tools" not normally required, which
6503 ## configure does not have to check for (eg autoconf itself).
6504 ## In a Bazaar checkout on the other hand, the manuals are not included.
6505 ## So makeinfo is a requirement to build from Bazaar, and configure
6506 ## should test for it as it does for any other build requirement.
6507 ## We use the presence of $srcdir/info/emacs to distinguish a release,
6508 ## with pre-built manuals, from a Bazaar checkout.
6511 if test "$MAKEINFO" = "no"; then
6513 if test "x${with_makeinfo}" = "xno"; then
6515 elif test ! -e $srcdir/info
/emacs
; then
6516 as_fn_error $?
"You do not seem to have makeinfo >= 4.6, and your
6517 source tree does not seem to have pre-built manuals in the \`info' directory.
6518 Either install a suitable version of makeinfo, or re-run configure
6519 with the \`--without-makeinfo' option to build without the manuals. " "$LINENO" 5
6525 if test x
$GCC = xyes
; then
6526 test "x$GCC_LINK_TEST_OPTIONS" != x
&& \
6527 ac_link
="$ac_link $GCC_LINK_TEST_OPTIONS"
6529 test "x$NON_GCC_LINK_TEST_OPTIONS" != x
&& \
6530 ac_link
="$ac_link $NON_GCC_LINK_TEST_OPTIONS"
6534 late_LDFLAGS
=$LDFLAGS
6535 if test x
$GCC = xyes
; then
6536 LDFLAGS
="$LDFLAGS -Wl,-znocombreloc"
6538 LDFLAGS
="$LDFLAGS -znocombreloc"
6541 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -znocombreloc" >&5
6542 $as_echo_n "checking for -znocombreloc... " >&6; }
6543 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
6544 /* end confdefs.h. */
6554 if ac_fn_c_try_link
"$LINENO"; then :
6555 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
6556 $as_echo "yes" >&6; }
6558 LDFLAGS
=$late_LDFLAGS
6559 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6560 $as_echo "no" >&6; }
6562 rm -f core conftest.err conftest.
$ac_objext \
6563 conftest
$ac_exeext conftest.
$ac_ext
6566 # The value of CPP is a quoted variable reference, so we need to do this
6567 # to get its actual value...
6568 CPP
=`eval "echo $CPP"`
6571 test "x$CANNOT_DUMP" = "x" && CANNOT_DUMP
=no
6573 your-opsys-here
) CANNOT_DUMP
=yes ;;
6576 test "$CANNOT_DUMP" = "yes" && \
6578 $as_echo "#define CANNOT_DUMP 1" >>confdefs.h
6584 UNEXEC_OBJ
=unexelf.o
6586 # MSDOS uses unexcoff.o
6587 # MSWindows uses unexw32.o
6589 UNEXEC_OBJ
=unexaix.o
6595 UNEXEC_OBJ
=unexmacosx.o
6598 UNEXEC_OBJ
=unexhp9k800.o
6601 # Use the Solaris dldump() function, called from unexsol.c, to dump
6602 # emacs, instead of the generic ELF dump code found in unexelf.c.
6603 # The resulting binary has a complete symbol table, and is better
6604 # for debugging and other observability tools (debuggers, pstack, etc).
6606 # If you encounter a problem using dldump(), please consider sending
6607 # a message to the OpenSolaris tools-linking mailing list:
6608 # http://mail.opensolaris.org/mailman/listinfo/tools-linking
6610 # It is likely that dldump() works with older Solaris too, but this has
6611 # not been tested, so for now this change is for Solaris 10 or newer.
6612 UNEXEC_OBJ
=unexsol.o
6619 ## Let `ld' find image libs and similar things in /usr/local/lib.
6620 ## The system compiler, GCC, has apparently been modified to not
6621 ## look there, contrary to what a stock GCC would do.
6622 LD_SWITCH_SYSTEM
=-L/usr
/local
/lib
6626 ## cpp test was "ifdef __mips__", but presumably this is equivalent...
6627 case $host_cpu in mips
*) LD_SWITCH_SYSTEM
="-G 0";; esac
6631 LD_SWITCH_SYSTEM
="-Wl,-rpath,/usr/pkg/lib -L/usr/pkg/lib -Wl,-rpath,/usr/local/lib -L/usr/local/lib"
6635 ## Han Boetes <han@mijncomputer.nl> says this is necessary,
6636 ## otherwise Emacs dumps core on elf systems.
6637 LD_SWITCH_SYSTEM
="-Z"
6642 ac_link
="$ac_link $LD_SWITCH_SYSTEM"
6644 ## This setting of LD_SWITCH_SYSTEM references LD_SWITCH_X_SITE_AUX,
6645 ## which has not been defined yet. When this was handled with cpp,
6646 ## it was expanded to null when configure sourced the s/*.h file.
6647 ## Thus LD_SWITCH_SYSTEM had different values in configure and the Makefiles.
6648 ## FIXME it would be cleaner to put this in LD_SWITCH_SYSTEM_TEMACS
6649 ## (or somesuch), but because it is supposed to go at the _front_
6650 ## of LD_SWITCH_SYSTEM, we cannot do that in exactly the same way.
6651 ## Compare with the gnu-linux case below, which added to the end
6652 ## of LD_SWITCH_SYSTEM, and so can instead go at the front of
6653 ## LD_SWITCH_SYSTEM_TEMACS.
6656 ## _AUX_RPATH is like _AUX, but uses -rpath instead of -R.
6657 LD_SWITCH_SYSTEM
="\$(LD_SWITCH_X_SITE_AUX_RPATH) $LD_SWITCH_SYSTEM" ;;
6662 if test "$machine" = "alpha"; then
6663 ac_fn_c_check_decl
"$LINENO" "__ELF__" "ac_cv_have_decl___ELF__" "$ac_includes_default"
6664 if test "x$ac_cv_have_decl___ELF__" = xyes
; then :
6668 if test "$ac_cv_have_decl___ELF__" = "yes"; then
6669 ## With ELF, make sure that all common symbols get allocated to in the
6670 ## data section. Otherwise, the dump of temacs may miss variables in
6671 ## the shared library that have been initialized. For example, with
6672 ## GNU libc, __malloc_initialized would normally be resolved to the
6673 ## shared library's .bss section, which is fatal.
6674 if test "x$GCC" = "xyes"; then
6675 C_SWITCH_MACHINE
="-fno-common"
6677 as_fn_error $?
"What gives? Fix me if DEC Unix supports ELF now." "$LINENO" 5
6680 UNEXEC_OBJ
=unexalpha.o
6688 ## Some programs in src produce warnings saying certain subprograms
6689 ## are too complex and need a MAXMEM value greater than 2000 for
6690 ## additional optimization. --nils@exp-math.uni-essen.de
6691 test "$opsys" = "aix4.2" && test "x$GCC" != "xyes" && \
6692 C_SWITCH_SYSTEM
="-ma -qmaxmem=4000"
6693 ## gnu-linux might need -D_BSD_SOURCE on old libc5 systems.
6694 ## It is redundant in glibc2, since we define _GNU_SOURCE.
6700 ## IBM's X11R5 uses -lIM and -liconv in AIX 3.2.2.
6701 aix4-2
) LIBS_SYSTEM
="-lrts -lIM -liconv" ;;
6703 freebsd
) LIBS_SYSTEM
="-lutil" ;;
6705 hpux
*) LIBS_SYSTEM
="-l:libdld.sl" ;;
6707 sol2
*) LIBS_SYSTEM
="-lsocket -lnsl -lkstat" ;;
6709 ## Motif needs -lgen.
6710 unixware
) LIBS_SYSTEM
="-lsocket -lnsl -lelf -lgen" ;;
6715 ### Make sure subsequent tests use flags consistent with the build flags.
6717 if test x
"${OVERRIDE_CPPFLAGS}" != x
; then
6718 CPPFLAGS
="${OVERRIDE_CPPFLAGS}"
6720 CPPFLAGS
="$C_SWITCH_SYSTEM $C_SWITCH_MACHINE $CPPFLAGS"
6725 # Check whether --enable-largefile was given.
6726 if test "${enable_largefile+set}" = set; then :
6727 enableval
=$enable_largefile;
6730 if test "$enable_largefile" != no
; then
6732 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for special C compiler options needed for large files" >&5
6733 $as_echo_n "checking for special C compiler options needed for large files... " >&6; }
6734 if ${ac_cv_sys_largefile_CC+:} false
; then :
6735 $as_echo_n "(cached) " >&6
6737 ac_cv_sys_largefile_CC
=no
6738 if test "$GCC" != yes; then
6741 # IRIX 6.2 and later do not support large files by default,
6742 # so use the C compiler's -n32 option if that helps.
6743 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
6744 /* end confdefs.h. */
6745 #include <sys/types.h>
6746 /* Check that off_t can represent 2**63 - 1 correctly.
6747 We can't simply define LARGE_OFF_T to be 9223372036854775807,
6748 since some C++ compilers masquerading as C compilers
6749 incorrectly reject 9223372036854775807. */
6750 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
6751 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
6752 && LARGE_OFF_T % 2147483647 == 1)
6762 if ac_fn_c_try_compile
"$LINENO"; then :
6765 rm -f core conftest.err conftest.
$ac_objext
6767 if ac_fn_c_try_compile
"$LINENO"; then :
6768 ac_cv_sys_largefile_CC
=' -n32'; break
6770 rm -f core conftest.err conftest.
$ac_objext
6774 rm -f conftest.
$ac_ext
6777 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_largefile_CC" >&5
6778 $as_echo "$ac_cv_sys_largefile_CC" >&6; }
6779 if test "$ac_cv_sys_largefile_CC" != no
; then
6780 CC
=$CC$ac_cv_sys_largefile_CC
6783 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _FILE_OFFSET_BITS value needed for large files" >&5
6784 $as_echo_n "checking for _FILE_OFFSET_BITS value needed for large files... " >&6; }
6785 if ${ac_cv_sys_file_offset_bits+:} false
; then :
6786 $as_echo_n "(cached) " >&6
6789 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
6790 /* end confdefs.h. */
6791 #include <sys/types.h>
6792 /* Check that off_t can represent 2**63 - 1 correctly.
6793 We can't simply define LARGE_OFF_T to be 9223372036854775807,
6794 since some C++ compilers masquerading as C compilers
6795 incorrectly reject 9223372036854775807. */
6796 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
6797 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
6798 && LARGE_OFF_T % 2147483647 == 1)
6808 if ac_fn_c_try_compile
"$LINENO"; then :
6809 ac_cv_sys_file_offset_bits
=no
; break
6811 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
6812 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
6813 /* end confdefs.h. */
6814 #define _FILE_OFFSET_BITS 64
6815 #include <sys/types.h>
6816 /* Check that off_t can represent 2**63 - 1 correctly.
6817 We can't simply define LARGE_OFF_T to be 9223372036854775807,
6818 since some C++ compilers masquerading as C compilers
6819 incorrectly reject 9223372036854775807. */
6820 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
6821 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
6822 && LARGE_OFF_T % 2147483647 == 1)
6832 if ac_fn_c_try_compile
"$LINENO"; then :
6833 ac_cv_sys_file_offset_bits
=64; break
6835 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
6836 ac_cv_sys_file_offset_bits
=unknown
6840 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_file_offset_bits" >&5
6841 $as_echo "$ac_cv_sys_file_offset_bits" >&6; }
6842 case $ac_cv_sys_file_offset_bits in #(
6845 cat >>confdefs.h
<<_ACEOF
6846 #define _FILE_OFFSET_BITS $ac_cv_sys_file_offset_bits
6851 if test $ac_cv_sys_file_offset_bits = unknown
; then
6852 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _LARGE_FILES value needed for large files" >&5
6853 $as_echo_n "checking for _LARGE_FILES value needed for large files... " >&6; }
6854 if ${ac_cv_sys_large_files+:} false
; then :
6855 $as_echo_n "(cached) " >&6
6858 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
6859 /* end confdefs.h. */
6860 #include <sys/types.h>
6861 /* Check that off_t can represent 2**63 - 1 correctly.
6862 We can't simply define LARGE_OFF_T to be 9223372036854775807,
6863 since some C++ compilers masquerading as C compilers
6864 incorrectly reject 9223372036854775807. */
6865 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
6866 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
6867 && LARGE_OFF_T % 2147483647 == 1)
6877 if ac_fn_c_try_compile
"$LINENO"; then :
6878 ac_cv_sys_large_files
=no
; break
6880 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
6881 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
6882 /* end confdefs.h. */
6883 #define _LARGE_FILES 1
6884 #include <sys/types.h>
6885 /* Check that off_t can represent 2**63 - 1 correctly.
6886 We can't simply define LARGE_OFF_T to be 9223372036854775807,
6887 since some C++ compilers masquerading as C compilers
6888 incorrectly reject 9223372036854775807. */
6889 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
6890 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
6891 && LARGE_OFF_T % 2147483647 == 1)
6901 if ac_fn_c_try_compile
"$LINENO"; then :
6902 ac_cv_sys_large_files
=1; break
6904 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
6905 ac_cv_sys_large_files
=unknown
6909 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_large_files" >&5
6910 $as_echo "$ac_cv_sys_large_files" >&6; }
6911 case $ac_cv_sys_large_files in #(
6914 cat >>confdefs.h
<<_ACEOF
6915 #define _LARGE_FILES $ac_cv_sys_large_files
6925 ## If user specified a crt-dir, use that unconditionally.
6926 if test "X$CRT_DIR" = "X"; then
6928 case "$canonical" in
6929 x86_64-
*-linux-gnu* | s390x-
*-linux-gnu*)
6930 ## On x86-64 and s390x GNU/Linux distributions, the standard library
6931 ## can be in a variety of places. We only try /usr/lib64 and /usr/lib.
6932 ## For anything else (eg /usr/lib32), it is up the user to specify
6933 ## the location (bug#5655).
6934 ## Test for crtn.o, not just the directory, because sometimes the
6935 ## directory exists but does not have the relevant files (bug#1287).
6936 ## FIXME better to test for binary compatibility somehow.
6937 test -e /usr
/lib64
/crtn.o
&& CRT_DIR
=/usr
/lib64
6940 powerpc64-
*-linux-gnu* | sparc64-
*-linux-gnu*) CRT_DIR
=/usr
/lib64
;;
6944 hpux10-20
) CRT_DIR
=/lib
;;
6947 ## Default is /usr/lib.
6948 test "X$CRT_DIR" = "X" && CRT_DIR
=/usr
/lib
6952 ## Some platforms don't use any of these files, so it is not
6953 ## appropriate to put this test outside the if block.
6954 test -e $CRT_DIR/crtn.o ||
test -e $CRT_DIR/crt0.o || \
6955 as_fn_error $?
"crt*.o not found in specified location." "$LINENO" 5
6968 START_FILES
='pre-crt0.o'
6971 ## Adding -lm confuses the dynamic linker, so omit it.
6973 START_FILES
='pre-crt0.o'
6976 LIB_STANDARD
='-lgcc -lc -lgcc $(CRT_DIR)/crtend.o $(CRT_DIR)/crtn.o'
6977 START_FILES
='pre-crt0.o $(CRT_DIR)/crt1.o $(CRT_DIR)/crti.o $(CRT_DIR)/crtbegin.o'
6979 gnu-linux | gnu-kfreebsd
)
6980 LIB_STANDARD
='-lgcc -lc -lgcc $(CRT_DIR)/crtn.o'
6981 START_FILES
='pre-crt0.o $(CRT_DIR)/crt1.o $(CRT_DIR)/crti.o'
6983 hpux10-20 | hpux11
)
6985 START_FILES
='pre-crt0.o $(CRT_DIR)/crt0.o'
6988 if test -f $CRT_DIR/crti.o
; then
6989 LIB_STANDARD
='-lgcc -lc -lgcc $(CRT_DIR)/crtend.o $(CRT_DIR)/crtn.o'
6990 START_FILES
='pre-crt0.o $(CRT_DIR)/crt0.o $(CRT_DIR)/crti.o $(CRT_DIR)/crtbegin.o'
6992 LIB_STANDARD
='-lgcc -lc -lgcc $(CRT_DIR)/crtend.o'
6993 START_FILES
='pre-crt0.o $(CRT_DIR)/crt0.o $(CRT_DIR)/crtbegin.o'
7004 if test "${with_sound}" != "no"; then
7005 # Sound support for GNU/Linux and the free BSDs.
7006 for ac_header
in machine
/soundcard.h sys
/soundcard.h soundcard.h
7008 as_ac_Header
=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
7009 ac_fn_c_check_header_mongrel
"$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
7010 if eval test \"x\$
"$as_ac_Header"\" = x
"yes"; then :
7011 cat >>confdefs.h
<<_ACEOF
7012 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
7014 have_sound_header
=yes
7019 # Emulation library used on NetBSD.
7020 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _oss_ioctl in -lossaudio" >&5
7021 $as_echo_n "checking for _oss_ioctl in -lossaudio... " >&6; }
7022 if ${ac_cv_lib_ossaudio__oss_ioctl+:} false
; then :
7023 $as_echo_n "(cached) " >&6
7025 ac_check_lib_save_LIBS
=$LIBS
7026 LIBS
="-lossaudio $LIBS"
7027 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
7028 /* end confdefs.h. */
7030 /* Override any GCC internal prototype to avoid an error.
7031 Use char because int might match the return type of a GCC
7032 builtin and then its argument prototype would still apply. */
7040 return _oss_ioctl ();
7045 if ac_fn_c_try_link
"$LINENO"; then :
7046 ac_cv_lib_ossaudio__oss_ioctl
=yes
7048 ac_cv_lib_ossaudio__oss_ioctl
=no
7050 rm -f core conftest.err conftest.
$ac_objext \
7051 conftest
$ac_exeext conftest.
$ac_ext
7052 LIBS
=$ac_check_lib_save_LIBS
7054 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_ossaudio__oss_ioctl" >&5
7055 $as_echo "$ac_cv_lib_ossaudio__oss_ioctl" >&6; }
7056 if test "x$ac_cv_lib_ossaudio__oss_ioctl" = xyes
; then :
7065 ALSA_MODULES
="alsa >= $ALSA_REQUIRED"
7069 # Extract the first word of "pkg-config", so it can be a program name with args.
7070 set dummy pkg-config
; ac_word
=$2
7071 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7072 $as_echo_n "checking for $ac_word... " >&6; }
7073 if ${ac_cv_path_PKG_CONFIG+:} false
; then :
7074 $as_echo_n "(cached) " >&6
7078 ac_cv_path_PKG_CONFIG
="$PKG_CONFIG" # Let the user override the test with a path.
7081 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
7085 test -z "$as_dir" && as_dir
=.
7086 for ac_exec_ext
in '' $ac_executable_extensions; do
7087 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7088 ac_cv_path_PKG_CONFIG
="$as_dir/$ac_word$ac_exec_ext"
7089 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7096 test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG
="no"
7100 PKG_CONFIG
=$ac_cv_path_PKG_CONFIG
7101 if test -n "$PKG_CONFIG"; then
7102 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5
7103 $as_echo "$PKG_CONFIG" >&6; }
7105 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7106 $as_echo "no" >&6; }
7111 if test "$PKG_CONFIG" = "no" ; then
7114 PKG_CONFIG_MIN_VERSION
=0.9.0
7115 if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
7116 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ALSA_MODULES" >&5
7117 $as_echo_n "checking for $ALSA_MODULES... " >&6; }
7119 if $PKG_CONFIG --exists "$ALSA_MODULES" 2>&5; then
7120 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
7121 $as_echo "yes" >&6; }
7124 { $as_echo "$as_me:${as_lineno-$LINENO}: checking ALSA_CFLAGS" >&5
7125 $as_echo_n "checking ALSA_CFLAGS... " >&6; }
7126 ALSA_CFLAGS
=`$PKG_CONFIG --cflags "$ALSA_MODULES"|sed -e 's,///*,/,g'`
7127 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ALSA_CFLAGS" >&5
7128 $as_echo "$ALSA_CFLAGS" >&6; }
7130 { $as_echo "$as_me:${as_lineno-$LINENO}: checking ALSA_LIBS" >&5
7131 $as_echo_n "checking ALSA_LIBS... " >&6; }
7132 ALSA_LIBS
=`$PKG_CONFIG --libs "$ALSA_MODULES"|sed -e 's,///*,/,g'`
7133 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ALSA_LIBS" >&5
7134 $as_echo "$ALSA_LIBS" >&6; }
7136 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7137 $as_echo "no" >&6; }
7140 ## If we have a custom action on failure, don't print errors, but
7141 ## do set a variable so people can do so.
7142 ALSA_PKG_ERRORS
=`$PKG_CONFIG --errors-to-stdout --print-errors "$ALSA_MODULES"`
7149 echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
7150 echo "*** See http://www.freedesktop.org/software/pkgconfig"
7154 if test $succeeded = yes; then
7160 if test $HAVE_ALSA = yes; then
7161 SAVE_CFLAGS
="$CFLAGS"
7162 SAVE_LDFLAGS
="$LDFLAGS"
7163 CFLAGS
="$ALSA_CFLAGS $CFLAGS"
7164 LDFLAGS
="$ALSA_LIBS $LDFLAGS"
7165 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
7166 /* end confdefs.h. */
7167 #include <asoundlib.h>
7171 snd_lib_error_set_handler (0);
7176 if ac_fn_c_try_compile
"$LINENO"; then :
7177 emacs_alsa_normal
=yes
7179 emacs_alsa_normal
=no
7181 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
7182 if test "$emacs_alsa_normal" != yes; then
7183 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
7184 /* end confdefs.h. */
7185 #include <alsa/asoundlib.h>
7189 snd_lib_error_set_handler (0);
7194 if ac_fn_c_try_compile
"$LINENO"; then :
7195 emacs_alsa_subdir
=yes
7197 emacs_alsa_subdir
=no
7199 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
7200 if test "$emacs_alsa_subdir" != yes; then
7201 as_fn_error $?
"pkg-config found alsa, but it does not compile. See config.log for error messages." "$LINENO" 5
7203 ALSA_CFLAGS
="$ALSA_CFLAGS -DALSA_SUBDIR_INCLUDE"
7206 CFLAGS
="$SAVE_CFLAGS"
7207 LDFLAGS
="$SAVE_LDFLAGS"
7208 LIBSOUND
="$LIBSOUND $ALSA_LIBS"
7209 CFLAGS_SOUND
="$CFLAGS_SOUND $ALSA_CFLAGS"
7211 $as_echo "#define HAVE_ALSA 1" >>confdefs.h
7215 if test x
$have_sound_header = xyes ||
test $HAVE_ALSA = yes; then
7217 gnu-linux|freebsd|netbsd
)
7219 $as_echo "#define HAVE_SOUND 1" >>confdefs.h
7228 for ac_header
in sys
/select.h sys
/time.h unistd.h utime.h \
7229 linux
/version.h sys
/systeminfo.h limits.h \
7230 stdio_ext.h fcntl.h coff.h pty.h sys
/mman.h \
7231 sys
/vlimit.h sys
/resource.h locale.h sys
/_mbstate_t.h \
7232 sys
/utsname.h
pwd.h utmp.h dirent.h util.h
7234 as_ac_Header
=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
7235 ac_fn_c_check_header_mongrel
"$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
7236 if eval test \"x\$
"$as_ac_Header"\" = x
"yes"; then :
7237 cat >>confdefs.h
<<_ACEOF
7238 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
7246 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if personality LINUX32 can be set" >&5
7247 $as_echo_n "checking if personality LINUX32 can be set... " >&6; }
7248 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
7249 /* end confdefs.h. */
7250 #include <sys/personality.h>
7254 personality (PER_LINUX32)
7259 if ac_fn_c_try_compile
"$LINENO"; then :
7260 emacs_cv_personality_linux32
=yes
7262 emacs_cv_personality_linux32
=no
7264 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
7265 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $emacs_cv_personality_linux32" >&5
7266 $as_echo "$emacs_cv_personality_linux32" >&6; }
7268 if test $emacs_cv_personality_linux32 = yes; then
7270 $as_echo "#define HAVE_PERSONALITY_LINUX32 1" >>confdefs.h
7274 for ac_header
in term.h
7276 ac_fn_c_check_header_preproc
"$LINENO" "term.h" "ac_cv_header_term_h"
7277 if test "x$ac_cv_header_term_h" = xyes
; then :
7278 cat >>confdefs.h
<<_ACEOF
7279 #define HAVE_TERM_H 1
7286 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
7287 $as_echo_n "checking for ANSI C header files... " >&6; }
7288 if ${ac_cv_header_stdc+:} false
; then :
7289 $as_echo_n "(cached) " >&6
7291 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
7292 /* end confdefs.h. */
7306 if ac_fn_c_try_compile
"$LINENO"; then :
7307 ac_cv_header_stdc
=yes
7309 ac_cv_header_stdc
=no
7311 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
7313 if test $ac_cv_header_stdc = yes; then
7314 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
7315 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
7316 /* end confdefs.h. */
7320 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
7321 $EGREP "memchr" >/dev
/null
2>&1; then :
7324 ac_cv_header_stdc
=no
7330 if test $ac_cv_header_stdc = yes; then
7331 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
7332 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
7333 /* end confdefs.h. */
7337 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
7338 $EGREP "free" >/dev
/null
2>&1; then :
7341 ac_cv_header_stdc
=no
7347 if test $ac_cv_header_stdc = yes; then
7348 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
7349 if test "$cross_compiling" = yes; then :
7352 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
7353 /* end confdefs.h. */
7356 #if ((' ' & 0x0FF) == 0x020)
7357 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
7358 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
7360 # define ISLOWER(c) \
7361 (('a' <= (c) && (c) <= 'i') \
7362 || ('j' <= (c) && (c) <= 'r') \
7363 || ('s' <= (c) && (c) <= 'z'))
7364 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
7367 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
7372 for (i = 0; i < 256; i++)
7373 if (XOR (islower (i), ISLOWER (i))
7374 || toupper (i) != TOUPPER (i))
7379 if ac_fn_c_try_run
"$LINENO"; then :
7382 ac_cv_header_stdc
=no
7384 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
7385 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
7390 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
7391 $as_echo "$ac_cv_header_stdc" >&6; }
7392 if test $ac_cv_header_stdc = yes; then
7394 $as_echo "#define STDC_HEADERS 1" >>confdefs.h
7398 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether time.h and sys/time.h may both be included" >&5
7399 $as_echo_n "checking whether time.h and sys/time.h may both be included... " >&6; }
7400 if ${ac_cv_header_time+:} false
; then :
7401 $as_echo_n "(cached) " >&6
7403 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
7404 /* end confdefs.h. */
7405 #include <sys/types.h>
7406 #include <sys/time.h>
7412 if ((struct tm *) 0)
7418 if ac_fn_c_try_compile
"$LINENO"; then :
7419 ac_cv_header_time
=yes
7421 ac_cv_header_time
=no
7423 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
7425 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_time" >&5
7426 $as_echo "$ac_cv_header_time" >&6; }
7427 if test $ac_cv_header_time = yes; then
7429 $as_echo "#define TIME_WITH_SYS_TIME 1" >>confdefs.h
7433 ac_fn_c_check_decl
"$LINENO" "sys_siglist" "ac_cv_have_decl_sys_siglist" "$ac_includes_default"
7434 if test "x$ac_cv_have_decl_sys_siglist" = xyes
; then :
7440 cat >>confdefs.h
<<_ACEOF
7441 #define HAVE_DECL_SYS_SIGLIST $ac_have_decl
7444 if test $ac_cv_have_decl_sys_siglist != yes; then
7445 # For Tru64, at least:
7446 ac_fn_c_check_decl
"$LINENO" "__sys_siglist" "ac_cv_have_decl___sys_siglist" "$ac_includes_default"
7447 if test "x$ac_cv_have_decl___sys_siglist" = xyes
; then :
7453 cat >>confdefs.h
<<_ACEOF
7454 #define HAVE_DECL___SYS_SIGLIST $ac_have_decl
7457 if test $ac_cv_have_decl___sys_siglist = yes; then
7459 $as_echo "#define sys_siglist __sys_siglist" >>confdefs.h
7463 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sys/wait.h that is POSIX.1 compatible" >&5
7464 $as_echo_n "checking for sys/wait.h that is POSIX.1 compatible... " >&6; }
7465 if ${ac_cv_header_sys_wait_h+:} false
; then :
7466 $as_echo_n "(cached) " >&6
7468 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
7469 /* end confdefs.h. */
7470 #include <sys/types.h>
7471 #include <sys/wait.h>
7473 # define WEXITSTATUS(stat_val) ((unsigned int) (stat_val) >> 8)
7476 # define WIFEXITED(stat_val) (((stat_val) & 255) == 0)
7484 s = WIFEXITED (s) ? WEXITSTATUS (s) : 1;
7489 if ac_fn_c_try_compile
"$LINENO"; then :
7490 ac_cv_header_sys_wait_h
=yes
7492 ac_cv_header_sys_wait_h
=no
7494 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
7496 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_sys_wait_h" >&5
7497 $as_echo "$ac_cv_header_sys_wait_h" >&6; }
7498 if test $ac_cv_header_sys_wait_h = yes; then
7500 $as_echo "#define HAVE_SYS_WAIT_H 1" >>confdefs.h
7505 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for struct utimbuf" >&5
7506 $as_echo_n "checking for struct utimbuf... " >&6; }
7507 if ${emacs_cv_struct_utimbuf+:} false
; then :
7508 $as_echo_n "(cached) " >&6
7510 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
7511 /* end confdefs.h. */
7512 #ifdef TIME_WITH_SYS_TIME
7513 #include <sys/time.h>
7516 #ifdef HAVE_SYS_TIME_H
7517 #include <sys/time.h>
7528 static struct utimbuf x; x.actime = x.modtime;
7533 if ac_fn_c_try_compile
"$LINENO"; then :
7534 emacs_cv_struct_utimbuf
=yes
7536 emacs_cv_struct_utimbuf
=no
7538 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
7540 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $emacs_cv_struct_utimbuf" >&5
7541 $as_echo "$emacs_cv_struct_utimbuf" >&6; }
7542 if test $emacs_cv_struct_utimbuf = yes; then
7544 $as_echo "#define HAVE_STRUCT_UTIMBUF 1" >>confdefs.h
7548 { $as_echo "$as_me:${as_lineno-$LINENO}: checking return type of signal handlers" >&5
7549 $as_echo_n "checking return type of signal handlers... " >&6; }
7550 if ${ac_cv_type_signal+:} false
; then :
7551 $as_echo_n "(cached) " >&6
7553 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
7554 /* end confdefs.h. */
7555 #include <sys/types.h>
7561 return *(signal (0, 0)) (0) == 1;
7566 if ac_fn_c_try_compile
"$LINENO"; then :
7567 ac_cv_type_signal
=int
7569 ac_cv_type_signal
=void
7571 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
7573 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_signal" >&5
7574 $as_echo "$ac_cv_type_signal" >&6; }
7576 cat >>confdefs.h
<<_ACEOF
7577 #define RETSIGTYPE $ac_cv_type_signal
7582 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for speed_t" >&5
7583 $as_echo_n "checking for speed_t... " >&6; }
7584 if ${emacs_cv_speed_t+:} false
; then :
7585 $as_echo_n "(cached) " >&6
7587 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
7588 /* end confdefs.h. */
7589 #include <termios.h>
7598 if ac_fn_c_try_compile
"$LINENO"; then :
7599 emacs_cv_speed_t
=yes
7603 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
7605 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $emacs_cv_speed_t" >&5
7606 $as_echo "$emacs_cv_speed_t" >&6; }
7607 if test $emacs_cv_speed_t = yes; then
7609 $as_echo "#define HAVE_SPEED_T 1" >>confdefs.h
7613 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for struct timeval" >&5
7614 $as_echo_n "checking for struct timeval... " >&6; }
7615 if ${emacs_cv_struct_timeval+:} false
; then :
7616 $as_echo_n "(cached) " >&6
7618 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
7619 /* end confdefs.h. */
7620 #ifdef TIME_WITH_SYS_TIME
7621 #include <sys/time.h>
7624 #ifdef HAVE_SYS_TIME_H
7625 #include <sys/time.h>
7633 static struct timeval x; x.tv_sec = x.tv_usec;
7638 if ac_fn_c_try_compile
"$LINENO"; then :
7639 emacs_cv_struct_timeval
=yes
7641 emacs_cv_struct_timeval
=no
7643 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
7645 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $emacs_cv_struct_timeval" >&5
7646 $as_echo "$emacs_cv_struct_timeval" >&6; }
7647 HAVE_TIMEVAL
=$emacs_cv_struct_timeval
7648 if test $emacs_cv_struct_timeval = yes; then
7650 $as_echo "#define HAVE_TIMEVAL 1" >>confdefs.h
7654 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for struct exception" >&5
7655 $as_echo_n "checking for struct exception... " >&6; }
7656 if ${emacs_cv_struct_exception+:} false
; then :
7657 $as_echo_n "(cached) " >&6
7659 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
7660 /* end confdefs.h. */
7665 static struct exception x; x.arg1 = x.arg2 = x.retval; x.name = ""; x.type = 1;
7670 if ac_fn_c_try_compile
"$LINENO"; then :
7671 emacs_cv_struct_exception
=yes
7673 emacs_cv_struct_exception
=no
7675 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
7677 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $emacs_cv_struct_exception" >&5
7678 $as_echo "$emacs_cv_struct_exception" >&6; }
7679 HAVE_EXCEPTION
=$emacs_cv_struct_exception
7680 if test $emacs_cv_struct_exception != yes; then
7682 $as_echo "#define NO_MATHERR 1" >>confdefs.h
7686 for ac_header
in sys
/socket.h
7688 ac_fn_c_check_header_mongrel
"$LINENO" "sys/socket.h" "ac_cv_header_sys_socket_h" "$ac_includes_default"
7689 if test "x$ac_cv_header_sys_socket_h" = xyes
; then :
7690 cat >>confdefs.h
<<_ACEOF
7691 #define HAVE_SYS_SOCKET_H 1
7698 for ac_header
in net
/if.h
7700 ac_fn_c_check_header_compile
"$LINENO" "net/if.h" "ac_cv_header_net_if_h" "$ac_includes_default
7701 #if HAVE_SYS_SOCKET_H
7702 #include <sys/socket.h>
7705 if test "x$ac_cv_header_net_if_h" = xyes
; then :
7706 cat >>confdefs.h
<<_ACEOF
7707 #define HAVE_NET_IF_H 1
7715 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether struct tm is in sys/time.h or time.h" >&5
7716 $as_echo_n "checking whether struct tm is in sys/time.h or time.h... " >&6; }
7717 if ${ac_cv_struct_tm+:} false
; then :
7718 $as_echo_n "(cached) " >&6
7720 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
7721 /* end confdefs.h. */
7722 #include <sys/types.h>
7729 int *p = &tm.tm_sec;
7735 if ac_fn_c_try_compile
"$LINENO"; then :
7736 ac_cv_struct_tm
=time.h
7738 ac_cv_struct_tm
=sys
/time.h
7740 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
7742 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_struct_tm" >&5
7743 $as_echo "$ac_cv_struct_tm" >&6; }
7744 if test $ac_cv_struct_tm = sys
/time.h
; then
7746 $as_echo "#define TM_IN_SYS_TIME 1" >>confdefs.h
7750 ac_fn_c_check_member
"$LINENO" "struct tm" "tm_zone" "ac_cv_member_struct_tm_tm_zone" "#include <sys/types.h>
7751 #include <$ac_cv_struct_tm>
7754 if test "x$ac_cv_member_struct_tm_tm_zone" = xyes
; then :
7756 cat >>confdefs.h
<<_ACEOF
7757 #define HAVE_STRUCT_TM_TM_ZONE 1
7763 if test "$ac_cv_member_struct_tm_tm_zone" = yes; then
7765 $as_echo "#define HAVE_TM_ZONE 1" >>confdefs.h
7768 ac_fn_c_check_decl
"$LINENO" "tzname" "ac_cv_have_decl_tzname" "#include <time.h>
7770 if test "x$ac_cv_have_decl_tzname" = xyes
; then :
7776 cat >>confdefs.h
<<_ACEOF
7777 #define HAVE_DECL_TZNAME $ac_have_decl
7780 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for tzname" >&5
7781 $as_echo_n "checking for tzname... " >&6; }
7782 if ${ac_cv_var_tzname+:} false
; then :
7783 $as_echo_n "(cached) " >&6
7785 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
7786 /* end confdefs.h. */
7788 #if !HAVE_DECL_TZNAME
7789 extern char *tzname[];
7795 return tzname[0][0];
7800 if ac_fn_c_try_link
"$LINENO"; then :
7801 ac_cv_var_tzname
=yes
7805 rm -f core conftest.err conftest.
$ac_objext \
7806 conftest
$ac_exeext conftest.
$ac_ext
7808 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_var_tzname" >&5
7809 $as_echo "$ac_cv_var_tzname" >&6; }
7810 if test $ac_cv_var_tzname = yes; then
7812 $as_echo "#define HAVE_TZNAME 1" >>confdefs.h
7817 ac_fn_c_check_member
"$LINENO" "struct tm" "tm_gmtoff" "ac_cv_member_struct_tm_tm_gmtoff" "#include <time.h>
7819 if test "x$ac_cv_member_struct_tm_tm_gmtoff" = xyes
; then :
7821 $as_echo "#define HAVE_TM_GMTOFF 1" >>confdefs.h
7825 ac_fn_c_check_member
"$LINENO" "struct ifreq" "ifr_flags" "ac_cv_member_struct_ifreq_ifr_flags" "$ac_includes_default
7826 #if HAVE_SYS_SOCKET_H
7827 #include <sys/socket.h>
7833 if test "x$ac_cv_member_struct_ifreq_ifr_flags" = xyes
; then :
7835 cat >>confdefs.h
<<_ACEOF
7836 #define HAVE_STRUCT_IFREQ_IFR_FLAGS 1
7841 ac_fn_c_check_member
"$LINENO" "struct ifreq" "ifr_hwaddr" "ac_cv_member_struct_ifreq_ifr_hwaddr" "$ac_includes_default
7842 #if HAVE_SYS_SOCKET_H
7843 #include <sys/socket.h>
7849 if test "x$ac_cv_member_struct_ifreq_ifr_hwaddr" = xyes
; then :
7851 cat >>confdefs.h
<<_ACEOF
7852 #define HAVE_STRUCT_IFREQ_IFR_HWADDR 1
7857 ac_fn_c_check_member
"$LINENO" "struct ifreq" "ifr_netmask" "ac_cv_member_struct_ifreq_ifr_netmask" "$ac_includes_default
7858 #if HAVE_SYS_SOCKET_H
7859 #include <sys/socket.h>
7865 if test "x$ac_cv_member_struct_ifreq_ifr_netmask" = xyes
; then :
7867 cat >>confdefs.h
<<_ACEOF
7868 #define HAVE_STRUCT_IFREQ_IFR_NETMASK 1
7873 ac_fn_c_check_member
"$LINENO" "struct ifreq" "ifr_broadaddr" "ac_cv_member_struct_ifreq_ifr_broadaddr" "$ac_includes_default
7874 #if HAVE_SYS_SOCKET_H
7875 #include <sys/socket.h>
7881 if test "x$ac_cv_member_struct_ifreq_ifr_broadaddr" = xyes
; then :
7883 cat >>confdefs.h
<<_ACEOF
7884 #define HAVE_STRUCT_IFREQ_IFR_BROADADDR 1
7889 ac_fn_c_check_member
"$LINENO" "struct ifreq" "ifr_addr" "ac_cv_member_struct_ifreq_ifr_addr" "$ac_includes_default
7890 #if HAVE_SYS_SOCKET_H
7891 #include <sys/socket.h>
7897 if test "x$ac_cv_member_struct_ifreq_ifr_addr" = xyes
; then :
7899 cat >>confdefs.h
<<_ACEOF
7900 #define HAVE_STRUCT_IFREQ_IFR_ADDR 1
7908 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for function prototypes" >&5
7909 $as_echo_n "checking for function prototypes... " >&6; }
7910 if test "$ac_cv_prog_cc_c89" != no
; then
7911 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
7912 $as_echo "yes" >&6; }
7914 $as_echo "#define PROTOTYPES 1" >>confdefs.h
7917 $as_echo "#define __PROTOTYPES 1" >>confdefs.h
7920 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7921 $as_echo "no" >&6; }
7924 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working volatile" >&5
7925 $as_echo_n "checking for working volatile... " >&6; }
7926 if ${ac_cv_c_volatile+:} false
; then :
7927 $as_echo_n "(cached) " >&6
7929 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
7930 /* end confdefs.h. */
7937 int * volatile y = (int *) 0;
7943 if ac_fn_c_try_compile
"$LINENO"; then :
7944 ac_cv_c_volatile
=yes
7948 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
7950 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_volatile" >&5
7951 $as_echo "$ac_cv_c_volatile" >&6; }
7952 if test $ac_cv_c_volatile = no
; then
7954 $as_echo "#define volatile /**/" >>confdefs.h
7958 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for an ANSI C-conforming const" >&5
7959 $as_echo_n "checking for an ANSI C-conforming const... " >&6; }
7960 if ${ac_cv_c_const+:} false
; then :
7961 $as_echo_n "(cached) " >&6
7963 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
7964 /* end confdefs.h. */
7969 /* FIXME: Include the comments suggested by Paul. */
7971 /* Ultrix mips cc rejects this. */
7972 typedef int charset[2];
7974 /* SunOS 4.1.1 cc rejects this. */
7975 char const *const *pcpcc;
7977 /* NEC SVR4.0.2 mips cc rejects this. */
7978 struct point {int x, y;};
7979 static struct point const zero = {0,0};
7980 /* AIX XL C 1.02.0.0 rejects this.
7981 It does not let you subtract one const X* pointer from another in
7982 an arm of an if-expression whose if-part is not a constant
7984 const char *g = "string";
7985 pcpcc = &g + (g ? g-g : 0);
7986 /* HPUX 7.0 cc rejects these. */
7988 ppc = (char**) pcpcc;
7989 pcpcc = (char const *const *) ppc;
7990 { /* SCO 3.2v4 cc rejects this. */
7992 char const *s = 0 ? (char *) 0 : (char const *) 0;
7997 { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
7999 const int *foo = &x[0];
8002 { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
8003 typedef const int *iptr;
8007 { /* AIX XL C 1.02.0.0 rejects this saying
8008 "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
8009 struct s { int j; const int *ap[3]; };
8010 struct s *b; b->j = 5;
8012 { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
8016 return !cs[0] && !zero.x;
8023 if ac_fn_c_try_compile
"$LINENO"; then :
8028 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
8030 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_const" >&5
8031 $as_echo "$ac_cv_c_const" >&6; }
8032 if test $ac_cv_c_const = no
; then
8034 $as_echo "#define const /**/" >>confdefs.h
8038 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for void * support" >&5
8039 $as_echo_n "checking for void * support... " >&6; }
8040 if ${emacs_cv_void_star+:} false
; then :
8041 $as_echo_n "(cached) " >&6
8043 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
8044 /* end confdefs.h. */
8054 if ac_fn_c_try_compile
"$LINENO"; then :
8055 emacs_cv_void_star
=yes
8057 emacs_cv_void_star
=no
8059 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
8061 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $emacs_cv_void_star" >&5
8062 $as_echo "$emacs_cv_void_star" >&6; }
8063 if test $emacs_cv_void_star = yes; then
8064 $as_echo "#define POINTER_TYPE void" >>confdefs.h
8067 $as_echo "#define POINTER_TYPE char" >>confdefs.h
8071 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether byte ordering is bigendian" >&5
8072 $as_echo_n "checking whether byte ordering is bigendian... " >&6; }
8073 if ${ac_cv_c_bigendian+:} false
; then :
8074 $as_echo_n "(cached) " >&6
8076 ac_cv_c_bigendian
=unknown
8077 # See if we're dealing with a universal compiler.
8078 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
8079 /* end confdefs.h. */
8080 #ifndef __APPLE_CC__
8081 not a universal capable compiler
8086 if ac_fn_c_try_compile
"$LINENO"; then :
8088 # Check for potential -arch flags. It is not universal unless
8089 # there are at least two -arch flags with different values.
8092 for ac_word
in $CC $CFLAGS $CPPFLAGS $LDFLAGS; do
8093 if test -n "$ac_prev"; then
8095 i?
86 | x86_64 | ppc | ppc64
)
8096 if test -z "$ac_arch" ||
test "$ac_arch" = "$ac_word"; then
8099 ac_cv_c_bigendian
=universal
8105 elif test "x$ac_word" = "x-arch"; then
8110 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
8111 if test $ac_cv_c_bigendian = unknown
; then
8112 # See if sys/param.h defines the BYTE_ORDER macro.
8113 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
8114 /* end confdefs.h. */
8115 #include <sys/types.h>
8116 #include <sys/param.h>
8121 #if ! (defined BYTE_ORDER && defined BIG_ENDIAN \
8122 && defined LITTLE_ENDIAN && BYTE_ORDER && BIG_ENDIAN \
8131 if ac_fn_c_try_compile
"$LINENO"; then :
8132 # It does; now see whether it defined to BIG_ENDIAN or not.
8133 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
8134 /* end confdefs.h. */
8135 #include <sys/types.h>
8136 #include <sys/param.h>
8141 #if BYTE_ORDER != BIG_ENDIAN
8149 if ac_fn_c_try_compile
"$LINENO"; then :
8150 ac_cv_c_bigendian
=yes
8152 ac_cv_c_bigendian
=no
8154 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
8156 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
8158 if test $ac_cv_c_bigendian = unknown
; then
8159 # See if <limits.h> defines _LITTLE_ENDIAN or _BIG_ENDIAN (e.g., Solaris).
8160 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
8161 /* end confdefs.h. */
8167 #if ! (defined _LITTLE_ENDIAN || defined _BIG_ENDIAN)
8175 if ac_fn_c_try_compile
"$LINENO"; then :
8176 # It does; now see whether it defined to _BIG_ENDIAN or not.
8177 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
8178 /* end confdefs.h. */
8192 if ac_fn_c_try_compile
"$LINENO"; then :
8193 ac_cv_c_bigendian
=yes
8195 ac_cv_c_bigendian
=no
8197 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
8199 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
8201 if test $ac_cv_c_bigendian = unknown
; then
8202 # Compile a test program.
8203 if test "$cross_compiling" = yes; then :
8204 # Try to guess by grepping values from an object file.
8205 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
8206 /* end confdefs.h. */
8207 short int ascii_mm[] =
8208 { 0x4249, 0x4765, 0x6E44, 0x6961, 0x6E53, 0x7953, 0 };
8209 short int ascii_ii[] =
8210 { 0x694C, 0x5454, 0x656C, 0x6E45, 0x6944, 0x6E61, 0 };
8211 int use_ascii (int i) {
8212 return ascii_mm[i] + ascii_ii[i];
8214 short int ebcdic_ii[] =
8215 { 0x89D3, 0xE3E3, 0x8593, 0x95C5, 0x89C4, 0x9581, 0 };
8216 short int ebcdic_mm[] =
8217 { 0xC2C9, 0xC785, 0x95C4, 0x8981, 0x95E2, 0xA8E2, 0 };
8218 int use_ebcdic (int i) {
8219 return ebcdic_mm[i] + ebcdic_ii[i];
8226 return use_ascii (foo) == use_ebcdic (foo);
8231 if ac_fn_c_try_compile
"$LINENO"; then :
8232 if grep BIGenDianSyS conftest.
$ac_objext >/dev
/null
; then
8233 ac_cv_c_bigendian
=yes
8235 if grep LiTTleEnDian conftest.
$ac_objext >/dev
/null
; then
8236 if test "$ac_cv_c_bigendian" = unknown
; then
8237 ac_cv_c_bigendian
=no
8239 # finding both strings is unlikely to happen, but who knows?
8240 ac_cv_c_bigendian
=unknown
8244 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
8246 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
8247 /* end confdefs.h. */
8248 $ac_includes_default
8253 /* Are we little or big endian? From Harbison&Steele. */
8257 char c[sizeof (long int)];
8260 return u.c[sizeof (long int) - 1] == 1;
8266 if ac_fn_c_try_run
"$LINENO"; then :
8267 ac_cv_c_bigendian
=no
8269 ac_cv_c_bigendian
=yes
8271 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
8272 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
8277 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_bigendian" >&5
8278 $as_echo "$ac_cv_c_bigendian" >&6; }
8279 case $ac_cv_c_bigendian in #(
8281 $as_echo "#define WORDS_BIGENDIAN 1" >>confdefs.h
8287 $as_echo "#define AC_APPLE_UNIVERSAL_BUILD 1" >>confdefs.h
8291 as_fn_error $?
"unknown endianness
8292 presetting ac_cv_c_bigendian=no (or yes) will help" "$LINENO" 5 ;;
8296 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for __attribute__ ((__aligned__ (expr)))" >&5
8297 $as_echo_n "checking for __attribute__ ((__aligned__ (expr)))... " >&6; }
8298 if ${emacs_cv_attribute_aligned+:} false
; then :
8299 $as_echo_n "(cached) " >&6
8301 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
8302 /* end confdefs.h. */
8303 char __attribute__ ((__aligned__ (1 << 3))) c;
8312 if ac_fn_c_try_compile
"$LINENO"; then :
8313 emacs_cv_attribute_aligned
=yes
8315 emacs_cv_attribute_aligned
=no
8317 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
8319 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $emacs_cv_attribute_aligned" >&5
8320 $as_echo "$emacs_cv_attribute_aligned" >&6; }
8321 if test $emacs_cv_attribute_aligned = yes; then
8323 $as_echo "#define HAVE_ATTRIBUTE_ALIGNED 1" >>confdefs.h
8327 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
8328 $as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
8330 ac_make
=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
8331 if eval \
${ac_cv_prog_make_${ac_make}_set+:} false
; then :
8332 $as_echo_n "(cached) " >&6
8334 cat >conftest.
make <<\_ACEOF
8337 @
echo '@@@%%%=$(MAKE)=@@@%%%'
8339 # GNU make sometimes prints "make[1]: Entering ...", which would confuse us.
8340 case `${MAKE-make} -f conftest.make 2>/dev/null` in
8342 eval ac_cv_prog_make_
${ac_make}_set
=yes;;
8344 eval ac_cv_prog_make_
${ac_make}_set
=no
;;
8348 if eval test \
$ac_cv_prog_make_${ac_make}_set
= yes; then
8349 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
8350 $as_echo "yes" >&6; }
8353 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8354 $as_echo "no" >&6; }
8355 SET_MAKE
="MAKE=${MAKE-make}"
8362 if test "$GCC" = yes && test "$ac_enable_autodepend" = yes; then
8363 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using GNU Make" >&5
8364 $as_echo_n "checking whether we are using GNU Make... " >&6; }
8366 testval
=`make --version 2>/dev/null | grep 'GNU Make'`
8367 if test "x$testval" != x
; then
8370 ac_enable_autodepend
=no
8372 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $HAVE_GNU_MAKE" >&5
8373 $as_echo "$HAVE_GNU_MAKE" >&6; }
8374 if test $HAVE_GNU_MAKE = yes; then
8375 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether gcc understands -MMD -MF" >&5
8376 $as_echo_n "checking whether gcc understands -MMD -MF... " >&6; }
8377 SAVE_CFLAGS
="$CFLAGS"
8378 CFLAGS
="$CFLAGS -MMD -MF deps.d"
8379 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
8380 /* end confdefs.h. */
8390 if ac_fn_c_try_compile
"$LINENO"; then :
8393 ac_enable_autodepend
=no
8395 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
8396 CFLAGS
="$SAVE_CFLAGS"
8397 test -f deps.d || ac_enable_autodepend
=no
8399 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_enable_autodepend" >&5
8400 $as_echo "$ac_enable_autodepend" >&6; }
8402 if test $ac_enable_autodepend = yes; then
8403 DEPFLAGS
='-MMD -MF ${DEPDIR}/$*.d'
8404 ## In parallel builds, another make might create depdir between
8405 ## the first test and mkdir, so stick another test on the end.
8406 ## Or use mkinstalldirs? mkdir -p is not portable.
8407 MKDEPDIR
='test -d ${DEPDIR} || mkdir ${DEPDIR} || test -d ${DEPDIR}'
8408 deps_frag
=autodeps.mk
8411 deps_frag
=$srcdir/src
/$deps_frag
8417 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for long file names" >&5
8418 $as_echo_n "checking for long file names... " >&6; }
8419 if ${ac_cv_sys_long_file_names+:} false
; then :
8420 $as_echo_n "(cached) " >&6
8422 ac_cv_sys_long_file_names
=yes
8423 # Test for long file names in all the places we know might matter:
8424 # . the current directory, where building will happen
8425 # $prefix/lib where we will be installing things
8426 # $exec_prefix/lib likewise
8427 # $TMPDIR if set, where it might want to write temporary files
8428 # /tmp where it might want to write temporary files
8431 for ac_dir
in .
"$TMPDIR" /tmp
/var
/tmp
/usr
/tmp
"$prefix/lib" "$exec_prefix/lib"; do
8432 # Skip $TMPDIR if it is empty or bogus, and skip $exec_prefix/lib
8433 # in the usual case where exec_prefix is '${prefix}'.
8435 . |
/* | ?
:[\\/]*) ;; #(
8438 test -w "$ac_dir/." ||
continue # It is less confusing to not echo anything here.
8439 ac_xdir
=$ac_dir/cf$$
8440 (umask 077 && mkdir
"$ac_xdir" 2>/dev
/null
) ||
continue
8441 ac_tf1
=$ac_xdir/conftest9012345
8442 ac_tf2
=$ac_xdir/conftest9012346
8443 touch "$ac_tf1" 2>/dev
/null
&& test -f "$ac_tf1" && test ! -f "$ac_tf2" ||
8444 ac_cv_sys_long_file_names
=no
8445 rm -f -r "$ac_xdir" 2>/dev
/null
8446 test $ac_cv_sys_long_file_names = no
&& break
8449 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_long_file_names" >&5
8450 $as_echo "$ac_cv_sys_long_file_names" >&6; }
8451 if test $ac_cv_sys_long_file_names = yes; then
8453 $as_echo "#define HAVE_LONG_FILE_NAMES 1" >>confdefs.h
8458 #### Choose a window system.
8460 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for X" >&5
8461 $as_echo_n "checking for X... " >&6; }
8464 # Check whether --with-x was given.
8465 if test "${with_x+set}" = set; then :
8469 # $have_x is `yes', `no', `disabled', or empty when we do not yet know.
8470 if test "x$with_x" = xno
; then
8471 # The user explicitly disabled X.
8474 case $x_includes,$x_libraries in #(
8475 *\'*) as_fn_error $?
"cannot use X directory names containing '" "$LINENO" 5;; #(
8476 *,NONE | NONE
,*) if ${ac_cv_have_x+:} false
; then :
8477 $as_echo_n "(cached) " >&6
8479 # One or both of the vars are not set, and there is no cached value.
8480 ac_x_includes
=no ac_x_libraries
=no
8481 rm -f -r conftest.dir
8482 if mkdir conftest.dir
; then
8484 cat >Imakefile
<<'_ACEOF'
8486 @echo incroot='${INCROOT}'
8488 @echo usrlibdir='${USRLIBDIR}'
8490 @echo libdir='${LIBDIR}'
8492 if (export CC
; ${XMKMF-xmkmf}) >/dev
/null
2>/dev
/null
&& test -f Makefile
; then
8493 # GNU make sometimes prints "make[1]: Entering ...", which would confuse us.
8494 for ac_var
in incroot usrlibdir libdir
; do
8495 eval "ac_im_$ac_var=\`\${MAKE-make} $ac_var 2>/dev/null | sed -n 's/^$ac_var=//p'\`"
8497 # Open Windows xmkmf reportedly sets LIBDIR instead of USRLIBDIR.
8498 for ac_extension
in a so sl dylib la dll
; do
8499 if test ! -f "$ac_im_usrlibdir/libX11.$ac_extension" &&
8500 test -f "$ac_im_libdir/libX11.$ac_extension"; then
8501 ac_im_usrlibdir
=$ac_im_libdir; break
8504 # Screen out bogus values from the imake configuration. They are
8505 # bogus both because they are the default anyway, and because
8506 # using them would break gcc on systems where it needs fixed includes.
8507 case $ac_im_incroot in
8508 /usr
/include
) ac_x_includes
= ;;
8509 *) test -f "$ac_im_incroot/X11/Xos.h" && ac_x_includes
=$ac_im_incroot;;
8511 case $ac_im_usrlibdir in
8512 /usr
/lib |
/usr
/lib64 |
/lib |
/lib64
) ;;
8513 *) test -d "$ac_im_usrlibdir" && ac_x_libraries
=$ac_im_usrlibdir ;;
8517 rm -f -r conftest.dir
8520 # Standard set of common directories for X headers.
8521 # Check X11 before X11Rn because it is often a symlink to the current release.
8535 /usr/local/X11/include
8536 /usr/local/X11R7/include
8537 /usr/local/X11R6/include
8538 /usr/local/X11R5/include
8539 /usr/local/X11R4/include
8541 /usr/local/include/X11
8542 /usr/local/include/X11R7
8543 /usr/local/include/X11R6
8544 /usr/local/include/X11R5
8545 /usr/local/include/X11R4
8549 /usr/XFree86/include/X11
8553 /usr/unsupported/include
8555 /usr/local/x11r5/include
8556 /usr/lpp/Xamples/include
8558 /usr/openwin/include
8559 /usr/openwin/share/include'
8561 if test "$ac_x_includes" = no
; then
8562 # Guess where to find include files, by looking for Xlib.h.
8563 # First, try using that file with no special directory specified.
8564 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
8565 /* end confdefs.h. */
8566 #include <X11/Xlib.h>
8568 if ac_fn_c_try_cpp
"$LINENO"; then :
8569 # We can compile using X headers with no special include directory.
8572 for ac_dir
in $ac_x_header_dirs; do
8573 if test -r "$ac_dir/X11/Xlib.h"; then
8574 ac_x_includes
=$ac_dir
8579 rm -f conftest.err conftest.i conftest.
$ac_ext
8580 fi # $ac_x_includes = no
8582 if test "$ac_x_libraries" = no
; then
8583 # Check for the libraries.
8584 # See if we find them without any special options.
8585 # Don't add to $LIBS permanently.
8588 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
8589 /* end confdefs.h. */
8590 #include <X11/Xlib.h>
8599 if ac_fn_c_try_link
"$LINENO"; then :
8601 # We can link X programs with no special library path.
8605 for ac_dir
in `$as_echo "$ac_x_includes $ac_x_header_dirs" | sed s/include/lib/g`
8607 # Don't even attempt the hair of trying to link an X program!
8608 for ac_extension
in a so sl dylib la dll
; do
8609 if test -r "$ac_dir/libX11.$ac_extension"; then
8610 ac_x_libraries
=$ac_dir
8616 rm -f core conftest.err conftest.
$ac_objext \
8617 conftest
$ac_exeext conftest.
$ac_ext
8618 fi # $ac_x_libraries = no
8620 case $ac_x_includes,$ac_x_libraries in #(
8622 # Didn't find X, or a directory has "'" in its name.
8623 ac_cv_have_x
="have_x=no";; #(
8625 # Record where we found X for the cache.
8626 ac_cv_have_x
="have_x=yes\
8627 ac_x_includes='$ac_x_includes'\
8628 ac_x_libraries='$ac_x_libraries'"
8634 eval "$ac_cv_have_x"
8637 if test "$have_x" != yes; then
8638 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_x" >&5
8639 $as_echo "$have_x" >&6; }
8642 # If each of the values was on the command line, it overrides each guess.
8643 test "x$x_includes" = xNONE
&& x_includes
=$ac_x_includes
8644 test "x$x_libraries" = xNONE
&& x_libraries
=$ac_x_libraries
8645 # Update the cache value to reflect the command line values.
8646 ac_cv_have_x
="have_x=yes\
8647 ac_x_includes='$x_includes'\
8648 ac_x_libraries='$x_libraries'"
8649 { $as_echo "$as_me:${as_lineno-$LINENO}: result: libraries $x_libraries, headers $x_includes" >&5
8650 $as_echo "libraries $x_libraries, headers $x_includes" >&6; }
8653 if test "$no_x" = yes; then
8659 ## Workaround for bug in autoconf <= 2.62.
8660 ## http://lists.gnu.org/archive/html/emacs-devel/2008-04/msg01551.html
8661 ## No need to do anything special for these standard directories.
8662 if test -n "${x_libraries}" && test x
"${x_libraries}" != xNONE
; then
8664 x_libraries
=`echo :${x_libraries}: | sed -e 's|:/usr/lib64:|:|g' -e 's|:/lib64:|:|g' -e 's|^:||' -e 's|:$||'`
8668 LD_SWITCH_X_SITE_AUX
=
8669 LD_SWITCH_X_SITE_AUX_RPATH
=
8670 if test "${x_libraries}" != NONE
; then
8671 if test -n "${x_libraries}"; then
8672 LD_SWITCH_X_SITE
=-L`echo ${x_libraries} | sed -e "s/:/ -L/g"`
8673 LD_SWITCH_X_SITE_AUX
=-R`echo ${x_libraries} | sed -e "s/:/ -R/g"`
8674 LD_SWITCH_X_SITE_AUX_RPATH
=`echo ${LD_SWITCH_X_SITE_AUX} | sed -e 's/-R/-Wl,-rpath,/'`
8676 x_default_search_path
=""
8677 x_search_path
=${x_libraries}
8678 if test -z "${x_search_path}"; then
8679 x_search_path
=/usr
/lib
8681 for x_library
in `echo ${x_search_path}: | \
8682 sed -e "s/:/ /g" -e p -e "s:/lib[^ /]* :/share :g"`; do
8684 ${x_library}/X11/%L/%T/%N%C%S:\
8685 ${x_library}/X11/%l/%T/%N%C%S:\
8686 ${x_library}/X11/%T/%N%C%S:\
8687 ${x_library}/X11/%L/%T/%N%S:\
8688 ${x_library}/X11/%l/%T/%N%S:\
8689 ${x_library}/X11/%T/%N%S"
8690 if test x
"${x_default_search_path}" = x
; then
8691 x_default_search_path
=${x_search_path}
8693 x_default_search_path
="${x_search_path}:${x_default_search_path}"
8700 if test "${x_includes}" != NONE
&& test -n "${x_includes}"; then
8701 C_SWITCH_X_SITE
=-I`echo ${x_includes} | sed -e "s/:/ -I/g"`
8704 if test x
"${x_includes}" = x
; then
8705 bitmapdir
=/usr
/include
/X11
/bitmaps
8707 # accumulate include directories that have X11 bitmap subdirectories
8709 for bmd
in `echo ${x_includes} | sed -e "s/:/ /g"`; do
8710 if test -d "${bmd}/X11/bitmaps"; then
8711 bmd_acc
="${bmd_acc}:${bmd}/X11/bitmaps"
8713 if test -d "${bmd}/bitmaps"; then
8714 bmd_acc
="${bmd_acc}:${bmd}/bitmaps"
8717 if test ${bmd_acc} != "dummyval"; then
8718 bitmapdir
=`echo ${bmd_acc} | sed -e "s/^dummyval://"`
8725 tmp_CPPFLAGS
="$CPPFLAGS"
8726 tmp_CFLAGS
="$CFLAGS"
8727 CPPFLAGS
="$CPPFLAGS -x objective-c"
8728 CFLAGS
="$CFLAGS -x objective-c"
8729 TEMACS_LDFLAGS2
="\${LDFLAGS}"
8730 if test "${with_ns}" != no
; then
8731 if test "${opsys}" = darwin
; then
8733 ns_appdir
=`pwd`/nextstep
/Emacs.app
8734 ns_appbindir
=${ns_appdir}/Contents
/MacOS
/
8735 ns_appresdir
=${ns_appdir}/Contents
/Resources
8736 ns_appsrc
=${srcdir}/nextstep
/Cocoa
/Emacs.base
8737 elif test -f $GNUSTEP_CONFIG_FILE; then
8739 ns_appdir
=`pwd`/nextstep
/Emacs.app
8740 ns_appbindir
=${ns_appdir}/
8741 ns_appresdir
=${ns_appdir}/Resources
8742 ns_appsrc
=${srcdir}/nextstep
/GNUstep
/Emacs.base
8743 GNUSTEP_SYSTEM_HEADERS
="$(. $GNUSTEP_CONFIG_FILE; echo $GNUSTEP_SYSTEM_HEADERS)"
8744 GNUSTEP_SYSTEM_LIBRARIES
="$(. $GNUSTEP_CONFIG_FILE; echo $GNUSTEP_SYSTEM_LIBRARIES)"
8745 GNUSTEP_LOCAL_HEADERS
="$(. $GNUSTEP_CONFIG_FILE; echo $GNUSTEP_LOCAL_HEADERS)"
8746 GNUSTEP_LOCAL_LIBRARIES
="$(. $GNUSTEP_CONFIG_FILE; echo $GNUSTEP_LOCAL_LIBRARIES)"
8747 test "x${GNUSTEP_LOCAL_HEADERS}" != "x" && \
8748 GNUSTEP_LOCAL_HEADERS
="-I${GNUSTEP_LOCAL_HEADERS}"
8749 test "x${GNUSTEP_LOCAL_LIBRARIES}" != "x" && \
8750 GNUSTEP_LOCAL_LIBRARIES
="-L${GNUSTEP_LOCAL_LIBRARIES}"
8751 CPPFLAGS
="$CPPFLAGS -I${GNUSTEP_SYSTEM_HEADERS} ${GNUSTEP_LOCAL_HEADERS}"
8752 CFLAGS
="$CFLAGS -I${GNUSTEP_SYSTEM_HEADERS} ${GNUSTEP_LOCAL_HEADERS}"
8753 LDFLAGS
="$LDFLAGS -L${GNUSTEP_SYSTEM_LIBRARIES} ${GNUSTEP_LOCAL_LIBRARIES}"
8758 ac_fn_c_check_header_mongrel
"$LINENO" "AppKit/AppKit.h" "ac_cv_header_AppKit_AppKit_h" "$ac_includes_default"
8759 if test "x$ac_cv_header_AppKit_AppKit_h" = xyes
; then :
8762 as_fn_error $?
"\`--with-ns' was specified, but the include
8763 files are missing or cannot be compiled." "$LINENO" 5
8767 NS_HAVE_NSINTEGER
=yes
8768 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
8769 /* end confdefs.h. */
8770 #include <Foundation/NSObjCRuntime.h>
8779 if ac_fn_c_try_compile
"$LINENO"; then :
8780 ns_have_nsinteger
=yes
8782 ns_have_nsinteger
=no
8784 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
8785 if test $ns_have_nsinteger = no
; then
8786 NS_HAVE_NSINTEGER
=no
8794 if test "${HAVE_NS}" = yes; then
8795 window_system
=nextstep
8797 # set up packaging dirs
8798 exec_prefix
=${ns_appbindir}
8799 libexecdir
=${ns_appbindir}/libexec
8800 if test "${EN_NS_SELF_CONTAINED}" = yes; then
8801 prefix
=${ns_appresdir}
8803 ns_frag
=$srcdir/src
/ns.mk
8804 NS_OBJ
="nsterm.o nsfns.o nsmenu.o nsselect.o nsimage.o nsfont.o fontset.o fringe.o image.o"
8805 NS_SUPPORT
="\${lispsource}/emacs-lisp/easymenu.elc \${lispsource}/term/ns-win.elc"
8807 CFLAGS
="$tmp_CFLAGS"
8808 CPPFLAGS
="$tmp_CPPFLAGS"
8814 case "${window_system}" in
8818 case "${with_x_toolkit}" in
8819 athena | lucid
) USE_X_TOOLKIT
=LUCID
;;
8820 motif
) USE_X_TOOLKIT
=MOTIF
;;
8822 USE_X_TOOLKIT
=none
;;
8823 gtk3
) with_gtk3
=yes
8824 USE_X_TOOLKIT
=none
;;
8825 no
) USE_X_TOOLKIT
=none
;;
8826 * ) USE_X_TOOLKIT
=maybe
;;
8836 if test "$window_system" = none
&& test "X$with_x" != "Xno"; then
8837 # Extract the first word of "X", so it can be a program name with args.
8838 set dummy X
; ac_word
=$2
8839 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8840 $as_echo_n "checking for $ac_word... " >&6; }
8841 if ${ac_cv_prog_HAVE_XSERVER+:} false
; then :
8842 $as_echo_n "(cached) " >&6
8844 if test -n "$HAVE_XSERVER"; then
8845 ac_cv_prog_HAVE_XSERVER
="$HAVE_XSERVER" # Let the user override the test.
8847 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
8851 test -z "$as_dir" && as_dir
=.
8852 for ac_exec_ext
in '' $ac_executable_extensions; do
8853 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8854 ac_cv_prog_HAVE_XSERVER
="true"
8855 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8862 test -z "$ac_cv_prog_HAVE_XSERVER" && ac_cv_prog_HAVE_XSERVER
="false"
8865 HAVE_XSERVER
=$ac_cv_prog_HAVE_XSERVER
8866 if test -n "$HAVE_XSERVER"; then
8867 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $HAVE_XSERVER" >&5
8868 $as_echo "$HAVE_XSERVER" >&6; }
8870 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8871 $as_echo "no" >&6; }
8875 if test "$HAVE_XSERVER" = true ||
8876 test -n "$DISPLAY" ||
8877 test "`echo /usr/lib/libX11.*`" != "/usr/lib/libX11.*"; then
8878 as_fn_error $?
"You seem to be running X, but no X development libraries
8879 were found. You should install the relevant development files for X
8880 and for the toolkit you want, such as Gtk+, Lesstif or Motif. Also make
8881 sure you have development files for image handling, i.e.
8882 tiff, gif, jpeg, png and xpm.
8883 If you are sure you want Emacs compiled without X window support, pass
8885 to configure." "$LINENO" 5
8889 ### If we're using X11, we should use the X menu package.
8892 yes ) HAVE_MENUS
=yes ;;
8895 # Do the opsystem or machine files prohibit the use of the GNU malloc?
8896 # Assume not, until told otherwise.
8899 ac_fn_c_check_func
"$LINENO" "malloc_get_state" "ac_cv_func_malloc_get_state"
8900 if test "x$ac_cv_func_malloc_get_state" = xyes
; then :
8906 ac_fn_c_check_func
"$LINENO" "malloc_set_state" "ac_cv_func_malloc_set_state"
8907 if test "x$ac_cv_func_malloc_set_state" = xyes
; then :
8913 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether __after_morecore_hook exists" >&5
8914 $as_echo_n "checking whether __after_morecore_hook exists... " >&6; }
8915 if ${emacs_cv_var___after_morecore_hook+:} false
; then :
8916 $as_echo_n "(cached) " >&6
8918 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
8919 /* end confdefs.h. */
8920 extern void (* __after_morecore_hook)();
8924 __after_morecore_hook = 0
8929 if ac_fn_c_try_link
"$LINENO"; then :
8930 emacs_cv_var___after_morecore_hook
=yes
8932 emacs_cv_var___after_morecore_hook
=no
8934 rm -f core conftest.err conftest.
$ac_objext \
8935 conftest
$ac_exeext conftest.
$ac_ext
8937 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $emacs_cv_var___after_morecore_hook" >&5
8938 $as_echo "$emacs_cv_var___after_morecore_hook" >&6; }
8939 if test $emacs_cv_var___after_morecore_hook = no
; then
8946 ## darwin ld insists on the use of malloc routines in the System framework.
8947 darwin|sol2-10
) system_malloc
=yes ;;
8950 if test "${system_malloc}" = "yes"; then
8952 $as_echo "#define SYSTEM_MALLOC 1" >>confdefs.h
8956 (The GNU allocators don't work with this system configuration.)"
8960 test "$doug_lea_malloc" != "yes" && GMALLOC_OBJ
=gmalloc.o
8961 VMLIMIT_OBJ
=vm-limit.o
8966 if test "$doug_lea_malloc" = "yes" ; then
8967 if test "$GNU_MALLOC" = yes ; then
8969 (Using Doug Lea's new malloc from the GNU C Library.)"
8972 $as_echo "#define DOUG_LEA_MALLOC 1" >>confdefs.h
8975 ## Use mmap directly for allocating larger buffers.
8976 ## FIXME this comes from src/s/{gnu,gnu-linux}.h:
8977 ## #ifdef DOUG_LEA_MALLOC; #undef REL_ALLOC; #endif
8978 ## Does the AC_FUNC_MMAP test below make this check unecessary?
8980 gnu
*) REL_ALLOC
=no
;;
8984 if test x
"${REL_ALLOC}" = x
; then
8985 REL_ALLOC
=${GNU_MALLOC}
8988 use_mmap_for_buffers
=no
8990 freebsd|irix6-5
) use_mmap_for_buffers
=yes ;;
8996 for ac_header
in $ac_header_list
8998 as_ac_Header
=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
8999 ac_fn_c_check_header_compile
"$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
9001 if eval test \"x\$
"$as_ac_Header"\" = x
"yes"; then :
9002 cat >>confdefs.h
<<_ACEOF
9003 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
9017 for ac_func
in getpagesize
9019 ac_fn_c_check_func
"$LINENO" "getpagesize" "ac_cv_func_getpagesize"
9020 if test "x$ac_cv_func_getpagesize" = xyes
; then :
9021 cat >>confdefs.h
<<_ACEOF
9022 #define HAVE_GETPAGESIZE 1
9028 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working mmap" >&5
9029 $as_echo_n "checking for working mmap... " >&6; }
9030 if ${ac_cv_func_mmap_fixed_mapped+:} false
; then :
9031 $as_echo_n "(cached) " >&6
9033 if test "$cross_compiling" = yes; then :
9034 ac_cv_func_mmap_fixed_mapped
=no
9036 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
9037 /* end confdefs.h. */
9038 $ac_includes_default
9039 /* malloc might have been renamed as rpl_malloc. */
9042 /* Thanks to Mike Haertel and Jim Avera for this test.
9043 Here is a matrix of mmap possibilities:
9044 mmap private not fixed
9045 mmap private fixed at somewhere currently unmapped
9046 mmap private fixed at somewhere already mapped
9047 mmap shared not fixed
9048 mmap shared fixed at somewhere currently unmapped
9049 mmap shared fixed at somewhere already mapped
9050 For private mappings, we should verify that changes cannot be read()
9051 back from the file, nor mmap's back from the file at a different
9052 address. (There have been systems where private was not correctly
9053 implemented like the infamous i386 svr4.0, and systems where the
9054 VM page cache was not coherent with the file system buffer cache
9055 like early versions of FreeBSD and possibly contemporary NetBSD.)
9056 For shared mappings, we should conversely verify that changes get
9057 propagated back to all the places they're supposed to be.
9059 Grep wants private fixed already mapped.
9060 The main things grep needs to know about mmap are:
9061 * does it exist and is it safe to write into the mmap'd area
9062 * how to use it (BSD variants) */
9065 #include <sys/mman.h>
9067 #if !defined STDC_HEADERS && !defined HAVE_STDLIB_H
9071 /* This mess was copied from the GNU getpagesize.h. */
9072 #ifndef HAVE_GETPAGESIZE
9073 # ifdef _SC_PAGESIZE
9074 # define getpagesize() sysconf(_SC_PAGESIZE)
9075 # else /* no _SC_PAGESIZE */
9076 # ifdef HAVE_SYS_PARAM_H
9077 # include <sys/param.h>
9078 # ifdef EXEC_PAGESIZE
9079 # define getpagesize() EXEC_PAGESIZE
9080 # else /* no EXEC_PAGESIZE */
9082 # define getpagesize() NBPG * CLSIZE
9085 # endif /* no CLSIZE */
9086 # else /* no NBPG */
9088 # define getpagesize() NBPC
9089 # else /* no NBPC */
9091 # define getpagesize() PAGESIZE
9092 # endif /* PAGESIZE */
9093 # endif /* no NBPC */
9094 # endif /* no NBPG */
9095 # endif /* no EXEC_PAGESIZE */
9096 # else /* no HAVE_SYS_PARAM_H */
9097 # define getpagesize() 8192 /* punt totally */
9098 # endif /* no HAVE_SYS_PARAM_H */
9099 # endif /* no _SC_PAGESIZE */
9101 #endif /* no HAVE_GETPAGESIZE */
9106 char *data, *data2, *data3;
9111 pagesize = getpagesize ();
9113 /* First, make a file with some known garbage in it. */
9114 data = (char *) malloc (pagesize);
9117 for (i = 0; i < pagesize; ++i)
9118 *(data + i) = rand ();
9120 fd = creat ("conftest.mmap", 0600);
9123 if (write (fd, data, pagesize) != pagesize)
9127 /* Next, check that the tail of a page is zero-filled. File must have
9128 non-zero length, otherwise we risk SIGBUS for entire page. */
9129 fd2 = open ("conftest.txt", O_RDWR | O_CREAT | O_TRUNC, 0600);
9133 if (write (fd2, cdata2, 1) != 1)
9135 data2 = (char *) mmap (0, pagesize, PROT_READ | PROT_WRITE, MAP_SHARED, fd2, 0L);
9136 if (data2 == MAP_FAILED)
9138 for (i = 0; i < pagesize; ++i)
9142 if (munmap (data2, pagesize))
9145 /* Next, try to mmap the file at a fixed address which already has
9146 something else allocated at it. If we can, also make sure that
9147 we see the same garbage. */
9148 fd = open ("conftest.mmap", O_RDWR);
9151 if (data2 != mmap (data2, pagesize, PROT_READ | PROT_WRITE,
9152 MAP_PRIVATE | MAP_FIXED, fd, 0L))
9154 for (i = 0; i < pagesize; ++i)
9155 if (*(data + i) != *(data2 + i))
9158 /* Finally, make sure that changes to the mapped area do not
9159 percolate back to the file as seen by read(). (This is a bug on
9160 some variants of i386 svr4.0.) */
9161 for (i = 0; i < pagesize; ++i)
9162 *(data2 + i) = *(data2 + i) + 1;
9163 data3 = (char *) malloc (pagesize);
9166 if (read (fd, data3, pagesize) != pagesize)
9168 for (i = 0; i < pagesize; ++i)
9169 if (*(data + i) != *(data3 + i))
9175 if ac_fn_c_try_run
"$LINENO"; then :
9176 ac_cv_func_mmap_fixed_mapped
=yes
9178 ac_cv_func_mmap_fixed_mapped
=no
9180 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
9181 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
9185 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_mmap_fixed_mapped" >&5
9186 $as_echo "$ac_cv_func_mmap_fixed_mapped" >&6; }
9187 if test $ac_cv_func_mmap_fixed_mapped = yes; then
9189 $as_echo "#define HAVE_MMAP 1" >>confdefs.h
9192 rm -f conftest.mmap conftest.txt
9194 if test $use_mmap_for_buffers = yes; then
9196 $as_echo "#define USE_MMAP_FOR_BUFFERS 1" >>confdefs.h
9201 LIBS
="$LIBS_SYSTEM $LIBS"
9203 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dnet_ntoa in -ldnet" >&5
9204 $as_echo_n "checking for dnet_ntoa in -ldnet... " >&6; }
9205 if ${ac_cv_lib_dnet_dnet_ntoa+:} false
; then :
9206 $as_echo_n "(cached) " >&6
9208 ac_check_lib_save_LIBS
=$LIBS
9210 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
9211 /* end confdefs.h. */
9213 /* Override any GCC internal prototype to avoid an error.
9214 Use char because int might match the return type of a GCC
9215 builtin and then its argument prototype would still apply. */
9223 return dnet_ntoa ();
9228 if ac_fn_c_try_link
"$LINENO"; then :
9229 ac_cv_lib_dnet_dnet_ntoa
=yes
9231 ac_cv_lib_dnet_dnet_ntoa
=no
9233 rm -f core conftest.err conftest.
$ac_objext \
9234 conftest
$ac_exeext conftest.
$ac_ext
9235 LIBS
=$ac_check_lib_save_LIBS
9237 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dnet_dnet_ntoa" >&5
9238 $as_echo "$ac_cv_lib_dnet_dnet_ntoa" >&6; }
9239 if test "x$ac_cv_lib_dnet_dnet_ntoa" = xyes
; then :
9240 cat >>confdefs.h
<<_ACEOF
9241 #define HAVE_LIBDNET 1
9249 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for main in -lXbsd" >&5
9250 $as_echo_n "checking for main in -lXbsd... " >&6; }
9251 if ${ac_cv_lib_Xbsd_main+:} false
; then :
9252 $as_echo_n "(cached) " >&6
9254 ac_check_lib_save_LIBS
=$LIBS
9256 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
9257 /* end confdefs.h. */
9268 if ac_fn_c_try_link
"$LINENO"; then :
9269 ac_cv_lib_Xbsd_main
=yes
9271 ac_cv_lib_Xbsd_main
=no
9273 rm -f core conftest.err conftest.
$ac_objext \
9274 conftest
$ac_exeext conftest.
$ac_ext
9275 LIBS
=$ac_check_lib_save_LIBS
9277 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_Xbsd_main" >&5
9278 $as_echo "$ac_cv_lib_Xbsd_main" >&6; }
9279 if test "x$ac_cv_lib_Xbsd_main" = xyes
; then :
9280 LD_SWITCH_X_SITE
="$LD_SWITCH_X_SITE -lXbsd"
9284 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for cma_open in -lpthreads" >&5
9285 $as_echo_n "checking for cma_open in -lpthreads... " >&6; }
9286 if ${ac_cv_lib_pthreads_cma_open+:} false
; then :
9287 $as_echo_n "(cached) " >&6
9289 ac_check_lib_save_LIBS
=$LIBS
9290 LIBS
="-lpthreads $LIBS"
9291 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
9292 /* end confdefs.h. */
9294 /* Override any GCC internal prototype to avoid an error.
9295 Use char because int might match the return type of a GCC
9296 builtin and then its argument prototype would still apply. */
9309 if ac_fn_c_try_link
"$LINENO"; then :
9310 ac_cv_lib_pthreads_cma_open
=yes
9312 ac_cv_lib_pthreads_cma_open
=no
9314 rm -f core conftest.err conftest.
$ac_objext \
9315 conftest
$ac_exeext conftest.
$ac_ext
9316 LIBS
=$ac_check_lib_save_LIBS
9318 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_pthreads_cma_open" >&5
9319 $as_echo "$ac_cv_lib_pthreads_cma_open" >&6; }
9320 if test "x$ac_cv_lib_pthreads_cma_open" = xyes
; then :
9321 cat >>confdefs.h
<<_ACEOF
9322 #define HAVE_LIBPTHREADS 1
9325 LIBS
="-lpthreads $LIBS"
9330 ## Note: when using cpp in s/aix4.2.h, this definition depended on
9331 ## HAVE_LIBPTHREADS. That was not defined earlier in configure when
9332 ## the system file was sourced. Hence the value of LIBS_SYSTEM
9333 ## added to LIBS in configure would never contain the pthreads part,
9334 ## but the value used in Makefiles might. FIXME?
9336 ## -lpthreads seems to be necessary for Xlib in X11R6, and should
9337 ## be harmless on older versions of X where it happens to exist.
9338 test "$opsys" = "aix4-2" && \
9339 test $ac_cv_lib_pthreads_cma_open = yes && \
9340 LIBS_SYSTEM
="$LIBS_SYSTEM -lpthreads"
9345 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -bbigtoc option" >&5
9346 $as_echo_n "checking for -bbigtoc option... " >&6; }
9347 if ${gdb_cv_bigtoc+:} false
; then :
9348 $as_echo_n "(cached) " >&6
9352 yes) gdb_cv_bigtoc
=-Wl,-bbigtoc ;;
9353 *) gdb_cv_bigtoc
=-bbigtoc ;;
9356 LDFLAGS
=$LDFLAGS\
$gdb_cv_bigtoc
9357 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
9358 /* end confdefs.h. */
9368 if ac_fn_c_try_link
"$LINENO"; then :
9373 rm -f core conftest.err conftest.
$ac_objext \
9374 conftest
$ac_exeext conftest.
$ac_ext
9377 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gdb_cv_bigtoc" >&5
9378 $as_echo "$gdb_cv_bigtoc" >&6; }
9382 # Change CFLAGS and CPPFLAGS temporarily so that C_SWITCH_X_SITE gets
9383 # used for the tests that follow. We set them back to REAL_CFLAGS and
9384 # REAL_CPPFLAGS later on.
9386 REAL_CFLAGS
="$CFLAGS"
9387 REAL_CPPFLAGS
="$CPPFLAGS"
9389 if test "${HAVE_X11}" = "yes"; then
9390 DEFS
="$C_SWITCH_X_SITE $DEFS"
9391 LDFLAGS
="$LDFLAGS $LD_SWITCH_X_SITE"
9393 CFLAGS
="$C_SWITCH_X_SITE $CFLAGS"
9394 CPPFLAGS
="$C_SWITCH_X_SITE $CPPFLAGS"
9396 # On Solaris, arrange for LD_RUN_PATH to point to the X libraries for tests.
9397 # This is handled by LD_SWITCH_X_SITE_AUX during the real build,
9398 # but it's more convenient here to set LD_RUN_PATH
9399 # since this also works on hosts that don't understand LD_SWITCH_X_SITE_AUX.
9400 if test "${x_libraries}" != NONE
&& test -n "${x_libraries}"; then
9401 LD_RUN_PATH
=$x_libraries${LD_RUN_PATH+:}$LD_RUN_PATH
9405 if test "${opsys}" = "gnu-linux"; then
9406 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether X on GNU/Linux needs -b to link" >&5
9407 $as_echo_n "checking whether X on GNU/Linux needs -b to link... " >&6; }
9408 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
9409 /* end confdefs.h. */
9414 XOpenDisplay ("foo");
9419 if ac_fn_c_try_link
"$LINENO"; then :
9420 xlinux_first_failure
=no
9422 xlinux_first_failure
=yes
9424 rm -f core conftest.err conftest.
$ac_objext \
9425 conftest
$ac_exeext conftest.
$ac_ext
9426 if test "${xlinux_first_failure}" = "yes"; then
9427 OLD_LD_SWITCH_X_SITE
="$LD_SWITCH_X_SITE"
9428 OLD_C_SWITCH_X_SITE
="$C_SWITCH_X_SITE"
9429 OLD_CPPFLAGS
="$CPPFLAGS"
9431 LD_SWITCH_X_SITE
="$LD_SWITCH_X_SITE -b i486-linuxaout"
9432 C_SWITCH_X_SITE
="$C_SWITCH_X_SITE -b i486-linuxaout"
9433 CPPFLAGS
="$CPPFLAGS -b i486-linuxaout"
9434 LIBS
="$LIBS -b i486-linuxaout"
9435 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
9436 /* end confdefs.h. */
9441 XOpenDisplay ("foo");
9446 if ac_fn_c_try_link
"$LINENO"; then :
9447 xlinux_second_failure
=no
9449 xlinux_second_failure
=yes
9451 rm -f core conftest.err conftest.
$ac_objext \
9452 conftest
$ac_exeext conftest.
$ac_ext
9453 if test "${xlinux_second_failure}" = "yes"; then
9454 # If we get the same failure with -b, there is no use adding -b.
9455 # So take it out. This plays safe.
9456 LD_SWITCH_X_SITE
="$OLD_LD_SWITCH_X_SITE"
9457 C_SWITCH_X_SITE
="$OLD_C_SWITCH_X_SITE"
9458 CPPFLAGS
="$OLD_CPPFLAGS"
9460 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9461 $as_echo "no" >&6; }
9463 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
9464 $as_echo "yes" >&6; }
9467 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9468 $as_echo "no" >&6; }
9472 # Reportedly, some broken Solaris systems have XKBlib.h but are missing
9473 # header files included from there.
9474 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Xkb" >&5
9475 $as_echo_n "checking for Xkb... " >&6; }
9476 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
9477 /* end confdefs.h. */
9478 #include <X11/Xlib.h>
9479 #include <X11/XKBlib.h>
9483 XkbDescPtr kb = XkbGetKeyboard (0, XkbAllComponentsMask, XkbUseCoreKbd);
9488 if ac_fn_c_try_link
"$LINENO"; then :
9493 rm -f core conftest.err conftest.
$ac_objext \
9494 conftest
$ac_exeext conftest.
$ac_ext
9495 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $emacs_xkb" >&5
9496 $as_echo "$emacs_xkb" >&6; }
9497 if test $emacs_xkb = yes; then
9499 $as_echo "#define HAVE_XKBGETKEYBOARD 1" >>confdefs.h
9503 for ac_func
in XrmSetDatabase XScreenResourceString \
9504 XScreenNumberOfScreen XSetWMProtocols
9506 as_ac_var
=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
9507 ac_fn_c_check_func
"$LINENO" "$ac_func" "$as_ac_var"
9508 if eval test \"x\$
"$as_ac_var"\" = x
"yes"; then :
9509 cat >>confdefs.h
<<_ACEOF
9510 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
9518 if test "${window_system}" = "x11"; then
9519 { $as_echo "$as_me:${as_lineno-$LINENO}: checking X11 version 6" >&5
9520 $as_echo_n "checking X11 version 6... " >&6; }
9521 if ${emacs_cv_x11_version_6+:} false
; then :
9522 $as_echo_n "(cached) " >&6
9524 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
9525 /* end confdefs.h. */
9526 #include <X11/Xlib.h>
9530 #if XlibSpecificationRelease < 6
9538 if ac_fn_c_try_link
"$LINENO"; then :
9539 emacs_cv_x11_version_6
=yes
9541 emacs_cv_x11_version_6
=no
9543 rm -f core conftest.err conftest.
$ac_objext \
9544 conftest
$ac_exeext conftest.
$ac_ext
9547 if test $emacs_cv_x11_version_6 = yes; then
9548 { $as_echo "$as_me:${as_lineno-$LINENO}: result: 6 or newer" >&5
9549 $as_echo "6 or newer" >&6; }
9551 $as_echo "#define HAVE_X11R6 1" >>confdefs.h
9554 $as_echo "#define HAVE_X_I18N 1" >>confdefs.h
9556 ## inoue@ainet.or.jp says Solaris has a bug related to X11R6-style
9561 $as_echo "#define HAVE_X11R6_XIM 1" >>confdefs.h
9566 { $as_echo "$as_me:${as_lineno-$LINENO}: result: before 6" >&5
9567 $as_echo "before 6" >&6; }
9572 ### Use -lrsvg-2 if available, unless `--with-rsvg=no' is specified.
9574 if test "${HAVE_X11}" = "yes" ||
test "${NS_IMPL_GNUSTEP}" = "yes"; then
9575 if test "${with_rsvg}" != "no"; then
9576 RSVG_REQUIRED
=2.11.0
9577 RSVG_MODULE
="librsvg-2.0 >= $RSVG_REQUIRED"
9582 # Extract the first word of "pkg-config", so it can be a program name with args.
9583 set dummy pkg-config
; ac_word
=$2
9584 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9585 $as_echo_n "checking for $ac_word... " >&6; }
9586 if ${ac_cv_path_PKG_CONFIG+:} false
; then :
9587 $as_echo_n "(cached) " >&6
9591 ac_cv_path_PKG_CONFIG
="$PKG_CONFIG" # Let the user override the test with a path.
9594 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
9598 test -z "$as_dir" && as_dir
=.
9599 for ac_exec_ext
in '' $ac_executable_extensions; do
9600 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9601 ac_cv_path_PKG_CONFIG
="$as_dir/$ac_word$ac_exec_ext"
9602 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9609 test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG
="no"
9613 PKG_CONFIG
=$ac_cv_path_PKG_CONFIG
9614 if test -n "$PKG_CONFIG"; then
9615 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5
9616 $as_echo "$PKG_CONFIG" >&6; }
9618 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9619 $as_echo "no" >&6; }
9624 if test "$PKG_CONFIG" = "no" ; then
9627 PKG_CONFIG_MIN_VERSION
=0.9.0
9628 if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
9629 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $RSVG_MODULE" >&5
9630 $as_echo_n "checking for $RSVG_MODULE... " >&6; }
9632 if $PKG_CONFIG --exists "$RSVG_MODULE" 2>&5; then
9633 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
9634 $as_echo "yes" >&6; }
9637 { $as_echo "$as_me:${as_lineno-$LINENO}: checking RSVG_CFLAGS" >&5
9638 $as_echo_n "checking RSVG_CFLAGS... " >&6; }
9639 RSVG_CFLAGS
=`$PKG_CONFIG --cflags "$RSVG_MODULE"|sed -e 's,///*,/,g'`
9640 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RSVG_CFLAGS" >&5
9641 $as_echo "$RSVG_CFLAGS" >&6; }
9643 { $as_echo "$as_me:${as_lineno-$LINENO}: checking RSVG_LIBS" >&5
9644 $as_echo_n "checking RSVG_LIBS... " >&6; }
9645 RSVG_LIBS
=`$PKG_CONFIG --libs "$RSVG_MODULE"|sed -e 's,///*,/,g'`
9646 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RSVG_LIBS" >&5
9647 $as_echo "$RSVG_LIBS" >&6; }
9649 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9650 $as_echo "no" >&6; }
9653 ## If we have a custom action on failure, don't print errors, but
9654 ## do set a variable so people can do so.
9655 RSVG_PKG_ERRORS
=`$PKG_CONFIG --errors-to-stdout --print-errors "$RSVG_MODULE"`
9662 echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
9663 echo "*** See http://www.freedesktop.org/software/pkgconfig"
9667 if test $succeeded = yes; then
9676 if test $HAVE_RSVG = yes; then
9678 $as_echo "#define HAVE_RSVG 1" >>confdefs.h
9680 CFLAGS
="$CFLAGS $RSVG_CFLAGS"
9681 LIBS
="$RSVG_LIBS $LIBS"
9687 if test "${HAVE_X11}" = "yes"; then
9688 if test "${with_imagemagick}" != "no"; then
9689 IMAGEMAGICK_MODULE
="Wand"
9693 # Extract the first word of "pkg-config", so it can be a program name with args.
9694 set dummy pkg-config
; ac_word
=$2
9695 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9696 $as_echo_n "checking for $ac_word... " >&6; }
9697 if ${ac_cv_path_PKG_CONFIG+:} false
; then :
9698 $as_echo_n "(cached) " >&6
9702 ac_cv_path_PKG_CONFIG
="$PKG_CONFIG" # Let the user override the test with a path.
9705 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
9709 test -z "$as_dir" && as_dir
=.
9710 for ac_exec_ext
in '' $ac_executable_extensions; do
9711 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9712 ac_cv_path_PKG_CONFIG
="$as_dir/$ac_word$ac_exec_ext"
9713 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9720 test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG
="no"
9724 PKG_CONFIG
=$ac_cv_path_PKG_CONFIG
9725 if test -n "$PKG_CONFIG"; then
9726 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5
9727 $as_echo "$PKG_CONFIG" >&6; }
9729 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9730 $as_echo "no" >&6; }
9735 if test "$PKG_CONFIG" = "no" ; then
9738 PKG_CONFIG_MIN_VERSION
=0.9.0
9739 if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
9740 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $IMAGEMAGICK_MODULE" >&5
9741 $as_echo_n "checking for $IMAGEMAGICK_MODULE... " >&6; }
9743 if $PKG_CONFIG --exists "$IMAGEMAGICK_MODULE" 2>&5; then
9744 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
9745 $as_echo "yes" >&6; }
9748 { $as_echo "$as_me:${as_lineno-$LINENO}: checking IMAGEMAGICK_CFLAGS" >&5
9749 $as_echo_n "checking IMAGEMAGICK_CFLAGS... " >&6; }
9750 IMAGEMAGICK_CFLAGS
=`$PKG_CONFIG --cflags "$IMAGEMAGICK_MODULE"|sed -e 's,///*,/,g'`
9751 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $IMAGEMAGICK_CFLAGS" >&5
9752 $as_echo "$IMAGEMAGICK_CFLAGS" >&6; }
9754 { $as_echo "$as_me:${as_lineno-$LINENO}: checking IMAGEMAGICK_LIBS" >&5
9755 $as_echo_n "checking IMAGEMAGICK_LIBS... " >&6; }
9756 IMAGEMAGICK_LIBS
=`$PKG_CONFIG --libs "$IMAGEMAGICK_MODULE"|sed -e 's,///*,/,g'`
9757 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $IMAGEMAGICK_LIBS" >&5
9758 $as_echo "$IMAGEMAGICK_LIBS" >&6; }
9760 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9761 $as_echo "no" >&6; }
9762 IMAGEMAGICK_CFLAGS
=""
9764 ## If we have a custom action on failure, don't print errors, but
9765 ## do set a variable so people can do so.
9766 IMAGEMAGICK_PKG_ERRORS
=`$PKG_CONFIG --errors-to-stdout --print-errors "$IMAGEMAGICK_MODULE"`
9773 echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
9774 echo "*** See http://www.freedesktop.org/software/pkgconfig"
9778 if test $succeeded = yes; then
9779 HAVE_IMAGEMAGICK
=yes
9787 if test $HAVE_IMAGEMAGICK = yes; then
9789 $as_echo "#define HAVE_IMAGEMAGICK 1" >>confdefs.h
9791 CFLAGS
="$CFLAGS $IMAGEMAGICK_CFLAGS"
9792 LIBS
="$IMAGEMAGICK_LIBS $LIBS"
9793 for ac_func
in MagickExportImagePixels
9795 ac_fn_c_check_func
"$LINENO" "MagickExportImagePixels" "ac_cv_func_MagickExportImagePixels"
9796 if test "x$ac_cv_func_MagickExportImagePixels" = xyes
; then :
9797 cat >>confdefs.h
<<_ACEOF
9798 #define HAVE_MAGICKEXPORTIMAGEPIXELS 1
9810 if test "${with_gtk3}" = "yes"; then
9813 GTK_MODULES
="gtk+-3.0 >= $GTK_REQUIRED glib-2.0 >= $GLIB_REQUIRED"
9818 # Extract the first word of "pkg-config", so it can be a program name with args.
9819 set dummy pkg-config
; ac_word
=$2
9820 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9821 $as_echo_n "checking for $ac_word... " >&6; }
9822 if ${ac_cv_path_PKG_CONFIG+:} false
; then :
9823 $as_echo_n "(cached) " >&6
9827 ac_cv_path_PKG_CONFIG
="$PKG_CONFIG" # Let the user override the test with a path.
9830 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
9834 test -z "$as_dir" && as_dir
=.
9835 for ac_exec_ext
in '' $ac_executable_extensions; do
9836 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9837 ac_cv_path_PKG_CONFIG
="$as_dir/$ac_word$ac_exec_ext"
9838 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9845 test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG
="no"
9849 PKG_CONFIG
=$ac_cv_path_PKG_CONFIG
9850 if test -n "$PKG_CONFIG"; then
9851 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5
9852 $as_echo "$PKG_CONFIG" >&6; }
9854 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9855 $as_echo "no" >&6; }
9860 if test "$PKG_CONFIG" = "no" ; then
9863 PKG_CONFIG_MIN_VERSION
=0.9.0
9864 if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
9865 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $GTK_MODULES" >&5
9866 $as_echo_n "checking for $GTK_MODULES... " >&6; }
9868 if $PKG_CONFIG --exists "$GTK_MODULES" 2>&5; then
9869 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
9870 $as_echo "yes" >&6; }
9873 { $as_echo "$as_me:${as_lineno-$LINENO}: checking GTK_CFLAGS" >&5
9874 $as_echo_n "checking GTK_CFLAGS... " >&6; }
9875 GTK_CFLAGS
=`$PKG_CONFIG --cflags "$GTK_MODULES"|sed -e 's,///*,/,g'`
9876 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GTK_CFLAGS" >&5
9877 $as_echo "$GTK_CFLAGS" >&6; }
9879 { $as_echo "$as_me:${as_lineno-$LINENO}: checking GTK_LIBS" >&5
9880 $as_echo_n "checking GTK_LIBS... " >&6; }
9881 GTK_LIBS
=`$PKG_CONFIG --libs "$GTK_MODULES"|sed -e 's,///*,/,g'`
9882 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GTK_LIBS" >&5
9883 $as_echo "$GTK_LIBS" >&6; }
9885 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9886 $as_echo "no" >&6; }
9889 ## If we have a custom action on failure, don't print errors, but
9890 ## do set a variable so people can do so.
9891 GTK_PKG_ERRORS
=`$PKG_CONFIG --errors-to-stdout --print-errors "$GTK_MODULES"`
9898 echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
9899 echo "*** See http://www.freedesktop.org/software/pkgconfig"
9903 if test $succeeded = yes; then
9909 if test "$pkg_check_gtk" = "no" && test "$USE_X_TOOLKIT" != "maybe"; then
9910 as_fn_error $?
"$GTK_PKG_ERRORS" "$LINENO" 5
9914 if test "$pkg_check_gtk" != "yes"; then
9916 if test "${with_gtk}" = "yes" ||
test "$USE_X_TOOLKIT" = "maybe"; then
9919 GTK_MODULES
="gtk+-2.0 >= $GTK_REQUIRED glib-2.0 >= $GLIB_REQUIRED"
9924 # Extract the first word of "pkg-config", so it can be a program name with args.
9925 set dummy pkg-config
; ac_word
=$2
9926 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9927 $as_echo_n "checking for $ac_word... " >&6; }
9928 if ${ac_cv_path_PKG_CONFIG+:} false
; then :
9929 $as_echo_n "(cached) " >&6
9933 ac_cv_path_PKG_CONFIG
="$PKG_CONFIG" # Let the user override the test with a path.
9936 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
9940 test -z "$as_dir" && as_dir
=.
9941 for ac_exec_ext
in '' $ac_executable_extensions; do
9942 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9943 ac_cv_path_PKG_CONFIG
="$as_dir/$ac_word$ac_exec_ext"
9944 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9951 test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG
="no"
9955 PKG_CONFIG
=$ac_cv_path_PKG_CONFIG
9956 if test -n "$PKG_CONFIG"; then
9957 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5
9958 $as_echo "$PKG_CONFIG" >&6; }
9960 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9961 $as_echo "no" >&6; }
9966 if test "$PKG_CONFIG" = "no" ; then
9969 PKG_CONFIG_MIN_VERSION
=0.9.0
9970 if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
9971 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $GTK_MODULES" >&5
9972 $as_echo_n "checking for $GTK_MODULES... " >&6; }
9974 if $PKG_CONFIG --exists "$GTK_MODULES" 2>&5; then
9975 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
9976 $as_echo "yes" >&6; }
9979 { $as_echo "$as_me:${as_lineno-$LINENO}: checking GTK_CFLAGS" >&5
9980 $as_echo_n "checking GTK_CFLAGS... " >&6; }
9981 GTK_CFLAGS
=`$PKG_CONFIG --cflags "$GTK_MODULES"|sed -e 's,///*,/,g'`
9982 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GTK_CFLAGS" >&5
9983 $as_echo "$GTK_CFLAGS" >&6; }
9985 { $as_echo "$as_me:${as_lineno-$LINENO}: checking GTK_LIBS" >&5
9986 $as_echo_n "checking GTK_LIBS... " >&6; }
9987 GTK_LIBS
=`$PKG_CONFIG --libs "$GTK_MODULES"|sed -e 's,///*,/,g'`
9988 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GTK_LIBS" >&5
9989 $as_echo "$GTK_LIBS" >&6; }
9991 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9992 $as_echo "no" >&6; }
9995 ## If we have a custom action on failure, don't print errors, but
9996 ## do set a variable so people can do so.
9997 GTK_PKG_ERRORS
=`$PKG_CONFIG --errors-to-stdout --print-errors "$GTK_MODULES"`
10004 echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
10005 echo "*** See http://www.freedesktop.org/software/pkgconfig"
10009 if test $succeeded = yes; then
10015 if test "$pkg_check_gtk" = "no" && test "$USE_X_TOOLKIT" != "maybe"; then
10016 as_fn_error $?
"$GTK_PKG_ERRORS" "$LINENO" 5
10022 if test x
"$pkg_check_gtk" = xyes
; then
10026 C_SWITCH_X_SITE
="$C_SWITCH_X_SITE $GTK_CFLAGS"
10027 CFLAGS
="$CFLAGS $GTK_CFLAGS"
10028 LIBS
="$GTK_LIBS $LIBS"
10030 for ac_func
in gtk_main
10032 ac_fn_c_check_func
"$LINENO" "gtk_main" "ac_cv_func_gtk_main"
10033 if test "x$ac_cv_func_gtk_main" = xyes
; then :
10034 cat >>confdefs.h
<<_ACEOF
10035 #define HAVE_GTK_MAIN 1
10041 if test "${GTK_COMPILES}" != "yes"; then
10042 if test "$USE_X_TOOLKIT" != "maybe"; then
10043 as_fn_error $?
"Gtk+ wanted, but it does not compile, see config.log. Maybe some x11-devel files missing?" "$LINENO" 5;
10048 $as_echo "#define USE_GTK 1" >>confdefs.h
10052 if $PKG_CONFIG --atleast-version=2.10 gtk
+-2.0
; then
10055 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Your version of Gtk+ will have problems with
10056 closing open displays. This is no problem if you just use
10057 one display, but if you use more than one and close one of them
10058 Emacs may crash." >&5
10059 $as_echo "$as_me: WARNING: Your version of Gtk+ will have problems with
10060 closing open displays. This is no problem if you just use
10061 one display, but if you use more than one and close one of them
10062 Emacs may crash." >&2;}
10071 if test "${HAVE_GTK}" = "yes"; then
10073 if test "$with_toolkit_scroll_bars" != no
; then
10074 with_toolkit_scroll_bars
=yes
10077 HAVE_GTK_FILE_SELECTION
=no
10078 ac_fn_c_check_decl
"$LINENO" "GTK_TYPE_FILE_SELECTION" "ac_cv_have_decl_GTK_TYPE_FILE_SELECTION" "$ac_includes_default
10079 #include <gtk/gtk.h>
10081 if test "x$ac_cv_have_decl_GTK_TYPE_FILE_SELECTION" = xyes
; then :
10082 HAVE_GTK_FILE_SELECTION
=yes
10084 HAVE_GTK_FILE_SELECTION
=no
10087 if test "$HAVE_GTK_FILE_SELECTION" = yes; then
10088 for ac_func
in gtk_file_selection_new
10090 ac_fn_c_check_func
"$LINENO" "gtk_file_selection_new" "ac_cv_func_gtk_file_selection_new"
10091 if test "x$ac_cv_func_gtk_file_selection_new" = xyes
; then :
10092 cat >>confdefs.h
<<_ACEOF
10093 #define HAVE_GTK_FILE_SELECTION_NEW 1
10101 HAVE_GTK_AND_PTHREAD
=no
10102 for ac_header
in pthread.h
10104 ac_fn_c_check_header_mongrel
"$LINENO" "pthread.h" "ac_cv_header_pthread_h" "$ac_includes_default"
10105 if test "x$ac_cv_header_pthread_h" = xyes
; then :
10106 cat >>confdefs.h
<<_ACEOF
10107 #define HAVE_PTHREAD_H 1
10114 if test "$ac_cv_header_pthread_h"; then
10115 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pthread_self in -lpthread" >&5
10116 $as_echo_n "checking for pthread_self in -lpthread... " >&6; }
10117 if ${ac_cv_lib_pthread_pthread_self+:} false
; then :
10118 $as_echo_n "(cached) " >&6
10120 ac_check_lib_save_LIBS
=$LIBS
10121 LIBS
="-lpthread $LIBS"
10122 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
10123 /* end confdefs.h. */
10125 /* Override any GCC internal prototype to avoid an error.
10126 Use char because int might match the return type of a GCC
10127 builtin and then its argument prototype would still apply. */
10131 char pthread_self ();
10135 return pthread_self ();
10140 if ac_fn_c_try_link
"$LINENO"; then :
10141 ac_cv_lib_pthread_pthread_self
=yes
10143 ac_cv_lib_pthread_pthread_self
=no
10145 rm -f core conftest.err conftest.
$ac_objext \
10146 conftest
$ac_exeext conftest.
$ac_ext
10147 LIBS
=$ac_check_lib_save_LIBS
10149 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_pthread_pthread_self" >&5
10150 $as_echo "$ac_cv_lib_pthread_pthread_self" >&6; }
10151 if test "x$ac_cv_lib_pthread_pthread_self" = xyes
; then :
10152 HAVE_GTK_AND_PTHREAD
=yes
10156 if test "$HAVE_GTK_AND_PTHREAD" = yes; then
10157 case "${canonical}" in
10159 *) GTK_LIBS
="$GTK_LIBS -lpthread" ;;
10162 $as_echo "#define HAVE_GTK_AND_PTHREAD 1" >>confdefs.h
10166 for ac_func
in gtk_widget_get_window gtk_widget_set_has_window \
10167 gtk_dialog_get_action_area gtk_widget_get_sensitive \
10168 gtk_widget_get_mapped gtk_adjustment_get_page_size \
10169 gtk_orientable_set_orientation
10171 as_ac_var
=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
10172 ac_fn_c_check_func
"$LINENO" "$ac_func" "$as_ac_var"
10173 if eval test \"x\$
"$as_ac_var"\" = x
"yes"; then :
10174 cat >>confdefs.h
<<_ACEOF
10175 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
10186 if test "${with_dbus}" = "yes"; then
10190 # Extract the first word of "pkg-config", so it can be a program name with args.
10191 set dummy pkg-config
; ac_word
=$2
10192 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10193 $as_echo_n "checking for $ac_word... " >&6; }
10194 if ${ac_cv_path_PKG_CONFIG+:} false
; then :
10195 $as_echo_n "(cached) " >&6
10197 case $PKG_CONFIG in
10199 ac_cv_path_PKG_CONFIG
="$PKG_CONFIG" # Let the user override the test with a path.
10202 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
10203 for as_dir
in $PATH
10206 test -z "$as_dir" && as_dir
=.
10207 for ac_exec_ext
in '' $ac_executable_extensions; do
10208 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10209 ac_cv_path_PKG_CONFIG
="$as_dir/$ac_word$ac_exec_ext"
10210 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10217 test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG
="no"
10221 PKG_CONFIG
=$ac_cv_path_PKG_CONFIG
10222 if test -n "$PKG_CONFIG"; then
10223 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5
10224 $as_echo "$PKG_CONFIG" >&6; }
10226 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10227 $as_echo "no" >&6; }
10232 if test "$PKG_CONFIG" = "no" ; then
10235 PKG_CONFIG_MIN_VERSION
=0.9.0
10236 if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
10237 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dbus-1 >= 1.0" >&5
10238 $as_echo_n "checking for dbus-1 >= 1.0... " >&6; }
10240 if $PKG_CONFIG --exists "dbus-1 >= 1.0" 2>&5; then
10241 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
10242 $as_echo "yes" >&6; }
10245 { $as_echo "$as_me:${as_lineno-$LINENO}: checking DBUS_CFLAGS" >&5
10246 $as_echo_n "checking DBUS_CFLAGS... " >&6; }
10247 DBUS_CFLAGS
=`$PKG_CONFIG --cflags "dbus-1 >= 1.0"|sed -e 's,///*,/,g'`
10248 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DBUS_CFLAGS" >&5
10249 $as_echo "$DBUS_CFLAGS" >&6; }
10251 { $as_echo "$as_me:${as_lineno-$LINENO}: checking DBUS_LIBS" >&5
10252 $as_echo_n "checking DBUS_LIBS... " >&6; }
10253 DBUS_LIBS
=`$PKG_CONFIG --libs "dbus-1 >= 1.0"|sed -e 's,///*,/,g'`
10254 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DBUS_LIBS" >&5
10255 $as_echo "$DBUS_LIBS" >&6; }
10257 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10258 $as_echo "no" >&6; }
10261 ## If we have a custom action on failure, don't print errors, but
10262 ## do set a variable so people can do so.
10263 DBUS_PKG_ERRORS
=`$PKG_CONFIG --errors-to-stdout --print-errors "dbus-1 >= 1.0"`
10270 echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
10271 echo "*** See http://www.freedesktop.org/software/pkgconfig"
10275 if test $succeeded = yes; then
10281 if test "$HAVE_DBUS" = yes; then
10282 LIBS
="$LIBS $DBUS_LIBS"
10284 $as_echo "#define HAVE_DBUS 1" >>confdefs.h
10286 for ac_func
in dbus_watch_get_unix_fd
10288 ac_fn_c_check_func
"$LINENO" "dbus_watch_get_unix_fd" "ac_cv_func_dbus_watch_get_unix_fd"
10289 if test "x$ac_cv_func_dbus_watch_get_unix_fd" = xyes
; then :
10290 cat >>confdefs.h
<<_ACEOF
10291 #define HAVE_DBUS_WATCH_GET_UNIX_FD 1
10297 DBUS_OBJ
=dbusbind.o
10303 if test "${HAVE_X11}" = "yes" && test "${with_gconf}" = "yes"; then
10307 # Extract the first word of "pkg-config", so it can be a program name with args.
10308 set dummy pkg-config
; ac_word
=$2
10309 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10310 $as_echo_n "checking for $ac_word... " >&6; }
10311 if ${ac_cv_path_PKG_CONFIG+:} false
; then :
10312 $as_echo_n "(cached) " >&6
10314 case $PKG_CONFIG in
10316 ac_cv_path_PKG_CONFIG
="$PKG_CONFIG" # Let the user override the test with a path.
10319 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
10320 for as_dir
in $PATH
10323 test -z "$as_dir" && as_dir
=.
10324 for ac_exec_ext
in '' $ac_executable_extensions; do
10325 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10326 ac_cv_path_PKG_CONFIG
="$as_dir/$ac_word$ac_exec_ext"
10327 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10334 test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG
="no"
10338 PKG_CONFIG
=$ac_cv_path_PKG_CONFIG
10339 if test -n "$PKG_CONFIG"; then
10340 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5
10341 $as_echo "$PKG_CONFIG" >&6; }
10343 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10344 $as_echo "no" >&6; }
10349 if test "$PKG_CONFIG" = "no" ; then
10352 PKG_CONFIG_MIN_VERSION
=0.9.0
10353 if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
10354 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gconf-2.0 >= 2.13" >&5
10355 $as_echo_n "checking for gconf-2.0 >= 2.13... " >&6; }
10357 if $PKG_CONFIG --exists "gconf-2.0 >= 2.13" 2>&5; then
10358 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
10359 $as_echo "yes" >&6; }
10362 { $as_echo "$as_me:${as_lineno-$LINENO}: checking GCONF_CFLAGS" >&5
10363 $as_echo_n "checking GCONF_CFLAGS... " >&6; }
10364 GCONF_CFLAGS
=`$PKG_CONFIG --cflags "gconf-2.0 >= 2.13"|sed -e 's,///*,/,g'`
10365 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GCONF_CFLAGS" >&5
10366 $as_echo "$GCONF_CFLAGS" >&6; }
10368 { $as_echo "$as_me:${as_lineno-$LINENO}: checking GCONF_LIBS" >&5
10369 $as_echo_n "checking GCONF_LIBS... " >&6; }
10370 GCONF_LIBS
=`$PKG_CONFIG --libs "gconf-2.0 >= 2.13"|sed -e 's,///*,/,g'`
10371 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GCONF_LIBS" >&5
10372 $as_echo "$GCONF_LIBS" >&6; }
10374 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10375 $as_echo "no" >&6; }
10378 ## If we have a custom action on failure, don't print errors, but
10379 ## do set a variable so people can do so.
10380 GCONF_PKG_ERRORS
=`$PKG_CONFIG --errors-to-stdout --print-errors "gconf-2.0 >= 2.13"`
10387 echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
10388 echo "*** See http://www.freedesktop.org/software/pkgconfig"
10392 if test $succeeded = yes; then
10398 if test "$HAVE_GCONF" = yes; then
10400 $as_echo "#define HAVE_GCONF 1" >>confdefs.h
10402 for ac_func
in g_type_init
10404 ac_fn_c_check_func
"$LINENO" "g_type_init" "ac_cv_func_g_type_init"
10405 if test "x$ac_cv_func_g_type_init" = xyes
; then :
10406 cat >>confdefs.h
<<_ACEOF
10407 #define HAVE_G_TYPE_INIT 1
10418 if test "${with_selinux}" = "yes"; then
10419 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for lgetfilecon in -lselinux" >&5
10420 $as_echo_n "checking for lgetfilecon in -lselinux... " >&6; }
10421 if ${ac_cv_lib_selinux_lgetfilecon+:} false
; then :
10422 $as_echo_n "(cached) " >&6
10424 ac_check_lib_save_LIBS
=$LIBS
10425 LIBS
="-lselinux $LIBS"
10426 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
10427 /* end confdefs.h. */
10429 /* Override any GCC internal prototype to avoid an error.
10430 Use char because int might match the return type of a GCC
10431 builtin and then its argument prototype would still apply. */
10435 char lgetfilecon ();
10439 return lgetfilecon ();
10444 if ac_fn_c_try_link
"$LINENO"; then :
10445 ac_cv_lib_selinux_lgetfilecon
=yes
10447 ac_cv_lib_selinux_lgetfilecon
=no
10449 rm -f core conftest.err conftest.
$ac_objext \
10450 conftest
$ac_exeext conftest.
$ac_ext
10451 LIBS
=$ac_check_lib_save_LIBS
10453 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_selinux_lgetfilecon" >&5
10454 $as_echo "$ac_cv_lib_selinux_lgetfilecon" >&6; }
10455 if test "x$ac_cv_lib_selinux_lgetfilecon" = xyes
; then :
10456 HAVE_LIBSELINUX
=yes
10461 if test "$HAVE_LIBSELINUX" = yes; then
10463 $as_echo "#define HAVE_LIBSELINUX 1" >>confdefs.h
10465 LIBSELINUX_LIBS
=-lselinux
10471 if test "${with_gnutls}" = "yes" ; then
10475 # Extract the first word of "pkg-config", so it can be a program name with args.
10476 set dummy pkg-config
; ac_word
=$2
10477 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10478 $as_echo_n "checking for $ac_word... " >&6; }
10479 if ${ac_cv_path_PKG_CONFIG+:} false
; then :
10480 $as_echo_n "(cached) " >&6
10482 case $PKG_CONFIG in
10484 ac_cv_path_PKG_CONFIG
="$PKG_CONFIG" # Let the user override the test with a path.
10487 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
10488 for as_dir
in $PATH
10491 test -z "$as_dir" && as_dir
=.
10492 for ac_exec_ext
in '' $ac_executable_extensions; do
10493 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10494 ac_cv_path_PKG_CONFIG
="$as_dir/$ac_word$ac_exec_ext"
10495 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10502 test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG
="no"
10506 PKG_CONFIG
=$ac_cv_path_PKG_CONFIG
10507 if test -n "$PKG_CONFIG"; then
10508 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5
10509 $as_echo "$PKG_CONFIG" >&6; }
10511 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10512 $as_echo "no" >&6; }
10517 if test "$PKG_CONFIG" = "no" ; then
10520 PKG_CONFIG_MIN_VERSION
=0.9.0
10521 if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
10522 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gnutls >= 2.2.4" >&5
10523 $as_echo_n "checking for gnutls >= 2.2.4... " >&6; }
10525 if $PKG_CONFIG --exists "gnutls >= 2.2.4" 2>&5; then
10526 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
10527 $as_echo "yes" >&6; }
10530 { $as_echo "$as_me:${as_lineno-$LINENO}: checking LIBGNUTLS_CFLAGS" >&5
10531 $as_echo_n "checking LIBGNUTLS_CFLAGS... " >&6; }
10532 LIBGNUTLS_CFLAGS
=`$PKG_CONFIG --cflags "gnutls >= 2.2.4"|sed -e 's,///*,/,g'`
10533 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIBGNUTLS_CFLAGS" >&5
10534 $as_echo "$LIBGNUTLS_CFLAGS" >&6; }
10536 { $as_echo "$as_me:${as_lineno-$LINENO}: checking LIBGNUTLS_LIBS" >&5
10537 $as_echo_n "checking LIBGNUTLS_LIBS... " >&6; }
10538 LIBGNUTLS_LIBS
=`$PKG_CONFIG --libs "gnutls >= 2.2.4"|sed -e 's,///*,/,g'`
10539 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIBGNUTLS_LIBS" >&5
10540 $as_echo "$LIBGNUTLS_LIBS" >&6; }
10542 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10543 $as_echo "no" >&6; }
10544 LIBGNUTLS_CFLAGS
=""
10546 ## If we have a custom action on failure, don't print errors, but
10547 ## do set a variable so people can do so.
10548 LIBGNUTLS_PKG_ERRORS
=`$PKG_CONFIG --errors-to-stdout --print-errors "gnutls >= 2.2.4"`
10555 echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
10556 echo "*** See http://www.freedesktop.org/software/pkgconfig"
10560 if test $succeeded = yes; then
10566 if test "${HAVE_GNUTLS}" = "yes"; then
10568 $as_echo "#define HAVE_GNUTLS 1" >>confdefs.h
10577 if test x
"${USE_X_TOOLKIT}" = xmaybe ||
test x
"${USE_X_TOOLKIT}" = xLUCID
; then
10578 if test "$with_xaw3d" != no
; then
10579 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for xaw3d" >&5
10580 $as_echo_n "checking for xaw3d... " >&6; }
10581 if ${emacs_cv_xaw3d+:} false
; then :
10582 $as_echo_n "(cached) " >&6
10584 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
10585 /* end confdefs.h. */
10587 #include <X11/Intrinsic.h>
10588 #include <X11/Xaw3d/Simple.h>
10597 if ac_fn_c_try_link
"$LINENO"; then :
10598 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for XawScrollbarSetThumb in -lXaw3d" >&5
10599 $as_echo_n "checking for XawScrollbarSetThumb in -lXaw3d... " >&6; }
10600 if test "${ac_cv_lib_Xaw3d_XawScrollbarSetThumb+set}" = set; then :
10601 $as_echo_n "(cached) " >&6
10603 ac_check_lib_save_LIBS
=$LIBS
10604 LIBS
="-lXaw3d $LIBS"
10605 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
10606 /* end confdefs.h. */
10608 /* Override any GCC internal prototype to avoid an error.
10609 Use char because int might match the return type of a GCC
10610 builtin and then its argument prototype would still apply. */
10614 char XawScrollbarSetThumb ();
10618 return XawScrollbarSetThumb ();
10623 if ac_fn_c_try_link
"$LINENO"; then :
10624 ac_cv_lib_Xaw3d_XawScrollbarSetThumb
=yes
10626 ac_cv_lib_Xaw3d_XawScrollbarSetThumb
=no
10628 rm -f core conftest.err conftest.
$ac_objext \
10629 conftest
$ac_exeext conftest.
$ac_ext
10630 LIBS
=$ac_check_lib_save_LIBS
10632 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_Xaw3d_XawScrollbarSetThumb" >&5
10633 $as_echo "$ac_cv_lib_Xaw3d_XawScrollbarSetThumb" >&6; }
10634 if test "x$ac_cv_lib_Xaw3d_XawScrollbarSetThumb" = x
""yes; then :
10643 rm -f core conftest.err conftest.
$ac_objext \
10644 conftest
$ac_exeext conftest.
$ac_ext
10650 if test $emacs_cv_xaw3d = yes; then
10651 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes; using Lucid toolkit" >&5
10652 $as_echo "yes; using Lucid toolkit" >&6; }
10653 USE_X_TOOLKIT
=LUCID
10657 $as_echo "#define HAVE_XAW3D 1" >>confdefs.h
10660 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10661 $as_echo "no" >&6; }
10662 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libXaw" >&5
10663 $as_echo_n "checking for libXaw... " >&6; }
10664 if ${emacs_cv_xaw+:} false
; then :
10665 $as_echo_n "(cached) " >&6
10667 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
10668 /* end confdefs.h. */
10670 #include <X11/Intrinsic.h>
10671 #include <X11/Xaw/Simple.h>
10680 if ac_fn_c_try_link
"$LINENO"; then :
10685 rm -f core conftest.err conftest.
$ac_objext \
10686 conftest
$ac_exeext conftest.
$ac_ext
10689 if test $emacs_cv_xaw = yes; then
10690 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes; using Lucid toolkit" >&5
10691 $as_echo "yes; using Lucid toolkit" >&6; }
10692 USE_X_TOOLKIT
=LUCID
10694 elif test x
"${USE_X_TOOLKIT}" = xLUCID
; then
10695 as_fn_error $?
"Lucid toolkit requires X11/Xaw include files" "$LINENO" 5
10697 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no; do not use toolkit by default" >&5
10698 $as_echo "no; do not use toolkit by default" >&6; }
10704 X_TOOLKIT_TYPE
=$USE_X_TOOLKIT
10707 if test "${USE_X_TOOLKIT}" != "none"; then
10708 { $as_echo "$as_me:${as_lineno-$LINENO}: checking X11 toolkit version" >&5
10709 $as_echo_n "checking X11 toolkit version... " >&6; }
10710 if ${emacs_cv_x11_toolkit_version_6+:} false
; then :
10711 $as_echo_n "(cached) " >&6
10713 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
10714 /* end confdefs.h. */
10715 #include <X11/Intrinsic.h>
10719 #if XtSpecificationRelease < 6
10727 if ac_fn_c_try_link
"$LINENO"; then :
10728 emacs_cv_x11_toolkit_version_6
=yes
10730 emacs_cv_x11_toolkit_version_6
=no
10732 rm -f core conftest.err conftest.
$ac_objext \
10733 conftest
$ac_exeext conftest.
$ac_ext
10736 HAVE_X11XTR6
=$emacs_cv_x11_toolkit_version_6
10737 if test $emacs_cv_x11_toolkit_version_6 = yes; then
10738 { $as_echo "$as_me:${as_lineno-$LINENO}: result: 6 or newer" >&5
10739 $as_echo "6 or newer" >&6; }
10741 $as_echo "#define HAVE_X11XTR6 1" >>confdefs.h
10743 LIBXTR6
="-lSM -lICE"
10745 ## Use libw.a along with X11R6 Xt.
10746 unixware
) LIBXTR6
="$LIBXTR6 -lw" ;;
10749 { $as_echo "$as_me:${as_lineno-$LINENO}: result: before 6" >&5
10750 $as_echo "before 6" >&6; }
10754 if test x
$HAVE_X11XTR6 = xyes
; then
10755 LIBS
="-lXt -lSM -lICE $LIBS"
10759 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for XmuConvertStandardSelection in -lXmu" >&5
10760 $as_echo_n "checking for XmuConvertStandardSelection in -lXmu... " >&6; }
10761 if ${ac_cv_lib_Xmu_XmuConvertStandardSelection+:} false
; then :
10762 $as_echo_n "(cached) " >&6
10764 ac_check_lib_save_LIBS
=$LIBS
10766 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
10767 /* end confdefs.h. */
10769 /* Override any GCC internal prototype to avoid an error.
10770 Use char because int might match the return type of a GCC
10771 builtin and then its argument prototype would still apply. */
10775 char XmuConvertStandardSelection ();
10779 return XmuConvertStandardSelection ();
10784 if ac_fn_c_try_link
"$LINENO"; then :
10785 ac_cv_lib_Xmu_XmuConvertStandardSelection
=yes
10787 ac_cv_lib_Xmu_XmuConvertStandardSelection
=no
10789 rm -f core conftest.err conftest.
$ac_objext \
10790 conftest
$ac_exeext conftest.
$ac_ext
10791 LIBS
=$ac_check_lib_save_LIBS
10793 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_Xmu_XmuConvertStandardSelection" >&5
10794 $as_echo "$ac_cv_lib_Xmu_XmuConvertStandardSelection" >&6; }
10795 if test "x$ac_cv_lib_Xmu_XmuConvertStandardSelection" = xyes
; then :
10796 cat >>confdefs.h
<<_ACEOF
10797 #define HAVE_LIBXMU 1
10804 test $ac_cv_lib_Xmu_XmuConvertStandardSelection = no
&& LIBS
="$OLDLIBS"
10810 ## These systems don't supply Xmu.
10812 test "X$ac_cv_lib_Xmu_XmuConvertStandardSelection" != "Xyes" && LIBXMU
=
10817 # On Irix 6.5, at least, we need XShapeQueryExtension from -lXext for Xaw3D.
10818 if test "${HAVE_X11}" = "yes"; then
10819 if test "${USE_X_TOOLKIT}" != "none"; then
10820 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for XShapeQueryExtension in -lXext" >&5
10821 $as_echo_n "checking for XShapeQueryExtension in -lXext... " >&6; }
10822 if ${ac_cv_lib_Xext_XShapeQueryExtension+:} false
; then :
10823 $as_echo_n "(cached) " >&6
10825 ac_check_lib_save_LIBS
=$LIBS
10826 LIBS
="-lXext $LIBS"
10827 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
10828 /* end confdefs.h. */
10830 /* Override any GCC internal prototype to avoid an error.
10831 Use char because int might match the return type of a GCC
10832 builtin and then its argument prototype would still apply. */
10836 char XShapeQueryExtension ();
10840 return XShapeQueryExtension ();
10845 if ac_fn_c_try_link
"$LINENO"; then :
10846 ac_cv_lib_Xext_XShapeQueryExtension
=yes
10848 ac_cv_lib_Xext_XShapeQueryExtension
=no
10850 rm -f core conftest.err conftest.
$ac_objext \
10851 conftest
$ac_exeext conftest.
$ac_ext
10852 LIBS
=$ac_check_lib_save_LIBS
10854 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_Xext_XShapeQueryExtension" >&5
10855 $as_echo "$ac_cv_lib_Xext_XShapeQueryExtension" >&6; }
10856 if test "x$ac_cv_lib_Xext_XShapeQueryExtension" = xyes
; then :
10857 cat >>confdefs.h
<<_ACEOF
10858 #define HAVE_LIBXEXT 1
10861 LIBS
="-lXext $LIBS"
10869 if test "${USE_X_TOOLKIT}" = "MOTIF"; then
10870 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Motif version 2.1" >&5
10871 $as_echo_n "checking for Motif version 2.1... " >&6; }
10872 if ${emacs_cv_motif_version_2_1+:} false
; then :
10873 $as_echo_n "(cached) " >&6
10875 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
10876 /* end confdefs.h. */
10881 #if XmVERSION > 2 || (XmVERSION == 2 && XmREVISION >= 1)
10884 Motif version prior to 2.1.
10890 if ac_fn_c_try_compile
"$LINENO"; then :
10891 emacs_cv_motif_version_2_1
=yes
10893 emacs_cv_motif_version_2_1
=no
10895 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
10897 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $emacs_cv_motif_version_2_1" >&5
10898 $as_echo "$emacs_cv_motif_version_2_1" >&6; }
10899 if test $emacs_cv_motif_version_2_1 = yes; then
10900 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for XpCreateContext in -lXp" >&5
10901 $as_echo_n "checking for XpCreateContext in -lXp... " >&6; }
10902 if ${ac_cv_lib_Xp_XpCreateContext+:} false
; then :
10903 $as_echo_n "(cached) " >&6
10905 ac_check_lib_save_LIBS
=$LIBS
10907 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
10908 /* end confdefs.h. */
10910 /* Override any GCC internal prototype to avoid an error.
10911 Use char because int might match the return type of a GCC
10912 builtin and then its argument prototype would still apply. */
10916 char XpCreateContext ();
10920 return XpCreateContext ();
10925 if ac_fn_c_try_link
"$LINENO"; then :
10926 ac_cv_lib_Xp_XpCreateContext
=yes
10928 ac_cv_lib_Xp_XpCreateContext
=no
10930 rm -f core conftest.err conftest.
$ac_objext \
10931 conftest
$ac_exeext conftest.
$ac_ext
10932 LIBS
=$ac_check_lib_save_LIBS
10934 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_Xp_XpCreateContext" >&5
10935 $as_echo "$ac_cv_lib_Xp_XpCreateContext" >&6; }
10936 if test "x$ac_cv_lib_Xp_XpCreateContext" = xyes
; then :
10941 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for LessTif where some systems put it" >&5
10942 $as_echo_n "checking for LessTif where some systems put it... " >&6; }
10943 if ${emacs_cv_lesstif+:} false
; then :
10944 $as_echo_n "(cached) " >&6
10946 # We put this in CFLAGS temporarily to precede other -I options
10947 # that might be in CFLAGS temporarily.
10948 # We put this in CPPFLAGS where it precedes the other -I options.
10949 OLD_CPPFLAGS
=$CPPFLAGS
10951 CPPFLAGS
="-I/usr/X11R6/LessTif/Motif1.2/include $CPPFLAGS"
10952 CFLAGS
="-I/usr/X11R6/LessTif/Motif1.2/include $CFLAGS"
10953 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
10954 /* end confdefs.h. */
10955 #include </usr/X11R6/LessTif/Motif1.2/include/Xm/Xm.h>
10964 if ac_fn_c_try_compile
"$LINENO"; then :
10965 emacs_cv_lesstif
=yes
10967 emacs_cv_lesstif
=no
10969 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
10971 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $emacs_cv_lesstif" >&5
10972 $as_echo "$emacs_cv_lesstif" >&6; }
10973 if test $emacs_cv_lesstif = yes; then
10974 # Make sure this -I option remains in CPPFLAGS after it is set
10975 # back to REAL_CPPFLAGS.
10976 # There is no need to change REAL_CFLAGS, because REAL_CFLAGS does not
10977 # have those other -I options anyway. Ultimately, having this
10978 # directory ultimately in CPPFLAGS will be enough.
10979 REAL_CPPFLAGS
="-I/usr/X11R6/LessTif/Motif1.2/include $REAL_CPPFLAGS"
10980 LDFLAGS
="-L/usr/X11R6/LessTif/Motif1.2/lib $LDFLAGS"
10983 CPPFLAGS
=$OLD_CPPFLAGS
10989 USE_TOOLKIT_SCROLL_BARS
=no
10990 if test "${with_toolkit_scroll_bars}" != "no"; then
10991 if test "${USE_X_TOOLKIT}" != "none"; then
10992 if test "${USE_X_TOOLKIT}" = "MOTIF"; then
10993 $as_echo "#define USE_TOOLKIT_SCROLL_BARS 1" >>confdefs.h
10996 USE_TOOLKIT_SCROLL_BARS
=yes
10997 elif test "${HAVE_XAW3D}" = "yes"; then
10998 $as_echo "#define USE_TOOLKIT_SCROLL_BARS 1" >>confdefs.h
11000 USE_TOOLKIT_SCROLL_BARS
=yes
11002 elif test "${HAVE_GTK}" = "yes"; then
11003 $as_echo "#define USE_TOOLKIT_SCROLL_BARS 1" >>confdefs.h
11005 USE_TOOLKIT_SCROLL_BARS
=yes
11006 elif test "${HAVE_NS}" = "yes"; then
11007 $as_echo "#define USE_TOOLKIT_SCROLL_BARS 1" >>confdefs.h
11009 USE_TOOLKIT_SCROLL_BARS
=yes
11013 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
11014 /* end confdefs.h. */
11016 #include <X11/Xlib.h>
11017 #include <X11/Xresource.h>
11026 if ac_fn_c_try_compile
"$LINENO"; then :
11029 $as_echo "#define HAVE_XIM 1" >>confdefs.h
11034 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
11037 if test "${with_xim}" != "no"; then
11039 $as_echo "#define USE_XIM 1" >>confdefs.h
11044 if test "${HAVE_XIM}" != "no"; then
11045 late_CFLAGS
=$CFLAGS
11046 if test "$GCC" = yes; then
11047 CFLAGS
="$CFLAGS --pedantic-errors"
11049 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
11050 /* end confdefs.h. */
11052 #include <X11/Xlib.h>
11053 #include <X11/Xresource.h>
11062 XPointer *client_data;
11064 /* If we're not using GCC, it's probably not XFree86, and this is
11065 probably right, but we can't use something like --pedantic-errors. */
11066 extern Bool XRegisterIMInstantiateCallback(Display*, XrmDatabase, char*,
11067 char*, XIMProc, XPointer*);
11069 (void)XRegisterIMInstantiateCallback(display, db, res_name, res_class, callback,
11075 if ac_fn_c_try_compile
"$LINENO"; then :
11076 emacs_cv_arg6_star
=yes
11078 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
11079 if test "$emacs_cv_arg6_star" = yes; then
11080 $as_echo "#define XRegisterIMInstantiateCallback_arg6 XPointer*" >>confdefs.h
11083 $as_echo "#define XRegisterIMInstantiateCallback_arg6 XPointer" >>confdefs.h
11086 CFLAGS
=$late_CFLAGS
11089 ### Start of font-backend (under any platform) section.
11090 # (nothing here yet -- this is a placeholder)
11091 ### End of font-backend (under any platform) section.
11093 ### Start of font-backend (under X11) section.
11094 if test "${HAVE_X11}" = "yes"; then
11098 # Extract the first word of "pkg-config", so it can be a program name with args.
11099 set dummy pkg-config
; ac_word
=$2
11100 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11101 $as_echo_n "checking for $ac_word... " >&6; }
11102 if ${ac_cv_path_PKG_CONFIG+:} false
; then :
11103 $as_echo_n "(cached) " >&6
11105 case $PKG_CONFIG in
11107 ac_cv_path_PKG_CONFIG
="$PKG_CONFIG" # Let the user override the test with a path.
11110 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
11111 for as_dir
in $PATH
11114 test -z "$as_dir" && as_dir
=.
11115 for ac_exec_ext
in '' $ac_executable_extensions; do
11116 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11117 ac_cv_path_PKG_CONFIG
="$as_dir/$ac_word$ac_exec_ext"
11118 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11125 test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG
="no"
11129 PKG_CONFIG
=$ac_cv_path_PKG_CONFIG
11130 if test -n "$PKG_CONFIG"; then
11131 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5
11132 $as_echo "$PKG_CONFIG" >&6; }
11134 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11135 $as_echo "no" >&6; }
11140 if test "$PKG_CONFIG" = "no" ; then
11143 PKG_CONFIG_MIN_VERSION
=0.9.0
11144 if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
11145 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for fontconfig >= 2.2.0" >&5
11146 $as_echo_n "checking for fontconfig >= 2.2.0... " >&6; }
11148 if $PKG_CONFIG --exists "fontconfig >= 2.2.0" 2>&5; then
11149 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11150 $as_echo "yes" >&6; }
11153 { $as_echo "$as_me:${as_lineno-$LINENO}: checking FONTCONFIG_CFLAGS" >&5
11154 $as_echo_n "checking FONTCONFIG_CFLAGS... " >&6; }
11155 FONTCONFIG_CFLAGS
=`$PKG_CONFIG --cflags "fontconfig >= 2.2.0"|sed -e 's,///*,/,g'`
11156 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $FONTCONFIG_CFLAGS" >&5
11157 $as_echo "$FONTCONFIG_CFLAGS" >&6; }
11159 { $as_echo "$as_me:${as_lineno-$LINENO}: checking FONTCONFIG_LIBS" >&5
11160 $as_echo_n "checking FONTCONFIG_LIBS... " >&6; }
11161 FONTCONFIG_LIBS
=`$PKG_CONFIG --libs "fontconfig >= 2.2.0"|sed -e 's,///*,/,g'`
11162 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $FONTCONFIG_LIBS" >&5
11163 $as_echo "$FONTCONFIG_LIBS" >&6; }
11165 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11166 $as_echo "no" >&6; }
11167 FONTCONFIG_CFLAGS
=""
11169 ## If we have a custom action on failure, don't print errors, but
11170 ## do set a variable so people can do so.
11171 FONTCONFIG_PKG_ERRORS
=`$PKG_CONFIG --errors-to-stdout --print-errors "fontconfig >= 2.2.0"`
11178 echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
11179 echo "*** See http://www.freedesktop.org/software/pkgconfig"
11183 if test $succeeded = yes; then
11190 ## Use -lXft if available, unless `--with-xft=no'.
11192 if test "${HAVE_FC}" = "no" ||
test "x${with_x}" = "xno"; then
11195 if test "x${with_xft}" != "xno"; then
11200 # Extract the first word of "pkg-config", so it can be a program name with args.
11201 set dummy pkg-config
; ac_word
=$2
11202 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11203 $as_echo_n "checking for $ac_word... " >&6; }
11204 if ${ac_cv_path_PKG_CONFIG+:} false
; then :
11205 $as_echo_n "(cached) " >&6
11207 case $PKG_CONFIG in
11209 ac_cv_path_PKG_CONFIG
="$PKG_CONFIG" # Let the user override the test with a path.
11212 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
11213 for as_dir
in $PATH
11216 test -z "$as_dir" && as_dir
=.
11217 for ac_exec_ext
in '' $ac_executable_extensions; do
11218 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11219 ac_cv_path_PKG_CONFIG
="$as_dir/$ac_word$ac_exec_ext"
11220 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11227 test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG
="no"
11231 PKG_CONFIG
=$ac_cv_path_PKG_CONFIG
11232 if test -n "$PKG_CONFIG"; then
11233 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5
11234 $as_echo "$PKG_CONFIG" >&6; }
11236 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11237 $as_echo "no" >&6; }
11242 if test "$PKG_CONFIG" = "no" ; then
11245 PKG_CONFIG_MIN_VERSION
=0.9.0
11246 if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
11247 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for xft >= 0.13.0" >&5
11248 $as_echo_n "checking for xft >= 0.13.0... " >&6; }
11250 if $PKG_CONFIG --exists "xft >= 0.13.0" 2>&5; then
11251 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11252 $as_echo "yes" >&6; }
11255 { $as_echo "$as_me:${as_lineno-$LINENO}: checking XFT_CFLAGS" >&5
11256 $as_echo_n "checking XFT_CFLAGS... " >&6; }
11257 XFT_CFLAGS
=`$PKG_CONFIG --cflags "xft >= 0.13.0"|sed -e 's,///*,/,g'`
11258 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $XFT_CFLAGS" >&5
11259 $as_echo "$XFT_CFLAGS" >&6; }
11261 { $as_echo "$as_me:${as_lineno-$LINENO}: checking XFT_LIBS" >&5
11262 $as_echo_n "checking XFT_LIBS... " >&6; }
11263 XFT_LIBS
=`$PKG_CONFIG --libs "xft >= 0.13.0"|sed -e 's,///*,/,g'`
11264 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $XFT_LIBS" >&5
11265 $as_echo "$XFT_LIBS" >&6; }
11267 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11268 $as_echo "no" >&6; }
11271 ## If we have a custom action on failure, don't print errors, but
11272 ## do set a variable so people can do so.
11273 XFT_PKG_ERRORS
=`$PKG_CONFIG --errors-to-stdout --print-errors "xft >= 0.13.0"`
11280 echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
11281 echo "*** See http://www.freedesktop.org/software/pkgconfig"
11285 if test $succeeded = yes; then
11291 ## Because xftfont.c uses XRenderQueryExtension, we also
11292 ## need to link to -lXrender.
11294 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for XRenderQueryExtension in -lXrender" >&5
11295 $as_echo_n "checking for XRenderQueryExtension in -lXrender... " >&6; }
11296 if ${ac_cv_lib_Xrender_XRenderQueryExtension+:} false
; then :
11297 $as_echo_n "(cached) " >&6
11299 ac_check_lib_save_LIBS
=$LIBS
11300 LIBS
="-lXrender $LIBS"
11301 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
11302 /* end confdefs.h. */
11304 /* Override any GCC internal prototype to avoid an error.
11305 Use char because int might match the return type of a GCC
11306 builtin and then its argument prototype would still apply. */
11310 char XRenderQueryExtension ();
11314 return XRenderQueryExtension ();
11319 if ac_fn_c_try_link
"$LINENO"; then :
11320 ac_cv_lib_Xrender_XRenderQueryExtension
=yes
11322 ac_cv_lib_Xrender_XRenderQueryExtension
=no
11324 rm -f core conftest.err conftest.
$ac_objext \
11325 conftest
$ac_exeext conftest.
$ac_ext
11326 LIBS
=$ac_check_lib_save_LIBS
11328 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_Xrender_XRenderQueryExtension" >&5
11329 $as_echo "$ac_cv_lib_Xrender_XRenderQueryExtension" >&6; }
11330 if test "x$ac_cv_lib_Xrender_XRenderQueryExtension" = xyes
; then :
11334 if test "$HAVE_XFT" != no
&& test "$HAVE_XRENDER" != no
; then
11335 OLD_CPPFLAGS
="$CPPFLAGS"
11336 OLD_CFLAGS
="$CFLAGS"
11338 CPPFLAGS
="$CPPFLAGS $XFT_CFLAGS"
11339 CFLAGS
="$CFLAGS $XFT_CFLAGS"
11340 XFT_LIBS
="-lXrender $XFT_LIBS"
11341 LIBS
="$XFT_LIBS $LIBS"
11342 ac_fn_c_check_header_mongrel
"$LINENO" "X11/Xft/Xft.h" "ac_cv_header_X11_Xft_Xft_h" "$ac_includes_default"
11343 if test "x$ac_cv_header_X11_Xft_Xft_h" = xyes
; then :
11344 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for XftFontOpen in -lXft" >&5
11345 $as_echo_n "checking for XftFontOpen in -lXft... " >&6; }
11346 if ${ac_cv_lib_Xft_XftFontOpen+:} false
; then :
11347 $as_echo_n "(cached) " >&6
11349 ac_check_lib_save_LIBS
=$LIBS
11350 LIBS
="-lXft $XFT_LIBS $LIBS"
11351 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
11352 /* end confdefs.h. */
11354 /* Override any GCC internal prototype to avoid an error.
11355 Use char because int might match the return type of a GCC
11356 builtin and then its argument prototype would still apply. */
11360 char XftFontOpen ();
11364 return XftFontOpen ();
11369 if ac_fn_c_try_link
"$LINENO"; then :
11370 ac_cv_lib_Xft_XftFontOpen
=yes
11372 ac_cv_lib_Xft_XftFontOpen
=no
11374 rm -f core conftest.err conftest.
$ac_objext \
11375 conftest
$ac_exeext conftest.
$ac_ext
11376 LIBS
=$ac_check_lib_save_LIBS
11378 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_Xft_XftFontOpen" >&5
11379 $as_echo "$ac_cv_lib_Xft_XftFontOpen" >&6; }
11380 if test "x$ac_cv_lib_Xft_XftFontOpen" = xyes
; then :
11388 if test "${HAVE_XFT}" = "yes"; then
11390 $as_echo "#define HAVE_XFT 1" >>confdefs.h
11393 C_SWITCH_X_SITE
="$C_SWITCH_X_SITE $XFT_CFLAGS"
11395 CPPFLAGS
="$OLD_CPPFLAGS"
11396 CFLAGS
="$OLD_CFLAGS"
11398 fi # "${HAVE_XFT}" = "yes"
11399 fi # "$HAVE_XFT" != no
11400 fi # "x${with_xft}" != "xno"
11402 if test "$HAVE_XFT" != "yes"; then
11406 ## We used to allow building with FreeType and without Xft.
11407 ## However, the ftx font backend driver is not in good shape.
11408 HAVE_FREETYPE
=$HAVE_XFT
11411 if test "${HAVE_FREETYPE}" = "yes"; then
11413 $as_echo "#define HAVE_FREETYPE 1" >>confdefs.h
11415 if test "${with_libotf}" != "no"; then
11419 # Extract the first word of "pkg-config", so it can be a program name with args.
11420 set dummy pkg-config
; ac_word
=$2
11421 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11422 $as_echo_n "checking for $ac_word... " >&6; }
11423 if ${ac_cv_path_PKG_CONFIG+:} false
; then :
11424 $as_echo_n "(cached) " >&6
11426 case $PKG_CONFIG in
11428 ac_cv_path_PKG_CONFIG
="$PKG_CONFIG" # Let the user override the test with a path.
11431 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
11432 for as_dir
in $PATH
11435 test -z "$as_dir" && as_dir
=.
11436 for ac_exec_ext
in '' $ac_executable_extensions; do
11437 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11438 ac_cv_path_PKG_CONFIG
="$as_dir/$ac_word$ac_exec_ext"
11439 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11446 test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG
="no"
11450 PKG_CONFIG
=$ac_cv_path_PKG_CONFIG
11451 if test -n "$PKG_CONFIG"; then
11452 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5
11453 $as_echo "$PKG_CONFIG" >&6; }
11455 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11456 $as_echo "no" >&6; }
11461 if test "$PKG_CONFIG" = "no" ; then
11464 PKG_CONFIG_MIN_VERSION
=0.9.0
11465 if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
11466 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libotf" >&5
11467 $as_echo_n "checking for libotf... " >&6; }
11469 if $PKG_CONFIG --exists "libotf" 2>&5; then
11470 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11471 $as_echo "yes" >&6; }
11474 { $as_echo "$as_me:${as_lineno-$LINENO}: checking LIBOTF_CFLAGS" >&5
11475 $as_echo_n "checking LIBOTF_CFLAGS... " >&6; }
11476 LIBOTF_CFLAGS
=`$PKG_CONFIG --cflags "libotf"|sed -e 's,///*,/,g'`
11477 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIBOTF_CFLAGS" >&5
11478 $as_echo "$LIBOTF_CFLAGS" >&6; }
11480 { $as_echo "$as_me:${as_lineno-$LINENO}: checking LIBOTF_LIBS" >&5
11481 $as_echo_n "checking LIBOTF_LIBS... " >&6; }
11482 LIBOTF_LIBS
=`$PKG_CONFIG --libs "libotf"|sed -e 's,///*,/,g'`
11483 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIBOTF_LIBS" >&5
11484 $as_echo "$LIBOTF_LIBS" >&6; }
11486 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11487 $as_echo "no" >&6; }
11490 ## If we have a custom action on failure, don't print errors, but
11491 ## do set a variable so people can do so.
11492 LIBOTF_PKG_ERRORS
=`$PKG_CONFIG --errors-to-stdout --print-errors "libotf"`
11499 echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
11500 echo "*** See http://www.freedesktop.org/software/pkgconfig"
11504 if test $succeeded = yes; then
11510 if test "$HAVE_LIBOTF" = "yes"; then
11512 $as_echo "#define HAVE_LIBOTF 1" >>confdefs.h
11514 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for OTF_get_variation_glyphs in -lotf" >&5
11515 $as_echo_n "checking for OTF_get_variation_glyphs in -lotf... " >&6; }
11516 if ${ac_cv_lib_otf_OTF_get_variation_glyphs+:} false
; then :
11517 $as_echo_n "(cached) " >&6
11519 ac_check_lib_save_LIBS
=$LIBS
11521 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
11522 /* end confdefs.h. */
11524 /* Override any GCC internal prototype to avoid an error.
11525 Use char because int might match the return type of a GCC
11526 builtin and then its argument prototype would still apply. */
11530 char OTF_get_variation_glyphs ();
11534 return OTF_get_variation_glyphs ();
11539 if ac_fn_c_try_link
"$LINENO"; then :
11540 ac_cv_lib_otf_OTF_get_variation_glyphs
=yes
11542 ac_cv_lib_otf_OTF_get_variation_glyphs
=no
11544 rm -f core conftest.err conftest.
$ac_objext \
11545 conftest
$ac_exeext conftest.
$ac_ext
11546 LIBS
=$ac_check_lib_save_LIBS
11548 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_otf_OTF_get_variation_glyphs" >&5
11549 $as_echo "$ac_cv_lib_otf_OTF_get_variation_glyphs" >&6; }
11550 if test "x$ac_cv_lib_otf_OTF_get_variation_glyphs" = xyes
; then :
11551 HAVE_OTF_GET_VARIATION_GLYPHS
=yes
11553 HAVE_OTF_GET_VARIATION_GLYPHS
=no
11556 if test "${HAVE_OTF_GET_VARIATION_GLYPHS}" = "yes"; then
11558 $as_echo "#define HAVE_OTF_GET_VARIATION_GLYPHS 1" >>confdefs.h
11566 if test "${HAVE_LIBOTF}" = yes; then
11567 if test "${with_m17n_flt}" != "no"; then
11571 # Extract the first word of "pkg-config", so it can be a program name with args.
11572 set dummy pkg-config
; ac_word
=$2
11573 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11574 $as_echo_n "checking for $ac_word... " >&6; }
11575 if ${ac_cv_path_PKG_CONFIG+:} false
; then :
11576 $as_echo_n "(cached) " >&6
11578 case $PKG_CONFIG in
11580 ac_cv_path_PKG_CONFIG
="$PKG_CONFIG" # Let the user override the test with a path.
11583 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
11584 for as_dir
in $PATH
11587 test -z "$as_dir" && as_dir
=.
11588 for ac_exec_ext
in '' $ac_executable_extensions; do
11589 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11590 ac_cv_path_PKG_CONFIG
="$as_dir/$ac_word$ac_exec_ext"
11591 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11598 test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG
="no"
11602 PKG_CONFIG
=$ac_cv_path_PKG_CONFIG
11603 if test -n "$PKG_CONFIG"; then
11604 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5
11605 $as_echo "$PKG_CONFIG" >&6; }
11607 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11608 $as_echo "no" >&6; }
11613 if test "$PKG_CONFIG" = "no" ; then
11616 PKG_CONFIG_MIN_VERSION
=0.9.0
11617 if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
11618 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for m17n-flt" >&5
11619 $as_echo_n "checking for m17n-flt... " >&6; }
11621 if $PKG_CONFIG --exists "m17n-flt" 2>&5; then
11622 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11623 $as_echo "yes" >&6; }
11626 { $as_echo "$as_me:${as_lineno-$LINENO}: checking M17N_FLT_CFLAGS" >&5
11627 $as_echo_n "checking M17N_FLT_CFLAGS... " >&6; }
11628 M17N_FLT_CFLAGS
=`$PKG_CONFIG --cflags "m17n-flt"|sed -e 's,///*,/,g'`
11629 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $M17N_FLT_CFLAGS" >&5
11630 $as_echo "$M17N_FLT_CFLAGS" >&6; }
11632 { $as_echo "$as_me:${as_lineno-$LINENO}: checking M17N_FLT_LIBS" >&5
11633 $as_echo_n "checking M17N_FLT_LIBS... " >&6; }
11634 M17N_FLT_LIBS
=`$PKG_CONFIG --libs "m17n-flt"|sed -e 's,///*,/,g'`
11635 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $M17N_FLT_LIBS" >&5
11636 $as_echo "$M17N_FLT_LIBS" >&6; }
11638 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11639 $as_echo "no" >&6; }
11642 ## If we have a custom action on failure, don't print errors, but
11643 ## do set a variable so people can do so.
11644 M17N_FLT_PKG_ERRORS
=`$PKG_CONFIG --errors-to-stdout --print-errors "m17n-flt"`
11651 echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
11652 echo "*** See http://www.freedesktop.org/software/pkgconfig"
11656 if test $succeeded = yes; then
11662 if test "$HAVE_M17N_FLT" = "yes"; then
11664 $as_echo "#define HAVE_M17N_FLT 1" >>confdefs.h
11676 ### End of font-backend (under X11) section.
11687 ### Use -lXpm if available, unless `--with-xpm=no'.
11690 if test "${HAVE_X11}" = "yes"; then
11691 if test "${with_xpm}" != "no"; then
11692 ac_fn_c_check_header_mongrel
"$LINENO" "X11/xpm.h" "ac_cv_header_X11_xpm_h" "$ac_includes_default"
11693 if test "x$ac_cv_header_X11_xpm_h" = xyes
; then :
11694 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for XpmReadFileToPixmap in -lXpm" >&5
11695 $as_echo_n "checking for XpmReadFileToPixmap in -lXpm... " >&6; }
11696 if ${ac_cv_lib_Xpm_XpmReadFileToPixmap+:} false
; then :
11697 $as_echo_n "(cached) " >&6
11699 ac_check_lib_save_LIBS
=$LIBS
11700 LIBS
="-lXpm -lX11 $LIBS"
11701 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
11702 /* end confdefs.h. */
11704 /* Override any GCC internal prototype to avoid an error.
11705 Use char because int might match the return type of a GCC
11706 builtin and then its argument prototype would still apply. */
11710 char XpmReadFileToPixmap ();
11714 return XpmReadFileToPixmap ();
11719 if ac_fn_c_try_link
"$LINENO"; then :
11720 ac_cv_lib_Xpm_XpmReadFileToPixmap
=yes
11722 ac_cv_lib_Xpm_XpmReadFileToPixmap
=no
11724 rm -f core conftest.err conftest.
$ac_objext \
11725 conftest
$ac_exeext conftest.
$ac_ext
11726 LIBS
=$ac_check_lib_save_LIBS
11728 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_Xpm_XpmReadFileToPixmap" >&5
11729 $as_echo "$ac_cv_lib_Xpm_XpmReadFileToPixmap" >&6; }
11730 if test "x$ac_cv_lib_Xpm_XpmReadFileToPixmap" = xyes
; then :
11737 if test "${HAVE_XPM}" = "yes"; then
11738 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for XpmReturnAllocPixels preprocessor define" >&5
11739 $as_echo_n "checking for XpmReturnAllocPixels preprocessor define... " >&6; }
11740 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
11741 /* end confdefs.h. */
11742 #include "X11/xpm.h"
11743 #ifndef XpmReturnAllocPixels
11744 no_return_alloc_pixels
11748 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
11749 $EGREP "no_return_alloc_pixels" >/dev
/null
2>&1; then :
11757 if test "${HAVE_XPM}" = "yes"; then
11758 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11759 $as_echo "yes" >&6; }
11761 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11762 $as_echo "no" >&6; }
11767 if test "${HAVE_XPM}" = "yes"; then
11769 $as_echo "#define HAVE_XPM 1" >>confdefs.h
11776 ### Use -ljpeg if available, unless `--with-jpeg=no'.
11779 if test "${HAVE_X11}" = "yes"; then
11780 if test "${with_jpeg}" != "no"; then
11781 ac_fn_c_check_header_mongrel
"$LINENO" "jerror.h" "ac_cv_header_jerror_h" "$ac_includes_default"
11782 if test "x$ac_cv_header_jerror_h" = xyes
; then :
11783 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for jpeg_destroy_compress in -ljpeg" >&5
11784 $as_echo_n "checking for jpeg_destroy_compress in -ljpeg... " >&6; }
11785 if ${ac_cv_lib_jpeg_jpeg_destroy_compress+:} false
; then :
11786 $as_echo_n "(cached) " >&6
11788 ac_check_lib_save_LIBS
=$LIBS
11789 LIBS
="-ljpeg $LIBS"
11790 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
11791 /* end confdefs.h. */
11793 /* Override any GCC internal prototype to avoid an error.
11794 Use char because int might match the return type of a GCC
11795 builtin and then its argument prototype would still apply. */
11799 char jpeg_destroy_compress ();
11803 return jpeg_destroy_compress ();
11808 if ac_fn_c_try_link
"$LINENO"; then :
11809 ac_cv_lib_jpeg_jpeg_destroy_compress
=yes
11811 ac_cv_lib_jpeg_jpeg_destroy_compress
=no
11813 rm -f core conftest.err conftest.
$ac_objext \
11814 conftest
$ac_exeext conftest.
$ac_ext
11815 LIBS
=$ac_check_lib_save_LIBS
11817 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_jpeg_jpeg_destroy_compress" >&5
11818 $as_echo "$ac_cv_lib_jpeg_jpeg_destroy_compress" >&6; }
11819 if test "x$ac_cv_lib_jpeg_jpeg_destroy_compress" = xyes
; then :
11828 if test "${HAVE_JPEG}" = "yes"; then
11829 $as_echo "#define HAVE_JPEG 1" >>confdefs.h
11831 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
11832 /* end confdefs.h. */
11833 #include <jpeglib.h>
11834 version=JPEG_LIB_VERSION
11837 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
11838 $EGREP "version= *(6[2-9]|[7-9][0-9])" >/dev
/null
2>&1; then :
11839 $as_echo "#define HAVE_JPEG 1" >>confdefs.h
11842 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: libjpeg found, but not version 6b or later" >&5
11843 $as_echo "$as_me: WARNING: libjpeg found, but not version 6b or later" >&2;}
11849 if test "${HAVE_JPEG}" = "yes"; then
11855 ### Use -lpng if available, unless `--with-png=no'.
11858 if test "${HAVE_X11}" = "yes"; then
11859 if test "${with_png}" != "no"; then
11860 # Debian unstable as of July 2003 has multiple libpngs, and puts png.h
11861 # in /usr/include/libpng.
11862 for ac_header
in png.h libpng
/png.h
11864 as_ac_Header
=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
11865 ac_fn_c_check_header_mongrel
"$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
11866 if eval test \"x\$
"$as_ac_Header"\" = x
"yes"; then :
11867 cat >>confdefs.h
<<_ACEOF
11868 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
11875 if test "$ac_cv_header_png_h" = yes ||
test "$ac_cv_header_libpng_png_h" = yes ; then
11876 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for png_get_channels in -lpng" >&5
11877 $as_echo_n "checking for png_get_channels in -lpng... " >&6; }
11878 if ${ac_cv_lib_png_png_get_channels+:} false
; then :
11879 $as_echo_n "(cached) " >&6
11881 ac_check_lib_save_LIBS
=$LIBS
11882 LIBS
="-lpng -lz -lm $LIBS"
11883 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
11884 /* end confdefs.h. */
11886 /* Override any GCC internal prototype to avoid an error.
11887 Use char because int might match the return type of a GCC
11888 builtin and then its argument prototype would still apply. */
11892 char png_get_channels ();
11896 return png_get_channels ();
11901 if ac_fn_c_try_link
"$LINENO"; then :
11902 ac_cv_lib_png_png_get_channels
=yes
11904 ac_cv_lib_png_png_get_channels
=no
11906 rm -f core conftest.err conftest.
$ac_objext \
11907 conftest
$ac_exeext conftest.
$ac_ext
11908 LIBS
=$ac_check_lib_save_LIBS
11910 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_png_png_get_channels" >&5
11911 $as_echo "$ac_cv_lib_png_png_get_channels" >&6; }
11912 if test "x$ac_cv_lib_png_png_get_channels" = xyes
; then :
11919 if test "${HAVE_PNG}" = "yes"; then
11921 $as_echo "#define HAVE_PNG 1" >>confdefs.h
11923 LIBPNG
="-lpng -lz -lm"
11928 ### Use -ltiff if available, unless `--with-tiff=no'.
11931 if test "${HAVE_X11}" = "yes"; then
11932 if test "${with_tiff}" != "no"; then
11933 ac_fn_c_check_header_mongrel
"$LINENO" "tiffio.h" "ac_cv_header_tiffio_h" "$ac_includes_default"
11934 if test "x$ac_cv_header_tiffio_h" = xyes
; then :
11936 # At least one tiff package requires the jpeg library.
11937 if test "${HAVE_JPEG}" = yes; then tifflibs
="-ljpeg $tifflibs"; fi
11938 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for TIFFGetVersion in -ltiff" >&5
11939 $as_echo_n "checking for TIFFGetVersion in -ltiff... " >&6; }
11940 if ${ac_cv_lib_tiff_TIFFGetVersion+:} false
; then :
11941 $as_echo_n "(cached) " >&6
11943 ac_check_lib_save_LIBS
=$LIBS
11944 LIBS
="-ltiff $tifflibs $LIBS"
11945 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
11946 /* end confdefs.h. */
11948 /* Override any GCC internal prototype to avoid an error.
11949 Use char because int might match the return type of a GCC
11950 builtin and then its argument prototype would still apply. */
11954 char TIFFGetVersion ();
11958 return TIFFGetVersion ();
11963 if ac_fn_c_try_link
"$LINENO"; then :
11964 ac_cv_lib_tiff_TIFFGetVersion
=yes
11966 ac_cv_lib_tiff_TIFFGetVersion
=no
11968 rm -f core conftest.err conftest.
$ac_objext \
11969 conftest
$ac_exeext conftest.
$ac_ext
11970 LIBS
=$ac_check_lib_save_LIBS
11972 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_tiff_TIFFGetVersion" >&5
11973 $as_echo "$ac_cv_lib_tiff_TIFFGetVersion" >&6; }
11974 if test "x$ac_cv_lib_tiff_TIFFGetVersion" = xyes
; then :
11983 if test "${HAVE_TIFF}" = "yes"; then
11985 $as_echo "#define HAVE_TIFF 1" >>confdefs.h
11992 ### Use -lgif or -lungif if available, unless `--with-gif=no'.
11995 if test "${HAVE_X11}" = "yes" && test "${with_gif}" != "no"; then
11996 ac_fn_c_check_header_mongrel
"$LINENO" "gif_lib.h" "ac_cv_header_gif_lib_h" "$ac_includes_default"
11997 if test "x$ac_cv_header_gif_lib_h" = xyes
; then :
11998 # EGifPutExtensionLast only exists from version libungif-4.1.0b1.
11999 # Earlier versions can crash Emacs.
12000 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for EGifPutExtensionLast in -lgif" >&5
12001 $as_echo_n "checking for EGifPutExtensionLast in -lgif... " >&6; }
12002 if ${ac_cv_lib_gif_EGifPutExtensionLast+:} false
; then :
12003 $as_echo_n "(cached) " >&6
12005 ac_check_lib_save_LIBS
=$LIBS
12007 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
12008 /* end confdefs.h. */
12010 /* Override any GCC internal prototype to avoid an error.
12011 Use char because int might match the return type of a GCC
12012 builtin and then its argument prototype would still apply. */
12016 char EGifPutExtensionLast ();
12020 return EGifPutExtensionLast ();
12025 if ac_fn_c_try_link
"$LINENO"; then :
12026 ac_cv_lib_gif_EGifPutExtensionLast
=yes
12028 ac_cv_lib_gif_EGifPutExtensionLast
=no
12030 rm -f core conftest.err conftest.
$ac_objext \
12031 conftest
$ac_exeext conftest.
$ac_ext
12032 LIBS
=$ac_check_lib_save_LIBS
12034 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_gif_EGifPutExtensionLast" >&5
12035 $as_echo "$ac_cv_lib_gif_EGifPutExtensionLast" >&6; }
12036 if test "x$ac_cv_lib_gif_EGifPutExtensionLast" = xyes
; then :
12046 if test "$HAVE_GIF" = yes; then
12048 elif test "$HAVE_GIF" = maybe
; then
12049 # If gif_lib.h but no libgif, try libungif.
12050 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for EGifPutExtensionLast in -lungif" >&5
12051 $as_echo_n "checking for EGifPutExtensionLast in -lungif... " >&6; }
12052 if ${ac_cv_lib_ungif_EGifPutExtensionLast+:} false
; then :
12053 $as_echo_n "(cached) " >&6
12055 ac_check_lib_save_LIBS
=$LIBS
12056 LIBS
="-lungif $LIBS"
12057 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
12058 /* end confdefs.h. */
12060 /* Override any GCC internal prototype to avoid an error.
12061 Use char because int might match the return type of a GCC
12062 builtin and then its argument prototype would still apply. */
12066 char EGifPutExtensionLast ();
12070 return EGifPutExtensionLast ();
12075 if ac_fn_c_try_link
"$LINENO"; then :
12076 ac_cv_lib_ungif_EGifPutExtensionLast
=yes
12078 ac_cv_lib_ungif_EGifPutExtensionLast
=no
12080 rm -f core conftest.err conftest.
$ac_objext \
12081 conftest
$ac_exeext conftest.
$ac_ext
12082 LIBS
=$ac_check_lib_save_LIBS
12084 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_ungif_EGifPutExtensionLast" >&5
12085 $as_echo "$ac_cv_lib_ungif_EGifPutExtensionLast" >&6; }
12086 if test "x$ac_cv_lib_ungif_EGifPutExtensionLast" = xyes
; then :
12092 test "$HAVE_GIF" = yes && LIBGIF
=-lungif
12095 if test "${HAVE_GIF}" = "yes"; then
12097 $as_echo "#define HAVE_GIF 1" >>confdefs.h
12103 if test "${HAVE_X11}" = "yes"; then
12106 test "${with_xpm}" != "no" && test "${HAVE_XPM}" != "yes" &&
12107 MISSING
="libXpm" && WITH_NO
="--with-xpm=no"
12108 test "${with_jpeg}" != "no" && test "${HAVE_JPEG}" != "yes" &&
12109 MISSING
="$MISSING libjpeg" && WITH_NO
="$WITH_NO --with-jpeg=no"
12110 test "${with_png}" != "no" && test "${HAVE_PNG}" != "yes" &&
12111 MISSING
="$MISSING libpng" && WITH_NO
="$WITH_NO --with-png=no"
12112 test "${with_gif}" != "no" && test "${HAVE_GIF}" != "yes" &&
12113 MISSING
="$MISSING libgif/libungif" && WITH_NO
="$WITH_NO --with-gif=no"
12114 test "${with_tiff}" != "no" && test "${HAVE_TIFF}" != "yes" &&
12115 MISSING
="$MISSING libtiff" && WITH_NO
="$WITH_NO --with-tiff=no"
12117 if test "X${MISSING}" != X
; then
12118 as_fn_error $?
"The following required libraries were not found:
12120 Maybe some development libraries/packages are missing?
12121 If you don't want to link with them give
12123 as options to configure" "$LINENO" 5
12127 ### Use -lgpm if available, unless `--with-gpm=no'.
12131 if test "${with_gpm}" != "no"; then
12132 ac_fn_c_check_header_mongrel
"$LINENO" "gpm.h" "ac_cv_header_gpm_h" "$ac_includes_default"
12133 if test "x$ac_cv_header_gpm_h" = xyes
; then :
12134 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Gpm_Open in -lgpm" >&5
12135 $as_echo_n "checking for Gpm_Open in -lgpm... " >&6; }
12136 if ${ac_cv_lib_gpm_Gpm_Open+:} false
; then :
12137 $as_echo_n "(cached) " >&6
12139 ac_check_lib_save_LIBS
=$LIBS
12141 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
12142 /* end confdefs.h. */
12144 /* Override any GCC internal prototype to avoid an error.
12145 Use char because int might match the return type of a GCC
12146 builtin and then its argument prototype would still apply. */
12154 return Gpm_Open ();
12159 if ac_fn_c_try_link
"$LINENO"; then :
12160 ac_cv_lib_gpm_Gpm_Open
=yes
12162 ac_cv_lib_gpm_Gpm_Open
=no
12164 rm -f core conftest.err conftest.
$ac_objext \
12165 conftest
$ac_exeext conftest.
$ac_ext
12166 LIBS
=$ac_check_lib_save_LIBS
12168 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_gpm_Gpm_Open" >&5
12169 $as_echo "$ac_cv_lib_gpm_Gpm_Open" >&6; }
12170 if test "x$ac_cv_lib_gpm_Gpm_Open" = xyes
; then :
12178 if test "${HAVE_GPM}" = "yes"; then
12180 $as_echo "#define HAVE_GPM 1" >>confdefs.h
12183 ## May be reset below.
12184 MOUSE_SUPPORT
="\$(GPM_MOUSE_SUPPORT)"
12189 ac_fn_c_check_header_mongrel
"$LINENO" "malloc/malloc.h" "ac_cv_header_malloc_malloc_h" "$ac_includes_default"
12190 if test "x$ac_cv_header_malloc_malloc_h" = xyes
; then :
12192 $as_echo "#define HAVE_MALLOC_MALLOC_H 1" >>confdefs.h
12199 ### Use NeXTstep API to implement GUI.
12200 if test "${HAVE_NS}" = "yes"; then
12202 $as_echo "#define HAVE_NS 1" >>confdefs.h
12204 if test "${NS_IMPL_COCOA}" = "yes"; then
12206 $as_echo "#define NS_IMPL_COCOA 1" >>confdefs.h
12210 if test "${NS_IMPL_GNUSTEP}" = "yes"; then
12212 $as_echo "#define NS_IMPL_GNUSTEP 1" >>confdefs.h
12214 # See also .m.o rule in Makefile.in */
12215 # FIXME: are all these flags really needed? Document here why. */
12216 C_SWITCH_X_SYSTEM
="-D_REENTRANT -fPIC -fno-strict-aliasing"
12217 GNU_OBJC_CFLAGS
="-fgnu-runtime -Wno-import -fconstant-string-class=NSConstantString -DGNUSTEP_BASE_LIBRARY=1 -DGNU_GUI_LIBRARY=1 -DGNU_RUNTIME=1 -DGSWARN -DGSDIAGNOSE"
12219 if test "${NS_HAVE_NSINTEGER}" = "yes"; then
12221 $as_echo "#define NS_HAVE_NSINTEGER 1" >>confdefs.h
12224 # We also have mouse menus.
12230 ### Use session management (-lSM -lICE) if available
12233 if test "${HAVE_X11}" = "yes"; then
12234 ac_fn_c_check_header_mongrel
"$LINENO" "X11/SM/SMlib.h" "ac_cv_header_X11_SM_SMlib_h" "$ac_includes_default"
12235 if test "x$ac_cv_header_X11_SM_SMlib_h" = xyes
; then :
12236 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for SmcOpenConnection in -lSM" >&5
12237 $as_echo_n "checking for SmcOpenConnection in -lSM... " >&6; }
12238 if ${ac_cv_lib_SM_SmcOpenConnection+:} false
; then :
12239 $as_echo_n "(cached) " >&6
12241 ac_check_lib_save_LIBS
=$LIBS
12242 LIBS
="-lSM -lICE $LIBS"
12243 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
12244 /* end confdefs.h. */
12246 /* Override any GCC internal prototype to avoid an error.
12247 Use char because int might match the return type of a GCC
12248 builtin and then its argument prototype would still apply. */
12252 char SmcOpenConnection ();
12256 return SmcOpenConnection ();
12261 if ac_fn_c_try_link
"$LINENO"; then :
12262 ac_cv_lib_SM_SmcOpenConnection
=yes
12264 ac_cv_lib_SM_SmcOpenConnection
=no
12266 rm -f core conftest.err conftest.
$ac_objext \
12267 conftest
$ac_exeext conftest.
$ac_ext
12268 LIBS
=$ac_check_lib_save_LIBS
12270 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_SM_SmcOpenConnection" >&5
12271 $as_echo "$ac_cv_lib_SM_SmcOpenConnection" >&6; }
12272 if test "x$ac_cv_lib_SM_SmcOpenConnection" = xyes
; then :
12280 if test "${HAVE_X_SM}" = "yes"; then
12282 $as_echo "#define HAVE_X_SM 1" >>confdefs.h
12284 LIBXSM
="-lSM -lICE"
12287 *) LIBS
="$LIBXSM $LIBS" ;;
12293 ### Use libxml (-lxml2) if available
12294 if test "${with_xml2}" != "no"; then
12295 ### I'm not sure what the version number should be, so I just guessed.
12299 # Extract the first word of "pkg-config", so it can be a program name with args.
12300 set dummy pkg-config
; ac_word
=$2
12301 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12302 $as_echo_n "checking for $ac_word... " >&6; }
12303 if ${ac_cv_path_PKG_CONFIG+:} false
; then :
12304 $as_echo_n "(cached) " >&6
12306 case $PKG_CONFIG in
12308 ac_cv_path_PKG_CONFIG
="$PKG_CONFIG" # Let the user override the test with a path.
12311 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
12312 for as_dir
in $PATH
12315 test -z "$as_dir" && as_dir
=.
12316 for ac_exec_ext
in '' $ac_executable_extensions; do
12317 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
12318 ac_cv_path_PKG_CONFIG
="$as_dir/$ac_word$ac_exec_ext"
12319 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12326 test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG
="no"
12330 PKG_CONFIG
=$ac_cv_path_PKG_CONFIG
12331 if test -n "$PKG_CONFIG"; then
12332 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5
12333 $as_echo "$PKG_CONFIG" >&6; }
12335 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12336 $as_echo "no" >&6; }
12341 if test "$PKG_CONFIG" = "no" ; then
12344 PKG_CONFIG_MIN_VERSION
=0.9.0
12345 if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
12346 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libxml-2.0 > 2.6.17" >&5
12347 $as_echo_n "checking for libxml-2.0 > 2.6.17... " >&6; }
12349 if $PKG_CONFIG --exists "libxml-2.0 > 2.6.17" 2>&5; then
12350 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
12351 $as_echo "yes" >&6; }
12354 { $as_echo "$as_me:${as_lineno-$LINENO}: checking LIBXML2_CFLAGS" >&5
12355 $as_echo_n "checking LIBXML2_CFLAGS... " >&6; }
12356 LIBXML2_CFLAGS
=`$PKG_CONFIG --cflags "libxml-2.0 > 2.6.17"|sed -e 's,///*,/,g'`
12357 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIBXML2_CFLAGS" >&5
12358 $as_echo "$LIBXML2_CFLAGS" >&6; }
12360 { $as_echo "$as_me:${as_lineno-$LINENO}: checking LIBXML2_LIBS" >&5
12361 $as_echo_n "checking LIBXML2_LIBS... " >&6; }
12362 LIBXML2_LIBS
=`$PKG_CONFIG --libs "libxml-2.0 > 2.6.17"|sed -e 's,///*,/,g'`
12363 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIBXML2_LIBS" >&5
12364 $as_echo "$LIBXML2_LIBS" >&6; }
12366 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12367 $as_echo "no" >&6; }
12370 ## If we have a custom action on failure, don't print errors, but
12371 ## do set a variable so people can do so.
12372 LIBXML2_PKG_ERRORS
=`$PKG_CONFIG --errors-to-stdout --print-errors "libxml-2.0 > 2.6.17"`
12379 echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
12380 echo "*** See http://www.freedesktop.org/software/pkgconfig"
12384 if test $succeeded = yes; then
12390 if test "${HAVE_LIBXML2}" = "yes"; then
12391 LIBS
="$LIBXML2_LIBS $LIBS"
12392 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for htmlReadMemory in -lxml2" >&5
12393 $as_echo_n "checking for htmlReadMemory in -lxml2... " >&6; }
12394 if ${ac_cv_lib_xml2_htmlReadMemory+:} false
; then :
12395 $as_echo_n "(cached) " >&6
12397 ac_check_lib_save_LIBS
=$LIBS
12398 LIBS
="-lxml2 $LIBS"
12399 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
12400 /* end confdefs.h. */
12402 /* Override any GCC internal prototype to avoid an error.
12403 Use char because int might match the return type of a GCC
12404 builtin and then its argument prototype would still apply. */
12408 char htmlReadMemory ();
12412 return htmlReadMemory ();
12417 if ac_fn_c_try_link
"$LINENO"; then :
12418 ac_cv_lib_xml2_htmlReadMemory
=yes
12420 ac_cv_lib_xml2_htmlReadMemory
=no
12422 rm -f core conftest.err conftest.
$ac_objext \
12423 conftest
$ac_exeext conftest.
$ac_ext
12424 LIBS
=$ac_check_lib_save_LIBS
12426 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_xml2_htmlReadMemory" >&5
12427 $as_echo "$ac_cv_lib_xml2_htmlReadMemory" >&6; }
12428 if test "x$ac_cv_lib_xml2_htmlReadMemory" = xyes
; then :
12434 if test "${HAVE_LIBXML2}" = "yes"; then
12436 $as_echo "#define HAVE_LIBXML2 1" >>confdefs.h
12447 # If netdb.h doesn't declare h_errno, we must declare it by hand.
12448 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether netdb declares h_errno" >&5
12449 $as_echo_n "checking whether netdb declares h_errno... " >&6; }
12450 if ${emacs_cv_netdb_declares_h_errno+:} false
; then :
12451 $as_echo_n "(cached) " >&6
12453 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
12454 /* end confdefs.h. */
12464 if ac_fn_c_try_link
"$LINENO"; then :
12465 emacs_cv_netdb_declares_h_errno
=yes
12467 emacs_cv_netdb_declares_h_errno
=no
12469 rm -f core conftest.err conftest.
$ac_objext \
12470 conftest
$ac_exeext conftest.
$ac_ext
12472 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $emacs_cv_netdb_declares_h_errno" >&5
12473 $as_echo "$emacs_cv_netdb_declares_h_errno" >&6; }
12474 if test $emacs_cv_netdb_declares_h_errno = yes; then
12476 $as_echo "#define HAVE_H_ERRNO 1" >>confdefs.h
12480 ac_fn_c_check_type
"$LINENO" "size_t" "ac_cv_type_size_t" "$ac_includes_default"
12481 if test "x$ac_cv_type_size_t" = xyes
; then :
12485 cat >>confdefs.h
<<_ACEOF
12486 #define size_t unsigned int
12491 # The Ultrix 4.2 mips builtin alloca declared by alloca.h only works
12492 # for constant arguments. Useless!
12493 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working alloca.h" >&5
12494 $as_echo_n "checking for working alloca.h... " >&6; }
12495 if ${ac_cv_working_alloca_h+:} false
; then :
12496 $as_echo_n "(cached) " >&6
12498 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
12499 /* end confdefs.h. */
12500 #include <alloca.h>
12504 char *p = (char *) alloca (2 * sizeof (int));
12510 if ac_fn_c_try_link
"$LINENO"; then :
12511 ac_cv_working_alloca_h
=yes
12513 ac_cv_working_alloca_h
=no
12515 rm -f core conftest.err conftest.
$ac_objext \
12516 conftest
$ac_exeext conftest.
$ac_ext
12518 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_working_alloca_h" >&5
12519 $as_echo "$ac_cv_working_alloca_h" >&6; }
12520 if test $ac_cv_working_alloca_h = yes; then
12522 $as_echo "#define HAVE_ALLOCA_H 1" >>confdefs.h
12526 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for alloca" >&5
12527 $as_echo_n "checking for alloca... " >&6; }
12528 if ${ac_cv_func_alloca_works+:} false
; then :
12529 $as_echo_n "(cached) " >&6
12531 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
12532 /* end confdefs.h. */
12534 # define alloca __builtin_alloca
12537 # include <malloc.h>
12538 # define alloca _alloca
12540 # ifdef HAVE_ALLOCA_H
12541 # include <alloca.h>
12546 # ifndef alloca /* predefined by HP cc +Olibcalls */
12547 void *alloca (size_t);
12557 char *p = (char *) alloca (1);
12563 if ac_fn_c_try_link
"$LINENO"; then :
12564 ac_cv_func_alloca_works
=yes
12566 ac_cv_func_alloca_works
=no
12568 rm -f core conftest.err conftest.
$ac_objext \
12569 conftest
$ac_exeext conftest.
$ac_ext
12571 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_alloca_works" >&5
12572 $as_echo "$ac_cv_func_alloca_works" >&6; }
12574 if test $ac_cv_func_alloca_works = yes; then
12576 $as_echo "#define HAVE_ALLOCA 1" >>confdefs.h
12579 # The SVR3 libPW and SVR4 libucb both contain incompatible functions
12580 # that cause trouble. Some versions do not even contain alloca or
12581 # contain a buggy version. If you still want to use their alloca,
12582 # use ar to extract alloca.o from them instead of compiling alloca.c.
12584 ALLOCA
=\
${LIBOBJDIR}alloca.
$ac_objext
12586 $as_echo "#define C_ALLOCA 1" >>confdefs.h
12589 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether \`alloca.c' needs Cray hooks" >&5
12590 $as_echo_n "checking whether \`alloca.c' needs Cray hooks... " >&6; }
12591 if ${ac_cv_os_cray+:} false
; then :
12592 $as_echo_n "(cached) " >&6
12594 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
12595 /* end confdefs.h. */
12596 #if defined CRAY && ! defined CRAY2
12603 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
12604 $EGREP "webecray" >/dev
/null
2>&1; then :
12612 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_os_cray" >&5
12613 $as_echo "$ac_cv_os_cray" >&6; }
12614 if test $ac_cv_os_cray = yes; then
12615 for ac_func
in _getb67 GETB67 getb67
; do
12616 as_ac_var
=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
12617 ac_fn_c_check_func
"$LINENO" "$ac_func" "$as_ac_var"
12618 if eval test \"x\$
"$as_ac_var"\" = x
"yes"; then :
12620 cat >>confdefs.h
<<_ACEOF
12621 #define CRAY_STACKSEG_END $ac_func
12630 { $as_echo "$as_me:${as_lineno-$LINENO}: checking stack direction for C alloca" >&5
12631 $as_echo_n "checking stack direction for C alloca... " >&6; }
12632 if ${ac_cv_c_stack_direction+:} false
; then :
12633 $as_echo_n "(cached) " >&6
12635 if test "$cross_compiling" = yes; then :
12636 ac_cv_c_stack_direction
=0
12638 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
12639 /* end confdefs.h. */
12640 $ac_includes_default
12642 find_stack_direction ()
12644 static char *addr = 0;
12649 return find_stack_direction ();
12652 return (&dummy > addr) ? 1 : -1;
12658 return find_stack_direction () < 0;
12661 if ac_fn_c_try_run
"$LINENO"; then :
12662 ac_cv_c_stack_direction
=1
12664 ac_cv_c_stack_direction
=-1
12666 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
12667 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
12671 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_stack_direction" >&5
12672 $as_echo "$ac_cv_c_stack_direction" >&6; }
12673 cat >>confdefs.h
<<_ACEOF
12674 #define STACK_DIRECTION $ac_cv_c_stack_direction
12681 if test x
"$ac_cv_func_alloca_works" != xyes
; then
12682 as_fn_error $?
"a system implementation of alloca is required " "$LINENO" 5
12685 # fmod, logb, and frexp are found in -lm on most systems.
12686 # On HPUX 9.01, -lm does not contain logb, so check for sqrt.
12687 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sqrt in -lm" >&5
12688 $as_echo_n "checking for sqrt in -lm... " >&6; }
12689 if ${ac_cv_lib_m_sqrt+:} false
; then :
12690 $as_echo_n "(cached) " >&6
12692 ac_check_lib_save_LIBS
=$LIBS
12694 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
12695 /* end confdefs.h. */
12697 /* Override any GCC internal prototype to avoid an error.
12698 Use char because int might match the return type of a GCC
12699 builtin and then its argument prototype would still apply. */
12712 if ac_fn_c_try_link
"$LINENO"; then :
12713 ac_cv_lib_m_sqrt
=yes
12715 ac_cv_lib_m_sqrt
=no
12717 rm -f core conftest.err conftest.
$ac_objext \
12718 conftest
$ac_exeext conftest.
$ac_ext
12719 LIBS
=$ac_check_lib_save_LIBS
12721 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_m_sqrt" >&5
12722 $as_echo "$ac_cv_lib_m_sqrt" >&6; }
12723 if test "x$ac_cv_lib_m_sqrt" = xyes
; then :
12724 cat >>confdefs.h
<<_ACEOF
12725 #define HAVE_LIBM 1
12733 # Check for mail-locking functions in a "mail" library. Probably this should
12734 # have the same check as for liblockfile below.
12735 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for maillock in -lmail" >&5
12736 $as_echo_n "checking for maillock in -lmail... " >&6; }
12737 if ${ac_cv_lib_mail_maillock+:} false
; then :
12738 $as_echo_n "(cached) " >&6
12740 ac_check_lib_save_LIBS
=$LIBS
12741 LIBS
="-lmail $LIBS"
12742 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
12743 /* end confdefs.h. */
12745 /* Override any GCC internal prototype to avoid an error.
12746 Use char because int might match the return type of a GCC
12747 builtin and then its argument prototype would still apply. */
12755 return maillock ();
12760 if ac_fn_c_try_link
"$LINENO"; then :
12761 ac_cv_lib_mail_maillock
=yes
12763 ac_cv_lib_mail_maillock
=no
12765 rm -f core conftest.err conftest.
$ac_objext \
12766 conftest
$ac_exeext conftest.
$ac_ext
12767 LIBS
=$ac_check_lib_save_LIBS
12769 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_mail_maillock" >&5
12770 $as_echo "$ac_cv_lib_mail_maillock" >&6; }
12771 if test "x$ac_cv_lib_mail_maillock" = xyes
; then :
12777 if test $have_mail = yes; then
12779 LIBS
="$LIBS_MAIL $LIBS"
12781 $as_echo "#define HAVE_LIBMAIL 1" >>confdefs.h
12786 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for maillock in -llockfile" >&5
12787 $as_echo_n "checking for maillock in -llockfile... " >&6; }
12788 if ${ac_cv_lib_lockfile_maillock+:} false
; then :
12789 $as_echo_n "(cached) " >&6
12791 ac_check_lib_save_LIBS
=$LIBS
12792 LIBS
="-llockfile $LIBS"
12793 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
12794 /* end confdefs.h. */
12796 /* Override any GCC internal prototype to avoid an error.
12797 Use char because int might match the return type of a GCC
12798 builtin and then its argument prototype would still apply. */
12806 return maillock ();
12811 if ac_fn_c_try_link
"$LINENO"; then :
12812 ac_cv_lib_lockfile_maillock
=yes
12814 ac_cv_lib_lockfile_maillock
=no
12816 rm -f core conftest.err conftest.
$ac_objext \
12817 conftest
$ac_exeext conftest.
$ac_ext
12818 LIBS
=$ac_check_lib_save_LIBS
12820 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_lockfile_maillock" >&5
12821 $as_echo "$ac_cv_lib_lockfile_maillock" >&6; }
12822 if test "x$ac_cv_lib_lockfile_maillock" = xyes
; then :
12828 if test $have_lockfile = yes; then
12829 LIBS_MAIL
=-llockfile
12830 LIBS
="$LIBS_MAIL $LIBS"
12832 $as_echo "#define HAVE_LIBLOCKFILE 1" >>confdefs.h
12835 # If we have the shared liblockfile, assume we must use it for mail
12836 # locking (e.g. Debian). If we couldn't link against liblockfile
12837 # (no liblockfile.a installed), ensure that we don't need to.
12838 # Extract the first word of "liblockfile.so", so it can be a program name with args.
12839 set dummy liblockfile.so
; ac_word
=$2
12840 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12841 $as_echo_n "checking for $ac_word... " >&6; }
12842 if ${ac_cv_prog_liblockfile+:} false
; then :
12843 $as_echo_n "(cached) " >&6
12845 if test -n "$liblockfile"; then
12846 ac_cv_prog_liblockfile
="$liblockfile" # Let the user override the test.
12848 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
12849 as_dummy
="/usr/lib:/lib:/usr/local/lib:$LD_LIBRARY_PATH"
12850 for as_dir
in $as_dummy
12853 test -z "$as_dir" && as_dir
=.
12854 for ac_exec_ext
in '' $ac_executable_extensions; do
12855 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
12856 ac_cv_prog_liblockfile
="yes"
12857 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12864 test -z "$ac_cv_prog_liblockfile" && ac_cv_prog_liblockfile
="no"
12867 liblockfile
=$ac_cv_prog_liblockfile
12868 if test -n "$liblockfile"; then
12869 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $liblockfile" >&5
12870 $as_echo "$liblockfile" >&6; }
12872 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12873 $as_echo "no" >&6; }
12877 if test $ac_cv_prog_liblockfile = yes; then
12878 as_fn_error $?
"Shared liblockfile found but can't link against it.
12879 This probably means that movemail could lose mail.
12880 There may be a \`development' package to install containing liblockfile." "$LINENO" 5
12883 for ac_func
in touchlock
12885 ac_fn_c_check_func
"$LINENO" "touchlock" "ac_cv_func_touchlock"
12886 if test "x$ac_cv_func_touchlock" = xyes
; then :
12887 cat >>confdefs.h
<<_ACEOF
12888 #define HAVE_TOUCHLOCK 1
12894 for ac_header
in maillock.h
12896 ac_fn_c_check_header_mongrel
"$LINENO" "maillock.h" "ac_cv_header_maillock_h" "$ac_includes_default"
12897 if test "x$ac_cv_header_maillock_h" = xyes
; then :
12898 cat >>confdefs.h
<<_ACEOF
12899 #define HAVE_MAILLOCK_H 1
12908 ## Define MAIL_USE_FLOCK (or LOCKF) if the mailer uses flock (or lockf) to
12909 ## interlock access to the mail spool. The alternative is a lock file named
12910 ## /usr/spool/mail/$USER.lock.
12913 aix4-2
) mail_lock
="lockf" ;;
12915 gnu|freebsd|netbsd|openbsd|darwin|irix6-5
) mail_lock
="flock" ;;
12917 ## On GNU/Linux systems, both methods are used by various mail programs.
12918 ## I assume most people are using newer mailers that have heard of flock.
12919 ## Change this if you need to.
12920 ## Debian contains a patch which says: ``On Debian/GNU/Linux systems,
12921 ## configure gets the right answers, and that means *NOT* using flock.
12922 ## Using flock is guaranteed to be the wrong thing. See Debian Policy
12923 ## for details.'' and then uses `#ifdef DEBIAN'. Unfortunately the
12924 ## Debian maintainer hasn't provided a clean fix for Emacs.
12925 ## movemail.c will use `maillock' when MAILDIR, HAVE_LIBMAIL and
12926 ## HAVE_MAILLOCK_H are defined, so the following appears to be the
12927 ## correct logic. -- fx
12928 ## We must check for HAVE_LIBLOCKFILE too, as movemail does.
12929 ## liblockfile is a Free Software replacement for libmail, used on
12930 ## Debian systems and elsewhere. -rfr.
12933 if test $have_mail = yes ||
test $have_lockfile = yes; then
12934 test $ac_cv_header_maillock_h = yes && mail_lock
=no
12940 case "$mail_lock" in
12942 $as_echo "#define MAIL_USE_FLOCK 1" >>confdefs.h
12946 $as_echo "#define MAIL_USE_LOCKF 1" >>confdefs.h
12949 *) BLESSMAIL_TARGET
="need-blessmail" ;;
12954 for ac_func
in gethostname getdomainname dup2 \
12955 rename closedir mkdir
rmdir sysinfo getrusage get_current_dir_name \
12956 random lrand48 logb frexp fmod rint cbrt ftime setsid \
12957 strerror fpathconf
select euidaccess getpagesize tzset setlocale \
12958 utimes getrlimit setrlimit setpgid getcwd getwd shutdown getaddrinfo \
12959 __fpending mblen mbrlen mbsinit strsignal setitimer ualarm strchr strrchr \
12960 sendto recvfrom getsockopt setsockopt getsockname getpeername \
12961 gai_strerror mkstemp getline getdelim mremap memmove fsync sync \
12962 memset memcmp difftime memcpy mempcpy mblen mbrlen posix_memalign \
12963 cfmakeraw cfsetspeed isnan copysign __executable_start
12965 as_ac_var
=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
12966 ac_fn_c_check_func
"$LINENO" "$ac_func" "$as_ac_var"
12967 if eval test \"x\$
"$as_ac_var"\" = x
"yes"; then :
12968 cat >>confdefs.h
<<_ACEOF
12969 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
12976 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for __builtin_unwind_init" >&5
12977 $as_echo_n "checking for __builtin_unwind_init... " >&6; }
12978 if ${emacs_cv_func___builtin_unwind_init+:} false
; then :
12979 $as_echo_n "(cached) " >&6
12981 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
12982 /* end confdefs.h. */
12987 __builtin_unwind_init ();
12992 if ac_fn_c_try_link
"$LINENO"; then :
12993 emacs_cv_func___builtin_unwind_init
=yes
12995 emacs_cv_func___builtin_unwind_init
=no
12997 rm -f core conftest.err conftest.
$ac_objext \
12998 conftest
$ac_exeext conftest.
$ac_ext
13000 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $emacs_cv_func___builtin_unwind_init" >&5
13001 $as_echo "$emacs_cv_func___builtin_unwind_init" >&6; }
13002 if test $emacs_cv_func___builtin_unwind_init = yes; then
13004 $as_echo "#define HAVE___BUILTIN_UNWIND_INIT 1" >>confdefs.h
13008 for ac_header
in sys
/un.h
13010 ac_fn_c_check_header_mongrel
"$LINENO" "sys/un.h" "ac_cv_header_sys_un_h" "$ac_includes_default"
13011 if test "x$ac_cv_header_sys_un_h" = xyes
; then :
13012 cat >>confdefs.h
<<_ACEOF
13013 #define HAVE_SYS_UN_H 1
13021 ac_have_func
=no
# yes means we've found a way to get the load average.
13023 # Make sure getloadavg.c is where it belongs, at configure-time.
13024 test -f "$srcdir/$ac_config_libobj_dir/getloadavg.c" ||
13025 as_fn_error $?
"$srcdir/$ac_config_libobj_dir/getloadavg.c is missing" "$LINENO" 5
13029 # Check for getloadavg, but be sure not to touch the cache variable.
13030 (ac_fn_c_check_func
"$LINENO" "getloadavg" "ac_cv_func_getloadavg"
13031 if test "x$ac_cv_func_getloadavg" = xyes
; then :
13036 ) && ac_have_func
=yes
13038 # On HPUX9, an unprivileged user can get load averages through this function.
13039 for ac_func
in pstat_getdynamic
13041 ac_fn_c_check_func
"$LINENO" "pstat_getdynamic" "ac_cv_func_pstat_getdynamic"
13042 if test "x$ac_cv_func_pstat_getdynamic" = xyes
; then :
13043 cat >>confdefs.h
<<_ACEOF
13044 #define HAVE_PSTAT_GETDYNAMIC 1
13051 # Solaris has libkstat which does not require root.
13052 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for kstat_open in -lkstat" >&5
13053 $as_echo_n "checking for kstat_open in -lkstat... " >&6; }
13054 if ${ac_cv_lib_kstat_kstat_open+:} false
; then :
13055 $as_echo_n "(cached) " >&6
13057 ac_check_lib_save_LIBS
=$LIBS
13058 LIBS
="-lkstat $LIBS"
13059 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
13060 /* end confdefs.h. */
13062 /* Override any GCC internal prototype to avoid an error.
13063 Use char because int might match the return type of a GCC
13064 builtin and then its argument prototype would still apply. */
13068 char kstat_open ();
13072 return kstat_open ();
13077 if ac_fn_c_try_link
"$LINENO"; then :
13078 ac_cv_lib_kstat_kstat_open
=yes
13080 ac_cv_lib_kstat_kstat_open
=no
13082 rm -f core conftest.err conftest.
$ac_objext \
13083 conftest
$ac_exeext conftest.
$ac_ext
13084 LIBS
=$ac_check_lib_save_LIBS
13086 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_kstat_kstat_open" >&5
13087 $as_echo "$ac_cv_lib_kstat_kstat_open" >&6; }
13088 if test "x$ac_cv_lib_kstat_kstat_open" = xyes
; then :
13089 cat >>confdefs.h
<<_ACEOF
13090 #define HAVE_LIBKSTAT 1
13093 LIBS
="-lkstat $LIBS"
13097 test $ac_cv_lib_kstat_kstat_open = yes && ac_have_func
=yes
13099 # Some systems with -lutil have (and need) -lkvm as well, some do not.
13100 # On Solaris, -lkvm requires nlist from -lelf, so check that first
13101 # to get the right answer into the cache.
13102 # For kstat on solaris, we need libelf to force the definition of SVR4 below.
13103 if test $ac_have_func = no
; then
13104 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for elf_begin in -lelf" >&5
13105 $as_echo_n "checking for elf_begin in -lelf... " >&6; }
13106 if ${ac_cv_lib_elf_elf_begin+:} false
; then :
13107 $as_echo_n "(cached) " >&6
13109 ac_check_lib_save_LIBS
=$LIBS
13111 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
13112 /* end confdefs.h. */
13114 /* Override any GCC internal prototype to avoid an error.
13115 Use char because int might match the return type of a GCC
13116 builtin and then its argument prototype would still apply. */
13124 return elf_begin ();
13129 if ac_fn_c_try_link
"$LINENO"; then :
13130 ac_cv_lib_elf_elf_begin
=yes
13132 ac_cv_lib_elf_elf_begin
=no
13134 rm -f core conftest.err conftest.
$ac_objext \
13135 conftest
$ac_exeext conftest.
$ac_ext
13136 LIBS
=$ac_check_lib_save_LIBS
13138 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_elf_elf_begin" >&5
13139 $as_echo "$ac_cv_lib_elf_elf_begin" >&6; }
13140 if test "x$ac_cv_lib_elf_elf_begin" = xyes
; then :
13145 if test $ac_have_func = no
; then
13146 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for kvm_open in -lkvm" >&5
13147 $as_echo_n "checking for kvm_open in -lkvm... " >&6; }
13148 if ${ac_cv_lib_kvm_kvm_open+:} false
; then :
13149 $as_echo_n "(cached) " >&6
13151 ac_check_lib_save_LIBS
=$LIBS
13153 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
13154 /* end confdefs.h. */
13156 /* Override any GCC internal prototype to avoid an error.
13157 Use char because int might match the return type of a GCC
13158 builtin and then its argument prototype would still apply. */
13166 return kvm_open ();
13171 if ac_fn_c_try_link
"$LINENO"; then :
13172 ac_cv_lib_kvm_kvm_open
=yes
13174 ac_cv_lib_kvm_kvm_open
=no
13176 rm -f core conftest.err conftest.
$ac_objext \
13177 conftest
$ac_exeext conftest.
$ac_ext
13178 LIBS
=$ac_check_lib_save_LIBS
13180 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_kvm_kvm_open" >&5
13181 $as_echo "$ac_cv_lib_kvm_kvm_open" >&6; }
13182 if test "x$ac_cv_lib_kvm_kvm_open" = xyes
; then :
13186 # Check for the 4.4BSD definition of getloadavg.
13187 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for getloadavg in -lutil" >&5
13188 $as_echo_n "checking for getloadavg in -lutil... " >&6; }
13189 if ${ac_cv_lib_util_getloadavg+:} false
; then :
13190 $as_echo_n "(cached) " >&6
13192 ac_check_lib_save_LIBS
=$LIBS
13193 LIBS
="-lutil $LIBS"
13194 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
13195 /* end confdefs.h. */
13197 /* Override any GCC internal prototype to avoid an error.
13198 Use char because int might match the return type of a GCC
13199 builtin and then its argument prototype would still apply. */
13203 char getloadavg ();
13207 return getloadavg ();
13212 if ac_fn_c_try_link
"$LINENO"; then :
13213 ac_cv_lib_util_getloadavg
=yes
13215 ac_cv_lib_util_getloadavg
=no
13217 rm -f core conftest.err conftest.
$ac_objext \
13218 conftest
$ac_exeext conftest.
$ac_ext
13219 LIBS
=$ac_check_lib_save_LIBS
13221 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_util_getloadavg" >&5
13222 $as_echo "$ac_cv_lib_util_getloadavg" >&6; }
13223 if test "x$ac_cv_lib_util_getloadavg" = xyes
; then :
13224 LIBS
="-lutil $LIBS" ac_have_func
=yes ac_cv_func_getloadavg_setgid
=yes
13229 if test $ac_have_func = no
; then
13230 # There is a commonly available library for RS/6000 AIX.
13231 # Since it is not a standard part of AIX, it might be installed locally.
13232 ac_getloadavg_LIBS
=$LIBS
13233 LIBS
="-L/usr/local/lib $LIBS"
13234 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for getloadavg in -lgetloadavg" >&5
13235 $as_echo_n "checking for getloadavg in -lgetloadavg... " >&6; }
13236 if ${ac_cv_lib_getloadavg_getloadavg+:} false
; then :
13237 $as_echo_n "(cached) " >&6
13239 ac_check_lib_save_LIBS
=$LIBS
13240 LIBS
="-lgetloadavg $LIBS"
13241 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
13242 /* end confdefs.h. */
13244 /* Override any GCC internal prototype to avoid an error.
13245 Use char because int might match the return type of a GCC
13246 builtin and then its argument prototype would still apply. */
13250 char getloadavg ();
13254 return getloadavg ();
13259 if ac_fn_c_try_link
"$LINENO"; then :
13260 ac_cv_lib_getloadavg_getloadavg
=yes
13262 ac_cv_lib_getloadavg_getloadavg
=no
13264 rm -f core conftest.err conftest.
$ac_objext \
13265 conftest
$ac_exeext conftest.
$ac_ext
13266 LIBS
=$ac_check_lib_save_LIBS
13268 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_getloadavg_getloadavg" >&5
13269 $as_echo "$ac_cv_lib_getloadavg_getloadavg" >&6; }
13270 if test "x$ac_cv_lib_getloadavg_getloadavg" = xyes
; then :
13271 LIBS
="-lgetloadavg $LIBS"
13273 LIBS
=$ac_getloadavg_LIBS
13278 # Make sure it is really in the library, if we think we found it,
13279 # otherwise set up the replacement function.
13280 for ac_func
in getloadavg
13282 ac_fn_c_check_func
"$LINENO" "getloadavg" "ac_cv_func_getloadavg"
13283 if test "x$ac_cv_func_getloadavg" = xyes
; then :
13284 cat >>confdefs.h
<<_ACEOF
13285 #define HAVE_GETLOADAVG 1
13289 case " $LIBOBJS " in
13290 *" getloadavg.$ac_objext "* ) ;;
13291 *) LIBOBJS
="$LIBOBJS getloadavg.$ac_objext"
13296 $as_echo "#define C_GETLOADAVG 1" >>confdefs.h
13298 # Figure out what our getloadavg.c needs.
13300 ac_fn_c_check_header_mongrel
"$LINENO" "sys/dg_sys_info.h" "ac_cv_header_sys_dg_sys_info_h" "$ac_includes_default"
13301 if test "x$ac_cv_header_sys_dg_sys_info_h" = xyes
; then :
13304 $as_echo "#define DGUX 1" >>confdefs.h
13306 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dg_sys_info in -ldgc" >&5
13307 $as_echo_n "checking for dg_sys_info in -ldgc... " >&6; }
13308 if ${ac_cv_lib_dgc_dg_sys_info+:} false
; then :
13309 $as_echo_n "(cached) " >&6
13311 ac_check_lib_save_LIBS
=$LIBS
13313 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
13314 /* end confdefs.h. */
13316 /* Override any GCC internal prototype to avoid an error.
13317 Use char because int might match the return type of a GCC
13318 builtin and then its argument prototype would still apply. */
13322 char dg_sys_info ();
13326 return dg_sys_info ();
13331 if ac_fn_c_try_link
"$LINENO"; then :
13332 ac_cv_lib_dgc_dg_sys_info
=yes
13334 ac_cv_lib_dgc_dg_sys_info
=no
13336 rm -f core conftest.err conftest.
$ac_objext \
13337 conftest
$ac_exeext conftest.
$ac_ext
13338 LIBS
=$ac_check_lib_save_LIBS
13340 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dgc_dg_sys_info" >&5
13341 $as_echo "$ac_cv_lib_dgc_dg_sys_info" >&6; }
13342 if test "x$ac_cv_lib_dgc_dg_sys_info" = xyes
; then :
13343 cat >>confdefs.h
<<_ACEOF
13344 #define HAVE_LIBDGC 1
13355 ac_fn_c_check_header_mongrel
"$LINENO" "locale.h" "ac_cv_header_locale_h" "$ac_includes_default"
13356 if test "x$ac_cv_header_locale_h" = xyes
; then :
13361 for ac_func
in setlocale
13363 ac_fn_c_check_func
"$LINENO" "setlocale" "ac_cv_func_setlocale"
13364 if test "x$ac_cv_func_setlocale" = xyes
; then :
13365 cat >>confdefs.h
<<_ACEOF
13366 #define HAVE_SETLOCALE 1
13373 # We cannot check for <dwarf.h>, because Solaris 2 does not use dwarf (it
13374 # uses stabs), but it is still SVR4. We cannot check for <elf.h> because
13375 # Irix 4.0.5F has the header but not the library.
13376 if test $ac_have_func = no
&& test "$ac_cv_lib_elf_elf_begin" = yes \
13377 && test "$ac_cv_lib_kvm_kvm_open" = yes; then
13380 $as_echo "#define SVR4 1" >>confdefs.h
13384 if test $ac_have_func = no
; then
13385 ac_fn_c_check_header_mongrel
"$LINENO" "inq_stats/cpustats.h" "ac_cv_header_inq_stats_cpustats_h" "$ac_includes_default"
13386 if test "x$ac_cv_header_inq_stats_cpustats_h" = xyes
; then :
13389 $as_echo "#define UMAX 1" >>confdefs.h
13392 $as_echo "#define UMAX4_3 1" >>confdefs.h
13399 if test $ac_have_func = no
; then
13400 ac_fn_c_check_header_mongrel
"$LINENO" "sys/cpustats.h" "ac_cv_header_sys_cpustats_h" "$ac_includes_default"
13401 if test "x$ac_cv_header_sys_cpustats_h" = xyes
; then :
13402 ac_have_func
=yes; $as_echo "#define UMAX 1" >>confdefs.h
13409 if test $ac_have_func = no
; then
13410 for ac_header
in mach
/mach.h
13412 ac_fn_c_check_header_mongrel
"$LINENO" "mach/mach.h" "ac_cv_header_mach_mach_h" "$ac_includes_default"
13413 if test "x$ac_cv_header_mach_mach_h" = xyes
; then :
13414 cat >>confdefs.h
<<_ACEOF
13415 #define HAVE_MACH_MACH_H 1
13424 for ac_header
in nlist.h
13426 ac_fn_c_check_header_mongrel
"$LINENO" "nlist.h" "ac_cv_header_nlist_h" "$ac_includes_default"
13427 if test "x$ac_cv_header_nlist_h" = xyes
; then :
13428 cat >>confdefs.h
<<_ACEOF
13429 #define HAVE_NLIST_H 1
13431 ac_fn_c_check_member
"$LINENO" "struct nlist" "n_un.n_name" "ac_cv_member_struct_nlist_n_un_n_name" "#include <nlist.h>
13433 if test "x$ac_cv_member_struct_nlist_n_un_n_name" = xyes
; then :
13435 cat >>confdefs.h
<<_ACEOF
13436 #define HAVE_STRUCT_NLIST_N_UN_N_NAME 1
13440 $as_echo "#define NLIST_NAME_UNION 1" >>confdefs.h
13453 # Some definitions of getloadavg require that the program be installed setgid.
13454 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether getloadavg requires setgid" >&5
13455 $as_echo_n "checking whether getloadavg requires setgid... " >&6; }
13456 if ${ac_cv_func_getloadavg_setgid+:} false
; then :
13457 $as_echo_n "(cached) " >&6
13459 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
13460 /* end confdefs.h. */
13461 #include "$srcdir/$ac_config_libobj_dir/getloadavg.c"
13462 #ifdef LDAV_PRIVILEGED
13463 Yowza Am I SETGID yet
13466 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
13467 $EGREP "Yowza Am I SETGID yet" >/dev
/null
2>&1; then :
13468 ac_cv_func_getloadavg_setgid
=yes
13470 ac_cv_func_getloadavg_setgid
=no
13475 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_getloadavg_setgid" >&5
13476 $as_echo "$ac_cv_func_getloadavg_setgid" >&6; }
13477 if test $ac_cv_func_getloadavg_setgid = yes; then
13480 $as_echo "#define GETLOADAVG_PRIVILEGED 1" >>confdefs.h
13486 if test $ac_cv_func_getloadavg_setgid = yes; then
13487 { $as_echo "$as_me:${as_lineno-$LINENO}: checking group of /dev/kmem" >&5
13488 $as_echo_n "checking group of /dev/kmem... " >&6; }
13489 if ${ac_cv_group_kmem+:} false
; then :
13490 $as_echo_n "(cached) " >&6
13492 # On Solaris, /dev/kmem is a symlink. Get info on the real file.
13493 ac_ls_output
=`ls -lgL /dev/kmem 2>/dev/null`
13494 # If we got an error (system does not support symlinks), try without -L.
13495 test -z "$ac_ls_output" && ac_ls_output
=`ls -lg /dev/kmem`
13496 ac_cv_group_kmem
=`$as_echo "$ac_ls_output" \
13497 | sed -ne 's/[ ][ ]*/ /g;
13498 s/^.[sSrwx-]* *[0-9]* *\([^0-9]*\) *.*/\1/;
13502 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_group_kmem" >&5
13503 $as_echo "$ac_cv_group_kmem" >&6; }
13504 KMEM_GROUP
=$ac_cv_group_kmem
13506 if test "x$ac_save_LIBS" = x
; then
13507 GETLOADAVG_LIBS
=$LIBS
13509 GETLOADAVG_LIBS
=`$as_echo "$LIBS" | sed "s|$ac_save_LIBS||"`
13515 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _LARGEFILE_SOURCE value needed for large files" >&5
13516 $as_echo_n "checking for _LARGEFILE_SOURCE value needed for large files... " >&6; }
13517 if ${ac_cv_sys_largefile_source+:} false
; then :
13518 $as_echo_n "(cached) " >&6
13521 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
13522 /* end confdefs.h. */
13523 #include <sys/types.h> /* for off_t */
13528 int (*fp) (FILE *, off_t, int) = fseeko;
13529 return fseeko (stdin, 0, 0) && fp (stdin, 0, 0);
13534 if ac_fn_c_try_link
"$LINENO"; then :
13535 ac_cv_sys_largefile_source
=no
; break
13537 rm -f core conftest.err conftest.
$ac_objext \
13538 conftest
$ac_exeext conftest.
$ac_ext
13539 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
13540 /* end confdefs.h. */
13541 #define _LARGEFILE_SOURCE 1
13542 #include <sys/types.h> /* for off_t */
13547 int (*fp) (FILE *, off_t, int) = fseeko;
13548 return fseeko (stdin, 0, 0) && fp (stdin, 0, 0);
13553 if ac_fn_c_try_link
"$LINENO"; then :
13554 ac_cv_sys_largefile_source
=1; break
13556 rm -f core conftest.err conftest.
$ac_objext \
13557 conftest
$ac_exeext conftest.
$ac_ext
13558 ac_cv_sys_largefile_source
=unknown
13562 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_largefile_source" >&5
13563 $as_echo "$ac_cv_sys_largefile_source" >&6; }
13564 case $ac_cv_sys_largefile_source in #(
13567 cat >>confdefs.h
<<_ACEOF
13568 #define _LARGEFILE_SOURCE $ac_cv_sys_largefile_source
13574 # We used to try defining _XOPEN_SOURCE=500 too, to work around a bug
13575 # in glibc 2.1.3, but that breaks too many other things.
13576 # If you want fseeko and ftello with glibc, upgrade to a fixed glibc.
13577 if test $ac_cv_sys_largefile_source != unknown
; then
13579 $as_echo "#define HAVE_FSEEKO 1" >>confdefs.h
13584 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether getpgrp requires zero arguments" >&5
13585 $as_echo_n "checking whether getpgrp requires zero arguments... " >&6; }
13586 if ${ac_cv_func_getpgrp_void+:} false
; then :
13587 $as_echo_n "(cached) " >&6
13589 # Use it with a single arg.
13590 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
13591 /* end confdefs.h. */
13592 $ac_includes_default
13601 if ac_fn_c_try_compile
"$LINENO"; then :
13602 ac_cv_func_getpgrp_void
=no
13604 ac_cv_func_getpgrp_void
=yes
13606 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
13609 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_getpgrp_void" >&5
13610 $as_echo "$ac_cv_func_getpgrp_void" >&6; }
13611 if test $ac_cv_func_getpgrp_void = yes; then
13613 $as_echo "#define GETPGRP_VOID 1" >>confdefs.h
13618 # Configure gnulib.
13629 LIBC_FATAL_STDERR_
=1
13630 export LIBC_FATAL_STDERR_
13633 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether strtold conforms to C99" >&5
13634 $as_echo_n "checking whether strtold conforms to C99... " >&6; }
13635 if ${gl_cv_func_c99_strtold+:} false
; then :
13636 $as_echo_n "(cached) " >&6
13638 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
13639 /* end confdefs.h. */
13640 /* On HP-UX before 11.23, strtold returns a struct instead of
13641 long double. Reject implementations like that, by requiring
13642 compatibility with the C99 prototype. */
13643 #include <stdlib.h>
13644 static long double (*p) (char const *, char **) = strtold;
13646 test (char const *nptr, char **endptr)
13649 r = strtold (nptr, endptr);
13655 return test ("1.0", NULL) != 1 || p ("1.0", NULL) != 1;
13660 if ac_fn_c_try_link
"$LINENO"; then :
13661 gl_cv_func_c99_strtold
=yes
13663 gl_cv_func_c99_strtold
=no
13665 rm -f core conftest.err conftest.
$ac_objext \
13666 conftest
$ac_exeext conftest.
$ac_ext
13668 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_c99_strtold" >&5
13669 $as_echo "$gl_cv_func_c99_strtold" >&6; }
13670 if test $gl_cv_func_c99_strtold = yes; then
13672 $as_echo "#define HAVE_C99_STRTOLD 1" >>confdefs.h
13682 GNULIB_EUIDACCESS
=0;
13683 GNULIB_FACCESSAT
=0;
13687 GNULIB_FTRUNCATE
=0;
13689 GNULIB_GETDOMAINNAME
=0;
13690 GNULIB_GETDTABLESIZE
=0;
13691 GNULIB_GETGROUPS
=0;
13692 GNULIB_GETHOSTNAME
=0;
13694 GNULIB_GETLOGIN_R
=0;
13695 GNULIB_GETPAGESIZE
=0;
13696 GNULIB_GETUSERSHELL
=0;
13706 GNULIB_READLINKAT
=0;
13710 GNULIB_SYMLINKAT
=0;
13711 GNULIB_TTYNAME_R
=0;
13712 GNULIB_UNISTD_H_GETOPT
=0;
13713 GNULIB_UNISTD_H_SIGPIPE
=0;
13727 HAVE_GETDTABLESIZE
=1;
13729 HAVE_GETHOSTNAME
=1;
13731 HAVE_GETPAGESIZE
=1;
13746 HAVE_DECL_ENVIRON
=1;
13747 HAVE_DECL_FCHDIR
=1;
13748 HAVE_DECL_GETDOMAINNAME
=1;
13749 HAVE_DECL_GETLOGIN_R
=1;
13750 HAVE_DECL_GETPAGESIZE
=1;
13751 HAVE_DECL_GETUSERSHELL
=1;
13752 HAVE_DECL_TTYNAME_R
=1;
13754 HAVE_SYS_PARAM_H
=0;
13759 REPLACE_FCHOWNAT
=0;
13761 REPLACE_GETDOMAINNAME
=0;
13762 REPLACE_GETLOGIN_R
=0;
13763 REPLACE_GETGROUPS
=0;
13764 REPLACE_GETPAGESIZE
=0;
13771 REPLACE_READLINK
=0;
13775 REPLACE_TTYNAME_R
=0;
13777 REPLACE_UNLINKAT
=0;
13780 UNISTD_H_HAVE_WINSOCK2_H
=0;
13781 UNISTD_H_HAVE_WINSOCK2_H_AND_USE_SOCKETS
=0;
13786 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the preprocessor supports include_next" >&5
13787 $as_echo_n "checking whether the preprocessor supports include_next... " >&6; }
13788 if ${gl_cv_have_include_next+:} false
; then :
13789 $as_echo_n "(cached) " >&6
13791 rm -rf conftestd1a conftestd1b conftestd2
13792 mkdir conftestd1a conftestd1b conftestd2
13793 cat <<EOF > conftestd1a/conftest.h
13794 #define DEFINED_IN_CONFTESTD1
13795 #include_next <conftest.h>
13796 #ifdef DEFINED_IN_CONFTESTD2
13799 #error "include_next doesn't work"
13802 cat <<EOF > conftestd1b/conftest.h
13803 #define DEFINED_IN_CONFTESTD1
13805 #include_next <conftest.h>
13806 #ifdef DEFINED_IN_CONFTESTD2
13809 #error "include_next doesn't work"
13812 cat <<EOF > conftestd2/conftest.h
13813 #ifndef DEFINED_IN_CONFTESTD1
13814 #error "include_next test doesn't work"
13816 #define DEFINED_IN_CONFTESTD2
13818 gl_save_CPPFLAGS
="$CPPFLAGS"
13819 CPPFLAGS
="$gl_save_CPPFLAGS -Iconftestd1b -Iconftestd2"
13820 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
13821 /* end confdefs.h. */
13822 #include <conftest.h>
13824 if ac_fn_c_try_compile
"$LINENO"; then :
13825 gl_cv_have_include_next
=yes
13827 CPPFLAGS
="$gl_save_CPPFLAGS -Iconftestd1a -Iconftestd2"
13828 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
13829 /* end confdefs.h. */
13830 #include <conftest.h>
13832 if ac_fn_c_try_compile
"$LINENO"; then :
13833 gl_cv_have_include_next
=buggy
13835 gl_cv_have_include_next
=no
13837 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
13840 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
13841 CPPFLAGS
="$gl_save_CPPFLAGS"
13842 rm -rf conftestd1a conftestd1b conftestd2
13845 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_have_include_next" >&5
13846 $as_echo "$gl_cv_have_include_next" >&6; }
13847 PRAGMA_SYSTEM_HEADER
=
13848 if test $gl_cv_have_include_next = yes; then
13849 INCLUDE_NEXT
=include_next
13850 INCLUDE_NEXT_AS_FIRST_DIRECTIVE
=include_next
13851 if test -n "$GCC"; then
13852 PRAGMA_SYSTEM_HEADER
='#pragma GCC system_header'
13855 if test $gl_cv_have_include_next = buggy
; then
13856 INCLUDE_NEXT
=include
13857 INCLUDE_NEXT_AS_FIRST_DIRECTIVE
=include_next
13859 INCLUDE_NEXT
=include
13860 INCLUDE_NEXT_AS_FIRST_DIRECTIVE
=include
13866 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether system header files limit the line length" >&5
13867 $as_echo_n "checking whether system header files limit the line length... " >&6; }
13868 if ${gl_cv_pragma_columns+:} false
; then :
13869 $as_echo_n "(cached) " >&6
13871 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
13872 /* end confdefs.h. */
13879 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
13880 $EGREP "choke me" >/dev
/null
2>&1; then :
13881 gl_cv_pragma_columns
=yes
13883 gl_cv_pragma_columns
=no
13889 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_pragma_columns" >&5
13890 $as_echo "$gl_cv_pragma_columns" >&6; }
13891 if test $gl_cv_pragma_columns = yes; then
13892 PRAGMA_COLUMNS
="#pragma COLUMNS 10000"
13913 if test $gl_cv_have_include_next = yes; then
13914 gl_cv_next_getopt_h
='<'getopt.h
'>'
13916 { $as_echo "$as_me:${as_lineno-$LINENO}: checking absolute name of <getopt.h>" >&5
13917 $as_echo_n "checking absolute name of <getopt.h>... " >&6; }
13918 if ${gl_cv_next_getopt_h+:} false
; then :
13919 $as_echo_n "(cached) " >&6
13922 if test $ac_cv_header_getopt_h = yes; then
13925 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
13926 /* end confdefs.h. */
13927 #include <getopt.h>
13931 aix
*) gl_absname_cpp
="$ac_cpp -C" ;;
13932 *) gl_absname_cpp
="$ac_cpp" ;;
13934 gl_cv_next_getopt_h
='"'`(eval "$gl_absname_cpp conftest.$ac_ext") 2>&5 |
13935 sed -n '\#/getopt.h#{
13936 s#.*"\(.*/getopt.h\)".*#\1#
13942 gl_cv_next_getopt_h
='<'getopt.h
'>'
13947 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_next_getopt_h" >&5
13948 $as_echo "$gl_cv_next_getopt_h" >&6; }
13950 NEXT_GETOPT_H
=$gl_cv_next_getopt_h
13952 if test $gl_cv_have_include_next = yes ||
test $gl_cv_have_include_next = buggy
; then
13953 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include_next'
13954 gl_next_as_first_directive
='<'getopt.h
'>'
13956 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include'
13957 gl_next_as_first_directive
=$gl_cv_next_getopt_h
13959 NEXT_AS_FIRST_DIRECTIVE_GETOPT_H
=$gl_next_as_first_directive
13964 if test $ac_cv_header_getopt_h = yes; then
13973 if test -z "$gl_replace_getopt" && test $gl_getopt_required = GNU
; then
13974 for ac_header
in getopt.h
13976 ac_fn_c_check_header_mongrel
"$LINENO" "getopt.h" "ac_cv_header_getopt_h" "$ac_includes_default"
13977 if test "x$ac_cv_header_getopt_h" = xyes
; then :
13978 cat >>confdefs.h
<<_ACEOF
13979 #define HAVE_GETOPT_H 1
13983 gl_replace_getopt
=yes
13990 if test -z "$gl_replace_getopt" && test $gl_getopt_required = GNU
; then
13991 for ac_func
in getopt_long_only
13993 ac_fn_c_check_func
"$LINENO" "getopt_long_only" "ac_cv_func_getopt_long_only"
13994 if test "x$ac_cv_func_getopt_long_only" = xyes
; then :
13995 cat >>confdefs.h
<<_ACEOF
13996 #define HAVE_GETOPT_LONG_ONLY 1
14000 gl_replace_getopt
=yes
14006 if test -z "$gl_replace_getopt"; then
14007 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether getopt is POSIX compatible" >&5
14008 $as_echo_n "checking whether getopt is POSIX compatible... " >&6; }
14009 if ${gl_cv_func_getopt_posix+:} false
; then :
14010 $as_echo_n "(cached) " >&6
14013 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
14014 /* end confdefs.h. */
14015 #include <unistd.h>
14019 int *p = &optreset; return optreset;
14024 if ac_fn_c_try_compile
"$LINENO"; then :
14027 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
14028 /* end confdefs.h. */
14029 #include <getopt.h>
14033 return !getopt_clip;
14038 if ac_fn_c_try_compile
"$LINENO"; then :
14043 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
14045 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
14047 gl_save_CPPFLAGS
=$CPPFLAGS
14048 CPPFLAGS
="$CPPFLAGS -DOPTIND_MIN=$gl_optind_min"
14049 if test "$cross_compiling" = yes; then :
14051 mingw
*) gl_cv_func_getopt_posix
="guessing no";;
14052 darwin
* | aix
*) gl_cv_func_getopt_posix
="guessing no";;
14053 *) gl_cv_func_getopt_posix
="guessing yes";;
14057 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
14058 /* end confdefs.h. */
14060 #include <unistd.h>
14061 #include <stdlib.h>
14062 #include <string.h>
14072 argv[argc++] = "program";
14073 argv[argc++] = "-a";
14074 argv[argc++] = "foo";
14075 argv[argc++] = "bar";
14077 optind = OPTIND_MIN;
14080 c = getopt (argc, argv, "ab");
14083 c = getopt (argc, argv, "ab");
14086 if (!(optind == 2))
14089 /* Some internal state exists at this point. */
14095 argv[argc++] = "program";
14096 argv[argc++] = "donald";
14097 argv[argc++] = "-p";
14098 argv[argc++] = "billy";
14099 argv[argc++] = "duck";
14100 argv[argc++] = "-a";
14101 argv[argc++] = "bar";
14103 optind = OPTIND_MIN;
14106 c = getopt (argc, argv, "+abp:q:");
14109 if (!(strcmp (argv[0], "program") == 0))
14111 if (!(strcmp (argv[1], "donald") == 0))
14113 if (!(strcmp (argv[2], "-p") == 0))
14115 if (!(strcmp (argv[3], "billy") == 0))
14117 if (!(strcmp (argv[4], "duck") == 0))
14119 if (!(strcmp (argv[5], "-a") == 0))
14121 if (!(strcmp (argv[6], "bar") == 0))
14123 if (!(optind == 1))
14126 /* Detect MacOS 10.5, AIX 7.1 bug. */
14128 char *argv[3] = { "program", "-ab", NULL };
14129 optind = OPTIND_MIN;
14131 if (getopt (2, argv, "ab:") != 'a')
14133 if (getopt (2, argv, "ab:") != '?')
14145 if ac_fn_c_try_run
"$LINENO"; then :
14146 gl_cv_func_getopt_posix
=yes
14148 gl_cv_func_getopt_posix
=no
14150 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
14151 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
14154 CPPFLAGS
=$gl_save_CPPFLAGS
14157 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_getopt_posix" >&5
14158 $as_echo "$gl_cv_func_getopt_posix" >&6; }
14159 case "$gl_cv_func_getopt_posix" in
14160 *no
) gl_replace_getopt
=yes ;;
14164 if test -z "$gl_replace_getopt" && test $gl_getopt_required = GNU
; then
14165 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working GNU getopt function" >&5
14166 $as_echo_n "checking for working GNU getopt function... " >&6; }
14167 if ${gl_cv_func_getopt_gnu+:} false
; then :
14168 $as_echo_n "(cached) " >&6
14170 # Even with POSIXLY_CORRECT, the GNU extension of leading '-' in the
14171 # optstring is necessary for programs like m4 that have POSIX-mandated
14172 # semantics for supporting options interspersed with files.
14173 # Also, since getopt_long is a GNU extension, we require optind=0.
14174 # Bash ties 'set -o posix' to a non-exported POSIXLY_CORRECT;
14175 # so take care to revert to the correct (non-)export state.
14176 gl_awk_probe
='BEGIN { if ("POSIXLY_CORRECT" in ENVIRON) print "x" }'
14177 case ${POSIXLY_CORRECT+x}`$AWK "$gl_awk_probe" </dev/null` in
14178 xx
) gl_had_POSIXLY_CORRECT
=exported
;;
14179 x
) gl_had_POSIXLY_CORRECT
=yes ;;
14180 *) gl_had_POSIXLY_CORRECT
= ;;
14183 export POSIXLY_CORRECT
14184 if test "$cross_compiling" = yes; then :
14185 case $host_os:$ac_cv_have_decl_optreset in
14186 *-gnu*:* | mingw
*:*) gl_cv_func_getopt_gnu
=no
;;
14187 *:yes) gl_cv_func_getopt_gnu
=no
;;
14188 *) gl_cv_func_getopt_gnu
=yes;;
14192 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
14193 /* end confdefs.h. */
14194 #include <getopt.h>
14195 #include <stddef.h>
14196 #include <string.h>
14203 /* This code succeeds on glibc 2.8, OpenBSD 4.0, Cygwin, mingw,
14204 and fails on MacOS X 10.5, AIX 5.2, HP-UX 11, IRIX 6.5,
14205 OSF/1 5.1, Solaris 10. */
14208 myargv[0] = "conftest";
14212 if (getopt (2, myargv, "+a") != '?')
14215 /* This code succeeds on glibc 2.8, mingw,
14216 and fails on MacOS X 10.5, OpenBSD 4.0, AIX 5.2, HP-UX 11,
14217 IRIX 6.5, OSF/1 5.1, Solaris 10, Cygwin 1.5.x. */
14219 char *argv[] = { "program", "-p", "foo", "bar", NULL };
14222 if (getopt (4, argv, "p::") != 'p')
14224 else if (optarg != NULL)
14226 else if (getopt (4, argv, "p::") != -1)
14228 else if (optind != 2)
14231 /* This code succeeds on glibc 2.8 and fails on Cygwin 1.7.0. */
14233 char *argv[] = { "program", "foo", "-p", NULL };
14235 if (getopt (3, argv, "-p") != 1)
14237 else if (getopt (3, argv, "-p") != 'p')
14240 /* This code fails on glibc 2.11. */
14242 char *argv[] = { "program", "-b", "-a", NULL };
14243 optind = opterr = 0;
14244 if (getopt (3, argv, "+:a:b") != 'b')
14246 else if (getopt (3, argv, "+:a:b") != ':')
14255 if ac_fn_c_try_run
"$LINENO"; then :
14256 gl_cv_func_getopt_gnu
=yes
14258 gl_cv_func_getopt_gnu
=no
14260 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
14261 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
14264 case $gl_had_POSIXLY_CORRECT in
14266 yes) { POSIXLY_CORRECT
=; unset POSIXLY_CORRECT
;}; POSIXLY_CORRECT
=1 ;;
14267 *) { POSIXLY_CORRECT
=; unset POSIXLY_CORRECT
;} ;;
14271 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_getopt_gnu" >&5
14272 $as_echo "$gl_cv_func_getopt_gnu" >&6; }
14273 if test "$gl_cv_func_getopt_gnu" = "no"; then
14274 gl_replace_getopt
=yes
14278 ac_fn_c_check_decl
"$LINENO" "getenv" "ac_cv_have_decl_getenv" "$ac_includes_default"
14279 if test "x$ac_cv_have_decl_getenv" = xyes
; then :
14285 cat >>confdefs.h
<<_ACEOF
14286 #define HAVE_DECL_GETENV $ac_have_decl
14294 if test -n "$gl_replace_getopt"; then :
14300 $as_echo "#define __GETOPT_PREFIX rpl_" >>confdefs.h
14304 GNULIB_UNISTD_H_GETOPT
=1
14313 gl_LIBOBJS
="$gl_LIBOBJS getopt.$ac_objext"
14323 gl_LIBOBJS
="$gl_LIBOBJS getopt1.$ac_objext"
14335 GNULIB_NANOSLEEP
=0;
14339 HAVE_DECL_LOCALTIME_R
=1;
14343 REPLACE_LOCALTIME_R
=GNULIB_PORTCHECK
;
14344 REPLACE_MKTIME
=GNULIB_PORTCHECK
;
14345 REPLACE_NANOSLEEP
=GNULIB_PORTCHECK
;
14346 REPLACE_TIMEGM
=GNULIB_PORTCHECK
;
14351 for ac_func
in $ac_func_list
14353 as_ac_var
=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
14354 ac_fn_c_check_func
"$LINENO" "$ac_func" "$as_ac_var"
14355 if eval test \"x\$
"$as_ac_var"\" = x
"yes"; then :
14356 cat >>confdefs.h
<<_ACEOF
14357 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
14366 gl_cv_c_multiarch
=no
14367 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
14368 /* end confdefs.h. */
14369 #ifndef __APPLE_CC__
14370 not a universal capable compiler
14375 if ac_fn_c_try_compile
"$LINENO"; then :
14379 for word
in ${CC} ${CFLAGS} ${CPPFLAGS} ${LDFLAGS}; do
14380 if test -n "$prev"; then
14382 i?
86 | x86_64 | ppc | ppc64
)
14383 if test -z "$arch" ||
test "$arch" = "$word"; then
14386 gl_cv_c_multiarch
=yes
14392 if test "x$word" = "x-arch"; then
14399 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
14400 if test $gl_cv_c_multiarch = yes; then
14401 APPLE_UNIVERSAL_BUILD
=1
14403 APPLE_UNIVERSAL_BUILD
=0
14407 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for inline" >&5
14408 $as_echo_n "checking for inline... " >&6; }
14409 if ${ac_cv_c_inline+:} false
; then :
14410 $as_echo_n "(cached) " >&6
14413 for ac_kw
in inline __inline__ __inline
; do
14414 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
14415 /* end confdefs.h. */
14416 #ifndef __cplusplus
14418 static $ac_kw foo_t static_foo () {return 0; }
14419 $ac_kw foo_t foo () {return 0; }
14423 if ac_fn_c_try_compile
"$LINENO"; then :
14424 ac_cv_c_inline
=$ac_kw
14426 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
14427 test "$ac_cv_c_inline" != no
&& break
14431 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_inline" >&5
14432 $as_echo "$ac_cv_c_inline" >&6; }
14434 case $ac_cv_c_inline in
14437 case $ac_cv_c_inline in
14439 *) ac_val
=$ac_cv_c_inline;;
14441 cat >>confdefs.h
<<_ACEOF
14442 #ifndef __cplusplus
14443 #define inline $ac_val
14449 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for stdbool.h that conforms to C99" >&5
14450 $as_echo_n "checking for stdbool.h that conforms to C99... " >&6; }
14451 if ${ac_cv_header_stdbool_h+:} false
; then :
14452 $as_echo_n "(cached) " >&6
14454 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
14455 /* end confdefs.h. */
14457 #include <stdbool.h>
14459 "error: bool is not defined"
14462 "error: false is not defined"
14465 "error: false is not 0"
14468 "error: true is not defined"
14471 "error: true is not 1"
14473 #ifndef __bool_true_false_are_defined
14474 "error: __bool_true_false_are_defined is not defined"
14477 struct s { _Bool s: 1; _Bool t; } s;
14479 char a[true == 1 ? 1 : -1];
14480 char b[false == 0 ? 1 : -1];
14481 char c[__bool_true_false_are_defined == 1 ? 1 : -1];
14482 char d[(bool) 0.5 == true ? 1 : -1];
14483 /* See body of main program for 'e'. */
14484 char f[(_Bool) 0.0 == false ? 1 : -1];
14486 char h[sizeof (_Bool)];
14487 char i[sizeof s.t];
14488 enum { j = false, k = true, l = false * true, m = true * 256 };
14489 /* The following fails for
14490 HP aC++/ANSI C B3910B A.05.55 [Dec 04 2003]. */
14492 char o[sizeof n == m * sizeof n[0] ? 1 : -1];
14493 char p[-1 - (_Bool) 0 < 0 && -1 - (bool) 0 < 0 ? 1 : -1];
14494 /* Catch a bug in an HP-UX C compiler. See
14495 http://gcc.gnu.org/ml/gcc-patches/2003-12/msg02303.html
14496 http://lists.gnu.org/archive/html/bug-coreutils/2005-11/msg00161.html
14508 /* Refer to every declared value, to avoid compiler optimizations. */
14509 return (!a + !b + !c + !d + !e + !f + !g + !h + !i + !!j + !k + !!l
14510 + !m + !n + !o + !p + !q + !pq);
14516 if ac_fn_c_try_compile
"$LINENO"; then :
14517 ac_cv_header_stdbool_h
=yes
14519 ac_cv_header_stdbool_h
=no
14521 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
14523 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdbool_h" >&5
14524 $as_echo "$ac_cv_header_stdbool_h" >&6; }
14525 ac_fn_c_check_type
"$LINENO" "_Bool" "ac_cv_type__Bool" "$ac_includes_default"
14526 if test "x$ac_cv_type__Bool" = xyes
; then :
14528 cat >>confdefs.h
<<_ACEOF
14529 #define HAVE__BOOL 1
14535 if test $ac_cv_header_stdbool_h = yes; then
14537 $as_echo "#define HAVE_STDBOOL_H 1" >>confdefs.h
14546 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for wchar_t" >&5
14547 $as_echo_n "checking for wchar_t... " >&6; }
14548 if ${gt_cv_c_wchar_t+:} false
; then :
14549 $as_echo_n "(cached) " >&6
14551 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
14552 /* end confdefs.h. */
14553 #include <stddef.h>
14554 wchar_t foo = (wchar_t)'\0';
14563 if ac_fn_c_try_compile
"$LINENO"; then :
14564 gt_cv_c_wchar_t
=yes
14568 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
14570 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_c_wchar_t" >&5
14571 $as_echo "$gt_cv_c_wchar_t" >&6; }
14572 if test $gt_cv_c_wchar_t = yes; then
14574 $as_echo "#define HAVE_WCHAR_T 1" >>confdefs.h
14579 ac_fn_c_check_member
"$LINENO" "struct tm" "tm_gmtoff" "ac_cv_member_struct_tm_tm_gmtoff" "#include <time.h>
14581 if test "x$ac_cv_member_struct_tm_tm_gmtoff" = xyes
; then :
14583 $as_echo "#define HAVE_TM_GMTOFF 1" >>confdefs.h
14590 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for C/C++ restrict keyword" >&5
14591 $as_echo_n "checking for C/C++ restrict keyword... " >&6; }
14592 if ${ac_cv_c_restrict+:} false
; then :
14593 $as_echo_n "(cached) " >&6
14595 ac_cv_c_restrict
=no
14596 # The order here caters to the fact that C++ does not require restrict.
14597 for ac_kw
in __restrict __restrict__ _Restrict restrict
; do
14598 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
14599 /* end confdefs.h. */
14600 typedef int * int_ptr;
14601 int foo (int_ptr $ac_kw ip) {
14608 int * $ac_kw t = s;
14615 if ac_fn_c_try_compile
"$LINENO"; then :
14616 ac_cv_c_restrict
=$ac_kw
14618 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
14619 test "$ac_cv_c_restrict" != no
&& break
14623 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_restrict" >&5
14624 $as_echo "$ac_cv_c_restrict" >&6; }
14626 case $ac_cv_c_restrict in
14628 no
) $as_echo "#define restrict /**/" >>confdefs.h
14630 *) cat >>confdefs.h
<<_ACEOF
14631 #define restrict $ac_cv_c_restrict
14640 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for struct timespec in <time.h>" >&5
14641 $as_echo_n "checking for struct timespec in <time.h>... " >&6; }
14642 if ${gl_cv_sys_struct_timespec_in_time_h+:} false
; then :
14643 $as_echo_n "(cached) " >&6
14645 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
14646 /* end confdefs.h. */
14652 static struct timespec x; x.tv_sec = x.tv_nsec;
14657 if ac_fn_c_try_compile
"$LINENO"; then :
14658 gl_cv_sys_struct_timespec_in_time_h
=yes
14660 gl_cv_sys_struct_timespec_in_time_h
=no
14662 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
14664 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_sys_struct_timespec_in_time_h" >&5
14665 $as_echo "$gl_cv_sys_struct_timespec_in_time_h" >&6; }
14667 TIME_H_DEFINES_STRUCT_TIMESPEC
=0
14668 SYS_TIME_H_DEFINES_STRUCT_TIMESPEC
=0
14669 PTHREAD_H_DEFINES_STRUCT_TIMESPEC
=0
14670 if test $gl_cv_sys_struct_timespec_in_time_h = yes; then
14671 TIME_H_DEFINES_STRUCT_TIMESPEC
=1
14673 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for struct timespec in <sys/time.h>" >&5
14674 $as_echo_n "checking for struct timespec in <sys/time.h>... " >&6; }
14675 if ${gl_cv_sys_struct_timespec_in_sys_time_h+:} false
; then :
14676 $as_echo_n "(cached) " >&6
14678 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
14679 /* end confdefs.h. */
14680 #include <sys/time.h>
14685 static struct timespec x; x.tv_sec = x.tv_nsec;
14690 if ac_fn_c_try_compile
"$LINENO"; then :
14691 gl_cv_sys_struct_timespec_in_sys_time_h
=yes
14693 gl_cv_sys_struct_timespec_in_sys_time_h
=no
14695 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
14697 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_sys_struct_timespec_in_sys_time_h" >&5
14698 $as_echo "$gl_cv_sys_struct_timespec_in_sys_time_h" >&6; }
14699 if test $gl_cv_sys_struct_timespec_in_sys_time_h = yes; then
14700 SYS_TIME_H_DEFINES_STRUCT_TIMESPEC
=1
14702 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for struct timespec in <pthread.h>" >&5
14703 $as_echo_n "checking for struct timespec in <pthread.h>... " >&6; }
14704 if ${gl_cv_sys_struct_timespec_in_pthread_h+:} false
; then :
14705 $as_echo_n "(cached) " >&6
14707 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
14708 /* end confdefs.h. */
14709 #include <pthread.h>
14714 static struct timespec x; x.tv_sec = x.tv_nsec;
14719 if ac_fn_c_try_compile
"$LINENO"; then :
14720 gl_cv_sys_struct_timespec_in_pthread_h
=yes
14722 gl_cv_sys_struct_timespec_in_pthread_h
=no
14724 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
14726 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_sys_struct_timespec_in_pthread_h" >&5
14727 $as_echo "$gl_cv_sys_struct_timespec_in_pthread_h" >&6; }
14728 if test $gl_cv_sys_struct_timespec_in_pthread_h = yes; then
14729 PTHREAD_H_DEFINES_STRUCT_TIMESPEC
=1
14748 if test $gl_cv_have_include_next = yes; then
14749 gl_cv_next_time_h
='<'time.h
'>'
14751 { $as_echo "$as_me:${as_lineno-$LINENO}: checking absolute name of <time.h>" >&5
14752 $as_echo_n "checking absolute name of <time.h>... " >&6; }
14753 if ${gl_cv_next_time_h+:} false
; then :
14754 $as_echo_n "(cached) " >&6
14757 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
14758 /* end confdefs.h. */
14763 aix
*) gl_absname_cpp
="$ac_cpp -C" ;;
14764 *) gl_absname_cpp
="$ac_cpp" ;;
14766 gl_cv_next_time_h
='"'`(eval "$gl_absname_cpp conftest.$ac_ext") 2>&5 |
14767 sed -n '\#/time.h#{
14768 s#.*"\(.*/time.h\)".*#\1#
14776 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_next_time_h" >&5
14777 $as_echo "$gl_cv_next_time_h" >&6; }
14779 NEXT_TIME_H
=$gl_cv_next_time_h
14781 if test $gl_cv_have_include_next = yes ||
test $gl_cv_have_include_next = buggy
; then
14782 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include_next'
14783 gl_next_as_first_directive
='<'time.h
'>'
14785 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include'
14786 gl_next_as_first_directive
=$gl_cv_next_time_h
14788 NEXT_AS_FIRST_DIRECTIVE_TIME_H
=$gl_next_as_first_directive
14795 ac_fn_c_check_decl
"$LINENO" "localtime_r" "ac_cv_have_decl_localtime_r" "$ac_includes_default"
14796 if test "x$ac_cv_have_decl_localtime_r" = xyes
; then :
14802 cat >>confdefs.h
<<_ACEOF
14803 #define HAVE_DECL_LOCALTIME_R $ac_have_decl
14810 GL_COND_LIBTOOL_TRUE
=
14811 GL_COND_LIBTOOL_FALSE
='#'
14813 GL_COND_LIBTOOL_TRUE
='#'
14814 GL_COND_LIBTOOL_FALSE
=
14817 gl_cond_libtool
=false
14830 gl_source_base
='lib'
14831 # Code from module arg-nonnull:
14832 # Code from module c++defs:
14833 # Code from module dtoastr:
14835 # Code from module extensions:
14836 # Code from module getopt-gnu:
14843 # Code from module getopt-posix:
14849 if test -n "$gl_replace_getopt"; then :
14855 $as_echo "#define __GETOPT_PREFIX rpl_" >>confdefs.h
14859 GNULIB_UNISTD_H_GETOPT
=1
14868 gl_LIBOBJS
="$gl_LIBOBJS getopt.$ac_objext"
14878 gl_LIBOBJS
="$gl_LIBOBJS getopt1.$ac_objext"
14888 # Code from module gettext-h:
14891 # Code from module include_next:
14892 # Code from module intprops:
14893 # Code from module mktime:
14899 if test $APPLE_UNIVERSAL_BUILD = 1; then
14900 # A universal build on Apple MacOS X platforms.
14901 # The test result would be 'yes' in 32-bit mode and 'no' in 64-bit mode.
14902 # But we need a configuration result that is valid in both modes.
14903 ac_cv_func_working_mktime
=no
14905 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working mktime" >&5
14906 $as_echo_n "checking for working mktime... " >&6; }
14907 if ${ac_cv_func_working_mktime+:} false
; then :
14908 $as_echo_n "(cached) " >&6
14910 if test "$cross_compiling" = yes; then :
14911 ac_cv_func_working_mktime
=no
14913 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
14914 /* end confdefs.h. */
14915 /* Test program from Paul Eggert and Tony Leneis. */
14916 #include <limits.h>
14917 #include <stdlib.h>
14920 #ifdef HAVE_UNISTD_H
14921 # include <unistd.h>
14925 # define alarm(X) /* empty */
14928 /* Work around redefinition to rpl_putenv by other config tests. */
14931 static time_t time_t_max;
14932 static time_t time_t_min;
14934 /* Values we'll use to set the TZ environment variable. */
14935 static char *tz_strings[] = {
14936 (char *) 0, "TZ=GMT0", "TZ=JST-9",
14937 "TZ=EST+3EDT+2,M10.1.0/00:00:00,M2.3.0/00:00:00"
14939 #define N_STRINGS (sizeof (tz_strings) / sizeof (tz_strings[0]))
14941 /* Return 0 if mktime fails to convert a date in the spring-forward gap.
14942 Based on a problem report from Andreas Jaeger. */
14944 spring_forward_gap ()
14946 /* glibc (up to about 1998-10-07) failed this test. */
14949 /* Use the portable POSIX.1 specification "TZ=PST8PDT,M4.1.0,M10.5.0"
14950 instead of "TZ=America/Vancouver" in order to detect the bug even
14951 on systems that don't support the Olson extension, or don't have the
14952 full zoneinfo tables installed. */
14953 putenv ("TZ=PST8PDT,M4.1.0,M10.5.0");
14962 return mktime (&tm) != (time_t) -1;
14966 mktime_test1 (time_t now)
14969 return ! (lt = localtime (&now)) || mktime (lt) == now;
14973 mktime_test (time_t now)
14975 return (mktime_test1 (now)
14976 && mktime_test1 ((time_t) (time_t_max - now))
14977 && mktime_test1 ((time_t) (time_t_min + now)));
14983 /* Based on code from Ariel Faigon. */
14993 return tm.tm_mon == 2 && tm.tm_mday == 31;
14997 bigtime_test (int j)
15001 tm.tm_year = tm.tm_mon = tm.tm_mday = tm.tm_hour = tm.tm_min = tm.tm_sec = j;
15002 now = mktime (&tm);
15003 if (now != (time_t) -1)
15005 struct tm *lt = localtime (&now);
15007 && lt->tm_year == tm.tm_year
15008 && lt->tm_mon == tm.tm_mon
15009 && lt->tm_mday == tm.tm_mday
15010 && lt->tm_hour == tm.tm_hour
15011 && lt->tm_min == tm.tm_min
15012 && lt->tm_sec == tm.tm_sec
15013 && lt->tm_yday == tm.tm_yday
15014 && lt->tm_wday == tm.tm_wday
15015 && ((lt->tm_isdst < 0 ? -1 : 0 < lt->tm_isdst)
15016 == (tm.tm_isdst < 0 ? -1 : 0 < tm.tm_isdst))))
15025 /* The correct answer for 2050-02-01 00:00:00 in Pacific time,
15026 ignoring leap seconds. */
15027 unsigned long int answer = 2527315200UL;
15031 tm.tm_year = 2050 - 1900;
15034 tm.tm_hour = tm.tm_min = tm.tm_sec = 0;
15037 /* Use the portable POSIX.1 specification "TZ=PST8PDT,M4.1.0,M10.5.0"
15038 instead of "TZ=America/Vancouver" in order to detect the bug even
15039 on systems that don't support the Olson extension, or don't have the
15040 full zoneinfo tables installed. */
15041 putenv ("TZ=PST8PDT,M4.1.0,M10.5.0");
15045 /* Check that the result is either a failure, or close enough
15046 to the correct answer that we can assume the discrepancy is
15047 due to leap seconds. */
15048 return (t == (time_t) -1
15049 || (0 < t && answer - 120 <= t && t <= answer + 120));
15058 int time_t_signed_magnitude = (time_t) ~ (time_t) 0 < (time_t) -1;
15059 int time_t_signed = ! ((time_t) 0 < (time_t) -1);
15061 /* This test makes some buggy mktime implementations loop.
15062 Give up after 60 seconds; a mktime slower than that
15063 isn't worth using anyway. */
15066 time_t_max = (! time_t_signed
15068 : ((((time_t) 1 << (sizeof (time_t) * CHAR_BIT - 2)) - 1)
15070 time_t_min = (! time_t_signed
15072 : time_t_signed_magnitude
15076 delta = time_t_max / 997; /* a suitable prime number */
15077 for (i = 0; i < N_STRINGS; i++)
15080 putenv (tz_strings[i]);
15082 for (t = 0; t <= time_t_max - delta; t += delta)
15083 if (! mktime_test (t))
15085 if (! (mktime_test ((time_t) 1)
15086 && mktime_test ((time_t) (60 * 60))
15087 && mktime_test ((time_t) (60 * 60 * 24))))
15090 for (j = 1; ; j <<= 1)
15091 if (! bigtime_test (j))
15093 else if (INT_MAX / 2 < j)
15095 if (! bigtime_test (INT_MAX))
15098 if (! irix_6_4_bug ())
15100 if (! spring_forward_gap ())
15102 if (! year_2050_test ())
15107 if ac_fn_c_try_run
"$LINENO"; then :
15108 ac_cv_func_working_mktime
=yes
15110 ac_cv_func_working_mktime
=no
15112 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
15113 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
15117 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_working_mktime" >&5
15118 $as_echo "$ac_cv_func_working_mktime" >&6; }
15119 if test $ac_cv_func_working_mktime = no
; then
15128 gl_LIBOBJS
="$gl_LIBOBJS mktime.$ac_objext"
15132 if test $ac_cv_func_working_mktime = no
; then
15148 # Code from module multiarch:
15150 # Code from module stdbool:
15154 # Define two additional variables used in the Makefile substitution.
15156 if test "$ac_cv_header_stdbool_h" = yes; then
15159 STDBOOL_H
='stdbool.h'
15163 if test "$ac_cv_type__Bool" = yes; then
15170 # Code from module stddef:
15174 if test $gt_cv_c_wchar_t = no
; then
15178 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether NULL can be used in arbitrary expressions" >&5
15179 $as_echo_n "checking whether NULL can be used in arbitrary expressions... " >&6; }
15180 if ${gl_cv_decl_null_works+:} false
; then :
15181 $as_echo_n "(cached) " >&6
15183 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
15184 /* end confdefs.h. */
15185 #include <stddef.h>
15186 int test[2 * (sizeof NULL == sizeof (void *)) -1];
15196 if ac_fn_c_try_compile
"$LINENO"; then :
15197 gl_cv_decl_null_works
=yes
15199 gl_cv_decl_null_works
=no
15201 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
15203 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_decl_null_works" >&5
15204 $as_echo "$gl_cv_decl_null_works" >&6; }
15205 if test $gl_cv_decl_null_works = no
; then
15209 if test -n "$STDDEF_H"; then
15218 if test $gl_cv_have_include_next = yes; then
15219 gl_cv_next_stddef_h
='<'stddef.h
'>'
15221 { $as_echo "$as_me:${as_lineno-$LINENO}: checking absolute name of <stddef.h>" >&5
15222 $as_echo_n "checking absolute name of <stddef.h>... " >&6; }
15223 if ${gl_cv_next_stddef_h+:} false
; then :
15224 $as_echo_n "(cached) " >&6
15227 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
15228 /* end confdefs.h. */
15229 #include <stddef.h>
15233 aix
*) gl_absname_cpp
="$ac_cpp -C" ;;
15234 *) gl_absname_cpp
="$ac_cpp" ;;
15236 gl_cv_next_stddef_h
='"'`(eval "$gl_absname_cpp conftest.$ac_ext") 2>&5 |
15237 sed -n '\#/stddef.h#{
15238 s#.*"\(.*/stddef.h\)".*#\1#
15246 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_next_stddef_h" >&5
15247 $as_echo "$gl_cv_next_stddef_h" >&6; }
15249 NEXT_STDDEF_H
=$gl_cv_next_stddef_h
15251 if test $gl_cv_have_include_next = yes ||
test $gl_cv_have_include_next = buggy
; then
15252 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include_next'
15253 gl_next_as_first_directive
='<'stddef.h
'>'
15255 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include'
15256 gl_next_as_first_directive
=$gl_cv_next_stddef_h
15258 NEXT_AS_FIRST_DIRECTIVE_STDDEF_H
=$gl_next_as_first_directive
15265 # Code from module strftime:
15276 gl_LIBOBJS
="$gl_LIBOBJS strftime.$ac_objext"
15279 # This defines (or not) HAVE_TZNAME and HAVE_TM_ZONE.
15287 $as_echo "#define my_strftime nstrftime" >>confdefs.h
15291 # Code from module time:
15295 # Code from module time_r:
15303 if test $ac_cv_have_decl_localtime_r = no
; then
15304 HAVE_DECL_LOCALTIME_R
=0
15308 if test $ac_cv_func_localtime_r = yes; then
15310 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether localtime_r is compatible with its POSIX signature" >&5
15311 $as_echo_n "checking whether localtime_r is compatible with its POSIX signature... " >&6; }
15312 if ${gl_cv_time_r_posix+:} false
; then :
15313 $as_echo_n "(cached) " >&6
15315 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
15316 /* end confdefs.h. */
15321 /* We don't need to append 'restrict's to the argument types,
15322 even though the POSIX signature has the 'restrict's,
15323 since C99 says they can't affect type compatibility. */
15324 struct tm * (*ptr) (time_t const *, struct tm *) = localtime_r;
15326 /* Check the return type is a pointer.
15327 On HP-UX 10 it is 'int'. */
15328 *localtime_r (0, 0);
15334 if ac_fn_c_try_compile
"$LINENO"; then :
15335 gl_cv_time_r_posix
=yes
15337 gl_cv_time_r_posix
=no
15339 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
15342 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_time_r_posix" >&5
15343 $as_echo "$gl_cv_time_r_posix" >&6; }
15344 if test $gl_cv_time_r_posix = yes; then
15345 REPLACE_LOCALTIME_R
=0
15347 REPLACE_LOCALTIME_R
=1
15352 if test $HAVE_LOCALTIME_R = 0 ||
test $REPLACE_LOCALTIME_R = 1; then
15361 gl_LIBOBJS
="$gl_LIBOBJS time_r.$ac_objext"
15375 # Code from module unistd:
15389 if test $gl_cv_have_include_next = yes; then
15390 gl_cv_next_unistd_h
='<'unistd.h
'>'
15392 { $as_echo "$as_me:${as_lineno-$LINENO}: checking absolute name of <unistd.h>" >&5
15393 $as_echo_n "checking absolute name of <unistd.h>... " >&6; }
15394 if ${gl_cv_next_unistd_h+:} false
; then :
15395 $as_echo_n "(cached) " >&6
15398 if test $ac_cv_header_unistd_h = yes; then
15401 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
15402 /* end confdefs.h. */
15403 #include <unistd.h>
15407 aix
*) gl_absname_cpp
="$ac_cpp -C" ;;
15408 *) gl_absname_cpp
="$ac_cpp" ;;
15410 gl_cv_next_unistd_h
='"'`(eval "$gl_absname_cpp conftest.$ac_ext") 2>&5 |
15411 sed -n '\#/unistd.h#{
15412 s#.*"\(.*/unistd.h\)".*#\1#
15418 gl_cv_next_unistd_h
='<'unistd.h
'>'
15423 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_next_unistd_h" >&5
15424 $as_echo "$gl_cv_next_unistd_h" >&6; }
15426 NEXT_UNISTD_H
=$gl_cv_next_unistd_h
15428 if test $gl_cv_have_include_next = yes ||
test $gl_cv_have_include_next = buggy
; then
15429 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include_next'
15430 gl_next_as_first_directive
='<'unistd.h
'>'
15432 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include'
15433 gl_next_as_first_directive
=$gl_cv_next_unistd_h
15435 NEXT_AS_FIRST_DIRECTIVE_UNISTD_H
=$gl_next_as_first_directive
15440 if test $ac_cv_header_unistd_h = yes; then
15449 # Code from module warn-on-use:
15450 # End of code from modules
15471 gl_source_base
='tests'
15472 gltests_WITNESS
=IN_
`echo "${PACKAGE-$PACKAGE_TARNAME}" | LC_ALL=C tr abcdefghijklmnopqrstuvwxyz ABCDEFGHIJKLMNOPQRSTUVWXYZ | LC_ALL=C sed -e 's/[^A-Z0-9_]/_/g'`_GNULIB_TESTS
15474 gl_module_indicator_condition
=$gltests_WITNESS
15484 LIBGNU_LIBDEPS
="$gl_libdeps"
15486 LIBGNU_LTLIBDEPS
="$gl_ltlibdeps"
15491 for ac_func
in grantpt
15493 ac_fn_c_check_func
"$LINENO" "grantpt" "ac_cv_func_grantpt"
15494 if test "x$ac_cv_func_grantpt" = xyes
; then :
15495 cat >>confdefs.h
<<_ACEOF
15496 #define HAVE_GRANTPT 1
15503 # PTY-related GNU extensions.
15504 for ac_func
in getpt
15506 ac_fn_c_check_func
"$LINENO" "getpt" "ac_cv_func_getpt"
15507 if test "x$ac_cv_func_getpt" = xyes
; then :
15508 cat >>confdefs.h
<<_ACEOF
15509 #define HAVE_GETPT 1
15516 # Check this now, so that we will NOT find the above functions in ncurses.
15517 # That is because we have not set up to link ncurses in lib-src.
15518 # It's better to believe a function is not available
15519 # than to expect to find it in ncurses.
15520 # Also we need tputs and friends to be able to build at all.
15521 have_tputs_et_al
=true
15522 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing tputs" >&5
15523 $as_echo_n "checking for library containing tputs... " >&6; }
15524 if ${ac_cv_search_tputs+:} false
; then :
15525 $as_echo_n "(cached) " >&6
15527 ac_func_search_save_LIBS
=$LIBS
15528 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
15529 /* end confdefs.h. */
15531 /* Override any GCC internal prototype to avoid an error.
15532 Use char because int might match the return type of a GCC
15533 builtin and then its argument prototype would still apply. */
15546 for ac_lib
in '' ncurses terminfo termcap
; do
15547 if test -z "$ac_lib"; then
15548 ac_res
="none required"
15551 LIBS
="-l$ac_lib $ac_func_search_save_LIBS"
15553 if ac_fn_c_try_link
"$LINENO"; then :
15554 ac_cv_search_tputs
=$ac_res
15556 rm -f core conftest.err conftest.
$ac_objext \
15558 if ${ac_cv_search_tputs+:} false
; then :
15562 if ${ac_cv_search_tputs+:} false
; then :
15565 ac_cv_search_tputs
=no
15567 rm conftest.
$ac_ext
15568 LIBS
=$ac_func_search_save_LIBS
15570 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_tputs" >&5
15571 $as_echo "$ac_cv_search_tputs" >&6; }
15572 ac_res
=$ac_cv_search_tputs
15573 if test "$ac_res" != no
; then :
15574 test "$ac_res" = "none required" || LIBS
="$ac_res $LIBS"
15577 have_tputs_et_al
=false
15580 if test "$have_tputs_et_al" != true
; then
15581 as_fn_error $?
"I couldn't find termcap functions (tputs and friends).
15582 Maybe some development libraries/packages are missing? Try installing
15583 libncurses-dev(el), libterminfo-dev(el) or similar." "$LINENO" 5
15585 # Must define this when any termcap library is found.
15587 $as_echo "#define HAVE_LIBNCURSES 1" >>confdefs.h
15589 ## FIXME This was the cpp logic, but I am not sure it is right.
15590 ## The above test has not necessarily found libncurses.
15591 HAVE_LIBNCURSES
=yes
15593 ## Use terminfo instead of termcap?
15594 ## Note only system files NOT using terminfo are:
15595 ## freebsd < 40000, ms-w32, msdos, netbsd < 599002500, and
15596 ## darwin|gnu without ncurses.
15600 ## cygwin: Fewer environment variables to go wrong, more terminal types.
15601 ## hpux10-20: Use the system provided termcap(3) library.
15602 ## openbsd: David Mazieres <dm@reeducation-labor.lcs.mit.edu> says this
15603 ## is necessary. Otherwise Emacs dumps core when run -nw.
15604 aix4-2|cygwin|hpux
*|irix6-5|openbsd|sol2
*|unixware
) TERMINFO
=yes ;;
15606 ## darwin: Prevents crashes when running Emacs in Terminal.app under 10.2.
15607 ## The ncurses library has been moved out of the System framework in
15608 ## Mac OS X 10.2. So if configure detects it, set the command-line
15609 ## option to use it.
15611 ## (HAVE_LIBNCURSES was not always true, but is since 2010-03-18.)
15612 if test "x$HAVE_LIBNCURSES" = "xyes"; then
15614 LIBS_TERMCAP
="-lncurses"
15619 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether FreeBSD is new enough to use terminfo" >&5
15620 $as_echo_n "checking whether FreeBSD is new enough to use terminfo... " >&6; }
15621 if ${emacs_cv_freebsd_terminfo+:} false
; then :
15622 $as_echo_n "(cached) " >&6
15624 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
15625 /* end confdefs.h. */
15626 #include <osreldate.h>
15630 #if __FreeBSD_version < 400000
15638 if ac_fn_c_try_link
"$LINENO"; then :
15639 emacs_cv_freebsd_terminfo
=yes
15641 emacs_cv_freebsd_terminfo
=no
15643 rm -f core conftest.err conftest.
$ac_objext \
15644 conftest
$ac_exeext conftest.
$ac_ext
15648 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $emacs_cv_freebsd_terminfo" >&5
15649 $as_echo "$emacs_cv_freebsd_terminfo" >&6; }
15651 if test $emacs_cv_freebsd_terminfo = yes; then
15653 LIBS_TERMCAP
="-lncurses"
15655 LIBS_TERMCAP
="-ltermcap"
15660 if test $ac_cv_search_tputs = -lterminfo; then
15662 LIBS_TERMCAP
="-lterminfo"
15664 LIBS_TERMCAP
="-ltermcap"
15671 ## hpux: Make sure we get select from libc rather than from libcurses
15672 ## because libcurses on HPUX 10.10 has a broken version of select.
15673 ## We used to use -lc -lcurses, but this may be cleaner.
15674 hpux
*) LIBS_TERMCAP
="-ltermcap" ;;
15676 openbsd
) LIBS_TERMCAP
="-lncurses" ;;
15678 ## Must use system termcap, if we use any termcap. It does special things.
15679 sol2
*) test "$TERMINFO" != yes && LIBS_TERMCAP
="-ltermcap" ;;
15682 TERMCAP_OBJ
=tparam.o
15683 if test $TERMINFO = yes; then
15685 $as_echo "#define TERMINFO 1" >>confdefs.h
15688 ## Default used to be -ltermcap. Add a case above if need something else.
15689 test "x$LIBS_TERMCAP" = "x" && LIBS_TERMCAP
="-lcurses"
15691 TERMCAP_OBJ
=terminfo.o
15697 # Do we have res_init, for detecting changes in /etc/resolv.conf?
15699 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
15700 /* end confdefs.h. */
15701 #include <netinet/in.h>
15702 #include <arpa/nameser.h>
15703 #include <resolv.h>
15712 if ac_fn_c_try_link
"$LINENO"; then :
15717 rm -f core conftest.err conftest.
$ac_objext \
15718 conftest
$ac_exeext conftest.
$ac_ext
15719 if test "$have_res_init" = no
; then
15721 LIBS
="$LIBS -lresolv"
15722 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for res_init with -lresolv" >&5
15723 $as_echo_n "checking for res_init with -lresolv... " >&6; }
15724 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
15725 /* end confdefs.h. */
15726 #include <netinet/in.h>
15727 #include <arpa/nameser.h>
15728 #include <resolv.h>
15737 if ac_fn_c_try_link
"$LINENO"; then :
15742 rm -f core conftest.err conftest.
$ac_objext \
15743 conftest
$ac_exeext conftest.
$ac_ext
15744 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_res_init" >&5
15745 $as_echo "$have_res_init" >&6; }
15746 if test "$have_res_init" = yes ; then
15752 if test "$have_res_init" = yes; then
15754 $as_echo "#define HAVE_RES_INIT 1" >>confdefs.h
15758 # Do we need the Hesiod library to provide the support routines?
15760 if test "$with_hesiod" != no
; then
15761 # Don't set $LIBS here -- see comments above. FIXME which comments?
15762 ac_fn_c_check_func
"$LINENO" "res_send" "ac_cv_func_res_send"
15763 if test "x$ac_cv_func_res_send" = xyes
; then :
15766 ac_fn_c_check_func
"$LINENO" "__res_send" "ac_cv_func___res_send"
15767 if test "x$ac_cv_func___res_send" = xyes
; then :
15770 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for res_send in -lresolv" >&5
15771 $as_echo_n "checking for res_send in -lresolv... " >&6; }
15772 if ${ac_cv_lib_resolv_res_send+:} false
; then :
15773 $as_echo_n "(cached) " >&6
15775 ac_check_lib_save_LIBS
=$LIBS
15776 LIBS
="-lresolv $LIBS"
15777 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
15778 /* end confdefs.h. */
15780 /* Override any GCC internal prototype to avoid an error.
15781 Use char because int might match the return type of a GCC
15782 builtin and then its argument prototype would still apply. */
15790 return res_send ();
15795 if ac_fn_c_try_link
"$LINENO"; then :
15796 ac_cv_lib_resolv_res_send
=yes
15798 ac_cv_lib_resolv_res_send
=no
15800 rm -f core conftest.err conftest.
$ac_objext \
15801 conftest
$ac_exeext conftest.
$ac_ext
15802 LIBS
=$ac_check_lib_save_LIBS
15804 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_resolv_res_send" >&5
15805 $as_echo "$ac_cv_lib_resolv_res_send" >&6; }
15806 if test "x$ac_cv_lib_resolv_res_send" = xyes
; then :
15809 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for __res_send in -lresolv" >&5
15810 $as_echo_n "checking for __res_send in -lresolv... " >&6; }
15811 if ${ac_cv_lib_resolv___res_send+:} false
; then :
15812 $as_echo_n "(cached) " >&6
15814 ac_check_lib_save_LIBS
=$LIBS
15815 LIBS
="-lresolv $LIBS"
15816 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
15817 /* end confdefs.h. */
15819 /* Override any GCC internal prototype to avoid an error.
15820 Use char because int might match the return type of a GCC
15821 builtin and then its argument prototype would still apply. */
15825 char __res_send ();
15829 return __res_send ();
15834 if ac_fn_c_try_link
"$LINENO"; then :
15835 ac_cv_lib_resolv___res_send
=yes
15837 ac_cv_lib_resolv___res_send
=no
15839 rm -f core conftest.err conftest.
$ac_objext \
15840 conftest
$ac_exeext conftest.
$ac_ext
15841 LIBS
=$ac_check_lib_save_LIBS
15843 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_resolv___res_send" >&5
15844 $as_echo "$ac_cv_lib_resolv___res_send" >&6; }
15845 if test "x$ac_cv_lib_resolv___res_send" = xyes
; then :
15855 if test "$resolv" = yes ; then
15860 ac_fn_c_check_func
"$LINENO" "hes_getmailhost" "ac_cv_func_hes_getmailhost"
15861 if test "x$ac_cv_func_hes_getmailhost" = xyes
; then :
15864 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for hes_getmailhost in -lhesiod" >&5
15865 $as_echo_n "checking for hes_getmailhost in -lhesiod... " >&6; }
15866 if ${ac_cv_lib_hesiod_hes_getmailhost+:} false
; then :
15867 $as_echo_n "(cached) " >&6
15869 ac_check_lib_save_LIBS
=$LIBS
15870 LIBS
="-lhesiod $RESOLVLIB $LIBS"
15871 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
15872 /* end confdefs.h. */
15874 /* Override any GCC internal prototype to avoid an error.
15875 Use char because int might match the return type of a GCC
15876 builtin and then its argument prototype would still apply. */
15880 char hes_getmailhost ();
15884 return hes_getmailhost ();
15889 if ac_fn_c_try_link
"$LINENO"; then :
15890 ac_cv_lib_hesiod_hes_getmailhost
=yes
15892 ac_cv_lib_hesiod_hes_getmailhost
=no
15894 rm -f core conftest.err conftest.
$ac_objext \
15895 conftest
$ac_exeext conftest.
$ac_ext
15896 LIBS
=$ac_check_lib_save_LIBS
15898 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_hesiod_hes_getmailhost" >&5
15899 $as_echo "$ac_cv_lib_hesiod_hes_getmailhost" >&6; }
15900 if test "x$ac_cv_lib_hesiod_hes_getmailhost" = xyes
; then :
15909 if test x
"$hesiod" = xyes
; then
15911 $as_echo "#define HAVE_LIBHESIOD 1" >>confdefs.h
15918 # Do we need libresolv (due to res_init or Hesiod)?
15919 if test "$resolv" = yes ; then
15921 $as_echo "#define HAVE_LIBRESOLV 1" >>confdefs.h
15929 # These tell us which Kerberos-related libraries to use.
15936 if test "${with_kerberos}" != no
; then
15937 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for com_err in -lcom_err" >&5
15938 $as_echo_n "checking for com_err in -lcom_err... " >&6; }
15939 if ${ac_cv_lib_com_err_com_err+:} false
; then :
15940 $as_echo_n "(cached) " >&6
15942 ac_check_lib_save_LIBS
=$LIBS
15943 LIBS
="-lcom_err $LIBS"
15944 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
15945 /* end confdefs.h. */
15947 /* Override any GCC internal prototype to avoid an error.
15948 Use char because int might match the return type of a GCC
15949 builtin and then its argument prototype would still apply. */
15962 if ac_fn_c_try_link
"$LINENO"; then :
15963 ac_cv_lib_com_err_com_err
=yes
15965 ac_cv_lib_com_err_com_err
=no
15967 rm -f core conftest.err conftest.
$ac_objext \
15968 conftest
$ac_exeext conftest.
$ac_ext
15969 LIBS
=$ac_check_lib_save_LIBS
15971 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_com_err_com_err" >&5
15972 $as_echo "$ac_cv_lib_com_err_com_err" >&6; }
15973 if test "x$ac_cv_lib_com_err_com_err" = xyes
; then :
15979 if test $have_com_err = yes; then
15980 COM_ERRLIB
=-lcom_err
15981 LIBS
="$COM_ERRLIB $LIBS"
15983 $as_echo "#define HAVE_LIBCOM_ERR 1" >>confdefs.h
15986 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for mit_des_cbc_encrypt in -lcrypto" >&5
15987 $as_echo_n "checking for mit_des_cbc_encrypt in -lcrypto... " >&6; }
15988 if ${ac_cv_lib_crypto_mit_des_cbc_encrypt+:} false
; then :
15989 $as_echo_n "(cached) " >&6
15991 ac_check_lib_save_LIBS
=$LIBS
15992 LIBS
="-lcrypto $LIBS"
15993 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
15994 /* end confdefs.h. */
15996 /* Override any GCC internal prototype to avoid an error.
15997 Use char because int might match the return type of a GCC
15998 builtin and then its argument prototype would still apply. */
16002 char mit_des_cbc_encrypt ();
16006 return mit_des_cbc_encrypt ();
16011 if ac_fn_c_try_link
"$LINENO"; then :
16012 ac_cv_lib_crypto_mit_des_cbc_encrypt
=yes
16014 ac_cv_lib_crypto_mit_des_cbc_encrypt
=no
16016 rm -f core conftest.err conftest.
$ac_objext \
16017 conftest
$ac_exeext conftest.
$ac_ext
16018 LIBS
=$ac_check_lib_save_LIBS
16020 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_crypto_mit_des_cbc_encrypt" >&5
16021 $as_echo "$ac_cv_lib_crypto_mit_des_cbc_encrypt" >&6; }
16022 if test "x$ac_cv_lib_crypto_mit_des_cbc_encrypt" = xyes
; then :
16028 if test $have_crypto = yes; then
16030 LIBS
="$CRYPTOLIB $LIBS"
16032 $as_echo "#define HAVE_LIBCRYPTO 1" >>confdefs.h
16035 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for mit_des_cbc_encrypt in -lk5crypto" >&5
16036 $as_echo_n "checking for mit_des_cbc_encrypt in -lk5crypto... " >&6; }
16037 if ${ac_cv_lib_k5crypto_mit_des_cbc_encrypt+:} false
; then :
16038 $as_echo_n "(cached) " >&6
16040 ac_check_lib_save_LIBS
=$LIBS
16041 LIBS
="-lk5crypto $LIBS"
16042 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
16043 /* end confdefs.h. */
16045 /* Override any GCC internal prototype to avoid an error.
16046 Use char because int might match the return type of a GCC
16047 builtin and then its argument prototype would still apply. */
16051 char mit_des_cbc_encrypt ();
16055 return mit_des_cbc_encrypt ();
16060 if ac_fn_c_try_link
"$LINENO"; then :
16061 ac_cv_lib_k5crypto_mit_des_cbc_encrypt
=yes
16063 ac_cv_lib_k5crypto_mit_des_cbc_encrypt
=no
16065 rm -f core conftest.err conftest.
$ac_objext \
16066 conftest
$ac_exeext conftest.
$ac_ext
16067 LIBS
=$ac_check_lib_save_LIBS
16069 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_k5crypto_mit_des_cbc_encrypt" >&5
16070 $as_echo "$ac_cv_lib_k5crypto_mit_des_cbc_encrypt" >&6; }
16071 if test "x$ac_cv_lib_k5crypto_mit_des_cbc_encrypt" = xyes
; then :
16077 if test $have_k5crypto = yes; then
16078 CRYPTOLIB
=-lk5crypto
16079 LIBS
="$CRYPTOLIB $LIBS"
16081 $as_echo "#define HAVE_LIBK5CRYPTO 1" >>confdefs.h
16084 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for krb5_init_context in -lkrb5" >&5
16085 $as_echo_n "checking for krb5_init_context in -lkrb5... " >&6; }
16086 if ${ac_cv_lib_krb5_krb5_init_context+:} false
; then :
16087 $as_echo_n "(cached) " >&6
16089 ac_check_lib_save_LIBS
=$LIBS
16090 LIBS
="-lkrb5 $LIBS"
16091 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
16092 /* end confdefs.h. */
16094 /* Override any GCC internal prototype to avoid an error.
16095 Use char because int might match the return type of a GCC
16096 builtin and then its argument prototype would still apply. */
16100 char krb5_init_context ();
16104 return krb5_init_context ();
16109 if ac_fn_c_try_link
"$LINENO"; then :
16110 ac_cv_lib_krb5_krb5_init_context
=yes
16112 ac_cv_lib_krb5_krb5_init_context
=no
16114 rm -f core conftest.err conftest.
$ac_objext \
16115 conftest
$ac_exeext conftest.
$ac_ext
16116 LIBS
=$ac_check_lib_save_LIBS
16118 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_krb5_krb5_init_context" >&5
16119 $as_echo "$ac_cv_lib_krb5_krb5_init_context" >&6; }
16120 if test "x$ac_cv_lib_krb5_krb5_init_context" = xyes
; then :
16126 if test $have_krb5=yes; then
16128 LIBS
="$KRB5LIB $LIBS"
16130 $as_echo "#define HAVE_LIBKRB5 1" >>confdefs.h
16133 if test "${with_kerberos5}" = no
; then
16134 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for des_cbc_encrypt in -ldes425" >&5
16135 $as_echo_n "checking for des_cbc_encrypt in -ldes425... " >&6; }
16136 if ${ac_cv_lib_des425_des_cbc_encrypt+:} false
; then :
16137 $as_echo_n "(cached) " >&6
16139 ac_check_lib_save_LIBS
=$LIBS
16140 LIBS
="-ldes425 $LIBS"
16141 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
16142 /* end confdefs.h. */
16144 /* Override any GCC internal prototype to avoid an error.
16145 Use char because int might match the return type of a GCC
16146 builtin and then its argument prototype would still apply. */
16150 char des_cbc_encrypt ();
16154 return des_cbc_encrypt ();
16159 if ac_fn_c_try_link
"$LINENO"; then :
16160 ac_cv_lib_des425_des_cbc_encrypt
=yes
16162 ac_cv_lib_des425_des_cbc_encrypt
=no
16164 rm -f core conftest.err conftest.
$ac_objext \
16165 conftest
$ac_exeext conftest.
$ac_ext
16166 LIBS
=$ac_check_lib_save_LIBS
16168 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_des425_des_cbc_encrypt" >&5
16169 $as_echo "$ac_cv_lib_des425_des_cbc_encrypt" >&6; }
16170 if test "x$ac_cv_lib_des425_des_cbc_encrypt" = xyes
; then :
16176 if test $have_des425 = yes; then
16178 LIBS
="$DESLIB $LIBS"
16180 $as_echo "#define HAVE_LIBDES425 1" >>confdefs.h
16183 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for des_cbc_encrypt in -ldes" >&5
16184 $as_echo_n "checking for des_cbc_encrypt in -ldes... " >&6; }
16185 if ${ac_cv_lib_des_des_cbc_encrypt+:} false
; then :
16186 $as_echo_n "(cached) " >&6
16188 ac_check_lib_save_LIBS
=$LIBS
16190 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
16191 /* end confdefs.h. */
16193 /* Override any GCC internal prototype to avoid an error.
16194 Use char because int might match the return type of a GCC
16195 builtin and then its argument prototype would still apply. */
16199 char des_cbc_encrypt ();
16203 return des_cbc_encrypt ();
16208 if ac_fn_c_try_link
"$LINENO"; then :
16209 ac_cv_lib_des_des_cbc_encrypt
=yes
16211 ac_cv_lib_des_des_cbc_encrypt
=no
16213 rm -f core conftest.err conftest.
$ac_objext \
16214 conftest
$ac_exeext conftest.
$ac_ext
16215 LIBS
=$ac_check_lib_save_LIBS
16217 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_des_des_cbc_encrypt" >&5
16218 $as_echo "$ac_cv_lib_des_des_cbc_encrypt" >&6; }
16219 if test "x$ac_cv_lib_des_des_cbc_encrypt" = xyes
; then :
16225 if test $have_des = yes; then
16227 LIBS
="$DESLIB $LIBS"
16229 $as_echo "#define HAVE_LIBDES 1" >>confdefs.h
16233 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for krb_get_cred in -lkrb4" >&5
16234 $as_echo_n "checking for krb_get_cred in -lkrb4... " >&6; }
16235 if ${ac_cv_lib_krb4_krb_get_cred+:} false
; then :
16236 $as_echo_n "(cached) " >&6
16238 ac_check_lib_save_LIBS
=$LIBS
16239 LIBS
="-lkrb4 $LIBS"
16240 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
16241 /* end confdefs.h. */
16243 /* Override any GCC internal prototype to avoid an error.
16244 Use char because int might match the return type of a GCC
16245 builtin and then its argument prototype would still apply. */
16249 char krb_get_cred ();
16253 return krb_get_cred ();
16258 if ac_fn_c_try_link
"$LINENO"; then :
16259 ac_cv_lib_krb4_krb_get_cred
=yes
16261 ac_cv_lib_krb4_krb_get_cred
=no
16263 rm -f core conftest.err conftest.
$ac_objext \
16264 conftest
$ac_exeext conftest.
$ac_ext
16265 LIBS
=$ac_check_lib_save_LIBS
16267 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_krb4_krb_get_cred" >&5
16268 $as_echo "$ac_cv_lib_krb4_krb_get_cred" >&6; }
16269 if test "x$ac_cv_lib_krb4_krb_get_cred" = xyes
; then :
16275 if test $have_krb4 = yes; then
16277 LIBS
="$KRB4LIB $LIBS"
16279 $as_echo "#define HAVE_LIBKRB4 1" >>confdefs.h
16282 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for krb_get_cred in -lkrb" >&5
16283 $as_echo_n "checking for krb_get_cred in -lkrb... " >&6; }
16284 if ${ac_cv_lib_krb_krb_get_cred+:} false
; then :
16285 $as_echo_n "(cached) " >&6
16287 ac_check_lib_save_LIBS
=$LIBS
16289 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
16290 /* end confdefs.h. */
16292 /* Override any GCC internal prototype to avoid an error.
16293 Use char because int might match the return type of a GCC
16294 builtin and then its argument prototype would still apply. */
16298 char krb_get_cred ();
16302 return krb_get_cred ();
16307 if ac_fn_c_try_link
"$LINENO"; then :
16308 ac_cv_lib_krb_krb_get_cred
=yes
16310 ac_cv_lib_krb_krb_get_cred
=no
16312 rm -f core conftest.err conftest.
$ac_objext \
16313 conftest
$ac_exeext conftest.
$ac_ext
16314 LIBS
=$ac_check_lib_save_LIBS
16316 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_krb_krb_get_cred" >&5
16317 $as_echo "$ac_cv_lib_krb_krb_get_cred" >&6; }
16318 if test "x$ac_cv_lib_krb_krb_get_cred" = xyes
; then :
16324 if test $have_krb = yes; then
16326 LIBS
="$KRB4LIB $LIBS"
16328 $as_echo "#define HAVE_LIBKRB 1" >>confdefs.h
16334 if test "${with_kerberos5}" != no
; then
16335 for ac_header
in krb5.h
16337 ac_fn_c_check_header_mongrel
"$LINENO" "krb5.h" "ac_cv_header_krb5_h" "$ac_includes_default"
16338 if test "x$ac_cv_header_krb5_h" = xyes
; then :
16339 cat >>confdefs.h
<<_ACEOF
16340 #define HAVE_KRB5_H 1
16342 ac_fn_c_check_member
"$LINENO" "krb5_error" "text" "ac_cv_member_krb5_error_text" "#include <krb5.h>
16344 if test "x$ac_cv_member_krb5_error_text" = xyes
; then :
16346 cat >>confdefs.h
<<_ACEOF
16347 #define HAVE_KRB5_ERROR_TEXT 1
16352 ac_fn_c_check_member
"$LINENO" "krb5_error" "e_text" "ac_cv_member_krb5_error_e_text" "#include <krb5.h>
16354 if test "x$ac_cv_member_krb5_error_e_text" = xyes
; then :
16356 cat >>confdefs.h
<<_ACEOF
16357 #define HAVE_KRB5_ERROR_E_TEXT 1
16368 for ac_header
in des.h
16370 ac_fn_c_check_header_mongrel
"$LINENO" "des.h" "ac_cv_header_des_h" "$ac_includes_default"
16371 if test "x$ac_cv_header_des_h" = xyes
; then :
16372 cat >>confdefs.h
<<_ACEOF
16373 #define HAVE_DES_H 1
16377 for ac_header
in kerberosIV
/des.h
16379 ac_fn_c_check_header_mongrel
"$LINENO" "kerberosIV/des.h" "ac_cv_header_kerberosIV_des_h" "$ac_includes_default"
16380 if test "x$ac_cv_header_kerberosIV_des_h" = xyes
; then :
16381 cat >>confdefs.h
<<_ACEOF
16382 #define HAVE_KERBEROSIV_DES_H 1
16386 for ac_header
in kerberos
/des.h
16388 ac_fn_c_check_header_mongrel
"$LINENO" "kerberos/des.h" "ac_cv_header_kerberos_des_h" "$ac_includes_default"
16389 if test "x$ac_cv_header_kerberos_des_h" = xyes
; then :
16390 cat >>confdefs.h
<<_ACEOF
16391 #define HAVE_KERBEROS_DES_H 1
16406 for ac_header
in krb.h
16408 ac_fn_c_check_header_mongrel
"$LINENO" "krb.h" "ac_cv_header_krb_h" "$ac_includes_default"
16409 if test "x$ac_cv_header_krb_h" = xyes
; then :
16410 cat >>confdefs.h
<<_ACEOF
16411 #define HAVE_KRB_H 1
16415 for ac_header
in kerberosIV
/krb.h
16417 ac_fn_c_check_header_mongrel
"$LINENO" "kerberosIV/krb.h" "ac_cv_header_kerberosIV_krb_h" "$ac_includes_default"
16418 if test "x$ac_cv_header_kerberosIV_krb_h" = xyes
; then :
16419 cat >>confdefs.h
<<_ACEOF
16420 #define HAVE_KERBEROSIV_KRB_H 1
16424 for ac_header
in kerberos
/krb.h
16426 ac_fn_c_check_header_mongrel
"$LINENO" "kerberos/krb.h" "ac_cv_header_kerberos_krb_h" "$ac_includes_default"
16427 if test "x$ac_cv_header_kerberos_krb_h" = xyes
; then :
16428 cat >>confdefs.h
<<_ACEOF
16429 #define HAVE_KERBEROS_KRB_H 1
16445 for ac_header
in com_err.h
16447 ac_fn_c_check_header_mongrel
"$LINENO" "com_err.h" "ac_cv_header_com_err_h" "$ac_includes_default"
16448 if test "x$ac_cv_header_com_err_h" = xyes
; then :
16449 cat >>confdefs.h
<<_ACEOF
16450 #define HAVE_COM_ERR_H 1
16465 # Solaris requires -lintl if you want strerror (which calls dgettext)
16466 # to return localized messages.
16467 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dgettext in -lintl" >&5
16468 $as_echo_n "checking for dgettext in -lintl... " >&6; }
16469 if ${ac_cv_lib_intl_dgettext+:} false
; then :
16470 $as_echo_n "(cached) " >&6
16472 ac_check_lib_save_LIBS
=$LIBS
16473 LIBS
="-lintl $LIBS"
16474 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
16475 /* end confdefs.h. */
16477 /* Override any GCC internal prototype to avoid an error.
16478 Use char because int might match the return type of a GCC
16479 builtin and then its argument prototype would still apply. */
16487 return dgettext ();
16492 if ac_fn_c_try_link
"$LINENO"; then :
16493 ac_cv_lib_intl_dgettext
=yes
16495 ac_cv_lib_intl_dgettext
=no
16497 rm -f core conftest.err conftest.
$ac_objext \
16498 conftest
$ac_exeext conftest.
$ac_ext
16499 LIBS
=$ac_check_lib_save_LIBS
16501 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_intl_dgettext" >&5
16502 $as_echo "$ac_cv_lib_intl_dgettext" >&6; }
16503 if test "x$ac_cv_lib_intl_dgettext" = xyes
; then :
16504 cat >>confdefs.h
<<_ACEOF
16505 #define HAVE_LIBINTL 1
16508 LIBS
="-lintl $LIBS"
16513 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether localtime caches TZ" >&5
16514 $as_echo_n "checking whether localtime caches TZ... " >&6; }
16515 if ${emacs_cv_localtime_cache+:} false
; then :
16516 $as_echo_n "(cached) " >&6
16518 if test x
$ac_cv_func_tzset = xyes
; then
16519 if test "$cross_compiling" = yes; then :
16520 # If we have tzset, assume the worst when cross-compiling.
16521 emacs_cv_localtime_cache
=yes
16523 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
16524 /* end confdefs.h. */
16526 char TZ_GMT0[] = "TZ=GMT0";
16527 char TZ_PST8[] = "TZ=PST8";
16530 time_t now = time ((time_t *) 0);
16531 int hour_GMT0, hour_unset;
16532 if (putenv (TZ_GMT0) != 0)
16534 hour_GMT0 = localtime (&now)->tm_hour;
16536 hour_unset = localtime (&now)->tm_hour;
16537 if (putenv (TZ_PST8) != 0)
16539 if (localtime (&now)->tm_hour == hour_GMT0)
16542 if (localtime (&now)->tm_hour != hour_unset)
16547 if ac_fn_c_try_run
"$LINENO"; then :
16548 emacs_cv_localtime_cache
=no
16550 emacs_cv_localtime_cache
=yes
16552 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
16553 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
16557 # If we lack tzset, report that localtime does not cache TZ,
16558 # since we can't invalidate the cache if we don't have tzset.
16559 emacs_cv_localtime_cache
=no
16562 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $emacs_cv_localtime_cache" >&5
16563 $as_echo "$emacs_cv_localtime_cache" >&6; }
16564 if test $emacs_cv_localtime_cache = yes; then
16566 $as_echo "#define LOCALTIME_CACHE 1" >>confdefs.h
16570 if test "x$HAVE_TIMEVAL" = xyes
; then
16571 for ac_func
in gettimeofday
16573 ac_fn_c_check_func
"$LINENO" "gettimeofday" "ac_cv_func_gettimeofday"
16574 if test "x$ac_cv_func_gettimeofday" = xyes
; then :
16575 cat >>confdefs.h
<<_ACEOF
16576 #define HAVE_GETTIMEOFDAY 1
16582 if test $ac_cv_func_gettimeofday = yes; then
16583 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether gettimeofday can accept two arguments" >&5
16584 $as_echo_n "checking whether gettimeofday can accept two arguments... " >&6; }
16585 if ${emacs_cv_gettimeofday_two_arguments+:} false
; then :
16586 $as_echo_n "(cached) " >&6
16588 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
16589 /* end confdefs.h. */
16591 #ifdef TIME_WITH_SYS_TIME
16592 #include <sys/time.h>
16595 #ifdef HAVE_SYS_TIME_H
16596 #include <sys/time.h>
16604 struct timeval time;
16605 gettimeofday (&time, 0);
16610 if ac_fn_c_try_compile
"$LINENO"; then :
16611 emacs_cv_gettimeofday_two_arguments
=yes
16613 emacs_cv_gettimeofday_two_arguments
=no
16615 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
16617 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $emacs_cv_gettimeofday_two_arguments" >&5
16618 $as_echo "$emacs_cv_gettimeofday_two_arguments" >&6; }
16619 if test $emacs_cv_gettimeofday_two_arguments = no
; then
16621 $as_echo "#define GETTIMEOFDAY_ONE_ARGUMENT 1" >>confdefs.h
16628 ac_fn_c_check_func
"$LINENO" "socket" "ac_cv_func_socket"
16629 if test "x$ac_cv_func_socket" = xyes
; then :
16635 if test $ok_so_far = yes; then
16636 ac_fn_c_check_header_mongrel
"$LINENO" "netinet/in.h" "ac_cv_header_netinet_in_h" "$ac_includes_default"
16637 if test "x$ac_cv_header_netinet_in_h" = xyes
; then :
16645 if test $ok_so_far = yes; then
16646 ac_fn_c_check_header_mongrel
"$LINENO" "arpa/inet.h" "ac_cv_header_arpa_inet_h" "$ac_includes_default"
16647 if test "x$ac_cv_header_arpa_inet_h" = xyes
; then :
16655 if test $ok_so_far = yes; then
16657 $as_echo "#define HAVE_INET_SOCKETS 1" >>confdefs.h
16661 if test -f /usr
/lpp
/X11
/bin
/smt.exp
; then
16663 $as_echo "#define HAVE_AIX_SMT_EXP 1" >>confdefs.h
16667 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether system supports dynamic ptys" >&5
16668 $as_echo_n "checking whether system supports dynamic ptys... " >&6; }
16669 if test -d /dev
/pts
&& ls -d /dev
/ptmx
> /dev
/null
2>&1 ; then
16670 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
16671 $as_echo "yes" >&6; }
16673 $as_echo "#define HAVE_DEV_PTMX 1" >>confdefs.h
16676 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16677 $as_echo "no" >&6; }
16680 ac_fn_c_check_type
"$LINENO" "pid_t" "ac_cv_type_pid_t" "$ac_includes_default"
16681 if test "x$ac_cv_type_pid_t" = xyes
; then :
16685 cat >>confdefs.h
<<_ACEOF
16691 for ac_header
in vfork.h
16693 ac_fn_c_check_header_mongrel
"$LINENO" "vfork.h" "ac_cv_header_vfork_h" "$ac_includes_default"
16694 if test "x$ac_cv_header_vfork_h" = xyes
; then :
16695 cat >>confdefs.h
<<_ACEOF
16696 #define HAVE_VFORK_H 1
16703 for ac_func
in fork vfork
16705 as_ac_var
=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
16706 ac_fn_c_check_func
"$LINENO" "$ac_func" "$as_ac_var"
16707 if eval test \"x\$
"$as_ac_var"\" = x
"yes"; then :
16708 cat >>confdefs.h
<<_ACEOF
16709 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
16715 if test "x$ac_cv_func_fork" = xyes
; then
16716 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working fork" >&5
16717 $as_echo_n "checking for working fork... " >&6; }
16718 if ${ac_cv_func_fork_works+:} false
; then :
16719 $as_echo_n "(cached) " >&6
16721 if test "$cross_compiling" = yes; then :
16722 ac_cv_func_fork_works
=cross
16724 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
16725 /* end confdefs.h. */
16726 $ac_includes_default
16731 /* By Ruediger Kuhlmann. */
16732 return fork () < 0;
16738 if ac_fn_c_try_run
"$LINENO"; then :
16739 ac_cv_func_fork_works
=yes
16741 ac_cv_func_fork_works
=no
16743 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
16744 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
16748 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_fork_works" >&5
16749 $as_echo "$ac_cv_func_fork_works" >&6; }
16752 ac_cv_func_fork_works
=$ac_cv_func_fork
16754 if test "x$ac_cv_func_fork_works" = xcross
; then
16756 *-*-amigaos* |
*-*-msdosdjgpp*)
16757 # Override, as these systems have only a dummy fork() stub
16758 ac_cv_func_fork_works
=no
16761 ac_cv_func_fork_works
=yes
16764 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: result $ac_cv_func_fork_works guessed because of cross compilation" >&5
16765 $as_echo "$as_me: WARNING: result $ac_cv_func_fork_works guessed because of cross compilation" >&2;}
16767 ac_cv_func_vfork_works
=$ac_cv_func_vfork
16768 if test "x$ac_cv_func_vfork" = xyes
; then
16769 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working vfork" >&5
16770 $as_echo_n "checking for working vfork... " >&6; }
16771 if ${ac_cv_func_vfork_works+:} false
; then :
16772 $as_echo_n "(cached) " >&6
16774 if test "$cross_compiling" = yes; then :
16775 ac_cv_func_vfork_works
=cross
16777 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
16778 /* end confdefs.h. */
16779 /* Thanks to Paul Eggert for this test. */
16780 $ac_includes_default
16781 #include <sys/wait.h>
16782 #ifdef HAVE_VFORK_H
16783 # include <vfork.h>
16785 /* On some sparc systems, changes by the child to local and incoming
16786 argument registers are propagated back to the parent. The compiler
16787 is told about this with #include <vfork.h>, but some compilers
16788 (e.g. gcc -O) don't grok <vfork.h>. Test for this by using a
16789 static variable whose address is put into a register that is
16790 clobbered by the vfork. */
16793 sparc_address_test (int arg)
16795 sparc_address_test (arg) int arg;
16798 static pid_t child;
16816 pid_t parent = getpid ();
16819 sparc_address_test (0);
16824 /* Here is another test for sparc vfork register problems. This
16825 test uses lots of local variables, at least as many local
16826 variables as main has allocated so far including compiler
16827 temporaries. 4 locals are enough for gcc 1.40.3 on a Solaris
16828 4.1.3 sparc, but we use 8 to be safe. A buggy compiler should
16829 reuse the register of parent for one of the local variables,
16830 since it will think that parent can't possibly be used any more
16831 in this routine. Assigning to the local variable will thus
16832 munge parent in the parent process. */
16834 p = getpid(), p1 = getpid(), p2 = getpid(), p3 = getpid(),
16835 p4 = getpid(), p5 = getpid(), p6 = getpid(), p7 = getpid();
16836 /* Convince the compiler that p..p7 are live; otherwise, it might
16837 use the same hardware register for all 8 local variables. */
16838 if (p != p1 || p != p2 || p != p3 || p != p4
16839 || p != p5 || p != p6 || p != p7)
16842 /* On some systems (e.g. IRIX 3.3), vfork doesn't separate parent
16843 from child file descriptors. If the child closes a descriptor
16844 before it execs or exits, this munges the parent's descriptor
16845 as well. Test for this by closing stdout in the child. */
16846 _exit(close(fileno(stdout)) != 0);
16851 while (wait(&status) != child)
16854 /* Was there some problem with vforking? */
16857 /* Did the child fail? (This shouldn't happen.) */
16860 /* Did the vfork/compiler bug occur? */
16861 || parent != getpid()
16863 /* Did the file descriptor bug occur? */
16864 || fstat(fileno(stdout), &st) != 0
16869 if ac_fn_c_try_run
"$LINENO"; then :
16870 ac_cv_func_vfork_works
=yes
16872 ac_cv_func_vfork_works
=no
16874 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
16875 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
16879 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_vfork_works" >&5
16880 $as_echo "$ac_cv_func_vfork_works" >&6; }
16883 if test "x$ac_cv_func_fork_works" = xcross
; then
16884 ac_cv_func_vfork_works
=$ac_cv_func_vfork
16885 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: result $ac_cv_func_vfork_works guessed because of cross compilation" >&5
16886 $as_echo "$as_me: WARNING: result $ac_cv_func_vfork_works guessed because of cross compilation" >&2;}
16889 if test "x$ac_cv_func_vfork_works" = xyes
; then
16891 $as_echo "#define HAVE_WORKING_VFORK 1" >>confdefs.h
16895 $as_echo "#define vfork fork" >>confdefs.h
16898 if test "x$ac_cv_func_fork_works" = xyes
; then
16900 $as_echo "#define HAVE_WORKING_FORK 1" >>confdefs.h
16905 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for nl_langinfo and CODESET" >&5
16906 $as_echo_n "checking for nl_langinfo and CODESET... " >&6; }
16907 if ${emacs_cv_langinfo_codeset+:} false
; then :
16908 $as_echo_n "(cached) " >&6
16910 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
16911 /* end confdefs.h. */
16912 #include <langinfo.h>
16916 char* cs = nl_langinfo(CODESET);
16921 if ac_fn_c_try_link
"$LINENO"; then :
16922 emacs_cv_langinfo_codeset
=yes
16924 emacs_cv_langinfo_codeset
=no
16926 rm -f core conftest.err conftest.
$ac_objext \
16927 conftest
$ac_exeext conftest.
$ac_ext
16930 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $emacs_cv_langinfo_codeset" >&5
16931 $as_echo "$emacs_cv_langinfo_codeset" >&6; }
16932 if test $emacs_cv_langinfo_codeset = yes; then
16934 $as_echo "#define HAVE_LANGINFO_CODESET 1" >>confdefs.h
16938 ac_fn_c_check_type
"$LINENO" "size_t" "ac_cv_type_size_t" "$ac_includes_default"
16939 if test "x$ac_cv_type_size_t" = xyes
; then :
16941 cat >>confdefs.h
<<_ACEOF
16942 #define HAVE_SIZE_T 1
16949 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for mbstate_t" >&5
16950 $as_echo_n "checking for mbstate_t... " >&6; }
16951 if ${ac_cv_type_mbstate_t+:} false
; then :
16952 $as_echo_n "(cached) " >&6
16954 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
16955 /* end confdefs.h. */
16956 $ac_includes_default
16957 # include <wchar.h>
16961 mbstate_t x; return sizeof x;
16966 if ac_fn_c_try_compile
"$LINENO"; then :
16967 ac_cv_type_mbstate_t
=yes
16969 ac_cv_type_mbstate_t
=no
16971 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
16973 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_mbstate_t" >&5
16974 $as_echo "$ac_cv_type_mbstate_t" >&6; }
16975 if test $ac_cv_type_mbstate_t = yes; then
16977 $as_echo "#define HAVE_MBSTATE_T 1" >>confdefs.h
16981 $as_echo "#define mbstate_t int" >>confdefs.h
16985 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for C restricted array declarations" >&5
16986 $as_echo_n "checking for C restricted array declarations... " >&6; }
16987 if ${emacs_cv_c_restrict_arr+:} false
; then :
16988 $as_echo_n "(cached) " >&6
16990 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
16991 /* end confdefs.h. */
16992 void fred (int x[__restrict]);
17001 if ac_fn_c_try_compile
"$LINENO"; then :
17002 emacs_cv_c_restrict_arr
=yes
17004 emacs_cv_c_restrict_arr
=no
17006 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
17008 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $emacs_cv_c_restrict_arr" >&5
17009 $as_echo "$emacs_cv_c_restrict_arr" >&6; }
17010 if test "$emacs_cv_c_restrict_arr" = yes; then
17012 $as_echo "#define __restrict_arr __restrict" >>confdefs.h
17018 # Set up the CFLAGS for real compilation, so we can substitute it.
17019 CFLAGS
="$REAL_CFLAGS"
17020 CPPFLAGS
="$REAL_CPPFLAGS"
17022 ## Hack to detect a buggy GCC version.
17023 if test "x$GCC" = xyes \
17024 && test x
"`$CC --version 2> /dev/null | grep 'gcc.* 4.5.0'`" != x \
17025 && test x
"`echo $CFLAGS | grep '\-O[23]'`" != x \
17026 && test x
"`echo $CFLAGS | grep '\-fno-optimize-sibling-calls'`" = x
; then
17027 as_fn_error $?
"GCC 4.5.0 has problems compiling Emacs; see etc/PROBLEMS'." "$LINENO" 5
17030 version
=$PACKAGE_VERSION
17032 ### Specify what sort of things we'll be editing into Makefile and config.h.
17033 ### Use configuration here uncanonicalized to avoid exceeding size limits.
17057 ## FIXME? Nothing uses @LD_SWITCH_X_SITE@.
17058 ## src/Makefile.in did add LD_SWITCH_X_SITE (as a cpp define) to the
17059 ## end of LIBX_BASE, but nothing ever set it.
17064 ## Used in lwlib/Makefile.in.
17066 if test -n "${machfile}"; then
17067 M_FILE
="\$(srcdir)/${machfile}"
17071 S_FILE
="\$(srcdir)/${opsysfile}"
17083 cat >>confdefs.h
<<_ACEOF
17084 #define EMACS_CONFIGURATION "${canonical}"
17088 cat >>confdefs.h
<<_ACEOF
17089 #define EMACS_CONFIG_OPTIONS "${ac_configure_args}"
17092 if test -n "$machfile"; then
17094 cat >>confdefs.h
<<_ACEOF
17095 #define config_machfile "${machfile}"
17100 cat >>confdefs.h
<<_ACEOF
17101 #define config_opsysfile "${opsysfile}"
17108 if test "${HAVE_X_WINDOWS}" = "yes" ; then
17110 $as_echo "#define HAVE_X_WINDOWS 1" >>confdefs.h
17113 XOBJ
="xterm.o xfns.o xselect.o xrdb.o fontset.o xsmfns.o fringe.o image.o xsettings.o xgselect.o"
17115 if test "$HAVE_XFT" = "yes"; then
17116 FONT_OBJ
="$FONT_OBJ ftfont.o xftfont.o ftxfont.o"
17117 elif test "$HAVE_FREETYPE" = "yes"; then
17118 FONT_OBJ
="$FONT_OBJ ftfont.o ftxfont.o"
17128 if test "${USE_X_TOOLKIT}" != "none" ; then
17129 WIDGET_OBJ
=widget.o
17131 $as_echo "#define USE_X_TOOLKIT 1" >>confdefs.h
17133 if test "${USE_X_TOOLKIT}" = "LUCID"; then
17135 $as_echo "#define USE_LUCID 1" >>confdefs.h
17137 elif test "${USE_X_TOOLKIT}" = "MOTIF"; then
17139 $as_echo "#define USE_MOTIF 1" >>confdefs.h
17144 ## Paul Abrahams <abrahams at equinox.shaysnet.com> says this is needed.
17145 MOTIF_LIBW
="$MOTIF_LIBW -lXpm"
17149 ## Richard Anthony Ryan <ryanr at ellingtn.ftc.nrcs.usda.gov>
17150 ## says -lXimp is needed in UNIX_SV ... 4.2 1.1.2.
17151 MOTIF_LIBW
="MOTIF_LIBW -lXimp"
17155 ## olson@mcs.anl.gov says -li18n is needed by -lXm.
17156 MOTIF_LIBW
="$MOTIF_LIBW -li18n"
17159 MOTIF_LIBW
="$MOTIF_LIBW $LIBXP"
17165 case "$USE_X_TOOLKIT" in
17166 MOTIF
) TOOLKIT_LIBW
="$MOTIF_LIBW" ;;
17167 LUCID
) TOOLKIT_LIBW
="$LUCID_LIBW" ;;
17168 none
) test "x$HAVE_GTK" = "xyes" && TOOLKIT_LIBW
="$GTK_LIBS" ;;
17172 if test "$USE_X_TOOLKIT" = "none"; then
17173 LIBXT_OTHER
="\$(LIBXSM)"
17174 OLDXMENU_TARGET
="really-oldXMenu"
17176 LIBXT_OTHER
="\$(LIBXMU) -lXt \$(LIBXTR6) -lXext"
17177 OLDXMENU_TARGET
="really-lwlib"
17181 ## The X Menu stuff is present in the X10 distribution, but missing
17182 ## from X11. If we have X10, just use the installed library;
17183 ## otherwise, use our own copy.
17184 if test "${HAVE_X11}" = "yes" ; then
17186 $as_echo "#define HAVE_X11 1" >>confdefs.h
17189 if test "$USE_X_TOOLKIT" = "none"; then
17190 OLDXMENU
="\${oldXMenudir}/libXMenu11.a"
17192 OLDXMENU
="\${lwlibdir}/liblw.a"
17194 LIBXMENU
="\$(OLDXMENU)"
17195 LIBX_OTHER
="\$(LIBXT) \$(LIBX_EXTRA)"
17196 OLDXMENU_DEPS
="\${OLDXMENU} ../src/\${OLDXMENU}"
17198 ## For a syntactically valid Makefile; not actually used for anything.
17199 ## See comments in src/Makefile.in.
17201 ## FIXME This case (!HAVE_X11 && HAVE_X_WINDOWS) is no longer possible(?).
17202 if test "${HAVE_X_WINDOWS}" = "yes"; then
17211 if test "$HAVE_GTK" = "yes" ||
test "$HAVE_MENUS" != "yes"; then
17224 if test "${HAVE_MENUS}" = "yes" ; then
17226 $as_echo "#define HAVE_MENUS 1" >>confdefs.h
17230 if test "${GNU_MALLOC}" = "yes" ; then
17232 $as_echo "#define GNU_MALLOC 1" >>confdefs.h
17237 if test "${REL_ALLOC}" = "yes" ; then
17239 $as_echo "#define REL_ALLOC 1" >>confdefs.h
17242 test "$system_malloc" != "yes" && RALLOC_OBJ
=ralloc.o
17246 if test "$opsys" = "cygwin"; then
17247 CYGWIN_OBJ
="sheap.o"
17248 ## Cygwin differs because of its unexec().
17250 POST_ALLOC_OBJ
=lastfile.o
17253 PRE_ALLOC_OBJ
=lastfile.o
17262 aix4-2
) LD_SWITCH_SYSTEM_TEMACS
="-Wl,-bnodelcsect" ;;
17265 ## The -headerpad option tells ld (see man page) to leave room at the
17266 ## end of the header for adding load commands. Needed for dumping.
17267 ## 0x690 is the total size of 30 segment load commands (at 56
17268 ## each); under Cocoa 31 commands are required.
17269 if test "$HAVE_NS" = "yes"; then
17270 libs_nsgui
="-framework AppKit"
17271 headerpad_extra
=6C8
17274 headerpad_extra
=690
17276 LD_SWITCH_SYSTEM_TEMACS
="-prebind $libs_nsgui -Xlinker -headerpad -Xlinker $headerpad_extra"
17278 ## This is here because src/Makefile.in did some extra fiddling around
17279 ## with LD_SWITCH_SYSTEM. The cpp logic was:
17280 ## #ifndef LD_SWITCH_SYSTEM
17281 ## #if !defined (__GNUC__) && ((defined (BSD_SYSTEM) && !defined (COFF)))
17282 ## Since all the *bsds define LD_SWITCH_SYSTEM, this simplifies to:
17283 ## not using gcc, darwin system not on an alpha (ie darwin, since
17284 ## darwin + alpha does not occur).
17285 ## Because this was done in src/Makefile.in, the resulting part of
17286 ## LD_SWITCH_SYSTEM was not used in configure (ie, in ac_link).
17287 ## It therefore seems cleaner to put this in LD_SWITCH_SYSTEM_TEMACS,
17288 ## rather than LD_SWITCH_SYSTEM.
17289 test "x$LD_SWITCH_SYSTEM" = "x" && test "x$GCC" != "xyes" && \
17290 LD_SWITCH_SYSTEM_TEMACS
="-X $LD_SWITCH_SYSTEM_TEMACS"
17293 ## LD_SWITCH_X_SITE_AUX is a -R option saying where to find X at run-time.
17294 ## When handled by cpp, this was in LD_SWITCH_SYSTEM. However, at
17295 ## the point where configure sourced the s/*.h file, LD_SWITCH_X_SITE_AUX
17296 ## had not yet been defined and was expanded to null. Hence LD_SWITCH_SYSTEM
17297 ## had different values in configure (in ac_link) and src/Makefile.in.
17298 ## It seems clearer therefore to put this piece in LD_SWITCH_SYSTEM_TEMACS.
17299 gnu-linux
) LD_SWITCH_SYSTEM_TEMACS
="\$(LD_SWITCH_X_SITE_AUX)" ;;
17301 *) LD_SWITCH_SYSTEM_TEMACS
= ;;
17304 if test "$NS_IMPL_GNUSTEP" = "yes"; then
17305 LD_SWITCH_SYSTEM_TEMACS
="${LD_SWITCH_SYSTEM_TEMACS} -L${GNUSTEP_SYSTEM_LIBRARIES} ${GNUSTEP_LOCAL_LIBRARIES} -lgnustep-gui -lgnustep-base -lobjc -lpthread"
17314 ## gnu: GNU needs its own crt0.
17315 aix4-2|cygwin|darwin|gnu|hpux
*|irix6-5|sol2
*|unixware
) ORDINARY_LINK
=yes ;;
17317 ## On post 1.3 releases of NetBSD, gcc -nostdlib also clears the
17318 ## library search parth, i.e. it won't search /usr/lib for libc and
17319 ## friends. Using -nostartfiles instead avoids this problem, and
17320 ## will also work on earlier NetBSD releases.
17321 netbsd|openbsd
) LD_FIRSTFLAG
="-nostartfiles" ;;
17323 ## macpcc: NAKAJI Hiroyuki <nakaji@tutrp.tut.ac.jp> says
17324 ## MkLinux/LinuxPPC needs this.
17325 ## ibms390x only supports opsys = gnu-linux so it can be added here.
17328 macppc|ibms390x
) LD_FIRSTFLAG
="-nostdlib" ;;
17334 if test "x$ORDINARY_LINK" = "xyes"; then
17338 $as_echo "#define ORDINARY_LINK 1" >>confdefs.h
17341 ## The system files defining neither ORDINARY_LINK nor LD_FIRSTFLAG are:
17342 ## freebsd, gnu-* not on macppc|ibms390x.
17343 elif test "x$GCC" = "xyes" && test "x$LD_FIRSTFLAG" = "x"; then
17345 ## Versions of GCC >= 2.0 put their library, libgcc.a, in obscure
17346 ## places that are difficult to figure out at make time. Fortunately,
17347 ## these same versions allow you to pass arbitrary flags on to the
17348 ## linker, so there is no reason not to use it as a linker.
17350 ## Well, it is not quite perfect. The "-nostdlib" keeps GCC from
17351 ## searching for libraries in its internal directories, so we have to
17352 ## ask GCC explicitly where to find libgcc.a (LIB_GCC below).
17353 LD_FIRSTFLAG
="-nostdlib"
17356 ## FIXME? What setting of EDIT_LDFLAGS should this have?
17357 test "$NS_IMPL_GNUSTEP" = "yes" && LD_FIRSTFLAG
="-rdynamic"
17362 ## FIXME? The logic here is not precisely the same as that above.
17363 ## There is no check here for a pre-defined LD_FIRSTFLAG.
17364 ## Should we only be setting LIB_GCC if LD ~ -nostdlib?
17366 if test "x$GCC" = "xyes" && test "x$ORDINARY_LINK" != "xyes"; then
17369 freebsd|netbsd|openbsd
) LIB_GCC
= ;;
17372 ## armin76@gentoo.org reported that the lgcc_s flag is necessary to
17373 ## build on ARM EABI under GNU/Linux. (Bug#5518)
17379 ## FIXME? s/gnu-linux.h used to define LIB_GCC as below, then
17380 ## immediately undefine it again and redefine it to empty.
17381 ## Was the C_SWITCH_X_SITE part really necessary?
17382 ## LIB_GCC=`$CC $C_SWITCH_X_SITE -print-libgcc-file-name`
17388 ## Ask GCC where to find libgcc.a.
17389 *) LIB_GCC
=`$CC -print-libgcc-file-name 2> /dev/null` ;;
17396 ## If we're using X11/GNUstep, define some consequences.
17397 if test "$HAVE_X_WINDOWS" = "yes" ||
test "$HAVE_NS" = "yes"; then
17399 $as_echo "#define HAVE_WINDOW_SYSTEM 1" >>confdefs.h
17402 $as_echo "#define HAVE_MOUSE 1" >>confdefs.h
17404 MOUSE_SUPPORT
="\$(REAL_MOUSE_SUPPORT)"
17405 TOOLTIP_SUPPORT
="\${lispsource}/mouse.elc"
17407 WINDOW_SUPPORT
="\$(BASE_WINDOW_SUPPORT)"
17408 test "$HAVE_X_WINDOWS" = "yes" && \
17409 WINDOW_SUPPORT
="$WINDOW_SUPPORT \$(X_WINDOW_SUPPORT)"
17419 #### Report on what we decided to do.
17420 #### Report GTK as a toolkit, even if it doesn't use Xt.
17421 #### It makes printing result more understandable as using GTK sets
17422 #### toolkit_scroll_bars to yes by default.
17423 if test "${HAVE_GTK}" = "yes"; then
17428 if test -n "$machfile"; then
17429 and_machfile
=" and \`${machfile}'"
17433 Configured for \`${canonical}'.
17435 Where should the build process find the source code? ${srcdir}
17436 What operating system and machine description files should Emacs use?
17437 \`${opsysfile}'${and_machfile}
17438 What compiler should emacs be built with? ${CC} ${CFLAGS}
17439 Should Emacs use the GNU version of malloc? ${GNU_MALLOC}${GNU_MALLOC_reason}
17440 Should Emacs use a relocating allocator for buffers? ${REL_ALLOC}
17441 Should Emacs use mmap(2) for buffer allocation? $use_mmap_for_buffers
17442 What window system should Emacs use? ${window_system}
17443 What toolkit should Emacs use? ${USE_X_TOOLKIT}"
17445 if test -n "${x_includes}"; then
17446 echo " Where do we find X Windows header files? ${x_includes}"
17448 echo " Where do we find X Windows header files? Standard dirs"
17450 if test -n "${x_libraries}"; then
17451 echo " Where do we find X Windows libraries? ${x_libraries}"
17453 echo " Where do we find X Windows libraries? Standard dirs"
17456 echo " Does Emacs use -lXaw3d? ${HAVE_XAW3D}"
17457 echo " Does Emacs use -lXpm? ${HAVE_XPM}"
17458 echo " Does Emacs use -ljpeg? ${HAVE_JPEG}"
17459 echo " Does Emacs use -ltiff? ${HAVE_TIFF}"
17460 echo " Does Emacs use a gif library? ${HAVE_GIF} $LIBGIF"
17461 echo " Does Emacs use -lpng? ${HAVE_PNG}"
17462 echo " Does Emacs use -lrsvg-2? ${HAVE_RSVG}"
17463 echo " Does Emacs use imagemagick? ${HAVE_IMAGEMAGICK}"
17465 echo " Does Emacs use -lgpm? ${HAVE_GPM}"
17466 echo " Does Emacs use -ldbus? ${HAVE_DBUS}"
17467 echo " Does Emacs use -lgconf? ${HAVE_GCONF}"
17468 echo " Does Emacs use -lselinux? ${HAVE_LIBSELINUX}"
17469 echo " Does Emacs use -lgnutls? ${HAVE_GNUTLS}"
17470 echo " Does Emacs use -lxml2? ${HAVE_LIBXML2}"
17472 echo " Does Emacs use -lfreetype? ${HAVE_FREETYPE}"
17473 echo " Does Emacs use -lm17n-flt? ${HAVE_M17N_FLT}"
17474 echo " Does Emacs use -lotf? ${HAVE_LIBOTF}"
17475 echo " Does Emacs use -lxft? ${HAVE_XFT}"
17477 echo " Does Emacs use toolkit scroll bars? ${USE_TOOLKIT_SCROLL_BARS}"
17480 if test $USE_XASSERTS = yes; then
17481 echo " Compiling with asserts turned on."
17482 CPPFLAGS
="$CPPFLAGS -DXASSERTS=1"
17487 if test "$HAVE_NS" = "yes"; then
17489 echo "You must run \"make install\" in order to test the built application.
17490 The installed application will go to nextstep/Emacs.app and can be
17491 run or moved from there."
17492 if test "$EN_NS_SELF_CONTAINED" = "yes"; then
17493 echo "The application will be fully self-contained."
17495 echo "The lisp resources for the application will be installed under ${prefix}.
17496 You may need to run \"make install\" with sudo. The application will fail
17497 to run if these resources are not installed."
17503 # Remove any trailing slashes in these variables.
17504 test "${prefix}" != NONE
&&
17505 prefix
=`echo "${prefix}" | sed 's,\([^/]\)/*$,\1,'`
17506 test "${exec_prefix}" != NONE
&&
17507 exec_prefix
=`echo "${exec_prefix}" | sed 's,\([^/]\)/*$,\1,'`
17509 ac_config_files
="$ac_config_files Makefile lib/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 test/automated/Makefile"
17511 ac_config_commands
="$ac_config_commands default"
17513 cat >confcache
<<\_ACEOF
17514 # This file is a shell script that caches the results of configure
17515 # tests run on this system so they can be shared between configure
17516 # scripts and configure runs, see configure's option --config-cache.
17517 # It is not useful on other systems. If it contains results you don't
17518 # want to keep, you may remove or edit it.
17520 # config.status only pays attention to the cache file if you give it
17521 # the --recheck option to rerun configure.
17523 # `ac_cv_env_foo' variables (set or unset) will be overridden when
17524 # loading this file, other *unset* `ac_cv_foo' will be assigned the
17525 # following values.
17529 # The following way of writing the cache mishandles newlines in values,
17530 # but we know of no workaround that is simple, portable, and efficient.
17531 # So, we kill variables containing newlines.
17532 # Ultrix sh set writes to stderr and can't be redirected directly,
17533 # and sets the high bit in the cache file unless we assign to the vars.
17535 for ac_var
in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
17536 eval ac_val
=\$
$ac_var
17540 *_cv_
*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
17541 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
17544 _ | IFS | as_nl
) ;; #(
17545 BASH_ARGV | BASH_SOURCE
) eval $ac_var= ;; #(
17546 *) { eval $ac_var=; unset $ac_var;} ;;
17552 case $as_nl`(ac_space=' '; set) 2>&1` in #(
17553 *${as_nl}ac_space
=\
*)
17554 # `set' does not quote correctly, so add quotes: double-quote
17555 # substitution turns \\\\ into \\, and sed turns \\ into \.
17558 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
17561 # `set' quotes correctly as required by POSIX, so do not add quotes.
17562 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
17571 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
17573 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
17575 if diff "$cache_file" confcache
>/dev
/null
2>&1; then :; else
17576 if test -w "$cache_file"; then
17577 if test "x$cache_file" != "x/dev/null"; then
17578 { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
17579 $as_echo "$as_me: updating cache $cache_file" >&6;}
17580 if test ! -f "$cache_file" ||
test -h "$cache_file"; then
17581 cat confcache
>"$cache_file"
17583 case $cache_file in #(
17585 mv -f confcache
"$cache_file"$$
&&
17586 mv -f "$cache_file"$$
"$cache_file" ;; #(
17588 mv -f confcache
"$cache_file" ;;
17593 { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
17594 $as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
17599 test "x$prefix" = xNONE
&& prefix
=$ac_default_prefix
17600 # Let make expand exec_prefix.
17601 test "x$exec_prefix" = xNONE
&& exec_prefix
='${prefix}'
17603 DEFS
=-DHAVE_CONFIG_H
17608 for ac_i
in : $LIBOBJS; do test "x$ac_i" = x
: && continue
17609 # 1. Remove the extension, and $U if already installed.
17610 ac_script
='s/\$U\././;s/\.o$//;s/\.obj$//'
17611 ac_i
=`$as_echo "$ac_i" | sed "$ac_script"`
17612 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
17613 # will be set to the directory where LIBOBJS objects are built.
17614 as_fn_append ac_libobjs
" \${LIBOBJDIR}$ac_i\$U.$ac_objext"
17615 as_fn_append ac_ltlibobjs
" \${LIBOBJDIR}$ac_i"'$U.lo'
17617 LIBOBJS
=$ac_libobjs
17619 LTLIBOBJS
=$ac_ltlibobjs
17622 if test -n "$EXEEXT"; then
17624 am__EXEEXT_FALSE
='#'
17626 am__EXEEXT_TRUE
='#'
17630 if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
17631 as_fn_error $?
"conditional \"AMDEP\" was never defined.
17632 Usually this means the macro was only invoked conditionally." "$LINENO" 5
17634 if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
17635 as_fn_error $?
"conditional \"am__fastdepCC\" was never defined.
17636 Usually this means the macro was only invoked conditionally." "$LINENO" 5
17639 if test -z "${GL_COND_LIBTOOL_TRUE}" && test -z "${GL_COND_LIBTOOL_FALSE}"; then
17640 as_fn_error $?
"conditional \"GL_COND_LIBTOOL\" was never defined.
17641 Usually this means the macro was only invoked conditionally." "$LINENO" 5
17646 if test -n "$gl_LIBOBJS"; then
17647 # Remove the extension.
17648 sed_drop_objext
='s/\.o$//;s/\.obj$//'
17649 for i
in `for i in $gl_LIBOBJS; do echo "$i"; done | sed -e "$sed_drop_objext" | sort | uniq`; do
17650 gl_libobjs
="$gl_libobjs $i.$ac_objext"
17651 gl_ltlibobjs
="$gl_ltlibobjs $i.lo"
17654 gl_LIBOBJS
=$gl_libobjs
17656 gl_LTLIBOBJS
=$gl_ltlibobjs
17662 if test -n "$gltests_LIBOBJS"; then
17663 # Remove the extension.
17664 sed_drop_objext
='s/\.o$//;s/\.obj$//'
17665 for i
in `for i in $gltests_LIBOBJS; do echo "$i"; done | sed -e "$sed_drop_objext" | sort | uniq`; do
17666 gltests_libobjs
="$gltests_libobjs $i.$ac_objext"
17667 gltests_ltlibobjs
="$gltests_ltlibobjs $i.lo"
17670 gltests_LIBOBJS
=$gltests_libobjs
17672 gltests_LTLIBOBJS
=$gltests_ltlibobjs
17676 : "${CONFIG_STATUS=./config.status}"
17678 ac_clean_files_save
=$ac_clean_files
17679 ac_clean_files
="$ac_clean_files $CONFIG_STATUS"
17680 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
17681 $as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
17683 cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
17685 # Generated by $as_me.
17686 # Run this file to recreate the current configuration.
17687 # Compiler output produced by configure, useful for debugging
17688 # configure, is in config.log if it exists.
17691 ac_cs_recheck=false
17694 SHELL=\${CONFIG_SHELL-$SHELL}
17697 cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail
=1
17698 ## -------------------- ##
17699 ## M4sh Initialization. ##
17700 ## -------------------- ##
17702 # Be more Bourne compatible
17703 DUALCASE
=1; export DUALCASE
# for MKS sh
17704 if test -n "${ZSH_VERSION+set}" && (emulate sh
) >/dev
/null
2>&1; then :
17707 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
17708 # is contrary to our usage. Disable this feature.
17709 alias -g '${1+"$@"}'='"$@"'
17710 setopt NO_GLOB_SUBST
17712 case `(set -o) 2>/dev/null` in #(
17724 # Printing a long string crashes Solaris 7 /usr/bin/printf.
17725 as_echo
='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
17726 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
17727 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
17728 # Prefer a ksh shell builtin over an external printf program on Solaris,
17729 # but without wasting forks for bash or zsh.
17730 if test -z "$BASH_VERSION$ZSH_VERSION" \
17731 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
17732 as_echo='print
-r --'
17733 as_echo_n='print
-rn --'
17734 elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
17735 as_echo='printf %s
\n'
17736 as_echo_n='printf %s
'
17738 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
17739 as_echo_body='eval /usr
/ucb
/echo -n "$1$as_nl"'
17740 as_echo_n='/usr
/ucb
/echo -n'
17742 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
17743 as_echo_n_body='eval
17747 expr "X$arg" : "X\\(.*\\)$as_nl";
17748 arg
=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
17750 expr "X$arg" : "X\\(.*\\)" |
tr -d "$as_nl"
17752 export as_echo_n_body
17753 as_echo_n='sh
-c $as_echo_n_body as_echo
'
17755 export as_echo_body
17756 as_echo='sh
-c $as_echo_body as_echo
'
17759 # The user is always right.
17760 if test "${PATH_SEPARATOR+set}" != set; then
17762 (PATH='/bin
;/bin
'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
17763 (PATH='/bin
:/bin
'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
17770 # We need space, tab and new line, in precisely that order. Quoting is
17771 # there to prevent editors from complaining about space-tab.
17772 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
17773 # splitting by setting IFS to empty value.)
17776 # Find who we are. Look in the path if we contain no directory separator.
17779 *[\\/]* ) as_myself=$0 ;;
17780 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
17781 for as_dir in $PATH
17784 test -z "$as_dir" && as_dir=.
17785 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
17791 # We did not find ourselves, most probably we were run as `sh COMMAND'
17792 # in which case we are not to be found in the path.
17793 if test "x$as_myself" = x
; then
17796 if test ! -f "$as_myself"; then
17797 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
17801 # Unset variables that we do not need and which cause bugs (e.g. in
17802 # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
17803 # suppresses any "Segmentation fault" message there. '((' could
17804 # trigger a bug in pdksh 5.2.14.
17805 for as_var
in BASH_ENV ENV MAIL MAILPATH
17806 do eval test x\
${$as_var+set} = xset \
17807 && ( (unset $as_var) ||
exit 1) >/dev
/null
2>&1 && unset $as_var ||
:
17820 (unset CDPATH
) >/dev
/null
2>&1 && unset CDPATH
17823 # as_fn_error STATUS ERROR [LINENO LOG_FD]
17824 # ----------------------------------------
17825 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
17826 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
17827 # script with STATUS, using 1 if that was 0.
17830 as_status
=$1; test $as_status -eq 0 && as_status
=1
17832 as_lineno
=${as_lineno-"$3"} as_lineno_stack
=as_lineno_stack
=$as_lineno_stack
17833 $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
17835 $as_echo "$as_me: error: $2" >&2
17836 as_fn_exit
$as_status
17840 # as_fn_set_status STATUS
17841 # -----------------------
17842 # Set $? to STATUS, without forking.
17843 as_fn_set_status
()
17846 } # as_fn_set_status
17848 # as_fn_exit STATUS
17849 # -----------------
17850 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
17854 as_fn_set_status
$1
17860 # Portably unset VAR.
17863 { eval $1=; unset $1;}
17865 as_unset
=as_fn_unset
17866 # as_fn_append VAR VALUE
17867 # ----------------------
17868 # Append the text in VALUE to the end of the definition contained in VAR. Take
17869 # advantage of any shell optimizations that allow amortized linear growth over
17870 # repeated appends, instead of the typical quadratic growth present in naive
17872 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev
/null
; then :
17873 eval 'as_fn_append ()
17884 # as_fn_arith ARG...
17885 # ------------------
17886 # Perform arithmetic evaluation on the ARGs, and store the result in the
17887 # global $as_val. Take advantage of shells that can avoid forks. The arguments
17888 # must be portable across $(()) and expr.
17889 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev
/null
; then :
17890 eval 'as_fn_arith ()
17897 as_val
=`expr "$@" || test $? -eq 1`
17902 if expr a
: '\(a\)' >/dev
/null
2>&1 &&
17903 test "X`expr 00001 : '.*\(...\)'`" = X001
; then
17909 if (basename -- /) >/dev
/null
2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
17910 as_basename
=basename
17915 if (as_dir
=`dirname -- /` && test "X$as_dir" = X
/) >/dev
/null
2>&1; then
17921 as_me
=`$as_basename -- "$0" ||
17922 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
17923 X"$0" : 'X\(//\)$' \| \
17924 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
17926 sed '/^.*\/\([^/][^/]*\)\/*$/{
17940 # Avoid depending upon Character Ranges.
17941 as_cr_letters
='abcdefghijklmnopqrstuvwxyz'
17942 as_cr_LETTERS
='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
17943 as_cr_Letters
=$as_cr_letters$as_cr_LETTERS
17944 as_cr_digits
='0123456789'
17945 as_cr_alnum
=$as_cr_Letters$as_cr_digits
17947 ECHO_C
= ECHO_N
= ECHO_T
=
17948 case `echo -n x` in #(((((
17950 case `echo 'xy\c'` in
17951 *c
*) ECHO_T
=' ';; # ECHO_T is single tab character.
17953 *) echo `echo ksh88 bug on AIX 6.1` > /dev
/null
17960 rm -f conf$$ conf$$.exe conf$$.
file
17961 if test -d conf$$.dir
; then
17962 rm -f conf$$.dir
/conf$$.
file
17965 mkdir conf$$.dir
2>/dev
/null
17967 if (echo >conf$$.
file) 2>/dev
/null
; then
17968 if ln -s conf$$.
file conf$$
2>/dev
/null
; then
17970 # ... but there are two gotchas:
17971 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
17972 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
17973 # In both cases, we have to default to `cp -p'.
17974 ln -s conf$$.
file conf$$.dir
2>/dev
/null
&& test ! -f conf$$.exe ||
17976 elif ln conf$$.
file conf$$
2>/dev
/null
; then
17984 rm -f conf$$ conf$$.exe conf$$.dir
/conf$$.
file conf$$.
file
17985 rmdir conf$$.dir
2>/dev
/null
17990 # Create "$as_dir" as a directory, including parents if necessary.
17995 -*) as_dir
=.
/$as_dir;;
17997 test -d "$as_dir" ||
eval $as_mkdir_p ||
{
18001 *\'*) as_qdir
=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
18002 *) as_qdir
=$as_dir;;
18004 as_dirs
="'$as_qdir' $as_dirs"
18005 as_dir
=`$as_dirname -- "$as_dir" ||
18006 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
18007 X"$as_dir" : 'X\(//\)[^/]' \| \
18008 X"$as_dir" : 'X\(//\)$' \| \
18009 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
18010 $as_echo X"$as_dir" |
18011 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
18015 /^X\(\/\/\)[^/].*/{
18028 test -d "$as_dir" && break
18030 test -z "$as_dirs" ||
eval "mkdir $as_dirs"
18031 } ||
test -d "$as_dir" || as_fn_error $?
"cannot create directory $as_dir"
18035 if mkdir
-p .
2>/dev
/null
; then
18036 as_mkdir_p
='mkdir -p "$as_dir"'
18038 test -d .
/-p && rmdir .
/-p
18042 if test -x / >/dev
/null
2>&1; then
18043 as_test_x
='test -x'
18045 if ls -dL / >/dev
/null
2>&1; then
18052 if test -d "$1"; then
18058 case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in #((
18059 ???[sx]*):;;*)false;;esac;fi
18063 as_executable_p
=$as_test_x
18065 # Sed expression to map a string onto a valid CPP name.
18066 as_tr_cpp
="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
18068 # Sed expression to map a string onto a valid variable name.
18069 as_tr_sh
="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
18073 ## ----------------------------------- ##
18074 ## Main body of $CONFIG_STATUS script. ##
18075 ## ----------------------------------- ##
18077 test $as_write_fail = 0 && chmod +x
$CONFIG_STATUS || ac_write_fail
=1
18079 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail
=1
18080 # Save the log message, to keep $0 and so on meaningful, and to
18081 # report actual input values of CONFIG_FILES etc. instead of their
18082 # values after options handling.
18084 This file was extended by emacs $as_me 24.0.50, which was
18085 generated by GNU Autoconf 2.68. Invocation command line was
18087 CONFIG_FILES = $CONFIG_FILES
18088 CONFIG_HEADERS = $CONFIG_HEADERS
18089 CONFIG_LINKS = $CONFIG_LINKS
18090 CONFIG_COMMANDS = $CONFIG_COMMANDS
18093 on `(hostname || uname -n) 2>/dev/null | sed 1q`
18098 case $ac_config_files in *"
18099 "*) set x
$ac_config_files; shift; ac_config_files
=$
*;;
18102 case $ac_config_headers in *"
18103 "*) set x
$ac_config_headers; shift; ac_config_headers
=$
*;;
18107 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
18108 # Files that config.status was made for.
18109 config_files="$ac_config_files"
18110 config_headers="$ac_config_headers"
18111 config_commands="$ac_config_commands"
18115 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail
=1
18117 \`$as_me' instantiates files and other configuration actions
18118 from templates according to the current configuration. Unless the files
18119 and actions are specified as TAGs, all are instantiated by default.
18121 Usage: $0 [OPTION]... [TAG]...
18123 -h, --help print this help, then exit
18124 -V, --version print version number and configuration settings, then exit
18125 --config print configuration, then exit
18126 -q, --quiet, --silent
18127 do not print progress messages
18128 -d, --debug don't remove temporary files
18129 --recheck update $as_me by reconfiguring in the same conditions
18130 --file=FILE[:TEMPLATE]
18131 instantiate the configuration file FILE
18132 --header=FILE[:TEMPLATE]
18133 instantiate the configuration header FILE
18135 Configuration files:
18138 Configuration headers:
18141 Configuration commands:
18144 Report bugs to the package provider."
18147 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
18148 ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`"
18150 emacs config.status 24.0.50
18151 configured by $0, generated by GNU Autoconf 2.68,
18152 with options \\"\$ac_cs_config\\"
18154 Copyright (C) 2010 Free Software Foundation, Inc.
18155 This config.status script is free software; the Free Software Foundation
18156 gives unlimited permission to copy, distribute and modify it."
18163 test -n "\$AWK" || AWK=awk
18166 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail
=1
18167 # The default lists apply if the user does not specify any file.
18173 ac_option
=`expr "X$1" : 'X\([^=]*\)='`
18174 ac_optarg
=`expr "X$1" : 'X[^=]*=\(.*\)'`
18178 ac_option
=`expr "X$1" : 'X\([^=]*\)='`
18190 # Handling of the options.
18191 -recheck |
--recheck |
--rechec |
--reche |
--rech |
--rec |
--re |
--r)
18193 --version |
--versio |
--versi |
--vers |
--ver |
--ve |
--v |
-V )
18194 $as_echo "$ac_cs_version"; exit ;;
18195 --config |
--confi |
--conf |
--con |
--co |
--c )
18196 $as_echo "$ac_cs_config"; exit ;;
18197 --debug |
--debu |
--deb |
--de |
--d |
-d )
18199 --file |
--fil |
--fi |
--f )
18202 *\'*) ac_optarg
=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
18203 '') as_fn_error $?
"missing file argument" ;;
18205 as_fn_append CONFIG_FILES
" '$ac_optarg'"
18206 ac_need_defaults
=false
;;
18207 --header |
--heade |
--head |
--hea )
18210 *\'*) ac_optarg
=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
18212 as_fn_append CONFIG_HEADERS
" '$ac_optarg'"
18213 ac_need_defaults
=false
;;
18215 # Conflict between --help and --header
18216 as_fn_error $?
"ambiguous option: \`$1'
18217 Try \`$0 --help' for more information.";;
18218 --help |
--hel |
-h )
18219 $as_echo "$ac_cs_usage"; exit ;;
18220 -q |
-quiet |
--quiet |
--quie |
--qui |
--qu |
--q \
18221 |
-silent |
--silent |
--silen |
--sile |
--sil |
--si |
--s)
18224 # This is an error.
18225 -*) as_fn_error $?
"unrecognized option: \`$1'
18226 Try \`$0 --help' for more information." ;;
18228 *) as_fn_append ac_config_targets
" $1"
18229 ac_need_defaults
=false
;;
18235 ac_configure_extra_args
=
18237 if $ac_cs_silent; then
18239 ac_configure_extra_args
="$ac_configure_extra_args --silent"
18243 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
18244 if \$ac_cs_recheck; then
18245 set X '$SHELL' '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
18247 \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
18248 CONFIG_SHELL='$SHELL'
18249 export CONFIG_SHELL
18254 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail
=1
18258 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
18259 ## Running $as_me. ##
18265 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
18269 AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"
18270 GCC="$GCC" NON_GNU_CPP="$NON_GNU_CPP" CPP="$CPP" CPPFLAGS="$CPPFLAGS"
18274 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail
=1
18276 # Handling of arguments.
18277 for ac_config_target
in $ac_config_targets
18279 case $ac_config_target in
18280 "src/config.h") CONFIG_HEADERS
="$CONFIG_HEADERS src/config.h:src/config.in" ;;
18281 "depfiles") CONFIG_COMMANDS
="$CONFIG_COMMANDS depfiles" ;;
18282 "Makefile") CONFIG_FILES
="$CONFIG_FILES Makefile" ;;
18283 "lib/Makefile") CONFIG_FILES
="$CONFIG_FILES lib/Makefile" ;;
18284 "lib-src/Makefile") CONFIG_FILES
="$CONFIG_FILES lib-src/Makefile" ;;
18285 "oldXMenu/Makefile") CONFIG_FILES
="$CONFIG_FILES oldXMenu/Makefile" ;;
18286 "doc/emacs/Makefile") CONFIG_FILES
="$CONFIG_FILES doc/emacs/Makefile" ;;
18287 "doc/misc/Makefile") CONFIG_FILES
="$CONFIG_FILES doc/misc/Makefile" ;;
18288 "doc/lispintro/Makefile") CONFIG_FILES
="$CONFIG_FILES doc/lispintro/Makefile" ;;
18289 "doc/lispref/Makefile") CONFIG_FILES
="$CONFIG_FILES doc/lispref/Makefile" ;;
18290 "src/Makefile") CONFIG_FILES
="$CONFIG_FILES src/Makefile" ;;
18291 "lwlib/Makefile") CONFIG_FILES
="$CONFIG_FILES lwlib/Makefile" ;;
18292 "lisp/Makefile") CONFIG_FILES
="$CONFIG_FILES lisp/Makefile" ;;
18293 "leim/Makefile") CONFIG_FILES
="$CONFIG_FILES leim/Makefile" ;;
18294 "test/automated/Makefile") CONFIG_FILES
="$CONFIG_FILES test/automated/Makefile" ;;
18295 "default") CONFIG_COMMANDS
="$CONFIG_COMMANDS default" ;;
18297 *) as_fn_error $?
"invalid argument: \`$ac_config_target'" "$LINENO" 5;;
18302 # If the user did not use the arguments to specify the items to instantiate,
18303 # then the envvar interface is used. Set only those that are not.
18304 # We use the long form for the default assignment because of an extremely
18305 # bizarre bug on SunOS 4.1.3.
18306 if $ac_need_defaults; then
18307 test "${CONFIG_FILES+set}" = set || CONFIG_FILES
=$config_files
18308 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS
=$config_headers
18309 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS
=$config_commands
18312 # Have a temporary directory for convenience. Make it in the build tree
18313 # simply because there is no reason against having it here, and in addition,
18314 # creating and moving files from /tmp can sometimes cause problems.
18315 # Hook for its removal unless debugging.
18316 # Note that there is a small window in which the directory will not be cleaned:
18317 # after its creation but before its name has been assigned to `$tmp'.
18321 trap 'exit_status=$?
18322 : "${ac_tmp:=$tmp}"
18323 { test ! -d "$ac_tmp" || rm -fr "$ac_tmp"; } && exit $exit_status
18325 trap 'as_fn_exit 1' 1 2 13 15
18327 # Create a (secure) tmp directory for tmp files.
18330 tmp
=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
18334 tmp
=.
/conf$$
-$RANDOM
18335 (umask 077 && mkdir
"$tmp")
18336 } || as_fn_error $?
"cannot create a temporary directory in ." "$LINENO" 5
18339 # Set up the scripts for CONFIG_FILES section.
18340 # No need to generate them if there are no CONFIG_FILES.
18341 # This happens for instance with `./config.status config.h'.
18342 if test -n "$CONFIG_FILES"; then
18344 if $AWK 'BEGIN { getline <"/dev/null" }' </dev
/null
2>/dev
/null
; then
18345 ac_cs_awk_getline
=:
18346 ac_cs_awk_pipe_init
=
18347 ac_cs_awk_read_file
='
18348 while ((getline aline < (F[key])) > 0)
18351 ac_cs_awk_pipe_fini
=
18353 ac_cs_awk_getline
=false
18354 ac_cs_awk_pipe_init
="print \"cat <<'|#_!!_#|' &&\""
18355 ac_cs_awk_read_file
='
18357 print "cat " F[key] " &&"
18358 '$ac_cs_awk_pipe_init
18359 # The final `:' finishes the AND list.
18360 ac_cs_awk_pipe_fini
='END { print "|#_!!_#|"; print ":" }'
18362 ac_cr
=`echo X | tr X '\015'`
18363 # On cygwin, bash can eat \r inside `` if the user requested igncr.
18364 # But we know of no other shell where ac_cr would be empty at this
18365 # point, so we can use a bashism as a fallback.
18366 if test "x$ac_cr" = x
; then
18367 eval ac_cr
=\$
\'\\r
\'
18369 ac_cs_awk_cr
=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
18370 if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
18373 ac_cs_awk_cr
=$ac_cr
18376 echo 'BEGIN {' >"$ac_tmp/subs1.awk" &&
18379 # Create commands to substitute file output variables.
18381 echo "cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1" &&
18382 echo 'cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK &&' &&
18383 echo "$ac_subst_files" |
sed 's/.*/F["&"]="$&"/' &&
18386 } >conf$
$files.sh
&&
18387 . .
/conf$
$files.sh ||
18388 as_fn_error $?
"could not make $CONFIG_STATUS" "$LINENO" 5
18389 rm -f conf$
$files.sh
18392 echo "cat >conf$$subs.awk <<_ACEOF" &&
18393 echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
18395 } >conf$$subs.sh ||
18396 as_fn_error $? "could not
make $CONFIG_STATUS" "$LINENO" 5
18397 ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'`
18399 for ac_last_try in false false false false false :; do
18400 . ./conf$$subs.sh ||
18401 as_fn_error $? "could not
make $CONFIG_STATUS" "$LINENO" 5
18403 ac_delim_n=`sed -n "s
/.
*$ac_delim\$
/X
/p
" conf$$subs.awk | grep -c X`
18404 if test $ac_delim_n = $ac_delim_num; then
18406 elif $ac_last_try; then
18407 as_fn_error $? "could not
make $CONFIG_STATUS" "$LINENO" 5
18409 ac_delim="$ac_delim!$ac_delim _
$ac_delim!! "
18412 rm -f conf$$subs.sh
18414 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
18415 cat >>"\
$ac_tmp/subs1.
awk" <<\\_ACAWK &&
18419 s/^/S["/; s
/!.
*/"]=/
18429 s/\(.\{148\}\)..*/\1/
18431 s/["\\]/\\&/g
; s
/^
/"/; s/$/\\n"\\/
18436 s
/["\\]/\\&/g; s/^/"/; s
/$
/"\\/
18443 s/\(.\{148\}\)..*/\1/
18445 s/["\\]/\\&/g
; s
/^
/"/; s/$/"/
18449 s
/["\\]/\\&/g; s/^/"/; s
/$
/"\\/
18454 ' <conf$$subs.awk | sed '
18459 ' >>$CONFIG_STATUS || ac_write_fail=1
18460 rm -f conf$$subs.awk
18461 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
18463 cat >>"\
$ac_tmp/subs1.
awk" <<_ACAWK &&
18464 for (key in S) S_is_set[key] = 1
18466 \$ac_cs_awk_pipe_init
18470 nfields = split(line, field, "@
")
18472 len = length(field[1])
18473 for (i = 2; i < nfields; i++) {
18475 keylen = length(key)
18476 if (S_is_set[key]) {
18478 line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
18479 len += length(value) + length(field[++i])
18484 if (nfields == 3 && !substed) {
18486 if (F[key] != "" && line ~ /^[ ]*@.*@[ ]*$/) {
18487 \$ac_cs_awk_read_file
18493 \$ac_cs_awk_pipe_fini
18496 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
18497 if sed "s
/$ac_cr//" < /dev/null > /dev/null 2>&1; then
18498 sed "s
/$ac_cr\$
//; s
/$ac_cr/$ac_cs_awk_cr/g
"
18501 fi < "$ac_tmp/subs1.
awk" > "$ac_tmp/subs.
awk" \
18502 || as_fn_error $? "could not setup config files machinery
" "$LINENO" 5
18505 # VPATH may cause trouble with some makes, so we remove sole $(srcdir),
18506 # ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".
", strip leading and
18507 # trailing colons and then remove the whole line if VPATH becomes empty
18508 # (actually we leave an empty line to preserve line numbers).
18509 if test "x
$srcdir" = x.; then
18510 ac_vpsub='/^[ ]*VPATH[ ]*=[ ]*/{
18528 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
18529 fi # test -n "$CONFIG_FILES"
18531 # Set up the scripts for CONFIG_HEADERS section.
18532 # No need to generate them if there are no CONFIG_HEADERS.
18533 # This happens for instance with `./config.status Makefile'.
18534 if test -n "$CONFIG_HEADERS"; then
18535 cat >"$ac_tmp/defines.
awk" <<\_ACAWK ||
18539 # Transform confdefs.h into an awk script `defines.awk', embedded as
18540 # here-document in config.status, that substitutes the proper values into
18541 # config.h.in to produce config.h.
18543 # Create a delimiter string that does not exist in confdefs.h, to ease
18544 # handling of long lines.
18546 for ac_last_try in false false :; do
18547 ac_tt=`sed -n "/$ac_delim/p
" confdefs.h`
18548 if test -z "$ac_tt"; then
18550 elif $ac_last_try; then
18551 as_fn_error $? "could not
make $CONFIG_HEADERS" "$LINENO" 5
18553 ac_delim="$ac_delim!$ac_delim _
$ac_delim!! "
18557 # For the awk script, D is an array of macro values keyed by name,
18558 # likewise P contains macro parameters if any. Preserve backslash
18559 # newline sequences.
18561 ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
18563 s/.\{148\}/&'"$ac_delim"'/g
18566 s/^[ ]*#[ ]*define[ ][ ]*/ /
18573 s
/^ \
('"$ac_word_re"'\
)\
(([^
()]*)\
)[ ]*\
(.
*\
)/P
["\1"]="\2"\
18575 s
/^ \
('"$ac_word_re"'\
)[ ]*\
(.
*\
)/D
["\1"]=" \2"/p
18579 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\
1"]="\
2"\
18580 D["\
1"]=" \
3\\\\\\n
"\\/p
18582 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\
1"]=" \
2\\\\\\n
"\\/p
18587 s/.\{148\}/&'"$ac_delim"'/g
18592 s/["\\]/\\&/g
; s
/^
/"/; s/$/"/p
18595 s
/["\\]/\\&/g; s/^/"/; s
/$
/\\\\\\n
"\\/p
18597 ' <confdefs.h | sed '
18598 s/'"$ac_delim"'/"\\\
18599 "/g' >>$CONFIG_STATUS || ac_write_fail=1
18601 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
18602 for (key in D) D_is_set[key] = 1
18605 /^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
18607 split(line, arg, " ")
18608 if (arg[1] == "#") {
18612 defundef
= substr
(arg
[1], 2)
18615 split(mac1
, mac2
, "(") #)
18617 prefix
= substr
(line
, 1, index
(line
, defundef
) - 1)
18618 if (D_is_set
[macro
]) {
18619 # Preserve the white space surrounding the "#".
18620 print prefix
"define", macro P
[macro
] D
[macro
]
18623 # Replace #undef with comments. This is necessary, for example,
18624 # in the case of _POSIX_SOURCE, which is predefined and required
18625 # on some systems where configure will not decide to define it.
18626 if (defundef
== "undef") {
18627 print
"/*", prefix defundef
, macro
, "*/"
18635 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail
=1
18636 as_fn_error $?
"could not setup config headers machinery" "$LINENO" 5
18637 fi # test -n "$CONFIG_HEADERS"
18640 eval set X
" :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS"
18645 :[FHLC
]) ac_mode
=$ac_tag; continue;;
18647 case $ac_mode$ac_tag in
18649 :L
* |
:C
*:*) as_fn_error $?
"invalid tag \`$ac_tag'" "$LINENO" 5;;
18650 :[FH
]-) ac_tag
=-:-;;
18651 :[FH
]*) ac_tag
=$ac_tag:$ac_tag.
in;;
18668 -) ac_f
="$ac_tmp/stdin";;
18669 *) # Look for the file first in the build tree, then in the source tree
18670 # (if the path is not absolute). The absolute path cannot be DOS-style,
18671 # because $ac_f cannot contain `:'.
18675 *) test -f "$srcdir/$ac_f" && ac_f
="$srcdir/$ac_f";;
18677 as_fn_error
1 "cannot find input file: \`$ac_f'" "$LINENO" 5;;
18679 case $ac_f in *\'*) ac_f
=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
18680 as_fn_append ac_file_inputs
" '$ac_f'"
18683 # Let's still pretend it is `configure' which instantiates (i.e., don't
18684 # use $as_me), people would be surprised to read:
18685 # /* config.h. Generated by config.status. */
18686 configure_input
='Generated from '`
18687 $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
18689 if test x
"$ac_file" != x-
; then
18690 configure_input
="$ac_file. $configure_input"
18691 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
18692 $as_echo "$as_me: creating $ac_file" >&6;}
18694 # Neutralize special characters interpreted by sed in replacement strings.
18695 case $configure_input in #(
18696 *\
&* |
*\|
* |
*\\* )
18697 ac_sed_conf_input
=`$as_echo "$configure_input" |
18698 sed 's/[\\\\&|]/\\\\&/g'`;; #(
18699 *) ac_sed_conf_input
=$configure_input;;
18703 *:-:* |
*:-) cat >"$ac_tmp/stdin" \
18704 || as_fn_error $?
"could not create $ac_file" "$LINENO" 5 ;;
18709 ac_dir
=`$as_dirname -- "$ac_file" ||
18710 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
18711 X"$ac_file" : 'X\(//\)[^/]' \| \
18712 X"$ac_file" : 'X\(//\)$' \| \
18713 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
18714 $as_echo X"$ac_file" |
18715 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
18719 /^X\(\/\/\)[^/].*/{
18732 as_dir
="$ac_dir"; as_fn_mkdir_p
18736 .
) ac_dir_suffix
= ac_top_builddir_sub
=. ac_top_build_prefix
= ;;
18738 ac_dir_suffix
=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
18739 # A ".." for each directory in $ac_dir_suffix.
18740 ac_top_builddir_sub
=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
18741 case $ac_top_builddir_sub in
18742 "") ac_top_builddir_sub
=. ac_top_build_prefix
= ;;
18743 *) ac_top_build_prefix
=$ac_top_builddir_sub/ ;;
18746 ac_abs_top_builddir
=$ac_pwd
18747 ac_abs_builddir
=$ac_pwd$ac_dir_suffix
18748 # for backward compatibility:
18749 ac_top_builddir
=$ac_top_build_prefix
18752 .
) # We are building in place.
18754 ac_top_srcdir
=$ac_top_builddir_sub
18755 ac_abs_top_srcdir
=$ac_pwd ;;
18756 [\\/]* | ?
:[\\/]* ) # Absolute name.
18757 ac_srcdir
=$srcdir$ac_dir_suffix;
18758 ac_top_srcdir
=$srcdir
18759 ac_abs_top_srcdir
=$srcdir ;;
18760 *) # Relative name.
18761 ac_srcdir
=$ac_top_build_prefix$srcdir$ac_dir_suffix
18762 ac_top_srcdir
=$ac_top_build_prefix$srcdir
18763 ac_abs_top_srcdir
=$ac_pwd/$srcdir ;;
18765 ac_abs_srcdir
=$ac_abs_top_srcdir$ac_dir_suffix
18775 [\\/$
]* | ?
:[\\/]* ) ac_INSTALL
=$INSTALL ;;
18776 *) ac_INSTALL
=$ac_top_build_prefix$INSTALL ;;
18778 ac_MKDIR_P
=$MKDIR_P
18780 [\\/$
]* | ?
:[\\/]* ) ;;
18781 */*) ac_MKDIR_P
=$ac_top_build_prefix$MKDIR_P ;;
18785 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail
=1
18786 # If the template does not know about datarootdir, expand it.
18787 # FIXME: This hack should be removed a few years after 2.60.
18788 ac_datarootdir_hack
=; ac_datarootdir_seen
=
18799 case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
18800 *datarootdir
*) ac_datarootdir_seen
=yes;;
18801 *@datadir@
*|
*@docdir@
*|
*@infodir@
*|
*@localedir@
*|
*@mandir@
*)
18802 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
18803 $as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
18805 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
18806 ac_datarootdir_hack='
18807 s&@datadir@&$datadir&g
18808 s&@docdir@&$docdir&g
18809 s&@infodir@&$infodir&g
18810 s&@localedir@&$localedir&g
18811 s&@mandir@&$mandir&g
18812 s&\\\${datarootdir}&$datarootdir&g' ;;
18816 # Neutralize VPATH when `$srcdir' = `.'.
18817 # Shell code in configure.ac might set extrasub.
18818 # FIXME: do we really want to maintain this feature?
18819 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
18820 ac_sed_extra="$ac_vpsub
18823 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail
=1
18825 /@
[a-zA-Z_
][a-zA-Z_0-9
]*@
/!b
18826 s|@configure_input@|
$ac_sed_conf_input|
;t t
18827 s
&@top_builddir@
&$ac_top_builddir_sub&;t t
18828 s
&@top_build_prefix@
&$ac_top_build_prefix&;t t
18829 s
&@srcdir@
&$ac_srcdir&;t t
18830 s
&@abs_srcdir@
&$ac_abs_srcdir&;t t
18831 s
&@top_srcdir@
&$ac_top_srcdir&;t t
18832 s
&@abs_top_srcdir@
&$ac_abs_top_srcdir&;t t
18833 s
&@builddir@
&$ac_builddir&;t t
18834 s
&@abs_builddir@
&$ac_abs_builddir&;t t
18835 s
&@abs_top_builddir@
&$ac_abs_top_builddir&;t t
18836 s
&@INSTALL@
&$ac_INSTALL&;t t
18837 s
&@MKDIR_P@
&$ac_MKDIR_P&;t t
18838 $ac_datarootdir_hack
18840 eval sed \"\$ac_sed_extra\" "$ac_file_inputs" |
18841 if $ac_cs_awk_getline; then
18842 $AWK -f "$ac_tmp/subs.
awk"
18844 $AWK -f "$ac_tmp/subs.
awk" | $SHELL
18846 >$ac_tmp/out || as_fn_error $? "could not create
$ac_file" "$LINENO" 5
18848 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
18849 { ac_out=`sed -n '/\${datarootdir}/p' "$ac_tmp/out
"`; test -n "$ac_out"; } &&
18850 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' \
18851 "$ac_tmp/out
"`; test -z "$ac_out"; } &&
18852 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING
: $ac_file contains a reference to the variable \
`datarootdir'
18853 which seems to be undefined. Please make sure it is defined" >&5
18854 $as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir
'
18855 which seems to be undefined. Please make sure it is defined" >&2;}
18857 rm -f "$ac_tmp/stdin"
18859 -) cat "$ac_tmp/out" && rm -f "$ac_tmp/out";;
18860 *) rm -f "$ac_file" && mv "$ac_tmp/out" "$ac_file";;
18862 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
18868 if test x"$ac_file" != x-; then
18870 $as_echo "/* $configure_input */" \
18871 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs"
18872 } >"$ac_tmp/config.h" \
18873 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
18874 if diff "$ac_file" "$ac_tmp/config.h" >/dev/null 2>&1; then
18875 { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5
18876 $as_echo "$as_me: $ac_file is unchanged" >&6;}
18879 mv "$ac_tmp/config.h" "$ac_file" \
18880 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
18883 $as_echo "/* $configure_input */" \
18884 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" \
18885 || as_fn_error $? "could not create -" "$LINENO" 5
18887 # Compute "$ac_file"'s index
in $config_headers.
18890 for _am_header
in $config_headers :; do
18891 case $_am_header in
18892 $_am_arg |
$_am_arg:* )
18895 _am_stamp_count
=`expr $_am_stamp_count + 1` ;;
18898 echo "timestamp for $_am_arg" >`$as_dirname -- "$_am_arg" ||
18899 $as_expr X"$_am_arg" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
18900 X"$_am_arg" : 'X\(//\)[^/]' \| \
18901 X"$_am_arg" : 'X\(//\)$' \| \
18902 X"$_am_arg" : 'X\(/\)' \| . 2>/dev/null ||
18903 $as_echo X"$_am_arg" |
18904 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
18908 /^X\(\/\/\)[^/].*/{
18920 s/.*/./; q'`/stamp-h
$_am_stamp_count
18923 :C
) { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5
18924 $as_echo "$as_me: executing $ac_file commands" >&6;}
18929 case $ac_file$ac_mode in
18930 "depfiles":C
) test x
"$AMDEP_TRUE" != x
"" ||
{
18931 # Autoconf 2.62 quotes --file arguments for eval, but not when files
18932 # are listed without --file. Let's play safe and only enable the eval
18933 # if we detect the quoting.
18934 case $CONFIG_FILES in
18935 *\'*) eval set x
"$CONFIG_FILES" ;;
18936 *) set x
$CONFIG_FILES ;;
18941 # Strip MF so we end up with the name of the file.
18942 mf
=`echo "$mf" | sed -e 's/:.*$//'`
18943 # Check whether this is an Automake generated Makefile or not.
18944 # We used to match only the files named `Makefile.in', but
18945 # some people rename them; so instead we look at the file content.
18946 # Grep'ing the first line is not enough: some people post-process
18947 # each Makefile.in and add a new line on top of each file to say so.
18948 # Grep'ing the whole file is not good either: AIX grep has a line
18949 # limit of 2048, but all sed's we know have understand at least 4000.
18950 if sed -n 's,^#.*generated by automake.*,X,p' "$mf" |
grep X
>/dev
/null
2>&1; then
18951 dirpart
=`$as_dirname -- "$mf" ||
18952 $as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
18953 X"$mf" : 'X\(//\)[^/]' \| \
18954 X"$mf" : 'X\(//\)$' \| \
18955 X"$mf" : 'X\(/\)' \| . 2>/dev/null ||
18957 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
18961 /^X\(\/\/\)[^/].*/{
18977 # Extract the definition of DEPDIR, am__include, and am__quote
18978 # from the Makefile without running `make'.
18979 DEPDIR
=`sed -n 's/^DEPDIR = //p' < "$mf"`
18980 test -z "$DEPDIR" && continue
18981 am__include
=`sed -n 's/^am__include = //p' < "$mf"`
18982 test -z "am__include" && continue
18983 am__quote
=`sed -n 's/^am__quote = //p' < "$mf"`
18984 # When using ansi2knr, U may be empty or an underscore; expand it
18985 U
=`sed -n 's/^U = //p' < "$mf"`
18986 # Find all dependency output files, they are included files with
18987 # $(DEPDIR) in their names. We invoke sed twice because it is the
18988 # simplest approach to changing $(DEPDIR) to its actual value in the
18990 for file in `sed -n "
18991 s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \
18992 sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g' -e 's/\$U/'"$U"'/g'`; do
18993 # Make sure the directory exists.
18994 test -f "$dirpart/$file" && continue
18995 fdir
=`$as_dirname -- "$file" ||
18996 $as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
18997 X"$file" : 'X\(//\)[^/]' \| \
18998 X"$file" : 'X\(//\)$' \| \
18999 X"$file" : 'X\(/\)' \| . 2>/dev/null ||
19000 $as_echo X"$file" |
19001 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
19005 /^X\(\/\/\)[^/].*/{
19018 as_dir
=$dirpart/$fdir; as_fn_mkdir_p
19019 # echo "creating $dirpart/$file"
19020 echo '# dummy' > "$dirpart/$file"
19027 ### Make the necessary directories, if they don't exist.
19028 for dir
in etc lisp
; do
19029 test -d ${dir} || mkdir
${dir}
19032 echo creating src
/epaths.h
19033 ${MAKE-make} epaths-force
19035 if test ! -f src
/.gdbinit
&& test -f $srcdir/src
/.gdbinit
; then
19036 echo creating src
/.gdbinit
19037 echo source $srcdir/src
/.gdbinit
> src
/.gdbinit
19048 ac_clean_files
=$ac_clean_files_save
19050 test $ac_write_fail = 0 ||
19051 as_fn_error $?
"write failure creating $CONFIG_STATUS" "$LINENO" 5
19054 # configure is writing to config.log, and then calls config.status.
19055 # config.status does its own redirection, appending to config.log.
19056 # Unfortunately, on DOS this fails, as config.log is still kept open
19057 # by configure, so config.status won't be able to write to it; its
19058 # output is simply discarded. So we exec the FD to /dev/null,
19059 # effectively closing config.log, so it can be properly (re)opened and
19060 # appended to by config.status. When coming back to configure, we
19061 # need to make the FD available again.
19062 if test "$no_create" != yes; then
19064 ac_config_status_args
=
19065 test "$silent" = yes &&
19066 ac_config_status_args
="$ac_config_status_args --quiet"
19068 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success
=false
19070 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
19071 # would make configure fail if this is the last instruction.
19072 $ac_cs_success || as_fn_exit
1
19074 if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no
; then
19075 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
19076 $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}