2 # Guess values for system-dependent variables and create Makefiles.
3 # Generated by GNU Autoconf 2.68 for emacs 24.0.50.
6 # Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
7 # 2002, 2003, 2004, 2005, 2006, 2007, 2008, 2009, 2010 Free Software
11 # This configure script is free software; the Free Software Foundation
12 # gives unlimited permission to copy, distribute and modify it.
13 ## -------------------- ##
14 ## M4sh Initialization. ##
15 ## -------------------- ##
17 # Be more Bourne compatible
18 DUALCASE
=1; export DUALCASE
# for MKS sh
19 if test -n "${ZSH_VERSION+set}" && (emulate sh
) >/dev
/null
2>&1; then :
22 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
23 # is contrary to our usage. Disable this feature.
24 alias -g '${1+"$@"}'='"$@"'
27 case `(set -o) 2>/dev/null` in #(
39 # Printing a long string crashes Solaris 7 /usr/bin/printf.
40 as_echo
='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
41 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
42 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
43 # Prefer a ksh shell builtin over an external printf program on Solaris,
44 # but without wasting forks for bash or zsh.
45 if test -z "$BASH_VERSION$ZSH_VERSION" \
46 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
48 as_echo_n='print
-rn --'
49 elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
53 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
54 as_echo_body='eval /usr
/ucb
/echo -n "$1$as_nl"'
55 as_echo_n='/usr
/ucb
/echo -n'
57 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
62 expr "X$arg" : "X\\(.*\\)$as_nl";
63 arg
=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
65 expr "X$arg" : "X\\(.*\\)" |
tr -d "$as_nl"
68 as_echo_n='sh
-c $as_echo_n_body as_echo
'
71 as_echo='sh
-c $as_echo_body as_echo
'
74 # The user is always right.
75 if test "${PATH_SEPARATOR+set}" != set; then
77 (PATH='/bin
;/bin
'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
78 (PATH='/bin
:/bin
'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
85 # We need space, tab and new line, in precisely that order. Quoting is
86 # there to prevent editors from complaining about space-tab.
87 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
88 # splitting by setting IFS to empty value.)
91 # Find who we are. Look in the path if we contain no directory separator.
94 *[\\/]* ) as_myself=$0 ;;
95 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
99 test -z "$as_dir" && as_dir=.
100 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
106 # We did not find ourselves, most probably we were run as `sh COMMAND'
107 # in which case we are not to be found in the path.
108 if test "x$as_myself" = x
; then
111 if test ! -f "$as_myself"; then
112 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
116 # Unset variables that we do not need and which cause bugs (e.g. in
117 # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
118 # suppresses any "Segmentation fault" message there. '((' could
119 # trigger a bug in pdksh 5.2.14.
120 for as_var
in BASH_ENV ENV MAIL MAILPATH
121 do eval test x\
${$as_var+set} = xset \
122 && ( (unset $as_var) ||
exit 1) >/dev
/null
2>&1 && unset $as_var ||
:
135 (unset CDPATH
) >/dev
/null
2>&1 && unset CDPATH
137 if test "x$CONFIG_SHELL" = x
; then
138 as_bourne_compatible
="if test -n \"\${ZSH_VERSION+set}\" && (emulate sh) >/dev/null 2>&1; then :
141 # Pre-4.2 versions of Zsh do word splitting on \${1+\"\$@\"}, which
142 # is contrary to our usage. Disable this feature.
143 alias -g '\${1+\"\$@\"}'='\"\$@\"'
146 case \`(set -o) 2>/dev/null\` in #(
154 as_required
="as_fn_return () { (exit \$1); }
155 as_fn_success () { as_fn_return 0; }
156 as_fn_failure () { as_fn_return 1; }
157 as_fn_ret_success () { return 0; }
158 as_fn_ret_failure () { return 1; }
161 as_fn_success || { exitcode=1; echo as_fn_success failed.; }
162 as_fn_failure && { exitcode=1; echo as_fn_failure succeeded.; }
163 as_fn_ret_success || { exitcode=1; echo as_fn_ret_success failed.; }
164 as_fn_ret_failure && { exitcode=1; echo as_fn_ret_failure succeeded.; }
165 if ( set x; as_fn_ret_success y && test x = \"\$1\" ); then :
168 exitcode=1; echo positional parameters were not saved.
170 test x\$exitcode = x0 || exit 1"
171 as_suggested
=" as_lineno_1=";as_suggested
=$as_suggested$LINENO;as_suggested
=$as_suggested" as_lineno_1a=\$LINENO
172 as_lineno_2=";as_suggested
=$as_suggested$LINENO;as_suggested
=$as_suggested" as_lineno_2a=\$LINENO
173 eval 'test \"x\$as_lineno_1'\$as_run'\" != \"x\$as_lineno_2'\$as_run'\" &&
174 test \"x\`expr \$as_lineno_1'\$as_run' + 1\`\" = \"x\$as_lineno_2'\$as_run'\"' || exit 1
175 test \$(( 1 + 1 )) = 2 || exit 1"
176 if (eval "$as_required") 2>/dev
/null
; then :
181 if test x
$as_have_required = xyes
&& (eval "$as_suggested") 2>/dev
/null
; then :
184 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
186 for as_dir
in /bin
$PATH_SEPARATOR/usr
/bin
$PATH_SEPARATOR$PATH
189 test -z "$as_dir" && as_dir
=.
193 for as_base
in sh bash ksh sh5
; do
194 # Try only shells that exist, to save several forks.
195 as_shell
=$as_dir/$as_base
196 if { test -f "$as_shell" ||
test -f "$as_shell.exe"; } &&
197 { $as_echo "$as_bourne_compatible""$as_required" | as_run
=a
"$as_shell"; } 2>/dev
/null
; then :
198 CONFIG_SHELL
=$as_shell as_have_required
=yes
199 if { $as_echo "$as_bourne_compatible""$as_suggested" | as_run
=a
"$as_shell"; } 2>/dev
/null
; then :
207 $as_found ||
{ if { test -f "$SHELL" ||
test -f "$SHELL.exe"; } &&
208 { $as_echo "$as_bourne_compatible""$as_required" | as_run
=a
"$SHELL"; } 2>/dev
/null
; then :
209 CONFIG_SHELL
=$SHELL as_have_required
=yes
214 if test "x$CONFIG_SHELL" != x
; then :
215 # We cannot yet assume a decent shell, so we have to provide a
216 # neutralization value for shells without unset; and this also
217 # works around shells that cannot unset nonexistent variables.
218 # Preserve -v and -x to the replacement shell.
221 (unset BASH_ENV
) >/dev
/null
2>&1 && unset BASH_ENV ENV
224 *v
*x
* |
*x
*v
* ) as_opts
=-vx ;;
229 exec "$CONFIG_SHELL" $as_opts "$as_myself" ${1+"$@"}
232 if test x
$as_have_required = xno
; then :
233 $as_echo "$0: This script requires a shell more modern than all"
234 $as_echo "$0: the shells that I found on your system."
235 if test x
${ZSH_VERSION+set} = xset
; then
236 $as_echo "$0: In particular, zsh $ZSH_VERSION has bugs and should"
237 $as_echo "$0: be upgraded to zsh 4.3.4 or later."
239 $as_echo "$0: Please tell bug-autoconf@gnu.org about your system,
240 $0: including any error possibly output before this
241 $0: message. Then install a modern shell, or manually run
242 $0: the script under such a shell if you do have one."
248 SHELL
=${CONFIG_SHELL-/bin/sh}
250 # Unset more variables known to interfere with behavior of common tools.
251 CLICOLOR_FORCE
= GREP_OPTIONS
=
252 unset CLICOLOR_FORCE GREP_OPTIONS
254 ## --------------------- ##
255 ## M4sh Shell Functions. ##
256 ## --------------------- ##
259 # Portably unset VAR.
262 { eval $1=; unset $1;}
266 # as_fn_set_status STATUS
267 # -----------------------
268 # Set $? to STATUS, without forking.
276 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
286 # Create "$as_dir" as a directory, including parents if necessary.
291 -*) as_dir
=.
/$as_dir;;
293 test -d "$as_dir" ||
eval $as_mkdir_p ||
{
297 *\'*) as_qdir
=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
300 as_dirs
="'$as_qdir' $as_dirs"
301 as_dir
=`$as_dirname -- "$as_dir" ||
302 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
303 X"$as_dir" : 'X\(//\)[^/]' \| \
304 X"$as_dir" : 'X\(//\)$' \| \
305 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
306 $as_echo X"$as_dir" |
307 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
324 test -d "$as_dir" && break
326 test -z "$as_dirs" ||
eval "mkdir $as_dirs"
327 } ||
test -d "$as_dir" || as_fn_error $?
"cannot create directory $as_dir"
331 # as_fn_append VAR VALUE
332 # ----------------------
333 # Append the text in VALUE to the end of the definition contained in VAR. Take
334 # advantage of any shell optimizations that allow amortized linear growth over
335 # repeated appends, instead of the typical quadratic growth present in naive
337 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev
/null
; then :
338 eval 'as_fn_append ()
351 # Perform arithmetic evaluation on the ARGs, and store the result in the
352 # global $as_val. Take advantage of shells that can avoid forks. The arguments
353 # must be portable across $(()) and expr.
354 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev
/null
; then :
362 as_val
=`expr "$@" || test $? -eq 1`
367 # as_fn_error STATUS ERROR [LINENO LOG_FD]
368 # ----------------------------------------
369 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
370 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
371 # script with STATUS, using 1 if that was 0.
374 as_status
=$1; test $as_status -eq 0 && as_status
=1
376 as_lineno
=${as_lineno-"$3"} as_lineno_stack
=as_lineno_stack
=$as_lineno_stack
377 $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
379 $as_echo "$as_me: error: $2" >&2
380 as_fn_exit
$as_status
383 if expr a
: '\(a\)' >/dev
/null
2>&1 &&
384 test "X`expr 00001 : '.*\(...\)'`" = X001
; then
390 if (basename -- /) >/dev
/null
2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
396 if (as_dir
=`dirname -- /` && test "X$as_dir" = X
/) >/dev
/null
2>&1; then
402 as_me
=`$as_basename -- "$0" ||
403 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
404 X"$0" : 'X\(//\)$' \| \
405 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
407 sed '/^.*\/\([^/][^/]*\)\/*$/{
421 # Avoid depending upon Character Ranges.
422 as_cr_letters
='abcdefghijklmnopqrstuvwxyz'
423 as_cr_LETTERS
='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
424 as_cr_Letters
=$as_cr_letters$as_cr_LETTERS
425 as_cr_digits
='0123456789'
426 as_cr_alnum
=$as_cr_Letters$as_cr_digits
429 as_lineno_1
=$LINENO as_lineno_1a
=$LINENO
430 as_lineno_2
=$LINENO as_lineno_2a
=$LINENO
431 eval 'test "x$as_lineno_1'$as_run'" != "x$as_lineno_2'$as_run'" &&
432 test "x`expr $as_lineno_1'$as_run' + 1`" = "x$as_lineno_2'$as_run'"' ||
{
433 # Blame Lee E. McMahon (1931-1989) for sed's syntax. :-)
445 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
449 chmod +x
"$as_me.lineno" ||
450 { $as_echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2; as_fn_exit
1; }
452 # Don't try to exec as it changes $[0], causing all sort of problems
453 # (the dirname of $[0] is not the place where we might find the
454 # original and so on. Autoconf is especially sensitive to this).
456 # Exit status is that of the last command.
460 ECHO_C
= ECHO_N
= ECHO_T
=
461 case `echo -n x` in #(((((
463 case `echo 'xy\c'` in
464 *c
*) ECHO_T
=' ';; # ECHO_T is single tab character.
466 *) echo `echo ksh88 bug on AIX 6.1` > /dev
/null
473 rm -f conf$$ conf$$.exe conf$$.
file
474 if test -d conf$$.dir
; then
475 rm -f conf$$.dir
/conf$$.
file
478 mkdir conf$$.dir
2>/dev
/null
480 if (echo >conf$$.
file) 2>/dev
/null
; then
481 if ln -s conf$$.
file conf$$
2>/dev
/null
; then
483 # ... but there are two gotchas:
484 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
485 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
486 # In both cases, we have to default to `cp -p'.
487 ln -s conf$$.
file conf$$.dir
2>/dev
/null
&& test ! -f conf$$.exe ||
489 elif ln conf$$.
file conf$$
2>/dev
/null
; then
497 rm -f conf$$ conf$$.exe conf$$.dir
/conf$$.
file conf$$.
file
498 rmdir conf$$.dir
2>/dev
/null
500 if mkdir
-p .
2>/dev
/null
; then
501 as_mkdir_p
='mkdir -p "$as_dir"'
503 test -d .
/-p && rmdir .
/-p
507 if test -x / >/dev
/null
2>&1; then
510 if ls -dL / >/dev
/null
2>&1; then
517 if test -d "$1"; then
523 case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in #((
524 ???[sx]*):;;*)false;;esac;fi
528 as_executable_p
=$as_test_x
530 # Sed expression to map a string onto a valid CPP name.
531 as_tr_cpp
="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
533 # Sed expression to map a string onto a valid variable name.
534 as_tr_sh
="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
537 test -n "$DJDIR" ||
exec 7<&0 </dev
/null
541 # hostname on some systems (SVR3.2, old GNU/Linux) returns a bogus exit status,
542 # so uname gets run too.
543 ac_hostname
=`(hostname || uname -n) 2>/dev/null | sed 1q`
548 ac_default_prefix
=/usr
/local
550 ac_config_libobj_dir
=.
557 # Identity of this package.
559 PACKAGE_TARNAME
='emacs'
560 PACKAGE_VERSION
='24.0.50'
561 PACKAGE_STRING
='emacs 24.0.50'
565 ac_unique_file
="src/lisp.h"
566 # Factoring default headers for most tests.
567 ac_includes_default
="\
569 #ifdef HAVE_SYS_TYPES_H
570 # include <sys/types.h>
572 #ifdef HAVE_SYS_STAT_H
573 # include <sys/stat.h>
579 # ifdef HAVE_STDLIB_H
584 # if !defined STDC_HEADERS && defined HAVE_MEMORY_H
589 #ifdef HAVE_STRINGS_H
590 # include <strings.h>
592 #ifdef HAVE_INTTYPES_H
593 # include <inttypes.h>
603 gl_getopt_required
=POSIX
604 gl_getopt_required
=POSIX
606 ac_subst_vars
='gltests_LTLIBOBJS
619 LD_SWITCH_SYSTEM_TEMACS
652 x_default_search_path
673 NEXT_AS_FIRST_DIRECTIVE_UNISTD_H
675 PTHREAD_H_DEFINES_STRUCT_TIMESPEC
676 SYS_TIME_H_DEFINES_STRUCT_TIMESPEC
677 TIME_H_DEFINES_STRUCT_TIMESPEC
678 NEXT_AS_FIRST_DIRECTIVE_TIME_H
680 NEXT_AS_FIRST_DIRECTIVE_SYS_STAT_H
682 NEXT_AS_FIRST_DIRECTIVE_STDLIB_H
684 NEXT_AS_FIRST_DIRECTIVE_STDIO_H
693 REPLACE_STDIO_WRITE_FUNCS
702 REPLACE_OBSTACK_PRINTF
724 HAVE_DECL_OBSTACK_PRINTF
730 GNULIB_VSPRINTF_POSIX
734 GNULIB_VFPRINTF_POSIX
739 GNULIB_STDIO_H_SIGPIPE
752 GNULIB_OBSTACK_PRINTF_POSIX
753 GNULIB_OBSTACK_PRINTF
779 HAVE_SIGNED_SIG_ATOMIC_T
782 BITSIZEOF_SIG_ATOMIC_T
788 NEXT_AS_FIRST_DIRECTIVE_STDINT_H
793 HAVE_UNSIGNED_LONG_LONG_INT
795 NEXT_AS_FIRST_DIRECTIVE_STDDEF_H
802 APPLE_UNIVERSAL_BUILD
810 HAVE_DECL_LOCALTIME_R
852 NEXT_AS_FIRST_DIRECTIVE_GETOPT_H
856 INCLUDE_NEXT_AS_FIRST_DIRECTIVE
858 UNISTD_H_HAVE_WINSOCK2_H_AND_USE_SOCKETS
859 UNISTD_H_HAVE_WINSOCK2_H
878 REPLACE_GETDOMAINNAME
888 HAVE_DECL_GETUSERSHELL
889 HAVE_DECL_GETPAGESIZE
891 HAVE_DECL_GETDOMAINNAME
926 GNULIB_UNISTD_H_SIGPIPE
927 GNULIB_UNISTD_H_GETOPT
974 REPLACE_CANONICALIZE_FILE_NAME
979 HAVE_STRUCT_RANDOM_DATA
998 HAVE_CANONICALIZE_FILE_NAME
1011 GNULIB_REALLOC_POSIX
1025 GNULIB_CANONICALIZE_FILE_NAME
1029 GL_COND_LIBTOOL_FALSE
1030 GL_COND_LIBTOOL_TRUE
1079 LD_SWITCH_X_SITE_AUX_RPATH
1080 LD_SWITCH_X_SITE_AUX
1141 INSTALL_STRIP_PROGRAM
1183 program_transform_name
1194 ac_subst_files
='deps_frag
1197 enable_option_checking
1219 with_toolkit_scroll_bars
1230 with_pkg_config_prog
1234 enable_ns_self_contained
1236 enable_maintainer_mode
1237 enable_locallisppath
1239 enable_use_lisp_union_type
1242 enable_dependency_tracking
1246 ac_precious_vars
='build_alias
1258 # Initialize some variables set by options.
1260 ac_init_version
=false
1261 ac_unrecognized_opts
=
1262 ac_unrecognized_sep
=
1263 # The variables have the same names as the options, with
1264 # dashes changed to underlines.
1265 cache_file
=/dev
/null
1272 program_transform_name
=s
,x
,x
,
1280 # Installation directory options.
1281 # These are left unexpanded so users can "make install exec_prefix=/foo"
1282 # and all the variables that are supposed to be based on exec_prefix
1283 # by default will actually change.
1284 # Use braces instead of parens because sh, perl, etc. also accept them.
1285 # (The list follows the same order as the GNU Coding Standards.)
1286 bindir
='${exec_prefix}/bin'
1287 sbindir
='${exec_prefix}/sbin'
1288 libexecdir
='${exec_prefix}/libexec'
1289 datarootdir
='${prefix}/share'
1290 datadir
='${datarootdir}'
1291 sysconfdir
='${prefix}/etc'
1292 sharedstatedir
='${prefix}/com'
1293 localstatedir
='${prefix}/var'
1294 includedir
='${prefix}/include'
1295 oldincludedir
='/usr/include'
1296 docdir
='${datarootdir}/doc/${PACKAGE_TARNAME}'
1297 infodir
='${datarootdir}/info'
1302 libdir
='${exec_prefix}/lib'
1303 localedir
='${datarootdir}/locale'
1304 mandir
='${datarootdir}/man'
1310 # If the previous option needs an argument, assign it.
1311 if test -n "$ac_prev"; then
1312 eval $ac_prev=\
$ac_option
1318 *=?
*) ac_optarg
=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
1323 # Accept the important Cygnus configure options, so we can diagnose typos.
1325 case $ac_dashdash$ac_option in
1329 -bindir |
--bindir |
--bindi |
--bind |
--bin |
--bi)
1331 -bindir=* |
--bindir=* |
--bindi=* |
--bind=* |
--bin=* |
--bi=*)
1332 bindir
=$ac_optarg ;;
1334 -build |
--build |
--buil |
--bui |
--bu)
1335 ac_prev
=build_alias
;;
1336 -build=* |
--build=* |
--buil=* |
--bui=* |
--bu=*)
1337 build_alias
=$ac_optarg ;;
1339 -cache-file |
--cache-file |
--cache-fil |
--cache-fi \
1340 |
--cache-f |
--cache- |
--cache |
--cach |
--cac |
--ca |
--c)
1341 ac_prev
=cache_file
;;
1342 -cache-file=* |
--cache-file=* |
--cache-fil=* |
--cache-fi=* \
1343 |
--cache-f=* |
--cache-=* |
--cache=* |
--cach=* |
--cac=* |
--ca=* |
--c=*)
1344 cache_file
=$ac_optarg ;;
1346 --config-cache |
-C)
1347 cache_file
=config.cache
;;
1349 -datadir |
--datadir |
--datadi |
--datad)
1351 -datadir=* |
--datadir=* |
--datadi=* |
--datad=*)
1352 datadir
=$ac_optarg ;;
1354 -datarootdir |
--datarootdir |
--datarootdi |
--datarootd |
--dataroot \
1355 |
--dataroo |
--dataro |
--datar)
1356 ac_prev
=datarootdir
;;
1357 -datarootdir=* |
--datarootdir=* |
--datarootdi=* |
--datarootd=* \
1358 |
--dataroot=* |
--dataroo=* |
--dataro=* |
--datar=*)
1359 datarootdir
=$ac_optarg ;;
1361 -disable-* |
--disable-*)
1362 ac_useropt
=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
1363 # Reject names that are not valid shell variable names.
1364 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev
/null
&&
1365 as_fn_error $?
"invalid feature name: $ac_useropt"
1366 ac_useropt_orig
=$ac_useropt
1367 ac_useropt
=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1368 case $ac_user_opts in
1370 "enable_
$ac_useropt"
1372 *) ac_unrecognized_opts
="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
1373 ac_unrecognized_sep
=', ';;
1375 eval enable_
$ac_useropt=no
;;
1377 -docdir |
--docdir |
--docdi |
--doc |
--do)
1379 -docdir=* |
--docdir=* |
--docdi=* |
--doc=* |
--do=*)
1380 docdir
=$ac_optarg ;;
1382 -dvidir |
--dvidir |
--dvidi |
--dvid |
--dvi |
--dv)
1384 -dvidir=* |
--dvidir=* |
--dvidi=* |
--dvid=* |
--dvi=* |
--dv=*)
1385 dvidir
=$ac_optarg ;;
1387 -enable-* |
--enable-*)
1388 ac_useropt
=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
1389 # Reject names that are not valid shell variable names.
1390 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev
/null
&&
1391 as_fn_error $?
"invalid feature name: $ac_useropt"
1392 ac_useropt_orig
=$ac_useropt
1393 ac_useropt
=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1394 case $ac_user_opts in
1396 "enable_
$ac_useropt"
1398 *) ac_unrecognized_opts
="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
1399 ac_unrecognized_sep
=', ';;
1401 eval enable_
$ac_useropt=\
$ac_optarg ;;
1403 -exec-prefix |
--exec_prefix |
--exec-prefix |
--exec-prefi \
1404 |
--exec-pref |
--exec-pre |
--exec-pr |
--exec-p |
--exec- \
1405 |
--exec |
--exe |
--ex)
1406 ac_prev
=exec_prefix
;;
1407 -exec-prefix=* |
--exec_prefix=* |
--exec-prefix=* |
--exec-prefi=* \
1408 |
--exec-pref=* |
--exec-pre=* |
--exec-pr=* |
--exec-p=* |
--exec-=* \
1409 |
--exec=* |
--exe=* |
--ex=*)
1410 exec_prefix
=$ac_optarg ;;
1412 -gas |
--gas |
--ga |
--g)
1413 # Obsolete; use --with-gas.
1416 -help |
--help |
--hel |
--he |
-h)
1417 ac_init_help
=long
;;
1418 -help=r
* |
--help=r
* |
--hel=r
* |
--he=r
* |
-hr*)
1419 ac_init_help
=recursive
;;
1420 -help=s
* |
--help=s
* |
--hel=s
* |
--he=s
* |
-hs*)
1421 ac_init_help
=short
;;
1423 -host |
--host |
--hos |
--ho)
1424 ac_prev
=host_alias
;;
1425 -host=* |
--host=* |
--hos=* |
--ho=*)
1426 host_alias
=$ac_optarg ;;
1428 -htmldir |
--htmldir |
--htmldi |
--htmld |
--html |
--htm |
--ht)
1430 -htmldir=* |
--htmldir=* |
--htmldi=* |
--htmld=* |
--html=* |
--htm=* \
1432 htmldir
=$ac_optarg ;;
1434 -includedir |
--includedir |
--includedi |
--included |
--include \
1435 |
--includ |
--inclu |
--incl |
--inc)
1436 ac_prev
=includedir
;;
1437 -includedir=* |
--includedir=* |
--includedi=* |
--included=* |
--include=* \
1438 |
--includ=* |
--inclu=* |
--incl=* |
--inc=*)
1439 includedir
=$ac_optarg ;;
1441 -infodir |
--infodir |
--infodi |
--infod |
--info |
--inf)
1443 -infodir=* |
--infodir=* |
--infodi=* |
--infod=* |
--info=* |
--inf=*)
1444 infodir
=$ac_optarg ;;
1446 -libdir |
--libdir |
--libdi |
--libd)
1448 -libdir=* |
--libdir=* |
--libdi=* |
--libd=*)
1449 libdir
=$ac_optarg ;;
1451 -libexecdir |
--libexecdir |
--libexecdi |
--libexecd |
--libexec \
1452 |
--libexe |
--libex |
--libe)
1453 ac_prev
=libexecdir
;;
1454 -libexecdir=* |
--libexecdir=* |
--libexecdi=* |
--libexecd=* |
--libexec=* \
1455 |
--libexe=* |
--libex=* |
--libe=*)
1456 libexecdir
=$ac_optarg ;;
1458 -localedir |
--localedir |
--localedi |
--localed |
--locale)
1459 ac_prev
=localedir
;;
1460 -localedir=* |
--localedir=* |
--localedi=* |
--localed=* |
--locale=*)
1461 localedir
=$ac_optarg ;;
1463 -localstatedir |
--localstatedir |
--localstatedi |
--localstated \
1464 |
--localstate |
--localstat |
--localsta |
--localst |
--locals)
1465 ac_prev
=localstatedir
;;
1466 -localstatedir=* |
--localstatedir=* |
--localstatedi=* |
--localstated=* \
1467 |
--localstate=* |
--localstat=* |
--localsta=* |
--localst=* |
--locals=*)
1468 localstatedir
=$ac_optarg ;;
1470 -mandir |
--mandir |
--mandi |
--mand |
--man |
--ma |
--m)
1472 -mandir=* |
--mandir=* |
--mandi=* |
--mand=* |
--man=* |
--ma=* |
--m=*)
1473 mandir
=$ac_optarg ;;
1475 -nfp |
--nfp |
--nf)
1476 # Obsolete; use --without-fp.
1479 -no-create |
--no-create |
--no-creat |
--no-crea |
--no-cre \
1480 |
--no-cr |
--no-c |
-n)
1483 -no-recursion |
--no-recursion |
--no-recursio |
--no-recursi \
1484 |
--no-recurs |
--no-recur |
--no-recu |
--no-rec |
--no-re |
--no-r)
1487 -oldincludedir |
--oldincludedir |
--oldincludedi |
--oldincluded \
1488 |
--oldinclude |
--oldinclud |
--oldinclu |
--oldincl |
--oldinc \
1489 |
--oldin |
--oldi |
--old |
--ol |
--o)
1490 ac_prev
=oldincludedir
;;
1491 -oldincludedir=* |
--oldincludedir=* |
--oldincludedi=* |
--oldincluded=* \
1492 |
--oldinclude=* |
--oldinclud=* |
--oldinclu=* |
--oldincl=* |
--oldinc=* \
1493 |
--oldin=* |
--oldi=* |
--old=* |
--ol=* |
--o=*)
1494 oldincludedir
=$ac_optarg ;;
1496 -prefix |
--prefix |
--prefi |
--pref |
--pre |
--pr |
--p)
1498 -prefix=* |
--prefix=* |
--prefi=* |
--pref=* |
--pre=* |
--pr=* |
--p=*)
1499 prefix
=$ac_optarg ;;
1501 -program-prefix |
--program-prefix |
--program-prefi |
--program-pref \
1502 |
--program-pre |
--program-pr |
--program-p)
1503 ac_prev
=program_prefix
;;
1504 -program-prefix=* |
--program-prefix=* |
--program-prefi=* \
1505 |
--program-pref=* |
--program-pre=* |
--program-pr=* |
--program-p=*)
1506 program_prefix
=$ac_optarg ;;
1508 -program-suffix |
--program-suffix |
--program-suffi |
--program-suff \
1509 |
--program-suf |
--program-su |
--program-s)
1510 ac_prev
=program_suffix
;;
1511 -program-suffix=* |
--program-suffix=* |
--program-suffi=* \
1512 |
--program-suff=* |
--program-suf=* |
--program-su=* |
--program-s=*)
1513 program_suffix
=$ac_optarg ;;
1515 -program-transform-name |
--program-transform-name \
1516 |
--program-transform-nam |
--program-transform-na \
1517 |
--program-transform-n |
--program-transform- \
1518 |
--program-transform |
--program-transfor \
1519 |
--program-transfo |
--program-transf \
1520 |
--program-trans |
--program-tran \
1521 |
--progr-tra |
--program-tr |
--program-t)
1522 ac_prev
=program_transform_name
;;
1523 -program-transform-name=* |
--program-transform-name=* \
1524 |
--program-transform-nam=* |
--program-transform-na=* \
1525 |
--program-transform-n=* |
--program-transform-=* \
1526 |
--program-transform=* |
--program-transfor=* \
1527 |
--program-transfo=* |
--program-transf=* \
1528 |
--program-trans=* |
--program-tran=* \
1529 |
--progr-tra=* |
--program-tr=* |
--program-t=*)
1530 program_transform_name
=$ac_optarg ;;
1532 -pdfdir |
--pdfdir |
--pdfdi |
--pdfd |
--pdf |
--pd)
1534 -pdfdir=* |
--pdfdir=* |
--pdfdi=* |
--pdfd=* |
--pdf=* |
--pd=*)
1535 pdfdir
=$ac_optarg ;;
1537 -psdir |
--psdir |
--psdi |
--psd |
--ps)
1539 -psdir=* |
--psdir=* |
--psdi=* |
--psd=* |
--ps=*)
1542 -q |
-quiet |
--quiet |
--quie |
--qui |
--qu |
--q \
1543 |
-silent |
--silent |
--silen |
--sile |
--sil)
1546 -sbindir |
--sbindir |
--sbindi |
--sbind |
--sbin |
--sbi |
--sb)
1548 -sbindir=* |
--sbindir=* |
--sbindi=* |
--sbind=* |
--sbin=* \
1550 sbindir
=$ac_optarg ;;
1552 -sharedstatedir |
--sharedstatedir |
--sharedstatedi \
1553 |
--sharedstated |
--sharedstate |
--sharedstat |
--sharedsta \
1554 |
--sharedst |
--shareds |
--shared |
--share |
--shar \
1556 ac_prev
=sharedstatedir
;;
1557 -sharedstatedir=* |
--sharedstatedir=* |
--sharedstatedi=* \
1558 |
--sharedstated=* |
--sharedstate=* |
--sharedstat=* |
--sharedsta=* \
1559 |
--sharedst=* |
--shareds=* |
--shared=* |
--share=* |
--shar=* \
1561 sharedstatedir
=$ac_optarg ;;
1563 -site |
--site |
--sit)
1565 -site=* |
--site=* |
--sit=*)
1568 -srcdir |
--srcdir |
--srcdi |
--srcd |
--src |
--sr)
1570 -srcdir=* |
--srcdir=* |
--srcdi=* |
--srcd=* |
--src=* |
--sr=*)
1571 srcdir
=$ac_optarg ;;
1573 -sysconfdir |
--sysconfdir |
--sysconfdi |
--sysconfd |
--sysconf \
1574 |
--syscon |
--sysco |
--sysc |
--sys |
--sy)
1575 ac_prev
=sysconfdir
;;
1576 -sysconfdir=* |
--sysconfdir=* |
--sysconfdi=* |
--sysconfd=* |
--sysconf=* \
1577 |
--syscon=* |
--sysco=* |
--sysc=* |
--sys=* |
--sy=*)
1578 sysconfdir
=$ac_optarg ;;
1580 -target |
--target |
--targe |
--targ |
--tar |
--ta |
--t)
1581 ac_prev
=target_alias
;;
1582 -target=* |
--target=* |
--targe=* |
--targ=* |
--tar=* |
--ta=* |
--t=*)
1583 target_alias
=$ac_optarg ;;
1585 -v |
-verbose |
--verbose |
--verbos |
--verbo |
--verb)
1588 -version |
--version |
--versio |
--versi |
--vers |
-V)
1589 ac_init_version
=: ;;
1592 ac_useropt
=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1593 # Reject names that are not valid shell variable names.
1594 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev
/null
&&
1595 as_fn_error $?
"invalid package name: $ac_useropt"
1596 ac_useropt_orig
=$ac_useropt
1597 ac_useropt
=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1598 case $ac_user_opts in
1602 *) ac_unrecognized_opts
="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1603 ac_unrecognized_sep
=', ';;
1605 eval with_
$ac_useropt=\
$ac_optarg ;;
1607 -without-* |
--without-*)
1608 ac_useropt
=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1609 # Reject names that are not valid shell variable names.
1610 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev
/null
&&
1611 as_fn_error $?
"invalid package name: $ac_useropt"
1612 ac_useropt_orig
=$ac_useropt
1613 ac_useropt
=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1614 case $ac_user_opts in
1618 *) ac_unrecognized_opts
="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1619 ac_unrecognized_sep
=', ';;
1621 eval with_
$ac_useropt=no
;;
1624 # Obsolete; use --with-x.
1627 -x-includes |
--x-includes |
--x-include |
--x-includ |
--x-inclu \
1628 |
--x-incl |
--x-inc |
--x-in |
--x-i)
1629 ac_prev
=x_includes
;;
1630 -x-includes=* |
--x-includes=* |
--x-include=* |
--x-includ=* |
--x-inclu=* \
1631 |
--x-incl=* |
--x-inc=* |
--x-in=* |
--x-i=*)
1632 x_includes
=$ac_optarg ;;
1634 -x-libraries |
--x-libraries |
--x-librarie |
--x-librari \
1635 |
--x-librar |
--x-libra |
--x-libr |
--x-lib |
--x-li |
--x-l)
1636 ac_prev
=x_libraries
;;
1637 -x-libraries=* |
--x-libraries=* |
--x-librarie=* |
--x-librari=* \
1638 |
--x-librar=* |
--x-libra=* |
--x-libr=* |
--x-lib=* |
--x-li=* |
--x-l=*)
1639 x_libraries
=$ac_optarg ;;
1641 -*) as_fn_error $?
"unrecognized option: \`$ac_option'
1642 Try \`$0 --help' for more information"
1646 ac_envvar
=`expr "x$ac_option" : 'x\([^=]*\)='`
1647 # Reject names that are not valid shell variable names.
1648 case $ac_envvar in #(
1649 '' |
[0-9]* |
*[!_
$as_cr_alnum]* )
1650 as_fn_error $?
"invalid variable name: \`$ac_envvar'" ;;
1652 eval $ac_envvar=\
$ac_optarg
1653 export $ac_envvar ;;
1656 # FIXME: should be removed in autoconf 3.0.
1657 $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1658 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev
/null
&&
1659 $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1660 : "${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}"
1666 if test -n "$ac_prev"; then
1667 ac_option
=--`echo $ac_prev | sed 's/_/-/g'`
1668 as_fn_error $?
"missing argument to $ac_option"
1671 if test -n "$ac_unrecognized_opts"; then
1672 case $enable_option_checking in
1674 fatal
) as_fn_error $?
"unrecognized options: $ac_unrecognized_opts" ;;
1675 *) $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
1679 # Check all directory arguments for consistency.
1680 for ac_var
in exec_prefix prefix bindir sbindir libexecdir datarootdir \
1681 datadir sysconfdir sharedstatedir localstatedir includedir \
1682 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1683 libdir localedir mandir
1685 eval ac_val
=\$
$ac_var
1686 # Remove trailing slashes.
1689 ac_val
=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1690 eval $ac_var=\
$ac_val;;
1692 # Be sure to have absolute directory names.
1694 [\\/$
]* | ?
:[\\/]* ) continue;;
1695 NONE |
'' ) case $ac_var in *prefix
) continue;; esac;;
1697 as_fn_error $?
"expected an absolute directory name for --$ac_var: $ac_val"
1700 # There might be people who depend on the old broken behavior: `$host'
1701 # used to hold the argument of --host etc.
1702 # FIXME: To remove some day.
1705 target
=$target_alias
1707 # FIXME: To remove some day.
1708 if test "x$host_alias" != x
; then
1709 if test "x$build_alias" = x
; then
1710 cross_compiling
=maybe
1711 $as_echo "$as_me: WARNING: if you wanted to set the --build type, don't use --host.
1712 If a cross compiler is detected then cross compile mode will be used" >&2
1713 elif test "x$build_alias" != "x$host_alias"; then
1719 test -n "$host_alias" && ac_tool_prefix
=$host_alias-
1721 test "$silent" = yes && exec 6>/dev
/null
1724 ac_pwd
=`pwd` && test -n "$ac_pwd" &&
1725 ac_ls_di
=`ls -di .` &&
1726 ac_pwd_ls_di
=`cd "$ac_pwd" && ls -di .` ||
1727 as_fn_error $?
"working directory cannot be determined"
1728 test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1729 as_fn_error $?
"pwd does not report name of working directory"
1732 # Find the source files, if location was not specified.
1733 if test -z "$srcdir"; then
1734 ac_srcdir_defaulted
=yes
1735 # Try the directory containing this script, then the parent directory.
1736 ac_confdir
=`$as_dirname -- "$as_myself" ||
1737 $as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1738 X"$as_myself" : 'X\(//\)[^/]' \| \
1739 X"$as_myself" : 'X\(//\)$' \| \
1740 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1741 $as_echo X"$as_myself" |
1742 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1760 if test ! -r "$srcdir/$ac_unique_file"; then
1764 ac_srcdir_defaulted
=no
1766 if test ! -r "$srcdir/$ac_unique_file"; then
1767 test "$ac_srcdir_defaulted" = yes && srcdir
="$ac_confdir or .."
1768 as_fn_error $?
"cannot find sources ($ac_unique_file) in $srcdir"
1770 ac_msg
="sources are in $srcdir, but \`cd $srcdir' does not work"
1772 cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg"
1774 # When building in place, set srcdir=.
1775 if test "$ac_abs_confdir" = "$ac_pwd"; then
1778 # Remove unnecessary trailing slashes from srcdir.
1779 # Double slashes in file names in object file debugging info
1780 # mess up M-x gdb in Emacs.
1782 */) srcdir
=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1784 for ac_var
in $ac_precious_vars; do
1785 eval ac_env_
${ac_var}_set=\${${ac_var}+set}
1786 eval ac_env_
${ac_var}_value
=\$
${ac_var}
1787 eval ac_cv_env_
${ac_var}_set=\${${ac_var}+set}
1788 eval ac_cv_env_
${ac_var}_value
=\$
${ac_var}
1792 # Report the --help message.
1794 if test "$ac_init_help" = "long"; then
1795 # Omit some internal or obsolete options to make the list less imposing.
1796 # This message is too long to be a string in the A/UX 3.1 sh.
1798 \`configure' configures emacs 24.0.50 to adapt to many kinds of systems.
1800 Usage: $0 [OPTION]... [VAR=VALUE]...
1802 To assign environment variables (e.g., CC, CFLAGS...), specify them as
1803 VAR=VALUE. See below for descriptions of some of the useful variables.
1805 Defaults for the options are specified in brackets.
1808 -h, --help display this help and exit
1809 --help=short display options specific to this package
1810 --help=recursive display the short help of all the included packages
1811 -V, --version display version information and exit
1812 -q, --quiet, --silent do not print \`checking ...' messages
1813 --cache-file=FILE cache test results in FILE [disabled]
1814 -C, --config-cache alias for \`--cache-file=config.cache'
1815 -n, --no-create do not create output files
1816 --srcdir=DIR find the sources in DIR [configure dir or \`..']
1818 Installation directories:
1819 --prefix=PREFIX install architecture-independent files in PREFIX
1820 [$ac_default_prefix]
1821 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
1824 By default, \`make install' will install all the files in
1825 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
1826 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1827 for instance \`--prefix=\$HOME'.
1829 For better control, use the options below.
1831 Fine tuning of the installation directories:
1832 --bindir=DIR user executables [EPREFIX/bin]
1833 --sbindir=DIR system admin executables [EPREFIX/sbin]
1834 --libexecdir=DIR program executables [EPREFIX/libexec]
1835 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
1836 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
1837 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
1838 --libdir=DIR object code libraries [EPREFIX/lib]
1839 --includedir=DIR C header files [PREFIX/include]
1840 --oldincludedir=DIR C header files for non-gcc [/usr/include]
1841 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
1842 --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
1843 --infodir=DIR info documentation [DATAROOTDIR/info]
1844 --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
1845 --mandir=DIR man documentation [DATAROOTDIR/man]
1846 --docdir=DIR documentation root [DATAROOTDIR/doc/emacs]
1847 --htmldir=DIR html documentation [DOCDIR]
1848 --dvidir=DIR dvi documentation [DOCDIR]
1849 --pdfdir=DIR pdf documentation [DOCDIR]
1850 --psdir=DIR ps documentation [DOCDIR]
1856 --program-prefix=PREFIX prepend PREFIX to installed program names
1857 --program-suffix=SUFFIX append SUFFIX to installed program names
1858 --program-transform-name=PROGRAM run
sed PROGRAM on installed program names
1861 --x-includes=DIR X include files are
in DIR
1862 --x-libraries=DIR X library files are
in DIR
1865 --build=BUILD configure
for building on BUILD
[guessed
]
1866 --host=HOST cross-compile to build programs to run on HOST
[BUILD
]
1870 if test -n "$ac_init_help"; then
1871 case $ac_init_help in
1872 short | recursive
) echo "Configuration of emacs 24.0.50:";;
1877 --disable-option-checking ignore unrecognized
--enable/--with options
1878 --disable-FEATURE do not include FEATURE
(same as
--enable-FEATURE=no
)
1879 --enable-FEATURE[=ARG
] include FEATURE
[ARG
=yes]
1880 --disable-ns-self-contained
1881 disable self contained build under NeXTstep
1882 --enable-asserts compile code with asserts enabled
1883 --enable-maintainer-mode
1884 enable make rules and dependencies not useful
(and
1885 sometimes confusing
) to the casual installer
1886 --enable-locallisppath=PATH
1887 directories Emacs should search
for lisp files
1888 specific to this site
1889 --enable-checking[=LIST
]
1890 enable expensive run-time checks. With LIST
, enable
1891 only specific categories of checks. Categories are
:
1892 all
,yes,no. Flags are
: stringbytes
, stringoverrun
,
1893 stringfreelist
, xmallocoverrun
, conslist
1894 --enable-use-lisp-union-type
1895 use a union
for the Lisp_Object data
type. This is
1896 only useful
for development
for catching certain
1898 --enable-profiling build emacs with profiling support. This might not
1899 work on all platforms
1900 --enable-autodepend automatically generate dependencies to .h-files.
1901 Requires GNU Make and Gcc. Enabled
if GNU Make and
1903 --disable-dependency-tracking speeds up one-time build
1904 --enable-dependency-tracking do not reject slow dependency extractors
1905 --disable-largefile omit support
for large files
1908 --with-PACKAGE[=ARG
] use PACKAGE
[ARG
=yes]
1909 --without-PACKAGE do not use PACKAGE
(same as
--with-PACKAGE=no
)
1910 --without-pop don
't support POP mail retrieval with movemail
1911 --with-kerberos support Kerberos-authenticated POP
1912 --with-kerberos5 support Kerberos version 5 authenticated POP
1913 --with-hesiod support Hesiod to get the POP server host
1914 --with-mmdf support MMDF mailboxes
1915 --with-mail-unlink unlink, rather than empty, mail spool after reading
1916 --with-mailhost=HOSTNAME
1917 string giving default POP mail host
1918 --without-sound don't compile with sound support
1919 --without-sync-input process async input synchronously
1920 --with-x-toolkit=KIT use an X toolkit
(KIT one of
: yes or gtk
, gtk3
,
1921 lucid or athena
, motif
, no
)
1922 --without-xpm don
't compile with XPM image support
1923 --without-jpeg don't compile with JPEG image support
1924 --without-tiff don
't compile with TIFF image support
1925 --without-gif don't compile with GIF image support
1926 --without-png don
't compile with PNG image support
1927 --without-rsvg don't compile with SVG image support
1928 --without-xml2 don
't compile with XML parsing support
1929 --without-imagemagick don't compile with ImageMagick image support
1930 --without-xft don
't use XFT for anti aliased fonts
1931 --without-libotf don't use libotf
for OpenType font support
1932 --without-m17n-flt don
't use m17n-flt for text shaping
1933 --without-toolkit-scroll-bars
1934 don't use Motif or Xaw3d scroll bars
1935 --without-xaw3d don
't use Xaw3d
1936 --without-xim don't use X11 XIM
1937 --with-ns use NeXTstep
(Cocoa or GNUstep
) windowing system
1938 --without-gpm don
't use -lgpm for mouse support on a GNU/Linux
1940 --without-dbus don't compile with D-Bus support
1941 --without-gconf don
't compile with GConf support
1942 --without-selinux don't compile with SELinux support
1943 --without-gnutls don
't use -lgnutls for SSL/TLS support
1944 --without-makeinfo don't require makeinfo
for building manuals
1945 --without-compress-info don
't compress the installed Info pages
1946 --with-pkg-config-prog=PATH
1947 path to pkg-config for finding GTK and librsvg
1948 --with-crt-dir=DIR directory containing crtn.o etc. The default is
1949 /usr/lib, or /usr/lib64 on some platforms.
1950 --with-gameuser=USER user for shared game score files
1951 --with-gnustep-conf=PATH
1952 path to GNUstep.conf; default $GNUSTEP_CONFIG_FILE,
1953 or /etc/GNUstep/GNUstep.conf
1954 --with-x use the X Window System
1956 Some influential environment variables:
1957 CC C compiler command
1958 CFLAGS C compiler flags
1959 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
1960 nonstandard directory <lib dir>
1961 LIBS libraries to pass to the linker, e.g. -l<library>
1962 CPPFLAGS (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if
1963 you have headers in a nonstandard directory <include dir>
1965 XMKMF Path to xmkmf, Makefile generator for X Window System
1967 Use these variables to override the choices made by `configure' or to
help
1968 it to
find libraries and programs with nonstandard names
/locations.
1970 Report bugs to the package provider.
1975 if test "$ac_init_help" = "recursive"; then
1976 # If there are subdirs, report their specific --help.
1977 for ac_dir
in : $ac_subdirs_all; do test "x$ac_dir" = x
: && continue
1978 test -d "$ac_dir" ||
1979 { cd "$srcdir" && ac_pwd
=`pwd` && srcdir
=.
&& test -d "$ac_dir"; } ||
1984 .
) ac_dir_suffix
= ac_top_builddir_sub
=. ac_top_build_prefix
= ;;
1986 ac_dir_suffix
=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
1987 # A ".." for each directory in $ac_dir_suffix.
1988 ac_top_builddir_sub
=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
1989 case $ac_top_builddir_sub in
1990 "") ac_top_builddir_sub
=. ac_top_build_prefix
= ;;
1991 *) ac_top_build_prefix
=$ac_top_builddir_sub/ ;;
1994 ac_abs_top_builddir
=$ac_pwd
1995 ac_abs_builddir
=$ac_pwd$ac_dir_suffix
1996 # for backward compatibility:
1997 ac_top_builddir
=$ac_top_build_prefix
2000 .
) # We are building in place.
2002 ac_top_srcdir
=$ac_top_builddir_sub
2003 ac_abs_top_srcdir
=$ac_pwd ;;
2004 [\\/]* | ?
:[\\/]* ) # Absolute name.
2005 ac_srcdir
=$srcdir$ac_dir_suffix;
2006 ac_top_srcdir
=$srcdir
2007 ac_abs_top_srcdir
=$srcdir ;;
2009 ac_srcdir
=$ac_top_build_prefix$srcdir$ac_dir_suffix
2010 ac_top_srcdir
=$ac_top_build_prefix$srcdir
2011 ac_abs_top_srcdir
=$ac_pwd/$srcdir ;;
2013 ac_abs_srcdir
=$ac_abs_top_srcdir$ac_dir_suffix
2015 cd "$ac_dir" ||
{ ac_status
=$?
; continue; }
2016 # Check for guested configure.
2017 if test -f "$ac_srcdir/configure.gnu"; then
2019 $SHELL "$ac_srcdir/configure.gnu" --help=recursive
2020 elif test -f "$ac_srcdir/configure"; then
2022 $SHELL "$ac_srcdir/configure" --help=recursive
2024 $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
2026 cd "$ac_pwd" ||
{ ac_status
=$?
; break; }
2030 test -n "$ac_init_help" && exit $ac_status
2031 if $ac_init_version; then
2033 emacs configure
24.0.50
2034 generated by GNU Autoconf
2.68
2036 Copyright
(C
) 2010 Free Software Foundation
, Inc.
2037 This configure
script is free software
; the Free Software Foundation
2038 gives unlimited permission to copy
, distribute and modify it.
2043 ## ------------------------ ##
2044 ## Autoconf initialization. ##
2045 ## ------------------------ ##
2047 # ac_fn_c_try_compile LINENO
2048 # --------------------------
2049 # Try to compile conftest.$ac_ext, and return whether this succeeded.
2050 ac_fn_c_try_compile
()
2052 as_lineno
=${as_lineno-"$1"} as_lineno_stack
=as_lineno_stack
=$as_lineno_stack
2053 rm -f conftest.
$ac_objext
2054 if { { ac_try
="$ac_compile"
2056 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
2057 *) ac_try_echo=$ac_try;;
2059 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2060 $as_echo "$ac_try_echo"; } >&5
2061 (eval "$ac_compile") 2>conftest.err
2063 if test -s conftest.err; then
2064 grep -v '^ *+' conftest.err >conftest.er1
2065 cat conftest.er1 >&5
2066 mv -f conftest.er1 conftest.err
2068 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2069 test $ac_status = 0; } && {
2070 test -z "$ac_c_werror_flag" ||
2071 test ! -s conftest.err
2072 } && test -s conftest.$ac_objext; then :
2075 $as_echo "$as_me: failed program was:" >&5
2076 sed 's/^/| /' conftest.$ac_ext >&5
2080 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2081 as_fn_set_status $ac_retval
2083 } # ac_fn_c_try_compile
2085 # ac_fn_c_try_cpp LINENO
2086 # ----------------------
2087 # Try to preprocess conftest.$ac_ext, and return whether this succeeded.
2090 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2091 if { { ac_try="$ac_cpp conftest.$ac_ext"
2093 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
2094 *) ac_try_echo
=$ac_try;;
2096 eval ac_try_echo
="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2097 $as_echo "$ac_try_echo"; } >&5
2098 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
2100 if test -s conftest.err
; then
2101 grep -v '^ *+' conftest.err
>conftest.er1
2102 cat conftest.er1
>&5
2103 mv -f conftest.er1 conftest.err
2105 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2106 test $ac_status = 0; } > conftest.i
&& {
2107 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
2108 test ! -s conftest.err
2112 $as_echo "$as_me: failed program was:" >&5
2113 sed 's/^/| /' conftest.
$ac_ext >&5
2117 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2118 as_fn_set_status
$ac_retval
2122 # ac_fn_c_check_header_mongrel LINENO HEADER VAR INCLUDES
2123 # -------------------------------------------------------
2124 # Tests whether HEADER exists, giving a warning if it cannot be compiled using
2125 # the include files in INCLUDES and setting the cache variable VAR
2127 ac_fn_c_check_header_mongrel
()
2129 as_lineno
=${as_lineno-"$1"} as_lineno_stack
=as_lineno_stack
=$as_lineno_stack
2130 if eval \
${$3+:} false
; then :
2131 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2132 $as_echo_n "checking for $2... " >&6; }
2133 if eval \
${$3+:} false
; then :
2134 $as_echo_n "(cached) " >&6
2137 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2138 $as_echo "$ac_res" >&6; }
2140 # Is the header compilable?
2141 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5
2142 $as_echo_n "checking $2 usability... " >&6; }
2143 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
2144 /* end confdefs.h. */
2148 if ac_fn_c_try_compile
"$LINENO"; then :
2149 ac_header_compiler
=yes
2151 ac_header_compiler
=no
2153 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
2154 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5
2155 $as_echo "$ac_header_compiler" >&6; }
2157 # Is the header present?
2158 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5
2159 $as_echo_n "checking $2 presence... " >&6; }
2160 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
2161 /* end confdefs.h. */
2164 if ac_fn_c_try_cpp
"$LINENO"; then :
2165 ac_header_preproc
=yes
2167 ac_header_preproc
=no
2169 rm -f conftest.err conftest.i conftest.
$ac_ext
2170 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5
2171 $as_echo "$ac_header_preproc" >&6; }
2173 # So? What about this header?
2174 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in #((
2176 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5
2177 $as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;}
2178 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
2179 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
2182 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5
2183 $as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;}
2184 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: check for missing prerequisite headers?" >&5
2185 $as_echo "$as_me: WARNING: $2: check for missing prerequisite headers?" >&2;}
2186 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5
2187 $as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;}
2188 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&5
2189 $as_echo "$as_me: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&2;}
2190 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
2191 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
2194 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2195 $as_echo_n "checking for $2... " >&6; }
2196 if eval \
${$3+:} false
; then :
2197 $as_echo_n "(cached) " >&6
2199 eval "$3=\$ac_header_compiler"
2202 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2203 $as_echo "$ac_res" >&6; }
2205 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2207 } # ac_fn_c_check_header_mongrel
2209 # ac_fn_c_try_run LINENO
2210 # ----------------------
2211 # Try to link conftest.$ac_ext, and return whether this succeeded. Assumes
2212 # that executables *can* be run.
2215 as_lineno
=${as_lineno-"$1"} as_lineno_stack
=as_lineno_stack
=$as_lineno_stack
2216 if { { ac_try
="$ac_link"
2218 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
2219 *) ac_try_echo=$ac_try;;
2221 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2222 $as_echo "$ac_try_echo"; } >&5
2223 (eval "$ac_link") 2>&5
2225 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2226 test $ac_status = 0; } && { ac_try='./conftest$ac_exeext'
2227 { { case "(($ac_try" in
2228 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
2229 *) ac_try_echo
=$ac_try;;
2231 eval ac_try_echo
="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2232 $as_echo "$ac_try_echo"; } >&5
2233 (eval "$ac_try") 2>&5
2235 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2236 test $ac_status = 0; }; }; then :
2239 $as_echo "$as_me: program exited with status $ac_status" >&5
2240 $as_echo "$as_me: failed program was:" >&5
2241 sed 's/^/| /' conftest.
$ac_ext >&5
2243 ac_retval
=$ac_status
2245 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
2246 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2247 as_fn_set_status
$ac_retval
2251 # ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES
2252 # -------------------------------------------------------
2253 # Tests whether HEADER exists and can be compiled using the include files in
2254 # INCLUDES, setting the cache variable VAR accordingly.
2255 ac_fn_c_check_header_compile
()
2257 as_lineno
=${as_lineno-"$1"} as_lineno_stack
=as_lineno_stack
=$as_lineno_stack
2258 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2259 $as_echo_n "checking for $2... " >&6; }
2260 if eval \
${$3+:} false
; then :
2261 $as_echo_n "(cached) " >&6
2263 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
2264 /* end confdefs.h. */
2268 if ac_fn_c_try_compile
"$LINENO"; then :
2273 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
2276 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2277 $as_echo "$ac_res" >&6; }
2278 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2280 } # ac_fn_c_check_header_compile
2282 # ac_fn_c_try_link LINENO
2283 # -----------------------
2284 # Try to link conftest.$ac_ext, and return whether this succeeded.
2287 as_lineno
=${as_lineno-"$1"} as_lineno_stack
=as_lineno_stack
=$as_lineno_stack
2288 rm -f conftest.
$ac_objext conftest
$ac_exeext
2289 if { { ac_try
="$ac_link"
2291 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
2292 *) ac_try_echo=$ac_try;;
2294 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2295 $as_echo "$ac_try_echo"; } >&5
2296 (eval "$ac_link") 2>conftest.err
2298 if test -s conftest.err; then
2299 grep -v '^ *+' conftest.err >conftest.er1
2300 cat conftest.er1 >&5
2301 mv -f conftest.er1 conftest.err
2303 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2304 test $ac_status = 0; } && {
2305 test -z "$ac_c_werror_flag" ||
2306 test ! -s conftest.err
2307 } && test -s conftest$ac_exeext && {
2308 test "$cross_compiling" = yes ||
2309 $as_test_x conftest$ac_exeext
2313 $as_echo "$as_me: failed program was:" >&5
2314 sed 's/^/| /' conftest.$ac_ext >&5
2318 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
2319 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
2320 # interfere with the next link command; also delete a directory that is
2321 # left behind by Apple's compiler. We do this before executing the actions.
2322 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
2323 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2324 as_fn_set_status $ac_retval
2326 } # ac_fn_c_try_link
2328 # ac_fn_c_check_decl LINENO SYMBOL VAR INCLUDES
2329 # ---------------------------------------------
2330 # Tests whether SYMBOL is declared in INCLUDES, setting cache variable VAR
2332 ac_fn_c_check_decl ()
2334 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2335 as_decl_name=`echo $2|
sed 's/ *(.*//'`
2336 as_decl_use=`echo $2|
sed -e 's/(/((/' -e 's/)/) 0&/' -e 's/,/) 0& (/g'`
2337 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $as_decl_name is declared" >&5
2338 $as_echo_n "checking whether $as_decl_name is declared... " >&6; }
2339 if eval \${$3+:} false; then :
2340 $as_echo_n "(cached) " >&6
2342 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2343 /* end confdefs.h. */
2348 #ifndef $as_decl_name
2350 (void) $as_decl_use;
2352 (void) $as_decl_name;
2360 if ac_fn_c_try_compile "$LINENO"; then :
2365 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2368 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2369 $as_echo "$ac_res" >&6; }
2370 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2372 } # ac_fn_c_check_decl
2374 # ac_fn_c_check_header_preproc LINENO HEADER VAR
2375 # ----------------------------------------------
2376 # Tests whether HEADER is present, setting the cache variable VAR accordingly.
2377 ac_fn_c_check_header_preproc ()
2379 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2380 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2381 $as_echo_n "checking for $2... " >&6; }
2382 if eval \${$3+:} false; then :
2383 $as_echo_n "(cached) " >&6
2385 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2386 /* end confdefs.h. */
2389 if ac_fn_c_try_cpp "$LINENO"; then :
2394 rm -f conftest.err conftest.i conftest.$ac_ext
2397 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2398 $as_echo "$ac_res" >&6; }
2399 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2401 } # ac_fn_c_check_header_preproc
2403 # ac_fn_c_check_member LINENO AGGR MEMBER VAR INCLUDES
2404 # ----------------------------------------------------
2405 # Tries to find if the field MEMBER exists in type AGGR, after including
2406 # INCLUDES, setting cache variable VAR accordingly.
2407 ac_fn_c_check_member ()
2409 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2410 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2.$3" >&5
2411 $as_echo_n "checking for $2.$3... " >&6; }
2412 if eval \${$4+:} false; then :
2413 $as_echo_n "(cached) " >&6
2415 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2416 /* end confdefs.h. */
2428 if ac_fn_c_try_compile "$LINENO"; then :
2431 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2432 /* end confdefs.h. */
2438 if (sizeof ac_aggr.$3)
2444 if ac_fn_c_try_compile "$LINENO"; then :
2449 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2451 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2454 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2455 $as_echo "$ac_res" >&6; }
2456 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2458 } # ac_fn_c_check_member
2460 # ac_fn_c_check_func LINENO FUNC VAR
2461 # ----------------------------------
2462 # Tests whether FUNC exists, setting the cache variable VAR accordingly
2463 ac_fn_c_check_func ()
2465 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2466 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2467 $as_echo_n "checking for $2... " >&6; }
2468 if eval \${$3+:} false; then :
2469 $as_echo_n "(cached) " >&6
2471 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2472 /* end confdefs.h. */
2473 /* Define $2 to an innocuous variant, in case <limits.h> declares $2.
2474 For example, HP-UX 11i <limits.h> declares gettimeofday. */
2475 #define $2 innocuous_$2
2477 /* System header to define __stub macros and hopefully few prototypes,
2478 which can conflict with char $2 (); below.
2479 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
2480 <limits.h> exists even on freestanding compilers. */
2483 # include <limits.h>
2485 # include <assert.h>
2490 /* Override any GCC internal prototype to avoid an error.
2491 Use char because int might match the return type of a GCC
2492 builtin and then its argument prototype would still apply. */
2497 /* The GNU C library defines this for functions which it implements
2498 to always fail with ENOSYS. Some functions are actually named
2499 something starting with __ and the normal name is an alias. */
2500 #if defined __stub_$2 || defined __stub___$2
2512 if ac_fn_c_try_link "$LINENO"; then :
2517 rm -f core conftest.err conftest.$ac_objext \
2518 conftest$ac_exeext conftest.$ac_ext
2521 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2522 $as_echo "$ac_res" >&6; }
2523 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2525 } # ac_fn_c_check_func
2527 # ac_fn_c_check_type LINENO TYPE VAR INCLUDES
2528 # -------------------------------------------
2529 # Tests whether TYPE exists after having included INCLUDES, setting cache
2530 # variable VAR accordingly.
2531 ac_fn_c_check_type ()
2533 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2534 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2535 $as_echo_n "checking for $2... " >&6; }
2536 if eval \${$3+:} false; then :
2537 $as_echo_n "(cached) " >&6
2540 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2541 /* end confdefs.h. */
2552 if ac_fn_c_try_compile "$LINENO"; then :
2553 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2554 /* end confdefs.h. */
2565 if ac_fn_c_try_compile "$LINENO"; then :
2570 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2572 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2575 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2576 $as_echo "$ac_res" >&6; }
2577 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2579 } # ac_fn_c_check_type
2581 # ac_fn_c_compute_int LINENO EXPR VAR INCLUDES
2582 # --------------------------------------------
2583 # Tries to find the compile-time value of EXPR in a program that includes
2584 # INCLUDES, setting VAR accordingly. Returns whether the value could be
2586 ac_fn_c_compute_int ()
2588 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2589 if test "$cross_compiling" = yes; then
2590 # Depending upon the size, compute the lo and hi bounds.
2591 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2592 /* end confdefs.h. */
2597 static int test_array [1 - 2 * !(($2) >= 0)];
2604 if ac_fn_c_try_compile "$LINENO"; then :
2607 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2608 /* end confdefs.h. */
2613 static int test_array [1 - 2 * !(($2) <= $ac_mid)];
2620 if ac_fn_c_try_compile "$LINENO"; then :
2621 ac_hi=$ac_mid; break
2623 as_fn_arith $ac_mid + 1 && ac_lo=$as_val
2624 if test $ac_lo -le $ac_mid; then
2628 as_fn_arith 2 '*' $ac_mid + 1 && ac_mid=$as_val
2630 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2633 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2634 /* end confdefs.h. */
2639 static int test_array [1 - 2 * !(($2) < 0)];
2646 if ac_fn_c_try_compile "$LINENO"; then :
2649 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2650 /* end confdefs.h. */
2655 static int test_array [1 - 2 * !(($2) >= $ac_mid)];
2662 if ac_fn_c_try_compile "$LINENO"; then :
2663 ac_lo=$ac_mid; break
2665 as_fn_arith '(' $ac_mid ')' - 1 && ac_hi=$as_val
2666 if test $ac_mid -le $ac_hi; then
2670 as_fn_arith 2 '*' $ac_mid && ac_mid=$as_val
2672 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2677 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2679 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2680 # Binary search between lo and hi bounds.
2681 while test "x$ac_lo" != "x$ac_hi"; do
2682 as_fn_arith '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo && ac_mid=$as_val
2683 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2684 /* end confdefs.h. */
2689 static int test_array [1 - 2 * !(($2) <= $ac_mid)];
2696 if ac_fn_c_try_compile "$LINENO"; then :
2699 as_fn_arith '(' $ac_mid ')' + 1 && ac_lo=$as_val
2701 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2704 ?*) eval "$3=\$ac_lo"; ac_retval=0 ;;
2708 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2709 /* end confdefs.h. */
2711 static long int longval () { return $2; }
2712 static unsigned long int ulongval () { return $2; }
2719 FILE *f = fopen ("conftest.val", "w");
2724 long int i = longval ();
2727 fprintf (f, "%ld", i);
2731 unsigned long int i = ulongval ();
2734 fprintf (f, "%lu", i);
2736 /* Do not output a trailing newline, as this causes \r\n confusion
2737 on some platforms. */
2738 return ferror (f) || fclose (f) != 0;
2744 if ac_fn_c_try_run "$LINENO"; then :
2745 echo >>conftest.val; read $3 <conftest.val; ac_retval=0
2749 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
2750 conftest.$ac_objext conftest.beam conftest.$ac_ext
2754 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2755 as_fn_set_status $ac_retval
2757 } # ac_fn_c_compute_int
2758 cat >config.log <<_ACEOF
2759 This file contains any messages produced by compilers while
2760 running configure, to aid debugging if configure makes a mistake.
2762 It was created by emacs $as_me 24.0.50, which was
2763 generated by GNU Autoconf 2.68. Invocation command line was
2775 hostname = `(hostname || uname
-n) 2>/dev
/null |
sed 1q
`
2776 uname -m = `(uname
-m) 2>/dev
/null ||
echo unknown
`
2777 uname -r = `(uname
-r) 2>/dev
/null ||
echo unknown
`
2778 uname -s = `(uname
-s) 2>/dev
/null ||
echo unknown
`
2779 uname -v = `(uname
-v) 2>/dev
/null ||
echo unknown
`
2781 /usr/bin/uname -p = `(/usr
/bin
/uname
-p) 2>/dev
/null ||
echo unknown
`
2782 /bin/uname -X = `(/bin
/uname
-X) 2>/dev
/null ||
echo unknown
`
2784 /bin/arch = `(/bin
/arch
) 2>/dev
/null ||
echo unknown
`
2785 /usr/bin/arch -k = `(/usr
/bin
/arch
-k) 2>/dev
/null ||
echo unknown
`
2786 /usr/convex/getsysinfo = `(/usr
/convex
/getsysinfo
) 2>/dev
/null ||
echo unknown
`
2787 /usr/bin/hostinfo = `(/usr
/bin
/hostinfo
) 2>/dev
/null ||
echo unknown
`
2788 /bin/machine = `(/bin
/machine
) 2>/dev
/null ||
echo unknown
`
2789 /usr/bin/oslevel = `(/usr
/bin
/oslevel
) 2>/dev
/null ||
echo unknown
`
2790 /bin/universe = `(/bin
/universe
) 2>/dev
/null ||
echo unknown
`
2794 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2798 test -z "$as_dir" && as_dir=.
2799 $as_echo "PATH: $as_dir"
2815 # Keep a trace of the command line.
2816 # Strip out --no-create and --no-recursion so they do not pile up.
2817 # Strip out --silent because we don't want to record it for future runs.
2818 # Also quote any args containing shell meta-characters.
2819 # Make two passes to allow for proper duplicate-argument suppression.
2823 ac_must_keep_next=false
2829 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
2830 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
2831 | -silent | --silent | --silen | --sile | --sil)
2834 ac_arg=`$as_echo "$ac_arg" |
sed "s/'/'\\\\\\\\''/g"` ;;
2837 1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
2839 as_fn_append ac_configure_args1 " '$ac_arg'"
2840 if test $ac_must_keep_next = true; then
2841 ac_must_keep_next=false # Got value, back to normal.
2844 *=* | --config-cache | -C | -disable-* | --disable-* \
2845 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
2846 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
2847 | -with-* | --with-* | -without-* | --without-* | --x)
2848 case "$ac_configure_args0 " in
2849 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
2852 -* ) ac_must_keep_next=true ;;
2855 as_fn_append ac_configure_args " '$ac_arg'"
2860 { ac_configure_args0=; unset ac_configure_args0;}
2861 { ac_configure_args1=; unset ac_configure_args1;}
2863 # When interrupted or exit'd, cleanup temporary files, and complete
2864 # config.log. We remove comments because anyway the quotes in there
2865 # would cause problems or look ugly.
2866 # WARNING: Use '\'' to represent an apostrophe within the trap.
2867 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
2868 trap 'exit_status=$?
2869 # Save into config.log some information that might help in debugging.
2873 $as_echo "## ---------------- ##
2874 ## Cache variables. ##
2875 ## ---------------- ##"
2877 # The following way of writing the cache mishandles newlines in values,
2879 for ac_var in `(set) 2>&1 |
sed -n '\''s
/^\
([a-zA-Z_
][a-zA-Z0-9_
]*\
)=.
*/\
1/p
'\''`; do
2880 eval ac_val=\$$ac_var
2884 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
2885 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
2888 _ | IFS | as_nl) ;; #(
2889 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
2890 *) { eval $ac_var=; unset $ac_var;} ;;
2895 case $as_nl`(ac_space
='\'' '\''; set) 2>&1` in #(
2896 *${as_nl}ac_space=\ *)
2898 "s/'\''/'\''\\\\'\'''\''/g;
2899 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
2902 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
2909 $as_echo "## ----------------- ##
2910 ## Output variables. ##
2911 ## ----------------- ##"
2913 for ac_var in $ac_subst_vars
2915 eval ac_val=\$$ac_var
2917 *\'\''*) ac_val=`$as_echo "$ac_val" |
sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2919 $as_echo "$ac_var='\''$ac_val'\''"
2923 if test -n "$ac_subst_files"; then
2924 $as_echo "## ------------------- ##
2925 ## File substitutions. ##
2926 ## ------------------- ##"
2928 for ac_var in $ac_subst_files
2930 eval ac_val=\$$ac_var
2932 *\'\''*) ac_val=`$as_echo "$ac_val" |
sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2934 $as_echo "$ac_var='\''$ac_val'\''"
2939 if test -s confdefs.h; then
2940 $as_echo "## ----------- ##
2947 test "$ac_signal" != 0 &&
2948 $as_echo "$as_me: caught signal $ac_signal"
2949 $as_echo "$as_me: exit $exit_status"
2951 rm -f core *.core core.conftest.* &&
2952 rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
2955 for ac_signal in 1 2 13 15; do
2956 trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
2960 # confdefs.h avoids OS command line length limits that DEFS can exceed.
2961 rm -f -r conftest* confdefs.h
2963 $as_echo "/* confdefs.h */" > confdefs.h
2965 # Predefined preprocessor variables.
2967 cat >>confdefs.h <<_ACEOF
2968 #define PACKAGE_NAME "$PACKAGE_NAME"
2971 cat >>confdefs.h <<_ACEOF
2972 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
2975 cat >>confdefs.h <<_ACEOF
2976 #define PACKAGE_VERSION "$PACKAGE_VERSION"
2979 cat >>confdefs.h <<_ACEOF
2980 #define PACKAGE_STRING "$PACKAGE_STRING"
2983 cat >>confdefs.h <<_ACEOF
2984 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
2987 cat >>confdefs.h <<_ACEOF
2988 #define PACKAGE_URL "$PACKAGE_URL"
2992 # Let the site file select an alternate cache file if it wants to.
2993 # Prefer an explicitly selected file to automatically selected ones.
2996 if test -n "$CONFIG_SITE"; then
2997 # We do not want a PATH search for config.site.
2998 case $CONFIG_SITE in #((
2999 -*) ac_site_file1=./$CONFIG_SITE;;
3000 */*) ac_site_file1=$CONFIG_SITE;;
3001 *) ac_site_file1=./$CONFIG_SITE;;
3003 elif test "x$prefix" != xNONE; then
3004 ac_site_file1=$prefix/share/config.site
3005 ac_site_file2=$prefix/etc/config.site
3007 ac_site_file1=$ac_default_prefix/share/config.site
3008 ac_site_file2=$ac_default_prefix/etc/config.site
3010 for ac_site_file in "$ac_site_file1" "$ac_site_file2"
3012 test "x$ac_site_file" = xNONE && continue
3013 if test /dev/null != "$ac_site_file" && test -r "$ac_site_file"; then
3014 { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
3015 $as_echo "$as_me: loading site script $ac_site_file" >&6;}
3016 sed 's/^/| /' "$ac_site_file" >&5
3018 || { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3019 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3020 as_fn_error $? "failed to load site
script $ac_site_file
3021 See \
`config.log' for more details" "$LINENO" 5; }
3025 if test -r "$cache_file"; then
3026 # Some versions of bash will fail to source /dev/null (special files
3027 # actually), so we avoid doing that. DJGPP emulates it as a regular file.
3028 if test /dev/null != "$cache_file" && test -f "$cache_file"; then
3029 { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
3030 $as_echo "$as_me: loading cache $cache_file" >&6;}
3032 [\\/]* | ?:[\\/]* ) . "$cache_file";;
3033 *) . "./$cache_file";;
3037 { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
3038 $as_echo "$as_me: creating cache $cache_file" >&6;}
3042 as_fn_append ac_header_list " stdlib.h"
3043 as_fn_append ac_header_list " unistd.h"
3044 as_fn_append ac_header_list " sys/param.h"
3045 gl_getopt_required=GNU
3046 as_fn_append ac_header_list " getopt.h"
3047 as_fn_append ac_func_list " lstat"
3048 as_fn_append ac_func_list " alarm"
3049 as_fn_append ac_func_list " readlink"
3050 as_fn_append ac_header_list " sys/socket.h"
3051 as_fn_append ac_header_list " wchar.h"
3052 as_fn_append ac_header_list " stdint.h"
3053 as_fn_append ac_func_list " tzset"
3054 as_fn_append ac_func_list " symlink"
3055 as_fn_append ac_header_list " sys/stat.h"
3056 as_fn_append ac_header_list " sys/time.h"
3057 as_fn_append ac_func_list " localtime_r"
3058 # Check that the precious variables saved in the cache have kept the same
3060 ac_cache_corrupted=false
3061 for ac_var in $ac_precious_vars; do
3062 eval ac_old_set=\$ac_cv_env_${ac_var}_set
3063 eval ac_new_set=\$ac_env_${ac_var}_set
3064 eval ac_old_val=\$ac_cv_env_${ac_var}_value
3065 eval ac_new_val=\$ac_env_${ac_var}_value
3066 case $ac_old_set,$ac_new_set in
3068 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run
" >&5
3069 $as_echo "$as_me: error
: \
`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
3070 ac_cache_corrupted=: ;;
3072 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not
set in the previous run
" >&5
3073 $as_echo "$as_me: error
: \
`$ac_var' was not set in the previous run" >&2;}
3074 ac_cache_corrupted=: ;;
3077 if test "x$ac_old_val" != "x$ac_new_val"; then
3078 # differences in whitespace do not lead to failure.
3079 ac_old_val_w=`echo x
$ac_old_val`
3080 ac_new_val_w=`echo x
$ac_new_val`
3081 if test "$ac_old_val_w" != "$ac_new_val_w"; then
3082 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
3083 $as_echo "$as_me: error: \`$ac_var' has changed since the previous run
:" >&2;}
3084 ac_cache_corrupted=:
3086 { $as_echo "$as_me:${as_lineno-$LINENO}: warning
: ignoring whitespace changes
in \
`$ac_var' since the previous run:" >&5
3087 $as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
3088 eval $ac_var=\$ac_old_val
3090 { $as_echo "$as_me:${as_lineno-$LINENO}: former value: \`$ac_old_val'" >&5
3091 $as_echo "$as_me: former value
: \
`$ac_old_val'" >&2;}
3092 { $as_echo "$as_me:${as_lineno-$LINENO}: current value: \`$ac_new_val'" >&5
3093 $as_echo "$as_me: current value: \`$ac_new_val'" >&2;}
3096 # Pass precious variables to config.status.
3097 if test "$ac_new_set" = set; then
3099 *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s
/'/'\\\\\\\\''/g
"` ;;
3100 *) ac_arg=$ac_var=$ac_new_val ;;
3102 case " $ac_configure_args " in
3103 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
3104 *) as_fn_append ac_configure_args " '$ac_arg'" ;;
3108 if $ac_cache_corrupted; then
3109 { $as_echo "$as_me:${as_lineno-$LINENO}: error
: in \
`$ac_pwd':" >&5
3110 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3111 { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
3112 $as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
3113 as_fn_error $? "run \`make distclean' and
/or \
`rm $cache_file' and start over" "$LINENO" 5
3115 ## -------------------- ##
3116 ## Main body of script. ##
3117 ## -------------------- ##
3120 ac_cpp='$CPP $CPPFLAGS'
3121 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3122 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3123 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3126 ac_config_headers="$ac_config_headers src/config.h:src/config.in"
3129 am__api_version='1.11'
3132 for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do
3133 if test -f "$ac_dir/install-sh"; then
3135 ac_install_sh="$ac_aux_dir/install-sh -c"
3137 elif test -f "$ac_dir/install.sh"; then
3139 ac_install_sh="$ac_aux_dir/install.sh -c"
3141 elif test -f "$ac_dir/shtool"; then
3143 ac_install_sh="$ac_aux_dir/shtool install -c"
3147 if test -z "$ac_aux_dir"; then
3148 as_fn_error $? "cannot find install-sh, install.sh, or shtool in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" "$LINENO" 5
3151 # These three variables are undocumented and unsupported,
3152 # and are intended to be withdrawn in a future Autoconf release.
3153 # They can cause serious problems if a builder's source tree is in a directory
3154 # whose full name contains unusual characters.
3155 ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
3156 ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
3157 ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var.
3160 # Find a good install program. We prefer a C program (faster),
3161 # so one script is as good as another. But avoid the broken or
3162 # incompatible versions:
3163 # SysV /etc/install, /usr/sbin/install
3164 # SunOS /usr/etc/install
3165 # IRIX /sbin/install
3167 # AmigaOS /C/install, which installs bootblocks on floppy discs
3168 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
3169 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
3170 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
3171 # OS/2's system install, which has a completely different semantic
3172 # ./install, which can be erroneously created by make from ./install.sh.
3173 # Reject install programs that cannot install multiple files.
3174 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5
3175 $as_echo_n "checking for a BSD-compatible install... " >&6; }
3176 if test -z "$INSTALL"; then
3177 if ${ac_cv_path_install+:} false; then :
3178 $as_echo_n "(cached) " >&6
3180 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3184 test -z "$as_dir" && as_dir=.
3185 # Account for people who put trailing slashes in PATH elements.
3186 case $as_dir/ in #((
3187 ./ | .// | /[cC]/* | \
3188 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
3189 ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \
3192 # OSF1 and SCO ODT 3.0 have their own names for install.
3193 # Don't use installbsd from OSF since it installs stuff as root
3195 for ac_prog in ginstall scoinst install; do
3196 for ac_exec_ext in '' $ac_executable_extensions; do
3197 if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; }; then
3198 if test $ac_prog = install &&
3199 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
3200 # AIX install. It has an incompatible calling convention.
3202 elif test $ac_prog = install &&
3203 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
3204 # program-specific install script used by HP pwplus--don't use.
3207 rm -rf conftest.one conftest.two conftest.dir
3208 echo one > conftest.one
3209 echo two > conftest.two
3211 if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" &&
3212 test -s conftest.one && test -s conftest.two &&
3213 test -s conftest.dir/conftest.one &&
3214 test -s conftest.dir/conftest.two
3216 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
3229 rm -rf conftest.one conftest.two conftest.dir
3232 if test "${ac_cv_path_install+set}" = set; then
3233 INSTALL=$ac_cv_path_install
3235 # As a last resort, use the slow shell script. Don't cache a
3236 # value for INSTALL within a source directory, because that will
3237 # break other packages using the cache if that directory is
3238 # removed, or if the value is a relative name.
3239 INSTALL=$ac_install_sh
3242 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
3243 $as_echo "$INSTALL" >&6; }
3245 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
3246 # It thinks the first close brace ends the variable substitution.
3247 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
3249 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
3251 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
3253 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether build environment is sane" >&5
3254 $as_echo_n "checking whether build environment is sane... " >&6; }
3257 echo timestamp > conftest.file
3258 # Reject unsafe characters in $srcdir or the absolute working directory
3259 # name. Accept space and tab only in the latter.
3263 *[\\\"\#\$\&\'\`$am_lf]*)
3264 as_fn_error $?
"unsafe absolute working directory name" "$LINENO" 5;;
3267 *[\\\"\
#\$\&\'\`$am_lf\ \ ]*)
3268 as_fn_error $?
"unsafe srcdir value: \`$srcdir'" "$LINENO" 5;;
3271 # Do `set' in a subshell so we don't clobber the current shell's
3272 # arguments. Must try -L first in case configure is actually a
3273 # symlink; some systems play weird games with the mod time of symlinks
3274 # (eg FreeBSD returns the mod time of the symlink's containing
3277 set X
`ls -Lt "$srcdir/configure" conftest.file 2> /dev/null`
3278 if test "$*" = "X"; then
3280 set X
`ls -t "$srcdir/configure" conftest.file`
3283 if test "$*" != "X $srcdir/configure conftest.file" \
3284 && test "$*" != "X conftest.file $srcdir/configure"; then
3286 # If neither matched, then we have a broken ls. This can happen
3287 # if, for instance, CONFIG_SHELL is bash and it inherits a
3288 # broken ls alias from the environment. This has actually
3289 # happened. Such a system could not be considered "sane".
3290 as_fn_error $?
"ls -t appears to fail. Make sure there is not a broken
3291 alias in your environment" "$LINENO" 5
3294 test "$2" = conftest.
file
3300 as_fn_error $?
"newly created file is older than distributed files!
3301 Check your system clock" "$LINENO" 5
3303 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3304 $as_echo "yes" >&6; }
3305 test "$program_prefix" != NONE
&&
3306 program_transform_name
="s&^&$program_prefix&;$program_transform_name"
3307 # Use a double $ so make ignores it.
3308 test "$program_suffix" != NONE
&&
3309 program_transform_name
="s&\$&$program_suffix&;$program_transform_name"
3310 # Double any \ or $.
3311 # By default was `s,x,x', remove it if useless.
3312 ac_script
='s/[\\$]/&&/g;s/;s,x,x,$//'
3313 program_transform_name
=`$as_echo "$program_transform_name" | sed "$ac_script"`
3315 # expand $ac_aux_dir to an absolute path
3316 am_aux_dir
=`cd $ac_aux_dir && pwd`
3318 if test x
"${MISSING+set}" != xset
; then
3321 MISSING
="\${SHELL} \"$am_aux_dir/missing\"" ;;
3323 MISSING
="\${SHELL} $am_aux_dir/missing" ;;
3326 # Use eval to expand $SHELL
3327 if eval "$MISSING --run true"; then
3328 am_missing_run
="$MISSING --run "
3331 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`missing' script is too old or missing" >&5
3332 $as_echo "$as_me: WARNING: \`missing' script is too old or missing" >&2;}
3335 if test x
"${install_sh}" != xset
; then
3338 install_sh
="\${SHELL} '$am_aux_dir/install-sh'" ;;
3340 install_sh
="\${SHELL} $am_aux_dir/install-sh"
3344 # Installed binaries are usually stripped using `strip' when the user
3345 # run `make install-strip'. However `strip' might not be the right
3346 # tool to use in cross-compilation environments, therefore Automake
3347 # will honor the `STRIP' environment variable to overrule this program.
3348 if test "$cross_compiling" != no
; then
3349 if test -n "$ac_tool_prefix"; then
3350 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
3351 set dummy
${ac_tool_prefix}strip
; ac_word
=$2
3352 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3353 $as_echo_n "checking for $ac_word... " >&6; }
3354 if ${ac_cv_prog_STRIP+:} false
; then :
3355 $as_echo_n "(cached) " >&6
3357 if test -n "$STRIP"; then
3358 ac_cv_prog_STRIP
="$STRIP" # Let the user override the test.
3360 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
3364 test -z "$as_dir" && as_dir
=.
3365 for ac_exec_ext
in '' $ac_executable_extensions; do
3366 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3367 ac_cv_prog_STRIP
="${ac_tool_prefix}strip"
3368 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3377 STRIP
=$ac_cv_prog_STRIP
3378 if test -n "$STRIP"; then
3379 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
3380 $as_echo "$STRIP" >&6; }
3382 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3383 $as_echo "no" >&6; }
3388 if test -z "$ac_cv_prog_STRIP"; then
3390 # Extract the first word of "strip", so it can be a program name with args.
3391 set dummy strip
; ac_word
=$2
3392 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3393 $as_echo_n "checking for $ac_word... " >&6; }
3394 if ${ac_cv_prog_ac_ct_STRIP+:} false
; then :
3395 $as_echo_n "(cached) " >&6
3397 if test -n "$ac_ct_STRIP"; then
3398 ac_cv_prog_ac_ct_STRIP
="$ac_ct_STRIP" # Let the user override the test.
3400 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
3404 test -z "$as_dir" && as_dir
=.
3405 for ac_exec_ext
in '' $ac_executable_extensions; do
3406 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3407 ac_cv_prog_ac_ct_STRIP
="strip"
3408 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3417 ac_ct_STRIP
=$ac_cv_prog_ac_ct_STRIP
3418 if test -n "$ac_ct_STRIP"; then
3419 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
3420 $as_echo "$ac_ct_STRIP" >&6; }
3422 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3423 $as_echo "no" >&6; }
3426 if test "x$ac_ct_STRIP" = x
; then
3429 case $cross_compiling:$ac_tool_warned in
3431 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3432 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3433 ac_tool_warned
=yes ;;
3438 STRIP
="$ac_cv_prog_STRIP"
3442 INSTALL_STRIP_PROGRAM
="\$(install_sh) -c -s"
3444 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a thread-safe mkdir -p" >&5
3445 $as_echo_n "checking for a thread-safe mkdir -p... " >&6; }
3446 if test -z "$MKDIR_P"; then
3447 if ${ac_cv_path_mkdir+:} false
; then :
3448 $as_echo_n "(cached) " >&6
3450 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
3451 for as_dir
in $PATH$PATH_SEPARATOR/opt
/sfw
/bin
3454 test -z "$as_dir" && as_dir
=.
3455 for ac_prog
in mkdir gmkdir
; do
3456 for ac_exec_ext
in '' $ac_executable_extensions; do
3457 { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; } ||
continue
3458 case `"$as_dir/$ac_prog$ac_exec_ext" --version 2>&1` in #(
3459 'mkdir (GNU coreutils) '* | \
3460 'mkdir (coreutils) '* | \
3461 'mkdir (fileutils) '4.1*)
3462 ac_cv_path_mkdir
=$as_dir/$ac_prog$ac_exec_ext
3472 test -d .
/--version && rmdir .
/--version
3473 if test "${ac_cv_path_mkdir+set}" = set; then
3474 MKDIR_P
="$ac_cv_path_mkdir -p"
3476 # As a last resort, use the slow shell script. Don't cache a
3477 # value for MKDIR_P within a source directory, because that will
3478 # break other packages using the cache if that directory is
3479 # removed, or if the value is a relative name.
3480 MKDIR_P
="$ac_install_sh -d"
3483 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MKDIR_P" >&5
3484 $as_echo "$MKDIR_P" >&6; }
3489 [\\/$
]* | ?
:[\\/]*) ;;
3490 */*) mkdir_p
="\$(top_builddir)/$mkdir_p" ;;
3493 for ac_prog
in gawk mawk nawk
awk
3495 # Extract the first word of "$ac_prog", so it can be a program name with args.
3496 set dummy
$ac_prog; ac_word
=$2
3497 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3498 $as_echo_n "checking for $ac_word... " >&6; }
3499 if ${ac_cv_prog_AWK+:} false
; then :
3500 $as_echo_n "(cached) " >&6
3502 if test -n "$AWK"; then
3503 ac_cv_prog_AWK
="$AWK" # Let the user override the test.
3505 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
3509 test -z "$as_dir" && as_dir
=.
3510 for ac_exec_ext
in '' $ac_executable_extensions; do
3511 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3512 ac_cv_prog_AWK
="$ac_prog"
3513 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3523 if test -n "$AWK"; then
3524 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
3525 $as_echo "$AWK" >&6; }
3527 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3528 $as_echo "no" >&6; }
3532 test -n "$AWK" && break
3535 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
3536 $as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
3538 ac_make
=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
3539 if eval \
${ac_cv_prog_make_${ac_make}_set+:} false
; then :
3540 $as_echo_n "(cached) " >&6
3542 cat >conftest.
make <<\_ACEOF
3545 @
echo '@@@%%%=$(MAKE)=@@@%%%'
3547 # GNU make sometimes prints "make[1]: Entering ...", which would confuse us.
3548 case `${MAKE-make} -f conftest.make 2>/dev/null` in
3550 eval ac_cv_prog_make_
${ac_make}_set
=yes;;
3552 eval ac_cv_prog_make_
${ac_make}_set
=no
;;
3556 if eval test \
$ac_cv_prog_make_${ac_make}_set
= yes; then
3557 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3558 $as_echo "yes" >&6; }
3561 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3562 $as_echo "no" >&6; }
3563 SET_MAKE
="MAKE=${MAKE-make}"
3566 rm -rf .tst
2>/dev
/null
3567 mkdir .tst
2>/dev
/null
3568 if test -d .tst
; then
3573 rmdir .tst
2>/dev
/null
3575 if test "`cd $srcdir && pwd`" != "`pwd`"; then
3576 # Use -I$(srcdir) only when $(srcdir) != ., so that make's output
3577 # is not polluted with repeated "-I."
3578 am__isrc
=' -I$(srcdir)'
3579 # test to see if srcdir already configured
3580 if test -f $srcdir/config.status
; then
3581 as_fn_error $?
"source directory already configured; run \"make distclean\" there first" "$LINENO" 5
3585 # test whether we have cygpath
3586 if test -z "$CYGPATH_W"; then
3587 if (cygpath
--version) >/dev
/null
2>/dev
/null
; then
3588 CYGPATH_W
='cygpath -w'
3595 # Define the identity of the package.
3600 cat >>confdefs.h
<<_ACEOF
3601 #define PACKAGE "$PACKAGE"
3605 cat >>confdefs.h
<<_ACEOF
3606 #define VERSION "$VERSION"
3609 # Some tools Automake needs.
3611 ACLOCAL
=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
3614 AUTOCONF
=${AUTOCONF-"${am_missing_run}autoconf"}
3617 AUTOMAKE
=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
3620 AUTOHEADER
=${AUTOHEADER-"${am_missing_run}autoheader"}
3623 MAKEINFO
=${MAKEINFO-"${am_missing_run}makeinfo"}
3625 # We need awk for the "check" target. The system "awk" is bad on
3627 # Always define AMTAR for backward compatibility.
3629 AMTAR
=${AMTAR-"${am_missing_run}tar"}
3631 am__tar
='${AMTAR} chof - "$$tardir"'; am__untar
='${AMTAR} xf -'
3640 lispdir
='${datadir}/emacs/${version}/lisp'
3641 locallisppath
='${datadir}/emacs/${version}/site-lisp:'\
3642 '${datadir}/emacs/site-lisp'
3643 lisppath
='${locallisppath}:${lispdir}:${datadir}/emacs/${version}/leim'
3644 etcdir
='${datadir}/emacs/${version}/etc'
3645 archlibdir
='${libexecdir}/emacs/${version}/${configuration}'
3646 docdir
='${datadir}/emacs/${version}/etc'
3647 gamedir
='${localstatedir}/games/emacs'
3652 # Check whether --with-pop was given.
3653 if test "${with_pop+set}" = set; then :
3659 if test "$with_pop" = yes; then
3660 $as_echo "#define MAIL_USE_POP 1" >>confdefs.h
3665 # Check whether --with-kerberos was given.
3666 if test "${with_kerberos+set}" = set; then :
3667 withval
=$with_kerberos;
3672 if test "$with_kerberos" != no
; then
3673 $as_echo "#define KERBEROS 1" >>confdefs.h
3678 # Check whether --with-kerberos5 was given.
3679 if test "${with_kerberos5+set}" = set; then :
3680 withval
=$with_kerberos5;
3685 if test "${with_kerberos5}" != no
; then
3686 if test "${with_kerberos}" = no
; then
3688 $as_echo "#define KERBEROS 1" >>confdefs.h
3692 $as_echo "#define KERBEROS5 1" >>confdefs.h
3697 # Check whether --with-hesiod was given.
3698 if test "${with_hesiod+set}" = set; then :
3699 withval
=$with_hesiod;
3704 if test "$with_hesiod" != no
; then
3706 $as_echo "#define HESIOD 1" >>confdefs.h
3711 # Check whether --with-mmdf was given.
3712 if test "${with_mmdf+set}" = set; then :
3718 if test "$with_mmdf" != no
; then
3720 $as_echo "#define MAIL_USE_MMDF 1" >>confdefs.h
3725 # Check whether --with-mail-unlink was given.
3726 if test "${with_mail_unlink+set}" = set; then :
3727 withval
=$with_mail_unlink;
3732 if test "$with_mail_unlink" != no
; then
3734 $as_echo "#define MAIL_UNLINK_SPOOL 1" >>confdefs.h
3739 # Check whether --with-mailhost was given.
3740 if test "${with_mailhost+set}" = set; then :
3741 withval
=$with_mailhost;
3742 cat >>confdefs.h
<<_ACEOF
3743 #define MAILHOST "$withval"
3750 # Check whether --with-sound was given.
3751 if test "${with_sound+set}" = set; then :
3752 withval
=$with_sound;
3759 # Check whether --with-sync-input was given.
3760 if test "${with_sync_input+set}" = set; then :
3761 withval
=$with_sync_input;
3766 if test "$with_sync_input" = yes; then
3768 $as_echo "#define SYNC_INPUT 1" >>confdefs.h
3773 # Check whether --with-x-toolkit was given.
3774 if test "${with_x_toolkit+set}" = set; then :
3775 withval
=$with_x_toolkit; case "${withval}" in
3776 y | ye |
yes ) val
=gtk
;;
3778 l | lu | luc | luci | lucid
) val
=lucid
;;
3779 a |
at | ath | athe | athen | athena
) val
=athena
;;
3780 m | mo | mot | moti | motif
) val
=motif
;;
3781 g | gt | gtk
) val
=gtk
;;
3784 as_fn_error $?
"\`--with-x-toolkit=$withval' is invalid;
3785 this option's value should be \`yes', \`no', \`lucid', \`athena', \`motif', \`gtk' or
3786 \`gtk3'. \`yes' and \`gtk' are synonyms. \`athena' and \`lucid' are synonyms." "$LINENO" 5
3795 # Check whether --with-xpm was given.
3796 if test "${with_xpm+set}" = set; then :
3803 # Check whether --with-jpeg was given.
3804 if test "${with_jpeg+set}" = set; then :
3811 # Check whether --with-tiff was given.
3812 if test "${with_tiff+set}" = set; then :
3819 # Check whether --with-gif was given.
3820 if test "${with_gif+set}" = set; then :
3827 # Check whether --with-png was given.
3828 if test "${with_png+set}" = set; then :
3835 # Check whether --with-rsvg was given.
3836 if test "${with_rsvg+set}" = set; then :
3843 # Check whether --with-xml2 was given.
3844 if test "${with_xml2+set}" = set; then :
3851 # Check whether --with-imagemagick was given.
3852 if test "${with_imagemagick+set}" = set; then :
3853 withval
=$with_imagemagick;
3855 with_imagemagick
=yes
3860 # Check whether --with-xft was given.
3861 if test "${with_xft+set}" = set; then :
3868 # Check whether --with-libotf was given.
3869 if test "${with_libotf+set}" = set; then :
3870 withval
=$with_libotf;
3876 # Check whether --with-m17n-flt was given.
3877 if test "${with_m17n_flt+set}" = set; then :
3878 withval
=$with_m17n_flt;
3885 # Check whether --with-toolkit-scroll-bars was given.
3886 if test "${with_toolkit_scroll_bars+set}" = set; then :
3887 withval
=$with_toolkit_scroll_bars;
3889 with_toolkit_scroll_bars
=yes
3893 # Check whether --with-xaw3d was given.
3894 if test "${with_xaw3d+set}" = set; then :
3895 withval
=$with_xaw3d;
3901 # Check whether --with-xim was given.
3902 if test "${with_xim+set}" = set; then :
3909 # Check whether --with-ns was given.
3910 if test "${with_ns+set}" = set; then :
3918 # Check whether --with-gpm was given.
3919 if test "${with_gpm+set}" = set; then :
3926 # Check whether --with-dbus was given.
3927 if test "${with_dbus+set}" = set; then :
3934 # Check whether --with-gconf was given.
3935 if test "${with_gconf+set}" = set; then :
3936 withval
=$with_gconf;
3942 # Check whether --with-selinux was given.
3943 if test "${with_selinux+set}" = set; then :
3944 withval
=$with_selinux;
3950 # Check whether --with-gnutls was given.
3951 if test "${with_gnutls+set}" = set; then :
3952 withval
=$with_gnutls;
3958 ## For the times when you want to build Emacs but don't have
3959 ## a suitable makeinfo, and can live without the manuals.
3961 # Check whether --with-makeinfo was given.
3962 if test "${with_makeinfo+set}" = set; then :
3963 withval
=$with_makeinfo;
3969 ## This is an option because I do not know if all info/man support
3970 ## compressed files, nor how to test if they do so.
3972 # Check whether --with-compress-info was given.
3973 if test "${with_compress_info+set}" = set; then :
3974 withval
=$with_compress_info;
3976 with_compress_info
=yes
3979 if test $with_compress_info = yes; then
3987 # Check whether --with-pkg-config-prog was given.
3988 if test "${with_pkg_config_prog+set}" = set; then :
3989 withval
=$with_pkg_config_prog;
3992 if test "X${with_pkg_config_prog}" != X
; then
3993 if test "${with_pkg_config_prog}" != yes; then
3994 PKG_CONFIG
="${with_pkg_config_prog}"
4000 # Check whether --with-crt-dir was given.
4001 if test "${with_crt_dir+set}" = set; then :
4002 withval
=$with_crt_dir;
4005 CRT_DIR
="${with_crt_dir}"
4008 # Check whether --with-gameuser was given.
4009 if test "${with_gameuser+set}" = set; then :
4010 withval
=$with_gameuser;
4013 test "X${with_gameuser}" != X
&& test "${with_gameuser}" != yes \
4014 && gameuser
="${with_gameuser}"
4015 test "X$gameuser" = X
&& gameuser
=games
4018 # Check whether --with-gnustep-conf was given.
4019 if test "${with_gnustep_conf+set}" = set; then :
4020 withval
=$with_gnustep_conf;
4023 test "X${with_gnustep_conf}" != X
&& test "${with_gnustep_conf}" != yes && \
4024 GNUSTEP_CONFIG_FILE
="${with_gnustep_conf}"
4025 test "X$GNUSTEP_CONFIG_FILE" = "X" && \
4026 GNUSTEP_CONFIG_FILE
=/etc
/GNUstep
/GNUstep.conf
4028 # Check whether --enable-ns-self-contained was given.
4029 if test "${enable_ns_self_contained+set}" = set; then :
4030 enableval
=$enable_ns_self_contained; EN_NS_SELF_CONTAINED
=$enableval
4032 EN_NS_SELF_CONTAINED
=yes
4036 # Check whether --enable-asserts was given.
4037 if test "${enable_asserts+set}" = set; then :
4038 enableval
=$enable_asserts; USE_XASSERTS
=$enableval
4044 # Check whether --enable-maintainer-mode was given.
4045 if test "${enable_maintainer_mode+set}" = set; then :
4046 enableval
=$enable_maintainer_mode; USE_MAINTAINER_MODE
=$enableval
4048 USE_MAINTAINER_MODE
=yes
4051 if test $USE_MAINTAINER_MODE = yes; then
4058 # Check whether --enable-locallisppath was given.
4059 if test "${enable_locallisppath+set}" = set; then :
4060 enableval
=$enable_locallisppath; if test "${enableval}" = "no"; then
4062 elif test "${enableval}" != "yes"; then
4063 locallisppath
=${enableval}
4068 # Check whether --enable-checking was given.
4069 if test "${enable_checking+set}" = set; then :
4070 enableval
=$enable_checking; ac_checking_flags
="${enableval}"
4073 IFS
="${IFS= }"; ac_save_IFS
="$IFS"; IFS
="$IFS,"
4074 for check
in $ac_checking_flags
4077 # these set all the flags to specific states
4078 yes) ac_enable_checking
=1 ;;
4079 no
) ac_enable_checking
= ;
4080 ac_gc_check_stringbytes
= ;
4081 ac_gc_check_string_overrun
= ;
4082 ac_gc_check_string_free_list
= ;
4083 ac_xmalloc_overrun
= ;
4084 ac_gc_check_cons_list
= ;;
4085 all
) ac_enable_checking
=1 ;
4086 ac_gc_check_stringbytes
=1 ;
4087 ac_gc_check_string_overrun
=1 ;
4088 ac_gc_check_string_free_list
=1 ;
4089 ac_xmalloc_overrun
=1 ;
4090 ac_gc_check_cons_list
=1 ;;
4091 # these enable particular checks
4092 stringbytes
) ac_gc_check_stringbytes
=1 ;;
4093 stringoverrun
) ac_gc_check_string_overrun
=1 ;;
4094 stringfreelist
) ac_gc_check_string_free_list
=1 ;;
4095 xmallocoverrun
) ac_xmalloc_overrun
=1 ;;
4096 conslist
) ac_gc_check_cons_list
=1 ;;
4097 *) as_fn_error $?
"unknown check category $check" "$LINENO" 5 ;;
4102 if test x
$ac_enable_checking != x
; then
4104 $as_echo "#define ENABLE_CHECKING 1" >>confdefs.h
4107 if test x
$ac_gc_check_stringbytes != x
; then
4109 $as_echo "#define GC_CHECK_STRING_BYTES 1" >>confdefs.h
4112 if test x
$ac_gc_check_stringoverrun != x
; then
4114 $as_echo "#define GC_CHECK_STRING_OVERRUN 1" >>confdefs.h
4117 if test x
$ac_gc_check_string_free_list != x
; then
4119 $as_echo "#define GC_CHECK_STRING_FREE_LIST 1" >>confdefs.h
4122 if test x
$ac_xmalloc_overrun != x
; then
4124 $as_echo "#define XMALLOC_OVERRUN_CHECK 1" >>confdefs.h
4127 if test x
$ac_gc_check_cons_list != x
; then
4129 $as_echo "#define GC_CHECK_CONS_LIST 1" >>confdefs.h
4133 # Check whether --enable-use-lisp-union-type was given.
4134 if test "${enable_use_lisp_union_type+set}" = set; then :
4135 enableval
=$enable_use_lisp_union_type; if test "${enableval}" != "no"; then
4137 $as_echo "#define USE_LISP_UNION_TYPE 1" >>confdefs.h
4144 # Check whether --enable-profiling was given.
4145 if test "${enable_profiling+set}" = set; then :
4146 enableval
=$enable_profiling; ac_enable_profiling
="${enableval}"
4149 if test x
$ac_enable_profiling != x
; then
4150 PROFILING_CFLAGS
="-DPROFILING=1 -pg"
4156 # Check whether --enable-autodepend was given.
4157 if test "${enable_autodepend+set}" = set; then :
4158 enableval
=$enable_autodepend; ac_enable_autodepend
="${enableval}"
4160 ac_enable_autodepend
=yes
4164 #### Make srcdir absolute, if it isn't already. It's important to
4165 #### avoid running the path through pwd unnecessarily, since pwd can
4166 #### give you automounter prefixes, which can go away. We do all this
4167 #### so Emacs can find its files when run uninstalled.
4168 ## Make sure CDPATH doesn't affect cd (in case PWD is relative).
4173 ## We may be able to use the $PWD environment variable to make this
4174 ## absolute. But sometimes PWD is inaccurate.
4175 ## Note: we used to use ${PWD} at the end instead of `pwd`,
4176 ## but that tested only for a well-formed and valid PWD,
4177 ## it did not object when PWD was well-formed and valid but just wrong.
4178 if test ".${PWD}" != "." && test ".`(cd ${PWD} ; sh -c pwd)`" = ".`pwd`" ;
4182 srcdir
="`(cd ${srcdir}; pwd)`"
4185 * ) srcdir
="`(cd ${srcdir}; pwd)`" ;;
4188 #### Check if the source directory already has a configured system in it.
4189 if test `pwd` != `(cd ${srcdir} && pwd)` \
4190 && test -f "${srcdir}/src/config.h" ; then
4191 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: The directory tree \`${srcdir}' is being used
4192 as a build directory right now; it has been configured in its own
4193 right. To configure in another directory as well, you MUST
4194 use GNU make. If you do not have GNU make, then you must
4195 now do \`make distclean' in ${srcdir},
4196 and then run $0 again." >&5
4197 $as_echo "$as_me: WARNING: The directory tree \`${srcdir}' is being used
4198 as a build directory right now; it has been configured in its own
4199 right. To configure in another directory as well, you MUST
4200 use GNU make. If you do not have GNU make, then you must
4201 now do \`make distclean' in ${srcdir},
4202 and then run $0 again." >&2;}
4205 #### Given the configuration name, set machfile and opsysfile to the
4206 #### names of the m/*.h and s/*.h files we should use.
4208 ### Canonicalize the configuration name.
4210 # Make sure we can run config.sub.
4211 $SHELL "$ac_aux_dir/config.sub" sun4
>/dev
/null
2>&1 ||
4212 as_fn_error $?
"cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5
4214 { $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
4215 $as_echo_n "checking build system type... " >&6; }
4216 if ${ac_cv_build+:} false
; then :
4217 $as_echo_n "(cached) " >&6
4219 ac_build_alias
=$build_alias
4220 test "x$ac_build_alias" = x
&&
4221 ac_build_alias
=`$SHELL "$ac_aux_dir/config.guess"`
4222 test "x$ac_build_alias" = x
&&
4223 as_fn_error $?
"cannot guess build type; you must specify one" "$LINENO" 5
4224 ac_cv_build
=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
4225 as_fn_error $?
"$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5
4228 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
4229 $as_echo "$ac_cv_build" >&6; }
4230 case $ac_cv_build in
4232 *) as_fn_error $?
"invalid value of canonical build" "$LINENO" 5;;
4235 ac_save_IFS
=$IFS; IFS
='-'
4241 # Remember, the first character of IFS is used to create $*,
4242 # except with old shells:
4245 case $build_os in *\
*) build_os
=`echo "$build_os" | sed 's/ /-/g'`;; esac
4248 { $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
4249 $as_echo_n "checking host system type... " >&6; }
4250 if ${ac_cv_host+:} false
; then :
4251 $as_echo_n "(cached) " >&6
4253 if test "x$host_alias" = x
; then
4254 ac_cv_host
=$ac_cv_build
4256 ac_cv_host
=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
4257 as_fn_error $?
"$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5
4261 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
4262 $as_echo "$ac_cv_host" >&6; }
4265 *) as_fn_error $?
"invalid value of canonical host" "$LINENO" 5;;
4268 ac_save_IFS
=$IFS; IFS
='-'
4274 # Remember, the first character of IFS is used to create $*,
4275 # except with old shells:
4278 case $host_os in *\
*) host_os
=`echo "$host_os" | sed 's/ /-/g'`;; esac
4282 configuration
=${host_alias-${build_alias-$host}}
4286 ### If you add support for a new configuration, add code to this
4287 ### switch statement to recognize your configuration name and select
4288 ### the appropriate operating system and machine description files.
4290 ### You would hope that you could choose an m/*.h file pretty much
4291 ### based on the machine portion of the configuration name, and an s/*.h
4292 ### file based on the operating system portion. However, it turns out
4293 ### that each m/*.h file is pretty manufacturer-specific - for
4294 ### example mips.h is MIPS
4295 ### So we basically have to have a special case for each
4296 ### configuration name.
4298 ### As far as handling version numbers on operating systems is
4299 ### concerned, make sure things will fail in a fixable way. If
4300 ### /etc/MACHINES doesn't say anything about version numbers, be
4301 ### prepared to handle anything reasonably. If version numbers
4302 ### matter, be sure /etc/MACHINES says something about it.
4304 machine
='' opsys
='' unported
=no
4305 case "${canonical}" in
4310 case ${canonical} in
4311 alpha
*) machine
=alpha
;;
4312 s390-
*) machine
=ibms390
;;
4313 s390x-
*) machine
=ibms390x
;;
4314 powerpc
*) machine
=macppc
;;
4315 sparc
*) machine
=sparc
;;
4316 ia64
*) machine
=ia64
;;
4317 m68k
*) machine
=m68k
;;
4318 x86_64
*) machine
=amdx86-64
;;
4325 case "${canonical}" in
4326 alpha
*) machine
=alpha
;;
4327 amd64-
*|x86_64-
*) machine
=amdx86-64
;;
4328 ia64-
*) machine
=ia64
;;
4329 i
[3456]86-*) machine
=intel386
;;
4330 powerpc-
*) machine
=macppc
;;
4331 sparc-
*) machine
=sparc
;;
4332 sparc64-
*) machine
=sparc
;;
4336 ## FreeBSD kernel + glibc based userland
4339 case "${canonical}" in
4340 alpha
*) machine
=alpha
;;
4341 amd64-
*|x86_64-
*) machine
=amdx86-64
;;
4342 ia64-
*) machine
=ia64
;;
4343 i
[3456]86-*) machine
=intel386
;;
4344 powerpc-
*) machine
=macppc
;;
4345 sparc-
*) machine
=sparc
;;
4346 sparc64-
*) machine
=sparc
;;
4353 case "${canonical}" in
4354 alpha
*) machine
=alpha
;;
4355 x86_64-
*) machine
=amdx86-64
;;
4356 i
[3456]86-*) machine
=intel386
;;
4357 m68k-
*) machine
=m68k
;;
4358 powerpc-
*) machine
=macppc
;;
4359 sparc
*-) machine
=sparc
;;
4360 vax-
*) machine
=vax
;;
4367 case "${canonical}" in
4368 alpha
*) machine
=alpha
;;
4369 x86_64-
*) machine
=amdx86-64
;;
4370 i386-
*) machine
=intel386
;;
4371 powerpc-
*) machine
=macppc
;;
4372 sparc
*) machine
=sparc
;;
4373 vax-
*) machine
=vax
;;
4377 ## Apple Darwin / Mac OS X
4379 case "${canonical}" in
4380 i
[3456]86-* ) machine
=intel386
;;
4381 powerpc-
* ) machine
=macppc
;;
4382 x86_64-
* ) machine
=amdx86-64
;;
4386 # Define CPP as follows to make autoconf work correctly.
4387 CPP
="${CC-cc} -E -no-cpp-precomp"
4388 # Use fink packages if available.
4389 if test -d /sw
/include
&& test -d /sw
/lib
; then
4390 GCC_TEST_OPTIONS
="-I/sw/include -L/sw/lib"
4391 CPP
="${CPP} ${GCC_TEST_OPTIONS}"
4392 NON_GCC_TEST_OPTIONS
=${GCC_TEST_OPTIONS}
4396 ## HP 9000 series 700 and 800, running HP/UX
4397 hppa
*-hp-hpux10.2
* )
4400 hppa
*-hp-hpux1[1-9]* )
4402 CFLAGS
="-D_INCLUDE__STDC_A1_SOURCE $CFLAGS"
4405 ia64
*-hp-hpux1[1-9]* )
4406 machine
=hp800 opsys
=hpux11
4407 ## FIXME. Peter O'Gorman reports that dumping using unexelf.o doesn't
4408 ## work either: http://debbugs.gnu.org/cgi/bugreport.cgi?bug=6811
4412 hppa
*-*-linux-gnu* )
4413 machine
=hp800 opsys
=gnu-linux
4417 rs6000-ibm-aix4.
[23]* )
4418 machine
=ibmrs6000 opsys
=aix4-2
4420 powerpc-ibm-aix4.
[23]* )
4421 machine
=ibmrs6000 opsys
=aix4-2
4423 rs6000-ibm-aix
[56]* )
4424 machine
=ibmrs6000 opsys
=aix4-2
4426 powerpc-ibm-aix
[56]* )
4427 machine
=ibmrs6000 opsys
=aix4-2
4430 ## Silicon Graphics machines
4433 machine
=iris4d opsys
=irix6-5
4434 # Without defining _LANGUAGE_C, things get masked out in the headers
4435 # so that, for instance, grepping for `free' in stdlib.h fails and
4436 # AC_HEADER_STD_C fails. (MIPSPro 7.2.1.2m compilers, Irix 6.5.3m).
4437 NON_GNU_CPP
="/lib/cpp -D_LANGUAGE_C"
4438 NON_GCC_TEST_OPTIONS
="-D_LANGUAGE_C"
4443 | i
[3456]86-*-solaris2* | i
[3456]86-*-sunos5* \
4444 | x86_64-
*-solaris2* | x86_64-
*-sunos5*)
4445 case "${canonical}" in
4446 i
[3456]86-*-* ) machine
=intel386
;;
4447 amd64-
*-*|x86_64-
*-*) machine
=amdx86-64
;;
4448 sparc
* ) machine
=sparc
;;
4451 case "${canonical}" in
4452 *-sunos5.6
* |
*-solaris2.6
* )
4454 NON_GNU_CPP
=/usr
/ccs
/lib
/cpp
4457 *-sunos5.
[7-9]* |
*-solaris2.
[7-9]* )
4459 emacs_check_sunpro_c
=yes
4460 NON_GNU_CPP
=/usr
/ccs
/lib
/cpp
4462 *-sunos5* |
*-solaris* )
4464 emacs_check_sunpro_c
=yes
4465 NON_GNU_CPP
=/usr
/ccs
/lib
/cpp
4468 ## Watch out for a compiler that we know will not work.
4469 case "${canonical}" in
4470 *-solaris* |
*-sunos5* )
4471 if [ "x$CC" = x
/usr
/ucb
/cc
]; then
4472 ## /usr/ucb/cc doesn't work;
4473 ## we should find some other compiler that does work.
4481 ## Intel 386 machines where we don't care about the manufacturer.
4484 case "${canonical}" in
4485 *-cygwin ) opsys
=cygwin
;;
4486 *-darwin* ) opsys
=darwin
4487 CPP
="${CC-cc} -E -no-cpp-precomp"
4489 *-sysv4.2uw
* ) opsys
=unixware
; NON_GNU_CPP
=/lib
/cpp
;;
4490 *-sysv5uw* ) opsys
=unixware
; NON_GNU_CPP
=/lib
/cpp
;;
4491 *-sysv5OpenUNIX* ) opsys
=unixware
; NON_GNU_CPP
=/lib
/cpp
;;
4492 ## Otherwise, we'll fall through to the generic opsys code at the bottom.
4501 ### If the code above didn't choose an operating system, just choose
4502 ### an operating system based on the configuration name. You really
4503 ### only want to use this when you have no idea what the right
4504 ### operating system is; if you know what operating systems a machine
4505 ### runs, it's cleaner to make it explicit in the case statement
4507 if test x
"${opsys}" = x
; then
4508 case "${canonical}" in
4509 *-gnu* ) opsys
=gnu
;;
4518 if test $unported = yes; then
4519 as_fn_error $?
"Emacs hasn't been ported to \`${canonical}' systems.
4520 Check \`etc/MACHINES' for recognized configuration names." "$LINENO" 5
4523 if test -n "$machine"; then
4524 machfile
="m/${machine}.h"
4528 opsysfile
="s/${opsys}.h"
4531 #### Choose a compiler.
4532 test -n "$CC" && cc_specified
=yes
4534 # Save the value of CFLAGS that the user specified.
4535 SPECIFIED_CFLAGS
="$CFLAGS"
4538 ac_cpp
='$CPP $CPPFLAGS'
4539 ac_compile
='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4540 ac_link
='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4541 ac_compiler_gnu
=$ac_cv_c_compiler_gnu
4542 if test -n "$ac_tool_prefix"; then
4543 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
4544 set dummy
${ac_tool_prefix}gcc
; ac_word
=$2
4545 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4546 $as_echo_n "checking for $ac_word... " >&6; }
4547 if ${ac_cv_prog_CC+:} false
; then :
4548 $as_echo_n "(cached) " >&6
4550 if test -n "$CC"; then
4551 ac_cv_prog_CC
="$CC" # Let the user override the test.
4553 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
4557 test -z "$as_dir" && as_dir
=.
4558 for ac_exec_ext
in '' $ac_executable_extensions; do
4559 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4560 ac_cv_prog_CC
="${ac_tool_prefix}gcc"
4561 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4571 if test -n "$CC"; then
4572 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
4573 $as_echo "$CC" >&6; }
4575 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4576 $as_echo "no" >&6; }
4581 if test -z "$ac_cv_prog_CC"; then
4583 # Extract the first word of "gcc", so it can be a program name with args.
4584 set dummy gcc
; ac_word
=$2
4585 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4586 $as_echo_n "checking for $ac_word... " >&6; }
4587 if ${ac_cv_prog_ac_ct_CC+:} false
; then :
4588 $as_echo_n "(cached) " >&6
4590 if test -n "$ac_ct_CC"; then
4591 ac_cv_prog_ac_ct_CC
="$ac_ct_CC" # Let the user override the test.
4593 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
4597 test -z "$as_dir" && as_dir
=.
4598 for ac_exec_ext
in '' $ac_executable_extensions; do
4599 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4600 ac_cv_prog_ac_ct_CC
="gcc"
4601 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4610 ac_ct_CC
=$ac_cv_prog_ac_ct_CC
4611 if test -n "$ac_ct_CC"; then
4612 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
4613 $as_echo "$ac_ct_CC" >&6; }
4615 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4616 $as_echo "no" >&6; }
4619 if test "x$ac_ct_CC" = x
; then
4622 case $cross_compiling:$ac_tool_warned in
4624 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4625 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4626 ac_tool_warned
=yes ;;
4634 if test -z "$CC"; then
4635 if test -n "$ac_tool_prefix"; then
4636 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
4637 set dummy
${ac_tool_prefix}cc
; ac_word
=$2
4638 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4639 $as_echo_n "checking for $ac_word... " >&6; }
4640 if ${ac_cv_prog_CC+:} false
; then :
4641 $as_echo_n "(cached) " >&6
4643 if test -n "$CC"; then
4644 ac_cv_prog_CC
="$CC" # Let the user override the test.
4646 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
4650 test -z "$as_dir" && as_dir
=.
4651 for ac_exec_ext
in '' $ac_executable_extensions; do
4652 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4653 ac_cv_prog_CC
="${ac_tool_prefix}cc"
4654 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4664 if test -n "$CC"; then
4665 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
4666 $as_echo "$CC" >&6; }
4668 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4669 $as_echo "no" >&6; }
4675 if test -z "$CC"; then
4676 # Extract the first word of "cc", so it can be a program name with args.
4677 set dummy cc
; ac_word
=$2
4678 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4679 $as_echo_n "checking for $ac_word... " >&6; }
4680 if ${ac_cv_prog_CC+:} false
; then :
4681 $as_echo_n "(cached) " >&6
4683 if test -n "$CC"; then
4684 ac_cv_prog_CC
="$CC" # Let the user override the test.
4687 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
4691 test -z "$as_dir" && as_dir
=.
4692 for ac_exec_ext
in '' $ac_executable_extensions; do
4693 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4694 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
4695 ac_prog_rejected
=yes
4699 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4706 if test $ac_prog_rejected = yes; then
4707 # We found a bogon in the path, so make sure we never use it.
4708 set dummy
$ac_cv_prog_CC
4710 if test $# != 0; then
4711 # We chose a different compiler from the bogus one.
4712 # However, it has the same basename, so the bogon will be chosen
4713 # first if we set CC to just the basename; use the full file name.
4715 ac_cv_prog_CC
="$as_dir/$ac_word${1+' '}$@"
4721 if test -n "$CC"; then
4722 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
4723 $as_echo "$CC" >&6; }
4725 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4726 $as_echo "no" >&6; }
4731 if test -z "$CC"; then
4732 if test -n "$ac_tool_prefix"; then
4733 for ac_prog
in cl.exe
4735 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
4736 set dummy
$ac_tool_prefix$ac_prog; ac_word
=$2
4737 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4738 $as_echo_n "checking for $ac_word... " >&6; }
4739 if ${ac_cv_prog_CC+:} false
; then :
4740 $as_echo_n "(cached) " >&6
4742 if test -n "$CC"; then
4743 ac_cv_prog_CC
="$CC" # Let the user override the test.
4745 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
4749 test -z "$as_dir" && as_dir
=.
4750 for ac_exec_ext
in '' $ac_executable_extensions; do
4751 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4752 ac_cv_prog_CC
="$ac_tool_prefix$ac_prog"
4753 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4763 if test -n "$CC"; then
4764 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
4765 $as_echo "$CC" >&6; }
4767 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4768 $as_echo "no" >&6; }
4772 test -n "$CC" && break
4775 if test -z "$CC"; then
4777 for ac_prog
in cl.exe
4779 # Extract the first word of "$ac_prog", so it can be a program name with args.
4780 set dummy
$ac_prog; ac_word
=$2
4781 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4782 $as_echo_n "checking for $ac_word... " >&6; }
4783 if ${ac_cv_prog_ac_ct_CC+:} false
; then :
4784 $as_echo_n "(cached) " >&6
4786 if test -n "$ac_ct_CC"; then
4787 ac_cv_prog_ac_ct_CC
="$ac_ct_CC" # Let the user override the test.
4789 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
4793 test -z "$as_dir" && as_dir
=.
4794 for ac_exec_ext
in '' $ac_executable_extensions; do
4795 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4796 ac_cv_prog_ac_ct_CC
="$ac_prog"
4797 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4806 ac_ct_CC
=$ac_cv_prog_ac_ct_CC
4807 if test -n "$ac_ct_CC"; then
4808 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
4809 $as_echo "$ac_ct_CC" >&6; }
4811 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4812 $as_echo "no" >&6; }
4816 test -n "$ac_ct_CC" && break
4819 if test "x$ac_ct_CC" = x
; then
4822 case $cross_compiling:$ac_tool_warned in
4824 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4825 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4826 ac_tool_warned
=yes ;;
4835 test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4836 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4837 as_fn_error $?
"no acceptable C compiler found in \$PATH
4838 See \`config.log' for more details" "$LINENO" 5; }
4840 # Provide some information about the compiler.
4841 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
4844 for ac_option
in --version -v -V -qversion; do
4845 { { ac_try
="$ac_compiler $ac_option >&5"
4847 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
4848 *) ac_try_echo=$ac_try;;
4850 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4851 $as_echo "$ac_try_echo"; } >&5
4852 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
4854 if test -s conftest.err; then
4856 ... rest of stderr output deleted ...
4857 10q' conftest.err >conftest.er1
4858 cat conftest.er1 >&5
4860 rm -f conftest.er1 conftest.err
4861 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4862 test $ac_status = 0; }
4865 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4866 /* end confdefs.h. */
4876 ac_clean_files_save=$ac_clean_files
4877 ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
4878 # Try to create an executable without -o first, disregard a.out.
4879 # It will help us diagnose broken compilers, and finding out an intuition
4881 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
4882 $as_echo_n "checking whether the C compiler works... " >&6; }
4883 ac_link_default=`$as_echo "$ac_link" |
sed 's/ -o *conftest[^ ]*//'`
4885 # The possible output files:
4886 ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
4889 for ac_file in $ac_files
4892 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
4893 * ) ac_rmfiles="$ac_rmfiles $ac_file";;
4898 if { { ac_try="$ac_link_default"
4900 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
4901 *) ac_try_echo
=$ac_try;;
4903 eval ac_try_echo
="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4904 $as_echo "$ac_try_echo"; } >&5
4905 (eval "$ac_link_default") 2>&5
4907 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4908 test $ac_status = 0; }; then :
4909 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
4910 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
4911 # in a Makefile. We should not override ac_cv_exeext if it was cached,
4912 # so that the user can short-circuit this test for compilers unknown to
4914 for ac_file
in $ac_files ''
4916 test -f "$ac_file" ||
continue
4918 *.
$ac_ext |
*.xcoff |
*.tds |
*.d |
*.pdb |
*.xSYM |
*.bb |
*.bbg |
*.map |
*.inf |
*.dSYM |
*.o |
*.obj
)
4921 # We found the default executable, but exeext='' is most
4925 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no
;
4927 ac_cv_exeext
=`expr "$ac_file" : '[^.]*\(\..*\)'`
4929 # We set ac_cv_exeext here because the later test for it is not
4930 # safe: cross compilers may not add the suffix if given an `-o'
4931 # argument, so we may need to know it at that point already.
4932 # Even if this section looks crufty: it has the advantage of
4939 test "$ac_cv_exeext" = no
&& ac_cv_exeext
=
4944 if test -z "$ac_file"; then :
4945 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4946 $as_echo "no" >&6; }
4947 $as_echo "$as_me: failed program was:" >&5
4948 sed 's/^/| /' conftest.
$ac_ext >&5
4950 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4951 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4952 as_fn_error
77 "C compiler cannot create executables
4953 See \`config.log' for more details" "$LINENO" 5; }
4955 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4956 $as_echo "yes" >&6; }
4958 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
4959 $as_echo_n "checking for C compiler default output file name... " >&6; }
4960 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
4961 $as_echo "$ac_file" >&6; }
4962 ac_exeext
=$ac_cv_exeext
4964 rm -f -r a.out a.out.dSYM a.exe conftest
$ac_cv_exeext b.out
4965 ac_clean_files
=$ac_clean_files_save
4966 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
4967 $as_echo_n "checking for suffix of executables... " >&6; }
4968 if { { ac_try
="$ac_link"
4970 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
4971 *) ac_try_echo=$ac_try;;
4973 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4974 $as_echo "$ac_try_echo"; } >&5
4975 (eval "$ac_link") 2>&5
4977 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4978 test $ac_status = 0; }; then :
4979 # If both `conftest.exe
' and `conftest' are
`present' (well, observable)
4980 # catch `conftest.exe
'. For instance with Cygwin, `ls conftest' will
4981 # work properly (i.e., refer to `conftest.exe'), while it won't with
4983 for ac_file
in conftest.exe conftest conftest.
*; do
4984 test -f "$ac_file" ||
continue
4986 *.
$ac_ext |
*.xcoff |
*.tds |
*.d |
*.pdb |
*.xSYM |
*.bb |
*.bbg |
*.map |
*.inf |
*.dSYM |
*.o |
*.obj
) ;;
4987 *.
* ) ac_cv_exeext
=`expr "$ac_file" : '[^.]*\(\..*\)'`
4993 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4994 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4995 as_fn_error $?
"cannot compute suffix of executables: cannot compile and link
4996 See \`config.log' for more details" "$LINENO" 5; }
4998 rm -f conftest conftest
$ac_cv_exeext
4999 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
5000 $as_echo "$ac_cv_exeext" >&6; }
5002 rm -f conftest.
$ac_ext
5003 EXEEXT
=$ac_cv_exeext
5005 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
5006 /* end confdefs.h. */
5011 FILE *f = fopen ("conftest.out", "w");
5012 return ferror (f) || fclose (f) != 0;
5018 ac_clean_files
="$ac_clean_files conftest.out"
5019 # Check that the compiler produces executables we can run. If not, either
5020 # the compiler is broken, or we cross compile.
5021 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
5022 $as_echo_n "checking whether we are cross compiling... " >&6; }
5023 if test "$cross_compiling" != yes; then
5024 { { ac_try
="$ac_link"
5026 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
5027 *) ac_try_echo=$ac_try;;
5029 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
5030 $as_echo "$ac_try_echo"; } >&5
5031 (eval "$ac_link") 2>&5
5033 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5034 test $ac_status = 0; }
5035 if { ac_try='./conftest$ac_cv_exeext'
5036 { { case "(($ac_try" in
5037 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
5038 *) ac_try_echo
=$ac_try;;
5040 eval ac_try_echo
="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
5041 $as_echo "$ac_try_echo"; } >&5
5042 (eval "$ac_try") 2>&5
5044 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5045 test $ac_status = 0; }; }; then
5048 if test "$cross_compiling" = maybe
; then
5051 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
5052 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
5053 as_fn_error $?
"cannot run C compiled programs.
5054 If you meant to cross compile, use \`--host'.
5055 See \`config.log' for more details" "$LINENO" 5; }
5059 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
5060 $as_echo "$cross_compiling" >&6; }
5062 rm -f conftest.
$ac_ext conftest
$ac_cv_exeext conftest.out
5063 ac_clean_files
=$ac_clean_files_save
5064 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
5065 $as_echo_n "checking for suffix of object files... " >&6; }
5066 if ${ac_cv_objext+:} false
; then :
5067 $as_echo_n "(cached) " >&6
5069 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
5070 /* end confdefs.h. */
5080 rm -f conftest.o conftest.obj
5081 if { { ac_try
="$ac_compile"
5083 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
5084 *) ac_try_echo=$ac_try;;
5086 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
5087 $as_echo "$ac_try_echo"; } >&5
5088 (eval "$ac_compile") 2>&5
5090 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5091 test $ac_status = 0; }; then :
5092 for ac_file in conftest.o conftest.obj conftest.*; do
5093 test -f "$ac_file" || continue;
5095 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
5096 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
5101 $as_echo "$as_me: failed program was:" >&5
5102 sed 's/^/| /' conftest.$ac_ext >&5
5104 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
5105 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
5106 as_fn_error $? "cannot compute suffix of object files
: cannot compile
5107 See \
`config.log' for more details" "$LINENO" 5; }
5109 rm -f conftest.$ac_cv_objext conftest.$ac_ext
5111 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
5112 $as_echo "$ac_cv_objext" >&6; }
5113 OBJEXT=$ac_cv_objext
5115 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
5116 $as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
5117 if ${ac_cv_c_compiler_gnu+:} false; then :
5118 $as_echo_n "(cached) " >&6
5120 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5121 /* end confdefs.h. */
5134 if ac_fn_c_try_compile "$LINENO"; then :
5139 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5140 ac_cv_c_compiler_gnu=$ac_compiler_gnu
5143 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
5144 $as_echo "$ac_cv_c_compiler_gnu" >&6; }
5145 if test $ac_compiler_gnu = yes; then
5150 ac_test_CFLAGS=${CFLAGS+set}
5151 ac_save_CFLAGS=$CFLAGS
5152 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
5153 $as_echo_n "checking whether $CC accepts -g... " >&6; }
5154 if ${ac_cv_prog_cc_g+:} false; then :
5155 $as_echo_n "(cached) " >&6
5157 ac_save_c_werror_flag=$ac_c_werror_flag
5158 ac_c_werror_flag=yes
5161 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5162 /* end confdefs.h. */
5172 if ac_fn_c_try_compile "$LINENO"; then :
5176 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5177 /* end confdefs.h. */
5187 if ac_fn_c_try_compile "$LINENO"; then :
5190 ac_c_werror_flag=$ac_save_c_werror_flag
5192 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5193 /* end confdefs.h. */
5203 if ac_fn_c_try_compile "$LINENO"; then :
5206 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5208 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5210 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5211 ac_c_werror_flag=$ac_save_c_werror_flag
5213 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
5214 $as_echo "$ac_cv_prog_cc_g" >&6; }
5215 if test "$ac_test_CFLAGS" = set; then
5216 CFLAGS=$ac_save_CFLAGS
5217 elif test $ac_cv_prog_cc_g = yes; then
5218 if test "$GCC" = yes; then
5224 if test "$GCC" = yes; then
5230 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
5231 $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
5232 if ${ac_cv_prog_cc_c89+:} false; then :
5233 $as_echo_n "(cached) " >&6
5235 ac_cv_prog_cc_c89=no
5237 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5238 /* end confdefs.h. */
5241 #include <sys/types.h>
5242 #include <sys/stat.h>
5243 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
5244 struct buf { int x; };
5245 FILE * (*rcsopen) (struct buf *, struct stat *, int);
5246 static char *e (p, i)
5252 static char *f (char * (*g) (char **, int), char **p, ...)
5257 s = g (p, va_arg (v,int));
5262 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
5263 function prototypes and stuff, but not '\xHH' hex character constants.
5264 These don't provoke an error unfortunately, instead are silently treated
5265 as 'x'. The following induces an error, until -std is added to get
5266 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
5267 array size at least. It's necessary to write '\x00'==0 to get something
5268 that's true only with -std. */
5269 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
5271 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
5272 inside strings and character constants. */
5274 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
5276 int test (int i, double x);
5277 struct s1 {int (*f) (int a);};
5278 struct s2 {int (*f) (double a);};
5279 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
5285 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
5290 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
5291 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
5293 CC="$ac_save_CC $ac_arg"
5294 if ac_fn_c_try_compile "$LINENO"; then :
5295 ac_cv_prog_cc_c89=$ac_arg
5297 rm -f core conftest.err conftest.$ac_objext
5298 test "x$ac_cv_prog_cc_c89" != "xno" && break
5300 rm -f conftest.$ac_ext
5305 case "x$ac_cv_prog_cc_c89" in
5307 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
5308 $as_echo "none needed" >&6; } ;;
5310 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
5311 $as_echo "unsupported" >&6; } ;;
5313 CC="$CC $ac_cv_prog_cc_c89"
5314 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
5315 $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
5317 if test "x$ac_cv_prog_cc_c89" != xno; then :
5322 ac_cpp='$CPP $CPPFLAGS'
5323 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5324 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5325 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5326 DEPDIR="${am__leading_dot}deps"
5328 ac_config_commands="$ac_config_commands depfiles"
5331 am_make=${MAKE-make}
5332 cat > confinc << 'END'
5334 @echo this is the am__doit target
5337 # If we don't find an include directive, just comment out the code.
5338 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for style of include used by $am_make" >&5
5339 $as_echo_n "checking for style of include used by $am_make... " >&6; }
5343 # First try GNU make style include.
5344 echo "include confinc" > confmf
5345 # Ignore all kinds of additional output from `make'.
5346 case `$am_make -s -f confmf 2> /dev/null` in #(
5347 *the\ am__doit\ target*)
5353 # Now try BSD make style include.
5354 if test "$am__include" = "#"; then
5355 echo '.include
"confinc"' > confmf
5356 case `$am_make -s -f confmf 2> /dev/null` in #(
5357 *the\ am__doit\ target*)
5358 am__include=.include
5366 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $_am_result" >&5
5367 $as_echo "$_am_result" >&6; }
5368 rm -f confinc confmf
5370 # Check whether --enable-dependency-tracking was given.
5371 if test "${enable_dependency_tracking+set}" = set; then :
5372 enableval=$enable_dependency_tracking;
5375 if test "x$enable_dependency_tracking" != xno; then
5376 am_depcomp="$ac_aux_dir/depcomp"
5379 if test "x$enable_dependency_tracking" != xno
; then
5389 depcc
="$CC" am_compiler_list
=
5391 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
5392 $as_echo_n "checking dependency style of $depcc... " >&6; }
5393 if ${am_cv_CC_dependencies_compiler_type+:} false
; then :
5394 $as_echo_n "(cached) " >&6
5396 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
5397 # We make a subdir and do the tests there. Otherwise we can end up
5398 # making bogus files that we don't know about and never remove. For
5399 # instance it was reported that on HP-UX the gcc test will end up
5400 # making a dummy file named `D' -- because `-MD' means `put the output
5403 # Copy depcomp to subdir because otherwise we won't find it if we're
5404 # using a relative directory.
5405 cp "$am_depcomp" conftest.dir
5407 # We will build objects and dependencies in a subdirectory because
5408 # it helps to detect inapplicable dependency modes. For instance
5409 # both Tru64's cc and ICC support -MD to output dependencies as a
5410 # side effect of compilation, but ICC will put the dependencies in
5411 # the current directory while Tru64 will put them in the object
5415 am_cv_CC_dependencies_compiler_type
=none
5416 if test "$am_compiler_list" = ""; then
5417 am_compiler_list
=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
5420 case " $depcc " in #(
5421 *\
-arch\
*\
-arch\
*) am__universal
=true
;;
5424 for depmode
in $am_compiler_list; do
5425 # Setup a source with many dependencies, because some compilers
5426 # like to wrap large dependency lists on column 80 (with \), and
5427 # we should not choose a depcomp mode which is confused by this.
5429 # We need to recreate these files for each test, as the compiler may
5430 # overwrite some of them when testing with obscure command lines.
5431 # This happens at least with the AIX C compiler.
5433 for i
in 1 2 3 4 5 6; do
5434 echo '#include "conftst'$i'.h"' >> sub
/conftest.c
5435 # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
5436 # Solaris 8's {/usr,}/bin/sh.
5437 touch sub
/conftst
$i.h
5439 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
5441 # We check with `-c' and `-o' for the sake of the "dashmstdout"
5442 # mode. It turns out that the SunPro C++ compiler does not properly
5443 # handle `-M -o', and we need to detect this. Also, some Intel
5444 # versions had trouble with output in subdirs
5445 am__obj
=sub
/conftest.
${OBJEXT-o}
5446 am__minus_obj
="-o $am__obj"
5449 # This depmode causes a compiler race in universal mode.
5450 test "$am__universal" = false ||
continue
5453 # after this tag, mechanisms are not by side-effect, so they'll
5454 # only be used when explicitly requested
5455 if test "x$enable_dependency_tracking" = xyes
; then
5461 msvisualcpp | msvcmsys
)
5462 # This compiler won't grok `-c -o', but also, the minuso test has
5463 # not run yet. These depmodes are late enough in the game, and
5464 # so weak that their functioning should not be impacted.
5465 am__obj
=conftest.
${OBJEXT-o}
5470 if depmode
=$depmode \
5471 source=sub
/conftest.c object
=$am__obj \
5472 depfile
=sub
/conftest.Po tmpdepfile
=sub
/conftest.TPo \
5473 $SHELL .
/depcomp
$depcc -c $am__minus_obj sub
/conftest.c \
5474 >/dev
/null
2>conftest.err
&&
5475 grep sub
/conftst1.h sub
/conftest.Po
> /dev
/null
2>&1 &&
5476 grep sub
/conftst6.h sub
/conftest.Po
> /dev
/null
2>&1 &&
5477 grep $am__obj sub
/conftest.Po
> /dev
/null
2>&1 &&
5478 ${MAKE-make} -s -f confmf
> /dev
/null
2>&1; then
5479 # icc doesn't choke on unknown options, it will just issue warnings
5480 # or remarks (even with -Werror). So we grep stderr for any message
5481 # that says an option was ignored or not supported.
5482 # When given -MP, icc 7.0 and 7.1 complain thusly:
5483 # icc: Command line warning: ignoring option '-M'; no argument required
5484 # The diagnosis changed in icc 8.0:
5485 # icc: Command line remark: option '-MP' not supported
5486 if (grep 'ignoring option' conftest.err ||
5487 grep 'not supported' conftest.err
) >/dev
/null
2>&1; then :; else
5488 am_cv_CC_dependencies_compiler_type
=$depmode
5497 am_cv_CC_dependencies_compiler_type
=none
5501 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5
5502 $as_echo "$am_cv_CC_dependencies_compiler_type" >&6; }
5503 CCDEPMODE
=depmode
=$am_cv_CC_dependencies_compiler_type
5506 test "x$enable_dependency_tracking" != xno \
5507 && test "$am_cv_CC_dependencies_compiler_type" = gcc3
; then
5509 am__fastdepCC_FALSE
='#'
5511 am__fastdepCC_TRUE
='#'
5512 am__fastdepCC_FALSE
=
5516 if test "x$CC" != xcc
; then
5517 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC and cc understand -c and -o together" >&5
5518 $as_echo_n "checking whether $CC and cc understand -c and -o together... " >&6; }
5520 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether cc understands -c and -o together" >&5
5521 $as_echo_n "checking whether cc understands -c and -o together... " >&6; }
5523 set dummy
$CC; ac_cc
=`$as_echo "$2" |
5524 sed 's/[^a-zA-Z0-9_]/_/g;s/^[0-9]/_/'`
5525 if eval \
${ac_cv_prog_cc_${ac_cc}_c_o+:} false
; then :
5526 $as_echo_n "(cached) " >&6
5528 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
5529 /* end confdefs.h. */
5539 # Make sure it works both with $CC and with simple cc.
5540 # We do the test twice because some compilers refuse to overwrite an
5541 # existing .o file with -o, though they will create one.
5542 ac_try
='$CC -c conftest.$ac_ext -o conftest2.$ac_objext >&5'
5544 if { { case "(($ac_try" in
5545 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
5546 *) ac_try_echo=$ac_try;;
5548 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
5549 $as_echo "$ac_try_echo"; } >&5
5550 (eval "$ac_try") 2>&5
5552 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5553 test $ac_status = 0; } &&
5554 test -f conftest2.$ac_objext && { { case "(($ac_try" in
5555 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
5556 *) ac_try_echo
=$ac_try;;
5558 eval ac_try_echo
="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
5559 $as_echo "$ac_try_echo"; } >&5
5560 (eval "$ac_try") 2>&5
5562 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5563 test $ac_status = 0; };
5565 eval ac_cv_prog_cc_
${ac_cc}_c_o
=yes
5566 if test "x$CC" != xcc
; then
5567 # Test first that cc exists at all.
5568 if { ac_try
='cc -c conftest.$ac_ext >&5'
5569 { { case "(($ac_try" in
5570 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
5571 *) ac_try_echo=$ac_try;;
5573 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
5574 $as_echo "$ac_try_echo"; } >&5
5575 (eval "$ac_try") 2>&5
5577 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5578 test $ac_status = 0; }; }; then
5579 ac_try='cc -c conftest.$ac_ext -o conftest2.$ac_objext >&5'
5581 if { { case "(($ac_try" in
5582 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
5583 *) ac_try_echo
=$ac_try;;
5585 eval ac_try_echo
="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
5586 $as_echo "$ac_try_echo"; } >&5
5587 (eval "$ac_try") 2>&5
5589 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5590 test $ac_status = 0; } &&
5591 test -f conftest2.
$ac_objext && { { case "(($ac_try" in
5592 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
5593 *) ac_try_echo=$ac_try;;
5595 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
5596 $as_echo "$ac_try_echo"; } >&5
5597 (eval "$ac_try") 2>&5
5599 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5600 test $ac_status = 0; };
5605 # cc exists but doesn't like -o.
5606 eval ac_cv_prog_cc_${ac_cc}_c_o=no
5611 eval ac_cv_prog_cc_${ac_cc}_c_o=no
5613 rm -f core conftest*
5616 if eval test \$ac_cv_prog_cc_${ac_cc}_c_o = yes; then
5617 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5618 $as_echo "yes" >&6; }
5620 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5621 $as_echo "no" >&6; }
5623 $as_echo "#define NO_MINUS_C_MINUS_O 1" >>confdefs.h
5627 # FIXME: we rely on the cache variable name because
5628 # there is no other way.
5630 am_cc=`echo $2 |
sed 's/[^a-zA-Z0-9_]/_/g;s/^[0-9]/_/'`
5631 eval am_t=\$ac_cv_prog_cc_${am_cc}_c_o
5632 if test "$am_t" != yes; then
5633 # Losing compiler, so override with the script.
5634 # FIXME: It is wrong to rewrite CC.
5635 # But if we don't then we get into trouble of one sort or another.
5636 # A longer-term fix would be to have automake use am__CC in this case,
5637 # and then we could set am__CC="\$(top_srcdir)/compile \$(CC)"
5638 CC="$am_aux_dir/compile $CC"
5643 # Initialize gnulib right after verifying that the C compiler works.
5644 if test -n "$ac_tool_prefix"; then
5645 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
5646 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
5647 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5648 $as_echo_n "checking for $ac_word... " >&6; }
5649 if ${ac_cv_prog_RANLIB+:} false; then :
5650 $as_echo_n "(cached) " >&6
5652 if test -n "$RANLIB"; then
5653 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
5655 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5659 test -z "$as_dir" && as_dir=.
5660 for ac_exec_ext in '' $ac_executable_extensions; do
5661 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5662 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
5663 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5672 RANLIB=$ac_cv_prog_RANLIB
5673 if test -n "$RANLIB"; then
5674 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
5675 $as_echo "$RANLIB" >&6; }
5677 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5678 $as_echo "no" >&6; }
5683 if test -z "$ac_cv_prog_RANLIB"; then
5684 ac_ct_RANLIB=$RANLIB
5685 # Extract the first word of "ranlib", so it can be a program name with args.
5686 set dummy ranlib; ac_word=$2
5687 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5688 $as_echo_n "checking for $ac_word... " >&6; }
5689 if ${ac_cv_prog_ac_ct_RANLIB+:} false; then :
5690 $as_echo_n "(cached) " >&6
5692 if test -n "$ac_ct_RANLIB"; then
5693 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
5695 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5699 test -z "$as_dir" && as_dir=.
5700 for ac_exec_ext in '' $ac_executable_extensions; do
5701 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5702 ac_cv_prog_ac_ct_RANLIB="ranlib"
5703 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5712 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
5713 if test -n "$ac_ct_RANLIB"; then
5714 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
5715 $as_echo "$ac_ct_RANLIB" >&6; }
5717 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5718 $as_echo "no" >&6; }
5721 if test "x$ac_ct_RANLIB" = x; then
5724 case $cross_compiling:$ac_tool_warned in
5726 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5727 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5728 ac_tool_warned=yes ;;
5730 RANLIB=$ac_ct_RANLIB
5733 RANLIB="$ac_cv_prog_RANLIB"
5738 ac_cpp='$CPP $CPPFLAGS'
5739 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5740 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5741 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5742 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
5743 $as_echo_n "checking how to run the C preprocessor... " >&6; }
5744 # On Suns, sometimes $CPP names a directory.
5745 if test -n "$CPP" && test -d "$CPP"; then
5748 if test -z "$CPP"; then
5749 if ${ac_cv_prog_CPP+:} false; then :
5750 $as_echo_n "(cached) " >&6
5752 # Double quotes because CPP needs to be expanded
5753 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
5756 for ac_c_preproc_warn_flag in '' yes
5758 # Use a header file that comes with gcc, so configuring glibc
5759 # with a fresh cross-compiler works.
5760 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5761 # <limits.h> exists even on freestanding compilers.
5762 # On the NeXT, cc -E runs the code through the compiler's parser,
5763 # not just through cpp. "Syntax error" is here to catch this case.
5764 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5765 /* end confdefs.h. */
5767 # include <limits.h>
5769 # include <assert.h>
5773 if ac_fn_c_try_cpp "$LINENO"; then :
5776 # Broken: fails on valid input.
5779 rm -f conftest.err conftest.i conftest.$ac_ext
5781 # OK, works on sane cases. Now check whether nonexistent headers
5782 # can be detected and how.
5783 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5784 /* end confdefs.h. */
5785 #include <ac_nonexistent.h>
5787 if ac_fn_c_try_cpp "$LINENO"; then :
5788 # Broken: success on invalid input.
5791 # Passes both tests.
5795 rm -f conftest.err conftest.i conftest.$ac_ext
5798 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
5799 rm -f conftest.i conftest.err conftest.
$ac_ext
5800 if $ac_preproc_ok; then :
5812 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
5813 $as_echo "$CPP" >&6; }
5815 for ac_c_preproc_warn_flag
in '' yes
5817 # Use a header file that comes with gcc, so configuring glibc
5818 # with a fresh cross-compiler works.
5819 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5820 # <limits.h> exists even on freestanding compilers.
5821 # On the NeXT, cc -E runs the code through the compiler's parser,
5822 # not just through cpp. "Syntax error" is here to catch this case.
5823 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
5824 /* end confdefs.h. */
5826 # include <limits.h>
5828 # include <assert.h>
5832 if ac_fn_c_try_cpp
"$LINENO"; then :
5835 # Broken: fails on valid input.
5838 rm -f conftest.err conftest.i conftest.
$ac_ext
5840 # OK, works on sane cases. Now check whether nonexistent headers
5841 # can be detected and how.
5842 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
5843 /* end confdefs.h. */
5844 #include <ac_nonexistent.h>
5846 if ac_fn_c_try_cpp
"$LINENO"; then :
5847 # Broken: success on invalid input.
5850 # Passes both tests.
5854 rm -f conftest.err conftest.i conftest.
$ac_ext
5857 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
5858 rm -f conftest.i conftest.err conftest.
$ac_ext
5859 if $ac_preproc_ok; then :
5862 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
5863 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
5864 as_fn_error $?
"C preprocessor \"$CPP\" fails sanity check
5865 See \`config.log' for more details" "$LINENO" 5; }
5869 ac_cpp
='$CPP $CPPFLAGS'
5870 ac_compile
='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5871 ac_link
='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5872 ac_compiler_gnu
=$ac_cv_c_compiler_gnu
5875 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
5876 $as_echo_n "checking for grep that handles long lines and -e... " >&6; }
5877 if ${ac_cv_path_GREP+:} false
; then :
5878 $as_echo_n "(cached) " >&6
5880 if test -z "$GREP"; then
5881 ac_path_GREP_found
=false
5882 # Loop through the user's path and test for each of PROGNAME-LIST
5883 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
5884 for as_dir
in $PATH$PATH_SEPARATOR/usr
/xpg
4/bin
5887 test -z "$as_dir" && as_dir
=.
5888 for ac_prog
in grep ggrep
; do
5889 for ac_exec_ext
in '' $ac_executable_extensions; do
5890 ac_path_GREP
="$as_dir/$ac_prog$ac_exec_ext"
5891 { test -f "$ac_path_GREP" && $as_test_x "$ac_path_GREP"; } ||
continue
5892 # Check for GNU ac_path_GREP and select it if it is found.
5893 # Check for GNU $ac_path_GREP
5894 case `"$ac_path_GREP" --version 2>&1` in
5896 ac_cv_path_GREP
="$ac_path_GREP" ac_path_GREP_found
=:;;
5899 $as_echo_n 0123456789 >"conftest.in"
5902 cat "conftest.in" "conftest.in" >"conftest.tmp"
5903 mv "conftest.tmp" "conftest.in"
5904 cp "conftest.in" "conftest.nl"
5905 $as_echo 'GREP' >> "conftest.nl"
5906 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev
/null ||
break
5907 diff "conftest.out" "conftest.nl" >/dev
/null
2>&1 ||
break
5908 as_fn_arith
$ac_count + 1 && ac_count
=$as_val
5909 if test $ac_count -gt ${ac_path_GREP_max-0}; then
5910 # Best one so far, save it but keep looking for a better one
5911 ac_cv_path_GREP
="$ac_path_GREP"
5912 ac_path_GREP_max
=$ac_count
5914 # 10*(2^10) chars as input seems more than enough
5915 test $ac_count -gt 10 && break
5917 rm -f conftest.
in conftest.tmp conftest.
nl conftest.out
;;
5920 $ac_path_GREP_found && break 3
5925 if test -z "$ac_cv_path_GREP"; then
5926 as_fn_error $?
"no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
5929 ac_cv_path_GREP
=$GREP
5933 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
5934 $as_echo "$ac_cv_path_GREP" >&6; }
5935 GREP
="$ac_cv_path_GREP"
5938 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
5939 $as_echo_n "checking for egrep... " >&6; }
5940 if ${ac_cv_path_EGREP+:} false
; then :
5941 $as_echo_n "(cached) " >&6
5943 if echo a |
$GREP -E '(a|b)' >/dev
/null
2>&1
5944 then ac_cv_path_EGREP
="$GREP -E"
5946 if test -z "$EGREP"; then
5947 ac_path_EGREP_found
=false
5948 # Loop through the user's path and test for each of PROGNAME-LIST
5949 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
5950 for as_dir
in $PATH$PATH_SEPARATOR/usr
/xpg
4/bin
5953 test -z "$as_dir" && as_dir
=.
5954 for ac_prog
in egrep; do
5955 for ac_exec_ext
in '' $ac_executable_extensions; do
5956 ac_path_EGREP
="$as_dir/$ac_prog$ac_exec_ext"
5957 { test -f "$ac_path_EGREP" && $as_test_x "$ac_path_EGREP"; } ||
continue
5958 # Check for GNU ac_path_EGREP and select it if it is found.
5959 # Check for GNU $ac_path_EGREP
5960 case `"$ac_path_EGREP" --version 2>&1` in
5962 ac_cv_path_EGREP
="$ac_path_EGREP" ac_path_EGREP_found
=:;;
5965 $as_echo_n 0123456789 >"conftest.in"
5968 cat "conftest.in" "conftest.in" >"conftest.tmp"
5969 mv "conftest.tmp" "conftest.in"
5970 cp "conftest.in" "conftest.nl"
5971 $as_echo 'EGREP' >> "conftest.nl"
5972 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev
/null ||
break
5973 diff "conftest.out" "conftest.nl" >/dev
/null
2>&1 ||
break
5974 as_fn_arith
$ac_count + 1 && ac_count
=$as_val
5975 if test $ac_count -gt ${ac_path_EGREP_max-0}; then
5976 # Best one so far, save it but keep looking for a better one
5977 ac_cv_path_EGREP
="$ac_path_EGREP"
5978 ac_path_EGREP_max
=$ac_count
5980 # 10*(2^10) chars as input seems more than enough
5981 test $ac_count -gt 10 && break
5983 rm -f conftest.
in conftest.tmp conftest.
nl conftest.out
;;
5986 $ac_path_EGREP_found && break 3
5991 if test -z "$ac_cv_path_EGREP"; then
5992 as_fn_error $?
"no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
5995 ac_cv_path_EGREP
=$EGREP
6000 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
6001 $as_echo "$ac_cv_path_EGREP" >&6; }
6002 EGREP
="$ac_cv_path_EGREP"
6005 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
6006 $as_echo_n "checking for ANSI C header files... " >&6; }
6007 if ${ac_cv_header_stdc+:} false
; then :
6008 $as_echo_n "(cached) " >&6
6010 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
6011 /* end confdefs.h. */
6025 if ac_fn_c_try_compile
"$LINENO"; then :
6026 ac_cv_header_stdc
=yes
6028 ac_cv_header_stdc
=no
6030 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
6032 if test $ac_cv_header_stdc = yes; then
6033 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
6034 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
6035 /* end confdefs.h. */
6039 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6040 $EGREP "memchr" >/dev
/null
2>&1; then :
6043 ac_cv_header_stdc
=no
6049 if test $ac_cv_header_stdc = yes; then
6050 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
6051 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
6052 /* end confdefs.h. */
6056 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6057 $EGREP "free" >/dev
/null
2>&1; then :
6060 ac_cv_header_stdc
=no
6066 if test $ac_cv_header_stdc = yes; then
6067 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
6068 if test "$cross_compiling" = yes; then :
6071 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
6072 /* end confdefs.h. */
6075 #if ((' ' & 0x0FF) == 0x020)
6076 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
6077 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
6079 # define ISLOWER(c) \
6080 (('a' <= (c) && (c) <= 'i') \
6081 || ('j' <= (c) && (c) <= 'r') \
6082 || ('s' <= (c) && (c) <= 'z'))
6083 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
6086 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
6091 for (i = 0; i < 256; i++)
6092 if (XOR (islower (i), ISLOWER (i))
6093 || toupper (i) != TOUPPER (i))
6098 if ac_fn_c_try_run
"$LINENO"; then :
6101 ac_cv_header_stdc
=no
6103 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
6104 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
6109 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
6110 $as_echo "$ac_cv_header_stdc" >&6; }
6111 if test $ac_cv_header_stdc = yes; then
6113 $as_echo "#define STDC_HEADERS 1" >>confdefs.h
6117 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
6118 for ac_header
in sys
/types.h sys
/stat.h stdlib.h string.h memory.h
strings.h \
6119 inttypes.h stdint.h unistd.h
6121 as_ac_Header
=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
6122 ac_fn_c_check_header_compile
"$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
6124 if eval test \"x\$
"$as_ac_Header"\" = x
"yes"; then :
6125 cat >>confdefs.h
<<_ACEOF
6126 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
6137 ac_fn_c_check_header_mongrel
"$LINENO" "minix/config.h" "ac_cv_header_minix_config_h" "$ac_includes_default"
6138 if test "x$ac_cv_header_minix_config_h" = xyes
; then :
6145 if test "$MINIX" = yes; then
6147 $as_echo "#define _POSIX_SOURCE 1" >>confdefs.h
6150 $as_echo "#define _POSIX_1_SOURCE 2" >>confdefs.h
6153 $as_echo "#define _MINIX 1" >>confdefs.h
6160 $as_echo "#define _XOPEN_SOURCE 500" >>confdefs.h
6166 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether it is safe to define __EXTENSIONS__" >&5
6167 $as_echo_n "checking whether it is safe to define __EXTENSIONS__... " >&6; }
6168 if ${ac_cv_safe_to_define___extensions__+:} false
; then :
6169 $as_echo_n "(cached) " >&6
6171 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
6172 /* end confdefs.h. */
6174 # define __EXTENSIONS__ 1
6175 $ac_includes_default
6184 if ac_fn_c_try_compile
"$LINENO"; then :
6185 ac_cv_safe_to_define___extensions__
=yes
6187 ac_cv_safe_to_define___extensions__
=no
6189 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
6191 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_safe_to_define___extensions__" >&5
6192 $as_echo "$ac_cv_safe_to_define___extensions__" >&6; }
6193 test $ac_cv_safe_to_define___extensions__ = yes &&
6194 $as_echo "#define __EXTENSIONS__ 1" >>confdefs.h
6196 $as_echo "#define _ALL_SOURCE 1" >>confdefs.h
6198 $as_echo "#define _GNU_SOURCE 1" >>confdefs.h
6200 $as_echo "#define _POSIX_PTHREAD_SEMANTICS 1" >>confdefs.h
6202 $as_echo "#define _TANDEM_SOURCE 1" >>confdefs.h
6213 # Code from module arg-nonnull:
6214 # Code from module c++defs:
6215 # Code from module crypto/md5:
6216 # Code from module dosname:
6217 # Code from module dtoastr:
6218 # Code from module extensions:
6220 # Code from module filemode:
6221 # Code from module getloadavg:
6222 # Code from module getopt-gnu:
6223 # Code from module getopt-posix:
6224 # Code from module gettext-h:
6225 # Code from module ignore-value:
6226 # Code from module include_next:
6227 # Code from module intprops:
6228 # Code from module lstat:
6229 # Code from module mktime:
6230 # Code from module multiarch:
6231 # Code from module readlink:
6232 # Code from module socklen:
6233 # Code from module stat:
6234 # Code from module stdbool:
6235 # Code from module stddef:
6236 # Code from module stdint:
6237 # Code from module stdio:
6238 # Code from module stdlib:
6239 # Code from module strftime:
6240 # Code from module symlink:
6241 # Code from module sys_stat:
6242 # Code from module time:
6243 # Code from module time_r:
6244 # Code from module unistd:
6245 # Code from module warn-on-use:
6248 # On Suns, sometimes $CPP names a directory.
6249 if test -n "$CPP" && test -d "$CPP"; then
6253 ## If not using gcc, and on Solaris, and no CPP specified, see if
6254 ## using a Sun compiler, which needs -Xs to prevent whitespace.
6255 if test x
"$GCC" != xyes
&& test x
"$emacs_check_sunpro_c" = xyes
&& \
6256 test x
"$CPP" = x
; then
6257 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using a Sun C compiler" >&5
6258 $as_echo_n "checking whether we are using a Sun C compiler... " >&6; }
6259 if ${emacs_cv_sunpro_c+:} false
; then :
6260 $as_echo_n "(cached) " >&6
6262 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
6263 /* end confdefs.h. */
6276 if ac_fn_c_try_link
"$LINENO"; then :
6277 emacs_cv_sunpro_c
=yes
6279 emacs_cv_sunpro_c
=no
6281 rm -f core conftest.err conftest.
$ac_objext \
6282 conftest
$ac_exeext conftest.
$ac_ext
6285 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $emacs_cv_sunpro_c" >&5
6286 $as_echo "$emacs_cv_sunpro_c" >&6; }
6288 if test x
"$emacs_cv_sunpro_c" = xyes
; then
6289 NON_GNU_CPP
="$CC -E -Xs"
6293 #### Some systems specify a CPP to use unless we are using GCC.
6294 #### Now that we know whether we are using GCC, we can decide whether
6295 #### to use that one.
6296 if test "x$NON_GNU_CPP" != x
&& test x
$GCC != xyes
&& test "x$CPP" = x
6301 #### Some systems specify a CC to use unless we are using GCC.
6302 #### Now that we know whether we are using GCC, we can decide whether
6303 #### to use that one.
6304 if test "x$NON_GNU_CC" != x
&& test x
$GCC != xyes
&&
6305 test x
$cc_specified != xyes
6310 if test x
$GCC = xyes
; then
6311 test "x$GCC_TEST_OPTIONS" != x
&& CC
="$CC $GCC_TEST_OPTIONS"
6313 test "x$NON_GCC_TEST_OPTIONS" != x
&& CC
="$CC $NON_GCC_TEST_OPTIONS"
6316 ### Use -Wdeclaration-after-statement if the compiler supports it
6317 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether gcc understands -Wdeclaration-after-statement" >&5
6318 $as_echo_n "checking whether gcc understands -Wdeclaration-after-statement... " >&6; }
6319 SAVE_CFLAGS
="$CFLAGS"
6320 CFLAGS
="$CFLAGS -Wdeclaration-after-statement"
6321 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
6322 /* end confdefs.h. */
6332 if ac_fn_c_try_compile
"$LINENO"; then :
6337 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
6338 if test $has_option = yes; then
6339 C_WARNINGS_SWITCH
="-Wdeclaration-after-statement $C_WARNINGS_SWITCH"
6341 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $has_option" >&5
6342 $as_echo "$has_option" >&6; }
6343 CFLAGS
="$SAVE_CFLAGS"
6347 ### Use -Wold-style-definition if the compiler supports it
6348 # This can be removed when conversion to standard C is finished.
6349 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether gcc understands -Wold-style-definition" >&5
6350 $as_echo_n "checking whether gcc understands -Wold-style-definition... " >&6; }
6351 SAVE_CFLAGS
="$CFLAGS"
6352 CFLAGS
="$CFLAGS -Wold-style-definition"
6353 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
6354 /* end confdefs.h. */
6364 if ac_fn_c_try_compile
"$LINENO"; then :
6369 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
6370 if test $has_option = yes; then
6371 C_WARNINGS_SWITCH
="-Wold-style-definition $C_WARNINGS_SWITCH"
6373 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $has_option" >&5
6374 $as_echo "$has_option" >&6; }
6375 CFLAGS
="$SAVE_CFLAGS"
6379 ### Use -Wimplicit-function-declaration if the compiler supports it
6380 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether gcc understands -Wimplicit-function-declaration" >&5
6381 $as_echo_n "checking whether gcc understands -Wimplicit-function-declaration... " >&6; }
6382 SAVE_CFLAGS
="$CFLAGS"
6383 CFLAGS
="$CFLAGS -Wimplicit-function-declaration"
6384 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
6385 /* end confdefs.h. */
6395 if ac_fn_c_try_compile
"$LINENO"; then :
6400 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
6401 if test $has_option = yes; then
6402 C_WARNINGS_SWITCH
="-Wimplicit-function-declaration $C_WARNINGS_SWITCH"
6404 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $has_option" >&5
6405 $as_echo "$has_option" >&6; }
6406 CFLAGS
="$SAVE_CFLAGS"
6413 #### Some other nice autoconf tests.
6416 ac_cpp
='$CPP $CPPFLAGS'
6417 ac_compile
='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6418 ac_link
='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6419 ac_compiler_gnu
=$ac_cv_c_compiler_gnu
6420 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
6421 $as_echo_n "checking how to run the C preprocessor... " >&6; }
6422 # On Suns, sometimes $CPP names a directory.
6423 if test -n "$CPP" && test -d "$CPP"; then
6426 if test -z "$CPP"; then
6427 if ${ac_cv_prog_CPP+:} false
; then :
6428 $as_echo_n "(cached) " >&6
6430 # Double quotes because CPP needs to be expanded
6431 for CPP
in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
6434 for ac_c_preproc_warn_flag
in '' yes
6436 # Use a header file that comes with gcc, so configuring glibc
6437 # with a fresh cross-compiler works.
6438 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
6439 # <limits.h> exists even on freestanding compilers.
6440 # On the NeXT, cc -E runs the code through the compiler's parser,
6441 # not just through cpp. "Syntax error" is here to catch this case.
6442 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
6443 /* end confdefs.h. */
6445 # include <limits.h>
6447 # include <assert.h>
6451 if ac_fn_c_try_cpp
"$LINENO"; then :
6454 # Broken: fails on valid input.
6457 rm -f conftest.err conftest.i conftest.
$ac_ext
6459 # OK, works on sane cases. Now check whether nonexistent headers
6460 # can be detected and how.
6461 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
6462 /* end confdefs.h. */
6463 #include <ac_nonexistent.h>
6465 if ac_fn_c_try_cpp
"$LINENO"; then :
6466 # Broken: success on invalid input.
6469 # Passes both tests.
6473 rm -f conftest.err conftest.i conftest.
$ac_ext
6476 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
6477 rm -f conftest.i conftest.err conftest.
$ac_ext
6478 if $ac_preproc_ok; then :
6490 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
6491 $as_echo "$CPP" >&6; }
6493 for ac_c_preproc_warn_flag
in '' yes
6495 # Use a header file that comes with gcc, so configuring glibc
6496 # with a fresh cross-compiler works.
6497 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
6498 # <limits.h> exists even on freestanding compilers.
6499 # On the NeXT, cc -E runs the code through the compiler's parser,
6500 # not just through cpp. "Syntax error" is here to catch this case.
6501 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
6502 /* end confdefs.h. */
6504 # include <limits.h>
6506 # include <assert.h>
6510 if ac_fn_c_try_cpp
"$LINENO"; then :
6513 # Broken: fails on valid input.
6516 rm -f conftest.err conftest.i conftest.
$ac_ext
6518 # OK, works on sane cases. Now check whether nonexistent headers
6519 # can be detected and how.
6520 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
6521 /* end confdefs.h. */
6522 #include <ac_nonexistent.h>
6524 if ac_fn_c_try_cpp
"$LINENO"; then :
6525 # Broken: success on invalid input.
6528 # Passes both tests.
6532 rm -f conftest.err conftest.i conftest.
$ac_ext
6535 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
6536 rm -f conftest.i conftest.err conftest.
$ac_ext
6537 if $ac_preproc_ok; then :
6540 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
6541 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
6542 as_fn_error $?
"C preprocessor \"$CPP\" fails sanity check
6543 See \`config.log' for more details" "$LINENO" 5; }
6547 ac_cpp
='$CPP $CPPFLAGS'
6548 ac_compile
='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6549 ac_link
='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6550 ac_compiler_gnu
=$ac_cv_c_compiler_gnu
6553 if test "x$RANLIB" = x
; then
6554 if test -n "$ac_tool_prefix"; then
6555 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
6556 set dummy
${ac_tool_prefix}ranlib
; ac_word
=$2
6557 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6558 $as_echo_n "checking for $ac_word... " >&6; }
6559 if ${ac_cv_prog_RANLIB+:} false
; then :
6560 $as_echo_n "(cached) " >&6
6562 if test -n "$RANLIB"; then
6563 ac_cv_prog_RANLIB
="$RANLIB" # Let the user override the test.
6565 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
6569 test -z "$as_dir" && as_dir
=.
6570 for ac_exec_ext
in '' $ac_executable_extensions; do
6571 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6572 ac_cv_prog_RANLIB
="${ac_tool_prefix}ranlib"
6573 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6582 RANLIB
=$ac_cv_prog_RANLIB
6583 if test -n "$RANLIB"; then
6584 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
6585 $as_echo "$RANLIB" >&6; }
6587 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6588 $as_echo "no" >&6; }
6593 if test -z "$ac_cv_prog_RANLIB"; then
6594 ac_ct_RANLIB
=$RANLIB
6595 # Extract the first word of "ranlib", so it can be a program name with args.
6596 set dummy ranlib
; ac_word
=$2
6597 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6598 $as_echo_n "checking for $ac_word... " >&6; }
6599 if ${ac_cv_prog_ac_ct_RANLIB+:} false
; then :
6600 $as_echo_n "(cached) " >&6
6602 if test -n "$ac_ct_RANLIB"; then
6603 ac_cv_prog_ac_ct_RANLIB
="$ac_ct_RANLIB" # Let the user override the test.
6605 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
6609 test -z "$as_dir" && as_dir
=.
6610 for ac_exec_ext
in '' $ac_executable_extensions; do
6611 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6612 ac_cv_prog_ac_ct_RANLIB
="ranlib"
6613 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6622 ac_ct_RANLIB
=$ac_cv_prog_ac_ct_RANLIB
6623 if test -n "$ac_ct_RANLIB"; then
6624 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
6625 $as_echo "$ac_ct_RANLIB" >&6; }
6627 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6628 $as_echo "no" >&6; }
6631 if test "x$ac_ct_RANLIB" = x
; then
6634 case $cross_compiling:$ac_tool_warned in
6636 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6637 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6638 ac_tool_warned
=yes ;;
6640 RANLIB
=$ac_ct_RANLIB
6643 RANLIB
="$ac_cv_prog_RANLIB"
6648 ## Although we're running on an amd64 kernel, we're actually compiling for
6649 ## the x86 architecture. The user should probably have provided an
6650 ## explicit --build to `configure', but if everything else than the kernel
6651 ## is running in i386 mode, we can help them out.
6652 if test "$machine" = "amdx86-64"; then
6653 ac_fn_c_check_decl
"$LINENO" "i386" "ac_cv_have_decl_i386" "$ac_includes_default"
6654 if test "x$ac_cv_have_decl_i386" = xyes
; then :
6658 if test "$ac_cv_have_decl_i386" = "yes"; then
6659 canonical
=`echo "$canonical" | sed -e 's/^amd64/i386/' -e 's/^x86_64/i386/'`
6661 machfile
="m/${machine}.h"
6665 # Extract the first word of "install-info", so it can be a program name with args.
6666 set dummy install-info
; ac_word
=$2
6667 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6668 $as_echo_n "checking for $ac_word... " >&6; }
6669 if ${ac_cv_path_INSTALL_INFO+:} false
; then :
6670 $as_echo_n "(cached) " >&6
6672 case $INSTALL_INFO in
6674 ac_cv_path_INSTALL_INFO
="$INSTALL_INFO" # Let the user override the test with a path.
6677 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
6681 test -z "$as_dir" && as_dir
=.
6682 for ac_exec_ext
in '' $ac_executable_extensions; do
6683 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6684 ac_cv_path_INSTALL_INFO
="$as_dir/$ac_word$ac_exec_ext"
6685 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6695 INSTALL_INFO
=$ac_cv_path_INSTALL_INFO
6696 if test -n "$INSTALL_INFO"; then
6697 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL_INFO" >&5
6698 $as_echo "$INSTALL_INFO" >&6; }
6700 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6701 $as_echo "no" >&6; }
6705 # Extract the first word of "install-info", so it can be a program name with args.
6706 set dummy install-info
; ac_word
=$2
6707 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6708 $as_echo_n "checking for $ac_word... " >&6; }
6709 if ${ac_cv_path_INSTALL_INFO+:} false
; then :
6710 $as_echo_n "(cached) " >&6
6712 case $INSTALL_INFO in
6714 ac_cv_path_INSTALL_INFO
="$INSTALL_INFO" # Let the user override the test with a path.
6717 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
6718 for as_dir
in /usr
/sbin
6721 test -z "$as_dir" && as_dir
=.
6722 for ac_exec_ext
in '' $ac_executable_extensions; do
6723 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6724 ac_cv_path_INSTALL_INFO
="$as_dir/$ac_word$ac_exec_ext"
6725 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6735 INSTALL_INFO
=$ac_cv_path_INSTALL_INFO
6736 if test -n "$INSTALL_INFO"; then
6737 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL_INFO" >&5
6738 $as_echo "$INSTALL_INFO" >&6; }
6740 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6741 $as_echo "no" >&6; }
6745 # Extract the first word of "install-info", so it can be a program name with args.
6746 set dummy install-info
; ac_word
=$2
6747 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6748 $as_echo_n "checking for $ac_word... " >&6; }
6749 if ${ac_cv_path_INSTALL_INFO+:} false
; then :
6750 $as_echo_n "(cached) " >&6
6752 case $INSTALL_INFO in
6754 ac_cv_path_INSTALL_INFO
="$INSTALL_INFO" # Let the user override the test with a path.
6757 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
6761 test -z "$as_dir" && as_dir
=.
6762 for ac_exec_ext
in '' $ac_executable_extensions; do
6763 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6764 ac_cv_path_INSTALL_INFO
="$as_dir/$ac_word$ac_exec_ext"
6765 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6772 test -z "$ac_cv_path_INSTALL_INFO" && ac_cv_path_INSTALL_INFO
=":"
6776 INSTALL_INFO
=$ac_cv_path_INSTALL_INFO
6777 if test -n "$INSTALL_INFO"; then
6778 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL_INFO" >&5
6779 $as_echo "$INSTALL_INFO" >&6; }
6781 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6782 $as_echo "no" >&6; }
6786 # Extract the first word of "gzip", so it can be a program name with args.
6787 set dummy
gzip; ac_word
=$2
6788 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6789 $as_echo_n "checking for $ac_word... " >&6; }
6790 if ${ac_cv_path_GZIP_PROG+:} false
; then :
6791 $as_echo_n "(cached) " >&6
6795 ac_cv_path_GZIP_PROG
="$GZIP_PROG" # Let the user override the test with a path.
6798 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
6802 test -z "$as_dir" && as_dir
=.
6803 for ac_exec_ext
in '' $ac_executable_extensions; do
6804 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6805 ac_cv_path_GZIP_PROG
="$as_dir/$ac_word$ac_exec_ext"
6806 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6816 GZIP_PROG
=$ac_cv_path_GZIP_PROG
6817 if test -n "$GZIP_PROG"; then
6818 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GZIP_PROG" >&5
6819 $as_echo "$GZIP_PROG" >&6; }
6821 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6822 $as_echo "no" >&6; }
6828 ## Need makeinfo >= 4.6 (?) to build the manuals.
6829 # Extract the first word of "makeinfo", so it can be a program name with args.
6830 set dummy makeinfo
; ac_word
=$2
6831 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6832 $as_echo_n "checking for $ac_word... " >&6; }
6833 if ${ac_cv_path_MAKEINFO+:} false
; then :
6834 $as_echo_n "(cached) " >&6
6838 ac_cv_path_MAKEINFO
="$MAKEINFO" # Let the user override the test with a path.
6841 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
6845 test -z "$as_dir" && as_dir
=.
6846 for ac_exec_ext
in '' $ac_executable_extensions; do
6847 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6848 ac_cv_path_MAKEINFO
="$as_dir/$ac_word$ac_exec_ext"
6849 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6856 test -z "$ac_cv_path_MAKEINFO" && ac_cv_path_MAKEINFO
="no"
6860 MAKEINFO
=$ac_cv_path_MAKEINFO
6861 if test -n "$MAKEINFO"; then
6862 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAKEINFO" >&5
6863 $as_echo "$MAKEINFO" >&6; }
6865 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6866 $as_echo "no" >&6; }
6870 if test "$MAKEINFO" != "no" && \
6871 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
6875 ## Makeinfo is unusual. For a released Emacs, the manuals are
6876 ## pre-built, and not deleted by the normal clean rules. makeinfo is
6877 ## therefore in the category of "special tools" not normally required, which
6878 ## configure does not have to check for (eg autoconf itself).
6879 ## In a Bazaar checkout on the other hand, the manuals are not included.
6880 ## So makeinfo is a requirement to build from Bazaar, and configure
6881 ## should test for it as it does for any other build requirement.
6882 ## We use the presence of $srcdir/info/emacs to distinguish a release,
6883 ## with pre-built manuals, from a Bazaar checkout.
6886 if test "$MAKEINFO" = "no"; then
6888 if test "x${with_makeinfo}" = "xno"; then
6890 elif test ! -e $srcdir/info
/emacs
; then
6891 as_fn_error $?
"You do not seem to have makeinfo >= 4.6, and your
6892 source tree does not seem to have pre-built manuals in the \`info' directory.
6893 Either install a suitable version of makeinfo, or re-run configure
6894 with the \`--without-makeinfo' option to build without the manuals. " "$LINENO" 5
6900 if test x
$GCC = xyes
; then
6901 test "x$GCC_LINK_TEST_OPTIONS" != x
&& \
6902 ac_link
="$ac_link $GCC_LINK_TEST_OPTIONS"
6904 test "x$NON_GCC_LINK_TEST_OPTIONS" != x
&& \
6905 ac_link
="$ac_link $NON_GCC_LINK_TEST_OPTIONS"
6909 late_LDFLAGS
=$LDFLAGS
6910 if test x
$GCC = xyes
; then
6911 LDFLAGS
="$LDFLAGS -Wl,-znocombreloc"
6913 LDFLAGS
="$LDFLAGS -znocombreloc"
6916 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -znocombreloc" >&5
6917 $as_echo_n "checking for -znocombreloc... " >&6; }
6918 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
6919 /* end confdefs.h. */
6929 if ac_fn_c_try_link
"$LINENO"; then :
6930 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
6931 $as_echo "yes" >&6; }
6933 LDFLAGS
=$late_LDFLAGS
6934 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6935 $as_echo "no" >&6; }
6937 rm -f core conftest.err conftest.
$ac_objext \
6938 conftest
$ac_exeext conftest.
$ac_ext
6941 # The value of CPP is a quoted variable reference, so we need to do this
6942 # to get its actual value...
6943 CPP
=`eval "echo $CPP"`
6946 test "x$CANNOT_DUMP" = "x" && CANNOT_DUMP
=no
6948 your-opsys-here
) CANNOT_DUMP
=yes ;;
6951 test "$CANNOT_DUMP" = "yes" && \
6953 $as_echo "#define CANNOT_DUMP 1" >>confdefs.h
6959 UNEXEC_OBJ
=unexelf.o
6961 # MSDOS uses unexcoff.o
6962 # MSWindows uses unexw32.o
6964 UNEXEC_OBJ
=unexaix.o
6970 UNEXEC_OBJ
=unexmacosx.o
6973 UNEXEC_OBJ
=unexhp9k800.o
6976 # Use the Solaris dldump() function, called from unexsol.c, to dump
6977 # emacs, instead of the generic ELF dump code found in unexelf.c.
6978 # The resulting binary has a complete symbol table, and is better
6979 # for debugging and other observability tools (debuggers, pstack, etc).
6981 # If you encounter a problem using dldump(), please consider sending
6982 # a message to the OpenSolaris tools-linking mailing list:
6983 # http://mail.opensolaris.org/mailman/listinfo/tools-linking
6985 # It is likely that dldump() works with older Solaris too, but this has
6986 # not been tested, so for now this change is for Solaris 10 or newer.
6987 UNEXEC_OBJ
=unexsol.o
6994 ## Let `ld' find image libs and similar things in /usr/local/lib.
6995 ## The system compiler, GCC, has apparently been modified to not
6996 ## look there, contrary to what a stock GCC would do.
6997 LD_SWITCH_SYSTEM
=-L/usr
/local
/lib
7001 ## cpp test was "ifdef __mips__", but presumably this is equivalent...
7002 case $host_cpu in mips
*) LD_SWITCH_SYSTEM
="-G 0";; esac
7006 LD_SWITCH_SYSTEM
="-Wl,-rpath,/usr/pkg/lib -L/usr/pkg/lib -Wl,-rpath,/usr/local/lib -L/usr/local/lib"
7010 ## Han Boetes <han@mijncomputer.nl> says this is necessary,
7011 ## otherwise Emacs dumps core on elf systems.
7012 LD_SWITCH_SYSTEM
="-Z"
7017 ac_link
="$ac_link $LD_SWITCH_SYSTEM"
7019 ## This setting of LD_SWITCH_SYSTEM references LD_SWITCH_X_SITE_AUX,
7020 ## which has not been defined yet. When this was handled with cpp,
7021 ## it was expanded to null when configure sourced the s/*.h file.
7022 ## Thus LD_SWITCH_SYSTEM had different values in configure and the Makefiles.
7023 ## FIXME it would be cleaner to put this in LD_SWITCH_SYSTEM_TEMACS
7024 ## (or somesuch), but because it is supposed to go at the _front_
7025 ## of LD_SWITCH_SYSTEM, we cannot do that in exactly the same way.
7026 ## Compare with the gnu-linux case below, which added to the end
7027 ## of LD_SWITCH_SYSTEM, and so can instead go at the front of
7028 ## LD_SWITCH_SYSTEM_TEMACS.
7031 ## _AUX_RPATH is like _AUX, but uses -rpath instead of -R.
7032 LD_SWITCH_SYSTEM
="\$(LD_SWITCH_X_SITE_AUX_RPATH) $LD_SWITCH_SYSTEM" ;;
7037 if test "$machine" = "alpha"; then
7038 ac_fn_c_check_decl
"$LINENO" "__ELF__" "ac_cv_have_decl___ELF__" "$ac_includes_default"
7039 if test "x$ac_cv_have_decl___ELF__" = xyes
; then :
7043 if test "$ac_cv_have_decl___ELF__" = "yes"; then
7044 ## With ELF, make sure that all common symbols get allocated to in the
7045 ## data section. Otherwise, the dump of temacs may miss variables in
7046 ## the shared library that have been initialized. For example, with
7047 ## GNU libc, __malloc_initialized would normally be resolved to the
7048 ## shared library's .bss section, which is fatal.
7049 if test "x$GCC" = "xyes"; then
7050 C_SWITCH_MACHINE
="-fno-common"
7052 as_fn_error $?
"What gives? Fix me if DEC Unix supports ELF now." "$LINENO" 5
7055 UNEXEC_OBJ
=unexalpha.o
7063 ## Some programs in src produce warnings saying certain subprograms
7064 ## are too complex and need a MAXMEM value greater than 2000 for
7065 ## additional optimization. --nils@exp-math.uni-essen.de
7066 test "$opsys" = "aix4.2" && test "x$GCC" != "xyes" && \
7067 C_SWITCH_SYSTEM
="-ma -qmaxmem=4000"
7068 ## gnu-linux might need -D_BSD_SOURCE on old libc5 systems.
7069 ## It is redundant in glibc2, since we define _GNU_SOURCE.
7075 ## IBM's X11R5 uses -lIM and -liconv in AIX 3.2.2.
7076 aix4-2
) LIBS_SYSTEM
="-lrts -lIM -liconv" ;;
7078 freebsd
) LIBS_SYSTEM
="-lutil" ;;
7080 hpux
*) LIBS_SYSTEM
="-l:libdld.sl" ;;
7082 sol2
*) LIBS_SYSTEM
="-lsocket -lnsl" ;;
7084 ## Motif needs -lgen.
7085 unixware
) LIBS_SYSTEM
="-lsocket -lnsl -lelf -lgen" ;;
7090 ### Make sure subsequent tests use flags consistent with the build flags.
7092 if test x
"${OVERRIDE_CPPFLAGS}" != x
; then
7093 CPPFLAGS
="${OVERRIDE_CPPFLAGS}"
7095 CPPFLAGS
="$C_SWITCH_SYSTEM $C_SWITCH_MACHINE $CPPFLAGS"
7098 # Check whether --enable-largefile was given.
7099 if test "${enable_largefile+set}" = set; then :
7100 enableval
=$enable_largefile;
7103 if test "$enable_largefile" != no
; then
7105 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for special C compiler options needed for large files" >&5
7106 $as_echo_n "checking for special C compiler options needed for large files... " >&6; }
7107 if ${ac_cv_sys_largefile_CC+:} false
; then :
7108 $as_echo_n "(cached) " >&6
7110 ac_cv_sys_largefile_CC
=no
7111 if test "$GCC" != yes; then
7114 # IRIX 6.2 and later do not support large files by default,
7115 # so use the C compiler's -n32 option if that helps.
7116 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
7117 /* end confdefs.h. */
7118 #include <sys/types.h>
7119 /* Check that off_t can represent 2**63 - 1 correctly.
7120 We can't simply define LARGE_OFF_T to be 9223372036854775807,
7121 since some C++ compilers masquerading as C compilers
7122 incorrectly reject 9223372036854775807. */
7123 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
7124 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
7125 && LARGE_OFF_T % 2147483647 == 1)
7135 if ac_fn_c_try_compile
"$LINENO"; then :
7138 rm -f core conftest.err conftest.
$ac_objext
7140 if ac_fn_c_try_compile
"$LINENO"; then :
7141 ac_cv_sys_largefile_CC
=' -n32'; break
7143 rm -f core conftest.err conftest.
$ac_objext
7147 rm -f conftest.
$ac_ext
7150 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_largefile_CC" >&5
7151 $as_echo "$ac_cv_sys_largefile_CC" >&6; }
7152 if test "$ac_cv_sys_largefile_CC" != no
; then
7153 CC
=$CC$ac_cv_sys_largefile_CC
7156 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _FILE_OFFSET_BITS value needed for large files" >&5
7157 $as_echo_n "checking for _FILE_OFFSET_BITS value needed for large files... " >&6; }
7158 if ${ac_cv_sys_file_offset_bits+:} false
; then :
7159 $as_echo_n "(cached) " >&6
7162 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
7163 /* end confdefs.h. */
7164 #include <sys/types.h>
7165 /* Check that off_t can represent 2**63 - 1 correctly.
7166 We can't simply define LARGE_OFF_T to be 9223372036854775807,
7167 since some C++ compilers masquerading as C compilers
7168 incorrectly reject 9223372036854775807. */
7169 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
7170 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
7171 && LARGE_OFF_T % 2147483647 == 1)
7181 if ac_fn_c_try_compile
"$LINENO"; then :
7182 ac_cv_sys_file_offset_bits
=no
; break
7184 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
7185 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
7186 /* end confdefs.h. */
7187 #define _FILE_OFFSET_BITS 64
7188 #include <sys/types.h>
7189 /* Check that off_t can represent 2**63 - 1 correctly.
7190 We can't simply define LARGE_OFF_T to be 9223372036854775807,
7191 since some C++ compilers masquerading as C compilers
7192 incorrectly reject 9223372036854775807. */
7193 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
7194 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
7195 && LARGE_OFF_T % 2147483647 == 1)
7205 if ac_fn_c_try_compile
"$LINENO"; then :
7206 ac_cv_sys_file_offset_bits
=64; break
7208 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
7209 ac_cv_sys_file_offset_bits
=unknown
7213 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_file_offset_bits" >&5
7214 $as_echo "$ac_cv_sys_file_offset_bits" >&6; }
7215 case $ac_cv_sys_file_offset_bits in #(
7218 cat >>confdefs.h
<<_ACEOF
7219 #define _FILE_OFFSET_BITS $ac_cv_sys_file_offset_bits
7224 if test $ac_cv_sys_file_offset_bits = unknown
; then
7225 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _LARGE_FILES value needed for large files" >&5
7226 $as_echo_n "checking for _LARGE_FILES value needed for large files... " >&6; }
7227 if ${ac_cv_sys_large_files+:} false
; then :
7228 $as_echo_n "(cached) " >&6
7231 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
7232 /* end confdefs.h. */
7233 #include <sys/types.h>
7234 /* Check that off_t can represent 2**63 - 1 correctly.
7235 We can't simply define LARGE_OFF_T to be 9223372036854775807,
7236 since some C++ compilers masquerading as C compilers
7237 incorrectly reject 9223372036854775807. */
7238 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
7239 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
7240 && LARGE_OFF_T % 2147483647 == 1)
7250 if ac_fn_c_try_compile
"$LINENO"; then :
7251 ac_cv_sys_large_files
=no
; break
7253 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
7254 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
7255 /* end confdefs.h. */
7256 #define _LARGE_FILES 1
7257 #include <sys/types.h>
7258 /* Check that off_t can represent 2**63 - 1 correctly.
7259 We can't simply define LARGE_OFF_T to be 9223372036854775807,
7260 since some C++ compilers masquerading as C compilers
7261 incorrectly reject 9223372036854775807. */
7262 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
7263 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
7264 && LARGE_OFF_T % 2147483647 == 1)
7274 if ac_fn_c_try_compile
"$LINENO"; then :
7275 ac_cv_sys_large_files
=1; break
7277 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
7278 ac_cv_sys_large_files
=unknown
7282 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_large_files" >&5
7283 $as_echo "$ac_cv_sys_large_files" >&6; }
7284 case $ac_cv_sys_large_files in #(
7287 cat >>confdefs.h
<<_ACEOF
7288 #define _LARGE_FILES $ac_cv_sys_large_files
7298 ## If user specified a crt-dir, use that unconditionally.
7299 if test "X$CRT_DIR" = "X"; then
7301 case "$canonical" in
7302 x86_64-
*-linux-gnu* | s390x-
*-linux-gnu*)
7303 ## On x86-64 and s390x GNU/Linux distributions, the standard library
7304 ## can be in a variety of places. We only try /usr/lib64 and /usr/lib.
7305 ## For anything else (eg /usr/lib32), it is up the user to specify
7306 ## the location (bug#5655).
7307 ## Test for crtn.o, not just the directory, because sometimes the
7308 ## directory exists but does not have the relevant files (bug#1287).
7309 ## FIXME better to test for binary compatibility somehow.
7310 test -e /usr
/lib64
/crtn.o
&& CRT_DIR
=/usr
/lib64
7313 powerpc64-
*-linux-gnu* | sparc64-
*-linux-gnu*) CRT_DIR
=/usr
/lib64
;;
7317 hpux10-20
) CRT_DIR
=/lib
;;
7320 ## Default is /usr/lib.
7321 test "X$CRT_DIR" = "X" && CRT_DIR
=/usr
/lib
7325 ## Some platforms don't use any of these files, so it is not
7326 ## appropriate to put this test outside the if block.
7327 test -e $CRT_DIR/crtn.o ||
test -e $CRT_DIR/crt0.o || \
7328 as_fn_error $?
"crt*.o not found in specified location." "$LINENO" 5
7341 START_FILES
='pre-crt0.o'
7344 ## Adding -lm confuses the dynamic linker, so omit it.
7346 START_FILES
='pre-crt0.o'
7349 LIB_STANDARD
='-lgcc -lc -lgcc $(CRT_DIR)/crtend.o $(CRT_DIR)/crtn.o'
7350 START_FILES
='pre-crt0.o $(CRT_DIR)/crt1.o $(CRT_DIR)/crti.o $(CRT_DIR)/crtbegin.o'
7352 gnu-linux | gnu-kfreebsd
)
7353 LIB_STANDARD
='-lgcc -lc -lgcc $(CRT_DIR)/crtn.o'
7354 START_FILES
='pre-crt0.o $(CRT_DIR)/crt1.o $(CRT_DIR)/crti.o'
7356 hpux10-20 | hpux11
)
7358 START_FILES
='pre-crt0.o $(CRT_DIR)/crt0.o'
7361 if test -f $CRT_DIR/crti.o
; then
7362 LIB_STANDARD
='-lgcc -lc -lgcc $(CRT_DIR)/crtend.o $(CRT_DIR)/crtn.o'
7363 START_FILES
='pre-crt0.o $(CRT_DIR)/crt0.o $(CRT_DIR)/crti.o $(CRT_DIR)/crtbegin.o'
7365 LIB_STANDARD
='-lgcc -lc -lgcc $(CRT_DIR)/crtend.o'
7366 START_FILES
='pre-crt0.o $(CRT_DIR)/crt0.o $(CRT_DIR)/crtbegin.o'
7377 if test "${with_sound}" != "no"; then
7378 # Sound support for GNU/Linux and the free BSDs.
7379 for ac_header
in machine
/soundcard.h sys
/soundcard.h soundcard.h
7381 as_ac_Header
=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
7382 ac_fn_c_check_header_mongrel
"$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
7383 if eval test \"x\$
"$as_ac_Header"\" = x
"yes"; then :
7384 cat >>confdefs.h
<<_ACEOF
7385 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
7387 have_sound_header
=yes
7392 # Emulation library used on NetBSD.
7393 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _oss_ioctl in -lossaudio" >&5
7394 $as_echo_n "checking for _oss_ioctl in -lossaudio... " >&6; }
7395 if ${ac_cv_lib_ossaudio__oss_ioctl+:} false
; then :
7396 $as_echo_n "(cached) " >&6
7398 ac_check_lib_save_LIBS
=$LIBS
7399 LIBS
="-lossaudio $LIBS"
7400 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
7401 /* end confdefs.h. */
7403 /* Override any GCC internal prototype to avoid an error.
7404 Use char because int might match the return type of a GCC
7405 builtin and then its argument prototype would still apply. */
7413 return _oss_ioctl ();
7418 if ac_fn_c_try_link
"$LINENO"; then :
7419 ac_cv_lib_ossaudio__oss_ioctl
=yes
7421 ac_cv_lib_ossaudio__oss_ioctl
=no
7423 rm -f core conftest.err conftest.
$ac_objext \
7424 conftest
$ac_exeext conftest.
$ac_ext
7425 LIBS
=$ac_check_lib_save_LIBS
7427 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_ossaudio__oss_ioctl" >&5
7428 $as_echo "$ac_cv_lib_ossaudio__oss_ioctl" >&6; }
7429 if test "x$ac_cv_lib_ossaudio__oss_ioctl" = xyes
; then :
7438 ALSA_MODULES
="alsa >= $ALSA_REQUIRED"
7442 # Extract the first word of "pkg-config", so it can be a program name with args.
7443 set dummy pkg-config
; ac_word
=$2
7444 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7445 $as_echo_n "checking for $ac_word... " >&6; }
7446 if ${ac_cv_path_PKG_CONFIG+:} false
; then :
7447 $as_echo_n "(cached) " >&6
7451 ac_cv_path_PKG_CONFIG
="$PKG_CONFIG" # Let the user override the test with a path.
7454 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
7458 test -z "$as_dir" && as_dir
=.
7459 for ac_exec_ext
in '' $ac_executable_extensions; do
7460 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7461 ac_cv_path_PKG_CONFIG
="$as_dir/$ac_word$ac_exec_ext"
7462 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7469 test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG
="no"
7473 PKG_CONFIG
=$ac_cv_path_PKG_CONFIG
7474 if test -n "$PKG_CONFIG"; then
7475 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5
7476 $as_echo "$PKG_CONFIG" >&6; }
7478 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7479 $as_echo "no" >&6; }
7484 if test "$PKG_CONFIG" = "no" ; then
7487 PKG_CONFIG_MIN_VERSION
=0.9.0
7488 if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
7489 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ALSA_MODULES" >&5
7490 $as_echo_n "checking for $ALSA_MODULES... " >&6; }
7492 if $PKG_CONFIG --exists "$ALSA_MODULES" 2>&5; then
7493 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
7494 $as_echo "yes" >&6; }
7497 { $as_echo "$as_me:${as_lineno-$LINENO}: checking ALSA_CFLAGS" >&5
7498 $as_echo_n "checking ALSA_CFLAGS... " >&6; }
7499 ALSA_CFLAGS
=`$PKG_CONFIG --cflags "$ALSA_MODULES"|sed -e 's,///*,/,g'`
7500 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ALSA_CFLAGS" >&5
7501 $as_echo "$ALSA_CFLAGS" >&6; }
7503 { $as_echo "$as_me:${as_lineno-$LINENO}: checking ALSA_LIBS" >&5
7504 $as_echo_n "checking ALSA_LIBS... " >&6; }
7505 ALSA_LIBS
=`$PKG_CONFIG --libs "$ALSA_MODULES"|sed -e 's,///*,/,g'`
7506 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ALSA_LIBS" >&5
7507 $as_echo "$ALSA_LIBS" >&6; }
7509 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7510 $as_echo "no" >&6; }
7513 ## If we have a custom action on failure, don't print errors, but
7514 ## do set a variable so people can do so.
7515 ALSA_PKG_ERRORS
=`$PKG_CONFIG --errors-to-stdout --print-errors "$ALSA_MODULES"`
7522 echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
7523 echo "*** See http://www.freedesktop.org/software/pkgconfig"
7527 if test $succeeded = yes; then
7533 if test $HAVE_ALSA = yes; then
7534 SAVE_CFLAGS
="$CFLAGS"
7535 SAVE_LDFLAGS
="$LDFLAGS"
7536 CFLAGS
="$ALSA_CFLAGS $CFLAGS"
7537 LDFLAGS
="$ALSA_LIBS $LDFLAGS"
7538 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
7539 /* end confdefs.h. */
7540 #include <asoundlib.h>
7544 snd_lib_error_set_handler (0);
7549 if ac_fn_c_try_compile
"$LINENO"; then :
7550 emacs_alsa_normal
=yes
7552 emacs_alsa_normal
=no
7554 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
7555 if test "$emacs_alsa_normal" != yes; then
7556 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
7557 /* end confdefs.h. */
7558 #include <alsa/asoundlib.h>
7562 snd_lib_error_set_handler (0);
7567 if ac_fn_c_try_compile
"$LINENO"; then :
7568 emacs_alsa_subdir
=yes
7570 emacs_alsa_subdir
=no
7572 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
7573 if test "$emacs_alsa_subdir" != yes; then
7574 as_fn_error $?
"pkg-config found alsa, but it does not compile. See config.log for error messages." "$LINENO" 5
7576 ALSA_CFLAGS
="$ALSA_CFLAGS -DALSA_SUBDIR_INCLUDE"
7579 CFLAGS
="$SAVE_CFLAGS"
7580 LDFLAGS
="$SAVE_LDFLAGS"
7581 LIBSOUND
="$LIBSOUND $ALSA_LIBS"
7582 CFLAGS_SOUND
="$CFLAGS_SOUND $ALSA_CFLAGS"
7584 $as_echo "#define HAVE_ALSA 1" >>confdefs.h
7588 if test x
$have_sound_header = xyes ||
test $HAVE_ALSA = yes; then
7590 gnu-linux|freebsd|netbsd
)
7592 $as_echo "#define HAVE_SOUND 1" >>confdefs.h
7601 for ac_header
in sys
/select.h sys
/time.h unistd.h utime.h \
7602 linux
/version.h sys
/systeminfo.h limits.h \
7603 stdio_ext.h fcntl.h coff.h pty.h sys
/mman.h \
7604 sys
/vlimit.h sys
/resource.h locale.h sys
/_mbstate_t.h \
7605 sys
/utsname.h
pwd.h utmp.h dirent.h util.h
7607 as_ac_Header
=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
7608 ac_fn_c_check_header_mongrel
"$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
7609 if eval test \"x\$
"$as_ac_Header"\" = x
"yes"; then :
7610 cat >>confdefs.h
<<_ACEOF
7611 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
7619 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if personality LINUX32 can be set" >&5
7620 $as_echo_n "checking if personality LINUX32 can be set... " >&6; }
7621 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
7622 /* end confdefs.h. */
7623 #include <sys/personality.h>
7627 personality (PER_LINUX32)
7632 if ac_fn_c_try_compile
"$LINENO"; then :
7633 emacs_cv_personality_linux32
=yes
7635 emacs_cv_personality_linux32
=no
7637 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
7638 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $emacs_cv_personality_linux32" >&5
7639 $as_echo "$emacs_cv_personality_linux32" >&6; }
7641 if test $emacs_cv_personality_linux32 = yes; then
7643 $as_echo "#define HAVE_PERSONALITY_LINUX32 1" >>confdefs.h
7647 for ac_header
in term.h
7649 ac_fn_c_check_header_preproc
"$LINENO" "term.h" "ac_cv_header_term_h"
7650 if test "x$ac_cv_header_term_h" = xyes
; then :
7651 cat >>confdefs.h
<<_ACEOF
7652 #define HAVE_TERM_H 1
7659 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
7660 $as_echo_n "checking for ANSI C header files... " >&6; }
7661 if ${ac_cv_header_stdc+:} false
; then :
7662 $as_echo_n "(cached) " >&6
7664 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
7665 /* end confdefs.h. */
7679 if ac_fn_c_try_compile
"$LINENO"; then :
7680 ac_cv_header_stdc
=yes
7682 ac_cv_header_stdc
=no
7684 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
7686 if test $ac_cv_header_stdc = yes; then
7687 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
7688 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
7689 /* end confdefs.h. */
7693 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
7694 $EGREP "memchr" >/dev
/null
2>&1; then :
7697 ac_cv_header_stdc
=no
7703 if test $ac_cv_header_stdc = yes; then
7704 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
7705 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
7706 /* end confdefs.h. */
7710 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
7711 $EGREP "free" >/dev
/null
2>&1; then :
7714 ac_cv_header_stdc
=no
7720 if test $ac_cv_header_stdc = yes; then
7721 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
7722 if test "$cross_compiling" = yes; then :
7725 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
7726 /* end confdefs.h. */
7729 #if ((' ' & 0x0FF) == 0x020)
7730 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
7731 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
7733 # define ISLOWER(c) \
7734 (('a' <= (c) && (c) <= 'i') \
7735 || ('j' <= (c) && (c) <= 'r') \
7736 || ('s' <= (c) && (c) <= 'z'))
7737 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
7740 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
7745 for (i = 0; i < 256; i++)
7746 if (XOR (islower (i), ISLOWER (i))
7747 || toupper (i) != TOUPPER (i))
7752 if ac_fn_c_try_run
"$LINENO"; then :
7755 ac_cv_header_stdc
=no
7757 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
7758 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
7763 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
7764 $as_echo "$ac_cv_header_stdc" >&6; }
7765 if test $ac_cv_header_stdc = yes; then
7767 $as_echo "#define STDC_HEADERS 1" >>confdefs.h
7771 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether time.h and sys/time.h may both be included" >&5
7772 $as_echo_n "checking whether time.h and sys/time.h may both be included... " >&6; }
7773 if ${ac_cv_header_time+:} false
; then :
7774 $as_echo_n "(cached) " >&6
7776 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
7777 /* end confdefs.h. */
7778 #include <sys/types.h>
7779 #include <sys/time.h>
7785 if ((struct tm *) 0)
7791 if ac_fn_c_try_compile
"$LINENO"; then :
7792 ac_cv_header_time
=yes
7794 ac_cv_header_time
=no
7796 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
7798 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_time" >&5
7799 $as_echo "$ac_cv_header_time" >&6; }
7800 if test $ac_cv_header_time = yes; then
7802 $as_echo "#define TIME_WITH_SYS_TIME 1" >>confdefs.h
7806 ac_fn_c_check_decl
"$LINENO" "sys_siglist" "ac_cv_have_decl_sys_siglist" "$ac_includes_default"
7807 if test "x$ac_cv_have_decl_sys_siglist" = xyes
; then :
7813 cat >>confdefs.h
<<_ACEOF
7814 #define HAVE_DECL_SYS_SIGLIST $ac_have_decl
7817 if test $ac_cv_have_decl_sys_siglist != yes; then
7818 # For Tru64, at least:
7819 ac_fn_c_check_decl
"$LINENO" "__sys_siglist" "ac_cv_have_decl___sys_siglist" "$ac_includes_default"
7820 if test "x$ac_cv_have_decl___sys_siglist" = xyes
; then :
7826 cat >>confdefs.h
<<_ACEOF
7827 #define HAVE_DECL___SYS_SIGLIST $ac_have_decl
7830 if test $ac_cv_have_decl___sys_siglist = yes; then
7832 $as_echo "#define sys_siglist __sys_siglist" >>confdefs.h
7836 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sys/wait.h that is POSIX.1 compatible" >&5
7837 $as_echo_n "checking for sys/wait.h that is POSIX.1 compatible... " >&6; }
7838 if ${ac_cv_header_sys_wait_h+:} false
; then :
7839 $as_echo_n "(cached) " >&6
7841 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
7842 /* end confdefs.h. */
7843 #include <sys/types.h>
7844 #include <sys/wait.h>
7846 # define WEXITSTATUS(stat_val) ((unsigned int) (stat_val) >> 8)
7849 # define WIFEXITED(stat_val) (((stat_val) & 255) == 0)
7857 s = WIFEXITED (s) ? WEXITSTATUS (s) : 1;
7862 if ac_fn_c_try_compile
"$LINENO"; then :
7863 ac_cv_header_sys_wait_h
=yes
7865 ac_cv_header_sys_wait_h
=no
7867 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
7869 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_sys_wait_h" >&5
7870 $as_echo "$ac_cv_header_sys_wait_h" >&6; }
7871 if test $ac_cv_header_sys_wait_h = yes; then
7873 $as_echo "#define HAVE_SYS_WAIT_H 1" >>confdefs.h
7878 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for struct utimbuf" >&5
7879 $as_echo_n "checking for struct utimbuf... " >&6; }
7880 if ${emacs_cv_struct_utimbuf+:} false
; then :
7881 $as_echo_n "(cached) " >&6
7883 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
7884 /* end confdefs.h. */
7885 #ifdef TIME_WITH_SYS_TIME
7886 #include <sys/time.h>
7889 #ifdef HAVE_SYS_TIME_H
7890 #include <sys/time.h>
7901 static struct utimbuf x; x.actime = x.modtime;
7906 if ac_fn_c_try_compile
"$LINENO"; then :
7907 emacs_cv_struct_utimbuf
=yes
7909 emacs_cv_struct_utimbuf
=no
7911 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
7913 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $emacs_cv_struct_utimbuf" >&5
7914 $as_echo "$emacs_cv_struct_utimbuf" >&6; }
7915 if test $emacs_cv_struct_utimbuf = yes; then
7917 $as_echo "#define HAVE_STRUCT_UTIMBUF 1" >>confdefs.h
7921 { $as_echo "$as_me:${as_lineno-$LINENO}: checking return type of signal handlers" >&5
7922 $as_echo_n "checking return type of signal handlers... " >&6; }
7923 if ${ac_cv_type_signal+:} false
; then :
7924 $as_echo_n "(cached) " >&6
7926 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
7927 /* end confdefs.h. */
7928 #include <sys/types.h>
7934 return *(signal (0, 0)) (0) == 1;
7939 if ac_fn_c_try_compile
"$LINENO"; then :
7940 ac_cv_type_signal
=int
7942 ac_cv_type_signal
=void
7944 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
7946 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_signal" >&5
7947 $as_echo "$ac_cv_type_signal" >&6; }
7949 cat >>confdefs.h
<<_ACEOF
7950 #define RETSIGTYPE $ac_cv_type_signal
7955 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for speed_t" >&5
7956 $as_echo_n "checking for speed_t... " >&6; }
7957 if ${emacs_cv_speed_t+:} false
; then :
7958 $as_echo_n "(cached) " >&6
7960 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
7961 /* end confdefs.h. */
7962 #include <termios.h>
7971 if ac_fn_c_try_compile
"$LINENO"; then :
7972 emacs_cv_speed_t
=yes
7976 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
7978 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $emacs_cv_speed_t" >&5
7979 $as_echo "$emacs_cv_speed_t" >&6; }
7980 if test $emacs_cv_speed_t = yes; then
7982 $as_echo "#define HAVE_SPEED_T 1" >>confdefs.h
7986 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for struct timeval" >&5
7987 $as_echo_n "checking for struct timeval... " >&6; }
7988 if ${emacs_cv_struct_timeval+:} false
; then :
7989 $as_echo_n "(cached) " >&6
7991 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
7992 /* end confdefs.h. */
7993 #ifdef TIME_WITH_SYS_TIME
7994 #include <sys/time.h>
7997 #ifdef HAVE_SYS_TIME_H
7998 #include <sys/time.h>
8006 static struct timeval x; x.tv_sec = x.tv_usec;
8011 if ac_fn_c_try_compile
"$LINENO"; then :
8012 emacs_cv_struct_timeval
=yes
8014 emacs_cv_struct_timeval
=no
8016 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
8018 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $emacs_cv_struct_timeval" >&5
8019 $as_echo "$emacs_cv_struct_timeval" >&6; }
8020 HAVE_TIMEVAL
=$emacs_cv_struct_timeval
8021 if test $emacs_cv_struct_timeval = yes; then
8023 $as_echo "#define HAVE_TIMEVAL 1" >>confdefs.h
8027 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for struct exception" >&5
8028 $as_echo_n "checking for struct exception... " >&6; }
8029 if ${emacs_cv_struct_exception+:} false
; then :
8030 $as_echo_n "(cached) " >&6
8032 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
8033 /* end confdefs.h. */
8038 static struct exception x; x.arg1 = x.arg2 = x.retval; x.name = ""; x.type = 1;
8043 if ac_fn_c_try_compile
"$LINENO"; then :
8044 emacs_cv_struct_exception
=yes
8046 emacs_cv_struct_exception
=no
8048 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
8050 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $emacs_cv_struct_exception" >&5
8051 $as_echo "$emacs_cv_struct_exception" >&6; }
8052 HAVE_EXCEPTION
=$emacs_cv_struct_exception
8053 if test $emacs_cv_struct_exception != yes; then
8055 $as_echo "#define NO_MATHERR 1" >>confdefs.h
8059 for ac_header
in net
/if.h
8061 ac_fn_c_check_header_compile
"$LINENO" "net/if.h" "ac_cv_header_net_if_h" "$ac_includes_default
8062 #if HAVE_SYS_SOCKET_H
8063 #include <sys/socket.h>
8066 if test "x$ac_cv_header_net_if_h" = xyes
; then :
8067 cat >>confdefs.h
<<_ACEOF
8068 #define HAVE_NET_IF_H 1
8076 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether struct tm is in sys/time.h or time.h" >&5
8077 $as_echo_n "checking whether struct tm is in sys/time.h or time.h... " >&6; }
8078 if ${ac_cv_struct_tm+:} false
; then :
8079 $as_echo_n "(cached) " >&6
8081 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
8082 /* end confdefs.h. */
8083 #include <sys/types.h>
8090 int *p = &tm.tm_sec;
8096 if ac_fn_c_try_compile
"$LINENO"; then :
8097 ac_cv_struct_tm
=time.h
8099 ac_cv_struct_tm
=sys
/time.h
8101 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
8103 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_struct_tm" >&5
8104 $as_echo "$ac_cv_struct_tm" >&6; }
8105 if test $ac_cv_struct_tm = sys
/time.h
; then
8107 $as_echo "#define TM_IN_SYS_TIME 1" >>confdefs.h
8111 ac_fn_c_check_member
"$LINENO" "struct tm" "tm_zone" "ac_cv_member_struct_tm_tm_zone" "#include <sys/types.h>
8112 #include <$ac_cv_struct_tm>
8115 if test "x$ac_cv_member_struct_tm_tm_zone" = xyes
; then :
8117 cat >>confdefs.h
<<_ACEOF
8118 #define HAVE_STRUCT_TM_TM_ZONE 1
8124 if test "$ac_cv_member_struct_tm_tm_zone" = yes; then
8126 $as_echo "#define HAVE_TM_ZONE 1" >>confdefs.h
8129 ac_fn_c_check_decl
"$LINENO" "tzname" "ac_cv_have_decl_tzname" "#include <time.h>
8131 if test "x$ac_cv_have_decl_tzname" = xyes
; then :
8137 cat >>confdefs.h
<<_ACEOF
8138 #define HAVE_DECL_TZNAME $ac_have_decl
8141 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for tzname" >&5
8142 $as_echo_n "checking for tzname... " >&6; }
8143 if ${ac_cv_var_tzname+:} false
; then :
8144 $as_echo_n "(cached) " >&6
8146 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
8147 /* end confdefs.h. */
8149 #if !HAVE_DECL_TZNAME
8150 extern char *tzname[];
8156 return tzname[0][0];
8161 if ac_fn_c_try_link
"$LINENO"; then :
8162 ac_cv_var_tzname
=yes
8166 rm -f core conftest.err conftest.
$ac_objext \
8167 conftest
$ac_exeext conftest.
$ac_ext
8169 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_var_tzname" >&5
8170 $as_echo "$ac_cv_var_tzname" >&6; }
8171 if test $ac_cv_var_tzname = yes; then
8173 $as_echo "#define HAVE_TZNAME 1" >>confdefs.h
8178 ac_fn_c_check_member
"$LINENO" "struct tm" "tm_gmtoff" "ac_cv_member_struct_tm_tm_gmtoff" "#include <time.h>
8180 if test "x$ac_cv_member_struct_tm_tm_gmtoff" = xyes
; then :
8182 $as_echo "#define HAVE_TM_GMTOFF 1" >>confdefs.h
8186 ac_fn_c_check_member
"$LINENO" "struct ifreq" "ifr_flags" "ac_cv_member_struct_ifreq_ifr_flags" "$ac_includes_default
8187 #if HAVE_SYS_SOCKET_H
8188 #include <sys/socket.h>
8194 if test "x$ac_cv_member_struct_ifreq_ifr_flags" = xyes
; then :
8196 cat >>confdefs.h
<<_ACEOF
8197 #define HAVE_STRUCT_IFREQ_IFR_FLAGS 1
8202 ac_fn_c_check_member
"$LINENO" "struct ifreq" "ifr_hwaddr" "ac_cv_member_struct_ifreq_ifr_hwaddr" "$ac_includes_default
8203 #if HAVE_SYS_SOCKET_H
8204 #include <sys/socket.h>
8210 if test "x$ac_cv_member_struct_ifreq_ifr_hwaddr" = xyes
; then :
8212 cat >>confdefs.h
<<_ACEOF
8213 #define HAVE_STRUCT_IFREQ_IFR_HWADDR 1
8218 ac_fn_c_check_member
"$LINENO" "struct ifreq" "ifr_netmask" "ac_cv_member_struct_ifreq_ifr_netmask" "$ac_includes_default
8219 #if HAVE_SYS_SOCKET_H
8220 #include <sys/socket.h>
8226 if test "x$ac_cv_member_struct_ifreq_ifr_netmask" = xyes
; then :
8228 cat >>confdefs.h
<<_ACEOF
8229 #define HAVE_STRUCT_IFREQ_IFR_NETMASK 1
8234 ac_fn_c_check_member
"$LINENO" "struct ifreq" "ifr_broadaddr" "ac_cv_member_struct_ifreq_ifr_broadaddr" "$ac_includes_default
8235 #if HAVE_SYS_SOCKET_H
8236 #include <sys/socket.h>
8242 if test "x$ac_cv_member_struct_ifreq_ifr_broadaddr" = xyes
; then :
8244 cat >>confdefs.h
<<_ACEOF
8245 #define HAVE_STRUCT_IFREQ_IFR_BROADADDR 1
8250 ac_fn_c_check_member
"$LINENO" "struct ifreq" "ifr_addr" "ac_cv_member_struct_ifreq_ifr_addr" "$ac_includes_default
8251 #if HAVE_SYS_SOCKET_H
8252 #include <sys/socket.h>
8258 if test "x$ac_cv_member_struct_ifreq_ifr_addr" = xyes
; then :
8260 cat >>confdefs.h
<<_ACEOF
8261 #define HAVE_STRUCT_IFREQ_IFR_ADDR 1
8269 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for function prototypes" >&5
8270 $as_echo_n "checking for function prototypes... " >&6; }
8271 if test "$ac_cv_prog_cc_c89" != no
; then
8272 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
8273 $as_echo "yes" >&6; }
8275 $as_echo "#define PROTOTYPES 1" >>confdefs.h
8278 $as_echo "#define __PROTOTYPES 1" >>confdefs.h
8281 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8282 $as_echo "no" >&6; }
8285 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working volatile" >&5
8286 $as_echo_n "checking for working volatile... " >&6; }
8287 if ${ac_cv_c_volatile+:} false
; then :
8288 $as_echo_n "(cached) " >&6
8290 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
8291 /* end confdefs.h. */
8298 int * volatile y = (int *) 0;
8304 if ac_fn_c_try_compile
"$LINENO"; then :
8305 ac_cv_c_volatile
=yes
8309 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
8311 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_volatile" >&5
8312 $as_echo "$ac_cv_c_volatile" >&6; }
8313 if test $ac_cv_c_volatile = no
; then
8315 $as_echo "#define volatile /**/" >>confdefs.h
8319 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for an ANSI C-conforming const" >&5
8320 $as_echo_n "checking for an ANSI C-conforming const... " >&6; }
8321 if ${ac_cv_c_const+:} false
; then :
8322 $as_echo_n "(cached) " >&6
8324 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
8325 /* end confdefs.h. */
8330 /* FIXME: Include the comments suggested by Paul. */
8332 /* Ultrix mips cc rejects this. */
8333 typedef int charset[2];
8335 /* SunOS 4.1.1 cc rejects this. */
8336 char const *const *pcpcc;
8338 /* NEC SVR4.0.2 mips cc rejects this. */
8339 struct point {int x, y;};
8340 static struct point const zero = {0,0};
8341 /* AIX XL C 1.02.0.0 rejects this.
8342 It does not let you subtract one const X* pointer from another in
8343 an arm of an if-expression whose if-part is not a constant
8345 const char *g = "string";
8346 pcpcc = &g + (g ? g-g : 0);
8347 /* HPUX 7.0 cc rejects these. */
8349 ppc = (char**) pcpcc;
8350 pcpcc = (char const *const *) ppc;
8351 { /* SCO 3.2v4 cc rejects this. */
8353 char const *s = 0 ? (char *) 0 : (char const *) 0;
8358 { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
8360 const int *foo = &x[0];
8363 { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
8364 typedef const int *iptr;
8368 { /* AIX XL C 1.02.0.0 rejects this saying
8369 "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
8370 struct s { int j; const int *ap[3]; };
8371 struct s *b; b->j = 5;
8373 { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
8377 return !cs[0] && !zero.x;
8384 if ac_fn_c_try_compile
"$LINENO"; then :
8389 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
8391 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_const" >&5
8392 $as_echo "$ac_cv_c_const" >&6; }
8393 if test $ac_cv_c_const = no
; then
8395 $as_echo "#define const /**/" >>confdefs.h
8399 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for void * support" >&5
8400 $as_echo_n "checking for void * support... " >&6; }
8401 if ${emacs_cv_void_star+:} false
; then :
8402 $as_echo_n "(cached) " >&6
8404 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
8405 /* end confdefs.h. */
8415 if ac_fn_c_try_compile
"$LINENO"; then :
8416 emacs_cv_void_star
=yes
8418 emacs_cv_void_star
=no
8420 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
8422 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $emacs_cv_void_star" >&5
8423 $as_echo "$emacs_cv_void_star" >&6; }
8424 if test $emacs_cv_void_star = yes; then
8425 $as_echo "#define POINTER_TYPE void" >>confdefs.h
8428 $as_echo "#define POINTER_TYPE char" >>confdefs.h
8432 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether byte ordering is bigendian" >&5
8433 $as_echo_n "checking whether byte ordering is bigendian... " >&6; }
8434 if ${ac_cv_c_bigendian+:} false
; then :
8435 $as_echo_n "(cached) " >&6
8437 ac_cv_c_bigendian
=unknown
8438 # See if we're dealing with a universal compiler.
8439 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
8440 /* end confdefs.h. */
8441 #ifndef __APPLE_CC__
8442 not a universal capable compiler
8447 if ac_fn_c_try_compile
"$LINENO"; then :
8449 # Check for potential -arch flags. It is not universal unless
8450 # there are at least two -arch flags with different values.
8453 for ac_word
in $CC $CFLAGS $CPPFLAGS $LDFLAGS; do
8454 if test -n "$ac_prev"; then
8456 i?
86 | x86_64 | ppc | ppc64
)
8457 if test -z "$ac_arch" ||
test "$ac_arch" = "$ac_word"; then
8460 ac_cv_c_bigendian
=universal
8466 elif test "x$ac_word" = "x-arch"; then
8471 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
8472 if test $ac_cv_c_bigendian = unknown
; then
8473 # See if sys/param.h defines the BYTE_ORDER macro.
8474 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
8475 /* end confdefs.h. */
8476 #include <sys/types.h>
8477 #include <sys/param.h>
8482 #if ! (defined BYTE_ORDER && defined BIG_ENDIAN \
8483 && defined LITTLE_ENDIAN && BYTE_ORDER && BIG_ENDIAN \
8492 if ac_fn_c_try_compile
"$LINENO"; then :
8493 # It does; now see whether it defined to BIG_ENDIAN or not.
8494 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
8495 /* end confdefs.h. */
8496 #include <sys/types.h>
8497 #include <sys/param.h>
8502 #if BYTE_ORDER != BIG_ENDIAN
8510 if ac_fn_c_try_compile
"$LINENO"; then :
8511 ac_cv_c_bigendian
=yes
8513 ac_cv_c_bigendian
=no
8515 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
8517 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
8519 if test $ac_cv_c_bigendian = unknown
; then
8520 # See if <limits.h> defines _LITTLE_ENDIAN or _BIG_ENDIAN (e.g., Solaris).
8521 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
8522 /* end confdefs.h. */
8528 #if ! (defined _LITTLE_ENDIAN || defined _BIG_ENDIAN)
8536 if ac_fn_c_try_compile
"$LINENO"; then :
8537 # It does; now see whether it defined to _BIG_ENDIAN or not.
8538 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
8539 /* end confdefs.h. */
8553 if ac_fn_c_try_compile
"$LINENO"; then :
8554 ac_cv_c_bigendian
=yes
8556 ac_cv_c_bigendian
=no
8558 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
8560 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
8562 if test $ac_cv_c_bigendian = unknown
; then
8563 # Compile a test program.
8564 if test "$cross_compiling" = yes; then :
8565 # Try to guess by grepping values from an object file.
8566 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
8567 /* end confdefs.h. */
8568 short int ascii_mm[] =
8569 { 0x4249, 0x4765, 0x6E44, 0x6961, 0x6E53, 0x7953, 0 };
8570 short int ascii_ii[] =
8571 { 0x694C, 0x5454, 0x656C, 0x6E45, 0x6944, 0x6E61, 0 };
8572 int use_ascii (int i) {
8573 return ascii_mm[i] + ascii_ii[i];
8575 short int ebcdic_ii[] =
8576 { 0x89D3, 0xE3E3, 0x8593, 0x95C5, 0x89C4, 0x9581, 0 };
8577 short int ebcdic_mm[] =
8578 { 0xC2C9, 0xC785, 0x95C4, 0x8981, 0x95E2, 0xA8E2, 0 };
8579 int use_ebcdic (int i) {
8580 return ebcdic_mm[i] + ebcdic_ii[i];
8587 return use_ascii (foo) == use_ebcdic (foo);
8592 if ac_fn_c_try_compile
"$LINENO"; then :
8593 if grep BIGenDianSyS conftest.
$ac_objext >/dev
/null
; then
8594 ac_cv_c_bigendian
=yes
8596 if grep LiTTleEnDian conftest.
$ac_objext >/dev
/null
; then
8597 if test "$ac_cv_c_bigendian" = unknown
; then
8598 ac_cv_c_bigendian
=no
8600 # finding both strings is unlikely to happen, but who knows?
8601 ac_cv_c_bigendian
=unknown
8605 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
8607 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
8608 /* end confdefs.h. */
8609 $ac_includes_default
8614 /* Are we little or big endian? From Harbison&Steele. */
8618 char c[sizeof (long int)];
8621 return u.c[sizeof (long int) - 1] == 1;
8627 if ac_fn_c_try_run
"$LINENO"; then :
8628 ac_cv_c_bigendian
=no
8630 ac_cv_c_bigendian
=yes
8632 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
8633 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
8638 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_bigendian" >&5
8639 $as_echo "$ac_cv_c_bigendian" >&6; }
8640 case $ac_cv_c_bigendian in #(
8642 $as_echo "#define WORDS_BIGENDIAN 1" >>confdefs.h
8648 $as_echo "#define AC_APPLE_UNIVERSAL_BUILD 1" >>confdefs.h
8652 as_fn_error $?
"unknown endianness
8653 presetting ac_cv_c_bigendian=no (or yes) will help" "$LINENO" 5 ;;
8657 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for __attribute__ ((__aligned__ (expr)))" >&5
8658 $as_echo_n "checking for __attribute__ ((__aligned__ (expr)))... " >&6; }
8659 if ${emacs_cv_attribute_aligned+:} false
; then :
8660 $as_echo_n "(cached) " >&6
8662 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
8663 /* end confdefs.h. */
8664 char __attribute__ ((__aligned__ (1 << 3))) c;
8673 if ac_fn_c_try_compile
"$LINENO"; then :
8674 emacs_cv_attribute_aligned
=yes
8676 emacs_cv_attribute_aligned
=no
8678 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
8680 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $emacs_cv_attribute_aligned" >&5
8681 $as_echo "$emacs_cv_attribute_aligned" >&6; }
8682 if test $emacs_cv_attribute_aligned = yes; then
8684 $as_echo "#define HAVE_ATTRIBUTE_ALIGNED 1" >>confdefs.h
8688 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
8689 $as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
8691 ac_make
=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
8692 if eval \
${ac_cv_prog_make_${ac_make}_set+:} false
; then :
8693 $as_echo_n "(cached) " >&6
8695 cat >conftest.
make <<\_ACEOF
8698 @
echo '@@@%%%=$(MAKE)=@@@%%%'
8700 # GNU make sometimes prints "make[1]: Entering ...", which would confuse us.
8701 case `${MAKE-make} -f conftest.make 2>/dev/null` in
8703 eval ac_cv_prog_make_
${ac_make}_set
=yes;;
8705 eval ac_cv_prog_make_
${ac_make}_set
=no
;;
8709 if eval test \
$ac_cv_prog_make_${ac_make}_set
= yes; then
8710 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
8711 $as_echo "yes" >&6; }
8714 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8715 $as_echo "no" >&6; }
8716 SET_MAKE
="MAKE=${MAKE-make}"
8723 if test "$GCC" = yes && test "$ac_enable_autodepend" = yes; then
8724 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using GNU Make" >&5
8725 $as_echo_n "checking whether we are using GNU Make... " >&6; }
8727 testval
=`make --version 2>/dev/null | grep 'GNU Make'`
8728 if test "x$testval" != x
; then
8731 ac_enable_autodepend
=no
8733 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $HAVE_GNU_MAKE" >&5
8734 $as_echo "$HAVE_GNU_MAKE" >&6; }
8735 if test $HAVE_GNU_MAKE = yes; then
8736 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether gcc understands -MMD -MF" >&5
8737 $as_echo_n "checking whether gcc understands -MMD -MF... " >&6; }
8738 SAVE_CFLAGS
="$CFLAGS"
8739 CFLAGS
="$CFLAGS -MMD -MF deps.d"
8740 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
8741 /* end confdefs.h. */
8751 if ac_fn_c_try_compile
"$LINENO"; then :
8754 ac_enable_autodepend
=no
8756 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
8757 CFLAGS
="$SAVE_CFLAGS"
8758 test -f deps.d || ac_enable_autodepend
=no
8760 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_enable_autodepend" >&5
8761 $as_echo "$ac_enable_autodepend" >&6; }
8763 if test $ac_enable_autodepend = yes; then
8764 DEPFLAGS
='-MMD -MF ${DEPDIR}/$*.d'
8765 ## In parallel builds, another make might create depdir between
8766 ## the first test and mkdir, so stick another test on the end.
8767 ## Or use mkinstalldirs? mkdir -p is not portable.
8768 MKDEPDIR
='test -d ${DEPDIR} || mkdir ${DEPDIR} || test -d ${DEPDIR}'
8769 deps_frag
=autodeps.mk
8772 deps_frag
=$srcdir/src
/$deps_frag
8778 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for long file names" >&5
8779 $as_echo_n "checking for long file names... " >&6; }
8780 if ${ac_cv_sys_long_file_names+:} false
; then :
8781 $as_echo_n "(cached) " >&6
8783 ac_cv_sys_long_file_names
=yes
8784 # Test for long file names in all the places we know might matter:
8785 # . the current directory, where building will happen
8786 # $prefix/lib where we will be installing things
8787 # $exec_prefix/lib likewise
8788 # $TMPDIR if set, where it might want to write temporary files
8789 # /tmp where it might want to write temporary files
8792 for ac_dir
in .
"$TMPDIR" /tmp
/var
/tmp
/usr
/tmp
"$prefix/lib" "$exec_prefix/lib"; do
8793 # Skip $TMPDIR if it is empty or bogus, and skip $exec_prefix/lib
8794 # in the usual case where exec_prefix is '${prefix}'.
8796 . |
/* | ?
:[\\/]*) ;; #(
8799 test -w "$ac_dir/." ||
continue # It is less confusing to not echo anything here.
8800 ac_xdir
=$ac_dir/cf$$
8801 (umask 077 && mkdir
"$ac_xdir" 2>/dev
/null
) ||
continue
8802 ac_tf1
=$ac_xdir/conftest9012345
8803 ac_tf2
=$ac_xdir/conftest9012346
8804 touch "$ac_tf1" 2>/dev
/null
&& test -f "$ac_tf1" && test ! -f "$ac_tf2" ||
8805 ac_cv_sys_long_file_names
=no
8806 rm -f -r "$ac_xdir" 2>/dev
/null
8807 test $ac_cv_sys_long_file_names = no
&& break
8810 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_long_file_names" >&5
8811 $as_echo "$ac_cv_sys_long_file_names" >&6; }
8812 if test $ac_cv_sys_long_file_names = yes; then
8814 $as_echo "#define HAVE_LONG_FILE_NAMES 1" >>confdefs.h
8819 #### Choose a window system.
8821 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for X" >&5
8822 $as_echo_n "checking for X... " >&6; }
8825 # Check whether --with-x was given.
8826 if test "${with_x+set}" = set; then :
8830 # $have_x is `yes', `no', `disabled', or empty when we do not yet know.
8831 if test "x$with_x" = xno
; then
8832 # The user explicitly disabled X.
8835 case $x_includes,$x_libraries in #(
8836 *\'*) as_fn_error $?
"cannot use X directory names containing '" "$LINENO" 5;; #(
8837 *,NONE | NONE
,*) if ${ac_cv_have_x+:} false
; then :
8838 $as_echo_n "(cached) " >&6
8840 # One or both of the vars are not set, and there is no cached value.
8841 ac_x_includes
=no ac_x_libraries
=no
8842 rm -f -r conftest.dir
8843 if mkdir conftest.dir
; then
8845 cat >Imakefile
<<'_ACEOF'
8847 @echo incroot='${INCROOT}'
8849 @echo usrlibdir='${USRLIBDIR}'
8851 @echo libdir='${LIBDIR}'
8853 if (export CC
; ${XMKMF-xmkmf}) >/dev
/null
2>/dev
/null
&& test -f Makefile
; then
8854 # GNU make sometimes prints "make[1]: Entering ...", which would confuse us.
8855 for ac_var
in incroot usrlibdir libdir
; do
8856 eval "ac_im_$ac_var=\`\${MAKE-make} $ac_var 2>/dev/null | sed -n 's/^$ac_var=//p'\`"
8858 # Open Windows xmkmf reportedly sets LIBDIR instead of USRLIBDIR.
8859 for ac_extension
in a so sl dylib la dll
; do
8860 if test ! -f "$ac_im_usrlibdir/libX11.$ac_extension" &&
8861 test -f "$ac_im_libdir/libX11.$ac_extension"; then
8862 ac_im_usrlibdir
=$ac_im_libdir; break
8865 # Screen out bogus values from the imake configuration. They are
8866 # bogus both because they are the default anyway, and because
8867 # using them would break gcc on systems where it needs fixed includes.
8868 case $ac_im_incroot in
8869 /usr
/include
) ac_x_includes
= ;;
8870 *) test -f "$ac_im_incroot/X11/Xos.h" && ac_x_includes
=$ac_im_incroot;;
8872 case $ac_im_usrlibdir in
8873 /usr
/lib |
/usr
/lib64 |
/lib |
/lib64
) ;;
8874 *) test -d "$ac_im_usrlibdir" && ac_x_libraries
=$ac_im_usrlibdir ;;
8878 rm -f -r conftest.dir
8881 # Standard set of common directories for X headers.
8882 # Check X11 before X11Rn because it is often a symlink to the current release.
8896 /usr/local/X11/include
8897 /usr/local/X11R7/include
8898 /usr/local/X11R6/include
8899 /usr/local/X11R5/include
8900 /usr/local/X11R4/include
8902 /usr/local/include/X11
8903 /usr/local/include/X11R7
8904 /usr/local/include/X11R6
8905 /usr/local/include/X11R5
8906 /usr/local/include/X11R4
8910 /usr/XFree86/include/X11
8914 /usr/unsupported/include
8916 /usr/local/x11r5/include
8917 /usr/lpp/Xamples/include
8919 /usr/openwin/include
8920 /usr/openwin/share/include'
8922 if test "$ac_x_includes" = no
; then
8923 # Guess where to find include files, by looking for Xlib.h.
8924 # First, try using that file with no special directory specified.
8925 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
8926 /* end confdefs.h. */
8927 #include <X11/Xlib.h>
8929 if ac_fn_c_try_cpp
"$LINENO"; then :
8930 # We can compile using X headers with no special include directory.
8933 for ac_dir
in $ac_x_header_dirs; do
8934 if test -r "$ac_dir/X11/Xlib.h"; then
8935 ac_x_includes
=$ac_dir
8940 rm -f conftest.err conftest.i conftest.
$ac_ext
8941 fi # $ac_x_includes = no
8943 if test "$ac_x_libraries" = no
; then
8944 # Check for the libraries.
8945 # See if we find them without any special options.
8946 # Don't add to $LIBS permanently.
8949 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
8950 /* end confdefs.h. */
8951 #include <X11/Xlib.h>
8960 if ac_fn_c_try_link
"$LINENO"; then :
8962 # We can link X programs with no special library path.
8966 for ac_dir
in `$as_echo "$ac_x_includes $ac_x_header_dirs" | sed s/include/lib/g`
8968 # Don't even attempt the hair of trying to link an X program!
8969 for ac_extension
in a so sl dylib la dll
; do
8970 if test -r "$ac_dir/libX11.$ac_extension"; then
8971 ac_x_libraries
=$ac_dir
8977 rm -f core conftest.err conftest.
$ac_objext \
8978 conftest
$ac_exeext conftest.
$ac_ext
8979 fi # $ac_x_libraries = no
8981 case $ac_x_includes,$ac_x_libraries in #(
8983 # Didn't find X, or a directory has "'" in its name.
8984 ac_cv_have_x
="have_x=no";; #(
8986 # Record where we found X for the cache.
8987 ac_cv_have_x
="have_x=yes\
8988 ac_x_includes='$ac_x_includes'\
8989 ac_x_libraries='$ac_x_libraries'"
8995 eval "$ac_cv_have_x"
8998 if test "$have_x" != yes; then
8999 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_x" >&5
9000 $as_echo "$have_x" >&6; }
9003 # If each of the values was on the command line, it overrides each guess.
9004 test "x$x_includes" = xNONE
&& x_includes
=$ac_x_includes
9005 test "x$x_libraries" = xNONE
&& x_libraries
=$ac_x_libraries
9006 # Update the cache value to reflect the command line values.
9007 ac_cv_have_x
="have_x=yes\
9008 ac_x_includes='$x_includes'\
9009 ac_x_libraries='$x_libraries'"
9010 { $as_echo "$as_me:${as_lineno-$LINENO}: result: libraries $x_libraries, headers $x_includes" >&5
9011 $as_echo "libraries $x_libraries, headers $x_includes" >&6; }
9014 if test "$no_x" = yes; then
9020 ## Workaround for bug in autoconf <= 2.62.
9021 ## http://lists.gnu.org/archive/html/emacs-devel/2008-04/msg01551.html
9022 ## No need to do anything special for these standard directories.
9023 if test -n "${x_libraries}" && test x
"${x_libraries}" != xNONE
; then
9025 x_libraries
=`echo :${x_libraries}: | sed -e 's|:/usr/lib64:|:|g' -e 's|:/lib64:|:|g' -e 's|^:||' -e 's|:$||'`
9029 LD_SWITCH_X_SITE_AUX
=
9030 LD_SWITCH_X_SITE_AUX_RPATH
=
9031 if test "${x_libraries}" != NONE
; then
9032 if test -n "${x_libraries}"; then
9033 LD_SWITCH_X_SITE
=-L`echo ${x_libraries} | sed -e "s/:/ -L/g"`
9034 LD_SWITCH_X_SITE_AUX
=-R`echo ${x_libraries} | sed -e "s/:/ -R/g"`
9035 LD_SWITCH_X_SITE_AUX_RPATH
=`echo ${LD_SWITCH_X_SITE_AUX} | sed -e 's/-R/-Wl,-rpath,/'`
9037 x_default_search_path
=""
9038 x_search_path
=${x_libraries}
9039 if test -z "${x_search_path}"; then
9040 x_search_path
=/usr
/lib
9042 for x_library
in `echo ${x_search_path}: | \
9043 sed -e "s/:/ /g" -e p -e "s:/lib[^ /]* :/share :g"`; do
9045 ${x_library}/X11/%L/%T/%N%C%S:\
9046 ${x_library}/X11/%l/%T/%N%C%S:\
9047 ${x_library}/X11/%T/%N%C%S:\
9048 ${x_library}/X11/%L/%T/%N%S:\
9049 ${x_library}/X11/%l/%T/%N%S:\
9050 ${x_library}/X11/%T/%N%S"
9051 if test x
"${x_default_search_path}" = x
; then
9052 x_default_search_path
=${x_search_path}
9054 x_default_search_path
="${x_search_path}:${x_default_search_path}"
9061 if test "${x_includes}" != NONE
&& test -n "${x_includes}"; then
9062 C_SWITCH_X_SITE
=-I`echo ${x_includes} | sed -e "s/:/ -I/g"`
9065 if test x
"${x_includes}" = x
; then
9066 bitmapdir
=/usr
/include
/X11
/bitmaps
9068 # accumulate include directories that have X11 bitmap subdirectories
9070 for bmd
in `echo ${x_includes} | sed -e "s/:/ /g"`; do
9071 if test -d "${bmd}/X11/bitmaps"; then
9072 bmd_acc
="${bmd_acc}:${bmd}/X11/bitmaps"
9074 if test -d "${bmd}/bitmaps"; then
9075 bmd_acc
="${bmd_acc}:${bmd}/bitmaps"
9078 if test ${bmd_acc} != "dummyval"; then
9079 bitmapdir
=`echo ${bmd_acc} | sed -e "s/^dummyval://"`
9086 tmp_CPPFLAGS
="$CPPFLAGS"
9087 tmp_CFLAGS
="$CFLAGS"
9088 CPPFLAGS
="$CPPFLAGS -x objective-c"
9089 CFLAGS
="$CFLAGS -x objective-c"
9090 TEMACS_LDFLAGS2
="\${LDFLAGS}"
9091 if test "${with_ns}" != no
; then
9092 if test "${opsys}" = darwin
; then
9094 ns_appdir
=`pwd`/nextstep
/Emacs.app
9095 ns_appbindir
=${ns_appdir}/Contents
/MacOS
/
9096 ns_appresdir
=${ns_appdir}/Contents
/Resources
9097 ns_appsrc
=${srcdir}/nextstep
/Cocoa
/Emacs.base
9098 elif test -f $GNUSTEP_CONFIG_FILE; then
9100 ns_appdir
=`pwd`/nextstep
/Emacs.app
9101 ns_appbindir
=${ns_appdir}/
9102 ns_appresdir
=${ns_appdir}/Resources
9103 ns_appsrc
=${srcdir}/nextstep
/GNUstep
/Emacs.base
9104 GNUSTEP_SYSTEM_HEADERS
="$(. $GNUSTEP_CONFIG_FILE; echo $GNUSTEP_SYSTEM_HEADERS)"
9105 GNUSTEP_SYSTEM_LIBRARIES
="$(. $GNUSTEP_CONFIG_FILE; echo $GNUSTEP_SYSTEM_LIBRARIES)"
9106 GNUSTEP_LOCAL_HEADERS
="$(. $GNUSTEP_CONFIG_FILE; echo $GNUSTEP_LOCAL_HEADERS)"
9107 GNUSTEP_LOCAL_LIBRARIES
="$(. $GNUSTEP_CONFIG_FILE; echo $GNUSTEP_LOCAL_LIBRARIES)"
9108 test "x${GNUSTEP_LOCAL_HEADERS}" != "x" && \
9109 GNUSTEP_LOCAL_HEADERS
="-I${GNUSTEP_LOCAL_HEADERS}"
9110 test "x${GNUSTEP_LOCAL_LIBRARIES}" != "x" && \
9111 GNUSTEP_LOCAL_LIBRARIES
="-L${GNUSTEP_LOCAL_LIBRARIES}"
9112 CPPFLAGS
="$CPPFLAGS -I${GNUSTEP_SYSTEM_HEADERS} ${GNUSTEP_LOCAL_HEADERS}"
9113 CFLAGS
="$CFLAGS -I${GNUSTEP_SYSTEM_HEADERS} ${GNUSTEP_LOCAL_HEADERS}"
9114 LDFLAGS
="$LDFLAGS -L${GNUSTEP_SYSTEM_LIBRARIES} ${GNUSTEP_LOCAL_LIBRARIES}"
9119 ac_fn_c_check_header_mongrel
"$LINENO" "AppKit/AppKit.h" "ac_cv_header_AppKit_AppKit_h" "$ac_includes_default"
9120 if test "x$ac_cv_header_AppKit_AppKit_h" = xyes
; then :
9123 as_fn_error $?
"\`--with-ns' was specified, but the include
9124 files are missing or cannot be compiled." "$LINENO" 5
9128 NS_HAVE_NSINTEGER
=yes
9129 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
9130 /* end confdefs.h. */
9131 #include <Foundation/NSObjCRuntime.h>
9140 if ac_fn_c_try_compile
"$LINENO"; then :
9141 ns_have_nsinteger
=yes
9143 ns_have_nsinteger
=no
9145 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
9146 if test $ns_have_nsinteger = no
; then
9147 NS_HAVE_NSINTEGER
=no
9156 if test "${HAVE_NS}" = yes; then
9157 window_system
=nextstep
9159 # set up packaging dirs
9160 exec_prefix
=${ns_appbindir}
9161 libexecdir
=${ns_appbindir}/libexec
9162 if test "${EN_NS_SELF_CONTAINED}" = yes; then
9163 prefix
=${ns_appresdir}
9165 ns_frag
=$srcdir/src
/ns.mk
9166 NS_OBJ
="fontset.o fringe.o image.o"
9167 NS_OBJC_OBJ
="nsterm.o nsfns.o nsmenu.o nsselect.o nsimage.o nsfont.o"
9168 NS_SUPPORT
="\${lispsource}/emacs-lisp/easymenu.elc \${lispsource}/term/ns-win.elc"
9170 CFLAGS
="$tmp_CFLAGS"
9171 CPPFLAGS
="$tmp_CPPFLAGS"
9178 case "${window_system}" in
9182 case "${with_x_toolkit}" in
9183 athena | lucid
) USE_X_TOOLKIT
=LUCID
;;
9184 motif
) USE_X_TOOLKIT
=MOTIF
;;
9186 USE_X_TOOLKIT
=none
;;
9187 gtk3
) with_gtk3
=yes
9188 USE_X_TOOLKIT
=none
;;
9189 no
) USE_X_TOOLKIT
=none
;;
9190 * ) USE_X_TOOLKIT
=maybe
;;
9200 if test "$window_system" = none
&& test "X$with_x" != "Xno"; then
9201 # Extract the first word of "X", so it can be a program name with args.
9202 set dummy X
; ac_word
=$2
9203 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9204 $as_echo_n "checking for $ac_word... " >&6; }
9205 if ${ac_cv_prog_HAVE_XSERVER+:} false
; then :
9206 $as_echo_n "(cached) " >&6
9208 if test -n "$HAVE_XSERVER"; then
9209 ac_cv_prog_HAVE_XSERVER
="$HAVE_XSERVER" # Let the user override the test.
9211 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
9215 test -z "$as_dir" && as_dir
=.
9216 for ac_exec_ext
in '' $ac_executable_extensions; do
9217 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9218 ac_cv_prog_HAVE_XSERVER
="true"
9219 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9226 test -z "$ac_cv_prog_HAVE_XSERVER" && ac_cv_prog_HAVE_XSERVER
="false"
9229 HAVE_XSERVER
=$ac_cv_prog_HAVE_XSERVER
9230 if test -n "$HAVE_XSERVER"; then
9231 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $HAVE_XSERVER" >&5
9232 $as_echo "$HAVE_XSERVER" >&6; }
9234 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9235 $as_echo "no" >&6; }
9239 if test "$HAVE_XSERVER" = true ||
9240 test -n "$DISPLAY" ||
9241 test "`echo /usr/lib/libX11.*`" != "/usr/lib/libX11.*"; then
9242 as_fn_error $?
"You seem to be running X, but no X development libraries
9243 were found. You should install the relevant development files for X
9244 and for the toolkit you want, such as Gtk+, Lesstif or Motif. Also make
9245 sure you have development files for image handling, i.e.
9246 tiff, gif, jpeg, png and xpm.
9247 If you are sure you want Emacs compiled without X window support, pass
9249 to configure." "$LINENO" 5
9253 ### If we're using X11, we should use the X menu package.
9256 yes ) HAVE_MENUS
=yes ;;
9259 # Do the opsystem or machine files prohibit the use of the GNU malloc?
9260 # Assume not, until told otherwise.
9263 ac_fn_c_check_func
"$LINENO" "malloc_get_state" "ac_cv_func_malloc_get_state"
9264 if test "x$ac_cv_func_malloc_get_state" = xyes
; then :
9270 ac_fn_c_check_func
"$LINENO" "malloc_set_state" "ac_cv_func_malloc_set_state"
9271 if test "x$ac_cv_func_malloc_set_state" = xyes
; then :
9277 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether __after_morecore_hook exists" >&5
9278 $as_echo_n "checking whether __after_morecore_hook exists... " >&6; }
9279 if ${emacs_cv_var___after_morecore_hook+:} false
; then :
9280 $as_echo_n "(cached) " >&6
9282 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
9283 /* end confdefs.h. */
9284 extern void (* __after_morecore_hook)();
9288 __after_morecore_hook = 0
9293 if ac_fn_c_try_link
"$LINENO"; then :
9294 emacs_cv_var___after_morecore_hook
=yes
9296 emacs_cv_var___after_morecore_hook
=no
9298 rm -f core conftest.err conftest.
$ac_objext \
9299 conftest
$ac_exeext conftest.
$ac_ext
9301 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $emacs_cv_var___after_morecore_hook" >&5
9302 $as_echo "$emacs_cv_var___after_morecore_hook" >&6; }
9303 if test $emacs_cv_var___after_morecore_hook = no
; then
9310 ## darwin ld insists on the use of malloc routines in the System framework.
9311 darwin|sol2-10
) system_malloc
=yes ;;
9314 if test "${system_malloc}" = "yes"; then
9316 $as_echo "#define SYSTEM_MALLOC 1" >>confdefs.h
9320 (The GNU allocators don't work with this system configuration.)"
9324 test "$doug_lea_malloc" != "yes" && GMALLOC_OBJ
=gmalloc.o
9325 VMLIMIT_OBJ
=vm-limit.o
9330 if test "$doug_lea_malloc" = "yes" ; then
9331 if test "$GNU_MALLOC" = yes ; then
9333 (Using Doug Lea's new malloc from the GNU C Library.)"
9336 $as_echo "#define DOUG_LEA_MALLOC 1" >>confdefs.h
9339 ## Use mmap directly for allocating larger buffers.
9340 ## FIXME this comes from src/s/{gnu,gnu-linux}.h:
9341 ## #ifdef DOUG_LEA_MALLOC; #undef REL_ALLOC; #endif
9342 ## Does the AC_FUNC_MMAP test below make this check unecessary?
9344 gnu
*) REL_ALLOC
=no
;;
9348 if test x
"${REL_ALLOC}" = x
; then
9349 REL_ALLOC
=${GNU_MALLOC}
9352 use_mmap_for_buffers
=no
9354 freebsd|irix6-5
) use_mmap_for_buffers
=yes ;;
9360 for ac_header
in $ac_header_list
9362 as_ac_Header
=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
9363 ac_fn_c_check_header_compile
"$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
9365 if eval test \"x\$
"$as_ac_Header"\" = x
"yes"; then :
9366 cat >>confdefs.h
<<_ACEOF
9367 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
9381 for ac_func
in getpagesize
9383 ac_fn_c_check_func
"$LINENO" "getpagesize" "ac_cv_func_getpagesize"
9384 if test "x$ac_cv_func_getpagesize" = xyes
; then :
9385 cat >>confdefs.h
<<_ACEOF
9386 #define HAVE_GETPAGESIZE 1
9392 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working mmap" >&5
9393 $as_echo_n "checking for working mmap... " >&6; }
9394 if ${ac_cv_func_mmap_fixed_mapped+:} false
; then :
9395 $as_echo_n "(cached) " >&6
9397 if test "$cross_compiling" = yes; then :
9398 ac_cv_func_mmap_fixed_mapped
=no
9400 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
9401 /* end confdefs.h. */
9402 $ac_includes_default
9403 /* malloc might have been renamed as rpl_malloc. */
9406 /* Thanks to Mike Haertel and Jim Avera for this test.
9407 Here is a matrix of mmap possibilities:
9408 mmap private not fixed
9409 mmap private fixed at somewhere currently unmapped
9410 mmap private fixed at somewhere already mapped
9411 mmap shared not fixed
9412 mmap shared fixed at somewhere currently unmapped
9413 mmap shared fixed at somewhere already mapped
9414 For private mappings, we should verify that changes cannot be read()
9415 back from the file, nor mmap's back from the file at a different
9416 address. (There have been systems where private was not correctly
9417 implemented like the infamous i386 svr4.0, and systems where the
9418 VM page cache was not coherent with the file system buffer cache
9419 like early versions of FreeBSD and possibly contemporary NetBSD.)
9420 For shared mappings, we should conversely verify that changes get
9421 propagated back to all the places they're supposed to be.
9423 Grep wants private fixed already mapped.
9424 The main things grep needs to know about mmap are:
9425 * does it exist and is it safe to write into the mmap'd area
9426 * how to use it (BSD variants) */
9429 #include <sys/mman.h>
9431 #if !defined STDC_HEADERS && !defined HAVE_STDLIB_H
9435 /* This mess was copied from the GNU getpagesize.h. */
9436 #ifndef HAVE_GETPAGESIZE
9437 # ifdef _SC_PAGESIZE
9438 # define getpagesize() sysconf(_SC_PAGESIZE)
9439 # else /* no _SC_PAGESIZE */
9440 # ifdef HAVE_SYS_PARAM_H
9441 # include <sys/param.h>
9442 # ifdef EXEC_PAGESIZE
9443 # define getpagesize() EXEC_PAGESIZE
9444 # else /* no EXEC_PAGESIZE */
9446 # define getpagesize() NBPG * CLSIZE
9449 # endif /* no CLSIZE */
9450 # else /* no NBPG */
9452 # define getpagesize() NBPC
9453 # else /* no NBPC */
9455 # define getpagesize() PAGESIZE
9456 # endif /* PAGESIZE */
9457 # endif /* no NBPC */
9458 # endif /* no NBPG */
9459 # endif /* no EXEC_PAGESIZE */
9460 # else /* no HAVE_SYS_PARAM_H */
9461 # define getpagesize() 8192 /* punt totally */
9462 # endif /* no HAVE_SYS_PARAM_H */
9463 # endif /* no _SC_PAGESIZE */
9465 #endif /* no HAVE_GETPAGESIZE */
9470 char *data, *data2, *data3;
9475 pagesize = getpagesize ();
9477 /* First, make a file with some known garbage in it. */
9478 data = (char *) malloc (pagesize);
9481 for (i = 0; i < pagesize; ++i)
9482 *(data + i) = rand ();
9484 fd = creat ("conftest.mmap", 0600);
9487 if (write (fd, data, pagesize) != pagesize)
9491 /* Next, check that the tail of a page is zero-filled. File must have
9492 non-zero length, otherwise we risk SIGBUS for entire page. */
9493 fd2 = open ("conftest.txt", O_RDWR | O_CREAT | O_TRUNC, 0600);
9497 if (write (fd2, cdata2, 1) != 1)
9499 data2 = (char *) mmap (0, pagesize, PROT_READ | PROT_WRITE, MAP_SHARED, fd2, 0L);
9500 if (data2 == MAP_FAILED)
9502 for (i = 0; i < pagesize; ++i)
9506 if (munmap (data2, pagesize))
9509 /* Next, try to mmap the file at a fixed address which already has
9510 something else allocated at it. If we can, also make sure that
9511 we see the same garbage. */
9512 fd = open ("conftest.mmap", O_RDWR);
9515 if (data2 != mmap (data2, pagesize, PROT_READ | PROT_WRITE,
9516 MAP_PRIVATE | MAP_FIXED, fd, 0L))
9518 for (i = 0; i < pagesize; ++i)
9519 if (*(data + i) != *(data2 + i))
9522 /* Finally, make sure that changes to the mapped area do not
9523 percolate back to the file as seen by read(). (This is a bug on
9524 some variants of i386 svr4.0.) */
9525 for (i = 0; i < pagesize; ++i)
9526 *(data2 + i) = *(data2 + i) + 1;
9527 data3 = (char *) malloc (pagesize);
9530 if (read (fd, data3, pagesize) != pagesize)
9532 for (i = 0; i < pagesize; ++i)
9533 if (*(data + i) != *(data3 + i))
9539 if ac_fn_c_try_run
"$LINENO"; then :
9540 ac_cv_func_mmap_fixed_mapped
=yes
9542 ac_cv_func_mmap_fixed_mapped
=no
9544 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
9545 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
9549 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_mmap_fixed_mapped" >&5
9550 $as_echo "$ac_cv_func_mmap_fixed_mapped" >&6; }
9551 if test $ac_cv_func_mmap_fixed_mapped = yes; then
9553 $as_echo "#define HAVE_MMAP 1" >>confdefs.h
9556 rm -f conftest.mmap conftest.txt
9558 if test $use_mmap_for_buffers = yes; then
9560 $as_echo "#define USE_MMAP_FOR_BUFFERS 1" >>confdefs.h
9565 LIBS
="$LIBS_SYSTEM $LIBS"
9567 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dnet_ntoa in -ldnet" >&5
9568 $as_echo_n "checking for dnet_ntoa in -ldnet... " >&6; }
9569 if ${ac_cv_lib_dnet_dnet_ntoa+:} false
; then :
9570 $as_echo_n "(cached) " >&6
9572 ac_check_lib_save_LIBS
=$LIBS
9574 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
9575 /* end confdefs.h. */
9577 /* Override any GCC internal prototype to avoid an error.
9578 Use char because int might match the return type of a GCC
9579 builtin and then its argument prototype would still apply. */
9587 return dnet_ntoa ();
9592 if ac_fn_c_try_link
"$LINENO"; then :
9593 ac_cv_lib_dnet_dnet_ntoa
=yes
9595 ac_cv_lib_dnet_dnet_ntoa
=no
9597 rm -f core conftest.err conftest.
$ac_objext \
9598 conftest
$ac_exeext conftest.
$ac_ext
9599 LIBS
=$ac_check_lib_save_LIBS
9601 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dnet_dnet_ntoa" >&5
9602 $as_echo "$ac_cv_lib_dnet_dnet_ntoa" >&6; }
9603 if test "x$ac_cv_lib_dnet_dnet_ntoa" = xyes
; then :
9604 cat >>confdefs.h
<<_ACEOF
9605 #define HAVE_LIBDNET 1
9613 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for main in -lXbsd" >&5
9614 $as_echo_n "checking for main in -lXbsd... " >&6; }
9615 if ${ac_cv_lib_Xbsd_main+:} false
; then :
9616 $as_echo_n "(cached) " >&6
9618 ac_check_lib_save_LIBS
=$LIBS
9620 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
9621 /* end confdefs.h. */
9632 if ac_fn_c_try_link
"$LINENO"; then :
9633 ac_cv_lib_Xbsd_main
=yes
9635 ac_cv_lib_Xbsd_main
=no
9637 rm -f core conftest.err conftest.
$ac_objext \
9638 conftest
$ac_exeext conftest.
$ac_ext
9639 LIBS
=$ac_check_lib_save_LIBS
9641 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_Xbsd_main" >&5
9642 $as_echo "$ac_cv_lib_Xbsd_main" >&6; }
9643 if test "x$ac_cv_lib_Xbsd_main" = xyes
; then :
9644 LD_SWITCH_X_SITE
="$LD_SWITCH_X_SITE -lXbsd"
9648 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for cma_open in -lpthreads" >&5
9649 $as_echo_n "checking for cma_open in -lpthreads... " >&6; }
9650 if ${ac_cv_lib_pthreads_cma_open+:} false
; then :
9651 $as_echo_n "(cached) " >&6
9653 ac_check_lib_save_LIBS
=$LIBS
9654 LIBS
="-lpthreads $LIBS"
9655 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
9656 /* end confdefs.h. */
9658 /* Override any GCC internal prototype to avoid an error.
9659 Use char because int might match the return type of a GCC
9660 builtin and then its argument prototype would still apply. */
9673 if ac_fn_c_try_link
"$LINENO"; then :
9674 ac_cv_lib_pthreads_cma_open
=yes
9676 ac_cv_lib_pthreads_cma_open
=no
9678 rm -f core conftest.err conftest.
$ac_objext \
9679 conftest
$ac_exeext conftest.
$ac_ext
9680 LIBS
=$ac_check_lib_save_LIBS
9682 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_pthreads_cma_open" >&5
9683 $as_echo "$ac_cv_lib_pthreads_cma_open" >&6; }
9684 if test "x$ac_cv_lib_pthreads_cma_open" = xyes
; then :
9685 cat >>confdefs.h
<<_ACEOF
9686 #define HAVE_LIBPTHREADS 1
9689 LIBS
="-lpthreads $LIBS"
9694 ## Note: when using cpp in s/aix4.2.h, this definition depended on
9695 ## HAVE_LIBPTHREADS. That was not defined earlier in configure when
9696 ## the system file was sourced. Hence the value of LIBS_SYSTEM
9697 ## added to LIBS in configure would never contain the pthreads part,
9698 ## but the value used in Makefiles might. FIXME?
9700 ## -lpthreads seems to be necessary for Xlib in X11R6, and should
9701 ## be harmless on older versions of X where it happens to exist.
9702 test "$opsys" = "aix4-2" && \
9703 test $ac_cv_lib_pthreads_cma_open = yes && \
9704 LIBS_SYSTEM
="$LIBS_SYSTEM -lpthreads"
9709 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -bbigtoc option" >&5
9710 $as_echo_n "checking for -bbigtoc option... " >&6; }
9711 if ${gdb_cv_bigtoc+:} false
; then :
9712 $as_echo_n "(cached) " >&6
9716 yes) gdb_cv_bigtoc
=-Wl,-bbigtoc ;;
9717 *) gdb_cv_bigtoc
=-bbigtoc ;;
9720 LDFLAGS
=$LDFLAGS\
$gdb_cv_bigtoc
9721 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
9722 /* end confdefs.h. */
9732 if ac_fn_c_try_link
"$LINENO"; then :
9737 rm -f core conftest.err conftest.
$ac_objext \
9738 conftest
$ac_exeext conftest.
$ac_ext
9741 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gdb_cv_bigtoc" >&5
9742 $as_echo "$gdb_cv_bigtoc" >&6; }
9746 # Change CFLAGS and CPPFLAGS temporarily so that C_SWITCH_X_SITE gets
9747 # used for the tests that follow. We set them back to REAL_CFLAGS and
9748 # REAL_CPPFLAGS later on.
9750 REAL_CFLAGS
="$CFLAGS"
9751 REAL_CPPFLAGS
="$CPPFLAGS"
9753 if test "${HAVE_X11}" = "yes"; then
9754 DEFS
="$C_SWITCH_X_SITE $DEFS"
9755 LDFLAGS
="$LDFLAGS $LD_SWITCH_X_SITE"
9757 CFLAGS
="$C_SWITCH_X_SITE $CFLAGS"
9758 CPPFLAGS
="$C_SWITCH_X_SITE $CPPFLAGS"
9760 # On Solaris, arrange for LD_RUN_PATH to point to the X libraries for tests.
9761 # This is handled by LD_SWITCH_X_SITE_AUX during the real build,
9762 # but it's more convenient here to set LD_RUN_PATH
9763 # since this also works on hosts that don't understand LD_SWITCH_X_SITE_AUX.
9764 if test "${x_libraries}" != NONE
&& test -n "${x_libraries}"; then
9765 LD_RUN_PATH
=$x_libraries${LD_RUN_PATH+:}$LD_RUN_PATH
9769 if test "${opsys}" = "gnu-linux"; then
9770 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether X on GNU/Linux needs -b to link" >&5
9771 $as_echo_n "checking whether X on GNU/Linux needs -b to link... " >&6; }
9772 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
9773 /* end confdefs.h. */
9778 XOpenDisplay ("foo");
9783 if ac_fn_c_try_link
"$LINENO"; then :
9784 xlinux_first_failure
=no
9786 xlinux_first_failure
=yes
9788 rm -f core conftest.err conftest.
$ac_objext \
9789 conftest
$ac_exeext conftest.
$ac_ext
9790 if test "${xlinux_first_failure}" = "yes"; then
9791 OLD_LD_SWITCH_X_SITE
="$LD_SWITCH_X_SITE"
9792 OLD_C_SWITCH_X_SITE
="$C_SWITCH_X_SITE"
9793 OLD_CPPFLAGS
="$CPPFLAGS"
9795 LD_SWITCH_X_SITE
="$LD_SWITCH_X_SITE -b i486-linuxaout"
9796 C_SWITCH_X_SITE
="$C_SWITCH_X_SITE -b i486-linuxaout"
9797 CPPFLAGS
="$CPPFLAGS -b i486-linuxaout"
9798 LIBS
="$LIBS -b i486-linuxaout"
9799 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
9800 /* end confdefs.h. */
9805 XOpenDisplay ("foo");
9810 if ac_fn_c_try_link
"$LINENO"; then :
9811 xlinux_second_failure
=no
9813 xlinux_second_failure
=yes
9815 rm -f core conftest.err conftest.
$ac_objext \
9816 conftest
$ac_exeext conftest.
$ac_ext
9817 if test "${xlinux_second_failure}" = "yes"; then
9818 # If we get the same failure with -b, there is no use adding -b.
9819 # So take it out. This plays safe.
9820 LD_SWITCH_X_SITE
="$OLD_LD_SWITCH_X_SITE"
9821 C_SWITCH_X_SITE
="$OLD_C_SWITCH_X_SITE"
9822 CPPFLAGS
="$OLD_CPPFLAGS"
9824 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9825 $as_echo "no" >&6; }
9827 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
9828 $as_echo "yes" >&6; }
9831 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9832 $as_echo "no" >&6; }
9836 # Reportedly, some broken Solaris systems have XKBlib.h but are missing
9837 # header files included from there.
9838 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Xkb" >&5
9839 $as_echo_n "checking for Xkb... " >&6; }
9840 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
9841 /* end confdefs.h. */
9842 #include <X11/Xlib.h>
9843 #include <X11/XKBlib.h>
9847 XkbDescPtr kb = XkbGetKeyboard (0, XkbAllComponentsMask, XkbUseCoreKbd);
9852 if ac_fn_c_try_link
"$LINENO"; then :
9857 rm -f core conftest.err conftest.
$ac_objext \
9858 conftest
$ac_exeext conftest.
$ac_ext
9859 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $emacs_xkb" >&5
9860 $as_echo "$emacs_xkb" >&6; }
9861 if test $emacs_xkb = yes; then
9863 $as_echo "#define HAVE_XKBGETKEYBOARD 1" >>confdefs.h
9867 for ac_func
in XrmSetDatabase XScreenResourceString \
9868 XScreenNumberOfScreen XSetWMProtocols
9870 as_ac_var
=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
9871 ac_fn_c_check_func
"$LINENO" "$ac_func" "$as_ac_var"
9872 if eval test \"x\$
"$as_ac_var"\" = x
"yes"; then :
9873 cat >>confdefs.h
<<_ACEOF
9874 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
9882 if test "${window_system}" = "x11"; then
9883 { $as_echo "$as_me:${as_lineno-$LINENO}: checking X11 version 6" >&5
9884 $as_echo_n "checking X11 version 6... " >&6; }
9885 if ${emacs_cv_x11_version_6+:} false
; then :
9886 $as_echo_n "(cached) " >&6
9888 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
9889 /* end confdefs.h. */
9890 #include <X11/Xlib.h>
9894 #if XlibSpecificationRelease < 6
9902 if ac_fn_c_try_link
"$LINENO"; then :
9903 emacs_cv_x11_version_6
=yes
9905 emacs_cv_x11_version_6
=no
9907 rm -f core conftest.err conftest.
$ac_objext \
9908 conftest
$ac_exeext conftest.
$ac_ext
9911 if test $emacs_cv_x11_version_6 = yes; then
9912 { $as_echo "$as_me:${as_lineno-$LINENO}: result: 6 or newer" >&5
9913 $as_echo "6 or newer" >&6; }
9915 $as_echo "#define HAVE_X11R6 1" >>confdefs.h
9918 $as_echo "#define HAVE_X_I18N 1" >>confdefs.h
9920 ## inoue@ainet.or.jp says Solaris has a bug related to X11R6-style
9925 $as_echo "#define HAVE_X11R6_XIM 1" >>confdefs.h
9930 { $as_echo "$as_me:${as_lineno-$LINENO}: result: before 6" >&5
9931 $as_echo "before 6" >&6; }
9936 ### Use -lrsvg-2 if available, unless `--with-rsvg=no' is specified.
9938 if test "${HAVE_X11}" = "yes" ||
test "${NS_IMPL_GNUSTEP}" = "yes"; then
9939 if test "${with_rsvg}" != "no"; then
9940 RSVG_REQUIRED
=2.11.0
9941 RSVG_MODULE
="librsvg-2.0 >= $RSVG_REQUIRED"
9946 # Extract the first word of "pkg-config", so it can be a program name with args.
9947 set dummy pkg-config
; ac_word
=$2
9948 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9949 $as_echo_n "checking for $ac_word... " >&6; }
9950 if ${ac_cv_path_PKG_CONFIG+:} false
; then :
9951 $as_echo_n "(cached) " >&6
9955 ac_cv_path_PKG_CONFIG
="$PKG_CONFIG" # Let the user override the test with a path.
9958 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
9962 test -z "$as_dir" && as_dir
=.
9963 for ac_exec_ext
in '' $ac_executable_extensions; do
9964 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9965 ac_cv_path_PKG_CONFIG
="$as_dir/$ac_word$ac_exec_ext"
9966 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9973 test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG
="no"
9977 PKG_CONFIG
=$ac_cv_path_PKG_CONFIG
9978 if test -n "$PKG_CONFIG"; then
9979 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5
9980 $as_echo "$PKG_CONFIG" >&6; }
9982 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9983 $as_echo "no" >&6; }
9988 if test "$PKG_CONFIG" = "no" ; then
9991 PKG_CONFIG_MIN_VERSION
=0.9.0
9992 if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
9993 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $RSVG_MODULE" >&5
9994 $as_echo_n "checking for $RSVG_MODULE... " >&6; }
9996 if $PKG_CONFIG --exists "$RSVG_MODULE" 2>&5; then
9997 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
9998 $as_echo "yes" >&6; }
10001 { $as_echo "$as_me:${as_lineno-$LINENO}: checking RSVG_CFLAGS" >&5
10002 $as_echo_n "checking RSVG_CFLAGS... " >&6; }
10003 RSVG_CFLAGS
=`$PKG_CONFIG --cflags "$RSVG_MODULE"|sed -e 's,///*,/,g'`
10004 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RSVG_CFLAGS" >&5
10005 $as_echo "$RSVG_CFLAGS" >&6; }
10007 { $as_echo "$as_me:${as_lineno-$LINENO}: checking RSVG_LIBS" >&5
10008 $as_echo_n "checking RSVG_LIBS... " >&6; }
10009 RSVG_LIBS
=`$PKG_CONFIG --libs "$RSVG_MODULE"|sed -e 's,///*,/,g'`
10010 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RSVG_LIBS" >&5
10011 $as_echo "$RSVG_LIBS" >&6; }
10013 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10014 $as_echo "no" >&6; }
10017 ## If we have a custom action on failure, don't print errors, but
10018 ## do set a variable so people can do so.
10019 RSVG_PKG_ERRORS
=`$PKG_CONFIG --errors-to-stdout --print-errors "$RSVG_MODULE"`
10026 echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
10027 echo "*** See http://www.freedesktop.org/software/pkgconfig"
10031 if test $succeeded = yes; then
10040 if test $HAVE_RSVG = yes; then
10042 $as_echo "#define HAVE_RSVG 1" >>confdefs.h
10044 CFLAGS
="$CFLAGS $RSVG_CFLAGS"
10045 LIBS
="$RSVG_LIBS $LIBS"
10050 HAVE_IMAGEMAGICK
=no
10051 if test "${HAVE_X11}" = "yes"; then
10052 if test "${with_imagemagick}" != "no"; then
10053 IMAGEMAGICK_MODULE
="Wand"
10057 # Extract the first word of "pkg-config", so it can be a program name with args.
10058 set dummy pkg-config
; ac_word
=$2
10059 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10060 $as_echo_n "checking for $ac_word... " >&6; }
10061 if ${ac_cv_path_PKG_CONFIG+:} false
; then :
10062 $as_echo_n "(cached) " >&6
10064 case $PKG_CONFIG in
10066 ac_cv_path_PKG_CONFIG
="$PKG_CONFIG" # Let the user override the test with a path.
10069 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
10070 for as_dir
in $PATH
10073 test -z "$as_dir" && as_dir
=.
10074 for ac_exec_ext
in '' $ac_executable_extensions; do
10075 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10076 ac_cv_path_PKG_CONFIG
="$as_dir/$ac_word$ac_exec_ext"
10077 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10084 test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG
="no"
10088 PKG_CONFIG
=$ac_cv_path_PKG_CONFIG
10089 if test -n "$PKG_CONFIG"; then
10090 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5
10091 $as_echo "$PKG_CONFIG" >&6; }
10093 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10094 $as_echo "no" >&6; }
10099 if test "$PKG_CONFIG" = "no" ; then
10102 PKG_CONFIG_MIN_VERSION
=0.9.0
10103 if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
10104 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $IMAGEMAGICK_MODULE" >&5
10105 $as_echo_n "checking for $IMAGEMAGICK_MODULE... " >&6; }
10107 if $PKG_CONFIG --exists "$IMAGEMAGICK_MODULE" 2>&5; then
10108 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
10109 $as_echo "yes" >&6; }
10112 { $as_echo "$as_me:${as_lineno-$LINENO}: checking IMAGEMAGICK_CFLAGS" >&5
10113 $as_echo_n "checking IMAGEMAGICK_CFLAGS... " >&6; }
10114 IMAGEMAGICK_CFLAGS
=`$PKG_CONFIG --cflags "$IMAGEMAGICK_MODULE"|sed -e 's,///*,/,g'`
10115 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $IMAGEMAGICK_CFLAGS" >&5
10116 $as_echo "$IMAGEMAGICK_CFLAGS" >&6; }
10118 { $as_echo "$as_me:${as_lineno-$LINENO}: checking IMAGEMAGICK_LIBS" >&5
10119 $as_echo_n "checking IMAGEMAGICK_LIBS... " >&6; }
10120 IMAGEMAGICK_LIBS
=`$PKG_CONFIG --libs "$IMAGEMAGICK_MODULE"|sed -e 's,///*,/,g'`
10121 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $IMAGEMAGICK_LIBS" >&5
10122 $as_echo "$IMAGEMAGICK_LIBS" >&6; }
10124 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10125 $as_echo "no" >&6; }
10126 IMAGEMAGICK_CFLAGS
=""
10127 IMAGEMAGICK_LIBS
=""
10128 ## If we have a custom action on failure, don't print errors, but
10129 ## do set a variable so people can do so.
10130 IMAGEMAGICK_PKG_ERRORS
=`$PKG_CONFIG --errors-to-stdout --print-errors "$IMAGEMAGICK_MODULE"`
10137 echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
10138 echo "*** See http://www.freedesktop.org/software/pkgconfig"
10142 if test $succeeded = yes; then
10143 HAVE_IMAGEMAGICK
=yes
10151 if test $HAVE_IMAGEMAGICK = yes; then
10153 $as_echo "#define HAVE_IMAGEMAGICK 1" >>confdefs.h
10155 CFLAGS
="$CFLAGS $IMAGEMAGICK_CFLAGS"
10156 LIBS
="$IMAGEMAGICK_LIBS $LIBS"
10157 for ac_func
in MagickExportImagePixels
10159 ac_fn_c_check_func
"$LINENO" "MagickExportImagePixels" "ac_cv_func_MagickExportImagePixels"
10160 if test "x$ac_cv_func_MagickExportImagePixels" = xyes
; then :
10161 cat >>confdefs.h
<<_ACEOF
10162 #define HAVE_MAGICKEXPORTIMAGEPIXELS 1
10174 if test "${with_gtk3}" = "yes"; then
10177 GTK_MODULES
="gtk+-3.0 >= $GTK_REQUIRED glib-2.0 >= $GLIB_REQUIRED"
10182 # Extract the first word of "pkg-config", so it can be a program name with args.
10183 set dummy pkg-config
; ac_word
=$2
10184 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10185 $as_echo_n "checking for $ac_word... " >&6; }
10186 if ${ac_cv_path_PKG_CONFIG+:} false
; then :
10187 $as_echo_n "(cached) " >&6
10189 case $PKG_CONFIG in
10191 ac_cv_path_PKG_CONFIG
="$PKG_CONFIG" # Let the user override the test with a path.
10194 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
10195 for as_dir
in $PATH
10198 test -z "$as_dir" && as_dir
=.
10199 for ac_exec_ext
in '' $ac_executable_extensions; do
10200 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10201 ac_cv_path_PKG_CONFIG
="$as_dir/$ac_word$ac_exec_ext"
10202 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10209 test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG
="no"
10213 PKG_CONFIG
=$ac_cv_path_PKG_CONFIG
10214 if test -n "$PKG_CONFIG"; then
10215 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5
10216 $as_echo "$PKG_CONFIG" >&6; }
10218 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10219 $as_echo "no" >&6; }
10224 if test "$PKG_CONFIG" = "no" ; then
10227 PKG_CONFIG_MIN_VERSION
=0.9.0
10228 if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
10229 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $GTK_MODULES" >&5
10230 $as_echo_n "checking for $GTK_MODULES... " >&6; }
10232 if $PKG_CONFIG --exists "$GTK_MODULES" 2>&5; then
10233 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
10234 $as_echo "yes" >&6; }
10237 { $as_echo "$as_me:${as_lineno-$LINENO}: checking GTK_CFLAGS" >&5
10238 $as_echo_n "checking GTK_CFLAGS... " >&6; }
10239 GTK_CFLAGS
=`$PKG_CONFIG --cflags "$GTK_MODULES"|sed -e 's,///*,/,g'`
10240 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GTK_CFLAGS" >&5
10241 $as_echo "$GTK_CFLAGS" >&6; }
10243 { $as_echo "$as_me:${as_lineno-$LINENO}: checking GTK_LIBS" >&5
10244 $as_echo_n "checking GTK_LIBS... " >&6; }
10245 GTK_LIBS
=`$PKG_CONFIG --libs "$GTK_MODULES"|sed -e 's,///*,/,g'`
10246 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GTK_LIBS" >&5
10247 $as_echo "$GTK_LIBS" >&6; }
10249 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10250 $as_echo "no" >&6; }
10253 ## If we have a custom action on failure, don't print errors, but
10254 ## do set a variable so people can do so.
10255 GTK_PKG_ERRORS
=`$PKG_CONFIG --errors-to-stdout --print-errors "$GTK_MODULES"`
10262 echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
10263 echo "*** See http://www.freedesktop.org/software/pkgconfig"
10267 if test $succeeded = yes; then
10273 if test "$pkg_check_gtk" = "no" && test "$USE_X_TOOLKIT" != "maybe"; then
10274 as_fn_error $?
"$GTK_PKG_ERRORS" "$LINENO" 5
10277 $as_echo "#define HAVE_GTK3 1" >>confdefs.h
10281 if test "$pkg_check_gtk" != "yes"; then
10283 if test "${with_gtk}" = "yes" ||
test "$USE_X_TOOLKIT" = "maybe"; then
10286 GTK_MODULES
="gtk+-2.0 >= $GTK_REQUIRED glib-2.0 >= $GLIB_REQUIRED"
10291 # Extract the first word of "pkg-config", so it can be a program name with args.
10292 set dummy pkg-config
; ac_word
=$2
10293 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10294 $as_echo_n "checking for $ac_word... " >&6; }
10295 if ${ac_cv_path_PKG_CONFIG+:} false
; then :
10296 $as_echo_n "(cached) " >&6
10298 case $PKG_CONFIG in
10300 ac_cv_path_PKG_CONFIG
="$PKG_CONFIG" # Let the user override the test with a path.
10303 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
10304 for as_dir
in $PATH
10307 test -z "$as_dir" && as_dir
=.
10308 for ac_exec_ext
in '' $ac_executable_extensions; do
10309 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10310 ac_cv_path_PKG_CONFIG
="$as_dir/$ac_word$ac_exec_ext"
10311 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10318 test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG
="no"
10322 PKG_CONFIG
=$ac_cv_path_PKG_CONFIG
10323 if test -n "$PKG_CONFIG"; then
10324 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5
10325 $as_echo "$PKG_CONFIG" >&6; }
10327 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10328 $as_echo "no" >&6; }
10333 if test "$PKG_CONFIG" = "no" ; then
10336 PKG_CONFIG_MIN_VERSION
=0.9.0
10337 if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
10338 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $GTK_MODULES" >&5
10339 $as_echo_n "checking for $GTK_MODULES... " >&6; }
10341 if $PKG_CONFIG --exists "$GTK_MODULES" 2>&5; then
10342 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
10343 $as_echo "yes" >&6; }
10346 { $as_echo "$as_me:${as_lineno-$LINENO}: checking GTK_CFLAGS" >&5
10347 $as_echo_n "checking GTK_CFLAGS... " >&6; }
10348 GTK_CFLAGS
=`$PKG_CONFIG --cflags "$GTK_MODULES"|sed -e 's,///*,/,g'`
10349 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GTK_CFLAGS" >&5
10350 $as_echo "$GTK_CFLAGS" >&6; }
10352 { $as_echo "$as_me:${as_lineno-$LINENO}: checking GTK_LIBS" >&5
10353 $as_echo_n "checking GTK_LIBS... " >&6; }
10354 GTK_LIBS
=`$PKG_CONFIG --libs "$GTK_MODULES"|sed -e 's,///*,/,g'`
10355 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GTK_LIBS" >&5
10356 $as_echo "$GTK_LIBS" >&6; }
10358 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10359 $as_echo "no" >&6; }
10362 ## If we have a custom action on failure, don't print errors, but
10363 ## do set a variable so people can do so.
10364 GTK_PKG_ERRORS
=`$PKG_CONFIG --errors-to-stdout --print-errors "$GTK_MODULES"`
10371 echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
10372 echo "*** See http://www.freedesktop.org/software/pkgconfig"
10376 if test $succeeded = yes; then
10382 if test "$pkg_check_gtk" = "no" && test "$USE_X_TOOLKIT" != "maybe"; then
10383 as_fn_error $?
"$GTK_PKG_ERRORS" "$LINENO" 5
10389 if test x
"$pkg_check_gtk" = xyes
; then
10393 C_SWITCH_X_SITE
="$C_SWITCH_X_SITE $GTK_CFLAGS"
10394 CFLAGS
="$CFLAGS $GTK_CFLAGS"
10395 LIBS
="$GTK_LIBS $LIBS"
10397 for ac_func
in gtk_main
10399 ac_fn_c_check_func
"$LINENO" "gtk_main" "ac_cv_func_gtk_main"
10400 if test "x$ac_cv_func_gtk_main" = xyes
; then :
10401 cat >>confdefs.h
<<_ACEOF
10402 #define HAVE_GTK_MAIN 1
10408 if test "${GTK_COMPILES}" != "yes"; then
10409 if test "$USE_X_TOOLKIT" != "maybe"; then
10410 as_fn_error $?
"Gtk+ wanted, but it does not compile, see config.log. Maybe some x11-devel files missing?" "$LINENO" 5;
10415 $as_echo "#define USE_GTK 1" >>confdefs.h
10419 if $PKG_CONFIG --atleast-version=2.10 gtk
+-2.0
; then
10422 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Your version of Gtk+ will have problems with
10423 closing open displays. This is no problem if you just use
10424 one display, but if you use more than one and close one of them
10425 Emacs may crash." >&5
10426 $as_echo "$as_me: WARNING: Your version of Gtk+ will have problems with
10427 closing open displays. This is no problem if you just use
10428 one display, but if you use more than one and close one of them
10429 Emacs may crash." >&2;}
10438 if test "${HAVE_GTK}" = "yes"; then
10440 if test "$with_toolkit_scroll_bars" != no
; then
10441 with_toolkit_scroll_bars
=yes
10444 HAVE_GTK_FILE_SELECTION
=no
10445 ac_fn_c_check_decl
"$LINENO" "GTK_TYPE_FILE_SELECTION" "ac_cv_have_decl_GTK_TYPE_FILE_SELECTION" "$ac_includes_default
10446 #include <gtk/gtk.h>
10448 if test "x$ac_cv_have_decl_GTK_TYPE_FILE_SELECTION" = xyes
; then :
10449 HAVE_GTK_FILE_SELECTION
=yes
10451 HAVE_GTK_FILE_SELECTION
=no
10454 if test "$HAVE_GTK_FILE_SELECTION" = yes; then
10455 for ac_func
in gtk_file_selection_new
10457 ac_fn_c_check_func
"$LINENO" "gtk_file_selection_new" "ac_cv_func_gtk_file_selection_new"
10458 if test "x$ac_cv_func_gtk_file_selection_new" = xyes
; then :
10459 cat >>confdefs.h
<<_ACEOF
10460 #define HAVE_GTK_FILE_SELECTION_NEW 1
10468 HAVE_GTK_AND_PTHREAD
=no
10469 for ac_header
in pthread.h
10471 ac_fn_c_check_header_mongrel
"$LINENO" "pthread.h" "ac_cv_header_pthread_h" "$ac_includes_default"
10472 if test "x$ac_cv_header_pthread_h" = xyes
; then :
10473 cat >>confdefs.h
<<_ACEOF
10474 #define HAVE_PTHREAD_H 1
10481 if test "$ac_cv_header_pthread_h"; then
10482 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pthread_self in -lpthread" >&5
10483 $as_echo_n "checking for pthread_self in -lpthread... " >&6; }
10484 if ${ac_cv_lib_pthread_pthread_self+:} false
; then :
10485 $as_echo_n "(cached) " >&6
10487 ac_check_lib_save_LIBS
=$LIBS
10488 LIBS
="-lpthread $LIBS"
10489 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
10490 /* end confdefs.h. */
10492 /* Override any GCC internal prototype to avoid an error.
10493 Use char because int might match the return type of a GCC
10494 builtin and then its argument prototype would still apply. */
10498 char pthread_self ();
10502 return pthread_self ();
10507 if ac_fn_c_try_link
"$LINENO"; then :
10508 ac_cv_lib_pthread_pthread_self
=yes
10510 ac_cv_lib_pthread_pthread_self
=no
10512 rm -f core conftest.err conftest.
$ac_objext \
10513 conftest
$ac_exeext conftest.
$ac_ext
10514 LIBS
=$ac_check_lib_save_LIBS
10516 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_pthread_pthread_self" >&5
10517 $as_echo "$ac_cv_lib_pthread_pthread_self" >&6; }
10518 if test "x$ac_cv_lib_pthread_pthread_self" = xyes
; then :
10519 HAVE_GTK_AND_PTHREAD
=yes
10523 if test "$HAVE_GTK_AND_PTHREAD" = yes; then
10524 case "${canonical}" in
10526 *) GTK_LIBS
="$GTK_LIBS -lpthread" ;;
10529 $as_echo "#define HAVE_GTK_AND_PTHREAD 1" >>confdefs.h
10533 for ac_func
in gtk_widget_get_window gtk_widget_set_has_window \
10534 gtk_dialog_get_action_area gtk_widget_get_sensitive \
10535 gtk_widget_get_mapped gtk_adjustment_get_page_size \
10536 gtk_orientable_set_orientation
10538 as_ac_var
=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
10539 ac_fn_c_check_func
"$LINENO" "$ac_func" "$as_ac_var"
10540 if eval test \"x\$
"$as_ac_var"\" = x
"yes"; then :
10541 cat >>confdefs.h
<<_ACEOF
10542 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
10553 if test "${with_dbus}" = "yes"; then
10557 # Extract the first word of "pkg-config", so it can be a program name with args.
10558 set dummy pkg-config
; ac_word
=$2
10559 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10560 $as_echo_n "checking for $ac_word... " >&6; }
10561 if ${ac_cv_path_PKG_CONFIG+:} false
; then :
10562 $as_echo_n "(cached) " >&6
10564 case $PKG_CONFIG in
10566 ac_cv_path_PKG_CONFIG
="$PKG_CONFIG" # Let the user override the test with a path.
10569 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
10570 for as_dir
in $PATH
10573 test -z "$as_dir" && as_dir
=.
10574 for ac_exec_ext
in '' $ac_executable_extensions; do
10575 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10576 ac_cv_path_PKG_CONFIG
="$as_dir/$ac_word$ac_exec_ext"
10577 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10584 test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG
="no"
10588 PKG_CONFIG
=$ac_cv_path_PKG_CONFIG
10589 if test -n "$PKG_CONFIG"; then
10590 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5
10591 $as_echo "$PKG_CONFIG" >&6; }
10593 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10594 $as_echo "no" >&6; }
10599 if test "$PKG_CONFIG" = "no" ; then
10602 PKG_CONFIG_MIN_VERSION
=0.9.0
10603 if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
10604 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dbus-1 >= 1.0" >&5
10605 $as_echo_n "checking for dbus-1 >= 1.0... " >&6; }
10607 if $PKG_CONFIG --exists "dbus-1 >= 1.0" 2>&5; then
10608 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
10609 $as_echo "yes" >&6; }
10612 { $as_echo "$as_me:${as_lineno-$LINENO}: checking DBUS_CFLAGS" >&5
10613 $as_echo_n "checking DBUS_CFLAGS... " >&6; }
10614 DBUS_CFLAGS
=`$PKG_CONFIG --cflags "dbus-1 >= 1.0"|sed -e 's,///*,/,g'`
10615 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DBUS_CFLAGS" >&5
10616 $as_echo "$DBUS_CFLAGS" >&6; }
10618 { $as_echo "$as_me:${as_lineno-$LINENO}: checking DBUS_LIBS" >&5
10619 $as_echo_n "checking DBUS_LIBS... " >&6; }
10620 DBUS_LIBS
=`$PKG_CONFIG --libs "dbus-1 >= 1.0"|sed -e 's,///*,/,g'`
10621 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DBUS_LIBS" >&5
10622 $as_echo "$DBUS_LIBS" >&6; }
10624 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10625 $as_echo "no" >&6; }
10628 ## If we have a custom action on failure, don't print errors, but
10629 ## do set a variable so people can do so.
10630 DBUS_PKG_ERRORS
=`$PKG_CONFIG --errors-to-stdout --print-errors "dbus-1 >= 1.0"`
10637 echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
10638 echo "*** See http://www.freedesktop.org/software/pkgconfig"
10642 if test $succeeded = yes; then
10648 if test "$HAVE_DBUS" = yes; then
10649 LIBS
="$LIBS $DBUS_LIBS"
10651 $as_echo "#define HAVE_DBUS 1" >>confdefs.h
10653 for ac_func
in dbus_watch_get_unix_fd
10655 ac_fn_c_check_func
"$LINENO" "dbus_watch_get_unix_fd" "ac_cv_func_dbus_watch_get_unix_fd"
10656 if test "x$ac_cv_func_dbus_watch_get_unix_fd" = xyes
; then :
10657 cat >>confdefs.h
<<_ACEOF
10658 #define HAVE_DBUS_WATCH_GET_UNIX_FD 1
10664 DBUS_OBJ
=dbusbind.o
10670 if test "${HAVE_X11}" = "yes" && test "${with_gconf}" = "yes"; then
10674 # Extract the first word of "pkg-config", so it can be a program name with args.
10675 set dummy pkg-config
; ac_word
=$2
10676 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10677 $as_echo_n "checking for $ac_word... " >&6; }
10678 if ${ac_cv_path_PKG_CONFIG+:} false
; then :
10679 $as_echo_n "(cached) " >&6
10681 case $PKG_CONFIG in
10683 ac_cv_path_PKG_CONFIG
="$PKG_CONFIG" # Let the user override the test with a path.
10686 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
10687 for as_dir
in $PATH
10690 test -z "$as_dir" && as_dir
=.
10691 for ac_exec_ext
in '' $ac_executable_extensions; do
10692 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10693 ac_cv_path_PKG_CONFIG
="$as_dir/$ac_word$ac_exec_ext"
10694 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10701 test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG
="no"
10705 PKG_CONFIG
=$ac_cv_path_PKG_CONFIG
10706 if test -n "$PKG_CONFIG"; then
10707 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5
10708 $as_echo "$PKG_CONFIG" >&6; }
10710 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10711 $as_echo "no" >&6; }
10716 if test "$PKG_CONFIG" = "no" ; then
10719 PKG_CONFIG_MIN_VERSION
=0.9.0
10720 if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
10721 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gconf-2.0 >= 2.13" >&5
10722 $as_echo_n "checking for gconf-2.0 >= 2.13... " >&6; }
10724 if $PKG_CONFIG --exists "gconf-2.0 >= 2.13" 2>&5; then
10725 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
10726 $as_echo "yes" >&6; }
10729 { $as_echo "$as_me:${as_lineno-$LINENO}: checking GCONF_CFLAGS" >&5
10730 $as_echo_n "checking GCONF_CFLAGS... " >&6; }
10731 GCONF_CFLAGS
=`$PKG_CONFIG --cflags "gconf-2.0 >= 2.13"|sed -e 's,///*,/,g'`
10732 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GCONF_CFLAGS" >&5
10733 $as_echo "$GCONF_CFLAGS" >&6; }
10735 { $as_echo "$as_me:${as_lineno-$LINENO}: checking GCONF_LIBS" >&5
10736 $as_echo_n "checking GCONF_LIBS... " >&6; }
10737 GCONF_LIBS
=`$PKG_CONFIG --libs "gconf-2.0 >= 2.13"|sed -e 's,///*,/,g'`
10738 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GCONF_LIBS" >&5
10739 $as_echo "$GCONF_LIBS" >&6; }
10741 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10742 $as_echo "no" >&6; }
10745 ## If we have a custom action on failure, don't print errors, but
10746 ## do set a variable so people can do so.
10747 GCONF_PKG_ERRORS
=`$PKG_CONFIG --errors-to-stdout --print-errors "gconf-2.0 >= 2.13"`
10754 echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
10755 echo "*** See http://www.freedesktop.org/software/pkgconfig"
10759 if test $succeeded = yes; then
10765 if test "$HAVE_GCONF" = yes; then
10767 $as_echo "#define HAVE_GCONF 1" >>confdefs.h
10769 for ac_func
in g_type_init
10771 ac_fn_c_check_func
"$LINENO" "g_type_init" "ac_cv_func_g_type_init"
10772 if test "x$ac_cv_func_g_type_init" = xyes
; then :
10773 cat >>confdefs.h
<<_ACEOF
10774 #define HAVE_G_TYPE_INIT 1
10785 if test "${with_selinux}" = "yes"; then
10786 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for lgetfilecon in -lselinux" >&5
10787 $as_echo_n "checking for lgetfilecon in -lselinux... " >&6; }
10788 if ${ac_cv_lib_selinux_lgetfilecon+:} false
; then :
10789 $as_echo_n "(cached) " >&6
10791 ac_check_lib_save_LIBS
=$LIBS
10792 LIBS
="-lselinux $LIBS"
10793 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
10794 /* end confdefs.h. */
10796 /* Override any GCC internal prototype to avoid an error.
10797 Use char because int might match the return type of a GCC
10798 builtin and then its argument prototype would still apply. */
10802 char lgetfilecon ();
10806 return lgetfilecon ();
10811 if ac_fn_c_try_link
"$LINENO"; then :
10812 ac_cv_lib_selinux_lgetfilecon
=yes
10814 ac_cv_lib_selinux_lgetfilecon
=no
10816 rm -f core conftest.err conftest.
$ac_objext \
10817 conftest
$ac_exeext conftest.
$ac_ext
10818 LIBS
=$ac_check_lib_save_LIBS
10820 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_selinux_lgetfilecon" >&5
10821 $as_echo "$ac_cv_lib_selinux_lgetfilecon" >&6; }
10822 if test "x$ac_cv_lib_selinux_lgetfilecon" = xyes
; then :
10823 HAVE_LIBSELINUX
=yes
10828 if test "$HAVE_LIBSELINUX" = yes; then
10830 $as_echo "#define HAVE_LIBSELINUX 1" >>confdefs.h
10832 LIBSELINUX_LIBS
=-lselinux
10838 if test "${with_gnutls}" = "yes" ; then
10842 # Extract the first word of "pkg-config", so it can be a program name with args.
10843 set dummy pkg-config
; ac_word
=$2
10844 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10845 $as_echo_n "checking for $ac_word... " >&6; }
10846 if ${ac_cv_path_PKG_CONFIG+:} false
; then :
10847 $as_echo_n "(cached) " >&6
10849 case $PKG_CONFIG in
10851 ac_cv_path_PKG_CONFIG
="$PKG_CONFIG" # Let the user override the test with a path.
10854 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
10855 for as_dir
in $PATH
10858 test -z "$as_dir" && as_dir
=.
10859 for ac_exec_ext
in '' $ac_executable_extensions; do
10860 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10861 ac_cv_path_PKG_CONFIG
="$as_dir/$ac_word$ac_exec_ext"
10862 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10869 test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG
="no"
10873 PKG_CONFIG
=$ac_cv_path_PKG_CONFIG
10874 if test -n "$PKG_CONFIG"; then
10875 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5
10876 $as_echo "$PKG_CONFIG" >&6; }
10878 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10879 $as_echo "no" >&6; }
10884 if test "$PKG_CONFIG" = "no" ; then
10887 PKG_CONFIG_MIN_VERSION
=0.9.0
10888 if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
10889 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gnutls >= 2.2.4" >&5
10890 $as_echo_n "checking for gnutls >= 2.2.4... " >&6; }
10892 if $PKG_CONFIG --exists "gnutls >= 2.2.4" 2>&5; then
10893 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
10894 $as_echo "yes" >&6; }
10897 { $as_echo "$as_me:${as_lineno-$LINENO}: checking LIBGNUTLS_CFLAGS" >&5
10898 $as_echo_n "checking LIBGNUTLS_CFLAGS... " >&6; }
10899 LIBGNUTLS_CFLAGS
=`$PKG_CONFIG --cflags "gnutls >= 2.2.4"|sed -e 's,///*,/,g'`
10900 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIBGNUTLS_CFLAGS" >&5
10901 $as_echo "$LIBGNUTLS_CFLAGS" >&6; }
10903 { $as_echo "$as_me:${as_lineno-$LINENO}: checking LIBGNUTLS_LIBS" >&5
10904 $as_echo_n "checking LIBGNUTLS_LIBS... " >&6; }
10905 LIBGNUTLS_LIBS
=`$PKG_CONFIG --libs "gnutls >= 2.2.4"|sed -e 's,///*,/,g'`
10906 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIBGNUTLS_LIBS" >&5
10907 $as_echo "$LIBGNUTLS_LIBS" >&6; }
10909 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10910 $as_echo "no" >&6; }
10911 LIBGNUTLS_CFLAGS
=""
10913 ## If we have a custom action on failure, don't print errors, but
10914 ## do set a variable so people can do so.
10915 LIBGNUTLS_PKG_ERRORS
=`$PKG_CONFIG --errors-to-stdout --print-errors "gnutls >= 2.2.4"`
10922 echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
10923 echo "*** See http://www.freedesktop.org/software/pkgconfig"
10927 if test $succeeded = yes; then
10933 if test "${HAVE_GNUTLS}" = "yes"; then
10935 $as_echo "#define HAVE_GNUTLS 1" >>confdefs.h
10944 if test x
"${USE_X_TOOLKIT}" = xmaybe ||
test x
"${USE_X_TOOLKIT}" = xLUCID
; then
10945 if test "$with_xaw3d" != no
; then
10946 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for xaw3d" >&5
10947 $as_echo_n "checking for xaw3d... " >&6; }
10948 if ${emacs_cv_xaw3d+:} false
; then :
10949 $as_echo_n "(cached) " >&6
10951 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
10952 /* end confdefs.h. */
10954 #include <X11/Intrinsic.h>
10955 #include <X11/Xaw3d/Simple.h>
10964 if ac_fn_c_try_link
"$LINENO"; then :
10965 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for XawScrollbarSetThumb in -lXaw3d" >&5
10966 $as_echo_n "checking for XawScrollbarSetThumb in -lXaw3d... " >&6; }
10967 if ${ac_cv_lib_Xaw3d_XawScrollbarSetThumb+:} false
; then :
10968 $as_echo_n "(cached) " >&6
10970 ac_check_lib_save_LIBS
=$LIBS
10971 LIBS
="-lXaw3d $LIBS"
10972 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
10973 /* end confdefs.h. */
10975 /* Override any GCC internal prototype to avoid an error.
10976 Use char because int might match the return type of a GCC
10977 builtin and then its argument prototype would still apply. */
10981 char XawScrollbarSetThumb ();
10985 return XawScrollbarSetThumb ();
10990 if ac_fn_c_try_link
"$LINENO"; then :
10991 ac_cv_lib_Xaw3d_XawScrollbarSetThumb
=yes
10993 ac_cv_lib_Xaw3d_XawScrollbarSetThumb
=no
10995 rm -f core conftest.err conftest.
$ac_objext \
10996 conftest
$ac_exeext conftest.
$ac_ext
10997 LIBS
=$ac_check_lib_save_LIBS
10999 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_Xaw3d_XawScrollbarSetThumb" >&5
11000 $as_echo "$ac_cv_lib_Xaw3d_XawScrollbarSetThumb" >&6; }
11001 if test "x$ac_cv_lib_Xaw3d_XawScrollbarSetThumb" = xyes
; then :
11010 rm -f core conftest.err conftest.
$ac_objext \
11011 conftest
$ac_exeext conftest.
$ac_ext
11017 if test $emacs_cv_xaw3d = yes; then
11018 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes; using Lucid toolkit" >&5
11019 $as_echo "yes; using Lucid toolkit" >&6; }
11020 USE_X_TOOLKIT
=LUCID
11024 $as_echo "#define HAVE_XAW3D 1" >>confdefs.h
11027 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11028 $as_echo "no" >&6; }
11029 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libXaw" >&5
11030 $as_echo_n "checking for libXaw... " >&6; }
11031 if ${emacs_cv_xaw+:} false
; then :
11032 $as_echo_n "(cached) " >&6
11034 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
11035 /* end confdefs.h. */
11037 #include <X11/Intrinsic.h>
11038 #include <X11/Xaw/Simple.h>
11047 if ac_fn_c_try_link
"$LINENO"; then :
11052 rm -f core conftest.err conftest.
$ac_objext \
11053 conftest
$ac_exeext conftest.
$ac_ext
11056 if test $emacs_cv_xaw = yes; then
11057 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes; using Lucid toolkit" >&5
11058 $as_echo "yes; using Lucid toolkit" >&6; }
11059 USE_X_TOOLKIT
=LUCID
11061 elif test x
"${USE_X_TOOLKIT}" = xLUCID
; then
11062 as_fn_error $?
"Lucid toolkit requires X11/Xaw include files" "$LINENO" 5
11064 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no; do not use toolkit by default" >&5
11065 $as_echo "no; do not use toolkit by default" >&6; }
11071 X_TOOLKIT_TYPE
=$USE_X_TOOLKIT
11074 if test "${USE_X_TOOLKIT}" != "none"; then
11075 { $as_echo "$as_me:${as_lineno-$LINENO}: checking X11 toolkit version" >&5
11076 $as_echo_n "checking X11 toolkit version... " >&6; }
11077 if ${emacs_cv_x11_toolkit_version_6+:} false
; then :
11078 $as_echo_n "(cached) " >&6
11080 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
11081 /* end confdefs.h. */
11082 #include <X11/Intrinsic.h>
11086 #if XtSpecificationRelease < 6
11094 if ac_fn_c_try_link
"$LINENO"; then :
11095 emacs_cv_x11_toolkit_version_6
=yes
11097 emacs_cv_x11_toolkit_version_6
=no
11099 rm -f core conftest.err conftest.
$ac_objext \
11100 conftest
$ac_exeext conftest.
$ac_ext
11103 HAVE_X11XTR6
=$emacs_cv_x11_toolkit_version_6
11104 if test $emacs_cv_x11_toolkit_version_6 = yes; then
11105 { $as_echo "$as_me:${as_lineno-$LINENO}: result: 6 or newer" >&5
11106 $as_echo "6 or newer" >&6; }
11108 $as_echo "#define HAVE_X11XTR6 1" >>confdefs.h
11110 LIBXTR6
="-lSM -lICE"
11112 ## Use libw.a along with X11R6 Xt.
11113 unixware
) LIBXTR6
="$LIBXTR6 -lw" ;;
11116 { $as_echo "$as_me:${as_lineno-$LINENO}: result: before 6" >&5
11117 $as_echo "before 6" >&6; }
11121 if test x
$HAVE_X11XTR6 = xyes
; then
11122 LIBS
="-lXt -lSM -lICE $LIBS"
11126 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for XmuConvertStandardSelection in -lXmu" >&5
11127 $as_echo_n "checking for XmuConvertStandardSelection in -lXmu... " >&6; }
11128 if ${ac_cv_lib_Xmu_XmuConvertStandardSelection+:} false
; then :
11129 $as_echo_n "(cached) " >&6
11131 ac_check_lib_save_LIBS
=$LIBS
11133 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
11134 /* end confdefs.h. */
11136 /* Override any GCC internal prototype to avoid an error.
11137 Use char because int might match the return type of a GCC
11138 builtin and then its argument prototype would still apply. */
11142 char XmuConvertStandardSelection ();
11146 return XmuConvertStandardSelection ();
11151 if ac_fn_c_try_link
"$LINENO"; then :
11152 ac_cv_lib_Xmu_XmuConvertStandardSelection
=yes
11154 ac_cv_lib_Xmu_XmuConvertStandardSelection
=no
11156 rm -f core conftest.err conftest.
$ac_objext \
11157 conftest
$ac_exeext conftest.
$ac_ext
11158 LIBS
=$ac_check_lib_save_LIBS
11160 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_Xmu_XmuConvertStandardSelection" >&5
11161 $as_echo "$ac_cv_lib_Xmu_XmuConvertStandardSelection" >&6; }
11162 if test "x$ac_cv_lib_Xmu_XmuConvertStandardSelection" = xyes
; then :
11163 cat >>confdefs.h
<<_ACEOF
11164 #define HAVE_LIBXMU 1
11171 test $ac_cv_lib_Xmu_XmuConvertStandardSelection = no
&& LIBS
="$OLDLIBS"
11177 ## These systems don't supply Xmu.
11179 test "X$ac_cv_lib_Xmu_XmuConvertStandardSelection" != "Xyes" && LIBXMU
=
11184 # On Irix 6.5, at least, we need XShapeQueryExtension from -lXext for Xaw3D.
11185 if test "${HAVE_X11}" = "yes"; then
11186 if test "${USE_X_TOOLKIT}" != "none"; then
11187 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for XShapeQueryExtension in -lXext" >&5
11188 $as_echo_n "checking for XShapeQueryExtension in -lXext... " >&6; }
11189 if ${ac_cv_lib_Xext_XShapeQueryExtension+:} false
; then :
11190 $as_echo_n "(cached) " >&6
11192 ac_check_lib_save_LIBS
=$LIBS
11193 LIBS
="-lXext $LIBS"
11194 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
11195 /* end confdefs.h. */
11197 /* Override any GCC internal prototype to avoid an error.
11198 Use char because int might match the return type of a GCC
11199 builtin and then its argument prototype would still apply. */
11203 char XShapeQueryExtension ();
11207 return XShapeQueryExtension ();
11212 if ac_fn_c_try_link
"$LINENO"; then :
11213 ac_cv_lib_Xext_XShapeQueryExtension
=yes
11215 ac_cv_lib_Xext_XShapeQueryExtension
=no
11217 rm -f core conftest.err conftest.
$ac_objext \
11218 conftest
$ac_exeext conftest.
$ac_ext
11219 LIBS
=$ac_check_lib_save_LIBS
11221 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_Xext_XShapeQueryExtension" >&5
11222 $as_echo "$ac_cv_lib_Xext_XShapeQueryExtension" >&6; }
11223 if test "x$ac_cv_lib_Xext_XShapeQueryExtension" = xyes
; then :
11224 cat >>confdefs.h
<<_ACEOF
11225 #define HAVE_LIBXEXT 1
11228 LIBS
="-lXext $LIBS"
11236 if test "${USE_X_TOOLKIT}" = "MOTIF"; then
11237 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Motif version 2.1" >&5
11238 $as_echo_n "checking for Motif version 2.1... " >&6; }
11239 if ${emacs_cv_motif_version_2_1+:} false
; then :
11240 $as_echo_n "(cached) " >&6
11242 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
11243 /* end confdefs.h. */
11248 #if XmVERSION > 2 || (XmVERSION == 2 && XmREVISION >= 1)
11251 Motif version prior to 2.1.
11257 if ac_fn_c_try_compile
"$LINENO"; then :
11258 emacs_cv_motif_version_2_1
=yes
11260 emacs_cv_motif_version_2_1
=no
11262 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
11264 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $emacs_cv_motif_version_2_1" >&5
11265 $as_echo "$emacs_cv_motif_version_2_1" >&6; }
11266 if test $emacs_cv_motif_version_2_1 = yes; then
11267 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for XpCreateContext in -lXp" >&5
11268 $as_echo_n "checking for XpCreateContext in -lXp... " >&6; }
11269 if ${ac_cv_lib_Xp_XpCreateContext+:} false
; then :
11270 $as_echo_n "(cached) " >&6
11272 ac_check_lib_save_LIBS
=$LIBS
11274 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
11275 /* end confdefs.h. */
11277 /* Override any GCC internal prototype to avoid an error.
11278 Use char because int might match the return type of a GCC
11279 builtin and then its argument prototype would still apply. */
11283 char XpCreateContext ();
11287 return XpCreateContext ();
11292 if ac_fn_c_try_link
"$LINENO"; then :
11293 ac_cv_lib_Xp_XpCreateContext
=yes
11295 ac_cv_lib_Xp_XpCreateContext
=no
11297 rm -f core conftest.err conftest.
$ac_objext \
11298 conftest
$ac_exeext conftest.
$ac_ext
11299 LIBS
=$ac_check_lib_save_LIBS
11301 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_Xp_XpCreateContext" >&5
11302 $as_echo "$ac_cv_lib_Xp_XpCreateContext" >&6; }
11303 if test "x$ac_cv_lib_Xp_XpCreateContext" = xyes
; then :
11308 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for LessTif where some systems put it" >&5
11309 $as_echo_n "checking for LessTif where some systems put it... " >&6; }
11310 if ${emacs_cv_lesstif+:} false
; then :
11311 $as_echo_n "(cached) " >&6
11313 # We put this in CFLAGS temporarily to precede other -I options
11314 # that might be in CFLAGS temporarily.
11315 # We put this in CPPFLAGS where it precedes the other -I options.
11316 OLD_CPPFLAGS
=$CPPFLAGS
11318 CPPFLAGS
="-I/usr/X11R6/LessTif/Motif1.2/include $CPPFLAGS"
11319 CFLAGS
="-I/usr/X11R6/LessTif/Motif1.2/include $CFLAGS"
11320 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
11321 /* end confdefs.h. */
11322 #include </usr/X11R6/LessTif/Motif1.2/include/Xm/Xm.h>
11331 if ac_fn_c_try_compile
"$LINENO"; then :
11332 emacs_cv_lesstif
=yes
11334 emacs_cv_lesstif
=no
11336 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
11338 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $emacs_cv_lesstif" >&5
11339 $as_echo "$emacs_cv_lesstif" >&6; }
11340 if test $emacs_cv_lesstif = yes; then
11341 # Make sure this -I option remains in CPPFLAGS after it is set
11342 # back to REAL_CPPFLAGS.
11343 # There is no need to change REAL_CFLAGS, because REAL_CFLAGS does not
11344 # have those other -I options anyway. Ultimately, having this
11345 # directory ultimately in CPPFLAGS will be enough.
11346 REAL_CPPFLAGS
="-I/usr/X11R6/LessTif/Motif1.2/include $REAL_CPPFLAGS"
11347 LDFLAGS
="-L/usr/X11R6/LessTif/Motif1.2/lib $LDFLAGS"
11350 CPPFLAGS
=$OLD_CPPFLAGS
11356 USE_TOOLKIT_SCROLL_BARS
=no
11357 if test "${with_toolkit_scroll_bars}" != "no"; then
11358 if test "${USE_X_TOOLKIT}" != "none"; then
11359 if test "${USE_X_TOOLKIT}" = "MOTIF"; then
11360 $as_echo "#define USE_TOOLKIT_SCROLL_BARS 1" >>confdefs.h
11363 USE_TOOLKIT_SCROLL_BARS
=yes
11364 elif test "${HAVE_XAW3D}" = "yes"; then
11365 $as_echo "#define USE_TOOLKIT_SCROLL_BARS 1" >>confdefs.h
11367 USE_TOOLKIT_SCROLL_BARS
=yes
11369 elif test "${HAVE_GTK}" = "yes"; then
11370 $as_echo "#define USE_TOOLKIT_SCROLL_BARS 1" >>confdefs.h
11372 USE_TOOLKIT_SCROLL_BARS
=yes
11373 elif test "${HAVE_NS}" = "yes"; then
11374 $as_echo "#define USE_TOOLKIT_SCROLL_BARS 1" >>confdefs.h
11376 USE_TOOLKIT_SCROLL_BARS
=yes
11380 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
11381 /* end confdefs.h. */
11383 #include <X11/Xlib.h>
11384 #include <X11/Xresource.h>
11393 if ac_fn_c_try_compile
"$LINENO"; then :
11396 $as_echo "#define HAVE_XIM 1" >>confdefs.h
11401 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
11404 if test "${with_xim}" != "no"; then
11406 $as_echo "#define USE_XIM 1" >>confdefs.h
11411 if test "${HAVE_XIM}" != "no"; then
11412 late_CFLAGS
=$CFLAGS
11413 if test "$GCC" = yes; then
11414 CFLAGS
="$CFLAGS --pedantic-errors"
11416 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
11417 /* end confdefs.h. */
11419 #include <X11/Xlib.h>
11420 #include <X11/Xresource.h>
11429 XPointer *client_data;
11431 /* If we're not using GCC, it's probably not XFree86, and this is
11432 probably right, but we can't use something like --pedantic-errors. */
11433 extern Bool XRegisterIMInstantiateCallback(Display*, XrmDatabase, char*,
11434 char*, XIMProc, XPointer*);
11436 (void)XRegisterIMInstantiateCallback(display, db, res_name, res_class, callback,
11442 if ac_fn_c_try_compile
"$LINENO"; then :
11443 emacs_cv_arg6_star
=yes
11445 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
11446 if test "$emacs_cv_arg6_star" = yes; then
11447 $as_echo "#define XRegisterIMInstantiateCallback_arg6 XPointer*" >>confdefs.h
11450 $as_echo "#define XRegisterIMInstantiateCallback_arg6 XPointer" >>confdefs.h
11453 CFLAGS
=$late_CFLAGS
11456 ### Start of font-backend (under any platform) section.
11457 # (nothing here yet -- this is a placeholder)
11458 ### End of font-backend (under any platform) section.
11460 ### Start of font-backend (under X11) section.
11461 if test "${HAVE_X11}" = "yes"; then
11465 # Extract the first word of "pkg-config", so it can be a program name with args.
11466 set dummy pkg-config
; ac_word
=$2
11467 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11468 $as_echo_n "checking for $ac_word... " >&6; }
11469 if ${ac_cv_path_PKG_CONFIG+:} false
; then :
11470 $as_echo_n "(cached) " >&6
11472 case $PKG_CONFIG in
11474 ac_cv_path_PKG_CONFIG
="$PKG_CONFIG" # Let the user override the test with a path.
11477 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
11478 for as_dir
in $PATH
11481 test -z "$as_dir" && as_dir
=.
11482 for ac_exec_ext
in '' $ac_executable_extensions; do
11483 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11484 ac_cv_path_PKG_CONFIG
="$as_dir/$ac_word$ac_exec_ext"
11485 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11492 test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG
="no"
11496 PKG_CONFIG
=$ac_cv_path_PKG_CONFIG
11497 if test -n "$PKG_CONFIG"; then
11498 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5
11499 $as_echo "$PKG_CONFIG" >&6; }
11501 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11502 $as_echo "no" >&6; }
11507 if test "$PKG_CONFIG" = "no" ; then
11510 PKG_CONFIG_MIN_VERSION
=0.9.0
11511 if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
11512 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for fontconfig >= 2.2.0" >&5
11513 $as_echo_n "checking for fontconfig >= 2.2.0... " >&6; }
11515 if $PKG_CONFIG --exists "fontconfig >= 2.2.0" 2>&5; then
11516 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11517 $as_echo "yes" >&6; }
11520 { $as_echo "$as_me:${as_lineno-$LINENO}: checking FONTCONFIG_CFLAGS" >&5
11521 $as_echo_n "checking FONTCONFIG_CFLAGS... " >&6; }
11522 FONTCONFIG_CFLAGS
=`$PKG_CONFIG --cflags "fontconfig >= 2.2.0"|sed -e 's,///*,/,g'`
11523 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $FONTCONFIG_CFLAGS" >&5
11524 $as_echo "$FONTCONFIG_CFLAGS" >&6; }
11526 { $as_echo "$as_me:${as_lineno-$LINENO}: checking FONTCONFIG_LIBS" >&5
11527 $as_echo_n "checking FONTCONFIG_LIBS... " >&6; }
11528 FONTCONFIG_LIBS
=`$PKG_CONFIG --libs "fontconfig >= 2.2.0"|sed -e 's,///*,/,g'`
11529 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $FONTCONFIG_LIBS" >&5
11530 $as_echo "$FONTCONFIG_LIBS" >&6; }
11532 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11533 $as_echo "no" >&6; }
11534 FONTCONFIG_CFLAGS
=""
11536 ## If we have a custom action on failure, don't print errors, but
11537 ## do set a variable so people can do so.
11538 FONTCONFIG_PKG_ERRORS
=`$PKG_CONFIG --errors-to-stdout --print-errors "fontconfig >= 2.2.0"`
11545 echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
11546 echo "*** See http://www.freedesktop.org/software/pkgconfig"
11550 if test $succeeded = yes; then
11557 ## Use -lXft if available, unless `--with-xft=no'.
11559 if test "${HAVE_FC}" = "no" ||
test "x${with_x}" = "xno"; then
11562 if test "x${with_xft}" != "xno"; then
11567 # Extract the first word of "pkg-config", so it can be a program name with args.
11568 set dummy pkg-config
; ac_word
=$2
11569 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11570 $as_echo_n "checking for $ac_word... " >&6; }
11571 if ${ac_cv_path_PKG_CONFIG+:} false
; then :
11572 $as_echo_n "(cached) " >&6
11574 case $PKG_CONFIG in
11576 ac_cv_path_PKG_CONFIG
="$PKG_CONFIG" # Let the user override the test with a path.
11579 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
11580 for as_dir
in $PATH
11583 test -z "$as_dir" && as_dir
=.
11584 for ac_exec_ext
in '' $ac_executable_extensions; do
11585 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11586 ac_cv_path_PKG_CONFIG
="$as_dir/$ac_word$ac_exec_ext"
11587 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11594 test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG
="no"
11598 PKG_CONFIG
=$ac_cv_path_PKG_CONFIG
11599 if test -n "$PKG_CONFIG"; then
11600 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5
11601 $as_echo "$PKG_CONFIG" >&6; }
11603 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11604 $as_echo "no" >&6; }
11609 if test "$PKG_CONFIG" = "no" ; then
11612 PKG_CONFIG_MIN_VERSION
=0.9.0
11613 if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
11614 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for xft >= 0.13.0" >&5
11615 $as_echo_n "checking for xft >= 0.13.0... " >&6; }
11617 if $PKG_CONFIG --exists "xft >= 0.13.0" 2>&5; then
11618 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11619 $as_echo "yes" >&6; }
11622 { $as_echo "$as_me:${as_lineno-$LINENO}: checking XFT_CFLAGS" >&5
11623 $as_echo_n "checking XFT_CFLAGS... " >&6; }
11624 XFT_CFLAGS
=`$PKG_CONFIG --cflags "xft >= 0.13.0"|sed -e 's,///*,/,g'`
11625 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $XFT_CFLAGS" >&5
11626 $as_echo "$XFT_CFLAGS" >&6; }
11628 { $as_echo "$as_me:${as_lineno-$LINENO}: checking XFT_LIBS" >&5
11629 $as_echo_n "checking XFT_LIBS... " >&6; }
11630 XFT_LIBS
=`$PKG_CONFIG --libs "xft >= 0.13.0"|sed -e 's,///*,/,g'`
11631 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $XFT_LIBS" >&5
11632 $as_echo "$XFT_LIBS" >&6; }
11634 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11635 $as_echo "no" >&6; }
11638 ## If we have a custom action on failure, don't print errors, but
11639 ## do set a variable so people can do so.
11640 XFT_PKG_ERRORS
=`$PKG_CONFIG --errors-to-stdout --print-errors "xft >= 0.13.0"`
11647 echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
11648 echo "*** See http://www.freedesktop.org/software/pkgconfig"
11652 if test $succeeded = yes; then
11658 ## Because xftfont.c uses XRenderQueryExtension, we also
11659 ## need to link to -lXrender.
11661 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for XRenderQueryExtension in -lXrender" >&5
11662 $as_echo_n "checking for XRenderQueryExtension in -lXrender... " >&6; }
11663 if ${ac_cv_lib_Xrender_XRenderQueryExtension+:} false
; then :
11664 $as_echo_n "(cached) " >&6
11666 ac_check_lib_save_LIBS
=$LIBS
11667 LIBS
="-lXrender $LIBS"
11668 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
11669 /* end confdefs.h. */
11671 /* Override any GCC internal prototype to avoid an error.
11672 Use char because int might match the return type of a GCC
11673 builtin and then its argument prototype would still apply. */
11677 char XRenderQueryExtension ();
11681 return XRenderQueryExtension ();
11686 if ac_fn_c_try_link
"$LINENO"; then :
11687 ac_cv_lib_Xrender_XRenderQueryExtension
=yes
11689 ac_cv_lib_Xrender_XRenderQueryExtension
=no
11691 rm -f core conftest.err conftest.
$ac_objext \
11692 conftest
$ac_exeext conftest.
$ac_ext
11693 LIBS
=$ac_check_lib_save_LIBS
11695 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_Xrender_XRenderQueryExtension" >&5
11696 $as_echo "$ac_cv_lib_Xrender_XRenderQueryExtension" >&6; }
11697 if test "x$ac_cv_lib_Xrender_XRenderQueryExtension" = xyes
; then :
11701 if test "$HAVE_XFT" != no
&& test "$HAVE_XRENDER" != no
; then
11702 OLD_CPPFLAGS
="$CPPFLAGS"
11703 OLD_CFLAGS
="$CFLAGS"
11705 CPPFLAGS
="$CPPFLAGS $XFT_CFLAGS"
11706 CFLAGS
="$CFLAGS $XFT_CFLAGS"
11707 XFT_LIBS
="-lXrender $XFT_LIBS"
11708 LIBS
="$XFT_LIBS $LIBS"
11709 ac_fn_c_check_header_mongrel
"$LINENO" "X11/Xft/Xft.h" "ac_cv_header_X11_Xft_Xft_h" "$ac_includes_default"
11710 if test "x$ac_cv_header_X11_Xft_Xft_h" = xyes
; then :
11711 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for XftFontOpen in -lXft" >&5
11712 $as_echo_n "checking for XftFontOpen in -lXft... " >&6; }
11713 if ${ac_cv_lib_Xft_XftFontOpen+:} false
; then :
11714 $as_echo_n "(cached) " >&6
11716 ac_check_lib_save_LIBS
=$LIBS
11717 LIBS
="-lXft $XFT_LIBS $LIBS"
11718 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
11719 /* end confdefs.h. */
11721 /* Override any GCC internal prototype to avoid an error.
11722 Use char because int might match the return type of a GCC
11723 builtin and then its argument prototype would still apply. */
11727 char XftFontOpen ();
11731 return XftFontOpen ();
11736 if ac_fn_c_try_link
"$LINENO"; then :
11737 ac_cv_lib_Xft_XftFontOpen
=yes
11739 ac_cv_lib_Xft_XftFontOpen
=no
11741 rm -f core conftest.err conftest.
$ac_objext \
11742 conftest
$ac_exeext conftest.
$ac_ext
11743 LIBS
=$ac_check_lib_save_LIBS
11745 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_Xft_XftFontOpen" >&5
11746 $as_echo "$ac_cv_lib_Xft_XftFontOpen" >&6; }
11747 if test "x$ac_cv_lib_Xft_XftFontOpen" = xyes
; then :
11755 if test "${HAVE_XFT}" = "yes"; then
11757 $as_echo "#define HAVE_XFT 1" >>confdefs.h
11760 C_SWITCH_X_SITE
="$C_SWITCH_X_SITE $XFT_CFLAGS"
11762 CPPFLAGS
="$OLD_CPPFLAGS"
11763 CFLAGS
="$OLD_CFLAGS"
11765 fi # "${HAVE_XFT}" = "yes"
11766 fi # "$HAVE_XFT" != no
11767 fi # "x${with_xft}" != "xno"
11769 ## We used to allow building with FreeType and without Xft.
11770 ## However, the ftx font backend driver is not in good shape.
11771 if test "$HAVE_XFT" != "yes"; then
11778 # Extract the first word of "pkg-config", so it can be a program name with args.
11779 set dummy pkg-config
; ac_word
=$2
11780 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11781 $as_echo_n "checking for $ac_word... " >&6; }
11782 if ${ac_cv_path_PKG_CONFIG+:} false
; then :
11783 $as_echo_n "(cached) " >&6
11785 case $PKG_CONFIG in
11787 ac_cv_path_PKG_CONFIG
="$PKG_CONFIG" # Let the user override the test with a path.
11790 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
11791 for as_dir
in $PATH
11794 test -z "$as_dir" && as_dir
=.
11795 for ac_exec_ext
in '' $ac_executable_extensions; do
11796 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11797 ac_cv_path_PKG_CONFIG
="$as_dir/$ac_word$ac_exec_ext"
11798 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11805 test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG
="no"
11809 PKG_CONFIG
=$ac_cv_path_PKG_CONFIG
11810 if test -n "$PKG_CONFIG"; then
11811 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5
11812 $as_echo "$PKG_CONFIG" >&6; }
11814 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11815 $as_echo "no" >&6; }
11820 if test "$PKG_CONFIG" = "no" ; then
11823 PKG_CONFIG_MIN_VERSION
=0.9.0
11824 if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
11825 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for freetype2" >&5
11826 $as_echo_n "checking for freetype2... " >&6; }
11828 if $PKG_CONFIG --exists "freetype2" 2>&5; then
11829 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11830 $as_echo "yes" >&6; }
11833 { $as_echo "$as_me:${as_lineno-$LINENO}: checking FREETYPE_CFLAGS" >&5
11834 $as_echo_n "checking FREETYPE_CFLAGS... " >&6; }
11835 FREETYPE_CFLAGS
=`$PKG_CONFIG --cflags "freetype2"|sed -e 's,///*,/,g'`
11836 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $FREETYPE_CFLAGS" >&5
11837 $as_echo "$FREETYPE_CFLAGS" >&6; }
11839 { $as_echo "$as_me:${as_lineno-$LINENO}: checking FREETYPE_LIBS" >&5
11840 $as_echo_n "checking FREETYPE_LIBS... " >&6; }
11841 FREETYPE_LIBS
=`$PKG_CONFIG --libs "freetype2"|sed -e 's,///*,/,g'`
11842 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $FREETYPE_LIBS" >&5
11843 $as_echo "$FREETYPE_LIBS" >&6; }
11845 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11846 $as_echo "no" >&6; }
11849 ## If we have a custom action on failure, don't print errors, but
11850 ## do set a variable so people can do so.
11851 FREETYPE_PKG_ERRORS
=`$PKG_CONFIG --errors-to-stdout --print-errors "freetype2"`
11858 echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
11859 echo "*** See http://www.freedesktop.org/software/pkgconfig"
11863 if test $succeeded = yes; then
11870 test "$HAVE_FREETYPE" = "no" && as_fn_error $?
"libxft requires libfreetype" "$LINENO" 5
11874 if test "${HAVE_FREETYPE}" = "yes"; then
11876 $as_echo "#define HAVE_FREETYPE 1" >>confdefs.h
11878 if test "${with_libotf}" != "no"; then
11882 # Extract the first word of "pkg-config", so it can be a program name with args.
11883 set dummy pkg-config
; ac_word
=$2
11884 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11885 $as_echo_n "checking for $ac_word... " >&6; }
11886 if ${ac_cv_path_PKG_CONFIG+:} false
; then :
11887 $as_echo_n "(cached) " >&6
11889 case $PKG_CONFIG in
11891 ac_cv_path_PKG_CONFIG
="$PKG_CONFIG" # Let the user override the test with a path.
11894 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
11895 for as_dir
in $PATH
11898 test -z "$as_dir" && as_dir
=.
11899 for ac_exec_ext
in '' $ac_executable_extensions; do
11900 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11901 ac_cv_path_PKG_CONFIG
="$as_dir/$ac_word$ac_exec_ext"
11902 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11909 test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG
="no"
11913 PKG_CONFIG
=$ac_cv_path_PKG_CONFIG
11914 if test -n "$PKG_CONFIG"; then
11915 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5
11916 $as_echo "$PKG_CONFIG" >&6; }
11918 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11919 $as_echo "no" >&6; }
11924 if test "$PKG_CONFIG" = "no" ; then
11927 PKG_CONFIG_MIN_VERSION
=0.9.0
11928 if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
11929 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libotf" >&5
11930 $as_echo_n "checking for libotf... " >&6; }
11932 if $PKG_CONFIG --exists "libotf" 2>&5; then
11933 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11934 $as_echo "yes" >&6; }
11937 { $as_echo "$as_me:${as_lineno-$LINENO}: checking LIBOTF_CFLAGS" >&5
11938 $as_echo_n "checking LIBOTF_CFLAGS... " >&6; }
11939 LIBOTF_CFLAGS
=`$PKG_CONFIG --cflags "libotf"|sed -e 's,///*,/,g'`
11940 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIBOTF_CFLAGS" >&5
11941 $as_echo "$LIBOTF_CFLAGS" >&6; }
11943 { $as_echo "$as_me:${as_lineno-$LINENO}: checking LIBOTF_LIBS" >&5
11944 $as_echo_n "checking LIBOTF_LIBS... " >&6; }
11945 LIBOTF_LIBS
=`$PKG_CONFIG --libs "libotf"|sed -e 's,///*,/,g'`
11946 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIBOTF_LIBS" >&5
11947 $as_echo "$LIBOTF_LIBS" >&6; }
11949 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11950 $as_echo "no" >&6; }
11953 ## If we have a custom action on failure, don't print errors, but
11954 ## do set a variable so people can do so.
11955 LIBOTF_PKG_ERRORS
=`$PKG_CONFIG --errors-to-stdout --print-errors "libotf"`
11962 echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
11963 echo "*** See http://www.freedesktop.org/software/pkgconfig"
11967 if test $succeeded = yes; then
11973 if test "$HAVE_LIBOTF" = "yes"; then
11975 $as_echo "#define HAVE_LIBOTF 1" >>confdefs.h
11977 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for OTF_get_variation_glyphs in -lotf" >&5
11978 $as_echo_n "checking for OTF_get_variation_glyphs in -lotf... " >&6; }
11979 if ${ac_cv_lib_otf_OTF_get_variation_glyphs+:} false
; then :
11980 $as_echo_n "(cached) " >&6
11982 ac_check_lib_save_LIBS
=$LIBS
11984 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
11985 /* end confdefs.h. */
11987 /* Override any GCC internal prototype to avoid an error.
11988 Use char because int might match the return type of a GCC
11989 builtin and then its argument prototype would still apply. */
11993 char OTF_get_variation_glyphs ();
11997 return OTF_get_variation_glyphs ();
12002 if ac_fn_c_try_link
"$LINENO"; then :
12003 ac_cv_lib_otf_OTF_get_variation_glyphs
=yes
12005 ac_cv_lib_otf_OTF_get_variation_glyphs
=no
12007 rm -f core conftest.err conftest.
$ac_objext \
12008 conftest
$ac_exeext conftest.
$ac_ext
12009 LIBS
=$ac_check_lib_save_LIBS
12011 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_otf_OTF_get_variation_glyphs" >&5
12012 $as_echo "$ac_cv_lib_otf_OTF_get_variation_glyphs" >&6; }
12013 if test "x$ac_cv_lib_otf_OTF_get_variation_glyphs" = xyes
; then :
12014 HAVE_OTF_GET_VARIATION_GLYPHS
=yes
12016 HAVE_OTF_GET_VARIATION_GLYPHS
=no
12019 if test "${HAVE_OTF_GET_VARIATION_GLYPHS}" = "yes"; then
12021 $as_echo "#define HAVE_OTF_GET_VARIATION_GLYPHS 1" >>confdefs.h
12029 if test "${HAVE_LIBOTF}" = yes; then
12030 if test "${with_m17n_flt}" != "no"; then
12034 # Extract the first word of "pkg-config", so it can be a program name with args.
12035 set dummy pkg-config
; ac_word
=$2
12036 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12037 $as_echo_n "checking for $ac_word... " >&6; }
12038 if ${ac_cv_path_PKG_CONFIG+:} false
; then :
12039 $as_echo_n "(cached) " >&6
12041 case $PKG_CONFIG in
12043 ac_cv_path_PKG_CONFIG
="$PKG_CONFIG" # Let the user override the test with a path.
12046 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
12047 for as_dir
in $PATH
12050 test -z "$as_dir" && as_dir
=.
12051 for ac_exec_ext
in '' $ac_executable_extensions; do
12052 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
12053 ac_cv_path_PKG_CONFIG
="$as_dir/$ac_word$ac_exec_ext"
12054 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12061 test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG
="no"
12065 PKG_CONFIG
=$ac_cv_path_PKG_CONFIG
12066 if test -n "$PKG_CONFIG"; then
12067 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5
12068 $as_echo "$PKG_CONFIG" >&6; }
12070 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12071 $as_echo "no" >&6; }
12076 if test "$PKG_CONFIG" = "no" ; then
12079 PKG_CONFIG_MIN_VERSION
=0.9.0
12080 if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
12081 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for m17n-flt" >&5
12082 $as_echo_n "checking for m17n-flt... " >&6; }
12084 if $PKG_CONFIG --exists "m17n-flt" 2>&5; then
12085 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
12086 $as_echo "yes" >&6; }
12089 { $as_echo "$as_me:${as_lineno-$LINENO}: checking M17N_FLT_CFLAGS" >&5
12090 $as_echo_n "checking M17N_FLT_CFLAGS... " >&6; }
12091 M17N_FLT_CFLAGS
=`$PKG_CONFIG --cflags "m17n-flt"|sed -e 's,///*,/,g'`
12092 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $M17N_FLT_CFLAGS" >&5
12093 $as_echo "$M17N_FLT_CFLAGS" >&6; }
12095 { $as_echo "$as_me:${as_lineno-$LINENO}: checking M17N_FLT_LIBS" >&5
12096 $as_echo_n "checking M17N_FLT_LIBS... " >&6; }
12097 M17N_FLT_LIBS
=`$PKG_CONFIG --libs "m17n-flt"|sed -e 's,///*,/,g'`
12098 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $M17N_FLT_LIBS" >&5
12099 $as_echo "$M17N_FLT_LIBS" >&6; }
12101 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12102 $as_echo "no" >&6; }
12105 ## If we have a custom action on failure, don't print errors, but
12106 ## do set a variable so people can do so.
12107 M17N_FLT_PKG_ERRORS
=`$PKG_CONFIG --errors-to-stdout --print-errors "m17n-flt"`
12114 echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
12115 echo "*** See http://www.freedesktop.org/software/pkgconfig"
12119 if test $succeeded = yes; then
12125 if test "$HAVE_M17N_FLT" = "yes"; then
12127 $as_echo "#define HAVE_M17N_FLT 1" >>confdefs.h
12139 ### End of font-backend (under X11) section.
12150 ### Use -lXpm if available, unless `--with-xpm=no'.
12153 if test "${HAVE_X11}" = "yes"; then
12154 if test "${with_xpm}" != "no"; then
12155 ac_fn_c_check_header_mongrel
"$LINENO" "X11/xpm.h" "ac_cv_header_X11_xpm_h" "$ac_includes_default"
12156 if test "x$ac_cv_header_X11_xpm_h" = xyes
; then :
12157 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for XpmReadFileToPixmap in -lXpm" >&5
12158 $as_echo_n "checking for XpmReadFileToPixmap in -lXpm... " >&6; }
12159 if ${ac_cv_lib_Xpm_XpmReadFileToPixmap+:} false
; then :
12160 $as_echo_n "(cached) " >&6
12162 ac_check_lib_save_LIBS
=$LIBS
12163 LIBS
="-lXpm -lX11 $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 XpmReadFileToPixmap ();
12177 return XpmReadFileToPixmap ();
12182 if ac_fn_c_try_link
"$LINENO"; then :
12183 ac_cv_lib_Xpm_XpmReadFileToPixmap
=yes
12185 ac_cv_lib_Xpm_XpmReadFileToPixmap
=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_Xpm_XpmReadFileToPixmap" >&5
12192 $as_echo "$ac_cv_lib_Xpm_XpmReadFileToPixmap" >&6; }
12193 if test "x$ac_cv_lib_Xpm_XpmReadFileToPixmap" = xyes
; then :
12200 if test "${HAVE_XPM}" = "yes"; then
12201 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for XpmReturnAllocPixels preprocessor define" >&5
12202 $as_echo_n "checking for XpmReturnAllocPixels preprocessor define... " >&6; }
12203 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
12204 /* end confdefs.h. */
12205 #include "X11/xpm.h"
12206 #ifndef XpmReturnAllocPixels
12207 no_return_alloc_pixels
12211 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
12212 $EGREP "no_return_alloc_pixels" >/dev
/null
2>&1; then :
12220 if test "${HAVE_XPM}" = "yes"; then
12221 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
12222 $as_echo "yes" >&6; }
12224 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12225 $as_echo "no" >&6; }
12230 if test "${HAVE_XPM}" = "yes"; then
12232 $as_echo "#define HAVE_XPM 1" >>confdefs.h
12239 ### Use -ljpeg if available, unless `--with-jpeg=no'.
12242 if test "${HAVE_X11}" = "yes"; then
12243 if test "${with_jpeg}" != "no"; then
12244 ac_fn_c_check_header_mongrel
"$LINENO" "jerror.h" "ac_cv_header_jerror_h" "$ac_includes_default"
12245 if test "x$ac_cv_header_jerror_h" = xyes
; then :
12246 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for jpeg_destroy_compress in -ljpeg" >&5
12247 $as_echo_n "checking for jpeg_destroy_compress in -ljpeg... " >&6; }
12248 if ${ac_cv_lib_jpeg_jpeg_destroy_compress+:} false
; then :
12249 $as_echo_n "(cached) " >&6
12251 ac_check_lib_save_LIBS
=$LIBS
12252 LIBS
="-ljpeg $LIBS"
12253 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
12254 /* end confdefs.h. */
12256 /* Override any GCC internal prototype to avoid an error.
12257 Use char because int might match the return type of a GCC
12258 builtin and then its argument prototype would still apply. */
12262 char jpeg_destroy_compress ();
12266 return jpeg_destroy_compress ();
12271 if ac_fn_c_try_link
"$LINENO"; then :
12272 ac_cv_lib_jpeg_jpeg_destroy_compress
=yes
12274 ac_cv_lib_jpeg_jpeg_destroy_compress
=no
12276 rm -f core conftest.err conftest.
$ac_objext \
12277 conftest
$ac_exeext conftest.
$ac_ext
12278 LIBS
=$ac_check_lib_save_LIBS
12280 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_jpeg_jpeg_destroy_compress" >&5
12281 $as_echo "$ac_cv_lib_jpeg_jpeg_destroy_compress" >&6; }
12282 if test "x$ac_cv_lib_jpeg_jpeg_destroy_compress" = xyes
; then :
12291 if test "${HAVE_JPEG}" = "yes"; then
12292 $as_echo "#define HAVE_JPEG 1" >>confdefs.h
12294 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
12295 /* end confdefs.h. */
12296 #include <jpeglib.h>
12297 version=JPEG_LIB_VERSION
12300 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
12301 $EGREP "version= *(6[2-9]|[7-9][0-9])" >/dev
/null
2>&1; then :
12302 $as_echo "#define HAVE_JPEG 1" >>confdefs.h
12305 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: libjpeg found, but not version 6b or later" >&5
12306 $as_echo "$as_me: WARNING: libjpeg found, but not version 6b or later" >&2;}
12312 if test "${HAVE_JPEG}" = "yes"; then
12318 ### Use -lpng if available, unless `--with-png=no'.
12321 if test "${HAVE_X11}" = "yes"; then
12322 if test "${with_png}" != "no"; then
12323 # Debian unstable as of July 2003 has multiple libpngs, and puts png.h
12324 # in /usr/include/libpng.
12325 for ac_header
in png.h libpng
/png.h
12327 as_ac_Header
=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
12328 ac_fn_c_check_header_mongrel
"$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
12329 if eval test \"x\$
"$as_ac_Header"\" = x
"yes"; then :
12330 cat >>confdefs.h
<<_ACEOF
12331 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
12338 if test "$ac_cv_header_png_h" = yes ||
test "$ac_cv_header_libpng_png_h" = yes ; then
12339 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for png_get_channels in -lpng" >&5
12340 $as_echo_n "checking for png_get_channels in -lpng... " >&6; }
12341 if ${ac_cv_lib_png_png_get_channels+:} false
; then :
12342 $as_echo_n "(cached) " >&6
12344 ac_check_lib_save_LIBS
=$LIBS
12345 LIBS
="-lpng -lz -lm $LIBS"
12346 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
12347 /* end confdefs.h. */
12349 /* Override any GCC internal prototype to avoid an error.
12350 Use char because int might match the return type of a GCC
12351 builtin and then its argument prototype would still apply. */
12355 char png_get_channels ();
12359 return png_get_channels ();
12364 if ac_fn_c_try_link
"$LINENO"; then :
12365 ac_cv_lib_png_png_get_channels
=yes
12367 ac_cv_lib_png_png_get_channels
=no
12369 rm -f core conftest.err conftest.
$ac_objext \
12370 conftest
$ac_exeext conftest.
$ac_ext
12371 LIBS
=$ac_check_lib_save_LIBS
12373 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_png_png_get_channels" >&5
12374 $as_echo "$ac_cv_lib_png_png_get_channels" >&6; }
12375 if test "x$ac_cv_lib_png_png_get_channels" = xyes
; then :
12382 if test "${HAVE_PNG}" = "yes"; then
12384 $as_echo "#define HAVE_PNG 1" >>confdefs.h
12386 LIBPNG
="-lpng -lz -lm"
12391 ### Use -ltiff if available, unless `--with-tiff=no'.
12394 if test "${HAVE_X11}" = "yes"; then
12395 if test "${with_tiff}" != "no"; then
12396 ac_fn_c_check_header_mongrel
"$LINENO" "tiffio.h" "ac_cv_header_tiffio_h" "$ac_includes_default"
12397 if test "x$ac_cv_header_tiffio_h" = xyes
; then :
12399 # At least one tiff package requires the jpeg library.
12400 if test "${HAVE_JPEG}" = yes; then tifflibs
="-ljpeg $tifflibs"; fi
12401 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for TIFFGetVersion in -ltiff" >&5
12402 $as_echo_n "checking for TIFFGetVersion in -ltiff... " >&6; }
12403 if ${ac_cv_lib_tiff_TIFFGetVersion+:} false
; then :
12404 $as_echo_n "(cached) " >&6
12406 ac_check_lib_save_LIBS
=$LIBS
12407 LIBS
="-ltiff $tifflibs $LIBS"
12408 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
12409 /* end confdefs.h. */
12411 /* Override any GCC internal prototype to avoid an error.
12412 Use char because int might match the return type of a GCC
12413 builtin and then its argument prototype would still apply. */
12417 char TIFFGetVersion ();
12421 return TIFFGetVersion ();
12426 if ac_fn_c_try_link
"$LINENO"; then :
12427 ac_cv_lib_tiff_TIFFGetVersion
=yes
12429 ac_cv_lib_tiff_TIFFGetVersion
=no
12431 rm -f core conftest.err conftest.
$ac_objext \
12432 conftest
$ac_exeext conftest.
$ac_ext
12433 LIBS
=$ac_check_lib_save_LIBS
12435 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_tiff_TIFFGetVersion" >&5
12436 $as_echo "$ac_cv_lib_tiff_TIFFGetVersion" >&6; }
12437 if test "x$ac_cv_lib_tiff_TIFFGetVersion" = xyes
; then :
12446 if test "${HAVE_TIFF}" = "yes"; then
12448 $as_echo "#define HAVE_TIFF 1" >>confdefs.h
12455 ### Use -lgif or -lungif if available, unless `--with-gif=no'.
12458 if test "${HAVE_X11}" = "yes" && test "${with_gif}" != "no"; then
12459 ac_fn_c_check_header_mongrel
"$LINENO" "gif_lib.h" "ac_cv_header_gif_lib_h" "$ac_includes_default"
12460 if test "x$ac_cv_header_gif_lib_h" = xyes
; then :
12461 # EGifPutExtensionLast only exists from version libungif-4.1.0b1.
12462 # Earlier versions can crash Emacs.
12463 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for EGifPutExtensionLast in -lgif" >&5
12464 $as_echo_n "checking for EGifPutExtensionLast in -lgif... " >&6; }
12465 if ${ac_cv_lib_gif_EGifPutExtensionLast+:} false
; then :
12466 $as_echo_n "(cached) " >&6
12468 ac_check_lib_save_LIBS
=$LIBS
12470 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
12471 /* end confdefs.h. */
12473 /* Override any GCC internal prototype to avoid an error.
12474 Use char because int might match the return type of a GCC
12475 builtin and then its argument prototype would still apply. */
12479 char EGifPutExtensionLast ();
12483 return EGifPutExtensionLast ();
12488 if ac_fn_c_try_link
"$LINENO"; then :
12489 ac_cv_lib_gif_EGifPutExtensionLast
=yes
12491 ac_cv_lib_gif_EGifPutExtensionLast
=no
12493 rm -f core conftest.err conftest.
$ac_objext \
12494 conftest
$ac_exeext conftest.
$ac_ext
12495 LIBS
=$ac_check_lib_save_LIBS
12497 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_gif_EGifPutExtensionLast" >&5
12498 $as_echo "$ac_cv_lib_gif_EGifPutExtensionLast" >&6; }
12499 if test "x$ac_cv_lib_gif_EGifPutExtensionLast" = xyes
; then :
12509 if test "$HAVE_GIF" = yes; then
12511 elif test "$HAVE_GIF" = maybe
; then
12512 # If gif_lib.h but no libgif, try libungif.
12513 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for EGifPutExtensionLast in -lungif" >&5
12514 $as_echo_n "checking for EGifPutExtensionLast in -lungif... " >&6; }
12515 if ${ac_cv_lib_ungif_EGifPutExtensionLast+:} false
; then :
12516 $as_echo_n "(cached) " >&6
12518 ac_check_lib_save_LIBS
=$LIBS
12519 LIBS
="-lungif $LIBS"
12520 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
12521 /* end confdefs.h. */
12523 /* Override any GCC internal prototype to avoid an error.
12524 Use char because int might match the return type of a GCC
12525 builtin and then its argument prototype would still apply. */
12529 char EGifPutExtensionLast ();
12533 return EGifPutExtensionLast ();
12538 if ac_fn_c_try_link
"$LINENO"; then :
12539 ac_cv_lib_ungif_EGifPutExtensionLast
=yes
12541 ac_cv_lib_ungif_EGifPutExtensionLast
=no
12543 rm -f core conftest.err conftest.
$ac_objext \
12544 conftest
$ac_exeext conftest.
$ac_ext
12545 LIBS
=$ac_check_lib_save_LIBS
12547 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_ungif_EGifPutExtensionLast" >&5
12548 $as_echo "$ac_cv_lib_ungif_EGifPutExtensionLast" >&6; }
12549 if test "x$ac_cv_lib_ungif_EGifPutExtensionLast" = xyes
; then :
12555 test "$HAVE_GIF" = yes && LIBGIF
=-lungif
12558 if test "${HAVE_GIF}" = "yes"; then
12560 $as_echo "#define HAVE_GIF 1" >>confdefs.h
12566 if test "${HAVE_X11}" = "yes"; then
12569 test "${with_xpm}" != "no" && test "${HAVE_XPM}" != "yes" &&
12570 MISSING
="libXpm" && WITH_NO
="--with-xpm=no"
12571 test "${with_jpeg}" != "no" && test "${HAVE_JPEG}" != "yes" &&
12572 MISSING
="$MISSING libjpeg" && WITH_NO
="$WITH_NO --with-jpeg=no"
12573 test "${with_png}" != "no" && test "${HAVE_PNG}" != "yes" &&
12574 MISSING
="$MISSING libpng" && WITH_NO
="$WITH_NO --with-png=no"
12575 test "${with_gif}" != "no" && test "${HAVE_GIF}" != "yes" &&
12576 MISSING
="$MISSING libgif/libungif" && WITH_NO
="$WITH_NO --with-gif=no"
12577 test "${with_tiff}" != "no" && test "${HAVE_TIFF}" != "yes" &&
12578 MISSING
="$MISSING libtiff" && WITH_NO
="$WITH_NO --with-tiff=no"
12580 if test "X${MISSING}" != X
; then
12581 as_fn_error $?
"The following required libraries were not found:
12583 Maybe some development libraries/packages are missing?
12584 If you don't want to link with them give
12586 as options to configure" "$LINENO" 5
12590 ### Use -lgpm if available, unless `--with-gpm=no'.
12594 if test "${with_gpm}" != "no"; then
12595 ac_fn_c_check_header_mongrel
"$LINENO" "gpm.h" "ac_cv_header_gpm_h" "$ac_includes_default"
12596 if test "x$ac_cv_header_gpm_h" = xyes
; then :
12597 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Gpm_Open in -lgpm" >&5
12598 $as_echo_n "checking for Gpm_Open in -lgpm... " >&6; }
12599 if ${ac_cv_lib_gpm_Gpm_Open+:} false
; then :
12600 $as_echo_n "(cached) " >&6
12602 ac_check_lib_save_LIBS
=$LIBS
12604 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
12605 /* end confdefs.h. */
12607 /* Override any GCC internal prototype to avoid an error.
12608 Use char because int might match the return type of a GCC
12609 builtin and then its argument prototype would still apply. */
12617 return Gpm_Open ();
12622 if ac_fn_c_try_link
"$LINENO"; then :
12623 ac_cv_lib_gpm_Gpm_Open
=yes
12625 ac_cv_lib_gpm_Gpm_Open
=no
12627 rm -f core conftest.err conftest.
$ac_objext \
12628 conftest
$ac_exeext conftest.
$ac_ext
12629 LIBS
=$ac_check_lib_save_LIBS
12631 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_gpm_Gpm_Open" >&5
12632 $as_echo "$ac_cv_lib_gpm_Gpm_Open" >&6; }
12633 if test "x$ac_cv_lib_gpm_Gpm_Open" = xyes
; then :
12641 if test "${HAVE_GPM}" = "yes"; then
12643 $as_echo "#define HAVE_GPM 1" >>confdefs.h
12646 ## May be reset below.
12647 MOUSE_SUPPORT
="\$(GPM_MOUSE_SUPPORT)"
12652 ac_fn_c_check_header_mongrel
"$LINENO" "malloc/malloc.h" "ac_cv_header_malloc_malloc_h" "$ac_includes_default"
12653 if test "x$ac_cv_header_malloc_malloc_h" = xyes
; then :
12655 $as_echo "#define HAVE_MALLOC_MALLOC_H 1" >>confdefs.h
12662 ### Use NeXTstep API to implement GUI.
12663 if test "${HAVE_NS}" = "yes"; then
12665 $as_echo "#define HAVE_NS 1" >>confdefs.h
12667 if test "${NS_IMPL_COCOA}" = "yes"; then
12669 $as_echo "#define NS_IMPL_COCOA 1" >>confdefs.h
12673 if test "${NS_IMPL_GNUSTEP}" = "yes"; then
12675 $as_echo "#define NS_IMPL_GNUSTEP 1" >>confdefs.h
12677 # See also .m.o rule in Makefile.in */
12678 # FIXME: are all these flags really needed? Document here why. */
12679 C_SWITCH_X_SYSTEM
="-D_REENTRANT -fPIC -fno-strict-aliasing"
12680 GNU_OBJC_CFLAGS
="-fgnu-runtime -Wno-import -fconstant-string-class=NSConstantString -DGNUSTEP_BASE_LIBRARY=1 -DGNU_GUI_LIBRARY=1 -DGNU_RUNTIME=1 -DGSWARN -DGSDIAGNOSE"
12682 if test "${NS_HAVE_NSINTEGER}" = "yes"; then
12684 $as_echo "#define NS_HAVE_NSINTEGER 1" >>confdefs.h
12687 # We also have mouse menus.
12693 ### Use session management (-lSM -lICE) if available
12696 if test "${HAVE_X11}" = "yes"; then
12697 ac_fn_c_check_header_mongrel
"$LINENO" "X11/SM/SMlib.h" "ac_cv_header_X11_SM_SMlib_h" "$ac_includes_default"
12698 if test "x$ac_cv_header_X11_SM_SMlib_h" = xyes
; then :
12699 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for SmcOpenConnection in -lSM" >&5
12700 $as_echo_n "checking for SmcOpenConnection in -lSM... " >&6; }
12701 if ${ac_cv_lib_SM_SmcOpenConnection+:} false
; then :
12702 $as_echo_n "(cached) " >&6
12704 ac_check_lib_save_LIBS
=$LIBS
12705 LIBS
="-lSM -lICE $LIBS"
12706 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
12707 /* end confdefs.h. */
12709 /* Override any GCC internal prototype to avoid an error.
12710 Use char because int might match the return type of a GCC
12711 builtin and then its argument prototype would still apply. */
12715 char SmcOpenConnection ();
12719 return SmcOpenConnection ();
12724 if ac_fn_c_try_link
"$LINENO"; then :
12725 ac_cv_lib_SM_SmcOpenConnection
=yes
12727 ac_cv_lib_SM_SmcOpenConnection
=no
12729 rm -f core conftest.err conftest.
$ac_objext \
12730 conftest
$ac_exeext conftest.
$ac_ext
12731 LIBS
=$ac_check_lib_save_LIBS
12733 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_SM_SmcOpenConnection" >&5
12734 $as_echo "$ac_cv_lib_SM_SmcOpenConnection" >&6; }
12735 if test "x$ac_cv_lib_SM_SmcOpenConnection" = xyes
; then :
12743 if test "${HAVE_X_SM}" = "yes"; then
12745 $as_echo "#define HAVE_X_SM 1" >>confdefs.h
12747 LIBXSM
="-lSM -lICE"
12750 *) LIBS
="$LIBXSM $LIBS" ;;
12756 ### Use libxml (-lxml2) if available
12757 if test "${with_xml2}" != "no"; then
12758 ### I'm not sure what the version number should be, so I just guessed.
12762 # Extract the first word of "pkg-config", so it can be a program name with args.
12763 set dummy pkg-config
; ac_word
=$2
12764 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12765 $as_echo_n "checking for $ac_word... " >&6; }
12766 if ${ac_cv_path_PKG_CONFIG+:} false
; then :
12767 $as_echo_n "(cached) " >&6
12769 case $PKG_CONFIG in
12771 ac_cv_path_PKG_CONFIG
="$PKG_CONFIG" # Let the user override the test with a path.
12774 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
12775 for as_dir
in $PATH
12778 test -z "$as_dir" && as_dir
=.
12779 for ac_exec_ext
in '' $ac_executable_extensions; do
12780 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
12781 ac_cv_path_PKG_CONFIG
="$as_dir/$ac_word$ac_exec_ext"
12782 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12789 test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG
="no"
12793 PKG_CONFIG
=$ac_cv_path_PKG_CONFIG
12794 if test -n "$PKG_CONFIG"; then
12795 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5
12796 $as_echo "$PKG_CONFIG" >&6; }
12798 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12799 $as_echo "no" >&6; }
12804 if test "$PKG_CONFIG" = "no" ; then
12807 PKG_CONFIG_MIN_VERSION
=0.9.0
12808 if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
12809 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libxml-2.0 > 2.6.17" >&5
12810 $as_echo_n "checking for libxml-2.0 > 2.6.17... " >&6; }
12812 if $PKG_CONFIG --exists "libxml-2.0 > 2.6.17" 2>&5; then
12813 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
12814 $as_echo "yes" >&6; }
12817 { $as_echo "$as_me:${as_lineno-$LINENO}: checking LIBXML2_CFLAGS" >&5
12818 $as_echo_n "checking LIBXML2_CFLAGS... " >&6; }
12819 LIBXML2_CFLAGS
=`$PKG_CONFIG --cflags "libxml-2.0 > 2.6.17"|sed -e 's,///*,/,g'`
12820 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIBXML2_CFLAGS" >&5
12821 $as_echo "$LIBXML2_CFLAGS" >&6; }
12823 { $as_echo "$as_me:${as_lineno-$LINENO}: checking LIBXML2_LIBS" >&5
12824 $as_echo_n "checking LIBXML2_LIBS... " >&6; }
12825 LIBXML2_LIBS
=`$PKG_CONFIG --libs "libxml-2.0 > 2.6.17"|sed -e 's,///*,/,g'`
12826 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIBXML2_LIBS" >&5
12827 $as_echo "$LIBXML2_LIBS" >&6; }
12829 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12830 $as_echo "no" >&6; }
12833 ## If we have a custom action on failure, don't print errors, but
12834 ## do set a variable so people can do so.
12835 LIBXML2_PKG_ERRORS
=`$PKG_CONFIG --errors-to-stdout --print-errors "libxml-2.0 > 2.6.17"`
12842 echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
12843 echo "*** See http://www.freedesktop.org/software/pkgconfig"
12847 if test $succeeded = yes; then
12853 if test "${HAVE_LIBXML2}" = "yes"; then
12854 LIBS
="$LIBXML2_LIBS $LIBS"
12855 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for htmlReadMemory in -lxml2" >&5
12856 $as_echo_n "checking for htmlReadMemory in -lxml2... " >&6; }
12857 if ${ac_cv_lib_xml2_htmlReadMemory+:} false
; then :
12858 $as_echo_n "(cached) " >&6
12860 ac_check_lib_save_LIBS
=$LIBS
12861 LIBS
="-lxml2 $LIBS"
12862 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
12863 /* end confdefs.h. */
12865 /* Override any GCC internal prototype to avoid an error.
12866 Use char because int might match the return type of a GCC
12867 builtin and then its argument prototype would still apply. */
12871 char htmlReadMemory ();
12875 return htmlReadMemory ();
12880 if ac_fn_c_try_link
"$LINENO"; then :
12881 ac_cv_lib_xml2_htmlReadMemory
=yes
12883 ac_cv_lib_xml2_htmlReadMemory
=no
12885 rm -f core conftest.err conftest.
$ac_objext \
12886 conftest
$ac_exeext conftest.
$ac_ext
12887 LIBS
=$ac_check_lib_save_LIBS
12889 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_xml2_htmlReadMemory" >&5
12890 $as_echo "$ac_cv_lib_xml2_htmlReadMemory" >&6; }
12891 if test "x$ac_cv_lib_xml2_htmlReadMemory" = xyes
; then :
12897 if test "${HAVE_LIBXML2}" = "yes"; then
12899 $as_echo "#define HAVE_LIBXML2 1" >>confdefs.h
12910 # If netdb.h doesn't declare h_errno, we must declare it by hand.
12911 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether netdb declares h_errno" >&5
12912 $as_echo_n "checking whether netdb declares h_errno... " >&6; }
12913 if ${emacs_cv_netdb_declares_h_errno+:} false
; then :
12914 $as_echo_n "(cached) " >&6
12916 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
12917 /* end confdefs.h. */
12927 if ac_fn_c_try_link
"$LINENO"; then :
12928 emacs_cv_netdb_declares_h_errno
=yes
12930 emacs_cv_netdb_declares_h_errno
=no
12932 rm -f core conftest.err conftest.
$ac_objext \
12933 conftest
$ac_exeext conftest.
$ac_ext
12935 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $emacs_cv_netdb_declares_h_errno" >&5
12936 $as_echo "$emacs_cv_netdb_declares_h_errno" >&6; }
12937 if test $emacs_cv_netdb_declares_h_errno = yes; then
12939 $as_echo "#define HAVE_H_ERRNO 1" >>confdefs.h
12943 ac_fn_c_check_type
"$LINENO" "size_t" "ac_cv_type_size_t" "$ac_includes_default"
12944 if test "x$ac_cv_type_size_t" = xyes
; then :
12948 cat >>confdefs.h
<<_ACEOF
12949 #define size_t unsigned int
12954 # The Ultrix 4.2 mips builtin alloca declared by alloca.h only works
12955 # for constant arguments. Useless!
12956 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working alloca.h" >&5
12957 $as_echo_n "checking for working alloca.h... " >&6; }
12958 if ${ac_cv_working_alloca_h+:} false
; then :
12959 $as_echo_n "(cached) " >&6
12961 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
12962 /* end confdefs.h. */
12963 #include <alloca.h>
12967 char *p = (char *) alloca (2 * sizeof (int));
12973 if ac_fn_c_try_link
"$LINENO"; then :
12974 ac_cv_working_alloca_h
=yes
12976 ac_cv_working_alloca_h
=no
12978 rm -f core conftest.err conftest.
$ac_objext \
12979 conftest
$ac_exeext conftest.
$ac_ext
12981 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_working_alloca_h" >&5
12982 $as_echo "$ac_cv_working_alloca_h" >&6; }
12983 if test $ac_cv_working_alloca_h = yes; then
12985 $as_echo "#define HAVE_ALLOCA_H 1" >>confdefs.h
12989 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for alloca" >&5
12990 $as_echo_n "checking for alloca... " >&6; }
12991 if ${ac_cv_func_alloca_works+:} false
; then :
12992 $as_echo_n "(cached) " >&6
12994 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
12995 /* end confdefs.h. */
12997 # define alloca __builtin_alloca
13000 # include <malloc.h>
13001 # define alloca _alloca
13003 # ifdef HAVE_ALLOCA_H
13004 # include <alloca.h>
13009 # ifndef alloca /* predefined by HP cc +Olibcalls */
13010 void *alloca (size_t);
13020 char *p = (char *) alloca (1);
13026 if ac_fn_c_try_link
"$LINENO"; then :
13027 ac_cv_func_alloca_works
=yes
13029 ac_cv_func_alloca_works
=no
13031 rm -f core conftest.err conftest.
$ac_objext \
13032 conftest
$ac_exeext conftest.
$ac_ext
13034 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_alloca_works" >&5
13035 $as_echo "$ac_cv_func_alloca_works" >&6; }
13037 if test $ac_cv_func_alloca_works = yes; then
13039 $as_echo "#define HAVE_ALLOCA 1" >>confdefs.h
13042 # The SVR3 libPW and SVR4 libucb both contain incompatible functions
13043 # that cause trouble. Some versions do not even contain alloca or
13044 # contain a buggy version. If you still want to use their alloca,
13045 # use ar to extract alloca.o from them instead of compiling alloca.c.
13047 ALLOCA
=\
${LIBOBJDIR}alloca.
$ac_objext
13049 $as_echo "#define C_ALLOCA 1" >>confdefs.h
13052 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether \`alloca.c' needs Cray hooks" >&5
13053 $as_echo_n "checking whether \`alloca.c' needs Cray hooks... " >&6; }
13054 if ${ac_cv_os_cray+:} false
; then :
13055 $as_echo_n "(cached) " >&6
13057 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
13058 /* end confdefs.h. */
13059 #if defined CRAY && ! defined CRAY2
13066 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
13067 $EGREP "webecray" >/dev
/null
2>&1; then :
13075 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_os_cray" >&5
13076 $as_echo "$ac_cv_os_cray" >&6; }
13077 if test $ac_cv_os_cray = yes; then
13078 for ac_func
in _getb67 GETB67 getb67
; do
13079 as_ac_var
=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
13080 ac_fn_c_check_func
"$LINENO" "$ac_func" "$as_ac_var"
13081 if eval test \"x\$
"$as_ac_var"\" = x
"yes"; then :
13083 cat >>confdefs.h
<<_ACEOF
13084 #define CRAY_STACKSEG_END $ac_func
13093 { $as_echo "$as_me:${as_lineno-$LINENO}: checking stack direction for C alloca" >&5
13094 $as_echo_n "checking stack direction for C alloca... " >&6; }
13095 if ${ac_cv_c_stack_direction+:} false
; then :
13096 $as_echo_n "(cached) " >&6
13098 if test "$cross_compiling" = yes; then :
13099 ac_cv_c_stack_direction
=0
13101 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
13102 /* end confdefs.h. */
13103 $ac_includes_default
13105 find_stack_direction ()
13107 static char *addr = 0;
13112 return find_stack_direction ();
13115 return (&dummy > addr) ? 1 : -1;
13121 return find_stack_direction () < 0;
13124 if ac_fn_c_try_run
"$LINENO"; then :
13125 ac_cv_c_stack_direction
=1
13127 ac_cv_c_stack_direction
=-1
13129 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
13130 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
13134 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_stack_direction" >&5
13135 $as_echo "$ac_cv_c_stack_direction" >&6; }
13136 cat >>confdefs.h
<<_ACEOF
13137 #define STACK_DIRECTION $ac_cv_c_stack_direction
13144 if test x
"$ac_cv_func_alloca_works" != xyes
; then
13145 as_fn_error $?
"a system implementation of alloca is required " "$LINENO" 5
13148 # fmod, logb, and frexp are found in -lm on most systems.
13149 # On HPUX 9.01, -lm does not contain logb, so check for sqrt.
13150 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sqrt in -lm" >&5
13151 $as_echo_n "checking for sqrt in -lm... " >&6; }
13152 if ${ac_cv_lib_m_sqrt+:} false
; then :
13153 $as_echo_n "(cached) " >&6
13155 ac_check_lib_save_LIBS
=$LIBS
13157 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
13158 /* end confdefs.h. */
13160 /* Override any GCC internal prototype to avoid an error.
13161 Use char because int might match the return type of a GCC
13162 builtin and then its argument prototype would still apply. */
13175 if ac_fn_c_try_link
"$LINENO"; then :
13176 ac_cv_lib_m_sqrt
=yes
13178 ac_cv_lib_m_sqrt
=no
13180 rm -f core conftest.err conftest.
$ac_objext \
13181 conftest
$ac_exeext conftest.
$ac_ext
13182 LIBS
=$ac_check_lib_save_LIBS
13184 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_m_sqrt" >&5
13185 $as_echo "$ac_cv_lib_m_sqrt" >&6; }
13186 if test "x$ac_cv_lib_m_sqrt" = xyes
; then :
13187 cat >>confdefs.h
<<_ACEOF
13188 #define HAVE_LIBM 1
13196 # Check for mail-locking functions in a "mail" library. Probably this should
13197 # have the same check as for liblockfile below.
13198 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for maillock in -lmail" >&5
13199 $as_echo_n "checking for maillock in -lmail... " >&6; }
13200 if ${ac_cv_lib_mail_maillock+:} false
; then :
13201 $as_echo_n "(cached) " >&6
13203 ac_check_lib_save_LIBS
=$LIBS
13204 LIBS
="-lmail $LIBS"
13205 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
13206 /* end confdefs.h. */
13208 /* Override any GCC internal prototype to avoid an error.
13209 Use char because int might match the return type of a GCC
13210 builtin and then its argument prototype would still apply. */
13218 return maillock ();
13223 if ac_fn_c_try_link
"$LINENO"; then :
13224 ac_cv_lib_mail_maillock
=yes
13226 ac_cv_lib_mail_maillock
=no
13228 rm -f core conftest.err conftest.
$ac_objext \
13229 conftest
$ac_exeext conftest.
$ac_ext
13230 LIBS
=$ac_check_lib_save_LIBS
13232 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_mail_maillock" >&5
13233 $as_echo "$ac_cv_lib_mail_maillock" >&6; }
13234 if test "x$ac_cv_lib_mail_maillock" = xyes
; then :
13240 if test $have_mail = yes; then
13242 LIBS
="$LIBS_MAIL $LIBS"
13244 $as_echo "#define HAVE_LIBMAIL 1" >>confdefs.h
13249 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for maillock in -llockfile" >&5
13250 $as_echo_n "checking for maillock in -llockfile... " >&6; }
13251 if ${ac_cv_lib_lockfile_maillock+:} false
; then :
13252 $as_echo_n "(cached) " >&6
13254 ac_check_lib_save_LIBS
=$LIBS
13255 LIBS
="-llockfile $LIBS"
13256 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
13257 /* end confdefs.h. */
13259 /* Override any GCC internal prototype to avoid an error.
13260 Use char because int might match the return type of a GCC
13261 builtin and then its argument prototype would still apply. */
13269 return maillock ();
13274 if ac_fn_c_try_link
"$LINENO"; then :
13275 ac_cv_lib_lockfile_maillock
=yes
13277 ac_cv_lib_lockfile_maillock
=no
13279 rm -f core conftest.err conftest.
$ac_objext \
13280 conftest
$ac_exeext conftest.
$ac_ext
13281 LIBS
=$ac_check_lib_save_LIBS
13283 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_lockfile_maillock" >&5
13284 $as_echo "$ac_cv_lib_lockfile_maillock" >&6; }
13285 if test "x$ac_cv_lib_lockfile_maillock" = xyes
; then :
13291 if test $have_lockfile = yes; then
13292 LIBS_MAIL
=-llockfile
13293 LIBS
="$LIBS_MAIL $LIBS"
13295 $as_echo "#define HAVE_LIBLOCKFILE 1" >>confdefs.h
13298 # If we have the shared liblockfile, assume we must use it for mail
13299 # locking (e.g. Debian). If we couldn't link against liblockfile
13300 # (no liblockfile.a installed), ensure that we don't need to.
13301 # Extract the first word of "liblockfile.so", so it can be a program name with args.
13302 set dummy liblockfile.so
; ac_word
=$2
13303 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13304 $as_echo_n "checking for $ac_word... " >&6; }
13305 if ${ac_cv_prog_liblockfile+:} false
; then :
13306 $as_echo_n "(cached) " >&6
13308 if test -n "$liblockfile"; then
13309 ac_cv_prog_liblockfile
="$liblockfile" # Let the user override the test.
13311 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
13312 as_dummy
="/usr/lib:/lib:/usr/local/lib:$LD_LIBRARY_PATH"
13313 for as_dir
in $as_dummy
13316 test -z "$as_dir" && as_dir
=.
13317 for ac_exec_ext
in '' $ac_executable_extensions; do
13318 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
13319 ac_cv_prog_liblockfile
="yes"
13320 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13327 test -z "$ac_cv_prog_liblockfile" && ac_cv_prog_liblockfile
="no"
13330 liblockfile
=$ac_cv_prog_liblockfile
13331 if test -n "$liblockfile"; then
13332 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $liblockfile" >&5
13333 $as_echo "$liblockfile" >&6; }
13335 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13336 $as_echo "no" >&6; }
13340 if test $ac_cv_prog_liblockfile = yes; then
13341 as_fn_error $?
"Shared liblockfile found but can't link against it.
13342 This probably means that movemail could lose mail.
13343 There may be a \`development' package to install containing liblockfile." "$LINENO" 5
13346 for ac_func
in touchlock
13348 ac_fn_c_check_func
"$LINENO" "touchlock" "ac_cv_func_touchlock"
13349 if test "x$ac_cv_func_touchlock" = xyes
; then :
13350 cat >>confdefs.h
<<_ACEOF
13351 #define HAVE_TOUCHLOCK 1
13357 for ac_header
in maillock.h
13359 ac_fn_c_check_header_mongrel
"$LINENO" "maillock.h" "ac_cv_header_maillock_h" "$ac_includes_default"
13360 if test "x$ac_cv_header_maillock_h" = xyes
; then :
13361 cat >>confdefs.h
<<_ACEOF
13362 #define HAVE_MAILLOCK_H 1
13371 ## Define MAIL_USE_FLOCK (or LOCKF) if the mailer uses flock (or lockf) to
13372 ## interlock access to the mail spool. The alternative is a lock file named
13373 ## /usr/spool/mail/$USER.lock.
13376 aix4-2
) mail_lock
="lockf" ;;
13378 gnu|freebsd|netbsd|openbsd|darwin|irix6-5
) mail_lock
="flock" ;;
13380 ## On GNU/Linux systems, both methods are used by various mail programs.
13381 ## I assume most people are using newer mailers that have heard of flock.
13382 ## Change this if you need to.
13383 ## Debian contains a patch which says: ``On Debian/GNU/Linux systems,
13384 ## configure gets the right answers, and that means *NOT* using flock.
13385 ## Using flock is guaranteed to be the wrong thing. See Debian Policy
13386 ## for details.'' and then uses `#ifdef DEBIAN'. Unfortunately the
13387 ## Debian maintainer hasn't provided a clean fix for Emacs.
13388 ## movemail.c will use `maillock' when MAILDIR, HAVE_LIBMAIL and
13389 ## HAVE_MAILLOCK_H are defined, so the following appears to be the
13390 ## correct logic. -- fx
13391 ## We must check for HAVE_LIBLOCKFILE too, as movemail does.
13392 ## liblockfile is a Free Software replacement for libmail, used on
13393 ## Debian systems and elsewhere. -rfr.
13396 if test $have_mail = yes ||
test $have_lockfile = yes; then
13397 test $ac_cv_header_maillock_h = yes && mail_lock
=no
13403 case "$mail_lock" in
13405 $as_echo "#define MAIL_USE_FLOCK 1" >>confdefs.h
13409 $as_echo "#define MAIL_USE_LOCKF 1" >>confdefs.h
13412 *) BLESSMAIL_TARGET
="need-blessmail" ;;
13417 for ac_func
in gethostname getdomainname dup2 \
13418 rename closedir mkdir
rmdir sysinfo getrusage get_current_dir_name \
13419 random lrand48 logb frexp fmod rint cbrt ftime setsid \
13420 strerror fpathconf
select euidaccess getpagesize tzset setlocale \
13421 utimes getrlimit setrlimit setpgid getcwd getwd shutdown getaddrinfo \
13422 __fpending mblen mbrlen mbsinit strsignal setitimer ualarm strchr strrchr \
13423 sendto recvfrom getsockopt setsockopt getsockname getpeername \
13424 gai_strerror mkstemp getline getdelim mremap memmove fsync sync \
13425 memset memcmp difftime memcpy mempcpy mblen mbrlen posix_memalign \
13426 cfmakeraw cfsetspeed isnan copysign __executable_start
13428 as_ac_var
=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
13429 ac_fn_c_check_func
"$LINENO" "$ac_func" "$as_ac_var"
13430 if eval test \"x\$
"$as_ac_var"\" = x
"yes"; then :
13431 cat >>confdefs.h
<<_ACEOF
13432 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
13439 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for __builtin_unwind_init" >&5
13440 $as_echo_n "checking for __builtin_unwind_init... " >&6; }
13441 if ${emacs_cv_func___builtin_unwind_init+:} false
; then :
13442 $as_echo_n "(cached) " >&6
13444 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
13445 /* end confdefs.h. */
13450 __builtin_unwind_init ();
13455 if ac_fn_c_try_link
"$LINENO"; then :
13456 emacs_cv_func___builtin_unwind_init
=yes
13458 emacs_cv_func___builtin_unwind_init
=no
13460 rm -f core conftest.err conftest.
$ac_objext \
13461 conftest
$ac_exeext conftest.
$ac_ext
13463 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $emacs_cv_func___builtin_unwind_init" >&5
13464 $as_echo "$emacs_cv_func___builtin_unwind_init" >&6; }
13465 if test $emacs_cv_func___builtin_unwind_init = yes; then
13467 $as_echo "#define HAVE___BUILTIN_UNWIND_INIT 1" >>confdefs.h
13471 for ac_header
in sys
/un.h
13473 ac_fn_c_check_header_mongrel
"$LINENO" "sys/un.h" "ac_cv_header_sys_un_h" "$ac_includes_default"
13474 if test "x$ac_cv_header_sys_un_h" = xyes
; then :
13475 cat >>confdefs.h
<<_ACEOF
13476 #define HAVE_SYS_UN_H 1
13484 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _LARGEFILE_SOURCE value needed for large files" >&5
13485 $as_echo_n "checking for _LARGEFILE_SOURCE value needed for large files... " >&6; }
13486 if ${ac_cv_sys_largefile_source+:} false
; then :
13487 $as_echo_n "(cached) " >&6
13490 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
13491 /* end confdefs.h. */
13492 #include <sys/types.h> /* for off_t */
13497 int (*fp) (FILE *, off_t, int) = fseeko;
13498 return fseeko (stdin, 0, 0) && fp (stdin, 0, 0);
13503 if ac_fn_c_try_link
"$LINENO"; then :
13504 ac_cv_sys_largefile_source
=no
; break
13506 rm -f core conftest.err conftest.
$ac_objext \
13507 conftest
$ac_exeext conftest.
$ac_ext
13508 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
13509 /* end confdefs.h. */
13510 #define _LARGEFILE_SOURCE 1
13511 #include <sys/types.h> /* for off_t */
13516 int (*fp) (FILE *, off_t, int) = fseeko;
13517 return fseeko (stdin, 0, 0) && fp (stdin, 0, 0);
13522 if ac_fn_c_try_link
"$LINENO"; then :
13523 ac_cv_sys_largefile_source
=1; break
13525 rm -f core conftest.err conftest.
$ac_objext \
13526 conftest
$ac_exeext conftest.
$ac_ext
13527 ac_cv_sys_largefile_source
=unknown
13531 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_largefile_source" >&5
13532 $as_echo "$ac_cv_sys_largefile_source" >&6; }
13533 case $ac_cv_sys_largefile_source in #(
13536 cat >>confdefs.h
<<_ACEOF
13537 #define _LARGEFILE_SOURCE $ac_cv_sys_largefile_source
13543 # We used to try defining _XOPEN_SOURCE=500 too, to work around a bug
13544 # in glibc 2.1.3, but that breaks too many other things.
13545 # If you want fseeko and ftello with glibc, upgrade to a fixed glibc.
13546 if test $ac_cv_sys_largefile_source != unknown
; then
13548 $as_echo "#define HAVE_FSEEKO 1" >>confdefs.h
13553 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether getpgrp requires zero arguments" >&5
13554 $as_echo_n "checking whether getpgrp requires zero arguments... " >&6; }
13555 if ${ac_cv_func_getpgrp_void+:} false
; then :
13556 $as_echo_n "(cached) " >&6
13558 # Use it with a single arg.
13559 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
13560 /* end confdefs.h. */
13561 $ac_includes_default
13570 if ac_fn_c_try_compile
"$LINENO"; then :
13571 ac_cv_func_getpgrp_void
=no
13573 ac_cv_func_getpgrp_void
=yes
13575 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
13578 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_getpgrp_void" >&5
13579 $as_echo "$ac_cv_func_getpgrp_void" >&6; }
13580 if test $ac_cv_func_getpgrp_void = yes; then
13582 $as_echo "#define GETPGRP_VOID 1" >>confdefs.h
13587 # Configure gnulib.
13598 LIBC_FATAL_STDERR_
=1
13599 export LIBC_FATAL_STDERR_
13602 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether byte ordering is bigendian" >&5
13603 $as_echo_n "checking whether byte ordering is bigendian... " >&6; }
13604 if ${ac_cv_c_bigendian+:} false
; then :
13605 $as_echo_n "(cached) " >&6
13607 ac_cv_c_bigendian
=unknown
13608 # See if we're dealing with a universal compiler.
13609 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
13610 /* end confdefs.h. */
13611 #ifndef __APPLE_CC__
13612 not a universal capable compiler
13617 if ac_fn_c_try_compile
"$LINENO"; then :
13619 # Check for potential -arch flags. It is not universal unless
13620 # there are at least two -arch flags with different values.
13623 for ac_word
in $CC $CFLAGS $CPPFLAGS $LDFLAGS; do
13624 if test -n "$ac_prev"; then
13626 i?
86 | x86_64 | ppc | ppc64
)
13627 if test -z "$ac_arch" ||
test "$ac_arch" = "$ac_word"; then
13630 ac_cv_c_bigendian
=universal
13636 elif test "x$ac_word" = "x-arch"; then
13641 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
13642 if test $ac_cv_c_bigendian = unknown
; then
13643 # See if sys/param.h defines the BYTE_ORDER macro.
13644 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
13645 /* end confdefs.h. */
13646 #include <sys/types.h>
13647 #include <sys/param.h>
13652 #if ! (defined BYTE_ORDER && defined BIG_ENDIAN \
13653 && defined LITTLE_ENDIAN && BYTE_ORDER && BIG_ENDIAN \
13655 bogus endian macros
13662 if ac_fn_c_try_compile
"$LINENO"; then :
13663 # It does; now see whether it defined to BIG_ENDIAN or not.
13664 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
13665 /* end confdefs.h. */
13666 #include <sys/types.h>
13667 #include <sys/param.h>
13672 #if BYTE_ORDER != BIG_ENDIAN
13680 if ac_fn_c_try_compile
"$LINENO"; then :
13681 ac_cv_c_bigendian
=yes
13683 ac_cv_c_bigendian
=no
13685 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
13687 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
13689 if test $ac_cv_c_bigendian = unknown
; then
13690 # See if <limits.h> defines _LITTLE_ENDIAN or _BIG_ENDIAN (e.g., Solaris).
13691 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
13692 /* end confdefs.h. */
13693 #include <limits.h>
13698 #if ! (defined _LITTLE_ENDIAN || defined _BIG_ENDIAN)
13699 bogus endian macros
13706 if ac_fn_c_try_compile
"$LINENO"; then :
13707 # It does; now see whether it defined to _BIG_ENDIAN or not.
13708 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
13709 /* end confdefs.h. */
13710 #include <limits.h>
13715 #ifndef _BIG_ENDIAN
13723 if ac_fn_c_try_compile
"$LINENO"; then :
13724 ac_cv_c_bigendian
=yes
13726 ac_cv_c_bigendian
=no
13728 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
13730 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
13732 if test $ac_cv_c_bigendian = unknown
; then
13733 # Compile a test program.
13734 if test "$cross_compiling" = yes; then :
13735 # Try to guess by grepping values from an object file.
13736 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
13737 /* end confdefs.h. */
13738 short int ascii_mm[] =
13739 { 0x4249, 0x4765, 0x6E44, 0x6961, 0x6E53, 0x7953, 0 };
13740 short int ascii_ii[] =
13741 { 0x694C, 0x5454, 0x656C, 0x6E45, 0x6944, 0x6E61, 0 };
13742 int use_ascii (int i) {
13743 return ascii_mm[i] + ascii_ii[i];
13745 short int ebcdic_ii[] =
13746 { 0x89D3, 0xE3E3, 0x8593, 0x95C5, 0x89C4, 0x9581, 0 };
13747 short int ebcdic_mm[] =
13748 { 0xC2C9, 0xC785, 0x95C4, 0x8981, 0x95E2, 0xA8E2, 0 };
13749 int use_ebcdic (int i) {
13750 return ebcdic_mm[i] + ebcdic_ii[i];
13757 return use_ascii (foo) == use_ebcdic (foo);
13762 if ac_fn_c_try_compile
"$LINENO"; then :
13763 if grep BIGenDianSyS conftest.
$ac_objext >/dev
/null
; then
13764 ac_cv_c_bigendian
=yes
13766 if grep LiTTleEnDian conftest.
$ac_objext >/dev
/null
; then
13767 if test "$ac_cv_c_bigendian" = unknown
; then
13768 ac_cv_c_bigendian
=no
13770 # finding both strings is unlikely to happen, but who knows?
13771 ac_cv_c_bigendian
=unknown
13775 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
13777 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
13778 /* end confdefs.h. */
13779 $ac_includes_default
13784 /* Are we little or big endian? From Harbison&Steele. */
13788 char c[sizeof (long int)];
13791 return u.c[sizeof (long int) - 1] == 1;
13797 if ac_fn_c_try_run
"$LINENO"; then :
13798 ac_cv_c_bigendian
=no
13800 ac_cv_c_bigendian
=yes
13802 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
13803 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
13808 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_bigendian" >&5
13809 $as_echo "$ac_cv_c_bigendian" >&6; }
13810 case $ac_cv_c_bigendian in #(
13812 $as_echo "#define WORDS_BIGENDIAN 1" >>confdefs.h
13818 $as_echo "#define AC_APPLE_UNIVERSAL_BUILD 1" >>confdefs.h
13822 as_fn_error $?
"unknown endianness
13823 presetting ac_cv_c_bigendian=no (or yes) will help" "$LINENO" 5 ;;
13827 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for inline" >&5
13828 $as_echo_n "checking for inline... " >&6; }
13829 if ${ac_cv_c_inline+:} false
; then :
13830 $as_echo_n "(cached) " >&6
13833 for ac_kw
in inline __inline__ __inline
; do
13834 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
13835 /* end confdefs.h. */
13836 #ifndef __cplusplus
13838 static $ac_kw foo_t static_foo () {return 0; }
13839 $ac_kw foo_t foo () {return 0; }
13843 if ac_fn_c_try_compile
"$LINENO"; then :
13844 ac_cv_c_inline
=$ac_kw
13846 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
13847 test "$ac_cv_c_inline" != no
&& break
13851 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_inline" >&5
13852 $as_echo "$ac_cv_c_inline" >&6; }
13854 case $ac_cv_c_inline in
13857 case $ac_cv_c_inline in
13859 *) ac_val
=$ac_cv_c_inline;;
13861 cat >>confdefs.h
<<_ACEOF
13862 #ifndef __cplusplus
13863 #define inline $ac_val
13870 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether strtold conforms to C99" >&5
13871 $as_echo_n "checking whether strtold conforms to C99... " >&6; }
13872 if ${gl_cv_func_c99_strtold+:} false
; then :
13873 $as_echo_n "(cached) " >&6
13875 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
13876 /* end confdefs.h. */
13877 /* On HP-UX before 11.23, strtold returns a struct instead of
13878 long double. Reject implementations like that, by requiring
13879 compatibility with the C99 prototype. */
13880 #include <stdlib.h>
13881 static long double (*p) (char const *, char **) = strtold;
13883 test (char const *nptr, char **endptr)
13886 r = strtold (nptr, endptr);
13892 return test ("1.0", NULL) != 1 || p ("1.0", NULL) != 1;
13897 if ac_fn_c_try_link
"$LINENO"; then :
13898 gl_cv_func_c99_strtold
=yes
13900 gl_cv_func_c99_strtold
=no
13902 rm -f core conftest.err conftest.
$ac_objext \
13903 conftest
$ac_exeext conftest.
$ac_ext
13905 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_c99_strtold" >&5
13906 $as_echo "$gl_cv_func_c99_strtold" >&6; }
13907 if test $gl_cv_func_c99_strtold = yes; then
13909 $as_echo "#define HAVE_C99_STRTOLD 1" >>confdefs.h
13913 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for st_dm_mode in struct stat" >&5
13914 $as_echo_n "checking for st_dm_mode in struct stat... " >&6; }
13915 if ${ac_cv_struct_st_dm_mode+:} false
; then :
13916 $as_echo_n "(cached) " >&6
13918 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
13919 /* end confdefs.h. */
13921 #include <sys/types.h>
13922 #include <sys/stat.h>
13926 struct stat s; s.st_dm_mode;
13931 if ac_fn_c_try_compile
"$LINENO"; then :
13932 ac_cv_struct_st_dm_mode
=yes
13934 ac_cv_struct_st_dm_mode
=no
13936 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
13938 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_struct_st_dm_mode" >&5
13939 $as_echo "$ac_cv_struct_st_dm_mode" >&6; }
13941 if test $ac_cv_struct_st_dm_mode = yes; then
13943 $as_echo "#define HAVE_ST_DM_MODE 1" >>confdefs.h
13948 ac_fn_c_check_decl
"$LINENO" "strmode" "ac_cv_have_decl_strmode" "$ac_includes_default"
13949 if test "x$ac_cv_have_decl_strmode" = xyes
; then :
13955 cat >>confdefs.h
<<_ACEOF
13956 #define HAVE_DECL_STRMODE $ac_have_decl
13962 GNULIB_CALLOC_POSIX
=0;
13963 GNULIB_CANONICALIZE_FILE_NAME
=0;
13964 GNULIB_GETLOADAVG
=0;
13965 GNULIB_GETSUBOPT
=0;
13967 GNULIB_MALLOC_POSIX
=0;
13971 GNULIB_MKOSTEMPS
=0;
13977 GNULIB_REALLOC_POSIX
=0;
13984 GNULIB_SYSTEM_POSIX
=0;
13990 HAVE_CANONICALIZE_FILE_NAME
=1;
13991 HAVE_DECL_GETLOADAVG
=1;
14005 HAVE_DECL_SETENV
=1;
14009 HAVE_STRUCT_RANDOM_DATA
=1;
14010 HAVE_SYS_LOADAVG_H
=0;
14012 HAVE_DECL_UNSETENV
=1;
14014 REPLACE_CANONICALIZE_FILE_NAME
=0;
14020 REPLACE_REALPATH
=0;
14023 REPLACE_UNSETENV
=0;
14032 GNULIB_EUIDACCESS
=0;
14033 GNULIB_FACCESSAT
=0;
14037 GNULIB_FTRUNCATE
=0;
14039 GNULIB_GETDOMAINNAME
=0;
14040 GNULIB_GETDTABLESIZE
=0;
14041 GNULIB_GETGROUPS
=0;
14042 GNULIB_GETHOSTNAME
=0;
14044 GNULIB_GETLOGIN_R
=0;
14045 GNULIB_GETPAGESIZE
=0;
14046 GNULIB_GETUSERSHELL
=0;
14056 GNULIB_READLINKAT
=0;
14060 GNULIB_SYMLINKAT
=0;
14061 GNULIB_TTYNAME_R
=0;
14062 GNULIB_UNISTD_H_GETOPT
=0;
14063 GNULIB_UNISTD_H_SIGPIPE
=0;
14077 HAVE_GETDTABLESIZE
=1;
14079 HAVE_GETHOSTNAME
=1;
14081 HAVE_GETPAGESIZE
=1;
14096 HAVE_DECL_ENVIRON
=1;
14097 HAVE_DECL_FCHDIR
=1;
14098 HAVE_DECL_GETDOMAINNAME
=1;
14099 HAVE_DECL_GETLOGIN_R
=1;
14100 HAVE_DECL_GETPAGESIZE
=1;
14101 HAVE_DECL_GETUSERSHELL
=1;
14102 HAVE_DECL_TTYNAME_R
=1;
14104 HAVE_SYS_PARAM_H
=0;
14109 REPLACE_FCHOWNAT
=0;
14111 REPLACE_GETDOMAINNAME
=0;
14112 REPLACE_GETLOGIN_R
=0;
14113 REPLACE_GETGROUPS
=0;
14114 REPLACE_GETPAGESIZE
=0;
14121 REPLACE_READLINK
=0;
14125 REPLACE_TTYNAME_R
=0;
14127 REPLACE_UNLINKAT
=0;
14130 UNISTD_H_HAVE_WINSOCK2_H
=0;
14131 UNISTD_H_HAVE_WINSOCK2_H_AND_USE_SOCKETS
=0;
14136 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the preprocessor supports include_next" >&5
14137 $as_echo_n "checking whether the preprocessor supports include_next... " >&6; }
14138 if ${gl_cv_have_include_next+:} false
; then :
14139 $as_echo_n "(cached) " >&6
14141 rm -rf conftestd1a conftestd1b conftestd2
14142 mkdir conftestd1a conftestd1b conftestd2
14143 cat <<EOF > conftestd1a/conftest.h
14144 #define DEFINED_IN_CONFTESTD1
14145 #include_next <conftest.h>
14146 #ifdef DEFINED_IN_CONFTESTD2
14149 #error "include_next doesn't work"
14152 cat <<EOF > conftestd1b/conftest.h
14153 #define DEFINED_IN_CONFTESTD1
14155 #include_next <conftest.h>
14156 #ifdef DEFINED_IN_CONFTESTD2
14159 #error "include_next doesn't work"
14162 cat <<EOF > conftestd2/conftest.h
14163 #ifndef DEFINED_IN_CONFTESTD1
14164 #error "include_next test doesn't work"
14166 #define DEFINED_IN_CONFTESTD2
14168 gl_save_CPPFLAGS
="$CPPFLAGS"
14169 CPPFLAGS
="$gl_save_CPPFLAGS -Iconftestd1b -Iconftestd2"
14170 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
14171 /* end confdefs.h. */
14172 #include <conftest.h>
14174 if ac_fn_c_try_compile
"$LINENO"; then :
14175 gl_cv_have_include_next
=yes
14177 CPPFLAGS
="$gl_save_CPPFLAGS -Iconftestd1a -Iconftestd2"
14178 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
14179 /* end confdefs.h. */
14180 #include <conftest.h>
14182 if ac_fn_c_try_compile
"$LINENO"; then :
14183 gl_cv_have_include_next
=buggy
14185 gl_cv_have_include_next
=no
14187 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
14190 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
14191 CPPFLAGS
="$gl_save_CPPFLAGS"
14192 rm -rf conftestd1a conftestd1b conftestd2
14195 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_have_include_next" >&5
14196 $as_echo "$gl_cv_have_include_next" >&6; }
14197 PRAGMA_SYSTEM_HEADER
=
14198 if test $gl_cv_have_include_next = yes; then
14199 INCLUDE_NEXT
=include_next
14200 INCLUDE_NEXT_AS_FIRST_DIRECTIVE
=include_next
14201 if test -n "$GCC"; then
14202 PRAGMA_SYSTEM_HEADER
='#pragma GCC system_header'
14205 if test $gl_cv_have_include_next = buggy
; then
14206 INCLUDE_NEXT
=include
14207 INCLUDE_NEXT_AS_FIRST_DIRECTIVE
=include_next
14209 INCLUDE_NEXT
=include
14210 INCLUDE_NEXT_AS_FIRST_DIRECTIVE
=include
14216 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether system header files limit the line length" >&5
14217 $as_echo_n "checking whether system header files limit the line length... " >&6; }
14218 if ${gl_cv_pragma_columns+:} false
; then :
14219 $as_echo_n "(cached) " >&6
14221 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
14222 /* end confdefs.h. */
14229 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
14230 $EGREP "choke me" >/dev
/null
2>&1; then :
14231 gl_cv_pragma_columns
=yes
14233 gl_cv_pragma_columns
=no
14239 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_pragma_columns" >&5
14240 $as_echo "$gl_cv_pragma_columns" >&6; }
14241 if test $gl_cv_pragma_columns = yes; then
14242 PRAGMA_COLUMNS
="#pragma COLUMNS 10000"
14263 if test $gl_cv_have_include_next = yes; then
14264 gl_cv_next_getopt_h
='<'getopt.h
'>'
14266 { $as_echo "$as_me:${as_lineno-$LINENO}: checking absolute name of <getopt.h>" >&5
14267 $as_echo_n "checking absolute name of <getopt.h>... " >&6; }
14268 if ${gl_cv_next_getopt_h+:} false
; then :
14269 $as_echo_n "(cached) " >&6
14272 if test $ac_cv_header_getopt_h = yes; then
14275 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
14276 /* end confdefs.h. */
14277 #include <getopt.h>
14281 aix
*) gl_absname_cpp
="$ac_cpp -C" ;;
14282 *) gl_absname_cpp
="$ac_cpp" ;;
14284 gl_cv_next_getopt_h
='"'`(eval "$gl_absname_cpp conftest.$ac_ext") 2>&5 |
14285 sed -n '\#/getopt.h#{
14286 s#.*"\(.*/getopt.h\)".*#\1#
14292 gl_cv_next_getopt_h
='<'getopt.h
'>'
14297 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_next_getopt_h" >&5
14298 $as_echo "$gl_cv_next_getopt_h" >&6; }
14300 NEXT_GETOPT_H
=$gl_cv_next_getopt_h
14302 if test $gl_cv_have_include_next = yes ||
test $gl_cv_have_include_next = buggy
; then
14303 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include_next'
14304 gl_next_as_first_directive
='<'getopt.h
'>'
14306 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include'
14307 gl_next_as_first_directive
=$gl_cv_next_getopt_h
14309 NEXT_AS_FIRST_DIRECTIVE_GETOPT_H
=$gl_next_as_first_directive
14314 if test $ac_cv_header_getopt_h = yes; then
14323 if test -z "$gl_replace_getopt" && test $gl_getopt_required = GNU
; then
14324 for ac_header
in getopt.h
14326 ac_fn_c_check_header_mongrel
"$LINENO" "getopt.h" "ac_cv_header_getopt_h" "$ac_includes_default"
14327 if test "x$ac_cv_header_getopt_h" = xyes
; then :
14328 cat >>confdefs.h
<<_ACEOF
14329 #define HAVE_GETOPT_H 1
14333 gl_replace_getopt
=yes
14340 if test -z "$gl_replace_getopt" && test $gl_getopt_required = GNU
; then
14341 for ac_func
in getopt_long_only
14343 ac_fn_c_check_func
"$LINENO" "getopt_long_only" "ac_cv_func_getopt_long_only"
14344 if test "x$ac_cv_func_getopt_long_only" = xyes
; then :
14345 cat >>confdefs.h
<<_ACEOF
14346 #define HAVE_GETOPT_LONG_ONLY 1
14350 gl_replace_getopt
=yes
14356 if test -z "$gl_replace_getopt"; then
14357 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether getopt is POSIX compatible" >&5
14358 $as_echo_n "checking whether getopt is POSIX compatible... " >&6; }
14359 if ${gl_cv_func_getopt_posix+:} false
; then :
14360 $as_echo_n "(cached) " >&6
14363 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
14364 /* end confdefs.h. */
14365 #include <unistd.h>
14369 int *p = &optreset; return optreset;
14374 if ac_fn_c_try_compile
"$LINENO"; then :
14377 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
14378 /* end confdefs.h. */
14379 #include <getopt.h>
14383 return !getopt_clip;
14388 if ac_fn_c_try_compile
"$LINENO"; then :
14393 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
14395 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
14397 gl_save_CPPFLAGS
=$CPPFLAGS
14398 CPPFLAGS
="$CPPFLAGS -DOPTIND_MIN=$gl_optind_min"
14399 if test "$cross_compiling" = yes; then :
14401 mingw
*) gl_cv_func_getopt_posix
="guessing no";;
14402 darwin
* | aix
*) gl_cv_func_getopt_posix
="guessing no";;
14403 *) gl_cv_func_getopt_posix
="guessing yes";;
14407 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
14408 /* end confdefs.h. */
14410 #include <unistd.h>
14411 #include <stdlib.h>
14412 #include <string.h>
14422 argv[argc++] = "program";
14423 argv[argc++] = "-a";
14424 argv[argc++] = "foo";
14425 argv[argc++] = "bar";
14427 optind = OPTIND_MIN;
14430 c = getopt (argc, argv, "ab");
14433 c = getopt (argc, argv, "ab");
14436 if (!(optind == 2))
14439 /* Some internal state exists at this point. */
14445 argv[argc++] = "program";
14446 argv[argc++] = "donald";
14447 argv[argc++] = "-p";
14448 argv[argc++] = "billy";
14449 argv[argc++] = "duck";
14450 argv[argc++] = "-a";
14451 argv[argc++] = "bar";
14453 optind = OPTIND_MIN;
14456 c = getopt (argc, argv, "+abp:q:");
14459 if (!(strcmp (argv[0], "program") == 0))
14461 if (!(strcmp (argv[1], "donald") == 0))
14463 if (!(strcmp (argv[2], "-p") == 0))
14465 if (!(strcmp (argv[3], "billy") == 0))
14467 if (!(strcmp (argv[4], "duck") == 0))
14469 if (!(strcmp (argv[5], "-a") == 0))
14471 if (!(strcmp (argv[6], "bar") == 0))
14473 if (!(optind == 1))
14476 /* Detect MacOS 10.5, AIX 7.1 bug. */
14478 char *argv[3] = { "program", "-ab", NULL };
14479 optind = OPTIND_MIN;
14481 if (getopt (2, argv, "ab:") != 'a')
14483 if (getopt (2, argv, "ab:") != '?')
14495 if ac_fn_c_try_run
"$LINENO"; then :
14496 gl_cv_func_getopt_posix
=yes
14498 gl_cv_func_getopt_posix
=no
14500 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
14501 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
14504 CPPFLAGS
=$gl_save_CPPFLAGS
14507 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_getopt_posix" >&5
14508 $as_echo "$gl_cv_func_getopt_posix" >&6; }
14509 case "$gl_cv_func_getopt_posix" in
14510 *no
) gl_replace_getopt
=yes ;;
14514 if test -z "$gl_replace_getopt" && test $gl_getopt_required = GNU
; then
14515 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working GNU getopt function" >&5
14516 $as_echo_n "checking for working GNU getopt function... " >&6; }
14517 if ${gl_cv_func_getopt_gnu+:} false
; then :
14518 $as_echo_n "(cached) " >&6
14520 # Even with POSIXLY_CORRECT, the GNU extension of leading '-' in the
14521 # optstring is necessary for programs like m4 that have POSIX-mandated
14522 # semantics for supporting options interspersed with files.
14523 # Also, since getopt_long is a GNU extension, we require optind=0.
14524 # Bash ties 'set -o posix' to a non-exported POSIXLY_CORRECT;
14525 # so take care to revert to the correct (non-)export state.
14526 gl_awk_probe
='BEGIN { if ("POSIXLY_CORRECT" in ENVIRON) print "x" }'
14527 case ${POSIXLY_CORRECT+x}`$AWK "$gl_awk_probe" </dev/null` in
14528 xx
) gl_had_POSIXLY_CORRECT
=exported
;;
14529 x
) gl_had_POSIXLY_CORRECT
=yes ;;
14530 *) gl_had_POSIXLY_CORRECT
= ;;
14533 export POSIXLY_CORRECT
14534 if test "$cross_compiling" = yes; then :
14535 case $host_os:$ac_cv_have_decl_optreset in
14536 *-gnu*:* | mingw
*:*) gl_cv_func_getopt_gnu
=no
;;
14537 *:yes) gl_cv_func_getopt_gnu
=no
;;
14538 *) gl_cv_func_getopt_gnu
=yes;;
14542 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
14543 /* end confdefs.h. */
14544 #include <getopt.h>
14545 #include <stddef.h>
14546 #include <string.h>
14553 /* This code succeeds on glibc 2.8, OpenBSD 4.0, Cygwin, mingw,
14554 and fails on MacOS X 10.5, AIX 5.2, HP-UX 11, IRIX 6.5,
14555 OSF/1 5.1, Solaris 10. */
14558 myargv[0] = "conftest";
14562 if (getopt (2, myargv, "+a") != '?')
14565 /* This code succeeds on glibc 2.8, mingw,
14566 and fails on MacOS X 10.5, OpenBSD 4.0, AIX 5.2, HP-UX 11,
14567 IRIX 6.5, OSF/1 5.1, Solaris 10, Cygwin 1.5.x. */
14569 char *argv[] = { "program", "-p", "foo", "bar", NULL };
14572 if (getopt (4, argv, "p::") != 'p')
14574 else if (optarg != NULL)
14576 else if (getopt (4, argv, "p::") != -1)
14578 else if (optind != 2)
14581 /* This code succeeds on glibc 2.8 and fails on Cygwin 1.7.0. */
14583 char *argv[] = { "program", "foo", "-p", NULL };
14585 if (getopt (3, argv, "-p") != 1)
14587 else if (getopt (3, argv, "-p") != 'p')
14590 /* This code fails on glibc 2.11. */
14592 char *argv[] = { "program", "-b", "-a", NULL };
14593 optind = opterr = 0;
14594 if (getopt (3, argv, "+:a:b") != 'b')
14596 else if (getopt (3, argv, "+:a:b") != ':')
14605 if ac_fn_c_try_run
"$LINENO"; then :
14606 gl_cv_func_getopt_gnu
=yes
14608 gl_cv_func_getopt_gnu
=no
14610 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
14611 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
14614 case $gl_had_POSIXLY_CORRECT in
14616 yes) { POSIXLY_CORRECT
=; unset POSIXLY_CORRECT
;}; POSIXLY_CORRECT
=1 ;;
14617 *) { POSIXLY_CORRECT
=; unset POSIXLY_CORRECT
;} ;;
14621 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_getopt_gnu" >&5
14622 $as_echo "$gl_cv_func_getopt_gnu" >&6; }
14623 if test "$gl_cv_func_getopt_gnu" = "no"; then
14624 gl_replace_getopt
=yes
14628 ac_fn_c_check_decl
"$LINENO" "getenv" "ac_cv_have_decl_getenv" "$ac_includes_default"
14629 if test "x$ac_cv_have_decl_getenv" = xyes
; then :
14635 cat >>confdefs.h
<<_ACEOF
14636 #define HAVE_DECL_GETENV $ac_have_decl
14644 if test -n "$gl_replace_getopt"; then :
14650 $as_echo "#define __GETOPT_PREFIX rpl_" >>confdefs.h
14654 GNULIB_UNISTD_H_GETOPT
=1
14663 gl_LIBOBJS
="$gl_LIBOBJS getopt.$ac_objext"
14673 gl_LIBOBJS
="$gl_LIBOBJS getopt1.$ac_objext"
14695 GNULIB_UTIMENSAT
=0;
14709 REPLACE_FUTIMENS
=0;
14715 REPLACE_UTIMENSAT
=0;
14720 for ac_func
in $ac_func_list
14722 as_ac_var
=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
14723 ac_fn_c_check_func
"$LINENO" "$ac_func" "$as_ac_var"
14724 if eval test \"x\$
"$as_ac_var"\" = x
"yes"; then :
14725 cat >>confdefs.h
<<_ACEOF
14726 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
14735 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether lstat correctly handles trailing slash" >&5
14736 $as_echo_n "checking whether lstat correctly handles trailing slash... " >&6; }
14737 if ${ac_cv_func_lstat_dereferences_slashed_symlink+:} false
; then :
14738 $as_echo_n "(cached) " >&6
14740 rm -f conftest.sym conftest.
file
14741 echo >conftest.
file
14742 if test "$as_ln_s" = "ln -s" && ln -s conftest.
file conftest.sym
; then
14743 if test "$cross_compiling" = yes; then :
14744 # When cross-compiling, be pessimistic so we will end up using the
14745 # replacement version of lstat that checks for trailing slashes and
14746 # calls lstat a second time when necessary.
14747 ac_cv_func_lstat_dereferences_slashed_symlink
=no
14750 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
14751 /* end confdefs.h. */
14752 $ac_includes_default
14757 /* Linux will dereference the symlink and fail, as required by
14758 POSIX. That is better in the sense that it means we will not
14759 have to compile and use the lstat wrapper. */
14760 return lstat ("conftest.sym/", &sbuf) == 0;
14766 if ac_fn_c_try_run
"$LINENO"; then :
14767 ac_cv_func_lstat_dereferences_slashed_symlink
=yes
14769 ac_cv_func_lstat_dereferences_slashed_symlink
=no
14771 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
14772 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
14776 # If the 'ln -s' command failed, then we probably don't even
14777 # have an lstat function.
14778 ac_cv_func_lstat_dereferences_slashed_symlink
=no
14780 rm -f conftest.sym conftest.
file
14783 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_lstat_dereferences_slashed_symlink" >&5
14784 $as_echo "$ac_cv_func_lstat_dereferences_slashed_symlink" >&6; }
14785 test $ac_cv_func_lstat_dereferences_slashed_symlink = yes &&
14787 cat >>confdefs.h
<<_ACEOF
14788 #define LSTAT_FOLLOWS_SLASHED_SYMLINK 1
14791 if test "x$ac_cv_func_lstat_dereferences_slashed_symlink" = xno
; then
14800 gl_LIBOBJS
="$gl_LIBOBJS lstat.$ac_objext"
14806 GNULIB_NANOSLEEP
=0;
14810 HAVE_DECL_LOCALTIME_R
=1;
14814 REPLACE_LOCALTIME_R
=GNULIB_PORTCHECK
;
14815 REPLACE_MKTIME
=GNULIB_PORTCHECK
;
14816 REPLACE_NANOSLEEP
=GNULIB_PORTCHECK
;
14817 REPLACE_TIMEGM
=GNULIB_PORTCHECK
;
14822 gl_cv_c_multiarch
=no
14823 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
14824 /* end confdefs.h. */
14825 #ifndef __APPLE_CC__
14826 not a universal capable compiler
14831 if ac_fn_c_try_compile
"$LINENO"; then :
14835 for word
in ${CC} ${CFLAGS} ${CPPFLAGS} ${LDFLAGS}; do
14836 if test -n "$prev"; then
14838 i?
86 | x86_64 | ppc | ppc64
)
14839 if test -z "$arch" ||
test "$arch" = "$word"; then
14842 gl_cv_c_multiarch
=yes
14848 if test "x$word" = "x-arch"; then
14855 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
14856 if test $gl_cv_c_multiarch = yes; then
14857 APPLE_UNIVERSAL_BUILD
=1
14859 APPLE_UNIVERSAL_BUILD
=0
14868 if test $ac_cv_header_sys_socket_h = no
; then
14869 for ac_header
in ws2tcpip.h
14871 ac_fn_c_check_header_mongrel
"$LINENO" "ws2tcpip.h" "ac_cv_header_ws2tcpip_h" "$ac_includes_default"
14872 if test "x$ac_cv_header_ws2tcpip_h" = xyes
; then :
14873 cat >>confdefs.h
<<_ACEOF
14874 #define HAVE_WS2TCPIP_H 1
14883 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for stdbool.h that conforms to C99" >&5
14884 $as_echo_n "checking for stdbool.h that conforms to C99... " >&6; }
14885 if ${ac_cv_header_stdbool_h+:} false
; then :
14886 $as_echo_n "(cached) " >&6
14888 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
14889 /* end confdefs.h. */
14891 #include <stdbool.h>
14893 "error: bool is not defined"
14896 "error: false is not defined"
14899 "error: false is not 0"
14902 "error: true is not defined"
14905 "error: true is not 1"
14907 #ifndef __bool_true_false_are_defined
14908 "error: __bool_true_false_are_defined is not defined"
14911 struct s { _Bool s: 1; _Bool t; } s;
14913 char a[true == 1 ? 1 : -1];
14914 char b[false == 0 ? 1 : -1];
14915 char c[__bool_true_false_are_defined == 1 ? 1 : -1];
14916 char d[(bool) 0.5 == true ? 1 : -1];
14917 /* See body of main program for 'e'. */
14918 char f[(_Bool) 0.0 == false ? 1 : -1];
14920 char h[sizeof (_Bool)];
14921 char i[sizeof s.t];
14922 enum { j = false, k = true, l = false * true, m = true * 256 };
14923 /* The following fails for
14924 HP aC++/ANSI C B3910B A.05.55 [Dec 04 2003]. */
14926 char o[sizeof n == m * sizeof n[0] ? 1 : -1];
14927 char p[-1 - (_Bool) 0 < 0 && -1 - (bool) 0 < 0 ? 1 : -1];
14928 /* Catch a bug in an HP-UX C compiler. See
14929 http://gcc.gnu.org/ml/gcc-patches/2003-12/msg02303.html
14930 http://lists.gnu.org/archive/html/bug-coreutils/2005-11/msg00161.html
14942 /* Refer to every declared value, to avoid compiler optimizations. */
14943 return (!a + !b + !c + !d + !e + !f + !g + !h + !i + !!j + !k + !!l
14944 + !m + !n + !o + !p + !q + !pq);
14950 if ac_fn_c_try_compile
"$LINENO"; then :
14951 ac_cv_header_stdbool_h
=yes
14953 ac_cv_header_stdbool_h
=no
14955 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
14957 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdbool_h" >&5
14958 $as_echo "$ac_cv_header_stdbool_h" >&6; }
14959 ac_fn_c_check_type
"$LINENO" "_Bool" "ac_cv_type__Bool" "$ac_includes_default"
14960 if test "x$ac_cv_type__Bool" = xyes
; then :
14962 cat >>confdefs.h
<<_ACEOF
14963 #define HAVE__BOOL 1
14976 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for wchar_t" >&5
14977 $as_echo_n "checking for wchar_t... " >&6; }
14978 if ${gt_cv_c_wchar_t+:} false
; then :
14979 $as_echo_n "(cached) " >&6
14981 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
14982 /* end confdefs.h. */
14983 #include <stddef.h>
14984 wchar_t foo = (wchar_t)'\0';
14993 if ac_fn_c_try_compile
"$LINENO"; then :
14994 gt_cv_c_wchar_t
=yes
14998 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
15000 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_c_wchar_t" >&5
15001 $as_echo "$gt_cv_c_wchar_t" >&6; }
15002 if test $gt_cv_c_wchar_t = yes; then
15004 $as_echo "#define HAVE_WCHAR_T 1" >>confdefs.h
15009 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for unsigned long long int" >&5
15010 $as_echo_n "checking for unsigned long long int... " >&6; }
15011 if ${ac_cv_type_unsigned_long_long_int+:} false
; then :
15012 $as_echo_n "(cached) " >&6
15014 ac_cv_type_unsigned_long_long_int
=yes
15015 if test "x${ac_cv_prog_cc_c99-no}" = xno
; then
15016 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
15017 /* end confdefs.h. */
15019 /* For now, do not test the preprocessor; as of 2007 there are too many
15020 implementations with broken preprocessors. Perhaps this can
15021 be revisited in 2012. In the meantime, code should not expect
15022 #if to work with literals wider than 32 bits. */
15023 /* Test literals. */
15024 long long int ll = 9223372036854775807ll;
15025 long long int nll = -9223372036854775807LL;
15026 unsigned long long int ull = 18446744073709551615ULL;
15027 /* Test constant expressions. */
15028 typedef int a[((-9223372036854775807LL < 0 && 0 < 9223372036854775807ll)
15030 typedef int b[(18446744073709551615ULL <= (unsigned long long int) -1
15036 /* Test availability of runtime routines for shift and division. */
15037 long long int llmax = 9223372036854775807ll;
15038 unsigned long long int ullmax = 18446744073709551615ull;
15039 return ((ll << 63) | (ll >> 63) | (ll < i) | (ll > i)
15040 | (llmax / ll) | (llmax % ll)
15041 | (ull << 63) | (ull >> 63) | (ull << i) | (ull >> i)
15042 | (ullmax / ull) | (ullmax % ull));
15048 if ac_fn_c_try_link
"$LINENO"; then :
15051 ac_cv_type_unsigned_long_long_int
=no
15053 rm -f core conftest.err conftest.
$ac_objext \
15054 conftest
$ac_exeext conftest.
$ac_ext
15057 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_unsigned_long_long_int" >&5
15058 $as_echo "$ac_cv_type_unsigned_long_long_int" >&6; }
15059 if test $ac_cv_type_unsigned_long_long_int = yes; then
15061 $as_echo "#define HAVE_UNSIGNED_LONG_LONG_INT 1" >>confdefs.h
15067 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for long long int" >&5
15068 $as_echo_n "checking for long long int... " >&6; }
15069 if ${ac_cv_type_long_long_int+:} false
; then :
15070 $as_echo_n "(cached) " >&6
15072 ac_cv_type_long_long_int
=yes
15073 if test "x${ac_cv_prog_cc_c99-no}" = xno
; then
15074 ac_cv_type_long_long_int
=$ac_cv_type_unsigned_long_long_int
15075 if test $ac_cv_type_long_long_int = yes; then
15076 if test "$cross_compiling" = yes; then :
15079 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
15080 /* end confdefs.h. */
15081 #include <limits.h>
15084 (1LL << (sizeof (long long int) * CHAR_BIT - 2))
15085 # define LLONG_MAX (HALF - 1 + HALF)
15090 long long int n = 1;
15094 long long int m = n << i;
15097 if (LLONG_MAX / 2 < m)
15105 if ac_fn_c_try_run
"$LINENO"; then :
15108 ac_cv_type_long_long_int
=no
15110 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
15111 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
15117 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_long_long_int" >&5
15118 $as_echo "$ac_cv_type_long_long_int" >&6; }
15119 if test $ac_cv_type_long_long_int = yes; then
15121 $as_echo "#define HAVE_LONG_LONG_INT 1" >>confdefs.h
15135 GNULIB_FPRINTF_POSIX
=0;
15147 GNULIB_OBSTACK_PRINTF
=0;
15148 GNULIB_OBSTACK_PRINTF_POSIX
=0;
15152 GNULIB_PRINTF_POSIX
=0;
15160 GNULIB_SPRINTF_POSIX
=0;
15161 GNULIB_STDIO_H_SIGPIPE
=0;
15163 GNULIB_VASPRINTF
=0;
15166 GNULIB_VFPRINTF_POSIX
=0;
15168 GNULIB_VPRINTF_POSIX
=0;
15169 GNULIB_VSNPRINTF
=0;
15170 GNULIB_VSPRINTF_POSIX
=0;
15171 HAVE_DECL_FPURGE
=1;
15172 HAVE_DECL_FSEEKO
=1;
15173 HAVE_DECL_FTELLO
=1;
15174 HAVE_DECL_GETDELIM
=1;
15175 HAVE_DECL_GETLINE
=1;
15176 HAVE_DECL_OBSTACK_PRINTF
=1;
15177 HAVE_DECL_SNPRINTF
=1;
15178 HAVE_DECL_VSNPRINTF
=1;
15196 REPLACE_GETDELIM
=0;
15198 REPLACE_OBSTACK_PRINTF
=0;
15204 REPLACE_RENAMEAT
=0;
15205 REPLACE_SNPRINTF
=0;
15207 REPLACE_STDIO_WRITE_FUNCS
=0;
15209 REPLACE_VASPRINTF
=0;
15210 REPLACE_VDPRINTF
=0;
15211 REPLACE_VFPRINTF
=0;
15213 REPLACE_VSNPRINTF
=0;
15214 REPLACE_VSPRINTF
=0;
15217 ac_fn_c_check_member
"$LINENO" "struct tm" "tm_gmtoff" "ac_cv_member_struct_tm_tm_gmtoff" "#include <time.h>
15219 if test "x$ac_cv_member_struct_tm_tm_gmtoff" = xyes
; then :
15221 $as_echo "#define HAVE_TM_GMTOFF 1" >>confdefs.h
15230 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stat file-mode macros are broken" >&5
15231 $as_echo_n "checking whether stat file-mode macros are broken... " >&6; }
15232 if ${ac_cv_header_stat_broken+:} false
; then :
15233 $as_echo_n "(cached) " >&6
15235 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
15236 /* end confdefs.h. */
15237 #include <sys/types.h>
15238 #include <sys/stat.h>
15240 #if defined S_ISBLK && defined S_IFDIR
15241 extern char c1[S_ISBLK (S_IFDIR) ? -1 : 1];
15244 #if defined S_ISBLK && defined S_IFCHR
15245 extern char c2[S_ISBLK (S_IFCHR) ? -1 : 1];
15248 #if defined S_ISLNK && defined S_IFREG
15249 extern char c3[S_ISLNK (S_IFREG) ? -1 : 1];
15252 #if defined S_ISSOCK && defined S_IFREG
15253 extern char c4[S_ISSOCK (S_IFREG) ? -1 : 1];
15257 if ac_fn_c_try_compile
"$LINENO"; then :
15258 ac_cv_header_stat_broken
=no
15260 ac_cv_header_stat_broken
=yes
15262 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
15264 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stat_broken" >&5
15265 $as_echo "$ac_cv_header_stat_broken" >&6; }
15266 if test $ac_cv_header_stat_broken = yes; then
15268 $as_echo "#define STAT_MACROS_BROKEN 1" >>confdefs.h
15274 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for C/C++ restrict keyword" >&5
15275 $as_echo_n "checking for C/C++ restrict keyword... " >&6; }
15276 if ${ac_cv_c_restrict+:} false
; then :
15277 $as_echo_n "(cached) " >&6
15279 ac_cv_c_restrict
=no
15280 # The order here caters to the fact that C++ does not require restrict.
15281 for ac_kw
in __restrict __restrict__ _Restrict restrict
; do
15282 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
15283 /* end confdefs.h. */
15284 typedef int * int_ptr;
15285 int foo (int_ptr $ac_kw ip) {
15292 int * $ac_kw t = s;
15299 if ac_fn_c_try_compile
"$LINENO"; then :
15300 ac_cv_c_restrict
=$ac_kw
15302 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
15303 test "$ac_cv_c_restrict" != no
&& break
15307 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_restrict" >&5
15308 $as_echo "$ac_cv_c_restrict" >&6; }
15310 case $ac_cv_c_restrict in
15312 no
) $as_echo "#define restrict /**/" >>confdefs.h
15314 *) cat >>confdefs.h
<<_ACEOF
15315 #define restrict $ac_cv_c_restrict
15324 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for struct timespec in <time.h>" >&5
15325 $as_echo_n "checking for struct timespec in <time.h>... " >&6; }
15326 if ${gl_cv_sys_struct_timespec_in_time_h+:} false
; then :
15327 $as_echo_n "(cached) " >&6
15329 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
15330 /* end confdefs.h. */
15336 static struct timespec x; x.tv_sec = x.tv_nsec;
15341 if ac_fn_c_try_compile
"$LINENO"; then :
15342 gl_cv_sys_struct_timespec_in_time_h
=yes
15344 gl_cv_sys_struct_timespec_in_time_h
=no
15346 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
15348 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_sys_struct_timespec_in_time_h" >&5
15349 $as_echo "$gl_cv_sys_struct_timespec_in_time_h" >&6; }
15351 TIME_H_DEFINES_STRUCT_TIMESPEC
=0
15352 SYS_TIME_H_DEFINES_STRUCT_TIMESPEC
=0
15353 PTHREAD_H_DEFINES_STRUCT_TIMESPEC
=0
15354 if test $gl_cv_sys_struct_timespec_in_time_h = yes; then
15355 TIME_H_DEFINES_STRUCT_TIMESPEC
=1
15357 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for struct timespec in <sys/time.h>" >&5
15358 $as_echo_n "checking for struct timespec in <sys/time.h>... " >&6; }
15359 if ${gl_cv_sys_struct_timespec_in_sys_time_h+:} false
; then :
15360 $as_echo_n "(cached) " >&6
15362 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
15363 /* end confdefs.h. */
15364 #include <sys/time.h>
15369 static struct timespec x; x.tv_sec = x.tv_nsec;
15374 if ac_fn_c_try_compile
"$LINENO"; then :
15375 gl_cv_sys_struct_timespec_in_sys_time_h
=yes
15377 gl_cv_sys_struct_timespec_in_sys_time_h
=no
15379 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
15381 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_sys_struct_timespec_in_sys_time_h" >&5
15382 $as_echo "$gl_cv_sys_struct_timespec_in_sys_time_h" >&6; }
15383 if test $gl_cv_sys_struct_timespec_in_sys_time_h = yes; then
15384 SYS_TIME_H_DEFINES_STRUCT_TIMESPEC
=1
15386 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for struct timespec in <pthread.h>" >&5
15387 $as_echo_n "checking for struct timespec in <pthread.h>... " >&6; }
15388 if ${gl_cv_sys_struct_timespec_in_pthread_h+:} false
; then :
15389 $as_echo_n "(cached) " >&6
15391 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
15392 /* end confdefs.h. */
15393 #include <pthread.h>
15398 static struct timespec x; x.tv_sec = x.tv_nsec;
15403 if ac_fn_c_try_compile
"$LINENO"; then :
15404 gl_cv_sys_struct_timespec_in_pthread_h
=yes
15406 gl_cv_sys_struct_timespec_in_pthread_h
=no
15408 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
15410 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_sys_struct_timespec_in_pthread_h" >&5
15411 $as_echo "$gl_cv_sys_struct_timespec_in_pthread_h" >&6; }
15412 if test $gl_cv_sys_struct_timespec_in_pthread_h = yes; then
15413 PTHREAD_H_DEFINES_STRUCT_TIMESPEC
=1
15432 if test $gl_cv_have_include_next = yes; then
15433 gl_cv_next_time_h
='<'time.h
'>'
15435 { $as_echo "$as_me:${as_lineno-$LINENO}: checking absolute name of <time.h>" >&5
15436 $as_echo_n "checking absolute name of <time.h>... " >&6; }
15437 if ${gl_cv_next_time_h+:} false
; then :
15438 $as_echo_n "(cached) " >&6
15441 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
15442 /* end confdefs.h. */
15447 aix
*) gl_absname_cpp
="$ac_cpp -C" ;;
15448 *) gl_absname_cpp
="$ac_cpp" ;;
15450 gl_cv_next_time_h
='"'`(eval "$gl_absname_cpp conftest.$ac_ext") 2>&5 |
15451 sed -n '\#/time.h#{
15452 s#.*"\(.*/time.h\)".*#\1#
15460 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_next_time_h" >&5
15461 $as_echo "$gl_cv_next_time_h" >&6; }
15463 NEXT_TIME_H
=$gl_cv_next_time_h
15465 if test $gl_cv_have_include_next = yes ||
test $gl_cv_have_include_next = buggy
; then
15466 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include_next'
15467 gl_next_as_first_directive
='<'time.h
'>'
15469 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include'
15470 gl_next_as_first_directive
=$gl_cv_next_time_h
15472 NEXT_AS_FIRST_DIRECTIVE_TIME_H
=$gl_next_as_first_directive
15479 ac_fn_c_check_decl
"$LINENO" "localtime_r" "ac_cv_have_decl_localtime_r" "$ac_includes_default"
15480 if test "x$ac_cv_have_decl_localtime_r" = xyes
; then :
15486 cat >>confdefs.h
<<_ACEOF
15487 #define HAVE_DECL_LOCALTIME_R $ac_have_decl
15494 GL_COND_LIBTOOL_TRUE
=
15495 GL_COND_LIBTOOL_FALSE
='#'
15497 GL_COND_LIBTOOL_TRUE
='#'
15498 GL_COND_LIBTOOL_FALSE
=
15501 gl_cond_libtool
=false
15514 gl_source_base
='lib'
15515 # Code from module arg-nonnull:
15516 # Code from module c++defs:
15517 # Code from module crypto/md5:
15527 gl_LIBOBJS
="$gl_LIBOBJS md5.$ac_objext"
15534 # Code from module dosname:
15535 # Code from module dtoastr:
15537 # Code from module extensions:
15538 # Code from module filemode:
15549 gl_LIBOBJS
="$gl_LIBOBJS filemode.$ac_objext"
15553 # Code from module getloadavg:
15556 # Persuade glibc <stdlib.h> to declare getloadavg().
15559 # Make sure getloadavg.c is where it belongs, at configure-time.
15560 test -f "$srcdir/$gl_source_base/getloadavg.c" ||
15561 as_fn_error $?
"$srcdir/$gl_source_base/getloadavg.c is missing" "$LINENO" 5
15565 # getloadvg is present in libc on glibc >= 2.2, MacOS X, FreeBSD >= 2.0,
15566 # NetBSD >= 0.9, OpenBSD >= 2.0, Solaris >= 7.
15567 ac_fn_c_check_func
"$LINENO" "getloadavg" "ac_cv_func_getloadavg"
15568 if test "x$ac_cv_func_getloadavg" = xyes
; then :
15573 # Some systems with -lutil have (and need) -lkvm as well, some do not.
15574 # On Solaris, -lkvm requires nlist from -lelf, so check that first
15575 # to get the right answer into the cache.
15576 # For kstat on solaris, we need to test for libelf and libkvm to force the
15577 # definition of SVR4 below.
15578 if test $gl_have_func = no
; then
15579 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for elf_begin in -lelf" >&5
15580 $as_echo_n "checking for elf_begin in -lelf... " >&6; }
15581 if ${ac_cv_lib_elf_elf_begin+:} false
; then :
15582 $as_echo_n "(cached) " >&6
15584 ac_check_lib_save_LIBS
=$LIBS
15586 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
15587 /* end confdefs.h. */
15589 /* Override any GCC internal prototype to avoid an error.
15590 Use char because int might match the return type of a GCC
15591 builtin and then its argument prototype would still apply. */
15599 return elf_begin ();
15604 if ac_fn_c_try_link
"$LINENO"; then :
15605 ac_cv_lib_elf_elf_begin
=yes
15607 ac_cv_lib_elf_elf_begin
=no
15609 rm -f core conftest.err conftest.
$ac_objext \
15610 conftest
$ac_exeext conftest.
$ac_ext
15611 LIBS
=$ac_check_lib_save_LIBS
15613 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_elf_elf_begin" >&5
15614 $as_echo "$ac_cv_lib_elf_elf_begin" >&6; }
15615 if test "x$ac_cv_lib_elf_elf_begin" = xyes
; then :
15619 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for kvm_open in -lkvm" >&5
15620 $as_echo_n "checking for kvm_open in -lkvm... " >&6; }
15621 if ${ac_cv_lib_kvm_kvm_open+:} false
; then :
15622 $as_echo_n "(cached) " >&6
15624 ac_check_lib_save_LIBS
=$LIBS
15626 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
15627 /* end confdefs.h. */
15629 /* Override any GCC internal prototype to avoid an error.
15630 Use char because int might match the return type of a GCC
15631 builtin and then its argument prototype would still apply. */
15639 return kvm_open ();
15644 if ac_fn_c_try_link
"$LINENO"; then :
15645 ac_cv_lib_kvm_kvm_open
=yes
15647 ac_cv_lib_kvm_kvm_open
=no
15649 rm -f core conftest.err conftest.
$ac_objext \
15650 conftest
$ac_exeext conftest.
$ac_ext
15651 LIBS
=$ac_check_lib_save_LIBS
15653 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_kvm_kvm_open" >&5
15654 $as_echo "$ac_cv_lib_kvm_kvm_open" >&6; }
15655 if test "x$ac_cv_lib_kvm_kvm_open" = xyes
; then :
15659 # Check for the 4.4BSD definition of getloadavg.
15660 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for getloadavg in -lutil" >&5
15661 $as_echo_n "checking for getloadavg in -lutil... " >&6; }
15662 if ${ac_cv_lib_util_getloadavg+:} false
; then :
15663 $as_echo_n "(cached) " >&6
15665 ac_check_lib_save_LIBS
=$LIBS
15666 LIBS
="-lutil $LIBS"
15667 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
15668 /* end confdefs.h. */
15670 /* Override any GCC internal prototype to avoid an error.
15671 Use char because int might match the return type of a GCC
15672 builtin and then its argument prototype would still apply. */
15676 char getloadavg ();
15680 return getloadavg ();
15685 if ac_fn_c_try_link
"$LINENO"; then :
15686 ac_cv_lib_util_getloadavg
=yes
15688 ac_cv_lib_util_getloadavg
=no
15690 rm -f core conftest.err conftest.
$ac_objext \
15691 conftest
$ac_exeext conftest.
$ac_ext
15692 LIBS
=$ac_check_lib_save_LIBS
15694 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_util_getloadavg" >&5
15695 $as_echo "$ac_cv_lib_util_getloadavg" >&6; }
15696 if test "x$ac_cv_lib_util_getloadavg" = xyes
; then :
15697 LIBS
="-lutil $LIBS" gl_have_func
=yes
15702 if test $gl_have_func = no
; then
15703 # There is a commonly available library for RS/6000 AIX.
15704 # Since it is not a standard part of AIX, it might be installed locally.
15705 gl_getloadavg_LIBS
=$LIBS
15706 LIBS
="-L/usr/local/lib $LIBS"
15707 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for getloadavg in -lgetloadavg" >&5
15708 $as_echo_n "checking for getloadavg in -lgetloadavg... " >&6; }
15709 if ${ac_cv_lib_getloadavg_getloadavg+:} false
; then :
15710 $as_echo_n "(cached) " >&6
15712 ac_check_lib_save_LIBS
=$LIBS
15713 LIBS
="-lgetloadavg $LIBS"
15714 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
15715 /* end confdefs.h. */
15717 /* Override any GCC internal prototype to avoid an error.
15718 Use char because int might match the return type of a GCC
15719 builtin and then its argument prototype would still apply. */
15723 char getloadavg ();
15727 return getloadavg ();
15732 if ac_fn_c_try_link
"$LINENO"; then :
15733 ac_cv_lib_getloadavg_getloadavg
=yes
15735 ac_cv_lib_getloadavg_getloadavg
=no
15737 rm -f core conftest.err conftest.
$ac_objext \
15738 conftest
$ac_exeext conftest.
$ac_ext
15739 LIBS
=$ac_check_lib_save_LIBS
15741 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_getloadavg_getloadavg" >&5
15742 $as_echo "$ac_cv_lib_getloadavg_getloadavg" >&6; }
15743 if test "x$ac_cv_lib_getloadavg_getloadavg" = xyes
; then :
15744 LIBS
="-lgetloadavg $LIBS" gl_have_func
=yes
15746 LIBS
=$gl_getloadavg_LIBS
15751 # Set up the replacement function if necessary.
15752 if test $gl_have_func = no
; then
15761 gl_LIBOBJS
="$gl_LIBOBJS getloadavg.$ac_objext"
15764 # Figure out what our getloadavg.c needs.
15766 # Solaris has libkstat which does not require root.
15767 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for kstat_open in -lkstat" >&5
15768 $as_echo_n "checking for kstat_open in -lkstat... " >&6; }
15769 if ${ac_cv_lib_kstat_kstat_open+:} false
; then :
15770 $as_echo_n "(cached) " >&6
15772 ac_check_lib_save_LIBS
=$LIBS
15773 LIBS
="-lkstat $LIBS"
15774 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
15775 /* end confdefs.h. */
15777 /* Override any GCC internal prototype to avoid an error.
15778 Use char because int might match the return type of a GCC
15779 builtin and then its argument prototype would still apply. */
15783 char kstat_open ();
15787 return kstat_open ();
15792 if ac_fn_c_try_link
"$LINENO"; then :
15793 ac_cv_lib_kstat_kstat_open
=yes
15795 ac_cv_lib_kstat_kstat_open
=no
15797 rm -f core conftest.err conftest.
$ac_objext \
15798 conftest
$ac_exeext conftest.
$ac_ext
15799 LIBS
=$ac_check_lib_save_LIBS
15801 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_kstat_kstat_open" >&5
15802 $as_echo "$ac_cv_lib_kstat_kstat_open" >&6; }
15803 if test "x$ac_cv_lib_kstat_kstat_open" = xyes
; then :
15804 cat >>confdefs.h
<<_ACEOF
15805 #define HAVE_LIBKSTAT 1
15808 LIBS
="-lkstat $LIBS"
15812 test $ac_cv_lib_kstat_kstat_open = yes && gl_have_func
=yes
15814 # On HPUX9, an unprivileged user can get load averages this way.
15815 if test $gl_have_func = no
; then
15816 for ac_func
in pstat_getdynamic
15818 ac_fn_c_check_func
"$LINENO" "pstat_getdynamic" "ac_cv_func_pstat_getdynamic"
15819 if test "x$ac_cv_func_pstat_getdynamic" = xyes
; then :
15820 cat >>confdefs.h
<<_ACEOF
15821 #define HAVE_PSTAT_GETDYNAMIC 1
15829 # AIX has libperfstat which does not require root
15830 if test $gl_have_func = no
; then
15831 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for perfstat_cpu_total in -lperfstat" >&5
15832 $as_echo_n "checking for perfstat_cpu_total in -lperfstat... " >&6; }
15833 if ${ac_cv_lib_perfstat_perfstat_cpu_total+:} false
; then :
15834 $as_echo_n "(cached) " >&6
15836 ac_check_lib_save_LIBS
=$LIBS
15837 LIBS
="-lperfstat $LIBS"
15838 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
15839 /* end confdefs.h. */
15841 /* Override any GCC internal prototype to avoid an error.
15842 Use char because int might match the return type of a GCC
15843 builtin and then its argument prototype would still apply. */
15847 char perfstat_cpu_total ();
15851 return perfstat_cpu_total ();
15856 if ac_fn_c_try_link
"$LINENO"; then :
15857 ac_cv_lib_perfstat_perfstat_cpu_total
=yes
15859 ac_cv_lib_perfstat_perfstat_cpu_total
=no
15861 rm -f core conftest.err conftest.
$ac_objext \
15862 conftest
$ac_exeext conftest.
$ac_ext
15863 LIBS
=$ac_check_lib_save_LIBS
15865 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_perfstat_perfstat_cpu_total" >&5
15866 $as_echo "$ac_cv_lib_perfstat_perfstat_cpu_total" >&6; }
15867 if test "x$ac_cv_lib_perfstat_perfstat_cpu_total" = xyes
; then :
15868 cat >>confdefs.h
<<_ACEOF
15869 #define HAVE_LIBPERFSTAT 1
15872 LIBS
="-lperfstat $LIBS"
15876 test $ac_cv_lib_perfstat_perfstat_cpu_total = yes && gl_have_func
=yes
15879 if test $gl_have_func = no
; then
15880 ac_fn_c_check_header_mongrel
"$LINENO" "sys/dg_sys_info.h" "ac_cv_header_sys_dg_sys_info_h" "$ac_includes_default"
15881 if test "x$ac_cv_header_sys_dg_sys_info_h" = xyes
; then :
15884 $as_echo "#define DGUX 1" >>confdefs.h
15886 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dg_sys_info in -ldgc" >&5
15887 $as_echo_n "checking for dg_sys_info in -ldgc... " >&6; }
15888 if ${ac_cv_lib_dgc_dg_sys_info+:} false
; then :
15889 $as_echo_n "(cached) " >&6
15891 ac_check_lib_save_LIBS
=$LIBS
15893 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
15894 /* end confdefs.h. */
15896 /* Override any GCC internal prototype to avoid an error.
15897 Use char because int might match the return type of a GCC
15898 builtin and then its argument prototype would still apply. */
15902 char dg_sys_info ();
15906 return dg_sys_info ();
15911 if ac_fn_c_try_link
"$LINENO"; then :
15912 ac_cv_lib_dgc_dg_sys_info
=yes
15914 ac_cv_lib_dgc_dg_sys_info
=no
15916 rm -f core conftest.err conftest.
$ac_objext \
15917 conftest
$ac_exeext conftest.
$ac_ext
15918 LIBS
=$ac_check_lib_save_LIBS
15920 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dgc_dg_sys_info" >&5
15921 $as_echo "$ac_cv_lib_dgc_dg_sys_info" >&6; }
15922 if test "x$ac_cv_lib_dgc_dg_sys_info" = xyes
; then :
15923 cat >>confdefs.h
<<_ACEOF
15924 #define HAVE_LIBDGC 1
15936 # We cannot check for <dwarf.h>, because Solaris 2 does not use dwarf (it
15937 # uses stabs), but it is still SVR4. We cannot check for <elf.h> because
15938 # Irix 4.0.5F has the header but not the library.
15939 if test $gl_have_func = no
&& test "$ac_cv_lib_elf_elf_begin" = yes \
15940 && test "$ac_cv_lib_kvm_kvm_open" = yes; then
15943 $as_echo "#define SVR4 1" >>confdefs.h
15947 if test $gl_have_func = no
; then
15948 ac_fn_c_check_header_mongrel
"$LINENO" "inq_stats/cpustats.h" "ac_cv_header_inq_stats_cpustats_h" "$ac_includes_default"
15949 if test "x$ac_cv_header_inq_stats_cpustats_h" = xyes
; then :
15952 $as_echo "#define UMAX 1" >>confdefs.h
15955 $as_echo "#define UMAX4_3 1" >>confdefs.h
15962 if test $gl_have_func = no
; then
15963 ac_fn_c_check_header_mongrel
"$LINENO" "sys/cpustats.h" "ac_cv_header_sys_cpustats_h" "$ac_includes_default"
15964 if test "x$ac_cv_header_sys_cpustats_h" = xyes
; then :
15965 gl_have_func
=yes; $as_echo "#define UMAX 1" >>confdefs.h
15972 if test $gl_have_func = no
; then
15973 for ac_header
in mach
/mach.h
15975 ac_fn_c_check_header_mongrel
"$LINENO" "mach/mach.h" "ac_cv_header_mach_mach_h" "$ac_includes_default"
15976 if test "x$ac_cv_header_mach_mach_h" = xyes
; then :
15977 cat >>confdefs.h
<<_ACEOF
15978 #define HAVE_MACH_MACH_H 1
15987 for ac_header
in nlist.h
15989 ac_fn_c_check_header_mongrel
"$LINENO" "nlist.h" "ac_cv_header_nlist_h" "$ac_includes_default"
15990 if test "x$ac_cv_header_nlist_h" = xyes
; then :
15991 cat >>confdefs.h
<<_ACEOF
15992 #define HAVE_NLIST_H 1
15994 ac_fn_c_check_member
"$LINENO" "struct nlist" "n_un.n_name" "ac_cv_member_struct_nlist_n_un_n_name" "#include <nlist.h>
15996 if test "x$ac_cv_member_struct_nlist_n_un_n_name" = xyes
; then :
15998 cat >>confdefs.h
<<_ACEOF
15999 #define HAVE_STRUCT_NLIST_N_UN_N_NAME 1
16005 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
16006 /* end confdefs.h. */
16012 #ifdef HAVE_STRUCT_NLIST_N_UN_N_NAME
16013 x.n_un.n_name = "";
16021 if ac_fn_c_try_link
"$LINENO"; then :
16023 $as_echo "#define N_NAME_POINTER 1" >>confdefs.h
16026 rm -f core conftest.err conftest.
$ac_objext \
16027 conftest
$ac_exeext conftest.
$ac_ext
16037 if test "x$gl_save_LIBS" = x
; then
16038 GETLOADAVG_LIBS
=$LIBS
16040 GETLOADAVG_LIBS
=`echo "$LIBS" | sed "s!$gl_save_LIBS!!"`
16045 # Test whether the system declares getloadavg. Solaris has the function
16046 # but declares it in <sys/loadavg.h>, not <stdlib.h>.
16047 for ac_header
in sys
/loadavg.h
16049 ac_fn_c_check_header_mongrel
"$LINENO" "sys/loadavg.h" "ac_cv_header_sys_loadavg_h" "$ac_includes_default"
16050 if test "x$ac_cv_header_sys_loadavg_h" = xyes
; then :
16051 cat >>confdefs.h
<<_ACEOF
16052 #define HAVE_SYS_LOADAVG_H 1
16059 if test $ac_cv_header_sys_loadavg_h = yes; then
16060 HAVE_SYS_LOADAVG_H
=1
16062 HAVE_SYS_LOADAVG_H
=0
16064 ac_fn_c_check_decl
"$LINENO" "getloadavg" "ac_cv_have_decl_getloadavg" "#if HAVE_SYS_LOADAVG_H
16065 # include <sys/loadavg.h>
16067 #include <stdlib.h>
16069 if test "x$ac_cv_have_decl_getloadavg" = xyes
; then :
16072 HAVE_DECL_GETLOADAVG
=0
16079 GNULIB_GETLOADAVG
=1
16083 # Code from module getopt-gnu:
16090 # Code from module getopt-posix:
16096 if test -n "$gl_replace_getopt"; then :
16102 $as_echo "#define __GETOPT_PREFIX rpl_" >>confdefs.h
16106 GNULIB_UNISTD_H_GETOPT
=1
16115 gl_LIBOBJS
="$gl_LIBOBJS getopt.$ac_objext"
16125 gl_LIBOBJS
="$gl_LIBOBJS getopt1.$ac_objext"
16135 # Code from module gettext-h:
16138 # Code from module ignore-value:
16140 # Code from module include_next:
16141 # Code from module intprops:
16142 # Code from module lstat:
16146 if test $ac_cv_func_lstat = yes; then
16148 if test $ac_cv_func_lstat_dereferences_slashed_symlink = no
; then
16151 # Prerequisites of lib/lstat.c.
16164 # Code from module mktime:
16170 if test $APPLE_UNIVERSAL_BUILD = 1; then
16171 # A universal build on Apple MacOS X platforms.
16172 # The test result would be 'yes' in 32-bit mode and 'no' in 64-bit mode.
16173 # But we need a configuration result that is valid in both modes.
16174 ac_cv_func_working_mktime
=no
16176 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working mktime" >&5
16177 $as_echo_n "checking for working mktime... " >&6; }
16178 if ${ac_cv_func_working_mktime+:} false
; then :
16179 $as_echo_n "(cached) " >&6
16181 if test "$cross_compiling" = yes; then :
16182 ac_cv_func_working_mktime
=no
16184 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
16185 /* end confdefs.h. */
16186 /* Test program from Paul Eggert and Tony Leneis. */
16187 #include <limits.h>
16188 #include <stdlib.h>
16191 #ifdef HAVE_UNISTD_H
16192 # include <unistd.h>
16196 # define alarm(X) /* empty */
16199 /* Work around redefinition to rpl_putenv by other config tests. */
16202 static time_t time_t_max;
16203 static time_t time_t_min;
16205 /* Values we'll use to set the TZ environment variable. */
16206 static char *tz_strings[] = {
16207 (char *) 0, "TZ=GMT0", "TZ=JST-9",
16208 "TZ=EST+3EDT+2,M10.1.0/00:00:00,M2.3.0/00:00:00"
16210 #define N_STRINGS (sizeof (tz_strings) / sizeof (tz_strings[0]))
16212 /* Return 0 if mktime fails to convert a date in the spring-forward gap.
16213 Based on a problem report from Andreas Jaeger. */
16215 spring_forward_gap ()
16217 /* glibc (up to about 1998-10-07) failed this test. */
16220 /* Use the portable POSIX.1 specification "TZ=PST8PDT,M4.1.0,M10.5.0"
16221 instead of "TZ=America/Vancouver" in order to detect the bug even
16222 on systems that don't support the Olson extension, or don't have the
16223 full zoneinfo tables installed. */
16224 putenv ("TZ=PST8PDT,M4.1.0,M10.5.0");
16233 return mktime (&tm) != (time_t) -1;
16237 mktime_test1 (time_t now)
16240 return ! (lt = localtime (&now)) || mktime (lt) == now;
16244 mktime_test (time_t now)
16246 return (mktime_test1 (now)
16247 && mktime_test1 ((time_t) (time_t_max - now))
16248 && mktime_test1 ((time_t) (time_t_min + now)));
16254 /* Based on code from Ariel Faigon. */
16264 return tm.tm_mon == 2 && tm.tm_mday == 31;
16268 bigtime_test (int j)
16272 tm.tm_year = tm.tm_mon = tm.tm_mday = tm.tm_hour = tm.tm_min = tm.tm_sec = j;
16273 now = mktime (&tm);
16274 if (now != (time_t) -1)
16276 struct tm *lt = localtime (&now);
16278 && lt->tm_year == tm.tm_year
16279 && lt->tm_mon == tm.tm_mon
16280 && lt->tm_mday == tm.tm_mday
16281 && lt->tm_hour == tm.tm_hour
16282 && lt->tm_min == tm.tm_min
16283 && lt->tm_sec == tm.tm_sec
16284 && lt->tm_yday == tm.tm_yday
16285 && lt->tm_wday == tm.tm_wday
16286 && ((lt->tm_isdst < 0 ? -1 : 0 < lt->tm_isdst)
16287 == (tm.tm_isdst < 0 ? -1 : 0 < tm.tm_isdst))))
16296 /* The correct answer for 2050-02-01 00:00:00 in Pacific time,
16297 ignoring leap seconds. */
16298 unsigned long int answer = 2527315200UL;
16302 tm.tm_year = 2050 - 1900;
16305 tm.tm_hour = tm.tm_min = tm.tm_sec = 0;
16308 /* Use the portable POSIX.1 specification "TZ=PST8PDT,M4.1.0,M10.5.0"
16309 instead of "TZ=America/Vancouver" in order to detect the bug even
16310 on systems that don't support the Olson extension, or don't have the
16311 full zoneinfo tables installed. */
16312 putenv ("TZ=PST8PDT,M4.1.0,M10.5.0");
16316 /* Check that the result is either a failure, or close enough
16317 to the correct answer that we can assume the discrepancy is
16318 due to leap seconds. */
16319 return (t == (time_t) -1
16320 || (0 < t && answer - 120 <= t && t <= answer + 120));
16329 int time_t_signed_magnitude = (time_t) ~ (time_t) 0 < (time_t) -1;
16330 int time_t_signed = ! ((time_t) 0 < (time_t) -1);
16332 /* This test makes some buggy mktime implementations loop.
16333 Give up after 60 seconds; a mktime slower than that
16334 isn't worth using anyway. */
16337 time_t_max = (! time_t_signed
16339 : ((((time_t) 1 << (sizeof (time_t) * CHAR_BIT - 2)) - 1)
16341 time_t_min = (! time_t_signed
16343 : time_t_signed_magnitude
16347 delta = time_t_max / 997; /* a suitable prime number */
16348 for (i = 0; i < N_STRINGS; i++)
16351 putenv (tz_strings[i]);
16353 for (t = 0; t <= time_t_max - delta; t += delta)
16354 if (! mktime_test (t))
16356 if (! (mktime_test ((time_t) 1)
16357 && mktime_test ((time_t) (60 * 60))
16358 && mktime_test ((time_t) (60 * 60 * 24))))
16361 for (j = 1; ; j <<= 1)
16362 if (! bigtime_test (j))
16364 else if (INT_MAX / 2 < j)
16366 if (! bigtime_test (INT_MAX))
16369 if (! irix_6_4_bug ())
16371 if (! spring_forward_gap ())
16373 if (! year_2050_test ())
16378 if ac_fn_c_try_run
"$LINENO"; then :
16379 ac_cv_func_working_mktime
=yes
16381 ac_cv_func_working_mktime
=no
16383 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
16384 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
16388 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_working_mktime" >&5
16389 $as_echo "$ac_cv_func_working_mktime" >&6; }
16390 if test $ac_cv_func_working_mktime = no
; then
16399 gl_LIBOBJS
="$gl_LIBOBJS mktime.$ac_objext"
16403 if test $ac_cv_func_working_mktime = no
; then
16419 # Code from module multiarch:
16421 # Code from module readlink:
16425 if test $ac_cv_func_readlink = no
; then
16435 gl_LIBOBJS
="$gl_LIBOBJS readlink.$ac_objext"
16441 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether readlink signature is correct" >&5
16442 $as_echo_n "checking whether readlink signature is correct... " >&6; }
16443 if ${gl_cv_decl_readlink_works+:} false
; then :
16444 $as_echo_n "(cached) " >&6
16446 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
16447 /* end confdefs.h. */
16448 #include <unistd.h>
16449 /* Cause compilation failure if original declaration has wrong type. */
16450 ssize_t readlink (const char *, char *, size_t);
16459 if ac_fn_c_try_compile
"$LINENO"; then :
16460 gl_cv_decl_readlink_works
=yes
16462 gl_cv_decl_readlink_works
=no
16464 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
16466 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_decl_readlink_works" >&5
16467 $as_echo "$gl_cv_decl_readlink_works" >&6; }
16468 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether readlink handles trailing slash correctly" >&5
16469 $as_echo_n "checking whether readlink handles trailing slash correctly... " >&6; }
16470 if ${gl_cv_func_readlink_works+:} false
; then :
16471 $as_echo_n "(cached) " >&6
16473 # We have readlink, so assume ln -s works.
16474 ln -s conftest.no-such conftest.link
16475 ln -s conftest.link conftest.lnk2
16476 if test "$cross_compiling" = yes; then :
16477 gl_cv_func_readlink_works
="guessing no"
16479 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
16480 /* end confdefs.h. */
16481 #include <unistd.h>
16487 return readlink ("conftest.lnk2/", buf, sizeof buf) != -1;
16492 if ac_fn_c_try_run
"$LINENO"; then :
16493 gl_cv_func_readlink_works
=yes
16495 gl_cv_func_readlink_works
=no
16497 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
16498 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
16501 rm -f conftest.link conftest.lnk2
16503 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_readlink_works" >&5
16504 $as_echo "$gl_cv_func_readlink_works" >&6; }
16505 if test "$gl_cv_func_readlink_works" != yes; then
16507 $as_echo "#define READLINK_TRAILING_SLASH_BUG 1" >>confdefs.h
16518 gl_LIBOBJS
="$gl_LIBOBJS readlink.$ac_objext"
16520 elif test "$gl_cv_decl_readlink_works" != yes; then
16530 gl_LIBOBJS
="$gl_LIBOBJS readlink.$ac_objext"
16542 # Code from module socklen:
16543 ac_fn_c_check_type
"$LINENO" "socklen_t" "ac_cv_type_socklen_t" "
16544 /* <sys/types.h> is not needed according to POSIX, but the
16545 <sys/socket.h> in i386-unknown-freebsd4.10 and
16546 powerpc-apple-darwin5.5 required it. */
16547 #include <sys/types.h>
16548 #if HAVE_SYS_SOCKET_H
16549 # include <sys/socket.h>
16550 #elif HAVE_WS2TCPIP_H
16551 # include <ws2tcpip.h>
16555 if test "x$ac_cv_type_socklen_t" = xyes
; then :
16558 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for socklen_t equivalent" >&5
16559 $as_echo_n "checking for socklen_t equivalent... " >&6; }
16560 if ${gl_cv_socklen_t_equiv+:} false
; then :
16561 $as_echo_n "(cached) " >&6
16563 # Systems have either "struct sockaddr *" or
16564 # "void *" as the second argument to getpeername
16565 gl_cv_socklen_t_equiv
=
16566 for arg2
in "struct sockaddr" void
; do
16567 for t
in int size_t
"unsigned int" "long int" "unsigned long int"; do
16568 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
16569 /* end confdefs.h. */
16570 #include <sys/types.h>
16571 #include <sys/socket.h>
16573 int getpeername (int, $arg2 *, $t *);
16578 getpeername (0, 0, &len);
16583 if ac_fn_c_try_compile
"$LINENO"; then :
16584 gl_cv_socklen_t_equiv
="$t"
16586 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
16587 test "$gl_cv_socklen_t_equiv" != "" && break
16589 test "$gl_cv_socklen_t_equiv" != "" && break
16594 if test "$gl_cv_socklen_t_equiv" = ""; then
16595 as_fn_error $?
"Cannot find a type to use in place of socklen_t" "$LINENO" 5
16597 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_socklen_t_equiv" >&5
16598 $as_echo "$gl_cv_socklen_t_equiv" >&6; }
16600 cat >>confdefs.h
<<_ACEOF
16601 #define socklen_t $gl_cv_socklen_t_equiv
16606 # Code from module stat:
16610 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stat handles trailing slashes on directories" >&5
16611 $as_echo_n "checking whether stat handles trailing slashes on directories... " >&6; }
16612 if ${gl_cv_func_stat_dir_slash+:} false
; then :
16613 $as_echo_n "(cached) " >&6
16615 if test "$cross_compiling" = yes; then :
16617 mingw
*) gl_cv_func_stat_dir_slash
="guessing no";;
16618 *) gl_cv_func_stat_dir_slash
="guessing yes";;
16621 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
16622 /* end confdefs.h. */
16623 #include <sys/stat.h>
16628 struct stat st; return stat (".", &st) != stat ("./", &st);
16633 if ac_fn_c_try_run
"$LINENO"; then :
16634 gl_cv_func_stat_dir_slash
=yes
16636 gl_cv_func_stat_dir_slash
=no
16638 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
16639 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
16643 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_stat_dir_slash" >&5
16644 $as_echo "$gl_cv_func_stat_dir_slash" >&6; }
16645 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stat handles trailing slashes on files" >&5
16646 $as_echo_n "checking whether stat handles trailing slashes on files... " >&6; }
16647 if ${gl_cv_func_stat_file_slash+:} false
; then :
16648 $as_echo_n "(cached) " >&6
16651 # Assume that if we have lstat, we can also check symlinks.
16652 if test $ac_cv_func_lstat = yes; then
16653 ln -s conftest.tmp conftest.lnk
16655 if test "$cross_compiling" = yes; then :
16656 gl_cv_func_stat_file_slash
="guessing no"
16658 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
16659 /* end confdefs.h. */
16660 #include <sys/stat.h>
16667 if (!stat ("conftest.tmp/", &st))
16670 if (!stat ("conftest.lnk/", &st))
16679 if ac_fn_c_try_run
"$LINENO"; then :
16680 gl_cv_func_stat_file_slash
=yes
16682 gl_cv_func_stat_file_slash
=no
16684 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
16685 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
16688 rm -f conftest.tmp conftest.lnk
16690 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_stat_file_slash" >&5
16691 $as_echo "$gl_cv_func_stat_file_slash" >&6; }
16692 case $gl_cv_func_stat_dir_slash in
16693 *no
) REPLACE_STAT
=1
16695 $as_echo "#define REPLACE_FUNC_STAT_DIR 1" >>confdefs.h
16698 case $gl_cv_func_stat_file_slash in
16699 *no
) REPLACE_STAT
=1
16701 $as_echo "#define REPLACE_FUNC_STAT_FILE 1" >>confdefs.h
16704 if test $REPLACE_STAT = 1; then
16713 gl_LIBOBJS
="$gl_LIBOBJS stat.$ac_objext"
16725 # Code from module stdbool:
16729 # Define two additional variables used in the Makefile substitution.
16731 if test "$ac_cv_header_stdbool_h" = yes; then
16734 STDBOOL_H
='stdbool.h'
16738 if test "$ac_cv_type__Bool" = yes; then
16745 # Code from module stddef:
16749 if test $gt_cv_c_wchar_t = no
; then
16753 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether NULL can be used in arbitrary expressions" >&5
16754 $as_echo_n "checking whether NULL can be used in arbitrary expressions... " >&6; }
16755 if ${gl_cv_decl_null_works+:} false
; then :
16756 $as_echo_n "(cached) " >&6
16758 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
16759 /* end confdefs.h. */
16760 #include <stddef.h>
16761 int test[2 * (sizeof NULL == sizeof (void *)) -1];
16771 if ac_fn_c_try_compile
"$LINENO"; then :
16772 gl_cv_decl_null_works
=yes
16774 gl_cv_decl_null_works
=no
16776 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
16778 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_decl_null_works" >&5
16779 $as_echo "$gl_cv_decl_null_works" >&6; }
16780 if test $gl_cv_decl_null_works = no
; then
16784 if test -n "$STDDEF_H"; then
16793 if test $gl_cv_have_include_next = yes; then
16794 gl_cv_next_stddef_h
='<'stddef.h
'>'
16796 { $as_echo "$as_me:${as_lineno-$LINENO}: checking absolute name of <stddef.h>" >&5
16797 $as_echo_n "checking absolute name of <stddef.h>... " >&6; }
16798 if ${gl_cv_next_stddef_h+:} false
; then :
16799 $as_echo_n "(cached) " >&6
16802 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
16803 /* end confdefs.h. */
16804 #include <stddef.h>
16808 aix
*) gl_absname_cpp
="$ac_cpp -C" ;;
16809 *) gl_absname_cpp
="$ac_cpp" ;;
16811 gl_cv_next_stddef_h
='"'`(eval "$gl_absname_cpp conftest.$ac_ext") 2>&5 |
16812 sed -n '\#/stddef.h#{
16813 s#.*"\(.*/stddef.h\)".*#\1#
16821 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_next_stddef_h" >&5
16822 $as_echo "$gl_cv_next_stddef_h" >&6; }
16824 NEXT_STDDEF_H
=$gl_cv_next_stddef_h
16826 if test $gl_cv_have_include_next = yes ||
test $gl_cv_have_include_next = buggy
; then
16827 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include_next'
16828 gl_next_as_first_directive
='<'stddef.h
'>'
16830 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include'
16831 gl_next_as_first_directive
=$gl_cv_next_stddef_h
16833 NEXT_AS_FIRST_DIRECTIVE_STDDEF_H
=$gl_next_as_first_directive
16840 # Code from module stdint:
16844 if test $ac_cv_type_long_long_int = yes; then
16845 HAVE_LONG_LONG_INT
=1
16847 HAVE_LONG_LONG_INT
=0
16851 if test $ac_cv_type_unsigned_long_long_int = yes; then
16852 HAVE_UNSIGNED_LONG_LONG_INT
=1
16854 HAVE_UNSIGNED_LONG_LONG_INT
=0
16859 if test $ac_cv_header_wchar_h = yes; then
16866 if test $ac_cv_header_inttypes_h = yes; then
16873 if test $ac_cv_header_sys_types_h = yes; then
16889 if test $gl_cv_have_include_next = yes; then
16890 gl_cv_next_stdint_h
='<'stdint.h
'>'
16892 { $as_echo "$as_me:${as_lineno-$LINENO}: checking absolute name of <stdint.h>" >&5
16893 $as_echo_n "checking absolute name of <stdint.h>... " >&6; }
16894 if ${gl_cv_next_stdint_h+:} false
; then :
16895 $as_echo_n "(cached) " >&6
16898 if test $ac_cv_header_stdint_h = yes; then
16901 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
16902 /* end confdefs.h. */
16903 #include <stdint.h>
16907 aix
*) gl_absname_cpp
="$ac_cpp -C" ;;
16908 *) gl_absname_cpp
="$ac_cpp" ;;
16910 gl_cv_next_stdint_h
='"'`(eval "$gl_absname_cpp conftest.$ac_ext") 2>&5 |
16911 sed -n '\#/stdint.h#{
16912 s#.*"\(.*/stdint.h\)".*#\1#
16918 gl_cv_next_stdint_h
='<'stdint.h
'>'
16923 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_next_stdint_h" >&5
16924 $as_echo "$gl_cv_next_stdint_h" >&6; }
16926 NEXT_STDINT_H
=$gl_cv_next_stdint_h
16928 if test $gl_cv_have_include_next = yes ||
test $gl_cv_have_include_next = buggy
; then
16929 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include_next'
16930 gl_next_as_first_directive
='<'stdint.h
'>'
16932 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include'
16933 gl_next_as_first_directive
=$gl_cv_next_stdint_h
16935 NEXT_AS_FIRST_DIRECTIVE_STDINT_H
=$gl_next_as_first_directive
16940 if test $ac_cv_header_stdint_h = yes; then
16947 if test $ac_cv_header_stdint_h = yes; then
16948 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stdint.h conforms to C99" >&5
16949 $as_echo_n "checking whether stdint.h conforms to C99... " >&6; }
16950 if ${gl_cv_header_working_stdint_h+:} false
; then :
16951 $as_echo_n "(cached) " >&6
16953 gl_cv_header_working_stdint_h
=no
16954 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
16955 /* end confdefs.h. */
16958 #define __STDC_LIMIT_MACROS 1 /* to make it work also in C++ mode */
16959 #define __STDC_CONSTANT_MACROS 1 /* to make it work also in C++ mode */
16960 #define _GL_JUST_INCLUDE_SYSTEM_STDINT_H 1 /* work if build isn't clean */
16961 #include <stdint.h>
16962 /* Dragonfly defines WCHAR_MIN, WCHAR_MAX only in <wchar.h>. */
16963 #if !(defined WCHAR_MIN && defined WCHAR_MAX)
16964 #error "WCHAR_MIN, WCHAR_MAX not defined in <stdint.h>"
16968 /* BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be
16969 included before <wchar.h>. */
16970 #include <stddef.h>
16971 #include <signal.h>
16973 # include <stdio.h>
16975 # include <wchar.h>
16980 int8_t a1 = INT8_MAX;
16981 int8_t a1min = INT8_MIN;
16984 int16_t a2 = INT16_MAX;
16985 int16_t a2min = INT16_MIN;
16988 int32_t a3 = INT32_MAX;
16989 int32_t a3min = INT32_MIN;
16992 int64_t a4 = INT64_MAX;
16993 int64_t a4min = INT64_MIN;
16996 uint8_t b1 = UINT8_MAX;
16998 typedef int b1[(unsigned char) -1 != 255 ? 1 : -1];
17001 uint16_t b2 = UINT16_MAX;
17004 uint32_t b3 = UINT32_MAX;
17007 uint64_t b4 = UINT64_MAX;
17009 int_least8_t c1 = INT8_C (0x7f);
17010 int_least8_t c1max = INT_LEAST8_MAX;
17011 int_least8_t c1min = INT_LEAST8_MIN;
17012 int_least16_t c2 = INT16_C (0x7fff);
17013 int_least16_t c2max = INT_LEAST16_MAX;
17014 int_least16_t c2min = INT_LEAST16_MIN;
17015 int_least32_t c3 = INT32_C (0x7fffffff);
17016 int_least32_t c3max = INT_LEAST32_MAX;
17017 int_least32_t c3min = INT_LEAST32_MIN;
17018 int_least64_t c4 = INT64_C (0x7fffffffffffffff);
17019 int_least64_t c4max = INT_LEAST64_MAX;
17020 int_least64_t c4min = INT_LEAST64_MIN;
17021 uint_least8_t d1 = UINT8_C (0xff);
17022 uint_least8_t d1max = UINT_LEAST8_MAX;
17023 uint_least16_t d2 = UINT16_C (0xffff);
17024 uint_least16_t d2max = UINT_LEAST16_MAX;
17025 uint_least32_t d3 = UINT32_C (0xffffffff);
17026 uint_least32_t d3max = UINT_LEAST32_MAX;
17027 uint_least64_t d4 = UINT64_C (0xffffffffffffffff);
17028 uint_least64_t d4max = UINT_LEAST64_MAX;
17029 int_fast8_t e1 = INT_FAST8_MAX;
17030 int_fast8_t e1min = INT_FAST8_MIN;
17031 int_fast16_t e2 = INT_FAST16_MAX;
17032 int_fast16_t e2min = INT_FAST16_MIN;
17033 int_fast32_t e3 = INT_FAST32_MAX;
17034 int_fast32_t e3min = INT_FAST32_MIN;
17035 int_fast64_t e4 = INT_FAST64_MAX;
17036 int_fast64_t e4min = INT_FAST64_MIN;
17037 uint_fast8_t f1 = UINT_FAST8_MAX;
17038 uint_fast16_t f2 = UINT_FAST16_MAX;
17039 uint_fast32_t f3 = UINT_FAST32_MAX;
17040 uint_fast64_t f4 = UINT_FAST64_MAX;
17042 intptr_t g = INTPTR_MAX;
17043 intptr_t gmin = INTPTR_MIN;
17046 uintptr_t h = UINTPTR_MAX;
17048 intmax_t i = INTMAX_MAX;
17049 uintmax_t j = UINTMAX_MAX;
17051 #include <limits.h> /* for CHAR_BIT */
17052 #define TYPE_MINIMUM(t) \
17053 ((t) ((t) 0 < (t) -1 ? (t) 0 : ~ TYPE_MAXIMUM (t)))
17054 #define TYPE_MAXIMUM(t) \
17055 ((t) ((t) 0 < (t) -1 \
17057 : ((((t) 1 << (sizeof (t) * CHAR_BIT - 2)) - 1) * 2 + 1)))
17060 PTRDIFF_MIN == TYPE_MINIMUM (ptrdiff_t)
17061 && PTRDIFF_MAX == TYPE_MAXIMUM (ptrdiff_t)
17063 /* Detect bug in FreeBSD 6.0 / ia64. */
17064 int check_SIG_ATOMIC:
17065 SIG_ATOMIC_MIN == TYPE_MINIMUM (sig_atomic_t)
17066 && SIG_ATOMIC_MAX == TYPE_MAXIMUM (sig_atomic_t)
17068 int check_SIZE: SIZE_MAX == TYPE_MAXIMUM (size_t) ? 1 : -1;
17070 WCHAR_MIN == TYPE_MINIMUM (wchar_t)
17071 && WCHAR_MAX == TYPE_MAXIMUM (wchar_t)
17073 /* Detect bug in mingw. */
17075 WINT_MIN == TYPE_MINIMUM (wint_t)
17076 && WINT_MAX == TYPE_MAXIMUM (wint_t)
17079 /* Detect bugs in glibc 2.4 and Solaris 10 stdint.h, among others. */
17081 (-1 < UINT8_C (0)) == (-1 < (uint_least8_t) 0) ? 1 : -1;
17082 int check_UINT16_C:
17083 (-1 < UINT16_C (0)) == (-1 < (uint_least16_t) 0) ? 1 : -1;
17085 /* Detect bugs in OpenBSD 3.9 stdint.h. */
17087 int check_uint8: (uint8_t) -1 == UINT8_MAX ? 1 : -1;
17090 int check_uint16: (uint16_t) -1 == UINT16_MAX ? 1 : -1;
17093 int check_uint32: (uint32_t) -1 == UINT32_MAX ? 1 : -1;
17096 int check_uint64: (uint64_t) -1 == UINT64_MAX ? 1 : -1;
17098 int check_uint_least8: (uint_least8_t) -1 == UINT_LEAST8_MAX ? 1 : -1;
17099 int check_uint_least16: (uint_least16_t) -1 == UINT_LEAST16_MAX ? 1 : -1;
17100 int check_uint_least32: (uint_least32_t) -1 == UINT_LEAST32_MAX ? 1 : -1;
17101 int check_uint_least64: (uint_least64_t) -1 == UINT_LEAST64_MAX ? 1 : -1;
17102 int check_uint_fast8: (uint_fast8_t) -1 == UINT_FAST8_MAX ? 1 : -1;
17103 int check_uint_fast16: (uint_fast16_t) -1 == UINT_FAST16_MAX ? 1 : -1;
17104 int check_uint_fast32: (uint_fast32_t) -1 == UINT_FAST32_MAX ? 1 : -1;
17105 int check_uint_fast64: (uint_fast64_t) -1 == UINT_FAST64_MAX ? 1 : -1;
17106 int check_uintptr: (uintptr_t) -1 == UINTPTR_MAX ? 1 : -1;
17107 int check_uintmax: (uintmax_t) -1 == UINTMAX_MAX ? 1 : -1;
17108 int check_size: (size_t) -1 == SIZE_MAX ? 1 : -1;
17119 if ac_fn_c_try_compile
"$LINENO"; then :
17120 if test "$cross_compiling" = yes; then :
17121 gl_cv_header_working_stdint_h
=yes
17124 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
17125 /* end confdefs.h. */
17128 #define __STDC_LIMIT_MACROS 1 /* to make it work also in C++ mode */
17129 #define __STDC_CONSTANT_MACROS 1 /* to make it work also in C++ mode */
17130 #define _GL_JUST_INCLUDE_SYSTEM_STDINT_H 1 /* work if build isn't clean */
17131 #include <stdint.h>
17134 /* BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be
17135 included before <wchar.h>. */
17136 #include <stddef.h>
17137 #include <signal.h>
17139 # include <stdio.h>
17141 # include <wchar.h>
17146 #include <string.h>
17147 #define MVAL(macro) MVAL1(macro)
17148 #define MVAL1(expression) #expression
17149 static const char *macro_values[] =
17183 for (mv = macro_values; *mv != NULL; mv++)
17185 const char *value = *mv;
17186 /* Test whether it looks like a cast expression. */
17187 if (strncmp (value, "((unsigned int)"/*)*/, 15) == 0
17188 || strncmp (value, "((unsigned short)"/*)*/, 17) == 0
17189 || strncmp (value, "((unsigned char)"/*)*/, 16) == 0
17190 || strncmp (value, "((int)"/*)*/, 6) == 0
17191 || strncmp (value, "((signed short)"/*)*/, 15) == 0
17192 || strncmp (value, "((signed char)"/*)*/, 14) == 0)
17193 return mv - macro_values + 1;
17201 if ac_fn_c_try_run
"$LINENO"; then :
17202 gl_cv_header_working_stdint_h
=yes
17204 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
17205 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
17210 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
17213 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_header_working_stdint_h" >&5
17214 $as_echo "$gl_cv_header_working_stdint_h" >&6; }
17216 if test "$gl_cv_header_working_stdint_h" = yes; then
17219 for ac_header
in sys
/inttypes.h sys
/bitypes.h
17221 as_ac_Header
=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
17222 ac_fn_c_check_header_mongrel
"$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
17223 if eval test \"x\$
"$as_ac_Header"\" = x
"yes"; then :
17224 cat >>confdefs.h
<<_ACEOF
17225 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
17232 if test $ac_cv_header_sys_inttypes_h = yes; then
17233 HAVE_SYS_INTTYPES_H
=1
17235 HAVE_SYS_INTTYPES_H
=0
17238 if test $ac_cv_header_sys_bitypes_h = yes; then
17239 HAVE_SYS_BITYPES_H
=1
17241 HAVE_SYS_BITYPES_H
=0
17247 if test $APPLE_UNIVERSAL_BUILD = 0; then
17250 for gltype
in ptrdiff_t size_t
; do
17251 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for bit size of $gltype" >&5
17252 $as_echo_n "checking for bit size of $gltype... " >&6; }
17253 if eval \
${gl_cv_bitsizeof_${gltype}+:} false
; then :
17254 $as_echo_n "(cached) " >&6
17256 if ac_fn_c_compute_int
"$LINENO" "sizeof ($gltype) * CHAR_BIT" "result" "
17257 /* BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be
17258 included before <wchar.h>. */
17259 #include <stddef.h>
17260 #include <signal.h>
17262 # include <stdio.h>
17264 # include <wchar.h>
17267 #include <limits.h>"; then :
17273 eval gl_cv_bitsizeof_
${gltype}=\
$result
17276 eval ac_res
=\
$gl_cv_bitsizeof_${gltype}
17277 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
17278 $as_echo "$ac_res" >&6; }
17279 eval result
=\
$gl_cv_bitsizeof_${gltype}
17280 if test $result = unknown
; then
17283 GLTYPE
=`echo "$gltype" | tr 'abcdefghijklmnopqrstuvwxyz ' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ_'`
17284 cat >>confdefs.h
<<_ACEOF
17285 #define BITSIZEOF_${GLTYPE} $result
17288 eval BITSIZEOF_
${GLTYPE}=\
$result
17295 for gltype
in sig_atomic_t wchar_t wint_t
; do
17296 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for bit size of $gltype" >&5
17297 $as_echo_n "checking for bit size of $gltype... " >&6; }
17298 if eval \
${gl_cv_bitsizeof_${gltype}+:} false
; then :
17299 $as_echo_n "(cached) " >&6
17301 if ac_fn_c_compute_int
"$LINENO" "sizeof ($gltype) * CHAR_BIT" "result" "
17302 /* BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be
17303 included before <wchar.h>. */
17304 #include <stddef.h>
17305 #include <signal.h>
17307 # include <stdio.h>
17309 # include <wchar.h>
17312 #include <limits.h>"; then :
17318 eval gl_cv_bitsizeof_
${gltype}=\
$result
17321 eval ac_res
=\
$gl_cv_bitsizeof_${gltype}
17322 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
17323 $as_echo "$ac_res" >&6; }
17324 eval result
=\
$gl_cv_bitsizeof_${gltype}
17325 if test $result = unknown
; then
17328 GLTYPE
=`echo "$gltype" | tr 'abcdefghijklmnopqrstuvwxyz ' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ_'`
17329 cat >>confdefs.h
<<_ACEOF
17330 #define BITSIZEOF_${GLTYPE} $result
17333 eval BITSIZEOF_
${GLTYPE}=\
$result
17339 for gltype
in sig_atomic_t wchar_t wint_t
; do
17340 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $gltype is signed" >&5
17341 $as_echo_n "checking whether $gltype is signed... " >&6; }
17342 if eval \
${gl_cv_type_${gltype}_signed+:} false
; then :
17343 $as_echo_n "(cached) " >&6
17345 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
17346 /* end confdefs.h. */
17348 /* BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be
17349 included before <wchar.h>. */
17350 #include <stddef.h>
17351 #include <signal.h>
17353 # include <stdio.h>
17355 # include <wchar.h>
17358 int verify[2 * (($gltype) -1 < ($gltype) 0) - 1];
17367 if ac_fn_c_try_compile
"$LINENO"; then :
17372 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
17373 eval gl_cv_type_
${gltype}_signed
=\
$result
17376 eval ac_res
=\
$gl_cv_type_${gltype}_signed
17377 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
17378 $as_echo "$ac_res" >&6; }
17379 eval result
=\
$gl_cv_type_${gltype}_signed
17380 GLTYPE
=`echo $gltype | tr 'abcdefghijklmnopqrstuvwxyz ' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ_'`
17381 if test "$result" = yes; then
17382 cat >>confdefs.h
<<_ACEOF
17383 #define HAVE_SIGNED_${GLTYPE} 1
17386 eval HAVE_SIGNED_
${GLTYPE}=1
17388 eval HAVE_SIGNED_
${GLTYPE}=0
17393 gl_cv_type_ptrdiff_t_signed
=yes
17394 gl_cv_type_size_t_signed
=no
17395 if test $APPLE_UNIVERSAL_BUILD = 0; then
17398 for gltype
in ptrdiff_t size_t
; do
17399 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $gltype integer literal suffix" >&5
17400 $as_echo_n "checking for $gltype integer literal suffix... " >&6; }
17401 if eval \
${gl_cv_type_${gltype}_suffix+:} false
; then :
17402 $as_echo_n "(cached) " >&6
17404 eval gl_cv_type_
${gltype}_suffix
=no
17405 eval result
=\
$gl_cv_type_${gltype}_signed
17406 if test "$result" = yes; then
17411 for glsuf
in "$glsufu" ${glsufu}l ${glsufu}ll ${glsufu}i64
; do
17413 '') gltype1
='int';;
17414 l
) gltype1
='long int';;
17415 ll
) gltype1
='long long int';;
17416 i64
) gltype1
='__int64';;
17417 u
) gltype1
='unsigned int';;
17418 ul
) gltype1
='unsigned long int';;
17419 ull
) gltype1
='unsigned long long int';;
17420 ui64
)gltype1
='unsigned __int64';;
17422 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
17423 /* end confdefs.h. */
17425 /* BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be
17426 included before <wchar.h>. */
17427 #include <stddef.h>
17428 #include <signal.h>
17430 # include <stdio.h>
17432 # include <wchar.h>
17435 extern $gltype foo;
17436 extern $gltype1 foo;
17445 if ac_fn_c_try_compile
"$LINENO"; then :
17446 eval gl_cv_type_
${gltype}_suffix
=\
$glsuf
17448 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
17449 eval result
=\
$gl_cv_type_${gltype}_suffix
17450 test "$result" != no
&& break
17453 eval ac_res
=\
$gl_cv_type_${gltype}_suffix
17454 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
17455 $as_echo "$ac_res" >&6; }
17456 GLTYPE
=`echo $gltype | tr 'abcdefghijklmnopqrstuvwxyz ' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ_'`
17457 eval result
=\
$gl_cv_type_${gltype}_suffix
17458 test "$result" = no
&& result
=
17459 eval ${GLTYPE}_SUFFIX
=\
$result
17460 cat >>confdefs.h
<<_ACEOF
17461 #define ${GLTYPE}_SUFFIX $result
17470 for gltype
in sig_atomic_t wchar_t wint_t
; do
17471 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $gltype integer literal suffix" >&5
17472 $as_echo_n "checking for $gltype integer literal suffix... " >&6; }
17473 if eval \
${gl_cv_type_${gltype}_suffix+:} false
; then :
17474 $as_echo_n "(cached) " >&6
17476 eval gl_cv_type_
${gltype}_suffix
=no
17477 eval result
=\
$gl_cv_type_${gltype}_signed
17478 if test "$result" = yes; then
17483 for glsuf
in "$glsufu" ${glsufu}l ${glsufu}ll ${glsufu}i64
; do
17485 '') gltype1
='int';;
17486 l
) gltype1
='long int';;
17487 ll
) gltype1
='long long int';;
17488 i64
) gltype1
='__int64';;
17489 u
) gltype1
='unsigned int';;
17490 ul
) gltype1
='unsigned long int';;
17491 ull
) gltype1
='unsigned long long int';;
17492 ui64
)gltype1
='unsigned __int64';;
17494 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
17495 /* end confdefs.h. */
17497 /* BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be
17498 included before <wchar.h>. */
17499 #include <stddef.h>
17500 #include <signal.h>
17502 # include <stdio.h>
17504 # include <wchar.h>
17507 extern $gltype foo;
17508 extern $gltype1 foo;
17517 if ac_fn_c_try_compile
"$LINENO"; then :
17518 eval gl_cv_type_
${gltype}_suffix
=\
$glsuf
17520 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
17521 eval result
=\
$gl_cv_type_${gltype}_suffix
17522 test "$result" != no
&& break
17525 eval ac_res
=\
$gl_cv_type_${gltype}_suffix
17526 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
17527 $as_echo "$ac_res" >&6; }
17528 GLTYPE
=`echo $gltype | tr 'abcdefghijklmnopqrstuvwxyz ' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ_'`
17529 eval result
=\
$gl_cv_type_${gltype}_suffix
17530 test "$result" = no
&& result
=
17531 eval ${GLTYPE}_SUFFIX
=\
$result
17532 cat >>confdefs.h
<<_ACEOF
17533 #define ${GLTYPE}_SUFFIX $result
17544 # Code from module stdio:
17556 if test $gl_cv_have_include_next = yes; then
17557 gl_cv_next_stdio_h
='<'stdio.h
'>'
17559 { $as_echo "$as_me:${as_lineno-$LINENO}: checking absolute name of <stdio.h>" >&5
17560 $as_echo_n "checking absolute name of <stdio.h>... " >&6; }
17561 if ${gl_cv_next_stdio_h+:} false
; then :
17562 $as_echo_n "(cached) " >&6
17565 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
17566 /* end confdefs.h. */
17571 aix
*) gl_absname_cpp
="$ac_cpp -C" ;;
17572 *) gl_absname_cpp
="$ac_cpp" ;;
17574 gl_cv_next_stdio_h
='"'`(eval "$gl_absname_cpp conftest.$ac_ext") 2>&5 |
17575 sed -n '\#/stdio.h#{
17576 s#.*"\(.*/stdio.h\)".*#\1#
17584 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_next_stdio_h" >&5
17585 $as_echo "$gl_cv_next_stdio_h" >&6; }
17587 NEXT_STDIO_H
=$gl_cv_next_stdio_h
17589 if test $gl_cv_have_include_next = yes ||
test $gl_cv_have_include_next = buggy
; then
17590 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include_next'
17591 gl_next_as_first_directive
='<'stdio.h
'>'
17593 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include'
17594 gl_next_as_first_directive
=$gl_cv_next_stdio_h
17596 NEXT_AS_FIRST_DIRECTIVE_STDIO_H
=$gl_next_as_first_directive
17615 # Code from module stdlib:
17626 if test $gl_cv_have_include_next = yes; then
17627 gl_cv_next_stdlib_h
='<'stdlib.h
'>'
17629 { $as_echo "$as_me:${as_lineno-$LINENO}: checking absolute name of <stdlib.h>" >&5
17630 $as_echo_n "checking absolute name of <stdlib.h>... " >&6; }
17631 if ${gl_cv_next_stdlib_h+:} false
; then :
17632 $as_echo_n "(cached) " >&6
17635 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
17636 /* end confdefs.h. */
17637 #include <stdlib.h>
17641 aix
*) gl_absname_cpp
="$ac_cpp -C" ;;
17642 *) gl_absname_cpp
="$ac_cpp" ;;
17644 gl_cv_next_stdlib_h
='"'`(eval "$gl_absname_cpp conftest.$ac_ext") 2>&5 |
17645 sed -n '\#/stdlib.h#{
17646 s#.*"\(.*/stdlib.h\)".*#\1#
17654 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_next_stdlib_h" >&5
17655 $as_echo "$gl_cv_next_stdlib_h" >&6; }
17657 NEXT_STDLIB_H
=$gl_cv_next_stdlib_h
17659 if test $gl_cv_have_include_next = yes ||
test $gl_cv_have_include_next = buggy
; then
17660 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include_next'
17661 gl_next_as_first_directive
='<'stdlib.h
'>'
17663 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include'
17664 gl_next_as_first_directive
=$gl_cv_next_stdlib_h
17666 NEXT_AS_FIRST_DIRECTIVE_STDLIB_H
=$gl_next_as_first_directive
17674 # Code from module strftime:
17685 gl_LIBOBJS
="$gl_LIBOBJS strftime.$ac_objext"
17688 # This defines (or not) HAVE_TZNAME and HAVE_TM_ZONE.
17696 $as_echo "#define my_strftime nstrftime" >>confdefs.h
17700 # Code from module symlink:
17704 if test $ac_cv_func_symlink = no
; then
17714 gl_LIBOBJS
="$gl_LIBOBJS symlink.$ac_objext"
17717 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether symlink handles trailing slash correctly" >&5
17718 $as_echo_n "checking whether symlink handles trailing slash correctly... " >&6; }
17719 if ${gl_cv_func_symlink_works+:} false
; then :
17720 $as_echo_n "(cached) " >&6
17722 if test "$cross_compiling" = yes; then :
17723 gl_cv_func_symlink_works
="guessing no"
17725 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
17726 /* end confdefs.h. */
17727 #include <unistd.h>
17733 if (!symlink ("a", "conftest.link/"))
17735 if (symlink ("conftest.f", "conftest.lnk2"))
17737 else if (!symlink ("a", "conftest.lnk2/"))
17745 if ac_fn_c_try_run
"$LINENO"; then :
17746 gl_cv_func_symlink_works
=yes
17748 gl_cv_func_symlink_works
=no
17750 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
17751 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
17754 rm -f conftest.f conftest.link conftest.lnk2
17756 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_symlink_works" >&5
17757 $as_echo "$gl_cv_func_symlink_works" >&6; }
17758 if test "$gl_cv_func_symlink_works" != yes; then
17768 gl_LIBOBJS
="$gl_LIBOBJS symlink.$ac_objext"
17780 # Code from module sys_stat:
17797 if test $gl_cv_have_include_next = yes; then
17798 gl_cv_next_sys_stat_h
='<'sys
/stat.h
'>'
17800 { $as_echo "$as_me:${as_lineno-$LINENO}: checking absolute name of <sys/stat.h>" >&5
17801 $as_echo_n "checking absolute name of <sys/stat.h>... " >&6; }
17802 if ${gl_cv_next_sys_stat_h+:} false
; then :
17803 $as_echo_n "(cached) " >&6
17806 if test $ac_cv_header_sys_stat_h = yes; then
17809 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
17810 /* end confdefs.h. */
17811 #include <sys/stat.h>
17815 aix
*) gl_absname_cpp
="$ac_cpp -C" ;;
17816 *) gl_absname_cpp
="$ac_cpp" ;;
17818 gl_cv_next_sys_stat_h
='"'`(eval "$gl_absname_cpp conftest.$ac_ext") 2>&5 |
17819 sed -n '\#/sys/stat.h#{
17820 s#.*"\(.*/sys/stat.h\)".*#\1#
17826 gl_cv_next_sys_stat_h
='<'sys
/stat.h
'>'
17831 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_next_sys_stat_h" >&5
17832 $as_echo "$gl_cv_next_sys_stat_h" >&6; }
17834 NEXT_SYS_STAT_H
=$gl_cv_next_sys_stat_h
17836 if test $gl_cv_have_include_next = yes ||
test $gl_cv_have_include_next = buggy
; then
17837 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include_next'
17838 gl_next_as_first_directive
='<'sys
/stat.h
'>'
17840 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include'
17841 gl_next_as_first_directive
=$gl_cv_next_sys_stat_h
17843 NEXT_AS_FIRST_DIRECTIVE_SYS_STAT_H
=$gl_next_as_first_directive
17849 ac_fn_c_check_type
"$LINENO" "nlink_t" "ac_cv_type_nlink_t" "#include <sys/types.h>
17850 #include <sys/stat.h>
17852 if test "x$ac_cv_type_nlink_t" = xyes
; then :
17856 $as_echo "#define nlink_t int" >>confdefs.h
17864 # Code from module time:
17868 # Code from module time_r:
17876 if test $ac_cv_have_decl_localtime_r = no
; then
17877 HAVE_DECL_LOCALTIME_R
=0
17881 if test $ac_cv_func_localtime_r = yes; then
17883 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether localtime_r is compatible with its POSIX signature" >&5
17884 $as_echo_n "checking whether localtime_r is compatible with its POSIX signature... " >&6; }
17885 if ${gl_cv_time_r_posix+:} false
; then :
17886 $as_echo_n "(cached) " >&6
17888 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
17889 /* end confdefs.h. */
17894 /* We don't need to append 'restrict's to the argument types,
17895 even though the POSIX signature has the 'restrict's,
17896 since C99 says they can't affect type compatibility. */
17897 struct tm * (*ptr) (time_t const *, struct tm *) = localtime_r;
17899 /* Check the return type is a pointer.
17900 On HP-UX 10 it is 'int'. */
17901 *localtime_r (0, 0);
17907 if ac_fn_c_try_compile
"$LINENO"; then :
17908 gl_cv_time_r_posix
=yes
17910 gl_cv_time_r_posix
=no
17912 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
17915 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_time_r_posix" >&5
17916 $as_echo "$gl_cv_time_r_posix" >&6; }
17917 if test $gl_cv_time_r_posix = yes; then
17918 REPLACE_LOCALTIME_R
=0
17920 REPLACE_LOCALTIME_R
=1
17925 if test $HAVE_LOCALTIME_R = 0 ||
test $REPLACE_LOCALTIME_R = 1; then
17934 gl_LIBOBJS
="$gl_LIBOBJS time_r.$ac_objext"
17948 # Code from module unistd:
17962 if test $gl_cv_have_include_next = yes; then
17963 gl_cv_next_unistd_h
='<'unistd.h
'>'
17965 { $as_echo "$as_me:${as_lineno-$LINENO}: checking absolute name of <unistd.h>" >&5
17966 $as_echo_n "checking absolute name of <unistd.h>... " >&6; }
17967 if ${gl_cv_next_unistd_h+:} false
; then :
17968 $as_echo_n "(cached) " >&6
17971 if test $ac_cv_header_unistd_h = yes; then
17974 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
17975 /* end confdefs.h. */
17976 #include <unistd.h>
17980 aix
*) gl_absname_cpp
="$ac_cpp -C" ;;
17981 *) gl_absname_cpp
="$ac_cpp" ;;
17983 gl_cv_next_unistd_h
='"'`(eval "$gl_absname_cpp conftest.$ac_ext") 2>&5 |
17984 sed -n '\#/unistd.h#{
17985 s#.*"\(.*/unistd.h\)".*#\1#
17991 gl_cv_next_unistd_h
='<'unistd.h
'>'
17996 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_next_unistd_h" >&5
17997 $as_echo "$gl_cv_next_unistd_h" >&6; }
17999 NEXT_UNISTD_H
=$gl_cv_next_unistd_h
18001 if test $gl_cv_have_include_next = yes ||
test $gl_cv_have_include_next = buggy
; then
18002 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include_next'
18003 gl_next_as_first_directive
='<'unistd.h
'>'
18005 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include'
18006 gl_next_as_first_directive
=$gl_cv_next_unistd_h
18008 NEXT_AS_FIRST_DIRECTIVE_UNISTD_H
=$gl_next_as_first_directive
18013 if test $ac_cv_header_unistd_h = yes; then
18022 # Code from module warn-on-use:
18023 # End of code from modules
18044 gl_source_base
='tests'
18045 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
18047 gl_module_indicator_condition
=$gltests_WITNESS
18057 LIBGNU_LIBDEPS
="$gl_libdeps"
18059 LIBGNU_LTLIBDEPS
="$gl_ltlibdeps"
18064 for ac_func
in grantpt
18066 ac_fn_c_check_func
"$LINENO" "grantpt" "ac_cv_func_grantpt"
18067 if test "x$ac_cv_func_grantpt" = xyes
; then :
18068 cat >>confdefs.h
<<_ACEOF
18069 #define HAVE_GRANTPT 1
18076 # PTY-related GNU extensions.
18077 for ac_func
in getpt
18079 ac_fn_c_check_func
"$LINENO" "getpt" "ac_cv_func_getpt"
18080 if test "x$ac_cv_func_getpt" = xyes
; then :
18081 cat >>confdefs.h
<<_ACEOF
18082 #define HAVE_GETPT 1
18089 # Check this now, so that we will NOT find the above functions in ncurses.
18090 # That is because we have not set up to link ncurses in lib-src.
18091 # It's better to believe a function is not available
18092 # than to expect to find it in ncurses.
18093 # Also we need tputs and friends to be able to build at all.
18094 have_tputs_et_al
=true
18095 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing tputs" >&5
18096 $as_echo_n "checking for library containing tputs... " >&6; }
18097 if ${ac_cv_search_tputs+:} false
; then :
18098 $as_echo_n "(cached) " >&6
18100 ac_func_search_save_LIBS
=$LIBS
18101 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
18102 /* end confdefs.h. */
18104 /* Override any GCC internal prototype to avoid an error.
18105 Use char because int might match the return type of a GCC
18106 builtin and then its argument prototype would still apply. */
18119 for ac_lib
in '' ncurses terminfo termcap
; do
18120 if test -z "$ac_lib"; then
18121 ac_res
="none required"
18124 LIBS
="-l$ac_lib $ac_func_search_save_LIBS"
18126 if ac_fn_c_try_link
"$LINENO"; then :
18127 ac_cv_search_tputs
=$ac_res
18129 rm -f core conftest.err conftest.
$ac_objext \
18131 if ${ac_cv_search_tputs+:} false
; then :
18135 if ${ac_cv_search_tputs+:} false
; then :
18138 ac_cv_search_tputs
=no
18140 rm conftest.
$ac_ext
18141 LIBS
=$ac_func_search_save_LIBS
18143 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_tputs" >&5
18144 $as_echo "$ac_cv_search_tputs" >&6; }
18145 ac_res
=$ac_cv_search_tputs
18146 if test "$ac_res" != no
; then :
18147 test "$ac_res" = "none required" || LIBS
="$ac_res $LIBS"
18150 have_tputs_et_al
=false
18153 if test "$have_tputs_et_al" != true
; then
18154 as_fn_error $?
"I couldn't find termcap functions (tputs and friends).
18155 Maybe some development libraries/packages are missing? Try installing
18156 libncurses-dev(el), libterminfo-dev(el) or similar." "$LINENO" 5
18158 # Must define this when any termcap library is found.
18160 $as_echo "#define HAVE_LIBNCURSES 1" >>confdefs.h
18162 ## FIXME This was the cpp logic, but I am not sure it is right.
18163 ## The above test has not necessarily found libncurses.
18164 HAVE_LIBNCURSES
=yes
18166 ## Use terminfo instead of termcap?
18167 ## Note only system files NOT using terminfo are:
18168 ## freebsd < 40000, ms-w32, msdos, netbsd < 599002500, and
18169 ## darwin|gnu without ncurses.
18173 ## cygwin: Fewer environment variables to go wrong, more terminal types.
18174 ## hpux10-20: Use the system provided termcap(3) library.
18175 ## openbsd: David Mazieres <dm@reeducation-labor.lcs.mit.edu> says this
18176 ## is necessary. Otherwise Emacs dumps core when run -nw.
18177 aix4-2|cygwin|hpux
*|irix6-5|openbsd|sol2
*|unixware
) TERMINFO
=yes ;;
18179 ## darwin: Prevents crashes when running Emacs in Terminal.app under 10.2.
18180 ## The ncurses library has been moved out of the System framework in
18181 ## Mac OS X 10.2. So if configure detects it, set the command-line
18182 ## option to use it.
18184 ## (HAVE_LIBNCURSES was not always true, but is since 2010-03-18.)
18185 if test "x$HAVE_LIBNCURSES" = "xyes"; then
18187 LIBS_TERMCAP
="-lncurses"
18192 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether FreeBSD is new enough to use terminfo" >&5
18193 $as_echo_n "checking whether FreeBSD is new enough to use terminfo... " >&6; }
18194 if ${emacs_cv_freebsd_terminfo+:} false
; then :
18195 $as_echo_n "(cached) " >&6
18197 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
18198 /* end confdefs.h. */
18199 #include <osreldate.h>
18203 #if __FreeBSD_version < 400000
18211 if ac_fn_c_try_link
"$LINENO"; then :
18212 emacs_cv_freebsd_terminfo
=yes
18214 emacs_cv_freebsd_terminfo
=no
18216 rm -f core conftest.err conftest.
$ac_objext \
18217 conftest
$ac_exeext conftest.
$ac_ext
18221 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $emacs_cv_freebsd_terminfo" >&5
18222 $as_echo "$emacs_cv_freebsd_terminfo" >&6; }
18224 if test $emacs_cv_freebsd_terminfo = yes; then
18226 LIBS_TERMCAP
="-lncurses"
18228 LIBS_TERMCAP
="-ltermcap"
18233 if test $ac_cv_search_tputs = -lterminfo; then
18235 LIBS_TERMCAP
="-lterminfo"
18237 LIBS_TERMCAP
="-ltermcap"
18244 ## hpux: Make sure we get select from libc rather than from libcurses
18245 ## because libcurses on HPUX 10.10 has a broken version of select.
18246 ## We used to use -lc -lcurses, but this may be cleaner.
18247 hpux
*) LIBS_TERMCAP
="-ltermcap" ;;
18249 openbsd
) LIBS_TERMCAP
="-lncurses" ;;
18251 ## Must use system termcap, if we use any termcap. It does special things.
18252 sol2
*) test "$TERMINFO" != yes && LIBS_TERMCAP
="-ltermcap" ;;
18255 TERMCAP_OBJ
=tparam.o
18256 if test $TERMINFO = yes; then
18258 $as_echo "#define TERMINFO 1" >>confdefs.h
18261 ## Default used to be -ltermcap. Add a case above if need something else.
18262 test "x$LIBS_TERMCAP" = "x" && LIBS_TERMCAP
="-lcurses"
18264 TERMCAP_OBJ
=terminfo.o
18270 # Do we have res_init, for detecting changes in /etc/resolv.conf?
18272 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
18273 /* end confdefs.h. */
18274 #include <netinet/in.h>
18275 #include <arpa/nameser.h>
18276 #include <resolv.h>
18285 if ac_fn_c_try_link
"$LINENO"; then :
18290 rm -f core conftest.err conftest.
$ac_objext \
18291 conftest
$ac_exeext conftest.
$ac_ext
18292 if test "$have_res_init" = no
; then
18294 LIBS
="$LIBS -lresolv"
18295 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for res_init with -lresolv" >&5
18296 $as_echo_n "checking for res_init with -lresolv... " >&6; }
18297 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
18298 /* end confdefs.h. */
18299 #include <netinet/in.h>
18300 #include <arpa/nameser.h>
18301 #include <resolv.h>
18310 if ac_fn_c_try_link
"$LINENO"; then :
18315 rm -f core conftest.err conftest.
$ac_objext \
18316 conftest
$ac_exeext conftest.
$ac_ext
18317 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_res_init" >&5
18318 $as_echo "$have_res_init" >&6; }
18319 if test "$have_res_init" = yes ; then
18325 if test "$have_res_init" = yes; then
18327 $as_echo "#define HAVE_RES_INIT 1" >>confdefs.h
18331 # Do we need the Hesiod library to provide the support routines?
18333 if test "$with_hesiod" != no
; then
18334 # Don't set $LIBS here -- see comments above. FIXME which comments?
18335 ac_fn_c_check_func
"$LINENO" "res_send" "ac_cv_func_res_send"
18336 if test "x$ac_cv_func_res_send" = xyes
; then :
18339 ac_fn_c_check_func
"$LINENO" "__res_send" "ac_cv_func___res_send"
18340 if test "x$ac_cv_func___res_send" = xyes
; then :
18343 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for res_send in -lresolv" >&5
18344 $as_echo_n "checking for res_send in -lresolv... " >&6; }
18345 if ${ac_cv_lib_resolv_res_send+:} false
; then :
18346 $as_echo_n "(cached) " >&6
18348 ac_check_lib_save_LIBS
=$LIBS
18349 LIBS
="-lresolv $LIBS"
18350 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
18351 /* end confdefs.h. */
18353 /* Override any GCC internal prototype to avoid an error.
18354 Use char because int might match the return type of a GCC
18355 builtin and then its argument prototype would still apply. */
18363 return res_send ();
18368 if ac_fn_c_try_link
"$LINENO"; then :
18369 ac_cv_lib_resolv_res_send
=yes
18371 ac_cv_lib_resolv_res_send
=no
18373 rm -f core conftest.err conftest.
$ac_objext \
18374 conftest
$ac_exeext conftest.
$ac_ext
18375 LIBS
=$ac_check_lib_save_LIBS
18377 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_resolv_res_send" >&5
18378 $as_echo "$ac_cv_lib_resolv_res_send" >&6; }
18379 if test "x$ac_cv_lib_resolv_res_send" = xyes
; then :
18382 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for __res_send in -lresolv" >&5
18383 $as_echo_n "checking for __res_send in -lresolv... " >&6; }
18384 if ${ac_cv_lib_resolv___res_send+:} false
; then :
18385 $as_echo_n "(cached) " >&6
18387 ac_check_lib_save_LIBS
=$LIBS
18388 LIBS
="-lresolv $LIBS"
18389 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
18390 /* end confdefs.h. */
18392 /* Override any GCC internal prototype to avoid an error.
18393 Use char because int might match the return type of a GCC
18394 builtin and then its argument prototype would still apply. */
18398 char __res_send ();
18402 return __res_send ();
18407 if ac_fn_c_try_link
"$LINENO"; then :
18408 ac_cv_lib_resolv___res_send
=yes
18410 ac_cv_lib_resolv___res_send
=no
18412 rm -f core conftest.err conftest.
$ac_objext \
18413 conftest
$ac_exeext conftest.
$ac_ext
18414 LIBS
=$ac_check_lib_save_LIBS
18416 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_resolv___res_send" >&5
18417 $as_echo "$ac_cv_lib_resolv___res_send" >&6; }
18418 if test "x$ac_cv_lib_resolv___res_send" = xyes
; then :
18428 if test "$resolv" = yes ; then
18433 ac_fn_c_check_func
"$LINENO" "hes_getmailhost" "ac_cv_func_hes_getmailhost"
18434 if test "x$ac_cv_func_hes_getmailhost" = xyes
; then :
18437 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for hes_getmailhost in -lhesiod" >&5
18438 $as_echo_n "checking for hes_getmailhost in -lhesiod... " >&6; }
18439 if ${ac_cv_lib_hesiod_hes_getmailhost+:} false
; then :
18440 $as_echo_n "(cached) " >&6
18442 ac_check_lib_save_LIBS
=$LIBS
18443 LIBS
="-lhesiod $RESOLVLIB $LIBS"
18444 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
18445 /* end confdefs.h. */
18447 /* Override any GCC internal prototype to avoid an error.
18448 Use char because int might match the return type of a GCC
18449 builtin and then its argument prototype would still apply. */
18453 char hes_getmailhost ();
18457 return hes_getmailhost ();
18462 if ac_fn_c_try_link
"$LINENO"; then :
18463 ac_cv_lib_hesiod_hes_getmailhost
=yes
18465 ac_cv_lib_hesiod_hes_getmailhost
=no
18467 rm -f core conftest.err conftest.
$ac_objext \
18468 conftest
$ac_exeext conftest.
$ac_ext
18469 LIBS
=$ac_check_lib_save_LIBS
18471 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_hesiod_hes_getmailhost" >&5
18472 $as_echo "$ac_cv_lib_hesiod_hes_getmailhost" >&6; }
18473 if test "x$ac_cv_lib_hesiod_hes_getmailhost" = xyes
; then :
18482 if test x
"$hesiod" = xyes
; then
18484 $as_echo "#define HAVE_LIBHESIOD 1" >>confdefs.h
18491 # Do we need libresolv (due to res_init or Hesiod)?
18492 if test "$resolv" = yes ; then
18494 $as_echo "#define HAVE_LIBRESOLV 1" >>confdefs.h
18502 # These tell us which Kerberos-related libraries to use.
18509 if test "${with_kerberos}" != no
; then
18510 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for com_err in -lcom_err" >&5
18511 $as_echo_n "checking for com_err in -lcom_err... " >&6; }
18512 if ${ac_cv_lib_com_err_com_err+:} false
; then :
18513 $as_echo_n "(cached) " >&6
18515 ac_check_lib_save_LIBS
=$LIBS
18516 LIBS
="-lcom_err $LIBS"
18517 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
18518 /* end confdefs.h. */
18520 /* Override any GCC internal prototype to avoid an error.
18521 Use char because int might match the return type of a GCC
18522 builtin and then its argument prototype would still apply. */
18535 if ac_fn_c_try_link
"$LINENO"; then :
18536 ac_cv_lib_com_err_com_err
=yes
18538 ac_cv_lib_com_err_com_err
=no
18540 rm -f core conftest.err conftest.
$ac_objext \
18541 conftest
$ac_exeext conftest.
$ac_ext
18542 LIBS
=$ac_check_lib_save_LIBS
18544 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_com_err_com_err" >&5
18545 $as_echo "$ac_cv_lib_com_err_com_err" >&6; }
18546 if test "x$ac_cv_lib_com_err_com_err" = xyes
; then :
18552 if test $have_com_err = yes; then
18553 COM_ERRLIB
=-lcom_err
18554 LIBS
="$COM_ERRLIB $LIBS"
18556 $as_echo "#define HAVE_LIBCOM_ERR 1" >>confdefs.h
18559 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for mit_des_cbc_encrypt in -lcrypto" >&5
18560 $as_echo_n "checking for mit_des_cbc_encrypt in -lcrypto... " >&6; }
18561 if ${ac_cv_lib_crypto_mit_des_cbc_encrypt+:} false
; then :
18562 $as_echo_n "(cached) " >&6
18564 ac_check_lib_save_LIBS
=$LIBS
18565 LIBS
="-lcrypto $LIBS"
18566 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
18567 /* end confdefs.h. */
18569 /* Override any GCC internal prototype to avoid an error.
18570 Use char because int might match the return type of a GCC
18571 builtin and then its argument prototype would still apply. */
18575 char mit_des_cbc_encrypt ();
18579 return mit_des_cbc_encrypt ();
18584 if ac_fn_c_try_link
"$LINENO"; then :
18585 ac_cv_lib_crypto_mit_des_cbc_encrypt
=yes
18587 ac_cv_lib_crypto_mit_des_cbc_encrypt
=no
18589 rm -f core conftest.err conftest.
$ac_objext \
18590 conftest
$ac_exeext conftest.
$ac_ext
18591 LIBS
=$ac_check_lib_save_LIBS
18593 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_crypto_mit_des_cbc_encrypt" >&5
18594 $as_echo "$ac_cv_lib_crypto_mit_des_cbc_encrypt" >&6; }
18595 if test "x$ac_cv_lib_crypto_mit_des_cbc_encrypt" = xyes
; then :
18601 if test $have_crypto = yes; then
18603 LIBS
="$CRYPTOLIB $LIBS"
18605 $as_echo "#define HAVE_LIBCRYPTO 1" >>confdefs.h
18608 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for mit_des_cbc_encrypt in -lk5crypto" >&5
18609 $as_echo_n "checking for mit_des_cbc_encrypt in -lk5crypto... " >&6; }
18610 if ${ac_cv_lib_k5crypto_mit_des_cbc_encrypt+:} false
; then :
18611 $as_echo_n "(cached) " >&6
18613 ac_check_lib_save_LIBS
=$LIBS
18614 LIBS
="-lk5crypto $LIBS"
18615 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
18616 /* end confdefs.h. */
18618 /* Override any GCC internal prototype to avoid an error.
18619 Use char because int might match the return type of a GCC
18620 builtin and then its argument prototype would still apply. */
18624 char mit_des_cbc_encrypt ();
18628 return mit_des_cbc_encrypt ();
18633 if ac_fn_c_try_link
"$LINENO"; then :
18634 ac_cv_lib_k5crypto_mit_des_cbc_encrypt
=yes
18636 ac_cv_lib_k5crypto_mit_des_cbc_encrypt
=no
18638 rm -f core conftest.err conftest.
$ac_objext \
18639 conftest
$ac_exeext conftest.
$ac_ext
18640 LIBS
=$ac_check_lib_save_LIBS
18642 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_k5crypto_mit_des_cbc_encrypt" >&5
18643 $as_echo "$ac_cv_lib_k5crypto_mit_des_cbc_encrypt" >&6; }
18644 if test "x$ac_cv_lib_k5crypto_mit_des_cbc_encrypt" = xyes
; then :
18650 if test $have_k5crypto = yes; then
18651 CRYPTOLIB
=-lk5crypto
18652 LIBS
="$CRYPTOLIB $LIBS"
18654 $as_echo "#define HAVE_LIBK5CRYPTO 1" >>confdefs.h
18657 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for krb5_init_context in -lkrb5" >&5
18658 $as_echo_n "checking for krb5_init_context in -lkrb5... " >&6; }
18659 if ${ac_cv_lib_krb5_krb5_init_context+:} false
; then :
18660 $as_echo_n "(cached) " >&6
18662 ac_check_lib_save_LIBS
=$LIBS
18663 LIBS
="-lkrb5 $LIBS"
18664 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
18665 /* end confdefs.h. */
18667 /* Override any GCC internal prototype to avoid an error.
18668 Use char because int might match the return type of a GCC
18669 builtin and then its argument prototype would still apply. */
18673 char krb5_init_context ();
18677 return krb5_init_context ();
18682 if ac_fn_c_try_link
"$LINENO"; then :
18683 ac_cv_lib_krb5_krb5_init_context
=yes
18685 ac_cv_lib_krb5_krb5_init_context
=no
18687 rm -f core conftest.err conftest.
$ac_objext \
18688 conftest
$ac_exeext conftest.
$ac_ext
18689 LIBS
=$ac_check_lib_save_LIBS
18691 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_krb5_krb5_init_context" >&5
18692 $as_echo "$ac_cv_lib_krb5_krb5_init_context" >&6; }
18693 if test "x$ac_cv_lib_krb5_krb5_init_context" = xyes
; then :
18699 if test $have_krb5=yes; then
18701 LIBS
="$KRB5LIB $LIBS"
18703 $as_echo "#define HAVE_LIBKRB5 1" >>confdefs.h
18706 if test "${with_kerberos5}" = no
; then
18707 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for des_cbc_encrypt in -ldes425" >&5
18708 $as_echo_n "checking for des_cbc_encrypt in -ldes425... " >&6; }
18709 if ${ac_cv_lib_des425_des_cbc_encrypt+:} false
; then :
18710 $as_echo_n "(cached) " >&6
18712 ac_check_lib_save_LIBS
=$LIBS
18713 LIBS
="-ldes425 $LIBS"
18714 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
18715 /* end confdefs.h. */
18717 /* Override any GCC internal prototype to avoid an error.
18718 Use char because int might match the return type of a GCC
18719 builtin and then its argument prototype would still apply. */
18723 char des_cbc_encrypt ();
18727 return des_cbc_encrypt ();
18732 if ac_fn_c_try_link
"$LINENO"; then :
18733 ac_cv_lib_des425_des_cbc_encrypt
=yes
18735 ac_cv_lib_des425_des_cbc_encrypt
=no
18737 rm -f core conftest.err conftest.
$ac_objext \
18738 conftest
$ac_exeext conftest.
$ac_ext
18739 LIBS
=$ac_check_lib_save_LIBS
18741 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_des425_des_cbc_encrypt" >&5
18742 $as_echo "$ac_cv_lib_des425_des_cbc_encrypt" >&6; }
18743 if test "x$ac_cv_lib_des425_des_cbc_encrypt" = xyes
; then :
18749 if test $have_des425 = yes; then
18751 LIBS
="$DESLIB $LIBS"
18753 $as_echo "#define HAVE_LIBDES425 1" >>confdefs.h
18756 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for des_cbc_encrypt in -ldes" >&5
18757 $as_echo_n "checking for des_cbc_encrypt in -ldes... " >&6; }
18758 if ${ac_cv_lib_des_des_cbc_encrypt+:} false
; then :
18759 $as_echo_n "(cached) " >&6
18761 ac_check_lib_save_LIBS
=$LIBS
18763 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
18764 /* end confdefs.h. */
18766 /* Override any GCC internal prototype to avoid an error.
18767 Use char because int might match the return type of a GCC
18768 builtin and then its argument prototype would still apply. */
18772 char des_cbc_encrypt ();
18776 return des_cbc_encrypt ();
18781 if ac_fn_c_try_link
"$LINENO"; then :
18782 ac_cv_lib_des_des_cbc_encrypt
=yes
18784 ac_cv_lib_des_des_cbc_encrypt
=no
18786 rm -f core conftest.err conftest.
$ac_objext \
18787 conftest
$ac_exeext conftest.
$ac_ext
18788 LIBS
=$ac_check_lib_save_LIBS
18790 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_des_des_cbc_encrypt" >&5
18791 $as_echo "$ac_cv_lib_des_des_cbc_encrypt" >&6; }
18792 if test "x$ac_cv_lib_des_des_cbc_encrypt" = xyes
; then :
18798 if test $have_des = yes; then
18800 LIBS
="$DESLIB $LIBS"
18802 $as_echo "#define HAVE_LIBDES 1" >>confdefs.h
18806 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for krb_get_cred in -lkrb4" >&5
18807 $as_echo_n "checking for krb_get_cred in -lkrb4... " >&6; }
18808 if ${ac_cv_lib_krb4_krb_get_cred+:} false
; then :
18809 $as_echo_n "(cached) " >&6
18811 ac_check_lib_save_LIBS
=$LIBS
18812 LIBS
="-lkrb4 $LIBS"
18813 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
18814 /* end confdefs.h. */
18816 /* Override any GCC internal prototype to avoid an error.
18817 Use char because int might match the return type of a GCC
18818 builtin and then its argument prototype would still apply. */
18822 char krb_get_cred ();
18826 return krb_get_cred ();
18831 if ac_fn_c_try_link
"$LINENO"; then :
18832 ac_cv_lib_krb4_krb_get_cred
=yes
18834 ac_cv_lib_krb4_krb_get_cred
=no
18836 rm -f core conftest.err conftest.
$ac_objext \
18837 conftest
$ac_exeext conftest.
$ac_ext
18838 LIBS
=$ac_check_lib_save_LIBS
18840 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_krb4_krb_get_cred" >&5
18841 $as_echo "$ac_cv_lib_krb4_krb_get_cred" >&6; }
18842 if test "x$ac_cv_lib_krb4_krb_get_cred" = xyes
; then :
18848 if test $have_krb4 = yes; then
18850 LIBS
="$KRB4LIB $LIBS"
18852 $as_echo "#define HAVE_LIBKRB4 1" >>confdefs.h
18855 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for krb_get_cred in -lkrb" >&5
18856 $as_echo_n "checking for krb_get_cred in -lkrb... " >&6; }
18857 if ${ac_cv_lib_krb_krb_get_cred+:} false
; then :
18858 $as_echo_n "(cached) " >&6
18860 ac_check_lib_save_LIBS
=$LIBS
18862 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
18863 /* end confdefs.h. */
18865 /* Override any GCC internal prototype to avoid an error.
18866 Use char because int might match the return type of a GCC
18867 builtin and then its argument prototype would still apply. */
18871 char krb_get_cred ();
18875 return krb_get_cred ();
18880 if ac_fn_c_try_link
"$LINENO"; then :
18881 ac_cv_lib_krb_krb_get_cred
=yes
18883 ac_cv_lib_krb_krb_get_cred
=no
18885 rm -f core conftest.err conftest.
$ac_objext \
18886 conftest
$ac_exeext conftest.
$ac_ext
18887 LIBS
=$ac_check_lib_save_LIBS
18889 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_krb_krb_get_cred" >&5
18890 $as_echo "$ac_cv_lib_krb_krb_get_cred" >&6; }
18891 if test "x$ac_cv_lib_krb_krb_get_cred" = xyes
; then :
18897 if test $have_krb = yes; then
18899 LIBS
="$KRB4LIB $LIBS"
18901 $as_echo "#define HAVE_LIBKRB 1" >>confdefs.h
18907 if test "${with_kerberos5}" != no
; then
18908 for ac_header
in krb5.h
18910 ac_fn_c_check_header_mongrel
"$LINENO" "krb5.h" "ac_cv_header_krb5_h" "$ac_includes_default"
18911 if test "x$ac_cv_header_krb5_h" = xyes
; then :
18912 cat >>confdefs.h
<<_ACEOF
18913 #define HAVE_KRB5_H 1
18915 ac_fn_c_check_member
"$LINENO" "krb5_error" "text" "ac_cv_member_krb5_error_text" "#include <krb5.h>
18917 if test "x$ac_cv_member_krb5_error_text" = xyes
; then :
18919 cat >>confdefs.h
<<_ACEOF
18920 #define HAVE_KRB5_ERROR_TEXT 1
18925 ac_fn_c_check_member
"$LINENO" "krb5_error" "e_text" "ac_cv_member_krb5_error_e_text" "#include <krb5.h>
18927 if test "x$ac_cv_member_krb5_error_e_text" = xyes
; then :
18929 cat >>confdefs.h
<<_ACEOF
18930 #define HAVE_KRB5_ERROR_E_TEXT 1
18941 for ac_header
in des.h
18943 ac_fn_c_check_header_mongrel
"$LINENO" "des.h" "ac_cv_header_des_h" "$ac_includes_default"
18944 if test "x$ac_cv_header_des_h" = xyes
; then :
18945 cat >>confdefs.h
<<_ACEOF
18946 #define HAVE_DES_H 1
18950 for ac_header
in kerberosIV
/des.h
18952 ac_fn_c_check_header_mongrel
"$LINENO" "kerberosIV/des.h" "ac_cv_header_kerberosIV_des_h" "$ac_includes_default"
18953 if test "x$ac_cv_header_kerberosIV_des_h" = xyes
; then :
18954 cat >>confdefs.h
<<_ACEOF
18955 #define HAVE_KERBEROSIV_DES_H 1
18959 for ac_header
in kerberos
/des.h
18961 ac_fn_c_check_header_mongrel
"$LINENO" "kerberos/des.h" "ac_cv_header_kerberos_des_h" "$ac_includes_default"
18962 if test "x$ac_cv_header_kerberos_des_h" = xyes
; then :
18963 cat >>confdefs.h
<<_ACEOF
18964 #define HAVE_KERBEROS_DES_H 1
18979 for ac_header
in krb.h
18981 ac_fn_c_check_header_mongrel
"$LINENO" "krb.h" "ac_cv_header_krb_h" "$ac_includes_default"
18982 if test "x$ac_cv_header_krb_h" = xyes
; then :
18983 cat >>confdefs.h
<<_ACEOF
18984 #define HAVE_KRB_H 1
18988 for ac_header
in kerberosIV
/krb.h
18990 ac_fn_c_check_header_mongrel
"$LINENO" "kerberosIV/krb.h" "ac_cv_header_kerberosIV_krb_h" "$ac_includes_default"
18991 if test "x$ac_cv_header_kerberosIV_krb_h" = xyes
; then :
18992 cat >>confdefs.h
<<_ACEOF
18993 #define HAVE_KERBEROSIV_KRB_H 1
18997 for ac_header
in kerberos
/krb.h
18999 ac_fn_c_check_header_mongrel
"$LINENO" "kerberos/krb.h" "ac_cv_header_kerberos_krb_h" "$ac_includes_default"
19000 if test "x$ac_cv_header_kerberos_krb_h" = xyes
; then :
19001 cat >>confdefs.h
<<_ACEOF
19002 #define HAVE_KERBEROS_KRB_H 1
19018 for ac_header
in com_err.h
19020 ac_fn_c_check_header_mongrel
"$LINENO" "com_err.h" "ac_cv_header_com_err_h" "$ac_includes_default"
19021 if test "x$ac_cv_header_com_err_h" = xyes
; then :
19022 cat >>confdefs.h
<<_ACEOF
19023 #define HAVE_COM_ERR_H 1
19038 # Solaris requires -lintl if you want strerror (which calls dgettext)
19039 # to return localized messages.
19040 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dgettext in -lintl" >&5
19041 $as_echo_n "checking for dgettext in -lintl... " >&6; }
19042 if ${ac_cv_lib_intl_dgettext+:} false
; then :
19043 $as_echo_n "(cached) " >&6
19045 ac_check_lib_save_LIBS
=$LIBS
19046 LIBS
="-lintl $LIBS"
19047 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
19048 /* end confdefs.h. */
19050 /* Override any GCC internal prototype to avoid an error.
19051 Use char because int might match the return type of a GCC
19052 builtin and then its argument prototype would still apply. */
19060 return dgettext ();
19065 if ac_fn_c_try_link
"$LINENO"; then :
19066 ac_cv_lib_intl_dgettext
=yes
19068 ac_cv_lib_intl_dgettext
=no
19070 rm -f core conftest.err conftest.
$ac_objext \
19071 conftest
$ac_exeext conftest.
$ac_ext
19072 LIBS
=$ac_check_lib_save_LIBS
19074 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_intl_dgettext" >&5
19075 $as_echo "$ac_cv_lib_intl_dgettext" >&6; }
19076 if test "x$ac_cv_lib_intl_dgettext" = xyes
; then :
19077 cat >>confdefs.h
<<_ACEOF
19078 #define HAVE_LIBINTL 1
19081 LIBS
="-lintl $LIBS"
19086 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether localtime caches TZ" >&5
19087 $as_echo_n "checking whether localtime caches TZ... " >&6; }
19088 if ${emacs_cv_localtime_cache+:} false
; then :
19089 $as_echo_n "(cached) " >&6
19091 if test x
$ac_cv_func_tzset = xyes
; then
19092 if test "$cross_compiling" = yes; then :
19093 # If we have tzset, assume the worst when cross-compiling.
19094 emacs_cv_localtime_cache
=yes
19096 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
19097 /* end confdefs.h. */
19099 char TZ_GMT0[] = "TZ=GMT0";
19100 char TZ_PST8[] = "TZ=PST8";
19103 time_t now = time ((time_t *) 0);
19104 int hour_GMT0, hour_unset;
19105 if (putenv (TZ_GMT0) != 0)
19107 hour_GMT0 = localtime (&now)->tm_hour;
19109 hour_unset = localtime (&now)->tm_hour;
19110 if (putenv (TZ_PST8) != 0)
19112 if (localtime (&now)->tm_hour == hour_GMT0)
19115 if (localtime (&now)->tm_hour != hour_unset)
19120 if ac_fn_c_try_run
"$LINENO"; then :
19121 emacs_cv_localtime_cache
=no
19123 emacs_cv_localtime_cache
=yes
19125 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
19126 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
19130 # If we lack tzset, report that localtime does not cache TZ,
19131 # since we can't invalidate the cache if we don't have tzset.
19132 emacs_cv_localtime_cache
=no
19135 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $emacs_cv_localtime_cache" >&5
19136 $as_echo "$emacs_cv_localtime_cache" >&6; }
19137 if test $emacs_cv_localtime_cache = yes; then
19139 $as_echo "#define LOCALTIME_CACHE 1" >>confdefs.h
19143 if test "x$HAVE_TIMEVAL" = xyes
; then
19144 for ac_func
in gettimeofday
19146 ac_fn_c_check_func
"$LINENO" "gettimeofday" "ac_cv_func_gettimeofday"
19147 if test "x$ac_cv_func_gettimeofday" = xyes
; then :
19148 cat >>confdefs.h
<<_ACEOF
19149 #define HAVE_GETTIMEOFDAY 1
19155 if test $ac_cv_func_gettimeofday = yes; then
19156 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether gettimeofday can accept two arguments" >&5
19157 $as_echo_n "checking whether gettimeofday can accept two arguments... " >&6; }
19158 if ${emacs_cv_gettimeofday_two_arguments+:} false
; then :
19159 $as_echo_n "(cached) " >&6
19161 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
19162 /* end confdefs.h. */
19164 #ifdef TIME_WITH_SYS_TIME
19165 #include <sys/time.h>
19168 #ifdef HAVE_SYS_TIME_H
19169 #include <sys/time.h>
19177 struct timeval time;
19178 gettimeofday (&time, 0);
19183 if ac_fn_c_try_compile
"$LINENO"; then :
19184 emacs_cv_gettimeofday_two_arguments
=yes
19186 emacs_cv_gettimeofday_two_arguments
=no
19188 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
19190 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $emacs_cv_gettimeofday_two_arguments" >&5
19191 $as_echo "$emacs_cv_gettimeofday_two_arguments" >&6; }
19192 if test $emacs_cv_gettimeofday_two_arguments = no
; then
19194 $as_echo "#define GETTIMEOFDAY_ONE_ARGUMENT 1" >>confdefs.h
19201 ac_fn_c_check_func
"$LINENO" "socket" "ac_cv_func_socket"
19202 if test "x$ac_cv_func_socket" = xyes
; then :
19208 if test $ok_so_far = yes; then
19209 ac_fn_c_check_header_mongrel
"$LINENO" "netinet/in.h" "ac_cv_header_netinet_in_h" "$ac_includes_default"
19210 if test "x$ac_cv_header_netinet_in_h" = xyes
; then :
19218 if test $ok_so_far = yes; then
19219 ac_fn_c_check_header_mongrel
"$LINENO" "arpa/inet.h" "ac_cv_header_arpa_inet_h" "$ac_includes_default"
19220 if test "x$ac_cv_header_arpa_inet_h" = xyes
; then :
19228 if test $ok_so_far = yes; then
19230 $as_echo "#define HAVE_INET_SOCKETS 1" >>confdefs.h
19234 if test -f /usr
/lpp
/X11
/bin
/smt.exp
; then
19236 $as_echo "#define HAVE_AIX_SMT_EXP 1" >>confdefs.h
19240 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether system supports dynamic ptys" >&5
19241 $as_echo_n "checking whether system supports dynamic ptys... " >&6; }
19242 if test -d /dev
/pts
&& ls -d /dev
/ptmx
> /dev
/null
2>&1 ; then
19243 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
19244 $as_echo "yes" >&6; }
19246 $as_echo "#define HAVE_DEV_PTMX 1" >>confdefs.h
19249 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
19250 $as_echo "no" >&6; }
19253 ac_fn_c_check_type
"$LINENO" "pid_t" "ac_cv_type_pid_t" "$ac_includes_default"
19254 if test "x$ac_cv_type_pid_t" = xyes
; then :
19258 cat >>confdefs.h
<<_ACEOF
19264 for ac_header
in vfork.h
19266 ac_fn_c_check_header_mongrel
"$LINENO" "vfork.h" "ac_cv_header_vfork_h" "$ac_includes_default"
19267 if test "x$ac_cv_header_vfork_h" = xyes
; then :
19268 cat >>confdefs.h
<<_ACEOF
19269 #define HAVE_VFORK_H 1
19276 for ac_func
in fork vfork
19278 as_ac_var
=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
19279 ac_fn_c_check_func
"$LINENO" "$ac_func" "$as_ac_var"
19280 if eval test \"x\$
"$as_ac_var"\" = x
"yes"; then :
19281 cat >>confdefs.h
<<_ACEOF
19282 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
19288 if test "x$ac_cv_func_fork" = xyes
; then
19289 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working fork" >&5
19290 $as_echo_n "checking for working fork... " >&6; }
19291 if ${ac_cv_func_fork_works+:} false
; then :
19292 $as_echo_n "(cached) " >&6
19294 if test "$cross_compiling" = yes; then :
19295 ac_cv_func_fork_works
=cross
19297 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
19298 /* end confdefs.h. */
19299 $ac_includes_default
19304 /* By Ruediger Kuhlmann. */
19305 return fork () < 0;
19311 if ac_fn_c_try_run
"$LINENO"; then :
19312 ac_cv_func_fork_works
=yes
19314 ac_cv_func_fork_works
=no
19316 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
19317 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
19321 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_fork_works" >&5
19322 $as_echo "$ac_cv_func_fork_works" >&6; }
19325 ac_cv_func_fork_works
=$ac_cv_func_fork
19327 if test "x$ac_cv_func_fork_works" = xcross
; then
19329 *-*-amigaos* |
*-*-msdosdjgpp*)
19330 # Override, as these systems have only a dummy fork() stub
19331 ac_cv_func_fork_works
=no
19334 ac_cv_func_fork_works
=yes
19337 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: result $ac_cv_func_fork_works guessed because of cross compilation" >&5
19338 $as_echo "$as_me: WARNING: result $ac_cv_func_fork_works guessed because of cross compilation" >&2;}
19340 ac_cv_func_vfork_works
=$ac_cv_func_vfork
19341 if test "x$ac_cv_func_vfork" = xyes
; then
19342 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working vfork" >&5
19343 $as_echo_n "checking for working vfork... " >&6; }
19344 if ${ac_cv_func_vfork_works+:} false
; then :
19345 $as_echo_n "(cached) " >&6
19347 if test "$cross_compiling" = yes; then :
19348 ac_cv_func_vfork_works
=cross
19350 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
19351 /* end confdefs.h. */
19352 /* Thanks to Paul Eggert for this test. */
19353 $ac_includes_default
19354 #include <sys/wait.h>
19355 #ifdef HAVE_VFORK_H
19356 # include <vfork.h>
19358 /* On some sparc systems, changes by the child to local and incoming
19359 argument registers are propagated back to the parent. The compiler
19360 is told about this with #include <vfork.h>, but some compilers
19361 (e.g. gcc -O) don't grok <vfork.h>. Test for this by using a
19362 static variable whose address is put into a register that is
19363 clobbered by the vfork. */
19366 sparc_address_test (int arg)
19368 sparc_address_test (arg) int arg;
19371 static pid_t child;
19389 pid_t parent = getpid ();
19392 sparc_address_test (0);
19397 /* Here is another test for sparc vfork register problems. This
19398 test uses lots of local variables, at least as many local
19399 variables as main has allocated so far including compiler
19400 temporaries. 4 locals are enough for gcc 1.40.3 on a Solaris
19401 4.1.3 sparc, but we use 8 to be safe. A buggy compiler should
19402 reuse the register of parent for one of the local variables,
19403 since it will think that parent can't possibly be used any more
19404 in this routine. Assigning to the local variable will thus
19405 munge parent in the parent process. */
19407 p = getpid(), p1 = getpid(), p2 = getpid(), p3 = getpid(),
19408 p4 = getpid(), p5 = getpid(), p6 = getpid(), p7 = getpid();
19409 /* Convince the compiler that p..p7 are live; otherwise, it might
19410 use the same hardware register for all 8 local variables. */
19411 if (p != p1 || p != p2 || p != p3 || p != p4
19412 || p != p5 || p != p6 || p != p7)
19415 /* On some systems (e.g. IRIX 3.3), vfork doesn't separate parent
19416 from child file descriptors. If the child closes a descriptor
19417 before it execs or exits, this munges the parent's descriptor
19418 as well. Test for this by closing stdout in the child. */
19419 _exit(close(fileno(stdout)) != 0);
19424 while (wait(&status) != child)
19427 /* Was there some problem with vforking? */
19430 /* Did the child fail? (This shouldn't happen.) */
19433 /* Did the vfork/compiler bug occur? */
19434 || parent != getpid()
19436 /* Did the file descriptor bug occur? */
19437 || fstat(fileno(stdout), &st) != 0
19442 if ac_fn_c_try_run
"$LINENO"; then :
19443 ac_cv_func_vfork_works
=yes
19445 ac_cv_func_vfork_works
=no
19447 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
19448 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
19452 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_vfork_works" >&5
19453 $as_echo "$ac_cv_func_vfork_works" >&6; }
19456 if test "x$ac_cv_func_fork_works" = xcross
; then
19457 ac_cv_func_vfork_works
=$ac_cv_func_vfork
19458 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: result $ac_cv_func_vfork_works guessed because of cross compilation" >&5
19459 $as_echo "$as_me: WARNING: result $ac_cv_func_vfork_works guessed because of cross compilation" >&2;}
19462 if test "x$ac_cv_func_vfork_works" = xyes
; then
19464 $as_echo "#define HAVE_WORKING_VFORK 1" >>confdefs.h
19468 $as_echo "#define vfork fork" >>confdefs.h
19471 if test "x$ac_cv_func_fork_works" = xyes
; then
19473 $as_echo "#define HAVE_WORKING_FORK 1" >>confdefs.h
19478 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for nl_langinfo and CODESET" >&5
19479 $as_echo_n "checking for nl_langinfo and CODESET... " >&6; }
19480 if ${emacs_cv_langinfo_codeset+:} false
; then :
19481 $as_echo_n "(cached) " >&6
19483 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
19484 /* end confdefs.h. */
19485 #include <langinfo.h>
19489 char* cs = nl_langinfo(CODESET);
19494 if ac_fn_c_try_link
"$LINENO"; then :
19495 emacs_cv_langinfo_codeset
=yes
19497 emacs_cv_langinfo_codeset
=no
19499 rm -f core conftest.err conftest.
$ac_objext \
19500 conftest
$ac_exeext conftest.
$ac_ext
19503 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $emacs_cv_langinfo_codeset" >&5
19504 $as_echo "$emacs_cv_langinfo_codeset" >&6; }
19505 if test $emacs_cv_langinfo_codeset = yes; then
19507 $as_echo "#define HAVE_LANGINFO_CODESET 1" >>confdefs.h
19511 ac_fn_c_check_type
"$LINENO" "size_t" "ac_cv_type_size_t" "$ac_includes_default"
19512 if test "x$ac_cv_type_size_t" = xyes
; then :
19514 cat >>confdefs.h
<<_ACEOF
19515 #define HAVE_SIZE_T 1
19522 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for mbstate_t" >&5
19523 $as_echo_n "checking for mbstate_t... " >&6; }
19524 if ${ac_cv_type_mbstate_t+:} false
; then :
19525 $as_echo_n "(cached) " >&6
19527 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
19528 /* end confdefs.h. */
19529 $ac_includes_default
19530 # include <wchar.h>
19534 mbstate_t x; return sizeof x;
19539 if ac_fn_c_try_compile
"$LINENO"; then :
19540 ac_cv_type_mbstate_t
=yes
19542 ac_cv_type_mbstate_t
=no
19544 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
19546 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_mbstate_t" >&5
19547 $as_echo "$ac_cv_type_mbstate_t" >&6; }
19548 if test $ac_cv_type_mbstate_t = yes; then
19550 $as_echo "#define HAVE_MBSTATE_T 1" >>confdefs.h
19554 $as_echo "#define mbstate_t int" >>confdefs.h
19558 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for C restricted array declarations" >&5
19559 $as_echo_n "checking for C restricted array declarations... " >&6; }
19560 if ${emacs_cv_c_restrict_arr+:} false
; then :
19561 $as_echo_n "(cached) " >&6
19563 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
19564 /* end confdefs.h. */
19565 void fred (int x[__restrict]);
19574 if ac_fn_c_try_compile
"$LINENO"; then :
19575 emacs_cv_c_restrict_arr
=yes
19577 emacs_cv_c_restrict_arr
=no
19579 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
19581 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $emacs_cv_c_restrict_arr" >&5
19582 $as_echo "$emacs_cv_c_restrict_arr" >&6; }
19583 if test "$emacs_cv_c_restrict_arr" = yes; then
19585 $as_echo "#define __restrict_arr __restrict" >>confdefs.h
19591 # Set up the CFLAGS for real compilation, so we can substitute it.
19592 CFLAGS
="$REAL_CFLAGS"
19593 CPPFLAGS
="$REAL_CPPFLAGS"
19595 ## Hack to detect a buggy GCC version.
19596 if test "x$GCC" = xyes \
19597 && test x
"`$CC --version 2> /dev/null | grep 'gcc.* 4.5.0'`" != x \
19598 && test x
"`echo $CFLAGS | grep '\-O[23]'`" != x \
19599 && test x
"`echo $CFLAGS | grep '\-fno-optimize-sibling-calls'`" = x
; then
19600 as_fn_error $?
"GCC 4.5.0 has problems compiling Emacs; see etc/PROBLEMS'." "$LINENO" 5
19603 version
=$PACKAGE_VERSION
19605 ### Specify what sort of things we'll be editing into Makefile and config.h.
19606 ### Use configuration here uncanonicalized to avoid exceeding size limits.
19630 ## FIXME? Nothing uses @LD_SWITCH_X_SITE@.
19631 ## src/Makefile.in did add LD_SWITCH_X_SITE (as a cpp define) to the
19632 ## end of LIBX_BASE, but nothing ever set it.
19637 ## Used in lwlib/Makefile.in.
19639 if test -n "${machfile}"; then
19640 M_FILE
="\$(srcdir)/${machfile}"
19644 S_FILE
="\$(srcdir)/${opsysfile}"
19655 cat >>confdefs.h
<<_ACEOF
19656 #define EMACS_CONFIGURATION "${canonical}"
19660 cat >>confdefs.h
<<_ACEOF
19661 #define EMACS_CONFIG_OPTIONS "${ac_configure_args}"
19664 if test -n "$machfile"; then
19666 cat >>confdefs.h
<<_ACEOF
19667 #define config_machfile "${machfile}"
19672 cat >>confdefs.h
<<_ACEOF
19673 #define config_opsysfile "${opsysfile}"
19680 if test "${HAVE_X_WINDOWS}" = "yes" ; then
19682 $as_echo "#define HAVE_X_WINDOWS 1" >>confdefs.h
19685 XOBJ
="xterm.o xfns.o xselect.o xrdb.o fontset.o xsmfns.o fringe.o image.o xsettings.o xgselect.o"
19687 if test "$HAVE_XFT" = "yes"; then
19688 FONT_OBJ
="$FONT_OBJ ftfont.o xftfont.o ftxfont.o"
19689 elif test "$HAVE_FREETYPE" = "yes"; then
19690 FONT_OBJ
="$FONT_OBJ ftfont.o ftxfont.o"
19700 if test "${USE_X_TOOLKIT}" != "none" ; then
19701 WIDGET_OBJ
=widget.o
19703 $as_echo "#define USE_X_TOOLKIT 1" >>confdefs.h
19705 if test "${USE_X_TOOLKIT}" = "LUCID"; then
19707 $as_echo "#define USE_LUCID 1" >>confdefs.h
19709 elif test "${USE_X_TOOLKIT}" = "MOTIF"; then
19711 $as_echo "#define USE_MOTIF 1" >>confdefs.h
19716 ## Paul Abrahams <abrahams at equinox.shaysnet.com> says this is needed.
19717 MOTIF_LIBW
="$MOTIF_LIBW -lXpm"
19721 ## Richard Anthony Ryan <ryanr at ellingtn.ftc.nrcs.usda.gov>
19722 ## says -lXimp is needed in UNIX_SV ... 4.2 1.1.2.
19723 MOTIF_LIBW
="MOTIF_LIBW -lXimp"
19727 ## olson@mcs.anl.gov says -li18n is needed by -lXm.
19728 MOTIF_LIBW
="$MOTIF_LIBW -li18n"
19731 MOTIF_LIBW
="$MOTIF_LIBW $LIBXP"
19737 case "$USE_X_TOOLKIT" in
19738 MOTIF
) TOOLKIT_LIBW
="$MOTIF_LIBW" ;;
19739 LUCID
) TOOLKIT_LIBW
="$LUCID_LIBW" ;;
19740 none
) test "x$HAVE_GTK" = "xyes" && TOOLKIT_LIBW
="$GTK_LIBS" ;;
19744 if test "$USE_X_TOOLKIT" = "none"; then
19745 LIBXT_OTHER
="\$(LIBXSM)"
19746 OLDXMENU_TARGET
="really-oldXMenu"
19748 LIBXT_OTHER
="\$(LIBXMU) -lXt \$(LIBXTR6) -lXext"
19749 OLDXMENU_TARGET
="really-lwlib"
19753 ## The X Menu stuff is present in the X10 distribution, but missing
19754 ## from X11. If we have X10, just use the installed library;
19755 ## otherwise, use our own copy.
19756 if test "${HAVE_X11}" = "yes" ; then
19758 $as_echo "#define HAVE_X11 1" >>confdefs.h
19761 if test "$USE_X_TOOLKIT" = "none"; then
19762 OLDXMENU
="\${oldXMenudir}/libXMenu11.a"
19764 OLDXMENU
="\${lwlibdir}/liblw.a"
19766 LIBXMENU
="\$(OLDXMENU)"
19767 LIBX_OTHER
="\$(LIBXT) \$(LIBX_EXTRA)"
19768 OLDXMENU_DEPS
="\${OLDXMENU} ../src/\${OLDXMENU}"
19770 ## For a syntactically valid Makefile; not actually used for anything.
19771 ## See comments in src/Makefile.in.
19773 ## FIXME This case (!HAVE_X11 && HAVE_X_WINDOWS) is no longer possible(?).
19774 if test "${HAVE_X_WINDOWS}" = "yes"; then
19783 if test "$HAVE_GTK" = "yes" ||
test "$HAVE_MENUS" != "yes"; then
19796 if test "${HAVE_MENUS}" = "yes" ; then
19798 $as_echo "#define HAVE_MENUS 1" >>confdefs.h
19802 if test "${GNU_MALLOC}" = "yes" ; then
19804 $as_echo "#define GNU_MALLOC 1" >>confdefs.h
19809 if test "${REL_ALLOC}" = "yes" ; then
19811 $as_echo "#define REL_ALLOC 1" >>confdefs.h
19814 test "$system_malloc" != "yes" && RALLOC_OBJ
=ralloc.o
19818 if test "$opsys" = "cygwin"; then
19819 CYGWIN_OBJ
="sheap.o"
19820 ## Cygwin differs because of its unexec().
19822 POST_ALLOC_OBJ
=lastfile.o
19825 PRE_ALLOC_OBJ
=lastfile.o
19834 aix4-2
) LD_SWITCH_SYSTEM_TEMACS
="-Wl,-bnodelcsect" ;;
19837 ## The -headerpad option tells ld (see man page) to leave room at the
19838 ## end of the header for adding load commands. Needed for dumping.
19839 ## 0x690 is the total size of 30 segment load commands (at 56
19840 ## each); under Cocoa 31 commands are required.
19841 if test "$HAVE_NS" = "yes"; then
19842 libs_nsgui
="-framework AppKit"
19843 headerpad_extra
=6C8
19846 headerpad_extra
=690
19848 LD_SWITCH_SYSTEM_TEMACS
="-prebind $libs_nsgui -Xlinker -headerpad -Xlinker $headerpad_extra"
19850 ## This is here because src/Makefile.in did some extra fiddling around
19851 ## with LD_SWITCH_SYSTEM. The cpp logic was:
19852 ## #ifndef LD_SWITCH_SYSTEM
19853 ## #if !defined (__GNUC__) && ((defined (BSD_SYSTEM) && !defined (COFF)))
19854 ## Since all the *bsds define LD_SWITCH_SYSTEM, this simplifies to:
19855 ## not using gcc, darwin system not on an alpha (ie darwin, since
19856 ## darwin + alpha does not occur).
19857 ## Because this was done in src/Makefile.in, the resulting part of
19858 ## LD_SWITCH_SYSTEM was not used in configure (ie, in ac_link).
19859 ## It therefore seems cleaner to put this in LD_SWITCH_SYSTEM_TEMACS,
19860 ## rather than LD_SWITCH_SYSTEM.
19861 test "x$LD_SWITCH_SYSTEM" = "x" && test "x$GCC" != "xyes" && \
19862 LD_SWITCH_SYSTEM_TEMACS
="-X $LD_SWITCH_SYSTEM_TEMACS"
19865 ## LD_SWITCH_X_SITE_AUX is a -R option saying where to find X at run-time.
19866 ## When handled by cpp, this was in LD_SWITCH_SYSTEM. However, at
19867 ## the point where configure sourced the s/*.h file, LD_SWITCH_X_SITE_AUX
19868 ## had not yet been defined and was expanded to null. Hence LD_SWITCH_SYSTEM
19869 ## had different values in configure (in ac_link) and src/Makefile.in.
19870 ## It seems clearer therefore to put this piece in LD_SWITCH_SYSTEM_TEMACS.
19871 gnu-linux
) LD_SWITCH_SYSTEM_TEMACS
="\$(LD_SWITCH_X_SITE_AUX)" ;;
19873 *) LD_SWITCH_SYSTEM_TEMACS
= ;;
19876 if test "$NS_IMPL_GNUSTEP" = "yes"; then
19877 LD_SWITCH_SYSTEM_TEMACS
="${LD_SWITCH_SYSTEM_TEMACS} -L${GNUSTEP_SYSTEM_LIBRARIES} ${GNUSTEP_LOCAL_LIBRARIES} -lgnustep-gui -lgnustep-base -lobjc -lpthread"
19886 ## gnu: GNU needs its own crt0.
19887 aix4-2|cygwin|darwin|gnu|hpux
*|irix6-5|sol2
*|unixware
) ORDINARY_LINK
=yes ;;
19889 ## On post 1.3 releases of NetBSD, gcc -nostdlib also clears the
19890 ## library search parth, i.e. it won't search /usr/lib for libc and
19891 ## friends. Using -nostartfiles instead avoids this problem, and
19892 ## will also work on earlier NetBSD releases.
19893 netbsd|openbsd
) LD_FIRSTFLAG
="-nostartfiles" ;;
19895 ## macpcc: NAKAJI Hiroyuki <nakaji@tutrp.tut.ac.jp> says
19896 ## MkLinux/LinuxPPC needs this.
19897 ## ibms390x only supports opsys = gnu-linux so it can be added here.
19900 macppc|ibms390x
) LD_FIRSTFLAG
="-nostdlib" ;;
19906 if test "x$ORDINARY_LINK" = "xyes"; then
19910 $as_echo "#define ORDINARY_LINK 1" >>confdefs.h
19913 ## The system files defining neither ORDINARY_LINK nor LD_FIRSTFLAG are:
19914 ## freebsd, gnu-* not on macppc|ibms390x.
19915 elif test "x$GCC" = "xyes" && test "x$LD_FIRSTFLAG" = "x"; then
19917 ## Versions of GCC >= 2.0 put their library, libgcc.a, in obscure
19918 ## places that are difficult to figure out at make time. Fortunately,
19919 ## these same versions allow you to pass arbitrary flags on to the
19920 ## linker, so there is no reason not to use it as a linker.
19922 ## Well, it is not quite perfect. The "-nostdlib" keeps GCC from
19923 ## searching for libraries in its internal directories, so we have to
19924 ## ask GCC explicitly where to find libgcc.a (LIB_GCC below).
19925 LD_FIRSTFLAG
="-nostdlib"
19928 ## FIXME? What setting of EDIT_LDFLAGS should this have?
19929 test "$NS_IMPL_GNUSTEP" = "yes" && LD_FIRSTFLAG
="-rdynamic"
19934 ## FIXME? The logic here is not precisely the same as that above.
19935 ## There is no check here for a pre-defined LD_FIRSTFLAG.
19936 ## Should we only be setting LIB_GCC if LD ~ -nostdlib?
19938 if test "x$GCC" = "xyes" && test "x$ORDINARY_LINK" != "xyes"; then
19941 freebsd|netbsd|openbsd
) LIB_GCC
= ;;
19944 ## armin76@gentoo.org reported that the lgcc_s flag is necessary to
19945 ## build on ARM EABI under GNU/Linux. (Bug#5518)
19951 ## FIXME? s/gnu-linux.h used to define LIB_GCC as below, then
19952 ## immediately undefine it again and redefine it to empty.
19953 ## Was the C_SWITCH_X_SITE part really necessary?
19954 ## LIB_GCC=`$CC $C_SWITCH_X_SITE -print-libgcc-file-name`
19960 ## Ask GCC where to find libgcc.a.
19961 *) LIB_GCC
=`$CC -print-libgcc-file-name 2> /dev/null` ;;
19968 ## If we're using X11/GNUstep, define some consequences.
19969 if test "$HAVE_X_WINDOWS" = "yes" ||
test "$HAVE_NS" = "yes"; then
19971 $as_echo "#define HAVE_WINDOW_SYSTEM 1" >>confdefs.h
19974 $as_echo "#define HAVE_MOUSE 1" >>confdefs.h
19976 MOUSE_SUPPORT
="\$(REAL_MOUSE_SUPPORT)"
19977 TOOLTIP_SUPPORT
="\${lispsource}/mouse.elc"
19979 WINDOW_SUPPORT
="\$(BASE_WINDOW_SUPPORT)"
19980 test "$HAVE_X_WINDOWS" = "yes" && \
19981 WINDOW_SUPPORT
="$WINDOW_SUPPORT \$(X_WINDOW_SUPPORT)"
19991 #### Report on what we decided to do.
19992 #### Report GTK as a toolkit, even if it doesn't use Xt.
19993 #### It makes printing result more understandable as using GTK sets
19994 #### toolkit_scroll_bars to yes by default.
19995 if test "${HAVE_GTK}" = "yes"; then
20000 if test -n "$machfile"; then
20001 and_machfile
=" and \`${machfile}'"
20005 Configured for \`${canonical}'.
20007 Where should the build process find the source code? ${srcdir}
20008 What operating system and machine description files should Emacs use?
20009 \`${opsysfile}'${and_machfile}
20010 What compiler should emacs be built with? ${CC} ${CFLAGS}
20011 Should Emacs use the GNU version of malloc? ${GNU_MALLOC}${GNU_MALLOC_reason}
20012 Should Emacs use a relocating allocator for buffers? ${REL_ALLOC}
20013 Should Emacs use mmap(2) for buffer allocation? $use_mmap_for_buffers
20014 What window system should Emacs use? ${window_system}
20015 What toolkit should Emacs use? ${USE_X_TOOLKIT}"
20017 if test -n "${x_includes}"; then
20018 echo " Where do we find X Windows header files? ${x_includes}"
20020 echo " Where do we find X Windows header files? Standard dirs"
20022 if test -n "${x_libraries}"; then
20023 echo " Where do we find X Windows libraries? ${x_libraries}"
20025 echo " Where do we find X Windows libraries? Standard dirs"
20028 echo " Does Emacs use -lXaw3d? ${HAVE_XAW3D}"
20029 echo " Does Emacs use -lXpm? ${HAVE_XPM}"
20030 echo " Does Emacs use -ljpeg? ${HAVE_JPEG}"
20031 echo " Does Emacs use -ltiff? ${HAVE_TIFF}"
20032 echo " Does Emacs use a gif library? ${HAVE_GIF} $LIBGIF"
20033 echo " Does Emacs use -lpng? ${HAVE_PNG}"
20034 echo " Does Emacs use -lrsvg-2? ${HAVE_RSVG}"
20035 echo " Does Emacs use imagemagick? ${HAVE_IMAGEMAGICK}"
20037 echo " Does Emacs use -lgpm? ${HAVE_GPM}"
20038 echo " Does Emacs use -ldbus? ${HAVE_DBUS}"
20039 echo " Does Emacs use -lgconf? ${HAVE_GCONF}"
20040 echo " Does Emacs use -lselinux? ${HAVE_LIBSELINUX}"
20041 echo " Does Emacs use -lgnutls? ${HAVE_GNUTLS}"
20042 echo " Does Emacs use -lxml2? ${HAVE_LIBXML2}"
20044 echo " Does Emacs use -lfreetype? ${HAVE_FREETYPE}"
20045 echo " Does Emacs use -lm17n-flt? ${HAVE_M17N_FLT}"
20046 echo " Does Emacs use -lotf? ${HAVE_LIBOTF}"
20047 echo " Does Emacs use -lxft? ${HAVE_XFT}"
20049 echo " Does Emacs use toolkit scroll bars? ${USE_TOOLKIT_SCROLL_BARS}"
20052 if test $USE_XASSERTS = yes; then
20053 echo " Compiling with asserts turned on."
20054 CPPFLAGS
="$CPPFLAGS -DXASSERTS=1"
20059 if test "$HAVE_NS" = "yes"; then
20061 echo "You must run \"make install\" in order to test the built application.
20062 The installed application will go to nextstep/Emacs.app and can be
20063 run or moved from there."
20064 if test "$EN_NS_SELF_CONTAINED" = "yes"; then
20065 echo "The application will be fully self-contained."
20067 echo "The lisp resources for the application will be installed under ${prefix}.
20068 You may need to run \"make install\" with sudo. The application will fail
20069 to run if these resources are not installed."
20075 # Remove any trailing slashes in these variables.
20076 test "${prefix}" != NONE
&&
20077 prefix
=`echo "${prefix}" | sed 's,\([^/]\)/*$,\1,'`
20078 test "${exec_prefix}" != NONE
&&
20079 exec_prefix
=`echo "${exec_prefix}" | sed 's,\([^/]\)/*$,\1,'`
20081 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"
20084 ac_config_commands
="$ac_config_commands mkdirs"
20087 ac_config_commands
="$ac_config_commands epaths"
20090 ac_config_commands
="$ac_config_commands gdbinit"
20093 cat >confcache
<<\_ACEOF
20094 # This file is a shell script that caches the results of configure
20095 # tests run on this system so they can be shared between configure
20096 # scripts and configure runs, see configure's option --config-cache.
20097 # It is not useful on other systems. If it contains results you don't
20098 # want to keep, you may remove or edit it.
20100 # config.status only pays attention to the cache file if you give it
20101 # the --recheck option to rerun configure.
20103 # `ac_cv_env_foo' variables (set or unset) will be overridden when
20104 # loading this file, other *unset* `ac_cv_foo' will be assigned the
20105 # following values.
20109 # The following way of writing the cache mishandles newlines in values,
20110 # but we know of no workaround that is simple, portable, and efficient.
20111 # So, we kill variables containing newlines.
20112 # Ultrix sh set writes to stderr and can't be redirected directly,
20113 # and sets the high bit in the cache file unless we assign to the vars.
20115 for ac_var
in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
20116 eval ac_val
=\$
$ac_var
20120 *_cv_
*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
20121 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
20124 _ | IFS | as_nl
) ;; #(
20125 BASH_ARGV | BASH_SOURCE
) eval $ac_var= ;; #(
20126 *) { eval $ac_var=; unset $ac_var;} ;;
20132 case $as_nl`(ac_space=' '; set) 2>&1` in #(
20133 *${as_nl}ac_space
=\
*)
20134 # `set' does not quote correctly, so add quotes: double-quote
20135 # substitution turns \\\\ into \\, and sed turns \\ into \.
20138 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
20141 # `set' quotes correctly as required by POSIX, so do not add quotes.
20142 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
20151 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
20153 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
20155 if diff "$cache_file" confcache
>/dev
/null
2>&1; then :; else
20156 if test -w "$cache_file"; then
20157 if test "x$cache_file" != "x/dev/null"; then
20158 { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
20159 $as_echo "$as_me: updating cache $cache_file" >&6;}
20160 if test ! -f "$cache_file" ||
test -h "$cache_file"; then
20161 cat confcache
>"$cache_file"
20163 case $cache_file in #(
20165 mv -f confcache
"$cache_file"$$
&&
20166 mv -f "$cache_file"$$
"$cache_file" ;; #(
20168 mv -f confcache
"$cache_file" ;;
20173 { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
20174 $as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
20179 test "x$prefix" = xNONE
&& prefix
=$ac_default_prefix
20180 # Let make expand exec_prefix.
20181 test "x$exec_prefix" = xNONE
&& exec_prefix
='${prefix}'
20183 DEFS
=-DHAVE_CONFIG_H
20188 for ac_i
in : $LIBOBJS; do test "x$ac_i" = x
: && continue
20189 # 1. Remove the extension, and $U if already installed.
20190 ac_script
='s/\$U\././;s/\.o$//;s/\.obj$//'
20191 ac_i
=`$as_echo "$ac_i" | sed "$ac_script"`
20192 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
20193 # will be set to the directory where LIBOBJS objects are built.
20194 as_fn_append ac_libobjs
" \${LIBOBJDIR}$ac_i\$U.$ac_objext"
20195 as_fn_append ac_ltlibobjs
" \${LIBOBJDIR}$ac_i"'$U.lo'
20197 LIBOBJS
=$ac_libobjs
20199 LTLIBOBJS
=$ac_ltlibobjs
20202 if test -n "$EXEEXT"; then
20204 am__EXEEXT_FALSE
='#'
20206 am__EXEEXT_TRUE
='#'
20210 if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
20211 as_fn_error $?
"conditional \"AMDEP\" was never defined.
20212 Usually this means the macro was only invoked conditionally." "$LINENO" 5
20214 if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
20215 as_fn_error $?
"conditional \"am__fastdepCC\" was never defined.
20216 Usually this means the macro was only invoked conditionally." "$LINENO" 5
20219 if test -z "${GL_COND_LIBTOOL_TRUE}" && test -z "${GL_COND_LIBTOOL_FALSE}"; then
20220 as_fn_error $?
"conditional \"GL_COND_LIBTOOL\" was never defined.
20221 Usually this means the macro was only invoked conditionally." "$LINENO" 5
20227 if test -n "$gl_LIBOBJS"; then
20228 # Remove the extension.
20229 sed_drop_objext
='s/\.o$//;s/\.obj$//'
20230 for i
in `for i in $gl_LIBOBJS; do echo "$i"; done | sed -e "$sed_drop_objext" | sort | uniq`; do
20231 gl_libobjs
="$gl_libobjs $i.$ac_objext"
20232 gl_ltlibobjs
="$gl_ltlibobjs $i.lo"
20235 gl_LIBOBJS
=$gl_libobjs
20237 gl_LTLIBOBJS
=$gl_ltlibobjs
20243 if test -n "$gltests_LIBOBJS"; then
20244 # Remove the extension.
20245 sed_drop_objext
='s/\.o$//;s/\.obj$//'
20246 for i
in `for i in $gltests_LIBOBJS; do echo "$i"; done | sed -e "$sed_drop_objext" | sort | uniq`; do
20247 gltests_libobjs
="$gltests_libobjs $i.$ac_objext"
20248 gltests_ltlibobjs
="$gltests_ltlibobjs $i.lo"
20251 gltests_LIBOBJS
=$gltests_libobjs
20253 gltests_LTLIBOBJS
=$gltests_ltlibobjs
20257 : "${CONFIG_STATUS=./config.status}"
20259 ac_clean_files_save
=$ac_clean_files
20260 ac_clean_files
="$ac_clean_files $CONFIG_STATUS"
20261 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
20262 $as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
20264 cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
20266 # Generated by $as_me.
20267 # Run this file to recreate the current configuration.
20268 # Compiler output produced by configure, useful for debugging
20269 # configure, is in config.log if it exists.
20272 ac_cs_recheck=false
20275 SHELL=\${CONFIG_SHELL-$SHELL}
20278 cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail
=1
20279 ## -------------------- ##
20280 ## M4sh Initialization. ##
20281 ## -------------------- ##
20283 # Be more Bourne compatible
20284 DUALCASE
=1; export DUALCASE
# for MKS sh
20285 if test -n "${ZSH_VERSION+set}" && (emulate sh
) >/dev
/null
2>&1; then :
20288 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
20289 # is contrary to our usage. Disable this feature.
20290 alias -g '${1+"$@"}'='"$@"'
20291 setopt NO_GLOB_SUBST
20293 case `(set -o) 2>/dev/null` in #(
20305 # Printing a long string crashes Solaris 7 /usr/bin/printf.
20306 as_echo
='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
20307 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
20308 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
20309 # Prefer a ksh shell builtin over an external printf program on Solaris,
20310 # but without wasting forks for bash or zsh.
20311 if test -z "$BASH_VERSION$ZSH_VERSION" \
20312 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
20313 as_echo='print
-r --'
20314 as_echo_n='print
-rn --'
20315 elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
20316 as_echo='printf %s
\n'
20317 as_echo_n='printf %s
'
20319 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
20320 as_echo_body='eval /usr
/ucb
/echo -n "$1$as_nl"'
20321 as_echo_n='/usr
/ucb
/echo -n'
20323 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
20324 as_echo_n_body='eval
20328 expr "X$arg" : "X\\(.*\\)$as_nl";
20329 arg
=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
20331 expr "X$arg" : "X\\(.*\\)" |
tr -d "$as_nl"
20333 export as_echo_n_body
20334 as_echo_n='sh
-c $as_echo_n_body as_echo
'
20336 export as_echo_body
20337 as_echo='sh
-c $as_echo_body as_echo
'
20340 # The user is always right.
20341 if test "${PATH_SEPARATOR+set}" != set; then
20343 (PATH='/bin
;/bin
'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
20344 (PATH='/bin
:/bin
'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
20351 # We need space, tab and new line, in precisely that order. Quoting is
20352 # there to prevent editors from complaining about space-tab.
20353 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
20354 # splitting by setting IFS to empty value.)
20357 # Find who we are. Look in the path if we contain no directory separator.
20360 *[\\/]* ) as_myself=$0 ;;
20361 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
20362 for as_dir in $PATH
20365 test -z "$as_dir" && as_dir=.
20366 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
20372 # We did not find ourselves, most probably we were run as `sh COMMAND'
20373 # in which case we are not to be found in the path.
20374 if test "x$as_myself" = x
; then
20377 if test ! -f "$as_myself"; then
20378 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
20382 # Unset variables that we do not need and which cause bugs (e.g. in
20383 # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
20384 # suppresses any "Segmentation fault" message there. '((' could
20385 # trigger a bug in pdksh 5.2.14.
20386 for as_var
in BASH_ENV ENV MAIL MAILPATH
20387 do eval test x\
${$as_var+set} = xset \
20388 && ( (unset $as_var) ||
exit 1) >/dev
/null
2>&1 && unset $as_var ||
:
20401 (unset CDPATH
) >/dev
/null
2>&1 && unset CDPATH
20404 # as_fn_error STATUS ERROR [LINENO LOG_FD]
20405 # ----------------------------------------
20406 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
20407 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
20408 # script with STATUS, using 1 if that was 0.
20411 as_status
=$1; test $as_status -eq 0 && as_status
=1
20413 as_lineno
=${as_lineno-"$3"} as_lineno_stack
=as_lineno_stack
=$as_lineno_stack
20414 $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
20416 $as_echo "$as_me: error: $2" >&2
20417 as_fn_exit
$as_status
20421 # as_fn_set_status STATUS
20422 # -----------------------
20423 # Set $? to STATUS, without forking.
20424 as_fn_set_status
()
20427 } # as_fn_set_status
20429 # as_fn_exit STATUS
20430 # -----------------
20431 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
20435 as_fn_set_status
$1
20441 # Portably unset VAR.
20444 { eval $1=; unset $1;}
20446 as_unset
=as_fn_unset
20447 # as_fn_append VAR VALUE
20448 # ----------------------
20449 # Append the text in VALUE to the end of the definition contained in VAR. Take
20450 # advantage of any shell optimizations that allow amortized linear growth over
20451 # repeated appends, instead of the typical quadratic growth present in naive
20453 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev
/null
; then :
20454 eval 'as_fn_append ()
20465 # as_fn_arith ARG...
20466 # ------------------
20467 # Perform arithmetic evaluation on the ARGs, and store the result in the
20468 # global $as_val. Take advantage of shells that can avoid forks. The arguments
20469 # must be portable across $(()) and expr.
20470 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev
/null
; then :
20471 eval 'as_fn_arith ()
20478 as_val
=`expr "$@" || test $? -eq 1`
20483 if expr a
: '\(a\)' >/dev
/null
2>&1 &&
20484 test "X`expr 00001 : '.*\(...\)'`" = X001
; then
20490 if (basename -- /) >/dev
/null
2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
20491 as_basename
=basename
20496 if (as_dir
=`dirname -- /` && test "X$as_dir" = X
/) >/dev
/null
2>&1; then
20502 as_me
=`$as_basename -- "$0" ||
20503 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
20504 X"$0" : 'X\(//\)$' \| \
20505 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
20507 sed '/^.*\/\([^/][^/]*\)\/*$/{
20521 # Avoid depending upon Character Ranges.
20522 as_cr_letters
='abcdefghijklmnopqrstuvwxyz'
20523 as_cr_LETTERS
='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
20524 as_cr_Letters
=$as_cr_letters$as_cr_LETTERS
20525 as_cr_digits
='0123456789'
20526 as_cr_alnum
=$as_cr_Letters$as_cr_digits
20528 ECHO_C
= ECHO_N
= ECHO_T
=
20529 case `echo -n x` in #(((((
20531 case `echo 'xy\c'` in
20532 *c
*) ECHO_T
=' ';; # ECHO_T is single tab character.
20534 *) echo `echo ksh88 bug on AIX 6.1` > /dev
/null
20541 rm -f conf$$ conf$$.exe conf$$.
file
20542 if test -d conf$$.dir
; then
20543 rm -f conf$$.dir
/conf$$.
file
20546 mkdir conf$$.dir
2>/dev
/null
20548 if (echo >conf$$.
file) 2>/dev
/null
; then
20549 if ln -s conf$$.
file conf$$
2>/dev
/null
; then
20551 # ... but there are two gotchas:
20552 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
20553 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
20554 # In both cases, we have to default to `cp -p'.
20555 ln -s conf$$.
file conf$$.dir
2>/dev
/null
&& test ! -f conf$$.exe ||
20557 elif ln conf$$.
file conf$$
2>/dev
/null
; then
20565 rm -f conf$$ conf$$.exe conf$$.dir
/conf$$.
file conf$$.
file
20566 rmdir conf$$.dir
2>/dev
/null
20571 # Create "$as_dir" as a directory, including parents if necessary.
20576 -*) as_dir
=.
/$as_dir;;
20578 test -d "$as_dir" ||
eval $as_mkdir_p ||
{
20582 *\'*) as_qdir
=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
20583 *) as_qdir
=$as_dir;;
20585 as_dirs
="'$as_qdir' $as_dirs"
20586 as_dir
=`$as_dirname -- "$as_dir" ||
20587 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
20588 X"$as_dir" : 'X\(//\)[^/]' \| \
20589 X"$as_dir" : 'X\(//\)$' \| \
20590 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
20591 $as_echo X"$as_dir" |
20592 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
20596 /^X\(\/\/\)[^/].*/{
20609 test -d "$as_dir" && break
20611 test -z "$as_dirs" ||
eval "mkdir $as_dirs"
20612 } ||
test -d "$as_dir" || as_fn_error $?
"cannot create directory $as_dir"
20616 if mkdir
-p .
2>/dev
/null
; then
20617 as_mkdir_p
='mkdir -p "$as_dir"'
20619 test -d .
/-p && rmdir .
/-p
20623 if test -x / >/dev
/null
2>&1; then
20624 as_test_x
='test -x'
20626 if ls -dL / >/dev
/null
2>&1; then
20633 if test -d "$1"; then
20639 case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in #((
20640 ???[sx]*):;;*)false;;esac;fi
20644 as_executable_p
=$as_test_x
20646 # Sed expression to map a string onto a valid CPP name.
20647 as_tr_cpp
="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
20649 # Sed expression to map a string onto a valid variable name.
20650 as_tr_sh
="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
20654 ## ----------------------------------- ##
20655 ## Main body of $CONFIG_STATUS script. ##
20656 ## ----------------------------------- ##
20658 test $as_write_fail = 0 && chmod +x
$CONFIG_STATUS || ac_write_fail
=1
20660 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail
=1
20661 # Save the log message, to keep $0 and so on meaningful, and to
20662 # report actual input values of CONFIG_FILES etc. instead of their
20663 # values after options handling.
20665 This file was extended by emacs $as_me 24.0.50, which was
20666 generated by GNU Autoconf 2.68. Invocation command line was
20668 CONFIG_FILES = $CONFIG_FILES
20669 CONFIG_HEADERS = $CONFIG_HEADERS
20670 CONFIG_LINKS = $CONFIG_LINKS
20671 CONFIG_COMMANDS = $CONFIG_COMMANDS
20674 on `(hostname || uname -n) 2>/dev/null | sed 1q`
20679 case $ac_config_files in *"
20680 "*) set x
$ac_config_files; shift; ac_config_files
=$
*;;
20683 case $ac_config_headers in *"
20684 "*) set x
$ac_config_headers; shift; ac_config_headers
=$
*;;
20688 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
20689 # Files that config.status was made for.
20690 config_files="$ac_config_files"
20691 config_headers="$ac_config_headers"
20692 config_commands="$ac_config_commands"
20696 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail
=1
20698 \`$as_me' instantiates files and other configuration actions
20699 from templates according to the current configuration. Unless the files
20700 and actions are specified as TAGs, all are instantiated by default.
20702 Usage: $0 [OPTION]... [TAG]...
20704 -h, --help print this help, then exit
20705 -V, --version print version number and configuration settings, then exit
20706 --config print configuration, then exit
20707 -q, --quiet, --silent
20708 do not print progress messages
20709 -d, --debug don't remove temporary files
20710 --recheck update $as_me by reconfiguring in the same conditions
20711 --file=FILE[:TEMPLATE]
20712 instantiate the configuration file FILE
20713 --header=FILE[:TEMPLATE]
20714 instantiate the configuration header FILE
20716 Configuration files:
20719 Configuration headers:
20722 Configuration commands:
20725 Report bugs to the package provider."
20728 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
20729 ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`"
20731 emacs config.status 24.0.50
20732 configured by $0, generated by GNU Autoconf 2.68,
20733 with options \\"\$ac_cs_config\\"
20735 Copyright (C) 2010 Free Software Foundation, Inc.
20736 This config.status script is free software; the Free Software Foundation
20737 gives unlimited permission to copy, distribute and modify it."
20744 test -n "\$AWK" || AWK=awk
20747 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail
=1
20748 # The default lists apply if the user does not specify any file.
20754 ac_option
=`expr "X$1" : 'X\([^=]*\)='`
20755 ac_optarg
=`expr "X$1" : 'X[^=]*=\(.*\)'`
20759 ac_option
=`expr "X$1" : 'X\([^=]*\)='`
20771 # Handling of the options.
20772 -recheck |
--recheck |
--rechec |
--reche |
--rech |
--rec |
--re |
--r)
20774 --version |
--versio |
--versi |
--vers |
--ver |
--ve |
--v |
-V )
20775 $as_echo "$ac_cs_version"; exit ;;
20776 --config |
--confi |
--conf |
--con |
--co |
--c )
20777 $as_echo "$ac_cs_config"; exit ;;
20778 --debug |
--debu |
--deb |
--de |
--d |
-d )
20780 --file |
--fil |
--fi |
--f )
20783 *\'*) ac_optarg
=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
20784 '') as_fn_error $?
"missing file argument" ;;
20786 as_fn_append CONFIG_FILES
" '$ac_optarg'"
20787 ac_need_defaults
=false
;;
20788 --header |
--heade |
--head |
--hea )
20791 *\'*) ac_optarg
=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
20793 as_fn_append CONFIG_HEADERS
" '$ac_optarg'"
20794 ac_need_defaults
=false
;;
20796 # Conflict between --help and --header
20797 as_fn_error $?
"ambiguous option: \`$1'
20798 Try \`$0 --help' for more information.";;
20799 --help |
--hel |
-h )
20800 $as_echo "$ac_cs_usage"; exit ;;
20801 -q |
-quiet |
--quiet |
--quie |
--qui |
--qu |
--q \
20802 |
-silent |
--silent |
--silen |
--sile |
--sil |
--si |
--s)
20805 # This is an error.
20806 -*) as_fn_error $?
"unrecognized option: \`$1'
20807 Try \`$0 --help' for more information." ;;
20809 *) as_fn_append ac_config_targets
" $1"
20810 ac_need_defaults
=false
;;
20816 ac_configure_extra_args
=
20818 if $ac_cs_silent; then
20820 ac_configure_extra_args
="$ac_configure_extra_args --silent"
20824 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
20825 if \$ac_cs_recheck; then
20826 set X '$SHELL' '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
20828 \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
20829 CONFIG_SHELL='$SHELL'
20830 export CONFIG_SHELL
20835 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail
=1
20839 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
20840 ## Running $as_me. ##
20846 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
20850 AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"
20851 GCC="$GCC" NON_GNU_CPP="$NON_GNU_CPP" CPP="$CPP" CPPFLAGS="$CPPFLAGS"
20855 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail
=1
20857 # Handling of arguments.
20858 for ac_config_target
in $ac_config_targets
20860 case $ac_config_target in
20861 "src/config.h") CONFIG_HEADERS
="$CONFIG_HEADERS src/config.h:src/config.in" ;;
20862 "depfiles") CONFIG_COMMANDS
="$CONFIG_COMMANDS depfiles" ;;
20863 "Makefile") CONFIG_FILES
="$CONFIG_FILES Makefile" ;;
20864 "lib/Makefile") CONFIG_FILES
="$CONFIG_FILES lib/Makefile" ;;
20865 "lib-src/Makefile") CONFIG_FILES
="$CONFIG_FILES lib-src/Makefile" ;;
20866 "oldXMenu/Makefile") CONFIG_FILES
="$CONFIG_FILES oldXMenu/Makefile" ;;
20867 "doc/emacs/Makefile") CONFIG_FILES
="$CONFIG_FILES doc/emacs/Makefile" ;;
20868 "doc/misc/Makefile") CONFIG_FILES
="$CONFIG_FILES doc/misc/Makefile" ;;
20869 "doc/lispintro/Makefile") CONFIG_FILES
="$CONFIG_FILES doc/lispintro/Makefile" ;;
20870 "doc/lispref/Makefile") CONFIG_FILES
="$CONFIG_FILES doc/lispref/Makefile" ;;
20871 "src/Makefile") CONFIG_FILES
="$CONFIG_FILES src/Makefile" ;;
20872 "lwlib/Makefile") CONFIG_FILES
="$CONFIG_FILES lwlib/Makefile" ;;
20873 "lisp/Makefile") CONFIG_FILES
="$CONFIG_FILES lisp/Makefile" ;;
20874 "leim/Makefile") CONFIG_FILES
="$CONFIG_FILES leim/Makefile" ;;
20875 "test/automated/Makefile") CONFIG_FILES
="$CONFIG_FILES test/automated/Makefile" ;;
20876 "mkdirs") CONFIG_COMMANDS
="$CONFIG_COMMANDS mkdirs" ;;
20877 "epaths") CONFIG_COMMANDS
="$CONFIG_COMMANDS epaths" ;;
20878 "gdbinit") CONFIG_COMMANDS
="$CONFIG_COMMANDS gdbinit" ;;
20880 *) as_fn_error $?
"invalid argument: \`$ac_config_target'" "$LINENO" 5;;
20885 # If the user did not use the arguments to specify the items to instantiate,
20886 # then the envvar interface is used. Set only those that are not.
20887 # We use the long form for the default assignment because of an extremely
20888 # bizarre bug on SunOS 4.1.3.
20889 if $ac_need_defaults; then
20890 test "${CONFIG_FILES+set}" = set || CONFIG_FILES
=$config_files
20891 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS
=$config_headers
20892 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS
=$config_commands
20895 # Have a temporary directory for convenience. Make it in the build tree
20896 # simply because there is no reason against having it here, and in addition,
20897 # creating and moving files from /tmp can sometimes cause problems.
20898 # Hook for its removal unless debugging.
20899 # Note that there is a small window in which the directory will not be cleaned:
20900 # after its creation but before its name has been assigned to `$tmp'.
20904 trap 'exit_status=$?
20905 : "${ac_tmp:=$tmp}"
20906 { test ! -d "$ac_tmp" || rm -fr "$ac_tmp"; } && exit $exit_status
20908 trap 'as_fn_exit 1' 1 2 13 15
20910 # Create a (secure) tmp directory for tmp files.
20913 tmp
=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
20917 tmp
=.
/conf$$
-$RANDOM
20918 (umask 077 && mkdir
"$tmp")
20919 } || as_fn_error $?
"cannot create a temporary directory in ." "$LINENO" 5
20922 # Set up the scripts for CONFIG_FILES section.
20923 # No need to generate them if there are no CONFIG_FILES.
20924 # This happens for instance with `./config.status config.h'.
20925 if test -n "$CONFIG_FILES"; then
20927 if $AWK 'BEGIN { getline <"/dev/null" }' </dev
/null
2>/dev
/null
; then
20928 ac_cs_awk_getline
=:
20929 ac_cs_awk_pipe_init
=
20930 ac_cs_awk_read_file
='
20931 while ((getline aline < (F[key])) > 0)
20934 ac_cs_awk_pipe_fini
=
20936 ac_cs_awk_getline
=false
20937 ac_cs_awk_pipe_init
="print \"cat <<'|#_!!_#|' &&\""
20938 ac_cs_awk_read_file
='
20940 print "cat " F[key] " &&"
20941 '$ac_cs_awk_pipe_init
20942 # The final `:' finishes the AND list.
20943 ac_cs_awk_pipe_fini
='END { print "|#_!!_#|"; print ":" }'
20945 ac_cr
=`echo X | tr X '\015'`
20946 # On cygwin, bash can eat \r inside `` if the user requested igncr.
20947 # But we know of no other shell where ac_cr would be empty at this
20948 # point, so we can use a bashism as a fallback.
20949 if test "x$ac_cr" = x
; then
20950 eval ac_cr
=\$
\'\\r
\'
20952 ac_cs_awk_cr
=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
20953 if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
20956 ac_cs_awk_cr
=$ac_cr
20959 echo 'BEGIN {' >"$ac_tmp/subs1.awk" &&
20962 # Create commands to substitute file output variables.
20964 echo "cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1" &&
20965 echo 'cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK &&' &&
20966 echo "$ac_subst_files" |
sed 's/.*/F["&"]="$&"/' &&
20969 } >conf$
$files.sh
&&
20970 . .
/conf$
$files.sh ||
20971 as_fn_error $?
"could not make $CONFIG_STATUS" "$LINENO" 5
20972 rm -f conf$
$files.sh
20975 echo "cat >conf$$subs.awk <<_ACEOF" &&
20976 echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
20978 } >conf$$subs.sh ||
20979 as_fn_error $? "could not
make $CONFIG_STATUS" "$LINENO" 5
20980 ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'`
20982 for ac_last_try in false false false false false :; do
20983 . ./conf$$subs.sh ||
20984 as_fn_error $? "could not
make $CONFIG_STATUS" "$LINENO" 5
20986 ac_delim_n=`sed -n "s
/.
*$ac_delim\$
/X
/p
" conf$$subs.awk | grep -c X`
20987 if test $ac_delim_n = $ac_delim_num; then
20989 elif $ac_last_try; then
20990 as_fn_error $? "could not
make $CONFIG_STATUS" "$LINENO" 5
20992 ac_delim="$ac_delim!$ac_delim _
$ac_delim!! "
20995 rm -f conf$$subs.sh
20997 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
20998 cat >>"\
$ac_tmp/subs1.
awk" <<\\_ACAWK &&
21002 s/^/S["/; s
/!.
*/"]=/
21012 s/\(.\{148\}\)..*/\1/
21014 s/["\\]/\\&/g
; s
/^
/"/; s/$/\\n"\\/
21019 s
/["\\]/\\&/g; s/^/"/; s
/$
/"\\/
21026 s/\(.\{148\}\)..*/\1/
21028 s/["\\]/\\&/g
; s
/^
/"/; s/$/"/
21032 s
/["\\]/\\&/g; s/^/"/; s
/$
/"\\/
21037 ' <conf$$subs.awk | sed '
21042 ' >>$CONFIG_STATUS || ac_write_fail=1
21043 rm -f conf$$subs.awk
21044 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
21046 cat >>"\
$ac_tmp/subs1.
awk" <<_ACAWK &&
21047 for (key in S) S_is_set[key] = 1
21049 \$ac_cs_awk_pipe_init
21053 nfields = split(line, field, "@
")
21055 len = length(field[1])
21056 for (i = 2; i < nfields; i++) {
21058 keylen = length(key)
21059 if (S_is_set[key]) {
21061 line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
21062 len += length(value) + length(field[++i])
21067 if (nfields == 3 && !substed) {
21069 if (F[key] != "" && line ~ /^[ ]*@.*@[ ]*$/) {
21070 \$ac_cs_awk_read_file
21076 \$ac_cs_awk_pipe_fini
21079 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
21080 if sed "s
/$ac_cr//" < /dev/null > /dev/null 2>&1; then
21081 sed "s
/$ac_cr\$
//; s
/$ac_cr/$ac_cs_awk_cr/g
"
21084 fi < "$ac_tmp/subs1.
awk" > "$ac_tmp/subs.
awk" \
21085 || as_fn_error $? "could not setup config files machinery
" "$LINENO" 5
21088 # VPATH may cause trouble with some makes, so we remove sole $(srcdir),
21089 # ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".
", strip leading and
21090 # trailing colons and then remove the whole line if VPATH becomes empty
21091 # (actually we leave an empty line to preserve line numbers).
21092 if test "x
$srcdir" = x.; then
21093 ac_vpsub='/^[ ]*VPATH[ ]*=[ ]*/{
21111 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
21112 fi # test -n "$CONFIG_FILES"
21114 # Set up the scripts for CONFIG_HEADERS section.
21115 # No need to generate them if there are no CONFIG_HEADERS.
21116 # This happens for instance with `./config.status Makefile'.
21117 if test -n "$CONFIG_HEADERS"; then
21118 cat >"$ac_tmp/defines.
awk" <<\_ACAWK ||
21122 # Transform confdefs.h into an awk script `defines.awk', embedded as
21123 # here-document in config.status, that substitutes the proper values into
21124 # config.h.in to produce config.h.
21126 # Create a delimiter string that does not exist in confdefs.h, to ease
21127 # handling of long lines.
21129 for ac_last_try in false false :; do
21130 ac_tt=`sed -n "/$ac_delim/p
" confdefs.h`
21131 if test -z "$ac_tt"; then
21133 elif $ac_last_try; then
21134 as_fn_error $? "could not
make $CONFIG_HEADERS" "$LINENO" 5
21136 ac_delim="$ac_delim!$ac_delim _
$ac_delim!! "
21140 # For the awk script, D is an array of macro values keyed by name,
21141 # likewise P contains macro parameters if any. Preserve backslash
21142 # newline sequences.
21144 ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
21146 s/.\{148\}/&'"$ac_delim"'/g
21149 s/^[ ]*#[ ]*define[ ][ ]*/ /
21156 s
/^ \
('"$ac_word_re"'\
)\
(([^
()]*)\
)[ ]*\
(.
*\
)/P
["\1"]="\2"\
21158 s
/^ \
('"$ac_word_re"'\
)[ ]*\
(.
*\
)/D
["\1"]=" \2"/p
21162 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\
1"]="\
2"\
21163 D["\
1"]=" \
3\\\\\\n
"\\/p
21165 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\
1"]=" \
2\\\\\\n
"\\/p
21170 s/.\{148\}/&'"$ac_delim"'/g
21175 s/["\\]/\\&/g
; s
/^
/"/; s/$/"/p
21178 s
/["\\]/\\&/g; s/^/"/; s
/$
/\\\\\\n
"\\/p
21180 ' <confdefs.h | sed '
21181 s/'"$ac_delim"'/"\\\
21182 "/g' >>$CONFIG_STATUS || ac_write_fail=1
21184 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
21185 for (key in D) D_is_set[key] = 1
21188 /^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
21190 split(line, arg, " ")
21191 if (arg[1] == "#") {
21195 defundef
= substr
(arg
[1], 2)
21198 split(mac1
, mac2
, "(") #)
21200 prefix
= substr
(line
, 1, index
(line
, defundef
) - 1)
21201 if (D_is_set
[macro
]) {
21202 # Preserve the white space surrounding the "#".
21203 print prefix
"define", macro P
[macro
] D
[macro
]
21206 # Replace #undef with comments. This is necessary, for example,
21207 # in the case of _POSIX_SOURCE, which is predefined and required
21208 # on some systems where configure will not decide to define it.
21209 if (defundef
== "undef") {
21210 print
"/*", prefix defundef
, macro
, "*/"
21218 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail
=1
21219 as_fn_error $?
"could not setup config headers machinery" "$LINENO" 5
21220 fi # test -n "$CONFIG_HEADERS"
21223 eval set X
" :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS"
21228 :[FHLC
]) ac_mode
=$ac_tag; continue;;
21230 case $ac_mode$ac_tag in
21232 :L
* |
:C
*:*) as_fn_error $?
"invalid tag \`$ac_tag'" "$LINENO" 5;;
21233 :[FH
]-) ac_tag
=-:-;;
21234 :[FH
]*) ac_tag
=$ac_tag:$ac_tag.
in;;
21251 -) ac_f
="$ac_tmp/stdin";;
21252 *) # Look for the file first in the build tree, then in the source tree
21253 # (if the path is not absolute). The absolute path cannot be DOS-style,
21254 # because $ac_f cannot contain `:'.
21258 *) test -f "$srcdir/$ac_f" && ac_f
="$srcdir/$ac_f";;
21260 as_fn_error
1 "cannot find input file: \`$ac_f'" "$LINENO" 5;;
21262 case $ac_f in *\'*) ac_f
=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
21263 as_fn_append ac_file_inputs
" '$ac_f'"
21266 # Let's still pretend it is `configure' which instantiates (i.e., don't
21267 # use $as_me), people would be surprised to read:
21268 # /* config.h. Generated by config.status. */
21269 configure_input
='Generated from '`
21270 $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
21272 if test x
"$ac_file" != x-
; then
21273 configure_input
="$ac_file. $configure_input"
21274 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
21275 $as_echo "$as_me: creating $ac_file" >&6;}
21277 # Neutralize special characters interpreted by sed in replacement strings.
21278 case $configure_input in #(
21279 *\
&* |
*\|
* |
*\\* )
21280 ac_sed_conf_input
=`$as_echo "$configure_input" |
21281 sed 's/[\\\\&|]/\\\\&/g'`;; #(
21282 *) ac_sed_conf_input
=$configure_input;;
21286 *:-:* |
*:-) cat >"$ac_tmp/stdin" \
21287 || as_fn_error $?
"could not create $ac_file" "$LINENO" 5 ;;
21292 ac_dir
=`$as_dirname -- "$ac_file" ||
21293 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
21294 X"$ac_file" : 'X\(//\)[^/]' \| \
21295 X"$ac_file" : 'X\(//\)$' \| \
21296 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
21297 $as_echo X"$ac_file" |
21298 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
21302 /^X\(\/\/\)[^/].*/{
21315 as_dir
="$ac_dir"; as_fn_mkdir_p
21319 .
) ac_dir_suffix
= ac_top_builddir_sub
=. ac_top_build_prefix
= ;;
21321 ac_dir_suffix
=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
21322 # A ".." for each directory in $ac_dir_suffix.
21323 ac_top_builddir_sub
=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
21324 case $ac_top_builddir_sub in
21325 "") ac_top_builddir_sub
=. ac_top_build_prefix
= ;;
21326 *) ac_top_build_prefix
=$ac_top_builddir_sub/ ;;
21329 ac_abs_top_builddir
=$ac_pwd
21330 ac_abs_builddir
=$ac_pwd$ac_dir_suffix
21331 # for backward compatibility:
21332 ac_top_builddir
=$ac_top_build_prefix
21335 .
) # We are building in place.
21337 ac_top_srcdir
=$ac_top_builddir_sub
21338 ac_abs_top_srcdir
=$ac_pwd ;;
21339 [\\/]* | ?
:[\\/]* ) # Absolute name.
21340 ac_srcdir
=$srcdir$ac_dir_suffix;
21341 ac_top_srcdir
=$srcdir
21342 ac_abs_top_srcdir
=$srcdir ;;
21343 *) # Relative name.
21344 ac_srcdir
=$ac_top_build_prefix$srcdir$ac_dir_suffix
21345 ac_top_srcdir
=$ac_top_build_prefix$srcdir
21346 ac_abs_top_srcdir
=$ac_pwd/$srcdir ;;
21348 ac_abs_srcdir
=$ac_abs_top_srcdir$ac_dir_suffix
21358 [\\/$
]* | ?
:[\\/]* ) ac_INSTALL
=$INSTALL ;;
21359 *) ac_INSTALL
=$ac_top_build_prefix$INSTALL ;;
21361 ac_MKDIR_P
=$MKDIR_P
21363 [\\/$
]* | ?
:[\\/]* ) ;;
21364 */*) ac_MKDIR_P
=$ac_top_build_prefix$MKDIR_P ;;
21368 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail
=1
21369 # If the template does not know about datarootdir, expand it.
21370 # FIXME: This hack should be removed a few years after 2.60.
21371 ac_datarootdir_hack
=; ac_datarootdir_seen
=
21382 case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
21383 *datarootdir
*) ac_datarootdir_seen
=yes;;
21384 *@datadir@
*|
*@docdir@
*|
*@infodir@
*|
*@localedir@
*|
*@mandir@
*)
21385 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
21386 $as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
21388 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
21389 ac_datarootdir_hack='
21390 s&@datadir@&$datadir&g
21391 s&@docdir@&$docdir&g
21392 s&@infodir@&$infodir&g
21393 s&@localedir@&$localedir&g
21394 s&@mandir@&$mandir&g
21395 s&\\\${datarootdir}&$datarootdir&g' ;;
21399 # Neutralize VPATH when `$srcdir' = `.'.
21400 # Shell code in configure.ac might set extrasub.
21401 # FIXME: do we really want to maintain this feature?
21402 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
21403 ac_sed_extra="$ac_vpsub
21406 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail
=1
21408 /@
[a-zA-Z_
][a-zA-Z_0-9
]*@
/!b
21409 s|@configure_input@|
$ac_sed_conf_input|
;t t
21410 s
&@top_builddir@
&$ac_top_builddir_sub&;t t
21411 s
&@top_build_prefix@
&$ac_top_build_prefix&;t t
21412 s
&@srcdir@
&$ac_srcdir&;t t
21413 s
&@abs_srcdir@
&$ac_abs_srcdir&;t t
21414 s
&@top_srcdir@
&$ac_top_srcdir&;t t
21415 s
&@abs_top_srcdir@
&$ac_abs_top_srcdir&;t t
21416 s
&@builddir@
&$ac_builddir&;t t
21417 s
&@abs_builddir@
&$ac_abs_builddir&;t t
21418 s
&@abs_top_builddir@
&$ac_abs_top_builddir&;t t
21419 s
&@INSTALL@
&$ac_INSTALL&;t t
21420 s
&@MKDIR_P@
&$ac_MKDIR_P&;t t
21421 $ac_datarootdir_hack
21423 eval sed \"\$ac_sed_extra\" "$ac_file_inputs" |
21424 if $ac_cs_awk_getline; then
21425 $AWK -f "$ac_tmp/subs.
awk"
21427 $AWK -f "$ac_tmp/subs.
awk" | $SHELL
21429 >$ac_tmp/out || as_fn_error $? "could not create
$ac_file" "$LINENO" 5
21431 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
21432 { ac_out=`sed -n '/\${datarootdir}/p' "$ac_tmp/out
"`; test -n "$ac_out"; } &&
21433 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' \
21434 "$ac_tmp/out
"`; test -z "$ac_out"; } &&
21435 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING
: $ac_file contains a reference to the variable \
`datarootdir'
21436 which seems to be undefined. Please make sure it is defined" >&5
21437 $as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir
'
21438 which seems to be undefined. Please make sure it is defined" >&2;}
21440 rm -f "$ac_tmp/stdin"
21442 -) cat "$ac_tmp/out" && rm -f "$ac_tmp/out";;
21443 *) rm -f "$ac_file" && mv "$ac_tmp/out" "$ac_file";;
21445 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
21451 if test x"$ac_file" != x-; then
21453 $as_echo "/* $configure_input */" \
21454 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs"
21455 } >"$ac_tmp/config.h" \
21456 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
21457 if diff "$ac_file" "$ac_tmp/config.h" >/dev/null 2>&1; then
21458 { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5
21459 $as_echo "$as_me: $ac_file is unchanged" >&6;}
21462 mv "$ac_tmp/config.h" "$ac_file" \
21463 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
21466 $as_echo "/* $configure_input */" \
21467 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" \
21468 || as_fn_error $? "could not create -" "$LINENO" 5
21470 # Compute "$ac_file"'s index
in $config_headers.
21473 for _am_header
in $config_headers :; do
21474 case $_am_header in
21475 $_am_arg |
$_am_arg:* )
21478 _am_stamp_count
=`expr $_am_stamp_count + 1` ;;
21481 echo "timestamp for $_am_arg" >`$as_dirname -- "$_am_arg" ||
21482 $as_expr X"$_am_arg" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
21483 X"$_am_arg" : 'X\(//\)[^/]' \| \
21484 X"$_am_arg" : 'X\(//\)$' \| \
21485 X"$_am_arg" : 'X\(/\)' \| . 2>/dev/null ||
21486 $as_echo X"$_am_arg" |
21487 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
21491 /^X\(\/\/\)[^/].*/{
21503 s/.*/./; q'`/stamp-h
$_am_stamp_count
21506 :C
) { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5
21507 $as_echo "$as_me: executing $ac_file commands" >&6;}
21512 case $ac_file$ac_mode in
21513 "depfiles":C
) test x
"$AMDEP_TRUE" != x
"" ||
{
21514 # Autoconf 2.62 quotes --file arguments for eval, but not when files
21515 # are listed without --file. Let's play safe and only enable the eval
21516 # if we detect the quoting.
21517 case $CONFIG_FILES in
21518 *\'*) eval set x
"$CONFIG_FILES" ;;
21519 *) set x
$CONFIG_FILES ;;
21524 # Strip MF so we end up with the name of the file.
21525 mf
=`echo "$mf" | sed -e 's/:.*$//'`
21526 # Check whether this is an Automake generated Makefile or not.
21527 # We used to match only the files named `Makefile.in', but
21528 # some people rename them; so instead we look at the file content.
21529 # Grep'ing the first line is not enough: some people post-process
21530 # each Makefile.in and add a new line on top of each file to say so.
21531 # Grep'ing the whole file is not good either: AIX grep has a line
21532 # limit of 2048, but all sed's we know have understand at least 4000.
21533 if sed -n 's,^#.*generated by automake.*,X,p' "$mf" |
grep X
>/dev
/null
2>&1; then
21534 dirpart
=`$as_dirname -- "$mf" ||
21535 $as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
21536 X"$mf" : 'X\(//\)[^/]' \| \
21537 X"$mf" : 'X\(//\)$' \| \
21538 X"$mf" : 'X\(/\)' \| . 2>/dev/null ||
21540 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
21544 /^X\(\/\/\)[^/].*/{
21560 # Extract the definition of DEPDIR, am__include, and am__quote
21561 # from the Makefile without running `make'.
21562 DEPDIR
=`sed -n 's/^DEPDIR = //p' < "$mf"`
21563 test -z "$DEPDIR" && continue
21564 am__include
=`sed -n 's/^am__include = //p' < "$mf"`
21565 test -z "am__include" && continue
21566 am__quote
=`sed -n 's/^am__quote = //p' < "$mf"`
21567 # When using ansi2knr, U may be empty or an underscore; expand it
21568 U
=`sed -n 's/^U = //p' < "$mf"`
21569 # Find all dependency output files, they are included files with
21570 # $(DEPDIR) in their names. We invoke sed twice because it is the
21571 # simplest approach to changing $(DEPDIR) to its actual value in the
21573 for file in `sed -n "
21574 s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \
21575 sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g' -e 's/\$U/'"$U"'/g'`; do
21576 # Make sure the directory exists.
21577 test -f "$dirpart/$file" && continue
21578 fdir
=`$as_dirname -- "$file" ||
21579 $as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
21580 X"$file" : 'X\(//\)[^/]' \| \
21581 X"$file" : 'X\(//\)$' \| \
21582 X"$file" : 'X\(/\)' \| . 2>/dev/null ||
21583 $as_echo X"$file" |
21584 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
21588 /^X\(\/\/\)[^/].*/{
21601 as_dir
=$dirpart/$fdir; as_fn_mkdir_p
21602 # echo "creating $dirpart/$file"
21603 echo '# dummy' > "$dirpart/$file"
21609 for dir
in etc lisp
; do
21610 test -d ${dir} || mkdir
${dir}
21614 echo creating src
/epaths.h
21615 ${MAKE-make} epaths-force
21618 if test ! -f src
/.gdbinit
&& test -f $srcdir/src
/.gdbinit
; then
21619 echo creating src
/.gdbinit
21620 echo source $srcdir/src
/.gdbinit
> src
/.gdbinit
21630 ac_clean_files
=$ac_clean_files_save
21632 test $ac_write_fail = 0 ||
21633 as_fn_error $?
"write failure creating $CONFIG_STATUS" "$LINENO" 5
21636 # configure is writing to config.log, and then calls config.status.
21637 # config.status does its own redirection, appending to config.log.
21638 # Unfortunately, on DOS this fails, as config.log is still kept open
21639 # by configure, so config.status won't be able to write to it; its
21640 # output is simply discarded. So we exec the FD to /dev/null,
21641 # effectively closing config.log, so it can be properly (re)opened and
21642 # appended to by config.status. When coming back to configure, we
21643 # need to make the FD available again.
21644 if test "$no_create" != yes; then
21646 ac_config_status_args
=
21647 test "$silent" = yes &&
21648 ac_config_status_args
="$ac_config_status_args --quiet"
21650 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success
=false
21652 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
21653 # would make configure fail if this is the last instruction.
21654 $ac_cs_success || as_fn_exit
1
21656 if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no
; then
21657 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
21658 $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}