2 # Guess values for system-dependent variables and create Makefiles.
3 # Generated by GNU Autoconf 2.65 for emacs 24.1.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.1.50'
553 PACKAGE_STRING
='emacs 24.1.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
613 gl_GNULIB_ENABLED_verify_FALSE
614 gl_GNULIB_ENABLED_verify_TRUE
615 gl_GNULIB_ENABLED_strtoull_FALSE
616 gl_GNULIB_ENABLED_strtoull_TRUE
617 gl_GNULIB_ENABLED_strtoll_FALSE
618 gl_GNULIB_ENABLED_strtoll_TRUE
619 gl_GNULIB_ENABLED_stat_FALSE
620 gl_GNULIB_ENABLED_stat_TRUE
621 gl_GNULIB_ENABLED_sigprocmask_FALSE
622 gl_GNULIB_ENABLED_sigprocmask_TRUE
623 gl_GNULIB_ENABLED_pathmax_FALSE
624 gl_GNULIB_ENABLED_pathmax_TRUE
625 gl_GNULIB_ENABLED_be453cec5eecf5731a274f2de7f2db36_FALSE
626 gl_GNULIB_ENABLED_be453cec5eecf5731a274f2de7f2db36_TRUE
627 gl_GNULIB_ENABLED_dosname_FALSE
628 gl_GNULIB_ENABLED_dosname_TRUE
633 NEXT_AS_FIRST_DIRECTIVE_UNISTD_H
635 PTHREAD_H_DEFINES_STRUCT_TIMESPEC
636 SYS_TIME_H_DEFINES_STRUCT_TIMESPEC
637 TIME_H_DEFINES_STRUCT_TIMESPEC
638 NEXT_AS_FIRST_DIRECTIVE_TIME_H
640 NEXT_AS_FIRST_DIRECTIVE_SYS_STAT_H
642 NEXT_AS_FIRST_DIRECTIVE_STDLIB_H
644 NEXT_AS_FIRST_DIRECTIVE_STDIO_H
653 REPLACE_STDIO_WRITE_FUNCS
654 REPLACE_STDIO_READ_FUNCS
663 REPLACE_OBSTACK_PRINTF
688 HAVE_DECL_OBSTACK_PRINTF
694 GNULIB_VSPRINTF_POSIX
698 GNULIB_VFPRINTF_POSIX
705 GNULIB_STDIO_H_SIGPIPE
706 GNULIB_STDIO_H_NONBLOCKING
721 GNULIB_OBSTACK_PRINTF_POSIX
722 GNULIB_OBSTACK_PRINTF
748 NEXT_AS_FIRST_DIRECTIVE_STDDEF_H
750 GL_GENERATE_STDDEF_H_FALSE
751 GL_GENERATE_STDDEF_H_TRUE
756 GL_GENERATE_STDBOOL_H_FALSE
757 GL_GENERATE_STDBOOL_H_TRUE
759 GL_GENERATE_STDARG_H_FALSE
760 GL_GENERATE_STDARG_H_TRUE
762 NEXT_AS_FIRST_DIRECTIVE_STDARG_H
764 NEXT_AS_FIRST_DIRECTIVE_SIGNAL_H
767 REPLACE_PTHREAD_SIGMASK
769 HAVE_TYPE_VOLATILE_SIG_ATOMIC_T
770 HAVE_STRUCT_SIGACTION_SA_SIGACTION
776 HAVE_POSIX_SIGNALBLOCKING
779 GNULIB_SIGNAL_H_SIGPIPE
781 GNULIB_PTHREAD_SIGMASK
790 HAVE_DECL_LOCALTIME_R
829 NEXT_AS_FIRST_DIRECTIVE_INTTYPES_H
831 UINT64_MAX_EQ_ULONG_MAX
832 UINT32_MAX_LT_UINTMAX_MAX
835 INT64_MAX_EQ_LONG_MAX
836 INT32_MAX_LT_INTMAX_MAX
845 GL_GENERATE_STDINT_H_FALSE
846 GL_GENERATE_STDINT_H_TRUE
855 HAVE_SIGNED_SIG_ATOMIC_T
858 BITSIZEOF_SIG_ATOMIC_T
861 APPLE_UNIVERSAL_BUILD
865 NEXT_AS_FIRST_DIRECTIVE_STDINT_H
870 HAVE_UNSIGNED_LONG_LONG_INT
874 NEXT_AS_FIRST_DIRECTIVE_GETOPT_H
878 INCLUDE_NEXT_AS_FIRST_DIRECTIVE
891 REPLACE_CANONICALIZE_FILE_NAME
896 HAVE_STRUCT_RANDOM_DATA
915 HAVE_CANONICALIZE_FILE_NAME
942 GNULIB_CANONICALIZE_FILE_NAME
946 UNISTD_H_HAVE_WINSOCK2_H_AND_USE_SOCKETS
947 UNISTD_H_HAVE_WINSOCK2_H
967 REPLACE_GETDOMAINNAME
977 HAVE_DECL_GETUSERSHELL
978 HAVE_DECL_GETPAGESIZE
980 HAVE_DECL_GETDOMAINNAME
1018 GNULIB_UNISTD_H_SIGPIPE
1019 GNULIB_UNISTD_H_NONBLOCKING
1020 GNULIB_UNISTD_H_GETOPT
1044 GNULIB_GETDTABLESIZE
1045 GNULIB_GETDOMAINNAME
1061 GL_GENERATE_ALLOCA_H_FALSE
1062 GL_GENERATE_ALLOCA_H_TRUE
1065 GL_COND_LIBTOOL_FALSE
1066 GL_COND_LIBTOOL_TRUE
1099 x_default_search_path
1167 LD_SWITCH_X_SITE_AUX_RPATH
1168 LD_SWITCH_X_SITE_AUX
1233 INSTALL_STRIP_PROGRAM
1275 program_transform_name
1286 ac_subst_files
='deps_frag
1290 enable_option_checking
1313 with_toolkit_scroll_bars
1325 with_pkg_config_prog
1329 enable_ns_self_contained
1331 enable_maintainer_mode
1332 enable_locallisppath
1334 enable_use_lisp_union_type
1337 enable_dependency_tracking
1342 ac_precious_vars
='build_alias
1354 # Initialize some variables set by options.
1356 ac_init_version
=false
1357 ac_unrecognized_opts
=
1358 ac_unrecognized_sep
=
1359 # The variables have the same names as the options, with
1360 # dashes changed to underlines.
1361 cache_file
=/dev
/null
1368 program_transform_name
=s
,x
,x
,
1376 # Installation directory options.
1377 # These are left unexpanded so users can "make install exec_prefix=/foo"
1378 # and all the variables that are supposed to be based on exec_prefix
1379 # by default will actually change.
1380 # Use braces instead of parens because sh, perl, etc. also accept them.
1381 # (The list follows the same order as the GNU Coding Standards.)
1382 bindir
='${exec_prefix}/bin'
1383 sbindir
='${exec_prefix}/sbin'
1384 libexecdir
='${exec_prefix}/libexec'
1385 datarootdir
='${prefix}/share'
1386 datadir
='${datarootdir}'
1387 sysconfdir
='${prefix}/etc'
1388 sharedstatedir
='${prefix}/com'
1389 localstatedir
='${prefix}/var'
1390 includedir
='${prefix}/include'
1391 oldincludedir
='/usr/include'
1392 docdir
='${datarootdir}/doc/${PACKAGE_TARNAME}'
1393 infodir
='${datarootdir}/info'
1398 libdir
='${exec_prefix}/lib'
1399 localedir
='${datarootdir}/locale'
1400 mandir
='${datarootdir}/man'
1406 # If the previous option needs an argument, assign it.
1407 if test -n "$ac_prev"; then
1408 eval $ac_prev=\
$ac_option
1414 *=*) ac_optarg
=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
1418 # Accept the important Cygnus configure options, so we can diagnose typos.
1420 case $ac_dashdash$ac_option in
1424 -bindir |
--bindir |
--bindi |
--bind |
--bin |
--bi)
1426 -bindir=* |
--bindir=* |
--bindi=* |
--bind=* |
--bin=* |
--bi=*)
1427 bindir
=$ac_optarg ;;
1429 -build |
--build |
--buil |
--bui |
--bu)
1430 ac_prev
=build_alias
;;
1431 -build=* |
--build=* |
--buil=* |
--bui=* |
--bu=*)
1432 build_alias
=$ac_optarg ;;
1434 -cache-file |
--cache-file |
--cache-fil |
--cache-fi \
1435 |
--cache-f |
--cache- |
--cache |
--cach |
--cac |
--ca |
--c)
1436 ac_prev
=cache_file
;;
1437 -cache-file=* |
--cache-file=* |
--cache-fil=* |
--cache-fi=* \
1438 |
--cache-f=* |
--cache-=* |
--cache=* |
--cach=* |
--cac=* |
--ca=* |
--c=*)
1439 cache_file
=$ac_optarg ;;
1441 --config-cache |
-C)
1442 cache_file
=config.cache
;;
1444 -datadir |
--datadir |
--datadi |
--datad)
1446 -datadir=* |
--datadir=* |
--datadi=* |
--datad=*)
1447 datadir
=$ac_optarg ;;
1449 -datarootdir |
--datarootdir |
--datarootdi |
--datarootd |
--dataroot \
1450 |
--dataroo |
--dataro |
--datar)
1451 ac_prev
=datarootdir
;;
1452 -datarootdir=* |
--datarootdir=* |
--datarootdi=* |
--datarootd=* \
1453 |
--dataroot=* |
--dataroo=* |
--dataro=* |
--datar=*)
1454 datarootdir
=$ac_optarg ;;
1456 -disable-* |
--disable-*)
1457 ac_useropt
=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
1458 # Reject names that are not valid shell variable names.
1459 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev
/null
&&
1460 as_fn_error
"invalid feature name: $ac_useropt"
1461 ac_useropt_orig
=$ac_useropt
1462 ac_useropt
=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1463 case $ac_user_opts in
1465 "enable_
$ac_useropt"
1467 *) ac_unrecognized_opts
="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
1468 ac_unrecognized_sep
=', ';;
1470 eval enable_
$ac_useropt=no
;;
1472 -docdir |
--docdir |
--docdi |
--doc |
--do)
1474 -docdir=* |
--docdir=* |
--docdi=* |
--doc=* |
--do=*)
1475 docdir
=$ac_optarg ;;
1477 -dvidir |
--dvidir |
--dvidi |
--dvid |
--dvi |
--dv)
1479 -dvidir=* |
--dvidir=* |
--dvidi=* |
--dvid=* |
--dvi=* |
--dv=*)
1480 dvidir
=$ac_optarg ;;
1482 -enable-* |
--enable-*)
1483 ac_useropt
=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
1484 # Reject names that are not valid shell variable names.
1485 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev
/null
&&
1486 as_fn_error
"invalid feature name: $ac_useropt"
1487 ac_useropt_orig
=$ac_useropt
1488 ac_useropt
=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1489 case $ac_user_opts in
1491 "enable_
$ac_useropt"
1493 *) ac_unrecognized_opts
="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
1494 ac_unrecognized_sep
=', ';;
1496 eval enable_
$ac_useropt=\
$ac_optarg ;;
1498 -exec-prefix |
--exec_prefix |
--exec-prefix |
--exec-prefi \
1499 |
--exec-pref |
--exec-pre |
--exec-pr |
--exec-p |
--exec- \
1500 |
--exec |
--exe |
--ex)
1501 ac_prev
=exec_prefix
;;
1502 -exec-prefix=* |
--exec_prefix=* |
--exec-prefix=* |
--exec-prefi=* \
1503 |
--exec-pref=* |
--exec-pre=* |
--exec-pr=* |
--exec-p=* |
--exec-=* \
1504 |
--exec=* |
--exe=* |
--ex=*)
1505 exec_prefix
=$ac_optarg ;;
1507 -gas |
--gas |
--ga |
--g)
1508 # Obsolete; use --with-gas.
1511 -help |
--help |
--hel |
--he |
-h)
1512 ac_init_help
=long
;;
1513 -help=r
* |
--help=r
* |
--hel=r
* |
--he=r
* |
-hr*)
1514 ac_init_help
=recursive
;;
1515 -help=s
* |
--help=s
* |
--hel=s
* |
--he=s
* |
-hs*)
1516 ac_init_help
=short
;;
1518 -host |
--host |
--hos |
--ho)
1519 ac_prev
=host_alias
;;
1520 -host=* |
--host=* |
--hos=* |
--ho=*)
1521 host_alias
=$ac_optarg ;;
1523 -htmldir |
--htmldir |
--htmldi |
--htmld |
--html |
--htm |
--ht)
1525 -htmldir=* |
--htmldir=* |
--htmldi=* |
--htmld=* |
--html=* |
--htm=* \
1527 htmldir
=$ac_optarg ;;
1529 -includedir |
--includedir |
--includedi |
--included |
--include \
1530 |
--includ |
--inclu |
--incl |
--inc)
1531 ac_prev
=includedir
;;
1532 -includedir=* |
--includedir=* |
--includedi=* |
--included=* |
--include=* \
1533 |
--includ=* |
--inclu=* |
--incl=* |
--inc=*)
1534 includedir
=$ac_optarg ;;
1536 -infodir |
--infodir |
--infodi |
--infod |
--info |
--inf)
1538 -infodir=* |
--infodir=* |
--infodi=* |
--infod=* |
--info=* |
--inf=*)
1539 infodir
=$ac_optarg ;;
1541 -libdir |
--libdir |
--libdi |
--libd)
1543 -libdir=* |
--libdir=* |
--libdi=* |
--libd=*)
1544 libdir
=$ac_optarg ;;
1546 -libexecdir |
--libexecdir |
--libexecdi |
--libexecd |
--libexec \
1547 |
--libexe |
--libex |
--libe)
1548 ac_prev
=libexecdir
;;
1549 -libexecdir=* |
--libexecdir=* |
--libexecdi=* |
--libexecd=* |
--libexec=* \
1550 |
--libexe=* |
--libex=* |
--libe=*)
1551 libexecdir
=$ac_optarg ;;
1553 -localedir |
--localedir |
--localedi |
--localed |
--locale)
1554 ac_prev
=localedir
;;
1555 -localedir=* |
--localedir=* |
--localedi=* |
--localed=* |
--locale=*)
1556 localedir
=$ac_optarg ;;
1558 -localstatedir |
--localstatedir |
--localstatedi |
--localstated \
1559 |
--localstate |
--localstat |
--localsta |
--localst |
--locals)
1560 ac_prev
=localstatedir
;;
1561 -localstatedir=* |
--localstatedir=* |
--localstatedi=* |
--localstated=* \
1562 |
--localstate=* |
--localstat=* |
--localsta=* |
--localst=* |
--locals=*)
1563 localstatedir
=$ac_optarg ;;
1565 -mandir |
--mandir |
--mandi |
--mand |
--man |
--ma |
--m)
1567 -mandir=* |
--mandir=* |
--mandi=* |
--mand=* |
--man=* |
--ma=* |
--m=*)
1568 mandir
=$ac_optarg ;;
1570 -nfp |
--nfp |
--nf)
1571 # Obsolete; use --without-fp.
1574 -no-create |
--no-create |
--no-creat |
--no-crea |
--no-cre \
1575 |
--no-cr |
--no-c |
-n)
1578 -no-recursion |
--no-recursion |
--no-recursio |
--no-recursi \
1579 |
--no-recurs |
--no-recur |
--no-recu |
--no-rec |
--no-re |
--no-r)
1582 -oldincludedir |
--oldincludedir |
--oldincludedi |
--oldincluded \
1583 |
--oldinclude |
--oldinclud |
--oldinclu |
--oldincl |
--oldinc \
1584 |
--oldin |
--oldi |
--old |
--ol |
--o)
1585 ac_prev
=oldincludedir
;;
1586 -oldincludedir=* |
--oldincludedir=* |
--oldincludedi=* |
--oldincluded=* \
1587 |
--oldinclude=* |
--oldinclud=* |
--oldinclu=* |
--oldincl=* |
--oldinc=* \
1588 |
--oldin=* |
--oldi=* |
--old=* |
--ol=* |
--o=*)
1589 oldincludedir
=$ac_optarg ;;
1591 -prefix |
--prefix |
--prefi |
--pref |
--pre |
--pr |
--p)
1593 -prefix=* |
--prefix=* |
--prefi=* |
--pref=* |
--pre=* |
--pr=* |
--p=*)
1594 prefix
=$ac_optarg ;;
1596 -program-prefix |
--program-prefix |
--program-prefi |
--program-pref \
1597 |
--program-pre |
--program-pr |
--program-p)
1598 ac_prev
=program_prefix
;;
1599 -program-prefix=* |
--program-prefix=* |
--program-prefi=* \
1600 |
--program-pref=* |
--program-pre=* |
--program-pr=* |
--program-p=*)
1601 program_prefix
=$ac_optarg ;;
1603 -program-suffix |
--program-suffix |
--program-suffi |
--program-suff \
1604 |
--program-suf |
--program-su |
--program-s)
1605 ac_prev
=program_suffix
;;
1606 -program-suffix=* |
--program-suffix=* |
--program-suffi=* \
1607 |
--program-suff=* |
--program-suf=* |
--program-su=* |
--program-s=*)
1608 program_suffix
=$ac_optarg ;;
1610 -program-transform-name |
--program-transform-name \
1611 |
--program-transform-nam |
--program-transform-na \
1612 |
--program-transform-n |
--program-transform- \
1613 |
--program-transform |
--program-transfor \
1614 |
--program-transfo |
--program-transf \
1615 |
--program-trans |
--program-tran \
1616 |
--progr-tra |
--program-tr |
--program-t)
1617 ac_prev
=program_transform_name
;;
1618 -program-transform-name=* |
--program-transform-name=* \
1619 |
--program-transform-nam=* |
--program-transform-na=* \
1620 |
--program-transform-n=* |
--program-transform-=* \
1621 |
--program-transform=* |
--program-transfor=* \
1622 |
--program-transfo=* |
--program-transf=* \
1623 |
--program-trans=* |
--program-tran=* \
1624 |
--progr-tra=* |
--program-tr=* |
--program-t=*)
1625 program_transform_name
=$ac_optarg ;;
1627 -pdfdir |
--pdfdir |
--pdfdi |
--pdfd |
--pdf |
--pd)
1629 -pdfdir=* |
--pdfdir=* |
--pdfdi=* |
--pdfd=* |
--pdf=* |
--pd=*)
1630 pdfdir
=$ac_optarg ;;
1632 -psdir |
--psdir |
--psdi |
--psd |
--ps)
1634 -psdir=* |
--psdir=* |
--psdi=* |
--psd=* |
--ps=*)
1637 -q |
-quiet |
--quiet |
--quie |
--qui |
--qu |
--q \
1638 |
-silent |
--silent |
--silen |
--sile |
--sil)
1641 -sbindir |
--sbindir |
--sbindi |
--sbind |
--sbin |
--sbi |
--sb)
1643 -sbindir=* |
--sbindir=* |
--sbindi=* |
--sbind=* |
--sbin=* \
1645 sbindir
=$ac_optarg ;;
1647 -sharedstatedir |
--sharedstatedir |
--sharedstatedi \
1648 |
--sharedstated |
--sharedstate |
--sharedstat |
--sharedsta \
1649 |
--sharedst |
--shareds |
--shared |
--share |
--shar \
1651 ac_prev
=sharedstatedir
;;
1652 -sharedstatedir=* |
--sharedstatedir=* |
--sharedstatedi=* \
1653 |
--sharedstated=* |
--sharedstate=* |
--sharedstat=* |
--sharedsta=* \
1654 |
--sharedst=* |
--shareds=* |
--shared=* |
--share=* |
--shar=* \
1656 sharedstatedir
=$ac_optarg ;;
1658 -site |
--site |
--sit)
1660 -site=* |
--site=* |
--sit=*)
1663 -srcdir |
--srcdir |
--srcdi |
--srcd |
--src |
--sr)
1665 -srcdir=* |
--srcdir=* |
--srcdi=* |
--srcd=* |
--src=* |
--sr=*)
1666 srcdir
=$ac_optarg ;;
1668 -sysconfdir |
--sysconfdir |
--sysconfdi |
--sysconfd |
--sysconf \
1669 |
--syscon |
--sysco |
--sysc |
--sys |
--sy)
1670 ac_prev
=sysconfdir
;;
1671 -sysconfdir=* |
--sysconfdir=* |
--sysconfdi=* |
--sysconfd=* |
--sysconf=* \
1672 |
--syscon=* |
--sysco=* |
--sysc=* |
--sys=* |
--sy=*)
1673 sysconfdir
=$ac_optarg ;;
1675 -target |
--target |
--targe |
--targ |
--tar |
--ta |
--t)
1676 ac_prev
=target_alias
;;
1677 -target=* |
--target=* |
--targe=* |
--targ=* |
--tar=* |
--ta=* |
--t=*)
1678 target_alias
=$ac_optarg ;;
1680 -v |
-verbose |
--verbose |
--verbos |
--verbo |
--verb)
1683 -version |
--version |
--versio |
--versi |
--vers |
-V)
1684 ac_init_version
=: ;;
1687 ac_useropt
=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1688 # Reject names that are not valid shell variable names.
1689 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev
/null
&&
1690 as_fn_error
"invalid package name: $ac_useropt"
1691 ac_useropt_orig
=$ac_useropt
1692 ac_useropt
=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1693 case $ac_user_opts in
1697 *) ac_unrecognized_opts
="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1698 ac_unrecognized_sep
=', ';;
1700 eval with_
$ac_useropt=\
$ac_optarg ;;
1702 -without-* |
--without-*)
1703 ac_useropt
=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1704 # Reject names that are not valid shell variable names.
1705 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev
/null
&&
1706 as_fn_error
"invalid package name: $ac_useropt"
1707 ac_useropt_orig
=$ac_useropt
1708 ac_useropt
=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1709 case $ac_user_opts in
1713 *) ac_unrecognized_opts
="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1714 ac_unrecognized_sep
=', ';;
1716 eval with_
$ac_useropt=no
;;
1719 # Obsolete; use --with-x.
1722 -x-includes |
--x-includes |
--x-include |
--x-includ |
--x-inclu \
1723 |
--x-incl |
--x-inc |
--x-in |
--x-i)
1724 ac_prev
=x_includes
;;
1725 -x-includes=* |
--x-includes=* |
--x-include=* |
--x-includ=* |
--x-inclu=* \
1726 |
--x-incl=* |
--x-inc=* |
--x-in=* |
--x-i=*)
1727 x_includes
=$ac_optarg ;;
1729 -x-libraries |
--x-libraries |
--x-librarie |
--x-librari \
1730 |
--x-librar |
--x-libra |
--x-libr |
--x-lib |
--x-li |
--x-l)
1731 ac_prev
=x_libraries
;;
1732 -x-libraries=* |
--x-libraries=* |
--x-librarie=* |
--x-librari=* \
1733 |
--x-librar=* |
--x-libra=* |
--x-libr=* |
--x-lib=* |
--x-li=* |
--x-l=*)
1734 x_libraries
=$ac_optarg ;;
1736 -*) as_fn_error
"unrecognized option: \`$ac_option'
1737 Try \`$0 --help' for more information."
1741 ac_envvar
=`expr "x$ac_option" : 'x\([^=]*\)='`
1742 # Reject names that are not valid shell variable names.
1743 case $ac_envvar in #(
1744 '' |
[0-9]* |
*[!_
$as_cr_alnum]* )
1745 as_fn_error
"invalid variable name: \`$ac_envvar'" ;;
1747 eval $ac_envvar=\
$ac_optarg
1748 export $ac_envvar ;;
1751 # FIXME: should be removed in autoconf 3.0.
1752 $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1753 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev
/null
&&
1754 $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1755 : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
1761 if test -n "$ac_prev"; then
1762 ac_option
=--`echo $ac_prev | sed 's/_/-/g'`
1763 as_fn_error
"missing argument to $ac_option"
1766 if test -n "$ac_unrecognized_opts"; then
1767 case $enable_option_checking in
1769 fatal
) as_fn_error
"unrecognized options: $ac_unrecognized_opts" ;;
1770 *) $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
1774 # Check all directory arguments for consistency.
1775 for ac_var
in exec_prefix prefix bindir sbindir libexecdir datarootdir \
1776 datadir sysconfdir sharedstatedir localstatedir includedir \
1777 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1778 libdir localedir mandir
1780 eval ac_val
=\$
$ac_var
1781 # Remove trailing slashes.
1784 ac_val
=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1785 eval $ac_var=\
$ac_val;;
1787 # Be sure to have absolute directory names.
1789 [\\/$
]* | ?
:[\\/]* ) continue;;
1790 NONE |
'' ) case $ac_var in *prefix
) continue;; esac;;
1792 as_fn_error
"expected an absolute directory name for --$ac_var: $ac_val"
1795 # There might be people who depend on the old broken behavior: `$host'
1796 # used to hold the argument of --host etc.
1797 # FIXME: To remove some day.
1800 target
=$target_alias
1802 # FIXME: To remove some day.
1803 if test "x$host_alias" != x
; then
1804 if test "x$build_alias" = x
; then
1805 cross_compiling
=maybe
1806 $as_echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
1807 If a cross compiler is detected then cross compile mode will be used." >&2
1808 elif test "x$build_alias" != "x$host_alias"; then
1814 test -n "$host_alias" && ac_tool_prefix
=$host_alias-
1816 test "$silent" = yes && exec 6>/dev
/null
1819 ac_pwd
=`pwd` && test -n "$ac_pwd" &&
1820 ac_ls_di
=`ls -di .` &&
1821 ac_pwd_ls_di
=`cd "$ac_pwd" && ls -di .` ||
1822 as_fn_error
"working directory cannot be determined"
1823 test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1824 as_fn_error
"pwd does not report name of working directory"
1827 # Find the source files, if location was not specified.
1828 if test -z "$srcdir"; then
1829 ac_srcdir_defaulted
=yes
1830 # Try the directory containing this script, then the parent directory.
1831 ac_confdir
=`$as_dirname -- "$as_myself" ||
1832 $as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1833 X"$as_myself" : 'X\(//\)[^/]' \| \
1834 X"$as_myself" : 'X\(//\)$' \| \
1835 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1836 $as_echo X"$as_myself" |
1837 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1855 if test ! -r "$srcdir/$ac_unique_file"; then
1859 ac_srcdir_defaulted
=no
1861 if test ! -r "$srcdir/$ac_unique_file"; then
1862 test "$ac_srcdir_defaulted" = yes && srcdir
="$ac_confdir or .."
1863 as_fn_error
"cannot find sources ($ac_unique_file) in $srcdir"
1865 ac_msg
="sources are in $srcdir, but \`cd $srcdir' does not work"
1867 cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error "$ac_msg"
1869 # When building in place, set srcdir=.
1870 if test "$ac_abs_confdir" = "$ac_pwd"; then
1873 # Remove unnecessary trailing slashes from srcdir.
1874 # Double slashes in file names in object file debugging info
1875 # mess up M-x gdb in Emacs.
1877 */) srcdir
=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1879 for ac_var
in $ac_precious_vars; do
1880 eval ac_env_
${ac_var}_set=\${${ac_var}+set}
1881 eval ac_env_
${ac_var}_value
=\$
${ac_var}
1882 eval ac_cv_env_
${ac_var}_set=\${${ac_var}+set}
1883 eval ac_cv_env_
${ac_var}_value
=\$
${ac_var}
1887 # Report the --help message.
1889 if test "$ac_init_help" = "long"; then
1890 # Omit some internal or obsolete options to make the list less imposing.
1891 # This message is too long to be a string in the A/UX 3.1 sh.
1893 \`configure' configures emacs 24.1.50 to adapt to many kinds of systems.
1895 Usage: $0 [OPTION]... [VAR=VALUE]...
1897 To assign environment variables (e.g., CC, CFLAGS...), specify them as
1898 VAR=VALUE. See below for descriptions of some of the useful variables.
1900 Defaults for the options are specified in brackets.
1903 -h, --help display this help and exit
1904 --help=short display options specific to this package
1905 --help=recursive display the short help of all the included packages
1906 -V, --version display version information and exit
1907 -q, --quiet, --silent do not print \`checking...' messages
1908 --cache-file=FILE cache test results in FILE [disabled]
1909 -C, --config-cache alias for \`--cache-file=config.cache'
1910 -n, --no-create do not create output files
1911 --srcdir=DIR find the sources in DIR [configure dir or \`..']
1913 Installation directories:
1914 --prefix=PREFIX install architecture-independent files in PREFIX
1915 [$ac_default_prefix]
1916 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
1919 By default, \`make install' will install all the files in
1920 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
1921 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1922 for instance \`--prefix=\$HOME'.
1924 For better control, use the options below.
1926 Fine tuning of the installation directories:
1927 --bindir=DIR user executables [EPREFIX/bin]
1928 --sbindir=DIR system admin executables [EPREFIX/sbin]
1929 --libexecdir=DIR program executables [EPREFIX/libexec]
1930 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
1931 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
1932 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
1933 --libdir=DIR object code libraries [EPREFIX/lib]
1934 --includedir=DIR C header files [PREFIX/include]
1935 --oldincludedir=DIR C header files for non-gcc [/usr/include]
1936 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
1937 --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
1938 --infodir=DIR info documentation [DATAROOTDIR/info]
1939 --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
1940 --mandir=DIR man documentation [DATAROOTDIR/man]
1941 --docdir=DIR documentation root [DATAROOTDIR/doc/emacs]
1942 --htmldir=DIR html documentation [DOCDIR]
1943 --dvidir=DIR dvi documentation [DOCDIR]
1944 --pdfdir=DIR pdf documentation [DOCDIR]
1945 --psdir=DIR ps documentation [DOCDIR]
1951 --program-prefix=PREFIX prepend PREFIX to installed program names
1952 --program-suffix=SUFFIX append SUFFIX to installed program names
1953 --program-transform-name=PROGRAM run
sed PROGRAM on installed program names
1956 --x-includes=DIR X include files are
in DIR
1957 --x-libraries=DIR X library files are
in DIR
1960 --build=BUILD configure
for building on BUILD
[guessed
]
1961 --host=HOST cross-compile to build programs to run on HOST
[BUILD
]
1965 if test -n "$ac_init_help"; then
1966 case $ac_init_help in
1967 short | recursive
) echo "Configuration of emacs 24.1.50:";;
1972 --disable-option-checking ignore unrecognized
--enable/--with options
1973 --disable-FEATURE do not include FEATURE
(same as
--enable-FEATURE=no
)
1974 --enable-FEATURE[=ARG
] include FEATURE
[ARG
=yes]
1975 --disable-ns-self-contained
1976 disable self contained build under NeXTstep
1977 --enable-asserts compile code with asserts enabled
1978 --disable-maintainer-mode
1979 disable
make rules and dependencies not useful
(and
1980 sometimes confusing
) to the casual installer
1981 --enable-locallisppath=PATH
1982 directories Emacs should search
for lisp files
1983 specific to this site
1984 --enable-checking[=LIST
]
1985 enable expensive run-time checks. With LIST
, enable
1986 only specific categories of checks. Categories are
:
1987 all
,yes,no. Flags are
: stringbytes
, stringoverrun
,
1988 stringfreelist
, xmallocoverrun
, conslist
1989 --enable-use-lisp-union-type
1990 use a union
for the Lisp_Object data
type. This is
1991 only useful
for development
for catching certain
1993 --enable-profiling build emacs with profiling support. This might not
1994 work on all platforms
1995 --enable-autodepend automatically generate dependencies to .h-files.
1996 Requires GNU Make and Gcc. Enabled
if GNU Make and
1998 --disable-dependency-tracking speeds up one-time build
1999 --enable-dependency-tracking do not reject slow dependency extractors
2000 --disable-largefile omit support
for large files
2001 --enable-gcc-warnings turn on lots of GCC warnings
(for developers
)
2004 --with-PACKAGE[=ARG
] use PACKAGE
[ARG
=yes]
2005 --without-PACKAGE do not use PACKAGE
(same as
--with-PACKAGE=no
)
2006 --without-pop don
't support POP mail retrieval with movemail
2007 --with-kerberos support Kerberos-authenticated POP
2008 --with-kerberos5 support Kerberos version 5 authenticated POP
2009 --with-hesiod support Hesiod to get the POP server host
2010 --with-mmdf support MMDF mailboxes
2011 --with-mail-unlink unlink, rather than empty, mail spool after reading
2012 --with-mailhost=HOSTNAME
2013 string giving default POP mail host
2014 --without-sound don't compile with sound support
2015 --without-sync-input process async input synchronously
2016 --with-x-toolkit=KIT use an X toolkit
(KIT one of
: yes or gtk
, gtk3
,
2017 lucid or athena
, motif
, no
)
2018 --with-wide-int prefer wide Emacs integers
(typically
62-bit)
2019 --without-xpm don
't compile with XPM image support
2020 --without-jpeg don't compile with JPEG image support
2021 --without-tiff don
't compile with TIFF image support
2022 --without-gif don't compile with GIF image support
2023 --without-png don
't compile with PNG image support
2024 --without-rsvg don't compile with SVG image support
2025 --without-xml2 don
't compile with XML parsing support
2026 --without-imagemagick don't compile with ImageMagick image support
2027 --without-xft don
't use XFT for anti aliased fonts
2028 --without-libotf don't use libotf
for OpenType font support
2029 --without-m17n-flt don
't use m17n-flt for text shaping
2030 --without-toolkit-scroll-bars
2031 don't use Motif or Xaw3d scroll bars
2032 --without-xaw3d don
't use Xaw3d
2033 --without-xim don't use X11 XIM
2034 --with-ns use NeXTstep
(Cocoa or GNUstep
) windowing system
2035 --without-gpm don
't use -lgpm for mouse support on a GNU/Linux
2037 --without-dbus don't compile with D-Bus support
2038 --without-gconf don
't compile with GConf support
2039 --without-gsettings don't compile with GSettings support
2040 --without-selinux don
't compile with SELinux support
2041 --without-gnutls don't use
-lgnutls for SSL
/TLS support
2042 --without-makeinfo don
't require makeinfo for building manuals
2043 --without-compress-info don't
compress the installed Info pages
2044 --with-pkg-config-prog=PATH
2045 path to pkg-config
for finding GTK and librsvg
2046 --with-crt-dir=DIR directory containing crtn.o etc. The default is
2047 /usr
/lib
, or
/usr
/lib64 on some platforms.
2048 --with-gameuser=USER user
for shared game score files
2049 --with-gnustep-conf=PATH
2050 path to GNUstep.conf
; default
$GNUSTEP_CONFIG_FILE,
2051 or
/etc
/GNUstep
/GNUstep.conf
2052 --with-x use the X Window System
2054 Some influential environment variables
:
2055 CC C compiler
command
2056 CFLAGS C compiler flags
2057 LDFLAGS linker flags
, e.g.
-L<lib dir
> if you have libraries
in a
2058 nonstandard directory
<lib dir
>
2059 LIBS libraries to pass to the linker
, e.g.
-l<library
>
2060 CPPFLAGS
(Objective
) C
/C
++ preprocessor flags
, e.g.
-I<include dir
> if
2061 you have headers
in a nonstandard directory
<include dir
>
2063 XMKMF Path to xmkmf
, Makefile generator
for X Window System
2065 Use these variables to override the choices made by
`configure' or to help
2066 it to find libraries and programs with nonstandard names/locations.
2068 Report bugs to the package provider.
2073 if test "$ac_init_help" = "recursive"; then
2074 # If there are subdirs, report their specific --help.
2075 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
2076 test -d "$ac_dir" ||
2077 { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
2082 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
2084 ac_dir_suffix=/`$as_echo "$ac_dir" |
sed 's|^\.[\\/]||'`
2085 # A ".." for each directory in $ac_dir_suffix.
2086 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" |
sed 's|/[^\\/]*|/..|g;s|/||'`
2087 case $ac_top_builddir_sub in
2088 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
2089 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
2092 ac_abs_top_builddir=$ac_pwd
2093 ac_abs_builddir=$ac_pwd$ac_dir_suffix
2094 # for backward compatibility:
2095 ac_top_builddir=$ac_top_build_prefix
2098 .) # We are building in place.
2100 ac_top_srcdir=$ac_top_builddir_sub
2101 ac_abs_top_srcdir=$ac_pwd ;;
2102 [\\/]* | ?:[\\/]* ) # Absolute name.
2103 ac_srcdir=$srcdir$ac_dir_suffix;
2104 ac_top_srcdir=$srcdir
2105 ac_abs_top_srcdir=$srcdir ;;
2107 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
2108 ac_top_srcdir=$ac_top_build_prefix$srcdir
2109 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
2111 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
2113 cd "$ac_dir" || { ac_status=$?; continue; }
2114 # Check for guested configure.
2115 if test -f "$ac_srcdir/configure.gnu"; then
2117 $SHELL "$ac_srcdir/configure.gnu" --help=recursive
2118 elif test -f "$ac_srcdir/configure"; then
2120 $SHELL "$ac_srcdir/configure" --help=recursive
2122 $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
2124 cd "$ac_pwd" || { ac_status=$?; break; }
2128 test -n "$ac_init_help" && exit $ac_status
2129 if $ac_init_version; then
2131 emacs configure 24.1.50
2132 generated by GNU Autoconf 2.65
2134 Copyright (C) 2009 Free Software Foundation, Inc.
2135 This configure script is free software; the Free Software Foundation
2136 gives unlimited permission to copy, distribute and modify it.
2141 ## ------------------------ ##
2142 ## Autoconf initialization. ##
2143 ## ------------------------ ##
2145 # ac_fn_c_try_compile LINENO
2146 # --------------------------
2147 # Try to compile conftest.$ac_ext, and return whether this succeeded.
2148 ac_fn_c_try_compile ()
2150 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2151 rm -f conftest.$ac_objext
2152 if { { ac_try="$ac_compile"
2154 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
2155 *) ac_try_echo
=$ac_try;;
2157 eval ac_try_echo
="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2158 $as_echo "$ac_try_echo"; } >&5
2159 (eval "$ac_compile") 2>conftest.err
2161 if test -s conftest.err
; then
2162 grep -v '^ *+' conftest.err
>conftest.er1
2163 cat conftest.er1
>&5
2164 mv -f conftest.er1 conftest.err
2166 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2167 test $ac_status = 0; } && {
2168 test -z "$ac_c_werror_flag" ||
2169 test ! -s conftest.err
2170 } && test -s conftest.
$ac_objext; then :
2173 $as_echo "$as_me: failed program was:" >&5
2174 sed 's/^/| /' conftest.
$ac_ext >&5
2178 eval $as_lineno_stack; test "x$as_lineno_stack" = x
&& { as_lineno
=; unset as_lineno
;}
2179 as_fn_set_status
$ac_retval
2181 } # ac_fn_c_try_compile
2183 # ac_fn_c_try_cpp LINENO
2184 # ----------------------
2185 # Try to preprocess conftest.$ac_ext, and return whether this succeeded.
2188 as_lineno
=${as_lineno-"$1"} as_lineno_stack
=as_lineno_stack
=$as_lineno_stack
2189 if { { ac_try
="$ac_cpp conftest.$ac_ext"
2191 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
2192 *) ac_try_echo=$ac_try;;
2194 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2195 $as_echo "$ac_try_echo"; } >&5
2196 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
2198 if test -s conftest.err; then
2199 grep -v '^ *+' conftest.err >conftest.er1
2200 cat conftest.er1 >&5
2201 mv -f conftest.er1 conftest.err
2203 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2204 test $ac_status = 0; } >/dev/null && {
2205 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
2206 test ! -s conftest.err
2210 $as_echo "$as_me: failed program was:" >&5
2211 sed 's/^/| /' conftest.$ac_ext >&5
2215 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2216 as_fn_set_status $ac_retval
2220 # ac_fn_c_check_header_mongrel LINENO HEADER VAR INCLUDES
2221 # -------------------------------------------------------
2222 # Tests whether HEADER exists, giving a warning if it cannot be compiled using
2223 # the include files in INCLUDES and setting the cache variable VAR
2225 ac_fn_c_check_header_mongrel ()
2227 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2228 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
2229 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2230 $as_echo_n "checking for $2... " >&6; }
2231 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
2232 $as_echo_n "(cached) " >&6
2235 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2236 $as_echo "$ac_res" >&6; }
2238 # Is the header compilable?
2239 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5
2240 $as_echo_n "checking $2 usability... " >&6; }
2241 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2242 /* end confdefs.h. */
2246 if ac_fn_c_try_compile "$LINENO"; then :
2247 ac_header_compiler=yes
2249 ac_header_compiler=no
2251 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2252 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5
2253 $as_echo "$ac_header_compiler" >&6; }
2255 # Is the header present?
2256 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5
2257 $as_echo_n "checking $2 presence... " >&6; }
2258 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2259 /* end confdefs.h. */
2262 if ac_fn_c_try_cpp "$LINENO"; then :
2263 ac_header_preproc=yes
2265 ac_header_preproc=no
2267 rm -f conftest.err conftest.$ac_ext
2268 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5
2269 $as_echo "$ac_header_preproc" >&6; }
2271 # So? What about this header?
2272 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in #((
2274 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5
2275 $as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;}
2276 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
2277 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
2280 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5
2281 $as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;}
2282 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: check for missing prerequisite headers?" >&5
2283 $as_echo "$as_me: WARNING: $2: check for missing prerequisite headers?" >&2;}
2284 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5
2285 $as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;}
2286 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&5
2287 $as_echo "$as_me: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&2;}
2288 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
2289 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
2292 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2293 $as_echo_n "checking for $2... " >&6; }
2294 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
2295 $as_echo_n "(cached) " >&6
2297 eval "$3=\$ac_header_compiler"
2300 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2301 $as_echo "$ac_res" >&6; }
2303 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2305 } # ac_fn_c_check_header_mongrel
2307 # ac_fn_c_try_run LINENO
2308 # ----------------------
2309 # Try to link conftest.$ac_ext, and return whether this succeeded. Assumes
2310 # that executables *can* be run.
2313 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2314 if { { ac_try="$ac_link"
2316 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
2317 *) ac_try_echo
=$ac_try;;
2319 eval ac_try_echo
="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2320 $as_echo "$ac_try_echo"; } >&5
2321 (eval "$ac_link") 2>&5
2323 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2324 test $ac_status = 0; } && { ac_try
='./conftest$ac_exeext'
2325 { { case "(($ac_try" in
2326 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
2327 *) ac_try_echo=$ac_try;;
2329 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2330 $as_echo "$ac_try_echo"; } >&5
2331 (eval "$ac_try") 2>&5
2333 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2334 test $ac_status = 0; }; }; then :
2337 $as_echo "$as_me: program exited with status $ac_status" >&5
2338 $as_echo "$as_me: failed program was:" >&5
2339 sed 's/^/| /' conftest.$ac_ext >&5
2341 ac_retval=$ac_status
2343 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
2344 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2345 as_fn_set_status $ac_retval
2349 # ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES
2350 # -------------------------------------------------------
2351 # Tests whether HEADER exists and can be compiled using the include files in
2352 # INCLUDES, setting the cache variable VAR accordingly.
2353 ac_fn_c_check_header_compile ()
2355 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2356 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2357 $as_echo_n "checking for $2... " >&6; }
2358 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
2359 $as_echo_n "(cached) " >&6
2361 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2362 /* end confdefs.h. */
2366 if ac_fn_c_try_compile "$LINENO"; then :
2371 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2374 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2375 $as_echo "$ac_res" >&6; }
2376 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2378 } # ac_fn_c_check_header_compile
2380 # ac_fn_c_try_link LINENO
2381 # -----------------------
2382 # Try to link conftest.$ac_ext, and return whether this succeeded.
2385 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2386 rm -f conftest.$ac_objext conftest$ac_exeext
2387 if { { ac_try="$ac_link"
2389 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
2390 *) ac_try_echo
=$ac_try;;
2392 eval ac_try_echo
="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2393 $as_echo "$ac_try_echo"; } >&5
2394 (eval "$ac_link") 2>conftest.err
2396 if test -s conftest.err
; then
2397 grep -v '^ *+' conftest.err
>conftest.er1
2398 cat conftest.er1
>&5
2399 mv -f conftest.er1 conftest.err
2401 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2402 test $ac_status = 0; } && {
2403 test -z "$ac_c_werror_flag" ||
2404 test ! -s conftest.err
2405 } && test -s conftest
$ac_exeext && {
2406 test "$cross_compiling" = yes ||
2407 $as_test_x conftest
$ac_exeext
2411 $as_echo "$as_me: failed program was:" >&5
2412 sed 's/^/| /' conftest.
$ac_ext >&5
2416 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
2417 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
2418 # interfere with the next link command; also delete a directory that is
2419 # left behind by Apple's compiler. We do this before executing the actions.
2420 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
2421 eval $as_lineno_stack; test "x$as_lineno_stack" = x
&& { as_lineno
=; unset as_lineno
;}
2422 as_fn_set_status
$ac_retval
2424 } # ac_fn_c_try_link
2426 # ac_fn_c_check_decl LINENO SYMBOL VAR
2427 # ------------------------------------
2428 # Tests whether SYMBOL is declared, setting cache variable VAR accordingly.
2429 ac_fn_c_check_decl
()
2431 as_lineno
=${as_lineno-"$1"} as_lineno_stack
=as_lineno_stack
=$as_lineno_stack
2432 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $2 is declared" >&5
2433 $as_echo_n "checking whether $2 is declared... " >&6; }
2434 if { as_var
=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
2435 $as_echo_n "(cached) " >&6
2437 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
2438 /* end confdefs.h. */
2451 if ac_fn_c_try_compile
"$LINENO"; then :
2456 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
2459 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2460 $as_echo "$ac_res" >&6; }
2461 eval $as_lineno_stack; test "x$as_lineno_stack" = x
&& { as_lineno
=; unset as_lineno
;}
2463 } # ac_fn_c_check_decl
2465 # ac_fn_c_check_header_preproc LINENO HEADER VAR
2466 # ----------------------------------------------
2467 # Tests whether HEADER is present, setting the cache variable VAR accordingly.
2468 ac_fn_c_check_header_preproc
()
2470 as_lineno
=${as_lineno-"$1"} as_lineno_stack
=as_lineno_stack
=$as_lineno_stack
2471 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2472 $as_echo_n "checking for $2... " >&6; }
2473 if { as_var
=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
2474 $as_echo_n "(cached) " >&6
2476 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
2477 /* end confdefs.h. */
2480 if ac_fn_c_try_cpp
"$LINENO"; then :
2485 rm -f conftest.err conftest.
$ac_ext
2488 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2489 $as_echo "$ac_res" >&6; }
2490 eval $as_lineno_stack; test "x$as_lineno_stack" = x
&& { as_lineno
=; unset as_lineno
;}
2492 } # ac_fn_c_check_header_preproc
2494 # ac_fn_c_check_func LINENO FUNC VAR
2495 # ----------------------------------
2496 # Tests whether FUNC exists, setting the cache variable VAR accordingly
2497 ac_fn_c_check_func
()
2499 as_lineno
=${as_lineno-"$1"} as_lineno_stack
=as_lineno_stack
=$as_lineno_stack
2500 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2501 $as_echo_n "checking for $2... " >&6; }
2502 if { as_var
=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
2503 $as_echo_n "(cached) " >&6
2505 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
2506 /* end confdefs.h. */
2507 /* Define $2 to an innocuous variant, in case <limits.h> declares $2.
2508 For example, HP-UX 11i <limits.h> declares gettimeofday. */
2509 #define $2 innocuous_$2
2511 /* System header to define __stub macros and hopefully few prototypes,
2512 which can conflict with char $2 (); below.
2513 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
2514 <limits.h> exists even on freestanding compilers. */
2517 # include <limits.h>
2519 # include <assert.h>
2524 /* Override any GCC internal prototype to avoid an error.
2525 Use char because int might match the return type of a GCC
2526 builtin and then its argument prototype would still apply. */
2531 /* The GNU C library defines this for functions which it implements
2532 to always fail with ENOSYS. Some functions are actually named
2533 something starting with __ and the normal name is an alias. */
2534 #if defined __stub_$2 || defined __stub___$2
2546 if ac_fn_c_try_link
"$LINENO"; then :
2551 rm -f core conftest.err conftest.
$ac_objext \
2552 conftest
$ac_exeext conftest.
$ac_ext
2555 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2556 $as_echo "$ac_res" >&6; }
2557 eval $as_lineno_stack; test "x$as_lineno_stack" = x
&& { as_lineno
=; unset as_lineno
;}
2559 } # ac_fn_c_check_func
2561 # ac_fn_c_check_member LINENO AGGR MEMBER VAR INCLUDES
2562 # ----------------------------------------------------
2563 # Tries to find if the field MEMBER exists in type AGGR, after including
2564 # INCLUDES, setting cache variable VAR accordingly.
2565 ac_fn_c_check_member
()
2567 as_lineno
=${as_lineno-"$1"} as_lineno_stack
=as_lineno_stack
=$as_lineno_stack
2568 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2.$3" >&5
2569 $as_echo_n "checking for $2.$3... " >&6; }
2570 if { as_var
=$4; eval "test \"\${$as_var+set}\" = set"; }; then :
2571 $as_echo_n "(cached) " >&6
2573 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
2574 /* end confdefs.h. */
2586 if ac_fn_c_try_compile
"$LINENO"; then :
2589 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
2590 /* end confdefs.h. */
2596 if (sizeof ac_aggr.$3)
2602 if ac_fn_c_try_compile
"$LINENO"; then :
2607 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
2609 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
2612 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2613 $as_echo "$ac_res" >&6; }
2614 eval $as_lineno_stack; test "x$as_lineno_stack" = x
&& { as_lineno
=; unset as_lineno
;}
2616 } # ac_fn_c_check_member
2618 # ac_fn_c_check_type LINENO TYPE VAR INCLUDES
2619 # -------------------------------------------
2620 # Tests whether TYPE exists after having included INCLUDES, setting cache
2621 # variable VAR accordingly.
2622 ac_fn_c_check_type
()
2624 as_lineno
=${as_lineno-"$1"} as_lineno_stack
=as_lineno_stack
=$as_lineno_stack
2625 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2626 $as_echo_n "checking for $2... " >&6; }
2627 if { as_var
=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
2628 $as_echo_n "(cached) " >&6
2631 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
2632 /* end confdefs.h. */
2643 if ac_fn_c_try_compile
"$LINENO"; then :
2644 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
2645 /* end confdefs.h. */
2656 if ac_fn_c_try_compile
"$LINENO"; then :
2661 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
2663 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
2666 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2667 $as_echo "$ac_res" >&6; }
2668 eval $as_lineno_stack; test "x$as_lineno_stack" = x
&& { as_lineno
=; unset as_lineno
;}
2670 } # ac_fn_c_check_type
2672 # ac_fn_c_compute_int LINENO EXPR VAR INCLUDES
2673 # --------------------------------------------
2674 # Tries to find the compile-time value of EXPR in a program that includes
2675 # INCLUDES, setting VAR accordingly. Returns whether the value could be
2677 ac_fn_c_compute_int
()
2679 as_lineno
=${as_lineno-"$1"} as_lineno_stack
=as_lineno_stack
=$as_lineno_stack
2680 if test "$cross_compiling" = yes; then
2681 # Depending upon the size, compute the lo and hi bounds.
2682 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
2683 /* end confdefs.h. */
2688 static int test_array [1 - 2 * !(($2) >= 0)];
2695 if ac_fn_c_try_compile
"$LINENO"; then :
2698 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
2699 /* end confdefs.h. */
2704 static int test_array [1 - 2 * !(($2) <= $ac_mid)];
2711 if ac_fn_c_try_compile
"$LINENO"; then :
2712 ac_hi
=$ac_mid; break
2714 as_fn_arith
$ac_mid + 1 && ac_lo
=$as_val
2715 if test $ac_lo -le $ac_mid; then
2719 as_fn_arith
2 '*' $ac_mid + 1 && ac_mid
=$as_val
2721 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
2724 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
2725 /* end confdefs.h. */
2730 static int test_array [1 - 2 * !(($2) < 0)];
2737 if ac_fn_c_try_compile
"$LINENO"; then :
2740 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
2741 /* end confdefs.h. */
2746 static int test_array [1 - 2 * !(($2) >= $ac_mid)];
2753 if ac_fn_c_try_compile
"$LINENO"; then :
2754 ac_lo
=$ac_mid; break
2756 as_fn_arith
'(' $ac_mid ')' - 1 && ac_hi
=$as_val
2757 if test $ac_mid -le $ac_hi; then
2761 as_fn_arith
2 '*' $ac_mid && ac_mid
=$as_val
2763 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
2768 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
2770 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
2771 # Binary search between lo and hi bounds.
2772 while test "x$ac_lo" != "x$ac_hi"; do
2773 as_fn_arith
'(' $ac_hi - $ac_lo ')' / 2 + $ac_lo && ac_mid
=$as_val
2774 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
2775 /* end confdefs.h. */
2780 static int test_array [1 - 2 * !(($2) <= $ac_mid)];
2787 if ac_fn_c_try_compile
"$LINENO"; then :
2790 as_fn_arith
'(' $ac_mid ')' + 1 && ac_lo
=$as_val
2792 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
2795 ?
*) eval "$3=\$ac_lo"; ac_retval
=0 ;;
2799 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
2800 /* end confdefs.h. */
2802 static long int longval () { return $2; }
2803 static unsigned long int ulongval () { return $2; }
2810 FILE *f = fopen ("conftest.val", "w");
2815 long int i = longval ();
2818 fprintf (f, "%ld", i);
2822 unsigned long int i = ulongval ();
2825 fprintf (f, "%lu", i);
2827 /* Do not output a trailing newline, as this causes \r\n confusion
2828 on some platforms. */
2829 return ferror (f) || fclose (f) != 0;
2835 if ac_fn_c_try_run
"$LINENO"; then :
2836 echo >>conftest.val
; read $3 <conftest.val
; ac_retval
=0
2840 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
2841 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
2845 eval $as_lineno_stack; test "x$as_lineno_stack" = x
&& { as_lineno
=; unset as_lineno
;}
2846 as_fn_set_status
$ac_retval
2848 } # ac_fn_c_compute_int
2849 cat >config.log
<<_ACEOF
2850 This file contains any messages produced by compilers while
2851 running configure, to aid debugging if configure makes a mistake.
2853 It was created by emacs $as_me 24.1.50, which was
2854 generated by GNU Autoconf 2.65. Invocation command line was
2866 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
2867 uname -m = `(uname -m) 2>/dev/null || echo unknown`
2868 uname -r = `(uname -r) 2>/dev/null || echo unknown`
2869 uname -s = `(uname -s) 2>/dev/null || echo unknown`
2870 uname -v = `(uname -v) 2>/dev/null || echo unknown`
2872 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
2873 /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
2875 /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
2876 /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
2877 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
2878 /usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
2879 /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
2880 /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
2881 /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
2885 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
2889 test -z "$as_dir" && as_dir
=.
2890 $as_echo "PATH: $as_dir"
2906 # Keep a trace of the command line.
2907 # Strip out --no-create and --no-recursion so they do not pile up.
2908 # Strip out --silent because we don't want to record it for future runs.
2909 # Also quote any args containing shell meta-characters.
2910 # Make two passes to allow for proper duplicate-argument suppression.
2914 ac_must_keep_next
=false
2920 -no-create |
--no-c* |
-n |
-no-recursion |
--no-r*) continue ;;
2921 -q |
-quiet |
--quiet |
--quie |
--qui |
--qu |
--q \
2922 |
-silent |
--silent |
--silen |
--sile |
--sil)
2925 ac_arg
=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
2928 1) as_fn_append ac_configure_args0
" '$ac_arg'" ;;
2930 as_fn_append ac_configure_args1
" '$ac_arg'"
2931 if test $ac_must_keep_next = true
; then
2932 ac_must_keep_next
=false
# Got value, back to normal.
2935 *=* |
--config-cache |
-C |
-disable-* |
--disable-* \
2936 |
-enable-* |
--enable-* |
-gas |
--g* |
-nfp |
--nf* \
2937 |
-q |
-quiet |
--q* |
-silent |
--sil* |
-v |
-verb* \
2938 |
-with-* |
--with-* |
-without-* |
--without-* |
--x)
2939 case "$ac_configure_args0 " in
2940 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
2943 -* ) ac_must_keep_next
=true
;;
2946 as_fn_append ac_configure_args
" '$ac_arg'"
2951 { ac_configure_args0
=; unset ac_configure_args0
;}
2952 { ac_configure_args1
=; unset ac_configure_args1
;}
2954 # When interrupted or exit'd, cleanup temporary files, and complete
2955 # config.log. We remove comments because anyway the quotes in there
2956 # would cause problems or look ugly.
2957 # WARNING: Use '\'' to represent an apostrophe within the trap.
2958 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
2959 trap 'exit_status=$?
2960 # Save into config.log some information that might help in debugging.
2965 ## ---------------- ##
2966 ## Cache variables. ##
2967 ## ---------------- ##
2970 # The following way of writing the cache mishandles newlines in values,
2972 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
2973 eval ac_val=\$$ac_var
2977 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
2978 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
2981 _ | IFS | as_nl) ;; #(
2982 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
2983 *) { eval $ac_var=; unset $ac_var;} ;;
2988 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
2989 *${as_nl}ac_space=\ *)
2991 "s/'\''/'\''\\\\'\'''\''/g;
2992 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
2995 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
3003 ## ----------------- ##
3004 ## Output variables. ##
3005 ## ----------------- ##
3008 for ac_var in $ac_subst_vars
3010 eval ac_val=\$$ac_var
3012 *\'\''*) ac_val
=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
3014 $as_echo "$ac_var='\''$ac_val'\''"
3018 if test -n "$ac_subst_files"; then
3020 ## ------------------- ##
3021 ## File substitutions. ##
3022 ## ------------------- ##
3025 for ac_var
in $ac_subst_files
3027 eval ac_val
=\$
$ac_var
3029 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
3031 $as_echo "$ac_var='\''$ac_val'\''"
3036 if test -s confdefs.h; then
3046 test "$ac_signal" != 0 &&
3047 $as_echo "$as_me: caught signal $ac_signal"
3048 $as_echo "$as_me: exit $exit_status"
3050 rm -f core *.core core.conftest.* &&
3051 rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
3054 for ac_signal
in 1 2 13 15; do
3055 trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
3059 # confdefs.h avoids OS command line length limits that DEFS can exceed.
3060 rm -f -r conftest
* confdefs.h
3062 $as_echo "/* confdefs.h */" > confdefs.h
3064 # Predefined preprocessor variables.
3066 cat >>confdefs.h
<<_ACEOF
3067 #define PACKAGE_NAME "$PACKAGE_NAME"
3070 cat >>confdefs.h
<<_ACEOF
3071 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
3074 cat >>confdefs.h
<<_ACEOF
3075 #define PACKAGE_VERSION "$PACKAGE_VERSION"
3078 cat >>confdefs.h
<<_ACEOF
3079 #define PACKAGE_STRING "$PACKAGE_STRING"
3082 cat >>confdefs.h
<<_ACEOF
3083 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
3086 cat >>confdefs.h
<<_ACEOF
3087 #define PACKAGE_URL "$PACKAGE_URL"
3091 # Let the site file select an alternate cache file if it wants to.
3092 # Prefer an explicitly selected file to automatically selected ones.
3095 if test -n "$CONFIG_SITE"; then
3096 ac_site_file1
=$CONFIG_SITE
3097 elif test "x$prefix" != xNONE
; then
3098 ac_site_file1
=$prefix/share
/config.site
3099 ac_site_file2
=$prefix/etc
/config.site
3101 ac_site_file1
=$ac_default_prefix/share
/config.site
3102 ac_site_file2
=$ac_default_prefix/etc
/config.site
3104 for ac_site_file
in "$ac_site_file1" "$ac_site_file2"
3106 test "x$ac_site_file" = xNONE
&& continue
3107 if test /dev
/null
!= "$ac_site_file" && test -r "$ac_site_file"; then
3108 { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
3109 $as_echo "$as_me: loading site script $ac_site_file" >&6;}
3110 sed 's/^/| /' "$ac_site_file" >&5
3115 if test -r "$cache_file"; then
3116 # Some versions of bash will fail to source /dev/null (special files
3117 # actually), so we avoid doing that. DJGPP emulates it as a regular file.
3118 if test /dev
/null
!= "$cache_file" && test -f "$cache_file"; then
3119 { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
3120 $as_echo "$as_me: loading cache $cache_file" >&6;}
3122 [\\/]* | ?
:[\\/]* ) .
"$cache_file";;
3123 *) .
"./$cache_file";;
3127 { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
3128 $as_echo "$as_me: creating cache $cache_file" >&6;}
3132 as_fn_append ac_header_list
" stdlib.h"
3133 as_fn_append ac_header_list
" unistd.h"
3134 as_fn_append ac_header_list
" sys/param.h"
3135 as_fn_append ac_func_list
" readlinkat"
3136 gl_getopt_required
=GNU
3137 as_fn_append ac_header_list
" getopt.h"
3138 as_fn_append ac_header_list
" wchar.h"
3139 as_fn_append ac_header_list
" stdint.h"
3140 as_fn_append ac_header_list
" inttypes.h"
3141 as_fn_append ac_func_list
" lstat"
3142 as_fn_append ac_func_list
" alarm"
3143 as_fn_append ac_func_list
" pthread_sigmask"
3144 as_fn_append ac_func_list
" readlink"
3145 as_fn_append ac_header_list
" sys/socket.h"
3146 as_fn_append ac_func_list
" tzset"
3147 as_fn_append ac_func_list
" strtoimax"
3148 as_fn_append ac_func_list
" strtoumax"
3149 as_fn_append ac_func_list
" symlink"
3150 as_fn_append ac_header_list
" sys/stat.h"
3151 as_fn_append ac_header_list
" sys/time.h"
3152 as_fn_append ac_func_list
" localtime_r"
3153 # Check that the precious variables saved in the cache have kept the same
3155 ac_cache_corrupted
=false
3156 for ac_var
in $ac_precious_vars; do
3157 eval ac_old_set
=\
$ac_cv_env_${ac_var}_set
3158 eval ac_new_set
=\
$ac_env_${ac_var}_set
3159 eval ac_old_val
=\
$ac_cv_env_${ac_var}_value
3160 eval ac_new_val
=\
$ac_env_${ac_var}_value
3161 case $ac_old_set,$ac_new_set in
3163 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
3164 $as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
3165 ac_cache_corrupted
=: ;;
3167 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
3168 $as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
3169 ac_cache_corrupted
=: ;;
3172 if test "x$ac_old_val" != "x$ac_new_val"; then
3173 # differences in whitespace do not lead to failure.
3174 ac_old_val_w
=`echo x $ac_old_val`
3175 ac_new_val_w
=`echo x $ac_new_val`
3176 if test "$ac_old_val_w" != "$ac_new_val_w"; then
3177 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
3178 $as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
3179 ac_cache_corrupted
=:
3181 { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
3182 $as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
3183 eval $ac_var=\
$ac_old_val
3185 { $as_echo "$as_me:${as_lineno-$LINENO}: former value: \`$ac_old_val'" >&5
3186 $as_echo "$as_me: former value: \`$ac_old_val'" >&2;}
3187 { $as_echo "$as_me:${as_lineno-$LINENO}: current value: \`$ac_new_val'" >&5
3188 $as_echo "$as_me: current value: \`$ac_new_val'" >&2;}
3191 # Pass precious variables to config.status.
3192 if test "$ac_new_set" = set; then
3194 *\'*) ac_arg
=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
3195 *) ac_arg
=$ac_var=$ac_new_val ;;
3197 case " $ac_configure_args " in
3198 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
3199 *) as_fn_append ac_configure_args
" '$ac_arg'" ;;
3203 if $ac_cache_corrupted; then
3204 { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3205 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3206 { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
3207 $as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
3208 as_fn_error
"run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5
3210 ## -------------------- ##
3211 ## Main body of script. ##
3212 ## -------------------- ##
3215 ac_cpp
='$CPP $CPPFLAGS'
3216 ac_compile
='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3217 ac_link
='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3218 ac_compiler_gnu
=$ac_cv_c_compiler_gnu
3221 ac_config_headers
="$ac_config_headers src/config.h:src/config.in"
3225 for ac_dir
in build-aux
"$srcdir"/build-aux
; do
3226 for ac_t
in install-sh
install.sh shtool
; do
3227 if test -f "$ac_dir/$ac_t"; then
3229 ac_install_sh
="$ac_aux_dir/$ac_t -c"
3234 if test -z "$ac_aux_dir"; then
3235 as_fn_error
"cannot find install-sh, install.sh, or shtool in build-aux \"$srcdir\"/build-aux" "$LINENO" 5
3238 # These three variables are undocumented and unsupported,
3239 # and are intended to be withdrawn in a future Autoconf release.
3240 # They can cause serious problems if a builder's source tree is in a directory
3241 # whose full name contains unusual characters.
3242 ac_config_guess
="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
3243 ac_config_sub
="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
3244 ac_configure
="$SHELL $ac_aux_dir/configure" # Please don't use this var.
3247 am__api_version
='1.11'
3249 # Find a good install program. We prefer a C program (faster),
3250 # so one script is as good as another. But avoid the broken or
3251 # incompatible versions:
3252 # SysV /etc/install, /usr/sbin/install
3253 # SunOS /usr/etc/install
3254 # IRIX /sbin/install
3256 # AmigaOS /C/install, which installs bootblocks on floppy discs
3257 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
3258 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
3259 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
3260 # OS/2's system install, which has a completely different semantic
3261 # ./install, which can be erroneously created by make from ./install.sh.
3262 # Reject install programs that cannot install multiple files.
3263 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5
3264 $as_echo_n "checking for a BSD-compatible install... " >&6; }
3265 if test -z "$INSTALL"; then
3266 if test "${ac_cv_path_install+set}" = set; then :
3267 $as_echo_n "(cached) " >&6
3269 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
3273 test -z "$as_dir" && as_dir
=.
3274 # Account for people who put trailing slashes in PATH elements.
3275 case $as_dir/ in #((
3276 .
/ | .
// |
/[cC
]/* | \
3277 /etc
/* |
/usr
/sbin
/* |
/usr
/etc
/* |
/sbin
/* |
/usr
/afsws
/bin
/* | \
3278 ?
:[\\/]os2
[\\/]install[\\/]* | ?
:[\\/]OS2
[\\/]INSTALL
[\\/]* | \
3281 # OSF1 and SCO ODT 3.0 have their own names for install.
3282 # Don't use installbsd from OSF since it installs stuff as root
3284 for ac_prog
in ginstall scoinst
install; do
3285 for ac_exec_ext
in '' $ac_executable_extensions; do
3286 if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; }; then
3287 if test $ac_prog = install &&
3288 grep dspmsg
"$as_dir/$ac_prog$ac_exec_ext" >/dev
/null
2>&1; then
3289 # AIX install. It has an incompatible calling convention.
3291 elif test $ac_prog = install &&
3292 grep pwplus
"$as_dir/$ac_prog$ac_exec_ext" >/dev
/null
2>&1; then
3293 # program-specific install script used by HP pwplus--don't use.
3296 rm -rf conftest.one conftest.two conftest.dir
3297 echo one
> conftest.one
3298 echo two
> conftest.two
3300 if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two
"`pwd`/conftest.dir" &&
3301 test -s conftest.one
&& test -s conftest.two
&&
3302 test -s conftest.dir
/conftest.one
&&
3303 test -s conftest.dir
/conftest.two
3305 ac_cv_path_install
="$as_dir/$ac_prog$ac_exec_ext -c"
3318 rm -rf conftest.one conftest.two conftest.dir
3321 if test "${ac_cv_path_install+set}" = set; then
3322 INSTALL
=$ac_cv_path_install
3324 # As a last resort, use the slow shell script. Don't cache a
3325 # value for INSTALL within a source directory, because that will
3326 # break other packages using the cache if that directory is
3327 # removed, or if the value is a relative name.
3328 INSTALL
=$ac_install_sh
3331 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
3332 $as_echo "$INSTALL" >&6; }
3334 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
3335 # It thinks the first close brace ends the variable substitution.
3336 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM
='${INSTALL}'
3338 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT
='${INSTALL}'
3340 test -z "$INSTALL_DATA" && INSTALL_DATA
='${INSTALL} -m 644'
3342 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether build environment is sane" >&5
3343 $as_echo_n "checking whether build environment is sane... " >&6; }
3346 echo timestamp
> conftest.
file
3347 # Reject unsafe characters in $srcdir or the absolute working directory
3348 # name. Accept space and tab only in the latter.
3352 *[\\\"\
#\$\&\'\`$am_lf]*)
3353 as_fn_error
"unsafe absolute working directory name" "$LINENO" 5;;
3356 *[\\\"\
#\$\&\'\`$am_lf\ \ ]*)
3357 as_fn_error
"unsafe srcdir value: \`$srcdir'" "$LINENO" 5;;
3360 # Do `set' in a subshell so we don't clobber the current shell's
3361 # arguments. Must try -L first in case configure is actually a
3362 # symlink; some systems play weird games with the mod time of symlinks
3363 # (eg FreeBSD returns the mod time of the symlink's containing
3366 set X
`ls -Lt "$srcdir/configure" conftest.file 2> /dev/null`
3367 if test "$*" = "X"; then
3369 set X
`ls -t "$srcdir/configure" conftest.file`
3372 if test "$*" != "X $srcdir/configure conftest.file" \
3373 && test "$*" != "X conftest.file $srcdir/configure"; then
3375 # If neither matched, then we have a broken ls. This can happen
3376 # if, for instance, CONFIG_SHELL is bash and it inherits a
3377 # broken ls alias from the environment. This has actually
3378 # happened. Such a system could not be considered "sane".
3379 as_fn_error
"ls -t appears to fail. Make sure there is not a broken
3380 alias in your environment" "$LINENO" 5
3383 test "$2" = conftest.
file
3389 as_fn_error
"newly created file is older than distributed files!
3390 Check your system clock" "$LINENO" 5
3392 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3393 $as_echo "yes" >&6; }
3394 test "$program_prefix" != NONE
&&
3395 program_transform_name
="s&^&$program_prefix&;$program_transform_name"
3396 # Use a double $ so make ignores it.
3397 test "$program_suffix" != NONE
&&
3398 program_transform_name
="s&\$&$program_suffix&;$program_transform_name"
3399 # Double any \ or $.
3400 # By default was `s,x,x', remove it if useless.
3401 ac_script
='s/[\\$]/&&/g;s/;s,x,x,$//'
3402 program_transform_name
=`$as_echo "$program_transform_name" | sed "$ac_script"`
3404 # expand $ac_aux_dir to an absolute path
3405 am_aux_dir
=`cd $ac_aux_dir && pwd`
3407 if test x
"${MISSING+set}" != xset
; then
3410 MISSING
="\${SHELL} \"$am_aux_dir/missing\"" ;;
3412 MISSING
="\${SHELL} $am_aux_dir/missing" ;;
3415 # Use eval to expand $SHELL
3416 if eval "$MISSING --run true"; then
3417 am_missing_run
="$MISSING --run "
3420 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`missing' script is too old or missing" >&5
3421 $as_echo "$as_me: WARNING: \`missing' script is too old or missing" >&2;}
3424 if test x
"${install_sh}" != xset
; then
3427 install_sh
="\${SHELL} '$am_aux_dir/install-sh'" ;;
3429 install_sh
="\${SHELL} $am_aux_dir/install-sh"
3433 # Installed binaries are usually stripped using `strip' when the user
3434 # run `make install-strip'. However `strip' might not be the right
3435 # tool to use in cross-compilation environments, therefore Automake
3436 # will honor the `STRIP' environment variable to overrule this program.
3437 if test "$cross_compiling" != no
; then
3438 if test -n "$ac_tool_prefix"; then
3439 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
3440 set dummy
${ac_tool_prefix}strip
; ac_word
=$2
3441 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3442 $as_echo_n "checking for $ac_word... " >&6; }
3443 if test "${ac_cv_prog_STRIP+set}" = set; then :
3444 $as_echo_n "(cached) " >&6
3446 if test -n "$STRIP"; then
3447 ac_cv_prog_STRIP
="$STRIP" # Let the user override the test.
3449 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
3453 test -z "$as_dir" && as_dir
=.
3454 for ac_exec_ext
in '' $ac_executable_extensions; do
3455 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3456 ac_cv_prog_STRIP
="${ac_tool_prefix}strip"
3457 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3466 STRIP
=$ac_cv_prog_STRIP
3467 if test -n "$STRIP"; then
3468 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
3469 $as_echo "$STRIP" >&6; }
3471 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3472 $as_echo "no" >&6; }
3477 if test -z "$ac_cv_prog_STRIP"; then
3479 # Extract the first word of "strip", so it can be a program name with args.
3480 set dummy strip
; ac_word
=$2
3481 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3482 $as_echo_n "checking for $ac_word... " >&6; }
3483 if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then :
3484 $as_echo_n "(cached) " >&6
3486 if test -n "$ac_ct_STRIP"; then
3487 ac_cv_prog_ac_ct_STRIP
="$ac_ct_STRIP" # Let the user override the test.
3489 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
3493 test -z "$as_dir" && as_dir
=.
3494 for ac_exec_ext
in '' $ac_executable_extensions; do
3495 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3496 ac_cv_prog_ac_ct_STRIP
="strip"
3497 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3506 ac_ct_STRIP
=$ac_cv_prog_ac_ct_STRIP
3507 if test -n "$ac_ct_STRIP"; then
3508 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
3509 $as_echo "$ac_ct_STRIP" >&6; }
3511 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3512 $as_echo "no" >&6; }
3515 if test "x$ac_ct_STRIP" = x
; then
3518 case $cross_compiling:$ac_tool_warned in
3520 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3521 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3522 ac_tool_warned
=yes ;;
3527 STRIP
="$ac_cv_prog_STRIP"
3531 INSTALL_STRIP_PROGRAM
="\$(install_sh) -c -s"
3533 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a thread-safe mkdir -p" >&5
3534 $as_echo_n "checking for a thread-safe mkdir -p... " >&6; }
3535 if test -z "$MKDIR_P"; then
3536 if test "${ac_cv_path_mkdir+set}" = set; then :
3537 $as_echo_n "(cached) " >&6
3539 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
3540 for as_dir
in $PATH$PATH_SEPARATOR/opt
/sfw
/bin
3543 test -z "$as_dir" && as_dir
=.
3544 for ac_prog
in mkdir gmkdir
; do
3545 for ac_exec_ext
in '' $ac_executable_extensions; do
3546 { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; } ||
continue
3547 case `"$as_dir/$ac_prog$ac_exec_ext" --version 2>&1` in #(
3548 'mkdir (GNU coreutils) '* | \
3549 'mkdir (coreutils) '* | \
3550 'mkdir (fileutils) '4.1*)
3551 ac_cv_path_mkdir
=$as_dir/$ac_prog$ac_exec_ext
3561 test -d .
/--version && rmdir .
/--version
3562 if test "${ac_cv_path_mkdir+set}" = set; then
3563 MKDIR_P
="$ac_cv_path_mkdir -p"
3565 # As a last resort, use the slow shell script. Don't cache a
3566 # value for MKDIR_P within a source directory, because that will
3567 # break other packages using the cache if that directory is
3568 # removed, or if the value is a relative name.
3569 MKDIR_P
="$ac_install_sh -d"
3572 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MKDIR_P" >&5
3573 $as_echo "$MKDIR_P" >&6; }
3578 [\\/$
]* | ?
:[\\/]*) ;;
3579 */*) mkdir_p
="\$(top_builddir)/$mkdir_p" ;;
3582 for ac_prog
in gawk mawk nawk
awk
3584 # Extract the first word of "$ac_prog", so it can be a program name with args.
3585 set dummy
$ac_prog; ac_word
=$2
3586 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3587 $as_echo_n "checking for $ac_word... " >&6; }
3588 if test "${ac_cv_prog_AWK+set}" = set; then :
3589 $as_echo_n "(cached) " >&6
3591 if test -n "$AWK"; then
3592 ac_cv_prog_AWK
="$AWK" # Let the user override the test.
3594 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
3598 test -z "$as_dir" && as_dir
=.
3599 for ac_exec_ext
in '' $ac_executable_extensions; do
3600 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3601 ac_cv_prog_AWK
="$ac_prog"
3602 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3612 if test -n "$AWK"; then
3613 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
3614 $as_echo "$AWK" >&6; }
3616 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3617 $as_echo "no" >&6; }
3621 test -n "$AWK" && break
3624 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
3625 $as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
3627 ac_make
=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
3628 if { as_var
=ac_cv_prog_make_
${ac_make}_set; eval "test \"\${$as_var+set}\" = set"; }; then :
3629 $as_echo_n "(cached) " >&6
3631 cat >conftest.
make <<\_ACEOF
3634 @
echo '@@@%%%=$(MAKE)=@@@%%%'
3636 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
3637 case `${MAKE-make} -f conftest.make 2>/dev/null` in
3639 eval ac_cv_prog_make_
${ac_make}_set
=yes;;
3641 eval ac_cv_prog_make_
${ac_make}_set
=no
;;
3645 if eval test \
$ac_cv_prog_make_${ac_make}_set
= yes; then
3646 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3647 $as_echo "yes" >&6; }
3650 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3651 $as_echo "no" >&6; }
3652 SET_MAKE
="MAKE=${MAKE-make}"
3655 rm -rf .tst
2>/dev
/null
3656 mkdir .tst
2>/dev
/null
3657 if test -d .tst
; then
3662 rmdir .tst
2>/dev
/null
3664 if test "`cd $srcdir && pwd`" != "`pwd`"; then
3665 # Use -I$(srcdir) only when $(srcdir) != ., so that make's output
3666 # is not polluted with repeated "-I."
3667 am__isrc
=' -I$(srcdir)'
3668 # test to see if srcdir already configured
3669 if test -f $srcdir/config.status
; then
3670 as_fn_error
"source directory already configured; run \"make distclean\" there first" "$LINENO" 5
3674 # test whether we have cygpath
3675 if test -z "$CYGPATH_W"; then
3676 if (cygpath
--version) >/dev
/null
2>/dev
/null
; then
3677 CYGPATH_W
='cygpath -w'
3684 # Define the identity of the package.
3689 cat >>confdefs.h
<<_ACEOF
3690 #define PACKAGE "$PACKAGE"
3694 cat >>confdefs.h
<<_ACEOF
3695 #define VERSION "$VERSION"
3698 # Some tools Automake needs.
3700 ACLOCAL
=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
3703 AUTOCONF
=${AUTOCONF-"${am_missing_run}autoconf"}
3706 AUTOMAKE
=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
3709 AUTOHEADER
=${AUTOHEADER-"${am_missing_run}autoheader"}
3712 MAKEINFO
=${MAKEINFO-"${am_missing_run}makeinfo"}
3714 # We need awk for the "check" target. The system "awk" is bad on
3716 # Always define AMTAR for backward compatibility.
3718 AMTAR
=${AMTAR-"${am_missing_run}tar"}
3720 am__tar
='${AMTAR} chof - "$$tardir"'; am__untar
='${AMTAR} xf -'
3729 lispdir
='${datadir}/emacs/${version}/lisp'
3730 locallisppath
='${datadir}/emacs/${version}/site-lisp:'\
3731 '${datadir}/emacs/site-lisp'
3732 lisppath
='${locallisppath}:${lispdir}:${datadir}/emacs/${version}/leim'
3733 etcdir
='${datadir}/emacs/${version}/etc'
3734 archlibdir
='${libexecdir}/emacs/${version}/${configuration}'
3735 docdir
='${datadir}/emacs/${version}/etc'
3736 gamedir
='${localstatedir}/games/emacs'
3741 # Check whether --with-pop was given.
3742 if test "${with_pop+set}" = set; then :
3748 if test "$with_pop" = yes; then
3749 $as_echo "#define MAIL_USE_POP 1" >>confdefs.h
3754 # Check whether --with-kerberos was given.
3755 if test "${with_kerberos+set}" = set; then :
3756 withval
=$with_kerberos;
3761 if test "$with_kerberos" != no
; then
3762 $as_echo "#define KERBEROS 1" >>confdefs.h
3767 # Check whether --with-kerberos5 was given.
3768 if test "${with_kerberos5+set}" = set; then :
3769 withval
=$with_kerberos5;
3774 if test "${with_kerberos5}" != no
; then
3775 if test "${with_kerberos}" = no
; then
3777 $as_echo "#define KERBEROS 1" >>confdefs.h
3781 $as_echo "#define KERBEROS5 1" >>confdefs.h
3786 # Check whether --with-hesiod was given.
3787 if test "${with_hesiod+set}" = set; then :
3788 withval
=$with_hesiod;
3793 if test "$with_hesiod" != no
; then
3795 $as_echo "#define HESIOD 1" >>confdefs.h
3800 # Check whether --with-mmdf was given.
3801 if test "${with_mmdf+set}" = set; then :
3807 if test "$with_mmdf" != no
; then
3809 $as_echo "#define MAIL_USE_MMDF 1" >>confdefs.h
3814 # Check whether --with-mail-unlink was given.
3815 if test "${with_mail_unlink+set}" = set; then :
3816 withval
=$with_mail_unlink;
3821 if test "$with_mail_unlink" != no
; then
3823 $as_echo "#define MAIL_UNLINK_SPOOL 1" >>confdefs.h
3828 # Check whether --with-mailhost was given.
3829 if test "${with_mailhost+set}" = set; then :
3830 withval
=$with_mailhost;
3831 cat >>confdefs.h
<<_ACEOF
3832 #define MAILHOST "$withval"
3839 # Check whether --with-sound was given.
3840 if test "${with_sound+set}" = set; then :
3841 withval
=$with_sound;
3848 # Check whether --with-sync-input was given.
3849 if test "${with_sync_input+set}" = set; then :
3850 withval
=$with_sync_input;
3855 if test "$with_sync_input" = yes; then
3857 $as_echo "#define SYNC_INPUT 1" >>confdefs.h
3862 # Check whether --with-x-toolkit was given.
3863 if test "${with_x_toolkit+set}" = set; then :
3864 withval
=$with_x_toolkit; case "${withval}" in
3865 y | ye |
yes ) val
=gtk
;;
3867 l | lu | luc | luci | lucid
) val
=lucid
;;
3868 a |
at | ath | athe | athen | athena
) val
=athena
;;
3869 m | mo | mot | moti | motif
) val
=motif
;;
3870 g | gt | gtk
) val
=gtk
;;
3873 as_fn_error
"\`--with-x-toolkit=$withval' is invalid;
3874 this option's value should be \`yes', \`no', \`lucid', \`athena', \`motif', \`gtk' or
3875 \`gtk3'. \`yes' and \`gtk' are synonyms. \`athena' and \`lucid' are synonyms." "$LINENO" 5
3884 # Check whether --with-wide-int was given.
3885 if test "${with_wide_int+set}" = set; then :
3886 withval
=$with_wide_int;
3891 if test "$with_wide_int" = yes; then
3893 $as_echo "#define WIDE_EMACS_INT 1" >>confdefs.h
3898 # Check whether --with-xpm was given.
3899 if test "${with_xpm+set}" = set; then :
3906 # Check whether --with-jpeg was given.
3907 if test "${with_jpeg+set}" = set; then :
3914 # Check whether --with-tiff was given.
3915 if test "${with_tiff+set}" = set; then :
3922 # Check whether --with-gif was given.
3923 if test "${with_gif+set}" = set; then :
3930 # Check whether --with-png was given.
3931 if test "${with_png+set}" = set; then :
3938 # Check whether --with-rsvg was given.
3939 if test "${with_rsvg+set}" = set; then :
3946 # Check whether --with-xml2 was given.
3947 if test "${with_xml2+set}" = set; then :
3954 # Check whether --with-imagemagick was given.
3955 if test "${with_imagemagick+set}" = set; then :
3956 withval
=$with_imagemagick;
3958 with_imagemagick
=yes
3963 # Check whether --with-xft was given.
3964 if test "${with_xft+set}" = set; then :
3971 # Check whether --with-libotf was given.
3972 if test "${with_libotf+set}" = set; then :
3973 withval
=$with_libotf;
3979 # Check whether --with-m17n-flt was given.
3980 if test "${with_m17n_flt+set}" = set; then :
3981 withval
=$with_m17n_flt;
3988 # Check whether --with-toolkit-scroll-bars was given.
3989 if test "${with_toolkit_scroll_bars+set}" = set; then :
3990 withval
=$with_toolkit_scroll_bars;
3992 with_toolkit_scroll_bars
=yes
3996 # Check whether --with-xaw3d was given.
3997 if test "${with_xaw3d+set}" = set; then :
3998 withval
=$with_xaw3d;
4004 # Check whether --with-xim was given.
4005 if test "${with_xim+set}" = set; then :
4012 # Check whether --with-ns was given.
4013 if test "${with_ns+set}" = set; then :
4021 # Check whether --with-gpm was given.
4022 if test "${with_gpm+set}" = set; then :
4029 # Check whether --with-dbus was given.
4030 if test "${with_dbus+set}" = set; then :
4037 # Check whether --with-gconf was given.
4038 if test "${with_gconf+set}" = set; then :
4039 withval
=$with_gconf;
4045 # Check whether --with-gsettings was given.
4046 if test "${with_gsettings+set}" = set; then :
4047 withval
=$with_gsettings;
4053 # Check whether --with-selinux was given.
4054 if test "${with_selinux+set}" = set; then :
4055 withval
=$with_selinux;
4061 # Check whether --with-gnutls was given.
4062 if test "${with_gnutls+set}" = set; then :
4063 withval
=$with_gnutls;
4069 ## For the times when you want to build Emacs but don't have
4070 ## a suitable makeinfo, and can live without the manuals.
4072 # Check whether --with-makeinfo was given.
4073 if test "${with_makeinfo+set}" = set; then :
4074 withval
=$with_makeinfo;
4080 ## Makefile.in needs the cache file name.
4083 ## This is an option because I do not know if all info/man support
4084 ## compressed files, nor how to test if they do so.
4086 # Check whether --with-compress-info was given.
4087 if test "${with_compress_info+set}" = set; then :
4088 withval
=$with_compress_info;
4090 with_compress_info
=yes
4093 if test $with_compress_info = yes; then
4101 # Check whether --with-pkg-config-prog was given.
4102 if test "${with_pkg_config_prog+set}" = set; then :
4103 withval
=$with_pkg_config_prog;
4106 if test "X${with_pkg_config_prog}" != X
; then
4107 if test "${with_pkg_config_prog}" != yes; then
4108 PKG_CONFIG
="${with_pkg_config_prog}"
4114 # Check whether --with-crt-dir was given.
4115 if test "${with_crt_dir+set}" = set; then :
4116 withval
=$with_crt_dir;
4119 CRT_DIR
="${with_crt_dir}"
4122 # Check whether --with-gameuser was given.
4123 if test "${with_gameuser+set}" = set; then :
4124 withval
=$with_gameuser;
4127 test "X${with_gameuser}" != X
&& test "${with_gameuser}" != yes \
4128 && gameuser
="${with_gameuser}"
4129 test "X$gameuser" = X
&& gameuser
=games
4132 # Check whether --with-gnustep-conf was given.
4133 if test "${with_gnustep_conf+set}" = set; then :
4134 withval
=$with_gnustep_conf;
4137 test "X${with_gnustep_conf}" != X
&& test "${with_gnustep_conf}" != yes && \
4138 GNUSTEP_CONFIG_FILE
="${with_gnustep_conf}"
4139 test "X$GNUSTEP_CONFIG_FILE" = "X" && \
4140 GNUSTEP_CONFIG_FILE
=/etc
/GNUstep
/GNUstep.conf
4142 # Check whether --enable-ns-self-contained was given.
4143 if test "${enable_ns_self_contained+set}" = set; then :
4144 enableval
=$enable_ns_self_contained; EN_NS_SELF_CONTAINED
=$enableval
4146 EN_NS_SELF_CONTAINED
=yes
4150 # Check whether --enable-asserts was given.
4151 if test "${enable_asserts+set}" = set; then :
4152 enableval
=$enable_asserts; USE_XASSERTS
=$enableval
4158 # Check whether --enable-maintainer-mode was given.
4159 if test "${enable_maintainer_mode+set}" = set; then :
4160 enableval
=$enable_maintainer_mode; USE_MAINTAINER_MODE
=$enableval
4162 USE_MAINTAINER_MODE
=yes
4165 if test $USE_MAINTAINER_MODE = yes; then
4172 # Check whether --enable-locallisppath was given.
4173 if test "${enable_locallisppath+set}" = set; then :
4174 enableval
=$enable_locallisppath; if test "${enableval}" = "no"; then
4176 elif test "${enableval}" != "yes"; then
4177 locallisppath
=${enableval}
4182 # Check whether --enable-checking was given.
4183 if test "${enable_checking+set}" = set; then :
4184 enableval
=$enable_checking; ac_checking_flags
="${enableval}"
4187 IFS
="${IFS= }"; ac_save_IFS
="$IFS"; IFS
="$IFS,"
4188 for check
in $ac_checking_flags
4191 # these set all the flags to specific states
4192 yes) ac_enable_checking
=1 ;;
4193 no
) ac_enable_checking
= ;
4194 ac_gc_check_stringbytes
= ;
4195 ac_gc_check_string_overrun
= ;
4196 ac_gc_check_string_free_list
= ;
4197 ac_xmalloc_overrun
= ;
4198 ac_gc_check_cons_list
= ;;
4199 all
) ac_enable_checking
=1 ;
4200 ac_gc_check_stringbytes
=1 ;
4201 ac_gc_check_string_overrun
=1 ;
4202 ac_gc_check_string_free_list
=1 ;
4203 ac_xmalloc_overrun
=1 ;
4204 ac_gc_check_cons_list
=1 ;;
4205 # these enable particular checks
4206 stringbytes
) ac_gc_check_stringbytes
=1 ;;
4207 stringoverrun
) ac_gc_check_string_overrun
=1 ;;
4208 stringfreelist
) ac_gc_check_string_free_list
=1 ;;
4209 xmallocoverrun
) ac_xmalloc_overrun
=1 ;;
4210 conslist
) ac_gc_check_cons_list
=1 ;;
4211 *) as_fn_error
"unknown check category $check" "$LINENO" 5 ;;
4216 if test x
$ac_enable_checking != x
; then
4218 $as_echo "#define ENABLE_CHECKING 1" >>confdefs.h
4221 if test x
$ac_gc_check_stringbytes != x
; then
4223 $as_echo "#define GC_CHECK_STRING_BYTES 1" >>confdefs.h
4226 if test x
$ac_gc_check_string_overrun != x
; then
4228 $as_echo "#define GC_CHECK_STRING_OVERRUN 1" >>confdefs.h
4231 if test x
$ac_gc_check_string_free_list != x
; then
4233 $as_echo "#define GC_CHECK_STRING_FREE_LIST 1" >>confdefs.h
4236 if test x
$ac_xmalloc_overrun != x
; then
4238 $as_echo "#define XMALLOC_OVERRUN_CHECK 1" >>confdefs.h
4241 if test x
$ac_gc_check_cons_list != x
; then
4243 $as_echo "#define GC_CHECK_CONS_LIST 1" >>confdefs.h
4247 # Check whether --enable-use-lisp-union-type was given.
4248 if test "${enable_use_lisp_union_type+set}" = set; then :
4249 enableval
=$enable_use_lisp_union_type; if test "${enableval}" != "no"; then
4251 $as_echo "#define USE_LISP_UNION_TYPE 1" >>confdefs.h
4258 # Check whether --enable-profiling was given.
4259 if test "${enable_profiling+set}" = set; then :
4260 enableval
=$enable_profiling; ac_enable_profiling
="${enableval}"
4263 if test x
$ac_enable_profiling != x
; then
4264 PROFILING_CFLAGS
="-DPROFILING=1 -pg"
4270 # Check whether --enable-autodepend was given.
4271 if test "${enable_autodepend+set}" = set; then :
4272 enableval
=$enable_autodepend; ac_enable_autodepend
="${enableval}"
4274 ac_enable_autodepend
=yes
4278 #### Make srcdir absolute, if it isn't already. It's important to
4279 #### avoid running the path through pwd unnecessarily, since pwd can
4280 #### give you automounter prefixes, which can go away. We do all this
4281 #### so Emacs can find its files when run uninstalled.
4282 ## Make sure CDPATH doesn't affect cd (in case PWD is relative).
4287 ## We may be able to use the $PWD environment variable to make this
4288 ## absolute. But sometimes PWD is inaccurate.
4289 ## Note: we used to use ${PWD} at the end instead of `pwd`,
4290 ## but that tested only for a well-formed and valid PWD,
4291 ## it did not object when PWD was well-formed and valid but just wrong.
4292 if test ".${PWD}" != "." && test ".`(cd ${PWD} ; sh -c pwd)`" = ".`pwd`" ;
4296 srcdir
="`(cd ${srcdir}; pwd)`"
4299 * ) srcdir
="`(cd ${srcdir}; pwd)`" ;;
4302 #### Given the configuration name, set machfile and opsysfile to the
4303 #### names of the m/*.h and s/*.h files we should use.
4305 ### Canonicalize the configuration name.
4307 # Make sure we can run config.sub.
4308 $SHELL "$ac_aux_dir/config.sub" sun4
>/dev
/null
2>&1 ||
4309 as_fn_error
"cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5
4311 { $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
4312 $as_echo_n "checking build system type... " >&6; }
4313 if test "${ac_cv_build+set}" = set; then :
4314 $as_echo_n "(cached) " >&6
4316 ac_build_alias
=$build_alias
4317 test "x$ac_build_alias" = x
&&
4318 ac_build_alias
=`$SHELL "$ac_aux_dir/config.guess"`
4319 test "x$ac_build_alias" = x
&&
4320 as_fn_error
"cannot guess build type; you must specify one" "$LINENO" 5
4321 ac_cv_build
=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
4322 as_fn_error
"$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5
4325 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
4326 $as_echo "$ac_cv_build" >&6; }
4327 case $ac_cv_build in
4329 *) as_fn_error
"invalid value of canonical build" "$LINENO" 5;;
4332 ac_save_IFS
=$IFS; IFS
='-'
4338 # Remember, the first character of IFS is used to create $*,
4339 # except with old shells:
4342 case $build_os in *\
*) build_os
=`echo "$build_os" | sed 's/ /-/g'`;; esac
4345 { $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
4346 $as_echo_n "checking host system type... " >&6; }
4347 if test "${ac_cv_host+set}" = set; then :
4348 $as_echo_n "(cached) " >&6
4350 if test "x$host_alias" = x
; then
4351 ac_cv_host
=$ac_cv_build
4353 ac_cv_host
=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
4354 as_fn_error
"$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5
4358 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
4359 $as_echo "$ac_cv_host" >&6; }
4362 *) as_fn_error
"invalid value of canonical host" "$LINENO" 5;;
4365 ac_save_IFS
=$IFS; IFS
='-'
4371 # Remember, the first character of IFS is used to create $*,
4372 # except with old shells:
4375 case $host_os in *\
*) host_os
=`echo "$host_os" | sed 's/ /-/g'`;; esac
4379 configuration
=${host_alias-${build_alias-$host}}
4383 ### If you add support for a new configuration, add code to this
4384 ### switch statement to recognize your configuration name and select
4385 ### the appropriate operating system and machine description files.
4387 ### You would hope that you could choose an m/*.h file pretty much
4388 ### based on the machine portion of the configuration name, and an s/*.h
4389 ### file based on the operating system portion. However, it turns out
4390 ### that each m/*.h file is pretty manufacturer-specific - for
4391 ### example mips.h is MIPS
4392 ### So we basically have to have a special case for each
4393 ### configuration name.
4395 ### As far as handling version numbers on operating systems is
4396 ### concerned, make sure things will fail in a fixable way. If
4397 ### /etc/MACHINES doesn't say anything about version numbers, be
4398 ### prepared to handle anything reasonably. If version numbers
4399 ### matter, be sure /etc/MACHINES says something about it.
4401 machine
='' opsys
='' unported
=no
4402 case "${canonical}" in
4404 ## GNU/Linux and similar ports
4407 case ${canonical} in
4408 alpha
*) machine
=alpha
;;
4409 s390x-
*) machine
=ibms390x
;;
4410 powerpc
*) machine
=macppc
;;
4411 sparc
*) machine
=sparc
;;
4412 ia64
*) machine
=ia64
;;
4413 m68k
*) machine
=m68k
;;
4414 x86_64
*) machine
=amdx86-64
;;
4421 case "${canonical}" in
4422 alpha
*) machine
=alpha
;;
4423 amd64-
*|x86_64-
*) machine
=amdx86-64
;;
4424 ia64-
*) machine
=ia64
;;
4425 i
[3456]86-*) machine
=intel386
;;
4426 powerpc-
*) machine
=macppc
;;
4427 sparc-
*) machine
=sparc
;;
4428 sparc64-
*) machine
=sparc
;;
4432 ## FreeBSD kernel + glibc based userland
4435 case "${canonical}" in
4436 alpha
*) machine
=alpha
;;
4437 amd64-
*|x86_64-
*) machine
=amdx86-64
;;
4438 ia64-
*) machine
=ia64
;;
4439 i
[3456]86-*) machine
=intel386
;;
4440 powerpc-
*) machine
=macppc
;;
4441 sparc-
*) machine
=sparc
;;
4442 sparc64-
*) machine
=sparc
;;
4449 case "${canonical}" in
4450 alpha
*) machine
=alpha
;;
4451 x86_64-
*) machine
=amdx86-64
;;
4452 i
[3456]86-*) machine
=intel386
;;
4453 m68k-
*) machine
=m68k
;;
4454 powerpc-
*) machine
=macppc
;;
4455 sparc
*-) machine
=sparc
;;
4456 vax-
*) machine
=vax
;;
4463 case "${canonical}" in
4464 alpha
*) machine
=alpha
;;
4465 x86_64-
*) machine
=amdx86-64
;;
4466 i386-
*) machine
=intel386
;;
4467 powerpc-
*) machine
=macppc
;;
4468 sparc
*) machine
=sparc
;;
4469 vax-
*) machine
=vax
;;
4473 ## Apple Darwin / Mac OS X
4475 case "${canonical}" in
4476 i
[3456]86-* ) machine
=intel386
;;
4477 powerpc-
* ) machine
=macppc
;;
4478 x86_64-
* ) machine
=amdx86-64
;;
4482 # Define CPP as follows to make autoconf work correctly.
4483 CPP
="${CC-cc} -E -no-cpp-precomp"
4484 # Use fink packages if available.
4485 if test -d /sw
/include
&& test -d /sw
/lib
; then
4486 GCC_TEST_OPTIONS
="-I/sw/include -L/sw/lib"
4487 CPP
="${CPP} ${GCC_TEST_OPTIONS}"
4488 NON_GCC_TEST_OPTIONS
=${GCC_TEST_OPTIONS}
4492 ## HP 9000 series 700 and 800, running HP/UX
4493 hppa
*-hp-hpux10.2
* )
4496 hppa
*-hp-hpux1[1-9]* )
4498 CFLAGS
="-D_INCLUDE__STDC_A1_SOURCE $CFLAGS"
4502 rs6000-ibm-aix4.
[23]* )
4503 machine
=ibmrs6000 opsys
=aix4-2
4505 powerpc-ibm-aix4.
[23]* )
4506 machine
=ibmrs6000 opsys
=aix4-2
4508 rs6000-ibm-aix
[56]* )
4509 machine
=ibmrs6000 opsys
=aix4-2
4511 powerpc-ibm-aix
[56]* )
4512 machine
=ibmrs6000 opsys
=aix4-2
4515 ## Silicon Graphics machines
4519 # Without defining _LANGUAGE_C, things get masked out in the headers
4520 # so that, for instance, grepping for `free' in stdlib.h fails and
4521 # AC_HEADER_STD_C fails. (MIPSPro 7.2.1.2m compilers, Irix 6.5.3m).
4522 NON_GNU_CPP
="/lib/cpp -D_LANGUAGE_C"
4523 NON_GCC_TEST_OPTIONS
="-D_LANGUAGE_C"
4528 | i
[3456]86-*-solaris2* | i
[3456]86-*-sunos5* \
4529 | x86_64-
*-solaris2* | x86_64-
*-sunos5*)
4530 case "${canonical}" in
4531 i
[3456]86-*-* ) machine
=intel386
;;
4532 amd64-
*-*|x86_64-
*-*) machine
=amdx86-64
;;
4533 sparc
* ) machine
=sparc
;;
4536 case "${canonical}" in
4537 *-sunos5.6
* |
*-solaris2.6
* )
4539 NON_GNU_CPP
=/usr
/ccs
/lib
/cpp
4542 *-sunos5.
[7-9]* |
*-solaris2.
[7-9]* )
4544 emacs_check_sunpro_c
=yes
4545 NON_GNU_CPP
=/usr
/ccs
/lib
/cpp
4547 *-sunos5* |
*-solaris* )
4549 emacs_check_sunpro_c
=yes
4550 NON_GNU_CPP
=/usr
/ccs
/lib
/cpp
4553 ## Watch out for a compiler that we know will not work.
4554 case "${canonical}" in
4555 *-solaris* |
*-sunos5* )
4556 if [ "x$CC" = x
/usr
/ucb
/cc
]; then
4557 ## /usr/ucb/cc doesn't work;
4558 ## we should find some other compiler that does work.
4566 ## Intel 386 machines where we don't care about the manufacturer.
4569 case "${canonical}" in
4570 *-cygwin ) opsys
=cygwin
;;
4571 *-darwin* ) opsys
=darwin
4572 CPP
="${CC-cc} -E -no-cpp-precomp"
4574 *-sysv4.2uw
* ) opsys
=unixware
; NON_GNU_CPP
=/lib
/cpp
;;
4575 *-sysv5uw* ) opsys
=unixware
; NON_GNU_CPP
=/lib
/cpp
;;
4576 *-sysv5OpenUNIX* ) opsys
=unixware
; NON_GNU_CPP
=/lib
/cpp
;;
4577 ## Otherwise, we'll fall through to the generic opsys code at the bottom.
4586 ### If the code above didn't choose an operating system, just choose
4587 ### an operating system based on the configuration name. You really
4588 ### only want to use this when you have no idea what the right
4589 ### operating system is; if you know what operating systems a machine
4590 ### runs, it's cleaner to make it explicit in the case statement
4592 if test x
"${opsys}" = x
; then
4593 case "${canonical}" in
4594 *-gnu* ) opsys
=gnu
;;
4603 if test $unported = yes; then
4604 as_fn_error
"Emacs hasn't been ported to \`${canonical}' systems.
4605 Check \`etc/MACHINES' for recognized configuration names." "$LINENO" 5
4608 if test -n "$machine"; then
4609 machfile
="m/${machine}.h"
4613 opsysfile
="s/${opsys}.h"
4616 #### Choose a compiler.
4617 test -n "$CC" && cc_specified
=yes
4619 # Save the value of CFLAGS that the user specified.
4620 SPECIFIED_CFLAGS
="$CFLAGS"
4623 ac_cpp
='$CPP $CPPFLAGS'
4624 ac_compile
='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4625 ac_link
='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4626 ac_compiler_gnu
=$ac_cv_c_compiler_gnu
4627 if test -n "$ac_tool_prefix"; then
4628 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
4629 set dummy
${ac_tool_prefix}gcc
; ac_word
=$2
4630 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4631 $as_echo_n "checking for $ac_word... " >&6; }
4632 if test "${ac_cv_prog_CC+set}" = set; then :
4633 $as_echo_n "(cached) " >&6
4635 if test -n "$CC"; then
4636 ac_cv_prog_CC
="$CC" # Let the user override the test.
4638 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
4642 test -z "$as_dir" && as_dir
=.
4643 for ac_exec_ext
in '' $ac_executable_extensions; do
4644 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4645 ac_cv_prog_CC
="${ac_tool_prefix}gcc"
4646 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4656 if test -n "$CC"; then
4657 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
4658 $as_echo "$CC" >&6; }
4660 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4661 $as_echo "no" >&6; }
4666 if test -z "$ac_cv_prog_CC"; then
4668 # Extract the first word of "gcc", so it can be a program name with args.
4669 set dummy gcc
; ac_word
=$2
4670 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4671 $as_echo_n "checking for $ac_word... " >&6; }
4672 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then :
4673 $as_echo_n "(cached) " >&6
4675 if test -n "$ac_ct_CC"; then
4676 ac_cv_prog_ac_ct_CC
="$ac_ct_CC" # Let the user override the test.
4678 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
4682 test -z "$as_dir" && as_dir
=.
4683 for ac_exec_ext
in '' $ac_executable_extensions; do
4684 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4685 ac_cv_prog_ac_ct_CC
="gcc"
4686 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4695 ac_ct_CC
=$ac_cv_prog_ac_ct_CC
4696 if test -n "$ac_ct_CC"; then
4697 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
4698 $as_echo "$ac_ct_CC" >&6; }
4700 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4701 $as_echo "no" >&6; }
4704 if test "x$ac_ct_CC" = x
; then
4707 case $cross_compiling:$ac_tool_warned in
4709 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4710 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4711 ac_tool_warned
=yes ;;
4719 if test -z "$CC"; then
4720 if test -n "$ac_tool_prefix"; then
4721 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
4722 set dummy
${ac_tool_prefix}cc
; ac_word
=$2
4723 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4724 $as_echo_n "checking for $ac_word... " >&6; }
4725 if test "${ac_cv_prog_CC+set}" = set; then :
4726 $as_echo_n "(cached) " >&6
4728 if test -n "$CC"; then
4729 ac_cv_prog_CC
="$CC" # Let the user override the test.
4731 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
4735 test -z "$as_dir" && as_dir
=.
4736 for ac_exec_ext
in '' $ac_executable_extensions; do
4737 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4738 ac_cv_prog_CC
="${ac_tool_prefix}cc"
4739 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4749 if test -n "$CC"; then
4750 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
4751 $as_echo "$CC" >&6; }
4753 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4754 $as_echo "no" >&6; }
4760 if test -z "$CC"; then
4761 # Extract the first word of "cc", so it can be a program name with args.
4762 set dummy cc
; ac_word
=$2
4763 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4764 $as_echo_n "checking for $ac_word... " >&6; }
4765 if test "${ac_cv_prog_CC+set}" = set; then :
4766 $as_echo_n "(cached) " >&6
4768 if test -n "$CC"; then
4769 ac_cv_prog_CC
="$CC" # Let the user override the test.
4772 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
4776 test -z "$as_dir" && as_dir
=.
4777 for ac_exec_ext
in '' $ac_executable_extensions; do
4778 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4779 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
4780 ac_prog_rejected
=yes
4784 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4791 if test $ac_prog_rejected = yes; then
4792 # We found a bogon in the path, so make sure we never use it.
4793 set dummy
$ac_cv_prog_CC
4795 if test $# != 0; then
4796 # We chose a different compiler from the bogus one.
4797 # However, it has the same basename, so the bogon will be chosen
4798 # first if we set CC to just the basename; use the full file name.
4800 ac_cv_prog_CC
="$as_dir/$ac_word${1+' '}$@"
4806 if test -n "$CC"; then
4807 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
4808 $as_echo "$CC" >&6; }
4810 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4811 $as_echo "no" >&6; }
4816 if test -z "$CC"; then
4817 if test -n "$ac_tool_prefix"; then
4818 for ac_prog
in cl.exe
4820 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
4821 set dummy
$ac_tool_prefix$ac_prog; ac_word
=$2
4822 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4823 $as_echo_n "checking for $ac_word... " >&6; }
4824 if test "${ac_cv_prog_CC+set}" = set; then :
4825 $as_echo_n "(cached) " >&6
4827 if test -n "$CC"; then
4828 ac_cv_prog_CC
="$CC" # Let the user override the test.
4830 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
4834 test -z "$as_dir" && as_dir
=.
4835 for ac_exec_ext
in '' $ac_executable_extensions; do
4836 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4837 ac_cv_prog_CC
="$ac_tool_prefix$ac_prog"
4838 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4848 if test -n "$CC"; then
4849 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
4850 $as_echo "$CC" >&6; }
4852 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4853 $as_echo "no" >&6; }
4857 test -n "$CC" && break
4860 if test -z "$CC"; then
4862 for ac_prog
in cl.exe
4864 # Extract the first word of "$ac_prog", so it can be a program name with args.
4865 set dummy
$ac_prog; ac_word
=$2
4866 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4867 $as_echo_n "checking for $ac_word... " >&6; }
4868 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then :
4869 $as_echo_n "(cached) " >&6
4871 if test -n "$ac_ct_CC"; then
4872 ac_cv_prog_ac_ct_CC
="$ac_ct_CC" # Let the user override the test.
4874 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
4878 test -z "$as_dir" && as_dir
=.
4879 for ac_exec_ext
in '' $ac_executable_extensions; do
4880 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4881 ac_cv_prog_ac_ct_CC
="$ac_prog"
4882 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4891 ac_ct_CC
=$ac_cv_prog_ac_ct_CC
4892 if test -n "$ac_ct_CC"; then
4893 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
4894 $as_echo "$ac_ct_CC" >&6; }
4896 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4897 $as_echo "no" >&6; }
4901 test -n "$ac_ct_CC" && break
4904 if test "x$ac_ct_CC" = x
; then
4907 case $cross_compiling:$ac_tool_warned in
4909 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4910 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4911 ac_tool_warned
=yes ;;
4920 test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4921 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4922 as_fn_error
"no acceptable C compiler found in \$PATH
4923 See \`config.log' for more details." "$LINENO" 5; }
4925 # Provide some information about the compiler.
4926 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
4929 for ac_option
in --version -v -V -qversion; do
4930 { { ac_try
="$ac_compiler $ac_option >&5"
4932 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
4933 *) ac_try_echo=$ac_try;;
4935 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4936 $as_echo "$ac_try_echo"; } >&5
4937 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
4939 if test -s conftest.err; then
4941 ... rest of stderr output deleted ...
4942 10q' conftest.err >conftest.er1
4943 cat conftest.er1 >&5
4945 rm -f conftest.er1 conftest.err
4946 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4947 test $ac_status = 0; }
4950 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4951 /* end confdefs.h. */
4961 ac_clean_files_save=$ac_clean_files
4962 ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
4963 # Try to create an executable without -o first, disregard a.out.
4964 # It will help us diagnose broken compilers, and finding out an intuition
4966 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
4967 $as_echo_n "checking whether the C compiler works... " >&6; }
4968 ac_link_default=`$as_echo "$ac_link" |
sed 's/ -o *conftest[^ ]*//'`
4970 # The possible output files:
4971 ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
4974 for ac_file in $ac_files
4977 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
4978 * ) ac_rmfiles="$ac_rmfiles $ac_file";;
4983 if { { ac_try="$ac_link_default"
4985 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
4986 *) ac_try_echo
=$ac_try;;
4988 eval ac_try_echo
="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4989 $as_echo "$ac_try_echo"; } >&5
4990 (eval "$ac_link_default") 2>&5
4992 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4993 test $ac_status = 0; }; then :
4994 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
4995 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
4996 # in a Makefile. We should not override ac_cv_exeext if it was cached,
4997 # so that the user can short-circuit this test for compilers unknown to
4999 for ac_file
in $ac_files ''
5001 test -f "$ac_file" ||
continue
5003 *.
$ac_ext |
*.xcoff |
*.tds |
*.d |
*.pdb |
*.xSYM |
*.bb |
*.bbg |
*.map |
*.inf |
*.dSYM |
*.o |
*.obj
)
5006 # We found the default executable, but exeext='' is most
5010 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no
;
5012 ac_cv_exeext
=`expr "$ac_file" : '[^.]*\(\..*\)'`
5014 # We set ac_cv_exeext here because the later test for it is not
5015 # safe: cross compilers may not add the suffix if given an `-o'
5016 # argument, so we may need to know it at that point already.
5017 # Even if this section looks crufty: it has the advantage of
5024 test "$ac_cv_exeext" = no
&& ac_cv_exeext
=
5029 if test -z "$ac_file"; then :
5030 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5031 $as_echo "no" >&6; }
5032 $as_echo "$as_me: failed program was:" >&5
5033 sed 's/^/| /' conftest.
$ac_ext >&5
5035 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
5036 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
5037 { as_fn_set_status
77
5038 as_fn_error
"C compiler cannot create executables
5039 See \`config.log' for more details." "$LINENO" 5; }; }
5041 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5042 $as_echo "yes" >&6; }
5044 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
5045 $as_echo_n "checking for C compiler default output file name... " >&6; }
5046 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
5047 $as_echo "$ac_file" >&6; }
5048 ac_exeext
=$ac_cv_exeext
5050 rm -f -r a.out a.out.dSYM a.exe conftest
$ac_cv_exeext b.out
5051 ac_clean_files
=$ac_clean_files_save
5052 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
5053 $as_echo_n "checking for suffix of executables... " >&6; }
5054 if { { ac_try
="$ac_link"
5056 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
5057 *) ac_try_echo=$ac_try;;
5059 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
5060 $as_echo "$ac_try_echo"; } >&5
5061 (eval "$ac_link") 2>&5
5063 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5064 test $ac_status = 0; }; then :
5065 # If both `conftest.exe
' and `conftest' are
`present' (well, observable)
5066 # catch `conftest.exe
'. For instance with Cygwin, `ls conftest' will
5067 # work properly (i.e., refer to `conftest.exe'), while it won't with
5069 for ac_file
in conftest.exe conftest conftest.
*; do
5070 test -f "$ac_file" ||
continue
5072 *.
$ac_ext |
*.xcoff |
*.tds |
*.d |
*.pdb |
*.xSYM |
*.bb |
*.bbg |
*.map |
*.inf |
*.dSYM |
*.o |
*.obj
) ;;
5073 *.
* ) ac_cv_exeext
=`expr "$ac_file" : '[^.]*\(\..*\)'`
5079 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
5080 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
5081 as_fn_error
"cannot compute suffix of executables: cannot compile and link
5082 See \`config.log' for more details." "$LINENO" 5; }
5084 rm -f conftest conftest
$ac_cv_exeext
5085 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
5086 $as_echo "$ac_cv_exeext" >&6; }
5088 rm -f conftest.
$ac_ext
5089 EXEEXT
=$ac_cv_exeext
5091 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
5092 /* end confdefs.h. */
5097 FILE *f = fopen ("conftest.out", "w");
5098 return ferror (f) || fclose (f) != 0;
5104 ac_clean_files
="$ac_clean_files conftest.out"
5105 # Check that the compiler produces executables we can run. If not, either
5106 # the compiler is broken, or we cross compile.
5107 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
5108 $as_echo_n "checking whether we are cross compiling... " >&6; }
5109 if test "$cross_compiling" != yes; then
5110 { { 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; }
5121 if { ac_try='./conftest$ac_cv_exeext'
5122 { { case "(($ac_try" in
5123 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
5124 *) ac_try_echo
=$ac_try;;
5126 eval ac_try_echo
="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
5127 $as_echo "$ac_try_echo"; } >&5
5128 (eval "$ac_try") 2>&5
5130 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5131 test $ac_status = 0; }; }; then
5134 if test "$cross_compiling" = maybe
; then
5137 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
5138 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
5139 as_fn_error
"cannot run C compiled programs.
5140 If you meant to cross compile, use \`--host'.
5141 See \`config.log' for more details." "$LINENO" 5; }
5145 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
5146 $as_echo "$cross_compiling" >&6; }
5148 rm -f conftest.
$ac_ext conftest
$ac_cv_exeext conftest.out
5149 ac_clean_files
=$ac_clean_files_save
5150 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
5151 $as_echo_n "checking for suffix of object files... " >&6; }
5152 if test "${ac_cv_objext+set}" = set; then :
5153 $as_echo_n "(cached) " >&6
5155 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
5156 /* end confdefs.h. */
5166 rm -f conftest.o conftest.obj
5167 if { { ac_try
="$ac_compile"
5169 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
5170 *) ac_try_echo=$ac_try;;
5172 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
5173 $as_echo "$ac_try_echo"; } >&5
5174 (eval "$ac_compile") 2>&5
5176 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5177 test $ac_status = 0; }; then :
5178 for ac_file in conftest.o conftest.obj conftest.*; do
5179 test -f "$ac_file" || continue;
5181 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
5182 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
5187 $as_echo "$as_me: failed program was:" >&5
5188 sed 's/^/| /' conftest.$ac_ext >&5
5190 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
5191 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
5192 as_fn_error "cannot compute suffix of object files
: cannot compile
5193 See \
`config.log' for more details." "$LINENO" 5; }
5195 rm -f conftest.$ac_cv_objext conftest.$ac_ext
5197 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
5198 $as_echo "$ac_cv_objext" >&6; }
5199 OBJEXT=$ac_cv_objext
5201 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
5202 $as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
5203 if test "${ac_cv_c_compiler_gnu+set}" = set; then :
5204 $as_echo_n "(cached) " >&6
5206 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5207 /* end confdefs.h. */
5220 if ac_fn_c_try_compile "$LINENO"; then :
5225 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5226 ac_cv_c_compiler_gnu=$ac_compiler_gnu
5229 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
5230 $as_echo "$ac_cv_c_compiler_gnu" >&6; }
5231 if test $ac_compiler_gnu = yes; then
5236 ac_test_CFLAGS=${CFLAGS+set}
5237 ac_save_CFLAGS=$CFLAGS
5238 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
5239 $as_echo_n "checking whether $CC accepts -g... " >&6; }
5240 if test "${ac_cv_prog_cc_g+set}" = set; then :
5241 $as_echo_n "(cached) " >&6
5243 ac_save_c_werror_flag=$ac_c_werror_flag
5244 ac_c_werror_flag=yes
5247 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5248 /* end confdefs.h. */
5258 if ac_fn_c_try_compile "$LINENO"; then :
5262 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5263 /* end confdefs.h. */
5273 if ac_fn_c_try_compile "$LINENO"; then :
5276 ac_c_werror_flag=$ac_save_c_werror_flag
5278 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5279 /* end confdefs.h. */
5289 if ac_fn_c_try_compile "$LINENO"; then :
5292 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5294 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5296 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5297 ac_c_werror_flag=$ac_save_c_werror_flag
5299 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
5300 $as_echo "$ac_cv_prog_cc_g" >&6; }
5301 if test "$ac_test_CFLAGS" = set; then
5302 CFLAGS=$ac_save_CFLAGS
5303 elif test $ac_cv_prog_cc_g = yes; then
5304 if test "$GCC" = yes; then
5310 if test "$GCC" = yes; then
5316 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
5317 $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
5318 if test "${ac_cv_prog_cc_c89+set}" = set; then :
5319 $as_echo_n "(cached) " >&6
5321 ac_cv_prog_cc_c89=no
5323 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5324 /* end confdefs.h. */
5327 #include <sys/types.h>
5328 #include <sys/stat.h>
5329 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
5330 struct buf { int x; };
5331 FILE * (*rcsopen) (struct buf *, struct stat *, int);
5332 static char *e (p, i)
5338 static char *f (char * (*g) (char **, int), char **p, ...)
5343 s = g (p, va_arg (v,int));
5348 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
5349 function prototypes and stuff, but not '\xHH' hex character constants.
5350 These don't provoke an error unfortunately, instead are silently treated
5351 as 'x'. The following induces an error, until -std is added to get
5352 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
5353 array size at least. It's necessary to write '\x00'==0 to get something
5354 that's true only with -std. */
5355 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
5357 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
5358 inside strings and character constants. */
5360 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
5362 int test (int i, double x);
5363 struct s1 {int (*f) (int a);};
5364 struct s2 {int (*f) (double a);};
5365 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
5371 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
5376 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
5377 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
5379 CC="$ac_save_CC $ac_arg"
5380 if ac_fn_c_try_compile "$LINENO"; then :
5381 ac_cv_prog_cc_c89=$ac_arg
5383 rm -f core conftest.err conftest.$ac_objext
5384 test "x$ac_cv_prog_cc_c89" != "xno" && break
5386 rm -f conftest.$ac_ext
5391 case "x$ac_cv_prog_cc_c89" in
5393 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
5394 $as_echo "none needed" >&6; } ;;
5396 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
5397 $as_echo "unsupported" >&6; } ;;
5399 CC="$CC $ac_cv_prog_cc_c89"
5400 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
5401 $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
5403 if test "x$ac_cv_prog_cc_c89" != xno; then :
5408 ac_cpp='$CPP $CPPFLAGS'
5409 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5410 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5411 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5412 DEPDIR="${am__leading_dot}deps"
5414 ac_config_commands="$ac_config_commands depfiles"
5417 am_make=${MAKE-make}
5418 cat > confinc << 'END'
5420 @echo this is the am__doit target
5423 # If we don't find an include directive, just comment out the code.
5424 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for style of include used by $am_make" >&5
5425 $as_echo_n "checking for style of include used by $am_make... " >&6; }
5429 # First try GNU make style include.
5430 echo "include confinc" > confmf
5431 # Ignore all kinds of additional output from `make'.
5432 case `$am_make -s -f confmf 2> /dev/null` in #(
5433 *the\ am__doit\ target*)
5439 # Now try BSD make style include.
5440 if test "$am__include" = "#"; then
5441 echo '.include
"confinc"' > confmf
5442 case `$am_make -s -f confmf 2> /dev/null` in #(
5443 *the\ am__doit\ target*)
5444 am__include=.include
5452 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $_am_result" >&5
5453 $as_echo "$_am_result" >&6; }
5454 rm -f confinc confmf
5456 # Check whether --enable-dependency-tracking was given.
5457 if test "${enable_dependency_tracking+set}" = set; then :
5458 enableval=$enable_dependency_tracking;
5461 if test "x$enable_dependency_tracking" != xno; then
5462 am_depcomp="$ac_aux_dir/depcomp"
5465 if test "x$enable_dependency_tracking" != xno
; then
5475 depcc
="$CC" am_compiler_list
=
5477 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
5478 $as_echo_n "checking dependency style of $depcc... " >&6; }
5479 if test "${am_cv_CC_dependencies_compiler_type+set}" = set; then :
5480 $as_echo_n "(cached) " >&6
5482 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
5483 # We make a subdir and do the tests there. Otherwise we can end up
5484 # making bogus files that we don't know about and never remove. For
5485 # instance it was reported that on HP-UX the gcc test will end up
5486 # making a dummy file named `D' -- because `-MD' means `put the output
5489 # Copy depcomp to subdir because otherwise we won't find it if we're
5490 # using a relative directory.
5491 cp "$am_depcomp" conftest.dir
5493 # We will build objects and dependencies in a subdirectory because
5494 # it helps to detect inapplicable dependency modes. For instance
5495 # both Tru64's cc and ICC support -MD to output dependencies as a
5496 # side effect of compilation, but ICC will put the dependencies in
5497 # the current directory while Tru64 will put them in the object
5501 am_cv_CC_dependencies_compiler_type
=none
5502 if test "$am_compiler_list" = ""; then
5503 am_compiler_list
=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
5506 case " $depcc " in #(
5507 *\
-arch\
*\
-arch\
*) am__universal
=true
;;
5510 for depmode
in $am_compiler_list; do
5511 # Setup a source with many dependencies, because some compilers
5512 # like to wrap large dependency lists on column 80 (with \), and
5513 # we should not choose a depcomp mode which is confused by this.
5515 # We need to recreate these files for each test, as the compiler may
5516 # overwrite some of them when testing with obscure command lines.
5517 # This happens at least with the AIX C compiler.
5519 for i
in 1 2 3 4 5 6; do
5520 echo '#include "conftst'$i'.h"' >> sub
/conftest.c
5521 # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
5522 # Solaris 8's {/usr,}/bin/sh.
5523 touch sub
/conftst
$i.h
5525 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
5527 # We check with `-c' and `-o' for the sake of the "dashmstdout"
5528 # mode. It turns out that the SunPro C++ compiler does not properly
5529 # handle `-M -o', and we need to detect this. Also, some Intel
5530 # versions had trouble with output in subdirs
5531 am__obj
=sub
/conftest.
${OBJEXT-o}
5532 am__minus_obj
="-o $am__obj"
5535 # This depmode causes a compiler race in universal mode.
5536 test "$am__universal" = false ||
continue
5539 # after this tag, mechanisms are not by side-effect, so they'll
5540 # only be used when explicitly requested
5541 if test "x$enable_dependency_tracking" = xyes
; then
5547 msvisualcpp | msvcmsys
)
5548 # This compiler won't grok `-c -o', but also, the minuso test has
5549 # not run yet. These depmodes are late enough in the game, and
5550 # so weak that their functioning should not be impacted.
5551 am__obj
=conftest.
${OBJEXT-o}
5556 if depmode
=$depmode \
5557 source=sub
/conftest.c object
=$am__obj \
5558 depfile
=sub
/conftest.Po tmpdepfile
=sub
/conftest.TPo \
5559 $SHELL .
/depcomp
$depcc -c $am__minus_obj sub
/conftest.c \
5560 >/dev
/null
2>conftest.err
&&
5561 grep sub
/conftst1.h sub
/conftest.Po
> /dev
/null
2>&1 &&
5562 grep sub
/conftst6.h sub
/conftest.Po
> /dev
/null
2>&1 &&
5563 grep $am__obj sub
/conftest.Po
> /dev
/null
2>&1 &&
5564 ${MAKE-make} -s -f confmf
> /dev
/null
2>&1; then
5565 # icc doesn't choke on unknown options, it will just issue warnings
5566 # or remarks (even with -Werror). So we grep stderr for any message
5567 # that says an option was ignored or not supported.
5568 # When given -MP, icc 7.0 and 7.1 complain thusly:
5569 # icc: Command line warning: ignoring option '-M'; no argument required
5570 # The diagnosis changed in icc 8.0:
5571 # icc: Command line remark: option '-MP' not supported
5572 if (grep 'ignoring option' conftest.err ||
5573 grep 'not supported' conftest.err
) >/dev
/null
2>&1; then :; else
5574 am_cv_CC_dependencies_compiler_type
=$depmode
5583 am_cv_CC_dependencies_compiler_type
=none
5587 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5
5588 $as_echo "$am_cv_CC_dependencies_compiler_type" >&6; }
5589 CCDEPMODE
=depmode
=$am_cv_CC_dependencies_compiler_type
5592 test "x$enable_dependency_tracking" != xno \
5593 && test "$am_cv_CC_dependencies_compiler_type" = gcc3
; then
5595 am__fastdepCC_FALSE
='#'
5597 am__fastdepCC_TRUE
='#'
5598 am__fastdepCC_FALSE
=
5602 if test "x$CC" != xcc
; then
5603 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC and cc understand -c and -o together" >&5
5604 $as_echo_n "checking whether $CC and cc understand -c and -o together... " >&6; }
5606 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether cc understands -c and -o together" >&5
5607 $as_echo_n "checking whether cc understands -c and -o together... " >&6; }
5609 set dummy
$CC; ac_cc
=`$as_echo "$2" |
5610 sed 's/[^a-zA-Z0-9_]/_/g;s/^[0-9]/_/'`
5611 if { as_var
=ac_cv_prog_cc_
${ac_cc}_c_o; eval "test \"\${$as_var+set}\" = set"; }; then :
5612 $as_echo_n "(cached) " >&6
5614 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
5615 /* end confdefs.h. */
5625 # Make sure it works both with $CC and with simple cc.
5626 # We do the test twice because some compilers refuse to overwrite an
5627 # existing .o file with -o, though they will create one.
5628 ac_try
='$CC -c conftest.$ac_ext -o conftest2.$ac_objext >&5'
5630 if { { case "(($ac_try" in
5631 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
5632 *) ac_try_echo=$ac_try;;
5634 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
5635 $as_echo "$ac_try_echo"; } >&5
5636 (eval "$ac_try") 2>&5
5638 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5639 test $ac_status = 0; } &&
5640 test -f conftest2.$ac_objext && { { case "(($ac_try" in
5641 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
5642 *) ac_try_echo
=$ac_try;;
5644 eval ac_try_echo
="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
5645 $as_echo "$ac_try_echo"; } >&5
5646 (eval "$ac_try") 2>&5
5648 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5649 test $ac_status = 0; };
5651 eval ac_cv_prog_cc_
${ac_cc}_c_o
=yes
5652 if test "x$CC" != xcc
; then
5653 # Test first that cc exists at all.
5654 if { ac_try
='cc -c conftest.$ac_ext >&5'
5655 { { case "(($ac_try" in
5656 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
5657 *) ac_try_echo=$ac_try;;
5659 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
5660 $as_echo "$ac_try_echo"; } >&5
5661 (eval "$ac_try") 2>&5
5663 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5664 test $ac_status = 0; }; }; then
5665 ac_try='cc -c conftest.$ac_ext -o conftest2.$ac_objext >&5'
5667 if { { case "(($ac_try" in
5668 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
5669 *) ac_try_echo
=$ac_try;;
5671 eval ac_try_echo
="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
5672 $as_echo "$ac_try_echo"; } >&5
5673 (eval "$ac_try") 2>&5
5675 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5676 test $ac_status = 0; } &&
5677 test -f conftest2.
$ac_objext && { { case "(($ac_try" in
5678 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
5679 *) ac_try_echo=$ac_try;;
5681 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
5682 $as_echo "$ac_try_echo"; } >&5
5683 (eval "$ac_try") 2>&5
5685 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5686 test $ac_status = 0; };
5691 # cc exists but doesn't like -o.
5692 eval ac_cv_prog_cc_${ac_cc}_c_o=no
5697 eval ac_cv_prog_cc_${ac_cc}_c_o=no
5699 rm -f core conftest*
5702 if eval test \$ac_cv_prog_cc_${ac_cc}_c_o = yes; then
5703 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5704 $as_echo "yes" >&6; }
5706 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5707 $as_echo "no" >&6; }
5709 $as_echo "#define NO_MINUS_C_MINUS_O 1" >>confdefs.h
5713 # FIXME: we rely on the cache variable name because
5714 # there is no other way.
5716 am_cc=`echo $2 |
sed 's/[^a-zA-Z0-9_]/_/g;s/^[0-9]/_/'`
5717 eval am_t=\$ac_cv_prog_cc_${am_cc}_c_o
5718 if test "$am_t" != yes; then
5719 # Losing compiler, so override with the script.
5720 # FIXME: It is wrong to rewrite CC.
5721 # But if we don't then we get into trouble of one sort or another.
5722 # A longer-term fix would be to have automake use am__CC in this case,
5723 # and then we could set am__CC="\$(top_srcdir)/compile \$(CC)"
5724 CC="$am_aux_dir/compile $CC"
5729 # Initialize gnulib right after verifying that the C compiler works.
5732 ac_cpp='$CPP $CPPFLAGS'
5733 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5734 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5735 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5736 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
5737 $as_echo_n "checking how to run the C preprocessor... " >&6; }
5738 # On Suns, sometimes $CPP names a directory.
5739 if test -n "$CPP" && test -d "$CPP"; then
5742 if test -z "$CPP"; then
5743 if test "${ac_cv_prog_CPP+set}" = set; then :
5744 $as_echo_n "(cached) " >&6
5746 # Double quotes because CPP needs to be expanded
5747 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
5750 for ac_c_preproc_warn_flag in '' yes
5752 # Use a header file that comes with gcc, so configuring glibc
5753 # with a fresh cross-compiler works.
5754 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5755 # <limits.h> exists even on freestanding compilers.
5756 # On the NeXT, cc -E runs the code through the compiler's parser,
5757 # not just through cpp. "Syntax error" is here to catch this case.
5758 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5759 /* end confdefs.h. */
5761 # include <limits.h>
5763 # include <assert.h>
5767 if ac_fn_c_try_cpp "$LINENO"; then :
5770 # Broken: fails on valid input.
5773 rm -f conftest.err conftest.$ac_ext
5775 # OK, works on sane cases. Now check whether nonexistent headers
5776 # can be detected and how.
5777 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5778 /* end confdefs.h. */
5779 #include <ac_nonexistent.h>
5781 if ac_fn_c_try_cpp "$LINENO"; then :
5782 # Broken: success on invalid input.
5785 # Passes both tests.
5789 rm -f conftest.err conftest.$ac_ext
5792 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
5793 rm -f conftest.err conftest.
$ac_ext
5794 if $ac_preproc_ok; then :
5806 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
5807 $as_echo "$CPP" >&6; }
5809 for ac_c_preproc_warn_flag
in '' yes
5811 # Use a header file that comes with gcc, so configuring glibc
5812 # with a fresh cross-compiler works.
5813 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5814 # <limits.h> exists even on freestanding compilers.
5815 # On the NeXT, cc -E runs the code through the compiler's parser,
5816 # not just through cpp. "Syntax error" is here to catch this case.
5817 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
5818 /* end confdefs.h. */
5820 # include <limits.h>
5822 # include <assert.h>
5826 if ac_fn_c_try_cpp
"$LINENO"; then :
5829 # Broken: fails on valid input.
5832 rm -f conftest.err conftest.
$ac_ext
5834 # OK, works on sane cases. Now check whether nonexistent headers
5835 # can be detected and how.
5836 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
5837 /* end confdefs.h. */
5838 #include <ac_nonexistent.h>
5840 if ac_fn_c_try_cpp
"$LINENO"; then :
5841 # Broken: success on invalid input.
5844 # Passes both tests.
5848 rm -f conftest.err conftest.
$ac_ext
5851 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
5852 rm -f conftest.err conftest.
$ac_ext
5853 if $ac_preproc_ok; then :
5856 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
5857 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
5858 as_fn_error
"C preprocessor \"$CPP\" fails sanity check
5859 See \`config.log' for more details." "$LINENO" 5; }
5863 ac_cpp
='$CPP $CPPFLAGS'
5864 ac_compile
='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5865 ac_link
='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5866 ac_compiler_gnu
=$ac_cv_c_compiler_gnu
5869 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
5870 $as_echo_n "checking for grep that handles long lines and -e... " >&6; }
5871 if test "${ac_cv_path_GREP+set}" = set; then :
5872 $as_echo_n "(cached) " >&6
5874 if test -z "$GREP"; then
5875 ac_path_GREP_found
=false
5876 # Loop through the user's path and test for each of PROGNAME-LIST
5877 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
5878 for as_dir
in $PATH$PATH_SEPARATOR/usr
/xpg
4/bin
5881 test -z "$as_dir" && as_dir
=.
5882 for ac_prog
in grep ggrep
; do
5883 for ac_exec_ext
in '' $ac_executable_extensions; do
5884 ac_path_GREP
="$as_dir/$ac_prog$ac_exec_ext"
5885 { test -f "$ac_path_GREP" && $as_test_x "$ac_path_GREP"; } ||
continue
5886 # Check for GNU ac_path_GREP and select it if it is found.
5887 # Check for GNU $ac_path_GREP
5888 case `"$ac_path_GREP" --version 2>&1` in
5890 ac_cv_path_GREP
="$ac_path_GREP" ac_path_GREP_found
=:;;
5893 $as_echo_n 0123456789 >"conftest.in"
5896 cat "conftest.in" "conftest.in" >"conftest.tmp"
5897 mv "conftest.tmp" "conftest.in"
5898 cp "conftest.in" "conftest.nl"
5899 $as_echo 'GREP' >> "conftest.nl"
5900 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev
/null ||
break
5901 diff "conftest.out" "conftest.nl" >/dev
/null
2>&1 ||
break
5902 as_fn_arith
$ac_count + 1 && ac_count
=$as_val
5903 if test $ac_count -gt ${ac_path_GREP_max-0}; then
5904 # Best one so far, save it but keep looking for a better one
5905 ac_cv_path_GREP
="$ac_path_GREP"
5906 ac_path_GREP_max
=$ac_count
5908 # 10*(2^10) chars as input seems more than enough
5909 test $ac_count -gt 10 && break
5911 rm -f conftest.
in conftest.tmp conftest.
nl conftest.out
;;
5914 $ac_path_GREP_found && break 3
5919 if test -z "$ac_cv_path_GREP"; then
5920 as_fn_error
"no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
5923 ac_cv_path_GREP
=$GREP
5927 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
5928 $as_echo "$ac_cv_path_GREP" >&6; }
5929 GREP
="$ac_cv_path_GREP"
5932 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
5933 $as_echo_n "checking for egrep... " >&6; }
5934 if test "${ac_cv_path_EGREP+set}" = set; then :
5935 $as_echo_n "(cached) " >&6
5937 if echo a |
$GREP -E '(a|b)' >/dev
/null
2>&1
5938 then ac_cv_path_EGREP
="$GREP -E"
5940 if test -z "$EGREP"; then
5941 ac_path_EGREP_found
=false
5942 # Loop through the user's path and test for each of PROGNAME-LIST
5943 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
5944 for as_dir
in $PATH$PATH_SEPARATOR/usr
/xpg
4/bin
5947 test -z "$as_dir" && as_dir
=.
5948 for ac_prog
in egrep; do
5949 for ac_exec_ext
in '' $ac_executable_extensions; do
5950 ac_path_EGREP
="$as_dir/$ac_prog$ac_exec_ext"
5951 { test -f "$ac_path_EGREP" && $as_test_x "$ac_path_EGREP"; } ||
continue
5952 # Check for GNU ac_path_EGREP and select it if it is found.
5953 # Check for GNU $ac_path_EGREP
5954 case `"$ac_path_EGREP" --version 2>&1` in
5956 ac_cv_path_EGREP
="$ac_path_EGREP" ac_path_EGREP_found
=:;;
5959 $as_echo_n 0123456789 >"conftest.in"
5962 cat "conftest.in" "conftest.in" >"conftest.tmp"
5963 mv "conftest.tmp" "conftest.in"
5964 cp "conftest.in" "conftest.nl"
5965 $as_echo 'EGREP' >> "conftest.nl"
5966 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev
/null ||
break
5967 diff "conftest.out" "conftest.nl" >/dev
/null
2>&1 ||
break
5968 as_fn_arith
$ac_count + 1 && ac_count
=$as_val
5969 if test $ac_count -gt ${ac_path_EGREP_max-0}; then
5970 # Best one so far, save it but keep looking for a better one
5971 ac_cv_path_EGREP
="$ac_path_EGREP"
5972 ac_path_EGREP_max
=$ac_count
5974 # 10*(2^10) chars as input seems more than enough
5975 test $ac_count -gt 10 && break
5977 rm -f conftest.
in conftest.tmp conftest.
nl conftest.out
;;
5980 $ac_path_EGREP_found && break 3
5985 if test -z "$ac_cv_path_EGREP"; then
5986 as_fn_error
"no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
5989 ac_cv_path_EGREP
=$EGREP
5994 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
5995 $as_echo "$ac_cv_path_EGREP" >&6; }
5996 EGREP
="$ac_cv_path_EGREP"
6001 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Minix Amsterdam compiler" >&5
6002 $as_echo_n "checking for Minix Amsterdam compiler... " >&6; }
6003 if test "${gl_cv_c_amsterdam_compiler+set}" = set; then :
6004 $as_echo_n "(cached) " >&6
6007 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
6008 /* end confdefs.h. */
6015 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6016 $EGREP "Amsterdam" >/dev
/null
2>&1; then :
6017 gl_cv_c_amsterdam_compiler
=yes
6019 gl_cv_c_amsterdam_compiler
=no
6025 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_c_amsterdam_compiler" >&5
6026 $as_echo "$gl_cv_c_amsterdam_compiler" >&6; }
6027 if test -z "$AR"; then
6028 if test $gl_cv_c_amsterdam_compiler = yes; then
6030 if test -z "$ARFLAGS"; then
6034 if test -n "$ac_tool_prefix"; then
6035 # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
6036 set dummy
${ac_tool_prefix}ar; ac_word
=$2
6037 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6038 $as_echo_n "checking for $ac_word... " >&6; }
6039 if test "${ac_cv_prog_AR+set}" = set; then :
6040 $as_echo_n "(cached) " >&6
6042 if test -n "$AR"; then
6043 ac_cv_prog_AR
="$AR" # Let the user override the test.
6045 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
6049 test -z "$as_dir" && as_dir
=.
6050 for ac_exec_ext
in '' $ac_executable_extensions; do
6051 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6052 ac_cv_prog_AR
="${ac_tool_prefix}ar"
6053 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6063 if test -n "$AR"; then
6064 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
6065 $as_echo "$AR" >&6; }
6067 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6068 $as_echo "no" >&6; }
6073 if test -z "$ac_cv_prog_AR"; then
6075 # Extract the first word of "ar", so it can be a program name with args.
6076 set dummy
ar; ac_word
=$2
6077 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6078 $as_echo_n "checking for $ac_word... " >&6; }
6079 if test "${ac_cv_prog_ac_ct_AR+set}" = set; then :
6080 $as_echo_n "(cached) " >&6
6082 if test -n "$ac_ct_AR"; then
6083 ac_cv_prog_ac_ct_AR
="$ac_ct_AR" # Let the user override the test.
6085 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
6089 test -z "$as_dir" && as_dir
=.
6090 for ac_exec_ext
in '' $ac_executable_extensions; do
6091 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6092 ac_cv_prog_ac_ct_AR
="ar"
6093 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6102 ac_ct_AR
=$ac_cv_prog_ac_ct_AR
6103 if test -n "$ac_ct_AR"; then
6104 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5
6105 $as_echo "$ac_ct_AR" >&6; }
6107 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6108 $as_echo "no" >&6; }
6111 if test "x$ac_ct_AR" = x
; then
6114 case $cross_compiling:$ac_tool_warned in
6116 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6117 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6118 ac_tool_warned
=yes ;;
6126 if test -z "$ARFLAGS"; then
6131 if test -z "$ARFLAGS"; then
6137 if test -z "$RANLIB"; then
6138 if test $gl_cv_c_amsterdam_compiler = yes; then
6141 if test -n "$ac_tool_prefix"; then
6142 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
6143 set dummy
${ac_tool_prefix}ranlib
; ac_word
=$2
6144 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6145 $as_echo_n "checking for $ac_word... " >&6; }
6146 if test "${ac_cv_prog_RANLIB+set}" = set; then :
6147 $as_echo_n "(cached) " >&6
6149 if test -n "$RANLIB"; then
6150 ac_cv_prog_RANLIB
="$RANLIB" # Let the user override the test.
6152 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
6156 test -z "$as_dir" && as_dir
=.
6157 for ac_exec_ext
in '' $ac_executable_extensions; do
6158 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6159 ac_cv_prog_RANLIB
="${ac_tool_prefix}ranlib"
6160 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6169 RANLIB
=$ac_cv_prog_RANLIB
6170 if test -n "$RANLIB"; then
6171 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
6172 $as_echo "$RANLIB" >&6; }
6174 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6175 $as_echo "no" >&6; }
6180 if test -z "$ac_cv_prog_RANLIB"; then
6181 ac_ct_RANLIB
=$RANLIB
6182 # Extract the first word of "ranlib", so it can be a program name with args.
6183 set dummy ranlib
; ac_word
=$2
6184 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6185 $as_echo_n "checking for $ac_word... " >&6; }
6186 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then :
6187 $as_echo_n "(cached) " >&6
6189 if test -n "$ac_ct_RANLIB"; then
6190 ac_cv_prog_ac_ct_RANLIB
="$ac_ct_RANLIB" # Let the user override the test.
6192 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
6196 test -z "$as_dir" && as_dir
=.
6197 for ac_exec_ext
in '' $ac_executable_extensions; do
6198 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6199 ac_cv_prog_ac_ct_RANLIB
="ranlib"
6200 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6209 ac_ct_RANLIB
=$ac_cv_prog_ac_ct_RANLIB
6210 if test -n "$ac_ct_RANLIB"; then
6211 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
6212 $as_echo "$ac_ct_RANLIB" >&6; }
6214 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6215 $as_echo "no" >&6; }
6218 if test "x$ac_ct_RANLIB" = x
; then
6221 case $cross_compiling:$ac_tool_warned in
6223 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6224 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6225 ac_tool_warned
=yes ;;
6227 RANLIB
=$ac_ct_RANLIB
6230 RANLIB
="$ac_cv_prog_RANLIB"
6237 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
6238 $as_echo_n "checking for ANSI C header files... " >&6; }
6239 if test "${ac_cv_header_stdc+set}" = set; then :
6240 $as_echo_n "(cached) " >&6
6242 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
6243 /* end confdefs.h. */
6257 if ac_fn_c_try_compile
"$LINENO"; then :
6258 ac_cv_header_stdc
=yes
6260 ac_cv_header_stdc
=no
6262 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
6264 if test $ac_cv_header_stdc = yes; then
6265 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
6266 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
6267 /* end confdefs.h. */
6271 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6272 $EGREP "memchr" >/dev
/null
2>&1; then :
6275 ac_cv_header_stdc
=no
6281 if test $ac_cv_header_stdc = yes; then
6282 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
6283 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
6284 /* end confdefs.h. */
6288 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6289 $EGREP "free" >/dev
/null
2>&1; then :
6292 ac_cv_header_stdc
=no
6298 if test $ac_cv_header_stdc = yes; then
6299 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
6300 if test "$cross_compiling" = yes; then :
6303 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
6304 /* end confdefs.h. */
6307 #if ((' ' & 0x0FF) == 0x020)
6308 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
6309 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
6311 # define ISLOWER(c) \
6312 (('a' <= (c) && (c) <= 'i') \
6313 || ('j' <= (c) && (c) <= 'r') \
6314 || ('s' <= (c) && (c) <= 'z'))
6315 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
6318 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
6323 for (i = 0; i < 256; i++)
6324 if (XOR (islower (i), ISLOWER (i))
6325 || toupper (i) != TOUPPER (i))
6330 if ac_fn_c_try_run
"$LINENO"; then :
6333 ac_cv_header_stdc
=no
6335 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
6336 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
6341 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
6342 $as_echo "$ac_cv_header_stdc" >&6; }
6343 if test $ac_cv_header_stdc = yes; then
6345 $as_echo "#define STDC_HEADERS 1" >>confdefs.h
6349 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
6350 for ac_header
in sys
/types.h sys
/stat.h stdlib.h string.h memory.h
strings.h \
6351 inttypes.h stdint.h unistd.h
6353 as_ac_Header
=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
6354 ac_fn_c_check_header_compile
"$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
6356 eval as_val
=\$
$as_ac_Header
6357 if test "x$as_val" = x
""yes; then :
6358 cat >>confdefs.h
<<_ACEOF
6359 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
6370 ac_fn_c_check_header_mongrel
"$LINENO" "minix/config.h" "ac_cv_header_minix_config_h" "$ac_includes_default"
6371 if test "x$ac_cv_header_minix_config_h" = x
""yes; then :
6378 if test "$MINIX" = yes; then
6380 $as_echo "#define _POSIX_SOURCE 1" >>confdefs.h
6383 $as_echo "#define _POSIX_1_SOURCE 2" >>confdefs.h
6386 $as_echo "#define _MINIX 1" >>confdefs.h
6393 $as_echo "#define _XOPEN_SOURCE 500" >>confdefs.h
6399 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether it is safe to define __EXTENSIONS__" >&5
6400 $as_echo_n "checking whether it is safe to define __EXTENSIONS__... " >&6; }
6401 if test "${ac_cv_safe_to_define___extensions__+set}" = set; then :
6402 $as_echo_n "(cached) " >&6
6404 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
6405 /* end confdefs.h. */
6407 # define __EXTENSIONS__ 1
6408 $ac_includes_default
6417 if ac_fn_c_try_compile
"$LINENO"; then :
6418 ac_cv_safe_to_define___extensions__
=yes
6420 ac_cv_safe_to_define___extensions__
=no
6422 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
6424 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_safe_to_define___extensions__" >&5
6425 $as_echo "$ac_cv_safe_to_define___extensions__" >&6; }
6426 test $ac_cv_safe_to_define___extensions__ = yes &&
6427 $as_echo "#define __EXTENSIONS__ 1" >>confdefs.h
6429 $as_echo "#define _ALL_SOURCE 1" >>confdefs.h
6431 $as_echo "#define _DARWIN_C_SOURCE 1" >>confdefs.h
6433 $as_echo "#define _GNU_SOURCE 1" >>confdefs.h
6435 $as_echo "#define _POSIX_PTHREAD_SEMANTICS 1" >>confdefs.h
6437 $as_echo "#define _TANDEM_SOURCE 1" >>confdefs.h
6446 # Check whether --enable-largefile was given.
6447 if test "${enable_largefile+set}" = set; then :
6448 enableval
=$enable_largefile;
6451 if test "$enable_largefile" != no
; then
6453 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for special C compiler options needed for large files" >&5
6454 $as_echo_n "checking for special C compiler options needed for large files... " >&6; }
6455 if test "${ac_cv_sys_largefile_CC+set}" = set; then :
6456 $as_echo_n "(cached) " >&6
6458 ac_cv_sys_largefile_CC
=no
6459 if test "$GCC" != yes; then
6462 # IRIX 6.2 and later do not support large files by default,
6463 # so use the C compiler's -n32 option if that helps.
6464 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
6465 /* end confdefs.h. */
6466 #include <sys/types.h>
6467 /* Check that off_t can represent 2**63 - 1 correctly.
6468 We can't simply define LARGE_OFF_T to be 9223372036854775807,
6469 since some C++ compilers masquerading as C compilers
6470 incorrectly reject 9223372036854775807. */
6471 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
6472 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
6473 && LARGE_OFF_T % 2147483647 == 1)
6483 if ac_fn_c_try_compile
"$LINENO"; then :
6486 rm -f core conftest.err conftest.
$ac_objext
6488 if ac_fn_c_try_compile
"$LINENO"; then :
6489 ac_cv_sys_largefile_CC
=' -n32'; break
6491 rm -f core conftest.err conftest.
$ac_objext
6495 rm -f conftest.
$ac_ext
6498 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_largefile_CC" >&5
6499 $as_echo "$ac_cv_sys_largefile_CC" >&6; }
6500 if test "$ac_cv_sys_largefile_CC" != no
; then
6501 CC
=$CC$ac_cv_sys_largefile_CC
6504 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _FILE_OFFSET_BITS value needed for large files" >&5
6505 $as_echo_n "checking for _FILE_OFFSET_BITS value needed for large files... " >&6; }
6506 if test "${ac_cv_sys_file_offset_bits+set}" = set; then :
6507 $as_echo_n "(cached) " >&6
6510 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
6511 /* end confdefs.h. */
6512 #include <sys/types.h>
6513 /* Check that off_t can represent 2**63 - 1 correctly.
6514 We can't simply define LARGE_OFF_T to be 9223372036854775807,
6515 since some C++ compilers masquerading as C compilers
6516 incorrectly reject 9223372036854775807. */
6517 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
6518 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
6519 && LARGE_OFF_T % 2147483647 == 1)
6529 if ac_fn_c_try_compile
"$LINENO"; then :
6530 ac_cv_sys_file_offset_bits
=no
; break
6532 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
6533 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
6534 /* end confdefs.h. */
6535 #define _FILE_OFFSET_BITS 64
6536 #include <sys/types.h>
6537 /* Check that off_t can represent 2**63 - 1 correctly.
6538 We can't simply define LARGE_OFF_T to be 9223372036854775807,
6539 since some C++ compilers masquerading as C compilers
6540 incorrectly reject 9223372036854775807. */
6541 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
6542 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
6543 && LARGE_OFF_T % 2147483647 == 1)
6553 if ac_fn_c_try_compile
"$LINENO"; then :
6554 ac_cv_sys_file_offset_bits
=64; break
6556 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
6557 ac_cv_sys_file_offset_bits
=unknown
6561 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_file_offset_bits" >&5
6562 $as_echo "$ac_cv_sys_file_offset_bits" >&6; }
6563 case $ac_cv_sys_file_offset_bits in #(
6566 cat >>confdefs.h
<<_ACEOF
6567 #define _FILE_OFFSET_BITS $ac_cv_sys_file_offset_bits
6572 if test $ac_cv_sys_file_offset_bits = unknown
; then
6573 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _LARGE_FILES value needed for large files" >&5
6574 $as_echo_n "checking for _LARGE_FILES value needed for large files... " >&6; }
6575 if test "${ac_cv_sys_large_files+set}" = set; then :
6576 $as_echo_n "(cached) " >&6
6579 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
6580 /* end confdefs.h. */
6581 #include <sys/types.h>
6582 /* Check that off_t can represent 2**63 - 1 correctly.
6583 We can't simply define LARGE_OFF_T to be 9223372036854775807,
6584 since some C++ compilers masquerading as C compilers
6585 incorrectly reject 9223372036854775807. */
6586 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
6587 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
6588 && LARGE_OFF_T % 2147483647 == 1)
6598 if ac_fn_c_try_compile
"$LINENO"; then :
6599 ac_cv_sys_large_files
=no
; break
6601 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
6602 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
6603 /* end confdefs.h. */
6604 #define _LARGE_FILES 1
6605 #include <sys/types.h>
6606 /* Check that off_t can represent 2**63 - 1 correctly.
6607 We can't simply define LARGE_OFF_T to be 9223372036854775807,
6608 since some C++ compilers masquerading as C compilers
6609 incorrectly reject 9223372036854775807. */
6610 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
6611 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
6612 && LARGE_OFF_T % 2147483647 == 1)
6622 if ac_fn_c_try_compile
"$LINENO"; then :
6623 ac_cv_sys_large_files
=1; break
6625 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
6626 ac_cv_sys_large_files
=unknown
6630 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_large_files" >&5
6631 $as_echo "$ac_cv_sys_large_files" >&6; }
6632 case $ac_cv_sys_large_files in #(
6635 cat >>confdefs.h
<<_ACEOF
6636 #define _LARGE_FILES $ac_cv_sys_large_files
6646 case $ac_cv_prog_cc_stdc in #(
6648 ac_cv_prog_cc_c99
=no
; ac_cv_prog_cc_c89
=no
;; #(
6650 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C99" >&5
6651 $as_echo_n "checking for $CC option to accept ISO C99... " >&6; }
6652 if test "${ac_cv_prog_cc_c99+set}" = set; then :
6653 $as_echo_n "(cached) " >&6
6655 ac_cv_prog_cc_c99
=no
6657 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
6658 /* end confdefs.h. */
6660 #include <stdbool.h>
6665 // Check varargs macros. These examples are taken from C99 6.10.3.5.
6666 #define debug(...) fprintf (stderr, __VA_ARGS__)
6667 #define showlist(...) puts (#__VA_ARGS__)
6668 #define report(test,...) ((test) ? puts (#test) : printf (__VA_ARGS__))
6670 test_varargs_macros (void)
6675 debug ("X = %d\n", x);
6676 showlist (The first, second, and third items.);
6677 report (x>y, "x is %d but y is %d", x, y);
6680 // Check long long types.
6681 #define BIG64 18446744073709551615ull
6682 #define BIG32 4294967295ul
6683 #define BIG_OK (BIG64 / BIG32 == 4294967297ull && BIG64 % BIG32 == 0)
6685 your preprocessor is broken;
6689 your preprocessor is broken;
6691 static long long int bignum = -9223372036854775807LL;
6692 static unsigned long long int ubignum = BIG64;
6694 struct incomplete_array
6702 const wchar_t *name;
6706 typedef const char *ccp;
6709 test_restrict (ccp restrict text)
6711 // See if C++-style comments work.
6712 // Iterate through items via the restricted pointer.
6713 // Also check for declarations in for loops.
6714 for (unsigned int i = 0; *(text+i) != '\0'; ++i)
6719 // Check varargs and va_copy.
6721 test_varargs (const char *format, ...)
6724 va_start (args, format);
6726 va_copy (args_copy, args);
6737 str = va_arg (args_copy, const char *);
6740 number = va_arg (args_copy, int);
6743 fnumber = va_arg (args_copy, double);
6758 _Bool success = false;
6761 if (test_restrict ("String literal") == 0)
6763 char *restrict newvar = "Another string";
6766 test_varargs ("s, d' f .", "string", 65, 34.234);
6767 test_varargs_macros ();
6769 // Check flexible array members.
6770 struct incomplete_array *ia =
6771 malloc (sizeof (struct incomplete_array) + (sizeof (double) * 10));
6773 for (int i = 0; i < ia->datasize; ++i)
6774 ia->data[i] = i * 1.234;
6776 // Check named initializers.
6777 struct named_init ni = {
6779 .name = L"Test wide string",
6780 .average = 543.34343,
6785 int dynamic_array[ni.number];
6786 dynamic_array[ni.number - 1] = 543;
6788 // work around unused variable warnings
6789 return (!success || bignum == 0LL || ubignum == 0uLL || newvar[0] == 'x'
6790 || dynamic_array[ni.number - 1] != 543);
6796 for ac_arg
in '' -std=gnu99
-std=c99
-c99 -AC99 -xc99=all
-qlanglvl=extc99
6798 CC
="$ac_save_CC $ac_arg"
6799 if ac_fn_c_try_compile
"$LINENO"; then :
6800 ac_cv_prog_cc_c99
=$ac_arg
6802 rm -f core conftest.err conftest.
$ac_objext
6803 test "x$ac_cv_prog_cc_c99" != "xno" && break
6805 rm -f conftest.
$ac_ext
6810 case "x$ac_cv_prog_cc_c99" in
6812 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
6813 $as_echo "none needed" >&6; } ;;
6815 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
6816 $as_echo "unsupported" >&6; } ;;
6818 CC
="$CC $ac_cv_prog_cc_c99"
6819 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c99" >&5
6820 $as_echo "$ac_cv_prog_cc_c99" >&6; } ;;
6822 if test "x$ac_cv_prog_cc_c99" != xno
; then :
6823 ac_cv_prog_cc_stdc
=$ac_cv_prog_cc_c99
6825 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
6826 $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
6827 if test "${ac_cv_prog_cc_c89+set}" = set; then :
6828 $as_echo_n "(cached) " >&6
6830 ac_cv_prog_cc_c89
=no
6832 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
6833 /* end confdefs.h. */
6836 #include <sys/types.h>
6837 #include <sys/stat.h>
6838 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
6839 struct buf { int x; };
6840 FILE * (*rcsopen) (struct buf *, struct stat *, int);
6841 static char *e (p, i)
6847 static char *f (char * (*g) (char **, int), char **p, ...)
6852 s = g (p, va_arg (v,int));
6857 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
6858 function prototypes and stuff, but not '\xHH' hex character constants.
6859 These don't provoke an error unfortunately, instead are silently treated
6860 as 'x'. The following induces an error, until -std is added to get
6861 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
6862 array size at least. It's necessary to write '\x00'==0 to get something
6863 that's true only with -std. */
6864 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
6866 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
6867 inside strings and character constants. */
6869 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
6871 int test (int i, double x);
6872 struct s1 {int (*f) (int a);};
6873 struct s2 {int (*f) (double a);};
6874 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
6880 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
6885 for ac_arg
in '' -qlanglvl=extc89
-qlanglvl=ansi
-std \
6886 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
6888 CC
="$ac_save_CC $ac_arg"
6889 if ac_fn_c_try_compile
"$LINENO"; then :
6890 ac_cv_prog_cc_c89
=$ac_arg
6892 rm -f core conftest.err conftest.
$ac_objext
6893 test "x$ac_cv_prog_cc_c89" != "xno" && break
6895 rm -f conftest.
$ac_ext
6900 case "x$ac_cv_prog_cc_c89" in
6902 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
6903 $as_echo "none needed" >&6; } ;;
6905 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
6906 $as_echo "unsupported" >&6; } ;;
6908 CC
="$CC $ac_cv_prog_cc_c89"
6909 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
6910 $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
6912 if test "x$ac_cv_prog_cc_c89" != xno
; then :
6913 ac_cv_prog_cc_stdc
=$ac_cv_prog_cc_c89
6915 ac_cv_prog_cc_stdc
=no
6921 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO Standard C" >&5
6922 $as_echo_n "checking for $CC option to accept ISO Standard C... " >&6; }
6923 if test "${ac_cv_prog_cc_stdc+set}" = set; then :
6924 $as_echo_n "(cached) " >&6
6927 case $ac_cv_prog_cc_stdc in #(
6929 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
6930 $as_echo "unsupported" >&6; } ;; #(
6932 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
6933 $as_echo "none needed" >&6; } ;; #(
6935 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_stdc" >&5
6936 $as_echo "$ac_cv_prog_cc_stdc" >&6; } ;;
6941 # Code from module alloca-opt:
6942 # Code from module allocator:
6943 # Code from module careadlinkat:
6944 # Code from module crypto/md5:
6945 # Code from module crypto/sha1:
6946 # Code from module crypto/sha256:
6947 # Code from module crypto/sha512:
6948 # Code from module dosname:
6949 # Code from module dtoastr:
6950 # Code from module dup2:
6951 # Code from module extensions:
6953 # Code from module filemode:
6954 # Code from module getloadavg:
6955 # Code from module getopt-gnu:
6956 # Code from module getopt-posix:
6957 # Code from module gettext-h:
6958 # Code from module ignore-value:
6959 # Code from module include_next:
6960 # Code from module intprops:
6961 # Code from module inttypes-incomplete:
6962 # Code from module largefile:
6964 # Code from module lstat:
6965 # Code from module manywarnings:
6966 # Code from module mktime:
6967 # Code from module multiarch:
6968 # Code from module nocrash:
6969 # Code from module pathmax:
6970 # Code from module pthread_sigmask:
6971 # Code from module readlink:
6972 # Code from module signal-h:
6973 # Code from module sigprocmask:
6974 # Code from module snippet/_Noreturn:
6975 # Code from module snippet/arg-nonnull:
6976 # Code from module snippet/c++defs:
6977 # Code from module snippet/warn-on-use:
6978 # Code from module socklen:
6979 # Code from module ssize_t:
6980 # Code from module stat:
6981 # Code from module stdarg:
6985 # Code from module stdbool:
6986 # Code from module stddef:
6987 # Code from module stdint:
6988 # Code from module stdio:
6989 # Code from module stdlib:
6990 # Code from module strftime:
6991 # Code from module strtoimax:
6992 # Code from module strtoll:
6993 # Code from module strtoull:
6994 # Code from module strtoumax:
6995 # Code from module symlink:
6996 # Code from module sys_stat:
6997 # Code from module time:
6998 # Code from module time_r:
6999 # Code from module u64:
7000 # Code from module unistd:
7001 # Code from module verify:
7002 # Code from module warnings:
7005 # On Suns, sometimes $CPP names a directory.
7006 if test -n "$CPP" && test -d "$CPP"; then
7010 ## If not using gcc, and on Solaris, and no CPP specified, see if
7011 ## using a Sun compiler, which needs -Xs to prevent whitespace.
7012 if test x
"$GCC" != xyes
&& test x
"$emacs_check_sunpro_c" = xyes
&& \
7013 test x
"$CPP" = x
; then
7014 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using a Sun C compiler" >&5
7015 $as_echo_n "checking whether we are using a Sun C compiler... " >&6; }
7016 if test "${emacs_cv_sunpro_c+set}" = set; then :
7017 $as_echo_n "(cached) " >&6
7019 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
7020 /* end confdefs.h. */
7033 if ac_fn_c_try_link
"$LINENO"; then :
7034 emacs_cv_sunpro_c
=yes
7036 emacs_cv_sunpro_c
=no
7038 rm -f core conftest.err conftest.
$ac_objext \
7039 conftest
$ac_exeext conftest.
$ac_ext
7042 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $emacs_cv_sunpro_c" >&5
7043 $as_echo "$emacs_cv_sunpro_c" >&6; }
7045 if test x
"$emacs_cv_sunpro_c" = xyes
; then
7046 NON_GNU_CPP
="$CC -E -Xs"
7050 #### Some systems specify a CPP to use unless we are using GCC.
7051 #### Now that we know whether we are using GCC, we can decide whether
7052 #### to use that one.
7053 if test "x$NON_GNU_CPP" != x
&& test x
$GCC != xyes
&& test "x$CPP" = x
7058 #### Some systems specify a CC to use unless we are using GCC.
7059 #### Now that we know whether we are using GCC, we can decide whether
7060 #### to use that one.
7061 if test "x$NON_GNU_CC" != x
&& test x
$GCC != xyes
&&
7062 test x
$cc_specified != xyes
7067 if test x
$GCC = xyes
; then
7068 test "x$GCC_TEST_OPTIONS" != x
&& CC
="$CC $GCC_TEST_OPTIONS"
7070 test "x$NON_GCC_TEST_OPTIONS" != x
&& CC
="$CC $NON_GCC_TEST_OPTIONS"
7073 # Check whether --enable-gcc-warnings was given.
7074 if test "${enable_gcc_warnings+set}" = set; then :
7075 enableval
=$enable_gcc_warnings; case $enableval in
7077 *) as_fn_error
"bad value $enableval for gcc-warnings option" "$LINENO" 5 ;;
7079 gl_gcc_warnings
=$enableval
7086 # gl_GCC_VERSION_IFELSE([major], [minor], [run-if-found], [run-if-not-found])
7087 # ------------------------------------------------
7088 # If $CPP is gcc-MAJOR.MINOR or newer, then run RUN-IF-FOUND.
7089 # Otherwise, run RUN-IF-NOT-FOUND.
7092 # When compiling with GCC, prefer -isystem to -I when including system
7093 # include files, to avoid generating useless diagnostics for the files.
7094 if test "$gl_gcc_warnings" != yes; then
7099 # This, $nw, is the list of warnings we disable.
7102 case $with_x_toolkit in
7103 lucid | athena | motif
)
7104 # Old toolkits mishandle 'const'.
7105 nw
="$nw -Wwrite-strings"
7108 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether C compiler handles -Werror" >&5
7109 $as_echo_n "checking whether C compiler handles -Werror... " >&6; }
7110 if test "${gl_cv_warn_c__Werror+set}" = set; then :
7111 $as_echo_n "(cached) " >&6
7114 gl_save_compiler_FLAGS
="$CFLAGS"
7115 CFLAGS
="$CFLAGS -Werror"
7116 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
7117 /* end confdefs.h. */
7127 if ac_fn_c_try_compile
"$LINENO"; then :
7128 gl_cv_warn_c__Werror
=yes
7130 gl_cv_warn_c__Werror
=no
7132 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
7133 CFLAGS
="$gl_save_compiler_FLAGS"
7136 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_warn_c__Werror" >&5
7137 $as_echo "$gl_cv_warn_c__Werror" >&6; }
7138 if test "x$gl_cv_warn_c__Werror" = x
""yes; then :
7139 as_fn_append WERROR_CFLAGS
" -Werror"
7146 nw
="$nw -Waggregate-return" # anachronistic
7147 nw
="$nw -Wlong-long" # C90 is anachronistic
7148 nw
="$nw -Wc++-compat" # We don't care about C++ compilers
7149 nw
="$nw -Wundef" # Warns on '#if GNULIB_FOO' etc in gnulib
7150 nw
="$nw -Wtraditional" # Warns on #elif which we use often
7151 nw
="$nw -Wcast-qual" # Too many warnings for now
7152 nw
="$nw -Wconversion" # Too many warnings for now
7153 nw
="$nw -Wsystem-headers" # Don't let system headers trigger warnings
7154 nw
="$nw -Wsign-conversion" # Too many warnings for now
7155 nw
="$nw -Woverlength-strings" # Not a problem these days
7156 nw
="$nw -Wtraditional-conversion" # Too many warnings for now
7157 nw
="$nw -Wpadded" # Our structs are not padded
7158 nw
="$nw -Wredundant-decls" # We regularly (re)declare getenv etc.
7159 nw
="$nw -Wlogical-op" # any use of fwrite provokes this
7160 nw
="$nw -Wformat-nonliteral" # Emacs does this a lot
7161 nw
="$nw -Wvla" # warnings in gettext.h
7162 nw
="$nw -Wnested-externs" # use of XARGMATCH/verify_function__
7163 nw
="$nw -Wswitch-enum" # Too many warnings for now
7164 nw
="$nw -Wswitch-default" # Too many warnings for now
7165 nw
="$nw -Wfloat-equal" # e.g., ftoastr.c
7166 nw
="$nw -Winline" # e.g., dispnew.c's inlining of row_equal_p
7168 # Emacs doesn't care about shadowing; see
7169 # <http://lists.gnu.org/archive/html/emacs-diffs/2011-11/msg00265.html>.
7172 # The following lines should be removable at some point.
7173 nw
="$nw -Wstack-protector"
7174 nw
="$nw -Wstrict-overflow"
7175 nw
="$nw -Wsuggest-attribute=const"
7176 nw
="$nw -Wsuggest-attribute=pure"
7180 if test -n "$GCC"; then
7182 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -Wno-missing-field-initializers is supported" >&5
7183 $as_echo_n "checking whether -Wno-missing-field-initializers is supported... " >&6; }
7184 if test "${gl_cv_cc_nomfi_supported+set}" = set; then :
7185 $as_echo_n "(cached) " >&6
7188 gl_save_CFLAGS
="$CFLAGS"
7189 CFLAGS
="$CFLAGS -W -Werror -Wno-missing-field-initializers"
7190 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
7191 /* end confdefs.h. */
7201 if ac_fn_c_try_compile
"$LINENO"; then :
7202 gl_cv_cc_nomfi_supported
=yes
7204 gl_cv_cc_nomfi_supported
=no
7206 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
7207 CFLAGS
="$gl_save_CFLAGS"
7210 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_cc_nomfi_supported" >&5
7211 $as_echo "$gl_cv_cc_nomfi_supported" >&6; }
7213 if test "$gl_cv_cc_nomfi_supported" = yes; then
7214 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -Wno-missing-field-initializers is needed" >&5
7215 $as_echo_n "checking whether -Wno-missing-field-initializers is needed... " >&6; }
7216 if test "${gl_cv_cc_nomfi_needed+set}" = set; then :
7217 $as_echo_n "(cached) " >&6
7220 gl_save_CFLAGS
="$CFLAGS"
7221 CFLAGS
="$CFLAGS -W -Werror"
7222 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
7223 /* end confdefs.h. */
7226 typedef struct { int a; int b; } s_t;
7238 if ac_fn_c_try_compile
"$LINENO"; then :
7239 gl_cv_cc_nomfi_needed
=no
7241 gl_cv_cc_nomfi_needed
=yes
7243 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
7244 CFLAGS
="$gl_save_CFLAGS"
7248 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_cc_nomfi_needed" >&5
7249 $as_echo "$gl_cv_cc_nomfi_needed" >&6; }
7254 for gl_manywarn_item
in \
7258 -Wformat-nonliteral \
7261 -Wmissing-include-dirs \
7271 -Wtraditional-conversion \
7272 -Wdeclaration-after-statement \
7275 -Wunsafe-loop-optimizations \
7277 -Wbad-function-cast \
7285 -Waggregate-return \
7286 -Wstrict-prototypes \
7287 -Wold-style-definition \
7288 -Wmissing-prototypes \
7289 -Wmissing-declarations \
7290 -Wmissing-noreturn \
7291 -Wmissing-format-attribute \
7296 -Wunreachable-code \
7301 -Wvolatile-register-var \
7302 -Wdisabled-optimization \
7304 -Woverlength-strings \
7305 -Wbuiltin-macro-redefined \
7307 -Wpacked-bitfield-compat \
7310 gl_manywarn_set
="$gl_manywarn_set $gl_manywarn_item"
7312 # The following are not documented in the manual but are included in
7313 # output from gcc --help=warnings.
7314 for gl_manywarn_item
in \
7316 -Wcoverage-mismatch \
7320 gl_manywarn_set
="$gl_manywarn_set $gl_manywarn_item"
7322 # More warnings from gcc 4.6.2 --help=warnings.
7323 for gl_manywarn_item
in \
7327 -Wdeprecated-declarations \
7329 -Wdouble-promotion \
7332 -Wformat-contains-nul \
7333 -Wformat-extra-args \
7334 -Wformat-zero-length \
7339 -Wpointer-to-int-cast \
7341 -Wsuggest-attribute=const \
7342 -Wsuggest-attribute=noreturn \
7343 -Wsuggest-attribute=pure \
7346 gl_manywarn_set
="$gl_manywarn_set $gl_manywarn_item"
7349 # Disable the missing-field-initializers warning if needed
7350 if test "$gl_cv_cc_nomfi_needed" = yes; then
7351 gl_manywarn_set
="$gl_manywarn_set -Wno-missing-field-initializers"
7362 *" $gl_warn_item "*)
7365 gl_warn_set
="$gl_warn_set $gl_warn_item"
7372 as_gl_Warn
=`$as_echo "gl_cv_warn_c_$w" | $as_tr_sh`
7373 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether C compiler handles $w" >&5
7374 $as_echo_n "checking whether C compiler handles $w... " >&6; }
7375 if { as_var
=$as_gl_Warn; eval "test \"\${$as_var+set}\" = set"; }; then :
7376 $as_echo_n "(cached) " >&6
7379 gl_save_compiler_FLAGS
="$CFLAGS"
7381 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
7382 /* end confdefs.h. */
7392 if ac_fn_c_try_compile
"$LINENO"; then :
7393 eval "$as_gl_Warn=yes"
7395 eval "$as_gl_Warn=no"
7397 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
7398 CFLAGS
="$gl_save_compiler_FLAGS"
7401 eval ac_res
=\$
$as_gl_Warn
7402 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
7403 $as_echo "$ac_res" >&6; }
7404 eval as_val
=\$
$as_gl_Warn
7405 if test "x$as_val" = x
""yes; then :
7406 as_fn_append WARN_CFLAGS
" $w"
7410 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether C compiler handles -Wno-missing-field-initializers" >&5
7411 $as_echo_n "checking whether C compiler handles -Wno-missing-field-initializers... " >&6; }
7412 if test "${gl_cv_warn_c__Wno_missing_field_initializers+set}" = set; then :
7413 $as_echo_n "(cached) " >&6
7416 gl_save_compiler_FLAGS
="$CFLAGS"
7417 CFLAGS
="$CFLAGS -Wno-missing-field-initializers"
7418 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
7419 /* end confdefs.h. */
7429 if ac_fn_c_try_compile
"$LINENO"; then :
7430 gl_cv_warn_c__Wno_missing_field_initializers
=yes
7432 gl_cv_warn_c__Wno_missing_field_initializers
=no
7434 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
7435 CFLAGS
="$gl_save_compiler_FLAGS"
7438 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_warn_c__Wno_missing_field_initializers" >&5
7439 $as_echo "$gl_cv_warn_c__Wno_missing_field_initializers" >&6; }
7440 if test "x$gl_cv_warn_c__Wno_missing_field_initializers" = x
""yes; then :
7441 as_fn_append WARN_CFLAGS
" -Wno-missing-field-initializers"
7444 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether C compiler handles -Wno-sign-compare" >&5
7445 $as_echo_n "checking whether C compiler handles -Wno-sign-compare... " >&6; }
7446 if test "${gl_cv_warn_c__Wno_sign_compare+set}" = set; then :
7447 $as_echo_n "(cached) " >&6
7450 gl_save_compiler_FLAGS
="$CFLAGS"
7451 CFLAGS
="$CFLAGS -Wno-sign-compare"
7452 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
7453 /* end confdefs.h. */
7463 if ac_fn_c_try_compile
"$LINENO"; then :
7464 gl_cv_warn_c__Wno_sign_compare
=yes
7466 gl_cv_warn_c__Wno_sign_compare
=no
7468 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
7469 CFLAGS
="$gl_save_compiler_FLAGS"
7472 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_warn_c__Wno_sign_compare" >&5
7473 $as_echo "$gl_cv_warn_c__Wno_sign_compare" >&6; }
7474 if test "x$gl_cv_warn_c__Wno_sign_compare" = x
""yes; then :
7475 as_fn_append WARN_CFLAGS
" -Wno-sign-compare"
7477 # Too many warnings for now
7478 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether C compiler handles -Wno-type-limits" >&5
7479 $as_echo_n "checking whether C compiler handles -Wno-type-limits... " >&6; }
7480 if test "${gl_cv_warn_c__Wno_type_limits+set}" = set; then :
7481 $as_echo_n "(cached) " >&6
7484 gl_save_compiler_FLAGS
="$CFLAGS"
7485 CFLAGS
="$CFLAGS -Wno-type-limits"
7486 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
7487 /* end confdefs.h. */
7497 if ac_fn_c_try_compile
"$LINENO"; then :
7498 gl_cv_warn_c__Wno_type_limits
=yes
7500 gl_cv_warn_c__Wno_type_limits
=no
7502 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
7503 CFLAGS
="$gl_save_compiler_FLAGS"
7506 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_warn_c__Wno_type_limits" >&5
7507 $as_echo "$gl_cv_warn_c__Wno_type_limits" >&6; }
7508 if test "x$gl_cv_warn_c__Wno_type_limits" = x
""yes; then :
7509 as_fn_append WARN_CFLAGS
" -Wno-type-limits"
7511 # Too many warnings for now
7512 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether C compiler handles -Wno-switch" >&5
7513 $as_echo_n "checking whether C compiler handles -Wno-switch... " >&6; }
7514 if test "${gl_cv_warn_c__Wno_switch+set}" = set; then :
7515 $as_echo_n "(cached) " >&6
7518 gl_save_compiler_FLAGS
="$CFLAGS"
7519 CFLAGS
="$CFLAGS -Wno-switch"
7520 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
7521 /* end confdefs.h. */
7531 if ac_fn_c_try_compile
"$LINENO"; then :
7532 gl_cv_warn_c__Wno_switch
=yes
7534 gl_cv_warn_c__Wno_switch
=no
7536 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
7537 CFLAGS
="$gl_save_compiler_FLAGS"
7540 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_warn_c__Wno_switch" >&5
7541 $as_echo "$gl_cv_warn_c__Wno_switch" >&6; }
7542 if test "x$gl_cv_warn_c__Wno_switch" = x
""yes; then :
7543 as_fn_append WARN_CFLAGS
" -Wno-switch"
7545 # Too many warnings for now
7546 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether C compiler handles -Wno-unused-parameter" >&5
7547 $as_echo_n "checking whether C compiler handles -Wno-unused-parameter... " >&6; }
7548 if test "${gl_cv_warn_c__Wno_unused_parameter+set}" = set; then :
7549 $as_echo_n "(cached) " >&6
7552 gl_save_compiler_FLAGS
="$CFLAGS"
7553 CFLAGS
="$CFLAGS -Wno-unused-parameter"
7554 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
7555 /* end confdefs.h. */
7565 if ac_fn_c_try_compile
"$LINENO"; then :
7566 gl_cv_warn_c__Wno_unused_parameter
=yes
7568 gl_cv_warn_c__Wno_unused_parameter
=no
7570 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
7571 CFLAGS
="$gl_save_compiler_FLAGS"
7574 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_warn_c__Wno_unused_parameter" >&5
7575 $as_echo "$gl_cv_warn_c__Wno_unused_parameter" >&6; }
7576 if test "x$gl_cv_warn_c__Wno_unused_parameter" = x
""yes; then :
7577 as_fn_append WARN_CFLAGS
" -Wno-unused-parameter"
7579 # Too many warnings for now
7580 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether C compiler handles -Wno-format-nonliteral" >&5
7581 $as_echo_n "checking whether C compiler handles -Wno-format-nonliteral... " >&6; }
7582 if test "${gl_cv_warn_c__Wno_format_nonliteral+set}" = set; then :
7583 $as_echo_n "(cached) " >&6
7586 gl_save_compiler_FLAGS
="$CFLAGS"
7587 CFLAGS
="$CFLAGS -Wno-format-nonliteral"
7588 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
7589 /* end confdefs.h. */
7599 if ac_fn_c_try_compile
"$LINENO"; then :
7600 gl_cv_warn_c__Wno_format_nonliteral
=yes
7602 gl_cv_warn_c__Wno_format_nonliteral
=no
7604 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
7605 CFLAGS
="$gl_save_compiler_FLAGS"
7608 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_warn_c__Wno_format_nonliteral" >&5
7609 $as_echo "$gl_cv_warn_c__Wno_format_nonliteral" >&6; }
7610 if test "x$gl_cv_warn_c__Wno_format_nonliteral" = x
""yes; then :
7611 as_fn_append WARN_CFLAGS
" -Wno-format-nonliteral"
7615 # In spite of excluding -Wlogical-op above, it is enabled, as of
7616 # gcc 4.5.0 20090517.
7617 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether C compiler handles -Wno-logical-op" >&5
7618 $as_echo_n "checking whether C compiler handles -Wno-logical-op... " >&6; }
7619 if test "${gl_cv_warn_c__Wno_logical_op+set}" = set; then :
7620 $as_echo_n "(cached) " >&6
7623 gl_save_compiler_FLAGS
="$CFLAGS"
7624 CFLAGS
="$CFLAGS -Wno-logical-op"
7625 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
7626 /* end confdefs.h. */
7636 if ac_fn_c_try_compile
"$LINENO"; then :
7637 gl_cv_warn_c__Wno_logical_op
=yes
7639 gl_cv_warn_c__Wno_logical_op
=no
7641 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
7642 CFLAGS
="$gl_save_compiler_FLAGS"
7645 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_warn_c__Wno_logical_op" >&5
7646 $as_echo "$gl_cv_warn_c__Wno_logical_op" >&6; }
7647 if test "x$gl_cv_warn_c__Wno_logical_op" = x
""yes; then :
7648 as_fn_append WARN_CFLAGS
" -Wno-logical-op"
7652 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether C compiler handles -fdiagnostics-show-option" >&5
7653 $as_echo_n "checking whether C compiler handles -fdiagnostics-show-option... " >&6; }
7654 if test "${gl_cv_warn_c__fdiagnostics_show_option+set}" = set; then :
7655 $as_echo_n "(cached) " >&6
7658 gl_save_compiler_FLAGS
="$CFLAGS"
7659 CFLAGS
="$CFLAGS -fdiagnostics-show-option"
7660 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
7661 /* end confdefs.h. */
7671 if ac_fn_c_try_compile
"$LINENO"; then :
7672 gl_cv_warn_c__fdiagnostics_show_option
=yes
7674 gl_cv_warn_c__fdiagnostics_show_option
=no
7676 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
7677 CFLAGS
="$gl_save_compiler_FLAGS"
7680 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_warn_c__fdiagnostics_show_option" >&5
7681 $as_echo "$gl_cv_warn_c__fdiagnostics_show_option" >&6; }
7682 if test "x$gl_cv_warn_c__fdiagnostics_show_option" = x
""yes; then :
7683 as_fn_append WARN_CFLAGS
" -fdiagnostics-show-option"
7686 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether C compiler handles -funit-at-a-time" >&5
7687 $as_echo_n "checking whether C compiler handles -funit-at-a-time... " >&6; }
7688 if test "${gl_cv_warn_c__funit_at_a_time+set}" = set; then :
7689 $as_echo_n "(cached) " >&6
7692 gl_save_compiler_FLAGS
="$CFLAGS"
7693 CFLAGS
="$CFLAGS -funit-at-a-time"
7694 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
7695 /* end confdefs.h. */
7705 if ac_fn_c_try_compile
"$LINENO"; then :
7706 gl_cv_warn_c__funit_at_a_time
=yes
7708 gl_cv_warn_c__funit_at_a_time
=no
7710 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
7711 CFLAGS
="$gl_save_compiler_FLAGS"
7714 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_warn_c__funit_at_a_time" >&5
7715 $as_echo "$gl_cv_warn_c__funit_at_a_time" >&6; }
7716 if test "x$gl_cv_warn_c__funit_at_a_time" = x
""yes; then :
7717 as_fn_append WARN_CFLAGS
" -funit-at-a-time"
7722 $as_echo "#define lint 1" >>confdefs.h
7725 $as_echo "#define _FORTIFY_SOURCE 2" >>confdefs.h
7728 $as_echo "#define GNULIB_PORTCHECK 1" >>confdefs.h
7731 # We use a slightly smaller set of warning options for lib/.
7732 # Remove the following and save the result in GNULIB_WARN_CFLAGS.
7734 nw
="$nw -Wunused-macros"
7738 set x
$WARN_CFLAGS; shift
7742 *" $gl_warn_item "*)
7745 gl_warn_set
="$gl_warn_set $gl_warn_item"
7749 GNULIB_WARN_CFLAGS
=$gl_warn_set
7756 #### Some other nice autoconf tests.
7759 ac_cpp
='$CPP $CPPFLAGS'
7760 ac_compile
='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7761 ac_link
='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7762 ac_compiler_gnu
=$ac_cv_c_compiler_gnu
7763 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
7764 $as_echo_n "checking how to run the C preprocessor... " >&6; }
7765 # On Suns, sometimes $CPP names a directory.
7766 if test -n "$CPP" && test -d "$CPP"; then
7769 if test -z "$CPP"; then
7770 if test "${ac_cv_prog_CPP+set}" = set; then :
7771 $as_echo_n "(cached) " >&6
7773 # Double quotes because CPP needs to be expanded
7774 for CPP
in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
7777 for ac_c_preproc_warn_flag
in '' yes
7779 # Use a header file that comes with gcc, so configuring glibc
7780 # with a fresh cross-compiler works.
7781 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
7782 # <limits.h> exists even on freestanding compilers.
7783 # On the NeXT, cc -E runs the code through the compiler's parser,
7784 # not just through cpp. "Syntax error" is here to catch this case.
7785 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
7786 /* end confdefs.h. */
7788 # include <limits.h>
7790 # include <assert.h>
7794 if ac_fn_c_try_cpp
"$LINENO"; then :
7797 # Broken: fails on valid input.
7800 rm -f conftest.err conftest.
$ac_ext
7802 # OK, works on sane cases. Now check whether nonexistent headers
7803 # can be detected and how.
7804 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
7805 /* end confdefs.h. */
7806 #include <ac_nonexistent.h>
7808 if ac_fn_c_try_cpp
"$LINENO"; then :
7809 # Broken: success on invalid input.
7812 # Passes both tests.
7816 rm -f conftest.err conftest.
$ac_ext
7819 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
7820 rm -f conftest.err conftest.
$ac_ext
7821 if $ac_preproc_ok; then :
7833 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
7834 $as_echo "$CPP" >&6; }
7836 for ac_c_preproc_warn_flag
in '' yes
7838 # Use a header file that comes with gcc, so configuring glibc
7839 # with a fresh cross-compiler works.
7840 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
7841 # <limits.h> exists even on freestanding compilers.
7842 # On the NeXT, cc -E runs the code through the compiler's parser,
7843 # not just through cpp. "Syntax error" is here to catch this case.
7844 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
7845 /* end confdefs.h. */
7847 # include <limits.h>
7849 # include <assert.h>
7853 if ac_fn_c_try_cpp
"$LINENO"; then :
7856 # Broken: fails on valid input.
7859 rm -f conftest.err conftest.
$ac_ext
7861 # OK, works on sane cases. Now check whether nonexistent headers
7862 # can be detected and how.
7863 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
7864 /* end confdefs.h. */
7865 #include <ac_nonexistent.h>
7867 if ac_fn_c_try_cpp
"$LINENO"; then :
7868 # Broken: success on invalid input.
7871 # Passes both tests.
7875 rm -f conftest.err conftest.
$ac_ext
7878 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
7879 rm -f conftest.err conftest.
$ac_ext
7880 if $ac_preproc_ok; then :
7883 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
7884 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
7885 as_fn_error
"C preprocessor \"$CPP\" fails sanity check
7886 See \`config.log' for more details." "$LINENO" 5; }
7890 ac_cpp
='$CPP $CPPFLAGS'
7891 ac_compile
='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7892 ac_link
='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7893 ac_compiler_gnu
=$ac_cv_c_compiler_gnu
7896 if test "x$RANLIB" = x
; then
7897 if test -n "$ac_tool_prefix"; then
7898 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
7899 set dummy
${ac_tool_prefix}ranlib
; ac_word
=$2
7900 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7901 $as_echo_n "checking for $ac_word... " >&6; }
7902 if test "${ac_cv_prog_RANLIB+set}" = set; then :
7903 $as_echo_n "(cached) " >&6
7905 if test -n "$RANLIB"; then
7906 ac_cv_prog_RANLIB
="$RANLIB" # Let the user override the test.
7908 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
7912 test -z "$as_dir" && as_dir
=.
7913 for ac_exec_ext
in '' $ac_executable_extensions; do
7914 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7915 ac_cv_prog_RANLIB
="${ac_tool_prefix}ranlib"
7916 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7925 RANLIB
=$ac_cv_prog_RANLIB
7926 if test -n "$RANLIB"; then
7927 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
7928 $as_echo "$RANLIB" >&6; }
7930 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7931 $as_echo "no" >&6; }
7936 if test -z "$ac_cv_prog_RANLIB"; then
7937 ac_ct_RANLIB
=$RANLIB
7938 # Extract the first word of "ranlib", so it can be a program name with args.
7939 set dummy ranlib
; ac_word
=$2
7940 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7941 $as_echo_n "checking for $ac_word... " >&6; }
7942 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then :
7943 $as_echo_n "(cached) " >&6
7945 if test -n "$ac_ct_RANLIB"; then
7946 ac_cv_prog_ac_ct_RANLIB
="$ac_ct_RANLIB" # Let the user override the test.
7948 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
7952 test -z "$as_dir" && as_dir
=.
7953 for ac_exec_ext
in '' $ac_executable_extensions; do
7954 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7955 ac_cv_prog_ac_ct_RANLIB
="ranlib"
7956 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7965 ac_ct_RANLIB
=$ac_cv_prog_ac_ct_RANLIB
7966 if test -n "$ac_ct_RANLIB"; then
7967 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
7968 $as_echo "$ac_ct_RANLIB" >&6; }
7970 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7971 $as_echo "no" >&6; }
7974 if test "x$ac_ct_RANLIB" = x
; then
7977 case $cross_compiling:$ac_tool_warned in
7979 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7980 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7981 ac_tool_warned
=yes ;;
7983 RANLIB
=$ac_ct_RANLIB
7986 RANLIB
="$ac_cv_prog_RANLIB"
7991 ## Although we're running on an amd64 kernel, we're actually compiling for
7992 ## the x86 architecture. The user should probably have provided an
7993 ## explicit --build to `configure', but if everything else than the kernel
7994 ## is running in i386 mode, we can help them out.
7995 if test "$machine" = "amdx86-64"; then
7996 ac_fn_c_check_decl
"$LINENO" "i386" "ac_cv_have_decl_i386" "$ac_includes_default"
7997 if test "x$ac_cv_have_decl_i386" = x
""yes; then :
8001 if test "$ac_cv_have_decl_i386" = "yes"; then
8002 canonical
=`echo "$canonical" | sed -e 's/^amd64/i386/' -e 's/^x86_64/i386/'`
8004 machfile
="m/${machine}.h"
8008 # Extract the first word of "install-info", so it can be a program name with args.
8009 set dummy install-info
; ac_word
=$2
8010 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8011 $as_echo_n "checking for $ac_word... " >&6; }
8012 if test "${ac_cv_path_INSTALL_INFO+set}" = set; then :
8013 $as_echo_n "(cached) " >&6
8015 case $INSTALL_INFO in
8017 ac_cv_path_INSTALL_INFO
="$INSTALL_INFO" # Let the user override the test with a path.
8020 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
8024 test -z "$as_dir" && as_dir
=.
8025 for ac_exec_ext
in '' $ac_executable_extensions; do
8026 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8027 ac_cv_path_INSTALL_INFO
="$as_dir/$ac_word$ac_exec_ext"
8028 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8038 INSTALL_INFO
=$ac_cv_path_INSTALL_INFO
8039 if test -n "$INSTALL_INFO"; then
8040 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL_INFO" >&5
8041 $as_echo "$INSTALL_INFO" >&6; }
8043 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8044 $as_echo "no" >&6; }
8048 # Extract the first word of "install-info", so it can be a program name with args.
8049 set dummy install-info
; ac_word
=$2
8050 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8051 $as_echo_n "checking for $ac_word... " >&6; }
8052 if test "${ac_cv_path_INSTALL_INFO+set}" = set; then :
8053 $as_echo_n "(cached) " >&6
8055 case $INSTALL_INFO in
8057 ac_cv_path_INSTALL_INFO
="$INSTALL_INFO" # Let the user override the test with a path.
8060 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
8061 for as_dir
in /usr
/sbin
8064 test -z "$as_dir" && as_dir
=.
8065 for ac_exec_ext
in '' $ac_executable_extensions; do
8066 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8067 ac_cv_path_INSTALL_INFO
="$as_dir/$ac_word$ac_exec_ext"
8068 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8078 INSTALL_INFO
=$ac_cv_path_INSTALL_INFO
8079 if test -n "$INSTALL_INFO"; then
8080 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL_INFO" >&5
8081 $as_echo "$INSTALL_INFO" >&6; }
8083 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8084 $as_echo "no" >&6; }
8088 # Extract the first word of "install-info", so it can be a program name with args.
8089 set dummy install-info
; ac_word
=$2
8090 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8091 $as_echo_n "checking for $ac_word... " >&6; }
8092 if test "${ac_cv_path_INSTALL_INFO+set}" = set; then :
8093 $as_echo_n "(cached) " >&6
8095 case $INSTALL_INFO in
8097 ac_cv_path_INSTALL_INFO
="$INSTALL_INFO" # Let the user override the test with a path.
8100 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
8104 test -z "$as_dir" && as_dir
=.
8105 for ac_exec_ext
in '' $ac_executable_extensions; do
8106 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8107 ac_cv_path_INSTALL_INFO
="$as_dir/$ac_word$ac_exec_ext"
8108 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8115 test -z "$ac_cv_path_INSTALL_INFO" && ac_cv_path_INSTALL_INFO
=":"
8119 INSTALL_INFO
=$ac_cv_path_INSTALL_INFO
8120 if test -n "$INSTALL_INFO"; then
8121 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL_INFO" >&5
8122 $as_echo "$INSTALL_INFO" >&6; }
8124 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8125 $as_echo "no" >&6; }
8129 # Extract the first word of "gzip", so it can be a program name with args.
8130 set dummy
gzip; ac_word
=$2
8131 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8132 $as_echo_n "checking for $ac_word... " >&6; }
8133 if test "${ac_cv_path_GZIP_PROG+set}" = set; then :
8134 $as_echo_n "(cached) " >&6
8138 ac_cv_path_GZIP_PROG
="$GZIP_PROG" # Let the user override the test with a path.
8141 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
8145 test -z "$as_dir" && as_dir
=.
8146 for ac_exec_ext
in '' $ac_executable_extensions; do
8147 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8148 ac_cv_path_GZIP_PROG
="$as_dir/$ac_word$ac_exec_ext"
8149 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8159 GZIP_PROG
=$ac_cv_path_GZIP_PROG
8160 if test -n "$GZIP_PROG"; then
8161 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GZIP_PROG" >&5
8162 $as_echo "$GZIP_PROG" >&6; }
8164 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8165 $as_echo "no" >&6; }
8171 ## Need makeinfo >= 4.7 (?) to build the manuals.
8172 # Extract the first word of "makeinfo", so it can be a program name with args.
8173 set dummy makeinfo
; ac_word
=$2
8174 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8175 $as_echo_n "checking for $ac_word... " >&6; }
8176 if test "${ac_cv_path_MAKEINFO+set}" = set; then :
8177 $as_echo_n "(cached) " >&6
8181 ac_cv_path_MAKEINFO
="$MAKEINFO" # Let the user override the test with a path.
8184 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
8188 test -z "$as_dir" && as_dir
=.
8189 for ac_exec_ext
in '' $ac_executable_extensions; do
8190 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8191 ac_cv_path_MAKEINFO
="$as_dir/$ac_word$ac_exec_ext"
8192 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8199 test -z "$ac_cv_path_MAKEINFO" && ac_cv_path_MAKEINFO
="no"
8203 MAKEINFO
=$ac_cv_path_MAKEINFO
8204 if test -n "$MAKEINFO"; then
8205 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAKEINFO" >&5
8206 $as_echo "$MAKEINFO" >&6; }
8208 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8209 $as_echo "no" >&6; }
8213 if test "$MAKEINFO" != "no" && \
8214 test x
"`$MAKEINFO --version 2> /dev/null | $EGREP 'texinfo[^0-9]*([1-4][0-9]+|[5-9]|4\.[7-9]|4\.[1-6][0-9]+)'`" = x
; then
8218 ## Makeinfo is unusual. For a released Emacs, the manuals are
8219 ## pre-built, and not deleted by the normal clean rules. makeinfo is
8220 ## therefore in the category of "special tools" not normally required, which
8221 ## configure does not have to check for (eg autoconf itself).
8222 ## In a Bazaar checkout on the other hand, the manuals are not included.
8223 ## So makeinfo is a requirement to build from Bazaar, and configure
8224 ## should test for it as it does for any other build requirement.
8225 ## We use the presence of $srcdir/info/emacs to distinguish a release,
8226 ## with pre-built manuals, from a Bazaar checkout.
8229 if test "$MAKEINFO" = "no"; then
8231 if test "x${with_makeinfo}" = "xno"; then
8233 elif test ! -e $srcdir/info
/emacs
; then
8234 as_fn_error
"You do not seem to have makeinfo >= 4.7, and your
8235 source tree does not seem to have pre-built manuals in the \`info' directory.
8236 Either install a suitable version of makeinfo, or re-run configure
8237 with the \`--without-makeinfo' option to build without the manuals. " "$LINENO" 5
8243 if test x
$GCC = xyes
; then
8244 test "x$GCC_LINK_TEST_OPTIONS" != x
&& \
8245 ac_link
="$ac_link $GCC_LINK_TEST_OPTIONS"
8247 test "x$NON_GCC_LINK_TEST_OPTIONS" != x
&& \
8248 ac_link
="$ac_link $NON_GCC_LINK_TEST_OPTIONS"
8252 late_LDFLAGS
=$LDFLAGS
8253 if test x
$GCC = xyes
; then
8254 LDFLAGS
="$LDFLAGS -Wl,-znocombreloc"
8256 LDFLAGS
="$LDFLAGS -znocombreloc"
8259 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -znocombreloc" >&5
8260 $as_echo_n "checking for -znocombreloc... " >&6; }
8261 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
8262 /* end confdefs.h. */
8272 if ac_fn_c_try_link
"$LINENO"; then :
8273 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
8274 $as_echo "yes" >&6; }
8276 LDFLAGS
=$late_LDFLAGS
8277 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8278 $as_echo "no" >&6; }
8280 rm -f core conftest.err conftest.
$ac_objext \
8281 conftest
$ac_exeext conftest.
$ac_ext
8284 # The value of CPP is a quoted variable reference, so we need to do this
8285 # to get its actual value...
8286 CPP
=`eval "echo $CPP"`
8289 test "x$CANNOT_DUMP" = "x" && CANNOT_DUMP
=no
8291 your-opsys-here
) CANNOT_DUMP
=yes ;;
8294 test "$CANNOT_DUMP" = "yes" && \
8296 $as_echo "#define CANNOT_DUMP 1" >>confdefs.h
8302 UNEXEC_OBJ
=unexelf.o
8304 # MSDOS uses unexcoff.o
8305 # MSWindows uses unexw32.o
8307 UNEXEC_OBJ
=unexaix.o
8313 UNEXEC_OBJ
=unexmacosx.o
8316 UNEXEC_OBJ
=unexhp9k800.o
8319 # Use the Solaris dldump() function, called from unexsol.c, to dump
8320 # emacs, instead of the generic ELF dump code found in unexelf.c.
8321 # The resulting binary has a complete symbol table, and is better
8322 # for debugging and other observability tools (debuggers, pstack, etc).
8324 # If you encounter a problem using dldump(), please consider sending
8325 # a message to the OpenSolaris tools-linking mailing list:
8326 # http://mail.opensolaris.org/mailman/listinfo/tools-linking
8328 # It is likely that dldump() works with older Solaris too, but this has
8329 # not been tested, so for now this change is for Solaris 10 or newer.
8330 UNEXEC_OBJ
=unexsol.o
8337 ## Let `ld' find image libs and similar things in /usr/local/lib.
8338 ## The system compiler, GCC, has apparently been modified to not
8339 ## look there, contrary to what a stock GCC would do.
8340 LD_SWITCH_SYSTEM
=-L/usr
/local
/lib
8344 ## cpp test was "ifdef __mips__", but presumably this is equivalent...
8345 case $host_cpu in mips
*) LD_SWITCH_SYSTEM
="-G 0";; esac
8349 LD_SWITCH_SYSTEM
="-Wl,-rpath,/usr/pkg/lib -L/usr/pkg/lib -Wl,-rpath,/usr/local/lib -L/usr/local/lib"
8353 ## Han Boetes <han@mijncomputer.nl> says this is necessary,
8354 ## otherwise Emacs dumps core on elf systems.
8355 LD_SWITCH_SYSTEM
="-Z"
8360 ac_link
="$ac_link $LD_SWITCH_SYSTEM"
8362 ## This setting of LD_SWITCH_SYSTEM references LD_SWITCH_X_SITE_AUX,
8363 ## which has not been defined yet. When this was handled with cpp,
8364 ## it was expanded to null when configure sourced the s/*.h file.
8365 ## Thus LD_SWITCH_SYSTEM had different values in configure and the Makefiles.
8366 ## FIXME it would be cleaner to put this in LD_SWITCH_SYSTEM_TEMACS
8367 ## (or somesuch), but because it is supposed to go at the _front_
8368 ## of LD_SWITCH_SYSTEM, we cannot do that in exactly the same way.
8369 ## Compare with the gnu-linux case below, which added to the end
8370 ## of LD_SWITCH_SYSTEM, and so can instead go at the front of
8371 ## LD_SWITCH_SYSTEM_TEMACS.
8374 ## _AUX_RPATH is like _AUX, but uses -rpath instead of -R.
8375 LD_SWITCH_SYSTEM
="\$(LD_SWITCH_X_SITE_AUX_RPATH) $LD_SWITCH_SYSTEM" ;;
8380 if test "$machine" = "alpha"; then
8381 ac_fn_c_check_decl
"$LINENO" "__ELF__" "ac_cv_have_decl___ELF__" "$ac_includes_default"
8382 if test "x$ac_cv_have_decl___ELF__" = x
""yes; then :
8386 if test "$ac_cv_have_decl___ELF__" = "yes"; then
8387 ## With ELF, make sure that all common symbols get allocated to in the
8388 ## data section. Otherwise, the dump of temacs may miss variables in
8389 ## the shared library that have been initialized. For example, with
8390 ## GNU libc, __malloc_initialized would normally be resolved to the
8391 ## shared library's .bss section, which is fatal.
8392 if test "x$GCC" = "xyes"; then
8393 C_SWITCH_MACHINE
="-fno-common"
8395 as_fn_error
"What gives? Fix me if DEC Unix supports ELF now." "$LINENO" 5
8398 UNEXEC_OBJ
=unexalpha.o
8406 ## Some programs in src produce warnings saying certain subprograms
8407 ## are too complex and need a MAXMEM value greater than 2000 for
8408 ## additional optimization. --nils@exp-math.uni-essen.de
8409 test "$opsys" = "aix4.2" && test "x$GCC" != "xyes" && \
8410 C_SWITCH_SYSTEM
="-ma -qmaxmem=4000"
8411 ## gnu-linux might need -D_BSD_SOURCE on old libc5 systems.
8412 ## It is redundant in glibc2, since we define _GNU_SOURCE.
8418 ## IBM's X11R5 uses -lIM and -liconv in AIX 3.2.2.
8419 aix4-2
) LIBS_SYSTEM
="-lrts -lIM -liconv" ;;
8421 freebsd
) LIBS_SYSTEM
="-lutil" ;;
8423 hpux
*) LIBS_SYSTEM
="-l:libdld.sl" ;;
8425 sol2
*) LIBS_SYSTEM
="-lsocket -lnsl" ;;
8427 ## Motif needs -lgen.
8428 unixware
) LIBS_SYSTEM
="-lsocket -lnsl -lelf -lgen" ;;
8433 ### Make sure subsequent tests use flags consistent with the build flags.
8435 if test x
"${OVERRIDE_CPPFLAGS}" != x
; then
8436 CPPFLAGS
="${OVERRIDE_CPPFLAGS}"
8438 CPPFLAGS
="$C_SWITCH_SYSTEM $C_SWITCH_MACHINE $CPPFLAGS"
8441 # Suppress obsolescent Autoconf test for size_t; Emacs assumes C89 or better.
8443 # Likewise for obsolescent test for uid_t, gid_t; Emacs assumes them.
8446 # Check whether --enable-largefile was given.
8447 if test "${enable_largefile+set}" = set; then :
8448 enableval
=$enable_largefile;
8451 if test "$enable_largefile" != no
; then
8453 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for special C compiler options needed for large files" >&5
8454 $as_echo_n "checking for special C compiler options needed for large files... " >&6; }
8455 if test "${ac_cv_sys_largefile_CC+set}" = set; then :
8456 $as_echo_n "(cached) " >&6
8458 ac_cv_sys_largefile_CC
=no
8459 if test "$GCC" != yes; then
8462 # IRIX 6.2 and later do not support large files by default,
8463 # so use the C compiler's -n32 option if that helps.
8464 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
8465 /* end confdefs.h. */
8466 #include <sys/types.h>
8467 /* Check that off_t can represent 2**63 - 1 correctly.
8468 We can't simply define LARGE_OFF_T to be 9223372036854775807,
8469 since some C++ compilers masquerading as C compilers
8470 incorrectly reject 9223372036854775807. */
8471 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
8472 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
8473 && LARGE_OFF_T % 2147483647 == 1)
8483 if ac_fn_c_try_compile
"$LINENO"; then :
8486 rm -f core conftest.err conftest.
$ac_objext
8488 if ac_fn_c_try_compile
"$LINENO"; then :
8489 ac_cv_sys_largefile_CC
=' -n32'; break
8491 rm -f core conftest.err conftest.
$ac_objext
8495 rm -f conftest.
$ac_ext
8498 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_largefile_CC" >&5
8499 $as_echo "$ac_cv_sys_largefile_CC" >&6; }
8500 if test "$ac_cv_sys_largefile_CC" != no
; then
8501 CC
=$CC$ac_cv_sys_largefile_CC
8504 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _FILE_OFFSET_BITS value needed for large files" >&5
8505 $as_echo_n "checking for _FILE_OFFSET_BITS value needed for large files... " >&6; }
8506 if test "${ac_cv_sys_file_offset_bits+set}" = set; then :
8507 $as_echo_n "(cached) " >&6
8510 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
8511 /* end confdefs.h. */
8512 #include <sys/types.h>
8513 /* Check that off_t can represent 2**63 - 1 correctly.
8514 We can't simply define LARGE_OFF_T to be 9223372036854775807,
8515 since some C++ compilers masquerading as C compilers
8516 incorrectly reject 9223372036854775807. */
8517 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
8518 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
8519 && LARGE_OFF_T % 2147483647 == 1)
8529 if ac_fn_c_try_compile
"$LINENO"; then :
8530 ac_cv_sys_file_offset_bits
=no
; break
8532 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
8533 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
8534 /* end confdefs.h. */
8535 #define _FILE_OFFSET_BITS 64
8536 #include <sys/types.h>
8537 /* Check that off_t can represent 2**63 - 1 correctly.
8538 We can't simply define LARGE_OFF_T to be 9223372036854775807,
8539 since some C++ compilers masquerading as C compilers
8540 incorrectly reject 9223372036854775807. */
8541 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
8542 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
8543 && LARGE_OFF_T % 2147483647 == 1)
8553 if ac_fn_c_try_compile
"$LINENO"; then :
8554 ac_cv_sys_file_offset_bits
=64; break
8556 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
8557 ac_cv_sys_file_offset_bits
=unknown
8561 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_file_offset_bits" >&5
8562 $as_echo "$ac_cv_sys_file_offset_bits" >&6; }
8563 case $ac_cv_sys_file_offset_bits in #(
8566 cat >>confdefs.h
<<_ACEOF
8567 #define _FILE_OFFSET_BITS $ac_cv_sys_file_offset_bits
8572 if test $ac_cv_sys_file_offset_bits = unknown
; then
8573 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _LARGE_FILES value needed for large files" >&5
8574 $as_echo_n "checking for _LARGE_FILES value needed for large files... " >&6; }
8575 if test "${ac_cv_sys_large_files+set}" = set; then :
8576 $as_echo_n "(cached) " >&6
8579 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
8580 /* end confdefs.h. */
8581 #include <sys/types.h>
8582 /* Check that off_t can represent 2**63 - 1 correctly.
8583 We can't simply define LARGE_OFF_T to be 9223372036854775807,
8584 since some C++ compilers masquerading as C compilers
8585 incorrectly reject 9223372036854775807. */
8586 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
8587 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
8588 && LARGE_OFF_T % 2147483647 == 1)
8598 if ac_fn_c_try_compile
"$LINENO"; then :
8599 ac_cv_sys_large_files
=no
; break
8601 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
8602 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
8603 /* end confdefs.h. */
8604 #define _LARGE_FILES 1
8605 #include <sys/types.h>
8606 /* Check that off_t can represent 2**63 - 1 correctly.
8607 We can't simply define LARGE_OFF_T to be 9223372036854775807,
8608 since some C++ compilers masquerading as C compilers
8609 incorrectly reject 9223372036854775807. */
8610 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
8611 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
8612 && LARGE_OFF_T % 2147483647 == 1)
8622 if ac_fn_c_try_compile
"$LINENO"; then :
8623 ac_cv_sys_large_files
=1; break
8625 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
8626 ac_cv_sys_large_files
=unknown
8630 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_large_files" >&5
8631 $as_echo "$ac_cv_sys_large_files" >&6; }
8632 case $ac_cv_sys_large_files in #(
8635 cat >>confdefs.h
<<_ACEOF
8636 #define _LARGE_FILES $ac_cv_sys_large_files
8655 START_FILES
='pre-crt0.o'
8658 ## Adding -lm confuses the dynamic linker, so omit it.
8660 START_FILES
='pre-crt0.o'
8663 LIB_STANDARD
='-lgcc -lc -lgcc $(CRT_DIR)/crtend.o $(CRT_DIR)/crtn.o'
8664 START_FILES
='pre-crt0.o $(CRT_DIR)/crt1.o $(CRT_DIR)/crti.o $(CRT_DIR)/crtbegin.o'
8666 gnu-linux | gnu-kfreebsd
)
8667 LIB_STANDARD
='-lgcc -lc -lgcc $(CRT_DIR)/crtn.o'
8668 START_FILES
='pre-crt0.o $(CRT_DIR)/crt1.o $(CRT_DIR)/crti.o'
8670 hpux10-20 | hpux11
)
8672 START_FILES
='pre-crt0.o $(CRT_DIR)/crt0.o'
8675 LIB_STANDARD
='-lgcc -lc -lgcc $(CRT_DIR)/crtend.o'
8676 START_FILES
='pre-crt0.o $(CRT_DIR)/crt0.o $(CRT_DIR)/crtbegin.o'
8685 for file in x
$LIB_STANDARD $START_FILES; do
8687 *CRT_DIR
*) crt_files
="$crt_files `echo $file | sed -e 's|.*/||'`" ;;
8691 if test "x$crt_files" != x
; then
8693 ## If user specified a crt-dir, use that unconditionally.
8696 if test "X$CRT_DIR" = "X"; then
8698 CRT_DIR
=/usr
/lib
# default
8700 case "$canonical" in
8701 x86_64-
*-linux-gnu* | s390x-
*-linux-gnu*)
8702 ## On x86-64 and s390x GNU/Linux distributions, the standard library
8703 ## can be in a variety of places. We only try /usr/lib64 and /usr/lib.
8704 ## For anything else (eg /usr/lib32), it is up the user to specify
8705 ## the location (bug#5655).
8706 ## Test for crtn.o, not just the directory, because sometimes the
8707 ## directory exists but does not have the relevant files (bug#1287).
8708 ## FIXME better to test for binary compatibility somehow.
8709 test -e /usr
/lib64
/crtn.o
&& CRT_DIR
=/usr
/lib64
8712 powerpc64-
*-linux-gnu* | sparc64-
*-linux-gnu*) CRT_DIR
=/usr
/lib64
;;
8716 hpux10-20
) CRT_DIR
=/lib
;;
8719 test "x${GCC}" = xyes
&& crt_gcc
=yes
8725 for file in $crt_files; do
8727 ## If we're using gcc, try to determine it automatically by asking
8728 ## gcc. [If this doesn't work, CRT_DIR will remain at the
8729 ## system-dependent default from above.]
8730 if test $crt_gcc = yes && test ! -e $CRT_DIR/$file; then
8732 crt_file
=`$CC --print-file-name=$file 2>/dev/null`
8735 CRT_DIR
=`$as_dirname -- "$crt_file" ||
8736 $as_expr X"$crt_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
8737 X"$crt_file" : 'X\(//\)[^/]' \| \
8738 X"$crt_file" : 'X\(//\)$' \| \
8739 X"$crt_file" : 'X\(/\)' \| . 2>/dev/null ||
8740 $as_echo X"$crt_file" |
8741 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
8764 test -e $CRT_DIR/$file || crt_missing
="$crt_missing $file"
8767 test "x$crt_missing" = x || \
8768 as_fn_error
"Required file(s) not found:$crt_missing
8769 Try using the --with-crt-dir option." "$LINENO" 5
8771 fi # crt_files != ""
8777 if test -f $CRT_DIR/crti.o
; then
8779 test -f $CRT_DIR/crtn.o || \
8780 as_fn_error
"Required file not found: crtn.o" "$LINENO" 5
8782 LIB_STANDARD
='-lgcc -lc -lgcc $(CRT_DIR)/crtend.o $(CRT_DIR)/crtn.o'
8783 START_FILES
='pre-crt0.o $(CRT_DIR)/crt0.o $(CRT_DIR)/crti.o $(CRT_DIR)/crtbegin.o'
8792 if test "${with_sound}" != "no"; then
8793 # Sound support for GNU/Linux and the free BSDs.
8794 for ac_header
in machine
/soundcard.h sys
/soundcard.h soundcard.h
8796 as_ac_Header
=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
8797 ac_fn_c_check_header_mongrel
"$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
8798 eval as_val
=\$
$as_ac_Header
8799 if test "x$as_val" = x
""yes; then :
8800 cat >>confdefs.h
<<_ACEOF
8801 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
8803 have_sound_header
=yes
8808 # Emulation library used on NetBSD.
8809 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _oss_ioctl in -lossaudio" >&5
8810 $as_echo_n "checking for _oss_ioctl in -lossaudio... " >&6; }
8811 if test "${ac_cv_lib_ossaudio__oss_ioctl+set}" = set; then :
8812 $as_echo_n "(cached) " >&6
8814 ac_check_lib_save_LIBS
=$LIBS
8815 LIBS
="-lossaudio $LIBS"
8816 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
8817 /* end confdefs.h. */
8819 /* Override any GCC internal prototype to avoid an error.
8820 Use char because int might match the return type of a GCC
8821 builtin and then its argument prototype would still apply. */
8829 return _oss_ioctl ();
8834 if ac_fn_c_try_link
"$LINENO"; then :
8835 ac_cv_lib_ossaudio__oss_ioctl
=yes
8837 ac_cv_lib_ossaudio__oss_ioctl
=no
8839 rm -f core conftest.err conftest.
$ac_objext \
8840 conftest
$ac_exeext conftest.
$ac_ext
8841 LIBS
=$ac_check_lib_save_LIBS
8843 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_ossaudio__oss_ioctl" >&5
8844 $as_echo "$ac_cv_lib_ossaudio__oss_ioctl" >&6; }
8845 if test "x$ac_cv_lib_ossaudio__oss_ioctl" = x
""yes; then :
8854 ALSA_MODULES
="alsa >= $ALSA_REQUIRED"
8858 # Extract the first word of "pkg-config", so it can be a program name with args.
8859 set dummy pkg-config
; ac_word
=$2
8860 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8861 $as_echo_n "checking for $ac_word... " >&6; }
8862 if test "${ac_cv_path_PKG_CONFIG+set}" = set; then :
8863 $as_echo_n "(cached) " >&6
8867 ac_cv_path_PKG_CONFIG
="$PKG_CONFIG" # Let the user override the test with a path.
8870 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
8874 test -z "$as_dir" && as_dir
=.
8875 for ac_exec_ext
in '' $ac_executable_extensions; do
8876 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8877 ac_cv_path_PKG_CONFIG
="$as_dir/$ac_word$ac_exec_ext"
8878 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8885 test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG
="no"
8889 PKG_CONFIG
=$ac_cv_path_PKG_CONFIG
8890 if test -n "$PKG_CONFIG"; then
8891 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5
8892 $as_echo "$PKG_CONFIG" >&6; }
8894 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8895 $as_echo "no" >&6; }
8900 if test "$PKG_CONFIG" = "no" ; then
8903 PKG_CONFIG_MIN_VERSION
=0.9.0
8904 if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
8905 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ALSA_MODULES" >&5
8906 $as_echo_n "checking for $ALSA_MODULES... " >&6; }
8908 if $PKG_CONFIG --exists "$ALSA_MODULES" 2>&5 &&
8909 ALSA_CFLAGS
=`$PKG_CONFIG --cflags "$ALSA_MODULES" 2>&5` &&
8910 ALSA_LIBS
=`$PKG_CONFIG --libs "$ALSA_MODULES" 2>&5`; then
8917 ALSA_CFLAGS
=`$as_echo "$ALSA_CFLAGS" | sed -e "$edit_cflags"`
8918 ALSA_LIBS
=`$as_echo "$ALSA_LIBS" | sed -e 's,///*,/,g'`
8919 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes CFLAGS='$ALSA_CFLAGS' LIBS='$ALSA_LIBS'" >&5
8920 $as_echo "yes CFLAGS='$ALSA_CFLAGS' LIBS='$ALSA_LIBS'" >&6; }
8923 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8924 $as_echo "no" >&6; }
8927 ## If we have a custom action on failure, don't print errors, but
8928 ## do set a variable so people can do so.
8929 ALSA_PKG_ERRORS
=`$PKG_CONFIG --errors-to-stdout --print-errors "$ALSA_MODULES"`
8936 echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
8937 echo "*** See http://www.freedesktop.org/software/pkgconfig"
8941 if test $succeeded = yes; then
8947 if test $HAVE_ALSA = yes; then
8948 SAVE_CFLAGS
="$CFLAGS"
8950 CFLAGS
="$ALSA_CFLAGS $CFLAGS"
8951 LIBS
="$ALSA_LIBS $LIBS"
8952 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
8953 /* end confdefs.h. */
8954 #include <asoundlib.h>
8958 snd_lib_error_set_handler (0);
8963 if ac_fn_c_try_compile
"$LINENO"; then :
8964 emacs_alsa_normal
=yes
8966 emacs_alsa_normal
=no
8968 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
8969 if test "$emacs_alsa_normal" != yes; then
8970 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
8971 /* end confdefs.h. */
8972 #include <alsa/asoundlib.h>
8976 snd_lib_error_set_handler (0);
8981 if ac_fn_c_try_compile
"$LINENO"; then :
8982 emacs_alsa_subdir
=yes
8984 emacs_alsa_subdir
=no
8986 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
8987 if test "$emacs_alsa_subdir" != yes; then
8988 as_fn_error
"pkg-config found alsa, but it does not compile. See config.log for error messages." "$LINENO" 5
8990 ALSA_CFLAGS
="$ALSA_CFLAGS -DALSA_SUBDIR_INCLUDE"
8993 CFLAGS
="$SAVE_CFLAGS"
8995 LIBSOUND
="$LIBSOUND $ALSA_LIBS"
8996 CFLAGS_SOUND
="$CFLAGS_SOUND $ALSA_CFLAGS"
8998 $as_echo "#define HAVE_ALSA 1" >>confdefs.h
9002 if test x
$have_sound_header = xyes ||
test $HAVE_ALSA = yes; then
9004 gnu-linux|freebsd|netbsd
)
9006 $as_echo "#define HAVE_SOUND 1" >>confdefs.h
9015 for ac_header
in sys
/select.h sys
/time.h unistd.h utime.h \
9016 linux
/version.h sys
/systeminfo.h \
9017 stdio_ext.h fcntl.h coff.h pty.h sys
/mman.h \
9018 sys
/vlimit.h sys
/resource.h locale.h sys
/_mbstate_t.h \
9019 sys
/utsname.h
pwd.h utmp.h dirent.h util.h
9021 as_ac_Header
=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
9022 ac_fn_c_check_header_mongrel
"$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
9023 eval as_val
=\$
$as_ac_Header
9024 if test "x$as_val" = x
""yes; then :
9025 cat >>confdefs.h
<<_ACEOF
9026 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
9034 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if personality LINUX32 can be set" >&5
9035 $as_echo_n "checking if personality LINUX32 can be set... " >&6; }
9036 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
9037 /* end confdefs.h. */
9038 #include <sys/personality.h>
9042 personality (PER_LINUX32)
9047 if ac_fn_c_try_compile
"$LINENO"; then :
9048 emacs_cv_personality_linux32
=yes
9050 emacs_cv_personality_linux32
=no
9052 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
9053 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $emacs_cv_personality_linux32" >&5
9054 $as_echo "$emacs_cv_personality_linux32" >&6; }
9056 if test $emacs_cv_personality_linux32 = yes; then
9058 $as_echo "#define HAVE_PERSONALITY_LINUX32 1" >>confdefs.h
9062 for ac_header
in term.h
9064 ac_fn_c_check_header_preproc
"$LINENO" "term.h" "ac_cv_header_term_h"
9065 if test "x$ac_cv_header_term_h" = x
""yes; then :
9066 cat >>confdefs.h
<<_ACEOF
9067 #define HAVE_TERM_H 1
9074 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether time.h and sys/time.h may both be included" >&5
9075 $as_echo_n "checking whether time.h and sys/time.h may both be included... " >&6; }
9076 if test "${ac_cv_header_time+set}" = set; then :
9077 $as_echo_n "(cached) " >&6
9079 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
9080 /* end confdefs.h. */
9081 #include <sys/types.h>
9082 #include <sys/time.h>
9088 if ((struct tm *) 0)
9094 if ac_fn_c_try_compile
"$LINENO"; then :
9095 ac_cv_header_time
=yes
9097 ac_cv_header_time
=no
9099 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
9101 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_time" >&5
9102 $as_echo "$ac_cv_header_time" >&6; }
9103 if test $ac_cv_header_time = yes; then
9105 $as_echo "#define TIME_WITH_SYS_TIME 1" >>confdefs.h
9109 ac_fn_c_check_decl
"$LINENO" "sys_siglist" "ac_cv_have_decl_sys_siglist" "$ac_includes_default"
9110 if test "x$ac_cv_have_decl_sys_siglist" = x
""yes; then :
9116 cat >>confdefs.h
<<_ACEOF
9117 #define HAVE_DECL_SYS_SIGLIST $ac_have_decl
9120 if test $ac_cv_have_decl_sys_siglist != yes; then
9121 # For Tru64, at least:
9122 ac_fn_c_check_decl
"$LINENO" "__sys_siglist" "ac_cv_have_decl___sys_siglist" "$ac_includes_default"
9123 if test "x$ac_cv_have_decl___sys_siglist" = x
""yes; then :
9129 cat >>confdefs.h
<<_ACEOF
9130 #define HAVE_DECL___SYS_SIGLIST $ac_have_decl
9133 if test $ac_cv_have_decl___sys_siglist = yes; then
9135 $as_echo "#define sys_siglist __sys_siglist" >>confdefs.h
9139 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sys/wait.h that is POSIX.1 compatible" >&5
9140 $as_echo_n "checking for sys/wait.h that is POSIX.1 compatible... " >&6; }
9141 if test "${ac_cv_header_sys_wait_h+set}" = set; then :
9142 $as_echo_n "(cached) " >&6
9144 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
9145 /* end confdefs.h. */
9146 #include <sys/types.h>
9147 #include <sys/wait.h>
9149 # define WEXITSTATUS(stat_val) ((unsigned int) (stat_val) >> 8)
9152 # define WIFEXITED(stat_val) (((stat_val) & 255) == 0)
9160 s = WIFEXITED (s) ? WEXITSTATUS (s) : 1;
9165 if ac_fn_c_try_compile
"$LINENO"; then :
9166 ac_cv_header_sys_wait_h
=yes
9168 ac_cv_header_sys_wait_h
=no
9170 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
9172 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_sys_wait_h" >&5
9173 $as_echo "$ac_cv_header_sys_wait_h" >&6; }
9174 if test $ac_cv_header_sys_wait_h = yes; then
9176 $as_echo "#define HAVE_SYS_WAIT_H 1" >>confdefs.h
9181 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for struct utimbuf" >&5
9182 $as_echo_n "checking for struct utimbuf... " >&6; }
9183 if test "${emacs_cv_struct_utimbuf+set}" = set; then :
9184 $as_echo_n "(cached) " >&6
9186 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
9187 /* end confdefs.h. */
9188 #ifdef TIME_WITH_SYS_TIME
9189 #include <sys/time.h>
9192 #ifdef HAVE_SYS_TIME_H
9193 #include <sys/time.h>
9204 static struct utimbuf x; x.actime = x.modtime;
9209 if ac_fn_c_try_compile
"$LINENO"; then :
9210 emacs_cv_struct_utimbuf
=yes
9212 emacs_cv_struct_utimbuf
=no
9214 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
9216 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $emacs_cv_struct_utimbuf" >&5
9217 $as_echo "$emacs_cv_struct_utimbuf" >&6; }
9218 if test $emacs_cv_struct_utimbuf = yes; then
9220 $as_echo "#define HAVE_STRUCT_UTIMBUF 1" >>confdefs.h
9224 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for speed_t" >&5
9225 $as_echo_n "checking for speed_t... " >&6; }
9226 if test "${emacs_cv_speed_t+set}" = set; then :
9227 $as_echo_n "(cached) " >&6
9229 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
9230 /* end confdefs.h. */
9231 #include <termios.h>
9240 if ac_fn_c_try_compile
"$LINENO"; then :
9241 emacs_cv_speed_t
=yes
9245 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
9247 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $emacs_cv_speed_t" >&5
9248 $as_echo "$emacs_cv_speed_t" >&6; }
9249 if test $emacs_cv_speed_t = yes; then
9251 $as_echo "#define HAVE_SPEED_T 1" >>confdefs.h
9255 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for struct timeval" >&5
9256 $as_echo_n "checking for struct timeval... " >&6; }
9257 if test "${emacs_cv_struct_timeval+set}" = set; then :
9258 $as_echo_n "(cached) " >&6
9260 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
9261 /* end confdefs.h. */
9262 #ifdef TIME_WITH_SYS_TIME
9263 #include <sys/time.h>
9266 #ifdef HAVE_SYS_TIME_H
9267 #include <sys/time.h>
9275 static struct timeval x; x.tv_sec = x.tv_usec;
9280 if ac_fn_c_try_compile
"$LINENO"; then :
9281 emacs_cv_struct_timeval
=yes
9283 emacs_cv_struct_timeval
=no
9285 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
9287 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $emacs_cv_struct_timeval" >&5
9288 $as_echo "$emacs_cv_struct_timeval" >&6; }
9289 HAVE_TIMEVAL
=$emacs_cv_struct_timeval
9290 if test $emacs_cv_struct_timeval = yes; then
9292 $as_echo "#define HAVE_TIMEVAL 1" >>confdefs.h
9296 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for struct exception" >&5
9297 $as_echo_n "checking for struct exception... " >&6; }
9298 if test "${emacs_cv_struct_exception+set}" = set; then :
9299 $as_echo_n "(cached) " >&6
9301 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
9302 /* end confdefs.h. */
9307 static struct exception x; x.arg1 = x.arg2 = x.retval; x.name = ""; x.type = 1;
9312 if ac_fn_c_try_compile
"$LINENO"; then :
9313 emacs_cv_struct_exception
=yes
9315 emacs_cv_struct_exception
=no
9317 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
9319 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $emacs_cv_struct_exception" >&5
9320 $as_echo "$emacs_cv_struct_exception" >&6; }
9321 HAVE_EXCEPTION
=$emacs_cv_struct_exception
9322 if test $emacs_cv_struct_exception != yes; then
9324 $as_echo "#define NO_MATHERR 1" >>confdefs.h
9328 for ac_header
in sys
/socket.h
9330 ac_fn_c_check_header_mongrel
"$LINENO" "sys/socket.h" "ac_cv_header_sys_socket_h" "$ac_includes_default"
9331 if test "x$ac_cv_header_sys_socket_h" = x
""yes; then :
9332 cat >>confdefs.h
<<_ACEOF
9333 #define HAVE_SYS_SOCKET_H 1
9340 for ac_header
in net
/if.h
9342 ac_fn_c_check_header_compile
"$LINENO" "net/if.h" "ac_cv_header_net_if_h" "$ac_includes_default
9343 #if HAVE_SYS_SOCKET_H
9344 #include <sys/socket.h>
9347 if test "x$ac_cv_header_net_if_h" = x
""yes; then :
9348 cat >>confdefs.h
<<_ACEOF
9349 #define HAVE_NET_IF_H 1
9356 for ac_header
in ifaddrs.h
9358 ac_fn_c_check_header_compile
"$LINENO" "ifaddrs.h" "ac_cv_header_ifaddrs_h" "$ac_includes_default
9359 #if HAVE_SYS_SOCKET_H
9360 #include <sys/socket.h>
9363 if test "x$ac_cv_header_ifaddrs_h" = x
""yes; then :
9364 cat >>confdefs.h
<<_ACEOF
9365 #define HAVE_IFADDRS_H 1
9372 for ac_header
in net
/if_dl.h
9374 ac_fn_c_check_header_compile
"$LINENO" "net/if_dl.h" "ac_cv_header_net_if_dl_h" "$ac_includes_default
9375 #if HAVE_SYS_SOCKET_H
9376 #include <sys/socket.h>
9379 if test "x$ac_cv_header_net_if_dl_h" = x
""yes; then :
9380 cat >>confdefs.h
<<_ACEOF
9381 #define HAVE_NET_IF_DL_H 1
9388 for ac_func
in getifaddrs freeifaddrs
9390 as_ac_var
=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
9391 ac_fn_c_check_func
"$LINENO" "$ac_func" "$as_ac_var"
9392 eval as_val
=\$
$as_ac_var
9393 if test "x$as_val" = x
""yes; then :
9394 cat >>confdefs.h
<<_ACEOF
9395 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
9402 ac_fn_c_check_member
"$LINENO" "struct ifreq" "ifr_flags" "ac_cv_member_struct_ifreq_ifr_flags" "$ac_includes_default
9403 #if HAVE_SYS_SOCKET_H
9404 #include <sys/socket.h>
9410 if test "x$ac_cv_member_struct_ifreq_ifr_flags" = x
""yes; then :
9412 cat >>confdefs.h
<<_ACEOF
9413 #define HAVE_STRUCT_IFREQ_IFR_FLAGS 1
9418 ac_fn_c_check_member
"$LINENO" "struct ifreq" "ifr_hwaddr" "ac_cv_member_struct_ifreq_ifr_hwaddr" "$ac_includes_default
9419 #if HAVE_SYS_SOCKET_H
9420 #include <sys/socket.h>
9426 if test "x$ac_cv_member_struct_ifreq_ifr_hwaddr" = x
""yes; then :
9428 cat >>confdefs.h
<<_ACEOF
9429 #define HAVE_STRUCT_IFREQ_IFR_HWADDR 1
9434 ac_fn_c_check_member
"$LINENO" "struct ifreq" "ifr_netmask" "ac_cv_member_struct_ifreq_ifr_netmask" "$ac_includes_default
9435 #if HAVE_SYS_SOCKET_H
9436 #include <sys/socket.h>
9442 if test "x$ac_cv_member_struct_ifreq_ifr_netmask" = x
""yes; then :
9444 cat >>confdefs.h
<<_ACEOF
9445 #define HAVE_STRUCT_IFREQ_IFR_NETMASK 1
9450 ac_fn_c_check_member
"$LINENO" "struct ifreq" "ifr_broadaddr" "ac_cv_member_struct_ifreq_ifr_broadaddr" "$ac_includes_default
9451 #if HAVE_SYS_SOCKET_H
9452 #include <sys/socket.h>
9458 if test "x$ac_cv_member_struct_ifreq_ifr_broadaddr" = x
""yes; then :
9460 cat >>confdefs.h
<<_ACEOF
9461 #define HAVE_STRUCT_IFREQ_IFR_BROADADDR 1
9466 ac_fn_c_check_member
"$LINENO" "struct ifreq" "ifr_addr" "ac_cv_member_struct_ifreq_ifr_addr" "$ac_includes_default
9467 #if HAVE_SYS_SOCKET_H
9468 #include <sys/socket.h>
9474 if test "x$ac_cv_member_struct_ifreq_ifr_addr" = x
""yes; then :
9476 cat >>confdefs.h
<<_ACEOF
9477 #define HAVE_STRUCT_IFREQ_IFR_ADDR 1
9482 ac_fn_c_check_member
"$LINENO" "struct ifreq" "ifr_addr.sa_len" "ac_cv_member_struct_ifreq_ifr_addr_sa_len" "$ac_includes_default
9483 #if HAVE_SYS_SOCKET_H
9484 #include <sys/socket.h>
9490 if test "x$ac_cv_member_struct_ifreq_ifr_addr_sa_len" = x
""yes; then :
9492 cat >>confdefs.h
<<_ACEOF
9493 #define HAVE_STRUCT_IFREQ_IFR_ADDR_SA_LEN 1
9501 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for function prototypes" >&5
9502 $as_echo_n "checking for function prototypes... " >&6; }
9503 if test "$ac_cv_prog_cc_c89" != no
; then
9504 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
9505 $as_echo "yes" >&6; }
9507 $as_echo "#define PROTOTYPES 1" >>confdefs.h
9510 $as_echo "#define __PROTOTYPES 1" >>confdefs.h
9513 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9514 $as_echo "no" >&6; }
9517 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working volatile" >&5
9518 $as_echo_n "checking for working volatile... " >&6; }
9519 if test "${ac_cv_c_volatile+set}" = set; then :
9520 $as_echo_n "(cached) " >&6
9522 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
9523 /* end confdefs.h. */
9530 int * volatile y = (int *) 0;
9536 if ac_fn_c_try_compile
"$LINENO"; then :
9537 ac_cv_c_volatile
=yes
9541 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
9543 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_volatile" >&5
9544 $as_echo "$ac_cv_c_volatile" >&6; }
9545 if test $ac_cv_c_volatile = no
; then
9547 $as_echo "#define volatile /**/" >>confdefs.h
9551 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for an ANSI C-conforming const" >&5
9552 $as_echo_n "checking for an ANSI C-conforming const... " >&6; }
9553 if test "${ac_cv_c_const+set}" = set; then :
9554 $as_echo_n "(cached) " >&6
9556 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
9557 /* end confdefs.h. */
9562 /* FIXME: Include the comments suggested by Paul. */
9564 /* Ultrix mips cc rejects this. */
9565 typedef int charset[2];
9567 /* SunOS 4.1.1 cc rejects this. */
9568 char const *const *pcpcc;
9570 /* NEC SVR4.0.2 mips cc rejects this. */
9571 struct point {int x, y;};
9572 static struct point const zero = {0,0};
9573 /* AIX XL C 1.02.0.0 rejects this.
9574 It does not let you subtract one const X* pointer from another in
9575 an arm of an if-expression whose if-part is not a constant
9577 const char *g = "string";
9578 pcpcc = &g + (g ? g-g : 0);
9579 /* HPUX 7.0 cc rejects these. */
9581 ppc = (char**) pcpcc;
9582 pcpcc = (char const *const *) ppc;
9583 { /* SCO 3.2v4 cc rejects this. */
9585 char const *s = 0 ? (char *) 0 : (char const *) 0;
9590 { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
9592 const int *foo = &x[0];
9595 { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
9596 typedef const int *iptr;
9600 { /* AIX XL C 1.02.0.0 rejects this saying
9601 "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
9602 struct s { int j; const int *ap[3]; };
9603 struct s *b; b->j = 5;
9605 { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
9609 return !cs[0] && !zero.x;
9616 if ac_fn_c_try_compile
"$LINENO"; then :
9621 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
9623 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_const" >&5
9624 $as_echo "$ac_cv_c_const" >&6; }
9625 if test $ac_cv_c_const = no
; then
9627 $as_echo "#define const /**/" >>confdefs.h
9631 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for void * support" >&5
9632 $as_echo_n "checking for void * support... " >&6; }
9633 if test "${emacs_cv_void_star+set}" = set; then :
9634 $as_echo_n "(cached) " >&6
9636 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
9637 /* end confdefs.h. */
9647 if ac_fn_c_try_compile
"$LINENO"; then :
9648 emacs_cv_void_star
=yes
9650 emacs_cv_void_star
=no
9652 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
9654 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $emacs_cv_void_star" >&5
9655 $as_echo "$emacs_cv_void_star" >&6; }
9656 if test $emacs_cv_void_star = yes; then
9657 $as_echo "#define POINTER_TYPE void" >>confdefs.h
9660 $as_echo "#define POINTER_TYPE char" >>confdefs.h
9664 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether byte ordering is bigendian" >&5
9665 $as_echo_n "checking whether byte ordering is bigendian... " >&6; }
9666 if test "${ac_cv_c_bigendian+set}" = set; then :
9667 $as_echo_n "(cached) " >&6
9669 ac_cv_c_bigendian
=unknown
9670 # See if we're dealing with a universal compiler.
9671 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
9672 /* end confdefs.h. */
9673 #ifndef __APPLE_CC__
9674 not a universal capable compiler
9679 if ac_fn_c_try_compile
"$LINENO"; then :
9681 # Check for potential -arch flags. It is not universal unless
9682 # there are at least two -arch flags with different values.
9685 for ac_word
in $CC $CFLAGS $CPPFLAGS $LDFLAGS; do
9686 if test -n "$ac_prev"; then
9688 i?
86 | x86_64 | ppc | ppc64
)
9689 if test -z "$ac_arch" ||
test "$ac_arch" = "$ac_word"; then
9692 ac_cv_c_bigendian
=universal
9698 elif test "x$ac_word" = "x-arch"; then
9703 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
9704 if test $ac_cv_c_bigendian = unknown
; then
9705 # See if sys/param.h defines the BYTE_ORDER macro.
9706 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
9707 /* end confdefs.h. */
9708 #include <sys/types.h>
9709 #include <sys/param.h>
9714 #if ! (defined BYTE_ORDER && defined BIG_ENDIAN \
9715 && defined LITTLE_ENDIAN && BYTE_ORDER && BIG_ENDIAN \
9724 if ac_fn_c_try_compile
"$LINENO"; then :
9725 # It does; now see whether it defined to BIG_ENDIAN or not.
9726 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
9727 /* end confdefs.h. */
9728 #include <sys/types.h>
9729 #include <sys/param.h>
9734 #if BYTE_ORDER != BIG_ENDIAN
9742 if ac_fn_c_try_compile
"$LINENO"; then :
9743 ac_cv_c_bigendian
=yes
9745 ac_cv_c_bigendian
=no
9747 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
9749 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
9751 if test $ac_cv_c_bigendian = unknown
; then
9752 # See if <limits.h> defines _LITTLE_ENDIAN or _BIG_ENDIAN (e.g., Solaris).
9753 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
9754 /* end confdefs.h. */
9760 #if ! (defined _LITTLE_ENDIAN || defined _BIG_ENDIAN)
9768 if ac_fn_c_try_compile
"$LINENO"; then :
9769 # It does; now see whether it defined to _BIG_ENDIAN or not.
9770 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
9771 /* end confdefs.h. */
9785 if ac_fn_c_try_compile
"$LINENO"; then :
9786 ac_cv_c_bigendian
=yes
9788 ac_cv_c_bigendian
=no
9790 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
9792 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
9794 if test $ac_cv_c_bigendian = unknown
; then
9795 # Compile a test program.
9796 if test "$cross_compiling" = yes; then :
9797 # Try to guess by grepping values from an object file.
9798 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
9799 /* end confdefs.h. */
9800 short int ascii_mm[] =
9801 { 0x4249, 0x4765, 0x6E44, 0x6961, 0x6E53, 0x7953, 0 };
9802 short int ascii_ii[] =
9803 { 0x694C, 0x5454, 0x656C, 0x6E45, 0x6944, 0x6E61, 0 };
9804 int use_ascii (int i) {
9805 return ascii_mm[i] + ascii_ii[i];
9807 short int ebcdic_ii[] =
9808 { 0x89D3, 0xE3E3, 0x8593, 0x95C5, 0x89C4, 0x9581, 0 };
9809 short int ebcdic_mm[] =
9810 { 0xC2C9, 0xC785, 0x95C4, 0x8981, 0x95E2, 0xA8E2, 0 };
9811 int use_ebcdic (int i) {
9812 return ebcdic_mm[i] + ebcdic_ii[i];
9819 return use_ascii (foo) == use_ebcdic (foo);
9824 if ac_fn_c_try_compile
"$LINENO"; then :
9825 if grep BIGenDianSyS conftest.
$ac_objext >/dev
/null
; then
9826 ac_cv_c_bigendian
=yes
9828 if grep LiTTleEnDian conftest.
$ac_objext >/dev
/null
; then
9829 if test "$ac_cv_c_bigendian" = unknown
; then
9830 ac_cv_c_bigendian
=no
9832 # finding both strings is unlikely to happen, but who knows?
9833 ac_cv_c_bigendian
=unknown
9837 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
9839 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
9840 /* end confdefs.h. */
9841 $ac_includes_default
9846 /* Are we little or big endian? From Harbison&Steele. */
9850 char c[sizeof (long int)];
9853 return u.c[sizeof (long int) - 1] == 1;
9859 if ac_fn_c_try_run
"$LINENO"; then :
9860 ac_cv_c_bigendian
=no
9862 ac_cv_c_bigendian
=yes
9864 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
9865 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
9870 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_bigendian" >&5
9871 $as_echo "$ac_cv_c_bigendian" >&6; }
9872 case $ac_cv_c_bigendian in #(
9874 $as_echo "#define WORDS_BIGENDIAN 1" >>confdefs.h
9880 $as_echo "#define AC_APPLE_UNIVERSAL_BUILD 1" >>confdefs.h
9884 as_fn_error
"unknown endianness
9885 presetting ac_cv_c_bigendian=no (or yes) will help" "$LINENO" 5 ;;
9889 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for __attribute__ ((__aligned__ (expr)))" >&5
9890 $as_echo_n "checking for __attribute__ ((__aligned__ (expr)))... " >&6; }
9891 if test "${emacs_cv_attribute_aligned+set}" = set; then :
9892 $as_echo_n "(cached) " >&6
9894 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
9895 /* end confdefs.h. */
9896 char __attribute__ ((__aligned__ (1 << 3))) c;
9905 if ac_fn_c_try_compile
"$LINENO"; then :
9906 emacs_cv_attribute_aligned
=yes
9908 emacs_cv_attribute_aligned
=no
9910 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
9912 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $emacs_cv_attribute_aligned" >&5
9913 $as_echo "$emacs_cv_attribute_aligned" >&6; }
9914 if test $emacs_cv_attribute_aligned = yes; then
9916 $as_echo "#define HAVE_ATTRIBUTE_ALIGNED 1" >>confdefs.h
9920 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
9921 $as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
9923 ac_make
=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
9924 if { as_var
=ac_cv_prog_make_
${ac_make}_set; eval "test \"\${$as_var+set}\" = set"; }; then :
9925 $as_echo_n "(cached) " >&6
9927 cat >conftest.
make <<\_ACEOF
9930 @
echo '@@@%%%=$(MAKE)=@@@%%%'
9932 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
9933 case `${MAKE-make} -f conftest.make 2>/dev/null` in
9935 eval ac_cv_prog_make_
${ac_make}_set
=yes;;
9937 eval ac_cv_prog_make_
${ac_make}_set
=no
;;
9941 if eval test \
$ac_cv_prog_make_${ac_make}_set
= yes; then
9942 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
9943 $as_echo "yes" >&6; }
9946 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9947 $as_echo "no" >&6; }
9948 SET_MAKE
="MAKE=${MAKE-make}"
9955 if test "$GCC" = yes && test "$ac_enable_autodepend" = yes; then
9956 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using GNU Make" >&5
9957 $as_echo_n "checking whether we are using GNU Make... " >&6; }
9959 testval
=`${MAKE-make} --version 2>/dev/null | grep 'GNU Make'`
9960 if test "x$testval" != x
; then
9963 ac_enable_autodepend
=no
9965 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $HAVE_GNU_MAKE" >&5
9966 $as_echo "$HAVE_GNU_MAKE" >&6; }
9967 if test $HAVE_GNU_MAKE = yes; then
9968 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether gcc understands -MMD -MF" >&5
9969 $as_echo_n "checking whether gcc understands -MMD -MF... " >&6; }
9970 SAVE_CFLAGS
="$CFLAGS"
9971 CFLAGS
="$CFLAGS -MMD -MF deps.d -MP"
9972 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
9973 /* end confdefs.h. */
9983 if ac_fn_c_try_compile
"$LINENO"; then :
9986 ac_enable_autodepend
=no
9988 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
9989 CFLAGS
="$SAVE_CFLAGS"
9990 test -f deps.d || ac_enable_autodepend
=no
9992 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_enable_autodepend" >&5
9993 $as_echo "$ac_enable_autodepend" >&6; }
9995 if test $ac_enable_autodepend = yes; then
9996 DEPFLAGS
='-MMD -MF ${DEPDIR}/$*.d -MP'
9997 ## In parallel builds, another make might create depdir between
9998 ## the first test and mkdir, so stick another test on the end.
9999 ## Or use install-sh -d? mkdir -p is not portable.
10000 MKDEPDIR
='test -d ${DEPDIR} || mkdir ${DEPDIR} || test -d ${DEPDIR}'
10001 deps_frag
=autodeps.mk
10004 deps_frag
=$srcdir/src
/$deps_frag
10010 lisp_frag
=$srcdir/src
/lisp.mk
10014 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for long file names" >&5
10015 $as_echo_n "checking for long file names... " >&6; }
10016 if test "${ac_cv_sys_long_file_names+set}" = set; then :
10017 $as_echo_n "(cached) " >&6
10019 ac_cv_sys_long_file_names
=yes
10020 # Test for long file names in all the places we know might matter:
10021 # . the current directory, where building will happen
10022 # $prefix/lib where we will be installing things
10023 # $exec_prefix/lib likewise
10024 # $TMPDIR if set, where it might want to write temporary files
10025 # /tmp where it might want to write temporary files
10026 # /var/tmp likewise
10027 # /usr/tmp likewise
10028 for ac_dir
in .
"$TMPDIR" /tmp
/var
/tmp
/usr
/tmp
"$prefix/lib" "$exec_prefix/lib"; do
10029 # Skip $TMPDIR if it is empty or bogus, and skip $exec_prefix/lib
10030 # in the usual case where exec_prefix is '${prefix}'.
10032 . |
/* | ?
:[\\/]*) ;; #(
10035 test -w "$ac_dir/." ||
continue # It is less confusing to not echo anything here.
10036 ac_xdir
=$ac_dir/cf$$
10037 (umask 077 && mkdir
"$ac_xdir" 2>/dev
/null
) ||
continue
10038 ac_tf1
=$ac_xdir/conftest9012345
10039 ac_tf2
=$ac_xdir/conftest9012346
10040 touch "$ac_tf1" 2>/dev
/null
&& test -f "$ac_tf1" && test ! -f "$ac_tf2" ||
10041 ac_cv_sys_long_file_names
=no
10042 rm -f -r "$ac_xdir" 2>/dev
/null
10043 test $ac_cv_sys_long_file_names = no
&& break
10046 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_long_file_names" >&5
10047 $as_echo "$ac_cv_sys_long_file_names" >&6; }
10048 if test $ac_cv_sys_long_file_names = yes; then
10050 $as_echo "#define HAVE_LONG_FILE_NAMES 1" >>confdefs.h
10055 #### Choose a window system.
10057 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for X" >&5
10058 $as_echo_n "checking for X... " >&6; }
10061 # Check whether --with-x was given.
10062 if test "${with_x+set}" = set; then :
10066 # $have_x is `yes', `no', `disabled', or empty when we do not yet know.
10067 if test "x$with_x" = xno
; then
10068 # The user explicitly disabled X.
10071 case $x_includes,$x_libraries in #(
10072 *\'*) as_fn_error
"cannot use X directory names containing '" "$LINENO" 5;; #(
10073 *,NONE | NONE
,*) if test "${ac_cv_have_x+set}" = set; then :
10074 $as_echo_n "(cached) " >&6
10076 # One or both of the vars are not set, and there is no cached value.
10077 ac_x_includes
=no ac_x_libraries
=no
10078 rm -f -r conftest.dir
10079 if mkdir conftest.dir
; then
10081 cat >Imakefile
<<'_ACEOF'
10083 @echo incroot='${INCROOT}'
10085 @echo usrlibdir='${USRLIBDIR}'
10087 @echo libdir='${LIBDIR}'
10089 if (export CC
; ${XMKMF-xmkmf}) >/dev
/null
2>/dev
/null
&& test -f Makefile
; then
10090 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
10091 for ac_var
in incroot usrlibdir libdir
; do
10092 eval "ac_im_$ac_var=\`\${MAKE-make} $ac_var 2>/dev/null | sed -n 's/^$ac_var=//p'\`"
10094 # Open Windows xmkmf reportedly sets LIBDIR instead of USRLIBDIR.
10095 for ac_extension
in a so sl dylib la dll
; do
10096 if test ! -f "$ac_im_usrlibdir/libX11.$ac_extension" &&
10097 test -f "$ac_im_libdir/libX11.$ac_extension"; then
10098 ac_im_usrlibdir
=$ac_im_libdir; break
10101 # Screen out bogus values from the imake configuration. They are
10102 # bogus both because they are the default anyway, and because
10103 # using them would break gcc on systems where it needs fixed includes.
10104 case $ac_im_incroot in
10105 /usr
/include
) ac_x_includes
= ;;
10106 *) test -f "$ac_im_incroot/X11/Xos.h" && ac_x_includes
=$ac_im_incroot;;
10108 case $ac_im_usrlibdir in
10109 /usr
/lib |
/usr
/lib64 |
/lib |
/lib64
) ;;
10110 *) test -d "$ac_im_usrlibdir" && ac_x_libraries
=$ac_im_usrlibdir ;;
10114 rm -f -r conftest.dir
10117 # Standard set of common directories for X headers.
10118 # Check X11 before X11Rn because it is often a symlink to the current release.
10132 /usr/local/X11/include
10133 /usr/local/X11R7/include
10134 /usr/local/X11R6/include
10135 /usr/local/X11R5/include
10136 /usr/local/X11R4/include
10138 /usr/local/include/X11
10139 /usr/local/include/X11R7
10140 /usr/local/include/X11R6
10141 /usr/local/include/X11R5
10142 /usr/local/include/X11R4
10146 /usr/XFree86/include/X11
10150 /usr/unsupported/include
10151 /usr/athena/include
10152 /usr/local/x11r5/include
10153 /usr/lpp/Xamples/include
10155 /usr/openwin/include
10156 /usr/openwin/share/include'
10158 if test "$ac_x_includes" = no
; then
10159 # Guess where to find include files, by looking for Xlib.h.
10160 # First, try using that file with no special directory specified.
10161 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
10162 /* end confdefs.h. */
10163 #include <X11/Xlib.h>
10165 if ac_fn_c_try_cpp
"$LINENO"; then :
10166 # We can compile using X headers with no special include directory.
10169 for ac_dir
in $ac_x_header_dirs; do
10170 if test -r "$ac_dir/X11/Xlib.h"; then
10171 ac_x_includes
=$ac_dir
10176 rm -f conftest.err conftest.
$ac_ext
10177 fi # $ac_x_includes = no
10179 if test "$ac_x_libraries" = no
; then
10180 # Check for the libraries.
10181 # See if we find them without any special options.
10182 # Don't add to $LIBS permanently.
10185 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
10186 /* end confdefs.h. */
10187 #include <X11/Xlib.h>
10196 if ac_fn_c_try_link
"$LINENO"; then :
10198 # We can link X programs with no special library path.
10202 for ac_dir
in `$as_echo "$ac_x_includes $ac_x_header_dirs" | sed s/include/lib/g`
10204 # Don't even attempt the hair of trying to link an X program!
10205 for ac_extension
in a so sl dylib la dll
; do
10206 if test -r "$ac_dir/libX11.$ac_extension"; then
10207 ac_x_libraries
=$ac_dir
10213 rm -f core conftest.err conftest.
$ac_objext \
10214 conftest
$ac_exeext conftest.
$ac_ext
10215 fi # $ac_x_libraries = no
10217 case $ac_x_includes,$ac_x_libraries in #(
10218 no
,* |
*,no |
*\'*)
10219 # Didn't find X, or a directory has "'" in its name.
10220 ac_cv_have_x
="have_x=no";; #(
10222 # Record where we found X for the cache.
10223 ac_cv_have_x
="have_x=yes\
10224 ac_x_includes='$ac_x_includes'\
10225 ac_x_libraries='$ac_x_libraries'"
10231 eval "$ac_cv_have_x"
10234 if test "$have_x" != yes; then
10235 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_x" >&5
10236 $as_echo "$have_x" >&6; }
10239 # If each of the values was on the command line, it overrides each guess.
10240 test "x$x_includes" = xNONE
&& x_includes
=$ac_x_includes
10241 test "x$x_libraries" = xNONE
&& x_libraries
=$ac_x_libraries
10242 # Update the cache value to reflect the command line values.
10243 ac_cv_have_x
="have_x=yes\
10244 ac_x_includes='$x_includes'\
10245 ac_x_libraries='$x_libraries'"
10246 { $as_echo "$as_me:${as_lineno-$LINENO}: result: libraries $x_libraries, headers $x_includes" >&5
10247 $as_echo "libraries $x_libraries, headers $x_includes" >&6; }
10250 if test "$no_x" = yes; then
10256 LD_SWITCH_X_SITE_AUX
=
10257 LD_SWITCH_X_SITE_AUX_RPATH
=
10258 if test "${x_libraries}" != NONE
; then
10259 if test -n "${x_libraries}"; then
10260 LD_SWITCH_X_SITE
=-L`echo ${x_libraries} | sed -e "s/:/ -L/g"`
10261 LD_SWITCH_X_SITE_AUX
=-R`echo ${x_libraries} | sed -e "s/:/ -R/g"`
10262 LD_SWITCH_X_SITE_AUX_RPATH
=`echo ${LD_SWITCH_X_SITE_AUX} | sed -e 's/-R/-Wl,-rpath,/'`
10264 x_default_search_path
=""
10265 x_search_path
=${x_libraries}
10266 if test -z "${x_search_path}"; then
10267 x_search_path
=/usr
/lib
10269 for x_library
in `echo ${x_search_path}: | \
10270 sed -e "s/:/ /g" -e p -e "s:/lib[^ /]* :/share :g"`; do
10272 ${x_library}/X11/%L/%T/%N%C%S:\
10273 ${x_library}/X11/%l/%T/%N%C%S:\
10274 ${x_library}/X11/%T/%N%C%S:\
10275 ${x_library}/X11/%L/%T/%N%S:\
10276 ${x_library}/X11/%l/%T/%N%S:\
10277 ${x_library}/X11/%T/%N%S"
10278 if test x
"${x_default_search_path}" = x
; then
10279 x_default_search_path
=${x_search_path}
10281 x_default_search_path
="${x_search_path}:${x_default_search_path}"
10288 if test "${x_includes}" != NONE
&& test -n "${x_includes}"; then
10289 C_SWITCH_X_SITE
="$isystem"`echo ${x_includes} | sed -e "s/:/ $isystem/g"`
10292 if test x
"${x_includes}" = x
; then
10293 bitmapdir
=/usr
/include
/X11
/bitmaps
10295 # accumulate include directories that have X11 bitmap subdirectories
10297 for bmd
in `echo ${x_includes} | sed -e "s/:/ /g"`; do
10298 if test -d "${bmd}/X11/bitmaps"; then
10299 bmd_acc
="${bmd_acc}:${bmd}/X11/bitmaps"
10301 if test -d "${bmd}/bitmaps"; then
10302 bmd_acc
="${bmd_acc}:${bmd}/bitmaps"
10305 if test ${bmd_acc} != "dummyval"; then
10306 bitmapdir
=`echo ${bmd_acc} | sed -e "s/^dummyval://"`
10313 tmp_CPPFLAGS
="$CPPFLAGS"
10314 tmp_CFLAGS
="$CFLAGS"
10315 CPPFLAGS
="$CPPFLAGS -x objective-c"
10316 CFLAGS
="$CFLAGS -x objective-c"
10317 TEMACS_LDFLAGS2
="\${LDFLAGS}"
10319 if test "${with_ns}" != no
; then
10320 if test "${opsys}" = darwin
; then
10322 ns_appdir
=`pwd`/nextstep
/Emacs.app
10323 ns_appbindir
=${ns_appdir}/Contents
/MacOS
/
10324 ns_appresdir
=${ns_appdir}/Contents
/Resources
10325 ns_appsrc
=${srcdir}/nextstep
/Cocoa
/Emacs.base
10326 elif test -f $GNUSTEP_CONFIG_FILE; then
10327 NS_IMPL_GNUSTEP
=yes
10328 ns_appdir
=`pwd`/nextstep
/Emacs.app
10329 ns_appbindir
=${ns_appdir}/
10330 ns_appresdir
=${ns_appdir}/Resources
10331 ns_appsrc
=${srcdir}/nextstep
/GNUstep
/Emacs.base
10332 GNUSTEP_SYSTEM_HEADERS
="$(. $GNUSTEP_CONFIG_FILE; echo $GNUSTEP_SYSTEM_HEADERS)"
10333 GNUSTEP_SYSTEM_LIBRARIES
="$(. $GNUSTEP_CONFIG_FILE; echo $GNUSTEP_SYSTEM_LIBRARIES)"
10334 GNUSTEP_LOCAL_HEADERS
="$(. $GNUSTEP_CONFIG_FILE; echo $GNUSTEP_LOCAL_HEADERS)"
10335 GNUSTEP_LOCAL_LIBRARIES
="$(. $GNUSTEP_CONFIG_FILE; echo $GNUSTEP_LOCAL_LIBRARIES)"
10336 test "x${GNUSTEP_LOCAL_HEADERS}" != "x" && \
10337 GNUSTEP_LOCAL_HEADERS
="-I${GNUSTEP_LOCAL_HEADERS}"
10338 test "x${GNUSTEP_LOCAL_LIBRARIES}" != "x" && \
10339 GNUSTEP_LOCAL_LIBRARIES
="-L${GNUSTEP_LOCAL_LIBRARIES}"
10340 CPPFLAGS
="$CPPFLAGS -I${GNUSTEP_SYSTEM_HEADERS} ${GNUSTEP_LOCAL_HEADERS}"
10341 CFLAGS
="$CFLAGS -I${GNUSTEP_SYSTEM_HEADERS} ${GNUSTEP_LOCAL_HEADERS}"
10342 LDFLAGS
="$LDFLAGS -L${GNUSTEP_SYSTEM_LIBRARIES} ${GNUSTEP_LOCAL_LIBRARIES}"
10346 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if GNUstep defines BASE_NATIVE_OBJC_EXCEPTIONS" >&5
10347 $as_echo_n "checking if GNUstep defines BASE_NATIVE_OBJC_EXCEPTIONS... " >&6; }
10348 if test "${emacs_cv_objc_exceptions+set}" = set; then :
10349 $as_echo_n "(cached) " >&6
10351 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
10352 /* end confdefs.h. */
10353 #include <GNUstepBase/GSConfig.h>
10357 #if defined BASE_NATIVE_OBJC_EXCEPTIONS && BASE_NATIVE_OBJC_EXCEPTIONS > 0
10366 if ac_fn_c_try_compile
"$LINENO"; then :
10367 emacs_cv_objc_exceptions
=yes
10369 emacs_cv_objc_exceptions
=no
10371 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
10373 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $emacs_cv_objc_exceptions" >&5
10374 $as_echo "$emacs_cv_objc_exceptions" >&6; }
10375 if test $emacs_cv_objc_exceptions = yes; then
10377 $as_echo "#define _NATIVE_OBJC_EXCEPTIONS 1" >>confdefs.h
10379 GNU_OBJC_CFLAGS
="-fobjc-exceptions"
10383 CFLAGS
="$CFLAGS $GNU_OBJC_CFLAGS"
10385 ac_fn_c_check_header_mongrel
"$LINENO" "AppKit/AppKit.h" "ac_cv_header_AppKit_AppKit_h" "$ac_includes_default"
10386 if test "x$ac_cv_header_AppKit_AppKit_h" = x
""yes; then :
10389 as_fn_error
"\`--with-ns' was specified, but the include
10390 files are missing or cannot be compiled." "$LINENO" 5
10394 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
10395 /* end confdefs.h. */
10396 #include <Foundation/NSObjCRuntime.h>
10405 if ac_fn_c_try_compile
"$LINENO"; then :
10406 ns_have_nsinteger
=yes
10408 ns_have_nsinteger
=no
10410 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
10411 if test $ns_have_nsinteger = yes; then
10413 $as_echo "#define NS_HAVE_NSINTEGER 1" >>confdefs.h
10422 if test "${HAVE_NS}" = yes; then
10423 if test "$with_toolkit_scroll_bars" = "no"; then
10424 as_fn_error
"Non-toolkit scroll bars are not implemented for Nextstep." "$LINENO" 5
10427 window_system
=nextstep
10429 # set up packaging dirs
10430 if test "${EN_NS_SELF_CONTAINED}" = yes; then
10431 prefix
=${ns_appresdir}
10432 exec_prefix
=${ns_appbindir}
10433 libexecdir
=${ns_appbindir}/libexec
10435 ns_frag
=$srcdir/src
/ns.mk
10436 NS_OBJ
="fontset.o fringe.o image.o"
10437 NS_OBJC_OBJ
="nsterm.o nsfns.o nsmenu.o nsselect.o nsimage.o nsfont.o"
10439 CFLAGS
="$tmp_CFLAGS"
10440 CPPFLAGS
="$tmp_CPPFLAGS"
10446 case "${window_system}" in
10450 case "${with_x_toolkit}" in
10451 athena | lucid
) USE_X_TOOLKIT
=LUCID
;;
10452 motif
) USE_X_TOOLKIT
=MOTIF
;;
10454 USE_X_TOOLKIT
=none
;;
10455 gtk3
) with_gtk3
=yes
10456 USE_X_TOOLKIT
=none
;;
10457 no
) USE_X_TOOLKIT
=none
;;
10458 * ) USE_X_TOOLKIT
=maybe
;;
10468 if test "$window_system" = none
&& test "X$with_x" != "Xno"; then
10469 # Extract the first word of "X", so it can be a program name with args.
10470 set dummy X
; ac_word
=$2
10471 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10472 $as_echo_n "checking for $ac_word... " >&6; }
10473 if test "${ac_cv_prog_HAVE_XSERVER+set}" = set; then :
10474 $as_echo_n "(cached) " >&6
10476 if test -n "$HAVE_XSERVER"; then
10477 ac_cv_prog_HAVE_XSERVER
="$HAVE_XSERVER" # Let the user override the test.
10479 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
10480 for as_dir
in $PATH
10483 test -z "$as_dir" && as_dir
=.
10484 for ac_exec_ext
in '' $ac_executable_extensions; do
10485 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10486 ac_cv_prog_HAVE_XSERVER
="true"
10487 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10494 test -z "$ac_cv_prog_HAVE_XSERVER" && ac_cv_prog_HAVE_XSERVER
="false"
10497 HAVE_XSERVER
=$ac_cv_prog_HAVE_XSERVER
10498 if test -n "$HAVE_XSERVER"; then
10499 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $HAVE_XSERVER" >&5
10500 $as_echo "$HAVE_XSERVER" >&6; }
10502 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10503 $as_echo "no" >&6; }
10507 if test "$HAVE_XSERVER" = true ||
10508 test -n "$DISPLAY" ||
10509 test "`echo /usr/lib/libX11.*`" != "/usr/lib/libX11.*"; then
10510 as_fn_error
"You seem to be running X, but no X development libraries
10511 were found. You should install the relevant development files for X
10512 and for the toolkit you want, such as Gtk+, Lesstif or Motif. Also make
10513 sure you have development files for image handling, i.e.
10514 tiff, gif, jpeg, png and xpm.
10515 If you are sure you want Emacs compiled without X window support, pass
10517 to configure." "$LINENO" 5
10521 ### If we're using X11, we should use the X menu package.
10523 case ${HAVE_X11} in
10524 yes ) HAVE_MENUS
=yes ;;
10527 # Do the opsystem or machine files prohibit the use of the GNU malloc?
10528 # Assume not, until told otherwise.
10531 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether malloc is Doug Lea style" >&5
10532 $as_echo_n "checking whether malloc is Doug Lea style... " >&6; }
10533 if test "${emacs_cv_var_doug_lea_malloc+set}" = set; then :
10534 $as_echo_n "(cached) " >&6
10536 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
10537 /* end confdefs.h. */
10538 #include <malloc.h>
10539 static void hook (void) {}
10543 malloc_set_state (malloc_get_state ());
10544 __after_morecore_hook = hook;
10545 __malloc_initialize_hook = hook;
10550 if ac_fn_c_try_link
"$LINENO"; then :
10551 emacs_cv_var_doug_lea_malloc
=yes
10553 emacs_cv_var_doug_lea_malloc
=no
10555 rm -f core conftest.err conftest.
$ac_objext \
10556 conftest
$ac_exeext conftest.
$ac_ext
10558 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $emacs_cv_var_doug_lea_malloc" >&5
10559 $as_echo "$emacs_cv_var_doug_lea_malloc" >&6; }
10560 doug_lea_malloc
=$emacs_cv_var_doug_lea_malloc
10565 ## darwin ld insists on the use of malloc routines in the System framework.
10566 darwin|sol2-10
) system_malloc
=yes ;;
10569 if test "${system_malloc}" = "yes"; then
10571 $as_echo "#define SYSTEM_MALLOC 1" >>confdefs.h
10574 GNU_MALLOC_reason
="
10575 (The GNU allocators don't work with this system configuration.)"
10579 test "$doug_lea_malloc" != "yes" && GMALLOC_OBJ
=gmalloc.o
10580 VMLIMIT_OBJ
=vm-limit.o
10585 if test "$doug_lea_malloc" = "yes" ; then
10586 if test "$GNU_MALLOC" = yes ; then
10587 GNU_MALLOC_reason
="
10588 (Using Doug Lea's new malloc from the GNU C Library.)"
10591 $as_echo "#define DOUG_LEA_MALLOC 1" >>confdefs.h
10594 ## Use mmap directly for allocating larger buffers.
10595 ## FIXME this comes from src/s/{gnu,gnu-linux}.h:
10596 ## #ifdef DOUG_LEA_MALLOC; #undef REL_ALLOC; #endif
10597 ## Does the AC_FUNC_MMAP test below make this check unnecessary?
10599 gnu
*) REL_ALLOC
=no
;;
10603 if test x
"${REL_ALLOC}" = x
; then
10604 REL_ALLOC
=${GNU_MALLOC}
10607 use_mmap_for_buffers
=no
10609 cygwin|freebsd|irix6-5
) use_mmap_for_buffers
=yes ;;
10615 for ac_header
in $ac_header_list
10617 as_ac_Header
=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
10618 ac_fn_c_check_header_compile
"$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
10620 eval as_val
=\$
$as_ac_Header
10621 if test "x$as_val" = x
""yes; then :
10622 cat >>confdefs.h
<<_ACEOF
10623 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
10637 for ac_func
in getpagesize
10639 ac_fn_c_check_func
"$LINENO" "getpagesize" "ac_cv_func_getpagesize"
10640 if test "x$ac_cv_func_getpagesize" = x
""yes; then :
10641 cat >>confdefs.h
<<_ACEOF
10642 #define HAVE_GETPAGESIZE 1
10648 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working mmap" >&5
10649 $as_echo_n "checking for working mmap... " >&6; }
10650 if test "${ac_cv_func_mmap_fixed_mapped+set}" = set; then :
10651 $as_echo_n "(cached) " >&6
10653 if test "$cross_compiling" = yes; then :
10654 ac_cv_func_mmap_fixed_mapped
=no
10656 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
10657 /* end confdefs.h. */
10658 $ac_includes_default
10659 /* malloc might have been renamed as rpl_malloc. */
10662 /* Thanks to Mike Haertel and Jim Avera for this test.
10663 Here is a matrix of mmap possibilities:
10664 mmap private not fixed
10665 mmap private fixed at somewhere currently unmapped
10666 mmap private fixed at somewhere already mapped
10667 mmap shared not fixed
10668 mmap shared fixed at somewhere currently unmapped
10669 mmap shared fixed at somewhere already mapped
10670 For private mappings, we should verify that changes cannot be read()
10671 back from the file, nor mmap's back from the file at a different
10672 address. (There have been systems where private was not correctly
10673 implemented like the infamous i386 svr4.0, and systems where the
10674 VM page cache was not coherent with the file system buffer cache
10675 like early versions of FreeBSD and possibly contemporary NetBSD.)
10676 For shared mappings, we should conversely verify that changes get
10677 propagated back to all the places they're supposed to be.
10679 Grep wants private fixed already mapped.
10680 The main things grep needs to know about mmap are:
10681 * does it exist and is it safe to write into the mmap'd area
10682 * how to use it (BSD variants) */
10685 #include <sys/mman.h>
10687 #if !defined STDC_HEADERS && !defined HAVE_STDLIB_H
10691 /* This mess was copied from the GNU getpagesize.h. */
10692 #ifndef HAVE_GETPAGESIZE
10693 # ifdef _SC_PAGESIZE
10694 # define getpagesize() sysconf(_SC_PAGESIZE)
10695 # else /* no _SC_PAGESIZE */
10696 # ifdef HAVE_SYS_PARAM_H
10697 # include <sys/param.h>
10698 # ifdef EXEC_PAGESIZE
10699 # define getpagesize() EXEC_PAGESIZE
10700 # else /* no EXEC_PAGESIZE */
10702 # define getpagesize() NBPG * CLSIZE
10705 # endif /* no CLSIZE */
10706 # else /* no NBPG */
10708 # define getpagesize() NBPC
10709 # else /* no NBPC */
10711 # define getpagesize() PAGESIZE
10712 # endif /* PAGESIZE */
10713 # endif /* no NBPC */
10714 # endif /* no NBPG */
10715 # endif /* no EXEC_PAGESIZE */
10716 # else /* no HAVE_SYS_PARAM_H */
10717 # define getpagesize() 8192 /* punt totally */
10718 # endif /* no HAVE_SYS_PARAM_H */
10719 # endif /* no _SC_PAGESIZE */
10721 #endif /* no HAVE_GETPAGESIZE */
10726 char *data, *data2, *data3;
10727 const char *cdata2;
10731 pagesize = getpagesize ();
10733 /* First, make a file with some known garbage in it. */
10734 data = (char *) malloc (pagesize);
10737 for (i = 0; i < pagesize; ++i)
10738 *(data + i) = rand ();
10740 fd = creat ("conftest.mmap", 0600);
10743 if (write (fd, data, pagesize) != pagesize)
10747 /* Next, check that the tail of a page is zero-filled. File must have
10748 non-zero length, otherwise we risk SIGBUS for entire page. */
10749 fd2 = open ("conftest.txt", O_RDWR | O_CREAT | O_TRUNC, 0600);
10753 if (write (fd2, cdata2, 1) != 1)
10755 data2 = (char *) mmap (0, pagesize, PROT_READ | PROT_WRITE, MAP_SHARED, fd2, 0L);
10756 if (data2 == MAP_FAILED)
10758 for (i = 0; i < pagesize; ++i)
10762 if (munmap (data2, pagesize))
10765 /* Next, try to mmap the file at a fixed address which already has
10766 something else allocated at it. If we can, also make sure that
10767 we see the same garbage. */
10768 fd = open ("conftest.mmap", O_RDWR);
10771 if (data2 != mmap (data2, pagesize, PROT_READ | PROT_WRITE,
10772 MAP_PRIVATE | MAP_FIXED, fd, 0L))
10774 for (i = 0; i < pagesize; ++i)
10775 if (*(data + i) != *(data2 + i))
10778 /* Finally, make sure that changes to the mapped area do not
10779 percolate back to the file as seen by read(). (This is a bug on
10780 some variants of i386 svr4.0.) */
10781 for (i = 0; i < pagesize; ++i)
10782 *(data2 + i) = *(data2 + i) + 1;
10783 data3 = (char *) malloc (pagesize);
10786 if (read (fd, data3, pagesize) != pagesize)
10788 for (i = 0; i < pagesize; ++i)
10789 if (*(data + i) != *(data3 + i))
10795 if ac_fn_c_try_run
"$LINENO"; then :
10796 ac_cv_func_mmap_fixed_mapped
=yes
10798 ac_cv_func_mmap_fixed_mapped
=no
10800 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
10801 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
10805 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_mmap_fixed_mapped" >&5
10806 $as_echo "$ac_cv_func_mmap_fixed_mapped" >&6; }
10807 if test $ac_cv_func_mmap_fixed_mapped = yes; then
10809 $as_echo "#define HAVE_MMAP 1" >>confdefs.h
10812 rm -f conftest.mmap conftest.txt
10814 if test $use_mmap_for_buffers = yes; then
10816 $as_echo "#define USE_MMAP_FOR_BUFFERS 1" >>confdefs.h
10821 LIBS
="$LIBS_SYSTEM $LIBS"
10823 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dnet_ntoa in -ldnet" >&5
10824 $as_echo_n "checking for dnet_ntoa in -ldnet... " >&6; }
10825 if test "${ac_cv_lib_dnet_dnet_ntoa+set}" = set; then :
10826 $as_echo_n "(cached) " >&6
10828 ac_check_lib_save_LIBS
=$LIBS
10829 LIBS
="-ldnet $LIBS"
10830 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
10831 /* end confdefs.h. */
10833 /* Override any GCC internal prototype to avoid an error.
10834 Use char because int might match the return type of a GCC
10835 builtin and then its argument prototype would still apply. */
10843 return dnet_ntoa ();
10848 if ac_fn_c_try_link
"$LINENO"; then :
10849 ac_cv_lib_dnet_dnet_ntoa
=yes
10851 ac_cv_lib_dnet_dnet_ntoa
=no
10853 rm -f core conftest.err conftest.
$ac_objext \
10854 conftest
$ac_exeext conftest.
$ac_ext
10855 LIBS
=$ac_check_lib_save_LIBS
10857 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dnet_dnet_ntoa" >&5
10858 $as_echo "$ac_cv_lib_dnet_dnet_ntoa" >&6; }
10859 if test "x$ac_cv_lib_dnet_dnet_ntoa" = x
""yes; then :
10860 cat >>confdefs.h
<<_ACEOF
10861 #define HAVE_LIBDNET 1
10864 LIBS
="-ldnet $LIBS"
10869 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for main in -lXbsd" >&5
10870 $as_echo_n "checking for main in -lXbsd... " >&6; }
10871 if test "${ac_cv_lib_Xbsd_main+set}" = set; then :
10872 $as_echo_n "(cached) " >&6
10874 ac_check_lib_save_LIBS
=$LIBS
10875 LIBS
="-lXbsd $LIBS"
10876 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
10877 /* end confdefs.h. */
10888 if ac_fn_c_try_link
"$LINENO"; then :
10889 ac_cv_lib_Xbsd_main
=yes
10891 ac_cv_lib_Xbsd_main
=no
10893 rm -f core conftest.err conftest.
$ac_objext \
10894 conftest
$ac_exeext conftest.
$ac_ext
10895 LIBS
=$ac_check_lib_save_LIBS
10897 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_Xbsd_main" >&5
10898 $as_echo "$ac_cv_lib_Xbsd_main" >&6; }
10899 if test "x$ac_cv_lib_Xbsd_main" = x
""yes; then :
10900 LD_SWITCH_X_SITE
="$LD_SWITCH_X_SITE -lXbsd"
10905 for ac_header
in pthread.h
10907 ac_fn_c_check_header_mongrel
"$LINENO" "pthread.h" "ac_cv_header_pthread_h" "$ac_includes_default"
10908 if test "x$ac_cv_header_pthread_h" = x
""yes; then :
10909 cat >>confdefs.h
<<_ACEOF
10910 #define HAVE_PTHREAD_H 1
10917 if test "$ac_cv_header_pthread_h"; then
10918 if test "$GMALLOC_OBJ" = gmalloc.o
; then
10919 emacs_pthread_function
=pthread_atfork
10921 emacs_pthread_function
=pthread_self
10923 as_ac_Lib
=`$as_echo "ac_cv_lib_pthread_$emacs_pthread_function" | $as_tr_sh`
10924 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $emacs_pthread_function in -lpthread" >&5
10925 $as_echo_n "checking for $emacs_pthread_function in -lpthread... " >&6; }
10926 if { as_var
=$as_ac_Lib; eval "test \"\${$as_var+set}\" = set"; }; then :
10927 $as_echo_n "(cached) " >&6
10929 ac_check_lib_save_LIBS
=$LIBS
10930 LIBS
="-lpthread $LIBS"
10931 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
10932 /* end confdefs.h. */
10934 /* Override any GCC internal prototype to avoid an error.
10935 Use char because int might match the return type of a GCC
10936 builtin and then its argument prototype would still apply. */
10940 char $emacs_pthread_function ();
10944 return $emacs_pthread_function ();
10949 if ac_fn_c_try_link
"$LINENO"; then :
10950 eval "$as_ac_Lib=yes"
10952 eval "$as_ac_Lib=no"
10954 rm -f core conftest.err conftest.
$ac_objext \
10955 conftest
$ac_exeext conftest.
$ac_ext
10956 LIBS
=$ac_check_lib_save_LIBS
10958 eval ac_res
=\$
$as_ac_Lib
10959 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
10960 $as_echo "$ac_res" >&6; }
10961 eval as_val
=\$
$as_ac_Lib
10962 if test "x$as_val" = x
""yes; then :
10967 if test "$HAVE_PTHREAD" = yes; then
10968 case "${canonical}" in
10970 *) LIB_PTHREAD
="-lpthread"
10971 LIBS
="$LIB_PTHREAD $LIBS" ;;
10974 $as_echo "#define HAVE_PTHREAD 1" >>confdefs.h
10979 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for cma_open in -lpthreads" >&5
10980 $as_echo_n "checking for cma_open in -lpthreads... " >&6; }
10981 if test "${ac_cv_lib_pthreads_cma_open+set}" = set; then :
10982 $as_echo_n "(cached) " >&6
10984 ac_check_lib_save_LIBS
=$LIBS
10985 LIBS
="-lpthreads $LIBS"
10986 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
10987 /* end confdefs.h. */
10989 /* Override any GCC internal prototype to avoid an error.
10990 Use char because int might match the return type of a GCC
10991 builtin and then its argument prototype would still apply. */
10999 return cma_open ();
11004 if ac_fn_c_try_link
"$LINENO"; then :
11005 ac_cv_lib_pthreads_cma_open
=yes
11007 ac_cv_lib_pthreads_cma_open
=no
11009 rm -f core conftest.err conftest.
$ac_objext \
11010 conftest
$ac_exeext conftest.
$ac_ext
11011 LIBS
=$ac_check_lib_save_LIBS
11013 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_pthreads_cma_open" >&5
11014 $as_echo "$ac_cv_lib_pthreads_cma_open" >&6; }
11015 if test "x$ac_cv_lib_pthreads_cma_open" = x
""yes; then :
11016 cat >>confdefs.h
<<_ACEOF
11017 #define HAVE_LIBPTHREADS 1
11020 LIBS
="-lpthreads $LIBS"
11025 ## Note: when using cpp in s/aix4.2.h, this definition depended on
11026 ## HAVE_LIBPTHREADS. That was not defined earlier in configure when
11027 ## the system file was sourced. Hence the value of LIBS_SYSTEM
11028 ## added to LIBS in configure would never contain the pthreads part,
11029 ## but the value used in Makefiles might. FIXME?
11031 ## -lpthreads seems to be necessary for Xlib in X11R6, and should
11032 ## be harmless on older versions of X where it happens to exist.
11033 test "$opsys" = "aix4-2" && \
11034 test $ac_cv_lib_pthreads_cma_open = yes && \
11035 LIBS_SYSTEM
="$LIBS_SYSTEM -lpthreads"
11040 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -bbigtoc option" >&5
11041 $as_echo_n "checking for -bbigtoc option... " >&6; }
11042 if test "${gdb_cv_bigtoc+set}" = set; then :
11043 $as_echo_n "(cached) " >&6
11047 yes) gdb_cv_bigtoc
=-Wl,-bbigtoc ;;
11048 *) gdb_cv_bigtoc
=-bbigtoc ;;
11051 LDFLAGS
=$LDFLAGS\
$gdb_cv_bigtoc
11052 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
11053 /* end confdefs.h. */
11063 if ac_fn_c_try_link
"$LINENO"; then :
11068 rm -f core conftest.err conftest.
$ac_objext \
11069 conftest
$ac_exeext conftest.
$ac_ext
11072 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gdb_cv_bigtoc" >&5
11073 $as_echo "$gdb_cv_bigtoc" >&6; }
11077 # Change CFLAGS and CPPFLAGS temporarily so that C_SWITCH_X_SITE gets
11078 # used for the tests that follow. We set them back to REAL_CFLAGS and
11079 # REAL_CPPFLAGS later on.
11081 REAL_CFLAGS
="$CFLAGS"
11082 REAL_CPPFLAGS
="$CPPFLAGS"
11084 if test "${HAVE_X11}" = "yes"; then
11085 DEFS
="$C_SWITCH_X_SITE $DEFS"
11086 LDFLAGS
="$LDFLAGS $LD_SWITCH_X_SITE"
11088 CFLAGS
="$C_SWITCH_X_SITE $CFLAGS"
11089 CPPFLAGS
="$C_SWITCH_X_SITE $CPPFLAGS"
11091 # On Solaris, arrange for LD_RUN_PATH to point to the X libraries for tests.
11092 # This is handled by LD_SWITCH_X_SITE_AUX during the real build,
11093 # but it's more convenient here to set LD_RUN_PATH
11094 # since this also works on hosts that don't understand LD_SWITCH_X_SITE_AUX.
11095 if test "${x_libraries}" != NONE
&& test -n "${x_libraries}"; then
11096 LD_RUN_PATH
=$x_libraries${LD_RUN_PATH+:}$LD_RUN_PATH
11100 if test "${opsys}" = "gnu-linux"; then
11101 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether X on GNU/Linux needs -b to link" >&5
11102 $as_echo_n "checking whether X on GNU/Linux needs -b to link... " >&6; }
11103 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
11104 /* end confdefs.h. */
11109 XOpenDisplay ("foo");
11114 if ac_fn_c_try_link
"$LINENO"; then :
11115 xgnu_linux_first_failure
=no
11117 xgnu_linux_first_failure
=yes
11119 rm -f core conftest.err conftest.
$ac_objext \
11120 conftest
$ac_exeext conftest.
$ac_ext
11121 if test "${xgnu_linux_first_failure}" = "yes"; then
11122 OLD_LD_SWITCH_X_SITE
="$LD_SWITCH_X_SITE"
11123 OLD_C_SWITCH_X_SITE
="$C_SWITCH_X_SITE"
11124 OLD_CPPFLAGS
="$CPPFLAGS"
11126 LD_SWITCH_X_SITE
="$LD_SWITCH_X_SITE -b i486-linuxaout"
11127 C_SWITCH_X_SITE
="$C_SWITCH_X_SITE -b i486-linuxaout"
11128 CPPFLAGS
="$CPPFLAGS -b i486-linuxaout"
11129 LIBS
="$LIBS -b i486-linuxaout"
11130 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
11131 /* end confdefs.h. */
11136 XOpenDisplay ("foo");
11141 if ac_fn_c_try_link
"$LINENO"; then :
11142 xgnu_linux_second_failure
=no
11144 xgnu_linux_second_failure
=yes
11146 rm -f core conftest.err conftest.
$ac_objext \
11147 conftest
$ac_exeext conftest.
$ac_ext
11148 if test "${xgnu_linux_second_failure}" = "yes"; then
11149 # If we get the same failure with -b, there is no use adding -b.
11150 # So take it out. This plays safe.
11151 LD_SWITCH_X_SITE
="$OLD_LD_SWITCH_X_SITE"
11152 C_SWITCH_X_SITE
="$OLD_C_SWITCH_X_SITE"
11153 CPPFLAGS
="$OLD_CPPFLAGS"
11155 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11156 $as_echo "no" >&6; }
11158 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11159 $as_echo "yes" >&6; }
11162 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11163 $as_echo "no" >&6; }
11167 # Reportedly, some broken Solaris systems have XKBlib.h but are missing
11168 # header files included from there.
11169 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Xkb" >&5
11170 $as_echo_n "checking for Xkb... " >&6; }
11171 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
11172 /* end confdefs.h. */
11173 #include <X11/Xlib.h>
11174 #include <X11/XKBlib.h>
11178 XkbDescPtr kb = XkbGetKeyboard (0, XkbAllComponentsMask, XkbUseCoreKbd);
11183 if ac_fn_c_try_link
"$LINENO"; then :
11188 rm -f core conftest.err conftest.
$ac_objext \
11189 conftest
$ac_exeext conftest.
$ac_ext
11190 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $emacs_xkb" >&5
11191 $as_echo "$emacs_xkb" >&6; }
11192 if test $emacs_xkb = yes; then
11194 $as_echo "#define HAVE_XKBGETKEYBOARD 1" >>confdefs.h
11198 for ac_func
in XrmSetDatabase XScreenResourceString \
11199 XScreenNumberOfScreen XSetWMProtocols
11201 as_ac_var
=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
11202 ac_fn_c_check_func
"$LINENO" "$ac_func" "$as_ac_var"
11203 eval as_val
=\$
$as_ac_var
11204 if test "x$as_val" = x
""yes; then :
11205 cat >>confdefs.h
<<_ACEOF
11206 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
11214 if test "${window_system}" = "x11"; then
11215 { $as_echo "$as_me:${as_lineno-$LINENO}: checking X11 version 6" >&5
11216 $as_echo_n "checking X11 version 6... " >&6; }
11217 if test "${emacs_cv_x11_version_6+set}" = set; then :
11218 $as_echo_n "(cached) " >&6
11220 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
11221 /* end confdefs.h. */
11222 #include <X11/Xlib.h>
11226 #if XlibSpecificationRelease < 6
11234 if ac_fn_c_try_link
"$LINENO"; then :
11235 emacs_cv_x11_version_6
=yes
11237 emacs_cv_x11_version_6
=no
11239 rm -f core conftest.err conftest.
$ac_objext \
11240 conftest
$ac_exeext conftest.
$ac_ext
11243 if test $emacs_cv_x11_version_6 = yes; then
11244 { $as_echo "$as_me:${as_lineno-$LINENO}: result: 6 or newer" >&5
11245 $as_echo "6 or newer" >&6; }
11247 $as_echo "#define HAVE_X11R6 1" >>confdefs.h
11250 $as_echo "#define HAVE_X_I18N 1" >>confdefs.h
11252 ## inoue@ainet.or.jp says Solaris has a bug related to X11R6-style
11257 $as_echo "#define HAVE_X11R6_XIM 1" >>confdefs.h
11262 { $as_echo "$as_me:${as_lineno-$LINENO}: result: before 6" >&5
11263 $as_echo "before 6" >&6; }
11268 ### Use -lrsvg-2 if available, unless `--with-rsvg=no' is specified.
11270 if test "${HAVE_X11}" = "yes" ||
test "${HAVE_NS}" = "yes"; then
11271 if test "${with_rsvg}" != "no"; then
11272 RSVG_REQUIRED
=2.11.0
11273 RSVG_MODULE
="librsvg-2.0 >= $RSVG_REQUIRED"
11278 # Extract the first word of "pkg-config", so it can be a program name with args.
11279 set dummy pkg-config
; ac_word
=$2
11280 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11281 $as_echo_n "checking for $ac_word... " >&6; }
11282 if test "${ac_cv_path_PKG_CONFIG+set}" = set; then :
11283 $as_echo_n "(cached) " >&6
11285 case $PKG_CONFIG in
11287 ac_cv_path_PKG_CONFIG
="$PKG_CONFIG" # Let the user override the test with a path.
11290 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
11291 for as_dir
in $PATH
11294 test -z "$as_dir" && as_dir
=.
11295 for ac_exec_ext
in '' $ac_executable_extensions; do
11296 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11297 ac_cv_path_PKG_CONFIG
="$as_dir/$ac_word$ac_exec_ext"
11298 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11305 test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG
="no"
11309 PKG_CONFIG
=$ac_cv_path_PKG_CONFIG
11310 if test -n "$PKG_CONFIG"; then
11311 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5
11312 $as_echo "$PKG_CONFIG" >&6; }
11314 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11315 $as_echo "no" >&6; }
11320 if test "$PKG_CONFIG" = "no" ; then
11323 PKG_CONFIG_MIN_VERSION
=0.9.0
11324 if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
11325 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $RSVG_MODULE" >&5
11326 $as_echo_n "checking for $RSVG_MODULE... " >&6; }
11328 if $PKG_CONFIG --exists "$RSVG_MODULE" 2>&5 &&
11329 RSVG_CFLAGS
=`$PKG_CONFIG --cflags "$RSVG_MODULE" 2>&5` &&
11330 RSVG_LIBS
=`$PKG_CONFIG --libs "$RSVG_MODULE" 2>&5`; then
11337 RSVG_CFLAGS
=`$as_echo "$RSVG_CFLAGS" | sed -e "$edit_cflags"`
11338 RSVG_LIBS
=`$as_echo "$RSVG_LIBS" | sed -e 's,///*,/,g'`
11339 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes CFLAGS='$RSVG_CFLAGS' LIBS='$RSVG_LIBS'" >&5
11340 $as_echo "yes CFLAGS='$RSVG_CFLAGS' LIBS='$RSVG_LIBS'" >&6; }
11343 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11344 $as_echo "no" >&6; }
11347 ## If we have a custom action on failure, don't print errors, but
11348 ## do set a variable so people can do so.
11349 RSVG_PKG_ERRORS
=`$PKG_CONFIG --errors-to-stdout --print-errors "$RSVG_MODULE"`
11356 echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
11357 echo "*** See http://www.freedesktop.org/software/pkgconfig"
11361 if test $succeeded = yes; then
11370 if test $HAVE_RSVG = yes; then
11372 $as_echo "#define HAVE_RSVG 1" >>confdefs.h
11374 CFLAGS
="$CFLAGS $RSVG_CFLAGS"
11375 LIBS
="$RSVG_LIBS $LIBS"
11380 HAVE_IMAGEMAGICK
=no
11381 if test "${HAVE_X11}" = "yes"; then
11382 if test "${with_imagemagick}" != "no"; then
11383 ## 6.2.8 is the earliest version known to work, but earlier versions
11384 ## might work - let us know if you find one.
11385 ## 6.0.7 does not work. See bug#7955.
11386 IMAGEMAGICK_MODULE
="Wand >= 6.2.8"
11390 # Extract the first word of "pkg-config", so it can be a program name with args.
11391 set dummy pkg-config
; ac_word
=$2
11392 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11393 $as_echo_n "checking for $ac_word... " >&6; }
11394 if test "${ac_cv_path_PKG_CONFIG+set}" = set; then :
11395 $as_echo_n "(cached) " >&6
11397 case $PKG_CONFIG in
11399 ac_cv_path_PKG_CONFIG
="$PKG_CONFIG" # Let the user override the test with a path.
11402 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
11403 for as_dir
in $PATH
11406 test -z "$as_dir" && as_dir
=.
11407 for ac_exec_ext
in '' $ac_executable_extensions; do
11408 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11409 ac_cv_path_PKG_CONFIG
="$as_dir/$ac_word$ac_exec_ext"
11410 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11417 test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG
="no"
11421 PKG_CONFIG
=$ac_cv_path_PKG_CONFIG
11422 if test -n "$PKG_CONFIG"; then
11423 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5
11424 $as_echo "$PKG_CONFIG" >&6; }
11426 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11427 $as_echo "no" >&6; }
11432 if test "$PKG_CONFIG" = "no" ; then
11435 PKG_CONFIG_MIN_VERSION
=0.9.0
11436 if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
11437 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $IMAGEMAGICK_MODULE" >&5
11438 $as_echo_n "checking for $IMAGEMAGICK_MODULE... " >&6; }
11440 if $PKG_CONFIG --exists "$IMAGEMAGICK_MODULE" 2>&5 &&
11441 IMAGEMAGICK_CFLAGS
=`$PKG_CONFIG --cflags "$IMAGEMAGICK_MODULE" 2>&5` &&
11442 IMAGEMAGICK_LIBS
=`$PKG_CONFIG --libs "$IMAGEMAGICK_MODULE" 2>&5`; then
11449 IMAGEMAGICK_CFLAGS
=`$as_echo "$IMAGEMAGICK_CFLAGS" | sed -e "$edit_cflags"`
11450 IMAGEMAGICK_LIBS
=`$as_echo "$IMAGEMAGICK_LIBS" | sed -e 's,///*,/,g'`
11451 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes CFLAGS='$IMAGEMAGICK_CFLAGS' LIBS='$IMAGEMAGICK_LIBS'" >&5
11452 $as_echo "yes CFLAGS='$IMAGEMAGICK_CFLAGS' LIBS='$IMAGEMAGICK_LIBS'" >&6; }
11455 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11456 $as_echo "no" >&6; }
11457 IMAGEMAGICK_CFLAGS
=""
11458 IMAGEMAGICK_LIBS
=""
11459 ## If we have a custom action on failure, don't print errors, but
11460 ## do set a variable so people can do so.
11461 IMAGEMAGICK_PKG_ERRORS
=`$PKG_CONFIG --errors-to-stdout --print-errors "$IMAGEMAGICK_MODULE"`
11468 echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
11469 echo "*** See http://www.freedesktop.org/software/pkgconfig"
11473 if test $succeeded = yes; then
11474 HAVE_IMAGEMAGICK
=yes
11482 if test $HAVE_IMAGEMAGICK = yes; then
11484 $as_echo "#define HAVE_IMAGEMAGICK 1" >>confdefs.h
11486 CFLAGS
="$CFLAGS $IMAGEMAGICK_CFLAGS"
11487 LIBS
="$IMAGEMAGICK_LIBS $LIBS"
11488 for ac_func
in MagickExportImagePixels
11490 ac_fn_c_check_func
"$LINENO" "MagickExportImagePixels" "ac_cv_func_MagickExportImagePixels"
11491 if test "x$ac_cv_func_MagickExportImagePixels" = x
""yes; then :
11492 cat >>confdefs.h
<<_ACEOF
11493 #define HAVE_MAGICKEXPORTIMAGEPIXELS 1
11506 if test "${with_gtk3}" = "yes"; then
11509 GTK_MODULES
="gtk+-3.0 >= $GTK_REQUIRED glib-2.0 >= $GLIB_REQUIRED"
11514 # Extract the first word of "pkg-config", so it can be a program name with args.
11515 set dummy pkg-config
; ac_word
=$2
11516 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11517 $as_echo_n "checking for $ac_word... " >&6; }
11518 if test "${ac_cv_path_PKG_CONFIG+set}" = set; then :
11519 $as_echo_n "(cached) " >&6
11521 case $PKG_CONFIG in
11523 ac_cv_path_PKG_CONFIG
="$PKG_CONFIG" # Let the user override the test with a path.
11526 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
11527 for as_dir
in $PATH
11530 test -z "$as_dir" && as_dir
=.
11531 for ac_exec_ext
in '' $ac_executable_extensions; do
11532 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11533 ac_cv_path_PKG_CONFIG
="$as_dir/$ac_word$ac_exec_ext"
11534 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11541 test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG
="no"
11545 PKG_CONFIG
=$ac_cv_path_PKG_CONFIG
11546 if test -n "$PKG_CONFIG"; then
11547 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5
11548 $as_echo "$PKG_CONFIG" >&6; }
11550 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11551 $as_echo "no" >&6; }
11556 if test "$PKG_CONFIG" = "no" ; then
11559 PKG_CONFIG_MIN_VERSION
=0.9.0
11560 if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
11561 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $GTK_MODULES" >&5
11562 $as_echo_n "checking for $GTK_MODULES... " >&6; }
11564 if $PKG_CONFIG --exists "$GTK_MODULES" 2>&5 &&
11565 GTK_CFLAGS
=`$PKG_CONFIG --cflags "$GTK_MODULES" 2>&5` &&
11566 GTK_LIBS
=`$PKG_CONFIG --libs "$GTK_MODULES" 2>&5`; then
11573 GTK_CFLAGS
=`$as_echo "$GTK_CFLAGS" | sed -e "$edit_cflags"`
11574 GTK_LIBS
=`$as_echo "$GTK_LIBS" | sed -e 's,///*,/,g'`
11575 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes CFLAGS='$GTK_CFLAGS' LIBS='$GTK_LIBS'" >&5
11576 $as_echo "yes CFLAGS='$GTK_CFLAGS' LIBS='$GTK_LIBS'" >&6; }
11579 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11580 $as_echo "no" >&6; }
11583 ## If we have a custom action on failure, don't print errors, but
11584 ## do set a variable so people can do so.
11585 GTK_PKG_ERRORS
=`$PKG_CONFIG --errors-to-stdout --print-errors "$GTK_MODULES"`
11592 echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
11593 echo "*** See http://www.freedesktop.org/software/pkgconfig"
11597 if test $succeeded = yes; then
11603 if test "$pkg_check_gtk" = "no" && test "$USE_X_TOOLKIT" != "maybe"; then
11604 as_fn_error
"$GTK_PKG_ERRORS" "$LINENO" 5
11607 $as_echo "#define HAVE_GTK3 1" >>confdefs.h
11609 GTK_OBJ
=emacsgtkfixed.o
11612 if test "$pkg_check_gtk" != "yes"; then
11614 if test "${with_gtk}" = "yes" ||
test "$USE_X_TOOLKIT" = "maybe"; then
11617 GTK_MODULES
="gtk+-2.0 >= $GTK_REQUIRED glib-2.0 >= $GLIB_REQUIRED"
11622 # Extract the first word of "pkg-config", so it can be a program name with args.
11623 set dummy pkg-config
; ac_word
=$2
11624 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11625 $as_echo_n "checking for $ac_word... " >&6; }
11626 if test "${ac_cv_path_PKG_CONFIG+set}" = set; then :
11627 $as_echo_n "(cached) " >&6
11629 case $PKG_CONFIG in
11631 ac_cv_path_PKG_CONFIG
="$PKG_CONFIG" # Let the user override the test with a path.
11634 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
11635 for as_dir
in $PATH
11638 test -z "$as_dir" && as_dir
=.
11639 for ac_exec_ext
in '' $ac_executable_extensions; do
11640 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11641 ac_cv_path_PKG_CONFIG
="$as_dir/$ac_word$ac_exec_ext"
11642 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11649 test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG
="no"
11653 PKG_CONFIG
=$ac_cv_path_PKG_CONFIG
11654 if test -n "$PKG_CONFIG"; then
11655 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5
11656 $as_echo "$PKG_CONFIG" >&6; }
11658 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11659 $as_echo "no" >&6; }
11664 if test "$PKG_CONFIG" = "no" ; then
11667 PKG_CONFIG_MIN_VERSION
=0.9.0
11668 if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
11669 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $GTK_MODULES" >&5
11670 $as_echo_n "checking for $GTK_MODULES... " >&6; }
11672 if $PKG_CONFIG --exists "$GTK_MODULES" 2>&5 &&
11673 GTK_CFLAGS
=`$PKG_CONFIG --cflags "$GTK_MODULES" 2>&5` &&
11674 GTK_LIBS
=`$PKG_CONFIG --libs "$GTK_MODULES" 2>&5`; then
11681 GTK_CFLAGS
=`$as_echo "$GTK_CFLAGS" | sed -e "$edit_cflags"`
11682 GTK_LIBS
=`$as_echo "$GTK_LIBS" | sed -e 's,///*,/,g'`
11683 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes CFLAGS='$GTK_CFLAGS' LIBS='$GTK_LIBS'" >&5
11684 $as_echo "yes CFLAGS='$GTK_CFLAGS' LIBS='$GTK_LIBS'" >&6; }
11687 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11688 $as_echo "no" >&6; }
11691 ## If we have a custom action on failure, don't print errors, but
11692 ## do set a variable so people can do so.
11693 GTK_PKG_ERRORS
=`$PKG_CONFIG --errors-to-stdout --print-errors "$GTK_MODULES"`
11700 echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
11701 echo "*** See http://www.freedesktop.org/software/pkgconfig"
11705 if test $succeeded = yes; then
11711 if test "$pkg_check_gtk" = "no" && test "$USE_X_TOOLKIT" != "maybe"; then
11712 as_fn_error
"$GTK_PKG_ERRORS" "$LINENO" 5
11717 if test x
"$pkg_check_gtk" = xyes
; then
11721 C_SWITCH_X_SITE
="$C_SWITCH_X_SITE $GTK_CFLAGS"
11722 CFLAGS
="$CFLAGS $GTK_CFLAGS"
11723 LIBS
="$GTK_LIBS $LIBS"
11725 for ac_func
in gtk_main
11727 ac_fn_c_check_func
"$LINENO" "gtk_main" "ac_cv_func_gtk_main"
11728 if test "x$ac_cv_func_gtk_main" = x
""yes; then :
11729 cat >>confdefs.h
<<_ACEOF
11730 #define HAVE_GTK_MAIN 1
11736 if test "${GTK_COMPILES}" != "yes"; then
11737 if test "$USE_X_TOOLKIT" != "maybe"; then
11738 as_fn_error
"Gtk+ wanted, but it does not compile, see config.log. Maybe some x11-devel files missing?" "$LINENO" 5;
11743 $as_echo "#define USE_GTK 1" >>confdefs.h
11745 GTK_OBJ
="gtkutil.o $GTK_OBJ"
11747 if $PKG_CONFIG --atleast-version=2.10 gtk
+-2.0
; then
11750 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Your version of Gtk+ will have problems with
11751 closing open displays. This is no problem if you just use
11752 one display, but if you use more than one and close one of them
11753 Emacs may crash." >&5
11754 $as_echo "$as_me: WARNING: Your version of Gtk+ will have problems with
11755 closing open displays. This is no problem if you just use
11756 one display, but if you use more than one and close one of them
11757 Emacs may crash." >&2;}
11766 if test "${HAVE_GTK}" = "yes"; then
11768 if test "$with_toolkit_scroll_bars" != no
; then
11769 with_toolkit_scroll_bars
=yes
11772 HAVE_GTK_FILE_SELECTION
=no
11773 ac_fn_c_check_decl
"$LINENO" "GTK_TYPE_FILE_SELECTION" "ac_cv_have_decl_GTK_TYPE_FILE_SELECTION" "$ac_includes_default
11774 #include <gtk/gtk.h>
11776 if test "x$ac_cv_have_decl_GTK_TYPE_FILE_SELECTION" = x
""yes; then :
11777 HAVE_GTK_FILE_SELECTION
=yes
11779 HAVE_GTK_FILE_SELECTION
=no
11782 if test "$HAVE_GTK_FILE_SELECTION" = yes; then
11783 for ac_func
in gtk_file_selection_new
11785 ac_fn_c_check_func
"$LINENO" "gtk_file_selection_new" "ac_cv_func_gtk_file_selection_new"
11786 if test "x$ac_cv_func_gtk_file_selection_new" = x
""yes; then :
11787 cat >>confdefs.h
<<_ACEOF
11788 #define HAVE_GTK_FILE_SELECTION_NEW 1
11797 for ac_func
in gtk_widget_get_window gtk_widget_set_has_window \
11798 gtk_dialog_get_action_area gtk_widget_get_sensitive \
11799 gtk_widget_get_mapped gtk_adjustment_get_page_size \
11800 gtk_orientable_set_orientation \
11801 gtk_window_set_has_resize_grip
11803 as_ac_var
=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
11804 ac_fn_c_check_func
"$LINENO" "$ac_func" "$as_ac_var"
11805 eval as_val
=\$
$as_ac_var
11806 if test "x$as_val" = x
""yes; then :
11807 cat >>confdefs.h
<<_ACEOF
11808 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
11818 if test "${with_dbus}" = "yes"; then
11822 # Extract the first word of "pkg-config", so it can be a program name with args.
11823 set dummy pkg-config
; ac_word
=$2
11824 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11825 $as_echo_n "checking for $ac_word... " >&6; }
11826 if test "${ac_cv_path_PKG_CONFIG+set}" = set; then :
11827 $as_echo_n "(cached) " >&6
11829 case $PKG_CONFIG in
11831 ac_cv_path_PKG_CONFIG
="$PKG_CONFIG" # Let the user override the test with a path.
11834 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
11835 for as_dir
in $PATH
11838 test -z "$as_dir" && as_dir
=.
11839 for ac_exec_ext
in '' $ac_executable_extensions; do
11840 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11841 ac_cv_path_PKG_CONFIG
="$as_dir/$ac_word$ac_exec_ext"
11842 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11849 test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG
="no"
11853 PKG_CONFIG
=$ac_cv_path_PKG_CONFIG
11854 if test -n "$PKG_CONFIG"; then
11855 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5
11856 $as_echo "$PKG_CONFIG" >&6; }
11858 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11859 $as_echo "no" >&6; }
11864 if test "$PKG_CONFIG" = "no" ; then
11867 PKG_CONFIG_MIN_VERSION
=0.9.0
11868 if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
11869 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dbus-1 >= 1.0" >&5
11870 $as_echo_n "checking for dbus-1 >= 1.0... " >&6; }
11872 if $PKG_CONFIG --exists "dbus-1 >= 1.0" 2>&5 &&
11873 DBUS_CFLAGS
=`$PKG_CONFIG --cflags "dbus-1 >= 1.0" 2>&5` &&
11874 DBUS_LIBS
=`$PKG_CONFIG --libs "dbus-1 >= 1.0" 2>&5`; then
11881 DBUS_CFLAGS
=`$as_echo "$DBUS_CFLAGS" | sed -e "$edit_cflags"`
11882 DBUS_LIBS
=`$as_echo "$DBUS_LIBS" | sed -e 's,///*,/,g'`
11883 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes CFLAGS='$DBUS_CFLAGS' LIBS='$DBUS_LIBS'" >&5
11884 $as_echo "yes CFLAGS='$DBUS_CFLAGS' LIBS='$DBUS_LIBS'" >&6; }
11887 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11888 $as_echo "no" >&6; }
11891 ## If we have a custom action on failure, don't print errors, but
11892 ## do set a variable so people can do so.
11893 DBUS_PKG_ERRORS
=`$PKG_CONFIG --errors-to-stdout --print-errors "dbus-1 >= 1.0"`
11900 echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
11901 echo "*** See http://www.freedesktop.org/software/pkgconfig"
11905 if test $succeeded = yes; then
11911 if test "$HAVE_DBUS" = yes; then
11912 LIBS
="$LIBS $DBUS_LIBS"
11914 $as_echo "#define HAVE_DBUS 1" >>confdefs.h
11916 for ac_func
in dbus_watch_get_unix_fd \
11917 dbus_validate_bus_name \
11918 dbus_validate_path \
11919 dbus_validate_interface \
11920 dbus_validate_member
11922 as_ac_var
=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
11923 ac_fn_c_check_func
"$LINENO" "$ac_func" "$as_ac_var"
11924 eval as_val
=\$
$as_ac_var
11925 if test "x$as_val" = x
""yes; then :
11926 cat >>confdefs.h
<<_ACEOF
11927 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
11933 DBUS_OBJ
=dbusbind.o
11939 if test "${HAVE_X11}" = "yes" && test "${with_gsettings}" = "yes"; then
11943 # Extract the first word of "pkg-config", so it can be a program name with args.
11944 set dummy pkg-config
; ac_word
=$2
11945 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11946 $as_echo_n "checking for $ac_word... " >&6; }
11947 if test "${ac_cv_path_PKG_CONFIG+set}" = set; then :
11948 $as_echo_n "(cached) " >&6
11950 case $PKG_CONFIG in
11952 ac_cv_path_PKG_CONFIG
="$PKG_CONFIG" # Let the user override the test with a path.
11955 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
11956 for as_dir
in $PATH
11959 test -z "$as_dir" && as_dir
=.
11960 for ac_exec_ext
in '' $ac_executable_extensions; do
11961 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11962 ac_cv_path_PKG_CONFIG
="$as_dir/$ac_word$ac_exec_ext"
11963 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11970 test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG
="no"
11974 PKG_CONFIG
=$ac_cv_path_PKG_CONFIG
11975 if test -n "$PKG_CONFIG"; then
11976 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5
11977 $as_echo "$PKG_CONFIG" >&6; }
11979 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11980 $as_echo "no" >&6; }
11985 if test "$PKG_CONFIG" = "no" ; then
11988 PKG_CONFIG_MIN_VERSION
=0.9.0
11989 if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
11990 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gio-2.0 >= 2.26" >&5
11991 $as_echo_n "checking for gio-2.0 >= 2.26... " >&6; }
11993 if $PKG_CONFIG --exists "gio-2.0 >= 2.26" 2>&5 &&
11994 GSETTINGS_CFLAGS
=`$PKG_CONFIG --cflags "gio-2.0 >= 2.26" 2>&5` &&
11995 GSETTINGS_LIBS
=`$PKG_CONFIG --libs "gio-2.0 >= 2.26" 2>&5`; then
12002 GSETTINGS_CFLAGS
=`$as_echo "$GSETTINGS_CFLAGS" | sed -e "$edit_cflags"`
12003 GSETTINGS_LIBS
=`$as_echo "$GSETTINGS_LIBS" | sed -e 's,///*,/,g'`
12004 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes CFLAGS='$GSETTINGS_CFLAGS' LIBS='$GSETTINGS_LIBS'" >&5
12005 $as_echo "yes CFLAGS='$GSETTINGS_CFLAGS' LIBS='$GSETTINGS_LIBS'" >&6; }
12008 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12009 $as_echo "no" >&6; }
12010 GSETTINGS_CFLAGS
=""
12012 ## If we have a custom action on failure, don't print errors, but
12013 ## do set a variable so people can do so.
12014 GSETTINGS_PKG_ERRORS
=`$PKG_CONFIG --errors-to-stdout --print-errors "gio-2.0 >= 2.26"`
12021 echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
12022 echo "*** See http://www.freedesktop.org/software/pkgconfig"
12026 if test $succeeded = yes; then
12032 if test "$HAVE_GSETTINGS" = "yes"; then
12034 $as_echo "#define HAVE_GSETTINGS 1" >>confdefs.h
12036 SETTINGS_CFLAGS
="$GSETTINGS_CFLAGS"
12037 SETTINGS_LIBS
="$GSETTINGS_LIBS"
12042 if test "${HAVE_X11}" = "yes" && test "${with_gconf}" = "yes"; then
12046 # Extract the first word of "pkg-config", so it can be a program name with args.
12047 set dummy pkg-config
; ac_word
=$2
12048 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12049 $as_echo_n "checking for $ac_word... " >&6; }
12050 if test "${ac_cv_path_PKG_CONFIG+set}" = set; then :
12051 $as_echo_n "(cached) " >&6
12053 case $PKG_CONFIG in
12055 ac_cv_path_PKG_CONFIG
="$PKG_CONFIG" # Let the user override the test with a path.
12058 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
12059 for as_dir
in $PATH
12062 test -z "$as_dir" && as_dir
=.
12063 for ac_exec_ext
in '' $ac_executable_extensions; do
12064 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
12065 ac_cv_path_PKG_CONFIG
="$as_dir/$ac_word$ac_exec_ext"
12066 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12073 test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG
="no"
12077 PKG_CONFIG
=$ac_cv_path_PKG_CONFIG
12078 if test -n "$PKG_CONFIG"; then
12079 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5
12080 $as_echo "$PKG_CONFIG" >&6; }
12082 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12083 $as_echo "no" >&6; }
12088 if test "$PKG_CONFIG" = "no" ; then
12091 PKG_CONFIG_MIN_VERSION
=0.9.0
12092 if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
12093 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gconf-2.0 >= 2.13" >&5
12094 $as_echo_n "checking for gconf-2.0 >= 2.13... " >&6; }
12096 if $PKG_CONFIG --exists "gconf-2.0 >= 2.13" 2>&5 &&
12097 GCONF_CFLAGS
=`$PKG_CONFIG --cflags "gconf-2.0 >= 2.13" 2>&5` &&
12098 GCONF_LIBS
=`$PKG_CONFIG --libs "gconf-2.0 >= 2.13" 2>&5`; then
12105 GCONF_CFLAGS
=`$as_echo "$GCONF_CFLAGS" | sed -e "$edit_cflags"`
12106 GCONF_LIBS
=`$as_echo "$GCONF_LIBS" | sed -e 's,///*,/,g'`
12107 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes CFLAGS='$GCONF_CFLAGS' LIBS='$GCONF_LIBS'" >&5
12108 $as_echo "yes CFLAGS='$GCONF_CFLAGS' LIBS='$GCONF_LIBS'" >&6; }
12111 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12112 $as_echo "no" >&6; }
12115 ## If we have a custom action on failure, don't print errors, but
12116 ## do set a variable so people can do so.
12117 GCONF_PKG_ERRORS
=`$PKG_CONFIG --errors-to-stdout --print-errors "gconf-2.0 >= 2.13"`
12124 echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
12125 echo "*** See http://www.freedesktop.org/software/pkgconfig"
12129 if test $succeeded = yes; then
12135 if test "$HAVE_GCONF" = yes; then
12137 $as_echo "#define HAVE_GCONF 1" >>confdefs.h
12139 SETTINGS_CFLAGS
="$SETTINGS_CFLAGS $GCONF_CFLAGS"
12140 SETTINGS_LIBS
="$SETTINGS_LIBS $GCONF_LIBS"
12144 if test "$HAVE_GSETTINGS" = "yes" ||
test "$HAVE_GCONF" = "yes"; then
12145 SAVE_CFLAGS
="$CFLAGS"
12147 CFLAGS
="$SETTINGS_CFLAGS $CFLAGS"
12148 LIBS
="$SETTINGS_LIBS $LIBS"
12149 for ac_func
in g_type_init
12151 ac_fn_c_check_func
"$LINENO" "g_type_init" "ac_cv_func_g_type_init"
12152 if test "x$ac_cv_func_g_type_init" = x
""yes; then :
12153 cat >>confdefs.h
<<_ACEOF
12154 #define HAVE_G_TYPE_INIT 1
12160 CFLAGS
="$SAVE_CFLAGS"
12169 if test "${with_selinux}" = "yes"; then
12170 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for lgetfilecon in -lselinux" >&5
12171 $as_echo_n "checking for lgetfilecon in -lselinux... " >&6; }
12172 if test "${ac_cv_lib_selinux_lgetfilecon+set}" = set; then :
12173 $as_echo_n "(cached) " >&6
12175 ac_check_lib_save_LIBS
=$LIBS
12176 LIBS
="-lselinux $LIBS"
12177 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
12178 /* end confdefs.h. */
12180 /* Override any GCC internal prototype to avoid an error.
12181 Use char because int might match the return type of a GCC
12182 builtin and then its argument prototype would still apply. */
12186 char lgetfilecon ();
12190 return lgetfilecon ();
12195 if ac_fn_c_try_link
"$LINENO"; then :
12196 ac_cv_lib_selinux_lgetfilecon
=yes
12198 ac_cv_lib_selinux_lgetfilecon
=no
12200 rm -f core conftest.err conftest.
$ac_objext \
12201 conftest
$ac_exeext conftest.
$ac_ext
12202 LIBS
=$ac_check_lib_save_LIBS
12204 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_selinux_lgetfilecon" >&5
12205 $as_echo "$ac_cv_lib_selinux_lgetfilecon" >&6; }
12206 if test "x$ac_cv_lib_selinux_lgetfilecon" = x
""yes; then :
12207 HAVE_LIBSELINUX
=yes
12212 if test "$HAVE_LIBSELINUX" = yes; then
12214 $as_echo "#define HAVE_LIBSELINUX 1" >>confdefs.h
12216 LIBSELINUX_LIBS
=-lselinux
12222 HAVE_GNUTLS_CALLBACK_CERTIFICATE_VERIFY
=no
12223 if test "${with_gnutls}" = "yes" ; then
12227 # Extract the first word of "pkg-config", so it can be a program name with args.
12228 set dummy pkg-config
; ac_word
=$2
12229 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12230 $as_echo_n "checking for $ac_word... " >&6; }
12231 if test "${ac_cv_path_PKG_CONFIG+set}" = set; then :
12232 $as_echo_n "(cached) " >&6
12234 case $PKG_CONFIG in
12236 ac_cv_path_PKG_CONFIG
="$PKG_CONFIG" # Let the user override the test with a path.
12239 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
12240 for as_dir
in $PATH
12243 test -z "$as_dir" && as_dir
=.
12244 for ac_exec_ext
in '' $ac_executable_extensions; do
12245 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
12246 ac_cv_path_PKG_CONFIG
="$as_dir/$ac_word$ac_exec_ext"
12247 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12254 test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG
="no"
12258 PKG_CONFIG
=$ac_cv_path_PKG_CONFIG
12259 if test -n "$PKG_CONFIG"; then
12260 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5
12261 $as_echo "$PKG_CONFIG" >&6; }
12263 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12264 $as_echo "no" >&6; }
12269 if test "$PKG_CONFIG" = "no" ; then
12272 PKG_CONFIG_MIN_VERSION
=0.9.0
12273 if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
12274 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gnutls >= 2.6.6" >&5
12275 $as_echo_n "checking for gnutls >= 2.6.6... " >&6; }
12277 if $PKG_CONFIG --exists "gnutls >= 2.6.6" 2>&5 &&
12278 LIBGNUTLS_CFLAGS
=`$PKG_CONFIG --cflags "gnutls >= 2.6.6" 2>&5` &&
12279 LIBGNUTLS_LIBS
=`$PKG_CONFIG --libs "gnutls >= 2.6.6" 2>&5`; then
12286 LIBGNUTLS_CFLAGS
=`$as_echo "$LIBGNUTLS_CFLAGS" | sed -e "$edit_cflags"`
12287 LIBGNUTLS_LIBS
=`$as_echo "$LIBGNUTLS_LIBS" | sed -e 's,///*,/,g'`
12288 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes CFLAGS='$LIBGNUTLS_CFLAGS' LIBS='$LIBGNUTLS_LIBS'" >&5
12289 $as_echo "yes CFLAGS='$LIBGNUTLS_CFLAGS' LIBS='$LIBGNUTLS_LIBS'" >&6; }
12292 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12293 $as_echo "no" >&6; }
12294 LIBGNUTLS_CFLAGS
=""
12296 ## If we have a custom action on failure, don't print errors, but
12297 ## do set a variable so people can do so.
12298 LIBGNUTLS_PKG_ERRORS
=`$PKG_CONFIG --errors-to-stdout --print-errors "gnutls >= 2.6.6"`
12305 echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
12306 echo "*** See http://www.freedesktop.org/software/pkgconfig"
12310 if test $succeeded = yes; then
12316 if test "${HAVE_GNUTLS}" = "yes"; then
12318 $as_echo "#define HAVE_GNUTLS 1" >>confdefs.h
12322 CFLAGS
="$CFLAGS $LIBGNUTLS_CFLAGS"
12323 LIBS
="$LIBGNUTLS_LIBS $LIBS"
12324 for ac_func
in gnutls_certificate_set_verify_function
12326 ac_fn_c_check_func
"$LINENO" "gnutls_certificate_set_verify_function" "ac_cv_func_gnutls_certificate_set_verify_function"
12327 if test "x$ac_cv_func_gnutls_certificate_set_verify_function" = x
""yes; then :
12328 cat >>confdefs.h
<<_ACEOF
12329 #define HAVE_GNUTLS_CERTIFICATE_SET_VERIFY_FUNCTION 1
12331 HAVE_GNUTLS_CALLBACK_CERTIFICATE_VERIFY
=yes
12336 if test "${HAVE_GNUTLS_CALLBACK_CERTIFICATE_VERIFY}" = "yes"; then
12338 $as_echo "#define HAVE_GNUTLS_CALLBACK_CERTIFICATE_VERIFY 1" >>confdefs.h
12348 if test x
"${USE_X_TOOLKIT}" = xmaybe ||
test x
"${USE_X_TOOLKIT}" = xLUCID
; then
12349 if test "$with_xaw3d" != no
; then
12350 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for xaw3d" >&5
12351 $as_echo_n "checking for xaw3d... " >&6; }
12352 if test "${emacs_cv_xaw3d+set}" = set; then :
12353 $as_echo_n "(cached) " >&6
12355 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
12356 /* end confdefs.h. */
12358 #include <X11/Intrinsic.h>
12359 #include <X11/Xaw3d/Simple.h>
12368 if ac_fn_c_try_link
"$LINENO"; then :
12369 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for XawScrollbarSetThumb in -lXaw3d" >&5
12370 $as_echo_n "checking for XawScrollbarSetThumb in -lXaw3d... " >&6; }
12371 if test "${ac_cv_lib_Xaw3d_XawScrollbarSetThumb+set}" = set; then :
12372 $as_echo_n "(cached) " >&6
12374 ac_check_lib_save_LIBS
=$LIBS
12375 LIBS
="-lXaw3d $LIBS"
12376 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
12377 /* end confdefs.h. */
12379 /* Override any GCC internal prototype to avoid an error.
12380 Use char because int might match the return type of a GCC
12381 builtin and then its argument prototype would still apply. */
12385 char XawScrollbarSetThumb ();
12389 return XawScrollbarSetThumb ();
12394 if ac_fn_c_try_link
"$LINENO"; then :
12395 ac_cv_lib_Xaw3d_XawScrollbarSetThumb
=yes
12397 ac_cv_lib_Xaw3d_XawScrollbarSetThumb
=no
12399 rm -f core conftest.err conftest.
$ac_objext \
12400 conftest
$ac_exeext conftest.
$ac_ext
12401 LIBS
=$ac_check_lib_save_LIBS
12403 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_Xaw3d_XawScrollbarSetThumb" >&5
12404 $as_echo "$ac_cv_lib_Xaw3d_XawScrollbarSetThumb" >&6; }
12405 if test "x$ac_cv_lib_Xaw3d_XawScrollbarSetThumb" = x
""yes; then :
12414 rm -f core conftest.err conftest.
$ac_objext \
12415 conftest
$ac_exeext conftest.
$ac_ext
12421 if test $emacs_cv_xaw3d = yes; then
12422 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes; using Lucid toolkit" >&5
12423 $as_echo "yes; using Lucid toolkit" >&6; }
12424 USE_X_TOOLKIT
=LUCID
12428 $as_echo "#define HAVE_XAW3D 1" >>confdefs.h
12431 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12432 $as_echo "no" >&6; }
12433 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libXaw" >&5
12434 $as_echo_n "checking for libXaw... " >&6; }
12435 if test "${emacs_cv_xaw+set}" = set; then :
12436 $as_echo_n "(cached) " >&6
12438 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
12439 /* end confdefs.h. */
12441 #include <X11/Intrinsic.h>
12442 #include <X11/Xaw/Simple.h>
12451 if ac_fn_c_try_link
"$LINENO"; then :
12456 rm -f core conftest.err conftest.
$ac_objext \
12457 conftest
$ac_exeext conftest.
$ac_ext
12460 if test $emacs_cv_xaw = yes; then
12461 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes; using Lucid toolkit" >&5
12462 $as_echo "yes; using Lucid toolkit" >&6; }
12463 USE_X_TOOLKIT
=LUCID
12465 elif test x
"${USE_X_TOOLKIT}" = xLUCID
; then
12466 as_fn_error
"Lucid toolkit requires X11/Xaw include files" "$LINENO" 5
12468 as_fn_error
"No X toolkit could be found.
12469 If you are sure you want Emacs compiled without an X toolkit, pass
12470 --with-x-toolkit=no
12471 to configure. Otherwise, install the development libraries for the toolkit
12472 that you want to use (e.g. Gtk+) and re-run configure." "$LINENO" 5
12477 X_TOOLKIT_TYPE
=$USE_X_TOOLKIT
12480 if test "${USE_X_TOOLKIT}" != "none"; then
12481 { $as_echo "$as_me:${as_lineno-$LINENO}: checking X11 toolkit version" >&5
12482 $as_echo_n "checking X11 toolkit version... " >&6; }
12483 if test "${emacs_cv_x11_toolkit_version_6+set}" = set; then :
12484 $as_echo_n "(cached) " >&6
12486 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
12487 /* end confdefs.h. */
12488 #include <X11/Intrinsic.h>
12492 #if XtSpecificationRelease < 6
12500 if ac_fn_c_try_link
"$LINENO"; then :
12501 emacs_cv_x11_toolkit_version_6
=yes
12503 emacs_cv_x11_toolkit_version_6
=no
12505 rm -f core conftest.err conftest.
$ac_objext \
12506 conftest
$ac_exeext conftest.
$ac_ext
12509 HAVE_X11XTR6
=$emacs_cv_x11_toolkit_version_6
12510 if test $emacs_cv_x11_toolkit_version_6 = yes; then
12511 { $as_echo "$as_me:${as_lineno-$LINENO}: result: 6 or newer" >&5
12512 $as_echo "6 or newer" >&6; }
12514 $as_echo "#define HAVE_X11XTR6 1" >>confdefs.h
12516 LIBXTR6
="-lSM -lICE"
12518 ## Use libw.a along with X11R6 Xt.
12519 unixware
) LIBXTR6
="$LIBXTR6 -lw" ;;
12522 { $as_echo "$as_me:${as_lineno-$LINENO}: result: before 6" >&5
12523 $as_echo "before 6" >&6; }
12527 if test x
$HAVE_X11XTR6 = xyes
; then
12528 LIBS
="-lXt -lSM -lICE $LIBS"
12532 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for XmuConvertStandardSelection in -lXmu" >&5
12533 $as_echo_n "checking for XmuConvertStandardSelection in -lXmu... " >&6; }
12534 if test "${ac_cv_lib_Xmu_XmuConvertStandardSelection+set}" = set; then :
12535 $as_echo_n "(cached) " >&6
12537 ac_check_lib_save_LIBS
=$LIBS
12539 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
12540 /* end confdefs.h. */
12542 /* Override any GCC internal prototype to avoid an error.
12543 Use char because int might match the return type of a GCC
12544 builtin and then its argument prototype would still apply. */
12548 char XmuConvertStandardSelection ();
12552 return XmuConvertStandardSelection ();
12557 if ac_fn_c_try_link
"$LINENO"; then :
12558 ac_cv_lib_Xmu_XmuConvertStandardSelection
=yes
12560 ac_cv_lib_Xmu_XmuConvertStandardSelection
=no
12562 rm -f core conftest.err conftest.
$ac_objext \
12563 conftest
$ac_exeext conftest.
$ac_ext
12564 LIBS
=$ac_check_lib_save_LIBS
12566 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_Xmu_XmuConvertStandardSelection" >&5
12567 $as_echo "$ac_cv_lib_Xmu_XmuConvertStandardSelection" >&6; }
12568 if test "x$ac_cv_lib_Xmu_XmuConvertStandardSelection" = x
""yes; then :
12569 cat >>confdefs.h
<<_ACEOF
12570 #define HAVE_LIBXMU 1
12577 test $ac_cv_lib_Xmu_XmuConvertStandardSelection = no
&& LIBS
="$OLDLIBS"
12583 ## These systems don't supply Xmu.
12585 test "X$ac_cv_lib_Xmu_XmuConvertStandardSelection" != "Xyes" && LIBXMU
=
12590 # On Irix 6.5, at least, we need XShapeQueryExtension from -lXext for Xaw3D.
12591 if test "${HAVE_X11}" = "yes"; then
12592 if test "${USE_X_TOOLKIT}" != "none"; then
12593 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for XShapeQueryExtension in -lXext" >&5
12594 $as_echo_n "checking for XShapeQueryExtension in -lXext... " >&6; }
12595 if test "${ac_cv_lib_Xext_XShapeQueryExtension+set}" = set; then :
12596 $as_echo_n "(cached) " >&6
12598 ac_check_lib_save_LIBS
=$LIBS
12599 LIBS
="-lXext $LIBS"
12600 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
12601 /* end confdefs.h. */
12603 /* Override any GCC internal prototype to avoid an error.
12604 Use char because int might match the return type of a GCC
12605 builtin and then its argument prototype would still apply. */
12609 char XShapeQueryExtension ();
12613 return XShapeQueryExtension ();
12618 if ac_fn_c_try_link
"$LINENO"; then :
12619 ac_cv_lib_Xext_XShapeQueryExtension
=yes
12621 ac_cv_lib_Xext_XShapeQueryExtension
=no
12623 rm -f core conftest.err conftest.
$ac_objext \
12624 conftest
$ac_exeext conftest.
$ac_ext
12625 LIBS
=$ac_check_lib_save_LIBS
12627 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_Xext_XShapeQueryExtension" >&5
12628 $as_echo "$ac_cv_lib_Xext_XShapeQueryExtension" >&6; }
12629 if test "x$ac_cv_lib_Xext_XShapeQueryExtension" = x
""yes; then :
12630 cat >>confdefs.h
<<_ACEOF
12631 #define HAVE_LIBXEXT 1
12634 LIBS
="-lXext $LIBS"
12642 if test "${USE_X_TOOLKIT}" = "MOTIF"; then
12643 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Motif version 2.1" >&5
12644 $as_echo_n "checking for Motif version 2.1... " >&6; }
12645 if test "${emacs_cv_motif_version_2_1+set}" = set; then :
12646 $as_echo_n "(cached) " >&6
12648 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
12649 /* end confdefs.h. */
12654 #if XmVERSION > 2 || (XmVERSION == 2 && XmREVISION >= 1)
12657 Motif version prior to 2.1.
12663 if ac_fn_c_try_compile
"$LINENO"; then :
12664 emacs_cv_motif_version_2_1
=yes
12666 emacs_cv_motif_version_2_1
=no
12668 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
12670 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $emacs_cv_motif_version_2_1" >&5
12671 $as_echo "$emacs_cv_motif_version_2_1" >&6; }
12672 if test $emacs_cv_motif_version_2_1 = yes; then
12673 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for XpCreateContext in -lXp" >&5
12674 $as_echo_n "checking for XpCreateContext in -lXp... " >&6; }
12675 if test "${ac_cv_lib_Xp_XpCreateContext+set}" = set; then :
12676 $as_echo_n "(cached) " >&6
12678 ac_check_lib_save_LIBS
=$LIBS
12680 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
12681 /* end confdefs.h. */
12683 /* Override any GCC internal prototype to avoid an error.
12684 Use char because int might match the return type of a GCC
12685 builtin and then its argument prototype would still apply. */
12689 char XpCreateContext ();
12693 return XpCreateContext ();
12698 if ac_fn_c_try_link
"$LINENO"; then :
12699 ac_cv_lib_Xp_XpCreateContext
=yes
12701 ac_cv_lib_Xp_XpCreateContext
=no
12703 rm -f core conftest.err conftest.
$ac_objext \
12704 conftest
$ac_exeext conftest.
$ac_ext
12705 LIBS
=$ac_check_lib_save_LIBS
12707 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_Xp_XpCreateContext" >&5
12708 $as_echo "$ac_cv_lib_Xp_XpCreateContext" >&6; }
12709 if test "x$ac_cv_lib_Xp_XpCreateContext" = x
""yes; then :
12714 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for LessTif where some systems put it" >&5
12715 $as_echo_n "checking for LessTif where some systems put it... " >&6; }
12716 if test "${emacs_cv_lesstif+set}" = set; then :
12717 $as_echo_n "(cached) " >&6
12719 # We put this in CFLAGS temporarily to precede other -I options
12720 # that might be in CFLAGS temporarily.
12721 # We put this in CPPFLAGS where it precedes the other -I options.
12722 OLD_CPPFLAGS
=$CPPFLAGS
12724 CPPFLAGS
="-I/usr/X11R6/LessTif/Motif1.2/include $CPPFLAGS"
12725 CFLAGS
="-I/usr/X11R6/LessTif/Motif1.2/include $CFLAGS"
12726 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
12727 /* end confdefs.h. */
12728 #include </usr/X11R6/LessTif/Motif1.2/include/Xm/Xm.h>
12737 if ac_fn_c_try_compile
"$LINENO"; then :
12738 emacs_cv_lesstif
=yes
12740 emacs_cv_lesstif
=no
12742 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
12744 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $emacs_cv_lesstif" >&5
12745 $as_echo "$emacs_cv_lesstif" >&6; }
12746 if test $emacs_cv_lesstif = yes; then
12747 # Make sure this -I option remains in CPPFLAGS after it is set
12748 # back to REAL_CPPFLAGS.
12749 # There is no need to change REAL_CFLAGS, because REAL_CFLAGS does not
12750 # have those other -I options anyway. Ultimately, having this
12751 # directory ultimately in CPPFLAGS will be enough.
12752 REAL_CPPFLAGS
="-I/usr/X11R6/LessTif/Motif1.2/include $REAL_CPPFLAGS"
12753 LDFLAGS
="-L/usr/X11R6/LessTif/Motif1.2/lib $LDFLAGS"
12756 CPPFLAGS
=$OLD_CPPFLAGS
12759 ac_fn_c_check_header_mongrel
"$LINENO" "Xm/BulletinB.h" "ac_cv_header_Xm_BulletinB_h" "$ac_includes_default"
12760 if test "x$ac_cv_header_Xm_BulletinB_h" = x
""yes; then :
12763 as_fn_error
"Motif toolkit requested but requirements not found." "$LINENO" 5
12770 USE_TOOLKIT_SCROLL_BARS
=no
12771 if test "${with_toolkit_scroll_bars}" != "no"; then
12772 if test "${USE_X_TOOLKIT}" != "none"; then
12773 if test "${USE_X_TOOLKIT}" = "MOTIF"; then
12774 $as_echo "#define USE_TOOLKIT_SCROLL_BARS 1" >>confdefs.h
12777 USE_TOOLKIT_SCROLL_BARS
=yes
12778 elif test "${HAVE_XAW3D}" = "yes" ||
test "${USE_X_TOOLKIT}" = "LUCID"; then
12779 $as_echo "#define USE_TOOLKIT_SCROLL_BARS 1" >>confdefs.h
12781 USE_TOOLKIT_SCROLL_BARS
=yes
12783 elif test "${HAVE_GTK}" = "yes"; then
12784 $as_echo "#define USE_TOOLKIT_SCROLL_BARS 1" >>confdefs.h
12786 USE_TOOLKIT_SCROLL_BARS
=yes
12787 elif test "${HAVE_NS}" = "yes"; then
12788 $as_echo "#define USE_TOOLKIT_SCROLL_BARS 1" >>confdefs.h
12790 USE_TOOLKIT_SCROLL_BARS
=yes
12794 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
12795 /* end confdefs.h. */
12797 #include <X11/Xlib.h>
12798 #include <X11/Xresource.h>
12807 if ac_fn_c_try_compile
"$LINENO"; then :
12810 $as_echo "#define HAVE_XIM 1" >>confdefs.h
12815 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
12818 if test "${with_xim}" != "no"; then
12820 $as_echo "#define USE_XIM 1" >>confdefs.h
12825 if test "${HAVE_XIM}" != "no"; then
12826 late_CFLAGS
=$CFLAGS
12827 if test "$GCC" = yes; then
12828 CFLAGS
="$CFLAGS --pedantic-errors"
12830 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
12831 /* end confdefs.h. */
12833 #include <X11/Xlib.h>
12834 #include <X11/Xresource.h>
12843 XPointer *client_data;
12845 /* If we're not using GCC, it's probably not XFree86, and this is
12846 probably right, but we can't use something like --pedantic-errors. */
12847 extern Bool XRegisterIMInstantiateCallback(Display*, XrmDatabase, char*,
12848 char*, XIMProc, XPointer*);
12850 (void)XRegisterIMInstantiateCallback(display, db, res_name, res_class, callback,
12856 if ac_fn_c_try_compile
"$LINENO"; then :
12857 emacs_cv_arg6_star
=yes
12859 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
12860 if test "$emacs_cv_arg6_star" = yes; then
12861 $as_echo "#define XRegisterIMInstantiateCallback_arg6 XPointer*" >>confdefs.h
12864 $as_echo "#define XRegisterIMInstantiateCallback_arg6 XPointer" >>confdefs.h
12867 CFLAGS
=$late_CFLAGS
12870 ### Start of font-backend (under any platform) section.
12871 # (nothing here yet -- this is a placeholder)
12872 ### End of font-backend (under any platform) section.
12874 ### Start of font-backend (under X11) section.
12875 if test "${HAVE_X11}" = "yes"; then
12879 # Extract the first word of "pkg-config", so it can be a program name with args.
12880 set dummy pkg-config
; ac_word
=$2
12881 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12882 $as_echo_n "checking for $ac_word... " >&6; }
12883 if test "${ac_cv_path_PKG_CONFIG+set}" = set; then :
12884 $as_echo_n "(cached) " >&6
12886 case $PKG_CONFIG in
12888 ac_cv_path_PKG_CONFIG
="$PKG_CONFIG" # Let the user override the test with a path.
12891 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
12892 for as_dir
in $PATH
12895 test -z "$as_dir" && as_dir
=.
12896 for ac_exec_ext
in '' $ac_executable_extensions; do
12897 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
12898 ac_cv_path_PKG_CONFIG
="$as_dir/$ac_word$ac_exec_ext"
12899 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12906 test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG
="no"
12910 PKG_CONFIG
=$ac_cv_path_PKG_CONFIG
12911 if test -n "$PKG_CONFIG"; then
12912 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5
12913 $as_echo "$PKG_CONFIG" >&6; }
12915 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12916 $as_echo "no" >&6; }
12921 if test "$PKG_CONFIG" = "no" ; then
12924 PKG_CONFIG_MIN_VERSION
=0.9.0
12925 if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
12926 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for fontconfig >= 2.2.0" >&5
12927 $as_echo_n "checking for fontconfig >= 2.2.0... " >&6; }
12929 if $PKG_CONFIG --exists "fontconfig >= 2.2.0" 2>&5 &&
12930 FONTCONFIG_CFLAGS
=`$PKG_CONFIG --cflags "fontconfig >= 2.2.0" 2>&5` &&
12931 FONTCONFIG_LIBS
=`$PKG_CONFIG --libs "fontconfig >= 2.2.0" 2>&5`; then
12938 FONTCONFIG_CFLAGS
=`$as_echo "$FONTCONFIG_CFLAGS" | sed -e "$edit_cflags"`
12939 FONTCONFIG_LIBS
=`$as_echo "$FONTCONFIG_LIBS" | sed -e 's,///*,/,g'`
12940 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes CFLAGS='$FONTCONFIG_CFLAGS' LIBS='$FONTCONFIG_LIBS'" >&5
12941 $as_echo "yes CFLAGS='$FONTCONFIG_CFLAGS' LIBS='$FONTCONFIG_LIBS'" >&6; }
12944 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12945 $as_echo "no" >&6; }
12946 FONTCONFIG_CFLAGS
=""
12948 ## If we have a custom action on failure, don't print errors, but
12949 ## do set a variable so people can do so.
12950 FONTCONFIG_PKG_ERRORS
=`$PKG_CONFIG --errors-to-stdout --print-errors "fontconfig >= 2.2.0"`
12957 echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
12958 echo "*** See http://www.freedesktop.org/software/pkgconfig"
12962 if test $succeeded = yes; then
12969 ## Use -lXft if available, unless `--with-xft=no'.
12971 if test "${HAVE_FC}" = "no" ||
test "x${with_x}" = "xno"; then
12974 if test "x${with_xft}" != "xno"; then
12979 # Extract the first word of "pkg-config", so it can be a program name with args.
12980 set dummy pkg-config
; ac_word
=$2
12981 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12982 $as_echo_n "checking for $ac_word... " >&6; }
12983 if test "${ac_cv_path_PKG_CONFIG+set}" = set; then :
12984 $as_echo_n "(cached) " >&6
12986 case $PKG_CONFIG in
12988 ac_cv_path_PKG_CONFIG
="$PKG_CONFIG" # Let the user override the test with a path.
12991 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
12992 for as_dir
in $PATH
12995 test -z "$as_dir" && as_dir
=.
12996 for ac_exec_ext
in '' $ac_executable_extensions; do
12997 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
12998 ac_cv_path_PKG_CONFIG
="$as_dir/$ac_word$ac_exec_ext"
12999 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13006 test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG
="no"
13010 PKG_CONFIG
=$ac_cv_path_PKG_CONFIG
13011 if test -n "$PKG_CONFIG"; then
13012 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5
13013 $as_echo "$PKG_CONFIG" >&6; }
13015 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13016 $as_echo "no" >&6; }
13021 if test "$PKG_CONFIG" = "no" ; then
13024 PKG_CONFIG_MIN_VERSION
=0.9.0
13025 if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
13026 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for xft >= 0.13.0" >&5
13027 $as_echo_n "checking for xft >= 0.13.0... " >&6; }
13029 if $PKG_CONFIG --exists "xft >= 0.13.0" 2>&5 &&
13030 XFT_CFLAGS
=`$PKG_CONFIG --cflags "xft >= 0.13.0" 2>&5` &&
13031 XFT_LIBS
=`$PKG_CONFIG --libs "xft >= 0.13.0" 2>&5`; then
13038 XFT_CFLAGS
=`$as_echo "$XFT_CFLAGS" | sed -e "$edit_cflags"`
13039 XFT_LIBS
=`$as_echo "$XFT_LIBS" | sed -e 's,///*,/,g'`
13040 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes CFLAGS='$XFT_CFLAGS' LIBS='$XFT_LIBS'" >&5
13041 $as_echo "yes CFLAGS='$XFT_CFLAGS' LIBS='$XFT_LIBS'" >&6; }
13044 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13045 $as_echo "no" >&6; }
13048 ## If we have a custom action on failure, don't print errors, but
13049 ## do set a variable so people can do so.
13050 XFT_PKG_ERRORS
=`$PKG_CONFIG --errors-to-stdout --print-errors "xft >= 0.13.0"`
13057 echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
13058 echo "*** See http://www.freedesktop.org/software/pkgconfig"
13062 if test $succeeded = yes; then
13068 ## Because xftfont.c uses XRenderQueryExtension, we also
13069 ## need to link to -lXrender.
13071 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for XRenderQueryExtension in -lXrender" >&5
13072 $as_echo_n "checking for XRenderQueryExtension in -lXrender... " >&6; }
13073 if test "${ac_cv_lib_Xrender_XRenderQueryExtension+set}" = set; then :
13074 $as_echo_n "(cached) " >&6
13076 ac_check_lib_save_LIBS
=$LIBS
13077 LIBS
="-lXrender $LIBS"
13078 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
13079 /* end confdefs.h. */
13081 /* Override any GCC internal prototype to avoid an error.
13082 Use char because int might match the return type of a GCC
13083 builtin and then its argument prototype would still apply. */
13087 char XRenderQueryExtension ();
13091 return XRenderQueryExtension ();
13096 if ac_fn_c_try_link
"$LINENO"; then :
13097 ac_cv_lib_Xrender_XRenderQueryExtension
=yes
13099 ac_cv_lib_Xrender_XRenderQueryExtension
=no
13101 rm -f core conftest.err conftest.
$ac_objext \
13102 conftest
$ac_exeext conftest.
$ac_ext
13103 LIBS
=$ac_check_lib_save_LIBS
13105 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_Xrender_XRenderQueryExtension" >&5
13106 $as_echo "$ac_cv_lib_Xrender_XRenderQueryExtension" >&6; }
13107 if test "x$ac_cv_lib_Xrender_XRenderQueryExtension" = x
""yes; then :
13111 if test "$HAVE_XFT" != no
&& test "$HAVE_XRENDER" != no
; then
13112 OLD_CPPFLAGS
="$CPPFLAGS"
13113 OLD_CFLAGS
="$CFLAGS"
13115 CPPFLAGS
="$CPPFLAGS $XFT_CFLAGS"
13116 CFLAGS
="$CFLAGS $XFT_CFLAGS"
13117 XFT_LIBS
="-lXrender $XFT_LIBS"
13118 LIBS
="$XFT_LIBS $LIBS"
13119 ac_fn_c_check_header_mongrel
"$LINENO" "X11/Xft/Xft.h" "ac_cv_header_X11_Xft_Xft_h" "$ac_includes_default"
13120 if test "x$ac_cv_header_X11_Xft_Xft_h" = x
""yes; then :
13121 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for XftFontOpen in -lXft" >&5
13122 $as_echo_n "checking for XftFontOpen in -lXft... " >&6; }
13123 if test "${ac_cv_lib_Xft_XftFontOpen+set}" = set; then :
13124 $as_echo_n "(cached) " >&6
13126 ac_check_lib_save_LIBS
=$LIBS
13127 LIBS
="-lXft $XFT_LIBS $LIBS"
13128 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
13129 /* end confdefs.h. */
13131 /* Override any GCC internal prototype to avoid an error.
13132 Use char because int might match the return type of a GCC
13133 builtin and then its argument prototype would still apply. */
13137 char XftFontOpen ();
13141 return XftFontOpen ();
13146 if ac_fn_c_try_link
"$LINENO"; then :
13147 ac_cv_lib_Xft_XftFontOpen
=yes
13149 ac_cv_lib_Xft_XftFontOpen
=no
13151 rm -f core conftest.err conftest.
$ac_objext \
13152 conftest
$ac_exeext conftest.
$ac_ext
13153 LIBS
=$ac_check_lib_save_LIBS
13155 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_Xft_XftFontOpen" >&5
13156 $as_echo "$ac_cv_lib_Xft_XftFontOpen" >&6; }
13157 if test "x$ac_cv_lib_Xft_XftFontOpen" = x
""yes; then :
13165 if test "${HAVE_XFT}" = "yes"; then
13167 $as_echo "#define HAVE_XFT 1" >>confdefs.h
13170 C_SWITCH_X_SITE
="$C_SWITCH_X_SITE $XFT_CFLAGS"
13172 CPPFLAGS
="$OLD_CPPFLAGS"
13173 CFLAGS
="$OLD_CFLAGS"
13175 fi # "${HAVE_XFT}" = "yes"
13176 fi # "$HAVE_XFT" != no
13177 fi # "x${with_xft}" != "xno"
13179 ## We used to allow building with FreeType and without Xft.
13180 ## However, the ftx font backend driver is not in good shape.
13181 if test "$HAVE_XFT" != "yes"; then
13188 # Extract the first word of "pkg-config", so it can be a program name with args.
13189 set dummy pkg-config
; ac_word
=$2
13190 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13191 $as_echo_n "checking for $ac_word... " >&6; }
13192 if test "${ac_cv_path_PKG_CONFIG+set}" = set; then :
13193 $as_echo_n "(cached) " >&6
13195 case $PKG_CONFIG in
13197 ac_cv_path_PKG_CONFIG
="$PKG_CONFIG" # Let the user override the test with a path.
13200 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
13201 for as_dir
in $PATH
13204 test -z "$as_dir" && as_dir
=.
13205 for ac_exec_ext
in '' $ac_executable_extensions; do
13206 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
13207 ac_cv_path_PKG_CONFIG
="$as_dir/$ac_word$ac_exec_ext"
13208 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13215 test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG
="no"
13219 PKG_CONFIG
=$ac_cv_path_PKG_CONFIG
13220 if test -n "$PKG_CONFIG"; then
13221 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5
13222 $as_echo "$PKG_CONFIG" >&6; }
13224 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13225 $as_echo "no" >&6; }
13230 if test "$PKG_CONFIG" = "no" ; then
13233 PKG_CONFIG_MIN_VERSION
=0.9.0
13234 if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
13235 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for freetype2" >&5
13236 $as_echo_n "checking for freetype2... " >&6; }
13238 if $PKG_CONFIG --exists "freetype2" 2>&5 &&
13239 FREETYPE_CFLAGS
=`$PKG_CONFIG --cflags "freetype2" 2>&5` &&
13240 FREETYPE_LIBS
=`$PKG_CONFIG --libs "freetype2" 2>&5`; then
13247 FREETYPE_CFLAGS
=`$as_echo "$FREETYPE_CFLAGS" | sed -e "$edit_cflags"`
13248 FREETYPE_LIBS
=`$as_echo "$FREETYPE_LIBS" | sed -e 's,///*,/,g'`
13249 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes CFLAGS='$FREETYPE_CFLAGS' LIBS='$FREETYPE_LIBS'" >&5
13250 $as_echo "yes CFLAGS='$FREETYPE_CFLAGS' LIBS='$FREETYPE_LIBS'" >&6; }
13253 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13254 $as_echo "no" >&6; }
13257 ## If we have a custom action on failure, don't print errors, but
13258 ## do set a variable so people can do so.
13259 FREETYPE_PKG_ERRORS
=`$PKG_CONFIG --errors-to-stdout --print-errors "freetype2"`
13266 echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
13267 echo "*** See http://www.freedesktop.org/software/pkgconfig"
13271 if test $succeeded = yes; then
13278 test "$HAVE_FREETYPE" = "no" && as_fn_error
"libxft requires libfreetype" "$LINENO" 5
13282 if test "${HAVE_FREETYPE}" = "yes"; then
13284 $as_echo "#define HAVE_FREETYPE 1" >>confdefs.h
13286 if test "${with_libotf}" != "no"; then
13290 # Extract the first word of "pkg-config", so it can be a program name with args.
13291 set dummy pkg-config
; ac_word
=$2
13292 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13293 $as_echo_n "checking for $ac_word... " >&6; }
13294 if test "${ac_cv_path_PKG_CONFIG+set}" = set; then :
13295 $as_echo_n "(cached) " >&6
13297 case $PKG_CONFIG in
13299 ac_cv_path_PKG_CONFIG
="$PKG_CONFIG" # Let the user override the test with a path.
13302 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
13303 for as_dir
in $PATH
13306 test -z "$as_dir" && as_dir
=.
13307 for ac_exec_ext
in '' $ac_executable_extensions; do
13308 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
13309 ac_cv_path_PKG_CONFIG
="$as_dir/$ac_word$ac_exec_ext"
13310 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13317 test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG
="no"
13321 PKG_CONFIG
=$ac_cv_path_PKG_CONFIG
13322 if test -n "$PKG_CONFIG"; then
13323 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5
13324 $as_echo "$PKG_CONFIG" >&6; }
13326 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13327 $as_echo "no" >&6; }
13332 if test "$PKG_CONFIG" = "no" ; then
13335 PKG_CONFIG_MIN_VERSION
=0.9.0
13336 if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
13337 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libotf" >&5
13338 $as_echo_n "checking for libotf... " >&6; }
13340 if $PKG_CONFIG --exists "libotf" 2>&5 &&
13341 LIBOTF_CFLAGS
=`$PKG_CONFIG --cflags "libotf" 2>&5` &&
13342 LIBOTF_LIBS
=`$PKG_CONFIG --libs "libotf" 2>&5`; then
13349 LIBOTF_CFLAGS
=`$as_echo "$LIBOTF_CFLAGS" | sed -e "$edit_cflags"`
13350 LIBOTF_LIBS
=`$as_echo "$LIBOTF_LIBS" | sed -e 's,///*,/,g'`
13351 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes CFLAGS='$LIBOTF_CFLAGS' LIBS='$LIBOTF_LIBS'" >&5
13352 $as_echo "yes CFLAGS='$LIBOTF_CFLAGS' LIBS='$LIBOTF_LIBS'" >&6; }
13355 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13356 $as_echo "no" >&6; }
13359 ## If we have a custom action on failure, don't print errors, but
13360 ## do set a variable so people can do so.
13361 LIBOTF_PKG_ERRORS
=`$PKG_CONFIG --errors-to-stdout --print-errors "libotf"`
13368 echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
13369 echo "*** See http://www.freedesktop.org/software/pkgconfig"
13373 if test $succeeded = yes; then
13379 if test "$HAVE_LIBOTF" = "yes"; then
13381 $as_echo "#define HAVE_LIBOTF 1" >>confdefs.h
13383 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for OTF_get_variation_glyphs in -lotf" >&5
13384 $as_echo_n "checking for OTF_get_variation_glyphs in -lotf... " >&6; }
13385 if test "${ac_cv_lib_otf_OTF_get_variation_glyphs+set}" = set; then :
13386 $as_echo_n "(cached) " >&6
13388 ac_check_lib_save_LIBS
=$LIBS
13390 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
13391 /* end confdefs.h. */
13393 /* Override any GCC internal prototype to avoid an error.
13394 Use char because int might match the return type of a GCC
13395 builtin and then its argument prototype would still apply. */
13399 char OTF_get_variation_glyphs ();
13403 return OTF_get_variation_glyphs ();
13408 if ac_fn_c_try_link
"$LINENO"; then :
13409 ac_cv_lib_otf_OTF_get_variation_glyphs
=yes
13411 ac_cv_lib_otf_OTF_get_variation_glyphs
=no
13413 rm -f core conftest.err conftest.
$ac_objext \
13414 conftest
$ac_exeext conftest.
$ac_ext
13415 LIBS
=$ac_check_lib_save_LIBS
13417 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_otf_OTF_get_variation_glyphs" >&5
13418 $as_echo "$ac_cv_lib_otf_OTF_get_variation_glyphs" >&6; }
13419 if test "x$ac_cv_lib_otf_OTF_get_variation_glyphs" = x
""yes; then :
13420 HAVE_OTF_GET_VARIATION_GLYPHS
=yes
13422 HAVE_OTF_GET_VARIATION_GLYPHS
=no
13425 if test "${HAVE_OTF_GET_VARIATION_GLYPHS}" = "yes"; then
13427 $as_echo "#define HAVE_OTF_GET_VARIATION_GLYPHS 1" >>confdefs.h
13435 if test "${HAVE_LIBOTF}" = yes; then
13436 if test "${with_m17n_flt}" != "no"; then
13440 # Extract the first word of "pkg-config", so it can be a program name with args.
13441 set dummy pkg-config
; ac_word
=$2
13442 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13443 $as_echo_n "checking for $ac_word... " >&6; }
13444 if test "${ac_cv_path_PKG_CONFIG+set}" = set; then :
13445 $as_echo_n "(cached) " >&6
13447 case $PKG_CONFIG in
13449 ac_cv_path_PKG_CONFIG
="$PKG_CONFIG" # Let the user override the test with a path.
13452 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
13453 for as_dir
in $PATH
13456 test -z "$as_dir" && as_dir
=.
13457 for ac_exec_ext
in '' $ac_executable_extensions; do
13458 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
13459 ac_cv_path_PKG_CONFIG
="$as_dir/$ac_word$ac_exec_ext"
13460 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13467 test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG
="no"
13471 PKG_CONFIG
=$ac_cv_path_PKG_CONFIG
13472 if test -n "$PKG_CONFIG"; then
13473 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5
13474 $as_echo "$PKG_CONFIG" >&6; }
13476 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13477 $as_echo "no" >&6; }
13482 if test "$PKG_CONFIG" = "no" ; then
13485 PKG_CONFIG_MIN_VERSION
=0.9.0
13486 if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
13487 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for m17n-flt" >&5
13488 $as_echo_n "checking for m17n-flt... " >&6; }
13490 if $PKG_CONFIG --exists "m17n-flt" 2>&5 &&
13491 M17N_FLT_CFLAGS
=`$PKG_CONFIG --cflags "m17n-flt" 2>&5` &&
13492 M17N_FLT_LIBS
=`$PKG_CONFIG --libs "m17n-flt" 2>&5`; then
13499 M17N_FLT_CFLAGS
=`$as_echo "$M17N_FLT_CFLAGS" | sed -e "$edit_cflags"`
13500 M17N_FLT_LIBS
=`$as_echo "$M17N_FLT_LIBS" | sed -e 's,///*,/,g'`
13501 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes CFLAGS='$M17N_FLT_CFLAGS' LIBS='$M17N_FLT_LIBS'" >&5
13502 $as_echo "yes CFLAGS='$M17N_FLT_CFLAGS' LIBS='$M17N_FLT_LIBS'" >&6; }
13505 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13506 $as_echo "no" >&6; }
13509 ## If we have a custom action on failure, don't print errors, but
13510 ## do set a variable so people can do so.
13511 M17N_FLT_PKG_ERRORS
=`$PKG_CONFIG --errors-to-stdout --print-errors "m17n-flt"`
13518 echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
13519 echo "*** See http://www.freedesktop.org/software/pkgconfig"
13523 if test $succeeded = yes; then
13529 if test "$HAVE_M17N_FLT" = "yes"; then
13531 $as_echo "#define HAVE_M17N_FLT 1" >>confdefs.h
13543 ### End of font-backend (under X11) section.
13554 ### Use -lXpm if available, unless `--with-xpm=no'.
13557 if test "${HAVE_X11}" = "yes"; then
13558 if test "${with_xpm}" != "no"; then
13559 ac_fn_c_check_header_mongrel
"$LINENO" "X11/xpm.h" "ac_cv_header_X11_xpm_h" "$ac_includes_default"
13560 if test "x$ac_cv_header_X11_xpm_h" = x
""yes; then :
13561 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for XpmReadFileToPixmap in -lXpm" >&5
13562 $as_echo_n "checking for XpmReadFileToPixmap in -lXpm... " >&6; }
13563 if test "${ac_cv_lib_Xpm_XpmReadFileToPixmap+set}" = set; then :
13564 $as_echo_n "(cached) " >&6
13566 ac_check_lib_save_LIBS
=$LIBS
13567 LIBS
="-lXpm -lX11 $LIBS"
13568 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
13569 /* end confdefs.h. */
13571 /* Override any GCC internal prototype to avoid an error.
13572 Use char because int might match the return type of a GCC
13573 builtin and then its argument prototype would still apply. */
13577 char XpmReadFileToPixmap ();
13581 return XpmReadFileToPixmap ();
13586 if ac_fn_c_try_link
"$LINENO"; then :
13587 ac_cv_lib_Xpm_XpmReadFileToPixmap
=yes
13589 ac_cv_lib_Xpm_XpmReadFileToPixmap
=no
13591 rm -f core conftest.err conftest.
$ac_objext \
13592 conftest
$ac_exeext conftest.
$ac_ext
13593 LIBS
=$ac_check_lib_save_LIBS
13595 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_Xpm_XpmReadFileToPixmap" >&5
13596 $as_echo "$ac_cv_lib_Xpm_XpmReadFileToPixmap" >&6; }
13597 if test "x$ac_cv_lib_Xpm_XpmReadFileToPixmap" = x
""yes; then :
13604 if test "${HAVE_XPM}" = "yes"; then
13605 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for XpmReturnAllocPixels preprocessor define" >&5
13606 $as_echo_n "checking for XpmReturnAllocPixels preprocessor define... " >&6; }
13607 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
13608 /* end confdefs.h. */
13609 #include "X11/xpm.h"
13610 #ifndef XpmReturnAllocPixels
13611 no_return_alloc_pixels
13615 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
13616 $EGREP "no_return_alloc_pixels" >/dev
/null
2>&1; then :
13624 if test "${HAVE_XPM}" = "yes"; then
13625 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
13626 $as_echo "yes" >&6; }
13628 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13629 $as_echo "no" >&6; }
13634 if test "${HAVE_XPM}" = "yes"; then
13636 $as_echo "#define HAVE_XPM 1" >>confdefs.h
13643 ### Use -ljpeg if available, unless `--with-jpeg=no'.
13646 if test "${HAVE_X11}" = "yes"; then
13647 if test "${with_jpeg}" != "no"; then
13648 ac_fn_c_check_header_mongrel
"$LINENO" "jerror.h" "ac_cv_header_jerror_h" "$ac_includes_default"
13649 if test "x$ac_cv_header_jerror_h" = x
""yes; then :
13650 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for jpeg_destroy_compress in -ljpeg" >&5
13651 $as_echo_n "checking for jpeg_destroy_compress in -ljpeg... " >&6; }
13652 if test "${ac_cv_lib_jpeg_jpeg_destroy_compress+set}" = set; then :
13653 $as_echo_n "(cached) " >&6
13655 ac_check_lib_save_LIBS
=$LIBS
13656 LIBS
="-ljpeg $LIBS"
13657 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
13658 /* end confdefs.h. */
13660 /* Override any GCC internal prototype to avoid an error.
13661 Use char because int might match the return type of a GCC
13662 builtin and then its argument prototype would still apply. */
13666 char jpeg_destroy_compress ();
13670 return jpeg_destroy_compress ();
13675 if ac_fn_c_try_link
"$LINENO"; then :
13676 ac_cv_lib_jpeg_jpeg_destroy_compress
=yes
13678 ac_cv_lib_jpeg_jpeg_destroy_compress
=no
13680 rm -f core conftest.err conftest.
$ac_objext \
13681 conftest
$ac_exeext conftest.
$ac_ext
13682 LIBS
=$ac_check_lib_save_LIBS
13684 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_jpeg_jpeg_destroy_compress" >&5
13685 $as_echo "$ac_cv_lib_jpeg_jpeg_destroy_compress" >&6; }
13686 if test "x$ac_cv_lib_jpeg_jpeg_destroy_compress" = x
""yes; then :
13695 if test "${HAVE_JPEG}" = "yes"; then
13696 $as_echo "#define HAVE_JPEG 1" >>confdefs.h
13698 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
13699 /* end confdefs.h. */
13700 #include <jpeglib.h>
13701 version=JPEG_LIB_VERSION
13704 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
13705 $EGREP "version= *(6[2-9]|[7-9][0-9])" >/dev
/null
2>&1; then :
13706 $as_echo "#define HAVE_JPEG 1" >>confdefs.h
13709 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: libjpeg found, but not version 6b or later" >&5
13710 $as_echo "$as_me: WARNING: libjpeg found, but not version 6b or later" >&2;}
13716 if test "${HAVE_JPEG}" = "yes"; then
13722 ### Use -lpng if available, unless `--with-png=no'.
13725 if test "${HAVE_X11}" = "yes"; then
13726 if test "${with_png}" != "no"; then
13727 # Debian unstable as of July 2003 has multiple libpngs, and puts png.h
13728 # in /usr/include/libpng.
13729 for ac_header
in png.h libpng
/png.h
13731 as_ac_Header
=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
13732 ac_fn_c_check_header_mongrel
"$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
13733 eval as_val
=\$
$as_ac_Header
13734 if test "x$as_val" = x
""yes; then :
13735 cat >>confdefs.h
<<_ACEOF
13736 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
13743 if test "$ac_cv_header_png_h" = yes ||
test "$ac_cv_header_libpng_png_h" = yes ; then
13744 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for png_get_channels in -lpng" >&5
13745 $as_echo_n "checking for png_get_channels in -lpng... " >&6; }
13746 if test "${ac_cv_lib_png_png_get_channels+set}" = set; then :
13747 $as_echo_n "(cached) " >&6
13749 ac_check_lib_save_LIBS
=$LIBS
13750 LIBS
="-lpng -lz -lm $LIBS"
13751 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
13752 /* end confdefs.h. */
13754 /* Override any GCC internal prototype to avoid an error.
13755 Use char because int might match the return type of a GCC
13756 builtin and then its argument prototype would still apply. */
13760 char png_get_channels ();
13764 return png_get_channels ();
13769 if ac_fn_c_try_link
"$LINENO"; then :
13770 ac_cv_lib_png_png_get_channels
=yes
13772 ac_cv_lib_png_png_get_channels
=no
13774 rm -f core conftest.err conftest.
$ac_objext \
13775 conftest
$ac_exeext conftest.
$ac_ext
13776 LIBS
=$ac_check_lib_save_LIBS
13778 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_png_png_get_channels" >&5
13779 $as_echo "$ac_cv_lib_png_png_get_channels" >&6; }
13780 if test "x$ac_cv_lib_png_png_get_channels" = x
""yes; then :
13787 if test "${HAVE_PNG}" = "yes"; then
13789 $as_echo "#define HAVE_PNG 1" >>confdefs.h
13791 LIBPNG
="-lpng -lz -lm"
13796 ### Use -ltiff if available, unless `--with-tiff=no'.
13799 if test "${HAVE_X11}" = "yes"; then
13800 if test "${with_tiff}" != "no"; then
13801 ac_fn_c_check_header_mongrel
"$LINENO" "tiffio.h" "ac_cv_header_tiffio_h" "$ac_includes_default"
13802 if test "x$ac_cv_header_tiffio_h" = x
""yes; then :
13804 # At least one tiff package requires the jpeg library.
13805 if test "${HAVE_JPEG}" = yes; then tifflibs
="-ljpeg $tifflibs"; fi
13806 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for TIFFGetVersion in -ltiff" >&5
13807 $as_echo_n "checking for TIFFGetVersion in -ltiff... " >&6; }
13808 if test "${ac_cv_lib_tiff_TIFFGetVersion+set}" = set; then :
13809 $as_echo_n "(cached) " >&6
13811 ac_check_lib_save_LIBS
=$LIBS
13812 LIBS
="-ltiff $tifflibs $LIBS"
13813 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
13814 /* end confdefs.h. */
13816 /* Override any GCC internal prototype to avoid an error.
13817 Use char because int might match the return type of a GCC
13818 builtin and then its argument prototype would still apply. */
13822 char TIFFGetVersion ();
13826 return TIFFGetVersion ();
13831 if ac_fn_c_try_link
"$LINENO"; then :
13832 ac_cv_lib_tiff_TIFFGetVersion
=yes
13834 ac_cv_lib_tiff_TIFFGetVersion
=no
13836 rm -f core conftest.err conftest.
$ac_objext \
13837 conftest
$ac_exeext conftest.
$ac_ext
13838 LIBS
=$ac_check_lib_save_LIBS
13840 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_tiff_TIFFGetVersion" >&5
13841 $as_echo "$ac_cv_lib_tiff_TIFFGetVersion" >&6; }
13842 if test "x$ac_cv_lib_tiff_TIFFGetVersion" = x
""yes; then :
13851 if test "${HAVE_TIFF}" = "yes"; then
13853 $as_echo "#define HAVE_TIFF 1" >>confdefs.h
13860 ### Use -lgif or -lungif if available, unless `--with-gif=no'.
13863 if test "${HAVE_X11}" = "yes" && test "${with_gif}" != "no"; then
13864 ac_fn_c_check_header_mongrel
"$LINENO" "gif_lib.h" "ac_cv_header_gif_lib_h" "$ac_includes_default"
13865 if test "x$ac_cv_header_gif_lib_h" = x
""yes; then :
13866 # EGifPutExtensionLast only exists from version libungif-4.1.0b1.
13867 # Earlier versions can crash Emacs.
13868 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for EGifPutExtensionLast in -lgif" >&5
13869 $as_echo_n "checking for EGifPutExtensionLast in -lgif... " >&6; }
13870 if test "${ac_cv_lib_gif_EGifPutExtensionLast+set}" = set; then :
13871 $as_echo_n "(cached) " >&6
13873 ac_check_lib_save_LIBS
=$LIBS
13875 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
13876 /* end confdefs.h. */
13878 /* Override any GCC internal prototype to avoid an error.
13879 Use char because int might match the return type of a GCC
13880 builtin and then its argument prototype would still apply. */
13884 char EGifPutExtensionLast ();
13888 return EGifPutExtensionLast ();
13893 if ac_fn_c_try_link
"$LINENO"; then :
13894 ac_cv_lib_gif_EGifPutExtensionLast
=yes
13896 ac_cv_lib_gif_EGifPutExtensionLast
=no
13898 rm -f core conftest.err conftest.
$ac_objext \
13899 conftest
$ac_exeext conftest.
$ac_ext
13900 LIBS
=$ac_check_lib_save_LIBS
13902 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_gif_EGifPutExtensionLast" >&5
13903 $as_echo "$ac_cv_lib_gif_EGifPutExtensionLast" >&6; }
13904 if test "x$ac_cv_lib_gif_EGifPutExtensionLast" = x
""yes; then :
13914 if test "$HAVE_GIF" = yes; then
13916 elif test "$HAVE_GIF" = maybe
; then
13917 # If gif_lib.h but no libgif, try libungif.
13918 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for EGifPutExtensionLast in -lungif" >&5
13919 $as_echo_n "checking for EGifPutExtensionLast in -lungif... " >&6; }
13920 if test "${ac_cv_lib_ungif_EGifPutExtensionLast+set}" = set; then :
13921 $as_echo_n "(cached) " >&6
13923 ac_check_lib_save_LIBS
=$LIBS
13924 LIBS
="-lungif $LIBS"
13925 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
13926 /* end confdefs.h. */
13928 /* Override any GCC internal prototype to avoid an error.
13929 Use char because int might match the return type of a GCC
13930 builtin and then its argument prototype would still apply. */
13934 char EGifPutExtensionLast ();
13938 return EGifPutExtensionLast ();
13943 if ac_fn_c_try_link
"$LINENO"; then :
13944 ac_cv_lib_ungif_EGifPutExtensionLast
=yes
13946 ac_cv_lib_ungif_EGifPutExtensionLast
=no
13948 rm -f core conftest.err conftest.
$ac_objext \
13949 conftest
$ac_exeext conftest.
$ac_ext
13950 LIBS
=$ac_check_lib_save_LIBS
13952 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_ungif_EGifPutExtensionLast" >&5
13953 $as_echo "$ac_cv_lib_ungif_EGifPutExtensionLast" >&6; }
13954 if test "x$ac_cv_lib_ungif_EGifPutExtensionLast" = x
""yes; then :
13960 test "$HAVE_GIF" = yes && LIBGIF
=-lungif
13963 if test "${HAVE_GIF}" = "yes"; then
13965 $as_echo "#define HAVE_GIF 1" >>confdefs.h
13971 if test "${HAVE_X11}" = "yes"; then
13974 test "${with_xpm}" != "no" && test "${HAVE_XPM}" != "yes" &&
13975 MISSING
="libXpm" && WITH_NO
="--with-xpm=no"
13976 test "${with_jpeg}" != "no" && test "${HAVE_JPEG}" != "yes" &&
13977 MISSING
="$MISSING libjpeg" && WITH_NO
="$WITH_NO --with-jpeg=no"
13978 test "${with_png}" != "no" && test "${HAVE_PNG}" != "yes" &&
13979 MISSING
="$MISSING libpng" && WITH_NO
="$WITH_NO --with-png=no"
13980 test "${with_gif}" != "no" && test "${HAVE_GIF}" != "yes" &&
13981 MISSING
="$MISSING libgif/libungif" && WITH_NO
="$WITH_NO --with-gif=no"
13982 test "${with_tiff}" != "no" && test "${HAVE_TIFF}" != "yes" &&
13983 MISSING
="$MISSING libtiff" && WITH_NO
="$WITH_NO --with-tiff=no"
13985 if test "X${MISSING}" != X
; then
13986 as_fn_error
"The following required libraries were not found:
13988 Maybe some development libraries/packages are missing?
13989 If you don't want to link with them give
13991 as options to configure" "$LINENO" 5
13995 ### Use -lgpm if available, unless `--with-gpm=no'.
13998 if test "${with_gpm}" != "no"; then
13999 ac_fn_c_check_header_mongrel
"$LINENO" "gpm.h" "ac_cv_header_gpm_h" "$ac_includes_default"
14000 if test "x$ac_cv_header_gpm_h" = x
""yes; then :
14001 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Gpm_Open in -lgpm" >&5
14002 $as_echo_n "checking for Gpm_Open in -lgpm... " >&6; }
14003 if test "${ac_cv_lib_gpm_Gpm_Open+set}" = set; then :
14004 $as_echo_n "(cached) " >&6
14006 ac_check_lib_save_LIBS
=$LIBS
14008 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
14009 /* end confdefs.h. */
14011 /* Override any GCC internal prototype to avoid an error.
14012 Use char because int might match the return type of a GCC
14013 builtin and then its argument prototype would still apply. */
14021 return Gpm_Open ();
14026 if ac_fn_c_try_link
"$LINENO"; then :
14027 ac_cv_lib_gpm_Gpm_Open
=yes
14029 ac_cv_lib_gpm_Gpm_Open
=no
14031 rm -f core conftest.err conftest.
$ac_objext \
14032 conftest
$ac_exeext conftest.
$ac_ext
14033 LIBS
=$ac_check_lib_save_LIBS
14035 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_gpm_Gpm_Open" >&5
14036 $as_echo "$ac_cv_lib_gpm_Gpm_Open" >&6; }
14037 if test "x$ac_cv_lib_gpm_Gpm_Open" = x
""yes; then :
14045 if test "${HAVE_GPM}" = "yes"; then
14047 $as_echo "#define HAVE_GPM 1" >>confdefs.h
14054 ac_fn_c_check_header_mongrel
"$LINENO" "malloc/malloc.h" "ac_cv_header_malloc_malloc_h" "$ac_includes_default"
14055 if test "x$ac_cv_header_malloc_malloc_h" = x
""yes; then :
14057 $as_echo "#define HAVE_MALLOC_MALLOC_H 1" >>confdefs.h
14064 ### Use NeXTstep API to implement GUI.
14065 if test "${HAVE_NS}" = "yes"; then
14067 $as_echo "#define HAVE_NS 1" >>confdefs.h
14069 if test "${NS_IMPL_COCOA}" = "yes"; then
14071 $as_echo "#define NS_IMPL_COCOA 1" >>confdefs.h
14074 if test "${NS_IMPL_GNUSTEP}" = "yes"; then
14076 $as_echo "#define NS_IMPL_GNUSTEP 1" >>confdefs.h
14078 # See also .m.o rule in Makefile.in */
14079 # FIXME: are all these flags really needed? Document here why. */
14080 GNUSTEP_CFLAGS
="-D_REENTRANT -fPIC -fno-strict-aliasing -I${GNUSTEP_SYSTEM_HEADERS} ${GNUSTEP_LOCAL_HEADERS}"
14081 ## Extra CFLAGS applied to src/*.m files.
14082 GNU_OBJC_CFLAGS
="$GNU_OBJC_CFLAGS -fgnu-runtime -Wno-import -fconstant-string-class=NSConstantString -DGNUSTEP_BASE_LIBRARY=1 -DGNU_GUI_LIBRARY=1 -DGNU_RUNTIME=1 -DGSWARN -DGSDIAGNOSE"
14084 # We also have mouse menus.
14090 ### Use session management (-lSM -lICE) if available
14093 if test "${HAVE_X11}" = "yes"; then
14094 ac_fn_c_check_header_mongrel
"$LINENO" "X11/SM/SMlib.h" "ac_cv_header_X11_SM_SMlib_h" "$ac_includes_default"
14095 if test "x$ac_cv_header_X11_SM_SMlib_h" = x
""yes; then :
14096 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for SmcOpenConnection in -lSM" >&5
14097 $as_echo_n "checking for SmcOpenConnection in -lSM... " >&6; }
14098 if test "${ac_cv_lib_SM_SmcOpenConnection+set}" = set; then :
14099 $as_echo_n "(cached) " >&6
14101 ac_check_lib_save_LIBS
=$LIBS
14102 LIBS
="-lSM -lICE $LIBS"
14103 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
14104 /* end confdefs.h. */
14106 /* Override any GCC internal prototype to avoid an error.
14107 Use char because int might match the return type of a GCC
14108 builtin and then its argument prototype would still apply. */
14112 char SmcOpenConnection ();
14116 return SmcOpenConnection ();
14121 if ac_fn_c_try_link
"$LINENO"; then :
14122 ac_cv_lib_SM_SmcOpenConnection
=yes
14124 ac_cv_lib_SM_SmcOpenConnection
=no
14126 rm -f core conftest.err conftest.
$ac_objext \
14127 conftest
$ac_exeext conftest.
$ac_ext
14128 LIBS
=$ac_check_lib_save_LIBS
14130 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_SM_SmcOpenConnection" >&5
14131 $as_echo "$ac_cv_lib_SM_SmcOpenConnection" >&6; }
14132 if test "x$ac_cv_lib_SM_SmcOpenConnection" = x
""yes; then :
14140 if test "${HAVE_X_SM}" = "yes"; then
14142 $as_echo "#define HAVE_X_SM 1" >>confdefs.h
14144 LIBXSM
="-lSM -lICE"
14147 *) LIBS
="$LIBXSM $LIBS" ;;
14153 ### Use libxml (-lxml2) if available
14155 if test "${with_xml2}" != "no"; then
14156 ### I'm not sure what the version number should be, so I just guessed.
14160 # Extract the first word of "pkg-config", so it can be a program name with args.
14161 set dummy pkg-config
; ac_word
=$2
14162 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
14163 $as_echo_n "checking for $ac_word... " >&6; }
14164 if test "${ac_cv_path_PKG_CONFIG+set}" = set; then :
14165 $as_echo_n "(cached) " >&6
14167 case $PKG_CONFIG in
14169 ac_cv_path_PKG_CONFIG
="$PKG_CONFIG" # Let the user override the test with a path.
14172 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
14173 for as_dir
in $PATH
14176 test -z "$as_dir" && as_dir
=.
14177 for ac_exec_ext
in '' $ac_executable_extensions; do
14178 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
14179 ac_cv_path_PKG_CONFIG
="$as_dir/$ac_word$ac_exec_ext"
14180 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
14187 test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG
="no"
14191 PKG_CONFIG
=$ac_cv_path_PKG_CONFIG
14192 if test -n "$PKG_CONFIG"; then
14193 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5
14194 $as_echo "$PKG_CONFIG" >&6; }
14196 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14197 $as_echo "no" >&6; }
14202 if test "$PKG_CONFIG" = "no" ; then
14205 PKG_CONFIG_MIN_VERSION
=0.9.0
14206 if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
14207 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libxml-2.0 > 2.6.17" >&5
14208 $as_echo_n "checking for libxml-2.0 > 2.6.17... " >&6; }
14210 if $PKG_CONFIG --exists "libxml-2.0 > 2.6.17" 2>&5 &&
14211 LIBXML2_CFLAGS
=`$PKG_CONFIG --cflags "libxml-2.0 > 2.6.17" 2>&5` &&
14212 LIBXML2_LIBS
=`$PKG_CONFIG --libs "libxml-2.0 > 2.6.17" 2>&5`; then
14219 LIBXML2_CFLAGS
=`$as_echo "$LIBXML2_CFLAGS" | sed -e "$edit_cflags"`
14220 LIBXML2_LIBS
=`$as_echo "$LIBXML2_LIBS" | sed -e 's,///*,/,g'`
14221 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes CFLAGS='$LIBXML2_CFLAGS' LIBS='$LIBXML2_LIBS'" >&5
14222 $as_echo "yes CFLAGS='$LIBXML2_CFLAGS' LIBS='$LIBXML2_LIBS'" >&6; }
14225 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14226 $as_echo "no" >&6; }
14229 ## If we have a custom action on failure, don't print errors, but
14230 ## do set a variable so people can do so.
14231 LIBXML2_PKG_ERRORS
=`$PKG_CONFIG --errors-to-stdout --print-errors "libxml-2.0 > 2.6.17"`
14238 echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
14239 echo "*** See http://www.freedesktop.org/software/pkgconfig"
14243 if test $succeeded = yes; then
14249 if test "${HAVE_LIBXML2}" = "yes"; then
14250 LIBS
="$LIBXML2_LIBS $LIBS"
14251 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for htmlReadMemory in -lxml2" >&5
14252 $as_echo_n "checking for htmlReadMemory in -lxml2... " >&6; }
14253 if test "${ac_cv_lib_xml2_htmlReadMemory+set}" = set; then :
14254 $as_echo_n "(cached) " >&6
14256 ac_check_lib_save_LIBS
=$LIBS
14257 LIBS
="-lxml2 $LIBS"
14258 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
14259 /* end confdefs.h. */
14261 /* Override any GCC internal prototype to avoid an error.
14262 Use char because int might match the return type of a GCC
14263 builtin and then its argument prototype would still apply. */
14267 char htmlReadMemory ();
14271 return htmlReadMemory ();
14276 if ac_fn_c_try_link
"$LINENO"; then :
14277 ac_cv_lib_xml2_htmlReadMemory
=yes
14279 ac_cv_lib_xml2_htmlReadMemory
=no
14281 rm -f core conftest.err conftest.
$ac_objext \
14282 conftest
$ac_exeext conftest.
$ac_ext
14283 LIBS
=$ac_check_lib_save_LIBS
14285 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_xml2_htmlReadMemory" >&5
14286 $as_echo "$ac_cv_lib_xml2_htmlReadMemory" >&6; }
14287 if test "x$ac_cv_lib_xml2_htmlReadMemory" = x
""yes; then :
14293 if test "${HAVE_LIBXML2}" = "yes"; then
14295 $as_echo "#define HAVE_LIBXML2 1" >>confdefs.h
14306 # If netdb.h doesn't declare h_errno, we must declare it by hand.
14307 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether netdb declares h_errno" >&5
14308 $as_echo_n "checking whether netdb declares h_errno... " >&6; }
14309 if test "${emacs_cv_netdb_declares_h_errno+set}" = set; then :
14310 $as_echo_n "(cached) " >&6
14312 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
14313 /* end confdefs.h. */
14323 if ac_fn_c_try_link
"$LINENO"; then :
14324 emacs_cv_netdb_declares_h_errno
=yes
14326 emacs_cv_netdb_declares_h_errno
=no
14328 rm -f core conftest.err conftest.
$ac_objext \
14329 conftest
$ac_exeext conftest.
$ac_ext
14331 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $emacs_cv_netdb_declares_h_errno" >&5
14332 $as_echo "$emacs_cv_netdb_declares_h_errno" >&6; }
14333 if test $emacs_cv_netdb_declares_h_errno = yes; then
14335 $as_echo "#define HAVE_H_ERRNO 1" >>confdefs.h
14339 # fmod, logb, and frexp are found in -lm on most systems.
14340 # On HPUX 9.01, -lm does not contain logb, so check for sqrt.
14341 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sqrt in -lm" >&5
14342 $as_echo_n "checking for sqrt in -lm... " >&6; }
14343 if test "${ac_cv_lib_m_sqrt+set}" = set; then :
14344 $as_echo_n "(cached) " >&6
14346 ac_check_lib_save_LIBS
=$LIBS
14348 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
14349 /* end confdefs.h. */
14351 /* Override any GCC internal prototype to avoid an error.
14352 Use char because int might match the return type of a GCC
14353 builtin and then its argument prototype would still apply. */
14366 if ac_fn_c_try_link
"$LINENO"; then :
14367 ac_cv_lib_m_sqrt
=yes
14369 ac_cv_lib_m_sqrt
=no
14371 rm -f core conftest.err conftest.
$ac_objext \
14372 conftest
$ac_exeext conftest.
$ac_ext
14373 LIBS
=$ac_check_lib_save_LIBS
14375 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_m_sqrt" >&5
14376 $as_echo "$ac_cv_lib_m_sqrt" >&6; }
14377 if test "x$ac_cv_lib_m_sqrt" = x
""yes; then :
14378 cat >>confdefs.h
<<_ACEOF
14379 #define HAVE_LIBM 1
14387 # Check for mail-locking functions in a "mail" library. Probably this should
14388 # have the same check as for liblockfile below.
14389 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for maillock in -lmail" >&5
14390 $as_echo_n "checking for maillock in -lmail... " >&6; }
14391 if test "${ac_cv_lib_mail_maillock+set}" = set; then :
14392 $as_echo_n "(cached) " >&6
14394 ac_check_lib_save_LIBS
=$LIBS
14395 LIBS
="-lmail $LIBS"
14396 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
14397 /* end confdefs.h. */
14399 /* Override any GCC internal prototype to avoid an error.
14400 Use char because int might match the return type of a GCC
14401 builtin and then its argument prototype would still apply. */
14409 return maillock ();
14414 if ac_fn_c_try_link
"$LINENO"; then :
14415 ac_cv_lib_mail_maillock
=yes
14417 ac_cv_lib_mail_maillock
=no
14419 rm -f core conftest.err conftest.
$ac_objext \
14420 conftest
$ac_exeext conftest.
$ac_ext
14421 LIBS
=$ac_check_lib_save_LIBS
14423 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_mail_maillock" >&5
14424 $as_echo "$ac_cv_lib_mail_maillock" >&6; }
14425 if test "x$ac_cv_lib_mail_maillock" = x
""yes; then :
14431 if test $have_mail = yes; then
14433 LIBS
="$LIBS_MAIL $LIBS"
14435 $as_echo "#define HAVE_LIBMAIL 1" >>confdefs.h
14440 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for maillock in -llockfile" >&5
14441 $as_echo_n "checking for maillock in -llockfile... " >&6; }
14442 if test "${ac_cv_lib_lockfile_maillock+set}" = set; then :
14443 $as_echo_n "(cached) " >&6
14445 ac_check_lib_save_LIBS
=$LIBS
14446 LIBS
="-llockfile $LIBS"
14447 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
14448 /* end confdefs.h. */
14450 /* Override any GCC internal prototype to avoid an error.
14451 Use char because int might match the return type of a GCC
14452 builtin and then its argument prototype would still apply. */
14460 return maillock ();
14465 if ac_fn_c_try_link
"$LINENO"; then :
14466 ac_cv_lib_lockfile_maillock
=yes
14468 ac_cv_lib_lockfile_maillock
=no
14470 rm -f core conftest.err conftest.
$ac_objext \
14471 conftest
$ac_exeext conftest.
$ac_ext
14472 LIBS
=$ac_check_lib_save_LIBS
14474 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_lockfile_maillock" >&5
14475 $as_echo "$ac_cv_lib_lockfile_maillock" >&6; }
14476 if test "x$ac_cv_lib_lockfile_maillock" = x
""yes; then :
14482 if test $have_lockfile = yes; then
14483 LIBS_MAIL
=-llockfile
14484 LIBS
="$LIBS_MAIL $LIBS"
14486 $as_echo "#define HAVE_LIBLOCKFILE 1" >>confdefs.h
14489 # If we have the shared liblockfile, assume we must use it for mail
14490 # locking (e.g. Debian). If we couldn't link against liblockfile
14491 # (no liblockfile.a installed), ensure that we don't need to.
14492 # Extract the first word of "liblockfile.so", so it can be a program name with args.
14493 set dummy liblockfile.so
; ac_word
=$2
14494 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
14495 $as_echo_n "checking for $ac_word... " >&6; }
14496 if test "${ac_cv_prog_liblockfile+set}" = set; then :
14497 $as_echo_n "(cached) " >&6
14499 if test -n "$liblockfile"; then
14500 ac_cv_prog_liblockfile
="$liblockfile" # Let the user override the test.
14502 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
14503 as_dummy
="/usr/lib:/lib:/usr/local/lib:$LD_LIBRARY_PATH"
14504 for as_dir
in $as_dummy
14507 test -z "$as_dir" && as_dir
=.
14508 for ac_exec_ext
in '' $ac_executable_extensions; do
14509 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
14510 ac_cv_prog_liblockfile
="yes"
14511 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
14518 test -z "$ac_cv_prog_liblockfile" && ac_cv_prog_liblockfile
="no"
14521 liblockfile
=$ac_cv_prog_liblockfile
14522 if test -n "$liblockfile"; then
14523 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $liblockfile" >&5
14524 $as_echo "$liblockfile" >&6; }
14526 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14527 $as_echo "no" >&6; }
14531 if test $ac_cv_prog_liblockfile = yes; then
14532 as_fn_error
"Shared liblockfile found but can't link against it.
14533 This probably means that movemail could lose mail.
14534 There may be a \`development' package to install containing liblockfile." "$LINENO" 5
14537 for ac_func
in touchlock
14539 ac_fn_c_check_func
"$LINENO" "touchlock" "ac_cv_func_touchlock"
14540 if test "x$ac_cv_func_touchlock" = x
""yes; then :
14541 cat >>confdefs.h
<<_ACEOF
14542 #define HAVE_TOUCHLOCK 1
14548 for ac_header
in maillock.h
14550 ac_fn_c_check_header_mongrel
"$LINENO" "maillock.h" "ac_cv_header_maillock_h" "$ac_includes_default"
14551 if test "x$ac_cv_header_maillock_h" = x
""yes; then :
14552 cat >>confdefs.h
<<_ACEOF
14553 #define HAVE_MAILLOCK_H 1
14562 ## Define MAIL_USE_FLOCK (or LOCKF) if the mailer uses flock (or lockf) to
14563 ## interlock access to the mail spool. The alternative is a lock file named
14564 ## /usr/spool/mail/$USER.lock.
14567 aix4-2
) mail_lock
="lockf" ;;
14569 gnu|freebsd|netbsd|openbsd|darwin|irix6-5
) mail_lock
="flock" ;;
14571 ## On GNU/Linux systems, both methods are used by various mail programs.
14572 ## I assume most people are using newer mailers that have heard of flock.
14573 ## Change this if you need to.
14574 ## Debian contains a patch which says: ``On Debian/GNU/Linux systems,
14575 ## configure gets the right answers, and that means *NOT* using flock.
14576 ## Using flock is guaranteed to be the wrong thing. See Debian Policy
14577 ## for details.'' and then uses `#ifdef DEBIAN'. Unfortunately the
14578 ## Debian maintainer hasn't provided a clean fix for Emacs.
14579 ## movemail.c will use `maillock' when MAILDIR, HAVE_LIBMAIL and
14580 ## HAVE_MAILLOCK_H are defined, so the following appears to be the
14581 ## correct logic. -- fx
14582 ## We must check for HAVE_LIBLOCKFILE too, as movemail does.
14583 ## liblockfile is a Free Software replacement for libmail, used on
14584 ## Debian systems and elsewhere. -rfr.
14587 if test $have_mail = yes ||
test $have_lockfile = yes; then
14588 test $ac_cv_header_maillock_h = yes && mail_lock
=no
14594 case "$mail_lock" in
14596 $as_echo "#define MAIL_USE_FLOCK 1" >>confdefs.h
14600 $as_echo "#define MAIL_USE_LOCKF 1" >>confdefs.h
14603 *) BLESSMAIL_TARGET
="need-blessmail" ;;
14608 for ac_func
in gethostname getdomainname \
14609 rename closedir mkdir
rmdir sysinfo getrusage get_current_dir_name \
14610 random lrand48 logb frexp fmod rint cbrt ftime setsid \
14611 strerror fpathconf
select euidaccess getpagesize tzset setlocale \
14612 utimes getrlimit setrlimit setpgid getcwd getwd shutdown getaddrinfo \
14613 __fpending mblen mbrlen mbsinit strsignal setitimer ualarm \
14614 sendto recvfrom getsockopt setsockopt getsockname getpeername \
14615 gai_strerror mkstemp getline getdelim mremap fsync sync \
14616 difftime mempcpy mblen mbrlen posix_memalign \
14617 getpwent endpwent getgrent endgrent \
14618 cfmakeraw cfsetspeed copysign __executable_start
14620 as_ac_var
=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
14621 ac_fn_c_check_func
"$LINENO" "$ac_func" "$as_ac_var"
14622 eval as_val
=\$
$as_ac_var
14623 if test "x$as_val" = x
""yes; then :
14624 cat >>confdefs.h
<<_ACEOF
14625 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
14632 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for __builtin_unwind_init" >&5
14633 $as_echo_n "checking for __builtin_unwind_init... " >&6; }
14634 if test "${emacs_cv_func___builtin_unwind_init+set}" = set; then :
14635 $as_echo_n "(cached) " >&6
14637 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
14638 /* end confdefs.h. */
14643 __builtin_unwind_init ();
14648 if ac_fn_c_try_link
"$LINENO"; then :
14649 emacs_cv_func___builtin_unwind_init
=yes
14651 emacs_cv_func___builtin_unwind_init
=no
14653 rm -f core conftest.err conftest.
$ac_objext \
14654 conftest
$ac_exeext conftest.
$ac_ext
14656 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $emacs_cv_func___builtin_unwind_init" >&5
14657 $as_echo "$emacs_cv_func___builtin_unwind_init" >&6; }
14658 if test $emacs_cv_func___builtin_unwind_init = yes; then
14660 $as_echo "#define HAVE___BUILTIN_UNWIND_INIT 1" >>confdefs.h
14664 for ac_header
in sys
/un.h
14666 ac_fn_c_check_header_mongrel
"$LINENO" "sys/un.h" "ac_cv_header_sys_un_h" "$ac_includes_default"
14667 if test "x$ac_cv_header_sys_un_h" = x
""yes; then :
14668 cat >>confdefs.h
<<_ACEOF
14669 #define HAVE_SYS_UN_H 1
14677 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _LARGEFILE_SOURCE value needed for large files" >&5
14678 $as_echo_n "checking for _LARGEFILE_SOURCE value needed for large files... " >&6; }
14679 if test "${ac_cv_sys_largefile_source+set}" = set; then :
14680 $as_echo_n "(cached) " >&6
14683 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
14684 /* end confdefs.h. */
14685 #include <sys/types.h> /* for off_t */
14690 int (*fp) (FILE *, off_t, int) = fseeko;
14691 return fseeko (stdin, 0, 0) && fp (stdin, 0, 0);
14696 if ac_fn_c_try_link
"$LINENO"; then :
14697 ac_cv_sys_largefile_source
=no
; break
14699 rm -f core conftest.err conftest.
$ac_objext \
14700 conftest
$ac_exeext conftest.
$ac_ext
14701 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
14702 /* end confdefs.h. */
14703 #define _LARGEFILE_SOURCE 1
14704 #include <sys/types.h> /* for off_t */
14709 int (*fp) (FILE *, off_t, int) = fseeko;
14710 return fseeko (stdin, 0, 0) && fp (stdin, 0, 0);
14715 if ac_fn_c_try_link
"$LINENO"; then :
14716 ac_cv_sys_largefile_source
=1; break
14718 rm -f core conftest.err conftest.
$ac_objext \
14719 conftest
$ac_exeext conftest.
$ac_ext
14720 ac_cv_sys_largefile_source
=unknown
14724 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_largefile_source" >&5
14725 $as_echo "$ac_cv_sys_largefile_source" >&6; }
14726 case $ac_cv_sys_largefile_source in #(
14729 cat >>confdefs.h
<<_ACEOF
14730 #define _LARGEFILE_SOURCE $ac_cv_sys_largefile_source
14736 # We used to try defining _XOPEN_SOURCE=500 too, to work around a bug
14737 # in glibc 2.1.3, but that breaks too many other things.
14738 # If you want fseeko and ftello with glibc, upgrade to a fixed glibc.
14739 if test $ac_cv_sys_largefile_source != unknown
; then
14741 $as_echo "#define HAVE_FSEEKO 1" >>confdefs.h
14746 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether getpgrp requires zero arguments" >&5
14747 $as_echo_n "checking whether getpgrp requires zero arguments... " >&6; }
14748 if test "${ac_cv_func_getpgrp_void+set}" = set; then :
14749 $as_echo_n "(cached) " >&6
14751 # Use it with a single arg.
14752 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
14753 /* end confdefs.h. */
14754 $ac_includes_default
14763 if ac_fn_c_try_compile
"$LINENO"; then :
14764 ac_cv_func_getpgrp_void
=no
14766 ac_cv_func_getpgrp_void
=yes
14768 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
14771 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_getpgrp_void" >&5
14772 $as_echo "$ac_cv_func_getpgrp_void" >&6; }
14773 if test $ac_cv_func_getpgrp_void = yes; then
14775 $as_echo "#define GETPGRP_VOID 1" >>confdefs.h
14781 for ac_func
in grantpt
14783 ac_fn_c_check_func
"$LINENO" "grantpt" "ac_cv_func_grantpt"
14784 if test "x$ac_cv_func_grantpt" = x
""yes; then :
14785 cat >>confdefs.h
<<_ACEOF
14786 #define HAVE_GRANTPT 1
14793 # PTY-related GNU extensions.
14794 for ac_func
in getpt
14796 ac_fn_c_check_func
"$LINENO" "getpt" "ac_cv_func_getpt"
14797 if test "x$ac_cv_func_getpt" = x
""yes; then :
14798 cat >>confdefs.h
<<_ACEOF
14799 #define HAVE_GETPT 1
14806 # Check this now, so that we will NOT find the above functions in ncurses.
14807 # That is because we have not set up to link ncurses in lib-src.
14808 # It's better to believe a function is not available
14809 # than to expect to find it in ncurses.
14810 # Also we need tputs and friends to be able to build at all.
14811 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing tputs" >&5
14812 $as_echo_n "checking for library containing tputs... " >&6; }
14813 # Run a test program that contains a call to tputs, a call that is
14814 # never executed. This tests whether a pre-'main' dynamic linker
14815 # works with the library. It's too much trouble to actually call
14816 # tputs in the test program, due to portability hassles. When
14817 # cross-compiling, assume the test program will run if it links.
14819 # Maybe curses should be tried earlier?
14820 # See http://debbugs.gnu.org/cgi/bugreport.cgi?bug=9736#35
14821 for tputs_library
in '' ncurses terminfo termcap curses
; do
14823 if test -z "$tputs_library"; then
14825 msg
='none required'
14827 LIBS_TERMCAP
=-l$tputs_library
14829 LIBS
="$LIBS_TERMCAP $LIBS"
14831 if test "$cross_compiling" = yes; then :
14832 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
14833 /* end confdefs.h. */
14835 extern void tputs (const char *, int, int (*)(int));
14836 int main (int argc, char **argv)
14839 tputs (argv[0], 0, 0);
14844 if ac_fn_c_try_link
"$LINENO"; then :
14849 rm -f core conftest.err conftest.
$ac_objext \
14850 conftest
$ac_exeext conftest.
$ac_ext
14852 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
14853 /* end confdefs.h. */
14855 extern void tputs (const char *, int, int (*)(int));
14856 int main (int argc, char **argv)
14859 tputs (argv[0], 0, 0);
14864 if ac_fn_c_try_run
"$LINENO"; then :
14869 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
14870 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
14874 if test "X$msg" != Xno
; then
14878 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $msg" >&5
14879 $as_echo "$msg" >&6; }
14880 if test "X$msg" = Xno
; then
14881 as_fn_error
"The required function \`tputs' was not found in any library.
14882 These libraries were tried: libncurses, libterminfo, libtermcap, libcurses.
14883 Please try installing whichever of these libraries is most appropriate
14884 for your system, together with its header files.
14885 For example, a libncurses-dev(el) or similar package." "$LINENO" 5
14887 # Must define this when any termcap library is found.
14889 $as_echo "#define HAVE_LIBNCURSES 1" >>confdefs.h
14891 ## FIXME This was the cpp logic, but I am not sure it is right.
14892 ## The above test has not necessarily found libncurses.
14893 HAVE_LIBNCURSES
=yes
14895 ## Use terminfo instead of termcap?
14896 ## Note only system files NOT using terminfo are:
14897 ## freebsd < 40000, ms-w32, msdos, netbsd < 599002500, and
14898 ## darwin|gnu without ncurses.
14901 ## cygwin: Fewer environment variables to go wrong, more terminal types.
14902 ## hpux10-20: Use the system provided termcap(3) library.
14903 ## openbsd: David Mazieres <dm@reeducation-labor.lcs.mit.edu> says this
14904 ## is necessary. Otherwise Emacs dumps core when run -nw.
14905 aix4-2|cygwin|hpux
*|irix6-5|openbsd|sol2
*|unixware
) TERMINFO
=yes ;;
14907 ## darwin: Prevents crashes when running Emacs in Terminal.app under 10.2.
14908 ## The ncurses library has been moved out of the System framework in
14909 ## Mac OS X 10.2. So if configure detects it, set the command-line
14910 ## option to use it.
14912 ## (HAVE_LIBNCURSES was not always true, but is since 2010-03-18.)
14913 if test "x$HAVE_LIBNCURSES" = "xyes"; then
14915 LIBS_TERMCAP
="-lncurses"
14920 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether FreeBSD is new enough to use terminfo" >&5
14921 $as_echo_n "checking whether FreeBSD is new enough to use terminfo... " >&6; }
14922 if test "${emacs_cv_freebsd_terminfo+set}" = set; then :
14923 $as_echo_n "(cached) " >&6
14925 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
14926 /* end confdefs.h. */
14927 #include <osreldate.h>
14931 #if __FreeBSD_version < 400000
14939 if ac_fn_c_try_link
"$LINENO"; then :
14940 emacs_cv_freebsd_terminfo
=yes
14942 emacs_cv_freebsd_terminfo
=no
14944 rm -f core conftest.err conftest.
$ac_objext \
14945 conftest
$ac_exeext conftest.
$ac_ext
14949 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $emacs_cv_freebsd_terminfo" >&5
14950 $as_echo "$emacs_cv_freebsd_terminfo" >&6; }
14952 if test $emacs_cv_freebsd_terminfo = yes; then
14954 LIBS_TERMCAP
="-lncurses"
14956 LIBS_TERMCAP
="-ltermcap"
14961 if test $ac_cv_search_tputs = -lterminfo; then
14963 LIBS_TERMCAP
="-lterminfo"
14965 LIBS_TERMCAP
="-ltermcap"
14972 ## hpux: Make sure we get select from libc rather than from libcurses
14973 ## because libcurses on HPUX 10.10 has a broken version of select.
14974 ## We used to use -lc -lcurses, but this may be cleaner.
14975 hpux
*) LIBS_TERMCAP
="-ltermcap" ;;
14977 openbsd
) LIBS_TERMCAP
="-lncurses" ;;
14979 ## Must use system termcap, if we use any termcap. It does special things.
14980 sol2
*) test "$TERMINFO" != yes && LIBS_TERMCAP
="-ltermcap" ;;
14983 TERMCAP_OBJ
=tparam.o
14984 if test $TERMINFO = yes; then
14986 $as_echo "#define TERMINFO 1" >>confdefs.h
14988 TERMCAP_OBJ
=terminfo.o
14994 # Do we have res_init, for detecting changes in /etc/resolv.conf?
14996 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
14997 /* end confdefs.h. */
14998 #include <netinet/in.h>
14999 #include <arpa/nameser.h>
15000 #include <resolv.h>
15009 if ac_fn_c_try_link
"$LINENO"; then :
15014 rm -f core conftest.err conftest.
$ac_objext \
15015 conftest
$ac_exeext conftest.
$ac_ext
15016 if test "$have_res_init" = no
; then
15018 LIBS
="$LIBS -lresolv"
15019 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for res_init with -lresolv" >&5
15020 $as_echo_n "checking for res_init with -lresolv... " >&6; }
15021 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
15022 /* end confdefs.h. */
15023 #include <netinet/in.h>
15024 #include <arpa/nameser.h>
15025 #include <resolv.h>
15034 if ac_fn_c_try_link
"$LINENO"; then :
15039 rm -f core conftest.err conftest.
$ac_objext \
15040 conftest
$ac_exeext conftest.
$ac_ext
15041 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_res_init" >&5
15042 $as_echo "$have_res_init" >&6; }
15043 if test "$have_res_init" = yes ; then
15049 if test "$have_res_init" = yes; then
15051 $as_echo "#define HAVE_RES_INIT 1" >>confdefs.h
15055 # Do we need the Hesiod library to provide the support routines?
15057 if test "$with_hesiod" != no
; then
15058 # Don't set $LIBS here -- see comments above. FIXME which comments?
15059 ac_fn_c_check_func
"$LINENO" "res_send" "ac_cv_func_res_send"
15060 if test "x$ac_cv_func_res_send" = x
""yes; then :
15063 ac_fn_c_check_func
"$LINENO" "__res_send" "ac_cv_func___res_send"
15064 if test "x$ac_cv_func___res_send" = x
""yes; then :
15067 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for res_send in -lresolv" >&5
15068 $as_echo_n "checking for res_send in -lresolv... " >&6; }
15069 if test "${ac_cv_lib_resolv_res_send+set}" = set; then :
15070 $as_echo_n "(cached) " >&6
15072 ac_check_lib_save_LIBS
=$LIBS
15073 LIBS
="-lresolv $LIBS"
15074 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
15075 /* end confdefs.h. */
15077 /* Override any GCC internal prototype to avoid an error.
15078 Use char because int might match the return type of a GCC
15079 builtin and then its argument prototype would still apply. */
15087 return res_send ();
15092 if ac_fn_c_try_link
"$LINENO"; then :
15093 ac_cv_lib_resolv_res_send
=yes
15095 ac_cv_lib_resolv_res_send
=no
15097 rm -f core conftest.err conftest.
$ac_objext \
15098 conftest
$ac_exeext conftest.
$ac_ext
15099 LIBS
=$ac_check_lib_save_LIBS
15101 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_resolv_res_send" >&5
15102 $as_echo "$ac_cv_lib_resolv_res_send" >&6; }
15103 if test "x$ac_cv_lib_resolv_res_send" = x
""yes; then :
15106 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for __res_send in -lresolv" >&5
15107 $as_echo_n "checking for __res_send in -lresolv... " >&6; }
15108 if test "${ac_cv_lib_resolv___res_send+set}" = set; then :
15109 $as_echo_n "(cached) " >&6
15111 ac_check_lib_save_LIBS
=$LIBS
15112 LIBS
="-lresolv $LIBS"
15113 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
15114 /* end confdefs.h. */
15116 /* Override any GCC internal prototype to avoid an error.
15117 Use char because int might match the return type of a GCC
15118 builtin and then its argument prototype would still apply. */
15122 char __res_send ();
15126 return __res_send ();
15131 if ac_fn_c_try_link
"$LINENO"; then :
15132 ac_cv_lib_resolv___res_send
=yes
15134 ac_cv_lib_resolv___res_send
=no
15136 rm -f core conftest.err conftest.
$ac_objext \
15137 conftest
$ac_exeext conftest.
$ac_ext
15138 LIBS
=$ac_check_lib_save_LIBS
15140 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_resolv___res_send" >&5
15141 $as_echo "$ac_cv_lib_resolv___res_send" >&6; }
15142 if test "x$ac_cv_lib_resolv___res_send" = x
""yes; then :
15152 if test "$resolv" = yes ; then
15157 ac_fn_c_check_func
"$LINENO" "hes_getmailhost" "ac_cv_func_hes_getmailhost"
15158 if test "x$ac_cv_func_hes_getmailhost" = x
""yes; then :
15161 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for hes_getmailhost in -lhesiod" >&5
15162 $as_echo_n "checking for hes_getmailhost in -lhesiod... " >&6; }
15163 if test "${ac_cv_lib_hesiod_hes_getmailhost+set}" = set; then :
15164 $as_echo_n "(cached) " >&6
15166 ac_check_lib_save_LIBS
=$LIBS
15167 LIBS
="-lhesiod $RESOLVLIB $LIBS"
15168 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
15169 /* end confdefs.h. */
15171 /* Override any GCC internal prototype to avoid an error.
15172 Use char because int might match the return type of a GCC
15173 builtin and then its argument prototype would still apply. */
15177 char hes_getmailhost ();
15181 return hes_getmailhost ();
15186 if ac_fn_c_try_link
"$LINENO"; then :
15187 ac_cv_lib_hesiod_hes_getmailhost
=yes
15189 ac_cv_lib_hesiod_hes_getmailhost
=no
15191 rm -f core conftest.err conftest.
$ac_objext \
15192 conftest
$ac_exeext conftest.
$ac_ext
15193 LIBS
=$ac_check_lib_save_LIBS
15195 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_hesiod_hes_getmailhost" >&5
15196 $as_echo "$ac_cv_lib_hesiod_hes_getmailhost" >&6; }
15197 if test "x$ac_cv_lib_hesiod_hes_getmailhost" = x
""yes; then :
15206 if test x
"$hesiod" = xyes
; then
15208 $as_echo "#define HAVE_LIBHESIOD 1" >>confdefs.h
15215 # Do we need libresolv (due to res_init or Hesiod)?
15216 if test "$resolv" = yes ; then
15218 $as_echo "#define HAVE_LIBRESOLV 1" >>confdefs.h
15226 # These tell us which Kerberos-related libraries to use.
15233 if test "${with_kerberos}" != no
; then
15234 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for com_err in -lcom_err" >&5
15235 $as_echo_n "checking for com_err in -lcom_err... " >&6; }
15236 if test "${ac_cv_lib_com_err_com_err+set}" = set; then :
15237 $as_echo_n "(cached) " >&6
15239 ac_check_lib_save_LIBS
=$LIBS
15240 LIBS
="-lcom_err $LIBS"
15241 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
15242 /* end confdefs.h. */
15244 /* Override any GCC internal prototype to avoid an error.
15245 Use char because int might match the return type of a GCC
15246 builtin and then its argument prototype would still apply. */
15259 if ac_fn_c_try_link
"$LINENO"; then :
15260 ac_cv_lib_com_err_com_err
=yes
15262 ac_cv_lib_com_err_com_err
=no
15264 rm -f core conftest.err conftest.
$ac_objext \
15265 conftest
$ac_exeext conftest.
$ac_ext
15266 LIBS
=$ac_check_lib_save_LIBS
15268 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_com_err_com_err" >&5
15269 $as_echo "$ac_cv_lib_com_err_com_err" >&6; }
15270 if test "x$ac_cv_lib_com_err_com_err" = x
""yes; then :
15276 if test $have_com_err = yes; then
15277 COM_ERRLIB
=-lcom_err
15278 LIBS
="$COM_ERRLIB $LIBS"
15280 $as_echo "#define HAVE_LIBCOM_ERR 1" >>confdefs.h
15283 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for mit_des_cbc_encrypt in -lcrypto" >&5
15284 $as_echo_n "checking for mit_des_cbc_encrypt in -lcrypto... " >&6; }
15285 if test "${ac_cv_lib_crypto_mit_des_cbc_encrypt+set}" = set; then :
15286 $as_echo_n "(cached) " >&6
15288 ac_check_lib_save_LIBS
=$LIBS
15289 LIBS
="-lcrypto $LIBS"
15290 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
15291 /* end confdefs.h. */
15293 /* Override any GCC internal prototype to avoid an error.
15294 Use char because int might match the return type of a GCC
15295 builtin and then its argument prototype would still apply. */
15299 char mit_des_cbc_encrypt ();
15303 return mit_des_cbc_encrypt ();
15308 if ac_fn_c_try_link
"$LINENO"; then :
15309 ac_cv_lib_crypto_mit_des_cbc_encrypt
=yes
15311 ac_cv_lib_crypto_mit_des_cbc_encrypt
=no
15313 rm -f core conftest.err conftest.
$ac_objext \
15314 conftest
$ac_exeext conftest.
$ac_ext
15315 LIBS
=$ac_check_lib_save_LIBS
15317 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_crypto_mit_des_cbc_encrypt" >&5
15318 $as_echo "$ac_cv_lib_crypto_mit_des_cbc_encrypt" >&6; }
15319 if test "x$ac_cv_lib_crypto_mit_des_cbc_encrypt" = x
""yes; then :
15325 if test $have_crypto = yes; then
15327 LIBS
="$CRYPTOLIB $LIBS"
15329 $as_echo "#define HAVE_LIBCRYPTO 1" >>confdefs.h
15332 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for mit_des_cbc_encrypt in -lk5crypto" >&5
15333 $as_echo_n "checking for mit_des_cbc_encrypt in -lk5crypto... " >&6; }
15334 if test "${ac_cv_lib_k5crypto_mit_des_cbc_encrypt+set}" = set; then :
15335 $as_echo_n "(cached) " >&6
15337 ac_check_lib_save_LIBS
=$LIBS
15338 LIBS
="-lk5crypto $LIBS"
15339 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
15340 /* end confdefs.h. */
15342 /* Override any GCC internal prototype to avoid an error.
15343 Use char because int might match the return type of a GCC
15344 builtin and then its argument prototype would still apply. */
15348 char mit_des_cbc_encrypt ();
15352 return mit_des_cbc_encrypt ();
15357 if ac_fn_c_try_link
"$LINENO"; then :
15358 ac_cv_lib_k5crypto_mit_des_cbc_encrypt
=yes
15360 ac_cv_lib_k5crypto_mit_des_cbc_encrypt
=no
15362 rm -f core conftest.err conftest.
$ac_objext \
15363 conftest
$ac_exeext conftest.
$ac_ext
15364 LIBS
=$ac_check_lib_save_LIBS
15366 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_k5crypto_mit_des_cbc_encrypt" >&5
15367 $as_echo "$ac_cv_lib_k5crypto_mit_des_cbc_encrypt" >&6; }
15368 if test "x$ac_cv_lib_k5crypto_mit_des_cbc_encrypt" = x
""yes; then :
15374 if test $have_k5crypto = yes; then
15375 CRYPTOLIB
=-lk5crypto
15376 LIBS
="$CRYPTOLIB $LIBS"
15378 $as_echo "#define HAVE_LIBK5CRYPTO 1" >>confdefs.h
15381 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for krb5_init_context in -lkrb5" >&5
15382 $as_echo_n "checking for krb5_init_context in -lkrb5... " >&6; }
15383 if test "${ac_cv_lib_krb5_krb5_init_context+set}" = set; then :
15384 $as_echo_n "(cached) " >&6
15386 ac_check_lib_save_LIBS
=$LIBS
15387 LIBS
="-lkrb5 $LIBS"
15388 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
15389 /* end confdefs.h. */
15391 /* Override any GCC internal prototype to avoid an error.
15392 Use char because int might match the return type of a GCC
15393 builtin and then its argument prototype would still apply. */
15397 char krb5_init_context ();
15401 return krb5_init_context ();
15406 if ac_fn_c_try_link
"$LINENO"; then :
15407 ac_cv_lib_krb5_krb5_init_context
=yes
15409 ac_cv_lib_krb5_krb5_init_context
=no
15411 rm -f core conftest.err conftest.
$ac_objext \
15412 conftest
$ac_exeext conftest.
$ac_ext
15413 LIBS
=$ac_check_lib_save_LIBS
15415 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_krb5_krb5_init_context" >&5
15416 $as_echo "$ac_cv_lib_krb5_krb5_init_context" >&6; }
15417 if test "x$ac_cv_lib_krb5_krb5_init_context" = x
""yes; then :
15423 if test $have_krb5=yes; then
15425 LIBS
="$KRB5LIB $LIBS"
15427 $as_echo "#define HAVE_LIBKRB5 1" >>confdefs.h
15430 if test "${with_kerberos5}" = no
; then
15431 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for des_cbc_encrypt in -ldes425" >&5
15432 $as_echo_n "checking for des_cbc_encrypt in -ldes425... " >&6; }
15433 if test "${ac_cv_lib_des425_des_cbc_encrypt+set}" = set; then :
15434 $as_echo_n "(cached) " >&6
15436 ac_check_lib_save_LIBS
=$LIBS
15437 LIBS
="-ldes425 $LIBS"
15438 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
15439 /* end confdefs.h. */
15441 /* Override any GCC internal prototype to avoid an error.
15442 Use char because int might match the return type of a GCC
15443 builtin and then its argument prototype would still apply. */
15447 char des_cbc_encrypt ();
15451 return des_cbc_encrypt ();
15456 if ac_fn_c_try_link
"$LINENO"; then :
15457 ac_cv_lib_des425_des_cbc_encrypt
=yes
15459 ac_cv_lib_des425_des_cbc_encrypt
=no
15461 rm -f core conftest.err conftest.
$ac_objext \
15462 conftest
$ac_exeext conftest.
$ac_ext
15463 LIBS
=$ac_check_lib_save_LIBS
15465 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_des425_des_cbc_encrypt" >&5
15466 $as_echo "$ac_cv_lib_des425_des_cbc_encrypt" >&6; }
15467 if test "x$ac_cv_lib_des425_des_cbc_encrypt" = x
""yes; then :
15473 if test $have_des425 = yes; then
15475 LIBS
="$DESLIB $LIBS"
15477 $as_echo "#define HAVE_LIBDES425 1" >>confdefs.h
15480 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for des_cbc_encrypt in -ldes" >&5
15481 $as_echo_n "checking for des_cbc_encrypt in -ldes... " >&6; }
15482 if test "${ac_cv_lib_des_des_cbc_encrypt+set}" = set; then :
15483 $as_echo_n "(cached) " >&6
15485 ac_check_lib_save_LIBS
=$LIBS
15487 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
15488 /* end confdefs.h. */
15490 /* Override any GCC internal prototype to avoid an error.
15491 Use char because int might match the return type of a GCC
15492 builtin and then its argument prototype would still apply. */
15496 char des_cbc_encrypt ();
15500 return des_cbc_encrypt ();
15505 if ac_fn_c_try_link
"$LINENO"; then :
15506 ac_cv_lib_des_des_cbc_encrypt
=yes
15508 ac_cv_lib_des_des_cbc_encrypt
=no
15510 rm -f core conftest.err conftest.
$ac_objext \
15511 conftest
$ac_exeext conftest.
$ac_ext
15512 LIBS
=$ac_check_lib_save_LIBS
15514 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_des_des_cbc_encrypt" >&5
15515 $as_echo "$ac_cv_lib_des_des_cbc_encrypt" >&6; }
15516 if test "x$ac_cv_lib_des_des_cbc_encrypt" = x
""yes; then :
15522 if test $have_des = yes; then
15524 LIBS
="$DESLIB $LIBS"
15526 $as_echo "#define HAVE_LIBDES 1" >>confdefs.h
15530 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for krb_get_cred in -lkrb4" >&5
15531 $as_echo_n "checking for krb_get_cred in -lkrb4... " >&6; }
15532 if test "${ac_cv_lib_krb4_krb_get_cred+set}" = set; then :
15533 $as_echo_n "(cached) " >&6
15535 ac_check_lib_save_LIBS
=$LIBS
15536 LIBS
="-lkrb4 $LIBS"
15537 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
15538 /* end confdefs.h. */
15540 /* Override any GCC internal prototype to avoid an error.
15541 Use char because int might match the return type of a GCC
15542 builtin and then its argument prototype would still apply. */
15546 char krb_get_cred ();
15550 return krb_get_cred ();
15555 if ac_fn_c_try_link
"$LINENO"; then :
15556 ac_cv_lib_krb4_krb_get_cred
=yes
15558 ac_cv_lib_krb4_krb_get_cred
=no
15560 rm -f core conftest.err conftest.
$ac_objext \
15561 conftest
$ac_exeext conftest.
$ac_ext
15562 LIBS
=$ac_check_lib_save_LIBS
15564 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_krb4_krb_get_cred" >&5
15565 $as_echo "$ac_cv_lib_krb4_krb_get_cred" >&6; }
15566 if test "x$ac_cv_lib_krb4_krb_get_cred" = x
""yes; then :
15572 if test $have_krb4 = yes; then
15574 LIBS
="$KRB4LIB $LIBS"
15576 $as_echo "#define HAVE_LIBKRB4 1" >>confdefs.h
15579 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for krb_get_cred in -lkrb" >&5
15580 $as_echo_n "checking for krb_get_cred in -lkrb... " >&6; }
15581 if test "${ac_cv_lib_krb_krb_get_cred+set}" = set; then :
15582 $as_echo_n "(cached) " >&6
15584 ac_check_lib_save_LIBS
=$LIBS
15586 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
15587 /* end confdefs.h. */
15589 /* Override any GCC internal prototype to avoid an error.
15590 Use char because int might match the return type of a GCC
15591 builtin and then its argument prototype would still apply. */
15595 char krb_get_cred ();
15599 return krb_get_cred ();
15604 if ac_fn_c_try_link
"$LINENO"; then :
15605 ac_cv_lib_krb_krb_get_cred
=yes
15607 ac_cv_lib_krb_krb_get_cred
=no
15609 rm -f core conftest.err conftest.
$ac_objext \
15610 conftest
$ac_exeext conftest.
$ac_ext
15611 LIBS
=$ac_check_lib_save_LIBS
15613 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_krb_krb_get_cred" >&5
15614 $as_echo "$ac_cv_lib_krb_krb_get_cred" >&6; }
15615 if test "x$ac_cv_lib_krb_krb_get_cred" = x
""yes; then :
15621 if test $have_krb = yes; then
15623 LIBS
="$KRB4LIB $LIBS"
15625 $as_echo "#define HAVE_LIBKRB 1" >>confdefs.h
15631 if test "${with_kerberos5}" != no
; then
15632 for ac_header
in krb5.h
15634 ac_fn_c_check_header_mongrel
"$LINENO" "krb5.h" "ac_cv_header_krb5_h" "$ac_includes_default"
15635 if test "x$ac_cv_header_krb5_h" = x
""yes; then :
15636 cat >>confdefs.h
<<_ACEOF
15637 #define HAVE_KRB5_H 1
15639 ac_fn_c_check_member
"$LINENO" "krb5_error" "text" "ac_cv_member_krb5_error_text" "#include <krb5.h>
15641 if test "x$ac_cv_member_krb5_error_text" = x
""yes; then :
15643 cat >>confdefs.h
<<_ACEOF
15644 #define HAVE_KRB5_ERROR_TEXT 1
15649 ac_fn_c_check_member
"$LINENO" "krb5_error" "e_text" "ac_cv_member_krb5_error_e_text" "#include <krb5.h>
15651 if test "x$ac_cv_member_krb5_error_e_text" = x
""yes; then :
15653 cat >>confdefs.h
<<_ACEOF
15654 #define HAVE_KRB5_ERROR_E_TEXT 1
15665 for ac_header
in des.h
15667 ac_fn_c_check_header_mongrel
"$LINENO" "des.h" "ac_cv_header_des_h" "$ac_includes_default"
15668 if test "x$ac_cv_header_des_h" = x
""yes; then :
15669 cat >>confdefs.h
<<_ACEOF
15670 #define HAVE_DES_H 1
15674 for ac_header
in kerberosIV
/des.h
15676 ac_fn_c_check_header_mongrel
"$LINENO" "kerberosIV/des.h" "ac_cv_header_kerberosIV_des_h" "$ac_includes_default"
15677 if test "x$ac_cv_header_kerberosIV_des_h" = x
""yes; then :
15678 cat >>confdefs.h
<<_ACEOF
15679 #define HAVE_KERBEROSIV_DES_H 1
15683 for ac_header
in kerberos
/des.h
15685 ac_fn_c_check_header_mongrel
"$LINENO" "kerberos/des.h" "ac_cv_header_kerberos_des_h" "$ac_includes_default"
15686 if test "x$ac_cv_header_kerberos_des_h" = x
""yes; then :
15687 cat >>confdefs.h
<<_ACEOF
15688 #define HAVE_KERBEROS_DES_H 1
15703 for ac_header
in krb.h
15705 ac_fn_c_check_header_mongrel
"$LINENO" "krb.h" "ac_cv_header_krb_h" "$ac_includes_default"
15706 if test "x$ac_cv_header_krb_h" = x
""yes; then :
15707 cat >>confdefs.h
<<_ACEOF
15708 #define HAVE_KRB_H 1
15712 for ac_header
in kerberosIV
/krb.h
15714 ac_fn_c_check_header_mongrel
"$LINENO" "kerberosIV/krb.h" "ac_cv_header_kerberosIV_krb_h" "$ac_includes_default"
15715 if test "x$ac_cv_header_kerberosIV_krb_h" = x
""yes; then :
15716 cat >>confdefs.h
<<_ACEOF
15717 #define HAVE_KERBEROSIV_KRB_H 1
15721 for ac_header
in kerberos
/krb.h
15723 ac_fn_c_check_header_mongrel
"$LINENO" "kerberos/krb.h" "ac_cv_header_kerberos_krb_h" "$ac_includes_default"
15724 if test "x$ac_cv_header_kerberos_krb_h" = x
""yes; then :
15725 cat >>confdefs.h
<<_ACEOF
15726 #define HAVE_KERBEROS_KRB_H 1
15742 for ac_header
in com_err.h
15744 ac_fn_c_check_header_mongrel
"$LINENO" "com_err.h" "ac_cv_header_com_err_h" "$ac_includes_default"
15745 if test "x$ac_cv_header_com_err_h" = x
""yes; then :
15746 cat >>confdefs.h
<<_ACEOF
15747 #define HAVE_COM_ERR_H 1
15762 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether localtime caches TZ" >&5
15763 $as_echo_n "checking whether localtime caches TZ... " >&6; }
15764 if test "${emacs_cv_localtime_cache+set}" = set; then :
15765 $as_echo_n "(cached) " >&6
15767 if test x
$ac_cv_func_tzset = xyes
; then
15768 if test "$cross_compiling" = yes; then :
15769 # If we have tzset, assume the worst when cross-compiling.
15770 emacs_cv_localtime_cache
=yes
15772 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
15773 /* end confdefs.h. */
15775 char TZ_GMT0[] = "TZ=GMT0";
15776 char TZ_PST8[] = "TZ=PST8";
15779 time_t now = time ((time_t *) 0);
15780 int hour_GMT0, hour_unset;
15781 if (putenv (TZ_GMT0) != 0)
15783 hour_GMT0 = localtime (&now)->tm_hour;
15785 hour_unset = localtime (&now)->tm_hour;
15786 if (putenv (TZ_PST8) != 0)
15788 if (localtime (&now)->tm_hour == hour_GMT0)
15791 if (localtime (&now)->tm_hour != hour_unset)
15796 if ac_fn_c_try_run
"$LINENO"; then :
15797 emacs_cv_localtime_cache
=no
15799 emacs_cv_localtime_cache
=yes
15801 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
15802 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
15806 # If we lack tzset, report that localtime does not cache TZ,
15807 # since we can't invalidate the cache if we don't have tzset.
15808 emacs_cv_localtime_cache
=no
15811 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $emacs_cv_localtime_cache" >&5
15812 $as_echo "$emacs_cv_localtime_cache" >&6; }
15813 if test $emacs_cv_localtime_cache = yes; then
15815 $as_echo "#define LOCALTIME_CACHE 1" >>confdefs.h
15819 if test "x$HAVE_TIMEVAL" = xyes
; then
15820 for ac_func
in gettimeofday
15822 ac_fn_c_check_func
"$LINENO" "gettimeofday" "ac_cv_func_gettimeofday"
15823 if test "x$ac_cv_func_gettimeofday" = x
""yes; then :
15824 cat >>confdefs.h
<<_ACEOF
15825 #define HAVE_GETTIMEOFDAY 1
15831 if test $ac_cv_func_gettimeofday = yes; then
15832 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether gettimeofday can accept two arguments" >&5
15833 $as_echo_n "checking whether gettimeofday can accept two arguments... " >&6; }
15834 if test "${emacs_cv_gettimeofday_two_arguments+set}" = set; then :
15835 $as_echo_n "(cached) " >&6
15837 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
15838 /* end confdefs.h. */
15840 #ifdef TIME_WITH_SYS_TIME
15841 #include <sys/time.h>
15844 #ifdef HAVE_SYS_TIME_H
15845 #include <sys/time.h>
15853 struct timeval time;
15854 gettimeofday (&time, 0);
15859 if ac_fn_c_try_compile
"$LINENO"; then :
15860 emacs_cv_gettimeofday_two_arguments
=yes
15862 emacs_cv_gettimeofday_two_arguments
=no
15864 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
15866 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $emacs_cv_gettimeofday_two_arguments" >&5
15867 $as_echo "$emacs_cv_gettimeofday_two_arguments" >&6; }
15868 if test $emacs_cv_gettimeofday_two_arguments = no
; then
15870 $as_echo "#define GETTIMEOFDAY_ONE_ARGUMENT 1" >>confdefs.h
15877 ac_fn_c_check_func
"$LINENO" "socket" "ac_cv_func_socket"
15878 if test "x$ac_cv_func_socket" = x
""yes; then :
15884 if test $ok_so_far = yes; then
15885 ac_fn_c_check_header_mongrel
"$LINENO" "netinet/in.h" "ac_cv_header_netinet_in_h" "$ac_includes_default"
15886 if test "x$ac_cv_header_netinet_in_h" = x
""yes; then :
15894 if test $ok_so_far = yes; then
15895 ac_fn_c_check_header_mongrel
"$LINENO" "arpa/inet.h" "ac_cv_header_arpa_inet_h" "$ac_includes_default"
15896 if test "x$ac_cv_header_arpa_inet_h" = x
""yes; then :
15904 if test $ok_so_far = yes; then
15906 $as_echo "#define HAVE_INET_SOCKETS 1" >>confdefs.h
15910 if test -f /usr
/lpp
/X11
/bin
/smt.exp
; then
15912 $as_echo "#define HAVE_AIX_SMT_EXP 1" >>confdefs.h
15916 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether system supports dynamic ptys" >&5
15917 $as_echo_n "checking whether system supports dynamic ptys... " >&6; }
15918 if test -d /dev
/pts
&& ls -d /dev
/ptmx
> /dev
/null
2>&1 ; then
15919 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
15920 $as_echo "yes" >&6; }
15922 $as_echo "#define HAVE_DEV_PTMX 1" >>confdefs.h
15925 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15926 $as_echo "no" >&6; }
15929 ac_fn_c_check_type
"$LINENO" "pid_t" "ac_cv_type_pid_t" "$ac_includes_default"
15930 if test "x$ac_cv_type_pid_t" = x
""yes; then :
15934 cat >>confdefs.h
<<_ACEOF
15940 for ac_header
in vfork.h
15942 ac_fn_c_check_header_mongrel
"$LINENO" "vfork.h" "ac_cv_header_vfork_h" "$ac_includes_default"
15943 if test "x$ac_cv_header_vfork_h" = x
""yes; then :
15944 cat >>confdefs.h
<<_ACEOF
15945 #define HAVE_VFORK_H 1
15952 for ac_func
in fork vfork
15954 as_ac_var
=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
15955 ac_fn_c_check_func
"$LINENO" "$ac_func" "$as_ac_var"
15956 eval as_val
=\$
$as_ac_var
15957 if test "x$as_val" = x
""yes; then :
15958 cat >>confdefs.h
<<_ACEOF
15959 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
15965 if test "x$ac_cv_func_fork" = xyes
; then
15966 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working fork" >&5
15967 $as_echo_n "checking for working fork... " >&6; }
15968 if test "${ac_cv_func_fork_works+set}" = set; then :
15969 $as_echo_n "(cached) " >&6
15971 if test "$cross_compiling" = yes; then :
15972 ac_cv_func_fork_works
=cross
15974 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
15975 /* end confdefs.h. */
15976 $ac_includes_default
15981 /* By Ruediger Kuhlmann. */
15982 return fork () < 0;
15988 if ac_fn_c_try_run
"$LINENO"; then :
15989 ac_cv_func_fork_works
=yes
15991 ac_cv_func_fork_works
=no
15993 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
15994 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
15998 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_fork_works" >&5
15999 $as_echo "$ac_cv_func_fork_works" >&6; }
16002 ac_cv_func_fork_works
=$ac_cv_func_fork
16004 if test "x$ac_cv_func_fork_works" = xcross
; then
16006 *-*-amigaos* |
*-*-msdosdjgpp*)
16007 # Override, as these systems have only a dummy fork() stub
16008 ac_cv_func_fork_works
=no
16011 ac_cv_func_fork_works
=yes
16014 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: result $ac_cv_func_fork_works guessed because of cross compilation" >&5
16015 $as_echo "$as_me: WARNING: result $ac_cv_func_fork_works guessed because of cross compilation" >&2;}
16017 ac_cv_func_vfork_works
=$ac_cv_func_vfork
16018 if test "x$ac_cv_func_vfork" = xyes
; then
16019 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working vfork" >&5
16020 $as_echo_n "checking for working vfork... " >&6; }
16021 if test "${ac_cv_func_vfork_works+set}" = set; then :
16022 $as_echo_n "(cached) " >&6
16024 if test "$cross_compiling" = yes; then :
16025 ac_cv_func_vfork_works
=cross
16027 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
16028 /* end confdefs.h. */
16029 /* Thanks to Paul Eggert for this test. */
16030 $ac_includes_default
16031 #include <sys/wait.h>
16032 #ifdef HAVE_VFORK_H
16033 # include <vfork.h>
16035 /* On some sparc systems, changes by the child to local and incoming
16036 argument registers are propagated back to the parent. The compiler
16037 is told about this with #include <vfork.h>, but some compilers
16038 (e.g. gcc -O) don't grok <vfork.h>. Test for this by using a
16039 static variable whose address is put into a register that is
16040 clobbered by the vfork. */
16043 sparc_address_test (int arg)
16045 sparc_address_test (arg) int arg;
16048 static pid_t child;
16066 pid_t parent = getpid ();
16069 sparc_address_test (0);
16074 /* Here is another test for sparc vfork register problems. This
16075 test uses lots of local variables, at least as many local
16076 variables as main has allocated so far including compiler
16077 temporaries. 4 locals are enough for gcc 1.40.3 on a Solaris
16078 4.1.3 sparc, but we use 8 to be safe. A buggy compiler should
16079 reuse the register of parent for one of the local variables,
16080 since it will think that parent can't possibly be used any more
16081 in this routine. Assigning to the local variable will thus
16082 munge parent in the parent process. */
16084 p = getpid(), p1 = getpid(), p2 = getpid(), p3 = getpid(),
16085 p4 = getpid(), p5 = getpid(), p6 = getpid(), p7 = getpid();
16086 /* Convince the compiler that p..p7 are live; otherwise, it might
16087 use the same hardware register for all 8 local variables. */
16088 if (p != p1 || p != p2 || p != p3 || p != p4
16089 || p != p5 || p != p6 || p != p7)
16092 /* On some systems (e.g. IRIX 3.3), vfork doesn't separate parent
16093 from child file descriptors. If the child closes a descriptor
16094 before it execs or exits, this munges the parent's descriptor
16095 as well. Test for this by closing stdout in the child. */
16096 _exit(close(fileno(stdout)) != 0);
16101 while (wait(&status) != child)
16104 /* Was there some problem with vforking? */
16107 /* Did the child fail? (This shouldn't happen.) */
16110 /* Did the vfork/compiler bug occur? */
16111 || parent != getpid()
16113 /* Did the file descriptor bug occur? */
16114 || fstat(fileno(stdout), &st) != 0
16119 if ac_fn_c_try_run
"$LINENO"; then :
16120 ac_cv_func_vfork_works
=yes
16122 ac_cv_func_vfork_works
=no
16124 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
16125 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
16129 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_vfork_works" >&5
16130 $as_echo "$ac_cv_func_vfork_works" >&6; }
16133 if test "x$ac_cv_func_fork_works" = xcross
; then
16134 ac_cv_func_vfork_works
=$ac_cv_func_vfork
16135 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: result $ac_cv_func_vfork_works guessed because of cross compilation" >&5
16136 $as_echo "$as_me: WARNING: result $ac_cv_func_vfork_works guessed because of cross compilation" >&2;}
16139 if test "x$ac_cv_func_vfork_works" = xyes
; then
16141 $as_echo "#define HAVE_WORKING_VFORK 1" >>confdefs.h
16145 $as_echo "#define vfork fork" >>confdefs.h
16148 if test "x$ac_cv_func_fork_works" = xyes
; then
16150 $as_echo "#define HAVE_WORKING_FORK 1" >>confdefs.h
16155 for ac_func
in snprintf
16157 ac_fn_c_check_func
"$LINENO" "snprintf" "ac_cv_func_snprintf"
16158 if test "x$ac_cv_func_snprintf" = x
""yes; then :
16159 cat >>confdefs.h
<<_ACEOF
16160 #define HAVE_SNPRINTF 1
16167 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for nl_langinfo and CODESET" >&5
16168 $as_echo_n "checking for nl_langinfo and CODESET... " >&6; }
16169 if test "${emacs_cv_langinfo_codeset+set}" = set; then :
16170 $as_echo_n "(cached) " >&6
16172 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
16173 /* end confdefs.h. */
16174 #include <langinfo.h>
16178 char* cs = nl_langinfo(CODESET);
16183 if ac_fn_c_try_link
"$LINENO"; then :
16184 emacs_cv_langinfo_codeset
=yes
16186 emacs_cv_langinfo_codeset
=no
16188 rm -f core conftest.err conftest.
$ac_objext \
16189 conftest
$ac_exeext conftest.
$ac_ext
16192 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $emacs_cv_langinfo_codeset" >&5
16193 $as_echo "$emacs_cv_langinfo_codeset" >&6; }
16194 if test $emacs_cv_langinfo_codeset = yes; then
16196 $as_echo "#define HAVE_LANGINFO_CODESET 1" >>confdefs.h
16200 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for mbstate_t" >&5
16201 $as_echo_n "checking for mbstate_t... " >&6; }
16202 if test "${ac_cv_type_mbstate_t+set}" = set; then :
16203 $as_echo_n "(cached) " >&6
16205 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
16206 /* end confdefs.h. */
16207 $ac_includes_default
16208 # include <wchar.h>
16212 mbstate_t x; return sizeof x;
16217 if ac_fn_c_try_compile
"$LINENO"; then :
16218 ac_cv_type_mbstate_t
=yes
16220 ac_cv_type_mbstate_t
=no
16222 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
16224 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_mbstate_t" >&5
16225 $as_echo "$ac_cv_type_mbstate_t" >&6; }
16226 if test $ac_cv_type_mbstate_t = yes; then
16228 $as_echo "#define HAVE_MBSTATE_T 1" >>confdefs.h
16232 $as_echo "#define mbstate_t int" >>confdefs.h
16236 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for C restricted array declarations" >&5
16237 $as_echo_n "checking for C restricted array declarations... " >&6; }
16238 if test "${emacs_cv_c_restrict_arr+set}" = set; then :
16239 $as_echo_n "(cached) " >&6
16241 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
16242 /* end confdefs.h. */
16243 void fred (int x[__restrict]);
16252 if ac_fn_c_try_compile
"$LINENO"; then :
16253 emacs_cv_c_restrict_arr
=yes
16255 emacs_cv_c_restrict_arr
=no
16257 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
16259 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $emacs_cv_c_restrict_arr" >&5
16260 $as_echo "$emacs_cv_c_restrict_arr" >&6; }
16261 if test "$emacs_cv_c_restrict_arr" = yes; then
16263 $as_echo "#define __restrict_arr __restrict" >>confdefs.h
16268 # Set up the CFLAGS for real compilation, so we can substitute it.
16269 CFLAGS
="$REAL_CFLAGS"
16270 CPPFLAGS
="$REAL_CPPFLAGS"
16272 ## Hack to detect a buggy GCC version.
16273 if test "x$GCC" = xyes \
16274 && test x
"`$CC --version 2> /dev/null | grep 'gcc.* 4.5.0'`" != x \
16275 && test x
"`echo $CFLAGS | grep '\-O[23]'`" != x \
16276 && test x
"`echo $CFLAGS | grep '\-fno-optimize-sibling-calls'`" = x
; then
16277 as_fn_error
"GCC 4.5.0 has problems compiling Emacs; see etc/PROBLEMS'." "$LINENO" 5
16280 version
=$PACKAGE_VERSION
16282 ### Specify what sort of things we'll be editing into Makefile and config.h.
16283 ### Use configuration here uncanonicalized to avoid exceeding size limits.
16307 ## FIXME? Nothing uses @LD_SWITCH_X_SITE@.
16308 ## src/Makefile.in did add LD_SWITCH_X_SITE (as a cpp define) to the
16309 ## end of LIBX_BASE, but nothing ever set it.
16314 ## Used in lwlib/Makefile.in.
16316 if test -n "${machfile}"; then
16317 M_FILE
="\$(srcdir)/${machfile}"
16321 S_FILE
="\$(srcdir)/${opsysfile}"
16332 cat >>confdefs.h
<<_ACEOF
16333 #define EMACS_CONFIGURATION "${canonical}"
16337 cat >>confdefs.h
<<_ACEOF
16338 #define EMACS_CONFIG_OPTIONS "${ac_configure_args}"
16341 if test -n "$machfile"; then
16343 cat >>confdefs.h
<<_ACEOF
16344 #define config_machfile "${machfile}"
16349 cat >>confdefs.h
<<_ACEOF
16350 #define config_opsysfile "${opsysfile}"
16357 if test "${HAVE_X_WINDOWS}" = "yes" ; then
16359 $as_echo "#define HAVE_X_WINDOWS 1" >>confdefs.h
16362 XOBJ
="xterm.o xfns.o xselect.o xrdb.o fontset.o xsmfns.o fringe.o image.o xsettings.o xgselect.o"
16364 if test "$HAVE_XFT" = "yes"; then
16365 FONT_OBJ
="$FONT_OBJ ftfont.o xftfont.o ftxfont.o"
16366 elif test "$HAVE_FREETYPE" = "yes"; then
16367 FONT_OBJ
="$FONT_OBJ ftfont.o ftxfont.o"
16377 if test "${USE_X_TOOLKIT}" != "none" ; then
16378 WIDGET_OBJ
=widget.o
16380 $as_echo "#define USE_X_TOOLKIT 1" >>confdefs.h
16382 if test "${USE_X_TOOLKIT}" = "LUCID"; then
16384 $as_echo "#define USE_LUCID 1" >>confdefs.h
16386 elif test "${USE_X_TOOLKIT}" = "MOTIF"; then
16388 $as_echo "#define USE_MOTIF 1" >>confdefs.h
16393 ## Paul Abrahams <abrahams at equinox.shaysnet.com> says this is needed.
16394 MOTIF_LIBW
="$MOTIF_LIBW -lXpm"
16398 ## Richard Anthony Ryan <ryanr at ellingtn.ftc.nrcs.usda.gov>
16399 ## says -lXimp is needed in UNIX_SV ... 4.2 1.1.2.
16400 MOTIF_LIBW
="MOTIF_LIBW -lXimp"
16404 ## olson@mcs.anl.gov says -li18n is needed by -lXm.
16405 MOTIF_LIBW
="$MOTIF_LIBW -li18n"
16408 MOTIF_LIBW
="$MOTIF_LIBW $LIBXP"
16414 case "$USE_X_TOOLKIT" in
16415 MOTIF
) TOOLKIT_LIBW
="$MOTIF_LIBW" ;;
16416 LUCID
) TOOLKIT_LIBW
="$LUCID_LIBW" ;;
16417 none
) test "x$HAVE_GTK" = "xyes" && TOOLKIT_LIBW
="$GTK_LIBS" ;;
16421 if test "$USE_X_TOOLKIT" = "none"; then
16422 LIBXT_OTHER
="\$(LIBXSM)"
16423 OLDXMENU_TARGET
="really-oldXMenu"
16425 LIBXT_OTHER
="\$(LIBXMU) -lXt \$(LIBXTR6) -lXext"
16426 OLDXMENU_TARGET
="really-lwlib"
16430 ## The X Menu stuff is present in the X10 distribution, but missing
16431 ## from X11. If we have X10, just use the installed library;
16432 ## otherwise, use our own copy.
16433 if test "${HAVE_X11}" = "yes" ; then
16435 $as_echo "#define HAVE_X11 1" >>confdefs.h
16438 if test "$USE_X_TOOLKIT" = "none"; then
16439 OLDXMENU
="\${oldXMenudir}/libXMenu11.a"
16441 OLDXMENU
="\${lwlibdir}/liblw.a"
16443 LIBXMENU
="\$(OLDXMENU)"
16444 LIBX_OTHER
="\$(LIBXT) \$(LIBX_EXTRA)"
16445 OLDXMENU_DEPS
="\${OLDXMENU} ../src/\${OLDXMENU}"
16447 ## For a syntactically valid Makefile; not actually used for anything.
16448 ## See comments in src/Makefile.in.
16450 ## FIXME This case (!HAVE_X11 && HAVE_X_WINDOWS) is no longer possible(?).
16451 if test "${HAVE_X_WINDOWS}" = "yes"; then
16460 if test "$HAVE_GTK" = "yes" ||
test "$HAVE_MENUS" != "yes"; then
16473 if test "${HAVE_MENUS}" = "yes" ; then
16475 $as_echo "#define HAVE_MENUS 1" >>confdefs.h
16479 if test "${GNU_MALLOC}" = "yes" ; then
16481 $as_echo "#define GNU_MALLOC 1" >>confdefs.h
16486 if test "${REL_ALLOC}" = "yes" ; then
16488 $as_echo "#define REL_ALLOC 1" >>confdefs.h
16491 test "$system_malloc" != "yes" && RALLOC_OBJ
=ralloc.o
16495 if test "$opsys" = "cygwin"; then
16496 CYGWIN_OBJ
="sheap.o"
16497 ## Cygwin differs because of its unexec().
16499 POST_ALLOC_OBJ
=lastfile.o
16502 PRE_ALLOC_OBJ
=lastfile.o
16509 # Configure gnulib here, now that we know LIBS.
16521 LIBC_FATAL_STDERR_
=1
16522 export LIBC_FATAL_STDERR_
16524 # The Ultrix 4.2 mips builtin alloca declared by alloca.h only works
16525 # for constant arguments. Useless!
16526 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working alloca.h" >&5
16527 $as_echo_n "checking for working alloca.h... " >&6; }
16528 if test "${ac_cv_working_alloca_h+set}" = set; then :
16529 $as_echo_n "(cached) " >&6
16531 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
16532 /* end confdefs.h. */
16533 #include <alloca.h>
16537 char *p = (char *) alloca (2 * sizeof (int));
16543 if ac_fn_c_try_link
"$LINENO"; then :
16544 ac_cv_working_alloca_h
=yes
16546 ac_cv_working_alloca_h
=no
16548 rm -f core conftest.err conftest.
$ac_objext \
16549 conftest
$ac_exeext conftest.
$ac_ext
16551 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_working_alloca_h" >&5
16552 $as_echo "$ac_cv_working_alloca_h" >&6; }
16553 if test $ac_cv_working_alloca_h = yes; then
16555 $as_echo "#define HAVE_ALLOCA_H 1" >>confdefs.h
16559 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for alloca" >&5
16560 $as_echo_n "checking for alloca... " >&6; }
16561 if test "${ac_cv_func_alloca_works+set}" = set; then :
16562 $as_echo_n "(cached) " >&6
16564 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
16565 /* end confdefs.h. */
16567 # define alloca __builtin_alloca
16570 # include <malloc.h>
16571 # define alloca _alloca
16573 # ifdef HAVE_ALLOCA_H
16574 # include <alloca.h>
16579 # ifndef alloca /* predefined by HP cc +Olibcalls */
16590 char *p = (char *) alloca (1);
16596 if ac_fn_c_try_link
"$LINENO"; then :
16597 ac_cv_func_alloca_works
=yes
16599 ac_cv_func_alloca_works
=no
16601 rm -f core conftest.err conftest.
$ac_objext \
16602 conftest
$ac_exeext conftest.
$ac_ext
16604 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_alloca_works" >&5
16605 $as_echo "$ac_cv_func_alloca_works" >&6; }
16607 if test $ac_cv_func_alloca_works = yes; then
16609 $as_echo "#define HAVE_ALLOCA 1" >>confdefs.h
16612 # The SVR3 libPW and SVR4 libucb both contain incompatible functions
16613 # that cause trouble. Some versions do not even contain alloca or
16614 # contain a buggy version. If you still want to use their alloca,
16615 # use ar to extract alloca.o from them instead of compiling alloca.c.
16621 ALLOCA
=\
${LIBOBJDIR}alloca.
$ac_objext
16623 $as_echo "#define C_ALLOCA 1" >>confdefs.h
16626 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether \`alloca.c' needs Cray hooks" >&5
16627 $as_echo_n "checking whether \`alloca.c' needs Cray hooks... " >&6; }
16628 if test "${ac_cv_os_cray+set}" = set; then :
16629 $as_echo_n "(cached) " >&6
16631 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
16632 /* end confdefs.h. */
16633 #if defined CRAY && ! defined CRAY2
16640 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
16641 $EGREP "webecray" >/dev
/null
2>&1; then :
16649 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_os_cray" >&5
16650 $as_echo "$ac_cv_os_cray" >&6; }
16651 if test $ac_cv_os_cray = yes; then
16652 for ac_func
in _getb67 GETB67 getb67
; do
16653 as_ac_var
=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
16654 ac_fn_c_check_func
"$LINENO" "$ac_func" "$as_ac_var"
16655 eval as_val
=\$
$as_ac_var
16656 if test "x$as_val" = x
""yes; then :
16658 cat >>confdefs.h
<<_ACEOF
16659 #define CRAY_STACKSEG_END $ac_func
16668 { $as_echo "$as_me:${as_lineno-$LINENO}: checking stack direction for C alloca" >&5
16669 $as_echo_n "checking stack direction for C alloca... " >&6; }
16670 if test "${ac_cv_c_stack_direction+set}" = set; then :
16671 $as_echo_n "(cached) " >&6
16673 if test "$cross_compiling" = yes; then :
16674 ac_cv_c_stack_direction
=0
16676 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
16677 /* end confdefs.h. */
16678 $ac_includes_default
16680 find_stack_direction (int *addr, int depth)
16682 int dir, dummy = 0;
16685 *addr = addr < &dummy ? 1 : addr == &dummy ? 0 : -1;
16686 dir = depth ? find_stack_direction (addr, depth - 1) : 0;
16687 return dir + dummy;
16691 main (int argc, char **argv)
16693 return find_stack_direction (0, argc + !argv + 20) < 0;
16696 if ac_fn_c_try_run
"$LINENO"; then :
16697 ac_cv_c_stack_direction
=1
16699 ac_cv_c_stack_direction
=-1
16701 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
16702 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
16706 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_stack_direction" >&5
16707 $as_echo "$ac_cv_c_stack_direction" >&6; }
16708 cat >>confdefs.h
<<_ACEOF
16709 #define STACK_DIRECTION $ac_cv_c_stack_direction
16718 for ac_func
in $ac_func_list
16720 as_ac_var
=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
16721 ac_fn_c_check_func
"$LINENO" "$ac_func" "$as_ac_var"
16722 eval as_val
=\$
$as_ac_var
16723 if test "x$as_val" = x
""yes; then :
16724 cat >>confdefs.h
<<_ACEOF
16725 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
16734 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether byte ordering is bigendian" >&5
16735 $as_echo_n "checking whether byte ordering is bigendian... " >&6; }
16736 if test "${ac_cv_c_bigendian+set}" = set; then :
16737 $as_echo_n "(cached) " >&6
16739 ac_cv_c_bigendian
=unknown
16740 # See if we're dealing with a universal compiler.
16741 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
16742 /* end confdefs.h. */
16743 #ifndef __APPLE_CC__
16744 not a universal capable compiler
16749 if ac_fn_c_try_compile
"$LINENO"; then :
16751 # Check for potential -arch flags. It is not universal unless
16752 # there are at least two -arch flags with different values.
16755 for ac_word
in $CC $CFLAGS $CPPFLAGS $LDFLAGS; do
16756 if test -n "$ac_prev"; then
16758 i?
86 | x86_64 | ppc | ppc64
)
16759 if test -z "$ac_arch" ||
test "$ac_arch" = "$ac_word"; then
16762 ac_cv_c_bigendian
=universal
16768 elif test "x$ac_word" = "x-arch"; then
16773 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
16774 if test $ac_cv_c_bigendian = unknown
; then
16775 # See if sys/param.h defines the BYTE_ORDER macro.
16776 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
16777 /* end confdefs.h. */
16778 #include <sys/types.h>
16779 #include <sys/param.h>
16784 #if ! (defined BYTE_ORDER && defined BIG_ENDIAN \
16785 && defined LITTLE_ENDIAN && BYTE_ORDER && BIG_ENDIAN \
16787 bogus endian macros
16794 if ac_fn_c_try_compile
"$LINENO"; then :
16795 # It does; now see whether it defined to BIG_ENDIAN or not.
16796 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
16797 /* end confdefs.h. */
16798 #include <sys/types.h>
16799 #include <sys/param.h>
16804 #if BYTE_ORDER != BIG_ENDIAN
16812 if ac_fn_c_try_compile
"$LINENO"; then :
16813 ac_cv_c_bigendian
=yes
16815 ac_cv_c_bigendian
=no
16817 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
16819 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
16821 if test $ac_cv_c_bigendian = unknown
; then
16822 # See if <limits.h> defines _LITTLE_ENDIAN or _BIG_ENDIAN (e.g., Solaris).
16823 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
16824 /* end confdefs.h. */
16825 #include <limits.h>
16830 #if ! (defined _LITTLE_ENDIAN || defined _BIG_ENDIAN)
16831 bogus endian macros
16838 if ac_fn_c_try_compile
"$LINENO"; then :
16839 # It does; now see whether it defined to _BIG_ENDIAN or not.
16840 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
16841 /* end confdefs.h. */
16842 #include <limits.h>
16847 #ifndef _BIG_ENDIAN
16855 if ac_fn_c_try_compile
"$LINENO"; then :
16856 ac_cv_c_bigendian
=yes
16858 ac_cv_c_bigendian
=no
16860 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
16862 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
16864 if test $ac_cv_c_bigendian = unknown
; then
16865 # Compile a test program.
16866 if test "$cross_compiling" = yes; then :
16867 # Try to guess by grepping values from an object file.
16868 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
16869 /* end confdefs.h. */
16870 short int ascii_mm[] =
16871 { 0x4249, 0x4765, 0x6E44, 0x6961, 0x6E53, 0x7953, 0 };
16872 short int ascii_ii[] =
16873 { 0x694C, 0x5454, 0x656C, 0x6E45, 0x6944, 0x6E61, 0 };
16874 int use_ascii (int i) {
16875 return ascii_mm[i] + ascii_ii[i];
16877 short int ebcdic_ii[] =
16878 { 0x89D3, 0xE3E3, 0x8593, 0x95C5, 0x89C4, 0x9581, 0 };
16879 short int ebcdic_mm[] =
16880 { 0xC2C9, 0xC785, 0x95C4, 0x8981, 0x95E2, 0xA8E2, 0 };
16881 int use_ebcdic (int i) {
16882 return ebcdic_mm[i] + ebcdic_ii[i];
16889 return use_ascii (foo) == use_ebcdic (foo);
16894 if ac_fn_c_try_compile
"$LINENO"; then :
16895 if grep BIGenDianSyS conftest.
$ac_objext >/dev
/null
; then
16896 ac_cv_c_bigendian
=yes
16898 if grep LiTTleEnDian conftest.
$ac_objext >/dev
/null
; then
16899 if test "$ac_cv_c_bigendian" = unknown
; then
16900 ac_cv_c_bigendian
=no
16902 # finding both strings is unlikely to happen, but who knows?
16903 ac_cv_c_bigendian
=unknown
16907 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
16909 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
16910 /* end confdefs.h. */
16911 $ac_includes_default
16916 /* Are we little or big endian? From Harbison&Steele. */
16920 char c[sizeof (long int)];
16923 return u.c[sizeof (long int) - 1] == 1;
16929 if ac_fn_c_try_run
"$LINENO"; then :
16930 ac_cv_c_bigendian
=no
16932 ac_cv_c_bigendian
=yes
16934 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
16935 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
16940 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_bigendian" >&5
16941 $as_echo "$ac_cv_c_bigendian" >&6; }
16942 case $ac_cv_c_bigendian in #(
16944 $as_echo "#define WORDS_BIGENDIAN 1" >>confdefs.h
16950 $as_echo "#define AC_APPLE_UNIVERSAL_BUILD 1" >>confdefs.h
16954 as_fn_error
"unknown endianness
16955 presetting ac_cv_c_bigendian=no (or yes) will help" "$LINENO" 5 ;;
16959 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for inline" >&5
16960 $as_echo_n "checking for inline... " >&6; }
16961 if test "${ac_cv_c_inline+set}" = set; then :
16962 $as_echo_n "(cached) " >&6
16965 for ac_kw
in inline __inline__ __inline
; do
16966 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
16967 /* end confdefs.h. */
16968 #ifndef __cplusplus
16970 static $ac_kw foo_t static_foo () {return 0; }
16971 $ac_kw foo_t foo () {return 0; }
16975 if ac_fn_c_try_compile
"$LINENO"; then :
16976 ac_cv_c_inline
=$ac_kw
16978 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
16979 test "$ac_cv_c_inline" != no
&& break
16983 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_inline" >&5
16984 $as_echo "$ac_cv_c_inline" >&6; }
16986 case $ac_cv_c_inline in
16989 case $ac_cv_c_inline in
16991 *) ac_val
=$ac_cv_c_inline;;
16993 cat >>confdefs.h
<<_ACEOF
16994 #ifndef __cplusplus
16995 #define inline $ac_val
17002 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether strtold conforms to C99" >&5
17003 $as_echo_n "checking whether strtold conforms to C99... " >&6; }
17004 if test "${gl_cv_func_c99_strtold+set}" = set; then :
17005 $as_echo_n "(cached) " >&6
17007 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
17008 /* end confdefs.h. */
17009 /* On HP-UX before 11.23, strtold returns a struct instead of
17010 long double. Reject implementations like that, by requiring
17011 compatibility with the C99 prototype. */
17012 #include <stdlib.h>
17013 static long double (*p) (char const *, char **) = strtold;
17015 test (char const *nptr, char **endptr)
17018 r = strtold (nptr, endptr);
17024 return test ("1.0", NULL) != 1 || p ("1.0", NULL) != 1;
17029 if ac_fn_c_try_link
"$LINENO"; then :
17030 gl_cv_func_c99_strtold
=yes
17032 gl_cv_func_c99_strtold
=no
17034 rm -f core conftest.err conftest.
$ac_objext \
17035 conftest
$ac_exeext conftest.
$ac_ext
17037 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_c99_strtold" >&5
17038 $as_echo "$gl_cv_func_c99_strtold" >&6; }
17039 if test $gl_cv_func_c99_strtold = yes; then
17041 $as_echo "#define HAVE_C99_STRTOLD 1" >>confdefs.h
17053 GNULIB_EUIDACCESS
=0;
17054 GNULIB_FACCESSAT
=0;
17057 GNULIB_FDATASYNC
=0;
17059 GNULIB_FTRUNCATE
=0;
17061 GNULIB_GETDOMAINNAME
=0;
17062 GNULIB_GETDTABLESIZE
=0;
17063 GNULIB_GETGROUPS
=0;
17064 GNULIB_GETHOSTNAME
=0;
17066 GNULIB_GETLOGIN_R
=0;
17067 GNULIB_GETPAGESIZE
=0;
17068 GNULIB_GETUSERSHELL
=0;
17069 GNULIB_GROUP_MEMBER
=0;
17080 GNULIB_READLINKAT
=0;
17084 GNULIB_SYMLINKAT
=0;
17085 GNULIB_TTYNAME_R
=0;
17086 GNULIB_UNISTD_H_GETOPT
=0;
17087 GNULIB_UNISTD_H_NONBLOCKING
=0;
17088 GNULIB_UNISTD_H_SIGPIPE
=0;
17103 HAVE_GETDTABLESIZE
=1;
17105 HAVE_GETHOSTNAME
=1;
17107 HAVE_GETPAGESIZE
=1;
17108 HAVE_GROUP_MEMBER
=1;
17123 HAVE_DECL_ENVIRON
=1;
17124 HAVE_DECL_FCHDIR
=1;
17125 HAVE_DECL_FDATASYNC
=1;
17126 HAVE_DECL_GETDOMAINNAME
=1;
17127 HAVE_DECL_GETLOGIN_R
=1;
17128 HAVE_DECL_GETPAGESIZE
=1;
17129 HAVE_DECL_GETUSERSHELL
=1;
17130 HAVE_DECL_TTYNAME_R
=1;
17132 HAVE_SYS_PARAM_H
=0;
17137 REPLACE_FCHOWNAT
=0;
17139 REPLACE_GETDOMAINNAME
=0;
17140 REPLACE_GETLOGIN_R
=0;
17141 REPLACE_GETGROUPS
=0;
17142 REPLACE_GETPAGESIZE
=0;
17150 REPLACE_READLINK
=0;
17154 REPLACE_TTYNAME_R
=0;
17156 REPLACE_UNLINKAT
=0;
17159 UNISTD_H_HAVE_WINSOCK2_H
=0;
17160 UNISTD_H_HAVE_WINSOCK2_H_AND_USE_SOCKETS
=0;
17163 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for st_dm_mode in struct stat" >&5
17164 $as_echo_n "checking for st_dm_mode in struct stat... " >&6; }
17165 if test "${ac_cv_struct_st_dm_mode+set}" = set; then :
17166 $as_echo_n "(cached) " >&6
17168 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
17169 /* end confdefs.h. */
17171 #include <sys/types.h>
17172 #include <sys/stat.h>
17176 struct stat s; s.st_dm_mode;
17181 if ac_fn_c_try_compile
"$LINENO"; then :
17182 ac_cv_struct_st_dm_mode
=yes
17184 ac_cv_struct_st_dm_mode
=no
17186 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
17188 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_struct_st_dm_mode" >&5
17189 $as_echo "$ac_cv_struct_st_dm_mode" >&6; }
17191 if test $ac_cv_struct_st_dm_mode = yes; then
17193 $as_echo "#define HAVE_ST_DM_MODE 1" >>confdefs.h
17198 ac_fn_c_check_decl
"$LINENO" "strmode" "ac_cv_have_decl_strmode" "$ac_includes_default"
17199 if test "x$ac_cv_have_decl_strmode" = x
""yes; then :
17205 cat >>confdefs.h
<<_ACEOF
17206 #define HAVE_DECL_STRMODE $ac_have_decl
17212 GNULIB_CALLOC_POSIX
=0;
17213 GNULIB_CANONICALIZE_FILE_NAME
=0;
17214 GNULIB_GETLOADAVG
=0;
17215 GNULIB_GETSUBOPT
=0;
17217 GNULIB_MALLOC_POSIX
=0;
17221 GNULIB_MKOSTEMPS
=0;
17227 GNULIB_REALLOC_POSIX
=0;
17234 GNULIB_SYSTEM_POSIX
=0;
17240 HAVE_CANONICALIZE_FILE_NAME
=1;
17241 HAVE_DECL_GETLOADAVG
=1;
17255 HAVE_DECL_SETENV
=1;
17259 HAVE_STRUCT_RANDOM_DATA
=1;
17260 HAVE_SYS_LOADAVG_H
=0;
17262 HAVE_DECL_UNSETENV
=1;
17264 REPLACE_CANONICALIZE_FILE_NAME
=0;
17270 REPLACE_REALPATH
=0;
17273 REPLACE_UNSETENV
=0;
17278 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the preprocessor supports include_next" >&5
17279 $as_echo_n "checking whether the preprocessor supports include_next... " >&6; }
17280 if test "${gl_cv_have_include_next+set}" = set; then :
17281 $as_echo_n "(cached) " >&6
17283 rm -rf conftestd1a conftestd1b conftestd2
17284 mkdir conftestd1a conftestd1b conftestd2
17285 cat <<EOF > conftestd1a/conftest.h
17286 #define DEFINED_IN_CONFTESTD1
17287 #include_next <conftest.h>
17288 #ifdef DEFINED_IN_CONFTESTD2
17291 #error "include_next doesn't work"
17294 cat <<EOF > conftestd1b/conftest.h
17295 #define DEFINED_IN_CONFTESTD1
17297 #include_next <conftest.h>
17298 #ifdef DEFINED_IN_CONFTESTD2
17301 #error "include_next doesn't work"
17304 cat <<EOF > conftestd2/conftest.h
17305 #ifndef DEFINED_IN_CONFTESTD1
17306 #error "include_next test doesn't work"
17308 #define DEFINED_IN_CONFTESTD2
17310 gl_save_CPPFLAGS
="$CPPFLAGS"
17311 CPPFLAGS
="$gl_save_CPPFLAGS -Iconftestd1b -Iconftestd2"
17312 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
17313 /* end confdefs.h. */
17314 #include <conftest.h>
17316 if ac_fn_c_try_compile
"$LINENO"; then :
17317 gl_cv_have_include_next
=yes
17319 CPPFLAGS
="$gl_save_CPPFLAGS -Iconftestd1a -Iconftestd2"
17320 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
17321 /* end confdefs.h. */
17322 #include <conftest.h>
17324 if ac_fn_c_try_compile
"$LINENO"; then :
17325 gl_cv_have_include_next
=buggy
17327 gl_cv_have_include_next
=no
17329 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
17332 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
17333 CPPFLAGS
="$gl_save_CPPFLAGS"
17334 rm -rf conftestd1a conftestd1b conftestd2
17337 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_have_include_next" >&5
17338 $as_echo "$gl_cv_have_include_next" >&6; }
17339 PRAGMA_SYSTEM_HEADER
=
17340 if test $gl_cv_have_include_next = yes; then
17341 INCLUDE_NEXT
=include_next
17342 INCLUDE_NEXT_AS_FIRST_DIRECTIVE
=include_next
17343 if test -n "$GCC"; then
17344 PRAGMA_SYSTEM_HEADER
='#pragma GCC system_header'
17347 if test $gl_cv_have_include_next = buggy
; then
17348 INCLUDE_NEXT
=include
17349 INCLUDE_NEXT_AS_FIRST_DIRECTIVE
=include_next
17351 INCLUDE_NEXT
=include
17352 INCLUDE_NEXT_AS_FIRST_DIRECTIVE
=include
17358 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether system header files limit the line length" >&5
17359 $as_echo_n "checking whether system header files limit the line length... " >&6; }
17360 if test "${gl_cv_pragma_columns+set}" = set; then :
17361 $as_echo_n "(cached) " >&6
17363 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
17364 /* end confdefs.h. */
17371 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
17372 $EGREP "choke me" >/dev
/null
2>&1; then :
17373 gl_cv_pragma_columns
=yes
17375 gl_cv_pragma_columns
=no
17381 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_pragma_columns" >&5
17382 $as_echo "$gl_cv_pragma_columns" >&6; }
17383 if test $gl_cv_pragma_columns = yes; then
17384 PRAGMA_COLUMNS
="#pragma COLUMNS 10000"
17405 if test $gl_cv_have_include_next = yes; then
17406 gl_cv_next_getopt_h
='<'getopt.h
'>'
17408 { $as_echo "$as_me:${as_lineno-$LINENO}: checking absolute name of <getopt.h>" >&5
17409 $as_echo_n "checking absolute name of <getopt.h>... " >&6; }
17410 if test "${gl_cv_next_getopt_h+set}" = set; then :
17411 $as_echo_n "(cached) " >&6
17414 if test $ac_cv_header_getopt_h = yes; then
17417 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
17418 /* end confdefs.h. */
17419 #include <getopt.h>
17423 aix
*) gl_absname_cpp
="$ac_cpp -C" ;;
17424 *) gl_absname_cpp
="$ac_cpp" ;;
17429 gl_dirsep_regex
='[/\\]'
17432 gl_dirsep_regex
='/'
17436 gl_absolute_header_sed
='\|'"${gl_dirsep_regex}"'getopt.h|{
17437 s|.*"\(.*'"${gl_dirsep_regex}"'getopt.h\)".*|\1|
17442 gl_cv_next_getopt_h
='"'`(eval "$gl_absname_cpp conftest.$ac_ext") 2>&5 |
17443 sed -n "$gl_absolute_header_sed"`'"'
17445 gl_cv_next_getopt_h
='<'getopt.h
'>'
17450 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_next_getopt_h" >&5
17451 $as_echo "$gl_cv_next_getopt_h" >&6; }
17453 NEXT_GETOPT_H
=$gl_cv_next_getopt_h
17455 if test $gl_cv_have_include_next = yes ||
test $gl_cv_have_include_next = buggy
; then
17456 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include_next'
17457 gl_next_as_first_directive
='<'getopt.h
'>'
17459 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include'
17460 gl_next_as_first_directive
=$gl_cv_next_getopt_h
17462 NEXT_AS_FIRST_DIRECTIVE_GETOPT_H
=$gl_next_as_first_directive
17467 if test $ac_cv_header_getopt_h = yes; then
17476 if test -z "$gl_replace_getopt" && test $gl_getopt_required = GNU
; then
17477 for ac_header
in getopt.h
17479 ac_fn_c_check_header_mongrel
"$LINENO" "getopt.h" "ac_cv_header_getopt_h" "$ac_includes_default"
17480 if test "x$ac_cv_header_getopt_h" = x
""yes; then :
17481 cat >>confdefs.h
<<_ACEOF
17482 #define HAVE_GETOPT_H 1
17486 gl_replace_getopt
=yes
17493 if test -z "$gl_replace_getopt" && test $gl_getopt_required = GNU
; then
17494 for ac_func
in getopt_long_only
17496 ac_fn_c_check_func
"$LINENO" "getopt_long_only" "ac_cv_func_getopt_long_only"
17497 if test "x$ac_cv_func_getopt_long_only" = x
""yes; then :
17498 cat >>confdefs.h
<<_ACEOF
17499 #define HAVE_GETOPT_LONG_ONLY 1
17503 gl_replace_getopt
=yes
17509 if test -z "$gl_replace_getopt"; then
17510 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether getopt is POSIX compatible" >&5
17511 $as_echo_n "checking whether getopt is POSIX compatible... " >&6; }
17512 if test "${gl_cv_func_getopt_posix+set}" = set; then :
17513 $as_echo_n "(cached) " >&6
17516 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
17517 /* end confdefs.h. */
17518 #include <unistd.h>
17522 int *p = &optreset; return optreset;
17527 if ac_fn_c_try_link
"$LINENO"; then :
17530 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
17531 /* end confdefs.h. */
17532 #include <getopt.h>
17536 return !getopt_clip;
17541 if ac_fn_c_try_compile
"$LINENO"; then :
17546 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
17548 rm -f core conftest.err conftest.
$ac_objext \
17549 conftest
$ac_exeext conftest.
$ac_ext
17551 gl_save_CPPFLAGS
=$CPPFLAGS
17552 CPPFLAGS
="$CPPFLAGS -DOPTIND_MIN=$gl_optind_min"
17553 if test "$cross_compiling" = yes; then :
17555 mingw
*) gl_cv_func_getopt_posix
="guessing no";;
17556 darwin
* | aix
*) gl_cv_func_getopt_posix
="guessing no";;
17557 *) gl_cv_func_getopt_posix
="guessing yes";;
17561 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
17562 /* end confdefs.h. */
17564 #include <unistd.h>
17565 #include <stdlib.h>
17566 #include <string.h>
17572 static char program[] = "program";
17573 static char a[] = "-a";
17574 static char foo[] = "foo";
17575 static char bar[] = "bar";
17576 char *argv[] = { program, a, foo, bar, NULL };
17579 optind = OPTIND_MIN;
17582 c = getopt (4, argv, "ab");
17585 c = getopt (4, argv, "ab");
17588 if (!(optind == 2))
17591 /* Some internal state exists at this point. */
17593 static char program[] = "program";
17594 static char donald[] = "donald";
17595 static char p[] = "-p";
17596 static char billy[] = "billy";
17597 static char duck[] = "duck";
17598 static char a[] = "-a";
17599 static char bar[] = "bar";
17600 char *argv[] = { program, donald, p, billy, duck, a, bar, NULL };
17603 optind = OPTIND_MIN;
17606 c = getopt (7, argv, "+abp:q:");
17609 if (!(strcmp (argv[0], "program") == 0))
17611 if (!(strcmp (argv[1], "donald") == 0))
17613 if (!(strcmp (argv[2], "-p") == 0))
17615 if (!(strcmp (argv[3], "billy") == 0))
17617 if (!(strcmp (argv[4], "duck") == 0))
17619 if (!(strcmp (argv[5], "-a") == 0))
17621 if (!(strcmp (argv[6], "bar") == 0))
17623 if (!(optind == 1))
17626 /* Detect MacOS 10.5, AIX 7.1 bug. */
17628 static char program[] = "program";
17629 static char ab[] = "-ab";
17630 char *argv[3] = { program, ab, NULL };
17631 optind = OPTIND_MIN;
17633 if (getopt (2, argv, "ab:") != 'a')
17635 if (getopt (2, argv, "ab:") != '?')
17647 if ac_fn_c_try_run
"$LINENO"; then :
17648 gl_cv_func_getopt_posix
=yes
17650 gl_cv_func_getopt_posix
=no
17652 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
17653 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
17656 CPPFLAGS
=$gl_save_CPPFLAGS
17659 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_getopt_posix" >&5
17660 $as_echo "$gl_cv_func_getopt_posix" >&6; }
17661 case "$gl_cv_func_getopt_posix" in
17662 *no
) gl_replace_getopt
=yes ;;
17666 if test -z "$gl_replace_getopt" && test $gl_getopt_required = GNU
; then
17667 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working GNU getopt function" >&5
17668 $as_echo_n "checking for working GNU getopt function... " >&6; }
17669 if test "${gl_cv_func_getopt_gnu+set}" = set; then :
17670 $as_echo_n "(cached) " >&6
17672 # Even with POSIXLY_CORRECT, the GNU extension of leading '-' in the
17673 # optstring is necessary for programs like m4 that have POSIX-mandated
17674 # semantics for supporting options interspersed with files.
17675 # Also, since getopt_long is a GNU extension, we require optind=0.
17676 # Bash ties 'set -o posix' to a non-exported POSIXLY_CORRECT;
17677 # so take care to revert to the correct (non-)export state.
17678 gl_awk_probe
='BEGIN { if ("POSIXLY_CORRECT" in ENVIRON) print "x" }'
17679 case ${POSIXLY_CORRECT+x}`$AWK "$gl_awk_probe" </dev/null` in
17680 xx
) gl_had_POSIXLY_CORRECT
=exported
;;
17681 x
) gl_had_POSIXLY_CORRECT
=yes ;;
17682 *) gl_had_POSIXLY_CORRECT
= ;;
17685 export POSIXLY_CORRECT
17686 if test "$cross_compiling" = yes; then :
17687 case $host_os:$ac_cv_have_decl_optreset in
17688 *-gnu*:* | mingw
*:*) gl_cv_func_getopt_gnu
=no
;;
17689 *:yes) gl_cv_func_getopt_gnu
=no
;;
17690 *) gl_cv_func_getopt_gnu
=yes;;
17694 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
17695 /* end confdefs.h. */
17696 #include <getopt.h>
17697 #include <stddef.h>
17698 #include <string.h>
17700 #include <stdlib.h>
17701 #if defined __MACH__ && defined __APPLE__
17702 /* Avoid a crash on MacOS X. */
17703 #include <mach/mach.h>
17704 #include <mach/mach_error.h>
17705 #include <mach/thread_status.h>
17706 #include <mach/exception.h>
17707 #include <mach/task.h>
17708 #include <pthread.h>
17709 /* The exception port on which our thread listens. */
17710 static mach_port_t our_exception_port;
17711 /* The main function of the thread listening for exceptions of type
17714 mach_exception_thread (void *arg)
17716 /* Buffer for a message to be received. */
17718 mach_msg_header_t head;
17719 mach_msg_body_t msgh_body;
17722 mach_msg_return_t retval;
17723 /* Wait for a message on the exception port. */
17724 retval = mach_msg (&msg.head, MACH_RCV_MSG | MACH_RCV_LARGE, 0, sizeof (msg),
17725 our_exception_port, MACH_MSG_TIMEOUT_NONE, MACH_PORT_NULL);
17726 if (retval != MACH_MSG_SUCCESS)
17731 nocrash_init (void)
17733 mach_port_t self = mach_task_self ();
17734 /* Allocate a port on which the thread shall listen for exceptions. */
17735 if (mach_port_allocate (self, MACH_PORT_RIGHT_RECEIVE, &our_exception_port)
17737 /* See http://web.mit.edu/darwin/src/modules/xnu/osfmk/man/mach_port_insert_right.html. */
17738 if (mach_port_insert_right (self, our_exception_port, our_exception_port,
17739 MACH_MSG_TYPE_MAKE_SEND)
17741 /* The exceptions we want to catch. Only EXC_BAD_ACCESS is interesting
17743 exception_mask_t mask = EXC_MASK_BAD_ACCESS;
17744 /* Create the thread listening on the exception port. */
17745 pthread_attr_t attr;
17747 if (pthread_attr_init (&attr) == 0
17748 && pthread_attr_setdetachstate (&attr, PTHREAD_CREATE_DETACHED) == 0
17749 && pthread_create (&thread, &attr, mach_exception_thread, NULL) == 0) {
17750 pthread_attr_destroy (&attr);
17751 /* Replace the exception port info for these exceptions with our own.
17752 Note that we replace the exception port for the entire task, not only
17753 for a particular thread. This has the effect that when our exception
17754 port gets the message, the thread specific exception port has already
17755 been asked, and we don't need to bother about it.
17756 See http://web.mit.edu/darwin/src/modules/xnu/osfmk/man/task_set_exception_ports.html. */
17757 task_set_exception_ports (self, mask, our_exception_port,
17758 EXCEPTION_DEFAULT, MACHINE_THREAD_STATE);
17763 #elif (defined _WIN32 || defined __WIN32__) && ! defined __CYGWIN__
17764 /* Avoid a crash on native Windows. */
17765 #define WIN32_LEAN_AND_MEAN
17766 #include <windows.h>
17767 #include <winerror.h>
17769 exception_filter (EXCEPTION_POINTERS *ExceptionInfo)
17771 switch (ExceptionInfo->ExceptionRecord->ExceptionCode)
17773 case EXCEPTION_ACCESS_VIOLATION:
17774 case EXCEPTION_IN_PAGE_ERROR:
17775 case EXCEPTION_STACK_OVERFLOW:
17776 case EXCEPTION_GUARD_PAGE:
17777 case EXCEPTION_PRIV_INSTRUCTION:
17778 case EXCEPTION_ILLEGAL_INSTRUCTION:
17779 case EXCEPTION_DATATYPE_MISALIGNMENT:
17780 case EXCEPTION_ARRAY_BOUNDS_EXCEEDED:
17781 case EXCEPTION_NONCONTINUABLE_EXCEPTION:
17784 return EXCEPTION_CONTINUE_SEARCH;
17787 nocrash_init (void)
17789 SetUnhandledExceptionFilter ((LPTOP_LEVEL_EXCEPTION_FILTER) exception_filter);
17792 /* Avoid a crash on POSIX systems. */
17793 #include <signal.h>
17794 /* A POSIX signal handler. */
17796 exception_handler (int sig)
17801 nocrash_init (void)
17804 signal (SIGSEGV, exception_handler);
17807 signal (SIGBUS, exception_handler);
17821 /* This code succeeds on glibc 2.8, OpenBSD 4.0, Cygwin, mingw,
17822 and fails on MacOS X 10.5, AIX 5.2, HP-UX 11, IRIX 6.5,
17823 OSF/1 5.1, Solaris 10. */
17825 static char conftest[] = "conftest";
17826 static char plus[] = "-+";
17827 char *argv[3] = { conftest, plus, NULL };
17829 if (getopt (2, argv, "+a") != '?')
17832 /* This code succeeds on glibc 2.8, mingw,
17833 and fails on MacOS X 10.5, OpenBSD 4.0, AIX 5.2, HP-UX 11,
17834 IRIX 6.5, OSF/1 5.1, Solaris 10, Cygwin 1.5.x. */
17836 static char program[] = "program";
17837 static char p[] = "-p";
17838 static char foo[] = "foo";
17839 static char bar[] = "bar";
17840 char *argv[] = { program, p, foo, bar, NULL };
17843 if (getopt (4, argv, "p::") != 'p')
17845 else if (optarg != NULL)
17847 else if (getopt (4, argv, "p::") != -1)
17849 else if (optind != 2)
17852 /* This code succeeds on glibc 2.8 and fails on Cygwin 1.7.0. */
17854 static char program[] = "program";
17855 static char foo[] = "foo";
17856 static char p[] = "-p";
17857 char *argv[] = { program, foo, p, NULL };
17859 if (getopt (3, argv, "-p") != 1)
17861 else if (getopt (3, argv, "-p") != 'p')
17864 /* This code fails on glibc 2.11. */
17866 static char program[] = "program";
17867 static char b[] = "-b";
17868 static char a[] = "-a";
17869 char *argv[] = { program, b, a, NULL };
17870 optind = opterr = 0;
17871 if (getopt (3, argv, "+:a:b") != 'b')
17873 else if (getopt (3, argv, "+:a:b") != ':')
17876 /* This code dumps core on glibc 2.14. */
17878 static char program[] = "program";
17879 static char w[] = "-W";
17880 static char dummy[] = "dummy";
17881 char *argv[] = { program, w, dummy, NULL };
17882 optind = opterr = 1;
17883 if (getopt (3, argv, "W;") != 'W')
17892 if ac_fn_c_try_run
"$LINENO"; then :
17893 gl_cv_func_getopt_gnu
=yes
17895 gl_cv_func_getopt_gnu
=no
17897 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
17898 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
17901 case $gl_had_POSIXLY_CORRECT in
17903 yes) { POSIXLY_CORRECT
=; unset POSIXLY_CORRECT
;}; POSIXLY_CORRECT
=1 ;;
17904 *) { POSIXLY_CORRECT
=; unset POSIXLY_CORRECT
;} ;;
17908 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_getopt_gnu" >&5
17909 $as_echo "$gl_cv_func_getopt_gnu" >&6; }
17910 if test "$gl_cv_func_getopt_gnu" = "no"; then
17911 gl_replace_getopt
=yes
17922 if test -n "$gl_replace_getopt"; then :
17929 if test $REPLACE_GETOPT = 1; then
17933 $as_echo "#define __GETOPT_PREFIX rpl_" >>confdefs.h
17937 GNULIB_UNISTD_H_GETOPT
=1
17940 ac_fn_c_check_decl
"$LINENO" "getenv" "ac_cv_have_decl_getenv" "$ac_includes_default"
17941 if test "x$ac_cv_have_decl_getenv" = x
""yes; then :
17947 cat >>confdefs.h
<<_ACEOF
17948 #define HAVE_DECL_GETENV $ac_have_decl
17952 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for unsigned long long int" >&5
17953 $as_echo_n "checking for unsigned long long int... " >&6; }
17954 if test "${ac_cv_type_unsigned_long_long_int+set}" = set; then :
17955 $as_echo_n "(cached) " >&6
17957 ac_cv_type_unsigned_long_long_int
=yes
17958 if test "x${ac_cv_prog_cc_c99-no}" = xno
; then
17959 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
17960 /* end confdefs.h. */
17962 /* For now, do not test the preprocessor; as of 2007 there are too many
17963 implementations with broken preprocessors. Perhaps this can
17964 be revisited in 2012. In the meantime, code should not expect
17965 #if to work with literals wider than 32 bits. */
17966 /* Test literals. */
17967 long long int ll = 9223372036854775807ll;
17968 long long int nll = -9223372036854775807LL;
17969 unsigned long long int ull = 18446744073709551615ULL;
17970 /* Test constant expressions. */
17971 typedef int a[((-9223372036854775807LL < 0 && 0 < 9223372036854775807ll)
17973 typedef int b[(18446744073709551615ULL <= (unsigned long long int) -1
17979 /* Test availability of runtime routines for shift and division. */
17980 long long int llmax = 9223372036854775807ll;
17981 unsigned long long int ullmax = 18446744073709551615ull;
17982 return ((ll << 63) | (ll >> 63) | (ll < i) | (ll > i)
17983 | (llmax / ll) | (llmax % ll)
17984 | (ull << 63) | (ull >> 63) | (ull << i) | (ull >> i)
17985 | (ullmax / ull) | (ullmax % ull));
17991 if ac_fn_c_try_link
"$LINENO"; then :
17994 ac_cv_type_unsigned_long_long_int
=no
17996 rm -f core conftest.err conftest.
$ac_objext \
17997 conftest
$ac_exeext conftest.
$ac_ext
18000 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_unsigned_long_long_int" >&5
18001 $as_echo "$ac_cv_type_unsigned_long_long_int" >&6; }
18002 if test $ac_cv_type_unsigned_long_long_int = yes; then
18004 $as_echo "#define HAVE_UNSIGNED_LONG_LONG_INT 1" >>confdefs.h
18010 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for long long int" >&5
18011 $as_echo_n "checking for long long int... " >&6; }
18012 if test "${ac_cv_type_long_long_int+set}" = set; then :
18013 $as_echo_n "(cached) " >&6
18015 ac_cv_type_long_long_int
=yes
18016 if test "x${ac_cv_prog_cc_c99-no}" = xno
; then
18017 ac_cv_type_long_long_int
=$ac_cv_type_unsigned_long_long_int
18018 if test $ac_cv_type_long_long_int = yes; then
18019 if test "$cross_compiling" = yes; then :
18022 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
18023 /* end confdefs.h. */
18024 #include <limits.h>
18027 (1LL << (sizeof (long long int) * CHAR_BIT - 2))
18028 # define LLONG_MAX (HALF - 1 + HALF)
18033 long long int n = 1;
18037 long long int m = n << i;
18040 if (LLONG_MAX / 2 < m)
18048 if ac_fn_c_try_run
"$LINENO"; then :
18051 ac_cv_type_long_long_int
=no
18053 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
18054 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
18060 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_long_long_int" >&5
18061 $as_echo "$ac_cv_type_long_long_int" >&6; }
18062 if test $ac_cv_type_long_long_int = yes; then
18064 $as_echo "#define HAVE_LONG_LONG_INT 1" >>confdefs.h
18073 gl_cv_c_multiarch
=no
18074 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
18075 /* end confdefs.h. */
18076 #ifndef __APPLE_CC__
18077 not a universal capable compiler
18082 if ac_fn_c_try_compile
"$LINENO"; then :
18086 for word
in ${CC} ${CFLAGS} ${CPPFLAGS} ${LDFLAGS}; do
18087 if test -n "$prev"; then
18089 i?
86 | x86_64 | ppc | ppc64
)
18090 if test -z "$arch" ||
test "$arch" = "$word"; then
18093 gl_cv_c_multiarch
=yes
18099 if test "x$word" = "x-arch"; then
18106 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
18107 if test $gl_cv_c_multiarch = yes; then
18108 APPLE_UNIVERSAL_BUILD
=1
18110 APPLE_UNIVERSAL_BUILD
=0
18117 if test $ac_cv_type_long_long_int = yes; then
18118 HAVE_LONG_LONG_INT
=1
18120 HAVE_LONG_LONG_INT
=0
18124 if test $ac_cv_type_unsigned_long_long_int = yes; then
18125 HAVE_UNSIGNED_LONG_LONG_INT
=1
18127 HAVE_UNSIGNED_LONG_LONG_INT
=0
18132 if test $ac_cv_header_wchar_h = yes; then
18139 if test $ac_cv_header_inttypes_h = yes; then
18146 if test $ac_cv_header_sys_types_h = yes; then
18162 if test $gl_cv_have_include_next = yes; then
18163 gl_cv_next_stdint_h
='<'stdint.h
'>'
18165 { $as_echo "$as_me:${as_lineno-$LINENO}: checking absolute name of <stdint.h>" >&5
18166 $as_echo_n "checking absolute name of <stdint.h>... " >&6; }
18167 if test "${gl_cv_next_stdint_h+set}" = set; then :
18168 $as_echo_n "(cached) " >&6
18171 if test $ac_cv_header_stdint_h = yes; then
18174 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
18175 /* end confdefs.h. */
18176 #include <stdint.h>
18180 aix
*) gl_absname_cpp
="$ac_cpp -C" ;;
18181 *) gl_absname_cpp
="$ac_cpp" ;;
18186 gl_dirsep_regex
='[/\\]'
18189 gl_dirsep_regex
='/'
18193 gl_absolute_header_sed
='\|'"${gl_dirsep_regex}"'stdint.h|{
18194 s|.*"\(.*'"${gl_dirsep_regex}"'stdint.h\)".*|\1|
18199 gl_cv_next_stdint_h
='"'`(eval "$gl_absname_cpp conftest.$ac_ext") 2>&5 |
18200 sed -n "$gl_absolute_header_sed"`'"'
18202 gl_cv_next_stdint_h
='<'stdint.h
'>'
18207 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_next_stdint_h" >&5
18208 $as_echo "$gl_cv_next_stdint_h" >&6; }
18210 NEXT_STDINT_H
=$gl_cv_next_stdint_h
18212 if test $gl_cv_have_include_next = yes ||
test $gl_cv_have_include_next = buggy
; then
18213 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include_next'
18214 gl_next_as_first_directive
='<'stdint.h
'>'
18216 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include'
18217 gl_next_as_first_directive
=$gl_cv_next_stdint_h
18219 NEXT_AS_FIRST_DIRECTIVE_STDINT_H
=$gl_next_as_first_directive
18224 if test $ac_cv_header_stdint_h = yes; then
18231 if test $ac_cv_header_stdint_h = yes; then
18232 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stdint.h conforms to C99" >&5
18233 $as_echo_n "checking whether stdint.h conforms to C99... " >&6; }
18234 if test "${gl_cv_header_working_stdint_h+set}" = set; then :
18235 $as_echo_n "(cached) " >&6
18237 gl_cv_header_working_stdint_h
=no
18238 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
18239 /* end confdefs.h. */
18242 #define __STDC_LIMIT_MACROS 1 /* to make it work also in C++ mode */
18243 #define __STDC_CONSTANT_MACROS 1 /* to make it work also in C++ mode */
18244 #define _GL_JUST_INCLUDE_SYSTEM_STDINT_H 1 /* work if build isn't clean */
18245 #include <stdint.h>
18246 /* Dragonfly defines WCHAR_MIN, WCHAR_MAX only in <wchar.h>. */
18247 #if !(defined WCHAR_MIN && defined WCHAR_MAX)
18248 #error "WCHAR_MIN, WCHAR_MAX not defined in <stdint.h>"
18252 /* BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be
18253 included before <wchar.h>. */
18254 #include <stddef.h>
18255 #include <signal.h>
18257 # include <stdio.h>
18259 # include <wchar.h>
18264 int8_t a1 = INT8_MAX;
18265 int8_t a1min = INT8_MIN;
18268 int16_t a2 = INT16_MAX;
18269 int16_t a2min = INT16_MIN;
18272 int32_t a3 = INT32_MAX;
18273 int32_t a3min = INT32_MIN;
18276 int64_t a4 = INT64_MAX;
18277 int64_t a4min = INT64_MIN;
18280 uint8_t b1 = UINT8_MAX;
18282 typedef int b1[(unsigned char) -1 != 255 ? 1 : -1];
18285 uint16_t b2 = UINT16_MAX;
18288 uint32_t b3 = UINT32_MAX;
18291 uint64_t b4 = UINT64_MAX;
18293 int_least8_t c1 = INT8_C (0x7f);
18294 int_least8_t c1max = INT_LEAST8_MAX;
18295 int_least8_t c1min = INT_LEAST8_MIN;
18296 int_least16_t c2 = INT16_C (0x7fff);
18297 int_least16_t c2max = INT_LEAST16_MAX;
18298 int_least16_t c2min = INT_LEAST16_MIN;
18299 int_least32_t c3 = INT32_C (0x7fffffff);
18300 int_least32_t c3max = INT_LEAST32_MAX;
18301 int_least32_t c3min = INT_LEAST32_MIN;
18302 int_least64_t c4 = INT64_C (0x7fffffffffffffff);
18303 int_least64_t c4max = INT_LEAST64_MAX;
18304 int_least64_t c4min = INT_LEAST64_MIN;
18305 uint_least8_t d1 = UINT8_C (0xff);
18306 uint_least8_t d1max = UINT_LEAST8_MAX;
18307 uint_least16_t d2 = UINT16_C (0xffff);
18308 uint_least16_t d2max = UINT_LEAST16_MAX;
18309 uint_least32_t d3 = UINT32_C (0xffffffff);
18310 uint_least32_t d3max = UINT_LEAST32_MAX;
18311 uint_least64_t d4 = UINT64_C (0xffffffffffffffff);
18312 uint_least64_t d4max = UINT_LEAST64_MAX;
18313 int_fast8_t e1 = INT_FAST8_MAX;
18314 int_fast8_t e1min = INT_FAST8_MIN;
18315 int_fast16_t e2 = INT_FAST16_MAX;
18316 int_fast16_t e2min = INT_FAST16_MIN;
18317 int_fast32_t e3 = INT_FAST32_MAX;
18318 int_fast32_t e3min = INT_FAST32_MIN;
18319 int_fast64_t e4 = INT_FAST64_MAX;
18320 int_fast64_t e4min = INT_FAST64_MIN;
18321 uint_fast8_t f1 = UINT_FAST8_MAX;
18322 uint_fast16_t f2 = UINT_FAST16_MAX;
18323 uint_fast32_t f3 = UINT_FAST32_MAX;
18324 uint_fast64_t f4 = UINT_FAST64_MAX;
18326 intptr_t g = INTPTR_MAX;
18327 intptr_t gmin = INTPTR_MIN;
18330 uintptr_t h = UINTPTR_MAX;
18332 intmax_t i = INTMAX_MAX;
18333 uintmax_t j = UINTMAX_MAX;
18335 #include <limits.h> /* for CHAR_BIT */
18336 #define TYPE_MINIMUM(t) \
18337 ((t) ((t) 0 < (t) -1 ? (t) 0 : ~ TYPE_MAXIMUM (t)))
18338 #define TYPE_MAXIMUM(t) \
18339 ((t) ((t) 0 < (t) -1 \
18341 : ((((t) 1 << (sizeof (t) * CHAR_BIT - 2)) - 1) * 2 + 1)))
18344 PTRDIFF_MIN == TYPE_MINIMUM (ptrdiff_t)
18345 && PTRDIFF_MAX == TYPE_MAXIMUM (ptrdiff_t)
18347 /* Detect bug in FreeBSD 6.0 / ia64. */
18348 int check_SIG_ATOMIC:
18349 SIG_ATOMIC_MIN == TYPE_MINIMUM (sig_atomic_t)
18350 && SIG_ATOMIC_MAX == TYPE_MAXIMUM (sig_atomic_t)
18352 int check_SIZE: SIZE_MAX == TYPE_MAXIMUM (size_t) ? 1 : -1;
18354 WCHAR_MIN == TYPE_MINIMUM (wchar_t)
18355 && WCHAR_MAX == TYPE_MAXIMUM (wchar_t)
18357 /* Detect bug in mingw. */
18359 WINT_MIN == TYPE_MINIMUM (wint_t)
18360 && WINT_MAX == TYPE_MAXIMUM (wint_t)
18363 /* Detect bugs in glibc 2.4 and Solaris 10 stdint.h, among others. */
18365 (-1 < UINT8_C (0)) == (-1 < (uint_least8_t) 0) ? 1 : -1;
18366 int check_UINT16_C:
18367 (-1 < UINT16_C (0)) == (-1 < (uint_least16_t) 0) ? 1 : -1;
18369 /* Detect bugs in OpenBSD 3.9 stdint.h. */
18371 int check_uint8: (uint8_t) -1 == UINT8_MAX ? 1 : -1;
18374 int check_uint16: (uint16_t) -1 == UINT16_MAX ? 1 : -1;
18377 int check_uint32: (uint32_t) -1 == UINT32_MAX ? 1 : -1;
18380 int check_uint64: (uint64_t) -1 == UINT64_MAX ? 1 : -1;
18382 int check_uint_least8: (uint_least8_t) -1 == UINT_LEAST8_MAX ? 1 : -1;
18383 int check_uint_least16: (uint_least16_t) -1 == UINT_LEAST16_MAX ? 1 : -1;
18384 int check_uint_least32: (uint_least32_t) -1 == UINT_LEAST32_MAX ? 1 : -1;
18385 int check_uint_least64: (uint_least64_t) -1 == UINT_LEAST64_MAX ? 1 : -1;
18386 int check_uint_fast8: (uint_fast8_t) -1 == UINT_FAST8_MAX ? 1 : -1;
18387 int check_uint_fast16: (uint_fast16_t) -1 == UINT_FAST16_MAX ? 1 : -1;
18388 int check_uint_fast32: (uint_fast32_t) -1 == UINT_FAST32_MAX ? 1 : -1;
18389 int check_uint_fast64: (uint_fast64_t) -1 == UINT_FAST64_MAX ? 1 : -1;
18390 int check_uintptr: (uintptr_t) -1 == UINTPTR_MAX ? 1 : -1;
18391 int check_uintmax: (uintmax_t) -1 == UINTMAX_MAX ? 1 : -1;
18392 int check_size: (size_t) -1 == SIZE_MAX ? 1 : -1;
18403 if ac_fn_c_try_compile
"$LINENO"; then :
18404 if test "$cross_compiling" = yes; then :
18405 gl_cv_header_working_stdint_h
=yes
18408 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
18409 /* end confdefs.h. */
18412 #define __STDC_LIMIT_MACROS 1 /* to make it work also in C++ mode */
18413 #define __STDC_CONSTANT_MACROS 1 /* to make it work also in C++ mode */
18414 #define _GL_JUST_INCLUDE_SYSTEM_STDINT_H 1 /* work if build isn't clean */
18415 #include <stdint.h>
18418 /* BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be
18419 included before <wchar.h>. */
18420 #include <stddef.h>
18421 #include <signal.h>
18423 # include <stdio.h>
18425 # include <wchar.h>
18430 #include <string.h>
18431 #define MVAL(macro) MVAL1(macro)
18432 #define MVAL1(expression) #expression
18433 static const char *macro_values[] =
18467 for (mv = macro_values; *mv != NULL; mv++)
18469 const char *value = *mv;
18470 /* Test whether it looks like a cast expression. */
18471 if (strncmp (value, "((unsigned int)"/*)*/, 15) == 0
18472 || strncmp (value, "((unsigned short)"/*)*/, 17) == 0
18473 || strncmp (value, "((unsigned char)"/*)*/, 16) == 0
18474 || strncmp (value, "((int)"/*)*/, 6) == 0
18475 || strncmp (value, "((signed short)"/*)*/, 15) == 0
18476 || strncmp (value, "((signed char)"/*)*/, 14) == 0)
18477 return mv - macro_values + 1;
18485 if ac_fn_c_try_run
"$LINENO"; then :
18486 gl_cv_header_working_stdint_h
=yes
18488 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
18489 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
18494 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
18497 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_header_working_stdint_h" >&5
18498 $as_echo "$gl_cv_header_working_stdint_h" >&6; }
18500 if test "$gl_cv_header_working_stdint_h" = yes; then
18503 for ac_header
in sys
/inttypes.h sys
/bitypes.h
18505 as_ac_Header
=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
18506 ac_fn_c_check_header_mongrel
"$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
18507 eval as_val
=\$
$as_ac_Header
18508 if test "x$as_val" = x
""yes; then :
18509 cat >>confdefs.h
<<_ACEOF
18510 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
18517 if test $ac_cv_header_sys_inttypes_h = yes; then
18518 HAVE_SYS_INTTYPES_H
=1
18520 HAVE_SYS_INTTYPES_H
=0
18523 if test $ac_cv_header_sys_bitypes_h = yes; then
18524 HAVE_SYS_BITYPES_H
=1
18526 HAVE_SYS_BITYPES_H
=0
18532 if test $APPLE_UNIVERSAL_BUILD = 0; then
18535 for gltype
in ptrdiff_t size_t
; do
18536 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for bit size of $gltype" >&5
18537 $as_echo_n "checking for bit size of $gltype... " >&6; }
18538 if { as_var
=gl_cv_bitsizeof_
${gltype}; eval "test \"\${$as_var+set}\" = set"; }; then :
18539 $as_echo_n "(cached) " >&6
18541 if ac_fn_c_compute_int
"$LINENO" "sizeof ($gltype) * CHAR_BIT" "result" "
18542 /* BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be
18543 included before <wchar.h>. */
18544 #include <stddef.h>
18545 #include <signal.h>
18547 # include <stdio.h>
18549 # include <wchar.h>
18552 #include <limits.h>"; then :
18558 eval gl_cv_bitsizeof_
${gltype}=\
$result
18561 eval ac_res
=\
$gl_cv_bitsizeof_${gltype}
18562 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
18563 $as_echo "$ac_res" >&6; }
18564 eval result
=\
$gl_cv_bitsizeof_${gltype}
18565 if test $result = unknown
; then
18568 GLTYPE
=`echo "$gltype" | tr 'abcdefghijklmnopqrstuvwxyz ' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ_'`
18569 cat >>confdefs.h
<<_ACEOF
18570 #define BITSIZEOF_${GLTYPE} $result
18573 eval BITSIZEOF_
${GLTYPE}=\
$result
18580 for gltype
in sig_atomic_t wchar_t wint_t
; do
18581 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for bit size of $gltype" >&5
18582 $as_echo_n "checking for bit size of $gltype... " >&6; }
18583 if { as_var
=gl_cv_bitsizeof_
${gltype}; eval "test \"\${$as_var+set}\" = set"; }; then :
18584 $as_echo_n "(cached) " >&6
18586 if ac_fn_c_compute_int
"$LINENO" "sizeof ($gltype) * CHAR_BIT" "result" "
18587 /* BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be
18588 included before <wchar.h>. */
18589 #include <stddef.h>
18590 #include <signal.h>
18592 # include <stdio.h>
18594 # include <wchar.h>
18597 #include <limits.h>"; then :
18603 eval gl_cv_bitsizeof_
${gltype}=\
$result
18606 eval ac_res
=\
$gl_cv_bitsizeof_${gltype}
18607 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
18608 $as_echo "$ac_res" >&6; }
18609 eval result
=\
$gl_cv_bitsizeof_${gltype}
18610 if test $result = unknown
; then
18613 GLTYPE
=`echo "$gltype" | tr 'abcdefghijklmnopqrstuvwxyz ' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ_'`
18614 cat >>confdefs.h
<<_ACEOF
18615 #define BITSIZEOF_${GLTYPE} $result
18618 eval BITSIZEOF_
${GLTYPE}=\
$result
18624 for gltype
in sig_atomic_t wchar_t wint_t
; do
18625 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $gltype is signed" >&5
18626 $as_echo_n "checking whether $gltype is signed... " >&6; }
18627 if { as_var
=gl_cv_type_
${gltype}_signed; eval "test \"\${$as_var+set}\" = set"; }; then :
18628 $as_echo_n "(cached) " >&6
18630 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
18631 /* end confdefs.h. */
18633 /* BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be
18634 included before <wchar.h>. */
18635 #include <stddef.h>
18636 #include <signal.h>
18638 # include <stdio.h>
18640 # include <wchar.h>
18643 int verify[2 * (($gltype) -1 < ($gltype) 0) - 1];
18652 if ac_fn_c_try_compile
"$LINENO"; then :
18657 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
18658 eval gl_cv_type_
${gltype}_signed
=\
$result
18661 eval ac_res
=\
$gl_cv_type_${gltype}_signed
18662 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
18663 $as_echo "$ac_res" >&6; }
18664 eval result
=\
$gl_cv_type_${gltype}_signed
18665 GLTYPE
=`echo $gltype | tr 'abcdefghijklmnopqrstuvwxyz ' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ_'`
18666 if test "$result" = yes; then
18667 cat >>confdefs.h
<<_ACEOF
18668 #define HAVE_SIGNED_${GLTYPE} 1
18671 eval HAVE_SIGNED_
${GLTYPE}=1
18673 eval HAVE_SIGNED_
${GLTYPE}=0
18678 gl_cv_type_ptrdiff_t_signed
=yes
18679 gl_cv_type_size_t_signed
=no
18680 if test $APPLE_UNIVERSAL_BUILD = 0; then
18683 for gltype
in ptrdiff_t size_t
; do
18684 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $gltype integer literal suffix" >&5
18685 $as_echo_n "checking for $gltype integer literal suffix... " >&6; }
18686 if { as_var
=gl_cv_type_
${gltype}_suffix; eval "test \"\${$as_var+set}\" = set"; }; then :
18687 $as_echo_n "(cached) " >&6
18689 eval gl_cv_type_
${gltype}_suffix
=no
18690 eval result
=\
$gl_cv_type_${gltype}_signed
18691 if test "$result" = yes; then
18696 for glsuf
in "$glsufu" ${glsufu}l ${glsufu}ll ${glsufu}i64
; do
18698 '') gltype1
='int';;
18699 l
) gltype1
='long int';;
18700 ll
) gltype1
='long long int';;
18701 i64
) gltype1
='__int64';;
18702 u
) gltype1
='unsigned int';;
18703 ul
) gltype1
='unsigned long int';;
18704 ull
) gltype1
='unsigned long long int';;
18705 ui64
)gltype1
='unsigned __int64';;
18707 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
18708 /* end confdefs.h. */
18710 /* BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be
18711 included before <wchar.h>. */
18712 #include <stddef.h>
18713 #include <signal.h>
18715 # include <stdio.h>
18717 # include <wchar.h>
18720 extern $gltype foo;
18721 extern $gltype1 foo;
18730 if ac_fn_c_try_compile
"$LINENO"; then :
18731 eval gl_cv_type_
${gltype}_suffix
=\
$glsuf
18733 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
18734 eval result
=\
$gl_cv_type_${gltype}_suffix
18735 test "$result" != no
&& break
18738 eval ac_res
=\
$gl_cv_type_${gltype}_suffix
18739 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
18740 $as_echo "$ac_res" >&6; }
18741 GLTYPE
=`echo $gltype | tr 'abcdefghijklmnopqrstuvwxyz ' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ_'`
18742 eval result
=\
$gl_cv_type_${gltype}_suffix
18743 test "$result" = no
&& result
=
18744 eval ${GLTYPE}_SUFFIX
=\
$result
18745 cat >>confdefs.h
<<_ACEOF
18746 #define ${GLTYPE}_SUFFIX $result
18755 for gltype
in sig_atomic_t wchar_t wint_t
; do
18756 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $gltype integer literal suffix" >&5
18757 $as_echo_n "checking for $gltype integer literal suffix... " >&6; }
18758 if { as_var
=gl_cv_type_
${gltype}_suffix; eval "test \"\${$as_var+set}\" = set"; }; then :
18759 $as_echo_n "(cached) " >&6
18761 eval gl_cv_type_
${gltype}_suffix
=no
18762 eval result
=\
$gl_cv_type_${gltype}_signed
18763 if test "$result" = yes; then
18768 for glsuf
in "$glsufu" ${glsufu}l ${glsufu}ll ${glsufu}i64
; do
18770 '') gltype1
='int';;
18771 l
) gltype1
='long int';;
18772 ll
) gltype1
='long long int';;
18773 i64
) gltype1
='__int64';;
18774 u
) gltype1
='unsigned int';;
18775 ul
) gltype1
='unsigned long int';;
18776 ull
) gltype1
='unsigned long long int';;
18777 ui64
)gltype1
='unsigned __int64';;
18779 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
18780 /* end confdefs.h. */
18782 /* BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be
18783 included before <wchar.h>. */
18784 #include <stddef.h>
18785 #include <signal.h>
18787 # include <stdio.h>
18789 # include <wchar.h>
18792 extern $gltype foo;
18793 extern $gltype1 foo;
18802 if ac_fn_c_try_compile
"$LINENO"; then :
18803 eval gl_cv_type_
${gltype}_suffix
=\
$glsuf
18805 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
18806 eval result
=\
$gl_cv_type_${gltype}_suffix
18807 test "$result" != no
&& break
18810 eval ac_res
=\
$gl_cv_type_${gltype}_suffix
18811 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
18812 $as_echo "$ac_res" >&6; }
18813 GLTYPE
=`echo $gltype | tr 'abcdefghijklmnopqrstuvwxyz ' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ_'`
18814 eval result
=\
$gl_cv_type_${gltype}_suffix
18815 test "$result" = no
&& result
=
18816 eval ${GLTYPE}_SUFFIX
=\
$result
18817 cat >>confdefs.h
<<_ACEOF
18818 #define ${GLTYPE}_SUFFIX $result
18825 if test $BITSIZEOF_WINT_T -lt 32; then
18826 BITSIZEOF_WINT_T
=32
18832 if test -n "$STDINT_H"; then
18833 GL_GENERATE_STDINT_H_TRUE
=
18834 GL_GENERATE_STDINT_H_FALSE
='#'
18836 GL_GENERATE_STDINT_H_TRUE
='#'
18837 GL_GENERATE_STDINT_H_FALSE
=
18846 GNULIB_STRTOIMAX
=0;
18847 GNULIB_STRTOUMAX
=0;
18848 HAVE_DECL_IMAXABS
=1;
18849 HAVE_DECL_IMAXDIV
=1;
18850 HAVE_DECL_STRTOIMAX
=1;
18851 HAVE_DECL_STRTOUMAX
=1;
18852 INT32_MAX_LT_INTMAX_MAX
=1;
18853 INT64_MAX_EQ_LONG_MAX
='defined _LP64';
18854 PRI_MACROS_BROKEN
=0;
18855 PRIPTR_PREFIX
=__PRIPTR_PREFIX
;
18856 UINT32_MAX_LT_UINTMAX_MAX
=1;
18857 UINT64_MAX_EQ_ULONG_MAX
='defined _LP64';
18873 if test $gl_cv_have_include_next = yes; then
18874 gl_cv_next_inttypes_h
='<'inttypes.h
'>'
18876 { $as_echo "$as_me:${as_lineno-$LINENO}: checking absolute name of <inttypes.h>" >&5
18877 $as_echo_n "checking absolute name of <inttypes.h>... " >&6; }
18878 if test "${gl_cv_next_inttypes_h+set}" = set; then :
18879 $as_echo_n "(cached) " >&6
18882 if test $ac_cv_header_inttypes_h = yes; then
18885 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
18886 /* end confdefs.h. */
18887 #include <inttypes.h>
18891 aix
*) gl_absname_cpp
="$ac_cpp -C" ;;
18892 *) gl_absname_cpp
="$ac_cpp" ;;
18897 gl_dirsep_regex
='[/\\]'
18900 gl_dirsep_regex
='/'
18904 gl_absolute_header_sed
='\|'"${gl_dirsep_regex}"'inttypes.h|{
18905 s|.*"\(.*'"${gl_dirsep_regex}"'inttypes.h\)".*|\1|
18910 gl_cv_next_inttypes_h
='"'`(eval "$gl_absname_cpp conftest.$ac_ext") 2>&5 |
18911 sed -n "$gl_absolute_header_sed"`'"'
18913 gl_cv_next_inttypes_h
='<'inttypes.h
'>'
18918 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_next_inttypes_h" >&5
18919 $as_echo "$gl_cv_next_inttypes_h" >&6; }
18921 NEXT_INTTYPES_H
=$gl_cv_next_inttypes_h
18923 if test $gl_cv_have_include_next = yes ||
test $gl_cv_have_include_next = buggy
; then
18924 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include_next'
18925 gl_next_as_first_directive
='<'inttypes.h
'>'
18927 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include'
18928 gl_next_as_first_directive
=$gl_cv_next_inttypes_h
18930 NEXT_AS_FIRST_DIRECTIVE_INTTYPES_H
=$gl_next_as_first_directive
18939 $as_echo "#define GL_TRIGGER_STDC_LIMIT_MACROS 1" >>confdefs.h
18958 GNULIB_UTIMENSAT
=0;
18972 REPLACE_FUTIMENS
=0;
18978 REPLACE_UTIMENSAT
=0;
18983 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether lstat correctly handles trailing slash" >&5
18984 $as_echo_n "checking whether lstat correctly handles trailing slash... " >&6; }
18985 if test "${gl_cv_func_lstat_dereferences_slashed_symlink+set}" = set; then :
18986 $as_echo_n "(cached) " >&6
18988 rm -f conftest.sym conftest.
file
18989 echo >conftest.
file
18990 if test "$as_ln_s" = "ln -s" && ln -s conftest.
file conftest.sym
; then
18991 if test "$cross_compiling" = yes; then :
18992 # When cross-compiling, be pessimistic so we will end up using the
18993 # replacement version of lstat that checks for trailing slashes and
18994 # calls lstat a second time when necessary.
18995 gl_cv_func_lstat_dereferences_slashed_symlink
=no
18998 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
18999 /* end confdefs.h. */
19000 $ac_includes_default
19005 /* Linux will dereference the symlink and fail, as required by
19006 POSIX. That is better in the sense that it means we will not
19007 have to compile and use the lstat wrapper. */
19008 return lstat ("conftest.sym/", &sbuf) == 0;
19014 if ac_fn_c_try_run
"$LINENO"; then :
19015 gl_cv_func_lstat_dereferences_slashed_symlink
=yes
19017 gl_cv_func_lstat_dereferences_slashed_symlink
=no
19019 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
19020 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
19024 # If the 'ln -s' command failed, then we probably don't even
19025 # have an lstat function.
19026 gl_cv_func_lstat_dereferences_slashed_symlink
=no
19028 rm -f conftest.sym conftest.
file
19031 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_lstat_dereferences_slashed_symlink" >&5
19032 $as_echo "$gl_cv_func_lstat_dereferences_slashed_symlink" >&6; }
19033 test $gl_cv_func_lstat_dereferences_slashed_symlink = yes &&
19035 cat >>confdefs.h
<<_ACEOF
19036 #define LSTAT_FOLLOWS_SLASHED_SYMLINK 1
19042 GNULIB_NANOSLEEP
=0;
19046 HAVE_DECL_LOCALTIME_R
=1;
19050 REPLACE_LOCALTIME_R
=GNULIB_PORTCHECK
;
19051 REPLACE_MKTIME
=GNULIB_PORTCHECK
;
19052 REPLACE_NANOSLEEP
=GNULIB_PORTCHECK
;
19053 REPLACE_TIMEGM
=GNULIB_PORTCHECK
;
19060 GNULIB_PTHREAD_SIGMASK
=0;
19062 GNULIB_SIGNAL_H_SIGPIPE
=0;
19063 GNULIB_SIGPROCMASK
=0;
19064 GNULIB_SIGACTION
=0;
19065 HAVE_POSIX_SIGNALBLOCKING
=1;
19066 HAVE_PTHREAD_SIGMASK
=1;
19071 HAVE_STRUCT_SIGACTION_SA_SIGACTION
=1;
19073 HAVE_TYPE_VOLATILE_SIG_ATOMIC_T
=1;
19075 HAVE_SIGHANDLER_T
=1;
19076 REPLACE_PTHREAD_SIGMASK
=0;
19082 ac_fn_c_check_type
"$LINENO" "sigset_t" "ac_cv_type_sigset_t" "
19083 #include <signal.h>
19084 /* Mingw defines sigset_t not in <signal.h>, but in <sys/types.h>. */
19085 #include <sys/types.h>
19088 if test "x$ac_cv_type_sigset_t" = x
""yes; then :
19090 cat >>confdefs.h
<<_ACEOF
19091 #define HAVE_SIGSET_T 1
19094 gl_cv_type_sigset_t
=yes
19096 gl_cv_type_sigset_t
=no
19099 if test $gl_cv_type_sigset_t != yes; then
19107 if test $ac_cv_header_sys_socket_h = no
; then
19108 for ac_header
in ws2tcpip.h
19110 ac_fn_c_check_header_mongrel
"$LINENO" "ws2tcpip.h" "ac_cv_header_ws2tcpip_h" "$ac_includes_default"
19111 if test "x$ac_cv_header_ws2tcpip_h" = x
""yes; then :
19112 cat >>confdefs.h
<<_ACEOF
19113 #define HAVE_WS2TCPIP_H 1
19122 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for stdbool.h that conforms to C99" >&5
19123 $as_echo_n "checking for stdbool.h that conforms to C99... " >&6; }
19124 if test "${ac_cv_header_stdbool_h+set}" = set; then :
19125 $as_echo_n "(cached) " >&6
19127 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
19128 /* end confdefs.h. */
19130 #include <stdbool.h>
19132 "error: bool is not defined"
19135 "error: false is not defined"
19138 "error: false is not 0"
19141 "error: true is not defined"
19144 "error: true is not 1"
19146 #ifndef __bool_true_false_are_defined
19147 "error: __bool_true_false_are_defined is not defined"
19150 struct s { _Bool s: 1; _Bool t; } s;
19152 char a[true == 1 ? 1 : -1];
19153 char b[false == 0 ? 1 : -1];
19154 char c[__bool_true_false_are_defined == 1 ? 1 : -1];
19155 char d[(bool) 0.5 == true ? 1 : -1];
19156 /* See body of main program for 'e'. */
19157 char f[(_Bool) 0.0 == false ? 1 : -1];
19159 char h[sizeof (_Bool)];
19160 char i[sizeof s.t];
19161 enum { j = false, k = true, l = false * true, m = true * 256 };
19162 /* The following fails for
19163 HP aC++/ANSI C B3910B A.05.55 [Dec 04 2003]. */
19165 char o[sizeof n == m * sizeof n[0] ? 1 : -1];
19166 char p[-1 - (_Bool) 0 < 0 && -1 - (bool) 0 < 0 ? 1 : -1];
19167 /* Catch a bug in an HP-UX C compiler. See
19168 http://gcc.gnu.org/ml/gcc-patches/2003-12/msg02303.html
19169 http://lists.gnu.org/archive/html/bug-coreutils/2005-11/msg00161.html
19181 /* Refer to every declared value, to avoid compiler optimizations. */
19182 return (!a + !b + !c + !d + !e + !f + !g + !h + !i + !!j + !k + !!l
19183 + !m + !n + !o + !p + !q + !pq);
19189 if ac_fn_c_try_compile
"$LINENO"; then :
19190 ac_cv_header_stdbool_h
=yes
19192 ac_cv_header_stdbool_h
=no
19194 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
19196 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdbool_h" >&5
19197 $as_echo "$ac_cv_header_stdbool_h" >&6; }
19198 ac_fn_c_check_type
"$LINENO" "_Bool" "ac_cv_type__Bool" "$ac_includes_default"
19199 if test "x$ac_cv_type__Bool" = x
""yes; then :
19201 cat >>confdefs.h
<<_ACEOF
19202 #define HAVE__BOOL 1
19214 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for wchar_t" >&5
19215 $as_echo_n "checking for wchar_t... " >&6; }
19216 if test "${gt_cv_c_wchar_t+set}" = set; then :
19217 $as_echo_n "(cached) " >&6
19219 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
19220 /* end confdefs.h. */
19221 #include <stddef.h>
19222 wchar_t foo = (wchar_t)'\0';
19231 if ac_fn_c_try_compile
"$LINENO"; then :
19232 gt_cv_c_wchar_t
=yes
19236 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
19238 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_c_wchar_t" >&5
19239 $as_echo "$gt_cv_c_wchar_t" >&6; }
19240 if test $gt_cv_c_wchar_t = yes; then
19242 $as_echo "#define HAVE_WCHAR_T 1" >>confdefs.h
19255 GNULIB_FPRINTF_POSIX
=0;
19272 GNULIB_OBSTACK_PRINTF
=0;
19273 GNULIB_OBSTACK_PRINTF_POSIX
=0;
19278 GNULIB_PRINTF_POSIX
=0;
19287 GNULIB_SPRINTF_POSIX
=0;
19288 GNULIB_STDIO_H_NONBLOCKING
=0;
19289 GNULIB_STDIO_H_SIGPIPE
=0;
19291 GNULIB_VASPRINTF
=0;
19296 GNULIB_VFPRINTF_POSIX
=0;
19298 GNULIB_VPRINTF_POSIX
=0;
19299 GNULIB_VSNPRINTF
=0;
19300 GNULIB_VSPRINTF_POSIX
=0;
19301 HAVE_DECL_FPURGE
=1;
19302 HAVE_DECL_FSEEKO
=1;
19303 HAVE_DECL_FTELLO
=1;
19304 HAVE_DECL_GETDELIM
=1;
19305 HAVE_DECL_GETLINE
=1;
19306 HAVE_DECL_OBSTACK_PRINTF
=1;
19307 HAVE_DECL_SNPRINTF
=1;
19308 HAVE_DECL_VSNPRINTF
=1;
19329 REPLACE_GETDELIM
=0;
19331 REPLACE_OBSTACK_PRINTF
=0;
19337 REPLACE_RENAMEAT
=0;
19338 REPLACE_SNPRINTF
=0;
19340 REPLACE_STDIO_READ_FUNCS
=0;
19341 REPLACE_STDIO_WRITE_FUNCS
=0;
19343 REPLACE_VASPRINTF
=0;
19344 REPLACE_VDPRINTF
=0;
19345 REPLACE_VFPRINTF
=0;
19347 REPLACE_VSNPRINTF
=0;
19348 REPLACE_VSPRINTF
=0;
19350 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether struct tm is in sys/time.h or time.h" >&5
19351 $as_echo_n "checking whether struct tm is in sys/time.h or time.h... " >&6; }
19352 if test "${ac_cv_struct_tm+set}" = set; then :
19353 $as_echo_n "(cached) " >&6
19355 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
19356 /* end confdefs.h. */
19357 #include <sys/types.h>
19364 int *p = &tm.tm_sec;
19370 if ac_fn_c_try_compile
"$LINENO"; then :
19371 ac_cv_struct_tm
=time.h
19373 ac_cv_struct_tm
=sys
/time.h
19375 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
19377 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_struct_tm" >&5
19378 $as_echo "$ac_cv_struct_tm" >&6; }
19379 if test $ac_cv_struct_tm = sys
/time.h
; then
19381 $as_echo "#define TM_IN_SYS_TIME 1" >>confdefs.h
19385 ac_fn_c_check_member
"$LINENO" "struct tm" "tm_zone" "ac_cv_member_struct_tm_tm_zone" "#include <sys/types.h>
19386 #include <$ac_cv_struct_tm>
19389 if test "x$ac_cv_member_struct_tm_tm_zone" = x
""yes; then :
19391 cat >>confdefs.h
<<_ACEOF
19392 #define HAVE_STRUCT_TM_TM_ZONE 1
19398 if test "$ac_cv_member_struct_tm_tm_zone" = yes; then
19400 $as_echo "#define HAVE_TM_ZONE 1" >>confdefs.h
19403 ac_fn_c_check_decl
"$LINENO" "tzname" "ac_cv_have_decl_tzname" "#include <time.h>
19405 if test "x$ac_cv_have_decl_tzname" = x
""yes; then :
19411 cat >>confdefs.h
<<_ACEOF
19412 #define HAVE_DECL_TZNAME $ac_have_decl
19415 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for tzname" >&5
19416 $as_echo_n "checking for tzname... " >&6; }
19417 if test "${ac_cv_var_tzname+set}" = set; then :
19418 $as_echo_n "(cached) " >&6
19420 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
19421 /* end confdefs.h. */
19423 #if !HAVE_DECL_TZNAME
19424 extern char *tzname[];
19430 return tzname[0][0];
19435 if ac_fn_c_try_link
"$LINENO"; then :
19436 ac_cv_var_tzname
=yes
19438 ac_cv_var_tzname
=no
19440 rm -f core conftest.err conftest.
$ac_objext \
19441 conftest
$ac_exeext conftest.
$ac_ext
19443 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_var_tzname" >&5
19444 $as_echo "$ac_cv_var_tzname" >&6; }
19445 if test $ac_cv_var_tzname = yes; then
19447 $as_echo "#define HAVE_TZNAME 1" >>confdefs.h
19453 ac_fn_c_check_member
"$LINENO" "struct tm" "tm_gmtoff" "ac_cv_member_struct_tm_tm_gmtoff" "#include <time.h>
19455 if test "x$ac_cv_member_struct_tm_tm_gmtoff" = x
""yes; then :
19457 $as_echo "#define HAVE_TM_GMTOFF 1" >>confdefs.h
19466 ac_fn_c_check_decl
"$LINENO" "strtoimax" "ac_cv_have_decl_strtoimax" "$ac_includes_default"
19467 if test "x$ac_cv_have_decl_strtoimax" = x
""yes; then :
19473 cat >>confdefs.h
<<_ACEOF
19474 #define HAVE_DECL_STRTOIMAX $ac_have_decl
19479 ac_fn_c_check_decl
"$LINENO" "strtoumax" "ac_cv_have_decl_strtoumax" "$ac_includes_default"
19480 if test "x$ac_cv_have_decl_strtoumax" = x
""yes; then :
19486 cat >>confdefs.h
<<_ACEOF
19487 #define HAVE_DECL_STRTOUMAX $ac_have_decl
19492 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stat file-mode macros are broken" >&5
19493 $as_echo_n "checking whether stat file-mode macros are broken... " >&6; }
19494 if test "${ac_cv_header_stat_broken+set}" = set; then :
19495 $as_echo_n "(cached) " >&6
19497 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
19498 /* end confdefs.h. */
19499 #include <sys/types.h>
19500 #include <sys/stat.h>
19502 #if defined S_ISBLK && defined S_IFDIR
19503 extern char c1[S_ISBLK (S_IFDIR) ? -1 : 1];
19506 #if defined S_ISBLK && defined S_IFCHR
19507 extern char c2[S_ISBLK (S_IFCHR) ? -1 : 1];
19510 #if defined S_ISLNK && defined S_IFREG
19511 extern char c3[S_ISLNK (S_IFREG) ? -1 : 1];
19514 #if defined S_ISSOCK && defined S_IFREG
19515 extern char c4[S_ISSOCK (S_IFREG) ? -1 : 1];
19519 if ac_fn_c_try_compile
"$LINENO"; then :
19520 ac_cv_header_stat_broken
=no
19522 ac_cv_header_stat_broken
=yes
19524 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
19526 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stat_broken" >&5
19527 $as_echo "$ac_cv_header_stat_broken" >&6; }
19528 if test $ac_cv_header_stat_broken = yes; then
19530 $as_echo "#define STAT_MACROS_BROKEN 1" >>confdefs.h
19536 ac_fn_c_check_type
"$LINENO" "mode_t" "ac_cv_type_mode_t" "$ac_includes_default"
19537 if test "x$ac_cv_type_mode_t" = x
""yes; then :
19541 cat >>confdefs.h
<<_ACEOF
19547 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for C/C++ restrict keyword" >&5
19548 $as_echo_n "checking for C/C++ restrict keyword... " >&6; }
19549 if test "${ac_cv_c_restrict+set}" = set; then :
19550 $as_echo_n "(cached) " >&6
19552 ac_cv_c_restrict
=no
19553 # The order here caters to the fact that C++ does not require restrict.
19554 for ac_kw
in __restrict __restrict__ _Restrict restrict
; do
19555 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
19556 /* end confdefs.h. */
19557 typedef int * int_ptr;
19558 int foo (int_ptr $ac_kw ip) {
19565 int * $ac_kw t = s;
19572 if ac_fn_c_try_compile
"$LINENO"; then :
19573 ac_cv_c_restrict
=$ac_kw
19575 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
19576 test "$ac_cv_c_restrict" != no
&& break
19580 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_restrict" >&5
19581 $as_echo "$ac_cv_c_restrict" >&6; }
19583 case $ac_cv_c_restrict in
19585 no
) $as_echo "#define restrict /**/" >>confdefs.h
19587 *) cat >>confdefs.h
<<_ACEOF
19588 #define restrict $ac_cv_c_restrict
19597 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for struct timespec in <time.h>" >&5
19598 $as_echo_n "checking for struct timespec in <time.h>... " >&6; }
19599 if test "${gl_cv_sys_struct_timespec_in_time_h+set}" = set; then :
19600 $as_echo_n "(cached) " >&6
19602 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
19603 /* end confdefs.h. */
19609 static struct timespec x; x.tv_sec = x.tv_nsec;
19614 if ac_fn_c_try_compile
"$LINENO"; then :
19615 gl_cv_sys_struct_timespec_in_time_h
=yes
19617 gl_cv_sys_struct_timespec_in_time_h
=no
19619 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
19621 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_sys_struct_timespec_in_time_h" >&5
19622 $as_echo "$gl_cv_sys_struct_timespec_in_time_h" >&6; }
19624 TIME_H_DEFINES_STRUCT_TIMESPEC
=0
19625 SYS_TIME_H_DEFINES_STRUCT_TIMESPEC
=0
19626 PTHREAD_H_DEFINES_STRUCT_TIMESPEC
=0
19627 if test $gl_cv_sys_struct_timespec_in_time_h = yes; then
19628 TIME_H_DEFINES_STRUCT_TIMESPEC
=1
19630 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for struct timespec in <sys/time.h>" >&5
19631 $as_echo_n "checking for struct timespec in <sys/time.h>... " >&6; }
19632 if test "${gl_cv_sys_struct_timespec_in_sys_time_h+set}" = set; then :
19633 $as_echo_n "(cached) " >&6
19635 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
19636 /* end confdefs.h. */
19637 #include <sys/time.h>
19642 static struct timespec x; x.tv_sec = x.tv_nsec;
19647 if ac_fn_c_try_compile
"$LINENO"; then :
19648 gl_cv_sys_struct_timespec_in_sys_time_h
=yes
19650 gl_cv_sys_struct_timespec_in_sys_time_h
=no
19652 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
19654 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_sys_struct_timespec_in_sys_time_h" >&5
19655 $as_echo "$gl_cv_sys_struct_timespec_in_sys_time_h" >&6; }
19656 if test $gl_cv_sys_struct_timespec_in_sys_time_h = yes; then
19657 SYS_TIME_H_DEFINES_STRUCT_TIMESPEC
=1
19659 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for struct timespec in <pthread.h>" >&5
19660 $as_echo_n "checking for struct timespec in <pthread.h>... " >&6; }
19661 if test "${gl_cv_sys_struct_timespec_in_pthread_h+set}" = set; then :
19662 $as_echo_n "(cached) " >&6
19664 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
19665 /* end confdefs.h. */
19666 #include <pthread.h>
19671 static struct timespec x; x.tv_sec = x.tv_nsec;
19676 if ac_fn_c_try_compile
"$LINENO"; then :
19677 gl_cv_sys_struct_timespec_in_pthread_h
=yes
19679 gl_cv_sys_struct_timespec_in_pthread_h
=no
19681 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
19683 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_sys_struct_timespec_in_pthread_h" >&5
19684 $as_echo "$gl_cv_sys_struct_timespec_in_pthread_h" >&6; }
19685 if test $gl_cv_sys_struct_timespec_in_pthread_h = yes; then
19686 PTHREAD_H_DEFINES_STRUCT_TIMESPEC
=1
19705 if test $gl_cv_have_include_next = yes; then
19706 gl_cv_next_time_h
='<'time.h
'>'
19708 { $as_echo "$as_me:${as_lineno-$LINENO}: checking absolute name of <time.h>" >&5
19709 $as_echo_n "checking absolute name of <time.h>... " >&6; }
19710 if test "${gl_cv_next_time_h+set}" = set; then :
19711 $as_echo_n "(cached) " >&6
19714 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
19715 /* end confdefs.h. */
19720 aix
*) gl_absname_cpp
="$ac_cpp -C" ;;
19721 *) gl_absname_cpp
="$ac_cpp" ;;
19726 gl_dirsep_regex
='[/\\]'
19729 gl_dirsep_regex
='/'
19733 gl_absolute_header_sed
='\|'"${gl_dirsep_regex}"'time.h|{
19734 s|.*"\(.*'"${gl_dirsep_regex}"'time.h\)".*|\1|
19739 gl_cv_next_time_h
='"'`(eval "$gl_absname_cpp conftest.$ac_ext") 2>&5 |
19740 sed -n "$gl_absolute_header_sed"`'"'
19744 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_next_time_h" >&5
19745 $as_echo "$gl_cv_next_time_h" >&6; }
19747 NEXT_TIME_H
=$gl_cv_next_time_h
19749 if test $gl_cv_have_include_next = yes ||
test $gl_cv_have_include_next = buggy
; then
19750 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include_next'
19751 gl_next_as_first_directive
='<'time.h
'>'
19753 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include'
19754 gl_next_as_first_directive
=$gl_cv_next_time_h
19756 NEXT_AS_FIRST_DIRECTIVE_TIME_H
=$gl_next_as_first_directive
19763 ac_fn_c_check_decl
"$LINENO" "localtime_r" "ac_cv_have_decl_localtime_r" "$ac_includes_default"
19764 if test "x$ac_cv_have_decl_localtime_r" = x
""yes; then :
19770 cat >>confdefs.h
<<_ACEOF
19771 #define HAVE_DECL_LOCALTIME_R $ac_have_decl
19778 GL_COND_LIBTOOL_TRUE
=
19779 GL_COND_LIBTOOL_FALSE
='#'
19781 GL_COND_LIBTOOL_TRUE
='#'
19782 GL_COND_LIBTOOL_FALSE
=
19785 gl_cond_libtool
=false
19798 gl_source_base
='lib'
19801 if test $ac_cv_func_alloca_works = no
; then
19805 # Define an additional variable used in the Makefile substitution.
19806 if test $ac_cv_working_alloca_h = yes; then
19807 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for alloca as a compiler built-in" >&5
19808 $as_echo_n "checking for alloca as a compiler built-in... " >&6; }
19809 if test "${gl_cv_rpl_alloca+set}" = set; then :
19810 $as_echo_n "(cached) " >&6
19813 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
19814 /* end confdefs.h. */
19816 #if defined __GNUC__ || defined _AIX || defined _MSC_VER
19821 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
19822 $EGREP "Need own alloca" >/dev
/null
2>&1; then :
19823 gl_cv_rpl_alloca
=yes
19825 gl_cv_rpl_alloca
=no
19831 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_rpl_alloca" >&5
19832 $as_echo "$gl_cv_rpl_alloca" >&6; }
19833 if test $gl_cv_rpl_alloca = yes; then
19835 $as_echo "#define HAVE_ALLOCA 1" >>confdefs.h
19845 if test -n "$ALLOCA_H"; then
19846 GL_GENERATE_ALLOCA_H_TRUE
=
19847 GL_GENERATE_ALLOCA_H_FALSE
='#'
19849 GL_GENERATE_ALLOCA_H_TRUE
='#'
19850 GL_GENERATE_ALLOCA_H_FALSE
=
19879 $as_echo "#define HAVE_DUP2 1" >>confdefs.h
19882 if test $HAVE_DUP2 = 1; then
19883 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether dup2 works" >&5
19884 $as_echo_n "checking whether dup2 works... " >&6; }
19885 if test "${gl_cv_func_dup2_works+set}" = set; then :
19886 $as_echo_n "(cached) " >&6
19888 if test "$cross_compiling" = yes; then :
19890 mingw
*) # on this platform, dup2 always returns 0 for success
19891 gl_cv_func_dup2_works
=no
;;
19892 cygwin
*) # on cygwin 1.5.x, dup2(1,1) returns 0
19893 gl_cv_func_dup2_works
=no
;;
19894 linux
*) # On linux between 2008-07-27 and 2009-05-11, dup2 of a
19895 # closed fd may yield -EBADF instead of -1 / errno=EBADF.
19896 gl_cv_func_dup2_works
=no
;;
19897 freebsd
*) # on FreeBSD 6.1, dup2(1,1000000) gives EMFILE, not EBADF.
19898 gl_cv_func_dup2_works
=no
;;
19899 haiku
*) # on Haiku alpha 2, dup2(1, 1) resets FD_CLOEXEC.
19900 gl_cv_func_dup2_works
=no
;;
19901 *) gl_cv_func_dup2_works
=yes;;
19904 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
19905 /* end confdefs.h. */
19907 #include <unistd.h>
19915 if (fcntl (1, F_SETFD, FD_CLOEXEC) == -1)
19918 if (dup2 (1, 1) == 0)
19921 if (fcntl (1, F_GETFD) != FD_CLOEXEC)
19925 if (dup2 (0, 0) != -1)
19927 /* Many gnulib modules require POSIX conformance of EBADF. */
19928 if (dup2 (2, 1000000) == -1 && errno != EBADF)
19937 if ac_fn_c_try_run
"$LINENO"; then :
19938 gl_cv_func_dup2_works
=yes
19940 gl_cv_func_dup2_works
=no
19942 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
19943 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
19948 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_dup2_works" >&5
19949 $as_echo "$gl_cv_func_dup2_works" >&6; }
19950 if test "$gl_cv_func_dup2_works" = no
; then
19956 if test $HAVE_DUP2 = 0 ||
test $REPLACE_DUP2 = 1; then
19965 gl_LIBOBJS
="$gl_LIBOBJS dup2.$ac_objext"
19986 # Persuade glibc <stdlib.h> to declare getloadavg().
19991 # getloadvg is present in libc on glibc >= 2.2, MacOS X, FreeBSD >= 2.0,
19992 # NetBSD >= 0.9, OpenBSD >= 2.0, Solaris >= 7.
19994 ac_fn_c_check_func
"$LINENO" "getloadavg" "ac_cv_func_getloadavg"
19995 if test "x$ac_cv_func_getloadavg" = x
""yes; then :
19998 gl_func_getloadavg_done
=no
20000 # Some systems with -lutil have (and need) -lkvm as well, some do not.
20001 # On Solaris, -lkvm requires nlist from -lelf, so check that first
20002 # to get the right answer into the cache.
20003 # For kstat on solaris, we need to test for libelf and libkvm to force the
20004 # definition of SVR4 below.
20005 if test $gl_func_getloadavg_done = no
; then
20006 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for elf_begin in -lelf" >&5
20007 $as_echo_n "checking for elf_begin in -lelf... " >&6; }
20008 if test "${ac_cv_lib_elf_elf_begin+set}" = set; then :
20009 $as_echo_n "(cached) " >&6
20011 ac_check_lib_save_LIBS
=$LIBS
20013 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
20014 /* end confdefs.h. */
20016 /* Override any GCC internal prototype to avoid an error.
20017 Use char because int might match the return type of a GCC
20018 builtin and then its argument prototype would still apply. */
20026 return elf_begin ();
20031 if ac_fn_c_try_link
"$LINENO"; then :
20032 ac_cv_lib_elf_elf_begin
=yes
20034 ac_cv_lib_elf_elf_begin
=no
20036 rm -f core conftest.err conftest.
$ac_objext \
20037 conftest
$ac_exeext conftest.
$ac_ext
20038 LIBS
=$ac_check_lib_save_LIBS
20040 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_elf_elf_begin" >&5
20041 $as_echo "$ac_cv_lib_elf_elf_begin" >&6; }
20042 if test "x$ac_cv_lib_elf_elf_begin" = x
""yes; then :
20046 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for kvm_open in -lkvm" >&5
20047 $as_echo_n "checking for kvm_open in -lkvm... " >&6; }
20048 if test "${ac_cv_lib_kvm_kvm_open+set}" = set; then :
20049 $as_echo_n "(cached) " >&6
20051 ac_check_lib_save_LIBS
=$LIBS
20053 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
20054 /* end confdefs.h. */
20056 /* Override any GCC internal prototype to avoid an error.
20057 Use char because int might match the return type of a GCC
20058 builtin and then its argument prototype would still apply. */
20066 return kvm_open ();
20071 if ac_fn_c_try_link
"$LINENO"; then :
20072 ac_cv_lib_kvm_kvm_open
=yes
20074 ac_cv_lib_kvm_kvm_open
=no
20076 rm -f core conftest.err conftest.
$ac_objext \
20077 conftest
$ac_exeext conftest.
$ac_ext
20078 LIBS
=$ac_check_lib_save_LIBS
20080 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_kvm_kvm_open" >&5
20081 $as_echo "$ac_cv_lib_kvm_kvm_open" >&6; }
20082 if test "x$ac_cv_lib_kvm_kvm_open" = x
""yes; then :
20086 # Check for the 4.4BSD definition of getloadavg.
20087 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for getloadavg in -lutil" >&5
20088 $as_echo_n "checking for getloadavg in -lutil... " >&6; }
20089 if test "${ac_cv_lib_util_getloadavg+set}" = set; then :
20090 $as_echo_n "(cached) " >&6
20092 ac_check_lib_save_LIBS
=$LIBS
20093 LIBS
="-lutil $LIBS"
20094 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
20095 /* end confdefs.h. */
20097 /* Override any GCC internal prototype to avoid an error.
20098 Use char because int might match the return type of a GCC
20099 builtin and then its argument prototype would still apply. */
20103 char getloadavg ();
20107 return getloadavg ();
20112 if ac_fn_c_try_link
"$LINENO"; then :
20113 ac_cv_lib_util_getloadavg
=yes
20115 ac_cv_lib_util_getloadavg
=no
20117 rm -f core conftest.err conftest.
$ac_objext \
20118 conftest
$ac_exeext conftest.
$ac_ext
20119 LIBS
=$ac_check_lib_save_LIBS
20121 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_util_getloadavg" >&5
20122 $as_echo "$ac_cv_lib_util_getloadavg" >&6; }
20123 if test "x$ac_cv_lib_util_getloadavg" = x
""yes; then :
20124 LIBS
="-lutil $LIBS" gl_func_getloadavg_done
=yes
20129 if test $gl_func_getloadavg_done = no
; then
20130 # There is a commonly available library for RS/6000 AIX.
20131 # Since it is not a standard part of AIX, it might be installed locally.
20132 gl_getloadavg_LIBS
=$LIBS
20133 LIBS
="-L/usr/local/lib $LIBS"
20134 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for getloadavg in -lgetloadavg" >&5
20135 $as_echo_n "checking for getloadavg in -lgetloadavg... " >&6; }
20136 if test "${ac_cv_lib_getloadavg_getloadavg+set}" = set; then :
20137 $as_echo_n "(cached) " >&6
20139 ac_check_lib_save_LIBS
=$LIBS
20140 LIBS
="-lgetloadavg $LIBS"
20141 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
20142 /* end confdefs.h. */
20144 /* Override any GCC internal prototype to avoid an error.
20145 Use char because int might match the return type of a GCC
20146 builtin and then its argument prototype would still apply. */
20150 char getloadavg ();
20154 return getloadavg ();
20159 if ac_fn_c_try_link
"$LINENO"; then :
20160 ac_cv_lib_getloadavg_getloadavg
=yes
20162 ac_cv_lib_getloadavg_getloadavg
=no
20164 rm -f core conftest.err conftest.
$ac_objext \
20165 conftest
$ac_exeext conftest.
$ac_ext
20166 LIBS
=$ac_check_lib_save_LIBS
20168 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_getloadavg_getloadavg" >&5
20169 $as_echo "$ac_cv_lib_getloadavg_getloadavg" >&6; }
20170 if test "x$ac_cv_lib_getloadavg_getloadavg" = x
""yes; then :
20171 LIBS
="-lgetloadavg $LIBS" gl_func_getloadavg_done
=yes
20173 LIBS
=$gl_getloadavg_LIBS
20178 # Set up the replacement function if necessary.
20179 if test $gl_func_getloadavg_done = no
; then
20182 # Solaris has libkstat which does not require root.
20183 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for kstat_open in -lkstat" >&5
20184 $as_echo_n "checking for kstat_open in -lkstat... " >&6; }
20185 if test "${ac_cv_lib_kstat_kstat_open+set}" = set; then :
20186 $as_echo_n "(cached) " >&6
20188 ac_check_lib_save_LIBS
=$LIBS
20189 LIBS
="-lkstat $LIBS"
20190 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
20191 /* end confdefs.h. */
20193 /* Override any GCC internal prototype to avoid an error.
20194 Use char because int might match the return type of a GCC
20195 builtin and then its argument prototype would still apply. */
20199 char kstat_open ();
20203 return kstat_open ();
20208 if ac_fn_c_try_link
"$LINENO"; then :
20209 ac_cv_lib_kstat_kstat_open
=yes
20211 ac_cv_lib_kstat_kstat_open
=no
20213 rm -f core conftest.err conftest.
$ac_objext \
20214 conftest
$ac_exeext conftest.
$ac_ext
20215 LIBS
=$ac_check_lib_save_LIBS
20217 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_kstat_kstat_open" >&5
20218 $as_echo "$ac_cv_lib_kstat_kstat_open" >&6; }
20219 if test "x$ac_cv_lib_kstat_kstat_open" = x
""yes; then :
20220 cat >>confdefs.h
<<_ACEOF
20221 #define HAVE_LIBKSTAT 1
20224 LIBS
="-lkstat $LIBS"
20228 test $ac_cv_lib_kstat_kstat_open = yes && gl_func_getloadavg_done
=yes
20230 # AIX has libperfstat which does not require root
20231 if test $gl_func_getloadavg_done = no
; then
20232 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for perfstat_cpu_total in -lperfstat" >&5
20233 $as_echo_n "checking for perfstat_cpu_total in -lperfstat... " >&6; }
20234 if test "${ac_cv_lib_perfstat_perfstat_cpu_total+set}" = set; then :
20235 $as_echo_n "(cached) " >&6
20237 ac_check_lib_save_LIBS
=$LIBS
20238 LIBS
="-lperfstat $LIBS"
20239 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
20240 /* end confdefs.h. */
20242 /* Override any GCC internal prototype to avoid an error.
20243 Use char because int might match the return type of a GCC
20244 builtin and then its argument prototype would still apply. */
20248 char perfstat_cpu_total ();
20252 return perfstat_cpu_total ();
20257 if ac_fn_c_try_link
"$LINENO"; then :
20258 ac_cv_lib_perfstat_perfstat_cpu_total
=yes
20260 ac_cv_lib_perfstat_perfstat_cpu_total
=no
20262 rm -f core conftest.err conftest.
$ac_objext \
20263 conftest
$ac_exeext conftest.
$ac_ext
20264 LIBS
=$ac_check_lib_save_LIBS
20266 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_perfstat_perfstat_cpu_total" >&5
20267 $as_echo "$ac_cv_lib_perfstat_perfstat_cpu_total" >&6; }
20268 if test "x$ac_cv_lib_perfstat_perfstat_cpu_total" = x
""yes; then :
20269 cat >>confdefs.h
<<_ACEOF
20270 #define HAVE_LIBPERFSTAT 1
20273 LIBS
="-lperfstat $LIBS"
20277 test $ac_cv_lib_perfstat_perfstat_cpu_total = yes && gl_func_getloadavg_done
=yes
20280 if test $gl_func_getloadavg_done = no
; then
20281 ac_fn_c_check_header_mongrel
"$LINENO" "sys/dg_sys_info.h" "ac_cv_header_sys_dg_sys_info_h" "$ac_includes_default"
20282 if test "x$ac_cv_header_sys_dg_sys_info_h" = x
""yes; then :
20283 gl_func_getloadavg_done
=yes
20285 $as_echo "#define DGUX 1" >>confdefs.h
20287 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dg_sys_info in -ldgc" >&5
20288 $as_echo_n "checking for dg_sys_info in -ldgc... " >&6; }
20289 if test "${ac_cv_lib_dgc_dg_sys_info+set}" = set; then :
20290 $as_echo_n "(cached) " >&6
20292 ac_check_lib_save_LIBS
=$LIBS
20294 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
20295 /* end confdefs.h. */
20297 /* Override any GCC internal prototype to avoid an error.
20298 Use char because int might match the return type of a GCC
20299 builtin and then its argument prototype would still apply. */
20303 char dg_sys_info ();
20307 return dg_sys_info ();
20312 if ac_fn_c_try_link
"$LINENO"; then :
20313 ac_cv_lib_dgc_dg_sys_info
=yes
20315 ac_cv_lib_dgc_dg_sys_info
=no
20317 rm -f core conftest.err conftest.
$ac_objext \
20318 conftest
$ac_exeext conftest.
$ac_ext
20319 LIBS
=$ac_check_lib_save_LIBS
20321 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dgc_dg_sys_info" >&5
20322 $as_echo "$ac_cv_lib_dgc_dg_sys_info" >&6; }
20323 if test "x$ac_cv_lib_dgc_dg_sys_info" = x
""yes; then :
20324 cat >>confdefs.h
<<_ACEOF
20325 #define HAVE_LIBDGC 1
20340 if test "x$gl_save_LIBS" = x
; then
20341 GETLOADAVG_LIBS
=$LIBS
20343 GETLOADAVG_LIBS
=`echo "$LIBS" | sed "s!$gl_save_LIBS!!"`
20348 # Test whether the system declares getloadavg. Solaris has the function
20349 # but declares it in <sys/loadavg.h>, not <stdlib.h>.
20350 for ac_header
in sys
/loadavg.h
20352 ac_fn_c_check_header_mongrel
"$LINENO" "sys/loadavg.h" "ac_cv_header_sys_loadavg_h" "$ac_includes_default"
20353 if test "x$ac_cv_header_sys_loadavg_h" = x
""yes; then :
20354 cat >>confdefs.h
<<_ACEOF
20355 #define HAVE_SYS_LOADAVG_H 1
20362 if test $ac_cv_header_sys_loadavg_h = yes; then
20363 HAVE_SYS_LOADAVG_H
=1
20365 HAVE_SYS_LOADAVG_H
=0
20367 ac_fn_c_check_decl
"$LINENO" "getloadavg" "ac_cv_have_decl_getloadavg" "#if HAVE_SYS_LOADAVG_H
20368 # include <sys/loadavg.h>
20370 #include <stdlib.h>
20372 if test "x$ac_cv_have_decl_getloadavg" = x
""yes; then :
20375 HAVE_DECL_GETLOADAVG
=0
20379 if test $HAVE_GETLOADAVG = 0; then
20388 gl_LIBOBJS
="$gl_LIBOBJS getloadavg.$ac_objext"
20391 # Figure out what our getloadavg.c needs.
20393 # On HPUX9, an unprivileged user can get load averages this way.
20394 if test $gl_func_getloadavg_done = no
; then
20395 for ac_func
in pstat_getdynamic
20397 ac_fn_c_check_func
"$LINENO" "pstat_getdynamic" "ac_cv_func_pstat_getdynamic"
20398 if test "x$ac_cv_func_pstat_getdynamic" = x
""yes; then :
20399 cat >>confdefs.h
<<_ACEOF
20400 #define HAVE_PSTAT_GETDYNAMIC 1
20402 gl_func_getloadavg_done
=yes
20408 # We cannot check for <dwarf.h>, because Solaris 2 does not use dwarf (it
20409 # uses stabs), but it is still SVR4. We cannot check for <elf.h> because
20410 # Irix 4.0.5F has the header but not the library.
20411 if test $gl_func_getloadavg_done = no
&& test "$ac_cv_lib_elf_elf_begin" = yes \
20412 && test "$ac_cv_lib_kvm_kvm_open" = yes; then
20413 gl_func_getloadavg_done
=yes
20415 $as_echo "#define SVR4 1" >>confdefs.h
20419 if test $gl_func_getloadavg_done = no
; then
20420 ac_fn_c_check_header_mongrel
"$LINENO" "inq_stats/cpustats.h" "ac_cv_header_inq_stats_cpustats_h" "$ac_includes_default"
20421 if test "x$ac_cv_header_inq_stats_cpustats_h" = x
""yes; then :
20422 gl_func_getloadavg_done
=yes
20424 $as_echo "#define UMAX 1" >>confdefs.h
20427 $as_echo "#define UMAX4_3 1" >>confdefs.h
20434 if test $gl_func_getloadavg_done = no
; then
20435 ac_fn_c_check_header_mongrel
"$LINENO" "sys/cpustats.h" "ac_cv_header_sys_cpustats_h" "$ac_includes_default"
20436 if test "x$ac_cv_header_sys_cpustats_h" = x
""yes; then :
20437 gl_func_getloadavg_done
=yes; $as_echo "#define UMAX 1" >>confdefs.h
20444 if test $gl_func_getloadavg_done = no
; then
20445 for ac_header
in mach
/mach.h
20447 ac_fn_c_check_header_mongrel
"$LINENO" "mach/mach.h" "ac_cv_header_mach_mach_h" "$ac_includes_default"
20448 if test "x$ac_cv_header_mach_mach_h" = x
""yes; then :
20449 cat >>confdefs.h
<<_ACEOF
20450 #define HAVE_MACH_MACH_H 1
20459 for ac_header
in nlist.h
20461 ac_fn_c_check_header_mongrel
"$LINENO" "nlist.h" "ac_cv_header_nlist_h" "$ac_includes_default"
20462 if test "x$ac_cv_header_nlist_h" = x
""yes; then :
20463 cat >>confdefs.h
<<_ACEOF
20464 #define HAVE_NLIST_H 1
20466 ac_fn_c_check_member
"$LINENO" "struct nlist" "n_un.n_name" "ac_cv_member_struct_nlist_n_un_n_name" "#include <nlist.h>
20468 if test "x$ac_cv_member_struct_nlist_n_un_n_name" = x
""yes; then :
20470 cat >>confdefs.h
<<_ACEOF
20471 #define HAVE_STRUCT_NLIST_N_UN_N_NAME 1
20477 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
20478 /* end confdefs.h. */
20484 #ifdef HAVE_STRUCT_NLIST_N_UN_N_NAME
20485 x.n_un.n_name = "";
20493 if ac_fn_c_try_link
"$LINENO"; then :
20495 $as_echo "#define N_NAME_POINTER 1" >>confdefs.h
20498 rm -f core conftest.err conftest.
$ac_objext \
20499 conftest
$ac_exeext conftest.
$ac_ext
20511 GNULIB_GETLOADAVG
=1
20522 if test $REPLACE_GETOPT = 1; then
20531 gl_LIBOBJS
="$gl_LIBOBJS getopt.$ac_objext"
20541 gl_LIBOBJS
="$gl_LIBOBJS getopt1.$ac_objext"
20555 if test -n "$gl_replace_getopt"; then :
20562 if test $REPLACE_GETOPT = 1; then
20566 $as_echo "#define __GETOPT_PREFIX rpl_" >>confdefs.h
20570 GNULIB_UNISTD_H_GETOPT
=1
20573 if test $REPLACE_GETOPT = 1; then
20582 gl_LIBOBJS
="$gl_LIBOBJS getopt.$ac_objext"
20592 gl_LIBOBJS
="$gl_LIBOBJS getopt1.$ac_objext"
20603 if test $ac_cv_func_lstat = yes; then
20605 if test $gl_cv_func_lstat_dereferences_slashed_symlink = no
; then
20612 if test $REPLACE_LSTAT = 1; then
20621 gl_LIBOBJS
="$gl_LIBOBJS lstat.$ac_objext"
20645 if test $APPLE_UNIVERSAL_BUILD = 1; then
20646 # A universal build on Apple MacOS X platforms.
20647 # The test result would be 'yes' in 32-bit mode and 'no' in 64-bit mode.
20648 # But we need a configuration result that is valid in both modes.
20649 gl_cv_func_working_mktime
=no
20651 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working mktime" >&5
20652 $as_echo_n "checking for working mktime... " >&6; }
20653 if test "${gl_cv_func_working_mktime+set}" = set; then :
20654 $as_echo_n "(cached) " >&6
20656 if test "$cross_compiling" = yes; then :
20657 gl_cv_func_working_mktime
=no
20659 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
20660 /* end confdefs.h. */
20661 /* Test program from Paul Eggert and Tony Leneis. */
20662 #include <limits.h>
20663 #include <stdlib.h>
20666 #ifdef HAVE_UNISTD_H
20667 # include <unistd.h>
20671 # define alarm(X) /* empty */
20674 /* Work around redefinition to rpl_putenv by other config tests. */
20677 static time_t time_t_max;
20678 static time_t time_t_min;
20680 /* Values we'll use to set the TZ environment variable. */
20681 static char *tz_strings[] = {
20682 (char *) 0, "TZ=GMT0", "TZ=JST-9",
20683 "TZ=EST+3EDT+2,M10.1.0/00:00:00,M2.3.0/00:00:00"
20685 #define N_STRINGS (sizeof (tz_strings) / sizeof (tz_strings[0]))
20687 /* Return 0 if mktime fails to convert a date in the spring-forward gap.
20688 Based on a problem report from Andreas Jaeger. */
20690 spring_forward_gap ()
20692 /* glibc (up to about 1998-10-07) failed this test. */
20695 /* Use the portable POSIX.1 specification "TZ=PST8PDT,M4.1.0,M10.5.0"
20696 instead of "TZ=America/Vancouver" in order to detect the bug even
20697 on systems that don't support the Olson extension, or don't have the
20698 full zoneinfo tables installed. */
20699 putenv ("TZ=PST8PDT,M4.1.0,M10.5.0");
20708 return mktime (&tm) != (time_t) -1;
20712 mktime_test1 (time_t now)
20715 return ! (lt = localtime (&now)) || mktime (lt) == now;
20719 mktime_test (time_t now)
20721 return (mktime_test1 (now)
20722 && mktime_test1 ((time_t) (time_t_max - now))
20723 && mktime_test1 ((time_t) (time_t_min + now)));
20729 /* Based on code from Ariel Faigon. */
20739 return tm.tm_mon == 2 && tm.tm_mday == 31;
20743 bigtime_test (int j)
20747 tm.tm_year = tm.tm_mon = tm.tm_mday = tm.tm_hour = tm.tm_min = tm.tm_sec = j;
20748 now = mktime (&tm);
20749 if (now != (time_t) -1)
20751 struct tm *lt = localtime (&now);
20753 && lt->tm_year == tm.tm_year
20754 && lt->tm_mon == tm.tm_mon
20755 && lt->tm_mday == tm.tm_mday
20756 && lt->tm_hour == tm.tm_hour
20757 && lt->tm_min == tm.tm_min
20758 && lt->tm_sec == tm.tm_sec
20759 && lt->tm_yday == tm.tm_yday
20760 && lt->tm_wday == tm.tm_wday
20761 && ((lt->tm_isdst < 0 ? -1 : 0 < lt->tm_isdst)
20762 == (tm.tm_isdst < 0 ? -1 : 0 < tm.tm_isdst))))
20771 /* The correct answer for 2050-02-01 00:00:00 in Pacific time,
20772 ignoring leap seconds. */
20773 unsigned long int answer = 2527315200UL;
20777 tm.tm_year = 2050 - 1900;
20780 tm.tm_hour = tm.tm_min = tm.tm_sec = 0;
20783 /* Use the portable POSIX.1 specification "TZ=PST8PDT,M4.1.0,M10.5.0"
20784 instead of "TZ=America/Vancouver" in order to detect the bug even
20785 on systems that don't support the Olson extension, or don't have the
20786 full zoneinfo tables installed. */
20787 putenv ("TZ=PST8PDT,M4.1.0,M10.5.0");
20791 /* Check that the result is either a failure, or close enough
20792 to the correct answer that we can assume the discrepancy is
20793 due to leap seconds. */
20794 return (t == (time_t) -1
20795 || (0 < t && answer - 120 <= t && t <= answer + 120));
20804 int time_t_signed_magnitude = (time_t) ~ (time_t) 0 < (time_t) -1;
20805 int time_t_signed = ! ((time_t) 0 < (time_t) -1);
20807 /* This test makes some buggy mktime implementations loop.
20808 Give up after 60 seconds; a mktime slower than that
20809 isn't worth using anyway. */
20812 time_t_max = (! time_t_signed
20814 : ((((time_t) 1 << (sizeof (time_t) * CHAR_BIT - 2)) - 1)
20816 time_t_min = (! time_t_signed
20818 : time_t_signed_magnitude
20822 delta = time_t_max / 997; /* a suitable prime number */
20823 for (i = 0; i < N_STRINGS; i++)
20826 putenv (tz_strings[i]);
20828 for (t = 0; t <= time_t_max - delta; t += delta)
20829 if (! mktime_test (t))
20831 if (! (mktime_test ((time_t) 1)
20832 && mktime_test ((time_t) (60 * 60))
20833 && mktime_test ((time_t) (60 * 60 * 24))))
20836 for (j = 1; ; j <<= 1)
20837 if (! bigtime_test (j))
20839 else if (INT_MAX / 2 < j)
20841 if (! bigtime_test (INT_MAX))
20844 if (! irix_6_4_bug ())
20846 if (! spring_forward_gap ())
20848 if (! year_2050_test ())
20853 if ac_fn_c_try_run
"$LINENO"; then :
20854 gl_cv_func_working_mktime
=yes
20856 gl_cv_func_working_mktime
=no
20858 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
20859 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
20864 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_working_mktime" >&5
20865 $as_echo "$gl_cv_func_working_mktime" >&6; }
20867 if test $gl_cv_func_working_mktime = no
; then
20873 if test $REPLACE_MKTIME = 1; then
20882 gl_LIBOBJS
="$gl_LIBOBJS mktime.$ac_objext"
20902 LIB_PTHREAD_SIGMASK
=
20905 if test $ac_cv_func_pthread_sigmask = yes; then
20908 HAVE_PTHREAD_SIGMASK
=0
20909 REPLACE_PTHREAD_SIGMASK
=1
20915 if test $HAVE_PTHREAD_SIGMASK = 1; then
20918 if test -z "$LIB_PTHREAD_SIGMASK"; then
20919 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether pthread_sigmask works without -lpthread" >&5
20920 $as_echo_n "checking whether pthread_sigmask works without -lpthread... " >&6; }
20921 if test "${gl_cv_func_pthread_sigmask_in_libc_works+set}" = set; then :
20922 $as_echo_n "(cached) " >&6
20925 if test "$cross_compiling" = yes; then :
20928 freebsd
* | hpux
* | solaris | solaris2.
[2-9]*)
20929 gl_cv_func_pthread_sigmask_in_libc_works
="guessing no";;
20931 gl_cv_func_pthread_sigmask_in_libc_works
="guessing yes";;
20935 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
20936 /* end confdefs.h. */
20938 #include <pthread.h>
20939 #include <signal.h>
20940 #include <stddef.h>
20944 sigemptyset (&set);
20945 return pthread_sigmask (1729, &set, NULL) != 0;
20948 if ac_fn_c_try_run
"$LINENO"; then :
20949 gl_cv_func_pthread_sigmask_in_libc_works
=no
20951 gl_cv_func_pthread_sigmask_in_libc_works
=yes
20953 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
20954 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
20959 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_pthread_sigmask_in_libc_works" >&5
20960 $as_echo "$gl_cv_func_pthread_sigmask_in_libc_works" >&6; }
20961 case "$gl_cv_func_pthread_sigmask_in_libc_works" in
20963 REPLACE_PTHREAD_SIGMASK
=1
20965 $as_echo "#define PTHREAD_SIGMASK_INEFFECTIVE 1" >>confdefs.h
20971 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether pthread_sigmask returns error numbers" >&5
20972 $as_echo_n "checking whether pthread_sigmask returns error numbers... " >&6; }
20973 if test "${gl_cv_func_pthread_sigmask_return_works+set}" = set; then :
20974 $as_echo_n "(cached) " >&6
20977 gl_save_LIBS
="$LIBS"
20978 LIBS
="$LIBS $LIB_PTHREAD_SIGMASK"
20979 if test "$cross_compiling" = yes; then :
20982 gl_cv_func_pthread_sigmask_return_works
="guessing no";;
20984 gl_cv_func_pthread_sigmask_return_works
="guessing yes";;
20988 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
20989 /* end confdefs.h. */
20991 #include <pthread.h>
20992 #include <signal.h>
20993 #include <stddef.h>
20997 sigemptyset (&set);
20998 if (pthread_sigmask (1729, &set, NULL) == -1)
21003 if ac_fn_c_try_run
"$LINENO"; then :
21004 gl_cv_func_pthread_sigmask_return_works
=yes
21006 gl_cv_func_pthread_sigmask_return_works
=no
21008 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
21009 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
21012 LIBS
="$gl_save_LIBS"
21015 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_pthread_sigmask_return_works" >&5
21016 $as_echo "$gl_cv_func_pthread_sigmask_return_works" >&6; }
21017 case "$gl_cv_func_pthread_sigmask_return_works" in
21019 REPLACE_PTHREAD_SIGMASK
=1
21021 $as_echo "#define PTHREAD_SIGMASK_FAILS_WITH_ERRNO 1" >>confdefs.h
21026 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether pthread_sigmask unblocks signals correctly" >&5
21027 $as_echo_n "checking whether pthread_sigmask unblocks signals correctly... " >&6; }
21028 if test "${gl_cv_func_pthread_sigmask_unblock_works+set}" = set; then :
21029 $as_echo_n "(cached) " >&6
21034 gl_cv_func_pthread_sigmask_unblock_works
="guessing no";;
21036 gl_cv_func_pthread_sigmask_unblock_works
="guessing yes";;
21038 gl_save_LIBS
="$LIBS"
21039 LIBS
="$LIBS $LIBMULTITHREAD"
21040 if test "$cross_compiling" = yes; then :
21043 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
21044 /* end confdefs.h. */
21046 #include <pthread.h>
21047 #include <signal.h>
21049 #include <stdlib.h>
21050 #include <unistd.h>
21051 static volatile int sigint_occurred;
21053 sigint_handler (int sig)
21060 int pid = getpid ();
21062 signal (SIGINT, sigint_handler);
21063 sigemptyset (&set);
21064 sigaddset (&set, SIGINT);
21065 if (!(pthread_sigmask (SIG_BLOCK, &set, NULL) == 0))
21067 sprintf (command, "sh -c 'sleep 1; kill -%d %d' &", SIGINT, pid);
21068 if (!(system (command) == 0))
21071 if (!(sigint_occurred == 0))
21073 if (!(pthread_sigmask (SIG_UNBLOCK, &set, NULL) == 0))
21075 if (!(sigint_occurred == 1)) /* This fails on IRIX. */
21080 if ac_fn_c_try_run
"$LINENO"; then :
21083 gl_cv_func_pthread_sigmask_unblock_works
=no
21085 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
21086 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
21089 LIBS
="$gl_save_LIBS"
21092 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_pthread_sigmask_unblock_works" >&5
21093 $as_echo "$gl_cv_func_pthread_sigmask_unblock_works" >&6; }
21094 case "$gl_cv_func_pthread_sigmask_unblock_works" in
21096 REPLACE_PTHREAD_SIGMASK
=1
21098 $as_echo "#define PTHREAD_SIGMASK_UNBLOCK_BUG 1" >>confdefs.h
21104 if test $HAVE_PTHREAD_SIGMASK = 0 ||
test $REPLACE_PTHREAD_SIGMASK = 1; then
21113 gl_LIBOBJS
="$gl_LIBOBJS pthread_sigmask.$ac_objext"
21116 if test $HAVE_PTHREAD_SIGMASK = 1; then
21118 $as_echo "#define HAVE_PTHREAD_SIGMASK 1" >>confdefs.h
21128 GNULIB_PTHREAD_SIGMASK
=1
21137 if test $ac_cv_func_readlink = no
; then
21140 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether readlink signature is correct" >&5
21141 $as_echo_n "checking whether readlink signature is correct... " >&6; }
21142 if test "${gl_cv_decl_readlink_works+set}" = set; then :
21143 $as_echo_n "(cached) " >&6
21145 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
21146 /* end confdefs.h. */
21147 #include <unistd.h>
21148 /* Cause compilation failure if original declaration has wrong type. */
21149 ssize_t readlink (const char *, char *, size_t);
21158 if ac_fn_c_try_compile
"$LINENO"; then :
21159 gl_cv_decl_readlink_works
=yes
21161 gl_cv_decl_readlink_works
=no
21163 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
21165 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_decl_readlink_works" >&5
21166 $as_echo "$gl_cv_decl_readlink_works" >&6; }
21167 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether readlink handles trailing slash correctly" >&5
21168 $as_echo_n "checking whether readlink handles trailing slash correctly... " >&6; }
21169 if test "${gl_cv_func_readlink_works+set}" = set; then :
21170 $as_echo_n "(cached) " >&6
21172 # We have readlink, so assume ln -s works.
21173 ln -s conftest.no-such conftest.link
21174 ln -s conftest.link conftest.lnk2
21175 if test "$cross_compiling" = yes; then :
21176 gl_cv_func_readlink_works
="guessing no"
21178 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
21179 /* end confdefs.h. */
21180 #include <unistd.h>
21186 return readlink ("conftest.lnk2/", buf, sizeof buf) != -1;
21191 if ac_fn_c_try_run
"$LINENO"; then :
21192 gl_cv_func_readlink_works
=yes
21194 gl_cv_func_readlink_works
=no
21196 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
21197 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
21200 rm -f conftest.link conftest.lnk2
21202 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_readlink_works" >&5
21203 $as_echo "$gl_cv_func_readlink_works" >&6; }
21204 if test "$gl_cv_func_readlink_works" != yes; then
21206 $as_echo "#define READLINK_TRAILING_SLASH_BUG 1" >>confdefs.h
21209 elif test "$gl_cv_decl_readlink_works" != yes; then
21214 if test $HAVE_READLINK = 0 ||
test $REPLACE_READLINK = 1; then
21223 gl_LIBOBJS
="$gl_LIBOBJS readlink.$ac_objext"
21251 if test $gl_cv_have_include_next = yes; then
21252 gl_cv_next_signal_h
='<'signal.h
'>'
21254 { $as_echo "$as_me:${as_lineno-$LINENO}: checking absolute name of <signal.h>" >&5
21255 $as_echo_n "checking absolute name of <signal.h>... " >&6; }
21256 if test "${gl_cv_next_signal_h+set}" = set; then :
21257 $as_echo_n "(cached) " >&6
21260 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
21261 /* end confdefs.h. */
21262 #include <signal.h>
21266 aix
*) gl_absname_cpp
="$ac_cpp -C" ;;
21267 *) gl_absname_cpp
="$ac_cpp" ;;
21272 gl_dirsep_regex
='[/\\]'
21275 gl_dirsep_regex
='/'
21279 gl_absolute_header_sed
='\|'"${gl_dirsep_regex}"'signal.h|{
21280 s|.*"\(.*'"${gl_dirsep_regex}"'signal.h\)".*|\1|
21285 gl_cv_next_signal_h
='"'`(eval "$gl_absname_cpp conftest.$ac_ext") 2>&5 |
21286 sed -n "$gl_absolute_header_sed"`'"'
21290 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_next_signal_h" >&5
21291 $as_echo "$gl_cv_next_signal_h" >&6; }
21293 NEXT_SIGNAL_H
=$gl_cv_next_signal_h
21295 if test $gl_cv_have_include_next = yes ||
test $gl_cv_have_include_next = buggy
; then
21296 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include_next'
21297 gl_next_as_first_directive
='<'signal.h
'>'
21299 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include'
21300 gl_next_as_first_directive
=$gl_cv_next_signal_h
21302 NEXT_AS_FIRST_DIRECTIVE_SIGNAL_H
=$gl_next_as_first_directive
21308 # AIX declares sig_atomic_t to already include volatile, and C89 compilers
21309 # then choke on 'volatile sig_atomic_t'. C99 requires that it compile.
21310 ac_fn_c_check_type
"$LINENO" "volatile sig_atomic_t" "ac_cv_type_volatile_sig_atomic_t" "
21311 #include <signal.h>
21314 if test "x$ac_cv_type_volatile_sig_atomic_t" = x
""yes; then :
21317 HAVE_TYPE_VOLATILE_SIG_ATOMIC_T
=0
21326 ac_fn_c_check_type
"$LINENO" "sighandler_t" "ac_cv_type_sighandler_t" "
21327 #include <signal.h>
21330 if test "x$ac_cv_type_sighandler_t" = x
""yes; then :
21333 HAVE_SIGHANDLER_T
=0
21339 ac_fn_c_check_type
"$LINENO" "socklen_t" "ac_cv_type_socklen_t" "
21340 /* <sys/types.h> is not needed according to POSIX, but the
21341 <sys/socket.h> in i386-unknown-freebsd4.10 and
21342 powerpc-apple-darwin5.5 required it. */
21343 #include <sys/types.h>
21344 #if HAVE_SYS_SOCKET_H
21345 # include <sys/socket.h>
21346 #elif HAVE_WS2TCPIP_H
21347 # include <ws2tcpip.h>
21351 if test "x$ac_cv_type_socklen_t" = x
""yes; then :
21354 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for socklen_t equivalent" >&5
21355 $as_echo_n "checking for socklen_t equivalent... " >&6; }
21356 if test "${gl_cv_socklen_t_equiv+set}" = set; then :
21357 $as_echo_n "(cached) " >&6
21359 # Systems have either "struct sockaddr *" or
21360 # "void *" as the second argument to getpeername
21361 gl_cv_socklen_t_equiv
=
21362 for arg2
in "struct sockaddr" void
; do
21363 for t
in int size_t
"unsigned int" "long int" "unsigned long int"; do
21364 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
21365 /* end confdefs.h. */
21366 #include <sys/types.h>
21367 #include <sys/socket.h>
21369 int getpeername (int, $arg2 *, $t *);
21374 getpeername (0, 0, &len);
21379 if ac_fn_c_try_compile
"$LINENO"; then :
21380 gl_cv_socklen_t_equiv
="$t"
21382 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
21383 test "$gl_cv_socklen_t_equiv" != "" && break
21385 test "$gl_cv_socklen_t_equiv" != "" && break
21390 if test "$gl_cv_socklen_t_equiv" = ""; then
21391 as_fn_error
"Cannot find a type to use in place of socklen_t" "$LINENO" 5
21393 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_socklen_t_equiv" >&5
21394 $as_echo "$gl_cv_socklen_t_equiv" >&6; }
21396 cat >>confdefs.h
<<_ACEOF
21397 #define socklen_t $gl_cv_socklen_t_equiv
21403 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ssize_t" >&5
21404 $as_echo_n "checking for ssize_t... " >&6; }
21405 if test "${gt_cv_ssize_t+set}" = set; then :
21406 $as_echo_n "(cached) " >&6
21408 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
21409 /* end confdefs.h. */
21410 #include <sys/types.h>
21414 int x = sizeof (ssize_t *) + sizeof (ssize_t);
21420 if ac_fn_c_try_compile
"$LINENO"; then :
21425 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
21427 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_ssize_t" >&5
21428 $as_echo "$gt_cv_ssize_t" >&6; }
21429 if test $gt_cv_ssize_t = no
; then
21431 $as_echo "#define ssize_t int" >>confdefs.h
21437 NEXT_STDARG_H
='<stdarg.h>'
21438 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for va_copy" >&5
21439 $as_echo_n "checking for va_copy... " >&6; }
21440 if test "${gl_cv_func_va_copy+set}" = set; then :
21441 $as_echo_n "(cached) " >&6
21444 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
21445 /* end confdefs.h. */
21446 #include <stdarg.h>
21452 void (*func) (va_list, va_list) = va_copy;
21459 if ac_fn_c_try_compile
"$LINENO"; then :
21460 gl_cv_func_va_copy
=yes
21462 gl_cv_func_va_copy
=no
21464 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
21467 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_va_copy" >&5
21468 $as_echo "$gl_cv_func_va_copy" >&6; }
21469 if test $gl_cv_func_va_copy = no
; then
21470 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
21471 /* end confdefs.h. */
21472 #if defined _AIX && !defined __GNUC__
21477 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
21478 $EGREP "vaccine" >/dev
/null
2>&1; then :
21485 if test $gl_aixcc = yes; then
21495 if test $gl_cv_have_include_next = yes; then
21496 gl_cv_next_stdarg_h
='<'stdarg.h
'>'
21498 { $as_echo "$as_me:${as_lineno-$LINENO}: checking absolute name of <stdarg.h>" >&5
21499 $as_echo_n "checking absolute name of <stdarg.h>... " >&6; }
21500 if test "${gl_cv_next_stdarg_h+set}" = set; then :
21501 $as_echo_n "(cached) " >&6
21504 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
21505 /* end confdefs.h. */
21506 #include <stdarg.h>
21510 aix
*) gl_absname_cpp
="$ac_cpp -C" ;;
21511 *) gl_absname_cpp
="$ac_cpp" ;;
21516 gl_dirsep_regex
='[/\\]'
21519 gl_dirsep_regex
='/'
21523 gl_absolute_header_sed
='\|'"${gl_dirsep_regex}"'stdarg.h|{
21524 s|.*"\(.*'"${gl_dirsep_regex}"'stdarg.h\)".*|\1|
21529 gl_cv_next_stdarg_h
='"'`(eval "$gl_absname_cpp conftest.$ac_ext") 2>&5 |
21530 sed -n "$gl_absolute_header_sed"`'"'
21534 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_next_stdarg_h" >&5
21535 $as_echo "$gl_cv_next_stdarg_h" >&6; }
21537 NEXT_STDARG_H
=$gl_cv_next_stdarg_h
21539 if test $gl_cv_have_include_next = yes ||
test $gl_cv_have_include_next = buggy
; then
21540 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include_next'
21541 gl_next_as_first_directive
='<'stdarg.h
'>'
21543 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include'
21544 gl_next_as_first_directive
=$gl_cv_next_stdarg_h
21546 NEXT_AS_FIRST_DIRECTIVE_STDARG_H
=$gl_next_as_first_directive
21551 if test "$gl_cv_next_stdarg_h" = '""'; then
21552 gl_cv_next_stdarg_h
='"///usr/include/stdarg.h"'
21553 NEXT_STDARG_H
="$gl_cv_next_stdarg_h"
21557 saved_as_echo_n
="$as_echo_n"
21559 if test "${gl_cv_func___va_copy+set}" = set; then :
21560 $as_echo_n "(cached) " >&6
21563 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
21564 /* end confdefs.h. */
21565 #include <stdarg.h>
21578 if ac_fn_c_try_compile
"$LINENO"; then :
21579 gl_cv_func___va_copy
=yes
21581 gl_cv_func___va_copy
=no
21583 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
21586 as_echo_n
="$saved_as_echo_n"
21588 if test $gl_cv_func___va_copy = yes; then
21590 $as_echo "#define va_copy __va_copy" >>confdefs.h
21595 $as_echo "#define va_copy gl_va_copy" >>confdefs.h
21601 if test -n "$STDARG_H"; then
21602 GL_GENERATE_STDARG_H_TRUE
=
21603 GL_GENERATE_STDARG_H_FALSE
='#'
21605 GL_GENERATE_STDARG_H_TRUE
='#'
21606 GL_GENERATE_STDARG_H_FALSE
=
21614 # Define two additional variables used in the Makefile substitution.
21616 if test "$ac_cv_header_stdbool_h" = yes; then
21619 STDBOOL_H
='stdbool.h'
21622 if test -n "$STDBOOL_H"; then
21623 GL_GENERATE_STDBOOL_H_TRUE
=
21624 GL_GENERATE_STDBOOL_H_FALSE
='#'
21626 GL_GENERATE_STDBOOL_H_TRUE
='#'
21627 GL_GENERATE_STDBOOL_H_FALSE
=
21631 if test "$ac_cv_type__Bool" = yes; then
21642 if test $gt_cv_c_wchar_t = no
; then
21646 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether NULL can be used in arbitrary expressions" >&5
21647 $as_echo_n "checking whether NULL can be used in arbitrary expressions... " >&6; }
21648 if test "${gl_cv_decl_null_works+set}" = set; then :
21649 $as_echo_n "(cached) " >&6
21651 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
21652 /* end confdefs.h. */
21653 #include <stddef.h>
21654 int test[2 * (sizeof NULL == sizeof (void *)) -1];
21664 if ac_fn_c_try_compile
"$LINENO"; then :
21665 gl_cv_decl_null_works
=yes
21667 gl_cv_decl_null_works
=no
21669 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
21671 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_decl_null_works" >&5
21672 $as_echo "$gl_cv_decl_null_works" >&6; }
21673 if test $gl_cv_decl_null_works = no
; then
21678 if test -n "$STDDEF_H"; then
21679 GL_GENERATE_STDDEF_H_TRUE
=
21680 GL_GENERATE_STDDEF_H_FALSE
='#'
21682 GL_GENERATE_STDDEF_H_TRUE
='#'
21683 GL_GENERATE_STDDEF_H_FALSE
=
21686 if test -n "$STDDEF_H"; then
21695 if test $gl_cv_have_include_next = yes; then
21696 gl_cv_next_stddef_h
='<'stddef.h
'>'
21698 { $as_echo "$as_me:${as_lineno-$LINENO}: checking absolute name of <stddef.h>" >&5
21699 $as_echo_n "checking absolute name of <stddef.h>... " >&6; }
21700 if test "${gl_cv_next_stddef_h+set}" = set; then :
21701 $as_echo_n "(cached) " >&6
21704 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
21705 /* end confdefs.h. */
21706 #include <stddef.h>
21710 aix
*) gl_absname_cpp
="$ac_cpp -C" ;;
21711 *) gl_absname_cpp
="$ac_cpp" ;;
21716 gl_dirsep_regex
='[/\\]'
21719 gl_dirsep_regex
='/'
21723 gl_absolute_header_sed
='\|'"${gl_dirsep_regex}"'stddef.h|{
21724 s|.*"\(.*'"${gl_dirsep_regex}"'stddef.h\)".*|\1|
21729 gl_cv_next_stddef_h
='"'`(eval "$gl_absname_cpp conftest.$ac_ext") 2>&5 |
21730 sed -n "$gl_absolute_header_sed"`'"'
21734 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_next_stddef_h" >&5
21735 $as_echo "$gl_cv_next_stddef_h" >&6; }
21737 NEXT_STDDEF_H
=$gl_cv_next_stddef_h
21739 if test $gl_cv_have_include_next = yes ||
test $gl_cv_have_include_next = buggy
; then
21740 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include_next'
21741 gl_next_as_first_directive
='<'stddef.h
'>'
21743 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include'
21744 gl_next_as_first_directive
=$gl_cv_next_stddef_h
21746 NEXT_AS_FIRST_DIRECTIVE_STDDEF_H
=$gl_next_as_first_directive
21765 if test $gl_cv_have_include_next = yes; then
21766 gl_cv_next_stdio_h
='<'stdio.h
'>'
21768 { $as_echo "$as_me:${as_lineno-$LINENO}: checking absolute name of <stdio.h>" >&5
21769 $as_echo_n "checking absolute name of <stdio.h>... " >&6; }
21770 if test "${gl_cv_next_stdio_h+set}" = set; then :
21771 $as_echo_n "(cached) " >&6
21774 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
21775 /* end confdefs.h. */
21780 aix
*) gl_absname_cpp
="$ac_cpp -C" ;;
21781 *) gl_absname_cpp
="$ac_cpp" ;;
21786 gl_dirsep_regex
='[/\\]'
21789 gl_dirsep_regex
='/'
21793 gl_absolute_header_sed
='\|'"${gl_dirsep_regex}"'stdio.h|{
21794 s|.*"\(.*'"${gl_dirsep_regex}"'stdio.h\)".*|\1|
21799 gl_cv_next_stdio_h
='"'`(eval "$gl_absname_cpp conftest.$ac_ext") 2>&5 |
21800 sed -n "$gl_absolute_header_sed"`'"'
21804 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_next_stdio_h" >&5
21805 $as_echo "$gl_cv_next_stdio_h" >&6; }
21807 NEXT_STDIO_H
=$gl_cv_next_stdio_h
21809 if test $gl_cv_have_include_next = yes ||
test $gl_cv_have_include_next = buggy
; then
21810 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include_next'
21811 gl_next_as_first_directive
='<'stdio.h
'>'
21813 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include'
21814 gl_next_as_first_directive
=$gl_cv_next_stdio_h
21816 NEXT_AS_FIRST_DIRECTIVE_STDIO_H
=$gl_next_as_first_directive
21857 if test $gl_cv_have_include_next = yes; then
21858 gl_cv_next_stdlib_h
='<'stdlib.h
'>'
21860 { $as_echo "$as_me:${as_lineno-$LINENO}: checking absolute name of <stdlib.h>" >&5
21861 $as_echo_n "checking absolute name of <stdlib.h>... " >&6; }
21862 if test "${gl_cv_next_stdlib_h+set}" = set; then :
21863 $as_echo_n "(cached) " >&6
21866 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
21867 /* end confdefs.h. */
21868 #include <stdlib.h>
21872 aix
*) gl_absname_cpp
="$ac_cpp -C" ;;
21873 *) gl_absname_cpp
="$ac_cpp" ;;
21878 gl_dirsep_regex
='[/\\]'
21881 gl_dirsep_regex
='/'
21885 gl_absolute_header_sed
='\|'"${gl_dirsep_regex}"'stdlib.h|{
21886 s|.*"\(.*'"${gl_dirsep_regex}"'stdlib.h\)".*|\1|
21891 gl_cv_next_stdlib_h
='"'`(eval "$gl_absname_cpp conftest.$ac_ext") 2>&5 |
21892 sed -n "$gl_absolute_header_sed"`'"'
21896 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_next_stdlib_h" >&5
21897 $as_echo "$gl_cv_next_stdlib_h" >&6; }
21899 NEXT_STDLIB_H
=$gl_cv_next_stdlib_h
21901 if test $gl_cv_have_include_next = yes ||
test $gl_cv_have_include_next = buggy
; then
21902 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include_next'
21903 gl_next_as_first_directive
='<'stdlib.h
'>'
21905 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include'
21906 gl_next_as_first_directive
=$gl_cv_next_stdlib_h
21908 NEXT_AS_FIRST_DIRECTIVE_STDLIB_H
=$gl_next_as_first_directive
21918 # This defines (or not) HAVE_TZNAME and HAVE_TM_ZONE.
21926 $as_echo "#define my_strftime nstrftime" >>confdefs.h
21935 if test "$ac_cv_have_decl_strtoimax" != yes; then
21936 HAVE_DECL_STRTOIMAX
=0
21939 if test $ac_cv_func_strtoimax = no
; then
21948 gl_LIBOBJS
="$gl_LIBOBJS strtoimax.$ac_objext"
21951 ac_fn_c_check_decl
"$LINENO" "strtoll" "ac_cv_have_decl_strtoll" "$ac_includes_default"
21952 if test "x$ac_cv_have_decl_strtoll" = x
""yes; then :
21958 cat >>confdefs.h
<<_ACEOF
21959 #define HAVE_DECL_STRTOLL $ac_have_decl
21980 if test "$ac_cv_have_decl_strtoumax" != yes; then
21981 HAVE_DECL_STRTOUMAX
=0
21984 if test $ac_cv_func_strtoumax = no
; then
21993 gl_LIBOBJS
="$gl_LIBOBJS strtoumax.$ac_objext"
21996 ac_fn_c_check_decl
"$LINENO" "strtoull" "ac_cv_have_decl_strtoull" "$ac_includes_default"
21997 if test "x$ac_cv_have_decl_strtoull" = x
""yes; then :
22003 cat >>confdefs.h
<<_ACEOF
22004 #define HAVE_DECL_STRTOULL $ac_have_decl
22023 if test $ac_cv_func_symlink = no
; then
22026 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether symlink handles trailing slash correctly" >&5
22027 $as_echo_n "checking whether symlink handles trailing slash correctly... " >&6; }
22028 if test "${gl_cv_func_symlink_works+set}" = set; then :
22029 $as_echo_n "(cached) " >&6
22031 if test "$cross_compiling" = yes; then :
22032 gl_cv_func_symlink_works
="guessing no"
22034 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
22035 /* end confdefs.h. */
22036 #include <unistd.h>
22042 if (!symlink ("a", "conftest.link/"))
22044 if (symlink ("conftest.f", "conftest.lnk2"))
22046 else if (!symlink ("a", "conftest.lnk2/"))
22054 if ac_fn_c_try_run
"$LINENO"; then :
22055 gl_cv_func_symlink_works
=yes
22057 gl_cv_func_symlink_works
=no
22059 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
22060 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
22063 rm -f conftest.f conftest.link conftest.lnk2
22065 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_symlink_works" >&5
22066 $as_echo "$gl_cv_func_symlink_works" >&6; }
22067 if test "$gl_cv_func_symlink_works" != yes; then
22072 if test $HAVE_SYMLINK = 0 ||
test $REPLACE_SYMLINK = 1; then
22081 gl_LIBOBJS
="$gl_LIBOBJS symlink.$ac_objext"
22111 if test $gl_cv_have_include_next = yes; then
22112 gl_cv_next_sys_stat_h
='<'sys
/stat.h
'>'
22114 { $as_echo "$as_me:${as_lineno-$LINENO}: checking absolute name of <sys/stat.h>" >&5
22115 $as_echo_n "checking absolute name of <sys/stat.h>... " >&6; }
22116 if test "${gl_cv_next_sys_stat_h+set}" = set; then :
22117 $as_echo_n "(cached) " >&6
22120 if test $ac_cv_header_sys_stat_h = yes; then
22123 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
22124 /* end confdefs.h. */
22125 #include <sys/stat.h>
22129 aix
*) gl_absname_cpp
="$ac_cpp -C" ;;
22130 *) gl_absname_cpp
="$ac_cpp" ;;
22135 gl_dirsep_regex
='[/\\]'
22138 gl_dirsep_regex
='/'
22142 gl_absolute_header_sed
='\|'"${gl_dirsep_regex}"'sys/stat.h|{
22143 s|.*"\(.*'"${gl_dirsep_regex}"'sys/stat.h\)".*|\1|
22148 gl_cv_next_sys_stat_h
='"'`(eval "$gl_absname_cpp conftest.$ac_ext") 2>&5 |
22149 sed -n "$gl_absolute_header_sed"`'"'
22151 gl_cv_next_sys_stat_h
='<'sys
/stat.h
'>'
22156 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_next_sys_stat_h" >&5
22157 $as_echo "$gl_cv_next_sys_stat_h" >&6; }
22159 NEXT_SYS_STAT_H
=$gl_cv_next_sys_stat_h
22161 if test $gl_cv_have_include_next = yes ||
test $gl_cv_have_include_next = buggy
; then
22162 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include_next'
22163 gl_next_as_first_directive
='<'sys
/stat.h
'>'
22165 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include'
22166 gl_next_as_first_directive
=$gl_cv_next_sys_stat_h
22168 NEXT_AS_FIRST_DIRECTIVE_SYS_STAT_H
=$gl_next_as_first_directive
22176 ac_fn_c_check_type
"$LINENO" "nlink_t" "ac_cv_type_nlink_t" "#include <sys/types.h>
22177 #include <sys/stat.h>
22179 if test "x$ac_cv_type_nlink_t" = x
""yes; then :
22183 $as_echo "#define nlink_t int" >>confdefs.h
22201 if test $ac_cv_have_decl_localtime_r = no
; then
22202 HAVE_DECL_LOCALTIME_R
=0
22206 if test $ac_cv_func_localtime_r = yes; then
22208 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether localtime_r is compatible with its POSIX signature" >&5
22209 $as_echo_n "checking whether localtime_r is compatible with its POSIX signature... " >&6; }
22210 if test "${gl_cv_time_r_posix+set}" = set; then :
22211 $as_echo_n "(cached) " >&6
22213 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
22214 /* end confdefs.h. */
22219 /* We don't need to append 'restrict's to the argument types,
22220 even though the POSIX signature has the 'restrict's,
22221 since C99 says they can't affect type compatibility. */
22222 struct tm * (*ptr) (time_t const *, struct tm *) = localtime_r;
22224 /* Check the return type is a pointer.
22225 On HP-UX 10 it is 'int'. */
22226 *localtime_r (0, 0);
22232 if ac_fn_c_try_compile
"$LINENO"; then :
22233 gl_cv_time_r_posix
=yes
22235 gl_cv_time_r_posix
=no
22237 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
22240 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_time_r_posix" >&5
22241 $as_echo "$gl_cv_time_r_posix" >&6; }
22242 if test $gl_cv_time_r_posix = yes; then
22243 REPLACE_LOCALTIME_R
=0
22245 REPLACE_LOCALTIME_R
=1
22251 if test $HAVE_LOCALTIME_R = 0 ||
test $REPLACE_LOCALTIME_R = 1; then
22260 gl_LIBOBJS
="$gl_LIBOBJS time_r.$ac_objext"
22291 if test $gl_cv_have_include_next = yes; then
22292 gl_cv_next_unistd_h
='<'unistd.h
'>'
22294 { $as_echo "$as_me:${as_lineno-$LINENO}: checking absolute name of <unistd.h>" >&5
22295 $as_echo_n "checking absolute name of <unistd.h>... " >&6; }
22296 if test "${gl_cv_next_unistd_h+set}" = set; then :
22297 $as_echo_n "(cached) " >&6
22300 if test $ac_cv_header_unistd_h = yes; then
22303 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
22304 /* end confdefs.h. */
22305 #include <unistd.h>
22309 aix
*) gl_absname_cpp
="$ac_cpp -C" ;;
22310 *) gl_absname_cpp
="$ac_cpp" ;;
22315 gl_dirsep_regex
='[/\\]'
22318 gl_dirsep_regex
='/'
22322 gl_absolute_header_sed
='\|'"${gl_dirsep_regex}"'unistd.h|{
22323 s|.*"\(.*'"${gl_dirsep_regex}"'unistd.h\)".*|\1|
22328 gl_cv_next_unistd_h
='"'`(eval "$gl_absname_cpp conftest.$ac_ext") 2>&5 |
22329 sed -n "$gl_absolute_header_sed"`'"'
22331 gl_cv_next_unistd_h
='<'unistd.h
'>'
22336 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_next_unistd_h" >&5
22337 $as_echo "$gl_cv_next_unistd_h" >&6; }
22339 NEXT_UNISTD_H
=$gl_cv_next_unistd_h
22341 if test $gl_cv_have_include_next = yes ||
test $gl_cv_have_include_next = buggy
; then
22342 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include_next'
22343 gl_next_as_first_directive
='<'unistd.h
'>'
22345 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include'
22346 gl_next_as_first_directive
=$gl_cv_next_unistd_h
22348 NEXT_AS_FIRST_DIRECTIVE_UNISTD_H
=$gl_next_as_first_directive
22353 if test $ac_cv_header_unistd_h = yes; then
22365 gl_gnulib_enabled_dosname
=false
22366 gl_gnulib_enabled_be453cec5eecf5731a274f2de7f2db36
=false
22367 gl_gnulib_enabled_pathmax
=false
22368 gl_gnulib_enabled_sigprocmask
=false
22369 gl_gnulib_enabled_stat
=false
22370 gl_gnulib_enabled_strtoll
=false
22371 gl_gnulib_enabled_strtoull
=false
22372 gl_gnulib_enabled_verify
=false
22373 func_gl_gnulib_m4code_dosname
()
22375 if ! $gl_gnulib_enabled_dosname; then
22376 gl_gnulib_enabled_dosname
=true
22379 func_gl_gnulib_m4code_be453cec5eecf5731a274f2de7f2db36
()
22381 if ! $gl_gnulib_enabled_be453cec5eecf5731a274f2de7f2db36; then
22384 gl_gnulib_enabled_be453cec5eecf5731a274f2de7f2db36
=true
22387 func_gl_gnulib_m4code_pathmax
()
22389 if ! $gl_gnulib_enabled_pathmax; then
22393 gl_gnulib_enabled_pathmax
=true
22396 func_gl_gnulib_m4code_sigprocmask
()
22398 if ! $gl_gnulib_enabled_sigprocmask; then
22402 if test $gl_cv_type_sigset_t = yes; then
22403 ac_fn_c_check_func
"$LINENO" "sigprocmask" "ac_cv_func_sigprocmask"
22404 if test "x$ac_cv_func_sigprocmask" = x
""yes; then :
22405 gl_cv_func_sigprocmask
=1
22409 if test -z "$gl_cv_func_sigprocmask"; then
22410 HAVE_POSIX_SIGNALBLOCKING
=0
22413 if test $HAVE_POSIX_SIGNALBLOCKING = 0; then
22422 gl_LIBOBJS
="$gl_LIBOBJS sigprocmask.$ac_objext"
22433 GNULIB_SIGPROCMASK
=1
22439 gl_gnulib_enabled_sigprocmask
=true
22442 func_gl_gnulib_m4code_stat
()
22444 if ! $gl_gnulib_enabled_stat; then
22448 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stat handles trailing slashes on directories" >&5
22449 $as_echo_n "checking whether stat handles trailing slashes on directories... " >&6; }
22450 if test "${gl_cv_func_stat_dir_slash+set}" = set; then :
22451 $as_echo_n "(cached) " >&6
22453 if test "$cross_compiling" = yes; then :
22455 mingw
*) gl_cv_func_stat_dir_slash
="guessing no";;
22456 *) gl_cv_func_stat_dir_slash
="guessing yes";;
22459 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
22460 /* end confdefs.h. */
22461 #include <sys/stat.h>
22466 struct stat st; return stat (".", &st) != stat ("./", &st);
22471 if ac_fn_c_try_run
"$LINENO"; then :
22472 gl_cv_func_stat_dir_slash
=yes
22474 gl_cv_func_stat_dir_slash
=no
22476 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
22477 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
22481 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_stat_dir_slash" >&5
22482 $as_echo "$gl_cv_func_stat_dir_slash" >&6; }
22483 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stat handles trailing slashes on files" >&5
22484 $as_echo_n "checking whether stat handles trailing slashes on files... " >&6; }
22485 if test "${gl_cv_func_stat_file_slash+set}" = set; then :
22486 $as_echo_n "(cached) " >&6
22489 # Assume that if we have lstat, we can also check symlinks.
22490 if test $ac_cv_func_lstat = yes; then
22491 ln -s conftest.tmp conftest.lnk
22493 if test "$cross_compiling" = yes; then :
22494 gl_cv_func_stat_file_slash
="guessing no"
22496 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
22497 /* end confdefs.h. */
22498 #include <sys/stat.h>
22505 if (!stat ("conftest.tmp/", &st))
22508 if (!stat ("conftest.lnk/", &st))
22517 if ac_fn_c_try_run
"$LINENO"; then :
22518 gl_cv_func_stat_file_slash
=yes
22520 gl_cv_func_stat_file_slash
=no
22522 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
22523 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
22526 rm -f conftest.tmp conftest.lnk
22528 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_stat_file_slash" >&5
22529 $as_echo "$gl_cv_func_stat_file_slash" >&6; }
22530 case $gl_cv_func_stat_dir_slash in
22531 *no
) REPLACE_STAT
=1
22533 $as_echo "#define REPLACE_FUNC_STAT_DIR 1" >>confdefs.h
22536 case $gl_cv_func_stat_file_slash in
22537 *no
) REPLACE_STAT
=1
22539 $as_echo "#define REPLACE_FUNC_STAT_FILE 1" >>confdefs.h
22543 if test $REPLACE_STAT = 1; then
22552 gl_LIBOBJS
="$gl_LIBOBJS stat.$ac_objext"
22570 gl_gnulib_enabled_stat
=true
22571 if test $REPLACE_STAT = 1; then
22572 func_gl_gnulib_m4code_dosname
22574 if test $REPLACE_STAT = 1; then
22575 func_gl_gnulib_m4code_pathmax
22577 if test $REPLACE_STAT = 1; then
22578 func_gl_gnulib_m4code_verify
22582 func_gl_gnulib_m4code_strtoll
()
22584 if ! $gl_gnulib_enabled_strtoll; then
22588 if test "$ac_cv_type_long_long_int" = yes; then
22589 for ac_func
in strtoll
22591 ac_fn_c_check_func
"$LINENO" "strtoll" "ac_cv_func_strtoll"
22592 if test "x$ac_cv_func_strtoll" = x
""yes; then :
22593 cat >>confdefs.h
<<_ACEOF
22594 #define HAVE_STRTOLL 1
22600 if test $ac_cv_func_strtoll = no
; then
22605 if test $HAVE_STRTOLL = 0; then
22614 gl_LIBOBJS
="$gl_LIBOBJS strtoll.$ac_objext"
22631 gl_gnulib_enabled_strtoll
=true
22634 func_gl_gnulib_m4code_strtoull
()
22636 if ! $gl_gnulib_enabled_strtoull; then
22640 if test "$ac_cv_type_unsigned_long_long_int" = yes; then
22641 for ac_func
in strtoull
22643 ac_fn_c_check_func
"$LINENO" "strtoull" "ac_cv_func_strtoull"
22644 if test "x$ac_cv_func_strtoull" = x
""yes; then :
22645 cat >>confdefs.h
<<_ACEOF
22646 #define HAVE_STRTOULL 1
22652 if test $ac_cv_func_strtoull = no
; then
22657 if test $HAVE_STRTOULL = 0; then
22666 gl_LIBOBJS
="$gl_LIBOBJS strtoull.$ac_objext"
22683 gl_gnulib_enabled_strtoull
=true
22686 func_gl_gnulib_m4code_verify
()
22688 if ! $gl_gnulib_enabled_verify; then
22689 gl_gnulib_enabled_verify
=true
22692 if test $REPLACE_GETOPT = 1; then
22693 func_gl_gnulib_m4code_be453cec5eecf5731a274f2de7f2db36
22695 if test $REPLACE_LSTAT = 1; then
22696 func_gl_gnulib_m4code_dosname
22698 if test $REPLACE_LSTAT = 1; then
22699 func_gl_gnulib_m4code_stat
22701 if test $HAVE_PTHREAD_SIGMASK = 0 ||
test $REPLACE_PTHREAD_SIGMASK = 1; then
22702 func_gl_gnulib_m4code_sigprocmask
22704 if test $HAVE_READLINK = 0 ||
test $REPLACE_READLINK = 1; then
22705 func_gl_gnulib_m4code_stat
22707 if test $ac_cv_func_strtoimax = no
; then
22708 func_gl_gnulib_m4code_verify
22710 if test $ac_cv_func_strtoimax = no
&& test $ac_cv_type_long_long_int = yes; then
22711 func_gl_gnulib_m4code_strtoll
22713 if test $ac_cv_func_strtoumax = no
; then
22714 func_gl_gnulib_m4code_verify
22716 if test $ac_cv_func_strtoumax = no
&& test $ac_cv_type_unsigned_long_long_int = yes; then
22717 func_gl_gnulib_m4code_strtoull
22720 if $gl_gnulib_enabled_dosname; then
22721 gl_GNULIB_ENABLED_dosname_TRUE
=
22722 gl_GNULIB_ENABLED_dosname_FALSE
='#'
22724 gl_GNULIB_ENABLED_dosname_TRUE
='#'
22725 gl_GNULIB_ENABLED_dosname_FALSE
=
22728 if $gl_gnulib_enabled_be453cec5eecf5731a274f2de7f2db36; then
22729 gl_GNULIB_ENABLED_be453cec5eecf5731a274f2de7f2db36_TRUE
=
22730 gl_GNULIB_ENABLED_be453cec5eecf5731a274f2de7f2db36_FALSE
='#'
22732 gl_GNULIB_ENABLED_be453cec5eecf5731a274f2de7f2db36_TRUE
='#'
22733 gl_GNULIB_ENABLED_be453cec5eecf5731a274f2de7f2db36_FALSE
=
22736 if $gl_gnulib_enabled_pathmax; then
22737 gl_GNULIB_ENABLED_pathmax_TRUE
=
22738 gl_GNULIB_ENABLED_pathmax_FALSE
='#'
22740 gl_GNULIB_ENABLED_pathmax_TRUE
='#'
22741 gl_GNULIB_ENABLED_pathmax_FALSE
=
22744 if $gl_gnulib_enabled_sigprocmask; then
22745 gl_GNULIB_ENABLED_sigprocmask_TRUE
=
22746 gl_GNULIB_ENABLED_sigprocmask_FALSE
='#'
22748 gl_GNULIB_ENABLED_sigprocmask_TRUE
='#'
22749 gl_GNULIB_ENABLED_sigprocmask_FALSE
=
22752 if $gl_gnulib_enabled_stat; then
22753 gl_GNULIB_ENABLED_stat_TRUE
=
22754 gl_GNULIB_ENABLED_stat_FALSE
='#'
22756 gl_GNULIB_ENABLED_stat_TRUE
='#'
22757 gl_GNULIB_ENABLED_stat_FALSE
=
22760 if $gl_gnulib_enabled_strtoll; then
22761 gl_GNULIB_ENABLED_strtoll_TRUE
=
22762 gl_GNULIB_ENABLED_strtoll_FALSE
='#'
22764 gl_GNULIB_ENABLED_strtoll_TRUE
='#'
22765 gl_GNULIB_ENABLED_strtoll_FALSE
=
22768 if $gl_gnulib_enabled_strtoull; then
22769 gl_GNULIB_ENABLED_strtoull_TRUE
=
22770 gl_GNULIB_ENABLED_strtoull_FALSE
='#'
22772 gl_GNULIB_ENABLED_strtoull_TRUE
='#'
22773 gl_GNULIB_ENABLED_strtoull_FALSE
=
22776 if $gl_gnulib_enabled_verify; then
22777 gl_GNULIB_ENABLED_verify_TRUE
=
22778 gl_GNULIB_ENABLED_verify_FALSE
='#'
22780 gl_GNULIB_ENABLED_verify_TRUE
='#'
22781 gl_GNULIB_ENABLED_verify_FALSE
=
22784 # End of code from modules
22805 gl_source_base
='tests'
22806 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
22808 gl_module_indicator_condition
=$gltests_WITNESS
22819 LIBGNU_LIBDEPS
="$gl_libdeps"
22821 LIBGNU_LTLIBDEPS
="$gl_ltlibdeps"
22826 aix4-2
) LD_SWITCH_SYSTEM_TEMACS
="-Wl,-bnodelcsect" ;;
22829 ## The -headerpad option tells ld (see man page) to leave room at the
22830 ## end of the header for adding load commands. Needed for dumping.
22831 ## 0x690 is the total size of 30 segment load commands (at 56
22832 ## each); under Cocoa 31 commands are required.
22833 if test "$HAVE_NS" = "yes"; then
22834 libs_nsgui
="-framework AppKit"
22835 headerpad_extra
=6C8
22838 headerpad_extra
=690
22840 LD_SWITCH_SYSTEM_TEMACS
="-fno-pie -prebind $libs_nsgui -Xlinker -headerpad -Xlinker $headerpad_extra"
22842 ## This is here because src/Makefile.in did some extra fiddling around
22843 ## with LD_SWITCH_SYSTEM. The cpp logic was:
22844 ## #ifndef LD_SWITCH_SYSTEM
22845 ## #if !defined (__GNUC__) && ((defined (BSD_SYSTEM) && !defined (COFF)))
22846 ## Since all the *bsds define LD_SWITCH_SYSTEM, this simplifies to:
22847 ## not using gcc, darwin system not on an alpha (ie darwin, since
22848 ## darwin + alpha does not occur).
22849 ## Because this was done in src/Makefile.in, the resulting part of
22850 ## LD_SWITCH_SYSTEM was not used in configure (ie, in ac_link).
22851 ## It therefore seems cleaner to put this in LD_SWITCH_SYSTEM_TEMACS,
22852 ## rather than LD_SWITCH_SYSTEM.
22853 test "x$LD_SWITCH_SYSTEM" = "x" && test "x$GCC" != "xyes" && \
22854 LD_SWITCH_SYSTEM_TEMACS
="-X $LD_SWITCH_SYSTEM_TEMACS"
22857 ## LD_SWITCH_X_SITE_AUX is a -R option saying where to find X at run-time.
22858 ## When handled by cpp, this was in LD_SWITCH_SYSTEM. However, at
22859 ## the point where configure sourced the s/*.h file, LD_SWITCH_X_SITE_AUX
22860 ## had not yet been defined and was expanded to null. Hence LD_SWITCH_SYSTEM
22861 ## had different values in configure (in ac_link) and src/Makefile.in.
22862 ## It seems clearer therefore to put this piece in LD_SWITCH_SYSTEM_TEMACS.
22863 gnu
*) LD_SWITCH_SYSTEM_TEMACS
="\$(LD_SWITCH_X_SITE_AUX_RPATH)" ;;
22865 *) LD_SWITCH_SYSTEM_TEMACS
= ;;
22868 if test "$NS_IMPL_GNUSTEP" = "yes"; then
22869 LD_SWITCH_SYSTEM_TEMACS
="${LD_SWITCH_SYSTEM_TEMACS} -L${GNUSTEP_SYSTEM_LIBRARIES} ${GNUSTEP_LOCAL_LIBRARIES} -lgnustep-gui -lgnustep-base -lobjc -lpthread"
22878 ## gnu: GNU needs its own crt0.
22879 aix4-2|cygwin|darwin|gnu|hpux
*|irix6-5|sol2
*|unixware
) ORDINARY_LINK
=yes ;;
22881 ## On post 1.3 releases of NetBSD, gcc -nostdlib also clears the
22882 ## library search parth, i.e. it won't search /usr/lib for libc and
22883 ## friends. Using -nostartfiles instead avoids this problem, and
22884 ## will also work on earlier NetBSD releases.
22885 netbsd|openbsd
) LD_FIRSTFLAG
="-nostartfiles" ;;
22887 ## macpcc: NAKAJI Hiroyuki <nakaji@tutrp.tut.ac.jp> says
22888 ## MkLinux/LinuxPPC needs this.
22889 ## ibms390x only supports opsys = gnu-linux so it can be added here.
22892 macppc|ibms390x
) LD_FIRSTFLAG
="-nostdlib" ;;
22898 if test "x$ORDINARY_LINK" = "xyes"; then
22902 $as_echo "#define ORDINARY_LINK 1" >>confdefs.h
22905 ## The system files defining neither ORDINARY_LINK nor LD_FIRSTFLAG are:
22906 ## freebsd, gnu-* not on macppc|ibms390x.
22907 elif test "x$GCC" = "xyes" && test "x$LD_FIRSTFLAG" = "x"; then
22909 ## Versions of GCC >= 2.0 put their library, libgcc.a, in obscure
22910 ## places that are difficult to figure out at make time. Fortunately,
22911 ## these same versions allow you to pass arbitrary flags on to the
22912 ## linker, so there is no reason not to use it as a linker.
22914 ## Well, it is not quite perfect. The "-nostdlib" keeps GCC from
22915 ## searching for libraries in its internal directories, so we have to
22916 ## ask GCC explicitly where to find libgcc.a (LIB_GCC below).
22917 LD_FIRSTFLAG
="-nostdlib"
22920 ## FIXME? What setting of EDIT_LDFLAGS should this have?
22921 test "$NS_IMPL_GNUSTEP" = "yes" && LD_FIRSTFLAG
="-rdynamic"
22926 ## FIXME? The logic here is not precisely the same as that above.
22927 ## There is no check here for a pre-defined LD_FIRSTFLAG.
22928 ## Should we only be setting LIB_GCC if LD ~ -nostdlib?
22930 if test "x$GCC" = "xyes" && test "x$ORDINARY_LINK" != "xyes"; then
22933 freebsd|netbsd|openbsd
) LIB_GCC
= ;;
22936 ## armin76@gentoo.org reported that the lgcc_s flag is necessary to
22937 ## build on ARM EABI under GNU/Linux. (Bug#5518)
22943 ## FIXME? s/gnu-linux.h used to define LIB_GCC as below, then
22944 ## immediately undefine it again and redefine it to empty.
22945 ## Was the C_SWITCH_X_SITE part really necessary?
22946 ## LIB_GCC=`$CC $C_SWITCH_X_SITE -print-libgcc-file-name`
22952 ## Ask GCC where to find libgcc.a.
22953 *) LIB_GCC
=`$CC -print-libgcc-file-name 2> /dev/null` ;;
22958 ## If we're using X11/GNUstep, define some consequences.
22959 if test "$HAVE_X_WINDOWS" = "yes" ||
test "$HAVE_NS" = "yes"; then
22961 $as_echo "#define HAVE_WINDOW_SYSTEM 1" >>confdefs.h
22964 $as_echo "#define HAVE_MOUSE 1" >>confdefs.h
22971 #### Report on what we decided to do.
22972 #### Report GTK as a toolkit, even if it doesn't use Xt.
22973 #### It makes printing result more understandable as using GTK sets
22974 #### toolkit_scroll_bars to yes by default.
22975 if test "${HAVE_GTK}" = "yes"; then
22980 if test -n "$machfile"; then
22981 and_machfile
=" and \`${machfile}'"
22985 Configured for \`${canonical}'.
22987 Where should the build process find the source code? ${srcdir}
22988 What operating system and machine description files should Emacs use?
22989 \`${opsysfile}'${and_machfile}
22990 What compiler should emacs be built with? ${CC} ${CFLAGS}
22991 Should Emacs use the GNU version of malloc? ${GNU_MALLOC}${GNU_MALLOC_reason}
22992 Should Emacs use a relocating allocator for buffers? ${REL_ALLOC}
22993 Should Emacs use mmap(2) for buffer allocation? $use_mmap_for_buffers
22994 What window system should Emacs use? ${window_system}
22995 What toolkit should Emacs use? ${USE_X_TOOLKIT}"
22997 if test -n "${x_includes}"; then
22998 echo " Where do we find X Windows header files? ${x_includes}"
23000 echo " Where do we find X Windows header files? Standard dirs"
23002 if test -n "${x_libraries}"; then
23003 echo " Where do we find X Windows libraries? ${x_libraries}"
23005 echo " Where do we find X Windows libraries? Standard dirs"
23008 echo " Does Emacs use -lXaw3d? ${HAVE_XAW3D}"
23009 echo " Does Emacs use -lXpm? ${HAVE_XPM}"
23010 echo " Does Emacs use -ljpeg? ${HAVE_JPEG}"
23011 echo " Does Emacs use -ltiff? ${HAVE_TIFF}"
23012 echo " Does Emacs use a gif library? ${HAVE_GIF} $LIBGIF"
23013 echo " Does Emacs use -lpng? ${HAVE_PNG}"
23014 echo " Does Emacs use -lrsvg-2? ${HAVE_RSVG}"
23015 echo " Does Emacs use imagemagick? ${HAVE_IMAGEMAGICK}"
23017 echo " Does Emacs use -lgpm? ${HAVE_GPM}"
23018 echo " Does Emacs use -ldbus? ${HAVE_DBUS}"
23019 echo " Does Emacs use -lgconf? ${HAVE_GCONF}"
23020 echo " Does Emacs use GSettings? ${HAVE_GSETTINGS}"
23021 echo " Does Emacs use -lselinux? ${HAVE_LIBSELINUX}"
23022 echo " Does Emacs use -lgnutls? ${HAVE_GNUTLS}"
23023 echo " Does Emacs use -lxml2? ${HAVE_LIBXML2}"
23025 echo " Does Emacs use -lfreetype? ${HAVE_FREETYPE}"
23026 echo " Does Emacs use -lm17n-flt? ${HAVE_M17N_FLT}"
23027 echo " Does Emacs use -lotf? ${HAVE_LIBOTF}"
23028 echo " Does Emacs use -lxft? ${HAVE_XFT}"
23030 echo " Does Emacs use toolkit scroll bars? ${USE_TOOLKIT_SCROLL_BARS}"
23033 if test -n "${EMACSDATA}"; then
23034 echo " Environment variable EMACSDATA set to: $EMACSDATA"
23036 if test -n "${EMACSDOC}"; then
23037 echo " Environment variable EMACSDOC set to: $EMACSDOC"
23040 if test $USE_XASSERTS = yes; then
23041 echo " Compiling with asserts turned on."
23042 CPPFLAGS
="$CPPFLAGS -DXASSERTS=1"
23047 if test "$HAVE_NS" = "yes"; then
23049 echo "You must run \"${MAKE-make} install\" in order to test the built application.
23050 The installed application will go to nextstep/Emacs.app and can be
23051 run or moved from there."
23052 if test "$EN_NS_SELF_CONTAINED" = "yes"; then
23053 echo "The application will be fully self-contained."
23055 echo "The lisp resources for the application will be installed under ${prefix}.
23056 You may need to run \"${MAKE-make} install\" with sudo. The application will fail
23057 to run if these resources are not installed."
23062 if test "${opsys}" = "cygwin"; then
23064 1.5.
*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: building Emacs on Cygwin 1.5 is not supported." >&5
23065 $as_echo "$as_me: WARNING: building Emacs on Cygwin 1.5 is not supported." >&2;}
23071 # Remove any trailing slashes in these variables.
23072 test "${prefix}" != NONE
&&
23073 prefix
=`echo "${prefix}" | sed 's,\([^/]\)/*$,\1,'`
23074 test "${exec_prefix}" != NONE
&&
23075 exec_prefix
=`echo "${exec_prefix}" | sed 's,\([^/]\)/*$,\1,'`
23077 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"
23079 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"
23082 opt_makefile
=test
/automated
/Makefile
23084 if test -f $srcdir/${opt_makefile}.
in; then
23085 SUBDIR_MAKEFILES
="$SUBDIR_MAKEFILES $opt_makefile"
23086 ac_config_files
="$ac_config_files test/automated/Makefile"
23091 opt_makefile
=admin
/unidata
/Makefile
23093 if test -f $srcdir/${opt_makefile}.
in; then
23094 SUBDIR_MAKEFILES
="$SUBDIR_MAKEFILES $opt_makefile"
23095 ac_config_files
="$ac_config_files admin/unidata/Makefile"
23100 SUBDIR_MAKEFILES_IN
=`echo " ${SUBDIR_MAKEFILES}" | sed -e 's| | $(srcdir)/|g' -e 's|Makefile|Makefile.in|g'`
23104 ac_config_commands
="$ac_config_commands mkdirs"
23107 ac_config_commands
="$ac_config_commands epaths"
23110 ac_config_commands
="$ac_config_commands gdbinit"
23113 cat >confcache
<<\_ACEOF
23114 # This file is a shell script that caches the results of configure
23115 # tests run on this system so they can be shared between configure
23116 # scripts and configure runs, see configure's option --config-cache.
23117 # It is not useful on other systems. If it contains results you don't
23118 # want to keep, you may remove or edit it.
23120 # config.status only pays attention to the cache file if you give it
23121 # the --recheck option to rerun configure.
23123 # `ac_cv_env_foo' variables (set or unset) will be overridden when
23124 # loading this file, other *unset* `ac_cv_foo' will be assigned the
23125 # following values.
23129 # The following way of writing the cache mishandles newlines in values,
23130 # but we know of no workaround that is simple, portable, and efficient.
23131 # So, we kill variables containing newlines.
23132 # Ultrix sh set writes to stderr and can't be redirected directly,
23133 # and sets the high bit in the cache file unless we assign to the vars.
23135 for ac_var
in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
23136 eval ac_val
=\$
$ac_var
23140 *_cv_
*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
23141 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
23144 _ | IFS | as_nl
) ;; #(
23145 BASH_ARGV | BASH_SOURCE
) eval $ac_var= ;; #(
23146 *) { eval $ac_var=; unset $ac_var;} ;;
23152 case $as_nl`(ac_space=' '; set) 2>&1` in #(
23153 *${as_nl}ac_space
=\
*)
23154 # `set' does not quote correctly, so add quotes: double-quote
23155 # substitution turns \\\\ into \\, and sed turns \\ into \.
23158 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
23161 # `set' quotes correctly as required by POSIX, so do not add quotes.
23162 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
23171 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
23173 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
23175 if diff "$cache_file" confcache
>/dev
/null
2>&1; then :; else
23176 if test -w "$cache_file"; then
23177 test "x$cache_file" != "x/dev/null" &&
23178 { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
23179 $as_echo "$as_me: updating cache $cache_file" >&6;}
23180 cat confcache
>$cache_file
23182 { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
23183 $as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
23188 test "x$prefix" = xNONE
&& prefix
=$ac_default_prefix
23189 # Let make expand exec_prefix.
23190 test "x$exec_prefix" = xNONE
&& exec_prefix
='${prefix}'
23192 DEFS
=-DHAVE_CONFIG_H
23196 for ac_i
in : $LIBOBJS; do test "x$ac_i" = x
: && continue
23197 # 1. Remove the extension, and $U if already installed.
23198 ac_script
='s/\$U\././;s/\.o$//;s/\.obj$//'
23199 ac_i
=`$as_echo "$ac_i" | sed "$ac_script"`
23200 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
23201 # will be set to the directory where LIBOBJS objects are built.
23202 as_fn_append ac_libobjs
" \${LIBOBJDIR}$ac_i\$U.$ac_objext"
23203 as_fn_append ac_ltlibobjs
" \${LIBOBJDIR}$ac_i"'$U.lo'
23205 LIBOBJS
=$ac_libobjs
23207 LTLIBOBJS
=$ac_ltlibobjs
23210 if test -n "$EXEEXT"; then
23212 am__EXEEXT_FALSE
='#'
23214 am__EXEEXT_TRUE
='#'
23218 if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
23219 as_fn_error
"conditional \"AMDEP\" was never defined.
23220 Usually this means the macro was only invoked conditionally." "$LINENO" 5
23222 if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
23223 as_fn_error
"conditional \"am__fastdepCC\" was never defined.
23224 Usually this means the macro was only invoked conditionally." "$LINENO" 5
23227 if test -z "${GL_COND_LIBTOOL_TRUE}" && test -z "${GL_COND_LIBTOOL_FALSE}"; then
23228 as_fn_error
"conditional \"GL_COND_LIBTOOL\" was never defined.
23229 Usually this means the macro was only invoked conditionally." "$LINENO" 5
23231 if test -z "${GL_GENERATE_ALLOCA_H_TRUE}" && test -z "${GL_GENERATE_ALLOCA_H_FALSE}"; then
23232 as_fn_error
"conditional \"GL_GENERATE_ALLOCA_H\" was never defined.
23233 Usually this means the macro was only invoked conditionally." "$LINENO" 5
23236 if test -z "${GL_GENERATE_STDINT_H_TRUE}" && test -z "${GL_GENERATE_STDINT_H_FALSE}"; then
23237 as_fn_error
"conditional \"GL_GENERATE_STDINT_H\" was never defined.
23238 Usually this means the macro was only invoked conditionally." "$LINENO" 5
23240 if test -z "${GL_GENERATE_STDARG_H_TRUE}" && test -z "${GL_GENERATE_STDARG_H_FALSE}"; then
23241 as_fn_error
"conditional \"GL_GENERATE_STDARG_H\" was never defined.
23242 Usually this means the macro was only invoked conditionally." "$LINENO" 5
23244 if test -z "${GL_GENERATE_STDBOOL_H_TRUE}" && test -z "${GL_GENERATE_STDBOOL_H_FALSE}"; then
23245 as_fn_error
"conditional \"GL_GENERATE_STDBOOL_H\" was never defined.
23246 Usually this means the macro was only invoked conditionally." "$LINENO" 5
23248 if test -z "${GL_GENERATE_STDDEF_H_TRUE}" && test -z "${GL_GENERATE_STDDEF_H_FALSE}"; then
23249 as_fn_error
"conditional \"GL_GENERATE_STDDEF_H\" was never defined.
23250 Usually this means the macro was only invoked conditionally." "$LINENO" 5
23252 if test -z "${gl_GNULIB_ENABLED_dosname_TRUE}" && test -z "${gl_GNULIB_ENABLED_dosname_FALSE}"; then
23253 as_fn_error
"conditional \"gl_GNULIB_ENABLED_dosname\" was never defined.
23254 Usually this means the macro was only invoked conditionally." "$LINENO" 5
23256 if test -z "${gl_GNULIB_ENABLED_be453cec5eecf5731a274f2de7f2db36_TRUE}" && test -z "${gl_GNULIB_ENABLED_be453cec5eecf5731a274f2de7f2db36_FALSE}"; then
23257 as_fn_error
"conditional \"gl_GNULIB_ENABLED_be453cec5eecf5731a274f2de7f2db36\" was never defined.
23258 Usually this means the macro was only invoked conditionally." "$LINENO" 5
23260 if test -z "${gl_GNULIB_ENABLED_pathmax_TRUE}" && test -z "${gl_GNULIB_ENABLED_pathmax_FALSE}"; then
23261 as_fn_error
"conditional \"gl_GNULIB_ENABLED_pathmax\" was never defined.
23262 Usually this means the macro was only invoked conditionally." "$LINENO" 5
23264 if test -z "${gl_GNULIB_ENABLED_sigprocmask_TRUE}" && test -z "${gl_GNULIB_ENABLED_sigprocmask_FALSE}"; then
23265 as_fn_error
"conditional \"gl_GNULIB_ENABLED_sigprocmask\" was never defined.
23266 Usually this means the macro was only invoked conditionally." "$LINENO" 5
23268 if test -z "${gl_GNULIB_ENABLED_stat_TRUE}" && test -z "${gl_GNULIB_ENABLED_stat_FALSE}"; then
23269 as_fn_error
"conditional \"gl_GNULIB_ENABLED_stat\" was never defined.
23270 Usually this means the macro was only invoked conditionally." "$LINENO" 5
23272 if test -z "${gl_GNULIB_ENABLED_strtoll_TRUE}" && test -z "${gl_GNULIB_ENABLED_strtoll_FALSE}"; then
23273 as_fn_error
"conditional \"gl_GNULIB_ENABLED_strtoll\" was never defined.
23274 Usually this means the macro was only invoked conditionally." "$LINENO" 5
23276 if test -z "${gl_GNULIB_ENABLED_strtoull_TRUE}" && test -z "${gl_GNULIB_ENABLED_strtoull_FALSE}"; then
23277 as_fn_error
"conditional \"gl_GNULIB_ENABLED_strtoull\" was never defined.
23278 Usually this means the macro was only invoked conditionally." "$LINENO" 5
23280 if test -z "${gl_GNULIB_ENABLED_verify_TRUE}" && test -z "${gl_GNULIB_ENABLED_verify_FALSE}"; then
23281 as_fn_error
"conditional \"gl_GNULIB_ENABLED_verify\" was never defined.
23282 Usually this means the macro was only invoked conditionally." "$LINENO" 5
23287 if test -n "$gl_LIBOBJS"; then
23288 # Remove the extension.
23289 sed_drop_objext
='s/\.o$//;s/\.obj$//'
23290 for i
in `for i in $gl_LIBOBJS; do echo "$i"; done | sed -e "$sed_drop_objext" | sort | uniq`; do
23291 gl_libobjs
="$gl_libobjs $i.$ac_objext"
23292 gl_ltlibobjs
="$gl_ltlibobjs $i.lo"
23295 gl_LIBOBJS
=$gl_libobjs
23297 gl_LTLIBOBJS
=$gl_ltlibobjs
23303 if test -n "$gltests_LIBOBJS"; then
23304 # Remove the extension.
23305 sed_drop_objext
='s/\.o$//;s/\.obj$//'
23306 for i
in `for i in $gltests_LIBOBJS; do echo "$i"; done | sed -e "$sed_drop_objext" | sort | uniq`; do
23307 gltests_libobjs
="$gltests_libobjs $i.$ac_objext"
23308 gltests_ltlibobjs
="$gltests_ltlibobjs $i.lo"
23311 gltests_LIBOBJS
=$gltests_libobjs
23313 gltests_LTLIBOBJS
=$gltests_ltlibobjs
23317 : ${CONFIG_STATUS=./config.status}
23319 ac_clean_files_save
=$ac_clean_files
23320 ac_clean_files
="$ac_clean_files $CONFIG_STATUS"
23321 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
23322 $as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
23324 cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
23326 # Generated by $as_me.
23327 # Run this file to recreate the current configuration.
23328 # Compiler output produced by configure, useful for debugging
23329 # configure, is in config.log if it exists.
23332 ac_cs_recheck=false
23335 SHELL=\${CONFIG_SHELL-$SHELL}
23338 cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail
=1
23339 ## -------------------- ##
23340 ## M4sh Initialization. ##
23341 ## -------------------- ##
23343 # Be more Bourne compatible
23344 DUALCASE
=1; export DUALCASE
# for MKS sh
23345 if test -n "${ZSH_VERSION+set}" && (emulate sh
) >/dev
/null
2>&1; then :
23348 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
23349 # is contrary to our usage. Disable this feature.
23350 alias -g '${1+"$@"}'='"$@"'
23351 setopt NO_GLOB_SUBST
23353 case `(set -o) 2>/dev/null` in #(
23365 # Printing a long string crashes Solaris 7 /usr/bin/printf.
23366 as_echo
='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
23367 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
23368 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
23369 # Prefer a ksh shell builtin over an external printf program on Solaris,
23370 # but without wasting forks for bash or zsh.
23371 if test -z "$BASH_VERSION$ZSH_VERSION" \
23372 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
23373 as_echo='print
-r --'
23374 as_echo_n='print
-rn --'
23375 elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
23376 as_echo='printf %s
\n'
23377 as_echo_n='printf %s
'
23379 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
23380 as_echo_body='eval /usr
/ucb
/echo -n "$1$as_nl"'
23381 as_echo_n='/usr
/ucb
/echo -n'
23383 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
23384 as_echo_n_body='eval
23388 expr "X$arg" : "X\\(.*\\)$as_nl";
23389 arg
=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
23391 expr "X$arg" : "X\\(.*\\)" |
tr -d "$as_nl"
23393 export as_echo_n_body
23394 as_echo_n='sh
-c $as_echo_n_body as_echo
'
23396 export as_echo_body
23397 as_echo='sh
-c $as_echo_body as_echo
'
23400 # The user is always right.
23401 if test "${PATH_SEPARATOR+set}" != set; then
23403 (PATH='/bin
;/bin
'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
23404 (PATH='/bin
:/bin
'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
23411 # We need space, tab and new line, in precisely that order. Quoting is
23412 # there to prevent editors from complaining about space-tab.
23413 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
23414 # splitting by setting IFS to empty value.)
23417 # Find who we are. Look in the path if we contain no directory separator.
23419 *[\\/]* ) as_myself=$0 ;;
23420 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
23421 for as_dir in $PATH
23424 test -z "$as_dir" && as_dir=.
23425 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
23431 # We did not find ourselves, most probably we were run as `sh COMMAND'
23432 # in which case we are not to be found in the path.
23433 if test "x$as_myself" = x
; then
23436 if test ! -f "$as_myself"; then
23437 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
23441 # Unset variables that we do not need and which cause bugs (e.g. in
23442 # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
23443 # suppresses any "Segmentation fault" message there. '((' could
23444 # trigger a bug in pdksh 5.2.14.
23445 for as_var
in BASH_ENV ENV MAIL MAILPATH
23446 do eval test x\
${$as_var+set} = xset \
23447 && ( (unset $as_var) ||
exit 1) >/dev
/null
2>&1 && unset $as_var ||
:
23460 (unset CDPATH
) >/dev
/null
2>&1 && unset CDPATH
23463 # as_fn_error ERROR [LINENO LOG_FD]
23464 # ---------------------------------
23465 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
23466 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
23467 # script with status $?, using 1 if that was 0.
23470 as_status
=$?
; test $as_status -eq 0 && as_status
=1
23472 as_lineno
=${as_lineno-"$2"} as_lineno_stack
=as_lineno_stack
=$as_lineno_stack
23473 $as_echo "$as_me:${as_lineno-$LINENO}: error: $1" >&$3
23475 $as_echo "$as_me: error: $1" >&2
23476 as_fn_exit
$as_status
23480 # as_fn_set_status STATUS
23481 # -----------------------
23482 # Set $? to STATUS, without forking.
23483 as_fn_set_status
()
23486 } # as_fn_set_status
23488 # as_fn_exit STATUS
23489 # -----------------
23490 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
23494 as_fn_set_status
$1
23500 # Portably unset VAR.
23503 { eval $1=; unset $1;}
23505 as_unset
=as_fn_unset
23506 # as_fn_append VAR VALUE
23507 # ----------------------
23508 # Append the text in VALUE to the end of the definition contained in VAR. Take
23509 # advantage of any shell optimizations that allow amortized linear growth over
23510 # repeated appends, instead of the typical quadratic growth present in naive
23512 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev
/null
; then :
23513 eval 'as_fn_append ()
23524 # as_fn_arith ARG...
23525 # ------------------
23526 # Perform arithmetic evaluation on the ARGs, and store the result in the
23527 # global $as_val. Take advantage of shells that can avoid forks. The arguments
23528 # must be portable across $(()) and expr.
23529 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev
/null
; then :
23530 eval 'as_fn_arith ()
23537 as_val
=`expr "$@" || test $? -eq 1`
23542 if expr a
: '\(a\)' >/dev
/null
2>&1 &&
23543 test "X`expr 00001 : '.*\(...\)'`" = X001
; then
23549 if (basename -- /) >/dev
/null
2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
23550 as_basename
=basename
23555 if (as_dir
=`dirname -- /` && test "X$as_dir" = X
/) >/dev
/null
2>&1; then
23561 as_me
=`$as_basename -- "$0" ||
23562 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
23563 X"$0" : 'X\(//\)$' \| \
23564 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
23566 sed '/^.*\/\([^/][^/]*\)\/*$/{
23580 # Avoid depending upon Character Ranges.
23581 as_cr_letters
='abcdefghijklmnopqrstuvwxyz'
23582 as_cr_LETTERS
='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
23583 as_cr_Letters
=$as_cr_letters$as_cr_LETTERS
23584 as_cr_digits
='0123456789'
23585 as_cr_alnum
=$as_cr_Letters$as_cr_digits
23587 ECHO_C
= ECHO_N
= ECHO_T
=
23588 case `echo -n x` in #(((((
23590 case `echo 'xy\c'` in
23591 *c
*) ECHO_T
=' ';; # ECHO_T is single tab character.
23593 *) echo `echo ksh88 bug on AIX 6.1` > /dev
/null
23600 rm -f conf$$ conf$$.exe conf$$.
file
23601 if test -d conf$$.dir
; then
23602 rm -f conf$$.dir
/conf$$.
file
23605 mkdir conf$$.dir
2>/dev
/null
23607 if (echo >conf$$.
file) 2>/dev
/null
; then
23608 if ln -s conf$$.
file conf$$
2>/dev
/null
; then
23610 # ... but there are two gotchas:
23611 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
23612 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
23613 # In both cases, we have to default to `cp -p'.
23614 ln -s conf$$.
file conf$$.dir
2>/dev
/null
&& test ! -f conf$$.exe ||
23616 elif ln conf$$.
file conf$$
2>/dev
/null
; then
23624 rm -f conf$$ conf$$.exe conf$$.dir
/conf$$.
file conf$$.
file
23625 rmdir conf$$.dir
2>/dev
/null
23630 # Create "$as_dir" as a directory, including parents if necessary.
23635 -*) as_dir
=.
/$as_dir;;
23637 test -d "$as_dir" ||
eval $as_mkdir_p ||
{
23641 *\'*) as_qdir
=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
23642 *) as_qdir
=$as_dir;;
23644 as_dirs
="'$as_qdir' $as_dirs"
23645 as_dir
=`$as_dirname -- "$as_dir" ||
23646 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
23647 X"$as_dir" : 'X\(//\)[^/]' \| \
23648 X"$as_dir" : 'X\(//\)$' \| \
23649 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
23650 $as_echo X"$as_dir" |
23651 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
23655 /^X\(\/\/\)[^/].*/{
23668 test -d "$as_dir" && break
23670 test -z "$as_dirs" ||
eval "mkdir $as_dirs"
23671 } ||
test -d "$as_dir" || as_fn_error
"cannot create directory $as_dir"
23675 if mkdir
-p .
2>/dev
/null
; then
23676 as_mkdir_p
='mkdir -p "$as_dir"'
23678 test -d .
/-p && rmdir .
/-p
23682 if test -x / >/dev
/null
2>&1; then
23683 as_test_x
='test -x'
23685 if ls -dL / >/dev
/null
2>&1; then
23692 if test -d "$1"; then
23698 case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in #((
23699 ???[sx]*):;;*)false;;esac;fi
23703 as_executable_p
=$as_test_x
23705 # Sed expression to map a string onto a valid CPP name.
23706 as_tr_cpp
="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
23708 # Sed expression to map a string onto a valid variable name.
23709 as_tr_sh
="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
23713 ## ----------------------------------- ##
23714 ## Main body of $CONFIG_STATUS script. ##
23715 ## ----------------------------------- ##
23717 test $as_write_fail = 0 && chmod +x
$CONFIG_STATUS || ac_write_fail
=1
23719 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail
=1
23720 # Save the log message, to keep $0 and so on meaningful, and to
23721 # report actual input values of CONFIG_FILES etc. instead of their
23722 # values after options handling.
23724 This file was extended by emacs $as_me 24.1.50, which was
23725 generated by GNU Autoconf 2.65. Invocation command line was
23727 CONFIG_FILES = $CONFIG_FILES
23728 CONFIG_HEADERS = $CONFIG_HEADERS
23729 CONFIG_LINKS = $CONFIG_LINKS
23730 CONFIG_COMMANDS = $CONFIG_COMMANDS
23733 on `(hostname || uname -n) 2>/dev/null | sed 1q`
23738 case $ac_config_files in *"
23739 "*) set x
$ac_config_files; shift; ac_config_files
=$
*;;
23742 case $ac_config_headers in *"
23743 "*) set x
$ac_config_headers; shift; ac_config_headers
=$
*;;
23747 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
23748 # Files that config.status was made for.
23749 config_files="$ac_config_files"
23750 config_headers="$ac_config_headers"
23751 config_commands="$ac_config_commands"
23755 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail
=1
23757 \`$as_me' instantiates files and other configuration actions
23758 from templates according to the current configuration. Unless the files
23759 and actions are specified as TAGs, all are instantiated by default.
23761 Usage: $0 [OPTION]... [TAG]...
23763 -h, --help print this help, then exit
23764 -V, --version print version number and configuration settings, then exit
23765 --config print configuration, then exit
23766 -q, --quiet, --silent
23767 do not print progress messages
23768 -d, --debug don't remove temporary files
23769 --recheck update $as_me by reconfiguring in the same conditions
23770 --file=FILE[:TEMPLATE]
23771 instantiate the configuration file FILE
23772 --header=FILE[:TEMPLATE]
23773 instantiate the configuration header FILE
23775 Configuration files:
23778 Configuration headers:
23781 Configuration commands:
23784 Report bugs to the package provider."
23787 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
23788 ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`"
23790 emacs config.status 24.1.50
23791 configured by $0, generated by GNU Autoconf 2.65,
23792 with options \\"\$ac_cs_config\\"
23794 Copyright (C) 2009 Free Software Foundation, Inc.
23795 This config.status script is free software; the Free Software Foundation
23796 gives unlimited permission to copy, distribute and modify it."
23803 test -n "\$AWK" || AWK=awk
23806 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail
=1
23807 # The default lists apply if the user does not specify any file.
23813 ac_option
=`expr "X$1" : 'X\([^=]*\)='`
23814 ac_optarg
=`expr "X$1" : 'X[^=]*=\(.*\)'`
23825 # Handling of the options.
23826 -recheck |
--recheck |
--rechec |
--reche |
--rech |
--rec |
--re |
--r)
23828 --version |
--versio |
--versi |
--vers |
--ver |
--ve |
--v |
-V )
23829 $as_echo "$ac_cs_version"; exit ;;
23830 --config |
--confi |
--conf |
--con |
--co |
--c )
23831 $as_echo "$ac_cs_config"; exit ;;
23832 --debug |
--debu |
--deb |
--de |
--d |
-d )
23834 --file |
--fil |
--fi |
--f )
23837 *\'*) ac_optarg
=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
23839 as_fn_append CONFIG_FILES
" '$ac_optarg'"
23840 ac_need_defaults
=false
;;
23841 --header |
--heade |
--head |
--hea )
23844 *\'*) ac_optarg
=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
23846 as_fn_append CONFIG_HEADERS
" '$ac_optarg'"
23847 ac_need_defaults
=false
;;
23849 # Conflict between --help and --header
23850 as_fn_error
"ambiguous option: \`$1'
23851 Try \`$0 --help' for more information.";;
23852 --help |
--hel |
-h )
23853 $as_echo "$ac_cs_usage"; exit ;;
23854 -q |
-quiet |
--quiet |
--quie |
--qui |
--qu |
--q \
23855 |
-silent |
--silent |
--silen |
--sile |
--sil |
--si |
--s)
23858 # This is an error.
23859 -*) as_fn_error
"unrecognized option: \`$1'
23860 Try \`$0 --help' for more information." ;;
23862 *) as_fn_append ac_config_targets
" $1"
23863 ac_need_defaults
=false
;;
23869 ac_configure_extra_args
=
23871 if $ac_cs_silent; then
23873 ac_configure_extra_args
="$ac_configure_extra_args --silent"
23877 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
23878 if \$ac_cs_recheck; then
23879 set X '$SHELL' '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
23881 \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
23882 CONFIG_SHELL='$SHELL'
23883 export CONFIG_SHELL
23888 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail
=1
23892 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
23893 ## Running $as_me. ##
23899 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
23903 AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"
23904 GCC="$GCC" NON_GNU_CPP="$NON_GNU_CPP" CPP="$CPP" CPPFLAGS="$CPPFLAGS"
23908 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail
=1
23910 # Handling of arguments.
23911 for ac_config_target
in $ac_config_targets
23913 case $ac_config_target in
23914 "src/config.h") CONFIG_HEADERS
="$CONFIG_HEADERS src/config.h:src/config.in" ;;
23915 "depfiles") CONFIG_COMMANDS
="$CONFIG_COMMANDS depfiles" ;;
23916 "Makefile") CONFIG_FILES
="$CONFIG_FILES Makefile" ;;
23917 "lib/Makefile") CONFIG_FILES
="$CONFIG_FILES lib/Makefile" ;;
23918 "lib-src/Makefile") CONFIG_FILES
="$CONFIG_FILES lib-src/Makefile" ;;
23919 "oldXMenu/Makefile") CONFIG_FILES
="$CONFIG_FILES oldXMenu/Makefile" ;;
23920 "doc/emacs/Makefile") CONFIG_FILES
="$CONFIG_FILES doc/emacs/Makefile" ;;
23921 "doc/misc/Makefile") CONFIG_FILES
="$CONFIG_FILES doc/misc/Makefile" ;;
23922 "doc/lispintro/Makefile") CONFIG_FILES
="$CONFIG_FILES doc/lispintro/Makefile" ;;
23923 "doc/lispref/Makefile") CONFIG_FILES
="$CONFIG_FILES doc/lispref/Makefile" ;;
23924 "src/Makefile") CONFIG_FILES
="$CONFIG_FILES src/Makefile" ;;
23925 "lwlib/Makefile") CONFIG_FILES
="$CONFIG_FILES lwlib/Makefile" ;;
23926 "lisp/Makefile") CONFIG_FILES
="$CONFIG_FILES lisp/Makefile" ;;
23927 "leim/Makefile") CONFIG_FILES
="$CONFIG_FILES leim/Makefile" ;;
23928 "test/automated/Makefile") CONFIG_FILES
="$CONFIG_FILES test/automated/Makefile" ;;
23929 "admin/unidata/Makefile") CONFIG_FILES
="$CONFIG_FILES admin/unidata/Makefile" ;;
23930 "mkdirs") CONFIG_COMMANDS
="$CONFIG_COMMANDS mkdirs" ;;
23931 "epaths") CONFIG_COMMANDS
="$CONFIG_COMMANDS epaths" ;;
23932 "gdbinit") CONFIG_COMMANDS
="$CONFIG_COMMANDS gdbinit" ;;
23934 *) as_fn_error
"invalid argument: \`$ac_config_target'" "$LINENO" 5;;
23939 # If the user did not use the arguments to specify the items to instantiate,
23940 # then the envvar interface is used. Set only those that are not.
23941 # We use the long form for the default assignment because of an extremely
23942 # bizarre bug on SunOS 4.1.3.
23943 if $ac_need_defaults; then
23944 test "${CONFIG_FILES+set}" = set || CONFIG_FILES
=$config_files
23945 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS
=$config_headers
23946 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS
=$config_commands
23949 # Have a temporary directory for convenience. Make it in the build tree
23950 # simply because there is no reason against having it here, and in addition,
23951 # creating and moving files from /tmp can sometimes cause problems.
23952 # Hook for its removal unless debugging.
23953 # Note that there is a small window in which the directory will not be cleaned:
23954 # after its creation but before its name has been assigned to `$tmp'.
23958 trap 'exit_status=$?
23959 { test -z "$tmp" || test ! -d "$tmp" || rm -fr "$tmp"; } && exit $exit_status
23961 trap 'as_fn_exit 1' 1 2 13 15
23963 # Create a (secure) tmp directory for tmp files.
23966 tmp
=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
23967 test -n "$tmp" && test -d "$tmp"
23970 tmp
=.
/conf$$
-$RANDOM
23971 (umask 077 && mkdir
"$tmp")
23972 } || as_fn_error
"cannot create a temporary directory in ." "$LINENO" 5
23974 # Set up the scripts for CONFIG_FILES section.
23975 # No need to generate them if there are no CONFIG_FILES.
23976 # This happens for instance with `./config.status config.h'.
23977 if test -n "$CONFIG_FILES"; then
23979 if $AWK 'BEGIN { getline <"/dev/null" }' </dev
/null
2>/dev
/null
; then
23980 ac_cs_awk_getline
=:
23981 ac_cs_awk_pipe_init
=
23982 ac_cs_awk_read_file
='
23983 while ((getline aline < (F[key])) > 0)
23986 ac_cs_awk_pipe_fini
=
23988 ac_cs_awk_getline
=false
23989 ac_cs_awk_pipe_init
="print \"cat <<'|#_!!_#|' &&\""
23990 ac_cs_awk_read_file
='
23992 print "cat " F[key] " &&"
23993 '$ac_cs_awk_pipe_init
23994 # The final `:' finishes the AND list.
23995 ac_cs_awk_pipe_fini
='END { print "|#_!!_#|"; print ":" }'
23997 ac_cr
=`echo X | tr X '\015'`
23998 # On cygwin, bash can eat \r inside `` if the user requested igncr.
23999 # But we know of no other shell where ac_cr would be empty at this
24000 # point, so we can use a bashism as a fallback.
24001 if test "x$ac_cr" = x
; then
24002 eval ac_cr
=\$
\'\\r
\'
24004 ac_cs_awk_cr
=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
24005 if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
24008 ac_cs_awk_cr
=$ac_cr
24011 echo 'BEGIN {' >"$tmp/subs1.awk" &&
24014 # Create commands to substitute file output variables.
24016 echo "cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1" &&
24017 echo 'cat >>"\$tmp/subs1.awk" <<\\_ACAWK &&' &&
24018 echo "$ac_subst_files" |
sed 's/.*/F["&"]="$&"/' &&
24021 } >conf$
$files.sh
&&
24022 . .
/conf$
$files.sh ||
24023 as_fn_error
"could not make $CONFIG_STATUS" "$LINENO" 5
24024 rm -f conf$
$files.sh
24027 echo "cat >conf$$subs.awk <<_ACEOF" &&
24028 echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
24030 } >conf$$subs.sh ||
24031 as_fn_error "could not
make $CONFIG_STATUS" "$LINENO" 5
24032 ac_delim_num=`echo "$ac_subst_vars" | grep -c '$'`
24034 for ac_last_try in false false false false false :; do
24035 . ./conf$$subs.sh ||
24036 as_fn_error "could not
make $CONFIG_STATUS" "$LINENO" 5
24038 ac_delim_n=`sed -n "s
/.
*$ac_delim\$
/X
/p
" conf$$subs.awk | grep -c X`
24039 if test $ac_delim_n = $ac_delim_num; then
24041 elif $ac_last_try; then
24042 as_fn_error "could not
make $CONFIG_STATUS" "$LINENO" 5
24044 ac_delim="$ac_delim!$ac_delim _
$ac_delim!! "
24047 rm -f conf$$subs.sh
24049 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
24050 cat >>"\
$tmp/subs1.
awk" <<\\_ACAWK &&
24054 s/^/S["/; s
/!.
*/"]=/
24064 s/\(.\{148\}\)..*/\1/
24066 s/["\\]/\\&/g
; s
/^
/"/; s/$/\\n"\\/
24071 s
/["\\]/\\&/g; s/^/"/; s
/$
/"\\/
24078 s/\(.\{148\}\)..*/\1/
24080 s/["\\]/\\&/g
; s
/^
/"/; s/$/"/
24084 s
/["\\]/\\&/g; s/^/"/; s
/$
/"\\/
24089 ' <conf$$subs.awk | sed '
24094 ' >>$CONFIG_STATUS || ac_write_fail=1
24095 rm -f conf$$subs.awk
24096 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
24098 cat >>"\
$tmp/subs1.
awk" <<_ACAWK &&
24099 for (key in S) S_is_set[key] = 1
24101 \$ac_cs_awk_pipe_init
24105 nfields = split(line, field, "@
")
24107 len = length(field[1])
24108 for (i = 2; i < nfields; i++) {
24110 keylen = length(key)
24111 if (S_is_set[key]) {
24113 line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
24114 len += length(value) + length(field[++i])
24119 if (nfields == 3 && !substed) {
24121 if (F[key] != "" && line ~ /^[ ]*@.*@[ ]*$/) {
24122 \$ac_cs_awk_read_file
24128 \$ac_cs_awk_pipe_fini
24131 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
24132 if sed "s
/$ac_cr//" < /dev/null > /dev/null 2>&1; then
24133 sed "s
/$ac_cr\$
//; s
/$ac_cr/$ac_cs_awk_cr/g
"
24136 fi < "$tmp/subs1.
awk" > "$tmp/subs.
awk" \
24137 || as_fn_error "could not setup config files machinery
" "$LINENO" 5
24140 # VPATH may cause trouble with some makes, so we remove $(srcdir),
24141 # ${srcdir} and @srcdir@ from VPATH if srcdir is ".
", strip leading and
24142 # trailing colons and then remove the whole line if VPATH becomes empty
24143 # (actually we leave an empty line to preserve line numbers).
24144 if test "x
$srcdir" = x.; then
24145 ac_vpsub='/^[ ]*VPATH[ ]*=/{
24146 s/:*\$(srcdir):*/:/
24147 s/:*\${srcdir}:*/:/
24149 s/^\([^=]*=[ ]*\):*/\1/
24155 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
24156 fi # test -n "$CONFIG_FILES"
24158 # Set up the scripts for CONFIG_HEADERS section.
24159 # No need to generate them if there are no CONFIG_HEADERS.
24160 # This happens for instance with `./config.status Makefile'.
24161 if test -n "$CONFIG_HEADERS"; then
24162 cat >"$tmp/defines.
awk" <<\_ACAWK ||
24166 # Transform confdefs.h into an awk script `defines.awk', embedded as
24167 # here-document in config.status, that substitutes the proper values into
24168 # config.h.in to produce config.h.
24170 # Create a delimiter string that does not exist in confdefs.h, to ease
24171 # handling of long lines.
24173 for ac_last_try in false false :; do
24174 ac_t=`sed -n "/$ac_delim/p
" confdefs.h`
24175 if test -z "$ac_t"; then
24177 elif $ac_last_try; then
24178 as_fn_error "could not
make $CONFIG_HEADERS" "$LINENO" 5
24180 ac_delim="$ac_delim!$ac_delim _
$ac_delim!! "
24184 # For the awk script, D is an array of macro values keyed by name,
24185 # likewise P contains macro parameters if any. Preserve backslash
24186 # newline sequences.
24188 ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
24190 s/.\{148\}/&'"$ac_delim"'/g
24193 s/^[ ]*#[ ]*define[ ][ ]*/ /
24200 s
/^ \
('"$ac_word_re"'\
)\
(([^
()]*)\
)[ ]*\
(.
*\
)/P
["\1"]="\2"\
24202 s
/^ \
('"$ac_word_re"'\
)[ ]*\
(.
*\
)/D
["\1"]=" \2"/p
24206 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\
1"]="\
2"\
24207 D["\
1"]=" \
3\\\\\\n
"\\/p
24209 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\
1"]=" \
2\\\\\\n
"\\/p
24214 s/.\{148\}/&'"$ac_delim"'/g
24219 s/["\\]/\\&/g
; s
/^
/"/; s/$/"/p
24222 s
/["\\]/\\&/g; s/^/"/; s
/$
/\\\\\\n
"\\/p
24224 ' <confdefs.h | sed '
24225 s/'"$ac_delim"'/"\\\
24226 "/g' >>$CONFIG_STATUS || ac_write_fail=1
24228 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
24229 for (key in D) D_is_set[key] = 1
24232 /^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
24234 split(line, arg, " ")
24235 if (arg[1] == "#") {
24239 defundef
= substr
(arg
[1], 2)
24242 split(mac1
, mac2
, "(") #)
24244 prefix
= substr
(line
, 1, index
(line
, defundef
) - 1)
24245 if (D_is_set
[macro
]) {
24246 # Preserve the white space surrounding the "#".
24247 print prefix
"define", macro P
[macro
] D
[macro
]
24250 # Replace #undef with comments. This is necessary, for example,
24251 # in the case of _POSIX_SOURCE, which is predefined and required
24252 # on some systems where configure will not decide to define it.
24253 if (defundef
== "undef") {
24254 print
"/*", prefix defundef
, macro
, "*/"
24262 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail
=1
24263 as_fn_error
"could not setup config headers machinery" "$LINENO" 5
24264 fi # test -n "$CONFIG_HEADERS"
24267 eval set X
" :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS"
24272 :[FHLC
]) ac_mode
=$ac_tag; continue;;
24274 case $ac_mode$ac_tag in
24276 :L
* |
:C
*:*) as_fn_error
"invalid tag \`$ac_tag'" "$LINENO" 5;;
24277 :[FH
]-) ac_tag
=-:-;;
24278 :[FH
]*) ac_tag
=$ac_tag:$ac_tag.
in;;
24295 -) ac_f
="$tmp/stdin";;
24296 *) # Look for the file first in the build tree, then in the source tree
24297 # (if the path is not absolute). The absolute path cannot be DOS-style,
24298 # because $ac_f cannot contain `:'.
24302 *) test -f "$srcdir/$ac_f" && ac_f
="$srcdir/$ac_f";;
24304 as_fn_error
"cannot find input file: \`$ac_f'" "$LINENO" 5;;
24306 case $ac_f in *\'*) ac_f
=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
24307 as_fn_append ac_file_inputs
" '$ac_f'"
24310 # Let's still pretend it is `configure' which instantiates (i.e., don't
24311 # use $as_me), people would be surprised to read:
24312 # /* config.h. Generated by config.status. */
24313 configure_input
='Generated from '`
24314 $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
24316 if test x
"$ac_file" != x-
; then
24317 configure_input
="$ac_file. $configure_input"
24318 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
24319 $as_echo "$as_me: creating $ac_file" >&6;}
24321 # Neutralize special characters interpreted by sed in replacement strings.
24322 case $configure_input in #(
24323 *\
&* |
*\|
* |
*\\* )
24324 ac_sed_conf_input
=`$as_echo "$configure_input" |
24325 sed 's/[\\\\&|]/\\\\&/g'`;; #(
24326 *) ac_sed_conf_input
=$configure_input;;
24330 *:-:* |
*:-) cat >"$tmp/stdin" \
24331 || as_fn_error
"could not create $ac_file" "$LINENO" 5 ;;
24336 ac_dir
=`$as_dirname -- "$ac_file" ||
24337 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
24338 X"$ac_file" : 'X\(//\)[^/]' \| \
24339 X"$ac_file" : 'X\(//\)$' \| \
24340 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
24341 $as_echo X"$ac_file" |
24342 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
24346 /^X\(\/\/\)[^/].*/{
24359 as_dir
="$ac_dir"; as_fn_mkdir_p
24363 .
) ac_dir_suffix
= ac_top_builddir_sub
=. ac_top_build_prefix
= ;;
24365 ac_dir_suffix
=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
24366 # A ".." for each directory in $ac_dir_suffix.
24367 ac_top_builddir_sub
=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
24368 case $ac_top_builddir_sub in
24369 "") ac_top_builddir_sub
=. ac_top_build_prefix
= ;;
24370 *) ac_top_build_prefix
=$ac_top_builddir_sub/ ;;
24373 ac_abs_top_builddir
=$ac_pwd
24374 ac_abs_builddir
=$ac_pwd$ac_dir_suffix
24375 # for backward compatibility:
24376 ac_top_builddir
=$ac_top_build_prefix
24379 .
) # We are building in place.
24381 ac_top_srcdir
=$ac_top_builddir_sub
24382 ac_abs_top_srcdir
=$ac_pwd ;;
24383 [\\/]* | ?
:[\\/]* ) # Absolute name.
24384 ac_srcdir
=$srcdir$ac_dir_suffix;
24385 ac_top_srcdir
=$srcdir
24386 ac_abs_top_srcdir
=$srcdir ;;
24387 *) # Relative name.
24388 ac_srcdir
=$ac_top_build_prefix$srcdir$ac_dir_suffix
24389 ac_top_srcdir
=$ac_top_build_prefix$srcdir
24390 ac_abs_top_srcdir
=$ac_pwd/$srcdir ;;
24392 ac_abs_srcdir
=$ac_abs_top_srcdir$ac_dir_suffix
24402 [\\/$
]* | ?
:[\\/]* ) ac_INSTALL
=$INSTALL ;;
24403 *) ac_INSTALL
=$ac_top_build_prefix$INSTALL ;;
24405 ac_MKDIR_P
=$MKDIR_P
24407 [\\/$
]* | ?
:[\\/]* ) ;;
24408 */*) ac_MKDIR_P
=$ac_top_build_prefix$MKDIR_P ;;
24412 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail
=1
24413 # If the template does not know about datarootdir, expand it.
24414 # FIXME: This hack should be removed a few years after 2.60.
24415 ac_datarootdir_hack
=; ac_datarootdir_seen
=
24426 case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
24427 *datarootdir
*) ac_datarootdir_seen
=yes;;
24428 *@datadir@
*|
*@docdir@
*|
*@infodir@
*|
*@localedir@
*|
*@mandir@
*)
24429 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
24430 $as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
24432 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
24433 ac_datarootdir_hack='
24434 s&@datadir@&$datadir&g
24435 s&@docdir@&$docdir&g
24436 s&@infodir@&$infodir&g
24437 s&@localedir@&$localedir&g
24438 s&@mandir@&$mandir&g
24439 s&\\\${datarootdir}&$datarootdir&g' ;;
24443 # Neutralize VPATH when `$srcdir' = `.'.
24444 # Shell code in configure.ac might set extrasub.
24445 # FIXME: do we really want to maintain this feature?
24446 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
24447 ac_sed_extra="$ac_vpsub
24450 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail
=1
24452 /@
[a-zA-Z_
][a-zA-Z_0-9
]*@
/!b
24453 s|@configure_input@|
$ac_sed_conf_input|
;t t
24454 s
&@top_builddir@
&$ac_top_builddir_sub&;t t
24455 s
&@top_build_prefix@
&$ac_top_build_prefix&;t t
24456 s
&@srcdir@
&$ac_srcdir&;t t
24457 s
&@abs_srcdir@
&$ac_abs_srcdir&;t t
24458 s
&@top_srcdir@
&$ac_top_srcdir&;t t
24459 s
&@abs_top_srcdir@
&$ac_abs_top_srcdir&;t t
24460 s
&@builddir@
&$ac_builddir&;t t
24461 s
&@abs_builddir@
&$ac_abs_builddir&;t t
24462 s
&@abs_top_builddir@
&$ac_abs_top_builddir&;t t
24463 s
&@INSTALL@
&$ac_INSTALL&;t t
24464 s
&@MKDIR_P@
&$ac_MKDIR_P&;t t
24465 $ac_datarootdir_hack
24467 eval sed \"\$ac_sed_extra\" "$ac_file_inputs" |
24468 if $ac_cs_awk_getline; then
24469 $AWK -f "$tmp/subs.
awk"
24471 $AWK -f "$tmp/subs.
awk" | $SHELL
24473 || as_fn_error "could not create
$ac_file" "$LINENO" 5
24475 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
24476 { ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out
"`; test -n "$ac_out"; } &&
24477 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' "$tmp/out
"`; test -z "$ac_out"; } &&
24478 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING
: $ac_file contains a reference to the variable \
`datarootdir'
24479 which seems to be undefined. Please make sure it is defined." >&5
24480 $as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir
'
24481 which seems to be undefined. Please make sure it is defined." >&2;}
24485 -) cat "$tmp/out" && rm -f "$tmp/out";;
24486 *) rm -f "$ac_file" && mv "$tmp/out" "$ac_file";;
24488 || as_fn_error "could not create $ac_file" "$LINENO" 5
24494 if test x"$ac_file" != x-; then
24496 $as_echo "/* $configure_input */" \
24497 && eval '$AWK -f "$tmp/defines.awk"' "$ac_file_inputs"
24498 } >"$tmp/config.h" \
24499 || as_fn_error "could not create $ac_file" "$LINENO" 5
24500 if diff "$ac_file" "$tmp/config.h" >/dev/null 2>&1; then
24501 { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5
24502 $as_echo "$as_me: $ac_file is unchanged" >&6;}
24505 mv "$tmp/config.h" "$ac_file" \
24506 || as_fn_error "could not create $ac_file" "$LINENO" 5
24509 $as_echo "/* $configure_input */" \
24510 && eval '$AWK -f "$tmp/defines.awk"' "$ac_file_inputs" \
24511 || as_fn_error "could not create -" "$LINENO" 5
24513 # Compute "$ac_file"'s index
in $config_headers.
24516 for _am_header
in $config_headers :; do
24517 case $_am_header in
24518 $_am_arg |
$_am_arg:* )
24521 _am_stamp_count
=`expr $_am_stamp_count + 1` ;;
24524 echo "timestamp for $_am_arg" >`$as_dirname -- "$_am_arg" ||
24525 $as_expr X"$_am_arg" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
24526 X"$_am_arg" : 'X\(//\)[^/]' \| \
24527 X"$_am_arg" : 'X\(//\)$' \| \
24528 X"$_am_arg" : 'X\(/\)' \| . 2>/dev/null ||
24529 $as_echo X"$_am_arg" |
24530 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
24534 /^X\(\/\/\)[^/].*/{
24546 s/.*/./; q'`/stamp-h
$_am_stamp_count
24549 :C
) { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5
24550 $as_echo "$as_me: executing $ac_file commands" >&6;}
24555 case $ac_file$ac_mode in
24556 "depfiles":C
) test x
"$AMDEP_TRUE" != x
"" ||
{
24557 # Autoconf 2.62 quotes --file arguments for eval, but not when files
24558 # are listed without --file. Let's play safe and only enable the eval
24559 # if we detect the quoting.
24560 case $CONFIG_FILES in
24561 *\'*) eval set x
"$CONFIG_FILES" ;;
24562 *) set x
$CONFIG_FILES ;;
24567 # Strip MF so we end up with the name of the file.
24568 mf
=`echo "$mf" | sed -e 's/:.*$//'`
24569 # Check whether this is an Automake generated Makefile or not.
24570 # We used to match only the files named `Makefile.in', but
24571 # some people rename them; so instead we look at the file content.
24572 # Grep'ing the first line is not enough: some people post-process
24573 # each Makefile.in and add a new line on top of each file to say so.
24574 # Grep'ing the whole file is not good either: AIX grep has a line
24575 # limit of 2048, but all sed's we know have understand at least 4000.
24576 if sed -n 's,^#.*generated by automake.*,X,p' "$mf" |
grep X
>/dev
/null
2>&1; then
24577 dirpart
=`$as_dirname -- "$mf" ||
24578 $as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
24579 X"$mf" : 'X\(//\)[^/]' \| \
24580 X"$mf" : 'X\(//\)$' \| \
24581 X"$mf" : 'X\(/\)' \| . 2>/dev/null ||
24583 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
24587 /^X\(\/\/\)[^/].*/{
24603 # Extract the definition of DEPDIR, am__include, and am__quote
24604 # from the Makefile without running `make'.
24605 DEPDIR
=`sed -n 's/^DEPDIR = //p' < "$mf"`
24606 test -z "$DEPDIR" && continue
24607 am__include
=`sed -n 's/^am__include = //p' < "$mf"`
24608 test -z "am__include" && continue
24609 am__quote
=`sed -n 's/^am__quote = //p' < "$mf"`
24610 # When using ansi2knr, U may be empty or an underscore; expand it
24611 U
=`sed -n 's/^U = //p' < "$mf"`
24612 # Find all dependency output files, they are included files with
24613 # $(DEPDIR) in their names. We invoke sed twice because it is the
24614 # simplest approach to changing $(DEPDIR) to its actual value in the
24616 for file in `sed -n "
24617 s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \
24618 sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g' -e 's/\$U/'"$U"'/g'`; do
24619 # Make sure the directory exists.
24620 test -f "$dirpart/$file" && continue
24621 fdir
=`$as_dirname -- "$file" ||
24622 $as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
24623 X"$file" : 'X\(//\)[^/]' \| \
24624 X"$file" : 'X\(//\)$' \| \
24625 X"$file" : 'X\(/\)' \| . 2>/dev/null ||
24626 $as_echo X"$file" |
24627 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
24631 /^X\(\/\/\)[^/].*/{
24644 as_dir
=$dirpart/$fdir; as_fn_mkdir_p
24645 # echo "creating $dirpart/$file"
24646 echo '# dummy' > "$dirpart/$file"
24652 for dir
in etc lisp
; do
24653 test -d ${dir} || mkdir
${dir}
24657 echo creating src
/epaths.h
24658 ${MAKE-make} epaths-force
24661 if test ! -f src
/.gdbinit
&& test -f $srcdir/src
/.gdbinit
; then
24662 echo creating src
/.gdbinit
24663 echo source $srcdir/src
/.gdbinit
> src
/.gdbinit
24673 ac_clean_files
=$ac_clean_files_save
24675 test $ac_write_fail = 0 ||
24676 as_fn_error
"write failure creating $CONFIG_STATUS" "$LINENO" 5
24679 # configure is writing to config.log, and then calls config.status.
24680 # config.status does its own redirection, appending to config.log.
24681 # Unfortunately, on DOS this fails, as config.log is still kept open
24682 # by configure, so config.status won't be able to write to it; its
24683 # output is simply discarded. So we exec the FD to /dev/null,
24684 # effectively closing config.log, so it can be properly (re)opened and
24685 # appended to by config.status. When coming back to configure, we
24686 # need to make the FD available again.
24687 if test "$no_create" != yes; then
24689 ac_config_status_args
=
24690 test "$silent" = yes &&
24691 ac_config_status_args
="$ac_config_status_args --quiet"
24693 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success
=false
24695 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
24696 # would make configure fail if this is the last instruction.
24697 $ac_cs_success || as_fn_exit $?
24699 if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no
; then
24700 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
24701 $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}