2 # Guess values for system-dependent variables and create Makefiles.
3 # Generated by GNU Autoconf 2.65 for emacs 24.0.50.
6 # Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
7 # 2002, 2003, 2004, 2005, 2006, 2007, 2008, 2009 Free Software Foundation,
11 # This configure script is free software; the Free Software Foundation
12 # gives unlimited permission to copy, distribute and modify it.
13 ## -------------------- ##
14 ## M4sh Initialization. ##
15 ## -------------------- ##
17 # Be more Bourne compatible
18 DUALCASE
=1; export DUALCASE
# for MKS sh
19 if test -n "${ZSH_VERSION+set}" && (emulate sh
) >/dev
/null
2>&1; then :
22 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
23 # is contrary to our usage. Disable this feature.
24 alias -g '${1+"$@"}'='"$@"'
27 case `(set -o) 2>/dev/null` in #(
39 # Printing a long string crashes Solaris 7 /usr/bin/printf.
40 as_echo
='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
41 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
42 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
43 # Prefer a ksh shell builtin over an external printf program on Solaris,
44 # but without wasting forks for bash or zsh.
45 if test -z "$BASH_VERSION$ZSH_VERSION" \
46 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
48 as_echo_n='print
-rn --'
49 elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
53 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
54 as_echo_body='eval /usr
/ucb
/echo -n "$1$as_nl"'
55 as_echo_n='/usr
/ucb
/echo -n'
57 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
62 expr "X$arg" : "X\\(.*\\)$as_nl";
63 arg
=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
65 expr "X$arg" : "X\\(.*\\)" |
tr -d "$as_nl"
68 as_echo_n='sh
-c $as_echo_n_body as_echo
'
71 as_echo='sh
-c $as_echo_body as_echo
'
74 # The user is always right.
75 if test "${PATH_SEPARATOR+set}" != set; then
77 (PATH='/bin
;/bin
'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
78 (PATH='/bin
:/bin
'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
85 # We need space, tab and new line, in precisely that order. Quoting is
86 # there to prevent editors from complaining about space-tab.
87 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
88 # splitting by setting IFS to empty value.)
91 # Find who we are. Look in the path if we contain no directory separator.
93 *[\\/]* ) as_myself=$0 ;;
94 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
98 test -z "$as_dir" && as_dir=.
99 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
105 # We did not find ourselves, most probably we were run as `sh COMMAND'
106 # in which case we are not to be found in the path.
107 if test "x$as_myself" = x
; then
110 if test ! -f "$as_myself"; then
111 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
115 # Unset variables that we do not need and which cause bugs (e.g. in
116 # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
117 # suppresses any "Segmentation fault" message there. '((' could
118 # trigger a bug in pdksh 5.2.14.
119 for as_var
in BASH_ENV ENV MAIL MAILPATH
120 do eval test x\
${$as_var+set} = xset \
121 && ( (unset $as_var) ||
exit 1) >/dev
/null
2>&1 && unset $as_var ||
:
134 (unset CDPATH
) >/dev
/null
2>&1 && unset CDPATH
136 if test "x$CONFIG_SHELL" = x
; then
137 as_bourne_compatible
="if test -n \"\${ZSH_VERSION+set}\" && (emulate sh) >/dev/null 2>&1; then :
140 # Pre-4.2 versions of Zsh do word splitting on \${1+\"\$@\"}, which
141 # is contrary to our usage. Disable this feature.
142 alias -g '\${1+\"\$@\"}'='\"\$@\"'
145 case \`(set -o) 2>/dev/null\` in #(
153 as_required
="as_fn_return () { (exit \$1); }
154 as_fn_success () { as_fn_return 0; }
155 as_fn_failure () { as_fn_return 1; }
156 as_fn_ret_success () { return 0; }
157 as_fn_ret_failure () { return 1; }
160 as_fn_success || { exitcode=1; echo as_fn_success failed.; }
161 as_fn_failure && { exitcode=1; echo as_fn_failure succeeded.; }
162 as_fn_ret_success || { exitcode=1; echo as_fn_ret_success failed.; }
163 as_fn_ret_failure && { exitcode=1; echo as_fn_ret_failure succeeded.; }
164 if ( set x; as_fn_ret_success y && test x = \"\$1\" ); then :
167 exitcode=1; echo positional parameters were not saved.
169 test x\$exitcode = x0 || exit 1"
170 as_suggested
=" as_lineno_1=";as_suggested
=$as_suggested$LINENO;as_suggested
=$as_suggested" as_lineno_1a=\$LINENO
171 as_lineno_2=";as_suggested
=$as_suggested$LINENO;as_suggested
=$as_suggested" as_lineno_2a=\$LINENO
172 eval 'test \"x\$as_lineno_1'\$as_run'\" != \"x\$as_lineno_2'\$as_run'\" &&
173 test \"x\`expr \$as_lineno_1'\$as_run' + 1\`\" = \"x\$as_lineno_2'\$as_run'\"' || exit 1
174 test \$(( 1 + 1 )) = 2 || exit 1"
175 if (eval "$as_required") 2>/dev
/null
; then :
180 if test x
$as_have_required = xyes
&& (eval "$as_suggested") 2>/dev
/null
; then :
183 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
185 for as_dir
in /bin
$PATH_SEPARATOR/usr
/bin
$PATH_SEPARATOR$PATH
188 test -z "$as_dir" && as_dir
=.
192 for as_base
in sh bash ksh sh5
; do
193 # Try only shells that exist, to save several forks.
194 as_shell
=$as_dir/$as_base
195 if { test -f "$as_shell" ||
test -f "$as_shell.exe"; } &&
196 { $as_echo "$as_bourne_compatible""$as_required" | as_run
=a
"$as_shell"; } 2>/dev
/null
; then :
197 CONFIG_SHELL
=$as_shell as_have_required
=yes
198 if { $as_echo "$as_bourne_compatible""$as_suggested" | as_run
=a
"$as_shell"; } 2>/dev
/null
; then :
206 $as_found ||
{ if { test -f "$SHELL" ||
test -f "$SHELL.exe"; } &&
207 { $as_echo "$as_bourne_compatible""$as_required" | as_run
=a
"$SHELL"; } 2>/dev
/null
; then :
208 CONFIG_SHELL
=$SHELL as_have_required
=yes
213 if test "x$CONFIG_SHELL" != x
; then :
214 # We cannot yet assume a decent shell, so we have to provide a
215 # neutralization value for shells without unset; and this also
216 # works around shells that cannot unset nonexistent variables.
219 (unset BASH_ENV
) >/dev
/null
2>&1 && unset BASH_ENV ENV
221 exec "$CONFIG_SHELL" "$as_myself" ${1+"$@"}
224 if test x
$as_have_required = xno
; then :
225 $as_echo "$0: This script requires a shell more modern than all"
226 $as_echo "$0: the shells that I found on your system."
227 if test x
${ZSH_VERSION+set} = xset
; then
228 $as_echo "$0: In particular, zsh $ZSH_VERSION has bugs and should"
229 $as_echo "$0: be upgraded to zsh 4.3.4 or later."
231 $as_echo "$0: Please tell bug-autoconf@gnu.org about your system,
232 $0: including any error possibly output before this
233 $0: message. Then install a modern shell, or manually run
234 $0: the script under such a shell if you do have one."
240 SHELL
=${CONFIG_SHELL-/bin/sh}
242 # Unset more variables known to interfere with behavior of common tools.
243 CLICOLOR_FORCE
= GREP_OPTIONS
=
244 unset CLICOLOR_FORCE GREP_OPTIONS
246 ## --------------------- ##
247 ## M4sh Shell Functions. ##
248 ## --------------------- ##
251 # Portably unset VAR.
254 { eval $1=; unset $1;}
258 # as_fn_set_status STATUS
259 # -----------------------
260 # Set $? to STATUS, without forking.
268 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
278 # Create "$as_dir" as a directory, including parents if necessary.
283 -*) as_dir
=.
/$as_dir;;
285 test -d "$as_dir" ||
eval $as_mkdir_p ||
{
289 *\'*) as_qdir
=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
292 as_dirs
="'$as_qdir' $as_dirs"
293 as_dir
=`$as_dirname -- "$as_dir" ||
294 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
295 X"$as_dir" : 'X\(//\)[^/]' \| \
296 X"$as_dir" : 'X\(//\)$' \| \
297 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
298 $as_echo X"$as_dir" |
299 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
316 test -d "$as_dir" && break
318 test -z "$as_dirs" ||
eval "mkdir $as_dirs"
319 } ||
test -d "$as_dir" || as_fn_error
"cannot create directory $as_dir"
323 # as_fn_append VAR VALUE
324 # ----------------------
325 # Append the text in VALUE to the end of the definition contained in VAR. Take
326 # advantage of any shell optimizations that allow amortized linear growth over
327 # repeated appends, instead of the typical quadratic growth present in naive
329 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev
/null
; then :
330 eval 'as_fn_append ()
343 # Perform arithmetic evaluation on the ARGs, and store the result in the
344 # global $as_val. Take advantage of shells that can avoid forks. The arguments
345 # must be portable across $(()) and expr.
346 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev
/null
; then :
354 as_val
=`expr "$@" || test $? -eq 1`
359 # as_fn_error ERROR [LINENO LOG_FD]
360 # ---------------------------------
361 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
362 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
363 # script with status $?, using 1 if that was 0.
366 as_status
=$?
; test $as_status -eq 0 && as_status
=1
368 as_lineno
=${as_lineno-"$2"} as_lineno_stack
=as_lineno_stack
=$as_lineno_stack
369 $as_echo "$as_me:${as_lineno-$LINENO}: error: $1" >&$3
371 $as_echo "$as_me: error: $1" >&2
372 as_fn_exit
$as_status
375 if expr a
: '\(a\)' >/dev
/null
2>&1 &&
376 test "X`expr 00001 : '.*\(...\)'`" = X001
; then
382 if (basename -- /) >/dev
/null
2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
388 if (as_dir
=`dirname -- /` && test "X$as_dir" = X
/) >/dev
/null
2>&1; then
394 as_me
=`$as_basename -- "$0" ||
395 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
396 X"$0" : 'X\(//\)$' \| \
397 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
399 sed '/^.*\/\([^/][^/]*\)\/*$/{
413 # Avoid depending upon Character Ranges.
414 as_cr_letters
='abcdefghijklmnopqrstuvwxyz'
415 as_cr_LETTERS
='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
416 as_cr_Letters
=$as_cr_letters$as_cr_LETTERS
417 as_cr_digits
='0123456789'
418 as_cr_alnum
=$as_cr_Letters$as_cr_digits
421 as_lineno_1
=$LINENO as_lineno_1a
=$LINENO
422 as_lineno_2
=$LINENO as_lineno_2a
=$LINENO
423 eval 'test "x$as_lineno_1'$as_run'" != "x$as_lineno_2'$as_run'" &&
424 test "x`expr $as_lineno_1'$as_run' + 1`" = "x$as_lineno_2'$as_run'"' ||
{
425 # Blame Lee E. McMahon (1931-1989) for sed's syntax. :-)
437 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
441 chmod +x
"$as_me.lineno" ||
442 { $as_echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2; as_fn_exit
1; }
444 # Don't try to exec as it changes $[0], causing all sort of problems
445 # (the dirname of $[0] is not the place where we might find the
446 # original and so on. Autoconf is especially sensitive to this).
448 # Exit status is that of the last command.
452 ECHO_C
= ECHO_N
= ECHO_T
=
453 case `echo -n x` in #(((((
455 case `echo 'xy\c'` in
456 *c
*) ECHO_T
=' ';; # ECHO_T is single tab character.
458 *) echo `echo ksh88 bug on AIX 6.1` > /dev
/null
465 rm -f conf$$ conf$$.exe conf$$.
file
466 if test -d conf$$.dir
; then
467 rm -f conf$$.dir
/conf$$.
file
470 mkdir conf$$.dir
2>/dev
/null
472 if (echo >conf$$.
file) 2>/dev
/null
; then
473 if ln -s conf$$.
file conf$$
2>/dev
/null
; then
475 # ... but there are two gotchas:
476 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
477 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
478 # In both cases, we have to default to `cp -p'.
479 ln -s conf$$.
file conf$$.dir
2>/dev
/null
&& test ! -f conf$$.exe ||
481 elif ln conf$$.
file conf$$
2>/dev
/null
; then
489 rm -f conf$$ conf$$.exe conf$$.dir
/conf$$.
file conf$$.
file
490 rmdir conf$$.dir
2>/dev
/null
492 if mkdir
-p .
2>/dev
/null
; then
493 as_mkdir_p
='mkdir -p "$as_dir"'
495 test -d .
/-p && rmdir .
/-p
499 if test -x / >/dev
/null
2>&1; then
502 if ls -dL / >/dev
/null
2>&1; then
509 if test -d "$1"; then
515 case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in #((
516 ???[sx]*):;;*)false;;esac;fi
520 as_executable_p
=$as_test_x
522 # Sed expression to map a string onto a valid CPP name.
523 as_tr_cpp
="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
525 # Sed expression to map a string onto a valid variable name.
526 as_tr_sh
="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
529 test -n "$DJDIR" ||
exec 7<&0 </dev
/null
533 # hostname on some systems (SVR3.2, Linux) returns a bogus exit status,
534 # so uname gets run too.
535 ac_hostname
=`(hostname || uname -n) 2>/dev/null | sed 1q`
540 ac_default_prefix
=/usr
/local
542 ac_config_libobj_dir
=.
549 # Identity of this package.
551 PACKAGE_TARNAME
='emacs'
552 PACKAGE_VERSION
='24.0.50'
553 PACKAGE_STRING
='emacs 24.0.50'
557 ac_unique_file
="src/lisp.h"
558 # Factoring default headers for most tests.
559 ac_includes_default
="\
561 #ifdef HAVE_SYS_TYPES_H
562 # include <sys/types.h>
564 #ifdef HAVE_SYS_STAT_H
565 # include <sys/stat.h>
571 # ifdef HAVE_STDLIB_H
576 # if !defined STDC_HEADERS && defined HAVE_MEMORY_H
581 #ifdef HAVE_STRINGS_H
582 # include <strings.h>
584 #ifdef HAVE_INTTYPES_H
585 # include <inttypes.h>
596 gl_getopt_required
=POSIX
597 gl_getopt_required
=POSIX
598 ac_subst_vars
='gltests_LTLIBOBJS
609 LD_SWITCH_SYSTEM_TEMACS
642 x_default_search_path
662 gl_GNULIB_ENABLED_verify_FALSE
663 gl_GNULIB_ENABLED_verify_TRUE
664 gl_GNULIB_ENABLED_strtoull_FALSE
665 gl_GNULIB_ENABLED_strtoull_TRUE
666 gl_GNULIB_ENABLED_stat_FALSE
667 gl_GNULIB_ENABLED_stat_TRUE
668 gl_GNULIB_ENABLED_be453cec5eecf5731a274f2de7f2db36_FALSE
669 gl_GNULIB_ENABLED_be453cec5eecf5731a274f2de7f2db36_TRUE
670 gl_GNULIB_ENABLED_dosname_FALSE
671 gl_GNULIB_ENABLED_dosname_TRUE
675 NEXT_AS_FIRST_DIRECTIVE_UNISTD_H
677 PTHREAD_H_DEFINES_STRUCT_TIMESPEC
678 SYS_TIME_H_DEFINES_STRUCT_TIMESPEC
679 TIME_H_DEFINES_STRUCT_TIMESPEC
680 NEXT_AS_FIRST_DIRECTIVE_TIME_H
682 NEXT_AS_FIRST_DIRECTIVE_SYS_STAT_H
684 NEXT_AS_FIRST_DIRECTIVE_STDLIB_H
686 NEXT_AS_FIRST_DIRECTIVE_STDIO_H
695 REPLACE_STDIO_WRITE_FUNCS
696 REPLACE_STDIO_READ_FUNCS
705 REPLACE_OBSTACK_PRINTF
727 HAVE_DECL_OBSTACK_PRINTF
733 GNULIB_VSPRINTF_POSIX
737 GNULIB_VFPRINTF_POSIX
744 GNULIB_STDIO_H_SIGPIPE
745 GNULIB_STDIO_H_NONBLOCKING
759 GNULIB_OBSTACK_PRINTF_POSIX
760 GNULIB_OBSTACK_PRINTF
785 NEXT_AS_FIRST_DIRECTIVE_STDDEF_H
787 GL_GENERATE_STDDEF_H_FALSE
788 GL_GENERATE_STDDEF_H_TRUE
793 GL_GENERATE_STDBOOL_H_FALSE
794 GL_GENERATE_STDBOOL_H_TRUE
796 GL_GENERATE_STDARG_H_FALSE
797 GL_GENERATE_STDARG_H_TRUE
799 NEXT_AS_FIRST_DIRECTIVE_STDARG_H
808 HAVE_DECL_LOCALTIME_R
846 NEXT_AS_FIRST_DIRECTIVE_INTTYPES_H
848 UINT64_MAX_EQ_ULONG_MAX
849 UINT32_MAX_LT_UINTMAX_MAX
852 INT64_MAX_EQ_LONG_MAX
853 INT32_MAX_LT_INTMAX_MAX
862 GL_GENERATE_STDINT_H_FALSE
863 GL_GENERATE_STDINT_H_TRUE
872 HAVE_SIGNED_SIG_ATOMIC_T
875 BITSIZEOF_SIG_ATOMIC_T
878 APPLE_UNIVERSAL_BUILD
882 NEXT_AS_FIRST_DIRECTIVE_STDINT_H
887 HAVE_UNSIGNED_LONG_LONG_INT
891 NEXT_AS_FIRST_DIRECTIVE_GETOPT_H
895 INCLUDE_NEXT_AS_FIRST_DIRECTIVE
908 REPLACE_CANONICALIZE_FILE_NAME
913 HAVE_STRUCT_RANDOM_DATA
932 HAVE_CANONICALIZE_FILE_NAME
959 GNULIB_CANONICALIZE_FILE_NAME
963 UNISTD_H_HAVE_WINSOCK2_H_AND_USE_SOCKETS
964 UNISTD_H_HAVE_WINSOCK2_H
984 REPLACE_GETDOMAINNAME
994 HAVE_DECL_GETUSERSHELL
995 HAVE_DECL_GETPAGESIZE
997 HAVE_DECL_GETDOMAINNAME
1033 GNULIB_UNISTD_H_SIGPIPE
1034 GNULIB_UNISTD_H_NONBLOCKING
1035 GNULIB_UNISTD_H_GETOPT
1059 GNULIB_GETDTABLESIZE
1060 GNULIB_GETDOMAINNAME
1073 GL_GENERATE_ALLOCA_H_FALSE
1074 GL_GENERATE_ALLOCA_H_TRUE
1077 GL_COND_LIBTOOL_FALSE
1078 GL_COND_LIBTOOL_TRUE
1126 LD_SWITCH_X_SITE_AUX_RPATH
1127 LD_SWITCH_X_SITE_AUX
1190 INSTALL_STRIP_PROGRAM
1232 program_transform_name
1243 ac_subst_files
='deps_frag
1247 enable_option_checking
1270 with_toolkit_scroll_bars
1281 with_pkg_config_prog
1285 enable_ns_self_contained
1287 enable_maintainer_mode
1288 enable_locallisppath
1290 enable_use_lisp_union_type
1293 enable_dependency_tracking
1297 ac_precious_vars
='build_alias
1309 # Initialize some variables set by options.
1311 ac_init_version
=false
1312 ac_unrecognized_opts
=
1313 ac_unrecognized_sep
=
1314 # The variables have the same names as the options, with
1315 # dashes changed to underlines.
1316 cache_file
=/dev
/null
1323 program_transform_name
=s
,x
,x
,
1331 # Installation directory options.
1332 # These are left unexpanded so users can "make install exec_prefix=/foo"
1333 # and all the variables that are supposed to be based on exec_prefix
1334 # by default will actually change.
1335 # Use braces instead of parens because sh, perl, etc. also accept them.
1336 # (The list follows the same order as the GNU Coding Standards.)
1337 bindir
='${exec_prefix}/bin'
1338 sbindir
='${exec_prefix}/sbin'
1339 libexecdir
='${exec_prefix}/libexec'
1340 datarootdir
='${prefix}/share'
1341 datadir
='${datarootdir}'
1342 sysconfdir
='${prefix}/etc'
1343 sharedstatedir
='${prefix}/com'
1344 localstatedir
='${prefix}/var'
1345 includedir
='${prefix}/include'
1346 oldincludedir
='/usr/include'
1347 docdir
='${datarootdir}/doc/${PACKAGE_TARNAME}'
1348 infodir
='${datarootdir}/info'
1353 libdir
='${exec_prefix}/lib'
1354 localedir
='${datarootdir}/locale'
1355 mandir
='${datarootdir}/man'
1361 # If the previous option needs an argument, assign it.
1362 if test -n "$ac_prev"; then
1363 eval $ac_prev=\
$ac_option
1369 *=*) ac_optarg
=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
1373 # Accept the important Cygnus configure options, so we can diagnose typos.
1375 case $ac_dashdash$ac_option in
1379 -bindir |
--bindir |
--bindi |
--bind |
--bin |
--bi)
1381 -bindir=* |
--bindir=* |
--bindi=* |
--bind=* |
--bin=* |
--bi=*)
1382 bindir
=$ac_optarg ;;
1384 -build |
--build |
--buil |
--bui |
--bu)
1385 ac_prev
=build_alias
;;
1386 -build=* |
--build=* |
--buil=* |
--bui=* |
--bu=*)
1387 build_alias
=$ac_optarg ;;
1389 -cache-file |
--cache-file |
--cache-fil |
--cache-fi \
1390 |
--cache-f |
--cache- |
--cache |
--cach |
--cac |
--ca |
--c)
1391 ac_prev
=cache_file
;;
1392 -cache-file=* |
--cache-file=* |
--cache-fil=* |
--cache-fi=* \
1393 |
--cache-f=* |
--cache-=* |
--cache=* |
--cach=* |
--cac=* |
--ca=* |
--c=*)
1394 cache_file
=$ac_optarg ;;
1396 --config-cache |
-C)
1397 cache_file
=config.cache
;;
1399 -datadir |
--datadir |
--datadi |
--datad)
1401 -datadir=* |
--datadir=* |
--datadi=* |
--datad=*)
1402 datadir
=$ac_optarg ;;
1404 -datarootdir |
--datarootdir |
--datarootdi |
--datarootd |
--dataroot \
1405 |
--dataroo |
--dataro |
--datar)
1406 ac_prev
=datarootdir
;;
1407 -datarootdir=* |
--datarootdir=* |
--datarootdi=* |
--datarootd=* \
1408 |
--dataroot=* |
--dataroo=* |
--dataro=* |
--datar=*)
1409 datarootdir
=$ac_optarg ;;
1411 -disable-* |
--disable-*)
1412 ac_useropt
=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
1413 # Reject names that are not valid shell variable names.
1414 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev
/null
&&
1415 as_fn_error
"invalid feature name: $ac_useropt"
1416 ac_useropt_orig
=$ac_useropt
1417 ac_useropt
=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1418 case $ac_user_opts in
1420 "enable_
$ac_useropt"
1422 *) ac_unrecognized_opts
="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
1423 ac_unrecognized_sep
=', ';;
1425 eval enable_
$ac_useropt=no
;;
1427 -docdir |
--docdir |
--docdi |
--doc |
--do)
1429 -docdir=* |
--docdir=* |
--docdi=* |
--doc=* |
--do=*)
1430 docdir
=$ac_optarg ;;
1432 -dvidir |
--dvidir |
--dvidi |
--dvid |
--dvi |
--dv)
1434 -dvidir=* |
--dvidir=* |
--dvidi=* |
--dvid=* |
--dvi=* |
--dv=*)
1435 dvidir
=$ac_optarg ;;
1437 -enable-* |
--enable-*)
1438 ac_useropt
=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
1439 # Reject names that are not valid shell variable names.
1440 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev
/null
&&
1441 as_fn_error
"invalid feature name: $ac_useropt"
1442 ac_useropt_orig
=$ac_useropt
1443 ac_useropt
=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1444 case $ac_user_opts in
1446 "enable_
$ac_useropt"
1448 *) ac_unrecognized_opts
="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
1449 ac_unrecognized_sep
=', ';;
1451 eval enable_
$ac_useropt=\
$ac_optarg ;;
1453 -exec-prefix |
--exec_prefix |
--exec-prefix |
--exec-prefi \
1454 |
--exec-pref |
--exec-pre |
--exec-pr |
--exec-p |
--exec- \
1455 |
--exec |
--exe |
--ex)
1456 ac_prev
=exec_prefix
;;
1457 -exec-prefix=* |
--exec_prefix=* |
--exec-prefix=* |
--exec-prefi=* \
1458 |
--exec-pref=* |
--exec-pre=* |
--exec-pr=* |
--exec-p=* |
--exec-=* \
1459 |
--exec=* |
--exe=* |
--ex=*)
1460 exec_prefix
=$ac_optarg ;;
1462 -gas |
--gas |
--ga |
--g)
1463 # Obsolete; use --with-gas.
1466 -help |
--help |
--hel |
--he |
-h)
1467 ac_init_help
=long
;;
1468 -help=r
* |
--help=r
* |
--hel=r
* |
--he=r
* |
-hr*)
1469 ac_init_help
=recursive
;;
1470 -help=s
* |
--help=s
* |
--hel=s
* |
--he=s
* |
-hs*)
1471 ac_init_help
=short
;;
1473 -host |
--host |
--hos |
--ho)
1474 ac_prev
=host_alias
;;
1475 -host=* |
--host=* |
--hos=* |
--ho=*)
1476 host_alias
=$ac_optarg ;;
1478 -htmldir |
--htmldir |
--htmldi |
--htmld |
--html |
--htm |
--ht)
1480 -htmldir=* |
--htmldir=* |
--htmldi=* |
--htmld=* |
--html=* |
--htm=* \
1482 htmldir
=$ac_optarg ;;
1484 -includedir |
--includedir |
--includedi |
--included |
--include \
1485 |
--includ |
--inclu |
--incl |
--inc)
1486 ac_prev
=includedir
;;
1487 -includedir=* |
--includedir=* |
--includedi=* |
--included=* |
--include=* \
1488 |
--includ=* |
--inclu=* |
--incl=* |
--inc=*)
1489 includedir
=$ac_optarg ;;
1491 -infodir |
--infodir |
--infodi |
--infod |
--info |
--inf)
1493 -infodir=* |
--infodir=* |
--infodi=* |
--infod=* |
--info=* |
--inf=*)
1494 infodir
=$ac_optarg ;;
1496 -libdir |
--libdir |
--libdi |
--libd)
1498 -libdir=* |
--libdir=* |
--libdi=* |
--libd=*)
1499 libdir
=$ac_optarg ;;
1501 -libexecdir |
--libexecdir |
--libexecdi |
--libexecd |
--libexec \
1502 |
--libexe |
--libex |
--libe)
1503 ac_prev
=libexecdir
;;
1504 -libexecdir=* |
--libexecdir=* |
--libexecdi=* |
--libexecd=* |
--libexec=* \
1505 |
--libexe=* |
--libex=* |
--libe=*)
1506 libexecdir
=$ac_optarg ;;
1508 -localedir |
--localedir |
--localedi |
--localed |
--locale)
1509 ac_prev
=localedir
;;
1510 -localedir=* |
--localedir=* |
--localedi=* |
--localed=* |
--locale=*)
1511 localedir
=$ac_optarg ;;
1513 -localstatedir |
--localstatedir |
--localstatedi |
--localstated \
1514 |
--localstate |
--localstat |
--localsta |
--localst |
--locals)
1515 ac_prev
=localstatedir
;;
1516 -localstatedir=* |
--localstatedir=* |
--localstatedi=* |
--localstated=* \
1517 |
--localstate=* |
--localstat=* |
--localsta=* |
--localst=* |
--locals=*)
1518 localstatedir
=$ac_optarg ;;
1520 -mandir |
--mandir |
--mandi |
--mand |
--man |
--ma |
--m)
1522 -mandir=* |
--mandir=* |
--mandi=* |
--mand=* |
--man=* |
--ma=* |
--m=*)
1523 mandir
=$ac_optarg ;;
1525 -nfp |
--nfp |
--nf)
1526 # Obsolete; use --without-fp.
1529 -no-create |
--no-create |
--no-creat |
--no-crea |
--no-cre \
1530 |
--no-cr |
--no-c |
-n)
1533 -no-recursion |
--no-recursion |
--no-recursio |
--no-recursi \
1534 |
--no-recurs |
--no-recur |
--no-recu |
--no-rec |
--no-re |
--no-r)
1537 -oldincludedir |
--oldincludedir |
--oldincludedi |
--oldincluded \
1538 |
--oldinclude |
--oldinclud |
--oldinclu |
--oldincl |
--oldinc \
1539 |
--oldin |
--oldi |
--old |
--ol |
--o)
1540 ac_prev
=oldincludedir
;;
1541 -oldincludedir=* |
--oldincludedir=* |
--oldincludedi=* |
--oldincluded=* \
1542 |
--oldinclude=* |
--oldinclud=* |
--oldinclu=* |
--oldincl=* |
--oldinc=* \
1543 |
--oldin=* |
--oldi=* |
--old=* |
--ol=* |
--o=*)
1544 oldincludedir
=$ac_optarg ;;
1546 -prefix |
--prefix |
--prefi |
--pref |
--pre |
--pr |
--p)
1548 -prefix=* |
--prefix=* |
--prefi=* |
--pref=* |
--pre=* |
--pr=* |
--p=*)
1549 prefix
=$ac_optarg ;;
1551 -program-prefix |
--program-prefix |
--program-prefi |
--program-pref \
1552 |
--program-pre |
--program-pr |
--program-p)
1553 ac_prev
=program_prefix
;;
1554 -program-prefix=* |
--program-prefix=* |
--program-prefi=* \
1555 |
--program-pref=* |
--program-pre=* |
--program-pr=* |
--program-p=*)
1556 program_prefix
=$ac_optarg ;;
1558 -program-suffix |
--program-suffix |
--program-suffi |
--program-suff \
1559 |
--program-suf |
--program-su |
--program-s)
1560 ac_prev
=program_suffix
;;
1561 -program-suffix=* |
--program-suffix=* |
--program-suffi=* \
1562 |
--program-suff=* |
--program-suf=* |
--program-su=* |
--program-s=*)
1563 program_suffix
=$ac_optarg ;;
1565 -program-transform-name |
--program-transform-name \
1566 |
--program-transform-nam |
--program-transform-na \
1567 |
--program-transform-n |
--program-transform- \
1568 |
--program-transform |
--program-transfor \
1569 |
--program-transfo |
--program-transf \
1570 |
--program-trans |
--program-tran \
1571 |
--progr-tra |
--program-tr |
--program-t)
1572 ac_prev
=program_transform_name
;;
1573 -program-transform-name=* |
--program-transform-name=* \
1574 |
--program-transform-nam=* |
--program-transform-na=* \
1575 |
--program-transform-n=* |
--program-transform-=* \
1576 |
--program-transform=* |
--program-transfor=* \
1577 |
--program-transfo=* |
--program-transf=* \
1578 |
--program-trans=* |
--program-tran=* \
1579 |
--progr-tra=* |
--program-tr=* |
--program-t=*)
1580 program_transform_name
=$ac_optarg ;;
1582 -pdfdir |
--pdfdir |
--pdfdi |
--pdfd |
--pdf |
--pd)
1584 -pdfdir=* |
--pdfdir=* |
--pdfdi=* |
--pdfd=* |
--pdf=* |
--pd=*)
1585 pdfdir
=$ac_optarg ;;
1587 -psdir |
--psdir |
--psdi |
--psd |
--ps)
1589 -psdir=* |
--psdir=* |
--psdi=* |
--psd=* |
--ps=*)
1592 -q |
-quiet |
--quiet |
--quie |
--qui |
--qu |
--q \
1593 |
-silent |
--silent |
--silen |
--sile |
--sil)
1596 -sbindir |
--sbindir |
--sbindi |
--sbind |
--sbin |
--sbi |
--sb)
1598 -sbindir=* |
--sbindir=* |
--sbindi=* |
--sbind=* |
--sbin=* \
1600 sbindir
=$ac_optarg ;;
1602 -sharedstatedir |
--sharedstatedir |
--sharedstatedi \
1603 |
--sharedstated |
--sharedstate |
--sharedstat |
--sharedsta \
1604 |
--sharedst |
--shareds |
--shared |
--share |
--shar \
1606 ac_prev
=sharedstatedir
;;
1607 -sharedstatedir=* |
--sharedstatedir=* |
--sharedstatedi=* \
1608 |
--sharedstated=* |
--sharedstate=* |
--sharedstat=* |
--sharedsta=* \
1609 |
--sharedst=* |
--shareds=* |
--shared=* |
--share=* |
--shar=* \
1611 sharedstatedir
=$ac_optarg ;;
1613 -site |
--site |
--sit)
1615 -site=* |
--site=* |
--sit=*)
1618 -srcdir |
--srcdir |
--srcdi |
--srcd |
--src |
--sr)
1620 -srcdir=* |
--srcdir=* |
--srcdi=* |
--srcd=* |
--src=* |
--sr=*)
1621 srcdir
=$ac_optarg ;;
1623 -sysconfdir |
--sysconfdir |
--sysconfdi |
--sysconfd |
--sysconf \
1624 |
--syscon |
--sysco |
--sysc |
--sys |
--sy)
1625 ac_prev
=sysconfdir
;;
1626 -sysconfdir=* |
--sysconfdir=* |
--sysconfdi=* |
--sysconfd=* |
--sysconf=* \
1627 |
--syscon=* |
--sysco=* |
--sysc=* |
--sys=* |
--sy=*)
1628 sysconfdir
=$ac_optarg ;;
1630 -target |
--target |
--targe |
--targ |
--tar |
--ta |
--t)
1631 ac_prev
=target_alias
;;
1632 -target=* |
--target=* |
--targe=* |
--targ=* |
--tar=* |
--ta=* |
--t=*)
1633 target_alias
=$ac_optarg ;;
1635 -v |
-verbose |
--verbose |
--verbos |
--verbo |
--verb)
1638 -version |
--version |
--versio |
--versi |
--vers |
-V)
1639 ac_init_version
=: ;;
1642 ac_useropt
=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1643 # Reject names that are not valid shell variable names.
1644 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev
/null
&&
1645 as_fn_error
"invalid package name: $ac_useropt"
1646 ac_useropt_orig
=$ac_useropt
1647 ac_useropt
=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1648 case $ac_user_opts in
1652 *) ac_unrecognized_opts
="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1653 ac_unrecognized_sep
=', ';;
1655 eval with_
$ac_useropt=\
$ac_optarg ;;
1657 -without-* |
--without-*)
1658 ac_useropt
=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1659 # Reject names that are not valid shell variable names.
1660 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev
/null
&&
1661 as_fn_error
"invalid package name: $ac_useropt"
1662 ac_useropt_orig
=$ac_useropt
1663 ac_useropt
=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1664 case $ac_user_opts in
1668 *) ac_unrecognized_opts
="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1669 ac_unrecognized_sep
=', ';;
1671 eval with_
$ac_useropt=no
;;
1674 # Obsolete; use --with-x.
1677 -x-includes |
--x-includes |
--x-include |
--x-includ |
--x-inclu \
1678 |
--x-incl |
--x-inc |
--x-in |
--x-i)
1679 ac_prev
=x_includes
;;
1680 -x-includes=* |
--x-includes=* |
--x-include=* |
--x-includ=* |
--x-inclu=* \
1681 |
--x-incl=* |
--x-inc=* |
--x-in=* |
--x-i=*)
1682 x_includes
=$ac_optarg ;;
1684 -x-libraries |
--x-libraries |
--x-librarie |
--x-librari \
1685 |
--x-librar |
--x-libra |
--x-libr |
--x-lib |
--x-li |
--x-l)
1686 ac_prev
=x_libraries
;;
1687 -x-libraries=* |
--x-libraries=* |
--x-librarie=* |
--x-librari=* \
1688 |
--x-librar=* |
--x-libra=* |
--x-libr=* |
--x-lib=* |
--x-li=* |
--x-l=*)
1689 x_libraries
=$ac_optarg ;;
1691 -*) as_fn_error
"unrecognized option: \`$ac_option'
1692 Try \`$0 --help' for more information."
1696 ac_envvar
=`expr "x$ac_option" : 'x\([^=]*\)='`
1697 # Reject names that are not valid shell variable names.
1698 case $ac_envvar in #(
1699 '' |
[0-9]* |
*[!_
$as_cr_alnum]* )
1700 as_fn_error
"invalid variable name: \`$ac_envvar'" ;;
1702 eval $ac_envvar=\
$ac_optarg
1703 export $ac_envvar ;;
1706 # FIXME: should be removed in autoconf 3.0.
1707 $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1708 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev
/null
&&
1709 $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1710 : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
1716 if test -n "$ac_prev"; then
1717 ac_option
=--`echo $ac_prev | sed 's/_/-/g'`
1718 as_fn_error
"missing argument to $ac_option"
1721 if test -n "$ac_unrecognized_opts"; then
1722 case $enable_option_checking in
1724 fatal
) as_fn_error
"unrecognized options: $ac_unrecognized_opts" ;;
1725 *) $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
1729 # Check all directory arguments for consistency.
1730 for ac_var
in exec_prefix prefix bindir sbindir libexecdir datarootdir \
1731 datadir sysconfdir sharedstatedir localstatedir includedir \
1732 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1733 libdir localedir mandir
1735 eval ac_val
=\$
$ac_var
1736 # Remove trailing slashes.
1739 ac_val
=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1740 eval $ac_var=\
$ac_val;;
1742 # Be sure to have absolute directory names.
1744 [\\/$
]* | ?
:[\\/]* ) continue;;
1745 NONE |
'' ) case $ac_var in *prefix
) continue;; esac;;
1747 as_fn_error
"expected an absolute directory name for --$ac_var: $ac_val"
1750 # There might be people who depend on the old broken behavior: `$host'
1751 # used to hold the argument of --host etc.
1752 # FIXME: To remove some day.
1755 target
=$target_alias
1757 # FIXME: To remove some day.
1758 if test "x$host_alias" != x
; then
1759 if test "x$build_alias" = x
; then
1760 cross_compiling
=maybe
1761 $as_echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
1762 If a cross compiler is detected then cross compile mode will be used." >&2
1763 elif test "x$build_alias" != "x$host_alias"; then
1769 test -n "$host_alias" && ac_tool_prefix
=$host_alias-
1771 test "$silent" = yes && exec 6>/dev
/null
1774 ac_pwd
=`pwd` && test -n "$ac_pwd" &&
1775 ac_ls_di
=`ls -di .` &&
1776 ac_pwd_ls_di
=`cd "$ac_pwd" && ls -di .` ||
1777 as_fn_error
"working directory cannot be determined"
1778 test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1779 as_fn_error
"pwd does not report name of working directory"
1782 # Find the source files, if location was not specified.
1783 if test -z "$srcdir"; then
1784 ac_srcdir_defaulted
=yes
1785 # Try the directory containing this script, then the parent directory.
1786 ac_confdir
=`$as_dirname -- "$as_myself" ||
1787 $as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1788 X"$as_myself" : 'X\(//\)[^/]' \| \
1789 X"$as_myself" : 'X\(//\)$' \| \
1790 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1791 $as_echo X"$as_myself" |
1792 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1810 if test ! -r "$srcdir/$ac_unique_file"; then
1814 ac_srcdir_defaulted
=no
1816 if test ! -r "$srcdir/$ac_unique_file"; then
1817 test "$ac_srcdir_defaulted" = yes && srcdir
="$ac_confdir or .."
1818 as_fn_error
"cannot find sources ($ac_unique_file) in $srcdir"
1820 ac_msg
="sources are in $srcdir, but \`cd $srcdir' does not work"
1822 cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error "$ac_msg"
1824 # When building in place, set srcdir=.
1825 if test "$ac_abs_confdir" = "$ac_pwd"; then
1828 # Remove unnecessary trailing slashes from srcdir.
1829 # Double slashes in file names in object file debugging info
1830 # mess up M-x gdb in Emacs.
1832 */) srcdir
=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1834 for ac_var
in $ac_precious_vars; do
1835 eval ac_env_
${ac_var}_set=\${${ac_var}+set}
1836 eval ac_env_
${ac_var}_value
=\$
${ac_var}
1837 eval ac_cv_env_
${ac_var}_set=\${${ac_var}+set}
1838 eval ac_cv_env_
${ac_var}_value
=\$
${ac_var}
1842 # Report the --help message.
1844 if test "$ac_init_help" = "long"; then
1845 # Omit some internal or obsolete options to make the list less imposing.
1846 # This message is too long to be a string in the A/UX 3.1 sh.
1848 \`configure' configures emacs 24.0.50 to adapt to many kinds of systems.
1850 Usage: $0 [OPTION]... [VAR=VALUE]...
1852 To assign environment variables (e.g., CC, CFLAGS...), specify them as
1853 VAR=VALUE. See below for descriptions of some of the useful variables.
1855 Defaults for the options are specified in brackets.
1858 -h, --help display this help and exit
1859 --help=short display options specific to this package
1860 --help=recursive display the short help of all the included packages
1861 -V, --version display version information and exit
1862 -q, --quiet, --silent do not print \`checking...' messages
1863 --cache-file=FILE cache test results in FILE [disabled]
1864 -C, --config-cache alias for \`--cache-file=config.cache'
1865 -n, --no-create do not create output files
1866 --srcdir=DIR find the sources in DIR [configure dir or \`..']
1868 Installation directories:
1869 --prefix=PREFIX install architecture-independent files in PREFIX
1870 [$ac_default_prefix]
1871 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
1874 By default, \`make install' will install all the files in
1875 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
1876 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1877 for instance \`--prefix=\$HOME'.
1879 For better control, use the options below.
1881 Fine tuning of the installation directories:
1882 --bindir=DIR user executables [EPREFIX/bin]
1883 --sbindir=DIR system admin executables [EPREFIX/sbin]
1884 --libexecdir=DIR program executables [EPREFIX/libexec]
1885 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
1886 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
1887 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
1888 --libdir=DIR object code libraries [EPREFIX/lib]
1889 --includedir=DIR C header files [PREFIX/include]
1890 --oldincludedir=DIR C header files for non-gcc [/usr/include]
1891 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
1892 --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
1893 --infodir=DIR info documentation [DATAROOTDIR/info]
1894 --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
1895 --mandir=DIR man documentation [DATAROOTDIR/man]
1896 --docdir=DIR documentation root [DATAROOTDIR/doc/emacs]
1897 --htmldir=DIR html documentation [DOCDIR]
1898 --dvidir=DIR dvi documentation [DOCDIR]
1899 --pdfdir=DIR pdf documentation [DOCDIR]
1900 --psdir=DIR ps documentation [DOCDIR]
1906 --program-prefix=PREFIX prepend PREFIX to installed program names
1907 --program-suffix=SUFFIX append SUFFIX to installed program names
1908 --program-transform-name=PROGRAM run
sed PROGRAM on installed program names
1911 --x-includes=DIR X include files are
in DIR
1912 --x-libraries=DIR X library files are
in DIR
1915 --build=BUILD configure
for building on BUILD
[guessed
]
1916 --host=HOST cross-compile to build programs to run on HOST
[BUILD
]
1920 if test -n "$ac_init_help"; then
1921 case $ac_init_help in
1922 short | recursive
) echo "Configuration of emacs 24.0.50:";;
1927 --disable-option-checking ignore unrecognized
--enable/--with options
1928 --disable-FEATURE do not include FEATURE
(same as
--enable-FEATURE=no
)
1929 --enable-FEATURE[=ARG
] include FEATURE
[ARG
=yes]
1930 --disable-ns-self-contained
1931 disable self contained build under NeXTstep
1932 --enable-asserts compile code with asserts enabled
1933 --enable-maintainer-mode
1934 enable make rules and dependencies not useful
(and
1935 sometimes confusing
) to the casual installer
1936 --enable-locallisppath=PATH
1937 directories Emacs should search
for lisp files
1938 specific to this site
1939 --enable-checking[=LIST
]
1940 enable expensive run-time checks. With LIST
, enable
1941 only specific categories of checks. Categories are
:
1942 all
,yes,no. Flags are
: stringbytes
, stringoverrun
,
1943 stringfreelist
, xmallocoverrun
, conslist
1944 --enable-use-lisp-union-type
1945 use a union
for the Lisp_Object data
type. This is
1946 only useful
for development
for catching certain
1948 --enable-profiling build emacs with profiling support. This might not
1949 work on all platforms
1950 --enable-autodepend automatically generate dependencies to .h-files.
1951 Requires GNU Make and Gcc. Enabled
if GNU Make and
1953 --disable-dependency-tracking speeds up one-time build
1954 --enable-dependency-tracking do not reject slow dependency extractors
1955 --disable-largefile omit support
for large files
1958 --with-PACKAGE[=ARG
] use PACKAGE
[ARG
=yes]
1959 --without-PACKAGE do not use PACKAGE
(same as
--with-PACKAGE=no
)
1960 --without-pop don
't support POP mail retrieval with movemail
1961 --with-kerberos support Kerberos-authenticated POP
1962 --with-kerberos5 support Kerberos version 5 authenticated POP
1963 --with-hesiod support Hesiod to get the POP server host
1964 --with-mmdf support MMDF mailboxes
1965 --with-mail-unlink unlink, rather than empty, mail spool after reading
1966 --with-mailhost=HOSTNAME
1967 string giving default POP mail host
1968 --without-sound don't compile with sound support
1969 --without-sync-input process async input synchronously
1970 --with-x-toolkit=KIT use an X toolkit
(KIT one of
: yes or gtk
, gtk3
,
1971 lucid or athena
, motif
, no
)
1972 --with-wide-int prefer wide Emacs integers
(typically
62-bit)
1973 --without-xpm don
't compile with XPM image support
1974 --without-jpeg don't compile with JPEG image support
1975 --without-tiff don
't compile with TIFF image support
1976 --without-gif don't compile with GIF image support
1977 --without-png don
't compile with PNG image support
1978 --without-rsvg don't compile with SVG image support
1979 --without-xml2 don
't compile with XML parsing support
1980 --without-imagemagick don't compile with ImageMagick image support
1981 --without-xft don
't use XFT for anti aliased fonts
1982 --without-libotf don't use libotf
for OpenType font support
1983 --without-m17n-flt don
't use m17n-flt for text shaping
1984 --without-toolkit-scroll-bars
1985 don't use Motif or Xaw3d scroll bars
1986 --without-xaw3d don
't use Xaw3d
1987 --without-xim don't use X11 XIM
1988 --with-ns use NeXTstep
(Cocoa or GNUstep
) windowing system
1989 --without-gpm don
't use -lgpm for mouse support on a GNU/Linux
1991 --without-dbus don't compile with D-Bus support
1992 --without-gconf don
't compile with GConf support
1993 --without-selinux don't compile with SELinux support
1994 --without-gnutls don
't use -lgnutls for SSL/TLS support
1995 --without-makeinfo don't require makeinfo
for building manuals
1996 --without-compress-info don
't compress the installed Info pages
1997 --with-pkg-config-prog=PATH
1998 path to pkg-config for finding GTK and librsvg
1999 --with-crt-dir=DIR directory containing crtn.o etc. The default is
2000 /usr/lib, or /usr/lib64 on some platforms.
2001 --with-gameuser=USER user for shared game score files
2002 --with-gnustep-conf=PATH
2003 path to GNUstep.conf; default $GNUSTEP_CONFIG_FILE,
2004 or /etc/GNUstep/GNUstep.conf
2005 --with-x use the X Window System
2007 Some influential environment variables:
2008 CC C compiler command
2009 CFLAGS C compiler flags
2010 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
2011 nonstandard directory <lib dir>
2012 LIBS libraries to pass to the linker, e.g. -l<library>
2013 CPPFLAGS (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if
2014 you have headers in a nonstandard directory <include dir>
2016 XMKMF Path to xmkmf, Makefile generator for X Window System
2018 Use these variables to override the choices made by `configure' or to
help
2019 it to
find libraries and programs with nonstandard names
/locations.
2021 Report bugs to the package provider.
2026 if test "$ac_init_help" = "recursive"; then
2027 # If there are subdirs, report their specific --help.
2028 for ac_dir
in : $ac_subdirs_all; do test "x$ac_dir" = x
: && continue
2029 test -d "$ac_dir" ||
2030 { cd "$srcdir" && ac_pwd
=`pwd` && srcdir
=.
&& test -d "$ac_dir"; } ||
2035 .
) ac_dir_suffix
= ac_top_builddir_sub
=. ac_top_build_prefix
= ;;
2037 ac_dir_suffix
=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
2038 # A ".." for each directory in $ac_dir_suffix.
2039 ac_top_builddir_sub
=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
2040 case $ac_top_builddir_sub in
2041 "") ac_top_builddir_sub
=. ac_top_build_prefix
= ;;
2042 *) ac_top_build_prefix
=$ac_top_builddir_sub/ ;;
2045 ac_abs_top_builddir
=$ac_pwd
2046 ac_abs_builddir
=$ac_pwd$ac_dir_suffix
2047 # for backward compatibility:
2048 ac_top_builddir
=$ac_top_build_prefix
2051 .
) # We are building in place.
2053 ac_top_srcdir
=$ac_top_builddir_sub
2054 ac_abs_top_srcdir
=$ac_pwd ;;
2055 [\\/]* | ?
:[\\/]* ) # Absolute name.
2056 ac_srcdir
=$srcdir$ac_dir_suffix;
2057 ac_top_srcdir
=$srcdir
2058 ac_abs_top_srcdir
=$srcdir ;;
2060 ac_srcdir
=$ac_top_build_prefix$srcdir$ac_dir_suffix
2061 ac_top_srcdir
=$ac_top_build_prefix$srcdir
2062 ac_abs_top_srcdir
=$ac_pwd/$srcdir ;;
2064 ac_abs_srcdir
=$ac_abs_top_srcdir$ac_dir_suffix
2066 cd "$ac_dir" ||
{ ac_status
=$?
; continue; }
2067 # Check for guested configure.
2068 if test -f "$ac_srcdir/configure.gnu"; then
2070 $SHELL "$ac_srcdir/configure.gnu" --help=recursive
2071 elif test -f "$ac_srcdir/configure"; then
2073 $SHELL "$ac_srcdir/configure" --help=recursive
2075 $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
2077 cd "$ac_pwd" ||
{ ac_status
=$?
; break; }
2081 test -n "$ac_init_help" && exit $ac_status
2082 if $ac_init_version; then
2084 emacs configure
24.0.50
2085 generated by GNU Autoconf
2.65
2087 Copyright
(C
) 2009 Free Software Foundation
, Inc.
2088 This configure
script is free software
; the Free Software Foundation
2089 gives unlimited permission to copy
, distribute and modify it.
2094 ## ------------------------ ##
2095 ## Autoconf initialization. ##
2096 ## ------------------------ ##
2098 # ac_fn_c_try_compile LINENO
2099 # --------------------------
2100 # Try to compile conftest.$ac_ext, and return whether this succeeded.
2101 ac_fn_c_try_compile
()
2103 as_lineno
=${as_lineno-"$1"} as_lineno_stack
=as_lineno_stack
=$as_lineno_stack
2104 rm -f conftest.
$ac_objext
2105 if { { ac_try
="$ac_compile"
2107 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
2108 *) ac_try_echo=$ac_try;;
2110 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2111 $as_echo "$ac_try_echo"; } >&5
2112 (eval "$ac_compile") 2>conftest.err
2114 if test -s conftest.err; then
2115 grep -v '^ *+' conftest.err >conftest.er1
2116 cat conftest.er1 >&5
2117 mv -f conftest.er1 conftest.err
2119 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2120 test $ac_status = 0; } && {
2121 test -z "$ac_c_werror_flag" ||
2122 test ! -s conftest.err
2123 } && test -s conftest.$ac_objext; then :
2126 $as_echo "$as_me: failed program was:" >&5
2127 sed 's/^/| /' conftest.$ac_ext >&5
2131 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2132 as_fn_set_status $ac_retval
2134 } # ac_fn_c_try_compile
2136 # ac_fn_c_try_cpp LINENO
2137 # ----------------------
2138 # Try to preprocess conftest.$ac_ext, and return whether this succeeded.
2141 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2142 if { { ac_try="$ac_cpp conftest.$ac_ext"
2144 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
2145 *) ac_try_echo
=$ac_try;;
2147 eval ac_try_echo
="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2148 $as_echo "$ac_try_echo"; } >&5
2149 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
2151 if test -s conftest.err
; then
2152 grep -v '^ *+' conftest.err
>conftest.er1
2153 cat conftest.er1
>&5
2154 mv -f conftest.er1 conftest.err
2156 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2157 test $ac_status = 0; } >/dev
/null
&& {
2158 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
2159 test ! -s conftest.err
2163 $as_echo "$as_me: failed program was:" >&5
2164 sed 's/^/| /' conftest.
$ac_ext >&5
2168 eval $as_lineno_stack; test "x$as_lineno_stack" = x
&& { as_lineno
=; unset as_lineno
;}
2169 as_fn_set_status
$ac_retval
2173 # ac_fn_c_check_header_mongrel LINENO HEADER VAR INCLUDES
2174 # -------------------------------------------------------
2175 # Tests whether HEADER exists, giving a warning if it cannot be compiled using
2176 # the include files in INCLUDES and setting the cache variable VAR
2178 ac_fn_c_check_header_mongrel
()
2180 as_lineno
=${as_lineno-"$1"} as_lineno_stack
=as_lineno_stack
=$as_lineno_stack
2181 if { as_var
=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
2182 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2183 $as_echo_n "checking for $2... " >&6; }
2184 if { as_var
=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
2185 $as_echo_n "(cached) " >&6
2188 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2189 $as_echo "$ac_res" >&6; }
2191 # Is the header compilable?
2192 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5
2193 $as_echo_n "checking $2 usability... " >&6; }
2194 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
2195 /* end confdefs.h. */
2199 if ac_fn_c_try_compile
"$LINENO"; then :
2200 ac_header_compiler
=yes
2202 ac_header_compiler
=no
2204 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
2205 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5
2206 $as_echo "$ac_header_compiler" >&6; }
2208 # Is the header present?
2209 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5
2210 $as_echo_n "checking $2 presence... " >&6; }
2211 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
2212 /* end confdefs.h. */
2215 if ac_fn_c_try_cpp
"$LINENO"; then :
2216 ac_header_preproc
=yes
2218 ac_header_preproc
=no
2220 rm -f conftest.err conftest.
$ac_ext
2221 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5
2222 $as_echo "$ac_header_preproc" >&6; }
2224 # So? What about this header?
2225 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in #((
2227 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5
2228 $as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;}
2229 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
2230 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
2233 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5
2234 $as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;}
2235 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: check for missing prerequisite headers?" >&5
2236 $as_echo "$as_me: WARNING: $2: check for missing prerequisite headers?" >&2;}
2237 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5
2238 $as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;}
2239 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&5
2240 $as_echo "$as_me: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&2;}
2241 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
2242 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
2245 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2246 $as_echo_n "checking for $2... " >&6; }
2247 if { as_var
=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
2248 $as_echo_n "(cached) " >&6
2250 eval "$3=\$ac_header_compiler"
2253 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2254 $as_echo "$ac_res" >&6; }
2256 eval $as_lineno_stack; test "x$as_lineno_stack" = x
&& { as_lineno
=; unset as_lineno
;}
2258 } # ac_fn_c_check_header_mongrel
2260 # ac_fn_c_try_run LINENO
2261 # ----------------------
2262 # Try to link conftest.$ac_ext, and return whether this succeeded. Assumes
2263 # that executables *can* be run.
2266 as_lineno
=${as_lineno-"$1"} as_lineno_stack
=as_lineno_stack
=$as_lineno_stack
2267 if { { ac_try
="$ac_link"
2269 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
2270 *) ac_try_echo=$ac_try;;
2272 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2273 $as_echo "$ac_try_echo"; } >&5
2274 (eval "$ac_link") 2>&5
2276 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2277 test $ac_status = 0; } && { ac_try='./conftest$ac_exeext'
2278 { { case "(($ac_try" in
2279 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
2280 *) ac_try_echo
=$ac_try;;
2282 eval ac_try_echo
="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2283 $as_echo "$ac_try_echo"; } >&5
2284 (eval "$ac_try") 2>&5
2286 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2287 test $ac_status = 0; }; }; then :
2290 $as_echo "$as_me: program exited with status $ac_status" >&5
2291 $as_echo "$as_me: failed program was:" >&5
2292 sed 's/^/| /' conftest.
$ac_ext >&5
2294 ac_retval
=$ac_status
2296 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
2297 eval $as_lineno_stack; test "x$as_lineno_stack" = x
&& { as_lineno
=; unset as_lineno
;}
2298 as_fn_set_status
$ac_retval
2302 # ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES
2303 # -------------------------------------------------------
2304 # Tests whether HEADER exists and can be compiled using the include files in
2305 # INCLUDES, setting the cache variable VAR accordingly.
2306 ac_fn_c_check_header_compile
()
2308 as_lineno
=${as_lineno-"$1"} as_lineno_stack
=as_lineno_stack
=$as_lineno_stack
2309 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2310 $as_echo_n "checking for $2... " >&6; }
2311 if { as_var
=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
2312 $as_echo_n "(cached) " >&6
2314 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
2315 /* end confdefs.h. */
2319 if ac_fn_c_try_compile
"$LINENO"; then :
2324 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
2327 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2328 $as_echo "$ac_res" >&6; }
2329 eval $as_lineno_stack; test "x$as_lineno_stack" = x
&& { as_lineno
=; unset as_lineno
;}
2331 } # ac_fn_c_check_header_compile
2333 # ac_fn_c_try_link LINENO
2334 # -----------------------
2335 # Try to link conftest.$ac_ext, and return whether this succeeded.
2338 as_lineno
=${as_lineno-"$1"} as_lineno_stack
=as_lineno_stack
=$as_lineno_stack
2339 rm -f conftest.
$ac_objext conftest
$ac_exeext
2340 if { { ac_try
="$ac_link"
2342 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
2343 *) ac_try_echo=$ac_try;;
2345 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2346 $as_echo "$ac_try_echo"; } >&5
2347 (eval "$ac_link") 2>conftest.err
2349 if test -s conftest.err; then
2350 grep -v '^ *+' conftest.err >conftest.er1
2351 cat conftest.er1 >&5
2352 mv -f conftest.er1 conftest.err
2354 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2355 test $ac_status = 0; } && {
2356 test -z "$ac_c_werror_flag" ||
2357 test ! -s conftest.err
2358 } && test -s conftest$ac_exeext && {
2359 test "$cross_compiling" = yes ||
2360 $as_test_x conftest$ac_exeext
2364 $as_echo "$as_me: failed program was:" >&5
2365 sed 's/^/| /' conftest.$ac_ext >&5
2369 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
2370 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
2371 # interfere with the next link command; also delete a directory that is
2372 # left behind by Apple's compiler. We do this before executing the actions.
2373 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
2374 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2375 as_fn_set_status $ac_retval
2377 } # ac_fn_c_try_link
2379 # ac_fn_c_check_decl LINENO SYMBOL VAR
2380 # ------------------------------------
2381 # Tests whether SYMBOL is declared, setting cache variable VAR accordingly.
2382 ac_fn_c_check_decl ()
2384 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2385 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $2 is declared" >&5
2386 $as_echo_n "checking whether $2 is declared... " >&6; }
2387 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
2388 $as_echo_n "(cached) " >&6
2390 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2391 /* end confdefs.h. */
2404 if ac_fn_c_try_compile "$LINENO"; then :
2409 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2412 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2413 $as_echo "$ac_res" >&6; }
2414 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2416 } # ac_fn_c_check_decl
2418 # ac_fn_c_check_header_preproc LINENO HEADER VAR
2419 # ----------------------------------------------
2420 # Tests whether HEADER is present, setting the cache variable VAR accordingly.
2421 ac_fn_c_check_header_preproc ()
2423 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2424 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2425 $as_echo_n "checking for $2... " >&6; }
2426 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
2427 $as_echo_n "(cached) " >&6
2429 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2430 /* end confdefs.h. */
2433 if ac_fn_c_try_cpp "$LINENO"; then :
2438 rm -f conftest.err conftest.$ac_ext
2441 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2442 $as_echo "$ac_res" >&6; }
2443 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2445 } # ac_fn_c_check_header_preproc
2447 # ac_fn_c_check_member LINENO AGGR MEMBER VAR INCLUDES
2448 # ----------------------------------------------------
2449 # Tries to find if the field MEMBER exists in type AGGR, after including
2450 # INCLUDES, setting cache variable VAR accordingly.
2451 ac_fn_c_check_member ()
2453 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2454 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2.$3" >&5
2455 $as_echo_n "checking for $2.$3... " >&6; }
2456 if { as_var=$4; eval "test \"\${$as_var+set}\" = set"; }; then :
2457 $as_echo_n "(cached) " >&6
2459 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2460 /* end confdefs.h. */
2472 if ac_fn_c_try_compile "$LINENO"; then :
2475 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2476 /* end confdefs.h. */
2482 if (sizeof ac_aggr.$3)
2488 if ac_fn_c_try_compile "$LINENO"; then :
2493 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2495 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2498 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2499 $as_echo "$ac_res" >&6; }
2500 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2502 } # ac_fn_c_check_member
2504 # ac_fn_c_check_func LINENO FUNC VAR
2505 # ----------------------------------
2506 # Tests whether FUNC exists, setting the cache variable VAR accordingly
2507 ac_fn_c_check_func ()
2509 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2510 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2511 $as_echo_n "checking for $2... " >&6; }
2512 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
2513 $as_echo_n "(cached) " >&6
2515 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2516 /* end confdefs.h. */
2517 /* Define $2 to an innocuous variant, in case <limits.h> declares $2.
2518 For example, HP-UX 11i <limits.h> declares gettimeofday. */
2519 #define $2 innocuous_$2
2521 /* System header to define __stub macros and hopefully few prototypes,
2522 which can conflict with char $2 (); below.
2523 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
2524 <limits.h> exists even on freestanding compilers. */
2527 # include <limits.h>
2529 # include <assert.h>
2534 /* Override any GCC internal prototype to avoid an error.
2535 Use char because int might match the return type of a GCC
2536 builtin and then its argument prototype would still apply. */
2541 /* The GNU C library defines this for functions which it implements
2542 to always fail with ENOSYS. Some functions are actually named
2543 something starting with __ and the normal name is an alias. */
2544 #if defined __stub_$2 || defined __stub___$2
2556 if ac_fn_c_try_link "$LINENO"; then :
2561 rm -f core conftest.err conftest.$ac_objext \
2562 conftest$ac_exeext conftest.$ac_ext
2565 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2566 $as_echo "$ac_res" >&6; }
2567 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2569 } # ac_fn_c_check_func
2573 # ac_fn_c_check_member LINENO AGGR MEMBER VAR INCLUDES
2574 # ----------------------------------------------------
2575 # Tries to find if the field MEMBER exists in type AGGR, after including
2576 # INCLUDES, setting cache variable VAR accordingly.
2577 ac_fn_c_check_member ()
2579 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2580 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2.$3" >&5
2581 $as_echo_n "checking for $2.$3... " >&6; }
2582 if { as_var=$4; eval "test \"\${$as_var+set}\" = set"; }; then :
2583 $as_echo_n "(cached) " >&6
2585 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2586 /* end confdefs.h. */
2598 if ac_fn_c_try_compile "$LINENO"; then :
2601 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2602 /* end confdefs.h. */
2608 if (sizeof ac_aggr.$3)
2614 if ac_fn_c_try_compile "$LINENO"; then :
2619 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2621 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2624 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2625 $as_echo "$ac_res" >&6; }
2626 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2628 } # ac_fn_c_check_member
2630 # ac_fn_c_check_type LINENO TYPE VAR INCLUDES
2631 # -------------------------------------------
2632 # Tests whether TYPE exists after having included INCLUDES, setting cache
2633 # variable VAR accordingly.
2634 ac_fn_c_check_type ()
2636 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2637 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2638 $as_echo_n "checking for $2... " >&6; }
2639 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
2640 $as_echo_n "(cached) " >&6
2643 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2644 /* end confdefs.h. */
2655 if ac_fn_c_try_compile "$LINENO"; then :
2656 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2657 /* end confdefs.h. */
2668 if ac_fn_c_try_compile "$LINENO"; then :
2673 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2675 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2678 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2679 $as_echo "$ac_res" >&6; }
2680 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2682 } # ac_fn_c_check_type
2684 >>>>>>> MERGE-SOURCE
2685 # ac_fn_c_compute_int LINENO EXPR VAR INCLUDES
2686 # --------------------------------------------
2687 # Tries to find the compile-time value of EXPR in a program that includes
2688 # INCLUDES, setting VAR accordingly. Returns whether the value could be
2690 ac_fn_c_compute_int ()
2692 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2693 if test "$cross_compiling" = yes; then
2694 # Depending upon the size, compute the lo and hi bounds.
2695 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2696 /* end confdefs.h. */
2701 static int test_array [1 - 2 * !(($2) >= 0)];
2708 if ac_fn_c_try_compile "$LINENO"; then :
2711 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2712 /* end confdefs.h. */
2717 static int test_array [1 - 2 * !(($2) <= $ac_mid)];
2724 if ac_fn_c_try_compile "$LINENO"; then :
2725 ac_hi=$ac_mid; break
2727 as_fn_arith $ac_mid + 1 && ac_lo=$as_val
2728 if test $ac_lo -le $ac_mid; then
2732 as_fn_arith 2 '*' $ac_mid + 1 && ac_mid=$as_val
2734 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2737 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2738 /* end confdefs.h. */
2743 static int test_array [1 - 2 * !(($2) < 0)];
2750 if ac_fn_c_try_compile "$LINENO"; then :
2753 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2754 /* end confdefs.h. */
2759 static int test_array [1 - 2 * !(($2) >= $ac_mid)];
2766 if ac_fn_c_try_compile "$LINENO"; then :
2767 ac_lo=$ac_mid; break
2769 as_fn_arith '(' $ac_mid ')' - 1 && ac_hi=$as_val
2770 if test $ac_mid -le $ac_hi; then
2774 as_fn_arith 2 '*' $ac_mid && ac_mid=$as_val
2776 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2781 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2783 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2784 # Binary search between lo and hi bounds.
2785 while test "x$ac_lo" != "x$ac_hi"; do
2786 as_fn_arith '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo && ac_mid=$as_val
2787 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2788 /* end confdefs.h. */
2793 static int test_array [1 - 2 * !(($2) <= $ac_mid)];
2800 if ac_fn_c_try_compile "$LINENO"; then :
2803 as_fn_arith '(' $ac_mid ')' + 1 && ac_lo=$as_val
2805 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2808 ?*) eval "$3=\$ac_lo"; ac_retval=0 ;;
2812 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2813 /* end confdefs.h. */
2815 static long int longval () { return $2; }
2816 static unsigned long int ulongval () { return $2; }
2823 FILE *f = fopen ("conftest.val", "w");
2828 long int i = longval ();
2831 fprintf (f, "%ld", i);
2835 unsigned long int i = ulongval ();
2838 fprintf (f, "%lu", i);
2840 /* Do not output a trailing newline, as this causes \r\n confusion
2841 on some platforms. */
2842 return ferror (f) || fclose (f) != 0;
2848 if ac_fn_c_try_run "$LINENO"; then :
2849 echo >>conftest.val; read $3 <conftest.val; ac_retval=0
2853 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
2854 conftest.$ac_objext conftest.beam conftest.$ac_ext
2858 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2859 as_fn_set_status $ac_retval
2861 } # ac_fn_c_compute_int
2863 # ac_fn_c_check_type LINENO TYPE VAR INCLUDES
2864 # -------------------------------------------
2865 # Tests whether TYPE exists after having included INCLUDES, setting cache
2866 # variable VAR accordingly.
2867 ac_fn_c_check_type ()
2869 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2870 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2871 $as_echo_n "checking for $2... " >&6; }
2872 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
2873 $as_echo_n "(cached) " >&6
2876 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2877 /* end confdefs.h. */
2888 if ac_fn_c_try_compile "$LINENO"; then :
2889 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2890 /* end confdefs.h. */
2901 if ac_fn_c_try_compile "$LINENO"; then :
2906 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2908 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2911 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2912 $as_echo "$ac_res" >&6; }
2913 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2915 } # ac_fn_c_check_type
2916 cat >config.log <<_ACEOF
2917 This file contains any messages produced by compilers while
2918 running configure, to aid debugging if configure makes a mistake.
2920 It was created by emacs $as_me 24.0.50, which was
2921 generated by GNU Autoconf 2.65. Invocation command line was
2933 hostname = `(hostname || uname
-n) 2>/dev
/null |
sed 1q
`
2934 uname -m = `(uname
-m) 2>/dev
/null ||
echo unknown
`
2935 uname -r = `(uname
-r) 2>/dev
/null ||
echo unknown
`
2936 uname -s = `(uname
-s) 2>/dev
/null ||
echo unknown
`
2937 uname -v = `(uname
-v) 2>/dev
/null ||
echo unknown
`
2939 /usr/bin/uname -p = `(/usr
/bin
/uname
-p) 2>/dev
/null ||
echo unknown
`
2940 /bin/uname -X = `(/bin
/uname
-X) 2>/dev
/null ||
echo unknown
`
2942 /bin/arch = `(/bin
/arch
) 2>/dev
/null ||
echo unknown
`
2943 /usr/bin/arch -k = `(/usr
/bin
/arch
-k) 2>/dev
/null ||
echo unknown
`
2944 /usr/convex/getsysinfo = `(/usr
/convex
/getsysinfo
) 2>/dev
/null ||
echo unknown
`
2945 /usr/bin/hostinfo = `(/usr
/bin
/hostinfo
) 2>/dev
/null ||
echo unknown
`
2946 /bin/machine = `(/bin
/machine
) 2>/dev
/null ||
echo unknown
`
2947 /usr/bin/oslevel = `(/usr
/bin
/oslevel
) 2>/dev
/null ||
echo unknown
`
2948 /bin/universe = `(/bin
/universe
) 2>/dev
/null ||
echo unknown
`
2952 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2956 test -z "$as_dir" && as_dir=.
2957 $as_echo "PATH: $as_dir"
2973 # Keep a trace of the command line.
2974 # Strip out --no-create and --no-recursion so they do not pile up.
2975 # Strip out --silent because we don't want to record it for future runs.
2976 # Also quote any args containing shell meta-characters.
2977 # Make two passes to allow for proper duplicate-argument suppression.
2981 ac_must_keep_next=false
2987 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
2988 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
2989 | -silent | --silent | --silen | --sile | --sil)
2992 ac_arg=`$as_echo "$ac_arg" |
sed "s/'/'\\\\\\\\''/g"` ;;
2995 1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
2997 as_fn_append ac_configure_args1 " '$ac_arg'"
2998 if test $ac_must_keep_next = true; then
2999 ac_must_keep_next=false # Got value, back to normal.
3002 *=* | --config-cache | -C | -disable-* | --disable-* \
3003 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
3004 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
3005 | -with-* | --with-* | -without-* | --without-* | --x)
3006 case "$ac_configure_args0 " in
3007 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
3010 -* ) ac_must_keep_next=true ;;
3013 as_fn_append ac_configure_args " '$ac_arg'"
3018 { ac_configure_args0=; unset ac_configure_args0;}
3019 { ac_configure_args1=; unset ac_configure_args1;}
3021 # When interrupted or exit'd, cleanup temporary files, and complete
3022 # config.log. We remove comments because anyway the quotes in there
3023 # would cause problems or look ugly.
3024 # WARNING: Use '\'' to represent an apostrophe within the trap.
3025 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
3026 trap 'exit_status=$?
3027 # Save into config.log some information that might help in debugging.
3032 ## ---------------- ##
3033 ## Cache variables. ##
3034 ## ---------------- ##
3037 # The following way of writing the cache mishandles newlines in values,
3039 for ac_var in `(set) 2>&1 |
sed -n '\''s
/^\
([a-zA-Z_
][a-zA-Z0-9_
]*\
)=.
*/\
1/p
'\''`; do
3040 eval ac_val=\$$ac_var
3044 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
3045 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
3048 _ | IFS | as_nl) ;; #(
3049 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
3050 *) { eval $ac_var=; unset $ac_var;} ;;
3055 case $as_nl`(ac_space
='\'' '\''; set) 2>&1` in #(
3056 *${as_nl}ac_space=\ *)
3058 "s/'\''/'\''\\\\'\'''\''/g;
3059 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
3062 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
3070 ## ----------------- ##
3071 ## Output variables. ##
3072 ## ----------------- ##
3075 for ac_var in $ac_subst_vars
3077 eval ac_val=\$$ac_var
3079 *\'\''*) ac_val=`$as_echo "$ac_val" |
sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
3081 $as_echo "$ac_var='\''$ac_val'\''"
3085 if test -n "$ac_subst_files"; then
3087 ## ------------------- ##
3088 ## File substitutions. ##
3089 ## ------------------- ##
3092 for ac_var in $ac_subst_files
3094 eval ac_val=\$$ac_var
3096 *\'\''*) ac_val=`$as_echo "$ac_val" |
sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
3098 $as_echo "$ac_var='\''$ac_val'\''"
3103 if test -s confdefs.h; then
3113 test "$ac_signal" != 0 &&
3114 $as_echo "$as_me: caught signal $ac_signal"
3115 $as_echo "$as_me: exit $exit_status"
3117 rm -f core *.core core.conftest.* &&
3118 rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
3121 for ac_signal in 1 2 13 15; do
3122 trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
3126 # confdefs.h avoids OS command line length limits that DEFS can exceed.
3127 rm -f -r conftest* confdefs.h
3129 $as_echo "/* confdefs.h */" > confdefs.h
3131 # Predefined preprocessor variables.
3133 cat >>confdefs.h <<_ACEOF
3134 #define PACKAGE_NAME "$PACKAGE_NAME"
3137 cat >>confdefs.h <<_ACEOF
3138 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
3141 cat >>confdefs.h <<_ACEOF
3142 #define PACKAGE_VERSION "$PACKAGE_VERSION"
3145 cat >>confdefs.h <<_ACEOF
3146 #define PACKAGE_STRING "$PACKAGE_STRING"
3149 cat >>confdefs.h <<_ACEOF
3150 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
3153 cat >>confdefs.h <<_ACEOF
3154 #define PACKAGE_URL "$PACKAGE_URL"
3158 # Let the site file select an alternate cache file if it wants to.
3159 # Prefer an explicitly selected file to automatically selected ones.
3162 if test -n "$CONFIG_SITE"; then
3163 ac_site_file1=$CONFIG_SITE
3164 elif test "x$prefix" != xNONE; then
3165 ac_site_file1=$prefix/share/config.site
3166 ac_site_file2=$prefix/etc/config.site
3168 ac_site_file1=$ac_default_prefix/share/config.site
3169 ac_site_file2=$ac_default_prefix/etc/config.site
3171 for ac_site_file in "$ac_site_file1" "$ac_site_file2"
3173 test "x$ac_site_file" = xNONE && continue
3174 if test /dev/null != "$ac_site_file" && test -r "$ac_site_file"; then
3175 { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
3176 $as_echo "$as_me: loading site script $ac_site_file" >&6;}
3177 sed 's/^/| /' "$ac_site_file" >&5
3182 if test -r "$cache_file"; then
3183 # Some versions of bash will fail to source /dev/null (special files
3184 # actually), so we avoid doing that. DJGPP emulates it as a regular file.
3185 if test /dev/null != "$cache_file" && test -f "$cache_file"; then
3186 { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
3187 $as_echo "$as_me: loading cache $cache_file" >&6;}
3189 [\\/]* | ?:[\\/]* ) . "$cache_file";;
3190 *) . "./$cache_file";;
3194 { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
3195 $as_echo "$as_me: creating cache $cache_file" >&6;}
3199 as_fn_append ac_header_list " stdlib.h"
3200 as_fn_append ac_header_list " unistd.h"
3201 as_fn_append ac_header_list " sys/param.h"
3202 as_fn_append ac_func_list " readlinkat"
3203 gl_getopt_required=GNU
3204 as_fn_append ac_header_list " getopt.h"
3205 as_fn_append ac_header_list " wchar.h"
3206 as_fn_append ac_header_list " stdint.h"
3207 as_fn_append ac_header_list " inttypes.h"
3208 as_fn_append ac_func_list " lstat"
3209 as_fn_append ac_func_list " alarm"
3210 as_fn_append ac_func_list " readlink"
3211 as_fn_append ac_header_list " sys/socket.h"
3212 as_fn_append ac_func_list " tzset"
3213 as_fn_append ac_func_list " strtoimax"
3214 as_fn_append ac_func_list " strtoumax"
3215 as_fn_append ac_func_list " symlink"
3216 as_fn_append ac_header_list " sys/stat.h"
3217 as_fn_append ac_header_list " sys/time.h"
3218 as_fn_append ac_func_list " localtime_r"
3219 # Check that the precious variables saved in the cache have kept the same
3221 ac_cache_corrupted=false
3222 for ac_var in $ac_precious_vars; do
3223 eval ac_old_set=\$ac_cv_env_${ac_var}_set
3224 eval ac_new_set=\$ac_env_${ac_var}_set
3225 eval ac_old_val=\$ac_cv_env_${ac_var}_value
3226 eval ac_new_val=\$ac_env_${ac_var}_value
3227 case $ac_old_set,$ac_new_set in
3229 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run
" >&5
3230 $as_echo "$as_me: error
: \
`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
3231 ac_cache_corrupted=: ;;
3233 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not
set in the previous run
" >&5
3234 $as_echo "$as_me: error
: \
`$ac_var' was not set in the previous run" >&2;}
3235 ac_cache_corrupted=: ;;
3238 if test "x$ac_old_val" != "x$ac_new_val"; then
3239 # differences in whitespace do not lead to failure.
3240 ac_old_val_w=`echo x
$ac_old_val`
3241 ac_new_val_w=`echo x
$ac_new_val`
3242 if test "$ac_old_val_w" != "$ac_new_val_w"; then
3243 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
3244 $as_echo "$as_me: error: \`$ac_var' has changed since the previous run
:" >&2;}
3245 ac_cache_corrupted=:
3247 { $as_echo "$as_me:${as_lineno-$LINENO}: warning
: ignoring whitespace changes
in \
`$ac_var' since the previous run:" >&5
3248 $as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
3249 eval $ac_var=\$ac_old_val
3251 { $as_echo "$as_me:${as_lineno-$LINENO}: former value: \`$ac_old_val'" >&5
3252 $as_echo "$as_me: former value
: \
`$ac_old_val'" >&2;}
3253 { $as_echo "$as_me:${as_lineno-$LINENO}: current value: \`$ac_new_val'" >&5
3254 $as_echo "$as_me: current value: \`$ac_new_val'" >&2;}
3257 # Pass precious variables to config.status.
3258 if test "$ac_new_set" = set; then
3260 *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s
/'/'\\\\\\\\''/g
"` ;;
3261 *) ac_arg=$ac_var=$ac_new_val ;;
3263 case " $ac_configure_args " in
3264 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
3265 *) as_fn_append ac_configure_args " '$ac_arg'" ;;
3269 if $ac_cache_corrupted; then
3270 { $as_echo "$as_me:${as_lineno-$LINENO}: error
: in \
`$ac_pwd':" >&5
3271 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3272 { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
3273 $as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
3274 as_fn_error "run \`make distclean' and
/or \
`rm $cache_file' and start over" "$LINENO" 5
3276 ## -------------------- ##
3277 ## Main body of script. ##
3278 ## -------------------- ##
3281 ac_cpp='$CPP $CPPFLAGS'
3282 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3283 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3284 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3287 ac_config_headers="$ac_config_headers src/config.h:src/config.in"
3291 for ac_dir in build-aux "$srcdir"/build-aux; do
3292 for ac_t in install-sh install.sh shtool; do
3293 if test -f "$ac_dir/$ac_t"; then
3295 ac_install_sh="$ac_aux_dir/$ac_t -c"
3300 if test -z "$ac_aux_dir"; then
3301 as_fn_error "cannot find install-sh, install.sh, or shtool in build-aux \"$srcdir\"/build-aux" "$LINENO" 5
3304 # These three variables are undocumented and unsupported,
3305 # and are intended to be withdrawn in a future Autoconf release.
3306 # They can cause serious problems if a builder's source tree is in a directory
3307 # whose full name contains unusual characters.
3308 ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
3309 ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
3310 ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var.
3313 am__api_version='1.11'
3315 # Find a good install program. We prefer a C program (faster),
3316 # so one script is as good as another. But avoid the broken or
3317 # incompatible versions:
3318 # SysV /etc/install, /usr/sbin/install
3319 # SunOS /usr/etc/install
3320 # IRIX /sbin/install
3322 # AmigaOS /C/install, which installs bootblocks on floppy discs
3323 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
3324 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
3325 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
3326 # OS/2's system install, which has a completely different semantic
3327 # ./install, which can be erroneously created by make from ./install.sh.
3328 # Reject install programs that cannot install multiple files.
3329 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5
3330 $as_echo_n "checking for a BSD-compatible install... " >&6; }
3331 if test -z "$INSTALL"; then
3332 if test "${ac_cv_path_install+set}" = set; then :
3333 $as_echo_n "(cached) " >&6
3335 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3339 test -z "$as_dir" && as_dir=.
3340 # Account for people who put trailing slashes in PATH elements.
3341 case $as_dir/ in #((
3342 ./ | .// | /[cC]/* | \
3343 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
3344 ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \
3347 # OSF1 and SCO ODT 3.0 have their own names for install.
3348 # Don't use installbsd from OSF since it installs stuff as root
3350 for ac_prog in ginstall scoinst install; do
3351 for ac_exec_ext in '' $ac_executable_extensions; do
3352 if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; }; then
3353 if test $ac_prog = install &&
3354 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
3355 # AIX install. It has an incompatible calling convention.
3357 elif test $ac_prog = install &&
3358 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
3359 # program-specific install script used by HP pwplus--don't use.
3362 rm -rf conftest.one conftest.two conftest.dir
3363 echo one > conftest.one
3364 echo two > conftest.two
3366 if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" &&
3367 test -s conftest.one && test -s conftest.two &&
3368 test -s conftest.dir/conftest.one &&
3369 test -s conftest.dir/conftest.two
3371 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
3384 rm -rf conftest.one conftest.two conftest.dir
3387 if test "${ac_cv_path_install+set}" = set; then
3388 INSTALL=$ac_cv_path_install
3390 # As a last resort, use the slow shell script. Don't cache a
3391 # value for INSTALL within a source directory, because that will
3392 # break other packages using the cache if that directory is
3393 # removed, or if the value is a relative name.
3394 INSTALL=$ac_install_sh
3397 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
3398 $as_echo "$INSTALL" >&6; }
3400 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
3401 # It thinks the first close brace ends the variable substitution.
3402 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
3404 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
3406 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
3408 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether build environment is sane" >&5
3409 $as_echo_n "checking whether build environment is sane... " >&6; }
3412 echo timestamp > conftest.file
3413 # Reject unsafe characters in $srcdir or the absolute working directory
3414 # name. Accept space and tab only in the latter.
3418 *[\\\"\#\$\&\'\`$am_lf]*)
3419 as_fn_error
"unsafe absolute working directory name" "$LINENO" 5;;
3422 *[\\\"\
#\$\&\'\`$am_lf\ \ ]*)
3423 as_fn_error
"unsafe srcdir value: \`$srcdir'" "$LINENO" 5;;
3426 # Do `set' in a subshell so we don't clobber the current shell's
3427 # arguments. Must try -L first in case configure is actually a
3428 # symlink; some systems play weird games with the mod time of symlinks
3429 # (eg FreeBSD returns the mod time of the symlink's containing
3432 set X
`ls -Lt "$srcdir/configure" conftest.file 2> /dev/null`
3433 if test "$*" = "X"; then
3435 set X
`ls -t "$srcdir/configure" conftest.file`
3438 if test "$*" != "X $srcdir/configure conftest.file" \
3439 && test "$*" != "X conftest.file $srcdir/configure"; then
3441 # If neither matched, then we have a broken ls. This can happen
3442 # if, for instance, CONFIG_SHELL is bash and it inherits a
3443 # broken ls alias from the environment. This has actually
3444 # happened. Such a system could not be considered "sane".
3445 as_fn_error
"ls -t appears to fail. Make sure there is not a broken
3446 alias in your environment" "$LINENO" 5
3449 test "$2" = conftest.
file
3455 as_fn_error
"newly created file is older than distributed files!
3456 Check your system clock" "$LINENO" 5
3458 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3459 $as_echo "yes" >&6; }
3460 test "$program_prefix" != NONE
&&
3461 program_transform_name
="s&^&$program_prefix&;$program_transform_name"
3462 # Use a double $ so make ignores it.
3463 test "$program_suffix" != NONE
&&
3464 program_transform_name
="s&\$&$program_suffix&;$program_transform_name"
3465 # Double any \ or $.
3466 # By default was `s,x,x', remove it if useless.
3467 ac_script
='s/[\\$]/&&/g;s/;s,x,x,$//'
3468 program_transform_name
=`$as_echo "$program_transform_name" | sed "$ac_script"`
3470 # expand $ac_aux_dir to an absolute path
3471 am_aux_dir
=`cd $ac_aux_dir && pwd`
3473 if test x
"${MISSING+set}" != xset
; then
3476 MISSING
="\${SHELL} \"$am_aux_dir/missing\"" ;;
3478 MISSING
="\${SHELL} $am_aux_dir/missing" ;;
3481 # Use eval to expand $SHELL
3482 if eval "$MISSING --run true"; then
3483 am_missing_run
="$MISSING --run "
3486 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`missing' script is too old or missing" >&5
3487 $as_echo "$as_me: WARNING: \`missing' script is too old or missing" >&2;}
3490 if test x
"${install_sh}" != xset
; then
3493 install_sh
="\${SHELL} '$am_aux_dir/install-sh'" ;;
3495 install_sh
="\${SHELL} $am_aux_dir/install-sh"
3499 # Installed binaries are usually stripped using `strip' when the user
3500 # run `make install-strip'. However `strip' might not be the right
3501 # tool to use in cross-compilation environments, therefore Automake
3502 # will honor the `STRIP' environment variable to overrule this program.
3503 if test "$cross_compiling" != no
; then
3504 if test -n "$ac_tool_prefix"; then
3505 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
3506 set dummy
${ac_tool_prefix}strip
; ac_word
=$2
3507 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3508 $as_echo_n "checking for $ac_word... " >&6; }
3509 if test "${ac_cv_prog_STRIP+set}" = set; then :
3510 $as_echo_n "(cached) " >&6
3512 if test -n "$STRIP"; then
3513 ac_cv_prog_STRIP
="$STRIP" # Let the user override the test.
3515 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
3519 test -z "$as_dir" && as_dir
=.
3520 for ac_exec_ext
in '' $ac_executable_extensions; do
3521 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3522 ac_cv_prog_STRIP
="${ac_tool_prefix}strip"
3523 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3532 STRIP
=$ac_cv_prog_STRIP
3533 if test -n "$STRIP"; then
3534 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
3535 $as_echo "$STRIP" >&6; }
3537 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3538 $as_echo "no" >&6; }
3543 if test -z "$ac_cv_prog_STRIP"; then
3545 # Extract the first word of "strip", so it can be a program name with args.
3546 set dummy strip
; ac_word
=$2
3547 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3548 $as_echo_n "checking for $ac_word... " >&6; }
3549 if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then :
3550 $as_echo_n "(cached) " >&6
3552 if test -n "$ac_ct_STRIP"; then
3553 ac_cv_prog_ac_ct_STRIP
="$ac_ct_STRIP" # Let the user override the test.
3555 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
3559 test -z "$as_dir" && as_dir
=.
3560 for ac_exec_ext
in '' $ac_executable_extensions; do
3561 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3562 ac_cv_prog_ac_ct_STRIP
="strip"
3563 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3572 ac_ct_STRIP
=$ac_cv_prog_ac_ct_STRIP
3573 if test -n "$ac_ct_STRIP"; then
3574 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
3575 $as_echo "$ac_ct_STRIP" >&6; }
3577 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3578 $as_echo "no" >&6; }
3581 if test "x$ac_ct_STRIP" = x
; then
3584 case $cross_compiling:$ac_tool_warned in
3586 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3587 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3588 ac_tool_warned
=yes ;;
3593 STRIP
="$ac_cv_prog_STRIP"
3597 INSTALL_STRIP_PROGRAM
="\$(install_sh) -c -s"
3599 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a thread-safe mkdir -p" >&5
3600 $as_echo_n "checking for a thread-safe mkdir -p... " >&6; }
3601 if test -z "$MKDIR_P"; then
3602 if test "${ac_cv_path_mkdir+set}" = set; then :
3603 $as_echo_n "(cached) " >&6
3605 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
3606 for as_dir
in $PATH$PATH_SEPARATOR/opt
/sfw
/bin
3609 test -z "$as_dir" && as_dir
=.
3610 for ac_prog
in mkdir gmkdir
; do
3611 for ac_exec_ext
in '' $ac_executable_extensions; do
3612 { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; } ||
continue
3613 case `"$as_dir/$ac_prog$ac_exec_ext" --version 2>&1` in #(
3614 'mkdir (GNU coreutils) '* | \
3615 'mkdir (coreutils) '* | \
3616 'mkdir (fileutils) '4.1*)
3617 ac_cv_path_mkdir
=$as_dir/$ac_prog$ac_exec_ext
3627 test -d .
/--version && rmdir .
/--version
3628 if test "${ac_cv_path_mkdir+set}" = set; then
3629 MKDIR_P
="$ac_cv_path_mkdir -p"
3631 # As a last resort, use the slow shell script. Don't cache a
3632 # value for MKDIR_P within a source directory, because that will
3633 # break other packages using the cache if that directory is
3634 # removed, or if the value is a relative name.
3635 MKDIR_P
="$ac_install_sh -d"
3638 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MKDIR_P" >&5
3639 $as_echo "$MKDIR_P" >&6; }
3644 [\\/$
]* | ?
:[\\/]*) ;;
3645 */*) mkdir_p
="\$(top_builddir)/$mkdir_p" ;;
3648 for ac_prog
in gawk mawk nawk
awk
3650 # Extract the first word of "$ac_prog", so it can be a program name with args.
3651 set dummy
$ac_prog; ac_word
=$2
3652 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3653 $as_echo_n "checking for $ac_word... " >&6; }
3654 if test "${ac_cv_prog_AWK+set}" = set; then :
3655 $as_echo_n "(cached) " >&6
3657 if test -n "$AWK"; then
3658 ac_cv_prog_AWK
="$AWK" # Let the user override the test.
3660 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
3664 test -z "$as_dir" && as_dir
=.
3665 for ac_exec_ext
in '' $ac_executable_extensions; do
3666 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3667 ac_cv_prog_AWK
="$ac_prog"
3668 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3678 if test -n "$AWK"; then
3679 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
3680 $as_echo "$AWK" >&6; }
3682 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3683 $as_echo "no" >&6; }
3687 test -n "$AWK" && break
3690 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
3691 $as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
3693 ac_make
=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
3694 if { as_var
=ac_cv_prog_make_
${ac_make}_set; eval "test \"\${$as_var+set}\" = set"; }; then :
3695 $as_echo_n "(cached) " >&6
3697 cat >conftest.
make <<\_ACEOF
3700 @
echo '@@@%%%=$(MAKE)=@@@%%%'
3702 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
3703 case `${MAKE-make} -f conftest.make 2>/dev/null` in
3705 eval ac_cv_prog_make_
${ac_make}_set
=yes;;
3707 eval ac_cv_prog_make_
${ac_make}_set
=no
;;
3711 if eval test \
$ac_cv_prog_make_${ac_make}_set
= yes; then
3712 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3713 $as_echo "yes" >&6; }
3716 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3717 $as_echo "no" >&6; }
3718 SET_MAKE
="MAKE=${MAKE-make}"
3721 rm -rf .tst
2>/dev
/null
3722 mkdir .tst
2>/dev
/null
3723 if test -d .tst
; then
3728 rmdir .tst
2>/dev
/null
3730 if test "`cd $srcdir && pwd`" != "`pwd`"; then
3731 # Use -I$(srcdir) only when $(srcdir) != ., so that make's output
3732 # is not polluted with repeated "-I."
3733 am__isrc
=' -I$(srcdir)'
3734 # test to see if srcdir already configured
3735 if test -f $srcdir/config.status
; then
3736 as_fn_error
"source directory already configured; run \"make distclean\" there first" "$LINENO" 5
3740 # test whether we have cygpath
3741 if test -z "$CYGPATH_W"; then
3742 if (cygpath
--version) >/dev
/null
2>/dev
/null
; then
3743 CYGPATH_W
='cygpath -w'
3750 # Define the identity of the package.
3755 cat >>confdefs.h
<<_ACEOF
3756 #define PACKAGE "$PACKAGE"
3760 cat >>confdefs.h
<<_ACEOF
3761 #define VERSION "$VERSION"
3764 # Some tools Automake needs.
3766 ACLOCAL
=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
3769 AUTOCONF
=${AUTOCONF-"${am_missing_run}autoconf"}
3772 AUTOMAKE
=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
3775 AUTOHEADER
=${AUTOHEADER-"${am_missing_run}autoheader"}
3778 MAKEINFO
=${MAKEINFO-"${am_missing_run}makeinfo"}
3780 # We need awk for the "check" target. The system "awk" is bad on
3782 # Always define AMTAR for backward compatibility.
3784 AMTAR
=${AMTAR-"${am_missing_run}tar"}
3786 am__tar
='${AMTAR} chof - "$$tardir"'; am__untar
='${AMTAR} xf -'
3795 lispdir
='${datadir}/emacs/${version}/lisp'
3796 locallisppath
='${datadir}/emacs/${version}/site-lisp:'\
3797 '${datadir}/emacs/site-lisp'
3798 lisppath
='${locallisppath}:${lispdir}:${datadir}/emacs/${version}/leim'
3799 etcdir
='${datadir}/emacs/${version}/etc'
3800 archlibdir
='${libexecdir}/emacs/${version}/${configuration}'
3801 docdir
='${datadir}/emacs/${version}/etc'
3802 gamedir
='${localstatedir}/games/emacs'
3807 # Check whether --with-pop was given.
3808 if test "${with_pop+set}" = set; then :
3814 if test "$with_pop" = yes; then
3815 $as_echo "#define MAIL_USE_POP 1" >>confdefs.h
3820 # Check whether --with-kerberos was given.
3821 if test "${with_kerberos+set}" = set; then :
3822 withval
=$with_kerberos;
3827 if test "$with_kerberos" != no
; then
3828 $as_echo "#define KERBEROS 1" >>confdefs.h
3833 # Check whether --with-kerberos5 was given.
3834 if test "${with_kerberos5+set}" = set; then :
3835 withval
=$with_kerberos5;
3840 if test "${with_kerberos5}" != no
; then
3841 if test "${with_kerberos}" = no
; then
3843 $as_echo "#define KERBEROS 1" >>confdefs.h
3847 $as_echo "#define KERBEROS5 1" >>confdefs.h
3852 # Check whether --with-hesiod was given.
3853 if test "${with_hesiod+set}" = set; then :
3854 withval
=$with_hesiod;
3859 if test "$with_hesiod" != no
; then
3861 $as_echo "#define HESIOD 1" >>confdefs.h
3866 # Check whether --with-mmdf was given.
3867 if test "${with_mmdf+set}" = set; then :
3873 if test "$with_mmdf" != no
; then
3875 $as_echo "#define MAIL_USE_MMDF 1" >>confdefs.h
3880 # Check whether --with-mail-unlink was given.
3881 if test "${with_mail_unlink+set}" = set; then :
3882 withval
=$with_mail_unlink;
3887 if test "$with_mail_unlink" != no
; then
3889 $as_echo "#define MAIL_UNLINK_SPOOL 1" >>confdefs.h
3894 # Check whether --with-mailhost was given.
3895 if test "${with_mailhost+set}" = set; then :
3896 withval
=$with_mailhost;
3897 cat >>confdefs.h
<<_ACEOF
3898 #define MAILHOST "$withval"
3905 # Check whether --with-sound was given.
3906 if test "${with_sound+set}" = set; then :
3907 withval
=$with_sound;
3914 # Check whether --with-sync-input was given.
3915 if test "${with_sync_input+set}" = set; then :
3916 withval
=$with_sync_input;
3921 if test "$with_sync_input" = yes; then
3923 $as_echo "#define SYNC_INPUT 1" >>confdefs.h
3928 # Check whether --with-x-toolkit was given.
3929 if test "${with_x_toolkit+set}" = set; then :
3930 withval
=$with_x_toolkit; case "${withval}" in
3931 y | ye |
yes ) val
=gtk
;;
3933 l | lu | luc | luci | lucid
) val
=lucid
;;
3934 a |
at | ath | athe | athen | athena
) val
=athena
;;
3935 m | mo | mot | moti | motif
) val
=motif
;;
3936 g | gt | gtk
) val
=gtk
;;
3939 as_fn_error
"\`--with-x-toolkit=$withval' is invalid;
3940 this option's value should be \`yes', \`no', \`lucid', \`athena', \`motif', \`gtk' or
3941 \`gtk3'. \`yes' and \`gtk' are synonyms. \`athena' and \`lucid' are synonyms." "$LINENO" 5
3950 # Check whether --with-wide-int was given.
3951 if test "${with_wide_int+set}" = set; then :
3952 withval
=$with_wide_int;
3957 if test "$with_wide_int" = yes; then
3959 $as_echo "#define WIDE_EMACS_INT 1" >>confdefs.h
3964 # Check whether --with-xpm was given.
3965 if test "${with_xpm+set}" = set; then :
3972 # Check whether --with-jpeg was given.
3973 if test "${with_jpeg+set}" = set; then :
3980 # Check whether --with-tiff was given.
3981 if test "${with_tiff+set}" = set; then :
3988 # Check whether --with-gif was given.
3989 if test "${with_gif+set}" = set; then :
3996 # Check whether --with-png was given.
3997 if test "${with_png+set}" = set; then :
4004 # Check whether --with-rsvg was given.
4005 if test "${with_rsvg+set}" = set; then :
4012 # Check whether --with-xml2 was given.
4013 if test "${with_xml2+set}" = set; then :
4020 # Check whether --with-imagemagick was given.
4021 if test "${with_imagemagick+set}" = set; then :
4022 withval
=$with_imagemagick;
4024 with_imagemagick
=yes
4029 # Check whether --with-xft was given.
4030 if test "${with_xft+set}" = set; then :
4037 # Check whether --with-libotf was given.
4038 if test "${with_libotf+set}" = set; then :
4039 withval
=$with_libotf;
4045 # Check whether --with-m17n-flt was given.
4046 if test "${with_m17n_flt+set}" = set; then :
4047 withval
=$with_m17n_flt;
4054 # Check whether --with-toolkit-scroll-bars was given.
4055 if test "${with_toolkit_scroll_bars+set}" = set; then :
4056 withval
=$with_toolkit_scroll_bars;
4058 with_toolkit_scroll_bars
=yes
4062 # Check whether --with-xaw3d was given.
4063 if test "${with_xaw3d+set}" = set; then :
4064 withval
=$with_xaw3d;
4070 # Check whether --with-xim was given.
4071 if test "${with_xim+set}" = set; then :
4078 # Check whether --with-ns was given.
4079 if test "${with_ns+set}" = set; then :
4087 # Check whether --with-gpm was given.
4088 if test "${with_gpm+set}" = set; then :
4095 # Check whether --with-dbus was given.
4096 if test "${with_dbus+set}" = set; then :
4103 # Check whether --with-gconf was given.
4104 if test "${with_gconf+set}" = set; then :
4105 withval
=$with_gconf;
4111 # Check whether --with-selinux was given.
4112 if test "${with_selinux+set}" = set; then :
4113 withval
=$with_selinux;
4119 # Check whether --with-gnutls was given.
4120 if test "${with_gnutls+set}" = set; then :
4121 withval
=$with_gnutls;
4127 ## For the times when you want to build Emacs but don't have
4128 ## a suitable makeinfo, and can live without the manuals.
4130 # Check whether --with-makeinfo was given.
4131 if test "${with_makeinfo+set}" = set; then :
4132 withval
=$with_makeinfo;
4138 ## This is an option because I do not know if all info/man support
4139 ## compressed files, nor how to test if they do so.
4141 # Check whether --with-compress-info was given.
4142 if test "${with_compress_info+set}" = set; then :
4143 withval
=$with_compress_info;
4145 with_compress_info
=yes
4148 if test $with_compress_info = yes; then
4156 # Check whether --with-pkg-config-prog was given.
4157 if test "${with_pkg_config_prog+set}" = set; then :
4158 withval
=$with_pkg_config_prog;
4161 if test "X${with_pkg_config_prog}" != X
; then
4162 if test "${with_pkg_config_prog}" != yes; then
4163 PKG_CONFIG
="${with_pkg_config_prog}"
4169 # Check whether --with-crt-dir was given.
4170 if test "${with_crt_dir+set}" = set; then :
4171 withval
=$with_crt_dir;
4174 CRT_DIR
="${with_crt_dir}"
4177 # Check whether --with-gameuser was given.
4178 if test "${with_gameuser+set}" = set; then :
4179 withval
=$with_gameuser;
4182 test "X${with_gameuser}" != X
&& test "${with_gameuser}" != yes \
4183 && gameuser
="${with_gameuser}"
4184 test "X$gameuser" = X
&& gameuser
=games
4187 # Check whether --with-gnustep-conf was given.
4188 if test "${with_gnustep_conf+set}" = set; then :
4189 withval
=$with_gnustep_conf;
4192 test "X${with_gnustep_conf}" != X
&& test "${with_gnustep_conf}" != yes && \
4193 GNUSTEP_CONFIG_FILE
="${with_gnustep_conf}"
4194 test "X$GNUSTEP_CONFIG_FILE" = "X" && \
4195 GNUSTEP_CONFIG_FILE
=/etc
/GNUstep
/GNUstep.conf
4197 # Check whether --enable-ns-self-contained was given.
4198 if test "${enable_ns_self_contained+set}" = set; then :
4199 enableval
=$enable_ns_self_contained; EN_NS_SELF_CONTAINED
=$enableval
4201 EN_NS_SELF_CONTAINED
=yes
4205 # Check whether --enable-asserts was given.
4206 if test "${enable_asserts+set}" = set; then :
4207 enableval
=$enable_asserts; USE_XASSERTS
=$enableval
4213 # Check whether --enable-maintainer-mode was given.
4214 if test "${enable_maintainer_mode+set}" = set; then :
4215 enableval
=$enable_maintainer_mode; USE_MAINTAINER_MODE
=$enableval
4217 USE_MAINTAINER_MODE
=yes
4220 if test $USE_MAINTAINER_MODE = yes; then
4227 # Check whether --enable-locallisppath was given.
4228 if test "${enable_locallisppath+set}" = set; then :
4229 enableval
=$enable_locallisppath; if test "${enableval}" = "no"; then
4231 elif test "${enableval}" != "yes"; then
4232 locallisppath
=${enableval}
4237 # Check whether --enable-checking was given.
4238 if test "${enable_checking+set}" = set; then :
4239 enableval
=$enable_checking; ac_checking_flags
="${enableval}"
4242 IFS
="${IFS= }"; ac_save_IFS
="$IFS"; IFS
="$IFS,"
4243 for check
in $ac_checking_flags
4246 # these set all the flags to specific states
4247 yes) ac_enable_checking
=1 ;;
4248 no
) ac_enable_checking
= ;
4249 ac_gc_check_stringbytes
= ;
4250 ac_gc_check_string_overrun
= ;
4251 ac_gc_check_string_free_list
= ;
4252 ac_xmalloc_overrun
= ;
4253 ac_gc_check_cons_list
= ;;
4254 all
) ac_enable_checking
=1 ;
4255 ac_gc_check_stringbytes
=1 ;
4256 ac_gc_check_string_overrun
=1 ;
4257 ac_gc_check_string_free_list
=1 ;
4258 ac_xmalloc_overrun
=1 ;
4259 ac_gc_check_cons_list
=1 ;;
4260 # these enable particular checks
4261 stringbytes
) ac_gc_check_stringbytes
=1 ;;
4262 stringoverrun
) ac_gc_check_string_overrun
=1 ;;
4263 stringfreelist
) ac_gc_check_string_free_list
=1 ;;
4264 xmallocoverrun
) ac_xmalloc_overrun
=1 ;;
4265 conslist
) ac_gc_check_cons_list
=1 ;;
4266 *) as_fn_error
"unknown check category $check" "$LINENO" 5 ;;
4271 if test x
$ac_enable_checking != x
; then
4273 $as_echo "#define ENABLE_CHECKING 1" >>confdefs.h
4276 if test x
$ac_gc_check_stringbytes != x
; then
4278 $as_echo "#define GC_CHECK_STRING_BYTES 1" >>confdefs.h
4281 if test x
$ac_gc_check_string_overrun != x
; then
4283 $as_echo "#define GC_CHECK_STRING_OVERRUN 1" >>confdefs.h
4286 if test x
$ac_gc_check_string_free_list != x
; then
4288 $as_echo "#define GC_CHECK_STRING_FREE_LIST 1" >>confdefs.h
4291 if test x
$ac_xmalloc_overrun != x
; then
4293 $as_echo "#define XMALLOC_OVERRUN_CHECK 1" >>confdefs.h
4296 if test x
$ac_gc_check_cons_list != x
; then
4298 $as_echo "#define GC_CHECK_CONS_LIST 1" >>confdefs.h
4302 # Check whether --enable-use-lisp-union-type was given.
4303 if test "${enable_use_lisp_union_type+set}" = set; then :
4304 enableval
=$enable_use_lisp_union_type; if test "${enableval}" != "no"; then
4306 $as_echo "#define USE_LISP_UNION_TYPE 1" >>confdefs.h
4313 # Check whether --enable-profiling was given.
4314 if test "${enable_profiling+set}" = set; then :
4315 enableval
=$enable_profiling; ac_enable_profiling
="${enableval}"
4318 if test x
$ac_enable_profiling != x
; then
4319 PROFILING_CFLAGS
="-DPROFILING=1 -pg"
4325 # Check whether --enable-autodepend was given.
4326 if test "${enable_autodepend+set}" = set; then :
4327 enableval
=$enable_autodepend; ac_enable_autodepend
="${enableval}"
4329 ac_enable_autodepend
=yes
4333 #### Make srcdir absolute, if it isn't already. It's important to
4334 #### avoid running the path through pwd unnecessarily, since pwd can
4335 #### give you automounter prefixes, which can go away. We do all this
4336 #### so Emacs can find its files when run uninstalled.
4337 ## Make sure CDPATH doesn't affect cd (in case PWD is relative).
4342 ## We may be able to use the $PWD environment variable to make this
4343 ## absolute. But sometimes PWD is inaccurate.
4344 ## Note: we used to use ${PWD} at the end instead of `pwd`,
4345 ## but that tested only for a well-formed and valid PWD,
4346 ## it did not object when PWD was well-formed and valid but just wrong.
4347 if test ".${PWD}" != "." && test ".`(cd ${PWD} ; sh -c pwd)`" = ".`pwd`" ;
4351 srcdir
="`(cd ${srcdir}; pwd)`"
4354 * ) srcdir
="`(cd ${srcdir}; pwd)`" ;;
4357 #### Given the configuration name, set machfile and opsysfile to the
4358 #### names of the m/*.h and s/*.h files we should use.
4360 ### Canonicalize the configuration name.
4362 # Make sure we can run config.sub.
4363 $SHELL "$ac_aux_dir/config.sub" sun4
>/dev
/null
2>&1 ||
4364 as_fn_error
"cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5
4366 { $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
4367 $as_echo_n "checking build system type... " >&6; }
4368 if test "${ac_cv_build+set}" = set; then :
4369 $as_echo_n "(cached) " >&6
4371 ac_build_alias
=$build_alias
4372 test "x$ac_build_alias" = x
&&
4373 ac_build_alias
=`$SHELL "$ac_aux_dir/config.guess"`
4374 test "x$ac_build_alias" = x
&&
4375 as_fn_error
"cannot guess build type; you must specify one" "$LINENO" 5
4376 ac_cv_build
=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
4377 as_fn_error
"$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5
4380 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
4381 $as_echo "$ac_cv_build" >&6; }
4382 case $ac_cv_build in
4384 *) as_fn_error
"invalid value of canonical build" "$LINENO" 5;;
4387 ac_save_IFS
=$IFS; IFS
='-'
4393 # Remember, the first character of IFS is used to create $*,
4394 # except with old shells:
4397 case $build_os in *\
*) build_os
=`echo "$build_os" | sed 's/ /-/g'`;; esac
4400 { $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
4401 $as_echo_n "checking host system type... " >&6; }
4402 if test "${ac_cv_host+set}" = set; then :
4403 $as_echo_n "(cached) " >&6
4405 if test "x$host_alias" = x
; then
4406 ac_cv_host
=$ac_cv_build
4408 ac_cv_host
=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
4409 as_fn_error
"$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5
4413 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
4414 $as_echo "$ac_cv_host" >&6; }
4417 *) as_fn_error
"invalid value of canonical host" "$LINENO" 5;;
4420 ac_save_IFS
=$IFS; IFS
='-'
4426 # Remember, the first character of IFS is used to create $*,
4427 # except with old shells:
4430 case $host_os in *\
*) host_os
=`echo "$host_os" | sed 's/ /-/g'`;; esac
4434 configuration
=${host_alias-${build_alias-$host}}
4438 ### If you add support for a new configuration, add code to this
4439 ### switch statement to recognize your configuration name and select
4440 ### the appropriate operating system and machine description files.
4442 ### You would hope that you could choose an m/*.h file pretty much
4443 ### based on the machine portion of the configuration name, and an s/*.h
4444 ### file based on the operating system portion. However, it turns out
4445 ### that each m/*.h file is pretty manufacturer-specific - for
4446 ### example mips.h is MIPS
4447 ### So we basically have to have a special case for each
4448 ### configuration name.
4450 ### As far as handling version numbers on operating systems is
4451 ### concerned, make sure things will fail in a fixable way. If
4452 ### /etc/MACHINES doesn't say anything about version numbers, be
4453 ### prepared to handle anything reasonably. If version numbers
4454 ### matter, be sure /etc/MACHINES says something about it.
4456 machine
='' opsys
='' unported
=no
4457 case "${canonical}" in
4459 ## GNU/Linux and similar ports
4462 case ${canonical} in
4463 alpha
*) machine
=alpha
;;
4464 s390-
*) machine
=ibms390
;;
4465 s390x-
*) machine
=ibms390x
;;
4466 powerpc
*) machine
=macppc
;;
4467 sparc
*) machine
=sparc
;;
4468 ia64
*) machine
=ia64
;;
4469 m68k
*) machine
=m68k
;;
4470 x86_64
*) machine
=amdx86-64
;;
4477 case "${canonical}" in
4478 alpha
*) machine
=alpha
;;
4479 amd64-
*|x86_64-
*) machine
=amdx86-64
;;
4480 ia64-
*) machine
=ia64
;;
4481 i
[3456]86-*) machine
=intel386
;;
4482 powerpc-
*) machine
=macppc
;;
4483 sparc-
*) machine
=sparc
;;
4484 sparc64-
*) machine
=sparc
;;
4488 ## FreeBSD kernel + glibc based userland
4491 case "${canonical}" in
4492 alpha
*) machine
=alpha
;;
4493 amd64-
*|x86_64-
*) machine
=amdx86-64
;;
4494 ia64-
*) machine
=ia64
;;
4495 i
[3456]86-*) machine
=intel386
;;
4496 powerpc-
*) machine
=macppc
;;
4497 sparc-
*) machine
=sparc
;;
4498 sparc64-
*) machine
=sparc
;;
4505 case "${canonical}" in
4506 alpha
*) machine
=alpha
;;
4507 x86_64-
*) machine
=amdx86-64
;;
4508 i
[3456]86-*) machine
=intel386
;;
4509 m68k-
*) machine
=m68k
;;
4510 powerpc-
*) machine
=macppc
;;
4511 sparc
*-) machine
=sparc
;;
4512 vax-
*) machine
=vax
;;
4519 case "${canonical}" in
4520 alpha
*) machine
=alpha
;;
4521 x86_64-
*) machine
=amdx86-64
;;
4522 i386-
*) machine
=intel386
;;
4523 powerpc-
*) machine
=macppc
;;
4524 sparc
*) machine
=sparc
;;
4525 vax-
*) machine
=vax
;;
4529 ## Apple Darwin / Mac OS X
4531 case "${canonical}" in
4532 i
[3456]86-* ) machine
=intel386
;;
4533 powerpc-
* ) machine
=macppc
;;
4534 x86_64-
* ) machine
=amdx86-64
;;
4538 # Define CPP as follows to make autoconf work correctly.
4539 CPP
="${CC-cc} -E -no-cpp-precomp"
4540 # Use fink packages if available.
4541 if test -d /sw
/include
&& test -d /sw
/lib
; then
4542 GCC_TEST_OPTIONS
="-I/sw/include -L/sw/lib"
4543 CPP
="${CPP} ${GCC_TEST_OPTIONS}"
4544 NON_GCC_TEST_OPTIONS
=${GCC_TEST_OPTIONS}
4548 ## HP 9000 series 700 and 800, running HP/UX
4549 hppa
*-hp-hpux10.2
* )
4552 hppa
*-hp-hpux1[1-9]* )
4554 CFLAGS
="-D_INCLUDE__STDC_A1_SOURCE $CFLAGS"
4558 rs6000-ibm-aix4.
[23]* )
4559 machine
=ibmrs6000 opsys
=aix4-2
4561 powerpc-ibm-aix4.
[23]* )
4562 machine
=ibmrs6000 opsys
=aix4-2
4564 rs6000-ibm-aix
[56]* )
4565 machine
=ibmrs6000 opsys
=aix4-2
4567 powerpc-ibm-aix
[56]* )
4568 machine
=ibmrs6000 opsys
=aix4-2
4571 ## Silicon Graphics machines
4574 machine
=iris4d opsys
=irix6-5
4575 # Without defining _LANGUAGE_C, things get masked out in the headers
4576 # so that, for instance, grepping for `free' in stdlib.h fails and
4577 # AC_HEADER_STD_C fails. (MIPSPro 7.2.1.2m compilers, Irix 6.5.3m).
4578 NON_GNU_CPP
="/lib/cpp -D_LANGUAGE_C"
4579 NON_GCC_TEST_OPTIONS
="-D_LANGUAGE_C"
4584 | i
[3456]86-*-solaris2* | i
[3456]86-*-sunos5* \
4585 | x86_64-
*-solaris2* | x86_64-
*-sunos5*)
4586 case "${canonical}" in
4587 i
[3456]86-*-* ) machine
=intel386
;;
4588 amd64-
*-*|x86_64-
*-*) machine
=amdx86-64
;;
4589 sparc
* ) machine
=sparc
;;
4592 case "${canonical}" in
4593 *-sunos5.6
* |
*-solaris2.6
* )
4595 NON_GNU_CPP
=/usr
/ccs
/lib
/cpp
4598 *-sunos5.
[7-9]* |
*-solaris2.
[7-9]* )
4600 emacs_check_sunpro_c
=yes
4601 NON_GNU_CPP
=/usr
/ccs
/lib
/cpp
4603 *-sunos5* |
*-solaris* )
4605 emacs_check_sunpro_c
=yes
4606 NON_GNU_CPP
=/usr
/ccs
/lib
/cpp
4609 ## Watch out for a compiler that we know will not work.
4610 case "${canonical}" in
4611 *-solaris* |
*-sunos5* )
4612 if [ "x$CC" = x
/usr
/ucb
/cc
]; then
4613 ## /usr/ucb/cc doesn't work;
4614 ## we should find some other compiler that does work.
4622 ## Intel 386 machines where we don't care about the manufacturer.
4625 case "${canonical}" in
4626 *-cygwin ) opsys
=cygwin
;;
4627 *-darwin* ) opsys
=darwin
4628 CPP
="${CC-cc} -E -no-cpp-precomp"
4630 *-sysv4.2uw
* ) opsys
=unixware
; NON_GNU_CPP
=/lib
/cpp
;;
4631 *-sysv5uw* ) opsys
=unixware
; NON_GNU_CPP
=/lib
/cpp
;;
4632 *-sysv5OpenUNIX* ) opsys
=unixware
; NON_GNU_CPP
=/lib
/cpp
;;
4633 ## Otherwise, we'll fall through to the generic opsys code at the bottom.
4642 ### If the code above didn't choose an operating system, just choose
4643 ### an operating system based on the configuration name. You really
4644 ### only want to use this when you have no idea what the right
4645 ### operating system is; if you know what operating systems a machine
4646 ### runs, it's cleaner to make it explicit in the case statement
4648 if test x
"${opsys}" = x
; then
4649 case "${canonical}" in
4650 *-gnu* ) opsys
=gnu
;;
4659 if test $unported = yes; then
4660 as_fn_error
"Emacs hasn't been ported to \`${canonical}' systems.
4661 Check \`etc/MACHINES' for recognized configuration names." "$LINENO" 5
4664 if test -n "$machine"; then
4665 machfile
="m/${machine}.h"
4669 opsysfile
="s/${opsys}.h"
4672 #### Choose a compiler.
4673 test -n "$CC" && cc_specified
=yes
4675 # Save the value of CFLAGS that the user specified.
4676 SPECIFIED_CFLAGS
="$CFLAGS"
4679 ac_cpp
='$CPP $CPPFLAGS'
4680 ac_compile
='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4681 ac_link
='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4682 ac_compiler_gnu
=$ac_cv_c_compiler_gnu
4683 if test -n "$ac_tool_prefix"; then
4684 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
4685 set dummy
${ac_tool_prefix}gcc
; ac_word
=$2
4686 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4687 $as_echo_n "checking for $ac_word... " >&6; }
4688 if test "${ac_cv_prog_CC+set}" = set; then :
4689 $as_echo_n "(cached) " >&6
4691 if test -n "$CC"; then
4692 ac_cv_prog_CC
="$CC" # Let the user override the test.
4694 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
4698 test -z "$as_dir" && as_dir
=.
4699 for ac_exec_ext
in '' $ac_executable_extensions; do
4700 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4701 ac_cv_prog_CC
="${ac_tool_prefix}gcc"
4702 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4712 if test -n "$CC"; then
4713 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
4714 $as_echo "$CC" >&6; }
4716 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4717 $as_echo "no" >&6; }
4722 if test -z "$ac_cv_prog_CC"; then
4724 # Extract the first word of "gcc", so it can be a program name with args.
4725 set dummy gcc
; ac_word
=$2
4726 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4727 $as_echo_n "checking for $ac_word... " >&6; }
4728 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then :
4729 $as_echo_n "(cached) " >&6
4731 if test -n "$ac_ct_CC"; then
4732 ac_cv_prog_ac_ct_CC
="$ac_ct_CC" # Let the user override the test.
4734 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
4738 test -z "$as_dir" && as_dir
=.
4739 for ac_exec_ext
in '' $ac_executable_extensions; do
4740 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4741 ac_cv_prog_ac_ct_CC
="gcc"
4742 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4751 ac_ct_CC
=$ac_cv_prog_ac_ct_CC
4752 if test -n "$ac_ct_CC"; then
4753 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
4754 $as_echo "$ac_ct_CC" >&6; }
4756 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4757 $as_echo "no" >&6; }
4760 if test "x$ac_ct_CC" = x
; then
4763 case $cross_compiling:$ac_tool_warned in
4765 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4766 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4767 ac_tool_warned
=yes ;;
4775 if test -z "$CC"; then
4776 if test -n "$ac_tool_prefix"; then
4777 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
4778 set dummy
${ac_tool_prefix}cc
; ac_word
=$2
4779 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4780 $as_echo_n "checking for $ac_word... " >&6; }
4781 if test "${ac_cv_prog_CC+set}" = set; then :
4782 $as_echo_n "(cached) " >&6
4784 if test -n "$CC"; then
4785 ac_cv_prog_CC
="$CC" # Let the user override the test.
4787 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
4791 test -z "$as_dir" && as_dir
=.
4792 for ac_exec_ext
in '' $ac_executable_extensions; do
4793 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4794 ac_cv_prog_CC
="${ac_tool_prefix}cc"
4795 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4805 if test -n "$CC"; then
4806 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
4807 $as_echo "$CC" >&6; }
4809 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4810 $as_echo "no" >&6; }
4816 if test -z "$CC"; then
4817 # Extract the first word of "cc", so it can be a program name with args.
4818 set dummy cc
; ac_word
=$2
4819 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4820 $as_echo_n "checking for $ac_word... " >&6; }
4821 if test "${ac_cv_prog_CC+set}" = set; then :
4822 $as_echo_n "(cached) " >&6
4824 if test -n "$CC"; then
4825 ac_cv_prog_CC
="$CC" # Let the user override the test.
4828 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
4832 test -z "$as_dir" && as_dir
=.
4833 for ac_exec_ext
in '' $ac_executable_extensions; do
4834 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4835 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
4836 ac_prog_rejected
=yes
4840 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4847 if test $ac_prog_rejected = yes; then
4848 # We found a bogon in the path, so make sure we never use it.
4849 set dummy
$ac_cv_prog_CC
4851 if test $# != 0; then
4852 # We chose a different compiler from the bogus one.
4853 # However, it has the same basename, so the bogon will be chosen
4854 # first if we set CC to just the basename; use the full file name.
4856 ac_cv_prog_CC
="$as_dir/$ac_word${1+' '}$@"
4862 if test -n "$CC"; then
4863 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
4864 $as_echo "$CC" >&6; }
4866 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4867 $as_echo "no" >&6; }
4872 if test -z "$CC"; then
4873 if test -n "$ac_tool_prefix"; then
4874 for ac_prog
in cl.exe
4876 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
4877 set dummy
$ac_tool_prefix$ac_prog; ac_word
=$2
4878 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4879 $as_echo_n "checking for $ac_word... " >&6; }
4880 if test "${ac_cv_prog_CC+set}" = set; then :
4881 $as_echo_n "(cached) " >&6
4883 if test -n "$CC"; then
4884 ac_cv_prog_CC
="$CC" # Let the user override the test.
4886 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
4890 test -z "$as_dir" && as_dir
=.
4891 for ac_exec_ext
in '' $ac_executable_extensions; do
4892 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4893 ac_cv_prog_CC
="$ac_tool_prefix$ac_prog"
4894 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4904 if test -n "$CC"; then
4905 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
4906 $as_echo "$CC" >&6; }
4908 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4909 $as_echo "no" >&6; }
4913 test -n "$CC" && break
4916 if test -z "$CC"; then
4918 for ac_prog
in cl.exe
4920 # Extract the first word of "$ac_prog", so it can be a program name with args.
4921 set dummy
$ac_prog; ac_word
=$2
4922 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4923 $as_echo_n "checking for $ac_word... " >&6; }
4924 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then :
4925 $as_echo_n "(cached) " >&6
4927 if test -n "$ac_ct_CC"; then
4928 ac_cv_prog_ac_ct_CC
="$ac_ct_CC" # Let the user override the test.
4930 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
4934 test -z "$as_dir" && as_dir
=.
4935 for ac_exec_ext
in '' $ac_executable_extensions; do
4936 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4937 ac_cv_prog_ac_ct_CC
="$ac_prog"
4938 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4947 ac_ct_CC
=$ac_cv_prog_ac_ct_CC
4948 if test -n "$ac_ct_CC"; then
4949 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
4950 $as_echo "$ac_ct_CC" >&6; }
4952 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4953 $as_echo "no" >&6; }
4957 test -n "$ac_ct_CC" && break
4960 if test "x$ac_ct_CC" = x
; then
4963 case $cross_compiling:$ac_tool_warned in
4965 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4966 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4967 ac_tool_warned
=yes ;;
4976 test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4977 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4978 as_fn_error
"no acceptable C compiler found in \$PATH
4979 See \`config.log' for more details." "$LINENO" 5; }
4981 # Provide some information about the compiler.
4982 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
4985 for ac_option
in --version -v -V -qversion; do
4986 { { ac_try
="$ac_compiler $ac_option >&5"
4988 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
4989 *) ac_try_echo=$ac_try;;
4991 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4992 $as_echo "$ac_try_echo"; } >&5
4993 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
4995 if test -s conftest.err; then
4997 ... rest of stderr output deleted ...
4998 10q' conftest.err >conftest.er1
4999 cat conftest.er1 >&5
5001 rm -f conftest.er1 conftest.err
5002 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5003 test $ac_status = 0; }
5006 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5007 /* end confdefs.h. */
5017 ac_clean_files_save=$ac_clean_files
5018 ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
5019 # Try to create an executable without -o first, disregard a.out.
5020 # It will help us diagnose broken compilers, and finding out an intuition
5022 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
5023 $as_echo_n "checking whether the C compiler works... " >&6; }
5024 ac_link_default=`$as_echo "$ac_link" |
sed 's/ -o *conftest[^ ]*//'`
5026 # The possible output files:
5027 ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
5030 for ac_file in $ac_files
5033 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
5034 * ) ac_rmfiles="$ac_rmfiles $ac_file";;
5039 if { { ac_try="$ac_link_default"
5041 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
5042 *) ac_try_echo
=$ac_try;;
5044 eval ac_try_echo
="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
5045 $as_echo "$ac_try_echo"; } >&5
5046 (eval "$ac_link_default") 2>&5
5048 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5049 test $ac_status = 0; }; then :
5050 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
5051 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
5052 # in a Makefile. We should not override ac_cv_exeext if it was cached,
5053 # so that the user can short-circuit this test for compilers unknown to
5055 for ac_file
in $ac_files ''
5057 test -f "$ac_file" ||
continue
5059 *.
$ac_ext |
*.xcoff |
*.tds |
*.d |
*.pdb |
*.xSYM |
*.bb |
*.bbg |
*.map |
*.inf |
*.dSYM |
*.o |
*.obj
)
5062 # We found the default executable, but exeext='' is most
5066 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no
;
5068 ac_cv_exeext
=`expr "$ac_file" : '[^.]*\(\..*\)'`
5070 # We set ac_cv_exeext here because the later test for it is not
5071 # safe: cross compilers may not add the suffix if given an `-o'
5072 # argument, so we may need to know it at that point already.
5073 # Even if this section looks crufty: it has the advantage of
5080 test "$ac_cv_exeext" = no
&& ac_cv_exeext
=
5085 if test -z "$ac_file"; then :
5086 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5087 $as_echo "no" >&6; }
5088 $as_echo "$as_me: failed program was:" >&5
5089 sed 's/^/| /' conftest.
$ac_ext >&5
5091 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
5092 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
5093 { as_fn_set_status
77
5094 as_fn_error
"C compiler cannot create executables
5095 See \`config.log' for more details." "$LINENO" 5; }; }
5097 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5098 $as_echo "yes" >&6; }
5100 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
5101 $as_echo_n "checking for C compiler default output file name... " >&6; }
5102 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
5103 $as_echo "$ac_file" >&6; }
5104 ac_exeext
=$ac_cv_exeext
5106 rm -f -r a.out a.out.dSYM a.exe conftest
$ac_cv_exeext b.out
5107 ac_clean_files
=$ac_clean_files_save
5108 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
5109 $as_echo_n "checking for suffix of executables... " >&6; }
5110 if { { ac_try
="$ac_link"
5112 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
5113 *) ac_try_echo=$ac_try;;
5115 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
5116 $as_echo "$ac_try_echo"; } >&5
5117 (eval "$ac_link") 2>&5
5119 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5120 test $ac_status = 0; }; then :
5121 # If both `conftest.exe
' and `conftest' are
`present' (well, observable)
5122 # catch `conftest.exe
'. For instance with Cygwin, `ls conftest' will
5123 # work properly (i.e., refer to `conftest.exe'), while it won't with
5125 for ac_file
in conftest.exe conftest conftest.
*; do
5126 test -f "$ac_file" ||
continue
5128 *.
$ac_ext |
*.xcoff |
*.tds |
*.d |
*.pdb |
*.xSYM |
*.bb |
*.bbg |
*.map |
*.inf |
*.dSYM |
*.o |
*.obj
) ;;
5129 *.
* ) ac_cv_exeext
=`expr "$ac_file" : '[^.]*\(\..*\)'`
5135 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
5136 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
5137 as_fn_error
"cannot compute suffix of executables: cannot compile and link
5138 See \`config.log' for more details." "$LINENO" 5; }
5140 rm -f conftest conftest
$ac_cv_exeext
5141 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
5142 $as_echo "$ac_cv_exeext" >&6; }
5144 rm -f conftest.
$ac_ext
5145 EXEEXT
=$ac_cv_exeext
5147 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
5148 /* end confdefs.h. */
5153 FILE *f = fopen ("conftest.out", "w");
5154 return ferror (f) || fclose (f) != 0;
5160 ac_clean_files
="$ac_clean_files conftest.out"
5161 # Check that the compiler produces executables we can run. If not, either
5162 # the compiler is broken, or we cross compile.
5163 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
5164 $as_echo_n "checking whether we are cross compiling... " >&6; }
5165 if test "$cross_compiling" != yes; then
5166 { { ac_try
="$ac_link"
5168 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
5169 *) ac_try_echo=$ac_try;;
5171 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
5172 $as_echo "$ac_try_echo"; } >&5
5173 (eval "$ac_link") 2>&5
5175 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5176 test $ac_status = 0; }
5177 if { ac_try='./conftest$ac_cv_exeext'
5178 { { case "(($ac_try" in
5179 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
5180 *) ac_try_echo
=$ac_try;;
5182 eval ac_try_echo
="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
5183 $as_echo "$ac_try_echo"; } >&5
5184 (eval "$ac_try") 2>&5
5186 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5187 test $ac_status = 0; }; }; then
5190 if test "$cross_compiling" = maybe
; then
5193 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
5194 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
5195 as_fn_error
"cannot run C compiled programs.
5196 If you meant to cross compile, use \`--host'.
5197 See \`config.log' for more details." "$LINENO" 5; }
5201 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
5202 $as_echo "$cross_compiling" >&6; }
5204 rm -f conftest.
$ac_ext conftest
$ac_cv_exeext conftest.out
5205 ac_clean_files
=$ac_clean_files_save
5206 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
5207 $as_echo_n "checking for suffix of object files... " >&6; }
5208 if test "${ac_cv_objext+set}" = set; then :
5209 $as_echo_n "(cached) " >&6
5211 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
5212 /* end confdefs.h. */
5222 rm -f conftest.o conftest.obj
5223 if { { ac_try
="$ac_compile"
5225 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
5226 *) ac_try_echo=$ac_try;;
5228 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
5229 $as_echo "$ac_try_echo"; } >&5
5230 (eval "$ac_compile") 2>&5
5232 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5233 test $ac_status = 0; }; then :
5234 for ac_file in conftest.o conftest.obj conftest.*; do
5235 test -f "$ac_file" || continue;
5237 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
5238 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
5243 $as_echo "$as_me: failed program was:" >&5
5244 sed 's/^/| /' conftest.$ac_ext >&5
5246 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
5247 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
5248 as_fn_error "cannot compute suffix of object files
: cannot compile
5249 See \
`config.log' for more details." "$LINENO" 5; }
5251 rm -f conftest.$ac_cv_objext conftest.$ac_ext
5253 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
5254 $as_echo "$ac_cv_objext" >&6; }
5255 OBJEXT=$ac_cv_objext
5257 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
5258 $as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
5259 if test "${ac_cv_c_compiler_gnu+set}" = set; then :
5260 $as_echo_n "(cached) " >&6
5262 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5263 /* end confdefs.h. */
5276 if ac_fn_c_try_compile "$LINENO"; then :
5281 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5282 ac_cv_c_compiler_gnu=$ac_compiler_gnu
5285 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
5286 $as_echo "$ac_cv_c_compiler_gnu" >&6; }
5287 if test $ac_compiler_gnu = yes; then
5292 ac_test_CFLAGS=${CFLAGS+set}
5293 ac_save_CFLAGS=$CFLAGS
5294 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
5295 $as_echo_n "checking whether $CC accepts -g... " >&6; }
5296 if test "${ac_cv_prog_cc_g+set}" = set; then :
5297 $as_echo_n "(cached) " >&6
5299 ac_save_c_werror_flag=$ac_c_werror_flag
5300 ac_c_werror_flag=yes
5303 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5304 /* end confdefs.h. */
5314 if ac_fn_c_try_compile "$LINENO"; then :
5318 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5319 /* end confdefs.h. */
5329 if ac_fn_c_try_compile "$LINENO"; then :
5332 ac_c_werror_flag=$ac_save_c_werror_flag
5334 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5335 /* end confdefs.h. */
5345 if ac_fn_c_try_compile "$LINENO"; then :
5348 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5350 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5352 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5353 ac_c_werror_flag=$ac_save_c_werror_flag
5355 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
5356 $as_echo "$ac_cv_prog_cc_g" >&6; }
5357 if test "$ac_test_CFLAGS" = set; then
5358 CFLAGS=$ac_save_CFLAGS
5359 elif test $ac_cv_prog_cc_g = yes; then
5360 if test "$GCC" = yes; then
5366 if test "$GCC" = yes; then
5372 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
5373 $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
5374 if test "${ac_cv_prog_cc_c89+set}" = set; then :
5375 $as_echo_n "(cached) " >&6
5377 ac_cv_prog_cc_c89=no
5379 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5380 /* end confdefs.h. */
5383 #include <sys/types.h>
5384 #include <sys/stat.h>
5385 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
5386 struct buf { int x; };
5387 FILE * (*rcsopen) (struct buf *, struct stat *, int);
5388 static char *e (p, i)
5394 static char *f (char * (*g) (char **, int), char **p, ...)
5399 s = g (p, va_arg (v,int));
5404 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
5405 function prototypes and stuff, but not '\xHH' hex character constants.
5406 These don't provoke an error unfortunately, instead are silently treated
5407 as 'x'. The following induces an error, until -std is added to get
5408 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
5409 array size at least. It's necessary to write '\x00'==0 to get something
5410 that's true only with -std. */
5411 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
5413 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
5414 inside strings and character constants. */
5416 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
5418 int test (int i, double x);
5419 struct s1 {int (*f) (int a);};
5420 struct s2 {int (*f) (double a);};
5421 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
5427 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
5432 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
5433 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
5435 CC="$ac_save_CC $ac_arg"
5436 if ac_fn_c_try_compile "$LINENO"; then :
5437 ac_cv_prog_cc_c89=$ac_arg
5439 rm -f core conftest.err conftest.$ac_objext
5440 test "x$ac_cv_prog_cc_c89" != "xno" && break
5442 rm -f conftest.$ac_ext
5447 case "x$ac_cv_prog_cc_c89" in
5449 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
5450 $as_echo "none needed" >&6; } ;;
5452 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
5453 $as_echo "unsupported" >&6; } ;;
5455 CC="$CC $ac_cv_prog_cc_c89"
5456 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
5457 $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
5459 if test "x$ac_cv_prog_cc_c89" != xno; then :
5464 ac_cpp='$CPP $CPPFLAGS'
5465 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5466 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5467 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5468 DEPDIR="${am__leading_dot}deps"
5470 ac_config_commands="$ac_config_commands depfiles"
5473 am_make=${MAKE-make}
5474 cat > confinc << 'END'
5476 @echo this is the am__doit target
5479 # If we don't find an include directive, just comment out the code.
5480 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for style of include used by $am_make" >&5
5481 $as_echo_n "checking for style of include used by $am_make... " >&6; }
5485 # First try GNU make style include.
5486 echo "include confinc" > confmf
5487 # Ignore all kinds of additional output from `make'.
5488 case `$am_make -s -f confmf 2> /dev/null` in #(
5489 *the\ am__doit\ target*)
5495 # Now try BSD make style include.
5496 if test "$am__include" = "#"; then
5497 echo '.include
"confinc"' > confmf
5498 case `$am_make -s -f confmf 2> /dev/null` in #(
5499 *the\ am__doit\ target*)
5500 am__include=.include
5508 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $_am_result" >&5
5509 $as_echo "$_am_result" >&6; }
5510 rm -f confinc confmf
5512 # Check whether --enable-dependency-tracking was given.
5513 if test "${enable_dependency_tracking+set}" = set; then :
5514 enableval=$enable_dependency_tracking;
5517 if test "x$enable_dependency_tracking" != xno; then
5518 am_depcomp="$ac_aux_dir/depcomp"
5521 if test "x$enable_dependency_tracking" != xno
; then
5531 depcc
="$CC" am_compiler_list
=
5533 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
5534 $as_echo_n "checking dependency style of $depcc... " >&6; }
5535 if test "${am_cv_CC_dependencies_compiler_type+set}" = set; then :
5536 $as_echo_n "(cached) " >&6
5538 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
5539 # We make a subdir and do the tests there. Otherwise we can end up
5540 # making bogus files that we don't know about and never remove. For
5541 # instance it was reported that on HP-UX the gcc test will end up
5542 # making a dummy file named `D' -- because `-MD' means `put the output
5545 # Copy depcomp to subdir because otherwise we won't find it if we're
5546 # using a relative directory.
5547 cp "$am_depcomp" conftest.dir
5549 # We will build objects and dependencies in a subdirectory because
5550 # it helps to detect inapplicable dependency modes. For instance
5551 # both Tru64's cc and ICC support -MD to output dependencies as a
5552 # side effect of compilation, but ICC will put the dependencies in
5553 # the current directory while Tru64 will put them in the object
5557 am_cv_CC_dependencies_compiler_type
=none
5558 if test "$am_compiler_list" = ""; then
5559 am_compiler_list
=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
5562 case " $depcc " in #(
5563 *\
-arch\
*\
-arch\
*) am__universal
=true
;;
5566 for depmode
in $am_compiler_list; do
5567 # Setup a source with many dependencies, because some compilers
5568 # like to wrap large dependency lists on column 80 (with \), and
5569 # we should not choose a depcomp mode which is confused by this.
5571 # We need to recreate these files for each test, as the compiler may
5572 # overwrite some of them when testing with obscure command lines.
5573 # This happens at least with the AIX C compiler.
5575 for i
in 1 2 3 4 5 6; do
5576 echo '#include "conftst'$i'.h"' >> sub
/conftest.c
5577 # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
5578 # Solaris 8's {/usr,}/bin/sh.
5579 touch sub
/conftst
$i.h
5581 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
5583 # We check with `-c' and `-o' for the sake of the "dashmstdout"
5584 # mode. It turns out that the SunPro C++ compiler does not properly
5585 # handle `-M -o', and we need to detect this. Also, some Intel
5586 # versions had trouble with output in subdirs
5587 am__obj
=sub
/conftest.
${OBJEXT-o}
5588 am__minus_obj
="-o $am__obj"
5591 # This depmode causes a compiler race in universal mode.
5592 test "$am__universal" = false ||
continue
5595 # after this tag, mechanisms are not by side-effect, so they'll
5596 # only be used when explicitly requested
5597 if test "x$enable_dependency_tracking" = xyes
; then
5603 msvisualcpp | msvcmsys
)
5604 # This compiler won't grok `-c -o', but also, the minuso test has
5605 # not run yet. These depmodes are late enough in the game, and
5606 # so weak that their functioning should not be impacted.
5607 am__obj
=conftest.
${OBJEXT-o}
5612 if depmode
=$depmode \
5613 source=sub
/conftest.c object
=$am__obj \
5614 depfile
=sub
/conftest.Po tmpdepfile
=sub
/conftest.TPo \
5615 $SHELL .
/depcomp
$depcc -c $am__minus_obj sub
/conftest.c \
5616 >/dev
/null
2>conftest.err
&&
5617 grep sub
/conftst1.h sub
/conftest.Po
> /dev
/null
2>&1 &&
5618 grep sub
/conftst6.h sub
/conftest.Po
> /dev
/null
2>&1 &&
5619 grep $am__obj sub
/conftest.Po
> /dev
/null
2>&1 &&
5620 ${MAKE-make} -s -f confmf
> /dev
/null
2>&1; then
5621 # icc doesn't choke on unknown options, it will just issue warnings
5622 # or remarks (even with -Werror). So we grep stderr for any message
5623 # that says an option was ignored or not supported.
5624 # When given -MP, icc 7.0 and 7.1 complain thusly:
5625 # icc: Command line warning: ignoring option '-M'; no argument required
5626 # The diagnosis changed in icc 8.0:
5627 # icc: Command line remark: option '-MP' not supported
5628 if (grep 'ignoring option' conftest.err ||
5629 grep 'not supported' conftest.err
) >/dev
/null
2>&1; then :; else
5630 am_cv_CC_dependencies_compiler_type
=$depmode
5639 am_cv_CC_dependencies_compiler_type
=none
5643 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5
5644 $as_echo "$am_cv_CC_dependencies_compiler_type" >&6; }
5645 CCDEPMODE
=depmode
=$am_cv_CC_dependencies_compiler_type
5648 test "x$enable_dependency_tracking" != xno \
5649 && test "$am_cv_CC_dependencies_compiler_type" = gcc3
; then
5651 am__fastdepCC_FALSE
='#'
5653 am__fastdepCC_TRUE
='#'
5654 am__fastdepCC_FALSE
=
5658 if test "x$CC" != xcc
; then
5659 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC and cc understand -c and -o together" >&5
5660 $as_echo_n "checking whether $CC and cc understand -c and -o together... " >&6; }
5662 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether cc understands -c and -o together" >&5
5663 $as_echo_n "checking whether cc understands -c and -o together... " >&6; }
5665 set dummy
$CC; ac_cc
=`$as_echo "$2" |
5666 sed 's/[^a-zA-Z0-9_]/_/g;s/^[0-9]/_/'`
5667 if { as_var
=ac_cv_prog_cc_
${ac_cc}_c_o; eval "test \"\${$as_var+set}\" = set"; }; then :
5668 $as_echo_n "(cached) " >&6
5670 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
5671 /* end confdefs.h. */
5681 # Make sure it works both with $CC and with simple cc.
5682 # We do the test twice because some compilers refuse to overwrite an
5683 # existing .o file with -o, though they will create one.
5684 ac_try
='$CC -c conftest.$ac_ext -o conftest2.$ac_objext >&5'
5686 if { { case "(($ac_try" in
5687 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
5688 *) ac_try_echo=$ac_try;;
5690 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
5691 $as_echo "$ac_try_echo"; } >&5
5692 (eval "$ac_try") 2>&5
5694 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5695 test $ac_status = 0; } &&
5696 test -f conftest2.$ac_objext && { { case "(($ac_try" in
5697 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
5698 *) ac_try_echo
=$ac_try;;
5700 eval ac_try_echo
="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
5701 $as_echo "$ac_try_echo"; } >&5
5702 (eval "$ac_try") 2>&5
5704 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5705 test $ac_status = 0; };
5707 eval ac_cv_prog_cc_
${ac_cc}_c_o
=yes
5708 if test "x$CC" != xcc
; then
5709 # Test first that cc exists at all.
5710 if { ac_try
='cc -c conftest.$ac_ext >&5'
5711 { { case "(($ac_try" in
5712 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
5713 *) ac_try_echo=$ac_try;;
5715 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
5716 $as_echo "$ac_try_echo"; } >&5
5717 (eval "$ac_try") 2>&5
5719 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5720 test $ac_status = 0; }; }; then
5721 ac_try='cc -c conftest.$ac_ext -o conftest2.$ac_objext >&5'
5723 if { { case "(($ac_try" in
5724 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
5725 *) ac_try_echo
=$ac_try;;
5727 eval ac_try_echo
="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
5728 $as_echo "$ac_try_echo"; } >&5
5729 (eval "$ac_try") 2>&5
5731 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5732 test $ac_status = 0; } &&
5733 test -f conftest2.
$ac_objext && { { case "(($ac_try" in
5734 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
5735 *) ac_try_echo=$ac_try;;
5737 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
5738 $as_echo "$ac_try_echo"; } >&5
5739 (eval "$ac_try") 2>&5
5741 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5742 test $ac_status = 0; };
5747 # cc exists but doesn't like -o.
5748 eval ac_cv_prog_cc_${ac_cc}_c_o=no
5753 eval ac_cv_prog_cc_${ac_cc}_c_o=no
5755 rm -f core conftest*
5758 if eval test \$ac_cv_prog_cc_${ac_cc}_c_o = yes; then
5759 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5760 $as_echo "yes" >&6; }
5762 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5763 $as_echo "no" >&6; }
5765 $as_echo "#define NO_MINUS_C_MINUS_O 1" >>confdefs.h
5769 # FIXME: we rely on the cache variable name because
5770 # there is no other way.
5772 am_cc=`echo $2 |
sed 's/[^a-zA-Z0-9_]/_/g;s/^[0-9]/_/'`
5773 eval am_t=\$ac_cv_prog_cc_${am_cc}_c_o
5774 if test "$am_t" != yes; then
5775 # Losing compiler, so override with the script.
5776 # FIXME: It is wrong to rewrite CC.
5777 # But if we don't then we get into trouble of one sort or another.
5778 # A longer-term fix would be to have automake use am__CC in this case,
5779 # and then we could set am__CC="\$(top_srcdir)/compile \$(CC)"
5780 CC="$am_aux_dir/compile $CC"
5785 # Initialize gnulib right after verifying that the C compiler works.
5788 ac_cpp='$CPP $CPPFLAGS'
5789 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5790 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5791 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5792 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
5793 $as_echo_n "checking how to run the C preprocessor... " >&6; }
5794 # On Suns, sometimes $CPP names a directory.
5795 if test -n "$CPP" && test -d "$CPP"; then
5798 if test -z "$CPP"; then
5799 if test "${ac_cv_prog_CPP+set}" = set; then :
5800 $as_echo_n "(cached) " >&6
5802 # Double quotes because CPP needs to be expanded
5803 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
5806 for ac_c_preproc_warn_flag in '' yes
5808 # Use a header file that comes with gcc, so configuring glibc
5809 # with a fresh cross-compiler works.
5810 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5811 # <limits.h> exists even on freestanding compilers.
5812 # On the NeXT, cc -E runs the code through the compiler's parser,
5813 # not just through cpp. "Syntax error" is here to catch this case.
5814 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5815 /* end confdefs.h. */
5817 # include <limits.h>
5819 # include <assert.h>
5823 if ac_fn_c_try_cpp "$LINENO"; then :
5826 # Broken: fails on valid input.
5829 rm -f conftest.err conftest.$ac_ext
5831 # OK, works on sane cases. Now check whether nonexistent headers
5832 # can be detected and how.
5833 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5834 /* end confdefs.h. */
5835 #include <ac_nonexistent.h>
5837 if ac_fn_c_try_cpp "$LINENO"; then :
5838 # Broken: success on invalid input.
5841 # Passes both tests.
5845 rm -f conftest.err conftest.$ac_ext
5848 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
5849 rm -f conftest.err conftest.
$ac_ext
5850 if $ac_preproc_ok; then :
5862 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
5863 $as_echo "$CPP" >&6; }
5865 for ac_c_preproc_warn_flag
in '' yes
5867 # Use a header file that comes with gcc, so configuring glibc
5868 # with a fresh cross-compiler works.
5869 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5870 # <limits.h> exists even on freestanding compilers.
5871 # On the NeXT, cc -E runs the code through the compiler's parser,
5872 # not just through cpp. "Syntax error" is here to catch this case.
5873 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
5874 /* end confdefs.h. */
5876 # include <limits.h>
5878 # include <assert.h>
5882 if ac_fn_c_try_cpp
"$LINENO"; then :
5885 # Broken: fails on valid input.
5888 rm -f conftest.err conftest.
$ac_ext
5890 # OK, works on sane cases. Now check whether nonexistent headers
5891 # can be detected and how.
5892 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
5893 /* end confdefs.h. */
5894 #include <ac_nonexistent.h>
5896 if ac_fn_c_try_cpp
"$LINENO"; then :
5897 # Broken: success on invalid input.
5900 # Passes both tests.
5904 rm -f conftest.err conftest.
$ac_ext
5907 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
5908 rm -f conftest.err conftest.
$ac_ext
5909 if $ac_preproc_ok; then :
5912 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
5913 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
5914 as_fn_error
"C preprocessor \"$CPP\" fails sanity check
5915 See \`config.log' for more details." "$LINENO" 5; }
5919 ac_cpp
='$CPP $CPPFLAGS'
5920 ac_compile
='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5921 ac_link
='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5922 ac_compiler_gnu
=$ac_cv_c_compiler_gnu
5925 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
5926 $as_echo_n "checking for grep that handles long lines and -e... " >&6; }
5927 if test "${ac_cv_path_GREP+set}" = set; then :
5928 $as_echo_n "(cached) " >&6
5930 if test -z "$GREP"; then
5931 ac_path_GREP_found
=false
5932 # Loop through the user's path and test for each of PROGNAME-LIST
5933 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
5934 for as_dir
in $PATH$PATH_SEPARATOR/usr
/xpg
4/bin
5937 test -z "$as_dir" && as_dir
=.
5938 for ac_prog
in grep ggrep
; do
5939 for ac_exec_ext
in '' $ac_executable_extensions; do
5940 ac_path_GREP
="$as_dir/$ac_prog$ac_exec_ext"
5941 { test -f "$ac_path_GREP" && $as_test_x "$ac_path_GREP"; } ||
continue
5942 # Check for GNU ac_path_GREP and select it if it is found.
5943 # Check for GNU $ac_path_GREP
5944 case `"$ac_path_GREP" --version 2>&1` in
5946 ac_cv_path_GREP
="$ac_path_GREP" ac_path_GREP_found
=:;;
5949 $as_echo_n 0123456789 >"conftest.in"
5952 cat "conftest.in" "conftest.in" >"conftest.tmp"
5953 mv "conftest.tmp" "conftest.in"
5954 cp "conftest.in" "conftest.nl"
5955 $as_echo 'GREP' >> "conftest.nl"
5956 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev
/null ||
break
5957 diff "conftest.out" "conftest.nl" >/dev
/null
2>&1 ||
break
5958 as_fn_arith
$ac_count + 1 && ac_count
=$as_val
5959 if test $ac_count -gt ${ac_path_GREP_max-0}; then
5960 # Best one so far, save it but keep looking for a better one
5961 ac_cv_path_GREP
="$ac_path_GREP"
5962 ac_path_GREP_max
=$ac_count
5964 # 10*(2^10) chars as input seems more than enough
5965 test $ac_count -gt 10 && break
5967 rm -f conftest.
in conftest.tmp conftest.
nl conftest.out
;;
5970 $ac_path_GREP_found && break 3
5975 if test -z "$ac_cv_path_GREP"; then
5976 as_fn_error
"no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
5979 ac_cv_path_GREP
=$GREP
5983 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
5984 $as_echo "$ac_cv_path_GREP" >&6; }
5985 GREP
="$ac_cv_path_GREP"
5988 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
5989 $as_echo_n "checking for egrep... " >&6; }
5990 if test "${ac_cv_path_EGREP+set}" = set; then :
5991 $as_echo_n "(cached) " >&6
5993 if echo a |
$GREP -E '(a|b)' >/dev
/null
2>&1
5994 then ac_cv_path_EGREP
="$GREP -E"
5996 if test -z "$EGREP"; then
5997 ac_path_EGREP_found
=false
5998 # Loop through the user's path and test for each of PROGNAME-LIST
5999 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
6000 for as_dir
in $PATH$PATH_SEPARATOR/usr
/xpg
4/bin
6003 test -z "$as_dir" && as_dir
=.
6004 for ac_prog
in egrep; do
6005 for ac_exec_ext
in '' $ac_executable_extensions; do
6006 ac_path_EGREP
="$as_dir/$ac_prog$ac_exec_ext"
6007 { test -f "$ac_path_EGREP" && $as_test_x "$ac_path_EGREP"; } ||
continue
6008 # Check for GNU ac_path_EGREP and select it if it is found.
6009 # Check for GNU $ac_path_EGREP
6010 case `"$ac_path_EGREP" --version 2>&1` in
6012 ac_cv_path_EGREP
="$ac_path_EGREP" ac_path_EGREP_found
=:;;
6015 $as_echo_n 0123456789 >"conftest.in"
6018 cat "conftest.in" "conftest.in" >"conftest.tmp"
6019 mv "conftest.tmp" "conftest.in"
6020 cp "conftest.in" "conftest.nl"
6021 $as_echo 'EGREP' >> "conftest.nl"
6022 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev
/null ||
break
6023 diff "conftest.out" "conftest.nl" >/dev
/null
2>&1 ||
break
6024 as_fn_arith
$ac_count + 1 && ac_count
=$as_val
6025 if test $ac_count -gt ${ac_path_EGREP_max-0}; then
6026 # Best one so far, save it but keep looking for a better one
6027 ac_cv_path_EGREP
="$ac_path_EGREP"
6028 ac_path_EGREP_max
=$ac_count
6030 # 10*(2^10) chars as input seems more than enough
6031 test $ac_count -gt 10 && break
6033 rm -f conftest.
in conftest.tmp conftest.
nl conftest.out
;;
6036 $ac_path_EGREP_found && break 3
6041 if test -z "$ac_cv_path_EGREP"; then
6042 as_fn_error
"no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
6045 ac_cv_path_EGREP
=$EGREP
6050 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
6051 $as_echo "$ac_cv_path_EGREP" >&6; }
6052 EGREP
="$ac_cv_path_EGREP"
6057 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Minix Amsterdam compiler" >&5
6058 $as_echo_n "checking for Minix Amsterdam compiler... " >&6; }
6059 if test "${gl_cv_c_amsterdam_compiler+set}" = set; then :
6060 $as_echo_n "(cached) " >&6
6063 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
6064 /* end confdefs.h. */
6071 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6072 $EGREP "Amsterdam" >/dev
/null
2>&1; then :
6073 gl_cv_c_amsterdam_compiler
=yes
6075 gl_cv_c_amsterdam_compiler
=no
6081 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_c_amsterdam_compiler" >&5
6082 $as_echo "$gl_cv_c_amsterdam_compiler" >&6; }
6083 if test -z "$AR"; then
6084 if test $gl_cv_c_amsterdam_compiler = yes; then
6086 if test -z "$ARFLAGS"; then
6090 if test -n "$ac_tool_prefix"; then
6091 # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
6092 set dummy
${ac_tool_prefix}ar; ac_word
=$2
6093 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6094 $as_echo_n "checking for $ac_word... " >&6; }
6095 if test "${ac_cv_prog_AR+set}" = set; then :
6096 $as_echo_n "(cached) " >&6
6098 if test -n "$AR"; then
6099 ac_cv_prog_AR
="$AR" # Let the user override the test.
6101 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
6105 test -z "$as_dir" && as_dir
=.
6106 for ac_exec_ext
in '' $ac_executable_extensions; do
6107 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6108 ac_cv_prog_AR
="${ac_tool_prefix}ar"
6109 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6119 if test -n "$AR"; then
6120 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
6121 $as_echo "$AR" >&6; }
6123 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6124 $as_echo "no" >&6; }
6129 if test -z "$ac_cv_prog_AR"; then
6131 # Extract the first word of "ar", so it can be a program name with args.
6132 set dummy
ar; ac_word
=$2
6133 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6134 $as_echo_n "checking for $ac_word... " >&6; }
6135 if test "${ac_cv_prog_ac_ct_AR+set}" = set; then :
6136 $as_echo_n "(cached) " >&6
6138 if test -n "$ac_ct_AR"; then
6139 ac_cv_prog_ac_ct_AR
="$ac_ct_AR" # Let the user override the test.
6141 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
6145 test -z "$as_dir" && as_dir
=.
6146 for ac_exec_ext
in '' $ac_executable_extensions; do
6147 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6148 ac_cv_prog_ac_ct_AR
="ar"
6149 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6158 ac_ct_AR
=$ac_cv_prog_ac_ct_AR
6159 if test -n "$ac_ct_AR"; then
6160 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5
6161 $as_echo "$ac_ct_AR" >&6; }
6163 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6164 $as_echo "no" >&6; }
6167 if test "x$ac_ct_AR" = x
; then
6170 case $cross_compiling:$ac_tool_warned in
6172 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6173 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6174 ac_tool_warned
=yes ;;
6182 if test -z "$ARFLAGS"; then
6187 if test -z "$ARFLAGS"; then
6193 if test -z "$RANLIB"; then
6194 if test $gl_cv_c_amsterdam_compiler = yes; then
6197 if test -n "$ac_tool_prefix"; then
6198 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
6199 set dummy
${ac_tool_prefix}ranlib
; ac_word
=$2
6200 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6201 $as_echo_n "checking for $ac_word... " >&6; }
6202 if test "${ac_cv_prog_RANLIB+set}" = set; then :
6203 $as_echo_n "(cached) " >&6
6205 if test -n "$RANLIB"; then
6206 ac_cv_prog_RANLIB
="$RANLIB" # Let the user override the test.
6208 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
6212 test -z "$as_dir" && as_dir
=.
6213 for ac_exec_ext
in '' $ac_executable_extensions; do
6214 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6215 ac_cv_prog_RANLIB
="${ac_tool_prefix}ranlib"
6216 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6225 RANLIB
=$ac_cv_prog_RANLIB
6226 if test -n "$RANLIB"; then
6227 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
6228 $as_echo "$RANLIB" >&6; }
6230 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6231 $as_echo "no" >&6; }
6236 if test -z "$ac_cv_prog_RANLIB"; then
6237 ac_ct_RANLIB
=$RANLIB
6238 # Extract the first word of "ranlib", so it can be a program name with args.
6239 set dummy ranlib
; ac_word
=$2
6240 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6241 $as_echo_n "checking for $ac_word... " >&6; }
6242 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then :
6243 $as_echo_n "(cached) " >&6
6245 if test -n "$ac_ct_RANLIB"; then
6246 ac_cv_prog_ac_ct_RANLIB
="$ac_ct_RANLIB" # Let the user override the test.
6248 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
6252 test -z "$as_dir" && as_dir
=.
6253 for ac_exec_ext
in '' $ac_executable_extensions; do
6254 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6255 ac_cv_prog_ac_ct_RANLIB
="ranlib"
6256 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6265 ac_ct_RANLIB
=$ac_cv_prog_ac_ct_RANLIB
6266 if test -n "$ac_ct_RANLIB"; then
6267 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
6268 $as_echo "$ac_ct_RANLIB" >&6; }
6270 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6271 $as_echo "no" >&6; }
6274 if test "x$ac_ct_RANLIB" = x
; then
6277 case $cross_compiling:$ac_tool_warned in
6279 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6280 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6281 ac_tool_warned
=yes ;;
6283 RANLIB
=$ac_ct_RANLIB
6286 RANLIB
="$ac_cv_prog_RANLIB"
6293 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
6294 $as_echo_n "checking for ANSI C header files... " >&6; }
6295 if test "${ac_cv_header_stdc+set}" = set; then :
6296 $as_echo_n "(cached) " >&6
6298 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
6299 /* end confdefs.h. */
6313 if ac_fn_c_try_compile
"$LINENO"; then :
6314 ac_cv_header_stdc
=yes
6316 ac_cv_header_stdc
=no
6318 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
6320 if test $ac_cv_header_stdc = yes; then
6321 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
6322 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
6323 /* end confdefs.h. */
6327 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6328 $EGREP "memchr" >/dev
/null
2>&1; then :
6331 ac_cv_header_stdc
=no
6337 if test $ac_cv_header_stdc = yes; then
6338 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
6339 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
6340 /* end confdefs.h. */
6344 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6345 $EGREP "free" >/dev
/null
2>&1; then :
6348 ac_cv_header_stdc
=no
6354 if test $ac_cv_header_stdc = yes; then
6355 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
6356 if test "$cross_compiling" = yes; then :
6359 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
6360 /* end confdefs.h. */
6363 #if ((' ' & 0x0FF) == 0x020)
6364 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
6365 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
6367 # define ISLOWER(c) \
6368 (('a' <= (c) && (c) <= 'i') \
6369 || ('j' <= (c) && (c) <= 'r') \
6370 || ('s' <= (c) && (c) <= 'z'))
6371 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
6374 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
6379 for (i = 0; i < 256; i++)
6380 if (XOR (islower (i), ISLOWER (i))
6381 || toupper (i) != TOUPPER (i))
6386 if ac_fn_c_try_run
"$LINENO"; then :
6389 ac_cv_header_stdc
=no
6391 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
6392 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
6397 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
6398 $as_echo "$ac_cv_header_stdc" >&6; }
6399 if test $ac_cv_header_stdc = yes; then
6401 $as_echo "#define STDC_HEADERS 1" >>confdefs.h
6405 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
6406 for ac_header
in sys
/types.h sys
/stat.h stdlib.h string.h memory.h
strings.h \
6407 inttypes.h stdint.h unistd.h
6409 as_ac_Header
=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
6410 ac_fn_c_check_header_compile
"$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
6412 eval as_val
=\$
$as_ac_Header
6413 if test "x$as_val" = x
""yes; then :
6414 cat >>confdefs.h
<<_ACEOF
6415 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
6426 ac_fn_c_check_header_mongrel
"$LINENO" "minix/config.h" "ac_cv_header_minix_config_h" "$ac_includes_default"
6427 if test "x$ac_cv_header_minix_config_h" = x
""yes; then :
6434 if test "$MINIX" = yes; then
6436 $as_echo "#define _POSIX_SOURCE 1" >>confdefs.h
6439 $as_echo "#define _POSIX_1_SOURCE 2" >>confdefs.h
6442 $as_echo "#define _MINIX 1" >>confdefs.h
6449 $as_echo "#define _XOPEN_SOURCE 500" >>confdefs.h
6455 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether it is safe to define __EXTENSIONS__" >&5
6456 $as_echo_n "checking whether it is safe to define __EXTENSIONS__... " >&6; }
6457 if test "${ac_cv_safe_to_define___extensions__+set}" = set; then :
6458 $as_echo_n "(cached) " >&6
6460 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
6461 /* end confdefs.h. */
6463 # define __EXTENSIONS__ 1
6464 $ac_includes_default
6473 if ac_fn_c_try_compile
"$LINENO"; then :
6474 ac_cv_safe_to_define___extensions__
=yes
6476 ac_cv_safe_to_define___extensions__
=no
6478 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
6480 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_safe_to_define___extensions__" >&5
6481 $as_echo "$ac_cv_safe_to_define___extensions__" >&6; }
6482 test $ac_cv_safe_to_define___extensions__ = yes &&
6483 $as_echo "#define __EXTENSIONS__ 1" >>confdefs.h
6485 $as_echo "#define _ALL_SOURCE 1" >>confdefs.h
6487 $as_echo "#define _DARWIN_C_SOURCE 1" >>confdefs.h
6489 $as_echo "#define _GNU_SOURCE 1" >>confdefs.h
6491 $as_echo "#define _POSIX_PTHREAD_SEMANTICS 1" >>confdefs.h
6493 $as_echo "#define _TANDEM_SOURCE 1" >>confdefs.h
6502 # Check whether --enable-largefile was given.
6503 if test "${enable_largefile+set}" = set; then :
6504 enableval
=$enable_largefile;
6507 if test "$enable_largefile" != no
; then
6509 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for special C compiler options needed for large files" >&5
6510 $as_echo_n "checking for special C compiler options needed for large files... " >&6; }
6511 if test "${ac_cv_sys_largefile_CC+set}" = set; then :
6512 $as_echo_n "(cached) " >&6
6514 ac_cv_sys_largefile_CC
=no
6515 if test "$GCC" != yes; then
6518 # IRIX 6.2 and later do not support large files by default,
6519 # so use the C compiler's -n32 option if that helps.
6520 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
6521 /* end confdefs.h. */
6522 #include <sys/types.h>
6523 /* Check that off_t can represent 2**63 - 1 correctly.
6524 We can't simply define LARGE_OFF_T to be 9223372036854775807,
6525 since some C++ compilers masquerading as C compilers
6526 incorrectly reject 9223372036854775807. */
6527 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
6528 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
6529 && LARGE_OFF_T % 2147483647 == 1)
6539 if ac_fn_c_try_compile
"$LINENO"; then :
6542 rm -f core conftest.err conftest.
$ac_objext
6544 if ac_fn_c_try_compile
"$LINENO"; then :
6545 ac_cv_sys_largefile_CC
=' -n32'; break
6547 rm -f core conftest.err conftest.
$ac_objext
6551 rm -f conftest.
$ac_ext
6554 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_largefile_CC" >&5
6555 $as_echo "$ac_cv_sys_largefile_CC" >&6; }
6556 if test "$ac_cv_sys_largefile_CC" != no
; then
6557 CC
=$CC$ac_cv_sys_largefile_CC
6560 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _FILE_OFFSET_BITS value needed for large files" >&5
6561 $as_echo_n "checking for _FILE_OFFSET_BITS value needed for large files... " >&6; }
6562 if test "${ac_cv_sys_file_offset_bits+set}" = set; then :
6563 $as_echo_n "(cached) " >&6
6566 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
6567 /* end confdefs.h. */
6568 #include <sys/types.h>
6569 /* Check that off_t can represent 2**63 - 1 correctly.
6570 We can't simply define LARGE_OFF_T to be 9223372036854775807,
6571 since some C++ compilers masquerading as C compilers
6572 incorrectly reject 9223372036854775807. */
6573 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
6574 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
6575 && LARGE_OFF_T % 2147483647 == 1)
6585 if ac_fn_c_try_compile
"$LINENO"; then :
6586 ac_cv_sys_file_offset_bits
=no
; break
6588 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
6589 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
6590 /* end confdefs.h. */
6591 #define _FILE_OFFSET_BITS 64
6592 #include <sys/types.h>
6593 /* Check that off_t can represent 2**63 - 1 correctly.
6594 We can't simply define LARGE_OFF_T to be 9223372036854775807,
6595 since some C++ compilers masquerading as C compilers
6596 incorrectly reject 9223372036854775807. */
6597 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
6598 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
6599 && LARGE_OFF_T % 2147483647 == 1)
6609 if ac_fn_c_try_compile
"$LINENO"; then :
6610 ac_cv_sys_file_offset_bits
=64; break
6612 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
6613 ac_cv_sys_file_offset_bits
=unknown
6617 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_file_offset_bits" >&5
6618 $as_echo "$ac_cv_sys_file_offset_bits" >&6; }
6619 case $ac_cv_sys_file_offset_bits in #(
6622 cat >>confdefs.h
<<_ACEOF
6623 #define _FILE_OFFSET_BITS $ac_cv_sys_file_offset_bits
6628 if test $ac_cv_sys_file_offset_bits = unknown
; then
6629 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _LARGE_FILES value needed for large files" >&5
6630 $as_echo_n "checking for _LARGE_FILES value needed for large files... " >&6; }
6631 if test "${ac_cv_sys_large_files+set}" = set; then :
6632 $as_echo_n "(cached) " >&6
6635 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
6636 /* end confdefs.h. */
6637 #include <sys/types.h>
6638 /* Check that off_t can represent 2**63 - 1 correctly.
6639 We can't simply define LARGE_OFF_T to be 9223372036854775807,
6640 since some C++ compilers masquerading as C compilers
6641 incorrectly reject 9223372036854775807. */
6642 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
6643 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
6644 && LARGE_OFF_T % 2147483647 == 1)
6654 if ac_fn_c_try_compile
"$LINENO"; then :
6655 ac_cv_sys_large_files
=no
; break
6657 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
6658 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
6659 /* end confdefs.h. */
6660 #define _LARGE_FILES 1
6661 #include <sys/types.h>
6662 /* Check that off_t can represent 2**63 - 1 correctly.
6663 We can't simply define LARGE_OFF_T to be 9223372036854775807,
6664 since some C++ compilers masquerading as C compilers
6665 incorrectly reject 9223372036854775807. */
6666 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
6667 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
6668 && LARGE_OFF_T % 2147483647 == 1)
6678 if ac_fn_c_try_compile
"$LINENO"; then :
6679 ac_cv_sys_large_files
=1; break
6681 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
6682 ac_cv_sys_large_files
=unknown
6686 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_large_files" >&5
6687 $as_echo "$ac_cv_sys_large_files" >&6; }
6688 case $ac_cv_sys_large_files in #(
6691 cat >>confdefs.h
<<_ACEOF
6692 #define _LARGE_FILES $ac_cv_sys_large_files
6702 case $ac_cv_prog_cc_stdc in #(
6704 ac_cv_prog_cc_c99
=no
; ac_cv_prog_cc_c89
=no
;; #(
6706 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C99" >&5
6707 $as_echo_n "checking for $CC option to accept ISO C99... " >&6; }
6708 if test "${ac_cv_prog_cc_c99+set}" = set; then :
6709 $as_echo_n "(cached) " >&6
6711 ac_cv_prog_cc_c99
=no
6713 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
6714 /* end confdefs.h. */
6716 #include <stdbool.h>
6721 // Check varargs macros. These examples are taken from C99 6.10.3.5.
6722 #define debug(...) fprintf (stderr, __VA_ARGS__)
6723 #define showlist(...) puts (#__VA_ARGS__)
6724 #define report(test,...) ((test) ? puts (#test) : printf (__VA_ARGS__))
6726 test_varargs_macros (void)
6731 debug ("X = %d\n", x);
6732 showlist (The first, second, and third items.);
6733 report (x>y, "x is %d but y is %d", x, y);
6736 // Check long long types.
6737 #define BIG64 18446744073709551615ull
6738 #define BIG32 4294967295ul
6739 #define BIG_OK (BIG64 / BIG32 == 4294967297ull && BIG64 % BIG32 == 0)
6741 your preprocessor is broken;
6745 your preprocessor is broken;
6747 static long long int bignum = -9223372036854775807LL;
6748 static unsigned long long int ubignum = BIG64;
6750 struct incomplete_array
6758 const wchar_t *name;
6762 typedef const char *ccp;
6765 test_restrict (ccp restrict text)
6767 // See if C++-style comments work.
6768 // Iterate through items via the restricted pointer.
6769 // Also check for declarations in for loops.
6770 for (unsigned int i = 0; *(text+i) != '\0'; ++i)
6775 // Check varargs and va_copy.
6777 test_varargs (const char *format, ...)
6780 va_start (args, format);
6782 va_copy (args_copy, args);
6793 str = va_arg (args_copy, const char *);
6796 number = va_arg (args_copy, int);
6799 fnumber = va_arg (args_copy, double);
6814 _Bool success = false;
6817 if (test_restrict ("String literal") == 0)
6819 char *restrict newvar = "Another string";
6822 test_varargs ("s, d' f .", "string", 65, 34.234);
6823 test_varargs_macros ();
6825 // Check flexible array members.
6826 struct incomplete_array *ia =
6827 malloc (sizeof (struct incomplete_array) + (sizeof (double) * 10));
6829 for (int i = 0; i < ia->datasize; ++i)
6830 ia->data[i] = i * 1.234;
6832 // Check named initializers.
6833 struct named_init ni = {
6835 .name = L"Test wide string",
6836 .average = 543.34343,
6841 int dynamic_array[ni.number];
6842 dynamic_array[ni.number - 1] = 543;
6844 // work around unused variable warnings
6845 return (!success || bignum == 0LL || ubignum == 0uLL || newvar[0] == 'x'
6846 || dynamic_array[ni.number - 1] != 543);
6852 for ac_arg
in '' -std=gnu99
-std=c99
-c99 -AC99 -xc99=all
-qlanglvl=extc99
6854 CC
="$ac_save_CC $ac_arg"
6855 if ac_fn_c_try_compile
"$LINENO"; then :
6856 ac_cv_prog_cc_c99
=$ac_arg
6858 rm -f core conftest.err conftest.
$ac_objext
6859 test "x$ac_cv_prog_cc_c99" != "xno" && break
6861 rm -f conftest.
$ac_ext
6866 case "x$ac_cv_prog_cc_c99" in
6868 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
6869 $as_echo "none needed" >&6; } ;;
6871 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
6872 $as_echo "unsupported" >&6; } ;;
6874 CC
="$CC $ac_cv_prog_cc_c99"
6875 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c99" >&5
6876 $as_echo "$ac_cv_prog_cc_c99" >&6; } ;;
6878 if test "x$ac_cv_prog_cc_c99" != xno
; then :
6879 ac_cv_prog_cc_stdc
=$ac_cv_prog_cc_c99
6881 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
6882 $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
6883 if test "${ac_cv_prog_cc_c89+set}" = set; then :
6884 $as_echo_n "(cached) " >&6
6886 ac_cv_prog_cc_c89
=no
6888 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
6889 /* end confdefs.h. */
6892 #include <sys/types.h>
6893 #include <sys/stat.h>
6894 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
6895 struct buf { int x; };
6896 FILE * (*rcsopen) (struct buf *, struct stat *, int);
6897 static char *e (p, i)
6903 static char *f (char * (*g) (char **, int), char **p, ...)
6908 s = g (p, va_arg (v,int));
6913 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
6914 function prototypes and stuff, but not '\xHH' hex character constants.
6915 These don't provoke an error unfortunately, instead are silently treated
6916 as 'x'. The following induces an error, until -std is added to get
6917 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
6918 array size at least. It's necessary to write '\x00'==0 to get something
6919 that's true only with -std. */
6920 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
6922 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
6923 inside strings and character constants. */
6925 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
6927 int test (int i, double x);
6928 struct s1 {int (*f) (int a);};
6929 struct s2 {int (*f) (double a);};
6930 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
6936 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
6941 for ac_arg
in '' -qlanglvl=extc89
-qlanglvl=ansi
-std \
6942 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
6944 CC
="$ac_save_CC $ac_arg"
6945 if ac_fn_c_try_compile
"$LINENO"; then :
6946 ac_cv_prog_cc_c89
=$ac_arg
6948 rm -f core conftest.err conftest.
$ac_objext
6949 test "x$ac_cv_prog_cc_c89" != "xno" && break
6951 rm -f conftest.
$ac_ext
6956 case "x$ac_cv_prog_cc_c89" in
6958 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
6959 $as_echo "none needed" >&6; } ;;
6961 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
6962 $as_echo "unsupported" >&6; } ;;
6964 CC
="$CC $ac_cv_prog_cc_c89"
6965 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
6966 $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
6968 if test "x$ac_cv_prog_cc_c89" != xno
; then :
6969 ac_cv_prog_cc_stdc
=$ac_cv_prog_cc_c89
6971 ac_cv_prog_cc_stdc
=no
6977 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO Standard C" >&5
6978 $as_echo_n "checking for $CC option to accept ISO Standard C... " >&6; }
6979 if test "${ac_cv_prog_cc_stdc+set}" = set; then :
6980 $as_echo_n "(cached) " >&6
6983 case $ac_cv_prog_cc_stdc in #(
6985 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
6986 $as_echo "unsupported" >&6; } ;; #(
6988 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
6989 $as_echo "none needed" >&6; } ;; #(
6991 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_stdc" >&5
6992 $as_echo "$ac_cv_prog_cc_stdc" >&6; } ;;
6997 # Code from module alloca-opt:
6998 # Code from module allocator:
6999 # Code from module careadlinkat:
7000 # Code from module crypto/md5:
7001 # Code from module crypto/sha1:
7002 # Code from module crypto/sha256:
7003 # Code from module crypto/sha512:
7004 # Code from module dosname:
7005 # Code from module dtoastr:
7006 # Code from module dup2:
7007 # Code from module extensions:
7009 # Code from module filemode:
7010 # Code from module getloadavg:
7011 # Code from module getopt-gnu:
7012 # Code from module getopt-posix:
7013 # Code from module gettext-h:
7014 # Code from module ignore-value:
7015 # Code from module include_next:
7016 # Code from module intprops:
7017 # Code from module inttypes-incomplete:
7018 # Code from module largefile:
7020 # Code from module lstat:
7021 # Code from module mktime:
7022 # Code from module multiarch:
7025 # Code from module nocrash:
7026 # Code from module pthread_sigmask:
7027 >>>>>>> MERGE-SOURCE
7028 # Code from module readlink:
7031 # Code from module signal:
7032 # Code from module sigprocmask:
7033 # Code from module snippet/_Noreturn:
7034 # Code from module snippet/arg-nonnull:
7035 # Code from module snippet/c++defs:
7036 # Code from module snippet/warn-on-use:
7037 >>>>>>> MERGE-SOURCE
7038 # Code from module socklen:
7039 # Code from module ssize_t:
7040 # Code from module stat:
7041 # Code from module stdarg:
7043 # Code from module stdbool:
7044 # Code from module stddef:
7045 # Code from module stdint:
7046 # Code from module stdio:
7047 # Code from module stdlib:
7048 # Code from module strftime:
7049 # Code from module strtoull:
7050 # Code from module strtoumax:
7051 # Code from module symlink:
7052 # Code from module sys_stat:
7053 # Code from module time:
7054 # Code from module time_r:
7055 # Code from module u64:
7056 # Code from module unistd:
7057 # Code from module verify:
7060 # On Suns, sometimes $CPP names a directory.
7061 if test -n "$CPP" && test -d "$CPP"; then
7065 ## If not using gcc, and on Solaris, and no CPP specified, see if
7066 ## using a Sun compiler, which needs -Xs to prevent whitespace.
7067 if test x"$GCC" != xyes && test x"$emacs_check_sunpro_c" = xyes && \
7068 test x"$CPP" = x; then
7069 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using a Sun C compiler" >&5
7070 $as_echo_n "checking whether we are using a Sun C compiler... " >&6; }
7071 if test "${emacs_cv_sunpro_c+set}" = set; then :
7072 $as_echo_n "(cached) " >&6
7074 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7075 /* end confdefs.h. */
7088 if ac_fn_c_try_link "$LINENO"; then :
7089 emacs_cv_sunpro_c=yes
7091 emacs_cv_sunpro_c=no
7093 rm -f core conftest.err conftest.$ac_objext \
7094 conftest$ac_exeext conftest.$ac_ext
7097 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $emacs_cv_sunpro_c" >&5
7098 $as_echo "$emacs_cv_sunpro_c" >&6; }
7100 if test x"$emacs_cv_sunpro_c" = xyes; then
7101 NON_GNU_CPP="$CC -E -Xs"
7105 #### Some systems specify a CPP to use unless we are using GCC.
7106 #### Now that we know whether we are using GCC, we can decide whether
7107 #### to use that one.
7108 if test "x$NON_GNU_CPP" != x && test x$GCC != xyes && test "x$CPP" = x
7113 #### Some systems specify a CC to use unless we are using GCC.
7114 #### Now that we know whether we are using GCC, we can decide whether
7115 #### to use that one.
7116 if test "x$NON_GNU_CC" != x && test x$GCC != xyes &&
7117 test x$cc_specified != xyes
7122 if test x$GCC = xyes; then
7123 test "x$GCC_TEST_OPTIONS" != x && CC="$CC $GCC_TEST_OPTIONS"
7125 test "x$NON_GCC_TEST_OPTIONS" != x && CC="$CC $NON_GCC_TEST_OPTIONS"
7128 ### Use -Wdeclaration-after-statement if the compiler supports it
7129 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether gcc understands -Wdeclaration-after-statement" >&5
7130 $as_echo_n "checking whether gcc understands -Wdeclaration-after-statement... " >&6; }
7131 SAVE_CFLAGS="$CFLAGS"
7132 CFLAGS="$CFLAGS -Wdeclaration-after-statement"
7133 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7134 /* end confdefs.h. */
7144 if ac_fn_c_try_compile "$LINENO"; then :
7149 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7150 if test $has_option = yes; then
7151 C_WARNINGS_SWITCH="-Wdeclaration-after-statement $C_WARNINGS_SWITCH"
7153 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $has_option" >&5
7154 $as_echo "$has_option" >&6; }
7155 CFLAGS="$SAVE_CFLAGS"
7159 ### Use -Wold-style-definition if the compiler supports it
7160 # This can be removed when conversion to standard C is finished.
7161 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether gcc understands -Wold-style-definition" >&5
7162 $as_echo_n "checking whether gcc understands -Wold-style-definition... " >&6; }
7163 SAVE_CFLAGS="$CFLAGS"
7164 CFLAGS="$CFLAGS -Wold-style-definition"
7165 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7166 /* end confdefs.h. */
7176 if ac_fn_c_try_compile "$LINENO"; then :
7181 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7182 if test $has_option = yes; then
7183 C_WARNINGS_SWITCH="-Wold-style-definition $C_WARNINGS_SWITCH"
7185 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $has_option" >&5
7186 $as_echo "$has_option" >&6; }
7187 CFLAGS="$SAVE_CFLAGS"
7191 ### Use -Wimplicit-function-declaration if the compiler supports it
7192 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether gcc understands -Wimplicit-function-declaration" >&5
7193 $as_echo_n "checking whether gcc understands -Wimplicit-function-declaration... " >&6; }
7194 SAVE_CFLAGS="$CFLAGS"
7195 CFLAGS="$CFLAGS -Wimplicit-function-declaration"
7196 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7197 /* end confdefs.h. */
7207 if ac_fn_c_try_compile "$LINENO"; then :
7212 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7213 if test $has_option = yes; then
7214 C_WARNINGS_SWITCH="-Wimplicit-function-declaration $C_WARNINGS_SWITCH"
7216 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $has_option" >&5
7217 $as_echo "$has_option" >&6; }
7218 CFLAGS="$SAVE_CFLAGS"
7225 #### Some other nice autoconf tests.
7228 ac_cpp='$CPP $CPPFLAGS'
7229 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7230 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7231 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7232 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
7233 $as_echo_n "checking how to run the C preprocessor... " >&6; }
7234 # On Suns, sometimes $CPP names a directory.
7235 if test -n "$CPP" && test -d "$CPP"; then
7238 if test -z "$CPP"; then
7239 if test "${ac_cv_prog_CPP+set}" = set; then :
7240 $as_echo_n "(cached) " >&6
7242 # Double quotes because CPP needs to be expanded
7243 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
7246 for ac_c_preproc_warn_flag in '' yes
7248 # Use a header file that comes with gcc, so configuring glibc
7249 # with a fresh cross-compiler works.
7250 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
7251 # <limits.h> exists even on freestanding compilers.
7252 # On the NeXT, cc -E runs the code through the compiler's parser,
7253 # not just through cpp. "Syntax error" is here to catch this case.
7254 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7255 /* end confdefs.h. */
7257 # include <limits.h>
7259 # include <assert.h>
7263 if ac_fn_c_try_cpp "$LINENO"; then :
7266 # Broken: fails on valid input.
7269 rm -f conftest.err conftest.$ac_ext
7271 # OK, works on sane cases. Now check whether nonexistent headers
7272 # can be detected and how.
7273 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7274 /* end confdefs.h. */
7275 #include <ac_nonexistent.h>
7277 if ac_fn_c_try_cpp "$LINENO"; then :
7278 # Broken: success on invalid input.
7281 # Passes both tests.
7285 rm -f conftest.err conftest.$ac_ext
7288 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
7289 rm -f conftest.err conftest.$ac_ext
7290 if $ac_preproc_ok; then :
7302 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
7303 $as_echo "$CPP" >&6; }
7305 for ac_c_preproc_warn_flag in '' yes
7307 # Use a header file that comes with gcc, so configuring glibc
7308 # with a fresh cross-compiler works.
7309 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
7310 # <limits.h> exists even on freestanding compilers.
7311 # On the NeXT, cc -E runs the code through the compiler's parser,
7312 # not just through cpp. "Syntax error" is here to catch this case.
7313 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7314 /* end confdefs.h. */
7316 # include <limits.h>
7318 # include <assert.h>
7322 if ac_fn_c_try_cpp "$LINENO"; then :
7325 # Broken: fails on valid input.
7328 rm -f conftest.err conftest.$ac_ext
7330 # OK, works on sane cases. Now check whether nonexistent headers
7331 # can be detected and how.
7332 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7333 /* end confdefs.h. */
7334 #include <ac_nonexistent.h>
7336 if ac_fn_c_try_cpp "$LINENO"; then :
7337 # Broken: success on invalid input.
7340 # Passes both tests.
7344 rm -f conftest.err conftest.$ac_ext
7347 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
7348 rm -f conftest.err conftest.$ac_ext
7349 if $ac_preproc_ok; then :
7352 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
7353 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
7354 as_fn_error "C preprocessor \"$CPP\" fails sanity check
7355 See \`config.log' for more details." "$LINENO" 5; }
7359 ac_cpp='$CPP $CPPFLAGS'
7360 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7361 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7362 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7365 if test "x$RANLIB" = x; then
7366 if test -n "$ac_tool_prefix"; then
7367 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
7368 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
7369 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7370 $as_echo_n "checking for $ac_word... " >&6; }
7371 if test "${ac_cv_prog_RANLIB+set}" = set; then :
7372 $as_echo_n "(cached) " >&6
7374 if test -n "$RANLIB"; then
7375 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
7377 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7381 test -z "$as_dir" && as_dir=.
7382 for ac_exec_ext in '' $ac_executable_extensions; do
7383 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7384 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
7385 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7394 RANLIB=$ac_cv_prog_RANLIB
7395 if test -n "$RANLIB"; then
7396 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
7397 $as_echo "$RANLIB" >&6; }
7399 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7400 $as_echo "no" >&6; }
7405 if test -z "$ac_cv_prog_RANLIB"; then
7406 ac_ct_RANLIB=$RANLIB
7407 # Extract the first word of "ranlib", so it can be a program name with args.
7408 set dummy ranlib; ac_word=$2
7409 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7410 $as_echo_n "checking for $ac_word... " >&6; }
7411 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then :
7412 $as_echo_n "(cached) " >&6
7414 if test -n "$ac_ct_RANLIB"; then
7415 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
7417 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7421 test -z "$as_dir" && as_dir=.
7422 for ac_exec_ext in '' $ac_executable_extensions; do
7423 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7424 ac_cv_prog_ac_ct_RANLIB="ranlib"
7425 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7434 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
7435 if test -n "$ac_ct_RANLIB"; then
7436 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
7437 $as_echo "$ac_ct_RANLIB" >&6; }
7439 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7440 $as_echo "no" >&6; }
7443 if test "x$ac_ct_RANLIB" = x; then
7446 case $cross_compiling:$ac_tool_warned in
7448 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7449 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7450 ac_tool_warned=yes ;;
7452 RANLIB=$ac_ct_RANLIB
7455 RANLIB="$ac_cv_prog_RANLIB"
7460 ## Although we're running on an amd64 kernel, we're actually compiling for
7461 ## the x86 architecture. The user should probably have provided an
7462 ## explicit --build to `configure', but if everything else than the kernel
7463 ## is running in i386 mode, we can help them out.
7464 if test "$machine" = "amdx86-64"; then
7465 ac_fn_c_check_decl "$LINENO" "i386" "ac_cv_have_decl_i386" "$ac_includes_default"
7466 if test "x$ac_cv_have_decl_i386" = x""yes; then :
7470 if test "$ac_cv_have_decl_i386" = "yes"; then
7471 canonical=`echo "$canonical" | sed -e 's/^amd64/i386/' -e 's/^x86_64/i386/'`
7473 machfile="m/${machine}.h"
7477 # Extract the first word of "install-info", so it can be a program name with args.
7478 set dummy install-info; ac_word=$2
7479 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7480 $as_echo_n "checking for $ac_word... " >&6; }
7481 if test "${ac_cv_path_INSTALL_INFO+set}" = set; then :
7482 $as_echo_n "(cached) " >&6
7484 case $INSTALL_INFO in
7486 ac_cv_path_INSTALL_INFO="$INSTALL_INFO" # Let the user override the test with a path.
7489 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7493 test -z "$as_dir" && as_dir=.
7494 for ac_exec_ext in '' $ac_executable_extensions; do
7495 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7496 ac_cv_path_INSTALL_INFO="$as_dir/$ac_word$ac_exec_ext"
7497 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7507 INSTALL_INFO=$ac_cv_path_INSTALL_INFO
7508 if test -n "$INSTALL_INFO"; then
7509 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL_INFO" >&5
7510 $as_echo "$INSTALL_INFO" >&6; }
7512 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7513 $as_echo "no" >&6; }
7517 # Extract the first word of "install-info", so it can be a program name with args.
7518 set dummy install-info; ac_word=$2
7519 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7520 $as_echo_n "checking for $ac_word... " >&6; }
7521 if test "${ac_cv_path_INSTALL_INFO+set}" = set; then :
7522 $as_echo_n "(cached) " >&6
7524 case $INSTALL_INFO in
7526 ac_cv_path_INSTALL_INFO="$INSTALL_INFO" # Let the user override the test with a path.
7529 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7530 for as_dir in /usr/sbin
7533 test -z "$as_dir" && as_dir=.
7534 for ac_exec_ext in '' $ac_executable_extensions; do
7535 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7536 ac_cv_path_INSTALL_INFO="$as_dir/$ac_word$ac_exec_ext"
7537 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7547 INSTALL_INFO=$ac_cv_path_INSTALL_INFO
7548 if test -n "$INSTALL_INFO"; then
7549 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL_INFO" >&5
7550 $as_echo "$INSTALL_INFO" >&6; }
7552 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7553 $as_echo "no" >&6; }
7557 # Extract the first word of "install-info", so it can be a program name with args.
7558 set dummy install-info; ac_word=$2
7559 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7560 $as_echo_n "checking for $ac_word... " >&6; }
7561 if test "${ac_cv_path_INSTALL_INFO+set}" = set; then :
7562 $as_echo_n "(cached) " >&6
7564 case $INSTALL_INFO in
7566 ac_cv_path_INSTALL_INFO="$INSTALL_INFO" # Let the user override the test with a path.
7569 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7573 test -z "$as_dir" && as_dir=.
7574 for ac_exec_ext in '' $ac_executable_extensions; do
7575 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7576 ac_cv_path_INSTALL_INFO="$as_dir/$ac_word$ac_exec_ext"
7577 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7584 test -z "$ac_cv_path_INSTALL_INFO" && ac_cv_path_INSTALL_INFO=":"
7588 INSTALL_INFO=$ac_cv_path_INSTALL_INFO
7589 if test -n "$INSTALL_INFO"; then
7590 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL_INFO" >&5
7591 $as_echo "$INSTALL_INFO" >&6; }
7593 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7594 $as_echo "no" >&6; }
7598 # Extract the first word of "gzip", so it can be a program name with args.
7599 set dummy gzip; ac_word=$2
7600 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7601 $as_echo_n "checking for $ac_word... " >&6; }
7602 if test "${ac_cv_path_GZIP_PROG+set}" = set; then :
7603 $as_echo_n "(cached) " >&6
7607 ac_cv_path_GZIP_PROG="$GZIP_PROG" # Let the user override the test with a path.
7610 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7614 test -z "$as_dir" && as_dir=.
7615 for ac_exec_ext in '' $ac_executable_extensions; do
7616 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7617 ac_cv_path_GZIP_PROG="$as_dir/$ac_word$ac_exec_ext"
7618 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7628 GZIP_PROG=$ac_cv_path_GZIP_PROG
7629 if test -n "$GZIP_PROG"; then
7630 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GZIP_PROG" >&5
7631 $as_echo "$GZIP_PROG" >&6; }
7633 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7634 $as_echo "no" >&6; }
7640 ## Need makeinfo >= 4.6 (?) to build the manuals.
7641 # Extract the first word of "makeinfo", so it can be a program name with args.
7642 set dummy makeinfo; ac_word=$2
7643 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7644 $as_echo_n "checking for $ac_word... " >&6; }
7645 if test "${ac_cv_path_MAKEINFO+set}" = set; then :
7646 $as_echo_n "(cached) " >&6
7650 ac_cv_path_MAKEINFO="$MAKEINFO" # Let the user override the test with a path.
7653 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7657 test -z "$as_dir" && as_dir=.
7658 for ac_exec_ext in '' $ac_executable_extensions; do
7659 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7660 ac_cv_path_MAKEINFO="$as_dir/$ac_word$ac_exec_ext"
7661 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7668 test -z "$ac_cv_path_MAKEINFO" && ac_cv_path_MAKEINFO="no"
7672 MAKEINFO=$ac_cv_path_MAKEINFO
7673 if test -n "$MAKEINFO"; then
7674 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAKEINFO" >&5
7675 $as_echo "$MAKEINFO" >&6; }
7677 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7678 $as_echo "no" >&6; }
7682 if test "$MAKEINFO" != "no" && \
7683 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
7687 ## Makeinfo is unusual. For a released Emacs, the manuals are
7688 ## pre-built, and not deleted by the normal clean rules. makeinfo is
7689 ## therefore in the category of "special tools" not normally required, which
7690 ## configure does not have to check for (eg autoconf itself).
7691 ## In a Bazaar checkout on the other hand, the manuals are not included.
7692 ## So makeinfo is a requirement to build from Bazaar, and configure
7693 ## should test for it as it does for any other build requirement.
7694 ## We use the presence of $srcdir/info/emacs to distinguish a release,
7695 ## with pre-built manuals, from a Bazaar checkout.
7698 if test "$MAKEINFO" = "no"; then
7700 if test "x${with_makeinfo}" = "xno"; then
7702 elif test ! -e $srcdir/info/emacs; then
7703 as_fn_error "You do not seem to have makeinfo >= 4.6, and your
7704 source tree does not seem to have pre-built manuals in the \`info' directory.
7705 Either install a suitable version of makeinfo, or re-run configure
7706 with the \`--without-makeinfo' option to build without the manuals. " "$LINENO" 5
7712 if test x$GCC = xyes; then
7713 test "x$GCC_LINK_TEST_OPTIONS" != x && \
7714 ac_link="$ac_link $GCC_LINK_TEST_OPTIONS"
7716 test "x$NON_GCC_LINK_TEST_OPTIONS" != x && \
7717 ac_link="$ac_link $NON_GCC_LINK_TEST_OPTIONS"
7721 late_LDFLAGS=$LDFLAGS
7722 if test x$GCC = xyes; then
7723 LDFLAGS="$LDFLAGS -Wl,-znocombreloc"
7725 LDFLAGS="$LDFLAGS -znocombreloc"
7728 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -znocombreloc" >&5
7729 $as_echo_n "checking for -znocombreloc... " >&6; }
7730 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7731 /* end confdefs.h. */
7741 if ac_fn_c_try_link "$LINENO"; then :
7742 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
7743 $as_echo "yes" >&6; }
7745 LDFLAGS=$late_LDFLAGS
7746 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7747 $as_echo "no" >&6; }
7749 rm -f core conftest.err conftest.$ac_objext \
7750 conftest$ac_exeext conftest.$ac_ext
7753 # The value of CPP is a quoted variable reference, so we need to do this
7754 # to get its actual value...
7755 CPP=`eval "echo $CPP"`
7758 test "x$CANNOT_DUMP" = "x" && CANNOT_DUMP=no
7760 your-opsys-here) CANNOT_DUMP=yes ;;
7763 test "$CANNOT_DUMP" = "yes" && \
7765 $as_echo "#define CANNOT_DUMP 1" >>confdefs.h
7771 UNEXEC_OBJ=unexelf.o
7773 # MSDOS uses unexcoff.o
7774 # MSWindows uses unexw32.o
7776 UNEXEC_OBJ=unexaix.o
7782 UNEXEC_OBJ=unexmacosx.o
7785 UNEXEC_OBJ=unexhp9k800.o
7788 # Use the Solaris dldump() function, called from unexsol.c, to dump
7789 # emacs, instead of the generic ELF dump code found in unexelf.c.
7790 # The resulting binary has a complete symbol table, and is better
7791 # for debugging and other observability tools (debuggers, pstack, etc).
7793 # If you encounter a problem using dldump(), please consider sending
7794 # a message to the OpenSolaris tools-linking mailing list:
7795 # http://mail.opensolaris.org/mailman/listinfo/tools-linking
7797 # It is likely that dldump() works with older Solaris too, but this has
7798 # not been tested, so for now this change is for Solaris 10 or newer.
7799 UNEXEC_OBJ=unexsol.o
7806 ## Let `ld' find image libs and similar things in /usr/local/lib.
7807 ## The system compiler, GCC, has apparently been modified to not
7808 ## look there, contrary to what a stock GCC would do.
7809 LD_SWITCH_SYSTEM=-L/usr/local/lib
7813 ## cpp test was "ifdef __mips__", but presumably this is equivalent...
7814 case $host_cpu in mips*) LD_SWITCH_SYSTEM="-G 0";; esac
7818 LD_SWITCH_SYSTEM="-Wl,-rpath,/usr/pkg/lib -L/usr/pkg/lib -Wl,-rpath,/usr/local/lib -L/usr/local/lib"
7822 ## Han Boetes <han@mijncomputer.nl> says this is necessary,
7823 ## otherwise Emacs dumps core on elf systems.
7824 LD_SWITCH_SYSTEM="-Z"
7829 ac_link="$ac_link $LD_SWITCH_SYSTEM"
7831 ## This setting of LD_SWITCH_SYSTEM references LD_SWITCH_X_SITE_AUX,
7832 ## which has not been defined yet. When this was handled with cpp,
7833 ## it was expanded to null when configure sourced the s/*.h file.
7834 ## Thus LD_SWITCH_SYSTEM had different values in configure and the Makefiles.
7835 ## FIXME it would be cleaner to put this in LD_SWITCH_SYSTEM_TEMACS
7836 ## (or somesuch), but because it is supposed to go at the _front_
7837 ## of LD_SWITCH_SYSTEM, we cannot do that in exactly the same way.
7838 ## Compare with the gnu-linux case below, which added to the end
7839 ## of LD_SWITCH_SYSTEM, and so can instead go at the front of
7840 ## LD_SWITCH_SYSTEM_TEMACS.
7843 ## _AUX_RPATH is like _AUX, but uses -rpath instead of -R.
7844 LD_SWITCH_SYSTEM="\$(LD_SWITCH_X_SITE_AUX_RPATH) $LD_SWITCH_SYSTEM" ;;
7849 if test "$machine" = "alpha"; then
7850 ac_fn_c_check_decl "$LINENO" "__ELF__" "ac_cv_have_decl___ELF__" "$ac_includes_default"
7851 if test "x$ac_cv_have_decl___ELF__" = x""yes; then :
7855 if test "$ac_cv_have_decl___ELF__" = "yes"; then
7856 ## With ELF, make sure that all common symbols get allocated to in the
7857 ## data section. Otherwise, the dump of temacs may miss variables in
7858 ## the shared library that have been initialized. For example, with
7859 ## GNU libc, __malloc_initialized would normally be resolved to the
7860 ## shared library's .bss section, which is fatal.
7861 if test "x$GCC" = "xyes"; then
7862 C_SWITCH_MACHINE="-fno-common"
7864 as_fn_error "What gives? Fix me if DEC Unix supports ELF now." "$LINENO" 5
7867 UNEXEC_OBJ=unexalpha.o
7875 ## Some programs in src produce warnings saying certain subprograms
7876 ## are too complex and need a MAXMEM value greater than 2000 for
7877 ## additional optimization. --nils@exp-math.uni-essen.de
7878 test "$opsys" = "aix4.2" && test "x$GCC" != "xyes" && \
7879 C_SWITCH_SYSTEM="-ma -qmaxmem=4000"
7880 ## gnu-linux might need -D_BSD_SOURCE on old libc5 systems.
7881 ## It is redundant in glibc2, since we define _GNU_SOURCE.
7887 ## IBM's X11R5 uses -lIM and -liconv in AIX 3.2.2.
7888 aix4-2) LIBS_SYSTEM="-lrts -lIM -liconv" ;;
7890 freebsd) LIBS_SYSTEM="-lutil" ;;
7892 hpux*) LIBS_SYSTEM="-l:libdld.sl" ;;
7894 sol2*) LIBS_SYSTEM="-lsocket -lnsl" ;;
7896 ## Motif needs -lgen.
7897 unixware) LIBS_SYSTEM="-lsocket -lnsl -lelf -lgen" ;;
7902 ### Make sure subsequent tests use flags consistent with the build flags.
7904 if test x"${OVERRIDE_CPPFLAGS}" != x; then
7905 CPPFLAGS="${OVERRIDE_CPPFLAGS}"
7907 CPPFLAGS="$C_SWITCH_SYSTEM $C_SWITCH_MACHINE $CPPFLAGS"
7910 # Suppress obsolescent Autoconf test for size_t; Emacs assumes C89 or better.
7913 # Check whether --enable-largefile was given.
7914 if test "${enable_largefile+set}" = set; then :
7915 enableval=$enable_largefile;
7918 if test "$enable_largefile" != no; then
7920 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for special C compiler options needed for large files" >&5
7921 $as_echo_n "checking for special C compiler options needed for large files... " >&6; }
7922 if test "${ac_cv_sys_largefile_CC+set}" = set; then :
7923 $as_echo_n "(cached) " >&6
7925 ac_cv_sys_largefile_CC=no
7926 if test "$GCC" != yes; then
7929 # IRIX 6.2 and later do not support large files by default,
7930 # so use the C compiler's -n32 option if that helps.
7931 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7932 /* end confdefs.h. */
7933 #include <sys/types.h>
7934 /* Check that off_t can represent 2**63 - 1 correctly.
7935 We can't simply define LARGE_OFF_T to be 9223372036854775807,
7936 since some C++ compilers masquerading as C compilers
7937 incorrectly reject 9223372036854775807. */
7938 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
7939 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
7940 && LARGE_OFF_T % 2147483647 == 1)
7950 if ac_fn_c_try_compile "$LINENO"; then :
7953 rm -f core conftest.err conftest.$ac_objext
7955 if ac_fn_c_try_compile "$LINENO"; then :
7956 ac_cv_sys_largefile_CC=' -n32'; break
7958 rm -f core conftest.err conftest.$ac_objext
7962 rm -f conftest.$ac_ext
7965 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_largefile_CC" >&5
7966 $as_echo "$ac_cv_sys_largefile_CC" >&6; }
7967 if test "$ac_cv_sys_largefile_CC" != no; then
7968 CC=$CC$ac_cv_sys_largefile_CC
7971 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _FILE_OFFSET_BITS value needed for large files" >&5
7972 $as_echo_n "checking for _FILE_OFFSET_BITS value needed for large files... " >&6; }
7973 if test "${ac_cv_sys_file_offset_bits+set}" = set; then :
7974 $as_echo_n "(cached) " >&6
7977 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7978 /* end confdefs.h. */
7979 #include <sys/types.h>
7980 /* Check that off_t can represent 2**63 - 1 correctly.
7981 We can't simply define LARGE_OFF_T to be 9223372036854775807,
7982 since some C++ compilers masquerading as C compilers
7983 incorrectly reject 9223372036854775807. */
7984 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
7985 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
7986 && LARGE_OFF_T % 2147483647 == 1)
7996 if ac_fn_c_try_compile "$LINENO"; then :
7997 ac_cv_sys_file_offset_bits=no; break
7999 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8000 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8001 /* end confdefs.h. */
8002 #define _FILE_OFFSET_BITS 64
8003 #include <sys/types.h>
8004 /* Check that off_t can represent 2**63 - 1 correctly.
8005 We can't simply define LARGE_OFF_T to be 9223372036854775807,
8006 since some C++ compilers masquerading as C compilers
8007 incorrectly reject 9223372036854775807. */
8008 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
8009 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
8010 && LARGE_OFF_T % 2147483647 == 1)
8020 if ac_fn_c_try_compile "$LINENO"; then :
8021 ac_cv_sys_file_offset_bits=64; break
8023 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8024 ac_cv_sys_file_offset_bits=unknown
8028 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_file_offset_bits" >&5
8029 $as_echo "$ac_cv_sys_file_offset_bits" >&6; }
8030 case $ac_cv_sys_file_offset_bits in #(
8033 cat >>confdefs.h <<_ACEOF
8034 #define _FILE_OFFSET_BITS $ac_cv_sys_file_offset_bits
8039 if test $ac_cv_sys_file_offset_bits = unknown; then
8040 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _LARGE_FILES value needed for large files" >&5
8041 $as_echo_n "checking for _LARGE_FILES value needed for large files... " >&6; }
8042 if test "${ac_cv_sys_large_files+set}" = set; then :
8043 $as_echo_n "(cached) " >&6
8046 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8047 /* end confdefs.h. */
8048 #include <sys/types.h>
8049 /* Check that off_t can represent 2**63 - 1 correctly.
8050 We can't simply define LARGE_OFF_T to be 9223372036854775807,
8051 since some C++ compilers masquerading as C compilers
8052 incorrectly reject 9223372036854775807. */
8053 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
8054 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
8055 && LARGE_OFF_T % 2147483647 == 1)
8065 if ac_fn_c_try_compile "$LINENO"; then :
8066 ac_cv_sys_large_files=no; break
8068 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8069 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8070 /* end confdefs.h. */
8071 #define _LARGE_FILES 1
8072 #include <sys/types.h>
8073 /* Check that off_t can represent 2**63 - 1 correctly.
8074 We can't simply define LARGE_OFF_T to be 9223372036854775807,
8075 since some C++ compilers masquerading as C compilers
8076 incorrectly reject 9223372036854775807. */
8077 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
8078 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
8079 && LARGE_OFF_T % 2147483647 == 1)
8089 if ac_fn_c_try_compile "$LINENO"; then :
8090 ac_cv_sys_large_files=1; break
8092 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8093 ac_cv_sys_large_files=unknown
8097 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_large_files" >&5
8098 $as_echo "$ac_cv_sys_large_files" >&6; }
8099 case $ac_cv_sys_large_files in #(
8102 cat >>confdefs.h <<_ACEOF
8103 #define _LARGE_FILES $ac_cv_sys_large_files
8115 ## If user specified a crt-dir, use that unconditionally.
8116 if test "X$CRT_DIR" = "X"; then
8118 case "$canonical" in
8119 x86_64-*-linux-gnu* | s390x-*-linux-gnu*)
8120 ## On x86-64 and s390x GNU/Linux distributions, the standard library
8121 ## can be in a variety of places. We only try /usr/lib64 and /usr/lib.
8122 ## For anything else (eg /usr/lib32), it is up the user to specify
8123 ## the location (bug#5655).
8124 ## Test for crtn.o, not just the directory, because sometimes the
8125 ## directory exists but does not have the relevant files (bug#1287).
8126 ## FIXME better to test for binary compatibility somehow.
8127 test -e /usr/lib64/crtn.o && CRT_DIR=/usr/lib64
8130 powerpc64-*-linux-gnu* | sparc64-*-linux-gnu*) CRT_DIR=/usr/lib64 ;;
8134 hpux10-20) CRT_DIR=/lib ;;
8137 ## Default is /usr/lib.
8138 test "X$CRT_DIR" = "X" && CRT_DIR=/usr/lib
8140 ## If we're using gcc, try to determine it automatically by asking
8141 ## gcc. [If this doesn't work, CRT_DIR will remain at the
8142 ## system-dependent default from above.]
8143 if test "x${GCC}" = xyes; then
8144 crt_file=`$CC --print-file-name=crt1.o 2>/dev/null`
8147 CRT_DIR=`$as_dirname -- "$crt_file" ||
8148 $as_expr X"$crt_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
8149 X"$crt_file" : 'X\(//\)[^/]' \| \
8150 X"$crt_file" : 'X\(//\)$' \| \
8151 X"$crt_file" : 'X\(/\)' \| . 2>/dev/null ||
8152 $as_echo X"$crt_file" |
8153 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
8176 ## Some platforms don't use any of these files, so it is not
8177 ## appropriate to put this test outside the if block.
8178 test -e $CRT_DIR/crtn.o || test -e $CRT_DIR/crt0.o || \
8179 as_fn_error "crt*.o not found in specified location." "$LINENO" 5
8192 START_FILES='pre-crt0.o'
8195 ## Adding -lm confuses the dynamic linker, so omit it.
8197 START_FILES='pre-crt0.o'
8200 LIB_STANDARD='-lgcc -lc -lgcc $(CRT_DIR)/crtend.o $(CRT_DIR)/crtn.o'
8201 START_FILES='pre-crt0.o $(CRT_DIR)/crt1.o $(CRT_DIR)/crti.o $(CRT_DIR)/crtbegin.o'
8203 gnu-linux | gnu-kfreebsd )
8204 LIB_STANDARD='-lgcc -lc -lgcc $(CRT_DIR)/crtn.o'
8205 START_FILES='pre-crt0.o $(CRT_DIR)/crt1.o $(CRT_DIR)/crti.o'
8207 hpux10-20 | hpux11 )
8209 START_FILES='pre-crt0.o $(CRT_DIR)/crt0.o'
8212 if test -f $CRT_DIR/crti.o; then
8213 LIB_STANDARD='-lgcc -lc -lgcc $(CRT_DIR)/crtend.o $(CRT_DIR)/crtn.o'
8214 START_FILES='pre-crt0.o $(CRT_DIR)/crt0.o $(CRT_DIR)/crti.o $(CRT_DIR)/crtbegin.o'
8216 LIB_STANDARD='-lgcc -lc -lgcc $(CRT_DIR)/crtend.o'
8217 START_FILES='pre-crt0.o $(CRT_DIR)/crt0.o $(CRT_DIR)/crtbegin.o'
8229 for file in x $LIB_STANDARD $START_FILES; do
8231 *CRT_DIR*) crt_files="$crt_files `echo $file | sed -e 's|.*/||'`" ;;
8235 if test "x$crt_files" != x; then
8237 ## If user specified a crt-dir, use that unconditionally.
8240 if test "X$CRT_DIR" = "X"; then
8242 CRT_DIR=/usr/lib # default
8244 case "$canonical" in
8245 x86_64-*-linux-gnu* | s390x-*-linux-gnu*)
8246 ## On x86-64 and s390x GNU/Linux distributions, the standard library
8247 ## can be in a variety of places. We only try /usr/lib64 and /usr/lib.
8248 ## For anything else (eg /usr/lib32), it is up the user to specify
8249 ## the location (bug#5655).
8250 ## Test for crtn.o, not just the directory, because sometimes the
8251 ## directory exists but does not have the relevant files (bug#1287).
8252 ## FIXME better to test for binary compatibility somehow.
8253 test -e /usr/lib64/crtn.o && CRT_DIR=/usr/lib64
8256 powerpc64-*-linux-gnu* | sparc64-*-linux-gnu*) CRT_DIR=/usr/lib64 ;;
8260 hpux10-20) CRT_DIR=/lib ;;
8263 test "x${GCC}" = xyes && crt_gcc=yes
8269 for file in $crt_files; do
8271 ## If we're using gcc, try to determine it automatically by asking
8272 ## gcc. [If this doesn't work, CRT_DIR will remain at the
8273 ## system-dependent default from above.]
8274 if test $crt_gcc = yes && test ! -e $CRT_DIR/$file; then
8276 crt_file=`$CC --print-file-name=$file 2>/dev/null`
8279 CRT_DIR=`$as_dirname -- "$crt_file" ||
8280 $as_expr X"$crt_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
8281 X"$crt_file" : 'X\(//\)[^/]' \| \
8282 X"$crt_file" : 'X\(//\)$' \| \
8283 X"$crt_file" : 'X\(/\)' \| . 2>/dev/null ||
8284 $as_echo X"$crt_file" |
8285 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
8308 test -e $CRT_DIR/$file || crt_missing="$crt_missing $file"
8311 test "x$crt_missing" = x || \
8312 as_fn_error "Required file(s) not found:$crt_missing
8313 Try using the --with-crt-dir option." "$LINENO" 5
8315 fi # crt_files != ""
8320 >>>>>>> MERGE-SOURCE
8324 if test "${with_sound}" != "no"; then
8325 # Sound support for GNU/Linux and the free BSDs.
8326 for ac_header in machine/soundcard.h sys/soundcard.h soundcard.h
8328 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
8329 ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
8330 eval as_val=\$$as_ac_Header
8331 if test "x$as_val" = x""yes; then :
8332 cat >>confdefs.h <<_ACEOF
8333 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
8335 have_sound_header=yes
8340 # Emulation library used on NetBSD.
8341 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _oss_ioctl in -lossaudio" >&5
8342 $as_echo_n "checking for _oss_ioctl in -lossaudio... " >&6; }
8343 if test "${ac_cv_lib_ossaudio__oss_ioctl+set}" = set; then :
8344 $as_echo_n "(cached) " >&6
8346 ac_check_lib_save_LIBS=$LIBS
8347 LIBS="-lossaudio $LIBS"
8348 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8349 /* end confdefs.h. */
8351 /* Override any GCC internal prototype to avoid an error.
8352 Use char because int might match the return type of a GCC
8353 builtin and then its argument prototype would still apply. */
8361 return _oss_ioctl ();
8366 if ac_fn_c_try_link "$LINENO"; then :
8367 ac_cv_lib_ossaudio__oss_ioctl=yes
8369 ac_cv_lib_ossaudio__oss_ioctl=no
8371 rm -f core conftest.err conftest.$ac_objext \
8372 conftest$ac_exeext conftest.$ac_ext
8373 LIBS=$ac_check_lib_save_LIBS
8375 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_ossaudio__oss_ioctl" >&5
8376 $as_echo "$ac_cv_lib_ossaudio__oss_ioctl" >&6; }
8377 if test "x$ac_cv_lib_ossaudio__oss_ioctl" = x""yes; then :
8386 ALSA_MODULES="alsa >= $ALSA_REQUIRED"
8390 # Extract the first word of "pkg-config", so it can be a program name with args.
8391 set dummy pkg-config; ac_word=$2
8392 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8393 $as_echo_n "checking for $ac_word... " >&6; }
8394 if test "${ac_cv_path_PKG_CONFIG+set}" = set; then :
8395 $as_echo_n "(cached) " >&6
8399 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
8402 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8406 test -z "$as_dir" && as_dir=.
8407 for ac_exec_ext in '' $ac_executable_extensions; do
8408 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8409 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
8410 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8417 test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG="no"
8421 PKG_CONFIG=$ac_cv_path_PKG_CONFIG
8422 if test -n "$PKG_CONFIG"; then
8423 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5
8424 $as_echo "$PKG_CONFIG" >&6; }
8426 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8427 $as_echo "no" >&6; }
8432 if test "$PKG_CONFIG" = "no" ; then
8435 PKG_CONFIG_MIN_VERSION=0.9.0
8436 if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
8437 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ALSA_MODULES" >&5
8438 $as_echo_n "checking for $ALSA_MODULES... " >&6; }
8440 if $PKG_CONFIG --exists "$ALSA_MODULES" 2>&5; then
8441 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
8442 $as_echo "yes" >&6; }
8445 { $as_echo "$as_me:${as_lineno-$LINENO}: checking ALSA_CFLAGS" >&5
8446 $as_echo_n "checking ALSA_CFLAGS... " >&6; }
8447 ALSA_CFLAGS=`$PKG_CONFIG --cflags "$ALSA_MODULES"|sed -e 's,///*,/,g'`
8448 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ALSA_CFLAGS" >&5
8449 $as_echo "$ALSA_CFLAGS" >&6; }
8451 { $as_echo "$as_me:${as_lineno-$LINENO}: checking ALSA_LIBS" >&5
8452 $as_echo_n "checking ALSA_LIBS... " >&6; }
8453 ALSA_LIBS=`$PKG_CONFIG --libs "$ALSA_MODULES"|sed -e 's,///*,/,g'`
8454 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ALSA_LIBS" >&5
8455 $as_echo "$ALSA_LIBS" >&6; }
8457 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8458 $as_echo "no" >&6; }
8461 ## If we have a custom action on failure, don't print errors, but
8462 ## do set a variable so people can do so.
8463 ALSA_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "$ALSA_MODULES"`
8470 echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
8471 echo "*** See http://www.freedesktop.org/software/pkgconfig"
8475 if test $succeeded = yes; then
8481 if test $HAVE_ALSA = yes; then
8482 SAVE_CFLAGS="$CFLAGS"
8483 SAVE_LDFLAGS="$LDFLAGS"
8484 CFLAGS="$ALSA_CFLAGS $CFLAGS"
8485 LDFLAGS="$ALSA_LIBS $LDFLAGS"
8486 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8487 /* end confdefs.h. */
8488 #include <asoundlib.h>
8492 snd_lib_error_set_handler (0);
8497 if ac_fn_c_try_compile "$LINENO"; then :
8498 emacs_alsa_normal=yes
8500 emacs_alsa_normal=no
8502 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8503 if test "$emacs_alsa_normal" != yes; then
8504 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8505 /* end confdefs.h. */
8506 #include <alsa/asoundlib.h>
8510 snd_lib_error_set_handler (0);
8515 if ac_fn_c_try_compile "$LINENO"; then :
8516 emacs_alsa_subdir=yes
8518 emacs_alsa_subdir=no
8520 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8521 if test "$emacs_alsa_subdir" != yes; then
8522 as_fn_error "pkg-config found alsa, but it does not compile. See config.log for error messages." "$LINENO" 5
8524 ALSA_CFLAGS="$ALSA_CFLAGS -DALSA_SUBDIR_INCLUDE"
8527 CFLAGS="$SAVE_CFLAGS"
8528 LDFLAGS="$SAVE_LDFLAGS"
8529 LIBSOUND="$LIBSOUND $ALSA_LIBS"
8530 CFLAGS_SOUND="$CFLAGS_SOUND $ALSA_CFLAGS"
8532 $as_echo "#define HAVE_ALSA 1" >>confdefs.h
8536 if test x$have_sound_header = xyes || test $HAVE_ALSA = yes; then
8538 gnu-linux|freebsd|netbsd)
8540 $as_echo "#define HAVE_SOUND 1" >>confdefs.h
8549 for ac_header in sys/select.h sys/time.h unistd.h utime.h \
8550 linux/version.h sys/systeminfo.h \
8551 stdio_ext.h fcntl.h coff.h pty.h sys/mman.h \
8552 sys/vlimit.h sys/resource.h locale.h sys/_mbstate_t.h \
8553 sys/utsname.h pwd.h utmp.h dirent.h util.h
8555 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
8556 ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
8557 eval as_val=\$$as_ac_Header
8558 if test "x$as_val" = x""yes; then :
8559 cat >>confdefs.h <<_ACEOF
8560 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
8568 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if personality LINUX32 can be set" >&5
8569 $as_echo_n "checking if personality LINUX32 can be set... " >&6; }
8570 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8571 /* end confdefs.h. */
8572 #include <sys/personality.h>
8576 personality (PER_LINUX32)
8581 if ac_fn_c_try_compile "$LINENO"; then :
8582 emacs_cv_personality_linux32=yes
8584 emacs_cv_personality_linux32=no
8586 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8587 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $emacs_cv_personality_linux32" >&5
8588 $as_echo "$emacs_cv_personality_linux32" >&6; }
8590 if test $emacs_cv_personality_linux32 = yes; then
8592 $as_echo "#define HAVE_PERSONALITY_LINUX32 1" >>confdefs.h
8596 for ac_header in term.h
8598 ac_fn_c_check_header_preproc "$LINENO" "term.h" "ac_cv_header_term_h"
8599 if test "x$ac_cv_header_term_h" = x""yes; then :
8600 cat >>confdefs.h <<_ACEOF
8601 #define HAVE_TERM_H 1
8608 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether time.h and sys/time.h may both be included" >&5
8609 $as_echo_n "checking whether time.h and sys/time.h may both be included... " >&6; }
8610 if test "${ac_cv_header_time+set}" = set; then :
8611 $as_echo_n "(cached) " >&6
8613 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8614 /* end confdefs.h. */
8615 #include <sys/types.h>
8616 #include <sys/time.h>
8622 if ((struct tm *) 0)
8628 if ac_fn_c_try_compile "$LINENO"; then :
8629 ac_cv_header_time=yes
8631 ac_cv_header_time=no
8633 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8635 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_time" >&5
8636 $as_echo "$ac_cv_header_time" >&6; }
8637 if test $ac_cv_header_time = yes; then
8639 $as_echo "#define TIME_WITH_SYS_TIME 1" >>confdefs.h
8643 ac_fn_c_check_decl "$LINENO" "sys_siglist" "ac_cv_have_decl_sys_siglist" "$ac_includes_default"
8644 if test "x$ac_cv_have_decl_sys_siglist" = x""yes; then :
8650 cat >>confdefs.h <<_ACEOF
8651 #define HAVE_DECL_SYS_SIGLIST $ac_have_decl
8654 if test $ac_cv_have_decl_sys_siglist != yes; then
8655 # For Tru64, at least:
8656 ac_fn_c_check_decl "$LINENO" "__sys_siglist" "ac_cv_have_decl___sys_siglist" "$ac_includes_default"
8657 if test "x$ac_cv_have_decl___sys_siglist" = x""yes; then :
8663 cat >>confdefs.h <<_ACEOF
8664 #define HAVE_DECL___SYS_SIGLIST $ac_have_decl
8667 if test $ac_cv_have_decl___sys_siglist = yes; then
8669 $as_echo "#define sys_siglist __sys_siglist" >>confdefs.h
8673 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sys/wait.h that is POSIX.1 compatible" >&5
8674 $as_echo_n "checking for sys/wait.h that is POSIX.1 compatible... " >&6; }
8675 if test "${ac_cv_header_sys_wait_h+set}" = set; then :
8676 $as_echo_n "(cached) " >&6
8678 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8679 /* end confdefs.h. */
8680 #include <sys/types.h>
8681 #include <sys/wait.h>
8683 # define WEXITSTATUS(stat_val) ((unsigned int) (stat_val) >> 8)
8686 # define WIFEXITED(stat_val) (((stat_val) & 255) == 0)
8694 s = WIFEXITED (s) ? WEXITSTATUS (s) : 1;
8699 if ac_fn_c_try_compile "$LINENO"; then :
8700 ac_cv_header_sys_wait_h=yes
8702 ac_cv_header_sys_wait_h=no
8704 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8706 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_sys_wait_h" >&5
8707 $as_echo "$ac_cv_header_sys_wait_h" >&6; }
8708 if test $ac_cv_header_sys_wait_h = yes; then
8710 $as_echo "#define HAVE_SYS_WAIT_H 1" >>confdefs.h
8715 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for struct utimbuf" >&5
8716 $as_echo_n "checking for struct utimbuf... " >&6; }
8717 if test "${emacs_cv_struct_utimbuf+set}" = set; then :
8718 $as_echo_n "(cached) " >&6
8720 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8721 /* end confdefs.h. */
8722 #ifdef TIME_WITH_SYS_TIME
8723 #include <sys/time.h>
8726 #ifdef HAVE_SYS_TIME_H
8727 #include <sys/time.h>
8738 static struct utimbuf x; x.actime = x.modtime;
8743 if ac_fn_c_try_compile "$LINENO"; then :
8744 emacs_cv_struct_utimbuf=yes
8746 emacs_cv_struct_utimbuf=no
8748 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8750 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $emacs_cv_struct_utimbuf" >&5
8751 $as_echo "$emacs_cv_struct_utimbuf" >&6; }
8752 if test $emacs_cv_struct_utimbuf = yes; then
8754 $as_echo "#define HAVE_STRUCT_UTIMBUF 1" >>confdefs.h
8758 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for speed_t" >&5
8759 $as_echo_n "checking for speed_t... " >&6; }
8760 if test "${emacs_cv_speed_t+set}" = set; then :
8761 $as_echo_n "(cached) " >&6
8763 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8764 /* end confdefs.h. */
8765 #include <termios.h>
8774 if ac_fn_c_try_compile "$LINENO"; then :
8775 emacs_cv_speed_t=yes
8779 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8781 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $emacs_cv_speed_t" >&5
8782 $as_echo "$emacs_cv_speed_t" >&6; }
8783 if test $emacs_cv_speed_t = yes; then
8785 $as_echo "#define HAVE_SPEED_T 1" >>confdefs.h
8789 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for struct timeval" >&5
8790 $as_echo_n "checking for struct timeval... " >&6; }
8791 if test "${emacs_cv_struct_timeval+set}" = set; then :
8792 $as_echo_n "(cached) " >&6
8794 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8795 /* end confdefs.h. */
8796 #ifdef TIME_WITH_SYS_TIME
8797 #include <sys/time.h>
8800 #ifdef HAVE_SYS_TIME_H
8801 #include <sys/time.h>
8809 static struct timeval x; x.tv_sec = x.tv_usec;
8814 if ac_fn_c_try_compile "$LINENO"; then :
8815 emacs_cv_struct_timeval=yes
8817 emacs_cv_struct_timeval=no
8819 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8821 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $emacs_cv_struct_timeval" >&5
8822 $as_echo "$emacs_cv_struct_timeval" >&6; }
8823 HAVE_TIMEVAL=$emacs_cv_struct_timeval
8824 if test $emacs_cv_struct_timeval = yes; then
8826 $as_echo "#define HAVE_TIMEVAL 1" >>confdefs.h
8830 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for struct exception" >&5
8831 $as_echo_n "checking for struct exception... " >&6; }
8832 if test "${emacs_cv_struct_exception+set}" = set; then :
8833 $as_echo_n "(cached) " >&6
8835 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8836 /* end confdefs.h. */
8841 static struct exception x; x.arg1 = x.arg2 = x.retval; x.name = ""; x.type = 1;
8846 if ac_fn_c_try_compile "$LINENO"; then :
8847 emacs_cv_struct_exception=yes
8849 emacs_cv_struct_exception=no
8851 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8853 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $emacs_cv_struct_exception" >&5
8854 $as_echo "$emacs_cv_struct_exception" >&6; }
8855 HAVE_EXCEPTION=$emacs_cv_struct_exception
8856 if test $emacs_cv_struct_exception != yes; then
8858 $as_echo "#define NO_MATHERR 1" >>confdefs.h
8864 for ac_header in sys/socket.h
8866 ac_fn_c_check_header_mongrel "$LINENO" "sys/socket.h" "ac_cv_header_sys_socket_h" "$ac_includes_default"
8867 if test "x$ac_cv_header_sys_socket_h" = x""yes; then :
8868 cat >>confdefs.h <<_ACEOF
8869 #define HAVE_SYS_SOCKET_H 1
8876 >>>>>>> MERGE-SOURCE
8877 for ac_header in net/if.h
8879 ac_fn_c_check_header_compile "$LINENO" "net/if.h" "ac_cv_header_net_if_h" "$ac_includes_default
8880 #if HAVE_SYS_SOCKET_H
8881 #include <sys/socket.h>
8884 if test "x$ac_cv_header_net_if_h" = x""yes; then :
8885 cat >>confdefs.h <<_ACEOF
8886 #define HAVE_NET_IF_H 1
8895 for ac_header in ifaddrs.h
8897 ac_fn_c_check_header_compile "$LINENO" "ifaddrs.h" "ac_cv_header_ifaddrs_h" "$ac_includes_default
8898 #if HAVE_SYS_SOCKET_H
8899 #include <sys/socket.h>
8902 if test "x$ac_cv_header_ifaddrs_h" = x""yes; then :
8903 cat >>confdefs.h <<_ACEOF
8904 #define HAVE_IFADDRS_H 1
8911 for ac_header in net/if_dl.h
8913 ac_fn_c_check_header_compile "$LINENO" "net/if_dl.h" "ac_cv_header_net_if_dl_h" "$ac_includes_default
8914 #if HAVE_SYS_SOCKET_H
8915 #include <sys/socket.h>
8918 if test "x$ac_cv_header_net_if_dl_h" = x""yes; then :
8919 cat >>confdefs.h <<_ACEOF
8920 #define HAVE_NET_IF_DL_H 1
8927 for ac_func in getifaddrs freeifaddrs
8929 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
8930 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
8931 eval as_val=\$$as_ac_var
8932 if test "x$as_val" = x""yes; then :
8933 cat >>confdefs.h <<_ACEOF
8934 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
8940 >>>>>>> MERGE-SOURCE
8942 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether struct tm is in sys/time.h or time.h" >&5
8943 $as_echo_n "checking whether struct tm is in sys/time.h or time.h... " >&6; }
8944 if test "${ac_cv_struct_tm+set}" = set; then :
8945 $as_echo_n "(cached) " >&6
8947 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8948 /* end confdefs.h. */
8949 #include <sys/types.h>
8956 int *p = &tm.tm_sec;
8962 if ac_fn_c_try_compile "$LINENO"; then :
8963 ac_cv_struct_tm=time.h
8965 ac_cv_struct_tm=sys/time.h
8967 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8969 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_struct_tm" >&5
8970 $as_echo "$ac_cv_struct_tm" >&6; }
8971 if test $ac_cv_struct_tm = sys/time.h; then
8973 $as_echo "#define TM_IN_SYS_TIME 1" >>confdefs.h
8977 ac_fn_c_check_member "$LINENO" "struct tm" "tm_zone" "ac_cv_member_struct_tm_tm_zone" "#include <sys/types.h>
8978 #include <$ac_cv_struct_tm>
8981 if test "x$ac_cv_member_struct_tm_tm_zone" = x""yes; then :
8983 cat >>confdefs.h <<_ACEOF
8984 #define HAVE_STRUCT_TM_TM_ZONE 1
8990 if test "$ac_cv_member_struct_tm_tm_zone" = yes; then
8992 $as_echo "#define HAVE_TM_ZONE 1" >>confdefs.h
8995 ac_fn_c_check_decl "$LINENO" "tzname" "ac_cv_have_decl_tzname" "#include <time.h>
8997 if test "x$ac_cv_have_decl_tzname" = x""yes; then :
9003 cat >>confdefs.h <<_ACEOF
9004 #define HAVE_DECL_TZNAME $ac_have_decl
9007 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for tzname" >&5
9008 $as_echo_n "checking for tzname... " >&6; }
9009 if test "${ac_cv_var_tzname+set}" = set; then :
9010 $as_echo_n "(cached) " >&6
9012 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9013 /* end confdefs.h. */
9015 #if !HAVE_DECL_TZNAME
9016 extern char *tzname[];
9022 return tzname[0][0];
9027 if ac_fn_c_try_link "$LINENO"; then :
9028 ac_cv_var_tzname=yes
9032 rm -f core conftest.err conftest.$ac_objext \
9033 conftest$ac_exeext conftest.$ac_ext
9035 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_var_tzname" >&5
9036 $as_echo "$ac_cv_var_tzname" >&6; }
9037 if test $ac_cv_var_tzname = yes; then
9039 $as_echo "#define HAVE_TZNAME 1" >>confdefs.h
9044 ac_fn_c_check_member "$LINENO" "struct tm" "tm_gmtoff" "ac_cv_member_struct_tm_tm_gmtoff" "#include <time.h>
9046 if test "x$ac_cv_member_struct_tm_tm_gmtoff" = x""yes; then :
9048 $as_echo "#define HAVE_TM_GMTOFF 1" >>confdefs.h
9052 ac_fn_c_check_member "$LINENO" "struct ifreq" "ifr_flags" "ac_cv_member_struct_ifreq_ifr_flags" "$ac_includes_default
9053 #if HAVE_SYS_SOCKET_H
9054 #include <sys/socket.h>
9060 if test "x$ac_cv_member_struct_ifreq_ifr_flags" = x""yes; then :
9062 cat >>confdefs.h <<_ACEOF
9063 #define HAVE_STRUCT_IFREQ_IFR_FLAGS 1
9068 ac_fn_c_check_member "$LINENO" "struct ifreq" "ifr_hwaddr" "ac_cv_member_struct_ifreq_ifr_hwaddr" "$ac_includes_default
9069 #if HAVE_SYS_SOCKET_H
9070 #include <sys/socket.h>
9076 if test "x$ac_cv_member_struct_ifreq_ifr_hwaddr" = x""yes; then :
9078 cat >>confdefs.h <<_ACEOF
9079 #define HAVE_STRUCT_IFREQ_IFR_HWADDR 1
9084 ac_fn_c_check_member "$LINENO" "struct ifreq" "ifr_netmask" "ac_cv_member_struct_ifreq_ifr_netmask" "$ac_includes_default
9085 #if HAVE_SYS_SOCKET_H
9086 #include <sys/socket.h>
9092 if test "x$ac_cv_member_struct_ifreq_ifr_netmask" = x""yes; then :
9094 cat >>confdefs.h <<_ACEOF
9095 #define HAVE_STRUCT_IFREQ_IFR_NETMASK 1
9100 ac_fn_c_check_member "$LINENO" "struct ifreq" "ifr_broadaddr" "ac_cv_member_struct_ifreq_ifr_broadaddr" "$ac_includes_default
9101 #if HAVE_SYS_SOCKET_H
9102 #include <sys/socket.h>
9108 if test "x$ac_cv_member_struct_ifreq_ifr_broadaddr" = x""yes; then :
9110 cat >>confdefs.h <<_ACEOF
9111 #define HAVE_STRUCT_IFREQ_IFR_BROADADDR 1
9116 ac_fn_c_check_member "$LINENO" "struct ifreq" "ifr_addr" "ac_cv_member_struct_ifreq_ifr_addr" "$ac_includes_default
9117 #if HAVE_SYS_SOCKET_H
9118 #include <sys/socket.h>
9124 if test "x$ac_cv_member_struct_ifreq_ifr_addr" = x""yes; then :
9126 cat >>confdefs.h <<_ACEOF
9127 #define HAVE_STRUCT_IFREQ_IFR_ADDR 1
9134 ac_fn_c_check_member "$LINENO" "struct ifreq" "ifr_addr.sa_len" "ac_cv_member_struct_ifreq_ifr_addr_sa_len" "$ac_includes_default
9135 #if HAVE_SYS_SOCKET_H
9136 #include <sys/socket.h>
9142 if test "x$ac_cv_member_struct_ifreq_ifr_addr_sa_len" = x""yes; then :
9144 cat >>confdefs.h <<_ACEOF
9145 #define HAVE_STRUCT_IFREQ_IFR_ADDR_SA_LEN 1
9150 >>>>>>> MERGE-SOURCE
9154 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for function prototypes" >&5
9155 $as_echo_n "checking for function prototypes... " >&6; }
9156 if test "$ac_cv_prog_cc_c89" != no; then
9157 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
9158 $as_echo "yes" >&6; }
9160 $as_echo "#define PROTOTYPES 1" >>confdefs.h
9163 $as_echo "#define __PROTOTYPES 1" >>confdefs.h
9166 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9167 $as_echo "no" >&6; }
9170 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working volatile" >&5
9171 $as_echo_n "checking for working volatile... " >&6; }
9172 if test "${ac_cv_c_volatile+set}" = set; then :
9173 $as_echo_n "(cached) " >&6
9175 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9176 /* end confdefs.h. */
9183 int * volatile y = (int *) 0;
9189 if ac_fn_c_try_compile "$LINENO"; then :
9190 ac_cv_c_volatile=yes
9194 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9196 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_volatile" >&5
9197 $as_echo "$ac_cv_c_volatile" >&6; }
9198 if test $ac_cv_c_volatile = no; then
9200 $as_echo "#define volatile /**/" >>confdefs.h
9204 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for an ANSI C-conforming const" >&5
9205 $as_echo_n "checking for an ANSI C-conforming const... " >&6; }
9206 if test "${ac_cv_c_const+set}" = set; then :
9207 $as_echo_n "(cached) " >&6
9209 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9210 /* end confdefs.h. */
9215 /* FIXME: Include the comments suggested by Paul. */
9217 /* Ultrix mips cc rejects this. */
9218 typedef int charset[2];
9220 /* SunOS 4.1.1 cc rejects this. */
9221 char const *const *pcpcc;
9223 /* NEC SVR4.0.2 mips cc rejects this. */
9224 struct point {int x, y;};
9225 static struct point const zero = {0,0};
9226 /* AIX XL C 1.02.0.0 rejects this.
9227 It does not let you subtract one const X* pointer from another in
9228 an arm of an if-expression whose if-part is not a constant
9230 const char *g = "string";
9231 pcpcc = &g + (g ? g-g : 0);
9232 /* HPUX 7.0 cc rejects these. */
9234 ppc = (char**) pcpcc;
9235 pcpcc = (char const *const *) ppc;
9236 { /* SCO 3.2v4 cc rejects this. */
9238 char const *s = 0 ? (char *) 0 : (char const *) 0;
9243 { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
9245 const int *foo = &x[0];
9248 { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
9249 typedef const int *iptr;
9253 { /* AIX XL C 1.02.0.0 rejects this saying
9254 "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
9255 struct s { int j; const int *ap[3]; };
9256 struct s *b; b->j = 5;
9258 { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
9262 return !cs[0] && !zero.x;
9269 if ac_fn_c_try_compile "$LINENO"; then :
9274 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9276 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_const" >&5
9277 $as_echo "$ac_cv_c_const" >&6; }
9278 if test $ac_cv_c_const = no; then
9280 $as_echo "#define const /**/" >>confdefs.h
9284 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for void * support" >&5
9285 $as_echo_n "checking for void * support... " >&6; }
9286 if test "${emacs_cv_void_star+set}" = set; then :
9287 $as_echo_n "(cached) " >&6
9289 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9290 /* end confdefs.h. */
9300 if ac_fn_c_try_compile "$LINENO"; then :
9301 emacs_cv_void_star=yes
9303 emacs_cv_void_star=no
9305 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9307 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $emacs_cv_void_star" >&5
9308 $as_echo "$emacs_cv_void_star" >&6; }
9309 if test $emacs_cv_void_star = yes; then
9310 $as_echo "#define POINTER_TYPE void" >>confdefs.h
9313 $as_echo "#define POINTER_TYPE char" >>confdefs.h
9317 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether byte ordering is bigendian" >&5
9318 $as_echo_n "checking whether byte ordering is bigendian... " >&6; }
9319 if test "${ac_cv_c_bigendian+set}" = set; then :
9320 $as_echo_n "(cached) " >&6
9322 ac_cv_c_bigendian=unknown
9323 # See if we're dealing with a universal compiler.
9324 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9325 /* end confdefs.h. */
9326 #ifndef __APPLE_CC__
9327 not a universal capable compiler
9332 if ac_fn_c_try_compile "$LINENO"; then :
9334 # Check for potential -arch flags. It is not universal unless
9335 # there are at least two -arch flags with different values.
9338 for ac_word in $CC $CFLAGS $CPPFLAGS $LDFLAGS; do
9339 if test -n "$ac_prev"; then
9341 i?86 | x86_64 | ppc | ppc64)
9342 if test -z "$ac_arch" || test "$ac_arch" = "$ac_word"; then
9345 ac_cv_c_bigendian=universal
9351 elif test "x$ac_word" = "x-arch"; then
9356 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9357 if test $ac_cv_c_bigendian = unknown; then
9358 # See if sys/param.h defines the BYTE_ORDER macro.
9359 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9360 /* end confdefs.h. */
9361 #include <sys/types.h>
9362 #include <sys/param.h>
9367 #if ! (defined BYTE_ORDER && defined BIG_ENDIAN \
9368 && defined LITTLE_ENDIAN && BYTE_ORDER && BIG_ENDIAN \
9377 if ac_fn_c_try_compile "$LINENO"; then :
9378 # It does; now see whether it defined to BIG_ENDIAN or not.
9379 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9380 /* end confdefs.h. */
9381 #include <sys/types.h>
9382 #include <sys/param.h>
9387 #if BYTE_ORDER != BIG_ENDIAN
9395 if ac_fn_c_try_compile "$LINENO"; then :
9396 ac_cv_c_bigendian=yes
9398 ac_cv_c_bigendian=no
9400 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9402 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9404 if test $ac_cv_c_bigendian = unknown; then
9405 # See if <limits.h> defines _LITTLE_ENDIAN or _BIG_ENDIAN (e.g., Solaris).
9406 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9407 /* end confdefs.h. */
9413 #if ! (defined _LITTLE_ENDIAN || defined _BIG_ENDIAN)
9421 if ac_fn_c_try_compile "$LINENO"; then :
9422 # It does; now see whether it defined to _BIG_ENDIAN or not.
9423 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9424 /* end confdefs.h. */
9438 if ac_fn_c_try_compile "$LINENO"; then :
9439 ac_cv_c_bigendian=yes
9441 ac_cv_c_bigendian=no
9443 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9445 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9447 if test $ac_cv_c_bigendian = unknown; then
9448 # Compile a test program.
9449 if test "$cross_compiling" = yes; then :
9450 # Try to guess by grepping values from an object file.
9451 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9452 /* end confdefs.h. */
9453 short int ascii_mm[] =
9454 { 0x4249, 0x4765, 0x6E44, 0x6961, 0x6E53, 0x7953, 0 };
9455 short int ascii_ii[] =
9456 { 0x694C, 0x5454, 0x656C, 0x6E45, 0x6944, 0x6E61, 0 };
9457 int use_ascii (int i) {
9458 return ascii_mm[i] + ascii_ii[i];
9460 short int ebcdic_ii[] =
9461 { 0x89D3, 0xE3E3, 0x8593, 0x95C5, 0x89C4, 0x9581, 0 };
9462 short int ebcdic_mm[] =
9463 { 0xC2C9, 0xC785, 0x95C4, 0x8981, 0x95E2, 0xA8E2, 0 };
9464 int use_ebcdic (int i) {
9465 return ebcdic_mm[i] + ebcdic_ii[i];
9472 return use_ascii (foo) == use_ebcdic (foo);
9477 if ac_fn_c_try_compile "$LINENO"; then :
9478 if grep BIGenDianSyS conftest.$ac_objext >/dev/null; then
9479 ac_cv_c_bigendian=yes
9481 if grep LiTTleEnDian conftest.$ac_objext >/dev/null ; then
9482 if test "$ac_cv_c_bigendian" = unknown; then
9483 ac_cv_c_bigendian=no
9485 # finding both strings is unlikely to happen, but who knows?
9486 ac_cv_c_bigendian=unknown
9490 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9492 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9493 /* end confdefs.h. */
9494 $ac_includes_default
9499 /* Are we little or big endian? From Harbison&Steele. */
9503 char c[sizeof (long int)];
9506 return u.c[sizeof (long int) - 1] == 1;
9512 if ac_fn_c_try_run "$LINENO"; then :
9513 ac_cv_c_bigendian=no
9515 ac_cv_c_bigendian=yes
9517 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
9518 conftest.$ac_objext conftest.beam conftest.$ac_ext
9523 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_bigendian" >&5
9524 $as_echo "$ac_cv_c_bigendian" >&6; }
9525 case $ac_cv_c_bigendian in #(
9527 $as_echo "#define WORDS_BIGENDIAN 1" >>confdefs.h
9533 $as_echo "#define AC_APPLE_UNIVERSAL_BUILD 1" >>confdefs.h
9537 as_fn_error "unknown endianness
9538 presetting ac_cv_c_bigendian=no (or yes) will help" "$LINENO" 5 ;;
9542 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for __attribute__ ((__aligned__ (expr)))" >&5
9543 $as_echo_n "checking for __attribute__ ((__aligned__ (expr)))... " >&6; }
9544 if test "${emacs_cv_attribute_aligned+set}" = set; then :
9545 $as_echo_n "(cached) " >&6
9547 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9548 /* end confdefs.h. */
9549 char __attribute__ ((__aligned__ (1 << 3))) c;
9558 if ac_fn_c_try_compile "$LINENO"; then :
9559 emacs_cv_attribute_aligned=yes
9561 emacs_cv_attribute_aligned=no
9563 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9565 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $emacs_cv_attribute_aligned" >&5
9566 $as_echo "$emacs_cv_attribute_aligned" >&6; }
9567 if test $emacs_cv_attribute_aligned = yes; then
9569 $as_echo "#define HAVE_ATTRIBUTE_ALIGNED 1" >>confdefs.h
9573 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
9574 $as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
9576 ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
9577 if { as_var=ac_cv_prog_make_${ac_make}_set; eval "test \"\${$as_var+set}\" = set"; }; then :
9578 $as_echo_n "(cached) " >&6
9580 cat >conftest.make <<\_ACEOF
9583 @echo '@@@%%%=$(MAKE)=@@@%%%'
9585 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
9586 case `${MAKE-make} -f conftest.make 2>/dev/null` in
9588 eval ac_cv_prog_make_${ac_make}_set=yes;;
9590 eval ac_cv_prog_make_${ac_make}_set=no;;
9594 if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
9595 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
9596 $as_echo "yes" >&6; }
9599 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9600 $as_echo "no" >&6; }
9601 SET_MAKE="MAKE=${MAKE-make}"
9608 if test "$GCC" = yes && test "$ac_enable_autodepend" = yes; then
9609 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using GNU Make" >&5
9610 $as_echo_n "checking whether we are using GNU Make... " >&6; }
9612 testval=`make --version 2>/dev/null | grep 'GNU Make'`
9613 if test "x$testval" != x; then
9616 ac_enable_autodepend=no
9618 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $HAVE_GNU_MAKE" >&5
9619 $as_echo "$HAVE_GNU_MAKE" >&6; }
9620 if test $HAVE_GNU_MAKE = yes; then
9621 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether gcc understands -MMD -MF" >&5
9622 $as_echo_n "checking whether gcc understands -MMD -MF... " >&6; }
9623 SAVE_CFLAGS="$CFLAGS"
9624 CFLAGS="$CFLAGS -MMD -MF deps.d -MP"
9625 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9626 /* end confdefs.h. */
9636 if ac_fn_c_try_compile "$LINENO"; then :
9639 ac_enable_autodepend=no
9641 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9642 CFLAGS="$SAVE_CFLAGS"
9643 test -f deps.d || ac_enable_autodepend=no
9645 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_enable_autodepend" >&5
9646 $as_echo "$ac_enable_autodepend" >&6; }
9648 if test $ac_enable_autodepend = yes; then
9649 DEPFLAGS='-MMD -MF ${DEPDIR}/$*.d -MP'
9650 ## In parallel builds, another make might create depdir between
9651 ## the first test and mkdir, so stick another test on the end.
9652 ## Or use install-sh -d? mkdir -p is not portable.
9653 MKDEPDIR='test -d ${DEPDIR} || mkdir ${DEPDIR} || test -d ${DEPDIR}'
9654 deps_frag=autodeps.mk
9657 deps_frag=$srcdir/src/$deps_frag
9663 lisp_frag=$srcdir/src/lisp.mk
9667 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for long file names" >&5
9668 $as_echo_n "checking for long file names... " >&6; }
9669 if test "${ac_cv_sys_long_file_names+set}" = set; then :
9670 $as_echo_n "(cached) " >&6
9672 ac_cv_sys_long_file_names=yes
9673 # Test for long file names in all the places we know might matter:
9674 # . the current directory, where building will happen
9675 # $prefix/lib where we will be installing things
9676 # $exec_prefix/lib likewise
9677 # $TMPDIR if set, where it might want to write temporary files
9678 # /tmp where it might want to write temporary files
9681 for ac_dir in . "$TMPDIR" /tmp /var/tmp /usr/tmp "$prefix/lib" "$exec_prefix/lib"; do
9682 # Skip $TMPDIR if it is empty or bogus, and skip $exec_prefix/lib
9683 # in the usual case where exec_prefix is '${prefix}'.
9685 . | /* | ?:[\\/]*) ;; #(
9688 test -w "$ac_dir/." || continue # It is less confusing to not echo anything here.
9689 ac_xdir=$ac_dir/cf$$
9690 (umask 077 && mkdir "$ac_xdir" 2>/dev/null) || continue
9691 ac_tf1=$ac_xdir/conftest9012345
9692 ac_tf2=$ac_xdir/conftest9012346
9693 touch "$ac_tf1" 2>/dev/null && test -f "$ac_tf1" && test ! -f "$ac_tf2" ||
9694 ac_cv_sys_long_file_names=no
9695 rm -f -r "$ac_xdir" 2>/dev/null
9696 test $ac_cv_sys_long_file_names = no && break
9699 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_long_file_names" >&5
9700 $as_echo "$ac_cv_sys_long_file_names" >&6; }
9701 if test $ac_cv_sys_long_file_names = yes; then
9703 $as_echo "#define HAVE_LONG_FILE_NAMES 1" >>confdefs.h
9708 #### Choose a window system.
9710 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for X" >&5
9711 $as_echo_n "checking for X... " >&6; }
9714 # Check whether --with-x was given.
9715 if test "${with_x+set}" = set; then :
9719 # $have_x is `yes', `no', `disabled', or empty when we do not yet know.
9720 if test "x$with_x" = xno; then
9721 # The user explicitly disabled X.
9724 case $x_includes,$x_libraries in #(
9725 *\'*) as_fn_error "cannot use X directory names containing '" "$LINENO" 5;; #(
9726 *,NONE | NONE,*) if test "${ac_cv_have_x+set}" = set; then :
9727 $as_echo_n "(cached) " >&6
9729 # One or both of the vars are not set, and there is no cached value.
9730 ac_x_includes=no ac_x_libraries=no
9731 rm -f -r conftest.dir
9732 if mkdir conftest.dir; then
9734 cat >Imakefile <<'_ACEOF'
9736 @echo incroot='${INCROOT}'
9738 @echo usrlibdir='${USRLIBDIR}'
9740 @echo libdir='${LIBDIR}'
9742 if (export CC; ${XMKMF-xmkmf}) >/dev/null 2>/dev/null && test -f Makefile; then
9743 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
9744 for ac_var in incroot usrlibdir libdir; do
9745 eval "ac_im_$ac_var=\`\${MAKE-make} $ac_var 2>/dev/null | sed -n 's/^$ac_var=//p'\`"
9747 # Open Windows xmkmf reportedly sets LIBDIR instead of USRLIBDIR.
9748 for ac_extension in a so sl dylib la dll; do
9749 if test ! -f "$ac_im_usrlibdir/libX11.$ac_extension" &&
9750 test -f "$ac_im_libdir/libX11.$ac_extension"; then
9751 ac_im_usrlibdir=$ac_im_libdir; break
9754 # Screen out bogus values from the imake configuration. They are
9755 # bogus both because they are the default anyway, and because
9756 # using them would break gcc on systems where it needs fixed includes.
9757 case $ac_im_incroot in
9758 /usr/include) ac_x_includes= ;;
9759 *) test -f "$ac_im_incroot/X11/Xos.h" && ac_x_includes=$ac_im_incroot;;
9761 case $ac_im_usrlibdir in
9762 /usr/lib | /usr/lib64 | /lib | /lib64) ;;
9763 *) test -d "$ac_im_usrlibdir" && ac_x_libraries=$ac_im_usrlibdir ;;
9767 rm -f -r conftest.dir
9770 # Standard set of common directories for X headers.
9771 # Check X11 before X11Rn because it is often a symlink to the current release.
9785 /usr/local/X11/include
9786 /usr/local/X11R7/include
9787 /usr/local/X11R6/include
9788 /usr/local/X11R5/include
9789 /usr/local/X11R4/include
9791 /usr/local/include/X11
9792 /usr/local/include/X11R7
9793 /usr/local/include/X11R6
9794 /usr/local/include/X11R5
9795 /usr/local/include/X11R4
9799 /usr/XFree86/include/X11
9803 /usr/unsupported/include
9805 /usr/local/x11r5/include
9806 /usr/lpp/Xamples/include
9808 /usr/openwin/include
9809 /usr/openwin/share/include'
9811 if test "$ac_x_includes" = no; then
9812 # Guess where to find include files, by looking for Xlib.h.
9813 # First, try using that file with no special directory specified.
9814 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9815 /* end confdefs.h. */
9816 #include <X11/Xlib.h>
9818 if ac_fn_c_try_cpp "$LINENO"; then :
9819 # We can compile using X headers with no special include directory.
9822 for ac_dir in $ac_x_header_dirs; do
9823 if test -r "$ac_dir/X11/Xlib.h"; then
9824 ac_x_includes=$ac_dir
9829 rm -f conftest.err conftest.$ac_ext
9830 fi # $ac_x_includes = no
9832 if test "$ac_x_libraries" = no; then
9833 # Check for the libraries.
9834 # See if we find them without any special options.
9835 # Don't add to $LIBS permanently.
9838 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9839 /* end confdefs.h. */
9840 #include <X11/Xlib.h>
9849 if ac_fn_c_try_link "$LINENO"; then :
9851 # We can link X programs with no special library path.
9855 for ac_dir in `$as_echo "$ac_x_includes $ac_x_header_dirs" | sed s/include/lib/g`
9857 # Don't even attempt the hair of trying to link an X program!
9858 for ac_extension in a so sl dylib la dll; do
9859 if test -r "$ac_dir/libX11.$ac_extension"; then
9860 ac_x_libraries=$ac_dir
9866 rm -f core conftest.err conftest.$ac_objext \
9867 conftest$ac_exeext conftest.$ac_ext
9868 fi # $ac_x_libraries = no
9870 case $ac_x_includes,$ac_x_libraries in #(
9872 # Didn't find X, or a directory has "'" in its name.
9873 ac_cv_have_x="have_x=no";; #(
9875 # Record where we found X for the cache.
9876 ac_cv_have_x="have_x=yes\
9877 ac_x_includes='$ac_x_includes'\
9878 ac_x_libraries='$ac_x_libraries'"
9884 eval "$ac_cv_have_x"
9887 if test "$have_x" != yes; then
9888 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_x" >&5
9889 $as_echo "$have_x" >&6; }
9892 # If each of the values was on the command line, it overrides each guess.
9893 test "x$x_includes" = xNONE && x_includes=$ac_x_includes
9894 test "x$x_libraries" = xNONE && x_libraries=$ac_x_libraries
9895 # Update the cache value to reflect the command line values.
9896 ac_cv_have_x="have_x=yes\
9897 ac_x_includes='$x_includes'\
9898 ac_x_libraries='$x_libraries'"
9899 { $as_echo "$as_me:${as_lineno-$LINENO}: result: libraries $x_libraries, headers $x_includes" >&5
9900 $as_echo "libraries $x_libraries, headers $x_includes" >&6; }
9903 if test "$no_x" = yes; then
9909 ## Workaround for bug in autoconf <= 2.62.
9910 ## http://lists.gnu.org/archive/html/emacs-devel/2008-04/msg01551.html
9911 ## No need to do anything special for these standard directories.
9912 if test -n "${x_libraries}" && test x"${x_libraries}" != xNONE; then
9914 x_libraries=`echo :${x_libraries}: | sed -e 's|:/usr/lib64:|:|g' -e 's|:/lib64:|:|g' -e 's|^:||' -e 's|:$||'`
9918 LD_SWITCH_X_SITE_AUX=
9919 LD_SWITCH_X_SITE_AUX_RPATH=
9920 if test "${x_libraries}" != NONE; then
9921 if test -n "${x_libraries}"; then
9922 LD_SWITCH_X_SITE=-L`echo ${x_libraries} | sed -e "s/:/ -L/g"`
9923 LD_SWITCH_X_SITE_AUX=-R`echo ${x_libraries} | sed -e "s/:/ -R/g"`
9924 LD_SWITCH_X_SITE_AUX_RPATH=`echo ${LD_SWITCH_X_SITE_AUX} | sed -e 's/-R/-Wl,-rpath,/'`
9926 x_default_search_path=""
9927 x_search_path=${x_libraries}
9928 if test -z "${x_search_path}"; then
9929 x_search_path=/usr/lib
9931 for x_library in `echo ${x_search_path}: | \
9932 sed -e "s/:/ /g" -e p -e "s:/lib[^ /]* :/share :g"`; do
9934 ${x_library}/X11/%L/%T/%N%C%S:\
9935 ${x_library}/X11/%l/%T/%N%C%S:\
9936 ${x_library}/X11/%T/%N%C%S:\
9937 ${x_library}/X11/%L/%T/%N%S:\
9938 ${x_library}/X11/%l/%T/%N%S:\
9939 ${x_library}/X11/%T/%N%S"
9940 if test x"${x_default_search_path}" = x; then
9941 x_default_search_path=${x_search_path}
9943 x_default_search_path="${x_search_path}:${x_default_search_path}"
9950 if test "${x_includes}" != NONE && test -n "${x_includes}"; then
9951 C_SWITCH_X_SITE=-I`echo ${x_includes} | sed -e "s/:/ -I/g"`
9954 if test x"${x_includes}" = x; then
9955 bitmapdir=/usr/include/X11/bitmaps
9957 # accumulate include directories that have X11 bitmap subdirectories
9959 for bmd in `echo ${x_includes} | sed -e "s/:/ /g"`; do
9960 if test -d "${bmd}/X11/bitmaps"; then
9961 bmd_acc="${bmd_acc}:${bmd}/X11/bitmaps"
9963 if test -d "${bmd}/bitmaps"; then
9964 bmd_acc="${bmd_acc}:${bmd}/bitmaps"
9967 if test ${bmd_acc} != "dummyval"; then
9968 bitmapdir=`echo ${bmd_acc} | sed -e "s/^dummyval://"`
9975 tmp_CPPFLAGS="$CPPFLAGS"
9976 tmp_CFLAGS="$CFLAGS"
9977 CPPFLAGS="$CPPFLAGS -x objective-c"
9978 CFLAGS="$CFLAGS -x objective-c"
9979 TEMACS_LDFLAGS2="\${LDFLAGS}"
9980 if test "${with_ns}" != no; then
9981 if test "${opsys}" = darwin; then
9983 ns_appdir=`pwd`/nextstep/Emacs.app
9984 ns_appbindir=${ns_appdir}/Contents/MacOS/
9985 ns_appresdir=${ns_appdir}/Contents/Resources
9986 ns_appsrc=${srcdir}/nextstep/Cocoa/Emacs.base
9987 elif test -f $GNUSTEP_CONFIG_FILE; then
9989 ns_appdir=`pwd`/nextstep/Emacs.app
9990 ns_appbindir=${ns_appdir}/
9991 ns_appresdir=${ns_appdir}/Resources
9992 ns_appsrc=${srcdir}/nextstep/GNUstep/Emacs.base
9993 GNUSTEP_SYSTEM_HEADERS="$(. $GNUSTEP_CONFIG_FILE; echo $GNUSTEP_SYSTEM_HEADERS)"
9994 GNUSTEP_SYSTEM_LIBRARIES="$(. $GNUSTEP_CONFIG_FILE; echo $GNUSTEP_SYSTEM_LIBRARIES)"
9995 GNUSTEP_LOCAL_HEADERS="$(. $GNUSTEP_CONFIG_FILE; echo $GNUSTEP_LOCAL_HEADERS)"
9996 GNUSTEP_LOCAL_LIBRARIES="$(. $GNUSTEP_CONFIG_FILE; echo $GNUSTEP_LOCAL_LIBRARIES)"
9997 test "x${GNUSTEP_LOCAL_HEADERS}" != "x" && \
9998 GNUSTEP_LOCAL_HEADERS="-I${GNUSTEP_LOCAL_HEADERS}"
9999 test "x${GNUSTEP_LOCAL_LIBRARIES}" != "x" && \
10000 GNUSTEP_LOCAL_LIBRARIES="-L${GNUSTEP_LOCAL_LIBRARIES}"
10001 CPPFLAGS="$CPPFLAGS -I${GNUSTEP_SYSTEM_HEADERS} ${GNUSTEP_LOCAL_HEADERS}"
10002 CFLAGS="$CFLAGS -I${GNUSTEP_SYSTEM_HEADERS} ${GNUSTEP_LOCAL_HEADERS}"
10003 LDFLAGS="$LDFLAGS -L${GNUSTEP_SYSTEM_LIBRARIES} ${GNUSTEP_LOCAL_LIBRARIES}"
10008 ac_fn_c_check_header_mongrel "$LINENO" "AppKit/AppKit.h" "ac_cv_header_AppKit_AppKit_h" "$ac_includes_default"
10009 if test "x$ac_cv_header_AppKit_AppKit_h" = x""yes; then :
10012 as_fn_error "\`--with-ns' was specified, but the include
10013 files are missing or cannot be compiled." "$LINENO" 5
10017 NS_HAVE_NSINTEGER=yes
10018 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10019 /* end confdefs.h. */
10020 #include <Foundation/NSObjCRuntime.h>
10029 if ac_fn_c_try_compile "$LINENO"; then :
10030 ns_have_nsinteger=yes
10032 ns_have_nsinteger=no
10034 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10035 if test $ns_have_nsinteger = no; then
10036 NS_HAVE_NSINTEGER=no
10044 if test "${HAVE_NS}" = yes; then
10045 window_system=nextstep
10047 # set up packaging dirs
10048 exec_prefix=${ns_appbindir}
10049 libexecdir=${ns_appbindir}/libexec
10050 if test "${EN_NS_SELF_CONTAINED}" = yes; then
10051 prefix=${ns_appresdir}
10053 ns_frag=$srcdir/src/ns.mk
10054 NS_OBJ="fontset.o fringe.o image.o"
10055 NS_OBJC_OBJ="nsterm.o nsfns.o nsmenu.o nsselect.o nsimage.o nsfont.o"
10057 CFLAGS="$tmp_CFLAGS"
10058 CPPFLAGS="$tmp_CPPFLAGS"
10064 case "${window_system}" in
10068 case "${with_x_toolkit}" in
10069 athena | lucid ) USE_X_TOOLKIT=LUCID ;;
10070 motif ) USE_X_TOOLKIT=MOTIF ;;
10072 USE_X_TOOLKIT=none ;;
10073 gtk3 ) with_gtk3=yes
10074 USE_X_TOOLKIT=none ;;
10075 no ) USE_X_TOOLKIT=none ;;
10076 * ) USE_X_TOOLKIT=maybe ;;
10086 if test "$window_system" = none && test "X$with_x" != "Xno"; then
10087 # Extract the first word of "X", so it can be a program name with args.
10088 set dummy X; ac_word=$2
10089 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10090 $as_echo_n "checking for $ac_word... " >&6; }
10091 if test "${ac_cv_prog_HAVE_XSERVER+set}" = set; then :
10092 $as_echo_n "(cached) " >&6
10094 if test -n "$HAVE_XSERVER"; then
10095 ac_cv_prog_HAVE_XSERVER="$HAVE_XSERVER" # Let the user override the test.
10097 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10098 for as_dir in $PATH
10101 test -z "$as_dir" && as_dir=.
10102 for ac_exec_ext in '' $ac_executable_extensions; do
10103 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10104 ac_cv_prog_HAVE_XSERVER="true"
10105 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10112 test -z "$ac_cv_prog_HAVE_XSERVER" && ac_cv_prog_HAVE_XSERVER="false"
10115 HAVE_XSERVER=$ac_cv_prog_HAVE_XSERVER
10116 if test -n "$HAVE_XSERVER"; then
10117 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $HAVE_XSERVER" >&5
10118 $as_echo "$HAVE_XSERVER" >&6; }
10120 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10121 $as_echo "no" >&6; }
10125 if test "$HAVE_XSERVER" = true ||
10126 test -n "$DISPLAY" ||
10127 test "`echo /usr/lib/libX11.*`" != "/usr/lib/libX11.*"; then
10128 as_fn_error "You seem to be running X, but no X development libraries
10129 were found. You should install the relevant development files for X
10130 and for the toolkit you want, such as Gtk+, Lesstif or Motif. Also make
10131 sure you have development files for image handling, i.e.
10132 tiff, gif, jpeg, png and xpm.
10133 If you are sure you want Emacs compiled without X window support, pass
10135 to configure." "$LINENO" 5
10139 ### If we're using X11, we should use the X menu package.
10141 case ${HAVE_X11} in
10142 yes ) HAVE_MENUS=yes ;;
10145 # Do the opsystem or machine files prohibit the use of the GNU malloc?
10146 # Assume not, until told otherwise.
10148 doug_lea_malloc=yes
10149 ac_fn_c_check_func "$LINENO" "malloc_get_state" "ac_cv_func_malloc_get_state"
10150 if test "x$ac_cv_func_malloc_get_state" = x""yes; then :
10156 ac_fn_c_check_func "$LINENO" "malloc_set_state" "ac_cv_func_malloc_set_state"
10157 if test "x$ac_cv_func_malloc_set_state" = x""yes; then :
10163 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether __after_morecore_hook exists" >&5
10164 $as_echo_n "checking whether __after_morecore_hook exists... " >&6; }
10165 if test "${emacs_cv_var___after_morecore_hook+set}" = set; then :
10166 $as_echo_n "(cached) " >&6
10168 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10169 /* end confdefs.h. */
10170 extern void (* __after_morecore_hook)();
10174 __after_morecore_hook = 0
10179 if ac_fn_c_try_link "$LINENO"; then :
10180 emacs_cv_var___after_morecore_hook=yes
10182 emacs_cv_var___after_morecore_hook=no
10184 rm -f core conftest.err conftest.$ac_objext \
10185 conftest$ac_exeext conftest.$ac_ext
10187 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $emacs_cv_var___after_morecore_hook" >&5
10188 $as_echo "$emacs_cv_var___after_morecore_hook" >&6; }
10189 if test $emacs_cv_var___after_morecore_hook = no; then
10196 ## darwin ld insists on the use of malloc routines in the System framework.
10197 darwin|sol2-10) system_malloc=yes ;;
10200 if test "${system_malloc}" = "yes"; then
10202 $as_echo "#define SYSTEM_MALLOC 1" >>confdefs.h
10205 GNU_MALLOC_reason="
10206 (The GNU allocators don't work with this system configuration.)"
10210 test "$doug_lea_malloc" != "yes" && GMALLOC_OBJ=gmalloc.o
10211 VMLIMIT_OBJ=vm-limit.o
10216 if test "$doug_lea_malloc" = "yes" ; then
10217 if test "$GNU_MALLOC" = yes ; then
10218 GNU_MALLOC_reason="
10219 (Using Doug Lea's new malloc from the GNU C Library.)"
10222 $as_echo "#define DOUG_LEA_MALLOC 1" >>confdefs.h
10225 ## Use mmap directly for allocating larger buffers.
10226 ## FIXME this comes from src/s/{gnu,gnu-linux}.h:
10227 ## #ifdef DOUG_LEA_MALLOC; #undef REL_ALLOC; #endif
10228 ## Does the AC_FUNC_MMAP test below make this check unecessary?
10230 gnu*) REL_ALLOC=no ;;
10234 if test x"${REL_ALLOC}" = x; then
10235 REL_ALLOC=${GNU_MALLOC}
10238 use_mmap_for_buffers=no
10240 cygwin|freebsd|irix6-5) use_mmap_for_buffers=yes ;;
10246 for ac_header in $ac_header_list
10248 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
10249 ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
10251 eval as_val=\$$as_ac_Header
10252 if test "x$as_val" = x""yes; then :
10253 cat >>confdefs.h <<_ACEOF
10254 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
10268 for ac_func in getpagesize
10270 ac_fn_c_check_func "$LINENO" "getpagesize" "ac_cv_func_getpagesize"
10271 if test "x$ac_cv_func_getpagesize" = x""yes; then :
10272 cat >>confdefs.h <<_ACEOF
10273 #define HAVE_GETPAGESIZE 1
10279 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working mmap" >&5
10280 $as_echo_n "checking for working mmap... " >&6; }
10281 if test "${ac_cv_func_mmap_fixed_mapped+set}" = set; then :
10282 $as_echo_n "(cached) " >&6
10284 if test "$cross_compiling" = yes; then :
10285 ac_cv_func_mmap_fixed_mapped=no
10287 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10288 /* end confdefs.h. */
10289 $ac_includes_default
10290 /* malloc might have been renamed as rpl_malloc. */
10293 /* Thanks to Mike Haertel and Jim Avera for this test.
10294 Here is a matrix of mmap possibilities:
10295 mmap private not fixed
10296 mmap private fixed at somewhere currently unmapped
10297 mmap private fixed at somewhere already mapped
10298 mmap shared not fixed
10299 mmap shared fixed at somewhere currently unmapped
10300 mmap shared fixed at somewhere already mapped
10301 For private mappings, we should verify that changes cannot be read()
10302 back from the file, nor mmap's back from the file at a different
10303 address. (There have been systems where private was not correctly
10304 implemented like the infamous i386 svr4.0, and systems where the
10305 VM page cache was not coherent with the file system buffer cache
10306 like early versions of FreeBSD and possibly contemporary NetBSD.)
10307 For shared mappings, we should conversely verify that changes get
10308 propagated back to all the places they're supposed to be.
10310 Grep wants private fixed already mapped.
10311 The main things grep needs to know about mmap are:
10312 * does it exist and is it safe to write into the mmap'd area
10313 * how to use it (BSD variants) */
10316 #include <sys/mman.h>
10318 #if !defined STDC_HEADERS && !defined HAVE_STDLIB_H
10322 /* This mess was copied from the GNU getpagesize.h. */
10323 #ifndef HAVE_GETPAGESIZE
10324 # ifdef _SC_PAGESIZE
10325 # define getpagesize() sysconf(_SC_PAGESIZE)
10326 # else /* no _SC_PAGESIZE */
10327 # ifdef HAVE_SYS_PARAM_H
10328 # include <sys/param.h>
10329 # ifdef EXEC_PAGESIZE
10330 # define getpagesize() EXEC_PAGESIZE
10331 # else /* no EXEC_PAGESIZE */
10333 # define getpagesize() NBPG * CLSIZE
10336 # endif /* no CLSIZE */
10337 # else /* no NBPG */
10339 # define getpagesize() NBPC
10340 # else /* no NBPC */
10342 # define getpagesize() PAGESIZE
10343 # endif /* PAGESIZE */
10344 # endif /* no NBPC */
10345 # endif /* no NBPG */
10346 # endif /* no EXEC_PAGESIZE */
10347 # else /* no HAVE_SYS_PARAM_H */
10348 # define getpagesize() 8192 /* punt totally */
10349 # endif /* no HAVE_SYS_PARAM_H */
10350 # endif /* no _SC_PAGESIZE */
10352 #endif /* no HAVE_GETPAGESIZE */
10357 char *data, *data2, *data3;
10358 const char *cdata2;
10362 pagesize = getpagesize ();
10364 /* First, make a file with some known garbage in it. */
10365 data = (char *) malloc (pagesize);
10368 for (i = 0; i < pagesize; ++i)
10369 *(data + i) = rand ();
10371 fd = creat ("conftest.mmap", 0600);
10374 if (write (fd, data, pagesize) != pagesize)
10378 /* Next, check that the tail of a page is zero-filled. File must have
10379 non-zero length, otherwise we risk SIGBUS for entire page. */
10380 fd2 = open ("conftest.txt", O_RDWR | O_CREAT | O_TRUNC, 0600);
10384 if (write (fd2, cdata2, 1) != 1)
10386 data2 = (char *) mmap (0, pagesize, PROT_READ | PROT_WRITE, MAP_SHARED, fd2, 0L);
10387 if (data2 == MAP_FAILED)
10389 for (i = 0; i < pagesize; ++i)
10393 if (munmap (data2, pagesize))
10396 /* Next, try to mmap the file at a fixed address which already has
10397 something else allocated at it. If we can, also make sure that
10398 we see the same garbage. */
10399 fd = open ("conftest.mmap", O_RDWR);
10402 if (data2 != mmap (data2, pagesize, PROT_READ | PROT_WRITE,
10403 MAP_PRIVATE | MAP_FIXED, fd, 0L))
10405 for (i = 0; i < pagesize; ++i)
10406 if (*(data + i) != *(data2 + i))
10409 /* Finally, make sure that changes to the mapped area do not
10410 percolate back to the file as seen by read(). (This is a bug on
10411 some variants of i386 svr4.0.) */
10412 for (i = 0; i < pagesize; ++i)
10413 *(data2 + i) = *(data2 + i) + 1;
10414 data3 = (char *) malloc (pagesize);
10417 if (read (fd, data3, pagesize) != pagesize)
10419 for (i = 0; i < pagesize; ++i)
10420 if (*(data + i) != *(data3 + i))
10426 if ac_fn_c_try_run "$LINENO"; then :
10427 ac_cv_func_mmap_fixed_mapped=yes
10429 ac_cv_func_mmap_fixed_mapped=no
10431 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
10432 conftest.$ac_objext conftest.beam conftest.$ac_ext
10436 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_mmap_fixed_mapped" >&5
10437 $as_echo "$ac_cv_func_mmap_fixed_mapped" >&6; }
10438 if test $ac_cv_func_mmap_fixed_mapped = yes; then
10440 $as_echo "#define HAVE_MMAP 1" >>confdefs.h
10443 rm -f conftest.mmap conftest.txt
10445 if test $use_mmap_for_buffers = yes; then
10447 $as_echo "#define USE_MMAP_FOR_BUFFERS 1" >>confdefs.h
10452 LIBS="$LIBS_SYSTEM $LIBS"
10454 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dnet_ntoa in -ldnet" >&5
10455 $as_echo_n "checking for dnet_ntoa in -ldnet... " >&6; }
10456 if test "${ac_cv_lib_dnet_dnet_ntoa+set}" = set; then :
10457 $as_echo_n "(cached) " >&6
10459 ac_check_lib_save_LIBS=$LIBS
10460 LIBS="-ldnet $LIBS"
10461 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10462 /* end confdefs.h. */
10464 /* Override any GCC internal prototype to avoid an error.
10465 Use char because int might match the return type of a GCC
10466 builtin and then its argument prototype would still apply. */
10474 return dnet_ntoa ();
10479 if ac_fn_c_try_link "$LINENO"; then :
10480 ac_cv_lib_dnet_dnet_ntoa=yes
10482 ac_cv_lib_dnet_dnet_ntoa=no
10484 rm -f core conftest.err conftest.$ac_objext \
10485 conftest$ac_exeext conftest.$ac_ext
10486 LIBS=$ac_check_lib_save_LIBS
10488 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dnet_dnet_ntoa" >&5
10489 $as_echo "$ac_cv_lib_dnet_dnet_ntoa" >&6; }
10490 if test "x$ac_cv_lib_dnet_dnet_ntoa" = x""yes; then :
10491 cat >>confdefs.h <<_ACEOF
10492 #define HAVE_LIBDNET 1
10495 LIBS="-ldnet $LIBS"
10500 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for main in -lXbsd" >&5
10501 $as_echo_n "checking for main in -lXbsd... " >&6; }
10502 if test "${ac_cv_lib_Xbsd_main+set}" = set; then :
10503 $as_echo_n "(cached) " >&6
10505 ac_check_lib_save_LIBS=$LIBS
10506 LIBS="-lXbsd $LIBS"
10507 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10508 /* end confdefs.h. */
10519 if ac_fn_c_try_link "$LINENO"; then :
10520 ac_cv_lib_Xbsd_main=yes
10522 ac_cv_lib_Xbsd_main=no
10524 rm -f core conftest.err conftest.$ac_objext \
10525 conftest$ac_exeext conftest.$ac_ext
10526 LIBS=$ac_check_lib_save_LIBS
10528 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_Xbsd_main" >&5
10529 $as_echo "$ac_cv_lib_Xbsd_main" >&6; }
10530 if test "x$ac_cv_lib_Xbsd_main" = x""yes; then :
10531 LD_SWITCH_X_SITE="$LD_SWITCH_X_SITE -lXbsd"
10536 for ac_header in pthread.h
10538 ac_fn_c_check_header_mongrel "$LINENO" "pthread.h" "ac_cv_header_pthread_h" "$ac_includes_default"
10539 if test "x$ac_cv_header_pthread_h" = x""yes; then :
10540 cat >>confdefs.h <<_ACEOF
10541 #define HAVE_PTHREAD_H 1
10548 if test "$ac_cv_header_pthread_h"; then
10549 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pthread_self in -lpthread" >&5
10550 $as_echo_n "checking for pthread_self in -lpthread... " >&6; }
10551 if test "${ac_cv_lib_pthread_pthread_self+set}" = set; then :
10552 $as_echo_n "(cached) " >&6
10554 ac_check_lib_save_LIBS=$LIBS
10555 LIBS="-lpthread $LIBS"
10556 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10557 /* end confdefs.h. */
10559 /* Override any GCC internal prototype to avoid an error.
10560 Use char because int might match the return type of a GCC
10561 builtin and then its argument prototype would still apply. */
10565 char pthread_self ();
10569 return pthread_self ();
10574 if ac_fn_c_try_link "$LINENO"; then :
10575 ac_cv_lib_pthread_pthread_self=yes
10577 ac_cv_lib_pthread_pthread_self=no
10579 rm -f core conftest.err conftest.$ac_objext \
10580 conftest$ac_exeext conftest.$ac_ext
10581 LIBS=$ac_check_lib_save_LIBS
10583 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_pthread_pthread_self" >&5
10584 $as_echo "$ac_cv_lib_pthread_pthread_self" >&6; }
10585 if test "x$ac_cv_lib_pthread_pthread_self" = x""yes; then :
10590 if test "$HAVE_PTHREAD" = yes; then
10591 case "${canonical}" in
10593 *) LIB_PTHREAD="-lpthread" ;;
10596 $as_echo "#define HAVE_PTHREAD 1" >>confdefs.h
10601 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for cma_open in -lpthreads" >&5
10602 $as_echo_n "checking for cma_open in -lpthreads... " >&6; }
10603 if test "${ac_cv_lib_pthreads_cma_open+set}" = set; then :
10604 $as_echo_n "(cached) " >&6
10606 ac_check_lib_save_LIBS=$LIBS
10607 LIBS="-lpthreads $LIBS"
10608 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10609 /* end confdefs.h. */
10611 /* Override any GCC internal prototype to avoid an error.
10612 Use char because int might match the return type of a GCC
10613 builtin and then its argument prototype would still apply. */
10621 return cma_open ();
10626 if ac_fn_c_try_link "$LINENO"; then :
10627 ac_cv_lib_pthreads_cma_open=yes
10629 ac_cv_lib_pthreads_cma_open=no
10631 rm -f core conftest.err conftest.$ac_objext \
10632 conftest$ac_exeext conftest.$ac_ext
10633 LIBS=$ac_check_lib_save_LIBS
10635 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_pthreads_cma_open" >&5
10636 $as_echo "$ac_cv_lib_pthreads_cma_open" >&6; }
10637 if test "x$ac_cv_lib_pthreads_cma_open" = x""yes; then :
10638 cat >>confdefs.h <<_ACEOF
10639 #define HAVE_LIBPTHREADS 1
10642 LIBS="-lpthreads $LIBS"
10647 ## Note: when using cpp in s/aix4.2.h, this definition depended on
10648 ## HAVE_LIBPTHREADS. That was not defined earlier in configure when
10649 ## the system file was sourced. Hence the value of LIBS_SYSTEM
10650 ## added to LIBS in configure would never contain the pthreads part,
10651 ## but the value used in Makefiles might. FIXME?
10653 ## -lpthreads seems to be necessary for Xlib in X11R6, and should
10654 ## be harmless on older versions of X where it happens to exist.
10655 test "$opsys" = "aix4-2" && \
10656 test $ac_cv_lib_pthreads_cma_open = yes && \
10657 LIBS_SYSTEM="$LIBS_SYSTEM -lpthreads"
10662 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -bbigtoc option" >&5
10663 $as_echo_n "checking for -bbigtoc option... " >&6; }
10664 if test "${gdb_cv_bigtoc+set}" = set; then :
10665 $as_echo_n "(cached) " >&6
10669 yes) gdb_cv_bigtoc=-Wl,-bbigtoc ;;
10670 *) gdb_cv_bigtoc=-bbigtoc ;;
10673 LDFLAGS=$LDFLAGS\ $gdb_cv_bigtoc
10674 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10675 /* end confdefs.h. */
10685 if ac_fn_c_try_link "$LINENO"; then :
10690 rm -f core conftest.err conftest.$ac_objext \
10691 conftest$ac_exeext conftest.$ac_ext
10694 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gdb_cv_bigtoc" >&5
10695 $as_echo "$gdb_cv_bigtoc" >&6; }
10699 # Change CFLAGS and CPPFLAGS temporarily so that C_SWITCH_X_SITE gets
10700 # used for the tests that follow. We set them back to REAL_CFLAGS and
10701 # REAL_CPPFLAGS later on.
10703 REAL_CFLAGS="$CFLAGS"
10704 REAL_CPPFLAGS="$CPPFLAGS"
10706 if test "${HAVE_X11}" = "yes"; then
10707 DEFS="$C_SWITCH_X_SITE $DEFS"
10708 LDFLAGS="$LDFLAGS $LD_SWITCH_X_SITE"
10710 CFLAGS="$C_SWITCH_X_SITE $CFLAGS"
10711 CPPFLAGS="$C_SWITCH_X_SITE $CPPFLAGS"
10713 # On Solaris, arrange for LD_RUN_PATH to point to the X libraries for tests.
10714 # This is handled by LD_SWITCH_X_SITE_AUX during the real build,
10715 # but it's more convenient here to set LD_RUN_PATH
10716 # since this also works on hosts that don't understand LD_SWITCH_X_SITE_AUX.
10717 if test "${x_libraries}" != NONE && test -n "${x_libraries}"; then
10718 LD_RUN_PATH=$x_libraries${LD_RUN_PATH+:}$LD_RUN_PATH
10722 if test "${opsys}" = "gnu-linux"; then
10723 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether X on GNU/Linux needs -b to link" >&5
10724 $as_echo_n "checking whether X on GNU/Linux needs -b to link... " >&6; }
10725 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10726 /* end confdefs.h. */
10731 XOpenDisplay ("foo");
10736 if ac_fn_c_try_link "$LINENO"; then :
10737 xlinux_first_failure=no
10739 xlinux_first_failure=yes
10741 rm -f core conftest.err conftest.$ac_objext \
10742 conftest$ac_exeext conftest.$ac_ext
10743 if test "${xlinux_first_failure}" = "yes"; then
10744 OLD_LD_SWITCH_X_SITE="$LD_SWITCH_X_SITE"
10745 OLD_C_SWITCH_X_SITE="$C_SWITCH_X_SITE"
10746 OLD_CPPFLAGS="$CPPFLAGS"
10748 LD_SWITCH_X_SITE="$LD_SWITCH_X_SITE -b i486-linuxaout"
10749 C_SWITCH_X_SITE="$C_SWITCH_X_SITE -b i486-linuxaout"
10750 CPPFLAGS="$CPPFLAGS -b i486-linuxaout"
10751 LIBS="$LIBS -b i486-linuxaout"
10752 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10753 /* end confdefs.h. */
10758 XOpenDisplay ("foo");
10763 if ac_fn_c_try_link "$LINENO"; then :
10764 xlinux_second_failure=no
10766 xlinux_second_failure=yes
10768 rm -f core conftest.err conftest.$ac_objext \
10769 conftest$ac_exeext conftest.$ac_ext
10770 if test "${xlinux_second_failure}" = "yes"; then
10771 # If we get the same failure with -b, there is no use adding -b.
10772 # So take it out. This plays safe.
10773 LD_SWITCH_X_SITE="$OLD_LD_SWITCH_X_SITE"
10774 C_SWITCH_X_SITE="$OLD_C_SWITCH_X_SITE"
10775 CPPFLAGS="$OLD_CPPFLAGS"
10777 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10778 $as_echo "no" >&6; }
10780 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
10781 $as_echo "yes" >&6; }
10784 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10785 $as_echo "no" >&6; }
10789 # Reportedly, some broken Solaris systems have XKBlib.h but are missing
10790 # header files included from there.
10791 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Xkb" >&5
10792 $as_echo_n "checking for Xkb... " >&6; }
10793 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10794 /* end confdefs.h. */
10795 #include <X11/Xlib.h>
10796 #include <X11/XKBlib.h>
10800 XkbDescPtr kb = XkbGetKeyboard (0, XkbAllComponentsMask, XkbUseCoreKbd);
10805 if ac_fn_c_try_link "$LINENO"; then :
10810 rm -f core conftest.err conftest.$ac_objext \
10811 conftest$ac_exeext conftest.$ac_ext
10812 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $emacs_xkb" >&5
10813 $as_echo "$emacs_xkb" >&6; }
10814 if test $emacs_xkb = yes; then
10816 $as_echo "#define HAVE_XKBGETKEYBOARD 1" >>confdefs.h
10820 for ac_func in XrmSetDatabase XScreenResourceString \
10821 XScreenNumberOfScreen XSetWMProtocols
10823 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
10824 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
10825 eval as_val=\$$as_ac_var
10826 if test "x$as_val" = x""yes; then :
10827 cat >>confdefs.h <<_ACEOF
10828 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
10836 if test "${window_system}" = "x11"; then
10837 { $as_echo "$as_me:${as_lineno-$LINENO}: checking X11 version 6" >&5
10838 $as_echo_n "checking X11 version 6... " >&6; }
10839 if test "${emacs_cv_x11_version_6+set}" = set; then :
10840 $as_echo_n "(cached) " >&6
10842 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10843 /* end confdefs.h. */
10844 #include <X11/Xlib.h>
10848 #if XlibSpecificationRelease < 6
10856 if ac_fn_c_try_link "$LINENO"; then :
10857 emacs_cv_x11_version_6=yes
10859 emacs_cv_x11_version_6=no
10861 rm -f core conftest.err conftest.$ac_objext \
10862 conftest$ac_exeext conftest.$ac_ext
10865 if test $emacs_cv_x11_version_6 = yes; then
10866 { $as_echo "$as_me:${as_lineno-$LINENO}: result: 6 or newer" >&5
10867 $as_echo "6 or newer" >&6; }
10869 $as_echo "#define HAVE_X11R6 1" >>confdefs.h
10872 $as_echo "#define HAVE_X_I18N 1" >>confdefs.h
10874 ## inoue@ainet.or.jp says Solaris has a bug related to X11R6-style
10879 $as_echo "#define HAVE_X11R6_XIM 1" >>confdefs.h
10884 { $as_echo "$as_me:${as_lineno-$LINENO}: result: before 6" >&5
10885 $as_echo "before 6" >&6; }
10890 ### Use -lrsvg-2 if available, unless `--with-rsvg=no' is specified.
10892 if test "${HAVE_X11}" = "yes" || test "${HAVE_NS}" = "yes"; then
10893 if test "${with_rsvg}" != "no"; then
10894 RSVG_REQUIRED=2.11.0
10895 RSVG_MODULE="librsvg-2.0 >= $RSVG_REQUIRED"
10900 # Extract the first word of "pkg-config", so it can be a program name with args.
10901 set dummy pkg-config; ac_word=$2
10902 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10903 $as_echo_n "checking for $ac_word... " >&6; }
10904 if test "${ac_cv_path_PKG_CONFIG+set}" = set; then :
10905 $as_echo_n "(cached) " >&6
10907 case $PKG_CONFIG in
10909 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
10912 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10913 for as_dir in $PATH
10916 test -z "$as_dir" && as_dir=.
10917 for ac_exec_ext in '' $ac_executable_extensions; do
10918 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10919 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
10920 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10927 test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG="no"
10931 PKG_CONFIG=$ac_cv_path_PKG_CONFIG
10932 if test -n "$PKG_CONFIG"; then
10933 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5
10934 $as_echo "$PKG_CONFIG" >&6; }
10936 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10937 $as_echo "no" >&6; }
10942 if test "$PKG_CONFIG" = "no" ; then
10945 PKG_CONFIG_MIN_VERSION=0.9.0
10946 if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
10947 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $RSVG_MODULE" >&5
10948 $as_echo_n "checking for $RSVG_MODULE... " >&6; }
10950 if $PKG_CONFIG --exists "$RSVG_MODULE" 2>&5; then
10951 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
10952 $as_echo "yes" >&6; }
10955 { $as_echo "$as_me:${as_lineno-$LINENO}: checking RSVG_CFLAGS" >&5
10956 $as_echo_n "checking RSVG_CFLAGS... " >&6; }
10957 RSVG_CFLAGS=`$PKG_CONFIG --cflags "$RSVG_MODULE"|sed -e 's,///*,/,g'`
10958 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RSVG_CFLAGS" >&5
10959 $as_echo "$RSVG_CFLAGS" >&6; }
10961 { $as_echo "$as_me:${as_lineno-$LINENO}: checking RSVG_LIBS" >&5
10962 $as_echo_n "checking RSVG_LIBS... " >&6; }
10963 RSVG_LIBS=`$PKG_CONFIG --libs "$RSVG_MODULE"|sed -e 's,///*,/,g'`
10964 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RSVG_LIBS" >&5
10965 $as_echo "$RSVG_LIBS" >&6; }
10967 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10968 $as_echo "no" >&6; }
10971 ## If we have a custom action on failure, don't print errors, but
10972 ## do set a variable so people can do so.
10973 RSVG_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "$RSVG_MODULE"`
10980 echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
10981 echo "*** See http://www.freedesktop.org/software/pkgconfig"
10985 if test $succeeded = yes; then
10994 if test $HAVE_RSVG = yes; then
10996 $as_echo "#define HAVE_RSVG 1" >>confdefs.h
10998 CFLAGS="$CFLAGS $RSVG_CFLAGS"
10999 LIBS="$RSVG_LIBS $LIBS"
11004 HAVE_IMAGEMAGICK=no
11005 if test "${HAVE_X11}" = "yes"; then
11006 if test "${with_imagemagick}" != "no"; then
11007 ## 6.2.8 is the earliest version known to work, but earlier versions
11008 ## might work - let us know if you find one.
11009 ## 6.0.7 does not work. See bug#7955.
11010 IMAGEMAGICK_MODULE="Wand >= 6.2.8"
11014 # Extract the first word of "pkg-config", so it can be a program name with args.
11015 set dummy pkg-config; ac_word=$2
11016 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11017 $as_echo_n "checking for $ac_word... " >&6; }
11018 if test "${ac_cv_path_PKG_CONFIG+set}" = set; then :
11019 $as_echo_n "(cached) " >&6
11021 case $PKG_CONFIG in
11023 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
11026 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11027 for as_dir in $PATH
11030 test -z "$as_dir" && as_dir=.
11031 for ac_exec_ext in '' $ac_executable_extensions; do
11032 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11033 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
11034 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11041 test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG="no"
11045 PKG_CONFIG=$ac_cv_path_PKG_CONFIG
11046 if test -n "$PKG_CONFIG"; then
11047 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5
11048 $as_echo "$PKG_CONFIG" >&6; }
11050 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11051 $as_echo "no" >&6; }
11056 if test "$PKG_CONFIG" = "no" ; then
11059 PKG_CONFIG_MIN_VERSION=0.9.0
11060 if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
11061 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $IMAGEMAGICK_MODULE" >&5
11062 $as_echo_n "checking for $IMAGEMAGICK_MODULE... " >&6; }
11064 if $PKG_CONFIG --exists "$IMAGEMAGICK_MODULE" 2>&5; then
11065 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11066 $as_echo "yes" >&6; }
11069 { $as_echo "$as_me:${as_lineno-$LINENO}: checking IMAGEMAGICK_CFLAGS" >&5
11070 $as_echo_n "checking IMAGEMAGICK_CFLAGS... " >&6; }
11071 IMAGEMAGICK_CFLAGS=`$PKG_CONFIG --cflags "$IMAGEMAGICK_MODULE"|sed -e 's,///*,/,g'`
11072 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $IMAGEMAGICK_CFLAGS" >&5
11073 $as_echo "$IMAGEMAGICK_CFLAGS" >&6; }
11075 { $as_echo "$as_me:${as_lineno-$LINENO}: checking IMAGEMAGICK_LIBS" >&5
11076 $as_echo_n "checking IMAGEMAGICK_LIBS... " >&6; }
11077 IMAGEMAGICK_LIBS=`$PKG_CONFIG --libs "$IMAGEMAGICK_MODULE"|sed -e 's,///*,/,g'`
11078 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $IMAGEMAGICK_LIBS" >&5
11079 $as_echo "$IMAGEMAGICK_LIBS" >&6; }
11081 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11082 $as_echo "no" >&6; }
11083 IMAGEMAGICK_CFLAGS=""
11084 IMAGEMAGICK_LIBS=""
11085 ## If we have a custom action on failure, don't print errors, but
11086 ## do set a variable so people can do so.
11087 IMAGEMAGICK_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "$IMAGEMAGICK_MODULE"`
11094 echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
11095 echo "*** See http://www.freedesktop.org/software/pkgconfig"
11099 if test $succeeded = yes; then
11100 HAVE_IMAGEMAGICK=yes
11108 if test $HAVE_IMAGEMAGICK = yes; then
11110 $as_echo "#define HAVE_IMAGEMAGICK 1" >>confdefs.h
11112 CFLAGS="$CFLAGS $IMAGEMAGICK_CFLAGS"
11113 LIBS="$IMAGEMAGICK_LIBS $LIBS"
11114 for ac_func in MagickExportImagePixels
11116 ac_fn_c_check_func "$LINENO" "MagickExportImagePixels" "ac_cv_func_MagickExportImagePixels"
11117 if test "x$ac_cv_func_MagickExportImagePixels" = x""yes; then :
11118 cat >>confdefs.h <<_ACEOF
11119 #define HAVE_MAGICKEXPORTIMAGEPIXELS 1
11132 if test "${with_gtk3}" = "yes"; then
11135 GTK_MODULES="gtk+-3.0 >= $GTK_REQUIRED glib-2.0 >= $GLIB_REQUIRED"
11140 # Extract the first word of "pkg-config", so it can be a program name with args.
11141 set dummy pkg-config; ac_word=$2
11142 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11143 $as_echo_n "checking for $ac_word... " >&6; }
11144 if test "${ac_cv_path_PKG_CONFIG+set}" = set; then :
11145 $as_echo_n "(cached) " >&6
11147 case $PKG_CONFIG in
11149 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
11152 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11153 for as_dir in $PATH
11156 test -z "$as_dir" && as_dir=.
11157 for ac_exec_ext in '' $ac_executable_extensions; do
11158 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11159 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
11160 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11167 test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG="no"
11171 PKG_CONFIG=$ac_cv_path_PKG_CONFIG
11172 if test -n "$PKG_CONFIG"; then
11173 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5
11174 $as_echo "$PKG_CONFIG" >&6; }
11176 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11177 $as_echo "no" >&6; }
11182 if test "$PKG_CONFIG" = "no" ; then
11185 PKG_CONFIG_MIN_VERSION=0.9.0
11186 if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
11187 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $GTK_MODULES" >&5
11188 $as_echo_n "checking for $GTK_MODULES... " >&6; }
11190 if $PKG_CONFIG --exists "$GTK_MODULES" 2>&5; then
11191 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11192 $as_echo "yes" >&6; }
11195 { $as_echo "$as_me:${as_lineno-$LINENO}: checking GTK_CFLAGS" >&5
11196 $as_echo_n "checking GTK_CFLAGS... " >&6; }
11197 GTK_CFLAGS=`$PKG_CONFIG --cflags "$GTK_MODULES"|sed -e 's,///*,/,g'`
11198 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GTK_CFLAGS" >&5
11199 $as_echo "$GTK_CFLAGS" >&6; }
11201 { $as_echo "$as_me:${as_lineno-$LINENO}: checking GTK_LIBS" >&5
11202 $as_echo_n "checking GTK_LIBS... " >&6; }
11203 GTK_LIBS=`$PKG_CONFIG --libs "$GTK_MODULES"|sed -e 's,///*,/,g'`
11204 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GTK_LIBS" >&5
11205 $as_echo "$GTK_LIBS" >&6; }
11207 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11208 $as_echo "no" >&6; }
11211 ## If we have a custom action on failure, don't print errors, but
11212 ## do set a variable so people can do so.
11213 GTK_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "$GTK_MODULES"`
11220 echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
11221 echo "*** See http://www.freedesktop.org/software/pkgconfig"
11225 if test $succeeded = yes; then
11231 if test "$pkg_check_gtk" = "no" && test "$USE_X_TOOLKIT" != "maybe"; then
11232 as_fn_error "$GTK_PKG_ERRORS" "$LINENO" 5
11235 $as_echo "#define HAVE_GTK3 1" >>confdefs.h
11237 GTK_OBJ=emacsgtkfixed.o
11240 if test "$pkg_check_gtk" != "yes"; then
11242 if test "${with_gtk}" = "yes" || test "$USE_X_TOOLKIT" = "maybe"; then
11245 GTK_MODULES="gtk+-2.0 >= $GTK_REQUIRED glib-2.0 >= $GLIB_REQUIRED"
11250 # Extract the first word of "pkg-config", so it can be a program name with args.
11251 set dummy pkg-config; ac_word=$2
11252 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11253 $as_echo_n "checking for $ac_word... " >&6; }
11254 if test "${ac_cv_path_PKG_CONFIG+set}" = set; then :
11255 $as_echo_n "(cached) " >&6
11257 case $PKG_CONFIG in
11259 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
11262 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11263 for as_dir in $PATH
11266 test -z "$as_dir" && as_dir=.
11267 for ac_exec_ext in '' $ac_executable_extensions; do
11268 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11269 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
11270 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11277 test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG="no"
11281 PKG_CONFIG=$ac_cv_path_PKG_CONFIG
11282 if test -n "$PKG_CONFIG"; then
11283 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5
11284 $as_echo "$PKG_CONFIG" >&6; }
11286 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11287 $as_echo "no" >&6; }
11292 if test "$PKG_CONFIG" = "no" ; then
11295 PKG_CONFIG_MIN_VERSION=0.9.0
11296 if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
11297 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $GTK_MODULES" >&5
11298 $as_echo_n "checking for $GTK_MODULES... " >&6; }
11300 if $PKG_CONFIG --exists "$GTK_MODULES" 2>&5; then
11301 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11302 $as_echo "yes" >&6; }
11305 { $as_echo "$as_me:${as_lineno-$LINENO}: checking GTK_CFLAGS" >&5
11306 $as_echo_n "checking GTK_CFLAGS... " >&6; }
11307 GTK_CFLAGS=`$PKG_CONFIG --cflags "$GTK_MODULES"|sed -e 's,///*,/,g'`
11308 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GTK_CFLAGS" >&5
11309 $as_echo "$GTK_CFLAGS" >&6; }
11311 { $as_echo "$as_me:${as_lineno-$LINENO}: checking GTK_LIBS" >&5
11312 $as_echo_n "checking GTK_LIBS... " >&6; }
11313 GTK_LIBS=`$PKG_CONFIG --libs "$GTK_MODULES"|sed -e 's,///*,/,g'`
11314 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GTK_LIBS" >&5
11315 $as_echo "$GTK_LIBS" >&6; }
11317 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11318 $as_echo "no" >&6; }
11321 ## If we have a custom action on failure, don't print errors, but
11322 ## do set a variable so people can do so.
11323 GTK_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "$GTK_MODULES"`
11330 echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
11331 echo "*** See http://www.freedesktop.org/software/pkgconfig"
11335 if test $succeeded = yes; then
11341 if test "$pkg_check_gtk" = "no" && test "$USE_X_TOOLKIT" != "maybe"; then
11342 as_fn_error "$GTK_PKG_ERRORS" "$LINENO" 5
11347 if test x"$pkg_check_gtk" = xyes; then
11351 C_SWITCH_X_SITE="$C_SWITCH_X_SITE $GTK_CFLAGS"
11352 CFLAGS="$CFLAGS $GTK_CFLAGS"
11353 LIBS="$GTK_LIBS $LIBS"
11355 for ac_func in gtk_main
11357 ac_fn_c_check_func "$LINENO" "gtk_main" "ac_cv_func_gtk_main"
11358 if test "x$ac_cv_func_gtk_main" = x""yes; then :
11359 cat >>confdefs.h <<_ACEOF
11360 #define HAVE_GTK_MAIN 1
11366 if test "${GTK_COMPILES}" != "yes"; then
11367 if test "$USE_X_TOOLKIT" != "maybe"; then
11368 as_fn_error "Gtk+ wanted, but it does not compile, see config.log. Maybe some x11-devel files missing?" "$LINENO" 5;
11373 $as_echo "#define USE_GTK 1" >>confdefs.h
11375 GTK_OBJ="gtkutil.o $GTK_OBJ"
11377 if $PKG_CONFIG --atleast-version=2.10 gtk+-2.0; then
11380 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Your version of Gtk+ will have problems with
11381 closing open displays. This is no problem if you just use
11382 one display, but if you use more than one and close one of them
11383 Emacs may crash." >&5
11384 $as_echo "$as_me: WARNING: Your version of Gtk+ will have problems with
11385 closing open displays. This is no problem if you just use
11386 one display, but if you use more than one and close one of them
11387 Emacs may crash." >&2;}
11396 if test "${HAVE_GTK}" = "yes"; then
11398 if test "$with_toolkit_scroll_bars" != no; then
11399 with_toolkit_scroll_bars=yes
11402 HAVE_GTK_FILE_SELECTION=no
11403 ac_fn_c_check_decl "$LINENO" "GTK_TYPE_FILE_SELECTION" "ac_cv_have_decl_GTK_TYPE_FILE_SELECTION" "$ac_includes_default
11404 #include <gtk/gtk.h>
11406 if test "x$ac_cv_have_decl_GTK_TYPE_FILE_SELECTION" = x""yes; then :
11407 HAVE_GTK_FILE_SELECTION=yes
11409 HAVE_GTK_FILE_SELECTION=no
11412 if test "$HAVE_GTK_FILE_SELECTION" = yes; then
11413 for ac_func in gtk_file_selection_new
11415 ac_fn_c_check_func "$LINENO" "gtk_file_selection_new" "ac_cv_func_gtk_file_selection_new"
11416 if test "x$ac_cv_func_gtk_file_selection_new" = x""yes; then :
11417 cat >>confdefs.h <<_ACEOF
11418 #define HAVE_GTK_FILE_SELECTION_NEW 1
11427 for ac_func in gtk_widget_get_window gtk_widget_set_has_window \
11428 gtk_dialog_get_action_area gtk_widget_get_sensitive \
11429 gtk_widget_get_mapped gtk_adjustment_get_page_size \
11430 gtk_orientable_set_orientation
11432 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
11433 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
11434 eval as_val=\$$as_ac_var
11435 if test "x$as_val" = x""yes; then :
11436 cat >>confdefs.h <<_ACEOF
11437 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
11448 if test "${with_dbus}" = "yes"; then
11452 # Extract the first word of "pkg-config", so it can be a program name with args.
11453 set dummy pkg-config; ac_word=$2
11454 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11455 $as_echo_n "checking for $ac_word... " >&6; }
11456 if test "${ac_cv_path_PKG_CONFIG+set}" = set; then :
11457 $as_echo_n "(cached) " >&6
11459 case $PKG_CONFIG in
11461 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
11464 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11465 for as_dir in $PATH
11468 test -z "$as_dir" && as_dir=.
11469 for ac_exec_ext in '' $ac_executable_extensions; do
11470 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11471 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
11472 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11479 test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG="no"
11483 PKG_CONFIG=$ac_cv_path_PKG_CONFIG
11484 if test -n "$PKG_CONFIG"; then
11485 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5
11486 $as_echo "$PKG_CONFIG" >&6; }
11488 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11489 $as_echo "no" >&6; }
11494 if test "$PKG_CONFIG" = "no" ; then
11497 PKG_CONFIG_MIN_VERSION=0.9.0
11498 if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
11499 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dbus-1 >= 1.0" >&5
11500 $as_echo_n "checking for dbus-1 >= 1.0... " >&6; }
11502 if $PKG_CONFIG --exists "dbus-1 >= 1.0" 2>&5; then
11503 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11504 $as_echo "yes" >&6; }
11507 { $as_echo "$as_me:${as_lineno-$LINENO}: checking DBUS_CFLAGS" >&5
11508 $as_echo_n "checking DBUS_CFLAGS... " >&6; }
11509 DBUS_CFLAGS=`$PKG_CONFIG --cflags "dbus-1 >= 1.0"|sed -e 's,///*,/,g'`
11510 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DBUS_CFLAGS" >&5
11511 $as_echo "$DBUS_CFLAGS" >&6; }
11513 { $as_echo "$as_me:${as_lineno-$LINENO}: checking DBUS_LIBS" >&5
11514 $as_echo_n "checking DBUS_LIBS... " >&6; }
11515 DBUS_LIBS=`$PKG_CONFIG --libs "dbus-1 >= 1.0"|sed -e 's,///*,/,g'`
11516 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DBUS_LIBS" >&5
11517 $as_echo "$DBUS_LIBS" >&6; }
11519 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11520 $as_echo "no" >&6; }
11523 ## If we have a custom action on failure, don't print errors, but
11524 ## do set a variable so people can do so.
11525 DBUS_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "dbus-1 >= 1.0"`
11532 echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
11533 echo "*** See http://www.freedesktop.org/software/pkgconfig"
11537 if test $succeeded = yes; then
11543 if test "$HAVE_DBUS" = yes; then
11544 LIBS="$LIBS $DBUS_LIBS"
11546 $as_echo "#define HAVE_DBUS 1" >>confdefs.h
11548 for ac_func in dbus_watch_get_unix_fd
11550 ac_fn_c_check_func "$LINENO" "dbus_watch_get_unix_fd" "ac_cv_func_dbus_watch_get_unix_fd"
11551 if test "x$ac_cv_func_dbus_watch_get_unix_fd" = x""yes; then :
11552 cat >>confdefs.h <<_ACEOF
11553 #define HAVE_DBUS_WATCH_GET_UNIX_FD 1
11559 DBUS_OBJ=dbusbind.o
11567 if test "${HAVE_X11}" = "yes" && test "${with_gsettings}" = "yes"; then
11571 # Extract the first word of "pkg-config", so it can be a program name with args.
11572 set dummy pkg-config; ac_word=$2
11573 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11574 $as_echo_n "checking for $ac_word... " >&6; }
11575 if test "${ac_cv_path_PKG_CONFIG+set}" = set; then :
11576 $as_echo_n "(cached) " >&6
11578 case $PKG_CONFIG in
11580 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
11583 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11584 for as_dir in $PATH
11587 test -z "$as_dir" && as_dir=.
11588 for ac_exec_ext in '' $ac_executable_extensions; do
11589 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11590 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
11591 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11598 test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG="no"
11602 PKG_CONFIG=$ac_cv_path_PKG_CONFIG
11603 if test -n "$PKG_CONFIG"; then
11604 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5
11605 $as_echo "$PKG_CONFIG" >&6; }
11607 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11608 $as_echo "no" >&6; }
11613 if test "$PKG_CONFIG" = "no" ; then
11616 PKG_CONFIG_MIN_VERSION=0.9.0
11617 if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
11618 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gio-2.0 >= 2.26" >&5
11619 $as_echo_n "checking for gio-2.0 >= 2.26... " >&6; }
11621 if $PKG_CONFIG --exists "gio-2.0 >= 2.26" 2>&5; then
11622 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11623 $as_echo "yes" >&6; }
11626 { $as_echo "$as_me:${as_lineno-$LINENO}: checking GSETTINGS_CFLAGS" >&5
11627 $as_echo_n "checking GSETTINGS_CFLAGS... " >&6; }
11628 GSETTINGS_CFLAGS=`$PKG_CONFIG --cflags "gio-2.0 >= 2.26"|sed -e 's,///*,/,g'`
11629 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GSETTINGS_CFLAGS" >&5
11630 $as_echo "$GSETTINGS_CFLAGS" >&6; }
11632 { $as_echo "$as_me:${as_lineno-$LINENO}: checking GSETTINGS_LIBS" >&5
11633 $as_echo_n "checking GSETTINGS_LIBS... " >&6; }
11634 GSETTINGS_LIBS=`$PKG_CONFIG --libs "gio-2.0 >= 2.26"|sed -e 's,///*,/,g'`
11635 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GSETTINGS_LIBS" >&5
11636 $as_echo "$GSETTINGS_LIBS" >&6; }
11638 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11639 $as_echo "no" >&6; }
11640 GSETTINGS_CFLAGS=""
11642 ## If we have a custom action on failure, don't print errors, but
11643 ## do set a variable so people can do so.
11644 GSETTINGS_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "gio-2.0 >= 2.26"`
11651 echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
11652 echo "*** See http://www.freedesktop.org/software/pkgconfig"
11656 if test $succeeded = yes; then
11662 if test "$HAVE_GSETTINGS" = "yes"; then
11664 $as_echo "#define HAVE_GSETTINGS 1" >>confdefs.h
11666 SETTINGS_CFLAGS="$GSETTINGS_CFLAGS"
11667 SETTINGS_LIBS="$GSETTINGS_LIBS"
11671 >>>>>>> MERGE-SOURCE
11673 if test "${HAVE_X11}" = "yes" && test "${with_gconf}" = "yes"; then
11677 # Extract the first word of "pkg-config", so it can be a program name with args.
11678 set dummy pkg-config; ac_word=$2
11679 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11680 $as_echo_n "checking for $ac_word... " >&6; }
11681 if test "${ac_cv_path_PKG_CONFIG+set}" = set; then :
11682 $as_echo_n "(cached) " >&6
11684 case $PKG_CONFIG in
11686 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
11689 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11690 for as_dir in $PATH
11693 test -z "$as_dir" && as_dir=.
11694 for ac_exec_ext in '' $ac_executable_extensions; do
11695 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11696 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
11697 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11704 test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG="no"
11708 PKG_CONFIG=$ac_cv_path_PKG_CONFIG
11709 if test -n "$PKG_CONFIG"; then
11710 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5
11711 $as_echo "$PKG_CONFIG" >&6; }
11713 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11714 $as_echo "no" >&6; }
11719 if test "$PKG_CONFIG" = "no" ; then
11722 PKG_CONFIG_MIN_VERSION=0.9.0
11723 if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
11724 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gconf-2.0 >= 2.13" >&5
11725 $as_echo_n "checking for gconf-2.0 >= 2.13... " >&6; }
11727 if $PKG_CONFIG --exists "gconf-2.0 >= 2.13" 2>&5; then
11728 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11729 $as_echo "yes" >&6; }
11732 { $as_echo "$as_me:${as_lineno-$LINENO}: checking GCONF_CFLAGS" >&5
11733 $as_echo_n "checking GCONF_CFLAGS... " >&6; }
11734 GCONF_CFLAGS=`$PKG_CONFIG --cflags "gconf-2.0 >= 2.13"|sed -e 's,///*,/,g'`
11735 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GCONF_CFLAGS" >&5
11736 $as_echo "$GCONF_CFLAGS" >&6; }
11738 { $as_echo "$as_me:${as_lineno-$LINENO}: checking GCONF_LIBS" >&5
11739 $as_echo_n "checking GCONF_LIBS... " >&6; }
11740 GCONF_LIBS=`$PKG_CONFIG --libs "gconf-2.0 >= 2.13"|sed -e 's,///*,/,g'`
11741 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GCONF_LIBS" >&5
11742 $as_echo "$GCONF_LIBS" >&6; }
11744 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11745 $as_echo "no" >&6; }
11748 ## If we have a custom action on failure, don't print errors, but
11749 ## do set a variable so people can do so.
11750 GCONF_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "gconf-2.0 >= 2.13"`
11757 echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
11758 echo "*** See http://www.freedesktop.org/software/pkgconfig"
11762 if test $succeeded = yes; then
11768 if test "$HAVE_GCONF" = yes; then
11770 $as_echo "#define HAVE_GCONF 1" >>confdefs.h
11772 for ac_func in g_type_init
11774 ac_fn_c_check_func "$LINENO" "g_type_init" "ac_cv_func_g_type_init"
11775 if test "x$ac_cv_func_g_type_init" = x""yes; then :
11776 cat >>confdefs.h <<_ACEOF
11777 #define HAVE_G_TYPE_INIT 1
11788 if test "${with_selinux}" = "yes"; then
11789 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for lgetfilecon in -lselinux" >&5
11790 $as_echo_n "checking for lgetfilecon in -lselinux... " >&6; }
11791 if test "${ac_cv_lib_selinux_lgetfilecon+set}" = set; then :
11792 $as_echo_n "(cached) " >&6
11794 ac_check_lib_save_LIBS=$LIBS
11795 LIBS="-lselinux $LIBS"
11796 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11797 /* end confdefs.h. */
11799 /* Override any GCC internal prototype to avoid an error.
11800 Use char because int might match the return type of a GCC
11801 builtin and then its argument prototype would still apply. */
11805 char lgetfilecon ();
11809 return lgetfilecon ();
11814 if ac_fn_c_try_link "$LINENO"; then :
11815 ac_cv_lib_selinux_lgetfilecon=yes
11817 ac_cv_lib_selinux_lgetfilecon=no
11819 rm -f core conftest.err conftest.$ac_objext \
11820 conftest$ac_exeext conftest.$ac_ext
11821 LIBS=$ac_check_lib_save_LIBS
11823 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_selinux_lgetfilecon" >&5
11824 $as_echo "$ac_cv_lib_selinux_lgetfilecon" >&6; }
11825 if test "x$ac_cv_lib_selinux_lgetfilecon" = x""yes; then :
11826 HAVE_LIBSELINUX=yes
11831 if test "$HAVE_LIBSELINUX" = yes; then
11833 $as_echo "#define HAVE_LIBSELINUX 1" >>confdefs.h
11835 LIBSELINUX_LIBS=-lselinux
11841 HAVE_GNUTLS_CALLBACK_CERTIFICATE_VERIFY=no
11842 if test "${with_gnutls}" = "yes" ; then
11846 # Extract the first word of "pkg-config", so it can be a program name with args.
11847 set dummy pkg-config; ac_word=$2
11848 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11849 $as_echo_n "checking for $ac_word... " >&6; }
11850 if test "${ac_cv_path_PKG_CONFIG+set}" = set; then :
11851 $as_echo_n "(cached) " >&6
11853 case $PKG_CONFIG in
11855 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
11858 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11859 for as_dir in $PATH
11862 test -z "$as_dir" && as_dir=.
11863 for ac_exec_ext in '' $ac_executable_extensions; do
11864 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11865 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
11866 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11873 test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG="no"
11877 PKG_CONFIG=$ac_cv_path_PKG_CONFIG
11878 if test -n "$PKG_CONFIG"; then
11879 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5
11880 $as_echo "$PKG_CONFIG" >&6; }
11882 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11883 $as_echo "no" >&6; }
11888 if test "$PKG_CONFIG" = "no" ; then
11891 PKG_CONFIG_MIN_VERSION=0.9.0
11892 if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
11893 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gnutls >= 2.6.0" >&5
11894 $as_echo_n "checking for gnutls >= 2.6.0... " >&6; }
11896 if $PKG_CONFIG --exists "gnutls >= 2.6.0" 2>&5; then
11897 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11898 $as_echo "yes" >&6; }
11901 { $as_echo "$as_me:${as_lineno-$LINENO}: checking LIBGNUTLS_CFLAGS" >&5
11902 $as_echo_n "checking LIBGNUTLS_CFLAGS... " >&6; }
11903 LIBGNUTLS_CFLAGS=`$PKG_CONFIG --cflags "gnutls >= 2.6.0"|sed -e 's,///*,/,g'`
11904 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIBGNUTLS_CFLAGS" >&5
11905 $as_echo "$LIBGNUTLS_CFLAGS" >&6; }
11907 { $as_echo "$as_me:${as_lineno-$LINENO}: checking LIBGNUTLS_LIBS" >&5
11908 $as_echo_n "checking LIBGNUTLS_LIBS... " >&6; }
11909 LIBGNUTLS_LIBS=`$PKG_CONFIG --libs "gnutls >= 2.6.0"|sed -e 's,///*,/,g'`
11910 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIBGNUTLS_LIBS" >&5
11911 $as_echo "$LIBGNUTLS_LIBS" >&6; }
11913 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11914 $as_echo "no" >&6; }
11915 LIBGNUTLS_CFLAGS=""
11917 ## If we have a custom action on failure, don't print errors, but
11918 ## do set a variable so people can do so.
11919 LIBGNUTLS_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "gnutls >= 2.6.0"`
11926 echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
11927 echo "*** See http://www.freedesktop.org/software/pkgconfig"
11931 if test $succeeded = yes; then
11937 if test "${HAVE_GNUTLS}" = "yes"; then
11939 $as_echo "#define HAVE_GNUTLS 1" >>confdefs.h
11943 CFLAGS="$CFLAGS $LIBGNUTLS_CFLAGS"
11944 LIBS="$LIBGNUTLS_LIBS $LIBS"
11945 for ac_func in gnutls_certificate_set_verify_function
11947 ac_fn_c_check_func "$LINENO" "gnutls_certificate_set_verify_function" "ac_cv_func_gnutls_certificate_set_verify_function"
11948 if test "x$ac_cv_func_gnutls_certificate_set_verify_function" = x""yes; then :
11949 cat >>confdefs.h <<_ACEOF
11950 #define HAVE_GNUTLS_CERTIFICATE_SET_VERIFY_FUNCTION 1
11952 HAVE_GNUTLS_CALLBACK_CERTIFICATE_VERIFY=yes
11957 if test "${HAVE_GNUTLS_CALLBACK_CERTIFICATE_VERIFY}" = "yes"; then
11959 $as_echo "#define HAVE_GNUTLS_CALLBACK_CERTIFICATE_VERIFY 1" >>confdefs.h
11969 if test x"${USE_X_TOOLKIT}" = xmaybe || test x"${USE_X_TOOLKIT}" = xLUCID; then
11970 if test "$with_xaw3d" != no; then
11971 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for xaw3d" >&5
11972 $as_echo_n "checking for xaw3d... " >&6; }
11973 if test "${emacs_cv_xaw3d+set}" = set; then :
11974 $as_echo_n "(cached) " >&6
11976 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11977 /* end confdefs.h. */
11979 #include <X11/Intrinsic.h>
11980 #include <X11/Xaw3d/Simple.h>
11989 if ac_fn_c_try_link "$LINENO"; then :
11990 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for XawScrollbarSetThumb in -lXaw3d" >&5
11991 $as_echo_n "checking for XawScrollbarSetThumb in -lXaw3d... " >&6; }
11992 if test "${ac_cv_lib_Xaw3d_XawScrollbarSetThumb+set}" = set; then :
11993 $as_echo_n "(cached) " >&6
11995 ac_check_lib_save_LIBS=$LIBS
11996 LIBS="-lXaw3d $LIBS"
11997 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11998 /* end confdefs.h. */
12000 /* Override any GCC internal prototype to avoid an error.
12001 Use char because int might match the return type of a GCC
12002 builtin and then its argument prototype would still apply. */
12006 char XawScrollbarSetThumb ();
12010 return XawScrollbarSetThumb ();
12015 if ac_fn_c_try_link "$LINENO"; then :
12016 ac_cv_lib_Xaw3d_XawScrollbarSetThumb=yes
12018 ac_cv_lib_Xaw3d_XawScrollbarSetThumb=no
12020 rm -f core conftest.err conftest.$ac_objext \
12021 conftest$ac_exeext conftest.$ac_ext
12022 LIBS=$ac_check_lib_save_LIBS
12024 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_Xaw3d_XawScrollbarSetThumb" >&5
12025 $as_echo "$ac_cv_lib_Xaw3d_XawScrollbarSetThumb" >&6; }
12026 if test "x$ac_cv_lib_Xaw3d_XawScrollbarSetThumb" = x""yes; then :
12035 rm -f core conftest.err conftest.$ac_objext \
12036 conftest$ac_exeext conftest.$ac_ext
12042 if test $emacs_cv_xaw3d = yes; then
12043 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes; using Lucid toolkit" >&5
12044 $as_echo "yes; using Lucid toolkit" >&6; }
12045 USE_X_TOOLKIT=LUCID
12049 $as_echo "#define HAVE_XAW3D 1" >>confdefs.h
12052 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12053 $as_echo "no" >&6; }
12054 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libXaw" >&5
12055 $as_echo_n "checking for libXaw... " >&6; }
12056 if test "${emacs_cv_xaw+set}" = set; then :
12057 $as_echo_n "(cached) " >&6
12059 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12060 /* end confdefs.h. */
12062 #include <X11/Intrinsic.h>
12063 #include <X11/Xaw/Simple.h>
12072 if ac_fn_c_try_link "$LINENO"; then :
12077 rm -f core conftest.err conftest.$ac_objext \
12078 conftest$ac_exeext conftest.$ac_ext
12081 if test $emacs_cv_xaw = yes; then
12082 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes; using Lucid toolkit" >&5
12083 $as_echo "yes; using Lucid toolkit" >&6; }
12084 USE_X_TOOLKIT=LUCID
12086 elif test x"${USE_X_TOOLKIT}" = xLUCID; then
12087 as_fn_error "Lucid toolkit requires X11/Xaw include files" "$LINENO" 5
12089 as_fn_error "No X toolkit could be found.
12090 If you are sure you want Emacs compiled without an X toolkit, pass
12091 --with-x-toolkit=no
12092 to configure. Otherwise, install the development libraries for the toolkit
12093 that you want to use (e.g. Gtk+) and re-run configure." "$LINENO" 5
12098 X_TOOLKIT_TYPE=$USE_X_TOOLKIT
12101 if test "${USE_X_TOOLKIT}" != "none"; then
12102 { $as_echo "$as_me:${as_lineno-$LINENO}: checking X11 toolkit version" >&5
12103 $as_echo_n "checking X11 toolkit version... " >&6; }
12104 if test "${emacs_cv_x11_toolkit_version_6+set}" = set; then :
12105 $as_echo_n "(cached) " >&6
12107 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12108 /* end confdefs.h. */
12109 #include <X11/Intrinsic.h>
12113 #if XtSpecificationRelease < 6
12121 if ac_fn_c_try_link "$LINENO"; then :
12122 emacs_cv_x11_toolkit_version_6=yes
12124 emacs_cv_x11_toolkit_version_6=no
12126 rm -f core conftest.err conftest.$ac_objext \
12127 conftest$ac_exeext conftest.$ac_ext
12130 HAVE_X11XTR6=$emacs_cv_x11_toolkit_version_6
12131 if test $emacs_cv_x11_toolkit_version_6 = yes; then
12132 { $as_echo "$as_me:${as_lineno-$LINENO}: result: 6 or newer" >&5
12133 $as_echo "6 or newer" >&6; }
12135 $as_echo "#define HAVE_X11XTR6 1" >>confdefs.h
12137 LIBXTR6="-lSM -lICE"
12139 ## Use libw.a along with X11R6 Xt.
12140 unixware) LIBXTR6="$LIBXTR6 -lw" ;;
12143 { $as_echo "$as_me:${as_lineno-$LINENO}: result: before 6" >&5
12144 $as_echo "before 6" >&6; }
12148 if test x$HAVE_X11XTR6 = xyes; then
12149 LIBS="-lXt -lSM -lICE $LIBS"
12153 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for XmuConvertStandardSelection in -lXmu" >&5
12154 $as_echo_n "checking for XmuConvertStandardSelection in -lXmu... " >&6; }
12155 if test "${ac_cv_lib_Xmu_XmuConvertStandardSelection+set}" = set; then :
12156 $as_echo_n "(cached) " >&6
12158 ac_check_lib_save_LIBS=$LIBS
12160 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12161 /* end confdefs.h. */
12163 /* Override any GCC internal prototype to avoid an error.
12164 Use char because int might match the return type of a GCC
12165 builtin and then its argument prototype would still apply. */
12169 char XmuConvertStandardSelection ();
12173 return XmuConvertStandardSelection ();
12178 if ac_fn_c_try_link "$LINENO"; then :
12179 ac_cv_lib_Xmu_XmuConvertStandardSelection=yes
12181 ac_cv_lib_Xmu_XmuConvertStandardSelection=no
12183 rm -f core conftest.err conftest.$ac_objext \
12184 conftest$ac_exeext conftest.$ac_ext
12185 LIBS=$ac_check_lib_save_LIBS
12187 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_Xmu_XmuConvertStandardSelection" >&5
12188 $as_echo "$ac_cv_lib_Xmu_XmuConvertStandardSelection" >&6; }
12189 if test "x$ac_cv_lib_Xmu_XmuConvertStandardSelection" = x""yes; then :
12190 cat >>confdefs.h <<_ACEOF
12191 #define HAVE_LIBXMU 1
12198 test $ac_cv_lib_Xmu_XmuConvertStandardSelection = no && LIBS="$OLDLIBS"
12204 ## These systems don't supply Xmu.
12206 test "X$ac_cv_lib_Xmu_XmuConvertStandardSelection" != "Xyes" && LIBXMU=
12211 # On Irix 6.5, at least, we need XShapeQueryExtension from -lXext for Xaw3D.
12212 if test "${HAVE_X11}" = "yes"; then
12213 if test "${USE_X_TOOLKIT}" != "none"; then
12214 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for XShapeQueryExtension in -lXext" >&5
12215 $as_echo_n "checking for XShapeQueryExtension in -lXext... " >&6; }
12216 if test "${ac_cv_lib_Xext_XShapeQueryExtension+set}" = set; then :
12217 $as_echo_n "(cached) " >&6
12219 ac_check_lib_save_LIBS=$LIBS
12220 LIBS="-lXext $LIBS"
12221 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12222 /* end confdefs.h. */
12224 /* Override any GCC internal prototype to avoid an error.
12225 Use char because int might match the return type of a GCC
12226 builtin and then its argument prototype would still apply. */
12230 char XShapeQueryExtension ();
12234 return XShapeQueryExtension ();
12239 if ac_fn_c_try_link "$LINENO"; then :
12240 ac_cv_lib_Xext_XShapeQueryExtension=yes
12242 ac_cv_lib_Xext_XShapeQueryExtension=no
12244 rm -f core conftest.err conftest.$ac_objext \
12245 conftest$ac_exeext conftest.$ac_ext
12246 LIBS=$ac_check_lib_save_LIBS
12248 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_Xext_XShapeQueryExtension" >&5
12249 $as_echo "$ac_cv_lib_Xext_XShapeQueryExtension" >&6; }
12250 if test "x$ac_cv_lib_Xext_XShapeQueryExtension" = x""yes; then :
12251 cat >>confdefs.h <<_ACEOF
12252 #define HAVE_LIBXEXT 1
12255 LIBS="-lXext $LIBS"
12263 if test "${USE_X_TOOLKIT}" = "MOTIF"; then
12264 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Motif version 2.1" >&5
12265 $as_echo_n "checking for Motif version 2.1... " >&6; }
12266 if test "${emacs_cv_motif_version_2_1+set}" = set; then :
12267 $as_echo_n "(cached) " >&6
12269 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12270 /* end confdefs.h. */
12275 #if XmVERSION > 2 || (XmVERSION == 2 && XmREVISION >= 1)
12278 Motif version prior to 2.1.
12284 if ac_fn_c_try_compile "$LINENO"; then :
12285 emacs_cv_motif_version_2_1=yes
12287 emacs_cv_motif_version_2_1=no
12289 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12291 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $emacs_cv_motif_version_2_1" >&5
12292 $as_echo "$emacs_cv_motif_version_2_1" >&6; }
12293 if test $emacs_cv_motif_version_2_1 = yes; then
12294 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for XpCreateContext in -lXp" >&5
12295 $as_echo_n "checking for XpCreateContext in -lXp... " >&6; }
12296 if test "${ac_cv_lib_Xp_XpCreateContext+set}" = set; then :
12297 $as_echo_n "(cached) " >&6
12299 ac_check_lib_save_LIBS=$LIBS
12301 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12302 /* end confdefs.h. */
12304 /* Override any GCC internal prototype to avoid an error.
12305 Use char because int might match the return type of a GCC
12306 builtin and then its argument prototype would still apply. */
12310 char XpCreateContext ();
12314 return XpCreateContext ();
12319 if ac_fn_c_try_link "$LINENO"; then :
12320 ac_cv_lib_Xp_XpCreateContext=yes
12322 ac_cv_lib_Xp_XpCreateContext=no
12324 rm -f core conftest.err conftest.$ac_objext \
12325 conftest$ac_exeext conftest.$ac_ext
12326 LIBS=$ac_check_lib_save_LIBS
12328 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_Xp_XpCreateContext" >&5
12329 $as_echo "$ac_cv_lib_Xp_XpCreateContext" >&6; }
12330 if test "x$ac_cv_lib_Xp_XpCreateContext" = x""yes; then :
12335 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for LessTif where some systems put it" >&5
12336 $as_echo_n "checking for LessTif where some systems put it... " >&6; }
12337 if test "${emacs_cv_lesstif+set}" = set; then :
12338 $as_echo_n "(cached) " >&6
12340 # We put this in CFLAGS temporarily to precede other -I options
12341 # that might be in CFLAGS temporarily.
12342 # We put this in CPPFLAGS where it precedes the other -I options.
12343 OLD_CPPFLAGS=$CPPFLAGS
12345 CPPFLAGS="-I/usr/X11R6/LessTif/Motif1.2/include $CPPFLAGS"
12346 CFLAGS="-I/usr/X11R6/LessTif/Motif1.2/include $CFLAGS"
12347 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12348 /* end confdefs.h. */
12349 #include </usr/X11R6/LessTif/Motif1.2/include/Xm/Xm.h>
12358 if ac_fn_c_try_compile "$LINENO"; then :
12359 emacs_cv_lesstif=yes
12361 emacs_cv_lesstif=no
12363 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12365 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $emacs_cv_lesstif" >&5
12366 $as_echo "$emacs_cv_lesstif" >&6; }
12367 if test $emacs_cv_lesstif = yes; then
12368 # Make sure this -I option remains in CPPFLAGS after it is set
12369 # back to REAL_CPPFLAGS.
12370 # There is no need to change REAL_CFLAGS, because REAL_CFLAGS does not
12371 # have those other -I options anyway. Ultimately, having this
12372 # directory ultimately in CPPFLAGS will be enough.
12373 REAL_CPPFLAGS="-I/usr/X11R6/LessTif/Motif1.2/include $REAL_CPPFLAGS"
12374 LDFLAGS="-L/usr/X11R6/LessTif/Motif1.2/lib $LDFLAGS"
12377 CPPFLAGS=$OLD_CPPFLAGS
12383 USE_TOOLKIT_SCROLL_BARS=no
12384 if test "${with_toolkit_scroll_bars}" != "no"; then
12385 if test "${USE_X_TOOLKIT}" != "none"; then
12386 if test "${USE_X_TOOLKIT}" = "MOTIF"; then
12387 $as_echo "#define USE_TOOLKIT_SCROLL_BARS 1" >>confdefs.h
12390 USE_TOOLKIT_SCROLL_BARS=yes
12391 elif test "${HAVE_XAW3D}" = "yes"; then
12392 $as_echo "#define USE_TOOLKIT_SCROLL_BARS 1" >>confdefs.h
12394 USE_TOOLKIT_SCROLL_BARS=yes
12396 elif test "${HAVE_GTK}" = "yes"; then
12397 $as_echo "#define USE_TOOLKIT_SCROLL_BARS 1" >>confdefs.h
12399 USE_TOOLKIT_SCROLL_BARS=yes
12400 elif test "${HAVE_NS}" = "yes"; then
12401 $as_echo "#define USE_TOOLKIT_SCROLL_BARS 1" >>confdefs.h
12403 USE_TOOLKIT_SCROLL_BARS=yes
12407 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12408 /* end confdefs.h. */
12410 #include <X11/Xlib.h>
12411 #include <X11/Xresource.h>
12420 if ac_fn_c_try_compile "$LINENO"; then :
12423 $as_echo "#define HAVE_XIM 1" >>confdefs.h
12428 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12431 if test "${with_xim}" != "no"; then
12433 $as_echo "#define USE_XIM 1" >>confdefs.h
12438 if test "${HAVE_XIM}" != "no"; then
12439 late_CFLAGS=$CFLAGS
12440 if test "$GCC" = yes; then
12441 CFLAGS="$CFLAGS --pedantic-errors"
12443 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12444 /* end confdefs.h. */
12446 #include <X11/Xlib.h>
12447 #include <X11/Xresource.h>
12456 XPointer *client_data;
12458 /* If we're not using GCC, it's probably not XFree86, and this is
12459 probably right, but we can't use something like --pedantic-errors. */
12460 extern Bool XRegisterIMInstantiateCallback(Display*, XrmDatabase, char*,
12461 char*, XIMProc, XPointer*);
12463 (void)XRegisterIMInstantiateCallback(display, db, res_name, res_class, callback,
12469 if ac_fn_c_try_compile "$LINENO"; then :
12470 emacs_cv_arg6_star=yes
12472 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12473 if test "$emacs_cv_arg6_star" = yes; then
12474 $as_echo "#define XRegisterIMInstantiateCallback_arg6 XPointer*" >>confdefs.h
12477 $as_echo "#define XRegisterIMInstantiateCallback_arg6 XPointer" >>confdefs.h
12480 CFLAGS=$late_CFLAGS
12483 ### Start of font-backend (under any platform) section.
12484 # (nothing here yet -- this is a placeholder)
12485 ### End of font-backend (under any platform) section.
12487 ### Start of font-backend (under X11) section.
12488 if test "${HAVE_X11}" = "yes"; then
12492 # Extract the first word of "pkg-config", so it can be a program name with args.
12493 set dummy pkg-config; ac_word=$2
12494 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12495 $as_echo_n "checking for $ac_word... " >&6; }
12496 if test "${ac_cv_path_PKG_CONFIG+set}" = set; then :
12497 $as_echo_n "(cached) " >&6
12499 case $PKG_CONFIG in
12501 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
12504 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12505 for as_dir in $PATH
12508 test -z "$as_dir" && as_dir=.
12509 for ac_exec_ext in '' $ac_executable_extensions; do
12510 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
12511 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
12512 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12519 test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG="no"
12523 PKG_CONFIG=$ac_cv_path_PKG_CONFIG
12524 if test -n "$PKG_CONFIG"; then
12525 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5
12526 $as_echo "$PKG_CONFIG" >&6; }
12528 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12529 $as_echo "no" >&6; }
12534 if test "$PKG_CONFIG" = "no" ; then
12537 PKG_CONFIG_MIN_VERSION=0.9.0
12538 if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
12539 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for fontconfig >= 2.2.0" >&5
12540 $as_echo_n "checking for fontconfig >= 2.2.0... " >&6; }
12542 if $PKG_CONFIG --exists "fontconfig >= 2.2.0" 2>&5; then
12543 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
12544 $as_echo "yes" >&6; }
12547 { $as_echo "$as_me:${as_lineno-$LINENO}: checking FONTCONFIG_CFLAGS" >&5
12548 $as_echo_n "checking FONTCONFIG_CFLAGS... " >&6; }
12549 FONTCONFIG_CFLAGS=`$PKG_CONFIG --cflags "fontconfig >= 2.2.0"|sed -e 's,///*,/,g'`
12550 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $FONTCONFIG_CFLAGS" >&5
12551 $as_echo "$FONTCONFIG_CFLAGS" >&6; }
12553 { $as_echo "$as_me:${as_lineno-$LINENO}: checking FONTCONFIG_LIBS" >&5
12554 $as_echo_n "checking FONTCONFIG_LIBS... " >&6; }
12555 FONTCONFIG_LIBS=`$PKG_CONFIG --libs "fontconfig >= 2.2.0"|sed -e 's,///*,/,g'`
12556 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $FONTCONFIG_LIBS" >&5
12557 $as_echo "$FONTCONFIG_LIBS" >&6; }
12559 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12560 $as_echo "no" >&6; }
12561 FONTCONFIG_CFLAGS=""
12563 ## If we have a custom action on failure, don't print errors, but
12564 ## do set a variable so people can do so.
12565 FONTCONFIG_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "fontconfig >= 2.2.0"`
12572 echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
12573 echo "*** See http://www.freedesktop.org/software/pkgconfig"
12577 if test $succeeded = yes; then
12584 ## Use -lXft if available, unless `--with-xft=no'.
12586 if test "${HAVE_FC}" = "no" || test "x${with_x}" = "xno"; then
12589 if test "x${with_xft}" != "xno"; then
12594 # Extract the first word of "pkg-config", so it can be a program name with args.
12595 set dummy pkg-config; ac_word=$2
12596 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12597 $as_echo_n "checking for $ac_word... " >&6; }
12598 if test "${ac_cv_path_PKG_CONFIG+set}" = set; then :
12599 $as_echo_n "(cached) " >&6
12601 case $PKG_CONFIG in
12603 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
12606 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12607 for as_dir in $PATH
12610 test -z "$as_dir" && as_dir=.
12611 for ac_exec_ext in '' $ac_executable_extensions; do
12612 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
12613 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
12614 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12621 test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG="no"
12625 PKG_CONFIG=$ac_cv_path_PKG_CONFIG
12626 if test -n "$PKG_CONFIG"; then
12627 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5
12628 $as_echo "$PKG_CONFIG" >&6; }
12630 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12631 $as_echo "no" >&6; }
12636 if test "$PKG_CONFIG" = "no" ; then
12639 PKG_CONFIG_MIN_VERSION=0.9.0
12640 if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
12641 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for xft >= 0.13.0" >&5
12642 $as_echo_n "checking for xft >= 0.13.0... " >&6; }
12644 if $PKG_CONFIG --exists "xft >= 0.13.0" 2>&5; then
12645 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
12646 $as_echo "yes" >&6; }
12649 { $as_echo "$as_me:${as_lineno-$LINENO}: checking XFT_CFLAGS" >&5
12650 $as_echo_n "checking XFT_CFLAGS... " >&6; }
12651 XFT_CFLAGS=`$PKG_CONFIG --cflags "xft >= 0.13.0"|sed -e 's,///*,/,g'`
12652 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $XFT_CFLAGS" >&5
12653 $as_echo "$XFT_CFLAGS" >&6; }
12655 { $as_echo "$as_me:${as_lineno-$LINENO}: checking XFT_LIBS" >&5
12656 $as_echo_n "checking XFT_LIBS... " >&6; }
12657 XFT_LIBS=`$PKG_CONFIG --libs "xft >= 0.13.0"|sed -e 's,///*,/,g'`
12658 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $XFT_LIBS" >&5
12659 $as_echo "$XFT_LIBS" >&6; }
12661 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12662 $as_echo "no" >&6; }
12665 ## If we have a custom action on failure, don't print errors, but
12666 ## do set a variable so people can do so.
12667 XFT_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "xft >= 0.13.0"`
12674 echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
12675 echo "*** See http://www.freedesktop.org/software/pkgconfig"
12679 if test $succeeded = yes; then
12685 ## Because xftfont.c uses XRenderQueryExtension, we also
12686 ## need to link to -lXrender.
12688 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for XRenderQueryExtension in -lXrender" >&5
12689 $as_echo_n "checking for XRenderQueryExtension in -lXrender... " >&6; }
12690 if test "${ac_cv_lib_Xrender_XRenderQueryExtension+set}" = set; then :
12691 $as_echo_n "(cached) " >&6
12693 ac_check_lib_save_LIBS=$LIBS
12694 LIBS="-lXrender $LIBS"
12695 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12696 /* end confdefs.h. */
12698 /* Override any GCC internal prototype to avoid an error.
12699 Use char because int might match the return type of a GCC
12700 builtin and then its argument prototype would still apply. */
12704 char XRenderQueryExtension ();
12708 return XRenderQueryExtension ();
12713 if ac_fn_c_try_link "$LINENO"; then :
12714 ac_cv_lib_Xrender_XRenderQueryExtension=yes
12716 ac_cv_lib_Xrender_XRenderQueryExtension=no
12718 rm -f core conftest.err conftest.$ac_objext \
12719 conftest$ac_exeext conftest.$ac_ext
12720 LIBS=$ac_check_lib_save_LIBS
12722 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_Xrender_XRenderQueryExtension" >&5
12723 $as_echo "$ac_cv_lib_Xrender_XRenderQueryExtension" >&6; }
12724 if test "x$ac_cv_lib_Xrender_XRenderQueryExtension" = x""yes; then :
12728 if test "$HAVE_XFT" != no && test "$HAVE_XRENDER" != no; then
12729 OLD_CPPFLAGS="$CPPFLAGS"
12730 OLD_CFLAGS="$CFLAGS"
12732 CPPFLAGS="$CPPFLAGS $XFT_CFLAGS"
12733 CFLAGS="$CFLAGS $XFT_CFLAGS"
12734 XFT_LIBS="-lXrender $XFT_LIBS"
12735 LIBS="$XFT_LIBS $LIBS"
12736 ac_fn_c_check_header_mongrel "$LINENO" "X11/Xft/Xft.h" "ac_cv_header_X11_Xft_Xft_h" "$ac_includes_default"
12737 if test "x$ac_cv_header_X11_Xft_Xft_h" = x""yes; then :
12738 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for XftFontOpen in -lXft" >&5
12739 $as_echo_n "checking for XftFontOpen in -lXft... " >&6; }
12740 if test "${ac_cv_lib_Xft_XftFontOpen+set}" = set; then :
12741 $as_echo_n "(cached) " >&6
12743 ac_check_lib_save_LIBS=$LIBS
12744 LIBS="-lXft $XFT_LIBS $LIBS"
12745 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12746 /* end confdefs.h. */
12748 /* Override any GCC internal prototype to avoid an error.
12749 Use char because int might match the return type of a GCC
12750 builtin and then its argument prototype would still apply. */
12754 char XftFontOpen ();
12758 return XftFontOpen ();
12763 if ac_fn_c_try_link "$LINENO"; then :
12764 ac_cv_lib_Xft_XftFontOpen=yes
12766 ac_cv_lib_Xft_XftFontOpen=no
12768 rm -f core conftest.err conftest.$ac_objext \
12769 conftest$ac_exeext conftest.$ac_ext
12770 LIBS=$ac_check_lib_save_LIBS
12772 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_Xft_XftFontOpen" >&5
12773 $as_echo "$ac_cv_lib_Xft_XftFontOpen" >&6; }
12774 if test "x$ac_cv_lib_Xft_XftFontOpen" = x""yes; then :
12782 if test "${HAVE_XFT}" = "yes"; then
12784 $as_echo "#define HAVE_XFT 1" >>confdefs.h
12787 C_SWITCH_X_SITE="$C_SWITCH_X_SITE $XFT_CFLAGS"
12789 CPPFLAGS="$OLD_CPPFLAGS"
12790 CFLAGS="$OLD_CFLAGS"
12792 fi # "${HAVE_XFT}" = "yes"
12793 fi # "$HAVE_XFT" != no
12794 fi # "x${with_xft}" != "xno"
12796 ## We used to allow building with FreeType and without Xft.
12797 ## However, the ftx font backend driver is not in good shape.
12798 if test "$HAVE_XFT" != "yes"; then
12805 # Extract the first word of "pkg-config", so it can be a program name with args.
12806 set dummy pkg-config; ac_word=$2
12807 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12808 $as_echo_n "checking for $ac_word... " >&6; }
12809 if test "${ac_cv_path_PKG_CONFIG+set}" = set; then :
12810 $as_echo_n "(cached) " >&6
12812 case $PKG_CONFIG in
12814 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
12817 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12818 for as_dir in $PATH
12821 test -z "$as_dir" && as_dir=.
12822 for ac_exec_ext in '' $ac_executable_extensions; do
12823 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
12824 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
12825 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12832 test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG="no"
12836 PKG_CONFIG=$ac_cv_path_PKG_CONFIG
12837 if test -n "$PKG_CONFIG"; then
12838 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5
12839 $as_echo "$PKG_CONFIG" >&6; }
12841 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12842 $as_echo "no" >&6; }
12847 if test "$PKG_CONFIG" = "no" ; then
12850 PKG_CONFIG_MIN_VERSION=0.9.0
12851 if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
12852 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for freetype2" >&5
12853 $as_echo_n "checking for freetype2... " >&6; }
12855 if $PKG_CONFIG --exists "freetype2" 2>&5; then
12856 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
12857 $as_echo "yes" >&6; }
12860 { $as_echo "$as_me:${as_lineno-$LINENO}: checking FREETYPE_CFLAGS" >&5
12861 $as_echo_n "checking FREETYPE_CFLAGS... " >&6; }
12862 FREETYPE_CFLAGS=`$PKG_CONFIG --cflags "freetype2"|sed -e 's,///*,/,g'`
12863 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $FREETYPE_CFLAGS" >&5
12864 $as_echo "$FREETYPE_CFLAGS" >&6; }
12866 { $as_echo "$as_me:${as_lineno-$LINENO}: checking FREETYPE_LIBS" >&5
12867 $as_echo_n "checking FREETYPE_LIBS... " >&6; }
12868 FREETYPE_LIBS=`$PKG_CONFIG --libs "freetype2"|sed -e 's,///*,/,g'`
12869 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $FREETYPE_LIBS" >&5
12870 $as_echo "$FREETYPE_LIBS" >&6; }
12872 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12873 $as_echo "no" >&6; }
12876 ## If we have a custom action on failure, don't print errors, but
12877 ## do set a variable so people can do so.
12878 FREETYPE_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "freetype2"`
12885 echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
12886 echo "*** See http://www.freedesktop.org/software/pkgconfig"
12890 if test $succeeded = yes; then
12897 test "$HAVE_FREETYPE" = "no" && as_fn_error "libxft requires libfreetype" "$LINENO" 5
12901 if test "${HAVE_FREETYPE}" = "yes"; then
12903 $as_echo "#define HAVE_FREETYPE 1" >>confdefs.h
12905 if test "${with_libotf}" != "no"; then
12909 # Extract the first word of "pkg-config", so it can be a program name with args.
12910 set dummy pkg-config; ac_word=$2
12911 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12912 $as_echo_n "checking for $ac_word... " >&6; }
12913 if test "${ac_cv_path_PKG_CONFIG+set}" = set; then :
12914 $as_echo_n "(cached) " >&6
12916 case $PKG_CONFIG in
12918 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
12921 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12922 for as_dir in $PATH
12925 test -z "$as_dir" && as_dir=.
12926 for ac_exec_ext in '' $ac_executable_extensions; do
12927 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
12928 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
12929 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12936 test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG="no"
12940 PKG_CONFIG=$ac_cv_path_PKG_CONFIG
12941 if test -n "$PKG_CONFIG"; then
12942 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5
12943 $as_echo "$PKG_CONFIG" >&6; }
12945 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12946 $as_echo "no" >&6; }
12951 if test "$PKG_CONFIG" = "no" ; then
12954 PKG_CONFIG_MIN_VERSION=0.9.0
12955 if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
12956 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libotf" >&5
12957 $as_echo_n "checking for libotf... " >&6; }
12959 if $PKG_CONFIG --exists "libotf" 2>&5; then
12960 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
12961 $as_echo "yes" >&6; }
12964 { $as_echo "$as_me:${as_lineno-$LINENO}: checking LIBOTF_CFLAGS" >&5
12965 $as_echo_n "checking LIBOTF_CFLAGS... " >&6; }
12966 LIBOTF_CFLAGS=`$PKG_CONFIG --cflags "libotf"|sed -e 's,///*,/,g'`
12967 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIBOTF_CFLAGS" >&5
12968 $as_echo "$LIBOTF_CFLAGS" >&6; }
12970 { $as_echo "$as_me:${as_lineno-$LINENO}: checking LIBOTF_LIBS" >&5
12971 $as_echo_n "checking LIBOTF_LIBS... " >&6; }
12972 LIBOTF_LIBS=`$PKG_CONFIG --libs "libotf"|sed -e 's,///*,/,g'`
12973 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIBOTF_LIBS" >&5
12974 $as_echo "$LIBOTF_LIBS" >&6; }
12976 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12977 $as_echo "no" >&6; }
12980 ## If we have a custom action on failure, don't print errors, but
12981 ## do set a variable so people can do so.
12982 LIBOTF_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "libotf"`
12989 echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
12990 echo "*** See http://www.freedesktop.org/software/pkgconfig"
12994 if test $succeeded = yes; then
13000 if test "$HAVE_LIBOTF" = "yes"; then
13002 $as_echo "#define HAVE_LIBOTF 1" >>confdefs.h
13004 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for OTF_get_variation_glyphs in -lotf" >&5
13005 $as_echo_n "checking for OTF_get_variation_glyphs in -lotf... " >&6; }
13006 if test "${ac_cv_lib_otf_OTF_get_variation_glyphs+set}" = set; then :
13007 $as_echo_n "(cached) " >&6
13009 ac_check_lib_save_LIBS=$LIBS
13011 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13012 /* end confdefs.h. */
13014 /* Override any GCC internal prototype to avoid an error.
13015 Use char because int might match the return type of a GCC
13016 builtin and then its argument prototype would still apply. */
13020 char OTF_get_variation_glyphs ();
13024 return OTF_get_variation_glyphs ();
13029 if ac_fn_c_try_link "$LINENO"; then :
13030 ac_cv_lib_otf_OTF_get_variation_glyphs=yes
13032 ac_cv_lib_otf_OTF_get_variation_glyphs=no
13034 rm -f core conftest.err conftest.$ac_objext \
13035 conftest$ac_exeext conftest.$ac_ext
13036 LIBS=$ac_check_lib_save_LIBS
13038 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_otf_OTF_get_variation_glyphs" >&5
13039 $as_echo "$ac_cv_lib_otf_OTF_get_variation_glyphs" >&6; }
13040 if test "x$ac_cv_lib_otf_OTF_get_variation_glyphs" = x""yes; then :
13041 HAVE_OTF_GET_VARIATION_GLYPHS=yes
13043 HAVE_OTF_GET_VARIATION_GLYPHS=no
13046 if test "${HAVE_OTF_GET_VARIATION_GLYPHS}" = "yes"; then
13048 $as_echo "#define HAVE_OTF_GET_VARIATION_GLYPHS 1" >>confdefs.h
13056 if test "${HAVE_LIBOTF}" = yes; then
13057 if test "${with_m17n_flt}" != "no"; then
13061 # Extract the first word of "pkg-config", so it can be a program name with args.
13062 set dummy pkg-config; ac_word=$2
13063 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13064 $as_echo_n "checking for $ac_word... " >&6; }
13065 if test "${ac_cv_path_PKG_CONFIG+set}" = set; then :
13066 $as_echo_n "(cached) " >&6
13068 case $PKG_CONFIG in
13070 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
13073 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13074 for as_dir in $PATH
13077 test -z "$as_dir" && as_dir=.
13078 for ac_exec_ext in '' $ac_executable_extensions; do
13079 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
13080 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
13081 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13088 test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG="no"
13092 PKG_CONFIG=$ac_cv_path_PKG_CONFIG
13093 if test -n "$PKG_CONFIG"; then
13094 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5
13095 $as_echo "$PKG_CONFIG" >&6; }
13097 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13098 $as_echo "no" >&6; }
13103 if test "$PKG_CONFIG" = "no" ; then
13106 PKG_CONFIG_MIN_VERSION=0.9.0
13107 if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
13108 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for m17n-flt" >&5
13109 $as_echo_n "checking for m17n-flt... " >&6; }
13111 if $PKG_CONFIG --exists "m17n-flt" 2>&5; then
13112 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
13113 $as_echo "yes" >&6; }
13116 { $as_echo "$as_me:${as_lineno-$LINENO}: checking M17N_FLT_CFLAGS" >&5
13117 $as_echo_n "checking M17N_FLT_CFLAGS... " >&6; }
13118 M17N_FLT_CFLAGS=`$PKG_CONFIG --cflags "m17n-flt"|sed -e 's,///*,/,g'`
13119 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $M17N_FLT_CFLAGS" >&5
13120 $as_echo "$M17N_FLT_CFLAGS" >&6; }
13122 { $as_echo "$as_me:${as_lineno-$LINENO}: checking M17N_FLT_LIBS" >&5
13123 $as_echo_n "checking M17N_FLT_LIBS... " >&6; }
13124 M17N_FLT_LIBS=`$PKG_CONFIG --libs "m17n-flt"|sed -e 's,///*,/,g'`
13125 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $M17N_FLT_LIBS" >&5
13126 $as_echo "$M17N_FLT_LIBS" >&6; }
13128 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13129 $as_echo "no" >&6; }
13132 ## If we have a custom action on failure, don't print errors, but
13133 ## do set a variable so people can do so.
13134 M17N_FLT_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "m17n-flt"`
13141 echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
13142 echo "*** See http://www.freedesktop.org/software/pkgconfig"
13146 if test $succeeded = yes; then
13152 if test "$HAVE_M17N_FLT" = "yes"; then
13154 $as_echo "#define HAVE_M17N_FLT 1" >>confdefs.h
13166 ### End of font-backend (under X11) section.
13177 ### Use -lXpm if available, unless `--with-xpm=no'.
13180 if test "${HAVE_X11}" = "yes"; then
13181 if test "${with_xpm}" != "no"; then
13182 ac_fn_c_check_header_mongrel "$LINENO" "X11/xpm.h" "ac_cv_header_X11_xpm_h" "$ac_includes_default"
13183 if test "x$ac_cv_header_X11_xpm_h" = x""yes; then :
13184 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for XpmReadFileToPixmap in -lXpm" >&5
13185 $as_echo_n "checking for XpmReadFileToPixmap in -lXpm... " >&6; }
13186 if test "${ac_cv_lib_Xpm_XpmReadFileToPixmap+set}" = set; then :
13187 $as_echo_n "(cached) " >&6
13189 ac_check_lib_save_LIBS=$LIBS
13190 LIBS="-lXpm -lX11 $LIBS"
13191 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13192 /* end confdefs.h. */
13194 /* Override any GCC internal prototype to avoid an error.
13195 Use char because int might match the return type of a GCC
13196 builtin and then its argument prototype would still apply. */
13200 char XpmReadFileToPixmap ();
13204 return XpmReadFileToPixmap ();
13209 if ac_fn_c_try_link "$LINENO"; then :
13210 ac_cv_lib_Xpm_XpmReadFileToPixmap=yes
13212 ac_cv_lib_Xpm_XpmReadFileToPixmap=no
13214 rm -f core conftest.err conftest.$ac_objext \
13215 conftest$ac_exeext conftest.$ac_ext
13216 LIBS=$ac_check_lib_save_LIBS
13218 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_Xpm_XpmReadFileToPixmap" >&5
13219 $as_echo "$ac_cv_lib_Xpm_XpmReadFileToPixmap" >&6; }
13220 if test "x$ac_cv_lib_Xpm_XpmReadFileToPixmap" = x""yes; then :
13227 if test "${HAVE_XPM}" = "yes"; then
13228 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for XpmReturnAllocPixels preprocessor define" >&5
13229 $as_echo_n "checking for XpmReturnAllocPixels preprocessor define... " >&6; }
13230 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13231 /* end confdefs.h. */
13232 #include "X11/xpm.h"
13233 #ifndef XpmReturnAllocPixels
13234 no_return_alloc_pixels
13238 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
13239 $EGREP "no_return_alloc_pixels" >/dev/null 2>&1; then :
13247 if test "${HAVE_XPM}" = "yes"; then
13248 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
13249 $as_echo "yes" >&6; }
13251 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13252 $as_echo "no" >&6; }
13257 if test "${HAVE_XPM}" = "yes"; then
13259 $as_echo "#define HAVE_XPM 1" >>confdefs.h
13266 ### Use -ljpeg if available, unless `--with-jpeg=no'.
13269 if test "${HAVE_X11}" = "yes"; then
13270 if test "${with_jpeg}" != "no"; then
13271 ac_fn_c_check_header_mongrel "$LINENO" "jerror.h" "ac_cv_header_jerror_h" "$ac_includes_default"
13272 if test "x$ac_cv_header_jerror_h" = x""yes; then :
13273 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for jpeg_destroy_compress in -ljpeg" >&5
13274 $as_echo_n "checking for jpeg_destroy_compress in -ljpeg... " >&6; }
13275 if test "${ac_cv_lib_jpeg_jpeg_destroy_compress+set}" = set; then :
13276 $as_echo_n "(cached) " >&6
13278 ac_check_lib_save_LIBS=$LIBS
13279 LIBS="-ljpeg $LIBS"
13280 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13281 /* end confdefs.h. */
13283 /* Override any GCC internal prototype to avoid an error.
13284 Use char because int might match the return type of a GCC
13285 builtin and then its argument prototype would still apply. */
13289 char jpeg_destroy_compress ();
13293 return jpeg_destroy_compress ();
13298 if ac_fn_c_try_link "$LINENO"; then :
13299 ac_cv_lib_jpeg_jpeg_destroy_compress=yes
13301 ac_cv_lib_jpeg_jpeg_destroy_compress=no
13303 rm -f core conftest.err conftest.$ac_objext \
13304 conftest$ac_exeext conftest.$ac_ext
13305 LIBS=$ac_check_lib_save_LIBS
13307 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_jpeg_jpeg_destroy_compress" >&5
13308 $as_echo "$ac_cv_lib_jpeg_jpeg_destroy_compress" >&6; }
13309 if test "x$ac_cv_lib_jpeg_jpeg_destroy_compress" = x""yes; then :
13318 if test "${HAVE_JPEG}" = "yes"; then
13319 $as_echo "#define HAVE_JPEG 1" >>confdefs.h
13321 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13322 /* end confdefs.h. */
13323 #include <jpeglib.h>
13324 version=JPEG_LIB_VERSION
13327 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
13328 $EGREP "version= *(6[2-9]|[7-9][0-9])" >/dev/null 2>&1; then :
13329 $as_echo "#define HAVE_JPEG 1" >>confdefs.h
13332 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: libjpeg found, but not version 6b or later" >&5
13333 $as_echo "$as_me: WARNING: libjpeg found, but not version 6b or later" >&2;}
13339 if test "${HAVE_JPEG}" = "yes"; then
13345 ### Use -lpng if available, unless `--with-png=no'.
13348 if test "${HAVE_X11}" = "yes"; then
13349 if test "${with_png}" != "no"; then
13350 # Debian unstable as of July 2003 has multiple libpngs, and puts png.h
13351 # in /usr/include/libpng.
13352 for ac_header in png.h libpng/png.h
13354 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
13355 ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
13356 eval as_val=\$$as_ac_Header
13357 if test "x$as_val" = x""yes; then :
13358 cat >>confdefs.h <<_ACEOF
13359 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
13366 if test "$ac_cv_header_png_h" = yes || test "$ac_cv_header_libpng_png_h" = yes ; then
13367 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for png_get_channels in -lpng" >&5
13368 $as_echo_n "checking for png_get_channels in -lpng... " >&6; }
13369 if test "${ac_cv_lib_png_png_get_channels+set}" = set; then :
13370 $as_echo_n "(cached) " >&6
13372 ac_check_lib_save_LIBS=$LIBS
13373 LIBS="-lpng -lz -lm $LIBS"
13374 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13375 /* end confdefs.h. */
13377 /* Override any GCC internal prototype to avoid an error.
13378 Use char because int might match the return type of a GCC
13379 builtin and then its argument prototype would still apply. */
13383 char png_get_channels ();
13387 return png_get_channels ();
13392 if ac_fn_c_try_link "$LINENO"; then :
13393 ac_cv_lib_png_png_get_channels=yes
13395 ac_cv_lib_png_png_get_channels=no
13397 rm -f core conftest.err conftest.$ac_objext \
13398 conftest$ac_exeext conftest.$ac_ext
13399 LIBS=$ac_check_lib_save_LIBS
13401 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_png_png_get_channels" >&5
13402 $as_echo "$ac_cv_lib_png_png_get_channels" >&6; }
13403 if test "x$ac_cv_lib_png_png_get_channels" = x""yes; then :
13410 if test "${HAVE_PNG}" = "yes"; then
13412 $as_echo "#define HAVE_PNG 1" >>confdefs.h
13414 LIBPNG="-lpng -lz -lm"
13419 ### Use -ltiff if available, unless `--with-tiff=no'.
13422 if test "${HAVE_X11}" = "yes"; then
13423 if test "${with_tiff}" != "no"; then
13424 ac_fn_c_check_header_mongrel "$LINENO" "tiffio.h" "ac_cv_header_tiffio_h" "$ac_includes_default"
13425 if test "x$ac_cv_header_tiffio_h" = x""yes; then :
13427 # At least one tiff package requires the jpeg library.
13428 if test "${HAVE_JPEG}" = yes; then tifflibs="-ljpeg $tifflibs"; fi
13429 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for TIFFGetVersion in -ltiff" >&5
13430 $as_echo_n "checking for TIFFGetVersion in -ltiff... " >&6; }
13431 if test "${ac_cv_lib_tiff_TIFFGetVersion+set}" = set; then :
13432 $as_echo_n "(cached) " >&6
13434 ac_check_lib_save_LIBS=$LIBS
13435 LIBS="-ltiff $tifflibs $LIBS"
13436 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13437 /* end confdefs.h. */
13439 /* Override any GCC internal prototype to avoid an error.
13440 Use char because int might match the return type of a GCC
13441 builtin and then its argument prototype would still apply. */
13445 char TIFFGetVersion ();
13449 return TIFFGetVersion ();
13454 if ac_fn_c_try_link "$LINENO"; then :
13455 ac_cv_lib_tiff_TIFFGetVersion=yes
13457 ac_cv_lib_tiff_TIFFGetVersion=no
13459 rm -f core conftest.err conftest.$ac_objext \
13460 conftest$ac_exeext conftest.$ac_ext
13461 LIBS=$ac_check_lib_save_LIBS
13463 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_tiff_TIFFGetVersion" >&5
13464 $as_echo "$ac_cv_lib_tiff_TIFFGetVersion" >&6; }
13465 if test "x$ac_cv_lib_tiff_TIFFGetVersion" = x""yes; then :
13474 if test "${HAVE_TIFF}" = "yes"; then
13476 $as_echo "#define HAVE_TIFF 1" >>confdefs.h
13483 ### Use -lgif or -lungif if available, unless `--with-gif=no'.
13486 if test "${HAVE_X11}" = "yes" && test "${with_gif}" != "no"; then
13487 ac_fn_c_check_header_mongrel "$LINENO" "gif_lib.h" "ac_cv_header_gif_lib_h" "$ac_includes_default"
13488 if test "x$ac_cv_header_gif_lib_h" = x""yes; then :
13489 # EGifPutExtensionLast only exists from version libungif-4.1.0b1.
13490 # Earlier versions can crash Emacs.
13491 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for EGifPutExtensionLast in -lgif" >&5
13492 $as_echo_n "checking for EGifPutExtensionLast in -lgif... " >&6; }
13493 if test "${ac_cv_lib_gif_EGifPutExtensionLast+set}" = set; then :
13494 $as_echo_n "(cached) " >&6
13496 ac_check_lib_save_LIBS=$LIBS
13498 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13499 /* end confdefs.h. */
13501 /* Override any GCC internal prototype to avoid an error.
13502 Use char because int might match the return type of a GCC
13503 builtin and then its argument prototype would still apply. */
13507 char EGifPutExtensionLast ();
13511 return EGifPutExtensionLast ();
13516 if ac_fn_c_try_link "$LINENO"; then :
13517 ac_cv_lib_gif_EGifPutExtensionLast=yes
13519 ac_cv_lib_gif_EGifPutExtensionLast=no
13521 rm -f core conftest.err conftest.$ac_objext \
13522 conftest$ac_exeext conftest.$ac_ext
13523 LIBS=$ac_check_lib_save_LIBS
13525 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_gif_EGifPutExtensionLast" >&5
13526 $as_echo "$ac_cv_lib_gif_EGifPutExtensionLast" >&6; }
13527 if test "x$ac_cv_lib_gif_EGifPutExtensionLast" = x""yes; then :
13537 if test "$HAVE_GIF" = yes; then
13539 elif test "$HAVE_GIF" = maybe; then
13540 # If gif_lib.h but no libgif, try libungif.
13541 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for EGifPutExtensionLast in -lungif" >&5
13542 $as_echo_n "checking for EGifPutExtensionLast in -lungif... " >&6; }
13543 if test "${ac_cv_lib_ungif_EGifPutExtensionLast+set}" = set; then :
13544 $as_echo_n "(cached) " >&6
13546 ac_check_lib_save_LIBS=$LIBS
13547 LIBS="-lungif $LIBS"
13548 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13549 /* end confdefs.h. */
13551 /* Override any GCC internal prototype to avoid an error.
13552 Use char because int might match the return type of a GCC
13553 builtin and then its argument prototype would still apply. */
13557 char EGifPutExtensionLast ();
13561 return EGifPutExtensionLast ();
13566 if ac_fn_c_try_link "$LINENO"; then :
13567 ac_cv_lib_ungif_EGifPutExtensionLast=yes
13569 ac_cv_lib_ungif_EGifPutExtensionLast=no
13571 rm -f core conftest.err conftest.$ac_objext \
13572 conftest$ac_exeext conftest.$ac_ext
13573 LIBS=$ac_check_lib_save_LIBS
13575 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_ungif_EGifPutExtensionLast" >&5
13576 $as_echo "$ac_cv_lib_ungif_EGifPutExtensionLast" >&6; }
13577 if test "x$ac_cv_lib_ungif_EGifPutExtensionLast" = x""yes; then :
13583 test "$HAVE_GIF" = yes && LIBGIF=-lungif
13586 if test "${HAVE_GIF}" = "yes"; then
13588 $as_echo "#define HAVE_GIF 1" >>confdefs.h
13594 if test "${HAVE_X11}" = "yes"; then
13597 test "${with_xpm}" != "no" && test "${HAVE_XPM}" != "yes" &&
13598 MISSING="libXpm" && WITH_NO="--with-xpm=no"
13599 test "${with_jpeg}" != "no" && test "${HAVE_JPEG}" != "yes" &&
13600 MISSING="$MISSING libjpeg" && WITH_NO="$WITH_NO --with-jpeg=no"
13601 test "${with_png}" != "no" && test "${HAVE_PNG}" != "yes" &&
13602 MISSING="$MISSING libpng" && WITH_NO="$WITH_NO --with-png=no"
13603 test "${with_gif}" != "no" && test "${HAVE_GIF}" != "yes" &&
13604 MISSING="$MISSING libgif/libungif" && WITH_NO="$WITH_NO --with-gif=no"
13605 test "${with_tiff}" != "no" && test "${HAVE_TIFF}" != "yes" &&
13606 MISSING="$MISSING libtiff" && WITH_NO="$WITH_NO --with-tiff=no"
13608 if test "X${MISSING}" != X; then
13609 as_fn_error "The following required libraries were not found:
13611 Maybe some development libraries/packages are missing?
13612 If you don't want to link with them give
13614 as options to configure" "$LINENO" 5
13618 ### Use -lgpm if available, unless `--with-gpm=no'.
13621 if test "${with_gpm}" != "no"; then
13622 ac_fn_c_check_header_mongrel "$LINENO" "gpm.h" "ac_cv_header_gpm_h" "$ac_includes_default"
13623 if test "x$ac_cv_header_gpm_h" = x""yes; then :
13624 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Gpm_Open in -lgpm" >&5
13625 $as_echo_n "checking for Gpm_Open in -lgpm... " >&6; }
13626 if test "${ac_cv_lib_gpm_Gpm_Open+set}" = set; then :
13627 $as_echo_n "(cached) " >&6
13629 ac_check_lib_save_LIBS=$LIBS
13631 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13632 /* end confdefs.h. */
13634 /* Override any GCC internal prototype to avoid an error.
13635 Use char because int might match the return type of a GCC
13636 builtin and then its argument prototype would still apply. */
13644 return Gpm_Open ();
13649 if ac_fn_c_try_link "$LINENO"; then :
13650 ac_cv_lib_gpm_Gpm_Open=yes
13652 ac_cv_lib_gpm_Gpm_Open=no
13654 rm -f core conftest.err conftest.$ac_objext \
13655 conftest$ac_exeext conftest.$ac_ext
13656 LIBS=$ac_check_lib_save_LIBS
13658 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_gpm_Gpm_Open" >&5
13659 $as_echo "$ac_cv_lib_gpm_Gpm_Open" >&6; }
13660 if test "x$ac_cv_lib_gpm_Gpm_Open" = x""yes; then :
13668 if test "${HAVE_GPM}" = "yes"; then
13670 $as_echo "#define HAVE_GPM 1" >>confdefs.h
13677 ac_fn_c_check_header_mongrel "$LINENO" "malloc/malloc.h" "ac_cv_header_malloc_malloc_h" "$ac_includes_default"
13678 if test "x$ac_cv_header_malloc_malloc_h" = x""yes; then :
13680 $as_echo "#define HAVE_MALLOC_MALLOC_H 1" >>confdefs.h
13687 ### Use NeXTstep API to implement GUI.
13688 if test "${HAVE_NS}" = "yes"; then
13690 $as_echo "#define HAVE_NS 1" >>confdefs.h
13692 if test "${NS_IMPL_COCOA}" = "yes"; then
13694 $as_echo "#define NS_IMPL_COCOA 1" >>confdefs.h
13698 if test "${NS_IMPL_GNUSTEP}" = "yes"; then
13700 $as_echo "#define NS_IMPL_GNUSTEP 1" >>confdefs.h
13702 # See also .m.o rule in Makefile.in */
13703 # FIXME: are all these flags really needed? Document here why. */
13704 C_SWITCH_X_SYSTEM="-D_REENTRANT -fPIC -fno-strict-aliasing"
13705 GNU_OBJC_CFLAGS="-fgnu-runtime -Wno-import -fconstant-string-class=NSConstantString -DGNUSTEP_BASE_LIBRARY=1 -DGNU_GUI_LIBRARY=1 -DGNU_RUNTIME=1 -DGSWARN -DGSDIAGNOSE"
13707 if test "${NS_HAVE_NSINTEGER}" = "yes"; then
13709 $as_echo "#define NS_HAVE_NSINTEGER 1" >>confdefs.h
13712 # We also have mouse menus.
13718 ### Use session management (-lSM -lICE) if available
13721 if test "${HAVE_X11}" = "yes"; then
13722 ac_fn_c_check_header_mongrel "$LINENO" "X11/SM/SMlib.h" "ac_cv_header_X11_SM_SMlib_h" "$ac_includes_default"
13723 if test "x$ac_cv_header_X11_SM_SMlib_h" = x""yes; then :
13724 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for SmcOpenConnection in -lSM" >&5
13725 $as_echo_n "checking for SmcOpenConnection in -lSM... " >&6; }
13726 if test "${ac_cv_lib_SM_SmcOpenConnection+set}" = set; then :
13727 $as_echo_n "(cached) " >&6
13729 ac_check_lib_save_LIBS=$LIBS
13730 LIBS="-lSM -lICE $LIBS"
13731 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13732 /* end confdefs.h. */
13734 /* Override any GCC internal prototype to avoid an error.
13735 Use char because int might match the return type of a GCC
13736 builtin and then its argument prototype would still apply. */
13740 char SmcOpenConnection ();
13744 return SmcOpenConnection ();
13749 if ac_fn_c_try_link "$LINENO"; then :
13750 ac_cv_lib_SM_SmcOpenConnection=yes
13752 ac_cv_lib_SM_SmcOpenConnection=no
13754 rm -f core conftest.err conftest.$ac_objext \
13755 conftest$ac_exeext conftest.$ac_ext
13756 LIBS=$ac_check_lib_save_LIBS
13758 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_SM_SmcOpenConnection" >&5
13759 $as_echo "$ac_cv_lib_SM_SmcOpenConnection" >&6; }
13760 if test "x$ac_cv_lib_SM_SmcOpenConnection" = x""yes; then :
13768 if test "${HAVE_X_SM}" = "yes"; then
13770 $as_echo "#define HAVE_X_SM 1" >>confdefs.h
13772 LIBXSM="-lSM -lICE"
13775 *) LIBS="$LIBXSM $LIBS" ;;
13781 ### Use libxml (-lxml2) if available
13782 if test "${with_xml2}" != "no"; then
13783 ### I'm not sure what the version number should be, so I just guessed.
13787 # Extract the first word of "pkg-config", so it can be a program name with args.
13788 set dummy pkg-config; ac_word=$2
13789 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13790 $as_echo_n "checking for $ac_word... " >&6; }
13791 if test "${ac_cv_path_PKG_CONFIG+set}" = set; then :
13792 $as_echo_n "(cached) " >&6
13794 case $PKG_CONFIG in
13796 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
13799 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13800 for as_dir in $PATH
13803 test -z "$as_dir" && as_dir=.
13804 for ac_exec_ext in '' $ac_executable_extensions; do
13805 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
13806 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
13807 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13814 test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG="no"
13818 PKG_CONFIG=$ac_cv_path_PKG_CONFIG
13819 if test -n "$PKG_CONFIG"; then
13820 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5
13821 $as_echo "$PKG_CONFIG" >&6; }
13823 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13824 $as_echo "no" >&6; }
13829 if test "$PKG_CONFIG" = "no" ; then
13832 PKG_CONFIG_MIN_VERSION=0.9.0
13833 if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
13834 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libxml-2.0 > 2.6.17" >&5
13835 $as_echo_n "checking for libxml-2.0 > 2.6.17... " >&6; }
13837 if $PKG_CONFIG --exists "libxml-2.0 > 2.6.17" 2>&5; then
13838 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
13839 $as_echo "yes" >&6; }
13842 { $as_echo "$as_me:${as_lineno-$LINENO}: checking LIBXML2_CFLAGS" >&5
13843 $as_echo_n "checking LIBXML2_CFLAGS... " >&6; }
13844 LIBXML2_CFLAGS=`$PKG_CONFIG --cflags "libxml-2.0 > 2.6.17"|sed -e 's,///*,/,g'`
13845 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIBXML2_CFLAGS" >&5
13846 $as_echo "$LIBXML2_CFLAGS" >&6; }
13848 { $as_echo "$as_me:${as_lineno-$LINENO}: checking LIBXML2_LIBS" >&5
13849 $as_echo_n "checking LIBXML2_LIBS... " >&6; }
13850 LIBXML2_LIBS=`$PKG_CONFIG --libs "libxml-2.0 > 2.6.17"|sed -e 's,///*,/,g'`
13851 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIBXML2_LIBS" >&5
13852 $as_echo "$LIBXML2_LIBS" >&6; }
13854 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13855 $as_echo "no" >&6; }
13858 ## If we have a custom action on failure, don't print errors, but
13859 ## do set a variable so people can do so.
13860 LIBXML2_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "libxml-2.0 > 2.6.17"`
13867 echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
13868 echo "*** See http://www.freedesktop.org/software/pkgconfig"
13872 if test $succeeded = yes; then
13878 if test "${HAVE_LIBXML2}" = "yes"; then
13879 LIBS="$LIBXML2_LIBS $LIBS"
13880 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for htmlReadMemory in -lxml2" >&5
13881 $as_echo_n "checking for htmlReadMemory in -lxml2... " >&6; }
13882 if test "${ac_cv_lib_xml2_htmlReadMemory+set}" = set; then :
13883 $as_echo_n "(cached) " >&6
13885 ac_check_lib_save_LIBS=$LIBS
13886 LIBS="-lxml2 $LIBS"
13887 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13888 /* end confdefs.h. */
13890 /* Override any GCC internal prototype to avoid an error.
13891 Use char because int might match the return type of a GCC
13892 builtin and then its argument prototype would still apply. */
13896 char htmlReadMemory ();
13900 return htmlReadMemory ();
13905 if ac_fn_c_try_link "$LINENO"; then :
13906 ac_cv_lib_xml2_htmlReadMemory=yes
13908 ac_cv_lib_xml2_htmlReadMemory=no
13910 rm -f core conftest.err conftest.$ac_objext \
13911 conftest$ac_exeext conftest.$ac_ext
13912 LIBS=$ac_check_lib_save_LIBS
13914 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_xml2_htmlReadMemory" >&5
13915 $as_echo "$ac_cv_lib_xml2_htmlReadMemory" >&6; }
13916 if test "x$ac_cv_lib_xml2_htmlReadMemory" = x""yes; then :
13922 if test "${HAVE_LIBXML2}" = "yes"; then
13924 $as_echo "#define HAVE_LIBXML2 1" >>confdefs.h
13935 # If netdb.h doesn't declare h_errno, we must declare it by hand.
13936 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether netdb declares h_errno" >&5
13937 $as_echo_n "checking whether netdb declares h_errno... " >&6; }
13938 if test "${emacs_cv_netdb_declares_h_errno+set}" = set; then :
13939 $as_echo_n "(cached) " >&6
13941 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13942 /* end confdefs.h. */
13952 if ac_fn_c_try_link "$LINENO"; then :
13953 emacs_cv_netdb_declares_h_errno=yes
13955 emacs_cv_netdb_declares_h_errno=no
13957 rm -f core conftest.err conftest.$ac_objext \
13958 conftest$ac_exeext conftest.$ac_ext
13960 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $emacs_cv_netdb_declares_h_errno" >&5
13961 $as_echo "$emacs_cv_netdb_declares_h_errno" >&6; }
13962 if test $emacs_cv_netdb_declares_h_errno = yes; then
13964 $as_echo "#define HAVE_H_ERRNO 1" >>confdefs.h
13968 # fmod, logb, and frexp are found in -lm on most systems.
13969 # On HPUX 9.01, -lm does not contain logb, so check for sqrt.
13970 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sqrt in -lm" >&5
13971 $as_echo_n "checking for sqrt in -lm... " >&6; }
13972 if test "${ac_cv_lib_m_sqrt+set}" = set; then :
13973 $as_echo_n "(cached) " >&6
13975 ac_check_lib_save_LIBS=$LIBS
13977 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13978 /* end confdefs.h. */
13980 /* Override any GCC internal prototype to avoid an error.
13981 Use char because int might match the return type of a GCC
13982 builtin and then its argument prototype would still apply. */
13995 if ac_fn_c_try_link "$LINENO"; then :
13996 ac_cv_lib_m_sqrt=yes
13998 ac_cv_lib_m_sqrt=no
14000 rm -f core conftest.err conftest.$ac_objext \
14001 conftest$ac_exeext conftest.$ac_ext
14002 LIBS=$ac_check_lib_save_LIBS
14004 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_m_sqrt" >&5
14005 $as_echo "$ac_cv_lib_m_sqrt" >&6; }
14006 if test "x$ac_cv_lib_m_sqrt" = x""yes; then :
14007 cat >>confdefs.h <<_ACEOF
14008 #define HAVE_LIBM 1
14016 # Check for mail-locking functions in a "mail" library. Probably this should
14017 # have the same check as for liblockfile below.
14018 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for maillock in -lmail" >&5
14019 $as_echo_n "checking for maillock in -lmail... " >&6; }
14020 if test "${ac_cv_lib_mail_maillock+set}" = set; then :
14021 $as_echo_n "(cached) " >&6
14023 ac_check_lib_save_LIBS=$LIBS
14024 LIBS="-lmail $LIBS"
14025 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14026 /* end confdefs.h. */
14028 /* Override any GCC internal prototype to avoid an error.
14029 Use char because int might match the return type of a GCC
14030 builtin and then its argument prototype would still apply. */
14038 return maillock ();
14043 if ac_fn_c_try_link "$LINENO"; then :
14044 ac_cv_lib_mail_maillock=yes
14046 ac_cv_lib_mail_maillock=no
14048 rm -f core conftest.err conftest.$ac_objext \
14049 conftest$ac_exeext conftest.$ac_ext
14050 LIBS=$ac_check_lib_save_LIBS
14052 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_mail_maillock" >&5
14053 $as_echo "$ac_cv_lib_mail_maillock" >&6; }
14054 if test "x$ac_cv_lib_mail_maillock" = x""yes; then :
14060 if test $have_mail = yes; then
14062 LIBS="$LIBS_MAIL $LIBS"
14064 $as_echo "#define HAVE_LIBMAIL 1" >>confdefs.h
14069 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for maillock in -llockfile" >&5
14070 $as_echo_n "checking for maillock in -llockfile... " >&6; }
14071 if test "${ac_cv_lib_lockfile_maillock+set}" = set; then :
14072 $as_echo_n "(cached) " >&6
14074 ac_check_lib_save_LIBS=$LIBS
14075 LIBS="-llockfile $LIBS"
14076 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14077 /* end confdefs.h. */
14079 /* Override any GCC internal prototype to avoid an error.
14080 Use char because int might match the return type of a GCC
14081 builtin and then its argument prototype would still apply. */
14089 return maillock ();
14094 if ac_fn_c_try_link "$LINENO"; then :
14095 ac_cv_lib_lockfile_maillock=yes
14097 ac_cv_lib_lockfile_maillock=no
14099 rm -f core conftest.err conftest.$ac_objext \
14100 conftest$ac_exeext conftest.$ac_ext
14101 LIBS=$ac_check_lib_save_LIBS
14103 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_lockfile_maillock" >&5
14104 $as_echo "$ac_cv_lib_lockfile_maillock" >&6; }
14105 if test "x$ac_cv_lib_lockfile_maillock" = x""yes; then :
14111 if test $have_lockfile = yes; then
14112 LIBS_MAIL=-llockfile
14113 LIBS="$LIBS_MAIL $LIBS"
14115 $as_echo "#define HAVE_LIBLOCKFILE 1" >>confdefs.h
14118 # If we have the shared liblockfile, assume we must use it for mail
14119 # locking (e.g. Debian). If we couldn't link against liblockfile
14120 # (no liblockfile.a installed), ensure that we don't need to.
14121 # Extract the first word of "liblockfile.so", so it can be a program name with args.
14122 set dummy liblockfile.so; ac_word=$2
14123 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
14124 $as_echo_n "checking for $ac_word... " >&6; }
14125 if test "${ac_cv_prog_liblockfile+set}" = set; then :
14126 $as_echo_n "(cached) " >&6
14128 if test -n "$liblockfile"; then
14129 ac_cv_prog_liblockfile="$liblockfile" # Let the user override the test.
14131 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14132 as_dummy="/usr/lib:/lib:/usr/local/lib:$LD_LIBRARY_PATH"
14133 for as_dir in $as_dummy
14136 test -z "$as_dir" && as_dir=.
14137 for ac_exec_ext in '' $ac_executable_extensions; do
14138 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
14139 ac_cv_prog_liblockfile="yes"
14140 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
14147 test -z "$ac_cv_prog_liblockfile" && ac_cv_prog_liblockfile="no"
14150 liblockfile=$ac_cv_prog_liblockfile
14151 if test -n "$liblockfile"; then
14152 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $liblockfile" >&5
14153 $as_echo "$liblockfile" >&6; }
14155 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14156 $as_echo "no" >&6; }
14160 if test $ac_cv_prog_liblockfile = yes; then
14161 as_fn_error "Shared liblockfile found but can't link against it.
14162 This probably means that movemail could lose mail.
14163 There may be a \`development' package to install containing liblockfile." "$LINENO" 5
14166 for ac_func in touchlock
14168 ac_fn_c_check_func "$LINENO" "touchlock" "ac_cv_func_touchlock"
14169 if test "x$ac_cv_func_touchlock" = x""yes; then :
14170 cat >>confdefs.h <<_ACEOF
14171 #define HAVE_TOUCHLOCK 1
14177 for ac_header in maillock.h
14179 ac_fn_c_check_header_mongrel "$LINENO" "maillock.h" "ac_cv_header_maillock_h" "$ac_includes_default"
14180 if test "x$ac_cv_header_maillock_h" = x""yes; then :
14181 cat >>confdefs.h <<_ACEOF
14182 #define HAVE_MAILLOCK_H 1
14191 ## Define MAIL_USE_FLOCK (or LOCKF) if the mailer uses flock (or lockf) to
14192 ## interlock access to the mail spool. The alternative is a lock file named
14193 ## /usr/spool/mail/$USER.lock.
14196 aix4-2) mail_lock="lockf" ;;
14198 gnu|freebsd|netbsd|openbsd|darwin|irix6-5) mail_lock="flock" ;;
14200 ## On GNU/Linux systems, both methods are used by various mail programs.
14201 ## I assume most people are using newer mailers that have heard of flock.
14202 ## Change this if you need to.
14203 ## Debian contains a patch which says: ``On Debian/GNU/Linux systems,
14204 ## configure gets the right answers, and that means *NOT* using flock.
14205 ## Using flock is guaranteed to be the wrong thing. See Debian Policy
14206 ## for details.'' and then uses `#ifdef DEBIAN'. Unfortunately the
14207 ## Debian maintainer hasn't provided a clean fix for Emacs.
14208 ## movemail.c will use `maillock' when MAILDIR, HAVE_LIBMAIL and
14209 ## HAVE_MAILLOCK_H are defined, so the following appears to be the
14210 ## correct logic. -- fx
14211 ## We must check for HAVE_LIBLOCKFILE too, as movemail does.
14212 ## liblockfile is a Free Software replacement for libmail, used on
14213 ## Debian systems and elsewhere. -rfr.
14216 if test $have_mail = yes || test $have_lockfile = yes; then
14217 test $ac_cv_header_maillock_h = yes && mail_lock=no
14223 case "$mail_lock" in
14225 $as_echo "#define MAIL_USE_FLOCK 1" >>confdefs.h
14229 $as_echo "#define MAIL_USE_LOCKF 1" >>confdefs.h
14232 *) BLESSMAIL_TARGET="need-blessmail" ;;
14237 for ac_func in gethostname getdomainname \
14238 rename closedir mkdir rmdir sysinfo getrusage get_current_dir_name \
14239 random lrand48 logb frexp fmod rint cbrt ftime setsid \
14240 strerror fpathconf select euidaccess getpagesize tzset setlocale \
14241 utimes getrlimit setrlimit setpgid getcwd getwd shutdown getaddrinfo \
14242 __fpending mblen mbrlen mbsinit strsignal setitimer ualarm \
14243 sendto recvfrom getsockopt setsockopt getsockname getpeername \
14244 gai_strerror mkstemp getline getdelim mremap fsync sync \
14245 difftime mempcpy mblen mbrlen posix_memalign \
14246 cfmakeraw cfsetspeed copysign __executable_start
14248 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
14249 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
14250 eval as_val=\$$as_ac_var
14251 if test "x$as_val" = x""yes; then :
14252 cat >>confdefs.h <<_ACEOF
14253 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
14260 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for __builtin_unwind_init" >&5
14261 $as_echo_n "checking for __builtin_unwind_init... " >&6; }
14262 if test "${emacs_cv_func___builtin_unwind_init+set}" = set; then :
14263 $as_echo_n "(cached) " >&6
14265 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14266 /* end confdefs.h. */
14271 __builtin_unwind_init ();
14276 if ac_fn_c_try_link "$LINENO"; then :
14277 emacs_cv_func___builtin_unwind_init=yes
14279 emacs_cv_func___builtin_unwind_init=no
14281 rm -f core conftest.err conftest.$ac_objext \
14282 conftest$ac_exeext conftest.$ac_ext
14284 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $emacs_cv_func___builtin_unwind_init" >&5
14285 $as_echo "$emacs_cv_func___builtin_unwind_init" >&6; }
14286 if test $emacs_cv_func___builtin_unwind_init = yes; then
14288 $as_echo "#define HAVE___BUILTIN_UNWIND_INIT 1" >>confdefs.h
14292 for ac_header in sys/un.h
14294 ac_fn_c_check_header_mongrel "$LINENO" "sys/un.h" "ac_cv_header_sys_un_h" "$ac_includes_default"
14295 if test "x$ac_cv_header_sys_un_h" = x""yes; then :
14296 cat >>confdefs.h <<_ACEOF
14297 #define HAVE_SYS_UN_H 1
14305 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _LARGEFILE_SOURCE value needed for large files" >&5
14306 $as_echo_n "checking for _LARGEFILE_SOURCE value needed for large files... " >&6; }
14307 if test "${ac_cv_sys_largefile_source+set}" = set; then :
14308 $as_echo_n "(cached) " >&6
14311 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14312 /* end confdefs.h. */
14313 #include <sys/types.h> /* for off_t */
14318 int (*fp) (FILE *, off_t, int) = fseeko;
14319 return fseeko (stdin, 0, 0) && fp (stdin, 0, 0);
14324 if ac_fn_c_try_link "$LINENO"; then :
14325 ac_cv_sys_largefile_source=no; break
14327 rm -f core conftest.err conftest.$ac_objext \
14328 conftest$ac_exeext conftest.$ac_ext
14329 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14330 /* end confdefs.h. */
14331 #define _LARGEFILE_SOURCE 1
14332 #include <sys/types.h> /* for off_t */
14337 int (*fp) (FILE *, off_t, int) = fseeko;
14338 return fseeko (stdin, 0, 0) && fp (stdin, 0, 0);
14343 if ac_fn_c_try_link "$LINENO"; then :
14344 ac_cv_sys_largefile_source=1; break
14346 rm -f core conftest.err conftest.$ac_objext \
14347 conftest$ac_exeext conftest.$ac_ext
14348 ac_cv_sys_largefile_source=unknown
14352 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_largefile_source" >&5
14353 $as_echo "$ac_cv_sys_largefile_source" >&6; }
14354 case $ac_cv_sys_largefile_source in #(
14357 cat >>confdefs.h <<_ACEOF
14358 #define _LARGEFILE_SOURCE $ac_cv_sys_largefile_source
14364 # We used to try defining _XOPEN_SOURCE=500 too, to work around a bug
14365 # in glibc 2.1.3, but that breaks too many other things.
14366 # If you want fseeko and ftello with glibc, upgrade to a fixed glibc.
14367 if test $ac_cv_sys_largefile_source != unknown; then
14369 $as_echo "#define HAVE_FSEEKO 1" >>confdefs.h
14374 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether getpgrp requires zero arguments" >&5
14375 $as_echo_n "checking whether getpgrp requires zero arguments... " >&6; }
14376 if test "${ac_cv_func_getpgrp_void+set}" = set; then :
14377 $as_echo_n "(cached) " >&6
14379 # Use it with a single arg.
14380 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14381 /* end confdefs.h. */
14382 $ac_includes_default
14391 if ac_fn_c_try_compile "$LINENO"; then :
14392 ac_cv_func_getpgrp_void=no
14394 ac_cv_func_getpgrp_void=yes
14396 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14399 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_getpgrp_void" >&5
14400 $as_echo "$ac_cv_func_getpgrp_void" >&6; }
14401 if test $ac_cv_func_getpgrp_void = yes; then
14403 $as_echo "#define GETPGRP_VOID 1" >>confdefs.h
14409 # Configure gnulib.
14412 for ac_func in grantpt
14414 ac_fn_c_check_func "$LINENO" "grantpt" "ac_cv_func_grantpt"
14415 if test "x$ac_cv_func_grantpt" = x""yes; then :
14416 cat >>confdefs.h <<_ACEOF
14417 #define HAVE_GRANTPT 1
14424 # PTY-related GNU extensions.
14425 for ac_func in getpt
14427 ac_fn_c_check_func "$LINENO" "getpt" "ac_cv_func_getpt"
14428 if test "x$ac_cv_func_getpt" = x""yes; then :
14429 cat >>confdefs.h <<_ACEOF
14430 #define HAVE_GETPT 1
14437 # Check this now, so that we will NOT find the above functions in ncurses.
14438 # That is because we have not set up to link ncurses in lib-src.
14439 # It's better to believe a function is not available
14440 # than to expect to find it in ncurses.
14441 # Also we need tputs and friends to be able to build at all.
14442 have_tputs_et_al=true
14443 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing tputs" >&5
14444 $as_echo_n "checking for library containing tputs... " >&6; }
14445 if test "${ac_cv_search_tputs+set}" = set; then :
14446 $as_echo_n "(cached) " >&6
14448 ac_func_search_save_LIBS=$LIBS
14449 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14450 /* end confdefs.h. */
14452 /* Override any GCC internal prototype to avoid an error.
14453 Use char because int might match the return type of a GCC
14454 builtin and then its argument prototype would still apply. */
14467 for ac_lib in '' ncurses terminfo termcap; do
14468 if test -z "$ac_lib"; then
14469 ac_res="none required"
14472 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
14474 if ac_fn_c_try_link "$LINENO"; then :
14475 ac_cv_search_tputs=$ac_res
14477 rm -f core conftest.err conftest.$ac_objext \
14479 if test "${ac_cv_search_tputs+set}" = set; then :
14483 if test "${ac_cv_search_tputs+set}" = set; then :
14486 ac_cv_search_tputs=no
14488 rm conftest.$ac_ext
14489 LIBS=$ac_func_search_save_LIBS
14491 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_tputs" >&5
14492 $as_echo "$ac_cv_search_tputs" >&6; }
14493 ac_res=$ac_cv_search_tputs
14494 if test "$ac_res" != no; then :
14495 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
14498 have_tputs_et_al=false
14501 if test "$have_tputs_et_al" != true; then
14502 as_fn_error "I couldn't find termcap functions (tputs and friends).
14503 Maybe some development libraries/packages are missing? Try installing
14504 libncurses-dev(el), libterminfo-dev(el) or similar." "$LINENO" 5
14506 # Must define this when any termcap library is found.
14508 $as_echo "#define HAVE_LIBNCURSES 1" >>confdefs.h
14510 ## FIXME This was the cpp logic, but I am not sure it is right.
14511 ## The above test has not necessarily found libncurses.
14512 HAVE_LIBNCURSES=yes
14514 ## Use terminfo instead of termcap?
14515 ## Note only system files NOT using terminfo are:
14516 ## freebsd < 40000, ms-w32, msdos, netbsd < 599002500, and
14517 ## darwin|gnu without ncurses.
14521 ## cygwin: Fewer environment variables to go wrong, more terminal types.
14522 ## hpux10-20: Use the system provided termcap(3) library.
14523 ## openbsd: David Mazieres <dm@reeducation-labor.lcs.mit.edu> says this
14524 ## is necessary. Otherwise Emacs dumps core when run -nw.
14525 aix4-2|cygwin|hpux*|irix6-5|openbsd|sol2*|unixware) TERMINFO=yes ;;
14527 ## darwin: Prevents crashes when running Emacs in Terminal.app under 10.2.
14528 ## The ncurses library has been moved out of the System framework in
14529 ## Mac OS X 10.2. So if configure detects it, set the command-line
14530 ## option to use it.
14532 ## (HAVE_LIBNCURSES was not always true, but is since 2010-03-18.)
14533 if test "x$HAVE_LIBNCURSES" = "xyes"; then
14535 LIBS_TERMCAP="-lncurses"
14540 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether FreeBSD is new enough to use terminfo" >&5
14541 $as_echo_n "checking whether FreeBSD is new enough to use terminfo... " >&6; }
14542 if test "${emacs_cv_freebsd_terminfo+set}" = set; then :
14543 $as_echo_n "(cached) " >&6
14545 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14546 /* end confdefs.h. */
14547 #include <osreldate.h>
14551 #if __FreeBSD_version < 400000
14559 if ac_fn_c_try_link "$LINENO"; then :
14560 emacs_cv_freebsd_terminfo=yes
14562 emacs_cv_freebsd_terminfo=no
14564 rm -f core conftest.err conftest.$ac_objext \
14565 conftest$ac_exeext conftest.$ac_ext
14569 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $emacs_cv_freebsd_terminfo" >&5
14570 $as_echo "$emacs_cv_freebsd_terminfo" >&6; }
14572 if test $emacs_cv_freebsd_terminfo = yes; then
14574 LIBS_TERMCAP="-lncurses"
14576 LIBS_TERMCAP="-ltermcap"
14581 if test $ac_cv_search_tputs = -lterminfo; then
14583 LIBS_TERMCAP="-lterminfo"
14585 LIBS_TERMCAP="-ltermcap"
14592 ## hpux: Make sure we get select from libc rather than from libcurses
14593 ## because libcurses on HPUX 10.10 has a broken version of select.
14594 ## We used to use -lc -lcurses, but this may be cleaner.
14595 hpux*) LIBS_TERMCAP="-ltermcap" ;;
14597 openbsd) LIBS_TERMCAP="-lncurses" ;;
14599 ## Must use system termcap, if we use any termcap. It does special things.
14600 sol2*) test "$TERMINFO" != yes && LIBS_TERMCAP="-ltermcap" ;;
14603 TERMCAP_OBJ=tparam.o
14604 if test $TERMINFO = yes; then
14606 $as_echo "#define TERMINFO 1" >>confdefs.h
14609 ## Default used to be -ltermcap. Add a case above if need something else.
14610 test "x$LIBS_TERMCAP" = "x" && LIBS_TERMCAP="-lcurses"
14612 TERMCAP_OBJ=terminfo.o
14618 # Do we have res_init, for detecting changes in /etc/resolv.conf?
14620 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14621 /* end confdefs.h. */
14622 #include <netinet/in.h>
14623 #include <arpa/nameser.h>
14624 #include <resolv.h>
14633 if ac_fn_c_try_link "$LINENO"; then :
14638 rm -f core conftest.err conftest.$ac_objext \
14639 conftest$ac_exeext conftest.$ac_ext
14640 if test "$have_res_init" = no; then
14642 LIBS="$LIBS -lresolv"
14643 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for res_init with -lresolv" >&5
14644 $as_echo_n "checking for res_init with -lresolv... " >&6; }
14645 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14646 /* end confdefs.h. */
14647 #include <netinet/in.h>
14648 #include <arpa/nameser.h>
14649 #include <resolv.h>
14658 if ac_fn_c_try_link "$LINENO"; then :
14663 rm -f core conftest.err conftest.$ac_objext \
14664 conftest$ac_exeext conftest.$ac_ext
14665 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_res_init" >&5
14666 $as_echo "$have_res_init" >&6; }
14667 if test "$have_res_init" = yes ; then
14673 if test "$have_res_init" = yes; then
14675 $as_echo "#define HAVE_RES_INIT 1" >>confdefs.h
14679 # Do we need the Hesiod library to provide the support routines?
14681 if test "$with_hesiod" != no ; then
14682 # Don't set $LIBS here -- see comments above. FIXME which comments?
14683 ac_fn_c_check_func "$LINENO" "res_send" "ac_cv_func_res_send"
14684 if test "x$ac_cv_func_res_send" = x""yes; then :
14687 ac_fn_c_check_func "$LINENO" "__res_send" "ac_cv_func___res_send"
14688 if test "x$ac_cv_func___res_send" = x""yes; then :
14691 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for res_send in -lresolv" >&5
14692 $as_echo_n "checking for res_send in -lresolv... " >&6; }
14693 if test "${ac_cv_lib_resolv_res_send+set}" = set; then :
14694 $as_echo_n "(cached) " >&6
14696 ac_check_lib_save_LIBS=$LIBS
14697 LIBS="-lresolv $LIBS"
14698 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14699 /* end confdefs.h. */
14701 /* Override any GCC internal prototype to avoid an error.
14702 Use char because int might match the return type of a GCC
14703 builtin and then its argument prototype would still apply. */
14711 return res_send ();
14716 if ac_fn_c_try_link "$LINENO"; then :
14717 ac_cv_lib_resolv_res_send=yes
14719 ac_cv_lib_resolv_res_send=no
14721 rm -f core conftest.err conftest.$ac_objext \
14722 conftest$ac_exeext conftest.$ac_ext
14723 LIBS=$ac_check_lib_save_LIBS
14725 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_resolv_res_send" >&5
14726 $as_echo "$ac_cv_lib_resolv_res_send" >&6; }
14727 if test "x$ac_cv_lib_resolv_res_send" = x""yes; then :
14730 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for __res_send in -lresolv" >&5
14731 $as_echo_n "checking for __res_send in -lresolv... " >&6; }
14732 if test "${ac_cv_lib_resolv___res_send+set}" = set; then :
14733 $as_echo_n "(cached) " >&6
14735 ac_check_lib_save_LIBS=$LIBS
14736 LIBS="-lresolv $LIBS"
14737 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14738 /* end confdefs.h. */
14740 /* Override any GCC internal prototype to avoid an error.
14741 Use char because int might match the return type of a GCC
14742 builtin and then its argument prototype would still apply. */
14746 char __res_send ();
14750 return __res_send ();
14755 if ac_fn_c_try_link "$LINENO"; then :
14756 ac_cv_lib_resolv___res_send=yes
14758 ac_cv_lib_resolv___res_send=no
14760 rm -f core conftest.err conftest.$ac_objext \
14761 conftest$ac_exeext conftest.$ac_ext
14762 LIBS=$ac_check_lib_save_LIBS
14764 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_resolv___res_send" >&5
14765 $as_echo "$ac_cv_lib_resolv___res_send" >&6; }
14766 if test "x$ac_cv_lib_resolv___res_send" = x""yes; then :
14776 if test "$resolv" = yes ; then
14781 ac_fn_c_check_func "$LINENO" "hes_getmailhost" "ac_cv_func_hes_getmailhost"
14782 if test "x$ac_cv_func_hes_getmailhost" = x""yes; then :
14785 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for hes_getmailhost in -lhesiod" >&5
14786 $as_echo_n "checking for hes_getmailhost in -lhesiod... " >&6; }
14787 if test "${ac_cv_lib_hesiod_hes_getmailhost+set}" = set; then :
14788 $as_echo_n "(cached) " >&6
14790 ac_check_lib_save_LIBS=$LIBS
14791 LIBS="-lhesiod $RESOLVLIB $LIBS"
14792 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14793 /* end confdefs.h. */
14795 /* Override any GCC internal prototype to avoid an error.
14796 Use char because int might match the return type of a GCC
14797 builtin and then its argument prototype would still apply. */
14801 char hes_getmailhost ();
14805 return hes_getmailhost ();
14810 if ac_fn_c_try_link "$LINENO"; then :
14811 ac_cv_lib_hesiod_hes_getmailhost=yes
14813 ac_cv_lib_hesiod_hes_getmailhost=no
14815 rm -f core conftest.err conftest.$ac_objext \
14816 conftest$ac_exeext conftest.$ac_ext
14817 LIBS=$ac_check_lib_save_LIBS
14819 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_hesiod_hes_getmailhost" >&5
14820 $as_echo "$ac_cv_lib_hesiod_hes_getmailhost" >&6; }
14821 if test "x$ac_cv_lib_hesiod_hes_getmailhost" = x""yes; then :
14830 if test x"$hesiod" = xyes; then
14832 $as_echo "#define HAVE_LIBHESIOD 1" >>confdefs.h
14839 # Do we need libresolv (due to res_init or Hesiod)?
14840 if test "$resolv" = yes ; then
14842 $as_echo "#define HAVE_LIBRESOLV 1" >>confdefs.h
14850 # These tell us which Kerberos-related libraries to use.
14857 if test "${with_kerberos}" != no; then
14858 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for com_err in -lcom_err" >&5
14859 $as_echo_n "checking for com_err in -lcom_err... " >&6; }
14860 if test "${ac_cv_lib_com_err_com_err+set}" = set; then :
14861 $as_echo_n "(cached) " >&6
14863 ac_check_lib_save_LIBS=$LIBS
14864 LIBS="-lcom_err $LIBS"
14865 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14866 /* end confdefs.h. */
14868 /* Override any GCC internal prototype to avoid an error.
14869 Use char because int might match the return type of a GCC
14870 builtin and then its argument prototype would still apply. */
14883 if ac_fn_c_try_link "$LINENO"; then :
14884 ac_cv_lib_com_err_com_err=yes
14886 ac_cv_lib_com_err_com_err=no
14888 rm -f core conftest.err conftest.$ac_objext \
14889 conftest$ac_exeext conftest.$ac_ext
14890 LIBS=$ac_check_lib_save_LIBS
14892 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_com_err_com_err" >&5
14893 $as_echo "$ac_cv_lib_com_err_com_err" >&6; }
14894 if test "x$ac_cv_lib_com_err_com_err" = x""yes; then :
14900 if test $have_com_err = yes; then
14901 COM_ERRLIB=-lcom_err
14902 LIBS="$COM_ERRLIB $LIBS"
14904 $as_echo "#define HAVE_LIBCOM_ERR 1" >>confdefs.h
14907 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for mit_des_cbc_encrypt in -lcrypto" >&5
14908 $as_echo_n "checking for mit_des_cbc_encrypt in -lcrypto... " >&6; }
14909 if test "${ac_cv_lib_crypto_mit_des_cbc_encrypt+set}" = set; then :
14910 $as_echo_n "(cached) " >&6
14912 ac_check_lib_save_LIBS=$LIBS
14913 LIBS="-lcrypto $LIBS"
14914 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14915 /* end confdefs.h. */
14917 /* Override any GCC internal prototype to avoid an error.
14918 Use char because int might match the return type of a GCC
14919 builtin and then its argument prototype would still apply. */
14923 char mit_des_cbc_encrypt ();
14927 return mit_des_cbc_encrypt ();
14932 if ac_fn_c_try_link "$LINENO"; then :
14933 ac_cv_lib_crypto_mit_des_cbc_encrypt=yes
14935 ac_cv_lib_crypto_mit_des_cbc_encrypt=no
14937 rm -f core conftest.err conftest.$ac_objext \
14938 conftest$ac_exeext conftest.$ac_ext
14939 LIBS=$ac_check_lib_save_LIBS
14941 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_crypto_mit_des_cbc_encrypt" >&5
14942 $as_echo "$ac_cv_lib_crypto_mit_des_cbc_encrypt" >&6; }
14943 if test "x$ac_cv_lib_crypto_mit_des_cbc_encrypt" = x""yes; then :
14949 if test $have_crypto = yes; then
14951 LIBS="$CRYPTOLIB $LIBS"
14953 $as_echo "#define HAVE_LIBCRYPTO 1" >>confdefs.h
14956 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for mit_des_cbc_encrypt in -lk5crypto" >&5
14957 $as_echo_n "checking for mit_des_cbc_encrypt in -lk5crypto... " >&6; }
14958 if test "${ac_cv_lib_k5crypto_mit_des_cbc_encrypt+set}" = set; then :
14959 $as_echo_n "(cached) " >&6
14961 ac_check_lib_save_LIBS=$LIBS
14962 LIBS="-lk5crypto $LIBS"
14963 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14964 /* end confdefs.h. */
14966 /* Override any GCC internal prototype to avoid an error.
14967 Use char because int might match the return type of a GCC
14968 builtin and then its argument prototype would still apply. */
14972 char mit_des_cbc_encrypt ();
14976 return mit_des_cbc_encrypt ();
14981 if ac_fn_c_try_link "$LINENO"; then :
14982 ac_cv_lib_k5crypto_mit_des_cbc_encrypt=yes
14984 ac_cv_lib_k5crypto_mit_des_cbc_encrypt=no
14986 rm -f core conftest.err conftest.$ac_objext \
14987 conftest$ac_exeext conftest.$ac_ext
14988 LIBS=$ac_check_lib_save_LIBS
14990 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_k5crypto_mit_des_cbc_encrypt" >&5
14991 $as_echo "$ac_cv_lib_k5crypto_mit_des_cbc_encrypt" >&6; }
14992 if test "x$ac_cv_lib_k5crypto_mit_des_cbc_encrypt" = x""yes; then :
14998 if test $have_k5crypto = yes; then
14999 CRYPTOLIB=-lk5crypto
15000 LIBS="$CRYPTOLIB $LIBS"
15002 $as_echo "#define HAVE_LIBK5CRYPTO 1" >>confdefs.h
15005 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for krb5_init_context in -lkrb5" >&5
15006 $as_echo_n "checking for krb5_init_context in -lkrb5... " >&6; }
15007 if test "${ac_cv_lib_krb5_krb5_init_context+set}" = set; then :
15008 $as_echo_n "(cached) " >&6
15010 ac_check_lib_save_LIBS=$LIBS
15011 LIBS="-lkrb5 $LIBS"
15012 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15013 /* end confdefs.h. */
15015 /* Override any GCC internal prototype to avoid an error.
15016 Use char because int might match the return type of a GCC
15017 builtin and then its argument prototype would still apply. */
15021 char krb5_init_context ();
15025 return krb5_init_context ();
15030 if ac_fn_c_try_link "$LINENO"; then :
15031 ac_cv_lib_krb5_krb5_init_context=yes
15033 ac_cv_lib_krb5_krb5_init_context=no
15035 rm -f core conftest.err conftest.$ac_objext \
15036 conftest$ac_exeext conftest.$ac_ext
15037 LIBS=$ac_check_lib_save_LIBS
15039 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_krb5_krb5_init_context" >&5
15040 $as_echo "$ac_cv_lib_krb5_krb5_init_context" >&6; }
15041 if test "x$ac_cv_lib_krb5_krb5_init_context" = x""yes; then :
15047 if test $have_krb5=yes; then
15049 LIBS="$KRB5LIB $LIBS"
15051 $as_echo "#define HAVE_LIBKRB5 1" >>confdefs.h
15054 if test "${with_kerberos5}" = no; then
15055 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for des_cbc_encrypt in -ldes425" >&5
15056 $as_echo_n "checking for des_cbc_encrypt in -ldes425... " >&6; }
15057 if test "${ac_cv_lib_des425_des_cbc_encrypt+set}" = set; then :
15058 $as_echo_n "(cached) " >&6
15060 ac_check_lib_save_LIBS=$LIBS
15061 LIBS="-ldes425 $LIBS"
15062 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15063 /* end confdefs.h. */
15065 /* Override any GCC internal prototype to avoid an error.
15066 Use char because int might match the return type of a GCC
15067 builtin and then its argument prototype would still apply. */
15071 char des_cbc_encrypt ();
15075 return des_cbc_encrypt ();
15080 if ac_fn_c_try_link "$LINENO"; then :
15081 ac_cv_lib_des425_des_cbc_encrypt=yes
15083 ac_cv_lib_des425_des_cbc_encrypt=no
15085 rm -f core conftest.err conftest.$ac_objext \
15086 conftest$ac_exeext conftest.$ac_ext
15087 LIBS=$ac_check_lib_save_LIBS
15089 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_des425_des_cbc_encrypt" >&5
15090 $as_echo "$ac_cv_lib_des425_des_cbc_encrypt" >&6; }
15091 if test "x$ac_cv_lib_des425_des_cbc_encrypt" = x""yes; then :
15097 if test $have_des425 = yes; then
15099 LIBS="$DESLIB $LIBS"
15101 $as_echo "#define HAVE_LIBDES425 1" >>confdefs.h
15104 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for des_cbc_encrypt in -ldes" >&5
15105 $as_echo_n "checking for des_cbc_encrypt in -ldes... " >&6; }
15106 if test "${ac_cv_lib_des_des_cbc_encrypt+set}" = set; then :
15107 $as_echo_n "(cached) " >&6
15109 ac_check_lib_save_LIBS=$LIBS
15111 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15112 /* end confdefs.h. */
15114 /* Override any GCC internal prototype to avoid an error.
15115 Use char because int might match the return type of a GCC
15116 builtin and then its argument prototype would still apply. */
15120 char des_cbc_encrypt ();
15124 return des_cbc_encrypt ();
15129 if ac_fn_c_try_link "$LINENO"; then :
15130 ac_cv_lib_des_des_cbc_encrypt=yes
15132 ac_cv_lib_des_des_cbc_encrypt=no
15134 rm -f core conftest.err conftest.$ac_objext \
15135 conftest$ac_exeext conftest.$ac_ext
15136 LIBS=$ac_check_lib_save_LIBS
15138 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_des_des_cbc_encrypt" >&5
15139 $as_echo "$ac_cv_lib_des_des_cbc_encrypt" >&6; }
15140 if test "x$ac_cv_lib_des_des_cbc_encrypt" = x""yes; then :
15146 if test $have_des = yes; then
15148 LIBS="$DESLIB $LIBS"
15150 $as_echo "#define HAVE_LIBDES 1" >>confdefs.h
15154 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for krb_get_cred in -lkrb4" >&5
15155 $as_echo_n "checking for krb_get_cred in -lkrb4... " >&6; }
15156 if test "${ac_cv_lib_krb4_krb_get_cred+set}" = set; then :
15157 $as_echo_n "(cached) " >&6
15159 ac_check_lib_save_LIBS=$LIBS
15160 LIBS="-lkrb4 $LIBS"
15161 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15162 /* end confdefs.h. */
15164 /* Override any GCC internal prototype to avoid an error.
15165 Use char because int might match the return type of a GCC
15166 builtin and then its argument prototype would still apply. */
15170 char krb_get_cred ();
15174 return krb_get_cred ();
15179 if ac_fn_c_try_link "$LINENO"; then :
15180 ac_cv_lib_krb4_krb_get_cred=yes
15182 ac_cv_lib_krb4_krb_get_cred=no
15184 rm -f core conftest.err conftest.$ac_objext \
15185 conftest$ac_exeext conftest.$ac_ext
15186 LIBS=$ac_check_lib_save_LIBS
15188 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_krb4_krb_get_cred" >&5
15189 $as_echo "$ac_cv_lib_krb4_krb_get_cred" >&6; }
15190 if test "x$ac_cv_lib_krb4_krb_get_cred" = x""yes; then :
15196 if test $have_krb4 = yes; then
15198 LIBS="$KRB4LIB $LIBS"
15200 $as_echo "#define HAVE_LIBKRB4 1" >>confdefs.h
15203 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for krb_get_cred in -lkrb" >&5
15204 $as_echo_n "checking for krb_get_cred in -lkrb... " >&6; }
15205 if test "${ac_cv_lib_krb_krb_get_cred+set}" = set; then :
15206 $as_echo_n "(cached) " >&6
15208 ac_check_lib_save_LIBS=$LIBS
15210 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15211 /* end confdefs.h. */
15213 /* Override any GCC internal prototype to avoid an error.
15214 Use char because int might match the return type of a GCC
15215 builtin and then its argument prototype would still apply. */
15219 char krb_get_cred ();
15223 return krb_get_cred ();
15228 if ac_fn_c_try_link "$LINENO"; then :
15229 ac_cv_lib_krb_krb_get_cred=yes
15231 ac_cv_lib_krb_krb_get_cred=no
15233 rm -f core conftest.err conftest.$ac_objext \
15234 conftest$ac_exeext conftest.$ac_ext
15235 LIBS=$ac_check_lib_save_LIBS
15237 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_krb_krb_get_cred" >&5
15238 $as_echo "$ac_cv_lib_krb_krb_get_cred" >&6; }
15239 if test "x$ac_cv_lib_krb_krb_get_cred" = x""yes; then :
15245 if test $have_krb = yes; then
15247 LIBS="$KRB4LIB $LIBS"
15249 $as_echo "#define HAVE_LIBKRB 1" >>confdefs.h
15255 if test "${with_kerberos5}" != no; then
15256 for ac_header in krb5.h
15258 ac_fn_c_check_header_mongrel "$LINENO" "krb5.h" "ac_cv_header_krb5_h" "$ac_includes_default"
15259 if test "x$ac_cv_header_krb5_h" = x""yes; then :
15260 cat >>confdefs.h <<_ACEOF
15261 #define HAVE_KRB5_H 1
15263 ac_fn_c_check_member "$LINENO" "krb5_error" "text" "ac_cv_member_krb5_error_text" "#include <krb5.h>
15265 if test "x$ac_cv_member_krb5_error_text" = x""yes; then :
15267 cat >>confdefs.h <<_ACEOF
15268 #define HAVE_KRB5_ERROR_TEXT 1
15273 ac_fn_c_check_member "$LINENO" "krb5_error" "e_text" "ac_cv_member_krb5_error_e_text" "#include <krb5.h>
15275 if test "x$ac_cv_member_krb5_error_e_text" = x""yes; then :
15277 cat >>confdefs.h <<_ACEOF
15278 #define HAVE_KRB5_ERROR_E_TEXT 1
15289 for ac_header in des.h
15291 ac_fn_c_check_header_mongrel "$LINENO" "des.h" "ac_cv_header_des_h" "$ac_includes_default"
15292 if test "x$ac_cv_header_des_h" = x""yes; then :
15293 cat >>confdefs.h <<_ACEOF
15294 #define HAVE_DES_H 1
15298 for ac_header in kerberosIV/des.h
15300 ac_fn_c_check_header_mongrel "$LINENO" "kerberosIV/des.h" "ac_cv_header_kerberosIV_des_h" "$ac_includes_default"
15301 if test "x$ac_cv_header_kerberosIV_des_h" = x""yes; then :
15302 cat >>confdefs.h <<_ACEOF
15303 #define HAVE_KERBEROSIV_DES_H 1
15307 for ac_header in kerberos/des.h
15309 ac_fn_c_check_header_mongrel "$LINENO" "kerberos/des.h" "ac_cv_header_kerberos_des_h" "$ac_includes_default"
15310 if test "x$ac_cv_header_kerberos_des_h" = x""yes; then :
15311 cat >>confdefs.h <<_ACEOF
15312 #define HAVE_KERBEROS_DES_H 1
15327 for ac_header in krb.h
15329 ac_fn_c_check_header_mongrel "$LINENO" "krb.h" "ac_cv_header_krb_h" "$ac_includes_default"
15330 if test "x$ac_cv_header_krb_h" = x""yes; then :
15331 cat >>confdefs.h <<_ACEOF
15332 #define HAVE_KRB_H 1
15336 for ac_header in kerberosIV/krb.h
15338 ac_fn_c_check_header_mongrel "$LINENO" "kerberosIV/krb.h" "ac_cv_header_kerberosIV_krb_h" "$ac_includes_default"
15339 if test "x$ac_cv_header_kerberosIV_krb_h" = x""yes; then :
15340 cat >>confdefs.h <<_ACEOF
15341 #define HAVE_KERBEROSIV_KRB_H 1
15345 for ac_header in kerberos/krb.h
15347 ac_fn_c_check_header_mongrel "$LINENO" "kerberos/krb.h" "ac_cv_header_kerberos_krb_h" "$ac_includes_default"
15348 if test "x$ac_cv_header_kerberos_krb_h" = x""yes; then :
15349 cat >>confdefs.h <<_ACEOF
15350 #define HAVE_KERBEROS_KRB_H 1
15366 for ac_header in com_err.h
15368 ac_fn_c_check_header_mongrel "$LINENO" "com_err.h" "ac_cv_header_com_err_h" "$ac_includes_default"
15369 if test "x$ac_cv_header_com_err_h" = x""yes; then :
15370 cat >>confdefs.h <<_ACEOF
15371 #define HAVE_COM_ERR_H 1
15386 # Solaris requires -lintl if you want strerror (which calls dgettext)
15387 # to return localized messages.
15388 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dgettext in -lintl" >&5
15389 $as_echo_n "checking for dgettext in -lintl... " >&6; }
15390 if test "${ac_cv_lib_intl_dgettext+set}" = set; then :
15391 $as_echo_n "(cached) " >&6
15393 ac_check_lib_save_LIBS=$LIBS
15394 LIBS="-lintl $LIBS"
15395 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15396 /* end confdefs.h. */
15398 /* Override any GCC internal prototype to avoid an error.
15399 Use char because int might match the return type of a GCC
15400 builtin and then its argument prototype would still apply. */
15408 return dgettext ();
15413 if ac_fn_c_try_link "$LINENO"; then :
15414 ac_cv_lib_intl_dgettext=yes
15416 ac_cv_lib_intl_dgettext=no
15418 rm -f core conftest.err conftest.$ac_objext \
15419 conftest$ac_exeext conftest.$ac_ext
15420 LIBS=$ac_check_lib_save_LIBS
15422 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_intl_dgettext" >&5
15423 $as_echo "$ac_cv_lib_intl_dgettext" >&6; }
15424 if test "x$ac_cv_lib_intl_dgettext" = x""yes; then :
15425 cat >>confdefs.h <<_ACEOF
15426 #define HAVE_LIBINTL 1
15429 LIBS="-lintl $LIBS"
15434 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether localtime caches TZ" >&5
15435 $as_echo_n "checking whether localtime caches TZ... " >&6; }
15436 if test "${emacs_cv_localtime_cache+set}" = set; then :
15437 $as_echo_n "(cached) " >&6
15439 if test x$ac_cv_func_tzset = xyes; then
15440 if test "$cross_compiling" = yes; then :
15441 # If we have tzset, assume the worst when cross-compiling.
15442 emacs_cv_localtime_cache=yes
15444 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15445 /* end confdefs.h. */
15447 char TZ_GMT0[] = "TZ=GMT0";
15448 char TZ_PST8[] = "TZ=PST8";
15451 time_t now = time ((time_t *) 0);
15452 int hour_GMT0, hour_unset;
15453 if (putenv (TZ_GMT0) != 0)
15455 hour_GMT0 = localtime (&now)->tm_hour;
15457 hour_unset = localtime (&now)->tm_hour;
15458 if (putenv (TZ_PST8) != 0)
15460 if (localtime (&now)->tm_hour == hour_GMT0)
15463 if (localtime (&now)->tm_hour != hour_unset)
15468 if ac_fn_c_try_run "$LINENO"; then :
15469 emacs_cv_localtime_cache=no
15471 emacs_cv_localtime_cache=yes
15473 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
15474 conftest.$ac_objext conftest.beam conftest.$ac_ext
15478 # If we lack tzset, report that localtime does not cache TZ,
15479 # since we can't invalidate the cache if we don't have tzset.
15480 emacs_cv_localtime_cache=no
15483 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $emacs_cv_localtime_cache" >&5
15484 $as_echo "$emacs_cv_localtime_cache" >&6; }
15485 if test $emacs_cv_localtime_cache = yes; then
15487 $as_echo "#define LOCALTIME_CACHE 1" >>confdefs.h
15491 if test "x$HAVE_TIMEVAL" = xyes; then
15492 for ac_func in gettimeofday
15494 ac_fn_c_check_func "$LINENO" "gettimeofday" "ac_cv_func_gettimeofday"
15495 if test "x$ac_cv_func_gettimeofday" = x""yes; then :
15496 cat >>confdefs.h <<_ACEOF
15497 #define HAVE_GETTIMEOFDAY 1
15503 if test $ac_cv_func_gettimeofday = yes; then
15504 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether gettimeofday can accept two arguments" >&5
15505 $as_echo_n "checking whether gettimeofday can accept two arguments... " >&6; }
15506 if test "${emacs_cv_gettimeofday_two_arguments+set}" = set; then :
15507 $as_echo_n "(cached) " >&6
15509 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15510 /* end confdefs.h. */
15512 #ifdef TIME_WITH_SYS_TIME
15513 #include <sys/time.h>
15516 #ifdef HAVE_SYS_TIME_H
15517 #include <sys/time.h>
15525 struct timeval time;
15526 gettimeofday (&time, 0);
15531 if ac_fn_c_try_compile "$LINENO"; then :
15532 emacs_cv_gettimeofday_two_arguments=yes
15534 emacs_cv_gettimeofday_two_arguments=no
15536 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15538 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $emacs_cv_gettimeofday_two_arguments" >&5
15539 $as_echo "$emacs_cv_gettimeofday_two_arguments" >&6; }
15540 if test $emacs_cv_gettimeofday_two_arguments = no; then
15542 $as_echo "#define GETTIMEOFDAY_ONE_ARGUMENT 1" >>confdefs.h
15549 ac_fn_c_check_func "$LINENO" "socket" "ac_cv_func_socket"
15550 if test "x$ac_cv_func_socket" = x""yes; then :
15556 if test $ok_so_far = yes; then
15557 ac_fn_c_check_header_mongrel "$LINENO" "netinet/in.h" "ac_cv_header_netinet_in_h" "$ac_includes_default"
15558 if test "x$ac_cv_header_netinet_in_h" = x""yes; then :
15566 if test $ok_so_far = yes; then
15567 ac_fn_c_check_header_mongrel "$LINENO" "arpa/inet.h" "ac_cv_header_arpa_inet_h" "$ac_includes_default"
15568 if test "x$ac_cv_header_arpa_inet_h" = x""yes; then :
15576 if test $ok_so_far = yes; then
15578 $as_echo "#define HAVE_INET_SOCKETS 1" >>confdefs.h
15582 if test -f /usr/lpp/X11/bin/smt.exp; then
15584 $as_echo "#define HAVE_AIX_SMT_EXP 1" >>confdefs.h
15588 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether system supports dynamic ptys" >&5
15589 $as_echo_n "checking whether system supports dynamic ptys... " >&6; }
15590 if test -d /dev/pts && ls -d /dev/ptmx > /dev/null 2>&1 ; then
15591 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
15592 $as_echo "yes" >&6; }
15594 $as_echo "#define HAVE_DEV_PTMX 1" >>confdefs.h
15597 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15598 $as_echo "no" >&6; }
15601 ac_fn_c_check_type "$LINENO" "pid_t" "ac_cv_type_pid_t" "$ac_includes_default"
15602 if test "x$ac_cv_type_pid_t" = x""yes; then :
15606 cat >>confdefs.h <<_ACEOF
15612 for ac_header in vfork.h
15614 ac_fn_c_check_header_mongrel "$LINENO" "vfork.h" "ac_cv_header_vfork_h" "$ac_includes_default"
15615 if test "x$ac_cv_header_vfork_h" = x""yes; then :
15616 cat >>confdefs.h <<_ACEOF
15617 #define HAVE_VFORK_H 1
15624 for ac_func in fork vfork
15626 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
15627 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
15628 eval as_val=\$$as_ac_var
15629 if test "x$as_val" = x""yes; then :
15630 cat >>confdefs.h <<_ACEOF
15631 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
15637 if test "x$ac_cv_func_fork" = xyes; then
15638 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working fork" >&5
15639 $as_echo_n "checking for working fork... " >&6; }
15640 if test "${ac_cv_func_fork_works+set}" = set; then :
15641 $as_echo_n "(cached) " >&6
15643 if test "$cross_compiling" = yes; then :
15644 ac_cv_func_fork_works=cross
15646 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15647 /* end confdefs.h. */
15648 $ac_includes_default
15653 /* By Ruediger Kuhlmann. */
15654 return fork () < 0;
15660 if ac_fn_c_try_run "$LINENO"; then :
15661 ac_cv_func_fork_works=yes
15663 ac_cv_func_fork_works=no
15665 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
15666 conftest.$ac_objext conftest.beam conftest.$ac_ext
15670 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_fork_works" >&5
15671 $as_echo "$ac_cv_func_fork_works" >&6; }
15674 ac_cv_func_fork_works=$ac_cv_func_fork
15676 if test "x$ac_cv_func_fork_works" = xcross; then
15678 *-*-amigaos* | *-*-msdosdjgpp*)
15679 # Override, as these systems have only a dummy fork() stub
15680 ac_cv_func_fork_works=no
15683 ac_cv_func_fork_works=yes
15686 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: result $ac_cv_func_fork_works guessed because of cross compilation" >&5
15687 $as_echo "$as_me: WARNING: result $ac_cv_func_fork_works guessed because of cross compilation" >&2;}
15689 ac_cv_func_vfork_works=$ac_cv_func_vfork
15690 if test "x$ac_cv_func_vfork" = xyes; then
15691 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working vfork" >&5
15692 $as_echo_n "checking for working vfork... " >&6; }
15693 if test "${ac_cv_func_vfork_works+set}" = set; then :
15694 $as_echo_n "(cached) " >&6
15696 if test "$cross_compiling" = yes; then :
15697 ac_cv_func_vfork_works=cross
15699 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15700 /* end confdefs.h. */
15701 /* Thanks to Paul Eggert for this test. */
15702 $ac_includes_default
15703 #include <sys/wait.h>
15704 #ifdef HAVE_VFORK_H
15705 # include <vfork.h>
15707 /* On some sparc systems, changes by the child to local and incoming
15708 argument registers are propagated back to the parent. The compiler
15709 is told about this with #include <vfork.h>, but some compilers
15710 (e.g. gcc -O) don't grok <vfork.h>. Test for this by using a
15711 static variable whose address is put into a register that is
15712 clobbered by the vfork. */
15715 sparc_address_test (int arg)
15717 sparc_address_test (arg) int arg;
15720 static pid_t child;
15738 pid_t parent = getpid ();
15741 sparc_address_test (0);
15746 /* Here is another test for sparc vfork register problems. This
15747 test uses lots of local variables, at least as many local
15748 variables as main has allocated so far including compiler
15749 temporaries. 4 locals are enough for gcc 1.40.3 on a Solaris
15750 4.1.3 sparc, but we use 8 to be safe. A buggy compiler should
15751 reuse the register of parent for one of the local variables,
15752 since it will think that parent can't possibly be used any more
15753 in this routine. Assigning to the local variable will thus
15754 munge parent in the parent process. */
15756 p = getpid(), p1 = getpid(), p2 = getpid(), p3 = getpid(),
15757 p4 = getpid(), p5 = getpid(), p6 = getpid(), p7 = getpid();
15758 /* Convince the compiler that p..p7 are live; otherwise, it might
15759 use the same hardware register for all 8 local variables. */
15760 if (p != p1 || p != p2 || p != p3 || p != p4
15761 || p != p5 || p != p6 || p != p7)
15764 /* On some systems (e.g. IRIX 3.3), vfork doesn't separate parent
15765 from child file descriptors. If the child closes a descriptor
15766 before it execs or exits, this munges the parent's descriptor
15767 as well. Test for this by closing stdout in the child. */
15768 _exit(close(fileno(stdout)) != 0);
15773 while (wait(&status) != child)
15776 /* Was there some problem with vforking? */
15779 /* Did the child fail? (This shouldn't happen.) */
15782 /* Did the vfork/compiler bug occur? */
15783 || parent != getpid()
15785 /* Did the file descriptor bug occur? */
15786 || fstat(fileno(stdout), &st) != 0
15791 if ac_fn_c_try_run "$LINENO"; then :
15792 ac_cv_func_vfork_works=yes
15794 ac_cv_func_vfork_works=no
15796 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
15797 conftest.$ac_objext conftest.beam conftest.$ac_ext
15801 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_vfork_works" >&5
15802 $as_echo "$ac_cv_func_vfork_works" >&6; }
15805 if test "x$ac_cv_func_fork_works" = xcross; then
15806 ac_cv_func_vfork_works=$ac_cv_func_vfork
15807 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: result $ac_cv_func_vfork_works guessed because of cross compilation" >&5
15808 $as_echo "$as_me: WARNING: result $ac_cv_func_vfork_works guessed because of cross compilation" >&2;}
15811 if test "x$ac_cv_func_vfork_works" = xyes; then
15813 $as_echo "#define HAVE_WORKING_VFORK 1" >>confdefs.h
15817 $as_echo "#define vfork fork" >>confdefs.h
15820 if test "x$ac_cv_func_fork_works" = xyes; then
15822 $as_echo "#define HAVE_WORKING_FORK 1" >>confdefs.h
15827 for ac_func in snprintf
15829 ac_fn_c_check_func "$LINENO" "snprintf" "ac_cv_func_snprintf"
15830 if test "x$ac_cv_func_snprintf" = x""yes; then :
15831 cat >>confdefs.h <<_ACEOF
15832 #define HAVE_SNPRINTF 1
15839 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for nl_langinfo and CODESET" >&5
15840 $as_echo_n "checking for nl_langinfo and CODESET... " >&6; }
15841 if test "${emacs_cv_langinfo_codeset+set}" = set; then :
15842 $as_echo_n "(cached) " >&6
15844 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15845 /* end confdefs.h. */
15846 #include <langinfo.h>
15850 char* cs = nl_langinfo(CODESET);
15855 if ac_fn_c_try_link "$LINENO"; then :
15856 emacs_cv_langinfo_codeset=yes
15858 emacs_cv_langinfo_codeset=no
15860 rm -f core conftest.err conftest.$ac_objext \
15861 conftest$ac_exeext conftest.$ac_ext
15864 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $emacs_cv_langinfo_codeset" >&5
15865 $as_echo "$emacs_cv_langinfo_codeset" >&6; }
15866 if test $emacs_cv_langinfo_codeset = yes; then
15868 $as_echo "#define HAVE_LANGINFO_CODESET 1" >>confdefs.h
15872 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for mbstate_t" >&5
15873 $as_echo_n "checking for mbstate_t... " >&6; }
15874 if test "${ac_cv_type_mbstate_t+set}" = set; then :
15875 $as_echo_n "(cached) " >&6
15877 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15878 /* end confdefs.h. */
15879 $ac_includes_default
15880 # include <wchar.h>
15884 mbstate_t x; return sizeof x;
15889 if ac_fn_c_try_compile "$LINENO"; then :
15890 ac_cv_type_mbstate_t=yes
15892 ac_cv_type_mbstate_t=no
15894 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15896 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_mbstate_t" >&5
15897 $as_echo "$ac_cv_type_mbstate_t" >&6; }
15898 if test $ac_cv_type_mbstate_t = yes; then
15900 $as_echo "#define HAVE_MBSTATE_T 1" >>confdefs.h
15904 $as_echo "#define mbstate_t int" >>confdefs.h
15908 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for C restricted array declarations" >&5
15909 $as_echo_n "checking for C restricted array declarations... " >&6; }
15910 if test "${emacs_cv_c_restrict_arr+set}" = set; then :
15911 $as_echo_n "(cached) " >&6
15913 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15914 /* end confdefs.h. */
15915 void fred (int x[__restrict]);
15924 if ac_fn_c_try_compile "$LINENO"; then :
15925 emacs_cv_c_restrict_arr=yes
15927 emacs_cv_c_restrict_arr=no
15929 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15931 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $emacs_cv_c_restrict_arr" >&5
15932 $as_echo "$emacs_cv_c_restrict_arr" >&6; }
15933 if test "$emacs_cv_c_restrict_arr" = yes; then
15935 $as_echo "#define __restrict_arr __restrict" >>confdefs.h
15940 # Set up the CFLAGS for real compilation, so we can substitute it.
15941 CFLAGS="$REAL_CFLAGS"
15942 CPPFLAGS="$REAL_CPPFLAGS"
15944 ## Hack to detect a buggy GCC version.
15945 if test "x$GCC" = xyes \
15946 && test x"`$CC --version 2> /dev/null | grep 'gcc.* 4.5.0'`" != x \
15947 && test x"`echo $CFLAGS | grep '\-O[23]'`" != x \
15948 && test x"`echo $CFLAGS | grep '\-fno-optimize-sibling-calls'`" = x; then
15949 as_fn_error "GCC 4.5.0 has problems compiling Emacs; see etc/PROBLEMS'." "$LINENO" 5
15952 version=$PACKAGE_VERSION
15954 ### Specify what sort of things we'll be editing into Makefile and config.h.
15955 ### Use configuration here uncanonicalized to avoid exceeding size limits.
15979 ## FIXME? Nothing uses @LD_SWITCH_X_SITE@.
15980 ## src/Makefile.in did add LD_SWITCH_X_SITE (as a cpp define) to the
15981 ## end of LIBX_BASE, but nothing ever set it.
15986 ## Used in lwlib/Makefile.in.
15988 if test -n "${machfile}"; then
15989 M_FILE="\$(srcdir)/${machfile}"
15993 S_FILE="\$(srcdir)/${opsysfile}"
16004 cat >>confdefs.h <<_ACEOF
16005 #define EMACS_CONFIGURATION "${canonical}"
16009 cat >>confdefs.h <<_ACEOF
16010 #define EMACS_CONFIG_OPTIONS "${ac_configure_args}"
16013 if test -n "$machfile"; then
16015 cat >>confdefs.h <<_ACEOF
16016 #define config_machfile "${machfile}"
16021 cat >>confdefs.h <<_ACEOF
16022 #define config_opsysfile "${opsysfile}"
16029 if test "${HAVE_X_WINDOWS}" = "yes" ; then
16031 $as_echo "#define HAVE_X_WINDOWS 1" >>confdefs.h
16034 XOBJ="xterm.o xfns.o xselect.o xrdb.o fontset.o xsmfns.o fringe.o image.o xsettings.o xgselect.o"
16036 if test "$HAVE_XFT" = "yes"; then
16037 FONT_OBJ="$FONT_OBJ ftfont.o xftfont.o ftxfont.o"
16038 elif test "$HAVE_FREETYPE" = "yes"; then
16039 FONT_OBJ="$FONT_OBJ ftfont.o ftxfont.o"
16049 if test "${USE_X_TOOLKIT}" != "none" ; then
16050 WIDGET_OBJ=widget.o
16052 $as_echo "#define USE_X_TOOLKIT 1" >>confdefs.h
16054 if test "${USE_X_TOOLKIT}" = "LUCID"; then
16056 $as_echo "#define USE_LUCID 1" >>confdefs.h
16058 elif test "${USE_X_TOOLKIT}" = "MOTIF"; then
16060 $as_echo "#define USE_MOTIF 1" >>confdefs.h
16065 ## Paul Abrahams <abrahams at equinox.shaysnet.com> says this is needed.
16066 MOTIF_LIBW="$MOTIF_LIBW -lXpm"
16070 ## Richard Anthony Ryan <ryanr at ellingtn.ftc.nrcs.usda.gov>
16071 ## says -lXimp is needed in UNIX_SV ... 4.2 1.1.2.
16072 MOTIF_LIBW="MOTIF_LIBW -lXimp"
16076 ## olson@mcs.anl.gov says -li18n is needed by -lXm.
16077 MOTIF_LIBW="$MOTIF_LIBW -li18n"
16080 MOTIF_LIBW="$MOTIF_LIBW $LIBXP"
16086 case "$USE_X_TOOLKIT" in
16087 MOTIF) TOOLKIT_LIBW="$MOTIF_LIBW" ;;
16088 LUCID) TOOLKIT_LIBW="$LUCID_LIBW" ;;
16089 none) test "x$HAVE_GTK" = "xyes" && TOOLKIT_LIBW="$GTK_LIBS" ;;
16093 if test "$USE_X_TOOLKIT" = "none"; then
16094 LIBXT_OTHER="\$(LIBXSM)"
16095 OLDXMENU_TARGET="really-oldXMenu"
16097 LIBXT_OTHER="\$(LIBXMU) -lXt \$(LIBXTR6) -lXext"
16098 OLDXMENU_TARGET="really-lwlib"
16102 ## The X Menu stuff is present in the X10 distribution, but missing
16103 ## from X11. If we have X10, just use the installed library;
16104 ## otherwise, use our own copy.
16105 if test "${HAVE_X11}" = "yes" ; then
16107 $as_echo "#define HAVE_X11 1" >>confdefs.h
16110 if test "$USE_X_TOOLKIT" = "none"; then
16111 OLDXMENU="\${oldXMenudir}/libXMenu11.a"
16113 OLDXMENU="\${lwlibdir}/liblw.a"
16115 LIBXMENU="\$(OLDXMENU)"
16116 LIBX_OTHER="\$(LIBXT) \$(LIBX_EXTRA)"
16117 OLDXMENU_DEPS="\${OLDXMENU} ../src/\${OLDXMENU}"
16119 ## For a syntactically valid Makefile; not actually used for anything.
16120 ## See comments in src/Makefile.in.
16122 ## FIXME This case (!HAVE_X11 && HAVE_X_WINDOWS) is no longer possible(?).
16123 if test "${HAVE_X_WINDOWS}" = "yes"; then
16132 if test "$HAVE_GTK" = "yes" || test "$HAVE_MENUS" != "yes"; then
16145 if test "${HAVE_MENUS}" = "yes" ; then
16147 $as_echo "#define HAVE_MENUS 1" >>confdefs.h
16151 if test "${GNU_MALLOC}" = "yes" ; then
16153 $as_echo "#define GNU_MALLOC 1" >>confdefs.h
16158 if test "${REL_ALLOC}" = "yes" ; then
16160 $as_echo "#define REL_ALLOC 1" >>confdefs.h
16163 test "$system_malloc" != "yes" && RALLOC_OBJ=ralloc.o
16167 if test "$opsys" = "cygwin"; then
16168 CYGWIN_OBJ="sheap.o"
16169 ## Cygwin differs because of its unexec().
16171 POST_ALLOC_OBJ=lastfile.o
16174 PRE_ALLOC_OBJ=lastfile.o
16181 # Configure gnulib here, now that we know LIBS.
16182 >>>>>>> MERGE-SOURCE
16194 LIBC_FATAL_STDERR_=1
16195 export LIBC_FATAL_STDERR_
16197 # The Ultrix 4.2 mips builtin alloca declared by alloca.h only works
16198 # for constant arguments. Useless!
16199 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working alloca.h" >&5
16200 $as_echo_n "checking for working alloca.h... " >&6; }
16201 if test "${ac_cv_working_alloca_h+set}" = set; then :
16202 $as_echo_n "(cached) " >&6
16204 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16205 /* end confdefs.h. */
16206 #include <alloca.h>
16210 char *p = (char *) alloca (2 * sizeof (int));
16216 if ac_fn_c_try_link "$LINENO"; then :
16217 ac_cv_working_alloca_h=yes
16219 ac_cv_working_alloca_h=no
16221 rm -f core conftest.err conftest.$ac_objext \
16222 conftest$ac_exeext conftest.$ac_ext
16224 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_working_alloca_h" >&5
16225 $as_echo "$ac_cv_working_alloca_h" >&6; }
16226 if test $ac_cv_working_alloca_h = yes; then
16228 $as_echo "#define HAVE_ALLOCA_H 1" >>confdefs.h
16232 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for alloca" >&5
16233 $as_echo_n "checking for alloca... " >&6; }
16234 if test "${ac_cv_func_alloca_works+set}" = set; then :
16235 $as_echo_n "(cached) " >&6
16237 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16238 /* end confdefs.h. */
16240 # define alloca __builtin_alloca
16243 # include <malloc.h>
16244 # define alloca _alloca
16246 # ifdef HAVE_ALLOCA_H
16247 # include <alloca.h>
16252 # ifndef alloca /* predefined by HP cc +Olibcalls */
16263 char *p = (char *) alloca (1);
16269 if ac_fn_c_try_link "$LINENO"; then :
16270 ac_cv_func_alloca_works=yes
16272 ac_cv_func_alloca_works=no
16274 rm -f core conftest.err conftest.$ac_objext \
16275 conftest$ac_exeext conftest.$ac_ext
16277 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_alloca_works" >&5
16278 $as_echo "$ac_cv_func_alloca_works" >&6; }
16280 if test $ac_cv_func_alloca_works = yes; then
16282 $as_echo "#define HAVE_ALLOCA 1" >>confdefs.h
16285 # The SVR3 libPW and SVR4 libucb both contain incompatible functions
16286 # that cause trouble. Some versions do not even contain alloca or
16287 # contain a buggy version. If you still want to use their alloca,
16288 # use ar to extract alloca.o from them instead of compiling alloca.c.
16294 ALLOCA=\${LIBOBJDIR}alloca.$ac_objext
16296 $as_echo "#define C_ALLOCA 1" >>confdefs.h
16299 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether \`alloca.c' needs Cray hooks" >&5
16300 $as_echo_n "checking whether \`alloca.c' needs Cray hooks... " >&6; }
16301 if test "${ac_cv_os_cray+set}" = set; then :
16302 $as_echo_n "(cached) " >&6
16304 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16305 /* end confdefs.h. */
16306 #if defined CRAY && ! defined CRAY2
16313 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
16314 $EGREP "webecray" >/dev/null 2>&1; then :
16322 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_os_cray" >&5
16323 $as_echo "$ac_cv_os_cray" >&6; }
16324 if test $ac_cv_os_cray = yes; then
16325 for ac_func in _getb67 GETB67 getb67; do
16326 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
16327 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
16328 eval as_val=\$$as_ac_var
16329 if test "x$as_val" = x""yes; then :
16331 cat >>confdefs.h <<_ACEOF
16332 #define CRAY_STACKSEG_END $ac_func
16341 { $as_echo "$as_me:${as_lineno-$LINENO}: checking stack direction for C alloca" >&5
16342 $as_echo_n "checking stack direction for C alloca... " >&6; }
16343 if test "${ac_cv_c_stack_direction+set}" = set; then :
16344 $as_echo_n "(cached) " >&6
16346 if test "$cross_compiling" = yes; then :
16347 ac_cv_c_stack_direction=0
16349 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16350 /* end confdefs.h. */
16351 $ac_includes_default
16353 find_stack_direction (int *addr, int depth)
16355 int dir, dummy = 0;
16358 *addr = addr < &dummy ? 1 : addr == &dummy ? 0 : -1;
16359 dir = depth ? find_stack_direction (addr, depth - 1) : 0;
16360 return dir + dummy;
16364 main (int argc, char **argv)
16366 return find_stack_direction (0, argc + !argv + 20) < 0;
16369 if ac_fn_c_try_run "$LINENO"; then :
16370 ac_cv_c_stack_direction=1
16372 ac_cv_c_stack_direction=-1
16374 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
16375 conftest.$ac_objext conftest.beam conftest.$ac_ext
16379 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_stack_direction" >&5
16380 $as_echo "$ac_cv_c_stack_direction" >&6; }
16381 cat >>confdefs.h <<_ACEOF
16382 #define STACK_DIRECTION $ac_cv_c_stack_direction
16391 for ac_func in $ac_func_list
16393 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
16394 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
16395 eval as_val=\$$as_ac_var
16396 if test "x$as_val" = x""yes; then :
16397 cat >>confdefs.h <<_ACEOF
16398 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
16407 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether byte ordering is bigendian" >&5
16408 $as_echo_n "checking whether byte ordering is bigendian... " >&6; }
16409 if test "${ac_cv_c_bigendian+set}" = set; then :
16410 $as_echo_n "(cached) " >&6
16412 ac_cv_c_bigendian=unknown
16413 # See if we're dealing with a universal compiler.
16414 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16415 /* end confdefs.h. */
16416 #ifndef __APPLE_CC__
16417 not a universal capable compiler
16422 if ac_fn_c_try_compile "$LINENO"; then :
16424 # Check for potential -arch flags. It is not universal unless
16425 # there are at least two -arch flags with different values.
16428 for ac_word in $CC $CFLAGS $CPPFLAGS $LDFLAGS; do
16429 if test -n "$ac_prev"; then
16431 i?86 | x86_64 | ppc | ppc64)
16432 if test -z "$ac_arch" || test "$ac_arch" = "$ac_word"; then
16435 ac_cv_c_bigendian=universal
16441 elif test "x$ac_word" = "x-arch"; then
16446 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16447 if test $ac_cv_c_bigendian = unknown; then
16448 # See if sys/param.h defines the BYTE_ORDER macro.
16449 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16450 /* end confdefs.h. */
16451 #include <sys/types.h>
16452 #include <sys/param.h>
16457 #if ! (defined BYTE_ORDER && defined BIG_ENDIAN \
16458 && defined LITTLE_ENDIAN && BYTE_ORDER && BIG_ENDIAN \
16460 bogus endian macros
16467 if ac_fn_c_try_compile "$LINENO"; then :
16468 # It does; now see whether it defined to BIG_ENDIAN or not.
16469 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16470 /* end confdefs.h. */
16471 #include <sys/types.h>
16472 #include <sys/param.h>
16477 #if BYTE_ORDER != BIG_ENDIAN
16485 if ac_fn_c_try_compile "$LINENO"; then :
16486 ac_cv_c_bigendian=yes
16488 ac_cv_c_bigendian=no
16490 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16492 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16494 if test $ac_cv_c_bigendian = unknown; then
16495 # See if <limits.h> defines _LITTLE_ENDIAN or _BIG_ENDIAN (e.g., Solaris).
16496 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16497 /* end confdefs.h. */
16498 #include <limits.h>
16503 #if ! (defined _LITTLE_ENDIAN || defined _BIG_ENDIAN)
16504 bogus endian macros
16511 if ac_fn_c_try_compile "$LINENO"; then :
16512 # It does; now see whether it defined to _BIG_ENDIAN or not.
16513 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16514 /* end confdefs.h. */
16515 #include <limits.h>
16520 #ifndef _BIG_ENDIAN
16528 if ac_fn_c_try_compile "$LINENO"; then :
16529 ac_cv_c_bigendian=yes
16531 ac_cv_c_bigendian=no
16533 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16535 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16537 if test $ac_cv_c_bigendian = unknown; then
16538 # Compile a test program.
16539 if test "$cross_compiling" = yes; then :
16540 # Try to guess by grepping values from an object file.
16541 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16542 /* end confdefs.h. */
16543 short int ascii_mm[] =
16544 { 0x4249, 0x4765, 0x6E44, 0x6961, 0x6E53, 0x7953, 0 };
16545 short int ascii_ii[] =
16546 { 0x694C, 0x5454, 0x656C, 0x6E45, 0x6944, 0x6E61, 0 };
16547 int use_ascii (int i) {
16548 return ascii_mm[i] + ascii_ii[i];
16550 short int ebcdic_ii[] =
16551 { 0x89D3, 0xE3E3, 0x8593, 0x95C5, 0x89C4, 0x9581, 0 };
16552 short int ebcdic_mm[] =
16553 { 0xC2C9, 0xC785, 0x95C4, 0x8981, 0x95E2, 0xA8E2, 0 };
16554 int use_ebcdic (int i) {
16555 return ebcdic_mm[i] + ebcdic_ii[i];
16562 return use_ascii (foo) == use_ebcdic (foo);
16567 if ac_fn_c_try_compile "$LINENO"; then :
16568 if grep BIGenDianSyS conftest.$ac_objext >/dev/null; then
16569 ac_cv_c_bigendian=yes
16571 if grep LiTTleEnDian conftest.$ac_objext >/dev/null ; then
16572 if test "$ac_cv_c_bigendian" = unknown; then
16573 ac_cv_c_bigendian=no
16575 # finding both strings is unlikely to happen, but who knows?
16576 ac_cv_c_bigendian=unknown
16580 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16582 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16583 /* end confdefs.h. */
16584 $ac_includes_default
16589 /* Are we little or big endian? From Harbison&Steele. */
16593 char c[sizeof (long int)];
16596 return u.c[sizeof (long int) - 1] == 1;
16602 if ac_fn_c_try_run "$LINENO"; then :
16603 ac_cv_c_bigendian=no
16605 ac_cv_c_bigendian=yes
16607 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
16608 conftest.$ac_objext conftest.beam conftest.$ac_ext
16613 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_bigendian" >&5
16614 $as_echo "$ac_cv_c_bigendian" >&6; }
16615 case $ac_cv_c_bigendian in #(
16617 $as_echo "#define WORDS_BIGENDIAN 1" >>confdefs.h
16623 $as_echo "#define AC_APPLE_UNIVERSAL_BUILD 1" >>confdefs.h
16627 as_fn_error "unknown endianness
16628 presetting ac_cv_c_bigendian=no (or yes) will help" "$LINENO" 5 ;;
16632 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for inline" >&5
16633 $as_echo_n "checking for inline... " >&6; }
16634 if test "${ac_cv_c_inline+set}" = set; then :
16635 $as_echo_n "(cached) " >&6
16638 for ac_kw in inline __inline__ __inline; do
16639 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16640 /* end confdefs.h. */
16641 #ifndef __cplusplus
16643 static $ac_kw foo_t static_foo () {return 0; }
16644 $ac_kw foo_t foo () {return 0; }
16648 if ac_fn_c_try_compile "$LINENO"; then :
16649 ac_cv_c_inline=$ac_kw
16651 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16652 test "$ac_cv_c_inline" != no && break
16656 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_inline" >&5
16657 $as_echo "$ac_cv_c_inline" >&6; }
16659 case $ac_cv_c_inline in
16662 case $ac_cv_c_inline in
16664 *) ac_val=$ac_cv_c_inline;;
16666 cat >>confdefs.h <<_ACEOF
16667 #ifndef __cplusplus
16668 #define inline $ac_val
16675 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether strtold conforms to C99" >&5
16676 $as_echo_n "checking whether strtold conforms to C99... " >&6; }
16677 if test "${gl_cv_func_c99_strtold+set}" = set; then :
16678 $as_echo_n "(cached) " >&6
16680 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16681 /* end confdefs.h. */
16682 /* On HP-UX before 11.23, strtold returns a struct instead of
16683 long double. Reject implementations like that, by requiring
16684 compatibility with the C99 prototype. */
16685 #include <stdlib.h>
16686 static long double (*p) (char const *, char **) = strtold;
16688 test (char const *nptr, char **endptr)
16691 r = strtold (nptr, endptr);
16697 return test ("1.0", NULL) != 1 || p ("1.0", NULL) != 1;
16702 if ac_fn_c_try_link "$LINENO"; then :
16703 gl_cv_func_c99_strtold=yes
16705 gl_cv_func_c99_strtold=no
16707 rm -f core conftest.err conftest.$ac_objext \
16708 conftest$ac_exeext conftest.$ac_ext
16710 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_c99_strtold" >&5
16711 $as_echo "$gl_cv_func_c99_strtold" >&6; }
16712 if test $gl_cv_func_c99_strtold = yes; then
16714 $as_echo "#define HAVE_C99_STRTOLD 1" >>confdefs.h
16724 GNULIB_EUIDACCESS=0;
16725 GNULIB_FACCESSAT=0;
16729 GNULIB_FTRUNCATE=0;
16731 GNULIB_GETDOMAINNAME=0;
16732 GNULIB_GETDTABLESIZE=0;
16733 GNULIB_GETGROUPS=0;
16734 GNULIB_GETHOSTNAME=0;
16736 GNULIB_GETLOGIN_R=0;
16737 GNULIB_GETPAGESIZE=0;
16738 GNULIB_GETUSERSHELL=0;
16739 GNULIB_GROUP_MEMBER=0;
16750 GNULIB_READLINKAT=0;
16754 GNULIB_SYMLINKAT=0;
16755 GNULIB_TTYNAME_R=0;
16756 GNULIB_UNISTD_H_GETOPT=0;
16757 GNULIB_UNISTD_H_NONBLOCKING=0;
16758 GNULIB_UNISTD_H_SIGPIPE=0;
16772 HAVE_GETDTABLESIZE=1;
16774 HAVE_GETHOSTNAME=1;
16776 HAVE_GETPAGESIZE=1;
16777 HAVE_GROUP_MEMBER=1;
16792 HAVE_DECL_ENVIRON=1;
16793 HAVE_DECL_FCHDIR=1;
16794 HAVE_DECL_GETDOMAINNAME=1;
16795 HAVE_DECL_GETLOGIN_R=1;
16796 HAVE_DECL_GETPAGESIZE=1;
16797 HAVE_DECL_GETUSERSHELL=1;
16798 HAVE_DECL_TTYNAME_R=1;
16800 HAVE_SYS_PARAM_H=0;
16805 REPLACE_FCHOWNAT=0;
16807 REPLACE_GETDOMAINNAME=0;
16808 REPLACE_GETLOGIN_R=0;
16809 REPLACE_GETGROUPS=0;
16810 REPLACE_GETPAGESIZE=0;
16818 REPLACE_READLINK=0;
16822 REPLACE_TTYNAME_R=0;
16824 REPLACE_UNLINKAT=0;
16827 UNISTD_H_HAVE_WINSOCK2_H=0;
16828 UNISTD_H_HAVE_WINSOCK2_H_AND_USE_SOCKETS=0;
16831 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for st_dm_mode in struct stat" >&5
16832 $as_echo_n "checking for st_dm_mode in struct stat... " >&6; }
16833 if test "${ac_cv_struct_st_dm_mode+set}" = set; then :
16834 $as_echo_n "(cached) " >&6
16836 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16837 /* end confdefs.h. */
16839 #include <sys/types.h>
16840 #include <sys/stat.h>
16844 struct stat s; s.st_dm_mode;
16849 if ac_fn_c_try_compile "$LINENO"; then :
16850 ac_cv_struct_st_dm_mode=yes
16852 ac_cv_struct_st_dm_mode=no
16854 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16856 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_struct_st_dm_mode" >&5
16857 $as_echo "$ac_cv_struct_st_dm_mode" >&6; }
16859 if test $ac_cv_struct_st_dm_mode = yes; then
16861 $as_echo "#define HAVE_ST_DM_MODE 1" >>confdefs.h
16866 ac_fn_c_check_decl "$LINENO" "strmode" "ac_cv_have_decl_strmode" "$ac_includes_default"
16867 if test "x$ac_cv_have_decl_strmode" = x""yes; then :
16873 cat >>confdefs.h <<_ACEOF
16874 #define HAVE_DECL_STRMODE $ac_have_decl
16880 GNULIB_CALLOC_POSIX=0;
16881 GNULIB_CANONICALIZE_FILE_NAME=0;
16882 GNULIB_GETLOADAVG=0;
16883 GNULIB_GETSUBOPT=0;
16885 GNULIB_MALLOC_POSIX=0;
16889 GNULIB_MKOSTEMPS=0;
16895 GNULIB_REALLOC_POSIX=0;
16902 GNULIB_SYSTEM_POSIX=0;
16908 HAVE_CANONICALIZE_FILE_NAME=1;
16909 HAVE_DECL_GETLOADAVG=1;
16923 HAVE_DECL_SETENV=1;
16927 HAVE_STRUCT_RANDOM_DATA=1;
16928 HAVE_SYS_LOADAVG_H=0;
16930 HAVE_DECL_UNSETENV=1;
16932 REPLACE_CANONICALIZE_FILE_NAME=0;
16938 REPLACE_REALPATH=0;
16941 REPLACE_UNSETENV=0;
16946 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the preprocessor supports include_next" >&5
16947 $as_echo_n "checking whether the preprocessor supports include_next... " >&6; }
16948 if test "${gl_cv_have_include_next+set}" = set; then :
16949 $as_echo_n "(cached) " >&6
16951 rm -rf conftestd1a conftestd1b conftestd2
16952 mkdir conftestd1a conftestd1b conftestd2
16953 cat <<EOF > conftestd1a/conftest.h
16954 #define DEFINED_IN_CONFTESTD1
16955 #include_next <conftest.h>
16956 #ifdef DEFINED_IN_CONFTESTD2
16959 #error "include_next doesn't work"
16962 cat <<EOF > conftestd1b/conftest.h
16963 #define DEFINED_IN_CONFTESTD1
16965 #include_next <conftest.h>
16966 #ifdef DEFINED_IN_CONFTESTD2
16969 #error "include_next doesn't work"
16972 cat <<EOF > conftestd2/conftest.h
16973 #ifndef DEFINED_IN_CONFTESTD1
16974 #error "include_next test doesn't work"
16976 #define DEFINED_IN_CONFTESTD2
16978 gl_save_CPPFLAGS="$CPPFLAGS"
16979 CPPFLAGS="$gl_save_CPPFLAGS -Iconftestd1b -Iconftestd2"
16980 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16981 /* end confdefs.h. */
16982 #include <conftest.h>
16984 if ac_fn_c_try_compile "$LINENO"; then :
16985 gl_cv_have_include_next=yes
16987 CPPFLAGS="$gl_save_CPPFLAGS -Iconftestd1a -Iconftestd2"
16988 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16989 /* end confdefs.h. */
16990 #include <conftest.h>
16992 if ac_fn_c_try_compile "$LINENO"; then :
16993 gl_cv_have_include_next=buggy
16995 gl_cv_have_include_next=no
16997 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17000 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17001 CPPFLAGS="$gl_save_CPPFLAGS"
17002 rm -rf conftestd1a conftestd1b conftestd2
17005 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_have_include_next" >&5
17006 $as_echo "$gl_cv_have_include_next" >&6; }
17007 PRAGMA_SYSTEM_HEADER=
17008 if test $gl_cv_have_include_next = yes; then
17009 INCLUDE_NEXT=include_next
17010 INCLUDE_NEXT_AS_FIRST_DIRECTIVE=include_next
17011 if test -n "$GCC"; then
17012 PRAGMA_SYSTEM_HEADER='#pragma GCC system_header'
17015 if test $gl_cv_have_include_next = buggy; then
17016 INCLUDE_NEXT=include
17017 INCLUDE_NEXT_AS_FIRST_DIRECTIVE=include_next
17019 INCLUDE_NEXT=include
17020 INCLUDE_NEXT_AS_FIRST_DIRECTIVE=include
17026 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether system header files limit the line length" >&5
17027 $as_echo_n "checking whether system header files limit the line length... " >&6; }
17028 if test "${gl_cv_pragma_columns+set}" = set; then :
17029 $as_echo_n "(cached) " >&6
17031 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17032 /* end confdefs.h. */
17039 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
17040 $EGREP "choke me" >/dev/null 2>&1; then :
17041 gl_cv_pragma_columns=yes
17043 gl_cv_pragma_columns=no
17049 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_pragma_columns" >&5
17050 $as_echo "$gl_cv_pragma_columns" >&6; }
17051 if test $gl_cv_pragma_columns = yes; then
17052 PRAGMA_COLUMNS="#pragma COLUMNS 10000"
17073 if test $gl_cv_have_include_next = yes; then
17074 gl_cv_next_getopt_h='<'getopt.h'>'
17076 { $as_echo "$as_me:${as_lineno-$LINENO}: checking absolute name of <getopt.h>" >&5
17077 $as_echo_n "checking absolute name of <getopt.h>... " >&6; }
17078 if test "${gl_cv_next_getopt_h+set}" = set; then :
17079 $as_echo_n "(cached) " >&6
17082 if test $ac_cv_header_getopt_h = yes; then
17085 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17086 /* end confdefs.h. */
17087 #include <getopt.h>
17091 aix*) gl_absname_cpp="$ac_cpp -C" ;;
17092 *) gl_absname_cpp="$ac_cpp" ;;
17094 gl_cv_next_getopt_h='"'`(eval "$gl_absname_cpp conftest.$ac_ext") 2>&5 |
17095 sed -n '\#/getopt.h#{
17096 s#.*"\(.*/getopt.h\)".*#\1#
17102 gl_cv_next_getopt_h='<'getopt.h'>'
17107 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_next_getopt_h" >&5
17108 $as_echo "$gl_cv_next_getopt_h" >&6; }
17110 NEXT_GETOPT_H=$gl_cv_next_getopt_h
17112 if test $gl_cv_have_include_next = yes || test $gl_cv_have_include_next = buggy; then
17113 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include_next'
17114 gl_next_as_first_directive='<'getopt.h'>'
17116 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include'
17117 gl_next_as_first_directive=$gl_cv_next_getopt_h
17119 NEXT_AS_FIRST_DIRECTIVE_GETOPT_H=$gl_next_as_first_directive
17124 if test $ac_cv_header_getopt_h = yes; then
17133 if test -z "$gl_replace_getopt" && test $gl_getopt_required = GNU; then
17134 for ac_header in getopt.h
17136 ac_fn_c_check_header_mongrel "$LINENO" "getopt.h" "ac_cv_header_getopt_h" "$ac_includes_default"
17137 if test "x$ac_cv_header_getopt_h" = x""yes; then :
17138 cat >>confdefs.h <<_ACEOF
17139 #define HAVE_GETOPT_H 1
17143 gl_replace_getopt=yes
17150 if test -z "$gl_replace_getopt" && test $gl_getopt_required = GNU; then
17151 for ac_func in getopt_long_only
17153 ac_fn_c_check_func "$LINENO" "getopt_long_only" "ac_cv_func_getopt_long_only"
17154 if test "x$ac_cv_func_getopt_long_only" = x""yes; then :
17155 cat >>confdefs.h <<_ACEOF
17156 #define HAVE_GETOPT_LONG_ONLY 1
17160 gl_replace_getopt=yes
17166 if test -z "$gl_replace_getopt"; then
17167 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether getopt is POSIX compatible" >&5
17168 $as_echo_n "checking whether getopt is POSIX compatible... " >&6; }
17169 if test "${gl_cv_func_getopt_posix+set}" = set; then :
17170 $as_echo_n "(cached) " >&6
17173 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17174 /* end confdefs.h. */
17175 #include <unistd.h>
17179 int *p = &optreset; return optreset;
17184 if ac_fn_c_try_compile "$LINENO"; then :
17187 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17188 /* end confdefs.h. */
17189 #include <getopt.h>
17193 return !getopt_clip;
17198 if ac_fn_c_try_compile "$LINENO"; then :
17203 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17205 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17207 gl_save_CPPFLAGS=$CPPFLAGS
17208 CPPFLAGS="$CPPFLAGS -DOPTIND_MIN=$gl_optind_min"
17209 if test "$cross_compiling" = yes; then :
17211 mingw*) gl_cv_func_getopt_posix="guessing no";;
17212 darwin* | aix*) gl_cv_func_getopt_posix="guessing no";;
17213 *) gl_cv_func_getopt_posix="guessing yes";;
17217 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17218 /* end confdefs.h. */
17220 #include <unistd.h>
17221 #include <stdlib.h>
17222 #include <string.h>
17232 argv[argc++] = "program";
17233 argv[argc++] = "-a";
17234 argv[argc++] = "foo";
17235 argv[argc++] = "bar";
17237 optind = OPTIND_MIN;
17240 c = getopt (argc, argv, "ab");
17243 c = getopt (argc, argv, "ab");
17246 if (!(optind == 2))
17249 /* Some internal state exists at this point. */
17255 argv[argc++] = "program";
17256 argv[argc++] = "donald";
17257 argv[argc++] = "-p";
17258 argv[argc++] = "billy";
17259 argv[argc++] = "duck";
17260 argv[argc++] = "-a";
17261 argv[argc++] = "bar";
17263 optind = OPTIND_MIN;
17266 c = getopt (argc, argv, "+abp:q:");
17269 if (!(strcmp (argv[0], "program") == 0))
17271 if (!(strcmp (argv[1], "donald") == 0))
17273 if (!(strcmp (argv[2], "-p") == 0))
17275 if (!(strcmp (argv[3], "billy") == 0))
17277 if (!(strcmp (argv[4], "duck") == 0))
17279 if (!(strcmp (argv[5], "-a") == 0))
17281 if (!(strcmp (argv[6], "bar") == 0))
17283 if (!(optind == 1))
17286 /* Detect MacOS 10.5, AIX 7.1 bug. */
17288 char *argv[3] = { "program", "-ab", NULL };
17289 optind = OPTIND_MIN;
17291 if (getopt (2, argv, "ab:") != 'a')
17293 if (getopt (2, argv, "ab:") != '?')
17305 if ac_fn_c_try_run "$LINENO"; then :
17306 gl_cv_func_getopt_posix=yes
17308 gl_cv_func_getopt_posix=no
17310 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
17311 conftest.$ac_objext conftest.beam conftest.$ac_ext
17314 CPPFLAGS=$gl_save_CPPFLAGS
17317 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_getopt_posix" >&5
17318 $as_echo "$gl_cv_func_getopt_posix" >&6; }
17319 case "$gl_cv_func_getopt_posix" in
17320 *no) gl_replace_getopt=yes ;;
17324 if test -z "$gl_replace_getopt" && test $gl_getopt_required = GNU; then
17325 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working GNU getopt function" >&5
17326 $as_echo_n "checking for working GNU getopt function... " >&6; }
17327 if test "${gl_cv_func_getopt_gnu+set}" = set; then :
17328 $as_echo_n "(cached) " >&6
17330 # Even with POSIXLY_CORRECT, the GNU extension of leading '-' in the
17331 # optstring is necessary for programs like m4 that have POSIX-mandated
17332 # semantics for supporting options interspersed with files.
17333 # Also, since getopt_long is a GNU extension, we require optind=0.
17334 # Bash ties 'set -o posix' to a non-exported POSIXLY_CORRECT;
17335 # so take care to revert to the correct (non-)export state.
17336 gl_awk_probe='BEGIN { if ("POSIXLY_CORRECT" in ENVIRON) print "x" }'
17337 case ${POSIXLY_CORRECT+x}`$AWK "$gl_awk_probe" </dev/null` in
17338 xx) gl_had_POSIXLY_CORRECT=exported ;;
17339 x) gl_had_POSIXLY_CORRECT=yes ;;
17340 *) gl_had_POSIXLY_CORRECT= ;;
17343 export POSIXLY_CORRECT
17344 if test "$cross_compiling" = yes; then :
17345 case $host_os:$ac_cv_have_decl_optreset in
17346 *-gnu*:* | mingw*:*) gl_cv_func_getopt_gnu=no;;
17347 *:yes) gl_cv_func_getopt_gnu=no;;
17348 *) gl_cv_func_getopt_gnu=yes;;
17352 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17353 /* end confdefs.h. */
17354 #include <getopt.h>
17355 #include <stddef.h>
17356 #include <string.h>
17358 #include <stdlib.h>
17359 #if defined __MACH__ && defined __APPLE__
17360 /* Avoid a crash on MacOS X. */
17361 #include <mach/mach.h>
17362 #include <mach/mach_error.h>
17363 #include <mach/thread_status.h>
17364 #include <mach/exception.h>
17365 #include <mach/task.h>
17366 #include <pthread.h>
17367 /* The exception port on which our thread listens. */
17368 static mach_port_t our_exception_port;
17369 /* The main function of the thread listening for exceptions of type
17372 mach_exception_thread (void *arg)
17374 /* Buffer for a message to be received. */
17376 mach_msg_header_t head;
17377 mach_msg_body_t msgh_body;
17380 mach_msg_return_t retval;
17381 /* Wait for a message on the exception port. */
17382 retval = mach_msg (&msg.head, MACH_RCV_MSG | MACH_RCV_LARGE, 0, sizeof (msg),
17383 our_exception_port, MACH_MSG_TIMEOUT_NONE, MACH_PORT_NULL);
17384 if (retval != MACH_MSG_SUCCESS)
17389 nocrash_init (void)
17391 mach_port_t self = mach_task_self ();
17392 /* Allocate a port on which the thread shall listen for exceptions. */
17393 if (mach_port_allocate (self, MACH_PORT_RIGHT_RECEIVE, &our_exception_port)
17395 /* See http://web.mit.edu/darwin/src/modules/xnu/osfmk/man/mach_port_insert_right.html. */
17396 if (mach_port_insert_right (self, our_exception_port, our_exception_port,
17397 MACH_MSG_TYPE_MAKE_SEND)
17399 /* The exceptions we want to catch. Only EXC_BAD_ACCESS is interesting
17401 exception_mask_t mask = EXC_MASK_BAD_ACCESS;
17402 /* Create the thread listening on the exception port. */
17403 pthread_attr_t attr;
17405 if (pthread_attr_init (&attr) == 0
17406 && pthread_attr_setdetachstate (&attr, PTHREAD_CREATE_DETACHED) == 0
17407 && pthread_create (&thread, &attr, mach_exception_thread, NULL) == 0) {
17408 pthread_attr_destroy (&attr);
17409 /* Replace the exception port info for these exceptions with our own.
17410 Note that we replace the exception port for the entire task, not only
17411 for a particular thread. This has the effect that when our exception
17412 port gets the message, the thread specific exception port has already
17413 been asked, and we don't need to bother about it.
17414 See http://web.mit.edu/darwin/src/modules/xnu/osfmk/man/task_set_exception_ports.html. */
17415 task_set_exception_ports (self, mask, our_exception_port,
17416 EXCEPTION_DEFAULT, MACHINE_THREAD_STATE);
17422 /* Avoid a crash on POSIX systems. */
17423 #include <signal.h>
17424 /* A POSIX signal handler. */
17426 exception_handler (int sig)
17431 nocrash_init (void)
17434 signal (SIGSEGV, exception_handler);
17437 signal (SIGBUS, exception_handler);
17451 /* This code succeeds on glibc 2.8, OpenBSD 4.0, Cygwin, mingw,
17452 and fails on MacOS X 10.5, AIX 5.2, HP-UX 11, IRIX 6.5,
17453 OSF/1 5.1, Solaris 10. */
17456 myargv[0] = "conftest";
17460 if (getopt (2, myargv, "+a") != '?')
17463 /* This code succeeds on glibc 2.8, mingw,
17464 and fails on MacOS X 10.5, OpenBSD 4.0, AIX 5.2, HP-UX 11,
17465 IRIX 6.5, OSF/1 5.1, Solaris 10, Cygwin 1.5.x. */
17467 char *argv[] = { "program", "-p", "foo", "bar", NULL };
17470 if (getopt (4, argv, "p::") != 'p')
17472 else if (optarg != NULL)
17474 else if (getopt (4, argv, "p::") != -1)
17476 else if (optind != 2)
17479 /* This code succeeds on glibc 2.8 and fails on Cygwin 1.7.0. */
17481 char *argv[] = { "program", "foo", "-p", NULL };
17483 if (getopt (3, argv, "-p") != 1)
17485 else if (getopt (3, argv, "-p") != 'p')
17488 /* This code fails on glibc 2.11. */
17490 char *argv[] = { "program", "-b", "-a", NULL };
17491 optind = opterr = 0;
17492 if (getopt (3, argv, "+:a:b") != 'b')
17494 else if (getopt (3, argv, "+:a:b") != ':')
17503 if ac_fn_c_try_run "$LINENO"; then :
17504 gl_cv_func_getopt_gnu=yes
17506 gl_cv_func_getopt_gnu=no
17508 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
17509 conftest.$ac_objext conftest.beam conftest.$ac_ext
17512 case $gl_had_POSIXLY_CORRECT in
17514 yes) { POSIXLY_CORRECT=; unset POSIXLY_CORRECT;}; POSIXLY_CORRECT=1 ;;
17515 *) { POSIXLY_CORRECT=; unset POSIXLY_CORRECT;} ;;
17519 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_getopt_gnu" >&5
17520 $as_echo "$gl_cv_func_getopt_gnu" >&6; }
17521 if test "$gl_cv_func_getopt_gnu" = "no"; then
17522 gl_replace_getopt=yes
17533 if test -n "$gl_replace_getopt"; then :
17540 if test $REPLACE_GETOPT = 1; then
17544 $as_echo "#define __GETOPT_PREFIX rpl_" >>confdefs.h
17548 GNULIB_UNISTD_H_GETOPT=1
17551 ac_fn_c_check_decl "$LINENO" "getenv" "ac_cv_have_decl_getenv" "$ac_includes_default"
17552 if test "x$ac_cv_have_decl_getenv" = x""yes; then :
17558 cat >>confdefs.h <<_ACEOF
17559 #define HAVE_DECL_GETENV $ac_have_decl
17563 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for unsigned long long int" >&5
17564 $as_echo_n "checking for unsigned long long int... " >&6; }
17565 if test "${ac_cv_type_unsigned_long_long_int+set}" = set; then :
17566 $as_echo_n "(cached) " >&6
17568 ac_cv_type_unsigned_long_long_int=yes
17569 if test "x${ac_cv_prog_cc_c99-no}" = xno; then
17570 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17571 /* end confdefs.h. */
17573 /* For now, do not test the preprocessor; as of 2007 there are too many
17574 implementations with broken preprocessors. Perhaps this can
17575 be revisited in 2012. In the meantime, code should not expect
17576 #if to work with literals wider than 32 bits. */
17577 /* Test literals. */
17578 long long int ll = 9223372036854775807ll;
17579 long long int nll = -9223372036854775807LL;
17580 unsigned long long int ull = 18446744073709551615ULL;
17581 /* Test constant expressions. */
17582 typedef int a[((-9223372036854775807LL < 0 && 0 < 9223372036854775807ll)
17584 typedef int b[(18446744073709551615ULL <= (unsigned long long int) -1
17590 /* Test availability of runtime routines for shift and division. */
17591 long long int llmax = 9223372036854775807ll;
17592 unsigned long long int ullmax = 18446744073709551615ull;
17593 return ((ll << 63) | (ll >> 63) | (ll < i) | (ll > i)
17594 | (llmax / ll) | (llmax % ll)
17595 | (ull << 63) | (ull >> 63) | (ull << i) | (ull >> i)
17596 | (ullmax / ull) | (ullmax % ull));
17602 if ac_fn_c_try_link "$LINENO"; then :
17605 ac_cv_type_unsigned_long_long_int=no
17607 rm -f core conftest.err conftest.$ac_objext \
17608 conftest$ac_exeext conftest.$ac_ext
17611 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_unsigned_long_long_int" >&5
17612 $as_echo "$ac_cv_type_unsigned_long_long_int" >&6; }
17613 if test $ac_cv_type_unsigned_long_long_int = yes; then
17615 $as_echo "#define HAVE_UNSIGNED_LONG_LONG_INT 1" >>confdefs.h
17621 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for long long int" >&5
17622 $as_echo_n "checking for long long int... " >&6; }
17623 if test "${ac_cv_type_long_long_int+set}" = set; then :
17624 $as_echo_n "(cached) " >&6
17626 ac_cv_type_long_long_int=yes
17627 if test "x${ac_cv_prog_cc_c99-no}" = xno; then
17628 ac_cv_type_long_long_int=$ac_cv_type_unsigned_long_long_int
17629 if test $ac_cv_type_long_long_int = yes; then
17630 if test "$cross_compiling" = yes; then :
17633 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17634 /* end confdefs.h. */
17635 #include <limits.h>
17638 (1LL << (sizeof (long long int) * CHAR_BIT - 2))
17639 # define LLONG_MAX (HALF - 1 + HALF)
17644 long long int n = 1;
17648 long long int m = n << i;
17651 if (LLONG_MAX / 2 < m)
17659 if ac_fn_c_try_run "$LINENO"; then :
17662 ac_cv_type_long_long_int=no
17664 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
17665 conftest.$ac_objext conftest.beam conftest.$ac_ext
17671 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_long_long_int" >&5
17672 $as_echo "$ac_cv_type_long_long_int" >&6; }
17673 if test $ac_cv_type_long_long_int = yes; then
17675 $as_echo "#define HAVE_LONG_LONG_INT 1" >>confdefs.h
17684 gl_cv_c_multiarch=no
17685 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17686 /* end confdefs.h. */
17687 #ifndef __APPLE_CC__
17688 not a universal capable compiler
17693 if ac_fn_c_try_compile "$LINENO"; then :
17697 for word in ${CC} ${CFLAGS} ${CPPFLAGS} ${LDFLAGS}; do
17698 if test -n "$prev"; then
17700 i?86 | x86_64 | ppc | ppc64)
17701 if test -z "$arch" || test "$arch" = "$word"; then
17704 gl_cv_c_multiarch=yes
17710 if test "x$word" = "x-arch"; then
17717 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17718 if test $gl_cv_c_multiarch = yes; then
17719 APPLE_UNIVERSAL_BUILD=1
17721 APPLE_UNIVERSAL_BUILD=0
17728 if test $ac_cv_type_long_long_int = yes; then
17729 HAVE_LONG_LONG_INT=1
17731 HAVE_LONG_LONG_INT=0
17735 if test $ac_cv_type_unsigned_long_long_int = yes; then
17736 HAVE_UNSIGNED_LONG_LONG_INT=1
17738 HAVE_UNSIGNED_LONG_LONG_INT=0
17743 if test $ac_cv_header_wchar_h = yes; then
17750 if test $ac_cv_header_inttypes_h = yes; then
17757 if test $ac_cv_header_sys_types_h = yes; then
17773 if test $gl_cv_have_include_next = yes; then
17774 gl_cv_next_stdint_h='<'stdint.h'>'
17776 { $as_echo "$as_me:${as_lineno-$LINENO}: checking absolute name of <stdint.h>" >&5
17777 $as_echo_n "checking absolute name of <stdint.h>... " >&6; }
17778 if test "${gl_cv_next_stdint_h+set}" = set; then :
17779 $as_echo_n "(cached) " >&6
17782 if test $ac_cv_header_stdint_h = yes; then
17785 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17786 /* end confdefs.h. */
17787 #include <stdint.h>
17791 aix*) gl_absname_cpp="$ac_cpp -C" ;;
17792 *) gl_absname_cpp="$ac_cpp" ;;
17794 gl_cv_next_stdint_h='"'`(eval "$gl_absname_cpp conftest.$ac_ext") 2>&5 |
17795 sed -n '\#/stdint.h#{
17796 s#.*"\(.*/stdint.h\)".*#\1#
17802 gl_cv_next_stdint_h='<'stdint.h'>'
17807 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_next_stdint_h" >&5
17808 $as_echo "$gl_cv_next_stdint_h" >&6; }
17810 NEXT_STDINT_H=$gl_cv_next_stdint_h
17812 if test $gl_cv_have_include_next = yes || test $gl_cv_have_include_next = buggy; then
17813 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include_next'
17814 gl_next_as_first_directive='<'stdint.h'>'
17816 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include'
17817 gl_next_as_first_directive=$gl_cv_next_stdint_h
17819 NEXT_AS_FIRST_DIRECTIVE_STDINT_H=$gl_next_as_first_directive
17824 if test $ac_cv_header_stdint_h = yes; then
17831 if test $ac_cv_header_stdint_h = yes; then
17832 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stdint.h conforms to C99" >&5
17833 $as_echo_n "checking whether stdint.h conforms to C99... " >&6; }
17834 if test "${gl_cv_header_working_stdint_h+set}" = set; then :
17835 $as_echo_n "(cached) " >&6
17837 gl_cv_header_working_stdint_h=no
17838 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17839 /* end confdefs.h. */
17842 #define __STDC_LIMIT_MACROS 1 /* to make it work also in C++ mode */
17843 #define __STDC_CONSTANT_MACROS 1 /* to make it work also in C++ mode */
17844 #define _GL_JUST_INCLUDE_SYSTEM_STDINT_H 1 /* work if build isn't clean */
17845 #include <stdint.h>
17846 /* Dragonfly defines WCHAR_MIN, WCHAR_MAX only in <wchar.h>. */
17847 #if !(defined WCHAR_MIN && defined WCHAR_MAX)
17848 #error "WCHAR_MIN, WCHAR_MAX not defined in <stdint.h>"
17852 /* BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be
17853 included before <wchar.h>. */
17854 #include <stddef.h>
17855 #include <signal.h>
17857 # include <stdio.h>
17859 # include <wchar.h>
17864 int8_t a1 = INT8_MAX;
17865 int8_t a1min = INT8_MIN;
17868 int16_t a2 = INT16_MAX;
17869 int16_t a2min = INT16_MIN;
17872 int32_t a3 = INT32_MAX;
17873 int32_t a3min = INT32_MIN;
17876 int64_t a4 = INT64_MAX;
17877 int64_t a4min = INT64_MIN;
17880 uint8_t b1 = UINT8_MAX;
17882 typedef int b1[(unsigned char) -1 != 255 ? 1 : -1];
17885 uint16_t b2 = UINT16_MAX;
17888 uint32_t b3 = UINT32_MAX;
17891 uint64_t b4 = UINT64_MAX;
17893 int_least8_t c1 = INT8_C (0x7f);
17894 int_least8_t c1max = INT_LEAST8_MAX;
17895 int_least8_t c1min = INT_LEAST8_MIN;
17896 int_least16_t c2 = INT16_C (0x7fff);
17897 int_least16_t c2max = INT_LEAST16_MAX;
17898 int_least16_t c2min = INT_LEAST16_MIN;
17899 int_least32_t c3 = INT32_C (0x7fffffff);
17900 int_least32_t c3max = INT_LEAST32_MAX;
17901 int_least32_t c3min = INT_LEAST32_MIN;
17902 int_least64_t c4 = INT64_C (0x7fffffffffffffff);
17903 int_least64_t c4max = INT_LEAST64_MAX;
17904 int_least64_t c4min = INT_LEAST64_MIN;
17905 uint_least8_t d1 = UINT8_C (0xff);
17906 uint_least8_t d1max = UINT_LEAST8_MAX;
17907 uint_least16_t d2 = UINT16_C (0xffff);
17908 uint_least16_t d2max = UINT_LEAST16_MAX;
17909 uint_least32_t d3 = UINT32_C (0xffffffff);
17910 uint_least32_t d3max = UINT_LEAST32_MAX;
17911 uint_least64_t d4 = UINT64_C (0xffffffffffffffff);
17912 uint_least64_t d4max = UINT_LEAST64_MAX;
17913 int_fast8_t e1 = INT_FAST8_MAX;
17914 int_fast8_t e1min = INT_FAST8_MIN;
17915 int_fast16_t e2 = INT_FAST16_MAX;
17916 int_fast16_t e2min = INT_FAST16_MIN;
17917 int_fast32_t e3 = INT_FAST32_MAX;
17918 int_fast32_t e3min = INT_FAST32_MIN;
17919 int_fast64_t e4 = INT_FAST64_MAX;
17920 int_fast64_t e4min = INT_FAST64_MIN;
17921 uint_fast8_t f1 = UINT_FAST8_MAX;
17922 uint_fast16_t f2 = UINT_FAST16_MAX;
17923 uint_fast32_t f3 = UINT_FAST32_MAX;
17924 uint_fast64_t f4 = UINT_FAST64_MAX;
17926 intptr_t g = INTPTR_MAX;
17927 intptr_t gmin = INTPTR_MIN;
17930 uintptr_t h = UINTPTR_MAX;
17932 intmax_t i = INTMAX_MAX;
17933 uintmax_t j = UINTMAX_MAX;
17935 #include <limits.h> /* for CHAR_BIT */
17936 #define TYPE_MINIMUM(t) \
17937 ((t) ((t) 0 < (t) -1 ? (t) 0 : ~ TYPE_MAXIMUM (t)))
17938 #define TYPE_MAXIMUM(t) \
17939 ((t) ((t) 0 < (t) -1 \
17941 : ((((t) 1 << (sizeof (t) * CHAR_BIT - 2)) - 1) * 2 + 1)))
17944 PTRDIFF_MIN == TYPE_MINIMUM (ptrdiff_t)
17945 && PTRDIFF_MAX == TYPE_MAXIMUM (ptrdiff_t)
17947 /* Detect bug in FreeBSD 6.0 / ia64. */
17948 int check_SIG_ATOMIC:
17949 SIG_ATOMIC_MIN == TYPE_MINIMUM (sig_atomic_t)
17950 && SIG_ATOMIC_MAX == TYPE_MAXIMUM (sig_atomic_t)
17952 int check_SIZE: SIZE_MAX == TYPE_MAXIMUM (size_t) ? 1 : -1;
17954 WCHAR_MIN == TYPE_MINIMUM (wchar_t)
17955 && WCHAR_MAX == TYPE_MAXIMUM (wchar_t)
17957 /* Detect bug in mingw. */
17959 WINT_MIN == TYPE_MINIMUM (wint_t)
17960 && WINT_MAX == TYPE_MAXIMUM (wint_t)
17963 /* Detect bugs in glibc 2.4 and Solaris 10 stdint.h, among others. */
17965 (-1 < UINT8_C (0)) == (-1 < (uint_least8_t) 0) ? 1 : -1;
17966 int check_UINT16_C:
17967 (-1 < UINT16_C (0)) == (-1 < (uint_least16_t) 0) ? 1 : -1;
17969 /* Detect bugs in OpenBSD 3.9 stdint.h. */
17971 int check_uint8: (uint8_t) -1 == UINT8_MAX ? 1 : -1;
17974 int check_uint16: (uint16_t) -1 == UINT16_MAX ? 1 : -1;
17977 int check_uint32: (uint32_t) -1 == UINT32_MAX ? 1 : -1;
17980 int check_uint64: (uint64_t) -1 == UINT64_MAX ? 1 : -1;
17982 int check_uint_least8: (uint_least8_t) -1 == UINT_LEAST8_MAX ? 1 : -1;
17983 int check_uint_least16: (uint_least16_t) -1 == UINT_LEAST16_MAX ? 1 : -1;
17984 int check_uint_least32: (uint_least32_t) -1 == UINT_LEAST32_MAX ? 1 : -1;
17985 int check_uint_least64: (uint_least64_t) -1 == UINT_LEAST64_MAX ? 1 : -1;
17986 int check_uint_fast8: (uint_fast8_t) -1 == UINT_FAST8_MAX ? 1 : -1;
17987 int check_uint_fast16: (uint_fast16_t) -1 == UINT_FAST16_MAX ? 1 : -1;
17988 int check_uint_fast32: (uint_fast32_t) -1 == UINT_FAST32_MAX ? 1 : -1;
17989 int check_uint_fast64: (uint_fast64_t) -1 == UINT_FAST64_MAX ? 1 : -1;
17990 int check_uintptr: (uintptr_t) -1 == UINTPTR_MAX ? 1 : -1;
17991 int check_uintmax: (uintmax_t) -1 == UINTMAX_MAX ? 1 : -1;
17992 int check_size: (size_t) -1 == SIZE_MAX ? 1 : -1;
18003 if ac_fn_c_try_compile "$LINENO"; then :
18004 if test "$cross_compiling" = yes; then :
18005 gl_cv_header_working_stdint_h=yes
18008 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18009 /* end confdefs.h. */
18012 #define __STDC_LIMIT_MACROS 1 /* to make it work also in C++ mode */
18013 #define __STDC_CONSTANT_MACROS 1 /* to make it work also in C++ mode */
18014 #define _GL_JUST_INCLUDE_SYSTEM_STDINT_H 1 /* work if build isn't clean */
18015 #include <stdint.h>
18018 /* BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be
18019 included before <wchar.h>. */
18020 #include <stddef.h>
18021 #include <signal.h>
18023 # include <stdio.h>
18025 # include <wchar.h>
18030 #include <string.h>
18031 #define MVAL(macro) MVAL1(macro)
18032 #define MVAL1(expression) #expression
18033 static const char *macro_values[] =
18067 for (mv = macro_values; *mv != NULL; mv++)
18069 const char *value = *mv;
18070 /* Test whether it looks like a cast expression. */
18071 if (strncmp (value, "((unsigned int)"/*)*/, 15) == 0
18072 || strncmp (value, "((unsigned short)"/*)*/, 17) == 0
18073 || strncmp (value, "((unsigned char)"/*)*/, 16) == 0
18074 || strncmp (value, "((int)"/*)*/, 6) == 0
18075 || strncmp (value, "((signed short)"/*)*/, 15) == 0
18076 || strncmp (value, "((signed char)"/*)*/, 14) == 0)
18077 return mv - macro_values + 1;
18085 if ac_fn_c_try_run "$LINENO"; then :
18086 gl_cv_header_working_stdint_h=yes
18088 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
18089 conftest.$ac_objext conftest.beam conftest.$ac_ext
18094 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18097 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_header_working_stdint_h" >&5
18098 $as_echo "$gl_cv_header_working_stdint_h" >&6; }
18100 if test "$gl_cv_header_working_stdint_h" = yes; then
18103 for ac_header in sys/inttypes.h sys/bitypes.h
18105 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
18106 ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
18107 eval as_val=\$$as_ac_Header
18108 if test "x$as_val" = x""yes; then :
18109 cat >>confdefs.h <<_ACEOF
18110 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
18117 if test $ac_cv_header_sys_inttypes_h = yes; then
18118 HAVE_SYS_INTTYPES_H=1
18120 HAVE_SYS_INTTYPES_H=0
18123 if test $ac_cv_header_sys_bitypes_h = yes; then
18124 HAVE_SYS_BITYPES_H=1
18126 HAVE_SYS_BITYPES_H=0
18132 if test $APPLE_UNIVERSAL_BUILD = 0; then
18135 for gltype in ptrdiff_t size_t ; do
18136 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for bit size of $gltype" >&5
18137 $as_echo_n "checking for bit size of $gltype... " >&6; }
18138 if { as_var=gl_cv_bitsizeof_${gltype}; eval "test \"\${$as_var+set}\" = set"; }; then :
18139 $as_echo_n "(cached) " >&6
18141 if ac_fn_c_compute_int "$LINENO" "sizeof ($gltype) * CHAR_BIT" "result" "
18142 /* BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be
18143 included before <wchar.h>. */
18144 #include <stddef.h>
18145 #include <signal.h>
18147 # include <stdio.h>
18149 # include <wchar.h>
18152 #include <limits.h>"; then :
18158 eval gl_cv_bitsizeof_${gltype}=\$result
18161 eval ac_res=\$gl_cv_bitsizeof_${gltype}
18162 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
18163 $as_echo "$ac_res" >&6; }
18164 eval result=\$gl_cv_bitsizeof_${gltype}
18165 if test $result = unknown; then
18168 GLTYPE=`echo "$gltype" | tr 'abcdefghijklmnopqrstuvwxyz ' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ_'`
18169 cat >>confdefs.h <<_ACEOF
18170 #define BITSIZEOF_${GLTYPE} $result
18173 eval BITSIZEOF_${GLTYPE}=\$result
18180 for gltype in sig_atomic_t wchar_t wint_t ; do
18181 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for bit size of $gltype" >&5
18182 $as_echo_n "checking for bit size of $gltype... " >&6; }
18183 if { as_var=gl_cv_bitsizeof_${gltype}; eval "test \"\${$as_var+set}\" = set"; }; then :
18184 $as_echo_n "(cached) " >&6
18186 if ac_fn_c_compute_int "$LINENO" "sizeof ($gltype) * CHAR_BIT" "result" "
18187 /* BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be
18188 included before <wchar.h>. */
18189 #include <stddef.h>
18190 #include <signal.h>
18192 # include <stdio.h>
18194 # include <wchar.h>
18197 #include <limits.h>"; then :
18203 eval gl_cv_bitsizeof_${gltype}=\$result
18206 eval ac_res=\$gl_cv_bitsizeof_${gltype}
18207 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
18208 $as_echo "$ac_res" >&6; }
18209 eval result=\$gl_cv_bitsizeof_${gltype}
18210 if test $result = unknown; then
18213 GLTYPE=`echo "$gltype" | tr 'abcdefghijklmnopqrstuvwxyz ' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ_'`
18214 cat >>confdefs.h <<_ACEOF
18215 #define BITSIZEOF_${GLTYPE} $result
18218 eval BITSIZEOF_${GLTYPE}=\$result
18224 for gltype in sig_atomic_t wchar_t wint_t ; do
18225 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $gltype is signed" >&5
18226 $as_echo_n "checking whether $gltype is signed... " >&6; }
18227 if { as_var=gl_cv_type_${gltype}_signed; eval "test \"\${$as_var+set}\" = set"; }; then :
18228 $as_echo_n "(cached) " >&6
18230 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18231 /* end confdefs.h. */
18233 /* BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be
18234 included before <wchar.h>. */
18235 #include <stddef.h>
18236 #include <signal.h>
18238 # include <stdio.h>
18240 # include <wchar.h>
18243 int verify[2 * (($gltype) -1 < ($gltype) 0) - 1];
18252 if ac_fn_c_try_compile "$LINENO"; then :
18257 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18258 eval gl_cv_type_${gltype}_signed=\$result
18261 eval ac_res=\$gl_cv_type_${gltype}_signed
18262 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
18263 $as_echo "$ac_res" >&6; }
18264 eval result=\$gl_cv_type_${gltype}_signed
18265 GLTYPE=`echo $gltype | tr 'abcdefghijklmnopqrstuvwxyz ' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ_'`
18266 if test "$result" = yes; then
18267 cat >>confdefs.h <<_ACEOF
18268 #define HAVE_SIGNED_${GLTYPE} 1
18271 eval HAVE_SIGNED_${GLTYPE}=1
18273 eval HAVE_SIGNED_${GLTYPE}=0
18278 gl_cv_type_ptrdiff_t_signed=yes
18279 gl_cv_type_size_t_signed=no
18280 if test $APPLE_UNIVERSAL_BUILD = 0; then
18283 for gltype in ptrdiff_t size_t ; do
18284 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $gltype integer literal suffix" >&5
18285 $as_echo_n "checking for $gltype integer literal suffix... " >&6; }
18286 if { as_var=gl_cv_type_${gltype}_suffix; eval "test \"\${$as_var+set}\" = set"; }; then :
18287 $as_echo_n "(cached) " >&6
18289 eval gl_cv_type_${gltype}_suffix=no
18290 eval result=\$gl_cv_type_${gltype}_signed
18291 if test "$result" = yes; then
18296 for glsuf in "$glsufu" ${glsufu}l ${glsufu}ll ${glsufu}i64; do
18298 '') gltype1='int';;
18299 l) gltype1='long int';;
18300 ll) gltype1='long long int';;
18301 i64) gltype1='__int64';;
18302 u) gltype1='unsigned int';;
18303 ul) gltype1='unsigned long int';;
18304 ull) gltype1='unsigned long long int';;
18305 ui64)gltype1='unsigned __int64';;
18307 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18308 /* end confdefs.h. */
18310 /* BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be
18311 included before <wchar.h>. */
18312 #include <stddef.h>
18313 #include <signal.h>
18315 # include <stdio.h>
18317 # include <wchar.h>
18320 extern $gltype foo;
18321 extern $gltype1 foo;
18330 if ac_fn_c_try_compile "$LINENO"; then :
18331 eval gl_cv_type_${gltype}_suffix=\$glsuf
18333 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18334 eval result=\$gl_cv_type_${gltype}_suffix
18335 test "$result" != no && break
18338 eval ac_res=\$gl_cv_type_${gltype}_suffix
18339 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
18340 $as_echo "$ac_res" >&6; }
18341 GLTYPE=`echo $gltype | tr 'abcdefghijklmnopqrstuvwxyz ' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ_'`
18342 eval result=\$gl_cv_type_${gltype}_suffix
18343 test "$result" = no && result=
18344 eval ${GLTYPE}_SUFFIX=\$result
18345 cat >>confdefs.h <<_ACEOF
18346 #define ${GLTYPE}_SUFFIX $result
18355 for gltype in sig_atomic_t wchar_t wint_t ; do
18356 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $gltype integer literal suffix" >&5
18357 $as_echo_n "checking for $gltype integer literal suffix... " >&6; }
18358 if { as_var=gl_cv_type_${gltype}_suffix; eval "test \"\${$as_var+set}\" = set"; }; then :
18359 $as_echo_n "(cached) " >&6
18361 eval gl_cv_type_${gltype}_suffix=no
18362 eval result=\$gl_cv_type_${gltype}_signed
18363 if test "$result" = yes; then
18368 for glsuf in "$glsufu" ${glsufu}l ${glsufu}ll ${glsufu}i64; do
18370 '') gltype1='int';;
18371 l) gltype1='long int';;
18372 ll) gltype1='long long int';;
18373 i64) gltype1='__int64';;
18374 u) gltype1='unsigned int';;
18375 ul) gltype1='unsigned long int';;
18376 ull) gltype1='unsigned long long int';;
18377 ui64)gltype1='unsigned __int64';;
18379 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18380 /* end confdefs.h. */
18382 /* BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be
18383 included before <wchar.h>. */
18384 #include <stddef.h>
18385 #include <signal.h>
18387 # include <stdio.h>
18389 # include <wchar.h>
18392 extern $gltype foo;
18393 extern $gltype1 foo;
18402 if ac_fn_c_try_compile "$LINENO"; then :
18403 eval gl_cv_type_${gltype}_suffix=\$glsuf
18405 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18406 eval result=\$gl_cv_type_${gltype}_suffix
18407 test "$result" != no && break
18410 eval ac_res=\$gl_cv_type_${gltype}_suffix
18411 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
18412 $as_echo "$ac_res" >&6; }
18413 GLTYPE=`echo $gltype | tr 'abcdefghijklmnopqrstuvwxyz ' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ_'`
18414 eval result=\$gl_cv_type_${gltype}_suffix
18415 test "$result" = no && result=
18416 eval ${GLTYPE}_SUFFIX=\$result
18417 cat >>confdefs.h <<_ACEOF
18418 #define ${GLTYPE}_SUFFIX $result
18428 if test -n "$STDINT_H"; then
18429 GL_GENERATE_STDINT_H_TRUE=
18430 GL_GENERATE_STDINT_H_FALSE='#'
18432 GL_GENERATE_STDINT_H_TRUE='#'
18433 GL_GENERATE_STDINT_H_FALSE=
18442 GNULIB_STRTOIMAX=0;
18443 GNULIB_STRTOUMAX=0;
18444 HAVE_DECL_IMAXABS=1;
18445 HAVE_DECL_IMAXDIV=1;
18446 HAVE_DECL_STRTOIMAX=1;
18447 HAVE_DECL_STRTOUMAX=1;
18448 INT32_MAX_LT_INTMAX_MAX=1;
18449 INT64_MAX_EQ_LONG_MAX='defined _LP64';
18450 PRI_MACROS_BROKEN=0;
18451 PRIPTR_PREFIX=__PRIPTR_PREFIX;
18452 UINT32_MAX_LT_UINTMAX_MAX=1;
18453 UINT64_MAX_EQ_ULONG_MAX='defined _LP64';
18469 if test $gl_cv_have_include_next = yes; then
18470 gl_cv_next_inttypes_h='<'inttypes.h'>'
18472 { $as_echo "$as_me:${as_lineno-$LINENO}: checking absolute name of <inttypes.h>" >&5
18473 $as_echo_n "checking absolute name of <inttypes.h>... " >&6; }
18474 if test "${gl_cv_next_inttypes_h+set}" = set; then :
18475 $as_echo_n "(cached) " >&6
18478 if test $ac_cv_header_inttypes_h = yes; then
18481 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18482 /* end confdefs.h. */
18483 #include <inttypes.h>
18487 aix*) gl_absname_cpp="$ac_cpp -C" ;;
18488 *) gl_absname_cpp="$ac_cpp" ;;
18490 gl_cv_next_inttypes_h='"'`(eval "$gl_absname_cpp conftest.$ac_ext") 2>&5 |
18491 sed -n '\#/inttypes.h#{
18492 s#.*"\(.*/inttypes.h\)".*#\1#
18498 gl_cv_next_inttypes_h='<'inttypes.h'>'
18503 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_next_inttypes_h" >&5
18504 $as_echo "$gl_cv_next_inttypes_h" >&6; }
18506 NEXT_INTTYPES_H=$gl_cv_next_inttypes_h
18508 if test $gl_cv_have_include_next = yes || test $gl_cv_have_include_next = buggy; then
18509 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include_next'
18510 gl_next_as_first_directive='<'inttypes.h'>'
18512 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include'
18513 gl_next_as_first_directive=$gl_cv_next_inttypes_h
18515 NEXT_AS_FIRST_DIRECTIVE_INTTYPES_H=$gl_next_as_first_directive
18524 $as_echo "#define GL_TRIGGER_STDC_LIMIT_MACROS 1" >>confdefs.h
18542 GNULIB_UTIMENSAT=0;
18556 REPLACE_FUTIMENS=0;
18562 REPLACE_UTIMENSAT=0;
18567 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether lstat correctly handles trailing slash" >&5
18568 $as_echo_n "checking whether lstat correctly handles trailing slash... " >&6; }
18569 if test "${gl_cv_func_lstat_dereferences_slashed_symlink+set}" = set; then :
18570 $as_echo_n "(cached) " >&6
18572 rm -f conftest.sym conftest.file
18573 echo >conftest.file
18574 if test "$as_ln_s" = "ln -s" && ln -s conftest.file conftest.sym; then
18575 if test "$cross_compiling" = yes; then :
18576 # When cross-compiling, be pessimistic so we will end up using the
18577 # replacement version of lstat that checks for trailing slashes and
18578 # calls lstat a second time when necessary.
18579 gl_cv_func_lstat_dereferences_slashed_symlink=no
18582 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18583 /* end confdefs.h. */
18584 $ac_includes_default
18589 /* Linux will dereference the symlink and fail, as required by
18590 POSIX. That is better in the sense that it means we will not
18591 have to compile and use the lstat wrapper. */
18592 return lstat ("conftest.sym/", &sbuf) == 0;
18598 if ac_fn_c_try_run "$LINENO"; then :
18599 gl_cv_func_lstat_dereferences_slashed_symlink=yes
18601 gl_cv_func_lstat_dereferences_slashed_symlink=no
18603 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
18604 conftest.$ac_objext conftest.beam conftest.$ac_ext
18608 # If the 'ln -s' command failed, then we probably don't even
18609 # have an lstat function.
18610 gl_cv_func_lstat_dereferences_slashed_symlink=no
18612 rm -f conftest.sym conftest.file
18615 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_lstat_dereferences_slashed_symlink" >&5
18616 $as_echo "$gl_cv_func_lstat_dereferences_slashed_symlink" >&6; }
18617 test $gl_cv_func_lstat_dereferences_slashed_symlink = yes &&
18619 cat >>confdefs.h <<_ACEOF
18620 #define LSTAT_FOLLOWS_SLASHED_SYMLINK 1
18626 GNULIB_NANOSLEEP=0;
18630 HAVE_DECL_LOCALTIME_R=1;
18634 REPLACE_LOCALTIME_R=GNULIB_PORTCHECK;
18635 REPLACE_MKTIME=GNULIB_PORTCHECK;
18636 REPLACE_NANOSLEEP=GNULIB_PORTCHECK;
18637 REPLACE_TIMEGM=GNULIB_PORTCHECK;
18646 GNULIB_PTHREAD_SIGMASK=0;
18647 GNULIB_SIGNAL_H_SIGPIPE=0;
18648 GNULIB_SIGPROCMASK=0;
18649 GNULIB_SIGACTION=0;
18650 HAVE_POSIX_SIGNALBLOCKING=1;
18651 HAVE_PTHREAD_SIGMASK=1;
18655 HAVE_STRUCT_SIGACTION_SA_SIGACTION=1;
18657 HAVE_TYPE_VOLATILE_SIG_ATOMIC_T=1;
18659 HAVE_SIGHANDLER_T=1;
18660 REPLACE_PTHREAD_SIGMASK=0;
18665 ac_fn_c_check_type "$LINENO" "sigset_t" "ac_cv_type_sigset_t" "
18666 #include <signal.h>
18667 /* Mingw defines sigset_t not in <signal.h>, but in <sys/types.h>. */
18668 #include <sys/types.h>
18671 if test "x$ac_cv_type_sigset_t" = x""yes; then :
18673 cat >>confdefs.h <<_ACEOF
18674 #define HAVE_SIGSET_T 1
18677 gl_cv_type_sigset_t=yes
18679 gl_cv_type_sigset_t=no
18682 if test $gl_cv_type_sigset_t != yes; then
18688 >>>>>>> MERGE-SOURCE
18691 if test $ac_cv_header_sys_socket_h = no; then
18692 for ac_header in ws2tcpip.h
18694 ac_fn_c_check_header_mongrel "$LINENO" "ws2tcpip.h" "ac_cv_header_ws2tcpip_h" "$ac_includes_default"
18695 if test "x$ac_cv_header_ws2tcpip_h" = x""yes; then :
18696 cat >>confdefs.h <<_ACEOF
18697 #define HAVE_WS2TCPIP_H 1
18706 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for stdbool.h that conforms to C99" >&5
18707 $as_echo_n "checking for stdbool.h that conforms to C99... " >&6; }
18708 if test "${ac_cv_header_stdbool_h+set}" = set; then :
18709 $as_echo_n "(cached) " >&6
18711 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18712 /* end confdefs.h. */
18714 #include <stdbool.h>
18716 "error: bool is not defined"
18719 "error: false is not defined"
18722 "error: false is not 0"
18725 "error: true is not defined"
18728 "error: true is not 1"
18730 #ifndef __bool_true_false_are_defined
18731 "error: __bool_true_false_are_defined is not defined"
18734 struct s { _Bool s: 1; _Bool t; } s;
18736 char a[true == 1 ? 1 : -1];
18737 char b[false == 0 ? 1 : -1];
18738 char c[__bool_true_false_are_defined == 1 ? 1 : -1];
18739 char d[(bool) 0.5 == true ? 1 : -1];
18740 /* See body of main program for 'e'. */
18741 char f[(_Bool) 0.0 == false ? 1 : -1];
18743 char h[sizeof (_Bool)];
18744 char i[sizeof s.t];
18745 enum { j = false, k = true, l = false * true, m = true * 256 };
18746 /* The following fails for
18747 HP aC++/ANSI C B3910B A.05.55 [Dec 04 2003]. */
18749 char o[sizeof n == m * sizeof n[0] ? 1 : -1];
18750 char p[-1 - (_Bool) 0 < 0 && -1 - (bool) 0 < 0 ? 1 : -1];
18751 /* Catch a bug in an HP-UX C compiler. See
18752 http://gcc.gnu.org/ml/gcc-patches/2003-12/msg02303.html
18753 http://lists.gnu.org/archive/html/bug-coreutils/2005-11/msg00161.html
18765 /* Refer to every declared value, to avoid compiler optimizations. */
18766 return (!a + !b + !c + !d + !e + !f + !g + !h + !i + !!j + !k + !!l
18767 + !m + !n + !o + !p + !q + !pq);
18773 if ac_fn_c_try_compile "$LINENO"; then :
18774 ac_cv_header_stdbool_h=yes
18776 ac_cv_header_stdbool_h=no
18778 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18780 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdbool_h" >&5
18781 $as_echo "$ac_cv_header_stdbool_h" >&6; }
18782 ac_fn_c_check_type "$LINENO" "_Bool" "ac_cv_type__Bool" "$ac_includes_default"
18783 if test "x$ac_cv_type__Bool" = x""yes; then :
18785 cat >>confdefs.h <<_ACEOF
18786 #define HAVE__BOOL 1
18798 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for wchar_t" >&5
18799 $as_echo_n "checking for wchar_t... " >&6; }
18800 if test "${gt_cv_c_wchar_t+set}" = set; then :
18801 $as_echo_n "(cached) " >&6
18803 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18804 /* end confdefs.h. */
18805 #include <stddef.h>
18806 wchar_t foo = (wchar_t)'\0';
18815 if ac_fn_c_try_compile "$LINENO"; then :
18816 gt_cv_c_wchar_t=yes
18820 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18822 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_c_wchar_t" >&5
18823 $as_echo "$gt_cv_c_wchar_t" >&6; }
18824 if test $gt_cv_c_wchar_t = yes; then
18826 $as_echo "#define HAVE_WCHAR_T 1" >>confdefs.h
18838 GNULIB_FPRINTF_POSIX=0;
18855 GNULIB_OBSTACK_PRINTF=0;
18856 GNULIB_OBSTACK_PRINTF_POSIX=0;
18860 GNULIB_PRINTF_POSIX=0;
18869 GNULIB_SPRINTF_POSIX=0;
18870 GNULIB_STDIO_H_NONBLOCKING=0;
18871 GNULIB_STDIO_H_SIGPIPE=0;
18873 GNULIB_VASPRINTF=0;
18878 GNULIB_VFPRINTF_POSIX=0;
18880 GNULIB_VPRINTF_POSIX=0;
18881 GNULIB_VSNPRINTF=0;
18882 GNULIB_VSPRINTF_POSIX=0;
18883 HAVE_DECL_FPURGE=1;
18884 HAVE_DECL_FSEEKO=1;
18885 HAVE_DECL_FTELLO=1;
18886 HAVE_DECL_GETDELIM=1;
18887 HAVE_DECL_GETLINE=1;
18888 HAVE_DECL_OBSTACK_PRINTF=1;
18889 HAVE_DECL_SNPRINTF=1;
18890 HAVE_DECL_VSNPRINTF=1;
18908 REPLACE_GETDELIM=0;
18910 REPLACE_OBSTACK_PRINTF=0;
18916 REPLACE_RENAMEAT=0;
18917 REPLACE_SNPRINTF=0;
18919 REPLACE_STDIO_READ_FUNCS=0;
18920 REPLACE_STDIO_WRITE_FUNCS=0;
18922 REPLACE_VASPRINTF=0;
18923 REPLACE_VDPRINTF=0;
18924 REPLACE_VFPRINTF=0;
18926 REPLACE_VSNPRINTF=0;
18927 REPLACE_VSPRINTF=0;
18930 ac_fn_c_check_member "$LINENO" "struct tm" "tm_gmtoff" "ac_cv_member_struct_tm_tm_gmtoff" "#include <time.h>
18932 if test "x$ac_cv_member_struct_tm_tm_gmtoff" = x""yes; then :
18934 $as_echo "#define HAVE_TM_GMTOFF 1" >>confdefs.h
18945 ac_fn_c_check_decl "$LINENO" "strtoimax" "ac_cv_have_decl_strtoimax" "$ac_includes_default"
18946 if test "x$ac_cv_have_decl_strtoimax" = x""yes; then :
18952 cat >>confdefs.h <<_ACEOF
18953 #define HAVE_DECL_STRTOIMAX $ac_have_decl
18958 >>>>>>> MERGE-SOURCE
18959 ac_fn_c_check_decl "$LINENO" "strtoumax" "ac_cv_have_decl_strtoumax" "$ac_includes_default"
18960 if test "x$ac_cv_have_decl_strtoumax" = x""yes; then :
18966 cat >>confdefs.h <<_ACEOF
18967 #define HAVE_DECL_STRTOUMAX $ac_have_decl
18972 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stat file-mode macros are broken" >&5
18973 $as_echo_n "checking whether stat file-mode macros are broken... " >&6; }
18974 if test "${ac_cv_header_stat_broken+set}" = set; then :
18975 $as_echo_n "(cached) " >&6
18977 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18978 /* end confdefs.h. */
18979 #include <sys/types.h>
18980 #include <sys/stat.h>
18982 #if defined S_ISBLK && defined S_IFDIR
18983 extern char c1[S_ISBLK (S_IFDIR) ? -1 : 1];
18986 #if defined S_ISBLK && defined S_IFCHR
18987 extern char c2[S_ISBLK (S_IFCHR) ? -1 : 1];
18990 #if defined S_ISLNK && defined S_IFREG
18991 extern char c3[S_ISLNK (S_IFREG) ? -1 : 1];
18994 #if defined S_ISSOCK && defined S_IFREG
18995 extern char c4[S_ISSOCK (S_IFREG) ? -1 : 1];
18999 if ac_fn_c_try_compile "$LINENO"; then :
19000 ac_cv_header_stat_broken=no
19002 ac_cv_header_stat_broken=yes
19004 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19006 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stat_broken" >&5
19007 $as_echo "$ac_cv_header_stat_broken" >&6; }
19008 if test $ac_cv_header_stat_broken = yes; then
19010 $as_echo "#define STAT_MACROS_BROKEN 1" >>confdefs.h
19016 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for C/C++ restrict keyword" >&5
19017 $as_echo_n "checking for C/C++ restrict keyword... " >&6; }
19018 if test "${ac_cv_c_restrict+set}" = set; then :
19019 $as_echo_n "(cached) " >&6
19021 ac_cv_c_restrict=no
19022 # The order here caters to the fact that C++ does not require restrict.
19023 for ac_kw in __restrict __restrict__ _Restrict restrict; do
19024 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19025 /* end confdefs.h. */
19026 typedef int * int_ptr;
19027 int foo (int_ptr $ac_kw ip) {
19034 int * $ac_kw t = s;
19041 if ac_fn_c_try_compile "$LINENO"; then :
19042 ac_cv_c_restrict=$ac_kw
19044 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19045 test "$ac_cv_c_restrict" != no && break
19049 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_restrict" >&5
19050 $as_echo "$ac_cv_c_restrict" >&6; }
19052 case $ac_cv_c_restrict in
19054 no) $as_echo "#define restrict /**/" >>confdefs.h
19056 *) cat >>confdefs.h <<_ACEOF
19057 #define restrict $ac_cv_c_restrict
19066 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for struct timespec in <time.h>" >&5
19067 $as_echo_n "checking for struct timespec in <time.h>... " >&6; }
19068 if test "${gl_cv_sys_struct_timespec_in_time_h+set}" = set; then :
19069 $as_echo_n "(cached) " >&6
19071 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19072 /* end confdefs.h. */
19078 static struct timespec x; x.tv_sec = x.tv_nsec;
19083 if ac_fn_c_try_compile "$LINENO"; then :
19084 gl_cv_sys_struct_timespec_in_time_h=yes
19086 gl_cv_sys_struct_timespec_in_time_h=no
19088 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19090 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_sys_struct_timespec_in_time_h" >&5
19091 $as_echo "$gl_cv_sys_struct_timespec_in_time_h" >&6; }
19093 TIME_H_DEFINES_STRUCT_TIMESPEC=0
19094 SYS_TIME_H_DEFINES_STRUCT_TIMESPEC=0
19095 PTHREAD_H_DEFINES_STRUCT_TIMESPEC=0
19096 if test $gl_cv_sys_struct_timespec_in_time_h = yes; then
19097 TIME_H_DEFINES_STRUCT_TIMESPEC=1
19099 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for struct timespec in <sys/time.h>" >&5
19100 $as_echo_n "checking for struct timespec in <sys/time.h>... " >&6; }
19101 if test "${gl_cv_sys_struct_timespec_in_sys_time_h+set}" = set; then :
19102 $as_echo_n "(cached) " >&6
19104 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19105 /* end confdefs.h. */
19106 #include <sys/time.h>
19111 static struct timespec x; x.tv_sec = x.tv_nsec;
19116 if ac_fn_c_try_compile "$LINENO"; then :
19117 gl_cv_sys_struct_timespec_in_sys_time_h=yes
19119 gl_cv_sys_struct_timespec_in_sys_time_h=no
19121 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19123 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_sys_struct_timespec_in_sys_time_h" >&5
19124 $as_echo "$gl_cv_sys_struct_timespec_in_sys_time_h" >&6; }
19125 if test $gl_cv_sys_struct_timespec_in_sys_time_h = yes; then
19126 SYS_TIME_H_DEFINES_STRUCT_TIMESPEC=1
19128 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for struct timespec in <pthread.h>" >&5
19129 $as_echo_n "checking for struct timespec in <pthread.h>... " >&6; }
19130 if test "${gl_cv_sys_struct_timespec_in_pthread_h+set}" = set; then :
19131 $as_echo_n "(cached) " >&6
19133 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19134 /* end confdefs.h. */
19135 #include <pthread.h>
19140 static struct timespec x; x.tv_sec = x.tv_nsec;
19145 if ac_fn_c_try_compile "$LINENO"; then :
19146 gl_cv_sys_struct_timespec_in_pthread_h=yes
19148 gl_cv_sys_struct_timespec_in_pthread_h=no
19150 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19152 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_sys_struct_timespec_in_pthread_h" >&5
19153 $as_echo "$gl_cv_sys_struct_timespec_in_pthread_h" >&6; }
19154 if test $gl_cv_sys_struct_timespec_in_pthread_h = yes; then
19155 PTHREAD_H_DEFINES_STRUCT_TIMESPEC=1
19174 if test $gl_cv_have_include_next = yes; then
19175 gl_cv_next_time_h='<'time.h'>'
19177 { $as_echo "$as_me:${as_lineno-$LINENO}: checking absolute name of <time.h>" >&5
19178 $as_echo_n "checking absolute name of <time.h>... " >&6; }
19179 if test "${gl_cv_next_time_h+set}" = set; then :
19180 $as_echo_n "(cached) " >&6
19183 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19184 /* end confdefs.h. */
19189 aix*) gl_absname_cpp="$ac_cpp -C" ;;
19190 *) gl_absname_cpp="$ac_cpp" ;;
19192 gl_cv_next_time_h='"'`(eval "$gl_absname_cpp conftest.$ac_ext") 2>&5 |
19193 sed -n '\#/time.h#{
19194 s#.*"\(.*/time.h\)".*#\1#
19202 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_next_time_h" >&5
19203 $as_echo "$gl_cv_next_time_h" >&6; }
19205 NEXT_TIME_H=$gl_cv_next_time_h
19207 if test $gl_cv_have_include_next = yes || test $gl_cv_have_include_next = buggy; then
19208 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include_next'
19209 gl_next_as_first_directive='<'time.h'>'
19211 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include'
19212 gl_next_as_first_directive=$gl_cv_next_time_h
19214 NEXT_AS_FIRST_DIRECTIVE_TIME_H=$gl_next_as_first_directive
19221 ac_fn_c_check_decl "$LINENO" "localtime_r" "ac_cv_have_decl_localtime_r" "$ac_includes_default"
19222 if test "x$ac_cv_have_decl_localtime_r" = x""yes; then :
19228 cat >>confdefs.h <<_ACEOF
19229 #define HAVE_DECL_LOCALTIME_R $ac_have_decl
19236 GL_COND_LIBTOOL_TRUE=
19237 GL_COND_LIBTOOL_FALSE='#'
19239 GL_COND_LIBTOOL_TRUE='#'
19240 GL_COND_LIBTOOL_FALSE=
19243 gl_cond_libtool=false
19256 gl_source_base='lib'
19259 if test $ac_cv_func_alloca_works = no; then
19263 # Define an additional variable used in the Makefile substitution.
19264 if test $ac_cv_working_alloca_h = yes; then
19265 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for alloca as a compiler built-in" >&5
19266 $as_echo_n "checking for alloca as a compiler built-in... " >&6; }
19267 if test "${gl_cv_rpl_alloca+set}" = set; then :
19268 $as_echo_n "(cached) " >&6
19271 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19272 /* end confdefs.h. */
19274 #if defined __GNUC__ || defined _AIX || defined _MSC_VER
19279 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
19280 $EGREP "Need own alloca" >/dev/null 2>&1; then :
19281 gl_cv_rpl_alloca=yes
19283 gl_cv_rpl_alloca=no
19289 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_rpl_alloca" >&5
19290 $as_echo "$gl_cv_rpl_alloca" >&6; }
19291 if test $gl_cv_rpl_alloca = yes; then
19293 $as_echo "#define HAVE_ALLOCA 1" >>confdefs.h
19303 if test -n "$ALLOCA_H"; then
19304 GL_GENERATE_ALLOCA_H_TRUE=
19305 GL_GENERATE_ALLOCA_H_FALSE='#'
19307 GL_GENERATE_ALLOCA_H_TRUE='#'
19308 GL_GENERATE_ALLOCA_H_FALSE=
19337 $as_echo "#define HAVE_DUP2 1" >>confdefs.h
19340 if test $HAVE_DUP2 = 1; then
19341 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether dup2 works" >&5
19342 $as_echo_n "checking whether dup2 works... " >&6; }
19343 if test "${gl_cv_func_dup2_works+set}" = set; then :
19344 $as_echo_n "(cached) " >&6
19346 if test "$cross_compiling" = yes; then :
19348 mingw*) # on this platform, dup2 always returns 0 for success
19349 gl_cv_func_dup2_works=no;;
19350 cygwin*) # on cygwin 1.5.x, dup2(1,1) returns 0
19351 gl_cv_func_dup2_works=no;;
19352 linux*) # On linux between 2008-07-27 and 2009-05-11, dup2 of a
19353 # closed fd may yield -EBADF instead of -1 / errno=EBADF.
19354 gl_cv_func_dup2_works=no;;
19355 freebsd*) # on FreeBSD 6.1, dup2(1,1000000) gives EMFILE, not EBADF.
19356 gl_cv_func_dup2_works=no;;
19357 haiku*) # on Haiku alpha 2, dup2(1, 1) resets FD_CLOEXEC.
19358 gl_cv_func_dup2_works=no;;
19359 *) gl_cv_func_dup2_works=yes;;
19362 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19363 /* end confdefs.h. */
19365 #include <unistd.h>
19373 if (fcntl (1, F_SETFD, FD_CLOEXEC) == -1)
19376 if (dup2 (1, 1) == 0)
19379 if (fcntl (1, F_GETFD) != FD_CLOEXEC)
19383 if (dup2 (0, 0) != -1)
19385 /* Many gnulib modules require POSIX conformance of EBADF. */
19386 if (dup2 (2, 1000000) == -1 && errno != EBADF)
19395 if ac_fn_c_try_run "$LINENO"; then :
19396 gl_cv_func_dup2_works=yes
19398 gl_cv_func_dup2_works=no
19400 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
19401 conftest.$ac_objext conftest.beam conftest.$ac_ext
19406 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_dup2_works" >&5
19407 $as_echo "$gl_cv_func_dup2_works" >&6; }
19408 if test "$gl_cv_func_dup2_works" = no; then
19414 if test $HAVE_DUP2 = 0 || test $REPLACE_DUP2 = 1; then
19423 gl_LIBOBJS="$gl_LIBOBJS dup2.$ac_objext"
19443 # Persuade glibc <stdlib.h> to declare getloadavg().
19448 # getloadvg is present in libc on glibc >= 2.2, MacOS X, FreeBSD >= 2.0,
19449 # NetBSD >= 0.9, OpenBSD >= 2.0, Solaris >= 7.
19451 ac_fn_c_check_func "$LINENO" "getloadavg" "ac_cv_func_getloadavg"
19452 if test "x$ac_cv_func_getloadavg" = x""yes; then :
19455 gl_func_getloadavg_done=no
19457 # Some systems with -lutil have (and need) -lkvm as well, some do not.
19458 # On Solaris, -lkvm requires nlist from -lelf, so check that first
19459 # to get the right answer into the cache.
19460 # For kstat on solaris, we need to test for libelf and libkvm to force the
19461 # definition of SVR4 below.
19462 if test $gl_func_getloadavg_done = no; then
19463 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for elf_begin in -lelf" >&5
19464 $as_echo_n "checking for elf_begin in -lelf... " >&6; }
19465 if test "${ac_cv_lib_elf_elf_begin+set}" = set; then :
19466 $as_echo_n "(cached) " >&6
19468 ac_check_lib_save_LIBS=$LIBS
19470 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19471 /* end confdefs.h. */
19473 /* Override any GCC internal prototype to avoid an error.
19474 Use char because int might match the return type of a GCC
19475 builtin and then its argument prototype would still apply. */
19483 return elf_begin ();
19488 if ac_fn_c_try_link "$LINENO"; then :
19489 ac_cv_lib_elf_elf_begin=yes
19491 ac_cv_lib_elf_elf_begin=no
19493 rm -f core conftest.err conftest.$ac_objext \
19494 conftest$ac_exeext conftest.$ac_ext
19495 LIBS=$ac_check_lib_save_LIBS
19497 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_elf_elf_begin" >&5
19498 $as_echo "$ac_cv_lib_elf_elf_begin" >&6; }
19499 if test "x$ac_cv_lib_elf_elf_begin" = x""yes; then :
19503 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for kvm_open in -lkvm" >&5
19504 $as_echo_n "checking for kvm_open in -lkvm... " >&6; }
19505 if test "${ac_cv_lib_kvm_kvm_open+set}" = set; then :
19506 $as_echo_n "(cached) " >&6
19508 ac_check_lib_save_LIBS=$LIBS
19510 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19511 /* end confdefs.h. */
19513 /* Override any GCC internal prototype to avoid an error.
19514 Use char because int might match the return type of a GCC
19515 builtin and then its argument prototype would still apply. */
19523 return kvm_open ();
19528 if ac_fn_c_try_link "$LINENO"; then :
19529 ac_cv_lib_kvm_kvm_open=yes
19531 ac_cv_lib_kvm_kvm_open=no
19533 rm -f core conftest.err conftest.$ac_objext \
19534 conftest$ac_exeext conftest.$ac_ext
19535 LIBS=$ac_check_lib_save_LIBS
19537 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_kvm_kvm_open" >&5
19538 $as_echo "$ac_cv_lib_kvm_kvm_open" >&6; }
19539 if test "x$ac_cv_lib_kvm_kvm_open" = x""yes; then :
19543 # Check for the 4.4BSD definition of getloadavg.
19544 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for getloadavg in -lutil" >&5
19545 $as_echo_n "checking for getloadavg in -lutil... " >&6; }
19546 if test "${ac_cv_lib_util_getloadavg+set}" = set; then :
19547 $as_echo_n "(cached) " >&6
19549 ac_check_lib_save_LIBS=$LIBS
19550 LIBS="-lutil $LIBS"
19551 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19552 /* end confdefs.h. */
19554 /* Override any GCC internal prototype to avoid an error.
19555 Use char because int might match the return type of a GCC
19556 builtin and then its argument prototype would still apply. */
19560 char getloadavg ();
19564 return getloadavg ();
19569 if ac_fn_c_try_link "$LINENO"; then :
19570 ac_cv_lib_util_getloadavg=yes
19572 ac_cv_lib_util_getloadavg=no
19574 rm -f core conftest.err conftest.$ac_objext \
19575 conftest$ac_exeext conftest.$ac_ext
19576 LIBS=$ac_check_lib_save_LIBS
19578 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_util_getloadavg" >&5
19579 $as_echo "$ac_cv_lib_util_getloadavg" >&6; }
19580 if test "x$ac_cv_lib_util_getloadavg" = x""yes; then :
19581 LIBS="-lutil $LIBS" gl_func_getloadavg_done=yes
19586 if test $gl_func_getloadavg_done = no; then
19587 # There is a commonly available library for RS/6000 AIX.
19588 # Since it is not a standard part of AIX, it might be installed locally.
19589 gl_getloadavg_LIBS=$LIBS
19590 LIBS="-L/usr/local/lib $LIBS"
19591 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for getloadavg in -lgetloadavg" >&5
19592 $as_echo_n "checking for getloadavg in -lgetloadavg... " >&6; }
19593 if test "${ac_cv_lib_getloadavg_getloadavg+set}" = set; then :
19594 $as_echo_n "(cached) " >&6
19596 ac_check_lib_save_LIBS=$LIBS
19597 LIBS="-lgetloadavg $LIBS"
19598 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19599 /* end confdefs.h. */
19601 /* Override any GCC internal prototype to avoid an error.
19602 Use char because int might match the return type of a GCC
19603 builtin and then its argument prototype would still apply. */
19607 char getloadavg ();
19611 return getloadavg ();
19616 if ac_fn_c_try_link "$LINENO"; then :
19617 ac_cv_lib_getloadavg_getloadavg=yes
19619 ac_cv_lib_getloadavg_getloadavg=no
19621 rm -f core conftest.err conftest.$ac_objext \
19622 conftest$ac_exeext conftest.$ac_ext
19623 LIBS=$ac_check_lib_save_LIBS
19625 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_getloadavg_getloadavg" >&5
19626 $as_echo "$ac_cv_lib_getloadavg_getloadavg" >&6; }
19627 if test "x$ac_cv_lib_getloadavg_getloadavg" = x""yes; then :
19628 LIBS="-lgetloadavg $LIBS" gl_func_getloadavg_done=yes
19630 LIBS=$gl_getloadavg_LIBS
19635 # Set up the replacement function if necessary.
19636 if test $gl_func_getloadavg_done = no; then
19639 # Solaris has libkstat which does not require root.
19640 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for kstat_open in -lkstat" >&5
19641 $as_echo_n "checking for kstat_open in -lkstat... " >&6; }
19642 if test "${ac_cv_lib_kstat_kstat_open+set}" = set; then :
19643 $as_echo_n "(cached) " >&6
19645 ac_check_lib_save_LIBS=$LIBS
19646 LIBS="-lkstat $LIBS"
19647 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19648 /* end confdefs.h. */
19650 /* Override any GCC internal prototype to avoid an error.
19651 Use char because int might match the return type of a GCC
19652 builtin and then its argument prototype would still apply. */
19656 char kstat_open ();
19660 return kstat_open ();
19665 if ac_fn_c_try_link "$LINENO"; then :
19666 ac_cv_lib_kstat_kstat_open=yes
19668 ac_cv_lib_kstat_kstat_open=no
19670 rm -f core conftest.err conftest.$ac_objext \
19671 conftest$ac_exeext conftest.$ac_ext
19672 LIBS=$ac_check_lib_save_LIBS
19674 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_kstat_kstat_open" >&5
19675 $as_echo "$ac_cv_lib_kstat_kstat_open" >&6; }
19676 if test "x$ac_cv_lib_kstat_kstat_open" = x""yes; then :
19677 cat >>confdefs.h <<_ACEOF
19678 #define HAVE_LIBKSTAT 1
19681 LIBS="-lkstat $LIBS"
19685 test $ac_cv_lib_kstat_kstat_open = yes && gl_func_getloadavg_done=yes
19687 # AIX has libperfstat which does not require root
19688 if test $gl_func_getloadavg_done = no; then
19689 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for perfstat_cpu_total in -lperfstat" >&5
19690 $as_echo_n "checking for perfstat_cpu_total in -lperfstat... " >&6; }
19691 if test "${ac_cv_lib_perfstat_perfstat_cpu_total+set}" = set; then :
19692 $as_echo_n "(cached) " >&6
19694 ac_check_lib_save_LIBS=$LIBS
19695 LIBS="-lperfstat $LIBS"
19696 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19697 /* end confdefs.h. */
19699 /* Override any GCC internal prototype to avoid an error.
19700 Use char because int might match the return type of a GCC
19701 builtin and then its argument prototype would still apply. */
19705 char perfstat_cpu_total ();
19709 return perfstat_cpu_total ();
19714 if ac_fn_c_try_link "$LINENO"; then :
19715 ac_cv_lib_perfstat_perfstat_cpu_total=yes
19717 ac_cv_lib_perfstat_perfstat_cpu_total=no
19719 rm -f core conftest.err conftest.$ac_objext \
19720 conftest$ac_exeext conftest.$ac_ext
19721 LIBS=$ac_check_lib_save_LIBS
19723 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_perfstat_perfstat_cpu_total" >&5
19724 $as_echo "$ac_cv_lib_perfstat_perfstat_cpu_total" >&6; }
19725 if test "x$ac_cv_lib_perfstat_perfstat_cpu_total" = x""yes; then :
19726 cat >>confdefs.h <<_ACEOF
19727 #define HAVE_LIBPERFSTAT 1
19730 LIBS="-lperfstat $LIBS"
19734 test $ac_cv_lib_perfstat_perfstat_cpu_total = yes && gl_func_getloadavg_done=yes
19737 if test $gl_func_getloadavg_done = no; then
19738 ac_fn_c_check_header_mongrel "$LINENO" "sys/dg_sys_info.h" "ac_cv_header_sys_dg_sys_info_h" "$ac_includes_default"
19739 if test "x$ac_cv_header_sys_dg_sys_info_h" = x""yes; then :
19740 gl_func_getloadavg_done=yes
19742 $as_echo "#define DGUX 1" >>confdefs.h
19744 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dg_sys_info in -ldgc" >&5
19745 $as_echo_n "checking for dg_sys_info in -ldgc... " >&6; }
19746 if test "${ac_cv_lib_dgc_dg_sys_info+set}" = set; then :
19747 $as_echo_n "(cached) " >&6
19749 ac_check_lib_save_LIBS=$LIBS
19751 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19752 /* end confdefs.h. */
19754 /* Override any GCC internal prototype to avoid an error.
19755 Use char because int might match the return type of a GCC
19756 builtin and then its argument prototype would still apply. */
19760 char dg_sys_info ();
19764 return dg_sys_info ();
19769 if ac_fn_c_try_link "$LINENO"; then :
19770 ac_cv_lib_dgc_dg_sys_info=yes
19772 ac_cv_lib_dgc_dg_sys_info=no
19774 rm -f core conftest.err conftest.$ac_objext \
19775 conftest$ac_exeext conftest.$ac_ext
19776 LIBS=$ac_check_lib_save_LIBS
19778 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dgc_dg_sys_info" >&5
19779 $as_echo "$ac_cv_lib_dgc_dg_sys_info" >&6; }
19780 if test "x$ac_cv_lib_dgc_dg_sys_info" = x""yes; then :
19781 cat >>confdefs.h <<_ACEOF
19782 #define HAVE_LIBDGC 1
19797 if test "x$gl_save_LIBS" = x; then
19798 GETLOADAVG_LIBS=$LIBS
19800 GETLOADAVG_LIBS=`echo "$LIBS" | sed "s!$gl_save_LIBS!!"`
19805 # Test whether the system declares getloadavg. Solaris has the function
19806 # but declares it in <sys/loadavg.h>, not <stdlib.h>.
19807 for ac_header in sys/loadavg.h
19809 ac_fn_c_check_header_mongrel "$LINENO" "sys/loadavg.h" "ac_cv_header_sys_loadavg_h" "$ac_includes_default"
19810 if test "x$ac_cv_header_sys_loadavg_h" = x""yes; then :
19811 cat >>confdefs.h <<_ACEOF
19812 #define HAVE_SYS_LOADAVG_H 1
19819 if test $ac_cv_header_sys_loadavg_h = yes; then
19820 HAVE_SYS_LOADAVG_H=1
19822 HAVE_SYS_LOADAVG_H=0
19824 ac_fn_c_check_decl "$LINENO" "getloadavg" "ac_cv_have_decl_getloadavg" "#if HAVE_SYS_LOADAVG_H
19825 # include <sys/loadavg.h>
19827 #include <stdlib.h>
19829 if test "x$ac_cv_have_decl_getloadavg" = x""yes; then :
19832 HAVE_DECL_GETLOADAVG=0
19836 if test $HAVE_GETLOADAVG = 0; then
19845 gl_LIBOBJS="$gl_LIBOBJS getloadavg.$ac_objext"
19848 # Figure out what our getloadavg.c needs.
19850 # On HPUX9, an unprivileged user can get load averages this way.
19851 if test $gl_func_getloadavg_done = no; then
19852 for ac_func in pstat_getdynamic
19854 ac_fn_c_check_func "$LINENO" "pstat_getdynamic" "ac_cv_func_pstat_getdynamic"
19855 if test "x$ac_cv_func_pstat_getdynamic" = x""yes; then :
19856 cat >>confdefs.h <<_ACEOF
19857 #define HAVE_PSTAT_GETDYNAMIC 1
19859 gl_func_getloadavg_done=yes
19865 # We cannot check for <dwarf.h>, because Solaris 2 does not use dwarf (it
19866 # uses stabs), but it is still SVR4. We cannot check for <elf.h> because
19867 # Irix 4.0.5F has the header but not the library.
19868 if test $gl_func_getloadavg_done = no && test "$ac_cv_lib_elf_elf_begin" = yes \
19869 && test "$ac_cv_lib_kvm_kvm_open" = yes; then
19870 gl_func_getloadavg_done=yes
19872 $as_echo "#define SVR4 1" >>confdefs.h
19876 if test $gl_func_getloadavg_done = no; then
19877 ac_fn_c_check_header_mongrel "$LINENO" "inq_stats/cpustats.h" "ac_cv_header_inq_stats_cpustats_h" "$ac_includes_default"
19878 if test "x$ac_cv_header_inq_stats_cpustats_h" = x""yes; then :
19879 gl_func_getloadavg_done=yes
19881 $as_echo "#define UMAX 1" >>confdefs.h
19884 $as_echo "#define UMAX4_3 1" >>confdefs.h
19891 if test $gl_func_getloadavg_done = no; then
19892 ac_fn_c_check_header_mongrel "$LINENO" "sys/cpustats.h" "ac_cv_header_sys_cpustats_h" "$ac_includes_default"
19893 if test "x$ac_cv_header_sys_cpustats_h" = x""yes; then :
19894 gl_func_getloadavg_done=yes; $as_echo "#define UMAX 1" >>confdefs.h
19901 if test $gl_func_getloadavg_done = no; then
19902 for ac_header in mach/mach.h
19904 ac_fn_c_check_header_mongrel "$LINENO" "mach/mach.h" "ac_cv_header_mach_mach_h" "$ac_includes_default"
19905 if test "x$ac_cv_header_mach_mach_h" = x""yes; then :
19906 cat >>confdefs.h <<_ACEOF
19907 #define HAVE_MACH_MACH_H 1
19916 for ac_header in nlist.h
19918 ac_fn_c_check_header_mongrel "$LINENO" "nlist.h" "ac_cv_header_nlist_h" "$ac_includes_default"
19919 if test "x$ac_cv_header_nlist_h" = x""yes; then :
19920 cat >>confdefs.h <<_ACEOF
19921 #define HAVE_NLIST_H 1
19923 ac_fn_c_check_member "$LINENO" "struct nlist" "n_un.n_name" "ac_cv_member_struct_nlist_n_un_n_name" "#include <nlist.h>
19925 if test "x$ac_cv_member_struct_nlist_n_un_n_name" = x""yes; then :
19927 cat >>confdefs.h <<_ACEOF
19928 #define HAVE_STRUCT_NLIST_N_UN_N_NAME 1
19934 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19935 /* end confdefs.h. */
19941 #ifdef HAVE_STRUCT_NLIST_N_UN_N_NAME
19942 x.n_un.n_name = "";
19950 if ac_fn_c_try_link "$LINENO"; then :
19952 $as_echo "#define N_NAME_POINTER 1" >>confdefs.h
19955 rm -f core conftest.err conftest.$ac_objext \
19956 conftest$ac_exeext conftest.$ac_ext
19968 GNULIB_GETLOADAVG=1
19979 if test $REPLACE_GETOPT = 1; then
19988 gl_LIBOBJS="$gl_LIBOBJS getopt.$ac_objext"
19998 gl_LIBOBJS="$gl_LIBOBJS getopt1.$ac_objext"
20012 if test -n "$gl_replace_getopt"; then :
20019 if test $REPLACE_GETOPT = 1; then
20023 $as_echo "#define __GETOPT_PREFIX rpl_" >>confdefs.h
20027 GNULIB_UNISTD_H_GETOPT=1
20030 if test $REPLACE_GETOPT = 1; then
20039 gl_LIBOBJS="$gl_LIBOBJS getopt.$ac_objext"
20049 gl_LIBOBJS="$gl_LIBOBJS getopt1.$ac_objext"
20060 if test $ac_cv_func_lstat = yes; then
20062 if test $gl_cv_func_lstat_dereferences_slashed_symlink = no; then
20069 if test $REPLACE_LSTAT = 1; then
20078 gl_LIBOBJS="$gl_LIBOBJS lstat.$ac_objext"
20102 if test $APPLE_UNIVERSAL_BUILD = 1; then
20103 # A universal build on Apple MacOS X platforms.
20104 # The test result would be 'yes' in 32-bit mode and 'no' in 64-bit mode.
20105 # But we need a configuration result that is valid in both modes.
20106 gl_cv_func_working_mktime=no
20108 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working mktime" >&5
20109 $as_echo_n "checking for working mktime... " >&6; }
20110 if test "${gl_cv_func_working_mktime+set}" = set; then :
20111 $as_echo_n "(cached) " >&6
20113 if test "$cross_compiling" = yes; then :
20114 gl_cv_func_working_mktime=no
20116 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20117 /* end confdefs.h. */
20118 /* Test program from Paul Eggert and Tony Leneis. */
20119 #include <limits.h>
20120 #include <stdlib.h>
20123 #ifdef HAVE_UNISTD_H
20124 # include <unistd.h>
20128 # define alarm(X) /* empty */
20131 /* Work around redefinition to rpl_putenv by other config tests. */
20134 static time_t time_t_max;
20135 static time_t time_t_min;
20137 /* Values we'll use to set the TZ environment variable. */
20138 static char *tz_strings[] = {
20139 (char *) 0, "TZ=GMT0", "TZ=JST-9",
20140 "TZ=EST+3EDT+2,M10.1.0/00:00:00,M2.3.0/00:00:00"
20142 #define N_STRINGS (sizeof (tz_strings) / sizeof (tz_strings[0]))
20144 /* Return 0 if mktime fails to convert a date in the spring-forward gap.
20145 Based on a problem report from Andreas Jaeger. */
20147 spring_forward_gap ()
20149 /* glibc (up to about 1998-10-07) failed this test. */
20152 /* Use the portable POSIX.1 specification "TZ=PST8PDT,M4.1.0,M10.5.0"
20153 instead of "TZ=America/Vancouver" in order to detect the bug even
20154 on systems that don't support the Olson extension, or don't have the
20155 full zoneinfo tables installed. */
20156 putenv ("TZ=PST8PDT,M4.1.0,M10.5.0");
20165 return mktime (&tm) != (time_t) -1;
20169 mktime_test1 (time_t now)
20172 return ! (lt = localtime (&now)) || mktime (lt) == now;
20176 mktime_test (time_t now)
20178 return (mktime_test1 (now)
20179 && mktime_test1 ((time_t) (time_t_max - now))
20180 && mktime_test1 ((time_t) (time_t_min + now)));
20186 /* Based on code from Ariel Faigon. */
20196 return tm.tm_mon == 2 && tm.tm_mday == 31;
20200 bigtime_test (int j)
20204 tm.tm_year = tm.tm_mon = tm.tm_mday = tm.tm_hour = tm.tm_min = tm.tm_sec = j;
20205 now = mktime (&tm);
20206 if (now != (time_t) -1)
20208 struct tm *lt = localtime (&now);
20210 && lt->tm_year == tm.tm_year
20211 && lt->tm_mon == tm.tm_mon
20212 && lt->tm_mday == tm.tm_mday
20213 && lt->tm_hour == tm.tm_hour
20214 && lt->tm_min == tm.tm_min
20215 && lt->tm_sec == tm.tm_sec
20216 && lt->tm_yday == tm.tm_yday
20217 && lt->tm_wday == tm.tm_wday
20218 && ((lt->tm_isdst < 0 ? -1 : 0 < lt->tm_isdst)
20219 == (tm.tm_isdst < 0 ? -1 : 0 < tm.tm_isdst))))
20228 /* The correct answer for 2050-02-01 00:00:00 in Pacific time,
20229 ignoring leap seconds. */
20230 unsigned long int answer = 2527315200UL;
20234 tm.tm_year = 2050 - 1900;
20237 tm.tm_hour = tm.tm_min = tm.tm_sec = 0;
20240 /* Use the portable POSIX.1 specification "TZ=PST8PDT,M4.1.0,M10.5.0"
20241 instead of "TZ=America/Vancouver" in order to detect the bug even
20242 on systems that don't support the Olson extension, or don't have the
20243 full zoneinfo tables installed. */
20244 putenv ("TZ=PST8PDT,M4.1.0,M10.5.0");
20248 /* Check that the result is either a failure, or close enough
20249 to the correct answer that we can assume the discrepancy is
20250 due to leap seconds. */
20251 return (t == (time_t) -1
20252 || (0 < t && answer - 120 <= t && t <= answer + 120));
20261 int time_t_signed_magnitude = (time_t) ~ (time_t) 0 < (time_t) -1;
20262 int time_t_signed = ! ((time_t) 0 < (time_t) -1);
20264 /* This test makes some buggy mktime implementations loop.
20265 Give up after 60 seconds; a mktime slower than that
20266 isn't worth using anyway. */
20269 time_t_max = (! time_t_signed
20271 : ((((time_t) 1 << (sizeof (time_t) * CHAR_BIT - 2)) - 1)
20273 time_t_min = (! time_t_signed
20275 : time_t_signed_magnitude
20279 delta = time_t_max / 997; /* a suitable prime number */
20280 for (i = 0; i < N_STRINGS; i++)
20283 putenv (tz_strings[i]);
20285 for (t = 0; t <= time_t_max - delta; t += delta)
20286 if (! mktime_test (t))
20288 if (! (mktime_test ((time_t) 1)
20289 && mktime_test ((time_t) (60 * 60))
20290 && mktime_test ((time_t) (60 * 60 * 24))))
20293 for (j = 1; ; j <<= 1)
20294 if (! bigtime_test (j))
20296 else if (INT_MAX / 2 < j)
20298 if (! bigtime_test (INT_MAX))
20301 if (! irix_6_4_bug ())
20303 if (! spring_forward_gap ())
20305 if (! year_2050_test ())
20310 if ac_fn_c_try_run "$LINENO"; then :
20311 gl_cv_func_working_mktime=yes
20313 gl_cv_func_working_mktime=no
20315 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
20316 conftest.$ac_objext conftest.beam conftest.$ac_ext
20321 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_working_mktime" >&5
20322 $as_echo "$gl_cv_func_working_mktime" >&6; }
20324 if test $gl_cv_func_working_mktime = no; then
20330 if test $REPLACE_MKTIME = 1; then
20339 gl_LIBOBJS="$gl_LIBOBJS mktime.$ac_objext"
20361 LIB_PTHREAD_SIGMASK=
20364 if test $ac_cv_func_pthread_sigmask = yes; then
20367 HAVE_PTHREAD_SIGMASK=0
20368 REPLACE_PTHREAD_SIGMASK=1
20374 if test $HAVE_PTHREAD_SIGMASK = 1; then
20377 if test -z "$LIB_PTHREAD_SIGMASK"; then
20378 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether pthread_sigmask works without -lpthread" >&5
20379 $as_echo_n "checking whether pthread_sigmask works without -lpthread... " >&6; }
20380 if test "${gl_cv_func_pthread_sigmask_in_libc_works+set}" = set; then :
20381 $as_echo_n "(cached) " >&6
20384 if test "$cross_compiling" = yes; then :
20387 freebsd* | hpux* | solaris | solaris2.[2-9]*)
20388 gl_cv_func_pthread_sigmask_in_libc_works="guessing no";;
20390 gl_cv_func_pthread_sigmask_in_libc_works="guessing yes";;
20394 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20395 /* end confdefs.h. */
20397 #include <pthread.h>
20398 #include <signal.h>
20399 #include <stddef.h>
20403 sigemptyset (&set);
20404 return pthread_sigmask (1729, &set, NULL) != 0;
20407 if ac_fn_c_try_run "$LINENO"; then :
20408 gl_cv_func_pthread_sigmask_in_libc_works=no
20410 gl_cv_func_pthread_sigmask_in_libc_works=yes
20412 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
20413 conftest.$ac_objext conftest.beam conftest.$ac_ext
20418 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_pthread_sigmask_in_libc_works" >&5
20419 $as_echo "$gl_cv_func_pthread_sigmask_in_libc_works" >&6; }
20420 case "$gl_cv_func_pthread_sigmask_in_libc_works" in
20422 REPLACE_PTHREAD_SIGMASK=1
20424 $as_echo "#define PTHREAD_SIGMASK_INEFFECTIVE 1" >>confdefs.h
20430 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether pthread_sigmask returns error numbers" >&5
20431 $as_echo_n "checking whether pthread_sigmask returns error numbers... " >&6; }
20432 if test "${gl_cv_func_pthread_sigmask_return_works+set}" = set; then :
20433 $as_echo_n "(cached) " >&6
20436 gl_save_LIBS="$LIBS"
20437 LIBS="$LIBS $LIB_PTHREAD_SIGMASK"
20438 if test "$cross_compiling" = yes; then :
20441 gl_cv_func_pthread_sigmask_return_works="guessing no";;
20443 gl_cv_func_pthread_sigmask_return_works="guessing yes";;
20447 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20448 /* end confdefs.h. */
20450 #include <pthread.h>
20451 #include <signal.h>
20452 #include <stddef.h>
20456 sigemptyset (&set);
20457 if (pthread_sigmask (1729, &set, NULL) == -1)
20462 if ac_fn_c_try_run "$LINENO"; then :
20463 gl_cv_func_pthread_sigmask_return_works=yes
20465 gl_cv_func_pthread_sigmask_return_works=no
20467 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
20468 conftest.$ac_objext conftest.beam conftest.$ac_ext
20471 LIBS="$gl_save_LIBS"
20474 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_pthread_sigmask_return_works" >&5
20475 $as_echo "$gl_cv_func_pthread_sigmask_return_works" >&6; }
20476 case "$gl_cv_func_pthread_sigmask_return_works" in
20478 REPLACE_PTHREAD_SIGMASK=1
20480 $as_echo "#define PTHREAD_SIGMASK_FAILS_WITH_ERRNO 1" >>confdefs.h
20485 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether pthread_sigmask unblocks signals correctly" >&5
20486 $as_echo_n "checking whether pthread_sigmask unblocks signals correctly... " >&6; }
20487 if test "${gl_cv_func_pthread_sigmask_unblock_works+set}" = set; then :
20488 $as_echo_n "(cached) " >&6
20493 gl_cv_func_pthread_sigmask_unblock_works="guessing no";;
20495 gl_cv_func_pthread_sigmask_unblock_works="guessing yes";;
20497 gl_save_LIBS="$LIBS"
20498 LIBS="$LIBS $LIBMULTITHREAD"
20499 if test "$cross_compiling" = yes; then :
20502 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20503 /* end confdefs.h. */
20505 #include <pthread.h>
20506 #include <signal.h>
20508 #include <stdlib.h>
20509 #include <unistd.h>
20510 static volatile int sigint_occurred;
20512 sigint_handler (int sig)
20519 int pid = getpid ();
20521 signal (SIGINT, sigint_handler);
20522 sigemptyset (&set);
20523 sigaddset (&set, SIGINT);
20524 if (!(pthread_sigmask (SIG_BLOCK, &set, NULL) == 0))
20526 sprintf (command, "sh -c 'sleep 1; kill -%d %d' &", SIGINT, pid);
20527 if (!(system (command) == 0))
20530 if (!(sigint_occurred == 0))
20532 if (!(pthread_sigmask (SIG_UNBLOCK, &set, NULL) == 0))
20534 if (!(sigint_occurred == 1)) /* This fails on IRIX. */
20539 if ac_fn_c_try_run "$LINENO"; then :
20542 gl_cv_func_pthread_sigmask_unblock_works=no
20544 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
20545 conftest.$ac_objext conftest.beam conftest.$ac_ext
20548 LIBS="$gl_save_LIBS"
20551 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_pthread_sigmask_unblock_works" >&5
20552 $as_echo "$gl_cv_func_pthread_sigmask_unblock_works" >&6; }
20553 case "$gl_cv_func_pthread_sigmask_unblock_works" in
20555 REPLACE_PTHREAD_SIGMASK=1
20557 $as_echo "#define PTHREAD_SIGMASK_UNBLOCK_BUG 1" >>confdefs.h
20563 if test $HAVE_PTHREAD_SIGMASK = 0 || test $REPLACE_PTHREAD_SIGMASK = 1; then
20572 gl_LIBOBJS="$gl_LIBOBJS pthread_sigmask.$ac_objext"
20575 if test $HAVE_PTHREAD_SIGMASK = 1; then
20577 $as_echo "#define HAVE_PTHREAD_SIGMASK 1" >>confdefs.h
20587 GNULIB_PTHREAD_SIGMASK=1
20595 >>>>>>> MERGE-SOURCE
20597 if test $ac_cv_func_readlink = no; then
20600 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether readlink signature is correct" >&5
20601 $as_echo_n "checking whether readlink signature is correct... " >&6; }
20602 if test "${gl_cv_decl_readlink_works+set}" = set; then :
20603 $as_echo_n "(cached) " >&6
20605 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20606 /* end confdefs.h. */
20607 #include <unistd.h>
20608 /* Cause compilation failure if original declaration has wrong type. */
20609 ssize_t readlink (const char *, char *, size_t);
20618 if ac_fn_c_try_compile "$LINENO"; then :
20619 gl_cv_decl_readlink_works=yes
20621 gl_cv_decl_readlink_works=no
20623 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20625 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_decl_readlink_works" >&5
20626 $as_echo "$gl_cv_decl_readlink_works" >&6; }
20627 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether readlink handles trailing slash correctly" >&5
20628 $as_echo_n "checking whether readlink handles trailing slash correctly... " >&6; }
20629 if test "${gl_cv_func_readlink_works+set}" = set; then :
20630 $as_echo_n "(cached) " >&6
20632 # We have readlink, so assume ln -s works.
20633 ln -s conftest.no-such conftest.link
20634 ln -s conftest.link conftest.lnk2
20635 if test "$cross_compiling" = yes; then :
20636 gl_cv_func_readlink_works="guessing no"
20638 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20639 /* end confdefs.h. */
20640 #include <unistd.h>
20646 return readlink ("conftest.lnk2/", buf, sizeof buf) != -1;
20651 if ac_fn_c_try_run "$LINENO"; then :
20652 gl_cv_func_readlink_works=yes
20654 gl_cv_func_readlink_works=no
20656 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
20657 conftest.$ac_objext conftest.beam conftest.$ac_ext
20660 rm -f conftest.link conftest.lnk2
20662 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_readlink_works" >&5
20663 $as_echo "$gl_cv_func_readlink_works" >&6; }
20664 if test "$gl_cv_func_readlink_works" != yes; then
20666 $as_echo "#define READLINK_TRAILING_SLASH_BUG 1" >>confdefs.h
20669 elif test "$gl_cv_decl_readlink_works" != yes; then
20674 if test $HAVE_READLINK = 0 || test $REPLACE_READLINK = 1; then
20683 gl_LIBOBJS="$gl_LIBOBJS readlink.$ac_objext"
20713 if test $gl_cv_have_include_next = yes; then
20714 gl_cv_next_signal_h='<'signal.h'>'
20716 { $as_echo "$as_me:${as_lineno-$LINENO}: checking absolute name of <signal.h>" >&5
20717 $as_echo_n "checking absolute name of <signal.h>... " >&6; }
20718 if test "${gl_cv_next_signal_h+set}" = set; then :
20719 $as_echo_n "(cached) " >&6
20722 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20723 /* end confdefs.h. */
20724 #include <signal.h>
20728 aix*) gl_absname_cpp="$ac_cpp -C" ;;
20729 *) gl_absname_cpp="$ac_cpp" ;;
20731 gl_cv_next_signal_h='"'`(eval "$gl_absname_cpp conftest.$ac_ext") 2>&5 |
20732 sed -n '\#/signal.h#{
20733 s#.*"\(.*/signal.h\)".*#\1#
20741 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_next_signal_h" >&5
20742 $as_echo "$gl_cv_next_signal_h" >&6; }
20744 NEXT_SIGNAL_H=$gl_cv_next_signal_h
20746 if test $gl_cv_have_include_next = yes || test $gl_cv_have_include_next = buggy; then
20747 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include_next'
20748 gl_next_as_first_directive='<'signal.h'>'
20750 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include'
20751 gl_next_as_first_directive=$gl_cv_next_signal_h
20753 NEXT_AS_FIRST_DIRECTIVE_SIGNAL_H=$gl_next_as_first_directive
20759 # AIX declares sig_atomic_t to already include volatile, and C89 compilers
20760 # then choke on 'volatile sig_atomic_t'. C99 requires that it compile.
20761 ac_fn_c_check_type "$LINENO" "volatile sig_atomic_t" "ac_cv_type_volatile_sig_atomic_t" "
20762 #include <signal.h>
20765 if test "x$ac_cv_type_volatile_sig_atomic_t" = x""yes; then :
20768 HAVE_TYPE_VOLATILE_SIG_ATOMIC_T=0
20775 ac_fn_c_check_type "$LINENO" "sighandler_t" "ac_cv_type_sighandler_t" "
20776 #include <signal.h>
20779 if test "x$ac_cv_type_sighandler_t" = x""yes; then :
20782 HAVE_SIGHANDLER_T=0
20788 >>>>>>> MERGE-SOURCE
20789 ac_fn_c_check_type "$LINENO" "socklen_t" "ac_cv_type_socklen_t" "
20790 /* <sys/types.h> is not needed according to POSIX, but the
20791 <sys/socket.h> in i386-unknown-freebsd4.10 and
20792 powerpc-apple-darwin5.5 required it. */
20793 #include <sys/types.h>
20794 #if HAVE_SYS_SOCKET_H
20795 # include <sys/socket.h>
20796 #elif HAVE_WS2TCPIP_H
20797 # include <ws2tcpip.h>
20801 if test "x$ac_cv_type_socklen_t" = x""yes; then :
20804 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for socklen_t equivalent" >&5
20805 $as_echo_n "checking for socklen_t equivalent... " >&6; }
20806 if test "${gl_cv_socklen_t_equiv+set}" = set; then :
20807 $as_echo_n "(cached) " >&6
20809 # Systems have either "struct sockaddr *" or
20810 # "void *" as the second argument to getpeername
20811 gl_cv_socklen_t_equiv=
20812 for arg2 in "struct sockaddr" void; do
20813 for t in int size_t "unsigned int" "long int" "unsigned long int"; do
20814 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20815 /* end confdefs.h. */
20816 #include <sys/types.h>
20817 #include <sys/socket.h>
20819 int getpeername (int, $arg2 *, $t *);
20824 getpeername (0, 0, &len);
20829 if ac_fn_c_try_compile "$LINENO"; then :
20830 gl_cv_socklen_t_equiv="$t"
20832 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20833 test "$gl_cv_socklen_t_equiv" != "" && break
20835 test "$gl_cv_socklen_t_equiv" != "" && break
20840 if test "$gl_cv_socklen_t_equiv" = ""; then
20841 as_fn_error "Cannot find a type to use in place of socklen_t" "$LINENO" 5
20843 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_socklen_t_equiv" >&5
20844 $as_echo "$gl_cv_socklen_t_equiv" >&6; }
20846 cat >>confdefs.h <<_ACEOF
20847 #define socklen_t $gl_cv_socklen_t_equiv
20853 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ssize_t" >&5
20854 $as_echo_n "checking for ssize_t... " >&6; }
20855 if test "${gt_cv_ssize_t+set}" = set; then :
20856 $as_echo_n "(cached) " >&6
20858 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20859 /* end confdefs.h. */
20860 #include <sys/types.h>
20864 int x = sizeof (ssize_t *) + sizeof (ssize_t);
20870 if ac_fn_c_try_compile "$LINENO"; then :
20875 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20877 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_ssize_t" >&5
20878 $as_echo "$gt_cv_ssize_t" >&6; }
20879 if test $gt_cv_ssize_t = no; then
20881 $as_echo "#define ssize_t int" >>confdefs.h
20887 NEXT_STDARG_H='<stdarg.h>'
20888 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for va_copy" >&5
20889 $as_echo_n "checking for va_copy... " >&6; }
20890 if test "${gl_cv_func_va_copy+set}" = set; then :
20891 $as_echo_n "(cached) " >&6
20894 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20895 /* end confdefs.h. */
20896 #include <stdarg.h>
20902 void (*func) (va_list, va_list) = va_copy;
20909 if ac_fn_c_try_compile "$LINENO"; then :
20910 gl_cv_func_va_copy=yes
20912 gl_cv_func_va_copy=no
20914 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20917 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_va_copy" >&5
20918 $as_echo "$gl_cv_func_va_copy" >&6; }
20919 if test $gl_cv_func_va_copy = no; then
20920 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20921 /* end confdefs.h. */
20922 #if defined _AIX && !defined __GNUC__
20927 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
20928 $EGREP "vaccine" >/dev/null 2>&1; then :
20935 if test $gl_aixcc = yes; then
20945 if test $gl_cv_have_include_next = yes; then
20946 gl_cv_next_stdarg_h='<'stdarg.h'>'
20948 { $as_echo "$as_me:${as_lineno-$LINENO}: checking absolute name of <stdarg.h>" >&5
20949 $as_echo_n "checking absolute name of <stdarg.h>... " >&6; }
20950 if test "${gl_cv_next_stdarg_h+set}" = set; then :
20951 $as_echo_n "(cached) " >&6
20954 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20955 /* end confdefs.h. */
20956 #include <stdarg.h>
20960 aix*) gl_absname_cpp="$ac_cpp -C" ;;
20961 *) gl_absname_cpp="$ac_cpp" ;;
20963 gl_cv_next_stdarg_h='"'`(eval "$gl_absname_cpp conftest.$ac_ext") 2>&5 |
20964 sed -n '\#/stdarg.h#{
20965 s#.*"\(.*/stdarg.h\)".*#\1#
20973 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_next_stdarg_h" >&5
20974 $as_echo "$gl_cv_next_stdarg_h" >&6; }
20976 NEXT_STDARG_H=$gl_cv_next_stdarg_h
20978 if test $gl_cv_have_include_next = yes || test $gl_cv_have_include_next = buggy; then
20979 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include_next'
20980 gl_next_as_first_directive='<'stdarg.h'>'
20982 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include'
20983 gl_next_as_first_directive=$gl_cv_next_stdarg_h
20985 NEXT_AS_FIRST_DIRECTIVE_STDARG_H=$gl_next_as_first_directive
20990 if test "$gl_cv_next_stdarg_h" = '""'; then
20991 gl_cv_next_stdarg_h='"///usr/include/stdarg.h"'
20992 NEXT_STDARG_H="$gl_cv_next_stdarg_h"
20996 saved_as_echo_n="$as_echo_n"
20998 if test "${gl_cv_func___va_copy+set}" = set; then :
20999 $as_echo_n "(cached) " >&6
21002 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21003 /* end confdefs.h. */
21004 #include <stdarg.h>
21017 if ac_fn_c_try_compile "$LINENO"; then :
21018 gl_cv_func___va_copy=yes
21020 gl_cv_func___va_copy=no
21022 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21025 as_echo_n="$saved_as_echo_n"
21027 if test $gl_cv_func___va_copy = yes; then
21029 $as_echo "#define va_copy __va_copy" >>confdefs.h
21034 $as_echo "#define va_copy gl_va_copy" >>confdefs.h
21040 if test -n "$STDARG_H"; then
21041 GL_GENERATE_STDARG_H_TRUE=
21042 GL_GENERATE_STDARG_H_FALSE='#'
21044 GL_GENERATE_STDARG_H_TRUE='#'
21045 GL_GENERATE_STDARG_H_FALSE=
21053 # Define two additional variables used in the Makefile substitution.
21055 if test "$ac_cv_header_stdbool_h" = yes; then
21058 STDBOOL_H='stdbool.h'
21061 if test -n "$STDBOOL_H"; then
21062 GL_GENERATE_STDBOOL_H_TRUE=
21063 GL_GENERATE_STDBOOL_H_FALSE='#'
21065 GL_GENERATE_STDBOOL_H_TRUE='#'
21066 GL_GENERATE_STDBOOL_H_FALSE=
21070 if test "$ac_cv_type__Bool" = yes; then
21081 if test $gt_cv_c_wchar_t = no; then
21085 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether NULL can be used in arbitrary expressions" >&5
21086 $as_echo_n "checking whether NULL can be used in arbitrary expressions... " >&6; }
21087 if test "${gl_cv_decl_null_works+set}" = set; then :
21088 $as_echo_n "(cached) " >&6
21090 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21091 /* end confdefs.h. */
21092 #include <stddef.h>
21093 int test[2 * (sizeof NULL == sizeof (void *)) -1];
21103 if ac_fn_c_try_compile "$LINENO"; then :
21104 gl_cv_decl_null_works=yes
21106 gl_cv_decl_null_works=no
21108 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21110 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_decl_null_works" >&5
21111 $as_echo "$gl_cv_decl_null_works" >&6; }
21112 if test $gl_cv_decl_null_works = no; then
21117 if test -n "$STDDEF_H"; then
21118 GL_GENERATE_STDDEF_H_TRUE=
21119 GL_GENERATE_STDDEF_H_FALSE='#'
21121 GL_GENERATE_STDDEF_H_TRUE='#'
21122 GL_GENERATE_STDDEF_H_FALSE=
21125 if test -n "$STDDEF_H"; then
21134 if test $gl_cv_have_include_next = yes; then
21135 gl_cv_next_stddef_h='<'stddef.h'>'
21137 { $as_echo "$as_me:${as_lineno-$LINENO}: checking absolute name of <stddef.h>" >&5
21138 $as_echo_n "checking absolute name of <stddef.h>... " >&6; }
21139 if test "${gl_cv_next_stddef_h+set}" = set; then :
21140 $as_echo_n "(cached) " >&6
21143 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21144 /* end confdefs.h. */
21145 #include <stddef.h>
21149 aix*) gl_absname_cpp="$ac_cpp -C" ;;
21150 *) gl_absname_cpp="$ac_cpp" ;;
21152 gl_cv_next_stddef_h='"'`(eval "$gl_absname_cpp conftest.$ac_ext") 2>&5 |
21153 sed -n '\#/stddef.h#{
21154 s#.*"\(.*/stddef.h\)".*#\1#
21162 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_next_stddef_h" >&5
21163 $as_echo "$gl_cv_next_stddef_h" >&6; }
21165 NEXT_STDDEF_H=$gl_cv_next_stddef_h
21167 if test $gl_cv_have_include_next = yes || test $gl_cv_have_include_next = buggy; then
21168 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include_next'
21169 gl_next_as_first_directive='<'stddef.h'>'
21171 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include'
21172 gl_next_as_first_directive=$gl_cv_next_stddef_h
21174 NEXT_AS_FIRST_DIRECTIVE_STDDEF_H=$gl_next_as_first_directive
21193 if test $gl_cv_have_include_next = yes; then
21194 gl_cv_next_stdio_h='<'stdio.h'>'
21196 { $as_echo "$as_me:${as_lineno-$LINENO}: checking absolute name of <stdio.h>" >&5
21197 $as_echo_n "checking absolute name of <stdio.h>... " >&6; }
21198 if test "${gl_cv_next_stdio_h+set}" = set; then :
21199 $as_echo_n "(cached) " >&6
21202 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21203 /* end confdefs.h. */
21208 aix*) gl_absname_cpp="$ac_cpp -C" ;;
21209 *) gl_absname_cpp="$ac_cpp" ;;
21211 gl_cv_next_stdio_h='"'`(eval "$gl_absname_cpp conftest.$ac_ext") 2>&5 |
21212 sed -n '\#/stdio.h#{
21213 s#.*"\(.*/stdio.h\)".*#\1#
21221 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_next_stdio_h" >&5
21222 $as_echo "$gl_cv_next_stdio_h" >&6; }
21224 NEXT_STDIO_H=$gl_cv_next_stdio_h
21226 if test $gl_cv_have_include_next = yes || test $gl_cv_have_include_next = buggy; then
21227 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include_next'
21228 gl_next_as_first_directive='<'stdio.h'>'
21230 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include'
21231 gl_next_as_first_directive=$gl_cv_next_stdio_h
21233 NEXT_AS_FIRST_DIRECTIVE_STDIO_H=$gl_next_as_first_directive
21274 if test $gl_cv_have_include_next = yes; then
21275 gl_cv_next_stdlib_h='<'stdlib.h'>'
21277 { $as_echo "$as_me:${as_lineno-$LINENO}: checking absolute name of <stdlib.h>" >&5
21278 $as_echo_n "checking absolute name of <stdlib.h>... " >&6; }
21279 if test "${gl_cv_next_stdlib_h+set}" = set; then :
21280 $as_echo_n "(cached) " >&6
21283 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21284 /* end confdefs.h. */
21285 #include <stdlib.h>
21289 aix*) gl_absname_cpp="$ac_cpp -C" ;;
21290 *) gl_absname_cpp="$ac_cpp" ;;
21292 gl_cv_next_stdlib_h='"'`(eval "$gl_absname_cpp conftest.$ac_ext") 2>&5 |
21293 sed -n '\#/stdlib.h#{
21294 s#.*"\(.*/stdlib.h\)".*#\1#
21302 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_next_stdlib_h" >&5
21303 $as_echo "$gl_cv_next_stdlib_h" >&6; }
21305 NEXT_STDLIB_H=$gl_cv_next_stdlib_h
21307 if test $gl_cv_have_include_next = yes || test $gl_cv_have_include_next = buggy; then
21308 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include_next'
21309 gl_next_as_first_directive='<'stdlib.h'>'
21311 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include'
21312 gl_next_as_first_directive=$gl_cv_next_stdlib_h
21314 NEXT_AS_FIRST_DIRECTIVE_STDLIB_H=$gl_next_as_first_directive
21324 # This defines (or not) HAVE_TZNAME and HAVE_TM_ZONE.
21332 $as_echo "#define my_strftime nstrftime" >>confdefs.h
21343 if test "$ac_cv_have_decl_strtoimax" != yes; then
21344 HAVE_DECL_STRTOIMAX=0
21347 if test $ac_cv_func_strtoimax = no; then
21356 gl_LIBOBJS="$gl_LIBOBJS strtoimax.$ac_objext"
21359 ac_fn_c_check_decl "$LINENO" "strtoll" "ac_cv_have_decl_strtoll" "$ac_includes_default"
21360 if test "x$ac_cv_have_decl_strtoll" = x""yes; then :
21366 cat >>confdefs.h <<_ACEOF
21367 #define HAVE_DECL_STRTOLL $ac_have_decl
21388 >>>>>>> MERGE-SOURCE
21389 if test "$ac_cv_have_decl_strtoumax" != yes; then
21390 HAVE_DECL_STRTOUMAX=0
21393 if test $ac_cv_func_strtoumax = no; then
21402 gl_LIBOBJS="$gl_LIBOBJS strtoumax.$ac_objext"
21405 ac_fn_c_check_decl "$LINENO" "strtoull" "ac_cv_have_decl_strtoull" "$ac_includes_default"
21406 if test "x$ac_cv_have_decl_strtoull" = x""yes; then :
21412 cat >>confdefs.h <<_ACEOF
21413 #define HAVE_DECL_STRTOULL $ac_have_decl
21432 if test $ac_cv_func_symlink = no; then
21435 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether symlink handles trailing slash correctly" >&5
21436 $as_echo_n "checking whether symlink handles trailing slash correctly... " >&6; }
21437 if test "${gl_cv_func_symlink_works+set}" = set; then :
21438 $as_echo_n "(cached) " >&6
21440 if test "$cross_compiling" = yes; then :
21441 gl_cv_func_symlink_works="guessing no"
21443 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21444 /* end confdefs.h. */
21445 #include <unistd.h>
21451 if (!symlink ("a", "conftest.link/"))
21453 if (symlink ("conftest.f", "conftest.lnk2"))
21455 else if (!symlink ("a", "conftest.lnk2/"))
21463 if ac_fn_c_try_run "$LINENO"; then :
21464 gl_cv_func_symlink_works=yes
21466 gl_cv_func_symlink_works=no
21468 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
21469 conftest.$ac_objext conftest.beam conftest.$ac_ext
21472 rm -f conftest.f conftest.link conftest.lnk2
21474 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_symlink_works" >&5
21475 $as_echo "$gl_cv_func_symlink_works" >&6; }
21476 if test "$gl_cv_func_symlink_works" != yes; then
21481 if test $HAVE_SYMLINK = 0 || test $REPLACE_SYMLINK = 1; then
21490 gl_LIBOBJS="$gl_LIBOBJS symlink.$ac_objext"
21520 if test $gl_cv_have_include_next = yes; then
21521 gl_cv_next_sys_stat_h='<'sys/stat.h'>'
21523 { $as_echo "$as_me:${as_lineno-$LINENO}: checking absolute name of <sys/stat.h>" >&5
21524 $as_echo_n "checking absolute name of <sys/stat.h>... " >&6; }
21525 if test "${gl_cv_next_sys_stat_h+set}" = set; then :
21526 $as_echo_n "(cached) " >&6
21529 if test $ac_cv_header_sys_stat_h = yes; then
21532 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21533 /* end confdefs.h. */
21534 #include <sys/stat.h>
21538 aix*) gl_absname_cpp="$ac_cpp -C" ;;
21539 *) gl_absname_cpp="$ac_cpp" ;;
21541 gl_cv_next_sys_stat_h='"'`(eval "$gl_absname_cpp conftest.$ac_ext") 2>&5 |
21542 sed -n '\#/sys/stat.h#{
21543 s#.*"\(.*/sys/stat.h\)".*#\1#
21549 gl_cv_next_sys_stat_h='<'sys/stat.h'>'
21554 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_next_sys_stat_h" >&5
21555 $as_echo "$gl_cv_next_sys_stat_h" >&6; }
21557 NEXT_SYS_STAT_H=$gl_cv_next_sys_stat_h
21559 if test $gl_cv_have_include_next = yes || test $gl_cv_have_include_next = buggy; then
21560 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include_next'
21561 gl_next_as_first_directive='<'sys/stat.h'>'
21563 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include'
21564 gl_next_as_first_directive=$gl_cv_next_sys_stat_h
21566 NEXT_AS_FIRST_DIRECTIVE_SYS_STAT_H=$gl_next_as_first_directive
21572 ac_fn_c_check_type "$LINENO" "nlink_t" "ac_cv_type_nlink_t" "#include <sys/types.h>
21573 #include <sys/stat.h>
21575 if test "x$ac_cv_type_nlink_t" = x""yes; then :
21579 $as_echo "#define nlink_t int" >>confdefs.h
21597 if test $ac_cv_have_decl_localtime_r = no; then
21598 HAVE_DECL_LOCALTIME_R=0
21602 if test $ac_cv_func_localtime_r = yes; then
21604 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether localtime_r is compatible with its POSIX signature" >&5
21605 $as_echo_n "checking whether localtime_r is compatible with its POSIX signature... " >&6; }
21606 if test "${gl_cv_time_r_posix+set}" = set; then :
21607 $as_echo_n "(cached) " >&6
21609 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21610 /* end confdefs.h. */
21615 /* We don't need to append 'restrict's to the argument types,
21616 even though the POSIX signature has the 'restrict's,
21617 since C99 says they can't affect type compatibility. */
21618 struct tm * (*ptr) (time_t const *, struct tm *) = localtime_r;
21620 /* Check the return type is a pointer.
21621 On HP-UX 10 it is 'int'. */
21622 *localtime_r (0, 0);
21628 if ac_fn_c_try_compile "$LINENO"; then :
21629 gl_cv_time_r_posix=yes
21631 gl_cv_time_r_posix=no
21633 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21636 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_time_r_posix" >&5
21637 $as_echo "$gl_cv_time_r_posix" >&6; }
21638 if test $gl_cv_time_r_posix = yes; then
21639 REPLACE_LOCALTIME_R=0
21641 REPLACE_LOCALTIME_R=1
21647 if test $HAVE_LOCALTIME_R = 0 || test $REPLACE_LOCALTIME_R = 1; then
21656 gl_LIBOBJS="$gl_LIBOBJS time_r.$ac_objext"
21687 if test $gl_cv_have_include_next = yes; then
21688 gl_cv_next_unistd_h='<'unistd.h'>'
21690 { $as_echo "$as_me:${as_lineno-$LINENO}: checking absolute name of <unistd.h>" >&5
21691 $as_echo_n "checking absolute name of <unistd.h>... " >&6; }
21692 if test "${gl_cv_next_unistd_h+set}" = set; then :
21693 $as_echo_n "(cached) " >&6
21696 if test $ac_cv_header_unistd_h = yes; then
21699 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21700 /* end confdefs.h. */
21701 #include <unistd.h>
21705 aix*) gl_absname_cpp="$ac_cpp -C" ;;
21706 *) gl_absname_cpp="$ac_cpp" ;;
21708 gl_cv_next_unistd_h='"'`(eval "$gl_absname_cpp conftest.$ac_ext") 2>&5 |
21709 sed -n '\#/unistd.h#{
21710 s#.*"\(.*/unistd.h\)".*#\1#
21716 gl_cv_next_unistd_h='<'unistd.h'>'
21721 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_next_unistd_h" >&5
21722 $as_echo "$gl_cv_next_unistd_h" >&6; }
21724 NEXT_UNISTD_H=$gl_cv_next_unistd_h
21726 if test $gl_cv_have_include_next = yes || test $gl_cv_have_include_next = buggy; then
21727 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include_next'
21728 gl_next_as_first_directive='<'unistd.h'>'
21730 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include'
21731 gl_next_as_first_directive=$gl_cv_next_unistd_h
21733 NEXT_AS_FIRST_DIRECTIVE_UNISTD_H=$gl_next_as_first_directive
21738 if test $ac_cv_header_unistd_h = yes; then
21747 gl_gnulib_enabled_dosname=false
21748 gl_gnulib_enabled_be453cec5eecf5731a274f2de7f2db36=false
21749 gl_gnulib_enabled_stat=false
21750 gl_gnulib_enabled_strtoull=false
21751 gl_gnulib_enabled_verify=false
21752 func_gl_gnulib_m4code_dosname ()
21754 if ! $gl_gnulib_enabled_dosname; then
21755 gl_gnulib_enabled_dosname=true
21758 func_gl_gnulib_m4code_be453cec5eecf5731a274f2de7f2db36 ()
21760 if ! $gl_gnulib_enabled_be453cec5eecf5731a274f2de7f2db36; then
21763 gl_gnulib_enabled_be453cec5eecf5731a274f2de7f2db36=true
21768 func_gl_gnulib_m4code_sigprocmask ()
21770 if ! $gl_gnulib_enabled_sigprocmask; then
21774 if test $gl_cv_type_sigset_t = yes; then
21775 ac_fn_c_check_func "$LINENO" "sigprocmask" "ac_cv_func_sigprocmask"
21776 if test "x$ac_cv_func_sigprocmask" = x""yes; then :
21777 gl_cv_func_sigprocmask=1
21781 if test -z "$gl_cv_func_sigprocmask"; then
21782 HAVE_POSIX_SIGNALBLOCKING=0
21785 if test $HAVE_POSIX_SIGNALBLOCKING = 0; then
21794 gl_LIBOBJS="$gl_LIBOBJS sigprocmask.$ac_objext"
21803 GNULIB_SIGPROCMASK=1
21809 gl_gnulib_enabled_sigprocmask=true
21812 >>>>>>> MERGE-SOURCE
21813 func_gl_gnulib_m4code_stat ()
21815 if ! $gl_gnulib_enabled_stat; then
21819 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stat handles trailing slashes on directories" >&5
21820 $as_echo_n "checking whether stat handles trailing slashes on directories... " >&6; }
21821 if test "${gl_cv_func_stat_dir_slash+set}" = set; then :
21822 $as_echo_n "(cached) " >&6
21824 if test "$cross_compiling" = yes; then :
21826 mingw*) gl_cv_func_stat_dir_slash="guessing no";;
21827 *) gl_cv_func_stat_dir_slash="guessing yes";;
21830 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21831 /* end confdefs.h. */
21832 #include <sys/stat.h>
21837 struct stat st; return stat (".", &st) != stat ("./", &st);
21842 if ac_fn_c_try_run "$LINENO"; then :
21843 gl_cv_func_stat_dir_slash=yes
21845 gl_cv_func_stat_dir_slash=no
21847 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
21848 conftest.$ac_objext conftest.beam conftest.$ac_ext
21852 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_stat_dir_slash" >&5
21853 $as_echo "$gl_cv_func_stat_dir_slash" >&6; }
21854 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stat handles trailing slashes on files" >&5
21855 $as_echo_n "checking whether stat handles trailing slashes on files... " >&6; }
21856 if test "${gl_cv_func_stat_file_slash+set}" = set; then :
21857 $as_echo_n "(cached) " >&6
21860 # Assume that if we have lstat, we can also check symlinks.
21861 if test $ac_cv_func_lstat = yes; then
21862 ln -s conftest.tmp conftest.lnk
21864 if test "$cross_compiling" = yes; then :
21865 gl_cv_func_stat_file_slash="guessing no"
21867 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21868 /* end confdefs.h. */
21869 #include <sys/stat.h>
21876 if (!stat ("conftest.tmp/", &st))
21879 if (!stat ("conftest.lnk/", &st))
21888 if ac_fn_c_try_run "$LINENO"; then :
21889 gl_cv_func_stat_file_slash=yes
21891 gl_cv_func_stat_file_slash=no
21893 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
21894 conftest.$ac_objext conftest.beam conftest.$ac_ext
21897 rm -f conftest.tmp conftest.lnk
21899 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_stat_file_slash" >&5
21900 $as_echo "$gl_cv_func_stat_file_slash" >&6; }
21901 case $gl_cv_func_stat_dir_slash in
21902 *no) REPLACE_STAT=1
21904 $as_echo "#define REPLACE_FUNC_STAT_DIR 1" >>confdefs.h
21907 case $gl_cv_func_stat_file_slash in
21908 *no) REPLACE_STAT=1
21910 $as_echo "#define REPLACE_FUNC_STAT_FILE 1" >>confdefs.h
21914 if test $REPLACE_STAT = 1; then
21923 gl_LIBOBJS="$gl_LIBOBJS stat.$ac_objext"
21941 gl_gnulib_enabled_stat=true
21942 if $condition; then
21943 func_gl_gnulib_m4code_dosname
21945 if $condition; then
21946 func_gl_gnulib_m4code_verify
21952 func_gl_gnulib_m4code_strtoll ()
21954 if ! $gl_gnulib_enabled_strtoll; then
21958 if test "$ac_cv_type_long_long_int" = yes; then
21959 for ac_func in strtoll
21961 ac_fn_c_check_func "$LINENO" "strtoll" "ac_cv_func_strtoll"
21962 if test "x$ac_cv_func_strtoll" = x""yes; then :
21963 cat >>confdefs.h <<_ACEOF
21964 #define HAVE_STRTOLL 1
21970 if test $ac_cv_func_strtoll = no; then
21975 if test $HAVE_STRTOLL = 0; then
21984 gl_LIBOBJS="$gl_LIBOBJS strtoll.$ac_objext"
22001 gl_gnulib_enabled_strtoll=true
22004 >>>>>>> MERGE-SOURCE
22005 func_gl_gnulib_m4code_strtoull ()
22007 if ! $gl_gnulib_enabled_strtoull; then
22011 if test "$ac_cv_type_unsigned_long_long_int" = yes; then
22012 for ac_func in strtoull
22014 ac_fn_c_check_func "$LINENO" "strtoull" "ac_cv_func_strtoull"
22015 if test "x$ac_cv_func_strtoull" = x""yes; then :
22016 cat >>confdefs.h <<_ACEOF
22017 #define HAVE_STRTOULL 1
22023 if test $ac_cv_func_strtoull = no; then
22028 if test $HAVE_STRTOULL = 0; then
22037 gl_LIBOBJS="$gl_LIBOBJS strtoull.$ac_objext"
22054 gl_gnulib_enabled_strtoull=true
22057 func_gl_gnulib_m4code_verify ()
22059 if ! $gl_gnulib_enabled_verify; then
22060 gl_gnulib_enabled_verify=true
22063 if test $REPLACE_GETOPT = 1; then
22064 func_gl_gnulib_m4code_be453cec5eecf5731a274f2de7f2db36
22066 if test $REPLACE_LSTAT = 1; then
22067 func_gl_gnulib_m4code_dosname
22069 if test $REPLACE_LSTAT = 1; then
22070 func_gl_gnulib_m4code_stat
22072 if test $HAVE_READLINK = 0 || test $REPLACE_READLINK = 1; then
22073 func_gl_gnulib_m4code_stat
22076 if test "$ac_cv_have_decl_strtoumax" != yes && test $ac_cv_func_strtoumax = no; then
22078 if test $ac_cv_func_strtoimax = no; then
22079 func_gl_gnulib_m4code_verify
22081 if test $ac_cv_func_strtoimax = no && test $ac_cv_type_long_long_int = yes; then
22082 func_gl_gnulib_m4code_strtoll
22084 if test $ac_cv_func_strtoumax = no; then
22085 >>>>>>> MERGE-SOURCE
22086 func_gl_gnulib_m4code_verify
22088 if test $ac_cv_func_strtoumax = no && test $ac_cv_type_unsigned_long_long_int = yes; then
22089 func_gl_gnulib_m4code_strtoull
22092 if $gl_gnulib_enabled_dosname; then
22093 gl_GNULIB_ENABLED_dosname_TRUE=
22094 gl_GNULIB_ENABLED_dosname_FALSE='#'
22096 gl_GNULIB_ENABLED_dosname_TRUE='#'
22097 gl_GNULIB_ENABLED_dosname_FALSE=
22100 if $gl_gnulib_enabled_be453cec5eecf5731a274f2de7f2db36; then
22101 gl_GNULIB_ENABLED_be453cec5eecf5731a274f2de7f2db36_TRUE=
22102 gl_GNULIB_ENABLED_be453cec5eecf5731a274f2de7f2db36_FALSE='#'
22104 gl_GNULIB_ENABLED_be453cec5eecf5731a274f2de7f2db36_TRUE='#'
22105 gl_GNULIB_ENABLED_be453cec5eecf5731a274f2de7f2db36_FALSE=
22108 if $gl_gnulib_enabled_stat; then
22109 gl_GNULIB_ENABLED_stat_TRUE=
22110 gl_GNULIB_ENABLED_stat_FALSE='#'
22112 gl_GNULIB_ENABLED_stat_TRUE='#'
22113 gl_GNULIB_ENABLED_stat_FALSE=
22116 if $gl_gnulib_enabled_strtoull; then
22117 gl_GNULIB_ENABLED_strtoull_TRUE=
22118 gl_GNULIB_ENABLED_strtoull_FALSE='#'
22120 gl_GNULIB_ENABLED_strtoull_TRUE='#'
22121 gl_GNULIB_ENABLED_strtoull_FALSE=
22124 if $gl_gnulib_enabled_verify; then
22125 gl_GNULIB_ENABLED_verify_TRUE=
22126 gl_GNULIB_ENABLED_verify_FALSE='#'
22128 gl_GNULIB_ENABLED_verify_TRUE='#'
22129 gl_GNULIB_ENABLED_verify_FALSE=
22132 # End of code from modules
22153 gl_source_base='tests'
22154 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
22156 gl_module_indicator_condition=$gltests_WITNESS
22167 LIBGNU_LIBDEPS="$gl_libdeps"
22169 LIBGNU_LTLIBDEPS="$gl_ltlibdeps"
22174 for ac_func in grantpt
22176 ac_fn_c_check_func "$LINENO" "grantpt" "ac_cv_func_grantpt"
22177 if test "x$ac_cv_func_grantpt" = x""yes; then :
22178 cat >>confdefs.h <<_ACEOF
22179 #define HAVE_GRANTPT 1
22186 # PTY-related GNU extensions.
22187 for ac_func in getpt
22189 ac_fn_c_check_func "$LINENO" "getpt" "ac_cv_func_getpt"
22190 if test "x$ac_cv_func_getpt" = x""yes; then :
22191 cat >>confdefs.h <<_ACEOF
22192 #define HAVE_GETPT 1
22199 # Check this now, so that we will NOT find the above functions in ncurses.
22200 # That is because we have not set up to link ncurses in lib-src.
22201 # It's better to believe a function is not available
22202 # than to expect to find it in ncurses.
22203 # Also we need tputs and friends to be able to build at all.
22204 have_tputs_et_al=true
22205 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing tputs" >&5
22206 $as_echo_n "checking for library containing tputs... " >&6; }
22207 if test "${ac_cv_search_tputs+set}" = set; then :
22208 $as_echo_n "(cached) " >&6
22210 ac_func_search_save_LIBS=$LIBS
22211 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22212 /* end confdefs.h. */
22214 /* Override any GCC internal prototype to avoid an error.
22215 Use char because int might match the return type of a GCC
22216 builtin and then its argument prototype would still apply. */
22229 for ac_lib in '' ncurses terminfo termcap; do
22230 if test -z "$ac_lib"; then
22231 ac_res="none required"
22234 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
22236 if ac_fn_c_try_link "$LINENO"; then :
22237 ac_cv_search_tputs=$ac_res
22239 rm -f core conftest.err conftest.$ac_objext \
22241 if test "${ac_cv_search_tputs+set}" = set; then :
22245 if test "${ac_cv_search_tputs+set}" = set; then :
22248 ac_cv_search_tputs=no
22250 rm conftest.$ac_ext
22251 LIBS=$ac_func_search_save_LIBS
22253 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_tputs" >&5
22254 $as_echo "$ac_cv_search_tputs" >&6; }
22255 ac_res=$ac_cv_search_tputs
22256 if test "$ac_res" != no; then :
22257 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
22260 have_tputs_et_al=false
22263 if test "$have_tputs_et_al" != true; then
22264 as_fn_error "I couldn't find termcap functions (tputs and friends).
22265 Maybe some development libraries/packages are missing? Try installing
22266 libncurses-dev(el), libterminfo-dev(el) or similar." "$LINENO" 5
22268 # Must define this when any termcap library is found.
22270 $as_echo "#define HAVE_LIBNCURSES 1" >>confdefs.h
22272 ## FIXME This was the cpp logic, but I am not sure it is right.
22273 ## The above test has not necessarily found libncurses.
22274 HAVE_LIBNCURSES=yes
22276 ## Use terminfo instead of termcap?
22277 ## Note only system files NOT using terminfo are:
22278 ## freebsd < 40000, ms-w32, msdos, netbsd < 599002500, and
22279 ## darwin|gnu without ncurses.
22283 ## cygwin: Fewer environment variables to go wrong, more terminal types.
22284 ## hpux10-20: Use the system provided termcap(3) library.
22285 ## openbsd: David Mazieres <dm@reeducation-labor.lcs.mit.edu> says this
22286 ## is necessary. Otherwise Emacs dumps core when run -nw.
22287 aix4-2|cygwin|hpux*|irix6-5|openbsd|sol2*|unixware) TERMINFO=yes ;;
22289 ## darwin: Prevents crashes when running Emacs in Terminal.app under 10.2.
22290 ## The ncurses library has been moved out of the System framework in
22291 ## Mac OS X 10.2. So if configure detects it, set the command-line
22292 ## option to use it.
22294 ## (HAVE_LIBNCURSES was not always true, but is since 2010-03-18.)
22295 if test "x$HAVE_LIBNCURSES" = "xyes"; then
22297 LIBS_TERMCAP="-lncurses"
22302 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether FreeBSD is new enough to use terminfo" >&5
22303 $as_echo_n "checking whether FreeBSD is new enough to use terminfo... " >&6; }
22304 if test "${emacs_cv_freebsd_terminfo+set}" = set; then :
22305 $as_echo_n "(cached) " >&6
22307 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22308 /* end confdefs.h. */
22309 #include <osreldate.h>
22313 #if __FreeBSD_version < 400000
22321 if ac_fn_c_try_link "$LINENO"; then :
22322 emacs_cv_freebsd_terminfo=yes
22324 emacs_cv_freebsd_terminfo=no
22326 rm -f core conftest.err conftest.$ac_objext \
22327 conftest$ac_exeext conftest.$ac_ext
22331 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $emacs_cv_freebsd_terminfo" >&5
22332 $as_echo "$emacs_cv_freebsd_terminfo" >&6; }
22334 if test $emacs_cv_freebsd_terminfo = yes; then
22336 LIBS_TERMCAP="-lncurses"
22338 LIBS_TERMCAP="-ltermcap"
22343 if test $ac_cv_search_tputs = -lterminfo; then
22345 LIBS_TERMCAP="-lterminfo"
22347 LIBS_TERMCAP="-ltermcap"
22354 ## hpux: Make sure we get select from libc rather than from libcurses
22355 ## because libcurses on HPUX 10.10 has a broken version of select.
22356 ## We used to use -lc -lcurses, but this may be cleaner.
22357 hpux*) LIBS_TERMCAP="-ltermcap" ;;
22359 openbsd) LIBS_TERMCAP="-lncurses" ;;
22361 ## Must use system termcap, if we use any termcap. It does special things.
22362 sol2*) test "$TERMINFO" != yes && LIBS_TERMCAP="-ltermcap" ;;
22365 TERMCAP_OBJ=tparam.o
22366 if test $TERMINFO = yes; then
22368 $as_echo "#define TERMINFO 1" >>confdefs.h
22371 ## Default used to be -ltermcap. Add a case above if need something else.
22372 test "x$LIBS_TERMCAP" = "x" && LIBS_TERMCAP="-lcurses"
22374 TERMCAP_OBJ=terminfo.o
22380 # Do we have res_init, for detecting changes in /etc/resolv.conf?
22382 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22383 /* end confdefs.h. */
22384 #include <netinet/in.h>
22385 #include <arpa/nameser.h>
22386 #include <resolv.h>
22395 if ac_fn_c_try_link "$LINENO"; then :
22400 rm -f core conftest.err conftest.$ac_objext \
22401 conftest$ac_exeext conftest.$ac_ext
22402 if test "$have_res_init" = no; then
22404 LIBS="$LIBS -lresolv"
22405 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for res_init with -lresolv" >&5
22406 $as_echo_n "checking for res_init with -lresolv... " >&6; }
22407 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22408 /* end confdefs.h. */
22409 #include <netinet/in.h>
22410 #include <arpa/nameser.h>
22411 #include <resolv.h>
22420 if ac_fn_c_try_link "$LINENO"; then :
22425 rm -f core conftest.err conftest.$ac_objext \
22426 conftest$ac_exeext conftest.$ac_ext
22427 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_res_init" >&5
22428 $as_echo "$have_res_init" >&6; }
22429 if test "$have_res_init" = yes ; then
22435 if test "$have_res_init" = yes; then
22437 $as_echo "#define HAVE_RES_INIT 1" >>confdefs.h
22441 # Do we need the Hesiod library to provide the support routines?
22443 if test "$with_hesiod" != no ; then
22444 # Don't set $LIBS here -- see comments above. FIXME which comments?
22445 ac_fn_c_check_func "$LINENO" "res_send" "ac_cv_func_res_send"
22446 if test "x$ac_cv_func_res_send" = x""yes; then :
22449 ac_fn_c_check_func "$LINENO" "__res_send" "ac_cv_func___res_send"
22450 if test "x$ac_cv_func___res_send" = x""yes; then :
22453 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for res_send in -lresolv" >&5
22454 $as_echo_n "checking for res_send in -lresolv... " >&6; }
22455 if test "${ac_cv_lib_resolv_res_send+set}" = set; then :
22456 $as_echo_n "(cached) " >&6
22458 ac_check_lib_save_LIBS=$LIBS
22459 LIBS="-lresolv $LIBS"
22460 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22461 /* end confdefs.h. */
22463 /* Override any GCC internal prototype to avoid an error.
22464 Use char because int might match the return type of a GCC
22465 builtin and then its argument prototype would still apply. */
22473 return res_send ();
22478 if ac_fn_c_try_link "$LINENO"; then :
22479 ac_cv_lib_resolv_res_send=yes
22481 ac_cv_lib_resolv_res_send=no
22483 rm -f core conftest.err conftest.$ac_objext \
22484 conftest$ac_exeext conftest.$ac_ext
22485 LIBS=$ac_check_lib_save_LIBS
22487 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_resolv_res_send" >&5
22488 $as_echo "$ac_cv_lib_resolv_res_send" >&6; }
22489 if test "x$ac_cv_lib_resolv_res_send" = x""yes; then :
22492 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for __res_send in -lresolv" >&5
22493 $as_echo_n "checking for __res_send in -lresolv... " >&6; }
22494 if test "${ac_cv_lib_resolv___res_send+set}" = set; then :
22495 $as_echo_n "(cached) " >&6
22497 ac_check_lib_save_LIBS=$LIBS
22498 LIBS="-lresolv $LIBS"
22499 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22500 /* end confdefs.h. */
22502 /* Override any GCC internal prototype to avoid an error.
22503 Use char because int might match the return type of a GCC
22504 builtin and then its argument prototype would still apply. */
22508 char __res_send ();
22512 return __res_send ();
22517 if ac_fn_c_try_link "$LINENO"; then :
22518 ac_cv_lib_resolv___res_send=yes
22520 ac_cv_lib_resolv___res_send=no
22522 rm -f core conftest.err conftest.$ac_objext \
22523 conftest$ac_exeext conftest.$ac_ext
22524 LIBS=$ac_check_lib_save_LIBS
22526 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_resolv___res_send" >&5
22527 $as_echo "$ac_cv_lib_resolv___res_send" >&6; }
22528 if test "x$ac_cv_lib_resolv___res_send" = x""yes; then :
22538 if test "$resolv" = yes ; then
22543 ac_fn_c_check_func "$LINENO" "hes_getmailhost" "ac_cv_func_hes_getmailhost"
22544 if test "x$ac_cv_func_hes_getmailhost" = x""yes; then :
22547 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for hes_getmailhost in -lhesiod" >&5
22548 $as_echo_n "checking for hes_getmailhost in -lhesiod... " >&6; }
22549 if test "${ac_cv_lib_hesiod_hes_getmailhost+set}" = set; then :
22550 $as_echo_n "(cached) " >&6
22552 ac_check_lib_save_LIBS=$LIBS
22553 LIBS="-lhesiod $RESOLVLIB $LIBS"
22554 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22555 /* end confdefs.h. */
22557 /* Override any GCC internal prototype to avoid an error.
22558 Use char because int might match the return type of a GCC
22559 builtin and then its argument prototype would still apply. */
22563 char hes_getmailhost ();
22567 return hes_getmailhost ();
22572 if ac_fn_c_try_link "$LINENO"; then :
22573 ac_cv_lib_hesiod_hes_getmailhost=yes
22575 ac_cv_lib_hesiod_hes_getmailhost=no
22577 rm -f core conftest.err conftest.$ac_objext \
22578 conftest$ac_exeext conftest.$ac_ext
22579 LIBS=$ac_check_lib_save_LIBS
22581 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_hesiod_hes_getmailhost" >&5
22582 $as_echo "$ac_cv_lib_hesiod_hes_getmailhost" >&6; }
22583 if test "x$ac_cv_lib_hesiod_hes_getmailhost" = x""yes; then :
22592 if test x"$hesiod" = xyes; then
22594 $as_echo "#define HAVE_LIBHESIOD 1" >>confdefs.h
22601 # Do we need libresolv (due to res_init or Hesiod)?
22602 if test "$resolv" = yes ; then
22604 $as_echo "#define HAVE_LIBRESOLV 1" >>confdefs.h
22612 # These tell us which Kerberos-related libraries to use.
22619 if test "${with_kerberos}" != no; then
22620 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for com_err in -lcom_err" >&5
22621 $as_echo_n "checking for com_err in -lcom_err... " >&6; }
22622 if test "${ac_cv_lib_com_err_com_err+set}" = set; then :
22623 $as_echo_n "(cached) " >&6
22625 ac_check_lib_save_LIBS=$LIBS
22626 LIBS="-lcom_err $LIBS"
22627 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22628 /* end confdefs.h. */
22630 /* Override any GCC internal prototype to avoid an error.
22631 Use char because int might match the return type of a GCC
22632 builtin and then its argument prototype would still apply. */
22645 if ac_fn_c_try_link "$LINENO"; then :
22646 ac_cv_lib_com_err_com_err=yes
22648 ac_cv_lib_com_err_com_err=no
22650 rm -f core conftest.err conftest.$ac_objext \
22651 conftest$ac_exeext conftest.$ac_ext
22652 LIBS=$ac_check_lib_save_LIBS
22654 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_com_err_com_err" >&5
22655 $as_echo "$ac_cv_lib_com_err_com_err" >&6; }
22656 if test "x$ac_cv_lib_com_err_com_err" = x""yes; then :
22662 if test $have_com_err = yes; then
22663 COM_ERRLIB=-lcom_err
22664 LIBS="$COM_ERRLIB $LIBS"
22666 $as_echo "#define HAVE_LIBCOM_ERR 1" >>confdefs.h
22669 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for mit_des_cbc_encrypt in -lcrypto" >&5
22670 $as_echo_n "checking for mit_des_cbc_encrypt in -lcrypto... " >&6; }
22671 if test "${ac_cv_lib_crypto_mit_des_cbc_encrypt+set}" = set; then :
22672 $as_echo_n "(cached) " >&6
22674 ac_check_lib_save_LIBS=$LIBS
22675 LIBS="-lcrypto $LIBS"
22676 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22677 /* end confdefs.h. */
22679 /* Override any GCC internal prototype to avoid an error.
22680 Use char because int might match the return type of a GCC
22681 builtin and then its argument prototype would still apply. */
22685 char mit_des_cbc_encrypt ();
22689 return mit_des_cbc_encrypt ();
22694 if ac_fn_c_try_link "$LINENO"; then :
22695 ac_cv_lib_crypto_mit_des_cbc_encrypt=yes
22697 ac_cv_lib_crypto_mit_des_cbc_encrypt=no
22699 rm -f core conftest.err conftest.$ac_objext \
22700 conftest$ac_exeext conftest.$ac_ext
22701 LIBS=$ac_check_lib_save_LIBS
22703 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_crypto_mit_des_cbc_encrypt" >&5
22704 $as_echo "$ac_cv_lib_crypto_mit_des_cbc_encrypt" >&6; }
22705 if test "x$ac_cv_lib_crypto_mit_des_cbc_encrypt" = x""yes; then :
22711 if test $have_crypto = yes; then
22713 LIBS="$CRYPTOLIB $LIBS"
22715 $as_echo "#define HAVE_LIBCRYPTO 1" >>confdefs.h
22718 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for mit_des_cbc_encrypt in -lk5crypto" >&5
22719 $as_echo_n "checking for mit_des_cbc_encrypt in -lk5crypto... " >&6; }
22720 if test "${ac_cv_lib_k5crypto_mit_des_cbc_encrypt+set}" = set; then :
22721 $as_echo_n "(cached) " >&6
22723 ac_check_lib_save_LIBS=$LIBS
22724 LIBS="-lk5crypto $LIBS"
22725 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22726 /* end confdefs.h. */
22728 /* Override any GCC internal prototype to avoid an error.
22729 Use char because int might match the return type of a GCC
22730 builtin and then its argument prototype would still apply. */
22734 char mit_des_cbc_encrypt ();
22738 return mit_des_cbc_encrypt ();
22743 if ac_fn_c_try_link "$LINENO"; then :
22744 ac_cv_lib_k5crypto_mit_des_cbc_encrypt=yes
22746 ac_cv_lib_k5crypto_mit_des_cbc_encrypt=no
22748 rm -f core conftest.err conftest.$ac_objext \
22749 conftest$ac_exeext conftest.$ac_ext
22750 LIBS=$ac_check_lib_save_LIBS
22752 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_k5crypto_mit_des_cbc_encrypt" >&5
22753 $as_echo "$ac_cv_lib_k5crypto_mit_des_cbc_encrypt" >&6; }
22754 if test "x$ac_cv_lib_k5crypto_mit_des_cbc_encrypt" = x""yes; then :
22760 if test $have_k5crypto = yes; then
22761 CRYPTOLIB=-lk5crypto
22762 LIBS="$CRYPTOLIB $LIBS"
22764 $as_echo "#define HAVE_LIBK5CRYPTO 1" >>confdefs.h
22767 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for krb5_init_context in -lkrb5" >&5
22768 $as_echo_n "checking for krb5_init_context in -lkrb5... " >&6; }
22769 if test "${ac_cv_lib_krb5_krb5_init_context+set}" = set; then :
22770 $as_echo_n "(cached) " >&6
22772 ac_check_lib_save_LIBS=$LIBS
22773 LIBS="-lkrb5 $LIBS"
22774 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22775 /* end confdefs.h. */
22777 /* Override any GCC internal prototype to avoid an error.
22778 Use char because int might match the return type of a GCC
22779 builtin and then its argument prototype would still apply. */
22783 char krb5_init_context ();
22787 return krb5_init_context ();
22792 if ac_fn_c_try_link "$LINENO"; then :
22793 ac_cv_lib_krb5_krb5_init_context=yes
22795 ac_cv_lib_krb5_krb5_init_context=no
22797 rm -f core conftest.err conftest.$ac_objext \
22798 conftest$ac_exeext conftest.$ac_ext
22799 LIBS=$ac_check_lib_save_LIBS
22801 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_krb5_krb5_init_context" >&5
22802 $as_echo "$ac_cv_lib_krb5_krb5_init_context" >&6; }
22803 if test "x$ac_cv_lib_krb5_krb5_init_context" = x""yes; then :
22809 if test $have_krb5=yes; then
22811 LIBS="$KRB5LIB $LIBS"
22813 $as_echo "#define HAVE_LIBKRB5 1" >>confdefs.h
22816 if test "${with_kerberos5}" = no; then
22817 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for des_cbc_encrypt in -ldes425" >&5
22818 $as_echo_n "checking for des_cbc_encrypt in -ldes425... " >&6; }
22819 if test "${ac_cv_lib_des425_des_cbc_encrypt+set}" = set; then :
22820 $as_echo_n "(cached) " >&6
22822 ac_check_lib_save_LIBS=$LIBS
22823 LIBS="-ldes425 $LIBS"
22824 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22825 /* end confdefs.h. */
22827 /* Override any GCC internal prototype to avoid an error.
22828 Use char because int might match the return type of a GCC
22829 builtin and then its argument prototype would still apply. */
22833 char des_cbc_encrypt ();
22837 return des_cbc_encrypt ();
22842 if ac_fn_c_try_link "$LINENO"; then :
22843 ac_cv_lib_des425_des_cbc_encrypt=yes
22845 ac_cv_lib_des425_des_cbc_encrypt=no
22847 rm -f core conftest.err conftest.$ac_objext \
22848 conftest$ac_exeext conftest.$ac_ext
22849 LIBS=$ac_check_lib_save_LIBS
22851 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_des425_des_cbc_encrypt" >&5
22852 $as_echo "$ac_cv_lib_des425_des_cbc_encrypt" >&6; }
22853 if test "x$ac_cv_lib_des425_des_cbc_encrypt" = x""yes; then :
22859 if test $have_des425 = yes; then
22861 LIBS="$DESLIB $LIBS"
22863 $as_echo "#define HAVE_LIBDES425 1" >>confdefs.h
22866 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for des_cbc_encrypt in -ldes" >&5
22867 $as_echo_n "checking for des_cbc_encrypt in -ldes... " >&6; }
22868 if test "${ac_cv_lib_des_des_cbc_encrypt+set}" = set; then :
22869 $as_echo_n "(cached) " >&6
22871 ac_check_lib_save_LIBS=$LIBS
22873 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22874 /* end confdefs.h. */
22876 /* Override any GCC internal prototype to avoid an error.
22877 Use char because int might match the return type of a GCC
22878 builtin and then its argument prototype would still apply. */
22882 char des_cbc_encrypt ();
22886 return des_cbc_encrypt ();
22891 if ac_fn_c_try_link "$LINENO"; then :
22892 ac_cv_lib_des_des_cbc_encrypt=yes
22894 ac_cv_lib_des_des_cbc_encrypt=no
22896 rm -f core conftest.err conftest.$ac_objext \
22897 conftest$ac_exeext conftest.$ac_ext
22898 LIBS=$ac_check_lib_save_LIBS
22900 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_des_des_cbc_encrypt" >&5
22901 $as_echo "$ac_cv_lib_des_des_cbc_encrypt" >&6; }
22902 if test "x$ac_cv_lib_des_des_cbc_encrypt" = x""yes; then :
22908 if test $have_des = yes; then
22910 LIBS="$DESLIB $LIBS"
22912 $as_echo "#define HAVE_LIBDES 1" >>confdefs.h
22916 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for krb_get_cred in -lkrb4" >&5
22917 $as_echo_n "checking for krb_get_cred in -lkrb4... " >&6; }
22918 if test "${ac_cv_lib_krb4_krb_get_cred+set}" = set; then :
22919 $as_echo_n "(cached) " >&6
22921 ac_check_lib_save_LIBS=$LIBS
22922 LIBS="-lkrb4 $LIBS"
22923 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22924 /* end confdefs.h. */
22926 /* Override any GCC internal prototype to avoid an error.
22927 Use char because int might match the return type of a GCC
22928 builtin and then its argument prototype would still apply. */
22932 char krb_get_cred ();
22936 return krb_get_cred ();
22941 if ac_fn_c_try_link "$LINENO"; then :
22942 ac_cv_lib_krb4_krb_get_cred=yes
22944 ac_cv_lib_krb4_krb_get_cred=no
22946 rm -f core conftest.err conftest.$ac_objext \
22947 conftest$ac_exeext conftest.$ac_ext
22948 LIBS=$ac_check_lib_save_LIBS
22950 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_krb4_krb_get_cred" >&5
22951 $as_echo "$ac_cv_lib_krb4_krb_get_cred" >&6; }
22952 if test "x$ac_cv_lib_krb4_krb_get_cred" = x""yes; then :
22958 if test $have_krb4 = yes; then
22960 LIBS="$KRB4LIB $LIBS"
22962 $as_echo "#define HAVE_LIBKRB4 1" >>confdefs.h
22965 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for krb_get_cred in -lkrb" >&5
22966 $as_echo_n "checking for krb_get_cred in -lkrb... " >&6; }
22967 if test "${ac_cv_lib_krb_krb_get_cred+set}" = set; then :
22968 $as_echo_n "(cached) " >&6
22970 ac_check_lib_save_LIBS=$LIBS
22972 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22973 /* end confdefs.h. */
22975 /* Override any GCC internal prototype to avoid an error.
22976 Use char because int might match the return type of a GCC
22977 builtin and then its argument prototype would still apply. */
22981 char krb_get_cred ();
22985 return krb_get_cred ();
22990 if ac_fn_c_try_link "$LINENO"; then :
22991 ac_cv_lib_krb_krb_get_cred=yes
22993 ac_cv_lib_krb_krb_get_cred=no
22995 rm -f core conftest.err conftest.$ac_objext \
22996 conftest$ac_exeext conftest.$ac_ext
22997 LIBS=$ac_check_lib_save_LIBS
22999 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_krb_krb_get_cred" >&5
23000 $as_echo "$ac_cv_lib_krb_krb_get_cred" >&6; }
23001 if test "x$ac_cv_lib_krb_krb_get_cred" = x""yes; then :
23007 if test $have_krb = yes; then
23009 LIBS="$KRB4LIB $LIBS"
23011 $as_echo "#define HAVE_LIBKRB 1" >>confdefs.h
23017 if test "${with_kerberos5}" != no; then
23018 for ac_header in krb5.h
23020 ac_fn_c_check_header_mongrel "$LINENO" "krb5.h" "ac_cv_header_krb5_h" "$ac_includes_default"
23021 if test "x$ac_cv_header_krb5_h" = x""yes; then :
23022 cat >>confdefs.h <<_ACEOF
23023 #define HAVE_KRB5_H 1
23025 ac_fn_c_check_member "$LINENO" "krb5_error" "text" "ac_cv_member_krb5_error_text" "#include <krb5.h>
23027 if test "x$ac_cv_member_krb5_error_text" = x""yes; then :
23029 cat >>confdefs.h <<_ACEOF
23030 #define HAVE_KRB5_ERROR_TEXT 1
23035 ac_fn_c_check_member "$LINENO" "krb5_error" "e_text" "ac_cv_member_krb5_error_e_text" "#include <krb5.h>
23037 if test "x$ac_cv_member_krb5_error_e_text" = x""yes; then :
23039 cat >>confdefs.h <<_ACEOF
23040 #define HAVE_KRB5_ERROR_E_TEXT 1
23051 for ac_header in des.h
23053 ac_fn_c_check_header_mongrel "$LINENO" "des.h" "ac_cv_header_des_h" "$ac_includes_default"
23054 if test "x$ac_cv_header_des_h" = x""yes; then :
23055 cat >>confdefs.h <<_ACEOF
23056 #define HAVE_DES_H 1
23060 for ac_header in kerberosIV/des.h
23062 ac_fn_c_check_header_mongrel "$LINENO" "kerberosIV/des.h" "ac_cv_header_kerberosIV_des_h" "$ac_includes_default"
23063 if test "x$ac_cv_header_kerberosIV_des_h" = x""yes; then :
23064 cat >>confdefs.h <<_ACEOF
23065 #define HAVE_KERBEROSIV_DES_H 1
23069 for ac_header in kerberos/des.h
23071 ac_fn_c_check_header_mongrel "$LINENO" "kerberos/des.h" "ac_cv_header_kerberos_des_h" "$ac_includes_default"
23072 if test "x$ac_cv_header_kerberos_des_h" = x""yes; then :
23073 cat >>confdefs.h <<_ACEOF
23074 #define HAVE_KERBEROS_DES_H 1
23089 for ac_header in krb.h
23091 ac_fn_c_check_header_mongrel "$LINENO" "krb.h" "ac_cv_header_krb_h" "$ac_includes_default"
23092 if test "x$ac_cv_header_krb_h" = x""yes; then :
23093 cat >>confdefs.h <<_ACEOF
23094 #define HAVE_KRB_H 1
23098 for ac_header in kerberosIV/krb.h
23100 ac_fn_c_check_header_mongrel "$LINENO" "kerberosIV/krb.h" "ac_cv_header_kerberosIV_krb_h" "$ac_includes_default"
23101 if test "x$ac_cv_header_kerberosIV_krb_h" = x""yes; then :
23102 cat >>confdefs.h <<_ACEOF
23103 #define HAVE_KERBEROSIV_KRB_H 1
23107 for ac_header in kerberos/krb.h
23109 ac_fn_c_check_header_mongrel "$LINENO" "kerberos/krb.h" "ac_cv_header_kerberos_krb_h" "$ac_includes_default"
23110 if test "x$ac_cv_header_kerberos_krb_h" = x""yes; then :
23111 cat >>confdefs.h <<_ACEOF
23112 #define HAVE_KERBEROS_KRB_H 1
23128 for ac_header in com_err.h
23130 ac_fn_c_check_header_mongrel "$LINENO" "com_err.h" "ac_cv_header_com_err_h" "$ac_includes_default"
23131 if test "x$ac_cv_header_com_err_h" = x""yes; then :
23132 cat >>confdefs.h <<_ACEOF
23133 #define HAVE_COM_ERR_H 1
23148 # Solaris requires -lintl if you want strerror (which calls dgettext)
23149 # to return localized messages.
23150 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dgettext in -lintl" >&5
23151 $as_echo_n "checking for dgettext in -lintl... " >&6; }
23152 if test "${ac_cv_lib_intl_dgettext+set}" = set; then :
23153 $as_echo_n "(cached) " >&6
23155 ac_check_lib_save_LIBS=$LIBS
23156 LIBS="-lintl $LIBS"
23157 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23158 /* end confdefs.h. */
23160 /* Override any GCC internal prototype to avoid an error.
23161 Use char because int might match the return type of a GCC
23162 builtin and then its argument prototype would still apply. */
23170 return dgettext ();
23175 if ac_fn_c_try_link "$LINENO"; then :
23176 ac_cv_lib_intl_dgettext=yes
23178 ac_cv_lib_intl_dgettext=no
23180 rm -f core conftest.err conftest.$ac_objext \
23181 conftest$ac_exeext conftest.$ac_ext
23182 LIBS=$ac_check_lib_save_LIBS
23184 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_intl_dgettext" >&5
23185 $as_echo "$ac_cv_lib_intl_dgettext" >&6; }
23186 if test "x$ac_cv_lib_intl_dgettext" = x""yes; then :
23187 cat >>confdefs.h <<_ACEOF
23188 #define HAVE_LIBINTL 1
23191 LIBS="-lintl $LIBS"
23196 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether localtime caches TZ" >&5
23197 $as_echo_n "checking whether localtime caches TZ... " >&6; }
23198 if test "${emacs_cv_localtime_cache+set}" = set; then :
23199 $as_echo_n "(cached) " >&6
23201 if test x$ac_cv_func_tzset = xyes; then
23202 if test "$cross_compiling" = yes; then :
23203 # If we have tzset, assume the worst when cross-compiling.
23204 emacs_cv_localtime_cache=yes
23206 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23207 /* end confdefs.h. */
23209 char TZ_GMT0[] = "TZ=GMT0";
23210 char TZ_PST8[] = "TZ=PST8";
23213 time_t now = time ((time_t *) 0);
23214 int hour_GMT0, hour_unset;
23215 if (putenv (TZ_GMT0) != 0)
23217 hour_GMT0 = localtime (&now)->tm_hour;
23219 hour_unset = localtime (&now)->tm_hour;
23220 if (putenv (TZ_PST8) != 0)
23222 if (localtime (&now)->tm_hour == hour_GMT0)
23225 if (localtime (&now)->tm_hour != hour_unset)
23230 if ac_fn_c_try_run "$LINENO"; then :
23231 emacs_cv_localtime_cache=no
23233 emacs_cv_localtime_cache=yes
23235 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
23236 conftest.$ac_objext conftest.beam conftest.$ac_ext
23240 # If we lack tzset, report that localtime does not cache TZ,
23241 # since we can't invalidate the cache if we don't have tzset.
23242 emacs_cv_localtime_cache=no
23245 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $emacs_cv_localtime_cache" >&5
23246 $as_echo "$emacs_cv_localtime_cache" >&6; }
23247 if test $emacs_cv_localtime_cache = yes; then
23249 $as_echo "#define LOCALTIME_CACHE 1" >>confdefs.h
23253 if test "x$HAVE_TIMEVAL" = xyes; then
23254 for ac_func in gettimeofday
23256 ac_fn_c_check_func "$LINENO" "gettimeofday" "ac_cv_func_gettimeofday"
23257 if test "x$ac_cv_func_gettimeofday" = x""yes; then :
23258 cat >>confdefs.h <<_ACEOF
23259 #define HAVE_GETTIMEOFDAY 1
23265 if test $ac_cv_func_gettimeofday = yes; then
23266 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether gettimeofday can accept two arguments" >&5
23267 $as_echo_n "checking whether gettimeofday can accept two arguments... " >&6; }
23268 if test "${emacs_cv_gettimeofday_two_arguments+set}" = set; then :
23269 $as_echo_n "(cached) " >&6
23271 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23272 /* end confdefs.h. */
23274 #ifdef TIME_WITH_SYS_TIME
23275 #include <sys/time.h>
23278 #ifdef HAVE_SYS_TIME_H
23279 #include <sys/time.h>
23287 struct timeval time;
23288 gettimeofday (&time, 0);
23293 if ac_fn_c_try_compile "$LINENO"; then :
23294 emacs_cv_gettimeofday_two_arguments=yes
23296 emacs_cv_gettimeofday_two_arguments=no
23298 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23300 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $emacs_cv_gettimeofday_two_arguments" >&5
23301 $as_echo "$emacs_cv_gettimeofday_two_arguments" >&6; }
23302 if test $emacs_cv_gettimeofday_two_arguments = no; then
23304 $as_echo "#define GETTIMEOFDAY_ONE_ARGUMENT 1" >>confdefs.h
23311 ac_fn_c_check_func "$LINENO" "socket" "ac_cv_func_socket"
23312 if test "x$ac_cv_func_socket" = x""yes; then :
23318 if test $ok_so_far = yes; then
23319 ac_fn_c_check_header_mongrel "$LINENO" "netinet/in.h" "ac_cv_header_netinet_in_h" "$ac_includes_default"
23320 if test "x$ac_cv_header_netinet_in_h" = x""yes; then :
23328 if test $ok_so_far = yes; then
23329 ac_fn_c_check_header_mongrel "$LINENO" "arpa/inet.h" "ac_cv_header_arpa_inet_h" "$ac_includes_default"
23330 if test "x$ac_cv_header_arpa_inet_h" = x""yes; then :
23338 if test $ok_so_far = yes; then
23340 $as_echo "#define HAVE_INET_SOCKETS 1" >>confdefs.h
23344 if test -f /usr/lpp/X11/bin/smt.exp; then
23346 $as_echo "#define HAVE_AIX_SMT_EXP 1" >>confdefs.h
23350 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether system supports dynamic ptys" >&5
23351 $as_echo_n "checking whether system supports dynamic ptys... " >&6; }
23352 if test -d /dev/pts && ls -d /dev/ptmx > /dev/null 2>&1 ; then
23353 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
23354 $as_echo "yes" >&6; }
23356 $as_echo "#define HAVE_DEV_PTMX 1" >>confdefs.h
23359 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
23360 $as_echo "no" >&6; }
23363 ac_fn_c_check_type "$LINENO" "pid_t" "ac_cv_type_pid_t" "$ac_includes_default"
23364 if test "x$ac_cv_type_pid_t" = x""yes; then :
23368 cat >>confdefs.h <<_ACEOF
23374 for ac_header in vfork.h
23376 ac_fn_c_check_header_mongrel "$LINENO" "vfork.h" "ac_cv_header_vfork_h" "$ac_includes_default"
23377 if test "x$ac_cv_header_vfork_h" = x""yes; then :
23378 cat >>confdefs.h <<_ACEOF
23379 #define HAVE_VFORK_H 1
23386 for ac_func in fork vfork
23388 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
23389 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
23390 eval as_val=\$$as_ac_var
23391 if test "x$as_val" = x""yes; then :
23392 cat >>confdefs.h <<_ACEOF
23393 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
23399 if test "x$ac_cv_func_fork" = xyes; then
23400 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working fork" >&5
23401 $as_echo_n "checking for working fork... " >&6; }
23402 if test "${ac_cv_func_fork_works+set}" = set; then :
23403 $as_echo_n "(cached) " >&6
23405 if test "$cross_compiling" = yes; then :
23406 ac_cv_func_fork_works=cross
23408 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23409 /* end confdefs.h. */
23410 $ac_includes_default
23415 /* By Ruediger Kuhlmann. */
23416 return fork () < 0;
23422 if ac_fn_c_try_run "$LINENO"; then :
23423 ac_cv_func_fork_works=yes
23425 ac_cv_func_fork_works=no
23427 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
23428 conftest.$ac_objext conftest.beam conftest.$ac_ext
23432 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_fork_works" >&5
23433 $as_echo "$ac_cv_func_fork_works" >&6; }
23436 ac_cv_func_fork_works=$ac_cv_func_fork
23438 if test "x$ac_cv_func_fork_works" = xcross; then
23440 *-*-amigaos* | *-*-msdosdjgpp*)
23441 # Override, as these systems have only a dummy fork() stub
23442 ac_cv_func_fork_works=no
23445 ac_cv_func_fork_works=yes
23448 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: result $ac_cv_func_fork_works guessed because of cross compilation" >&5
23449 $as_echo "$as_me: WARNING: result $ac_cv_func_fork_works guessed because of cross compilation" >&2;}
23451 ac_cv_func_vfork_works=$ac_cv_func_vfork
23452 if test "x$ac_cv_func_vfork" = xyes; then
23453 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working vfork" >&5
23454 $as_echo_n "checking for working vfork... " >&6; }
23455 if test "${ac_cv_func_vfork_works+set}" = set; then :
23456 $as_echo_n "(cached) " >&6
23458 if test "$cross_compiling" = yes; then :
23459 ac_cv_func_vfork_works=cross
23461 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23462 /* end confdefs.h. */
23463 /* Thanks to Paul Eggert for this test. */
23464 $ac_includes_default
23465 #include <sys/wait.h>
23466 #ifdef HAVE_VFORK_H
23467 # include <vfork.h>
23469 /* On some sparc systems, changes by the child to local and incoming
23470 argument registers are propagated back to the parent. The compiler
23471 is told about this with #include <vfork.h>, but some compilers
23472 (e.g. gcc -O) don't grok <vfork.h>. Test for this by using a
23473 static variable whose address is put into a register that is
23474 clobbered by the vfork. */
23477 sparc_address_test (int arg)
23479 sparc_address_test (arg) int arg;
23482 static pid_t child;
23500 pid_t parent = getpid ();
23503 sparc_address_test (0);
23508 /* Here is another test for sparc vfork register problems. This
23509 test uses lots of local variables, at least as many local
23510 variables as main has allocated so far including compiler
23511 temporaries. 4 locals are enough for gcc 1.40.3 on a Solaris
23512 4.1.3 sparc, but we use 8 to be safe. A buggy compiler should
23513 reuse the register of parent for one of the local variables,
23514 since it will think that parent can't possibly be used any more
23515 in this routine. Assigning to the local variable will thus
23516 munge parent in the parent process. */
23518 p = getpid(), p1 = getpid(), p2 = getpid(), p3 = getpid(),
23519 p4 = getpid(), p5 = getpid(), p6 = getpid(), p7 = getpid();
23520 /* Convince the compiler that p..p7 are live; otherwise, it might
23521 use the same hardware register for all 8 local variables. */
23522 if (p != p1 || p != p2 || p != p3 || p != p4
23523 || p != p5 || p != p6 || p != p7)
23526 /* On some systems (e.g. IRIX 3.3), vfork doesn't separate parent
23527 from child file descriptors. If the child closes a descriptor
23528 before it execs or exits, this munges the parent's descriptor
23529 as well. Test for this by closing stdout in the child. */
23530 _exit(close(fileno(stdout)) != 0);
23535 while (wait(&status) != child)
23538 /* Was there some problem with vforking? */
23541 /* Did the child fail? (This shouldn't happen.) */
23544 /* Did the vfork/compiler bug occur? */
23545 || parent != getpid()
23547 /* Did the file descriptor bug occur? */
23548 || fstat(fileno(stdout), &st) != 0
23553 if ac_fn_c_try_run "$LINENO"; then :
23554 ac_cv_func_vfork_works=yes
23556 ac_cv_func_vfork_works=no
23558 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
23559 conftest.$ac_objext conftest.beam conftest.$ac_ext
23563 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_vfork_works" >&5
23564 $as_echo "$ac_cv_func_vfork_works" >&6; }
23567 if test "x$ac_cv_func_fork_works" = xcross; then
23568 ac_cv_func_vfork_works=$ac_cv_func_vfork
23569 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: result $ac_cv_func_vfork_works guessed because of cross compilation" >&5
23570 $as_echo "$as_me: WARNING: result $ac_cv_func_vfork_works guessed because of cross compilation" >&2;}
23573 if test "x$ac_cv_func_vfork_works" = xyes; then
23575 $as_echo "#define HAVE_WORKING_VFORK 1" >>confdefs.h
23579 $as_echo "#define vfork fork" >>confdefs.h
23582 if test "x$ac_cv_func_fork_works" = xyes; then
23584 $as_echo "#define HAVE_WORKING_FORK 1" >>confdefs.h
23589 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for nl_langinfo and CODESET" >&5
23590 $as_echo_n "checking for nl_langinfo and CODESET... " >&6; }
23591 if test "${emacs_cv_langinfo_codeset+set}" = set; then :
23592 $as_echo_n "(cached) " >&6
23594 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23595 /* end confdefs.h. */
23596 #include <langinfo.h>
23600 char* cs = nl_langinfo(CODESET);
23605 if ac_fn_c_try_link "$LINENO"; then :
23606 emacs_cv_langinfo_codeset=yes
23608 emacs_cv_langinfo_codeset=no
23610 rm -f core conftest.err conftest.$ac_objext \
23611 conftest$ac_exeext conftest.$ac_ext
23614 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $emacs_cv_langinfo_codeset" >&5
23615 $as_echo "$emacs_cv_langinfo_codeset" >&6; }
23616 if test $emacs_cv_langinfo_codeset = yes; then
23618 $as_echo "#define HAVE_LANGINFO_CODESET 1" >>confdefs.h
23622 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for mbstate_t" >&5
23623 $as_echo_n "checking for mbstate_t... " >&6; }
23624 if test "${ac_cv_type_mbstate_t+set}" = set; then :
23625 $as_echo_n "(cached) " >&6
23627 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23628 /* end confdefs.h. */
23629 $ac_includes_default
23630 # include <wchar.h>
23634 mbstate_t x; return sizeof x;
23639 if ac_fn_c_try_compile "$LINENO"; then :
23640 ac_cv_type_mbstate_t=yes
23642 ac_cv_type_mbstate_t=no
23644 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23646 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_mbstate_t" >&5
23647 $as_echo "$ac_cv_type_mbstate_t" >&6; }
23648 if test $ac_cv_type_mbstate_t = yes; then
23650 $as_echo "#define HAVE_MBSTATE_T 1" >>confdefs.h
23654 $as_echo "#define mbstate_t int" >>confdefs.h
23658 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for C restricted array declarations" >&5
23659 $as_echo_n "checking for C restricted array declarations... " >&6; }
23660 if test "${emacs_cv_c_restrict_arr+set}" = set; then :
23661 $as_echo_n "(cached) " >&6
23663 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23664 /* end confdefs.h. */
23665 void fred (int x[__restrict]);
23674 if ac_fn_c_try_compile "$LINENO"; then :
23675 emacs_cv_c_restrict_arr=yes
23677 emacs_cv_c_restrict_arr=no
23679 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23681 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $emacs_cv_c_restrict_arr" >&5
23682 $as_echo "$emacs_cv_c_restrict_arr" >&6; }
23683 if test "$emacs_cv_c_restrict_arr" = yes; then
23685 $as_echo "#define __restrict_arr __restrict" >>confdefs.h
23691 # Set up the CFLAGS for real compilation, so we can substitute it.
23692 CFLAGS="$REAL_CFLAGS"
23693 CPPFLAGS="$REAL_CPPFLAGS"
23695 ## Hack to detect a buggy GCC version.
23696 if test "x$GCC" = xyes \
23697 && test x"`$CC --version 2> /dev/null | grep 'gcc.* 4.5.0'`" != x \
23698 && test x"`echo $CFLAGS | grep '\-O[23]'`" != x \
23699 && test x"`echo $CFLAGS | grep '\-fno-optimize-sibling-calls'`" = x; then
23700 as_fn_error "GCC 4.5.0 has problems compiling Emacs; see etc/PROBLEMS'." "$LINENO" 5
23703 version=$PACKAGE_VERSION
23705 ### Specify what sort of things we'll be editing into Makefile and config.h.
23706 ### Use configuration here uncanonicalized to avoid exceeding size limits.
23730 ## FIXME? Nothing uses @LD_SWITCH_X_SITE@.
23731 ## src/Makefile.in did add LD_SWITCH_X_SITE (as a cpp define) to the
23732 ## end of LIBX_BASE, but nothing ever set it.
23737 ## Used in lwlib/Makefile.in.
23739 if test -n "${machfile}"; then
23740 M_FILE="\$(srcdir)/${machfile}"
23744 S_FILE="\$(srcdir)/${opsysfile}"
23755 cat >>confdefs.h <<_ACEOF
23756 #define EMACS_CONFIGURATION "${canonical}"
23760 cat >>confdefs.h <<_ACEOF
23761 #define EMACS_CONFIG_OPTIONS "${ac_configure_args}"
23764 if test -n "$machfile"; then
23766 cat >>confdefs.h <<_ACEOF
23767 #define config_machfile "${machfile}"
23772 cat >>confdefs.h <<_ACEOF
23773 #define config_opsysfile "${opsysfile}"
23780 if test "${HAVE_X_WINDOWS}" = "yes" ; then
23782 $as_echo "#define HAVE_X_WINDOWS 1" >>confdefs.h
23785 XOBJ="xterm.o xfns.o xselect.o xrdb.o fontset.o xsmfns.o fringe.o image.o xsettings.o xgselect.o"
23787 if test "$HAVE_XFT" = "yes"; then
23788 FONT_OBJ="$FONT_OBJ ftfont.o xftfont.o ftxfont.o"
23789 elif test "$HAVE_FREETYPE" = "yes"; then
23790 FONT_OBJ="$FONT_OBJ ftfont.o ftxfont.o"
23800 if test "${USE_X_TOOLKIT}" != "none" ; then
23801 WIDGET_OBJ=widget.o
23803 $as_echo "#define USE_X_TOOLKIT 1" >>confdefs.h
23805 if test "${USE_X_TOOLKIT}" = "LUCID"; then
23807 $as_echo "#define USE_LUCID 1" >>confdefs.h
23809 elif test "${USE_X_TOOLKIT}" = "MOTIF"; then
23811 $as_echo "#define USE_MOTIF 1" >>confdefs.h
23816 ## Paul Abrahams <abrahams at equinox.shaysnet.com> says this is needed.
23817 MOTIF_LIBW="$MOTIF_LIBW -lXpm"
23821 ## Richard Anthony Ryan <ryanr at ellingtn.ftc.nrcs.usda.gov>
23822 ## says -lXimp is needed in UNIX_SV ... 4.2 1.1.2.
23823 MOTIF_LIBW="MOTIF_LIBW -lXimp"
23827 ## olson@mcs.anl.gov says -li18n is needed by -lXm.
23828 MOTIF_LIBW="$MOTIF_LIBW -li18n"
23831 MOTIF_LIBW="$MOTIF_LIBW $LIBXP"
23837 case "$USE_X_TOOLKIT" in
23838 MOTIF) TOOLKIT_LIBW="$MOTIF_LIBW" ;;
23839 LUCID) TOOLKIT_LIBW="$LUCID_LIBW" ;;
23840 none) test "x$HAVE_GTK" = "xyes" && TOOLKIT_LIBW="$GTK_LIBS -lXcomposite" ;;
23844 if test "$USE_X_TOOLKIT" = "none"; then
23845 LIBXT_OTHER="\$(LIBXSM)"
23846 OLDXMENU_TARGET="really-oldXMenu"
23848 LIBXT_OTHER="\$(LIBXMU) -lXt \$(LIBXTR6) -lXext"
23849 OLDXMENU_TARGET="really-lwlib"
23853 ## The X Menu stuff is present in the X10 distribution, but missing
23854 ## from X11. If we have X10, just use the installed library;
23855 ## otherwise, use our own copy.
23856 if test "${HAVE_X11}" = "yes" ; then
23858 $as_echo "#define HAVE_X11 1" >>confdefs.h
23861 if test "$USE_X_TOOLKIT" = "none"; then
23862 OLDXMENU="\${oldXMenudir}/libXMenu11.a"
23864 OLDXMENU="\${lwlibdir}/liblw.a"
23866 LIBXMENU="\$(OLDXMENU)"
23867 LIBX_OTHER="\$(LIBXT) \$(LIBX_EXTRA)"
23868 OLDXMENU_DEPS="\${OLDXMENU} ../src/\${OLDXMENU}"
23870 ## For a syntactically valid Makefile; not actually used for anything.
23871 ## See comments in src/Makefile.in.
23873 ## FIXME This case (!HAVE_X11 && HAVE_X_WINDOWS) is no longer possible(?).
23874 if test "${HAVE_X_WINDOWS}" = "yes"; then
23883 if test "$HAVE_GTK" = "yes" || test "$HAVE_MENUS" != "yes"; then
23896 if test "${HAVE_MENUS}" = "yes" ; then
23898 $as_echo "#define HAVE_MENUS 1" >>confdefs.h
23902 if test "${GNU_MALLOC}" = "yes" ; then
23904 $as_echo "#define GNU_MALLOC 1" >>confdefs.h
23909 if test "${REL_ALLOC}" = "yes" ; then
23911 $as_echo "#define REL_ALLOC 1" >>confdefs.h
23914 test "$system_malloc" != "yes" && RALLOC_OBJ=ralloc.o
23918 if test "$opsys" = "cygwin"; then
23919 CYGWIN_OBJ="sheap.o"
23920 ## Cygwin differs because of its unexec().
23922 POST_ALLOC_OBJ=lastfile.o
23925 PRE_ALLOC_OBJ=lastfile.o
23934 aix4-2) LD_SWITCH_SYSTEM_TEMACS="-Wl,-bnodelcsect" ;;
23937 ## The -headerpad option tells ld (see man page) to leave room at the
23938 ## end of the header for adding load commands. Needed for dumping.
23939 ## 0x690 is the total size of 30 segment load commands (at 56
23940 ## each); under Cocoa 31 commands are required.
23941 if test "$HAVE_NS" = "yes"; then
23942 libs_nsgui="-framework AppKit"
23943 headerpad_extra=6C8
23946 headerpad_extra=690
23948 LD_SWITCH_SYSTEM_TEMACS="-prebind $libs_nsgui -Xlinker -headerpad -Xlinker $headerpad_extra"
23950 ## This is here because src/Makefile.in did some extra fiddling around
23951 ## with LD_SWITCH_SYSTEM. The cpp logic was:
23952 ## #ifndef LD_SWITCH_SYSTEM
23953 ## #if !defined (__GNUC__) && ((defined (BSD_SYSTEM) && !defined (COFF)))
23954 ## Since all the *bsds define LD_SWITCH_SYSTEM, this simplifies to:
23955 ## not using gcc, darwin system not on an alpha (ie darwin, since
23956 ## darwin + alpha does not occur).
23957 ## Because this was done in src/Makefile.in, the resulting part of
23958 ## LD_SWITCH_SYSTEM was not used in configure (ie, in ac_link).
23959 ## It therefore seems cleaner to put this in LD_SWITCH_SYSTEM_TEMACS,
23960 ## rather than LD_SWITCH_SYSTEM.
23961 test "x$LD_SWITCH_SYSTEM" = "x" && test "x$GCC" != "xyes" && \
23962 LD_SWITCH_SYSTEM_TEMACS="-X $LD_SWITCH_SYSTEM_TEMACS"
23965 ## LD_SWITCH_X_SITE_AUX is a -R option saying where to find X at run-time.
23966 ## When handled by cpp, this was in LD_SWITCH_SYSTEM. However, at
23967 ## the point where configure sourced the s/*.h file, LD_SWITCH_X_SITE_AUX
23968 ## had not yet been defined and was expanded to null. Hence LD_SWITCH_SYSTEM
23969 ## had different values in configure (in ac_link) and src/Makefile.in.
23970 ## It seems clearer therefore to put this piece in LD_SWITCH_SYSTEM_TEMACS.
23971 gnu-linux) LD_SWITCH_SYSTEM_TEMACS="\$(LD_SWITCH_X_SITE_AUX)" ;;
23973 *) LD_SWITCH_SYSTEM_TEMACS= ;;
23976 if test "$NS_IMPL_GNUSTEP" = "yes"; then
23977 LD_SWITCH_SYSTEM_TEMACS="${LD_SWITCH_SYSTEM_TEMACS} -L${GNUSTEP_SYSTEM_LIBRARIES} ${GNUSTEP_LOCAL_LIBRARIES} -lgnustep-gui -lgnustep-base -lobjc -lpthread"
23986 ## gnu: GNU needs its own crt0.
23987 aix4-2|cygwin|darwin|gnu|hpux*|irix6-5|sol2*|unixware) ORDINARY_LINK=yes ;;
23989 ## On post 1.3 releases of NetBSD, gcc -nostdlib also clears the
23990 ## library search parth, i.e. it won't search /usr/lib for libc and
23991 ## friends. Using -nostartfiles instead avoids this problem, and
23992 ## will also work on earlier NetBSD releases.
23993 netbsd|openbsd) LD_FIRSTFLAG="-nostartfiles" ;;
23995 ## macpcc: NAKAJI Hiroyuki <nakaji@tutrp.tut.ac.jp> says
23996 ## MkLinux/LinuxPPC needs this.
23997 ## ibms390x only supports opsys = gnu-linux so it can be added here.
24000 macppc|ibms390x) LD_FIRSTFLAG="-nostdlib" ;;
24006 if test "x$ORDINARY_LINK" = "xyes"; then
24010 $as_echo "#define ORDINARY_LINK 1" >>confdefs.h
24013 ## The system files defining neither ORDINARY_LINK nor LD_FIRSTFLAG are:
24014 ## freebsd, gnu-* not on macppc|ibms390x.
24015 elif test "x$GCC" = "xyes" && test "x$LD_FIRSTFLAG" = "x"; then
24017 ## Versions of GCC >= 2.0 put their library, libgcc.a, in obscure
24018 ## places that are difficult to figure out at make time. Fortunately,
24019 ## these same versions allow you to pass arbitrary flags on to the
24020 ## linker, so there is no reason not to use it as a linker.
24022 ## Well, it is not quite perfect. The "-nostdlib" keeps GCC from
24023 ## searching for libraries in its internal directories, so we have to
24024 ## ask GCC explicitly where to find libgcc.a (LIB_GCC below).
24025 LD_FIRSTFLAG="-nostdlib"
24028 ## FIXME? What setting of EDIT_LDFLAGS should this have?
24029 test "$NS_IMPL_GNUSTEP" = "yes" && LD_FIRSTFLAG="-rdynamic"
24034 ## FIXME? The logic here is not precisely the same as that above.
24035 ## There is no check here for a pre-defined LD_FIRSTFLAG.
24036 ## Should we only be setting LIB_GCC if LD ~ -nostdlib?
24038 if test "x$GCC" = "xyes" && test "x$ORDINARY_LINK" != "xyes"; then
24041 freebsd|netbsd|openbsd) LIB_GCC= ;;
24044 ## armin76@gentoo.org reported that the lgcc_s flag is necessary to
24045 ## build on ARM EABI under GNU/Linux. (Bug#5518)
24051 ## FIXME? s/gnu-linux.h used to define LIB_GCC as below, then
24052 ## immediately undefine it again and redefine it to empty.
24053 ## Was the C_SWITCH_X_SITE part really necessary?
24054 ## LIB_GCC=`$CC $C_SWITCH_X_SITE -print-libgcc-file-name`
24060 ## Ask GCC where to find libgcc.a.
24061 *) LIB_GCC=`$CC -print-libgcc-file-name 2> /dev/null` ;;
24066 ## If we're using X11/GNUstep, define some consequences.
24067 if test "$HAVE_X_WINDOWS" = "yes" || test "$HAVE_NS" = "yes"; then
24069 $as_echo "#define HAVE_WINDOW_SYSTEM 1" >>confdefs.h
24072 $as_echo "#define HAVE_MOUSE 1" >>confdefs.h
24079 #### Report on what we decided to do.
24080 #### Report GTK as a toolkit, even if it doesn't use Xt.
24081 #### It makes printing result more understandable as using GTK sets
24082 #### toolkit_scroll_bars to yes by default.
24083 if test "${HAVE_GTK}" = "yes"; then
24088 if test -n "$machfile"; then
24089 and_machfile=" and \`${machfile}'"
24093 Configured for \`${canonical}'.
24095 Where should the build process find the source code? ${srcdir}
24096 What operating system and machine description files should Emacs use?
24097 \`${opsysfile}'${and_machfile}
24098 What compiler should emacs be built with? ${CC} ${CFLAGS}
24099 Should Emacs use the GNU version of malloc? ${GNU_MALLOC}${GNU_MALLOC_reason}
24100 Should Emacs use a relocating allocator for buffers? ${REL_ALLOC}
24101 Should Emacs use mmap(2) for buffer allocation? $use_mmap_for_buffers
24102 What window system should Emacs use? ${window_system}
24103 What toolkit should Emacs use? ${USE_X_TOOLKIT}"
24105 if test -n "${x_includes}"; then
24106 echo " Where do we find X Windows header files? ${x_includes}"
24108 echo " Where do we find X Windows header files? Standard dirs"
24110 if test -n "${x_libraries}"; then
24111 echo " Where do we find X Windows libraries? ${x_libraries}"
24113 echo " Where do we find X Windows libraries? Standard dirs"
24116 echo " Does Emacs use -lXaw3d? ${HAVE_XAW3D}"
24117 echo " Does Emacs use -lXpm? ${HAVE_XPM}"
24118 echo " Does Emacs use -ljpeg? ${HAVE_JPEG}"
24119 echo " Does Emacs use -ltiff? ${HAVE_TIFF}"
24120 echo " Does Emacs use a gif library? ${HAVE_GIF} $LIBGIF"
24121 echo " Does Emacs use -lpng? ${HAVE_PNG}"
24122 echo " Does Emacs use -lrsvg-2? ${HAVE_RSVG}"
24123 echo " Does Emacs use imagemagick? ${HAVE_IMAGEMAGICK}"
24125 echo " Does Emacs use -lgpm? ${HAVE_GPM}"
24126 echo " Does Emacs use -ldbus? ${HAVE_DBUS}"
24127 echo " Does Emacs use -lgconf? ${HAVE_GCONF}"
24128 echo " Does Emacs use -lselinux? ${HAVE_LIBSELINUX}"
24129 echo " Does Emacs use -lgnutls (2.6.x or higher)? ${HAVE_GNUTLS}"
24130 echo " Does Emacs use -lxml2? ${HAVE_LIBXML2}"
24132 echo " Does Emacs use -lfreetype? ${HAVE_FREETYPE}"
24133 echo " Does Emacs use -lm17n-flt? ${HAVE_M17N_FLT}"
24134 echo " Does Emacs use -lotf? ${HAVE_LIBOTF}"
24135 echo " Does Emacs use -lxft? ${HAVE_XFT}"
24137 echo " Does Emacs use toolkit scroll bars? ${USE_TOOLKIT_SCROLL_BARS}"
24140 if test $USE_XASSERTS = yes; then
24141 echo " Compiling with asserts turned on."
24142 CPPFLAGS="$CPPFLAGS -DXASSERTS=1"
24147 if test "$HAVE_NS" = "yes"; then
24149 echo "You must run \"make install\" in order to test the built application.
24150 The installed application will go to nextstep/Emacs.app and can be
24151 run or moved from there."
24152 if test "$EN_NS_SELF_CONTAINED" = "yes"; then
24153 echo "The application will be fully self-contained."
24155 echo "The lisp resources for the application will be installed under ${prefix}.
24156 You may need to run \"make install\" with sudo. The application will fail
24157 to run if these resources are not installed."
24163 # Remove any trailing slashes in these variables.
24164 test "${prefix}" != NONE &&
24165 prefix=`echo "${prefix}" | sed 's,\([^/]\)/*$,\1,'`
24166 test "${exec_prefix}" != NONE &&
24167 exec_prefix=`echo "${exec_prefix}" | sed 's,\([^/]\)/*$,\1,'`
24169 SUBDIR_MAKEFILES="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"
24171 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"
24174 opt_makefile=test/automated/Makefile
24176 if test -f $srcdir/${opt_makefile}.in; then
24177 SUBDIR_MAKEFILES="$SUBDIR_MAKEFILES $opt_makefile"
24178 ac_config_files="$ac_config_files test/automated/Makefile"
24182 SUBDIR_MAKEFILES_IN=`echo " ${SUBDIR_MAKEFILES}" | sed -e 's| | $(srcdir)/|g' -e 's|Makefile|Makefile.in|g'`
24186 ac_config_commands="$ac_config_commands mkdirs"
24189 ac_config_commands="$ac_config_commands epaths"
24192 ac_config_commands="$ac_config_commands gdbinit"
24195 cat >confcache <<\_ACEOF
24196 # This file is a shell script that caches the results of configure
24197 # tests run on this system so they can be shared between configure
24198 # scripts and configure runs, see configure's option --config-cache.
24199 # It is not useful on other systems. If it contains results you don't
24200 # want to keep, you may remove or edit it.
24202 # config.status only pays attention to the cache file if you give it
24203 # the --recheck option to rerun configure.
24205 # `ac_cv_env_foo' variables (set or unset) will be overridden when
24206 # loading this file, other *unset* `ac_cv_foo' will be assigned the
24207 # following values.
24211 # The following way of writing the cache mishandles newlines in values,
24212 # but we know of no workaround that is simple, portable, and efficient.
24213 # So, we kill variables containing newlines.
24214 # Ultrix sh set writes to stderr and can't be redirected directly,
24215 # and sets the high bit in the cache file unless we assign to the vars.
24217 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
24218 eval ac_val=\$$ac_var
24222 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
24223 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
24226 _ | IFS | as_nl) ;; #(
24227 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
24228 *) { eval $ac_var=; unset $ac_var;} ;;
24234 case $as_nl`(ac_space=' '; set) 2>&1` in #(
24235 *${as_nl}ac_space=\ *)
24236 # `set' does not quote correctly, so add quotes: double-quote
24237 # substitution turns \\\\ into \\, and sed turns \\ into \.
24240 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
24243 # `set' quotes correctly as required by POSIX, so do not add quotes.
24244 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
24253 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
24255 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
24257 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
24258 if test -w "$cache_file"; then
24259 test "x$cache_file" != "x/dev/null" &&
24260 { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
24261 $as_echo "$as_me: updating cache $cache_file" >&6;}
24262 cat confcache >$cache_file
24264 { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
24265 $as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
24270 test "x$prefix" = xNONE && prefix=$ac_default_prefix
24271 # Let make expand exec_prefix.
24272 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
24274 DEFS=-DHAVE_CONFIG_H
24278 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
24279 # 1. Remove the extension, and $U if already installed.
24280 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
24281 ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
24282 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
24283 # will be set to the directory where LIBOBJS objects are built.
24284 as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
24285 as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
24287 LIBOBJS=$ac_libobjs
24289 LTLIBOBJS=$ac_ltlibobjs
24292 if test -n "$EXEEXT"; then
24294 am__EXEEXT_FALSE='#'
24296 am__EXEEXT_TRUE='#'
24300 if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
24301 as_fn_error "conditional \"AMDEP\" was never defined.
24302 Usually this means the macro was only invoked conditionally." "$LINENO" 5
24304 if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
24305 as_fn_error "conditional \"am__fastdepCC\" was never defined.
24306 Usually this means the macro was only invoked conditionally." "$LINENO" 5
24309 if test -z "${GL_COND_LIBTOOL_TRUE}" && test -z "${GL_COND_LIBTOOL_FALSE}"; then
24310 as_fn_error "conditional \"GL_COND_LIBTOOL\" was never defined.
24311 Usually this means the macro was only invoked conditionally." "$LINENO" 5
24313 if test -z "${GL_GENERATE_ALLOCA_H_TRUE}" && test -z "${GL_GENERATE_ALLOCA_H_FALSE}"; then
24314 as_fn_error "conditional \"GL_GENERATE_ALLOCA_H\" was never defined.
24315 Usually this means the macro was only invoked conditionally." "$LINENO" 5
24318 if test -z "${GL_GENERATE_STDINT_H_TRUE}" && test -z "${GL_GENERATE_STDINT_H_FALSE}"; then
24319 as_fn_error "conditional \"GL_GENERATE_STDINT_H\" was never defined.
24320 Usually this means the macro was only invoked conditionally." "$LINENO" 5
24322 if test -z "${GL_GENERATE_STDARG_H_TRUE}" && test -z "${GL_GENERATE_STDARG_H_FALSE}"; then
24323 as_fn_error "conditional \"GL_GENERATE_STDARG_H\" was never defined.
24324 Usually this means the macro was only invoked conditionally." "$LINENO" 5
24326 if test -z "${GL_GENERATE_STDBOOL_H_TRUE}" && test -z "${GL_GENERATE_STDBOOL_H_FALSE}"; then
24327 as_fn_error "conditional \"GL_GENERATE_STDBOOL_H\" was never defined.
24328 Usually this means the macro was only invoked conditionally." "$LINENO" 5
24330 if test -z "${GL_GENERATE_STDDEF_H_TRUE}" && test -z "${GL_GENERATE_STDDEF_H_FALSE}"; then
24331 as_fn_error "conditional \"GL_GENERATE_STDDEF_H\" was never defined.
24332 Usually this means the macro was only invoked conditionally." "$LINENO" 5
24334 if test -z "${gl_GNULIB_ENABLED_dosname_TRUE}" && test -z "${gl_GNULIB_ENABLED_dosname_FALSE}"; then
24335 as_fn_error "conditional \"gl_GNULIB_ENABLED_dosname\" was never defined.
24336 Usually this means the macro was only invoked conditionally." "$LINENO" 5
24338 if test -z "${gl_GNULIB_ENABLED_be453cec5eecf5731a274f2de7f2db36_TRUE}" && test -z "${gl_GNULIB_ENABLED_be453cec5eecf5731a274f2de7f2db36_FALSE}"; then
24339 as_fn_error "conditional \"gl_GNULIB_ENABLED_be453cec5eecf5731a274f2de7f2db36\" was never defined.
24340 Usually this means the macro was only invoked conditionally." "$LINENO" 5
24344 if test -z "${gl_GNULIB_ENABLED_sigprocmask_TRUE}" && test -z "${gl_GNULIB_ENABLED_sigprocmask_FALSE}"; then
24345 as_fn_error "conditional \"gl_GNULIB_ENABLED_sigprocmask\" was never defined.
24346 Usually this means the macro was only invoked conditionally." "$LINENO" 5
24348 >>>>>>> MERGE-SOURCE
24349 if test -z "${gl_GNULIB_ENABLED_stat_TRUE}" && test -z "${gl_GNULIB_ENABLED_stat_FALSE}"; then
24350 as_fn_error "conditional \"gl_GNULIB_ENABLED_stat\" was never defined.
24351 Usually this means the macro was only invoked conditionally." "$LINENO" 5
24355 if test -z "${gl_GNULIB_ENABLED_strtoll_TRUE}" && test -z "${gl_GNULIB_ENABLED_strtoll_FALSE}"; then
24356 as_fn_error "conditional \"gl_GNULIB_ENABLED_strtoll\" was never defined.
24357 Usually this means the macro was only invoked conditionally." "$LINENO" 5
24359 >>>>>>> MERGE-SOURCE
24360 if test -z "${gl_GNULIB_ENABLED_strtoull_TRUE}" && test -z "${gl_GNULIB_ENABLED_strtoull_FALSE}"; then
24361 as_fn_error "conditional \"gl_GNULIB_ENABLED_strtoull\" was never defined.
24362 Usually this means the macro was only invoked conditionally." "$LINENO" 5
24364 if test -z "${gl_GNULIB_ENABLED_verify_TRUE}" && test -z "${gl_GNULIB_ENABLED_verify_FALSE}"; then
24365 as_fn_error "conditional \"gl_GNULIB_ENABLED_verify\" was never defined.
24366 Usually this means the macro was only invoked conditionally." "$LINENO" 5
24371 if test -n "$gl_LIBOBJS"; then
24372 # Remove the extension.
24373 sed_drop_objext='s/\.o$//;s/\.obj$//'
24374 for i in `for i in $gl_LIBOBJS; do echo "$i"; done | sed -e "$sed_drop_objext" | sort | uniq`; do
24375 gl_libobjs="$gl_libobjs $i.$ac_objext"
24376 gl_ltlibobjs="$gl_ltlibobjs $i.lo"
24379 gl_LIBOBJS=$gl_libobjs
24381 gl_LTLIBOBJS=$gl_ltlibobjs
24387 if test -n "$gltests_LIBOBJS"; then
24388 # Remove the extension.
24389 sed_drop_objext='s/\.o$//;s/\.obj$//'
24390 for i in `for i in $gltests_LIBOBJS; do echo "$i"; done | sed -e "$sed_drop_objext" | sort | uniq`; do
24391 gltests_libobjs="$gltests_libobjs $i.$ac_objext"
24392 gltests_ltlibobjs="$gltests_ltlibobjs $i.lo"
24395 gltests_LIBOBJS=$gltests_libobjs
24397 gltests_LTLIBOBJS=$gltests_ltlibobjs
24401 : ${CONFIG_STATUS=./config.status}
24403 ac_clean_files_save=$ac_clean_files
24404 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
24405 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
24406 $as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
24408 cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
24410 # Generated by $as_me.
24411 # Run this file to recreate the current configuration.
24412 # Compiler output produced by configure, useful for debugging
24413 # configure, is in config.log if it exists.
24416 ac_cs_recheck=false
24419 SHELL=\${CONFIG_SHELL-$SHELL}
24422 cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
24423 ## -------------------- ##
24424 ## M4sh Initialization. ##
24425 ## -------------------- ##
24427 # Be more Bourne compatible
24428 DUALCASE=1; export DUALCASE # for MKS sh
24429 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
24432 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
24433 # is contrary to our usage. Disable this feature.
24434 alias -g '${1+"$@"}'='"$@"'
24435 setopt NO_GLOB_SUBST
24437 case `(set -o) 2>/dev/null` in #(
24449 # Printing a long string crashes Solaris 7 /usr/bin/printf.
24450 as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
24451 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
24452 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
24453 # Prefer a ksh shell builtin over an external printf program on Solaris,
24454 # but without wasting forks for bash or zsh.
24455 if test -z "$BASH_VERSION$ZSH_VERSION" \
24456 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
24457 as_echo='print -r --'
24458 as_echo_n='print -rn --'
24459 elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
24460 as_echo='printf %s\n'
24461 as_echo_n='printf %s'
24463 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
24464 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
24465 as_echo_n='/usr/ucb/echo -n'
24467 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
24468 as_echo_n_body='eval
24472 expr "X$arg" : "X\\(.*\\)$as_nl";
24473 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
24475 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
24477 export as_echo_n_body
24478 as_echo_n='sh -c $as_echo_n_body as_echo'
24480 export as_echo_body
24481 as_echo='sh -c $as_echo_body as_echo'
24484 # The user is always right.
24485 if test "${PATH_SEPARATOR+set}" != set; then
24487 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
24488 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
24495 # We need space, tab and new line, in precisely that order. Quoting is
24496 # there to prevent editors from complaining about space-tab.
24497 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
24498 # splitting by setting IFS to empty value.)
24501 # Find who we are. Look in the path if we contain no directory separator.
24503 *[\\/]* ) as_myself=$0 ;;
24504 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
24505 for as_dir in $PATH
24508 test -z "$as_dir" && as_dir=.
24509 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
24515 # We did not find ourselves, most probably we were run as `sh COMMAND'
24516 # in which case we are not to be found in the path.
24517 if test "x$as_myself" = x; then
24520 if test ! -f "$as_myself"; then
24521 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
24525 # Unset variables that we do not need and which cause bugs (e.g. in
24526 # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
24527 # suppresses any "Segmentation fault" message there. '((' could
24528 # trigger a bug in pdksh 5.2.14.
24529 for as_var in BASH_ENV ENV MAIL MAILPATH
24530 do eval test x\${$as_var+set} = xset \
24531 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
24544 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
24547 # as_fn_error ERROR [LINENO LOG_FD]
24548 # ---------------------------------
24549 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
24550 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
24551 # script with status $?, using 1 if that was 0.
24554 as_status=$?; test $as_status -eq 0 && as_status=1
24556 as_lineno=${as_lineno-"$2"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
24557 $as_echo "$as_me:${as_lineno-$LINENO}: error: $1" >&$3
24559 $as_echo "$as_me: error: $1" >&2
24560 as_fn_exit $as_status
24564 # as_fn_set_status STATUS
24565 # -----------------------
24566 # Set $? to STATUS, without forking.
24567 as_fn_set_status ()
24570 } # as_fn_set_status
24572 # as_fn_exit STATUS
24573 # -----------------
24574 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
24578 as_fn_set_status $1
24584 # Portably unset VAR.
24587 { eval $1=; unset $1;}
24589 as_unset=as_fn_unset
24590 # as_fn_append VAR VALUE
24591 # ----------------------
24592 # Append the text in VALUE to the end of the definition contained in VAR. Take
24593 # advantage of any shell optimizations that allow amortized linear growth over
24594 # repeated appends, instead of the typical quadratic growth present in naive
24596 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
24597 eval 'as_fn_append ()
24608 # as_fn_arith ARG...
24609 # ------------------
24610 # Perform arithmetic evaluation on the ARGs, and store the result in the
24611 # global $as_val. Take advantage of shells that can avoid forks. The arguments
24612 # must be portable across $(()) and expr.
24613 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
24614 eval 'as_fn_arith ()
24621 as_val=`expr "$@" || test $? -eq 1`
24626 if expr a : '\(a\)' >/dev/null 2>&1 &&
24627 test "X`expr 00001 : '.*\(...\)'`" = X001; then
24633 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
24634 as_basename=basename
24639 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
24645 as_me=`$as_basename -- "$0" ||
24646 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
24647 X"$0" : 'X\(//\)$' \| \
24648 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
24650 sed '/^.*\/\([^/][^/]*\)\/*$/{
24664 # Avoid depending upon Character Ranges.
24665 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
24666 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
24667 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
24668 as_cr_digits='0123456789'
24669 as_cr_alnum=$as_cr_Letters$as_cr_digits
24671 ECHO_C= ECHO_N= ECHO_T=
24672 case `echo -n x` in #(((((
24674 case `echo 'xy\c'` in
24675 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
24677 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
24684 rm -f conf$$ conf$$.exe conf$$.file
24685 if test -d conf$$.dir; then
24686 rm -f conf$$.dir/conf$$.file
24689 mkdir conf$$.dir 2>/dev/null
24691 if (echo >conf$$.file) 2>/dev/null; then
24692 if ln -s conf$$.file conf$$ 2>/dev/null; then
24694 # ... but there are two gotchas:
24695 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
24696 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
24697 # In both cases, we have to default to `cp -p'.
24698 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
24700 elif ln conf$$.file conf$$ 2>/dev/null; then
24708 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
24709 rmdir conf$$.dir 2>/dev/null
24714 # Create "$as_dir" as a directory, including parents if necessary.
24719 -*) as_dir=./$as_dir;;
24721 test -d "$as_dir" || eval $as_mkdir_p || {
24725 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
24726 *) as_qdir=$as_dir;;
24728 as_dirs="'$as_qdir' $as_dirs"
24729 as_dir=`$as_dirname -- "$as_dir" ||
24730 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
24731 X"$as_dir" : 'X\(//\)[^/]' \| \
24732 X"$as_dir" : 'X\(//\)$' \| \
24733 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
24734 $as_echo X"$as_dir" |
24735 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
24739 /^X\(\/\/\)[^/].*/{
24752 test -d "$as_dir" && break
24754 test -z "$as_dirs" || eval "mkdir $as_dirs"
24755 } || test -d "$as_dir" || as_fn_error "cannot create directory $as_dir"
24759 if mkdir -p . 2>/dev/null; then
24760 as_mkdir_p='mkdir -p "$as_dir"'
24762 test -d ./-p && rmdir ./-p
24766 if test -x / >/dev/null 2>&1; then
24767 as_test_x='test -x'
24769 if ls -dL / >/dev/null 2>&1; then
24776 if test -d "$1"; then
24782 case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in #((
24783 ???[sx]*):;;*)false;;esac;fi
24787 as_executable_p=$as_test_x
24789 # Sed expression to map a string onto a valid CPP name.
24790 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
24792 # Sed expression to map a string onto a valid variable name.
24793 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
24797 ## ----------------------------------- ##
24798 ## Main body of $CONFIG_STATUS script. ##
24799 ## ----------------------------------- ##
24801 test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
24803 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
24804 # Save the log message, to keep $0 and so on meaningful, and to
24805 # report actual input values of CONFIG_FILES etc. instead of their
24806 # values after options handling.
24808 This file was extended by emacs $as_me 24.0.50, which was
24809 generated by GNU Autoconf 2.65. Invocation command line was
24811 CONFIG_FILES = $CONFIG_FILES
24812 CONFIG_HEADERS = $CONFIG_HEADERS
24813 CONFIG_LINKS = $CONFIG_LINKS
24814 CONFIG_COMMANDS = $CONFIG_COMMANDS
24817 on `(hostname || uname -n) 2>/dev/null | sed 1q`
24822 case $ac_config_files in *"
24823 "*) set x $ac_config_files; shift; ac_config_files=$*;;
24826 case $ac_config_headers in *"
24827 "*) set x $ac_config_headers; shift; ac_config_headers=$*;;
24831 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
24832 # Files that config.status was made for.
24833 config_files="$ac_config_files"
24834 config_headers="$ac_config_headers"
24835 config_commands="$ac_config_commands"
24839 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
24841 \`$as_me' instantiates files and other configuration actions
24842 from templates according to the current configuration. Unless the files
24843 and actions are specified as TAGs, all are instantiated by default.
24845 Usage: $0 [OPTION]... [TAG]...
24847 -h, --help print this help, then exit
24848 -V, --version print version number and configuration settings, then exit
24849 --config print configuration, then exit
24850 -q, --quiet, --silent
24851 do not print progress messages
24852 -d, --debug don't remove temporary files
24853 --recheck update $as_me by reconfiguring in the same conditions
24854 --file=FILE[:TEMPLATE]
24855 instantiate the configuration file FILE
24856 --header=FILE[:TEMPLATE]
24857 instantiate the configuration header FILE
24859 Configuration files:
24862 Configuration headers:
24865 Configuration commands:
24868 Report bugs to the package provider."
24871 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
24872 ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`"
24874 emacs config.status 24.0.50
24875 configured by $0, generated by GNU Autoconf 2.65,
24876 with options \\"\$ac_cs_config\\"
24878 Copyright (C) 2009 Free Software Foundation, Inc.
24879 This config.status script is free software; the Free Software Foundation
24880 gives unlimited permission to copy, distribute and modify it."
24887 test -n "\$AWK" || AWK=awk
24890 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
24891 # The default lists apply if the user does not specify any file.
24897 ac_option=`expr "X$1" : 'X\([^=]*\)='`
24898 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
24909 # Handling of the options.
24910 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
24912 --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
24913 $as_echo "$ac_cs_version"; exit ;;
24914 --config | --confi | --conf | --con | --co | --c )
24915 $as_echo "$ac_cs_config"; exit ;;
24916 --debug | --debu | --deb | --de | --d | -d )
24918 --file | --fil | --fi | --f )
24921 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
24923 as_fn_append CONFIG_FILES " '$ac_optarg'"
24924 ac_need_defaults=false;;
24925 --header | --heade | --head | --hea )
24928 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
24930 as_fn_append CONFIG_HEADERS " '$ac_optarg'"
24931 ac_need_defaults=false;;
24933 # Conflict between --help and --header
24934 as_fn_error "ambiguous option: \`$1'
24935 Try \`$0 --help' for more information.";;
24936 --help | --hel | -h )
24937 $as_echo "$ac_cs_usage"; exit ;;
24938 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
24939 | -silent | --silent | --silen | --sile | --sil | --si | --s)
24942 # This is an error.
24943 -*) as_fn_error "unrecognized option: \`$1'
24944 Try \`$0 --help' for more information." ;;
24946 *) as_fn_append ac_config_targets " $1"
24947 ac_need_defaults=false ;;
24953 ac_configure_extra_args=
24955 if $ac_cs_silent; then
24957 ac_configure_extra_args="$ac_configure_extra_args --silent"
24961 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
24962 if \$ac_cs_recheck; then
24963 set X '$SHELL' '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
24965 \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
24966 CONFIG_SHELL='$SHELL'
24967 export CONFIG_SHELL
24972 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
24976 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
24977 ## Running $as_me. ##
24983 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
24987 AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"
24988 GCC="$GCC" NON_GNU_CPP="$NON_GNU_CPP" CPP="$CPP" CPPFLAGS="$CPPFLAGS"
24992 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
24994 # Handling of arguments.
24995 for ac_config_target in $ac_config_targets
24997 case $ac_config_target in
24998 "src/config.h") CONFIG_HEADERS="$CONFIG_HEADERS src/config.h:src/config.in" ;;
24999 "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
25000 "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
25001 "lib/Makefile") CONFIG_FILES="$CONFIG_FILES lib/Makefile" ;;
25002 "lib-src/Makefile") CONFIG_FILES="$CONFIG_FILES lib-src/Makefile" ;;
25003 "oldXMenu/Makefile") CONFIG_FILES="$CONFIG_FILES oldXMenu/Makefile" ;;
25004 "doc/emacs/Makefile") CONFIG_FILES="$CONFIG_FILES doc/emacs/Makefile" ;;
25005 "doc/misc/Makefile") CONFIG_FILES="$CONFIG_FILES doc/misc/Makefile" ;;
25006 "doc/lispintro/Makefile") CONFIG_FILES="$CONFIG_FILES doc/lispintro/Makefile" ;;
25007 "doc/lispref/Makefile") CONFIG_FILES="$CONFIG_FILES doc/lispref/Makefile" ;;
25008 "src/Makefile") CONFIG_FILES="$CONFIG_FILES src/Makefile" ;;
25009 "lwlib/Makefile") CONFIG_FILES="$CONFIG_FILES lwlib/Makefile" ;;
25010 "lisp/Makefile") CONFIG_FILES="$CONFIG_FILES lisp/Makefile" ;;
25011 "leim/Makefile") CONFIG_FILES="$CONFIG_FILES leim/Makefile" ;;
25012 "test/automated/Makefile") CONFIG_FILES="$CONFIG_FILES test/automated/Makefile" ;;
25013 "mkdirs") CONFIG_COMMANDS="$CONFIG_COMMANDS mkdirs" ;;
25014 "epaths") CONFIG_COMMANDS="$CONFIG_COMMANDS epaths" ;;
25015 "gdbinit") CONFIG_COMMANDS="$CONFIG_COMMANDS gdbinit" ;;
25017 *) as_fn_error "invalid argument: \`$ac_config_target'" "$LINENO" 5;;
25022 # If the user did not use the arguments to specify the items to instantiate,
25023 # then the envvar interface is used. Set only those that are not.
25024 # We use the long form for the default assignment because of an extremely
25025 # bizarre bug on SunOS 4.1.3.
25026 if $ac_need_defaults; then
25027 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
25028 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
25029 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
25032 # Have a temporary directory for convenience. Make it in the build tree
25033 # simply because there is no reason against having it here, and in addition,
25034 # creating and moving files from /tmp can sometimes cause problems.
25035 # Hook for its removal unless debugging.
25036 # Note that there is a small window in which the directory will not be cleaned:
25037 # after its creation but before its name has been assigned to `$tmp'.
25041 trap 'exit_status=$?
25042 { test -z "$tmp" || test ! -d "$tmp" || rm -fr "$tmp"; } && exit $exit_status
25044 trap 'as_fn_exit 1' 1 2 13 15
25046 # Create a (secure) tmp directory for tmp files.
25049 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
25050 test -n "$tmp" && test -d "$tmp"
25053 tmp=./conf$$-$RANDOM
25054 (umask 077 && mkdir "$tmp")
25055 } || as_fn_error "cannot create a temporary directory in ." "$LINENO" 5
25057 # Set up the scripts for CONFIG_FILES section.
25058 # No need to generate them if there are no CONFIG_FILES.
25059 # This happens for instance with `./config.status config.h'.
25060 if test -n "$CONFIG_FILES"; then
25062 if $AWK 'BEGIN { getline <"/dev/null" }' </dev/null 2>/dev/null; then
25063 ac_cs_awk_getline=:
25064 ac_cs_awk_pipe_init=
25065 ac_cs_awk_read_file='
25066 while ((getline aline < (F[key])) > 0)
25069 ac_cs_awk_pipe_fini=
25071 ac_cs_awk_getline=false
25072 ac_cs_awk_pipe_init="print \"cat <<'|#_!!_#|' &&\""
25073 ac_cs_awk_read_file='
25075 print "cat " F[key] " &&"
25076 '$ac_cs_awk_pipe_init
25077 # The final `:' finishes the AND list.
25078 ac_cs_awk_pipe_fini='END { print "|#_!!_#|"; print ":" }'
25080 ac_cr=`echo X | tr X '\015'`
25081 # On cygwin, bash can eat \r inside `` if the user requested igncr.
25082 # But we know of no other shell where ac_cr would be empty at this
25083 # point, so we can use a bashism as a fallback.
25084 if test "x$ac_cr" = x; then
25085 eval ac_cr=\$\'\\r\'
25087 ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
25088 if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
25091 ac_cs_awk_cr=$ac_cr
25094 echo 'BEGIN {' >"$tmp/subs1.awk" &&
25097 # Create commands to substitute file output variables.
25099 echo "cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1" &&
25100 echo 'cat >>"\$tmp/subs1.awk" <<\\_ACAWK &&' &&
25101 echo "$ac_subst_files" | sed 's/.*/F["&"]="$&"/' &&
25104 } >conf$$files.sh &&
25105 . ./conf$$files.sh ||
25106 as_fn_error "could not make $CONFIG_STATUS" "$LINENO" 5
25107 rm -f conf$$files.sh
25110 echo "cat >conf$$subs.awk <<_ACEOF" &&
25111 echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
25113 } >conf$$subs.sh ||
25114 as_fn_error "could not make $CONFIG_STATUS" "$LINENO" 5
25115 ac_delim_num=`echo "$ac_subst_vars" | grep -c '$'`
25117 for ac_last_try in false false false false false :; do
25118 . ./conf$$subs.sh ||
25119 as_fn_error "could not make $CONFIG_STATUS" "$LINENO" 5
25121 ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
25122 if test $ac_delim_n = $ac_delim_num; then
25124 elif $ac_last_try; then
25125 as_fn_error "could not make $CONFIG_STATUS" "$LINENO" 5
25127 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
25130 rm -f conf$$subs.sh
25132 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
25133 cat >>"\$tmp/subs1.awk" <<\\_ACAWK &&
25137 s/^/S["/; s/!.*/"]=/
25147 s/\(.\{148\}\)..*/\1/
25149 s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
25154 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
25161 s/\(.\{148\}\)..*/\1/
25163 s/["\\]/\\&/g; s/^/"/; s/$/"/
25167 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
25172 ' <conf$$subs.awk | sed '
25177 ' >>$CONFIG_STATUS || ac_write_fail=1
25178 rm -f conf$$subs.awk
25179 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
25181 cat >>"\$tmp/subs1.awk" <<_ACAWK &&
25182 for (key in S) S_is_set[key] = 1
25184 \$ac_cs_awk_pipe_init
25188 nfields = split(line, field, "@")
25190 len = length(field[1])
25191 for (i = 2; i < nfields; i++) {
25193 keylen = length(key)
25194 if (S_is_set[key]) {
25196 line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
25197 len += length(value) + length(field[++i])
25202 if (nfields == 3 && !substed) {
25204 if (F[key] != "" && line ~ /^[ ]*@.*@[ ]*$/) {
25205 \$ac_cs_awk_read_file
25211 \$ac_cs_awk_pipe_fini
25214 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
25215 if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
25216 sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
25219 fi < "$tmp/subs1.awk" > "$tmp/subs.awk" \
25220 || as_fn_error "could not setup config files machinery" "$LINENO" 5
25223 # VPATH may cause trouble with some makes, so we remove $(srcdir),
25224 # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
25225 # trailing colons and then remove the whole line if VPATH becomes empty
25226 # (actually we leave an empty line to preserve line numbers).
25227 if test "x$srcdir" = x.; then
25228 ac_vpsub='/^[ ]*VPATH[ ]*=/{
25229 s/:*\$(srcdir):*/:/
25230 s/:*\${srcdir}:*/:/
25232 s/^\([^=]*=[ ]*\):*/\1/
25238 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
25239 fi # test -n "$CONFIG_FILES"
25241 # Set up the scripts for CONFIG_HEADERS section.
25242 # No need to generate them if there are no CONFIG_HEADERS.
25243 # This happens for instance with `./config.status Makefile'.
25244 if test -n "$CONFIG_HEADERS"; then
25245 cat >"$tmp/defines.awk" <<\_ACAWK ||
25249 # Transform confdefs.h into an awk script `defines.awk', embedded as
25250 # here-document in config.status, that substitutes the proper values into
25251 # config.h.in to produce config.h.
25253 # Create a delimiter string that does not exist in confdefs.h, to ease
25254 # handling of long lines.
25256 for ac_last_try in false false :; do
25257 ac_t=`sed -n "/$ac_delim/p" confdefs.h`
25258 if test -z "$ac_t"; then
25260 elif $ac_last_try; then
25261 as_fn_error "could not make $CONFIG_HEADERS" "$LINENO" 5
25263 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
25267 # For the awk script, D is an array of macro values keyed by name,
25268 # likewise P contains macro parameters if any. Preserve backslash
25269 # newline sequences.
25271 ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
25273 s/.\{148\}/&'"$ac_delim"'/g
25276 s/^[ ]*#[ ]*define[ ][ ]*/ /
25283 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
25285 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2"/p
25289 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
25290 D["\1"]=" \3\\\\\\n"\\/p
25292 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p
25297 s/.\{148\}/&'"$ac_delim"'/g
25302 s/["\\]/\\&/g; s/^/"/; s/$/"/p
25305 s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p
25307 ' <confdefs.h | sed '
25308 s/'"$ac_delim"'/"\\\
25309 "/g' >>$CONFIG_STATUS || ac_write_fail=1
25311 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
25312 for (key in D) D_is_set[key] = 1
25315 /^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
25317 split(line, arg, " ")
25318 if (arg[1] == "#") {
25322 defundef = substr(arg[1], 2)
25325 split(mac1, mac2, "(") #)
25327 prefix = substr(line, 1, index(line, defundef) - 1)
25328 if (D_is_set[macro]) {
25329 # Preserve the white space surrounding the "#".
25330 print prefix "define", macro P[macro] D[macro]
25333 # Replace #undef with comments. This is necessary, for example,
25334 # in the case of _POSIX_SOURCE, which is predefined and required
25335 # on some systems where configure will not decide to define it.
25336 if (defundef == "undef") {
25337 print "/*", prefix defundef, macro, "*/"
25345 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
25346 as_fn_error "could not setup config headers machinery" "$LINENO" 5
25347 fi # test -n "$CONFIG_HEADERS"
25350 eval set X " :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS"
25355 :[FHLC]) ac_mode=$ac_tag; continue;;
25357 case $ac_mode$ac_tag in
25359 :L* | :C*:*) as_fn_error "invalid tag \`$ac_tag'" "$LINENO" 5;;
25360 :[FH]-) ac_tag=-:-;;
25361 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
25378 -) ac_f="$tmp/stdin";;
25379 *) # Look for the file first in the build tree, then in the source tree
25380 # (if the path is not absolute). The absolute path cannot be DOS-style,
25381 # because $ac_f cannot contain `:'.
25385 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
25387 as_fn_error "cannot find input file: \`$ac_f'" "$LINENO" 5;;
25389 case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
25390 as_fn_append ac_file_inputs " '$ac_f'"
25393 # Let's still pretend it is `configure' which instantiates (i.e., don't
25394 # use $as_me), people would be surprised to read:
25395 # /* config.h. Generated by config.status. */
25396 configure_input='Generated from '`
25397 $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
25399 if test x"$ac_file" != x-; then
25400 configure_input="$ac_file. $configure_input"
25401 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
25402 $as_echo "$as_me: creating $ac_file" >&6;}
25404 # Neutralize special characters interpreted by sed in replacement strings.
25405 case $configure_input in #(
25406 *\&* | *\|* | *\\* )
25407 ac_sed_conf_input=`$as_echo "$configure_input" |
25408 sed 's/[\\\\&|]/\\\\&/g'`;; #(
25409 *) ac_sed_conf_input=$configure_input;;
25413 *:-:* | *:-) cat >"$tmp/stdin" \
25414 || as_fn_error "could not create $ac_file" "$LINENO" 5 ;;
25419 ac_dir=`$as_dirname -- "$ac_file" ||
25420 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
25421 X"$ac_file" : 'X\(//\)[^/]' \| \
25422 X"$ac_file" : 'X\(//\)$' \| \
25423 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
25424 $as_echo X"$ac_file" |
25425 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
25429 /^X\(\/\/\)[^/].*/{
25442 as_dir="$ac_dir"; as_fn_mkdir_p
25446 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
25448 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
25449 # A ".." for each directory in $ac_dir_suffix.
25450 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
25451 case $ac_top_builddir_sub in
25452 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
25453 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
25456 ac_abs_top_builddir=$ac_pwd
25457 ac_abs_builddir=$ac_pwd$ac_dir_suffix
25458 # for backward compatibility:
25459 ac_top_builddir=$ac_top_build_prefix
25462 .) # We are building in place.
25464 ac_top_srcdir=$ac_top_builddir_sub
25465 ac_abs_top_srcdir=$ac_pwd ;;
25466 [\\/]* | ?:[\\/]* ) # Absolute name.
25467 ac_srcdir=$srcdir$ac_dir_suffix;
25468 ac_top_srcdir=$srcdir
25469 ac_abs_top_srcdir=$srcdir ;;
25470 *) # Relative name.
25471 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
25472 ac_top_srcdir=$ac_top_build_prefix$srcdir
25473 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
25475 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
25485 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
25486 *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
25488 ac_MKDIR_P=$MKDIR_P
25490 [\\/$]* | ?:[\\/]* ) ;;
25491 */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;;
25495 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
25496 # If the template does not know about datarootdir, expand it.
25497 # FIXME: This hack should be removed a few years after 2.60.
25498 ac_datarootdir_hack=; ac_datarootdir_seen=
25509 case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
25510 *datarootdir*) ac_datarootdir_seen=yes;;
25511 *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
25512 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
25513 $as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
25515 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
25516 ac_datarootdir_hack='
25517 s&@datadir@&$datadir&g
25518 s&@docdir@&$docdir&g
25519 s&@infodir@&$infodir&g
25520 s&@localedir@&$localedir&g
25521 s&@mandir@&$mandir&g
25522 s&\\\${datarootdir}&$datarootdir&g' ;;
25526 # Neutralize VPATH when `$srcdir' = `.'.
25527 # Shell code in configure.ac might set extrasub.
25528 # FIXME: do we really want to maintain this feature?
25529 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
25530 ac_sed_extra="$ac_vpsub
25533 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
25535 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
25536 s|@configure_input@|$ac_sed_conf_input|;t t
25537 s&@top_builddir@&$ac_top_builddir_sub&;t t
25538 s&@top_build_prefix@&$ac_top_build_prefix&;t t
25539 s&@srcdir@&$ac_srcdir&;t t
25540 s&@abs_srcdir@&$ac_abs_srcdir&;t t
25541 s&@top_srcdir@&$ac_top_srcdir&;t t
25542 s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
25543 s&@builddir@&$ac_builddir&;t t
25544 s&@abs_builddir@&$ac_abs_builddir&;t t
25545 s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
25546 s&@INSTALL@&$ac_INSTALL&;t t
25547 s&@MKDIR_P@&$ac_MKDIR_P&;t t
25548 $ac_datarootdir_hack
25550 eval sed \"\$ac_sed_extra\" "$ac_file_inputs" |
25551 if $ac_cs_awk_getline; then
25552 $AWK -f "$tmp/subs.awk"
25554 $AWK -f "$tmp/subs.awk" | $SHELL
25556 || as_fn_error "could not create $ac_file" "$LINENO" 5
25558 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
25559 { ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out"`; test -n "$ac_out"; } &&
25560 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' "$tmp/out"`; test -z "$ac_out"; } &&
25561 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir'
25562 which seems to be undefined. Please make sure it is defined." >&5
25563 $as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
25564 which seems to be undefined. Please make sure it is defined." >&2;}
25568 -) cat "$tmp/out" && rm -f "$tmp/out";;
25569 *) rm -f "$ac_file" && mv "$tmp/out" "$ac_file";;
25571 || as_fn_error "could not create $ac_file" "$LINENO" 5
25577 if test x"$ac_file" != x-; then
25579 $as_echo "/* $configure_input */" \
25580 && eval '$AWK -f "$tmp/defines.awk"' "$ac_file_inputs"
25581 } >"$tmp/config.h" \
25582 || as_fn_error "could not create $ac_file" "$LINENO" 5
25583 if diff "$ac_file" "$tmp/config.h" >/dev/null 2>&1; then
25584 { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5
25585 $as_echo "$as_me: $ac_file is unchanged" >&6;}
25588 mv "$tmp/config.h" "$ac_file" \
25589 || as_fn_error "could not create $ac_file" "$LINENO" 5
25592 $as_echo "/* $configure_input */" \
25593 && eval '$AWK -f "$tmp/defines.awk"' "$ac_file_inputs" \
25594 || as_fn_error "could not create -" "$LINENO" 5
25596 # Compute "$ac_file"'s index in $config_headers.
25599 for _am_header in $config_headers :; do
25600 case $_am_header in
25601 $_am_arg | $_am_arg:* )
25604 _am_stamp_count=`expr $_am_stamp_count + 1` ;;
25607 echo "timestamp for $_am_arg" >`$as_dirname -- "$_am_arg" ||
25608 $as_expr X"$_am_arg" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
25609 X"$_am_arg" : 'X\(//\)[^/]' \| \
25610 X"$_am_arg" : 'X\(//\)$' \| \
25611 X"$_am_arg" : 'X\(/\)' \| . 2>/dev/null ||
25612 $as_echo X"$_am_arg" |
25613 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
25617 /^X\(\/\/\)[^/].*/{
25629 s/.*/./; q'`/stamp-h$_am_stamp_count
25632 :C) { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5
25633 $as_echo "$as_me: executing $ac_file commands" >&6;}
25638 case $ac_file$ac_mode in
25639 "depfiles":C) test x"$AMDEP_TRUE" != x"" || {
25640 # Autoconf 2.62 quotes --file arguments for eval, but not when files
25641 # are listed without --file. Let's play safe and only enable the eval
25642 # if we detect the quoting.
25643 case $CONFIG_FILES in
25644 *\'*) eval set x "$CONFIG_FILES" ;;
25645 *) set x $CONFIG_FILES ;;
25650 # Strip MF so we end up with the name of the file.
25651 mf=`echo "$mf" | sed -e 's/:.*$//'`
25652 # Check whether this is an Automake generated Makefile or not.
25653 # We used to match only the files named `Makefile.in', but
25654 # some people rename them; so instead we look at the file content.
25655 # Grep'ing the first line is not enough: some people post-process
25656 # each Makefile.in and add a new line on top of each file to say so.
25657 # Grep'ing the whole file is not good either: AIX grep has a line
25658 # limit of 2048, but all sed's we know have understand at least 4000.
25659 if sed -n 's,^#.*generated by automake.*,X,p' "$mf" | grep X >/dev/null 2>&1; then
25660 dirpart=`$as_dirname -- "$mf" ||
25661 $as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
25662 X"$mf" : 'X\(//\)[^/]' \| \
25663 X"$mf" : 'X\(//\)$' \| \
25664 X"$mf" : 'X\(/\)' \| . 2>/dev/null ||
25666 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
25670 /^X\(\/\/\)[^/].*/{
25686 # Extract the definition of DEPDIR, am__include, and am__quote
25687 # from the Makefile without running `make'.
25688 DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"`
25689 test -z "$DEPDIR" && continue
25690 am__include=`sed -n 's/^am__include = //p' < "$mf"`
25691 test -z "am__include" && continue
25692 am__quote=`sed -n 's/^am__quote = //p' < "$mf"`
25693 # When using ansi2knr, U may be empty or an underscore; expand it
25694 U=`sed -n 's/^U = //p' < "$mf"`
25695 # Find all dependency output files, they are included files with
25696 # $(DEPDIR) in their names. We invoke sed twice because it is the
25697 # simplest approach to changing $(DEPDIR) to its actual value in the
25699 for file in `sed -n "
25700 s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \
25701 sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g' -e 's/\$U/'"$U"'/g'`; do
25702 # Make sure the directory exists.
25703 test -f "$dirpart/$file" && continue
25704 fdir=`$as_dirname -- "$file" ||
25705 $as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
25706 X"$file" : 'X\(//\)[^/]' \| \
25707 X"$file" : 'X\(//\)$' \| \
25708 X"$file" : 'X\(/\)' \| . 2>/dev/null ||
25709 $as_echo X"$file" |
25710 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
25714 /^X\(\/\/\)[^/].*/{
25727 as_dir=$dirpart/$fdir; as_fn_mkdir_p
25728 # echo "creating $dirpart/$file"
25729 echo '# dummy' > "$dirpart/$file"
25735 for dir in etc lisp ; do
25736 test -d ${dir} || mkdir ${dir}
25740 echo creating src/epaths.h
25741 ${MAKE-make} epaths-force
25744 if test ! -f src/.gdbinit && test -f $srcdir/src/.gdbinit; then
25745 echo creating src/.gdbinit
25746 echo source $srcdir/src/.gdbinit > src/.gdbinit
25756 ac_clean_files=$ac_clean_files_save
25758 test $ac_write_fail = 0 ||
25759 as_fn_error "write failure creating $CONFIG_STATUS" "$LINENO" 5
25762 # configure is writing to config.log, and then calls config.status.
25763 # config.status does its own redirection, appending to config.log.
25764 # Unfortunately, on DOS this fails, as config.log is still kept open
25765 # by configure, so config.status won't be able to write to it; its
25766 # output is simply discarded. So we exec the FD to /dev/null,
25767 # effectively closing config.log, so it can be properly (re)opened and
25768 # appended to by config.status. When coming back to configure, we
25769 # need to make the FD available again.
25770 if test "$no_create" != yes; then
25772 ac_config_status_args=
25773 test "$silent" = yes &&
25774 ac_config_status_args="$ac_config_status_args --quiet"
25776 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
25778 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
25779 # would make configure fail if this is the last instruction.
25780 $ac_cs_success || as_fn_exit $?
25782 if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
25783 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
25784 $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}