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>
603 gl_getopt_required
=POSIX
604 gl_getopt_required
=POSIX
606 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_STDLIB_H
690 HAVE_SIGNED_SIG_ATOMIC_T
693 BITSIZEOF_SIG_ATOMIC_T
699 NEXT_AS_FIRST_DIRECTIVE_STDINT_H
704 HAVE_UNSIGNED_LONG_LONG_INT
706 NEXT_AS_FIRST_DIRECTIVE_STDDEF_H
713 APPLE_UNIVERSAL_BUILD
721 HAVE_DECL_LOCALTIME_R
731 NEXT_AS_FIRST_DIRECTIVE_GETOPT_H
735 INCLUDE_NEXT_AS_FIRST_DIRECTIVE
737 UNISTD_H_HAVE_WINSOCK2_H_AND_USE_SOCKETS
738 UNISTD_H_HAVE_WINSOCK2_H
757 REPLACE_GETDOMAINNAME
767 HAVE_DECL_GETUSERSHELL
768 HAVE_DECL_GETPAGESIZE
770 HAVE_DECL_GETDOMAINNAME
805 GNULIB_UNISTD_H_SIGPIPE
806 GNULIB_UNISTD_H_GETOPT
851 REPLACE_CANONICALIZE_FILE_NAME
856 HAVE_STRUCT_RANDOM_DATA
875 HAVE_CANONICALIZE_FILE_NAME
900 GNULIB_CANONICALIZE_FILE_NAME
904 GL_COND_LIBTOOL_FALSE
954 LD_SWITCH_X_SITE_AUX_RPATH
1016 INSTALL_STRIP_PROGRAM
1058 program_transform_name
1069 ac_subst_files
='deps_frag
1072 enable_option_checking
1094 with_toolkit_scroll_bars
1105 with_pkg_config_prog
1109 enable_ns_self_contained
1111 enable_maintainer_mode
1112 enable_locallisppath
1114 enable_use_lisp_union_type
1117 enable_dependency_tracking
1121 ac_precious_vars
='build_alias
1136 # Initialize some variables set by options.
1138 ac_init_version
=false
1139 ac_unrecognized_opts
=
1140 ac_unrecognized_sep
=
1141 # The variables have the same names as the options, with
1142 # dashes changed to underlines.
1143 cache_file
=/dev
/null
1150 program_transform_name
=s
,x
,x
,
1158 # Installation directory options.
1159 # These are left unexpanded so users can "make install exec_prefix=/foo"
1160 # and all the variables that are supposed to be based on exec_prefix
1161 # by default will actually change.
1162 # Use braces instead of parens because sh, perl, etc. also accept them.
1163 # (The list follows the same order as the GNU Coding Standards.)
1164 bindir
='${exec_prefix}/bin'
1165 sbindir
='${exec_prefix}/sbin'
1166 libexecdir
='${exec_prefix}/libexec'
1167 datarootdir
='${prefix}/share'
1168 datadir
='${datarootdir}'
1169 sysconfdir
='${prefix}/etc'
1170 sharedstatedir
='${prefix}/com'
1171 localstatedir
='${prefix}/var'
1172 includedir
='${prefix}/include'
1173 oldincludedir
='/usr/include'
1174 docdir
='${datarootdir}/doc/${PACKAGE_TARNAME}'
1175 infodir
='${datarootdir}/info'
1180 libdir
='${exec_prefix}/lib'
1181 localedir
='${datarootdir}/locale'
1182 mandir
='${datarootdir}/man'
1188 # If the previous option needs an argument, assign it.
1189 if test -n "$ac_prev"; then
1190 eval $ac_prev=\
$ac_option
1196 *=?
*) ac_optarg
=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
1201 # Accept the important Cygnus configure options, so we can diagnose typos.
1203 case $ac_dashdash$ac_option in
1207 -bindir |
--bindir |
--bindi |
--bind |
--bin |
--bi)
1209 -bindir=* |
--bindir=* |
--bindi=* |
--bind=* |
--bin=* |
--bi=*)
1210 bindir
=$ac_optarg ;;
1212 -build |
--build |
--buil |
--bui |
--bu)
1213 ac_prev
=build_alias
;;
1214 -build=* |
--build=* |
--buil=* |
--bui=* |
--bu=*)
1215 build_alias
=$ac_optarg ;;
1217 -cache-file |
--cache-file |
--cache-fil |
--cache-fi \
1218 |
--cache-f |
--cache- |
--cache |
--cach |
--cac |
--ca |
--c)
1219 ac_prev
=cache_file
;;
1220 -cache-file=* |
--cache-file=* |
--cache-fil=* |
--cache-fi=* \
1221 |
--cache-f=* |
--cache-=* |
--cache=* |
--cach=* |
--cac=* |
--ca=* |
--c=*)
1222 cache_file
=$ac_optarg ;;
1224 --config-cache |
-C)
1225 cache_file
=config.cache
;;
1227 -datadir |
--datadir |
--datadi |
--datad)
1229 -datadir=* |
--datadir=* |
--datadi=* |
--datad=*)
1230 datadir
=$ac_optarg ;;
1232 -datarootdir |
--datarootdir |
--datarootdi |
--datarootd |
--dataroot \
1233 |
--dataroo |
--dataro |
--datar)
1234 ac_prev
=datarootdir
;;
1235 -datarootdir=* |
--datarootdir=* |
--datarootdi=* |
--datarootd=* \
1236 |
--dataroot=* |
--dataroo=* |
--dataro=* |
--datar=*)
1237 datarootdir
=$ac_optarg ;;
1239 -disable-* |
--disable-*)
1240 ac_useropt
=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
1241 # Reject names that are not valid shell variable names.
1242 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev
/null
&&
1243 as_fn_error $?
"invalid feature name: $ac_useropt"
1244 ac_useropt_orig
=$ac_useropt
1245 ac_useropt
=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1246 case $ac_user_opts in
1248 "enable_
$ac_useropt"
1250 *) ac_unrecognized_opts
="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
1251 ac_unrecognized_sep
=', ';;
1253 eval enable_
$ac_useropt=no
;;
1255 -docdir |
--docdir |
--docdi |
--doc |
--do)
1257 -docdir=* |
--docdir=* |
--docdi=* |
--doc=* |
--do=*)
1258 docdir
=$ac_optarg ;;
1260 -dvidir |
--dvidir |
--dvidi |
--dvid |
--dvi |
--dv)
1262 -dvidir=* |
--dvidir=* |
--dvidi=* |
--dvid=* |
--dvi=* |
--dv=*)
1263 dvidir
=$ac_optarg ;;
1265 -enable-* |
--enable-*)
1266 ac_useropt
=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
1267 # Reject names that are not valid shell variable names.
1268 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev
/null
&&
1269 as_fn_error $?
"invalid feature name: $ac_useropt"
1270 ac_useropt_orig
=$ac_useropt
1271 ac_useropt
=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1272 case $ac_user_opts in
1274 "enable_
$ac_useropt"
1276 *) ac_unrecognized_opts
="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
1277 ac_unrecognized_sep
=', ';;
1279 eval enable_
$ac_useropt=\
$ac_optarg ;;
1281 -exec-prefix |
--exec_prefix |
--exec-prefix |
--exec-prefi \
1282 |
--exec-pref |
--exec-pre |
--exec-pr |
--exec-p |
--exec- \
1283 |
--exec |
--exe |
--ex)
1284 ac_prev
=exec_prefix
;;
1285 -exec-prefix=* |
--exec_prefix=* |
--exec-prefix=* |
--exec-prefi=* \
1286 |
--exec-pref=* |
--exec-pre=* |
--exec-pr=* |
--exec-p=* |
--exec-=* \
1287 |
--exec=* |
--exe=* |
--ex=*)
1288 exec_prefix
=$ac_optarg ;;
1290 -gas |
--gas |
--ga |
--g)
1291 # Obsolete; use --with-gas.
1294 -help |
--help |
--hel |
--he |
-h)
1295 ac_init_help
=long
;;
1296 -help=r
* |
--help=r
* |
--hel=r
* |
--he=r
* |
-hr*)
1297 ac_init_help
=recursive
;;
1298 -help=s
* |
--help=s
* |
--hel=s
* |
--he=s
* |
-hs*)
1299 ac_init_help
=short
;;
1301 -host |
--host |
--hos |
--ho)
1302 ac_prev
=host_alias
;;
1303 -host=* |
--host=* |
--hos=* |
--ho=*)
1304 host_alias
=$ac_optarg ;;
1306 -htmldir |
--htmldir |
--htmldi |
--htmld |
--html |
--htm |
--ht)
1308 -htmldir=* |
--htmldir=* |
--htmldi=* |
--htmld=* |
--html=* |
--htm=* \
1310 htmldir
=$ac_optarg ;;
1312 -includedir |
--includedir |
--includedi |
--included |
--include \
1313 |
--includ |
--inclu |
--incl |
--inc)
1314 ac_prev
=includedir
;;
1315 -includedir=* |
--includedir=* |
--includedi=* |
--included=* |
--include=* \
1316 |
--includ=* |
--inclu=* |
--incl=* |
--inc=*)
1317 includedir
=$ac_optarg ;;
1319 -infodir |
--infodir |
--infodi |
--infod |
--info |
--inf)
1321 -infodir=* |
--infodir=* |
--infodi=* |
--infod=* |
--info=* |
--inf=*)
1322 infodir
=$ac_optarg ;;
1324 -libdir |
--libdir |
--libdi |
--libd)
1326 -libdir=* |
--libdir=* |
--libdi=* |
--libd=*)
1327 libdir
=$ac_optarg ;;
1329 -libexecdir |
--libexecdir |
--libexecdi |
--libexecd |
--libexec \
1330 |
--libexe |
--libex |
--libe)
1331 ac_prev
=libexecdir
;;
1332 -libexecdir=* |
--libexecdir=* |
--libexecdi=* |
--libexecd=* |
--libexec=* \
1333 |
--libexe=* |
--libex=* |
--libe=*)
1334 libexecdir
=$ac_optarg ;;
1336 -localedir |
--localedir |
--localedi |
--localed |
--locale)
1337 ac_prev
=localedir
;;
1338 -localedir=* |
--localedir=* |
--localedi=* |
--localed=* |
--locale=*)
1339 localedir
=$ac_optarg ;;
1341 -localstatedir |
--localstatedir |
--localstatedi |
--localstated \
1342 |
--localstate |
--localstat |
--localsta |
--localst |
--locals)
1343 ac_prev
=localstatedir
;;
1344 -localstatedir=* |
--localstatedir=* |
--localstatedi=* |
--localstated=* \
1345 |
--localstate=* |
--localstat=* |
--localsta=* |
--localst=* |
--locals=*)
1346 localstatedir
=$ac_optarg ;;
1348 -mandir |
--mandir |
--mandi |
--mand |
--man |
--ma |
--m)
1350 -mandir=* |
--mandir=* |
--mandi=* |
--mand=* |
--man=* |
--ma=* |
--m=*)
1351 mandir
=$ac_optarg ;;
1353 -nfp |
--nfp |
--nf)
1354 # Obsolete; use --without-fp.
1357 -no-create |
--no-create |
--no-creat |
--no-crea |
--no-cre \
1358 |
--no-cr |
--no-c |
-n)
1361 -no-recursion |
--no-recursion |
--no-recursio |
--no-recursi \
1362 |
--no-recurs |
--no-recur |
--no-recu |
--no-rec |
--no-re |
--no-r)
1365 -oldincludedir |
--oldincludedir |
--oldincludedi |
--oldincluded \
1366 |
--oldinclude |
--oldinclud |
--oldinclu |
--oldincl |
--oldinc \
1367 |
--oldin |
--oldi |
--old |
--ol |
--o)
1368 ac_prev
=oldincludedir
;;
1369 -oldincludedir=* |
--oldincludedir=* |
--oldincludedi=* |
--oldincluded=* \
1370 |
--oldinclude=* |
--oldinclud=* |
--oldinclu=* |
--oldincl=* |
--oldinc=* \
1371 |
--oldin=* |
--oldi=* |
--old=* |
--ol=* |
--o=*)
1372 oldincludedir
=$ac_optarg ;;
1374 -prefix |
--prefix |
--prefi |
--pref |
--pre |
--pr |
--p)
1376 -prefix=* |
--prefix=* |
--prefi=* |
--pref=* |
--pre=* |
--pr=* |
--p=*)
1377 prefix
=$ac_optarg ;;
1379 -program-prefix |
--program-prefix |
--program-prefi |
--program-pref \
1380 |
--program-pre |
--program-pr |
--program-p)
1381 ac_prev
=program_prefix
;;
1382 -program-prefix=* |
--program-prefix=* |
--program-prefi=* \
1383 |
--program-pref=* |
--program-pre=* |
--program-pr=* |
--program-p=*)
1384 program_prefix
=$ac_optarg ;;
1386 -program-suffix |
--program-suffix |
--program-suffi |
--program-suff \
1387 |
--program-suf |
--program-su |
--program-s)
1388 ac_prev
=program_suffix
;;
1389 -program-suffix=* |
--program-suffix=* |
--program-suffi=* \
1390 |
--program-suff=* |
--program-suf=* |
--program-su=* |
--program-s=*)
1391 program_suffix
=$ac_optarg ;;
1393 -program-transform-name |
--program-transform-name \
1394 |
--program-transform-nam |
--program-transform-na \
1395 |
--program-transform-n |
--program-transform- \
1396 |
--program-transform |
--program-transfor \
1397 |
--program-transfo |
--program-transf \
1398 |
--program-trans |
--program-tran \
1399 |
--progr-tra |
--program-tr |
--program-t)
1400 ac_prev
=program_transform_name
;;
1401 -program-transform-name=* |
--program-transform-name=* \
1402 |
--program-transform-nam=* |
--program-transform-na=* \
1403 |
--program-transform-n=* |
--program-transform-=* \
1404 |
--program-transform=* |
--program-transfor=* \
1405 |
--program-transfo=* |
--program-transf=* \
1406 |
--program-trans=* |
--program-tran=* \
1407 |
--progr-tra=* |
--program-tr=* |
--program-t=*)
1408 program_transform_name
=$ac_optarg ;;
1410 -pdfdir |
--pdfdir |
--pdfdi |
--pdfd |
--pdf |
--pd)
1412 -pdfdir=* |
--pdfdir=* |
--pdfdi=* |
--pdfd=* |
--pdf=* |
--pd=*)
1413 pdfdir
=$ac_optarg ;;
1415 -psdir |
--psdir |
--psdi |
--psd |
--ps)
1417 -psdir=* |
--psdir=* |
--psdi=* |
--psd=* |
--ps=*)
1420 -q |
-quiet |
--quiet |
--quie |
--qui |
--qu |
--q \
1421 |
-silent |
--silent |
--silen |
--sile |
--sil)
1424 -sbindir |
--sbindir |
--sbindi |
--sbind |
--sbin |
--sbi |
--sb)
1426 -sbindir=* |
--sbindir=* |
--sbindi=* |
--sbind=* |
--sbin=* \
1428 sbindir
=$ac_optarg ;;
1430 -sharedstatedir |
--sharedstatedir |
--sharedstatedi \
1431 |
--sharedstated |
--sharedstate |
--sharedstat |
--sharedsta \
1432 |
--sharedst |
--shareds |
--shared |
--share |
--shar \
1434 ac_prev
=sharedstatedir
;;
1435 -sharedstatedir=* |
--sharedstatedir=* |
--sharedstatedi=* \
1436 |
--sharedstated=* |
--sharedstate=* |
--sharedstat=* |
--sharedsta=* \
1437 |
--sharedst=* |
--shareds=* |
--shared=* |
--share=* |
--shar=* \
1439 sharedstatedir
=$ac_optarg ;;
1441 -site |
--site |
--sit)
1443 -site=* |
--site=* |
--sit=*)
1446 -srcdir |
--srcdir |
--srcdi |
--srcd |
--src |
--sr)
1448 -srcdir=* |
--srcdir=* |
--srcdi=* |
--srcd=* |
--src=* |
--sr=*)
1449 srcdir
=$ac_optarg ;;
1451 -sysconfdir |
--sysconfdir |
--sysconfdi |
--sysconfd |
--sysconf \
1452 |
--syscon |
--sysco |
--sysc |
--sys |
--sy)
1453 ac_prev
=sysconfdir
;;
1454 -sysconfdir=* |
--sysconfdir=* |
--sysconfdi=* |
--sysconfd=* |
--sysconf=* \
1455 |
--syscon=* |
--sysco=* |
--sysc=* |
--sys=* |
--sy=*)
1456 sysconfdir
=$ac_optarg ;;
1458 -target |
--target |
--targe |
--targ |
--tar |
--ta |
--t)
1459 ac_prev
=target_alias
;;
1460 -target=* |
--target=* |
--targe=* |
--targ=* |
--tar=* |
--ta=* |
--t=*)
1461 target_alias
=$ac_optarg ;;
1463 -v |
-verbose |
--verbose |
--verbos |
--verbo |
--verb)
1466 -version |
--version |
--versio |
--versi |
--vers |
-V)
1467 ac_init_version
=: ;;
1470 ac_useropt
=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1471 # Reject names that are not valid shell variable names.
1472 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev
/null
&&
1473 as_fn_error $?
"invalid package name: $ac_useropt"
1474 ac_useropt_orig
=$ac_useropt
1475 ac_useropt
=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1476 case $ac_user_opts in
1480 *) ac_unrecognized_opts
="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1481 ac_unrecognized_sep
=', ';;
1483 eval with_
$ac_useropt=\
$ac_optarg ;;
1485 -without-* |
--without-*)
1486 ac_useropt
=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1487 # Reject names that are not valid shell variable names.
1488 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev
/null
&&
1489 as_fn_error $?
"invalid package name: $ac_useropt"
1490 ac_useropt_orig
=$ac_useropt
1491 ac_useropt
=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1492 case $ac_user_opts in
1496 *) ac_unrecognized_opts
="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1497 ac_unrecognized_sep
=', ';;
1499 eval with_
$ac_useropt=no
;;
1502 # Obsolete; use --with-x.
1505 -x-includes |
--x-includes |
--x-include |
--x-includ |
--x-inclu \
1506 |
--x-incl |
--x-inc |
--x-in |
--x-i)
1507 ac_prev
=x_includes
;;
1508 -x-includes=* |
--x-includes=* |
--x-include=* |
--x-includ=* |
--x-inclu=* \
1509 |
--x-incl=* |
--x-inc=* |
--x-in=* |
--x-i=*)
1510 x_includes
=$ac_optarg ;;
1512 -x-libraries |
--x-libraries |
--x-librarie |
--x-librari \
1513 |
--x-librar |
--x-libra |
--x-libr |
--x-lib |
--x-li |
--x-l)
1514 ac_prev
=x_libraries
;;
1515 -x-libraries=* |
--x-libraries=* |
--x-librarie=* |
--x-librari=* \
1516 |
--x-librar=* |
--x-libra=* |
--x-libr=* |
--x-lib=* |
--x-li=* |
--x-l=*)
1517 x_libraries
=$ac_optarg ;;
1519 -*) as_fn_error $?
"unrecognized option: \`$ac_option'
1520 Try \`$0 --help' for more information"
1524 ac_envvar
=`expr "x$ac_option" : 'x\([^=]*\)='`
1525 # Reject names that are not valid shell variable names.
1526 case $ac_envvar in #(
1527 '' |
[0-9]* |
*[!_
$as_cr_alnum]* )
1528 as_fn_error $?
"invalid variable name: \`$ac_envvar'" ;;
1530 eval $ac_envvar=\
$ac_optarg
1531 export $ac_envvar ;;
1534 # FIXME: should be removed in autoconf 3.0.
1535 $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1536 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev
/null
&&
1537 $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1538 : "${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}"
1544 if test -n "$ac_prev"; then
1545 ac_option
=--`echo $ac_prev | sed 's/_/-/g'`
1546 as_fn_error $?
"missing argument to $ac_option"
1549 if test -n "$ac_unrecognized_opts"; then
1550 case $enable_option_checking in
1552 fatal
) as_fn_error $?
"unrecognized options: $ac_unrecognized_opts" ;;
1553 *) $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
1557 # Check all directory arguments for consistency.
1558 for ac_var
in exec_prefix prefix bindir sbindir libexecdir datarootdir \
1559 datadir sysconfdir sharedstatedir localstatedir includedir \
1560 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1561 libdir localedir mandir
1563 eval ac_val
=\$
$ac_var
1564 # Remove trailing slashes.
1567 ac_val
=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1568 eval $ac_var=\
$ac_val;;
1570 # Be sure to have absolute directory names.
1572 [\\/$
]* | ?
:[\\/]* ) continue;;
1573 NONE |
'' ) case $ac_var in *prefix
) continue;; esac;;
1575 as_fn_error $?
"expected an absolute directory name for --$ac_var: $ac_val"
1578 # There might be people who depend on the old broken behavior: `$host'
1579 # used to hold the argument of --host etc.
1580 # FIXME: To remove some day.
1583 target
=$target_alias
1585 # FIXME: To remove some day.
1586 if test "x$host_alias" != x
; then
1587 if test "x$build_alias" = x
; then
1588 cross_compiling
=maybe
1589 $as_echo "$as_me: WARNING: if you wanted to set the --build type, don't use --host.
1590 If a cross compiler is detected then cross compile mode will be used" >&2
1591 elif test "x$build_alias" != "x$host_alias"; then
1597 test -n "$host_alias" && ac_tool_prefix
=$host_alias-
1599 test "$silent" = yes && exec 6>/dev
/null
1602 ac_pwd
=`pwd` && test -n "$ac_pwd" &&
1603 ac_ls_di
=`ls -di .` &&
1604 ac_pwd_ls_di
=`cd "$ac_pwd" && ls -di .` ||
1605 as_fn_error $?
"working directory cannot be determined"
1606 test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1607 as_fn_error $?
"pwd does not report name of working directory"
1610 # Find the source files, if location was not specified.
1611 if test -z "$srcdir"; then
1612 ac_srcdir_defaulted
=yes
1613 # Try the directory containing this script, then the parent directory.
1614 ac_confdir
=`$as_dirname -- "$as_myself" ||
1615 $as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1616 X"$as_myself" : 'X\(//\)[^/]' \| \
1617 X"$as_myself" : 'X\(//\)$' \| \
1618 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1619 $as_echo X"$as_myself" |
1620 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1638 if test ! -r "$srcdir/$ac_unique_file"; then
1642 ac_srcdir_defaulted
=no
1644 if test ! -r "$srcdir/$ac_unique_file"; then
1645 test "$ac_srcdir_defaulted" = yes && srcdir
="$ac_confdir or .."
1646 as_fn_error $?
"cannot find sources ($ac_unique_file) in $srcdir"
1648 ac_msg
="sources are in $srcdir, but \`cd $srcdir' does not work"
1650 cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg"
1652 # When building in place, set srcdir=.
1653 if test "$ac_abs_confdir" = "$ac_pwd"; then
1656 # Remove unnecessary trailing slashes from srcdir.
1657 # Double slashes in file names in object file debugging info
1658 # mess up M-x gdb in Emacs.
1660 */) srcdir
=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1662 for ac_var
in $ac_precious_vars; do
1663 eval ac_env_
${ac_var}_set=\${${ac_var}+set}
1664 eval ac_env_
${ac_var}_value
=\$
${ac_var}
1665 eval ac_cv_env_
${ac_var}_set=\${${ac_var}+set}
1666 eval ac_cv_env_
${ac_var}_value
=\$
${ac_var}
1670 # Report the --help message.
1672 if test "$ac_init_help" = "long"; then
1673 # Omit some internal or obsolete options to make the list less imposing.
1674 # This message is too long to be a string in the A/UX 3.1 sh.
1676 \`configure' configures emacs 24.0.50 to adapt to many kinds of systems.
1678 Usage: $0 [OPTION]... [VAR=VALUE]...
1680 To assign environment variables (e.g., CC, CFLAGS...), specify them as
1681 VAR=VALUE. See below for descriptions of some of the useful variables.
1683 Defaults for the options are specified in brackets.
1686 -h, --help display this help and exit
1687 --help=short display options specific to this package
1688 --help=recursive display the short help of all the included packages
1689 -V, --version display version information and exit
1690 -q, --quiet, --silent do not print \`checking ...' messages
1691 --cache-file=FILE cache test results in FILE [disabled]
1692 -C, --config-cache alias for \`--cache-file=config.cache'
1693 -n, --no-create do not create output files
1694 --srcdir=DIR find the sources in DIR [configure dir or \`..']
1696 Installation directories:
1697 --prefix=PREFIX install architecture-independent files in PREFIX
1698 [$ac_default_prefix]
1699 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
1702 By default, \`make install' will install all the files in
1703 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
1704 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1705 for instance \`--prefix=\$HOME'.
1707 For better control, use the options below.
1709 Fine tuning of the installation directories:
1710 --bindir=DIR user executables [EPREFIX/bin]
1711 --sbindir=DIR system admin executables [EPREFIX/sbin]
1712 --libexecdir=DIR program executables [EPREFIX/libexec]
1713 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
1714 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
1715 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
1716 --libdir=DIR object code libraries [EPREFIX/lib]
1717 --includedir=DIR C header files [PREFIX/include]
1718 --oldincludedir=DIR C header files for non-gcc [/usr/include]
1719 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
1720 --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
1721 --infodir=DIR info documentation [DATAROOTDIR/info]
1722 --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
1723 --mandir=DIR man documentation [DATAROOTDIR/man]
1724 --docdir=DIR documentation root [DATAROOTDIR/doc/emacs]
1725 --htmldir=DIR html documentation [DOCDIR]
1726 --dvidir=DIR dvi documentation [DOCDIR]
1727 --pdfdir=DIR pdf documentation [DOCDIR]
1728 --psdir=DIR ps documentation [DOCDIR]
1734 --program-prefix=PREFIX prepend PREFIX to installed program names
1735 --program-suffix=SUFFIX append SUFFIX to installed program names
1736 --program-transform-name=PROGRAM run
sed PROGRAM on installed program names
1739 --x-includes=DIR X include files are
in DIR
1740 --x-libraries=DIR X library files are
in DIR
1743 --build=BUILD configure
for building on BUILD
[guessed
]
1744 --host=HOST cross-compile to build programs to run on HOST
[BUILD
]
1748 if test -n "$ac_init_help"; then
1749 case $ac_init_help in
1750 short | recursive
) echo "Configuration of emacs 24.0.50:";;
1755 --disable-option-checking ignore unrecognized
--enable/--with options
1756 --disable-FEATURE do not include FEATURE
(same as
--enable-FEATURE=no
)
1757 --enable-FEATURE[=ARG
] include FEATURE
[ARG
=yes]
1758 --disable-ns-self-contained
1759 disable self contained build under NeXTstep
1760 --enable-asserts compile code with asserts enabled
1761 --enable-maintainer-mode
1762 enable make rules and dependencies not useful
(and
1763 sometimes confusing
) to the casual installer
1764 --enable-locallisppath=PATH
1765 directories Emacs should search
for lisp files
1766 specific to this site
1767 --enable-checking[=LIST
]
1768 enable expensive run-time checks. With LIST
, enable
1769 only specific categories of checks. Categories are
:
1770 all
,yes,no. Flags are
: stringbytes
, stringoverrun
,
1771 stringfreelist
, xmallocoverrun
, conslist
1772 --enable-use-lisp-union-type
1773 use a union
for the Lisp_Object data
type. This is
1774 only useful
for development
for catching certain
1776 --enable-profiling build emacs with profiling support. This might not
1777 work on all platforms
1778 --enable-autodepend automatically generate dependencies to .h-files.
1779 Requires GNU Make and Gcc. Enabled
if GNU Make and
1781 --disable-dependency-tracking speeds up one-time build
1782 --enable-dependency-tracking do not reject slow dependency extractors
1783 --disable-largefile omit support
for large files
1786 --with-PACKAGE[=ARG
] use PACKAGE
[ARG
=yes]
1787 --without-PACKAGE do not use PACKAGE
(same as
--with-PACKAGE=no
)
1788 --without-pop don
't support POP mail retrieval with movemail
1789 --with-kerberos support Kerberos-authenticated POP
1790 --with-kerberos5 support Kerberos version 5 authenticated POP
1791 --with-hesiod support Hesiod to get the POP server host
1792 --with-mmdf support MMDF mailboxes
1793 --with-mail-unlink unlink, rather than empty, mail spool after reading
1794 --with-mailhost=HOSTNAME
1795 string giving default POP mail host
1796 --without-sound don't compile with sound support
1797 --without-sync-input process async input synchronously
1798 --with-x-toolkit=KIT use an X toolkit
(KIT one of
: yes or gtk
, gtk3
,
1799 lucid or athena
, motif
, no
)
1800 --without-xpm don
't compile with XPM image support
1801 --without-jpeg don't compile with JPEG image support
1802 --without-tiff don
't compile with TIFF image support
1803 --without-gif don't compile with GIF image support
1804 --without-png don
't compile with PNG image support
1805 --without-rsvg don't compile with SVG image support
1806 --without-xml2 don
't compile with XML parsing support
1807 --without-imagemagick don't compile with ImageMagick image support
1808 --without-xft don
't use XFT for anti aliased fonts
1809 --without-libotf don't use libotf
for OpenType font support
1810 --without-m17n-flt don
't use m17n-flt for text shaping
1811 --without-toolkit-scroll-bars
1812 don't use Motif or Xaw3d scroll bars
1813 --without-xaw3d don
't use Xaw3d
1814 --without-xim don't use X11 XIM
1815 --with-ns use nextstep
(Cocoa or GNUstep
) windowing system
1816 --without-gpm don
't use -lgpm for mouse support on a GNU/Linux
1818 --without-dbus don't compile with D-Bus support
1819 --without-gconf don
't compile with GConf support
1820 --without-selinux don't compile with SELinux support
1821 --without-gnutls don
't use -lgnutls for SSL/TLS support
1822 --without-makeinfo don't require makeinfo
for building manuals
1823 --without-compress-info don
't compress the installed Info pages
1824 --with-pkg-config-prog=PATH
1825 path to pkg-config for finding GTK and librsvg
1826 --with-crt-dir=DIR directory containing crtn.o etc. The default is
1827 /usr/lib, or /usr/lib64 on some platforms.
1828 --with-gameuser=USER user for shared game score files
1829 --with-gnustep-conf=PATH
1830 path to GNUstep.conf; default $GNUSTEP_CONFIG_FILE,
1831 or /etc/GNUstep/GNUstep.conf
1832 --with-x use the X Window System
1834 Some influential environment variables:
1835 CC C compiler command
1836 CFLAGS C compiler flags
1837 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
1838 nonstandard directory <lib dir>
1839 LIBS libraries to pass to the linker, e.g. -l<library>
1840 CPPFLAGS (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if
1841 you have headers in a nonstandard directory <include dir>
1843 XMKMF Path to xmkmf, Makefile generator for X Window System
1845 Use these variables to override the choices made by `configure' or to
help
1846 it to
find libraries and programs with nonstandard names
/locations.
1848 Report bugs to the package provider.
1853 if test "$ac_init_help" = "recursive"; then
1854 # If there are subdirs, report their specific --help.
1855 for ac_dir
in : $ac_subdirs_all; do test "x$ac_dir" = x
: && continue
1856 test -d "$ac_dir" ||
1857 { cd "$srcdir" && ac_pwd
=`pwd` && srcdir
=.
&& test -d "$ac_dir"; } ||
1862 .
) ac_dir_suffix
= ac_top_builddir_sub
=. ac_top_build_prefix
= ;;
1864 ac_dir_suffix
=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
1865 # A ".." for each directory in $ac_dir_suffix.
1866 ac_top_builddir_sub
=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
1867 case $ac_top_builddir_sub in
1868 "") ac_top_builddir_sub
=. ac_top_build_prefix
= ;;
1869 *) ac_top_build_prefix
=$ac_top_builddir_sub/ ;;
1872 ac_abs_top_builddir
=$ac_pwd
1873 ac_abs_builddir
=$ac_pwd$ac_dir_suffix
1874 # for backward compatibility:
1875 ac_top_builddir
=$ac_top_build_prefix
1878 .
) # We are building in place.
1880 ac_top_srcdir
=$ac_top_builddir_sub
1881 ac_abs_top_srcdir
=$ac_pwd ;;
1882 [\\/]* | ?
:[\\/]* ) # Absolute name.
1883 ac_srcdir
=$srcdir$ac_dir_suffix;
1884 ac_top_srcdir
=$srcdir
1885 ac_abs_top_srcdir
=$srcdir ;;
1887 ac_srcdir
=$ac_top_build_prefix$srcdir$ac_dir_suffix
1888 ac_top_srcdir
=$ac_top_build_prefix$srcdir
1889 ac_abs_top_srcdir
=$ac_pwd/$srcdir ;;
1891 ac_abs_srcdir
=$ac_abs_top_srcdir$ac_dir_suffix
1893 cd "$ac_dir" ||
{ ac_status
=$?
; continue; }
1894 # Check for guested configure.
1895 if test -f "$ac_srcdir/configure.gnu"; then
1897 $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1898 elif test -f "$ac_srcdir/configure"; then
1900 $SHELL "$ac_srcdir/configure" --help=recursive
1902 $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1904 cd "$ac_pwd" ||
{ ac_status
=$?
; break; }
1908 test -n "$ac_init_help" && exit $ac_status
1909 if $ac_init_version; then
1911 emacs configure
24.0.50
1912 generated by GNU Autoconf
2.68
1914 Copyright
(C
) 2010 Free Software Foundation
, Inc.
1915 This configure
script is free software
; the Free Software Foundation
1916 gives unlimited permission to copy
, distribute and modify it.
1921 ## ------------------------ ##
1922 ## Autoconf initialization. ##
1923 ## ------------------------ ##
1925 # ac_fn_c_try_compile LINENO
1926 # --------------------------
1927 # Try to compile conftest.$ac_ext, and return whether this succeeded.
1928 ac_fn_c_try_compile
()
1930 as_lineno
=${as_lineno-"$1"} as_lineno_stack
=as_lineno_stack
=$as_lineno_stack
1931 rm -f conftest.
$ac_objext
1932 if { { ac_try
="$ac_compile"
1934 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
1935 *) ac_try_echo=$ac_try;;
1937 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1938 $as_echo "$ac_try_echo"; } >&5
1939 (eval "$ac_compile") 2>conftest.err
1941 if test -s conftest.err; then
1942 grep -v '^ *+' conftest.err >conftest.er1
1943 cat conftest.er1 >&5
1944 mv -f conftest.er1 conftest.err
1946 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1947 test $ac_status = 0; } && {
1948 test -z "$ac_c_werror_flag" ||
1949 test ! -s conftest.err
1950 } && test -s conftest.$ac_objext; then :
1953 $as_echo "$as_me: failed program was:" >&5
1954 sed 's/^/| /' conftest.$ac_ext >&5
1958 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1959 as_fn_set_status $ac_retval
1961 } # ac_fn_c_try_compile
1963 # ac_fn_c_try_cpp LINENO
1964 # ----------------------
1965 # Try to preprocess conftest.$ac_ext, and return whether this succeeded.
1968 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1969 if { { ac_try="$ac_cpp conftest.$ac_ext"
1971 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
1972 *) ac_try_echo
=$ac_try;;
1974 eval ac_try_echo
="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1975 $as_echo "$ac_try_echo"; } >&5
1976 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
1978 if test -s conftest.err
; then
1979 grep -v '^ *+' conftest.err
>conftest.er1
1980 cat conftest.er1
>&5
1981 mv -f conftest.er1 conftest.err
1983 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1984 test $ac_status = 0; } > conftest.i
&& {
1985 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
1986 test ! -s conftest.err
1990 $as_echo "$as_me: failed program was:" >&5
1991 sed 's/^/| /' conftest.
$ac_ext >&5
1995 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1996 as_fn_set_status
$ac_retval
2000 # ac_fn_c_check_header_mongrel LINENO HEADER VAR INCLUDES
2001 # -------------------------------------------------------
2002 # Tests whether HEADER exists, giving a warning if it cannot be compiled using
2003 # the include files in INCLUDES and setting the cache variable VAR
2005 ac_fn_c_check_header_mongrel
()
2007 as_lineno
=${as_lineno-"$1"} as_lineno_stack
=as_lineno_stack
=$as_lineno_stack
2008 if eval \
${$3+:} false
; then :
2009 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2010 $as_echo_n "checking for $2... " >&6; }
2011 if eval \
${$3+:} false
; then :
2012 $as_echo_n "(cached) " >&6
2015 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2016 $as_echo "$ac_res" >&6; }
2018 # Is the header compilable?
2019 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5
2020 $as_echo_n "checking $2 usability... " >&6; }
2021 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
2022 /* end confdefs.h. */
2026 if ac_fn_c_try_compile
"$LINENO"; then :
2027 ac_header_compiler
=yes
2029 ac_header_compiler
=no
2031 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
2032 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5
2033 $as_echo "$ac_header_compiler" >&6; }
2035 # Is the header present?
2036 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5
2037 $as_echo_n "checking $2 presence... " >&6; }
2038 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
2039 /* end confdefs.h. */
2042 if ac_fn_c_try_cpp
"$LINENO"; then :
2043 ac_header_preproc
=yes
2045 ac_header_preproc
=no
2047 rm -f conftest.err conftest.i conftest.
$ac_ext
2048 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5
2049 $as_echo "$ac_header_preproc" >&6; }
2051 # So? What about this header?
2052 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in #((
2054 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5
2055 $as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;}
2056 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
2057 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
2060 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5
2061 $as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;}
2062 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: check for missing prerequisite headers?" >&5
2063 $as_echo "$as_me: WARNING: $2: check for missing prerequisite headers?" >&2;}
2064 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5
2065 $as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;}
2066 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&5
2067 $as_echo "$as_me: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&2;}
2068 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
2069 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
2072 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2073 $as_echo_n "checking for $2... " >&6; }
2074 if eval \
${$3+:} false
; then :
2075 $as_echo_n "(cached) " >&6
2077 eval "$3=\$ac_header_compiler"
2080 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2081 $as_echo "$ac_res" >&6; }
2083 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2085 } # ac_fn_c_check_header_mongrel
2087 # ac_fn_c_try_run LINENO
2088 # ----------------------
2089 # Try to link conftest.$ac_ext, and return whether this succeeded. Assumes
2090 # that executables *can* be run.
2093 as_lineno
=${as_lineno-"$1"} as_lineno_stack
=as_lineno_stack
=$as_lineno_stack
2094 if { { ac_try
="$ac_link"
2096 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
2097 *) ac_try_echo=$ac_try;;
2099 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2100 $as_echo "$ac_try_echo"; } >&5
2101 (eval "$ac_link") 2>&5
2103 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2104 test $ac_status = 0; } && { ac_try='./conftest$ac_exeext'
2105 { { case "(($ac_try" in
2106 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
2107 *) ac_try_echo
=$ac_try;;
2109 eval ac_try_echo
="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2110 $as_echo "$ac_try_echo"; } >&5
2111 (eval "$ac_try") 2>&5
2113 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2114 test $ac_status = 0; }; }; then :
2117 $as_echo "$as_me: program exited with status $ac_status" >&5
2118 $as_echo "$as_me: failed program was:" >&5
2119 sed 's/^/| /' conftest.
$ac_ext >&5
2121 ac_retval
=$ac_status
2123 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
2124 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2125 as_fn_set_status
$ac_retval
2129 # ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES
2130 # -------------------------------------------------------
2131 # Tests whether HEADER exists and can be compiled using the include files in
2132 # INCLUDES, setting the cache variable VAR accordingly.
2133 ac_fn_c_check_header_compile
()
2135 as_lineno
=${as_lineno-"$1"} as_lineno_stack
=as_lineno_stack
=$as_lineno_stack
2136 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2137 $as_echo_n "checking for $2... " >&6; }
2138 if eval \
${$3+:} false
; then :
2139 $as_echo_n "(cached) " >&6
2141 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
2142 /* end confdefs.h. */
2146 if ac_fn_c_try_compile
"$LINENO"; then :
2151 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
2154 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2155 $as_echo "$ac_res" >&6; }
2156 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2158 } # ac_fn_c_check_header_compile
2160 # ac_fn_c_try_link LINENO
2161 # -----------------------
2162 # Try to link conftest.$ac_ext, and return whether this succeeded.
2165 as_lineno
=${as_lineno-"$1"} as_lineno_stack
=as_lineno_stack
=$as_lineno_stack
2166 rm -f conftest.
$ac_objext conftest
$ac_exeext
2167 if { { ac_try
="$ac_link"
2169 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
2170 *) ac_try_echo=$ac_try;;
2172 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2173 $as_echo "$ac_try_echo"; } >&5
2174 (eval "$ac_link") 2>conftest.err
2176 if test -s conftest.err; then
2177 grep -v '^ *+' conftest.err >conftest.er1
2178 cat conftest.er1 >&5
2179 mv -f conftest.er1 conftest.err
2181 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2182 test $ac_status = 0; } && {
2183 test -z "$ac_c_werror_flag" ||
2184 test ! -s conftest.err
2185 } && test -s conftest$ac_exeext && {
2186 test "$cross_compiling" = yes ||
2187 $as_test_x conftest$ac_exeext
2191 $as_echo "$as_me: failed program was:" >&5
2192 sed 's/^/| /' conftest.$ac_ext >&5
2196 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
2197 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
2198 # interfere with the next link command; also delete a directory that is
2199 # left behind by Apple's compiler. We do this before executing the actions.
2200 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
2201 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2202 as_fn_set_status $ac_retval
2204 } # ac_fn_c_try_link
2206 # ac_fn_c_check_decl LINENO SYMBOL VAR INCLUDES
2207 # ---------------------------------------------
2208 # Tests whether SYMBOL is declared in INCLUDES, setting cache variable VAR
2210 ac_fn_c_check_decl ()
2212 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2213 as_decl_name=`echo $2|
sed 's/ *(.*//'`
2214 as_decl_use=`echo $2|
sed -e 's/(/((/' -e 's/)/) 0&/' -e 's/,/) 0& (/g'`
2215 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $as_decl_name is declared" >&5
2216 $as_echo_n "checking whether $as_decl_name is declared... " >&6; }
2217 if eval \${$3+:} false; then :
2218 $as_echo_n "(cached) " >&6
2220 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2221 /* end confdefs.h. */
2226 #ifndef $as_decl_name
2228 (void) $as_decl_use;
2230 (void) $as_decl_name;
2238 if ac_fn_c_try_compile "$LINENO"; then :
2243 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2246 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2247 $as_echo "$ac_res" >&6; }
2248 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2250 } # ac_fn_c_check_decl
2252 # ac_fn_c_check_header_preproc LINENO HEADER VAR
2253 # ----------------------------------------------
2254 # Tests whether HEADER is present, setting the cache variable VAR accordingly.
2255 ac_fn_c_check_header_preproc ()
2257 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2258 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2259 $as_echo_n "checking for $2... " >&6; }
2260 if eval \${$3+:} false; then :
2261 $as_echo_n "(cached) " >&6
2263 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2264 /* end confdefs.h. */
2267 if ac_fn_c_try_cpp "$LINENO"; then :
2272 rm -f conftest.err conftest.i conftest.$ac_ext
2275 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2276 $as_echo "$ac_res" >&6; }
2277 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2279 } # ac_fn_c_check_header_preproc
2281 # ac_fn_c_check_member LINENO AGGR MEMBER VAR INCLUDES
2282 # ----------------------------------------------------
2283 # Tries to find if the field MEMBER exists in type AGGR, after including
2284 # INCLUDES, setting cache variable VAR accordingly.
2285 ac_fn_c_check_member ()
2287 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2288 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2.$3" >&5
2289 $as_echo_n "checking for $2.$3... " >&6; }
2290 if eval \${$4+:} false; then :
2291 $as_echo_n "(cached) " >&6
2293 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2294 /* end confdefs.h. */
2306 if ac_fn_c_try_compile "$LINENO"; then :
2309 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2310 /* end confdefs.h. */
2316 if (sizeof ac_aggr.$3)
2322 if ac_fn_c_try_compile "$LINENO"; then :
2327 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2329 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2332 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2333 $as_echo "$ac_res" >&6; }
2334 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2336 } # ac_fn_c_check_member
2338 # ac_fn_c_check_func LINENO FUNC VAR
2339 # ----------------------------------
2340 # Tests whether FUNC exists, setting the cache variable VAR accordingly
2341 ac_fn_c_check_func ()
2343 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2344 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2345 $as_echo_n "checking for $2... " >&6; }
2346 if eval \${$3+:} false; then :
2347 $as_echo_n "(cached) " >&6
2349 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2350 /* end confdefs.h. */
2351 /* Define $2 to an innocuous variant, in case <limits.h> declares $2.
2352 For example, HP-UX 11i <limits.h> declares gettimeofday. */
2353 #define $2 innocuous_$2
2355 /* System header to define __stub macros and hopefully few prototypes,
2356 which can conflict with char $2 (); below.
2357 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
2358 <limits.h> exists even on freestanding compilers. */
2361 # include <limits.h>
2363 # include <assert.h>
2368 /* Override any GCC internal prototype to avoid an error.
2369 Use char because int might match the return type of a GCC
2370 builtin and then its argument prototype would still apply. */
2375 /* The GNU C library defines this for functions which it implements
2376 to always fail with ENOSYS. Some functions are actually named
2377 something starting with __ and the normal name is an alias. */
2378 #if defined __stub_$2 || defined __stub___$2
2390 if ac_fn_c_try_link "$LINENO"; then :
2395 rm -f core conftest.err conftest.$ac_objext \
2396 conftest$ac_exeext conftest.$ac_ext
2399 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2400 $as_echo "$ac_res" >&6; }
2401 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2403 } # ac_fn_c_check_func
2405 # ac_fn_c_check_type LINENO TYPE VAR INCLUDES
2406 # -------------------------------------------
2407 # Tests whether TYPE exists after having included INCLUDES, setting cache
2408 # variable VAR accordingly.
2409 ac_fn_c_check_type ()
2411 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2412 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2413 $as_echo_n "checking for $2... " >&6; }
2414 if eval \${$3+:} false; then :
2415 $as_echo_n "(cached) " >&6
2418 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2419 /* end confdefs.h. */
2430 if ac_fn_c_try_compile "$LINENO"; then :
2431 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2432 /* end confdefs.h. */
2443 if ac_fn_c_try_compile "$LINENO"; then :
2448 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2450 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2453 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2454 $as_echo "$ac_res" >&6; }
2455 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2457 } # ac_fn_c_check_type
2459 # ac_fn_c_compute_int LINENO EXPR VAR INCLUDES
2460 # --------------------------------------------
2461 # Tries to find the compile-time value of EXPR in a program that includes
2462 # INCLUDES, setting VAR accordingly. Returns whether the value could be
2464 ac_fn_c_compute_int ()
2466 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2467 if test "$cross_compiling" = yes; then
2468 # Depending upon the size, compute the lo and hi bounds.
2469 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2470 /* end confdefs.h. */
2475 static int test_array [1 - 2 * !(($2) >= 0)];
2482 if ac_fn_c_try_compile "$LINENO"; then :
2485 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2486 /* end confdefs.h. */
2491 static int test_array [1 - 2 * !(($2) <= $ac_mid)];
2498 if ac_fn_c_try_compile "$LINENO"; then :
2499 ac_hi=$ac_mid; break
2501 as_fn_arith $ac_mid + 1 && ac_lo=$as_val
2502 if test $ac_lo -le $ac_mid; then
2506 as_fn_arith 2 '*' $ac_mid + 1 && ac_mid=$as_val
2508 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2511 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2512 /* end confdefs.h. */
2517 static int test_array [1 - 2 * !(($2) < 0)];
2524 if ac_fn_c_try_compile "$LINENO"; then :
2527 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2528 /* end confdefs.h. */
2533 static int test_array [1 - 2 * !(($2) >= $ac_mid)];
2540 if ac_fn_c_try_compile "$LINENO"; then :
2541 ac_lo=$ac_mid; break
2543 as_fn_arith '(' $ac_mid ')' - 1 && ac_hi=$as_val
2544 if test $ac_mid -le $ac_hi; then
2548 as_fn_arith 2 '*' $ac_mid && ac_mid=$as_val
2550 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2555 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2557 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2558 # Binary search between lo and hi bounds.
2559 while test "x$ac_lo" != "x$ac_hi"; do
2560 as_fn_arith '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo && ac_mid=$as_val
2561 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2562 /* end confdefs.h. */
2567 static int test_array [1 - 2 * !(($2) <= $ac_mid)];
2574 if ac_fn_c_try_compile "$LINENO"; then :
2577 as_fn_arith '(' $ac_mid ')' + 1 && ac_lo=$as_val
2579 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2582 ?*) eval "$3=\$ac_lo"; ac_retval=0 ;;
2586 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2587 /* end confdefs.h. */
2589 static long int longval () { return $2; }
2590 static unsigned long int ulongval () { return $2; }
2597 FILE *f = fopen ("conftest.val", "w");
2602 long int i = longval ();
2605 fprintf (f, "%ld", i);
2609 unsigned long int i = ulongval ();
2612 fprintf (f, "%lu", i);
2614 /* Do not output a trailing newline, as this causes \r\n confusion
2615 on some platforms. */
2616 return ferror (f) || fclose (f) != 0;
2622 if ac_fn_c_try_run "$LINENO"; then :
2623 echo >>conftest.val; read $3 <conftest.val; ac_retval=0
2627 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
2628 conftest.$ac_objext conftest.beam conftest.$ac_ext
2632 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2633 as_fn_set_status $ac_retval
2635 } # ac_fn_c_compute_int
2636 cat >config.log <<_ACEOF
2637 This file contains any messages produced by compilers while
2638 running configure, to aid debugging if configure makes a mistake.
2640 It was created by emacs $as_me 24.0.50, which was
2641 generated by GNU Autoconf 2.68. Invocation command line was
2653 hostname = `(hostname || uname
-n) 2>/dev
/null |
sed 1q
`
2654 uname -m = `(uname
-m) 2>/dev
/null ||
echo unknown
`
2655 uname -r = `(uname
-r) 2>/dev
/null ||
echo unknown
`
2656 uname -s = `(uname
-s) 2>/dev
/null ||
echo unknown
`
2657 uname -v = `(uname
-v) 2>/dev
/null ||
echo unknown
`
2659 /usr/bin/uname -p = `(/usr
/bin
/uname
-p) 2>/dev
/null ||
echo unknown
`
2660 /bin/uname -X = `(/bin
/uname
-X) 2>/dev
/null ||
echo unknown
`
2662 /bin/arch = `(/bin
/arch
) 2>/dev
/null ||
echo unknown
`
2663 /usr/bin/arch -k = `(/usr
/bin
/arch
-k) 2>/dev
/null ||
echo unknown
`
2664 /usr/convex/getsysinfo = `(/usr
/convex
/getsysinfo
) 2>/dev
/null ||
echo unknown
`
2665 /usr/bin/hostinfo = `(/usr
/bin
/hostinfo
) 2>/dev
/null ||
echo unknown
`
2666 /bin/machine = `(/bin
/machine
) 2>/dev
/null ||
echo unknown
`
2667 /usr/bin/oslevel = `(/usr
/bin
/oslevel
) 2>/dev
/null ||
echo unknown
`
2668 /bin/universe = `(/bin
/universe
) 2>/dev
/null ||
echo unknown
`
2672 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2676 test -z "$as_dir" && as_dir=.
2677 $as_echo "PATH: $as_dir"
2693 # Keep a trace of the command line.
2694 # Strip out --no-create and --no-recursion so they do not pile up.
2695 # Strip out --silent because we don't want to record it for future runs.
2696 # Also quote any args containing shell meta-characters.
2697 # Make two passes to allow for proper duplicate-argument suppression.
2701 ac_must_keep_next=false
2707 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
2708 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
2709 | -silent | --silent | --silen | --sile | --sil)
2712 ac_arg=`$as_echo "$ac_arg" |
sed "s/'/'\\\\\\\\''/g"` ;;
2715 1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
2717 as_fn_append ac_configure_args1 " '$ac_arg'"
2718 if test $ac_must_keep_next = true; then
2719 ac_must_keep_next=false # Got value, back to normal.
2722 *=* | --config-cache | -C | -disable-* | --disable-* \
2723 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
2724 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
2725 | -with-* | --with-* | -without-* | --without-* | --x)
2726 case "$ac_configure_args0 " in
2727 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
2730 -* ) ac_must_keep_next=true ;;
2733 as_fn_append ac_configure_args " '$ac_arg'"
2738 { ac_configure_args0=; unset ac_configure_args0;}
2739 { ac_configure_args1=; unset ac_configure_args1;}
2741 # When interrupted or exit'd, cleanup temporary files, and complete
2742 # config.log. We remove comments because anyway the quotes in there
2743 # would cause problems or look ugly.
2744 # WARNING: Use '\'' to represent an apostrophe within the trap.
2745 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
2746 trap 'exit_status=$?
2747 # Save into config.log some information that might help in debugging.
2751 $as_echo "## ---------------- ##
2752 ## Cache variables. ##
2753 ## ---------------- ##"
2755 # The following way of writing the cache mishandles newlines in values,
2757 for ac_var in `(set) 2>&1 |
sed -n '\''s
/^\
([a-zA-Z_
][a-zA-Z0-9_
]*\
)=.
*/\
1/p
'\''`; do
2758 eval ac_val=\$$ac_var
2762 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
2763 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
2766 _ | IFS | as_nl) ;; #(
2767 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
2768 *) { eval $ac_var=; unset $ac_var;} ;;
2773 case $as_nl`(ac_space
='\'' '\''; set) 2>&1` in #(
2774 *${as_nl}ac_space=\ *)
2776 "s/'\''/'\''\\\\'\'''\''/g;
2777 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
2780 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
2787 $as_echo "## ----------------- ##
2788 ## Output variables. ##
2789 ## ----------------- ##"
2791 for ac_var in $ac_subst_vars
2793 eval ac_val=\$$ac_var
2795 *\'\''*) ac_val=`$as_echo "$ac_val" |
sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2797 $as_echo "$ac_var='\''$ac_val'\''"
2801 if test -n "$ac_subst_files"; then
2802 $as_echo "## ------------------- ##
2803 ## File substitutions. ##
2804 ## ------------------- ##"
2806 for ac_var in $ac_subst_files
2808 eval ac_val=\$$ac_var
2810 *\'\''*) ac_val=`$as_echo "$ac_val" |
sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2812 $as_echo "$ac_var='\''$ac_val'\''"
2817 if test -s confdefs.h; then
2818 $as_echo "## ----------- ##
2825 test "$ac_signal" != 0 &&
2826 $as_echo "$as_me: caught signal $ac_signal"
2827 $as_echo "$as_me: exit $exit_status"
2829 rm -f core *.core core.conftest.* &&
2830 rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
2833 for ac_signal in 1 2 13 15; do
2834 trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
2838 # confdefs.h avoids OS command line length limits that DEFS can exceed.
2839 rm -f -r conftest* confdefs.h
2841 $as_echo "/* confdefs.h */" > confdefs.h
2843 # Predefined preprocessor variables.
2845 cat >>confdefs.h <<_ACEOF
2846 #define PACKAGE_NAME "$PACKAGE_NAME"
2849 cat >>confdefs.h <<_ACEOF
2850 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
2853 cat >>confdefs.h <<_ACEOF
2854 #define PACKAGE_VERSION "$PACKAGE_VERSION"
2857 cat >>confdefs.h <<_ACEOF
2858 #define PACKAGE_STRING "$PACKAGE_STRING"
2861 cat >>confdefs.h <<_ACEOF
2862 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
2865 cat >>confdefs.h <<_ACEOF
2866 #define PACKAGE_URL "$PACKAGE_URL"
2870 # Let the site file select an alternate cache file if it wants to.
2871 # Prefer an explicitly selected file to automatically selected ones.
2874 if test -n "$CONFIG_SITE"; then
2875 # We do not want a PATH search for config.site.
2876 case $CONFIG_SITE in #((
2877 -*) ac_site_file1=./$CONFIG_SITE;;
2878 */*) ac_site_file1=$CONFIG_SITE;;
2879 *) ac_site_file1=./$CONFIG_SITE;;
2881 elif test "x$prefix" != xNONE; then
2882 ac_site_file1=$prefix/share/config.site
2883 ac_site_file2=$prefix/etc/config.site
2885 ac_site_file1=$ac_default_prefix/share/config.site
2886 ac_site_file2=$ac_default_prefix/etc/config.site
2888 for ac_site_file in "$ac_site_file1" "$ac_site_file2"
2890 test "x$ac_site_file" = xNONE && continue
2891 if test /dev/null != "$ac_site_file" && test -r "$ac_site_file"; then
2892 { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
2893 $as_echo "$as_me: loading site script $ac_site_file" >&6;}
2894 sed 's/^/| /' "$ac_site_file" >&5
2896 || { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2897 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2898 as_fn_error $? "failed to load site
script $ac_site_file
2899 See \
`config.log' for more details" "$LINENO" 5; }
2903 if test -r "$cache_file"; then
2904 # Some versions of bash will fail to source /dev/null (special files
2905 # actually), so we avoid doing that. DJGPP emulates it as a regular file.
2906 if test /dev/null != "$cache_file" && test -f "$cache_file"; then
2907 { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
2908 $as_echo "$as_me: loading cache $cache_file" >&6;}
2910 [\\/]* | ?:[\\/]* ) . "$cache_file";;
2911 *) . "./$cache_file";;
2915 { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
2916 $as_echo "$as_me: creating cache $cache_file" >&6;}
2920 as_fn_append ac_header_list " stdlib.h"
2921 as_fn_append ac_header_list " unistd.h"
2922 as_fn_append ac_header_list " sys/param.h"
2923 gl_getopt_required=GNU
2924 as_fn_append ac_header_list " getopt.h"
2925 as_fn_append ac_func_list " alarm"
2926 as_fn_append ac_header_list " wchar.h"
2927 as_fn_append ac_header_list " stdint.h"
2928 as_fn_append ac_func_list " tzset"
2929 as_fn_append ac_header_list " sys/time.h"
2930 as_fn_append ac_func_list " localtime_r"
2931 # Check that the precious variables saved in the cache have kept the same
2933 ac_cache_corrupted=false
2934 for ac_var in $ac_precious_vars; do
2935 eval ac_old_set=\$ac_cv_env_${ac_var}_set
2936 eval ac_new_set=\$ac_env_${ac_var}_set
2937 eval ac_old_val=\$ac_cv_env_${ac_var}_value
2938 eval ac_new_val=\$ac_env_${ac_var}_value
2939 case $ac_old_set,$ac_new_set in
2941 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run
" >&5
2942 $as_echo "$as_me: error
: \
`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
2943 ac_cache_corrupted=: ;;
2945 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not
set in the previous run
" >&5
2946 $as_echo "$as_me: error
: \
`$ac_var' was not set in the previous run" >&2;}
2947 ac_cache_corrupted=: ;;
2950 if test "x$ac_old_val" != "x$ac_new_val"; then
2951 # differences in whitespace do not lead to failure.
2952 ac_old_val_w=`echo x
$ac_old_val`
2953 ac_new_val_w=`echo x
$ac_new_val`
2954 if test "$ac_old_val_w" != "$ac_new_val_w"; then
2955 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
2956 $as_echo "$as_me: error: \`$ac_var' has changed since the previous run
:" >&2;}
2957 ac_cache_corrupted=:
2959 { $as_echo "$as_me:${as_lineno-$LINENO}: warning
: ignoring whitespace changes
in \
`$ac_var' since the previous run:" >&5
2960 $as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
2961 eval $ac_var=\$ac_old_val
2963 { $as_echo "$as_me:${as_lineno-$LINENO}: former value: \`$ac_old_val'" >&5
2964 $as_echo "$as_me: former value
: \
`$ac_old_val'" >&2;}
2965 { $as_echo "$as_me:${as_lineno-$LINENO}: current value: \`$ac_new_val'" >&5
2966 $as_echo "$as_me: current value: \`$ac_new_val'" >&2;}
2969 # Pass precious variables to config.status.
2970 if test "$ac_new_set" = set; then
2972 *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s
/'/'\\\\\\\\''/g
"` ;;
2973 *) ac_arg=$ac_var=$ac_new_val ;;
2975 case " $ac_configure_args " in
2976 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
2977 *) as_fn_append ac_configure_args " '$ac_arg'" ;;
2981 if $ac_cache_corrupted; then
2982 { $as_echo "$as_me:${as_lineno-$LINENO}: error
: in \
`$ac_pwd':" >&5
2983 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2984 { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
2985 $as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
2986 as_fn_error $? "run \`make distclean' and
/or \
`rm $cache_file' and start over" "$LINENO" 5
2988 ## -------------------- ##
2989 ## Main body of script. ##
2990 ## -------------------- ##
2993 ac_cpp='$CPP $CPPFLAGS'
2994 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2995 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2996 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2999 ac_config_headers="$ac_config_headers src/config.h:src/config.in"
3002 am__api_version='1.11'
3005 for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do
3006 if test -f "$ac_dir/install-sh"; then
3008 ac_install_sh="$ac_aux_dir/install-sh -c"
3010 elif test -f "$ac_dir/install.sh"; then
3012 ac_install_sh="$ac_aux_dir/install.sh -c"
3014 elif test -f "$ac_dir/shtool"; then
3016 ac_install_sh="$ac_aux_dir/shtool install -c"
3020 if test -z "$ac_aux_dir"; then
3021 as_fn_error $? "cannot find install-sh, install.sh, or shtool in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" "$LINENO" 5
3024 # These three variables are undocumented and unsupported,
3025 # and are intended to be withdrawn in a future Autoconf release.
3026 # They can cause serious problems if a builder's source tree is in a directory
3027 # whose full name contains unusual characters.
3028 ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
3029 ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
3030 ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var.
3033 # Find a good install program. We prefer a C program (faster),
3034 # so one script is as good as another. But avoid the broken or
3035 # incompatible versions:
3036 # SysV /etc/install, /usr/sbin/install
3037 # SunOS /usr/etc/install
3038 # IRIX /sbin/install
3040 # AmigaOS /C/install, which installs bootblocks on floppy discs
3041 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
3042 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
3043 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
3044 # OS/2's system install, which has a completely different semantic
3045 # ./install, which can be erroneously created by make from ./install.sh.
3046 # Reject install programs that cannot install multiple files.
3047 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5
3048 $as_echo_n "checking for a BSD-compatible install... " >&6; }
3049 if test -z "$INSTALL"; then
3050 if ${ac_cv_path_install+:} false; then :
3051 $as_echo_n "(cached) " >&6
3053 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3057 test -z "$as_dir" && as_dir=.
3058 # Account for people who put trailing slashes in PATH elements.
3059 case $as_dir/ in #((
3060 ./ | .// | /[cC]/* | \
3061 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
3062 ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \
3065 # OSF1 and SCO ODT 3.0 have their own names for install.
3066 # Don't use installbsd from OSF since it installs stuff as root
3068 for ac_prog in ginstall scoinst install; do
3069 for ac_exec_ext in '' $ac_executable_extensions; do
3070 if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; }; then
3071 if test $ac_prog = install &&
3072 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
3073 # AIX install. It has an incompatible calling convention.
3075 elif test $ac_prog = install &&
3076 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
3077 # program-specific install script used by HP pwplus--don't use.
3080 rm -rf conftest.one conftest.two conftest.dir
3081 echo one > conftest.one
3082 echo two > conftest.two
3084 if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" &&
3085 test -s conftest.one && test -s conftest.two &&
3086 test -s conftest.dir/conftest.one &&
3087 test -s conftest.dir/conftest.two
3089 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
3102 rm -rf conftest.one conftest.two conftest.dir
3105 if test "${ac_cv_path_install+set}" = set; then
3106 INSTALL=$ac_cv_path_install
3108 # As a last resort, use the slow shell script. Don't cache a
3109 # value for INSTALL within a source directory, because that will
3110 # break other packages using the cache if that directory is
3111 # removed, or if the value is a relative name.
3112 INSTALL=$ac_install_sh
3115 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
3116 $as_echo "$INSTALL" >&6; }
3118 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
3119 # It thinks the first close brace ends the variable substitution.
3120 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
3122 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
3124 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
3126 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether build environment is sane" >&5
3127 $as_echo_n "checking whether build environment is sane... " >&6; }
3130 echo timestamp > conftest.file
3131 # Reject unsafe characters in $srcdir or the absolute working directory
3132 # name. Accept space and tab only in the latter.
3136 *[\\\"\#\$\&\'\`$am_lf]*)
3137 as_fn_error $?
"unsafe absolute working directory name" "$LINENO" 5;;
3140 *[\\\"\
#\$\&\'\`$am_lf\ \ ]*)
3141 as_fn_error $?
"unsafe srcdir value: \`$srcdir'" "$LINENO" 5;;
3144 # Do `set' in a subshell so we don't clobber the current shell's
3145 # arguments. Must try -L first in case configure is actually a
3146 # symlink; some systems play weird games with the mod time of symlinks
3147 # (eg FreeBSD returns the mod time of the symlink's containing
3150 set X
`ls -Lt "$srcdir/configure" conftest.file 2> /dev/null`
3151 if test "$*" = "X"; then
3153 set X
`ls -t "$srcdir/configure" conftest.file`
3156 if test "$*" != "X $srcdir/configure conftest.file" \
3157 && test "$*" != "X conftest.file $srcdir/configure"; then
3159 # If neither matched, then we have a broken ls. This can happen
3160 # if, for instance, CONFIG_SHELL is bash and it inherits a
3161 # broken ls alias from the environment. This has actually
3162 # happened. Such a system could not be considered "sane".
3163 as_fn_error $?
"ls -t appears to fail. Make sure there is not a broken
3164 alias in your environment" "$LINENO" 5
3167 test "$2" = conftest.
file
3173 as_fn_error $?
"newly created file is older than distributed files!
3174 Check your system clock" "$LINENO" 5
3176 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3177 $as_echo "yes" >&6; }
3178 test "$program_prefix" != NONE
&&
3179 program_transform_name
="s&^&$program_prefix&;$program_transform_name"
3180 # Use a double $ so make ignores it.
3181 test "$program_suffix" != NONE
&&
3182 program_transform_name
="s&\$&$program_suffix&;$program_transform_name"
3183 # Double any \ or $.
3184 # By default was `s,x,x', remove it if useless.
3185 ac_script
='s/[\\$]/&&/g;s/;s,x,x,$//'
3186 program_transform_name
=`$as_echo "$program_transform_name" | sed "$ac_script"`
3188 # expand $ac_aux_dir to an absolute path
3189 am_aux_dir
=`cd $ac_aux_dir && pwd`
3191 if test x
"${MISSING+set}" != xset
; then
3194 MISSING
="\${SHELL} \"$am_aux_dir/missing\"" ;;
3196 MISSING
="\${SHELL} $am_aux_dir/missing" ;;
3199 # Use eval to expand $SHELL
3200 if eval "$MISSING --run true"; then
3201 am_missing_run
="$MISSING --run "
3204 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`missing' script is too old or missing" >&5
3205 $as_echo "$as_me: WARNING: \`missing' script is too old or missing" >&2;}
3208 if test x
"${install_sh}" != xset
; then
3211 install_sh
="\${SHELL} '$am_aux_dir/install-sh'" ;;
3213 install_sh
="\${SHELL} $am_aux_dir/install-sh"
3217 # Installed binaries are usually stripped using `strip' when the user
3218 # run `make install-strip'. However `strip' might not be the right
3219 # tool to use in cross-compilation environments, therefore Automake
3220 # will honor the `STRIP' environment variable to overrule this program.
3221 if test "$cross_compiling" != no
; then
3222 if test -n "$ac_tool_prefix"; then
3223 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
3224 set dummy
${ac_tool_prefix}strip
; ac_word
=$2
3225 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3226 $as_echo_n "checking for $ac_word... " >&6; }
3227 if ${ac_cv_prog_STRIP+:} false
; then :
3228 $as_echo_n "(cached) " >&6
3230 if test -n "$STRIP"; then
3231 ac_cv_prog_STRIP
="$STRIP" # Let the user override the test.
3233 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
3237 test -z "$as_dir" && as_dir
=.
3238 for ac_exec_ext
in '' $ac_executable_extensions; do
3239 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3240 ac_cv_prog_STRIP
="${ac_tool_prefix}strip"
3241 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3250 STRIP
=$ac_cv_prog_STRIP
3251 if test -n "$STRIP"; then
3252 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
3253 $as_echo "$STRIP" >&6; }
3255 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3256 $as_echo "no" >&6; }
3261 if test -z "$ac_cv_prog_STRIP"; then
3263 # Extract the first word of "strip", so it can be a program name with args.
3264 set dummy strip
; ac_word
=$2
3265 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3266 $as_echo_n "checking for $ac_word... " >&6; }
3267 if ${ac_cv_prog_ac_ct_STRIP+:} false
; then :
3268 $as_echo_n "(cached) " >&6
3270 if test -n "$ac_ct_STRIP"; then
3271 ac_cv_prog_ac_ct_STRIP
="$ac_ct_STRIP" # Let the user override the test.
3273 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
3277 test -z "$as_dir" && as_dir
=.
3278 for ac_exec_ext
in '' $ac_executable_extensions; do
3279 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3280 ac_cv_prog_ac_ct_STRIP
="strip"
3281 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3290 ac_ct_STRIP
=$ac_cv_prog_ac_ct_STRIP
3291 if test -n "$ac_ct_STRIP"; then
3292 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
3293 $as_echo "$ac_ct_STRIP" >&6; }
3295 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3296 $as_echo "no" >&6; }
3299 if test "x$ac_ct_STRIP" = x
; then
3302 case $cross_compiling:$ac_tool_warned in
3304 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3305 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3306 ac_tool_warned
=yes ;;
3311 STRIP
="$ac_cv_prog_STRIP"
3315 INSTALL_STRIP_PROGRAM
="\$(install_sh) -c -s"
3317 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a thread-safe mkdir -p" >&5
3318 $as_echo_n "checking for a thread-safe mkdir -p... " >&6; }
3319 if test -z "$MKDIR_P"; then
3320 if ${ac_cv_path_mkdir+:} false
; then :
3321 $as_echo_n "(cached) " >&6
3323 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
3324 for as_dir
in $PATH$PATH_SEPARATOR/opt
/sfw
/bin
3327 test -z "$as_dir" && as_dir
=.
3328 for ac_prog
in mkdir gmkdir
; do
3329 for ac_exec_ext
in '' $ac_executable_extensions; do
3330 { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; } ||
continue
3331 case `"$as_dir/$ac_prog$ac_exec_ext" --version 2>&1` in #(
3332 'mkdir (GNU coreutils) '* | \
3333 'mkdir (coreutils) '* | \
3334 'mkdir (fileutils) '4.1*)
3335 ac_cv_path_mkdir
=$as_dir/$ac_prog$ac_exec_ext
3345 test -d .
/--version && rmdir .
/--version
3346 if test "${ac_cv_path_mkdir+set}" = set; then
3347 MKDIR_P
="$ac_cv_path_mkdir -p"
3349 # As a last resort, use the slow shell script. Don't cache a
3350 # value for MKDIR_P within a source directory, because that will
3351 # break other packages using the cache if that directory is
3352 # removed, or if the value is a relative name.
3353 MKDIR_P
="$ac_install_sh -d"
3356 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MKDIR_P" >&5
3357 $as_echo "$MKDIR_P" >&6; }
3362 [\\/$
]* | ?
:[\\/]*) ;;
3363 */*) mkdir_p
="\$(top_builddir)/$mkdir_p" ;;
3366 for ac_prog
in gawk mawk nawk
awk
3368 # Extract the first word of "$ac_prog", so it can be a program name with args.
3369 set dummy
$ac_prog; ac_word
=$2
3370 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3371 $as_echo_n "checking for $ac_word... " >&6; }
3372 if ${ac_cv_prog_AWK+:} false
; then :
3373 $as_echo_n "(cached) " >&6
3375 if test -n "$AWK"; then
3376 ac_cv_prog_AWK
="$AWK" # Let the user override the test.
3378 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
3382 test -z "$as_dir" && as_dir
=.
3383 for ac_exec_ext
in '' $ac_executable_extensions; do
3384 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3385 ac_cv_prog_AWK
="$ac_prog"
3386 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3396 if test -n "$AWK"; then
3397 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
3398 $as_echo "$AWK" >&6; }
3400 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3401 $as_echo "no" >&6; }
3405 test -n "$AWK" && break
3408 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
3409 $as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
3411 ac_make
=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
3412 if eval \
${ac_cv_prog_make_${ac_make}_set+:} false
; then :
3413 $as_echo_n "(cached) " >&6
3415 cat >conftest.
make <<\_ACEOF
3418 @
echo '@@@%%%=$(MAKE)=@@@%%%'
3420 # GNU make sometimes prints "make[1]: Entering ...", which would confuse us.
3421 case `${MAKE-make} -f conftest.make 2>/dev/null` in
3423 eval ac_cv_prog_make_
${ac_make}_set
=yes;;
3425 eval ac_cv_prog_make_
${ac_make}_set
=no
;;
3429 if eval test \
$ac_cv_prog_make_${ac_make}_set
= yes; then
3430 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3431 $as_echo "yes" >&6; }
3434 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3435 $as_echo "no" >&6; }
3436 SET_MAKE
="MAKE=${MAKE-make}"
3439 rm -rf .tst
2>/dev
/null
3440 mkdir .tst
2>/dev
/null
3441 if test -d .tst
; then
3446 rmdir .tst
2>/dev
/null
3448 if test "`cd $srcdir && pwd`" != "`pwd`"; then
3449 # Use -I$(srcdir) only when $(srcdir) != ., so that make's output
3450 # is not polluted with repeated "-I."
3451 am__isrc
=' -I$(srcdir)'
3452 # test to see if srcdir already configured
3453 if test -f $srcdir/config.status
; then
3454 as_fn_error $?
"source directory already configured; run \"make distclean\" there first" "$LINENO" 5
3458 # test whether we have cygpath
3459 if test -z "$CYGPATH_W"; then
3460 if (cygpath
--version) >/dev
/null
2>/dev
/null
; then
3461 CYGPATH_W
='cygpath -w'
3468 # Define the identity of the package.
3473 cat >>confdefs.h
<<_ACEOF
3474 #define PACKAGE "$PACKAGE"
3478 cat >>confdefs.h
<<_ACEOF
3479 #define VERSION "$VERSION"
3482 # Some tools Automake needs.
3484 ACLOCAL
=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
3487 AUTOCONF
=${AUTOCONF-"${am_missing_run}autoconf"}
3490 AUTOMAKE
=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
3493 AUTOHEADER
=${AUTOHEADER-"${am_missing_run}autoheader"}
3496 MAKEINFO
=${MAKEINFO-"${am_missing_run}makeinfo"}
3498 # We need awk for the "check" target. The system "awk" is bad on
3500 # Always define AMTAR for backward compatibility.
3502 AMTAR
=${AMTAR-"${am_missing_run}tar"}
3504 am__tar
='${AMTAR} chof - "$$tardir"'; am__untar
='${AMTAR} xf -'
3513 lispdir
='${datadir}/emacs/${version}/lisp'
3514 locallisppath
='${datadir}/emacs/${version}/site-lisp:'\
3515 '${datadir}/emacs/site-lisp'
3516 lisppath
='${locallisppath}:${lispdir}:${datadir}/emacs/${version}/leim'
3517 etcdir
='${datadir}/emacs/${version}/etc'
3518 archlibdir
='${libexecdir}/emacs/${version}/${configuration}'
3519 docdir
='${datadir}/emacs/${version}/etc'
3520 gamedir
='${localstatedir}/games/emacs'
3525 # Check whether --with-pop was given.
3526 if test "${with_pop+set}" = set; then :
3532 if test "$with_pop" = yes; then
3533 $as_echo "#define MAIL_USE_POP 1" >>confdefs.h
3538 # Check whether --with-kerberos was given.
3539 if test "${with_kerberos+set}" = set; then :
3540 withval
=$with_kerberos;
3545 if test "$with_kerberos" != no
; then
3546 $as_echo "#define KERBEROS 1" >>confdefs.h
3551 # Check whether --with-kerberos5 was given.
3552 if test "${with_kerberos5+set}" = set; then :
3553 withval
=$with_kerberos5;
3558 if test "${with_kerberos5}" != no
; then
3559 if test "${with_kerberos}" = no
; then
3561 $as_echo "#define KERBEROS 1" >>confdefs.h
3565 $as_echo "#define KERBEROS5 1" >>confdefs.h
3570 # Check whether --with-hesiod was given.
3571 if test "${with_hesiod+set}" = set; then :
3572 withval
=$with_hesiod;
3577 if test "$with_hesiod" != no
; then
3579 $as_echo "#define HESIOD 1" >>confdefs.h
3584 # Check whether --with-mmdf was given.
3585 if test "${with_mmdf+set}" = set; then :
3591 if test "$with_mmdf" != no
; then
3593 $as_echo "#define MAIL_USE_MMDF 1" >>confdefs.h
3598 # Check whether --with-mail-unlink was given.
3599 if test "${with_mail_unlink+set}" = set; then :
3600 withval
=$with_mail_unlink;
3605 if test "$with_mail_unlink" != no
; then
3607 $as_echo "#define MAIL_UNLINK_SPOOL 1" >>confdefs.h
3612 # Check whether --with-mailhost was given.
3613 if test "${with_mailhost+set}" = set; then :
3614 withval
=$with_mailhost;
3615 cat >>confdefs.h
<<_ACEOF
3616 #define MAILHOST "$withval"
3623 # Check whether --with-sound was given.
3624 if test "${with_sound+set}" = set; then :
3625 withval
=$with_sound;
3632 # Check whether --with-sync-input was given.
3633 if test "${with_sync_input+set}" = set; then :
3634 withval
=$with_sync_input;
3639 if test "$with_sync_input" = yes; then
3641 $as_echo "#define SYNC_INPUT 1" >>confdefs.h
3646 # Check whether --with-x-toolkit was given.
3647 if test "${with_x_toolkit+set}" = set; then :
3648 withval
=$with_x_toolkit; case "${withval}" in
3649 y | ye |
yes ) val
=gtk
;;
3651 l | lu | luc | luci | lucid
) val
=lucid
;;
3652 a |
at | ath | athe | athen | athena
) val
=athena
;;
3653 m | mo | mot | moti | motif
) val
=motif
;;
3654 g | gt | gtk
) val
=gtk
;;
3657 as_fn_error $?
"\`--with-x-toolkit=$withval' is invalid;
3658 this option's value should be \`yes', \`no', \`lucid', \`athena', \`motif', \`gtk' or
3659 \`gtk3'. \`yes' and \`gtk' are synonyms. \`athena' and \`lucid' are synonyms." "$LINENO" 5
3668 # Check whether --with-xpm was given.
3669 if test "${with_xpm+set}" = set; then :
3676 # Check whether --with-jpeg was given.
3677 if test "${with_jpeg+set}" = set; then :
3684 # Check whether --with-tiff was given.
3685 if test "${with_tiff+set}" = set; then :
3692 # Check whether --with-gif was given.
3693 if test "${with_gif+set}" = set; then :
3700 # Check whether --with-png was given.
3701 if test "${with_png+set}" = set; then :
3708 # Check whether --with-rsvg was given.
3709 if test "${with_rsvg+set}" = set; then :
3716 # Check whether --with-xml2 was given.
3717 if test "${with_xml2+set}" = set; then :
3724 # Check whether --with-imagemagick was given.
3725 if test "${with_imagemagick+set}" = set; then :
3726 withval
=$with_imagemagick;
3728 with_imagemagick
=yes
3733 # Check whether --with-xft was given.
3734 if test "${with_xft+set}" = set; then :
3741 # Check whether --with-libotf was given.
3742 if test "${with_libotf+set}" = set; then :
3743 withval
=$with_libotf;
3749 # Check whether --with-m17n-flt was given.
3750 if test "${with_m17n_flt+set}" = set; then :
3751 withval
=$with_m17n_flt;
3758 # Check whether --with-toolkit-scroll-bars was given.
3759 if test "${with_toolkit_scroll_bars+set}" = set; then :
3760 withval
=$with_toolkit_scroll_bars;
3762 with_toolkit_scroll_bars
=yes
3766 # Check whether --with-xaw3d was given.
3767 if test "${with_xaw3d+set}" = set; then :
3768 withval
=$with_xaw3d;
3774 # Check whether --with-xim was given.
3775 if test "${with_xim+set}" = set; then :
3782 # Check whether --with-ns was given.
3783 if test "${with_ns+set}" = set; then :
3791 # Check whether --with-gpm was given.
3792 if test "${with_gpm+set}" = set; then :
3799 # Check whether --with-dbus was given.
3800 if test "${with_dbus+set}" = set; then :
3807 # Check whether --with-gconf was given.
3808 if test "${with_gconf+set}" = set; then :
3809 withval
=$with_gconf;
3815 # Check whether --with-selinux was given.
3816 if test "${with_selinux+set}" = set; then :
3817 withval
=$with_selinux;
3823 # Check whether --with-gnutls was given.
3824 if test "${with_gnutls+set}" = set; then :
3825 withval
=$with_gnutls;
3831 ## For the times when you want to build Emacs but don't have
3832 ## a suitable makeinfo, and can live without the manuals.
3834 # Check whether --with-makeinfo was given.
3835 if test "${with_makeinfo+set}" = set; then :
3836 withval
=$with_makeinfo;
3842 ## This is an option because I do not know if all info/man support
3843 ## compressed files, nor how to test if they do so.
3845 # Check whether --with-compress-info was given.
3846 if test "${with_compress_info+set}" = set; then :
3847 withval
=$with_compress_info;
3849 with_compress_info
=yes
3852 if test $with_compress_info = yes; then
3860 # Check whether --with-pkg-config-prog was given.
3861 if test "${with_pkg_config_prog+set}" = set; then :
3862 withval
=$with_pkg_config_prog;
3865 if test "X${with_pkg_config_prog}" != X
; then
3866 if test "${with_pkg_config_prog}" != yes; then
3867 PKG_CONFIG
="${with_pkg_config_prog}"
3873 # Check whether --with-crt-dir was given.
3874 if test "${with_crt_dir+set}" = set; then :
3875 withval
=$with_crt_dir;
3878 CRT_DIR
="${with_crt_dir}"
3881 # Check whether --with-gameuser was given.
3882 if test "${with_gameuser+set}" = set; then :
3883 withval
=$with_gameuser;
3886 test "X${with_gameuser}" != X
&& test "${with_gameuser}" != yes \
3887 && gameuser
="${with_gameuser}"
3888 test "X$gameuser" = X
&& gameuser
=games
3891 # Check whether --with-gnustep-conf was given.
3892 if test "${with_gnustep_conf+set}" = set; then :
3893 withval
=$with_gnustep_conf;
3896 test "X${with_gnustep_conf}" != X
&& test "${with_gnustep_conf}" != yes && \
3897 GNUSTEP_CONFIG_FILE
="${with_gnustep_conf}"
3898 test "X$GNUSTEP_CONFIG_FILE" = "X" && \
3899 GNUSTEP_CONFIG_FILE
=/etc
/GNUstep
/GNUstep.conf
3901 # Check whether --enable-ns-self-contained was given.
3902 if test "${enable_ns_self_contained+set}" = set; then :
3903 enableval
=$enable_ns_self_contained; EN_NS_SELF_CONTAINED
=$enableval
3905 EN_NS_SELF_CONTAINED
=yes
3909 # Check whether --enable-asserts was given.
3910 if test "${enable_asserts+set}" = set; then :
3911 enableval
=$enable_asserts; USE_XASSERTS
=$enableval
3917 # Check whether --enable-maintainer-mode was given.
3918 if test "${enable_maintainer_mode+set}" = set; then :
3919 enableval
=$enable_maintainer_mode; USE_MAINTAINER_MODE
=$enableval
3921 USE_MAINTAINER_MODE
=no
3924 if test $USE_MAINTAINER_MODE = yes; then
3931 # Check whether --enable-locallisppath was given.
3932 if test "${enable_locallisppath+set}" = set; then :
3933 enableval
=$enable_locallisppath; if test "${enableval}" = "no"; then
3935 elif test "${enableval}" != "yes"; then
3936 locallisppath
=${enableval}
3941 # Check whether --enable-checking was given.
3942 if test "${enable_checking+set}" = set; then :
3943 enableval
=$enable_checking; ac_checking_flags
="${enableval}"
3946 IFS
="${IFS= }"; ac_save_IFS
="$IFS"; IFS
="$IFS,"
3947 for check
in $ac_checking_flags
3950 # these set all the flags to specific states
3951 yes) ac_enable_checking
=1 ;;
3952 no
) ac_enable_checking
= ;
3953 ac_gc_check_stringbytes
= ;
3954 ac_gc_check_string_overrun
= ;
3955 ac_gc_check_string_free_list
= ;
3956 ac_xmalloc_overrun
= ;
3957 ac_gc_check_cons_list
= ;;
3958 all
) ac_enable_checking
=1 ;
3959 ac_gc_check_stringbytes
=1 ;
3960 ac_gc_check_string_overrun
=1 ;
3961 ac_gc_check_string_free_list
=1 ;
3962 ac_xmalloc_overrun
=1 ;
3963 ac_gc_check_cons_list
=1 ;;
3964 # these enable particular checks
3965 stringbytes
) ac_gc_check_stringbytes
=1 ;;
3966 stringoverrun
) ac_gc_check_string_overrun
=1 ;;
3967 stringfreelist
) ac_gc_check_string_free_list
=1 ;;
3968 xmallocoverrun
) ac_xmalloc_overrun
=1 ;;
3969 conslist
) ac_gc_check_cons_list
=1 ;;
3970 *) as_fn_error $?
"unknown check category $check" "$LINENO" 5 ;;
3975 if test x
$ac_enable_checking != x
; then
3977 $as_echo "#define ENABLE_CHECKING 1" >>confdefs.h
3980 if test x
$ac_gc_check_stringbytes != x
; then
3982 $as_echo "#define GC_CHECK_STRING_BYTES 1" >>confdefs.h
3985 if test x
$ac_gc_check_stringoverrun != x
; then
3987 $as_echo "#define GC_CHECK_STRING_OVERRUN 1" >>confdefs.h
3990 if test x
$ac_gc_check_string_free_list != x
; then
3992 $as_echo "#define GC_CHECK_STRING_FREE_LIST 1" >>confdefs.h
3995 if test x
$ac_xmalloc_overrun != x
; then
3997 $as_echo "#define XMALLOC_OVERRUN_CHECK 1" >>confdefs.h
4000 if test x
$ac_gc_check_cons_list != x
; then
4002 $as_echo "#define GC_CHECK_CONS_LIST 1" >>confdefs.h
4006 # Check whether --enable-use-lisp-union-type was given.
4007 if test "${enable_use_lisp_union_type+set}" = set; then :
4008 enableval
=$enable_use_lisp_union_type; if test "${enableval}" != "no"; then
4010 $as_echo "#define USE_LISP_UNION_TYPE 1" >>confdefs.h
4017 # Check whether --enable-profiling was given.
4018 if test "${enable_profiling+set}" = set; then :
4019 enableval
=$enable_profiling; ac_enable_profiling
="${enableval}"
4022 if test x
$ac_enable_profiling != x
; then
4023 PROFILING_CFLAGS
="-DPROFILING=1 -pg"
4029 # Check whether --enable-autodepend was given.
4030 if test "${enable_autodepend+set}" = set; then :
4031 enableval
=$enable_autodepend; ac_enable_autodepend
="${enableval}"
4033 ac_enable_autodepend
=yes
4037 #### Make srcdir absolute, if it isn't already. It's important to
4038 #### avoid running the path through pwd unnecessarily, since pwd can
4039 #### give you automounter prefixes, which can go away. We do all this
4040 #### so Emacs can find its files when run uninstalled.
4041 ## Make sure CDPATH doesn't affect cd (in case PWD is relative).
4046 ## We may be able to use the $PWD environment variable to make this
4047 ## absolute. But sometimes PWD is inaccurate.
4048 ## Note: we used to use ${PWD} at the end instead of `pwd`,
4049 ## but that tested only for a well-formed and valid PWD,
4050 ## it did not object when PWD was well-formed and valid but just wrong.
4051 if test ".${PWD}" != "." && test ".`(cd ${PWD} ; sh -c pwd)`" = ".`pwd`" ;
4055 srcdir
="`(cd ${srcdir}; pwd)`"
4058 * ) srcdir
="`(cd ${srcdir}; pwd)`" ;;
4061 #### Check if the source directory already has a configured system in it.
4062 if test `pwd` != `(cd ${srcdir} && pwd)` \
4063 && test -f "${srcdir}/src/config.h" ; then
4064 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: The directory tree \`${srcdir}' is being used
4065 as a build directory right now; it has been configured in its own
4066 right. To configure in another directory as well, you MUST
4067 use GNU make. If you do not have GNU make, then you must
4068 now do \`make distclean' in ${srcdir},
4069 and then run $0 again." >&5
4070 $as_echo "$as_me: WARNING: The directory tree \`${srcdir}' is being used
4071 as a build directory right now; it has been configured in its own
4072 right. To configure in another directory as well, you MUST
4073 use GNU make. If you do not have GNU make, then you must
4074 now do \`make distclean' in ${srcdir},
4075 and then run $0 again." >&2;}
4078 #### Given the configuration name, set machfile and opsysfile to the
4079 #### names of the m/*.h and s/*.h files we should use.
4081 ### Canonicalize the configuration name.
4083 # Make sure we can run config.sub.
4084 $SHELL "$ac_aux_dir/config.sub" sun4
>/dev
/null
2>&1 ||
4085 as_fn_error $?
"cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5
4087 { $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
4088 $as_echo_n "checking build system type... " >&6; }
4089 if ${ac_cv_build+:} false
; then :
4090 $as_echo_n "(cached) " >&6
4092 ac_build_alias
=$build_alias
4093 test "x$ac_build_alias" = x
&&
4094 ac_build_alias
=`$SHELL "$ac_aux_dir/config.guess"`
4095 test "x$ac_build_alias" = x
&&
4096 as_fn_error $?
"cannot guess build type; you must specify one" "$LINENO" 5
4097 ac_cv_build
=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
4098 as_fn_error $?
"$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5
4101 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
4102 $as_echo "$ac_cv_build" >&6; }
4103 case $ac_cv_build in
4105 *) as_fn_error $?
"invalid value of canonical build" "$LINENO" 5;;
4108 ac_save_IFS
=$IFS; IFS
='-'
4114 # Remember, the first character of IFS is used to create $*,
4115 # except with old shells:
4118 case $build_os in *\
*) build_os
=`echo "$build_os" | sed 's/ /-/g'`;; esac
4121 { $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
4122 $as_echo_n "checking host system type... " >&6; }
4123 if ${ac_cv_host+:} false
; then :
4124 $as_echo_n "(cached) " >&6
4126 if test "x$host_alias" = x
; then
4127 ac_cv_host
=$ac_cv_build
4129 ac_cv_host
=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
4130 as_fn_error $?
"$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5
4134 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
4135 $as_echo "$ac_cv_host" >&6; }
4138 *) as_fn_error $?
"invalid value of canonical host" "$LINENO" 5;;
4141 ac_save_IFS
=$IFS; IFS
='-'
4147 # Remember, the first character of IFS is used to create $*,
4148 # except with old shells:
4151 case $host_os in *\
*) host_os
=`echo "$host_os" | sed 's/ /-/g'`;; esac
4155 configuration
=${host_alias-${build_alias-$host}}
4159 ### If you add support for a new configuration, add code to this
4160 ### switch statement to recognize your configuration name and select
4161 ### the appropriate operating system and machine description files.
4163 ### You would hope that you could choose an m/*.h file pretty much
4164 ### based on the machine portion of the configuration name, and an s/*.h
4165 ### file based on the operating system portion. However, it turns out
4166 ### that each m/*.h file is pretty manufacturer-specific - for
4167 ### example mips.h is MIPS
4168 ### So we basically have to have a special case for each
4169 ### configuration name.
4171 ### As far as handling version numbers on operating systems is
4172 ### concerned, make sure things will fail in a fixable way. If
4173 ### /etc/MACHINES doesn't say anything about version numbers, be
4174 ### prepared to handle anything reasonably. If version numbers
4175 ### matter, be sure /etc/MACHINES says something about it.
4177 machine
='' opsys
='' unported
=no
4178 case "${canonical}" in
4183 case ${canonical} in
4184 alpha
*) machine
=alpha
;;
4185 s390-
*) machine
=ibms390
;;
4186 s390x-
*) machine
=ibms390x
;;
4187 powerpc
*) machine
=macppc
;;
4188 sparc
*) machine
=sparc
;;
4189 ia64
*) machine
=ia64
;;
4190 m68k
*) machine
=m68k
;;
4191 x86_64
*) machine
=amdx86-64
;;
4198 case "${canonical}" in
4199 alpha
*) machine
=alpha
;;
4200 amd64-
*|x86_64-
*) machine
=amdx86-64
;;
4201 ia64-
*) machine
=ia64
;;
4202 i
[3456]86-*) machine
=intel386
;;
4203 powerpc-
*) machine
=macppc
;;
4204 sparc-
*) machine
=sparc
;;
4205 sparc64-
*) machine
=sparc
;;
4209 ## FreeBSD kernel + glibc based userland
4212 case "${canonical}" in
4213 alpha
*) machine
=alpha
;;
4214 amd64-
*|x86_64-
*) machine
=amdx86-64
;;
4215 ia64-
*) machine
=ia64
;;
4216 i
[3456]86-*) machine
=intel386
;;
4217 powerpc-
*) machine
=macppc
;;
4218 sparc-
*) machine
=sparc
;;
4219 sparc64-
*) machine
=sparc
;;
4226 case "${canonical}" in
4227 alpha
*) machine
=alpha
;;
4228 x86_64-
*) machine
=amdx86-64
;;
4229 i
[3456]86-*) machine
=intel386
;;
4230 m68k-
*) machine
=m68k
;;
4231 powerpc-
*) machine
=macppc
;;
4232 sparc
*-) machine
=sparc
;;
4233 vax-
*) machine
=vax
;;
4240 case "${canonical}" in
4241 alpha
*) machine
=alpha
;;
4242 x86_64-
*) machine
=amdx86-64
;;
4243 i386-
*) machine
=intel386
;;
4244 powerpc-
*) machine
=macppc
;;
4245 sparc
*) machine
=sparc
;;
4246 vax-
*) machine
=vax
;;
4250 ## Apple Darwin / Mac OS X
4252 case "${canonical}" in
4253 i
[3456]86-* ) machine
=intel386
;;
4254 powerpc-
* ) machine
=macppc
;;
4255 x86_64-
* ) machine
=amdx86-64
;;
4259 # Define CPP as follows to make autoconf work correctly.
4260 CPP
="${CC-cc} -E -no-cpp-precomp"
4261 # Use fink packages if available.
4262 if test -d /sw
/include
&& test -d /sw
/lib
; then
4263 GCC_TEST_OPTIONS
="-I/sw/include -L/sw/lib"
4264 CPP
="${CPP} ${GCC_TEST_OPTIONS}"
4265 NON_GCC_TEST_OPTIONS
=${GCC_TEST_OPTIONS}
4269 ## HP 9000 series 700 and 800, running HP/UX
4270 hppa
*-hp-hpux10.2
* )
4273 hppa
*-hp-hpux1[1-9]* )
4275 CFLAGS
="-D_INCLUDE__STDC_A1_SOURCE $CFLAGS"
4278 ia64
*-hp-hpux1[1-9]* )
4279 machine
=hp800 opsys
=hpux11
4280 ## FIXME. Peter O'Gorman reports that dumping using unexelf.o doesn't
4281 ## work either: http://debbugs.gnu.org/cgi/bugreport.cgi?bug=6811
4285 hppa
*-*-linux-gnu* )
4286 machine
=hp800 opsys
=gnu-linux
4290 rs6000-ibm-aix4.
[23]* )
4291 machine
=ibmrs6000 opsys
=aix4-2
4293 powerpc-ibm-aix4.
[23]* )
4294 machine
=ibmrs6000 opsys
=aix4-2
4296 rs6000-ibm-aix
[56]* )
4297 machine
=ibmrs6000 opsys
=aix4-2
4299 powerpc-ibm-aix
[56]* )
4300 machine
=ibmrs6000 opsys
=aix4-2
4303 ## Silicon Graphics machines
4306 machine
=iris4d opsys
=irix6-5
4307 # Without defining _LANGUAGE_C, things get masked out in the headers
4308 # so that, for instance, grepping for `free' in stdlib.h fails and
4309 # AC_HEADER_STD_C fails. (MIPSPro 7.2.1.2m compilers, Irix 6.5.3m).
4310 NON_GNU_CPP
="/lib/cpp -D_LANGUAGE_C"
4311 NON_GCC_TEST_OPTIONS
="-D_LANGUAGE_C"
4316 | i
[3456]86-*-solaris2* | i
[3456]86-*-sunos5* \
4317 | x86_64-
*-solaris2* | x86_64-
*-sunos5*)
4318 case "${canonical}" in
4319 i
[3456]86-*-* ) machine
=intel386
;;
4320 amd64-
*-*|x86_64-
*-*) machine
=amdx86-64
;;
4321 sparc
* ) machine
=sparc
;;
4324 case "${canonical}" in
4325 *-sunos5.6
* |
*-solaris2.6
* )
4327 NON_GNU_CPP
=/usr
/ccs
/lib
/cpp
4330 *-sunos5.
[7-9]* |
*-solaris2.
[7-9]* )
4332 emacs_check_sunpro_c
=yes
4333 NON_GNU_CPP
=/usr
/ccs
/lib
/cpp
4335 *-sunos5* |
*-solaris* )
4337 emacs_check_sunpro_c
=yes
4338 NON_GNU_CPP
=/usr
/ccs
/lib
/cpp
4341 ## Watch out for a compiler that we know will not work.
4342 case "${canonical}" in
4343 *-solaris* |
*-sunos5* )
4344 if [ "x$CC" = x
/usr
/ucb
/cc
]; then
4345 ## /usr/ucb/cc doesn't work;
4346 ## we should find some other compiler that does work.
4354 ## Intel 386 machines where we don't care about the manufacturer.
4357 case "${canonical}" in
4358 *-cygwin ) opsys
=cygwin
;;
4359 *-darwin* ) opsys
=darwin
4360 CPP
="${CC-cc} -E -no-cpp-precomp"
4362 *-sysv4.2uw
* ) opsys
=unixware
; NON_GNU_CPP
=/lib
/cpp
;;
4363 *-sysv5uw* ) opsys
=unixware
; NON_GNU_CPP
=/lib
/cpp
;;
4364 *-sysv5OpenUNIX* ) opsys
=unixware
; NON_GNU_CPP
=/lib
/cpp
;;
4365 ## Otherwise, we'll fall through to the generic opsys code at the bottom.
4374 ### If the code above didn't choose an operating system, just choose
4375 ### an operating system based on the configuration name. You really
4376 ### only want to use this when you have no idea what the right
4377 ### operating system is; if you know what operating systems a machine
4378 ### runs, it's cleaner to make it explicit in the case statement
4380 if test x
"${opsys}" = x
; then
4381 case "${canonical}" in
4382 *-gnu* ) opsys
=gnu
;;
4391 if test $unported = yes; then
4392 as_fn_error $?
"Emacs hasn't been ported to \`${canonical}' systems.
4393 Check \`etc/MACHINES' for recognized configuration names." "$LINENO" 5
4396 if test -n "$machine"; then
4397 machfile
="m/${machine}.h"
4401 opsysfile
="s/${opsys}.h"
4404 #### Choose a compiler.
4405 test -n "$CC" && cc_specified
=yes
4407 # Save the value of CFLAGS that the user specified.
4408 SPECIFIED_CFLAGS
="$CFLAGS"
4411 ac_cpp
='$CPP $CPPFLAGS'
4412 ac_compile
='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4413 ac_link
='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4414 ac_compiler_gnu
=$ac_cv_c_compiler_gnu
4415 if test -n "$ac_tool_prefix"; then
4416 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
4417 set dummy
${ac_tool_prefix}gcc
; ac_word
=$2
4418 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4419 $as_echo_n "checking for $ac_word... " >&6; }
4420 if ${ac_cv_prog_CC+:} false
; then :
4421 $as_echo_n "(cached) " >&6
4423 if test -n "$CC"; then
4424 ac_cv_prog_CC
="$CC" # Let the user override the test.
4426 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
4430 test -z "$as_dir" && as_dir
=.
4431 for ac_exec_ext
in '' $ac_executable_extensions; do
4432 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4433 ac_cv_prog_CC
="${ac_tool_prefix}gcc"
4434 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4444 if test -n "$CC"; then
4445 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
4446 $as_echo "$CC" >&6; }
4448 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4449 $as_echo "no" >&6; }
4454 if test -z "$ac_cv_prog_CC"; then
4456 # Extract the first word of "gcc", so it can be a program name with args.
4457 set dummy gcc
; ac_word
=$2
4458 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4459 $as_echo_n "checking for $ac_word... " >&6; }
4460 if ${ac_cv_prog_ac_ct_CC+:} false
; then :
4461 $as_echo_n "(cached) " >&6
4463 if test -n "$ac_ct_CC"; then
4464 ac_cv_prog_ac_ct_CC
="$ac_ct_CC" # Let the user override the test.
4466 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
4470 test -z "$as_dir" && as_dir
=.
4471 for ac_exec_ext
in '' $ac_executable_extensions; do
4472 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4473 ac_cv_prog_ac_ct_CC
="gcc"
4474 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4483 ac_ct_CC
=$ac_cv_prog_ac_ct_CC
4484 if test -n "$ac_ct_CC"; then
4485 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
4486 $as_echo "$ac_ct_CC" >&6; }
4488 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4489 $as_echo "no" >&6; }
4492 if test "x$ac_ct_CC" = x
; then
4495 case $cross_compiling:$ac_tool_warned in
4497 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4498 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4499 ac_tool_warned
=yes ;;
4507 if test -z "$CC"; then
4508 if test -n "$ac_tool_prefix"; then
4509 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
4510 set dummy
${ac_tool_prefix}cc
; ac_word
=$2
4511 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4512 $as_echo_n "checking for $ac_word... " >&6; }
4513 if ${ac_cv_prog_CC+:} false
; then :
4514 $as_echo_n "(cached) " >&6
4516 if test -n "$CC"; then
4517 ac_cv_prog_CC
="$CC" # Let the user override the test.
4519 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
4523 test -z "$as_dir" && as_dir
=.
4524 for ac_exec_ext
in '' $ac_executable_extensions; do
4525 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4526 ac_cv_prog_CC
="${ac_tool_prefix}cc"
4527 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4537 if test -n "$CC"; then
4538 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
4539 $as_echo "$CC" >&6; }
4541 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4542 $as_echo "no" >&6; }
4548 if test -z "$CC"; then
4549 # Extract the first word of "cc", so it can be a program name with args.
4550 set dummy cc
; ac_word
=$2
4551 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4552 $as_echo_n "checking for $ac_word... " >&6; }
4553 if ${ac_cv_prog_CC+:} false
; then :
4554 $as_echo_n "(cached) " >&6
4556 if test -n "$CC"; then
4557 ac_cv_prog_CC
="$CC" # Let the user override the test.
4560 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
4564 test -z "$as_dir" && as_dir
=.
4565 for ac_exec_ext
in '' $ac_executable_extensions; do
4566 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4567 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
4568 ac_prog_rejected
=yes
4572 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4579 if test $ac_prog_rejected = yes; then
4580 # We found a bogon in the path, so make sure we never use it.
4581 set dummy
$ac_cv_prog_CC
4583 if test $# != 0; then
4584 # We chose a different compiler from the bogus one.
4585 # However, it has the same basename, so the bogon will be chosen
4586 # first if we set CC to just the basename; use the full file name.
4588 ac_cv_prog_CC
="$as_dir/$ac_word${1+' '}$@"
4594 if test -n "$CC"; then
4595 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
4596 $as_echo "$CC" >&6; }
4598 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4599 $as_echo "no" >&6; }
4604 if test -z "$CC"; then
4605 if test -n "$ac_tool_prefix"; then
4606 for ac_prog
in cl.exe
4608 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
4609 set dummy
$ac_tool_prefix$ac_prog; ac_word
=$2
4610 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4611 $as_echo_n "checking for $ac_word... " >&6; }
4612 if ${ac_cv_prog_CC+:} false
; then :
4613 $as_echo_n "(cached) " >&6
4615 if test -n "$CC"; then
4616 ac_cv_prog_CC
="$CC" # Let the user override the test.
4618 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
4622 test -z "$as_dir" && as_dir
=.
4623 for ac_exec_ext
in '' $ac_executable_extensions; do
4624 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4625 ac_cv_prog_CC
="$ac_tool_prefix$ac_prog"
4626 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4636 if test -n "$CC"; then
4637 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
4638 $as_echo "$CC" >&6; }
4640 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4641 $as_echo "no" >&6; }
4645 test -n "$CC" && break
4648 if test -z "$CC"; then
4650 for ac_prog
in cl.exe
4652 # Extract the first word of "$ac_prog", so it can be a program name with args.
4653 set dummy
$ac_prog; ac_word
=$2
4654 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4655 $as_echo_n "checking for $ac_word... " >&6; }
4656 if ${ac_cv_prog_ac_ct_CC+:} false
; then :
4657 $as_echo_n "(cached) " >&6
4659 if test -n "$ac_ct_CC"; then
4660 ac_cv_prog_ac_ct_CC
="$ac_ct_CC" # Let the user override the test.
4662 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
4666 test -z "$as_dir" && as_dir
=.
4667 for ac_exec_ext
in '' $ac_executable_extensions; do
4668 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4669 ac_cv_prog_ac_ct_CC
="$ac_prog"
4670 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4679 ac_ct_CC
=$ac_cv_prog_ac_ct_CC
4680 if test -n "$ac_ct_CC"; then
4681 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
4682 $as_echo "$ac_ct_CC" >&6; }
4684 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4685 $as_echo "no" >&6; }
4689 test -n "$ac_ct_CC" && break
4692 if test "x$ac_ct_CC" = x
; then
4695 case $cross_compiling:$ac_tool_warned in
4697 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4698 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4699 ac_tool_warned
=yes ;;
4708 test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4709 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4710 as_fn_error $?
"no acceptable C compiler found in \$PATH
4711 See \`config.log' for more details" "$LINENO" 5; }
4713 # Provide some information about the compiler.
4714 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
4717 for ac_option
in --version -v -V -qversion; do
4718 { { ac_try
="$ac_compiler $ac_option >&5"
4720 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
4721 *) ac_try_echo=$ac_try;;
4723 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4724 $as_echo "$ac_try_echo"; } >&5
4725 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
4727 if test -s conftest.err; then
4729 ... rest of stderr output deleted ...
4730 10q' conftest.err >conftest.er1
4731 cat conftest.er1 >&5
4733 rm -f conftest.er1 conftest.err
4734 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4735 test $ac_status = 0; }
4738 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4739 /* end confdefs.h. */
4749 ac_clean_files_save=$ac_clean_files
4750 ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
4751 # Try to create an executable without -o first, disregard a.out.
4752 # It will help us diagnose broken compilers, and finding out an intuition
4754 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
4755 $as_echo_n "checking whether the C compiler works... " >&6; }
4756 ac_link_default=`$as_echo "$ac_link" |
sed 's/ -o *conftest[^ ]*//'`
4758 # The possible output files:
4759 ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
4762 for ac_file in $ac_files
4765 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
4766 * ) ac_rmfiles="$ac_rmfiles $ac_file";;
4771 if { { ac_try="$ac_link_default"
4773 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
4774 *) ac_try_echo
=$ac_try;;
4776 eval ac_try_echo
="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4777 $as_echo "$ac_try_echo"; } >&5
4778 (eval "$ac_link_default") 2>&5
4780 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4781 test $ac_status = 0; }; then :
4782 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
4783 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
4784 # in a Makefile. We should not override ac_cv_exeext if it was cached,
4785 # so that the user can short-circuit this test for compilers unknown to
4787 for ac_file
in $ac_files ''
4789 test -f "$ac_file" ||
continue
4791 *.
$ac_ext |
*.xcoff |
*.tds |
*.d |
*.pdb |
*.xSYM |
*.bb |
*.bbg |
*.map |
*.inf |
*.dSYM |
*.o |
*.obj
)
4794 # We found the default executable, but exeext='' is most
4798 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no
;
4800 ac_cv_exeext
=`expr "$ac_file" : '[^.]*\(\..*\)'`
4802 # We set ac_cv_exeext here because the later test for it is not
4803 # safe: cross compilers may not add the suffix if given an `-o'
4804 # argument, so we may need to know it at that point already.
4805 # Even if this section looks crufty: it has the advantage of
4812 test "$ac_cv_exeext" = no
&& ac_cv_exeext
=
4817 if test -z "$ac_file"; then :
4818 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4819 $as_echo "no" >&6; }
4820 $as_echo "$as_me: failed program was:" >&5
4821 sed 's/^/| /' conftest.
$ac_ext >&5
4823 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4824 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4825 as_fn_error
77 "C compiler cannot create executables
4826 See \`config.log' for more details" "$LINENO" 5; }
4828 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4829 $as_echo "yes" >&6; }
4831 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
4832 $as_echo_n "checking for C compiler default output file name... " >&6; }
4833 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
4834 $as_echo "$ac_file" >&6; }
4835 ac_exeext
=$ac_cv_exeext
4837 rm -f -r a.out a.out.dSYM a.exe conftest
$ac_cv_exeext b.out
4838 ac_clean_files
=$ac_clean_files_save
4839 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
4840 $as_echo_n "checking for suffix of executables... " >&6; }
4841 if { { ac_try
="$ac_link"
4843 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
4844 *) ac_try_echo=$ac_try;;
4846 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4847 $as_echo "$ac_try_echo"; } >&5
4848 (eval "$ac_link") 2>&5
4850 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4851 test $ac_status = 0; }; then :
4852 # If both `conftest.exe
' and `conftest' are
`present' (well, observable)
4853 # catch `conftest.exe
'. For instance with Cygwin, `ls conftest' will
4854 # work properly (i.e., refer to `conftest.exe'), while it won't with
4856 for ac_file
in conftest.exe conftest conftest.
*; do
4857 test -f "$ac_file" ||
continue
4859 *.
$ac_ext |
*.xcoff |
*.tds |
*.d |
*.pdb |
*.xSYM |
*.bb |
*.bbg |
*.map |
*.inf |
*.dSYM |
*.o |
*.obj
) ;;
4860 *.
* ) ac_cv_exeext
=`expr "$ac_file" : '[^.]*\(\..*\)'`
4866 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4867 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4868 as_fn_error $?
"cannot compute suffix of executables: cannot compile and link
4869 See \`config.log' for more details" "$LINENO" 5; }
4871 rm -f conftest conftest
$ac_cv_exeext
4872 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
4873 $as_echo "$ac_cv_exeext" >&6; }
4875 rm -f conftest.
$ac_ext
4876 EXEEXT
=$ac_cv_exeext
4878 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
4879 /* end confdefs.h. */
4884 FILE *f = fopen ("conftest.out", "w");
4885 return ferror (f) || fclose (f) != 0;
4891 ac_clean_files
="$ac_clean_files conftest.out"
4892 # Check that the compiler produces executables we can run. If not, either
4893 # the compiler is broken, or we cross compile.
4894 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
4895 $as_echo_n "checking whether we are cross compiling... " >&6; }
4896 if test "$cross_compiling" != yes; then
4897 { { ac_try
="$ac_link"
4899 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
4900 *) ac_try_echo=$ac_try;;
4902 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4903 $as_echo "$ac_try_echo"; } >&5
4904 (eval "$ac_link") 2>&5
4906 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4907 test $ac_status = 0; }
4908 if { ac_try='./conftest$ac_cv_exeext'
4909 { { case "(($ac_try" in
4910 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
4911 *) ac_try_echo
=$ac_try;;
4913 eval ac_try_echo
="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4914 $as_echo "$ac_try_echo"; } >&5
4915 (eval "$ac_try") 2>&5
4917 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4918 test $ac_status = 0; }; }; then
4921 if test "$cross_compiling" = maybe
; then
4924 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4925 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4926 as_fn_error $?
"cannot run C compiled programs.
4927 If you meant to cross compile, use \`--host'.
4928 See \`config.log' for more details" "$LINENO" 5; }
4932 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
4933 $as_echo "$cross_compiling" >&6; }
4935 rm -f conftest.
$ac_ext conftest
$ac_cv_exeext conftest.out
4936 ac_clean_files
=$ac_clean_files_save
4937 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
4938 $as_echo_n "checking for suffix of object files... " >&6; }
4939 if ${ac_cv_objext+:} false
; then :
4940 $as_echo_n "(cached) " >&6
4942 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
4943 /* end confdefs.h. */
4953 rm -f conftest.o conftest.obj
4954 if { { ac_try
="$ac_compile"
4956 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
4957 *) ac_try_echo=$ac_try;;
4959 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4960 $as_echo "$ac_try_echo"; } >&5
4961 (eval "$ac_compile") 2>&5
4963 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4964 test $ac_status = 0; }; then :
4965 for ac_file in conftest.o conftest.obj conftest.*; do
4966 test -f "$ac_file" || continue;
4968 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
4969 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
4974 $as_echo "$as_me: failed program was:" >&5
4975 sed 's/^/| /' conftest.$ac_ext >&5
4977 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4978 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4979 as_fn_error $? "cannot compute suffix of object files
: cannot compile
4980 See \
`config.log' for more details" "$LINENO" 5; }
4982 rm -f conftest.$ac_cv_objext conftest.$ac_ext
4984 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
4985 $as_echo "$ac_cv_objext" >&6; }
4986 OBJEXT=$ac_cv_objext
4988 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
4989 $as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
4990 if ${ac_cv_c_compiler_gnu+:} false; then :
4991 $as_echo_n "(cached) " >&6
4993 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4994 /* end confdefs.h. */
5007 if ac_fn_c_try_compile "$LINENO"; then :
5012 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5013 ac_cv_c_compiler_gnu=$ac_compiler_gnu
5016 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
5017 $as_echo "$ac_cv_c_compiler_gnu" >&6; }
5018 if test $ac_compiler_gnu = yes; then
5023 ac_test_CFLAGS=${CFLAGS+set}
5024 ac_save_CFLAGS=$CFLAGS
5025 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
5026 $as_echo_n "checking whether $CC accepts -g... " >&6; }
5027 if ${ac_cv_prog_cc_g+:} false; then :
5028 $as_echo_n "(cached) " >&6
5030 ac_save_c_werror_flag=$ac_c_werror_flag
5031 ac_c_werror_flag=yes
5034 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5035 /* end confdefs.h. */
5045 if ac_fn_c_try_compile "$LINENO"; then :
5049 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5050 /* end confdefs.h. */
5060 if ac_fn_c_try_compile "$LINENO"; then :
5063 ac_c_werror_flag=$ac_save_c_werror_flag
5065 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5066 /* end confdefs.h. */
5076 if ac_fn_c_try_compile "$LINENO"; then :
5079 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5081 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5083 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5084 ac_c_werror_flag=$ac_save_c_werror_flag
5086 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
5087 $as_echo "$ac_cv_prog_cc_g" >&6; }
5088 if test "$ac_test_CFLAGS" = set; then
5089 CFLAGS=$ac_save_CFLAGS
5090 elif test $ac_cv_prog_cc_g = yes; then
5091 if test "$GCC" = yes; then
5097 if test "$GCC" = yes; then
5103 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
5104 $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
5105 if ${ac_cv_prog_cc_c89+:} false; then :
5106 $as_echo_n "(cached) " >&6
5108 ac_cv_prog_cc_c89=no
5110 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5111 /* end confdefs.h. */
5114 #include <sys/types.h>
5115 #include <sys/stat.h>
5116 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
5117 struct buf { int x; };
5118 FILE * (*rcsopen) (struct buf *, struct stat *, int);
5119 static char *e (p, i)
5125 static char *f (char * (*g) (char **, int), char **p, ...)
5130 s = g (p, va_arg (v,int));
5135 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
5136 function prototypes and stuff, but not '\xHH' hex character constants.
5137 These don't provoke an error unfortunately, instead are silently treated
5138 as 'x'. The following induces an error, until -std is added to get
5139 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
5140 array size at least. It's necessary to write '\x00'==0 to get something
5141 that's true only with -std. */
5142 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
5144 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
5145 inside strings and character constants. */
5147 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
5149 int test (int i, double x);
5150 struct s1 {int (*f) (int a);};
5151 struct s2 {int (*f) (double a);};
5152 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
5158 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
5163 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
5164 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
5166 CC="$ac_save_CC $ac_arg"
5167 if ac_fn_c_try_compile "$LINENO"; then :
5168 ac_cv_prog_cc_c89=$ac_arg
5170 rm -f core conftest.err conftest.$ac_objext
5171 test "x$ac_cv_prog_cc_c89" != "xno" && break
5173 rm -f conftest.$ac_ext
5178 case "x$ac_cv_prog_cc_c89" in
5180 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
5181 $as_echo "none needed" >&6; } ;;
5183 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
5184 $as_echo "unsupported" >&6; } ;;
5186 CC="$CC $ac_cv_prog_cc_c89"
5187 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
5188 $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
5190 if test "x$ac_cv_prog_cc_c89" != xno; then :
5195 ac_cpp='$CPP $CPPFLAGS'
5196 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5197 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5198 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5199 DEPDIR="${am__leading_dot}deps"
5201 ac_config_commands="$ac_config_commands depfiles"
5204 am_make=${MAKE-make}
5205 cat > confinc << 'END'
5207 @echo this is the am__doit target
5210 # If we don't find an include directive, just comment out the code.
5211 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for style of include used by $am_make" >&5
5212 $as_echo_n "checking for style of include used by $am_make... " >&6; }
5216 # First try GNU make style include.
5217 echo "include confinc" > confmf
5218 # Ignore all kinds of additional output from `make'.
5219 case `$am_make -s -f confmf 2> /dev/null` in #(
5220 *the\ am__doit\ target*)
5226 # Now try BSD make style include.
5227 if test "$am__include" = "#"; then
5228 echo '.include
"confinc"' > confmf
5229 case `$am_make -s -f confmf 2> /dev/null` in #(
5230 *the\ am__doit\ target*)
5231 am__include=.include
5239 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $_am_result" >&5
5240 $as_echo "$_am_result" >&6; }
5241 rm -f confinc confmf
5243 # Check whether --enable-dependency-tracking was given.
5244 if test "${enable_dependency_tracking+set}" = set; then :
5245 enableval=$enable_dependency_tracking;
5248 if test "x$enable_dependency_tracking" != xno; then
5249 am_depcomp="$ac_aux_dir/depcomp"
5252 if test "x$enable_dependency_tracking" != xno
; then
5262 depcc
="$CC" am_compiler_list
=
5264 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
5265 $as_echo_n "checking dependency style of $depcc... " >&6; }
5266 if ${am_cv_CC_dependencies_compiler_type+:} false
; then :
5267 $as_echo_n "(cached) " >&6
5269 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
5270 # We make a subdir and do the tests there. Otherwise we can end up
5271 # making bogus files that we don't know about and never remove. For
5272 # instance it was reported that on HP-UX the gcc test will end up
5273 # making a dummy file named `D' -- because `-MD' means `put the output
5276 # Copy depcomp to subdir because otherwise we won't find it if we're
5277 # using a relative directory.
5278 cp "$am_depcomp" conftest.dir
5280 # We will build objects and dependencies in a subdirectory because
5281 # it helps to detect inapplicable dependency modes. For instance
5282 # both Tru64's cc and ICC support -MD to output dependencies as a
5283 # side effect of compilation, but ICC will put the dependencies in
5284 # the current directory while Tru64 will put them in the object
5288 am_cv_CC_dependencies_compiler_type
=none
5289 if test "$am_compiler_list" = ""; then
5290 am_compiler_list
=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
5293 case " $depcc " in #(
5294 *\
-arch\
*\
-arch\
*) am__universal
=true
;;
5297 for depmode
in $am_compiler_list; do
5298 # Setup a source with many dependencies, because some compilers
5299 # like to wrap large dependency lists on column 80 (with \), and
5300 # we should not choose a depcomp mode which is confused by this.
5302 # We need to recreate these files for each test, as the compiler may
5303 # overwrite some of them when testing with obscure command lines.
5304 # This happens at least with the AIX C compiler.
5306 for i
in 1 2 3 4 5 6; do
5307 echo '#include "conftst'$i'.h"' >> sub
/conftest.c
5308 # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
5309 # Solaris 8's {/usr,}/bin/sh.
5310 touch sub
/conftst
$i.h
5312 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
5314 # We check with `-c' and `-o' for the sake of the "dashmstdout"
5315 # mode. It turns out that the SunPro C++ compiler does not properly
5316 # handle `-M -o', and we need to detect this. Also, some Intel
5317 # versions had trouble with output in subdirs
5318 am__obj
=sub
/conftest.
${OBJEXT-o}
5319 am__minus_obj
="-o $am__obj"
5322 # This depmode causes a compiler race in universal mode.
5323 test "$am__universal" = false ||
continue
5326 # after this tag, mechanisms are not by side-effect, so they'll
5327 # only be used when explicitly requested
5328 if test "x$enable_dependency_tracking" = xyes
; then
5334 msvisualcpp | msvcmsys
)
5335 # This compiler won't grok `-c -o', but also, the minuso test has
5336 # not run yet. These depmodes are late enough in the game, and
5337 # so weak that their functioning should not be impacted.
5338 am__obj
=conftest.
${OBJEXT-o}
5343 if depmode
=$depmode \
5344 source=sub
/conftest.c object
=$am__obj \
5345 depfile
=sub
/conftest.Po tmpdepfile
=sub
/conftest.TPo \
5346 $SHELL .
/depcomp
$depcc -c $am__minus_obj sub
/conftest.c \
5347 >/dev
/null
2>conftest.err
&&
5348 grep sub
/conftst1.h sub
/conftest.Po
> /dev
/null
2>&1 &&
5349 grep sub
/conftst6.h sub
/conftest.Po
> /dev
/null
2>&1 &&
5350 grep $am__obj sub
/conftest.Po
> /dev
/null
2>&1 &&
5351 ${MAKE-make} -s -f confmf
> /dev
/null
2>&1; then
5352 # icc doesn't choke on unknown options, it will just issue warnings
5353 # or remarks (even with -Werror). So we grep stderr for any message
5354 # that says an option was ignored or not supported.
5355 # When given -MP, icc 7.0 and 7.1 complain thusly:
5356 # icc: Command line warning: ignoring option '-M'; no argument required
5357 # The diagnosis changed in icc 8.0:
5358 # icc: Command line remark: option '-MP' not supported
5359 if (grep 'ignoring option' conftest.err ||
5360 grep 'not supported' conftest.err
) >/dev
/null
2>&1; then :; else
5361 am_cv_CC_dependencies_compiler_type
=$depmode
5370 am_cv_CC_dependencies_compiler_type
=none
5374 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5
5375 $as_echo "$am_cv_CC_dependencies_compiler_type" >&6; }
5376 CCDEPMODE
=depmode
=$am_cv_CC_dependencies_compiler_type
5379 test "x$enable_dependency_tracking" != xno \
5380 && test "$am_cv_CC_dependencies_compiler_type" = gcc3
; then
5382 am__fastdepCC_FALSE
='#'
5384 am__fastdepCC_TRUE
='#'
5385 am__fastdepCC_FALSE
=
5389 if test "x$CC" != xcc
; then
5390 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC and cc understand -c and -o together" >&5
5391 $as_echo_n "checking whether $CC and cc understand -c and -o together... " >&6; }
5393 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether cc understands -c and -o together" >&5
5394 $as_echo_n "checking whether cc understands -c and -o together... " >&6; }
5396 set dummy
$CC; ac_cc
=`$as_echo "$2" |
5397 sed 's/[^a-zA-Z0-9_]/_/g;s/^[0-9]/_/'`
5398 if eval \
${ac_cv_prog_cc_${ac_cc}_c_o+:} false
; then :
5399 $as_echo_n "(cached) " >&6
5401 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
5402 /* end confdefs.h. */
5412 # Make sure it works both with $CC and with simple cc.
5413 # We do the test twice because some compilers refuse to overwrite an
5414 # existing .o file with -o, though they will create one.
5415 ac_try
='$CC -c conftest.$ac_ext -o conftest2.$ac_objext >&5'
5417 if { { case "(($ac_try" in
5418 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
5419 *) ac_try_echo=$ac_try;;
5421 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
5422 $as_echo "$ac_try_echo"; } >&5
5423 (eval "$ac_try") 2>&5
5425 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5426 test $ac_status = 0; } &&
5427 test -f conftest2.$ac_objext && { { case "(($ac_try" in
5428 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
5429 *) ac_try_echo
=$ac_try;;
5431 eval ac_try_echo
="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
5432 $as_echo "$ac_try_echo"; } >&5
5433 (eval "$ac_try") 2>&5
5435 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5436 test $ac_status = 0; };
5438 eval ac_cv_prog_cc_
${ac_cc}_c_o
=yes
5439 if test "x$CC" != xcc
; then
5440 # Test first that cc exists at all.
5441 if { ac_try
='cc -c conftest.$ac_ext >&5'
5442 { { case "(($ac_try" in
5443 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
5444 *) ac_try_echo=$ac_try;;
5446 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
5447 $as_echo "$ac_try_echo"; } >&5
5448 (eval "$ac_try") 2>&5
5450 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5451 test $ac_status = 0; }; }; then
5452 ac_try='cc -c conftest.$ac_ext -o conftest2.$ac_objext >&5'
5454 if { { case "(($ac_try" in
5455 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
5456 *) ac_try_echo
=$ac_try;;
5458 eval ac_try_echo
="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
5459 $as_echo "$ac_try_echo"; } >&5
5460 (eval "$ac_try") 2>&5
5462 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5463 test $ac_status = 0; } &&
5464 test -f conftest2.
$ac_objext && { { case "(($ac_try" in
5465 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
5466 *) ac_try_echo=$ac_try;;
5468 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
5469 $as_echo "$ac_try_echo"; } >&5
5470 (eval "$ac_try") 2>&5
5472 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5473 test $ac_status = 0; };
5478 # cc exists but doesn't like -o.
5479 eval ac_cv_prog_cc_${ac_cc}_c_o=no
5484 eval ac_cv_prog_cc_${ac_cc}_c_o=no
5486 rm -f core conftest*
5489 if eval test \$ac_cv_prog_cc_${ac_cc}_c_o = yes; then
5490 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5491 $as_echo "yes" >&6; }
5493 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5494 $as_echo "no" >&6; }
5496 $as_echo "#define NO_MINUS_C_MINUS_O 1" >>confdefs.h
5500 # FIXME: we rely on the cache variable name because
5501 # there is no other way.
5503 am_cc=`echo $2 |
sed 's/[^a-zA-Z0-9_]/_/g;s/^[0-9]/_/'`
5504 eval am_t=\$ac_cv_prog_cc_${am_cc}_c_o
5505 if test "$am_t" != yes; then
5506 # Losing compiler, so override with the script.
5507 # FIXME: It is wrong to rewrite CC.
5508 # But if we don't then we get into trouble of one sort or another.
5509 # A longer-term fix would be to have automake use am__CC in this case,
5510 # and then we could set am__CC="\$(top_srcdir)/compile \$(CC)"
5511 CC="$am_aux_dir/compile $CC"
5516 # Initialize gnulib right after verifying that the C compiler works.
5517 if test -n "$ac_tool_prefix"; then
5518 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
5519 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
5520 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5521 $as_echo_n "checking for $ac_word... " >&6; }
5522 if ${ac_cv_prog_RANLIB+:} false; then :
5523 $as_echo_n "(cached) " >&6
5525 if test -n "$RANLIB"; then
5526 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
5528 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5532 test -z "$as_dir" && as_dir=.
5533 for ac_exec_ext in '' $ac_executable_extensions; do
5534 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5535 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
5536 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5545 RANLIB=$ac_cv_prog_RANLIB
5546 if test -n "$RANLIB"; then
5547 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
5548 $as_echo "$RANLIB" >&6; }
5550 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5551 $as_echo "no" >&6; }
5556 if test -z "$ac_cv_prog_RANLIB"; then
5557 ac_ct_RANLIB=$RANLIB
5558 # Extract the first word of "ranlib", so it can be a program name with args.
5559 set dummy ranlib; ac_word=$2
5560 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5561 $as_echo_n "checking for $ac_word... " >&6; }
5562 if ${ac_cv_prog_ac_ct_RANLIB+:} false; then :
5563 $as_echo_n "(cached) " >&6
5565 if test -n "$ac_ct_RANLIB"; then
5566 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
5568 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5572 test -z "$as_dir" && as_dir=.
5573 for ac_exec_ext in '' $ac_executable_extensions; do
5574 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5575 ac_cv_prog_ac_ct_RANLIB="ranlib"
5576 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5585 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
5586 if test -n "$ac_ct_RANLIB"; then
5587 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
5588 $as_echo "$ac_ct_RANLIB" >&6; }
5590 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5591 $as_echo "no" >&6; }
5594 if test "x$ac_ct_RANLIB" = x; then
5597 case $cross_compiling:$ac_tool_warned in
5599 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5600 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5601 ac_tool_warned=yes ;;
5603 RANLIB=$ac_ct_RANLIB
5606 RANLIB="$ac_cv_prog_RANLIB"
5611 ac_cpp='$CPP $CPPFLAGS'
5612 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5613 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5614 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5615 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
5616 $as_echo_n "checking how to run the C preprocessor... " >&6; }
5617 # On Suns, sometimes $CPP names a directory.
5618 if test -n "$CPP" && test -d "$CPP"; then
5621 if test -z "$CPP"; then
5622 if ${ac_cv_prog_CPP+:} false; then :
5623 $as_echo_n "(cached) " >&6
5625 # Double quotes because CPP needs to be expanded
5626 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
5629 for ac_c_preproc_warn_flag in '' yes
5631 # Use a header file that comes with gcc, so configuring glibc
5632 # with a fresh cross-compiler works.
5633 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5634 # <limits.h> exists even on freestanding compilers.
5635 # On the NeXT, cc -E runs the code through the compiler's parser,
5636 # not just through cpp. "Syntax error" is here to catch this case.
5637 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5638 /* end confdefs.h. */
5640 # include <limits.h>
5642 # include <assert.h>
5646 if ac_fn_c_try_cpp "$LINENO"; then :
5649 # Broken: fails on valid input.
5652 rm -f conftest.err conftest.i conftest.$ac_ext
5654 # OK, works on sane cases. Now check whether nonexistent headers
5655 # can be detected and how.
5656 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5657 /* end confdefs.h. */
5658 #include <ac_nonexistent.h>
5660 if ac_fn_c_try_cpp "$LINENO"; then :
5661 # Broken: success on invalid input.
5664 # Passes both tests.
5668 rm -f conftest.err conftest.i conftest.$ac_ext
5671 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
5672 rm -f conftest.i conftest.err conftest.
$ac_ext
5673 if $ac_preproc_ok; then :
5685 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
5686 $as_echo "$CPP" >&6; }
5688 for ac_c_preproc_warn_flag
in '' yes
5690 # Use a header file that comes with gcc, so configuring glibc
5691 # with a fresh cross-compiler works.
5692 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5693 # <limits.h> exists even on freestanding compilers.
5694 # On the NeXT, cc -E runs the code through the compiler's parser,
5695 # not just through cpp. "Syntax error" is here to catch this case.
5696 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
5697 /* end confdefs.h. */
5699 # include <limits.h>
5701 # include <assert.h>
5705 if ac_fn_c_try_cpp
"$LINENO"; then :
5708 # Broken: fails on valid input.
5711 rm -f conftest.err conftest.i conftest.
$ac_ext
5713 # OK, works on sane cases. Now check whether nonexistent headers
5714 # can be detected and how.
5715 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
5716 /* end confdefs.h. */
5717 #include <ac_nonexistent.h>
5719 if ac_fn_c_try_cpp
"$LINENO"; then :
5720 # Broken: success on invalid input.
5723 # Passes both tests.
5727 rm -f conftest.err conftest.i conftest.
$ac_ext
5730 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
5731 rm -f conftest.i conftest.err conftest.
$ac_ext
5732 if $ac_preproc_ok; then :
5735 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
5736 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
5737 as_fn_error $?
"C preprocessor \"$CPP\" fails sanity check
5738 See \`config.log' for more details" "$LINENO" 5; }
5742 ac_cpp
='$CPP $CPPFLAGS'
5743 ac_compile
='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5744 ac_link
='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5745 ac_compiler_gnu
=$ac_cv_c_compiler_gnu
5748 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
5749 $as_echo_n "checking for grep that handles long lines and -e... " >&6; }
5750 if ${ac_cv_path_GREP+:} false
; then :
5751 $as_echo_n "(cached) " >&6
5753 if test -z "$GREP"; then
5754 ac_path_GREP_found
=false
5755 # Loop through the user's path and test for each of PROGNAME-LIST
5756 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
5757 for as_dir
in $PATH$PATH_SEPARATOR/usr
/xpg
4/bin
5760 test -z "$as_dir" && as_dir
=.
5761 for ac_prog
in grep ggrep
; do
5762 for ac_exec_ext
in '' $ac_executable_extensions; do
5763 ac_path_GREP
="$as_dir/$ac_prog$ac_exec_ext"
5764 { test -f "$ac_path_GREP" && $as_test_x "$ac_path_GREP"; } ||
continue
5765 # Check for GNU ac_path_GREP and select it if it is found.
5766 # Check for GNU $ac_path_GREP
5767 case `"$ac_path_GREP" --version 2>&1` in
5769 ac_cv_path_GREP
="$ac_path_GREP" ac_path_GREP_found
=:;;
5772 $as_echo_n 0123456789 >"conftest.in"
5775 cat "conftest.in" "conftest.in" >"conftest.tmp"
5776 mv "conftest.tmp" "conftest.in"
5777 cp "conftest.in" "conftest.nl"
5778 $as_echo 'GREP' >> "conftest.nl"
5779 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev
/null ||
break
5780 diff "conftest.out" "conftest.nl" >/dev
/null
2>&1 ||
break
5781 as_fn_arith
$ac_count + 1 && ac_count
=$as_val
5782 if test $ac_count -gt ${ac_path_GREP_max-0}; then
5783 # Best one so far, save it but keep looking for a better one
5784 ac_cv_path_GREP
="$ac_path_GREP"
5785 ac_path_GREP_max
=$ac_count
5787 # 10*(2^10) chars as input seems more than enough
5788 test $ac_count -gt 10 && break
5790 rm -f conftest.
in conftest.tmp conftest.
nl conftest.out
;;
5793 $ac_path_GREP_found && break 3
5798 if test -z "$ac_cv_path_GREP"; then
5799 as_fn_error $?
"no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
5802 ac_cv_path_GREP
=$GREP
5806 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
5807 $as_echo "$ac_cv_path_GREP" >&6; }
5808 GREP
="$ac_cv_path_GREP"
5811 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
5812 $as_echo_n "checking for egrep... " >&6; }
5813 if ${ac_cv_path_EGREP+:} false
; then :
5814 $as_echo_n "(cached) " >&6
5816 if echo a |
$GREP -E '(a|b)' >/dev
/null
2>&1
5817 then ac_cv_path_EGREP
="$GREP -E"
5819 if test -z "$EGREP"; then
5820 ac_path_EGREP_found
=false
5821 # Loop through the user's path and test for each of PROGNAME-LIST
5822 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
5823 for as_dir
in $PATH$PATH_SEPARATOR/usr
/xpg
4/bin
5826 test -z "$as_dir" && as_dir
=.
5827 for ac_prog
in egrep; do
5828 for ac_exec_ext
in '' $ac_executable_extensions; do
5829 ac_path_EGREP
="$as_dir/$ac_prog$ac_exec_ext"
5830 { test -f "$ac_path_EGREP" && $as_test_x "$ac_path_EGREP"; } ||
continue
5831 # Check for GNU ac_path_EGREP and select it if it is found.
5832 # Check for GNU $ac_path_EGREP
5833 case `"$ac_path_EGREP" --version 2>&1` in
5835 ac_cv_path_EGREP
="$ac_path_EGREP" ac_path_EGREP_found
=:;;
5838 $as_echo_n 0123456789 >"conftest.in"
5841 cat "conftest.in" "conftest.in" >"conftest.tmp"
5842 mv "conftest.tmp" "conftest.in"
5843 cp "conftest.in" "conftest.nl"
5844 $as_echo 'EGREP' >> "conftest.nl"
5845 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev
/null ||
break
5846 diff "conftest.out" "conftest.nl" >/dev
/null
2>&1 ||
break
5847 as_fn_arith
$ac_count + 1 && ac_count
=$as_val
5848 if test $ac_count -gt ${ac_path_EGREP_max-0}; then
5849 # Best one so far, save it but keep looking for a better one
5850 ac_cv_path_EGREP
="$ac_path_EGREP"
5851 ac_path_EGREP_max
=$ac_count
5853 # 10*(2^10) chars as input seems more than enough
5854 test $ac_count -gt 10 && break
5856 rm -f conftest.
in conftest.tmp conftest.
nl conftest.out
;;
5859 $ac_path_EGREP_found && break 3
5864 if test -z "$ac_cv_path_EGREP"; then
5865 as_fn_error $?
"no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
5868 ac_cv_path_EGREP
=$EGREP
5873 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
5874 $as_echo "$ac_cv_path_EGREP" >&6; }
5875 EGREP
="$ac_cv_path_EGREP"
5878 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
5879 $as_echo_n "checking for ANSI C header files... " >&6; }
5880 if ${ac_cv_header_stdc+:} false
; then :
5881 $as_echo_n "(cached) " >&6
5883 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
5884 /* end confdefs.h. */
5898 if ac_fn_c_try_compile
"$LINENO"; then :
5899 ac_cv_header_stdc
=yes
5901 ac_cv_header_stdc
=no
5903 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
5905 if test $ac_cv_header_stdc = yes; then
5906 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
5907 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
5908 /* end confdefs.h. */
5912 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5913 $EGREP "memchr" >/dev
/null
2>&1; then :
5916 ac_cv_header_stdc
=no
5922 if test $ac_cv_header_stdc = yes; then
5923 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
5924 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
5925 /* end confdefs.h. */
5929 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5930 $EGREP "free" >/dev
/null
2>&1; then :
5933 ac_cv_header_stdc
=no
5939 if test $ac_cv_header_stdc = yes; then
5940 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
5941 if test "$cross_compiling" = yes; then :
5944 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
5945 /* end confdefs.h. */
5948 #if ((' ' & 0x0FF) == 0x020)
5949 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
5950 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
5952 # define ISLOWER(c) \
5953 (('a' <= (c) && (c) <= 'i') \
5954 || ('j' <= (c) && (c) <= 'r') \
5955 || ('s' <= (c) && (c) <= 'z'))
5956 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
5959 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
5964 for (i = 0; i < 256; i++)
5965 if (XOR (islower (i), ISLOWER (i))
5966 || toupper (i) != TOUPPER (i))
5971 if ac_fn_c_try_run
"$LINENO"; then :
5974 ac_cv_header_stdc
=no
5976 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
5977 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
5982 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
5983 $as_echo "$ac_cv_header_stdc" >&6; }
5984 if test $ac_cv_header_stdc = yes; then
5986 $as_echo "#define STDC_HEADERS 1" >>confdefs.h
5990 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
5991 for ac_header
in sys
/types.h sys
/stat.h stdlib.h string.h memory.h
strings.h \
5992 inttypes.h stdint.h unistd.h
5994 as_ac_Header
=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
5995 ac_fn_c_check_header_compile
"$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
5997 if eval test \"x\$
"$as_ac_Header"\" = x
"yes"; then :
5998 cat >>confdefs.h
<<_ACEOF
5999 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
6010 ac_fn_c_check_header_mongrel
"$LINENO" "minix/config.h" "ac_cv_header_minix_config_h" "$ac_includes_default"
6011 if test "x$ac_cv_header_minix_config_h" = xyes
; then :
6018 if test "$MINIX" = yes; then
6020 $as_echo "#define _POSIX_SOURCE 1" >>confdefs.h
6023 $as_echo "#define _POSIX_1_SOURCE 2" >>confdefs.h
6026 $as_echo "#define _MINIX 1" >>confdefs.h
6033 $as_echo "#define _XOPEN_SOURCE 500" >>confdefs.h
6039 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether it is safe to define __EXTENSIONS__" >&5
6040 $as_echo_n "checking whether it is safe to define __EXTENSIONS__... " >&6; }
6041 if ${ac_cv_safe_to_define___extensions__+:} false
; then :
6042 $as_echo_n "(cached) " >&6
6044 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
6045 /* end confdefs.h. */
6047 # define __EXTENSIONS__ 1
6048 $ac_includes_default
6057 if ac_fn_c_try_compile
"$LINENO"; then :
6058 ac_cv_safe_to_define___extensions__
=yes
6060 ac_cv_safe_to_define___extensions__
=no
6062 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
6064 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_safe_to_define___extensions__" >&5
6065 $as_echo "$ac_cv_safe_to_define___extensions__" >&6; }
6066 test $ac_cv_safe_to_define___extensions__ = yes &&
6067 $as_echo "#define __EXTENSIONS__ 1" >>confdefs.h
6069 $as_echo "#define _ALL_SOURCE 1" >>confdefs.h
6071 $as_echo "#define _GNU_SOURCE 1" >>confdefs.h
6073 $as_echo "#define _POSIX_PTHREAD_SEMANTICS 1" >>confdefs.h
6075 $as_echo "#define _TANDEM_SOURCE 1" >>confdefs.h
6086 # Code from module arg-nonnull:
6087 # Code from module c++defs:
6088 # Code from module crypto/md5:
6089 # Code from module dtoastr:
6090 # Code from module extensions:
6092 # Code from module getloadavg:
6093 # Code from module getopt-gnu:
6094 # Code from module getopt-posix:
6095 # Code from module gettext-h:
6096 # Code from module ignore-value:
6097 # Code from module include_next:
6098 # Code from module intprops:
6099 # Code from module mktime:
6100 # Code from module multiarch:
6101 # Code from module stdbool:
6102 # Code from module stddef:
6103 # Code from module stdint:
6104 # Code from module stdlib:
6105 # Code from module strftime:
6106 # Code from module time:
6107 # Code from module time_r:
6108 # Code from module unistd:
6109 # Code from module warn-on-use:
6112 # On Suns, sometimes $CPP names a directory.
6113 if test -n "$CPP" && test -d "$CPP"; then
6117 ## If not using gcc, and on Solaris, and no CPP specified, see if
6118 ## using a Sun compiler, which needs -Xs to prevent whitespace.
6119 if test x
"$GCC" != xyes
&& test x
"$emacs_check_sunpro_c" = xyes
&& \
6120 test x
"$CPP" = x
; then
6121 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using a Sun C compiler" >&5
6122 $as_echo_n "checking whether we are using a Sun C compiler... " >&6; }
6123 if ${emacs_cv_sunpro_c+:} false
; then :
6124 $as_echo_n "(cached) " >&6
6126 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
6127 /* end confdefs.h. */
6140 if ac_fn_c_try_link
"$LINENO"; then :
6141 emacs_cv_sunpro_c
=yes
6143 emacs_cv_sunpro_c
=no
6145 rm -f core conftest.err conftest.
$ac_objext \
6146 conftest
$ac_exeext conftest.
$ac_ext
6149 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $emacs_cv_sunpro_c" >&5
6150 $as_echo "$emacs_cv_sunpro_c" >&6; }
6152 if test x
"$emacs_cv_sunpro_c" = xyes
; then
6153 NON_GNU_CPP
="$CC -E -Xs"
6157 #### Some systems specify a CPP to use unless we are using GCC.
6158 #### Now that we know whether we are using GCC, we can decide whether
6159 #### to use that one.
6160 if test "x$NON_GNU_CPP" != x
&& test x
$GCC != xyes
&& test "x$CPP" = x
6165 #### Some systems specify a CC to use unless we are using GCC.
6166 #### Now that we know whether we are using GCC, we can decide whether
6167 #### to use that one.
6168 if test "x$NON_GNU_CC" != x
&& test x
$GCC != xyes
&&
6169 test x
$cc_specified != xyes
6174 if test x
$GCC = xyes
; then
6175 test "x$GCC_TEST_OPTIONS" != x
&& CC
="$CC $GCC_TEST_OPTIONS"
6177 test "x$NON_GCC_TEST_OPTIONS" != x
&& CC
="$CC $NON_GCC_TEST_OPTIONS"
6180 ### Use -Wno-pointer-sign if the compiler supports it
6181 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether gcc understands -Wno-pointer-sign" >&5
6182 $as_echo_n "checking whether gcc understands -Wno-pointer-sign... " >&6; }
6183 SAVE_CFLAGS
="$CFLAGS"
6184 CFLAGS
="$CFLAGS -Wno-pointer-sign"
6185 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
6186 /* end confdefs.h. */
6196 if ac_fn_c_try_compile
"$LINENO"; then :
6201 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
6202 if test $has_option = yes; then
6203 C_WARNINGS_SWITCH
="-Wno-pointer-sign $C_WARNINGS_SWITCH"
6205 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $has_option" >&5
6206 $as_echo "$has_option" >&6; }
6207 CFLAGS
="$SAVE_CFLAGS"
6211 ### Use -Wdeclaration-after-statement if the compiler supports it
6212 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether gcc understands -Wdeclaration-after-statement" >&5
6213 $as_echo_n "checking whether gcc understands -Wdeclaration-after-statement... " >&6; }
6214 SAVE_CFLAGS
="$CFLAGS"
6215 CFLAGS
="$CFLAGS -Wdeclaration-after-statement"
6216 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
6217 /* end confdefs.h. */
6227 if ac_fn_c_try_compile
"$LINENO"; then :
6232 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
6233 if test $has_option = yes; then
6234 C_WARNINGS_SWITCH
="-Wdeclaration-after-statement $C_WARNINGS_SWITCH"
6236 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $has_option" >&5
6237 $as_echo "$has_option" >&6; }
6238 CFLAGS
="$SAVE_CFLAGS"
6242 ### Use -Wold-style-definition if the compiler supports it
6243 # This can be removed when conversion to standard C is finished.
6244 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether gcc understands -Wold-style-definition" >&5
6245 $as_echo_n "checking whether gcc understands -Wold-style-definition... " >&6; }
6246 SAVE_CFLAGS
="$CFLAGS"
6247 CFLAGS
="$CFLAGS -Wold-style-definition"
6248 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
6249 /* end confdefs.h. */
6259 if ac_fn_c_try_compile
"$LINENO"; then :
6264 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
6265 if test $has_option = yes; then
6266 C_WARNINGS_SWITCH
="-Wold-style-definition $C_WARNINGS_SWITCH"
6268 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $has_option" >&5
6269 $as_echo "$has_option" >&6; }
6270 CFLAGS
="$SAVE_CFLAGS"
6274 ### Use -Wimplicit-function-declaration if the compiler supports it
6275 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether gcc understands -Wimplicit-function-declaration" >&5
6276 $as_echo_n "checking whether gcc understands -Wimplicit-function-declaration... " >&6; }
6277 SAVE_CFLAGS
="$CFLAGS"
6278 CFLAGS
="$CFLAGS -Wimplicit-function-declaration"
6279 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
6280 /* end confdefs.h. */
6290 if ac_fn_c_try_compile
"$LINENO"; then :
6295 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
6296 if test $has_option = yes; then
6297 C_WARNINGS_SWITCH
="-Wimplicit-function-declaration $C_WARNINGS_SWITCH"
6299 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $has_option" >&5
6300 $as_echo "$has_option" >&6; }
6301 CFLAGS
="$SAVE_CFLAGS"
6308 #### Some other nice autoconf tests.
6311 ac_cpp
='$CPP $CPPFLAGS'
6312 ac_compile
='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6313 ac_link
='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6314 ac_compiler_gnu
=$ac_cv_c_compiler_gnu
6315 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
6316 $as_echo_n "checking how to run the C preprocessor... " >&6; }
6317 # On Suns, sometimes $CPP names a directory.
6318 if test -n "$CPP" && test -d "$CPP"; then
6321 if test -z "$CPP"; then
6322 if ${ac_cv_prog_CPP+:} false
; then :
6323 $as_echo_n "(cached) " >&6
6325 # Double quotes because CPP needs to be expanded
6326 for CPP
in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
6329 for ac_c_preproc_warn_flag
in '' yes
6331 # Use a header file that comes with gcc, so configuring glibc
6332 # with a fresh cross-compiler works.
6333 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
6334 # <limits.h> exists even on freestanding compilers.
6335 # On the NeXT, cc -E runs the code through the compiler's parser,
6336 # not just through cpp. "Syntax error" is here to catch this case.
6337 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
6338 /* end confdefs.h. */
6340 # include <limits.h>
6342 # include <assert.h>
6346 if ac_fn_c_try_cpp
"$LINENO"; then :
6349 # Broken: fails on valid input.
6352 rm -f conftest.err conftest.i conftest.
$ac_ext
6354 # OK, works on sane cases. Now check whether nonexistent headers
6355 # can be detected and how.
6356 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
6357 /* end confdefs.h. */
6358 #include <ac_nonexistent.h>
6360 if ac_fn_c_try_cpp
"$LINENO"; then :
6361 # Broken: success on invalid input.
6364 # Passes both tests.
6368 rm -f conftest.err conftest.i conftest.
$ac_ext
6371 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
6372 rm -f conftest.i conftest.err conftest.
$ac_ext
6373 if $ac_preproc_ok; then :
6385 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
6386 $as_echo "$CPP" >&6; }
6388 for ac_c_preproc_warn_flag
in '' yes
6390 # Use a header file that comes with gcc, so configuring glibc
6391 # with a fresh cross-compiler works.
6392 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
6393 # <limits.h> exists even on freestanding compilers.
6394 # On the NeXT, cc -E runs the code through the compiler's parser,
6395 # not just through cpp. "Syntax error" is here to catch this case.
6396 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
6397 /* end confdefs.h. */
6399 # include <limits.h>
6401 # include <assert.h>
6405 if ac_fn_c_try_cpp
"$LINENO"; then :
6408 # Broken: fails on valid input.
6411 rm -f conftest.err conftest.i conftest.
$ac_ext
6413 # OK, works on sane cases. Now check whether nonexistent headers
6414 # can be detected and how.
6415 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
6416 /* end confdefs.h. */
6417 #include <ac_nonexistent.h>
6419 if ac_fn_c_try_cpp
"$LINENO"; then :
6420 # Broken: success on invalid input.
6423 # Passes both tests.
6427 rm -f conftest.err conftest.i conftest.
$ac_ext
6430 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
6431 rm -f conftest.i conftest.err conftest.
$ac_ext
6432 if $ac_preproc_ok; then :
6435 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
6436 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
6437 as_fn_error $?
"C preprocessor \"$CPP\" fails sanity check
6438 See \`config.log' for more details" "$LINENO" 5; }
6442 ac_cpp
='$CPP $CPPFLAGS'
6443 ac_compile
='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6444 ac_link
='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6445 ac_compiler_gnu
=$ac_cv_c_compiler_gnu
6448 if test "x$RANLIB" = x
; then
6449 if test -n "$ac_tool_prefix"; then
6450 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
6451 set dummy
${ac_tool_prefix}ranlib
; ac_word
=$2
6452 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6453 $as_echo_n "checking for $ac_word... " >&6; }
6454 if ${ac_cv_prog_RANLIB+:} false
; then :
6455 $as_echo_n "(cached) " >&6
6457 if test -n "$RANLIB"; then
6458 ac_cv_prog_RANLIB
="$RANLIB" # Let the user override the test.
6460 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
6464 test -z "$as_dir" && as_dir
=.
6465 for ac_exec_ext
in '' $ac_executable_extensions; do
6466 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6467 ac_cv_prog_RANLIB
="${ac_tool_prefix}ranlib"
6468 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6477 RANLIB
=$ac_cv_prog_RANLIB
6478 if test -n "$RANLIB"; then
6479 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
6480 $as_echo "$RANLIB" >&6; }
6482 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6483 $as_echo "no" >&6; }
6488 if test -z "$ac_cv_prog_RANLIB"; then
6489 ac_ct_RANLIB
=$RANLIB
6490 # Extract the first word of "ranlib", so it can be a program name with args.
6491 set dummy ranlib
; ac_word
=$2
6492 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6493 $as_echo_n "checking for $ac_word... " >&6; }
6494 if ${ac_cv_prog_ac_ct_RANLIB+:} false
; then :
6495 $as_echo_n "(cached) " >&6
6497 if test -n "$ac_ct_RANLIB"; then
6498 ac_cv_prog_ac_ct_RANLIB
="$ac_ct_RANLIB" # Let the user override the test.
6500 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
6504 test -z "$as_dir" && as_dir
=.
6505 for ac_exec_ext
in '' $ac_executable_extensions; do
6506 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6507 ac_cv_prog_ac_ct_RANLIB
="ranlib"
6508 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6517 ac_ct_RANLIB
=$ac_cv_prog_ac_ct_RANLIB
6518 if test -n "$ac_ct_RANLIB"; then
6519 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
6520 $as_echo "$ac_ct_RANLIB" >&6; }
6522 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6523 $as_echo "no" >&6; }
6526 if test "x$ac_ct_RANLIB" = x
; then
6529 case $cross_compiling:$ac_tool_warned in
6531 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6532 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6533 ac_tool_warned
=yes ;;
6535 RANLIB
=$ac_ct_RANLIB
6538 RANLIB
="$ac_cv_prog_RANLIB"
6543 ## Although we're running on an amd64 kernel, we're actually compiling for
6544 ## the x86 architecture. The user should probably have provided an
6545 ## explicit --build to `configure', but if everything else than the kernel
6546 ## is running in i386 mode, we can help them out.
6547 if test "$machine" = "amdx86-64"; then
6548 ac_fn_c_check_decl
"$LINENO" "i386" "ac_cv_have_decl_i386" "$ac_includes_default"
6549 if test "x$ac_cv_have_decl_i386" = xyes
; then :
6553 if test "$ac_cv_have_decl_i386" = "yes"; then
6554 canonical
=`echo "$canonical" | sed -e 's/^amd64/i386/' -e 's/^x86_64/i386/'`
6556 machfile
="m/${machine}.h"
6560 # Extract the first word of "install-info", so it can be a program name with args.
6561 set dummy install-info
; ac_word
=$2
6562 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6563 $as_echo_n "checking for $ac_word... " >&6; }
6564 if ${ac_cv_path_INSTALL_INFO+:} false
; then :
6565 $as_echo_n "(cached) " >&6
6567 case $INSTALL_INFO in
6569 ac_cv_path_INSTALL_INFO
="$INSTALL_INFO" # Let the user override the test with a path.
6572 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
6576 test -z "$as_dir" && as_dir
=.
6577 for ac_exec_ext
in '' $ac_executable_extensions; do
6578 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6579 ac_cv_path_INSTALL_INFO
="$as_dir/$ac_word$ac_exec_ext"
6580 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6590 INSTALL_INFO
=$ac_cv_path_INSTALL_INFO
6591 if test -n "$INSTALL_INFO"; then
6592 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL_INFO" >&5
6593 $as_echo "$INSTALL_INFO" >&6; }
6595 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6596 $as_echo "no" >&6; }
6600 # Extract the first word of "install-info", so it can be a program name with args.
6601 set dummy install-info
; ac_word
=$2
6602 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6603 $as_echo_n "checking for $ac_word... " >&6; }
6604 if ${ac_cv_path_INSTALL_INFO+:} false
; then :
6605 $as_echo_n "(cached) " >&6
6607 case $INSTALL_INFO in
6609 ac_cv_path_INSTALL_INFO
="$INSTALL_INFO" # Let the user override the test with a path.
6612 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
6613 for as_dir
in /usr
/sbin
6616 test -z "$as_dir" && as_dir
=.
6617 for ac_exec_ext
in '' $ac_executable_extensions; do
6618 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6619 ac_cv_path_INSTALL_INFO
="$as_dir/$ac_word$ac_exec_ext"
6620 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6630 INSTALL_INFO
=$ac_cv_path_INSTALL_INFO
6631 if test -n "$INSTALL_INFO"; then
6632 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL_INFO" >&5
6633 $as_echo "$INSTALL_INFO" >&6; }
6635 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6636 $as_echo "no" >&6; }
6640 # Extract the first word of "install-info", so it can be a program name with args.
6641 set dummy install-info
; ac_word
=$2
6642 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6643 $as_echo_n "checking for $ac_word... " >&6; }
6644 if ${ac_cv_path_INSTALL_INFO+:} false
; then :
6645 $as_echo_n "(cached) " >&6
6647 case $INSTALL_INFO in
6649 ac_cv_path_INSTALL_INFO
="$INSTALL_INFO" # Let the user override the test with a path.
6652 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
6656 test -z "$as_dir" && as_dir
=.
6657 for ac_exec_ext
in '' $ac_executable_extensions; do
6658 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6659 ac_cv_path_INSTALL_INFO
="$as_dir/$ac_word$ac_exec_ext"
6660 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6667 test -z "$ac_cv_path_INSTALL_INFO" && ac_cv_path_INSTALL_INFO
=":"
6671 INSTALL_INFO
=$ac_cv_path_INSTALL_INFO
6672 if test -n "$INSTALL_INFO"; then
6673 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL_INFO" >&5
6674 $as_echo "$INSTALL_INFO" >&6; }
6676 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6677 $as_echo "no" >&6; }
6681 # Extract the first word of "gzip", so it can be a program name with args.
6682 set dummy
gzip; ac_word
=$2
6683 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6684 $as_echo_n "checking for $ac_word... " >&6; }
6685 if ${ac_cv_path_GZIP_PROG+:} false
; then :
6686 $as_echo_n "(cached) " >&6
6690 ac_cv_path_GZIP_PROG
="$GZIP_PROG" # Let the user override the test with a path.
6693 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
6697 test -z "$as_dir" && as_dir
=.
6698 for ac_exec_ext
in '' $ac_executable_extensions; do
6699 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6700 ac_cv_path_GZIP_PROG
="$as_dir/$ac_word$ac_exec_ext"
6701 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6711 GZIP_PROG
=$ac_cv_path_GZIP_PROG
6712 if test -n "$GZIP_PROG"; then
6713 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GZIP_PROG" >&5
6714 $as_echo "$GZIP_PROG" >&6; }
6716 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6717 $as_echo "no" >&6; }
6723 ## Need makeinfo >= 4.6 (?) to build the manuals.
6724 # Extract the first word of "makeinfo", so it can be a program name with args.
6725 set dummy makeinfo
; ac_word
=$2
6726 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6727 $as_echo_n "checking for $ac_word... " >&6; }
6728 if ${ac_cv_path_MAKEINFO+:} false
; then :
6729 $as_echo_n "(cached) " >&6
6733 ac_cv_path_MAKEINFO
="$MAKEINFO" # Let the user override the test with a path.
6736 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
6740 test -z "$as_dir" && as_dir
=.
6741 for ac_exec_ext
in '' $ac_executable_extensions; do
6742 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6743 ac_cv_path_MAKEINFO
="$as_dir/$ac_word$ac_exec_ext"
6744 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6751 test -z "$ac_cv_path_MAKEINFO" && ac_cv_path_MAKEINFO
="no"
6755 MAKEINFO
=$ac_cv_path_MAKEINFO
6756 if test -n "$MAKEINFO"; then
6757 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAKEINFO" >&5
6758 $as_echo "$MAKEINFO" >&6; }
6760 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6761 $as_echo "no" >&6; }
6765 if test "$MAKEINFO" != "no" && \
6766 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
6770 ## Makeinfo is unusual. For a released Emacs, the manuals are
6771 ## pre-built, and not deleted by the normal clean rules. makeinfo is
6772 ## therefore in the category of "special tools" not normally required, which
6773 ## configure does not have to check for (eg autoconf itself).
6774 ## In a Bazaar checkout on the other hand, the manuals are not included.
6775 ## So makeinfo is a requirement to build from Bazaar, and configure
6776 ## should test for it as it does for any other build requirement.
6777 ## We use the presence of $srcdir/info/emacs to distinguish a release,
6778 ## with pre-built manuals, from a Bazaar checkout.
6781 if test "$MAKEINFO" = "no"; then
6783 if test "x${with_makeinfo}" = "xno"; then
6785 elif test ! -e $srcdir/info
/emacs
; then
6786 as_fn_error $?
"You do not seem to have makeinfo >= 4.6, and your
6787 source tree does not seem to have pre-built manuals in the \`info' directory.
6788 Either install a suitable version of makeinfo, or re-run configure
6789 with the \`--without-makeinfo' option to build without the manuals. " "$LINENO" 5
6795 if test x
$GCC = xyes
; then
6796 test "x$GCC_LINK_TEST_OPTIONS" != x
&& \
6797 ac_link
="$ac_link $GCC_LINK_TEST_OPTIONS"
6799 test "x$NON_GCC_LINK_TEST_OPTIONS" != x
&& \
6800 ac_link
="$ac_link $NON_GCC_LINK_TEST_OPTIONS"
6804 late_LDFLAGS
=$LDFLAGS
6805 if test x
$GCC = xyes
; then
6806 LDFLAGS
="$LDFLAGS -Wl,-znocombreloc"
6808 LDFLAGS
="$LDFLAGS -znocombreloc"
6811 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -znocombreloc" >&5
6812 $as_echo_n "checking for -znocombreloc... " >&6; }
6813 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
6814 /* end confdefs.h. */
6824 if ac_fn_c_try_link
"$LINENO"; then :
6825 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
6826 $as_echo "yes" >&6; }
6828 LDFLAGS
=$late_LDFLAGS
6829 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6830 $as_echo "no" >&6; }
6832 rm -f core conftest.err conftest.
$ac_objext \
6833 conftest
$ac_exeext conftest.
$ac_ext
6836 # The value of CPP is a quoted variable reference, so we need to do this
6837 # to get its actual value...
6838 CPP
=`eval "echo $CPP"`
6841 test "x$CANNOT_DUMP" = "x" && CANNOT_DUMP
=no
6843 your-opsys-here
) CANNOT_DUMP
=yes ;;
6846 test "$CANNOT_DUMP" = "yes" && \
6848 $as_echo "#define CANNOT_DUMP 1" >>confdefs.h
6854 UNEXEC_OBJ
=unexelf.o
6856 # MSDOS uses unexcoff.o
6857 # MSWindows uses unexw32.o
6859 UNEXEC_OBJ
=unexaix.o
6865 UNEXEC_OBJ
=unexmacosx.o
6868 UNEXEC_OBJ
=unexhp9k800.o
6871 # Use the Solaris dldump() function, called from unexsol.c, to dump
6872 # emacs, instead of the generic ELF dump code found in unexelf.c.
6873 # The resulting binary has a complete symbol table, and is better
6874 # for debugging and other observability tools (debuggers, pstack, etc).
6876 # If you encounter a problem using dldump(), please consider sending
6877 # a message to the OpenSolaris tools-linking mailing list:
6878 # http://mail.opensolaris.org/mailman/listinfo/tools-linking
6880 # It is likely that dldump() works with older Solaris too, but this has
6881 # not been tested, so for now this change is for Solaris 10 or newer.
6882 UNEXEC_OBJ
=unexsol.o
6889 ## Let `ld' find image libs and similar things in /usr/local/lib.
6890 ## The system compiler, GCC, has apparently been modified to not
6891 ## look there, contrary to what a stock GCC would do.
6892 LD_SWITCH_SYSTEM
=-L/usr
/local
/lib
6896 ## cpp test was "ifdef __mips__", but presumably this is equivalent...
6897 case $host_cpu in mips
*) LD_SWITCH_SYSTEM
="-G 0";; esac
6901 LD_SWITCH_SYSTEM
="-Wl,-rpath,/usr/pkg/lib -L/usr/pkg/lib -Wl,-rpath,/usr/local/lib -L/usr/local/lib"
6905 ## Han Boetes <han@mijncomputer.nl> says this is necessary,
6906 ## otherwise Emacs dumps core on elf systems.
6907 LD_SWITCH_SYSTEM
="-Z"
6912 ac_link
="$ac_link $LD_SWITCH_SYSTEM"
6914 ## This setting of LD_SWITCH_SYSTEM references LD_SWITCH_X_SITE_AUX,
6915 ## which has not been defined yet. When this was handled with cpp,
6916 ## it was expanded to null when configure sourced the s/*.h file.
6917 ## Thus LD_SWITCH_SYSTEM had different values in configure and the Makefiles.
6918 ## FIXME it would be cleaner to put this in LD_SWITCH_SYSTEM_TEMACS
6919 ## (or somesuch), but because it is supposed to go at the _front_
6920 ## of LD_SWITCH_SYSTEM, we cannot do that in exactly the same way.
6921 ## Compare with the gnu-linux case below, which added to the end
6922 ## of LD_SWITCH_SYSTEM, and so can instead go at the front of
6923 ## LD_SWITCH_SYSTEM_TEMACS.
6926 ## _AUX_RPATH is like _AUX, but uses -rpath instead of -R.
6927 LD_SWITCH_SYSTEM
="\$(LD_SWITCH_X_SITE_AUX_RPATH) $LD_SWITCH_SYSTEM" ;;
6932 if test "$machine" = "alpha"; then
6933 ac_fn_c_check_decl
"$LINENO" "__ELF__" "ac_cv_have_decl___ELF__" "$ac_includes_default"
6934 if test "x$ac_cv_have_decl___ELF__" = xyes
; then :
6938 if test "$ac_cv_have_decl___ELF__" = "yes"; then
6939 ## With ELF, make sure that all common symbols get allocated to in the
6940 ## data section. Otherwise, the dump of temacs may miss variables in
6941 ## the shared library that have been initialized. For example, with
6942 ## GNU libc, __malloc_initialized would normally be resolved to the
6943 ## shared library's .bss section, which is fatal.
6944 if test "x$GCC" = "xyes"; then
6945 C_SWITCH_MACHINE
="-fno-common"
6947 as_fn_error $?
"What gives? Fix me if DEC Unix supports ELF now." "$LINENO" 5
6950 UNEXEC_OBJ
=unexalpha.o
6958 ## Some programs in src produce warnings saying certain subprograms
6959 ## are too complex and need a MAXMEM value greater than 2000 for
6960 ## additional optimization. --nils@exp-math.uni-essen.de
6961 test "$opsys" = "aix4.2" && test "x$GCC" != "xyes" && \
6962 C_SWITCH_SYSTEM
="-ma -qmaxmem=4000"
6963 ## gnu-linux might need -D_BSD_SOURCE on old libc5 systems.
6964 ## It is redundant in glibc2, since we define _GNU_SOURCE.
6970 ## IBM's X11R5 uses -lIM and -liconv in AIX 3.2.2.
6971 aix4-2
) LIBS_SYSTEM
="-lrts -lIM -liconv" ;;
6973 freebsd
) LIBS_SYSTEM
="-lutil" ;;
6975 hpux
*) LIBS_SYSTEM
="-l:libdld.sl" ;;
6977 sol2
*) LIBS_SYSTEM
="-lsocket -lnsl" ;;
6979 ## Motif needs -lgen.
6980 unixware
) LIBS_SYSTEM
="-lsocket -lnsl -lelf -lgen" ;;
6985 ### Make sure subsequent tests use flags consistent with the build flags.
6987 if test x
"${OVERRIDE_CPPFLAGS}" != x
; then
6988 CPPFLAGS
="${OVERRIDE_CPPFLAGS}"
6990 CPPFLAGS
="$C_SWITCH_SYSTEM $C_SWITCH_MACHINE $CPPFLAGS"
6993 # Check whether --enable-largefile was given.
6994 if test "${enable_largefile+set}" = set; then :
6995 enableval
=$enable_largefile;
6998 if test "$enable_largefile" != no
; then
7000 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for special C compiler options needed for large files" >&5
7001 $as_echo_n "checking for special C compiler options needed for large files... " >&6; }
7002 if ${ac_cv_sys_largefile_CC+:} false
; then :
7003 $as_echo_n "(cached) " >&6
7005 ac_cv_sys_largefile_CC
=no
7006 if test "$GCC" != yes; then
7009 # IRIX 6.2 and later do not support large files by default,
7010 # so use the C compiler's -n32 option if that helps.
7011 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
7012 /* end confdefs.h. */
7013 #include <sys/types.h>
7014 /* Check that off_t can represent 2**63 - 1 correctly.
7015 We can't simply define LARGE_OFF_T to be 9223372036854775807,
7016 since some C++ compilers masquerading as C compilers
7017 incorrectly reject 9223372036854775807. */
7018 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
7019 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
7020 && LARGE_OFF_T % 2147483647 == 1)
7030 if ac_fn_c_try_compile
"$LINENO"; then :
7033 rm -f core conftest.err conftest.
$ac_objext
7035 if ac_fn_c_try_compile
"$LINENO"; then :
7036 ac_cv_sys_largefile_CC
=' -n32'; break
7038 rm -f core conftest.err conftest.
$ac_objext
7042 rm -f conftest.
$ac_ext
7045 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_largefile_CC" >&5
7046 $as_echo "$ac_cv_sys_largefile_CC" >&6; }
7047 if test "$ac_cv_sys_largefile_CC" != no
; then
7048 CC
=$CC$ac_cv_sys_largefile_CC
7051 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _FILE_OFFSET_BITS value needed for large files" >&5
7052 $as_echo_n "checking for _FILE_OFFSET_BITS value needed for large files... " >&6; }
7053 if ${ac_cv_sys_file_offset_bits+:} false
; then :
7054 $as_echo_n "(cached) " >&6
7057 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
7058 /* end confdefs.h. */
7059 #include <sys/types.h>
7060 /* Check that off_t can represent 2**63 - 1 correctly.
7061 We can't simply define LARGE_OFF_T to be 9223372036854775807,
7062 since some C++ compilers masquerading as C compilers
7063 incorrectly reject 9223372036854775807. */
7064 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
7065 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
7066 && LARGE_OFF_T % 2147483647 == 1)
7076 if ac_fn_c_try_compile
"$LINENO"; then :
7077 ac_cv_sys_file_offset_bits
=no
; break
7079 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
7080 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
7081 /* end confdefs.h. */
7082 #define _FILE_OFFSET_BITS 64
7083 #include <sys/types.h>
7084 /* Check that off_t can represent 2**63 - 1 correctly.
7085 We can't simply define LARGE_OFF_T to be 9223372036854775807,
7086 since some C++ compilers masquerading as C compilers
7087 incorrectly reject 9223372036854775807. */
7088 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
7089 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
7090 && LARGE_OFF_T % 2147483647 == 1)
7100 if ac_fn_c_try_compile
"$LINENO"; then :
7101 ac_cv_sys_file_offset_bits
=64; break
7103 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
7104 ac_cv_sys_file_offset_bits
=unknown
7108 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_file_offset_bits" >&5
7109 $as_echo "$ac_cv_sys_file_offset_bits" >&6; }
7110 case $ac_cv_sys_file_offset_bits in #(
7113 cat >>confdefs.h
<<_ACEOF
7114 #define _FILE_OFFSET_BITS $ac_cv_sys_file_offset_bits
7119 if test $ac_cv_sys_file_offset_bits = unknown
; then
7120 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _LARGE_FILES value needed for large files" >&5
7121 $as_echo_n "checking for _LARGE_FILES value needed for large files... " >&6; }
7122 if ${ac_cv_sys_large_files+:} false
; then :
7123 $as_echo_n "(cached) " >&6
7126 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
7127 /* end confdefs.h. */
7128 #include <sys/types.h>
7129 /* Check that off_t can represent 2**63 - 1 correctly.
7130 We can't simply define LARGE_OFF_T to be 9223372036854775807,
7131 since some C++ compilers masquerading as C compilers
7132 incorrectly reject 9223372036854775807. */
7133 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
7134 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
7135 && LARGE_OFF_T % 2147483647 == 1)
7145 if ac_fn_c_try_compile
"$LINENO"; then :
7146 ac_cv_sys_large_files
=no
; break
7148 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
7149 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
7150 /* end confdefs.h. */
7151 #define _LARGE_FILES 1
7152 #include <sys/types.h>
7153 /* Check that off_t can represent 2**63 - 1 correctly.
7154 We can't simply define LARGE_OFF_T to be 9223372036854775807,
7155 since some C++ compilers masquerading as C compilers
7156 incorrectly reject 9223372036854775807. */
7157 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
7158 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
7159 && LARGE_OFF_T % 2147483647 == 1)
7169 if ac_fn_c_try_compile
"$LINENO"; then :
7170 ac_cv_sys_large_files
=1; break
7172 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
7173 ac_cv_sys_large_files
=unknown
7177 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_large_files" >&5
7178 $as_echo "$ac_cv_sys_large_files" >&6; }
7179 case $ac_cv_sys_large_files in #(
7182 cat >>confdefs.h
<<_ACEOF
7183 #define _LARGE_FILES $ac_cv_sys_large_files
7193 ## If user specified a crt-dir, use that unconditionally.
7194 if test "X$CRT_DIR" = "X"; then
7196 case "$canonical" in
7197 x86_64-
*-linux-gnu* | s390x-
*-linux-gnu*)
7198 ## On x86-64 and s390x GNU/Linux distributions, the standard library
7199 ## can be in a variety of places. We only try /usr/lib64 and /usr/lib.
7200 ## For anything else (eg /usr/lib32), it is up the user to specify
7201 ## the location (bug#5655).
7202 ## Test for crtn.o, not just the directory, because sometimes the
7203 ## directory exists but does not have the relevant files (bug#1287).
7204 ## FIXME better to test for binary compatibility somehow.
7205 test -e /usr
/lib64
/crtn.o
&& CRT_DIR
=/usr
/lib64
7208 powerpc64-
*-linux-gnu* | sparc64-
*-linux-gnu*) CRT_DIR
=/usr
/lib64
;;
7212 hpux10-20
) CRT_DIR
=/lib
;;
7215 ## Default is /usr/lib.
7216 test "X$CRT_DIR" = "X" && CRT_DIR
=/usr
/lib
7220 ## Some platforms don't use any of these files, so it is not
7221 ## appropriate to put this test outside the if block.
7222 test -e $CRT_DIR/crtn.o ||
test -e $CRT_DIR/crt0.o || \
7223 as_fn_error $?
"crt*.o not found in specified location." "$LINENO" 5
7236 START_FILES
='pre-crt0.o'
7239 ## Adding -lm confuses the dynamic linker, so omit it.
7241 START_FILES
='pre-crt0.o'
7244 LIB_STANDARD
='-lgcc -lc -lgcc $(CRT_DIR)/crtend.o $(CRT_DIR)/crtn.o'
7245 START_FILES
='pre-crt0.o $(CRT_DIR)/crt1.o $(CRT_DIR)/crti.o $(CRT_DIR)/crtbegin.o'
7247 gnu-linux | gnu-kfreebsd
)
7248 LIB_STANDARD
='-lgcc -lc -lgcc $(CRT_DIR)/crtn.o'
7249 START_FILES
='pre-crt0.o $(CRT_DIR)/crt1.o $(CRT_DIR)/crti.o'
7251 hpux10-20 | hpux11
)
7253 START_FILES
='pre-crt0.o $(CRT_DIR)/crt0.o'
7256 if test -f $CRT_DIR/crti.o
; then
7257 LIB_STANDARD
='-lgcc -lc -lgcc $(CRT_DIR)/crtend.o $(CRT_DIR)/crtn.o'
7258 START_FILES
='pre-crt0.o $(CRT_DIR)/crt0.o $(CRT_DIR)/crti.o $(CRT_DIR)/crtbegin.o'
7260 LIB_STANDARD
='-lgcc -lc -lgcc $(CRT_DIR)/crtend.o'
7261 START_FILES
='pre-crt0.o $(CRT_DIR)/crt0.o $(CRT_DIR)/crtbegin.o'
7272 if test "${with_sound}" != "no"; then
7273 # Sound support for GNU/Linux and the free BSDs.
7274 for ac_header
in machine
/soundcard.h sys
/soundcard.h soundcard.h
7276 as_ac_Header
=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
7277 ac_fn_c_check_header_mongrel
"$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
7278 if eval test \"x\$
"$as_ac_Header"\" = x
"yes"; then :
7279 cat >>confdefs.h
<<_ACEOF
7280 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
7282 have_sound_header
=yes
7287 # Emulation library used on NetBSD.
7288 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _oss_ioctl in -lossaudio" >&5
7289 $as_echo_n "checking for _oss_ioctl in -lossaudio... " >&6; }
7290 if ${ac_cv_lib_ossaudio__oss_ioctl+:} false
; then :
7291 $as_echo_n "(cached) " >&6
7293 ac_check_lib_save_LIBS
=$LIBS
7294 LIBS
="-lossaudio $LIBS"
7295 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
7296 /* end confdefs.h. */
7298 /* Override any GCC internal prototype to avoid an error.
7299 Use char because int might match the return type of a GCC
7300 builtin and then its argument prototype would still apply. */
7308 return _oss_ioctl ();
7313 if ac_fn_c_try_link
"$LINENO"; then :
7314 ac_cv_lib_ossaudio__oss_ioctl
=yes
7316 ac_cv_lib_ossaudio__oss_ioctl
=no
7318 rm -f core conftest.err conftest.
$ac_objext \
7319 conftest
$ac_exeext conftest.
$ac_ext
7320 LIBS
=$ac_check_lib_save_LIBS
7322 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_ossaudio__oss_ioctl" >&5
7323 $as_echo "$ac_cv_lib_ossaudio__oss_ioctl" >&6; }
7324 if test "x$ac_cv_lib_ossaudio__oss_ioctl" = xyes
; then :
7333 ALSA_MODULES
="alsa >= $ALSA_REQUIRED"
7337 # Extract the first word of "pkg-config", so it can be a program name with args.
7338 set dummy pkg-config
; ac_word
=$2
7339 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7340 $as_echo_n "checking for $ac_word... " >&6; }
7341 if ${ac_cv_path_PKG_CONFIG+:} false
; then :
7342 $as_echo_n "(cached) " >&6
7346 ac_cv_path_PKG_CONFIG
="$PKG_CONFIG" # Let the user override the test with a path.
7349 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
7353 test -z "$as_dir" && as_dir
=.
7354 for ac_exec_ext
in '' $ac_executable_extensions; do
7355 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7356 ac_cv_path_PKG_CONFIG
="$as_dir/$ac_word$ac_exec_ext"
7357 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7364 test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG
="no"
7368 PKG_CONFIG
=$ac_cv_path_PKG_CONFIG
7369 if test -n "$PKG_CONFIG"; then
7370 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5
7371 $as_echo "$PKG_CONFIG" >&6; }
7373 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7374 $as_echo "no" >&6; }
7379 if test "$PKG_CONFIG" = "no" ; then
7382 PKG_CONFIG_MIN_VERSION
=0.9.0
7383 if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
7384 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ALSA_MODULES" >&5
7385 $as_echo_n "checking for $ALSA_MODULES... " >&6; }
7387 if $PKG_CONFIG --exists "$ALSA_MODULES" 2>&5; then
7388 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
7389 $as_echo "yes" >&6; }
7392 { $as_echo "$as_me:${as_lineno-$LINENO}: checking ALSA_CFLAGS" >&5
7393 $as_echo_n "checking ALSA_CFLAGS... " >&6; }
7394 ALSA_CFLAGS
=`$PKG_CONFIG --cflags "$ALSA_MODULES"|sed -e 's,///*,/,g'`
7395 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ALSA_CFLAGS" >&5
7396 $as_echo "$ALSA_CFLAGS" >&6; }
7398 { $as_echo "$as_me:${as_lineno-$LINENO}: checking ALSA_LIBS" >&5
7399 $as_echo_n "checking ALSA_LIBS... " >&6; }
7400 ALSA_LIBS
=`$PKG_CONFIG --libs "$ALSA_MODULES"|sed -e 's,///*,/,g'`
7401 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ALSA_LIBS" >&5
7402 $as_echo "$ALSA_LIBS" >&6; }
7404 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7405 $as_echo "no" >&6; }
7408 ## If we have a custom action on failure, don't print errors, but
7409 ## do set a variable so people can do so.
7410 ALSA_PKG_ERRORS
=`$PKG_CONFIG --errors-to-stdout --print-errors "$ALSA_MODULES"`
7417 echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
7418 echo "*** See http://www.freedesktop.org/software/pkgconfig"
7422 if test $succeeded = yes; then
7428 if test $HAVE_ALSA = yes; then
7429 SAVE_CFLAGS
="$CFLAGS"
7430 SAVE_LDFLAGS
="$LDFLAGS"
7431 CFLAGS
="$ALSA_CFLAGS $CFLAGS"
7432 LDFLAGS
="$ALSA_LIBS $LDFLAGS"
7433 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
7434 /* end confdefs.h. */
7435 #include <asoundlib.h>
7439 snd_lib_error_set_handler (0);
7444 if ac_fn_c_try_compile
"$LINENO"; then :
7445 emacs_alsa_normal
=yes
7447 emacs_alsa_normal
=no
7449 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
7450 if test "$emacs_alsa_normal" != yes; then
7451 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
7452 /* end confdefs.h. */
7453 #include <alsa/asoundlib.h>
7457 snd_lib_error_set_handler (0);
7462 if ac_fn_c_try_compile
"$LINENO"; then :
7463 emacs_alsa_subdir
=yes
7465 emacs_alsa_subdir
=no
7467 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
7468 if test "$emacs_alsa_subdir" != yes; then
7469 as_fn_error $?
"pkg-config found alsa, but it does not compile. See config.log for error messages." "$LINENO" 5
7471 ALSA_CFLAGS
="$ALSA_CFLAGS -DALSA_SUBDIR_INCLUDE"
7474 CFLAGS
="$SAVE_CFLAGS"
7475 LDFLAGS
="$SAVE_LDFLAGS"
7476 LIBSOUND
="$LIBSOUND $ALSA_LIBS"
7477 CFLAGS_SOUND
="$CFLAGS_SOUND $ALSA_CFLAGS"
7479 $as_echo "#define HAVE_ALSA 1" >>confdefs.h
7483 if test x
$have_sound_header = xyes ||
test $HAVE_ALSA = yes; then
7485 gnu-linux|freebsd|netbsd
)
7487 $as_echo "#define HAVE_SOUND 1" >>confdefs.h
7496 for ac_header
in sys
/select.h sys
/time.h unistd.h utime.h \
7497 linux
/version.h sys
/systeminfo.h limits.h \
7498 stdio_ext.h fcntl.h coff.h pty.h sys
/mman.h \
7499 sys
/vlimit.h sys
/resource.h locale.h sys
/_mbstate_t.h \
7500 sys
/utsname.h
pwd.h utmp.h dirent.h util.h
7502 as_ac_Header
=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
7503 ac_fn_c_check_header_mongrel
"$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
7504 if eval test \"x\$
"$as_ac_Header"\" = x
"yes"; then :
7505 cat >>confdefs.h
<<_ACEOF
7506 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
7514 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if personality LINUX32 can be set" >&5
7515 $as_echo_n "checking if personality LINUX32 can be set... " >&6; }
7516 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
7517 /* end confdefs.h. */
7518 #include <sys/personality.h>
7522 personality (PER_LINUX32)
7527 if ac_fn_c_try_compile
"$LINENO"; then :
7528 emacs_cv_personality_linux32
=yes
7530 emacs_cv_personality_linux32
=no
7532 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
7533 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $emacs_cv_personality_linux32" >&5
7534 $as_echo "$emacs_cv_personality_linux32" >&6; }
7536 if test $emacs_cv_personality_linux32 = yes; then
7538 $as_echo "#define HAVE_PERSONALITY_LINUX32 1" >>confdefs.h
7542 for ac_header
in term.h
7544 ac_fn_c_check_header_preproc
"$LINENO" "term.h" "ac_cv_header_term_h"
7545 if test "x$ac_cv_header_term_h" = xyes
; then :
7546 cat >>confdefs.h
<<_ACEOF
7547 #define HAVE_TERM_H 1
7554 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
7555 $as_echo_n "checking for ANSI C header files... " >&6; }
7556 if ${ac_cv_header_stdc+:} false
; then :
7557 $as_echo_n "(cached) " >&6
7559 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
7560 /* end confdefs.h. */
7574 if ac_fn_c_try_compile
"$LINENO"; then :
7575 ac_cv_header_stdc
=yes
7577 ac_cv_header_stdc
=no
7579 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
7581 if test $ac_cv_header_stdc = yes; then
7582 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
7583 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
7584 /* end confdefs.h. */
7588 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
7589 $EGREP "memchr" >/dev
/null
2>&1; then :
7592 ac_cv_header_stdc
=no
7598 if test $ac_cv_header_stdc = yes; then
7599 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
7600 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
7601 /* end confdefs.h. */
7605 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
7606 $EGREP "free" >/dev
/null
2>&1; then :
7609 ac_cv_header_stdc
=no
7615 if test $ac_cv_header_stdc = yes; then
7616 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
7617 if test "$cross_compiling" = yes; then :
7620 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
7621 /* end confdefs.h. */
7624 #if ((' ' & 0x0FF) == 0x020)
7625 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
7626 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
7628 # define ISLOWER(c) \
7629 (('a' <= (c) && (c) <= 'i') \
7630 || ('j' <= (c) && (c) <= 'r') \
7631 || ('s' <= (c) && (c) <= 'z'))
7632 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
7635 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
7640 for (i = 0; i < 256; i++)
7641 if (XOR (islower (i), ISLOWER (i))
7642 || toupper (i) != TOUPPER (i))
7647 if ac_fn_c_try_run
"$LINENO"; then :
7650 ac_cv_header_stdc
=no
7652 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
7653 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
7658 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
7659 $as_echo "$ac_cv_header_stdc" >&6; }
7660 if test $ac_cv_header_stdc = yes; then
7662 $as_echo "#define STDC_HEADERS 1" >>confdefs.h
7666 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether time.h and sys/time.h may both be included" >&5
7667 $as_echo_n "checking whether time.h and sys/time.h may both be included... " >&6; }
7668 if ${ac_cv_header_time+:} false
; then :
7669 $as_echo_n "(cached) " >&6
7671 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
7672 /* end confdefs.h. */
7673 #include <sys/types.h>
7674 #include <sys/time.h>
7680 if ((struct tm *) 0)
7686 if ac_fn_c_try_compile
"$LINENO"; then :
7687 ac_cv_header_time
=yes
7689 ac_cv_header_time
=no
7691 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
7693 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_time" >&5
7694 $as_echo "$ac_cv_header_time" >&6; }
7695 if test $ac_cv_header_time = yes; then
7697 $as_echo "#define TIME_WITH_SYS_TIME 1" >>confdefs.h
7701 ac_fn_c_check_decl
"$LINENO" "sys_siglist" "ac_cv_have_decl_sys_siglist" "$ac_includes_default"
7702 if test "x$ac_cv_have_decl_sys_siglist" = xyes
; then :
7708 cat >>confdefs.h
<<_ACEOF
7709 #define HAVE_DECL_SYS_SIGLIST $ac_have_decl
7712 if test $ac_cv_have_decl_sys_siglist != yes; then
7713 # For Tru64, at least:
7714 ac_fn_c_check_decl
"$LINENO" "__sys_siglist" "ac_cv_have_decl___sys_siglist" "$ac_includes_default"
7715 if test "x$ac_cv_have_decl___sys_siglist" = xyes
; then :
7721 cat >>confdefs.h
<<_ACEOF
7722 #define HAVE_DECL___SYS_SIGLIST $ac_have_decl
7725 if test $ac_cv_have_decl___sys_siglist = yes; then
7727 $as_echo "#define sys_siglist __sys_siglist" >>confdefs.h
7731 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sys/wait.h that is POSIX.1 compatible" >&5
7732 $as_echo_n "checking for sys/wait.h that is POSIX.1 compatible... " >&6; }
7733 if ${ac_cv_header_sys_wait_h+:} false
; then :
7734 $as_echo_n "(cached) " >&6
7736 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
7737 /* end confdefs.h. */
7738 #include <sys/types.h>
7739 #include <sys/wait.h>
7741 # define WEXITSTATUS(stat_val) ((unsigned int) (stat_val) >> 8)
7744 # define WIFEXITED(stat_val) (((stat_val) & 255) == 0)
7752 s = WIFEXITED (s) ? WEXITSTATUS (s) : 1;
7757 if ac_fn_c_try_compile
"$LINENO"; then :
7758 ac_cv_header_sys_wait_h
=yes
7760 ac_cv_header_sys_wait_h
=no
7762 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
7764 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_sys_wait_h" >&5
7765 $as_echo "$ac_cv_header_sys_wait_h" >&6; }
7766 if test $ac_cv_header_sys_wait_h = yes; then
7768 $as_echo "#define HAVE_SYS_WAIT_H 1" >>confdefs.h
7773 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for struct utimbuf" >&5
7774 $as_echo_n "checking for struct utimbuf... " >&6; }
7775 if ${emacs_cv_struct_utimbuf+:} false
; then :
7776 $as_echo_n "(cached) " >&6
7778 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
7779 /* end confdefs.h. */
7780 #ifdef TIME_WITH_SYS_TIME
7781 #include <sys/time.h>
7784 #ifdef HAVE_SYS_TIME_H
7785 #include <sys/time.h>
7796 static struct utimbuf x; x.actime = x.modtime;
7801 if ac_fn_c_try_compile
"$LINENO"; then :
7802 emacs_cv_struct_utimbuf
=yes
7804 emacs_cv_struct_utimbuf
=no
7806 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
7808 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $emacs_cv_struct_utimbuf" >&5
7809 $as_echo "$emacs_cv_struct_utimbuf" >&6; }
7810 if test $emacs_cv_struct_utimbuf = yes; then
7812 $as_echo "#define HAVE_STRUCT_UTIMBUF 1" >>confdefs.h
7816 { $as_echo "$as_me:${as_lineno-$LINENO}: checking return type of signal handlers" >&5
7817 $as_echo_n "checking return type of signal handlers... " >&6; }
7818 if ${ac_cv_type_signal+:} false
; then :
7819 $as_echo_n "(cached) " >&6
7821 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
7822 /* end confdefs.h. */
7823 #include <sys/types.h>
7829 return *(signal (0, 0)) (0) == 1;
7834 if ac_fn_c_try_compile
"$LINENO"; then :
7835 ac_cv_type_signal
=int
7837 ac_cv_type_signal
=void
7839 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
7841 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_signal" >&5
7842 $as_echo "$ac_cv_type_signal" >&6; }
7844 cat >>confdefs.h
<<_ACEOF
7845 #define RETSIGTYPE $ac_cv_type_signal
7850 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for speed_t" >&5
7851 $as_echo_n "checking for speed_t... " >&6; }
7852 if ${emacs_cv_speed_t+:} false
; then :
7853 $as_echo_n "(cached) " >&6
7855 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
7856 /* end confdefs.h. */
7857 #include <termios.h>
7866 if ac_fn_c_try_compile
"$LINENO"; then :
7867 emacs_cv_speed_t
=yes
7871 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
7873 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $emacs_cv_speed_t" >&5
7874 $as_echo "$emacs_cv_speed_t" >&6; }
7875 if test $emacs_cv_speed_t = yes; then
7877 $as_echo "#define HAVE_SPEED_T 1" >>confdefs.h
7881 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for struct timeval" >&5
7882 $as_echo_n "checking for struct timeval... " >&6; }
7883 if ${emacs_cv_struct_timeval+:} false
; then :
7884 $as_echo_n "(cached) " >&6
7886 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
7887 /* end confdefs.h. */
7888 #ifdef TIME_WITH_SYS_TIME
7889 #include <sys/time.h>
7892 #ifdef HAVE_SYS_TIME_H
7893 #include <sys/time.h>
7901 static struct timeval x; x.tv_sec = x.tv_usec;
7906 if ac_fn_c_try_compile
"$LINENO"; then :
7907 emacs_cv_struct_timeval
=yes
7909 emacs_cv_struct_timeval
=no
7911 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
7913 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $emacs_cv_struct_timeval" >&5
7914 $as_echo "$emacs_cv_struct_timeval" >&6; }
7915 HAVE_TIMEVAL
=$emacs_cv_struct_timeval
7916 if test $emacs_cv_struct_timeval = yes; then
7918 $as_echo "#define HAVE_TIMEVAL 1" >>confdefs.h
7922 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for struct exception" >&5
7923 $as_echo_n "checking for struct exception... " >&6; }
7924 if ${emacs_cv_struct_exception+:} false
; then :
7925 $as_echo_n "(cached) " >&6
7927 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
7928 /* end confdefs.h. */
7933 static struct exception x; x.arg1 = x.arg2 = x.retval; x.name = ""; x.type = 1;
7938 if ac_fn_c_try_compile
"$LINENO"; then :
7939 emacs_cv_struct_exception
=yes
7941 emacs_cv_struct_exception
=no
7943 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
7945 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $emacs_cv_struct_exception" >&5
7946 $as_echo "$emacs_cv_struct_exception" >&6; }
7947 HAVE_EXCEPTION
=$emacs_cv_struct_exception
7948 if test $emacs_cv_struct_exception != yes; then
7950 $as_echo "#define NO_MATHERR 1" >>confdefs.h
7954 for ac_header
in sys
/socket.h
7956 ac_fn_c_check_header_mongrel
"$LINENO" "sys/socket.h" "ac_cv_header_sys_socket_h" "$ac_includes_default"
7957 if test "x$ac_cv_header_sys_socket_h" = xyes
; then :
7958 cat >>confdefs.h
<<_ACEOF
7959 #define HAVE_SYS_SOCKET_H 1
7966 for ac_header
in net
/if.h
7968 ac_fn_c_check_header_compile
"$LINENO" "net/if.h" "ac_cv_header_net_if_h" "$ac_includes_default
7969 #if HAVE_SYS_SOCKET_H
7970 #include <sys/socket.h>
7973 if test "x$ac_cv_header_net_if_h" = xyes
; then :
7974 cat >>confdefs.h
<<_ACEOF
7975 #define HAVE_NET_IF_H 1
7983 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether struct tm is in sys/time.h or time.h" >&5
7984 $as_echo_n "checking whether struct tm is in sys/time.h or time.h... " >&6; }
7985 if ${ac_cv_struct_tm+:} false
; then :
7986 $as_echo_n "(cached) " >&6
7988 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
7989 /* end confdefs.h. */
7990 #include <sys/types.h>
7997 int *p = &tm.tm_sec;
8003 if ac_fn_c_try_compile
"$LINENO"; then :
8004 ac_cv_struct_tm
=time.h
8006 ac_cv_struct_tm
=sys
/time.h
8008 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
8010 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_struct_tm" >&5
8011 $as_echo "$ac_cv_struct_tm" >&6; }
8012 if test $ac_cv_struct_tm = sys
/time.h
; then
8014 $as_echo "#define TM_IN_SYS_TIME 1" >>confdefs.h
8018 ac_fn_c_check_member
"$LINENO" "struct tm" "tm_zone" "ac_cv_member_struct_tm_tm_zone" "#include <sys/types.h>
8019 #include <$ac_cv_struct_tm>
8022 if test "x$ac_cv_member_struct_tm_tm_zone" = xyes
; then :
8024 cat >>confdefs.h
<<_ACEOF
8025 #define HAVE_STRUCT_TM_TM_ZONE 1
8031 if test "$ac_cv_member_struct_tm_tm_zone" = yes; then
8033 $as_echo "#define HAVE_TM_ZONE 1" >>confdefs.h
8036 ac_fn_c_check_decl
"$LINENO" "tzname" "ac_cv_have_decl_tzname" "#include <time.h>
8038 if test "x$ac_cv_have_decl_tzname" = xyes
; then :
8044 cat >>confdefs.h
<<_ACEOF
8045 #define HAVE_DECL_TZNAME $ac_have_decl
8048 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for tzname" >&5
8049 $as_echo_n "checking for tzname... " >&6; }
8050 if ${ac_cv_var_tzname+:} false
; then :
8051 $as_echo_n "(cached) " >&6
8053 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
8054 /* end confdefs.h. */
8056 #if !HAVE_DECL_TZNAME
8057 extern char *tzname[];
8063 return tzname[0][0];
8068 if ac_fn_c_try_link
"$LINENO"; then :
8069 ac_cv_var_tzname
=yes
8073 rm -f core conftest.err conftest.
$ac_objext \
8074 conftest
$ac_exeext conftest.
$ac_ext
8076 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_var_tzname" >&5
8077 $as_echo "$ac_cv_var_tzname" >&6; }
8078 if test $ac_cv_var_tzname = yes; then
8080 $as_echo "#define HAVE_TZNAME 1" >>confdefs.h
8085 ac_fn_c_check_member
"$LINENO" "struct tm" "tm_gmtoff" "ac_cv_member_struct_tm_tm_gmtoff" "#include <time.h>
8087 if test "x$ac_cv_member_struct_tm_tm_gmtoff" = xyes
; then :
8089 $as_echo "#define HAVE_TM_GMTOFF 1" >>confdefs.h
8093 ac_fn_c_check_member
"$LINENO" "struct ifreq" "ifr_flags" "ac_cv_member_struct_ifreq_ifr_flags" "$ac_includes_default
8094 #if HAVE_SYS_SOCKET_H
8095 #include <sys/socket.h>
8101 if test "x$ac_cv_member_struct_ifreq_ifr_flags" = xyes
; then :
8103 cat >>confdefs.h
<<_ACEOF
8104 #define HAVE_STRUCT_IFREQ_IFR_FLAGS 1
8109 ac_fn_c_check_member
"$LINENO" "struct ifreq" "ifr_hwaddr" "ac_cv_member_struct_ifreq_ifr_hwaddr" "$ac_includes_default
8110 #if HAVE_SYS_SOCKET_H
8111 #include <sys/socket.h>
8117 if test "x$ac_cv_member_struct_ifreq_ifr_hwaddr" = xyes
; then :
8119 cat >>confdefs.h
<<_ACEOF
8120 #define HAVE_STRUCT_IFREQ_IFR_HWADDR 1
8125 ac_fn_c_check_member
"$LINENO" "struct ifreq" "ifr_netmask" "ac_cv_member_struct_ifreq_ifr_netmask" "$ac_includes_default
8126 #if HAVE_SYS_SOCKET_H
8127 #include <sys/socket.h>
8133 if test "x$ac_cv_member_struct_ifreq_ifr_netmask" = xyes
; then :
8135 cat >>confdefs.h
<<_ACEOF
8136 #define HAVE_STRUCT_IFREQ_IFR_NETMASK 1
8141 ac_fn_c_check_member
"$LINENO" "struct ifreq" "ifr_broadaddr" "ac_cv_member_struct_ifreq_ifr_broadaddr" "$ac_includes_default
8142 #if HAVE_SYS_SOCKET_H
8143 #include <sys/socket.h>
8149 if test "x$ac_cv_member_struct_ifreq_ifr_broadaddr" = xyes
; then :
8151 cat >>confdefs.h
<<_ACEOF
8152 #define HAVE_STRUCT_IFREQ_IFR_BROADADDR 1
8157 ac_fn_c_check_member
"$LINENO" "struct ifreq" "ifr_addr" "ac_cv_member_struct_ifreq_ifr_addr" "$ac_includes_default
8158 #if HAVE_SYS_SOCKET_H
8159 #include <sys/socket.h>
8165 if test "x$ac_cv_member_struct_ifreq_ifr_addr" = xyes
; then :
8167 cat >>confdefs.h
<<_ACEOF
8168 #define HAVE_STRUCT_IFREQ_IFR_ADDR 1
8176 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for function prototypes" >&5
8177 $as_echo_n "checking for function prototypes... " >&6; }
8178 if test "$ac_cv_prog_cc_c89" != no
; then
8179 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
8180 $as_echo "yes" >&6; }
8182 $as_echo "#define PROTOTYPES 1" >>confdefs.h
8185 $as_echo "#define __PROTOTYPES 1" >>confdefs.h
8188 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8189 $as_echo "no" >&6; }
8192 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working volatile" >&5
8193 $as_echo_n "checking for working volatile... " >&6; }
8194 if ${ac_cv_c_volatile+:} false
; then :
8195 $as_echo_n "(cached) " >&6
8197 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
8198 /* end confdefs.h. */
8205 int * volatile y = (int *) 0;
8211 if ac_fn_c_try_compile
"$LINENO"; then :
8212 ac_cv_c_volatile
=yes
8216 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
8218 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_volatile" >&5
8219 $as_echo "$ac_cv_c_volatile" >&6; }
8220 if test $ac_cv_c_volatile = no
; then
8222 $as_echo "#define volatile /**/" >>confdefs.h
8226 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for an ANSI C-conforming const" >&5
8227 $as_echo_n "checking for an ANSI C-conforming const... " >&6; }
8228 if ${ac_cv_c_const+:} false
; then :
8229 $as_echo_n "(cached) " >&6
8231 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
8232 /* end confdefs.h. */
8237 /* FIXME: Include the comments suggested by Paul. */
8239 /* Ultrix mips cc rejects this. */
8240 typedef int charset[2];
8242 /* SunOS 4.1.1 cc rejects this. */
8243 char const *const *pcpcc;
8245 /* NEC SVR4.0.2 mips cc rejects this. */
8246 struct point {int x, y;};
8247 static struct point const zero = {0,0};
8248 /* AIX XL C 1.02.0.0 rejects this.
8249 It does not let you subtract one const X* pointer from another in
8250 an arm of an if-expression whose if-part is not a constant
8252 const char *g = "string";
8253 pcpcc = &g + (g ? g-g : 0);
8254 /* HPUX 7.0 cc rejects these. */
8256 ppc = (char**) pcpcc;
8257 pcpcc = (char const *const *) ppc;
8258 { /* SCO 3.2v4 cc rejects this. */
8260 char const *s = 0 ? (char *) 0 : (char const *) 0;
8265 { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
8267 const int *foo = &x[0];
8270 { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
8271 typedef const int *iptr;
8275 { /* AIX XL C 1.02.0.0 rejects this saying
8276 "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
8277 struct s { int j; const int *ap[3]; };
8278 struct s *b; b->j = 5;
8280 { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
8284 return !cs[0] && !zero.x;
8291 if ac_fn_c_try_compile
"$LINENO"; then :
8296 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
8298 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_const" >&5
8299 $as_echo "$ac_cv_c_const" >&6; }
8300 if test $ac_cv_c_const = no
; then
8302 $as_echo "#define const /**/" >>confdefs.h
8306 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for void * support" >&5
8307 $as_echo_n "checking for void * support... " >&6; }
8308 if ${emacs_cv_void_star+:} false
; then :
8309 $as_echo_n "(cached) " >&6
8311 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
8312 /* end confdefs.h. */
8322 if ac_fn_c_try_compile
"$LINENO"; then :
8323 emacs_cv_void_star
=yes
8325 emacs_cv_void_star
=no
8327 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
8329 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $emacs_cv_void_star" >&5
8330 $as_echo "$emacs_cv_void_star" >&6; }
8331 if test $emacs_cv_void_star = yes; then
8332 $as_echo "#define POINTER_TYPE void" >>confdefs.h
8335 $as_echo "#define POINTER_TYPE char" >>confdefs.h
8339 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether byte ordering is bigendian" >&5
8340 $as_echo_n "checking whether byte ordering is bigendian... " >&6; }
8341 if ${ac_cv_c_bigendian+:} false
; then :
8342 $as_echo_n "(cached) " >&6
8344 ac_cv_c_bigendian
=unknown
8345 # See if we're dealing with a universal compiler.
8346 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
8347 /* end confdefs.h. */
8348 #ifndef __APPLE_CC__
8349 not a universal capable compiler
8354 if ac_fn_c_try_compile
"$LINENO"; then :
8356 # Check for potential -arch flags. It is not universal unless
8357 # there are at least two -arch flags with different values.
8360 for ac_word
in $CC $CFLAGS $CPPFLAGS $LDFLAGS; do
8361 if test -n "$ac_prev"; then
8363 i?
86 | x86_64 | ppc | ppc64
)
8364 if test -z "$ac_arch" ||
test "$ac_arch" = "$ac_word"; then
8367 ac_cv_c_bigendian
=universal
8373 elif test "x$ac_word" = "x-arch"; then
8378 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
8379 if test $ac_cv_c_bigendian = unknown
; then
8380 # See if sys/param.h defines the BYTE_ORDER macro.
8381 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
8382 /* end confdefs.h. */
8383 #include <sys/types.h>
8384 #include <sys/param.h>
8389 #if ! (defined BYTE_ORDER && defined BIG_ENDIAN \
8390 && defined LITTLE_ENDIAN && BYTE_ORDER && BIG_ENDIAN \
8399 if ac_fn_c_try_compile
"$LINENO"; then :
8400 # It does; now see whether it defined to BIG_ENDIAN or not.
8401 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
8402 /* end confdefs.h. */
8403 #include <sys/types.h>
8404 #include <sys/param.h>
8409 #if BYTE_ORDER != BIG_ENDIAN
8417 if ac_fn_c_try_compile
"$LINENO"; then :
8418 ac_cv_c_bigendian
=yes
8420 ac_cv_c_bigendian
=no
8422 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
8424 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
8426 if test $ac_cv_c_bigendian = unknown
; then
8427 # See if <limits.h> defines _LITTLE_ENDIAN or _BIG_ENDIAN (e.g., Solaris).
8428 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
8429 /* end confdefs.h. */
8435 #if ! (defined _LITTLE_ENDIAN || defined _BIG_ENDIAN)
8443 if ac_fn_c_try_compile
"$LINENO"; then :
8444 # It does; now see whether it defined to _BIG_ENDIAN or not.
8445 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
8446 /* end confdefs.h. */
8460 if ac_fn_c_try_compile
"$LINENO"; then :
8461 ac_cv_c_bigendian
=yes
8463 ac_cv_c_bigendian
=no
8465 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
8467 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
8469 if test $ac_cv_c_bigendian = unknown
; then
8470 # Compile a test program.
8471 if test "$cross_compiling" = yes; then :
8472 # Try to guess by grepping values from an object file.
8473 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
8474 /* end confdefs.h. */
8475 short int ascii_mm[] =
8476 { 0x4249, 0x4765, 0x6E44, 0x6961, 0x6E53, 0x7953, 0 };
8477 short int ascii_ii[] =
8478 { 0x694C, 0x5454, 0x656C, 0x6E45, 0x6944, 0x6E61, 0 };
8479 int use_ascii (int i) {
8480 return ascii_mm[i] + ascii_ii[i];
8482 short int ebcdic_ii[] =
8483 { 0x89D3, 0xE3E3, 0x8593, 0x95C5, 0x89C4, 0x9581, 0 };
8484 short int ebcdic_mm[] =
8485 { 0xC2C9, 0xC785, 0x95C4, 0x8981, 0x95E2, 0xA8E2, 0 };
8486 int use_ebcdic (int i) {
8487 return ebcdic_mm[i] + ebcdic_ii[i];
8494 return use_ascii (foo) == use_ebcdic (foo);
8499 if ac_fn_c_try_compile
"$LINENO"; then :
8500 if grep BIGenDianSyS conftest.
$ac_objext >/dev
/null
; then
8501 ac_cv_c_bigendian
=yes
8503 if grep LiTTleEnDian conftest.
$ac_objext >/dev
/null
; then
8504 if test "$ac_cv_c_bigendian" = unknown
; then
8505 ac_cv_c_bigendian
=no
8507 # finding both strings is unlikely to happen, but who knows?
8508 ac_cv_c_bigendian
=unknown
8512 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
8514 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
8515 /* end confdefs.h. */
8516 $ac_includes_default
8521 /* Are we little or big endian? From Harbison&Steele. */
8525 char c[sizeof (long int)];
8528 return u.c[sizeof (long int) - 1] == 1;
8534 if ac_fn_c_try_run
"$LINENO"; then :
8535 ac_cv_c_bigendian
=no
8537 ac_cv_c_bigendian
=yes
8539 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
8540 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
8545 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_bigendian" >&5
8546 $as_echo "$ac_cv_c_bigendian" >&6; }
8547 case $ac_cv_c_bigendian in #(
8549 $as_echo "#define WORDS_BIGENDIAN 1" >>confdefs.h
8555 $as_echo "#define AC_APPLE_UNIVERSAL_BUILD 1" >>confdefs.h
8559 as_fn_error $?
"unknown endianness
8560 presetting ac_cv_c_bigendian=no (or yes) will help" "$LINENO" 5 ;;
8564 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for __attribute__ ((__aligned__ (expr)))" >&5
8565 $as_echo_n "checking for __attribute__ ((__aligned__ (expr)))... " >&6; }
8566 if ${emacs_cv_attribute_aligned+:} false
; then :
8567 $as_echo_n "(cached) " >&6
8569 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
8570 /* end confdefs.h. */
8571 char __attribute__ ((__aligned__ (1 << 3))) c;
8580 if ac_fn_c_try_compile
"$LINENO"; then :
8581 emacs_cv_attribute_aligned
=yes
8583 emacs_cv_attribute_aligned
=no
8585 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
8587 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $emacs_cv_attribute_aligned" >&5
8588 $as_echo "$emacs_cv_attribute_aligned" >&6; }
8589 if test $emacs_cv_attribute_aligned = yes; then
8591 $as_echo "#define HAVE_ATTRIBUTE_ALIGNED 1" >>confdefs.h
8595 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
8596 $as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
8598 ac_make
=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
8599 if eval \
${ac_cv_prog_make_${ac_make}_set+:} false
; then :
8600 $as_echo_n "(cached) " >&6
8602 cat >conftest.
make <<\_ACEOF
8605 @
echo '@@@%%%=$(MAKE)=@@@%%%'
8607 # GNU make sometimes prints "make[1]: Entering ...", which would confuse us.
8608 case `${MAKE-make} -f conftest.make 2>/dev/null` in
8610 eval ac_cv_prog_make_
${ac_make}_set
=yes;;
8612 eval ac_cv_prog_make_
${ac_make}_set
=no
;;
8616 if eval test \
$ac_cv_prog_make_${ac_make}_set
= yes; then
8617 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
8618 $as_echo "yes" >&6; }
8621 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8622 $as_echo "no" >&6; }
8623 SET_MAKE
="MAKE=${MAKE-make}"
8630 if test "$GCC" = yes && test "$ac_enable_autodepend" = yes; then
8631 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using GNU Make" >&5
8632 $as_echo_n "checking whether we are using GNU Make... " >&6; }
8634 testval
=`make --version 2>/dev/null | grep 'GNU Make'`
8635 if test "x$testval" != x
; then
8638 ac_enable_autodepend
=no
8640 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $HAVE_GNU_MAKE" >&5
8641 $as_echo "$HAVE_GNU_MAKE" >&6; }
8642 if test $HAVE_GNU_MAKE = yes; then
8643 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether gcc understands -MMD -MF" >&5
8644 $as_echo_n "checking whether gcc understands -MMD -MF... " >&6; }
8645 SAVE_CFLAGS
="$CFLAGS"
8646 CFLAGS
="$CFLAGS -MMD -MF deps.d"
8647 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
8648 /* end confdefs.h. */
8658 if ac_fn_c_try_compile
"$LINENO"; then :
8661 ac_enable_autodepend
=no
8663 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
8664 CFLAGS
="$SAVE_CFLAGS"
8665 test -f deps.d || ac_enable_autodepend
=no
8667 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_enable_autodepend" >&5
8668 $as_echo "$ac_enable_autodepend" >&6; }
8670 if test $ac_enable_autodepend = yes; then
8671 DEPFLAGS
='-MMD -MF ${DEPDIR}/$*.d'
8672 ## In parallel builds, another make might create depdir between
8673 ## the first test and mkdir, so stick another test on the end.
8674 ## Or use mkinstalldirs? mkdir -p is not portable.
8675 MKDEPDIR
='test -d ${DEPDIR} || mkdir ${DEPDIR} || test -d ${DEPDIR}'
8676 deps_frag
=autodeps.mk
8679 deps_frag
=$srcdir/src
/$deps_frag
8685 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for long file names" >&5
8686 $as_echo_n "checking for long file names... " >&6; }
8687 if ${ac_cv_sys_long_file_names+:} false
; then :
8688 $as_echo_n "(cached) " >&6
8690 ac_cv_sys_long_file_names
=yes
8691 # Test for long file names in all the places we know might matter:
8692 # . the current directory, where building will happen
8693 # $prefix/lib where we will be installing things
8694 # $exec_prefix/lib likewise
8695 # $TMPDIR if set, where it might want to write temporary files
8696 # /tmp where it might want to write temporary files
8699 for ac_dir
in .
"$TMPDIR" /tmp
/var
/tmp
/usr
/tmp
"$prefix/lib" "$exec_prefix/lib"; do
8700 # Skip $TMPDIR if it is empty or bogus, and skip $exec_prefix/lib
8701 # in the usual case where exec_prefix is '${prefix}'.
8703 . |
/* | ?
:[\\/]*) ;; #(
8706 test -w "$ac_dir/." ||
continue # It is less confusing to not echo anything here.
8707 ac_xdir
=$ac_dir/cf$$
8708 (umask 077 && mkdir
"$ac_xdir" 2>/dev
/null
) ||
continue
8709 ac_tf1
=$ac_xdir/conftest9012345
8710 ac_tf2
=$ac_xdir/conftest9012346
8711 touch "$ac_tf1" 2>/dev
/null
&& test -f "$ac_tf1" && test ! -f "$ac_tf2" ||
8712 ac_cv_sys_long_file_names
=no
8713 rm -f -r "$ac_xdir" 2>/dev
/null
8714 test $ac_cv_sys_long_file_names = no
&& break
8717 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_long_file_names" >&5
8718 $as_echo "$ac_cv_sys_long_file_names" >&6; }
8719 if test $ac_cv_sys_long_file_names = yes; then
8721 $as_echo "#define HAVE_LONG_FILE_NAMES 1" >>confdefs.h
8726 #### Choose a window system.
8728 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for X" >&5
8729 $as_echo_n "checking for X... " >&6; }
8732 # Check whether --with-x was given.
8733 if test "${with_x+set}" = set; then :
8737 # $have_x is `yes', `no', `disabled', or empty when we do not yet know.
8738 if test "x$with_x" = xno
; then
8739 # The user explicitly disabled X.
8742 case $x_includes,$x_libraries in #(
8743 *\'*) as_fn_error $?
"cannot use X directory names containing '" "$LINENO" 5;; #(
8744 *,NONE | NONE
,*) if ${ac_cv_have_x+:} false
; then :
8745 $as_echo_n "(cached) " >&6
8747 # One or both of the vars are not set, and there is no cached value.
8748 ac_x_includes
=no ac_x_libraries
=no
8749 rm -f -r conftest.dir
8750 if mkdir conftest.dir
; then
8752 cat >Imakefile
<<'_ACEOF'
8754 @echo incroot='${INCROOT}'
8756 @echo usrlibdir='${USRLIBDIR}'
8758 @echo libdir='${LIBDIR}'
8760 if (export CC
; ${XMKMF-xmkmf}) >/dev
/null
2>/dev
/null
&& test -f Makefile
; then
8761 # GNU make sometimes prints "make[1]: Entering ...", which would confuse us.
8762 for ac_var
in incroot usrlibdir libdir
; do
8763 eval "ac_im_$ac_var=\`\${MAKE-make} $ac_var 2>/dev/null | sed -n 's/^$ac_var=//p'\`"
8765 # Open Windows xmkmf reportedly sets LIBDIR instead of USRLIBDIR.
8766 for ac_extension
in a so sl dylib la dll
; do
8767 if test ! -f "$ac_im_usrlibdir/libX11.$ac_extension" &&
8768 test -f "$ac_im_libdir/libX11.$ac_extension"; then
8769 ac_im_usrlibdir
=$ac_im_libdir; break
8772 # Screen out bogus values from the imake configuration. They are
8773 # bogus both because they are the default anyway, and because
8774 # using them would break gcc on systems where it needs fixed includes.
8775 case $ac_im_incroot in
8776 /usr
/include
) ac_x_includes
= ;;
8777 *) test -f "$ac_im_incroot/X11/Xos.h" && ac_x_includes
=$ac_im_incroot;;
8779 case $ac_im_usrlibdir in
8780 /usr
/lib |
/usr
/lib64 |
/lib |
/lib64
) ;;
8781 *) test -d "$ac_im_usrlibdir" && ac_x_libraries
=$ac_im_usrlibdir ;;
8785 rm -f -r conftest.dir
8788 # Standard set of common directories for X headers.
8789 # Check X11 before X11Rn because it is often a symlink to the current release.
8803 /usr/local/X11/include
8804 /usr/local/X11R7/include
8805 /usr/local/X11R6/include
8806 /usr/local/X11R5/include
8807 /usr/local/X11R4/include
8809 /usr/local/include/X11
8810 /usr/local/include/X11R7
8811 /usr/local/include/X11R6
8812 /usr/local/include/X11R5
8813 /usr/local/include/X11R4
8817 /usr/XFree86/include/X11
8821 /usr/unsupported/include
8823 /usr/local/x11r5/include
8824 /usr/lpp/Xamples/include
8826 /usr/openwin/include
8827 /usr/openwin/share/include'
8829 if test "$ac_x_includes" = no
; then
8830 # Guess where to find include files, by looking for Xlib.h.
8831 # First, try using that file with no special directory specified.
8832 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
8833 /* end confdefs.h. */
8834 #include <X11/Xlib.h>
8836 if ac_fn_c_try_cpp
"$LINENO"; then :
8837 # We can compile using X headers with no special include directory.
8840 for ac_dir
in $ac_x_header_dirs; do
8841 if test -r "$ac_dir/X11/Xlib.h"; then
8842 ac_x_includes
=$ac_dir
8847 rm -f conftest.err conftest.i conftest.
$ac_ext
8848 fi # $ac_x_includes = no
8850 if test "$ac_x_libraries" = no
; then
8851 # Check for the libraries.
8852 # See if we find them without any special options.
8853 # Don't add to $LIBS permanently.
8856 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
8857 /* end confdefs.h. */
8858 #include <X11/Xlib.h>
8867 if ac_fn_c_try_link
"$LINENO"; then :
8869 # We can link X programs with no special library path.
8873 for ac_dir
in `$as_echo "$ac_x_includes $ac_x_header_dirs" | sed s/include/lib/g`
8875 # Don't even attempt the hair of trying to link an X program!
8876 for ac_extension
in a so sl dylib la dll
; do
8877 if test -r "$ac_dir/libX11.$ac_extension"; then
8878 ac_x_libraries
=$ac_dir
8884 rm -f core conftest.err conftest.
$ac_objext \
8885 conftest
$ac_exeext conftest.
$ac_ext
8886 fi # $ac_x_libraries = no
8888 case $ac_x_includes,$ac_x_libraries in #(
8890 # Didn't find X, or a directory has "'" in its name.
8891 ac_cv_have_x
="have_x=no";; #(
8893 # Record where we found X for the cache.
8894 ac_cv_have_x
="have_x=yes\
8895 ac_x_includes='$ac_x_includes'\
8896 ac_x_libraries='$ac_x_libraries'"
8902 eval "$ac_cv_have_x"
8905 if test "$have_x" != yes; then
8906 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_x" >&5
8907 $as_echo "$have_x" >&6; }
8910 # If each of the values was on the command line, it overrides each guess.
8911 test "x$x_includes" = xNONE
&& x_includes
=$ac_x_includes
8912 test "x$x_libraries" = xNONE
&& x_libraries
=$ac_x_libraries
8913 # Update the cache value to reflect the command line values.
8914 ac_cv_have_x
="have_x=yes\
8915 ac_x_includes='$x_includes'\
8916 ac_x_libraries='$x_libraries'"
8917 { $as_echo "$as_me:${as_lineno-$LINENO}: result: libraries $x_libraries, headers $x_includes" >&5
8918 $as_echo "libraries $x_libraries, headers $x_includes" >&6; }
8921 if test "$no_x" = yes; then
8927 ## Workaround for bug in autoconf <= 2.62.
8928 ## http://lists.gnu.org/archive/html/emacs-devel/2008-04/msg01551.html
8929 ## No need to do anything special for these standard directories.
8930 if test -n "${x_libraries}" && test x
"${x_libraries}" != xNONE
; then
8932 x_libraries
=`echo :${x_libraries}: | sed -e 's|:/usr/lib64:|:|g' -e 's|:/lib64:|:|g' -e 's|^:||' -e 's|:$||'`
8936 LD_SWITCH_X_SITE_AUX
=
8937 LD_SWITCH_X_SITE_AUX_RPATH
=
8938 if test "${x_libraries}" != NONE
; then
8939 if test -n "${x_libraries}"; then
8940 LD_SWITCH_X_SITE
=-L`echo ${x_libraries} | sed -e "s/:/ -L/g"`
8941 LD_SWITCH_X_SITE_AUX
=-R`echo ${x_libraries} | sed -e "s/:/ -R/g"`
8942 LD_SWITCH_X_SITE_AUX_RPATH
=`echo ${LD_SWITCH_X_SITE_AUX} | sed -e 's/-R/-Wl,-rpath,/'`
8944 x_default_search_path
=""
8945 x_search_path
=${x_libraries}
8946 if test -z "${x_search_path}"; then
8947 x_search_path
=/usr
/lib
8949 for x_library
in `echo ${x_search_path}: | \
8950 sed -e "s/:/ /g" -e p -e "s:/lib[^ /]* :/share :g"`; do
8952 ${x_library}/X11/%L/%T/%N%C%S:\
8953 ${x_library}/X11/%l/%T/%N%C%S:\
8954 ${x_library}/X11/%T/%N%C%S:\
8955 ${x_library}/X11/%L/%T/%N%S:\
8956 ${x_library}/X11/%l/%T/%N%S:\
8957 ${x_library}/X11/%T/%N%S"
8958 if test x
"${x_default_search_path}" = x
; then
8959 x_default_search_path
=${x_search_path}
8961 x_default_search_path
="${x_search_path}:${x_default_search_path}"
8968 if test "${x_includes}" != NONE
&& test -n "${x_includes}"; then
8969 C_SWITCH_X_SITE
=-I`echo ${x_includes} | sed -e "s/:/ -I/g"`
8972 if test x
"${x_includes}" = x
; then
8973 bitmapdir
=/usr
/include
/X11
/bitmaps
8975 # accumulate include directories that have X11 bitmap subdirectories
8977 for bmd
in `echo ${x_includes} | sed -e "s/:/ /g"`; do
8978 if test -d "${bmd}/X11/bitmaps"; then
8979 bmd_acc
="${bmd_acc}:${bmd}/X11/bitmaps"
8981 if test -d "${bmd}/bitmaps"; then
8982 bmd_acc
="${bmd_acc}:${bmd}/bitmaps"
8985 if test ${bmd_acc} != "dummyval"; then
8986 bitmapdir
=`echo ${bmd_acc} | sed -e "s/^dummyval://"`
8993 tmp_CPPFLAGS
="$CPPFLAGS"
8994 tmp_CFLAGS
="$CFLAGS"
8995 CPPFLAGS
="$CPPFLAGS -x objective-c"
8996 CFLAGS
="$CFLAGS -x objective-c"
8997 TEMACS_LDFLAGS2
="\${LDFLAGS}"
8998 if test "${with_ns}" != no
; then
8999 if test "${opsys}" = darwin
; then
9001 ns_appdir
=`pwd`/nextstep
/Emacs.app
9002 ns_appbindir
=${ns_appdir}/Contents
/MacOS
/
9003 ns_appresdir
=${ns_appdir}/Contents
/Resources
9004 ns_appsrc
=${srcdir}/nextstep
/Cocoa
/Emacs.base
9005 elif test -f $GNUSTEP_CONFIG_FILE; then
9007 ns_appdir
=`pwd`/nextstep
/Emacs.app
9008 ns_appbindir
=${ns_appdir}/
9009 ns_appresdir
=${ns_appdir}/Resources
9010 ns_appsrc
=${srcdir}/nextstep
/GNUstep
/Emacs.base
9011 GNUSTEP_SYSTEM_HEADERS
="$(. $GNUSTEP_CONFIG_FILE; echo $GNUSTEP_SYSTEM_HEADERS)"
9012 GNUSTEP_SYSTEM_LIBRARIES
="$(. $GNUSTEP_CONFIG_FILE; echo $GNUSTEP_SYSTEM_LIBRARIES)"
9013 GNUSTEP_LOCAL_HEADERS
="$(. $GNUSTEP_CONFIG_FILE; echo $GNUSTEP_LOCAL_HEADERS)"
9014 GNUSTEP_LOCAL_LIBRARIES
="$(. $GNUSTEP_CONFIG_FILE; echo $GNUSTEP_LOCAL_LIBRARIES)"
9015 test "x${GNUSTEP_LOCAL_HEADERS}" != "x" && \
9016 GNUSTEP_LOCAL_HEADERS
="-I${GNUSTEP_LOCAL_HEADERS}"
9017 test "x${GNUSTEP_LOCAL_LIBRARIES}" != "x" && \
9018 GNUSTEP_LOCAL_LIBRARIES
="-L${GNUSTEP_LOCAL_LIBRARIES}"
9019 CPPFLAGS
="$CPPFLAGS -I${GNUSTEP_SYSTEM_HEADERS} ${GNUSTEP_LOCAL_HEADERS}"
9020 CFLAGS
="$CFLAGS -I${GNUSTEP_SYSTEM_HEADERS} ${GNUSTEP_LOCAL_HEADERS}"
9021 LDFLAGS
="$LDFLAGS -L${GNUSTEP_SYSTEM_LIBRARIES} ${GNUSTEP_LOCAL_LIBRARIES}"
9026 ac_fn_c_check_header_mongrel
"$LINENO" "AppKit/AppKit.h" "ac_cv_header_AppKit_AppKit_h" "$ac_includes_default"
9027 if test "x$ac_cv_header_AppKit_AppKit_h" = xyes
; then :
9030 as_fn_error $?
"\`--with-ns' was specified, but the include
9031 files are missing or cannot be compiled." "$LINENO" 5
9035 NS_HAVE_NSINTEGER
=yes
9036 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
9037 /* end confdefs.h. */
9038 #include <Foundation/NSObjCRuntime.h>
9047 if ac_fn_c_try_compile
"$LINENO"; then :
9048 ns_have_nsinteger
=yes
9050 ns_have_nsinteger
=no
9052 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
9053 if test $ns_have_nsinteger = no
; then
9054 NS_HAVE_NSINTEGER
=no
9063 if test "${HAVE_NS}" = yes; then
9064 window_system
=nextstep
9066 # set up packaging dirs
9067 exec_prefix
=${ns_appbindir}
9068 libexecdir
=${ns_appbindir}/libexec
9069 if test "${EN_NS_SELF_CONTAINED}" = yes; then
9070 prefix
=${ns_appresdir}
9072 ns_frag
=$srcdir/src
/ns.mk
9073 NS_OBJ
="fontset.o fringe.o image.o"
9074 NS_OBJC_OBJ
="nsterm.o nsfns.o nsmenu.o nsselect.o nsimage.o nsfont.o"
9075 NS_SUPPORT
="\${lispsource}/emacs-lisp/easymenu.elc \${lispsource}/term/ns-win.elc"
9077 CFLAGS
="$tmp_CFLAGS"
9078 CPPFLAGS
="$tmp_CPPFLAGS"
9085 case "${window_system}" in
9089 case "${with_x_toolkit}" in
9090 athena | lucid
) USE_X_TOOLKIT
=LUCID
;;
9091 motif
) USE_X_TOOLKIT
=MOTIF
;;
9093 USE_X_TOOLKIT
=none
;;
9094 gtk3
) with_gtk3
=yes
9095 USE_X_TOOLKIT
=none
;;
9096 no
) USE_X_TOOLKIT
=none
;;
9097 * ) USE_X_TOOLKIT
=maybe
;;
9107 if test "$window_system" = none
&& test "X$with_x" != "Xno"; then
9108 # Extract the first word of "X", so it can be a program name with args.
9109 set dummy X
; ac_word
=$2
9110 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9111 $as_echo_n "checking for $ac_word... " >&6; }
9112 if ${ac_cv_prog_HAVE_XSERVER+:} false
; then :
9113 $as_echo_n "(cached) " >&6
9115 if test -n "$HAVE_XSERVER"; then
9116 ac_cv_prog_HAVE_XSERVER
="$HAVE_XSERVER" # Let the user override the test.
9118 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
9122 test -z "$as_dir" && as_dir
=.
9123 for ac_exec_ext
in '' $ac_executable_extensions; do
9124 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9125 ac_cv_prog_HAVE_XSERVER
="true"
9126 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9133 test -z "$ac_cv_prog_HAVE_XSERVER" && ac_cv_prog_HAVE_XSERVER
="false"
9136 HAVE_XSERVER
=$ac_cv_prog_HAVE_XSERVER
9137 if test -n "$HAVE_XSERVER"; then
9138 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $HAVE_XSERVER" >&5
9139 $as_echo "$HAVE_XSERVER" >&6; }
9141 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9142 $as_echo "no" >&6; }
9146 if test "$HAVE_XSERVER" = true ||
9147 test -n "$DISPLAY" ||
9148 test "`echo /usr/lib/libX11.*`" != "/usr/lib/libX11.*"; then
9149 as_fn_error $?
"You seem to be running X, but no X development libraries
9150 were found. You should install the relevant development files for X
9151 and for the toolkit you want, such as Gtk+, Lesstif or Motif. Also make
9152 sure you have development files for image handling, i.e.
9153 tiff, gif, jpeg, png and xpm.
9154 If you are sure you want Emacs compiled without X window support, pass
9156 to configure." "$LINENO" 5
9160 ### If we're using X11, we should use the X menu package.
9163 yes ) HAVE_MENUS
=yes ;;
9166 # Do the opsystem or machine files prohibit the use of the GNU malloc?
9167 # Assume not, until told otherwise.
9170 ac_fn_c_check_func
"$LINENO" "malloc_get_state" "ac_cv_func_malloc_get_state"
9171 if test "x$ac_cv_func_malloc_get_state" = xyes
; then :
9177 ac_fn_c_check_func
"$LINENO" "malloc_set_state" "ac_cv_func_malloc_set_state"
9178 if test "x$ac_cv_func_malloc_set_state" = xyes
; then :
9184 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether __after_morecore_hook exists" >&5
9185 $as_echo_n "checking whether __after_morecore_hook exists... " >&6; }
9186 if ${emacs_cv_var___after_morecore_hook+:} false
; then :
9187 $as_echo_n "(cached) " >&6
9189 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
9190 /* end confdefs.h. */
9191 extern void (* __after_morecore_hook)();
9195 __after_morecore_hook = 0
9200 if ac_fn_c_try_link
"$LINENO"; then :
9201 emacs_cv_var___after_morecore_hook
=yes
9203 emacs_cv_var___after_morecore_hook
=no
9205 rm -f core conftest.err conftest.
$ac_objext \
9206 conftest
$ac_exeext conftest.
$ac_ext
9208 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $emacs_cv_var___after_morecore_hook" >&5
9209 $as_echo "$emacs_cv_var___after_morecore_hook" >&6; }
9210 if test $emacs_cv_var___after_morecore_hook = no
; then
9217 ## darwin ld insists on the use of malloc routines in the System framework.
9218 darwin|sol2-10
) system_malloc
=yes ;;
9221 if test "${system_malloc}" = "yes"; then
9223 $as_echo "#define SYSTEM_MALLOC 1" >>confdefs.h
9227 (The GNU allocators don't work with this system configuration.)"
9231 test "$doug_lea_malloc" != "yes" && GMALLOC_OBJ
=gmalloc.o
9232 VMLIMIT_OBJ
=vm-limit.o
9237 if test "$doug_lea_malloc" = "yes" ; then
9238 if test "$GNU_MALLOC" = yes ; then
9240 (Using Doug Lea's new malloc from the GNU C Library.)"
9243 $as_echo "#define DOUG_LEA_MALLOC 1" >>confdefs.h
9246 ## Use mmap directly for allocating larger buffers.
9247 ## FIXME this comes from src/s/{gnu,gnu-linux}.h:
9248 ## #ifdef DOUG_LEA_MALLOC; #undef REL_ALLOC; #endif
9249 ## Does the AC_FUNC_MMAP test below make this check unecessary?
9251 gnu
*) REL_ALLOC
=no
;;
9255 if test x
"${REL_ALLOC}" = x
; then
9256 REL_ALLOC
=${GNU_MALLOC}
9259 use_mmap_for_buffers
=no
9261 freebsd|irix6-5
) use_mmap_for_buffers
=yes ;;
9267 for ac_header
in $ac_header_list
9269 as_ac_Header
=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
9270 ac_fn_c_check_header_compile
"$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
9272 if eval test \"x\$
"$as_ac_Header"\" = x
"yes"; then :
9273 cat >>confdefs.h
<<_ACEOF
9274 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
9288 for ac_func
in getpagesize
9290 ac_fn_c_check_func
"$LINENO" "getpagesize" "ac_cv_func_getpagesize"
9291 if test "x$ac_cv_func_getpagesize" = xyes
; then :
9292 cat >>confdefs.h
<<_ACEOF
9293 #define HAVE_GETPAGESIZE 1
9299 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working mmap" >&5
9300 $as_echo_n "checking for working mmap... " >&6; }
9301 if ${ac_cv_func_mmap_fixed_mapped+:} false
; then :
9302 $as_echo_n "(cached) " >&6
9304 if test "$cross_compiling" = yes; then :
9305 ac_cv_func_mmap_fixed_mapped
=no
9307 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
9308 /* end confdefs.h. */
9309 $ac_includes_default
9310 /* malloc might have been renamed as rpl_malloc. */
9313 /* Thanks to Mike Haertel and Jim Avera for this test.
9314 Here is a matrix of mmap possibilities:
9315 mmap private not fixed
9316 mmap private fixed at somewhere currently unmapped
9317 mmap private fixed at somewhere already mapped
9318 mmap shared not fixed
9319 mmap shared fixed at somewhere currently unmapped
9320 mmap shared fixed at somewhere already mapped
9321 For private mappings, we should verify that changes cannot be read()
9322 back from the file, nor mmap's back from the file at a different
9323 address. (There have been systems where private was not correctly
9324 implemented like the infamous i386 svr4.0, and systems where the
9325 VM page cache was not coherent with the file system buffer cache
9326 like early versions of FreeBSD and possibly contemporary NetBSD.)
9327 For shared mappings, we should conversely verify that changes get
9328 propagated back to all the places they're supposed to be.
9330 Grep wants private fixed already mapped.
9331 The main things grep needs to know about mmap are:
9332 * does it exist and is it safe to write into the mmap'd area
9333 * how to use it (BSD variants) */
9336 #include <sys/mman.h>
9338 #if !defined STDC_HEADERS && !defined HAVE_STDLIB_H
9342 /* This mess was copied from the GNU getpagesize.h. */
9343 #ifndef HAVE_GETPAGESIZE
9344 # ifdef _SC_PAGESIZE
9345 # define getpagesize() sysconf(_SC_PAGESIZE)
9346 # else /* no _SC_PAGESIZE */
9347 # ifdef HAVE_SYS_PARAM_H
9348 # include <sys/param.h>
9349 # ifdef EXEC_PAGESIZE
9350 # define getpagesize() EXEC_PAGESIZE
9351 # else /* no EXEC_PAGESIZE */
9353 # define getpagesize() NBPG * CLSIZE
9356 # endif /* no CLSIZE */
9357 # else /* no NBPG */
9359 # define getpagesize() NBPC
9360 # else /* no NBPC */
9362 # define getpagesize() PAGESIZE
9363 # endif /* PAGESIZE */
9364 # endif /* no NBPC */
9365 # endif /* no NBPG */
9366 # endif /* no EXEC_PAGESIZE */
9367 # else /* no HAVE_SYS_PARAM_H */
9368 # define getpagesize() 8192 /* punt totally */
9369 # endif /* no HAVE_SYS_PARAM_H */
9370 # endif /* no _SC_PAGESIZE */
9372 #endif /* no HAVE_GETPAGESIZE */
9377 char *data, *data2, *data3;
9382 pagesize = getpagesize ();
9384 /* First, make a file with some known garbage in it. */
9385 data = (char *) malloc (pagesize);
9388 for (i = 0; i < pagesize; ++i)
9389 *(data + i) = rand ();
9391 fd = creat ("conftest.mmap", 0600);
9394 if (write (fd, data, pagesize) != pagesize)
9398 /* Next, check that the tail of a page is zero-filled. File must have
9399 non-zero length, otherwise we risk SIGBUS for entire page. */
9400 fd2 = open ("conftest.txt", O_RDWR | O_CREAT | O_TRUNC, 0600);
9404 if (write (fd2, cdata2, 1) != 1)
9406 data2 = (char *) mmap (0, pagesize, PROT_READ | PROT_WRITE, MAP_SHARED, fd2, 0L);
9407 if (data2 == MAP_FAILED)
9409 for (i = 0; i < pagesize; ++i)
9413 if (munmap (data2, pagesize))
9416 /* Next, try to mmap the file at a fixed address which already has
9417 something else allocated at it. If we can, also make sure that
9418 we see the same garbage. */
9419 fd = open ("conftest.mmap", O_RDWR);
9422 if (data2 != mmap (data2, pagesize, PROT_READ | PROT_WRITE,
9423 MAP_PRIVATE | MAP_FIXED, fd, 0L))
9425 for (i = 0; i < pagesize; ++i)
9426 if (*(data + i) != *(data2 + i))
9429 /* Finally, make sure that changes to the mapped area do not
9430 percolate back to the file as seen by read(). (This is a bug on
9431 some variants of i386 svr4.0.) */
9432 for (i = 0; i < pagesize; ++i)
9433 *(data2 + i) = *(data2 + i) + 1;
9434 data3 = (char *) malloc (pagesize);
9437 if (read (fd, data3, pagesize) != pagesize)
9439 for (i = 0; i < pagesize; ++i)
9440 if (*(data + i) != *(data3 + i))
9446 if ac_fn_c_try_run
"$LINENO"; then :
9447 ac_cv_func_mmap_fixed_mapped
=yes
9449 ac_cv_func_mmap_fixed_mapped
=no
9451 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
9452 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
9456 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_mmap_fixed_mapped" >&5
9457 $as_echo "$ac_cv_func_mmap_fixed_mapped" >&6; }
9458 if test $ac_cv_func_mmap_fixed_mapped = yes; then
9460 $as_echo "#define HAVE_MMAP 1" >>confdefs.h
9463 rm -f conftest.mmap conftest.txt
9465 if test $use_mmap_for_buffers = yes; then
9467 $as_echo "#define USE_MMAP_FOR_BUFFERS 1" >>confdefs.h
9472 LIBS
="$LIBS_SYSTEM $LIBS"
9474 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dnet_ntoa in -ldnet" >&5
9475 $as_echo_n "checking for dnet_ntoa in -ldnet... " >&6; }
9476 if ${ac_cv_lib_dnet_dnet_ntoa+:} false
; then :
9477 $as_echo_n "(cached) " >&6
9479 ac_check_lib_save_LIBS
=$LIBS
9481 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
9482 /* end confdefs.h. */
9484 /* Override any GCC internal prototype to avoid an error.
9485 Use char because int might match the return type of a GCC
9486 builtin and then its argument prototype would still apply. */
9494 return dnet_ntoa ();
9499 if ac_fn_c_try_link
"$LINENO"; then :
9500 ac_cv_lib_dnet_dnet_ntoa
=yes
9502 ac_cv_lib_dnet_dnet_ntoa
=no
9504 rm -f core conftest.err conftest.
$ac_objext \
9505 conftest
$ac_exeext conftest.
$ac_ext
9506 LIBS
=$ac_check_lib_save_LIBS
9508 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dnet_dnet_ntoa" >&5
9509 $as_echo "$ac_cv_lib_dnet_dnet_ntoa" >&6; }
9510 if test "x$ac_cv_lib_dnet_dnet_ntoa" = xyes
; then :
9511 cat >>confdefs.h
<<_ACEOF
9512 #define HAVE_LIBDNET 1
9520 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for main in -lXbsd" >&5
9521 $as_echo_n "checking for main in -lXbsd... " >&6; }
9522 if ${ac_cv_lib_Xbsd_main+:} false
; then :
9523 $as_echo_n "(cached) " >&6
9525 ac_check_lib_save_LIBS
=$LIBS
9527 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
9528 /* end confdefs.h. */
9539 if ac_fn_c_try_link
"$LINENO"; then :
9540 ac_cv_lib_Xbsd_main
=yes
9542 ac_cv_lib_Xbsd_main
=no
9544 rm -f core conftest.err conftest.
$ac_objext \
9545 conftest
$ac_exeext conftest.
$ac_ext
9546 LIBS
=$ac_check_lib_save_LIBS
9548 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_Xbsd_main" >&5
9549 $as_echo "$ac_cv_lib_Xbsd_main" >&6; }
9550 if test "x$ac_cv_lib_Xbsd_main" = xyes
; then :
9551 LD_SWITCH_X_SITE
="$LD_SWITCH_X_SITE -lXbsd"
9555 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for cma_open in -lpthreads" >&5
9556 $as_echo_n "checking for cma_open in -lpthreads... " >&6; }
9557 if ${ac_cv_lib_pthreads_cma_open+:} false
; then :
9558 $as_echo_n "(cached) " >&6
9560 ac_check_lib_save_LIBS
=$LIBS
9561 LIBS
="-lpthreads $LIBS"
9562 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
9563 /* end confdefs.h. */
9565 /* Override any GCC internal prototype to avoid an error.
9566 Use char because int might match the return type of a GCC
9567 builtin and then its argument prototype would still apply. */
9580 if ac_fn_c_try_link
"$LINENO"; then :
9581 ac_cv_lib_pthreads_cma_open
=yes
9583 ac_cv_lib_pthreads_cma_open
=no
9585 rm -f core conftest.err conftest.
$ac_objext \
9586 conftest
$ac_exeext conftest.
$ac_ext
9587 LIBS
=$ac_check_lib_save_LIBS
9589 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_pthreads_cma_open" >&5
9590 $as_echo "$ac_cv_lib_pthreads_cma_open" >&6; }
9591 if test "x$ac_cv_lib_pthreads_cma_open" = xyes
; then :
9592 cat >>confdefs.h
<<_ACEOF
9593 #define HAVE_LIBPTHREADS 1
9596 LIBS
="-lpthreads $LIBS"
9601 ## Note: when using cpp in s/aix4.2.h, this definition depended on
9602 ## HAVE_LIBPTHREADS. That was not defined earlier in configure when
9603 ## the system file was sourced. Hence the value of LIBS_SYSTEM
9604 ## added to LIBS in configure would never contain the pthreads part,
9605 ## but the value used in Makefiles might. FIXME?
9607 ## -lpthreads seems to be necessary for Xlib in X11R6, and should
9608 ## be harmless on older versions of X where it happens to exist.
9609 test "$opsys" = "aix4-2" && \
9610 test $ac_cv_lib_pthreads_cma_open = yes && \
9611 LIBS_SYSTEM
="$LIBS_SYSTEM -lpthreads"
9616 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -bbigtoc option" >&5
9617 $as_echo_n "checking for -bbigtoc option... " >&6; }
9618 if ${gdb_cv_bigtoc+:} false
; then :
9619 $as_echo_n "(cached) " >&6
9623 yes) gdb_cv_bigtoc
=-Wl,-bbigtoc ;;
9624 *) gdb_cv_bigtoc
=-bbigtoc ;;
9627 LDFLAGS
=$LDFLAGS\
$gdb_cv_bigtoc
9628 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
9629 /* end confdefs.h. */
9639 if ac_fn_c_try_link
"$LINENO"; then :
9644 rm -f core conftest.err conftest.
$ac_objext \
9645 conftest
$ac_exeext conftest.
$ac_ext
9648 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gdb_cv_bigtoc" >&5
9649 $as_echo "$gdb_cv_bigtoc" >&6; }
9653 # Change CFLAGS and CPPFLAGS temporarily so that C_SWITCH_X_SITE gets
9654 # used for the tests that follow. We set them back to REAL_CFLAGS and
9655 # REAL_CPPFLAGS later on.
9657 REAL_CFLAGS
="$CFLAGS"
9658 REAL_CPPFLAGS
="$CPPFLAGS"
9660 if test "${HAVE_X11}" = "yes"; then
9661 DEFS
="$C_SWITCH_X_SITE $DEFS"
9662 LDFLAGS
="$LDFLAGS $LD_SWITCH_X_SITE"
9664 CFLAGS
="$C_SWITCH_X_SITE $CFLAGS"
9665 CPPFLAGS
="$C_SWITCH_X_SITE $CPPFLAGS"
9667 # On Solaris, arrange for LD_RUN_PATH to point to the X libraries for tests.
9668 # This is handled by LD_SWITCH_X_SITE_AUX during the real build,
9669 # but it's more convenient here to set LD_RUN_PATH
9670 # since this also works on hosts that don't understand LD_SWITCH_X_SITE_AUX.
9671 if test "${x_libraries}" != NONE
&& test -n "${x_libraries}"; then
9672 LD_RUN_PATH
=$x_libraries${LD_RUN_PATH+:}$LD_RUN_PATH
9676 if test "${opsys}" = "gnu-linux"; then
9677 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether X on GNU/Linux needs -b to link" >&5
9678 $as_echo_n "checking whether X on GNU/Linux needs -b to link... " >&6; }
9679 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
9680 /* end confdefs.h. */
9685 XOpenDisplay ("foo");
9690 if ac_fn_c_try_link
"$LINENO"; then :
9691 xlinux_first_failure
=no
9693 xlinux_first_failure
=yes
9695 rm -f core conftest.err conftest.
$ac_objext \
9696 conftest
$ac_exeext conftest.
$ac_ext
9697 if test "${xlinux_first_failure}" = "yes"; then
9698 OLD_LD_SWITCH_X_SITE
="$LD_SWITCH_X_SITE"
9699 OLD_C_SWITCH_X_SITE
="$C_SWITCH_X_SITE"
9700 OLD_CPPFLAGS
="$CPPFLAGS"
9702 LD_SWITCH_X_SITE
="$LD_SWITCH_X_SITE -b i486-linuxaout"
9703 C_SWITCH_X_SITE
="$C_SWITCH_X_SITE -b i486-linuxaout"
9704 CPPFLAGS
="$CPPFLAGS -b i486-linuxaout"
9705 LIBS
="$LIBS -b i486-linuxaout"
9706 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
9707 /* end confdefs.h. */
9712 XOpenDisplay ("foo");
9717 if ac_fn_c_try_link
"$LINENO"; then :
9718 xlinux_second_failure
=no
9720 xlinux_second_failure
=yes
9722 rm -f core conftest.err conftest.
$ac_objext \
9723 conftest
$ac_exeext conftest.
$ac_ext
9724 if test "${xlinux_second_failure}" = "yes"; then
9725 # If we get the same failure with -b, there is no use adding -b.
9726 # So take it out. This plays safe.
9727 LD_SWITCH_X_SITE
="$OLD_LD_SWITCH_X_SITE"
9728 C_SWITCH_X_SITE
="$OLD_C_SWITCH_X_SITE"
9729 CPPFLAGS
="$OLD_CPPFLAGS"
9731 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9732 $as_echo "no" >&6; }
9734 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
9735 $as_echo "yes" >&6; }
9738 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9739 $as_echo "no" >&6; }
9743 # Reportedly, some broken Solaris systems have XKBlib.h but are missing
9744 # header files included from there.
9745 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Xkb" >&5
9746 $as_echo_n "checking for Xkb... " >&6; }
9747 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
9748 /* end confdefs.h. */
9749 #include <X11/Xlib.h>
9750 #include <X11/XKBlib.h>
9754 XkbDescPtr kb = XkbGetKeyboard (0, XkbAllComponentsMask, XkbUseCoreKbd);
9759 if ac_fn_c_try_link
"$LINENO"; then :
9764 rm -f core conftest.err conftest.
$ac_objext \
9765 conftest
$ac_exeext conftest.
$ac_ext
9766 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $emacs_xkb" >&5
9767 $as_echo "$emacs_xkb" >&6; }
9768 if test $emacs_xkb = yes; then
9770 $as_echo "#define HAVE_XKBGETKEYBOARD 1" >>confdefs.h
9774 for ac_func
in XrmSetDatabase XScreenResourceString \
9775 XScreenNumberOfScreen XSetWMProtocols
9777 as_ac_var
=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
9778 ac_fn_c_check_func
"$LINENO" "$ac_func" "$as_ac_var"
9779 if eval test \"x\$
"$as_ac_var"\" = x
"yes"; then :
9780 cat >>confdefs.h
<<_ACEOF
9781 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
9789 if test "${window_system}" = "x11"; then
9790 { $as_echo "$as_me:${as_lineno-$LINENO}: checking X11 version 6" >&5
9791 $as_echo_n "checking X11 version 6... " >&6; }
9792 if ${emacs_cv_x11_version_6+:} false
; then :
9793 $as_echo_n "(cached) " >&6
9795 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
9796 /* end confdefs.h. */
9797 #include <X11/Xlib.h>
9801 #if XlibSpecificationRelease < 6
9809 if ac_fn_c_try_link
"$LINENO"; then :
9810 emacs_cv_x11_version_6
=yes
9812 emacs_cv_x11_version_6
=no
9814 rm -f core conftest.err conftest.
$ac_objext \
9815 conftest
$ac_exeext conftest.
$ac_ext
9818 if test $emacs_cv_x11_version_6 = yes; then
9819 { $as_echo "$as_me:${as_lineno-$LINENO}: result: 6 or newer" >&5
9820 $as_echo "6 or newer" >&6; }
9822 $as_echo "#define HAVE_X11R6 1" >>confdefs.h
9825 $as_echo "#define HAVE_X_I18N 1" >>confdefs.h
9827 ## inoue@ainet.or.jp says Solaris has a bug related to X11R6-style
9832 $as_echo "#define HAVE_X11R6_XIM 1" >>confdefs.h
9837 { $as_echo "$as_me:${as_lineno-$LINENO}: result: before 6" >&5
9838 $as_echo "before 6" >&6; }
9843 ### Use -lrsvg-2 if available, unless `--with-rsvg=no' is specified.
9845 if test "${HAVE_X11}" = "yes" ||
test "${NS_IMPL_GNUSTEP}" = "yes"; then
9846 if test "${with_rsvg}" != "no"; then
9847 RSVG_REQUIRED
=2.11.0
9848 RSVG_MODULE
="librsvg-2.0 >= $RSVG_REQUIRED"
9853 # Extract the first word of "pkg-config", so it can be a program name with args.
9854 set dummy pkg-config
; ac_word
=$2
9855 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9856 $as_echo_n "checking for $ac_word... " >&6; }
9857 if ${ac_cv_path_PKG_CONFIG+:} false
; then :
9858 $as_echo_n "(cached) " >&6
9862 ac_cv_path_PKG_CONFIG
="$PKG_CONFIG" # Let the user override the test with a path.
9865 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
9869 test -z "$as_dir" && as_dir
=.
9870 for ac_exec_ext
in '' $ac_executable_extensions; do
9871 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9872 ac_cv_path_PKG_CONFIG
="$as_dir/$ac_word$ac_exec_ext"
9873 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9880 test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG
="no"
9884 PKG_CONFIG
=$ac_cv_path_PKG_CONFIG
9885 if test -n "$PKG_CONFIG"; then
9886 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5
9887 $as_echo "$PKG_CONFIG" >&6; }
9889 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9890 $as_echo "no" >&6; }
9895 if test "$PKG_CONFIG" = "no" ; then
9898 PKG_CONFIG_MIN_VERSION
=0.9.0
9899 if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
9900 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $RSVG_MODULE" >&5
9901 $as_echo_n "checking for $RSVG_MODULE... " >&6; }
9903 if $PKG_CONFIG --exists "$RSVG_MODULE" 2>&5; then
9904 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
9905 $as_echo "yes" >&6; }
9908 { $as_echo "$as_me:${as_lineno-$LINENO}: checking RSVG_CFLAGS" >&5
9909 $as_echo_n "checking RSVG_CFLAGS... " >&6; }
9910 RSVG_CFLAGS
=`$PKG_CONFIG --cflags "$RSVG_MODULE"|sed -e 's,///*,/,g'`
9911 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RSVG_CFLAGS" >&5
9912 $as_echo "$RSVG_CFLAGS" >&6; }
9914 { $as_echo "$as_me:${as_lineno-$LINENO}: checking RSVG_LIBS" >&5
9915 $as_echo_n "checking RSVG_LIBS... " >&6; }
9916 RSVG_LIBS
=`$PKG_CONFIG --libs "$RSVG_MODULE"|sed -e 's,///*,/,g'`
9917 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RSVG_LIBS" >&5
9918 $as_echo "$RSVG_LIBS" >&6; }
9920 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9921 $as_echo "no" >&6; }
9924 ## If we have a custom action on failure, don't print errors, but
9925 ## do set a variable so people can do so.
9926 RSVG_PKG_ERRORS
=`$PKG_CONFIG --errors-to-stdout --print-errors "$RSVG_MODULE"`
9933 echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
9934 echo "*** See http://www.freedesktop.org/software/pkgconfig"
9938 if test $succeeded = yes; then
9947 if test $HAVE_RSVG = yes; then
9949 $as_echo "#define HAVE_RSVG 1" >>confdefs.h
9951 CFLAGS
="$CFLAGS $RSVG_CFLAGS"
9952 LIBS
="$RSVG_LIBS $LIBS"
9958 if test "${HAVE_X11}" = "yes"; then
9959 if test "${with_imagemagick}" != "no"; then
9960 IMAGEMAGICK_MODULE
="Wand"
9964 # Extract the first word of "pkg-config", so it can be a program name with args.
9965 set dummy pkg-config
; ac_word
=$2
9966 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9967 $as_echo_n "checking for $ac_word... " >&6; }
9968 if ${ac_cv_path_PKG_CONFIG+:} false
; then :
9969 $as_echo_n "(cached) " >&6
9973 ac_cv_path_PKG_CONFIG
="$PKG_CONFIG" # Let the user override the test with a path.
9976 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
9980 test -z "$as_dir" && as_dir
=.
9981 for ac_exec_ext
in '' $ac_executable_extensions; do
9982 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9983 ac_cv_path_PKG_CONFIG
="$as_dir/$ac_word$ac_exec_ext"
9984 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9991 test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG
="no"
9995 PKG_CONFIG
=$ac_cv_path_PKG_CONFIG
9996 if test -n "$PKG_CONFIG"; then
9997 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5
9998 $as_echo "$PKG_CONFIG" >&6; }
10000 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10001 $as_echo "no" >&6; }
10006 if test "$PKG_CONFIG" = "no" ; then
10009 PKG_CONFIG_MIN_VERSION
=0.9.0
10010 if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
10011 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $IMAGEMAGICK_MODULE" >&5
10012 $as_echo_n "checking for $IMAGEMAGICK_MODULE... " >&6; }
10014 if $PKG_CONFIG --exists "$IMAGEMAGICK_MODULE" 2>&5; then
10015 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
10016 $as_echo "yes" >&6; }
10019 { $as_echo "$as_me:${as_lineno-$LINENO}: checking IMAGEMAGICK_CFLAGS" >&5
10020 $as_echo_n "checking IMAGEMAGICK_CFLAGS... " >&6; }
10021 IMAGEMAGICK_CFLAGS
=`$PKG_CONFIG --cflags "$IMAGEMAGICK_MODULE"|sed -e 's,///*,/,g'`
10022 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $IMAGEMAGICK_CFLAGS" >&5
10023 $as_echo "$IMAGEMAGICK_CFLAGS" >&6; }
10025 { $as_echo "$as_me:${as_lineno-$LINENO}: checking IMAGEMAGICK_LIBS" >&5
10026 $as_echo_n "checking IMAGEMAGICK_LIBS... " >&6; }
10027 IMAGEMAGICK_LIBS
=`$PKG_CONFIG --libs "$IMAGEMAGICK_MODULE"|sed -e 's,///*,/,g'`
10028 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $IMAGEMAGICK_LIBS" >&5
10029 $as_echo "$IMAGEMAGICK_LIBS" >&6; }
10031 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10032 $as_echo "no" >&6; }
10033 IMAGEMAGICK_CFLAGS
=""
10034 IMAGEMAGICK_LIBS
=""
10035 ## If we have a custom action on failure, don't print errors, but
10036 ## do set a variable so people can do so.
10037 IMAGEMAGICK_PKG_ERRORS
=`$PKG_CONFIG --errors-to-stdout --print-errors "$IMAGEMAGICK_MODULE"`
10044 echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
10045 echo "*** See http://www.freedesktop.org/software/pkgconfig"
10049 if test $succeeded = yes; then
10050 HAVE_IMAGEMAGICK
=yes
10058 if test $HAVE_IMAGEMAGICK = yes; then
10060 $as_echo "#define HAVE_IMAGEMAGICK 1" >>confdefs.h
10062 CFLAGS
="$CFLAGS $IMAGEMAGICK_CFLAGS"
10063 LIBS
="$IMAGEMAGICK_LIBS $LIBS"
10064 for ac_func
in MagickExportImagePixels
10066 ac_fn_c_check_func
"$LINENO" "MagickExportImagePixels" "ac_cv_func_MagickExportImagePixels"
10067 if test "x$ac_cv_func_MagickExportImagePixels" = xyes
; then :
10068 cat >>confdefs.h
<<_ACEOF
10069 #define HAVE_MAGICKEXPORTIMAGEPIXELS 1
10081 if test "${with_gtk3}" = "yes"; then
10084 GTK_MODULES
="gtk+-3.0 >= $GTK_REQUIRED glib-2.0 >= $GLIB_REQUIRED"
10089 # Extract the first word of "pkg-config", so it can be a program name with args.
10090 set dummy pkg-config
; ac_word
=$2
10091 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10092 $as_echo_n "checking for $ac_word... " >&6; }
10093 if ${ac_cv_path_PKG_CONFIG+:} false
; then :
10094 $as_echo_n "(cached) " >&6
10096 case $PKG_CONFIG in
10098 ac_cv_path_PKG_CONFIG
="$PKG_CONFIG" # Let the user override the test with a path.
10101 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
10102 for as_dir
in $PATH
10105 test -z "$as_dir" && as_dir
=.
10106 for ac_exec_ext
in '' $ac_executable_extensions; do
10107 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10108 ac_cv_path_PKG_CONFIG
="$as_dir/$ac_word$ac_exec_ext"
10109 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10116 test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG
="no"
10120 PKG_CONFIG
=$ac_cv_path_PKG_CONFIG
10121 if test -n "$PKG_CONFIG"; then
10122 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5
10123 $as_echo "$PKG_CONFIG" >&6; }
10125 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10126 $as_echo "no" >&6; }
10131 if test "$PKG_CONFIG" = "no" ; then
10134 PKG_CONFIG_MIN_VERSION
=0.9.0
10135 if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
10136 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $GTK_MODULES" >&5
10137 $as_echo_n "checking for $GTK_MODULES... " >&6; }
10139 if $PKG_CONFIG --exists "$GTK_MODULES" 2>&5; then
10140 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
10141 $as_echo "yes" >&6; }
10144 { $as_echo "$as_me:${as_lineno-$LINENO}: checking GTK_CFLAGS" >&5
10145 $as_echo_n "checking GTK_CFLAGS... " >&6; }
10146 GTK_CFLAGS
=`$PKG_CONFIG --cflags "$GTK_MODULES"|sed -e 's,///*,/,g'`
10147 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GTK_CFLAGS" >&5
10148 $as_echo "$GTK_CFLAGS" >&6; }
10150 { $as_echo "$as_me:${as_lineno-$LINENO}: checking GTK_LIBS" >&5
10151 $as_echo_n "checking GTK_LIBS... " >&6; }
10152 GTK_LIBS
=`$PKG_CONFIG --libs "$GTK_MODULES"|sed -e 's,///*,/,g'`
10153 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GTK_LIBS" >&5
10154 $as_echo "$GTK_LIBS" >&6; }
10156 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10157 $as_echo "no" >&6; }
10160 ## If we have a custom action on failure, don't print errors, but
10161 ## do set a variable so people can do so.
10162 GTK_PKG_ERRORS
=`$PKG_CONFIG --errors-to-stdout --print-errors "$GTK_MODULES"`
10169 echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
10170 echo "*** See http://www.freedesktop.org/software/pkgconfig"
10174 if test $succeeded = yes; then
10180 if test "$pkg_check_gtk" = "no" && test "$USE_X_TOOLKIT" != "maybe"; then
10181 as_fn_error $?
"$GTK_PKG_ERRORS" "$LINENO" 5
10185 if test "$pkg_check_gtk" != "yes"; then
10187 if test "${with_gtk}" = "yes" ||
test "$USE_X_TOOLKIT" = "maybe"; then
10190 GTK_MODULES
="gtk+-2.0 >= $GTK_REQUIRED glib-2.0 >= $GLIB_REQUIRED"
10195 # Extract the first word of "pkg-config", so it can be a program name with args.
10196 set dummy pkg-config
; ac_word
=$2
10197 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10198 $as_echo_n "checking for $ac_word... " >&6; }
10199 if ${ac_cv_path_PKG_CONFIG+:} false
; then :
10200 $as_echo_n "(cached) " >&6
10202 case $PKG_CONFIG in
10204 ac_cv_path_PKG_CONFIG
="$PKG_CONFIG" # Let the user override the test with a path.
10207 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
10208 for as_dir
in $PATH
10211 test -z "$as_dir" && as_dir
=.
10212 for ac_exec_ext
in '' $ac_executable_extensions; do
10213 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10214 ac_cv_path_PKG_CONFIG
="$as_dir/$ac_word$ac_exec_ext"
10215 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10222 test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG
="no"
10226 PKG_CONFIG
=$ac_cv_path_PKG_CONFIG
10227 if test -n "$PKG_CONFIG"; then
10228 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5
10229 $as_echo "$PKG_CONFIG" >&6; }
10231 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10232 $as_echo "no" >&6; }
10237 if test "$PKG_CONFIG" = "no" ; then
10240 PKG_CONFIG_MIN_VERSION
=0.9.0
10241 if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
10242 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $GTK_MODULES" >&5
10243 $as_echo_n "checking for $GTK_MODULES... " >&6; }
10245 if $PKG_CONFIG --exists "$GTK_MODULES" 2>&5; then
10246 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
10247 $as_echo "yes" >&6; }
10250 { $as_echo "$as_me:${as_lineno-$LINENO}: checking GTK_CFLAGS" >&5
10251 $as_echo_n "checking GTK_CFLAGS... " >&6; }
10252 GTK_CFLAGS
=`$PKG_CONFIG --cflags "$GTK_MODULES"|sed -e 's,///*,/,g'`
10253 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GTK_CFLAGS" >&5
10254 $as_echo "$GTK_CFLAGS" >&6; }
10256 { $as_echo "$as_me:${as_lineno-$LINENO}: checking GTK_LIBS" >&5
10257 $as_echo_n "checking GTK_LIBS... " >&6; }
10258 GTK_LIBS
=`$PKG_CONFIG --libs "$GTK_MODULES"|sed -e 's,///*,/,g'`
10259 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GTK_LIBS" >&5
10260 $as_echo "$GTK_LIBS" >&6; }
10262 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10263 $as_echo "no" >&6; }
10266 ## If we have a custom action on failure, don't print errors, but
10267 ## do set a variable so people can do so.
10268 GTK_PKG_ERRORS
=`$PKG_CONFIG --errors-to-stdout --print-errors "$GTK_MODULES"`
10275 echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
10276 echo "*** See http://www.freedesktop.org/software/pkgconfig"
10280 if test $succeeded = yes; then
10286 if test "$pkg_check_gtk" = "no" && test "$USE_X_TOOLKIT" != "maybe"; then
10287 as_fn_error $?
"$GTK_PKG_ERRORS" "$LINENO" 5
10293 if test x
"$pkg_check_gtk" = xyes
; then
10297 C_SWITCH_X_SITE
="$C_SWITCH_X_SITE $GTK_CFLAGS"
10298 CFLAGS
="$CFLAGS $GTK_CFLAGS"
10299 LIBS
="$GTK_LIBS $LIBS"
10301 for ac_func
in gtk_main
10303 ac_fn_c_check_func
"$LINENO" "gtk_main" "ac_cv_func_gtk_main"
10304 if test "x$ac_cv_func_gtk_main" = xyes
; then :
10305 cat >>confdefs.h
<<_ACEOF
10306 #define HAVE_GTK_MAIN 1
10312 if test "${GTK_COMPILES}" != "yes"; then
10313 if test "$USE_X_TOOLKIT" != "maybe"; then
10314 as_fn_error $?
"Gtk+ wanted, but it does not compile, see config.log. Maybe some x11-devel files missing?" "$LINENO" 5;
10319 $as_echo "#define USE_GTK 1" >>confdefs.h
10323 if $PKG_CONFIG --atleast-version=2.10 gtk
+-2.0
; then
10326 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Your version of Gtk+ will have problems with
10327 closing open displays. This is no problem if you just use
10328 one display, but if you use more than one and close one of them
10329 Emacs may crash." >&5
10330 $as_echo "$as_me: WARNING: Your version of Gtk+ will have problems with
10331 closing open displays. This is no problem if you just use
10332 one display, but if you use more than one and close one of them
10333 Emacs may crash." >&2;}
10342 if test "${HAVE_GTK}" = "yes"; then
10344 if test "$with_toolkit_scroll_bars" != no
; then
10345 with_toolkit_scroll_bars
=yes
10348 HAVE_GTK_FILE_SELECTION
=no
10349 ac_fn_c_check_decl
"$LINENO" "GTK_TYPE_FILE_SELECTION" "ac_cv_have_decl_GTK_TYPE_FILE_SELECTION" "$ac_includes_default
10350 #include <gtk/gtk.h>
10352 if test "x$ac_cv_have_decl_GTK_TYPE_FILE_SELECTION" = xyes
; then :
10353 HAVE_GTK_FILE_SELECTION
=yes
10355 HAVE_GTK_FILE_SELECTION
=no
10358 if test "$HAVE_GTK_FILE_SELECTION" = yes; then
10359 for ac_func
in gtk_file_selection_new
10361 ac_fn_c_check_func
"$LINENO" "gtk_file_selection_new" "ac_cv_func_gtk_file_selection_new"
10362 if test "x$ac_cv_func_gtk_file_selection_new" = xyes
; then :
10363 cat >>confdefs.h
<<_ACEOF
10364 #define HAVE_GTK_FILE_SELECTION_NEW 1
10372 HAVE_GTK_AND_PTHREAD
=no
10373 for ac_header
in pthread.h
10375 ac_fn_c_check_header_mongrel
"$LINENO" "pthread.h" "ac_cv_header_pthread_h" "$ac_includes_default"
10376 if test "x$ac_cv_header_pthread_h" = xyes
; then :
10377 cat >>confdefs.h
<<_ACEOF
10378 #define HAVE_PTHREAD_H 1
10385 if test "$ac_cv_header_pthread_h"; then
10386 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pthread_self in -lpthread" >&5
10387 $as_echo_n "checking for pthread_self in -lpthread... " >&6; }
10388 if ${ac_cv_lib_pthread_pthread_self+:} false
; then :
10389 $as_echo_n "(cached) " >&6
10391 ac_check_lib_save_LIBS
=$LIBS
10392 LIBS
="-lpthread $LIBS"
10393 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
10394 /* end confdefs.h. */
10396 /* Override any GCC internal prototype to avoid an error.
10397 Use char because int might match the return type of a GCC
10398 builtin and then its argument prototype would still apply. */
10402 char pthread_self ();
10406 return pthread_self ();
10411 if ac_fn_c_try_link
"$LINENO"; then :
10412 ac_cv_lib_pthread_pthread_self
=yes
10414 ac_cv_lib_pthread_pthread_self
=no
10416 rm -f core conftest.err conftest.
$ac_objext \
10417 conftest
$ac_exeext conftest.
$ac_ext
10418 LIBS
=$ac_check_lib_save_LIBS
10420 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_pthread_pthread_self" >&5
10421 $as_echo "$ac_cv_lib_pthread_pthread_self" >&6; }
10422 if test "x$ac_cv_lib_pthread_pthread_self" = xyes
; then :
10423 HAVE_GTK_AND_PTHREAD
=yes
10427 if test "$HAVE_GTK_AND_PTHREAD" = yes; then
10428 case "${canonical}" in
10430 *) GTK_LIBS
="$GTK_LIBS -lpthread" ;;
10433 $as_echo "#define HAVE_GTK_AND_PTHREAD 1" >>confdefs.h
10437 for ac_func
in gtk_widget_get_window gtk_widget_set_has_window \
10438 gtk_dialog_get_action_area gtk_widget_get_sensitive \
10439 gtk_widget_get_mapped gtk_adjustment_get_page_size \
10440 gtk_orientable_set_orientation
10442 as_ac_var
=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
10443 ac_fn_c_check_func
"$LINENO" "$ac_func" "$as_ac_var"
10444 if eval test \"x\$
"$as_ac_var"\" = x
"yes"; then :
10445 cat >>confdefs.h
<<_ACEOF
10446 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
10457 if test "${with_dbus}" = "yes"; then
10461 # Extract the first word of "pkg-config", so it can be a program name with args.
10462 set dummy pkg-config
; ac_word
=$2
10463 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10464 $as_echo_n "checking for $ac_word... " >&6; }
10465 if ${ac_cv_path_PKG_CONFIG+:} false
; then :
10466 $as_echo_n "(cached) " >&6
10468 case $PKG_CONFIG in
10470 ac_cv_path_PKG_CONFIG
="$PKG_CONFIG" # Let the user override the test with a path.
10473 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
10474 for as_dir
in $PATH
10477 test -z "$as_dir" && as_dir
=.
10478 for ac_exec_ext
in '' $ac_executable_extensions; do
10479 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10480 ac_cv_path_PKG_CONFIG
="$as_dir/$ac_word$ac_exec_ext"
10481 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10488 test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG
="no"
10492 PKG_CONFIG
=$ac_cv_path_PKG_CONFIG
10493 if test -n "$PKG_CONFIG"; then
10494 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5
10495 $as_echo "$PKG_CONFIG" >&6; }
10497 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10498 $as_echo "no" >&6; }
10503 if test "$PKG_CONFIG" = "no" ; then
10506 PKG_CONFIG_MIN_VERSION
=0.9.0
10507 if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
10508 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dbus-1 >= 1.0" >&5
10509 $as_echo_n "checking for dbus-1 >= 1.0... " >&6; }
10511 if $PKG_CONFIG --exists "dbus-1 >= 1.0" 2>&5; then
10512 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
10513 $as_echo "yes" >&6; }
10516 { $as_echo "$as_me:${as_lineno-$LINENO}: checking DBUS_CFLAGS" >&5
10517 $as_echo_n "checking DBUS_CFLAGS... " >&6; }
10518 DBUS_CFLAGS
=`$PKG_CONFIG --cflags "dbus-1 >= 1.0"|sed -e 's,///*,/,g'`
10519 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DBUS_CFLAGS" >&5
10520 $as_echo "$DBUS_CFLAGS" >&6; }
10522 { $as_echo "$as_me:${as_lineno-$LINENO}: checking DBUS_LIBS" >&5
10523 $as_echo_n "checking DBUS_LIBS... " >&6; }
10524 DBUS_LIBS
=`$PKG_CONFIG --libs "dbus-1 >= 1.0"|sed -e 's,///*,/,g'`
10525 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DBUS_LIBS" >&5
10526 $as_echo "$DBUS_LIBS" >&6; }
10528 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10529 $as_echo "no" >&6; }
10532 ## If we have a custom action on failure, don't print errors, but
10533 ## do set a variable so people can do so.
10534 DBUS_PKG_ERRORS
=`$PKG_CONFIG --errors-to-stdout --print-errors "dbus-1 >= 1.0"`
10541 echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
10542 echo "*** See http://www.freedesktop.org/software/pkgconfig"
10546 if test $succeeded = yes; then
10552 if test "$HAVE_DBUS" = yes; then
10553 LIBS
="$LIBS $DBUS_LIBS"
10555 $as_echo "#define HAVE_DBUS 1" >>confdefs.h
10557 for ac_func
in dbus_watch_get_unix_fd
10559 ac_fn_c_check_func
"$LINENO" "dbus_watch_get_unix_fd" "ac_cv_func_dbus_watch_get_unix_fd"
10560 if test "x$ac_cv_func_dbus_watch_get_unix_fd" = xyes
; then :
10561 cat >>confdefs.h
<<_ACEOF
10562 #define HAVE_DBUS_WATCH_GET_UNIX_FD 1
10568 DBUS_OBJ
=dbusbind.o
10574 if test "${HAVE_X11}" = "yes" && test "${with_gconf}" = "yes"; then
10578 # Extract the first word of "pkg-config", so it can be a program name with args.
10579 set dummy pkg-config
; ac_word
=$2
10580 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10581 $as_echo_n "checking for $ac_word... " >&6; }
10582 if ${ac_cv_path_PKG_CONFIG+:} false
; then :
10583 $as_echo_n "(cached) " >&6
10585 case $PKG_CONFIG in
10587 ac_cv_path_PKG_CONFIG
="$PKG_CONFIG" # Let the user override the test with a path.
10590 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
10591 for as_dir
in $PATH
10594 test -z "$as_dir" && as_dir
=.
10595 for ac_exec_ext
in '' $ac_executable_extensions; do
10596 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10597 ac_cv_path_PKG_CONFIG
="$as_dir/$ac_word$ac_exec_ext"
10598 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10605 test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG
="no"
10609 PKG_CONFIG
=$ac_cv_path_PKG_CONFIG
10610 if test -n "$PKG_CONFIG"; then
10611 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5
10612 $as_echo "$PKG_CONFIG" >&6; }
10614 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10615 $as_echo "no" >&6; }
10620 if test "$PKG_CONFIG" = "no" ; then
10623 PKG_CONFIG_MIN_VERSION
=0.9.0
10624 if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
10625 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gconf-2.0 >= 2.13" >&5
10626 $as_echo_n "checking for gconf-2.0 >= 2.13... " >&6; }
10628 if $PKG_CONFIG --exists "gconf-2.0 >= 2.13" 2>&5; then
10629 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
10630 $as_echo "yes" >&6; }
10633 { $as_echo "$as_me:${as_lineno-$LINENO}: checking GCONF_CFLAGS" >&5
10634 $as_echo_n "checking GCONF_CFLAGS... " >&6; }
10635 GCONF_CFLAGS
=`$PKG_CONFIG --cflags "gconf-2.0 >= 2.13"|sed -e 's,///*,/,g'`
10636 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GCONF_CFLAGS" >&5
10637 $as_echo "$GCONF_CFLAGS" >&6; }
10639 { $as_echo "$as_me:${as_lineno-$LINENO}: checking GCONF_LIBS" >&5
10640 $as_echo_n "checking GCONF_LIBS... " >&6; }
10641 GCONF_LIBS
=`$PKG_CONFIG --libs "gconf-2.0 >= 2.13"|sed -e 's,///*,/,g'`
10642 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GCONF_LIBS" >&5
10643 $as_echo "$GCONF_LIBS" >&6; }
10645 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10646 $as_echo "no" >&6; }
10649 ## If we have a custom action on failure, don't print errors, but
10650 ## do set a variable so people can do so.
10651 GCONF_PKG_ERRORS
=`$PKG_CONFIG --errors-to-stdout --print-errors "gconf-2.0 >= 2.13"`
10658 echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
10659 echo "*** See http://www.freedesktop.org/software/pkgconfig"
10663 if test $succeeded = yes; then
10669 if test "$HAVE_GCONF" = yes; then
10671 $as_echo "#define HAVE_GCONF 1" >>confdefs.h
10673 for ac_func
in g_type_init
10675 ac_fn_c_check_func
"$LINENO" "g_type_init" "ac_cv_func_g_type_init"
10676 if test "x$ac_cv_func_g_type_init" = xyes
; then :
10677 cat >>confdefs.h
<<_ACEOF
10678 #define HAVE_G_TYPE_INIT 1
10689 if test "${with_selinux}" = "yes"; then
10690 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for lgetfilecon in -lselinux" >&5
10691 $as_echo_n "checking for lgetfilecon in -lselinux... " >&6; }
10692 if ${ac_cv_lib_selinux_lgetfilecon+:} false
; then :
10693 $as_echo_n "(cached) " >&6
10695 ac_check_lib_save_LIBS
=$LIBS
10696 LIBS
="-lselinux $LIBS"
10697 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
10698 /* end confdefs.h. */
10700 /* Override any GCC internal prototype to avoid an error.
10701 Use char because int might match the return type of a GCC
10702 builtin and then its argument prototype would still apply. */
10706 char lgetfilecon ();
10710 return lgetfilecon ();
10715 if ac_fn_c_try_link
"$LINENO"; then :
10716 ac_cv_lib_selinux_lgetfilecon
=yes
10718 ac_cv_lib_selinux_lgetfilecon
=no
10720 rm -f core conftest.err conftest.
$ac_objext \
10721 conftest
$ac_exeext conftest.
$ac_ext
10722 LIBS
=$ac_check_lib_save_LIBS
10724 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_selinux_lgetfilecon" >&5
10725 $as_echo "$ac_cv_lib_selinux_lgetfilecon" >&6; }
10726 if test "x$ac_cv_lib_selinux_lgetfilecon" = xyes
; then :
10727 HAVE_LIBSELINUX
=yes
10732 if test "$HAVE_LIBSELINUX" = yes; then
10734 $as_echo "#define HAVE_LIBSELINUX 1" >>confdefs.h
10736 LIBSELINUX_LIBS
=-lselinux
10742 if test "${with_gnutls}" = "yes" ; then
10746 # Extract the first word of "pkg-config", so it can be a program name with args.
10747 set dummy pkg-config
; ac_word
=$2
10748 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10749 $as_echo_n "checking for $ac_word... " >&6; }
10750 if ${ac_cv_path_PKG_CONFIG+:} false
; then :
10751 $as_echo_n "(cached) " >&6
10753 case $PKG_CONFIG in
10755 ac_cv_path_PKG_CONFIG
="$PKG_CONFIG" # Let the user override the test with a path.
10758 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
10759 for as_dir
in $PATH
10762 test -z "$as_dir" && as_dir
=.
10763 for ac_exec_ext
in '' $ac_executable_extensions; do
10764 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10765 ac_cv_path_PKG_CONFIG
="$as_dir/$ac_word$ac_exec_ext"
10766 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10773 test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG
="no"
10777 PKG_CONFIG
=$ac_cv_path_PKG_CONFIG
10778 if test -n "$PKG_CONFIG"; then
10779 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5
10780 $as_echo "$PKG_CONFIG" >&6; }
10782 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10783 $as_echo "no" >&6; }
10788 if test "$PKG_CONFIG" = "no" ; then
10791 PKG_CONFIG_MIN_VERSION
=0.9.0
10792 if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
10793 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gnutls >= 2.2.4" >&5
10794 $as_echo_n "checking for gnutls >= 2.2.4... " >&6; }
10796 if $PKG_CONFIG --exists "gnutls >= 2.2.4" 2>&5; then
10797 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
10798 $as_echo "yes" >&6; }
10801 { $as_echo "$as_me:${as_lineno-$LINENO}: checking LIBGNUTLS_CFLAGS" >&5
10802 $as_echo_n "checking LIBGNUTLS_CFLAGS... " >&6; }
10803 LIBGNUTLS_CFLAGS
=`$PKG_CONFIG --cflags "gnutls >= 2.2.4"|sed -e 's,///*,/,g'`
10804 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIBGNUTLS_CFLAGS" >&5
10805 $as_echo "$LIBGNUTLS_CFLAGS" >&6; }
10807 { $as_echo "$as_me:${as_lineno-$LINENO}: checking LIBGNUTLS_LIBS" >&5
10808 $as_echo_n "checking LIBGNUTLS_LIBS... " >&6; }
10809 LIBGNUTLS_LIBS
=`$PKG_CONFIG --libs "gnutls >= 2.2.4"|sed -e 's,///*,/,g'`
10810 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIBGNUTLS_LIBS" >&5
10811 $as_echo "$LIBGNUTLS_LIBS" >&6; }
10813 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10814 $as_echo "no" >&6; }
10815 LIBGNUTLS_CFLAGS
=""
10817 ## If we have a custom action on failure, don't print errors, but
10818 ## do set a variable so people can do so.
10819 LIBGNUTLS_PKG_ERRORS
=`$PKG_CONFIG --errors-to-stdout --print-errors "gnutls >= 2.2.4"`
10826 echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
10827 echo "*** See http://www.freedesktop.org/software/pkgconfig"
10831 if test $succeeded = yes; then
10837 if test "${HAVE_GNUTLS}" = "yes"; then
10839 $as_echo "#define HAVE_GNUTLS 1" >>confdefs.h
10848 if test x
"${USE_X_TOOLKIT}" = xmaybe ||
test x
"${USE_X_TOOLKIT}" = xLUCID
; then
10849 if test "$with_xaw3d" != no
; then
10850 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for xaw3d" >&5
10851 $as_echo_n "checking for xaw3d... " >&6; }
10852 if ${emacs_cv_xaw3d+:} false
; then :
10853 $as_echo_n "(cached) " >&6
10855 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
10856 /* end confdefs.h. */
10858 #include <X11/Intrinsic.h>
10859 #include <X11/Xaw3d/Simple.h>
10868 if ac_fn_c_try_link
"$LINENO"; then :
10869 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for XawScrollbarSetThumb in -lXaw3d" >&5
10870 $as_echo_n "checking for XawScrollbarSetThumb in -lXaw3d... " >&6; }
10871 if ${ac_cv_lib_Xaw3d_XawScrollbarSetThumb+:} false
; then :
10872 $as_echo_n "(cached) " >&6
10874 ac_check_lib_save_LIBS
=$LIBS
10875 LIBS
="-lXaw3d $LIBS"
10876 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
10877 /* end confdefs.h. */
10879 /* Override any GCC internal prototype to avoid an error.
10880 Use char because int might match the return type of a GCC
10881 builtin and then its argument prototype would still apply. */
10885 char XawScrollbarSetThumb ();
10889 return XawScrollbarSetThumb ();
10894 if ac_fn_c_try_link
"$LINENO"; then :
10895 ac_cv_lib_Xaw3d_XawScrollbarSetThumb
=yes
10897 ac_cv_lib_Xaw3d_XawScrollbarSetThumb
=no
10899 rm -f core conftest.err conftest.
$ac_objext \
10900 conftest
$ac_exeext conftest.
$ac_ext
10901 LIBS
=$ac_check_lib_save_LIBS
10903 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_Xaw3d_XawScrollbarSetThumb" >&5
10904 $as_echo "$ac_cv_lib_Xaw3d_XawScrollbarSetThumb" >&6; }
10905 if test "x$ac_cv_lib_Xaw3d_XawScrollbarSetThumb" = xyes
; then :
10914 rm -f core conftest.err conftest.
$ac_objext \
10915 conftest
$ac_exeext conftest.
$ac_ext
10921 if test $emacs_cv_xaw3d = yes; then
10922 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes; using Lucid toolkit" >&5
10923 $as_echo "yes; using Lucid toolkit" >&6; }
10924 USE_X_TOOLKIT
=LUCID
10928 $as_echo "#define HAVE_XAW3D 1" >>confdefs.h
10931 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10932 $as_echo "no" >&6; }
10933 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libXaw" >&5
10934 $as_echo_n "checking for libXaw... " >&6; }
10935 if ${emacs_cv_xaw+:} false
; then :
10936 $as_echo_n "(cached) " >&6
10938 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
10939 /* end confdefs.h. */
10941 #include <X11/Intrinsic.h>
10942 #include <X11/Xaw/Simple.h>
10951 if ac_fn_c_try_link
"$LINENO"; then :
10956 rm -f core conftest.err conftest.
$ac_objext \
10957 conftest
$ac_exeext conftest.
$ac_ext
10960 if test $emacs_cv_xaw = yes; then
10961 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes; using Lucid toolkit" >&5
10962 $as_echo "yes; using Lucid toolkit" >&6; }
10963 USE_X_TOOLKIT
=LUCID
10965 elif test x
"${USE_X_TOOLKIT}" = xLUCID
; then
10966 as_fn_error $?
"Lucid toolkit requires X11/Xaw include files" "$LINENO" 5
10968 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no; do not use toolkit by default" >&5
10969 $as_echo "no; do not use toolkit by default" >&6; }
10975 X_TOOLKIT_TYPE
=$USE_X_TOOLKIT
10978 if test "${USE_X_TOOLKIT}" != "none"; then
10979 { $as_echo "$as_me:${as_lineno-$LINENO}: checking X11 toolkit version" >&5
10980 $as_echo_n "checking X11 toolkit version... " >&6; }
10981 if ${emacs_cv_x11_toolkit_version_6+:} false
; then :
10982 $as_echo_n "(cached) " >&6
10984 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
10985 /* end confdefs.h. */
10986 #include <X11/Intrinsic.h>
10990 #if XtSpecificationRelease < 6
10998 if ac_fn_c_try_link
"$LINENO"; then :
10999 emacs_cv_x11_toolkit_version_6
=yes
11001 emacs_cv_x11_toolkit_version_6
=no
11003 rm -f core conftest.err conftest.
$ac_objext \
11004 conftest
$ac_exeext conftest.
$ac_ext
11007 HAVE_X11XTR6
=$emacs_cv_x11_toolkit_version_6
11008 if test $emacs_cv_x11_toolkit_version_6 = yes; then
11009 { $as_echo "$as_me:${as_lineno-$LINENO}: result: 6 or newer" >&5
11010 $as_echo "6 or newer" >&6; }
11012 $as_echo "#define HAVE_X11XTR6 1" >>confdefs.h
11014 LIBXTR6
="-lSM -lICE"
11016 ## Use libw.a along with X11R6 Xt.
11017 unixware
) LIBXTR6
="$LIBXTR6 -lw" ;;
11020 { $as_echo "$as_me:${as_lineno-$LINENO}: result: before 6" >&5
11021 $as_echo "before 6" >&6; }
11025 if test x
$HAVE_X11XTR6 = xyes
; then
11026 LIBS
="-lXt -lSM -lICE $LIBS"
11030 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for XmuConvertStandardSelection in -lXmu" >&5
11031 $as_echo_n "checking for XmuConvertStandardSelection in -lXmu... " >&6; }
11032 if ${ac_cv_lib_Xmu_XmuConvertStandardSelection+:} false
; then :
11033 $as_echo_n "(cached) " >&6
11035 ac_check_lib_save_LIBS
=$LIBS
11037 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
11038 /* end confdefs.h. */
11040 /* Override any GCC internal prototype to avoid an error.
11041 Use char because int might match the return type of a GCC
11042 builtin and then its argument prototype would still apply. */
11046 char XmuConvertStandardSelection ();
11050 return XmuConvertStandardSelection ();
11055 if ac_fn_c_try_link
"$LINENO"; then :
11056 ac_cv_lib_Xmu_XmuConvertStandardSelection
=yes
11058 ac_cv_lib_Xmu_XmuConvertStandardSelection
=no
11060 rm -f core conftest.err conftest.
$ac_objext \
11061 conftest
$ac_exeext conftest.
$ac_ext
11062 LIBS
=$ac_check_lib_save_LIBS
11064 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_Xmu_XmuConvertStandardSelection" >&5
11065 $as_echo "$ac_cv_lib_Xmu_XmuConvertStandardSelection" >&6; }
11066 if test "x$ac_cv_lib_Xmu_XmuConvertStandardSelection" = xyes
; then :
11067 cat >>confdefs.h
<<_ACEOF
11068 #define HAVE_LIBXMU 1
11075 test $ac_cv_lib_Xmu_XmuConvertStandardSelection = no
&& LIBS
="$OLDLIBS"
11081 ## These systems don't supply Xmu.
11083 test "X$ac_cv_lib_Xmu_XmuConvertStandardSelection" != "Xyes" && LIBXMU
=
11088 # On Irix 6.5, at least, we need XShapeQueryExtension from -lXext for Xaw3D.
11089 if test "${HAVE_X11}" = "yes"; then
11090 if test "${USE_X_TOOLKIT}" != "none"; then
11091 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for XShapeQueryExtension in -lXext" >&5
11092 $as_echo_n "checking for XShapeQueryExtension in -lXext... " >&6; }
11093 if ${ac_cv_lib_Xext_XShapeQueryExtension+:} false
; then :
11094 $as_echo_n "(cached) " >&6
11096 ac_check_lib_save_LIBS
=$LIBS
11097 LIBS
="-lXext $LIBS"
11098 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
11099 /* end confdefs.h. */
11101 /* Override any GCC internal prototype to avoid an error.
11102 Use char because int might match the return type of a GCC
11103 builtin and then its argument prototype would still apply. */
11107 char XShapeQueryExtension ();
11111 return XShapeQueryExtension ();
11116 if ac_fn_c_try_link
"$LINENO"; then :
11117 ac_cv_lib_Xext_XShapeQueryExtension
=yes
11119 ac_cv_lib_Xext_XShapeQueryExtension
=no
11121 rm -f core conftest.err conftest.
$ac_objext \
11122 conftest
$ac_exeext conftest.
$ac_ext
11123 LIBS
=$ac_check_lib_save_LIBS
11125 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_Xext_XShapeQueryExtension" >&5
11126 $as_echo "$ac_cv_lib_Xext_XShapeQueryExtension" >&6; }
11127 if test "x$ac_cv_lib_Xext_XShapeQueryExtension" = xyes
; then :
11128 cat >>confdefs.h
<<_ACEOF
11129 #define HAVE_LIBXEXT 1
11132 LIBS
="-lXext $LIBS"
11140 if test "${USE_X_TOOLKIT}" = "MOTIF"; then
11141 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Motif version 2.1" >&5
11142 $as_echo_n "checking for Motif version 2.1... " >&6; }
11143 if ${emacs_cv_motif_version_2_1+:} false
; then :
11144 $as_echo_n "(cached) " >&6
11146 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
11147 /* end confdefs.h. */
11152 #if XmVERSION > 2 || (XmVERSION == 2 && XmREVISION >= 1)
11155 Motif version prior to 2.1.
11161 if ac_fn_c_try_compile
"$LINENO"; then :
11162 emacs_cv_motif_version_2_1
=yes
11164 emacs_cv_motif_version_2_1
=no
11166 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
11168 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $emacs_cv_motif_version_2_1" >&5
11169 $as_echo "$emacs_cv_motif_version_2_1" >&6; }
11170 if test $emacs_cv_motif_version_2_1 = yes; then
11171 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for XpCreateContext in -lXp" >&5
11172 $as_echo_n "checking for XpCreateContext in -lXp... " >&6; }
11173 if ${ac_cv_lib_Xp_XpCreateContext+:} false
; then :
11174 $as_echo_n "(cached) " >&6
11176 ac_check_lib_save_LIBS
=$LIBS
11178 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
11179 /* end confdefs.h. */
11181 /* Override any GCC internal prototype to avoid an error.
11182 Use char because int might match the return type of a GCC
11183 builtin and then its argument prototype would still apply. */
11187 char XpCreateContext ();
11191 return XpCreateContext ();
11196 if ac_fn_c_try_link
"$LINENO"; then :
11197 ac_cv_lib_Xp_XpCreateContext
=yes
11199 ac_cv_lib_Xp_XpCreateContext
=no
11201 rm -f core conftest.err conftest.
$ac_objext \
11202 conftest
$ac_exeext conftest.
$ac_ext
11203 LIBS
=$ac_check_lib_save_LIBS
11205 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_Xp_XpCreateContext" >&5
11206 $as_echo "$ac_cv_lib_Xp_XpCreateContext" >&6; }
11207 if test "x$ac_cv_lib_Xp_XpCreateContext" = xyes
; then :
11212 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for LessTif where some systems put it" >&5
11213 $as_echo_n "checking for LessTif where some systems put it... " >&6; }
11214 if ${emacs_cv_lesstif+:} false
; then :
11215 $as_echo_n "(cached) " >&6
11217 # We put this in CFLAGS temporarily to precede other -I options
11218 # that might be in CFLAGS temporarily.
11219 # We put this in CPPFLAGS where it precedes the other -I options.
11220 OLD_CPPFLAGS
=$CPPFLAGS
11222 CPPFLAGS
="-I/usr/X11R6/LessTif/Motif1.2/include $CPPFLAGS"
11223 CFLAGS
="-I/usr/X11R6/LessTif/Motif1.2/include $CFLAGS"
11224 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
11225 /* end confdefs.h. */
11226 #include </usr/X11R6/LessTif/Motif1.2/include/Xm/Xm.h>
11235 if ac_fn_c_try_compile
"$LINENO"; then :
11236 emacs_cv_lesstif
=yes
11238 emacs_cv_lesstif
=no
11240 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
11242 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $emacs_cv_lesstif" >&5
11243 $as_echo "$emacs_cv_lesstif" >&6; }
11244 if test $emacs_cv_lesstif = yes; then
11245 # Make sure this -I option remains in CPPFLAGS after it is set
11246 # back to REAL_CPPFLAGS.
11247 # There is no need to change REAL_CFLAGS, because REAL_CFLAGS does not
11248 # have those other -I options anyway. Ultimately, having this
11249 # directory ultimately in CPPFLAGS will be enough.
11250 REAL_CPPFLAGS
="-I/usr/X11R6/LessTif/Motif1.2/include $REAL_CPPFLAGS"
11251 LDFLAGS
="-L/usr/X11R6/LessTif/Motif1.2/lib $LDFLAGS"
11254 CPPFLAGS
=$OLD_CPPFLAGS
11260 USE_TOOLKIT_SCROLL_BARS
=no
11261 if test "${with_toolkit_scroll_bars}" != "no"; then
11262 if test "${USE_X_TOOLKIT}" != "none"; then
11263 if test "${USE_X_TOOLKIT}" = "MOTIF"; then
11264 $as_echo "#define USE_TOOLKIT_SCROLL_BARS 1" >>confdefs.h
11267 USE_TOOLKIT_SCROLL_BARS
=yes
11268 elif test "${HAVE_XAW3D}" = "yes"; then
11269 $as_echo "#define USE_TOOLKIT_SCROLL_BARS 1" >>confdefs.h
11271 USE_TOOLKIT_SCROLL_BARS
=yes
11273 elif test "${HAVE_GTK}" = "yes"; then
11274 $as_echo "#define USE_TOOLKIT_SCROLL_BARS 1" >>confdefs.h
11276 USE_TOOLKIT_SCROLL_BARS
=yes
11277 elif test "${HAVE_NS}" = "yes"; then
11278 $as_echo "#define USE_TOOLKIT_SCROLL_BARS 1" >>confdefs.h
11280 USE_TOOLKIT_SCROLL_BARS
=yes
11284 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
11285 /* end confdefs.h. */
11287 #include <X11/Xlib.h>
11288 #include <X11/Xresource.h>
11297 if ac_fn_c_try_compile
"$LINENO"; then :
11300 $as_echo "#define HAVE_XIM 1" >>confdefs.h
11305 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
11308 if test "${with_xim}" != "no"; then
11310 $as_echo "#define USE_XIM 1" >>confdefs.h
11315 if test "${HAVE_XIM}" != "no"; then
11316 late_CFLAGS
=$CFLAGS
11317 if test "$GCC" = yes; then
11318 CFLAGS
="$CFLAGS --pedantic-errors"
11320 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
11321 /* end confdefs.h. */
11323 #include <X11/Xlib.h>
11324 #include <X11/Xresource.h>
11333 XPointer *client_data;
11335 /* If we're not using GCC, it's probably not XFree86, and this is
11336 probably right, but we can't use something like --pedantic-errors. */
11337 extern Bool XRegisterIMInstantiateCallback(Display*, XrmDatabase, char*,
11338 char*, XIMProc, XPointer*);
11340 (void)XRegisterIMInstantiateCallback(display, db, res_name, res_class, callback,
11346 if ac_fn_c_try_compile
"$LINENO"; then :
11347 emacs_cv_arg6_star
=yes
11349 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
11350 if test "$emacs_cv_arg6_star" = yes; then
11351 $as_echo "#define XRegisterIMInstantiateCallback_arg6 XPointer*" >>confdefs.h
11354 $as_echo "#define XRegisterIMInstantiateCallback_arg6 XPointer" >>confdefs.h
11357 CFLAGS
=$late_CFLAGS
11360 ### Start of font-backend (under any platform) section.
11361 # (nothing here yet -- this is a placeholder)
11362 ### End of font-backend (under any platform) section.
11364 ### Start of font-backend (under X11) section.
11365 if test "${HAVE_X11}" = "yes"; then
11369 # Extract the first word of "pkg-config", so it can be a program name with args.
11370 set dummy pkg-config
; ac_word
=$2
11371 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11372 $as_echo_n "checking for $ac_word... " >&6; }
11373 if ${ac_cv_path_PKG_CONFIG+:} false
; then :
11374 $as_echo_n "(cached) " >&6
11376 case $PKG_CONFIG in
11378 ac_cv_path_PKG_CONFIG
="$PKG_CONFIG" # Let the user override the test with a path.
11381 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
11382 for as_dir
in $PATH
11385 test -z "$as_dir" && as_dir
=.
11386 for ac_exec_ext
in '' $ac_executable_extensions; do
11387 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11388 ac_cv_path_PKG_CONFIG
="$as_dir/$ac_word$ac_exec_ext"
11389 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11396 test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG
="no"
11400 PKG_CONFIG
=$ac_cv_path_PKG_CONFIG
11401 if test -n "$PKG_CONFIG"; then
11402 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5
11403 $as_echo "$PKG_CONFIG" >&6; }
11405 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11406 $as_echo "no" >&6; }
11411 if test "$PKG_CONFIG" = "no" ; then
11414 PKG_CONFIG_MIN_VERSION
=0.9.0
11415 if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
11416 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for fontconfig >= 2.2.0" >&5
11417 $as_echo_n "checking for fontconfig >= 2.2.0... " >&6; }
11419 if $PKG_CONFIG --exists "fontconfig >= 2.2.0" 2>&5; then
11420 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11421 $as_echo "yes" >&6; }
11424 { $as_echo "$as_me:${as_lineno-$LINENO}: checking FONTCONFIG_CFLAGS" >&5
11425 $as_echo_n "checking FONTCONFIG_CFLAGS... " >&6; }
11426 FONTCONFIG_CFLAGS
=`$PKG_CONFIG --cflags "fontconfig >= 2.2.0"|sed -e 's,///*,/,g'`
11427 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $FONTCONFIG_CFLAGS" >&5
11428 $as_echo "$FONTCONFIG_CFLAGS" >&6; }
11430 { $as_echo "$as_me:${as_lineno-$LINENO}: checking FONTCONFIG_LIBS" >&5
11431 $as_echo_n "checking FONTCONFIG_LIBS... " >&6; }
11432 FONTCONFIG_LIBS
=`$PKG_CONFIG --libs "fontconfig >= 2.2.0"|sed -e 's,///*,/,g'`
11433 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $FONTCONFIG_LIBS" >&5
11434 $as_echo "$FONTCONFIG_LIBS" >&6; }
11436 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11437 $as_echo "no" >&6; }
11438 FONTCONFIG_CFLAGS
=""
11440 ## If we have a custom action on failure, don't print errors, but
11441 ## do set a variable so people can do so.
11442 FONTCONFIG_PKG_ERRORS
=`$PKG_CONFIG --errors-to-stdout --print-errors "fontconfig >= 2.2.0"`
11449 echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
11450 echo "*** See http://www.freedesktop.org/software/pkgconfig"
11454 if test $succeeded = yes; then
11461 ## Use -lXft if available, unless `--with-xft=no'.
11463 if test "${HAVE_FC}" = "no" ||
test "x${with_x}" = "xno"; then
11466 if test "x${with_xft}" != "xno"; then
11471 # Extract the first word of "pkg-config", so it can be a program name with args.
11472 set dummy pkg-config
; ac_word
=$2
11473 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11474 $as_echo_n "checking for $ac_word... " >&6; }
11475 if ${ac_cv_path_PKG_CONFIG+:} false
; then :
11476 $as_echo_n "(cached) " >&6
11478 case $PKG_CONFIG in
11480 ac_cv_path_PKG_CONFIG
="$PKG_CONFIG" # Let the user override the test with a path.
11483 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
11484 for as_dir
in $PATH
11487 test -z "$as_dir" && as_dir
=.
11488 for ac_exec_ext
in '' $ac_executable_extensions; do
11489 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11490 ac_cv_path_PKG_CONFIG
="$as_dir/$ac_word$ac_exec_ext"
11491 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11498 test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG
="no"
11502 PKG_CONFIG
=$ac_cv_path_PKG_CONFIG
11503 if test -n "$PKG_CONFIG"; then
11504 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5
11505 $as_echo "$PKG_CONFIG" >&6; }
11507 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11508 $as_echo "no" >&6; }
11513 if test "$PKG_CONFIG" = "no" ; then
11516 PKG_CONFIG_MIN_VERSION
=0.9.0
11517 if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
11518 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for xft >= 0.13.0" >&5
11519 $as_echo_n "checking for xft >= 0.13.0... " >&6; }
11521 if $PKG_CONFIG --exists "xft >= 0.13.0" 2>&5; then
11522 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11523 $as_echo "yes" >&6; }
11526 { $as_echo "$as_me:${as_lineno-$LINENO}: checking XFT_CFLAGS" >&5
11527 $as_echo_n "checking XFT_CFLAGS... " >&6; }
11528 XFT_CFLAGS
=`$PKG_CONFIG --cflags "xft >= 0.13.0"|sed -e 's,///*,/,g'`
11529 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $XFT_CFLAGS" >&5
11530 $as_echo "$XFT_CFLAGS" >&6; }
11532 { $as_echo "$as_me:${as_lineno-$LINENO}: checking XFT_LIBS" >&5
11533 $as_echo_n "checking XFT_LIBS... " >&6; }
11534 XFT_LIBS
=`$PKG_CONFIG --libs "xft >= 0.13.0"|sed -e 's,///*,/,g'`
11535 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $XFT_LIBS" >&5
11536 $as_echo "$XFT_LIBS" >&6; }
11538 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11539 $as_echo "no" >&6; }
11542 ## If we have a custom action on failure, don't print errors, but
11543 ## do set a variable so people can do so.
11544 XFT_PKG_ERRORS
=`$PKG_CONFIG --errors-to-stdout --print-errors "xft >= 0.13.0"`
11551 echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
11552 echo "*** See http://www.freedesktop.org/software/pkgconfig"
11556 if test $succeeded = yes; then
11562 ## Because xftfont.c uses XRenderQueryExtension, we also
11563 ## need to link to -lXrender.
11565 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for XRenderQueryExtension in -lXrender" >&5
11566 $as_echo_n "checking for XRenderQueryExtension in -lXrender... " >&6; }
11567 if ${ac_cv_lib_Xrender_XRenderQueryExtension+:} false
; then :
11568 $as_echo_n "(cached) " >&6
11570 ac_check_lib_save_LIBS
=$LIBS
11571 LIBS
="-lXrender $LIBS"
11572 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
11573 /* end confdefs.h. */
11575 /* Override any GCC internal prototype to avoid an error.
11576 Use char because int might match the return type of a GCC
11577 builtin and then its argument prototype would still apply. */
11581 char XRenderQueryExtension ();
11585 return XRenderQueryExtension ();
11590 if ac_fn_c_try_link
"$LINENO"; then :
11591 ac_cv_lib_Xrender_XRenderQueryExtension
=yes
11593 ac_cv_lib_Xrender_XRenderQueryExtension
=no
11595 rm -f core conftest.err conftest.
$ac_objext \
11596 conftest
$ac_exeext conftest.
$ac_ext
11597 LIBS
=$ac_check_lib_save_LIBS
11599 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_Xrender_XRenderQueryExtension" >&5
11600 $as_echo "$ac_cv_lib_Xrender_XRenderQueryExtension" >&6; }
11601 if test "x$ac_cv_lib_Xrender_XRenderQueryExtension" = xyes
; then :
11605 if test "$HAVE_XFT" != no
&& test "$HAVE_XRENDER" != no
; then
11606 OLD_CPPFLAGS
="$CPPFLAGS"
11607 OLD_CFLAGS
="$CFLAGS"
11609 CPPFLAGS
="$CPPFLAGS $XFT_CFLAGS"
11610 CFLAGS
="$CFLAGS $XFT_CFLAGS"
11611 XFT_LIBS
="-lXrender $XFT_LIBS"
11612 LIBS
="$XFT_LIBS $LIBS"
11613 ac_fn_c_check_header_mongrel
"$LINENO" "X11/Xft/Xft.h" "ac_cv_header_X11_Xft_Xft_h" "$ac_includes_default"
11614 if test "x$ac_cv_header_X11_Xft_Xft_h" = xyes
; then :
11615 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for XftFontOpen in -lXft" >&5
11616 $as_echo_n "checking for XftFontOpen in -lXft... " >&6; }
11617 if ${ac_cv_lib_Xft_XftFontOpen+:} false
; then :
11618 $as_echo_n "(cached) " >&6
11620 ac_check_lib_save_LIBS
=$LIBS
11621 LIBS
="-lXft $XFT_LIBS $LIBS"
11622 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
11623 /* end confdefs.h. */
11625 /* Override any GCC internal prototype to avoid an error.
11626 Use char because int might match the return type of a GCC
11627 builtin and then its argument prototype would still apply. */
11631 char XftFontOpen ();
11635 return XftFontOpen ();
11640 if ac_fn_c_try_link
"$LINENO"; then :
11641 ac_cv_lib_Xft_XftFontOpen
=yes
11643 ac_cv_lib_Xft_XftFontOpen
=no
11645 rm -f core conftest.err conftest.
$ac_objext \
11646 conftest
$ac_exeext conftest.
$ac_ext
11647 LIBS
=$ac_check_lib_save_LIBS
11649 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_Xft_XftFontOpen" >&5
11650 $as_echo "$ac_cv_lib_Xft_XftFontOpen" >&6; }
11651 if test "x$ac_cv_lib_Xft_XftFontOpen" = xyes
; then :
11659 if test "${HAVE_XFT}" = "yes"; then
11661 $as_echo "#define HAVE_XFT 1" >>confdefs.h
11664 C_SWITCH_X_SITE
="$C_SWITCH_X_SITE $XFT_CFLAGS"
11666 CPPFLAGS
="$OLD_CPPFLAGS"
11667 CFLAGS
="$OLD_CFLAGS"
11669 fi # "${HAVE_XFT}" = "yes"
11670 fi # "$HAVE_XFT" != no
11671 fi # "x${with_xft}" != "xno"
11673 if test "$HAVE_XFT" != "yes"; then
11677 ## We used to allow building with FreeType and without Xft.
11678 ## However, the ftx font backend driver is not in good shape.
11679 HAVE_FREETYPE
=$HAVE_XFT
11682 if test "${HAVE_FREETYPE}" = "yes"; then
11684 $as_echo "#define HAVE_FREETYPE 1" >>confdefs.h
11686 if test "${with_libotf}" != "no"; then
11690 # Extract the first word of "pkg-config", so it can be a program name with args.
11691 set dummy pkg-config
; ac_word
=$2
11692 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11693 $as_echo_n "checking for $ac_word... " >&6; }
11694 if ${ac_cv_path_PKG_CONFIG+:} false
; then :
11695 $as_echo_n "(cached) " >&6
11697 case $PKG_CONFIG in
11699 ac_cv_path_PKG_CONFIG
="$PKG_CONFIG" # Let the user override the test with a path.
11702 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
11703 for as_dir
in $PATH
11706 test -z "$as_dir" && as_dir
=.
11707 for ac_exec_ext
in '' $ac_executable_extensions; do
11708 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11709 ac_cv_path_PKG_CONFIG
="$as_dir/$ac_word$ac_exec_ext"
11710 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11717 test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG
="no"
11721 PKG_CONFIG
=$ac_cv_path_PKG_CONFIG
11722 if test -n "$PKG_CONFIG"; then
11723 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5
11724 $as_echo "$PKG_CONFIG" >&6; }
11726 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11727 $as_echo "no" >&6; }
11732 if test "$PKG_CONFIG" = "no" ; then
11735 PKG_CONFIG_MIN_VERSION
=0.9.0
11736 if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
11737 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libotf" >&5
11738 $as_echo_n "checking for libotf... " >&6; }
11740 if $PKG_CONFIG --exists "libotf" 2>&5; then
11741 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11742 $as_echo "yes" >&6; }
11745 { $as_echo "$as_me:${as_lineno-$LINENO}: checking LIBOTF_CFLAGS" >&5
11746 $as_echo_n "checking LIBOTF_CFLAGS... " >&6; }
11747 LIBOTF_CFLAGS
=`$PKG_CONFIG --cflags "libotf"|sed -e 's,///*,/,g'`
11748 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIBOTF_CFLAGS" >&5
11749 $as_echo "$LIBOTF_CFLAGS" >&6; }
11751 { $as_echo "$as_me:${as_lineno-$LINENO}: checking LIBOTF_LIBS" >&5
11752 $as_echo_n "checking LIBOTF_LIBS... " >&6; }
11753 LIBOTF_LIBS
=`$PKG_CONFIG --libs "libotf"|sed -e 's,///*,/,g'`
11754 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIBOTF_LIBS" >&5
11755 $as_echo "$LIBOTF_LIBS" >&6; }
11757 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11758 $as_echo "no" >&6; }
11761 ## If we have a custom action on failure, don't print errors, but
11762 ## do set a variable so people can do so.
11763 LIBOTF_PKG_ERRORS
=`$PKG_CONFIG --errors-to-stdout --print-errors "libotf"`
11770 echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
11771 echo "*** See http://www.freedesktop.org/software/pkgconfig"
11775 if test $succeeded = yes; then
11781 if test "$HAVE_LIBOTF" = "yes"; then
11783 $as_echo "#define HAVE_LIBOTF 1" >>confdefs.h
11785 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for OTF_get_variation_glyphs in -lotf" >&5
11786 $as_echo_n "checking for OTF_get_variation_glyphs in -lotf... " >&6; }
11787 if ${ac_cv_lib_otf_OTF_get_variation_glyphs+:} false
; then :
11788 $as_echo_n "(cached) " >&6
11790 ac_check_lib_save_LIBS
=$LIBS
11792 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
11793 /* end confdefs.h. */
11795 /* Override any GCC internal prototype to avoid an error.
11796 Use char because int might match the return type of a GCC
11797 builtin and then its argument prototype would still apply. */
11801 char OTF_get_variation_glyphs ();
11805 return OTF_get_variation_glyphs ();
11810 if ac_fn_c_try_link
"$LINENO"; then :
11811 ac_cv_lib_otf_OTF_get_variation_glyphs
=yes
11813 ac_cv_lib_otf_OTF_get_variation_glyphs
=no
11815 rm -f core conftest.err conftest.
$ac_objext \
11816 conftest
$ac_exeext conftest.
$ac_ext
11817 LIBS
=$ac_check_lib_save_LIBS
11819 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_otf_OTF_get_variation_glyphs" >&5
11820 $as_echo "$ac_cv_lib_otf_OTF_get_variation_glyphs" >&6; }
11821 if test "x$ac_cv_lib_otf_OTF_get_variation_glyphs" = xyes
; then :
11822 HAVE_OTF_GET_VARIATION_GLYPHS
=yes
11824 HAVE_OTF_GET_VARIATION_GLYPHS
=no
11827 if test "${HAVE_OTF_GET_VARIATION_GLYPHS}" = "yes"; then
11829 $as_echo "#define HAVE_OTF_GET_VARIATION_GLYPHS 1" >>confdefs.h
11837 if test "${HAVE_LIBOTF}" = yes; then
11838 if test "${with_m17n_flt}" != "no"; then
11842 # Extract the first word of "pkg-config", so it can be a program name with args.
11843 set dummy pkg-config
; ac_word
=$2
11844 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11845 $as_echo_n "checking for $ac_word... " >&6; }
11846 if ${ac_cv_path_PKG_CONFIG+:} false
; then :
11847 $as_echo_n "(cached) " >&6
11849 case $PKG_CONFIG in
11851 ac_cv_path_PKG_CONFIG
="$PKG_CONFIG" # Let the user override the test with a path.
11854 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
11855 for as_dir
in $PATH
11858 test -z "$as_dir" && as_dir
=.
11859 for ac_exec_ext
in '' $ac_executable_extensions; do
11860 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11861 ac_cv_path_PKG_CONFIG
="$as_dir/$ac_word$ac_exec_ext"
11862 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11869 test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG
="no"
11873 PKG_CONFIG
=$ac_cv_path_PKG_CONFIG
11874 if test -n "$PKG_CONFIG"; then
11875 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5
11876 $as_echo "$PKG_CONFIG" >&6; }
11878 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11879 $as_echo "no" >&6; }
11884 if test "$PKG_CONFIG" = "no" ; then
11887 PKG_CONFIG_MIN_VERSION
=0.9.0
11888 if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
11889 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for m17n-flt" >&5
11890 $as_echo_n "checking for m17n-flt... " >&6; }
11892 if $PKG_CONFIG --exists "m17n-flt" 2>&5; then
11893 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11894 $as_echo "yes" >&6; }
11897 { $as_echo "$as_me:${as_lineno-$LINENO}: checking M17N_FLT_CFLAGS" >&5
11898 $as_echo_n "checking M17N_FLT_CFLAGS... " >&6; }
11899 M17N_FLT_CFLAGS
=`$PKG_CONFIG --cflags "m17n-flt"|sed -e 's,///*,/,g'`
11900 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $M17N_FLT_CFLAGS" >&5
11901 $as_echo "$M17N_FLT_CFLAGS" >&6; }
11903 { $as_echo "$as_me:${as_lineno-$LINENO}: checking M17N_FLT_LIBS" >&5
11904 $as_echo_n "checking M17N_FLT_LIBS... " >&6; }
11905 M17N_FLT_LIBS
=`$PKG_CONFIG --libs "m17n-flt"|sed -e 's,///*,/,g'`
11906 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $M17N_FLT_LIBS" >&5
11907 $as_echo "$M17N_FLT_LIBS" >&6; }
11909 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11910 $as_echo "no" >&6; }
11913 ## If we have a custom action on failure, don't print errors, but
11914 ## do set a variable so people can do so.
11915 M17N_FLT_PKG_ERRORS
=`$PKG_CONFIG --errors-to-stdout --print-errors "m17n-flt"`
11922 echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
11923 echo "*** See http://www.freedesktop.org/software/pkgconfig"
11927 if test $succeeded = yes; then
11933 if test "$HAVE_M17N_FLT" = "yes"; then
11935 $as_echo "#define HAVE_M17N_FLT 1" >>confdefs.h
11947 ### End of font-backend (under X11) section.
11958 ### Use -lXpm if available, unless `--with-xpm=no'.
11961 if test "${HAVE_X11}" = "yes"; then
11962 if test "${with_xpm}" != "no"; then
11963 ac_fn_c_check_header_mongrel
"$LINENO" "X11/xpm.h" "ac_cv_header_X11_xpm_h" "$ac_includes_default"
11964 if test "x$ac_cv_header_X11_xpm_h" = xyes
; then :
11965 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for XpmReadFileToPixmap in -lXpm" >&5
11966 $as_echo_n "checking for XpmReadFileToPixmap in -lXpm... " >&6; }
11967 if ${ac_cv_lib_Xpm_XpmReadFileToPixmap+:} false
; then :
11968 $as_echo_n "(cached) " >&6
11970 ac_check_lib_save_LIBS
=$LIBS
11971 LIBS
="-lXpm -lX11 $LIBS"
11972 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
11973 /* end confdefs.h. */
11975 /* Override any GCC internal prototype to avoid an error.
11976 Use char because int might match the return type of a GCC
11977 builtin and then its argument prototype would still apply. */
11981 char XpmReadFileToPixmap ();
11985 return XpmReadFileToPixmap ();
11990 if ac_fn_c_try_link
"$LINENO"; then :
11991 ac_cv_lib_Xpm_XpmReadFileToPixmap
=yes
11993 ac_cv_lib_Xpm_XpmReadFileToPixmap
=no
11995 rm -f core conftest.err conftest.
$ac_objext \
11996 conftest
$ac_exeext conftest.
$ac_ext
11997 LIBS
=$ac_check_lib_save_LIBS
11999 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_Xpm_XpmReadFileToPixmap" >&5
12000 $as_echo "$ac_cv_lib_Xpm_XpmReadFileToPixmap" >&6; }
12001 if test "x$ac_cv_lib_Xpm_XpmReadFileToPixmap" = xyes
; then :
12008 if test "${HAVE_XPM}" = "yes"; then
12009 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for XpmReturnAllocPixels preprocessor define" >&5
12010 $as_echo_n "checking for XpmReturnAllocPixels preprocessor define... " >&6; }
12011 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
12012 /* end confdefs.h. */
12013 #include "X11/xpm.h"
12014 #ifndef XpmReturnAllocPixels
12015 no_return_alloc_pixels
12019 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
12020 $EGREP "no_return_alloc_pixels" >/dev
/null
2>&1; then :
12028 if test "${HAVE_XPM}" = "yes"; then
12029 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
12030 $as_echo "yes" >&6; }
12032 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12033 $as_echo "no" >&6; }
12038 if test "${HAVE_XPM}" = "yes"; then
12040 $as_echo "#define HAVE_XPM 1" >>confdefs.h
12047 ### Use -ljpeg if available, unless `--with-jpeg=no'.
12050 if test "${HAVE_X11}" = "yes"; then
12051 if test "${with_jpeg}" != "no"; then
12052 ac_fn_c_check_header_mongrel
"$LINENO" "jerror.h" "ac_cv_header_jerror_h" "$ac_includes_default"
12053 if test "x$ac_cv_header_jerror_h" = xyes
; then :
12054 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for jpeg_destroy_compress in -ljpeg" >&5
12055 $as_echo_n "checking for jpeg_destroy_compress in -ljpeg... " >&6; }
12056 if ${ac_cv_lib_jpeg_jpeg_destroy_compress+:} false
; then :
12057 $as_echo_n "(cached) " >&6
12059 ac_check_lib_save_LIBS
=$LIBS
12060 LIBS
="-ljpeg $LIBS"
12061 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
12062 /* end confdefs.h. */
12064 /* Override any GCC internal prototype to avoid an error.
12065 Use char because int might match the return type of a GCC
12066 builtin and then its argument prototype would still apply. */
12070 char jpeg_destroy_compress ();
12074 return jpeg_destroy_compress ();
12079 if ac_fn_c_try_link
"$LINENO"; then :
12080 ac_cv_lib_jpeg_jpeg_destroy_compress
=yes
12082 ac_cv_lib_jpeg_jpeg_destroy_compress
=no
12084 rm -f core conftest.err conftest.
$ac_objext \
12085 conftest
$ac_exeext conftest.
$ac_ext
12086 LIBS
=$ac_check_lib_save_LIBS
12088 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_jpeg_jpeg_destroy_compress" >&5
12089 $as_echo "$ac_cv_lib_jpeg_jpeg_destroy_compress" >&6; }
12090 if test "x$ac_cv_lib_jpeg_jpeg_destroy_compress" = xyes
; then :
12099 if test "${HAVE_JPEG}" = "yes"; then
12100 $as_echo "#define HAVE_JPEG 1" >>confdefs.h
12102 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
12103 /* end confdefs.h. */
12104 #include <jpeglib.h>
12105 version=JPEG_LIB_VERSION
12108 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
12109 $EGREP "version= *(6[2-9]|[7-9][0-9])" >/dev
/null
2>&1; then :
12110 $as_echo "#define HAVE_JPEG 1" >>confdefs.h
12113 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: libjpeg found, but not version 6b or later" >&5
12114 $as_echo "$as_me: WARNING: libjpeg found, but not version 6b or later" >&2;}
12120 if test "${HAVE_JPEG}" = "yes"; then
12126 ### Use -lpng if available, unless `--with-png=no'.
12129 if test "${HAVE_X11}" = "yes"; then
12130 if test "${with_png}" != "no"; then
12131 # Debian unstable as of July 2003 has multiple libpngs, and puts png.h
12132 # in /usr/include/libpng.
12133 for ac_header
in png.h libpng
/png.h
12135 as_ac_Header
=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
12136 ac_fn_c_check_header_mongrel
"$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
12137 if eval test \"x\$
"$as_ac_Header"\" = x
"yes"; then :
12138 cat >>confdefs.h
<<_ACEOF
12139 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
12146 if test "$ac_cv_header_png_h" = yes ||
test "$ac_cv_header_libpng_png_h" = yes ; then
12147 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for png_get_channels in -lpng" >&5
12148 $as_echo_n "checking for png_get_channels in -lpng... " >&6; }
12149 if ${ac_cv_lib_png_png_get_channels+:} false
; then :
12150 $as_echo_n "(cached) " >&6
12152 ac_check_lib_save_LIBS
=$LIBS
12153 LIBS
="-lpng -lz -lm $LIBS"
12154 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
12155 /* end confdefs.h. */
12157 /* Override any GCC internal prototype to avoid an error.
12158 Use char because int might match the return type of a GCC
12159 builtin and then its argument prototype would still apply. */
12163 char png_get_channels ();
12167 return png_get_channels ();
12172 if ac_fn_c_try_link
"$LINENO"; then :
12173 ac_cv_lib_png_png_get_channels
=yes
12175 ac_cv_lib_png_png_get_channels
=no
12177 rm -f core conftest.err conftest.
$ac_objext \
12178 conftest
$ac_exeext conftest.
$ac_ext
12179 LIBS
=$ac_check_lib_save_LIBS
12181 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_png_png_get_channels" >&5
12182 $as_echo "$ac_cv_lib_png_png_get_channels" >&6; }
12183 if test "x$ac_cv_lib_png_png_get_channels" = xyes
; then :
12190 if test "${HAVE_PNG}" = "yes"; then
12192 $as_echo "#define HAVE_PNG 1" >>confdefs.h
12194 LIBPNG
="-lpng -lz -lm"
12199 ### Use -ltiff if available, unless `--with-tiff=no'.
12202 if test "${HAVE_X11}" = "yes"; then
12203 if test "${with_tiff}" != "no"; then
12204 ac_fn_c_check_header_mongrel
"$LINENO" "tiffio.h" "ac_cv_header_tiffio_h" "$ac_includes_default"
12205 if test "x$ac_cv_header_tiffio_h" = xyes
; then :
12207 # At least one tiff package requires the jpeg library.
12208 if test "${HAVE_JPEG}" = yes; then tifflibs
="-ljpeg $tifflibs"; fi
12209 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for TIFFGetVersion in -ltiff" >&5
12210 $as_echo_n "checking for TIFFGetVersion in -ltiff... " >&6; }
12211 if ${ac_cv_lib_tiff_TIFFGetVersion+:} false
; then :
12212 $as_echo_n "(cached) " >&6
12214 ac_check_lib_save_LIBS
=$LIBS
12215 LIBS
="-ltiff $tifflibs $LIBS"
12216 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
12217 /* end confdefs.h. */
12219 /* Override any GCC internal prototype to avoid an error.
12220 Use char because int might match the return type of a GCC
12221 builtin and then its argument prototype would still apply. */
12225 char TIFFGetVersion ();
12229 return TIFFGetVersion ();
12234 if ac_fn_c_try_link
"$LINENO"; then :
12235 ac_cv_lib_tiff_TIFFGetVersion
=yes
12237 ac_cv_lib_tiff_TIFFGetVersion
=no
12239 rm -f core conftest.err conftest.
$ac_objext \
12240 conftest
$ac_exeext conftest.
$ac_ext
12241 LIBS
=$ac_check_lib_save_LIBS
12243 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_tiff_TIFFGetVersion" >&5
12244 $as_echo "$ac_cv_lib_tiff_TIFFGetVersion" >&6; }
12245 if test "x$ac_cv_lib_tiff_TIFFGetVersion" = xyes
; then :
12254 if test "${HAVE_TIFF}" = "yes"; then
12256 $as_echo "#define HAVE_TIFF 1" >>confdefs.h
12263 ### Use -lgif or -lungif if available, unless `--with-gif=no'.
12266 if test "${HAVE_X11}" = "yes" && test "${with_gif}" != "no"; then
12267 ac_fn_c_check_header_mongrel
"$LINENO" "gif_lib.h" "ac_cv_header_gif_lib_h" "$ac_includes_default"
12268 if test "x$ac_cv_header_gif_lib_h" = xyes
; then :
12269 # EGifPutExtensionLast only exists from version libungif-4.1.0b1.
12270 # Earlier versions can crash Emacs.
12271 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for EGifPutExtensionLast in -lgif" >&5
12272 $as_echo_n "checking for EGifPutExtensionLast in -lgif... " >&6; }
12273 if ${ac_cv_lib_gif_EGifPutExtensionLast+:} false
; then :
12274 $as_echo_n "(cached) " >&6
12276 ac_check_lib_save_LIBS
=$LIBS
12278 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
12279 /* end confdefs.h. */
12281 /* Override any GCC internal prototype to avoid an error.
12282 Use char because int might match the return type of a GCC
12283 builtin and then its argument prototype would still apply. */
12287 char EGifPutExtensionLast ();
12291 return EGifPutExtensionLast ();
12296 if ac_fn_c_try_link
"$LINENO"; then :
12297 ac_cv_lib_gif_EGifPutExtensionLast
=yes
12299 ac_cv_lib_gif_EGifPutExtensionLast
=no
12301 rm -f core conftest.err conftest.
$ac_objext \
12302 conftest
$ac_exeext conftest.
$ac_ext
12303 LIBS
=$ac_check_lib_save_LIBS
12305 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_gif_EGifPutExtensionLast" >&5
12306 $as_echo "$ac_cv_lib_gif_EGifPutExtensionLast" >&6; }
12307 if test "x$ac_cv_lib_gif_EGifPutExtensionLast" = xyes
; then :
12317 if test "$HAVE_GIF" = yes; then
12319 elif test "$HAVE_GIF" = maybe
; then
12320 # If gif_lib.h but no libgif, try libungif.
12321 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for EGifPutExtensionLast in -lungif" >&5
12322 $as_echo_n "checking for EGifPutExtensionLast in -lungif... " >&6; }
12323 if ${ac_cv_lib_ungif_EGifPutExtensionLast+:} false
; then :
12324 $as_echo_n "(cached) " >&6
12326 ac_check_lib_save_LIBS
=$LIBS
12327 LIBS
="-lungif $LIBS"
12328 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
12329 /* end confdefs.h. */
12331 /* Override any GCC internal prototype to avoid an error.
12332 Use char because int might match the return type of a GCC
12333 builtin and then its argument prototype would still apply. */
12337 char EGifPutExtensionLast ();
12341 return EGifPutExtensionLast ();
12346 if ac_fn_c_try_link
"$LINENO"; then :
12347 ac_cv_lib_ungif_EGifPutExtensionLast
=yes
12349 ac_cv_lib_ungif_EGifPutExtensionLast
=no
12351 rm -f core conftest.err conftest.
$ac_objext \
12352 conftest
$ac_exeext conftest.
$ac_ext
12353 LIBS
=$ac_check_lib_save_LIBS
12355 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_ungif_EGifPutExtensionLast" >&5
12356 $as_echo "$ac_cv_lib_ungif_EGifPutExtensionLast" >&6; }
12357 if test "x$ac_cv_lib_ungif_EGifPutExtensionLast" = xyes
; then :
12363 test "$HAVE_GIF" = yes && LIBGIF
=-lungif
12366 if test "${HAVE_GIF}" = "yes"; then
12368 $as_echo "#define HAVE_GIF 1" >>confdefs.h
12374 if test "${HAVE_X11}" = "yes"; then
12377 test "${with_xpm}" != "no" && test "${HAVE_XPM}" != "yes" &&
12378 MISSING
="libXpm" && WITH_NO
="--with-xpm=no"
12379 test "${with_jpeg}" != "no" && test "${HAVE_JPEG}" != "yes" &&
12380 MISSING
="$MISSING libjpeg" && WITH_NO
="$WITH_NO --with-jpeg=no"
12381 test "${with_png}" != "no" && test "${HAVE_PNG}" != "yes" &&
12382 MISSING
="$MISSING libpng" && WITH_NO
="$WITH_NO --with-png=no"
12383 test "${with_gif}" != "no" && test "${HAVE_GIF}" != "yes" &&
12384 MISSING
="$MISSING libgif/libungif" && WITH_NO
="$WITH_NO --with-gif=no"
12385 test "${with_tiff}" != "no" && test "${HAVE_TIFF}" != "yes" &&
12386 MISSING
="$MISSING libtiff" && WITH_NO
="$WITH_NO --with-tiff=no"
12388 if test "X${MISSING}" != X
; then
12389 as_fn_error $?
"The following required libraries were not found:
12391 Maybe some development libraries/packages are missing?
12392 If you don't want to link with them give
12394 as options to configure" "$LINENO" 5
12398 ### Use -lgpm if available, unless `--with-gpm=no'.
12402 if test "${with_gpm}" != "no"; then
12403 ac_fn_c_check_header_mongrel
"$LINENO" "gpm.h" "ac_cv_header_gpm_h" "$ac_includes_default"
12404 if test "x$ac_cv_header_gpm_h" = xyes
; then :
12405 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Gpm_Open in -lgpm" >&5
12406 $as_echo_n "checking for Gpm_Open in -lgpm... " >&6; }
12407 if ${ac_cv_lib_gpm_Gpm_Open+:} false
; then :
12408 $as_echo_n "(cached) " >&6
12410 ac_check_lib_save_LIBS
=$LIBS
12412 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
12413 /* end confdefs.h. */
12415 /* Override any GCC internal prototype to avoid an error.
12416 Use char because int might match the return type of a GCC
12417 builtin and then its argument prototype would still apply. */
12425 return Gpm_Open ();
12430 if ac_fn_c_try_link
"$LINENO"; then :
12431 ac_cv_lib_gpm_Gpm_Open
=yes
12433 ac_cv_lib_gpm_Gpm_Open
=no
12435 rm -f core conftest.err conftest.
$ac_objext \
12436 conftest
$ac_exeext conftest.
$ac_ext
12437 LIBS
=$ac_check_lib_save_LIBS
12439 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_gpm_Gpm_Open" >&5
12440 $as_echo "$ac_cv_lib_gpm_Gpm_Open" >&6; }
12441 if test "x$ac_cv_lib_gpm_Gpm_Open" = xyes
; then :
12449 if test "${HAVE_GPM}" = "yes"; then
12451 $as_echo "#define HAVE_GPM 1" >>confdefs.h
12454 ## May be reset below.
12455 MOUSE_SUPPORT
="\$(GPM_MOUSE_SUPPORT)"
12460 ac_fn_c_check_header_mongrel
"$LINENO" "malloc/malloc.h" "ac_cv_header_malloc_malloc_h" "$ac_includes_default"
12461 if test "x$ac_cv_header_malloc_malloc_h" = xyes
; then :
12463 $as_echo "#define HAVE_MALLOC_MALLOC_H 1" >>confdefs.h
12470 ### Use NeXTstep API to implement GUI.
12471 if test "${HAVE_NS}" = "yes"; then
12473 $as_echo "#define HAVE_NS 1" >>confdefs.h
12475 if test "${NS_IMPL_COCOA}" = "yes"; then
12477 $as_echo "#define NS_IMPL_COCOA 1" >>confdefs.h
12481 if test "${NS_IMPL_GNUSTEP}" = "yes"; then
12483 $as_echo "#define NS_IMPL_GNUSTEP 1" >>confdefs.h
12485 # See also .m.o rule in Makefile.in */
12486 # FIXME: are all these flags really needed? Document here why. */
12487 C_SWITCH_X_SYSTEM
="-D_REENTRANT -fPIC -fno-strict-aliasing"
12488 GNU_OBJC_CFLAGS
="-fgnu-runtime -Wno-import -fconstant-string-class=NSConstantString -DGNUSTEP_BASE_LIBRARY=1 -DGNU_GUI_LIBRARY=1 -DGNU_RUNTIME=1 -DGSWARN -DGSDIAGNOSE"
12490 if test "${NS_HAVE_NSINTEGER}" = "yes"; then
12492 $as_echo "#define NS_HAVE_NSINTEGER 1" >>confdefs.h
12495 # We also have mouse menus.
12501 ### Use session management (-lSM -lICE) if available
12504 if test "${HAVE_X11}" = "yes"; then
12505 ac_fn_c_check_header_mongrel
"$LINENO" "X11/SM/SMlib.h" "ac_cv_header_X11_SM_SMlib_h" "$ac_includes_default"
12506 if test "x$ac_cv_header_X11_SM_SMlib_h" = xyes
; then :
12507 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for SmcOpenConnection in -lSM" >&5
12508 $as_echo_n "checking for SmcOpenConnection in -lSM... " >&6; }
12509 if ${ac_cv_lib_SM_SmcOpenConnection+:} false
; then :
12510 $as_echo_n "(cached) " >&6
12512 ac_check_lib_save_LIBS
=$LIBS
12513 LIBS
="-lSM -lICE $LIBS"
12514 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
12515 /* end confdefs.h. */
12517 /* Override any GCC internal prototype to avoid an error.
12518 Use char because int might match the return type of a GCC
12519 builtin and then its argument prototype would still apply. */
12523 char SmcOpenConnection ();
12527 return SmcOpenConnection ();
12532 if ac_fn_c_try_link
"$LINENO"; then :
12533 ac_cv_lib_SM_SmcOpenConnection
=yes
12535 ac_cv_lib_SM_SmcOpenConnection
=no
12537 rm -f core conftest.err conftest.
$ac_objext \
12538 conftest
$ac_exeext conftest.
$ac_ext
12539 LIBS
=$ac_check_lib_save_LIBS
12541 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_SM_SmcOpenConnection" >&5
12542 $as_echo "$ac_cv_lib_SM_SmcOpenConnection" >&6; }
12543 if test "x$ac_cv_lib_SM_SmcOpenConnection" = xyes
; then :
12551 if test "${HAVE_X_SM}" = "yes"; then
12553 $as_echo "#define HAVE_X_SM 1" >>confdefs.h
12555 LIBXSM
="-lSM -lICE"
12558 *) LIBS
="$LIBXSM $LIBS" ;;
12564 ### Use libxml (-lxml2) if available
12565 if test "${with_xml2}" != "no"; then
12566 ### I'm not sure what the version number should be, so I just guessed.
12570 # Extract the first word of "pkg-config", so it can be a program name with args.
12571 set dummy pkg-config
; ac_word
=$2
12572 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12573 $as_echo_n "checking for $ac_word... " >&6; }
12574 if ${ac_cv_path_PKG_CONFIG+:} false
; then :
12575 $as_echo_n "(cached) " >&6
12577 case $PKG_CONFIG in
12579 ac_cv_path_PKG_CONFIG
="$PKG_CONFIG" # Let the user override the test with a path.
12582 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
12583 for as_dir
in $PATH
12586 test -z "$as_dir" && as_dir
=.
12587 for ac_exec_ext
in '' $ac_executable_extensions; do
12588 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
12589 ac_cv_path_PKG_CONFIG
="$as_dir/$ac_word$ac_exec_ext"
12590 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12597 test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG
="no"
12601 PKG_CONFIG
=$ac_cv_path_PKG_CONFIG
12602 if test -n "$PKG_CONFIG"; then
12603 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5
12604 $as_echo "$PKG_CONFIG" >&6; }
12606 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12607 $as_echo "no" >&6; }
12612 if test "$PKG_CONFIG" = "no" ; then
12615 PKG_CONFIG_MIN_VERSION
=0.9.0
12616 if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
12617 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libxml-2.0 > 2.6.17" >&5
12618 $as_echo_n "checking for libxml-2.0 > 2.6.17... " >&6; }
12620 if $PKG_CONFIG --exists "libxml-2.0 > 2.6.17" 2>&5; then
12621 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
12622 $as_echo "yes" >&6; }
12625 { $as_echo "$as_me:${as_lineno-$LINENO}: checking LIBXML2_CFLAGS" >&5
12626 $as_echo_n "checking LIBXML2_CFLAGS... " >&6; }
12627 LIBXML2_CFLAGS
=`$PKG_CONFIG --cflags "libxml-2.0 > 2.6.17"|sed -e 's,///*,/,g'`
12628 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIBXML2_CFLAGS" >&5
12629 $as_echo "$LIBXML2_CFLAGS" >&6; }
12631 { $as_echo "$as_me:${as_lineno-$LINENO}: checking LIBXML2_LIBS" >&5
12632 $as_echo_n "checking LIBXML2_LIBS... " >&6; }
12633 LIBXML2_LIBS
=`$PKG_CONFIG --libs "libxml-2.0 > 2.6.17"|sed -e 's,///*,/,g'`
12634 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIBXML2_LIBS" >&5
12635 $as_echo "$LIBXML2_LIBS" >&6; }
12637 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12638 $as_echo "no" >&6; }
12641 ## If we have a custom action on failure, don't print errors, but
12642 ## do set a variable so people can do so.
12643 LIBXML2_PKG_ERRORS
=`$PKG_CONFIG --errors-to-stdout --print-errors "libxml-2.0 > 2.6.17"`
12650 echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
12651 echo "*** See http://www.freedesktop.org/software/pkgconfig"
12655 if test $succeeded = yes; then
12661 if test "${HAVE_LIBXML2}" = "yes"; then
12662 LIBS
="$LIBXML2_LIBS $LIBS"
12663 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for htmlReadMemory in -lxml2" >&5
12664 $as_echo_n "checking for htmlReadMemory in -lxml2... " >&6; }
12665 if ${ac_cv_lib_xml2_htmlReadMemory+:} false
; then :
12666 $as_echo_n "(cached) " >&6
12668 ac_check_lib_save_LIBS
=$LIBS
12669 LIBS
="-lxml2 $LIBS"
12670 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
12671 /* end confdefs.h. */
12673 /* Override any GCC internal prototype to avoid an error.
12674 Use char because int might match the return type of a GCC
12675 builtin and then its argument prototype would still apply. */
12679 char htmlReadMemory ();
12683 return htmlReadMemory ();
12688 if ac_fn_c_try_link
"$LINENO"; then :
12689 ac_cv_lib_xml2_htmlReadMemory
=yes
12691 ac_cv_lib_xml2_htmlReadMemory
=no
12693 rm -f core conftest.err conftest.
$ac_objext \
12694 conftest
$ac_exeext conftest.
$ac_ext
12695 LIBS
=$ac_check_lib_save_LIBS
12697 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_xml2_htmlReadMemory" >&5
12698 $as_echo "$ac_cv_lib_xml2_htmlReadMemory" >&6; }
12699 if test "x$ac_cv_lib_xml2_htmlReadMemory" = xyes
; then :
12705 if test "${HAVE_LIBXML2}" = "yes"; then
12707 $as_echo "#define HAVE_LIBXML2 1" >>confdefs.h
12718 # If netdb.h doesn't declare h_errno, we must declare it by hand.
12719 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether netdb declares h_errno" >&5
12720 $as_echo_n "checking whether netdb declares h_errno... " >&6; }
12721 if ${emacs_cv_netdb_declares_h_errno+:} false
; then :
12722 $as_echo_n "(cached) " >&6
12724 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
12725 /* end confdefs.h. */
12735 if ac_fn_c_try_link
"$LINENO"; then :
12736 emacs_cv_netdb_declares_h_errno
=yes
12738 emacs_cv_netdb_declares_h_errno
=no
12740 rm -f core conftest.err conftest.
$ac_objext \
12741 conftest
$ac_exeext conftest.
$ac_ext
12743 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $emacs_cv_netdb_declares_h_errno" >&5
12744 $as_echo "$emacs_cv_netdb_declares_h_errno" >&6; }
12745 if test $emacs_cv_netdb_declares_h_errno = yes; then
12747 $as_echo "#define HAVE_H_ERRNO 1" >>confdefs.h
12751 ac_fn_c_check_type
"$LINENO" "size_t" "ac_cv_type_size_t" "$ac_includes_default"
12752 if test "x$ac_cv_type_size_t" = xyes
; then :
12756 cat >>confdefs.h
<<_ACEOF
12757 #define size_t unsigned int
12762 # The Ultrix 4.2 mips builtin alloca declared by alloca.h only works
12763 # for constant arguments. Useless!
12764 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working alloca.h" >&5
12765 $as_echo_n "checking for working alloca.h... " >&6; }
12766 if ${ac_cv_working_alloca_h+:} false
; then :
12767 $as_echo_n "(cached) " >&6
12769 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
12770 /* end confdefs.h. */
12771 #include <alloca.h>
12775 char *p = (char *) alloca (2 * sizeof (int));
12781 if ac_fn_c_try_link
"$LINENO"; then :
12782 ac_cv_working_alloca_h
=yes
12784 ac_cv_working_alloca_h
=no
12786 rm -f core conftest.err conftest.
$ac_objext \
12787 conftest
$ac_exeext conftest.
$ac_ext
12789 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_working_alloca_h" >&5
12790 $as_echo "$ac_cv_working_alloca_h" >&6; }
12791 if test $ac_cv_working_alloca_h = yes; then
12793 $as_echo "#define HAVE_ALLOCA_H 1" >>confdefs.h
12797 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for alloca" >&5
12798 $as_echo_n "checking for alloca... " >&6; }
12799 if ${ac_cv_func_alloca_works+:} false
; then :
12800 $as_echo_n "(cached) " >&6
12802 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
12803 /* end confdefs.h. */
12805 # define alloca __builtin_alloca
12808 # include <malloc.h>
12809 # define alloca _alloca
12811 # ifdef HAVE_ALLOCA_H
12812 # include <alloca.h>
12817 # ifndef alloca /* predefined by HP cc +Olibcalls */
12818 void *alloca (size_t);
12828 char *p = (char *) alloca (1);
12834 if ac_fn_c_try_link
"$LINENO"; then :
12835 ac_cv_func_alloca_works
=yes
12837 ac_cv_func_alloca_works
=no
12839 rm -f core conftest.err conftest.
$ac_objext \
12840 conftest
$ac_exeext conftest.
$ac_ext
12842 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_alloca_works" >&5
12843 $as_echo "$ac_cv_func_alloca_works" >&6; }
12845 if test $ac_cv_func_alloca_works = yes; then
12847 $as_echo "#define HAVE_ALLOCA 1" >>confdefs.h
12850 # The SVR3 libPW and SVR4 libucb both contain incompatible functions
12851 # that cause trouble. Some versions do not even contain alloca or
12852 # contain a buggy version. If you still want to use their alloca,
12853 # use ar to extract alloca.o from them instead of compiling alloca.c.
12855 ALLOCA
=\
${LIBOBJDIR}alloca.
$ac_objext
12857 $as_echo "#define C_ALLOCA 1" >>confdefs.h
12860 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether \`alloca.c' needs Cray hooks" >&5
12861 $as_echo_n "checking whether \`alloca.c' needs Cray hooks... " >&6; }
12862 if ${ac_cv_os_cray+:} false
; then :
12863 $as_echo_n "(cached) " >&6
12865 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
12866 /* end confdefs.h. */
12867 #if defined CRAY && ! defined CRAY2
12874 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
12875 $EGREP "webecray" >/dev
/null
2>&1; then :
12883 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_os_cray" >&5
12884 $as_echo "$ac_cv_os_cray" >&6; }
12885 if test $ac_cv_os_cray = yes; then
12886 for ac_func
in _getb67 GETB67 getb67
; do
12887 as_ac_var
=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
12888 ac_fn_c_check_func
"$LINENO" "$ac_func" "$as_ac_var"
12889 if eval test \"x\$
"$as_ac_var"\" = x
"yes"; then :
12891 cat >>confdefs.h
<<_ACEOF
12892 #define CRAY_STACKSEG_END $ac_func
12901 { $as_echo "$as_me:${as_lineno-$LINENO}: checking stack direction for C alloca" >&5
12902 $as_echo_n "checking stack direction for C alloca... " >&6; }
12903 if ${ac_cv_c_stack_direction+:} false
; then :
12904 $as_echo_n "(cached) " >&6
12906 if test "$cross_compiling" = yes; then :
12907 ac_cv_c_stack_direction
=0
12909 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
12910 /* end confdefs.h. */
12911 $ac_includes_default
12913 find_stack_direction ()
12915 static char *addr = 0;
12920 return find_stack_direction ();
12923 return (&dummy > addr) ? 1 : -1;
12929 return find_stack_direction () < 0;
12932 if ac_fn_c_try_run
"$LINENO"; then :
12933 ac_cv_c_stack_direction
=1
12935 ac_cv_c_stack_direction
=-1
12937 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
12938 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
12942 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_stack_direction" >&5
12943 $as_echo "$ac_cv_c_stack_direction" >&6; }
12944 cat >>confdefs.h
<<_ACEOF
12945 #define STACK_DIRECTION $ac_cv_c_stack_direction
12952 if test x
"$ac_cv_func_alloca_works" != xyes
; then
12953 as_fn_error $?
"a system implementation of alloca is required " "$LINENO" 5
12956 # fmod, logb, and frexp are found in -lm on most systems.
12957 # On HPUX 9.01, -lm does not contain logb, so check for sqrt.
12958 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sqrt in -lm" >&5
12959 $as_echo_n "checking for sqrt in -lm... " >&6; }
12960 if ${ac_cv_lib_m_sqrt+:} false
; then :
12961 $as_echo_n "(cached) " >&6
12963 ac_check_lib_save_LIBS
=$LIBS
12965 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
12966 /* end confdefs.h. */
12968 /* Override any GCC internal prototype to avoid an error.
12969 Use char because int might match the return type of a GCC
12970 builtin and then its argument prototype would still apply. */
12983 if ac_fn_c_try_link
"$LINENO"; then :
12984 ac_cv_lib_m_sqrt
=yes
12986 ac_cv_lib_m_sqrt
=no
12988 rm -f core conftest.err conftest.
$ac_objext \
12989 conftest
$ac_exeext conftest.
$ac_ext
12990 LIBS
=$ac_check_lib_save_LIBS
12992 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_m_sqrt" >&5
12993 $as_echo "$ac_cv_lib_m_sqrt" >&6; }
12994 if test "x$ac_cv_lib_m_sqrt" = xyes
; then :
12995 cat >>confdefs.h
<<_ACEOF
12996 #define HAVE_LIBM 1
13004 # Check for mail-locking functions in a "mail" library. Probably this should
13005 # have the same check as for liblockfile below.
13006 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for maillock in -lmail" >&5
13007 $as_echo_n "checking for maillock in -lmail... " >&6; }
13008 if ${ac_cv_lib_mail_maillock+:} false
; then :
13009 $as_echo_n "(cached) " >&6
13011 ac_check_lib_save_LIBS
=$LIBS
13012 LIBS
="-lmail $LIBS"
13013 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
13014 /* end confdefs.h. */
13016 /* Override any GCC internal prototype to avoid an error.
13017 Use char because int might match the return type of a GCC
13018 builtin and then its argument prototype would still apply. */
13026 return maillock ();
13031 if ac_fn_c_try_link
"$LINENO"; then :
13032 ac_cv_lib_mail_maillock
=yes
13034 ac_cv_lib_mail_maillock
=no
13036 rm -f core conftest.err conftest.
$ac_objext \
13037 conftest
$ac_exeext conftest.
$ac_ext
13038 LIBS
=$ac_check_lib_save_LIBS
13040 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_mail_maillock" >&5
13041 $as_echo "$ac_cv_lib_mail_maillock" >&6; }
13042 if test "x$ac_cv_lib_mail_maillock" = xyes
; then :
13048 if test $have_mail = yes; then
13050 LIBS
="$LIBS_MAIL $LIBS"
13052 $as_echo "#define HAVE_LIBMAIL 1" >>confdefs.h
13057 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for maillock in -llockfile" >&5
13058 $as_echo_n "checking for maillock in -llockfile... " >&6; }
13059 if ${ac_cv_lib_lockfile_maillock+:} false
; then :
13060 $as_echo_n "(cached) " >&6
13062 ac_check_lib_save_LIBS
=$LIBS
13063 LIBS
="-llockfile $LIBS"
13064 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
13065 /* end confdefs.h. */
13067 /* Override any GCC internal prototype to avoid an error.
13068 Use char because int might match the return type of a GCC
13069 builtin and then its argument prototype would still apply. */
13077 return maillock ();
13082 if ac_fn_c_try_link
"$LINENO"; then :
13083 ac_cv_lib_lockfile_maillock
=yes
13085 ac_cv_lib_lockfile_maillock
=no
13087 rm -f core conftest.err conftest.
$ac_objext \
13088 conftest
$ac_exeext conftest.
$ac_ext
13089 LIBS
=$ac_check_lib_save_LIBS
13091 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_lockfile_maillock" >&5
13092 $as_echo "$ac_cv_lib_lockfile_maillock" >&6; }
13093 if test "x$ac_cv_lib_lockfile_maillock" = xyes
; then :
13099 if test $have_lockfile = yes; then
13100 LIBS_MAIL
=-llockfile
13101 LIBS
="$LIBS_MAIL $LIBS"
13103 $as_echo "#define HAVE_LIBLOCKFILE 1" >>confdefs.h
13106 # If we have the shared liblockfile, assume we must use it for mail
13107 # locking (e.g. Debian). If we couldn't link against liblockfile
13108 # (no liblockfile.a installed), ensure that we don't need to.
13109 # Extract the first word of "liblockfile.so", so it can be a program name with args.
13110 set dummy liblockfile.so
; ac_word
=$2
13111 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13112 $as_echo_n "checking for $ac_word... " >&6; }
13113 if ${ac_cv_prog_liblockfile+:} false
; then :
13114 $as_echo_n "(cached) " >&6
13116 if test -n "$liblockfile"; then
13117 ac_cv_prog_liblockfile
="$liblockfile" # Let the user override the test.
13119 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
13120 as_dummy
="/usr/lib:/lib:/usr/local/lib:$LD_LIBRARY_PATH"
13121 for as_dir
in $as_dummy
13124 test -z "$as_dir" && as_dir
=.
13125 for ac_exec_ext
in '' $ac_executable_extensions; do
13126 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
13127 ac_cv_prog_liblockfile
="yes"
13128 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13135 test -z "$ac_cv_prog_liblockfile" && ac_cv_prog_liblockfile
="no"
13138 liblockfile
=$ac_cv_prog_liblockfile
13139 if test -n "$liblockfile"; then
13140 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $liblockfile" >&5
13141 $as_echo "$liblockfile" >&6; }
13143 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13144 $as_echo "no" >&6; }
13148 if test $ac_cv_prog_liblockfile = yes; then
13149 as_fn_error $?
"Shared liblockfile found but can't link against it.
13150 This probably means that movemail could lose mail.
13151 There may be a \`development' package to install containing liblockfile." "$LINENO" 5
13154 for ac_func
in touchlock
13156 ac_fn_c_check_func
"$LINENO" "touchlock" "ac_cv_func_touchlock"
13157 if test "x$ac_cv_func_touchlock" = xyes
; then :
13158 cat >>confdefs.h
<<_ACEOF
13159 #define HAVE_TOUCHLOCK 1
13165 for ac_header
in maillock.h
13167 ac_fn_c_check_header_mongrel
"$LINENO" "maillock.h" "ac_cv_header_maillock_h" "$ac_includes_default"
13168 if test "x$ac_cv_header_maillock_h" = xyes
; then :
13169 cat >>confdefs.h
<<_ACEOF
13170 #define HAVE_MAILLOCK_H 1
13179 ## Define MAIL_USE_FLOCK (or LOCKF) if the mailer uses flock (or lockf) to
13180 ## interlock access to the mail spool. The alternative is a lock file named
13181 ## /usr/spool/mail/$USER.lock.
13184 aix4-2
) mail_lock
="lockf" ;;
13186 gnu|freebsd|netbsd|openbsd|darwin|irix6-5
) mail_lock
="flock" ;;
13188 ## On GNU/Linux systems, both methods are used by various mail programs.
13189 ## I assume most people are using newer mailers that have heard of flock.
13190 ## Change this if you need to.
13191 ## Debian contains a patch which says: ``On Debian/GNU/Linux systems,
13192 ## configure gets the right answers, and that means *NOT* using flock.
13193 ## Using flock is guaranteed to be the wrong thing. See Debian Policy
13194 ## for details.'' and then uses `#ifdef DEBIAN'. Unfortunately the
13195 ## Debian maintainer hasn't provided a clean fix for Emacs.
13196 ## movemail.c will use `maillock' when MAILDIR, HAVE_LIBMAIL and
13197 ## HAVE_MAILLOCK_H are defined, so the following appears to be the
13198 ## correct logic. -- fx
13199 ## We must check for HAVE_LIBLOCKFILE too, as movemail does.
13200 ## liblockfile is a Free Software replacement for libmail, used on
13201 ## Debian systems and elsewhere. -rfr.
13204 if test $have_mail = yes ||
test $have_lockfile = yes; then
13205 test $ac_cv_header_maillock_h = yes && mail_lock
=no
13211 case "$mail_lock" in
13213 $as_echo "#define MAIL_USE_FLOCK 1" >>confdefs.h
13217 $as_echo "#define MAIL_USE_LOCKF 1" >>confdefs.h
13220 *) BLESSMAIL_TARGET
="need-blessmail" ;;
13225 for ac_func
in gethostname getdomainname dup2 \
13226 rename closedir mkdir
rmdir sysinfo getrusage get_current_dir_name \
13227 random lrand48 logb frexp fmod rint cbrt ftime setsid \
13228 strerror fpathconf
select euidaccess getpagesize tzset setlocale \
13229 utimes getrlimit setrlimit setpgid getcwd getwd shutdown getaddrinfo \
13230 __fpending mblen mbrlen mbsinit strsignal setitimer ualarm strchr strrchr \
13231 sendto recvfrom getsockopt setsockopt getsockname getpeername \
13232 gai_strerror mkstemp getline getdelim mremap memmove fsync sync \
13233 memset memcmp difftime memcpy mempcpy mblen mbrlen posix_memalign \
13234 cfmakeraw cfsetspeed isnan copysign __executable_start
13236 as_ac_var
=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
13237 ac_fn_c_check_func
"$LINENO" "$ac_func" "$as_ac_var"
13238 if eval test \"x\$
"$as_ac_var"\" = x
"yes"; then :
13239 cat >>confdefs.h
<<_ACEOF
13240 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
13247 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for __builtin_unwind_init" >&5
13248 $as_echo_n "checking for __builtin_unwind_init... " >&6; }
13249 if ${emacs_cv_func___builtin_unwind_init+:} false
; then :
13250 $as_echo_n "(cached) " >&6
13252 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
13253 /* end confdefs.h. */
13258 __builtin_unwind_init ();
13263 if ac_fn_c_try_link
"$LINENO"; then :
13264 emacs_cv_func___builtin_unwind_init
=yes
13266 emacs_cv_func___builtin_unwind_init
=no
13268 rm -f core conftest.err conftest.
$ac_objext \
13269 conftest
$ac_exeext conftest.
$ac_ext
13271 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $emacs_cv_func___builtin_unwind_init" >&5
13272 $as_echo "$emacs_cv_func___builtin_unwind_init" >&6; }
13273 if test $emacs_cv_func___builtin_unwind_init = yes; then
13275 $as_echo "#define HAVE___BUILTIN_UNWIND_INIT 1" >>confdefs.h
13279 for ac_header
in sys
/un.h
13281 ac_fn_c_check_header_mongrel
"$LINENO" "sys/un.h" "ac_cv_header_sys_un_h" "$ac_includes_default"
13282 if test "x$ac_cv_header_sys_un_h" = xyes
; then :
13283 cat >>confdefs.h
<<_ACEOF
13284 #define HAVE_SYS_UN_H 1
13292 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _LARGEFILE_SOURCE value needed for large files" >&5
13293 $as_echo_n "checking for _LARGEFILE_SOURCE value needed for large files... " >&6; }
13294 if ${ac_cv_sys_largefile_source+:} false
; then :
13295 $as_echo_n "(cached) " >&6
13298 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
13299 /* end confdefs.h. */
13300 #include <sys/types.h> /* for off_t */
13305 int (*fp) (FILE *, off_t, int) = fseeko;
13306 return fseeko (stdin, 0, 0) && fp (stdin, 0, 0);
13311 if ac_fn_c_try_link
"$LINENO"; then :
13312 ac_cv_sys_largefile_source
=no
; break
13314 rm -f core conftest.err conftest.
$ac_objext \
13315 conftest
$ac_exeext conftest.
$ac_ext
13316 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
13317 /* end confdefs.h. */
13318 #define _LARGEFILE_SOURCE 1
13319 #include <sys/types.h> /* for off_t */
13324 int (*fp) (FILE *, off_t, int) = fseeko;
13325 return fseeko (stdin, 0, 0) && fp (stdin, 0, 0);
13330 if ac_fn_c_try_link
"$LINENO"; then :
13331 ac_cv_sys_largefile_source
=1; break
13333 rm -f core conftest.err conftest.
$ac_objext \
13334 conftest
$ac_exeext conftest.
$ac_ext
13335 ac_cv_sys_largefile_source
=unknown
13339 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_largefile_source" >&5
13340 $as_echo "$ac_cv_sys_largefile_source" >&6; }
13341 case $ac_cv_sys_largefile_source in #(
13344 cat >>confdefs.h
<<_ACEOF
13345 #define _LARGEFILE_SOURCE $ac_cv_sys_largefile_source
13351 # We used to try defining _XOPEN_SOURCE=500 too, to work around a bug
13352 # in glibc 2.1.3, but that breaks too many other things.
13353 # If you want fseeko and ftello with glibc, upgrade to a fixed glibc.
13354 if test $ac_cv_sys_largefile_source != unknown
; then
13356 $as_echo "#define HAVE_FSEEKO 1" >>confdefs.h
13361 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether getpgrp requires zero arguments" >&5
13362 $as_echo_n "checking whether getpgrp requires zero arguments... " >&6; }
13363 if ${ac_cv_func_getpgrp_void+:} false
; then :
13364 $as_echo_n "(cached) " >&6
13366 # Use it with a single arg.
13367 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
13368 /* end confdefs.h. */
13369 $ac_includes_default
13378 if ac_fn_c_try_compile
"$LINENO"; then :
13379 ac_cv_func_getpgrp_void
=no
13381 ac_cv_func_getpgrp_void
=yes
13383 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
13386 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_getpgrp_void" >&5
13387 $as_echo "$ac_cv_func_getpgrp_void" >&6; }
13388 if test $ac_cv_func_getpgrp_void = yes; then
13390 $as_echo "#define GETPGRP_VOID 1" >>confdefs.h
13395 # Configure gnulib.
13406 LIBC_FATAL_STDERR_
=1
13407 export LIBC_FATAL_STDERR_
13410 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether byte ordering is bigendian" >&5
13411 $as_echo_n "checking whether byte ordering is bigendian... " >&6; }
13412 if ${ac_cv_c_bigendian+:} false
; then :
13413 $as_echo_n "(cached) " >&6
13415 ac_cv_c_bigendian
=unknown
13416 # See if we're dealing with a universal compiler.
13417 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
13418 /* end confdefs.h. */
13419 #ifndef __APPLE_CC__
13420 not a universal capable compiler
13425 if ac_fn_c_try_compile
"$LINENO"; then :
13427 # Check for potential -arch flags. It is not universal unless
13428 # there are at least two -arch flags with different values.
13431 for ac_word
in $CC $CFLAGS $CPPFLAGS $LDFLAGS; do
13432 if test -n "$ac_prev"; then
13434 i?
86 | x86_64 | ppc | ppc64
)
13435 if test -z "$ac_arch" ||
test "$ac_arch" = "$ac_word"; then
13438 ac_cv_c_bigendian
=universal
13444 elif test "x$ac_word" = "x-arch"; then
13449 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
13450 if test $ac_cv_c_bigendian = unknown
; then
13451 # See if sys/param.h defines the BYTE_ORDER macro.
13452 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
13453 /* end confdefs.h. */
13454 #include <sys/types.h>
13455 #include <sys/param.h>
13460 #if ! (defined BYTE_ORDER && defined BIG_ENDIAN \
13461 && defined LITTLE_ENDIAN && BYTE_ORDER && BIG_ENDIAN \
13463 bogus endian macros
13470 if ac_fn_c_try_compile
"$LINENO"; then :
13471 # It does; now see whether it defined to BIG_ENDIAN or not.
13472 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
13473 /* end confdefs.h. */
13474 #include <sys/types.h>
13475 #include <sys/param.h>
13480 #if BYTE_ORDER != BIG_ENDIAN
13488 if ac_fn_c_try_compile
"$LINENO"; then :
13489 ac_cv_c_bigendian
=yes
13491 ac_cv_c_bigendian
=no
13493 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
13495 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
13497 if test $ac_cv_c_bigendian = unknown
; then
13498 # See if <limits.h> defines _LITTLE_ENDIAN or _BIG_ENDIAN (e.g., Solaris).
13499 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
13500 /* end confdefs.h. */
13501 #include <limits.h>
13506 #if ! (defined _LITTLE_ENDIAN || defined _BIG_ENDIAN)
13507 bogus endian macros
13514 if ac_fn_c_try_compile
"$LINENO"; then :
13515 # It does; now see whether it defined to _BIG_ENDIAN or not.
13516 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
13517 /* end confdefs.h. */
13518 #include <limits.h>
13523 #ifndef _BIG_ENDIAN
13531 if ac_fn_c_try_compile
"$LINENO"; then :
13532 ac_cv_c_bigendian
=yes
13534 ac_cv_c_bigendian
=no
13536 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
13538 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
13540 if test $ac_cv_c_bigendian = unknown
; then
13541 # Compile a test program.
13542 if test "$cross_compiling" = yes; then :
13543 # Try to guess by grepping values from an object file.
13544 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
13545 /* end confdefs.h. */
13546 short int ascii_mm[] =
13547 { 0x4249, 0x4765, 0x6E44, 0x6961, 0x6E53, 0x7953, 0 };
13548 short int ascii_ii[] =
13549 { 0x694C, 0x5454, 0x656C, 0x6E45, 0x6944, 0x6E61, 0 };
13550 int use_ascii (int i) {
13551 return ascii_mm[i] + ascii_ii[i];
13553 short int ebcdic_ii[] =
13554 { 0x89D3, 0xE3E3, 0x8593, 0x95C5, 0x89C4, 0x9581, 0 };
13555 short int ebcdic_mm[] =
13556 { 0xC2C9, 0xC785, 0x95C4, 0x8981, 0x95E2, 0xA8E2, 0 };
13557 int use_ebcdic (int i) {
13558 return ebcdic_mm[i] + ebcdic_ii[i];
13565 return use_ascii (foo) == use_ebcdic (foo);
13570 if ac_fn_c_try_compile
"$LINENO"; then :
13571 if grep BIGenDianSyS conftest.
$ac_objext >/dev
/null
; then
13572 ac_cv_c_bigendian
=yes
13574 if grep LiTTleEnDian conftest.
$ac_objext >/dev
/null
; then
13575 if test "$ac_cv_c_bigendian" = unknown
; then
13576 ac_cv_c_bigendian
=no
13578 # finding both strings is unlikely to happen, but who knows?
13579 ac_cv_c_bigendian
=unknown
13583 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
13585 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
13586 /* end confdefs.h. */
13587 $ac_includes_default
13592 /* Are we little or big endian? From Harbison&Steele. */
13596 char c[sizeof (long int)];
13599 return u.c[sizeof (long int) - 1] == 1;
13605 if ac_fn_c_try_run
"$LINENO"; then :
13606 ac_cv_c_bigendian
=no
13608 ac_cv_c_bigendian
=yes
13610 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
13611 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
13616 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_bigendian" >&5
13617 $as_echo "$ac_cv_c_bigendian" >&6; }
13618 case $ac_cv_c_bigendian in #(
13620 $as_echo "#define WORDS_BIGENDIAN 1" >>confdefs.h
13626 $as_echo "#define AC_APPLE_UNIVERSAL_BUILD 1" >>confdefs.h
13630 as_fn_error $?
"unknown endianness
13631 presetting ac_cv_c_bigendian=no (or yes) will help" "$LINENO" 5 ;;
13635 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for inline" >&5
13636 $as_echo_n "checking for inline... " >&6; }
13637 if ${ac_cv_c_inline+:} false
; then :
13638 $as_echo_n "(cached) " >&6
13641 for ac_kw
in inline __inline__ __inline
; do
13642 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
13643 /* end confdefs.h. */
13644 #ifndef __cplusplus
13646 static $ac_kw foo_t static_foo () {return 0; }
13647 $ac_kw foo_t foo () {return 0; }
13651 if ac_fn_c_try_compile
"$LINENO"; then :
13652 ac_cv_c_inline
=$ac_kw
13654 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
13655 test "$ac_cv_c_inline" != no
&& break
13659 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_inline" >&5
13660 $as_echo "$ac_cv_c_inline" >&6; }
13662 case $ac_cv_c_inline in
13665 case $ac_cv_c_inline in
13667 *) ac_val
=$ac_cv_c_inline;;
13669 cat >>confdefs.h
<<_ACEOF
13670 #ifndef __cplusplus
13671 #define inline $ac_val
13678 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether strtold conforms to C99" >&5
13679 $as_echo_n "checking whether strtold conforms to C99... " >&6; }
13680 if ${gl_cv_func_c99_strtold+:} false
; then :
13681 $as_echo_n "(cached) " >&6
13683 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
13684 /* end confdefs.h. */
13685 /* On HP-UX before 11.23, strtold returns a struct instead of
13686 long double. Reject implementations like that, by requiring
13687 compatibility with the C99 prototype. */
13688 #include <stdlib.h>
13689 static long double (*p) (char const *, char **) = strtold;
13691 test (char const *nptr, char **endptr)
13694 r = strtold (nptr, endptr);
13700 return test ("1.0", NULL) != 1 || p ("1.0", NULL) != 1;
13705 if ac_fn_c_try_link
"$LINENO"; then :
13706 gl_cv_func_c99_strtold
=yes
13708 gl_cv_func_c99_strtold
=no
13710 rm -f core conftest.err conftest.
$ac_objext \
13711 conftest
$ac_exeext conftest.
$ac_ext
13713 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_c99_strtold" >&5
13714 $as_echo "$gl_cv_func_c99_strtold" >&6; }
13715 if test $gl_cv_func_c99_strtold = yes; then
13717 $as_echo "#define HAVE_C99_STRTOLD 1" >>confdefs.h
13724 GNULIB_CALLOC_POSIX
=0;
13725 GNULIB_CANONICALIZE_FILE_NAME
=0;
13726 GNULIB_GETLOADAVG
=0;
13727 GNULIB_GETSUBOPT
=0;
13729 GNULIB_MALLOC_POSIX
=0;
13732 GNULIB_MKOSTEMPS
=0;
13738 GNULIB_REALLOC_POSIX
=0;
13745 GNULIB_SYSTEM_POSIX
=0;
13750 HAVE_CANONICALIZE_FILE_NAME
=1;
13751 HAVE_DECL_GETLOADAVG
=1;
13765 HAVE_DECL_SETENV
=1;
13769 HAVE_STRUCT_RANDOM_DATA
=1;
13770 HAVE_SYS_LOADAVG_H
=0;
13772 HAVE_DECL_UNSETENV
=1;
13774 REPLACE_CANONICALIZE_FILE_NAME
=0;
13779 REPLACE_REALPATH
=0;
13782 REPLACE_UNSETENV
=0;
13790 GNULIB_EUIDACCESS
=0;
13791 GNULIB_FACCESSAT
=0;
13795 GNULIB_FTRUNCATE
=0;
13797 GNULIB_GETDOMAINNAME
=0;
13798 GNULIB_GETDTABLESIZE
=0;
13799 GNULIB_GETGROUPS
=0;
13800 GNULIB_GETHOSTNAME
=0;
13802 GNULIB_GETLOGIN_R
=0;
13803 GNULIB_GETPAGESIZE
=0;
13804 GNULIB_GETUSERSHELL
=0;
13814 GNULIB_READLINKAT
=0;
13818 GNULIB_SYMLINKAT
=0;
13819 GNULIB_TTYNAME_R
=0;
13820 GNULIB_UNISTD_H_GETOPT
=0;
13821 GNULIB_UNISTD_H_SIGPIPE
=0;
13835 HAVE_GETDTABLESIZE
=1;
13837 HAVE_GETHOSTNAME
=1;
13839 HAVE_GETPAGESIZE
=1;
13854 HAVE_DECL_ENVIRON
=1;
13855 HAVE_DECL_FCHDIR
=1;
13856 HAVE_DECL_GETDOMAINNAME
=1;
13857 HAVE_DECL_GETLOGIN_R
=1;
13858 HAVE_DECL_GETPAGESIZE
=1;
13859 HAVE_DECL_GETUSERSHELL
=1;
13860 HAVE_DECL_TTYNAME_R
=1;
13862 HAVE_SYS_PARAM_H
=0;
13867 REPLACE_FCHOWNAT
=0;
13869 REPLACE_GETDOMAINNAME
=0;
13870 REPLACE_GETLOGIN_R
=0;
13871 REPLACE_GETGROUPS
=0;
13872 REPLACE_GETPAGESIZE
=0;
13879 REPLACE_READLINK
=0;
13883 REPLACE_TTYNAME_R
=0;
13885 REPLACE_UNLINKAT
=0;
13888 UNISTD_H_HAVE_WINSOCK2_H
=0;
13889 UNISTD_H_HAVE_WINSOCK2_H_AND_USE_SOCKETS
=0;
13894 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the preprocessor supports include_next" >&5
13895 $as_echo_n "checking whether the preprocessor supports include_next... " >&6; }
13896 if ${gl_cv_have_include_next+:} false
; then :
13897 $as_echo_n "(cached) " >&6
13899 rm -rf conftestd1a conftestd1b conftestd2
13900 mkdir conftestd1a conftestd1b conftestd2
13901 cat <<EOF > conftestd1a/conftest.h
13902 #define DEFINED_IN_CONFTESTD1
13903 #include_next <conftest.h>
13904 #ifdef DEFINED_IN_CONFTESTD2
13907 #error "include_next doesn't work"
13910 cat <<EOF > conftestd1b/conftest.h
13911 #define DEFINED_IN_CONFTESTD1
13913 #include_next <conftest.h>
13914 #ifdef DEFINED_IN_CONFTESTD2
13917 #error "include_next doesn't work"
13920 cat <<EOF > conftestd2/conftest.h
13921 #ifndef DEFINED_IN_CONFTESTD1
13922 #error "include_next test doesn't work"
13924 #define DEFINED_IN_CONFTESTD2
13926 gl_save_CPPFLAGS
="$CPPFLAGS"
13927 CPPFLAGS
="$gl_save_CPPFLAGS -Iconftestd1b -Iconftestd2"
13928 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
13929 /* end confdefs.h. */
13930 #include <conftest.h>
13932 if ac_fn_c_try_compile
"$LINENO"; then :
13933 gl_cv_have_include_next
=yes
13935 CPPFLAGS
="$gl_save_CPPFLAGS -Iconftestd1a -Iconftestd2"
13936 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
13937 /* end confdefs.h. */
13938 #include <conftest.h>
13940 if ac_fn_c_try_compile
"$LINENO"; then :
13941 gl_cv_have_include_next
=buggy
13943 gl_cv_have_include_next
=no
13945 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
13948 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
13949 CPPFLAGS
="$gl_save_CPPFLAGS"
13950 rm -rf conftestd1a conftestd1b conftestd2
13953 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_have_include_next" >&5
13954 $as_echo "$gl_cv_have_include_next" >&6; }
13955 PRAGMA_SYSTEM_HEADER
=
13956 if test $gl_cv_have_include_next = yes; then
13957 INCLUDE_NEXT
=include_next
13958 INCLUDE_NEXT_AS_FIRST_DIRECTIVE
=include_next
13959 if test -n "$GCC"; then
13960 PRAGMA_SYSTEM_HEADER
='#pragma GCC system_header'
13963 if test $gl_cv_have_include_next = buggy
; then
13964 INCLUDE_NEXT
=include
13965 INCLUDE_NEXT_AS_FIRST_DIRECTIVE
=include_next
13967 INCLUDE_NEXT
=include
13968 INCLUDE_NEXT_AS_FIRST_DIRECTIVE
=include
13974 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether system header files limit the line length" >&5
13975 $as_echo_n "checking whether system header files limit the line length... " >&6; }
13976 if ${gl_cv_pragma_columns+:} false
; then :
13977 $as_echo_n "(cached) " >&6
13979 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
13980 /* end confdefs.h. */
13987 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
13988 $EGREP "choke me" >/dev
/null
2>&1; then :
13989 gl_cv_pragma_columns
=yes
13991 gl_cv_pragma_columns
=no
13997 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_pragma_columns" >&5
13998 $as_echo "$gl_cv_pragma_columns" >&6; }
13999 if test $gl_cv_pragma_columns = yes; then
14000 PRAGMA_COLUMNS
="#pragma COLUMNS 10000"
14021 if test $gl_cv_have_include_next = yes; then
14022 gl_cv_next_getopt_h
='<'getopt.h
'>'
14024 { $as_echo "$as_me:${as_lineno-$LINENO}: checking absolute name of <getopt.h>" >&5
14025 $as_echo_n "checking absolute name of <getopt.h>... " >&6; }
14026 if ${gl_cv_next_getopt_h+:} false
; then :
14027 $as_echo_n "(cached) " >&6
14030 if test $ac_cv_header_getopt_h = yes; then
14033 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
14034 /* end confdefs.h. */
14035 #include <getopt.h>
14039 aix
*) gl_absname_cpp
="$ac_cpp -C" ;;
14040 *) gl_absname_cpp
="$ac_cpp" ;;
14042 gl_cv_next_getopt_h
='"'`(eval "$gl_absname_cpp conftest.$ac_ext") 2>&5 |
14043 sed -n '\#/getopt.h#{
14044 s#.*"\(.*/getopt.h\)".*#\1#
14050 gl_cv_next_getopt_h
='<'getopt.h
'>'
14055 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_next_getopt_h" >&5
14056 $as_echo "$gl_cv_next_getopt_h" >&6; }
14058 NEXT_GETOPT_H
=$gl_cv_next_getopt_h
14060 if test $gl_cv_have_include_next = yes ||
test $gl_cv_have_include_next = buggy
; then
14061 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include_next'
14062 gl_next_as_first_directive
='<'getopt.h
'>'
14064 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include'
14065 gl_next_as_first_directive
=$gl_cv_next_getopt_h
14067 NEXT_AS_FIRST_DIRECTIVE_GETOPT_H
=$gl_next_as_first_directive
14072 if test $ac_cv_header_getopt_h = yes; then
14081 if test -z "$gl_replace_getopt" && test $gl_getopt_required = GNU
; then
14082 for ac_header
in getopt.h
14084 ac_fn_c_check_header_mongrel
"$LINENO" "getopt.h" "ac_cv_header_getopt_h" "$ac_includes_default"
14085 if test "x$ac_cv_header_getopt_h" = xyes
; then :
14086 cat >>confdefs.h
<<_ACEOF
14087 #define HAVE_GETOPT_H 1
14091 gl_replace_getopt
=yes
14098 if test -z "$gl_replace_getopt" && test $gl_getopt_required = GNU
; then
14099 for ac_func
in getopt_long_only
14101 ac_fn_c_check_func
"$LINENO" "getopt_long_only" "ac_cv_func_getopt_long_only"
14102 if test "x$ac_cv_func_getopt_long_only" = xyes
; then :
14103 cat >>confdefs.h
<<_ACEOF
14104 #define HAVE_GETOPT_LONG_ONLY 1
14108 gl_replace_getopt
=yes
14114 if test -z "$gl_replace_getopt"; then
14115 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether getopt is POSIX compatible" >&5
14116 $as_echo_n "checking whether getopt is POSIX compatible... " >&6; }
14117 if ${gl_cv_func_getopt_posix+:} false
; then :
14118 $as_echo_n "(cached) " >&6
14121 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
14122 /* end confdefs.h. */
14123 #include <unistd.h>
14127 int *p = &optreset; return optreset;
14132 if ac_fn_c_try_compile
"$LINENO"; then :
14135 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
14136 /* end confdefs.h. */
14137 #include <getopt.h>
14141 return !getopt_clip;
14146 if ac_fn_c_try_compile
"$LINENO"; then :
14151 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
14153 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
14155 gl_save_CPPFLAGS
=$CPPFLAGS
14156 CPPFLAGS
="$CPPFLAGS -DOPTIND_MIN=$gl_optind_min"
14157 if test "$cross_compiling" = yes; then :
14159 mingw
*) gl_cv_func_getopt_posix
="guessing no";;
14160 darwin
* | aix
*) gl_cv_func_getopt_posix
="guessing no";;
14161 *) gl_cv_func_getopt_posix
="guessing yes";;
14165 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
14166 /* end confdefs.h. */
14168 #include <unistd.h>
14169 #include <stdlib.h>
14170 #include <string.h>
14180 argv[argc++] = "program";
14181 argv[argc++] = "-a";
14182 argv[argc++] = "foo";
14183 argv[argc++] = "bar";
14185 optind = OPTIND_MIN;
14188 c = getopt (argc, argv, "ab");
14191 c = getopt (argc, argv, "ab");
14194 if (!(optind == 2))
14197 /* Some internal state exists at this point. */
14203 argv[argc++] = "program";
14204 argv[argc++] = "donald";
14205 argv[argc++] = "-p";
14206 argv[argc++] = "billy";
14207 argv[argc++] = "duck";
14208 argv[argc++] = "-a";
14209 argv[argc++] = "bar";
14211 optind = OPTIND_MIN;
14214 c = getopt (argc, argv, "+abp:q:");
14217 if (!(strcmp (argv[0], "program") == 0))
14219 if (!(strcmp (argv[1], "donald") == 0))
14221 if (!(strcmp (argv[2], "-p") == 0))
14223 if (!(strcmp (argv[3], "billy") == 0))
14225 if (!(strcmp (argv[4], "duck") == 0))
14227 if (!(strcmp (argv[5], "-a") == 0))
14229 if (!(strcmp (argv[6], "bar") == 0))
14231 if (!(optind == 1))
14234 /* Detect MacOS 10.5, AIX 7.1 bug. */
14236 char *argv[3] = { "program", "-ab", NULL };
14237 optind = OPTIND_MIN;
14239 if (getopt (2, argv, "ab:") != 'a')
14241 if (getopt (2, argv, "ab:") != '?')
14253 if ac_fn_c_try_run
"$LINENO"; then :
14254 gl_cv_func_getopt_posix
=yes
14256 gl_cv_func_getopt_posix
=no
14258 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
14259 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
14262 CPPFLAGS
=$gl_save_CPPFLAGS
14265 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_getopt_posix" >&5
14266 $as_echo "$gl_cv_func_getopt_posix" >&6; }
14267 case "$gl_cv_func_getopt_posix" in
14268 *no
) gl_replace_getopt
=yes ;;
14272 if test -z "$gl_replace_getopt" && test $gl_getopt_required = GNU
; then
14273 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working GNU getopt function" >&5
14274 $as_echo_n "checking for working GNU getopt function... " >&6; }
14275 if ${gl_cv_func_getopt_gnu+:} false
; then :
14276 $as_echo_n "(cached) " >&6
14278 # Even with POSIXLY_CORRECT, the GNU extension of leading '-' in the
14279 # optstring is necessary for programs like m4 that have POSIX-mandated
14280 # semantics for supporting options interspersed with files.
14281 # Also, since getopt_long is a GNU extension, we require optind=0.
14282 # Bash ties 'set -o posix' to a non-exported POSIXLY_CORRECT;
14283 # so take care to revert to the correct (non-)export state.
14284 gl_awk_probe
='BEGIN { if ("POSIXLY_CORRECT" in ENVIRON) print "x" }'
14285 case ${POSIXLY_CORRECT+x}`$AWK "$gl_awk_probe" </dev/null` in
14286 xx
) gl_had_POSIXLY_CORRECT
=exported
;;
14287 x
) gl_had_POSIXLY_CORRECT
=yes ;;
14288 *) gl_had_POSIXLY_CORRECT
= ;;
14291 export POSIXLY_CORRECT
14292 if test "$cross_compiling" = yes; then :
14293 case $host_os:$ac_cv_have_decl_optreset in
14294 *-gnu*:* | mingw
*:*) gl_cv_func_getopt_gnu
=no
;;
14295 *:yes) gl_cv_func_getopt_gnu
=no
;;
14296 *) gl_cv_func_getopt_gnu
=yes;;
14300 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
14301 /* end confdefs.h. */
14302 #include <getopt.h>
14303 #include <stddef.h>
14304 #include <string.h>
14311 /* This code succeeds on glibc 2.8, OpenBSD 4.0, Cygwin, mingw,
14312 and fails on MacOS X 10.5, AIX 5.2, HP-UX 11, IRIX 6.5,
14313 OSF/1 5.1, Solaris 10. */
14316 myargv[0] = "conftest";
14320 if (getopt (2, myargv, "+a") != '?')
14323 /* This code succeeds on glibc 2.8, mingw,
14324 and fails on MacOS X 10.5, OpenBSD 4.0, AIX 5.2, HP-UX 11,
14325 IRIX 6.5, OSF/1 5.1, Solaris 10, Cygwin 1.5.x. */
14327 char *argv[] = { "program", "-p", "foo", "bar", NULL };
14330 if (getopt (4, argv, "p::") != 'p')
14332 else if (optarg != NULL)
14334 else if (getopt (4, argv, "p::") != -1)
14336 else if (optind != 2)
14339 /* This code succeeds on glibc 2.8 and fails on Cygwin 1.7.0. */
14341 char *argv[] = { "program", "foo", "-p", NULL };
14343 if (getopt (3, argv, "-p") != 1)
14345 else if (getopt (3, argv, "-p") != 'p')
14348 /* This code fails on glibc 2.11. */
14350 char *argv[] = { "program", "-b", "-a", NULL };
14351 optind = opterr = 0;
14352 if (getopt (3, argv, "+:a:b") != 'b')
14354 else if (getopt (3, argv, "+:a:b") != ':')
14363 if ac_fn_c_try_run
"$LINENO"; then :
14364 gl_cv_func_getopt_gnu
=yes
14366 gl_cv_func_getopt_gnu
=no
14368 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
14369 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
14372 case $gl_had_POSIXLY_CORRECT in
14374 yes) { POSIXLY_CORRECT
=; unset POSIXLY_CORRECT
;}; POSIXLY_CORRECT
=1 ;;
14375 *) { POSIXLY_CORRECT
=; unset POSIXLY_CORRECT
;} ;;
14379 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_getopt_gnu" >&5
14380 $as_echo "$gl_cv_func_getopt_gnu" >&6; }
14381 if test "$gl_cv_func_getopt_gnu" = "no"; then
14382 gl_replace_getopt
=yes
14386 ac_fn_c_check_decl
"$LINENO" "getenv" "ac_cv_have_decl_getenv" "$ac_includes_default"
14387 if test "x$ac_cv_have_decl_getenv" = xyes
; then :
14393 cat >>confdefs.h
<<_ACEOF
14394 #define HAVE_DECL_GETENV $ac_have_decl
14402 if test -n "$gl_replace_getopt"; then :
14408 $as_echo "#define __GETOPT_PREFIX rpl_" >>confdefs.h
14412 GNULIB_UNISTD_H_GETOPT
=1
14421 gl_LIBOBJS
="$gl_LIBOBJS getopt.$ac_objext"
14431 gl_LIBOBJS
="$gl_LIBOBJS getopt1.$ac_objext"
14443 GNULIB_NANOSLEEP
=0;
14447 HAVE_DECL_LOCALTIME_R
=1;
14451 REPLACE_LOCALTIME_R
=GNULIB_PORTCHECK
;
14452 REPLACE_MKTIME
=GNULIB_PORTCHECK
;
14453 REPLACE_NANOSLEEP
=GNULIB_PORTCHECK
;
14454 REPLACE_TIMEGM
=GNULIB_PORTCHECK
;
14459 for ac_func
in $ac_func_list
14461 as_ac_var
=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
14462 ac_fn_c_check_func
"$LINENO" "$ac_func" "$as_ac_var"
14463 if eval test \"x\$
"$as_ac_var"\" = x
"yes"; then :
14464 cat >>confdefs.h
<<_ACEOF
14465 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
14474 gl_cv_c_multiarch
=no
14475 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
14476 /* end confdefs.h. */
14477 #ifndef __APPLE_CC__
14478 not a universal capable compiler
14483 if ac_fn_c_try_compile
"$LINENO"; then :
14487 for word
in ${CC} ${CFLAGS} ${CPPFLAGS} ${LDFLAGS}; do
14488 if test -n "$prev"; then
14490 i?
86 | x86_64 | ppc | ppc64
)
14491 if test -z "$arch" ||
test "$arch" = "$word"; then
14494 gl_cv_c_multiarch
=yes
14500 if test "x$word" = "x-arch"; then
14507 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
14508 if test $gl_cv_c_multiarch = yes; then
14509 APPLE_UNIVERSAL_BUILD
=1
14511 APPLE_UNIVERSAL_BUILD
=0
14515 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for stdbool.h that conforms to C99" >&5
14516 $as_echo_n "checking for stdbool.h that conforms to C99... " >&6; }
14517 if ${ac_cv_header_stdbool_h+:} false
; then :
14518 $as_echo_n "(cached) " >&6
14520 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
14521 /* end confdefs.h. */
14523 #include <stdbool.h>
14525 "error: bool is not defined"
14528 "error: false is not defined"
14531 "error: false is not 0"
14534 "error: true is not defined"
14537 "error: true is not 1"
14539 #ifndef __bool_true_false_are_defined
14540 "error: __bool_true_false_are_defined is not defined"
14543 struct s { _Bool s: 1; _Bool t; } s;
14545 char a[true == 1 ? 1 : -1];
14546 char b[false == 0 ? 1 : -1];
14547 char c[__bool_true_false_are_defined == 1 ? 1 : -1];
14548 char d[(bool) 0.5 == true ? 1 : -1];
14549 /* See body of main program for 'e'. */
14550 char f[(_Bool) 0.0 == false ? 1 : -1];
14552 char h[sizeof (_Bool)];
14553 char i[sizeof s.t];
14554 enum { j = false, k = true, l = false * true, m = true * 256 };
14555 /* The following fails for
14556 HP aC++/ANSI C B3910B A.05.55 [Dec 04 2003]. */
14558 char o[sizeof n == m * sizeof n[0] ? 1 : -1];
14559 char p[-1 - (_Bool) 0 < 0 && -1 - (bool) 0 < 0 ? 1 : -1];
14560 /* Catch a bug in an HP-UX C compiler. See
14561 http://gcc.gnu.org/ml/gcc-patches/2003-12/msg02303.html
14562 http://lists.gnu.org/archive/html/bug-coreutils/2005-11/msg00161.html
14574 /* Refer to every declared value, to avoid compiler optimizations. */
14575 return (!a + !b + !c + !d + !e + !f + !g + !h + !i + !!j + !k + !!l
14576 + !m + !n + !o + !p + !q + !pq);
14582 if ac_fn_c_try_compile
"$LINENO"; then :
14583 ac_cv_header_stdbool_h
=yes
14585 ac_cv_header_stdbool_h
=no
14587 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
14589 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdbool_h" >&5
14590 $as_echo "$ac_cv_header_stdbool_h" >&6; }
14591 ac_fn_c_check_type
"$LINENO" "_Bool" "ac_cv_type__Bool" "$ac_includes_default"
14592 if test "x$ac_cv_type__Bool" = xyes
; then :
14594 cat >>confdefs.h
<<_ACEOF
14595 #define HAVE__BOOL 1
14608 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for wchar_t" >&5
14609 $as_echo_n "checking for wchar_t... " >&6; }
14610 if ${gt_cv_c_wchar_t+:} false
; then :
14611 $as_echo_n "(cached) " >&6
14613 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
14614 /* end confdefs.h. */
14615 #include <stddef.h>
14616 wchar_t foo = (wchar_t)'\0';
14625 if ac_fn_c_try_compile
"$LINENO"; then :
14626 gt_cv_c_wchar_t
=yes
14630 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
14632 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_c_wchar_t" >&5
14633 $as_echo "$gt_cv_c_wchar_t" >&6; }
14634 if test $gt_cv_c_wchar_t = yes; then
14636 $as_echo "#define HAVE_WCHAR_T 1" >>confdefs.h
14641 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for unsigned long long int" >&5
14642 $as_echo_n "checking for unsigned long long int... " >&6; }
14643 if ${ac_cv_type_unsigned_long_long_int+:} false
; then :
14644 $as_echo_n "(cached) " >&6
14646 ac_cv_type_unsigned_long_long_int
=yes
14647 if test "x${ac_cv_prog_cc_c99-no}" = xno
; then
14648 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
14649 /* end confdefs.h. */
14651 /* For now, do not test the preprocessor; as of 2007 there are too many
14652 implementations with broken preprocessors. Perhaps this can
14653 be revisited in 2012. In the meantime, code should not expect
14654 #if to work with literals wider than 32 bits. */
14655 /* Test literals. */
14656 long long int ll = 9223372036854775807ll;
14657 long long int nll = -9223372036854775807LL;
14658 unsigned long long int ull = 18446744073709551615ULL;
14659 /* Test constant expressions. */
14660 typedef int a[((-9223372036854775807LL < 0 && 0 < 9223372036854775807ll)
14662 typedef int b[(18446744073709551615ULL <= (unsigned long long int) -1
14668 /* Test availability of runtime routines for shift and division. */
14669 long long int llmax = 9223372036854775807ll;
14670 unsigned long long int ullmax = 18446744073709551615ull;
14671 return ((ll << 63) | (ll >> 63) | (ll < i) | (ll > i)
14672 | (llmax / ll) | (llmax % ll)
14673 | (ull << 63) | (ull >> 63) | (ull << i) | (ull >> i)
14674 | (ullmax / ull) | (ullmax % ull));
14680 if ac_fn_c_try_link
"$LINENO"; then :
14683 ac_cv_type_unsigned_long_long_int
=no
14685 rm -f core conftest.err conftest.
$ac_objext \
14686 conftest
$ac_exeext conftest.
$ac_ext
14689 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_unsigned_long_long_int" >&5
14690 $as_echo "$ac_cv_type_unsigned_long_long_int" >&6; }
14691 if test $ac_cv_type_unsigned_long_long_int = yes; then
14693 $as_echo "#define HAVE_UNSIGNED_LONG_LONG_INT 1" >>confdefs.h
14699 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for long long int" >&5
14700 $as_echo_n "checking for long long int... " >&6; }
14701 if ${ac_cv_type_long_long_int+:} false
; then :
14702 $as_echo_n "(cached) " >&6
14704 ac_cv_type_long_long_int
=yes
14705 if test "x${ac_cv_prog_cc_c99-no}" = xno
; then
14706 ac_cv_type_long_long_int
=$ac_cv_type_unsigned_long_long_int
14707 if test $ac_cv_type_long_long_int = yes; then
14708 if test "$cross_compiling" = yes; then :
14711 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
14712 /* end confdefs.h. */
14713 #include <limits.h>
14716 (1LL << (sizeof (long long int) * CHAR_BIT - 2))
14717 # define LLONG_MAX (HALF - 1 + HALF)
14722 long long int n = 1;
14726 long long int m = n << i;
14729 if (LLONG_MAX / 2 < m)
14737 if ac_fn_c_try_run
"$LINENO"; then :
14740 ac_cv_type_long_long_int
=no
14742 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
14743 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
14749 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_long_long_int" >&5
14750 $as_echo "$ac_cv_type_long_long_int" >&6; }
14751 if test $ac_cv_type_long_long_int = yes; then
14753 $as_echo "#define HAVE_LONG_LONG_INT 1" >>confdefs.h
14762 ac_fn_c_check_member
"$LINENO" "struct tm" "tm_gmtoff" "ac_cv_member_struct_tm_tm_gmtoff" "#include <time.h>
14764 if test "x$ac_cv_member_struct_tm_tm_gmtoff" = xyes
; then :
14766 $as_echo "#define HAVE_TM_GMTOFF 1" >>confdefs.h
14773 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for C/C++ restrict keyword" >&5
14774 $as_echo_n "checking for C/C++ restrict keyword... " >&6; }
14775 if ${ac_cv_c_restrict+:} false
; then :
14776 $as_echo_n "(cached) " >&6
14778 ac_cv_c_restrict
=no
14779 # The order here caters to the fact that C++ does not require restrict.
14780 for ac_kw
in __restrict __restrict__ _Restrict restrict
; do
14781 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
14782 /* end confdefs.h. */
14783 typedef int * int_ptr;
14784 int foo (int_ptr $ac_kw ip) {
14791 int * $ac_kw t = s;
14798 if ac_fn_c_try_compile
"$LINENO"; then :
14799 ac_cv_c_restrict
=$ac_kw
14801 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
14802 test "$ac_cv_c_restrict" != no
&& break
14806 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_restrict" >&5
14807 $as_echo "$ac_cv_c_restrict" >&6; }
14809 case $ac_cv_c_restrict in
14811 no
) $as_echo "#define restrict /**/" >>confdefs.h
14813 *) cat >>confdefs.h
<<_ACEOF
14814 #define restrict $ac_cv_c_restrict
14823 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for struct timespec in <time.h>" >&5
14824 $as_echo_n "checking for struct timespec in <time.h>... " >&6; }
14825 if ${gl_cv_sys_struct_timespec_in_time_h+:} false
; then :
14826 $as_echo_n "(cached) " >&6
14828 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
14829 /* end confdefs.h. */
14835 static struct timespec x; x.tv_sec = x.tv_nsec;
14840 if ac_fn_c_try_compile
"$LINENO"; then :
14841 gl_cv_sys_struct_timespec_in_time_h
=yes
14843 gl_cv_sys_struct_timespec_in_time_h
=no
14845 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
14847 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_sys_struct_timespec_in_time_h" >&5
14848 $as_echo "$gl_cv_sys_struct_timespec_in_time_h" >&6; }
14850 TIME_H_DEFINES_STRUCT_TIMESPEC
=0
14851 SYS_TIME_H_DEFINES_STRUCT_TIMESPEC
=0
14852 PTHREAD_H_DEFINES_STRUCT_TIMESPEC
=0
14853 if test $gl_cv_sys_struct_timespec_in_time_h = yes; then
14854 TIME_H_DEFINES_STRUCT_TIMESPEC
=1
14856 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for struct timespec in <sys/time.h>" >&5
14857 $as_echo_n "checking for struct timespec in <sys/time.h>... " >&6; }
14858 if ${gl_cv_sys_struct_timespec_in_sys_time_h+:} false
; then :
14859 $as_echo_n "(cached) " >&6
14861 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
14862 /* end confdefs.h. */
14863 #include <sys/time.h>
14868 static struct timespec x; x.tv_sec = x.tv_nsec;
14873 if ac_fn_c_try_compile
"$LINENO"; then :
14874 gl_cv_sys_struct_timespec_in_sys_time_h
=yes
14876 gl_cv_sys_struct_timespec_in_sys_time_h
=no
14878 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
14880 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_sys_struct_timespec_in_sys_time_h" >&5
14881 $as_echo "$gl_cv_sys_struct_timespec_in_sys_time_h" >&6; }
14882 if test $gl_cv_sys_struct_timespec_in_sys_time_h = yes; then
14883 SYS_TIME_H_DEFINES_STRUCT_TIMESPEC
=1
14885 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for struct timespec in <pthread.h>" >&5
14886 $as_echo_n "checking for struct timespec in <pthread.h>... " >&6; }
14887 if ${gl_cv_sys_struct_timespec_in_pthread_h+:} false
; then :
14888 $as_echo_n "(cached) " >&6
14890 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
14891 /* end confdefs.h. */
14892 #include <pthread.h>
14897 static struct timespec x; x.tv_sec = x.tv_nsec;
14902 if ac_fn_c_try_compile
"$LINENO"; then :
14903 gl_cv_sys_struct_timespec_in_pthread_h
=yes
14905 gl_cv_sys_struct_timespec_in_pthread_h
=no
14907 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
14909 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_sys_struct_timespec_in_pthread_h" >&5
14910 $as_echo "$gl_cv_sys_struct_timespec_in_pthread_h" >&6; }
14911 if test $gl_cv_sys_struct_timespec_in_pthread_h = yes; then
14912 PTHREAD_H_DEFINES_STRUCT_TIMESPEC
=1
14931 if test $gl_cv_have_include_next = yes; then
14932 gl_cv_next_time_h
='<'time.h
'>'
14934 { $as_echo "$as_me:${as_lineno-$LINENO}: checking absolute name of <time.h>" >&5
14935 $as_echo_n "checking absolute name of <time.h>... " >&6; }
14936 if ${gl_cv_next_time_h+:} false
; then :
14937 $as_echo_n "(cached) " >&6
14940 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
14941 /* end confdefs.h. */
14946 aix
*) gl_absname_cpp
="$ac_cpp -C" ;;
14947 *) gl_absname_cpp
="$ac_cpp" ;;
14949 gl_cv_next_time_h
='"'`(eval "$gl_absname_cpp conftest.$ac_ext") 2>&5 |
14950 sed -n '\#/time.h#{
14951 s#.*"\(.*/time.h\)".*#\1#
14959 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_next_time_h" >&5
14960 $as_echo "$gl_cv_next_time_h" >&6; }
14962 NEXT_TIME_H
=$gl_cv_next_time_h
14964 if test $gl_cv_have_include_next = yes ||
test $gl_cv_have_include_next = buggy
; then
14965 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include_next'
14966 gl_next_as_first_directive
='<'time.h
'>'
14968 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include'
14969 gl_next_as_first_directive
=$gl_cv_next_time_h
14971 NEXT_AS_FIRST_DIRECTIVE_TIME_H
=$gl_next_as_first_directive
14978 ac_fn_c_check_decl
"$LINENO" "localtime_r" "ac_cv_have_decl_localtime_r" "$ac_includes_default"
14979 if test "x$ac_cv_have_decl_localtime_r" = xyes
; then :
14985 cat >>confdefs.h
<<_ACEOF
14986 #define HAVE_DECL_LOCALTIME_R $ac_have_decl
14993 GL_COND_LIBTOOL_TRUE
=
14994 GL_COND_LIBTOOL_FALSE
='#'
14996 GL_COND_LIBTOOL_TRUE
='#'
14997 GL_COND_LIBTOOL_FALSE
=
15000 gl_cond_libtool
=false
15013 gl_source_base
='lib'
15014 # Code from module arg-nonnull:
15015 # Code from module c++defs:
15016 # Code from module crypto/md5:
15026 gl_LIBOBJS
="$gl_LIBOBJS md5.$ac_objext"
15033 # Code from module dtoastr:
15035 # Code from module extensions:
15036 # Code from module getloadavg:
15039 # Persuade glibc <stdlib.h> to declare getloadavg().
15042 # Make sure getloadavg.c is where it belongs, at configure-time.
15043 test -f "$srcdir/$gl_source_base/getloadavg.c" ||
15044 as_fn_error $?
"$srcdir/$gl_source_base/getloadavg.c is missing" "$LINENO" 5
15048 # getloadvg is present in libc on glibc >= 2.2, MacOS X, FreeBSD >= 2.0,
15049 # NetBSD >= 0.9, OpenBSD >= 2.0, Solaris >= 7.
15050 ac_fn_c_check_func
"$LINENO" "getloadavg" "ac_cv_func_getloadavg"
15051 if test "x$ac_cv_func_getloadavg" = xyes
; then :
15056 # Some systems with -lutil have (and need) -lkvm as well, some do not.
15057 # On Solaris, -lkvm requires nlist from -lelf, so check that first
15058 # to get the right answer into the cache.
15059 # For kstat on solaris, we need to test for libelf and libkvm to force the
15060 # definition of SVR4 below.
15061 if test $gl_have_func = no
; then
15062 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for elf_begin in -lelf" >&5
15063 $as_echo_n "checking for elf_begin in -lelf... " >&6; }
15064 if ${ac_cv_lib_elf_elf_begin+:} false
; then :
15065 $as_echo_n "(cached) " >&6
15067 ac_check_lib_save_LIBS
=$LIBS
15069 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
15070 /* end confdefs.h. */
15072 /* Override any GCC internal prototype to avoid an error.
15073 Use char because int might match the return type of a GCC
15074 builtin and then its argument prototype would still apply. */
15082 return elf_begin ();
15087 if ac_fn_c_try_link
"$LINENO"; then :
15088 ac_cv_lib_elf_elf_begin
=yes
15090 ac_cv_lib_elf_elf_begin
=no
15092 rm -f core conftest.err conftest.
$ac_objext \
15093 conftest
$ac_exeext conftest.
$ac_ext
15094 LIBS
=$ac_check_lib_save_LIBS
15096 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_elf_elf_begin" >&5
15097 $as_echo "$ac_cv_lib_elf_elf_begin" >&6; }
15098 if test "x$ac_cv_lib_elf_elf_begin" = xyes
; then :
15102 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for kvm_open in -lkvm" >&5
15103 $as_echo_n "checking for kvm_open in -lkvm... " >&6; }
15104 if ${ac_cv_lib_kvm_kvm_open+:} false
; then :
15105 $as_echo_n "(cached) " >&6
15107 ac_check_lib_save_LIBS
=$LIBS
15109 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
15110 /* end confdefs.h. */
15112 /* Override any GCC internal prototype to avoid an error.
15113 Use char because int might match the return type of a GCC
15114 builtin and then its argument prototype would still apply. */
15122 return kvm_open ();
15127 if ac_fn_c_try_link
"$LINENO"; then :
15128 ac_cv_lib_kvm_kvm_open
=yes
15130 ac_cv_lib_kvm_kvm_open
=no
15132 rm -f core conftest.err conftest.
$ac_objext \
15133 conftest
$ac_exeext conftest.
$ac_ext
15134 LIBS
=$ac_check_lib_save_LIBS
15136 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_kvm_kvm_open" >&5
15137 $as_echo "$ac_cv_lib_kvm_kvm_open" >&6; }
15138 if test "x$ac_cv_lib_kvm_kvm_open" = xyes
; then :
15142 # Check for the 4.4BSD definition of getloadavg.
15143 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for getloadavg in -lutil" >&5
15144 $as_echo_n "checking for getloadavg in -lutil... " >&6; }
15145 if ${ac_cv_lib_util_getloadavg+:} false
; then :
15146 $as_echo_n "(cached) " >&6
15148 ac_check_lib_save_LIBS
=$LIBS
15149 LIBS
="-lutil $LIBS"
15150 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
15151 /* end confdefs.h. */
15153 /* Override any GCC internal prototype to avoid an error.
15154 Use char because int might match the return type of a GCC
15155 builtin and then its argument prototype would still apply. */
15159 char getloadavg ();
15163 return getloadavg ();
15168 if ac_fn_c_try_link
"$LINENO"; then :
15169 ac_cv_lib_util_getloadavg
=yes
15171 ac_cv_lib_util_getloadavg
=no
15173 rm -f core conftest.err conftest.
$ac_objext \
15174 conftest
$ac_exeext conftest.
$ac_ext
15175 LIBS
=$ac_check_lib_save_LIBS
15177 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_util_getloadavg" >&5
15178 $as_echo "$ac_cv_lib_util_getloadavg" >&6; }
15179 if test "x$ac_cv_lib_util_getloadavg" = xyes
; then :
15180 LIBS
="-lutil $LIBS" gl_have_func
=yes
15185 if test $gl_have_func = no
; then
15186 # There is a commonly available library for RS/6000 AIX.
15187 # Since it is not a standard part of AIX, it might be installed locally.
15188 gl_getloadavg_LIBS
=$LIBS
15189 LIBS
="-L/usr/local/lib $LIBS"
15190 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for getloadavg in -lgetloadavg" >&5
15191 $as_echo_n "checking for getloadavg in -lgetloadavg... " >&6; }
15192 if ${ac_cv_lib_getloadavg_getloadavg+:} false
; then :
15193 $as_echo_n "(cached) " >&6
15195 ac_check_lib_save_LIBS
=$LIBS
15196 LIBS
="-lgetloadavg $LIBS"
15197 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
15198 /* end confdefs.h. */
15200 /* Override any GCC internal prototype to avoid an error.
15201 Use char because int might match the return type of a GCC
15202 builtin and then its argument prototype would still apply. */
15206 char getloadavg ();
15210 return getloadavg ();
15215 if ac_fn_c_try_link
"$LINENO"; then :
15216 ac_cv_lib_getloadavg_getloadavg
=yes
15218 ac_cv_lib_getloadavg_getloadavg
=no
15220 rm -f core conftest.err conftest.
$ac_objext \
15221 conftest
$ac_exeext conftest.
$ac_ext
15222 LIBS
=$ac_check_lib_save_LIBS
15224 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_getloadavg_getloadavg" >&5
15225 $as_echo "$ac_cv_lib_getloadavg_getloadavg" >&6; }
15226 if test "x$ac_cv_lib_getloadavg_getloadavg" = xyes
; then :
15227 LIBS
="-lgetloadavg $LIBS" gl_have_func
=yes
15229 LIBS
=$gl_getloadavg_LIBS
15234 # Set up the replacement function if necessary.
15235 if test $gl_have_func = no
; then
15244 gl_LIBOBJS
="$gl_LIBOBJS getloadavg.$ac_objext"
15247 # Figure out what our getloadavg.c needs.
15249 # Solaris has libkstat which does not require root.
15250 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for kstat_open in -lkstat" >&5
15251 $as_echo_n "checking for kstat_open in -lkstat... " >&6; }
15252 if ${ac_cv_lib_kstat_kstat_open+:} false
; then :
15253 $as_echo_n "(cached) " >&6
15255 ac_check_lib_save_LIBS
=$LIBS
15256 LIBS
="-lkstat $LIBS"
15257 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
15258 /* end confdefs.h. */
15260 /* Override any GCC internal prototype to avoid an error.
15261 Use char because int might match the return type of a GCC
15262 builtin and then its argument prototype would still apply. */
15266 char kstat_open ();
15270 return kstat_open ();
15275 if ac_fn_c_try_link
"$LINENO"; then :
15276 ac_cv_lib_kstat_kstat_open
=yes
15278 ac_cv_lib_kstat_kstat_open
=no
15280 rm -f core conftest.err conftest.
$ac_objext \
15281 conftest
$ac_exeext conftest.
$ac_ext
15282 LIBS
=$ac_check_lib_save_LIBS
15284 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_kstat_kstat_open" >&5
15285 $as_echo "$ac_cv_lib_kstat_kstat_open" >&6; }
15286 if test "x$ac_cv_lib_kstat_kstat_open" = xyes
; then :
15287 cat >>confdefs.h
<<_ACEOF
15288 #define HAVE_LIBKSTAT 1
15291 LIBS
="-lkstat $LIBS"
15295 test $ac_cv_lib_kstat_kstat_open = yes && gl_have_func
=yes
15297 # On HPUX9, an unprivileged user can get load averages this way.
15298 if test $gl_have_func = no
; then
15299 for ac_func
in pstat_getdynamic
15301 ac_fn_c_check_func
"$LINENO" "pstat_getdynamic" "ac_cv_func_pstat_getdynamic"
15302 if test "x$ac_cv_func_pstat_getdynamic" = xyes
; then :
15303 cat >>confdefs.h
<<_ACEOF
15304 #define HAVE_PSTAT_GETDYNAMIC 1
15312 # AIX has libperfstat which does not require root
15313 if test $gl_have_func = no
; then
15314 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for perfstat_cpu_total in -lperfstat" >&5
15315 $as_echo_n "checking for perfstat_cpu_total in -lperfstat... " >&6; }
15316 if ${ac_cv_lib_perfstat_perfstat_cpu_total+:} false
; then :
15317 $as_echo_n "(cached) " >&6
15319 ac_check_lib_save_LIBS
=$LIBS
15320 LIBS
="-lperfstat $LIBS"
15321 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
15322 /* end confdefs.h. */
15324 /* Override any GCC internal prototype to avoid an error.
15325 Use char because int might match the return type of a GCC
15326 builtin and then its argument prototype would still apply. */
15330 char perfstat_cpu_total ();
15334 return perfstat_cpu_total ();
15339 if ac_fn_c_try_link
"$LINENO"; then :
15340 ac_cv_lib_perfstat_perfstat_cpu_total
=yes
15342 ac_cv_lib_perfstat_perfstat_cpu_total
=no
15344 rm -f core conftest.err conftest.
$ac_objext \
15345 conftest
$ac_exeext conftest.
$ac_ext
15346 LIBS
=$ac_check_lib_save_LIBS
15348 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_perfstat_perfstat_cpu_total" >&5
15349 $as_echo "$ac_cv_lib_perfstat_perfstat_cpu_total" >&6; }
15350 if test "x$ac_cv_lib_perfstat_perfstat_cpu_total" = xyes
; then :
15351 cat >>confdefs.h
<<_ACEOF
15352 #define HAVE_LIBPERFSTAT 1
15355 LIBS
="-lperfstat $LIBS"
15359 test $ac_cv_lib_perfstat_perfstat_cpu_total = yes && gl_have_func
=yes
15362 if test $gl_have_func = no
; then
15363 ac_fn_c_check_header_mongrel
"$LINENO" "sys/dg_sys_info.h" "ac_cv_header_sys_dg_sys_info_h" "$ac_includes_default"
15364 if test "x$ac_cv_header_sys_dg_sys_info_h" = xyes
; then :
15367 $as_echo "#define DGUX 1" >>confdefs.h
15369 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dg_sys_info in -ldgc" >&5
15370 $as_echo_n "checking for dg_sys_info in -ldgc... " >&6; }
15371 if ${ac_cv_lib_dgc_dg_sys_info+:} false
; then :
15372 $as_echo_n "(cached) " >&6
15374 ac_check_lib_save_LIBS
=$LIBS
15376 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
15377 /* end confdefs.h. */
15379 /* Override any GCC internal prototype to avoid an error.
15380 Use char because int might match the return type of a GCC
15381 builtin and then its argument prototype would still apply. */
15385 char dg_sys_info ();
15389 return dg_sys_info ();
15394 if ac_fn_c_try_link
"$LINENO"; then :
15395 ac_cv_lib_dgc_dg_sys_info
=yes
15397 ac_cv_lib_dgc_dg_sys_info
=no
15399 rm -f core conftest.err conftest.
$ac_objext \
15400 conftest
$ac_exeext conftest.
$ac_ext
15401 LIBS
=$ac_check_lib_save_LIBS
15403 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dgc_dg_sys_info" >&5
15404 $as_echo "$ac_cv_lib_dgc_dg_sys_info" >&6; }
15405 if test "x$ac_cv_lib_dgc_dg_sys_info" = xyes
; then :
15406 cat >>confdefs.h
<<_ACEOF
15407 #define HAVE_LIBDGC 1
15419 # We cannot check for <dwarf.h>, because Solaris 2 does not use dwarf (it
15420 # uses stabs), but it is still SVR4. We cannot check for <elf.h> because
15421 # Irix 4.0.5F has the header but not the library.
15422 if test $gl_have_func = no
&& test "$ac_cv_lib_elf_elf_begin" = yes \
15423 && test "$ac_cv_lib_kvm_kvm_open" = yes; then
15426 $as_echo "#define SVR4 1" >>confdefs.h
15430 if test $gl_have_func = no
; then
15431 ac_fn_c_check_header_mongrel
"$LINENO" "inq_stats/cpustats.h" "ac_cv_header_inq_stats_cpustats_h" "$ac_includes_default"
15432 if test "x$ac_cv_header_inq_stats_cpustats_h" = xyes
; then :
15435 $as_echo "#define UMAX 1" >>confdefs.h
15438 $as_echo "#define UMAX4_3 1" >>confdefs.h
15445 if test $gl_have_func = no
; then
15446 ac_fn_c_check_header_mongrel
"$LINENO" "sys/cpustats.h" "ac_cv_header_sys_cpustats_h" "$ac_includes_default"
15447 if test "x$ac_cv_header_sys_cpustats_h" = xyes
; then :
15448 gl_have_func
=yes; $as_echo "#define UMAX 1" >>confdefs.h
15455 if test $gl_have_func = no
; then
15456 for ac_header
in mach
/mach.h
15458 ac_fn_c_check_header_mongrel
"$LINENO" "mach/mach.h" "ac_cv_header_mach_mach_h" "$ac_includes_default"
15459 if test "x$ac_cv_header_mach_mach_h" = xyes
; then :
15460 cat >>confdefs.h
<<_ACEOF
15461 #define HAVE_MACH_MACH_H 1
15470 for ac_header
in nlist.h
15472 ac_fn_c_check_header_mongrel
"$LINENO" "nlist.h" "ac_cv_header_nlist_h" "$ac_includes_default"
15473 if test "x$ac_cv_header_nlist_h" = xyes
; then :
15474 cat >>confdefs.h
<<_ACEOF
15475 #define HAVE_NLIST_H 1
15477 ac_fn_c_check_member
"$LINENO" "struct nlist" "n_un.n_name" "ac_cv_member_struct_nlist_n_un_n_name" "#include <nlist.h>
15479 if test "x$ac_cv_member_struct_nlist_n_un_n_name" = xyes
; then :
15481 cat >>confdefs.h
<<_ACEOF
15482 #define HAVE_STRUCT_NLIST_N_UN_N_NAME 1
15488 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
15489 /* end confdefs.h. */
15495 #ifdef HAVE_STRUCT_NLIST_N_UN_N_NAME
15496 x.n_un.n_name = "";
15504 if ac_fn_c_try_link
"$LINENO"; then :
15506 $as_echo "#define N_NAME_POINTER 1" >>confdefs.h
15509 rm -f core conftest.err conftest.
$ac_objext \
15510 conftest
$ac_exeext conftest.
$ac_ext
15520 if test "x$gl_save_LIBS" = x
; then
15521 GETLOADAVG_LIBS
=$LIBS
15523 GETLOADAVG_LIBS
=`echo "$LIBS" | sed "s!$gl_save_LIBS!!"`
15528 # Test whether the system declares getloadavg. Solaris has the function
15529 # but declares it in <sys/loadavg.h>, not <stdlib.h>.
15530 for ac_header
in sys
/loadavg.h
15532 ac_fn_c_check_header_mongrel
"$LINENO" "sys/loadavg.h" "ac_cv_header_sys_loadavg_h" "$ac_includes_default"
15533 if test "x$ac_cv_header_sys_loadavg_h" = xyes
; then :
15534 cat >>confdefs.h
<<_ACEOF
15535 #define HAVE_SYS_LOADAVG_H 1
15542 if test $ac_cv_header_sys_loadavg_h = yes; then
15543 HAVE_SYS_LOADAVG_H
=1
15545 HAVE_SYS_LOADAVG_H
=0
15547 ac_fn_c_check_decl
"$LINENO" "getloadavg" "ac_cv_have_decl_getloadavg" "#if HAVE_SYS_LOADAVG_H
15548 # include <sys/loadavg.h>
15550 #include <stdlib.h>
15552 if test "x$ac_cv_have_decl_getloadavg" = xyes
; then :
15555 HAVE_DECL_GETLOADAVG
=0
15562 GNULIB_GETLOADAVG
=1
15566 # Code from module getopt-gnu:
15573 # Code from module getopt-posix:
15579 if test -n "$gl_replace_getopt"; then :
15585 $as_echo "#define __GETOPT_PREFIX rpl_" >>confdefs.h
15589 GNULIB_UNISTD_H_GETOPT
=1
15598 gl_LIBOBJS
="$gl_LIBOBJS getopt.$ac_objext"
15608 gl_LIBOBJS
="$gl_LIBOBJS getopt1.$ac_objext"
15618 # Code from module gettext-h:
15621 # Code from module ignore-value:
15623 # Code from module include_next:
15624 # Code from module intprops:
15625 # Code from module mktime:
15631 if test $APPLE_UNIVERSAL_BUILD = 1; then
15632 # A universal build on Apple MacOS X platforms.
15633 # The test result would be 'yes' in 32-bit mode and 'no' in 64-bit mode.
15634 # But we need a configuration result that is valid in both modes.
15635 ac_cv_func_working_mktime
=no
15637 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working mktime" >&5
15638 $as_echo_n "checking for working mktime... " >&6; }
15639 if ${ac_cv_func_working_mktime+:} false
; then :
15640 $as_echo_n "(cached) " >&6
15642 if test "$cross_compiling" = yes; then :
15643 ac_cv_func_working_mktime
=no
15645 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
15646 /* end confdefs.h. */
15647 /* Test program from Paul Eggert and Tony Leneis. */
15648 #include <limits.h>
15649 #include <stdlib.h>
15652 #ifdef HAVE_UNISTD_H
15653 # include <unistd.h>
15657 # define alarm(X) /* empty */
15660 /* Work around redefinition to rpl_putenv by other config tests. */
15663 static time_t time_t_max;
15664 static time_t time_t_min;
15666 /* Values we'll use to set the TZ environment variable. */
15667 static char *tz_strings[] = {
15668 (char *) 0, "TZ=GMT0", "TZ=JST-9",
15669 "TZ=EST+3EDT+2,M10.1.0/00:00:00,M2.3.0/00:00:00"
15671 #define N_STRINGS (sizeof (tz_strings) / sizeof (tz_strings[0]))
15673 /* Return 0 if mktime fails to convert a date in the spring-forward gap.
15674 Based on a problem report from Andreas Jaeger. */
15676 spring_forward_gap ()
15678 /* glibc (up to about 1998-10-07) failed this test. */
15681 /* Use the portable POSIX.1 specification "TZ=PST8PDT,M4.1.0,M10.5.0"
15682 instead of "TZ=America/Vancouver" in order to detect the bug even
15683 on systems that don't support the Olson extension, or don't have the
15684 full zoneinfo tables installed. */
15685 putenv ("TZ=PST8PDT,M4.1.0,M10.5.0");
15694 return mktime (&tm) != (time_t) -1;
15698 mktime_test1 (time_t now)
15701 return ! (lt = localtime (&now)) || mktime (lt) == now;
15705 mktime_test (time_t now)
15707 return (mktime_test1 (now)
15708 && mktime_test1 ((time_t) (time_t_max - now))
15709 && mktime_test1 ((time_t) (time_t_min + now)));
15715 /* Based on code from Ariel Faigon. */
15725 return tm.tm_mon == 2 && tm.tm_mday == 31;
15729 bigtime_test (int j)
15733 tm.tm_year = tm.tm_mon = tm.tm_mday = tm.tm_hour = tm.tm_min = tm.tm_sec = j;
15734 now = mktime (&tm);
15735 if (now != (time_t) -1)
15737 struct tm *lt = localtime (&now);
15739 && lt->tm_year == tm.tm_year
15740 && lt->tm_mon == tm.tm_mon
15741 && lt->tm_mday == tm.tm_mday
15742 && lt->tm_hour == tm.tm_hour
15743 && lt->tm_min == tm.tm_min
15744 && lt->tm_sec == tm.tm_sec
15745 && lt->tm_yday == tm.tm_yday
15746 && lt->tm_wday == tm.tm_wday
15747 && ((lt->tm_isdst < 0 ? -1 : 0 < lt->tm_isdst)
15748 == (tm.tm_isdst < 0 ? -1 : 0 < tm.tm_isdst))))
15757 /* The correct answer for 2050-02-01 00:00:00 in Pacific time,
15758 ignoring leap seconds. */
15759 unsigned long int answer = 2527315200UL;
15763 tm.tm_year = 2050 - 1900;
15766 tm.tm_hour = tm.tm_min = tm.tm_sec = 0;
15769 /* Use the portable POSIX.1 specification "TZ=PST8PDT,M4.1.0,M10.5.0"
15770 instead of "TZ=America/Vancouver" in order to detect the bug even
15771 on systems that don't support the Olson extension, or don't have the
15772 full zoneinfo tables installed. */
15773 putenv ("TZ=PST8PDT,M4.1.0,M10.5.0");
15777 /* Check that the result is either a failure, or close enough
15778 to the correct answer that we can assume the discrepancy is
15779 due to leap seconds. */
15780 return (t == (time_t) -1
15781 || (0 < t && answer - 120 <= t && t <= answer + 120));
15790 int time_t_signed_magnitude = (time_t) ~ (time_t) 0 < (time_t) -1;
15791 int time_t_signed = ! ((time_t) 0 < (time_t) -1);
15793 /* This test makes some buggy mktime implementations loop.
15794 Give up after 60 seconds; a mktime slower than that
15795 isn't worth using anyway. */
15798 time_t_max = (! time_t_signed
15800 : ((((time_t) 1 << (sizeof (time_t) * CHAR_BIT - 2)) - 1)
15802 time_t_min = (! time_t_signed
15804 : time_t_signed_magnitude
15808 delta = time_t_max / 997; /* a suitable prime number */
15809 for (i = 0; i < N_STRINGS; i++)
15812 putenv (tz_strings[i]);
15814 for (t = 0; t <= time_t_max - delta; t += delta)
15815 if (! mktime_test (t))
15817 if (! (mktime_test ((time_t) 1)
15818 && mktime_test ((time_t) (60 * 60))
15819 && mktime_test ((time_t) (60 * 60 * 24))))
15822 for (j = 1; ; j <<= 1)
15823 if (! bigtime_test (j))
15825 else if (INT_MAX / 2 < j)
15827 if (! bigtime_test (INT_MAX))
15830 if (! irix_6_4_bug ())
15832 if (! spring_forward_gap ())
15834 if (! year_2050_test ())
15839 if ac_fn_c_try_run
"$LINENO"; then :
15840 ac_cv_func_working_mktime
=yes
15842 ac_cv_func_working_mktime
=no
15844 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
15845 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
15849 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_working_mktime" >&5
15850 $as_echo "$ac_cv_func_working_mktime" >&6; }
15851 if test $ac_cv_func_working_mktime = no
; then
15860 gl_LIBOBJS
="$gl_LIBOBJS mktime.$ac_objext"
15864 if test $ac_cv_func_working_mktime = no
; then
15880 # Code from module multiarch:
15882 # Code from module stdbool:
15886 # Define two additional variables used in the Makefile substitution.
15888 if test "$ac_cv_header_stdbool_h" = yes; then
15891 STDBOOL_H
='stdbool.h'
15895 if test "$ac_cv_type__Bool" = yes; then
15902 # Code from module stddef:
15906 if test $gt_cv_c_wchar_t = no
; then
15910 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether NULL can be used in arbitrary expressions" >&5
15911 $as_echo_n "checking whether NULL can be used in arbitrary expressions... " >&6; }
15912 if ${gl_cv_decl_null_works+:} false
; then :
15913 $as_echo_n "(cached) " >&6
15915 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
15916 /* end confdefs.h. */
15917 #include <stddef.h>
15918 int test[2 * (sizeof NULL == sizeof (void *)) -1];
15928 if ac_fn_c_try_compile
"$LINENO"; then :
15929 gl_cv_decl_null_works
=yes
15931 gl_cv_decl_null_works
=no
15933 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
15935 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_decl_null_works" >&5
15936 $as_echo "$gl_cv_decl_null_works" >&6; }
15937 if test $gl_cv_decl_null_works = no
; then
15941 if test -n "$STDDEF_H"; then
15950 if test $gl_cv_have_include_next = yes; then
15951 gl_cv_next_stddef_h
='<'stddef.h
'>'
15953 { $as_echo "$as_me:${as_lineno-$LINENO}: checking absolute name of <stddef.h>" >&5
15954 $as_echo_n "checking absolute name of <stddef.h>... " >&6; }
15955 if ${gl_cv_next_stddef_h+:} false
; then :
15956 $as_echo_n "(cached) " >&6
15959 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
15960 /* end confdefs.h. */
15961 #include <stddef.h>
15965 aix
*) gl_absname_cpp
="$ac_cpp -C" ;;
15966 *) gl_absname_cpp
="$ac_cpp" ;;
15968 gl_cv_next_stddef_h
='"'`(eval "$gl_absname_cpp conftest.$ac_ext") 2>&5 |
15969 sed -n '\#/stddef.h#{
15970 s#.*"\(.*/stddef.h\)".*#\1#
15978 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_next_stddef_h" >&5
15979 $as_echo "$gl_cv_next_stddef_h" >&6; }
15981 NEXT_STDDEF_H
=$gl_cv_next_stddef_h
15983 if test $gl_cv_have_include_next = yes ||
test $gl_cv_have_include_next = buggy
; then
15984 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include_next'
15985 gl_next_as_first_directive
='<'stddef.h
'>'
15987 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include'
15988 gl_next_as_first_directive
=$gl_cv_next_stddef_h
15990 NEXT_AS_FIRST_DIRECTIVE_STDDEF_H
=$gl_next_as_first_directive
15997 # Code from module stdint:
16001 if test $ac_cv_type_long_long_int = yes; then
16002 HAVE_LONG_LONG_INT
=1
16004 HAVE_LONG_LONG_INT
=0
16008 if test $ac_cv_type_unsigned_long_long_int = yes; then
16009 HAVE_UNSIGNED_LONG_LONG_INT
=1
16011 HAVE_UNSIGNED_LONG_LONG_INT
=0
16016 if test $ac_cv_header_wchar_h = yes; then
16023 if test $ac_cv_header_inttypes_h = yes; then
16030 if test $ac_cv_header_sys_types_h = yes; then
16046 if test $gl_cv_have_include_next = yes; then
16047 gl_cv_next_stdint_h
='<'stdint.h
'>'
16049 { $as_echo "$as_me:${as_lineno-$LINENO}: checking absolute name of <stdint.h>" >&5
16050 $as_echo_n "checking absolute name of <stdint.h>... " >&6; }
16051 if ${gl_cv_next_stdint_h+:} false
; then :
16052 $as_echo_n "(cached) " >&6
16055 if test $ac_cv_header_stdint_h = yes; then
16058 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
16059 /* end confdefs.h. */
16060 #include <stdint.h>
16064 aix
*) gl_absname_cpp
="$ac_cpp -C" ;;
16065 *) gl_absname_cpp
="$ac_cpp" ;;
16067 gl_cv_next_stdint_h
='"'`(eval "$gl_absname_cpp conftest.$ac_ext") 2>&5 |
16068 sed -n '\#/stdint.h#{
16069 s#.*"\(.*/stdint.h\)".*#\1#
16075 gl_cv_next_stdint_h
='<'stdint.h
'>'
16080 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_next_stdint_h" >&5
16081 $as_echo "$gl_cv_next_stdint_h" >&6; }
16083 NEXT_STDINT_H
=$gl_cv_next_stdint_h
16085 if test $gl_cv_have_include_next = yes ||
test $gl_cv_have_include_next = buggy
; then
16086 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include_next'
16087 gl_next_as_first_directive
='<'stdint.h
'>'
16089 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include'
16090 gl_next_as_first_directive
=$gl_cv_next_stdint_h
16092 NEXT_AS_FIRST_DIRECTIVE_STDINT_H
=$gl_next_as_first_directive
16097 if test $ac_cv_header_stdint_h = yes; then
16104 if test $ac_cv_header_stdint_h = yes; then
16105 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stdint.h conforms to C99" >&5
16106 $as_echo_n "checking whether stdint.h conforms to C99... " >&6; }
16107 if ${gl_cv_header_working_stdint_h+:} false
; then :
16108 $as_echo_n "(cached) " >&6
16110 gl_cv_header_working_stdint_h
=no
16111 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
16112 /* end confdefs.h. */
16115 #define __STDC_LIMIT_MACROS 1 /* to make it work also in C++ mode */
16116 #define __STDC_CONSTANT_MACROS 1 /* to make it work also in C++ mode */
16117 #define _GL_JUST_INCLUDE_SYSTEM_STDINT_H 1 /* work if build isn't clean */
16118 #include <stdint.h>
16119 /* Dragonfly defines WCHAR_MIN, WCHAR_MAX only in <wchar.h>. */
16120 #if !(defined WCHAR_MIN && defined WCHAR_MAX)
16121 #error "WCHAR_MIN, WCHAR_MAX not defined in <stdint.h>"
16125 /* BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be
16126 included before <wchar.h>. */
16127 #include <stddef.h>
16128 #include <signal.h>
16130 # include <stdio.h>
16132 # include <wchar.h>
16137 int8_t a1 = INT8_MAX;
16138 int8_t a1min = INT8_MIN;
16141 int16_t a2 = INT16_MAX;
16142 int16_t a2min = INT16_MIN;
16145 int32_t a3 = INT32_MAX;
16146 int32_t a3min = INT32_MIN;
16149 int64_t a4 = INT64_MAX;
16150 int64_t a4min = INT64_MIN;
16153 uint8_t b1 = UINT8_MAX;
16155 typedef int b1[(unsigned char) -1 != 255 ? 1 : -1];
16158 uint16_t b2 = UINT16_MAX;
16161 uint32_t b3 = UINT32_MAX;
16164 uint64_t b4 = UINT64_MAX;
16166 int_least8_t c1 = INT8_C (0x7f);
16167 int_least8_t c1max = INT_LEAST8_MAX;
16168 int_least8_t c1min = INT_LEAST8_MIN;
16169 int_least16_t c2 = INT16_C (0x7fff);
16170 int_least16_t c2max = INT_LEAST16_MAX;
16171 int_least16_t c2min = INT_LEAST16_MIN;
16172 int_least32_t c3 = INT32_C (0x7fffffff);
16173 int_least32_t c3max = INT_LEAST32_MAX;
16174 int_least32_t c3min = INT_LEAST32_MIN;
16175 int_least64_t c4 = INT64_C (0x7fffffffffffffff);
16176 int_least64_t c4max = INT_LEAST64_MAX;
16177 int_least64_t c4min = INT_LEAST64_MIN;
16178 uint_least8_t d1 = UINT8_C (0xff);
16179 uint_least8_t d1max = UINT_LEAST8_MAX;
16180 uint_least16_t d2 = UINT16_C (0xffff);
16181 uint_least16_t d2max = UINT_LEAST16_MAX;
16182 uint_least32_t d3 = UINT32_C (0xffffffff);
16183 uint_least32_t d3max = UINT_LEAST32_MAX;
16184 uint_least64_t d4 = UINT64_C (0xffffffffffffffff);
16185 uint_least64_t d4max = UINT_LEAST64_MAX;
16186 int_fast8_t e1 = INT_FAST8_MAX;
16187 int_fast8_t e1min = INT_FAST8_MIN;
16188 int_fast16_t e2 = INT_FAST16_MAX;
16189 int_fast16_t e2min = INT_FAST16_MIN;
16190 int_fast32_t e3 = INT_FAST32_MAX;
16191 int_fast32_t e3min = INT_FAST32_MIN;
16192 int_fast64_t e4 = INT_FAST64_MAX;
16193 int_fast64_t e4min = INT_FAST64_MIN;
16194 uint_fast8_t f1 = UINT_FAST8_MAX;
16195 uint_fast16_t f2 = UINT_FAST16_MAX;
16196 uint_fast32_t f3 = UINT_FAST32_MAX;
16197 uint_fast64_t f4 = UINT_FAST64_MAX;
16199 intptr_t g = INTPTR_MAX;
16200 intptr_t gmin = INTPTR_MIN;
16203 uintptr_t h = UINTPTR_MAX;
16205 intmax_t i = INTMAX_MAX;
16206 uintmax_t j = UINTMAX_MAX;
16208 #include <limits.h> /* for CHAR_BIT */
16209 #define TYPE_MINIMUM(t) \
16210 ((t) ((t) 0 < (t) -1 ? (t) 0 : ~ TYPE_MAXIMUM (t)))
16211 #define TYPE_MAXIMUM(t) \
16212 ((t) ((t) 0 < (t) -1 \
16214 : ((((t) 1 << (sizeof (t) * CHAR_BIT - 2)) - 1) * 2 + 1)))
16217 PTRDIFF_MIN == TYPE_MINIMUM (ptrdiff_t)
16218 && PTRDIFF_MAX == TYPE_MAXIMUM (ptrdiff_t)
16220 /* Detect bug in FreeBSD 6.0 / ia64. */
16221 int check_SIG_ATOMIC:
16222 SIG_ATOMIC_MIN == TYPE_MINIMUM (sig_atomic_t)
16223 && SIG_ATOMIC_MAX == TYPE_MAXIMUM (sig_atomic_t)
16225 int check_SIZE: SIZE_MAX == TYPE_MAXIMUM (size_t) ? 1 : -1;
16227 WCHAR_MIN == TYPE_MINIMUM (wchar_t)
16228 && WCHAR_MAX == TYPE_MAXIMUM (wchar_t)
16230 /* Detect bug in mingw. */
16232 WINT_MIN == TYPE_MINIMUM (wint_t)
16233 && WINT_MAX == TYPE_MAXIMUM (wint_t)
16236 /* Detect bugs in glibc 2.4 and Solaris 10 stdint.h, among others. */
16238 (-1 < UINT8_C (0)) == (-1 < (uint_least8_t) 0) ? 1 : -1;
16239 int check_UINT16_C:
16240 (-1 < UINT16_C (0)) == (-1 < (uint_least16_t) 0) ? 1 : -1;
16242 /* Detect bugs in OpenBSD 3.9 stdint.h. */
16244 int check_uint8: (uint8_t) -1 == UINT8_MAX ? 1 : -1;
16247 int check_uint16: (uint16_t) -1 == UINT16_MAX ? 1 : -1;
16250 int check_uint32: (uint32_t) -1 == UINT32_MAX ? 1 : -1;
16253 int check_uint64: (uint64_t) -1 == UINT64_MAX ? 1 : -1;
16255 int check_uint_least8: (uint_least8_t) -1 == UINT_LEAST8_MAX ? 1 : -1;
16256 int check_uint_least16: (uint_least16_t) -1 == UINT_LEAST16_MAX ? 1 : -1;
16257 int check_uint_least32: (uint_least32_t) -1 == UINT_LEAST32_MAX ? 1 : -1;
16258 int check_uint_least64: (uint_least64_t) -1 == UINT_LEAST64_MAX ? 1 : -1;
16259 int check_uint_fast8: (uint_fast8_t) -1 == UINT_FAST8_MAX ? 1 : -1;
16260 int check_uint_fast16: (uint_fast16_t) -1 == UINT_FAST16_MAX ? 1 : -1;
16261 int check_uint_fast32: (uint_fast32_t) -1 == UINT_FAST32_MAX ? 1 : -1;
16262 int check_uint_fast64: (uint_fast64_t) -1 == UINT_FAST64_MAX ? 1 : -1;
16263 int check_uintptr: (uintptr_t) -1 == UINTPTR_MAX ? 1 : -1;
16264 int check_uintmax: (uintmax_t) -1 == UINTMAX_MAX ? 1 : -1;
16265 int check_size: (size_t) -1 == SIZE_MAX ? 1 : -1;
16276 if ac_fn_c_try_compile
"$LINENO"; then :
16277 if test "$cross_compiling" = yes; then :
16278 gl_cv_header_working_stdint_h
=yes
16281 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
16282 /* end confdefs.h. */
16285 #define __STDC_LIMIT_MACROS 1 /* to make it work also in C++ mode */
16286 #define __STDC_CONSTANT_MACROS 1 /* to make it work also in C++ mode */
16287 #define _GL_JUST_INCLUDE_SYSTEM_STDINT_H 1 /* work if build isn't clean */
16288 #include <stdint.h>
16291 /* BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be
16292 included before <wchar.h>. */
16293 #include <stddef.h>
16294 #include <signal.h>
16296 # include <stdio.h>
16298 # include <wchar.h>
16303 #include <string.h>
16304 #define MVAL(macro) MVAL1(macro)
16305 #define MVAL1(expression) #expression
16306 static const char *macro_values[] =
16340 for (mv = macro_values; *mv != NULL; mv++)
16342 const char *value = *mv;
16343 /* Test whether it looks like a cast expression. */
16344 if (strncmp (value, "((unsigned int)"/*)*/, 15) == 0
16345 || strncmp (value, "((unsigned short)"/*)*/, 17) == 0
16346 || strncmp (value, "((unsigned char)"/*)*/, 16) == 0
16347 || strncmp (value, "((int)"/*)*/, 6) == 0
16348 || strncmp (value, "((signed short)"/*)*/, 15) == 0
16349 || strncmp (value, "((signed char)"/*)*/, 14) == 0)
16350 return mv - macro_values + 1;
16358 if ac_fn_c_try_run
"$LINENO"; then :
16359 gl_cv_header_working_stdint_h
=yes
16361 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
16362 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
16367 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
16370 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_header_working_stdint_h" >&5
16371 $as_echo "$gl_cv_header_working_stdint_h" >&6; }
16373 if test "$gl_cv_header_working_stdint_h" = yes; then
16376 for ac_header
in sys
/inttypes.h sys
/bitypes.h
16378 as_ac_Header
=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
16379 ac_fn_c_check_header_mongrel
"$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
16380 if eval test \"x\$
"$as_ac_Header"\" = x
"yes"; then :
16381 cat >>confdefs.h
<<_ACEOF
16382 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
16389 if test $ac_cv_header_sys_inttypes_h = yes; then
16390 HAVE_SYS_INTTYPES_H
=1
16392 HAVE_SYS_INTTYPES_H
=0
16395 if test $ac_cv_header_sys_bitypes_h = yes; then
16396 HAVE_SYS_BITYPES_H
=1
16398 HAVE_SYS_BITYPES_H
=0
16404 if test $APPLE_UNIVERSAL_BUILD = 0; then
16407 for gltype
in ptrdiff_t size_t
; do
16408 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for bit size of $gltype" >&5
16409 $as_echo_n "checking for bit size of $gltype... " >&6; }
16410 if eval \
${gl_cv_bitsizeof_${gltype}+:} false
; then :
16411 $as_echo_n "(cached) " >&6
16413 if ac_fn_c_compute_int
"$LINENO" "sizeof ($gltype) * CHAR_BIT" "result" "
16414 /* BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be
16415 included before <wchar.h>. */
16416 #include <stddef.h>
16417 #include <signal.h>
16419 # include <stdio.h>
16421 # include <wchar.h>
16424 #include <limits.h>"; then :
16430 eval gl_cv_bitsizeof_
${gltype}=\
$result
16433 eval ac_res
=\
$gl_cv_bitsizeof_${gltype}
16434 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
16435 $as_echo "$ac_res" >&6; }
16436 eval result
=\
$gl_cv_bitsizeof_${gltype}
16437 if test $result = unknown
; then
16440 GLTYPE
=`echo "$gltype" | tr 'abcdefghijklmnopqrstuvwxyz ' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ_'`
16441 cat >>confdefs.h
<<_ACEOF
16442 #define BITSIZEOF_${GLTYPE} $result
16445 eval BITSIZEOF_
${GLTYPE}=\
$result
16452 for gltype
in sig_atomic_t wchar_t wint_t
; do
16453 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for bit size of $gltype" >&5
16454 $as_echo_n "checking for bit size of $gltype... " >&6; }
16455 if eval \
${gl_cv_bitsizeof_${gltype}+:} false
; then :
16456 $as_echo_n "(cached) " >&6
16458 if ac_fn_c_compute_int
"$LINENO" "sizeof ($gltype) * CHAR_BIT" "result" "
16459 /* BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be
16460 included before <wchar.h>. */
16461 #include <stddef.h>
16462 #include <signal.h>
16464 # include <stdio.h>
16466 # include <wchar.h>
16469 #include <limits.h>"; then :
16475 eval gl_cv_bitsizeof_
${gltype}=\
$result
16478 eval ac_res
=\
$gl_cv_bitsizeof_${gltype}
16479 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
16480 $as_echo "$ac_res" >&6; }
16481 eval result
=\
$gl_cv_bitsizeof_${gltype}
16482 if test $result = unknown
; then
16485 GLTYPE
=`echo "$gltype" | tr 'abcdefghijklmnopqrstuvwxyz ' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ_'`
16486 cat >>confdefs.h
<<_ACEOF
16487 #define BITSIZEOF_${GLTYPE} $result
16490 eval BITSIZEOF_
${GLTYPE}=\
$result
16496 for gltype
in sig_atomic_t wchar_t wint_t
; do
16497 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $gltype is signed" >&5
16498 $as_echo_n "checking whether $gltype is signed... " >&6; }
16499 if eval \
${gl_cv_type_${gltype}_signed+:} false
; then :
16500 $as_echo_n "(cached) " >&6
16502 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
16503 /* end confdefs.h. */
16505 /* BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be
16506 included before <wchar.h>. */
16507 #include <stddef.h>
16508 #include <signal.h>
16510 # include <stdio.h>
16512 # include <wchar.h>
16515 int verify[2 * (($gltype) -1 < ($gltype) 0) - 1];
16524 if ac_fn_c_try_compile
"$LINENO"; then :
16529 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
16530 eval gl_cv_type_
${gltype}_signed
=\
$result
16533 eval ac_res
=\
$gl_cv_type_${gltype}_signed
16534 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
16535 $as_echo "$ac_res" >&6; }
16536 eval result
=\
$gl_cv_type_${gltype}_signed
16537 GLTYPE
=`echo $gltype | tr 'abcdefghijklmnopqrstuvwxyz ' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ_'`
16538 if test "$result" = yes; then
16539 cat >>confdefs.h
<<_ACEOF
16540 #define HAVE_SIGNED_${GLTYPE} 1
16543 eval HAVE_SIGNED_
${GLTYPE}=1
16545 eval HAVE_SIGNED_
${GLTYPE}=0
16550 gl_cv_type_ptrdiff_t_signed
=yes
16551 gl_cv_type_size_t_signed
=no
16552 if test $APPLE_UNIVERSAL_BUILD = 0; then
16555 for gltype
in ptrdiff_t size_t
; do
16556 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $gltype integer literal suffix" >&5
16557 $as_echo_n "checking for $gltype integer literal suffix... " >&6; }
16558 if eval \
${gl_cv_type_${gltype}_suffix+:} false
; then :
16559 $as_echo_n "(cached) " >&6
16561 eval gl_cv_type_
${gltype}_suffix
=no
16562 eval result
=\
$gl_cv_type_${gltype}_signed
16563 if test "$result" = yes; then
16568 for glsuf
in "$glsufu" ${glsufu}l ${glsufu}ll ${glsufu}i64
; do
16570 '') gltype1
='int';;
16571 l
) gltype1
='long int';;
16572 ll
) gltype1
='long long int';;
16573 i64
) gltype1
='__int64';;
16574 u
) gltype1
='unsigned int';;
16575 ul
) gltype1
='unsigned long int';;
16576 ull
) gltype1
='unsigned long long int';;
16577 ui64
)gltype1
='unsigned __int64';;
16579 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
16580 /* end confdefs.h. */
16582 /* BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be
16583 included before <wchar.h>. */
16584 #include <stddef.h>
16585 #include <signal.h>
16587 # include <stdio.h>
16589 # include <wchar.h>
16592 extern $gltype foo;
16593 extern $gltype1 foo;
16602 if ac_fn_c_try_compile
"$LINENO"; then :
16603 eval gl_cv_type_
${gltype}_suffix
=\
$glsuf
16605 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
16606 eval result
=\
$gl_cv_type_${gltype}_suffix
16607 test "$result" != no
&& break
16610 eval ac_res
=\
$gl_cv_type_${gltype}_suffix
16611 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
16612 $as_echo "$ac_res" >&6; }
16613 GLTYPE
=`echo $gltype | tr 'abcdefghijklmnopqrstuvwxyz ' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ_'`
16614 eval result
=\
$gl_cv_type_${gltype}_suffix
16615 test "$result" = no
&& result
=
16616 eval ${GLTYPE}_SUFFIX
=\
$result
16617 cat >>confdefs.h
<<_ACEOF
16618 #define ${GLTYPE}_SUFFIX $result
16627 for gltype
in sig_atomic_t wchar_t wint_t
; do
16628 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $gltype integer literal suffix" >&5
16629 $as_echo_n "checking for $gltype integer literal suffix... " >&6; }
16630 if eval \
${gl_cv_type_${gltype}_suffix+:} false
; then :
16631 $as_echo_n "(cached) " >&6
16633 eval gl_cv_type_
${gltype}_suffix
=no
16634 eval result
=\
$gl_cv_type_${gltype}_signed
16635 if test "$result" = yes; then
16640 for glsuf
in "$glsufu" ${glsufu}l ${glsufu}ll ${glsufu}i64
; do
16642 '') gltype1
='int';;
16643 l
) gltype1
='long int';;
16644 ll
) gltype1
='long long int';;
16645 i64
) gltype1
='__int64';;
16646 u
) gltype1
='unsigned int';;
16647 ul
) gltype1
='unsigned long int';;
16648 ull
) gltype1
='unsigned long long int';;
16649 ui64
)gltype1
='unsigned __int64';;
16651 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
16652 /* end confdefs.h. */
16654 /* BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be
16655 included before <wchar.h>. */
16656 #include <stddef.h>
16657 #include <signal.h>
16659 # include <stdio.h>
16661 # include <wchar.h>
16664 extern $gltype foo;
16665 extern $gltype1 foo;
16674 if ac_fn_c_try_compile
"$LINENO"; then :
16675 eval gl_cv_type_
${gltype}_suffix
=\
$glsuf
16677 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
16678 eval result
=\
$gl_cv_type_${gltype}_suffix
16679 test "$result" != no
&& break
16682 eval ac_res
=\
$gl_cv_type_${gltype}_suffix
16683 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
16684 $as_echo "$ac_res" >&6; }
16685 GLTYPE
=`echo $gltype | tr 'abcdefghijklmnopqrstuvwxyz ' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ_'`
16686 eval result
=\
$gl_cv_type_${gltype}_suffix
16687 test "$result" = no
&& result
=
16688 eval ${GLTYPE}_SUFFIX
=\
$result
16689 cat >>confdefs.h
<<_ACEOF
16690 #define ${GLTYPE}_SUFFIX $result
16701 # Code from module stdlib:
16712 if test $gl_cv_have_include_next = yes; then
16713 gl_cv_next_stdlib_h
='<'stdlib.h
'>'
16715 { $as_echo "$as_me:${as_lineno-$LINENO}: checking absolute name of <stdlib.h>" >&5
16716 $as_echo_n "checking absolute name of <stdlib.h>... " >&6; }
16717 if ${gl_cv_next_stdlib_h+:} false
; then :
16718 $as_echo_n "(cached) " >&6
16721 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
16722 /* end confdefs.h. */
16723 #include <stdlib.h>
16727 aix
*) gl_absname_cpp
="$ac_cpp -C" ;;
16728 *) gl_absname_cpp
="$ac_cpp" ;;
16730 gl_cv_next_stdlib_h
='"'`(eval "$gl_absname_cpp conftest.$ac_ext") 2>&5 |
16731 sed -n '\#/stdlib.h#{
16732 s#.*"\(.*/stdlib.h\)".*#\1#
16740 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_next_stdlib_h" >&5
16741 $as_echo "$gl_cv_next_stdlib_h" >&6; }
16743 NEXT_STDLIB_H
=$gl_cv_next_stdlib_h
16745 if test $gl_cv_have_include_next = yes ||
test $gl_cv_have_include_next = buggy
; then
16746 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include_next'
16747 gl_next_as_first_directive
='<'stdlib.h
'>'
16749 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include'
16750 gl_next_as_first_directive
=$gl_cv_next_stdlib_h
16752 NEXT_AS_FIRST_DIRECTIVE_STDLIB_H
=$gl_next_as_first_directive
16760 # Code from module strftime:
16771 gl_LIBOBJS
="$gl_LIBOBJS strftime.$ac_objext"
16774 # This defines (or not) HAVE_TZNAME and HAVE_TM_ZONE.
16782 $as_echo "#define my_strftime nstrftime" >>confdefs.h
16786 # Code from module time:
16790 # Code from module time_r:
16798 if test $ac_cv_have_decl_localtime_r = no
; then
16799 HAVE_DECL_LOCALTIME_R
=0
16803 if test $ac_cv_func_localtime_r = yes; then
16805 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether localtime_r is compatible with its POSIX signature" >&5
16806 $as_echo_n "checking whether localtime_r is compatible with its POSIX signature... " >&6; }
16807 if ${gl_cv_time_r_posix+:} false
; then :
16808 $as_echo_n "(cached) " >&6
16810 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
16811 /* end confdefs.h. */
16816 /* We don't need to append 'restrict's to the argument types,
16817 even though the POSIX signature has the 'restrict's,
16818 since C99 says they can't affect type compatibility. */
16819 struct tm * (*ptr) (time_t const *, struct tm *) = localtime_r;
16821 /* Check the return type is a pointer.
16822 On HP-UX 10 it is 'int'. */
16823 *localtime_r (0, 0);
16829 if ac_fn_c_try_compile
"$LINENO"; then :
16830 gl_cv_time_r_posix
=yes
16832 gl_cv_time_r_posix
=no
16834 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
16837 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_time_r_posix" >&5
16838 $as_echo "$gl_cv_time_r_posix" >&6; }
16839 if test $gl_cv_time_r_posix = yes; then
16840 REPLACE_LOCALTIME_R
=0
16842 REPLACE_LOCALTIME_R
=1
16847 if test $HAVE_LOCALTIME_R = 0 ||
test $REPLACE_LOCALTIME_R = 1; then
16856 gl_LIBOBJS
="$gl_LIBOBJS time_r.$ac_objext"
16870 # Code from module unistd:
16884 if test $gl_cv_have_include_next = yes; then
16885 gl_cv_next_unistd_h
='<'unistd.h
'>'
16887 { $as_echo "$as_me:${as_lineno-$LINENO}: checking absolute name of <unistd.h>" >&5
16888 $as_echo_n "checking absolute name of <unistd.h>... " >&6; }
16889 if ${gl_cv_next_unistd_h+:} false
; then :
16890 $as_echo_n "(cached) " >&6
16893 if test $ac_cv_header_unistd_h = yes; then
16896 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
16897 /* end confdefs.h. */
16898 #include <unistd.h>
16902 aix
*) gl_absname_cpp
="$ac_cpp -C" ;;
16903 *) gl_absname_cpp
="$ac_cpp" ;;
16905 gl_cv_next_unistd_h
='"'`(eval "$gl_absname_cpp conftest.$ac_ext") 2>&5 |
16906 sed -n '\#/unistd.h#{
16907 s#.*"\(.*/unistd.h\)".*#\1#
16913 gl_cv_next_unistd_h
='<'unistd.h
'>'
16918 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_next_unistd_h" >&5
16919 $as_echo "$gl_cv_next_unistd_h" >&6; }
16921 NEXT_UNISTD_H
=$gl_cv_next_unistd_h
16923 if test $gl_cv_have_include_next = yes ||
test $gl_cv_have_include_next = buggy
; then
16924 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include_next'
16925 gl_next_as_first_directive
='<'unistd.h
'>'
16927 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include'
16928 gl_next_as_first_directive
=$gl_cv_next_unistd_h
16930 NEXT_AS_FIRST_DIRECTIVE_UNISTD_H
=$gl_next_as_first_directive
16935 if test $ac_cv_header_unistd_h = yes; then
16944 # Code from module warn-on-use:
16945 # End of code from modules
16966 gl_source_base
='tests'
16967 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
16969 gl_module_indicator_condition
=$gltests_WITNESS
16979 LIBGNU_LIBDEPS
="$gl_libdeps"
16981 LIBGNU_LTLIBDEPS
="$gl_ltlibdeps"
16986 for ac_func
in grantpt
16988 ac_fn_c_check_func
"$LINENO" "grantpt" "ac_cv_func_grantpt"
16989 if test "x$ac_cv_func_grantpt" = xyes
; then :
16990 cat >>confdefs.h
<<_ACEOF
16991 #define HAVE_GRANTPT 1
16998 # PTY-related GNU extensions.
16999 for ac_func
in getpt
17001 ac_fn_c_check_func
"$LINENO" "getpt" "ac_cv_func_getpt"
17002 if test "x$ac_cv_func_getpt" = xyes
; then :
17003 cat >>confdefs.h
<<_ACEOF
17004 #define HAVE_GETPT 1
17011 # Check this now, so that we will NOT find the above functions in ncurses.
17012 # That is because we have not set up to link ncurses in lib-src.
17013 # It's better to believe a function is not available
17014 # than to expect to find it in ncurses.
17015 # Also we need tputs and friends to be able to build at all.
17016 have_tputs_et_al
=true
17017 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing tputs" >&5
17018 $as_echo_n "checking for library containing tputs... " >&6; }
17019 if ${ac_cv_search_tputs+:} false
; then :
17020 $as_echo_n "(cached) " >&6
17022 ac_func_search_save_LIBS
=$LIBS
17023 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
17024 /* end confdefs.h. */
17026 /* Override any GCC internal prototype to avoid an error.
17027 Use char because int might match the return type of a GCC
17028 builtin and then its argument prototype would still apply. */
17041 for ac_lib
in '' ncurses terminfo termcap
; do
17042 if test -z "$ac_lib"; then
17043 ac_res
="none required"
17046 LIBS
="-l$ac_lib $ac_func_search_save_LIBS"
17048 if ac_fn_c_try_link
"$LINENO"; then :
17049 ac_cv_search_tputs
=$ac_res
17051 rm -f core conftest.err conftest.
$ac_objext \
17053 if ${ac_cv_search_tputs+:} false
; then :
17057 if ${ac_cv_search_tputs+:} false
; then :
17060 ac_cv_search_tputs
=no
17062 rm conftest.
$ac_ext
17063 LIBS
=$ac_func_search_save_LIBS
17065 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_tputs" >&5
17066 $as_echo "$ac_cv_search_tputs" >&6; }
17067 ac_res
=$ac_cv_search_tputs
17068 if test "$ac_res" != no
; then :
17069 test "$ac_res" = "none required" || LIBS
="$ac_res $LIBS"
17072 have_tputs_et_al
=false
17075 if test "$have_tputs_et_al" != true
; then
17076 as_fn_error $?
"I couldn't find termcap functions (tputs and friends).
17077 Maybe some development libraries/packages are missing? Try installing
17078 libncurses-dev(el), libterminfo-dev(el) or similar." "$LINENO" 5
17080 # Must define this when any termcap library is found.
17082 $as_echo "#define HAVE_LIBNCURSES 1" >>confdefs.h
17084 ## FIXME This was the cpp logic, but I am not sure it is right.
17085 ## The above test has not necessarily found libncurses.
17086 HAVE_LIBNCURSES
=yes
17088 ## Use terminfo instead of termcap?
17089 ## Note only system files NOT using terminfo are:
17090 ## freebsd < 40000, ms-w32, msdos, netbsd < 599002500, and
17091 ## darwin|gnu without ncurses.
17095 ## cygwin: Fewer environment variables to go wrong, more terminal types.
17096 ## hpux10-20: Use the system provided termcap(3) library.
17097 ## openbsd: David Mazieres <dm@reeducation-labor.lcs.mit.edu> says this
17098 ## is necessary. Otherwise Emacs dumps core when run -nw.
17099 aix4-2|cygwin|hpux
*|irix6-5|openbsd|sol2
*|unixware
) TERMINFO
=yes ;;
17101 ## darwin: Prevents crashes when running Emacs in Terminal.app under 10.2.
17102 ## The ncurses library has been moved out of the System framework in
17103 ## Mac OS X 10.2. So if configure detects it, set the command-line
17104 ## option to use it.
17106 ## (HAVE_LIBNCURSES was not always true, but is since 2010-03-18.)
17107 if test "x$HAVE_LIBNCURSES" = "xyes"; then
17109 LIBS_TERMCAP
="-lncurses"
17114 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether FreeBSD is new enough to use terminfo" >&5
17115 $as_echo_n "checking whether FreeBSD is new enough to use terminfo... " >&6; }
17116 if ${emacs_cv_freebsd_terminfo+:} false
; then :
17117 $as_echo_n "(cached) " >&6
17119 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
17120 /* end confdefs.h. */
17121 #include <osreldate.h>
17125 #if __FreeBSD_version < 400000
17133 if ac_fn_c_try_link
"$LINENO"; then :
17134 emacs_cv_freebsd_terminfo
=yes
17136 emacs_cv_freebsd_terminfo
=no
17138 rm -f core conftest.err conftest.
$ac_objext \
17139 conftest
$ac_exeext conftest.
$ac_ext
17143 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $emacs_cv_freebsd_terminfo" >&5
17144 $as_echo "$emacs_cv_freebsd_terminfo" >&6; }
17146 if test $emacs_cv_freebsd_terminfo = yes; then
17148 LIBS_TERMCAP
="-lncurses"
17150 LIBS_TERMCAP
="-ltermcap"
17155 if test $ac_cv_search_tputs = -lterminfo; then
17157 LIBS_TERMCAP
="-lterminfo"
17159 LIBS_TERMCAP
="-ltermcap"
17166 ## hpux: Make sure we get select from libc rather than from libcurses
17167 ## because libcurses on HPUX 10.10 has a broken version of select.
17168 ## We used to use -lc -lcurses, but this may be cleaner.
17169 hpux
*) LIBS_TERMCAP
="-ltermcap" ;;
17171 openbsd
) LIBS_TERMCAP
="-lncurses" ;;
17173 ## Must use system termcap, if we use any termcap. It does special things.
17174 sol2
*) test "$TERMINFO" != yes && LIBS_TERMCAP
="-ltermcap" ;;
17177 TERMCAP_OBJ
=tparam.o
17178 if test $TERMINFO = yes; then
17180 $as_echo "#define TERMINFO 1" >>confdefs.h
17183 ## Default used to be -ltermcap. Add a case above if need something else.
17184 test "x$LIBS_TERMCAP" = "x" && LIBS_TERMCAP
="-lcurses"
17186 TERMCAP_OBJ
=terminfo.o
17192 # Do we have res_init, for detecting changes in /etc/resolv.conf?
17194 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
17195 /* end confdefs.h. */
17196 #include <netinet/in.h>
17197 #include <arpa/nameser.h>
17198 #include <resolv.h>
17207 if ac_fn_c_try_link
"$LINENO"; then :
17212 rm -f core conftest.err conftest.
$ac_objext \
17213 conftest
$ac_exeext conftest.
$ac_ext
17214 if test "$have_res_init" = no
; then
17216 LIBS
="$LIBS -lresolv"
17217 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for res_init with -lresolv" >&5
17218 $as_echo_n "checking for res_init with -lresolv... " >&6; }
17219 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
17220 /* end confdefs.h. */
17221 #include <netinet/in.h>
17222 #include <arpa/nameser.h>
17223 #include <resolv.h>
17232 if ac_fn_c_try_link
"$LINENO"; then :
17237 rm -f core conftest.err conftest.
$ac_objext \
17238 conftest
$ac_exeext conftest.
$ac_ext
17239 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_res_init" >&5
17240 $as_echo "$have_res_init" >&6; }
17241 if test "$have_res_init" = yes ; then
17247 if test "$have_res_init" = yes; then
17249 $as_echo "#define HAVE_RES_INIT 1" >>confdefs.h
17253 # Do we need the Hesiod library to provide the support routines?
17255 if test "$with_hesiod" != no
; then
17256 # Don't set $LIBS here -- see comments above. FIXME which comments?
17257 ac_fn_c_check_func
"$LINENO" "res_send" "ac_cv_func_res_send"
17258 if test "x$ac_cv_func_res_send" = xyes
; then :
17261 ac_fn_c_check_func
"$LINENO" "__res_send" "ac_cv_func___res_send"
17262 if test "x$ac_cv_func___res_send" = xyes
; then :
17265 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for res_send in -lresolv" >&5
17266 $as_echo_n "checking for res_send in -lresolv... " >&6; }
17267 if ${ac_cv_lib_resolv_res_send+:} false
; then :
17268 $as_echo_n "(cached) " >&6
17270 ac_check_lib_save_LIBS
=$LIBS
17271 LIBS
="-lresolv $LIBS"
17272 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
17273 /* end confdefs.h. */
17275 /* Override any GCC internal prototype to avoid an error.
17276 Use char because int might match the return type of a GCC
17277 builtin and then its argument prototype would still apply. */
17285 return res_send ();
17290 if ac_fn_c_try_link
"$LINENO"; then :
17291 ac_cv_lib_resolv_res_send
=yes
17293 ac_cv_lib_resolv_res_send
=no
17295 rm -f core conftest.err conftest.
$ac_objext \
17296 conftest
$ac_exeext conftest.
$ac_ext
17297 LIBS
=$ac_check_lib_save_LIBS
17299 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_resolv_res_send" >&5
17300 $as_echo "$ac_cv_lib_resolv_res_send" >&6; }
17301 if test "x$ac_cv_lib_resolv_res_send" = xyes
; then :
17304 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for __res_send in -lresolv" >&5
17305 $as_echo_n "checking for __res_send in -lresolv... " >&6; }
17306 if ${ac_cv_lib_resolv___res_send+:} false
; then :
17307 $as_echo_n "(cached) " >&6
17309 ac_check_lib_save_LIBS
=$LIBS
17310 LIBS
="-lresolv $LIBS"
17311 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
17312 /* end confdefs.h. */
17314 /* Override any GCC internal prototype to avoid an error.
17315 Use char because int might match the return type of a GCC
17316 builtin and then its argument prototype would still apply. */
17320 char __res_send ();
17324 return __res_send ();
17329 if ac_fn_c_try_link
"$LINENO"; then :
17330 ac_cv_lib_resolv___res_send
=yes
17332 ac_cv_lib_resolv___res_send
=no
17334 rm -f core conftest.err conftest.
$ac_objext \
17335 conftest
$ac_exeext conftest.
$ac_ext
17336 LIBS
=$ac_check_lib_save_LIBS
17338 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_resolv___res_send" >&5
17339 $as_echo "$ac_cv_lib_resolv___res_send" >&6; }
17340 if test "x$ac_cv_lib_resolv___res_send" = xyes
; then :
17350 if test "$resolv" = yes ; then
17355 ac_fn_c_check_func
"$LINENO" "hes_getmailhost" "ac_cv_func_hes_getmailhost"
17356 if test "x$ac_cv_func_hes_getmailhost" = xyes
; then :
17359 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for hes_getmailhost in -lhesiod" >&5
17360 $as_echo_n "checking for hes_getmailhost in -lhesiod... " >&6; }
17361 if ${ac_cv_lib_hesiod_hes_getmailhost+:} false
; then :
17362 $as_echo_n "(cached) " >&6
17364 ac_check_lib_save_LIBS
=$LIBS
17365 LIBS
="-lhesiod $RESOLVLIB $LIBS"
17366 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
17367 /* end confdefs.h. */
17369 /* Override any GCC internal prototype to avoid an error.
17370 Use char because int might match the return type of a GCC
17371 builtin and then its argument prototype would still apply. */
17375 char hes_getmailhost ();
17379 return hes_getmailhost ();
17384 if ac_fn_c_try_link
"$LINENO"; then :
17385 ac_cv_lib_hesiod_hes_getmailhost
=yes
17387 ac_cv_lib_hesiod_hes_getmailhost
=no
17389 rm -f core conftest.err conftest.
$ac_objext \
17390 conftest
$ac_exeext conftest.
$ac_ext
17391 LIBS
=$ac_check_lib_save_LIBS
17393 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_hesiod_hes_getmailhost" >&5
17394 $as_echo "$ac_cv_lib_hesiod_hes_getmailhost" >&6; }
17395 if test "x$ac_cv_lib_hesiod_hes_getmailhost" = xyes
; then :
17404 if test x
"$hesiod" = xyes
; then
17406 $as_echo "#define HAVE_LIBHESIOD 1" >>confdefs.h
17413 # Do we need libresolv (due to res_init or Hesiod)?
17414 if test "$resolv" = yes ; then
17416 $as_echo "#define HAVE_LIBRESOLV 1" >>confdefs.h
17424 # These tell us which Kerberos-related libraries to use.
17431 if test "${with_kerberos}" != no
; then
17432 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for com_err in -lcom_err" >&5
17433 $as_echo_n "checking for com_err in -lcom_err... " >&6; }
17434 if ${ac_cv_lib_com_err_com_err+:} false
; then :
17435 $as_echo_n "(cached) " >&6
17437 ac_check_lib_save_LIBS
=$LIBS
17438 LIBS
="-lcom_err $LIBS"
17439 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
17440 /* end confdefs.h. */
17442 /* Override any GCC internal prototype to avoid an error.
17443 Use char because int might match the return type of a GCC
17444 builtin and then its argument prototype would still apply. */
17457 if ac_fn_c_try_link
"$LINENO"; then :
17458 ac_cv_lib_com_err_com_err
=yes
17460 ac_cv_lib_com_err_com_err
=no
17462 rm -f core conftest.err conftest.
$ac_objext \
17463 conftest
$ac_exeext conftest.
$ac_ext
17464 LIBS
=$ac_check_lib_save_LIBS
17466 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_com_err_com_err" >&5
17467 $as_echo "$ac_cv_lib_com_err_com_err" >&6; }
17468 if test "x$ac_cv_lib_com_err_com_err" = xyes
; then :
17474 if test $have_com_err = yes; then
17475 COM_ERRLIB
=-lcom_err
17476 LIBS
="$COM_ERRLIB $LIBS"
17478 $as_echo "#define HAVE_LIBCOM_ERR 1" >>confdefs.h
17481 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for mit_des_cbc_encrypt in -lcrypto" >&5
17482 $as_echo_n "checking for mit_des_cbc_encrypt in -lcrypto... " >&6; }
17483 if ${ac_cv_lib_crypto_mit_des_cbc_encrypt+:} false
; then :
17484 $as_echo_n "(cached) " >&6
17486 ac_check_lib_save_LIBS
=$LIBS
17487 LIBS
="-lcrypto $LIBS"
17488 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
17489 /* end confdefs.h. */
17491 /* Override any GCC internal prototype to avoid an error.
17492 Use char because int might match the return type of a GCC
17493 builtin and then its argument prototype would still apply. */
17497 char mit_des_cbc_encrypt ();
17501 return mit_des_cbc_encrypt ();
17506 if ac_fn_c_try_link
"$LINENO"; then :
17507 ac_cv_lib_crypto_mit_des_cbc_encrypt
=yes
17509 ac_cv_lib_crypto_mit_des_cbc_encrypt
=no
17511 rm -f core conftest.err conftest.
$ac_objext \
17512 conftest
$ac_exeext conftest.
$ac_ext
17513 LIBS
=$ac_check_lib_save_LIBS
17515 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_crypto_mit_des_cbc_encrypt" >&5
17516 $as_echo "$ac_cv_lib_crypto_mit_des_cbc_encrypt" >&6; }
17517 if test "x$ac_cv_lib_crypto_mit_des_cbc_encrypt" = xyes
; then :
17523 if test $have_crypto = yes; then
17525 LIBS
="$CRYPTOLIB $LIBS"
17527 $as_echo "#define HAVE_LIBCRYPTO 1" >>confdefs.h
17530 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for mit_des_cbc_encrypt in -lk5crypto" >&5
17531 $as_echo_n "checking for mit_des_cbc_encrypt in -lk5crypto... " >&6; }
17532 if ${ac_cv_lib_k5crypto_mit_des_cbc_encrypt+:} false
; then :
17533 $as_echo_n "(cached) " >&6
17535 ac_check_lib_save_LIBS
=$LIBS
17536 LIBS
="-lk5crypto $LIBS"
17537 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
17538 /* end confdefs.h. */
17540 /* Override any GCC internal prototype to avoid an error.
17541 Use char because int might match the return type of a GCC
17542 builtin and then its argument prototype would still apply. */
17546 char mit_des_cbc_encrypt ();
17550 return mit_des_cbc_encrypt ();
17555 if ac_fn_c_try_link
"$LINENO"; then :
17556 ac_cv_lib_k5crypto_mit_des_cbc_encrypt
=yes
17558 ac_cv_lib_k5crypto_mit_des_cbc_encrypt
=no
17560 rm -f core conftest.err conftest.
$ac_objext \
17561 conftest
$ac_exeext conftest.
$ac_ext
17562 LIBS
=$ac_check_lib_save_LIBS
17564 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_k5crypto_mit_des_cbc_encrypt" >&5
17565 $as_echo "$ac_cv_lib_k5crypto_mit_des_cbc_encrypt" >&6; }
17566 if test "x$ac_cv_lib_k5crypto_mit_des_cbc_encrypt" = xyes
; then :
17572 if test $have_k5crypto = yes; then
17573 CRYPTOLIB
=-lk5crypto
17574 LIBS
="$CRYPTOLIB $LIBS"
17576 $as_echo "#define HAVE_LIBK5CRYPTO 1" >>confdefs.h
17579 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for krb5_init_context in -lkrb5" >&5
17580 $as_echo_n "checking for krb5_init_context in -lkrb5... " >&6; }
17581 if ${ac_cv_lib_krb5_krb5_init_context+:} false
; then :
17582 $as_echo_n "(cached) " >&6
17584 ac_check_lib_save_LIBS
=$LIBS
17585 LIBS
="-lkrb5 $LIBS"
17586 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
17587 /* end confdefs.h. */
17589 /* Override any GCC internal prototype to avoid an error.
17590 Use char because int might match the return type of a GCC
17591 builtin and then its argument prototype would still apply. */
17595 char krb5_init_context ();
17599 return krb5_init_context ();
17604 if ac_fn_c_try_link
"$LINENO"; then :
17605 ac_cv_lib_krb5_krb5_init_context
=yes
17607 ac_cv_lib_krb5_krb5_init_context
=no
17609 rm -f core conftest.err conftest.
$ac_objext \
17610 conftest
$ac_exeext conftest.
$ac_ext
17611 LIBS
=$ac_check_lib_save_LIBS
17613 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_krb5_krb5_init_context" >&5
17614 $as_echo "$ac_cv_lib_krb5_krb5_init_context" >&6; }
17615 if test "x$ac_cv_lib_krb5_krb5_init_context" = xyes
; then :
17621 if test $have_krb5=yes; then
17623 LIBS
="$KRB5LIB $LIBS"
17625 $as_echo "#define HAVE_LIBKRB5 1" >>confdefs.h
17628 if test "${with_kerberos5}" = no
; then
17629 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for des_cbc_encrypt in -ldes425" >&5
17630 $as_echo_n "checking for des_cbc_encrypt in -ldes425... " >&6; }
17631 if ${ac_cv_lib_des425_des_cbc_encrypt+:} false
; then :
17632 $as_echo_n "(cached) " >&6
17634 ac_check_lib_save_LIBS
=$LIBS
17635 LIBS
="-ldes425 $LIBS"
17636 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
17637 /* end confdefs.h. */
17639 /* Override any GCC internal prototype to avoid an error.
17640 Use char because int might match the return type of a GCC
17641 builtin and then its argument prototype would still apply. */
17645 char des_cbc_encrypt ();
17649 return des_cbc_encrypt ();
17654 if ac_fn_c_try_link
"$LINENO"; then :
17655 ac_cv_lib_des425_des_cbc_encrypt
=yes
17657 ac_cv_lib_des425_des_cbc_encrypt
=no
17659 rm -f core conftest.err conftest.
$ac_objext \
17660 conftest
$ac_exeext conftest.
$ac_ext
17661 LIBS
=$ac_check_lib_save_LIBS
17663 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_des425_des_cbc_encrypt" >&5
17664 $as_echo "$ac_cv_lib_des425_des_cbc_encrypt" >&6; }
17665 if test "x$ac_cv_lib_des425_des_cbc_encrypt" = xyes
; then :
17671 if test $have_des425 = yes; then
17673 LIBS
="$DESLIB $LIBS"
17675 $as_echo "#define HAVE_LIBDES425 1" >>confdefs.h
17678 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for des_cbc_encrypt in -ldes" >&5
17679 $as_echo_n "checking for des_cbc_encrypt in -ldes... " >&6; }
17680 if ${ac_cv_lib_des_des_cbc_encrypt+:} false
; then :
17681 $as_echo_n "(cached) " >&6
17683 ac_check_lib_save_LIBS
=$LIBS
17685 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
17686 /* end confdefs.h. */
17688 /* Override any GCC internal prototype to avoid an error.
17689 Use char because int might match the return type of a GCC
17690 builtin and then its argument prototype would still apply. */
17694 char des_cbc_encrypt ();
17698 return des_cbc_encrypt ();
17703 if ac_fn_c_try_link
"$LINENO"; then :
17704 ac_cv_lib_des_des_cbc_encrypt
=yes
17706 ac_cv_lib_des_des_cbc_encrypt
=no
17708 rm -f core conftest.err conftest.
$ac_objext \
17709 conftest
$ac_exeext conftest.
$ac_ext
17710 LIBS
=$ac_check_lib_save_LIBS
17712 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_des_des_cbc_encrypt" >&5
17713 $as_echo "$ac_cv_lib_des_des_cbc_encrypt" >&6; }
17714 if test "x$ac_cv_lib_des_des_cbc_encrypt" = xyes
; then :
17720 if test $have_des = yes; then
17722 LIBS
="$DESLIB $LIBS"
17724 $as_echo "#define HAVE_LIBDES 1" >>confdefs.h
17728 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for krb_get_cred in -lkrb4" >&5
17729 $as_echo_n "checking for krb_get_cred in -lkrb4... " >&6; }
17730 if ${ac_cv_lib_krb4_krb_get_cred+:} false
; then :
17731 $as_echo_n "(cached) " >&6
17733 ac_check_lib_save_LIBS
=$LIBS
17734 LIBS
="-lkrb4 $LIBS"
17735 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
17736 /* end confdefs.h. */
17738 /* Override any GCC internal prototype to avoid an error.
17739 Use char because int might match the return type of a GCC
17740 builtin and then its argument prototype would still apply. */
17744 char krb_get_cred ();
17748 return krb_get_cred ();
17753 if ac_fn_c_try_link
"$LINENO"; then :
17754 ac_cv_lib_krb4_krb_get_cred
=yes
17756 ac_cv_lib_krb4_krb_get_cred
=no
17758 rm -f core conftest.err conftest.
$ac_objext \
17759 conftest
$ac_exeext conftest.
$ac_ext
17760 LIBS
=$ac_check_lib_save_LIBS
17762 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_krb4_krb_get_cred" >&5
17763 $as_echo "$ac_cv_lib_krb4_krb_get_cred" >&6; }
17764 if test "x$ac_cv_lib_krb4_krb_get_cred" = xyes
; then :
17770 if test $have_krb4 = yes; then
17772 LIBS
="$KRB4LIB $LIBS"
17774 $as_echo "#define HAVE_LIBKRB4 1" >>confdefs.h
17777 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for krb_get_cred in -lkrb" >&5
17778 $as_echo_n "checking for krb_get_cred in -lkrb... " >&6; }
17779 if ${ac_cv_lib_krb_krb_get_cred+:} false
; then :
17780 $as_echo_n "(cached) " >&6
17782 ac_check_lib_save_LIBS
=$LIBS
17784 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
17785 /* end confdefs.h. */
17787 /* Override any GCC internal prototype to avoid an error.
17788 Use char because int might match the return type of a GCC
17789 builtin and then its argument prototype would still apply. */
17793 char krb_get_cred ();
17797 return krb_get_cred ();
17802 if ac_fn_c_try_link
"$LINENO"; then :
17803 ac_cv_lib_krb_krb_get_cred
=yes
17805 ac_cv_lib_krb_krb_get_cred
=no
17807 rm -f core conftest.err conftest.
$ac_objext \
17808 conftest
$ac_exeext conftest.
$ac_ext
17809 LIBS
=$ac_check_lib_save_LIBS
17811 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_krb_krb_get_cred" >&5
17812 $as_echo "$ac_cv_lib_krb_krb_get_cred" >&6; }
17813 if test "x$ac_cv_lib_krb_krb_get_cred" = xyes
; then :
17819 if test $have_krb = yes; then
17821 LIBS
="$KRB4LIB $LIBS"
17823 $as_echo "#define HAVE_LIBKRB 1" >>confdefs.h
17829 if test "${with_kerberos5}" != no
; then
17830 for ac_header
in krb5.h
17832 ac_fn_c_check_header_mongrel
"$LINENO" "krb5.h" "ac_cv_header_krb5_h" "$ac_includes_default"
17833 if test "x$ac_cv_header_krb5_h" = xyes
; then :
17834 cat >>confdefs.h
<<_ACEOF
17835 #define HAVE_KRB5_H 1
17837 ac_fn_c_check_member
"$LINENO" "krb5_error" "text" "ac_cv_member_krb5_error_text" "#include <krb5.h>
17839 if test "x$ac_cv_member_krb5_error_text" = xyes
; then :
17841 cat >>confdefs.h
<<_ACEOF
17842 #define HAVE_KRB5_ERROR_TEXT 1
17847 ac_fn_c_check_member
"$LINENO" "krb5_error" "e_text" "ac_cv_member_krb5_error_e_text" "#include <krb5.h>
17849 if test "x$ac_cv_member_krb5_error_e_text" = xyes
; then :
17851 cat >>confdefs.h
<<_ACEOF
17852 #define HAVE_KRB5_ERROR_E_TEXT 1
17863 for ac_header
in des.h
17865 ac_fn_c_check_header_mongrel
"$LINENO" "des.h" "ac_cv_header_des_h" "$ac_includes_default"
17866 if test "x$ac_cv_header_des_h" = xyes
; then :
17867 cat >>confdefs.h
<<_ACEOF
17868 #define HAVE_DES_H 1
17872 for ac_header
in kerberosIV
/des.h
17874 ac_fn_c_check_header_mongrel
"$LINENO" "kerberosIV/des.h" "ac_cv_header_kerberosIV_des_h" "$ac_includes_default"
17875 if test "x$ac_cv_header_kerberosIV_des_h" = xyes
; then :
17876 cat >>confdefs.h
<<_ACEOF
17877 #define HAVE_KERBEROSIV_DES_H 1
17881 for ac_header
in kerberos
/des.h
17883 ac_fn_c_check_header_mongrel
"$LINENO" "kerberos/des.h" "ac_cv_header_kerberos_des_h" "$ac_includes_default"
17884 if test "x$ac_cv_header_kerberos_des_h" = xyes
; then :
17885 cat >>confdefs.h
<<_ACEOF
17886 #define HAVE_KERBEROS_DES_H 1
17901 for ac_header
in krb.h
17903 ac_fn_c_check_header_mongrel
"$LINENO" "krb.h" "ac_cv_header_krb_h" "$ac_includes_default"
17904 if test "x$ac_cv_header_krb_h" = xyes
; then :
17905 cat >>confdefs.h
<<_ACEOF
17906 #define HAVE_KRB_H 1
17910 for ac_header
in kerberosIV
/krb.h
17912 ac_fn_c_check_header_mongrel
"$LINENO" "kerberosIV/krb.h" "ac_cv_header_kerberosIV_krb_h" "$ac_includes_default"
17913 if test "x$ac_cv_header_kerberosIV_krb_h" = xyes
; then :
17914 cat >>confdefs.h
<<_ACEOF
17915 #define HAVE_KERBEROSIV_KRB_H 1
17919 for ac_header
in kerberos
/krb.h
17921 ac_fn_c_check_header_mongrel
"$LINENO" "kerberos/krb.h" "ac_cv_header_kerberos_krb_h" "$ac_includes_default"
17922 if test "x$ac_cv_header_kerberos_krb_h" = xyes
; then :
17923 cat >>confdefs.h
<<_ACEOF
17924 #define HAVE_KERBEROS_KRB_H 1
17940 for ac_header
in com_err.h
17942 ac_fn_c_check_header_mongrel
"$LINENO" "com_err.h" "ac_cv_header_com_err_h" "$ac_includes_default"
17943 if test "x$ac_cv_header_com_err_h" = xyes
; then :
17944 cat >>confdefs.h
<<_ACEOF
17945 #define HAVE_COM_ERR_H 1
17960 # Solaris requires -lintl if you want strerror (which calls dgettext)
17961 # to return localized messages.
17962 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dgettext in -lintl" >&5
17963 $as_echo_n "checking for dgettext in -lintl... " >&6; }
17964 if ${ac_cv_lib_intl_dgettext+:} false
; then :
17965 $as_echo_n "(cached) " >&6
17967 ac_check_lib_save_LIBS
=$LIBS
17968 LIBS
="-lintl $LIBS"
17969 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
17970 /* end confdefs.h. */
17972 /* Override any GCC internal prototype to avoid an error.
17973 Use char because int might match the return type of a GCC
17974 builtin and then its argument prototype would still apply. */
17982 return dgettext ();
17987 if ac_fn_c_try_link
"$LINENO"; then :
17988 ac_cv_lib_intl_dgettext
=yes
17990 ac_cv_lib_intl_dgettext
=no
17992 rm -f core conftest.err conftest.
$ac_objext \
17993 conftest
$ac_exeext conftest.
$ac_ext
17994 LIBS
=$ac_check_lib_save_LIBS
17996 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_intl_dgettext" >&5
17997 $as_echo "$ac_cv_lib_intl_dgettext" >&6; }
17998 if test "x$ac_cv_lib_intl_dgettext" = xyes
; then :
17999 cat >>confdefs.h
<<_ACEOF
18000 #define HAVE_LIBINTL 1
18003 LIBS
="-lintl $LIBS"
18008 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether localtime caches TZ" >&5
18009 $as_echo_n "checking whether localtime caches TZ... " >&6; }
18010 if ${emacs_cv_localtime_cache+:} false
; then :
18011 $as_echo_n "(cached) " >&6
18013 if test x
$ac_cv_func_tzset = xyes
; then
18014 if test "$cross_compiling" = yes; then :
18015 # If we have tzset, assume the worst when cross-compiling.
18016 emacs_cv_localtime_cache
=yes
18018 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
18019 /* end confdefs.h. */
18021 char TZ_GMT0[] = "TZ=GMT0";
18022 char TZ_PST8[] = "TZ=PST8";
18025 time_t now = time ((time_t *) 0);
18026 int hour_GMT0, hour_unset;
18027 if (putenv (TZ_GMT0) != 0)
18029 hour_GMT0 = localtime (&now)->tm_hour;
18031 hour_unset = localtime (&now)->tm_hour;
18032 if (putenv (TZ_PST8) != 0)
18034 if (localtime (&now)->tm_hour == hour_GMT0)
18037 if (localtime (&now)->tm_hour != hour_unset)
18042 if ac_fn_c_try_run
"$LINENO"; then :
18043 emacs_cv_localtime_cache
=no
18045 emacs_cv_localtime_cache
=yes
18047 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
18048 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
18052 # If we lack tzset, report that localtime does not cache TZ,
18053 # since we can't invalidate the cache if we don't have tzset.
18054 emacs_cv_localtime_cache
=no
18057 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $emacs_cv_localtime_cache" >&5
18058 $as_echo "$emacs_cv_localtime_cache" >&6; }
18059 if test $emacs_cv_localtime_cache = yes; then
18061 $as_echo "#define LOCALTIME_CACHE 1" >>confdefs.h
18065 if test "x$HAVE_TIMEVAL" = xyes
; then
18066 for ac_func
in gettimeofday
18068 ac_fn_c_check_func
"$LINENO" "gettimeofday" "ac_cv_func_gettimeofday"
18069 if test "x$ac_cv_func_gettimeofday" = xyes
; then :
18070 cat >>confdefs.h
<<_ACEOF
18071 #define HAVE_GETTIMEOFDAY 1
18077 if test $ac_cv_func_gettimeofday = yes; then
18078 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether gettimeofday can accept two arguments" >&5
18079 $as_echo_n "checking whether gettimeofday can accept two arguments... " >&6; }
18080 if ${emacs_cv_gettimeofday_two_arguments+:} false
; then :
18081 $as_echo_n "(cached) " >&6
18083 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
18084 /* end confdefs.h. */
18086 #ifdef TIME_WITH_SYS_TIME
18087 #include <sys/time.h>
18090 #ifdef HAVE_SYS_TIME_H
18091 #include <sys/time.h>
18099 struct timeval time;
18100 gettimeofday (&time, 0);
18105 if ac_fn_c_try_compile
"$LINENO"; then :
18106 emacs_cv_gettimeofday_two_arguments
=yes
18108 emacs_cv_gettimeofday_two_arguments
=no
18110 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
18112 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $emacs_cv_gettimeofday_two_arguments" >&5
18113 $as_echo "$emacs_cv_gettimeofday_two_arguments" >&6; }
18114 if test $emacs_cv_gettimeofday_two_arguments = no
; then
18116 $as_echo "#define GETTIMEOFDAY_ONE_ARGUMENT 1" >>confdefs.h
18123 ac_fn_c_check_func
"$LINENO" "socket" "ac_cv_func_socket"
18124 if test "x$ac_cv_func_socket" = xyes
; then :
18130 if test $ok_so_far = yes; then
18131 ac_fn_c_check_header_mongrel
"$LINENO" "netinet/in.h" "ac_cv_header_netinet_in_h" "$ac_includes_default"
18132 if test "x$ac_cv_header_netinet_in_h" = xyes
; then :
18140 if test $ok_so_far = yes; then
18141 ac_fn_c_check_header_mongrel
"$LINENO" "arpa/inet.h" "ac_cv_header_arpa_inet_h" "$ac_includes_default"
18142 if test "x$ac_cv_header_arpa_inet_h" = xyes
; then :
18150 if test $ok_so_far = yes; then
18152 $as_echo "#define HAVE_INET_SOCKETS 1" >>confdefs.h
18156 if test -f /usr
/lpp
/X11
/bin
/smt.exp
; then
18158 $as_echo "#define HAVE_AIX_SMT_EXP 1" >>confdefs.h
18162 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether system supports dynamic ptys" >&5
18163 $as_echo_n "checking whether system supports dynamic ptys... " >&6; }
18164 if test -d /dev
/pts
&& ls -d /dev
/ptmx
> /dev
/null
2>&1 ; then
18165 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
18166 $as_echo "yes" >&6; }
18168 $as_echo "#define HAVE_DEV_PTMX 1" >>confdefs.h
18171 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
18172 $as_echo "no" >&6; }
18175 ac_fn_c_check_type
"$LINENO" "pid_t" "ac_cv_type_pid_t" "$ac_includes_default"
18176 if test "x$ac_cv_type_pid_t" = xyes
; then :
18180 cat >>confdefs.h
<<_ACEOF
18186 for ac_header
in vfork.h
18188 ac_fn_c_check_header_mongrel
"$LINENO" "vfork.h" "ac_cv_header_vfork_h" "$ac_includes_default"
18189 if test "x$ac_cv_header_vfork_h" = xyes
; then :
18190 cat >>confdefs.h
<<_ACEOF
18191 #define HAVE_VFORK_H 1
18198 for ac_func
in fork vfork
18200 as_ac_var
=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
18201 ac_fn_c_check_func
"$LINENO" "$ac_func" "$as_ac_var"
18202 if eval test \"x\$
"$as_ac_var"\" = x
"yes"; then :
18203 cat >>confdefs.h
<<_ACEOF
18204 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
18210 if test "x$ac_cv_func_fork" = xyes
; then
18211 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working fork" >&5
18212 $as_echo_n "checking for working fork... " >&6; }
18213 if ${ac_cv_func_fork_works+:} false
; then :
18214 $as_echo_n "(cached) " >&6
18216 if test "$cross_compiling" = yes; then :
18217 ac_cv_func_fork_works
=cross
18219 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
18220 /* end confdefs.h. */
18221 $ac_includes_default
18226 /* By Ruediger Kuhlmann. */
18227 return fork () < 0;
18233 if ac_fn_c_try_run
"$LINENO"; then :
18234 ac_cv_func_fork_works
=yes
18236 ac_cv_func_fork_works
=no
18238 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
18239 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
18243 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_fork_works" >&5
18244 $as_echo "$ac_cv_func_fork_works" >&6; }
18247 ac_cv_func_fork_works
=$ac_cv_func_fork
18249 if test "x$ac_cv_func_fork_works" = xcross
; then
18251 *-*-amigaos* |
*-*-msdosdjgpp*)
18252 # Override, as these systems have only a dummy fork() stub
18253 ac_cv_func_fork_works
=no
18256 ac_cv_func_fork_works
=yes
18259 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: result $ac_cv_func_fork_works guessed because of cross compilation" >&5
18260 $as_echo "$as_me: WARNING: result $ac_cv_func_fork_works guessed because of cross compilation" >&2;}
18262 ac_cv_func_vfork_works
=$ac_cv_func_vfork
18263 if test "x$ac_cv_func_vfork" = xyes
; then
18264 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working vfork" >&5
18265 $as_echo_n "checking for working vfork... " >&6; }
18266 if ${ac_cv_func_vfork_works+:} false
; then :
18267 $as_echo_n "(cached) " >&6
18269 if test "$cross_compiling" = yes; then :
18270 ac_cv_func_vfork_works
=cross
18272 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
18273 /* end confdefs.h. */
18274 /* Thanks to Paul Eggert for this test. */
18275 $ac_includes_default
18276 #include <sys/wait.h>
18277 #ifdef HAVE_VFORK_H
18278 # include <vfork.h>
18280 /* On some sparc systems, changes by the child to local and incoming
18281 argument registers are propagated back to the parent. The compiler
18282 is told about this with #include <vfork.h>, but some compilers
18283 (e.g. gcc -O) don't grok <vfork.h>. Test for this by using a
18284 static variable whose address is put into a register that is
18285 clobbered by the vfork. */
18288 sparc_address_test (int arg)
18290 sparc_address_test (arg) int arg;
18293 static pid_t child;
18311 pid_t parent = getpid ();
18314 sparc_address_test (0);
18319 /* Here is another test for sparc vfork register problems. This
18320 test uses lots of local variables, at least as many local
18321 variables as main has allocated so far including compiler
18322 temporaries. 4 locals are enough for gcc 1.40.3 on a Solaris
18323 4.1.3 sparc, but we use 8 to be safe. A buggy compiler should
18324 reuse the register of parent for one of the local variables,
18325 since it will think that parent can't possibly be used any more
18326 in this routine. Assigning to the local variable will thus
18327 munge parent in the parent process. */
18329 p = getpid(), p1 = getpid(), p2 = getpid(), p3 = getpid(),
18330 p4 = getpid(), p5 = getpid(), p6 = getpid(), p7 = getpid();
18331 /* Convince the compiler that p..p7 are live; otherwise, it might
18332 use the same hardware register for all 8 local variables. */
18333 if (p != p1 || p != p2 || p != p3 || p != p4
18334 || p != p5 || p != p6 || p != p7)
18337 /* On some systems (e.g. IRIX 3.3), vfork doesn't separate parent
18338 from child file descriptors. If the child closes a descriptor
18339 before it execs or exits, this munges the parent's descriptor
18340 as well. Test for this by closing stdout in the child. */
18341 _exit(close(fileno(stdout)) != 0);
18346 while (wait(&status) != child)
18349 /* Was there some problem with vforking? */
18352 /* Did the child fail? (This shouldn't happen.) */
18355 /* Did the vfork/compiler bug occur? */
18356 || parent != getpid()
18358 /* Did the file descriptor bug occur? */
18359 || fstat(fileno(stdout), &st) != 0
18364 if ac_fn_c_try_run
"$LINENO"; then :
18365 ac_cv_func_vfork_works
=yes
18367 ac_cv_func_vfork_works
=no
18369 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
18370 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
18374 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_vfork_works" >&5
18375 $as_echo "$ac_cv_func_vfork_works" >&6; }
18378 if test "x$ac_cv_func_fork_works" = xcross
; then
18379 ac_cv_func_vfork_works
=$ac_cv_func_vfork
18380 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: result $ac_cv_func_vfork_works guessed because of cross compilation" >&5
18381 $as_echo "$as_me: WARNING: result $ac_cv_func_vfork_works guessed because of cross compilation" >&2;}
18384 if test "x$ac_cv_func_vfork_works" = xyes
; then
18386 $as_echo "#define HAVE_WORKING_VFORK 1" >>confdefs.h
18390 $as_echo "#define vfork fork" >>confdefs.h
18393 if test "x$ac_cv_func_fork_works" = xyes
; then
18395 $as_echo "#define HAVE_WORKING_FORK 1" >>confdefs.h
18400 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for nl_langinfo and CODESET" >&5
18401 $as_echo_n "checking for nl_langinfo and CODESET... " >&6; }
18402 if ${emacs_cv_langinfo_codeset+:} false
; then :
18403 $as_echo_n "(cached) " >&6
18405 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
18406 /* end confdefs.h. */
18407 #include <langinfo.h>
18411 char* cs = nl_langinfo(CODESET);
18416 if ac_fn_c_try_link
"$LINENO"; then :
18417 emacs_cv_langinfo_codeset
=yes
18419 emacs_cv_langinfo_codeset
=no
18421 rm -f core conftest.err conftest.
$ac_objext \
18422 conftest
$ac_exeext conftest.
$ac_ext
18425 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $emacs_cv_langinfo_codeset" >&5
18426 $as_echo "$emacs_cv_langinfo_codeset" >&6; }
18427 if test $emacs_cv_langinfo_codeset = yes; then
18429 $as_echo "#define HAVE_LANGINFO_CODESET 1" >>confdefs.h
18433 ac_fn_c_check_type
"$LINENO" "size_t" "ac_cv_type_size_t" "$ac_includes_default"
18434 if test "x$ac_cv_type_size_t" = xyes
; then :
18436 cat >>confdefs.h
<<_ACEOF
18437 #define HAVE_SIZE_T 1
18444 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for mbstate_t" >&5
18445 $as_echo_n "checking for mbstate_t... " >&6; }
18446 if ${ac_cv_type_mbstate_t+:} false
; then :
18447 $as_echo_n "(cached) " >&6
18449 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
18450 /* end confdefs.h. */
18451 $ac_includes_default
18452 # include <wchar.h>
18456 mbstate_t x; return sizeof x;
18461 if ac_fn_c_try_compile
"$LINENO"; then :
18462 ac_cv_type_mbstate_t
=yes
18464 ac_cv_type_mbstate_t
=no
18466 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
18468 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_mbstate_t" >&5
18469 $as_echo "$ac_cv_type_mbstate_t" >&6; }
18470 if test $ac_cv_type_mbstate_t = yes; then
18472 $as_echo "#define HAVE_MBSTATE_T 1" >>confdefs.h
18476 $as_echo "#define mbstate_t int" >>confdefs.h
18480 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for C restricted array declarations" >&5
18481 $as_echo_n "checking for C restricted array declarations... " >&6; }
18482 if ${emacs_cv_c_restrict_arr+:} false
; then :
18483 $as_echo_n "(cached) " >&6
18485 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
18486 /* end confdefs.h. */
18487 void fred (int x[__restrict]);
18496 if ac_fn_c_try_compile
"$LINENO"; then :
18497 emacs_cv_c_restrict_arr
=yes
18499 emacs_cv_c_restrict_arr
=no
18501 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
18503 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $emacs_cv_c_restrict_arr" >&5
18504 $as_echo "$emacs_cv_c_restrict_arr" >&6; }
18505 if test "$emacs_cv_c_restrict_arr" = yes; then
18507 $as_echo "#define __restrict_arr __restrict" >>confdefs.h
18513 # Set up the CFLAGS for real compilation, so we can substitute it.
18514 CFLAGS
="$REAL_CFLAGS"
18515 CPPFLAGS
="$REAL_CPPFLAGS"
18517 ## Hack to detect a buggy GCC version.
18518 if test "x$GCC" = xyes \
18519 && test x
"`$CC --version 2> /dev/null | grep 'gcc.* 4.5.0'`" != x \
18520 && test x
"`echo $CFLAGS | grep '\-O[23]'`" != x \
18521 && test x
"`echo $CFLAGS | grep '\-fno-optimize-sibling-calls'`" = x
; then
18522 as_fn_error $?
"GCC 4.5.0 has problems compiling Emacs; see etc/PROBLEMS'." "$LINENO" 5
18525 version
=$PACKAGE_VERSION
18527 ### Specify what sort of things we'll be editing into Makefile and config.h.
18528 ### Use configuration here uncanonicalized to avoid exceeding size limits.
18552 ## FIXME? Nothing uses @LD_SWITCH_X_SITE@.
18553 ## src/Makefile.in did add LD_SWITCH_X_SITE (as a cpp define) to the
18554 ## end of LIBX_BASE, but nothing ever set it.
18559 ## Used in lwlib/Makefile.in.
18561 if test -n "${machfile}"; then
18562 M_FILE
="\$(srcdir)/${machfile}"
18566 S_FILE
="\$(srcdir)/${opsysfile}"
18577 cat >>confdefs.h
<<_ACEOF
18578 #define EMACS_CONFIGURATION "${canonical}"
18582 cat >>confdefs.h
<<_ACEOF
18583 #define EMACS_CONFIG_OPTIONS "${ac_configure_args}"
18586 if test -n "$machfile"; then
18588 cat >>confdefs.h
<<_ACEOF
18589 #define config_machfile "${machfile}"
18594 cat >>confdefs.h
<<_ACEOF
18595 #define config_opsysfile "${opsysfile}"
18602 if test "${HAVE_X_WINDOWS}" = "yes" ; then
18604 $as_echo "#define HAVE_X_WINDOWS 1" >>confdefs.h
18607 XOBJ
="xterm.o xfns.o xselect.o xrdb.o fontset.o xsmfns.o fringe.o image.o xsettings.o xgselect.o"
18609 if test "$HAVE_XFT" = "yes"; then
18610 FONT_OBJ
="$FONT_OBJ ftfont.o xftfont.o ftxfont.o"
18611 elif test "$HAVE_FREETYPE" = "yes"; then
18612 FONT_OBJ
="$FONT_OBJ ftfont.o ftxfont.o"
18622 if test "${USE_X_TOOLKIT}" != "none" ; then
18623 WIDGET_OBJ
=widget.o
18625 $as_echo "#define USE_X_TOOLKIT 1" >>confdefs.h
18627 if test "${USE_X_TOOLKIT}" = "LUCID"; then
18629 $as_echo "#define USE_LUCID 1" >>confdefs.h
18631 elif test "${USE_X_TOOLKIT}" = "MOTIF"; then
18633 $as_echo "#define USE_MOTIF 1" >>confdefs.h
18638 ## Paul Abrahams <abrahams at equinox.shaysnet.com> says this is needed.
18639 MOTIF_LIBW
="$MOTIF_LIBW -lXpm"
18643 ## Richard Anthony Ryan <ryanr at ellingtn.ftc.nrcs.usda.gov>
18644 ## says -lXimp is needed in UNIX_SV ... 4.2 1.1.2.
18645 MOTIF_LIBW
="MOTIF_LIBW -lXimp"
18649 ## olson@mcs.anl.gov says -li18n is needed by -lXm.
18650 MOTIF_LIBW
="$MOTIF_LIBW -li18n"
18653 MOTIF_LIBW
="$MOTIF_LIBW $LIBXP"
18659 case "$USE_X_TOOLKIT" in
18660 MOTIF
) TOOLKIT_LIBW
="$MOTIF_LIBW" ;;
18661 LUCID
) TOOLKIT_LIBW
="$LUCID_LIBW" ;;
18662 none
) test "x$HAVE_GTK" = "xyes" && TOOLKIT_LIBW
="$GTK_LIBS" ;;
18666 if test "$USE_X_TOOLKIT" = "none"; then
18667 LIBXT_OTHER
="\$(LIBXSM)"
18668 OLDXMENU_TARGET
="really-oldXMenu"
18670 LIBXT_OTHER
="\$(LIBXMU) -lXt \$(LIBXTR6) -lXext"
18671 OLDXMENU_TARGET
="really-lwlib"
18675 ## The X Menu stuff is present in the X10 distribution, but missing
18676 ## from X11. If we have X10, just use the installed library;
18677 ## otherwise, use our own copy.
18678 if test "${HAVE_X11}" = "yes" ; then
18680 $as_echo "#define HAVE_X11 1" >>confdefs.h
18683 if test "$USE_X_TOOLKIT" = "none"; then
18684 OLDXMENU
="\${oldXMenudir}/libXMenu11.a"
18686 OLDXMENU
="\${lwlibdir}/liblw.a"
18688 LIBXMENU
="\$(OLDXMENU)"
18689 LIBX_OTHER
="\$(LIBXT) \$(LIBX_EXTRA)"
18690 OLDXMENU_DEPS
="\${OLDXMENU} ../src/\${OLDXMENU}"
18692 ## For a syntactically valid Makefile; not actually used for anything.
18693 ## See comments in src/Makefile.in.
18695 ## FIXME This case (!HAVE_X11 && HAVE_X_WINDOWS) is no longer possible(?).
18696 if test "${HAVE_X_WINDOWS}" = "yes"; then
18705 if test "$HAVE_GTK" = "yes" ||
test "$HAVE_MENUS" != "yes"; then
18718 if test "${HAVE_MENUS}" = "yes" ; then
18720 $as_echo "#define HAVE_MENUS 1" >>confdefs.h
18724 if test "${GNU_MALLOC}" = "yes" ; then
18726 $as_echo "#define GNU_MALLOC 1" >>confdefs.h
18731 if test "${REL_ALLOC}" = "yes" ; then
18733 $as_echo "#define REL_ALLOC 1" >>confdefs.h
18736 test "$system_malloc" != "yes" && RALLOC_OBJ
=ralloc.o
18740 if test "$opsys" = "cygwin"; then
18741 CYGWIN_OBJ
="sheap.o"
18742 ## Cygwin differs because of its unexec().
18744 POST_ALLOC_OBJ
=lastfile.o
18747 PRE_ALLOC_OBJ
=lastfile.o
18756 aix4-2
) LD_SWITCH_SYSTEM_TEMACS
="-Wl,-bnodelcsect" ;;
18759 ## The -headerpad option tells ld (see man page) to leave room at the
18760 ## end of the header for adding load commands. Needed for dumping.
18761 ## 0x690 is the total size of 30 segment load commands (at 56
18762 ## each); under Cocoa 31 commands are required.
18763 if test "$HAVE_NS" = "yes"; then
18764 libs_nsgui
="-framework AppKit"
18765 headerpad_extra
=6C8
18768 headerpad_extra
=690
18770 LD_SWITCH_SYSTEM_TEMACS
="-prebind $libs_nsgui -Xlinker -headerpad -Xlinker $headerpad_extra"
18772 ## This is here because src/Makefile.in did some extra fiddling around
18773 ## with LD_SWITCH_SYSTEM. The cpp logic was:
18774 ## #ifndef LD_SWITCH_SYSTEM
18775 ## #if !defined (__GNUC__) && ((defined (BSD_SYSTEM) && !defined (COFF)))
18776 ## Since all the *bsds define LD_SWITCH_SYSTEM, this simplifies to:
18777 ## not using gcc, darwin system not on an alpha (ie darwin, since
18778 ## darwin + alpha does not occur).
18779 ## Because this was done in src/Makefile.in, the resulting part of
18780 ## LD_SWITCH_SYSTEM was not used in configure (ie, in ac_link).
18781 ## It therefore seems cleaner to put this in LD_SWITCH_SYSTEM_TEMACS,
18782 ## rather than LD_SWITCH_SYSTEM.
18783 test "x$LD_SWITCH_SYSTEM" = "x" && test "x$GCC" != "xyes" && \
18784 LD_SWITCH_SYSTEM_TEMACS
="-X $LD_SWITCH_SYSTEM_TEMACS"
18787 ## LD_SWITCH_X_SITE_AUX is a -R option saying where to find X at run-time.
18788 ## When handled by cpp, this was in LD_SWITCH_SYSTEM. However, at
18789 ## the point where configure sourced the s/*.h file, LD_SWITCH_X_SITE_AUX
18790 ## had not yet been defined and was expanded to null. Hence LD_SWITCH_SYSTEM
18791 ## had different values in configure (in ac_link) and src/Makefile.in.
18792 ## It seems clearer therefore to put this piece in LD_SWITCH_SYSTEM_TEMACS.
18793 gnu-linux
) LD_SWITCH_SYSTEM_TEMACS
="\$(LD_SWITCH_X_SITE_AUX)" ;;
18795 *) LD_SWITCH_SYSTEM_TEMACS
= ;;
18798 if test "$NS_IMPL_GNUSTEP" = "yes"; then
18799 LD_SWITCH_SYSTEM_TEMACS
="${LD_SWITCH_SYSTEM_TEMACS} -L${GNUSTEP_SYSTEM_LIBRARIES} ${GNUSTEP_LOCAL_LIBRARIES} -lgnustep-gui -lgnustep-base -lobjc -lpthread"
18808 ## gnu: GNU needs its own crt0.
18809 aix4-2|cygwin|darwin|gnu|hpux
*|irix6-5|sol2
*|unixware
) ORDINARY_LINK
=yes ;;
18811 ## On post 1.3 releases of NetBSD, gcc -nostdlib also clears the
18812 ## library search parth, i.e. it won't search /usr/lib for libc and
18813 ## friends. Using -nostartfiles instead avoids this problem, and
18814 ## will also work on earlier NetBSD releases.
18815 netbsd|openbsd
) LD_FIRSTFLAG
="-nostartfiles" ;;
18817 ## macpcc: NAKAJI Hiroyuki <nakaji@tutrp.tut.ac.jp> says
18818 ## MkLinux/LinuxPPC needs this.
18819 ## ibms390x only supports opsys = gnu-linux so it can be added here.
18822 macppc|ibms390x
) LD_FIRSTFLAG
="-nostdlib" ;;
18828 if test "x$ORDINARY_LINK" = "xyes"; then
18832 $as_echo "#define ORDINARY_LINK 1" >>confdefs.h
18835 ## The system files defining neither ORDINARY_LINK nor LD_FIRSTFLAG are:
18836 ## freebsd, gnu-* not on macppc|ibms390x.
18837 elif test "x$GCC" = "xyes" && test "x$LD_FIRSTFLAG" = "x"; then
18839 ## Versions of GCC >= 2.0 put their library, libgcc.a, in obscure
18840 ## places that are difficult to figure out at make time. Fortunately,
18841 ## these same versions allow you to pass arbitrary flags on to the
18842 ## linker, so there is no reason not to use it as a linker.
18844 ## Well, it is not quite perfect. The "-nostdlib" keeps GCC from
18845 ## searching for libraries in its internal directories, so we have to
18846 ## ask GCC explicitly where to find libgcc.a (LIB_GCC below).
18847 LD_FIRSTFLAG
="-nostdlib"
18850 ## FIXME? What setting of EDIT_LDFLAGS should this have?
18851 test "$NS_IMPL_GNUSTEP" = "yes" && LD_FIRSTFLAG
="-rdynamic"
18856 ## FIXME? The logic here is not precisely the same as that above.
18857 ## There is no check here for a pre-defined LD_FIRSTFLAG.
18858 ## Should we only be setting LIB_GCC if LD ~ -nostdlib?
18860 if test "x$GCC" = "xyes" && test "x$ORDINARY_LINK" != "xyes"; then
18863 freebsd|netbsd|openbsd
) LIB_GCC
= ;;
18866 ## armin76@gentoo.org reported that the lgcc_s flag is necessary to
18867 ## build on ARM EABI under GNU/Linux. (Bug#5518)
18873 ## FIXME? s/gnu-linux.h used to define LIB_GCC as below, then
18874 ## immediately undefine it again and redefine it to empty.
18875 ## Was the C_SWITCH_X_SITE part really necessary?
18876 ## LIB_GCC=`$CC $C_SWITCH_X_SITE -print-libgcc-file-name`
18882 ## Ask GCC where to find libgcc.a.
18883 *) LIB_GCC
=`$CC -print-libgcc-file-name 2> /dev/null` ;;
18890 ## If we're using X11/GNUstep, define some consequences.
18891 if test "$HAVE_X_WINDOWS" = "yes" ||
test "$HAVE_NS" = "yes"; then
18893 $as_echo "#define HAVE_WINDOW_SYSTEM 1" >>confdefs.h
18896 $as_echo "#define HAVE_MOUSE 1" >>confdefs.h
18898 MOUSE_SUPPORT
="\$(REAL_MOUSE_SUPPORT)"
18899 TOOLTIP_SUPPORT
="\${lispsource}/mouse.elc"
18901 WINDOW_SUPPORT
="\$(BASE_WINDOW_SUPPORT)"
18902 test "$HAVE_X_WINDOWS" = "yes" && \
18903 WINDOW_SUPPORT
="$WINDOW_SUPPORT \$(X_WINDOW_SUPPORT)"
18913 #### Report on what we decided to do.
18914 #### Report GTK as a toolkit, even if it doesn't use Xt.
18915 #### It makes printing result more understandable as using GTK sets
18916 #### toolkit_scroll_bars to yes by default.
18917 if test "${HAVE_GTK}" = "yes"; then
18922 if test -n "$machfile"; then
18923 and_machfile
=" and \`${machfile}'"
18927 Configured for \`${canonical}'.
18929 Where should the build process find the source code? ${srcdir}
18930 What operating system and machine description files should Emacs use?
18931 \`${opsysfile}'${and_machfile}
18932 What compiler should emacs be built with? ${CC} ${CFLAGS}
18933 Should Emacs use the GNU version of malloc? ${GNU_MALLOC}${GNU_MALLOC_reason}
18934 Should Emacs use a relocating allocator for buffers? ${REL_ALLOC}
18935 Should Emacs use mmap(2) for buffer allocation? $use_mmap_for_buffers
18936 What window system should Emacs use? ${window_system}
18937 What toolkit should Emacs use? ${USE_X_TOOLKIT}"
18939 if test -n "${x_includes}"; then
18940 echo " Where do we find X Windows header files? ${x_includes}"
18942 echo " Where do we find X Windows header files? Standard dirs"
18944 if test -n "${x_libraries}"; then
18945 echo " Where do we find X Windows libraries? ${x_libraries}"
18947 echo " Where do we find X Windows libraries? Standard dirs"
18950 echo " Does Emacs use -lXaw3d? ${HAVE_XAW3D}"
18951 echo " Does Emacs use -lXpm? ${HAVE_XPM}"
18952 echo " Does Emacs use -ljpeg? ${HAVE_JPEG}"
18953 echo " Does Emacs use -ltiff? ${HAVE_TIFF}"
18954 echo " Does Emacs use a gif library? ${HAVE_GIF} $LIBGIF"
18955 echo " Does Emacs use -lpng? ${HAVE_PNG}"
18956 echo " Does Emacs use -lrsvg-2? ${HAVE_RSVG}"
18957 echo " Does Emacs use imagemagick? ${HAVE_IMAGEMAGICK}"
18959 echo " Does Emacs use -lgpm? ${HAVE_GPM}"
18960 echo " Does Emacs use -ldbus? ${HAVE_DBUS}"
18961 echo " Does Emacs use -lgconf? ${HAVE_GCONF}"
18962 echo " Does Emacs use -lselinux? ${HAVE_LIBSELINUX}"
18963 echo " Does Emacs use -lgnutls? ${HAVE_GNUTLS}"
18964 echo " Does Emacs use -lxml2? ${HAVE_LIBXML2}"
18966 echo " Does Emacs use -lfreetype? ${HAVE_FREETYPE}"
18967 echo " Does Emacs use -lm17n-flt? ${HAVE_M17N_FLT}"
18968 echo " Does Emacs use -lotf? ${HAVE_LIBOTF}"
18969 echo " Does Emacs use -lxft? ${HAVE_XFT}"
18971 echo " Does Emacs use toolkit scroll bars? ${USE_TOOLKIT_SCROLL_BARS}"
18974 if test $USE_XASSERTS = yes; then
18975 echo " Compiling with asserts turned on."
18976 CPPFLAGS
="$CPPFLAGS -DXASSERTS=1"
18981 if test "$HAVE_NS" = "yes"; then
18983 echo "You must run \"make install\" in order to test the built application.
18984 The installed application will go to nextstep/Emacs.app and can be
18985 run or moved from there."
18986 if test "$EN_NS_SELF_CONTAINED" = "yes"; then
18987 echo "The application will be fully self-contained."
18989 echo "The lisp resources for the application will be installed under ${prefix}.
18990 You may need to run \"make install\" with sudo. The application will fail
18991 to run if these resources are not installed."
18997 # Remove any trailing slashes in these variables.
18998 test "${prefix}" != NONE
&&
18999 prefix
=`echo "${prefix}" | sed 's,\([^/]\)/*$,\1,'`
19000 test "${exec_prefix}" != NONE
&&
19001 exec_prefix
=`echo "${exec_prefix}" | sed 's,\([^/]\)/*$,\1,'`
19003 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"
19005 ac_config_commands
="$ac_config_commands default"
19007 cat >confcache
<<\_ACEOF
19008 # This file is a shell script that caches the results of configure
19009 # tests run on this system so they can be shared between configure
19010 # scripts and configure runs, see configure's option --config-cache.
19011 # It is not useful on other systems. If it contains results you don't
19012 # want to keep, you may remove or edit it.
19014 # config.status only pays attention to the cache file if you give it
19015 # the --recheck option to rerun configure.
19017 # `ac_cv_env_foo' variables (set or unset) will be overridden when
19018 # loading this file, other *unset* `ac_cv_foo' will be assigned the
19019 # following values.
19023 # The following way of writing the cache mishandles newlines in values,
19024 # but we know of no workaround that is simple, portable, and efficient.
19025 # So, we kill variables containing newlines.
19026 # Ultrix sh set writes to stderr and can't be redirected directly,
19027 # and sets the high bit in the cache file unless we assign to the vars.
19029 for ac_var
in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
19030 eval ac_val
=\$
$ac_var
19034 *_cv_
*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
19035 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
19038 _ | IFS | as_nl
) ;; #(
19039 BASH_ARGV | BASH_SOURCE
) eval $ac_var= ;; #(
19040 *) { eval $ac_var=; unset $ac_var;} ;;
19046 case $as_nl`(ac_space=' '; set) 2>&1` in #(
19047 *${as_nl}ac_space
=\
*)
19048 # `set' does not quote correctly, so add quotes: double-quote
19049 # substitution turns \\\\ into \\, and sed turns \\ into \.
19052 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
19055 # `set' quotes correctly as required by POSIX, so do not add quotes.
19056 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
19065 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
19067 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
19069 if diff "$cache_file" confcache
>/dev
/null
2>&1; then :; else
19070 if test -w "$cache_file"; then
19071 if test "x$cache_file" != "x/dev/null"; then
19072 { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
19073 $as_echo "$as_me: updating cache $cache_file" >&6;}
19074 if test ! -f "$cache_file" ||
test -h "$cache_file"; then
19075 cat confcache
>"$cache_file"
19077 case $cache_file in #(
19079 mv -f confcache
"$cache_file"$$
&&
19080 mv -f "$cache_file"$$
"$cache_file" ;; #(
19082 mv -f confcache
"$cache_file" ;;
19087 { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
19088 $as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
19093 test "x$prefix" = xNONE
&& prefix
=$ac_default_prefix
19094 # Let make expand exec_prefix.
19095 test "x$exec_prefix" = xNONE
&& exec_prefix
='${prefix}'
19097 DEFS
=-DHAVE_CONFIG_H
19102 for ac_i
in : $LIBOBJS; do test "x$ac_i" = x
: && continue
19103 # 1. Remove the extension, and $U if already installed.
19104 ac_script
='s/\$U\././;s/\.o$//;s/\.obj$//'
19105 ac_i
=`$as_echo "$ac_i" | sed "$ac_script"`
19106 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
19107 # will be set to the directory where LIBOBJS objects are built.
19108 as_fn_append ac_libobjs
" \${LIBOBJDIR}$ac_i\$U.$ac_objext"
19109 as_fn_append ac_ltlibobjs
" \${LIBOBJDIR}$ac_i"'$U.lo'
19111 LIBOBJS
=$ac_libobjs
19113 LTLIBOBJS
=$ac_ltlibobjs
19116 if test -n "$EXEEXT"; then
19118 am__EXEEXT_FALSE
='#'
19120 am__EXEEXT_TRUE
='#'
19124 if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
19125 as_fn_error $?
"conditional \"AMDEP\" was never defined.
19126 Usually this means the macro was only invoked conditionally." "$LINENO" 5
19128 if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
19129 as_fn_error $?
"conditional \"am__fastdepCC\" was never defined.
19130 Usually this means the macro was only invoked conditionally." "$LINENO" 5
19133 if test -z "${GL_COND_LIBTOOL_TRUE}" && test -z "${GL_COND_LIBTOOL_FALSE}"; then
19134 as_fn_error $?
"conditional \"GL_COND_LIBTOOL\" was never defined.
19135 Usually this means the macro was only invoked conditionally." "$LINENO" 5
19141 if test -n "$gl_LIBOBJS"; then
19142 # Remove the extension.
19143 sed_drop_objext
='s/\.o$//;s/\.obj$//'
19144 for i
in `for i in $gl_LIBOBJS; do echo "$i"; done | sed -e "$sed_drop_objext" | sort | uniq`; do
19145 gl_libobjs
="$gl_libobjs $i.$ac_objext"
19146 gl_ltlibobjs
="$gl_ltlibobjs $i.lo"
19149 gl_LIBOBJS
=$gl_libobjs
19151 gl_LTLIBOBJS
=$gl_ltlibobjs
19157 if test -n "$gltests_LIBOBJS"; then
19158 # Remove the extension.
19159 sed_drop_objext
='s/\.o$//;s/\.obj$//'
19160 for i
in `for i in $gltests_LIBOBJS; do echo "$i"; done | sed -e "$sed_drop_objext" | sort | uniq`; do
19161 gltests_libobjs
="$gltests_libobjs $i.$ac_objext"
19162 gltests_ltlibobjs
="$gltests_ltlibobjs $i.lo"
19165 gltests_LIBOBJS
=$gltests_libobjs
19167 gltests_LTLIBOBJS
=$gltests_ltlibobjs
19171 : "${CONFIG_STATUS=./config.status}"
19173 ac_clean_files_save
=$ac_clean_files
19174 ac_clean_files
="$ac_clean_files $CONFIG_STATUS"
19175 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
19176 $as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
19178 cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
19180 # Generated by $as_me.
19181 # Run this file to recreate the current configuration.
19182 # Compiler output produced by configure, useful for debugging
19183 # configure, is in config.log if it exists.
19186 ac_cs_recheck=false
19189 SHELL=\${CONFIG_SHELL-$SHELL}
19192 cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail
=1
19193 ## -------------------- ##
19194 ## M4sh Initialization. ##
19195 ## -------------------- ##
19197 # Be more Bourne compatible
19198 DUALCASE
=1; export DUALCASE
# for MKS sh
19199 if test -n "${ZSH_VERSION+set}" && (emulate sh
) >/dev
/null
2>&1; then :
19202 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
19203 # is contrary to our usage. Disable this feature.
19204 alias -g '${1+"$@"}'='"$@"'
19205 setopt NO_GLOB_SUBST
19207 case `(set -o) 2>/dev/null` in #(
19219 # Printing a long string crashes Solaris 7 /usr/bin/printf.
19220 as_echo
='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
19221 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
19222 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
19223 # Prefer a ksh shell builtin over an external printf program on Solaris,
19224 # but without wasting forks for bash or zsh.
19225 if test -z "$BASH_VERSION$ZSH_VERSION" \
19226 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
19227 as_echo='print
-r --'
19228 as_echo_n='print
-rn --'
19229 elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
19230 as_echo='printf %s
\n'
19231 as_echo_n='printf %s
'
19233 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
19234 as_echo_body='eval /usr
/ucb
/echo -n "$1$as_nl"'
19235 as_echo_n='/usr
/ucb
/echo -n'
19237 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
19238 as_echo_n_body='eval
19242 expr "X$arg" : "X\\(.*\\)$as_nl";
19243 arg
=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
19245 expr "X$arg" : "X\\(.*\\)" |
tr -d "$as_nl"
19247 export as_echo_n_body
19248 as_echo_n='sh
-c $as_echo_n_body as_echo
'
19250 export as_echo_body
19251 as_echo='sh
-c $as_echo_body as_echo
'
19254 # The user is always right.
19255 if test "${PATH_SEPARATOR+set}" != set; then
19257 (PATH='/bin
;/bin
'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
19258 (PATH='/bin
:/bin
'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
19265 # We need space, tab and new line, in precisely that order. Quoting is
19266 # there to prevent editors from complaining about space-tab.
19267 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
19268 # splitting by setting IFS to empty value.)
19271 # Find who we are. Look in the path if we contain no directory separator.
19274 *[\\/]* ) as_myself=$0 ;;
19275 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
19276 for as_dir in $PATH
19279 test -z "$as_dir" && as_dir=.
19280 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
19286 # We did not find ourselves, most probably we were run as `sh COMMAND'
19287 # in which case we are not to be found in the path.
19288 if test "x$as_myself" = x
; then
19291 if test ! -f "$as_myself"; then
19292 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
19296 # Unset variables that we do not need and which cause bugs (e.g. in
19297 # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
19298 # suppresses any "Segmentation fault" message there. '((' could
19299 # trigger a bug in pdksh 5.2.14.
19300 for as_var
in BASH_ENV ENV MAIL MAILPATH
19301 do eval test x\
${$as_var+set} = xset \
19302 && ( (unset $as_var) ||
exit 1) >/dev
/null
2>&1 && unset $as_var ||
:
19315 (unset CDPATH
) >/dev
/null
2>&1 && unset CDPATH
19318 # as_fn_error STATUS ERROR [LINENO LOG_FD]
19319 # ----------------------------------------
19320 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
19321 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
19322 # script with STATUS, using 1 if that was 0.
19325 as_status
=$1; test $as_status -eq 0 && as_status
=1
19327 as_lineno
=${as_lineno-"$3"} as_lineno_stack
=as_lineno_stack
=$as_lineno_stack
19328 $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
19330 $as_echo "$as_me: error: $2" >&2
19331 as_fn_exit
$as_status
19335 # as_fn_set_status STATUS
19336 # -----------------------
19337 # Set $? to STATUS, without forking.
19338 as_fn_set_status
()
19341 } # as_fn_set_status
19343 # as_fn_exit STATUS
19344 # -----------------
19345 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
19349 as_fn_set_status
$1
19355 # Portably unset VAR.
19358 { eval $1=; unset $1;}
19360 as_unset
=as_fn_unset
19361 # as_fn_append VAR VALUE
19362 # ----------------------
19363 # Append the text in VALUE to the end of the definition contained in VAR. Take
19364 # advantage of any shell optimizations that allow amortized linear growth over
19365 # repeated appends, instead of the typical quadratic growth present in naive
19367 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev
/null
; then :
19368 eval 'as_fn_append ()
19379 # as_fn_arith ARG...
19380 # ------------------
19381 # Perform arithmetic evaluation on the ARGs, and store the result in the
19382 # global $as_val. Take advantage of shells that can avoid forks. The arguments
19383 # must be portable across $(()) and expr.
19384 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev
/null
; then :
19385 eval 'as_fn_arith ()
19392 as_val
=`expr "$@" || test $? -eq 1`
19397 if expr a
: '\(a\)' >/dev
/null
2>&1 &&
19398 test "X`expr 00001 : '.*\(...\)'`" = X001
; then
19404 if (basename -- /) >/dev
/null
2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
19405 as_basename
=basename
19410 if (as_dir
=`dirname -- /` && test "X$as_dir" = X
/) >/dev
/null
2>&1; then
19416 as_me
=`$as_basename -- "$0" ||
19417 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
19418 X"$0" : 'X\(//\)$' \| \
19419 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
19421 sed '/^.*\/\([^/][^/]*\)\/*$/{
19435 # Avoid depending upon Character Ranges.
19436 as_cr_letters
='abcdefghijklmnopqrstuvwxyz'
19437 as_cr_LETTERS
='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
19438 as_cr_Letters
=$as_cr_letters$as_cr_LETTERS
19439 as_cr_digits
='0123456789'
19440 as_cr_alnum
=$as_cr_Letters$as_cr_digits
19442 ECHO_C
= ECHO_N
= ECHO_T
=
19443 case `echo -n x` in #(((((
19445 case `echo 'xy\c'` in
19446 *c
*) ECHO_T
=' ';; # ECHO_T is single tab character.
19448 *) echo `echo ksh88 bug on AIX 6.1` > /dev
/null
19455 rm -f conf$$ conf$$.exe conf$$.
file
19456 if test -d conf$$.dir
; then
19457 rm -f conf$$.dir
/conf$$.
file
19460 mkdir conf$$.dir
2>/dev
/null
19462 if (echo >conf$$.
file) 2>/dev
/null
; then
19463 if ln -s conf$$.
file conf$$
2>/dev
/null
; then
19465 # ... but there are two gotchas:
19466 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
19467 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
19468 # In both cases, we have to default to `cp -p'.
19469 ln -s conf$$.
file conf$$.dir
2>/dev
/null
&& test ! -f conf$$.exe ||
19471 elif ln conf$$.
file conf$$
2>/dev
/null
; then
19479 rm -f conf$$ conf$$.exe conf$$.dir
/conf$$.
file conf$$.
file
19480 rmdir conf$$.dir
2>/dev
/null
19485 # Create "$as_dir" as a directory, including parents if necessary.
19490 -*) as_dir
=.
/$as_dir;;
19492 test -d "$as_dir" ||
eval $as_mkdir_p ||
{
19496 *\'*) as_qdir
=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
19497 *) as_qdir
=$as_dir;;
19499 as_dirs
="'$as_qdir' $as_dirs"
19500 as_dir
=`$as_dirname -- "$as_dir" ||
19501 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
19502 X"$as_dir" : 'X\(//\)[^/]' \| \
19503 X"$as_dir" : 'X\(//\)$' \| \
19504 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
19505 $as_echo X"$as_dir" |
19506 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
19510 /^X\(\/\/\)[^/].*/{
19523 test -d "$as_dir" && break
19525 test -z "$as_dirs" ||
eval "mkdir $as_dirs"
19526 } ||
test -d "$as_dir" || as_fn_error $?
"cannot create directory $as_dir"
19530 if mkdir
-p .
2>/dev
/null
; then
19531 as_mkdir_p
='mkdir -p "$as_dir"'
19533 test -d .
/-p && rmdir .
/-p
19537 if test -x / >/dev
/null
2>&1; then
19538 as_test_x
='test -x'
19540 if ls -dL / >/dev
/null
2>&1; then
19547 if test -d "$1"; then
19553 case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in #((
19554 ???[sx]*):;;*)false;;esac;fi
19558 as_executable_p
=$as_test_x
19560 # Sed expression to map a string onto a valid CPP name.
19561 as_tr_cpp
="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
19563 # Sed expression to map a string onto a valid variable name.
19564 as_tr_sh
="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
19568 ## ----------------------------------- ##
19569 ## Main body of $CONFIG_STATUS script. ##
19570 ## ----------------------------------- ##
19572 test $as_write_fail = 0 && chmod +x
$CONFIG_STATUS || ac_write_fail
=1
19574 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail
=1
19575 # Save the log message, to keep $0 and so on meaningful, and to
19576 # report actual input values of CONFIG_FILES etc. instead of their
19577 # values after options handling.
19579 This file was extended by emacs $as_me 24.0.50, which was
19580 generated by GNU Autoconf 2.68. Invocation command line was
19582 CONFIG_FILES = $CONFIG_FILES
19583 CONFIG_HEADERS = $CONFIG_HEADERS
19584 CONFIG_LINKS = $CONFIG_LINKS
19585 CONFIG_COMMANDS = $CONFIG_COMMANDS
19588 on `(hostname || uname -n) 2>/dev/null | sed 1q`
19593 case $ac_config_files in *"
19594 "*) set x
$ac_config_files; shift; ac_config_files
=$
*;;
19597 case $ac_config_headers in *"
19598 "*) set x
$ac_config_headers; shift; ac_config_headers
=$
*;;
19602 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
19603 # Files that config.status was made for.
19604 config_files="$ac_config_files"
19605 config_headers="$ac_config_headers"
19606 config_commands="$ac_config_commands"
19610 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail
=1
19612 \`$as_me' instantiates files and other configuration actions
19613 from templates according to the current configuration. Unless the files
19614 and actions are specified as TAGs, all are instantiated by default.
19616 Usage: $0 [OPTION]... [TAG]...
19618 -h, --help print this help, then exit
19619 -V, --version print version number and configuration settings, then exit
19620 --config print configuration, then exit
19621 -q, --quiet, --silent
19622 do not print progress messages
19623 -d, --debug don't remove temporary files
19624 --recheck update $as_me by reconfiguring in the same conditions
19625 --file=FILE[:TEMPLATE]
19626 instantiate the configuration file FILE
19627 --header=FILE[:TEMPLATE]
19628 instantiate the configuration header FILE
19630 Configuration files:
19633 Configuration headers:
19636 Configuration commands:
19639 Report bugs to the package provider."
19642 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
19643 ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`"
19645 emacs config.status 24.0.50
19646 configured by $0, generated by GNU Autoconf 2.68,
19647 with options \\"\$ac_cs_config\\"
19649 Copyright (C) 2010 Free Software Foundation, Inc.
19650 This config.status script is free software; the Free Software Foundation
19651 gives unlimited permission to copy, distribute and modify it."
19658 test -n "\$AWK" || AWK=awk
19661 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail
=1
19662 # The default lists apply if the user does not specify any file.
19668 ac_option
=`expr "X$1" : 'X\([^=]*\)='`
19669 ac_optarg
=`expr "X$1" : 'X[^=]*=\(.*\)'`
19673 ac_option
=`expr "X$1" : 'X\([^=]*\)='`
19685 # Handling of the options.
19686 -recheck |
--recheck |
--rechec |
--reche |
--rech |
--rec |
--re |
--r)
19688 --version |
--versio |
--versi |
--vers |
--ver |
--ve |
--v |
-V )
19689 $as_echo "$ac_cs_version"; exit ;;
19690 --config |
--confi |
--conf |
--con |
--co |
--c )
19691 $as_echo "$ac_cs_config"; exit ;;
19692 --debug |
--debu |
--deb |
--de |
--d |
-d )
19694 --file |
--fil |
--fi |
--f )
19697 *\'*) ac_optarg
=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
19698 '') as_fn_error $?
"missing file argument" ;;
19700 as_fn_append CONFIG_FILES
" '$ac_optarg'"
19701 ac_need_defaults
=false
;;
19702 --header |
--heade |
--head |
--hea )
19705 *\'*) ac_optarg
=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
19707 as_fn_append CONFIG_HEADERS
" '$ac_optarg'"
19708 ac_need_defaults
=false
;;
19710 # Conflict between --help and --header
19711 as_fn_error $?
"ambiguous option: \`$1'
19712 Try \`$0 --help' for more information.";;
19713 --help |
--hel |
-h )
19714 $as_echo "$ac_cs_usage"; exit ;;
19715 -q |
-quiet |
--quiet |
--quie |
--qui |
--qu |
--q \
19716 |
-silent |
--silent |
--silen |
--sile |
--sil |
--si |
--s)
19719 # This is an error.
19720 -*) as_fn_error $?
"unrecognized option: \`$1'
19721 Try \`$0 --help' for more information." ;;
19723 *) as_fn_append ac_config_targets
" $1"
19724 ac_need_defaults
=false
;;
19730 ac_configure_extra_args
=
19732 if $ac_cs_silent; then
19734 ac_configure_extra_args
="$ac_configure_extra_args --silent"
19738 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
19739 if \$ac_cs_recheck; then
19740 set X '$SHELL' '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
19742 \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
19743 CONFIG_SHELL='$SHELL'
19744 export CONFIG_SHELL
19749 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail
=1
19753 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
19754 ## Running $as_me. ##
19760 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
19764 AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"
19765 GCC="$GCC" NON_GNU_CPP="$NON_GNU_CPP" CPP="$CPP" CPPFLAGS="$CPPFLAGS"
19769 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail
=1
19771 # Handling of arguments.
19772 for ac_config_target
in $ac_config_targets
19774 case $ac_config_target in
19775 "src/config.h") CONFIG_HEADERS
="$CONFIG_HEADERS src/config.h:src/config.in" ;;
19776 "depfiles") CONFIG_COMMANDS
="$CONFIG_COMMANDS depfiles" ;;
19777 "Makefile") CONFIG_FILES
="$CONFIG_FILES Makefile" ;;
19778 "lib/Makefile") CONFIG_FILES
="$CONFIG_FILES lib/Makefile" ;;
19779 "lib-src/Makefile") CONFIG_FILES
="$CONFIG_FILES lib-src/Makefile" ;;
19780 "oldXMenu/Makefile") CONFIG_FILES
="$CONFIG_FILES oldXMenu/Makefile" ;;
19781 "doc/emacs/Makefile") CONFIG_FILES
="$CONFIG_FILES doc/emacs/Makefile" ;;
19782 "doc/misc/Makefile") CONFIG_FILES
="$CONFIG_FILES doc/misc/Makefile" ;;
19783 "doc/lispintro/Makefile") CONFIG_FILES
="$CONFIG_FILES doc/lispintro/Makefile" ;;
19784 "doc/lispref/Makefile") CONFIG_FILES
="$CONFIG_FILES doc/lispref/Makefile" ;;
19785 "src/Makefile") CONFIG_FILES
="$CONFIG_FILES src/Makefile" ;;
19786 "lwlib/Makefile") CONFIG_FILES
="$CONFIG_FILES lwlib/Makefile" ;;
19787 "lisp/Makefile") CONFIG_FILES
="$CONFIG_FILES lisp/Makefile" ;;
19788 "leim/Makefile") CONFIG_FILES
="$CONFIG_FILES leim/Makefile" ;;
19789 "test/automated/Makefile") CONFIG_FILES
="$CONFIG_FILES test/automated/Makefile" ;;
19790 "default") CONFIG_COMMANDS
="$CONFIG_COMMANDS default" ;;
19792 *) as_fn_error $?
"invalid argument: \`$ac_config_target'" "$LINENO" 5;;
19797 # If the user did not use the arguments to specify the items to instantiate,
19798 # then the envvar interface is used. Set only those that are not.
19799 # We use the long form for the default assignment because of an extremely
19800 # bizarre bug on SunOS 4.1.3.
19801 if $ac_need_defaults; then
19802 test "${CONFIG_FILES+set}" = set || CONFIG_FILES
=$config_files
19803 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS
=$config_headers
19804 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS
=$config_commands
19807 # Have a temporary directory for convenience. Make it in the build tree
19808 # simply because there is no reason against having it here, and in addition,
19809 # creating and moving files from /tmp can sometimes cause problems.
19810 # Hook for its removal unless debugging.
19811 # Note that there is a small window in which the directory will not be cleaned:
19812 # after its creation but before its name has been assigned to `$tmp'.
19816 trap 'exit_status=$?
19817 : "${ac_tmp:=$tmp}"
19818 { test ! -d "$ac_tmp" || rm -fr "$ac_tmp"; } && exit $exit_status
19820 trap 'as_fn_exit 1' 1 2 13 15
19822 # Create a (secure) tmp directory for tmp files.
19825 tmp
=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
19829 tmp
=.
/conf$$
-$RANDOM
19830 (umask 077 && mkdir
"$tmp")
19831 } || as_fn_error $?
"cannot create a temporary directory in ." "$LINENO" 5
19834 # Set up the scripts for CONFIG_FILES section.
19835 # No need to generate them if there are no CONFIG_FILES.
19836 # This happens for instance with `./config.status config.h'.
19837 if test -n "$CONFIG_FILES"; then
19839 if $AWK 'BEGIN { getline <"/dev/null" }' </dev
/null
2>/dev
/null
; then
19840 ac_cs_awk_getline
=:
19841 ac_cs_awk_pipe_init
=
19842 ac_cs_awk_read_file
='
19843 while ((getline aline < (F[key])) > 0)
19846 ac_cs_awk_pipe_fini
=
19848 ac_cs_awk_getline
=false
19849 ac_cs_awk_pipe_init
="print \"cat <<'|#_!!_#|' &&\""
19850 ac_cs_awk_read_file
='
19852 print "cat " F[key] " &&"
19853 '$ac_cs_awk_pipe_init
19854 # The final `:' finishes the AND list.
19855 ac_cs_awk_pipe_fini
='END { print "|#_!!_#|"; print ":" }'
19857 ac_cr
=`echo X | tr X '\015'`
19858 # On cygwin, bash can eat \r inside `` if the user requested igncr.
19859 # But we know of no other shell where ac_cr would be empty at this
19860 # point, so we can use a bashism as a fallback.
19861 if test "x$ac_cr" = x
; then
19862 eval ac_cr
=\$
\'\\r
\'
19864 ac_cs_awk_cr
=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
19865 if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
19868 ac_cs_awk_cr
=$ac_cr
19871 echo 'BEGIN {' >"$ac_tmp/subs1.awk" &&
19874 # Create commands to substitute file output variables.
19876 echo "cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1" &&
19877 echo 'cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK &&' &&
19878 echo "$ac_subst_files" |
sed 's/.*/F["&"]="$&"/' &&
19881 } >conf$
$files.sh
&&
19882 . .
/conf$
$files.sh ||
19883 as_fn_error $?
"could not make $CONFIG_STATUS" "$LINENO" 5
19884 rm -f conf$
$files.sh
19887 echo "cat >conf$$subs.awk <<_ACEOF" &&
19888 echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
19890 } >conf$$subs.sh ||
19891 as_fn_error $? "could not
make $CONFIG_STATUS" "$LINENO" 5
19892 ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'`
19894 for ac_last_try in false false false false false :; do
19895 . ./conf$$subs.sh ||
19896 as_fn_error $? "could not
make $CONFIG_STATUS" "$LINENO" 5
19898 ac_delim_n=`sed -n "s
/.
*$ac_delim\$
/X
/p
" conf$$subs.awk | grep -c X`
19899 if test $ac_delim_n = $ac_delim_num; then
19901 elif $ac_last_try; then
19902 as_fn_error $? "could not
make $CONFIG_STATUS" "$LINENO" 5
19904 ac_delim="$ac_delim!$ac_delim _
$ac_delim!! "
19907 rm -f conf$$subs.sh
19909 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
19910 cat >>"\
$ac_tmp/subs1.
awk" <<\\_ACAWK &&
19914 s/^/S["/; s
/!.
*/"]=/
19924 s/\(.\{148\}\)..*/\1/
19926 s/["\\]/\\&/g
; s
/^
/"/; s/$/\\n"\\/
19931 s
/["\\]/\\&/g; s/^/"/; s
/$
/"\\/
19938 s/\(.\{148\}\)..*/\1/
19940 s/["\\]/\\&/g
; s
/^
/"/; s/$/"/
19944 s
/["\\]/\\&/g; s/^/"/; s
/$
/"\\/
19949 ' <conf$$subs.awk | sed '
19954 ' >>$CONFIG_STATUS || ac_write_fail=1
19955 rm -f conf$$subs.awk
19956 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
19958 cat >>"\
$ac_tmp/subs1.
awk" <<_ACAWK &&
19959 for (key in S) S_is_set[key] = 1
19961 \$ac_cs_awk_pipe_init
19965 nfields = split(line, field, "@
")
19967 len = length(field[1])
19968 for (i = 2; i < nfields; i++) {
19970 keylen = length(key)
19971 if (S_is_set[key]) {
19973 line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
19974 len += length(value) + length(field[++i])
19979 if (nfields == 3 && !substed) {
19981 if (F[key] != "" && line ~ /^[ ]*@.*@[ ]*$/) {
19982 \$ac_cs_awk_read_file
19988 \$ac_cs_awk_pipe_fini
19991 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
19992 if sed "s
/$ac_cr//" < /dev/null > /dev/null 2>&1; then
19993 sed "s
/$ac_cr\$
//; s
/$ac_cr/$ac_cs_awk_cr/g
"
19996 fi < "$ac_tmp/subs1.
awk" > "$ac_tmp/subs.
awk" \
19997 || as_fn_error $? "could not setup config files machinery
" "$LINENO" 5
20000 # VPATH may cause trouble with some makes, so we remove sole $(srcdir),
20001 # ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".
", strip leading and
20002 # trailing colons and then remove the whole line if VPATH becomes empty
20003 # (actually we leave an empty line to preserve line numbers).
20004 if test "x
$srcdir" = x.; then
20005 ac_vpsub='/^[ ]*VPATH[ ]*=[ ]*/{
20023 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
20024 fi # test -n "$CONFIG_FILES"
20026 # Set up the scripts for CONFIG_HEADERS section.
20027 # No need to generate them if there are no CONFIG_HEADERS.
20028 # This happens for instance with `./config.status Makefile'.
20029 if test -n "$CONFIG_HEADERS"; then
20030 cat >"$ac_tmp/defines.
awk" <<\_ACAWK ||
20034 # Transform confdefs.h into an awk script `defines.awk', embedded as
20035 # here-document in config.status, that substitutes the proper values into
20036 # config.h.in to produce config.h.
20038 # Create a delimiter string that does not exist in confdefs.h, to ease
20039 # handling of long lines.
20041 for ac_last_try in false false :; do
20042 ac_tt=`sed -n "/$ac_delim/p
" confdefs.h`
20043 if test -z "$ac_tt"; then
20045 elif $ac_last_try; then
20046 as_fn_error $? "could not
make $CONFIG_HEADERS" "$LINENO" 5
20048 ac_delim="$ac_delim!$ac_delim _
$ac_delim!! "
20052 # For the awk script, D is an array of macro values keyed by name,
20053 # likewise P contains macro parameters if any. Preserve backslash
20054 # newline sequences.
20056 ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
20058 s/.\{148\}/&'"$ac_delim"'/g
20061 s/^[ ]*#[ ]*define[ ][ ]*/ /
20068 s
/^ \
('"$ac_word_re"'\
)\
(([^
()]*)\
)[ ]*\
(.
*\
)/P
["\1"]="\2"\
20070 s
/^ \
('"$ac_word_re"'\
)[ ]*\
(.
*\
)/D
["\1"]=" \2"/p
20074 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\
1"]="\
2"\
20075 D["\
1"]=" \
3\\\\\\n
"\\/p
20077 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\
1"]=" \
2\\\\\\n
"\\/p
20082 s/.\{148\}/&'"$ac_delim"'/g
20087 s/["\\]/\\&/g
; s
/^
/"/; s/$/"/p
20090 s
/["\\]/\\&/g; s/^/"/; s
/$
/\\\\\\n
"\\/p
20092 ' <confdefs.h | sed '
20093 s/'"$ac_delim"'/"\\\
20094 "/g' >>$CONFIG_STATUS || ac_write_fail=1
20096 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
20097 for (key in D) D_is_set[key] = 1
20100 /^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
20102 split(line, arg, " ")
20103 if (arg[1] == "#") {
20107 defundef
= substr
(arg
[1], 2)
20110 split(mac1
, mac2
, "(") #)
20112 prefix
= substr
(line
, 1, index
(line
, defundef
) - 1)
20113 if (D_is_set
[macro
]) {
20114 # Preserve the white space surrounding the "#".
20115 print prefix
"define", macro P
[macro
] D
[macro
]
20118 # Replace #undef with comments. This is necessary, for example,
20119 # in the case of _POSIX_SOURCE, which is predefined and required
20120 # on some systems where configure will not decide to define it.
20121 if (defundef
== "undef") {
20122 print
"/*", prefix defundef
, macro
, "*/"
20130 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail
=1
20131 as_fn_error $?
"could not setup config headers machinery" "$LINENO" 5
20132 fi # test -n "$CONFIG_HEADERS"
20135 eval set X
" :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS"
20140 :[FHLC
]) ac_mode
=$ac_tag; continue;;
20142 case $ac_mode$ac_tag in
20144 :L
* |
:C
*:*) as_fn_error $?
"invalid tag \`$ac_tag'" "$LINENO" 5;;
20145 :[FH
]-) ac_tag
=-:-;;
20146 :[FH
]*) ac_tag
=$ac_tag:$ac_tag.
in;;
20163 -) ac_f
="$ac_tmp/stdin";;
20164 *) # Look for the file first in the build tree, then in the source tree
20165 # (if the path is not absolute). The absolute path cannot be DOS-style,
20166 # because $ac_f cannot contain `:'.
20170 *) test -f "$srcdir/$ac_f" && ac_f
="$srcdir/$ac_f";;
20172 as_fn_error
1 "cannot find input file: \`$ac_f'" "$LINENO" 5;;
20174 case $ac_f in *\'*) ac_f
=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
20175 as_fn_append ac_file_inputs
" '$ac_f'"
20178 # Let's still pretend it is `configure' which instantiates (i.e., don't
20179 # use $as_me), people would be surprised to read:
20180 # /* config.h. Generated by config.status. */
20181 configure_input
='Generated from '`
20182 $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
20184 if test x
"$ac_file" != x-
; then
20185 configure_input
="$ac_file. $configure_input"
20186 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
20187 $as_echo "$as_me: creating $ac_file" >&6;}
20189 # Neutralize special characters interpreted by sed in replacement strings.
20190 case $configure_input in #(
20191 *\
&* |
*\|
* |
*\\* )
20192 ac_sed_conf_input
=`$as_echo "$configure_input" |
20193 sed 's/[\\\\&|]/\\\\&/g'`;; #(
20194 *) ac_sed_conf_input
=$configure_input;;
20198 *:-:* |
*:-) cat >"$ac_tmp/stdin" \
20199 || as_fn_error $?
"could not create $ac_file" "$LINENO" 5 ;;
20204 ac_dir
=`$as_dirname -- "$ac_file" ||
20205 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
20206 X"$ac_file" : 'X\(//\)[^/]' \| \
20207 X"$ac_file" : 'X\(//\)$' \| \
20208 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
20209 $as_echo X"$ac_file" |
20210 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
20214 /^X\(\/\/\)[^/].*/{
20227 as_dir
="$ac_dir"; as_fn_mkdir_p
20231 .
) ac_dir_suffix
= ac_top_builddir_sub
=. ac_top_build_prefix
= ;;
20233 ac_dir_suffix
=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
20234 # A ".." for each directory in $ac_dir_suffix.
20235 ac_top_builddir_sub
=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
20236 case $ac_top_builddir_sub in
20237 "") ac_top_builddir_sub
=. ac_top_build_prefix
= ;;
20238 *) ac_top_build_prefix
=$ac_top_builddir_sub/ ;;
20241 ac_abs_top_builddir
=$ac_pwd
20242 ac_abs_builddir
=$ac_pwd$ac_dir_suffix
20243 # for backward compatibility:
20244 ac_top_builddir
=$ac_top_build_prefix
20247 .
) # We are building in place.
20249 ac_top_srcdir
=$ac_top_builddir_sub
20250 ac_abs_top_srcdir
=$ac_pwd ;;
20251 [\\/]* | ?
:[\\/]* ) # Absolute name.
20252 ac_srcdir
=$srcdir$ac_dir_suffix;
20253 ac_top_srcdir
=$srcdir
20254 ac_abs_top_srcdir
=$srcdir ;;
20255 *) # Relative name.
20256 ac_srcdir
=$ac_top_build_prefix$srcdir$ac_dir_suffix
20257 ac_top_srcdir
=$ac_top_build_prefix$srcdir
20258 ac_abs_top_srcdir
=$ac_pwd/$srcdir ;;
20260 ac_abs_srcdir
=$ac_abs_top_srcdir$ac_dir_suffix
20270 [\\/$
]* | ?
:[\\/]* ) ac_INSTALL
=$INSTALL ;;
20271 *) ac_INSTALL
=$ac_top_build_prefix$INSTALL ;;
20273 ac_MKDIR_P
=$MKDIR_P
20275 [\\/$
]* | ?
:[\\/]* ) ;;
20276 */*) ac_MKDIR_P
=$ac_top_build_prefix$MKDIR_P ;;
20280 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail
=1
20281 # If the template does not know about datarootdir, expand it.
20282 # FIXME: This hack should be removed a few years after 2.60.
20283 ac_datarootdir_hack
=; ac_datarootdir_seen
=
20294 case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
20295 *datarootdir
*) ac_datarootdir_seen
=yes;;
20296 *@datadir@
*|
*@docdir@
*|
*@infodir@
*|
*@localedir@
*|
*@mandir@
*)
20297 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
20298 $as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
20300 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
20301 ac_datarootdir_hack='
20302 s&@datadir@&$datadir&g
20303 s&@docdir@&$docdir&g
20304 s&@infodir@&$infodir&g
20305 s&@localedir@&$localedir&g
20306 s&@mandir@&$mandir&g
20307 s&\\\${datarootdir}&$datarootdir&g' ;;
20311 # Neutralize VPATH when `$srcdir' = `.'.
20312 # Shell code in configure.ac might set extrasub.
20313 # FIXME: do we really want to maintain this feature?
20314 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
20315 ac_sed_extra="$ac_vpsub
20318 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail
=1
20320 /@
[a-zA-Z_
][a-zA-Z_0-9
]*@
/!b
20321 s|@configure_input@|
$ac_sed_conf_input|
;t t
20322 s
&@top_builddir@
&$ac_top_builddir_sub&;t t
20323 s
&@top_build_prefix@
&$ac_top_build_prefix&;t t
20324 s
&@srcdir@
&$ac_srcdir&;t t
20325 s
&@abs_srcdir@
&$ac_abs_srcdir&;t t
20326 s
&@top_srcdir@
&$ac_top_srcdir&;t t
20327 s
&@abs_top_srcdir@
&$ac_abs_top_srcdir&;t t
20328 s
&@builddir@
&$ac_builddir&;t t
20329 s
&@abs_builddir@
&$ac_abs_builddir&;t t
20330 s
&@abs_top_builddir@
&$ac_abs_top_builddir&;t t
20331 s
&@INSTALL@
&$ac_INSTALL&;t t
20332 s
&@MKDIR_P@
&$ac_MKDIR_P&;t t
20333 $ac_datarootdir_hack
20335 eval sed \"\$ac_sed_extra\" "$ac_file_inputs" |
20336 if $ac_cs_awk_getline; then
20337 $AWK -f "$ac_tmp/subs.
awk"
20339 $AWK -f "$ac_tmp/subs.
awk" | $SHELL
20341 >$ac_tmp/out || as_fn_error $? "could not create
$ac_file" "$LINENO" 5
20343 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
20344 { ac_out=`sed -n '/\${datarootdir}/p' "$ac_tmp/out
"`; test -n "$ac_out"; } &&
20345 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' \
20346 "$ac_tmp/out
"`; test -z "$ac_out"; } &&
20347 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING
: $ac_file contains a reference to the variable \
`datarootdir'
20348 which seems to be undefined. Please make sure it is defined" >&5
20349 $as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir
'
20350 which seems to be undefined. Please make sure it is defined" >&2;}
20352 rm -f "$ac_tmp/stdin"
20354 -) cat "$ac_tmp/out" && rm -f "$ac_tmp/out";;
20355 *) rm -f "$ac_file" && mv "$ac_tmp/out" "$ac_file";;
20357 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
20363 if test x"$ac_file" != x-; then
20365 $as_echo "/* $configure_input */" \
20366 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs"
20367 } >"$ac_tmp/config.h" \
20368 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
20369 if diff "$ac_file" "$ac_tmp/config.h" >/dev/null 2>&1; then
20370 { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5
20371 $as_echo "$as_me: $ac_file is unchanged" >&6;}
20374 mv "$ac_tmp/config.h" "$ac_file" \
20375 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
20378 $as_echo "/* $configure_input */" \
20379 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" \
20380 || as_fn_error $? "could not create -" "$LINENO" 5
20382 # Compute "$ac_file"'s index
in $config_headers.
20385 for _am_header
in $config_headers :; do
20386 case $_am_header in
20387 $_am_arg |
$_am_arg:* )
20390 _am_stamp_count
=`expr $_am_stamp_count + 1` ;;
20393 echo "timestamp for $_am_arg" >`$as_dirname -- "$_am_arg" ||
20394 $as_expr X"$_am_arg" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
20395 X"$_am_arg" : 'X\(//\)[^/]' \| \
20396 X"$_am_arg" : 'X\(//\)$' \| \
20397 X"$_am_arg" : 'X\(/\)' \| . 2>/dev/null ||
20398 $as_echo X"$_am_arg" |
20399 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
20403 /^X\(\/\/\)[^/].*/{
20415 s/.*/./; q'`/stamp-h
$_am_stamp_count
20418 :C
) { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5
20419 $as_echo "$as_me: executing $ac_file commands" >&6;}
20424 case $ac_file$ac_mode in
20425 "depfiles":C
) test x
"$AMDEP_TRUE" != x
"" ||
{
20426 # Autoconf 2.62 quotes --file arguments for eval, but not when files
20427 # are listed without --file. Let's play safe and only enable the eval
20428 # if we detect the quoting.
20429 case $CONFIG_FILES in
20430 *\'*) eval set x
"$CONFIG_FILES" ;;
20431 *) set x
$CONFIG_FILES ;;
20436 # Strip MF so we end up with the name of the file.
20437 mf
=`echo "$mf" | sed -e 's/:.*$//'`
20438 # Check whether this is an Automake generated Makefile or not.
20439 # We used to match only the files named `Makefile.in', but
20440 # some people rename them; so instead we look at the file content.
20441 # Grep'ing the first line is not enough: some people post-process
20442 # each Makefile.in and add a new line on top of each file to say so.
20443 # Grep'ing the whole file is not good either: AIX grep has a line
20444 # limit of 2048, but all sed's we know have understand at least 4000.
20445 if sed -n 's,^#.*generated by automake.*,X,p' "$mf" |
grep X
>/dev
/null
2>&1; then
20446 dirpart
=`$as_dirname -- "$mf" ||
20447 $as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
20448 X"$mf" : 'X\(//\)[^/]' \| \
20449 X"$mf" : 'X\(//\)$' \| \
20450 X"$mf" : 'X\(/\)' \| . 2>/dev/null ||
20452 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
20456 /^X\(\/\/\)[^/].*/{
20472 # Extract the definition of DEPDIR, am__include, and am__quote
20473 # from the Makefile without running `make'.
20474 DEPDIR
=`sed -n 's/^DEPDIR = //p' < "$mf"`
20475 test -z "$DEPDIR" && continue
20476 am__include
=`sed -n 's/^am__include = //p' < "$mf"`
20477 test -z "am__include" && continue
20478 am__quote
=`sed -n 's/^am__quote = //p' < "$mf"`
20479 # When using ansi2knr, U may be empty or an underscore; expand it
20480 U
=`sed -n 's/^U = //p' < "$mf"`
20481 # Find all dependency output files, they are included files with
20482 # $(DEPDIR) in their names. We invoke sed twice because it is the
20483 # simplest approach to changing $(DEPDIR) to its actual value in the
20485 for file in `sed -n "
20486 s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \
20487 sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g' -e 's/\$U/'"$U"'/g'`; do
20488 # Make sure the directory exists.
20489 test -f "$dirpart/$file" && continue
20490 fdir
=`$as_dirname -- "$file" ||
20491 $as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
20492 X"$file" : 'X\(//\)[^/]' \| \
20493 X"$file" : 'X\(//\)$' \| \
20494 X"$file" : 'X\(/\)' \| . 2>/dev/null ||
20495 $as_echo X"$file" |
20496 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
20500 /^X\(\/\/\)[^/].*/{
20513 as_dir
=$dirpart/$fdir; as_fn_mkdir_p
20514 # echo "creating $dirpart/$file"
20515 echo '# dummy' > "$dirpart/$file"
20522 ### Make the necessary directories, if they don't exist.
20523 for dir
in etc lisp
; do
20524 test -d ${dir} || mkdir
${dir}
20527 echo creating src
/epaths.h
20528 ${MAKE-make} epaths-force
20530 if test ! -f src
/.gdbinit
&& test -f $srcdir/src
/.gdbinit
; then
20531 echo creating src
/.gdbinit
20532 echo source $srcdir/src
/.gdbinit
> src
/.gdbinit
20543 ac_clean_files
=$ac_clean_files_save
20545 test $ac_write_fail = 0 ||
20546 as_fn_error $?
"write failure creating $CONFIG_STATUS" "$LINENO" 5
20549 # configure is writing to config.log, and then calls config.status.
20550 # config.status does its own redirection, appending to config.log.
20551 # Unfortunately, on DOS this fails, as config.log is still kept open
20552 # by configure, so config.status won't be able to write to it; its
20553 # output is simply discarded. So we exec the FD to /dev/null,
20554 # effectively closing config.log, so it can be properly (re)opened and
20555 # appended to by config.status. When coming back to configure, we
20556 # need to make the FD available again.
20557 if test "$no_create" != yes; then
20559 ac_config_status_args
=
20560 test "$silent" = yes &&
20561 ac_config_status_args
="$ac_config_status_args --quiet"
20563 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success
=false
20565 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
20566 # would make configure fail if this is the last instruction.
20567 $ac_cs_success || as_fn_exit
1
20569 if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no
; then
20570 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
20571 $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}