2 # Guess values for system-dependent variables and create Makefiles.
3 # Generated by GNU Autoconf 2.67 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.
93 *[\\/]* ) as_myself=$0 ;;
94 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
98 test -z "$as_dir" && as_dir=.
99 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
105 # We did not find ourselves, most probably we were run as `sh COMMAND'
106 # in which case we are not to be found in the path.
107 if test "x$as_myself" = x
; then
110 if test ! -f "$as_myself"; then
111 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
115 # Unset variables that we do not need and which cause bugs (e.g. in
116 # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
117 # suppresses any "Segmentation fault" message there. '((' could
118 # trigger a bug in pdksh 5.2.14.
119 for as_var
in BASH_ENV ENV MAIL MAILPATH
120 do eval test x\
${$as_var+set} = xset \
121 && ( (unset $as_var) ||
exit 1) >/dev
/null
2>&1 && unset $as_var ||
:
134 (unset CDPATH
) >/dev
/null
2>&1 && unset CDPATH
136 if test "x$CONFIG_SHELL" = x
; then
137 as_bourne_compatible
="if test -n \"\${ZSH_VERSION+set}\" && (emulate sh) >/dev/null 2>&1; then :
140 # Pre-4.2 versions of Zsh do word splitting on \${1+\"\$@\"}, which
141 # is contrary to our usage. Disable this feature.
142 alias -g '\${1+\"\$@\"}'='\"\$@\"'
145 case \`(set -o) 2>/dev/null\` in #(
153 as_required
="as_fn_return () { (exit \$1); }
154 as_fn_success () { as_fn_return 0; }
155 as_fn_failure () { as_fn_return 1; }
156 as_fn_ret_success () { return 0; }
157 as_fn_ret_failure () { return 1; }
160 as_fn_success || { exitcode=1; echo as_fn_success failed.; }
161 as_fn_failure && { exitcode=1; echo as_fn_failure succeeded.; }
162 as_fn_ret_success || { exitcode=1; echo as_fn_ret_success failed.; }
163 as_fn_ret_failure && { exitcode=1; echo as_fn_ret_failure succeeded.; }
164 if ( set x; as_fn_ret_success y && test x = \"\$1\" ); then :
167 exitcode=1; echo positional parameters were not saved.
169 test x\$exitcode = x0 || exit 1"
170 as_suggested
=" as_lineno_1=";as_suggested
=$as_suggested$LINENO;as_suggested
=$as_suggested" as_lineno_1a=\$LINENO
171 as_lineno_2=";as_suggested
=$as_suggested$LINENO;as_suggested
=$as_suggested" as_lineno_2a=\$LINENO
172 eval 'test \"x\$as_lineno_1'\$as_run'\" != \"x\$as_lineno_2'\$as_run'\" &&
173 test \"x\`expr \$as_lineno_1'\$as_run' + 1\`\" = \"x\$as_lineno_2'\$as_run'\"' || exit 1
174 test \$(( 1 + 1 )) = 2 || exit 1"
175 if (eval "$as_required") 2>/dev
/null
; then :
180 if test x
$as_have_required = xyes
&& (eval "$as_suggested") 2>/dev
/null
; then :
183 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
185 for as_dir
in /bin
$PATH_SEPARATOR/usr
/bin
$PATH_SEPARATOR$PATH
188 test -z "$as_dir" && as_dir
=.
192 for as_base
in sh bash ksh sh5
; do
193 # Try only shells that exist, to save several forks.
194 as_shell
=$as_dir/$as_base
195 if { test -f "$as_shell" ||
test -f "$as_shell.exe"; } &&
196 { $as_echo "$as_bourne_compatible""$as_required" | as_run
=a
"$as_shell"; } 2>/dev
/null
; then :
197 CONFIG_SHELL
=$as_shell as_have_required
=yes
198 if { $as_echo "$as_bourne_compatible""$as_suggested" | as_run
=a
"$as_shell"; } 2>/dev
/null
; then :
206 $as_found ||
{ if { test -f "$SHELL" ||
test -f "$SHELL.exe"; } &&
207 { $as_echo "$as_bourne_compatible""$as_required" | as_run
=a
"$SHELL"; } 2>/dev
/null
; then :
208 CONFIG_SHELL
=$SHELL as_have_required
=yes
213 if test "x$CONFIG_SHELL" != x
; then :
214 # We cannot yet assume a decent shell, so we have to provide a
215 # neutralization value for shells without unset; and this also
216 # works around shells that cannot unset nonexistent variables.
219 (unset BASH_ENV
) >/dev
/null
2>&1 && unset BASH_ENV ENV
221 exec "$CONFIG_SHELL" "$as_myself" ${1+"$@"}
224 if test x
$as_have_required = xno
; then :
225 $as_echo "$0: This script requires a shell more modern than all"
226 $as_echo "$0: the shells that I found on your system."
227 if test x
${ZSH_VERSION+set} = xset
; then
228 $as_echo "$0: In particular, zsh $ZSH_VERSION has bugs and should"
229 $as_echo "$0: be upgraded to zsh 4.3.4 or later."
231 $as_echo "$0: Please tell bug-autoconf@gnu.org about your system,
232 $0: including any error possibly output before this
233 $0: message. Then install a modern shell, or manually run
234 $0: the script under such a shell if you do have one."
240 SHELL
=${CONFIG_SHELL-/bin/sh}
242 # Unset more variables known to interfere with behavior of common tools.
243 CLICOLOR_FORCE
= GREP_OPTIONS
=
244 unset CLICOLOR_FORCE GREP_OPTIONS
246 ## --------------------- ##
247 ## M4sh Shell Functions. ##
248 ## --------------------- ##
251 # Portably unset VAR.
254 { eval $1=; unset $1;}
258 # as_fn_set_status STATUS
259 # -----------------------
260 # Set $? to STATUS, without forking.
268 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
278 # Create "$as_dir" as a directory, including parents if necessary.
283 -*) as_dir
=.
/$as_dir;;
285 test -d "$as_dir" ||
eval $as_mkdir_p ||
{
289 *\'*) as_qdir
=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
292 as_dirs
="'$as_qdir' $as_dirs"
293 as_dir
=`$as_dirname -- "$as_dir" ||
294 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
295 X"$as_dir" : 'X\(//\)[^/]' \| \
296 X"$as_dir" : 'X\(//\)$' \| \
297 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
298 $as_echo X"$as_dir" |
299 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
316 test -d "$as_dir" && break
318 test -z "$as_dirs" ||
eval "mkdir $as_dirs"
319 } ||
test -d "$as_dir" || as_fn_error $?
"cannot create directory $as_dir"
323 # as_fn_append VAR VALUE
324 # ----------------------
325 # Append the text in VALUE to the end of the definition contained in VAR. Take
326 # advantage of any shell optimizations that allow amortized linear growth over
327 # repeated appends, instead of the typical quadratic growth present in naive
329 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev
/null
; then :
330 eval 'as_fn_append ()
343 # Perform arithmetic evaluation on the ARGs, and store the result in the
344 # global $as_val. Take advantage of shells that can avoid forks. The arguments
345 # must be portable across $(()) and expr.
346 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev
/null
; then :
354 as_val
=`expr "$@" || test $? -eq 1`
359 # as_fn_error STATUS ERROR [LINENO LOG_FD]
360 # ----------------------------------------
361 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
362 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
363 # script with STATUS, using 1 if that was 0.
366 as_status
=$1; test $as_status -eq 0 && as_status
=1
368 as_lineno
=${as_lineno-"$3"} as_lineno_stack
=as_lineno_stack
=$as_lineno_stack
369 $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
371 $as_echo "$as_me: error: $2" >&2
372 as_fn_exit
$as_status
375 if expr a
: '\(a\)' >/dev
/null
2>&1 &&
376 test "X`expr 00001 : '.*\(...\)'`" = X001
; then
382 if (basename -- /) >/dev
/null
2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
388 if (as_dir
=`dirname -- /` && test "X$as_dir" = X
/) >/dev
/null
2>&1; then
394 as_me
=`$as_basename -- "$0" ||
395 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
396 X"$0" : 'X\(//\)$' \| \
397 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
399 sed '/^.*\/\([^/][^/]*\)\/*$/{
413 # Avoid depending upon Character Ranges.
414 as_cr_letters
='abcdefghijklmnopqrstuvwxyz'
415 as_cr_LETTERS
='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
416 as_cr_Letters
=$as_cr_letters$as_cr_LETTERS
417 as_cr_digits
='0123456789'
418 as_cr_alnum
=$as_cr_Letters$as_cr_digits
421 as_lineno_1
=$LINENO as_lineno_1a
=$LINENO
422 as_lineno_2
=$LINENO as_lineno_2a
=$LINENO
423 eval 'test "x$as_lineno_1'$as_run'" != "x$as_lineno_2'$as_run'" &&
424 test "x`expr $as_lineno_1'$as_run' + 1`" = "x$as_lineno_2'$as_run'"' ||
{
425 # Blame Lee E. McMahon (1931-1989) for sed's syntax. :-)
437 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
441 chmod +x
"$as_me.lineno" ||
442 { $as_echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2; as_fn_exit
1; }
444 # Don't try to exec as it changes $[0], causing all sort of problems
445 # (the dirname of $[0] is not the place where we might find the
446 # original and so on. Autoconf is especially sensitive to this).
448 # Exit status is that of the last command.
452 ECHO_C
= ECHO_N
= ECHO_T
=
453 case `echo -n x` in #(((((
455 case `echo 'xy\c'` in
456 *c
*) ECHO_T
=' ';; # ECHO_T is single tab character.
458 *) echo `echo ksh88 bug on AIX 6.1` > /dev
/null
465 rm -f conf$$ conf$$.exe conf$$.
file
466 if test -d conf$$.dir
; then
467 rm -f conf$$.dir
/conf$$.
file
470 mkdir conf$$.dir
2>/dev
/null
472 if (echo >conf$$.
file) 2>/dev
/null
; then
473 if ln -s conf$$.
file conf$$
2>/dev
/null
; then
475 # ... but there are two gotchas:
476 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
477 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
478 # In both cases, we have to default to `cp -p'.
479 ln -s conf$$.
file conf$$.dir
2>/dev
/null
&& test ! -f conf$$.exe ||
481 elif ln conf$$.
file conf$$
2>/dev
/null
; then
489 rm -f conf$$ conf$$.exe conf$$.dir
/conf$$.
file conf$$.
file
490 rmdir conf$$.dir
2>/dev
/null
492 if mkdir
-p .
2>/dev
/null
; then
493 as_mkdir_p
='mkdir -p "$as_dir"'
495 test -d .
/-p && rmdir .
/-p
499 if test -x / >/dev
/null
2>&1; then
502 if ls -dL / >/dev
/null
2>&1; then
509 if test -d "$1"; then
515 case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in #((
516 ???[sx]*):;;*)false;;esac;fi
520 as_executable_p
=$as_test_x
522 # Sed expression to map a string onto a valid CPP name.
523 as_tr_cpp
="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
525 # Sed expression to map a string onto a valid variable name.
526 as_tr_sh
="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
529 test -n "$DJDIR" ||
exec 7<&0 </dev
/null
533 # hostname on some systems (SVR3.2, old GNU/Linux) returns a bogus exit status,
534 # so uname gets run too.
535 ac_hostname
=`(hostname || uname -n) 2>/dev/null | sed 1q`
540 ac_default_prefix
=/usr
/local
542 ac_config_libobj_dir
=.
549 # Identity of this package.
551 PACKAGE_TARNAME
='emacs'
552 PACKAGE_VERSION
='24.0.50'
553 PACKAGE_STRING
='emacs 24.0.50'
557 ac_unique_file
="src/lisp.h"
558 # Factoring default headers for most tests.
559 ac_includes_default
="\
561 #ifdef HAVE_SYS_TYPES_H
562 # include <sys/types.h>
564 #ifdef HAVE_SYS_STAT_H
565 # include <sys/stat.h>
571 # ifdef HAVE_STDLIB_H
576 # if !defined STDC_HEADERS && defined HAVE_MEMORY_H
581 #ifdef HAVE_STRINGS_H
582 # include <strings.h>
584 #ifdef HAVE_INTTYPES_H
585 # include <inttypes.h>
595 gl_getopt_required
=POSIX
596 gl_getopt_required
=POSIX
598 ac_subst_vars
='gltests_LTLIBOBJS
611 LD_SWITCH_SYSTEM_TEMACS
644 x_default_search_path
665 NEXT_AS_FIRST_DIRECTIVE_UNISTD_H
667 PTHREAD_H_DEFINES_STRUCT_TIMESPEC
668 SYS_TIME_H_DEFINES_STRUCT_TIMESPEC
669 TIME_H_DEFINES_STRUCT_TIMESPEC
670 NEXT_AS_FIRST_DIRECTIVE_TIME_H
672 NEXT_AS_FIRST_DIRECTIVE_SYS_STAT_H
674 NEXT_AS_FIRST_DIRECTIVE_STDLIB_H
684 HAVE_SIGNED_SIG_ATOMIC_T
687 BITSIZEOF_SIG_ATOMIC_T
693 NEXT_AS_FIRST_DIRECTIVE_STDINT_H
698 HAVE_UNSIGNED_LONG_LONG_INT
700 NEXT_AS_FIRST_DIRECTIVE_STDDEF_H
707 APPLE_UNIVERSAL_BUILD
715 HAVE_DECL_LOCALTIME_R
757 NEXT_AS_FIRST_DIRECTIVE_GETOPT_H
761 INCLUDE_NEXT_AS_FIRST_DIRECTIVE
763 UNISTD_H_HAVE_WINSOCK2_H_AND_USE_SOCKETS
764 UNISTD_H_HAVE_WINSOCK2_H
783 REPLACE_GETDOMAINNAME
793 HAVE_DECL_GETUSERSHELL
794 HAVE_DECL_GETPAGESIZE
796 HAVE_DECL_GETDOMAINNAME
831 GNULIB_UNISTD_H_SIGPIPE
832 GNULIB_UNISTD_H_GETOPT
879 REPLACE_CANONICALIZE_FILE_NAME
884 HAVE_STRUCT_RANDOM_DATA
903 HAVE_CANONICALIZE_FILE_NAME
930 GNULIB_CANONICALIZE_FILE_NAME
934 GL_COND_LIBTOOL_FALSE
984 LD_SWITCH_X_SITE_AUX_RPATH
1046 INSTALL_STRIP_PROGRAM
1088 program_transform_name
1099 ac_subst_files
='deps_frag
1102 enable_option_checking
1124 with_toolkit_scroll_bars
1135 with_pkg_config_prog
1139 enable_ns_self_contained
1141 enable_maintainer_mode
1142 enable_locallisppath
1144 enable_use_lisp_union_type
1147 enable_dependency_tracking
1151 ac_precious_vars
='build_alias
1163 # Initialize some variables set by options.
1165 ac_init_version
=false
1166 ac_unrecognized_opts
=
1167 ac_unrecognized_sep
=
1168 # The variables have the same names as the options, with
1169 # dashes changed to underlines.
1170 cache_file
=/dev
/null
1177 program_transform_name
=s
,x
,x
,
1185 # Installation directory options.
1186 # These are left unexpanded so users can "make install exec_prefix=/foo"
1187 # and all the variables that are supposed to be based on exec_prefix
1188 # by default will actually change.
1189 # Use braces instead of parens because sh, perl, etc. also accept them.
1190 # (The list follows the same order as the GNU Coding Standards.)
1191 bindir
='${exec_prefix}/bin'
1192 sbindir
='${exec_prefix}/sbin'
1193 libexecdir
='${exec_prefix}/libexec'
1194 datarootdir
='${prefix}/share'
1195 datadir
='${datarootdir}'
1196 sysconfdir
='${prefix}/etc'
1197 sharedstatedir
='${prefix}/com'
1198 localstatedir
='${prefix}/var'
1199 includedir
='${prefix}/include'
1200 oldincludedir
='/usr/include'
1201 docdir
='${datarootdir}/doc/${PACKAGE_TARNAME}'
1202 infodir
='${datarootdir}/info'
1207 libdir
='${exec_prefix}/lib'
1208 localedir
='${datarootdir}/locale'
1209 mandir
='${datarootdir}/man'
1215 # If the previous option needs an argument, assign it.
1216 if test -n "$ac_prev"; then
1217 eval $ac_prev=\
$ac_option
1223 *=?
*) ac_optarg
=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
1228 # Accept the important Cygnus configure options, so we can diagnose typos.
1230 case $ac_dashdash$ac_option in
1234 -bindir |
--bindir |
--bindi |
--bind |
--bin |
--bi)
1236 -bindir=* |
--bindir=* |
--bindi=* |
--bind=* |
--bin=* |
--bi=*)
1237 bindir
=$ac_optarg ;;
1239 -build |
--build |
--buil |
--bui |
--bu)
1240 ac_prev
=build_alias
;;
1241 -build=* |
--build=* |
--buil=* |
--bui=* |
--bu=*)
1242 build_alias
=$ac_optarg ;;
1244 -cache-file |
--cache-file |
--cache-fil |
--cache-fi \
1245 |
--cache-f |
--cache- |
--cache |
--cach |
--cac |
--ca |
--c)
1246 ac_prev
=cache_file
;;
1247 -cache-file=* |
--cache-file=* |
--cache-fil=* |
--cache-fi=* \
1248 |
--cache-f=* |
--cache-=* |
--cache=* |
--cach=* |
--cac=* |
--ca=* |
--c=*)
1249 cache_file
=$ac_optarg ;;
1251 --config-cache |
-C)
1252 cache_file
=config.cache
;;
1254 -datadir |
--datadir |
--datadi |
--datad)
1256 -datadir=* |
--datadir=* |
--datadi=* |
--datad=*)
1257 datadir
=$ac_optarg ;;
1259 -datarootdir |
--datarootdir |
--datarootdi |
--datarootd |
--dataroot \
1260 |
--dataroo |
--dataro |
--datar)
1261 ac_prev
=datarootdir
;;
1262 -datarootdir=* |
--datarootdir=* |
--datarootdi=* |
--datarootd=* \
1263 |
--dataroot=* |
--dataroo=* |
--dataro=* |
--datar=*)
1264 datarootdir
=$ac_optarg ;;
1266 -disable-* |
--disable-*)
1267 ac_useropt
=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
1268 # Reject names that are not valid shell variable names.
1269 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev
/null
&&
1270 as_fn_error $?
"invalid feature name: $ac_useropt"
1271 ac_useropt_orig
=$ac_useropt
1272 ac_useropt
=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1273 case $ac_user_opts in
1275 "enable_
$ac_useropt"
1277 *) ac_unrecognized_opts
="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
1278 ac_unrecognized_sep
=', ';;
1280 eval enable_
$ac_useropt=no
;;
1282 -docdir |
--docdir |
--docdi |
--doc |
--do)
1284 -docdir=* |
--docdir=* |
--docdi=* |
--doc=* |
--do=*)
1285 docdir
=$ac_optarg ;;
1287 -dvidir |
--dvidir |
--dvidi |
--dvid |
--dvi |
--dv)
1289 -dvidir=* |
--dvidir=* |
--dvidi=* |
--dvid=* |
--dvi=* |
--dv=*)
1290 dvidir
=$ac_optarg ;;
1292 -enable-* |
--enable-*)
1293 ac_useropt
=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
1294 # Reject names that are not valid shell variable names.
1295 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev
/null
&&
1296 as_fn_error $?
"invalid feature name: $ac_useropt"
1297 ac_useropt_orig
=$ac_useropt
1298 ac_useropt
=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1299 case $ac_user_opts in
1301 "enable_
$ac_useropt"
1303 *) ac_unrecognized_opts
="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
1304 ac_unrecognized_sep
=', ';;
1306 eval enable_
$ac_useropt=\
$ac_optarg ;;
1308 -exec-prefix |
--exec_prefix |
--exec-prefix |
--exec-prefi \
1309 |
--exec-pref |
--exec-pre |
--exec-pr |
--exec-p |
--exec- \
1310 |
--exec |
--exe |
--ex)
1311 ac_prev
=exec_prefix
;;
1312 -exec-prefix=* |
--exec_prefix=* |
--exec-prefix=* |
--exec-prefi=* \
1313 |
--exec-pref=* |
--exec-pre=* |
--exec-pr=* |
--exec-p=* |
--exec-=* \
1314 |
--exec=* |
--exe=* |
--ex=*)
1315 exec_prefix
=$ac_optarg ;;
1317 -gas |
--gas |
--ga |
--g)
1318 # Obsolete; use --with-gas.
1321 -help |
--help |
--hel |
--he |
-h)
1322 ac_init_help
=long
;;
1323 -help=r
* |
--help=r
* |
--hel=r
* |
--he=r
* |
-hr*)
1324 ac_init_help
=recursive
;;
1325 -help=s
* |
--help=s
* |
--hel=s
* |
--he=s
* |
-hs*)
1326 ac_init_help
=short
;;
1328 -host |
--host |
--hos |
--ho)
1329 ac_prev
=host_alias
;;
1330 -host=* |
--host=* |
--hos=* |
--ho=*)
1331 host_alias
=$ac_optarg ;;
1333 -htmldir |
--htmldir |
--htmldi |
--htmld |
--html |
--htm |
--ht)
1335 -htmldir=* |
--htmldir=* |
--htmldi=* |
--htmld=* |
--html=* |
--htm=* \
1337 htmldir
=$ac_optarg ;;
1339 -includedir |
--includedir |
--includedi |
--included |
--include \
1340 |
--includ |
--inclu |
--incl |
--inc)
1341 ac_prev
=includedir
;;
1342 -includedir=* |
--includedir=* |
--includedi=* |
--included=* |
--include=* \
1343 |
--includ=* |
--inclu=* |
--incl=* |
--inc=*)
1344 includedir
=$ac_optarg ;;
1346 -infodir |
--infodir |
--infodi |
--infod |
--info |
--inf)
1348 -infodir=* |
--infodir=* |
--infodi=* |
--infod=* |
--info=* |
--inf=*)
1349 infodir
=$ac_optarg ;;
1351 -libdir |
--libdir |
--libdi |
--libd)
1353 -libdir=* |
--libdir=* |
--libdi=* |
--libd=*)
1354 libdir
=$ac_optarg ;;
1356 -libexecdir |
--libexecdir |
--libexecdi |
--libexecd |
--libexec \
1357 |
--libexe |
--libex |
--libe)
1358 ac_prev
=libexecdir
;;
1359 -libexecdir=* |
--libexecdir=* |
--libexecdi=* |
--libexecd=* |
--libexec=* \
1360 |
--libexe=* |
--libex=* |
--libe=*)
1361 libexecdir
=$ac_optarg ;;
1363 -localedir |
--localedir |
--localedi |
--localed |
--locale)
1364 ac_prev
=localedir
;;
1365 -localedir=* |
--localedir=* |
--localedi=* |
--localed=* |
--locale=*)
1366 localedir
=$ac_optarg ;;
1368 -localstatedir |
--localstatedir |
--localstatedi |
--localstated \
1369 |
--localstate |
--localstat |
--localsta |
--localst |
--locals)
1370 ac_prev
=localstatedir
;;
1371 -localstatedir=* |
--localstatedir=* |
--localstatedi=* |
--localstated=* \
1372 |
--localstate=* |
--localstat=* |
--localsta=* |
--localst=* |
--locals=*)
1373 localstatedir
=$ac_optarg ;;
1375 -mandir |
--mandir |
--mandi |
--mand |
--man |
--ma |
--m)
1377 -mandir=* |
--mandir=* |
--mandi=* |
--mand=* |
--man=* |
--ma=* |
--m=*)
1378 mandir
=$ac_optarg ;;
1380 -nfp |
--nfp |
--nf)
1381 # Obsolete; use --without-fp.
1384 -no-create |
--no-create |
--no-creat |
--no-crea |
--no-cre \
1385 |
--no-cr |
--no-c |
-n)
1388 -no-recursion |
--no-recursion |
--no-recursio |
--no-recursi \
1389 |
--no-recurs |
--no-recur |
--no-recu |
--no-rec |
--no-re |
--no-r)
1392 -oldincludedir |
--oldincludedir |
--oldincludedi |
--oldincluded \
1393 |
--oldinclude |
--oldinclud |
--oldinclu |
--oldincl |
--oldinc \
1394 |
--oldin |
--oldi |
--old |
--ol |
--o)
1395 ac_prev
=oldincludedir
;;
1396 -oldincludedir=* |
--oldincludedir=* |
--oldincludedi=* |
--oldincluded=* \
1397 |
--oldinclude=* |
--oldinclud=* |
--oldinclu=* |
--oldincl=* |
--oldinc=* \
1398 |
--oldin=* |
--oldi=* |
--old=* |
--ol=* |
--o=*)
1399 oldincludedir
=$ac_optarg ;;
1401 -prefix |
--prefix |
--prefi |
--pref |
--pre |
--pr |
--p)
1403 -prefix=* |
--prefix=* |
--prefi=* |
--pref=* |
--pre=* |
--pr=* |
--p=*)
1404 prefix
=$ac_optarg ;;
1406 -program-prefix |
--program-prefix |
--program-prefi |
--program-pref \
1407 |
--program-pre |
--program-pr |
--program-p)
1408 ac_prev
=program_prefix
;;
1409 -program-prefix=* |
--program-prefix=* |
--program-prefi=* \
1410 |
--program-pref=* |
--program-pre=* |
--program-pr=* |
--program-p=*)
1411 program_prefix
=$ac_optarg ;;
1413 -program-suffix |
--program-suffix |
--program-suffi |
--program-suff \
1414 |
--program-suf |
--program-su |
--program-s)
1415 ac_prev
=program_suffix
;;
1416 -program-suffix=* |
--program-suffix=* |
--program-suffi=* \
1417 |
--program-suff=* |
--program-suf=* |
--program-su=* |
--program-s=*)
1418 program_suffix
=$ac_optarg ;;
1420 -program-transform-name |
--program-transform-name \
1421 |
--program-transform-nam |
--program-transform-na \
1422 |
--program-transform-n |
--program-transform- \
1423 |
--program-transform |
--program-transfor \
1424 |
--program-transfo |
--program-transf \
1425 |
--program-trans |
--program-tran \
1426 |
--progr-tra |
--program-tr |
--program-t)
1427 ac_prev
=program_transform_name
;;
1428 -program-transform-name=* |
--program-transform-name=* \
1429 |
--program-transform-nam=* |
--program-transform-na=* \
1430 |
--program-transform-n=* |
--program-transform-=* \
1431 |
--program-transform=* |
--program-transfor=* \
1432 |
--program-transfo=* |
--program-transf=* \
1433 |
--program-trans=* |
--program-tran=* \
1434 |
--progr-tra=* |
--program-tr=* |
--program-t=*)
1435 program_transform_name
=$ac_optarg ;;
1437 -pdfdir |
--pdfdir |
--pdfdi |
--pdfd |
--pdf |
--pd)
1439 -pdfdir=* |
--pdfdir=* |
--pdfdi=* |
--pdfd=* |
--pdf=* |
--pd=*)
1440 pdfdir
=$ac_optarg ;;
1442 -psdir |
--psdir |
--psdi |
--psd |
--ps)
1444 -psdir=* |
--psdir=* |
--psdi=* |
--psd=* |
--ps=*)
1447 -q |
-quiet |
--quiet |
--quie |
--qui |
--qu |
--q \
1448 |
-silent |
--silent |
--silen |
--sile |
--sil)
1451 -sbindir |
--sbindir |
--sbindi |
--sbind |
--sbin |
--sbi |
--sb)
1453 -sbindir=* |
--sbindir=* |
--sbindi=* |
--sbind=* |
--sbin=* \
1455 sbindir
=$ac_optarg ;;
1457 -sharedstatedir |
--sharedstatedir |
--sharedstatedi \
1458 |
--sharedstated |
--sharedstate |
--sharedstat |
--sharedsta \
1459 |
--sharedst |
--shareds |
--shared |
--share |
--shar \
1461 ac_prev
=sharedstatedir
;;
1462 -sharedstatedir=* |
--sharedstatedir=* |
--sharedstatedi=* \
1463 |
--sharedstated=* |
--sharedstate=* |
--sharedstat=* |
--sharedsta=* \
1464 |
--sharedst=* |
--shareds=* |
--shared=* |
--share=* |
--shar=* \
1466 sharedstatedir
=$ac_optarg ;;
1468 -site |
--site |
--sit)
1470 -site=* |
--site=* |
--sit=*)
1473 -srcdir |
--srcdir |
--srcdi |
--srcd |
--src |
--sr)
1475 -srcdir=* |
--srcdir=* |
--srcdi=* |
--srcd=* |
--src=* |
--sr=*)
1476 srcdir
=$ac_optarg ;;
1478 -sysconfdir |
--sysconfdir |
--sysconfdi |
--sysconfd |
--sysconf \
1479 |
--syscon |
--sysco |
--sysc |
--sys |
--sy)
1480 ac_prev
=sysconfdir
;;
1481 -sysconfdir=* |
--sysconfdir=* |
--sysconfdi=* |
--sysconfd=* |
--sysconf=* \
1482 |
--syscon=* |
--sysco=* |
--sysc=* |
--sys=* |
--sy=*)
1483 sysconfdir
=$ac_optarg ;;
1485 -target |
--target |
--targe |
--targ |
--tar |
--ta |
--t)
1486 ac_prev
=target_alias
;;
1487 -target=* |
--target=* |
--targe=* |
--targ=* |
--tar=* |
--ta=* |
--t=*)
1488 target_alias
=$ac_optarg ;;
1490 -v |
-verbose |
--verbose |
--verbos |
--verbo |
--verb)
1493 -version |
--version |
--versio |
--versi |
--vers |
-V)
1494 ac_init_version
=: ;;
1497 ac_useropt
=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1498 # Reject names that are not valid shell variable names.
1499 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev
/null
&&
1500 as_fn_error $?
"invalid package name: $ac_useropt"
1501 ac_useropt_orig
=$ac_useropt
1502 ac_useropt
=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1503 case $ac_user_opts in
1507 *) ac_unrecognized_opts
="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1508 ac_unrecognized_sep
=', ';;
1510 eval with_
$ac_useropt=\
$ac_optarg ;;
1512 -without-* |
--without-*)
1513 ac_useropt
=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1514 # Reject names that are not valid shell variable names.
1515 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev
/null
&&
1516 as_fn_error $?
"invalid package name: $ac_useropt"
1517 ac_useropt_orig
=$ac_useropt
1518 ac_useropt
=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1519 case $ac_user_opts in
1523 *) ac_unrecognized_opts
="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1524 ac_unrecognized_sep
=', ';;
1526 eval with_
$ac_useropt=no
;;
1529 # Obsolete; use --with-x.
1532 -x-includes |
--x-includes |
--x-include |
--x-includ |
--x-inclu \
1533 |
--x-incl |
--x-inc |
--x-in |
--x-i)
1534 ac_prev
=x_includes
;;
1535 -x-includes=* |
--x-includes=* |
--x-include=* |
--x-includ=* |
--x-inclu=* \
1536 |
--x-incl=* |
--x-inc=* |
--x-in=* |
--x-i=*)
1537 x_includes
=$ac_optarg ;;
1539 -x-libraries |
--x-libraries |
--x-librarie |
--x-librari \
1540 |
--x-librar |
--x-libra |
--x-libr |
--x-lib |
--x-li |
--x-l)
1541 ac_prev
=x_libraries
;;
1542 -x-libraries=* |
--x-libraries=* |
--x-librarie=* |
--x-librari=* \
1543 |
--x-librar=* |
--x-libra=* |
--x-libr=* |
--x-lib=* |
--x-li=* |
--x-l=*)
1544 x_libraries
=$ac_optarg ;;
1546 -*) as_fn_error $?
"unrecognized option: \`$ac_option'
1547 Try \`$0 --help' for more information"
1551 ac_envvar
=`expr "x$ac_option" : 'x\([^=]*\)='`
1552 # Reject names that are not valid shell variable names.
1553 case $ac_envvar in #(
1554 '' |
[0-9]* |
*[!_
$as_cr_alnum]* )
1555 as_fn_error $?
"invalid variable name: \`$ac_envvar'" ;;
1557 eval $ac_envvar=\
$ac_optarg
1558 export $ac_envvar ;;
1561 # FIXME: should be removed in autoconf 3.0.
1562 $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1563 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev
/null
&&
1564 $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1565 : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
1571 if test -n "$ac_prev"; then
1572 ac_option
=--`echo $ac_prev | sed 's/_/-/g'`
1573 as_fn_error $?
"missing argument to $ac_option"
1576 if test -n "$ac_unrecognized_opts"; then
1577 case $enable_option_checking in
1579 fatal
) as_fn_error $?
"unrecognized options: $ac_unrecognized_opts" ;;
1580 *) $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
1584 # Check all directory arguments for consistency.
1585 for ac_var
in exec_prefix prefix bindir sbindir libexecdir datarootdir \
1586 datadir sysconfdir sharedstatedir localstatedir includedir \
1587 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1588 libdir localedir mandir
1590 eval ac_val
=\$
$ac_var
1591 # Remove trailing slashes.
1594 ac_val
=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1595 eval $ac_var=\
$ac_val;;
1597 # Be sure to have absolute directory names.
1599 [\\/$
]* | ?
:[\\/]* ) continue;;
1600 NONE |
'' ) case $ac_var in *prefix
) continue;; esac;;
1602 as_fn_error $?
"expected an absolute directory name for --$ac_var: $ac_val"
1605 # There might be people who depend on the old broken behavior: `$host'
1606 # used to hold the argument of --host etc.
1607 # FIXME: To remove some day.
1610 target
=$target_alias
1612 # FIXME: To remove some day.
1613 if test "x$host_alias" != x
; then
1614 if test "x$build_alias" = x
; then
1615 cross_compiling
=maybe
1616 $as_echo "$as_me: WARNING: if you wanted to set the --build type, don't use --host.
1617 If a cross compiler is detected then cross compile mode will be used" >&2
1618 elif test "x$build_alias" != "x$host_alias"; then
1624 test -n "$host_alias" && ac_tool_prefix
=$host_alias-
1626 test "$silent" = yes && exec 6>/dev
/null
1629 ac_pwd
=`pwd` && test -n "$ac_pwd" &&
1630 ac_ls_di
=`ls -di .` &&
1631 ac_pwd_ls_di
=`cd "$ac_pwd" && ls -di .` ||
1632 as_fn_error $?
"working directory cannot be determined"
1633 test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1634 as_fn_error $?
"pwd does not report name of working directory"
1637 # Find the source files, if location was not specified.
1638 if test -z "$srcdir"; then
1639 ac_srcdir_defaulted
=yes
1640 # Try the directory containing this script, then the parent directory.
1641 ac_confdir
=`$as_dirname -- "$as_myself" ||
1642 $as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1643 X"$as_myself" : 'X\(//\)[^/]' \| \
1644 X"$as_myself" : 'X\(//\)$' \| \
1645 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1646 $as_echo X"$as_myself" |
1647 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1665 if test ! -r "$srcdir/$ac_unique_file"; then
1669 ac_srcdir_defaulted
=no
1671 if test ! -r "$srcdir/$ac_unique_file"; then
1672 test "$ac_srcdir_defaulted" = yes && srcdir
="$ac_confdir or .."
1673 as_fn_error $?
"cannot find sources ($ac_unique_file) in $srcdir"
1675 ac_msg
="sources are in $srcdir, but \`cd $srcdir' does not work"
1677 cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg"
1679 # When building in place, set srcdir=.
1680 if test "$ac_abs_confdir" = "$ac_pwd"; then
1683 # Remove unnecessary trailing slashes from srcdir.
1684 # Double slashes in file names in object file debugging info
1685 # mess up M-x gdb in Emacs.
1687 */) srcdir
=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1689 for ac_var
in $ac_precious_vars; do
1690 eval ac_env_
${ac_var}_set=\${${ac_var}+set}
1691 eval ac_env_
${ac_var}_value
=\$
${ac_var}
1692 eval ac_cv_env_
${ac_var}_set=\${${ac_var}+set}
1693 eval ac_cv_env_
${ac_var}_value
=\$
${ac_var}
1697 # Report the --help message.
1699 if test "$ac_init_help" = "long"; then
1700 # Omit some internal or obsolete options to make the list less imposing.
1701 # This message is too long to be a string in the A/UX 3.1 sh.
1703 \`configure' configures emacs 24.0.50 to adapt to many kinds of systems.
1705 Usage: $0 [OPTION]... [VAR=VALUE]...
1707 To assign environment variables (e.g., CC, CFLAGS...), specify them as
1708 VAR=VALUE. See below for descriptions of some of the useful variables.
1710 Defaults for the options are specified in brackets.
1713 -h, --help display this help and exit
1714 --help=short display options specific to this package
1715 --help=recursive display the short help of all the included packages
1716 -V, --version display version information and exit
1717 -q, --quiet, --silent do not print \`checking ...' messages
1718 --cache-file=FILE cache test results in FILE [disabled]
1719 -C, --config-cache alias for \`--cache-file=config.cache'
1720 -n, --no-create do not create output files
1721 --srcdir=DIR find the sources in DIR [configure dir or \`..']
1723 Installation directories:
1724 --prefix=PREFIX install architecture-independent files in PREFIX
1725 [$ac_default_prefix]
1726 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
1729 By default, \`make install' will install all the files in
1730 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
1731 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1732 for instance \`--prefix=\$HOME'.
1734 For better control, use the options below.
1736 Fine tuning of the installation directories:
1737 --bindir=DIR user executables [EPREFIX/bin]
1738 --sbindir=DIR system admin executables [EPREFIX/sbin]
1739 --libexecdir=DIR program executables [EPREFIX/libexec]
1740 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
1741 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
1742 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
1743 --libdir=DIR object code libraries [EPREFIX/lib]
1744 --includedir=DIR C header files [PREFIX/include]
1745 --oldincludedir=DIR C header files for non-gcc [/usr/include]
1746 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
1747 --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
1748 --infodir=DIR info documentation [DATAROOTDIR/info]
1749 --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
1750 --mandir=DIR man documentation [DATAROOTDIR/man]
1751 --docdir=DIR documentation root [DATAROOTDIR/doc/emacs]
1752 --htmldir=DIR html documentation [DOCDIR]
1753 --dvidir=DIR dvi documentation [DOCDIR]
1754 --pdfdir=DIR pdf documentation [DOCDIR]
1755 --psdir=DIR ps documentation [DOCDIR]
1761 --program-prefix=PREFIX prepend PREFIX to installed program names
1762 --program-suffix=SUFFIX append SUFFIX to installed program names
1763 --program-transform-name=PROGRAM run
sed PROGRAM on installed program names
1766 --x-includes=DIR X include files are
in DIR
1767 --x-libraries=DIR X library files are
in DIR
1770 --build=BUILD configure
for building on BUILD
[guessed
]
1771 --host=HOST cross-compile to build programs to run on HOST
[BUILD
]
1775 if test -n "$ac_init_help"; then
1776 case $ac_init_help in
1777 short | recursive
) echo "Configuration of emacs 24.0.50:";;
1782 --disable-option-checking ignore unrecognized
--enable/--with options
1783 --disable-FEATURE do not include FEATURE
(same as
--enable-FEATURE=no
)
1784 --enable-FEATURE[=ARG
] include FEATURE
[ARG
=yes]
1785 --disable-ns-self-contained
1786 disable self contained build under NeXTstep
1787 --enable-asserts compile code with asserts enabled
1788 --enable-maintainer-mode
1789 enable make rules and dependencies not useful
(and
1790 sometimes confusing
) to the casual installer
1791 --enable-locallisppath=PATH
1792 directories Emacs should search
for lisp files
1793 specific to this site
1794 --enable-checking[=LIST
]
1795 enable expensive run-time checks. With LIST
, enable
1796 only specific categories of checks. Categories are
:
1797 all
,yes,no. Flags are
: stringbytes
, stringoverrun
,
1798 stringfreelist
, xmallocoverrun
, conslist
1799 --enable-use-lisp-union-type
1800 use a union
for the Lisp_Object data
type. This is
1801 only useful
for development
for catching certain
1803 --enable-profiling build emacs with profiling support. This might not
1804 work on all platforms
1805 --enable-autodepend automatically generate dependencies to .h-files.
1806 Requires GNU Make and Gcc. Enabled
if GNU Make and
1808 --disable-dependency-tracking speeds up one-time build
1809 --enable-dependency-tracking do not reject slow dependency extractors
1810 --disable-largefile omit support
for large files
1813 --with-PACKAGE[=ARG
] use PACKAGE
[ARG
=yes]
1814 --without-PACKAGE do not use PACKAGE
(same as
--with-PACKAGE=no
)
1815 --without-pop don
't support POP mail retrieval with movemail
1816 --with-kerberos support Kerberos-authenticated POP
1817 --with-kerberos5 support Kerberos version 5 authenticated POP
1818 --with-hesiod support Hesiod to get the POP server host
1819 --with-mmdf support MMDF mailboxes
1820 --with-mail-unlink unlink, rather than empty, mail spool after reading
1821 --with-mailhost=HOSTNAME
1822 string giving default POP mail host
1823 --without-sound don't compile with sound support
1824 --without-sync-input process async input synchronously
1825 --with-x-toolkit=KIT use an X toolkit
(KIT one of
: yes or gtk
, gtk3
,
1826 lucid or athena
, motif
, no
)
1827 --without-xpm don
't compile with XPM image support
1828 --without-jpeg don't compile with JPEG image support
1829 --without-tiff don
't compile with TIFF image support
1830 --without-gif don't compile with GIF image support
1831 --without-png don
't compile with PNG image support
1832 --without-rsvg don't compile with SVG image support
1833 --without-xml2 don
't compile with XML parsing support
1834 --without-imagemagick don't compile with ImageMagick image support
1835 --without-xft don
't use XFT for anti aliased fonts
1836 --without-libotf don't use libotf
for OpenType font support
1837 --without-m17n-flt don
't use m17n-flt for text shaping
1838 --without-toolkit-scroll-bars
1839 don't use Motif or Xaw3d scroll bars
1840 --without-xaw3d don
't use Xaw3d
1841 --without-xim don't use X11 XIM
1842 --with-ns use NeXTstep
(Cocoa or GNUstep
) windowing system
1843 --without-gpm don
't use -lgpm for mouse support on a GNU/Linux
1845 --without-dbus don't compile with D-Bus support
1846 --without-gconf don
't compile with GConf support
1847 --without-selinux don't compile with SELinux support
1848 --without-gnutls don
't use -lgnutls for SSL/TLS support
1849 --without-makeinfo don't require makeinfo
for building manuals
1850 --without-compress-info don
't compress the installed Info pages
1851 --with-pkg-config-prog=PATH
1852 path to pkg-config for finding GTK and librsvg
1853 --with-crt-dir=DIR directory containing crtn.o etc. The default is
1854 /usr/lib, or /usr/lib64 on some platforms.
1855 --with-gameuser=USER user for shared game score files
1856 --with-gnustep-conf=PATH
1857 path to GNUstep.conf; default $GNUSTEP_CONFIG_FILE,
1858 or /etc/GNUstep/GNUstep.conf
1859 --with-x use the X Window System
1861 Some influential environment variables:
1862 CC C compiler command
1863 CFLAGS C compiler flags
1864 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
1865 nonstandard directory <lib dir>
1866 LIBS libraries to pass to the linker, e.g. -l<library>
1867 CPPFLAGS (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if
1868 you have headers in a nonstandard directory <include dir>
1870 XMKMF Path to xmkmf, Makefile generator for X Window System
1872 Use these variables to override the choices made by `configure' or to
help
1873 it to
find libraries and programs with nonstandard names
/locations.
1875 Report bugs to the package provider.
1880 if test "$ac_init_help" = "recursive"; then
1881 # If there are subdirs, report their specific --help.
1882 for ac_dir
in : $ac_subdirs_all; do test "x$ac_dir" = x
: && continue
1883 test -d "$ac_dir" ||
1884 { cd "$srcdir" && ac_pwd
=`pwd` && srcdir
=.
&& test -d "$ac_dir"; } ||
1889 .
) ac_dir_suffix
= ac_top_builddir_sub
=. ac_top_build_prefix
= ;;
1891 ac_dir_suffix
=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
1892 # A ".." for each directory in $ac_dir_suffix.
1893 ac_top_builddir_sub
=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
1894 case $ac_top_builddir_sub in
1895 "") ac_top_builddir_sub
=. ac_top_build_prefix
= ;;
1896 *) ac_top_build_prefix
=$ac_top_builddir_sub/ ;;
1899 ac_abs_top_builddir
=$ac_pwd
1900 ac_abs_builddir
=$ac_pwd$ac_dir_suffix
1901 # for backward compatibility:
1902 ac_top_builddir
=$ac_top_build_prefix
1905 .
) # We are building in place.
1907 ac_top_srcdir
=$ac_top_builddir_sub
1908 ac_abs_top_srcdir
=$ac_pwd ;;
1909 [\\/]* | ?
:[\\/]* ) # Absolute name.
1910 ac_srcdir
=$srcdir$ac_dir_suffix;
1911 ac_top_srcdir
=$srcdir
1912 ac_abs_top_srcdir
=$srcdir ;;
1914 ac_srcdir
=$ac_top_build_prefix$srcdir$ac_dir_suffix
1915 ac_top_srcdir
=$ac_top_build_prefix$srcdir
1916 ac_abs_top_srcdir
=$ac_pwd/$srcdir ;;
1918 ac_abs_srcdir
=$ac_abs_top_srcdir$ac_dir_suffix
1920 cd "$ac_dir" ||
{ ac_status
=$?
; continue; }
1921 # Check for guested configure.
1922 if test -f "$ac_srcdir/configure.gnu"; then
1924 $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1925 elif test -f "$ac_srcdir/configure"; then
1927 $SHELL "$ac_srcdir/configure" --help=recursive
1929 $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1931 cd "$ac_pwd" ||
{ ac_status
=$?
; break; }
1935 test -n "$ac_init_help" && exit $ac_status
1936 if $ac_init_version; then
1938 emacs configure
24.0.50
1939 generated by GNU Autoconf
2.67
1941 Copyright
(C
) 2010 Free Software Foundation
, Inc.
1942 This configure
script is free software
; the Free Software Foundation
1943 gives unlimited permission to copy
, distribute and modify it.
1948 ## ------------------------ ##
1949 ## Autoconf initialization. ##
1950 ## ------------------------ ##
1952 # ac_fn_c_try_compile LINENO
1953 # --------------------------
1954 # Try to compile conftest.$ac_ext, and return whether this succeeded.
1955 ac_fn_c_try_compile
()
1957 as_lineno
=${as_lineno-"$1"} as_lineno_stack
=as_lineno_stack
=$as_lineno_stack
1958 rm -f conftest.
$ac_objext
1959 if { { ac_try
="$ac_compile"
1961 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
1962 *) ac_try_echo=$ac_try;;
1964 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1965 $as_echo "$ac_try_echo"; } >&5
1966 (eval "$ac_compile") 2>conftest.err
1968 if test -s conftest.err; then
1969 grep -v '^ *+' conftest.err >conftest.er1
1970 cat conftest.er1 >&5
1971 mv -f conftest.er1 conftest.err
1973 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1974 test $ac_status = 0; } && {
1975 test -z "$ac_c_werror_flag" ||
1976 test ! -s conftest.err
1977 } && test -s conftest.$ac_objext; then :
1980 $as_echo "$as_me: failed program was:" >&5
1981 sed 's/^/| /' conftest.$ac_ext >&5
1985 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1986 as_fn_set_status $ac_retval
1988 } # ac_fn_c_try_compile
1990 # ac_fn_c_try_cpp LINENO
1991 # ----------------------
1992 # Try to preprocess conftest.$ac_ext, and return whether this succeeded.
1995 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1996 if { { ac_try="$ac_cpp conftest.$ac_ext"
1998 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
1999 *) ac_try_echo
=$ac_try;;
2001 eval ac_try_echo
="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2002 $as_echo "$ac_try_echo"; } >&5
2003 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
2005 if test -s conftest.err
; then
2006 grep -v '^ *+' conftest.err
>conftest.er1
2007 cat conftest.er1
>&5
2008 mv -f conftest.er1 conftest.err
2010 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2011 test $ac_status = 0; } > conftest.i
&& {
2012 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
2013 test ! -s conftest.err
2017 $as_echo "$as_me: failed program was:" >&5
2018 sed 's/^/| /' conftest.
$ac_ext >&5
2022 eval $as_lineno_stack; test "x$as_lineno_stack" = x
&& { as_lineno
=; unset as_lineno
;}
2023 as_fn_set_status
$ac_retval
2027 # ac_fn_c_check_header_mongrel LINENO HEADER VAR INCLUDES
2028 # -------------------------------------------------------
2029 # Tests whether HEADER exists, giving a warning if it cannot be compiled using
2030 # the include files in INCLUDES and setting the cache variable VAR
2032 ac_fn_c_check_header_mongrel
()
2034 as_lineno
=${as_lineno-"$1"} as_lineno_stack
=as_lineno_stack
=$as_lineno_stack
2035 if eval "test \"\${$3+set}\"" = set; then :
2036 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2037 $as_echo_n "checking for $2... " >&6; }
2038 if eval "test \"\${$3+set}\"" = set; then :
2039 $as_echo_n "(cached) " >&6
2042 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2043 $as_echo "$ac_res" >&6; }
2045 # Is the header compilable?
2046 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5
2047 $as_echo_n "checking $2 usability... " >&6; }
2048 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
2049 /* end confdefs.h. */
2053 if ac_fn_c_try_compile
"$LINENO"; then :
2054 ac_header_compiler
=yes
2056 ac_header_compiler
=no
2058 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
2059 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5
2060 $as_echo "$ac_header_compiler" >&6; }
2062 # Is the header present?
2063 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5
2064 $as_echo_n "checking $2 presence... " >&6; }
2065 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
2066 /* end confdefs.h. */
2069 if ac_fn_c_try_cpp
"$LINENO"; then :
2070 ac_header_preproc
=yes
2072 ac_header_preproc
=no
2074 rm -f conftest.err conftest.i conftest.
$ac_ext
2075 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5
2076 $as_echo "$ac_header_preproc" >&6; }
2078 # So? What about this header?
2079 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in #((
2081 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5
2082 $as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;}
2083 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
2084 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
2087 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5
2088 $as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;}
2089 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: check for missing prerequisite headers?" >&5
2090 $as_echo "$as_me: WARNING: $2: check for missing prerequisite headers?" >&2;}
2091 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5
2092 $as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;}
2093 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&5
2094 $as_echo "$as_me: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&2;}
2095 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
2096 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
2099 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2100 $as_echo_n "checking for $2... " >&6; }
2101 if eval "test \"\${$3+set}\"" = set; then :
2102 $as_echo_n "(cached) " >&6
2104 eval "$3=\$ac_header_compiler"
2107 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2108 $as_echo "$ac_res" >&6; }
2110 eval $as_lineno_stack; test "x$as_lineno_stack" = x
&& { as_lineno
=; unset as_lineno
;}
2112 } # ac_fn_c_check_header_mongrel
2114 # ac_fn_c_try_run LINENO
2115 # ----------------------
2116 # Try to link conftest.$ac_ext, and return whether this succeeded. Assumes
2117 # that executables *can* be run.
2120 as_lineno
=${as_lineno-"$1"} as_lineno_stack
=as_lineno_stack
=$as_lineno_stack
2121 if { { ac_try
="$ac_link"
2123 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
2124 *) ac_try_echo=$ac_try;;
2126 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2127 $as_echo "$ac_try_echo"; } >&5
2128 (eval "$ac_link") 2>&5
2130 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2131 test $ac_status = 0; } && { ac_try='./conftest$ac_exeext'
2132 { { case "(($ac_try" in
2133 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
2134 *) ac_try_echo
=$ac_try;;
2136 eval ac_try_echo
="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2137 $as_echo "$ac_try_echo"; } >&5
2138 (eval "$ac_try") 2>&5
2140 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2141 test $ac_status = 0; }; }; then :
2144 $as_echo "$as_me: program exited with status $ac_status" >&5
2145 $as_echo "$as_me: failed program was:" >&5
2146 sed 's/^/| /' conftest.
$ac_ext >&5
2148 ac_retval
=$ac_status
2150 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
2151 eval $as_lineno_stack; test "x$as_lineno_stack" = x
&& { as_lineno
=; unset as_lineno
;}
2152 as_fn_set_status
$ac_retval
2156 # ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES
2157 # -------------------------------------------------------
2158 # Tests whether HEADER exists and can be compiled using the include files in
2159 # INCLUDES, setting the cache variable VAR accordingly.
2160 ac_fn_c_check_header_compile
()
2162 as_lineno
=${as_lineno-"$1"} as_lineno_stack
=as_lineno_stack
=$as_lineno_stack
2163 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2164 $as_echo_n "checking for $2... " >&6; }
2165 if eval "test \"\${$3+set}\"" = set; then :
2166 $as_echo_n "(cached) " >&6
2168 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
2169 /* end confdefs.h. */
2173 if ac_fn_c_try_compile
"$LINENO"; then :
2178 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
2181 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2182 $as_echo "$ac_res" >&6; }
2183 eval $as_lineno_stack; test "x$as_lineno_stack" = x
&& { as_lineno
=; unset as_lineno
;}
2185 } # ac_fn_c_check_header_compile
2187 # ac_fn_c_try_link LINENO
2188 # -----------------------
2189 # Try to link conftest.$ac_ext, and return whether this succeeded.
2192 as_lineno
=${as_lineno-"$1"} as_lineno_stack
=as_lineno_stack
=$as_lineno_stack
2193 rm -f conftest.
$ac_objext conftest
$ac_exeext
2194 if { { ac_try
="$ac_link"
2196 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
2197 *) ac_try_echo=$ac_try;;
2199 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2200 $as_echo "$ac_try_echo"; } >&5
2201 (eval "$ac_link") 2>conftest.err
2203 if test -s conftest.err; then
2204 grep -v '^ *+' conftest.err >conftest.er1
2205 cat conftest.er1 >&5
2206 mv -f conftest.er1 conftest.err
2208 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2209 test $ac_status = 0; } && {
2210 test -z "$ac_c_werror_flag" ||
2211 test ! -s conftest.err
2212 } && test -s conftest$ac_exeext && {
2213 test "$cross_compiling" = yes ||
2214 $as_test_x conftest$ac_exeext
2218 $as_echo "$as_me: failed program was:" >&5
2219 sed 's/^/| /' conftest.$ac_ext >&5
2223 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
2224 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
2225 # interfere with the next link command; also delete a directory that is
2226 # left behind by Apple's compiler. We do this before executing the actions.
2227 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
2228 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2229 as_fn_set_status $ac_retval
2231 } # ac_fn_c_try_link
2233 # ac_fn_c_check_decl LINENO SYMBOL VAR INCLUDES
2234 # ---------------------------------------------
2235 # Tests whether SYMBOL is declared in INCLUDES, setting cache variable VAR
2237 ac_fn_c_check_decl ()
2239 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2240 as_decl_name=`echo $2|
sed 's/ *(.*//'`
2241 as_decl_use=`echo $2|
sed -e 's/(/((/' -e 's/)/) 0&/' -e 's/,/) 0& (/g'`
2242 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $as_decl_name is declared" >&5
2243 $as_echo_n "checking whether $as_decl_name is declared... " >&6; }
2244 if eval "test \"\${$3+set}\"" = set; then :
2245 $as_echo_n "(cached) " >&6
2247 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2248 /* end confdefs.h. */
2253 #ifndef $as_decl_name
2255 (void) $as_decl_use;
2257 (void) $as_decl_name;
2265 if ac_fn_c_try_compile "$LINENO"; then :
2270 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2273 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2274 $as_echo "$ac_res" >&6; }
2275 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2277 } # ac_fn_c_check_decl
2279 # ac_fn_c_check_header_preproc LINENO HEADER VAR
2280 # ----------------------------------------------
2281 # Tests whether HEADER is present, setting the cache variable VAR accordingly.
2282 ac_fn_c_check_header_preproc ()
2284 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2285 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2286 $as_echo_n "checking for $2... " >&6; }
2287 if eval "test \"\${$3+set}\"" = set; then :
2288 $as_echo_n "(cached) " >&6
2290 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2291 /* end confdefs.h. */
2294 if ac_fn_c_try_cpp "$LINENO"; then :
2299 rm -f conftest.err conftest.i conftest.$ac_ext
2302 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2303 $as_echo "$ac_res" >&6; }
2304 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2306 } # ac_fn_c_check_header_preproc
2308 # ac_fn_c_check_member LINENO AGGR MEMBER VAR INCLUDES
2309 # ----------------------------------------------------
2310 # Tries to find if the field MEMBER exists in type AGGR, after including
2311 # INCLUDES, setting cache variable VAR accordingly.
2312 ac_fn_c_check_member ()
2314 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2315 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2.$3" >&5
2316 $as_echo_n "checking for $2.$3... " >&6; }
2317 if eval "test \"\${$4+set}\"" = set; then :
2318 $as_echo_n "(cached) " >&6
2320 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2321 /* end confdefs.h. */
2333 if ac_fn_c_try_compile "$LINENO"; then :
2336 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2337 /* end confdefs.h. */
2343 if (sizeof ac_aggr.$3)
2349 if ac_fn_c_try_compile "$LINENO"; then :
2354 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2356 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2359 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2360 $as_echo "$ac_res" >&6; }
2361 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2363 } # ac_fn_c_check_member
2365 # ac_fn_c_check_func LINENO FUNC VAR
2366 # ----------------------------------
2367 # Tests whether FUNC exists, setting the cache variable VAR accordingly
2368 ac_fn_c_check_func ()
2370 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2371 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2372 $as_echo_n "checking for $2... " >&6; }
2373 if eval "test \"\${$3+set}\"" = set; then :
2374 $as_echo_n "(cached) " >&6
2376 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2377 /* end confdefs.h. */
2378 /* Define $2 to an innocuous variant, in case <limits.h> declares $2.
2379 For example, HP-UX 11i <limits.h> declares gettimeofday. */
2380 #define $2 innocuous_$2
2382 /* System header to define __stub macros and hopefully few prototypes,
2383 which can conflict with char $2 (); below.
2384 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
2385 <limits.h> exists even on freestanding compilers. */
2388 # include <limits.h>
2390 # include <assert.h>
2395 /* Override any GCC internal prototype to avoid an error.
2396 Use char because int might match the return type of a GCC
2397 builtin and then its argument prototype would still apply. */
2402 /* The GNU C library defines this for functions which it implements
2403 to always fail with ENOSYS. Some functions are actually named
2404 something starting with __ and the normal name is an alias. */
2405 #if defined __stub_$2 || defined __stub___$2
2417 if ac_fn_c_try_link "$LINENO"; then :
2422 rm -f core conftest.err conftest.$ac_objext \
2423 conftest$ac_exeext conftest.$ac_ext
2426 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2427 $as_echo "$ac_res" >&6; }
2428 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2430 } # ac_fn_c_check_func
2432 # ac_fn_c_check_type LINENO TYPE VAR INCLUDES
2433 # -------------------------------------------
2434 # Tests whether TYPE exists after having included INCLUDES, setting cache
2435 # variable VAR accordingly.
2436 ac_fn_c_check_type ()
2438 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2439 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2440 $as_echo_n "checking for $2... " >&6; }
2441 if eval "test \"\${$3+set}\"" = set; then :
2442 $as_echo_n "(cached) " >&6
2445 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2446 /* end confdefs.h. */
2457 if ac_fn_c_try_compile "$LINENO"; then :
2458 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2459 /* end confdefs.h. */
2470 if ac_fn_c_try_compile "$LINENO"; then :
2475 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2477 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2480 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2481 $as_echo "$ac_res" >&6; }
2482 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2484 } # ac_fn_c_check_type
2486 # ac_fn_c_compute_int LINENO EXPR VAR INCLUDES
2487 # --------------------------------------------
2488 # Tries to find the compile-time value of EXPR in a program that includes
2489 # INCLUDES, setting VAR accordingly. Returns whether the value could be
2491 ac_fn_c_compute_int ()
2493 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2494 if test "$cross_compiling" = yes; then
2495 # Depending upon the size, compute the lo and hi bounds.
2496 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2497 /* end confdefs.h. */
2502 static int test_array [1 - 2 * !(($2) >= 0)];
2509 if ac_fn_c_try_compile "$LINENO"; then :
2512 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2513 /* end confdefs.h. */
2518 static int test_array [1 - 2 * !(($2) <= $ac_mid)];
2525 if ac_fn_c_try_compile "$LINENO"; then :
2526 ac_hi=$ac_mid; break
2528 as_fn_arith $ac_mid + 1 && ac_lo=$as_val
2529 if test $ac_lo -le $ac_mid; then
2533 as_fn_arith 2 '*' $ac_mid + 1 && ac_mid=$as_val
2535 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2538 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2539 /* end confdefs.h. */
2544 static int test_array [1 - 2 * !(($2) < 0)];
2551 if ac_fn_c_try_compile "$LINENO"; then :
2554 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2555 /* end confdefs.h. */
2560 static int test_array [1 - 2 * !(($2) >= $ac_mid)];
2567 if ac_fn_c_try_compile "$LINENO"; then :
2568 ac_lo=$ac_mid; break
2570 as_fn_arith '(' $ac_mid ')' - 1 && ac_hi=$as_val
2571 if test $ac_mid -le $ac_hi; then
2575 as_fn_arith 2 '*' $ac_mid && ac_mid=$as_val
2577 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2582 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2584 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2585 # Binary search between lo and hi bounds.
2586 while test "x$ac_lo" != "x$ac_hi"; do
2587 as_fn_arith '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo && ac_mid=$as_val
2588 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2589 /* end confdefs.h. */
2594 static int test_array [1 - 2 * !(($2) <= $ac_mid)];
2601 if ac_fn_c_try_compile "$LINENO"; then :
2604 as_fn_arith '(' $ac_mid ')' + 1 && ac_lo=$as_val
2606 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2609 ?*) eval "$3=\$ac_lo"; ac_retval=0 ;;
2613 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2614 /* end confdefs.h. */
2616 static long int longval () { return $2; }
2617 static unsigned long int ulongval () { return $2; }
2624 FILE *f = fopen ("conftest.val", "w");
2629 long int i = longval ();
2632 fprintf (f, "%ld", i);
2636 unsigned long int i = ulongval ();
2639 fprintf (f, "%lu", i);
2641 /* Do not output a trailing newline, as this causes \r\n confusion
2642 on some platforms. */
2643 return ferror (f) || fclose (f) != 0;
2649 if ac_fn_c_try_run "$LINENO"; then :
2650 echo >>conftest.val; read $3 <conftest.val; ac_retval=0
2654 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
2655 conftest.$ac_objext conftest.beam conftest.$ac_ext
2659 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2660 as_fn_set_status $ac_retval
2662 } # ac_fn_c_compute_int
2663 cat >config.log <<_ACEOF
2664 This file contains any messages produced by compilers while
2665 running configure, to aid debugging if configure makes a mistake.
2667 It was created by emacs $as_me 24.0.50, which was
2668 generated by GNU Autoconf 2.67. Invocation command line was
2680 hostname = `(hostname || uname
-n) 2>/dev
/null |
sed 1q
`
2681 uname -m = `(uname
-m) 2>/dev
/null ||
echo unknown
`
2682 uname -r = `(uname
-r) 2>/dev
/null ||
echo unknown
`
2683 uname -s = `(uname
-s) 2>/dev
/null ||
echo unknown
`
2684 uname -v = `(uname
-v) 2>/dev
/null ||
echo unknown
`
2686 /usr/bin/uname -p = `(/usr
/bin
/uname
-p) 2>/dev
/null ||
echo unknown
`
2687 /bin/uname -X = `(/bin
/uname
-X) 2>/dev
/null ||
echo unknown
`
2689 /bin/arch = `(/bin
/arch
) 2>/dev
/null ||
echo unknown
`
2690 /usr/bin/arch -k = `(/usr
/bin
/arch
-k) 2>/dev
/null ||
echo unknown
`
2691 /usr/convex/getsysinfo = `(/usr
/convex
/getsysinfo
) 2>/dev
/null ||
echo unknown
`
2692 /usr/bin/hostinfo = `(/usr
/bin
/hostinfo
) 2>/dev
/null ||
echo unknown
`
2693 /bin/machine = `(/bin
/machine
) 2>/dev
/null ||
echo unknown
`
2694 /usr/bin/oslevel = `(/usr
/bin
/oslevel
) 2>/dev
/null ||
echo unknown
`
2695 /bin/universe = `(/bin
/universe
) 2>/dev
/null ||
echo unknown
`
2699 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2703 test -z "$as_dir" && as_dir=.
2704 $as_echo "PATH: $as_dir"
2720 # Keep a trace of the command line.
2721 # Strip out --no-create and --no-recursion so they do not pile up.
2722 # Strip out --silent because we don't want to record it for future runs.
2723 # Also quote any args containing shell meta-characters.
2724 # Make two passes to allow for proper duplicate-argument suppression.
2728 ac_must_keep_next=false
2734 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
2735 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
2736 | -silent | --silent | --silen | --sile | --sil)
2739 ac_arg=`$as_echo "$ac_arg" |
sed "s/'/'\\\\\\\\''/g"` ;;
2742 1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
2744 as_fn_append ac_configure_args1 " '$ac_arg'"
2745 if test $ac_must_keep_next = true; then
2746 ac_must_keep_next=false # Got value, back to normal.
2749 *=* | --config-cache | -C | -disable-* | --disable-* \
2750 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
2751 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
2752 | -with-* | --with-* | -without-* | --without-* | --x)
2753 case "$ac_configure_args0 " in
2754 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
2757 -* ) ac_must_keep_next=true ;;
2760 as_fn_append ac_configure_args " '$ac_arg'"
2765 { ac_configure_args0=; unset ac_configure_args0;}
2766 { ac_configure_args1=; unset ac_configure_args1;}
2768 # When interrupted or exit'd, cleanup temporary files, and complete
2769 # config.log. We remove comments because anyway the quotes in there
2770 # would cause problems or look ugly.
2771 # WARNING: Use '\'' to represent an apostrophe within the trap.
2772 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
2773 trap 'exit_status=$?
2774 # Save into config.log some information that might help in debugging.
2778 $as_echo "## ---------------- ##
2779 ## Cache variables. ##
2780 ## ---------------- ##"
2782 # The following way of writing the cache mishandles newlines in values,
2784 for ac_var in `(set) 2>&1 |
sed -n '\''s
/^\
([a-zA-Z_
][a-zA-Z0-9_
]*\
)=.
*/\
1/p
'\''`; do
2785 eval ac_val=\$$ac_var
2789 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
2790 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
2793 _ | IFS | as_nl) ;; #(
2794 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
2795 *) { eval $ac_var=; unset $ac_var;} ;;
2800 case $as_nl`(ac_space
='\'' '\''; set) 2>&1` in #(
2801 *${as_nl}ac_space=\ *)
2803 "s/'\''/'\''\\\\'\'''\''/g;
2804 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
2807 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
2814 $as_echo "## ----------------- ##
2815 ## Output variables. ##
2816 ## ----------------- ##"
2818 for ac_var in $ac_subst_vars
2820 eval ac_val=\$$ac_var
2822 *\'\''*) ac_val=`$as_echo "$ac_val" |
sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2824 $as_echo "$ac_var='\''$ac_val'\''"
2828 if test -n "$ac_subst_files"; then
2829 $as_echo "## ------------------- ##
2830 ## File substitutions. ##
2831 ## ------------------- ##"
2833 for ac_var in $ac_subst_files
2835 eval ac_val=\$$ac_var
2837 *\'\''*) ac_val=`$as_echo "$ac_val" |
sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2839 $as_echo "$ac_var='\''$ac_val'\''"
2844 if test -s confdefs.h; then
2845 $as_echo "## ----------- ##
2852 test "$ac_signal" != 0 &&
2853 $as_echo "$as_me: caught signal $ac_signal"
2854 $as_echo "$as_me: exit $exit_status"
2856 rm -f core *.core core.conftest.* &&
2857 rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
2860 for ac_signal in 1 2 13 15; do
2861 trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
2865 # confdefs.h avoids OS command line length limits that DEFS can exceed.
2866 rm -f -r conftest* confdefs.h
2868 $as_echo "/* confdefs.h */" > confdefs.h
2870 # Predefined preprocessor variables.
2872 cat >>confdefs.h <<_ACEOF
2873 #define PACKAGE_NAME "$PACKAGE_NAME"
2876 cat >>confdefs.h <<_ACEOF
2877 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
2880 cat >>confdefs.h <<_ACEOF
2881 #define PACKAGE_VERSION "$PACKAGE_VERSION"
2884 cat >>confdefs.h <<_ACEOF
2885 #define PACKAGE_STRING "$PACKAGE_STRING"
2888 cat >>confdefs.h <<_ACEOF
2889 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
2892 cat >>confdefs.h <<_ACEOF
2893 #define PACKAGE_URL "$PACKAGE_URL"
2897 # Let the site file select an alternate cache file if it wants to.
2898 # Prefer an explicitly selected file to automatically selected ones.
2901 if test -n "$CONFIG_SITE"; then
2902 # We do not want a PATH search for config.site.
2903 case $CONFIG_SITE in #((
2904 -*) ac_site_file1=./$CONFIG_SITE;;
2905 */*) ac_site_file1=$CONFIG_SITE;;
2906 *) ac_site_file1=./$CONFIG_SITE;;
2908 elif test "x$prefix" != xNONE; then
2909 ac_site_file1=$prefix/share/config.site
2910 ac_site_file2=$prefix/etc/config.site
2912 ac_site_file1=$ac_default_prefix/share/config.site
2913 ac_site_file2=$ac_default_prefix/etc/config.site
2915 for ac_site_file in "$ac_site_file1" "$ac_site_file2"
2917 test "x$ac_site_file" = xNONE && continue
2918 if test /dev/null != "$ac_site_file" && test -r "$ac_site_file"; then
2919 { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
2920 $as_echo "$as_me: loading site script $ac_site_file" >&6;}
2921 sed 's/^/| /' "$ac_site_file" >&5
2923 || { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2924 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2925 as_fn_error $? "failed to load site
script $ac_site_file
2926 See \
`config.log' for more details" "$LINENO" 5 ; }
2930 if test -r "$cache_file"; then
2931 # Some versions of bash will fail to source /dev/null (special files
2932 # actually), so we avoid doing that. DJGPP emulates it as a regular file.
2933 if test /dev/null != "$cache_file" && test -f "$cache_file"; then
2934 { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
2935 $as_echo "$as_me: loading cache $cache_file" >&6;}
2937 [\\/]* | ?:[\\/]* ) . "$cache_file";;
2938 *) . "./$cache_file";;
2942 { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
2943 $as_echo "$as_me: creating cache $cache_file" >&6;}
2947 as_fn_append ac_header_list " stdlib.h"
2948 as_fn_append ac_header_list " unistd.h"
2949 as_fn_append ac_header_list " sys/param.h"
2950 gl_getopt_required=GNU
2951 as_fn_append ac_header_list " getopt.h"
2952 as_fn_append ac_func_list " lstat"
2953 as_fn_append ac_func_list " alarm"
2954 as_fn_append ac_func_list " readlink"
2955 as_fn_append ac_header_list " wchar.h"
2956 as_fn_append ac_header_list " stdint.h"
2957 as_fn_append ac_func_list " tzset"
2958 as_fn_append ac_func_list " symlink"
2959 as_fn_append ac_header_list " sys/stat.h"
2960 as_fn_append ac_header_list " sys/time.h"
2961 as_fn_append ac_func_list " localtime_r"
2962 # Check that the precious variables saved in the cache have kept the same
2964 ac_cache_corrupted=false
2965 for ac_var in $ac_precious_vars; do
2966 eval ac_old_set=\$ac_cv_env_${ac_var}_set
2967 eval ac_new_set=\$ac_env_${ac_var}_set
2968 eval ac_old_val=\$ac_cv_env_${ac_var}_value
2969 eval ac_new_val=\$ac_env_${ac_var}_value
2970 case $ac_old_set,$ac_new_set in
2972 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run
" >&5
2973 $as_echo "$as_me: error
: \
`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
2974 ac_cache_corrupted=: ;;
2976 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not
set in the previous run
" >&5
2977 $as_echo "$as_me: error
: \
`$ac_var' was not set in the previous run" >&2;}
2978 ac_cache_corrupted=: ;;
2981 if test "x$ac_old_val" != "x$ac_new_val"; then
2982 # differences in whitespace do not lead to failure.
2983 ac_old_val_w=`echo x
$ac_old_val`
2984 ac_new_val_w=`echo x
$ac_new_val`
2985 if test "$ac_old_val_w" != "$ac_new_val_w"; then
2986 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
2987 $as_echo "$as_me: error: \`$ac_var' has changed since the previous run
:" >&2;}
2988 ac_cache_corrupted=:
2990 { $as_echo "$as_me:${as_lineno-$LINENO}: warning
: ignoring whitespace changes
in \
`$ac_var' since the previous run:" >&5
2991 $as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
2992 eval $ac_var=\$ac_old_val
2994 { $as_echo "$as_me:${as_lineno-$LINENO}: former value: \`$ac_old_val'" >&5
2995 $as_echo "$as_me: former value
: \
`$ac_old_val'" >&2;}
2996 { $as_echo "$as_me:${as_lineno-$LINENO}: current value: \`$ac_new_val'" >&5
2997 $as_echo "$as_me: current value: \`$ac_new_val'" >&2;}
3000 # Pass precious variables to config.status.
3001 if test "$ac_new_set" = set; then
3003 *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s
/'/'\\\\\\\\''/g
"` ;;
3004 *) ac_arg=$ac_var=$ac_new_val ;;
3006 case " $ac_configure_args " in
3007 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
3008 *) as_fn_append ac_configure_args " '$ac_arg'" ;;
3012 if $ac_cache_corrupted; then
3013 { $as_echo "$as_me:${as_lineno-$LINENO}: error
: in \
`$ac_pwd':" >&5
3014 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3015 { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
3016 $as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
3017 as_fn_error $? "run \`make distclean' and
/or \
`rm $cache_file' and start over" "$LINENO" 5
3019 ## -------------------- ##
3020 ## Main body of script. ##
3021 ## -------------------- ##
3024 ac_cpp='$CPP $CPPFLAGS'
3025 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3026 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3027 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3030 ac_config_headers="$ac_config_headers src/config.h:src/config.in"
3033 am__api_version='1.11'
3036 for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do
3037 if test -f "$ac_dir/install-sh"; then
3039 ac_install_sh="$ac_aux_dir/install-sh -c"
3041 elif test -f "$ac_dir/install.sh"; then
3043 ac_install_sh="$ac_aux_dir/install.sh -c"
3045 elif test -f "$ac_dir/shtool"; then
3047 ac_install_sh="$ac_aux_dir/shtool install -c"
3051 if test -z "$ac_aux_dir"; then
3052 as_fn_error $? "cannot find install-sh, install.sh, or shtool in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" "$LINENO" 5
3055 # These three variables are undocumented and unsupported,
3056 # and are intended to be withdrawn in a future Autoconf release.
3057 # They can cause serious problems if a builder's source tree is in a directory
3058 # whose full name contains unusual characters.
3059 ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
3060 ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
3061 ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var.
3064 # Find a good install program. We prefer a C program (faster),
3065 # so one script is as good as another. But avoid the broken or
3066 # incompatible versions:
3067 # SysV /etc/install, /usr/sbin/install
3068 # SunOS /usr/etc/install
3069 # IRIX /sbin/install
3071 # AmigaOS /C/install, which installs bootblocks on floppy discs
3072 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
3073 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
3074 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
3075 # OS/2's system install, which has a completely different semantic
3076 # ./install, which can be erroneously created by make from ./install.sh.
3077 # Reject install programs that cannot install multiple files.
3078 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5
3079 $as_echo_n "checking for a BSD-compatible install... " >&6; }
3080 if test -z "$INSTALL"; then
3081 if test "${ac_cv_path_install+set}" = set; then :
3082 $as_echo_n "(cached) " >&6
3084 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3088 test -z "$as_dir" && as_dir=.
3089 # Account for people who put trailing slashes in PATH elements.
3090 case $as_dir/ in #((
3091 ./ | .// | /[cC]/* | \
3092 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
3093 ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \
3096 # OSF1 and SCO ODT 3.0 have their own names for install.
3097 # Don't use installbsd from OSF since it installs stuff as root
3099 for ac_prog in ginstall scoinst install; do
3100 for ac_exec_ext in '' $ac_executable_extensions; do
3101 if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; }; then
3102 if test $ac_prog = install &&
3103 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
3104 # AIX install. It has an incompatible calling convention.
3106 elif test $ac_prog = install &&
3107 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
3108 # program-specific install script used by HP pwplus--don't use.
3111 rm -rf conftest.one conftest.two conftest.dir
3112 echo one > conftest.one
3113 echo two > conftest.two
3115 if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" &&
3116 test -s conftest.one && test -s conftest.two &&
3117 test -s conftest.dir/conftest.one &&
3118 test -s conftest.dir/conftest.two
3120 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
3133 rm -rf conftest.one conftest.two conftest.dir
3136 if test "${ac_cv_path_install+set}" = set; then
3137 INSTALL=$ac_cv_path_install
3139 # As a last resort, use the slow shell script. Don't cache a
3140 # value for INSTALL within a source directory, because that will
3141 # break other packages using the cache if that directory is
3142 # removed, or if the value is a relative name.
3143 INSTALL=$ac_install_sh
3146 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
3147 $as_echo "$INSTALL" >&6; }
3149 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
3150 # It thinks the first close brace ends the variable substitution.
3151 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
3153 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
3155 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
3157 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether build environment is sane" >&5
3158 $as_echo_n "checking whether build environment is sane... " >&6; }
3161 echo timestamp > conftest.file
3162 # Reject unsafe characters in $srcdir or the absolute working directory
3163 # name. Accept space and tab only in the latter.
3167 *[\\\"\#\$\&\'\`$am_lf]*)
3168 as_fn_error $?
"unsafe absolute working directory name" "$LINENO" 5 ;;
3171 *[\\\"\
#\$\&\'\`$am_lf\ \ ]*)
3172 as_fn_error $?
"unsafe srcdir value: \`$srcdir'" "$LINENO" 5 ;;
3175 # Do `set' in a subshell so we don't clobber the current shell's
3176 # arguments. Must try -L first in case configure is actually a
3177 # symlink; some systems play weird games with the mod time of symlinks
3178 # (eg FreeBSD returns the mod time of the symlink's containing
3181 set X
`ls -Lt "$srcdir/configure" conftest.file 2> /dev/null`
3182 if test "$*" = "X"; then
3184 set X
`ls -t "$srcdir/configure" conftest.file`
3187 if test "$*" != "X $srcdir/configure conftest.file" \
3188 && test "$*" != "X conftest.file $srcdir/configure"; then
3190 # If neither matched, then we have a broken ls. This can happen
3191 # if, for instance, CONFIG_SHELL is bash and it inherits a
3192 # broken ls alias from the environment. This has actually
3193 # happened. Such a system could not be considered "sane".
3194 as_fn_error $?
"ls -t appears to fail. Make sure there is not a broken
3195 alias in your environment" "$LINENO" 5
3198 test "$2" = conftest.
file
3204 as_fn_error $?
"newly created file is older than distributed files!
3205 Check your system clock" "$LINENO" 5
3207 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3208 $as_echo "yes" >&6; }
3209 test "$program_prefix" != NONE
&&
3210 program_transform_name
="s&^&$program_prefix&;$program_transform_name"
3211 # Use a double $ so make ignores it.
3212 test "$program_suffix" != NONE
&&
3213 program_transform_name
="s&\$&$program_suffix&;$program_transform_name"
3214 # Double any \ or $.
3215 # By default was `s,x,x', remove it if useless.
3216 ac_script
='s/[\\$]/&&/g;s/;s,x,x,$//'
3217 program_transform_name
=`$as_echo "$program_transform_name" | sed "$ac_script"`
3219 # expand $ac_aux_dir to an absolute path
3220 am_aux_dir
=`cd $ac_aux_dir && pwd`
3222 if test x
"${MISSING+set}" != xset
; then
3225 MISSING
="\${SHELL} \"$am_aux_dir/missing\"" ;;
3227 MISSING
="\${SHELL} $am_aux_dir/missing" ;;
3230 # Use eval to expand $SHELL
3231 if eval "$MISSING --run true"; then
3232 am_missing_run
="$MISSING --run "
3235 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`missing' script is too old or missing" >&5
3236 $as_echo "$as_me: WARNING: \`missing' script is too old or missing" >&2;}
3239 if test x
"${install_sh}" != xset
; then
3242 install_sh
="\${SHELL} '$am_aux_dir/install-sh'" ;;
3244 install_sh
="\${SHELL} $am_aux_dir/install-sh"
3248 # Installed binaries are usually stripped using `strip' when the user
3249 # run `make install-strip'. However `strip' might not be the right
3250 # tool to use in cross-compilation environments, therefore Automake
3251 # will honor the `STRIP' environment variable to overrule this program.
3252 if test "$cross_compiling" != no
; then
3253 if test -n "$ac_tool_prefix"; then
3254 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
3255 set dummy
${ac_tool_prefix}strip
; ac_word
=$2
3256 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3257 $as_echo_n "checking for $ac_word... " >&6; }
3258 if test "${ac_cv_prog_STRIP+set}" = set; then :
3259 $as_echo_n "(cached) " >&6
3261 if test -n "$STRIP"; then
3262 ac_cv_prog_STRIP
="$STRIP" # Let the user override the test.
3264 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
3268 test -z "$as_dir" && as_dir
=.
3269 for ac_exec_ext
in '' $ac_executable_extensions; do
3270 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3271 ac_cv_prog_STRIP
="${ac_tool_prefix}strip"
3272 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3281 STRIP
=$ac_cv_prog_STRIP
3282 if test -n "$STRIP"; then
3283 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
3284 $as_echo "$STRIP" >&6; }
3286 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3287 $as_echo "no" >&6; }
3292 if test -z "$ac_cv_prog_STRIP"; then
3294 # Extract the first word of "strip", so it can be a program name with args.
3295 set dummy strip
; ac_word
=$2
3296 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3297 $as_echo_n "checking for $ac_word... " >&6; }
3298 if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then :
3299 $as_echo_n "(cached) " >&6
3301 if test -n "$ac_ct_STRIP"; then
3302 ac_cv_prog_ac_ct_STRIP
="$ac_ct_STRIP" # Let the user override the test.
3304 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
3308 test -z "$as_dir" && as_dir
=.
3309 for ac_exec_ext
in '' $ac_executable_extensions; do
3310 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3311 ac_cv_prog_ac_ct_STRIP
="strip"
3312 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3321 ac_ct_STRIP
=$ac_cv_prog_ac_ct_STRIP
3322 if test -n "$ac_ct_STRIP"; then
3323 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
3324 $as_echo "$ac_ct_STRIP" >&6; }
3326 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3327 $as_echo "no" >&6; }
3330 if test "x$ac_ct_STRIP" = x
; then
3333 case $cross_compiling:$ac_tool_warned in
3335 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3336 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3337 ac_tool_warned
=yes ;;
3342 STRIP
="$ac_cv_prog_STRIP"
3346 INSTALL_STRIP_PROGRAM
="\$(install_sh) -c -s"
3348 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a thread-safe mkdir -p" >&5
3349 $as_echo_n "checking for a thread-safe mkdir -p... " >&6; }
3350 if test -z "$MKDIR_P"; then
3351 if test "${ac_cv_path_mkdir+set}" = set; then :
3352 $as_echo_n "(cached) " >&6
3354 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
3355 for as_dir
in $PATH$PATH_SEPARATOR/opt
/sfw
/bin
3358 test -z "$as_dir" && as_dir
=.
3359 for ac_prog
in mkdir gmkdir
; do
3360 for ac_exec_ext
in '' $ac_executable_extensions; do
3361 { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; } ||
continue
3362 case `"$as_dir/$ac_prog$ac_exec_ext" --version 2>&1` in #(
3363 'mkdir (GNU coreutils) '* | \
3364 'mkdir (coreutils) '* | \
3365 'mkdir (fileutils) '4.1*)
3366 ac_cv_path_mkdir
=$as_dir/$ac_prog$ac_exec_ext
3376 test -d .
/--version && rmdir .
/--version
3377 if test "${ac_cv_path_mkdir+set}" = set; then
3378 MKDIR_P
="$ac_cv_path_mkdir -p"
3380 # As a last resort, use the slow shell script. Don't cache a
3381 # value for MKDIR_P within a source directory, because that will
3382 # break other packages using the cache if that directory is
3383 # removed, or if the value is a relative name.
3384 MKDIR_P
="$ac_install_sh -d"
3387 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MKDIR_P" >&5
3388 $as_echo "$MKDIR_P" >&6; }
3393 [\\/$
]* | ?
:[\\/]*) ;;
3394 */*) mkdir_p
="\$(top_builddir)/$mkdir_p" ;;
3397 for ac_prog
in gawk mawk nawk
awk
3399 # Extract the first word of "$ac_prog", so it can be a program name with args.
3400 set dummy
$ac_prog; ac_word
=$2
3401 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3402 $as_echo_n "checking for $ac_word... " >&6; }
3403 if test "${ac_cv_prog_AWK+set}" = set; then :
3404 $as_echo_n "(cached) " >&6
3406 if test -n "$AWK"; then
3407 ac_cv_prog_AWK
="$AWK" # Let the user override the test.
3409 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
3413 test -z "$as_dir" && as_dir
=.
3414 for ac_exec_ext
in '' $ac_executable_extensions; do
3415 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3416 ac_cv_prog_AWK
="$ac_prog"
3417 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3427 if test -n "$AWK"; then
3428 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
3429 $as_echo "$AWK" >&6; }
3431 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3432 $as_echo "no" >&6; }
3436 test -n "$AWK" && break
3439 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
3440 $as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
3442 ac_make
=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
3443 if eval "test \"\${ac_cv_prog_make_${ac_make}_set+set}\"" = set; then :
3444 $as_echo_n "(cached) " >&6
3446 cat >conftest.
make <<\_ACEOF
3449 @
echo '@@@%%%=$(MAKE)=@@@%%%'
3451 # GNU make sometimes prints "make[1]: Entering ...", which would confuse us.
3452 case `${MAKE-make} -f conftest.make 2>/dev/null` in
3454 eval ac_cv_prog_make_
${ac_make}_set
=yes;;
3456 eval ac_cv_prog_make_
${ac_make}_set
=no
;;
3460 if eval test \
$ac_cv_prog_make_${ac_make}_set
= yes; then
3461 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3462 $as_echo "yes" >&6; }
3465 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3466 $as_echo "no" >&6; }
3467 SET_MAKE
="MAKE=${MAKE-make}"
3470 rm -rf .tst
2>/dev
/null
3471 mkdir .tst
2>/dev
/null
3472 if test -d .tst
; then
3477 rmdir .tst
2>/dev
/null
3479 if test "`cd $srcdir && pwd`" != "`pwd`"; then
3480 # Use -I$(srcdir) only when $(srcdir) != ., so that make's output
3481 # is not polluted with repeated "-I."
3482 am__isrc
=' -I$(srcdir)'
3483 # test to see if srcdir already configured
3484 if test -f $srcdir/config.status
; then
3485 as_fn_error $?
"source directory already configured; run \"make distclean\" there first" "$LINENO" 5
3489 # test whether we have cygpath
3490 if test -z "$CYGPATH_W"; then
3491 if (cygpath
--version) >/dev
/null
2>/dev
/null
; then
3492 CYGPATH_W
='cygpath -w'
3499 # Define the identity of the package.
3504 cat >>confdefs.h
<<_ACEOF
3505 #define PACKAGE "$PACKAGE"
3509 cat >>confdefs.h
<<_ACEOF
3510 #define VERSION "$VERSION"
3513 # Some tools Automake needs.
3515 ACLOCAL
=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
3518 AUTOCONF
=${AUTOCONF-"${am_missing_run}autoconf"}
3521 AUTOMAKE
=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
3524 AUTOHEADER
=${AUTOHEADER-"${am_missing_run}autoheader"}
3527 MAKEINFO
=${MAKEINFO-"${am_missing_run}makeinfo"}
3529 # We need awk for the "check" target. The system "awk" is bad on
3531 # Always define AMTAR for backward compatibility.
3533 AMTAR
=${AMTAR-"${am_missing_run}tar"}
3535 am__tar
='${AMTAR} chof - "$$tardir"'; am__untar
='${AMTAR} xf -'
3544 lispdir
='${datadir}/emacs/${version}/lisp'
3545 locallisppath
='${datadir}/emacs/${version}/site-lisp:'\
3546 '${datadir}/emacs/site-lisp'
3547 lisppath
='${locallisppath}:${lispdir}:${datadir}/emacs/${version}/leim'
3548 etcdir
='${datadir}/emacs/${version}/etc'
3549 archlibdir
='${libexecdir}/emacs/${version}/${configuration}'
3550 docdir
='${datadir}/emacs/${version}/etc'
3551 gamedir
='${localstatedir}/games/emacs'
3556 # Check whether --with-pop was given.
3557 if test "${with_pop+set}" = set; then :
3563 if test "$with_pop" = yes; then
3564 $as_echo "#define MAIL_USE_POP 1" >>confdefs.h
3569 # Check whether --with-kerberos was given.
3570 if test "${with_kerberos+set}" = set; then :
3571 withval
=$with_kerberos;
3576 if test "$with_kerberos" != no
; then
3577 $as_echo "#define KERBEROS 1" >>confdefs.h
3582 # Check whether --with-kerberos5 was given.
3583 if test "${with_kerberos5+set}" = set; then :
3584 withval
=$with_kerberos5;
3589 if test "${with_kerberos5}" != no
; then
3590 if test "${with_kerberos}" = no
; then
3592 $as_echo "#define KERBEROS 1" >>confdefs.h
3596 $as_echo "#define KERBEROS5 1" >>confdefs.h
3601 # Check whether --with-hesiod was given.
3602 if test "${with_hesiod+set}" = set; then :
3603 withval
=$with_hesiod;
3608 if test "$with_hesiod" != no
; then
3610 $as_echo "#define HESIOD 1" >>confdefs.h
3615 # Check whether --with-mmdf was given.
3616 if test "${with_mmdf+set}" = set; then :
3622 if test "$with_mmdf" != no
; then
3624 $as_echo "#define MAIL_USE_MMDF 1" >>confdefs.h
3629 # Check whether --with-mail-unlink was given.
3630 if test "${with_mail_unlink+set}" = set; then :
3631 withval
=$with_mail_unlink;
3636 if test "$with_mail_unlink" != no
; then
3638 $as_echo "#define MAIL_UNLINK_SPOOL 1" >>confdefs.h
3643 # Check whether --with-mailhost was given.
3644 if test "${with_mailhost+set}" = set; then :
3645 withval
=$with_mailhost;
3646 cat >>confdefs.h
<<_ACEOF
3647 #define MAILHOST "$withval"
3654 # Check whether --with-sound was given.
3655 if test "${with_sound+set}" = set; then :
3656 withval
=$with_sound;
3663 # Check whether --with-sync-input was given.
3664 if test "${with_sync_input+set}" = set; then :
3665 withval
=$with_sync_input;
3670 if test "$with_sync_input" = yes; then
3672 $as_echo "#define SYNC_INPUT 1" >>confdefs.h
3677 # Check whether --with-x-toolkit was given.
3678 if test "${with_x_toolkit+set}" = set; then :
3679 withval
=$with_x_toolkit; case "${withval}" in
3680 y | ye |
yes ) val
=gtk
;;
3682 l | lu | luc | luci | lucid
) val
=lucid
;;
3683 a |
at | ath | athe | athen | athena
) val
=athena
;;
3684 m | mo | mot | moti | motif
) val
=motif
;;
3685 g | gt | gtk
) val
=gtk
;;
3688 as_fn_error $?
"\`--with-x-toolkit=$withval' is invalid;
3689 this option's value should be \`yes', \`no', \`lucid', \`athena', \`motif', \`gtk' or
3690 \`gtk3'. \`yes' and \`gtk' are synonyms. \`athena' and \`lucid' are synonyms." "$LINENO" 5
3699 # Check whether --with-xpm was given.
3700 if test "${with_xpm+set}" = set; then :
3707 # Check whether --with-jpeg was given.
3708 if test "${with_jpeg+set}" = set; then :
3715 # Check whether --with-tiff was given.
3716 if test "${with_tiff+set}" = set; then :
3723 # Check whether --with-gif was given.
3724 if test "${with_gif+set}" = set; then :
3731 # Check whether --with-png was given.
3732 if test "${with_png+set}" = set; then :
3739 # Check whether --with-rsvg was given.
3740 if test "${with_rsvg+set}" = set; then :
3747 # Check whether --with-xml2 was given.
3748 if test "${with_xml2+set}" = set; then :
3755 # Check whether --with-imagemagick was given.
3756 if test "${with_imagemagick+set}" = set; then :
3757 withval
=$with_imagemagick;
3759 with_imagemagick
=yes
3764 # Check whether --with-xft was given.
3765 if test "${with_xft+set}" = set; then :
3772 # Check whether --with-libotf was given.
3773 if test "${with_libotf+set}" = set; then :
3774 withval
=$with_libotf;
3780 # Check whether --with-m17n-flt was given.
3781 if test "${with_m17n_flt+set}" = set; then :
3782 withval
=$with_m17n_flt;
3789 # Check whether --with-toolkit-scroll-bars was given.
3790 if test "${with_toolkit_scroll_bars+set}" = set; then :
3791 withval
=$with_toolkit_scroll_bars;
3793 with_toolkit_scroll_bars
=yes
3797 # Check whether --with-xaw3d was given.
3798 if test "${with_xaw3d+set}" = set; then :
3799 withval
=$with_xaw3d;
3805 # Check whether --with-xim was given.
3806 if test "${with_xim+set}" = set; then :
3813 # Check whether --with-ns was given.
3814 if test "${with_ns+set}" = set; then :
3822 # Check whether --with-gpm was given.
3823 if test "${with_gpm+set}" = set; then :
3830 # Check whether --with-dbus was given.
3831 if test "${with_dbus+set}" = set; then :
3838 # Check whether --with-gconf was given.
3839 if test "${with_gconf+set}" = set; then :
3840 withval
=$with_gconf;
3846 # Check whether --with-selinux was given.
3847 if test "${with_selinux+set}" = set; then :
3848 withval
=$with_selinux;
3854 # Check whether --with-gnutls was given.
3855 if test "${with_gnutls+set}" = set; then :
3856 withval
=$with_gnutls;
3862 ## For the times when you want to build Emacs but don't have
3863 ## a suitable makeinfo, and can live without the manuals.
3865 # Check whether --with-makeinfo was given.
3866 if test "${with_makeinfo+set}" = set; then :
3867 withval
=$with_makeinfo;
3873 ## This is an option because I do not know if all info/man support
3874 ## compressed files, nor how to test if they do so.
3876 # Check whether --with-compress-info was given.
3877 if test "${with_compress_info+set}" = set; then :
3878 withval
=$with_compress_info;
3880 with_compress_info
=yes
3883 if test $with_compress_info = yes; then
3891 # Check whether --with-pkg-config-prog was given.
3892 if test "${with_pkg_config_prog+set}" = set; then :
3893 withval
=$with_pkg_config_prog;
3896 if test "X${with_pkg_config_prog}" != X
; then
3897 if test "${with_pkg_config_prog}" != yes; then
3898 PKG_CONFIG
="${with_pkg_config_prog}"
3904 # Check whether --with-crt-dir was given.
3905 if test "${with_crt_dir+set}" = set; then :
3906 withval
=$with_crt_dir;
3909 CRT_DIR
="${with_crt_dir}"
3912 # Check whether --with-gameuser was given.
3913 if test "${with_gameuser+set}" = set; then :
3914 withval
=$with_gameuser;
3917 test "X${with_gameuser}" != X
&& test "${with_gameuser}" != yes \
3918 && gameuser
="${with_gameuser}"
3919 test "X$gameuser" = X
&& gameuser
=games
3922 # Check whether --with-gnustep-conf was given.
3923 if test "${with_gnustep_conf+set}" = set; then :
3924 withval
=$with_gnustep_conf;
3927 test "X${with_gnustep_conf}" != X
&& test "${with_gnustep_conf}" != yes && \
3928 GNUSTEP_CONFIG_FILE
="${with_gnustep_conf}"
3929 test "X$GNUSTEP_CONFIG_FILE" = "X" && \
3930 GNUSTEP_CONFIG_FILE
=/etc
/GNUstep
/GNUstep.conf
3932 # Check whether --enable-ns-self-contained was given.
3933 if test "${enable_ns_self_contained+set}" = set; then :
3934 enableval
=$enable_ns_self_contained; EN_NS_SELF_CONTAINED
=$enableval
3936 EN_NS_SELF_CONTAINED
=yes
3940 # Check whether --enable-asserts was given.
3941 if test "${enable_asserts+set}" = set; then :
3942 enableval
=$enable_asserts; USE_XASSERTS
=$enableval
3948 # Check whether --enable-maintainer-mode was given.
3949 if test "${enable_maintainer_mode+set}" = set; then :
3950 enableval
=$enable_maintainer_mode; USE_MAINTAINER_MODE
=$enableval
3952 USE_MAINTAINER_MODE
=no
3955 if test $USE_MAINTAINER_MODE = yes; then
3962 # Check whether --enable-locallisppath was given.
3963 if test "${enable_locallisppath+set}" = set; then :
3964 enableval
=$enable_locallisppath; if test "${enableval}" = "no"; then
3966 elif test "${enableval}" != "yes"; then
3967 locallisppath
=${enableval}
3972 # Check whether --enable-checking was given.
3973 if test "${enable_checking+set}" = set; then :
3974 enableval
=$enable_checking; ac_checking_flags
="${enableval}"
3977 IFS
="${IFS= }"; ac_save_IFS
="$IFS"; IFS
="$IFS,"
3978 for check
in $ac_checking_flags
3981 # these set all the flags to specific states
3982 yes) ac_enable_checking
=1 ;;
3983 no
) ac_enable_checking
= ;
3984 ac_gc_check_stringbytes
= ;
3985 ac_gc_check_string_overrun
= ;
3986 ac_gc_check_string_free_list
= ;
3987 ac_xmalloc_overrun
= ;
3988 ac_gc_check_cons_list
= ;;
3989 all
) ac_enable_checking
=1 ;
3990 ac_gc_check_stringbytes
=1 ;
3991 ac_gc_check_string_overrun
=1 ;
3992 ac_gc_check_string_free_list
=1 ;
3993 ac_xmalloc_overrun
=1 ;
3994 ac_gc_check_cons_list
=1 ;;
3995 # these enable particular checks
3996 stringbytes
) ac_gc_check_stringbytes
=1 ;;
3997 stringoverrun
) ac_gc_check_string_overrun
=1 ;;
3998 stringfreelist
) ac_gc_check_string_free_list
=1 ;;
3999 xmallocoverrun
) ac_xmalloc_overrun
=1 ;;
4000 conslist
) ac_gc_check_cons_list
=1 ;;
4001 *) as_fn_error $?
"unknown check category $check" "$LINENO" 5 ;;
4006 if test x
$ac_enable_checking != x
; then
4008 $as_echo "#define ENABLE_CHECKING 1" >>confdefs.h
4011 if test x
$ac_gc_check_stringbytes != x
; then
4013 $as_echo "#define GC_CHECK_STRING_BYTES 1" >>confdefs.h
4016 if test x
$ac_gc_check_stringoverrun != x
; then
4018 $as_echo "#define GC_CHECK_STRING_OVERRUN 1" >>confdefs.h
4021 if test x
$ac_gc_check_string_free_list != x
; then
4023 $as_echo "#define GC_CHECK_STRING_FREE_LIST 1" >>confdefs.h
4026 if test x
$ac_xmalloc_overrun != x
; then
4028 $as_echo "#define XMALLOC_OVERRUN_CHECK 1" >>confdefs.h
4031 if test x
$ac_gc_check_cons_list != x
; then
4033 $as_echo "#define GC_CHECK_CONS_LIST 1" >>confdefs.h
4037 # Check whether --enable-use-lisp-union-type was given.
4038 if test "${enable_use_lisp_union_type+set}" = set; then :
4039 enableval
=$enable_use_lisp_union_type; if test "${enableval}" != "no"; then
4041 $as_echo "#define USE_LISP_UNION_TYPE 1" >>confdefs.h
4048 # Check whether --enable-profiling was given.
4049 if test "${enable_profiling+set}" = set; then :
4050 enableval
=$enable_profiling; ac_enable_profiling
="${enableval}"
4053 if test x
$ac_enable_profiling != x
; then
4054 PROFILING_CFLAGS
="-DPROFILING=1 -pg"
4060 # Check whether --enable-autodepend was given.
4061 if test "${enable_autodepend+set}" = set; then :
4062 enableval
=$enable_autodepend; ac_enable_autodepend
="${enableval}"
4064 ac_enable_autodepend
=yes
4068 #### Make srcdir absolute, if it isn't already. It's important to
4069 #### avoid running the path through pwd unnecessarily, since pwd can
4070 #### give you automounter prefixes, which can go away. We do all this
4071 #### so Emacs can find its files when run uninstalled.
4072 ## Make sure CDPATH doesn't affect cd (in case PWD is relative).
4077 ## We may be able to use the $PWD environment variable to make this
4078 ## absolute. But sometimes PWD is inaccurate.
4079 ## Note: we used to use ${PWD} at the end instead of `pwd`,
4080 ## but that tested only for a well-formed and valid PWD,
4081 ## it did not object when PWD was well-formed and valid but just wrong.
4082 if test ".${PWD}" != "." && test ".`(cd ${PWD} ; sh -c pwd)`" = ".`pwd`" ;
4086 srcdir
="`(cd ${srcdir}; pwd)`"
4089 * ) srcdir
="`(cd ${srcdir}; pwd)`" ;;
4092 #### Check if the source directory already has a configured system in it.
4093 if test `pwd` != `(cd ${srcdir} && pwd)` \
4094 && test -f "${srcdir}/src/config.h" ; then
4095 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: The directory tree \`${srcdir}' is being used
4096 as a build directory right now; it has been configured in its own
4097 right. To configure in another directory as well, you MUST
4098 use GNU make. If you do not have GNU make, then you must
4099 now do \`make distclean' in ${srcdir},
4100 and then run $0 again." >&5
4101 $as_echo "$as_me: WARNING: The directory tree \`${srcdir}' is being used
4102 as a build directory right now; it has been configured in its own
4103 right. To configure in another directory as well, you MUST
4104 use GNU make. If you do not have GNU make, then you must
4105 now do \`make distclean' in ${srcdir},
4106 and then run $0 again." >&2;}
4109 #### Given the configuration name, set machfile and opsysfile to the
4110 #### names of the m/*.h and s/*.h files we should use.
4112 ### Canonicalize the configuration name.
4114 # Make sure we can run config.sub.
4115 $SHELL "$ac_aux_dir/config.sub" sun4
>/dev
/null
2>&1 ||
4116 as_fn_error $?
"cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5
4118 { $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
4119 $as_echo_n "checking build system type... " >&6; }
4120 if test "${ac_cv_build+set}" = set; then :
4121 $as_echo_n "(cached) " >&6
4123 ac_build_alias
=$build_alias
4124 test "x$ac_build_alias" = x
&&
4125 ac_build_alias
=`$SHELL "$ac_aux_dir/config.guess"`
4126 test "x$ac_build_alias" = x
&&
4127 as_fn_error $?
"cannot guess build type; you must specify one" "$LINENO" 5
4128 ac_cv_build
=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
4129 as_fn_error $?
"$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5
4132 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
4133 $as_echo "$ac_cv_build" >&6; }
4134 case $ac_cv_build in
4136 *) as_fn_error $?
"invalid value of canonical build" "$LINENO" 5 ;;
4139 ac_save_IFS
=$IFS; IFS
='-'
4145 # Remember, the first character of IFS is used to create $*,
4146 # except with old shells:
4149 case $build_os in *\
*) build_os
=`echo "$build_os" | sed 's/ /-/g'`;; esac
4152 { $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
4153 $as_echo_n "checking host system type... " >&6; }
4154 if test "${ac_cv_host+set}" = set; then :
4155 $as_echo_n "(cached) " >&6
4157 if test "x$host_alias" = x
; then
4158 ac_cv_host
=$ac_cv_build
4160 ac_cv_host
=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
4161 as_fn_error $?
"$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5
4165 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
4166 $as_echo "$ac_cv_host" >&6; }
4169 *) as_fn_error $?
"invalid value of canonical host" "$LINENO" 5 ;;
4172 ac_save_IFS
=$IFS; IFS
='-'
4178 # Remember, the first character of IFS is used to create $*,
4179 # except with old shells:
4182 case $host_os in *\
*) host_os
=`echo "$host_os" | sed 's/ /-/g'`;; esac
4186 configuration
=${host_alias-${build_alias-$host}}
4190 ### If you add support for a new configuration, add code to this
4191 ### switch statement to recognize your configuration name and select
4192 ### the appropriate operating system and machine description files.
4194 ### You would hope that you could choose an m/*.h file pretty much
4195 ### based on the machine portion of the configuration name, and an s/*.h
4196 ### file based on the operating system portion. However, it turns out
4197 ### that each m/*.h file is pretty manufacturer-specific - for
4198 ### example mips.h is MIPS
4199 ### So we basically have to have a special case for each
4200 ### configuration name.
4202 ### As far as handling version numbers on operating systems is
4203 ### concerned, make sure things will fail in a fixable way. If
4204 ### /etc/MACHINES doesn't say anything about version numbers, be
4205 ### prepared to handle anything reasonably. If version numbers
4206 ### matter, be sure /etc/MACHINES says something about it.
4208 machine
='' opsys
='' unported
=no
4209 case "${canonical}" in
4214 case ${canonical} in
4215 alpha
*) machine
=alpha
;;
4216 s390-
*) machine
=ibms390
;;
4217 s390x-
*) machine
=ibms390x
;;
4218 powerpc
*) machine
=macppc
;;
4219 sparc
*) machine
=sparc
;;
4220 ia64
*) machine
=ia64
;;
4221 m68k
*) machine
=m68k
;;
4222 x86_64
*) machine
=amdx86-64
;;
4229 case "${canonical}" in
4230 alpha
*) machine
=alpha
;;
4231 amd64-
*|x86_64-
*) machine
=amdx86-64
;;
4232 ia64-
*) machine
=ia64
;;
4233 i
[3456]86-*) machine
=intel386
;;
4234 powerpc-
*) machine
=macppc
;;
4235 sparc-
*) machine
=sparc
;;
4236 sparc64-
*) machine
=sparc
;;
4240 ## FreeBSD kernel + glibc based userland
4243 case "${canonical}" in
4244 alpha
*) machine
=alpha
;;
4245 amd64-
*|x86_64-
*) machine
=amdx86-64
;;
4246 ia64-
*) machine
=ia64
;;
4247 i
[3456]86-*) machine
=intel386
;;
4248 powerpc-
*) machine
=macppc
;;
4249 sparc-
*) machine
=sparc
;;
4250 sparc64-
*) machine
=sparc
;;
4257 case "${canonical}" in
4258 alpha
*) machine
=alpha
;;
4259 x86_64-
*) machine
=amdx86-64
;;
4260 i
[3456]86-*) machine
=intel386
;;
4261 m68k-
*) machine
=m68k
;;
4262 powerpc-
*) machine
=macppc
;;
4263 sparc
*-) machine
=sparc
;;
4264 vax-
*) machine
=vax
;;
4271 case "${canonical}" in
4272 alpha
*) machine
=alpha
;;
4273 x86_64-
*) machine
=amdx86-64
;;
4274 i386-
*) machine
=intel386
;;
4275 powerpc-
*) machine
=macppc
;;
4276 sparc
*) machine
=sparc
;;
4277 vax-
*) machine
=vax
;;
4281 ## Apple Darwin / Mac OS X
4283 case "${canonical}" in
4284 i
[3456]86-* ) machine
=intel386
;;
4285 powerpc-
* ) machine
=macppc
;;
4286 x86_64-
* ) machine
=amdx86-64
;;
4290 # Define CPP as follows to make autoconf work correctly.
4291 CPP
="${CC-cc} -E -no-cpp-precomp"
4292 # Use fink packages if available.
4293 if test -d /sw
/include
&& test -d /sw
/lib
; then
4294 GCC_TEST_OPTIONS
="-I/sw/include -L/sw/lib"
4295 CPP
="${CPP} ${GCC_TEST_OPTIONS}"
4296 NON_GCC_TEST_OPTIONS
=${GCC_TEST_OPTIONS}
4300 ## HP 9000 series 700 and 800, running HP/UX
4301 hppa
*-hp-hpux10.2
* )
4304 hppa
*-hp-hpux1[1-9]* )
4306 CFLAGS
="-D_INCLUDE__STDC_A1_SOURCE $CFLAGS"
4309 ia64
*-hp-hpux1[1-9]* )
4310 machine
=hp800 opsys
=hpux11
4311 ## FIXME. Peter O'Gorman reports that dumping using unexelf.o doesn't
4312 ## work either: http://debbugs.gnu.org/cgi/bugreport.cgi?bug=6811
4316 hppa
*-*-linux-gnu* )
4317 machine
=hp800 opsys
=gnu-linux
4321 rs6000-ibm-aix4.
[23]* )
4322 machine
=ibmrs6000 opsys
=aix4-2
4324 powerpc-ibm-aix4.
[23]* )
4325 machine
=ibmrs6000 opsys
=aix4-2
4327 rs6000-ibm-aix
[56]* )
4328 machine
=ibmrs6000 opsys
=aix4-2
4330 powerpc-ibm-aix
[56]* )
4331 machine
=ibmrs6000 opsys
=aix4-2
4334 ## Silicon Graphics machines
4337 machine
=iris4d opsys
=irix6-5
4338 # Without defining _LANGUAGE_C, things get masked out in the headers
4339 # so that, for instance, grepping for `free' in stdlib.h fails and
4340 # AC_HEADER_STD_C fails. (MIPSPro 7.2.1.2m compilers, Irix 6.5.3m).
4341 NON_GNU_CPP
="/lib/cpp -D_LANGUAGE_C"
4342 NON_GCC_TEST_OPTIONS
="-D_LANGUAGE_C"
4347 | i
[3456]86-*-solaris2* | i
[3456]86-*-sunos5* \
4348 | x86_64-
*-solaris2* | x86_64-
*-sunos5*)
4349 case "${canonical}" in
4350 i
[3456]86-*-* ) machine
=intel386
;;
4351 amd64-
*-*|x86_64-
*-*) machine
=amdx86-64
;;
4352 sparc
* ) machine
=sparc
;;
4355 case "${canonical}" in
4356 *-sunos5.6
* |
*-solaris2.6
* )
4358 NON_GNU_CPP
=/usr
/ccs
/lib
/cpp
4361 *-sunos5.
[7-9]* |
*-solaris2.
[7-9]* )
4363 emacs_check_sunpro_c
=yes
4364 NON_GNU_CPP
=/usr
/ccs
/lib
/cpp
4366 *-sunos5* |
*-solaris* )
4368 emacs_check_sunpro_c
=yes
4369 NON_GNU_CPP
=/usr
/ccs
/lib
/cpp
4372 ## Watch out for a compiler that we know will not work.
4373 case "${canonical}" in
4374 *-solaris* |
*-sunos5* )
4375 if [ "x$CC" = x
/usr
/ucb
/cc
]; then
4376 ## /usr/ucb/cc doesn't work;
4377 ## we should find some other compiler that does work.
4385 ## Intel 386 machines where we don't care about the manufacturer.
4388 case "${canonical}" in
4389 *-cygwin ) opsys
=cygwin
;;
4390 *-darwin* ) opsys
=darwin
4391 CPP
="${CC-cc} -E -no-cpp-precomp"
4393 *-sysv4.2uw
* ) opsys
=unixware
; NON_GNU_CPP
=/lib
/cpp
;;
4394 *-sysv5uw* ) opsys
=unixware
; NON_GNU_CPP
=/lib
/cpp
;;
4395 *-sysv5OpenUNIX* ) opsys
=unixware
; NON_GNU_CPP
=/lib
/cpp
;;
4396 ## Otherwise, we'll fall through to the generic opsys code at the bottom.
4405 ### If the code above didn't choose an operating system, just choose
4406 ### an operating system based on the configuration name. You really
4407 ### only want to use this when you have no idea what the right
4408 ### operating system is; if you know what operating systems a machine
4409 ### runs, it's cleaner to make it explicit in the case statement
4411 if test x
"${opsys}" = x
; then
4412 case "${canonical}" in
4413 *-gnu* ) opsys
=gnu
;;
4422 if test $unported = yes; then
4423 as_fn_error $?
"Emacs hasn't been ported to \`${canonical}' systems.
4424 Check \`etc/MACHINES' for recognized configuration names." "$LINENO" 5
4427 if test -n "$machine"; then
4428 machfile
="m/${machine}.h"
4432 opsysfile
="s/${opsys}.h"
4435 #### Choose a compiler.
4436 test -n "$CC" && cc_specified
=yes
4438 # Save the value of CFLAGS that the user specified.
4439 SPECIFIED_CFLAGS
="$CFLAGS"
4442 ac_cpp
='$CPP $CPPFLAGS'
4443 ac_compile
='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4444 ac_link
='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4445 ac_compiler_gnu
=$ac_cv_c_compiler_gnu
4446 if test -n "$ac_tool_prefix"; then
4447 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
4448 set dummy
${ac_tool_prefix}gcc
; ac_word
=$2
4449 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4450 $as_echo_n "checking for $ac_word... " >&6; }
4451 if test "${ac_cv_prog_CC+set}" = set; then :
4452 $as_echo_n "(cached) " >&6
4454 if test -n "$CC"; then
4455 ac_cv_prog_CC
="$CC" # Let the user override the test.
4457 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
4461 test -z "$as_dir" && as_dir
=.
4462 for ac_exec_ext
in '' $ac_executable_extensions; do
4463 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4464 ac_cv_prog_CC
="${ac_tool_prefix}gcc"
4465 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4475 if test -n "$CC"; then
4476 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
4477 $as_echo "$CC" >&6; }
4479 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4480 $as_echo "no" >&6; }
4485 if test -z "$ac_cv_prog_CC"; then
4487 # Extract the first word of "gcc", so it can be a program name with args.
4488 set dummy gcc
; ac_word
=$2
4489 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4490 $as_echo_n "checking for $ac_word... " >&6; }
4491 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then :
4492 $as_echo_n "(cached) " >&6
4494 if test -n "$ac_ct_CC"; then
4495 ac_cv_prog_ac_ct_CC
="$ac_ct_CC" # Let the user override the test.
4497 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
4501 test -z "$as_dir" && as_dir
=.
4502 for ac_exec_ext
in '' $ac_executable_extensions; do
4503 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4504 ac_cv_prog_ac_ct_CC
="gcc"
4505 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4514 ac_ct_CC
=$ac_cv_prog_ac_ct_CC
4515 if test -n "$ac_ct_CC"; then
4516 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
4517 $as_echo "$ac_ct_CC" >&6; }
4519 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4520 $as_echo "no" >&6; }
4523 if test "x$ac_ct_CC" = x
; then
4526 case $cross_compiling:$ac_tool_warned in
4528 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4529 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4530 ac_tool_warned
=yes ;;
4538 if test -z "$CC"; then
4539 if test -n "$ac_tool_prefix"; then
4540 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
4541 set dummy
${ac_tool_prefix}cc
; ac_word
=$2
4542 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4543 $as_echo_n "checking for $ac_word... " >&6; }
4544 if test "${ac_cv_prog_CC+set}" = set; then :
4545 $as_echo_n "(cached) " >&6
4547 if test -n "$CC"; then
4548 ac_cv_prog_CC
="$CC" # Let the user override the test.
4550 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
4554 test -z "$as_dir" && as_dir
=.
4555 for ac_exec_ext
in '' $ac_executable_extensions; do
4556 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4557 ac_cv_prog_CC
="${ac_tool_prefix}cc"
4558 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4568 if test -n "$CC"; then
4569 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
4570 $as_echo "$CC" >&6; }
4572 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4573 $as_echo "no" >&6; }
4579 if test -z "$CC"; then
4580 # Extract the first word of "cc", so it can be a program name with args.
4581 set dummy cc
; ac_word
=$2
4582 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4583 $as_echo_n "checking for $ac_word... " >&6; }
4584 if test "${ac_cv_prog_CC+set}" = set; then :
4585 $as_echo_n "(cached) " >&6
4587 if test -n "$CC"; then
4588 ac_cv_prog_CC
="$CC" # Let the user override the test.
4591 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
4595 test -z "$as_dir" && as_dir
=.
4596 for ac_exec_ext
in '' $ac_executable_extensions; do
4597 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4598 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
4599 ac_prog_rejected
=yes
4603 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4610 if test $ac_prog_rejected = yes; then
4611 # We found a bogon in the path, so make sure we never use it.
4612 set dummy
$ac_cv_prog_CC
4614 if test $# != 0; then
4615 # We chose a different compiler from the bogus one.
4616 # However, it has the same basename, so the bogon will be chosen
4617 # first if we set CC to just the basename; use the full file name.
4619 ac_cv_prog_CC
="$as_dir/$ac_word${1+' '}$@"
4625 if test -n "$CC"; then
4626 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
4627 $as_echo "$CC" >&6; }
4629 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4630 $as_echo "no" >&6; }
4635 if test -z "$CC"; then
4636 if test -n "$ac_tool_prefix"; then
4637 for ac_prog
in cl.exe
4639 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
4640 set dummy
$ac_tool_prefix$ac_prog; ac_word
=$2
4641 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4642 $as_echo_n "checking for $ac_word... " >&6; }
4643 if test "${ac_cv_prog_CC+set}" = set; then :
4644 $as_echo_n "(cached) " >&6
4646 if test -n "$CC"; then
4647 ac_cv_prog_CC
="$CC" # Let the user override the test.
4649 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
4653 test -z "$as_dir" && as_dir
=.
4654 for ac_exec_ext
in '' $ac_executable_extensions; do
4655 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4656 ac_cv_prog_CC
="$ac_tool_prefix$ac_prog"
4657 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4667 if test -n "$CC"; then
4668 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
4669 $as_echo "$CC" >&6; }
4671 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4672 $as_echo "no" >&6; }
4676 test -n "$CC" && break
4679 if test -z "$CC"; then
4681 for ac_prog
in cl.exe
4683 # Extract the first word of "$ac_prog", so it can be a program name with args.
4684 set dummy
$ac_prog; ac_word
=$2
4685 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4686 $as_echo_n "checking for $ac_word... " >&6; }
4687 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then :
4688 $as_echo_n "(cached) " >&6
4690 if test -n "$ac_ct_CC"; then
4691 ac_cv_prog_ac_ct_CC
="$ac_ct_CC" # Let the user override the test.
4693 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
4697 test -z "$as_dir" && as_dir
=.
4698 for ac_exec_ext
in '' $ac_executable_extensions; do
4699 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4700 ac_cv_prog_ac_ct_CC
="$ac_prog"
4701 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4710 ac_ct_CC
=$ac_cv_prog_ac_ct_CC
4711 if test -n "$ac_ct_CC"; then
4712 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
4713 $as_echo "$ac_ct_CC" >&6; }
4715 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4716 $as_echo "no" >&6; }
4720 test -n "$ac_ct_CC" && break
4723 if test "x$ac_ct_CC" = x
; then
4726 case $cross_compiling:$ac_tool_warned in
4728 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4729 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4730 ac_tool_warned
=yes ;;
4739 test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4740 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4741 as_fn_error $?
"no acceptable C compiler found in \$PATH
4742 See \`config.log' for more details" "$LINENO" 5 ; }
4744 # Provide some information about the compiler.
4745 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
4748 for ac_option
in --version -v -V -qversion; do
4749 { { ac_try
="$ac_compiler $ac_option >&5"
4751 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
4752 *) ac_try_echo=$ac_try;;
4754 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4755 $as_echo "$ac_try_echo"; } >&5
4756 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
4758 if test -s conftest.err; then
4760 ... rest of stderr output deleted ...
4761 10q' conftest.err >conftest.er1
4762 cat conftest.er1 >&5
4764 rm -f conftest.er1 conftest.err
4765 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4766 test $ac_status = 0; }
4769 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4770 /* end confdefs.h. */
4780 ac_clean_files_save=$ac_clean_files
4781 ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
4782 # Try to create an executable without -o first, disregard a.out.
4783 # It will help us diagnose broken compilers, and finding out an intuition
4785 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
4786 $as_echo_n "checking whether the C compiler works... " >&6; }
4787 ac_link_default=`$as_echo "$ac_link" |
sed 's/ -o *conftest[^ ]*//'`
4789 # The possible output files:
4790 ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
4793 for ac_file in $ac_files
4796 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
4797 * ) ac_rmfiles="$ac_rmfiles $ac_file";;
4802 if { { ac_try="$ac_link_default"
4804 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
4805 *) ac_try_echo
=$ac_try;;
4807 eval ac_try_echo
="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4808 $as_echo "$ac_try_echo"; } >&5
4809 (eval "$ac_link_default") 2>&5
4811 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4812 test $ac_status = 0; }; then :
4813 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
4814 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
4815 # in a Makefile. We should not override ac_cv_exeext if it was cached,
4816 # so that the user can short-circuit this test for compilers unknown to
4818 for ac_file
in $ac_files ''
4820 test -f "$ac_file" ||
continue
4822 *.
$ac_ext |
*.xcoff |
*.tds |
*.d |
*.pdb |
*.xSYM |
*.bb |
*.bbg |
*.map |
*.inf |
*.dSYM |
*.o |
*.obj
)
4825 # We found the default executable, but exeext='' is most
4829 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no
;
4831 ac_cv_exeext
=`expr "$ac_file" : '[^.]*\(\..*\)'`
4833 # We set ac_cv_exeext here because the later test for it is not
4834 # safe: cross compilers may not add the suffix if given an `-o'
4835 # argument, so we may need to know it at that point already.
4836 # Even if this section looks crufty: it has the advantage of
4843 test "$ac_cv_exeext" = no
&& ac_cv_exeext
=
4848 if test -z "$ac_file"; then :
4849 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4850 $as_echo "no" >&6; }
4851 $as_echo "$as_me: failed program was:" >&5
4852 sed 's/^/| /' conftest.
$ac_ext >&5
4854 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4855 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4856 as_fn_error
77 "C compiler cannot create executables
4857 See \`config.log' for more details" "$LINENO" 5 ; }
4859 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4860 $as_echo "yes" >&6; }
4862 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
4863 $as_echo_n "checking for C compiler default output file name... " >&6; }
4864 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
4865 $as_echo "$ac_file" >&6; }
4866 ac_exeext
=$ac_cv_exeext
4868 rm -f -r a.out a.out.dSYM a.exe conftest
$ac_cv_exeext b.out
4869 ac_clean_files
=$ac_clean_files_save
4870 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
4871 $as_echo_n "checking for suffix of executables... " >&6; }
4872 if { { ac_try
="$ac_link"
4874 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
4875 *) ac_try_echo=$ac_try;;
4877 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4878 $as_echo "$ac_try_echo"; } >&5
4879 (eval "$ac_link") 2>&5
4881 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4882 test $ac_status = 0; }; then :
4883 # If both `conftest.exe
' and `conftest' are
`present' (well, observable)
4884 # catch `conftest.exe
'. For instance with Cygwin, `ls conftest' will
4885 # work properly (i.e., refer to `conftest.exe'), while it won't with
4887 for ac_file
in conftest.exe conftest conftest.
*; do
4888 test -f "$ac_file" ||
continue
4890 *.
$ac_ext |
*.xcoff |
*.tds |
*.d |
*.pdb |
*.xSYM |
*.bb |
*.bbg |
*.map |
*.inf |
*.dSYM |
*.o |
*.obj
) ;;
4891 *.
* ) ac_cv_exeext
=`expr "$ac_file" : '[^.]*\(\..*\)'`
4897 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4898 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4899 as_fn_error $?
"cannot compute suffix of executables: cannot compile and link
4900 See \`config.log' for more details" "$LINENO" 5 ; }
4902 rm -f conftest conftest
$ac_cv_exeext
4903 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
4904 $as_echo "$ac_cv_exeext" >&6; }
4906 rm -f conftest.
$ac_ext
4907 EXEEXT
=$ac_cv_exeext
4909 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
4910 /* end confdefs.h. */
4915 FILE *f = fopen ("conftest.out", "w");
4916 return ferror (f) || fclose (f) != 0;
4922 ac_clean_files
="$ac_clean_files conftest.out"
4923 # Check that the compiler produces executables we can run. If not, either
4924 # the compiler is broken, or we cross compile.
4925 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
4926 $as_echo_n "checking whether we are cross compiling... " >&6; }
4927 if test "$cross_compiling" != yes; then
4928 { { ac_try
="$ac_link"
4930 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
4931 *) ac_try_echo=$ac_try;;
4933 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4934 $as_echo "$ac_try_echo"; } >&5
4935 (eval "$ac_link") 2>&5
4937 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4938 test $ac_status = 0; }
4939 if { ac_try='./conftest$ac_cv_exeext'
4940 { { case "(($ac_try" in
4941 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
4942 *) ac_try_echo
=$ac_try;;
4944 eval ac_try_echo
="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4945 $as_echo "$ac_try_echo"; } >&5
4946 (eval "$ac_try") 2>&5
4948 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4949 test $ac_status = 0; }; }; then
4952 if test "$cross_compiling" = maybe
; then
4955 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4956 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4957 as_fn_error $?
"cannot run C compiled programs.
4958 If you meant to cross compile, use \`--host'.
4959 See \`config.log' for more details" "$LINENO" 5 ; }
4963 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
4964 $as_echo "$cross_compiling" >&6; }
4966 rm -f conftest.
$ac_ext conftest
$ac_cv_exeext conftest.out
4967 ac_clean_files
=$ac_clean_files_save
4968 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
4969 $as_echo_n "checking for suffix of object files... " >&6; }
4970 if test "${ac_cv_objext+set}" = set; then :
4971 $as_echo_n "(cached) " >&6
4973 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
4974 /* end confdefs.h. */
4984 rm -f conftest.o conftest.obj
4985 if { { ac_try
="$ac_compile"
4987 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
4988 *) ac_try_echo=$ac_try;;
4990 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4991 $as_echo "$ac_try_echo"; } >&5
4992 (eval "$ac_compile") 2>&5
4994 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4995 test $ac_status = 0; }; then :
4996 for ac_file in conftest.o conftest.obj conftest.*; do
4997 test -f "$ac_file" || continue;
4999 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
5000 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
5005 $as_echo "$as_me: failed program was:" >&5
5006 sed 's/^/| /' conftest.$ac_ext >&5
5008 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
5009 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
5010 as_fn_error $? "cannot compute suffix of object files
: cannot compile
5011 See \
`config.log' for more details" "$LINENO" 5 ; }
5013 rm -f conftest.$ac_cv_objext conftest.$ac_ext
5015 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
5016 $as_echo "$ac_cv_objext" >&6; }
5017 OBJEXT=$ac_cv_objext
5019 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
5020 $as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
5021 if test "${ac_cv_c_compiler_gnu+set}" = set; then :
5022 $as_echo_n "(cached) " >&6
5024 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5025 /* end confdefs.h. */
5038 if ac_fn_c_try_compile "$LINENO"; then :
5043 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5044 ac_cv_c_compiler_gnu=$ac_compiler_gnu
5047 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
5048 $as_echo "$ac_cv_c_compiler_gnu" >&6; }
5049 if test $ac_compiler_gnu = yes; then
5054 ac_test_CFLAGS=${CFLAGS+set}
5055 ac_save_CFLAGS=$CFLAGS
5056 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
5057 $as_echo_n "checking whether $CC accepts -g... " >&6; }
5058 if test "${ac_cv_prog_cc_g+set}" = set; then :
5059 $as_echo_n "(cached) " >&6
5061 ac_save_c_werror_flag=$ac_c_werror_flag
5062 ac_c_werror_flag=yes
5065 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5066 /* end confdefs.h. */
5076 if ac_fn_c_try_compile "$LINENO"; then :
5080 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5081 /* end confdefs.h. */
5091 if ac_fn_c_try_compile "$LINENO"; then :
5094 ac_c_werror_flag=$ac_save_c_werror_flag
5096 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5097 /* end confdefs.h. */
5107 if ac_fn_c_try_compile "$LINENO"; then :
5110 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5112 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5114 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5115 ac_c_werror_flag=$ac_save_c_werror_flag
5117 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
5118 $as_echo "$ac_cv_prog_cc_g" >&6; }
5119 if test "$ac_test_CFLAGS" = set; then
5120 CFLAGS=$ac_save_CFLAGS
5121 elif test $ac_cv_prog_cc_g = yes; then
5122 if test "$GCC" = yes; then
5128 if test "$GCC" = yes; then
5134 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
5135 $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
5136 if test "${ac_cv_prog_cc_c89+set}" = set; then :
5137 $as_echo_n "(cached) " >&6
5139 ac_cv_prog_cc_c89=no
5141 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5142 /* end confdefs.h. */
5145 #include <sys/types.h>
5146 #include <sys/stat.h>
5147 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
5148 struct buf { int x; };
5149 FILE * (*rcsopen) (struct buf *, struct stat *, int);
5150 static char *e (p, i)
5156 static char *f (char * (*g) (char **, int), char **p, ...)
5161 s = g (p, va_arg (v,int));
5166 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
5167 function prototypes and stuff, but not '\xHH' hex character constants.
5168 These don't provoke an error unfortunately, instead are silently treated
5169 as 'x'. The following induces an error, until -std is added to get
5170 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
5171 array size at least. It's necessary to write '\x00'==0 to get something
5172 that's true only with -std. */
5173 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
5175 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
5176 inside strings and character constants. */
5178 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
5180 int test (int i, double x);
5181 struct s1 {int (*f) (int a);};
5182 struct s2 {int (*f) (double a);};
5183 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
5189 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
5194 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
5195 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
5197 CC="$ac_save_CC $ac_arg"
5198 if ac_fn_c_try_compile "$LINENO"; then :
5199 ac_cv_prog_cc_c89=$ac_arg
5201 rm -f core conftest.err conftest.$ac_objext
5202 test "x$ac_cv_prog_cc_c89" != "xno" && break
5204 rm -f conftest.$ac_ext
5209 case "x$ac_cv_prog_cc_c89" in
5211 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
5212 $as_echo "none needed" >&6; } ;;
5214 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
5215 $as_echo "unsupported" >&6; } ;;
5217 CC="$CC $ac_cv_prog_cc_c89"
5218 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
5219 $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
5221 if test "x$ac_cv_prog_cc_c89" != xno; then :
5226 ac_cpp='$CPP $CPPFLAGS'
5227 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5228 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5229 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5230 DEPDIR="${am__leading_dot}deps"
5232 ac_config_commands="$ac_config_commands depfiles"
5235 am_make=${MAKE-make}
5236 cat > confinc << 'END'
5238 @echo this is the am__doit target
5241 # If we don't find an include directive, just comment out the code.
5242 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for style of include used by $am_make" >&5
5243 $as_echo_n "checking for style of include used by $am_make... " >&6; }
5247 # First try GNU make style include.
5248 echo "include confinc" > confmf
5249 # Ignore all kinds of additional output from `make'.
5250 case `$am_make -s -f confmf 2> /dev/null` in #(
5251 *the\ am__doit\ target*)
5257 # Now try BSD make style include.
5258 if test "$am__include" = "#"; then
5259 echo '.include
"confinc"' > confmf
5260 case `$am_make -s -f confmf 2> /dev/null` in #(
5261 *the\ am__doit\ target*)
5262 am__include=.include
5270 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $_am_result" >&5
5271 $as_echo "$_am_result" >&6; }
5272 rm -f confinc confmf
5274 # Check whether --enable-dependency-tracking was given.
5275 if test "${enable_dependency_tracking+set}" = set; then :
5276 enableval=$enable_dependency_tracking;
5279 if test "x$enable_dependency_tracking" != xno; then
5280 am_depcomp="$ac_aux_dir/depcomp"
5283 if test "x$enable_dependency_tracking" != xno
; then
5293 depcc
="$CC" am_compiler_list
=
5295 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
5296 $as_echo_n "checking dependency style of $depcc... " >&6; }
5297 if test "${am_cv_CC_dependencies_compiler_type+set}" = set; then :
5298 $as_echo_n "(cached) " >&6
5300 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
5301 # We make a subdir and do the tests there. Otherwise we can end up
5302 # making bogus files that we don't know about and never remove. For
5303 # instance it was reported that on HP-UX the gcc test will end up
5304 # making a dummy file named `D' -- because `-MD' means `put the output
5307 # Copy depcomp to subdir because otherwise we won't find it if we're
5308 # using a relative directory.
5309 cp "$am_depcomp" conftest.dir
5311 # We will build objects and dependencies in a subdirectory because
5312 # it helps to detect inapplicable dependency modes. For instance
5313 # both Tru64's cc and ICC support -MD to output dependencies as a
5314 # side effect of compilation, but ICC will put the dependencies in
5315 # the current directory while Tru64 will put them in the object
5319 am_cv_CC_dependencies_compiler_type
=none
5320 if test "$am_compiler_list" = ""; then
5321 am_compiler_list
=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
5324 case " $depcc " in #(
5325 *\
-arch\
*\
-arch\
*) am__universal
=true
;;
5328 for depmode
in $am_compiler_list; do
5329 # Setup a source with many dependencies, because some compilers
5330 # like to wrap large dependency lists on column 80 (with \), and
5331 # we should not choose a depcomp mode which is confused by this.
5333 # We need to recreate these files for each test, as the compiler may
5334 # overwrite some of them when testing with obscure command lines.
5335 # This happens at least with the AIX C compiler.
5337 for i
in 1 2 3 4 5 6; do
5338 echo '#include "conftst'$i'.h"' >> sub
/conftest.c
5339 # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
5340 # Solaris 8's {/usr,}/bin/sh.
5341 touch sub
/conftst
$i.h
5343 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
5345 # We check with `-c' and `-o' for the sake of the "dashmstdout"
5346 # mode. It turns out that the SunPro C++ compiler does not properly
5347 # handle `-M -o', and we need to detect this. Also, some Intel
5348 # versions had trouble with output in subdirs
5349 am__obj
=sub
/conftest.
${OBJEXT-o}
5350 am__minus_obj
="-o $am__obj"
5353 # This depmode causes a compiler race in universal mode.
5354 test "$am__universal" = false ||
continue
5357 # after this tag, mechanisms are not by side-effect, so they'll
5358 # only be used when explicitly requested
5359 if test "x$enable_dependency_tracking" = xyes
; then
5365 msvisualcpp | msvcmsys
)
5366 # This compiler won't grok `-c -o', but also, the minuso test has
5367 # not run yet. These depmodes are late enough in the game, and
5368 # so weak that their functioning should not be impacted.
5369 am__obj
=conftest.
${OBJEXT-o}
5374 if depmode
=$depmode \
5375 source=sub
/conftest.c object
=$am__obj \
5376 depfile
=sub
/conftest.Po tmpdepfile
=sub
/conftest.TPo \
5377 $SHELL .
/depcomp
$depcc -c $am__minus_obj sub
/conftest.c \
5378 >/dev
/null
2>conftest.err
&&
5379 grep sub
/conftst1.h sub
/conftest.Po
> /dev
/null
2>&1 &&
5380 grep sub
/conftst6.h sub
/conftest.Po
> /dev
/null
2>&1 &&
5381 grep $am__obj sub
/conftest.Po
> /dev
/null
2>&1 &&
5382 ${MAKE-make} -s -f confmf
> /dev
/null
2>&1; then
5383 # icc doesn't choke on unknown options, it will just issue warnings
5384 # or remarks (even with -Werror). So we grep stderr for any message
5385 # that says an option was ignored or not supported.
5386 # When given -MP, icc 7.0 and 7.1 complain thusly:
5387 # icc: Command line warning: ignoring option '-M'; no argument required
5388 # The diagnosis changed in icc 8.0:
5389 # icc: Command line remark: option '-MP' not supported
5390 if (grep 'ignoring option' conftest.err ||
5391 grep 'not supported' conftest.err
) >/dev
/null
2>&1; then :; else
5392 am_cv_CC_dependencies_compiler_type
=$depmode
5401 am_cv_CC_dependencies_compiler_type
=none
5405 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5
5406 $as_echo "$am_cv_CC_dependencies_compiler_type" >&6; }
5407 CCDEPMODE
=depmode
=$am_cv_CC_dependencies_compiler_type
5410 test "x$enable_dependency_tracking" != xno \
5411 && test "$am_cv_CC_dependencies_compiler_type" = gcc3
; then
5413 am__fastdepCC_FALSE
='#'
5415 am__fastdepCC_TRUE
='#'
5416 am__fastdepCC_FALSE
=
5420 if test "x$CC" != xcc
; then
5421 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC and cc understand -c and -o together" >&5
5422 $as_echo_n "checking whether $CC and cc understand -c and -o together... " >&6; }
5424 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether cc understands -c and -o together" >&5
5425 $as_echo_n "checking whether cc understands -c and -o together... " >&6; }
5427 set dummy
$CC; ac_cc
=`$as_echo "$2" |
5428 sed 's/[^a-zA-Z0-9_]/_/g;s/^[0-9]/_/'`
5429 if eval "test \"\${ac_cv_prog_cc_${ac_cc}_c_o+set}\"" = set; then :
5430 $as_echo_n "(cached) " >&6
5432 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
5433 /* end confdefs.h. */
5443 # Make sure it works both with $CC and with simple cc.
5444 # We do the test twice because some compilers refuse to overwrite an
5445 # existing .o file with -o, though they will create one.
5446 ac_try
='$CC -c conftest.$ac_ext -o conftest2.$ac_objext >&5'
5448 if { { case "(($ac_try" in
5449 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
5450 *) ac_try_echo=$ac_try;;
5452 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
5453 $as_echo "$ac_try_echo"; } >&5
5454 (eval "$ac_try") 2>&5
5456 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5457 test $ac_status = 0; } &&
5458 test -f conftest2.$ac_objext && { { case "(($ac_try" in
5459 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
5460 *) ac_try_echo
=$ac_try;;
5462 eval ac_try_echo
="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
5463 $as_echo "$ac_try_echo"; } >&5
5464 (eval "$ac_try") 2>&5
5466 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5467 test $ac_status = 0; };
5469 eval ac_cv_prog_cc_
${ac_cc}_c_o
=yes
5470 if test "x$CC" != xcc
; then
5471 # Test first that cc exists at all.
5472 if { ac_try
='cc -c conftest.$ac_ext >&5'
5473 { { case "(($ac_try" in
5474 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
5475 *) ac_try_echo=$ac_try;;
5477 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
5478 $as_echo "$ac_try_echo"; } >&5
5479 (eval "$ac_try") 2>&5
5481 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5482 test $ac_status = 0; }; }; then
5483 ac_try='cc -c conftest.$ac_ext -o conftest2.$ac_objext >&5'
5485 if { { case "(($ac_try" in
5486 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
5487 *) ac_try_echo
=$ac_try;;
5489 eval ac_try_echo
="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
5490 $as_echo "$ac_try_echo"; } >&5
5491 (eval "$ac_try") 2>&5
5493 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5494 test $ac_status = 0; } &&
5495 test -f conftest2.
$ac_objext && { { case "(($ac_try" in
5496 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
5497 *) ac_try_echo=$ac_try;;
5499 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
5500 $as_echo "$ac_try_echo"; } >&5
5501 (eval "$ac_try") 2>&5
5503 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5504 test $ac_status = 0; };
5509 # cc exists but doesn't like -o.
5510 eval ac_cv_prog_cc_${ac_cc}_c_o=no
5515 eval ac_cv_prog_cc_${ac_cc}_c_o=no
5517 rm -f core conftest*
5520 if eval test \$ac_cv_prog_cc_${ac_cc}_c_o = yes; then
5521 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5522 $as_echo "yes" >&6; }
5524 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5525 $as_echo "no" >&6; }
5527 $as_echo "#define NO_MINUS_C_MINUS_O 1" >>confdefs.h
5531 # FIXME: we rely on the cache variable name because
5532 # there is no other way.
5534 am_cc=`echo $2 |
sed 's/[^a-zA-Z0-9_]/_/g;s/^[0-9]/_/'`
5535 eval am_t=\$ac_cv_prog_cc_${am_cc}_c_o
5536 if test "$am_t" != yes; then
5537 # Losing compiler, so override with the script.
5538 # FIXME: It is wrong to rewrite CC.
5539 # But if we don't then we get into trouble of one sort or another.
5540 # A longer-term fix would be to have automake use am__CC in this case,
5541 # and then we could set am__CC="\$(top_srcdir)/compile \$(CC)"
5542 CC="$am_aux_dir/compile $CC"
5547 # Initialize gnulib right after verifying that the C compiler works.
5548 if test -n "$ac_tool_prefix"; then
5549 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
5550 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
5551 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5552 $as_echo_n "checking for $ac_word... " >&6; }
5553 if test "${ac_cv_prog_RANLIB+set}" = set; then :
5554 $as_echo_n "(cached) " >&6
5556 if test -n "$RANLIB"; then
5557 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
5559 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5563 test -z "$as_dir" && as_dir=.
5564 for ac_exec_ext in '' $ac_executable_extensions; do
5565 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5566 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
5567 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5576 RANLIB=$ac_cv_prog_RANLIB
5577 if test -n "$RANLIB"; then
5578 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
5579 $as_echo "$RANLIB" >&6; }
5581 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5582 $as_echo "no" >&6; }
5587 if test -z "$ac_cv_prog_RANLIB"; then
5588 ac_ct_RANLIB=$RANLIB
5589 # Extract the first word of "ranlib", so it can be a program name with args.
5590 set dummy ranlib; ac_word=$2
5591 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5592 $as_echo_n "checking for $ac_word... " >&6; }
5593 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then :
5594 $as_echo_n "(cached) " >&6
5596 if test -n "$ac_ct_RANLIB"; then
5597 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
5599 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5603 test -z "$as_dir" && as_dir=.
5604 for ac_exec_ext in '' $ac_executable_extensions; do
5605 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5606 ac_cv_prog_ac_ct_RANLIB="ranlib"
5607 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5616 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
5617 if test -n "$ac_ct_RANLIB"; then
5618 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
5619 $as_echo "$ac_ct_RANLIB" >&6; }
5621 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5622 $as_echo "no" >&6; }
5625 if test "x$ac_ct_RANLIB" = x; then
5628 case $cross_compiling:$ac_tool_warned in
5630 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5631 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5632 ac_tool_warned=yes ;;
5634 RANLIB=$ac_ct_RANLIB
5637 RANLIB="$ac_cv_prog_RANLIB"
5642 ac_cpp='$CPP $CPPFLAGS'
5643 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5644 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5645 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5646 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
5647 $as_echo_n "checking how to run the C preprocessor... " >&6; }
5648 # On Suns, sometimes $CPP names a directory.
5649 if test -n "$CPP" && test -d "$CPP"; then
5652 if test -z "$CPP"; then
5653 if test "${ac_cv_prog_CPP+set}" = set; then :
5654 $as_echo_n "(cached) " >&6
5656 # Double quotes because CPP needs to be expanded
5657 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
5660 for ac_c_preproc_warn_flag in '' yes
5662 # Use a header file that comes with gcc, so configuring glibc
5663 # with a fresh cross-compiler works.
5664 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5665 # <limits.h> exists even on freestanding compilers.
5666 # On the NeXT, cc -E runs the code through the compiler's parser,
5667 # not just through cpp. "Syntax error" is here to catch this case.
5668 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5669 /* end confdefs.h. */
5671 # include <limits.h>
5673 # include <assert.h>
5677 if ac_fn_c_try_cpp "$LINENO"; then :
5680 # Broken: fails on valid input.
5683 rm -f conftest.err conftest.i conftest.$ac_ext
5685 # OK, works on sane cases. Now check whether nonexistent headers
5686 # can be detected and how.
5687 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5688 /* end confdefs.h. */
5689 #include <ac_nonexistent.h>
5691 if ac_fn_c_try_cpp "$LINENO"; then :
5692 # Broken: success on invalid input.
5695 # Passes both tests.
5699 rm -f conftest.err conftest.i conftest.$ac_ext
5702 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
5703 rm -f conftest.i conftest.err conftest.
$ac_ext
5704 if $ac_preproc_ok; then :
5716 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
5717 $as_echo "$CPP" >&6; }
5719 for ac_c_preproc_warn_flag
in '' yes
5721 # Use a header file that comes with gcc, so configuring glibc
5722 # with a fresh cross-compiler works.
5723 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5724 # <limits.h> exists even on freestanding compilers.
5725 # On the NeXT, cc -E runs the code through the compiler's parser,
5726 # not just through cpp. "Syntax error" is here to catch this case.
5727 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
5728 /* end confdefs.h. */
5730 # include <limits.h>
5732 # include <assert.h>
5736 if ac_fn_c_try_cpp
"$LINENO"; then :
5739 # Broken: fails on valid input.
5742 rm -f conftest.err conftest.i conftest.
$ac_ext
5744 # OK, works on sane cases. Now check whether nonexistent headers
5745 # can be detected and how.
5746 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
5747 /* end confdefs.h. */
5748 #include <ac_nonexistent.h>
5750 if ac_fn_c_try_cpp
"$LINENO"; then :
5751 # Broken: success on invalid input.
5754 # Passes both tests.
5758 rm -f conftest.err conftest.i conftest.
$ac_ext
5761 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
5762 rm -f conftest.i conftest.err conftest.
$ac_ext
5763 if $ac_preproc_ok; then :
5766 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
5767 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
5768 as_fn_error $?
"C preprocessor \"$CPP\" fails sanity check
5769 See \`config.log' for more details" "$LINENO" 5 ; }
5773 ac_cpp
='$CPP $CPPFLAGS'
5774 ac_compile
='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5775 ac_link
='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5776 ac_compiler_gnu
=$ac_cv_c_compiler_gnu
5779 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
5780 $as_echo_n "checking for grep that handles long lines and -e... " >&6; }
5781 if test "${ac_cv_path_GREP+set}" = set; then :
5782 $as_echo_n "(cached) " >&6
5784 if test -z "$GREP"; then
5785 ac_path_GREP_found
=false
5786 # Loop through the user's path and test for each of PROGNAME-LIST
5787 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
5788 for as_dir
in $PATH$PATH_SEPARATOR/usr
/xpg
4/bin
5791 test -z "$as_dir" && as_dir
=.
5792 for ac_prog
in grep ggrep
; do
5793 for ac_exec_ext
in '' $ac_executable_extensions; do
5794 ac_path_GREP
="$as_dir/$ac_prog$ac_exec_ext"
5795 { test -f "$ac_path_GREP" && $as_test_x "$ac_path_GREP"; } ||
continue
5796 # Check for GNU ac_path_GREP and select it if it is found.
5797 # Check for GNU $ac_path_GREP
5798 case `"$ac_path_GREP" --version 2>&1` in
5800 ac_cv_path_GREP
="$ac_path_GREP" ac_path_GREP_found
=:;;
5803 $as_echo_n 0123456789 >"conftest.in"
5806 cat "conftest.in" "conftest.in" >"conftest.tmp"
5807 mv "conftest.tmp" "conftest.in"
5808 cp "conftest.in" "conftest.nl"
5809 $as_echo 'GREP' >> "conftest.nl"
5810 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev
/null ||
break
5811 diff "conftest.out" "conftest.nl" >/dev
/null
2>&1 ||
break
5812 as_fn_arith
$ac_count + 1 && ac_count
=$as_val
5813 if test $ac_count -gt ${ac_path_GREP_max-0}; then
5814 # Best one so far, save it but keep looking for a better one
5815 ac_cv_path_GREP
="$ac_path_GREP"
5816 ac_path_GREP_max
=$ac_count
5818 # 10*(2^10) chars as input seems more than enough
5819 test $ac_count -gt 10 && break
5821 rm -f conftest.
in conftest.tmp conftest.
nl conftest.out
;;
5824 $ac_path_GREP_found && break 3
5829 if test -z "$ac_cv_path_GREP"; then
5830 as_fn_error $?
"no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
5833 ac_cv_path_GREP
=$GREP
5837 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
5838 $as_echo "$ac_cv_path_GREP" >&6; }
5839 GREP
="$ac_cv_path_GREP"
5842 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
5843 $as_echo_n "checking for egrep... " >&6; }
5844 if test "${ac_cv_path_EGREP+set}" = set; then :
5845 $as_echo_n "(cached) " >&6
5847 if echo a |
$GREP -E '(a|b)' >/dev
/null
2>&1
5848 then ac_cv_path_EGREP
="$GREP -E"
5850 if test -z "$EGREP"; then
5851 ac_path_EGREP_found
=false
5852 # Loop through the user's path and test for each of PROGNAME-LIST
5853 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
5854 for as_dir
in $PATH$PATH_SEPARATOR/usr
/xpg
4/bin
5857 test -z "$as_dir" && as_dir
=.
5858 for ac_prog
in egrep; do
5859 for ac_exec_ext
in '' $ac_executable_extensions; do
5860 ac_path_EGREP
="$as_dir/$ac_prog$ac_exec_ext"
5861 { test -f "$ac_path_EGREP" && $as_test_x "$ac_path_EGREP"; } ||
continue
5862 # Check for GNU ac_path_EGREP and select it if it is found.
5863 # Check for GNU $ac_path_EGREP
5864 case `"$ac_path_EGREP" --version 2>&1` in
5866 ac_cv_path_EGREP
="$ac_path_EGREP" ac_path_EGREP_found
=:;;
5869 $as_echo_n 0123456789 >"conftest.in"
5872 cat "conftest.in" "conftest.in" >"conftest.tmp"
5873 mv "conftest.tmp" "conftest.in"
5874 cp "conftest.in" "conftest.nl"
5875 $as_echo 'EGREP' >> "conftest.nl"
5876 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev
/null ||
break
5877 diff "conftest.out" "conftest.nl" >/dev
/null
2>&1 ||
break
5878 as_fn_arith
$ac_count + 1 && ac_count
=$as_val
5879 if test $ac_count -gt ${ac_path_EGREP_max-0}; then
5880 # Best one so far, save it but keep looking for a better one
5881 ac_cv_path_EGREP
="$ac_path_EGREP"
5882 ac_path_EGREP_max
=$ac_count
5884 # 10*(2^10) chars as input seems more than enough
5885 test $ac_count -gt 10 && break
5887 rm -f conftest.
in conftest.tmp conftest.
nl conftest.out
;;
5890 $ac_path_EGREP_found && break 3
5895 if test -z "$ac_cv_path_EGREP"; then
5896 as_fn_error $?
"no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
5899 ac_cv_path_EGREP
=$EGREP
5904 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
5905 $as_echo "$ac_cv_path_EGREP" >&6; }
5906 EGREP
="$ac_cv_path_EGREP"
5909 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
5910 $as_echo_n "checking for ANSI C header files... " >&6; }
5911 if test "${ac_cv_header_stdc+set}" = set; then :
5912 $as_echo_n "(cached) " >&6
5914 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
5915 /* end confdefs.h. */
5929 if ac_fn_c_try_compile
"$LINENO"; then :
5930 ac_cv_header_stdc
=yes
5932 ac_cv_header_stdc
=no
5934 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
5936 if test $ac_cv_header_stdc = yes; then
5937 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
5938 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
5939 /* end confdefs.h. */
5943 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5944 $EGREP "memchr" >/dev
/null
2>&1; then :
5947 ac_cv_header_stdc
=no
5953 if test $ac_cv_header_stdc = yes; then
5954 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
5955 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
5956 /* end confdefs.h. */
5960 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5961 $EGREP "free" >/dev
/null
2>&1; then :
5964 ac_cv_header_stdc
=no
5970 if test $ac_cv_header_stdc = yes; then
5971 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
5972 if test "$cross_compiling" = yes; then :
5975 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
5976 /* end confdefs.h. */
5979 #if ((' ' & 0x0FF) == 0x020)
5980 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
5981 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
5983 # define ISLOWER(c) \
5984 (('a' <= (c) && (c) <= 'i') \
5985 || ('j' <= (c) && (c) <= 'r') \
5986 || ('s' <= (c) && (c) <= 'z'))
5987 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
5990 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
5995 for (i = 0; i < 256; i++)
5996 if (XOR (islower (i), ISLOWER (i))
5997 || toupper (i) != TOUPPER (i))
6002 if ac_fn_c_try_run
"$LINENO"; then :
6005 ac_cv_header_stdc
=no
6007 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
6008 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
6013 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
6014 $as_echo "$ac_cv_header_stdc" >&6; }
6015 if test $ac_cv_header_stdc = yes; then
6017 $as_echo "#define STDC_HEADERS 1" >>confdefs.h
6021 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
6022 for ac_header
in sys
/types.h sys
/stat.h stdlib.h string.h memory.h
strings.h \
6023 inttypes.h stdint.h unistd.h
6025 as_ac_Header
=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
6026 ac_fn_c_check_header_compile
"$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
6028 if eval test \"x\$
"$as_ac_Header"\" = x
"yes"; then :
6029 cat >>confdefs.h
<<_ACEOF
6030 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
6041 ac_fn_c_check_header_mongrel
"$LINENO" "minix/config.h" "ac_cv_header_minix_config_h" "$ac_includes_default"
6042 if test "x$ac_cv_header_minix_config_h" = x
""yes; then :
6049 if test "$MINIX" = yes; then
6051 $as_echo "#define _POSIX_SOURCE 1" >>confdefs.h
6054 $as_echo "#define _POSIX_1_SOURCE 2" >>confdefs.h
6057 $as_echo "#define _MINIX 1" >>confdefs.h
6064 $as_echo "#define _XOPEN_SOURCE 500" >>confdefs.h
6070 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether it is safe to define __EXTENSIONS__" >&5
6071 $as_echo_n "checking whether it is safe to define __EXTENSIONS__... " >&6; }
6072 if test "${ac_cv_safe_to_define___extensions__+set}" = set; then :
6073 $as_echo_n "(cached) " >&6
6075 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
6076 /* end confdefs.h. */
6078 # define __EXTENSIONS__ 1
6079 $ac_includes_default
6088 if ac_fn_c_try_compile
"$LINENO"; then :
6089 ac_cv_safe_to_define___extensions__
=yes
6091 ac_cv_safe_to_define___extensions__
=no
6093 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
6095 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_safe_to_define___extensions__" >&5
6096 $as_echo "$ac_cv_safe_to_define___extensions__" >&6; }
6097 test $ac_cv_safe_to_define___extensions__ = yes &&
6098 $as_echo "#define __EXTENSIONS__ 1" >>confdefs.h
6100 $as_echo "#define _ALL_SOURCE 1" >>confdefs.h
6102 $as_echo "#define _GNU_SOURCE 1" >>confdefs.h
6104 $as_echo "#define _POSIX_PTHREAD_SEMANTICS 1" >>confdefs.h
6106 $as_echo "#define _TANDEM_SOURCE 1" >>confdefs.h
6117 # Code from module arg-nonnull:
6118 # Code from module c++defs:
6119 # Code from module crypto/md5:
6120 # Code from module dosname:
6121 # Code from module dtoastr:
6122 # Code from module extensions:
6124 # Code from module filemode:
6125 # Code from module getloadavg:
6126 # Code from module getopt-gnu:
6127 # Code from module getopt-posix:
6128 # Code from module gettext-h:
6129 # Code from module ignore-value:
6130 # Code from module include_next:
6131 # Code from module intprops:
6132 # Code from module lstat:
6133 # Code from module mktime:
6134 # Code from module multiarch:
6135 # Code from module readlink:
6136 # Code from module stat:
6137 # Code from module stdbool:
6138 # Code from module stddef:
6139 # Code from module stdint:
6140 # Code from module stdlib:
6141 # Code from module strftime:
6142 # Code from module symlink:
6143 # Code from module sys_stat:
6144 # Code from module time:
6145 # Code from module time_r:
6146 # Code from module unistd:
6147 # Code from module warn-on-use:
6150 # On Suns, sometimes $CPP names a directory.
6151 if test -n "$CPP" && test -d "$CPP"; then
6155 ## If not using gcc, and on Solaris, and no CPP specified, see if
6156 ## using a Sun compiler, which needs -Xs to prevent whitespace.
6157 if test x
"$GCC" != xyes
&& test x
"$emacs_check_sunpro_c" = xyes
&& \
6158 test x
"$CPP" = x
; then
6159 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using a Sun C compiler" >&5
6160 $as_echo_n "checking whether we are using a Sun C compiler... " >&6; }
6161 if test "${emacs_cv_sunpro_c+set}" = set; then :
6162 $as_echo_n "(cached) " >&6
6164 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
6165 /* end confdefs.h. */
6178 if ac_fn_c_try_link
"$LINENO"; then :
6179 emacs_cv_sunpro_c
=yes
6181 emacs_cv_sunpro_c
=no
6183 rm -f core conftest.err conftest.
$ac_objext \
6184 conftest
$ac_exeext conftest.
$ac_ext
6187 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $emacs_cv_sunpro_c" >&5
6188 $as_echo "$emacs_cv_sunpro_c" >&6; }
6190 if test x
"$emacs_cv_sunpro_c" = xyes
; then
6191 NON_GNU_CPP
="$CC -E -Xs"
6195 #### Some systems specify a CPP to use unless we are using GCC.
6196 #### Now that we know whether we are using GCC, we can decide whether
6197 #### to use that one.
6198 if test "x$NON_GNU_CPP" != x
&& test x
$GCC != xyes
&& test "x$CPP" = x
6203 #### Some systems specify a CC to use unless we are using GCC.
6204 #### Now that we know whether we are using GCC, we can decide whether
6205 #### to use that one.
6206 if test "x$NON_GNU_CC" != x
&& test x
$GCC != xyes
&&
6207 test x
$cc_specified != xyes
6212 if test x
$GCC = xyes
; then
6213 test "x$GCC_TEST_OPTIONS" != x
&& CC
="$CC $GCC_TEST_OPTIONS"
6215 test "x$NON_GCC_TEST_OPTIONS" != x
&& CC
="$CC $NON_GCC_TEST_OPTIONS"
6218 ### Use -Wdeclaration-after-statement if the compiler supports it
6219 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether gcc understands -Wdeclaration-after-statement" >&5
6220 $as_echo_n "checking whether gcc understands -Wdeclaration-after-statement... " >&6; }
6221 SAVE_CFLAGS
="$CFLAGS"
6222 CFLAGS
="$CFLAGS -Wdeclaration-after-statement"
6223 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
6224 /* end confdefs.h. */
6234 if ac_fn_c_try_compile
"$LINENO"; then :
6239 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
6240 if test $has_option = yes; then
6241 C_WARNINGS_SWITCH
="-Wdeclaration-after-statement $C_WARNINGS_SWITCH"
6243 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $has_option" >&5
6244 $as_echo "$has_option" >&6; }
6245 CFLAGS
="$SAVE_CFLAGS"
6249 ### Use -Wold-style-definition if the compiler supports it
6250 # This can be removed when conversion to standard C is finished.
6251 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether gcc understands -Wold-style-definition" >&5
6252 $as_echo_n "checking whether gcc understands -Wold-style-definition... " >&6; }
6253 SAVE_CFLAGS
="$CFLAGS"
6254 CFLAGS
="$CFLAGS -Wold-style-definition"
6255 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
6256 /* end confdefs.h. */
6266 if ac_fn_c_try_compile
"$LINENO"; then :
6271 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
6272 if test $has_option = yes; then
6273 C_WARNINGS_SWITCH
="-Wold-style-definition $C_WARNINGS_SWITCH"
6275 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $has_option" >&5
6276 $as_echo "$has_option" >&6; }
6277 CFLAGS
="$SAVE_CFLAGS"
6281 ### Use -Wimplicit-function-declaration if the compiler supports it
6282 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether gcc understands -Wimplicit-function-declaration" >&5
6283 $as_echo_n "checking whether gcc understands -Wimplicit-function-declaration... " >&6; }
6284 SAVE_CFLAGS
="$CFLAGS"
6285 CFLAGS
="$CFLAGS -Wimplicit-function-declaration"
6286 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
6287 /* end confdefs.h. */
6297 if ac_fn_c_try_compile
"$LINENO"; then :
6302 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
6303 if test $has_option = yes; then
6304 C_WARNINGS_SWITCH
="-Wimplicit-function-declaration $C_WARNINGS_SWITCH"
6306 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $has_option" >&5
6307 $as_echo "$has_option" >&6; }
6308 CFLAGS
="$SAVE_CFLAGS"
6315 #### Some other nice autoconf tests.
6318 ac_cpp
='$CPP $CPPFLAGS'
6319 ac_compile
='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6320 ac_link
='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6321 ac_compiler_gnu
=$ac_cv_c_compiler_gnu
6322 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
6323 $as_echo_n "checking how to run the C preprocessor... " >&6; }
6324 # On Suns, sometimes $CPP names a directory.
6325 if test -n "$CPP" && test -d "$CPP"; then
6328 if test -z "$CPP"; then
6329 if test "${ac_cv_prog_CPP+set}" = set; then :
6330 $as_echo_n "(cached) " >&6
6332 # Double quotes because CPP needs to be expanded
6333 for CPP
in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
6336 for ac_c_preproc_warn_flag
in '' yes
6338 # Use a header file that comes with gcc, so configuring glibc
6339 # with a fresh cross-compiler works.
6340 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
6341 # <limits.h> exists even on freestanding compilers.
6342 # On the NeXT, cc -E runs the code through the compiler's parser,
6343 # not just through cpp. "Syntax error" is here to catch this case.
6344 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
6345 /* end confdefs.h. */
6347 # include <limits.h>
6349 # include <assert.h>
6353 if ac_fn_c_try_cpp
"$LINENO"; then :
6356 # Broken: fails on valid input.
6359 rm -f conftest.err conftest.i conftest.
$ac_ext
6361 # OK, works on sane cases. Now check whether nonexistent headers
6362 # can be detected and how.
6363 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
6364 /* end confdefs.h. */
6365 #include <ac_nonexistent.h>
6367 if ac_fn_c_try_cpp
"$LINENO"; then :
6368 # Broken: success on invalid input.
6371 # Passes both tests.
6375 rm -f conftest.err conftest.i conftest.
$ac_ext
6378 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
6379 rm -f conftest.i conftest.err conftest.
$ac_ext
6380 if $ac_preproc_ok; then :
6392 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
6393 $as_echo "$CPP" >&6; }
6395 for ac_c_preproc_warn_flag
in '' yes
6397 # Use a header file that comes with gcc, so configuring glibc
6398 # with a fresh cross-compiler works.
6399 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
6400 # <limits.h> exists even on freestanding compilers.
6401 # On the NeXT, cc -E runs the code through the compiler's parser,
6402 # not just through cpp. "Syntax error" is here to catch this case.
6403 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
6404 /* end confdefs.h. */
6406 # include <limits.h>
6408 # include <assert.h>
6412 if ac_fn_c_try_cpp
"$LINENO"; then :
6415 # Broken: fails on valid input.
6418 rm -f conftest.err conftest.i conftest.
$ac_ext
6420 # OK, works on sane cases. Now check whether nonexistent headers
6421 # can be detected and how.
6422 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
6423 /* end confdefs.h. */
6424 #include <ac_nonexistent.h>
6426 if ac_fn_c_try_cpp
"$LINENO"; then :
6427 # Broken: success on invalid input.
6430 # Passes both tests.
6434 rm -f conftest.err conftest.i conftest.
$ac_ext
6437 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
6438 rm -f conftest.i conftest.err conftest.
$ac_ext
6439 if $ac_preproc_ok; then :
6442 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
6443 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
6444 as_fn_error $?
"C preprocessor \"$CPP\" fails sanity check
6445 See \`config.log' for more details" "$LINENO" 5 ; }
6449 ac_cpp
='$CPP $CPPFLAGS'
6450 ac_compile
='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6451 ac_link
='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6452 ac_compiler_gnu
=$ac_cv_c_compiler_gnu
6455 if test "x$RANLIB" = x
; then
6456 if test -n "$ac_tool_prefix"; then
6457 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
6458 set dummy
${ac_tool_prefix}ranlib
; ac_word
=$2
6459 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6460 $as_echo_n "checking for $ac_word... " >&6; }
6461 if test "${ac_cv_prog_RANLIB+set}" = set; then :
6462 $as_echo_n "(cached) " >&6
6464 if test -n "$RANLIB"; then
6465 ac_cv_prog_RANLIB
="$RANLIB" # Let the user override the test.
6467 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
6471 test -z "$as_dir" && as_dir
=.
6472 for ac_exec_ext
in '' $ac_executable_extensions; do
6473 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6474 ac_cv_prog_RANLIB
="${ac_tool_prefix}ranlib"
6475 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6484 RANLIB
=$ac_cv_prog_RANLIB
6485 if test -n "$RANLIB"; then
6486 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
6487 $as_echo "$RANLIB" >&6; }
6489 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6490 $as_echo "no" >&6; }
6495 if test -z "$ac_cv_prog_RANLIB"; then
6496 ac_ct_RANLIB
=$RANLIB
6497 # Extract the first word of "ranlib", so it can be a program name with args.
6498 set dummy ranlib
; ac_word
=$2
6499 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6500 $as_echo_n "checking for $ac_word... " >&6; }
6501 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then :
6502 $as_echo_n "(cached) " >&6
6504 if test -n "$ac_ct_RANLIB"; then
6505 ac_cv_prog_ac_ct_RANLIB
="$ac_ct_RANLIB" # Let the user override the test.
6507 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
6511 test -z "$as_dir" && as_dir
=.
6512 for ac_exec_ext
in '' $ac_executable_extensions; do
6513 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6514 ac_cv_prog_ac_ct_RANLIB
="ranlib"
6515 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6524 ac_ct_RANLIB
=$ac_cv_prog_ac_ct_RANLIB
6525 if test -n "$ac_ct_RANLIB"; then
6526 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
6527 $as_echo "$ac_ct_RANLIB" >&6; }
6529 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6530 $as_echo "no" >&6; }
6533 if test "x$ac_ct_RANLIB" = x
; then
6536 case $cross_compiling:$ac_tool_warned in
6538 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6539 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6540 ac_tool_warned
=yes ;;
6542 RANLIB
=$ac_ct_RANLIB
6545 RANLIB
="$ac_cv_prog_RANLIB"
6550 ## Although we're running on an amd64 kernel, we're actually compiling for
6551 ## the x86 architecture. The user should probably have provided an
6552 ## explicit --build to `configure', but if everything else than the kernel
6553 ## is running in i386 mode, we can help them out.
6554 if test "$machine" = "amdx86-64"; then
6555 ac_fn_c_check_decl
"$LINENO" "i386" "ac_cv_have_decl_i386" "$ac_includes_default"
6556 if test "x$ac_cv_have_decl_i386" = x
""yes; then :
6560 if test "$ac_cv_have_decl_i386" = "yes"; then
6561 canonical
=`echo "$canonical" | sed -e 's/^amd64/i386/' -e 's/^x86_64/i386/'`
6563 machfile
="m/${machine}.h"
6567 # Extract the first word of "install-info", so it can be a program name with args.
6568 set dummy install-info
; ac_word
=$2
6569 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6570 $as_echo_n "checking for $ac_word... " >&6; }
6571 if test "${ac_cv_path_INSTALL_INFO+set}" = set; then :
6572 $as_echo_n "(cached) " >&6
6574 case $INSTALL_INFO in
6576 ac_cv_path_INSTALL_INFO
="$INSTALL_INFO" # Let the user override the test with a path.
6579 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
6583 test -z "$as_dir" && as_dir
=.
6584 for ac_exec_ext
in '' $ac_executable_extensions; do
6585 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6586 ac_cv_path_INSTALL_INFO
="$as_dir/$ac_word$ac_exec_ext"
6587 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6597 INSTALL_INFO
=$ac_cv_path_INSTALL_INFO
6598 if test -n "$INSTALL_INFO"; then
6599 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL_INFO" >&5
6600 $as_echo "$INSTALL_INFO" >&6; }
6602 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6603 $as_echo "no" >&6; }
6607 # Extract the first word of "install-info", so it can be a program name with args.
6608 set dummy install-info
; ac_word
=$2
6609 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6610 $as_echo_n "checking for $ac_word... " >&6; }
6611 if test "${ac_cv_path_INSTALL_INFO+set}" = set; then :
6612 $as_echo_n "(cached) " >&6
6614 case $INSTALL_INFO in
6616 ac_cv_path_INSTALL_INFO
="$INSTALL_INFO" # Let the user override the test with a path.
6619 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
6620 for as_dir
in /usr
/sbin
6623 test -z "$as_dir" && as_dir
=.
6624 for ac_exec_ext
in '' $ac_executable_extensions; do
6625 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6626 ac_cv_path_INSTALL_INFO
="$as_dir/$ac_word$ac_exec_ext"
6627 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6637 INSTALL_INFO
=$ac_cv_path_INSTALL_INFO
6638 if test -n "$INSTALL_INFO"; then
6639 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL_INFO" >&5
6640 $as_echo "$INSTALL_INFO" >&6; }
6642 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6643 $as_echo "no" >&6; }
6647 # Extract the first word of "install-info", so it can be a program name with args.
6648 set dummy install-info
; ac_word
=$2
6649 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6650 $as_echo_n "checking for $ac_word... " >&6; }
6651 if test "${ac_cv_path_INSTALL_INFO+set}" = set; then :
6652 $as_echo_n "(cached) " >&6
6654 case $INSTALL_INFO in
6656 ac_cv_path_INSTALL_INFO
="$INSTALL_INFO" # Let the user override the test with a path.
6659 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
6663 test -z "$as_dir" && as_dir
=.
6664 for ac_exec_ext
in '' $ac_executable_extensions; do
6665 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6666 ac_cv_path_INSTALL_INFO
="$as_dir/$ac_word$ac_exec_ext"
6667 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6674 test -z "$ac_cv_path_INSTALL_INFO" && ac_cv_path_INSTALL_INFO
=":"
6678 INSTALL_INFO
=$ac_cv_path_INSTALL_INFO
6679 if test -n "$INSTALL_INFO"; then
6680 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL_INFO" >&5
6681 $as_echo "$INSTALL_INFO" >&6; }
6683 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6684 $as_echo "no" >&6; }
6688 # Extract the first word of "gzip", so it can be a program name with args.
6689 set dummy
gzip; ac_word
=$2
6690 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6691 $as_echo_n "checking for $ac_word... " >&6; }
6692 if test "${ac_cv_path_GZIP_PROG+set}" = set; then :
6693 $as_echo_n "(cached) " >&6
6697 ac_cv_path_GZIP_PROG
="$GZIP_PROG" # Let the user override the test with a path.
6700 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
6704 test -z "$as_dir" && as_dir
=.
6705 for ac_exec_ext
in '' $ac_executable_extensions; do
6706 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6707 ac_cv_path_GZIP_PROG
="$as_dir/$ac_word$ac_exec_ext"
6708 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6718 GZIP_PROG
=$ac_cv_path_GZIP_PROG
6719 if test -n "$GZIP_PROG"; then
6720 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GZIP_PROG" >&5
6721 $as_echo "$GZIP_PROG" >&6; }
6723 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6724 $as_echo "no" >&6; }
6730 ## Need makeinfo >= 4.6 (?) to build the manuals.
6731 # Extract the first word of "makeinfo", so it can be a program name with args.
6732 set dummy makeinfo
; ac_word
=$2
6733 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6734 $as_echo_n "checking for $ac_word... " >&6; }
6735 if test "${ac_cv_path_MAKEINFO+set}" = set; then :
6736 $as_echo_n "(cached) " >&6
6740 ac_cv_path_MAKEINFO
="$MAKEINFO" # Let the user override the test with a path.
6743 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
6747 test -z "$as_dir" && as_dir
=.
6748 for ac_exec_ext
in '' $ac_executable_extensions; do
6749 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6750 ac_cv_path_MAKEINFO
="$as_dir/$ac_word$ac_exec_ext"
6751 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6758 test -z "$ac_cv_path_MAKEINFO" && ac_cv_path_MAKEINFO
="no"
6762 MAKEINFO
=$ac_cv_path_MAKEINFO
6763 if test -n "$MAKEINFO"; then
6764 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAKEINFO" >&5
6765 $as_echo "$MAKEINFO" >&6; }
6767 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6768 $as_echo "no" >&6; }
6772 if test "$MAKEINFO" != "no" && \
6773 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
6777 ## Makeinfo is unusual. For a released Emacs, the manuals are
6778 ## pre-built, and not deleted by the normal clean rules. makeinfo is
6779 ## therefore in the category of "special tools" not normally required, which
6780 ## configure does not have to check for (eg autoconf itself).
6781 ## In a Bazaar checkout on the other hand, the manuals are not included.
6782 ## So makeinfo is a requirement to build from Bazaar, and configure
6783 ## should test for it as it does for any other build requirement.
6784 ## We use the presence of $srcdir/info/emacs to distinguish a release,
6785 ## with pre-built manuals, from a Bazaar checkout.
6788 if test "$MAKEINFO" = "no"; then
6790 if test "x${with_makeinfo}" = "xno"; then
6792 elif test ! -e $srcdir/info
/emacs
; then
6793 as_fn_error $?
"You do not seem to have makeinfo >= 4.6, and your
6794 source tree does not seem to have pre-built manuals in the \`info' directory.
6795 Either install a suitable version of makeinfo, or re-run configure
6796 with the \`--without-makeinfo' option to build without the manuals. " "$LINENO" 5
6802 if test x
$GCC = xyes
; then
6803 test "x$GCC_LINK_TEST_OPTIONS" != x
&& \
6804 ac_link
="$ac_link $GCC_LINK_TEST_OPTIONS"
6806 test "x$NON_GCC_LINK_TEST_OPTIONS" != x
&& \
6807 ac_link
="$ac_link $NON_GCC_LINK_TEST_OPTIONS"
6811 late_LDFLAGS
=$LDFLAGS
6812 if test x
$GCC = xyes
; then
6813 LDFLAGS
="$LDFLAGS -Wl,-znocombreloc"
6815 LDFLAGS
="$LDFLAGS -znocombreloc"
6818 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -znocombreloc" >&5
6819 $as_echo_n "checking for -znocombreloc... " >&6; }
6820 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
6821 /* end confdefs.h. */
6831 if ac_fn_c_try_link
"$LINENO"; then :
6832 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
6833 $as_echo "yes" >&6; }
6835 LDFLAGS
=$late_LDFLAGS
6836 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6837 $as_echo "no" >&6; }
6839 rm -f core conftest.err conftest.
$ac_objext \
6840 conftest
$ac_exeext conftest.
$ac_ext
6843 # The value of CPP is a quoted variable reference, so we need to do this
6844 # to get its actual value...
6845 CPP
=`eval "echo $CPP"`
6848 test "x$CANNOT_DUMP" = "x" && CANNOT_DUMP
=no
6850 your-opsys-here
) CANNOT_DUMP
=yes ;;
6853 test "$CANNOT_DUMP" = "yes" && \
6855 $as_echo "#define CANNOT_DUMP 1" >>confdefs.h
6861 UNEXEC_OBJ
=unexelf.o
6863 # MSDOS uses unexcoff.o
6864 # MSWindows uses unexw32.o
6866 UNEXEC_OBJ
=unexaix.o
6872 UNEXEC_OBJ
=unexmacosx.o
6875 UNEXEC_OBJ
=unexhp9k800.o
6878 # Use the Solaris dldump() function, called from unexsol.c, to dump
6879 # emacs, instead of the generic ELF dump code found in unexelf.c.
6880 # The resulting binary has a complete symbol table, and is better
6881 # for debugging and other observability tools (debuggers, pstack, etc).
6883 # If you encounter a problem using dldump(), please consider sending
6884 # a message to the OpenSolaris tools-linking mailing list:
6885 # http://mail.opensolaris.org/mailman/listinfo/tools-linking
6887 # It is likely that dldump() works with older Solaris too, but this has
6888 # not been tested, so for now this change is for Solaris 10 or newer.
6889 UNEXEC_OBJ
=unexsol.o
6896 ## Let `ld' find image libs and similar things in /usr/local/lib.
6897 ## The system compiler, GCC, has apparently been modified to not
6898 ## look there, contrary to what a stock GCC would do.
6899 LD_SWITCH_SYSTEM
=-L/usr
/local
/lib
6903 ## cpp test was "ifdef __mips__", but presumably this is equivalent...
6904 case $host_cpu in mips
*) LD_SWITCH_SYSTEM
="-G 0";; esac
6908 LD_SWITCH_SYSTEM
="-Wl,-rpath,/usr/pkg/lib -L/usr/pkg/lib -Wl,-rpath,/usr/local/lib -L/usr/local/lib"
6912 ## Han Boetes <han@mijncomputer.nl> says this is necessary,
6913 ## otherwise Emacs dumps core on elf systems.
6914 LD_SWITCH_SYSTEM
="-Z"
6919 ac_link
="$ac_link $LD_SWITCH_SYSTEM"
6921 ## This setting of LD_SWITCH_SYSTEM references LD_SWITCH_X_SITE_AUX,
6922 ## which has not been defined yet. When this was handled with cpp,
6923 ## it was expanded to null when configure sourced the s/*.h file.
6924 ## Thus LD_SWITCH_SYSTEM had different values in configure and the Makefiles.
6925 ## FIXME it would be cleaner to put this in LD_SWITCH_SYSTEM_TEMACS
6926 ## (or somesuch), but because it is supposed to go at the _front_
6927 ## of LD_SWITCH_SYSTEM, we cannot do that in exactly the same way.
6928 ## Compare with the gnu-linux case below, which added to the end
6929 ## of LD_SWITCH_SYSTEM, and so can instead go at the front of
6930 ## LD_SWITCH_SYSTEM_TEMACS.
6933 ## _AUX_RPATH is like _AUX, but uses -rpath instead of -R.
6934 LD_SWITCH_SYSTEM
="\$(LD_SWITCH_X_SITE_AUX_RPATH) $LD_SWITCH_SYSTEM" ;;
6939 if test "$machine" = "alpha"; then
6940 ac_fn_c_check_decl
"$LINENO" "__ELF__" "ac_cv_have_decl___ELF__" "$ac_includes_default"
6941 if test "x$ac_cv_have_decl___ELF__" = x
""yes; then :
6945 if test "$ac_cv_have_decl___ELF__" = "yes"; then
6946 ## With ELF, make sure that all common symbols get allocated to in the
6947 ## data section. Otherwise, the dump of temacs may miss variables in
6948 ## the shared library that have been initialized. For example, with
6949 ## GNU libc, __malloc_initialized would normally be resolved to the
6950 ## shared library's .bss section, which is fatal.
6951 if test "x$GCC" = "xyes"; then
6952 C_SWITCH_MACHINE
="-fno-common"
6954 as_fn_error $?
"What gives? Fix me if DEC Unix supports ELF now." "$LINENO" 5
6957 UNEXEC_OBJ
=unexalpha.o
6965 ## Some programs in src produce warnings saying certain subprograms
6966 ## are too complex and need a MAXMEM value greater than 2000 for
6967 ## additional optimization. --nils@exp-math.uni-essen.de
6968 test "$opsys" = "aix4.2" && test "x$GCC" != "xyes" && \
6969 C_SWITCH_SYSTEM
="-ma -qmaxmem=4000"
6970 ## gnu-linux might need -D_BSD_SOURCE on old libc5 systems.
6971 ## It is redundant in glibc2, since we define _GNU_SOURCE.
6977 ## IBM's X11R5 uses -lIM and -liconv in AIX 3.2.2.
6978 aix4-2
) LIBS_SYSTEM
="-lrts -lIM -liconv" ;;
6980 freebsd
) LIBS_SYSTEM
="-lutil" ;;
6982 hpux
*) LIBS_SYSTEM
="-l:libdld.sl" ;;
6984 sol2
*) LIBS_SYSTEM
="-lsocket -lnsl" ;;
6986 ## Motif needs -lgen.
6987 unixware
) LIBS_SYSTEM
="-lsocket -lnsl -lelf -lgen" ;;
6992 ### Make sure subsequent tests use flags consistent with the build flags.
6994 if test x
"${OVERRIDE_CPPFLAGS}" != x
; then
6995 CPPFLAGS
="${OVERRIDE_CPPFLAGS}"
6997 CPPFLAGS
="$C_SWITCH_SYSTEM $C_SWITCH_MACHINE $CPPFLAGS"
7000 # Check whether --enable-largefile was given.
7001 if test "${enable_largefile+set}" = set; then :
7002 enableval
=$enable_largefile;
7005 if test "$enable_largefile" != no
; then
7007 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for special C compiler options needed for large files" >&5
7008 $as_echo_n "checking for special C compiler options needed for large files... " >&6; }
7009 if test "${ac_cv_sys_largefile_CC+set}" = set; then :
7010 $as_echo_n "(cached) " >&6
7012 ac_cv_sys_largefile_CC
=no
7013 if test "$GCC" != yes; then
7016 # IRIX 6.2 and later do not support large files by default,
7017 # so use the C compiler's -n32 option if that helps.
7018 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
7019 /* end confdefs.h. */
7020 #include <sys/types.h>
7021 /* Check that off_t can represent 2**63 - 1 correctly.
7022 We can't simply define LARGE_OFF_T to be 9223372036854775807,
7023 since some C++ compilers masquerading as C compilers
7024 incorrectly reject 9223372036854775807. */
7025 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
7026 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
7027 && LARGE_OFF_T % 2147483647 == 1)
7037 if ac_fn_c_try_compile
"$LINENO"; then :
7040 rm -f core conftest.err conftest.
$ac_objext
7042 if ac_fn_c_try_compile
"$LINENO"; then :
7043 ac_cv_sys_largefile_CC
=' -n32'; break
7045 rm -f core conftest.err conftest.
$ac_objext
7049 rm -f conftest.
$ac_ext
7052 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_largefile_CC" >&5
7053 $as_echo "$ac_cv_sys_largefile_CC" >&6; }
7054 if test "$ac_cv_sys_largefile_CC" != no
; then
7055 CC
=$CC$ac_cv_sys_largefile_CC
7058 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _FILE_OFFSET_BITS value needed for large files" >&5
7059 $as_echo_n "checking for _FILE_OFFSET_BITS value needed for large files... " >&6; }
7060 if test "${ac_cv_sys_file_offset_bits+set}" = set; then :
7061 $as_echo_n "(cached) " >&6
7064 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
7065 /* end confdefs.h. */
7066 #include <sys/types.h>
7067 /* Check that off_t can represent 2**63 - 1 correctly.
7068 We can't simply define LARGE_OFF_T to be 9223372036854775807,
7069 since some C++ compilers masquerading as C compilers
7070 incorrectly reject 9223372036854775807. */
7071 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
7072 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
7073 && LARGE_OFF_T % 2147483647 == 1)
7083 if ac_fn_c_try_compile
"$LINENO"; then :
7084 ac_cv_sys_file_offset_bits
=no
; break
7086 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
7087 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
7088 /* end confdefs.h. */
7089 #define _FILE_OFFSET_BITS 64
7090 #include <sys/types.h>
7091 /* Check that off_t can represent 2**63 - 1 correctly.
7092 We can't simply define LARGE_OFF_T to be 9223372036854775807,
7093 since some C++ compilers masquerading as C compilers
7094 incorrectly reject 9223372036854775807. */
7095 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
7096 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
7097 && LARGE_OFF_T % 2147483647 == 1)
7107 if ac_fn_c_try_compile
"$LINENO"; then :
7108 ac_cv_sys_file_offset_bits
=64; break
7110 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
7111 ac_cv_sys_file_offset_bits
=unknown
7115 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_file_offset_bits" >&5
7116 $as_echo "$ac_cv_sys_file_offset_bits" >&6; }
7117 case $ac_cv_sys_file_offset_bits in #(
7120 cat >>confdefs.h
<<_ACEOF
7121 #define _FILE_OFFSET_BITS $ac_cv_sys_file_offset_bits
7126 if test $ac_cv_sys_file_offset_bits = unknown
; then
7127 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _LARGE_FILES value needed for large files" >&5
7128 $as_echo_n "checking for _LARGE_FILES value needed for large files... " >&6; }
7129 if test "${ac_cv_sys_large_files+set}" = set; then :
7130 $as_echo_n "(cached) " >&6
7133 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
7134 /* end confdefs.h. */
7135 #include <sys/types.h>
7136 /* Check that off_t can represent 2**63 - 1 correctly.
7137 We can't simply define LARGE_OFF_T to be 9223372036854775807,
7138 since some C++ compilers masquerading as C compilers
7139 incorrectly reject 9223372036854775807. */
7140 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
7141 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
7142 && LARGE_OFF_T % 2147483647 == 1)
7152 if ac_fn_c_try_compile
"$LINENO"; then :
7153 ac_cv_sys_large_files
=no
; break
7155 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
7156 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
7157 /* end confdefs.h. */
7158 #define _LARGE_FILES 1
7159 #include <sys/types.h>
7160 /* Check that off_t can represent 2**63 - 1 correctly.
7161 We can't simply define LARGE_OFF_T to be 9223372036854775807,
7162 since some C++ compilers masquerading as C compilers
7163 incorrectly reject 9223372036854775807. */
7164 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
7165 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
7166 && LARGE_OFF_T % 2147483647 == 1)
7176 if ac_fn_c_try_compile
"$LINENO"; then :
7177 ac_cv_sys_large_files
=1; break
7179 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
7180 ac_cv_sys_large_files
=unknown
7184 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_large_files" >&5
7185 $as_echo "$ac_cv_sys_large_files" >&6; }
7186 case $ac_cv_sys_large_files in #(
7189 cat >>confdefs.h
<<_ACEOF
7190 #define _LARGE_FILES $ac_cv_sys_large_files
7200 ## If user specified a crt-dir, use that unconditionally.
7201 if test "X$CRT_DIR" = "X"; then
7203 case "$canonical" in
7204 x86_64-
*-linux-gnu* | s390x-
*-linux-gnu*)
7205 ## On x86-64 and s390x GNU/Linux distributions, the standard library
7206 ## can be in a variety of places. We only try /usr/lib64 and /usr/lib.
7207 ## For anything else (eg /usr/lib32), it is up the user to specify
7208 ## the location (bug#5655).
7209 ## Test for crtn.o, not just the directory, because sometimes the
7210 ## directory exists but does not have the relevant files (bug#1287).
7211 ## FIXME better to test for binary compatibility somehow.
7212 test -e /usr
/lib64
/crtn.o
&& CRT_DIR
=/usr
/lib64
7215 powerpc64-
*-linux-gnu* | sparc64-
*-linux-gnu*) CRT_DIR
=/usr
/lib64
;;
7219 hpux10-20
) CRT_DIR
=/lib
;;
7222 ## Default is /usr/lib.
7223 test "X$CRT_DIR" = "X" && CRT_DIR
=/usr
/lib
7227 ## Some platforms don't use any of these files, so it is not
7228 ## appropriate to put this test outside the if block.
7229 test -e $CRT_DIR/crtn.o ||
test -e $CRT_DIR/crt0.o || \
7230 as_fn_error $?
"crt*.o not found in specified location." "$LINENO" 5
7243 START_FILES
='pre-crt0.o'
7246 ## Adding -lm confuses the dynamic linker, so omit it.
7248 START_FILES
='pre-crt0.o'
7251 LIB_STANDARD
='-lgcc -lc -lgcc $(CRT_DIR)/crtend.o $(CRT_DIR)/crtn.o'
7252 START_FILES
='pre-crt0.o $(CRT_DIR)/crt1.o $(CRT_DIR)/crti.o $(CRT_DIR)/crtbegin.o'
7254 gnu-linux | gnu-kfreebsd
)
7255 LIB_STANDARD
='-lgcc -lc -lgcc $(CRT_DIR)/crtn.o'
7256 START_FILES
='pre-crt0.o $(CRT_DIR)/crt1.o $(CRT_DIR)/crti.o'
7258 hpux10-20 | hpux11
)
7260 START_FILES
='pre-crt0.o $(CRT_DIR)/crt0.o'
7263 if test -f $CRT_DIR/crti.o
; then
7264 LIB_STANDARD
='-lgcc -lc -lgcc $(CRT_DIR)/crtend.o $(CRT_DIR)/crtn.o'
7265 START_FILES
='pre-crt0.o $(CRT_DIR)/crt0.o $(CRT_DIR)/crti.o $(CRT_DIR)/crtbegin.o'
7267 LIB_STANDARD
='-lgcc -lc -lgcc $(CRT_DIR)/crtend.o'
7268 START_FILES
='pre-crt0.o $(CRT_DIR)/crt0.o $(CRT_DIR)/crtbegin.o'
7279 if test "${with_sound}" != "no"; then
7280 # Sound support for GNU/Linux and the free BSDs.
7281 for ac_header
in machine
/soundcard.h sys
/soundcard.h soundcard.h
7283 as_ac_Header
=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
7284 ac_fn_c_check_header_mongrel
"$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
7285 if eval test \"x\$
"$as_ac_Header"\" = x
"yes"; then :
7286 cat >>confdefs.h
<<_ACEOF
7287 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
7289 have_sound_header
=yes
7294 # Emulation library used on NetBSD.
7295 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _oss_ioctl in -lossaudio" >&5
7296 $as_echo_n "checking for _oss_ioctl in -lossaudio... " >&6; }
7297 if test "${ac_cv_lib_ossaudio__oss_ioctl+set}" = set; then :
7298 $as_echo_n "(cached) " >&6
7300 ac_check_lib_save_LIBS
=$LIBS
7301 LIBS
="-lossaudio $LIBS"
7302 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
7303 /* end confdefs.h. */
7305 /* Override any GCC internal prototype to avoid an error.
7306 Use char because int might match the return type of a GCC
7307 builtin and then its argument prototype would still apply. */
7315 return _oss_ioctl ();
7320 if ac_fn_c_try_link
"$LINENO"; then :
7321 ac_cv_lib_ossaudio__oss_ioctl
=yes
7323 ac_cv_lib_ossaudio__oss_ioctl
=no
7325 rm -f core conftest.err conftest.
$ac_objext \
7326 conftest
$ac_exeext conftest.
$ac_ext
7327 LIBS
=$ac_check_lib_save_LIBS
7329 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_ossaudio__oss_ioctl" >&5
7330 $as_echo "$ac_cv_lib_ossaudio__oss_ioctl" >&6; }
7331 if test "x$ac_cv_lib_ossaudio__oss_ioctl" = x
""yes; then :
7340 ALSA_MODULES
="alsa >= $ALSA_REQUIRED"
7344 # Extract the first word of "pkg-config", so it can be a program name with args.
7345 set dummy pkg-config
; ac_word
=$2
7346 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7347 $as_echo_n "checking for $ac_word... " >&6; }
7348 if test "${ac_cv_path_PKG_CONFIG+set}" = set; then :
7349 $as_echo_n "(cached) " >&6
7353 ac_cv_path_PKG_CONFIG
="$PKG_CONFIG" # Let the user override the test with a path.
7356 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
7360 test -z "$as_dir" && as_dir
=.
7361 for ac_exec_ext
in '' $ac_executable_extensions; do
7362 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7363 ac_cv_path_PKG_CONFIG
="$as_dir/$ac_word$ac_exec_ext"
7364 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7371 test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG
="no"
7375 PKG_CONFIG
=$ac_cv_path_PKG_CONFIG
7376 if test -n "$PKG_CONFIG"; then
7377 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5
7378 $as_echo "$PKG_CONFIG" >&6; }
7380 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7381 $as_echo "no" >&6; }
7386 if test "$PKG_CONFIG" = "no" ; then
7389 PKG_CONFIG_MIN_VERSION
=0.9.0
7390 if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
7391 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ALSA_MODULES" >&5
7392 $as_echo_n "checking for $ALSA_MODULES... " >&6; }
7394 if $PKG_CONFIG --exists "$ALSA_MODULES" 2>&5; then
7395 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
7396 $as_echo "yes" >&6; }
7399 { $as_echo "$as_me:${as_lineno-$LINENO}: checking ALSA_CFLAGS" >&5
7400 $as_echo_n "checking ALSA_CFLAGS... " >&6; }
7401 ALSA_CFLAGS
=`$PKG_CONFIG --cflags "$ALSA_MODULES"|sed -e 's,///*,/,g'`
7402 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ALSA_CFLAGS" >&5
7403 $as_echo "$ALSA_CFLAGS" >&6; }
7405 { $as_echo "$as_me:${as_lineno-$LINENO}: checking ALSA_LIBS" >&5
7406 $as_echo_n "checking ALSA_LIBS... " >&6; }
7407 ALSA_LIBS
=`$PKG_CONFIG --libs "$ALSA_MODULES"|sed -e 's,///*,/,g'`
7408 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ALSA_LIBS" >&5
7409 $as_echo "$ALSA_LIBS" >&6; }
7411 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7412 $as_echo "no" >&6; }
7415 ## If we have a custom action on failure, don't print errors, but
7416 ## do set a variable so people can do so.
7417 ALSA_PKG_ERRORS
=`$PKG_CONFIG --errors-to-stdout --print-errors "$ALSA_MODULES"`
7424 echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
7425 echo "*** See http://www.freedesktop.org/software/pkgconfig"
7429 if test $succeeded = yes; then
7435 if test $HAVE_ALSA = yes; then
7436 SAVE_CFLAGS
="$CFLAGS"
7437 SAVE_LDFLAGS
="$LDFLAGS"
7438 CFLAGS
="$ALSA_CFLAGS $CFLAGS"
7439 LDFLAGS
="$ALSA_LIBS $LDFLAGS"
7440 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
7441 /* end confdefs.h. */
7442 #include <asoundlib.h>
7446 snd_lib_error_set_handler (0);
7451 if ac_fn_c_try_compile
"$LINENO"; then :
7452 emacs_alsa_normal
=yes
7454 emacs_alsa_normal
=no
7456 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
7457 if test "$emacs_alsa_normal" != yes; then
7458 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
7459 /* end confdefs.h. */
7460 #include <alsa/asoundlib.h>
7464 snd_lib_error_set_handler (0);
7469 if ac_fn_c_try_compile
"$LINENO"; then :
7470 emacs_alsa_subdir
=yes
7472 emacs_alsa_subdir
=no
7474 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
7475 if test "$emacs_alsa_subdir" != yes; then
7476 as_fn_error $?
"pkg-config found alsa, but it does not compile. See config.log for error messages." "$LINENO" 5
7478 ALSA_CFLAGS
="$ALSA_CFLAGS -DALSA_SUBDIR_INCLUDE"
7481 CFLAGS
="$SAVE_CFLAGS"
7482 LDFLAGS
="$SAVE_LDFLAGS"
7483 LIBSOUND
="$LIBSOUND $ALSA_LIBS"
7484 CFLAGS_SOUND
="$CFLAGS_SOUND $ALSA_CFLAGS"
7486 $as_echo "#define HAVE_ALSA 1" >>confdefs.h
7490 if test x
$have_sound_header = xyes ||
test $HAVE_ALSA = yes; then
7492 gnu-linux|freebsd|netbsd
)
7494 $as_echo "#define HAVE_SOUND 1" >>confdefs.h
7503 for ac_header
in sys
/select.h sys
/time.h unistd.h utime.h \
7504 linux
/version.h sys
/systeminfo.h limits.h \
7505 stdio_ext.h fcntl.h coff.h pty.h sys
/mman.h \
7506 sys
/vlimit.h sys
/resource.h locale.h sys
/_mbstate_t.h \
7507 sys
/utsname.h
pwd.h utmp.h dirent.h util.h
7509 as_ac_Header
=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
7510 ac_fn_c_check_header_mongrel
"$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
7511 if eval test \"x\$
"$as_ac_Header"\" = x
"yes"; then :
7512 cat >>confdefs.h
<<_ACEOF
7513 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
7521 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if personality LINUX32 can be set" >&5
7522 $as_echo_n "checking if personality LINUX32 can be set... " >&6; }
7523 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
7524 /* end confdefs.h. */
7525 #include <sys/personality.h>
7529 personality (PER_LINUX32)
7534 if ac_fn_c_try_compile
"$LINENO"; then :
7535 emacs_cv_personality_linux32
=yes
7537 emacs_cv_personality_linux32
=no
7539 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
7540 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $emacs_cv_personality_linux32" >&5
7541 $as_echo "$emacs_cv_personality_linux32" >&6; }
7543 if test $emacs_cv_personality_linux32 = yes; then
7545 $as_echo "#define HAVE_PERSONALITY_LINUX32 1" >>confdefs.h
7549 for ac_header
in term.h
7551 ac_fn_c_check_header_preproc
"$LINENO" "term.h" "ac_cv_header_term_h"
7552 if test "x$ac_cv_header_term_h" = x
""yes; then :
7553 cat >>confdefs.h
<<_ACEOF
7554 #define HAVE_TERM_H 1
7561 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
7562 $as_echo_n "checking for ANSI C header files... " >&6; }
7563 if test "${ac_cv_header_stdc+set}" = set; then :
7564 $as_echo_n "(cached) " >&6
7566 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
7567 /* end confdefs.h. */
7581 if ac_fn_c_try_compile
"$LINENO"; then :
7582 ac_cv_header_stdc
=yes
7584 ac_cv_header_stdc
=no
7586 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
7588 if test $ac_cv_header_stdc = yes; then
7589 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
7590 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
7591 /* end confdefs.h. */
7595 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
7596 $EGREP "memchr" >/dev
/null
2>&1; then :
7599 ac_cv_header_stdc
=no
7605 if test $ac_cv_header_stdc = yes; then
7606 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
7607 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
7608 /* end confdefs.h. */
7612 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
7613 $EGREP "free" >/dev
/null
2>&1; then :
7616 ac_cv_header_stdc
=no
7622 if test $ac_cv_header_stdc = yes; then
7623 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
7624 if test "$cross_compiling" = yes; then :
7627 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
7628 /* end confdefs.h. */
7631 #if ((' ' & 0x0FF) == 0x020)
7632 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
7633 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
7635 # define ISLOWER(c) \
7636 (('a' <= (c) && (c) <= 'i') \
7637 || ('j' <= (c) && (c) <= 'r') \
7638 || ('s' <= (c) && (c) <= 'z'))
7639 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
7642 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
7647 for (i = 0; i < 256; i++)
7648 if (XOR (islower (i), ISLOWER (i))
7649 || toupper (i) != TOUPPER (i))
7654 if ac_fn_c_try_run
"$LINENO"; then :
7657 ac_cv_header_stdc
=no
7659 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
7660 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
7665 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
7666 $as_echo "$ac_cv_header_stdc" >&6; }
7667 if test $ac_cv_header_stdc = yes; then
7669 $as_echo "#define STDC_HEADERS 1" >>confdefs.h
7673 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether time.h and sys/time.h may both be included" >&5
7674 $as_echo_n "checking whether time.h and sys/time.h may both be included... " >&6; }
7675 if test "${ac_cv_header_time+set}" = set; then :
7676 $as_echo_n "(cached) " >&6
7678 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
7679 /* end confdefs.h. */
7680 #include <sys/types.h>
7681 #include <sys/time.h>
7687 if ((struct tm *) 0)
7693 if ac_fn_c_try_compile
"$LINENO"; then :
7694 ac_cv_header_time
=yes
7696 ac_cv_header_time
=no
7698 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
7700 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_time" >&5
7701 $as_echo "$ac_cv_header_time" >&6; }
7702 if test $ac_cv_header_time = yes; then
7704 $as_echo "#define TIME_WITH_SYS_TIME 1" >>confdefs.h
7708 ac_fn_c_check_decl
"$LINENO" "sys_siglist" "ac_cv_have_decl_sys_siglist" "$ac_includes_default"
7709 if test "x$ac_cv_have_decl_sys_siglist" = x
""yes; then :
7715 cat >>confdefs.h
<<_ACEOF
7716 #define HAVE_DECL_SYS_SIGLIST $ac_have_decl
7719 if test $ac_cv_have_decl_sys_siglist != yes; then
7720 # For Tru64, at least:
7721 ac_fn_c_check_decl
"$LINENO" "__sys_siglist" "ac_cv_have_decl___sys_siglist" "$ac_includes_default"
7722 if test "x$ac_cv_have_decl___sys_siglist" = x
""yes; then :
7728 cat >>confdefs.h
<<_ACEOF
7729 #define HAVE_DECL___SYS_SIGLIST $ac_have_decl
7732 if test $ac_cv_have_decl___sys_siglist = yes; then
7734 $as_echo "#define sys_siglist __sys_siglist" >>confdefs.h
7738 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sys/wait.h that is POSIX.1 compatible" >&5
7739 $as_echo_n "checking for sys/wait.h that is POSIX.1 compatible... " >&6; }
7740 if test "${ac_cv_header_sys_wait_h+set}" = set; then :
7741 $as_echo_n "(cached) " >&6
7743 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
7744 /* end confdefs.h. */
7745 #include <sys/types.h>
7746 #include <sys/wait.h>
7748 # define WEXITSTATUS(stat_val) ((unsigned int) (stat_val) >> 8)
7751 # define WIFEXITED(stat_val) (((stat_val) & 255) == 0)
7759 s = WIFEXITED (s) ? WEXITSTATUS (s) : 1;
7764 if ac_fn_c_try_compile
"$LINENO"; then :
7765 ac_cv_header_sys_wait_h
=yes
7767 ac_cv_header_sys_wait_h
=no
7769 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
7771 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_sys_wait_h" >&5
7772 $as_echo "$ac_cv_header_sys_wait_h" >&6; }
7773 if test $ac_cv_header_sys_wait_h = yes; then
7775 $as_echo "#define HAVE_SYS_WAIT_H 1" >>confdefs.h
7780 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for struct utimbuf" >&5
7781 $as_echo_n "checking for struct utimbuf... " >&6; }
7782 if test "${emacs_cv_struct_utimbuf+set}" = set; then :
7783 $as_echo_n "(cached) " >&6
7785 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
7786 /* end confdefs.h. */
7787 #ifdef TIME_WITH_SYS_TIME
7788 #include <sys/time.h>
7791 #ifdef HAVE_SYS_TIME_H
7792 #include <sys/time.h>
7803 static struct utimbuf x; x.actime = x.modtime;
7808 if ac_fn_c_try_compile
"$LINENO"; then :
7809 emacs_cv_struct_utimbuf
=yes
7811 emacs_cv_struct_utimbuf
=no
7813 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
7815 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $emacs_cv_struct_utimbuf" >&5
7816 $as_echo "$emacs_cv_struct_utimbuf" >&6; }
7817 if test $emacs_cv_struct_utimbuf = yes; then
7819 $as_echo "#define HAVE_STRUCT_UTIMBUF 1" >>confdefs.h
7823 { $as_echo "$as_me:${as_lineno-$LINENO}: checking return type of signal handlers" >&5
7824 $as_echo_n "checking return type of signal handlers... " >&6; }
7825 if test "${ac_cv_type_signal+set}" = set; then :
7826 $as_echo_n "(cached) " >&6
7828 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
7829 /* end confdefs.h. */
7830 #include <sys/types.h>
7836 return *(signal (0, 0)) (0) == 1;
7841 if ac_fn_c_try_compile
"$LINENO"; then :
7842 ac_cv_type_signal
=int
7844 ac_cv_type_signal
=void
7846 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
7848 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_signal" >&5
7849 $as_echo "$ac_cv_type_signal" >&6; }
7851 cat >>confdefs.h
<<_ACEOF
7852 #define RETSIGTYPE $ac_cv_type_signal
7857 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for speed_t" >&5
7858 $as_echo_n "checking for speed_t... " >&6; }
7859 if test "${emacs_cv_speed_t+set}" = set; then :
7860 $as_echo_n "(cached) " >&6
7862 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
7863 /* end confdefs.h. */
7864 #include <termios.h>
7873 if ac_fn_c_try_compile
"$LINENO"; then :
7874 emacs_cv_speed_t
=yes
7878 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
7880 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $emacs_cv_speed_t" >&5
7881 $as_echo "$emacs_cv_speed_t" >&6; }
7882 if test $emacs_cv_speed_t = yes; then
7884 $as_echo "#define HAVE_SPEED_T 1" >>confdefs.h
7888 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for struct timeval" >&5
7889 $as_echo_n "checking for struct timeval... " >&6; }
7890 if test "${emacs_cv_struct_timeval+set}" = set; then :
7891 $as_echo_n "(cached) " >&6
7893 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
7894 /* end confdefs.h. */
7895 #ifdef TIME_WITH_SYS_TIME
7896 #include <sys/time.h>
7899 #ifdef HAVE_SYS_TIME_H
7900 #include <sys/time.h>
7908 static struct timeval x; x.tv_sec = x.tv_usec;
7913 if ac_fn_c_try_compile
"$LINENO"; then :
7914 emacs_cv_struct_timeval
=yes
7916 emacs_cv_struct_timeval
=no
7918 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
7920 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $emacs_cv_struct_timeval" >&5
7921 $as_echo "$emacs_cv_struct_timeval" >&6; }
7922 HAVE_TIMEVAL
=$emacs_cv_struct_timeval
7923 if test $emacs_cv_struct_timeval = yes; then
7925 $as_echo "#define HAVE_TIMEVAL 1" >>confdefs.h
7929 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for struct exception" >&5
7930 $as_echo_n "checking for struct exception... " >&6; }
7931 if test "${emacs_cv_struct_exception+set}" = set; then :
7932 $as_echo_n "(cached) " >&6
7934 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
7935 /* end confdefs.h. */
7940 static struct exception x; x.arg1 = x.arg2 = x.retval; x.name = ""; x.type = 1;
7945 if ac_fn_c_try_compile
"$LINENO"; then :
7946 emacs_cv_struct_exception
=yes
7948 emacs_cv_struct_exception
=no
7950 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
7952 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $emacs_cv_struct_exception" >&5
7953 $as_echo "$emacs_cv_struct_exception" >&6; }
7954 HAVE_EXCEPTION
=$emacs_cv_struct_exception
7955 if test $emacs_cv_struct_exception != yes; then
7957 $as_echo "#define NO_MATHERR 1" >>confdefs.h
7961 for ac_header
in sys
/socket.h
7963 ac_fn_c_check_header_mongrel
"$LINENO" "sys/socket.h" "ac_cv_header_sys_socket_h" "$ac_includes_default"
7964 if test "x$ac_cv_header_sys_socket_h" = x
""yes; then :
7965 cat >>confdefs.h
<<_ACEOF
7966 #define HAVE_SYS_SOCKET_H 1
7973 for ac_header
in net
/if.h
7975 ac_fn_c_check_header_compile
"$LINENO" "net/if.h" "ac_cv_header_net_if_h" "$ac_includes_default
7976 #if HAVE_SYS_SOCKET_H
7977 #include <sys/socket.h>
7980 if test "x$ac_cv_header_net_if_h" = x
""yes; then :
7981 cat >>confdefs.h
<<_ACEOF
7982 #define HAVE_NET_IF_H 1
7990 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether struct tm is in sys/time.h or time.h" >&5
7991 $as_echo_n "checking whether struct tm is in sys/time.h or time.h... " >&6; }
7992 if test "${ac_cv_struct_tm+set}" = set; then :
7993 $as_echo_n "(cached) " >&6
7995 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
7996 /* end confdefs.h. */
7997 #include <sys/types.h>
8004 int *p = &tm.tm_sec;
8010 if ac_fn_c_try_compile
"$LINENO"; then :
8011 ac_cv_struct_tm
=time.h
8013 ac_cv_struct_tm
=sys
/time.h
8015 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
8017 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_struct_tm" >&5
8018 $as_echo "$ac_cv_struct_tm" >&6; }
8019 if test $ac_cv_struct_tm = sys
/time.h
; then
8021 $as_echo "#define TM_IN_SYS_TIME 1" >>confdefs.h
8025 ac_fn_c_check_member
"$LINENO" "struct tm" "tm_zone" "ac_cv_member_struct_tm_tm_zone" "#include <sys/types.h>
8026 #include <$ac_cv_struct_tm>
8029 if test "x$ac_cv_member_struct_tm_tm_zone" = x
""yes; then :
8031 cat >>confdefs.h
<<_ACEOF
8032 #define HAVE_STRUCT_TM_TM_ZONE 1
8038 if test "$ac_cv_member_struct_tm_tm_zone" = yes; then
8040 $as_echo "#define HAVE_TM_ZONE 1" >>confdefs.h
8043 ac_fn_c_check_decl
"$LINENO" "tzname" "ac_cv_have_decl_tzname" "#include <time.h>
8045 if test "x$ac_cv_have_decl_tzname" = x
""yes; then :
8051 cat >>confdefs.h
<<_ACEOF
8052 #define HAVE_DECL_TZNAME $ac_have_decl
8055 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for tzname" >&5
8056 $as_echo_n "checking for tzname... " >&6; }
8057 if test "${ac_cv_var_tzname+set}" = set; then :
8058 $as_echo_n "(cached) " >&6
8060 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
8061 /* end confdefs.h. */
8063 #if !HAVE_DECL_TZNAME
8064 extern char *tzname[];
8070 return tzname[0][0];
8075 if ac_fn_c_try_link
"$LINENO"; then :
8076 ac_cv_var_tzname
=yes
8080 rm -f core conftest.err conftest.
$ac_objext \
8081 conftest
$ac_exeext conftest.
$ac_ext
8083 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_var_tzname" >&5
8084 $as_echo "$ac_cv_var_tzname" >&6; }
8085 if test $ac_cv_var_tzname = yes; then
8087 $as_echo "#define HAVE_TZNAME 1" >>confdefs.h
8092 ac_fn_c_check_member
"$LINENO" "struct tm" "tm_gmtoff" "ac_cv_member_struct_tm_tm_gmtoff" "#include <time.h>
8094 if test "x$ac_cv_member_struct_tm_tm_gmtoff" = x
""yes; then :
8096 $as_echo "#define HAVE_TM_GMTOFF 1" >>confdefs.h
8100 ac_fn_c_check_member
"$LINENO" "struct ifreq" "ifr_flags" "ac_cv_member_struct_ifreq_ifr_flags" "$ac_includes_default
8101 #if HAVE_SYS_SOCKET_H
8102 #include <sys/socket.h>
8108 if test "x$ac_cv_member_struct_ifreq_ifr_flags" = x
""yes; then :
8110 cat >>confdefs.h
<<_ACEOF
8111 #define HAVE_STRUCT_IFREQ_IFR_FLAGS 1
8116 ac_fn_c_check_member
"$LINENO" "struct ifreq" "ifr_hwaddr" "ac_cv_member_struct_ifreq_ifr_hwaddr" "$ac_includes_default
8117 #if HAVE_SYS_SOCKET_H
8118 #include <sys/socket.h>
8124 if test "x$ac_cv_member_struct_ifreq_ifr_hwaddr" = x
""yes; then :
8126 cat >>confdefs.h
<<_ACEOF
8127 #define HAVE_STRUCT_IFREQ_IFR_HWADDR 1
8132 ac_fn_c_check_member
"$LINENO" "struct ifreq" "ifr_netmask" "ac_cv_member_struct_ifreq_ifr_netmask" "$ac_includes_default
8133 #if HAVE_SYS_SOCKET_H
8134 #include <sys/socket.h>
8140 if test "x$ac_cv_member_struct_ifreq_ifr_netmask" = x
""yes; then :
8142 cat >>confdefs.h
<<_ACEOF
8143 #define HAVE_STRUCT_IFREQ_IFR_NETMASK 1
8148 ac_fn_c_check_member
"$LINENO" "struct ifreq" "ifr_broadaddr" "ac_cv_member_struct_ifreq_ifr_broadaddr" "$ac_includes_default
8149 #if HAVE_SYS_SOCKET_H
8150 #include <sys/socket.h>
8156 if test "x$ac_cv_member_struct_ifreq_ifr_broadaddr" = x
""yes; then :
8158 cat >>confdefs.h
<<_ACEOF
8159 #define HAVE_STRUCT_IFREQ_IFR_BROADADDR 1
8164 ac_fn_c_check_member
"$LINENO" "struct ifreq" "ifr_addr" "ac_cv_member_struct_ifreq_ifr_addr" "$ac_includes_default
8165 #if HAVE_SYS_SOCKET_H
8166 #include <sys/socket.h>
8172 if test "x$ac_cv_member_struct_ifreq_ifr_addr" = x
""yes; then :
8174 cat >>confdefs.h
<<_ACEOF
8175 #define HAVE_STRUCT_IFREQ_IFR_ADDR 1
8183 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for function prototypes" >&5
8184 $as_echo_n "checking for function prototypes... " >&6; }
8185 if test "$ac_cv_prog_cc_c89" != no
; then
8186 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
8187 $as_echo "yes" >&6; }
8189 $as_echo "#define PROTOTYPES 1" >>confdefs.h
8192 $as_echo "#define __PROTOTYPES 1" >>confdefs.h
8195 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8196 $as_echo "no" >&6; }
8199 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working volatile" >&5
8200 $as_echo_n "checking for working volatile... " >&6; }
8201 if test "${ac_cv_c_volatile+set}" = set; then :
8202 $as_echo_n "(cached) " >&6
8204 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
8205 /* end confdefs.h. */
8212 int * volatile y = (int *) 0;
8218 if ac_fn_c_try_compile
"$LINENO"; then :
8219 ac_cv_c_volatile
=yes
8223 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
8225 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_volatile" >&5
8226 $as_echo "$ac_cv_c_volatile" >&6; }
8227 if test $ac_cv_c_volatile = no
; then
8229 $as_echo "#define volatile /**/" >>confdefs.h
8233 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for an ANSI C-conforming const" >&5
8234 $as_echo_n "checking for an ANSI C-conforming const... " >&6; }
8235 if test "${ac_cv_c_const+set}" = set; then :
8236 $as_echo_n "(cached) " >&6
8238 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
8239 /* end confdefs.h. */
8244 /* FIXME: Include the comments suggested by Paul. */
8246 /* Ultrix mips cc rejects this. */
8247 typedef int charset[2];
8249 /* SunOS 4.1.1 cc rejects this. */
8250 char const *const *pcpcc;
8252 /* NEC SVR4.0.2 mips cc rejects this. */
8253 struct point {int x, y;};
8254 static struct point const zero = {0,0};
8255 /* AIX XL C 1.02.0.0 rejects this.
8256 It does not let you subtract one const X* pointer from another in
8257 an arm of an if-expression whose if-part is not a constant
8259 const char *g = "string";
8260 pcpcc = &g + (g ? g-g : 0);
8261 /* HPUX 7.0 cc rejects these. */
8263 ppc = (char**) pcpcc;
8264 pcpcc = (char const *const *) ppc;
8265 { /* SCO 3.2v4 cc rejects this. */
8267 char const *s = 0 ? (char *) 0 : (char const *) 0;
8272 { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
8274 const int *foo = &x[0];
8277 { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
8278 typedef const int *iptr;
8282 { /* AIX XL C 1.02.0.0 rejects this saying
8283 "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
8284 struct s { int j; const int *ap[3]; };
8285 struct s *b; b->j = 5;
8287 { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
8291 return !cs[0] && !zero.x;
8298 if ac_fn_c_try_compile
"$LINENO"; then :
8303 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
8305 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_const" >&5
8306 $as_echo "$ac_cv_c_const" >&6; }
8307 if test $ac_cv_c_const = no
; then
8309 $as_echo "#define const /**/" >>confdefs.h
8313 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for void * support" >&5
8314 $as_echo_n "checking for void * support... " >&6; }
8315 if test "${emacs_cv_void_star+set}" = set; then :
8316 $as_echo_n "(cached) " >&6
8318 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
8319 /* end confdefs.h. */
8329 if ac_fn_c_try_compile
"$LINENO"; then :
8330 emacs_cv_void_star
=yes
8332 emacs_cv_void_star
=no
8334 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
8336 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $emacs_cv_void_star" >&5
8337 $as_echo "$emacs_cv_void_star" >&6; }
8338 if test $emacs_cv_void_star = yes; then
8339 $as_echo "#define POINTER_TYPE void" >>confdefs.h
8342 $as_echo "#define POINTER_TYPE char" >>confdefs.h
8346 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether byte ordering is bigendian" >&5
8347 $as_echo_n "checking whether byte ordering is bigendian... " >&6; }
8348 if test "${ac_cv_c_bigendian+set}" = set; then :
8349 $as_echo_n "(cached) " >&6
8351 ac_cv_c_bigendian
=unknown
8352 # See if we're dealing with a universal compiler.
8353 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
8354 /* end confdefs.h. */
8355 #ifndef __APPLE_CC__
8356 not a universal capable compiler
8361 if ac_fn_c_try_compile
"$LINENO"; then :
8363 # Check for potential -arch flags. It is not universal unless
8364 # there are at least two -arch flags with different values.
8367 for ac_word
in $CC $CFLAGS $CPPFLAGS $LDFLAGS; do
8368 if test -n "$ac_prev"; then
8370 i?
86 | x86_64 | ppc | ppc64
)
8371 if test -z "$ac_arch" ||
test "$ac_arch" = "$ac_word"; then
8374 ac_cv_c_bigendian
=universal
8380 elif test "x$ac_word" = "x-arch"; then
8385 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
8386 if test $ac_cv_c_bigendian = unknown
; then
8387 # See if sys/param.h defines the BYTE_ORDER macro.
8388 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
8389 /* end confdefs.h. */
8390 #include <sys/types.h>
8391 #include <sys/param.h>
8396 #if ! (defined BYTE_ORDER && defined BIG_ENDIAN \
8397 && defined LITTLE_ENDIAN && BYTE_ORDER && BIG_ENDIAN \
8406 if ac_fn_c_try_compile
"$LINENO"; then :
8407 # It does; now see whether it defined to BIG_ENDIAN or not.
8408 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
8409 /* end confdefs.h. */
8410 #include <sys/types.h>
8411 #include <sys/param.h>
8416 #if BYTE_ORDER != BIG_ENDIAN
8424 if ac_fn_c_try_compile
"$LINENO"; then :
8425 ac_cv_c_bigendian
=yes
8427 ac_cv_c_bigendian
=no
8429 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
8431 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
8433 if test $ac_cv_c_bigendian = unknown
; then
8434 # See if <limits.h> defines _LITTLE_ENDIAN or _BIG_ENDIAN (e.g., Solaris).
8435 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
8436 /* end confdefs.h. */
8442 #if ! (defined _LITTLE_ENDIAN || defined _BIG_ENDIAN)
8450 if ac_fn_c_try_compile
"$LINENO"; then :
8451 # It does; now see whether it defined to _BIG_ENDIAN or not.
8452 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
8453 /* end confdefs.h. */
8467 if ac_fn_c_try_compile
"$LINENO"; then :
8468 ac_cv_c_bigendian
=yes
8470 ac_cv_c_bigendian
=no
8472 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
8474 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
8476 if test $ac_cv_c_bigendian = unknown
; then
8477 # Compile a test program.
8478 if test "$cross_compiling" = yes; then :
8479 # Try to guess by grepping values from an object file.
8480 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
8481 /* end confdefs.h. */
8482 short int ascii_mm[] =
8483 { 0x4249, 0x4765, 0x6E44, 0x6961, 0x6E53, 0x7953, 0 };
8484 short int ascii_ii[] =
8485 { 0x694C, 0x5454, 0x656C, 0x6E45, 0x6944, 0x6E61, 0 };
8486 int use_ascii (int i) {
8487 return ascii_mm[i] + ascii_ii[i];
8489 short int ebcdic_ii[] =
8490 { 0x89D3, 0xE3E3, 0x8593, 0x95C5, 0x89C4, 0x9581, 0 };
8491 short int ebcdic_mm[] =
8492 { 0xC2C9, 0xC785, 0x95C4, 0x8981, 0x95E2, 0xA8E2, 0 };
8493 int use_ebcdic (int i) {
8494 return ebcdic_mm[i] + ebcdic_ii[i];
8501 return use_ascii (foo) == use_ebcdic (foo);
8506 if ac_fn_c_try_compile
"$LINENO"; then :
8507 if grep BIGenDianSyS conftest.
$ac_objext >/dev
/null
; then
8508 ac_cv_c_bigendian
=yes
8510 if grep LiTTleEnDian conftest.
$ac_objext >/dev
/null
; then
8511 if test "$ac_cv_c_bigendian" = unknown
; then
8512 ac_cv_c_bigendian
=no
8514 # finding both strings is unlikely to happen, but who knows?
8515 ac_cv_c_bigendian
=unknown
8519 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
8521 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
8522 /* end confdefs.h. */
8523 $ac_includes_default
8528 /* Are we little or big endian? From Harbison&Steele. */
8532 char c[sizeof (long int)];
8535 return u.c[sizeof (long int) - 1] == 1;
8541 if ac_fn_c_try_run
"$LINENO"; then :
8542 ac_cv_c_bigendian
=no
8544 ac_cv_c_bigendian
=yes
8546 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
8547 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
8552 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_bigendian" >&5
8553 $as_echo "$ac_cv_c_bigendian" >&6; }
8554 case $ac_cv_c_bigendian in #(
8556 $as_echo "#define WORDS_BIGENDIAN 1" >>confdefs.h
8562 $as_echo "#define AC_APPLE_UNIVERSAL_BUILD 1" >>confdefs.h
8566 as_fn_error $?
"unknown endianness
8567 presetting ac_cv_c_bigendian=no (or yes) will help" "$LINENO" 5 ;;
8571 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for __attribute__ ((__aligned__ (expr)))" >&5
8572 $as_echo_n "checking for __attribute__ ((__aligned__ (expr)))... " >&6; }
8573 if test "${emacs_cv_attribute_aligned+set}" = set; then :
8574 $as_echo_n "(cached) " >&6
8576 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
8577 /* end confdefs.h. */
8578 char __attribute__ ((__aligned__ (1 << 3))) c;
8587 if ac_fn_c_try_compile
"$LINENO"; then :
8588 emacs_cv_attribute_aligned
=yes
8590 emacs_cv_attribute_aligned
=no
8592 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
8594 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $emacs_cv_attribute_aligned" >&5
8595 $as_echo "$emacs_cv_attribute_aligned" >&6; }
8596 if test $emacs_cv_attribute_aligned = yes; then
8598 $as_echo "#define HAVE_ATTRIBUTE_ALIGNED 1" >>confdefs.h
8602 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
8603 $as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
8605 ac_make
=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
8606 if eval "test \"\${ac_cv_prog_make_${ac_make}_set+set}\"" = set; then :
8607 $as_echo_n "(cached) " >&6
8609 cat >conftest.
make <<\_ACEOF
8612 @
echo '@@@%%%=$(MAKE)=@@@%%%'
8614 # GNU make sometimes prints "make[1]: Entering ...", which would confuse us.
8615 case `${MAKE-make} -f conftest.make 2>/dev/null` in
8617 eval ac_cv_prog_make_
${ac_make}_set
=yes;;
8619 eval ac_cv_prog_make_
${ac_make}_set
=no
;;
8623 if eval test \
$ac_cv_prog_make_${ac_make}_set
= yes; then
8624 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
8625 $as_echo "yes" >&6; }
8628 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8629 $as_echo "no" >&6; }
8630 SET_MAKE
="MAKE=${MAKE-make}"
8637 if test "$GCC" = yes && test "$ac_enable_autodepend" = yes; then
8638 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using GNU Make" >&5
8639 $as_echo_n "checking whether we are using GNU Make... " >&6; }
8641 testval
=`make --version 2>/dev/null | grep 'GNU Make'`
8642 if test "x$testval" != x
; then
8645 ac_enable_autodepend
=no
8647 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $HAVE_GNU_MAKE" >&5
8648 $as_echo "$HAVE_GNU_MAKE" >&6; }
8649 if test $HAVE_GNU_MAKE = yes; then
8650 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether gcc understands -MMD -MF" >&5
8651 $as_echo_n "checking whether gcc understands -MMD -MF... " >&6; }
8652 SAVE_CFLAGS
="$CFLAGS"
8653 CFLAGS
="$CFLAGS -MMD -MF deps.d"
8654 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
8655 /* end confdefs.h. */
8665 if ac_fn_c_try_compile
"$LINENO"; then :
8668 ac_enable_autodepend
=no
8670 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
8671 CFLAGS
="$SAVE_CFLAGS"
8672 test -f deps.d || ac_enable_autodepend
=no
8674 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_enable_autodepend" >&5
8675 $as_echo "$ac_enable_autodepend" >&6; }
8677 if test $ac_enable_autodepend = yes; then
8678 DEPFLAGS
='-MMD -MF ${DEPDIR}/$*.d'
8679 ## In parallel builds, another make might create depdir between
8680 ## the first test and mkdir, so stick another test on the end.
8681 ## Or use mkinstalldirs? mkdir -p is not portable.
8682 MKDEPDIR
='test -d ${DEPDIR} || mkdir ${DEPDIR} || test -d ${DEPDIR}'
8683 deps_frag
=autodeps.mk
8686 deps_frag
=$srcdir/src
/$deps_frag
8692 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for long file names" >&5
8693 $as_echo_n "checking for long file names... " >&6; }
8694 if test "${ac_cv_sys_long_file_names+set}" = set; then :
8695 $as_echo_n "(cached) " >&6
8697 ac_cv_sys_long_file_names
=yes
8698 # Test for long file names in all the places we know might matter:
8699 # . the current directory, where building will happen
8700 # $prefix/lib where we will be installing things
8701 # $exec_prefix/lib likewise
8702 # $TMPDIR if set, where it might want to write temporary files
8703 # /tmp where it might want to write temporary files
8706 for ac_dir
in .
"$TMPDIR" /tmp
/var
/tmp
/usr
/tmp
"$prefix/lib" "$exec_prefix/lib"; do
8707 # Skip $TMPDIR if it is empty or bogus, and skip $exec_prefix/lib
8708 # in the usual case where exec_prefix is '${prefix}'.
8710 . |
/* | ?
:[\\/]*) ;; #(
8713 test -w "$ac_dir/." ||
continue # It is less confusing to not echo anything here.
8714 ac_xdir
=$ac_dir/cf$$
8715 (umask 077 && mkdir
"$ac_xdir" 2>/dev
/null
) ||
continue
8716 ac_tf1
=$ac_xdir/conftest9012345
8717 ac_tf2
=$ac_xdir/conftest9012346
8718 touch "$ac_tf1" 2>/dev
/null
&& test -f "$ac_tf1" && test ! -f "$ac_tf2" ||
8719 ac_cv_sys_long_file_names
=no
8720 rm -f -r "$ac_xdir" 2>/dev
/null
8721 test $ac_cv_sys_long_file_names = no
&& break
8724 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_long_file_names" >&5
8725 $as_echo "$ac_cv_sys_long_file_names" >&6; }
8726 if test $ac_cv_sys_long_file_names = yes; then
8728 $as_echo "#define HAVE_LONG_FILE_NAMES 1" >>confdefs.h
8733 #### Choose a window system.
8735 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for X" >&5
8736 $as_echo_n "checking for X... " >&6; }
8739 # Check whether --with-x was given.
8740 if test "${with_x+set}" = set; then :
8744 # $have_x is `yes', `no', `disabled', or empty when we do not yet know.
8745 if test "x$with_x" = xno
; then
8746 # The user explicitly disabled X.
8749 case $x_includes,$x_libraries in #(
8750 *\'*) as_fn_error $?
"cannot use X directory names containing '" "$LINENO" 5 ;; #(
8751 *,NONE | NONE
,*) if test "${ac_cv_have_x+set}" = set; then :
8752 $as_echo_n "(cached) " >&6
8754 # One or both of the vars are not set, and there is no cached value.
8755 ac_x_includes
=no ac_x_libraries
=no
8756 rm -f -r conftest.dir
8757 if mkdir conftest.dir
; then
8759 cat >Imakefile
<<'_ACEOF'
8761 @echo incroot='${INCROOT}'
8763 @echo usrlibdir='${USRLIBDIR}'
8765 @echo libdir='${LIBDIR}'
8767 if (export CC
; ${XMKMF-xmkmf}) >/dev
/null
2>/dev
/null
&& test -f Makefile
; then
8768 # GNU make sometimes prints "make[1]: Entering ...", which would confuse us.
8769 for ac_var
in incroot usrlibdir libdir
; do
8770 eval "ac_im_$ac_var=\`\${MAKE-make} $ac_var 2>/dev/null | sed -n 's/^$ac_var=//p'\`"
8772 # Open Windows xmkmf reportedly sets LIBDIR instead of USRLIBDIR.
8773 for ac_extension
in a so sl dylib la dll
; do
8774 if test ! -f "$ac_im_usrlibdir/libX11.$ac_extension" &&
8775 test -f "$ac_im_libdir/libX11.$ac_extension"; then
8776 ac_im_usrlibdir
=$ac_im_libdir; break
8779 # Screen out bogus values from the imake configuration. They are
8780 # bogus both because they are the default anyway, and because
8781 # using them would break gcc on systems where it needs fixed includes.
8782 case $ac_im_incroot in
8783 /usr
/include
) ac_x_includes
= ;;
8784 *) test -f "$ac_im_incroot/X11/Xos.h" && ac_x_includes
=$ac_im_incroot;;
8786 case $ac_im_usrlibdir in
8787 /usr
/lib |
/usr
/lib64 |
/lib |
/lib64
) ;;
8788 *) test -d "$ac_im_usrlibdir" && ac_x_libraries
=$ac_im_usrlibdir ;;
8792 rm -f -r conftest.dir
8795 # Standard set of common directories for X headers.
8796 # Check X11 before X11Rn because it is often a symlink to the current release.
8810 /usr/local/X11/include
8811 /usr/local/X11R7/include
8812 /usr/local/X11R6/include
8813 /usr/local/X11R5/include
8814 /usr/local/X11R4/include
8816 /usr/local/include/X11
8817 /usr/local/include/X11R7
8818 /usr/local/include/X11R6
8819 /usr/local/include/X11R5
8820 /usr/local/include/X11R4
8824 /usr/XFree86/include/X11
8828 /usr/unsupported/include
8830 /usr/local/x11r5/include
8831 /usr/lpp/Xamples/include
8833 /usr/openwin/include
8834 /usr/openwin/share/include'
8836 if test "$ac_x_includes" = no
; then
8837 # Guess where to find include files, by looking for Xlib.h.
8838 # First, try using that file with no special directory specified.
8839 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
8840 /* end confdefs.h. */
8841 #include <X11/Xlib.h>
8843 if ac_fn_c_try_cpp
"$LINENO"; then :
8844 # We can compile using X headers with no special include directory.
8847 for ac_dir
in $ac_x_header_dirs; do
8848 if test -r "$ac_dir/X11/Xlib.h"; then
8849 ac_x_includes
=$ac_dir
8854 rm -f conftest.err conftest.i conftest.
$ac_ext
8855 fi # $ac_x_includes = no
8857 if test "$ac_x_libraries" = no
; then
8858 # Check for the libraries.
8859 # See if we find them without any special options.
8860 # Don't add to $LIBS permanently.
8863 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
8864 /* end confdefs.h. */
8865 #include <X11/Xlib.h>
8874 if ac_fn_c_try_link
"$LINENO"; then :
8876 # We can link X programs with no special library path.
8880 for ac_dir
in `$as_echo "$ac_x_includes $ac_x_header_dirs" | sed s/include/lib/g`
8882 # Don't even attempt the hair of trying to link an X program!
8883 for ac_extension
in a so sl dylib la dll
; do
8884 if test -r "$ac_dir/libX11.$ac_extension"; then
8885 ac_x_libraries
=$ac_dir
8891 rm -f core conftest.err conftest.
$ac_objext \
8892 conftest
$ac_exeext conftest.
$ac_ext
8893 fi # $ac_x_libraries = no
8895 case $ac_x_includes,$ac_x_libraries in #(
8897 # Didn't find X, or a directory has "'" in its name.
8898 ac_cv_have_x
="have_x=no";; #(
8900 # Record where we found X for the cache.
8901 ac_cv_have_x
="have_x=yes\
8902 ac_x_includes='$ac_x_includes'\
8903 ac_x_libraries='$ac_x_libraries'"
8909 eval "$ac_cv_have_x"
8912 if test "$have_x" != yes; then
8913 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_x" >&5
8914 $as_echo "$have_x" >&6; }
8917 # If each of the values was on the command line, it overrides each guess.
8918 test "x$x_includes" = xNONE
&& x_includes
=$ac_x_includes
8919 test "x$x_libraries" = xNONE
&& x_libraries
=$ac_x_libraries
8920 # Update the cache value to reflect the command line values.
8921 ac_cv_have_x
="have_x=yes\
8922 ac_x_includes='$x_includes'\
8923 ac_x_libraries='$x_libraries'"
8924 { $as_echo "$as_me:${as_lineno-$LINENO}: result: libraries $x_libraries, headers $x_includes" >&5
8925 $as_echo "libraries $x_libraries, headers $x_includes" >&6; }
8928 if test "$no_x" = yes; then
8934 ## Workaround for bug in autoconf <= 2.62.
8935 ## http://lists.gnu.org/archive/html/emacs-devel/2008-04/msg01551.html
8936 ## No need to do anything special for these standard directories.
8937 if test -n "${x_libraries}" && test x
"${x_libraries}" != xNONE
; then
8939 x_libraries
=`echo :${x_libraries}: | sed -e 's|:/usr/lib64:|:|g' -e 's|:/lib64:|:|g' -e 's|^:||' -e 's|:$||'`
8943 LD_SWITCH_X_SITE_AUX
=
8944 LD_SWITCH_X_SITE_AUX_RPATH
=
8945 if test "${x_libraries}" != NONE
; then
8946 if test -n "${x_libraries}"; then
8947 LD_SWITCH_X_SITE
=-L`echo ${x_libraries} | sed -e "s/:/ -L/g"`
8948 LD_SWITCH_X_SITE_AUX
=-R`echo ${x_libraries} | sed -e "s/:/ -R/g"`
8949 LD_SWITCH_X_SITE_AUX_RPATH
=`echo ${LD_SWITCH_X_SITE_AUX} | sed -e 's/-R/-Wl,-rpath,/'`
8951 x_default_search_path
=""
8952 x_search_path
=${x_libraries}
8953 if test -z "${x_search_path}"; then
8954 x_search_path
=/usr
/lib
8956 for x_library
in `echo ${x_search_path}: | \
8957 sed -e "s/:/ /g" -e p -e "s:/lib[^ /]* :/share :g"`; do
8959 ${x_library}/X11/%L/%T/%N%C%S:\
8960 ${x_library}/X11/%l/%T/%N%C%S:\
8961 ${x_library}/X11/%T/%N%C%S:\
8962 ${x_library}/X11/%L/%T/%N%S:\
8963 ${x_library}/X11/%l/%T/%N%S:\
8964 ${x_library}/X11/%T/%N%S"
8965 if test x
"${x_default_search_path}" = x
; then
8966 x_default_search_path
=${x_search_path}
8968 x_default_search_path
="${x_search_path}:${x_default_search_path}"
8975 if test "${x_includes}" != NONE
&& test -n "${x_includes}"; then
8976 C_SWITCH_X_SITE
=-I`echo ${x_includes} | sed -e "s/:/ -I/g"`
8979 if test x
"${x_includes}" = x
; then
8980 bitmapdir
=/usr
/include
/X11
/bitmaps
8982 # accumulate include directories that have X11 bitmap subdirectories
8984 for bmd
in `echo ${x_includes} | sed -e "s/:/ /g"`; do
8985 if test -d "${bmd}/X11/bitmaps"; then
8986 bmd_acc
="${bmd_acc}:${bmd}/X11/bitmaps"
8988 if test -d "${bmd}/bitmaps"; then
8989 bmd_acc
="${bmd_acc}:${bmd}/bitmaps"
8992 if test ${bmd_acc} != "dummyval"; then
8993 bitmapdir
=`echo ${bmd_acc} | sed -e "s/^dummyval://"`
9000 tmp_CPPFLAGS
="$CPPFLAGS"
9001 tmp_CFLAGS
="$CFLAGS"
9002 CPPFLAGS
="$CPPFLAGS -x objective-c"
9003 CFLAGS
="$CFLAGS -x objective-c"
9004 TEMACS_LDFLAGS2
="\${LDFLAGS}"
9005 if test "${with_ns}" != no
; then
9006 if test "${opsys}" = darwin
; then
9008 ns_appdir
=`pwd`/nextstep
/Emacs.app
9009 ns_appbindir
=${ns_appdir}/Contents
/MacOS
/
9010 ns_appresdir
=${ns_appdir}/Contents
/Resources
9011 ns_appsrc
=${srcdir}/nextstep
/Cocoa
/Emacs.base
9012 elif test -f $GNUSTEP_CONFIG_FILE; then
9014 ns_appdir
=`pwd`/nextstep
/Emacs.app
9015 ns_appbindir
=${ns_appdir}/
9016 ns_appresdir
=${ns_appdir}/Resources
9017 ns_appsrc
=${srcdir}/nextstep
/GNUstep
/Emacs.base
9018 GNUSTEP_SYSTEM_HEADERS
="$(. $GNUSTEP_CONFIG_FILE; echo $GNUSTEP_SYSTEM_HEADERS)"
9019 GNUSTEP_SYSTEM_LIBRARIES
="$(. $GNUSTEP_CONFIG_FILE; echo $GNUSTEP_SYSTEM_LIBRARIES)"
9020 GNUSTEP_LOCAL_HEADERS
="$(. $GNUSTEP_CONFIG_FILE; echo $GNUSTEP_LOCAL_HEADERS)"
9021 GNUSTEP_LOCAL_LIBRARIES
="$(. $GNUSTEP_CONFIG_FILE; echo $GNUSTEP_LOCAL_LIBRARIES)"
9022 test "x${GNUSTEP_LOCAL_HEADERS}" != "x" && \
9023 GNUSTEP_LOCAL_HEADERS
="-I${GNUSTEP_LOCAL_HEADERS}"
9024 test "x${GNUSTEP_LOCAL_LIBRARIES}" != "x" && \
9025 GNUSTEP_LOCAL_LIBRARIES
="-L${GNUSTEP_LOCAL_LIBRARIES}"
9026 CPPFLAGS
="$CPPFLAGS -I${GNUSTEP_SYSTEM_HEADERS} ${GNUSTEP_LOCAL_HEADERS}"
9027 CFLAGS
="$CFLAGS -I${GNUSTEP_SYSTEM_HEADERS} ${GNUSTEP_LOCAL_HEADERS}"
9028 LDFLAGS
="$LDFLAGS -L${GNUSTEP_SYSTEM_LIBRARIES} ${GNUSTEP_LOCAL_LIBRARIES}"
9033 ac_fn_c_check_header_mongrel
"$LINENO" "AppKit/AppKit.h" "ac_cv_header_AppKit_AppKit_h" "$ac_includes_default"
9034 if test "x$ac_cv_header_AppKit_AppKit_h" = x
""yes; then :
9037 as_fn_error $?
"\`--with-ns' was specified, but the include
9038 files are missing or cannot be compiled." "$LINENO" 5
9042 NS_HAVE_NSINTEGER
=yes
9043 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
9044 /* end confdefs.h. */
9045 #include <Foundation/NSObjCRuntime.h>
9054 if ac_fn_c_try_compile
"$LINENO"; then :
9055 ns_have_nsinteger
=yes
9057 ns_have_nsinteger
=no
9059 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
9060 if test $ns_have_nsinteger = no
; then
9061 NS_HAVE_NSINTEGER
=no
9070 if test "${HAVE_NS}" = yes; then
9071 window_system
=nextstep
9073 # set up packaging dirs
9074 exec_prefix
=${ns_appbindir}
9075 libexecdir
=${ns_appbindir}/libexec
9076 if test "${EN_NS_SELF_CONTAINED}" = yes; then
9077 prefix
=${ns_appresdir}
9079 ns_frag
=$srcdir/src
/ns.mk
9080 NS_OBJ
="fontset.o fringe.o image.o"
9081 NS_OBJC_OBJ
="nsterm.o nsfns.o nsmenu.o nsselect.o nsimage.o nsfont.o"
9082 NS_SUPPORT
="\${lispsource}/emacs-lisp/easymenu.elc \${lispsource}/term/ns-win.elc"
9084 CFLAGS
="$tmp_CFLAGS"
9085 CPPFLAGS
="$tmp_CPPFLAGS"
9092 case "${window_system}" in
9096 case "${with_x_toolkit}" in
9097 athena | lucid
) USE_X_TOOLKIT
=LUCID
;;
9098 motif
) USE_X_TOOLKIT
=MOTIF
;;
9100 USE_X_TOOLKIT
=none
;;
9101 gtk3
) with_gtk3
=yes
9102 USE_X_TOOLKIT
=none
;;
9103 no
) USE_X_TOOLKIT
=none
;;
9104 * ) USE_X_TOOLKIT
=maybe
;;
9114 if test "$window_system" = none
&& test "X$with_x" != "Xno"; then
9115 # Extract the first word of "X", so it can be a program name with args.
9116 set dummy X
; ac_word
=$2
9117 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9118 $as_echo_n "checking for $ac_word... " >&6; }
9119 if test "${ac_cv_prog_HAVE_XSERVER+set}" = set; then :
9120 $as_echo_n "(cached) " >&6
9122 if test -n "$HAVE_XSERVER"; then
9123 ac_cv_prog_HAVE_XSERVER
="$HAVE_XSERVER" # Let the user override the test.
9125 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
9129 test -z "$as_dir" && as_dir
=.
9130 for ac_exec_ext
in '' $ac_executable_extensions; do
9131 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9132 ac_cv_prog_HAVE_XSERVER
="true"
9133 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9140 test -z "$ac_cv_prog_HAVE_XSERVER" && ac_cv_prog_HAVE_XSERVER
="false"
9143 HAVE_XSERVER
=$ac_cv_prog_HAVE_XSERVER
9144 if test -n "$HAVE_XSERVER"; then
9145 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $HAVE_XSERVER" >&5
9146 $as_echo "$HAVE_XSERVER" >&6; }
9148 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9149 $as_echo "no" >&6; }
9153 if test "$HAVE_XSERVER" = true ||
9154 test -n "$DISPLAY" ||
9155 test "`echo /usr/lib/libX11.*`" != "/usr/lib/libX11.*"; then
9156 as_fn_error $?
"You seem to be running X, but no X development libraries
9157 were found. You should install the relevant development files for X
9158 and for the toolkit you want, such as Gtk+, Lesstif or Motif. Also make
9159 sure you have development files for image handling, i.e.
9160 tiff, gif, jpeg, png and xpm.
9161 If you are sure you want Emacs compiled without X window support, pass
9163 to configure." "$LINENO" 5
9167 ### If we're using X11, we should use the X menu package.
9170 yes ) HAVE_MENUS
=yes ;;
9173 # Do the opsystem or machine files prohibit the use of the GNU malloc?
9174 # Assume not, until told otherwise.
9177 ac_fn_c_check_func
"$LINENO" "malloc_get_state" "ac_cv_func_malloc_get_state"
9178 if test "x$ac_cv_func_malloc_get_state" = x
""yes; then :
9184 ac_fn_c_check_func
"$LINENO" "malloc_set_state" "ac_cv_func_malloc_set_state"
9185 if test "x$ac_cv_func_malloc_set_state" = x
""yes; then :
9191 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether __after_morecore_hook exists" >&5
9192 $as_echo_n "checking whether __after_morecore_hook exists... " >&6; }
9193 if test "${emacs_cv_var___after_morecore_hook+set}" = set; then :
9194 $as_echo_n "(cached) " >&6
9196 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
9197 /* end confdefs.h. */
9198 extern void (* __after_morecore_hook)();
9202 __after_morecore_hook = 0
9207 if ac_fn_c_try_link
"$LINENO"; then :
9208 emacs_cv_var___after_morecore_hook
=yes
9210 emacs_cv_var___after_morecore_hook
=no
9212 rm -f core conftest.err conftest.
$ac_objext \
9213 conftest
$ac_exeext conftest.
$ac_ext
9215 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $emacs_cv_var___after_morecore_hook" >&5
9216 $as_echo "$emacs_cv_var___after_morecore_hook" >&6; }
9217 if test $emacs_cv_var___after_morecore_hook = no
; then
9224 ## darwin ld insists on the use of malloc routines in the System framework.
9225 darwin|sol2-10
) system_malloc
=yes ;;
9228 if test "${system_malloc}" = "yes"; then
9230 $as_echo "#define SYSTEM_MALLOC 1" >>confdefs.h
9234 (The GNU allocators don't work with this system configuration.)"
9238 test "$doug_lea_malloc" != "yes" && GMALLOC_OBJ
=gmalloc.o
9239 VMLIMIT_OBJ
=vm-limit.o
9244 if test "$doug_lea_malloc" = "yes" ; then
9245 if test "$GNU_MALLOC" = yes ; then
9247 (Using Doug Lea's new malloc from the GNU C Library.)"
9250 $as_echo "#define DOUG_LEA_MALLOC 1" >>confdefs.h
9253 ## Use mmap directly for allocating larger buffers.
9254 ## FIXME this comes from src/s/{gnu,gnu-linux}.h:
9255 ## #ifdef DOUG_LEA_MALLOC; #undef REL_ALLOC; #endif
9256 ## Does the AC_FUNC_MMAP test below make this check unecessary?
9258 gnu
*) REL_ALLOC
=no
;;
9262 if test x
"${REL_ALLOC}" = x
; then
9263 REL_ALLOC
=${GNU_MALLOC}
9266 use_mmap_for_buffers
=no
9268 freebsd|irix6-5
) use_mmap_for_buffers
=yes ;;
9274 for ac_header
in $ac_header_list
9276 as_ac_Header
=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
9277 ac_fn_c_check_header_compile
"$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
9279 if eval test \"x\$
"$as_ac_Header"\" = x
"yes"; then :
9280 cat >>confdefs.h
<<_ACEOF
9281 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
9295 for ac_func
in getpagesize
9297 ac_fn_c_check_func
"$LINENO" "getpagesize" "ac_cv_func_getpagesize"
9298 if test "x$ac_cv_func_getpagesize" = x
""yes; then :
9299 cat >>confdefs.h
<<_ACEOF
9300 #define HAVE_GETPAGESIZE 1
9306 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working mmap" >&5
9307 $as_echo_n "checking for working mmap... " >&6; }
9308 if test "${ac_cv_func_mmap_fixed_mapped+set}" = set; then :
9309 $as_echo_n "(cached) " >&6
9311 if test "$cross_compiling" = yes; then :
9312 ac_cv_func_mmap_fixed_mapped
=no
9314 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
9315 /* end confdefs.h. */
9316 $ac_includes_default
9317 /* malloc might have been renamed as rpl_malloc. */
9320 /* Thanks to Mike Haertel and Jim Avera for this test.
9321 Here is a matrix of mmap possibilities:
9322 mmap private not fixed
9323 mmap private fixed at somewhere currently unmapped
9324 mmap private fixed at somewhere already mapped
9325 mmap shared not fixed
9326 mmap shared fixed at somewhere currently unmapped
9327 mmap shared fixed at somewhere already mapped
9328 For private mappings, we should verify that changes cannot be read()
9329 back from the file, nor mmap's back from the file at a different
9330 address. (There have been systems where private was not correctly
9331 implemented like the infamous i386 svr4.0, and systems where the
9332 VM page cache was not coherent with the file system buffer cache
9333 like early versions of FreeBSD and possibly contemporary NetBSD.)
9334 For shared mappings, we should conversely verify that changes get
9335 propagated back to all the places they're supposed to be.
9337 Grep wants private fixed already mapped.
9338 The main things grep needs to know about mmap are:
9339 * does it exist and is it safe to write into the mmap'd area
9340 * how to use it (BSD variants) */
9343 #include <sys/mman.h>
9345 #if !defined STDC_HEADERS && !defined HAVE_STDLIB_H
9349 /* This mess was copied from the GNU getpagesize.h. */
9350 #ifndef HAVE_GETPAGESIZE
9351 # ifdef _SC_PAGESIZE
9352 # define getpagesize() sysconf(_SC_PAGESIZE)
9353 # else /* no _SC_PAGESIZE */
9354 # ifdef HAVE_SYS_PARAM_H
9355 # include <sys/param.h>
9356 # ifdef EXEC_PAGESIZE
9357 # define getpagesize() EXEC_PAGESIZE
9358 # else /* no EXEC_PAGESIZE */
9360 # define getpagesize() NBPG * CLSIZE
9363 # endif /* no CLSIZE */
9364 # else /* no NBPG */
9366 # define getpagesize() NBPC
9367 # else /* no NBPC */
9369 # define getpagesize() PAGESIZE
9370 # endif /* PAGESIZE */
9371 # endif /* no NBPC */
9372 # endif /* no NBPG */
9373 # endif /* no EXEC_PAGESIZE */
9374 # else /* no HAVE_SYS_PARAM_H */
9375 # define getpagesize() 8192 /* punt totally */
9376 # endif /* no HAVE_SYS_PARAM_H */
9377 # endif /* no _SC_PAGESIZE */
9379 #endif /* no HAVE_GETPAGESIZE */
9384 char *data, *data2, *data3;
9389 pagesize = getpagesize ();
9391 /* First, make a file with some known garbage in it. */
9392 data = (char *) malloc (pagesize);
9395 for (i = 0; i < pagesize; ++i)
9396 *(data + i) = rand ();
9398 fd = creat ("conftest.mmap", 0600);
9401 if (write (fd, data, pagesize) != pagesize)
9405 /* Next, check that the tail of a page is zero-filled. File must have
9406 non-zero length, otherwise we risk SIGBUS for entire page. */
9407 fd2 = open ("conftest.txt", O_RDWR | O_CREAT | O_TRUNC, 0600);
9411 if (write (fd2, cdata2, 1) != 1)
9413 data2 = (char *) mmap (0, pagesize, PROT_READ | PROT_WRITE, MAP_SHARED, fd2, 0L);
9414 if (data2 == MAP_FAILED)
9416 for (i = 0; i < pagesize; ++i)
9420 if (munmap (data2, pagesize))
9423 /* Next, try to mmap the file at a fixed address which already has
9424 something else allocated at it. If we can, also make sure that
9425 we see the same garbage. */
9426 fd = open ("conftest.mmap", O_RDWR);
9429 if (data2 != mmap (data2, pagesize, PROT_READ | PROT_WRITE,
9430 MAP_PRIVATE | MAP_FIXED, fd, 0L))
9432 for (i = 0; i < pagesize; ++i)
9433 if (*(data + i) != *(data2 + i))
9436 /* Finally, make sure that changes to the mapped area do not
9437 percolate back to the file as seen by read(). (This is a bug on
9438 some variants of i386 svr4.0.) */
9439 for (i = 0; i < pagesize; ++i)
9440 *(data2 + i) = *(data2 + i) + 1;
9441 data3 = (char *) malloc (pagesize);
9444 if (read (fd, data3, pagesize) != pagesize)
9446 for (i = 0; i < pagesize; ++i)
9447 if (*(data + i) != *(data3 + i))
9453 if ac_fn_c_try_run
"$LINENO"; then :
9454 ac_cv_func_mmap_fixed_mapped
=yes
9456 ac_cv_func_mmap_fixed_mapped
=no
9458 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
9459 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
9463 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_mmap_fixed_mapped" >&5
9464 $as_echo "$ac_cv_func_mmap_fixed_mapped" >&6; }
9465 if test $ac_cv_func_mmap_fixed_mapped = yes; then
9467 $as_echo "#define HAVE_MMAP 1" >>confdefs.h
9470 rm -f conftest.mmap conftest.txt
9472 if test $use_mmap_for_buffers = yes; then
9474 $as_echo "#define USE_MMAP_FOR_BUFFERS 1" >>confdefs.h
9479 LIBS
="$LIBS_SYSTEM $LIBS"
9481 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dnet_ntoa in -ldnet" >&5
9482 $as_echo_n "checking for dnet_ntoa in -ldnet... " >&6; }
9483 if test "${ac_cv_lib_dnet_dnet_ntoa+set}" = set; then :
9484 $as_echo_n "(cached) " >&6
9486 ac_check_lib_save_LIBS
=$LIBS
9488 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
9489 /* end confdefs.h. */
9491 /* Override any GCC internal prototype to avoid an error.
9492 Use char because int might match the return type of a GCC
9493 builtin and then its argument prototype would still apply. */
9501 return dnet_ntoa ();
9506 if ac_fn_c_try_link
"$LINENO"; then :
9507 ac_cv_lib_dnet_dnet_ntoa
=yes
9509 ac_cv_lib_dnet_dnet_ntoa
=no
9511 rm -f core conftest.err conftest.
$ac_objext \
9512 conftest
$ac_exeext conftest.
$ac_ext
9513 LIBS
=$ac_check_lib_save_LIBS
9515 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dnet_dnet_ntoa" >&5
9516 $as_echo "$ac_cv_lib_dnet_dnet_ntoa" >&6; }
9517 if test "x$ac_cv_lib_dnet_dnet_ntoa" = x
""yes; then :
9518 cat >>confdefs.h
<<_ACEOF
9519 #define HAVE_LIBDNET 1
9527 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for main in -lXbsd" >&5
9528 $as_echo_n "checking for main in -lXbsd... " >&6; }
9529 if test "${ac_cv_lib_Xbsd_main+set}" = set; then :
9530 $as_echo_n "(cached) " >&6
9532 ac_check_lib_save_LIBS
=$LIBS
9534 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
9535 /* end confdefs.h. */
9546 if ac_fn_c_try_link
"$LINENO"; then :
9547 ac_cv_lib_Xbsd_main
=yes
9549 ac_cv_lib_Xbsd_main
=no
9551 rm -f core conftest.err conftest.
$ac_objext \
9552 conftest
$ac_exeext conftest.
$ac_ext
9553 LIBS
=$ac_check_lib_save_LIBS
9555 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_Xbsd_main" >&5
9556 $as_echo "$ac_cv_lib_Xbsd_main" >&6; }
9557 if test "x$ac_cv_lib_Xbsd_main" = x
""yes; then :
9558 LD_SWITCH_X_SITE
="$LD_SWITCH_X_SITE -lXbsd"
9562 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for cma_open in -lpthreads" >&5
9563 $as_echo_n "checking for cma_open in -lpthreads... " >&6; }
9564 if test "${ac_cv_lib_pthreads_cma_open+set}" = set; then :
9565 $as_echo_n "(cached) " >&6
9567 ac_check_lib_save_LIBS
=$LIBS
9568 LIBS
="-lpthreads $LIBS"
9569 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
9570 /* end confdefs.h. */
9572 /* Override any GCC internal prototype to avoid an error.
9573 Use char because int might match the return type of a GCC
9574 builtin and then its argument prototype would still apply. */
9587 if ac_fn_c_try_link
"$LINENO"; then :
9588 ac_cv_lib_pthreads_cma_open
=yes
9590 ac_cv_lib_pthreads_cma_open
=no
9592 rm -f core conftest.err conftest.
$ac_objext \
9593 conftest
$ac_exeext conftest.
$ac_ext
9594 LIBS
=$ac_check_lib_save_LIBS
9596 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_pthreads_cma_open" >&5
9597 $as_echo "$ac_cv_lib_pthreads_cma_open" >&6; }
9598 if test "x$ac_cv_lib_pthreads_cma_open" = x
""yes; then :
9599 cat >>confdefs.h
<<_ACEOF
9600 #define HAVE_LIBPTHREADS 1
9603 LIBS
="-lpthreads $LIBS"
9608 ## Note: when using cpp in s/aix4.2.h, this definition depended on
9609 ## HAVE_LIBPTHREADS. That was not defined earlier in configure when
9610 ## the system file was sourced. Hence the value of LIBS_SYSTEM
9611 ## added to LIBS in configure would never contain the pthreads part,
9612 ## but the value used in Makefiles might. FIXME?
9614 ## -lpthreads seems to be necessary for Xlib in X11R6, and should
9615 ## be harmless on older versions of X where it happens to exist.
9616 test "$opsys" = "aix4-2" && \
9617 test $ac_cv_lib_pthreads_cma_open = yes && \
9618 LIBS_SYSTEM
="$LIBS_SYSTEM -lpthreads"
9623 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -bbigtoc option" >&5
9624 $as_echo_n "checking for -bbigtoc option... " >&6; }
9625 if test "${gdb_cv_bigtoc+set}" = set; then :
9626 $as_echo_n "(cached) " >&6
9630 yes) gdb_cv_bigtoc
=-Wl,-bbigtoc ;;
9631 *) gdb_cv_bigtoc
=-bbigtoc ;;
9634 LDFLAGS
=$LDFLAGS\
$gdb_cv_bigtoc
9635 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
9636 /* end confdefs.h. */
9646 if ac_fn_c_try_link
"$LINENO"; then :
9651 rm -f core conftest.err conftest.
$ac_objext \
9652 conftest
$ac_exeext conftest.
$ac_ext
9655 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gdb_cv_bigtoc" >&5
9656 $as_echo "$gdb_cv_bigtoc" >&6; }
9660 # Change CFLAGS and CPPFLAGS temporarily so that C_SWITCH_X_SITE gets
9661 # used for the tests that follow. We set them back to REAL_CFLAGS and
9662 # REAL_CPPFLAGS later on.
9664 REAL_CFLAGS
="$CFLAGS"
9665 REAL_CPPFLAGS
="$CPPFLAGS"
9667 if test "${HAVE_X11}" = "yes"; then
9668 DEFS
="$C_SWITCH_X_SITE $DEFS"
9669 LDFLAGS
="$LDFLAGS $LD_SWITCH_X_SITE"
9671 CFLAGS
="$C_SWITCH_X_SITE $CFLAGS"
9672 CPPFLAGS
="$C_SWITCH_X_SITE $CPPFLAGS"
9674 # On Solaris, arrange for LD_RUN_PATH to point to the X libraries for tests.
9675 # This is handled by LD_SWITCH_X_SITE_AUX during the real build,
9676 # but it's more convenient here to set LD_RUN_PATH
9677 # since this also works on hosts that don't understand LD_SWITCH_X_SITE_AUX.
9678 if test "${x_libraries}" != NONE
&& test -n "${x_libraries}"; then
9679 LD_RUN_PATH
=$x_libraries${LD_RUN_PATH+:}$LD_RUN_PATH
9683 if test "${opsys}" = "gnu-linux"; then
9684 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether X on GNU/Linux needs -b to link" >&5
9685 $as_echo_n "checking whether X on GNU/Linux needs -b to link... " >&6; }
9686 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
9687 /* end confdefs.h. */
9692 XOpenDisplay ("foo");
9697 if ac_fn_c_try_link
"$LINENO"; then :
9698 xlinux_first_failure
=no
9700 xlinux_first_failure
=yes
9702 rm -f core conftest.err conftest.
$ac_objext \
9703 conftest
$ac_exeext conftest.
$ac_ext
9704 if test "${xlinux_first_failure}" = "yes"; then
9705 OLD_LD_SWITCH_X_SITE
="$LD_SWITCH_X_SITE"
9706 OLD_C_SWITCH_X_SITE
="$C_SWITCH_X_SITE"
9707 OLD_CPPFLAGS
="$CPPFLAGS"
9709 LD_SWITCH_X_SITE
="$LD_SWITCH_X_SITE -b i486-linuxaout"
9710 C_SWITCH_X_SITE
="$C_SWITCH_X_SITE -b i486-linuxaout"
9711 CPPFLAGS
="$CPPFLAGS -b i486-linuxaout"
9712 LIBS
="$LIBS -b i486-linuxaout"
9713 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
9714 /* end confdefs.h. */
9719 XOpenDisplay ("foo");
9724 if ac_fn_c_try_link
"$LINENO"; then :
9725 xlinux_second_failure
=no
9727 xlinux_second_failure
=yes
9729 rm -f core conftest.err conftest.
$ac_objext \
9730 conftest
$ac_exeext conftest.
$ac_ext
9731 if test "${xlinux_second_failure}" = "yes"; then
9732 # If we get the same failure with -b, there is no use adding -b.
9733 # So take it out. This plays safe.
9734 LD_SWITCH_X_SITE
="$OLD_LD_SWITCH_X_SITE"
9735 C_SWITCH_X_SITE
="$OLD_C_SWITCH_X_SITE"
9736 CPPFLAGS
="$OLD_CPPFLAGS"
9738 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9739 $as_echo "no" >&6; }
9741 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
9742 $as_echo "yes" >&6; }
9745 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9746 $as_echo "no" >&6; }
9750 # Reportedly, some broken Solaris systems have XKBlib.h but are missing
9751 # header files included from there.
9752 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Xkb" >&5
9753 $as_echo_n "checking for Xkb... " >&6; }
9754 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
9755 /* end confdefs.h. */
9756 #include <X11/Xlib.h>
9757 #include <X11/XKBlib.h>
9761 XkbDescPtr kb = XkbGetKeyboard (0, XkbAllComponentsMask, XkbUseCoreKbd);
9766 if ac_fn_c_try_link
"$LINENO"; then :
9771 rm -f core conftest.err conftest.
$ac_objext \
9772 conftest
$ac_exeext conftest.
$ac_ext
9773 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $emacs_xkb" >&5
9774 $as_echo "$emacs_xkb" >&6; }
9775 if test $emacs_xkb = yes; then
9777 $as_echo "#define HAVE_XKBGETKEYBOARD 1" >>confdefs.h
9781 for ac_func
in XrmSetDatabase XScreenResourceString \
9782 XScreenNumberOfScreen XSetWMProtocols
9784 as_ac_var
=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
9785 ac_fn_c_check_func
"$LINENO" "$ac_func" "$as_ac_var"
9786 if eval test \"x\$
"$as_ac_var"\" = x
"yes"; then :
9787 cat >>confdefs.h
<<_ACEOF
9788 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
9796 if test "${window_system}" = "x11"; then
9797 { $as_echo "$as_me:${as_lineno-$LINENO}: checking X11 version 6" >&5
9798 $as_echo_n "checking X11 version 6... " >&6; }
9799 if test "${emacs_cv_x11_version_6+set}" = set; then :
9800 $as_echo_n "(cached) " >&6
9802 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
9803 /* end confdefs.h. */
9804 #include <X11/Xlib.h>
9808 #if XlibSpecificationRelease < 6
9816 if ac_fn_c_try_link
"$LINENO"; then :
9817 emacs_cv_x11_version_6
=yes
9819 emacs_cv_x11_version_6
=no
9821 rm -f core conftest.err conftest.
$ac_objext \
9822 conftest
$ac_exeext conftest.
$ac_ext
9825 if test $emacs_cv_x11_version_6 = yes; then
9826 { $as_echo "$as_me:${as_lineno-$LINENO}: result: 6 or newer" >&5
9827 $as_echo "6 or newer" >&6; }
9829 $as_echo "#define HAVE_X11R6 1" >>confdefs.h
9832 $as_echo "#define HAVE_X_I18N 1" >>confdefs.h
9834 ## inoue@ainet.or.jp says Solaris has a bug related to X11R6-style
9839 $as_echo "#define HAVE_X11R6_XIM 1" >>confdefs.h
9844 { $as_echo "$as_me:${as_lineno-$LINENO}: result: before 6" >&5
9845 $as_echo "before 6" >&6; }
9850 ### Use -lrsvg-2 if available, unless `--with-rsvg=no' is specified.
9852 if test "${HAVE_X11}" = "yes" ||
test "${NS_IMPL_GNUSTEP}" = "yes"; then
9853 if test "${with_rsvg}" != "no"; then
9854 RSVG_REQUIRED
=2.11.0
9855 RSVG_MODULE
="librsvg-2.0 >= $RSVG_REQUIRED"
9860 # Extract the first word of "pkg-config", so it can be a program name with args.
9861 set dummy pkg-config
; ac_word
=$2
9862 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9863 $as_echo_n "checking for $ac_word... " >&6; }
9864 if test "${ac_cv_path_PKG_CONFIG+set}" = set; then :
9865 $as_echo_n "(cached) " >&6
9869 ac_cv_path_PKG_CONFIG
="$PKG_CONFIG" # Let the user override the test with a path.
9872 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
9876 test -z "$as_dir" && as_dir
=.
9877 for ac_exec_ext
in '' $ac_executable_extensions; do
9878 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9879 ac_cv_path_PKG_CONFIG
="$as_dir/$ac_word$ac_exec_ext"
9880 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9887 test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG
="no"
9891 PKG_CONFIG
=$ac_cv_path_PKG_CONFIG
9892 if test -n "$PKG_CONFIG"; then
9893 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5
9894 $as_echo "$PKG_CONFIG" >&6; }
9896 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9897 $as_echo "no" >&6; }
9902 if test "$PKG_CONFIG" = "no" ; then
9905 PKG_CONFIG_MIN_VERSION
=0.9.0
9906 if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
9907 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $RSVG_MODULE" >&5
9908 $as_echo_n "checking for $RSVG_MODULE... " >&6; }
9910 if $PKG_CONFIG --exists "$RSVG_MODULE" 2>&5; then
9911 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
9912 $as_echo "yes" >&6; }
9915 { $as_echo "$as_me:${as_lineno-$LINENO}: checking RSVG_CFLAGS" >&5
9916 $as_echo_n "checking RSVG_CFLAGS... " >&6; }
9917 RSVG_CFLAGS
=`$PKG_CONFIG --cflags "$RSVG_MODULE"|sed -e 's,///*,/,g'`
9918 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RSVG_CFLAGS" >&5
9919 $as_echo "$RSVG_CFLAGS" >&6; }
9921 { $as_echo "$as_me:${as_lineno-$LINENO}: checking RSVG_LIBS" >&5
9922 $as_echo_n "checking RSVG_LIBS... " >&6; }
9923 RSVG_LIBS
=`$PKG_CONFIG --libs "$RSVG_MODULE"|sed -e 's,///*,/,g'`
9924 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RSVG_LIBS" >&5
9925 $as_echo "$RSVG_LIBS" >&6; }
9927 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9928 $as_echo "no" >&6; }
9931 ## If we have a custom action on failure, don't print errors, but
9932 ## do set a variable so people can do so.
9933 RSVG_PKG_ERRORS
=`$PKG_CONFIG --errors-to-stdout --print-errors "$RSVG_MODULE"`
9940 echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
9941 echo "*** See http://www.freedesktop.org/software/pkgconfig"
9945 if test $succeeded = yes; then
9954 if test $HAVE_RSVG = yes; then
9956 $as_echo "#define HAVE_RSVG 1" >>confdefs.h
9958 CFLAGS
="$CFLAGS $RSVG_CFLAGS"
9959 LIBS
="$RSVG_LIBS $LIBS"
9965 if test "${HAVE_X11}" = "yes"; then
9966 if test "${with_imagemagick}" != "no"; then
9967 IMAGEMAGICK_MODULE
="Wand"
9971 # Extract the first word of "pkg-config", so it can be a program name with args.
9972 set dummy pkg-config
; ac_word
=$2
9973 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9974 $as_echo_n "checking for $ac_word... " >&6; }
9975 if test "${ac_cv_path_PKG_CONFIG+set}" = set; then :
9976 $as_echo_n "(cached) " >&6
9980 ac_cv_path_PKG_CONFIG
="$PKG_CONFIG" # Let the user override the test with a path.
9983 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
9987 test -z "$as_dir" && as_dir
=.
9988 for ac_exec_ext
in '' $ac_executable_extensions; do
9989 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9990 ac_cv_path_PKG_CONFIG
="$as_dir/$ac_word$ac_exec_ext"
9991 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9998 test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG
="no"
10002 PKG_CONFIG
=$ac_cv_path_PKG_CONFIG
10003 if test -n "$PKG_CONFIG"; then
10004 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5
10005 $as_echo "$PKG_CONFIG" >&6; }
10007 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10008 $as_echo "no" >&6; }
10013 if test "$PKG_CONFIG" = "no" ; then
10016 PKG_CONFIG_MIN_VERSION
=0.9.0
10017 if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
10018 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $IMAGEMAGICK_MODULE" >&5
10019 $as_echo_n "checking for $IMAGEMAGICK_MODULE... " >&6; }
10021 if $PKG_CONFIG --exists "$IMAGEMAGICK_MODULE" 2>&5; then
10022 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
10023 $as_echo "yes" >&6; }
10026 { $as_echo "$as_me:${as_lineno-$LINENO}: checking IMAGEMAGICK_CFLAGS" >&5
10027 $as_echo_n "checking IMAGEMAGICK_CFLAGS... " >&6; }
10028 IMAGEMAGICK_CFLAGS
=`$PKG_CONFIG --cflags "$IMAGEMAGICK_MODULE"|sed -e 's,///*,/,g'`
10029 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $IMAGEMAGICK_CFLAGS" >&5
10030 $as_echo "$IMAGEMAGICK_CFLAGS" >&6; }
10032 { $as_echo "$as_me:${as_lineno-$LINENO}: checking IMAGEMAGICK_LIBS" >&5
10033 $as_echo_n "checking IMAGEMAGICK_LIBS... " >&6; }
10034 IMAGEMAGICK_LIBS
=`$PKG_CONFIG --libs "$IMAGEMAGICK_MODULE"|sed -e 's,///*,/,g'`
10035 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $IMAGEMAGICK_LIBS" >&5
10036 $as_echo "$IMAGEMAGICK_LIBS" >&6; }
10038 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10039 $as_echo "no" >&6; }
10040 IMAGEMAGICK_CFLAGS
=""
10041 IMAGEMAGICK_LIBS
=""
10042 ## If we have a custom action on failure, don't print errors, but
10043 ## do set a variable so people can do so.
10044 IMAGEMAGICK_PKG_ERRORS
=`$PKG_CONFIG --errors-to-stdout --print-errors "$IMAGEMAGICK_MODULE"`
10051 echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
10052 echo "*** See http://www.freedesktop.org/software/pkgconfig"
10056 if test $succeeded = yes; then
10057 HAVE_IMAGEMAGICK
=yes
10065 if test $HAVE_IMAGEMAGICK = yes; then
10067 $as_echo "#define HAVE_IMAGEMAGICK 1" >>confdefs.h
10069 CFLAGS
="$CFLAGS $IMAGEMAGICK_CFLAGS"
10070 LIBS
="$IMAGEMAGICK_LIBS $LIBS"
10071 for ac_func
in MagickExportImagePixels
10073 ac_fn_c_check_func
"$LINENO" "MagickExportImagePixels" "ac_cv_func_MagickExportImagePixels"
10074 if test "x$ac_cv_func_MagickExportImagePixels" = x
""yes; then :
10075 cat >>confdefs.h
<<_ACEOF
10076 #define HAVE_MAGICKEXPORTIMAGEPIXELS 1
10088 if test "${with_gtk3}" = "yes"; then
10091 GTK_MODULES
="gtk+-3.0 >= $GTK_REQUIRED glib-2.0 >= $GLIB_REQUIRED"
10096 # Extract the first word of "pkg-config", so it can be a program name with args.
10097 set dummy pkg-config
; ac_word
=$2
10098 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10099 $as_echo_n "checking for $ac_word... " >&6; }
10100 if test "${ac_cv_path_PKG_CONFIG+set}" = set; then :
10101 $as_echo_n "(cached) " >&6
10103 case $PKG_CONFIG in
10105 ac_cv_path_PKG_CONFIG
="$PKG_CONFIG" # Let the user override the test with a path.
10108 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
10109 for as_dir
in $PATH
10112 test -z "$as_dir" && as_dir
=.
10113 for ac_exec_ext
in '' $ac_executable_extensions; do
10114 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10115 ac_cv_path_PKG_CONFIG
="$as_dir/$ac_word$ac_exec_ext"
10116 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10123 test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG
="no"
10127 PKG_CONFIG
=$ac_cv_path_PKG_CONFIG
10128 if test -n "$PKG_CONFIG"; then
10129 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5
10130 $as_echo "$PKG_CONFIG" >&6; }
10132 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10133 $as_echo "no" >&6; }
10138 if test "$PKG_CONFIG" = "no" ; then
10141 PKG_CONFIG_MIN_VERSION
=0.9.0
10142 if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
10143 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $GTK_MODULES" >&5
10144 $as_echo_n "checking for $GTK_MODULES... " >&6; }
10146 if $PKG_CONFIG --exists "$GTK_MODULES" 2>&5; then
10147 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
10148 $as_echo "yes" >&6; }
10151 { $as_echo "$as_me:${as_lineno-$LINENO}: checking GTK_CFLAGS" >&5
10152 $as_echo_n "checking GTK_CFLAGS... " >&6; }
10153 GTK_CFLAGS
=`$PKG_CONFIG --cflags "$GTK_MODULES"|sed -e 's,///*,/,g'`
10154 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GTK_CFLAGS" >&5
10155 $as_echo "$GTK_CFLAGS" >&6; }
10157 { $as_echo "$as_me:${as_lineno-$LINENO}: checking GTK_LIBS" >&5
10158 $as_echo_n "checking GTK_LIBS... " >&6; }
10159 GTK_LIBS
=`$PKG_CONFIG --libs "$GTK_MODULES"|sed -e 's,///*,/,g'`
10160 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GTK_LIBS" >&5
10161 $as_echo "$GTK_LIBS" >&6; }
10163 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10164 $as_echo "no" >&6; }
10167 ## If we have a custom action on failure, don't print errors, but
10168 ## do set a variable so people can do so.
10169 GTK_PKG_ERRORS
=`$PKG_CONFIG --errors-to-stdout --print-errors "$GTK_MODULES"`
10176 echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
10177 echo "*** See http://www.freedesktop.org/software/pkgconfig"
10181 if test $succeeded = yes; then
10187 if test "$pkg_check_gtk" = "no" && test "$USE_X_TOOLKIT" != "maybe"; then
10188 as_fn_error $?
"$GTK_PKG_ERRORS" "$LINENO" 5
10192 if test "$pkg_check_gtk" != "yes"; then
10194 if test "${with_gtk}" = "yes" ||
test "$USE_X_TOOLKIT" = "maybe"; then
10197 GTK_MODULES
="gtk+-2.0 >= $GTK_REQUIRED glib-2.0 >= $GLIB_REQUIRED"
10202 # Extract the first word of "pkg-config", so it can be a program name with args.
10203 set dummy pkg-config
; ac_word
=$2
10204 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10205 $as_echo_n "checking for $ac_word... " >&6; }
10206 if test "${ac_cv_path_PKG_CONFIG+set}" = set; then :
10207 $as_echo_n "(cached) " >&6
10209 case $PKG_CONFIG in
10211 ac_cv_path_PKG_CONFIG
="$PKG_CONFIG" # Let the user override the test with a path.
10214 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
10215 for as_dir
in $PATH
10218 test -z "$as_dir" && as_dir
=.
10219 for ac_exec_ext
in '' $ac_executable_extensions; do
10220 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10221 ac_cv_path_PKG_CONFIG
="$as_dir/$ac_word$ac_exec_ext"
10222 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10229 test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG
="no"
10233 PKG_CONFIG
=$ac_cv_path_PKG_CONFIG
10234 if test -n "$PKG_CONFIG"; then
10235 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5
10236 $as_echo "$PKG_CONFIG" >&6; }
10238 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10239 $as_echo "no" >&6; }
10244 if test "$PKG_CONFIG" = "no" ; then
10247 PKG_CONFIG_MIN_VERSION
=0.9.0
10248 if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
10249 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $GTK_MODULES" >&5
10250 $as_echo_n "checking for $GTK_MODULES... " >&6; }
10252 if $PKG_CONFIG --exists "$GTK_MODULES" 2>&5; then
10253 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
10254 $as_echo "yes" >&6; }
10257 { $as_echo "$as_me:${as_lineno-$LINENO}: checking GTK_CFLAGS" >&5
10258 $as_echo_n "checking GTK_CFLAGS... " >&6; }
10259 GTK_CFLAGS
=`$PKG_CONFIG --cflags "$GTK_MODULES"|sed -e 's,///*,/,g'`
10260 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GTK_CFLAGS" >&5
10261 $as_echo "$GTK_CFLAGS" >&6; }
10263 { $as_echo "$as_me:${as_lineno-$LINENO}: checking GTK_LIBS" >&5
10264 $as_echo_n "checking GTK_LIBS... " >&6; }
10265 GTK_LIBS
=`$PKG_CONFIG --libs "$GTK_MODULES"|sed -e 's,///*,/,g'`
10266 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GTK_LIBS" >&5
10267 $as_echo "$GTK_LIBS" >&6; }
10269 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10270 $as_echo "no" >&6; }
10273 ## If we have a custom action on failure, don't print errors, but
10274 ## do set a variable so people can do so.
10275 GTK_PKG_ERRORS
=`$PKG_CONFIG --errors-to-stdout --print-errors "$GTK_MODULES"`
10282 echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
10283 echo "*** See http://www.freedesktop.org/software/pkgconfig"
10287 if test $succeeded = yes; then
10293 if test "$pkg_check_gtk" = "no" && test "$USE_X_TOOLKIT" != "maybe"; then
10294 as_fn_error $?
"$GTK_PKG_ERRORS" "$LINENO" 5
10300 if test x
"$pkg_check_gtk" = xyes
; then
10304 C_SWITCH_X_SITE
="$C_SWITCH_X_SITE $GTK_CFLAGS"
10305 CFLAGS
="$CFLAGS $GTK_CFLAGS"
10306 LIBS
="$GTK_LIBS $LIBS"
10308 for ac_func
in gtk_main
10310 ac_fn_c_check_func
"$LINENO" "gtk_main" "ac_cv_func_gtk_main"
10311 if test "x$ac_cv_func_gtk_main" = x
""yes; then :
10312 cat >>confdefs.h
<<_ACEOF
10313 #define HAVE_GTK_MAIN 1
10319 if test "${GTK_COMPILES}" != "yes"; then
10320 if test "$USE_X_TOOLKIT" != "maybe"; then
10321 as_fn_error $?
"Gtk+ wanted, but it does not compile, see config.log. Maybe some x11-devel files missing?" "$LINENO" 5 ;
10326 $as_echo "#define USE_GTK 1" >>confdefs.h
10330 if $PKG_CONFIG --atleast-version=2.10 gtk
+-2.0
; then
10333 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Your version of Gtk+ will have problems with
10334 closing open displays. This is no problem if you just use
10335 one display, but if you use more than one and close one of them
10336 Emacs may crash." >&5
10337 $as_echo "$as_me: WARNING: Your version of Gtk+ will have problems with
10338 closing open displays. This is no problem if you just use
10339 one display, but if you use more than one and close one of them
10340 Emacs may crash." >&2;}
10349 if test "${HAVE_GTK}" = "yes"; then
10351 if test "$with_toolkit_scroll_bars" != no
; then
10352 with_toolkit_scroll_bars
=yes
10355 HAVE_GTK_FILE_SELECTION
=no
10356 ac_fn_c_check_decl
"$LINENO" "GTK_TYPE_FILE_SELECTION" "ac_cv_have_decl_GTK_TYPE_FILE_SELECTION" "$ac_includes_default
10357 #include <gtk/gtk.h>
10359 if test "x$ac_cv_have_decl_GTK_TYPE_FILE_SELECTION" = x
""yes; then :
10360 HAVE_GTK_FILE_SELECTION
=yes
10362 HAVE_GTK_FILE_SELECTION
=no
10365 if test "$HAVE_GTK_FILE_SELECTION" = yes; then
10366 for ac_func
in gtk_file_selection_new
10368 ac_fn_c_check_func
"$LINENO" "gtk_file_selection_new" "ac_cv_func_gtk_file_selection_new"
10369 if test "x$ac_cv_func_gtk_file_selection_new" = x
""yes; then :
10370 cat >>confdefs.h
<<_ACEOF
10371 #define HAVE_GTK_FILE_SELECTION_NEW 1
10379 HAVE_GTK_AND_PTHREAD
=no
10380 for ac_header
in pthread.h
10382 ac_fn_c_check_header_mongrel
"$LINENO" "pthread.h" "ac_cv_header_pthread_h" "$ac_includes_default"
10383 if test "x$ac_cv_header_pthread_h" = x
""yes; then :
10384 cat >>confdefs.h
<<_ACEOF
10385 #define HAVE_PTHREAD_H 1
10392 if test "$ac_cv_header_pthread_h"; then
10393 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pthread_self in -lpthread" >&5
10394 $as_echo_n "checking for pthread_self in -lpthread... " >&6; }
10395 if test "${ac_cv_lib_pthread_pthread_self+set}" = set; then :
10396 $as_echo_n "(cached) " >&6
10398 ac_check_lib_save_LIBS
=$LIBS
10399 LIBS
="-lpthread $LIBS"
10400 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
10401 /* end confdefs.h. */
10403 /* Override any GCC internal prototype to avoid an error.
10404 Use char because int might match the return type of a GCC
10405 builtin and then its argument prototype would still apply. */
10409 char pthread_self ();
10413 return pthread_self ();
10418 if ac_fn_c_try_link
"$LINENO"; then :
10419 ac_cv_lib_pthread_pthread_self
=yes
10421 ac_cv_lib_pthread_pthread_self
=no
10423 rm -f core conftest.err conftest.
$ac_objext \
10424 conftest
$ac_exeext conftest.
$ac_ext
10425 LIBS
=$ac_check_lib_save_LIBS
10427 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_pthread_pthread_self" >&5
10428 $as_echo "$ac_cv_lib_pthread_pthread_self" >&6; }
10429 if test "x$ac_cv_lib_pthread_pthread_self" = x
""yes; then :
10430 HAVE_GTK_AND_PTHREAD
=yes
10434 if test "$HAVE_GTK_AND_PTHREAD" = yes; then
10435 case "${canonical}" in
10437 *) GTK_LIBS
="$GTK_LIBS -lpthread" ;;
10440 $as_echo "#define HAVE_GTK_AND_PTHREAD 1" >>confdefs.h
10444 for ac_func
in gtk_widget_get_window gtk_widget_set_has_window \
10445 gtk_dialog_get_action_area gtk_widget_get_sensitive \
10446 gtk_widget_get_mapped gtk_adjustment_get_page_size \
10447 gtk_orientable_set_orientation
10449 as_ac_var
=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
10450 ac_fn_c_check_func
"$LINENO" "$ac_func" "$as_ac_var"
10451 if eval test \"x\$
"$as_ac_var"\" = x
"yes"; then :
10452 cat >>confdefs.h
<<_ACEOF
10453 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
10464 if test "${with_dbus}" = "yes"; then
10468 # Extract the first word of "pkg-config", so it can be a program name with args.
10469 set dummy pkg-config
; ac_word
=$2
10470 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10471 $as_echo_n "checking for $ac_word... " >&6; }
10472 if test "${ac_cv_path_PKG_CONFIG+set}" = set; then :
10473 $as_echo_n "(cached) " >&6
10475 case $PKG_CONFIG in
10477 ac_cv_path_PKG_CONFIG
="$PKG_CONFIG" # Let the user override the test with a path.
10480 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
10481 for as_dir
in $PATH
10484 test -z "$as_dir" && as_dir
=.
10485 for ac_exec_ext
in '' $ac_executable_extensions; do
10486 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10487 ac_cv_path_PKG_CONFIG
="$as_dir/$ac_word$ac_exec_ext"
10488 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10495 test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG
="no"
10499 PKG_CONFIG
=$ac_cv_path_PKG_CONFIG
10500 if test -n "$PKG_CONFIG"; then
10501 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5
10502 $as_echo "$PKG_CONFIG" >&6; }
10504 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10505 $as_echo "no" >&6; }
10510 if test "$PKG_CONFIG" = "no" ; then
10513 PKG_CONFIG_MIN_VERSION
=0.9.0
10514 if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
10515 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dbus-1 >= 1.0" >&5
10516 $as_echo_n "checking for dbus-1 >= 1.0... " >&6; }
10518 if $PKG_CONFIG --exists "dbus-1 >= 1.0" 2>&5; then
10519 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
10520 $as_echo "yes" >&6; }
10523 { $as_echo "$as_me:${as_lineno-$LINENO}: checking DBUS_CFLAGS" >&5
10524 $as_echo_n "checking DBUS_CFLAGS... " >&6; }
10525 DBUS_CFLAGS
=`$PKG_CONFIG --cflags "dbus-1 >= 1.0"|sed -e 's,///*,/,g'`
10526 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DBUS_CFLAGS" >&5
10527 $as_echo "$DBUS_CFLAGS" >&6; }
10529 { $as_echo "$as_me:${as_lineno-$LINENO}: checking DBUS_LIBS" >&5
10530 $as_echo_n "checking DBUS_LIBS... " >&6; }
10531 DBUS_LIBS
=`$PKG_CONFIG --libs "dbus-1 >= 1.0"|sed -e 's,///*,/,g'`
10532 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DBUS_LIBS" >&5
10533 $as_echo "$DBUS_LIBS" >&6; }
10535 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10536 $as_echo "no" >&6; }
10539 ## If we have a custom action on failure, don't print errors, but
10540 ## do set a variable so people can do so.
10541 DBUS_PKG_ERRORS
=`$PKG_CONFIG --errors-to-stdout --print-errors "dbus-1 >= 1.0"`
10548 echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
10549 echo "*** See http://www.freedesktop.org/software/pkgconfig"
10553 if test $succeeded = yes; then
10559 if test "$HAVE_DBUS" = yes; then
10560 LIBS
="$LIBS $DBUS_LIBS"
10562 $as_echo "#define HAVE_DBUS 1" >>confdefs.h
10564 for ac_func
in dbus_watch_get_unix_fd
10566 ac_fn_c_check_func
"$LINENO" "dbus_watch_get_unix_fd" "ac_cv_func_dbus_watch_get_unix_fd"
10567 if test "x$ac_cv_func_dbus_watch_get_unix_fd" = x
""yes; then :
10568 cat >>confdefs.h
<<_ACEOF
10569 #define HAVE_DBUS_WATCH_GET_UNIX_FD 1
10575 DBUS_OBJ
=dbusbind.o
10581 if test "${HAVE_X11}" = "yes" && test "${with_gconf}" = "yes"; then
10585 # Extract the first word of "pkg-config", so it can be a program name with args.
10586 set dummy pkg-config
; ac_word
=$2
10587 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10588 $as_echo_n "checking for $ac_word... " >&6; }
10589 if test "${ac_cv_path_PKG_CONFIG+set}" = set; then :
10590 $as_echo_n "(cached) " >&6
10592 case $PKG_CONFIG in
10594 ac_cv_path_PKG_CONFIG
="$PKG_CONFIG" # Let the user override the test with a path.
10597 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
10598 for as_dir
in $PATH
10601 test -z "$as_dir" && as_dir
=.
10602 for ac_exec_ext
in '' $ac_executable_extensions; do
10603 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10604 ac_cv_path_PKG_CONFIG
="$as_dir/$ac_word$ac_exec_ext"
10605 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10612 test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG
="no"
10616 PKG_CONFIG
=$ac_cv_path_PKG_CONFIG
10617 if test -n "$PKG_CONFIG"; then
10618 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5
10619 $as_echo "$PKG_CONFIG" >&6; }
10621 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10622 $as_echo "no" >&6; }
10627 if test "$PKG_CONFIG" = "no" ; then
10630 PKG_CONFIG_MIN_VERSION
=0.9.0
10631 if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
10632 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gconf-2.0 >= 2.13" >&5
10633 $as_echo_n "checking for gconf-2.0 >= 2.13... " >&6; }
10635 if $PKG_CONFIG --exists "gconf-2.0 >= 2.13" 2>&5; then
10636 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
10637 $as_echo "yes" >&6; }
10640 { $as_echo "$as_me:${as_lineno-$LINENO}: checking GCONF_CFLAGS" >&5
10641 $as_echo_n "checking GCONF_CFLAGS... " >&6; }
10642 GCONF_CFLAGS
=`$PKG_CONFIG --cflags "gconf-2.0 >= 2.13"|sed -e 's,///*,/,g'`
10643 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GCONF_CFLAGS" >&5
10644 $as_echo "$GCONF_CFLAGS" >&6; }
10646 { $as_echo "$as_me:${as_lineno-$LINENO}: checking GCONF_LIBS" >&5
10647 $as_echo_n "checking GCONF_LIBS... " >&6; }
10648 GCONF_LIBS
=`$PKG_CONFIG --libs "gconf-2.0 >= 2.13"|sed -e 's,///*,/,g'`
10649 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GCONF_LIBS" >&5
10650 $as_echo "$GCONF_LIBS" >&6; }
10652 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10653 $as_echo "no" >&6; }
10656 ## If we have a custom action on failure, don't print errors, but
10657 ## do set a variable so people can do so.
10658 GCONF_PKG_ERRORS
=`$PKG_CONFIG --errors-to-stdout --print-errors "gconf-2.0 >= 2.13"`
10665 echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
10666 echo "*** See http://www.freedesktop.org/software/pkgconfig"
10670 if test $succeeded = yes; then
10676 if test "$HAVE_GCONF" = yes; then
10678 $as_echo "#define HAVE_GCONF 1" >>confdefs.h
10680 for ac_func
in g_type_init
10682 ac_fn_c_check_func
"$LINENO" "g_type_init" "ac_cv_func_g_type_init"
10683 if test "x$ac_cv_func_g_type_init" = x
""yes; then :
10684 cat >>confdefs.h
<<_ACEOF
10685 #define HAVE_G_TYPE_INIT 1
10696 if test "${with_selinux}" = "yes"; then
10697 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for lgetfilecon in -lselinux" >&5
10698 $as_echo_n "checking for lgetfilecon in -lselinux... " >&6; }
10699 if test "${ac_cv_lib_selinux_lgetfilecon+set}" = set; then :
10700 $as_echo_n "(cached) " >&6
10702 ac_check_lib_save_LIBS
=$LIBS
10703 LIBS
="-lselinux $LIBS"
10704 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
10705 /* end confdefs.h. */
10707 /* Override any GCC internal prototype to avoid an error.
10708 Use char because int might match the return type of a GCC
10709 builtin and then its argument prototype would still apply. */
10713 char lgetfilecon ();
10717 return lgetfilecon ();
10722 if ac_fn_c_try_link
"$LINENO"; then :
10723 ac_cv_lib_selinux_lgetfilecon
=yes
10725 ac_cv_lib_selinux_lgetfilecon
=no
10727 rm -f core conftest.err conftest.
$ac_objext \
10728 conftest
$ac_exeext conftest.
$ac_ext
10729 LIBS
=$ac_check_lib_save_LIBS
10731 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_selinux_lgetfilecon" >&5
10732 $as_echo "$ac_cv_lib_selinux_lgetfilecon" >&6; }
10733 if test "x$ac_cv_lib_selinux_lgetfilecon" = x
""yes; then :
10734 HAVE_LIBSELINUX
=yes
10739 if test "$HAVE_LIBSELINUX" = yes; then
10741 $as_echo "#define HAVE_LIBSELINUX 1" >>confdefs.h
10743 LIBSELINUX_LIBS
=-lselinux
10749 if test "${with_gnutls}" = "yes" ; then
10753 # Extract the first word of "pkg-config", so it can be a program name with args.
10754 set dummy pkg-config
; ac_word
=$2
10755 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10756 $as_echo_n "checking for $ac_word... " >&6; }
10757 if test "${ac_cv_path_PKG_CONFIG+set}" = set; then :
10758 $as_echo_n "(cached) " >&6
10760 case $PKG_CONFIG in
10762 ac_cv_path_PKG_CONFIG
="$PKG_CONFIG" # Let the user override the test with a path.
10765 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
10766 for as_dir
in $PATH
10769 test -z "$as_dir" && as_dir
=.
10770 for ac_exec_ext
in '' $ac_executable_extensions; do
10771 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10772 ac_cv_path_PKG_CONFIG
="$as_dir/$ac_word$ac_exec_ext"
10773 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10780 test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG
="no"
10784 PKG_CONFIG
=$ac_cv_path_PKG_CONFIG
10785 if test -n "$PKG_CONFIG"; then
10786 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5
10787 $as_echo "$PKG_CONFIG" >&6; }
10789 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10790 $as_echo "no" >&6; }
10795 if test "$PKG_CONFIG" = "no" ; then
10798 PKG_CONFIG_MIN_VERSION
=0.9.0
10799 if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
10800 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gnutls >= 2.2.4" >&5
10801 $as_echo_n "checking for gnutls >= 2.2.4... " >&6; }
10803 if $PKG_CONFIG --exists "gnutls >= 2.2.4" 2>&5; then
10804 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
10805 $as_echo "yes" >&6; }
10808 { $as_echo "$as_me:${as_lineno-$LINENO}: checking LIBGNUTLS_CFLAGS" >&5
10809 $as_echo_n "checking LIBGNUTLS_CFLAGS... " >&6; }
10810 LIBGNUTLS_CFLAGS
=`$PKG_CONFIG --cflags "gnutls >= 2.2.4"|sed -e 's,///*,/,g'`
10811 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIBGNUTLS_CFLAGS" >&5
10812 $as_echo "$LIBGNUTLS_CFLAGS" >&6; }
10814 { $as_echo "$as_me:${as_lineno-$LINENO}: checking LIBGNUTLS_LIBS" >&5
10815 $as_echo_n "checking LIBGNUTLS_LIBS... " >&6; }
10816 LIBGNUTLS_LIBS
=`$PKG_CONFIG --libs "gnutls >= 2.2.4"|sed -e 's,///*,/,g'`
10817 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIBGNUTLS_LIBS" >&5
10818 $as_echo "$LIBGNUTLS_LIBS" >&6; }
10820 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10821 $as_echo "no" >&6; }
10822 LIBGNUTLS_CFLAGS
=""
10824 ## If we have a custom action on failure, don't print errors, but
10825 ## do set a variable so people can do so.
10826 LIBGNUTLS_PKG_ERRORS
=`$PKG_CONFIG --errors-to-stdout --print-errors "gnutls >= 2.2.4"`
10833 echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
10834 echo "*** See http://www.freedesktop.org/software/pkgconfig"
10838 if test $succeeded = yes; then
10844 if test "${HAVE_GNUTLS}" = "yes"; then
10846 $as_echo "#define HAVE_GNUTLS 1" >>confdefs.h
10855 if test x
"${USE_X_TOOLKIT}" = xmaybe ||
test x
"${USE_X_TOOLKIT}" = xLUCID
; then
10856 if test "$with_xaw3d" != no
; then
10857 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for xaw3d" >&5
10858 $as_echo_n "checking for xaw3d... " >&6; }
10859 if test "${emacs_cv_xaw3d+set}" = set; then :
10860 $as_echo_n "(cached) " >&6
10862 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
10863 /* end confdefs.h. */
10865 #include <X11/Intrinsic.h>
10866 #include <X11/Xaw3d/Simple.h>
10875 if ac_fn_c_try_link
"$LINENO"; then :
10876 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for XawScrollbarSetThumb in -lXaw3d" >&5
10877 $as_echo_n "checking for XawScrollbarSetThumb in -lXaw3d... " >&6; }
10878 if test "${ac_cv_lib_Xaw3d_XawScrollbarSetThumb+set}" = set; then :
10879 $as_echo_n "(cached) " >&6
10881 ac_check_lib_save_LIBS
=$LIBS
10882 LIBS
="-lXaw3d $LIBS"
10883 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
10884 /* end confdefs.h. */
10886 /* Override any GCC internal prototype to avoid an error.
10887 Use char because int might match the return type of a GCC
10888 builtin and then its argument prototype would still apply. */
10892 char XawScrollbarSetThumb ();
10896 return XawScrollbarSetThumb ();
10901 if ac_fn_c_try_link
"$LINENO"; then :
10902 ac_cv_lib_Xaw3d_XawScrollbarSetThumb
=yes
10904 ac_cv_lib_Xaw3d_XawScrollbarSetThumb
=no
10906 rm -f core conftest.err conftest.
$ac_objext \
10907 conftest
$ac_exeext conftest.
$ac_ext
10908 LIBS
=$ac_check_lib_save_LIBS
10910 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_Xaw3d_XawScrollbarSetThumb" >&5
10911 $as_echo "$ac_cv_lib_Xaw3d_XawScrollbarSetThumb" >&6; }
10912 if test "x$ac_cv_lib_Xaw3d_XawScrollbarSetThumb" = x
""yes; then :
10921 rm -f core conftest.err conftest.
$ac_objext \
10922 conftest
$ac_exeext conftest.
$ac_ext
10928 if test $emacs_cv_xaw3d = yes; then
10929 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes; using Lucid toolkit" >&5
10930 $as_echo "yes; using Lucid toolkit" >&6; }
10931 USE_X_TOOLKIT
=LUCID
10935 $as_echo "#define HAVE_XAW3D 1" >>confdefs.h
10938 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10939 $as_echo "no" >&6; }
10940 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libXaw" >&5
10941 $as_echo_n "checking for libXaw... " >&6; }
10942 if test "${emacs_cv_xaw+set}" = set; then :
10943 $as_echo_n "(cached) " >&6
10945 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
10946 /* end confdefs.h. */
10948 #include <X11/Intrinsic.h>
10949 #include <X11/Xaw/Simple.h>
10958 if ac_fn_c_try_link
"$LINENO"; then :
10963 rm -f core conftest.err conftest.
$ac_objext \
10964 conftest
$ac_exeext conftest.
$ac_ext
10967 if test $emacs_cv_xaw = yes; then
10968 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes; using Lucid toolkit" >&5
10969 $as_echo "yes; using Lucid toolkit" >&6; }
10970 USE_X_TOOLKIT
=LUCID
10972 elif test x
"${USE_X_TOOLKIT}" = xLUCID
; then
10973 as_fn_error $?
"Lucid toolkit requires X11/Xaw include files" "$LINENO" 5
10975 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no; do not use toolkit by default" >&5
10976 $as_echo "no; do not use toolkit by default" >&6; }
10982 X_TOOLKIT_TYPE
=$USE_X_TOOLKIT
10985 if test "${USE_X_TOOLKIT}" != "none"; then
10986 { $as_echo "$as_me:${as_lineno-$LINENO}: checking X11 toolkit version" >&5
10987 $as_echo_n "checking X11 toolkit version... " >&6; }
10988 if test "${emacs_cv_x11_toolkit_version_6+set}" = set; then :
10989 $as_echo_n "(cached) " >&6
10991 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
10992 /* end confdefs.h. */
10993 #include <X11/Intrinsic.h>
10997 #if XtSpecificationRelease < 6
11005 if ac_fn_c_try_link
"$LINENO"; then :
11006 emacs_cv_x11_toolkit_version_6
=yes
11008 emacs_cv_x11_toolkit_version_6
=no
11010 rm -f core conftest.err conftest.
$ac_objext \
11011 conftest
$ac_exeext conftest.
$ac_ext
11014 HAVE_X11XTR6
=$emacs_cv_x11_toolkit_version_6
11015 if test $emacs_cv_x11_toolkit_version_6 = yes; then
11016 { $as_echo "$as_me:${as_lineno-$LINENO}: result: 6 or newer" >&5
11017 $as_echo "6 or newer" >&6; }
11019 $as_echo "#define HAVE_X11XTR6 1" >>confdefs.h
11021 LIBXTR6
="-lSM -lICE"
11023 ## Use libw.a along with X11R6 Xt.
11024 unixware
) LIBXTR6
="$LIBXTR6 -lw" ;;
11027 { $as_echo "$as_me:${as_lineno-$LINENO}: result: before 6" >&5
11028 $as_echo "before 6" >&6; }
11032 if test x
$HAVE_X11XTR6 = xyes
; then
11033 LIBS
="-lXt -lSM -lICE $LIBS"
11037 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for XmuConvertStandardSelection in -lXmu" >&5
11038 $as_echo_n "checking for XmuConvertStandardSelection in -lXmu... " >&6; }
11039 if test "${ac_cv_lib_Xmu_XmuConvertStandardSelection+set}" = set; then :
11040 $as_echo_n "(cached) " >&6
11042 ac_check_lib_save_LIBS
=$LIBS
11044 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
11045 /* end confdefs.h. */
11047 /* Override any GCC internal prototype to avoid an error.
11048 Use char because int might match the return type of a GCC
11049 builtin and then its argument prototype would still apply. */
11053 char XmuConvertStandardSelection ();
11057 return XmuConvertStandardSelection ();
11062 if ac_fn_c_try_link
"$LINENO"; then :
11063 ac_cv_lib_Xmu_XmuConvertStandardSelection
=yes
11065 ac_cv_lib_Xmu_XmuConvertStandardSelection
=no
11067 rm -f core conftest.err conftest.
$ac_objext \
11068 conftest
$ac_exeext conftest.
$ac_ext
11069 LIBS
=$ac_check_lib_save_LIBS
11071 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_Xmu_XmuConvertStandardSelection" >&5
11072 $as_echo "$ac_cv_lib_Xmu_XmuConvertStandardSelection" >&6; }
11073 if test "x$ac_cv_lib_Xmu_XmuConvertStandardSelection" = x
""yes; then :
11074 cat >>confdefs.h
<<_ACEOF
11075 #define HAVE_LIBXMU 1
11082 test $ac_cv_lib_Xmu_XmuConvertStandardSelection = no
&& LIBS
="$OLDLIBS"
11088 ## These systems don't supply Xmu.
11090 test "X$ac_cv_lib_Xmu_XmuConvertStandardSelection" != "Xyes" && LIBXMU
=
11095 # On Irix 6.5, at least, we need XShapeQueryExtension from -lXext for Xaw3D.
11096 if test "${HAVE_X11}" = "yes"; then
11097 if test "${USE_X_TOOLKIT}" != "none"; then
11098 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for XShapeQueryExtension in -lXext" >&5
11099 $as_echo_n "checking for XShapeQueryExtension in -lXext... " >&6; }
11100 if test "${ac_cv_lib_Xext_XShapeQueryExtension+set}" = set; then :
11101 $as_echo_n "(cached) " >&6
11103 ac_check_lib_save_LIBS
=$LIBS
11104 LIBS
="-lXext $LIBS"
11105 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
11106 /* end confdefs.h. */
11108 /* Override any GCC internal prototype to avoid an error.
11109 Use char because int might match the return type of a GCC
11110 builtin and then its argument prototype would still apply. */
11114 char XShapeQueryExtension ();
11118 return XShapeQueryExtension ();
11123 if ac_fn_c_try_link
"$LINENO"; then :
11124 ac_cv_lib_Xext_XShapeQueryExtension
=yes
11126 ac_cv_lib_Xext_XShapeQueryExtension
=no
11128 rm -f core conftest.err conftest.
$ac_objext \
11129 conftest
$ac_exeext conftest.
$ac_ext
11130 LIBS
=$ac_check_lib_save_LIBS
11132 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_Xext_XShapeQueryExtension" >&5
11133 $as_echo "$ac_cv_lib_Xext_XShapeQueryExtension" >&6; }
11134 if test "x$ac_cv_lib_Xext_XShapeQueryExtension" = x
""yes; then :
11135 cat >>confdefs.h
<<_ACEOF
11136 #define HAVE_LIBXEXT 1
11139 LIBS
="-lXext $LIBS"
11147 if test "${USE_X_TOOLKIT}" = "MOTIF"; then
11148 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Motif version 2.1" >&5
11149 $as_echo_n "checking for Motif version 2.1... " >&6; }
11150 if test "${emacs_cv_motif_version_2_1+set}" = set; then :
11151 $as_echo_n "(cached) " >&6
11153 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
11154 /* end confdefs.h. */
11159 #if XmVERSION > 2 || (XmVERSION == 2 && XmREVISION >= 1)
11162 Motif version prior to 2.1.
11168 if ac_fn_c_try_compile
"$LINENO"; then :
11169 emacs_cv_motif_version_2_1
=yes
11171 emacs_cv_motif_version_2_1
=no
11173 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
11175 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $emacs_cv_motif_version_2_1" >&5
11176 $as_echo "$emacs_cv_motif_version_2_1" >&6; }
11177 if test $emacs_cv_motif_version_2_1 = yes; then
11178 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for XpCreateContext in -lXp" >&5
11179 $as_echo_n "checking for XpCreateContext in -lXp... " >&6; }
11180 if test "${ac_cv_lib_Xp_XpCreateContext+set}" = set; then :
11181 $as_echo_n "(cached) " >&6
11183 ac_check_lib_save_LIBS
=$LIBS
11185 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
11186 /* end confdefs.h. */
11188 /* Override any GCC internal prototype to avoid an error.
11189 Use char because int might match the return type of a GCC
11190 builtin and then its argument prototype would still apply. */
11194 char XpCreateContext ();
11198 return XpCreateContext ();
11203 if ac_fn_c_try_link
"$LINENO"; then :
11204 ac_cv_lib_Xp_XpCreateContext
=yes
11206 ac_cv_lib_Xp_XpCreateContext
=no
11208 rm -f core conftest.err conftest.
$ac_objext \
11209 conftest
$ac_exeext conftest.
$ac_ext
11210 LIBS
=$ac_check_lib_save_LIBS
11212 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_Xp_XpCreateContext" >&5
11213 $as_echo "$ac_cv_lib_Xp_XpCreateContext" >&6; }
11214 if test "x$ac_cv_lib_Xp_XpCreateContext" = x
""yes; then :
11219 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for LessTif where some systems put it" >&5
11220 $as_echo_n "checking for LessTif where some systems put it... " >&6; }
11221 if test "${emacs_cv_lesstif+set}" = set; then :
11222 $as_echo_n "(cached) " >&6
11224 # We put this in CFLAGS temporarily to precede other -I options
11225 # that might be in CFLAGS temporarily.
11226 # We put this in CPPFLAGS where it precedes the other -I options.
11227 OLD_CPPFLAGS
=$CPPFLAGS
11229 CPPFLAGS
="-I/usr/X11R6/LessTif/Motif1.2/include $CPPFLAGS"
11230 CFLAGS
="-I/usr/X11R6/LessTif/Motif1.2/include $CFLAGS"
11231 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
11232 /* end confdefs.h. */
11233 #include </usr/X11R6/LessTif/Motif1.2/include/Xm/Xm.h>
11242 if ac_fn_c_try_compile
"$LINENO"; then :
11243 emacs_cv_lesstif
=yes
11245 emacs_cv_lesstif
=no
11247 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
11249 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $emacs_cv_lesstif" >&5
11250 $as_echo "$emacs_cv_lesstif" >&6; }
11251 if test $emacs_cv_lesstif = yes; then
11252 # Make sure this -I option remains in CPPFLAGS after it is set
11253 # back to REAL_CPPFLAGS.
11254 # There is no need to change REAL_CFLAGS, because REAL_CFLAGS does not
11255 # have those other -I options anyway. Ultimately, having this
11256 # directory ultimately in CPPFLAGS will be enough.
11257 REAL_CPPFLAGS
="-I/usr/X11R6/LessTif/Motif1.2/include $REAL_CPPFLAGS"
11258 LDFLAGS
="-L/usr/X11R6/LessTif/Motif1.2/lib $LDFLAGS"
11261 CPPFLAGS
=$OLD_CPPFLAGS
11267 USE_TOOLKIT_SCROLL_BARS
=no
11268 if test "${with_toolkit_scroll_bars}" != "no"; then
11269 if test "${USE_X_TOOLKIT}" != "none"; then
11270 if test "${USE_X_TOOLKIT}" = "MOTIF"; then
11271 $as_echo "#define USE_TOOLKIT_SCROLL_BARS 1" >>confdefs.h
11274 USE_TOOLKIT_SCROLL_BARS
=yes
11275 elif test "${HAVE_XAW3D}" = "yes"; then
11276 $as_echo "#define USE_TOOLKIT_SCROLL_BARS 1" >>confdefs.h
11278 USE_TOOLKIT_SCROLL_BARS
=yes
11280 elif test "${HAVE_GTK}" = "yes"; then
11281 $as_echo "#define USE_TOOLKIT_SCROLL_BARS 1" >>confdefs.h
11283 USE_TOOLKIT_SCROLL_BARS
=yes
11284 elif test "${HAVE_NS}" = "yes"; then
11285 $as_echo "#define USE_TOOLKIT_SCROLL_BARS 1" >>confdefs.h
11287 USE_TOOLKIT_SCROLL_BARS
=yes
11291 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
11292 /* end confdefs.h. */
11294 #include <X11/Xlib.h>
11295 #include <X11/Xresource.h>
11304 if ac_fn_c_try_compile
"$LINENO"; then :
11307 $as_echo "#define HAVE_XIM 1" >>confdefs.h
11312 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
11315 if test "${with_xim}" != "no"; then
11317 $as_echo "#define USE_XIM 1" >>confdefs.h
11322 if test "${HAVE_XIM}" != "no"; then
11323 late_CFLAGS
=$CFLAGS
11324 if test "$GCC" = yes; then
11325 CFLAGS
="$CFLAGS --pedantic-errors"
11327 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
11328 /* end confdefs.h. */
11330 #include <X11/Xlib.h>
11331 #include <X11/Xresource.h>
11340 XPointer *client_data;
11342 /* If we're not using GCC, it's probably not XFree86, and this is
11343 probably right, but we can't use something like --pedantic-errors. */
11344 extern Bool XRegisterIMInstantiateCallback(Display*, XrmDatabase, char*,
11345 char*, XIMProc, XPointer*);
11347 (void)XRegisterIMInstantiateCallback(display, db, res_name, res_class, callback,
11353 if ac_fn_c_try_compile
"$LINENO"; then :
11354 emacs_cv_arg6_star
=yes
11356 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
11357 if test "$emacs_cv_arg6_star" = yes; then
11358 $as_echo "#define XRegisterIMInstantiateCallback_arg6 XPointer*" >>confdefs.h
11361 $as_echo "#define XRegisterIMInstantiateCallback_arg6 XPointer" >>confdefs.h
11364 CFLAGS
=$late_CFLAGS
11367 ### Start of font-backend (under any platform) section.
11368 # (nothing here yet -- this is a placeholder)
11369 ### End of font-backend (under any platform) section.
11371 ### Start of font-backend (under X11) section.
11372 if test "${HAVE_X11}" = "yes"; then
11376 # Extract the first word of "pkg-config", so it can be a program name with args.
11377 set dummy pkg-config
; ac_word
=$2
11378 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11379 $as_echo_n "checking for $ac_word... " >&6; }
11380 if test "${ac_cv_path_PKG_CONFIG+set}" = set; then :
11381 $as_echo_n "(cached) " >&6
11383 case $PKG_CONFIG in
11385 ac_cv_path_PKG_CONFIG
="$PKG_CONFIG" # Let the user override the test with a path.
11388 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
11389 for as_dir
in $PATH
11392 test -z "$as_dir" && as_dir
=.
11393 for ac_exec_ext
in '' $ac_executable_extensions; do
11394 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11395 ac_cv_path_PKG_CONFIG
="$as_dir/$ac_word$ac_exec_ext"
11396 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11403 test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG
="no"
11407 PKG_CONFIG
=$ac_cv_path_PKG_CONFIG
11408 if test -n "$PKG_CONFIG"; then
11409 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5
11410 $as_echo "$PKG_CONFIG" >&6; }
11412 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11413 $as_echo "no" >&6; }
11418 if test "$PKG_CONFIG" = "no" ; then
11421 PKG_CONFIG_MIN_VERSION
=0.9.0
11422 if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
11423 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for fontconfig >= 2.2.0" >&5
11424 $as_echo_n "checking for fontconfig >= 2.2.0... " >&6; }
11426 if $PKG_CONFIG --exists "fontconfig >= 2.2.0" 2>&5; then
11427 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11428 $as_echo "yes" >&6; }
11431 { $as_echo "$as_me:${as_lineno-$LINENO}: checking FONTCONFIG_CFLAGS" >&5
11432 $as_echo_n "checking FONTCONFIG_CFLAGS... " >&6; }
11433 FONTCONFIG_CFLAGS
=`$PKG_CONFIG --cflags "fontconfig >= 2.2.0"|sed -e 's,///*,/,g'`
11434 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $FONTCONFIG_CFLAGS" >&5
11435 $as_echo "$FONTCONFIG_CFLAGS" >&6; }
11437 { $as_echo "$as_me:${as_lineno-$LINENO}: checking FONTCONFIG_LIBS" >&5
11438 $as_echo_n "checking FONTCONFIG_LIBS... " >&6; }
11439 FONTCONFIG_LIBS
=`$PKG_CONFIG --libs "fontconfig >= 2.2.0"|sed -e 's,///*,/,g'`
11440 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $FONTCONFIG_LIBS" >&5
11441 $as_echo "$FONTCONFIG_LIBS" >&6; }
11443 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11444 $as_echo "no" >&6; }
11445 FONTCONFIG_CFLAGS
=""
11447 ## If we have a custom action on failure, don't print errors, but
11448 ## do set a variable so people can do so.
11449 FONTCONFIG_PKG_ERRORS
=`$PKG_CONFIG --errors-to-stdout --print-errors "fontconfig >= 2.2.0"`
11456 echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
11457 echo "*** See http://www.freedesktop.org/software/pkgconfig"
11461 if test $succeeded = yes; then
11468 ## Use -lXft if available, unless `--with-xft=no'.
11470 if test "${HAVE_FC}" = "no" ||
test "x${with_x}" = "xno"; then
11473 if test "x${with_xft}" != "xno"; then
11478 # Extract the first word of "pkg-config", so it can be a program name with args.
11479 set dummy pkg-config
; ac_word
=$2
11480 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11481 $as_echo_n "checking for $ac_word... " >&6; }
11482 if test "${ac_cv_path_PKG_CONFIG+set}" = set; then :
11483 $as_echo_n "(cached) " >&6
11485 case $PKG_CONFIG in
11487 ac_cv_path_PKG_CONFIG
="$PKG_CONFIG" # Let the user override the test with a path.
11490 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
11491 for as_dir
in $PATH
11494 test -z "$as_dir" && as_dir
=.
11495 for ac_exec_ext
in '' $ac_executable_extensions; do
11496 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11497 ac_cv_path_PKG_CONFIG
="$as_dir/$ac_word$ac_exec_ext"
11498 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11505 test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG
="no"
11509 PKG_CONFIG
=$ac_cv_path_PKG_CONFIG
11510 if test -n "$PKG_CONFIG"; then
11511 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5
11512 $as_echo "$PKG_CONFIG" >&6; }
11514 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11515 $as_echo "no" >&6; }
11520 if test "$PKG_CONFIG" = "no" ; then
11523 PKG_CONFIG_MIN_VERSION
=0.9.0
11524 if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
11525 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for xft >= 0.13.0" >&5
11526 $as_echo_n "checking for xft >= 0.13.0... " >&6; }
11528 if $PKG_CONFIG --exists "xft >= 0.13.0" 2>&5; then
11529 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11530 $as_echo "yes" >&6; }
11533 { $as_echo "$as_me:${as_lineno-$LINENO}: checking XFT_CFLAGS" >&5
11534 $as_echo_n "checking XFT_CFLAGS... " >&6; }
11535 XFT_CFLAGS
=`$PKG_CONFIG --cflags "xft >= 0.13.0"|sed -e 's,///*,/,g'`
11536 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $XFT_CFLAGS" >&5
11537 $as_echo "$XFT_CFLAGS" >&6; }
11539 { $as_echo "$as_me:${as_lineno-$LINENO}: checking XFT_LIBS" >&5
11540 $as_echo_n "checking XFT_LIBS... " >&6; }
11541 XFT_LIBS
=`$PKG_CONFIG --libs "xft >= 0.13.0"|sed -e 's,///*,/,g'`
11542 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $XFT_LIBS" >&5
11543 $as_echo "$XFT_LIBS" >&6; }
11545 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11546 $as_echo "no" >&6; }
11549 ## If we have a custom action on failure, don't print errors, but
11550 ## do set a variable so people can do so.
11551 XFT_PKG_ERRORS
=`$PKG_CONFIG --errors-to-stdout --print-errors "xft >= 0.13.0"`
11558 echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
11559 echo "*** See http://www.freedesktop.org/software/pkgconfig"
11563 if test $succeeded = yes; then
11569 ## Because xftfont.c uses XRenderQueryExtension, we also
11570 ## need to link to -lXrender.
11572 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for XRenderQueryExtension in -lXrender" >&5
11573 $as_echo_n "checking for XRenderQueryExtension in -lXrender... " >&6; }
11574 if test "${ac_cv_lib_Xrender_XRenderQueryExtension+set}" = set; then :
11575 $as_echo_n "(cached) " >&6
11577 ac_check_lib_save_LIBS
=$LIBS
11578 LIBS
="-lXrender $LIBS"
11579 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
11580 /* end confdefs.h. */
11582 /* Override any GCC internal prototype to avoid an error.
11583 Use char because int might match the return type of a GCC
11584 builtin and then its argument prototype would still apply. */
11588 char XRenderQueryExtension ();
11592 return XRenderQueryExtension ();
11597 if ac_fn_c_try_link
"$LINENO"; then :
11598 ac_cv_lib_Xrender_XRenderQueryExtension
=yes
11600 ac_cv_lib_Xrender_XRenderQueryExtension
=no
11602 rm -f core conftest.err conftest.
$ac_objext \
11603 conftest
$ac_exeext conftest.
$ac_ext
11604 LIBS
=$ac_check_lib_save_LIBS
11606 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_Xrender_XRenderQueryExtension" >&5
11607 $as_echo "$ac_cv_lib_Xrender_XRenderQueryExtension" >&6; }
11608 if test "x$ac_cv_lib_Xrender_XRenderQueryExtension" = x
""yes; then :
11612 if test "$HAVE_XFT" != no
&& test "$HAVE_XRENDER" != no
; then
11613 OLD_CPPFLAGS
="$CPPFLAGS"
11614 OLD_CFLAGS
="$CFLAGS"
11616 CPPFLAGS
="$CPPFLAGS $XFT_CFLAGS"
11617 CFLAGS
="$CFLAGS $XFT_CFLAGS"
11618 XFT_LIBS
="-lXrender $XFT_LIBS"
11619 LIBS
="$XFT_LIBS $LIBS"
11620 ac_fn_c_check_header_mongrel
"$LINENO" "X11/Xft/Xft.h" "ac_cv_header_X11_Xft_Xft_h" "$ac_includes_default"
11621 if test "x$ac_cv_header_X11_Xft_Xft_h" = x
""yes; then :
11622 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for XftFontOpen in -lXft" >&5
11623 $as_echo_n "checking for XftFontOpen in -lXft... " >&6; }
11624 if test "${ac_cv_lib_Xft_XftFontOpen+set}" = set; then :
11625 $as_echo_n "(cached) " >&6
11627 ac_check_lib_save_LIBS
=$LIBS
11628 LIBS
="-lXft $XFT_LIBS $LIBS"
11629 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
11630 /* end confdefs.h. */
11632 /* Override any GCC internal prototype to avoid an error.
11633 Use char because int might match the return type of a GCC
11634 builtin and then its argument prototype would still apply. */
11638 char XftFontOpen ();
11642 return XftFontOpen ();
11647 if ac_fn_c_try_link
"$LINENO"; then :
11648 ac_cv_lib_Xft_XftFontOpen
=yes
11650 ac_cv_lib_Xft_XftFontOpen
=no
11652 rm -f core conftest.err conftest.
$ac_objext \
11653 conftest
$ac_exeext conftest.
$ac_ext
11654 LIBS
=$ac_check_lib_save_LIBS
11656 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_Xft_XftFontOpen" >&5
11657 $as_echo "$ac_cv_lib_Xft_XftFontOpen" >&6; }
11658 if test "x$ac_cv_lib_Xft_XftFontOpen" = x
""yes; then :
11666 if test "${HAVE_XFT}" = "yes"; then
11668 $as_echo "#define HAVE_XFT 1" >>confdefs.h
11671 C_SWITCH_X_SITE
="$C_SWITCH_X_SITE $XFT_CFLAGS"
11673 CPPFLAGS
="$OLD_CPPFLAGS"
11674 CFLAGS
="$OLD_CFLAGS"
11676 fi # "${HAVE_XFT}" = "yes"
11677 fi # "$HAVE_XFT" != no
11678 fi # "x${with_xft}" != "xno"
11680 ## We used to allow building with FreeType and without Xft.
11681 ## However, the ftx font backend driver is not in good shape.
11682 if test "$HAVE_XFT" != "yes"; then
11689 # Extract the first word of "pkg-config", so it can be a program name with args.
11690 set dummy pkg-config
; ac_word
=$2
11691 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11692 $as_echo_n "checking for $ac_word... " >&6; }
11693 if test "${ac_cv_path_PKG_CONFIG+set}" = set; then :
11694 $as_echo_n "(cached) " >&6
11696 case $PKG_CONFIG in
11698 ac_cv_path_PKG_CONFIG
="$PKG_CONFIG" # Let the user override the test with a path.
11701 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
11702 for as_dir
in $PATH
11705 test -z "$as_dir" && as_dir
=.
11706 for ac_exec_ext
in '' $ac_executable_extensions; do
11707 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11708 ac_cv_path_PKG_CONFIG
="$as_dir/$ac_word$ac_exec_ext"
11709 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11716 test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG
="no"
11720 PKG_CONFIG
=$ac_cv_path_PKG_CONFIG
11721 if test -n "$PKG_CONFIG"; then
11722 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5
11723 $as_echo "$PKG_CONFIG" >&6; }
11725 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11726 $as_echo "no" >&6; }
11731 if test "$PKG_CONFIG" = "no" ; then
11734 PKG_CONFIG_MIN_VERSION
=0.9.0
11735 if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
11736 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for freetype2" >&5
11737 $as_echo_n "checking for freetype2... " >&6; }
11739 if $PKG_CONFIG --exists "freetype2" 2>&5; then
11740 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11741 $as_echo "yes" >&6; }
11744 { $as_echo "$as_me:${as_lineno-$LINENO}: checking FREETYPE_CFLAGS" >&5
11745 $as_echo_n "checking FREETYPE_CFLAGS... " >&6; }
11746 FREETYPE_CFLAGS
=`$PKG_CONFIG --cflags "freetype2"|sed -e 's,///*,/,g'`
11747 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $FREETYPE_CFLAGS" >&5
11748 $as_echo "$FREETYPE_CFLAGS" >&6; }
11750 { $as_echo "$as_me:${as_lineno-$LINENO}: checking FREETYPE_LIBS" >&5
11751 $as_echo_n "checking FREETYPE_LIBS... " >&6; }
11752 FREETYPE_LIBS
=`$PKG_CONFIG --libs "freetype2"|sed -e 's,///*,/,g'`
11753 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $FREETYPE_LIBS" >&5
11754 $as_echo "$FREETYPE_LIBS" >&6; }
11756 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11757 $as_echo "no" >&6; }
11760 ## If we have a custom action on failure, don't print errors, but
11761 ## do set a variable so people can do so.
11762 FREETYPE_PKG_ERRORS
=`$PKG_CONFIG --errors-to-stdout --print-errors "freetype2"`
11769 echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
11770 echo "*** See http://www.freedesktop.org/software/pkgconfig"
11774 if test $succeeded = yes; then
11781 test "$HAVE_FREETYPE" = "no" && as_fn_error $?
"libxft requires libfreetype" "$LINENO" 5
11785 if test "${HAVE_FREETYPE}" = "yes"; then
11787 $as_echo "#define HAVE_FREETYPE 1" >>confdefs.h
11789 if test "${with_libotf}" != "no"; then
11793 # Extract the first word of "pkg-config", so it can be a program name with args.
11794 set dummy pkg-config
; ac_word
=$2
11795 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11796 $as_echo_n "checking for $ac_word... " >&6; }
11797 if test "${ac_cv_path_PKG_CONFIG+set}" = set; then :
11798 $as_echo_n "(cached) " >&6
11800 case $PKG_CONFIG in
11802 ac_cv_path_PKG_CONFIG
="$PKG_CONFIG" # Let the user override the test with a path.
11805 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
11806 for as_dir
in $PATH
11809 test -z "$as_dir" && as_dir
=.
11810 for ac_exec_ext
in '' $ac_executable_extensions; do
11811 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11812 ac_cv_path_PKG_CONFIG
="$as_dir/$ac_word$ac_exec_ext"
11813 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11820 test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG
="no"
11824 PKG_CONFIG
=$ac_cv_path_PKG_CONFIG
11825 if test -n "$PKG_CONFIG"; then
11826 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5
11827 $as_echo "$PKG_CONFIG" >&6; }
11829 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11830 $as_echo "no" >&6; }
11835 if test "$PKG_CONFIG" = "no" ; then
11838 PKG_CONFIG_MIN_VERSION
=0.9.0
11839 if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
11840 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libotf" >&5
11841 $as_echo_n "checking for libotf... " >&6; }
11843 if $PKG_CONFIG --exists "libotf" 2>&5; then
11844 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11845 $as_echo "yes" >&6; }
11848 { $as_echo "$as_me:${as_lineno-$LINENO}: checking LIBOTF_CFLAGS" >&5
11849 $as_echo_n "checking LIBOTF_CFLAGS... " >&6; }
11850 LIBOTF_CFLAGS
=`$PKG_CONFIG --cflags "libotf"|sed -e 's,///*,/,g'`
11851 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIBOTF_CFLAGS" >&5
11852 $as_echo "$LIBOTF_CFLAGS" >&6; }
11854 { $as_echo "$as_me:${as_lineno-$LINENO}: checking LIBOTF_LIBS" >&5
11855 $as_echo_n "checking LIBOTF_LIBS... " >&6; }
11856 LIBOTF_LIBS
=`$PKG_CONFIG --libs "libotf"|sed -e 's,///*,/,g'`
11857 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIBOTF_LIBS" >&5
11858 $as_echo "$LIBOTF_LIBS" >&6; }
11860 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11861 $as_echo "no" >&6; }
11864 ## If we have a custom action on failure, don't print errors, but
11865 ## do set a variable so people can do so.
11866 LIBOTF_PKG_ERRORS
=`$PKG_CONFIG --errors-to-stdout --print-errors "libotf"`
11873 echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
11874 echo "*** See http://www.freedesktop.org/software/pkgconfig"
11878 if test $succeeded = yes; then
11884 if test "$HAVE_LIBOTF" = "yes"; then
11886 $as_echo "#define HAVE_LIBOTF 1" >>confdefs.h
11888 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for OTF_get_variation_glyphs in -lotf" >&5
11889 $as_echo_n "checking for OTF_get_variation_glyphs in -lotf... " >&6; }
11890 if test "${ac_cv_lib_otf_OTF_get_variation_glyphs+set}" = set; then :
11891 $as_echo_n "(cached) " >&6
11893 ac_check_lib_save_LIBS
=$LIBS
11895 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
11896 /* end confdefs.h. */
11898 /* Override any GCC internal prototype to avoid an error.
11899 Use char because int might match the return type of a GCC
11900 builtin and then its argument prototype would still apply. */
11904 char OTF_get_variation_glyphs ();
11908 return OTF_get_variation_glyphs ();
11913 if ac_fn_c_try_link
"$LINENO"; then :
11914 ac_cv_lib_otf_OTF_get_variation_glyphs
=yes
11916 ac_cv_lib_otf_OTF_get_variation_glyphs
=no
11918 rm -f core conftest.err conftest.
$ac_objext \
11919 conftest
$ac_exeext conftest.
$ac_ext
11920 LIBS
=$ac_check_lib_save_LIBS
11922 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_otf_OTF_get_variation_glyphs" >&5
11923 $as_echo "$ac_cv_lib_otf_OTF_get_variation_glyphs" >&6; }
11924 if test "x$ac_cv_lib_otf_OTF_get_variation_glyphs" = x
""yes; then :
11925 HAVE_OTF_GET_VARIATION_GLYPHS
=yes
11927 HAVE_OTF_GET_VARIATION_GLYPHS
=no
11930 if test "${HAVE_OTF_GET_VARIATION_GLYPHS}" = "yes"; then
11932 $as_echo "#define HAVE_OTF_GET_VARIATION_GLYPHS 1" >>confdefs.h
11940 if test "${HAVE_LIBOTF}" = yes; then
11941 if test "${with_m17n_flt}" != "no"; then
11945 # Extract the first word of "pkg-config", so it can be a program name with args.
11946 set dummy pkg-config
; ac_word
=$2
11947 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11948 $as_echo_n "checking for $ac_word... " >&6; }
11949 if test "${ac_cv_path_PKG_CONFIG+set}" = set; then :
11950 $as_echo_n "(cached) " >&6
11952 case $PKG_CONFIG in
11954 ac_cv_path_PKG_CONFIG
="$PKG_CONFIG" # Let the user override the test with a path.
11957 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
11958 for as_dir
in $PATH
11961 test -z "$as_dir" && as_dir
=.
11962 for ac_exec_ext
in '' $ac_executable_extensions; do
11963 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11964 ac_cv_path_PKG_CONFIG
="$as_dir/$ac_word$ac_exec_ext"
11965 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11972 test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG
="no"
11976 PKG_CONFIG
=$ac_cv_path_PKG_CONFIG
11977 if test -n "$PKG_CONFIG"; then
11978 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5
11979 $as_echo "$PKG_CONFIG" >&6; }
11981 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11982 $as_echo "no" >&6; }
11987 if test "$PKG_CONFIG" = "no" ; then
11990 PKG_CONFIG_MIN_VERSION
=0.9.0
11991 if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
11992 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for m17n-flt" >&5
11993 $as_echo_n "checking for m17n-flt... " >&6; }
11995 if $PKG_CONFIG --exists "m17n-flt" 2>&5; then
11996 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11997 $as_echo "yes" >&6; }
12000 { $as_echo "$as_me:${as_lineno-$LINENO}: checking M17N_FLT_CFLAGS" >&5
12001 $as_echo_n "checking M17N_FLT_CFLAGS... " >&6; }
12002 M17N_FLT_CFLAGS
=`$PKG_CONFIG --cflags "m17n-flt"|sed -e 's,///*,/,g'`
12003 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $M17N_FLT_CFLAGS" >&5
12004 $as_echo "$M17N_FLT_CFLAGS" >&6; }
12006 { $as_echo "$as_me:${as_lineno-$LINENO}: checking M17N_FLT_LIBS" >&5
12007 $as_echo_n "checking M17N_FLT_LIBS... " >&6; }
12008 M17N_FLT_LIBS
=`$PKG_CONFIG --libs "m17n-flt"|sed -e 's,///*,/,g'`
12009 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $M17N_FLT_LIBS" >&5
12010 $as_echo "$M17N_FLT_LIBS" >&6; }
12012 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12013 $as_echo "no" >&6; }
12016 ## If we have a custom action on failure, don't print errors, but
12017 ## do set a variable so people can do so.
12018 M17N_FLT_PKG_ERRORS
=`$PKG_CONFIG --errors-to-stdout --print-errors "m17n-flt"`
12025 echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
12026 echo "*** See http://www.freedesktop.org/software/pkgconfig"
12030 if test $succeeded = yes; then
12036 if test "$HAVE_M17N_FLT" = "yes"; then
12038 $as_echo "#define HAVE_M17N_FLT 1" >>confdefs.h
12050 ### End of font-backend (under X11) section.
12061 ### Use -lXpm if available, unless `--with-xpm=no'.
12064 if test "${HAVE_X11}" = "yes"; then
12065 if test "${with_xpm}" != "no"; then
12066 ac_fn_c_check_header_mongrel
"$LINENO" "X11/xpm.h" "ac_cv_header_X11_xpm_h" "$ac_includes_default"
12067 if test "x$ac_cv_header_X11_xpm_h" = x
""yes; then :
12068 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for XpmReadFileToPixmap in -lXpm" >&5
12069 $as_echo_n "checking for XpmReadFileToPixmap in -lXpm... " >&6; }
12070 if test "${ac_cv_lib_Xpm_XpmReadFileToPixmap+set}" = set; then :
12071 $as_echo_n "(cached) " >&6
12073 ac_check_lib_save_LIBS
=$LIBS
12074 LIBS
="-lXpm -lX11 $LIBS"
12075 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
12076 /* end confdefs.h. */
12078 /* Override any GCC internal prototype to avoid an error.
12079 Use char because int might match the return type of a GCC
12080 builtin and then its argument prototype would still apply. */
12084 char XpmReadFileToPixmap ();
12088 return XpmReadFileToPixmap ();
12093 if ac_fn_c_try_link
"$LINENO"; then :
12094 ac_cv_lib_Xpm_XpmReadFileToPixmap
=yes
12096 ac_cv_lib_Xpm_XpmReadFileToPixmap
=no
12098 rm -f core conftest.err conftest.
$ac_objext \
12099 conftest
$ac_exeext conftest.
$ac_ext
12100 LIBS
=$ac_check_lib_save_LIBS
12102 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_Xpm_XpmReadFileToPixmap" >&5
12103 $as_echo "$ac_cv_lib_Xpm_XpmReadFileToPixmap" >&6; }
12104 if test "x$ac_cv_lib_Xpm_XpmReadFileToPixmap" = x
""yes; then :
12111 if test "${HAVE_XPM}" = "yes"; then
12112 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for XpmReturnAllocPixels preprocessor define" >&5
12113 $as_echo_n "checking for XpmReturnAllocPixels preprocessor define... " >&6; }
12114 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
12115 /* end confdefs.h. */
12116 #include "X11/xpm.h"
12117 #ifndef XpmReturnAllocPixels
12118 no_return_alloc_pixels
12122 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
12123 $EGREP "no_return_alloc_pixels" >/dev
/null
2>&1; then :
12131 if test "${HAVE_XPM}" = "yes"; then
12132 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
12133 $as_echo "yes" >&6; }
12135 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12136 $as_echo "no" >&6; }
12141 if test "${HAVE_XPM}" = "yes"; then
12143 $as_echo "#define HAVE_XPM 1" >>confdefs.h
12150 ### Use -ljpeg if available, unless `--with-jpeg=no'.
12153 if test "${HAVE_X11}" = "yes"; then
12154 if test "${with_jpeg}" != "no"; then
12155 ac_fn_c_check_header_mongrel
"$LINENO" "jerror.h" "ac_cv_header_jerror_h" "$ac_includes_default"
12156 if test "x$ac_cv_header_jerror_h" = x
""yes; then :
12157 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for jpeg_destroy_compress in -ljpeg" >&5
12158 $as_echo_n "checking for jpeg_destroy_compress in -ljpeg... " >&6; }
12159 if test "${ac_cv_lib_jpeg_jpeg_destroy_compress+set}" = set; then :
12160 $as_echo_n "(cached) " >&6
12162 ac_check_lib_save_LIBS
=$LIBS
12163 LIBS
="-ljpeg $LIBS"
12164 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
12165 /* end confdefs.h. */
12167 /* Override any GCC internal prototype to avoid an error.
12168 Use char because int might match the return type of a GCC
12169 builtin and then its argument prototype would still apply. */
12173 char jpeg_destroy_compress ();
12177 return jpeg_destroy_compress ();
12182 if ac_fn_c_try_link
"$LINENO"; then :
12183 ac_cv_lib_jpeg_jpeg_destroy_compress
=yes
12185 ac_cv_lib_jpeg_jpeg_destroy_compress
=no
12187 rm -f core conftest.err conftest.
$ac_objext \
12188 conftest
$ac_exeext conftest.
$ac_ext
12189 LIBS
=$ac_check_lib_save_LIBS
12191 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_jpeg_jpeg_destroy_compress" >&5
12192 $as_echo "$ac_cv_lib_jpeg_jpeg_destroy_compress" >&6; }
12193 if test "x$ac_cv_lib_jpeg_jpeg_destroy_compress" = x
""yes; then :
12202 if test "${HAVE_JPEG}" = "yes"; then
12203 $as_echo "#define HAVE_JPEG 1" >>confdefs.h
12205 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
12206 /* end confdefs.h. */
12207 #include <jpeglib.h>
12208 version=JPEG_LIB_VERSION
12211 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
12212 $EGREP "version= *(6[2-9]|[7-9][0-9])" >/dev
/null
2>&1; then :
12213 $as_echo "#define HAVE_JPEG 1" >>confdefs.h
12216 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: libjpeg found, but not version 6b or later" >&5
12217 $as_echo "$as_me: WARNING: libjpeg found, but not version 6b or later" >&2;}
12223 if test "${HAVE_JPEG}" = "yes"; then
12229 ### Use -lpng if available, unless `--with-png=no'.
12232 if test "${HAVE_X11}" = "yes"; then
12233 if test "${with_png}" != "no"; then
12234 # Debian unstable as of July 2003 has multiple libpngs, and puts png.h
12235 # in /usr/include/libpng.
12236 for ac_header
in png.h libpng
/png.h
12238 as_ac_Header
=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
12239 ac_fn_c_check_header_mongrel
"$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
12240 if eval test \"x\$
"$as_ac_Header"\" = x
"yes"; then :
12241 cat >>confdefs.h
<<_ACEOF
12242 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
12249 if test "$ac_cv_header_png_h" = yes ||
test "$ac_cv_header_libpng_png_h" = yes ; then
12250 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for png_get_channels in -lpng" >&5
12251 $as_echo_n "checking for png_get_channels in -lpng... " >&6; }
12252 if test "${ac_cv_lib_png_png_get_channels+set}" = set; then :
12253 $as_echo_n "(cached) " >&6
12255 ac_check_lib_save_LIBS
=$LIBS
12256 LIBS
="-lpng -lz -lm $LIBS"
12257 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
12258 /* end confdefs.h. */
12260 /* Override any GCC internal prototype to avoid an error.
12261 Use char because int might match the return type of a GCC
12262 builtin and then its argument prototype would still apply. */
12266 char png_get_channels ();
12270 return png_get_channels ();
12275 if ac_fn_c_try_link
"$LINENO"; then :
12276 ac_cv_lib_png_png_get_channels
=yes
12278 ac_cv_lib_png_png_get_channels
=no
12280 rm -f core conftest.err conftest.
$ac_objext \
12281 conftest
$ac_exeext conftest.
$ac_ext
12282 LIBS
=$ac_check_lib_save_LIBS
12284 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_png_png_get_channels" >&5
12285 $as_echo "$ac_cv_lib_png_png_get_channels" >&6; }
12286 if test "x$ac_cv_lib_png_png_get_channels" = x
""yes; then :
12293 if test "${HAVE_PNG}" = "yes"; then
12295 $as_echo "#define HAVE_PNG 1" >>confdefs.h
12297 LIBPNG
="-lpng -lz -lm"
12302 ### Use -ltiff if available, unless `--with-tiff=no'.
12305 if test "${HAVE_X11}" = "yes"; then
12306 if test "${with_tiff}" != "no"; then
12307 ac_fn_c_check_header_mongrel
"$LINENO" "tiffio.h" "ac_cv_header_tiffio_h" "$ac_includes_default"
12308 if test "x$ac_cv_header_tiffio_h" = x
""yes; then :
12310 # At least one tiff package requires the jpeg library.
12311 if test "${HAVE_JPEG}" = yes; then tifflibs
="-ljpeg $tifflibs"; fi
12312 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for TIFFGetVersion in -ltiff" >&5
12313 $as_echo_n "checking for TIFFGetVersion in -ltiff... " >&6; }
12314 if test "${ac_cv_lib_tiff_TIFFGetVersion+set}" = set; then :
12315 $as_echo_n "(cached) " >&6
12317 ac_check_lib_save_LIBS
=$LIBS
12318 LIBS
="-ltiff $tifflibs $LIBS"
12319 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
12320 /* end confdefs.h. */
12322 /* Override any GCC internal prototype to avoid an error.
12323 Use char because int might match the return type of a GCC
12324 builtin and then its argument prototype would still apply. */
12328 char TIFFGetVersion ();
12332 return TIFFGetVersion ();
12337 if ac_fn_c_try_link
"$LINENO"; then :
12338 ac_cv_lib_tiff_TIFFGetVersion
=yes
12340 ac_cv_lib_tiff_TIFFGetVersion
=no
12342 rm -f core conftest.err conftest.
$ac_objext \
12343 conftest
$ac_exeext conftest.
$ac_ext
12344 LIBS
=$ac_check_lib_save_LIBS
12346 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_tiff_TIFFGetVersion" >&5
12347 $as_echo "$ac_cv_lib_tiff_TIFFGetVersion" >&6; }
12348 if test "x$ac_cv_lib_tiff_TIFFGetVersion" = x
""yes; then :
12357 if test "${HAVE_TIFF}" = "yes"; then
12359 $as_echo "#define HAVE_TIFF 1" >>confdefs.h
12366 ### Use -lgif or -lungif if available, unless `--with-gif=no'.
12369 if test "${HAVE_X11}" = "yes" && test "${with_gif}" != "no"; then
12370 ac_fn_c_check_header_mongrel
"$LINENO" "gif_lib.h" "ac_cv_header_gif_lib_h" "$ac_includes_default"
12371 if test "x$ac_cv_header_gif_lib_h" = x
""yes; then :
12372 # EGifPutExtensionLast only exists from version libungif-4.1.0b1.
12373 # Earlier versions can crash Emacs.
12374 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for EGifPutExtensionLast in -lgif" >&5
12375 $as_echo_n "checking for EGifPutExtensionLast in -lgif... " >&6; }
12376 if test "${ac_cv_lib_gif_EGifPutExtensionLast+set}" = set; then :
12377 $as_echo_n "(cached) " >&6
12379 ac_check_lib_save_LIBS
=$LIBS
12381 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
12382 /* end confdefs.h. */
12384 /* Override any GCC internal prototype to avoid an error.
12385 Use char because int might match the return type of a GCC
12386 builtin and then its argument prototype would still apply. */
12390 char EGifPutExtensionLast ();
12394 return EGifPutExtensionLast ();
12399 if ac_fn_c_try_link
"$LINENO"; then :
12400 ac_cv_lib_gif_EGifPutExtensionLast
=yes
12402 ac_cv_lib_gif_EGifPutExtensionLast
=no
12404 rm -f core conftest.err conftest.
$ac_objext \
12405 conftest
$ac_exeext conftest.
$ac_ext
12406 LIBS
=$ac_check_lib_save_LIBS
12408 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_gif_EGifPutExtensionLast" >&5
12409 $as_echo "$ac_cv_lib_gif_EGifPutExtensionLast" >&6; }
12410 if test "x$ac_cv_lib_gif_EGifPutExtensionLast" = x
""yes; then :
12420 if test "$HAVE_GIF" = yes; then
12422 elif test "$HAVE_GIF" = maybe
; then
12423 # If gif_lib.h but no libgif, try libungif.
12424 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for EGifPutExtensionLast in -lungif" >&5
12425 $as_echo_n "checking for EGifPutExtensionLast in -lungif... " >&6; }
12426 if test "${ac_cv_lib_ungif_EGifPutExtensionLast+set}" = set; then :
12427 $as_echo_n "(cached) " >&6
12429 ac_check_lib_save_LIBS
=$LIBS
12430 LIBS
="-lungif $LIBS"
12431 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
12432 /* end confdefs.h. */
12434 /* Override any GCC internal prototype to avoid an error.
12435 Use char because int might match the return type of a GCC
12436 builtin and then its argument prototype would still apply. */
12440 char EGifPutExtensionLast ();
12444 return EGifPutExtensionLast ();
12449 if ac_fn_c_try_link
"$LINENO"; then :
12450 ac_cv_lib_ungif_EGifPutExtensionLast
=yes
12452 ac_cv_lib_ungif_EGifPutExtensionLast
=no
12454 rm -f core conftest.err conftest.
$ac_objext \
12455 conftest
$ac_exeext conftest.
$ac_ext
12456 LIBS
=$ac_check_lib_save_LIBS
12458 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_ungif_EGifPutExtensionLast" >&5
12459 $as_echo "$ac_cv_lib_ungif_EGifPutExtensionLast" >&6; }
12460 if test "x$ac_cv_lib_ungif_EGifPutExtensionLast" = x
""yes; then :
12466 test "$HAVE_GIF" = yes && LIBGIF
=-lungif
12469 if test "${HAVE_GIF}" = "yes"; then
12471 $as_echo "#define HAVE_GIF 1" >>confdefs.h
12477 if test "${HAVE_X11}" = "yes"; then
12480 test "${with_xpm}" != "no" && test "${HAVE_XPM}" != "yes" &&
12481 MISSING
="libXpm" && WITH_NO
="--with-xpm=no"
12482 test "${with_jpeg}" != "no" && test "${HAVE_JPEG}" != "yes" &&
12483 MISSING
="$MISSING libjpeg" && WITH_NO
="$WITH_NO --with-jpeg=no"
12484 test "${with_png}" != "no" && test "${HAVE_PNG}" != "yes" &&
12485 MISSING
="$MISSING libpng" && WITH_NO
="$WITH_NO --with-png=no"
12486 test "${with_gif}" != "no" && test "${HAVE_GIF}" != "yes" &&
12487 MISSING
="$MISSING libgif/libungif" && WITH_NO
="$WITH_NO --with-gif=no"
12488 test "${with_tiff}" != "no" && test "${HAVE_TIFF}" != "yes" &&
12489 MISSING
="$MISSING libtiff" && WITH_NO
="$WITH_NO --with-tiff=no"
12491 if test "X${MISSING}" != X
; then
12492 as_fn_error $?
"The following required libraries were not found:
12494 Maybe some development libraries/packages are missing?
12495 If you don't want to link with them give
12497 as options to configure" "$LINENO" 5
12501 ### Use -lgpm if available, unless `--with-gpm=no'.
12505 if test "${with_gpm}" != "no"; then
12506 ac_fn_c_check_header_mongrel
"$LINENO" "gpm.h" "ac_cv_header_gpm_h" "$ac_includes_default"
12507 if test "x$ac_cv_header_gpm_h" = x
""yes; then :
12508 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Gpm_Open in -lgpm" >&5
12509 $as_echo_n "checking for Gpm_Open in -lgpm... " >&6; }
12510 if test "${ac_cv_lib_gpm_Gpm_Open+set}" = set; then :
12511 $as_echo_n "(cached) " >&6
12513 ac_check_lib_save_LIBS
=$LIBS
12515 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
12516 /* end confdefs.h. */
12518 /* Override any GCC internal prototype to avoid an error.
12519 Use char because int might match the return type of a GCC
12520 builtin and then its argument prototype would still apply. */
12528 return Gpm_Open ();
12533 if ac_fn_c_try_link
"$LINENO"; then :
12534 ac_cv_lib_gpm_Gpm_Open
=yes
12536 ac_cv_lib_gpm_Gpm_Open
=no
12538 rm -f core conftest.err conftest.
$ac_objext \
12539 conftest
$ac_exeext conftest.
$ac_ext
12540 LIBS
=$ac_check_lib_save_LIBS
12542 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_gpm_Gpm_Open" >&5
12543 $as_echo "$ac_cv_lib_gpm_Gpm_Open" >&6; }
12544 if test "x$ac_cv_lib_gpm_Gpm_Open" = x
""yes; then :
12552 if test "${HAVE_GPM}" = "yes"; then
12554 $as_echo "#define HAVE_GPM 1" >>confdefs.h
12557 ## May be reset below.
12558 MOUSE_SUPPORT
="\$(GPM_MOUSE_SUPPORT)"
12563 ac_fn_c_check_header_mongrel
"$LINENO" "malloc/malloc.h" "ac_cv_header_malloc_malloc_h" "$ac_includes_default"
12564 if test "x$ac_cv_header_malloc_malloc_h" = x
""yes; then :
12566 $as_echo "#define HAVE_MALLOC_MALLOC_H 1" >>confdefs.h
12573 ### Use NeXTstep API to implement GUI.
12574 if test "${HAVE_NS}" = "yes"; then
12576 $as_echo "#define HAVE_NS 1" >>confdefs.h
12578 if test "${NS_IMPL_COCOA}" = "yes"; then
12580 $as_echo "#define NS_IMPL_COCOA 1" >>confdefs.h
12584 if test "${NS_IMPL_GNUSTEP}" = "yes"; then
12586 $as_echo "#define NS_IMPL_GNUSTEP 1" >>confdefs.h
12588 # See also .m.o rule in Makefile.in */
12589 # FIXME: are all these flags really needed? Document here why. */
12590 C_SWITCH_X_SYSTEM
="-D_REENTRANT -fPIC -fno-strict-aliasing"
12591 GNU_OBJC_CFLAGS
="-fgnu-runtime -Wno-import -fconstant-string-class=NSConstantString -DGNUSTEP_BASE_LIBRARY=1 -DGNU_GUI_LIBRARY=1 -DGNU_RUNTIME=1 -DGSWARN -DGSDIAGNOSE"
12593 if test "${NS_HAVE_NSINTEGER}" = "yes"; then
12595 $as_echo "#define NS_HAVE_NSINTEGER 1" >>confdefs.h
12598 # We also have mouse menus.
12604 ### Use session management (-lSM -lICE) if available
12607 if test "${HAVE_X11}" = "yes"; then
12608 ac_fn_c_check_header_mongrel
"$LINENO" "X11/SM/SMlib.h" "ac_cv_header_X11_SM_SMlib_h" "$ac_includes_default"
12609 if test "x$ac_cv_header_X11_SM_SMlib_h" = x
""yes; then :
12610 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for SmcOpenConnection in -lSM" >&5
12611 $as_echo_n "checking for SmcOpenConnection in -lSM... " >&6; }
12612 if test "${ac_cv_lib_SM_SmcOpenConnection+set}" = set; then :
12613 $as_echo_n "(cached) " >&6
12615 ac_check_lib_save_LIBS
=$LIBS
12616 LIBS
="-lSM -lICE $LIBS"
12617 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
12618 /* end confdefs.h. */
12620 /* Override any GCC internal prototype to avoid an error.
12621 Use char because int might match the return type of a GCC
12622 builtin and then its argument prototype would still apply. */
12626 char SmcOpenConnection ();
12630 return SmcOpenConnection ();
12635 if ac_fn_c_try_link
"$LINENO"; then :
12636 ac_cv_lib_SM_SmcOpenConnection
=yes
12638 ac_cv_lib_SM_SmcOpenConnection
=no
12640 rm -f core conftest.err conftest.
$ac_objext \
12641 conftest
$ac_exeext conftest.
$ac_ext
12642 LIBS
=$ac_check_lib_save_LIBS
12644 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_SM_SmcOpenConnection" >&5
12645 $as_echo "$ac_cv_lib_SM_SmcOpenConnection" >&6; }
12646 if test "x$ac_cv_lib_SM_SmcOpenConnection" = x
""yes; then :
12654 if test "${HAVE_X_SM}" = "yes"; then
12656 $as_echo "#define HAVE_X_SM 1" >>confdefs.h
12658 LIBXSM
="-lSM -lICE"
12661 *) LIBS
="$LIBXSM $LIBS" ;;
12667 ### Use libxml (-lxml2) if available
12668 if test "${with_xml2}" != "no"; then
12669 ### I'm not sure what the version number should be, so I just guessed.
12673 # Extract the first word of "pkg-config", so it can be a program name with args.
12674 set dummy pkg-config
; ac_word
=$2
12675 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12676 $as_echo_n "checking for $ac_word... " >&6; }
12677 if test "${ac_cv_path_PKG_CONFIG+set}" = set; then :
12678 $as_echo_n "(cached) " >&6
12680 case $PKG_CONFIG in
12682 ac_cv_path_PKG_CONFIG
="$PKG_CONFIG" # Let the user override the test with a path.
12685 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
12686 for as_dir
in $PATH
12689 test -z "$as_dir" && as_dir
=.
12690 for ac_exec_ext
in '' $ac_executable_extensions; do
12691 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
12692 ac_cv_path_PKG_CONFIG
="$as_dir/$ac_word$ac_exec_ext"
12693 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12700 test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG
="no"
12704 PKG_CONFIG
=$ac_cv_path_PKG_CONFIG
12705 if test -n "$PKG_CONFIG"; then
12706 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5
12707 $as_echo "$PKG_CONFIG" >&6; }
12709 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12710 $as_echo "no" >&6; }
12715 if test "$PKG_CONFIG" = "no" ; then
12718 PKG_CONFIG_MIN_VERSION
=0.9.0
12719 if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
12720 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libxml-2.0 > 2.6.17" >&5
12721 $as_echo_n "checking for libxml-2.0 > 2.6.17... " >&6; }
12723 if $PKG_CONFIG --exists "libxml-2.0 > 2.6.17" 2>&5; then
12724 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
12725 $as_echo "yes" >&6; }
12728 { $as_echo "$as_me:${as_lineno-$LINENO}: checking LIBXML2_CFLAGS" >&5
12729 $as_echo_n "checking LIBXML2_CFLAGS... " >&6; }
12730 LIBXML2_CFLAGS
=`$PKG_CONFIG --cflags "libxml-2.0 > 2.6.17"|sed -e 's,///*,/,g'`
12731 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIBXML2_CFLAGS" >&5
12732 $as_echo "$LIBXML2_CFLAGS" >&6; }
12734 { $as_echo "$as_me:${as_lineno-$LINENO}: checking LIBXML2_LIBS" >&5
12735 $as_echo_n "checking LIBXML2_LIBS... " >&6; }
12736 LIBXML2_LIBS
=`$PKG_CONFIG --libs "libxml-2.0 > 2.6.17"|sed -e 's,///*,/,g'`
12737 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIBXML2_LIBS" >&5
12738 $as_echo "$LIBXML2_LIBS" >&6; }
12740 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12741 $as_echo "no" >&6; }
12744 ## If we have a custom action on failure, don't print errors, but
12745 ## do set a variable so people can do so.
12746 LIBXML2_PKG_ERRORS
=`$PKG_CONFIG --errors-to-stdout --print-errors "libxml-2.0 > 2.6.17"`
12753 echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
12754 echo "*** See http://www.freedesktop.org/software/pkgconfig"
12758 if test $succeeded = yes; then
12764 if test "${HAVE_LIBXML2}" = "yes"; then
12765 LIBS
="$LIBXML2_LIBS $LIBS"
12766 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for htmlReadMemory in -lxml2" >&5
12767 $as_echo_n "checking for htmlReadMemory in -lxml2... " >&6; }
12768 if test "${ac_cv_lib_xml2_htmlReadMemory+set}" = set; then :
12769 $as_echo_n "(cached) " >&6
12771 ac_check_lib_save_LIBS
=$LIBS
12772 LIBS
="-lxml2 $LIBS"
12773 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
12774 /* end confdefs.h. */
12776 /* Override any GCC internal prototype to avoid an error.
12777 Use char because int might match the return type of a GCC
12778 builtin and then its argument prototype would still apply. */
12782 char htmlReadMemory ();
12786 return htmlReadMemory ();
12791 if ac_fn_c_try_link
"$LINENO"; then :
12792 ac_cv_lib_xml2_htmlReadMemory
=yes
12794 ac_cv_lib_xml2_htmlReadMemory
=no
12796 rm -f core conftest.err conftest.
$ac_objext \
12797 conftest
$ac_exeext conftest.
$ac_ext
12798 LIBS
=$ac_check_lib_save_LIBS
12800 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_xml2_htmlReadMemory" >&5
12801 $as_echo "$ac_cv_lib_xml2_htmlReadMemory" >&6; }
12802 if test "x$ac_cv_lib_xml2_htmlReadMemory" = x
""yes; then :
12808 if test "${HAVE_LIBXML2}" = "yes"; then
12810 $as_echo "#define HAVE_LIBXML2 1" >>confdefs.h
12821 # If netdb.h doesn't declare h_errno, we must declare it by hand.
12822 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether netdb declares h_errno" >&5
12823 $as_echo_n "checking whether netdb declares h_errno... " >&6; }
12824 if test "${emacs_cv_netdb_declares_h_errno+set}" = set; then :
12825 $as_echo_n "(cached) " >&6
12827 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
12828 /* end confdefs.h. */
12838 if ac_fn_c_try_link
"$LINENO"; then :
12839 emacs_cv_netdb_declares_h_errno
=yes
12841 emacs_cv_netdb_declares_h_errno
=no
12843 rm -f core conftest.err conftest.
$ac_objext \
12844 conftest
$ac_exeext conftest.
$ac_ext
12846 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $emacs_cv_netdb_declares_h_errno" >&5
12847 $as_echo "$emacs_cv_netdb_declares_h_errno" >&6; }
12848 if test $emacs_cv_netdb_declares_h_errno = yes; then
12850 $as_echo "#define HAVE_H_ERRNO 1" >>confdefs.h
12854 # The Ultrix 4.2 mips builtin alloca declared by alloca.h only works
12855 # for constant arguments. Useless!
12856 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working alloca.h" >&5
12857 $as_echo_n "checking for working alloca.h... " >&6; }
12858 if test "${ac_cv_working_alloca_h+set}" = set; then :
12859 $as_echo_n "(cached) " >&6
12861 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
12862 /* end confdefs.h. */
12863 #include <alloca.h>
12867 char *p = (char *) alloca (2 * sizeof (int));
12873 if ac_fn_c_try_link
"$LINENO"; then :
12874 ac_cv_working_alloca_h
=yes
12876 ac_cv_working_alloca_h
=no
12878 rm -f core conftest.err conftest.
$ac_objext \
12879 conftest
$ac_exeext conftest.
$ac_ext
12881 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_working_alloca_h" >&5
12882 $as_echo "$ac_cv_working_alloca_h" >&6; }
12883 if test $ac_cv_working_alloca_h = yes; then
12885 $as_echo "#define HAVE_ALLOCA_H 1" >>confdefs.h
12889 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for alloca" >&5
12890 $as_echo_n "checking for alloca... " >&6; }
12891 if test "${ac_cv_func_alloca_works+set}" = set; then :
12892 $as_echo_n "(cached) " >&6
12894 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
12895 /* end confdefs.h. */
12897 # define alloca __builtin_alloca
12900 # include <malloc.h>
12901 # define alloca _alloca
12903 # ifdef HAVE_ALLOCA_H
12904 # include <alloca.h>
12909 # ifndef alloca /* predefined by HP cc +Olibcalls */
12920 char *p = (char *) alloca (1);
12926 if ac_fn_c_try_link
"$LINENO"; then :
12927 ac_cv_func_alloca_works
=yes
12929 ac_cv_func_alloca_works
=no
12931 rm -f core conftest.err conftest.
$ac_objext \
12932 conftest
$ac_exeext conftest.
$ac_ext
12934 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_alloca_works" >&5
12935 $as_echo "$ac_cv_func_alloca_works" >&6; }
12937 if test $ac_cv_func_alloca_works = yes; then
12939 $as_echo "#define HAVE_ALLOCA 1" >>confdefs.h
12942 # The SVR3 libPW and SVR4 libucb both contain incompatible functions
12943 # that cause trouble. Some versions do not even contain alloca or
12944 # contain a buggy version. If you still want to use their alloca,
12945 # use ar to extract alloca.o from them instead of compiling alloca.c.
12947 ALLOCA
=\
${LIBOBJDIR}alloca.
$ac_objext
12949 $as_echo "#define C_ALLOCA 1" >>confdefs.h
12952 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether \`alloca.c' needs Cray hooks" >&5
12953 $as_echo_n "checking whether \`alloca.c' needs Cray hooks... " >&6; }
12954 if test "${ac_cv_os_cray+set}" = set; then :
12955 $as_echo_n "(cached) " >&6
12957 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
12958 /* end confdefs.h. */
12959 #if defined CRAY && ! defined CRAY2
12966 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
12967 $EGREP "webecray" >/dev
/null
2>&1; then :
12975 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_os_cray" >&5
12976 $as_echo "$ac_cv_os_cray" >&6; }
12977 if test $ac_cv_os_cray = yes; then
12978 for ac_func
in _getb67 GETB67 getb67
; do
12979 as_ac_var
=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
12980 ac_fn_c_check_func
"$LINENO" "$ac_func" "$as_ac_var"
12981 if eval test \"x\$
"$as_ac_var"\" = x
"yes"; then :
12983 cat >>confdefs.h
<<_ACEOF
12984 #define CRAY_STACKSEG_END $ac_func
12993 { $as_echo "$as_me:${as_lineno-$LINENO}: checking stack direction for C alloca" >&5
12994 $as_echo_n "checking stack direction for C alloca... " >&6; }
12995 if test "${ac_cv_c_stack_direction+set}" = set; then :
12996 $as_echo_n "(cached) " >&6
12998 if test "$cross_compiling" = yes; then :
12999 ac_cv_c_stack_direction
=0
13001 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
13002 /* end confdefs.h. */
13003 $ac_includes_default
13005 find_stack_direction ()
13007 static char *addr = 0;
13012 return find_stack_direction ();
13015 return (&dummy > addr) ? 1 : -1;
13021 return find_stack_direction () < 0;
13024 if ac_fn_c_try_run
"$LINENO"; then :
13025 ac_cv_c_stack_direction
=1
13027 ac_cv_c_stack_direction
=-1
13029 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
13030 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
13034 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_stack_direction" >&5
13035 $as_echo "$ac_cv_c_stack_direction" >&6; }
13036 cat >>confdefs.h
<<_ACEOF
13037 #define STACK_DIRECTION $ac_cv_c_stack_direction
13044 if test x
"$ac_cv_func_alloca_works" != xyes
; then
13045 as_fn_error $?
"a system implementation of alloca is required " "$LINENO" 5
13048 # fmod, logb, and frexp are found in -lm on most systems.
13049 # On HPUX 9.01, -lm does not contain logb, so check for sqrt.
13050 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sqrt in -lm" >&5
13051 $as_echo_n "checking for sqrt in -lm... " >&6; }
13052 if test "${ac_cv_lib_m_sqrt+set}" = set; then :
13053 $as_echo_n "(cached) " >&6
13055 ac_check_lib_save_LIBS
=$LIBS
13057 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
13058 /* end confdefs.h. */
13060 /* Override any GCC internal prototype to avoid an error.
13061 Use char because int might match the return type of a GCC
13062 builtin and then its argument prototype would still apply. */
13075 if ac_fn_c_try_link
"$LINENO"; then :
13076 ac_cv_lib_m_sqrt
=yes
13078 ac_cv_lib_m_sqrt
=no
13080 rm -f core conftest.err conftest.
$ac_objext \
13081 conftest
$ac_exeext conftest.
$ac_ext
13082 LIBS
=$ac_check_lib_save_LIBS
13084 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_m_sqrt" >&5
13085 $as_echo "$ac_cv_lib_m_sqrt" >&6; }
13086 if test "x$ac_cv_lib_m_sqrt" = x
""yes; then :
13087 cat >>confdefs.h
<<_ACEOF
13088 #define HAVE_LIBM 1
13096 # Check for mail-locking functions in a "mail" library. Probably this should
13097 # have the same check as for liblockfile below.
13098 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for maillock in -lmail" >&5
13099 $as_echo_n "checking for maillock in -lmail... " >&6; }
13100 if test "${ac_cv_lib_mail_maillock+set}" = set; then :
13101 $as_echo_n "(cached) " >&6
13103 ac_check_lib_save_LIBS
=$LIBS
13104 LIBS
="-lmail $LIBS"
13105 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
13106 /* end confdefs.h. */
13108 /* Override any GCC internal prototype to avoid an error.
13109 Use char because int might match the return type of a GCC
13110 builtin and then its argument prototype would still apply. */
13118 return maillock ();
13123 if ac_fn_c_try_link
"$LINENO"; then :
13124 ac_cv_lib_mail_maillock
=yes
13126 ac_cv_lib_mail_maillock
=no
13128 rm -f core conftest.err conftest.
$ac_objext \
13129 conftest
$ac_exeext conftest.
$ac_ext
13130 LIBS
=$ac_check_lib_save_LIBS
13132 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_mail_maillock" >&5
13133 $as_echo "$ac_cv_lib_mail_maillock" >&6; }
13134 if test "x$ac_cv_lib_mail_maillock" = x
""yes; then :
13140 if test $have_mail = yes; then
13142 LIBS
="$LIBS_MAIL $LIBS"
13144 $as_echo "#define HAVE_LIBMAIL 1" >>confdefs.h
13149 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for maillock in -llockfile" >&5
13150 $as_echo_n "checking for maillock in -llockfile... " >&6; }
13151 if test "${ac_cv_lib_lockfile_maillock+set}" = set; then :
13152 $as_echo_n "(cached) " >&6
13154 ac_check_lib_save_LIBS
=$LIBS
13155 LIBS
="-llockfile $LIBS"
13156 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
13157 /* end confdefs.h. */
13159 /* Override any GCC internal prototype to avoid an error.
13160 Use char because int might match the return type of a GCC
13161 builtin and then its argument prototype would still apply. */
13169 return maillock ();
13174 if ac_fn_c_try_link
"$LINENO"; then :
13175 ac_cv_lib_lockfile_maillock
=yes
13177 ac_cv_lib_lockfile_maillock
=no
13179 rm -f core conftest.err conftest.
$ac_objext \
13180 conftest
$ac_exeext conftest.
$ac_ext
13181 LIBS
=$ac_check_lib_save_LIBS
13183 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_lockfile_maillock" >&5
13184 $as_echo "$ac_cv_lib_lockfile_maillock" >&6; }
13185 if test "x$ac_cv_lib_lockfile_maillock" = x
""yes; then :
13191 if test $have_lockfile = yes; then
13192 LIBS_MAIL
=-llockfile
13193 LIBS
="$LIBS_MAIL $LIBS"
13195 $as_echo "#define HAVE_LIBLOCKFILE 1" >>confdefs.h
13198 # If we have the shared liblockfile, assume we must use it for mail
13199 # locking (e.g. Debian). If we couldn't link against liblockfile
13200 # (no liblockfile.a installed), ensure that we don't need to.
13201 # Extract the first word of "liblockfile.so", so it can be a program name with args.
13202 set dummy liblockfile.so
; ac_word
=$2
13203 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13204 $as_echo_n "checking for $ac_word... " >&6; }
13205 if test "${ac_cv_prog_liblockfile+set}" = set; then :
13206 $as_echo_n "(cached) " >&6
13208 if test -n "$liblockfile"; then
13209 ac_cv_prog_liblockfile
="$liblockfile" # Let the user override the test.
13211 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
13212 as_dummy
="/usr/lib:/lib:/usr/local/lib:$LD_LIBRARY_PATH"
13213 for as_dir
in $as_dummy
13216 test -z "$as_dir" && as_dir
=.
13217 for ac_exec_ext
in '' $ac_executable_extensions; do
13218 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
13219 ac_cv_prog_liblockfile
="yes"
13220 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13227 test -z "$ac_cv_prog_liblockfile" && ac_cv_prog_liblockfile
="no"
13230 liblockfile
=$ac_cv_prog_liblockfile
13231 if test -n "$liblockfile"; then
13232 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $liblockfile" >&5
13233 $as_echo "$liblockfile" >&6; }
13235 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13236 $as_echo "no" >&6; }
13240 if test $ac_cv_prog_liblockfile = yes; then
13241 as_fn_error $?
"Shared liblockfile found but can't link against it.
13242 This probably means that movemail could lose mail.
13243 There may be a \`development' package to install containing liblockfile." "$LINENO" 5
13246 for ac_func
in touchlock
13248 ac_fn_c_check_func
"$LINENO" "touchlock" "ac_cv_func_touchlock"
13249 if test "x$ac_cv_func_touchlock" = x
""yes; then :
13250 cat >>confdefs.h
<<_ACEOF
13251 #define HAVE_TOUCHLOCK 1
13257 for ac_header
in maillock.h
13259 ac_fn_c_check_header_mongrel
"$LINENO" "maillock.h" "ac_cv_header_maillock_h" "$ac_includes_default"
13260 if test "x$ac_cv_header_maillock_h" = x
""yes; then :
13261 cat >>confdefs.h
<<_ACEOF
13262 #define HAVE_MAILLOCK_H 1
13271 ## Define MAIL_USE_FLOCK (or LOCKF) if the mailer uses flock (or lockf) to
13272 ## interlock access to the mail spool. The alternative is a lock file named
13273 ## /usr/spool/mail/$USER.lock.
13276 aix4-2
) mail_lock
="lockf" ;;
13278 gnu|freebsd|netbsd|openbsd|darwin|irix6-5
) mail_lock
="flock" ;;
13280 ## On GNU/Linux systems, both methods are used by various mail programs.
13281 ## I assume most people are using newer mailers that have heard of flock.
13282 ## Change this if you need to.
13283 ## Debian contains a patch which says: ``On Debian/GNU/Linux systems,
13284 ## configure gets the right answers, and that means *NOT* using flock.
13285 ## Using flock is guaranteed to be the wrong thing. See Debian Policy
13286 ## for details.'' and then uses `#ifdef DEBIAN'. Unfortunately the
13287 ## Debian maintainer hasn't provided a clean fix for Emacs.
13288 ## movemail.c will use `maillock' when MAILDIR, HAVE_LIBMAIL and
13289 ## HAVE_MAILLOCK_H are defined, so the following appears to be the
13290 ## correct logic. -- fx
13291 ## We must check for HAVE_LIBLOCKFILE too, as movemail does.
13292 ## liblockfile is a Free Software replacement for libmail, used on
13293 ## Debian systems and elsewhere. -rfr.
13296 if test $have_mail = yes ||
test $have_lockfile = yes; then
13297 test $ac_cv_header_maillock_h = yes && mail_lock
=no
13303 case "$mail_lock" in
13305 $as_echo "#define MAIL_USE_FLOCK 1" >>confdefs.h
13309 $as_echo "#define MAIL_USE_LOCKF 1" >>confdefs.h
13312 *) BLESSMAIL_TARGET
="need-blessmail" ;;
13317 for ac_func
in gethostname getdomainname dup2 \
13318 rename closedir mkdir
rmdir sysinfo getrusage get_current_dir_name \
13319 random lrand48 logb frexp fmod rint cbrt ftime setsid \
13320 strerror fpathconf
select euidaccess getpagesize tzset setlocale \
13321 utimes getrlimit setrlimit setpgid getcwd getwd shutdown getaddrinfo \
13322 __fpending mblen mbrlen mbsinit strsignal setitimer ualarm strchr strrchr \
13323 sendto recvfrom getsockopt setsockopt getsockname getpeername \
13324 gai_strerror mkstemp getline getdelim mremap memmove fsync sync \
13325 memset memcmp difftime memcpy mempcpy mblen mbrlen posix_memalign \
13326 cfmakeraw cfsetspeed isnan copysign __executable_start
13328 as_ac_var
=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
13329 ac_fn_c_check_func
"$LINENO" "$ac_func" "$as_ac_var"
13330 if eval test \"x\$
"$as_ac_var"\" = x
"yes"; then :
13331 cat >>confdefs.h
<<_ACEOF
13332 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
13339 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for __builtin_unwind_init" >&5
13340 $as_echo_n "checking for __builtin_unwind_init... " >&6; }
13341 if test "${emacs_cv_func___builtin_unwind_init+set}" = set; then :
13342 $as_echo_n "(cached) " >&6
13344 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
13345 /* end confdefs.h. */
13350 __builtin_unwind_init ();
13355 if ac_fn_c_try_link
"$LINENO"; then :
13356 emacs_cv_func___builtin_unwind_init
=yes
13358 emacs_cv_func___builtin_unwind_init
=no
13360 rm -f core conftest.err conftest.
$ac_objext \
13361 conftest
$ac_exeext conftest.
$ac_ext
13363 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $emacs_cv_func___builtin_unwind_init" >&5
13364 $as_echo "$emacs_cv_func___builtin_unwind_init" >&6; }
13365 if test $emacs_cv_func___builtin_unwind_init = yes; then
13367 $as_echo "#define HAVE___BUILTIN_UNWIND_INIT 1" >>confdefs.h
13371 for ac_header
in sys
/un.h
13373 ac_fn_c_check_header_mongrel
"$LINENO" "sys/un.h" "ac_cv_header_sys_un_h" "$ac_includes_default"
13374 if test "x$ac_cv_header_sys_un_h" = x
""yes; then :
13375 cat >>confdefs.h
<<_ACEOF
13376 #define HAVE_SYS_UN_H 1
13384 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _LARGEFILE_SOURCE value needed for large files" >&5
13385 $as_echo_n "checking for _LARGEFILE_SOURCE value needed for large files... " >&6; }
13386 if test "${ac_cv_sys_largefile_source+set}" = set; then :
13387 $as_echo_n "(cached) " >&6
13390 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
13391 /* end confdefs.h. */
13392 #include <sys/types.h> /* for off_t */
13397 int (*fp) (FILE *, off_t, int) = fseeko;
13398 return fseeko (stdin, 0, 0) && fp (stdin, 0, 0);
13403 if ac_fn_c_try_link
"$LINENO"; then :
13404 ac_cv_sys_largefile_source
=no
; break
13406 rm -f core conftest.err conftest.
$ac_objext \
13407 conftest
$ac_exeext conftest.
$ac_ext
13408 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
13409 /* end confdefs.h. */
13410 #define _LARGEFILE_SOURCE 1
13411 #include <sys/types.h> /* for off_t */
13416 int (*fp) (FILE *, off_t, int) = fseeko;
13417 return fseeko (stdin, 0, 0) && fp (stdin, 0, 0);
13422 if ac_fn_c_try_link
"$LINENO"; then :
13423 ac_cv_sys_largefile_source
=1; break
13425 rm -f core conftest.err conftest.
$ac_objext \
13426 conftest
$ac_exeext conftest.
$ac_ext
13427 ac_cv_sys_largefile_source
=unknown
13431 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_largefile_source" >&5
13432 $as_echo "$ac_cv_sys_largefile_source" >&6; }
13433 case $ac_cv_sys_largefile_source in #(
13436 cat >>confdefs.h
<<_ACEOF
13437 #define _LARGEFILE_SOURCE $ac_cv_sys_largefile_source
13443 # We used to try defining _XOPEN_SOURCE=500 too, to work around a bug
13444 # in glibc 2.1.3, but that breaks too many other things.
13445 # If you want fseeko and ftello with glibc, upgrade to a fixed glibc.
13446 if test $ac_cv_sys_largefile_source != unknown
; then
13448 $as_echo "#define HAVE_FSEEKO 1" >>confdefs.h
13453 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether getpgrp requires zero arguments" >&5
13454 $as_echo_n "checking whether getpgrp requires zero arguments... " >&6; }
13455 if test "${ac_cv_func_getpgrp_void+set}" = set; then :
13456 $as_echo_n "(cached) " >&6
13458 # Use it with a single arg.
13459 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
13460 /* end confdefs.h. */
13461 $ac_includes_default
13470 if ac_fn_c_try_compile
"$LINENO"; then :
13471 ac_cv_func_getpgrp_void
=no
13473 ac_cv_func_getpgrp_void
=yes
13475 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
13478 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_getpgrp_void" >&5
13479 $as_echo "$ac_cv_func_getpgrp_void" >&6; }
13480 if test $ac_cv_func_getpgrp_void = yes; then
13482 $as_echo "#define GETPGRP_VOID 1" >>confdefs.h
13487 # Configure gnulib.
13498 LIBC_FATAL_STDERR_
=1
13499 export LIBC_FATAL_STDERR_
13502 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether byte ordering is bigendian" >&5
13503 $as_echo_n "checking whether byte ordering is bigendian... " >&6; }
13504 if test "${ac_cv_c_bigendian+set}" = set; then :
13505 $as_echo_n "(cached) " >&6
13507 ac_cv_c_bigendian
=unknown
13508 # See if we're dealing with a universal compiler.
13509 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
13510 /* end confdefs.h. */
13511 #ifndef __APPLE_CC__
13512 not a universal capable compiler
13517 if ac_fn_c_try_compile
"$LINENO"; then :
13519 # Check for potential -arch flags. It is not universal unless
13520 # there are at least two -arch flags with different values.
13523 for ac_word
in $CC $CFLAGS $CPPFLAGS $LDFLAGS; do
13524 if test -n "$ac_prev"; then
13526 i?
86 | x86_64 | ppc | ppc64
)
13527 if test -z "$ac_arch" ||
test "$ac_arch" = "$ac_word"; then
13530 ac_cv_c_bigendian
=universal
13536 elif test "x$ac_word" = "x-arch"; then
13541 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
13542 if test $ac_cv_c_bigendian = unknown
; then
13543 # See if sys/param.h defines the BYTE_ORDER macro.
13544 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
13545 /* end confdefs.h. */
13546 #include <sys/types.h>
13547 #include <sys/param.h>
13552 #if ! (defined BYTE_ORDER && defined BIG_ENDIAN \
13553 && defined LITTLE_ENDIAN && BYTE_ORDER && BIG_ENDIAN \
13555 bogus endian macros
13562 if ac_fn_c_try_compile
"$LINENO"; then :
13563 # It does; now see whether it defined to BIG_ENDIAN or not.
13564 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
13565 /* end confdefs.h. */
13566 #include <sys/types.h>
13567 #include <sys/param.h>
13572 #if BYTE_ORDER != BIG_ENDIAN
13580 if ac_fn_c_try_compile
"$LINENO"; then :
13581 ac_cv_c_bigendian
=yes
13583 ac_cv_c_bigendian
=no
13585 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
13587 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
13589 if test $ac_cv_c_bigendian = unknown
; then
13590 # See if <limits.h> defines _LITTLE_ENDIAN or _BIG_ENDIAN (e.g., Solaris).
13591 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
13592 /* end confdefs.h. */
13593 #include <limits.h>
13598 #if ! (defined _LITTLE_ENDIAN || defined _BIG_ENDIAN)
13599 bogus endian macros
13606 if ac_fn_c_try_compile
"$LINENO"; then :
13607 # It does; now see whether it defined to _BIG_ENDIAN or not.
13608 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
13609 /* end confdefs.h. */
13610 #include <limits.h>
13615 #ifndef _BIG_ENDIAN
13623 if ac_fn_c_try_compile
"$LINENO"; then :
13624 ac_cv_c_bigendian
=yes
13626 ac_cv_c_bigendian
=no
13628 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
13630 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
13632 if test $ac_cv_c_bigendian = unknown
; then
13633 # Compile a test program.
13634 if test "$cross_compiling" = yes; then :
13635 # Try to guess by grepping values from an object file.
13636 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
13637 /* end confdefs.h. */
13638 short int ascii_mm[] =
13639 { 0x4249, 0x4765, 0x6E44, 0x6961, 0x6E53, 0x7953, 0 };
13640 short int ascii_ii[] =
13641 { 0x694C, 0x5454, 0x656C, 0x6E45, 0x6944, 0x6E61, 0 };
13642 int use_ascii (int i) {
13643 return ascii_mm[i] + ascii_ii[i];
13645 short int ebcdic_ii[] =
13646 { 0x89D3, 0xE3E3, 0x8593, 0x95C5, 0x89C4, 0x9581, 0 };
13647 short int ebcdic_mm[] =
13648 { 0xC2C9, 0xC785, 0x95C4, 0x8981, 0x95E2, 0xA8E2, 0 };
13649 int use_ebcdic (int i) {
13650 return ebcdic_mm[i] + ebcdic_ii[i];
13657 return use_ascii (foo) == use_ebcdic (foo);
13662 if ac_fn_c_try_compile
"$LINENO"; then :
13663 if grep BIGenDianSyS conftest.
$ac_objext >/dev
/null
; then
13664 ac_cv_c_bigendian
=yes
13666 if grep LiTTleEnDian conftest.
$ac_objext >/dev
/null
; then
13667 if test "$ac_cv_c_bigendian" = unknown
; then
13668 ac_cv_c_bigendian
=no
13670 # finding both strings is unlikely to happen, but who knows?
13671 ac_cv_c_bigendian
=unknown
13675 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
13677 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
13678 /* end confdefs.h. */
13679 $ac_includes_default
13684 /* Are we little or big endian? From Harbison&Steele. */
13688 char c[sizeof (long int)];
13691 return u.c[sizeof (long int) - 1] == 1;
13697 if ac_fn_c_try_run
"$LINENO"; then :
13698 ac_cv_c_bigendian
=no
13700 ac_cv_c_bigendian
=yes
13702 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
13703 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
13708 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_bigendian" >&5
13709 $as_echo "$ac_cv_c_bigendian" >&6; }
13710 case $ac_cv_c_bigendian in #(
13712 $as_echo "#define WORDS_BIGENDIAN 1" >>confdefs.h
13718 $as_echo "#define AC_APPLE_UNIVERSAL_BUILD 1" >>confdefs.h
13722 as_fn_error $?
"unknown endianness
13723 presetting ac_cv_c_bigendian=no (or yes) will help" "$LINENO" 5 ;;
13727 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for inline" >&5
13728 $as_echo_n "checking for inline... " >&6; }
13729 if test "${ac_cv_c_inline+set}" = set; then :
13730 $as_echo_n "(cached) " >&6
13733 for ac_kw
in inline __inline__ __inline
; do
13734 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
13735 /* end confdefs.h. */
13736 #ifndef __cplusplus
13738 static $ac_kw foo_t static_foo () {return 0; }
13739 $ac_kw foo_t foo () {return 0; }
13743 if ac_fn_c_try_compile
"$LINENO"; then :
13744 ac_cv_c_inline
=$ac_kw
13746 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
13747 test "$ac_cv_c_inline" != no
&& break
13751 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_inline" >&5
13752 $as_echo "$ac_cv_c_inline" >&6; }
13754 case $ac_cv_c_inline in
13757 case $ac_cv_c_inline in
13759 *) ac_val
=$ac_cv_c_inline;;
13761 cat >>confdefs.h
<<_ACEOF
13762 #ifndef __cplusplus
13763 #define inline $ac_val
13770 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether strtold conforms to C99" >&5
13771 $as_echo_n "checking whether strtold conforms to C99... " >&6; }
13772 if test "${gl_cv_func_c99_strtold+set}" = set; then :
13773 $as_echo_n "(cached) " >&6
13775 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
13776 /* end confdefs.h. */
13777 /* On HP-UX before 11.23, strtold returns a struct instead of
13778 long double. Reject implementations like that, by requiring
13779 compatibility with the C99 prototype. */
13780 #include <stdlib.h>
13781 static long double (*p) (char const *, char **) = strtold;
13783 test (char const *nptr, char **endptr)
13786 r = strtold (nptr, endptr);
13792 return test ("1.0", NULL) != 1 || p ("1.0", NULL) != 1;
13797 if ac_fn_c_try_link
"$LINENO"; then :
13798 gl_cv_func_c99_strtold
=yes
13800 gl_cv_func_c99_strtold
=no
13802 rm -f core conftest.err conftest.
$ac_objext \
13803 conftest
$ac_exeext conftest.
$ac_ext
13805 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_c99_strtold" >&5
13806 $as_echo "$gl_cv_func_c99_strtold" >&6; }
13807 if test $gl_cv_func_c99_strtold = yes; then
13809 $as_echo "#define HAVE_C99_STRTOLD 1" >>confdefs.h
13813 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for st_dm_mode in struct stat" >&5
13814 $as_echo_n "checking for st_dm_mode in struct stat... " >&6; }
13815 if test "${ac_cv_struct_st_dm_mode+set}" = set; then :
13816 $as_echo_n "(cached) " >&6
13818 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
13819 /* end confdefs.h. */
13821 #include <sys/types.h>
13822 #include <sys/stat.h>
13826 struct stat s; s.st_dm_mode;
13831 if ac_fn_c_try_compile
"$LINENO"; then :
13832 ac_cv_struct_st_dm_mode
=yes
13834 ac_cv_struct_st_dm_mode
=no
13836 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
13838 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_struct_st_dm_mode" >&5
13839 $as_echo "$ac_cv_struct_st_dm_mode" >&6; }
13841 if test $ac_cv_struct_st_dm_mode = yes; then
13843 $as_echo "#define HAVE_ST_DM_MODE 1" >>confdefs.h
13848 ac_fn_c_check_decl
"$LINENO" "strmode" "ac_cv_have_decl_strmode" "$ac_includes_default"
13849 if test "x$ac_cv_have_decl_strmode" = x
""yes; then :
13855 cat >>confdefs.h
<<_ACEOF
13856 #define HAVE_DECL_STRMODE $ac_have_decl
13862 GNULIB_CALLOC_POSIX
=0;
13863 GNULIB_CANONICALIZE_FILE_NAME
=0;
13864 GNULIB_GETLOADAVG
=0;
13865 GNULIB_GETSUBOPT
=0;
13867 GNULIB_MALLOC_POSIX
=0;
13871 GNULIB_MKOSTEMPS
=0;
13877 GNULIB_REALLOC_POSIX
=0;
13884 GNULIB_SYSTEM_POSIX
=0;
13890 HAVE_CANONICALIZE_FILE_NAME
=1;
13891 HAVE_DECL_GETLOADAVG
=1;
13905 HAVE_DECL_SETENV
=1;
13909 HAVE_STRUCT_RANDOM_DATA
=1;
13910 HAVE_SYS_LOADAVG_H
=0;
13912 HAVE_DECL_UNSETENV
=1;
13914 REPLACE_CANONICALIZE_FILE_NAME
=0;
13920 REPLACE_REALPATH
=0;
13923 REPLACE_UNSETENV
=0;
13932 GNULIB_EUIDACCESS
=0;
13933 GNULIB_FACCESSAT
=0;
13937 GNULIB_FTRUNCATE
=0;
13939 GNULIB_GETDOMAINNAME
=0;
13940 GNULIB_GETDTABLESIZE
=0;
13941 GNULIB_GETGROUPS
=0;
13942 GNULIB_GETHOSTNAME
=0;
13944 GNULIB_GETLOGIN_R
=0;
13945 GNULIB_GETPAGESIZE
=0;
13946 GNULIB_GETUSERSHELL
=0;
13956 GNULIB_READLINKAT
=0;
13960 GNULIB_SYMLINKAT
=0;
13961 GNULIB_TTYNAME_R
=0;
13962 GNULIB_UNISTD_H_GETOPT
=0;
13963 GNULIB_UNISTD_H_SIGPIPE
=0;
13977 HAVE_GETDTABLESIZE
=1;
13979 HAVE_GETHOSTNAME
=1;
13981 HAVE_GETPAGESIZE
=1;
13996 HAVE_DECL_ENVIRON
=1;
13997 HAVE_DECL_FCHDIR
=1;
13998 HAVE_DECL_GETDOMAINNAME
=1;
13999 HAVE_DECL_GETLOGIN_R
=1;
14000 HAVE_DECL_GETPAGESIZE
=1;
14001 HAVE_DECL_GETUSERSHELL
=1;
14002 HAVE_DECL_TTYNAME_R
=1;
14004 HAVE_SYS_PARAM_H
=0;
14009 REPLACE_FCHOWNAT
=0;
14011 REPLACE_GETDOMAINNAME
=0;
14012 REPLACE_GETLOGIN_R
=0;
14013 REPLACE_GETGROUPS
=0;
14014 REPLACE_GETPAGESIZE
=0;
14021 REPLACE_READLINK
=0;
14025 REPLACE_TTYNAME_R
=0;
14027 REPLACE_UNLINKAT
=0;
14030 UNISTD_H_HAVE_WINSOCK2_H
=0;
14031 UNISTD_H_HAVE_WINSOCK2_H_AND_USE_SOCKETS
=0;
14036 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the preprocessor supports include_next" >&5
14037 $as_echo_n "checking whether the preprocessor supports include_next... " >&6; }
14038 if test "${gl_cv_have_include_next+set}" = set; then :
14039 $as_echo_n "(cached) " >&6
14041 rm -rf conftestd1a conftestd1b conftestd2
14042 mkdir conftestd1a conftestd1b conftestd2
14043 cat <<EOF > conftestd1a/conftest.h
14044 #define DEFINED_IN_CONFTESTD1
14045 #include_next <conftest.h>
14046 #ifdef DEFINED_IN_CONFTESTD2
14049 #error "include_next doesn't work"
14052 cat <<EOF > conftestd1b/conftest.h
14053 #define DEFINED_IN_CONFTESTD1
14055 #include_next <conftest.h>
14056 #ifdef DEFINED_IN_CONFTESTD2
14059 #error "include_next doesn't work"
14062 cat <<EOF > conftestd2/conftest.h
14063 #ifndef DEFINED_IN_CONFTESTD1
14064 #error "include_next test doesn't work"
14066 #define DEFINED_IN_CONFTESTD2
14068 gl_save_CPPFLAGS
="$CPPFLAGS"
14069 CPPFLAGS
="$gl_save_CPPFLAGS -Iconftestd1b -Iconftestd2"
14070 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
14071 /* end confdefs.h. */
14072 #include <conftest.h>
14074 if ac_fn_c_try_compile
"$LINENO"; then :
14075 gl_cv_have_include_next
=yes
14077 CPPFLAGS
="$gl_save_CPPFLAGS -Iconftestd1a -Iconftestd2"
14078 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
14079 /* end confdefs.h. */
14080 #include <conftest.h>
14082 if ac_fn_c_try_compile
"$LINENO"; then :
14083 gl_cv_have_include_next
=buggy
14085 gl_cv_have_include_next
=no
14087 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
14090 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
14091 CPPFLAGS
="$gl_save_CPPFLAGS"
14092 rm -rf conftestd1a conftestd1b conftestd2
14095 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_have_include_next" >&5
14096 $as_echo "$gl_cv_have_include_next" >&6; }
14097 PRAGMA_SYSTEM_HEADER
=
14098 if test $gl_cv_have_include_next = yes; then
14099 INCLUDE_NEXT
=include_next
14100 INCLUDE_NEXT_AS_FIRST_DIRECTIVE
=include_next
14101 if test -n "$GCC"; then
14102 PRAGMA_SYSTEM_HEADER
='#pragma GCC system_header'
14105 if test $gl_cv_have_include_next = buggy
; then
14106 INCLUDE_NEXT
=include
14107 INCLUDE_NEXT_AS_FIRST_DIRECTIVE
=include_next
14109 INCLUDE_NEXT
=include
14110 INCLUDE_NEXT_AS_FIRST_DIRECTIVE
=include
14116 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether system header files limit the line length" >&5
14117 $as_echo_n "checking whether system header files limit the line length... " >&6; }
14118 if test "${gl_cv_pragma_columns+set}" = set; then :
14119 $as_echo_n "(cached) " >&6
14121 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
14122 /* end confdefs.h. */
14129 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
14130 $EGREP "choke me" >/dev
/null
2>&1; then :
14131 gl_cv_pragma_columns
=yes
14133 gl_cv_pragma_columns
=no
14139 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_pragma_columns" >&5
14140 $as_echo "$gl_cv_pragma_columns" >&6; }
14141 if test $gl_cv_pragma_columns = yes; then
14142 PRAGMA_COLUMNS
="#pragma COLUMNS 10000"
14163 if test $gl_cv_have_include_next = yes; then
14164 gl_cv_next_getopt_h
='<'getopt.h
'>'
14166 { $as_echo "$as_me:${as_lineno-$LINENO}: checking absolute name of <getopt.h>" >&5
14167 $as_echo_n "checking absolute name of <getopt.h>... " >&6; }
14168 if test "${gl_cv_next_getopt_h+set}" = set; then :
14169 $as_echo_n "(cached) " >&6
14172 if test $ac_cv_header_getopt_h = yes; then
14175 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
14176 /* end confdefs.h. */
14177 #include <getopt.h>
14181 aix
*) gl_absname_cpp
="$ac_cpp -C" ;;
14182 *) gl_absname_cpp
="$ac_cpp" ;;
14184 gl_cv_next_getopt_h
='"'`(eval "$gl_absname_cpp conftest.$ac_ext") 2>&5 |
14185 sed -n '\#/getopt.h#{
14186 s#.*"\(.*/getopt.h\)".*#\1#
14192 gl_cv_next_getopt_h
='<'getopt.h
'>'
14197 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_next_getopt_h" >&5
14198 $as_echo "$gl_cv_next_getopt_h" >&6; }
14200 NEXT_GETOPT_H
=$gl_cv_next_getopt_h
14202 if test $gl_cv_have_include_next = yes ||
test $gl_cv_have_include_next = buggy
; then
14203 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include_next'
14204 gl_next_as_first_directive
='<'getopt.h
'>'
14206 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include'
14207 gl_next_as_first_directive
=$gl_cv_next_getopt_h
14209 NEXT_AS_FIRST_DIRECTIVE_GETOPT_H
=$gl_next_as_first_directive
14214 if test $ac_cv_header_getopt_h = yes; then
14223 if test -z "$gl_replace_getopt" && test $gl_getopt_required = GNU
; then
14224 for ac_header
in getopt.h
14226 ac_fn_c_check_header_mongrel
"$LINENO" "getopt.h" "ac_cv_header_getopt_h" "$ac_includes_default"
14227 if test "x$ac_cv_header_getopt_h" = x
""yes; then :
14228 cat >>confdefs.h
<<_ACEOF
14229 #define HAVE_GETOPT_H 1
14233 gl_replace_getopt
=yes
14240 if test -z "$gl_replace_getopt" && test $gl_getopt_required = GNU
; then
14241 for ac_func
in getopt_long_only
14243 ac_fn_c_check_func
"$LINENO" "getopt_long_only" "ac_cv_func_getopt_long_only"
14244 if test "x$ac_cv_func_getopt_long_only" = x
""yes; then :
14245 cat >>confdefs.h
<<_ACEOF
14246 #define HAVE_GETOPT_LONG_ONLY 1
14250 gl_replace_getopt
=yes
14256 if test -z "$gl_replace_getopt"; then
14257 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether getopt is POSIX compatible" >&5
14258 $as_echo_n "checking whether getopt is POSIX compatible... " >&6; }
14259 if test "${gl_cv_func_getopt_posix+set}" = set; then :
14260 $as_echo_n "(cached) " >&6
14263 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
14264 /* end confdefs.h. */
14265 #include <unistd.h>
14269 int *p = &optreset; return optreset;
14274 if ac_fn_c_try_compile
"$LINENO"; then :
14277 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
14278 /* end confdefs.h. */
14279 #include <getopt.h>
14283 return !getopt_clip;
14288 if ac_fn_c_try_compile
"$LINENO"; then :
14293 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
14295 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
14297 gl_save_CPPFLAGS
=$CPPFLAGS
14298 CPPFLAGS
="$CPPFLAGS -DOPTIND_MIN=$gl_optind_min"
14299 if test "$cross_compiling" = yes; then :
14301 mingw
*) gl_cv_func_getopt_posix
="guessing no";;
14302 darwin
* | aix
*) gl_cv_func_getopt_posix
="guessing no";;
14303 *) gl_cv_func_getopt_posix
="guessing yes";;
14307 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
14308 /* end confdefs.h. */
14310 #include <unistd.h>
14311 #include <stdlib.h>
14312 #include <string.h>
14322 argv[argc++] = "program";
14323 argv[argc++] = "-a";
14324 argv[argc++] = "foo";
14325 argv[argc++] = "bar";
14327 optind = OPTIND_MIN;
14330 c = getopt (argc, argv, "ab");
14333 c = getopt (argc, argv, "ab");
14336 if (!(optind == 2))
14339 /* Some internal state exists at this point. */
14345 argv[argc++] = "program";
14346 argv[argc++] = "donald";
14347 argv[argc++] = "-p";
14348 argv[argc++] = "billy";
14349 argv[argc++] = "duck";
14350 argv[argc++] = "-a";
14351 argv[argc++] = "bar";
14353 optind = OPTIND_MIN;
14356 c = getopt (argc, argv, "+abp:q:");
14359 if (!(strcmp (argv[0], "program") == 0))
14361 if (!(strcmp (argv[1], "donald") == 0))
14363 if (!(strcmp (argv[2], "-p") == 0))
14365 if (!(strcmp (argv[3], "billy") == 0))
14367 if (!(strcmp (argv[4], "duck") == 0))
14369 if (!(strcmp (argv[5], "-a") == 0))
14371 if (!(strcmp (argv[6], "bar") == 0))
14373 if (!(optind == 1))
14376 /* Detect MacOS 10.5, AIX 7.1 bug. */
14378 char *argv[3] = { "program", "-ab", NULL };
14379 optind = OPTIND_MIN;
14381 if (getopt (2, argv, "ab:") != 'a')
14383 if (getopt (2, argv, "ab:") != '?')
14395 if ac_fn_c_try_run
"$LINENO"; then :
14396 gl_cv_func_getopt_posix
=yes
14398 gl_cv_func_getopt_posix
=no
14400 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
14401 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
14404 CPPFLAGS
=$gl_save_CPPFLAGS
14407 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_getopt_posix" >&5
14408 $as_echo "$gl_cv_func_getopt_posix" >&6; }
14409 case "$gl_cv_func_getopt_posix" in
14410 *no
) gl_replace_getopt
=yes ;;
14414 if test -z "$gl_replace_getopt" && test $gl_getopt_required = GNU
; then
14415 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working GNU getopt function" >&5
14416 $as_echo_n "checking for working GNU getopt function... " >&6; }
14417 if test "${gl_cv_func_getopt_gnu+set}" = set; then :
14418 $as_echo_n "(cached) " >&6
14420 # Even with POSIXLY_CORRECT, the GNU extension of leading '-' in the
14421 # optstring is necessary for programs like m4 that have POSIX-mandated
14422 # semantics for supporting options interspersed with files.
14423 # Also, since getopt_long is a GNU extension, we require optind=0.
14424 # Bash ties 'set -o posix' to a non-exported POSIXLY_CORRECT;
14425 # so take care to revert to the correct (non-)export state.
14426 gl_awk_probe
='BEGIN { if ("POSIXLY_CORRECT" in ENVIRON) print "x" }'
14427 case ${POSIXLY_CORRECT+x}`$AWK "$gl_awk_probe" </dev/null` in
14428 xx
) gl_had_POSIXLY_CORRECT
=exported
;;
14429 x
) gl_had_POSIXLY_CORRECT
=yes ;;
14430 *) gl_had_POSIXLY_CORRECT
= ;;
14433 export POSIXLY_CORRECT
14434 if test "$cross_compiling" = yes; then :
14435 case $host_os:$ac_cv_have_decl_optreset in
14436 *-gnu*:* | mingw
*:*) gl_cv_func_getopt_gnu
=no
;;
14437 *:yes) gl_cv_func_getopt_gnu
=no
;;
14438 *) gl_cv_func_getopt_gnu
=yes;;
14442 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
14443 /* end confdefs.h. */
14444 #include <getopt.h>
14445 #include <stddef.h>
14446 #include <string.h>
14453 /* This code succeeds on glibc 2.8, OpenBSD 4.0, Cygwin, mingw,
14454 and fails on MacOS X 10.5, AIX 5.2, HP-UX 11, IRIX 6.5,
14455 OSF/1 5.1, Solaris 10. */
14458 myargv[0] = "conftest";
14462 if (getopt (2, myargv, "+a") != '?')
14465 /* This code succeeds on glibc 2.8, mingw,
14466 and fails on MacOS X 10.5, OpenBSD 4.0, AIX 5.2, HP-UX 11,
14467 IRIX 6.5, OSF/1 5.1, Solaris 10, Cygwin 1.5.x. */
14469 char *argv[] = { "program", "-p", "foo", "bar", NULL };
14472 if (getopt (4, argv, "p::") != 'p')
14474 else if (optarg != NULL)
14476 else if (getopt (4, argv, "p::") != -1)
14478 else if (optind != 2)
14481 /* This code succeeds on glibc 2.8 and fails on Cygwin 1.7.0. */
14483 char *argv[] = { "program", "foo", "-p", NULL };
14485 if (getopt (3, argv, "-p") != 1)
14487 else if (getopt (3, argv, "-p") != 'p')
14490 /* This code fails on glibc 2.11. */
14492 char *argv[] = { "program", "-b", "-a", NULL };
14493 optind = opterr = 0;
14494 if (getopt (3, argv, "+:a:b") != 'b')
14496 else if (getopt (3, argv, "+:a:b") != ':')
14505 if ac_fn_c_try_run
"$LINENO"; then :
14506 gl_cv_func_getopt_gnu
=yes
14508 gl_cv_func_getopt_gnu
=no
14510 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
14511 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
14514 case $gl_had_POSIXLY_CORRECT in
14516 yes) { POSIXLY_CORRECT
=; unset POSIXLY_CORRECT
;}; POSIXLY_CORRECT
=1 ;;
14517 *) { POSIXLY_CORRECT
=; unset POSIXLY_CORRECT
;} ;;
14521 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_getopt_gnu" >&5
14522 $as_echo "$gl_cv_func_getopt_gnu" >&6; }
14523 if test "$gl_cv_func_getopt_gnu" = "no"; then
14524 gl_replace_getopt
=yes
14528 ac_fn_c_check_decl
"$LINENO" "getenv" "ac_cv_have_decl_getenv" "$ac_includes_default"
14529 if test "x$ac_cv_have_decl_getenv" = x
""yes; then :
14535 cat >>confdefs.h
<<_ACEOF
14536 #define HAVE_DECL_GETENV $ac_have_decl
14544 if test -n "$gl_replace_getopt"; then :
14550 $as_echo "#define __GETOPT_PREFIX rpl_" >>confdefs.h
14554 GNULIB_UNISTD_H_GETOPT
=1
14563 gl_LIBOBJS
="$gl_LIBOBJS getopt.$ac_objext"
14573 gl_LIBOBJS
="$gl_LIBOBJS getopt1.$ac_objext"
14595 GNULIB_UTIMENSAT
=0;
14609 REPLACE_FUTIMENS
=0;
14615 REPLACE_UTIMENSAT
=0;
14620 for ac_func
in $ac_func_list
14622 as_ac_var
=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
14623 ac_fn_c_check_func
"$LINENO" "$ac_func" "$as_ac_var"
14624 if eval test \"x\$
"$as_ac_var"\" = x
"yes"; then :
14625 cat >>confdefs.h
<<_ACEOF
14626 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
14635 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether lstat correctly handles trailing slash" >&5
14636 $as_echo_n "checking whether lstat correctly handles trailing slash... " >&6; }
14637 if test "${ac_cv_func_lstat_dereferences_slashed_symlink+set}" = set; then :
14638 $as_echo_n "(cached) " >&6
14640 rm -f conftest.sym conftest.
file
14641 echo >conftest.
file
14642 if test "$as_ln_s" = "ln -s" && ln -s conftest.
file conftest.sym
; then
14643 if test "$cross_compiling" = yes; then :
14644 # When cross-compiling, be pessimistic so we will end up using the
14645 # replacement version of lstat that checks for trailing slashes and
14646 # calls lstat a second time when necessary.
14647 ac_cv_func_lstat_dereferences_slashed_symlink
=no
14650 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
14651 /* end confdefs.h. */
14652 $ac_includes_default
14657 /* Linux will dereference the symlink and fail, as required by
14658 POSIX. That is better in the sense that it means we will not
14659 have to compile and use the lstat wrapper. */
14660 return lstat ("conftest.sym/", &sbuf) == 0;
14666 if ac_fn_c_try_run
"$LINENO"; then :
14667 ac_cv_func_lstat_dereferences_slashed_symlink
=yes
14669 ac_cv_func_lstat_dereferences_slashed_symlink
=no
14671 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
14672 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
14676 # If the 'ln -s' command failed, then we probably don't even
14677 # have an lstat function.
14678 ac_cv_func_lstat_dereferences_slashed_symlink
=no
14680 rm -f conftest.sym conftest.
file
14683 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_lstat_dereferences_slashed_symlink" >&5
14684 $as_echo "$ac_cv_func_lstat_dereferences_slashed_symlink" >&6; }
14685 test $ac_cv_func_lstat_dereferences_slashed_symlink = yes &&
14687 cat >>confdefs.h
<<_ACEOF
14688 #define LSTAT_FOLLOWS_SLASHED_SYMLINK 1
14691 if test "x$ac_cv_func_lstat_dereferences_slashed_symlink" = xno
; then
14700 gl_LIBOBJS
="$gl_LIBOBJS lstat.$ac_objext"
14706 GNULIB_NANOSLEEP
=0;
14710 HAVE_DECL_LOCALTIME_R
=1;
14714 REPLACE_LOCALTIME_R
=GNULIB_PORTCHECK
;
14715 REPLACE_MKTIME
=GNULIB_PORTCHECK
;
14716 REPLACE_NANOSLEEP
=GNULIB_PORTCHECK
;
14717 REPLACE_TIMEGM
=GNULIB_PORTCHECK
;
14722 gl_cv_c_multiarch
=no
14723 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
14724 /* end confdefs.h. */
14725 #ifndef __APPLE_CC__
14726 not a universal capable compiler
14731 if ac_fn_c_try_compile
"$LINENO"; then :
14735 for word
in ${CC} ${CFLAGS} ${CPPFLAGS} ${LDFLAGS}; do
14736 if test -n "$prev"; then
14738 i?
86 | x86_64 | ppc | ppc64
)
14739 if test -z "$arch" ||
test "$arch" = "$word"; then
14742 gl_cv_c_multiarch
=yes
14748 if test "x$word" = "x-arch"; then
14755 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
14756 if test $gl_cv_c_multiarch = yes; then
14757 APPLE_UNIVERSAL_BUILD
=1
14759 APPLE_UNIVERSAL_BUILD
=0
14765 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for stdbool.h that conforms to C99" >&5
14766 $as_echo_n "checking for stdbool.h that conforms to C99... " >&6; }
14767 if test "${ac_cv_header_stdbool_h+set}" = set; then :
14768 $as_echo_n "(cached) " >&6
14770 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
14771 /* end confdefs.h. */
14773 #include <stdbool.h>
14775 "error: bool is not defined"
14778 "error: false is not defined"
14781 "error: false is not 0"
14784 "error: true is not defined"
14787 "error: true is not 1"
14789 #ifndef __bool_true_false_are_defined
14790 "error: __bool_true_false_are_defined is not defined"
14793 struct s { _Bool s: 1; _Bool t; } s;
14795 char a[true == 1 ? 1 : -1];
14796 char b[false == 0 ? 1 : -1];
14797 char c[__bool_true_false_are_defined == 1 ? 1 : -1];
14798 char d[(bool) 0.5 == true ? 1 : -1];
14799 /* See body of main program for 'e'. */
14800 char f[(_Bool) 0.0 == false ? 1 : -1];
14802 char h[sizeof (_Bool)];
14803 char i[sizeof s.t];
14804 enum { j = false, k = true, l = false * true, m = true * 256 };
14805 /* The following fails for
14806 HP aC++/ANSI C B3910B A.05.55 [Dec 04 2003]. */
14808 char o[sizeof n == m * sizeof n[0] ? 1 : -1];
14809 char p[-1 - (_Bool) 0 < 0 && -1 - (bool) 0 < 0 ? 1 : -1];
14810 /* Catch a bug in an HP-UX C compiler. See
14811 http://gcc.gnu.org/ml/gcc-patches/2003-12/msg02303.html
14812 http://lists.gnu.org/archive/html/bug-coreutils/2005-11/msg00161.html
14824 /* Refer to every declared value, to avoid compiler optimizations. */
14825 return (!a + !b + !c + !d + !e + !f + !g + !h + !i + !!j + !k + !!l
14826 + !m + !n + !o + !p + !q + !pq);
14832 if ac_fn_c_try_compile
"$LINENO"; then :
14833 ac_cv_header_stdbool_h
=yes
14835 ac_cv_header_stdbool_h
=no
14837 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
14839 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdbool_h" >&5
14840 $as_echo "$ac_cv_header_stdbool_h" >&6; }
14841 ac_fn_c_check_type
"$LINENO" "_Bool" "ac_cv_type__Bool" "$ac_includes_default"
14842 if test "x$ac_cv_type__Bool" = x
""yes; then :
14844 cat >>confdefs.h
<<_ACEOF
14845 #define HAVE__BOOL 1
14858 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for wchar_t" >&5
14859 $as_echo_n "checking for wchar_t... " >&6; }
14860 if test "${gt_cv_c_wchar_t+set}" = set; then :
14861 $as_echo_n "(cached) " >&6
14863 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
14864 /* end confdefs.h. */
14865 #include <stddef.h>
14866 wchar_t foo = (wchar_t)'\0';
14875 if ac_fn_c_try_compile
"$LINENO"; then :
14876 gt_cv_c_wchar_t
=yes
14880 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
14882 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_c_wchar_t" >&5
14883 $as_echo "$gt_cv_c_wchar_t" >&6; }
14884 if test $gt_cv_c_wchar_t = yes; then
14886 $as_echo "#define HAVE_WCHAR_T 1" >>confdefs.h
14891 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for unsigned long long int" >&5
14892 $as_echo_n "checking for unsigned long long int... " >&6; }
14893 if test "${ac_cv_type_unsigned_long_long_int+set}" = set; then :
14894 $as_echo_n "(cached) " >&6
14896 ac_cv_type_unsigned_long_long_int
=yes
14897 if test "x${ac_cv_prog_cc_c99-no}" = xno
; then
14898 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
14899 /* end confdefs.h. */
14901 /* For now, do not test the preprocessor; as of 2007 there are too many
14902 implementations with broken preprocessors. Perhaps this can
14903 be revisited in 2012. In the meantime, code should not expect
14904 #if to work with literals wider than 32 bits. */
14905 /* Test literals. */
14906 long long int ll = 9223372036854775807ll;
14907 long long int nll = -9223372036854775807LL;
14908 unsigned long long int ull = 18446744073709551615ULL;
14909 /* Test constant expressions. */
14910 typedef int a[((-9223372036854775807LL < 0 && 0 < 9223372036854775807ll)
14912 typedef int b[(18446744073709551615ULL <= (unsigned long long int) -1
14918 /* Test availability of runtime routines for shift and division. */
14919 long long int llmax = 9223372036854775807ll;
14920 unsigned long long int ullmax = 18446744073709551615ull;
14921 return ((ll << 63) | (ll >> 63) | (ll < i) | (ll > i)
14922 | (llmax / ll) | (llmax % ll)
14923 | (ull << 63) | (ull >> 63) | (ull << i) | (ull >> i)
14924 | (ullmax / ull) | (ullmax % ull));
14930 if ac_fn_c_try_link
"$LINENO"; then :
14933 ac_cv_type_unsigned_long_long_int
=no
14935 rm -f core conftest.err conftest.
$ac_objext \
14936 conftest
$ac_exeext conftest.
$ac_ext
14939 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_unsigned_long_long_int" >&5
14940 $as_echo "$ac_cv_type_unsigned_long_long_int" >&6; }
14941 if test $ac_cv_type_unsigned_long_long_int = yes; then
14943 $as_echo "#define HAVE_UNSIGNED_LONG_LONG_INT 1" >>confdefs.h
14949 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for long long int" >&5
14950 $as_echo_n "checking for long long int... " >&6; }
14951 if test "${ac_cv_type_long_long_int+set}" = set; then :
14952 $as_echo_n "(cached) " >&6
14954 ac_cv_type_long_long_int
=yes
14955 if test "x${ac_cv_prog_cc_c99-no}" = xno
; then
14956 ac_cv_type_long_long_int
=$ac_cv_type_unsigned_long_long_int
14957 if test $ac_cv_type_long_long_int = yes; then
14958 if test "$cross_compiling" = yes; then :
14961 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
14962 /* end confdefs.h. */
14963 #include <limits.h>
14966 (1LL << (sizeof (long long int) * CHAR_BIT - 2))
14967 # define LLONG_MAX (HALF - 1 + HALF)
14972 long long int n = 1;
14976 long long int m = n << i;
14979 if (LLONG_MAX / 2 < m)
14987 if ac_fn_c_try_run
"$LINENO"; then :
14990 ac_cv_type_long_long_int
=no
14992 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
14993 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
14999 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_long_long_int" >&5
15000 $as_echo "$ac_cv_type_long_long_int" >&6; }
15001 if test $ac_cv_type_long_long_int = yes; then
15003 $as_echo "#define HAVE_LONG_LONG_INT 1" >>confdefs.h
15012 ac_fn_c_check_member
"$LINENO" "struct tm" "tm_gmtoff" "ac_cv_member_struct_tm_tm_gmtoff" "#include <time.h>
15014 if test "x$ac_cv_member_struct_tm_tm_gmtoff" = x
""yes; then :
15016 $as_echo "#define HAVE_TM_GMTOFF 1" >>confdefs.h
15025 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stat file-mode macros are broken" >&5
15026 $as_echo_n "checking whether stat file-mode macros are broken... " >&6; }
15027 if test "${ac_cv_header_stat_broken+set}" = set; then :
15028 $as_echo_n "(cached) " >&6
15030 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
15031 /* end confdefs.h. */
15032 #include <sys/types.h>
15033 #include <sys/stat.h>
15035 #if defined S_ISBLK && defined S_IFDIR
15036 extern char c1[S_ISBLK (S_IFDIR) ? -1 : 1];
15039 #if defined S_ISBLK && defined S_IFCHR
15040 extern char c2[S_ISBLK (S_IFCHR) ? -1 : 1];
15043 #if defined S_ISLNK && defined S_IFREG
15044 extern char c3[S_ISLNK (S_IFREG) ? -1 : 1];
15047 #if defined S_ISSOCK && defined S_IFREG
15048 extern char c4[S_ISSOCK (S_IFREG) ? -1 : 1];
15052 if ac_fn_c_try_compile
"$LINENO"; then :
15053 ac_cv_header_stat_broken
=no
15055 ac_cv_header_stat_broken
=yes
15057 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
15059 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stat_broken" >&5
15060 $as_echo "$ac_cv_header_stat_broken" >&6; }
15061 if test $ac_cv_header_stat_broken = yes; then
15063 $as_echo "#define STAT_MACROS_BROKEN 1" >>confdefs.h
15069 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for C/C++ restrict keyword" >&5
15070 $as_echo_n "checking for C/C++ restrict keyword... " >&6; }
15071 if test "${ac_cv_c_restrict+set}" = set; then :
15072 $as_echo_n "(cached) " >&6
15074 ac_cv_c_restrict
=no
15075 # The order here caters to the fact that C++ does not require restrict.
15076 for ac_kw
in __restrict __restrict__ _Restrict restrict
; do
15077 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
15078 /* end confdefs.h. */
15079 typedef int * int_ptr;
15080 int foo (int_ptr $ac_kw ip) {
15087 int * $ac_kw t = s;
15094 if ac_fn_c_try_compile
"$LINENO"; then :
15095 ac_cv_c_restrict
=$ac_kw
15097 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
15098 test "$ac_cv_c_restrict" != no
&& break
15102 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_restrict" >&5
15103 $as_echo "$ac_cv_c_restrict" >&6; }
15105 case $ac_cv_c_restrict in
15107 no
) $as_echo "#define restrict /**/" >>confdefs.h
15109 *) cat >>confdefs.h
<<_ACEOF
15110 #define restrict $ac_cv_c_restrict
15119 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for struct timespec in <time.h>" >&5
15120 $as_echo_n "checking for struct timespec in <time.h>... " >&6; }
15121 if test "${gl_cv_sys_struct_timespec_in_time_h+set}" = set; then :
15122 $as_echo_n "(cached) " >&6
15124 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
15125 /* end confdefs.h. */
15131 static struct timespec x; x.tv_sec = x.tv_nsec;
15136 if ac_fn_c_try_compile
"$LINENO"; then :
15137 gl_cv_sys_struct_timespec_in_time_h
=yes
15139 gl_cv_sys_struct_timespec_in_time_h
=no
15141 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
15143 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_sys_struct_timespec_in_time_h" >&5
15144 $as_echo "$gl_cv_sys_struct_timespec_in_time_h" >&6; }
15146 TIME_H_DEFINES_STRUCT_TIMESPEC
=0
15147 SYS_TIME_H_DEFINES_STRUCT_TIMESPEC
=0
15148 PTHREAD_H_DEFINES_STRUCT_TIMESPEC
=0
15149 if test $gl_cv_sys_struct_timespec_in_time_h = yes; then
15150 TIME_H_DEFINES_STRUCT_TIMESPEC
=1
15152 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for struct timespec in <sys/time.h>" >&5
15153 $as_echo_n "checking for struct timespec in <sys/time.h>... " >&6; }
15154 if test "${gl_cv_sys_struct_timespec_in_sys_time_h+set}" = set; then :
15155 $as_echo_n "(cached) " >&6
15157 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
15158 /* end confdefs.h. */
15159 #include <sys/time.h>
15164 static struct timespec x; x.tv_sec = x.tv_nsec;
15169 if ac_fn_c_try_compile
"$LINENO"; then :
15170 gl_cv_sys_struct_timespec_in_sys_time_h
=yes
15172 gl_cv_sys_struct_timespec_in_sys_time_h
=no
15174 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
15176 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_sys_struct_timespec_in_sys_time_h" >&5
15177 $as_echo "$gl_cv_sys_struct_timespec_in_sys_time_h" >&6; }
15178 if test $gl_cv_sys_struct_timespec_in_sys_time_h = yes; then
15179 SYS_TIME_H_DEFINES_STRUCT_TIMESPEC
=1
15181 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for struct timespec in <pthread.h>" >&5
15182 $as_echo_n "checking for struct timespec in <pthread.h>... " >&6; }
15183 if test "${gl_cv_sys_struct_timespec_in_pthread_h+set}" = set; then :
15184 $as_echo_n "(cached) " >&6
15186 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
15187 /* end confdefs.h. */
15188 #include <pthread.h>
15193 static struct timespec x; x.tv_sec = x.tv_nsec;
15198 if ac_fn_c_try_compile
"$LINENO"; then :
15199 gl_cv_sys_struct_timespec_in_pthread_h
=yes
15201 gl_cv_sys_struct_timespec_in_pthread_h
=no
15203 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
15205 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_sys_struct_timespec_in_pthread_h" >&5
15206 $as_echo "$gl_cv_sys_struct_timespec_in_pthread_h" >&6; }
15207 if test $gl_cv_sys_struct_timespec_in_pthread_h = yes; then
15208 PTHREAD_H_DEFINES_STRUCT_TIMESPEC
=1
15227 if test $gl_cv_have_include_next = yes; then
15228 gl_cv_next_time_h
='<'time.h
'>'
15230 { $as_echo "$as_me:${as_lineno-$LINENO}: checking absolute name of <time.h>" >&5
15231 $as_echo_n "checking absolute name of <time.h>... " >&6; }
15232 if test "${gl_cv_next_time_h+set}" = set; then :
15233 $as_echo_n "(cached) " >&6
15236 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
15237 /* end confdefs.h. */
15242 aix
*) gl_absname_cpp
="$ac_cpp -C" ;;
15243 *) gl_absname_cpp
="$ac_cpp" ;;
15245 gl_cv_next_time_h
='"'`(eval "$gl_absname_cpp conftest.$ac_ext") 2>&5 |
15246 sed -n '\#/time.h#{
15247 s#.*"\(.*/time.h\)".*#\1#
15255 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_next_time_h" >&5
15256 $as_echo "$gl_cv_next_time_h" >&6; }
15258 NEXT_TIME_H
=$gl_cv_next_time_h
15260 if test $gl_cv_have_include_next = yes ||
test $gl_cv_have_include_next = buggy
; then
15261 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include_next'
15262 gl_next_as_first_directive
='<'time.h
'>'
15264 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include'
15265 gl_next_as_first_directive
=$gl_cv_next_time_h
15267 NEXT_AS_FIRST_DIRECTIVE_TIME_H
=$gl_next_as_first_directive
15274 ac_fn_c_check_decl
"$LINENO" "localtime_r" "ac_cv_have_decl_localtime_r" "$ac_includes_default"
15275 if test "x$ac_cv_have_decl_localtime_r" = x
""yes; then :
15281 cat >>confdefs.h
<<_ACEOF
15282 #define HAVE_DECL_LOCALTIME_R $ac_have_decl
15289 GL_COND_LIBTOOL_TRUE
=
15290 GL_COND_LIBTOOL_FALSE
='#'
15292 GL_COND_LIBTOOL_TRUE
='#'
15293 GL_COND_LIBTOOL_FALSE
=
15296 gl_cond_libtool
=false
15309 gl_source_base
='lib'
15310 # Code from module arg-nonnull:
15311 # Code from module c++defs:
15312 # Code from module crypto/md5:
15322 gl_LIBOBJS
="$gl_LIBOBJS md5.$ac_objext"
15329 # Code from module dosname:
15330 # Code from module dtoastr:
15332 # Code from module extensions:
15333 # Code from module filemode:
15344 gl_LIBOBJS
="$gl_LIBOBJS filemode.$ac_objext"
15348 # Code from module getloadavg:
15351 # Persuade glibc <stdlib.h> to declare getloadavg().
15354 # Make sure getloadavg.c is where it belongs, at configure-time.
15355 test -f "$srcdir/$gl_source_base/getloadavg.c" ||
15356 as_fn_error $?
"$srcdir/$gl_source_base/getloadavg.c is missing" "$LINENO" 5
15360 # getloadvg is present in libc on glibc >= 2.2, MacOS X, FreeBSD >= 2.0,
15361 # NetBSD >= 0.9, OpenBSD >= 2.0, Solaris >= 7.
15362 ac_fn_c_check_func
"$LINENO" "getloadavg" "ac_cv_func_getloadavg"
15363 if test "x$ac_cv_func_getloadavg" = x
""yes; then :
15368 # Some systems with -lutil have (and need) -lkvm as well, some do not.
15369 # On Solaris, -lkvm requires nlist from -lelf, so check that first
15370 # to get the right answer into the cache.
15371 # For kstat on solaris, we need to test for libelf and libkvm to force the
15372 # definition of SVR4 below.
15373 if test $gl_have_func = no
; then
15374 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for elf_begin in -lelf" >&5
15375 $as_echo_n "checking for elf_begin in -lelf... " >&6; }
15376 if test "${ac_cv_lib_elf_elf_begin+set}" = set; then :
15377 $as_echo_n "(cached) " >&6
15379 ac_check_lib_save_LIBS
=$LIBS
15381 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
15382 /* end confdefs.h. */
15384 /* Override any GCC internal prototype to avoid an error.
15385 Use char because int might match the return type of a GCC
15386 builtin and then its argument prototype would still apply. */
15394 return elf_begin ();
15399 if ac_fn_c_try_link
"$LINENO"; then :
15400 ac_cv_lib_elf_elf_begin
=yes
15402 ac_cv_lib_elf_elf_begin
=no
15404 rm -f core conftest.err conftest.
$ac_objext \
15405 conftest
$ac_exeext conftest.
$ac_ext
15406 LIBS
=$ac_check_lib_save_LIBS
15408 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_elf_elf_begin" >&5
15409 $as_echo "$ac_cv_lib_elf_elf_begin" >&6; }
15410 if test "x$ac_cv_lib_elf_elf_begin" = x
""yes; then :
15414 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for kvm_open in -lkvm" >&5
15415 $as_echo_n "checking for kvm_open in -lkvm... " >&6; }
15416 if test "${ac_cv_lib_kvm_kvm_open+set}" = set; then :
15417 $as_echo_n "(cached) " >&6
15419 ac_check_lib_save_LIBS
=$LIBS
15421 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
15422 /* end confdefs.h. */
15424 /* Override any GCC internal prototype to avoid an error.
15425 Use char because int might match the return type of a GCC
15426 builtin and then its argument prototype would still apply. */
15434 return kvm_open ();
15439 if ac_fn_c_try_link
"$LINENO"; then :
15440 ac_cv_lib_kvm_kvm_open
=yes
15442 ac_cv_lib_kvm_kvm_open
=no
15444 rm -f core conftest.err conftest.
$ac_objext \
15445 conftest
$ac_exeext conftest.
$ac_ext
15446 LIBS
=$ac_check_lib_save_LIBS
15448 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_kvm_kvm_open" >&5
15449 $as_echo "$ac_cv_lib_kvm_kvm_open" >&6; }
15450 if test "x$ac_cv_lib_kvm_kvm_open" = x
""yes; then :
15454 # Check for the 4.4BSD definition of getloadavg.
15455 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for getloadavg in -lutil" >&5
15456 $as_echo_n "checking for getloadavg in -lutil... " >&6; }
15457 if test "${ac_cv_lib_util_getloadavg+set}" = set; then :
15458 $as_echo_n "(cached) " >&6
15460 ac_check_lib_save_LIBS
=$LIBS
15461 LIBS
="-lutil $LIBS"
15462 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
15463 /* end confdefs.h. */
15465 /* Override any GCC internal prototype to avoid an error.
15466 Use char because int might match the return type of a GCC
15467 builtin and then its argument prototype would still apply. */
15471 char getloadavg ();
15475 return getloadavg ();
15480 if ac_fn_c_try_link
"$LINENO"; then :
15481 ac_cv_lib_util_getloadavg
=yes
15483 ac_cv_lib_util_getloadavg
=no
15485 rm -f core conftest.err conftest.
$ac_objext \
15486 conftest
$ac_exeext conftest.
$ac_ext
15487 LIBS
=$ac_check_lib_save_LIBS
15489 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_util_getloadavg" >&5
15490 $as_echo "$ac_cv_lib_util_getloadavg" >&6; }
15491 if test "x$ac_cv_lib_util_getloadavg" = x
""yes; then :
15492 LIBS
="-lutil $LIBS" gl_have_func
=yes
15497 if test $gl_have_func = no
; then
15498 # There is a commonly available library for RS/6000 AIX.
15499 # Since it is not a standard part of AIX, it might be installed locally.
15500 gl_getloadavg_LIBS
=$LIBS
15501 LIBS
="-L/usr/local/lib $LIBS"
15502 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for getloadavg in -lgetloadavg" >&5
15503 $as_echo_n "checking for getloadavg in -lgetloadavg... " >&6; }
15504 if test "${ac_cv_lib_getloadavg_getloadavg+set}" = set; then :
15505 $as_echo_n "(cached) " >&6
15507 ac_check_lib_save_LIBS
=$LIBS
15508 LIBS
="-lgetloadavg $LIBS"
15509 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
15510 /* end confdefs.h. */
15512 /* Override any GCC internal prototype to avoid an error.
15513 Use char because int might match the return type of a GCC
15514 builtin and then its argument prototype would still apply. */
15518 char getloadavg ();
15522 return getloadavg ();
15527 if ac_fn_c_try_link
"$LINENO"; then :
15528 ac_cv_lib_getloadavg_getloadavg
=yes
15530 ac_cv_lib_getloadavg_getloadavg
=no
15532 rm -f core conftest.err conftest.
$ac_objext \
15533 conftest
$ac_exeext conftest.
$ac_ext
15534 LIBS
=$ac_check_lib_save_LIBS
15536 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_getloadavg_getloadavg" >&5
15537 $as_echo "$ac_cv_lib_getloadavg_getloadavg" >&6; }
15538 if test "x$ac_cv_lib_getloadavg_getloadavg" = x
""yes; then :
15539 LIBS
="-lgetloadavg $LIBS" gl_have_func
=yes
15541 LIBS
=$gl_getloadavg_LIBS
15546 # Set up the replacement function if necessary.
15547 if test $gl_have_func = no
; then
15556 gl_LIBOBJS
="$gl_LIBOBJS getloadavg.$ac_objext"
15559 # Figure out what our getloadavg.c needs.
15561 # Solaris has libkstat which does not require root.
15562 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for kstat_open in -lkstat" >&5
15563 $as_echo_n "checking for kstat_open in -lkstat... " >&6; }
15564 if test "${ac_cv_lib_kstat_kstat_open+set}" = set; then :
15565 $as_echo_n "(cached) " >&6
15567 ac_check_lib_save_LIBS
=$LIBS
15568 LIBS
="-lkstat $LIBS"
15569 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
15570 /* end confdefs.h. */
15572 /* Override any GCC internal prototype to avoid an error.
15573 Use char because int might match the return type of a GCC
15574 builtin and then its argument prototype would still apply. */
15578 char kstat_open ();
15582 return kstat_open ();
15587 if ac_fn_c_try_link
"$LINENO"; then :
15588 ac_cv_lib_kstat_kstat_open
=yes
15590 ac_cv_lib_kstat_kstat_open
=no
15592 rm -f core conftest.err conftest.
$ac_objext \
15593 conftest
$ac_exeext conftest.
$ac_ext
15594 LIBS
=$ac_check_lib_save_LIBS
15596 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_kstat_kstat_open" >&5
15597 $as_echo "$ac_cv_lib_kstat_kstat_open" >&6; }
15598 if test "x$ac_cv_lib_kstat_kstat_open" = x
""yes; then :
15599 cat >>confdefs.h
<<_ACEOF
15600 #define HAVE_LIBKSTAT 1
15603 LIBS
="-lkstat $LIBS"
15607 test $ac_cv_lib_kstat_kstat_open = yes && gl_have_func
=yes
15609 # On HPUX9, an unprivileged user can get load averages this way.
15610 if test $gl_have_func = no
; then
15611 for ac_func
in pstat_getdynamic
15613 ac_fn_c_check_func
"$LINENO" "pstat_getdynamic" "ac_cv_func_pstat_getdynamic"
15614 if test "x$ac_cv_func_pstat_getdynamic" = x
""yes; then :
15615 cat >>confdefs.h
<<_ACEOF
15616 #define HAVE_PSTAT_GETDYNAMIC 1
15624 # AIX has libperfstat which does not require root
15625 if test $gl_have_func = no
; then
15626 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for perfstat_cpu_total in -lperfstat" >&5
15627 $as_echo_n "checking for perfstat_cpu_total in -lperfstat... " >&6; }
15628 if test "${ac_cv_lib_perfstat_perfstat_cpu_total+set}" = set; then :
15629 $as_echo_n "(cached) " >&6
15631 ac_check_lib_save_LIBS
=$LIBS
15632 LIBS
="-lperfstat $LIBS"
15633 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
15634 /* end confdefs.h. */
15636 /* Override any GCC internal prototype to avoid an error.
15637 Use char because int might match the return type of a GCC
15638 builtin and then its argument prototype would still apply. */
15642 char perfstat_cpu_total ();
15646 return perfstat_cpu_total ();
15651 if ac_fn_c_try_link
"$LINENO"; then :
15652 ac_cv_lib_perfstat_perfstat_cpu_total
=yes
15654 ac_cv_lib_perfstat_perfstat_cpu_total
=no
15656 rm -f core conftest.err conftest.
$ac_objext \
15657 conftest
$ac_exeext conftest.
$ac_ext
15658 LIBS
=$ac_check_lib_save_LIBS
15660 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_perfstat_perfstat_cpu_total" >&5
15661 $as_echo "$ac_cv_lib_perfstat_perfstat_cpu_total" >&6; }
15662 if test "x$ac_cv_lib_perfstat_perfstat_cpu_total" = x
""yes; then :
15663 cat >>confdefs.h
<<_ACEOF
15664 #define HAVE_LIBPERFSTAT 1
15667 LIBS
="-lperfstat $LIBS"
15671 test $ac_cv_lib_perfstat_perfstat_cpu_total = yes && gl_have_func
=yes
15674 if test $gl_have_func = no
; then
15675 ac_fn_c_check_header_mongrel
"$LINENO" "sys/dg_sys_info.h" "ac_cv_header_sys_dg_sys_info_h" "$ac_includes_default"
15676 if test "x$ac_cv_header_sys_dg_sys_info_h" = x
""yes; then :
15679 $as_echo "#define DGUX 1" >>confdefs.h
15681 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dg_sys_info in -ldgc" >&5
15682 $as_echo_n "checking for dg_sys_info in -ldgc... " >&6; }
15683 if test "${ac_cv_lib_dgc_dg_sys_info+set}" = set; then :
15684 $as_echo_n "(cached) " >&6
15686 ac_check_lib_save_LIBS
=$LIBS
15688 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
15689 /* end confdefs.h. */
15691 /* Override any GCC internal prototype to avoid an error.
15692 Use char because int might match the return type of a GCC
15693 builtin and then its argument prototype would still apply. */
15697 char dg_sys_info ();
15701 return dg_sys_info ();
15706 if ac_fn_c_try_link
"$LINENO"; then :
15707 ac_cv_lib_dgc_dg_sys_info
=yes
15709 ac_cv_lib_dgc_dg_sys_info
=no
15711 rm -f core conftest.err conftest.
$ac_objext \
15712 conftest
$ac_exeext conftest.
$ac_ext
15713 LIBS
=$ac_check_lib_save_LIBS
15715 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dgc_dg_sys_info" >&5
15716 $as_echo "$ac_cv_lib_dgc_dg_sys_info" >&6; }
15717 if test "x$ac_cv_lib_dgc_dg_sys_info" = x
""yes; then :
15718 cat >>confdefs.h
<<_ACEOF
15719 #define HAVE_LIBDGC 1
15731 # We cannot check for <dwarf.h>, because Solaris 2 does not use dwarf (it
15732 # uses stabs), but it is still SVR4. We cannot check for <elf.h> because
15733 # Irix 4.0.5F has the header but not the library.
15734 if test $gl_have_func = no
&& test "$ac_cv_lib_elf_elf_begin" = yes \
15735 && test "$ac_cv_lib_kvm_kvm_open" = yes; then
15738 $as_echo "#define SVR4 1" >>confdefs.h
15742 if test $gl_have_func = no
; then
15743 ac_fn_c_check_header_mongrel
"$LINENO" "inq_stats/cpustats.h" "ac_cv_header_inq_stats_cpustats_h" "$ac_includes_default"
15744 if test "x$ac_cv_header_inq_stats_cpustats_h" = x
""yes; then :
15747 $as_echo "#define UMAX 1" >>confdefs.h
15750 $as_echo "#define UMAX4_3 1" >>confdefs.h
15757 if test $gl_have_func = no
; then
15758 ac_fn_c_check_header_mongrel
"$LINENO" "sys/cpustats.h" "ac_cv_header_sys_cpustats_h" "$ac_includes_default"
15759 if test "x$ac_cv_header_sys_cpustats_h" = x
""yes; then :
15760 gl_have_func
=yes; $as_echo "#define UMAX 1" >>confdefs.h
15767 if test $gl_have_func = no
; then
15768 for ac_header
in mach
/mach.h
15770 ac_fn_c_check_header_mongrel
"$LINENO" "mach/mach.h" "ac_cv_header_mach_mach_h" "$ac_includes_default"
15771 if test "x$ac_cv_header_mach_mach_h" = x
""yes; then :
15772 cat >>confdefs.h
<<_ACEOF
15773 #define HAVE_MACH_MACH_H 1
15782 for ac_header
in nlist.h
15784 ac_fn_c_check_header_mongrel
"$LINENO" "nlist.h" "ac_cv_header_nlist_h" "$ac_includes_default"
15785 if test "x$ac_cv_header_nlist_h" = x
""yes; then :
15786 cat >>confdefs.h
<<_ACEOF
15787 #define HAVE_NLIST_H 1
15789 ac_fn_c_check_member
"$LINENO" "struct nlist" "n_un.n_name" "ac_cv_member_struct_nlist_n_un_n_name" "#include <nlist.h>
15791 if test "x$ac_cv_member_struct_nlist_n_un_n_name" = x
""yes; then :
15793 cat >>confdefs.h
<<_ACEOF
15794 #define HAVE_STRUCT_NLIST_N_UN_N_NAME 1
15800 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
15801 /* end confdefs.h. */
15807 #ifdef HAVE_STRUCT_NLIST_N_UN_N_NAME
15808 x.n_un.n_name = "";
15816 if ac_fn_c_try_link
"$LINENO"; then :
15818 $as_echo "#define N_NAME_POINTER 1" >>confdefs.h
15821 rm -f core conftest.err conftest.
$ac_objext \
15822 conftest
$ac_exeext conftest.
$ac_ext
15832 if test "x$gl_save_LIBS" = x
; then
15833 GETLOADAVG_LIBS
=$LIBS
15835 GETLOADAVG_LIBS
=`echo "$LIBS" | sed "s!$gl_save_LIBS!!"`
15840 # Test whether the system declares getloadavg. Solaris has the function
15841 # but declares it in <sys/loadavg.h>, not <stdlib.h>.
15842 for ac_header
in sys
/loadavg.h
15844 ac_fn_c_check_header_mongrel
"$LINENO" "sys/loadavg.h" "ac_cv_header_sys_loadavg_h" "$ac_includes_default"
15845 if test "x$ac_cv_header_sys_loadavg_h" = x
""yes; then :
15846 cat >>confdefs.h
<<_ACEOF
15847 #define HAVE_SYS_LOADAVG_H 1
15854 if test $ac_cv_header_sys_loadavg_h = yes; then
15855 HAVE_SYS_LOADAVG_H
=1
15857 HAVE_SYS_LOADAVG_H
=0
15859 ac_fn_c_check_decl
"$LINENO" "getloadavg" "ac_cv_have_decl_getloadavg" "#if HAVE_SYS_LOADAVG_H
15860 # include <sys/loadavg.h>
15862 #include <stdlib.h>
15864 if test "x$ac_cv_have_decl_getloadavg" = x
""yes; then :
15867 HAVE_DECL_GETLOADAVG
=0
15874 GNULIB_GETLOADAVG
=1
15878 # Code from module getopt-gnu:
15885 # Code from module getopt-posix:
15891 if test -n "$gl_replace_getopt"; then :
15897 $as_echo "#define __GETOPT_PREFIX rpl_" >>confdefs.h
15901 GNULIB_UNISTD_H_GETOPT
=1
15910 gl_LIBOBJS
="$gl_LIBOBJS getopt.$ac_objext"
15920 gl_LIBOBJS
="$gl_LIBOBJS getopt1.$ac_objext"
15930 # Code from module gettext-h:
15933 # Code from module ignore-value:
15935 # Code from module include_next:
15936 # Code from module intprops:
15937 # Code from module lstat:
15941 if test $ac_cv_func_lstat = yes; then
15943 if test $ac_cv_func_lstat_dereferences_slashed_symlink = no
; then
15946 # Prerequisites of lib/lstat.c.
15959 # Code from module mktime:
15965 if test $APPLE_UNIVERSAL_BUILD = 1; then
15966 # A universal build on Apple MacOS X platforms.
15967 # The test result would be 'yes' in 32-bit mode and 'no' in 64-bit mode.
15968 # But we need a configuration result that is valid in both modes.
15969 ac_cv_func_working_mktime
=no
15971 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working mktime" >&5
15972 $as_echo_n "checking for working mktime... " >&6; }
15973 if test "${ac_cv_func_working_mktime+set}" = set; then :
15974 $as_echo_n "(cached) " >&6
15976 if test "$cross_compiling" = yes; then :
15977 ac_cv_func_working_mktime
=no
15979 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
15980 /* end confdefs.h. */
15981 /* Test program from Paul Eggert and Tony Leneis. */
15982 #include <limits.h>
15983 #include <stdlib.h>
15986 #ifdef HAVE_UNISTD_H
15987 # include <unistd.h>
15991 # define alarm(X) /* empty */
15994 /* Work around redefinition to rpl_putenv by other config tests. */
15997 static time_t time_t_max;
15998 static time_t time_t_min;
16000 /* Values we'll use to set the TZ environment variable. */
16001 static char *tz_strings[] = {
16002 (char *) 0, "TZ=GMT0", "TZ=JST-9",
16003 "TZ=EST+3EDT+2,M10.1.0/00:00:00,M2.3.0/00:00:00"
16005 #define N_STRINGS (sizeof (tz_strings) / sizeof (tz_strings[0]))
16007 /* Return 0 if mktime fails to convert a date in the spring-forward gap.
16008 Based on a problem report from Andreas Jaeger. */
16010 spring_forward_gap ()
16012 /* glibc (up to about 1998-10-07) failed this test. */
16015 /* Use the portable POSIX.1 specification "TZ=PST8PDT,M4.1.0,M10.5.0"
16016 instead of "TZ=America/Vancouver" in order to detect the bug even
16017 on systems that don't support the Olson extension, or don't have the
16018 full zoneinfo tables installed. */
16019 putenv ("TZ=PST8PDT,M4.1.0,M10.5.0");
16028 return mktime (&tm) != (time_t) -1;
16032 mktime_test1 (time_t now)
16035 return ! (lt = localtime (&now)) || mktime (lt) == now;
16039 mktime_test (time_t now)
16041 return (mktime_test1 (now)
16042 && mktime_test1 ((time_t) (time_t_max - now))
16043 && mktime_test1 ((time_t) (time_t_min + now)));
16049 /* Based on code from Ariel Faigon. */
16059 return tm.tm_mon == 2 && tm.tm_mday == 31;
16063 bigtime_test (int j)
16067 tm.tm_year = tm.tm_mon = tm.tm_mday = tm.tm_hour = tm.tm_min = tm.tm_sec = j;
16068 now = mktime (&tm);
16069 if (now != (time_t) -1)
16071 struct tm *lt = localtime (&now);
16073 && lt->tm_year == tm.tm_year
16074 && lt->tm_mon == tm.tm_mon
16075 && lt->tm_mday == tm.tm_mday
16076 && lt->tm_hour == tm.tm_hour
16077 && lt->tm_min == tm.tm_min
16078 && lt->tm_sec == tm.tm_sec
16079 && lt->tm_yday == tm.tm_yday
16080 && lt->tm_wday == tm.tm_wday
16081 && ((lt->tm_isdst < 0 ? -1 : 0 < lt->tm_isdst)
16082 == (tm.tm_isdst < 0 ? -1 : 0 < tm.tm_isdst))))
16091 /* The correct answer for 2050-02-01 00:00:00 in Pacific time,
16092 ignoring leap seconds. */
16093 unsigned long int answer = 2527315200UL;
16097 tm.tm_year = 2050 - 1900;
16100 tm.tm_hour = tm.tm_min = tm.tm_sec = 0;
16103 /* Use the portable POSIX.1 specification "TZ=PST8PDT,M4.1.0,M10.5.0"
16104 instead of "TZ=America/Vancouver" in order to detect the bug even
16105 on systems that don't support the Olson extension, or don't have the
16106 full zoneinfo tables installed. */
16107 putenv ("TZ=PST8PDT,M4.1.0,M10.5.0");
16111 /* Check that the result is either a failure, or close enough
16112 to the correct answer that we can assume the discrepancy is
16113 due to leap seconds. */
16114 return (t == (time_t) -1
16115 || (0 < t && answer - 120 <= t && t <= answer + 120));
16124 int time_t_signed_magnitude = (time_t) ~ (time_t) 0 < (time_t) -1;
16125 int time_t_signed = ! ((time_t) 0 < (time_t) -1);
16127 /* This test makes some buggy mktime implementations loop.
16128 Give up after 60 seconds; a mktime slower than that
16129 isn't worth using anyway. */
16132 time_t_max = (! time_t_signed
16134 : ((((time_t) 1 << (sizeof (time_t) * CHAR_BIT - 2)) - 1)
16136 time_t_min = (! time_t_signed
16138 : time_t_signed_magnitude
16142 delta = time_t_max / 997; /* a suitable prime number */
16143 for (i = 0; i < N_STRINGS; i++)
16146 putenv (tz_strings[i]);
16148 for (t = 0; t <= time_t_max - delta; t += delta)
16149 if (! mktime_test (t))
16151 if (! (mktime_test ((time_t) 1)
16152 && mktime_test ((time_t) (60 * 60))
16153 && mktime_test ((time_t) (60 * 60 * 24))))
16156 for (j = 1; ; j <<= 1)
16157 if (! bigtime_test (j))
16159 else if (INT_MAX / 2 < j)
16161 if (! bigtime_test (INT_MAX))
16164 if (! irix_6_4_bug ())
16166 if (! spring_forward_gap ())
16168 if (! year_2050_test ())
16173 if ac_fn_c_try_run
"$LINENO"; then :
16174 ac_cv_func_working_mktime
=yes
16176 ac_cv_func_working_mktime
=no
16178 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
16179 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
16183 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_working_mktime" >&5
16184 $as_echo "$ac_cv_func_working_mktime" >&6; }
16185 if test $ac_cv_func_working_mktime = no
; then
16194 gl_LIBOBJS
="$gl_LIBOBJS mktime.$ac_objext"
16198 if test $ac_cv_func_working_mktime = no
; then
16214 # Code from module multiarch:
16216 # Code from module readlink:
16220 if test $ac_cv_func_readlink = no
; then
16230 gl_LIBOBJS
="$gl_LIBOBJS readlink.$ac_objext"
16236 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether readlink signature is correct" >&5
16237 $as_echo_n "checking whether readlink signature is correct... " >&6; }
16238 if test "${gl_cv_decl_readlink_works+set}" = set; then :
16239 $as_echo_n "(cached) " >&6
16241 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
16242 /* end confdefs.h. */
16243 #include <unistd.h>
16244 /* Cause compilation failure if original declaration has wrong type. */
16245 ssize_t readlink (const char *, char *, size_t);
16254 if ac_fn_c_try_compile
"$LINENO"; then :
16255 gl_cv_decl_readlink_works
=yes
16257 gl_cv_decl_readlink_works
=no
16259 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
16261 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_decl_readlink_works" >&5
16262 $as_echo "$gl_cv_decl_readlink_works" >&6; }
16263 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether readlink handles trailing slash correctly" >&5
16264 $as_echo_n "checking whether readlink handles trailing slash correctly... " >&6; }
16265 if test "${gl_cv_func_readlink_works+set}" = set; then :
16266 $as_echo_n "(cached) " >&6
16268 # We have readlink, so assume ln -s works.
16269 ln -s conftest.no-such conftest.link
16270 ln -s conftest.link conftest.lnk2
16271 if test "$cross_compiling" = yes; then :
16272 gl_cv_func_readlink_works
="guessing no"
16274 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
16275 /* end confdefs.h. */
16276 #include <unistd.h>
16282 return readlink ("conftest.lnk2/", buf, sizeof buf) != -1;
16287 if ac_fn_c_try_run
"$LINENO"; then :
16288 gl_cv_func_readlink_works
=yes
16290 gl_cv_func_readlink_works
=no
16292 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
16293 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
16296 rm -f conftest.link conftest.lnk2
16298 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_readlink_works" >&5
16299 $as_echo "$gl_cv_func_readlink_works" >&6; }
16300 if test "$gl_cv_func_readlink_works" != yes; then
16302 $as_echo "#define READLINK_TRAILING_SLASH_BUG 1" >>confdefs.h
16313 gl_LIBOBJS
="$gl_LIBOBJS readlink.$ac_objext"
16315 elif test "$gl_cv_decl_readlink_works" != yes; then
16325 gl_LIBOBJS
="$gl_LIBOBJS readlink.$ac_objext"
16337 # Code from module stat:
16341 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stat handles trailing slashes on directories" >&5
16342 $as_echo_n "checking whether stat handles trailing slashes on directories... " >&6; }
16343 if test "${gl_cv_func_stat_dir_slash+set}" = set; then :
16344 $as_echo_n "(cached) " >&6
16346 if test "$cross_compiling" = yes; then :
16348 mingw
*) gl_cv_func_stat_dir_slash
="guessing no";;
16349 *) gl_cv_func_stat_dir_slash
="guessing yes";;
16352 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
16353 /* end confdefs.h. */
16354 #include <sys/stat.h>
16359 struct stat st; return stat (".", &st) != stat ("./", &st);
16364 if ac_fn_c_try_run
"$LINENO"; then :
16365 gl_cv_func_stat_dir_slash
=yes
16367 gl_cv_func_stat_dir_slash
=no
16369 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
16370 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
16374 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_stat_dir_slash" >&5
16375 $as_echo "$gl_cv_func_stat_dir_slash" >&6; }
16376 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stat handles trailing slashes on files" >&5
16377 $as_echo_n "checking whether stat handles trailing slashes on files... " >&6; }
16378 if test "${gl_cv_func_stat_file_slash+set}" = set; then :
16379 $as_echo_n "(cached) " >&6
16382 # Assume that if we have lstat, we can also check symlinks.
16383 if test $ac_cv_func_lstat = yes; then
16384 ln -s conftest.tmp conftest.lnk
16386 if test "$cross_compiling" = yes; then :
16387 gl_cv_func_stat_file_slash
="guessing no"
16389 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
16390 /* end confdefs.h. */
16391 #include <sys/stat.h>
16398 if (!stat ("conftest.tmp/", &st))
16401 if (!stat ("conftest.lnk/", &st))
16410 if ac_fn_c_try_run
"$LINENO"; then :
16411 gl_cv_func_stat_file_slash
=yes
16413 gl_cv_func_stat_file_slash
=no
16415 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
16416 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
16419 rm -f conftest.tmp conftest.lnk
16421 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_stat_file_slash" >&5
16422 $as_echo "$gl_cv_func_stat_file_slash" >&6; }
16423 case $gl_cv_func_stat_dir_slash in
16424 *no
) REPLACE_STAT
=1
16426 $as_echo "#define REPLACE_FUNC_STAT_DIR 1" >>confdefs.h
16429 case $gl_cv_func_stat_file_slash in
16430 *no
) REPLACE_STAT
=1
16432 $as_echo "#define REPLACE_FUNC_STAT_FILE 1" >>confdefs.h
16435 if test $REPLACE_STAT = 1; then
16444 gl_LIBOBJS
="$gl_LIBOBJS stat.$ac_objext"
16456 # Code from module stdbool:
16460 # Define two additional variables used in the Makefile substitution.
16462 if test "$ac_cv_header_stdbool_h" = yes; then
16465 STDBOOL_H
='stdbool.h'
16469 if test "$ac_cv_type__Bool" = yes; then
16476 # Code from module stddef:
16480 if test $gt_cv_c_wchar_t = no
; then
16484 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether NULL can be used in arbitrary expressions" >&5
16485 $as_echo_n "checking whether NULL can be used in arbitrary expressions... " >&6; }
16486 if test "${gl_cv_decl_null_works+set}" = set; then :
16487 $as_echo_n "(cached) " >&6
16489 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
16490 /* end confdefs.h. */
16491 #include <stddef.h>
16492 int test[2 * (sizeof NULL == sizeof (void *)) -1];
16502 if ac_fn_c_try_compile
"$LINENO"; then :
16503 gl_cv_decl_null_works
=yes
16505 gl_cv_decl_null_works
=no
16507 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
16509 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_decl_null_works" >&5
16510 $as_echo "$gl_cv_decl_null_works" >&6; }
16511 if test $gl_cv_decl_null_works = no
; then
16515 if test -n "$STDDEF_H"; then
16524 if test $gl_cv_have_include_next = yes; then
16525 gl_cv_next_stddef_h
='<'stddef.h
'>'
16527 { $as_echo "$as_me:${as_lineno-$LINENO}: checking absolute name of <stddef.h>" >&5
16528 $as_echo_n "checking absolute name of <stddef.h>... " >&6; }
16529 if test "${gl_cv_next_stddef_h+set}" = set; then :
16530 $as_echo_n "(cached) " >&6
16533 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
16534 /* end confdefs.h. */
16535 #include <stddef.h>
16539 aix
*) gl_absname_cpp
="$ac_cpp -C" ;;
16540 *) gl_absname_cpp
="$ac_cpp" ;;
16542 gl_cv_next_stddef_h
='"'`(eval "$gl_absname_cpp conftest.$ac_ext") 2>&5 |
16543 sed -n '\#/stddef.h#{
16544 s#.*"\(.*/stddef.h\)".*#\1#
16552 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_next_stddef_h" >&5
16553 $as_echo "$gl_cv_next_stddef_h" >&6; }
16555 NEXT_STDDEF_H
=$gl_cv_next_stddef_h
16557 if test $gl_cv_have_include_next = yes ||
test $gl_cv_have_include_next = buggy
; then
16558 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include_next'
16559 gl_next_as_first_directive
='<'stddef.h
'>'
16561 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include'
16562 gl_next_as_first_directive
=$gl_cv_next_stddef_h
16564 NEXT_AS_FIRST_DIRECTIVE_STDDEF_H
=$gl_next_as_first_directive
16571 # Code from module stdint:
16575 if test $ac_cv_type_long_long_int = yes; then
16576 HAVE_LONG_LONG_INT
=1
16578 HAVE_LONG_LONG_INT
=0
16582 if test $ac_cv_type_unsigned_long_long_int = yes; then
16583 HAVE_UNSIGNED_LONG_LONG_INT
=1
16585 HAVE_UNSIGNED_LONG_LONG_INT
=0
16590 if test $ac_cv_header_wchar_h = yes; then
16597 if test $ac_cv_header_inttypes_h = yes; then
16604 if test $ac_cv_header_sys_types_h = yes; then
16620 if test $gl_cv_have_include_next = yes; then
16621 gl_cv_next_stdint_h
='<'stdint.h
'>'
16623 { $as_echo "$as_me:${as_lineno-$LINENO}: checking absolute name of <stdint.h>" >&5
16624 $as_echo_n "checking absolute name of <stdint.h>... " >&6; }
16625 if test "${gl_cv_next_stdint_h+set}" = set; then :
16626 $as_echo_n "(cached) " >&6
16629 if test $ac_cv_header_stdint_h = yes; then
16632 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
16633 /* end confdefs.h. */
16634 #include <stdint.h>
16638 aix
*) gl_absname_cpp
="$ac_cpp -C" ;;
16639 *) gl_absname_cpp
="$ac_cpp" ;;
16641 gl_cv_next_stdint_h
='"'`(eval "$gl_absname_cpp conftest.$ac_ext") 2>&5 |
16642 sed -n '\#/stdint.h#{
16643 s#.*"\(.*/stdint.h\)".*#\1#
16649 gl_cv_next_stdint_h
='<'stdint.h
'>'
16654 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_next_stdint_h" >&5
16655 $as_echo "$gl_cv_next_stdint_h" >&6; }
16657 NEXT_STDINT_H
=$gl_cv_next_stdint_h
16659 if test $gl_cv_have_include_next = yes ||
test $gl_cv_have_include_next = buggy
; then
16660 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include_next'
16661 gl_next_as_first_directive
='<'stdint.h
'>'
16663 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include'
16664 gl_next_as_first_directive
=$gl_cv_next_stdint_h
16666 NEXT_AS_FIRST_DIRECTIVE_STDINT_H
=$gl_next_as_first_directive
16671 if test $ac_cv_header_stdint_h = yes; then
16678 if test $ac_cv_header_stdint_h = yes; then
16679 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stdint.h conforms to C99" >&5
16680 $as_echo_n "checking whether stdint.h conforms to C99... " >&6; }
16681 if test "${gl_cv_header_working_stdint_h+set}" = set; then :
16682 $as_echo_n "(cached) " >&6
16684 gl_cv_header_working_stdint_h
=no
16685 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
16686 /* end confdefs.h. */
16689 #define __STDC_LIMIT_MACROS 1 /* to make it work also in C++ mode */
16690 #define __STDC_CONSTANT_MACROS 1 /* to make it work also in C++ mode */
16691 #define _GL_JUST_INCLUDE_SYSTEM_STDINT_H 1 /* work if build isn't clean */
16692 #include <stdint.h>
16693 /* Dragonfly defines WCHAR_MIN, WCHAR_MAX only in <wchar.h>. */
16694 #if !(defined WCHAR_MIN && defined WCHAR_MAX)
16695 #error "WCHAR_MIN, WCHAR_MAX not defined in <stdint.h>"
16699 /* BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be
16700 included before <wchar.h>. */
16701 #include <stddef.h>
16702 #include <signal.h>
16704 # include <stdio.h>
16706 # include <wchar.h>
16711 int8_t a1 = INT8_MAX;
16712 int8_t a1min = INT8_MIN;
16715 int16_t a2 = INT16_MAX;
16716 int16_t a2min = INT16_MIN;
16719 int32_t a3 = INT32_MAX;
16720 int32_t a3min = INT32_MIN;
16723 int64_t a4 = INT64_MAX;
16724 int64_t a4min = INT64_MIN;
16727 uint8_t b1 = UINT8_MAX;
16729 typedef int b1[(unsigned char) -1 != 255 ? 1 : -1];
16732 uint16_t b2 = UINT16_MAX;
16735 uint32_t b3 = UINT32_MAX;
16738 uint64_t b4 = UINT64_MAX;
16740 int_least8_t c1 = INT8_C (0x7f);
16741 int_least8_t c1max = INT_LEAST8_MAX;
16742 int_least8_t c1min = INT_LEAST8_MIN;
16743 int_least16_t c2 = INT16_C (0x7fff);
16744 int_least16_t c2max = INT_LEAST16_MAX;
16745 int_least16_t c2min = INT_LEAST16_MIN;
16746 int_least32_t c3 = INT32_C (0x7fffffff);
16747 int_least32_t c3max = INT_LEAST32_MAX;
16748 int_least32_t c3min = INT_LEAST32_MIN;
16749 int_least64_t c4 = INT64_C (0x7fffffffffffffff);
16750 int_least64_t c4max = INT_LEAST64_MAX;
16751 int_least64_t c4min = INT_LEAST64_MIN;
16752 uint_least8_t d1 = UINT8_C (0xff);
16753 uint_least8_t d1max = UINT_LEAST8_MAX;
16754 uint_least16_t d2 = UINT16_C (0xffff);
16755 uint_least16_t d2max = UINT_LEAST16_MAX;
16756 uint_least32_t d3 = UINT32_C (0xffffffff);
16757 uint_least32_t d3max = UINT_LEAST32_MAX;
16758 uint_least64_t d4 = UINT64_C (0xffffffffffffffff);
16759 uint_least64_t d4max = UINT_LEAST64_MAX;
16760 int_fast8_t e1 = INT_FAST8_MAX;
16761 int_fast8_t e1min = INT_FAST8_MIN;
16762 int_fast16_t e2 = INT_FAST16_MAX;
16763 int_fast16_t e2min = INT_FAST16_MIN;
16764 int_fast32_t e3 = INT_FAST32_MAX;
16765 int_fast32_t e3min = INT_FAST32_MIN;
16766 int_fast64_t e4 = INT_FAST64_MAX;
16767 int_fast64_t e4min = INT_FAST64_MIN;
16768 uint_fast8_t f1 = UINT_FAST8_MAX;
16769 uint_fast16_t f2 = UINT_FAST16_MAX;
16770 uint_fast32_t f3 = UINT_FAST32_MAX;
16771 uint_fast64_t f4 = UINT_FAST64_MAX;
16773 intptr_t g = INTPTR_MAX;
16774 intptr_t gmin = INTPTR_MIN;
16777 uintptr_t h = UINTPTR_MAX;
16779 intmax_t i = INTMAX_MAX;
16780 uintmax_t j = UINTMAX_MAX;
16782 #include <limits.h> /* for CHAR_BIT */
16783 #define TYPE_MINIMUM(t) \
16784 ((t) ((t) 0 < (t) -1 ? (t) 0 : ~ TYPE_MAXIMUM (t)))
16785 #define TYPE_MAXIMUM(t) \
16786 ((t) ((t) 0 < (t) -1 \
16788 : ((((t) 1 << (sizeof (t) * CHAR_BIT - 2)) - 1) * 2 + 1)))
16791 PTRDIFF_MIN == TYPE_MINIMUM (ptrdiff_t)
16792 && PTRDIFF_MAX == TYPE_MAXIMUM (ptrdiff_t)
16794 /* Detect bug in FreeBSD 6.0 / ia64. */
16795 int check_SIG_ATOMIC:
16796 SIG_ATOMIC_MIN == TYPE_MINIMUM (sig_atomic_t)
16797 && SIG_ATOMIC_MAX == TYPE_MAXIMUM (sig_atomic_t)
16799 int check_SIZE: SIZE_MAX == TYPE_MAXIMUM (size_t) ? 1 : -1;
16801 WCHAR_MIN == TYPE_MINIMUM (wchar_t)
16802 && WCHAR_MAX == TYPE_MAXIMUM (wchar_t)
16804 /* Detect bug in mingw. */
16806 WINT_MIN == TYPE_MINIMUM (wint_t)
16807 && WINT_MAX == TYPE_MAXIMUM (wint_t)
16810 /* Detect bugs in glibc 2.4 and Solaris 10 stdint.h, among others. */
16812 (-1 < UINT8_C (0)) == (-1 < (uint_least8_t) 0) ? 1 : -1;
16813 int check_UINT16_C:
16814 (-1 < UINT16_C (0)) == (-1 < (uint_least16_t) 0) ? 1 : -1;
16816 /* Detect bugs in OpenBSD 3.9 stdint.h. */
16818 int check_uint8: (uint8_t) -1 == UINT8_MAX ? 1 : -1;
16821 int check_uint16: (uint16_t) -1 == UINT16_MAX ? 1 : -1;
16824 int check_uint32: (uint32_t) -1 == UINT32_MAX ? 1 : -1;
16827 int check_uint64: (uint64_t) -1 == UINT64_MAX ? 1 : -1;
16829 int check_uint_least8: (uint_least8_t) -1 == UINT_LEAST8_MAX ? 1 : -1;
16830 int check_uint_least16: (uint_least16_t) -1 == UINT_LEAST16_MAX ? 1 : -1;
16831 int check_uint_least32: (uint_least32_t) -1 == UINT_LEAST32_MAX ? 1 : -1;
16832 int check_uint_least64: (uint_least64_t) -1 == UINT_LEAST64_MAX ? 1 : -1;
16833 int check_uint_fast8: (uint_fast8_t) -1 == UINT_FAST8_MAX ? 1 : -1;
16834 int check_uint_fast16: (uint_fast16_t) -1 == UINT_FAST16_MAX ? 1 : -1;
16835 int check_uint_fast32: (uint_fast32_t) -1 == UINT_FAST32_MAX ? 1 : -1;
16836 int check_uint_fast64: (uint_fast64_t) -1 == UINT_FAST64_MAX ? 1 : -1;
16837 int check_uintptr: (uintptr_t) -1 == UINTPTR_MAX ? 1 : -1;
16838 int check_uintmax: (uintmax_t) -1 == UINTMAX_MAX ? 1 : -1;
16839 int check_size: (size_t) -1 == SIZE_MAX ? 1 : -1;
16850 if ac_fn_c_try_compile
"$LINENO"; then :
16851 if test "$cross_compiling" = yes; then :
16852 gl_cv_header_working_stdint_h
=yes
16855 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
16856 /* end confdefs.h. */
16859 #define __STDC_LIMIT_MACROS 1 /* to make it work also in C++ mode */
16860 #define __STDC_CONSTANT_MACROS 1 /* to make it work also in C++ mode */
16861 #define _GL_JUST_INCLUDE_SYSTEM_STDINT_H 1 /* work if build isn't clean */
16862 #include <stdint.h>
16865 /* BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be
16866 included before <wchar.h>. */
16867 #include <stddef.h>
16868 #include <signal.h>
16870 # include <stdio.h>
16872 # include <wchar.h>
16877 #include <string.h>
16878 #define MVAL(macro) MVAL1(macro)
16879 #define MVAL1(expression) #expression
16880 static const char *macro_values[] =
16914 for (mv = macro_values; *mv != NULL; mv++)
16916 const char *value = *mv;
16917 /* Test whether it looks like a cast expression. */
16918 if (strncmp (value, "((unsigned int)"/*)*/, 15) == 0
16919 || strncmp (value, "((unsigned short)"/*)*/, 17) == 0
16920 || strncmp (value, "((unsigned char)"/*)*/, 16) == 0
16921 || strncmp (value, "((int)"/*)*/, 6) == 0
16922 || strncmp (value, "((signed short)"/*)*/, 15) == 0
16923 || strncmp (value, "((signed char)"/*)*/, 14) == 0)
16924 return mv - macro_values + 1;
16932 if ac_fn_c_try_run
"$LINENO"; then :
16933 gl_cv_header_working_stdint_h
=yes
16935 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
16936 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
16941 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
16944 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_header_working_stdint_h" >&5
16945 $as_echo "$gl_cv_header_working_stdint_h" >&6; }
16947 if test "$gl_cv_header_working_stdint_h" = yes; then
16950 for ac_header
in sys
/inttypes.h sys
/bitypes.h
16952 as_ac_Header
=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
16953 ac_fn_c_check_header_mongrel
"$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
16954 if eval test \"x\$
"$as_ac_Header"\" = x
"yes"; then :
16955 cat >>confdefs.h
<<_ACEOF
16956 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
16963 if test $ac_cv_header_sys_inttypes_h = yes; then
16964 HAVE_SYS_INTTYPES_H
=1
16966 HAVE_SYS_INTTYPES_H
=0
16969 if test $ac_cv_header_sys_bitypes_h = yes; then
16970 HAVE_SYS_BITYPES_H
=1
16972 HAVE_SYS_BITYPES_H
=0
16978 if test $APPLE_UNIVERSAL_BUILD = 0; then
16981 for gltype
in ptrdiff_t size_t
; do
16982 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for bit size of $gltype" >&5
16983 $as_echo_n "checking for bit size of $gltype... " >&6; }
16984 if eval "test \"\${gl_cv_bitsizeof_${gltype}+set}\"" = set; then :
16985 $as_echo_n "(cached) " >&6
16987 if ac_fn_c_compute_int
"$LINENO" "sizeof ($gltype) * CHAR_BIT" "result" "
16988 /* BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be
16989 included before <wchar.h>. */
16990 #include <stddef.h>
16991 #include <signal.h>
16993 # include <stdio.h>
16995 # include <wchar.h>
16998 #include <limits.h>"; then :
17004 eval gl_cv_bitsizeof_
${gltype}=\
$result
17007 eval ac_res
=\
$gl_cv_bitsizeof_${gltype}
17008 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
17009 $as_echo "$ac_res" >&6; }
17010 eval result
=\
$gl_cv_bitsizeof_${gltype}
17011 if test $result = unknown
; then
17014 GLTYPE
=`echo "$gltype" | tr 'abcdefghijklmnopqrstuvwxyz ' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ_'`
17015 cat >>confdefs.h
<<_ACEOF
17016 #define BITSIZEOF_${GLTYPE} $result
17019 eval BITSIZEOF_
${GLTYPE}=\
$result
17026 for gltype
in sig_atomic_t wchar_t wint_t
; do
17027 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for bit size of $gltype" >&5
17028 $as_echo_n "checking for bit size of $gltype... " >&6; }
17029 if eval "test \"\${gl_cv_bitsizeof_${gltype}+set}\"" = set; then :
17030 $as_echo_n "(cached) " >&6
17032 if ac_fn_c_compute_int
"$LINENO" "sizeof ($gltype) * CHAR_BIT" "result" "
17033 /* BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be
17034 included before <wchar.h>. */
17035 #include <stddef.h>
17036 #include <signal.h>
17038 # include <stdio.h>
17040 # include <wchar.h>
17043 #include <limits.h>"; then :
17049 eval gl_cv_bitsizeof_
${gltype}=\
$result
17052 eval ac_res
=\
$gl_cv_bitsizeof_${gltype}
17053 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
17054 $as_echo "$ac_res" >&6; }
17055 eval result
=\
$gl_cv_bitsizeof_${gltype}
17056 if test $result = unknown
; then
17059 GLTYPE
=`echo "$gltype" | tr 'abcdefghijklmnopqrstuvwxyz ' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ_'`
17060 cat >>confdefs.h
<<_ACEOF
17061 #define BITSIZEOF_${GLTYPE} $result
17064 eval BITSIZEOF_
${GLTYPE}=\
$result
17070 for gltype
in sig_atomic_t wchar_t wint_t
; do
17071 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $gltype is signed" >&5
17072 $as_echo_n "checking whether $gltype is signed... " >&6; }
17073 if eval "test \"\${gl_cv_type_${gltype}_signed+set}\"" = set; then :
17074 $as_echo_n "(cached) " >&6
17076 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
17077 /* end confdefs.h. */
17079 /* BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be
17080 included before <wchar.h>. */
17081 #include <stddef.h>
17082 #include <signal.h>
17084 # include <stdio.h>
17086 # include <wchar.h>
17089 int verify[2 * (($gltype) -1 < ($gltype) 0) - 1];
17098 if ac_fn_c_try_compile
"$LINENO"; then :
17103 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
17104 eval gl_cv_type_
${gltype}_signed
=\
$result
17107 eval ac_res
=\
$gl_cv_type_${gltype}_signed
17108 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
17109 $as_echo "$ac_res" >&6; }
17110 eval result
=\
$gl_cv_type_${gltype}_signed
17111 GLTYPE
=`echo $gltype | tr 'abcdefghijklmnopqrstuvwxyz ' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ_'`
17112 if test "$result" = yes; then
17113 cat >>confdefs.h
<<_ACEOF
17114 #define HAVE_SIGNED_${GLTYPE} 1
17117 eval HAVE_SIGNED_
${GLTYPE}=1
17119 eval HAVE_SIGNED_
${GLTYPE}=0
17124 gl_cv_type_ptrdiff_t_signed
=yes
17125 gl_cv_type_size_t_signed
=no
17126 if test $APPLE_UNIVERSAL_BUILD = 0; then
17129 for gltype
in ptrdiff_t size_t
; do
17130 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $gltype integer literal suffix" >&5
17131 $as_echo_n "checking for $gltype integer literal suffix... " >&6; }
17132 if eval "test \"\${gl_cv_type_${gltype}_suffix+set}\"" = set; then :
17133 $as_echo_n "(cached) " >&6
17135 eval gl_cv_type_
${gltype}_suffix
=no
17136 eval result
=\
$gl_cv_type_${gltype}_signed
17137 if test "$result" = yes; then
17142 for glsuf
in "$glsufu" ${glsufu}l ${glsufu}ll ${glsufu}i64
; do
17144 '') gltype1
='int';;
17145 l
) gltype1
='long int';;
17146 ll
) gltype1
='long long int';;
17147 i64
) gltype1
='__int64';;
17148 u
) gltype1
='unsigned int';;
17149 ul
) gltype1
='unsigned long int';;
17150 ull
) gltype1
='unsigned long long int';;
17151 ui64
)gltype1
='unsigned __int64';;
17153 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
17154 /* end confdefs.h. */
17156 /* BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be
17157 included before <wchar.h>. */
17158 #include <stddef.h>
17159 #include <signal.h>
17161 # include <stdio.h>
17163 # include <wchar.h>
17166 extern $gltype foo;
17167 extern $gltype1 foo;
17176 if ac_fn_c_try_compile
"$LINENO"; then :
17177 eval gl_cv_type_
${gltype}_suffix
=\
$glsuf
17179 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
17180 eval result
=\
$gl_cv_type_${gltype}_suffix
17181 test "$result" != no
&& break
17184 eval ac_res
=\
$gl_cv_type_${gltype}_suffix
17185 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
17186 $as_echo "$ac_res" >&6; }
17187 GLTYPE
=`echo $gltype | tr 'abcdefghijklmnopqrstuvwxyz ' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ_'`
17188 eval result
=\
$gl_cv_type_${gltype}_suffix
17189 test "$result" = no
&& result
=
17190 eval ${GLTYPE}_SUFFIX
=\
$result
17191 cat >>confdefs.h
<<_ACEOF
17192 #define ${GLTYPE}_SUFFIX $result
17201 for gltype
in sig_atomic_t wchar_t wint_t
; do
17202 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $gltype integer literal suffix" >&5
17203 $as_echo_n "checking for $gltype integer literal suffix... " >&6; }
17204 if eval "test \"\${gl_cv_type_${gltype}_suffix+set}\"" = set; then :
17205 $as_echo_n "(cached) " >&6
17207 eval gl_cv_type_
${gltype}_suffix
=no
17208 eval result
=\
$gl_cv_type_${gltype}_signed
17209 if test "$result" = yes; then
17214 for glsuf
in "$glsufu" ${glsufu}l ${glsufu}ll ${glsufu}i64
; do
17216 '') gltype1
='int';;
17217 l
) gltype1
='long int';;
17218 ll
) gltype1
='long long int';;
17219 i64
) gltype1
='__int64';;
17220 u
) gltype1
='unsigned int';;
17221 ul
) gltype1
='unsigned long int';;
17222 ull
) gltype1
='unsigned long long int';;
17223 ui64
)gltype1
='unsigned __int64';;
17225 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
17226 /* end confdefs.h. */
17228 /* BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be
17229 included before <wchar.h>. */
17230 #include <stddef.h>
17231 #include <signal.h>
17233 # include <stdio.h>
17235 # include <wchar.h>
17238 extern $gltype foo;
17239 extern $gltype1 foo;
17248 if ac_fn_c_try_compile
"$LINENO"; then :
17249 eval gl_cv_type_
${gltype}_suffix
=\
$glsuf
17251 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
17252 eval result
=\
$gl_cv_type_${gltype}_suffix
17253 test "$result" != no
&& break
17256 eval ac_res
=\
$gl_cv_type_${gltype}_suffix
17257 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
17258 $as_echo "$ac_res" >&6; }
17259 GLTYPE
=`echo $gltype | tr 'abcdefghijklmnopqrstuvwxyz ' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ_'`
17260 eval result
=\
$gl_cv_type_${gltype}_suffix
17261 test "$result" = no
&& result
=
17262 eval ${GLTYPE}_SUFFIX
=\
$result
17263 cat >>confdefs.h
<<_ACEOF
17264 #define ${GLTYPE}_SUFFIX $result
17275 # Code from module stdlib:
17286 if test $gl_cv_have_include_next = yes; then
17287 gl_cv_next_stdlib_h
='<'stdlib.h
'>'
17289 { $as_echo "$as_me:${as_lineno-$LINENO}: checking absolute name of <stdlib.h>" >&5
17290 $as_echo_n "checking absolute name of <stdlib.h>... " >&6; }
17291 if test "${gl_cv_next_stdlib_h+set}" = set; then :
17292 $as_echo_n "(cached) " >&6
17295 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
17296 /* end confdefs.h. */
17297 #include <stdlib.h>
17301 aix
*) gl_absname_cpp
="$ac_cpp -C" ;;
17302 *) gl_absname_cpp
="$ac_cpp" ;;
17304 gl_cv_next_stdlib_h
='"'`(eval "$gl_absname_cpp conftest.$ac_ext") 2>&5 |
17305 sed -n '\#/stdlib.h#{
17306 s#.*"\(.*/stdlib.h\)".*#\1#
17314 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_next_stdlib_h" >&5
17315 $as_echo "$gl_cv_next_stdlib_h" >&6; }
17317 NEXT_STDLIB_H
=$gl_cv_next_stdlib_h
17319 if test $gl_cv_have_include_next = yes ||
test $gl_cv_have_include_next = buggy
; then
17320 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include_next'
17321 gl_next_as_first_directive
='<'stdlib.h
'>'
17323 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include'
17324 gl_next_as_first_directive
=$gl_cv_next_stdlib_h
17326 NEXT_AS_FIRST_DIRECTIVE_STDLIB_H
=$gl_next_as_first_directive
17334 # Code from module strftime:
17345 gl_LIBOBJS
="$gl_LIBOBJS strftime.$ac_objext"
17348 # This defines (or not) HAVE_TZNAME and HAVE_TM_ZONE.
17356 $as_echo "#define my_strftime nstrftime" >>confdefs.h
17360 # Code from module symlink:
17364 if test $ac_cv_func_symlink = no
; then
17374 gl_LIBOBJS
="$gl_LIBOBJS symlink.$ac_objext"
17377 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether symlink handles trailing slash correctly" >&5
17378 $as_echo_n "checking whether symlink handles trailing slash correctly... " >&6; }
17379 if test "${gl_cv_func_symlink_works+set}" = set; then :
17380 $as_echo_n "(cached) " >&6
17382 if test "$cross_compiling" = yes; then :
17383 gl_cv_func_symlink_works
="guessing no"
17385 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
17386 /* end confdefs.h. */
17387 #include <unistd.h>
17393 if (!symlink ("a", "conftest.link/"))
17395 if (symlink ("conftest.f", "conftest.lnk2"))
17397 else if (!symlink ("a", "conftest.lnk2/"))
17405 if ac_fn_c_try_run
"$LINENO"; then :
17406 gl_cv_func_symlink_works
=yes
17408 gl_cv_func_symlink_works
=no
17410 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
17411 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
17414 rm -f conftest.f conftest.link conftest.lnk2
17416 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_symlink_works" >&5
17417 $as_echo "$gl_cv_func_symlink_works" >&6; }
17418 if test "$gl_cv_func_symlink_works" != yes; then
17428 gl_LIBOBJS
="$gl_LIBOBJS symlink.$ac_objext"
17440 # Code from module sys_stat:
17457 if test $gl_cv_have_include_next = yes; then
17458 gl_cv_next_sys_stat_h
='<'sys
/stat.h
'>'
17460 { $as_echo "$as_me:${as_lineno-$LINENO}: checking absolute name of <sys/stat.h>" >&5
17461 $as_echo_n "checking absolute name of <sys/stat.h>... " >&6; }
17462 if test "${gl_cv_next_sys_stat_h+set}" = set; then :
17463 $as_echo_n "(cached) " >&6
17466 if test $ac_cv_header_sys_stat_h = yes; then
17469 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
17470 /* end confdefs.h. */
17471 #include <sys/stat.h>
17475 aix
*) gl_absname_cpp
="$ac_cpp -C" ;;
17476 *) gl_absname_cpp
="$ac_cpp" ;;
17478 gl_cv_next_sys_stat_h
='"'`(eval "$gl_absname_cpp conftest.$ac_ext") 2>&5 |
17479 sed -n '\#/sys/stat.h#{
17480 s#.*"\(.*/sys/stat.h\)".*#\1#
17486 gl_cv_next_sys_stat_h
='<'sys
/stat.h
'>'
17491 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_next_sys_stat_h" >&5
17492 $as_echo "$gl_cv_next_sys_stat_h" >&6; }
17494 NEXT_SYS_STAT_H
=$gl_cv_next_sys_stat_h
17496 if test $gl_cv_have_include_next = yes ||
test $gl_cv_have_include_next = buggy
; then
17497 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include_next'
17498 gl_next_as_first_directive
='<'sys
/stat.h
'>'
17500 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include'
17501 gl_next_as_first_directive
=$gl_cv_next_sys_stat_h
17503 NEXT_AS_FIRST_DIRECTIVE_SYS_STAT_H
=$gl_next_as_first_directive
17509 ac_fn_c_check_type
"$LINENO" "nlink_t" "ac_cv_type_nlink_t" "#include <sys/types.h>
17510 #include <sys/stat.h>
17512 if test "x$ac_cv_type_nlink_t" = x
""yes; then :
17516 $as_echo "#define nlink_t int" >>confdefs.h
17524 # Code from module time:
17528 # Code from module time_r:
17536 if test $ac_cv_have_decl_localtime_r = no
; then
17537 HAVE_DECL_LOCALTIME_R
=0
17541 if test $ac_cv_func_localtime_r = yes; then
17543 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether localtime_r is compatible with its POSIX signature" >&5
17544 $as_echo_n "checking whether localtime_r is compatible with its POSIX signature... " >&6; }
17545 if test "${gl_cv_time_r_posix+set}" = set; then :
17546 $as_echo_n "(cached) " >&6
17548 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
17549 /* end confdefs.h. */
17554 /* We don't need to append 'restrict's to the argument types,
17555 even though the POSIX signature has the 'restrict's,
17556 since C99 says they can't affect type compatibility. */
17557 struct tm * (*ptr) (time_t const *, struct tm *) = localtime_r;
17559 /* Check the return type is a pointer.
17560 On HP-UX 10 it is 'int'. */
17561 *localtime_r (0, 0);
17567 if ac_fn_c_try_compile
"$LINENO"; then :
17568 gl_cv_time_r_posix
=yes
17570 gl_cv_time_r_posix
=no
17572 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
17575 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_time_r_posix" >&5
17576 $as_echo "$gl_cv_time_r_posix" >&6; }
17577 if test $gl_cv_time_r_posix = yes; then
17578 REPLACE_LOCALTIME_R
=0
17580 REPLACE_LOCALTIME_R
=1
17585 if test $HAVE_LOCALTIME_R = 0 ||
test $REPLACE_LOCALTIME_R = 1; then
17594 gl_LIBOBJS
="$gl_LIBOBJS time_r.$ac_objext"
17608 # Code from module unistd:
17622 if test $gl_cv_have_include_next = yes; then
17623 gl_cv_next_unistd_h
='<'unistd.h
'>'
17625 { $as_echo "$as_me:${as_lineno-$LINENO}: checking absolute name of <unistd.h>" >&5
17626 $as_echo_n "checking absolute name of <unistd.h>... " >&6; }
17627 if test "${gl_cv_next_unistd_h+set}" = set; then :
17628 $as_echo_n "(cached) " >&6
17631 if test $ac_cv_header_unistd_h = yes; then
17634 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
17635 /* end confdefs.h. */
17636 #include <unistd.h>
17640 aix
*) gl_absname_cpp
="$ac_cpp -C" ;;
17641 *) gl_absname_cpp
="$ac_cpp" ;;
17643 gl_cv_next_unistd_h
='"'`(eval "$gl_absname_cpp conftest.$ac_ext") 2>&5 |
17644 sed -n '\#/unistd.h#{
17645 s#.*"\(.*/unistd.h\)".*#\1#
17651 gl_cv_next_unistd_h
='<'unistd.h
'>'
17656 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_next_unistd_h" >&5
17657 $as_echo "$gl_cv_next_unistd_h" >&6; }
17659 NEXT_UNISTD_H
=$gl_cv_next_unistd_h
17661 if test $gl_cv_have_include_next = yes ||
test $gl_cv_have_include_next = buggy
; then
17662 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include_next'
17663 gl_next_as_first_directive
='<'unistd.h
'>'
17665 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include'
17666 gl_next_as_first_directive
=$gl_cv_next_unistd_h
17668 NEXT_AS_FIRST_DIRECTIVE_UNISTD_H
=$gl_next_as_first_directive
17673 if test $ac_cv_header_unistd_h = yes; then
17682 # Code from module warn-on-use:
17683 # End of code from modules
17704 gl_source_base
='tests'
17705 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
17707 gl_module_indicator_condition
=$gltests_WITNESS
17717 LIBGNU_LIBDEPS
="$gl_libdeps"
17719 LIBGNU_LTLIBDEPS
="$gl_ltlibdeps"
17724 for ac_func
in grantpt
17726 ac_fn_c_check_func
"$LINENO" "grantpt" "ac_cv_func_grantpt"
17727 if test "x$ac_cv_func_grantpt" = x
""yes; then :
17728 cat >>confdefs.h
<<_ACEOF
17729 #define HAVE_GRANTPT 1
17736 # PTY-related GNU extensions.
17737 for ac_func
in getpt
17739 ac_fn_c_check_func
"$LINENO" "getpt" "ac_cv_func_getpt"
17740 if test "x$ac_cv_func_getpt" = x
""yes; then :
17741 cat >>confdefs.h
<<_ACEOF
17742 #define HAVE_GETPT 1
17749 # Check this now, so that we will NOT find the above functions in ncurses.
17750 # That is because we have not set up to link ncurses in lib-src.
17751 # It's better to believe a function is not available
17752 # than to expect to find it in ncurses.
17753 # Also we need tputs and friends to be able to build at all.
17754 have_tputs_et_al
=true
17755 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing tputs" >&5
17756 $as_echo_n "checking for library containing tputs... " >&6; }
17757 if test "${ac_cv_search_tputs+set}" = set; then :
17758 $as_echo_n "(cached) " >&6
17760 ac_func_search_save_LIBS
=$LIBS
17761 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
17762 /* end confdefs.h. */
17764 /* Override any GCC internal prototype to avoid an error.
17765 Use char because int might match the return type of a GCC
17766 builtin and then its argument prototype would still apply. */
17779 for ac_lib
in '' ncurses terminfo termcap
; do
17780 if test -z "$ac_lib"; then
17781 ac_res
="none required"
17784 LIBS
="-l$ac_lib $ac_func_search_save_LIBS"
17786 if ac_fn_c_try_link
"$LINENO"; then :
17787 ac_cv_search_tputs
=$ac_res
17789 rm -f core conftest.err conftest.
$ac_objext \
17791 if test "${ac_cv_search_tputs+set}" = set; then :
17795 if test "${ac_cv_search_tputs+set}" = set; then :
17798 ac_cv_search_tputs
=no
17800 rm conftest.
$ac_ext
17801 LIBS
=$ac_func_search_save_LIBS
17803 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_tputs" >&5
17804 $as_echo "$ac_cv_search_tputs" >&6; }
17805 ac_res
=$ac_cv_search_tputs
17806 if test "$ac_res" != no
; then :
17807 test "$ac_res" = "none required" || LIBS
="$ac_res $LIBS"
17810 have_tputs_et_al
=false
17813 if test "$have_tputs_et_al" != true
; then
17814 as_fn_error $?
"I couldn't find termcap functions (tputs and friends).
17815 Maybe some development libraries/packages are missing? Try installing
17816 libncurses-dev(el), libterminfo-dev(el) or similar." "$LINENO" 5
17818 # Must define this when any termcap library is found.
17820 $as_echo "#define HAVE_LIBNCURSES 1" >>confdefs.h
17822 ## FIXME This was the cpp logic, but I am not sure it is right.
17823 ## The above test has not necessarily found libncurses.
17824 HAVE_LIBNCURSES
=yes
17826 ## Use terminfo instead of termcap?
17827 ## Note only system files NOT using terminfo are:
17828 ## freebsd < 40000, ms-w32, msdos, netbsd < 599002500, and
17829 ## darwin|gnu without ncurses.
17833 ## cygwin: Fewer environment variables to go wrong, more terminal types.
17834 ## hpux10-20: Use the system provided termcap(3) library.
17835 ## openbsd: David Mazieres <dm@reeducation-labor.lcs.mit.edu> says this
17836 ## is necessary. Otherwise Emacs dumps core when run -nw.
17837 aix4-2|cygwin|hpux
*|irix6-5|openbsd|sol2
*|unixware
) TERMINFO
=yes ;;
17839 ## darwin: Prevents crashes when running Emacs in Terminal.app under 10.2.
17840 ## The ncurses library has been moved out of the System framework in
17841 ## Mac OS X 10.2. So if configure detects it, set the command-line
17842 ## option to use it.
17844 ## (HAVE_LIBNCURSES was not always true, but is since 2010-03-18.)
17845 if test "x$HAVE_LIBNCURSES" = "xyes"; then
17847 LIBS_TERMCAP
="-lncurses"
17852 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether FreeBSD is new enough to use terminfo" >&5
17853 $as_echo_n "checking whether FreeBSD is new enough to use terminfo... " >&6; }
17854 if test "${emacs_cv_freebsd_terminfo+set}" = set; then :
17855 $as_echo_n "(cached) " >&6
17857 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
17858 /* end confdefs.h. */
17859 #include <osreldate.h>
17863 #if __FreeBSD_version < 400000
17871 if ac_fn_c_try_link
"$LINENO"; then :
17872 emacs_cv_freebsd_terminfo
=yes
17874 emacs_cv_freebsd_terminfo
=no
17876 rm -f core conftest.err conftest.
$ac_objext \
17877 conftest
$ac_exeext conftest.
$ac_ext
17881 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $emacs_cv_freebsd_terminfo" >&5
17882 $as_echo "$emacs_cv_freebsd_terminfo" >&6; }
17884 if test $emacs_cv_freebsd_terminfo = yes; then
17886 LIBS_TERMCAP
="-lncurses"
17888 LIBS_TERMCAP
="-ltermcap"
17893 if test $ac_cv_search_tputs = -lterminfo; then
17895 LIBS_TERMCAP
="-lterminfo"
17897 LIBS_TERMCAP
="-ltermcap"
17904 ## hpux: Make sure we get select from libc rather than from libcurses
17905 ## because libcurses on HPUX 10.10 has a broken version of select.
17906 ## We used to use -lc -lcurses, but this may be cleaner.
17907 hpux
*) LIBS_TERMCAP
="-ltermcap" ;;
17909 openbsd
) LIBS_TERMCAP
="-lncurses" ;;
17911 ## Must use system termcap, if we use any termcap. It does special things.
17912 sol2
*) test "$TERMINFO" != yes && LIBS_TERMCAP
="-ltermcap" ;;
17915 TERMCAP_OBJ
=tparam.o
17916 if test $TERMINFO = yes; then
17918 $as_echo "#define TERMINFO 1" >>confdefs.h
17921 ## Default used to be -ltermcap. Add a case above if need something else.
17922 test "x$LIBS_TERMCAP" = "x" && LIBS_TERMCAP
="-lcurses"
17924 TERMCAP_OBJ
=terminfo.o
17930 # Do we have res_init, for detecting changes in /etc/resolv.conf?
17932 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
17933 /* end confdefs.h. */
17934 #include <netinet/in.h>
17935 #include <arpa/nameser.h>
17936 #include <resolv.h>
17945 if ac_fn_c_try_link
"$LINENO"; then :
17950 rm -f core conftest.err conftest.
$ac_objext \
17951 conftest
$ac_exeext conftest.
$ac_ext
17952 if test "$have_res_init" = no
; then
17954 LIBS
="$LIBS -lresolv"
17955 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for res_init with -lresolv" >&5
17956 $as_echo_n "checking for res_init with -lresolv... " >&6; }
17957 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
17958 /* end confdefs.h. */
17959 #include <netinet/in.h>
17960 #include <arpa/nameser.h>
17961 #include <resolv.h>
17970 if ac_fn_c_try_link
"$LINENO"; then :
17975 rm -f core conftest.err conftest.
$ac_objext \
17976 conftest
$ac_exeext conftest.
$ac_ext
17977 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_res_init" >&5
17978 $as_echo "$have_res_init" >&6; }
17979 if test "$have_res_init" = yes ; then
17985 if test "$have_res_init" = yes; then
17987 $as_echo "#define HAVE_RES_INIT 1" >>confdefs.h
17991 # Do we need the Hesiod library to provide the support routines?
17993 if test "$with_hesiod" != no
; then
17994 # Don't set $LIBS here -- see comments above. FIXME which comments?
17995 ac_fn_c_check_func
"$LINENO" "res_send" "ac_cv_func_res_send"
17996 if test "x$ac_cv_func_res_send" = x
""yes; then :
17999 ac_fn_c_check_func
"$LINENO" "__res_send" "ac_cv_func___res_send"
18000 if test "x$ac_cv_func___res_send" = x
""yes; then :
18003 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for res_send in -lresolv" >&5
18004 $as_echo_n "checking for res_send in -lresolv... " >&6; }
18005 if test "${ac_cv_lib_resolv_res_send+set}" = set; then :
18006 $as_echo_n "(cached) " >&6
18008 ac_check_lib_save_LIBS
=$LIBS
18009 LIBS
="-lresolv $LIBS"
18010 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
18011 /* end confdefs.h. */
18013 /* Override any GCC internal prototype to avoid an error.
18014 Use char because int might match the return type of a GCC
18015 builtin and then its argument prototype would still apply. */
18023 return res_send ();
18028 if ac_fn_c_try_link
"$LINENO"; then :
18029 ac_cv_lib_resolv_res_send
=yes
18031 ac_cv_lib_resolv_res_send
=no
18033 rm -f core conftest.err conftest.
$ac_objext \
18034 conftest
$ac_exeext conftest.
$ac_ext
18035 LIBS
=$ac_check_lib_save_LIBS
18037 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_resolv_res_send" >&5
18038 $as_echo "$ac_cv_lib_resolv_res_send" >&6; }
18039 if test "x$ac_cv_lib_resolv_res_send" = x
""yes; then :
18042 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for __res_send in -lresolv" >&5
18043 $as_echo_n "checking for __res_send in -lresolv... " >&6; }
18044 if test "${ac_cv_lib_resolv___res_send+set}" = set; then :
18045 $as_echo_n "(cached) " >&6
18047 ac_check_lib_save_LIBS
=$LIBS
18048 LIBS
="-lresolv $LIBS"
18049 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
18050 /* end confdefs.h. */
18052 /* Override any GCC internal prototype to avoid an error.
18053 Use char because int might match the return type of a GCC
18054 builtin and then its argument prototype would still apply. */
18058 char __res_send ();
18062 return __res_send ();
18067 if ac_fn_c_try_link
"$LINENO"; then :
18068 ac_cv_lib_resolv___res_send
=yes
18070 ac_cv_lib_resolv___res_send
=no
18072 rm -f core conftest.err conftest.
$ac_objext \
18073 conftest
$ac_exeext conftest.
$ac_ext
18074 LIBS
=$ac_check_lib_save_LIBS
18076 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_resolv___res_send" >&5
18077 $as_echo "$ac_cv_lib_resolv___res_send" >&6; }
18078 if test "x$ac_cv_lib_resolv___res_send" = x
""yes; then :
18088 if test "$resolv" = yes ; then
18093 ac_fn_c_check_func
"$LINENO" "hes_getmailhost" "ac_cv_func_hes_getmailhost"
18094 if test "x$ac_cv_func_hes_getmailhost" = x
""yes; then :
18097 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for hes_getmailhost in -lhesiod" >&5
18098 $as_echo_n "checking for hes_getmailhost in -lhesiod... " >&6; }
18099 if test "${ac_cv_lib_hesiod_hes_getmailhost+set}" = set; then :
18100 $as_echo_n "(cached) " >&6
18102 ac_check_lib_save_LIBS
=$LIBS
18103 LIBS
="-lhesiod $RESOLVLIB $LIBS"
18104 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
18105 /* end confdefs.h. */
18107 /* Override any GCC internal prototype to avoid an error.
18108 Use char because int might match the return type of a GCC
18109 builtin and then its argument prototype would still apply. */
18113 char hes_getmailhost ();
18117 return hes_getmailhost ();
18122 if ac_fn_c_try_link
"$LINENO"; then :
18123 ac_cv_lib_hesiod_hes_getmailhost
=yes
18125 ac_cv_lib_hesiod_hes_getmailhost
=no
18127 rm -f core conftest.err conftest.
$ac_objext \
18128 conftest
$ac_exeext conftest.
$ac_ext
18129 LIBS
=$ac_check_lib_save_LIBS
18131 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_hesiod_hes_getmailhost" >&5
18132 $as_echo "$ac_cv_lib_hesiod_hes_getmailhost" >&6; }
18133 if test "x$ac_cv_lib_hesiod_hes_getmailhost" = x
""yes; then :
18142 if test x
"$hesiod" = xyes
; then
18144 $as_echo "#define HAVE_LIBHESIOD 1" >>confdefs.h
18151 # Do we need libresolv (due to res_init or Hesiod)?
18152 if test "$resolv" = yes ; then
18154 $as_echo "#define HAVE_LIBRESOLV 1" >>confdefs.h
18162 # These tell us which Kerberos-related libraries to use.
18169 if test "${with_kerberos}" != no
; then
18170 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for com_err in -lcom_err" >&5
18171 $as_echo_n "checking for com_err in -lcom_err... " >&6; }
18172 if test "${ac_cv_lib_com_err_com_err+set}" = set; then :
18173 $as_echo_n "(cached) " >&6
18175 ac_check_lib_save_LIBS
=$LIBS
18176 LIBS
="-lcom_err $LIBS"
18177 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
18178 /* end confdefs.h. */
18180 /* Override any GCC internal prototype to avoid an error.
18181 Use char because int might match the return type of a GCC
18182 builtin and then its argument prototype would still apply. */
18195 if ac_fn_c_try_link
"$LINENO"; then :
18196 ac_cv_lib_com_err_com_err
=yes
18198 ac_cv_lib_com_err_com_err
=no
18200 rm -f core conftest.err conftest.
$ac_objext \
18201 conftest
$ac_exeext conftest.
$ac_ext
18202 LIBS
=$ac_check_lib_save_LIBS
18204 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_com_err_com_err" >&5
18205 $as_echo "$ac_cv_lib_com_err_com_err" >&6; }
18206 if test "x$ac_cv_lib_com_err_com_err" = x
""yes; then :
18212 if test $have_com_err = yes; then
18213 COM_ERRLIB
=-lcom_err
18214 LIBS
="$COM_ERRLIB $LIBS"
18216 $as_echo "#define HAVE_LIBCOM_ERR 1" >>confdefs.h
18219 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for mit_des_cbc_encrypt in -lcrypto" >&5
18220 $as_echo_n "checking for mit_des_cbc_encrypt in -lcrypto... " >&6; }
18221 if test "${ac_cv_lib_crypto_mit_des_cbc_encrypt+set}" = set; then :
18222 $as_echo_n "(cached) " >&6
18224 ac_check_lib_save_LIBS
=$LIBS
18225 LIBS
="-lcrypto $LIBS"
18226 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
18227 /* end confdefs.h. */
18229 /* Override any GCC internal prototype to avoid an error.
18230 Use char because int might match the return type of a GCC
18231 builtin and then its argument prototype would still apply. */
18235 char mit_des_cbc_encrypt ();
18239 return mit_des_cbc_encrypt ();
18244 if ac_fn_c_try_link
"$LINENO"; then :
18245 ac_cv_lib_crypto_mit_des_cbc_encrypt
=yes
18247 ac_cv_lib_crypto_mit_des_cbc_encrypt
=no
18249 rm -f core conftest.err conftest.
$ac_objext \
18250 conftest
$ac_exeext conftest.
$ac_ext
18251 LIBS
=$ac_check_lib_save_LIBS
18253 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_crypto_mit_des_cbc_encrypt" >&5
18254 $as_echo "$ac_cv_lib_crypto_mit_des_cbc_encrypt" >&6; }
18255 if test "x$ac_cv_lib_crypto_mit_des_cbc_encrypt" = x
""yes; then :
18261 if test $have_crypto = yes; then
18263 LIBS
="$CRYPTOLIB $LIBS"
18265 $as_echo "#define HAVE_LIBCRYPTO 1" >>confdefs.h
18268 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for mit_des_cbc_encrypt in -lk5crypto" >&5
18269 $as_echo_n "checking for mit_des_cbc_encrypt in -lk5crypto... " >&6; }
18270 if test "${ac_cv_lib_k5crypto_mit_des_cbc_encrypt+set}" = set; then :
18271 $as_echo_n "(cached) " >&6
18273 ac_check_lib_save_LIBS
=$LIBS
18274 LIBS
="-lk5crypto $LIBS"
18275 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
18276 /* end confdefs.h. */
18278 /* Override any GCC internal prototype to avoid an error.
18279 Use char because int might match the return type of a GCC
18280 builtin and then its argument prototype would still apply. */
18284 char mit_des_cbc_encrypt ();
18288 return mit_des_cbc_encrypt ();
18293 if ac_fn_c_try_link
"$LINENO"; then :
18294 ac_cv_lib_k5crypto_mit_des_cbc_encrypt
=yes
18296 ac_cv_lib_k5crypto_mit_des_cbc_encrypt
=no
18298 rm -f core conftest.err conftest.
$ac_objext \
18299 conftest
$ac_exeext conftest.
$ac_ext
18300 LIBS
=$ac_check_lib_save_LIBS
18302 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_k5crypto_mit_des_cbc_encrypt" >&5
18303 $as_echo "$ac_cv_lib_k5crypto_mit_des_cbc_encrypt" >&6; }
18304 if test "x$ac_cv_lib_k5crypto_mit_des_cbc_encrypt" = x
""yes; then :
18310 if test $have_k5crypto = yes; then
18311 CRYPTOLIB
=-lk5crypto
18312 LIBS
="$CRYPTOLIB $LIBS"
18314 $as_echo "#define HAVE_LIBK5CRYPTO 1" >>confdefs.h
18317 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for krb5_init_context in -lkrb5" >&5
18318 $as_echo_n "checking for krb5_init_context in -lkrb5... " >&6; }
18319 if test "${ac_cv_lib_krb5_krb5_init_context+set}" = set; then :
18320 $as_echo_n "(cached) " >&6
18322 ac_check_lib_save_LIBS
=$LIBS
18323 LIBS
="-lkrb5 $LIBS"
18324 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
18325 /* end confdefs.h. */
18327 /* Override any GCC internal prototype to avoid an error.
18328 Use char because int might match the return type of a GCC
18329 builtin and then its argument prototype would still apply. */
18333 char krb5_init_context ();
18337 return krb5_init_context ();
18342 if ac_fn_c_try_link
"$LINENO"; then :
18343 ac_cv_lib_krb5_krb5_init_context
=yes
18345 ac_cv_lib_krb5_krb5_init_context
=no
18347 rm -f core conftest.err conftest.
$ac_objext \
18348 conftest
$ac_exeext conftest.
$ac_ext
18349 LIBS
=$ac_check_lib_save_LIBS
18351 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_krb5_krb5_init_context" >&5
18352 $as_echo "$ac_cv_lib_krb5_krb5_init_context" >&6; }
18353 if test "x$ac_cv_lib_krb5_krb5_init_context" = x
""yes; then :
18359 if test $have_krb5=yes; then
18361 LIBS
="$KRB5LIB $LIBS"
18363 $as_echo "#define HAVE_LIBKRB5 1" >>confdefs.h
18366 if test "${with_kerberos5}" = no
; then
18367 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for des_cbc_encrypt in -ldes425" >&5
18368 $as_echo_n "checking for des_cbc_encrypt in -ldes425... " >&6; }
18369 if test "${ac_cv_lib_des425_des_cbc_encrypt+set}" = set; then :
18370 $as_echo_n "(cached) " >&6
18372 ac_check_lib_save_LIBS
=$LIBS
18373 LIBS
="-ldes425 $LIBS"
18374 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
18375 /* end confdefs.h. */
18377 /* Override any GCC internal prototype to avoid an error.
18378 Use char because int might match the return type of a GCC
18379 builtin and then its argument prototype would still apply. */
18383 char des_cbc_encrypt ();
18387 return des_cbc_encrypt ();
18392 if ac_fn_c_try_link
"$LINENO"; then :
18393 ac_cv_lib_des425_des_cbc_encrypt
=yes
18395 ac_cv_lib_des425_des_cbc_encrypt
=no
18397 rm -f core conftest.err conftest.
$ac_objext \
18398 conftest
$ac_exeext conftest.
$ac_ext
18399 LIBS
=$ac_check_lib_save_LIBS
18401 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_des425_des_cbc_encrypt" >&5
18402 $as_echo "$ac_cv_lib_des425_des_cbc_encrypt" >&6; }
18403 if test "x$ac_cv_lib_des425_des_cbc_encrypt" = x
""yes; then :
18409 if test $have_des425 = yes; then
18411 LIBS
="$DESLIB $LIBS"
18413 $as_echo "#define HAVE_LIBDES425 1" >>confdefs.h
18416 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for des_cbc_encrypt in -ldes" >&5
18417 $as_echo_n "checking for des_cbc_encrypt in -ldes... " >&6; }
18418 if test "${ac_cv_lib_des_des_cbc_encrypt+set}" = set; then :
18419 $as_echo_n "(cached) " >&6
18421 ac_check_lib_save_LIBS
=$LIBS
18423 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
18424 /* end confdefs.h. */
18426 /* Override any GCC internal prototype to avoid an error.
18427 Use char because int might match the return type of a GCC
18428 builtin and then its argument prototype would still apply. */
18432 char des_cbc_encrypt ();
18436 return des_cbc_encrypt ();
18441 if ac_fn_c_try_link
"$LINENO"; then :
18442 ac_cv_lib_des_des_cbc_encrypt
=yes
18444 ac_cv_lib_des_des_cbc_encrypt
=no
18446 rm -f core conftest.err conftest.
$ac_objext \
18447 conftest
$ac_exeext conftest.
$ac_ext
18448 LIBS
=$ac_check_lib_save_LIBS
18450 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_des_des_cbc_encrypt" >&5
18451 $as_echo "$ac_cv_lib_des_des_cbc_encrypt" >&6; }
18452 if test "x$ac_cv_lib_des_des_cbc_encrypt" = x
""yes; then :
18458 if test $have_des = yes; then
18460 LIBS
="$DESLIB $LIBS"
18462 $as_echo "#define HAVE_LIBDES 1" >>confdefs.h
18466 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for krb_get_cred in -lkrb4" >&5
18467 $as_echo_n "checking for krb_get_cred in -lkrb4... " >&6; }
18468 if test "${ac_cv_lib_krb4_krb_get_cred+set}" = set; then :
18469 $as_echo_n "(cached) " >&6
18471 ac_check_lib_save_LIBS
=$LIBS
18472 LIBS
="-lkrb4 $LIBS"
18473 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
18474 /* end confdefs.h. */
18476 /* Override any GCC internal prototype to avoid an error.
18477 Use char because int might match the return type of a GCC
18478 builtin and then its argument prototype would still apply. */
18482 char krb_get_cred ();
18486 return krb_get_cred ();
18491 if ac_fn_c_try_link
"$LINENO"; then :
18492 ac_cv_lib_krb4_krb_get_cred
=yes
18494 ac_cv_lib_krb4_krb_get_cred
=no
18496 rm -f core conftest.err conftest.
$ac_objext \
18497 conftest
$ac_exeext conftest.
$ac_ext
18498 LIBS
=$ac_check_lib_save_LIBS
18500 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_krb4_krb_get_cred" >&5
18501 $as_echo "$ac_cv_lib_krb4_krb_get_cred" >&6; }
18502 if test "x$ac_cv_lib_krb4_krb_get_cred" = x
""yes; then :
18508 if test $have_krb4 = yes; then
18510 LIBS
="$KRB4LIB $LIBS"
18512 $as_echo "#define HAVE_LIBKRB4 1" >>confdefs.h
18515 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for krb_get_cred in -lkrb" >&5
18516 $as_echo_n "checking for krb_get_cred in -lkrb... " >&6; }
18517 if test "${ac_cv_lib_krb_krb_get_cred+set}" = set; then :
18518 $as_echo_n "(cached) " >&6
18520 ac_check_lib_save_LIBS
=$LIBS
18522 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
18523 /* end confdefs.h. */
18525 /* Override any GCC internal prototype to avoid an error.
18526 Use char because int might match the return type of a GCC
18527 builtin and then its argument prototype would still apply. */
18531 char krb_get_cred ();
18535 return krb_get_cred ();
18540 if ac_fn_c_try_link
"$LINENO"; then :
18541 ac_cv_lib_krb_krb_get_cred
=yes
18543 ac_cv_lib_krb_krb_get_cred
=no
18545 rm -f core conftest.err conftest.
$ac_objext \
18546 conftest
$ac_exeext conftest.
$ac_ext
18547 LIBS
=$ac_check_lib_save_LIBS
18549 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_krb_krb_get_cred" >&5
18550 $as_echo "$ac_cv_lib_krb_krb_get_cred" >&6; }
18551 if test "x$ac_cv_lib_krb_krb_get_cred" = x
""yes; then :
18557 if test $have_krb = yes; then
18559 LIBS
="$KRB4LIB $LIBS"
18561 $as_echo "#define HAVE_LIBKRB 1" >>confdefs.h
18567 if test "${with_kerberos5}" != no
; then
18568 for ac_header
in krb5.h
18570 ac_fn_c_check_header_mongrel
"$LINENO" "krb5.h" "ac_cv_header_krb5_h" "$ac_includes_default"
18571 if test "x$ac_cv_header_krb5_h" = x
""yes; then :
18572 cat >>confdefs.h
<<_ACEOF
18573 #define HAVE_KRB5_H 1
18575 ac_fn_c_check_member
"$LINENO" "krb5_error" "text" "ac_cv_member_krb5_error_text" "#include <krb5.h>
18577 if test "x$ac_cv_member_krb5_error_text" = x
""yes; then :
18579 cat >>confdefs.h
<<_ACEOF
18580 #define HAVE_KRB5_ERROR_TEXT 1
18585 ac_fn_c_check_member
"$LINENO" "krb5_error" "e_text" "ac_cv_member_krb5_error_e_text" "#include <krb5.h>
18587 if test "x$ac_cv_member_krb5_error_e_text" = x
""yes; then :
18589 cat >>confdefs.h
<<_ACEOF
18590 #define HAVE_KRB5_ERROR_E_TEXT 1
18601 for ac_header
in des.h
18603 ac_fn_c_check_header_mongrel
"$LINENO" "des.h" "ac_cv_header_des_h" "$ac_includes_default"
18604 if test "x$ac_cv_header_des_h" = x
""yes; then :
18605 cat >>confdefs.h
<<_ACEOF
18606 #define HAVE_DES_H 1
18610 for ac_header
in kerberosIV
/des.h
18612 ac_fn_c_check_header_mongrel
"$LINENO" "kerberosIV/des.h" "ac_cv_header_kerberosIV_des_h" "$ac_includes_default"
18613 if test "x$ac_cv_header_kerberosIV_des_h" = x
""yes; then :
18614 cat >>confdefs.h
<<_ACEOF
18615 #define HAVE_KERBEROSIV_DES_H 1
18619 for ac_header
in kerberos
/des.h
18621 ac_fn_c_check_header_mongrel
"$LINENO" "kerberos/des.h" "ac_cv_header_kerberos_des_h" "$ac_includes_default"
18622 if test "x$ac_cv_header_kerberos_des_h" = x
""yes; then :
18623 cat >>confdefs.h
<<_ACEOF
18624 #define HAVE_KERBEROS_DES_H 1
18639 for ac_header
in krb.h
18641 ac_fn_c_check_header_mongrel
"$LINENO" "krb.h" "ac_cv_header_krb_h" "$ac_includes_default"
18642 if test "x$ac_cv_header_krb_h" = x
""yes; then :
18643 cat >>confdefs.h
<<_ACEOF
18644 #define HAVE_KRB_H 1
18648 for ac_header
in kerberosIV
/krb.h
18650 ac_fn_c_check_header_mongrel
"$LINENO" "kerberosIV/krb.h" "ac_cv_header_kerberosIV_krb_h" "$ac_includes_default"
18651 if test "x$ac_cv_header_kerberosIV_krb_h" = x
""yes; then :
18652 cat >>confdefs.h
<<_ACEOF
18653 #define HAVE_KERBEROSIV_KRB_H 1
18657 for ac_header
in kerberos
/krb.h
18659 ac_fn_c_check_header_mongrel
"$LINENO" "kerberos/krb.h" "ac_cv_header_kerberos_krb_h" "$ac_includes_default"
18660 if test "x$ac_cv_header_kerberos_krb_h" = x
""yes; then :
18661 cat >>confdefs.h
<<_ACEOF
18662 #define HAVE_KERBEROS_KRB_H 1
18678 for ac_header
in com_err.h
18680 ac_fn_c_check_header_mongrel
"$LINENO" "com_err.h" "ac_cv_header_com_err_h" "$ac_includes_default"
18681 if test "x$ac_cv_header_com_err_h" = x
""yes; then :
18682 cat >>confdefs.h
<<_ACEOF
18683 #define HAVE_COM_ERR_H 1
18698 # Solaris requires -lintl if you want strerror (which calls dgettext)
18699 # to return localized messages.
18700 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dgettext in -lintl" >&5
18701 $as_echo_n "checking for dgettext in -lintl... " >&6; }
18702 if test "${ac_cv_lib_intl_dgettext+set}" = set; then :
18703 $as_echo_n "(cached) " >&6
18705 ac_check_lib_save_LIBS
=$LIBS
18706 LIBS
="-lintl $LIBS"
18707 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
18708 /* end confdefs.h. */
18710 /* Override any GCC internal prototype to avoid an error.
18711 Use char because int might match the return type of a GCC
18712 builtin and then its argument prototype would still apply. */
18720 return dgettext ();
18725 if ac_fn_c_try_link
"$LINENO"; then :
18726 ac_cv_lib_intl_dgettext
=yes
18728 ac_cv_lib_intl_dgettext
=no
18730 rm -f core conftest.err conftest.
$ac_objext \
18731 conftest
$ac_exeext conftest.
$ac_ext
18732 LIBS
=$ac_check_lib_save_LIBS
18734 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_intl_dgettext" >&5
18735 $as_echo "$ac_cv_lib_intl_dgettext" >&6; }
18736 if test "x$ac_cv_lib_intl_dgettext" = x
""yes; then :
18737 cat >>confdefs.h
<<_ACEOF
18738 #define HAVE_LIBINTL 1
18741 LIBS
="-lintl $LIBS"
18746 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether localtime caches TZ" >&5
18747 $as_echo_n "checking whether localtime caches TZ... " >&6; }
18748 if test "${emacs_cv_localtime_cache+set}" = set; then :
18749 $as_echo_n "(cached) " >&6
18751 if test x
$ac_cv_func_tzset = xyes
; then
18752 if test "$cross_compiling" = yes; then :
18753 # If we have tzset, assume the worst when cross-compiling.
18754 emacs_cv_localtime_cache
=yes
18756 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
18757 /* end confdefs.h. */
18759 char TZ_GMT0[] = "TZ=GMT0";
18760 char TZ_PST8[] = "TZ=PST8";
18763 time_t now = time ((time_t *) 0);
18764 int hour_GMT0, hour_unset;
18765 if (putenv (TZ_GMT0) != 0)
18767 hour_GMT0 = localtime (&now)->tm_hour;
18769 hour_unset = localtime (&now)->tm_hour;
18770 if (putenv (TZ_PST8) != 0)
18772 if (localtime (&now)->tm_hour == hour_GMT0)
18775 if (localtime (&now)->tm_hour != hour_unset)
18780 if ac_fn_c_try_run
"$LINENO"; then :
18781 emacs_cv_localtime_cache
=no
18783 emacs_cv_localtime_cache
=yes
18785 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
18786 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
18790 # If we lack tzset, report that localtime does not cache TZ,
18791 # since we can't invalidate the cache if we don't have tzset.
18792 emacs_cv_localtime_cache
=no
18795 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $emacs_cv_localtime_cache" >&5
18796 $as_echo "$emacs_cv_localtime_cache" >&6; }
18797 if test $emacs_cv_localtime_cache = yes; then
18799 $as_echo "#define LOCALTIME_CACHE 1" >>confdefs.h
18803 if test "x$HAVE_TIMEVAL" = xyes
; then
18804 for ac_func
in gettimeofday
18806 ac_fn_c_check_func
"$LINENO" "gettimeofday" "ac_cv_func_gettimeofday"
18807 if test "x$ac_cv_func_gettimeofday" = x
""yes; then :
18808 cat >>confdefs.h
<<_ACEOF
18809 #define HAVE_GETTIMEOFDAY 1
18815 if test $ac_cv_func_gettimeofday = yes; then
18816 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether gettimeofday can accept two arguments" >&5
18817 $as_echo_n "checking whether gettimeofday can accept two arguments... " >&6; }
18818 if test "${emacs_cv_gettimeofday_two_arguments+set}" = set; then :
18819 $as_echo_n "(cached) " >&6
18821 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
18822 /* end confdefs.h. */
18824 #ifdef TIME_WITH_SYS_TIME
18825 #include <sys/time.h>
18828 #ifdef HAVE_SYS_TIME_H
18829 #include <sys/time.h>
18837 struct timeval time;
18838 gettimeofday (&time, 0);
18843 if ac_fn_c_try_compile
"$LINENO"; then :
18844 emacs_cv_gettimeofday_two_arguments
=yes
18846 emacs_cv_gettimeofday_two_arguments
=no
18848 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
18850 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $emacs_cv_gettimeofday_two_arguments" >&5
18851 $as_echo "$emacs_cv_gettimeofday_two_arguments" >&6; }
18852 if test $emacs_cv_gettimeofday_two_arguments = no
; then
18854 $as_echo "#define GETTIMEOFDAY_ONE_ARGUMENT 1" >>confdefs.h
18861 ac_fn_c_check_func
"$LINENO" "socket" "ac_cv_func_socket"
18862 if test "x$ac_cv_func_socket" = x
""yes; then :
18868 if test $ok_so_far = yes; then
18869 ac_fn_c_check_header_mongrel
"$LINENO" "netinet/in.h" "ac_cv_header_netinet_in_h" "$ac_includes_default"
18870 if test "x$ac_cv_header_netinet_in_h" = x
""yes; then :
18878 if test $ok_so_far = yes; then
18879 ac_fn_c_check_header_mongrel
"$LINENO" "arpa/inet.h" "ac_cv_header_arpa_inet_h" "$ac_includes_default"
18880 if test "x$ac_cv_header_arpa_inet_h" = x
""yes; then :
18888 if test $ok_so_far = yes; then
18890 $as_echo "#define HAVE_INET_SOCKETS 1" >>confdefs.h
18894 if test -f /usr
/lpp
/X11
/bin
/smt.exp
; then
18896 $as_echo "#define HAVE_AIX_SMT_EXP 1" >>confdefs.h
18900 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether system supports dynamic ptys" >&5
18901 $as_echo_n "checking whether system supports dynamic ptys... " >&6; }
18902 if test -d /dev
/pts
&& ls -d /dev
/ptmx
> /dev
/null
2>&1 ; then
18903 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
18904 $as_echo "yes" >&6; }
18906 $as_echo "#define HAVE_DEV_PTMX 1" >>confdefs.h
18909 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
18910 $as_echo "no" >&6; }
18913 ac_fn_c_check_type
"$LINENO" "pid_t" "ac_cv_type_pid_t" "$ac_includes_default"
18914 if test "x$ac_cv_type_pid_t" = x
""yes; then :
18918 cat >>confdefs.h
<<_ACEOF
18924 for ac_header
in vfork.h
18926 ac_fn_c_check_header_mongrel
"$LINENO" "vfork.h" "ac_cv_header_vfork_h" "$ac_includes_default"
18927 if test "x$ac_cv_header_vfork_h" = x
""yes; then :
18928 cat >>confdefs.h
<<_ACEOF
18929 #define HAVE_VFORK_H 1
18936 for ac_func
in fork vfork
18938 as_ac_var
=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
18939 ac_fn_c_check_func
"$LINENO" "$ac_func" "$as_ac_var"
18940 if eval test \"x\$
"$as_ac_var"\" = x
"yes"; then :
18941 cat >>confdefs.h
<<_ACEOF
18942 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
18948 if test "x$ac_cv_func_fork" = xyes
; then
18949 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working fork" >&5
18950 $as_echo_n "checking for working fork... " >&6; }
18951 if test "${ac_cv_func_fork_works+set}" = set; then :
18952 $as_echo_n "(cached) " >&6
18954 if test "$cross_compiling" = yes; then :
18955 ac_cv_func_fork_works
=cross
18957 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
18958 /* end confdefs.h. */
18959 $ac_includes_default
18964 /* By Ruediger Kuhlmann. */
18965 return fork () < 0;
18971 if ac_fn_c_try_run
"$LINENO"; then :
18972 ac_cv_func_fork_works
=yes
18974 ac_cv_func_fork_works
=no
18976 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
18977 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
18981 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_fork_works" >&5
18982 $as_echo "$ac_cv_func_fork_works" >&6; }
18985 ac_cv_func_fork_works
=$ac_cv_func_fork
18987 if test "x$ac_cv_func_fork_works" = xcross
; then
18989 *-*-amigaos* |
*-*-msdosdjgpp*)
18990 # Override, as these systems have only a dummy fork() stub
18991 ac_cv_func_fork_works
=no
18994 ac_cv_func_fork_works
=yes
18997 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: result $ac_cv_func_fork_works guessed because of cross compilation" >&5
18998 $as_echo "$as_me: WARNING: result $ac_cv_func_fork_works guessed because of cross compilation" >&2;}
19000 ac_cv_func_vfork_works
=$ac_cv_func_vfork
19001 if test "x$ac_cv_func_vfork" = xyes
; then
19002 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working vfork" >&5
19003 $as_echo_n "checking for working vfork... " >&6; }
19004 if test "${ac_cv_func_vfork_works+set}" = set; then :
19005 $as_echo_n "(cached) " >&6
19007 if test "$cross_compiling" = yes; then :
19008 ac_cv_func_vfork_works
=cross
19010 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
19011 /* end confdefs.h. */
19012 /* Thanks to Paul Eggert for this test. */
19013 $ac_includes_default
19014 #include <sys/wait.h>
19015 #ifdef HAVE_VFORK_H
19016 # include <vfork.h>
19018 /* On some sparc systems, changes by the child to local and incoming
19019 argument registers are propagated back to the parent. The compiler
19020 is told about this with #include <vfork.h>, but some compilers
19021 (e.g. gcc -O) don't grok <vfork.h>. Test for this by using a
19022 static variable whose address is put into a register that is
19023 clobbered by the vfork. */
19026 sparc_address_test (int arg)
19028 sparc_address_test (arg) int arg;
19031 static pid_t child;
19049 pid_t parent = getpid ();
19052 sparc_address_test (0);
19057 /* Here is another test for sparc vfork register problems. This
19058 test uses lots of local variables, at least as many local
19059 variables as main has allocated so far including compiler
19060 temporaries. 4 locals are enough for gcc 1.40.3 on a Solaris
19061 4.1.3 sparc, but we use 8 to be safe. A buggy compiler should
19062 reuse the register of parent for one of the local variables,
19063 since it will think that parent can't possibly be used any more
19064 in this routine. Assigning to the local variable will thus
19065 munge parent in the parent process. */
19067 p = getpid(), p1 = getpid(), p2 = getpid(), p3 = getpid(),
19068 p4 = getpid(), p5 = getpid(), p6 = getpid(), p7 = getpid();
19069 /* Convince the compiler that p..p7 are live; otherwise, it might
19070 use the same hardware register for all 8 local variables. */
19071 if (p != p1 || p != p2 || p != p3 || p != p4
19072 || p != p5 || p != p6 || p != p7)
19075 /* On some systems (e.g. IRIX 3.3), vfork doesn't separate parent
19076 from child file descriptors. If the child closes a descriptor
19077 before it execs or exits, this munges the parent's descriptor
19078 as well. Test for this by closing stdout in the child. */
19079 _exit(close(fileno(stdout)) != 0);
19084 while (wait(&status) != child)
19087 /* Was there some problem with vforking? */
19090 /* Did the child fail? (This shouldn't happen.) */
19093 /* Did the vfork/compiler bug occur? */
19094 || parent != getpid()
19096 /* Did the file descriptor bug occur? */
19097 || fstat(fileno(stdout), &st) != 0
19102 if ac_fn_c_try_run
"$LINENO"; then :
19103 ac_cv_func_vfork_works
=yes
19105 ac_cv_func_vfork_works
=no
19107 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
19108 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
19112 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_vfork_works" >&5
19113 $as_echo "$ac_cv_func_vfork_works" >&6; }
19116 if test "x$ac_cv_func_fork_works" = xcross
; then
19117 ac_cv_func_vfork_works
=$ac_cv_func_vfork
19118 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: result $ac_cv_func_vfork_works guessed because of cross compilation" >&5
19119 $as_echo "$as_me: WARNING: result $ac_cv_func_vfork_works guessed because of cross compilation" >&2;}
19122 if test "x$ac_cv_func_vfork_works" = xyes
; then
19124 $as_echo "#define HAVE_WORKING_VFORK 1" >>confdefs.h
19128 $as_echo "#define vfork fork" >>confdefs.h
19131 if test "x$ac_cv_func_fork_works" = xyes
; then
19133 $as_echo "#define HAVE_WORKING_FORK 1" >>confdefs.h
19138 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for nl_langinfo and CODESET" >&5
19139 $as_echo_n "checking for nl_langinfo and CODESET... " >&6; }
19140 if test "${emacs_cv_langinfo_codeset+set}" = set; then :
19141 $as_echo_n "(cached) " >&6
19143 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
19144 /* end confdefs.h. */
19145 #include <langinfo.h>
19149 char* cs = nl_langinfo(CODESET);
19154 if ac_fn_c_try_link
"$LINENO"; then :
19155 emacs_cv_langinfo_codeset
=yes
19157 emacs_cv_langinfo_codeset
=no
19159 rm -f core conftest.err conftest.
$ac_objext \
19160 conftest
$ac_exeext conftest.
$ac_ext
19163 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $emacs_cv_langinfo_codeset" >&5
19164 $as_echo "$emacs_cv_langinfo_codeset" >&6; }
19165 if test $emacs_cv_langinfo_codeset = yes; then
19167 $as_echo "#define HAVE_LANGINFO_CODESET 1" >>confdefs.h
19171 ac_fn_c_check_type
"$LINENO" "size_t" "ac_cv_type_size_t" "$ac_includes_default"
19172 if test "x$ac_cv_type_size_t" = x
""yes; then :
19174 cat >>confdefs.h
<<_ACEOF
19175 #define HAVE_SIZE_T 1
19182 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for mbstate_t" >&5
19183 $as_echo_n "checking for mbstate_t... " >&6; }
19184 if test "${ac_cv_type_mbstate_t+set}" = set; then :
19185 $as_echo_n "(cached) " >&6
19187 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
19188 /* end confdefs.h. */
19189 $ac_includes_default
19190 # include <wchar.h>
19194 mbstate_t x; return sizeof x;
19199 if ac_fn_c_try_compile
"$LINENO"; then :
19200 ac_cv_type_mbstate_t
=yes
19202 ac_cv_type_mbstate_t
=no
19204 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
19206 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_mbstate_t" >&5
19207 $as_echo "$ac_cv_type_mbstate_t" >&6; }
19208 if test $ac_cv_type_mbstate_t = yes; then
19210 $as_echo "#define HAVE_MBSTATE_T 1" >>confdefs.h
19214 $as_echo "#define mbstate_t int" >>confdefs.h
19218 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for C restricted array declarations" >&5
19219 $as_echo_n "checking for C restricted array declarations... " >&6; }
19220 if test "${emacs_cv_c_restrict_arr+set}" = set; then :
19221 $as_echo_n "(cached) " >&6
19223 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
19224 /* end confdefs.h. */
19225 void fred (int x[__restrict]);
19234 if ac_fn_c_try_compile
"$LINENO"; then :
19235 emacs_cv_c_restrict_arr
=yes
19237 emacs_cv_c_restrict_arr
=no
19239 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
19241 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $emacs_cv_c_restrict_arr" >&5
19242 $as_echo "$emacs_cv_c_restrict_arr" >&6; }
19243 if test "$emacs_cv_c_restrict_arr" = yes; then
19245 $as_echo "#define __restrict_arr __restrict" >>confdefs.h
19251 # Set up the CFLAGS for real compilation, so we can substitute it.
19252 CFLAGS
="$REAL_CFLAGS"
19253 CPPFLAGS
="$REAL_CPPFLAGS"
19255 ## Hack to detect a buggy GCC version.
19256 if test "x$GCC" = xyes \
19257 && test x
"`$CC --version 2> /dev/null | grep 'gcc.* 4.5.0'`" != x \
19258 && test x
"`echo $CFLAGS | grep '\-O[23]'`" != x \
19259 && test x
"`echo $CFLAGS | grep '\-fno-optimize-sibling-calls'`" = x
; then
19260 as_fn_error $?
"GCC 4.5.0 has problems compiling Emacs; see etc/PROBLEMS'." "$LINENO" 5
19263 version
=$PACKAGE_VERSION
19265 ### Specify what sort of things we'll be editing into Makefile and config.h.
19266 ### Use configuration here uncanonicalized to avoid exceeding size limits.
19290 ## FIXME? Nothing uses @LD_SWITCH_X_SITE@.
19291 ## src/Makefile.in did add LD_SWITCH_X_SITE (as a cpp define) to the
19292 ## end of LIBX_BASE, but nothing ever set it.
19297 ## Used in lwlib/Makefile.in.
19299 if test -n "${machfile}"; then
19300 M_FILE
="\$(srcdir)/${machfile}"
19304 S_FILE
="\$(srcdir)/${opsysfile}"
19315 cat >>confdefs.h
<<_ACEOF
19316 #define EMACS_CONFIGURATION "${canonical}"
19320 cat >>confdefs.h
<<_ACEOF
19321 #define EMACS_CONFIG_OPTIONS "${ac_configure_args}"
19324 if test -n "$machfile"; then
19326 cat >>confdefs.h
<<_ACEOF
19327 #define config_machfile "${machfile}"
19332 cat >>confdefs.h
<<_ACEOF
19333 #define config_opsysfile "${opsysfile}"
19340 if test "${HAVE_X_WINDOWS}" = "yes" ; then
19342 $as_echo "#define HAVE_X_WINDOWS 1" >>confdefs.h
19345 XOBJ
="xterm.o xfns.o xselect.o xrdb.o fontset.o xsmfns.o fringe.o image.o xsettings.o xgselect.o"
19347 if test "$HAVE_XFT" = "yes"; then
19348 FONT_OBJ
="$FONT_OBJ ftfont.o xftfont.o ftxfont.o"
19349 elif test "$HAVE_FREETYPE" = "yes"; then
19350 FONT_OBJ
="$FONT_OBJ ftfont.o ftxfont.o"
19360 if test "${USE_X_TOOLKIT}" != "none" ; then
19361 WIDGET_OBJ
=widget.o
19363 $as_echo "#define USE_X_TOOLKIT 1" >>confdefs.h
19365 if test "${USE_X_TOOLKIT}" = "LUCID"; then
19367 $as_echo "#define USE_LUCID 1" >>confdefs.h
19369 elif test "${USE_X_TOOLKIT}" = "MOTIF"; then
19371 $as_echo "#define USE_MOTIF 1" >>confdefs.h
19376 ## Paul Abrahams <abrahams at equinox.shaysnet.com> says this is needed.
19377 MOTIF_LIBW
="$MOTIF_LIBW -lXpm"
19381 ## Richard Anthony Ryan <ryanr at ellingtn.ftc.nrcs.usda.gov>
19382 ## says -lXimp is needed in UNIX_SV ... 4.2 1.1.2.
19383 MOTIF_LIBW
="MOTIF_LIBW -lXimp"
19387 ## olson@mcs.anl.gov says -li18n is needed by -lXm.
19388 MOTIF_LIBW
="$MOTIF_LIBW -li18n"
19391 MOTIF_LIBW
="$MOTIF_LIBW $LIBXP"
19397 case "$USE_X_TOOLKIT" in
19398 MOTIF
) TOOLKIT_LIBW
="$MOTIF_LIBW" ;;
19399 LUCID
) TOOLKIT_LIBW
="$LUCID_LIBW" ;;
19400 none
) test "x$HAVE_GTK" = "xyes" && TOOLKIT_LIBW
="$GTK_LIBS" ;;
19404 if test "$USE_X_TOOLKIT" = "none"; then
19405 LIBXT_OTHER
="\$(LIBXSM)"
19406 OLDXMENU_TARGET
="really-oldXMenu"
19408 LIBXT_OTHER
="\$(LIBXMU) -lXt \$(LIBXTR6) -lXext"
19409 OLDXMENU_TARGET
="really-lwlib"
19413 ## The X Menu stuff is present in the X10 distribution, but missing
19414 ## from X11. If we have X10, just use the installed library;
19415 ## otherwise, use our own copy.
19416 if test "${HAVE_X11}" = "yes" ; then
19418 $as_echo "#define HAVE_X11 1" >>confdefs.h
19421 if test "$USE_X_TOOLKIT" = "none"; then
19422 OLDXMENU
="\${oldXMenudir}/libXMenu11.a"
19424 OLDXMENU
="\${lwlibdir}/liblw.a"
19426 LIBXMENU
="\$(OLDXMENU)"
19427 LIBX_OTHER
="\$(LIBXT) \$(LIBX_EXTRA)"
19428 OLDXMENU_DEPS
="\${OLDXMENU} ../src/\${OLDXMENU}"
19430 ## For a syntactically valid Makefile; not actually used for anything.
19431 ## See comments in src/Makefile.in.
19433 ## FIXME This case (!HAVE_X11 && HAVE_X_WINDOWS) is no longer possible(?).
19434 if test "${HAVE_X_WINDOWS}" = "yes"; then
19443 if test "$HAVE_GTK" = "yes" ||
test "$HAVE_MENUS" != "yes"; then
19456 if test "${HAVE_MENUS}" = "yes" ; then
19458 $as_echo "#define HAVE_MENUS 1" >>confdefs.h
19462 if test "${GNU_MALLOC}" = "yes" ; then
19464 $as_echo "#define GNU_MALLOC 1" >>confdefs.h
19469 if test "${REL_ALLOC}" = "yes" ; then
19471 $as_echo "#define REL_ALLOC 1" >>confdefs.h
19474 test "$system_malloc" != "yes" && RALLOC_OBJ
=ralloc.o
19478 if test "$opsys" = "cygwin"; then
19479 CYGWIN_OBJ
="sheap.o"
19480 ## Cygwin differs because of its unexec().
19482 POST_ALLOC_OBJ
=lastfile.o
19485 PRE_ALLOC_OBJ
=lastfile.o
19494 aix4-2
) LD_SWITCH_SYSTEM_TEMACS
="-Wl,-bnodelcsect" ;;
19497 ## The -headerpad option tells ld (see man page) to leave room at the
19498 ## end of the header for adding load commands. Needed for dumping.
19499 ## 0x690 is the total size of 30 segment load commands (at 56
19500 ## each); under Cocoa 31 commands are required.
19501 if test "$HAVE_NS" = "yes"; then
19502 libs_nsgui
="-framework AppKit"
19503 headerpad_extra
=6C8
19506 headerpad_extra
=690
19508 LD_SWITCH_SYSTEM_TEMACS
="-prebind $libs_nsgui -Xlinker -headerpad -Xlinker $headerpad_extra"
19510 ## This is here because src/Makefile.in did some extra fiddling around
19511 ## with LD_SWITCH_SYSTEM. The cpp logic was:
19512 ## #ifndef LD_SWITCH_SYSTEM
19513 ## #if !defined (__GNUC__) && ((defined (BSD_SYSTEM) && !defined (COFF)))
19514 ## Since all the *bsds define LD_SWITCH_SYSTEM, this simplifies to:
19515 ## not using gcc, darwin system not on an alpha (ie darwin, since
19516 ## darwin + alpha does not occur).
19517 ## Because this was done in src/Makefile.in, the resulting part of
19518 ## LD_SWITCH_SYSTEM was not used in configure (ie, in ac_link).
19519 ## It therefore seems cleaner to put this in LD_SWITCH_SYSTEM_TEMACS,
19520 ## rather than LD_SWITCH_SYSTEM.
19521 test "x$LD_SWITCH_SYSTEM" = "x" && test "x$GCC" != "xyes" && \
19522 LD_SWITCH_SYSTEM_TEMACS
="-X $LD_SWITCH_SYSTEM_TEMACS"
19525 ## LD_SWITCH_X_SITE_AUX is a -R option saying where to find X at run-time.
19526 ## When handled by cpp, this was in LD_SWITCH_SYSTEM. However, at
19527 ## the point where configure sourced the s/*.h file, LD_SWITCH_X_SITE_AUX
19528 ## had not yet been defined and was expanded to null. Hence LD_SWITCH_SYSTEM
19529 ## had different values in configure (in ac_link) and src/Makefile.in.
19530 ## It seems clearer therefore to put this piece in LD_SWITCH_SYSTEM_TEMACS.
19531 gnu-linux
) LD_SWITCH_SYSTEM_TEMACS
="\$(LD_SWITCH_X_SITE_AUX)" ;;
19533 *) LD_SWITCH_SYSTEM_TEMACS
= ;;
19536 if test "$NS_IMPL_GNUSTEP" = "yes"; then
19537 LD_SWITCH_SYSTEM_TEMACS
="${LD_SWITCH_SYSTEM_TEMACS} -L${GNUSTEP_SYSTEM_LIBRARIES} ${GNUSTEP_LOCAL_LIBRARIES} -lgnustep-gui -lgnustep-base -lobjc -lpthread"
19546 ## gnu: GNU needs its own crt0.
19547 aix4-2|cygwin|darwin|gnu|hpux
*|irix6-5|sol2
*|unixware
) ORDINARY_LINK
=yes ;;
19549 ## On post 1.3 releases of NetBSD, gcc -nostdlib also clears the
19550 ## library search parth, i.e. it won't search /usr/lib for libc and
19551 ## friends. Using -nostartfiles instead avoids this problem, and
19552 ## will also work on earlier NetBSD releases.
19553 netbsd|openbsd
) LD_FIRSTFLAG
="-nostartfiles" ;;
19555 ## macpcc: NAKAJI Hiroyuki <nakaji@tutrp.tut.ac.jp> says
19556 ## MkLinux/LinuxPPC needs this.
19557 ## ibms390x only supports opsys = gnu-linux so it can be added here.
19560 macppc|ibms390x
) LD_FIRSTFLAG
="-nostdlib" ;;
19566 if test "x$ORDINARY_LINK" = "xyes"; then
19570 $as_echo "#define ORDINARY_LINK 1" >>confdefs.h
19573 ## The system files defining neither ORDINARY_LINK nor LD_FIRSTFLAG are:
19574 ## freebsd, gnu-* not on macppc|ibms390x.
19575 elif test "x$GCC" = "xyes" && test "x$LD_FIRSTFLAG" = "x"; then
19577 ## Versions of GCC >= 2.0 put their library, libgcc.a, in obscure
19578 ## places that are difficult to figure out at make time. Fortunately,
19579 ## these same versions allow you to pass arbitrary flags on to the
19580 ## linker, so there is no reason not to use it as a linker.
19582 ## Well, it is not quite perfect. The "-nostdlib" keeps GCC from
19583 ## searching for libraries in its internal directories, so we have to
19584 ## ask GCC explicitly where to find libgcc.a (LIB_GCC below).
19585 LD_FIRSTFLAG
="-nostdlib"
19588 ## FIXME? What setting of EDIT_LDFLAGS should this have?
19589 test "$NS_IMPL_GNUSTEP" = "yes" && LD_FIRSTFLAG
="-rdynamic"
19594 ## FIXME? The logic here is not precisely the same as that above.
19595 ## There is no check here for a pre-defined LD_FIRSTFLAG.
19596 ## Should we only be setting LIB_GCC if LD ~ -nostdlib?
19598 if test "x$GCC" = "xyes" && test "x$ORDINARY_LINK" != "xyes"; then
19601 freebsd|netbsd|openbsd
) LIB_GCC
= ;;
19604 ## armin76@gentoo.org reported that the lgcc_s flag is necessary to
19605 ## build on ARM EABI under GNU/Linux. (Bug#5518)
19611 ## FIXME? s/gnu-linux.h used to define LIB_GCC as below, then
19612 ## immediately undefine it again and redefine it to empty.
19613 ## Was the C_SWITCH_X_SITE part really necessary?
19614 ## LIB_GCC=`$CC $C_SWITCH_X_SITE -print-libgcc-file-name`
19620 ## Ask GCC where to find libgcc.a.
19621 *) LIB_GCC
=`$CC -print-libgcc-file-name 2> /dev/null` ;;
19628 ## If we're using X11/GNUstep, define some consequences.
19629 if test "$HAVE_X_WINDOWS" = "yes" ||
test "$HAVE_NS" = "yes"; then
19631 $as_echo "#define HAVE_WINDOW_SYSTEM 1" >>confdefs.h
19634 $as_echo "#define HAVE_MOUSE 1" >>confdefs.h
19636 MOUSE_SUPPORT
="\$(REAL_MOUSE_SUPPORT)"
19637 TOOLTIP_SUPPORT
="\${lispsource}/mouse.elc"
19639 WINDOW_SUPPORT
="\$(BASE_WINDOW_SUPPORT)"
19640 test "$HAVE_X_WINDOWS" = "yes" && \
19641 WINDOW_SUPPORT
="$WINDOW_SUPPORT \$(X_WINDOW_SUPPORT)"
19651 #### Report on what we decided to do.
19652 #### Report GTK as a toolkit, even if it doesn't use Xt.
19653 #### It makes printing result more understandable as using GTK sets
19654 #### toolkit_scroll_bars to yes by default.
19655 if test "${HAVE_GTK}" = "yes"; then
19660 if test -n "$machfile"; then
19661 and_machfile
=" and \`${machfile}'"
19665 Configured for \`${canonical}'.
19667 Where should the build process find the source code? ${srcdir}
19668 What operating system and machine description files should Emacs use?
19669 \`${opsysfile}'${and_machfile}
19670 What compiler should emacs be built with? ${CC} ${CFLAGS}
19671 Should Emacs use the GNU version of malloc? ${GNU_MALLOC}${GNU_MALLOC_reason}
19672 Should Emacs use a relocating allocator for buffers? ${REL_ALLOC}
19673 Should Emacs use mmap(2) for buffer allocation? $use_mmap_for_buffers
19674 What window system should Emacs use? ${window_system}
19675 What toolkit should Emacs use? ${USE_X_TOOLKIT}"
19677 if test -n "${x_includes}"; then
19678 echo " Where do we find X Windows header files? ${x_includes}"
19680 echo " Where do we find X Windows header files? Standard dirs"
19682 if test -n "${x_libraries}"; then
19683 echo " Where do we find X Windows libraries? ${x_libraries}"
19685 echo " Where do we find X Windows libraries? Standard dirs"
19688 echo " Does Emacs use -lXaw3d? ${HAVE_XAW3D}"
19689 echo " Does Emacs use -lXpm? ${HAVE_XPM}"
19690 echo " Does Emacs use -ljpeg? ${HAVE_JPEG}"
19691 echo " Does Emacs use -ltiff? ${HAVE_TIFF}"
19692 echo " Does Emacs use a gif library? ${HAVE_GIF} $LIBGIF"
19693 echo " Does Emacs use -lpng? ${HAVE_PNG}"
19694 echo " Does Emacs use -lrsvg-2? ${HAVE_RSVG}"
19695 echo " Does Emacs use imagemagick? ${HAVE_IMAGEMAGICK}"
19697 echo " Does Emacs use -lgpm? ${HAVE_GPM}"
19698 echo " Does Emacs use -ldbus? ${HAVE_DBUS}"
19699 echo " Does Emacs use -lgconf? ${HAVE_GCONF}"
19700 echo " Does Emacs use -lselinux? ${HAVE_LIBSELINUX}"
19701 echo " Does Emacs use -lgnutls? ${HAVE_GNUTLS}"
19702 echo " Does Emacs use -lxml2? ${HAVE_LIBXML2}"
19704 echo " Does Emacs use -lfreetype? ${HAVE_FREETYPE}"
19705 echo " Does Emacs use -lm17n-flt? ${HAVE_M17N_FLT}"
19706 echo " Does Emacs use -lotf? ${HAVE_LIBOTF}"
19707 echo " Does Emacs use -lxft? ${HAVE_XFT}"
19709 echo " Does Emacs use toolkit scroll bars? ${USE_TOOLKIT_SCROLL_BARS}"
19712 if test $USE_XASSERTS = yes; then
19713 echo " Compiling with asserts turned on."
19714 CPPFLAGS
="$CPPFLAGS -DXASSERTS=1"
19719 if test "$HAVE_NS" = "yes"; then
19721 echo "You must run \"make install\" in order to test the built application.
19722 The installed application will go to nextstep/Emacs.app and can be
19723 run or moved from there."
19724 if test "$EN_NS_SELF_CONTAINED" = "yes"; then
19725 echo "The application will be fully self-contained."
19727 echo "The lisp resources for the application will be installed under ${prefix}.
19728 You may need to run \"make install\" with sudo. The application will fail
19729 to run if these resources are not installed."
19735 # Remove any trailing slashes in these variables.
19736 test "${prefix}" != NONE
&&
19737 prefix
=`echo "${prefix}" | sed 's,\([^/]\)/*$,\1,'`
19738 test "${exec_prefix}" != NONE
&&
19739 exec_prefix
=`echo "${exec_prefix}" | sed 's,\([^/]\)/*$,\1,'`
19741 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"
19744 ac_config_commands
="$ac_config_commands mkdirs"
19747 ac_config_commands
="$ac_config_commands epaths"
19750 ac_config_commands
="$ac_config_commands gdbinit"
19753 cat >confcache
<<\_ACEOF
19754 # This file is a shell script that caches the results of configure
19755 # tests run on this system so they can be shared between configure
19756 # scripts and configure runs, see configure's option --config-cache.
19757 # It is not useful on other systems. If it contains results you don't
19758 # want to keep, you may remove or edit it.
19760 # config.status only pays attention to the cache file if you give it
19761 # the --recheck option to rerun configure.
19763 # `ac_cv_env_foo' variables (set or unset) will be overridden when
19764 # loading this file, other *unset* `ac_cv_foo' will be assigned the
19765 # following values.
19769 # The following way of writing the cache mishandles newlines in values,
19770 # but we know of no workaround that is simple, portable, and efficient.
19771 # So, we kill variables containing newlines.
19772 # Ultrix sh set writes to stderr and can't be redirected directly,
19773 # and sets the high bit in the cache file unless we assign to the vars.
19775 for ac_var
in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
19776 eval ac_val
=\$
$ac_var
19780 *_cv_
*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
19781 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
19784 _ | IFS | as_nl
) ;; #(
19785 BASH_ARGV | BASH_SOURCE
) eval $ac_var= ;; #(
19786 *) { eval $ac_var=; unset $ac_var;} ;;
19792 case $as_nl`(ac_space=' '; set) 2>&1` in #(
19793 *${as_nl}ac_space
=\
*)
19794 # `set' does not quote correctly, so add quotes: double-quote
19795 # substitution turns \\\\ into \\, and sed turns \\ into \.
19798 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
19801 # `set' quotes correctly as required by POSIX, so do not add quotes.
19802 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
19811 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
19813 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
19815 if diff "$cache_file" confcache
>/dev
/null
2>&1; then :; else
19816 if test -w "$cache_file"; then
19817 test "x$cache_file" != "x/dev/null" &&
19818 { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
19819 $as_echo "$as_me: updating cache $cache_file" >&6;}
19820 cat confcache
>$cache_file
19822 { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
19823 $as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
19828 test "x$prefix" = xNONE
&& prefix
=$ac_default_prefix
19829 # Let make expand exec_prefix.
19830 test "x$exec_prefix" = xNONE
&& exec_prefix
='${prefix}'
19832 DEFS
=-DHAVE_CONFIG_H
19837 for ac_i
in : $LIBOBJS; do test "x$ac_i" = x
: && continue
19838 # 1. Remove the extension, and $U if already installed.
19839 ac_script
='s/\$U\././;s/\.o$//;s/\.obj$//'
19840 ac_i
=`$as_echo "$ac_i" | sed "$ac_script"`
19841 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
19842 # will be set to the directory where LIBOBJS objects are built.
19843 as_fn_append ac_libobjs
" \${LIBOBJDIR}$ac_i\$U.$ac_objext"
19844 as_fn_append ac_ltlibobjs
" \${LIBOBJDIR}$ac_i"'$U.lo'
19846 LIBOBJS
=$ac_libobjs
19848 LTLIBOBJS
=$ac_ltlibobjs
19851 if test -n "$EXEEXT"; then
19853 am__EXEEXT_FALSE
='#'
19855 am__EXEEXT_TRUE
='#'
19859 if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
19860 as_fn_error $?
"conditional \"AMDEP\" was never defined.
19861 Usually this means the macro was only invoked conditionally." "$LINENO" 5
19863 if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
19864 as_fn_error $?
"conditional \"am__fastdepCC\" was never defined.
19865 Usually this means the macro was only invoked conditionally." "$LINENO" 5
19868 if test -z "${GL_COND_LIBTOOL_TRUE}" && test -z "${GL_COND_LIBTOOL_FALSE}"; then
19869 as_fn_error $?
"conditional \"GL_COND_LIBTOOL\" was never defined.
19870 Usually this means the macro was only invoked conditionally." "$LINENO" 5
19876 if test -n "$gl_LIBOBJS"; then
19877 # Remove the extension.
19878 sed_drop_objext
='s/\.o$//;s/\.obj$//'
19879 for i
in `for i in $gl_LIBOBJS; do echo "$i"; done | sed -e "$sed_drop_objext" | sort | uniq`; do
19880 gl_libobjs
="$gl_libobjs $i.$ac_objext"
19881 gl_ltlibobjs
="$gl_ltlibobjs $i.lo"
19884 gl_LIBOBJS
=$gl_libobjs
19886 gl_LTLIBOBJS
=$gl_ltlibobjs
19892 if test -n "$gltests_LIBOBJS"; then
19893 # Remove the extension.
19894 sed_drop_objext
='s/\.o$//;s/\.obj$//'
19895 for i
in `for i in $gltests_LIBOBJS; do echo "$i"; done | sed -e "$sed_drop_objext" | sort | uniq`; do
19896 gltests_libobjs
="$gltests_libobjs $i.$ac_objext"
19897 gltests_ltlibobjs
="$gltests_ltlibobjs $i.lo"
19900 gltests_LIBOBJS
=$gltests_libobjs
19902 gltests_LTLIBOBJS
=$gltests_ltlibobjs
19906 : ${CONFIG_STATUS=./config.status}
19908 ac_clean_files_save
=$ac_clean_files
19909 ac_clean_files
="$ac_clean_files $CONFIG_STATUS"
19910 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
19911 $as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
19913 cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
19915 # Generated by $as_me.
19916 # Run this file to recreate the current configuration.
19917 # Compiler output produced by configure, useful for debugging
19918 # configure, is in config.log if it exists.
19921 ac_cs_recheck=false
19924 SHELL=\${CONFIG_SHELL-$SHELL}
19927 cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail
=1
19928 ## -------------------- ##
19929 ## M4sh Initialization. ##
19930 ## -------------------- ##
19932 # Be more Bourne compatible
19933 DUALCASE
=1; export DUALCASE
# for MKS sh
19934 if test -n "${ZSH_VERSION+set}" && (emulate sh
) >/dev
/null
2>&1; then :
19937 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
19938 # is contrary to our usage. Disable this feature.
19939 alias -g '${1+"$@"}'='"$@"'
19940 setopt NO_GLOB_SUBST
19942 case `(set -o) 2>/dev/null` in #(
19954 # Printing a long string crashes Solaris 7 /usr/bin/printf.
19955 as_echo
='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
19956 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
19957 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
19958 # Prefer a ksh shell builtin over an external printf program on Solaris,
19959 # but without wasting forks for bash or zsh.
19960 if test -z "$BASH_VERSION$ZSH_VERSION" \
19961 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
19962 as_echo='print
-r --'
19963 as_echo_n='print
-rn --'
19964 elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
19965 as_echo='printf %s
\n'
19966 as_echo_n='printf %s
'
19968 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
19969 as_echo_body='eval /usr
/ucb
/echo -n "$1$as_nl"'
19970 as_echo_n='/usr
/ucb
/echo -n'
19972 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
19973 as_echo_n_body='eval
19977 expr "X$arg" : "X\\(.*\\)$as_nl";
19978 arg
=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
19980 expr "X$arg" : "X\\(.*\\)" |
tr -d "$as_nl"
19982 export as_echo_n_body
19983 as_echo_n='sh
-c $as_echo_n_body as_echo
'
19985 export as_echo_body
19986 as_echo='sh
-c $as_echo_body as_echo
'
19989 # The user is always right.
19990 if test "${PATH_SEPARATOR+set}" != set; then
19992 (PATH='/bin
;/bin
'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
19993 (PATH='/bin
:/bin
'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
20000 # We need space, tab and new line, in precisely that order. Quoting is
20001 # there to prevent editors from complaining about space-tab.
20002 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
20003 # splitting by setting IFS to empty value.)
20006 # Find who we are. Look in the path if we contain no directory separator.
20008 *[\\/]* ) as_myself=$0 ;;
20009 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
20010 for as_dir in $PATH
20013 test -z "$as_dir" && as_dir=.
20014 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
20020 # We did not find ourselves, most probably we were run as `sh COMMAND'
20021 # in which case we are not to be found in the path.
20022 if test "x$as_myself" = x
; then
20025 if test ! -f "$as_myself"; then
20026 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
20030 # Unset variables that we do not need and which cause bugs (e.g. in
20031 # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
20032 # suppresses any "Segmentation fault" message there. '((' could
20033 # trigger a bug in pdksh 5.2.14.
20034 for as_var
in BASH_ENV ENV MAIL MAILPATH
20035 do eval test x\
${$as_var+set} = xset \
20036 && ( (unset $as_var) ||
exit 1) >/dev
/null
2>&1 && unset $as_var ||
:
20049 (unset CDPATH
) >/dev
/null
2>&1 && unset CDPATH
20052 # as_fn_error STATUS ERROR [LINENO LOG_FD]
20053 # ----------------------------------------
20054 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
20055 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
20056 # script with STATUS, using 1 if that was 0.
20059 as_status
=$1; test $as_status -eq 0 && as_status
=1
20061 as_lineno
=${as_lineno-"$3"} as_lineno_stack
=as_lineno_stack
=$as_lineno_stack
20062 $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
20064 $as_echo "$as_me: error: $2" >&2
20065 as_fn_exit
$as_status
20069 # as_fn_set_status STATUS
20070 # -----------------------
20071 # Set $? to STATUS, without forking.
20072 as_fn_set_status
()
20075 } # as_fn_set_status
20077 # as_fn_exit STATUS
20078 # -----------------
20079 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
20083 as_fn_set_status
$1
20089 # Portably unset VAR.
20092 { eval $1=; unset $1;}
20094 as_unset
=as_fn_unset
20095 # as_fn_append VAR VALUE
20096 # ----------------------
20097 # Append the text in VALUE to the end of the definition contained in VAR. Take
20098 # advantage of any shell optimizations that allow amortized linear growth over
20099 # repeated appends, instead of the typical quadratic growth present in naive
20101 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev
/null
; then :
20102 eval 'as_fn_append ()
20113 # as_fn_arith ARG...
20114 # ------------------
20115 # Perform arithmetic evaluation on the ARGs, and store the result in the
20116 # global $as_val. Take advantage of shells that can avoid forks. The arguments
20117 # must be portable across $(()) and expr.
20118 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev
/null
; then :
20119 eval 'as_fn_arith ()
20126 as_val
=`expr "$@" || test $? -eq 1`
20131 if expr a
: '\(a\)' >/dev
/null
2>&1 &&
20132 test "X`expr 00001 : '.*\(...\)'`" = X001
; then
20138 if (basename -- /) >/dev
/null
2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
20139 as_basename
=basename
20144 if (as_dir
=`dirname -- /` && test "X$as_dir" = X
/) >/dev
/null
2>&1; then
20150 as_me
=`$as_basename -- "$0" ||
20151 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
20152 X"$0" : 'X\(//\)$' \| \
20153 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
20155 sed '/^.*\/\([^/][^/]*\)\/*$/{
20169 # Avoid depending upon Character Ranges.
20170 as_cr_letters
='abcdefghijklmnopqrstuvwxyz'
20171 as_cr_LETTERS
='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
20172 as_cr_Letters
=$as_cr_letters$as_cr_LETTERS
20173 as_cr_digits
='0123456789'
20174 as_cr_alnum
=$as_cr_Letters$as_cr_digits
20176 ECHO_C
= ECHO_N
= ECHO_T
=
20177 case `echo -n x` in #(((((
20179 case `echo 'xy\c'` in
20180 *c
*) ECHO_T
=' ';; # ECHO_T is single tab character.
20182 *) echo `echo ksh88 bug on AIX 6.1` > /dev
/null
20189 rm -f conf$$ conf$$.exe conf$$.
file
20190 if test -d conf$$.dir
; then
20191 rm -f conf$$.dir
/conf$$.
file
20194 mkdir conf$$.dir
2>/dev
/null
20196 if (echo >conf$$.
file) 2>/dev
/null
; then
20197 if ln -s conf$$.
file conf$$
2>/dev
/null
; then
20199 # ... but there are two gotchas:
20200 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
20201 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
20202 # In both cases, we have to default to `cp -p'.
20203 ln -s conf$$.
file conf$$.dir
2>/dev
/null
&& test ! -f conf$$.exe ||
20205 elif ln conf$$.
file conf$$
2>/dev
/null
; then
20213 rm -f conf$$ conf$$.exe conf$$.dir
/conf$$.
file conf$$.
file
20214 rmdir conf$$.dir
2>/dev
/null
20219 # Create "$as_dir" as a directory, including parents if necessary.
20224 -*) as_dir
=.
/$as_dir;;
20226 test -d "$as_dir" ||
eval $as_mkdir_p ||
{
20230 *\'*) as_qdir
=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
20231 *) as_qdir
=$as_dir;;
20233 as_dirs
="'$as_qdir' $as_dirs"
20234 as_dir
=`$as_dirname -- "$as_dir" ||
20235 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
20236 X"$as_dir" : 'X\(//\)[^/]' \| \
20237 X"$as_dir" : 'X\(//\)$' \| \
20238 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
20239 $as_echo X"$as_dir" |
20240 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
20244 /^X\(\/\/\)[^/].*/{
20257 test -d "$as_dir" && break
20259 test -z "$as_dirs" ||
eval "mkdir $as_dirs"
20260 } ||
test -d "$as_dir" || as_fn_error $?
"cannot create directory $as_dir"
20264 if mkdir
-p .
2>/dev
/null
; then
20265 as_mkdir_p
='mkdir -p "$as_dir"'
20267 test -d .
/-p && rmdir .
/-p
20271 if test -x / >/dev
/null
2>&1; then
20272 as_test_x
='test -x'
20274 if ls -dL / >/dev
/null
2>&1; then
20281 if test -d "$1"; then
20287 case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in #((
20288 ???[sx]*):;;*)false;;esac;fi
20292 as_executable_p
=$as_test_x
20294 # Sed expression to map a string onto a valid CPP name.
20295 as_tr_cpp
="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
20297 # Sed expression to map a string onto a valid variable name.
20298 as_tr_sh
="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
20302 ## ----------------------------------- ##
20303 ## Main body of $CONFIG_STATUS script. ##
20304 ## ----------------------------------- ##
20306 test $as_write_fail = 0 && chmod +x
$CONFIG_STATUS || ac_write_fail
=1
20308 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail
=1
20309 # Save the log message, to keep $0 and so on meaningful, and to
20310 # report actual input values of CONFIG_FILES etc. instead of their
20311 # values after options handling.
20313 This file was extended by emacs $as_me 24.0.50, which was
20314 generated by GNU Autoconf 2.67. Invocation command line was
20316 CONFIG_FILES = $CONFIG_FILES
20317 CONFIG_HEADERS = $CONFIG_HEADERS
20318 CONFIG_LINKS = $CONFIG_LINKS
20319 CONFIG_COMMANDS = $CONFIG_COMMANDS
20322 on `(hostname || uname -n) 2>/dev/null | sed 1q`
20327 case $ac_config_files in *"
20328 "*) set x
$ac_config_files; shift; ac_config_files
=$
*;;
20331 case $ac_config_headers in *"
20332 "*) set x
$ac_config_headers; shift; ac_config_headers
=$
*;;
20336 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
20337 # Files that config.status was made for.
20338 config_files="$ac_config_files"
20339 config_headers="$ac_config_headers"
20340 config_commands="$ac_config_commands"
20344 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail
=1
20346 \`$as_me' instantiates files and other configuration actions
20347 from templates according to the current configuration. Unless the files
20348 and actions are specified as TAGs, all are instantiated by default.
20350 Usage: $0 [OPTION]... [TAG]...
20352 -h, --help print this help, then exit
20353 -V, --version print version number and configuration settings, then exit
20354 --config print configuration, then exit
20355 -q, --quiet, --silent
20356 do not print progress messages
20357 -d, --debug don't remove temporary files
20358 --recheck update $as_me by reconfiguring in the same conditions
20359 --file=FILE[:TEMPLATE]
20360 instantiate the configuration file FILE
20361 --header=FILE[:TEMPLATE]
20362 instantiate the configuration header FILE
20364 Configuration files:
20367 Configuration headers:
20370 Configuration commands:
20373 Report bugs to the package provider."
20376 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
20377 ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`"
20379 emacs config.status 24.0.50
20380 configured by $0, generated by GNU Autoconf 2.67,
20381 with options \\"\$ac_cs_config\\"
20383 Copyright (C) 2010 Free Software Foundation, Inc.
20384 This config.status script is free software; the Free Software Foundation
20385 gives unlimited permission to copy, distribute and modify it."
20392 test -n "\$AWK" || AWK=awk
20395 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail
=1
20396 # The default lists apply if the user does not specify any file.
20402 ac_option
=`expr "X$1" : 'X\([^=]*\)='`
20403 ac_optarg
=`expr "X$1" : 'X[^=]*=\(.*\)'`
20407 ac_option
=`expr "X$1" : 'X\([^=]*\)='`
20419 # Handling of the options.
20420 -recheck |
--recheck |
--rechec |
--reche |
--rech |
--rec |
--re |
--r)
20422 --version |
--versio |
--versi |
--vers |
--ver |
--ve |
--v |
-V )
20423 $as_echo "$ac_cs_version"; exit ;;
20424 --config |
--confi |
--conf |
--con |
--co |
--c )
20425 $as_echo "$ac_cs_config"; exit ;;
20426 --debug |
--debu |
--deb |
--de |
--d |
-d )
20428 --file |
--fil |
--fi |
--f )
20431 *\'*) ac_optarg
=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
20432 '') as_fn_error $?
"missing file argument" ;;
20434 as_fn_append CONFIG_FILES
" '$ac_optarg'"
20435 ac_need_defaults
=false
;;
20436 --header |
--heade |
--head |
--hea )
20439 *\'*) ac_optarg
=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
20441 as_fn_append CONFIG_HEADERS
" '$ac_optarg'"
20442 ac_need_defaults
=false
;;
20444 # Conflict between --help and --header
20445 as_fn_error $?
"ambiguous option: \`$1'
20446 Try \`$0 --help' for more information.";;
20447 --help |
--hel |
-h )
20448 $as_echo "$ac_cs_usage"; exit ;;
20449 -q |
-quiet |
--quiet |
--quie |
--qui |
--qu |
--q \
20450 |
-silent |
--silent |
--silen |
--sile |
--sil |
--si |
--s)
20453 # This is an error.
20454 -*) as_fn_error $?
"unrecognized option: \`$1'
20455 Try \`$0 --help' for more information." ;;
20457 *) as_fn_append ac_config_targets
" $1"
20458 ac_need_defaults
=false
;;
20464 ac_configure_extra_args
=
20466 if $ac_cs_silent; then
20468 ac_configure_extra_args
="$ac_configure_extra_args --silent"
20472 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
20473 if \$ac_cs_recheck; then
20474 set X '$SHELL' '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
20476 \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
20477 CONFIG_SHELL='$SHELL'
20478 export CONFIG_SHELL
20483 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail
=1
20487 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
20488 ## Running $as_me. ##
20494 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
20498 AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"
20499 GCC="$GCC" NON_GNU_CPP="$NON_GNU_CPP" CPP="$CPP" CPPFLAGS="$CPPFLAGS"
20503 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail
=1
20505 # Handling of arguments.
20506 for ac_config_target
in $ac_config_targets
20508 case $ac_config_target in
20509 "src/config.h") CONFIG_HEADERS
="$CONFIG_HEADERS src/config.h:src/config.in" ;;
20510 "depfiles") CONFIG_COMMANDS
="$CONFIG_COMMANDS depfiles" ;;
20511 "Makefile") CONFIG_FILES
="$CONFIG_FILES Makefile" ;;
20512 "lib/Makefile") CONFIG_FILES
="$CONFIG_FILES lib/Makefile" ;;
20513 "lib-src/Makefile") CONFIG_FILES
="$CONFIG_FILES lib-src/Makefile" ;;
20514 "oldXMenu/Makefile") CONFIG_FILES
="$CONFIG_FILES oldXMenu/Makefile" ;;
20515 "doc/emacs/Makefile") CONFIG_FILES
="$CONFIG_FILES doc/emacs/Makefile" ;;
20516 "doc/misc/Makefile") CONFIG_FILES
="$CONFIG_FILES doc/misc/Makefile" ;;
20517 "doc/lispintro/Makefile") CONFIG_FILES
="$CONFIG_FILES doc/lispintro/Makefile" ;;
20518 "doc/lispref/Makefile") CONFIG_FILES
="$CONFIG_FILES doc/lispref/Makefile" ;;
20519 "src/Makefile") CONFIG_FILES
="$CONFIG_FILES src/Makefile" ;;
20520 "lwlib/Makefile") CONFIG_FILES
="$CONFIG_FILES lwlib/Makefile" ;;
20521 "lisp/Makefile") CONFIG_FILES
="$CONFIG_FILES lisp/Makefile" ;;
20522 "leim/Makefile") CONFIG_FILES
="$CONFIG_FILES leim/Makefile" ;;
20523 "test/automated/Makefile") CONFIG_FILES
="$CONFIG_FILES test/automated/Makefile" ;;
20524 "mkdirs") CONFIG_COMMANDS
="$CONFIG_COMMANDS mkdirs" ;;
20525 "epaths") CONFIG_COMMANDS
="$CONFIG_COMMANDS epaths" ;;
20526 "gdbinit") CONFIG_COMMANDS
="$CONFIG_COMMANDS gdbinit" ;;
20528 *) as_fn_error $?
"invalid argument: \`$ac_config_target'" "$LINENO" 5 ;;
20533 # If the user did not use the arguments to specify the items to instantiate,
20534 # then the envvar interface is used. Set only those that are not.
20535 # We use the long form for the default assignment because of an extremely
20536 # bizarre bug on SunOS 4.1.3.
20537 if $ac_need_defaults; then
20538 test "${CONFIG_FILES+set}" = set || CONFIG_FILES
=$config_files
20539 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS
=$config_headers
20540 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS
=$config_commands
20543 # Have a temporary directory for convenience. Make it in the build tree
20544 # simply because there is no reason against having it here, and in addition,
20545 # creating and moving files from /tmp can sometimes cause problems.
20546 # Hook for its removal unless debugging.
20547 # Note that there is a small window in which the directory will not be cleaned:
20548 # after its creation but before its name has been assigned to `$tmp'.
20552 trap 'exit_status=$?
20553 { test -z "$tmp" || test ! -d "$tmp" || rm -fr "$tmp"; } && exit $exit_status
20555 trap 'as_fn_exit 1' 1 2 13 15
20557 # Create a (secure) tmp directory for tmp files.
20560 tmp
=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
20561 test -n "$tmp" && test -d "$tmp"
20564 tmp
=.
/conf$$
-$RANDOM
20565 (umask 077 && mkdir
"$tmp")
20566 } || as_fn_error $?
"cannot create a temporary directory in ." "$LINENO" 5
20568 # Set up the scripts for CONFIG_FILES section.
20569 # No need to generate them if there are no CONFIG_FILES.
20570 # This happens for instance with `./config.status config.h'.
20571 if test -n "$CONFIG_FILES"; then
20573 if $AWK 'BEGIN { getline <"/dev/null" }' </dev
/null
2>/dev
/null
; then
20574 ac_cs_awk_getline
=:
20575 ac_cs_awk_pipe_init
=
20576 ac_cs_awk_read_file
='
20577 while ((getline aline < (F[key])) > 0)
20580 ac_cs_awk_pipe_fini
=
20582 ac_cs_awk_getline
=false
20583 ac_cs_awk_pipe_init
="print \"cat <<'|#_!!_#|' &&\""
20584 ac_cs_awk_read_file
='
20586 print "cat " F[key] " &&"
20587 '$ac_cs_awk_pipe_init
20588 # The final `:' finishes the AND list.
20589 ac_cs_awk_pipe_fini
='END { print "|#_!!_#|"; print ":" }'
20591 ac_cr
=`echo X | tr X '\015'`
20592 # On cygwin, bash can eat \r inside `` if the user requested igncr.
20593 # But we know of no other shell where ac_cr would be empty at this
20594 # point, so we can use a bashism as a fallback.
20595 if test "x$ac_cr" = x
; then
20596 eval ac_cr
=\$
\'\\r
\'
20598 ac_cs_awk_cr
=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
20599 if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
20602 ac_cs_awk_cr
=$ac_cr
20605 echo 'BEGIN {' >"$tmp/subs1.awk" &&
20608 # Create commands to substitute file output variables.
20610 echo "cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1" &&
20611 echo 'cat >>"\$tmp/subs1.awk" <<\\_ACAWK &&' &&
20612 echo "$ac_subst_files" |
sed 's/.*/F["&"]="$&"/' &&
20615 } >conf$
$files.sh
&&
20616 . .
/conf$
$files.sh ||
20617 as_fn_error $?
"could not make $CONFIG_STATUS" "$LINENO" 5
20618 rm -f conf$
$files.sh
20621 echo "cat >conf$$subs.awk <<_ACEOF" &&
20622 echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
20624 } >conf$$subs.sh ||
20625 as_fn_error $? "could not
make $CONFIG_STATUS" "$LINENO" 5
20626 ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'`
20628 for ac_last_try in false false false false false :; do
20629 . ./conf$$subs.sh ||
20630 as_fn_error $? "could not
make $CONFIG_STATUS" "$LINENO" 5
20632 ac_delim_n=`sed -n "s
/.
*$ac_delim\$
/X
/p
" conf$$subs.awk | grep -c X`
20633 if test $ac_delim_n = $ac_delim_num; then
20635 elif $ac_last_try; then
20636 as_fn_error $? "could not
make $CONFIG_STATUS" "$LINENO" 5
20638 ac_delim="$ac_delim!$ac_delim _
$ac_delim!! "
20641 rm -f conf$$subs.sh
20643 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
20644 cat >>"\
$tmp/subs1.
awk" <<\\_ACAWK &&
20648 s/^/S["/; s
/!.
*/"]=/
20658 s/\(.\{148\}\)..*/\1/
20660 s/["\\]/\\&/g
; s
/^
/"/; s/$/\\n"\\/
20665 s
/["\\]/\\&/g; s/^/"/; s
/$
/"\\/
20672 s/\(.\{148\}\)..*/\1/
20674 s/["\\]/\\&/g
; s
/^
/"/; s/$/"/
20678 s
/["\\]/\\&/g; s/^/"/; s
/$
/"\\/
20683 ' <conf$$subs.awk | sed '
20688 ' >>$CONFIG_STATUS || ac_write_fail=1
20689 rm -f conf$$subs.awk
20690 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
20692 cat >>"\
$tmp/subs1.
awk" <<_ACAWK &&
20693 for (key in S) S_is_set[key] = 1
20695 \$ac_cs_awk_pipe_init
20699 nfields = split(line, field, "@
")
20701 len = length(field[1])
20702 for (i = 2; i < nfields; i++) {
20704 keylen = length(key)
20705 if (S_is_set[key]) {
20707 line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
20708 len += length(value) + length(field[++i])
20713 if (nfields == 3 && !substed) {
20715 if (F[key] != "" && line ~ /^[ ]*@.*@[ ]*$/) {
20716 \$ac_cs_awk_read_file
20722 \$ac_cs_awk_pipe_fini
20725 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
20726 if sed "s
/$ac_cr//" < /dev/null > /dev/null 2>&1; then
20727 sed "s
/$ac_cr\$
//; s
/$ac_cr/$ac_cs_awk_cr/g
"
20730 fi < "$tmp/subs1.
awk" > "$tmp/subs.
awk" \
20731 || as_fn_error $? "could not setup config files machinery
" "$LINENO" 5
20734 # VPATH may cause trouble with some makes, so we remove sole $(srcdir),
20735 # ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".
", strip leading and
20736 # trailing colons and then remove the whole line if VPATH becomes empty
20737 # (actually we leave an empty line to preserve line numbers).
20738 if test "x
$srcdir" = x.; then
20739 ac_vpsub='/^[ ]*VPATH[ ]*=[ ]*/{
20757 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
20758 fi # test -n "$CONFIG_FILES"
20760 # Set up the scripts for CONFIG_HEADERS section.
20761 # No need to generate them if there are no CONFIG_HEADERS.
20762 # This happens for instance with `./config.status Makefile'.
20763 if test -n "$CONFIG_HEADERS"; then
20764 cat >"$tmp/defines.
awk" <<\_ACAWK ||
20768 # Transform confdefs.h into an awk script `defines.awk', embedded as
20769 # here-document in config.status, that substitutes the proper values into
20770 # config.h.in to produce config.h.
20772 # Create a delimiter string that does not exist in confdefs.h, to ease
20773 # handling of long lines.
20775 for ac_last_try in false false :; do
20776 ac_t=`sed -n "/$ac_delim/p
" confdefs.h`
20777 if test -z "$ac_t"; then
20779 elif $ac_last_try; then
20780 as_fn_error $? "could not
make $CONFIG_HEADERS" "$LINENO" 5
20782 ac_delim="$ac_delim!$ac_delim _
$ac_delim!! "
20786 # For the awk script, D is an array of macro values keyed by name,
20787 # likewise P contains macro parameters if any. Preserve backslash
20788 # newline sequences.
20790 ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
20792 s/.\{148\}/&'"$ac_delim"'/g
20795 s/^[ ]*#[ ]*define[ ][ ]*/ /
20802 s
/^ \
('"$ac_word_re"'\
)\
(([^
()]*)\
)[ ]*\
(.
*\
)/P
["\1"]="\2"\
20804 s
/^ \
('"$ac_word_re"'\
)[ ]*\
(.
*\
)/D
["\1"]=" \2"/p
20808 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\
1"]="\
2"\
20809 D["\
1"]=" \
3\\\\\\n
"\\/p
20811 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\
1"]=" \
2\\\\\\n
"\\/p
20816 s/.\{148\}/&'"$ac_delim"'/g
20821 s/["\\]/\\&/g
; s
/^
/"/; s/$/"/p
20824 s
/["\\]/\\&/g; s/^/"/; s
/$
/\\\\\\n
"\\/p
20826 ' <confdefs.h | sed '
20827 s/'"$ac_delim"'/"\\\
20828 "/g' >>$CONFIG_STATUS || ac_write_fail=1
20830 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
20831 for (key in D) D_is_set[key] = 1
20834 /^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
20836 split(line, arg, " ")
20837 if (arg[1] == "#") {
20841 defundef
= substr
(arg
[1], 2)
20844 split(mac1
, mac2
, "(") #)
20846 prefix
= substr
(line
, 1, index
(line
, defundef
) - 1)
20847 if (D_is_set
[macro
]) {
20848 # Preserve the white space surrounding the "#".
20849 print prefix
"define", macro P
[macro
] D
[macro
]
20852 # Replace #undef with comments. This is necessary, for example,
20853 # in the case of _POSIX_SOURCE, which is predefined and required
20854 # on some systems where configure will not decide to define it.
20855 if (defundef
== "undef") {
20856 print
"/*", prefix defundef
, macro
, "*/"
20864 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail
=1
20865 as_fn_error $?
"could not setup config headers machinery" "$LINENO" 5
20866 fi # test -n "$CONFIG_HEADERS"
20869 eval set X
" :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS"
20874 :[FHLC
]) ac_mode
=$ac_tag; continue;;
20876 case $ac_mode$ac_tag in
20878 :L
* |
:C
*:*) as_fn_error $?
"invalid tag \`$ac_tag'" "$LINENO" 5 ;;
20879 :[FH
]-) ac_tag
=-:-;;
20880 :[FH
]*) ac_tag
=$ac_tag:$ac_tag.
in;;
20897 -) ac_f
="$tmp/stdin";;
20898 *) # Look for the file first in the build tree, then in the source tree
20899 # (if the path is not absolute). The absolute path cannot be DOS-style,
20900 # because $ac_f cannot contain `:'.
20904 *) test -f "$srcdir/$ac_f" && ac_f
="$srcdir/$ac_f";;
20906 as_fn_error
1 "cannot find input file: \`$ac_f'" "$LINENO" 5 ;;
20908 case $ac_f in *\'*) ac_f
=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
20909 as_fn_append ac_file_inputs
" '$ac_f'"
20912 # Let's still pretend it is `configure' which instantiates (i.e., don't
20913 # use $as_me), people would be surprised to read:
20914 # /* config.h. Generated by config.status. */
20915 configure_input
='Generated from '`
20916 $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
20918 if test x
"$ac_file" != x-
; then
20919 configure_input
="$ac_file. $configure_input"
20920 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
20921 $as_echo "$as_me: creating $ac_file" >&6;}
20923 # Neutralize special characters interpreted by sed in replacement strings.
20924 case $configure_input in #(
20925 *\
&* |
*\|
* |
*\\* )
20926 ac_sed_conf_input
=`$as_echo "$configure_input" |
20927 sed 's/[\\\\&|]/\\\\&/g'`;; #(
20928 *) ac_sed_conf_input
=$configure_input;;
20932 *:-:* |
*:-) cat >"$tmp/stdin" \
20933 || as_fn_error $?
"could not create $ac_file" "$LINENO" 5 ;;
20938 ac_dir
=`$as_dirname -- "$ac_file" ||
20939 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
20940 X"$ac_file" : 'X\(//\)[^/]' \| \
20941 X"$ac_file" : 'X\(//\)$' \| \
20942 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
20943 $as_echo X"$ac_file" |
20944 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
20948 /^X\(\/\/\)[^/].*/{
20961 as_dir
="$ac_dir"; as_fn_mkdir_p
20965 .
) ac_dir_suffix
= ac_top_builddir_sub
=. ac_top_build_prefix
= ;;
20967 ac_dir_suffix
=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
20968 # A ".." for each directory in $ac_dir_suffix.
20969 ac_top_builddir_sub
=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
20970 case $ac_top_builddir_sub in
20971 "") ac_top_builddir_sub
=. ac_top_build_prefix
= ;;
20972 *) ac_top_build_prefix
=$ac_top_builddir_sub/ ;;
20975 ac_abs_top_builddir
=$ac_pwd
20976 ac_abs_builddir
=$ac_pwd$ac_dir_suffix
20977 # for backward compatibility:
20978 ac_top_builddir
=$ac_top_build_prefix
20981 .
) # We are building in place.
20983 ac_top_srcdir
=$ac_top_builddir_sub
20984 ac_abs_top_srcdir
=$ac_pwd ;;
20985 [\\/]* | ?
:[\\/]* ) # Absolute name.
20986 ac_srcdir
=$srcdir$ac_dir_suffix;
20987 ac_top_srcdir
=$srcdir
20988 ac_abs_top_srcdir
=$srcdir ;;
20989 *) # Relative name.
20990 ac_srcdir
=$ac_top_build_prefix$srcdir$ac_dir_suffix
20991 ac_top_srcdir
=$ac_top_build_prefix$srcdir
20992 ac_abs_top_srcdir
=$ac_pwd/$srcdir ;;
20994 ac_abs_srcdir
=$ac_abs_top_srcdir$ac_dir_suffix
21004 [\\/$
]* | ?
:[\\/]* ) ac_INSTALL
=$INSTALL ;;
21005 *) ac_INSTALL
=$ac_top_build_prefix$INSTALL ;;
21007 ac_MKDIR_P
=$MKDIR_P
21009 [\\/$
]* | ?
:[\\/]* ) ;;
21010 */*) ac_MKDIR_P
=$ac_top_build_prefix$MKDIR_P ;;
21014 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail
=1
21015 # If the template does not know about datarootdir, expand it.
21016 # FIXME: This hack should be removed a few years after 2.60.
21017 ac_datarootdir_hack
=; ac_datarootdir_seen
=
21028 case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
21029 *datarootdir
*) ac_datarootdir_seen
=yes;;
21030 *@datadir@
*|
*@docdir@
*|
*@infodir@
*|
*@localedir@
*|
*@mandir@
*)
21031 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
21032 $as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
21034 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
21035 ac_datarootdir_hack='
21036 s&@datadir@&$datadir&g
21037 s&@docdir@&$docdir&g
21038 s&@infodir@&$infodir&g
21039 s&@localedir@&$localedir&g
21040 s&@mandir@&$mandir&g
21041 s&\\\${datarootdir}&$datarootdir&g' ;;
21045 # Neutralize VPATH when `$srcdir' = `.'.
21046 # Shell code in configure.ac might set extrasub.
21047 # FIXME: do we really want to maintain this feature?
21048 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
21049 ac_sed_extra="$ac_vpsub
21052 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail
=1
21054 /@
[a-zA-Z_
][a-zA-Z_0-9
]*@
/!b
21055 s|@configure_input@|
$ac_sed_conf_input|
;t t
21056 s
&@top_builddir@
&$ac_top_builddir_sub&;t t
21057 s
&@top_build_prefix@
&$ac_top_build_prefix&;t t
21058 s
&@srcdir@
&$ac_srcdir&;t t
21059 s
&@abs_srcdir@
&$ac_abs_srcdir&;t t
21060 s
&@top_srcdir@
&$ac_top_srcdir&;t t
21061 s
&@abs_top_srcdir@
&$ac_abs_top_srcdir&;t t
21062 s
&@builddir@
&$ac_builddir&;t t
21063 s
&@abs_builddir@
&$ac_abs_builddir&;t t
21064 s
&@abs_top_builddir@
&$ac_abs_top_builddir&;t t
21065 s
&@INSTALL@
&$ac_INSTALL&;t t
21066 s
&@MKDIR_P@
&$ac_MKDIR_P&;t t
21067 $ac_datarootdir_hack
21069 eval sed \"\$ac_sed_extra\" "$ac_file_inputs" |
21070 if $ac_cs_awk_getline; then
21071 $AWK -f "$tmp/subs.
awk"
21073 $AWK -f "$tmp/subs.
awk" | $SHELL
21075 || as_fn_error $? "could not create
$ac_file" "$LINENO" 5
21077 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
21078 { ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out
"`; test -n "$ac_out"; } &&
21079 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' "$tmp/out
"`; test -z "$ac_out"; } &&
21080 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING
: $ac_file contains a reference to the variable \
`datarootdir'
21081 which seems to be undefined. Please make sure it is defined" >&5
21082 $as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir
'
21083 which seems to be undefined. Please make sure it is defined" >&2;}
21087 -) cat "$tmp/out" && rm -f "$tmp/out";;
21088 *) rm -f "$ac_file" && mv "$tmp/out" "$ac_file";;
21090 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
21096 if test x"$ac_file" != x-; then
21098 $as_echo "/* $configure_input */" \
21099 && eval '$AWK -f "$tmp/defines.awk"' "$ac_file_inputs"
21100 } >"$tmp/config.h" \
21101 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
21102 if diff "$ac_file" "$tmp/config.h" >/dev/null 2>&1; then
21103 { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5
21104 $as_echo "$as_me: $ac_file is unchanged" >&6;}
21107 mv "$tmp/config.h" "$ac_file" \
21108 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
21111 $as_echo "/* $configure_input */" \
21112 && eval '$AWK -f "$tmp/defines.awk"' "$ac_file_inputs" \
21113 || as_fn_error $? "could not create -" "$LINENO" 5
21115 # Compute "$ac_file"'s index
in $config_headers.
21118 for _am_header
in $config_headers :; do
21119 case $_am_header in
21120 $_am_arg |
$_am_arg:* )
21123 _am_stamp_count
=`expr $_am_stamp_count + 1` ;;
21126 echo "timestamp for $_am_arg" >`$as_dirname -- "$_am_arg" ||
21127 $as_expr X"$_am_arg" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
21128 X"$_am_arg" : 'X\(//\)[^/]' \| \
21129 X"$_am_arg" : 'X\(//\)$' \| \
21130 X"$_am_arg" : 'X\(/\)' \| . 2>/dev/null ||
21131 $as_echo X"$_am_arg" |
21132 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
21136 /^X\(\/\/\)[^/].*/{
21148 s/.*/./; q'`/stamp-h
$_am_stamp_count
21151 :C
) { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5
21152 $as_echo "$as_me: executing $ac_file commands" >&6;}
21157 case $ac_file$ac_mode in
21158 "depfiles":C
) test x
"$AMDEP_TRUE" != x
"" ||
{
21159 # Autoconf 2.62 quotes --file arguments for eval, but not when files
21160 # are listed without --file. Let's play safe and only enable the eval
21161 # if we detect the quoting.
21162 case $CONFIG_FILES in
21163 *\'*) eval set x
"$CONFIG_FILES" ;;
21164 *) set x
$CONFIG_FILES ;;
21169 # Strip MF so we end up with the name of the file.
21170 mf
=`echo "$mf" | sed -e 's/:.*$//'`
21171 # Check whether this is an Automake generated Makefile or not.
21172 # We used to match only the files named `Makefile.in', but
21173 # some people rename them; so instead we look at the file content.
21174 # Grep'ing the first line is not enough: some people post-process
21175 # each Makefile.in and add a new line on top of each file to say so.
21176 # Grep'ing the whole file is not good either: AIX grep has a line
21177 # limit of 2048, but all sed's we know have understand at least 4000.
21178 if sed -n 's,^#.*generated by automake.*,X,p' "$mf" |
grep X
>/dev
/null
2>&1; then
21179 dirpart
=`$as_dirname -- "$mf" ||
21180 $as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
21181 X"$mf" : 'X\(//\)[^/]' \| \
21182 X"$mf" : 'X\(//\)$' \| \
21183 X"$mf" : 'X\(/\)' \| . 2>/dev/null ||
21185 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
21189 /^X\(\/\/\)[^/].*/{
21205 # Extract the definition of DEPDIR, am__include, and am__quote
21206 # from the Makefile without running `make'.
21207 DEPDIR
=`sed -n 's/^DEPDIR = //p' < "$mf"`
21208 test -z "$DEPDIR" && continue
21209 am__include
=`sed -n 's/^am__include = //p' < "$mf"`
21210 test -z "am__include" && continue
21211 am__quote
=`sed -n 's/^am__quote = //p' < "$mf"`
21212 # When using ansi2knr, U may be empty or an underscore; expand it
21213 U
=`sed -n 's/^U = //p' < "$mf"`
21214 # Find all dependency output files, they are included files with
21215 # $(DEPDIR) in their names. We invoke sed twice because it is the
21216 # simplest approach to changing $(DEPDIR) to its actual value in the
21218 for file in `sed -n "
21219 s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \
21220 sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g' -e 's/\$U/'"$U"'/g'`; do
21221 # Make sure the directory exists.
21222 test -f "$dirpart/$file" && continue
21223 fdir
=`$as_dirname -- "$file" ||
21224 $as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
21225 X"$file" : 'X\(//\)[^/]' \| \
21226 X"$file" : 'X\(//\)$' \| \
21227 X"$file" : 'X\(/\)' \| . 2>/dev/null ||
21228 $as_echo X"$file" |
21229 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
21233 /^X\(\/\/\)[^/].*/{
21246 as_dir
=$dirpart/$fdir; as_fn_mkdir_p
21247 # echo "creating $dirpart/$file"
21248 echo '# dummy' > "$dirpart/$file"
21254 for dir
in etc lisp
; do
21255 test -d ${dir} || mkdir
${dir}
21259 echo creating src
/epaths.h
21260 ${MAKE-make} epaths-force
21263 if test ! -f src
/.gdbinit
&& test -f $srcdir/src
/.gdbinit
; then
21264 echo creating src
/.gdbinit
21265 echo source $srcdir/src
/.gdbinit
> src
/.gdbinit
21275 ac_clean_files
=$ac_clean_files_save
21277 test $ac_write_fail = 0 ||
21278 as_fn_error $?
"write failure creating $CONFIG_STATUS" "$LINENO" 5
21281 # configure is writing to config.log, and then calls config.status.
21282 # config.status does its own redirection, appending to config.log.
21283 # Unfortunately, on DOS this fails, as config.log is still kept open
21284 # by configure, so config.status won't be able to write to it; its
21285 # output is simply discarded. So we exec the FD to /dev/null,
21286 # effectively closing config.log, so it can be properly (re)opened and
21287 # appended to by config.status. When coming back to configure, we
21288 # need to make the FD available again.
21289 if test "$no_create" != yes; then
21291 ac_config_status_args
=
21292 test "$silent" = yes &&
21293 ac_config_status_args
="$ac_config_status_args --quiet"
21295 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success
=false
21297 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
21298 # would make configure fail if this is the last instruction.
21299 $ac_cs_success || as_fn_exit
1
21301 if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no
; then
21302 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
21303 $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}