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
632 NEXT_AS_FIRST_DIRECTIVE_UNISTD_H
634 PTHREAD_H_DEFINES_STRUCT_TIMESPEC
635 SYS_TIME_H_DEFINES_STRUCT_TIMESPEC
636 TIME_H_DEFINES_STRUCT_TIMESPEC
637 NEXT_AS_FIRST_DIRECTIVE_TIME_H
639 NEXT_AS_FIRST_DIRECTIVE_SYS_STAT_H
641 NEXT_AS_FIRST_DIRECTIVE_STDLIB_H
643 NEXT_AS_FIRST_DIRECTIVE_STDIO_H
652 REPLACE_STDIO_WRITE_FUNCS
653 REPLACE_STDIO_READ_FUNCS
662 REPLACE_OBSTACK_PRINTF
687 HAVE_DECL_OBSTACK_PRINTF
693 GNULIB_VSPRINTF_POSIX
697 GNULIB_VFPRINTF_POSIX
704 GNULIB_STDIO_H_SIGPIPE
705 GNULIB_STDIO_H_NONBLOCKING
720 GNULIB_OBSTACK_PRINTF_POSIX
721 GNULIB_OBSTACK_PRINTF
747 NEXT_AS_FIRST_DIRECTIVE_STDDEF_H
749 GL_GENERATE_STDDEF_H_FALSE
750 GL_GENERATE_STDDEF_H_TRUE
755 GL_GENERATE_STDBOOL_H_FALSE
756 GL_GENERATE_STDBOOL_H_TRUE
758 GL_GENERATE_STDARG_H_FALSE
759 GL_GENERATE_STDARG_H_TRUE
761 NEXT_AS_FIRST_DIRECTIVE_STDARG_H
763 NEXT_AS_FIRST_DIRECTIVE_SIGNAL_H
766 REPLACE_PTHREAD_SIGMASK
768 HAVE_TYPE_VOLATILE_SIG_ATOMIC_T
769 HAVE_STRUCT_SIGACTION_SA_SIGACTION
775 HAVE_POSIX_SIGNALBLOCKING
778 GNULIB_SIGNAL_H_SIGPIPE
780 GNULIB_PTHREAD_SIGMASK
789 HAVE_DECL_LOCALTIME_R
828 NEXT_AS_FIRST_DIRECTIVE_INTTYPES_H
830 UINT64_MAX_EQ_ULONG_MAX
831 UINT32_MAX_LT_UINTMAX_MAX
834 INT64_MAX_EQ_LONG_MAX
835 INT32_MAX_LT_INTMAX_MAX
844 GL_GENERATE_STDINT_H_FALSE
845 GL_GENERATE_STDINT_H_TRUE
854 HAVE_SIGNED_SIG_ATOMIC_T
857 BITSIZEOF_SIG_ATOMIC_T
860 APPLE_UNIVERSAL_BUILD
864 NEXT_AS_FIRST_DIRECTIVE_STDINT_H
869 HAVE_UNSIGNED_LONG_LONG_INT
873 NEXT_AS_FIRST_DIRECTIVE_GETOPT_H
877 INCLUDE_NEXT_AS_FIRST_DIRECTIVE
890 REPLACE_CANONICALIZE_FILE_NAME
895 HAVE_STRUCT_RANDOM_DATA
914 HAVE_CANONICALIZE_FILE_NAME
941 GNULIB_CANONICALIZE_FILE_NAME
945 UNISTD_H_HAVE_WINSOCK2_H_AND_USE_SOCKETS
946 UNISTD_H_HAVE_WINSOCK2_H
966 REPLACE_GETDOMAINNAME
976 HAVE_DECL_GETUSERSHELL
977 HAVE_DECL_GETPAGESIZE
979 HAVE_DECL_GETDOMAINNAME
1017 GNULIB_UNISTD_H_SIGPIPE
1018 GNULIB_UNISTD_H_NONBLOCKING
1019 GNULIB_UNISTD_H_GETOPT
1043 GNULIB_GETDTABLESIZE
1044 GNULIB_GETDOMAINNAME
1060 GL_GENERATE_ALLOCA_H_FALSE
1061 GL_GENERATE_ALLOCA_H_TRUE
1064 GL_COND_LIBTOOL_FALSE
1065 GL_COND_LIBTOOL_TRUE
1098 x_default_search_path
1166 LD_SWITCH_X_SITE_AUX_RPATH
1167 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 mktime:
6966 # Code from module multiarch:
6967 # Code from module nocrash:
6968 # Code from module pathmax:
6969 # Code from module pthread_sigmask:
6970 # Code from module readlink:
6971 # Code from module signal-h:
6972 # Code from module sigprocmask:
6973 # Code from module snippet/_Noreturn:
6974 # Code from module snippet/arg-nonnull:
6975 # Code from module snippet/c++defs:
6976 # Code from module snippet/warn-on-use:
6977 # Code from module socklen:
6978 # Code from module ssize_t:
6979 # Code from module stat:
6980 # Code from module stdarg:
6984 # Code from module stdbool:
6985 # Code from module stddef:
6986 # Code from module stdint:
6987 # Code from module stdio:
6988 # Code from module stdlib:
6989 # Code from module strftime:
6990 # Code from module strtoimax:
6991 # Code from module strtoll:
6992 # Code from module strtoull:
6993 # Code from module strtoumax:
6994 # Code from module symlink:
6995 # Code from module sys_stat:
6996 # Code from module time:
6997 # Code from module time_r:
6998 # Code from module u64:
6999 # Code from module unistd:
7000 # Code from module verify:
7003 # On Suns, sometimes $CPP names a directory.
7004 if test -n "$CPP" && test -d "$CPP"; then
7008 ## If not using gcc, and on Solaris, and no CPP specified, see if
7009 ## using a Sun compiler, which needs -Xs to prevent whitespace.
7010 if test x
"$GCC" != xyes
&& test x
"$emacs_check_sunpro_c" = xyes
&& \
7011 test x
"$CPP" = x
; then
7012 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using a Sun C compiler" >&5
7013 $as_echo_n "checking whether we are using a Sun C compiler... " >&6; }
7014 if test "${emacs_cv_sunpro_c+set}" = set; then :
7015 $as_echo_n "(cached) " >&6
7017 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
7018 /* end confdefs.h. */
7031 if ac_fn_c_try_link
"$LINENO"; then :
7032 emacs_cv_sunpro_c
=yes
7034 emacs_cv_sunpro_c
=no
7036 rm -f core conftest.err conftest.
$ac_objext \
7037 conftest
$ac_exeext conftest.
$ac_ext
7040 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $emacs_cv_sunpro_c" >&5
7041 $as_echo "$emacs_cv_sunpro_c" >&6; }
7043 if test x
"$emacs_cv_sunpro_c" = xyes
; then
7044 NON_GNU_CPP
="$CC -E -Xs"
7048 #### Some systems specify a CPP to use unless we are using GCC.
7049 #### Now that we know whether we are using GCC, we can decide whether
7050 #### to use that one.
7051 if test "x$NON_GNU_CPP" != x
&& test x
$GCC != xyes
&& test "x$CPP" = x
7056 #### Some systems specify a CC to use unless we are using GCC.
7057 #### Now that we know whether we are using GCC, we can decide whether
7058 #### to use that one.
7059 if test "x$NON_GNU_CC" != x
&& test x
$GCC != xyes
&&
7060 test x
$cc_specified != xyes
7065 if test x
$GCC = xyes
; then
7066 test "x$GCC_TEST_OPTIONS" != x
&& CC
="$CC $GCC_TEST_OPTIONS"
7068 test "x$NON_GCC_TEST_OPTIONS" != x
&& CC
="$CC $NON_GCC_TEST_OPTIONS"
7071 # Check whether --enable-gcc-warnings was given.
7072 if test "${enable_gcc_warnings+set}" = set; then :
7073 enableval
=$enable_gcc_warnings; case $enableval in
7075 *) as_fn_error
"bad value $enableval for gcc-warnings option" "$LINENO" 5 ;;
7077 gl_gcc_warnings
=$enableval
7084 # gl_GCC_VERSION_IFELSE([major], [minor], [run-if-found], [run-if-not-found])
7085 # ------------------------------------------------
7086 # If $CPP is gcc-MAJOR.MINOR or newer, then run RUN-IF-FOUND.
7087 # Otherwise, run RUN-IF-NOT-FOUND.
7090 # When compiling with GCC, prefer -isystem to -I when including system
7091 # include files, to avoid generating useless diagnostics for the files.
7092 if test "$gl_gcc_warnings" != yes; then
7097 # This, $nw, is the list of warnings we disable.
7100 case $with_x_toolkit in
7101 lucid | athena | motif
)
7102 # Old toolkits mishandle 'const'.
7103 nw
="$nw -Wwrite-strings"
7106 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether C compiler handles -Werror" >&5
7107 $as_echo_n "checking whether C compiler handles -Werror... " >&6; }
7108 if test "${gl_cv_warn_c__Werror+set}" = set; then :
7109 $as_echo_n "(cached) " >&6
7112 gl_save_compiler_FLAGS
="$CFLAGS"
7113 CFLAGS
="$CFLAGS -Werror"
7114 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
7115 /* end confdefs.h. */
7125 if ac_fn_c_try_compile
"$LINENO"; then :
7126 gl_cv_warn_c__Werror
=yes
7128 gl_cv_warn_c__Werror
=no
7130 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
7131 CFLAGS
="$gl_save_compiler_FLAGS"
7134 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_warn_c__Werror" >&5
7135 $as_echo "$gl_cv_warn_c__Werror" >&6; }
7136 if test "x$gl_cv_warn_c__Werror" = x
""yes; then :
7137 as_fn_append WERROR_CFLAGS
" -Werror"
7144 nw
="$nw -Waggregate-return" # anachronistic
7145 nw
="$nw -Wlong-long" # C90 is anachronistic (lib/gethrxtime.h)
7146 nw
="$nw -Wc++-compat" # We don't care about C++ compilers
7147 nw
="$nw -Wundef" # Warns on '#if GNULIB_FOO' etc in gnulib
7148 nw
="$nw -Wtraditional" # Warns on #elif which we use often
7149 nw
="$nw -Wcast-qual" # Too many warnings for now
7150 nw
="$nw -Wconversion" # Too many warnings for now
7151 nw
="$nw -Wsystem-headers" # Don't let system headers trigger warnings
7152 nw
="$nw -Wsign-conversion" # Too many warnings for now
7153 nw
="$nw -Woverlength-strings" # Not a problem these days
7154 nw
="$nw -Wtraditional-conversion" # Too many warnings for now
7155 nw
="$nw -Wpadded" # Our structs are not padded
7156 nw
="$nw -Wredundant-decls" # We regularly (re)declare getenv etc.
7157 nw
="$nw -Wlogical-op" # any use of fwrite provokes this
7158 nw
="$nw -Wformat-nonliteral" # Emacs does this a lot
7159 nw
="$nw -Wvla" # warnings in gettext.h
7160 nw
="$nw -Wnested-externs" # use of XARGMATCH/verify_function__
7161 nw
="$nw -Wswitch-enum" # Too many warnings for now
7162 nw
="$nw -Wswitch-default" # Too many warnings for now
7163 nw
="$nw -Wfloat-equal" # e.g., ftoastr.c
7164 nw
="$nw -Winline" # e.g., dispnew.c's inlining of row_equal_p
7166 # Emacs doesn't care about shadowing; see
7167 # <http://lists.gnu.org/archive/html/emacs-diffs/2011-11/msg00265.html>.
7170 # The following lines should be removable at some point.
7171 nw
="$nw -Wstack-protector"
7172 nw
="$nw -Wstrict-overflow"
7173 nw
="$nw -Wsuggest-attribute=const"
7174 nw
="$nw -Wsuggest-attribute=pure"
7178 if test -n "$GCC"; then
7180 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -Wno-missing-field-initializers is supported" >&5
7181 $as_echo_n "checking whether -Wno-missing-field-initializers is supported... " >&6; }
7182 if test "${gl_cv_cc_nomfi_supported+set}" = set; then :
7183 $as_echo_n "(cached) " >&6
7186 gl_save_CFLAGS
="$CFLAGS"
7187 CFLAGS
="$CFLAGS -W -Werror -Wno-missing-field-initializers"
7188 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
7189 /* end confdefs.h. */
7199 if ac_fn_c_try_compile
"$LINENO"; then :
7200 gl_cv_cc_nomfi_supported
=yes
7202 gl_cv_cc_nomfi_supported
=no
7204 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
7205 CFLAGS
="$gl_save_CFLAGS"
7208 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_cc_nomfi_supported" >&5
7209 $as_echo "$gl_cv_cc_nomfi_supported" >&6; }
7211 if test "$gl_cv_cc_nomfi_supported" = yes; then
7212 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -Wno-missing-field-initializers is needed" >&5
7213 $as_echo_n "checking whether -Wno-missing-field-initializers is needed... " >&6; }
7214 if test "${gl_cv_cc_nomfi_needed+set}" = set; then :
7215 $as_echo_n "(cached) " >&6
7218 gl_save_CFLAGS
="$CFLAGS"
7219 CFLAGS
="$CFLAGS -W -Werror"
7220 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
7221 /* end confdefs.h. */
7224 typedef struct { int a; int b; } s_t;
7236 if ac_fn_c_try_compile
"$LINENO"; then :
7237 gl_cv_cc_nomfi_needed
=no
7239 gl_cv_cc_nomfi_needed
=yes
7241 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
7242 CFLAGS
="$gl_save_CFLAGS"
7246 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_cc_nomfi_needed" >&5
7247 $as_echo "$gl_cv_cc_nomfi_needed" >&6; }
7252 for gl_manywarn_item
in \
7256 -Wformat-nonliteral \
7259 -Wmissing-include-dirs \
7269 -Wtraditional-conversion \
7270 -Wdeclaration-after-statement \
7273 -Wunsafe-loop-optimizations \
7275 -Wbad-function-cast \
7283 -Waggregate-return \
7284 -Wstrict-prototypes \
7285 -Wold-style-definition \
7286 -Wmissing-prototypes \
7287 -Wmissing-declarations \
7288 -Wmissing-noreturn \
7289 -Wmissing-format-attribute \
7294 -Wunreachable-code \
7299 -Wvolatile-register-var \
7300 -Wdisabled-optimization \
7302 -Woverlength-strings \
7303 -Wbuiltin-macro-redefined \
7305 -Wpacked-bitfield-compat \
7308 gl_manywarn_set
="$gl_manywarn_set $gl_manywarn_item"
7310 # The following are not documented in the manual but are included in
7311 # output from gcc --help=warnings.
7312 for gl_manywarn_item
in \
7314 -Wcoverage-mismatch \
7318 gl_manywarn_set
="$gl_manywarn_set $gl_manywarn_item"
7320 # More warnings from gcc 4.6.2 --help=warnings.
7321 for gl_manywarn_item
in \
7325 -Wdeprecated-declarations \
7327 -Wdouble-promotion \
7330 -Wformat-contains-nul \
7331 -Wformat-extra-args \
7332 -Wformat-zero-length \
7337 -Wpointer-to-int-cast \
7339 -Wsuggest-attribute=const \
7340 -Wsuggest-attribute=noreturn \
7341 -Wsuggest-attribute=pure \
7344 gl_manywarn_set
="$gl_manywarn_set $gl_manywarn_item"
7347 # Disable the missing-field-initializers warning if needed
7348 if test "$gl_cv_cc_nomfi_needed" = yes; then
7349 gl_manywarn_set
="$gl_manywarn_set -Wno-missing-field-initializers"
7360 *" $gl_warn_item "*)
7363 gl_warn_set
="$gl_warn_set $gl_warn_item"
7370 as_gl_Warn
=`$as_echo "gl_cv_warn_c_$w" | $as_tr_sh`
7371 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether C compiler handles $w" >&5
7372 $as_echo_n "checking whether C compiler handles $w... " >&6; }
7373 if { as_var
=$as_gl_Warn; eval "test \"\${$as_var+set}\" = set"; }; then :
7374 $as_echo_n "(cached) " >&6
7377 gl_save_compiler_FLAGS
="$CFLAGS"
7379 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
7380 /* end confdefs.h. */
7390 if ac_fn_c_try_compile
"$LINENO"; then :
7391 eval "$as_gl_Warn=yes"
7393 eval "$as_gl_Warn=no"
7395 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
7396 CFLAGS
="$gl_save_compiler_FLAGS"
7399 eval ac_res
=\$
$as_gl_Warn
7400 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
7401 $as_echo "$ac_res" >&6; }
7402 eval as_val
=\$
$as_gl_Warn
7403 if test "x$as_val" = x
""yes; then :
7404 as_fn_append WARN_CFLAGS
" $w"
7408 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether C compiler handles -Wno-missing-field-initializers" >&5
7409 $as_echo_n "checking whether C compiler handles -Wno-missing-field-initializers... " >&6; }
7410 if test "${gl_cv_warn_c__Wno_missing_field_initializers+set}" = set; then :
7411 $as_echo_n "(cached) " >&6
7414 gl_save_compiler_FLAGS
="$CFLAGS"
7415 CFLAGS
="$CFLAGS -Wno-missing-field-initializers"
7416 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
7417 /* end confdefs.h. */
7427 if ac_fn_c_try_compile
"$LINENO"; then :
7428 gl_cv_warn_c__Wno_missing_field_initializers
=yes
7430 gl_cv_warn_c__Wno_missing_field_initializers
=no
7432 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
7433 CFLAGS
="$gl_save_compiler_FLAGS"
7436 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_warn_c__Wno_missing_field_initializers" >&5
7437 $as_echo "$gl_cv_warn_c__Wno_missing_field_initializers" >&6; }
7438 if test "x$gl_cv_warn_c__Wno_missing_field_initializers" = x
""yes; then :
7439 as_fn_append WARN_CFLAGS
" -Wno-missing-field-initializers"
7442 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether C compiler handles -Wno-sign-compare" >&5
7443 $as_echo_n "checking whether C compiler handles -Wno-sign-compare... " >&6; }
7444 if test "${gl_cv_warn_c__Wno_sign_compare+set}" = set; then :
7445 $as_echo_n "(cached) " >&6
7448 gl_save_compiler_FLAGS
="$CFLAGS"
7449 CFLAGS
="$CFLAGS -Wno-sign-compare"
7450 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
7451 /* end confdefs.h. */
7461 if ac_fn_c_try_compile
"$LINENO"; then :
7462 gl_cv_warn_c__Wno_sign_compare
=yes
7464 gl_cv_warn_c__Wno_sign_compare
=no
7466 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
7467 CFLAGS
="$gl_save_compiler_FLAGS"
7470 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_warn_c__Wno_sign_compare" >&5
7471 $as_echo "$gl_cv_warn_c__Wno_sign_compare" >&6; }
7472 if test "x$gl_cv_warn_c__Wno_sign_compare" = x
""yes; then :
7473 as_fn_append WARN_CFLAGS
" -Wno-sign-compare"
7475 # Too many warnings for now
7476 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether C compiler handles -Wno-type-limits" >&5
7477 $as_echo_n "checking whether C compiler handles -Wno-type-limits... " >&6; }
7478 if test "${gl_cv_warn_c__Wno_type_limits+set}" = set; then :
7479 $as_echo_n "(cached) " >&6
7482 gl_save_compiler_FLAGS
="$CFLAGS"
7483 CFLAGS
="$CFLAGS -Wno-type-limits"
7484 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
7485 /* end confdefs.h. */
7495 if ac_fn_c_try_compile
"$LINENO"; then :
7496 gl_cv_warn_c__Wno_type_limits
=yes
7498 gl_cv_warn_c__Wno_type_limits
=no
7500 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
7501 CFLAGS
="$gl_save_compiler_FLAGS"
7504 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_warn_c__Wno_type_limits" >&5
7505 $as_echo "$gl_cv_warn_c__Wno_type_limits" >&6; }
7506 if test "x$gl_cv_warn_c__Wno_type_limits" = x
""yes; then :
7507 as_fn_append WARN_CFLAGS
" -Wno-type-limits"
7509 # Too many warnings for now
7510 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether C compiler handles -Wno-switch" >&5
7511 $as_echo_n "checking whether C compiler handles -Wno-switch... " >&6; }
7512 if test "${gl_cv_warn_c__Wno_switch+set}" = set; then :
7513 $as_echo_n "(cached) " >&6
7516 gl_save_compiler_FLAGS
="$CFLAGS"
7517 CFLAGS
="$CFLAGS -Wno-switch"
7518 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
7519 /* end confdefs.h. */
7529 if ac_fn_c_try_compile
"$LINENO"; then :
7530 gl_cv_warn_c__Wno_switch
=yes
7532 gl_cv_warn_c__Wno_switch
=no
7534 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
7535 CFLAGS
="$gl_save_compiler_FLAGS"
7538 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_warn_c__Wno_switch" >&5
7539 $as_echo "$gl_cv_warn_c__Wno_switch" >&6; }
7540 if test "x$gl_cv_warn_c__Wno_switch" = x
""yes; then :
7541 as_fn_append WARN_CFLAGS
" -Wno-switch"
7543 # Too many warnings for now
7544 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether C compiler handles -Wno-unused-parameter" >&5
7545 $as_echo_n "checking whether C compiler handles -Wno-unused-parameter... " >&6; }
7546 if test "${gl_cv_warn_c__Wno_unused_parameter+set}" = set; then :
7547 $as_echo_n "(cached) " >&6
7550 gl_save_compiler_FLAGS
="$CFLAGS"
7551 CFLAGS
="$CFLAGS -Wno-unused-parameter"
7552 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
7553 /* end confdefs.h. */
7563 if ac_fn_c_try_compile
"$LINENO"; then :
7564 gl_cv_warn_c__Wno_unused_parameter
=yes
7566 gl_cv_warn_c__Wno_unused_parameter
=no
7568 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
7569 CFLAGS
="$gl_save_compiler_FLAGS"
7572 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_warn_c__Wno_unused_parameter" >&5
7573 $as_echo "$gl_cv_warn_c__Wno_unused_parameter" >&6; }
7574 if test "x$gl_cv_warn_c__Wno_unused_parameter" = x
""yes; then :
7575 as_fn_append WARN_CFLAGS
" -Wno-unused-parameter"
7577 # Too many warnings for now
7578 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether C compiler handles -Wno-format-nonliteral" >&5
7579 $as_echo_n "checking whether C compiler handles -Wno-format-nonliteral... " >&6; }
7580 if test "${gl_cv_warn_c__Wno_format_nonliteral+set}" = set; then :
7581 $as_echo_n "(cached) " >&6
7584 gl_save_compiler_FLAGS
="$CFLAGS"
7585 CFLAGS
="$CFLAGS -Wno-format-nonliteral"
7586 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
7587 /* end confdefs.h. */
7597 if ac_fn_c_try_compile
"$LINENO"; then :
7598 gl_cv_warn_c__Wno_format_nonliteral
=yes
7600 gl_cv_warn_c__Wno_format_nonliteral
=no
7602 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
7603 CFLAGS
="$gl_save_compiler_FLAGS"
7606 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_warn_c__Wno_format_nonliteral" >&5
7607 $as_echo "$gl_cv_warn_c__Wno_format_nonliteral" >&6; }
7608 if test "x$gl_cv_warn_c__Wno_format_nonliteral" = x
""yes; then :
7609 as_fn_append WARN_CFLAGS
" -Wno-format-nonliteral"
7613 # In spite of excluding -Wlogical-op above, it is enabled, as of
7614 # gcc 4.5.0 20090517.
7615 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether C compiler handles -Wno-logical-op" >&5
7616 $as_echo_n "checking whether C compiler handles -Wno-logical-op... " >&6; }
7617 if test "${gl_cv_warn_c__Wno_logical_op+set}" = set; then :
7618 $as_echo_n "(cached) " >&6
7621 gl_save_compiler_FLAGS
="$CFLAGS"
7622 CFLAGS
="$CFLAGS -Wno-logical-op"
7623 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
7624 /* end confdefs.h. */
7634 if ac_fn_c_try_compile
"$LINENO"; then :
7635 gl_cv_warn_c__Wno_logical_op
=yes
7637 gl_cv_warn_c__Wno_logical_op
=no
7639 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
7640 CFLAGS
="$gl_save_compiler_FLAGS"
7643 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_warn_c__Wno_logical_op" >&5
7644 $as_echo "$gl_cv_warn_c__Wno_logical_op" >&6; }
7645 if test "x$gl_cv_warn_c__Wno_logical_op" = x
""yes; then :
7646 as_fn_append WARN_CFLAGS
" -Wno-logical-op"
7650 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether C compiler handles -fdiagnostics-show-option" >&5
7651 $as_echo_n "checking whether C compiler handles -fdiagnostics-show-option... " >&6; }
7652 if test "${gl_cv_warn_c__fdiagnostics_show_option+set}" = set; then :
7653 $as_echo_n "(cached) " >&6
7656 gl_save_compiler_FLAGS
="$CFLAGS"
7657 CFLAGS
="$CFLAGS -fdiagnostics-show-option"
7658 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
7659 /* end confdefs.h. */
7669 if ac_fn_c_try_compile
"$LINENO"; then :
7670 gl_cv_warn_c__fdiagnostics_show_option
=yes
7672 gl_cv_warn_c__fdiagnostics_show_option
=no
7674 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
7675 CFLAGS
="$gl_save_compiler_FLAGS"
7678 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_warn_c__fdiagnostics_show_option" >&5
7679 $as_echo "$gl_cv_warn_c__fdiagnostics_show_option" >&6; }
7680 if test "x$gl_cv_warn_c__fdiagnostics_show_option" = x
""yes; then :
7681 as_fn_append WARN_CFLAGS
" -fdiagnostics-show-option"
7684 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether C compiler handles -funit-at-a-time" >&5
7685 $as_echo_n "checking whether C compiler handles -funit-at-a-time... " >&6; }
7686 if test "${gl_cv_warn_c__funit_at_a_time+set}" = set; then :
7687 $as_echo_n "(cached) " >&6
7690 gl_save_compiler_FLAGS
="$CFLAGS"
7691 CFLAGS
="$CFLAGS -funit-at-a-time"
7692 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
7693 /* end confdefs.h. */
7703 if ac_fn_c_try_compile
"$LINENO"; then :
7704 gl_cv_warn_c__funit_at_a_time
=yes
7706 gl_cv_warn_c__funit_at_a_time
=no
7708 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
7709 CFLAGS
="$gl_save_compiler_FLAGS"
7712 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_warn_c__funit_at_a_time" >&5
7713 $as_echo "$gl_cv_warn_c__funit_at_a_time" >&6; }
7714 if test "x$gl_cv_warn_c__funit_at_a_time" = x
""yes; then :
7715 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.
10530 doug_lea_malloc
=yes
10531 ac_fn_c_check_func
"$LINENO" "malloc_get_state" "ac_cv_func_malloc_get_state"
10532 if test "x$ac_cv_func_malloc_get_state" = x
""yes; then :
10538 ac_fn_c_check_func
"$LINENO" "malloc_set_state" "ac_cv_func_malloc_set_state"
10539 if test "x$ac_cv_func_malloc_set_state" = x
""yes; then :
10545 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether __after_morecore_hook exists" >&5
10546 $as_echo_n "checking whether __after_morecore_hook exists... " >&6; }
10547 if test "${emacs_cv_var___after_morecore_hook+set}" = set; then :
10548 $as_echo_n "(cached) " >&6
10550 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
10551 /* end confdefs.h. */
10552 extern void (* __after_morecore_hook)();
10556 __after_morecore_hook = 0
10561 if ac_fn_c_try_link
"$LINENO"; then :
10562 emacs_cv_var___after_morecore_hook
=yes
10564 emacs_cv_var___after_morecore_hook
=no
10566 rm -f core conftest.err conftest.
$ac_objext \
10567 conftest
$ac_exeext conftest.
$ac_ext
10569 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $emacs_cv_var___after_morecore_hook" >&5
10570 $as_echo "$emacs_cv_var___after_morecore_hook" >&6; }
10571 if test $emacs_cv_var___after_morecore_hook = no
; then
10578 ## darwin ld insists on the use of malloc routines in the System framework.
10579 darwin|sol2-10
) system_malloc
=yes ;;
10582 if test "${system_malloc}" = "yes"; then
10584 $as_echo "#define SYSTEM_MALLOC 1" >>confdefs.h
10587 GNU_MALLOC_reason
="
10588 (The GNU allocators don't work with this system configuration.)"
10592 test "$doug_lea_malloc" != "yes" && GMALLOC_OBJ
=gmalloc.o
10593 VMLIMIT_OBJ
=vm-limit.o
10598 if test "$doug_lea_malloc" = "yes" ; then
10599 if test "$GNU_MALLOC" = yes ; then
10600 GNU_MALLOC_reason
="
10601 (Using Doug Lea's new malloc from the GNU C Library.)"
10604 $as_echo "#define DOUG_LEA_MALLOC 1" >>confdefs.h
10607 ## Use mmap directly for allocating larger buffers.
10608 ## FIXME this comes from src/s/{gnu,gnu-linux}.h:
10609 ## #ifdef DOUG_LEA_MALLOC; #undef REL_ALLOC; #endif
10610 ## Does the AC_FUNC_MMAP test below make this check unnecessary?
10612 gnu
*) REL_ALLOC
=no
;;
10616 if test x
"${REL_ALLOC}" = x
; then
10617 REL_ALLOC
=${GNU_MALLOC}
10620 use_mmap_for_buffers
=no
10622 cygwin|freebsd|irix6-5
) use_mmap_for_buffers
=yes ;;
10628 for ac_header
in $ac_header_list
10630 as_ac_Header
=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
10631 ac_fn_c_check_header_compile
"$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
10633 eval as_val
=\$
$as_ac_Header
10634 if test "x$as_val" = x
""yes; then :
10635 cat >>confdefs.h
<<_ACEOF
10636 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
10650 for ac_func
in getpagesize
10652 ac_fn_c_check_func
"$LINENO" "getpagesize" "ac_cv_func_getpagesize"
10653 if test "x$ac_cv_func_getpagesize" = x
""yes; then :
10654 cat >>confdefs.h
<<_ACEOF
10655 #define HAVE_GETPAGESIZE 1
10661 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working mmap" >&5
10662 $as_echo_n "checking for working mmap... " >&6; }
10663 if test "${ac_cv_func_mmap_fixed_mapped+set}" = set; then :
10664 $as_echo_n "(cached) " >&6
10666 if test "$cross_compiling" = yes; then :
10667 ac_cv_func_mmap_fixed_mapped
=no
10669 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
10670 /* end confdefs.h. */
10671 $ac_includes_default
10672 /* malloc might have been renamed as rpl_malloc. */
10675 /* Thanks to Mike Haertel and Jim Avera for this test.
10676 Here is a matrix of mmap possibilities:
10677 mmap private not fixed
10678 mmap private fixed at somewhere currently unmapped
10679 mmap private fixed at somewhere already mapped
10680 mmap shared not fixed
10681 mmap shared fixed at somewhere currently unmapped
10682 mmap shared fixed at somewhere already mapped
10683 For private mappings, we should verify that changes cannot be read()
10684 back from the file, nor mmap's back from the file at a different
10685 address. (There have been systems where private was not correctly
10686 implemented like the infamous i386 svr4.0, and systems where the
10687 VM page cache was not coherent with the file system buffer cache
10688 like early versions of FreeBSD and possibly contemporary NetBSD.)
10689 For shared mappings, we should conversely verify that changes get
10690 propagated back to all the places they're supposed to be.
10692 Grep wants private fixed already mapped.
10693 The main things grep needs to know about mmap are:
10694 * does it exist and is it safe to write into the mmap'd area
10695 * how to use it (BSD variants) */
10698 #include <sys/mman.h>
10700 #if !defined STDC_HEADERS && !defined HAVE_STDLIB_H
10704 /* This mess was copied from the GNU getpagesize.h. */
10705 #ifndef HAVE_GETPAGESIZE
10706 # ifdef _SC_PAGESIZE
10707 # define getpagesize() sysconf(_SC_PAGESIZE)
10708 # else /* no _SC_PAGESIZE */
10709 # ifdef HAVE_SYS_PARAM_H
10710 # include <sys/param.h>
10711 # ifdef EXEC_PAGESIZE
10712 # define getpagesize() EXEC_PAGESIZE
10713 # else /* no EXEC_PAGESIZE */
10715 # define getpagesize() NBPG * CLSIZE
10718 # endif /* no CLSIZE */
10719 # else /* no NBPG */
10721 # define getpagesize() NBPC
10722 # else /* no NBPC */
10724 # define getpagesize() PAGESIZE
10725 # endif /* PAGESIZE */
10726 # endif /* no NBPC */
10727 # endif /* no NBPG */
10728 # endif /* no EXEC_PAGESIZE */
10729 # else /* no HAVE_SYS_PARAM_H */
10730 # define getpagesize() 8192 /* punt totally */
10731 # endif /* no HAVE_SYS_PARAM_H */
10732 # endif /* no _SC_PAGESIZE */
10734 #endif /* no HAVE_GETPAGESIZE */
10739 char *data, *data2, *data3;
10740 const char *cdata2;
10744 pagesize = getpagesize ();
10746 /* First, make a file with some known garbage in it. */
10747 data = (char *) malloc (pagesize);
10750 for (i = 0; i < pagesize; ++i)
10751 *(data + i) = rand ();
10753 fd = creat ("conftest.mmap", 0600);
10756 if (write (fd, data, pagesize) != pagesize)
10760 /* Next, check that the tail of a page is zero-filled. File must have
10761 non-zero length, otherwise we risk SIGBUS for entire page. */
10762 fd2 = open ("conftest.txt", O_RDWR | O_CREAT | O_TRUNC, 0600);
10766 if (write (fd2, cdata2, 1) != 1)
10768 data2 = (char *) mmap (0, pagesize, PROT_READ | PROT_WRITE, MAP_SHARED, fd2, 0L);
10769 if (data2 == MAP_FAILED)
10771 for (i = 0; i < pagesize; ++i)
10775 if (munmap (data2, pagesize))
10778 /* Next, try to mmap the file at a fixed address which already has
10779 something else allocated at it. If we can, also make sure that
10780 we see the same garbage. */
10781 fd = open ("conftest.mmap", O_RDWR);
10784 if (data2 != mmap (data2, pagesize, PROT_READ | PROT_WRITE,
10785 MAP_PRIVATE | MAP_FIXED, fd, 0L))
10787 for (i = 0; i < pagesize; ++i)
10788 if (*(data + i) != *(data2 + i))
10791 /* Finally, make sure that changes to the mapped area do not
10792 percolate back to the file as seen by read(). (This is a bug on
10793 some variants of i386 svr4.0.) */
10794 for (i = 0; i < pagesize; ++i)
10795 *(data2 + i) = *(data2 + i) + 1;
10796 data3 = (char *) malloc (pagesize);
10799 if (read (fd, data3, pagesize) != pagesize)
10801 for (i = 0; i < pagesize; ++i)
10802 if (*(data + i) != *(data3 + i))
10808 if ac_fn_c_try_run
"$LINENO"; then :
10809 ac_cv_func_mmap_fixed_mapped
=yes
10811 ac_cv_func_mmap_fixed_mapped
=no
10813 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
10814 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
10818 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_mmap_fixed_mapped" >&5
10819 $as_echo "$ac_cv_func_mmap_fixed_mapped" >&6; }
10820 if test $ac_cv_func_mmap_fixed_mapped = yes; then
10822 $as_echo "#define HAVE_MMAP 1" >>confdefs.h
10825 rm -f conftest.mmap conftest.txt
10827 if test $use_mmap_for_buffers = yes; then
10829 $as_echo "#define USE_MMAP_FOR_BUFFERS 1" >>confdefs.h
10834 LIBS
="$LIBS_SYSTEM $LIBS"
10836 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dnet_ntoa in -ldnet" >&5
10837 $as_echo_n "checking for dnet_ntoa in -ldnet... " >&6; }
10838 if test "${ac_cv_lib_dnet_dnet_ntoa+set}" = set; then :
10839 $as_echo_n "(cached) " >&6
10841 ac_check_lib_save_LIBS
=$LIBS
10842 LIBS
="-ldnet $LIBS"
10843 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
10844 /* end confdefs.h. */
10846 /* Override any GCC internal prototype to avoid an error.
10847 Use char because int might match the return type of a GCC
10848 builtin and then its argument prototype would still apply. */
10856 return dnet_ntoa ();
10861 if ac_fn_c_try_link
"$LINENO"; then :
10862 ac_cv_lib_dnet_dnet_ntoa
=yes
10864 ac_cv_lib_dnet_dnet_ntoa
=no
10866 rm -f core conftest.err conftest.
$ac_objext \
10867 conftest
$ac_exeext conftest.
$ac_ext
10868 LIBS
=$ac_check_lib_save_LIBS
10870 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dnet_dnet_ntoa" >&5
10871 $as_echo "$ac_cv_lib_dnet_dnet_ntoa" >&6; }
10872 if test "x$ac_cv_lib_dnet_dnet_ntoa" = x
""yes; then :
10873 cat >>confdefs.h
<<_ACEOF
10874 #define HAVE_LIBDNET 1
10877 LIBS
="-ldnet $LIBS"
10882 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for main in -lXbsd" >&5
10883 $as_echo_n "checking for main in -lXbsd... " >&6; }
10884 if test "${ac_cv_lib_Xbsd_main+set}" = set; then :
10885 $as_echo_n "(cached) " >&6
10887 ac_check_lib_save_LIBS
=$LIBS
10888 LIBS
="-lXbsd $LIBS"
10889 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
10890 /* end confdefs.h. */
10901 if ac_fn_c_try_link
"$LINENO"; then :
10902 ac_cv_lib_Xbsd_main
=yes
10904 ac_cv_lib_Xbsd_main
=no
10906 rm -f core conftest.err conftest.
$ac_objext \
10907 conftest
$ac_exeext conftest.
$ac_ext
10908 LIBS
=$ac_check_lib_save_LIBS
10910 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_Xbsd_main" >&5
10911 $as_echo "$ac_cv_lib_Xbsd_main" >&6; }
10912 if test "x$ac_cv_lib_Xbsd_main" = x
""yes; then :
10913 LD_SWITCH_X_SITE
="$LD_SWITCH_X_SITE -lXbsd"
10918 for ac_header
in pthread.h
10920 ac_fn_c_check_header_mongrel
"$LINENO" "pthread.h" "ac_cv_header_pthread_h" "$ac_includes_default"
10921 if test "x$ac_cv_header_pthread_h" = x
""yes; then :
10922 cat >>confdefs.h
<<_ACEOF
10923 #define HAVE_PTHREAD_H 1
10930 if test "$ac_cv_header_pthread_h"; then
10931 if test "$GMALLOC_OBJ" = gmalloc.o
; then
10932 emacs_pthread_function
=pthread_atfork
10934 emacs_pthread_function
=pthread_self
10936 as_ac_Lib
=`$as_echo "ac_cv_lib_pthread_$emacs_pthread_function" | $as_tr_sh`
10937 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $emacs_pthread_function in -lpthread" >&5
10938 $as_echo_n "checking for $emacs_pthread_function in -lpthread... " >&6; }
10939 if { as_var
=$as_ac_Lib; eval "test \"\${$as_var+set}\" = set"; }; then :
10940 $as_echo_n "(cached) " >&6
10942 ac_check_lib_save_LIBS
=$LIBS
10943 LIBS
="-lpthread $LIBS"
10944 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
10945 /* end confdefs.h. */
10947 /* Override any GCC internal prototype to avoid an error.
10948 Use char because int might match the return type of a GCC
10949 builtin and then its argument prototype would still apply. */
10953 char $emacs_pthread_function ();
10957 return $emacs_pthread_function ();
10962 if ac_fn_c_try_link
"$LINENO"; then :
10963 eval "$as_ac_Lib=yes"
10965 eval "$as_ac_Lib=no"
10967 rm -f core conftest.err conftest.
$ac_objext \
10968 conftest
$ac_exeext conftest.
$ac_ext
10969 LIBS
=$ac_check_lib_save_LIBS
10971 eval ac_res
=\$
$as_ac_Lib
10972 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
10973 $as_echo "$ac_res" >&6; }
10974 eval as_val
=\$
$as_ac_Lib
10975 if test "x$as_val" = x
""yes; then :
10980 if test "$HAVE_PTHREAD" = yes; then
10981 case "${canonical}" in
10983 *) LIB_PTHREAD
="-lpthread"
10984 LIBS
="$LIB_PTHREAD $LIBS" ;;
10987 $as_echo "#define HAVE_PTHREAD 1" >>confdefs.h
10992 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for cma_open in -lpthreads" >&5
10993 $as_echo_n "checking for cma_open in -lpthreads... " >&6; }
10994 if test "${ac_cv_lib_pthreads_cma_open+set}" = set; then :
10995 $as_echo_n "(cached) " >&6
10997 ac_check_lib_save_LIBS
=$LIBS
10998 LIBS
="-lpthreads $LIBS"
10999 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
11000 /* end confdefs.h. */
11002 /* Override any GCC internal prototype to avoid an error.
11003 Use char because int might match the return type of a GCC
11004 builtin and then its argument prototype would still apply. */
11012 return cma_open ();
11017 if ac_fn_c_try_link
"$LINENO"; then :
11018 ac_cv_lib_pthreads_cma_open
=yes
11020 ac_cv_lib_pthreads_cma_open
=no
11022 rm -f core conftest.err conftest.
$ac_objext \
11023 conftest
$ac_exeext conftest.
$ac_ext
11024 LIBS
=$ac_check_lib_save_LIBS
11026 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_pthreads_cma_open" >&5
11027 $as_echo "$ac_cv_lib_pthreads_cma_open" >&6; }
11028 if test "x$ac_cv_lib_pthreads_cma_open" = x
""yes; then :
11029 cat >>confdefs.h
<<_ACEOF
11030 #define HAVE_LIBPTHREADS 1
11033 LIBS
="-lpthreads $LIBS"
11038 ## Note: when using cpp in s/aix4.2.h, this definition depended on
11039 ## HAVE_LIBPTHREADS. That was not defined earlier in configure when
11040 ## the system file was sourced. Hence the value of LIBS_SYSTEM
11041 ## added to LIBS in configure would never contain the pthreads part,
11042 ## but the value used in Makefiles might. FIXME?
11044 ## -lpthreads seems to be necessary for Xlib in X11R6, and should
11045 ## be harmless on older versions of X where it happens to exist.
11046 test "$opsys" = "aix4-2" && \
11047 test $ac_cv_lib_pthreads_cma_open = yes && \
11048 LIBS_SYSTEM
="$LIBS_SYSTEM -lpthreads"
11053 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -bbigtoc option" >&5
11054 $as_echo_n "checking for -bbigtoc option... " >&6; }
11055 if test "${gdb_cv_bigtoc+set}" = set; then :
11056 $as_echo_n "(cached) " >&6
11060 yes) gdb_cv_bigtoc
=-Wl,-bbigtoc ;;
11061 *) gdb_cv_bigtoc
=-bbigtoc ;;
11064 LDFLAGS
=$LDFLAGS\
$gdb_cv_bigtoc
11065 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
11066 /* end confdefs.h. */
11076 if ac_fn_c_try_link
"$LINENO"; then :
11081 rm -f core conftest.err conftest.
$ac_objext \
11082 conftest
$ac_exeext conftest.
$ac_ext
11085 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gdb_cv_bigtoc" >&5
11086 $as_echo "$gdb_cv_bigtoc" >&6; }
11090 # Change CFLAGS and CPPFLAGS temporarily so that C_SWITCH_X_SITE gets
11091 # used for the tests that follow. We set them back to REAL_CFLAGS and
11092 # REAL_CPPFLAGS later on.
11094 REAL_CFLAGS
="$CFLAGS"
11095 REAL_CPPFLAGS
="$CPPFLAGS"
11097 if test "${HAVE_X11}" = "yes"; then
11098 DEFS
="$C_SWITCH_X_SITE $DEFS"
11099 LDFLAGS
="$LDFLAGS $LD_SWITCH_X_SITE"
11101 CFLAGS
="$C_SWITCH_X_SITE $CFLAGS"
11102 CPPFLAGS
="$C_SWITCH_X_SITE $CPPFLAGS"
11104 # On Solaris, arrange for LD_RUN_PATH to point to the X libraries for tests.
11105 # This is handled by LD_SWITCH_X_SITE_AUX during the real build,
11106 # but it's more convenient here to set LD_RUN_PATH
11107 # since this also works on hosts that don't understand LD_SWITCH_X_SITE_AUX.
11108 if test "${x_libraries}" != NONE
&& test -n "${x_libraries}"; then
11109 LD_RUN_PATH
=$x_libraries${LD_RUN_PATH+:}$LD_RUN_PATH
11113 if test "${opsys}" = "gnu-linux"; then
11114 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether X on GNU/Linux needs -b to link" >&5
11115 $as_echo_n "checking whether X on GNU/Linux needs -b to link... " >&6; }
11116 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
11117 /* end confdefs.h. */
11122 XOpenDisplay ("foo");
11127 if ac_fn_c_try_link
"$LINENO"; then :
11128 xgnu_linux_first_failure
=no
11130 xgnu_linux_first_failure
=yes
11132 rm -f core conftest.err conftest.
$ac_objext \
11133 conftest
$ac_exeext conftest.
$ac_ext
11134 if test "${xgnu_linux_first_failure}" = "yes"; then
11135 OLD_LD_SWITCH_X_SITE
="$LD_SWITCH_X_SITE"
11136 OLD_C_SWITCH_X_SITE
="$C_SWITCH_X_SITE"
11137 OLD_CPPFLAGS
="$CPPFLAGS"
11139 LD_SWITCH_X_SITE
="$LD_SWITCH_X_SITE -b i486-linuxaout"
11140 C_SWITCH_X_SITE
="$C_SWITCH_X_SITE -b i486-linuxaout"
11141 CPPFLAGS
="$CPPFLAGS -b i486-linuxaout"
11142 LIBS
="$LIBS -b i486-linuxaout"
11143 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
11144 /* end confdefs.h. */
11149 XOpenDisplay ("foo");
11154 if ac_fn_c_try_link
"$LINENO"; then :
11155 xgnu_linux_second_failure
=no
11157 xgnu_linux_second_failure
=yes
11159 rm -f core conftest.err conftest.
$ac_objext \
11160 conftest
$ac_exeext conftest.
$ac_ext
11161 if test "${xgnu_linux_second_failure}" = "yes"; then
11162 # If we get the same failure with -b, there is no use adding -b.
11163 # So take it out. This plays safe.
11164 LD_SWITCH_X_SITE
="$OLD_LD_SWITCH_X_SITE"
11165 C_SWITCH_X_SITE
="$OLD_C_SWITCH_X_SITE"
11166 CPPFLAGS
="$OLD_CPPFLAGS"
11168 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11169 $as_echo "no" >&6; }
11171 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11172 $as_echo "yes" >&6; }
11175 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11176 $as_echo "no" >&6; }
11180 # Reportedly, some broken Solaris systems have XKBlib.h but are missing
11181 # header files included from there.
11182 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Xkb" >&5
11183 $as_echo_n "checking for Xkb... " >&6; }
11184 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
11185 /* end confdefs.h. */
11186 #include <X11/Xlib.h>
11187 #include <X11/XKBlib.h>
11191 XkbDescPtr kb = XkbGetKeyboard (0, XkbAllComponentsMask, XkbUseCoreKbd);
11196 if ac_fn_c_try_link
"$LINENO"; then :
11201 rm -f core conftest.err conftest.
$ac_objext \
11202 conftest
$ac_exeext conftest.
$ac_ext
11203 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $emacs_xkb" >&5
11204 $as_echo "$emacs_xkb" >&6; }
11205 if test $emacs_xkb = yes; then
11207 $as_echo "#define HAVE_XKBGETKEYBOARD 1" >>confdefs.h
11211 for ac_func
in XrmSetDatabase XScreenResourceString \
11212 XScreenNumberOfScreen XSetWMProtocols
11214 as_ac_var
=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
11215 ac_fn_c_check_func
"$LINENO" "$ac_func" "$as_ac_var"
11216 eval as_val
=\$
$as_ac_var
11217 if test "x$as_val" = x
""yes; then :
11218 cat >>confdefs.h
<<_ACEOF
11219 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
11227 if test "${window_system}" = "x11"; then
11228 { $as_echo "$as_me:${as_lineno-$LINENO}: checking X11 version 6" >&5
11229 $as_echo_n "checking X11 version 6... " >&6; }
11230 if test "${emacs_cv_x11_version_6+set}" = set; then :
11231 $as_echo_n "(cached) " >&6
11233 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
11234 /* end confdefs.h. */
11235 #include <X11/Xlib.h>
11239 #if XlibSpecificationRelease < 6
11247 if ac_fn_c_try_link
"$LINENO"; then :
11248 emacs_cv_x11_version_6
=yes
11250 emacs_cv_x11_version_6
=no
11252 rm -f core conftest.err conftest.
$ac_objext \
11253 conftest
$ac_exeext conftest.
$ac_ext
11256 if test $emacs_cv_x11_version_6 = yes; then
11257 { $as_echo "$as_me:${as_lineno-$LINENO}: result: 6 or newer" >&5
11258 $as_echo "6 or newer" >&6; }
11260 $as_echo "#define HAVE_X11R6 1" >>confdefs.h
11263 $as_echo "#define HAVE_X_I18N 1" >>confdefs.h
11265 ## inoue@ainet.or.jp says Solaris has a bug related to X11R6-style
11270 $as_echo "#define HAVE_X11R6_XIM 1" >>confdefs.h
11275 { $as_echo "$as_me:${as_lineno-$LINENO}: result: before 6" >&5
11276 $as_echo "before 6" >&6; }
11281 ### Use -lrsvg-2 if available, unless `--with-rsvg=no' is specified.
11283 if test "${HAVE_X11}" = "yes" ||
test "${HAVE_NS}" = "yes"; then
11284 if test "${with_rsvg}" != "no"; then
11285 RSVG_REQUIRED
=2.11.0
11286 RSVG_MODULE
="librsvg-2.0 >= $RSVG_REQUIRED"
11291 # Extract the first word of "pkg-config", so it can be a program name with args.
11292 set dummy pkg-config
; ac_word
=$2
11293 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11294 $as_echo_n "checking for $ac_word... " >&6; }
11295 if test "${ac_cv_path_PKG_CONFIG+set}" = set; then :
11296 $as_echo_n "(cached) " >&6
11298 case $PKG_CONFIG in
11300 ac_cv_path_PKG_CONFIG
="$PKG_CONFIG" # Let the user override the test with a path.
11303 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
11304 for as_dir
in $PATH
11307 test -z "$as_dir" && as_dir
=.
11308 for ac_exec_ext
in '' $ac_executable_extensions; do
11309 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11310 ac_cv_path_PKG_CONFIG
="$as_dir/$ac_word$ac_exec_ext"
11311 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11318 test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG
="no"
11322 PKG_CONFIG
=$ac_cv_path_PKG_CONFIG
11323 if test -n "$PKG_CONFIG"; then
11324 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5
11325 $as_echo "$PKG_CONFIG" >&6; }
11327 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11328 $as_echo "no" >&6; }
11333 if test "$PKG_CONFIG" = "no" ; then
11336 PKG_CONFIG_MIN_VERSION
=0.9.0
11337 if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
11338 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $RSVG_MODULE" >&5
11339 $as_echo_n "checking for $RSVG_MODULE... " >&6; }
11341 if $PKG_CONFIG --exists "$RSVG_MODULE" 2>&5 &&
11342 RSVG_CFLAGS
=`$PKG_CONFIG --cflags "$RSVG_MODULE" 2>&5` &&
11343 RSVG_LIBS
=`$PKG_CONFIG --libs "$RSVG_MODULE" 2>&5`; then
11350 RSVG_CFLAGS
=`$as_echo "$RSVG_CFLAGS" | sed -e "$edit_cflags"`
11351 RSVG_LIBS
=`$as_echo "$RSVG_LIBS" | sed -e 's,///*,/,g'`
11352 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes CFLAGS='$RSVG_CFLAGS' LIBS='$RSVG_LIBS'" >&5
11353 $as_echo "yes CFLAGS='$RSVG_CFLAGS' LIBS='$RSVG_LIBS'" >&6; }
11356 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11357 $as_echo "no" >&6; }
11360 ## If we have a custom action on failure, don't print errors, but
11361 ## do set a variable so people can do so.
11362 RSVG_PKG_ERRORS
=`$PKG_CONFIG --errors-to-stdout --print-errors "$RSVG_MODULE"`
11369 echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
11370 echo "*** See http://www.freedesktop.org/software/pkgconfig"
11374 if test $succeeded = yes; then
11383 if test $HAVE_RSVG = yes; then
11385 $as_echo "#define HAVE_RSVG 1" >>confdefs.h
11387 CFLAGS
="$CFLAGS $RSVG_CFLAGS"
11388 LIBS
="$RSVG_LIBS $LIBS"
11393 HAVE_IMAGEMAGICK
=no
11394 if test "${HAVE_X11}" = "yes"; then
11395 if test "${with_imagemagick}" != "no"; then
11396 ## 6.2.8 is the earliest version known to work, but earlier versions
11397 ## might work - let us know if you find one.
11398 ## 6.0.7 does not work. See bug#7955.
11399 IMAGEMAGICK_MODULE
="Wand >= 6.2.8"
11403 # Extract the first word of "pkg-config", so it can be a program name with args.
11404 set dummy pkg-config
; ac_word
=$2
11405 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11406 $as_echo_n "checking for $ac_word... " >&6; }
11407 if test "${ac_cv_path_PKG_CONFIG+set}" = set; then :
11408 $as_echo_n "(cached) " >&6
11410 case $PKG_CONFIG in
11412 ac_cv_path_PKG_CONFIG
="$PKG_CONFIG" # Let the user override the test with a path.
11415 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
11416 for as_dir
in $PATH
11419 test -z "$as_dir" && as_dir
=.
11420 for ac_exec_ext
in '' $ac_executable_extensions; do
11421 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11422 ac_cv_path_PKG_CONFIG
="$as_dir/$ac_word$ac_exec_ext"
11423 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11430 test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG
="no"
11434 PKG_CONFIG
=$ac_cv_path_PKG_CONFIG
11435 if test -n "$PKG_CONFIG"; then
11436 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5
11437 $as_echo "$PKG_CONFIG" >&6; }
11439 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11440 $as_echo "no" >&6; }
11445 if test "$PKG_CONFIG" = "no" ; then
11448 PKG_CONFIG_MIN_VERSION
=0.9.0
11449 if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
11450 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $IMAGEMAGICK_MODULE" >&5
11451 $as_echo_n "checking for $IMAGEMAGICK_MODULE... " >&6; }
11453 if $PKG_CONFIG --exists "$IMAGEMAGICK_MODULE" 2>&5 &&
11454 IMAGEMAGICK_CFLAGS
=`$PKG_CONFIG --cflags "$IMAGEMAGICK_MODULE" 2>&5` &&
11455 IMAGEMAGICK_LIBS
=`$PKG_CONFIG --libs "$IMAGEMAGICK_MODULE" 2>&5`; then
11462 IMAGEMAGICK_CFLAGS
=`$as_echo "$IMAGEMAGICK_CFLAGS" | sed -e "$edit_cflags"`
11463 IMAGEMAGICK_LIBS
=`$as_echo "$IMAGEMAGICK_LIBS" | sed -e 's,///*,/,g'`
11464 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes CFLAGS='$IMAGEMAGICK_CFLAGS' LIBS='$IMAGEMAGICK_LIBS'" >&5
11465 $as_echo "yes CFLAGS='$IMAGEMAGICK_CFLAGS' LIBS='$IMAGEMAGICK_LIBS'" >&6; }
11468 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11469 $as_echo "no" >&6; }
11470 IMAGEMAGICK_CFLAGS
=""
11471 IMAGEMAGICK_LIBS
=""
11472 ## If we have a custom action on failure, don't print errors, but
11473 ## do set a variable so people can do so.
11474 IMAGEMAGICK_PKG_ERRORS
=`$PKG_CONFIG --errors-to-stdout --print-errors "$IMAGEMAGICK_MODULE"`
11481 echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
11482 echo "*** See http://www.freedesktop.org/software/pkgconfig"
11486 if test $succeeded = yes; then
11487 HAVE_IMAGEMAGICK
=yes
11495 if test $HAVE_IMAGEMAGICK = yes; then
11497 $as_echo "#define HAVE_IMAGEMAGICK 1" >>confdefs.h
11499 CFLAGS
="$CFLAGS $IMAGEMAGICK_CFLAGS"
11500 LIBS
="$IMAGEMAGICK_LIBS $LIBS"
11501 for ac_func
in MagickExportImagePixels
11503 ac_fn_c_check_func
"$LINENO" "MagickExportImagePixels" "ac_cv_func_MagickExportImagePixels"
11504 if test "x$ac_cv_func_MagickExportImagePixels" = x
""yes; then :
11505 cat >>confdefs.h
<<_ACEOF
11506 #define HAVE_MAGICKEXPORTIMAGEPIXELS 1
11519 if test "${with_gtk3}" = "yes"; then
11522 GTK_MODULES
="gtk+-3.0 >= $GTK_REQUIRED glib-2.0 >= $GLIB_REQUIRED"
11527 # Extract the first word of "pkg-config", so it can be a program name with args.
11528 set dummy pkg-config
; ac_word
=$2
11529 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11530 $as_echo_n "checking for $ac_word... " >&6; }
11531 if test "${ac_cv_path_PKG_CONFIG+set}" = set; then :
11532 $as_echo_n "(cached) " >&6
11534 case $PKG_CONFIG in
11536 ac_cv_path_PKG_CONFIG
="$PKG_CONFIG" # Let the user override the test with a path.
11539 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
11540 for as_dir
in $PATH
11543 test -z "$as_dir" && as_dir
=.
11544 for ac_exec_ext
in '' $ac_executable_extensions; do
11545 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11546 ac_cv_path_PKG_CONFIG
="$as_dir/$ac_word$ac_exec_ext"
11547 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11554 test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG
="no"
11558 PKG_CONFIG
=$ac_cv_path_PKG_CONFIG
11559 if test -n "$PKG_CONFIG"; then
11560 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5
11561 $as_echo "$PKG_CONFIG" >&6; }
11563 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11564 $as_echo "no" >&6; }
11569 if test "$PKG_CONFIG" = "no" ; then
11572 PKG_CONFIG_MIN_VERSION
=0.9.0
11573 if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
11574 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $GTK_MODULES" >&5
11575 $as_echo_n "checking for $GTK_MODULES... " >&6; }
11577 if $PKG_CONFIG --exists "$GTK_MODULES" 2>&5 &&
11578 GTK_CFLAGS
=`$PKG_CONFIG --cflags "$GTK_MODULES" 2>&5` &&
11579 GTK_LIBS
=`$PKG_CONFIG --libs "$GTK_MODULES" 2>&5`; then
11586 GTK_CFLAGS
=`$as_echo "$GTK_CFLAGS" | sed -e "$edit_cflags"`
11587 GTK_LIBS
=`$as_echo "$GTK_LIBS" | sed -e 's,///*,/,g'`
11588 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes CFLAGS='$GTK_CFLAGS' LIBS='$GTK_LIBS'" >&5
11589 $as_echo "yes CFLAGS='$GTK_CFLAGS' LIBS='$GTK_LIBS'" >&6; }
11592 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11593 $as_echo "no" >&6; }
11596 ## If we have a custom action on failure, don't print errors, but
11597 ## do set a variable so people can do so.
11598 GTK_PKG_ERRORS
=`$PKG_CONFIG --errors-to-stdout --print-errors "$GTK_MODULES"`
11605 echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
11606 echo "*** See http://www.freedesktop.org/software/pkgconfig"
11610 if test $succeeded = yes; then
11616 if test "$pkg_check_gtk" = "no" && test "$USE_X_TOOLKIT" != "maybe"; then
11617 as_fn_error
"$GTK_PKG_ERRORS" "$LINENO" 5
11620 $as_echo "#define HAVE_GTK3 1" >>confdefs.h
11622 GTK_OBJ
=emacsgtkfixed.o
11625 if test "$pkg_check_gtk" != "yes"; then
11627 if test "${with_gtk}" = "yes" ||
test "$USE_X_TOOLKIT" = "maybe"; then
11630 GTK_MODULES
="gtk+-2.0 >= $GTK_REQUIRED glib-2.0 >= $GLIB_REQUIRED"
11635 # Extract the first word of "pkg-config", so it can be a program name with args.
11636 set dummy pkg-config
; ac_word
=$2
11637 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11638 $as_echo_n "checking for $ac_word... " >&6; }
11639 if test "${ac_cv_path_PKG_CONFIG+set}" = set; then :
11640 $as_echo_n "(cached) " >&6
11642 case $PKG_CONFIG in
11644 ac_cv_path_PKG_CONFIG
="$PKG_CONFIG" # Let the user override the test with a path.
11647 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
11648 for as_dir
in $PATH
11651 test -z "$as_dir" && as_dir
=.
11652 for ac_exec_ext
in '' $ac_executable_extensions; do
11653 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11654 ac_cv_path_PKG_CONFIG
="$as_dir/$ac_word$ac_exec_ext"
11655 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11662 test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG
="no"
11666 PKG_CONFIG
=$ac_cv_path_PKG_CONFIG
11667 if test -n "$PKG_CONFIG"; then
11668 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5
11669 $as_echo "$PKG_CONFIG" >&6; }
11671 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11672 $as_echo "no" >&6; }
11677 if test "$PKG_CONFIG" = "no" ; then
11680 PKG_CONFIG_MIN_VERSION
=0.9.0
11681 if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
11682 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $GTK_MODULES" >&5
11683 $as_echo_n "checking for $GTK_MODULES... " >&6; }
11685 if $PKG_CONFIG --exists "$GTK_MODULES" 2>&5 &&
11686 GTK_CFLAGS
=`$PKG_CONFIG --cflags "$GTK_MODULES" 2>&5` &&
11687 GTK_LIBS
=`$PKG_CONFIG --libs "$GTK_MODULES" 2>&5`; then
11694 GTK_CFLAGS
=`$as_echo "$GTK_CFLAGS" | sed -e "$edit_cflags"`
11695 GTK_LIBS
=`$as_echo "$GTK_LIBS" | sed -e 's,///*,/,g'`
11696 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes CFLAGS='$GTK_CFLAGS' LIBS='$GTK_LIBS'" >&5
11697 $as_echo "yes CFLAGS='$GTK_CFLAGS' LIBS='$GTK_LIBS'" >&6; }
11700 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11701 $as_echo "no" >&6; }
11704 ## If we have a custom action on failure, don't print errors, but
11705 ## do set a variable so people can do so.
11706 GTK_PKG_ERRORS
=`$PKG_CONFIG --errors-to-stdout --print-errors "$GTK_MODULES"`
11713 echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
11714 echo "*** See http://www.freedesktop.org/software/pkgconfig"
11718 if test $succeeded = yes; then
11724 if test "$pkg_check_gtk" = "no" && test "$USE_X_TOOLKIT" != "maybe"; then
11725 as_fn_error
"$GTK_PKG_ERRORS" "$LINENO" 5
11730 if test x
"$pkg_check_gtk" = xyes
; then
11734 C_SWITCH_X_SITE
="$C_SWITCH_X_SITE $GTK_CFLAGS"
11735 CFLAGS
="$CFLAGS $GTK_CFLAGS"
11736 LIBS
="$GTK_LIBS $LIBS"
11738 for ac_func
in gtk_main
11740 ac_fn_c_check_func
"$LINENO" "gtk_main" "ac_cv_func_gtk_main"
11741 if test "x$ac_cv_func_gtk_main" = x
""yes; then :
11742 cat >>confdefs.h
<<_ACEOF
11743 #define HAVE_GTK_MAIN 1
11749 if test "${GTK_COMPILES}" != "yes"; then
11750 if test "$USE_X_TOOLKIT" != "maybe"; then
11751 as_fn_error
"Gtk+ wanted, but it does not compile, see config.log. Maybe some x11-devel files missing?" "$LINENO" 5;
11756 $as_echo "#define USE_GTK 1" >>confdefs.h
11758 GTK_OBJ
="gtkutil.o $GTK_OBJ"
11760 if $PKG_CONFIG --atleast-version=2.10 gtk
+-2.0
; then
11763 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Your version of Gtk+ will have problems with
11764 closing open displays. This is no problem if you just use
11765 one display, but if you use more than one and close one of them
11766 Emacs may crash." >&5
11767 $as_echo "$as_me: WARNING: Your version of Gtk+ will have problems with
11768 closing open displays. This is no problem if you just use
11769 one display, but if you use more than one and close one of them
11770 Emacs may crash." >&2;}
11779 if test "${HAVE_GTK}" = "yes"; then
11781 if test "$with_toolkit_scroll_bars" != no
; then
11782 with_toolkit_scroll_bars
=yes
11785 HAVE_GTK_FILE_SELECTION
=no
11786 ac_fn_c_check_decl
"$LINENO" "GTK_TYPE_FILE_SELECTION" "ac_cv_have_decl_GTK_TYPE_FILE_SELECTION" "$ac_includes_default
11787 #include <gtk/gtk.h>
11789 if test "x$ac_cv_have_decl_GTK_TYPE_FILE_SELECTION" = x
""yes; then :
11790 HAVE_GTK_FILE_SELECTION
=yes
11792 HAVE_GTK_FILE_SELECTION
=no
11795 if test "$HAVE_GTK_FILE_SELECTION" = yes; then
11796 for ac_func
in gtk_file_selection_new
11798 ac_fn_c_check_func
"$LINENO" "gtk_file_selection_new" "ac_cv_func_gtk_file_selection_new"
11799 if test "x$ac_cv_func_gtk_file_selection_new" = x
""yes; then :
11800 cat >>confdefs.h
<<_ACEOF
11801 #define HAVE_GTK_FILE_SELECTION_NEW 1
11810 for ac_func
in gtk_widget_get_window gtk_widget_set_has_window \
11811 gtk_dialog_get_action_area gtk_widget_get_sensitive \
11812 gtk_widget_get_mapped gtk_adjustment_get_page_size \
11813 gtk_orientable_set_orientation \
11814 gtk_window_set_has_resize_grip
11816 as_ac_var
=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
11817 ac_fn_c_check_func
"$LINENO" "$ac_func" "$as_ac_var"
11818 eval as_val
=\$
$as_ac_var
11819 if test "x$as_val" = x
""yes; then :
11820 cat >>confdefs.h
<<_ACEOF
11821 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
11831 if test "${with_dbus}" = "yes"; then
11835 # Extract the first word of "pkg-config", so it can be a program name with args.
11836 set dummy pkg-config
; ac_word
=$2
11837 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11838 $as_echo_n "checking for $ac_word... " >&6; }
11839 if test "${ac_cv_path_PKG_CONFIG+set}" = set; then :
11840 $as_echo_n "(cached) " >&6
11842 case $PKG_CONFIG in
11844 ac_cv_path_PKG_CONFIG
="$PKG_CONFIG" # Let the user override the test with a path.
11847 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
11848 for as_dir
in $PATH
11851 test -z "$as_dir" && as_dir
=.
11852 for ac_exec_ext
in '' $ac_executable_extensions; do
11853 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11854 ac_cv_path_PKG_CONFIG
="$as_dir/$ac_word$ac_exec_ext"
11855 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11862 test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG
="no"
11866 PKG_CONFIG
=$ac_cv_path_PKG_CONFIG
11867 if test -n "$PKG_CONFIG"; then
11868 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5
11869 $as_echo "$PKG_CONFIG" >&6; }
11871 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11872 $as_echo "no" >&6; }
11877 if test "$PKG_CONFIG" = "no" ; then
11880 PKG_CONFIG_MIN_VERSION
=0.9.0
11881 if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
11882 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dbus-1 >= 1.0" >&5
11883 $as_echo_n "checking for dbus-1 >= 1.0... " >&6; }
11885 if $PKG_CONFIG --exists "dbus-1 >= 1.0" 2>&5 &&
11886 DBUS_CFLAGS
=`$PKG_CONFIG --cflags "dbus-1 >= 1.0" 2>&5` &&
11887 DBUS_LIBS
=`$PKG_CONFIG --libs "dbus-1 >= 1.0" 2>&5`; then
11894 DBUS_CFLAGS
=`$as_echo "$DBUS_CFLAGS" | sed -e "$edit_cflags"`
11895 DBUS_LIBS
=`$as_echo "$DBUS_LIBS" | sed -e 's,///*,/,g'`
11896 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes CFLAGS='$DBUS_CFLAGS' LIBS='$DBUS_LIBS'" >&5
11897 $as_echo "yes CFLAGS='$DBUS_CFLAGS' LIBS='$DBUS_LIBS'" >&6; }
11900 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11901 $as_echo "no" >&6; }
11904 ## If we have a custom action on failure, don't print errors, but
11905 ## do set a variable so people can do so.
11906 DBUS_PKG_ERRORS
=`$PKG_CONFIG --errors-to-stdout --print-errors "dbus-1 >= 1.0"`
11913 echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
11914 echo "*** See http://www.freedesktop.org/software/pkgconfig"
11918 if test $succeeded = yes; then
11924 if test "$HAVE_DBUS" = yes; then
11925 LIBS
="$LIBS $DBUS_LIBS"
11927 $as_echo "#define HAVE_DBUS 1" >>confdefs.h
11929 for ac_func
in dbus_watch_get_unix_fd
11931 ac_fn_c_check_func
"$LINENO" "dbus_watch_get_unix_fd" "ac_cv_func_dbus_watch_get_unix_fd"
11932 if test "x$ac_cv_func_dbus_watch_get_unix_fd" = x
""yes; then :
11933 cat >>confdefs.h
<<_ACEOF
11934 #define HAVE_DBUS_WATCH_GET_UNIX_FD 1
11940 DBUS_OBJ
=dbusbind.o
11946 if test "${HAVE_X11}" = "yes" && test "${with_gsettings}" = "yes"; then
11950 # Extract the first word of "pkg-config", so it can be a program name with args.
11951 set dummy pkg-config
; ac_word
=$2
11952 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11953 $as_echo_n "checking for $ac_word... " >&6; }
11954 if test "${ac_cv_path_PKG_CONFIG+set}" = set; then :
11955 $as_echo_n "(cached) " >&6
11957 case $PKG_CONFIG in
11959 ac_cv_path_PKG_CONFIG
="$PKG_CONFIG" # Let the user override the test with a path.
11962 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
11963 for as_dir
in $PATH
11966 test -z "$as_dir" && as_dir
=.
11967 for ac_exec_ext
in '' $ac_executable_extensions; do
11968 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11969 ac_cv_path_PKG_CONFIG
="$as_dir/$ac_word$ac_exec_ext"
11970 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11977 test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG
="no"
11981 PKG_CONFIG
=$ac_cv_path_PKG_CONFIG
11982 if test -n "$PKG_CONFIG"; then
11983 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5
11984 $as_echo "$PKG_CONFIG" >&6; }
11986 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11987 $as_echo "no" >&6; }
11992 if test "$PKG_CONFIG" = "no" ; then
11995 PKG_CONFIG_MIN_VERSION
=0.9.0
11996 if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
11997 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gio-2.0 >= 2.26" >&5
11998 $as_echo_n "checking for gio-2.0 >= 2.26... " >&6; }
12000 if $PKG_CONFIG --exists "gio-2.0 >= 2.26" 2>&5 &&
12001 GSETTINGS_CFLAGS
=`$PKG_CONFIG --cflags "gio-2.0 >= 2.26" 2>&5` &&
12002 GSETTINGS_LIBS
=`$PKG_CONFIG --libs "gio-2.0 >= 2.26" 2>&5`; then
12009 GSETTINGS_CFLAGS
=`$as_echo "$GSETTINGS_CFLAGS" | sed -e "$edit_cflags"`
12010 GSETTINGS_LIBS
=`$as_echo "$GSETTINGS_LIBS" | sed -e 's,///*,/,g'`
12011 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes CFLAGS='$GSETTINGS_CFLAGS' LIBS='$GSETTINGS_LIBS'" >&5
12012 $as_echo "yes CFLAGS='$GSETTINGS_CFLAGS' LIBS='$GSETTINGS_LIBS'" >&6; }
12015 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12016 $as_echo "no" >&6; }
12017 GSETTINGS_CFLAGS
=""
12019 ## If we have a custom action on failure, don't print errors, but
12020 ## do set a variable so people can do so.
12021 GSETTINGS_PKG_ERRORS
=`$PKG_CONFIG --errors-to-stdout --print-errors "gio-2.0 >= 2.26"`
12028 echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
12029 echo "*** See http://www.freedesktop.org/software/pkgconfig"
12033 if test $succeeded = yes; then
12039 if test "$HAVE_GSETTINGS" = "yes"; then
12041 $as_echo "#define HAVE_GSETTINGS 1" >>confdefs.h
12043 SETTINGS_CFLAGS
="$GSETTINGS_CFLAGS"
12044 SETTINGS_LIBS
="$GSETTINGS_LIBS"
12049 if test "${HAVE_X11}" = "yes" && test "${with_gconf}" = "yes"; then
12053 # Extract the first word of "pkg-config", so it can be a program name with args.
12054 set dummy pkg-config
; ac_word
=$2
12055 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12056 $as_echo_n "checking for $ac_word... " >&6; }
12057 if test "${ac_cv_path_PKG_CONFIG+set}" = set; then :
12058 $as_echo_n "(cached) " >&6
12060 case $PKG_CONFIG in
12062 ac_cv_path_PKG_CONFIG
="$PKG_CONFIG" # Let the user override the test with a path.
12065 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
12066 for as_dir
in $PATH
12069 test -z "$as_dir" && as_dir
=.
12070 for ac_exec_ext
in '' $ac_executable_extensions; do
12071 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
12072 ac_cv_path_PKG_CONFIG
="$as_dir/$ac_word$ac_exec_ext"
12073 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12080 test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG
="no"
12084 PKG_CONFIG
=$ac_cv_path_PKG_CONFIG
12085 if test -n "$PKG_CONFIG"; then
12086 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5
12087 $as_echo "$PKG_CONFIG" >&6; }
12089 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12090 $as_echo "no" >&6; }
12095 if test "$PKG_CONFIG" = "no" ; then
12098 PKG_CONFIG_MIN_VERSION
=0.9.0
12099 if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
12100 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gconf-2.0 >= 2.13" >&5
12101 $as_echo_n "checking for gconf-2.0 >= 2.13... " >&6; }
12103 if $PKG_CONFIG --exists "gconf-2.0 >= 2.13" 2>&5 &&
12104 GCONF_CFLAGS
=`$PKG_CONFIG --cflags "gconf-2.0 >= 2.13" 2>&5` &&
12105 GCONF_LIBS
=`$PKG_CONFIG --libs "gconf-2.0 >= 2.13" 2>&5`; then
12112 GCONF_CFLAGS
=`$as_echo "$GCONF_CFLAGS" | sed -e "$edit_cflags"`
12113 GCONF_LIBS
=`$as_echo "$GCONF_LIBS" | sed -e 's,///*,/,g'`
12114 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes CFLAGS='$GCONF_CFLAGS' LIBS='$GCONF_LIBS'" >&5
12115 $as_echo "yes CFLAGS='$GCONF_CFLAGS' LIBS='$GCONF_LIBS'" >&6; }
12118 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12119 $as_echo "no" >&6; }
12122 ## If we have a custom action on failure, don't print errors, but
12123 ## do set a variable so people can do so.
12124 GCONF_PKG_ERRORS
=`$PKG_CONFIG --errors-to-stdout --print-errors "gconf-2.0 >= 2.13"`
12131 echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
12132 echo "*** See http://www.freedesktop.org/software/pkgconfig"
12136 if test $succeeded = yes; then
12142 if test "$HAVE_GCONF" = yes; then
12144 $as_echo "#define HAVE_GCONF 1" >>confdefs.h
12146 SETTINGS_CFLAGS
="$SETTINGS_CFLAGS $GCONF_CFLAGS"
12147 SETTINGS_LIBS
="$SETTINGS_LIBS $GCONF_LIBS"
12151 if test "$HAVE_GSETTINGS" = "yes" ||
test "$HAVE_GCONF" = "yes"; then
12152 SAVE_CFLAGS
="$CFLAGS"
12154 CFLAGS
="$SETTINGS_CFLAGS $CFLAGS"
12155 LIBS
="$SETTINGS_LIBS $LIBS"
12156 for ac_func
in g_type_init
12158 ac_fn_c_check_func
"$LINENO" "g_type_init" "ac_cv_func_g_type_init"
12159 if test "x$ac_cv_func_g_type_init" = x
""yes; then :
12160 cat >>confdefs.h
<<_ACEOF
12161 #define HAVE_G_TYPE_INIT 1
12167 CFLAGS
="$SAVE_CFLAGS"
12176 if test "${with_selinux}" = "yes"; then
12177 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for lgetfilecon in -lselinux" >&5
12178 $as_echo_n "checking for lgetfilecon in -lselinux... " >&6; }
12179 if test "${ac_cv_lib_selinux_lgetfilecon+set}" = set; then :
12180 $as_echo_n "(cached) " >&6
12182 ac_check_lib_save_LIBS
=$LIBS
12183 LIBS
="-lselinux $LIBS"
12184 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
12185 /* end confdefs.h. */
12187 /* Override any GCC internal prototype to avoid an error.
12188 Use char because int might match the return type of a GCC
12189 builtin and then its argument prototype would still apply. */
12193 char lgetfilecon ();
12197 return lgetfilecon ();
12202 if ac_fn_c_try_link
"$LINENO"; then :
12203 ac_cv_lib_selinux_lgetfilecon
=yes
12205 ac_cv_lib_selinux_lgetfilecon
=no
12207 rm -f core conftest.err conftest.
$ac_objext \
12208 conftest
$ac_exeext conftest.
$ac_ext
12209 LIBS
=$ac_check_lib_save_LIBS
12211 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_selinux_lgetfilecon" >&5
12212 $as_echo "$ac_cv_lib_selinux_lgetfilecon" >&6; }
12213 if test "x$ac_cv_lib_selinux_lgetfilecon" = x
""yes; then :
12214 HAVE_LIBSELINUX
=yes
12219 if test "$HAVE_LIBSELINUX" = yes; then
12221 $as_echo "#define HAVE_LIBSELINUX 1" >>confdefs.h
12223 LIBSELINUX_LIBS
=-lselinux
12229 HAVE_GNUTLS_CALLBACK_CERTIFICATE_VERIFY
=no
12230 if test "${with_gnutls}" = "yes" ; then
12234 # Extract the first word of "pkg-config", so it can be a program name with args.
12235 set dummy pkg-config
; ac_word
=$2
12236 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12237 $as_echo_n "checking for $ac_word... " >&6; }
12238 if test "${ac_cv_path_PKG_CONFIG+set}" = set; then :
12239 $as_echo_n "(cached) " >&6
12241 case $PKG_CONFIG in
12243 ac_cv_path_PKG_CONFIG
="$PKG_CONFIG" # Let the user override the test with a path.
12246 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
12247 for as_dir
in $PATH
12250 test -z "$as_dir" && as_dir
=.
12251 for ac_exec_ext
in '' $ac_executable_extensions; do
12252 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
12253 ac_cv_path_PKG_CONFIG
="$as_dir/$ac_word$ac_exec_ext"
12254 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12261 test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG
="no"
12265 PKG_CONFIG
=$ac_cv_path_PKG_CONFIG
12266 if test -n "$PKG_CONFIG"; then
12267 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5
12268 $as_echo "$PKG_CONFIG" >&6; }
12270 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12271 $as_echo "no" >&6; }
12276 if test "$PKG_CONFIG" = "no" ; then
12279 PKG_CONFIG_MIN_VERSION
=0.9.0
12280 if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
12281 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gnutls >= 2.6.6" >&5
12282 $as_echo_n "checking for gnutls >= 2.6.6... " >&6; }
12284 if $PKG_CONFIG --exists "gnutls >= 2.6.6" 2>&5 &&
12285 LIBGNUTLS_CFLAGS
=`$PKG_CONFIG --cflags "gnutls >= 2.6.6" 2>&5` &&
12286 LIBGNUTLS_LIBS
=`$PKG_CONFIG --libs "gnutls >= 2.6.6" 2>&5`; then
12293 LIBGNUTLS_CFLAGS
=`$as_echo "$LIBGNUTLS_CFLAGS" | sed -e "$edit_cflags"`
12294 LIBGNUTLS_LIBS
=`$as_echo "$LIBGNUTLS_LIBS" | sed -e 's,///*,/,g'`
12295 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes CFLAGS='$LIBGNUTLS_CFLAGS' LIBS='$LIBGNUTLS_LIBS'" >&5
12296 $as_echo "yes CFLAGS='$LIBGNUTLS_CFLAGS' LIBS='$LIBGNUTLS_LIBS'" >&6; }
12299 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12300 $as_echo "no" >&6; }
12301 LIBGNUTLS_CFLAGS
=""
12303 ## If we have a custom action on failure, don't print errors, but
12304 ## do set a variable so people can do so.
12305 LIBGNUTLS_PKG_ERRORS
=`$PKG_CONFIG --errors-to-stdout --print-errors "gnutls >= 2.6.6"`
12312 echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
12313 echo "*** See http://www.freedesktop.org/software/pkgconfig"
12317 if test $succeeded = yes; then
12323 if test "${HAVE_GNUTLS}" = "yes"; then
12325 $as_echo "#define HAVE_GNUTLS 1" >>confdefs.h
12329 CFLAGS
="$CFLAGS $LIBGNUTLS_CFLAGS"
12330 LIBS
="$LIBGNUTLS_LIBS $LIBS"
12331 for ac_func
in gnutls_certificate_set_verify_function
12333 ac_fn_c_check_func
"$LINENO" "gnutls_certificate_set_verify_function" "ac_cv_func_gnutls_certificate_set_verify_function"
12334 if test "x$ac_cv_func_gnutls_certificate_set_verify_function" = x
""yes; then :
12335 cat >>confdefs.h
<<_ACEOF
12336 #define HAVE_GNUTLS_CERTIFICATE_SET_VERIFY_FUNCTION 1
12338 HAVE_GNUTLS_CALLBACK_CERTIFICATE_VERIFY
=yes
12343 if test "${HAVE_GNUTLS_CALLBACK_CERTIFICATE_VERIFY}" = "yes"; then
12345 $as_echo "#define HAVE_GNUTLS_CALLBACK_CERTIFICATE_VERIFY 1" >>confdefs.h
12355 if test x
"${USE_X_TOOLKIT}" = xmaybe ||
test x
"${USE_X_TOOLKIT}" = xLUCID
; then
12356 if test "$with_xaw3d" != no
; then
12357 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for xaw3d" >&5
12358 $as_echo_n "checking for xaw3d... " >&6; }
12359 if test "${emacs_cv_xaw3d+set}" = set; then :
12360 $as_echo_n "(cached) " >&6
12362 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
12363 /* end confdefs.h. */
12365 #include <X11/Intrinsic.h>
12366 #include <X11/Xaw3d/Simple.h>
12375 if ac_fn_c_try_link
"$LINENO"; then :
12376 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for XawScrollbarSetThumb in -lXaw3d" >&5
12377 $as_echo_n "checking for XawScrollbarSetThumb in -lXaw3d... " >&6; }
12378 if test "${ac_cv_lib_Xaw3d_XawScrollbarSetThumb+set}" = set; then :
12379 $as_echo_n "(cached) " >&6
12381 ac_check_lib_save_LIBS
=$LIBS
12382 LIBS
="-lXaw3d $LIBS"
12383 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
12384 /* end confdefs.h. */
12386 /* Override any GCC internal prototype to avoid an error.
12387 Use char because int might match the return type of a GCC
12388 builtin and then its argument prototype would still apply. */
12392 char XawScrollbarSetThumb ();
12396 return XawScrollbarSetThumb ();
12401 if ac_fn_c_try_link
"$LINENO"; then :
12402 ac_cv_lib_Xaw3d_XawScrollbarSetThumb
=yes
12404 ac_cv_lib_Xaw3d_XawScrollbarSetThumb
=no
12406 rm -f core conftest.err conftest.
$ac_objext \
12407 conftest
$ac_exeext conftest.
$ac_ext
12408 LIBS
=$ac_check_lib_save_LIBS
12410 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_Xaw3d_XawScrollbarSetThumb" >&5
12411 $as_echo "$ac_cv_lib_Xaw3d_XawScrollbarSetThumb" >&6; }
12412 if test "x$ac_cv_lib_Xaw3d_XawScrollbarSetThumb" = x
""yes; then :
12421 rm -f core conftest.err conftest.
$ac_objext \
12422 conftest
$ac_exeext conftest.
$ac_ext
12428 if test $emacs_cv_xaw3d = yes; then
12429 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes; using Lucid toolkit" >&5
12430 $as_echo "yes; using Lucid toolkit" >&6; }
12431 USE_X_TOOLKIT
=LUCID
12435 $as_echo "#define HAVE_XAW3D 1" >>confdefs.h
12438 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12439 $as_echo "no" >&6; }
12440 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libXaw" >&5
12441 $as_echo_n "checking for libXaw... " >&6; }
12442 if test "${emacs_cv_xaw+set}" = set; then :
12443 $as_echo_n "(cached) " >&6
12445 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
12446 /* end confdefs.h. */
12448 #include <X11/Intrinsic.h>
12449 #include <X11/Xaw/Simple.h>
12458 if ac_fn_c_try_link
"$LINENO"; then :
12463 rm -f core conftest.err conftest.
$ac_objext \
12464 conftest
$ac_exeext conftest.
$ac_ext
12467 if test $emacs_cv_xaw = yes; then
12468 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes; using Lucid toolkit" >&5
12469 $as_echo "yes; using Lucid toolkit" >&6; }
12470 USE_X_TOOLKIT
=LUCID
12472 elif test x
"${USE_X_TOOLKIT}" = xLUCID
; then
12473 as_fn_error
"Lucid toolkit requires X11/Xaw include files" "$LINENO" 5
12475 as_fn_error
"No X toolkit could be found.
12476 If you are sure you want Emacs compiled without an X toolkit, pass
12477 --with-x-toolkit=no
12478 to configure. Otherwise, install the development libraries for the toolkit
12479 that you want to use (e.g. Gtk+) and re-run configure." "$LINENO" 5
12484 X_TOOLKIT_TYPE
=$USE_X_TOOLKIT
12487 if test "${USE_X_TOOLKIT}" != "none"; then
12488 { $as_echo "$as_me:${as_lineno-$LINENO}: checking X11 toolkit version" >&5
12489 $as_echo_n "checking X11 toolkit version... " >&6; }
12490 if test "${emacs_cv_x11_toolkit_version_6+set}" = set; then :
12491 $as_echo_n "(cached) " >&6
12493 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
12494 /* end confdefs.h. */
12495 #include <X11/Intrinsic.h>
12499 #if XtSpecificationRelease < 6
12507 if ac_fn_c_try_link
"$LINENO"; then :
12508 emacs_cv_x11_toolkit_version_6
=yes
12510 emacs_cv_x11_toolkit_version_6
=no
12512 rm -f core conftest.err conftest.
$ac_objext \
12513 conftest
$ac_exeext conftest.
$ac_ext
12516 HAVE_X11XTR6
=$emacs_cv_x11_toolkit_version_6
12517 if test $emacs_cv_x11_toolkit_version_6 = yes; then
12518 { $as_echo "$as_me:${as_lineno-$LINENO}: result: 6 or newer" >&5
12519 $as_echo "6 or newer" >&6; }
12521 $as_echo "#define HAVE_X11XTR6 1" >>confdefs.h
12523 LIBXTR6
="-lSM -lICE"
12525 ## Use libw.a along with X11R6 Xt.
12526 unixware
) LIBXTR6
="$LIBXTR6 -lw" ;;
12529 { $as_echo "$as_me:${as_lineno-$LINENO}: result: before 6" >&5
12530 $as_echo "before 6" >&6; }
12534 if test x
$HAVE_X11XTR6 = xyes
; then
12535 LIBS
="-lXt -lSM -lICE $LIBS"
12539 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for XmuConvertStandardSelection in -lXmu" >&5
12540 $as_echo_n "checking for XmuConvertStandardSelection in -lXmu... " >&6; }
12541 if test "${ac_cv_lib_Xmu_XmuConvertStandardSelection+set}" = set; then :
12542 $as_echo_n "(cached) " >&6
12544 ac_check_lib_save_LIBS
=$LIBS
12546 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
12547 /* end confdefs.h. */
12549 /* Override any GCC internal prototype to avoid an error.
12550 Use char because int might match the return type of a GCC
12551 builtin and then its argument prototype would still apply. */
12555 char XmuConvertStandardSelection ();
12559 return XmuConvertStandardSelection ();
12564 if ac_fn_c_try_link
"$LINENO"; then :
12565 ac_cv_lib_Xmu_XmuConvertStandardSelection
=yes
12567 ac_cv_lib_Xmu_XmuConvertStandardSelection
=no
12569 rm -f core conftest.err conftest.
$ac_objext \
12570 conftest
$ac_exeext conftest.
$ac_ext
12571 LIBS
=$ac_check_lib_save_LIBS
12573 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_Xmu_XmuConvertStandardSelection" >&5
12574 $as_echo "$ac_cv_lib_Xmu_XmuConvertStandardSelection" >&6; }
12575 if test "x$ac_cv_lib_Xmu_XmuConvertStandardSelection" = x
""yes; then :
12576 cat >>confdefs.h
<<_ACEOF
12577 #define HAVE_LIBXMU 1
12584 test $ac_cv_lib_Xmu_XmuConvertStandardSelection = no
&& LIBS
="$OLDLIBS"
12590 ## These systems don't supply Xmu.
12592 test "X$ac_cv_lib_Xmu_XmuConvertStandardSelection" != "Xyes" && LIBXMU
=
12597 # On Irix 6.5, at least, we need XShapeQueryExtension from -lXext for Xaw3D.
12598 if test "${HAVE_X11}" = "yes"; then
12599 if test "${USE_X_TOOLKIT}" != "none"; then
12600 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for XShapeQueryExtension in -lXext" >&5
12601 $as_echo_n "checking for XShapeQueryExtension in -lXext... " >&6; }
12602 if test "${ac_cv_lib_Xext_XShapeQueryExtension+set}" = set; then :
12603 $as_echo_n "(cached) " >&6
12605 ac_check_lib_save_LIBS
=$LIBS
12606 LIBS
="-lXext $LIBS"
12607 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
12608 /* end confdefs.h. */
12610 /* Override any GCC internal prototype to avoid an error.
12611 Use char because int might match the return type of a GCC
12612 builtin and then its argument prototype would still apply. */
12616 char XShapeQueryExtension ();
12620 return XShapeQueryExtension ();
12625 if ac_fn_c_try_link
"$LINENO"; then :
12626 ac_cv_lib_Xext_XShapeQueryExtension
=yes
12628 ac_cv_lib_Xext_XShapeQueryExtension
=no
12630 rm -f core conftest.err conftest.
$ac_objext \
12631 conftest
$ac_exeext conftest.
$ac_ext
12632 LIBS
=$ac_check_lib_save_LIBS
12634 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_Xext_XShapeQueryExtension" >&5
12635 $as_echo "$ac_cv_lib_Xext_XShapeQueryExtension" >&6; }
12636 if test "x$ac_cv_lib_Xext_XShapeQueryExtension" = x
""yes; then :
12637 cat >>confdefs.h
<<_ACEOF
12638 #define HAVE_LIBXEXT 1
12641 LIBS
="-lXext $LIBS"
12649 if test "${USE_X_TOOLKIT}" = "MOTIF"; then
12650 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Motif version 2.1" >&5
12651 $as_echo_n "checking for Motif version 2.1... " >&6; }
12652 if test "${emacs_cv_motif_version_2_1+set}" = set; then :
12653 $as_echo_n "(cached) " >&6
12655 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
12656 /* end confdefs.h. */
12661 #if XmVERSION > 2 || (XmVERSION == 2 && XmREVISION >= 1)
12664 Motif version prior to 2.1.
12670 if ac_fn_c_try_compile
"$LINENO"; then :
12671 emacs_cv_motif_version_2_1
=yes
12673 emacs_cv_motif_version_2_1
=no
12675 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
12677 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $emacs_cv_motif_version_2_1" >&5
12678 $as_echo "$emacs_cv_motif_version_2_1" >&6; }
12679 if test $emacs_cv_motif_version_2_1 = yes; then
12680 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for XpCreateContext in -lXp" >&5
12681 $as_echo_n "checking for XpCreateContext in -lXp... " >&6; }
12682 if test "${ac_cv_lib_Xp_XpCreateContext+set}" = set; then :
12683 $as_echo_n "(cached) " >&6
12685 ac_check_lib_save_LIBS
=$LIBS
12687 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
12688 /* end confdefs.h. */
12690 /* Override any GCC internal prototype to avoid an error.
12691 Use char because int might match the return type of a GCC
12692 builtin and then its argument prototype would still apply. */
12696 char XpCreateContext ();
12700 return XpCreateContext ();
12705 if ac_fn_c_try_link
"$LINENO"; then :
12706 ac_cv_lib_Xp_XpCreateContext
=yes
12708 ac_cv_lib_Xp_XpCreateContext
=no
12710 rm -f core conftest.err conftest.
$ac_objext \
12711 conftest
$ac_exeext conftest.
$ac_ext
12712 LIBS
=$ac_check_lib_save_LIBS
12714 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_Xp_XpCreateContext" >&5
12715 $as_echo "$ac_cv_lib_Xp_XpCreateContext" >&6; }
12716 if test "x$ac_cv_lib_Xp_XpCreateContext" = x
""yes; then :
12721 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for LessTif where some systems put it" >&5
12722 $as_echo_n "checking for LessTif where some systems put it... " >&6; }
12723 if test "${emacs_cv_lesstif+set}" = set; then :
12724 $as_echo_n "(cached) " >&6
12726 # We put this in CFLAGS temporarily to precede other -I options
12727 # that might be in CFLAGS temporarily.
12728 # We put this in CPPFLAGS where it precedes the other -I options.
12729 OLD_CPPFLAGS
=$CPPFLAGS
12731 CPPFLAGS
="-I/usr/X11R6/LessTif/Motif1.2/include $CPPFLAGS"
12732 CFLAGS
="-I/usr/X11R6/LessTif/Motif1.2/include $CFLAGS"
12733 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
12734 /* end confdefs.h. */
12735 #include </usr/X11R6/LessTif/Motif1.2/include/Xm/Xm.h>
12744 if ac_fn_c_try_compile
"$LINENO"; then :
12745 emacs_cv_lesstif
=yes
12747 emacs_cv_lesstif
=no
12749 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
12751 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $emacs_cv_lesstif" >&5
12752 $as_echo "$emacs_cv_lesstif" >&6; }
12753 if test $emacs_cv_lesstif = yes; then
12754 # Make sure this -I option remains in CPPFLAGS after it is set
12755 # back to REAL_CPPFLAGS.
12756 # There is no need to change REAL_CFLAGS, because REAL_CFLAGS does not
12757 # have those other -I options anyway. Ultimately, having this
12758 # directory ultimately in CPPFLAGS will be enough.
12759 REAL_CPPFLAGS
="-I/usr/X11R6/LessTif/Motif1.2/include $REAL_CPPFLAGS"
12760 LDFLAGS
="-L/usr/X11R6/LessTif/Motif1.2/lib $LDFLAGS"
12763 CPPFLAGS
=$OLD_CPPFLAGS
12766 ac_fn_c_check_header_mongrel
"$LINENO" "Xm/BulletinB.h" "ac_cv_header_Xm_BulletinB_h" "$ac_includes_default"
12767 if test "x$ac_cv_header_Xm_BulletinB_h" = x
""yes; then :
12770 as_fn_error
"Motif toolkit requested but requirements not found." "$LINENO" 5
12777 USE_TOOLKIT_SCROLL_BARS
=no
12778 if test "${with_toolkit_scroll_bars}" != "no"; then
12779 if test "${USE_X_TOOLKIT}" != "none"; then
12780 if test "${USE_X_TOOLKIT}" = "MOTIF"; then
12781 $as_echo "#define USE_TOOLKIT_SCROLL_BARS 1" >>confdefs.h
12784 USE_TOOLKIT_SCROLL_BARS
=yes
12785 elif test "${HAVE_XAW3D}" = "yes" ||
test "${USE_X_TOOLKIT}" = "LUCID"; then
12786 $as_echo "#define USE_TOOLKIT_SCROLL_BARS 1" >>confdefs.h
12788 USE_TOOLKIT_SCROLL_BARS
=yes
12790 elif test "${HAVE_GTK}" = "yes"; then
12791 $as_echo "#define USE_TOOLKIT_SCROLL_BARS 1" >>confdefs.h
12793 USE_TOOLKIT_SCROLL_BARS
=yes
12794 elif test "${HAVE_NS}" = "yes"; then
12795 $as_echo "#define USE_TOOLKIT_SCROLL_BARS 1" >>confdefs.h
12797 USE_TOOLKIT_SCROLL_BARS
=yes
12801 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
12802 /* end confdefs.h. */
12804 #include <X11/Xlib.h>
12805 #include <X11/Xresource.h>
12814 if ac_fn_c_try_compile
"$LINENO"; then :
12817 $as_echo "#define HAVE_XIM 1" >>confdefs.h
12822 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
12825 if test "${with_xim}" != "no"; then
12827 $as_echo "#define USE_XIM 1" >>confdefs.h
12832 if test "${HAVE_XIM}" != "no"; then
12833 late_CFLAGS
=$CFLAGS
12834 if test "$GCC" = yes; then
12835 CFLAGS
="$CFLAGS --pedantic-errors"
12837 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
12838 /* end confdefs.h. */
12840 #include <X11/Xlib.h>
12841 #include <X11/Xresource.h>
12850 XPointer *client_data;
12852 /* If we're not using GCC, it's probably not XFree86, and this is
12853 probably right, but we can't use something like --pedantic-errors. */
12854 extern Bool XRegisterIMInstantiateCallback(Display*, XrmDatabase, char*,
12855 char*, XIMProc, XPointer*);
12857 (void)XRegisterIMInstantiateCallback(display, db, res_name, res_class, callback,
12863 if ac_fn_c_try_compile
"$LINENO"; then :
12864 emacs_cv_arg6_star
=yes
12866 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
12867 if test "$emacs_cv_arg6_star" = yes; then
12868 $as_echo "#define XRegisterIMInstantiateCallback_arg6 XPointer*" >>confdefs.h
12871 $as_echo "#define XRegisterIMInstantiateCallback_arg6 XPointer" >>confdefs.h
12874 CFLAGS
=$late_CFLAGS
12877 ### Start of font-backend (under any platform) section.
12878 # (nothing here yet -- this is a placeholder)
12879 ### End of font-backend (under any platform) section.
12881 ### Start of font-backend (under X11) section.
12882 if test "${HAVE_X11}" = "yes"; then
12886 # Extract the first word of "pkg-config", so it can be a program name with args.
12887 set dummy pkg-config
; ac_word
=$2
12888 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12889 $as_echo_n "checking for $ac_word... " >&6; }
12890 if test "${ac_cv_path_PKG_CONFIG+set}" = set; then :
12891 $as_echo_n "(cached) " >&6
12893 case $PKG_CONFIG in
12895 ac_cv_path_PKG_CONFIG
="$PKG_CONFIG" # Let the user override the test with a path.
12898 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
12899 for as_dir
in $PATH
12902 test -z "$as_dir" && as_dir
=.
12903 for ac_exec_ext
in '' $ac_executable_extensions; do
12904 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
12905 ac_cv_path_PKG_CONFIG
="$as_dir/$ac_word$ac_exec_ext"
12906 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12913 test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG
="no"
12917 PKG_CONFIG
=$ac_cv_path_PKG_CONFIG
12918 if test -n "$PKG_CONFIG"; then
12919 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5
12920 $as_echo "$PKG_CONFIG" >&6; }
12922 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12923 $as_echo "no" >&6; }
12928 if test "$PKG_CONFIG" = "no" ; then
12931 PKG_CONFIG_MIN_VERSION
=0.9.0
12932 if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
12933 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for fontconfig >= 2.2.0" >&5
12934 $as_echo_n "checking for fontconfig >= 2.2.0... " >&6; }
12936 if $PKG_CONFIG --exists "fontconfig >= 2.2.0" 2>&5 &&
12937 FONTCONFIG_CFLAGS
=`$PKG_CONFIG --cflags "fontconfig >= 2.2.0" 2>&5` &&
12938 FONTCONFIG_LIBS
=`$PKG_CONFIG --libs "fontconfig >= 2.2.0" 2>&5`; then
12945 FONTCONFIG_CFLAGS
=`$as_echo "$FONTCONFIG_CFLAGS" | sed -e "$edit_cflags"`
12946 FONTCONFIG_LIBS
=`$as_echo "$FONTCONFIG_LIBS" | sed -e 's,///*,/,g'`
12947 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes CFLAGS='$FONTCONFIG_CFLAGS' LIBS='$FONTCONFIG_LIBS'" >&5
12948 $as_echo "yes CFLAGS='$FONTCONFIG_CFLAGS' LIBS='$FONTCONFIG_LIBS'" >&6; }
12951 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12952 $as_echo "no" >&6; }
12953 FONTCONFIG_CFLAGS
=""
12955 ## If we have a custom action on failure, don't print errors, but
12956 ## do set a variable so people can do so.
12957 FONTCONFIG_PKG_ERRORS
=`$PKG_CONFIG --errors-to-stdout --print-errors "fontconfig >= 2.2.0"`
12964 echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
12965 echo "*** See http://www.freedesktop.org/software/pkgconfig"
12969 if test $succeeded = yes; then
12976 ## Use -lXft if available, unless `--with-xft=no'.
12978 if test "${HAVE_FC}" = "no" ||
test "x${with_x}" = "xno"; then
12981 if test "x${with_xft}" != "xno"; then
12986 # Extract the first word of "pkg-config", so it can be a program name with args.
12987 set dummy pkg-config
; ac_word
=$2
12988 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12989 $as_echo_n "checking for $ac_word... " >&6; }
12990 if test "${ac_cv_path_PKG_CONFIG+set}" = set; then :
12991 $as_echo_n "(cached) " >&6
12993 case $PKG_CONFIG in
12995 ac_cv_path_PKG_CONFIG
="$PKG_CONFIG" # Let the user override the test with a path.
12998 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
12999 for as_dir
in $PATH
13002 test -z "$as_dir" && as_dir
=.
13003 for ac_exec_ext
in '' $ac_executable_extensions; do
13004 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
13005 ac_cv_path_PKG_CONFIG
="$as_dir/$ac_word$ac_exec_ext"
13006 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13013 test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG
="no"
13017 PKG_CONFIG
=$ac_cv_path_PKG_CONFIG
13018 if test -n "$PKG_CONFIG"; then
13019 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5
13020 $as_echo "$PKG_CONFIG" >&6; }
13022 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13023 $as_echo "no" >&6; }
13028 if test "$PKG_CONFIG" = "no" ; then
13031 PKG_CONFIG_MIN_VERSION
=0.9.0
13032 if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
13033 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for xft >= 0.13.0" >&5
13034 $as_echo_n "checking for xft >= 0.13.0... " >&6; }
13036 if $PKG_CONFIG --exists "xft >= 0.13.0" 2>&5 &&
13037 XFT_CFLAGS
=`$PKG_CONFIG --cflags "xft >= 0.13.0" 2>&5` &&
13038 XFT_LIBS
=`$PKG_CONFIG --libs "xft >= 0.13.0" 2>&5`; then
13045 XFT_CFLAGS
=`$as_echo "$XFT_CFLAGS" | sed -e "$edit_cflags"`
13046 XFT_LIBS
=`$as_echo "$XFT_LIBS" | sed -e 's,///*,/,g'`
13047 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes CFLAGS='$XFT_CFLAGS' LIBS='$XFT_LIBS'" >&5
13048 $as_echo "yes CFLAGS='$XFT_CFLAGS' LIBS='$XFT_LIBS'" >&6; }
13051 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13052 $as_echo "no" >&6; }
13055 ## If we have a custom action on failure, don't print errors, but
13056 ## do set a variable so people can do so.
13057 XFT_PKG_ERRORS
=`$PKG_CONFIG --errors-to-stdout --print-errors "xft >= 0.13.0"`
13064 echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
13065 echo "*** See http://www.freedesktop.org/software/pkgconfig"
13069 if test $succeeded = yes; then
13075 ## Because xftfont.c uses XRenderQueryExtension, we also
13076 ## need to link to -lXrender.
13078 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for XRenderQueryExtension in -lXrender" >&5
13079 $as_echo_n "checking for XRenderQueryExtension in -lXrender... " >&6; }
13080 if test "${ac_cv_lib_Xrender_XRenderQueryExtension+set}" = set; then :
13081 $as_echo_n "(cached) " >&6
13083 ac_check_lib_save_LIBS
=$LIBS
13084 LIBS
="-lXrender $LIBS"
13085 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
13086 /* end confdefs.h. */
13088 /* Override any GCC internal prototype to avoid an error.
13089 Use char because int might match the return type of a GCC
13090 builtin and then its argument prototype would still apply. */
13094 char XRenderQueryExtension ();
13098 return XRenderQueryExtension ();
13103 if ac_fn_c_try_link
"$LINENO"; then :
13104 ac_cv_lib_Xrender_XRenderQueryExtension
=yes
13106 ac_cv_lib_Xrender_XRenderQueryExtension
=no
13108 rm -f core conftest.err conftest.
$ac_objext \
13109 conftest
$ac_exeext conftest.
$ac_ext
13110 LIBS
=$ac_check_lib_save_LIBS
13112 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_Xrender_XRenderQueryExtension" >&5
13113 $as_echo "$ac_cv_lib_Xrender_XRenderQueryExtension" >&6; }
13114 if test "x$ac_cv_lib_Xrender_XRenderQueryExtension" = x
""yes; then :
13118 if test "$HAVE_XFT" != no
&& test "$HAVE_XRENDER" != no
; then
13119 OLD_CPPFLAGS
="$CPPFLAGS"
13120 OLD_CFLAGS
="$CFLAGS"
13122 CPPFLAGS
="$CPPFLAGS $XFT_CFLAGS"
13123 CFLAGS
="$CFLAGS $XFT_CFLAGS"
13124 XFT_LIBS
="-lXrender $XFT_LIBS"
13125 LIBS
="$XFT_LIBS $LIBS"
13126 ac_fn_c_check_header_mongrel
"$LINENO" "X11/Xft/Xft.h" "ac_cv_header_X11_Xft_Xft_h" "$ac_includes_default"
13127 if test "x$ac_cv_header_X11_Xft_Xft_h" = x
""yes; then :
13128 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for XftFontOpen in -lXft" >&5
13129 $as_echo_n "checking for XftFontOpen in -lXft... " >&6; }
13130 if test "${ac_cv_lib_Xft_XftFontOpen+set}" = set; then :
13131 $as_echo_n "(cached) " >&6
13133 ac_check_lib_save_LIBS
=$LIBS
13134 LIBS
="-lXft $XFT_LIBS $LIBS"
13135 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
13136 /* end confdefs.h. */
13138 /* Override any GCC internal prototype to avoid an error.
13139 Use char because int might match the return type of a GCC
13140 builtin and then its argument prototype would still apply. */
13144 char XftFontOpen ();
13148 return XftFontOpen ();
13153 if ac_fn_c_try_link
"$LINENO"; then :
13154 ac_cv_lib_Xft_XftFontOpen
=yes
13156 ac_cv_lib_Xft_XftFontOpen
=no
13158 rm -f core conftest.err conftest.
$ac_objext \
13159 conftest
$ac_exeext conftest.
$ac_ext
13160 LIBS
=$ac_check_lib_save_LIBS
13162 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_Xft_XftFontOpen" >&5
13163 $as_echo "$ac_cv_lib_Xft_XftFontOpen" >&6; }
13164 if test "x$ac_cv_lib_Xft_XftFontOpen" = x
""yes; then :
13172 if test "${HAVE_XFT}" = "yes"; then
13174 $as_echo "#define HAVE_XFT 1" >>confdefs.h
13177 C_SWITCH_X_SITE
="$C_SWITCH_X_SITE $XFT_CFLAGS"
13179 CPPFLAGS
="$OLD_CPPFLAGS"
13180 CFLAGS
="$OLD_CFLAGS"
13182 fi # "${HAVE_XFT}" = "yes"
13183 fi # "$HAVE_XFT" != no
13184 fi # "x${with_xft}" != "xno"
13186 ## We used to allow building with FreeType and without Xft.
13187 ## However, the ftx font backend driver is not in good shape.
13188 if test "$HAVE_XFT" != "yes"; then
13195 # Extract the first word of "pkg-config", so it can be a program name with args.
13196 set dummy pkg-config
; ac_word
=$2
13197 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13198 $as_echo_n "checking for $ac_word... " >&6; }
13199 if test "${ac_cv_path_PKG_CONFIG+set}" = set; then :
13200 $as_echo_n "(cached) " >&6
13202 case $PKG_CONFIG in
13204 ac_cv_path_PKG_CONFIG
="$PKG_CONFIG" # Let the user override the test with a path.
13207 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
13208 for as_dir
in $PATH
13211 test -z "$as_dir" && as_dir
=.
13212 for ac_exec_ext
in '' $ac_executable_extensions; do
13213 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
13214 ac_cv_path_PKG_CONFIG
="$as_dir/$ac_word$ac_exec_ext"
13215 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13222 test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG
="no"
13226 PKG_CONFIG
=$ac_cv_path_PKG_CONFIG
13227 if test -n "$PKG_CONFIG"; then
13228 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5
13229 $as_echo "$PKG_CONFIG" >&6; }
13231 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13232 $as_echo "no" >&6; }
13237 if test "$PKG_CONFIG" = "no" ; then
13240 PKG_CONFIG_MIN_VERSION
=0.9.0
13241 if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
13242 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for freetype2" >&5
13243 $as_echo_n "checking for freetype2... " >&6; }
13245 if $PKG_CONFIG --exists "freetype2" 2>&5 &&
13246 FREETYPE_CFLAGS
=`$PKG_CONFIG --cflags "freetype2" 2>&5` &&
13247 FREETYPE_LIBS
=`$PKG_CONFIG --libs "freetype2" 2>&5`; then
13254 FREETYPE_CFLAGS
=`$as_echo "$FREETYPE_CFLAGS" | sed -e "$edit_cflags"`
13255 FREETYPE_LIBS
=`$as_echo "$FREETYPE_LIBS" | sed -e 's,///*,/,g'`
13256 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes CFLAGS='$FREETYPE_CFLAGS' LIBS='$FREETYPE_LIBS'" >&5
13257 $as_echo "yes CFLAGS='$FREETYPE_CFLAGS' LIBS='$FREETYPE_LIBS'" >&6; }
13260 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13261 $as_echo "no" >&6; }
13264 ## If we have a custom action on failure, don't print errors, but
13265 ## do set a variable so people can do so.
13266 FREETYPE_PKG_ERRORS
=`$PKG_CONFIG --errors-to-stdout --print-errors "freetype2"`
13273 echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
13274 echo "*** See http://www.freedesktop.org/software/pkgconfig"
13278 if test $succeeded = yes; then
13285 test "$HAVE_FREETYPE" = "no" && as_fn_error
"libxft requires libfreetype" "$LINENO" 5
13289 if test "${HAVE_FREETYPE}" = "yes"; then
13291 $as_echo "#define HAVE_FREETYPE 1" >>confdefs.h
13293 if test "${with_libotf}" != "no"; then
13297 # Extract the first word of "pkg-config", so it can be a program name with args.
13298 set dummy pkg-config
; ac_word
=$2
13299 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13300 $as_echo_n "checking for $ac_word... " >&6; }
13301 if test "${ac_cv_path_PKG_CONFIG+set}" = set; then :
13302 $as_echo_n "(cached) " >&6
13304 case $PKG_CONFIG in
13306 ac_cv_path_PKG_CONFIG
="$PKG_CONFIG" # Let the user override the test with a path.
13309 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
13310 for as_dir
in $PATH
13313 test -z "$as_dir" && as_dir
=.
13314 for ac_exec_ext
in '' $ac_executable_extensions; do
13315 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
13316 ac_cv_path_PKG_CONFIG
="$as_dir/$ac_word$ac_exec_ext"
13317 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13324 test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG
="no"
13328 PKG_CONFIG
=$ac_cv_path_PKG_CONFIG
13329 if test -n "$PKG_CONFIG"; then
13330 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5
13331 $as_echo "$PKG_CONFIG" >&6; }
13333 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13334 $as_echo "no" >&6; }
13339 if test "$PKG_CONFIG" = "no" ; then
13342 PKG_CONFIG_MIN_VERSION
=0.9.0
13343 if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
13344 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libotf" >&5
13345 $as_echo_n "checking for libotf... " >&6; }
13347 if $PKG_CONFIG --exists "libotf" 2>&5 &&
13348 LIBOTF_CFLAGS
=`$PKG_CONFIG --cflags "libotf" 2>&5` &&
13349 LIBOTF_LIBS
=`$PKG_CONFIG --libs "libotf" 2>&5`; then
13356 LIBOTF_CFLAGS
=`$as_echo "$LIBOTF_CFLAGS" | sed -e "$edit_cflags"`
13357 LIBOTF_LIBS
=`$as_echo "$LIBOTF_LIBS" | sed -e 's,///*,/,g'`
13358 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes CFLAGS='$LIBOTF_CFLAGS' LIBS='$LIBOTF_LIBS'" >&5
13359 $as_echo "yes CFLAGS='$LIBOTF_CFLAGS' LIBS='$LIBOTF_LIBS'" >&6; }
13362 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13363 $as_echo "no" >&6; }
13366 ## If we have a custom action on failure, don't print errors, but
13367 ## do set a variable so people can do so.
13368 LIBOTF_PKG_ERRORS
=`$PKG_CONFIG --errors-to-stdout --print-errors "libotf"`
13375 echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
13376 echo "*** See http://www.freedesktop.org/software/pkgconfig"
13380 if test $succeeded = yes; then
13386 if test "$HAVE_LIBOTF" = "yes"; then
13388 $as_echo "#define HAVE_LIBOTF 1" >>confdefs.h
13390 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for OTF_get_variation_glyphs in -lotf" >&5
13391 $as_echo_n "checking for OTF_get_variation_glyphs in -lotf... " >&6; }
13392 if test "${ac_cv_lib_otf_OTF_get_variation_glyphs+set}" = set; then :
13393 $as_echo_n "(cached) " >&6
13395 ac_check_lib_save_LIBS
=$LIBS
13397 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
13398 /* end confdefs.h. */
13400 /* Override any GCC internal prototype to avoid an error.
13401 Use char because int might match the return type of a GCC
13402 builtin and then its argument prototype would still apply. */
13406 char OTF_get_variation_glyphs ();
13410 return OTF_get_variation_glyphs ();
13415 if ac_fn_c_try_link
"$LINENO"; then :
13416 ac_cv_lib_otf_OTF_get_variation_glyphs
=yes
13418 ac_cv_lib_otf_OTF_get_variation_glyphs
=no
13420 rm -f core conftest.err conftest.
$ac_objext \
13421 conftest
$ac_exeext conftest.
$ac_ext
13422 LIBS
=$ac_check_lib_save_LIBS
13424 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_otf_OTF_get_variation_glyphs" >&5
13425 $as_echo "$ac_cv_lib_otf_OTF_get_variation_glyphs" >&6; }
13426 if test "x$ac_cv_lib_otf_OTF_get_variation_glyphs" = x
""yes; then :
13427 HAVE_OTF_GET_VARIATION_GLYPHS
=yes
13429 HAVE_OTF_GET_VARIATION_GLYPHS
=no
13432 if test "${HAVE_OTF_GET_VARIATION_GLYPHS}" = "yes"; then
13434 $as_echo "#define HAVE_OTF_GET_VARIATION_GLYPHS 1" >>confdefs.h
13442 if test "${HAVE_LIBOTF}" = yes; then
13443 if test "${with_m17n_flt}" != "no"; then
13447 # Extract the first word of "pkg-config", so it can be a program name with args.
13448 set dummy pkg-config
; ac_word
=$2
13449 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13450 $as_echo_n "checking for $ac_word... " >&6; }
13451 if test "${ac_cv_path_PKG_CONFIG+set}" = set; then :
13452 $as_echo_n "(cached) " >&6
13454 case $PKG_CONFIG in
13456 ac_cv_path_PKG_CONFIG
="$PKG_CONFIG" # Let the user override the test with a path.
13459 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
13460 for as_dir
in $PATH
13463 test -z "$as_dir" && as_dir
=.
13464 for ac_exec_ext
in '' $ac_executable_extensions; do
13465 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
13466 ac_cv_path_PKG_CONFIG
="$as_dir/$ac_word$ac_exec_ext"
13467 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13474 test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG
="no"
13478 PKG_CONFIG
=$ac_cv_path_PKG_CONFIG
13479 if test -n "$PKG_CONFIG"; then
13480 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5
13481 $as_echo "$PKG_CONFIG" >&6; }
13483 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13484 $as_echo "no" >&6; }
13489 if test "$PKG_CONFIG" = "no" ; then
13492 PKG_CONFIG_MIN_VERSION
=0.9.0
13493 if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
13494 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for m17n-flt" >&5
13495 $as_echo_n "checking for m17n-flt... " >&6; }
13497 if $PKG_CONFIG --exists "m17n-flt" 2>&5 &&
13498 M17N_FLT_CFLAGS
=`$PKG_CONFIG --cflags "m17n-flt" 2>&5` &&
13499 M17N_FLT_LIBS
=`$PKG_CONFIG --libs "m17n-flt" 2>&5`; then
13506 M17N_FLT_CFLAGS
=`$as_echo "$M17N_FLT_CFLAGS" | sed -e "$edit_cflags"`
13507 M17N_FLT_LIBS
=`$as_echo "$M17N_FLT_LIBS" | sed -e 's,///*,/,g'`
13508 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes CFLAGS='$M17N_FLT_CFLAGS' LIBS='$M17N_FLT_LIBS'" >&5
13509 $as_echo "yes CFLAGS='$M17N_FLT_CFLAGS' LIBS='$M17N_FLT_LIBS'" >&6; }
13512 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13513 $as_echo "no" >&6; }
13516 ## If we have a custom action on failure, don't print errors, but
13517 ## do set a variable so people can do so.
13518 M17N_FLT_PKG_ERRORS
=`$PKG_CONFIG --errors-to-stdout --print-errors "m17n-flt"`
13525 echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
13526 echo "*** See http://www.freedesktop.org/software/pkgconfig"
13530 if test $succeeded = yes; then
13536 if test "$HAVE_M17N_FLT" = "yes"; then
13538 $as_echo "#define HAVE_M17N_FLT 1" >>confdefs.h
13550 ### End of font-backend (under X11) section.
13561 ### Use -lXpm if available, unless `--with-xpm=no'.
13564 if test "${HAVE_X11}" = "yes"; then
13565 if test "${with_xpm}" != "no"; then
13566 ac_fn_c_check_header_mongrel
"$LINENO" "X11/xpm.h" "ac_cv_header_X11_xpm_h" "$ac_includes_default"
13567 if test "x$ac_cv_header_X11_xpm_h" = x
""yes; then :
13568 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for XpmReadFileToPixmap in -lXpm" >&5
13569 $as_echo_n "checking for XpmReadFileToPixmap in -lXpm... " >&6; }
13570 if test "${ac_cv_lib_Xpm_XpmReadFileToPixmap+set}" = set; then :
13571 $as_echo_n "(cached) " >&6
13573 ac_check_lib_save_LIBS
=$LIBS
13574 LIBS
="-lXpm -lX11 $LIBS"
13575 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
13576 /* end confdefs.h. */
13578 /* Override any GCC internal prototype to avoid an error.
13579 Use char because int might match the return type of a GCC
13580 builtin and then its argument prototype would still apply. */
13584 char XpmReadFileToPixmap ();
13588 return XpmReadFileToPixmap ();
13593 if ac_fn_c_try_link
"$LINENO"; then :
13594 ac_cv_lib_Xpm_XpmReadFileToPixmap
=yes
13596 ac_cv_lib_Xpm_XpmReadFileToPixmap
=no
13598 rm -f core conftest.err conftest.
$ac_objext \
13599 conftest
$ac_exeext conftest.
$ac_ext
13600 LIBS
=$ac_check_lib_save_LIBS
13602 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_Xpm_XpmReadFileToPixmap" >&5
13603 $as_echo "$ac_cv_lib_Xpm_XpmReadFileToPixmap" >&6; }
13604 if test "x$ac_cv_lib_Xpm_XpmReadFileToPixmap" = x
""yes; then :
13611 if test "${HAVE_XPM}" = "yes"; then
13612 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for XpmReturnAllocPixels preprocessor define" >&5
13613 $as_echo_n "checking for XpmReturnAllocPixels preprocessor define... " >&6; }
13614 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
13615 /* end confdefs.h. */
13616 #include "X11/xpm.h"
13617 #ifndef XpmReturnAllocPixels
13618 no_return_alloc_pixels
13622 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
13623 $EGREP "no_return_alloc_pixels" >/dev
/null
2>&1; then :
13631 if test "${HAVE_XPM}" = "yes"; then
13632 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
13633 $as_echo "yes" >&6; }
13635 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13636 $as_echo "no" >&6; }
13641 if test "${HAVE_XPM}" = "yes"; then
13643 $as_echo "#define HAVE_XPM 1" >>confdefs.h
13650 ### Use -ljpeg if available, unless `--with-jpeg=no'.
13653 if test "${HAVE_X11}" = "yes"; then
13654 if test "${with_jpeg}" != "no"; then
13655 ac_fn_c_check_header_mongrel
"$LINENO" "jerror.h" "ac_cv_header_jerror_h" "$ac_includes_default"
13656 if test "x$ac_cv_header_jerror_h" = x
""yes; then :
13657 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for jpeg_destroy_compress in -ljpeg" >&5
13658 $as_echo_n "checking for jpeg_destroy_compress in -ljpeg... " >&6; }
13659 if test "${ac_cv_lib_jpeg_jpeg_destroy_compress+set}" = set; then :
13660 $as_echo_n "(cached) " >&6
13662 ac_check_lib_save_LIBS
=$LIBS
13663 LIBS
="-ljpeg $LIBS"
13664 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
13665 /* end confdefs.h. */
13667 /* Override any GCC internal prototype to avoid an error.
13668 Use char because int might match the return type of a GCC
13669 builtin and then its argument prototype would still apply. */
13673 char jpeg_destroy_compress ();
13677 return jpeg_destroy_compress ();
13682 if ac_fn_c_try_link
"$LINENO"; then :
13683 ac_cv_lib_jpeg_jpeg_destroy_compress
=yes
13685 ac_cv_lib_jpeg_jpeg_destroy_compress
=no
13687 rm -f core conftest.err conftest.
$ac_objext \
13688 conftest
$ac_exeext conftest.
$ac_ext
13689 LIBS
=$ac_check_lib_save_LIBS
13691 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_jpeg_jpeg_destroy_compress" >&5
13692 $as_echo "$ac_cv_lib_jpeg_jpeg_destroy_compress" >&6; }
13693 if test "x$ac_cv_lib_jpeg_jpeg_destroy_compress" = x
""yes; then :
13702 if test "${HAVE_JPEG}" = "yes"; then
13703 $as_echo "#define HAVE_JPEG 1" >>confdefs.h
13705 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
13706 /* end confdefs.h. */
13707 #include <jpeglib.h>
13708 version=JPEG_LIB_VERSION
13711 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
13712 $EGREP "version= *(6[2-9]|[7-9][0-9])" >/dev
/null
2>&1; then :
13713 $as_echo "#define HAVE_JPEG 1" >>confdefs.h
13716 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: libjpeg found, but not version 6b or later" >&5
13717 $as_echo "$as_me: WARNING: libjpeg found, but not version 6b or later" >&2;}
13723 if test "${HAVE_JPEG}" = "yes"; then
13729 ### Use -lpng if available, unless `--with-png=no'.
13732 if test "${HAVE_X11}" = "yes"; then
13733 if test "${with_png}" != "no"; then
13734 # Debian unstable as of July 2003 has multiple libpngs, and puts png.h
13735 # in /usr/include/libpng.
13736 for ac_header
in png.h libpng
/png.h
13738 as_ac_Header
=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
13739 ac_fn_c_check_header_mongrel
"$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
13740 eval as_val
=\$
$as_ac_Header
13741 if test "x$as_val" = x
""yes; then :
13742 cat >>confdefs.h
<<_ACEOF
13743 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
13750 if test "$ac_cv_header_png_h" = yes ||
test "$ac_cv_header_libpng_png_h" = yes ; then
13751 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for png_get_channels in -lpng" >&5
13752 $as_echo_n "checking for png_get_channels in -lpng... " >&6; }
13753 if test "${ac_cv_lib_png_png_get_channels+set}" = set; then :
13754 $as_echo_n "(cached) " >&6
13756 ac_check_lib_save_LIBS
=$LIBS
13757 LIBS
="-lpng -lz -lm $LIBS"
13758 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
13759 /* end confdefs.h. */
13761 /* Override any GCC internal prototype to avoid an error.
13762 Use char because int might match the return type of a GCC
13763 builtin and then its argument prototype would still apply. */
13767 char png_get_channels ();
13771 return png_get_channels ();
13776 if ac_fn_c_try_link
"$LINENO"; then :
13777 ac_cv_lib_png_png_get_channels
=yes
13779 ac_cv_lib_png_png_get_channels
=no
13781 rm -f core conftest.err conftest.
$ac_objext \
13782 conftest
$ac_exeext conftest.
$ac_ext
13783 LIBS
=$ac_check_lib_save_LIBS
13785 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_png_png_get_channels" >&5
13786 $as_echo "$ac_cv_lib_png_png_get_channels" >&6; }
13787 if test "x$ac_cv_lib_png_png_get_channels" = x
""yes; then :
13794 if test "${HAVE_PNG}" = "yes"; then
13796 $as_echo "#define HAVE_PNG 1" >>confdefs.h
13798 LIBPNG
="-lpng -lz -lm"
13803 ### Use -ltiff if available, unless `--with-tiff=no'.
13806 if test "${HAVE_X11}" = "yes"; then
13807 if test "${with_tiff}" != "no"; then
13808 ac_fn_c_check_header_mongrel
"$LINENO" "tiffio.h" "ac_cv_header_tiffio_h" "$ac_includes_default"
13809 if test "x$ac_cv_header_tiffio_h" = x
""yes; then :
13811 # At least one tiff package requires the jpeg library.
13812 if test "${HAVE_JPEG}" = yes; then tifflibs
="-ljpeg $tifflibs"; fi
13813 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for TIFFGetVersion in -ltiff" >&5
13814 $as_echo_n "checking for TIFFGetVersion in -ltiff... " >&6; }
13815 if test "${ac_cv_lib_tiff_TIFFGetVersion+set}" = set; then :
13816 $as_echo_n "(cached) " >&6
13818 ac_check_lib_save_LIBS
=$LIBS
13819 LIBS
="-ltiff $tifflibs $LIBS"
13820 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
13821 /* end confdefs.h. */
13823 /* Override any GCC internal prototype to avoid an error.
13824 Use char because int might match the return type of a GCC
13825 builtin and then its argument prototype would still apply. */
13829 char TIFFGetVersion ();
13833 return TIFFGetVersion ();
13838 if ac_fn_c_try_link
"$LINENO"; then :
13839 ac_cv_lib_tiff_TIFFGetVersion
=yes
13841 ac_cv_lib_tiff_TIFFGetVersion
=no
13843 rm -f core conftest.err conftest.
$ac_objext \
13844 conftest
$ac_exeext conftest.
$ac_ext
13845 LIBS
=$ac_check_lib_save_LIBS
13847 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_tiff_TIFFGetVersion" >&5
13848 $as_echo "$ac_cv_lib_tiff_TIFFGetVersion" >&6; }
13849 if test "x$ac_cv_lib_tiff_TIFFGetVersion" = x
""yes; then :
13858 if test "${HAVE_TIFF}" = "yes"; then
13860 $as_echo "#define HAVE_TIFF 1" >>confdefs.h
13867 ### Use -lgif or -lungif if available, unless `--with-gif=no'.
13870 if test "${HAVE_X11}" = "yes" && test "${with_gif}" != "no"; then
13871 ac_fn_c_check_header_mongrel
"$LINENO" "gif_lib.h" "ac_cv_header_gif_lib_h" "$ac_includes_default"
13872 if test "x$ac_cv_header_gif_lib_h" = x
""yes; then :
13873 # EGifPutExtensionLast only exists from version libungif-4.1.0b1.
13874 # Earlier versions can crash Emacs.
13875 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for EGifPutExtensionLast in -lgif" >&5
13876 $as_echo_n "checking for EGifPutExtensionLast in -lgif... " >&6; }
13877 if test "${ac_cv_lib_gif_EGifPutExtensionLast+set}" = set; then :
13878 $as_echo_n "(cached) " >&6
13880 ac_check_lib_save_LIBS
=$LIBS
13882 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
13883 /* end confdefs.h. */
13885 /* Override any GCC internal prototype to avoid an error.
13886 Use char because int might match the return type of a GCC
13887 builtin and then its argument prototype would still apply. */
13891 char EGifPutExtensionLast ();
13895 return EGifPutExtensionLast ();
13900 if ac_fn_c_try_link
"$LINENO"; then :
13901 ac_cv_lib_gif_EGifPutExtensionLast
=yes
13903 ac_cv_lib_gif_EGifPutExtensionLast
=no
13905 rm -f core conftest.err conftest.
$ac_objext \
13906 conftest
$ac_exeext conftest.
$ac_ext
13907 LIBS
=$ac_check_lib_save_LIBS
13909 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_gif_EGifPutExtensionLast" >&5
13910 $as_echo "$ac_cv_lib_gif_EGifPutExtensionLast" >&6; }
13911 if test "x$ac_cv_lib_gif_EGifPutExtensionLast" = x
""yes; then :
13921 if test "$HAVE_GIF" = yes; then
13923 elif test "$HAVE_GIF" = maybe
; then
13924 # If gif_lib.h but no libgif, try libungif.
13925 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for EGifPutExtensionLast in -lungif" >&5
13926 $as_echo_n "checking for EGifPutExtensionLast in -lungif... " >&6; }
13927 if test "${ac_cv_lib_ungif_EGifPutExtensionLast+set}" = set; then :
13928 $as_echo_n "(cached) " >&6
13930 ac_check_lib_save_LIBS
=$LIBS
13931 LIBS
="-lungif $LIBS"
13932 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
13933 /* end confdefs.h. */
13935 /* Override any GCC internal prototype to avoid an error.
13936 Use char because int might match the return type of a GCC
13937 builtin and then its argument prototype would still apply. */
13941 char EGifPutExtensionLast ();
13945 return EGifPutExtensionLast ();
13950 if ac_fn_c_try_link
"$LINENO"; then :
13951 ac_cv_lib_ungif_EGifPutExtensionLast
=yes
13953 ac_cv_lib_ungif_EGifPutExtensionLast
=no
13955 rm -f core conftest.err conftest.
$ac_objext \
13956 conftest
$ac_exeext conftest.
$ac_ext
13957 LIBS
=$ac_check_lib_save_LIBS
13959 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_ungif_EGifPutExtensionLast" >&5
13960 $as_echo "$ac_cv_lib_ungif_EGifPutExtensionLast" >&6; }
13961 if test "x$ac_cv_lib_ungif_EGifPutExtensionLast" = x
""yes; then :
13967 test "$HAVE_GIF" = yes && LIBGIF
=-lungif
13970 if test "${HAVE_GIF}" = "yes"; then
13972 $as_echo "#define HAVE_GIF 1" >>confdefs.h
13978 if test "${HAVE_X11}" = "yes"; then
13981 test "${with_xpm}" != "no" && test "${HAVE_XPM}" != "yes" &&
13982 MISSING
="libXpm" && WITH_NO
="--with-xpm=no"
13983 test "${with_jpeg}" != "no" && test "${HAVE_JPEG}" != "yes" &&
13984 MISSING
="$MISSING libjpeg" && WITH_NO
="$WITH_NO --with-jpeg=no"
13985 test "${with_png}" != "no" && test "${HAVE_PNG}" != "yes" &&
13986 MISSING
="$MISSING libpng" && WITH_NO
="$WITH_NO --with-png=no"
13987 test "${with_gif}" != "no" && test "${HAVE_GIF}" != "yes" &&
13988 MISSING
="$MISSING libgif/libungif" && WITH_NO
="$WITH_NO --with-gif=no"
13989 test "${with_tiff}" != "no" && test "${HAVE_TIFF}" != "yes" &&
13990 MISSING
="$MISSING libtiff" && WITH_NO
="$WITH_NO --with-tiff=no"
13992 if test "X${MISSING}" != X
; then
13993 as_fn_error
"The following required libraries were not found:
13995 Maybe some development libraries/packages are missing?
13996 If you don't want to link with them give
13998 as options to configure" "$LINENO" 5
14002 ### Use -lgpm if available, unless `--with-gpm=no'.
14005 if test "${with_gpm}" != "no"; then
14006 ac_fn_c_check_header_mongrel
"$LINENO" "gpm.h" "ac_cv_header_gpm_h" "$ac_includes_default"
14007 if test "x$ac_cv_header_gpm_h" = x
""yes; then :
14008 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Gpm_Open in -lgpm" >&5
14009 $as_echo_n "checking for Gpm_Open in -lgpm... " >&6; }
14010 if test "${ac_cv_lib_gpm_Gpm_Open+set}" = set; then :
14011 $as_echo_n "(cached) " >&6
14013 ac_check_lib_save_LIBS
=$LIBS
14015 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
14016 /* end confdefs.h. */
14018 /* Override any GCC internal prototype to avoid an error.
14019 Use char because int might match the return type of a GCC
14020 builtin and then its argument prototype would still apply. */
14028 return Gpm_Open ();
14033 if ac_fn_c_try_link
"$LINENO"; then :
14034 ac_cv_lib_gpm_Gpm_Open
=yes
14036 ac_cv_lib_gpm_Gpm_Open
=no
14038 rm -f core conftest.err conftest.
$ac_objext \
14039 conftest
$ac_exeext conftest.
$ac_ext
14040 LIBS
=$ac_check_lib_save_LIBS
14042 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_gpm_Gpm_Open" >&5
14043 $as_echo "$ac_cv_lib_gpm_Gpm_Open" >&6; }
14044 if test "x$ac_cv_lib_gpm_Gpm_Open" = x
""yes; then :
14052 if test "${HAVE_GPM}" = "yes"; then
14054 $as_echo "#define HAVE_GPM 1" >>confdefs.h
14061 ac_fn_c_check_header_mongrel
"$LINENO" "malloc/malloc.h" "ac_cv_header_malloc_malloc_h" "$ac_includes_default"
14062 if test "x$ac_cv_header_malloc_malloc_h" = x
""yes; then :
14064 $as_echo "#define HAVE_MALLOC_MALLOC_H 1" >>confdefs.h
14071 ### Use NeXTstep API to implement GUI.
14072 if test "${HAVE_NS}" = "yes"; then
14074 $as_echo "#define HAVE_NS 1" >>confdefs.h
14076 if test "${NS_IMPL_COCOA}" = "yes"; then
14078 $as_echo "#define NS_IMPL_COCOA 1" >>confdefs.h
14081 if test "${NS_IMPL_GNUSTEP}" = "yes"; then
14083 $as_echo "#define NS_IMPL_GNUSTEP 1" >>confdefs.h
14085 # See also .m.o rule in Makefile.in */
14086 # FIXME: are all these flags really needed? Document here why. */
14087 GNUSTEP_CFLAGS
="-D_REENTRANT -fPIC -fno-strict-aliasing -I${GNUSTEP_SYSTEM_HEADERS} ${GNUSTEP_LOCAL_HEADERS}"
14088 ## Extra CFLAGS applied to src/*.m files.
14089 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"
14091 # We also have mouse menus.
14097 ### Use session management (-lSM -lICE) if available
14100 if test "${HAVE_X11}" = "yes"; then
14101 ac_fn_c_check_header_mongrel
"$LINENO" "X11/SM/SMlib.h" "ac_cv_header_X11_SM_SMlib_h" "$ac_includes_default"
14102 if test "x$ac_cv_header_X11_SM_SMlib_h" = x
""yes; then :
14103 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for SmcOpenConnection in -lSM" >&5
14104 $as_echo_n "checking for SmcOpenConnection in -lSM... " >&6; }
14105 if test "${ac_cv_lib_SM_SmcOpenConnection+set}" = set; then :
14106 $as_echo_n "(cached) " >&6
14108 ac_check_lib_save_LIBS
=$LIBS
14109 LIBS
="-lSM -lICE $LIBS"
14110 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
14111 /* end confdefs.h. */
14113 /* Override any GCC internal prototype to avoid an error.
14114 Use char because int might match the return type of a GCC
14115 builtin and then its argument prototype would still apply. */
14119 char SmcOpenConnection ();
14123 return SmcOpenConnection ();
14128 if ac_fn_c_try_link
"$LINENO"; then :
14129 ac_cv_lib_SM_SmcOpenConnection
=yes
14131 ac_cv_lib_SM_SmcOpenConnection
=no
14133 rm -f core conftest.err conftest.
$ac_objext \
14134 conftest
$ac_exeext conftest.
$ac_ext
14135 LIBS
=$ac_check_lib_save_LIBS
14137 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_SM_SmcOpenConnection" >&5
14138 $as_echo "$ac_cv_lib_SM_SmcOpenConnection" >&6; }
14139 if test "x$ac_cv_lib_SM_SmcOpenConnection" = x
""yes; then :
14147 if test "${HAVE_X_SM}" = "yes"; then
14149 $as_echo "#define HAVE_X_SM 1" >>confdefs.h
14151 LIBXSM
="-lSM -lICE"
14154 *) LIBS
="$LIBXSM $LIBS" ;;
14160 ### Use libxml (-lxml2) if available
14162 if test "${with_xml2}" != "no"; then
14163 ### I'm not sure what the version number should be, so I just guessed.
14167 # Extract the first word of "pkg-config", so it can be a program name with args.
14168 set dummy pkg-config
; ac_word
=$2
14169 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
14170 $as_echo_n "checking for $ac_word... " >&6; }
14171 if test "${ac_cv_path_PKG_CONFIG+set}" = set; then :
14172 $as_echo_n "(cached) " >&6
14174 case $PKG_CONFIG in
14176 ac_cv_path_PKG_CONFIG
="$PKG_CONFIG" # Let the user override the test with a path.
14179 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
14180 for as_dir
in $PATH
14183 test -z "$as_dir" && as_dir
=.
14184 for ac_exec_ext
in '' $ac_executable_extensions; do
14185 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
14186 ac_cv_path_PKG_CONFIG
="$as_dir/$ac_word$ac_exec_ext"
14187 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
14194 test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG
="no"
14198 PKG_CONFIG
=$ac_cv_path_PKG_CONFIG
14199 if test -n "$PKG_CONFIG"; then
14200 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5
14201 $as_echo "$PKG_CONFIG" >&6; }
14203 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14204 $as_echo "no" >&6; }
14209 if test "$PKG_CONFIG" = "no" ; then
14212 PKG_CONFIG_MIN_VERSION
=0.9.0
14213 if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
14214 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libxml-2.0 > 2.6.17" >&5
14215 $as_echo_n "checking for libxml-2.0 > 2.6.17... " >&6; }
14217 if $PKG_CONFIG --exists "libxml-2.0 > 2.6.17" 2>&5 &&
14218 LIBXML2_CFLAGS
=`$PKG_CONFIG --cflags "libxml-2.0 > 2.6.17" 2>&5` &&
14219 LIBXML2_LIBS
=`$PKG_CONFIG --libs "libxml-2.0 > 2.6.17" 2>&5`; then
14226 LIBXML2_CFLAGS
=`$as_echo "$LIBXML2_CFLAGS" | sed -e "$edit_cflags"`
14227 LIBXML2_LIBS
=`$as_echo "$LIBXML2_LIBS" | sed -e 's,///*,/,g'`
14228 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes CFLAGS='$LIBXML2_CFLAGS' LIBS='$LIBXML2_LIBS'" >&5
14229 $as_echo "yes CFLAGS='$LIBXML2_CFLAGS' LIBS='$LIBXML2_LIBS'" >&6; }
14232 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14233 $as_echo "no" >&6; }
14236 ## If we have a custom action on failure, don't print errors, but
14237 ## do set a variable so people can do so.
14238 LIBXML2_PKG_ERRORS
=`$PKG_CONFIG --errors-to-stdout --print-errors "libxml-2.0 > 2.6.17"`
14245 echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
14246 echo "*** See http://www.freedesktop.org/software/pkgconfig"
14250 if test $succeeded = yes; then
14256 if test "${HAVE_LIBXML2}" = "yes"; then
14257 LIBS
="$LIBXML2_LIBS $LIBS"
14258 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for htmlReadMemory in -lxml2" >&5
14259 $as_echo_n "checking for htmlReadMemory in -lxml2... " >&6; }
14260 if test "${ac_cv_lib_xml2_htmlReadMemory+set}" = set; then :
14261 $as_echo_n "(cached) " >&6
14263 ac_check_lib_save_LIBS
=$LIBS
14264 LIBS
="-lxml2 $LIBS"
14265 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
14266 /* end confdefs.h. */
14268 /* Override any GCC internal prototype to avoid an error.
14269 Use char because int might match the return type of a GCC
14270 builtin and then its argument prototype would still apply. */
14274 char htmlReadMemory ();
14278 return htmlReadMemory ();
14283 if ac_fn_c_try_link
"$LINENO"; then :
14284 ac_cv_lib_xml2_htmlReadMemory
=yes
14286 ac_cv_lib_xml2_htmlReadMemory
=no
14288 rm -f core conftest.err conftest.
$ac_objext \
14289 conftest
$ac_exeext conftest.
$ac_ext
14290 LIBS
=$ac_check_lib_save_LIBS
14292 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_xml2_htmlReadMemory" >&5
14293 $as_echo "$ac_cv_lib_xml2_htmlReadMemory" >&6; }
14294 if test "x$ac_cv_lib_xml2_htmlReadMemory" = x
""yes; then :
14300 if test "${HAVE_LIBXML2}" = "yes"; then
14302 $as_echo "#define HAVE_LIBXML2 1" >>confdefs.h
14313 # If netdb.h doesn't declare h_errno, we must declare it by hand.
14314 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether netdb declares h_errno" >&5
14315 $as_echo_n "checking whether netdb declares h_errno... " >&6; }
14316 if test "${emacs_cv_netdb_declares_h_errno+set}" = set; then :
14317 $as_echo_n "(cached) " >&6
14319 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
14320 /* end confdefs.h. */
14330 if ac_fn_c_try_link
"$LINENO"; then :
14331 emacs_cv_netdb_declares_h_errno
=yes
14333 emacs_cv_netdb_declares_h_errno
=no
14335 rm -f core conftest.err conftest.
$ac_objext \
14336 conftest
$ac_exeext conftest.
$ac_ext
14338 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $emacs_cv_netdb_declares_h_errno" >&5
14339 $as_echo "$emacs_cv_netdb_declares_h_errno" >&6; }
14340 if test $emacs_cv_netdb_declares_h_errno = yes; then
14342 $as_echo "#define HAVE_H_ERRNO 1" >>confdefs.h
14346 # fmod, logb, and frexp are found in -lm on most systems.
14347 # On HPUX 9.01, -lm does not contain logb, so check for sqrt.
14348 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sqrt in -lm" >&5
14349 $as_echo_n "checking for sqrt in -lm... " >&6; }
14350 if test "${ac_cv_lib_m_sqrt+set}" = set; then :
14351 $as_echo_n "(cached) " >&6
14353 ac_check_lib_save_LIBS
=$LIBS
14355 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
14356 /* end confdefs.h. */
14358 /* Override any GCC internal prototype to avoid an error.
14359 Use char because int might match the return type of a GCC
14360 builtin and then its argument prototype would still apply. */
14373 if ac_fn_c_try_link
"$LINENO"; then :
14374 ac_cv_lib_m_sqrt
=yes
14376 ac_cv_lib_m_sqrt
=no
14378 rm -f core conftest.err conftest.
$ac_objext \
14379 conftest
$ac_exeext conftest.
$ac_ext
14380 LIBS
=$ac_check_lib_save_LIBS
14382 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_m_sqrt" >&5
14383 $as_echo "$ac_cv_lib_m_sqrt" >&6; }
14384 if test "x$ac_cv_lib_m_sqrt" = x
""yes; then :
14385 cat >>confdefs.h
<<_ACEOF
14386 #define HAVE_LIBM 1
14394 # Check for mail-locking functions in a "mail" library. Probably this should
14395 # have the same check as for liblockfile below.
14396 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for maillock in -lmail" >&5
14397 $as_echo_n "checking for maillock in -lmail... " >&6; }
14398 if test "${ac_cv_lib_mail_maillock+set}" = set; then :
14399 $as_echo_n "(cached) " >&6
14401 ac_check_lib_save_LIBS
=$LIBS
14402 LIBS
="-lmail $LIBS"
14403 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
14404 /* end confdefs.h. */
14406 /* Override any GCC internal prototype to avoid an error.
14407 Use char because int might match the return type of a GCC
14408 builtin and then its argument prototype would still apply. */
14416 return maillock ();
14421 if ac_fn_c_try_link
"$LINENO"; then :
14422 ac_cv_lib_mail_maillock
=yes
14424 ac_cv_lib_mail_maillock
=no
14426 rm -f core conftest.err conftest.
$ac_objext \
14427 conftest
$ac_exeext conftest.
$ac_ext
14428 LIBS
=$ac_check_lib_save_LIBS
14430 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_mail_maillock" >&5
14431 $as_echo "$ac_cv_lib_mail_maillock" >&6; }
14432 if test "x$ac_cv_lib_mail_maillock" = x
""yes; then :
14438 if test $have_mail = yes; then
14440 LIBS
="$LIBS_MAIL $LIBS"
14442 $as_echo "#define HAVE_LIBMAIL 1" >>confdefs.h
14447 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for maillock in -llockfile" >&5
14448 $as_echo_n "checking for maillock in -llockfile... " >&6; }
14449 if test "${ac_cv_lib_lockfile_maillock+set}" = set; then :
14450 $as_echo_n "(cached) " >&6
14452 ac_check_lib_save_LIBS
=$LIBS
14453 LIBS
="-llockfile $LIBS"
14454 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
14455 /* end confdefs.h. */
14457 /* Override any GCC internal prototype to avoid an error.
14458 Use char because int might match the return type of a GCC
14459 builtin and then its argument prototype would still apply. */
14467 return maillock ();
14472 if ac_fn_c_try_link
"$LINENO"; then :
14473 ac_cv_lib_lockfile_maillock
=yes
14475 ac_cv_lib_lockfile_maillock
=no
14477 rm -f core conftest.err conftest.
$ac_objext \
14478 conftest
$ac_exeext conftest.
$ac_ext
14479 LIBS
=$ac_check_lib_save_LIBS
14481 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_lockfile_maillock" >&5
14482 $as_echo "$ac_cv_lib_lockfile_maillock" >&6; }
14483 if test "x$ac_cv_lib_lockfile_maillock" = x
""yes; then :
14489 if test $have_lockfile = yes; then
14490 LIBS_MAIL
=-llockfile
14491 LIBS
="$LIBS_MAIL $LIBS"
14493 $as_echo "#define HAVE_LIBLOCKFILE 1" >>confdefs.h
14496 # If we have the shared liblockfile, assume we must use it for mail
14497 # locking (e.g. Debian). If we couldn't link against liblockfile
14498 # (no liblockfile.a installed), ensure that we don't need to.
14499 # Extract the first word of "liblockfile.so", so it can be a program name with args.
14500 set dummy liblockfile.so
; ac_word
=$2
14501 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
14502 $as_echo_n "checking for $ac_word... " >&6; }
14503 if test "${ac_cv_prog_liblockfile+set}" = set; then :
14504 $as_echo_n "(cached) " >&6
14506 if test -n "$liblockfile"; then
14507 ac_cv_prog_liblockfile
="$liblockfile" # Let the user override the test.
14509 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
14510 as_dummy
="/usr/lib:/lib:/usr/local/lib:$LD_LIBRARY_PATH"
14511 for as_dir
in $as_dummy
14514 test -z "$as_dir" && as_dir
=.
14515 for ac_exec_ext
in '' $ac_executable_extensions; do
14516 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
14517 ac_cv_prog_liblockfile
="yes"
14518 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
14525 test -z "$ac_cv_prog_liblockfile" && ac_cv_prog_liblockfile
="no"
14528 liblockfile
=$ac_cv_prog_liblockfile
14529 if test -n "$liblockfile"; then
14530 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $liblockfile" >&5
14531 $as_echo "$liblockfile" >&6; }
14533 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14534 $as_echo "no" >&6; }
14538 if test $ac_cv_prog_liblockfile = yes; then
14539 as_fn_error
"Shared liblockfile found but can't link against it.
14540 This probably means that movemail could lose mail.
14541 There may be a \`development' package to install containing liblockfile." "$LINENO" 5
14544 for ac_func
in touchlock
14546 ac_fn_c_check_func
"$LINENO" "touchlock" "ac_cv_func_touchlock"
14547 if test "x$ac_cv_func_touchlock" = x
""yes; then :
14548 cat >>confdefs.h
<<_ACEOF
14549 #define HAVE_TOUCHLOCK 1
14555 for ac_header
in maillock.h
14557 ac_fn_c_check_header_mongrel
"$LINENO" "maillock.h" "ac_cv_header_maillock_h" "$ac_includes_default"
14558 if test "x$ac_cv_header_maillock_h" = x
""yes; then :
14559 cat >>confdefs.h
<<_ACEOF
14560 #define HAVE_MAILLOCK_H 1
14569 ## Define MAIL_USE_FLOCK (or LOCKF) if the mailer uses flock (or lockf) to
14570 ## interlock access to the mail spool. The alternative is a lock file named
14571 ## /usr/spool/mail/$USER.lock.
14574 aix4-2
) mail_lock
="lockf" ;;
14576 gnu|freebsd|netbsd|openbsd|darwin|irix6-5
) mail_lock
="flock" ;;
14578 ## On GNU/Linux systems, both methods are used by various mail programs.
14579 ## I assume most people are using newer mailers that have heard of flock.
14580 ## Change this if you need to.
14581 ## Debian contains a patch which says: ``On Debian/GNU/Linux systems,
14582 ## configure gets the right answers, and that means *NOT* using flock.
14583 ## Using flock is guaranteed to be the wrong thing. See Debian Policy
14584 ## for details.'' and then uses `#ifdef DEBIAN'. Unfortunately the
14585 ## Debian maintainer hasn't provided a clean fix for Emacs.
14586 ## movemail.c will use `maillock' when MAILDIR, HAVE_LIBMAIL and
14587 ## HAVE_MAILLOCK_H are defined, so the following appears to be the
14588 ## correct logic. -- fx
14589 ## We must check for HAVE_LIBLOCKFILE too, as movemail does.
14590 ## liblockfile is a Free Software replacement for libmail, used on
14591 ## Debian systems and elsewhere. -rfr.
14594 if test $have_mail = yes ||
test $have_lockfile = yes; then
14595 test $ac_cv_header_maillock_h = yes && mail_lock
=no
14601 case "$mail_lock" in
14603 $as_echo "#define MAIL_USE_FLOCK 1" >>confdefs.h
14607 $as_echo "#define MAIL_USE_LOCKF 1" >>confdefs.h
14610 *) BLESSMAIL_TARGET
="need-blessmail" ;;
14615 for ac_func
in gethostname getdomainname \
14616 rename closedir mkdir
rmdir sysinfo getrusage get_current_dir_name \
14617 random lrand48 logb frexp fmod rint cbrt ftime setsid \
14618 strerror fpathconf
select euidaccess getpagesize tzset setlocale \
14619 utimes getrlimit setrlimit setpgid getcwd getwd shutdown getaddrinfo \
14620 __fpending mblen mbrlen mbsinit strsignal setitimer ualarm \
14621 sendto recvfrom getsockopt setsockopt getsockname getpeername \
14622 gai_strerror mkstemp getline getdelim mremap fsync sync \
14623 difftime mempcpy mblen mbrlen posix_memalign \
14624 getpwent endpwent getgrent endgrent \
14625 cfmakeraw cfsetspeed copysign __executable_start
14627 as_ac_var
=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
14628 ac_fn_c_check_func
"$LINENO" "$ac_func" "$as_ac_var"
14629 eval as_val
=\$
$as_ac_var
14630 if test "x$as_val" = x
""yes; then :
14631 cat >>confdefs.h
<<_ACEOF
14632 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
14639 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for __builtin_unwind_init" >&5
14640 $as_echo_n "checking for __builtin_unwind_init... " >&6; }
14641 if test "${emacs_cv_func___builtin_unwind_init+set}" = set; then :
14642 $as_echo_n "(cached) " >&6
14644 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
14645 /* end confdefs.h. */
14650 __builtin_unwind_init ();
14655 if ac_fn_c_try_link
"$LINENO"; then :
14656 emacs_cv_func___builtin_unwind_init
=yes
14658 emacs_cv_func___builtin_unwind_init
=no
14660 rm -f core conftest.err conftest.
$ac_objext \
14661 conftest
$ac_exeext conftest.
$ac_ext
14663 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $emacs_cv_func___builtin_unwind_init" >&5
14664 $as_echo "$emacs_cv_func___builtin_unwind_init" >&6; }
14665 if test $emacs_cv_func___builtin_unwind_init = yes; then
14667 $as_echo "#define HAVE___BUILTIN_UNWIND_INIT 1" >>confdefs.h
14671 for ac_header
in sys
/un.h
14673 ac_fn_c_check_header_mongrel
"$LINENO" "sys/un.h" "ac_cv_header_sys_un_h" "$ac_includes_default"
14674 if test "x$ac_cv_header_sys_un_h" = x
""yes; then :
14675 cat >>confdefs.h
<<_ACEOF
14676 #define HAVE_SYS_UN_H 1
14684 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _LARGEFILE_SOURCE value needed for large files" >&5
14685 $as_echo_n "checking for _LARGEFILE_SOURCE value needed for large files... " >&6; }
14686 if test "${ac_cv_sys_largefile_source+set}" = set; then :
14687 $as_echo_n "(cached) " >&6
14690 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
14691 /* end confdefs.h. */
14692 #include <sys/types.h> /* for off_t */
14697 int (*fp) (FILE *, off_t, int) = fseeko;
14698 return fseeko (stdin, 0, 0) && fp (stdin, 0, 0);
14703 if ac_fn_c_try_link
"$LINENO"; then :
14704 ac_cv_sys_largefile_source
=no
; break
14706 rm -f core conftest.err conftest.
$ac_objext \
14707 conftest
$ac_exeext conftest.
$ac_ext
14708 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
14709 /* end confdefs.h. */
14710 #define _LARGEFILE_SOURCE 1
14711 #include <sys/types.h> /* for off_t */
14716 int (*fp) (FILE *, off_t, int) = fseeko;
14717 return fseeko (stdin, 0, 0) && fp (stdin, 0, 0);
14722 if ac_fn_c_try_link
"$LINENO"; then :
14723 ac_cv_sys_largefile_source
=1; break
14725 rm -f core conftest.err conftest.
$ac_objext \
14726 conftest
$ac_exeext conftest.
$ac_ext
14727 ac_cv_sys_largefile_source
=unknown
14731 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_largefile_source" >&5
14732 $as_echo "$ac_cv_sys_largefile_source" >&6; }
14733 case $ac_cv_sys_largefile_source in #(
14736 cat >>confdefs.h
<<_ACEOF
14737 #define _LARGEFILE_SOURCE $ac_cv_sys_largefile_source
14743 # We used to try defining _XOPEN_SOURCE=500 too, to work around a bug
14744 # in glibc 2.1.3, but that breaks too many other things.
14745 # If you want fseeko and ftello with glibc, upgrade to a fixed glibc.
14746 if test $ac_cv_sys_largefile_source != unknown
; then
14748 $as_echo "#define HAVE_FSEEKO 1" >>confdefs.h
14753 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether getpgrp requires zero arguments" >&5
14754 $as_echo_n "checking whether getpgrp requires zero arguments... " >&6; }
14755 if test "${ac_cv_func_getpgrp_void+set}" = set; then :
14756 $as_echo_n "(cached) " >&6
14758 # Use it with a single arg.
14759 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
14760 /* end confdefs.h. */
14761 $ac_includes_default
14770 if ac_fn_c_try_compile
"$LINENO"; then :
14771 ac_cv_func_getpgrp_void
=no
14773 ac_cv_func_getpgrp_void
=yes
14775 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
14778 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_getpgrp_void" >&5
14779 $as_echo "$ac_cv_func_getpgrp_void" >&6; }
14780 if test $ac_cv_func_getpgrp_void = yes; then
14782 $as_echo "#define GETPGRP_VOID 1" >>confdefs.h
14788 for ac_func
in grantpt
14790 ac_fn_c_check_func
"$LINENO" "grantpt" "ac_cv_func_grantpt"
14791 if test "x$ac_cv_func_grantpt" = x
""yes; then :
14792 cat >>confdefs.h
<<_ACEOF
14793 #define HAVE_GRANTPT 1
14800 # PTY-related GNU extensions.
14801 for ac_func
in getpt
14803 ac_fn_c_check_func
"$LINENO" "getpt" "ac_cv_func_getpt"
14804 if test "x$ac_cv_func_getpt" = x
""yes; then :
14805 cat >>confdefs.h
<<_ACEOF
14806 #define HAVE_GETPT 1
14813 # Check this now, so that we will NOT find the above functions in ncurses.
14814 # That is because we have not set up to link ncurses in lib-src.
14815 # It's better to believe a function is not available
14816 # than to expect to find it in ncurses.
14817 # Also we need tputs and friends to be able to build at all.
14818 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing tputs" >&5
14819 $as_echo_n "checking for library containing tputs... " >&6; }
14820 # Run a test program that contains a call to tputs, a call that is
14821 # never executed. This tests whether a pre-'main' dynamic linker
14822 # works with the library. It's too much trouble to actually call
14823 # tputs in the test program, due to portability hassles. When
14824 # cross-compiling, assume the test program will run if it links.
14826 # Maybe curses should be tried earlier?
14827 # See http://debbugs.gnu.org/cgi/bugreport.cgi?bug=9736#35
14828 for tputs_library
in '' ncurses terminfo termcap curses
; do
14830 if test -z "$tputs_library"; then
14832 msg
='none required'
14834 LIBS_TERMCAP
=-l$tputs_library
14836 LIBS
="$LIBS_TERMCAP $LIBS"
14838 if test "$cross_compiling" = yes; then :
14839 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
14840 /* end confdefs.h. */
14842 extern void tputs (const char *, int, int (*)(int));
14843 int main (int argc, char **argv)
14846 tputs (argv[0], 0, 0);
14851 if ac_fn_c_try_link
"$LINENO"; then :
14856 rm -f core conftest.err conftest.
$ac_objext \
14857 conftest
$ac_exeext conftest.
$ac_ext
14859 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
14860 /* end confdefs.h. */
14862 extern void tputs (const char *, int, int (*)(int));
14863 int main (int argc, char **argv)
14866 tputs (argv[0], 0, 0);
14871 if ac_fn_c_try_run
"$LINENO"; then :
14876 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
14877 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
14881 if test "X$msg" != Xno
; then
14885 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $msg" >&5
14886 $as_echo "$msg" >&6; }
14887 if test "X$msg" = Xno
; then
14888 as_fn_error
"The required function \`tputs' was not found in any library.
14889 These libraries were tried: libncurses, libterminfo, libtermcap, libcurses.
14890 Please try installing whichever of these libraries is most appropriate
14891 for your system, together with its header files.
14892 For example, a libncurses-dev(el) or similar package." "$LINENO" 5
14894 # Must define this when any termcap library is found.
14896 $as_echo "#define HAVE_LIBNCURSES 1" >>confdefs.h
14898 ## FIXME This was the cpp logic, but I am not sure it is right.
14899 ## The above test has not necessarily found libncurses.
14900 HAVE_LIBNCURSES
=yes
14902 ## Use terminfo instead of termcap?
14903 ## Note only system files NOT using terminfo are:
14904 ## freebsd < 40000, ms-w32, msdos, netbsd < 599002500, and
14905 ## darwin|gnu without ncurses.
14908 ## cygwin: Fewer environment variables to go wrong, more terminal types.
14909 ## hpux10-20: Use the system provided termcap(3) library.
14910 ## openbsd: David Mazieres <dm@reeducation-labor.lcs.mit.edu> says this
14911 ## is necessary. Otherwise Emacs dumps core when run -nw.
14912 aix4-2|cygwin|hpux
*|irix6-5|openbsd|sol2
*|unixware
) TERMINFO
=yes ;;
14914 ## darwin: Prevents crashes when running Emacs in Terminal.app under 10.2.
14915 ## The ncurses library has been moved out of the System framework in
14916 ## Mac OS X 10.2. So if configure detects it, set the command-line
14917 ## option to use it.
14919 ## (HAVE_LIBNCURSES was not always true, but is since 2010-03-18.)
14920 if test "x$HAVE_LIBNCURSES" = "xyes"; then
14922 LIBS_TERMCAP
="-lncurses"
14927 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether FreeBSD is new enough to use terminfo" >&5
14928 $as_echo_n "checking whether FreeBSD is new enough to use terminfo... " >&6; }
14929 if test "${emacs_cv_freebsd_terminfo+set}" = set; then :
14930 $as_echo_n "(cached) " >&6
14932 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
14933 /* end confdefs.h. */
14934 #include <osreldate.h>
14938 #if __FreeBSD_version < 400000
14946 if ac_fn_c_try_link
"$LINENO"; then :
14947 emacs_cv_freebsd_terminfo
=yes
14949 emacs_cv_freebsd_terminfo
=no
14951 rm -f core conftest.err conftest.
$ac_objext \
14952 conftest
$ac_exeext conftest.
$ac_ext
14956 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $emacs_cv_freebsd_terminfo" >&5
14957 $as_echo "$emacs_cv_freebsd_terminfo" >&6; }
14959 if test $emacs_cv_freebsd_terminfo = yes; then
14961 LIBS_TERMCAP
="-lncurses"
14963 LIBS_TERMCAP
="-ltermcap"
14968 if test $ac_cv_search_tputs = -lterminfo; then
14970 LIBS_TERMCAP
="-lterminfo"
14972 LIBS_TERMCAP
="-ltermcap"
14979 ## hpux: Make sure we get select from libc rather than from libcurses
14980 ## because libcurses on HPUX 10.10 has a broken version of select.
14981 ## We used to use -lc -lcurses, but this may be cleaner.
14982 hpux
*) LIBS_TERMCAP
="-ltermcap" ;;
14984 openbsd
) LIBS_TERMCAP
="-lncurses" ;;
14986 ## Must use system termcap, if we use any termcap. It does special things.
14987 sol2
*) test "$TERMINFO" != yes && LIBS_TERMCAP
="-ltermcap" ;;
14990 TERMCAP_OBJ
=tparam.o
14991 if test $TERMINFO = yes; then
14993 $as_echo "#define TERMINFO 1" >>confdefs.h
14995 TERMCAP_OBJ
=terminfo.o
15001 # Do we have res_init, for detecting changes in /etc/resolv.conf?
15003 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
15004 /* end confdefs.h. */
15005 #include <netinet/in.h>
15006 #include <arpa/nameser.h>
15007 #include <resolv.h>
15016 if ac_fn_c_try_link
"$LINENO"; then :
15021 rm -f core conftest.err conftest.
$ac_objext \
15022 conftest
$ac_exeext conftest.
$ac_ext
15023 if test "$have_res_init" = no
; then
15025 LIBS
="$LIBS -lresolv"
15026 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for res_init with -lresolv" >&5
15027 $as_echo_n "checking for res_init with -lresolv... " >&6; }
15028 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
15029 /* end confdefs.h. */
15030 #include <netinet/in.h>
15031 #include <arpa/nameser.h>
15032 #include <resolv.h>
15041 if ac_fn_c_try_link
"$LINENO"; then :
15046 rm -f core conftest.err conftest.
$ac_objext \
15047 conftest
$ac_exeext conftest.
$ac_ext
15048 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_res_init" >&5
15049 $as_echo "$have_res_init" >&6; }
15050 if test "$have_res_init" = yes ; then
15056 if test "$have_res_init" = yes; then
15058 $as_echo "#define HAVE_RES_INIT 1" >>confdefs.h
15062 # Do we need the Hesiod library to provide the support routines?
15064 if test "$with_hesiod" != no
; then
15065 # Don't set $LIBS here -- see comments above. FIXME which comments?
15066 ac_fn_c_check_func
"$LINENO" "res_send" "ac_cv_func_res_send"
15067 if test "x$ac_cv_func_res_send" = x
""yes; then :
15070 ac_fn_c_check_func
"$LINENO" "__res_send" "ac_cv_func___res_send"
15071 if test "x$ac_cv_func___res_send" = x
""yes; then :
15074 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for res_send in -lresolv" >&5
15075 $as_echo_n "checking for res_send in -lresolv... " >&6; }
15076 if test "${ac_cv_lib_resolv_res_send+set}" = set; then :
15077 $as_echo_n "(cached) " >&6
15079 ac_check_lib_save_LIBS
=$LIBS
15080 LIBS
="-lresolv $LIBS"
15081 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
15082 /* end confdefs.h. */
15084 /* Override any GCC internal prototype to avoid an error.
15085 Use char because int might match the return type of a GCC
15086 builtin and then its argument prototype would still apply. */
15094 return res_send ();
15099 if ac_fn_c_try_link
"$LINENO"; then :
15100 ac_cv_lib_resolv_res_send
=yes
15102 ac_cv_lib_resolv_res_send
=no
15104 rm -f core conftest.err conftest.
$ac_objext \
15105 conftest
$ac_exeext conftest.
$ac_ext
15106 LIBS
=$ac_check_lib_save_LIBS
15108 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_resolv_res_send" >&5
15109 $as_echo "$ac_cv_lib_resolv_res_send" >&6; }
15110 if test "x$ac_cv_lib_resolv_res_send" = x
""yes; then :
15113 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for __res_send in -lresolv" >&5
15114 $as_echo_n "checking for __res_send in -lresolv... " >&6; }
15115 if test "${ac_cv_lib_resolv___res_send+set}" = set; then :
15116 $as_echo_n "(cached) " >&6
15118 ac_check_lib_save_LIBS
=$LIBS
15119 LIBS
="-lresolv $LIBS"
15120 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
15121 /* end confdefs.h. */
15123 /* Override any GCC internal prototype to avoid an error.
15124 Use char because int might match the return type of a GCC
15125 builtin and then its argument prototype would still apply. */
15129 char __res_send ();
15133 return __res_send ();
15138 if ac_fn_c_try_link
"$LINENO"; then :
15139 ac_cv_lib_resolv___res_send
=yes
15141 ac_cv_lib_resolv___res_send
=no
15143 rm -f core conftest.err conftest.
$ac_objext \
15144 conftest
$ac_exeext conftest.
$ac_ext
15145 LIBS
=$ac_check_lib_save_LIBS
15147 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_resolv___res_send" >&5
15148 $as_echo "$ac_cv_lib_resolv___res_send" >&6; }
15149 if test "x$ac_cv_lib_resolv___res_send" = x
""yes; then :
15159 if test "$resolv" = yes ; then
15164 ac_fn_c_check_func
"$LINENO" "hes_getmailhost" "ac_cv_func_hes_getmailhost"
15165 if test "x$ac_cv_func_hes_getmailhost" = x
""yes; then :
15168 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for hes_getmailhost in -lhesiod" >&5
15169 $as_echo_n "checking for hes_getmailhost in -lhesiod... " >&6; }
15170 if test "${ac_cv_lib_hesiod_hes_getmailhost+set}" = set; then :
15171 $as_echo_n "(cached) " >&6
15173 ac_check_lib_save_LIBS
=$LIBS
15174 LIBS
="-lhesiod $RESOLVLIB $LIBS"
15175 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
15176 /* end confdefs.h. */
15178 /* Override any GCC internal prototype to avoid an error.
15179 Use char because int might match the return type of a GCC
15180 builtin and then its argument prototype would still apply. */
15184 char hes_getmailhost ();
15188 return hes_getmailhost ();
15193 if ac_fn_c_try_link
"$LINENO"; then :
15194 ac_cv_lib_hesiod_hes_getmailhost
=yes
15196 ac_cv_lib_hesiod_hes_getmailhost
=no
15198 rm -f core conftest.err conftest.
$ac_objext \
15199 conftest
$ac_exeext conftest.
$ac_ext
15200 LIBS
=$ac_check_lib_save_LIBS
15202 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_hesiod_hes_getmailhost" >&5
15203 $as_echo "$ac_cv_lib_hesiod_hes_getmailhost" >&6; }
15204 if test "x$ac_cv_lib_hesiod_hes_getmailhost" = x
""yes; then :
15213 if test x
"$hesiod" = xyes
; then
15215 $as_echo "#define HAVE_LIBHESIOD 1" >>confdefs.h
15222 # Do we need libresolv (due to res_init or Hesiod)?
15223 if test "$resolv" = yes ; then
15225 $as_echo "#define HAVE_LIBRESOLV 1" >>confdefs.h
15233 # These tell us which Kerberos-related libraries to use.
15240 if test "${with_kerberos}" != no
; then
15241 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for com_err in -lcom_err" >&5
15242 $as_echo_n "checking for com_err in -lcom_err... " >&6; }
15243 if test "${ac_cv_lib_com_err_com_err+set}" = set; then :
15244 $as_echo_n "(cached) " >&6
15246 ac_check_lib_save_LIBS
=$LIBS
15247 LIBS
="-lcom_err $LIBS"
15248 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
15249 /* end confdefs.h. */
15251 /* Override any GCC internal prototype to avoid an error.
15252 Use char because int might match the return type of a GCC
15253 builtin and then its argument prototype would still apply. */
15266 if ac_fn_c_try_link
"$LINENO"; then :
15267 ac_cv_lib_com_err_com_err
=yes
15269 ac_cv_lib_com_err_com_err
=no
15271 rm -f core conftest.err conftest.
$ac_objext \
15272 conftest
$ac_exeext conftest.
$ac_ext
15273 LIBS
=$ac_check_lib_save_LIBS
15275 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_com_err_com_err" >&5
15276 $as_echo "$ac_cv_lib_com_err_com_err" >&6; }
15277 if test "x$ac_cv_lib_com_err_com_err" = x
""yes; then :
15283 if test $have_com_err = yes; then
15284 COM_ERRLIB
=-lcom_err
15285 LIBS
="$COM_ERRLIB $LIBS"
15287 $as_echo "#define HAVE_LIBCOM_ERR 1" >>confdefs.h
15290 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for mit_des_cbc_encrypt in -lcrypto" >&5
15291 $as_echo_n "checking for mit_des_cbc_encrypt in -lcrypto... " >&6; }
15292 if test "${ac_cv_lib_crypto_mit_des_cbc_encrypt+set}" = set; then :
15293 $as_echo_n "(cached) " >&6
15295 ac_check_lib_save_LIBS
=$LIBS
15296 LIBS
="-lcrypto $LIBS"
15297 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
15298 /* end confdefs.h. */
15300 /* Override any GCC internal prototype to avoid an error.
15301 Use char because int might match the return type of a GCC
15302 builtin and then its argument prototype would still apply. */
15306 char mit_des_cbc_encrypt ();
15310 return mit_des_cbc_encrypt ();
15315 if ac_fn_c_try_link
"$LINENO"; then :
15316 ac_cv_lib_crypto_mit_des_cbc_encrypt
=yes
15318 ac_cv_lib_crypto_mit_des_cbc_encrypt
=no
15320 rm -f core conftest.err conftest.
$ac_objext \
15321 conftest
$ac_exeext conftest.
$ac_ext
15322 LIBS
=$ac_check_lib_save_LIBS
15324 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_crypto_mit_des_cbc_encrypt" >&5
15325 $as_echo "$ac_cv_lib_crypto_mit_des_cbc_encrypt" >&6; }
15326 if test "x$ac_cv_lib_crypto_mit_des_cbc_encrypt" = x
""yes; then :
15332 if test $have_crypto = yes; then
15334 LIBS
="$CRYPTOLIB $LIBS"
15336 $as_echo "#define HAVE_LIBCRYPTO 1" >>confdefs.h
15339 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for mit_des_cbc_encrypt in -lk5crypto" >&5
15340 $as_echo_n "checking for mit_des_cbc_encrypt in -lk5crypto... " >&6; }
15341 if test "${ac_cv_lib_k5crypto_mit_des_cbc_encrypt+set}" = set; then :
15342 $as_echo_n "(cached) " >&6
15344 ac_check_lib_save_LIBS
=$LIBS
15345 LIBS
="-lk5crypto $LIBS"
15346 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
15347 /* end confdefs.h. */
15349 /* Override any GCC internal prototype to avoid an error.
15350 Use char because int might match the return type of a GCC
15351 builtin and then its argument prototype would still apply. */
15355 char mit_des_cbc_encrypt ();
15359 return mit_des_cbc_encrypt ();
15364 if ac_fn_c_try_link
"$LINENO"; then :
15365 ac_cv_lib_k5crypto_mit_des_cbc_encrypt
=yes
15367 ac_cv_lib_k5crypto_mit_des_cbc_encrypt
=no
15369 rm -f core conftest.err conftest.
$ac_objext \
15370 conftest
$ac_exeext conftest.
$ac_ext
15371 LIBS
=$ac_check_lib_save_LIBS
15373 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_k5crypto_mit_des_cbc_encrypt" >&5
15374 $as_echo "$ac_cv_lib_k5crypto_mit_des_cbc_encrypt" >&6; }
15375 if test "x$ac_cv_lib_k5crypto_mit_des_cbc_encrypt" = x
""yes; then :
15381 if test $have_k5crypto = yes; then
15382 CRYPTOLIB
=-lk5crypto
15383 LIBS
="$CRYPTOLIB $LIBS"
15385 $as_echo "#define HAVE_LIBK5CRYPTO 1" >>confdefs.h
15388 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for krb5_init_context in -lkrb5" >&5
15389 $as_echo_n "checking for krb5_init_context in -lkrb5... " >&6; }
15390 if test "${ac_cv_lib_krb5_krb5_init_context+set}" = set; then :
15391 $as_echo_n "(cached) " >&6
15393 ac_check_lib_save_LIBS
=$LIBS
15394 LIBS
="-lkrb5 $LIBS"
15395 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
15396 /* end confdefs.h. */
15398 /* Override any GCC internal prototype to avoid an error.
15399 Use char because int might match the return type of a GCC
15400 builtin and then its argument prototype would still apply. */
15404 char krb5_init_context ();
15408 return krb5_init_context ();
15413 if ac_fn_c_try_link
"$LINENO"; then :
15414 ac_cv_lib_krb5_krb5_init_context
=yes
15416 ac_cv_lib_krb5_krb5_init_context
=no
15418 rm -f core conftest.err conftest.
$ac_objext \
15419 conftest
$ac_exeext conftest.
$ac_ext
15420 LIBS
=$ac_check_lib_save_LIBS
15422 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_krb5_krb5_init_context" >&5
15423 $as_echo "$ac_cv_lib_krb5_krb5_init_context" >&6; }
15424 if test "x$ac_cv_lib_krb5_krb5_init_context" = x
""yes; then :
15430 if test $have_krb5=yes; then
15432 LIBS
="$KRB5LIB $LIBS"
15434 $as_echo "#define HAVE_LIBKRB5 1" >>confdefs.h
15437 if test "${with_kerberos5}" = no
; then
15438 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for des_cbc_encrypt in -ldes425" >&5
15439 $as_echo_n "checking for des_cbc_encrypt in -ldes425... " >&6; }
15440 if test "${ac_cv_lib_des425_des_cbc_encrypt+set}" = set; then :
15441 $as_echo_n "(cached) " >&6
15443 ac_check_lib_save_LIBS
=$LIBS
15444 LIBS
="-ldes425 $LIBS"
15445 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
15446 /* end confdefs.h. */
15448 /* Override any GCC internal prototype to avoid an error.
15449 Use char because int might match the return type of a GCC
15450 builtin and then its argument prototype would still apply. */
15454 char des_cbc_encrypt ();
15458 return des_cbc_encrypt ();
15463 if ac_fn_c_try_link
"$LINENO"; then :
15464 ac_cv_lib_des425_des_cbc_encrypt
=yes
15466 ac_cv_lib_des425_des_cbc_encrypt
=no
15468 rm -f core conftest.err conftest.
$ac_objext \
15469 conftest
$ac_exeext conftest.
$ac_ext
15470 LIBS
=$ac_check_lib_save_LIBS
15472 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_des425_des_cbc_encrypt" >&5
15473 $as_echo "$ac_cv_lib_des425_des_cbc_encrypt" >&6; }
15474 if test "x$ac_cv_lib_des425_des_cbc_encrypt" = x
""yes; then :
15480 if test $have_des425 = yes; then
15482 LIBS
="$DESLIB $LIBS"
15484 $as_echo "#define HAVE_LIBDES425 1" >>confdefs.h
15487 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for des_cbc_encrypt in -ldes" >&5
15488 $as_echo_n "checking for des_cbc_encrypt in -ldes... " >&6; }
15489 if test "${ac_cv_lib_des_des_cbc_encrypt+set}" = set; then :
15490 $as_echo_n "(cached) " >&6
15492 ac_check_lib_save_LIBS
=$LIBS
15494 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
15495 /* end confdefs.h. */
15497 /* Override any GCC internal prototype to avoid an error.
15498 Use char because int might match the return type of a GCC
15499 builtin and then its argument prototype would still apply. */
15503 char des_cbc_encrypt ();
15507 return des_cbc_encrypt ();
15512 if ac_fn_c_try_link
"$LINENO"; then :
15513 ac_cv_lib_des_des_cbc_encrypt
=yes
15515 ac_cv_lib_des_des_cbc_encrypt
=no
15517 rm -f core conftest.err conftest.
$ac_objext \
15518 conftest
$ac_exeext conftest.
$ac_ext
15519 LIBS
=$ac_check_lib_save_LIBS
15521 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_des_des_cbc_encrypt" >&5
15522 $as_echo "$ac_cv_lib_des_des_cbc_encrypt" >&6; }
15523 if test "x$ac_cv_lib_des_des_cbc_encrypt" = x
""yes; then :
15529 if test $have_des = yes; then
15531 LIBS
="$DESLIB $LIBS"
15533 $as_echo "#define HAVE_LIBDES 1" >>confdefs.h
15537 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for krb_get_cred in -lkrb4" >&5
15538 $as_echo_n "checking for krb_get_cred in -lkrb4... " >&6; }
15539 if test "${ac_cv_lib_krb4_krb_get_cred+set}" = set; then :
15540 $as_echo_n "(cached) " >&6
15542 ac_check_lib_save_LIBS
=$LIBS
15543 LIBS
="-lkrb4 $LIBS"
15544 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
15545 /* end confdefs.h. */
15547 /* Override any GCC internal prototype to avoid an error.
15548 Use char because int might match the return type of a GCC
15549 builtin and then its argument prototype would still apply. */
15553 char krb_get_cred ();
15557 return krb_get_cred ();
15562 if ac_fn_c_try_link
"$LINENO"; then :
15563 ac_cv_lib_krb4_krb_get_cred
=yes
15565 ac_cv_lib_krb4_krb_get_cred
=no
15567 rm -f core conftest.err conftest.
$ac_objext \
15568 conftest
$ac_exeext conftest.
$ac_ext
15569 LIBS
=$ac_check_lib_save_LIBS
15571 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_krb4_krb_get_cred" >&5
15572 $as_echo "$ac_cv_lib_krb4_krb_get_cred" >&6; }
15573 if test "x$ac_cv_lib_krb4_krb_get_cred" = x
""yes; then :
15579 if test $have_krb4 = yes; then
15581 LIBS
="$KRB4LIB $LIBS"
15583 $as_echo "#define HAVE_LIBKRB4 1" >>confdefs.h
15586 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for krb_get_cred in -lkrb" >&5
15587 $as_echo_n "checking for krb_get_cred in -lkrb... " >&6; }
15588 if test "${ac_cv_lib_krb_krb_get_cred+set}" = set; then :
15589 $as_echo_n "(cached) " >&6
15591 ac_check_lib_save_LIBS
=$LIBS
15593 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
15594 /* end confdefs.h. */
15596 /* Override any GCC internal prototype to avoid an error.
15597 Use char because int might match the return type of a GCC
15598 builtin and then its argument prototype would still apply. */
15602 char krb_get_cred ();
15606 return krb_get_cred ();
15611 if ac_fn_c_try_link
"$LINENO"; then :
15612 ac_cv_lib_krb_krb_get_cred
=yes
15614 ac_cv_lib_krb_krb_get_cred
=no
15616 rm -f core conftest.err conftest.
$ac_objext \
15617 conftest
$ac_exeext conftest.
$ac_ext
15618 LIBS
=$ac_check_lib_save_LIBS
15620 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_krb_krb_get_cred" >&5
15621 $as_echo "$ac_cv_lib_krb_krb_get_cred" >&6; }
15622 if test "x$ac_cv_lib_krb_krb_get_cred" = x
""yes; then :
15628 if test $have_krb = yes; then
15630 LIBS
="$KRB4LIB $LIBS"
15632 $as_echo "#define HAVE_LIBKRB 1" >>confdefs.h
15638 if test "${with_kerberos5}" != no
; then
15639 for ac_header
in krb5.h
15641 ac_fn_c_check_header_mongrel
"$LINENO" "krb5.h" "ac_cv_header_krb5_h" "$ac_includes_default"
15642 if test "x$ac_cv_header_krb5_h" = x
""yes; then :
15643 cat >>confdefs.h
<<_ACEOF
15644 #define HAVE_KRB5_H 1
15646 ac_fn_c_check_member
"$LINENO" "krb5_error" "text" "ac_cv_member_krb5_error_text" "#include <krb5.h>
15648 if test "x$ac_cv_member_krb5_error_text" = x
""yes; then :
15650 cat >>confdefs.h
<<_ACEOF
15651 #define HAVE_KRB5_ERROR_TEXT 1
15656 ac_fn_c_check_member
"$LINENO" "krb5_error" "e_text" "ac_cv_member_krb5_error_e_text" "#include <krb5.h>
15658 if test "x$ac_cv_member_krb5_error_e_text" = x
""yes; then :
15660 cat >>confdefs.h
<<_ACEOF
15661 #define HAVE_KRB5_ERROR_E_TEXT 1
15672 for ac_header
in des.h
15674 ac_fn_c_check_header_mongrel
"$LINENO" "des.h" "ac_cv_header_des_h" "$ac_includes_default"
15675 if test "x$ac_cv_header_des_h" = x
""yes; then :
15676 cat >>confdefs.h
<<_ACEOF
15677 #define HAVE_DES_H 1
15681 for ac_header
in kerberosIV
/des.h
15683 ac_fn_c_check_header_mongrel
"$LINENO" "kerberosIV/des.h" "ac_cv_header_kerberosIV_des_h" "$ac_includes_default"
15684 if test "x$ac_cv_header_kerberosIV_des_h" = x
""yes; then :
15685 cat >>confdefs.h
<<_ACEOF
15686 #define HAVE_KERBEROSIV_DES_H 1
15690 for ac_header
in kerberos
/des.h
15692 ac_fn_c_check_header_mongrel
"$LINENO" "kerberos/des.h" "ac_cv_header_kerberos_des_h" "$ac_includes_default"
15693 if test "x$ac_cv_header_kerberos_des_h" = x
""yes; then :
15694 cat >>confdefs.h
<<_ACEOF
15695 #define HAVE_KERBEROS_DES_H 1
15710 for ac_header
in krb.h
15712 ac_fn_c_check_header_mongrel
"$LINENO" "krb.h" "ac_cv_header_krb_h" "$ac_includes_default"
15713 if test "x$ac_cv_header_krb_h" = x
""yes; then :
15714 cat >>confdefs.h
<<_ACEOF
15715 #define HAVE_KRB_H 1
15719 for ac_header
in kerberosIV
/krb.h
15721 ac_fn_c_check_header_mongrel
"$LINENO" "kerberosIV/krb.h" "ac_cv_header_kerberosIV_krb_h" "$ac_includes_default"
15722 if test "x$ac_cv_header_kerberosIV_krb_h" = x
""yes; then :
15723 cat >>confdefs.h
<<_ACEOF
15724 #define HAVE_KERBEROSIV_KRB_H 1
15728 for ac_header
in kerberos
/krb.h
15730 ac_fn_c_check_header_mongrel
"$LINENO" "kerberos/krb.h" "ac_cv_header_kerberos_krb_h" "$ac_includes_default"
15731 if test "x$ac_cv_header_kerberos_krb_h" = x
""yes; then :
15732 cat >>confdefs.h
<<_ACEOF
15733 #define HAVE_KERBEROS_KRB_H 1
15749 for ac_header
in com_err.h
15751 ac_fn_c_check_header_mongrel
"$LINENO" "com_err.h" "ac_cv_header_com_err_h" "$ac_includes_default"
15752 if test "x$ac_cv_header_com_err_h" = x
""yes; then :
15753 cat >>confdefs.h
<<_ACEOF
15754 #define HAVE_COM_ERR_H 1
15769 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether localtime caches TZ" >&5
15770 $as_echo_n "checking whether localtime caches TZ... " >&6; }
15771 if test "${emacs_cv_localtime_cache+set}" = set; then :
15772 $as_echo_n "(cached) " >&6
15774 if test x
$ac_cv_func_tzset = xyes
; then
15775 if test "$cross_compiling" = yes; then :
15776 # If we have tzset, assume the worst when cross-compiling.
15777 emacs_cv_localtime_cache
=yes
15779 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
15780 /* end confdefs.h. */
15782 char TZ_GMT0[] = "TZ=GMT0";
15783 char TZ_PST8[] = "TZ=PST8";
15786 time_t now = time ((time_t *) 0);
15787 int hour_GMT0, hour_unset;
15788 if (putenv (TZ_GMT0) != 0)
15790 hour_GMT0 = localtime (&now)->tm_hour;
15792 hour_unset = localtime (&now)->tm_hour;
15793 if (putenv (TZ_PST8) != 0)
15795 if (localtime (&now)->tm_hour == hour_GMT0)
15798 if (localtime (&now)->tm_hour != hour_unset)
15803 if ac_fn_c_try_run
"$LINENO"; then :
15804 emacs_cv_localtime_cache
=no
15806 emacs_cv_localtime_cache
=yes
15808 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
15809 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
15813 # If we lack tzset, report that localtime does not cache TZ,
15814 # since we can't invalidate the cache if we don't have tzset.
15815 emacs_cv_localtime_cache
=no
15818 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $emacs_cv_localtime_cache" >&5
15819 $as_echo "$emacs_cv_localtime_cache" >&6; }
15820 if test $emacs_cv_localtime_cache = yes; then
15822 $as_echo "#define LOCALTIME_CACHE 1" >>confdefs.h
15826 if test "x$HAVE_TIMEVAL" = xyes
; then
15827 for ac_func
in gettimeofday
15829 ac_fn_c_check_func
"$LINENO" "gettimeofday" "ac_cv_func_gettimeofday"
15830 if test "x$ac_cv_func_gettimeofday" = x
""yes; then :
15831 cat >>confdefs.h
<<_ACEOF
15832 #define HAVE_GETTIMEOFDAY 1
15838 if test $ac_cv_func_gettimeofday = yes; then
15839 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether gettimeofday can accept two arguments" >&5
15840 $as_echo_n "checking whether gettimeofday can accept two arguments... " >&6; }
15841 if test "${emacs_cv_gettimeofday_two_arguments+set}" = set; then :
15842 $as_echo_n "(cached) " >&6
15844 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
15845 /* end confdefs.h. */
15847 #ifdef TIME_WITH_SYS_TIME
15848 #include <sys/time.h>
15851 #ifdef HAVE_SYS_TIME_H
15852 #include <sys/time.h>
15860 struct timeval time;
15861 gettimeofday (&time, 0);
15866 if ac_fn_c_try_compile
"$LINENO"; then :
15867 emacs_cv_gettimeofday_two_arguments
=yes
15869 emacs_cv_gettimeofday_two_arguments
=no
15871 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
15873 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $emacs_cv_gettimeofday_two_arguments" >&5
15874 $as_echo "$emacs_cv_gettimeofday_two_arguments" >&6; }
15875 if test $emacs_cv_gettimeofday_two_arguments = no
; then
15877 $as_echo "#define GETTIMEOFDAY_ONE_ARGUMENT 1" >>confdefs.h
15884 ac_fn_c_check_func
"$LINENO" "socket" "ac_cv_func_socket"
15885 if test "x$ac_cv_func_socket" = x
""yes; then :
15891 if test $ok_so_far = yes; then
15892 ac_fn_c_check_header_mongrel
"$LINENO" "netinet/in.h" "ac_cv_header_netinet_in_h" "$ac_includes_default"
15893 if test "x$ac_cv_header_netinet_in_h" = x
""yes; then :
15901 if test $ok_so_far = yes; then
15902 ac_fn_c_check_header_mongrel
"$LINENO" "arpa/inet.h" "ac_cv_header_arpa_inet_h" "$ac_includes_default"
15903 if test "x$ac_cv_header_arpa_inet_h" = x
""yes; then :
15911 if test $ok_so_far = yes; then
15913 $as_echo "#define HAVE_INET_SOCKETS 1" >>confdefs.h
15917 if test -f /usr
/lpp
/X11
/bin
/smt.exp
; then
15919 $as_echo "#define HAVE_AIX_SMT_EXP 1" >>confdefs.h
15923 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether system supports dynamic ptys" >&5
15924 $as_echo_n "checking whether system supports dynamic ptys... " >&6; }
15925 if test -d /dev
/pts
&& ls -d /dev
/ptmx
> /dev
/null
2>&1 ; then
15926 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
15927 $as_echo "yes" >&6; }
15929 $as_echo "#define HAVE_DEV_PTMX 1" >>confdefs.h
15932 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15933 $as_echo "no" >&6; }
15936 ac_fn_c_check_type
"$LINENO" "pid_t" "ac_cv_type_pid_t" "$ac_includes_default"
15937 if test "x$ac_cv_type_pid_t" = x
""yes; then :
15941 cat >>confdefs.h
<<_ACEOF
15947 for ac_header
in vfork.h
15949 ac_fn_c_check_header_mongrel
"$LINENO" "vfork.h" "ac_cv_header_vfork_h" "$ac_includes_default"
15950 if test "x$ac_cv_header_vfork_h" = x
""yes; then :
15951 cat >>confdefs.h
<<_ACEOF
15952 #define HAVE_VFORK_H 1
15959 for ac_func
in fork vfork
15961 as_ac_var
=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
15962 ac_fn_c_check_func
"$LINENO" "$ac_func" "$as_ac_var"
15963 eval as_val
=\$
$as_ac_var
15964 if test "x$as_val" = x
""yes; then :
15965 cat >>confdefs.h
<<_ACEOF
15966 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
15972 if test "x$ac_cv_func_fork" = xyes
; then
15973 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working fork" >&5
15974 $as_echo_n "checking for working fork... " >&6; }
15975 if test "${ac_cv_func_fork_works+set}" = set; then :
15976 $as_echo_n "(cached) " >&6
15978 if test "$cross_compiling" = yes; then :
15979 ac_cv_func_fork_works
=cross
15981 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
15982 /* end confdefs.h. */
15983 $ac_includes_default
15988 /* By Ruediger Kuhlmann. */
15989 return fork () < 0;
15995 if ac_fn_c_try_run
"$LINENO"; then :
15996 ac_cv_func_fork_works
=yes
15998 ac_cv_func_fork_works
=no
16000 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
16001 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
16005 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_fork_works" >&5
16006 $as_echo "$ac_cv_func_fork_works" >&6; }
16009 ac_cv_func_fork_works
=$ac_cv_func_fork
16011 if test "x$ac_cv_func_fork_works" = xcross
; then
16013 *-*-amigaos* |
*-*-msdosdjgpp*)
16014 # Override, as these systems have only a dummy fork() stub
16015 ac_cv_func_fork_works
=no
16018 ac_cv_func_fork_works
=yes
16021 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: result $ac_cv_func_fork_works guessed because of cross compilation" >&5
16022 $as_echo "$as_me: WARNING: result $ac_cv_func_fork_works guessed because of cross compilation" >&2;}
16024 ac_cv_func_vfork_works
=$ac_cv_func_vfork
16025 if test "x$ac_cv_func_vfork" = xyes
; then
16026 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working vfork" >&5
16027 $as_echo_n "checking for working vfork... " >&6; }
16028 if test "${ac_cv_func_vfork_works+set}" = set; then :
16029 $as_echo_n "(cached) " >&6
16031 if test "$cross_compiling" = yes; then :
16032 ac_cv_func_vfork_works
=cross
16034 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
16035 /* end confdefs.h. */
16036 /* Thanks to Paul Eggert for this test. */
16037 $ac_includes_default
16038 #include <sys/wait.h>
16039 #ifdef HAVE_VFORK_H
16040 # include <vfork.h>
16042 /* On some sparc systems, changes by the child to local and incoming
16043 argument registers are propagated back to the parent. The compiler
16044 is told about this with #include <vfork.h>, but some compilers
16045 (e.g. gcc -O) don't grok <vfork.h>. Test for this by using a
16046 static variable whose address is put into a register that is
16047 clobbered by the vfork. */
16050 sparc_address_test (int arg)
16052 sparc_address_test (arg) int arg;
16055 static pid_t child;
16073 pid_t parent = getpid ();
16076 sparc_address_test (0);
16081 /* Here is another test for sparc vfork register problems. This
16082 test uses lots of local variables, at least as many local
16083 variables as main has allocated so far including compiler
16084 temporaries. 4 locals are enough for gcc 1.40.3 on a Solaris
16085 4.1.3 sparc, but we use 8 to be safe. A buggy compiler should
16086 reuse the register of parent for one of the local variables,
16087 since it will think that parent can't possibly be used any more
16088 in this routine. Assigning to the local variable will thus
16089 munge parent in the parent process. */
16091 p = getpid(), p1 = getpid(), p2 = getpid(), p3 = getpid(),
16092 p4 = getpid(), p5 = getpid(), p6 = getpid(), p7 = getpid();
16093 /* Convince the compiler that p..p7 are live; otherwise, it might
16094 use the same hardware register for all 8 local variables. */
16095 if (p != p1 || p != p2 || p != p3 || p != p4
16096 || p != p5 || p != p6 || p != p7)
16099 /* On some systems (e.g. IRIX 3.3), vfork doesn't separate parent
16100 from child file descriptors. If the child closes a descriptor
16101 before it execs or exits, this munges the parent's descriptor
16102 as well. Test for this by closing stdout in the child. */
16103 _exit(close(fileno(stdout)) != 0);
16108 while (wait(&status) != child)
16111 /* Was there some problem with vforking? */
16114 /* Did the child fail? (This shouldn't happen.) */
16117 /* Did the vfork/compiler bug occur? */
16118 || parent != getpid()
16120 /* Did the file descriptor bug occur? */
16121 || fstat(fileno(stdout), &st) != 0
16126 if ac_fn_c_try_run
"$LINENO"; then :
16127 ac_cv_func_vfork_works
=yes
16129 ac_cv_func_vfork_works
=no
16131 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
16132 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
16136 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_vfork_works" >&5
16137 $as_echo "$ac_cv_func_vfork_works" >&6; }
16140 if test "x$ac_cv_func_fork_works" = xcross
; then
16141 ac_cv_func_vfork_works
=$ac_cv_func_vfork
16142 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: result $ac_cv_func_vfork_works guessed because of cross compilation" >&5
16143 $as_echo "$as_me: WARNING: result $ac_cv_func_vfork_works guessed because of cross compilation" >&2;}
16146 if test "x$ac_cv_func_vfork_works" = xyes
; then
16148 $as_echo "#define HAVE_WORKING_VFORK 1" >>confdefs.h
16152 $as_echo "#define vfork fork" >>confdefs.h
16155 if test "x$ac_cv_func_fork_works" = xyes
; then
16157 $as_echo "#define HAVE_WORKING_FORK 1" >>confdefs.h
16162 for ac_func
in snprintf
16164 ac_fn_c_check_func
"$LINENO" "snprintf" "ac_cv_func_snprintf"
16165 if test "x$ac_cv_func_snprintf" = x
""yes; then :
16166 cat >>confdefs.h
<<_ACEOF
16167 #define HAVE_SNPRINTF 1
16174 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for nl_langinfo and CODESET" >&5
16175 $as_echo_n "checking for nl_langinfo and CODESET... " >&6; }
16176 if test "${emacs_cv_langinfo_codeset+set}" = set; then :
16177 $as_echo_n "(cached) " >&6
16179 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
16180 /* end confdefs.h. */
16181 #include <langinfo.h>
16185 char* cs = nl_langinfo(CODESET);
16190 if ac_fn_c_try_link
"$LINENO"; then :
16191 emacs_cv_langinfo_codeset
=yes
16193 emacs_cv_langinfo_codeset
=no
16195 rm -f core conftest.err conftest.
$ac_objext \
16196 conftest
$ac_exeext conftest.
$ac_ext
16199 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $emacs_cv_langinfo_codeset" >&5
16200 $as_echo "$emacs_cv_langinfo_codeset" >&6; }
16201 if test $emacs_cv_langinfo_codeset = yes; then
16203 $as_echo "#define HAVE_LANGINFO_CODESET 1" >>confdefs.h
16207 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for mbstate_t" >&5
16208 $as_echo_n "checking for mbstate_t... " >&6; }
16209 if test "${ac_cv_type_mbstate_t+set}" = set; then :
16210 $as_echo_n "(cached) " >&6
16212 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
16213 /* end confdefs.h. */
16214 $ac_includes_default
16215 # include <wchar.h>
16219 mbstate_t x; return sizeof x;
16224 if ac_fn_c_try_compile
"$LINENO"; then :
16225 ac_cv_type_mbstate_t
=yes
16227 ac_cv_type_mbstate_t
=no
16229 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
16231 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_mbstate_t" >&5
16232 $as_echo "$ac_cv_type_mbstate_t" >&6; }
16233 if test $ac_cv_type_mbstate_t = yes; then
16235 $as_echo "#define HAVE_MBSTATE_T 1" >>confdefs.h
16239 $as_echo "#define mbstate_t int" >>confdefs.h
16243 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for C restricted array declarations" >&5
16244 $as_echo_n "checking for C restricted array declarations... " >&6; }
16245 if test "${emacs_cv_c_restrict_arr+set}" = set; then :
16246 $as_echo_n "(cached) " >&6
16248 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
16249 /* end confdefs.h. */
16250 void fred (int x[__restrict]);
16259 if ac_fn_c_try_compile
"$LINENO"; then :
16260 emacs_cv_c_restrict_arr
=yes
16262 emacs_cv_c_restrict_arr
=no
16264 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
16266 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $emacs_cv_c_restrict_arr" >&5
16267 $as_echo "$emacs_cv_c_restrict_arr" >&6; }
16268 if test "$emacs_cv_c_restrict_arr" = yes; then
16270 $as_echo "#define __restrict_arr __restrict" >>confdefs.h
16275 # Set up the CFLAGS for real compilation, so we can substitute it.
16276 CFLAGS
="$REAL_CFLAGS"
16277 CPPFLAGS
="$REAL_CPPFLAGS"
16279 ## Hack to detect a buggy GCC version.
16280 if test "x$GCC" = xyes \
16281 && test x
"`$CC --version 2> /dev/null | grep 'gcc.* 4.5.0'`" != x \
16282 && test x
"`echo $CFLAGS | grep '\-O[23]'`" != x \
16283 && test x
"`echo $CFLAGS | grep '\-fno-optimize-sibling-calls'`" = x
; then
16284 as_fn_error
"GCC 4.5.0 has problems compiling Emacs; see etc/PROBLEMS'." "$LINENO" 5
16287 version
=$PACKAGE_VERSION
16289 ### Specify what sort of things we'll be editing into Makefile and config.h.
16290 ### Use configuration here uncanonicalized to avoid exceeding size limits.
16314 ## FIXME? Nothing uses @LD_SWITCH_X_SITE@.
16315 ## src/Makefile.in did add LD_SWITCH_X_SITE (as a cpp define) to the
16316 ## end of LIBX_BASE, but nothing ever set it.
16321 ## Used in lwlib/Makefile.in.
16323 if test -n "${machfile}"; then
16324 M_FILE
="\$(srcdir)/${machfile}"
16328 S_FILE
="\$(srcdir)/${opsysfile}"
16339 cat >>confdefs.h
<<_ACEOF
16340 #define EMACS_CONFIGURATION "${canonical}"
16344 cat >>confdefs.h
<<_ACEOF
16345 #define EMACS_CONFIG_OPTIONS "${ac_configure_args}"
16348 if test -n "$machfile"; then
16350 cat >>confdefs.h
<<_ACEOF
16351 #define config_machfile "${machfile}"
16356 cat >>confdefs.h
<<_ACEOF
16357 #define config_opsysfile "${opsysfile}"
16364 if test "${HAVE_X_WINDOWS}" = "yes" ; then
16366 $as_echo "#define HAVE_X_WINDOWS 1" >>confdefs.h
16369 XOBJ
="xterm.o xfns.o xselect.o xrdb.o fontset.o xsmfns.o fringe.o image.o xsettings.o xgselect.o"
16371 if test "$HAVE_XFT" = "yes"; then
16372 FONT_OBJ
="$FONT_OBJ ftfont.o xftfont.o ftxfont.o"
16373 elif test "$HAVE_FREETYPE" = "yes"; then
16374 FONT_OBJ
="$FONT_OBJ ftfont.o ftxfont.o"
16384 if test "${USE_X_TOOLKIT}" != "none" ; then
16385 WIDGET_OBJ
=widget.o
16387 $as_echo "#define USE_X_TOOLKIT 1" >>confdefs.h
16389 if test "${USE_X_TOOLKIT}" = "LUCID"; then
16391 $as_echo "#define USE_LUCID 1" >>confdefs.h
16393 elif test "${USE_X_TOOLKIT}" = "MOTIF"; then
16395 $as_echo "#define USE_MOTIF 1" >>confdefs.h
16400 ## Paul Abrahams <abrahams at equinox.shaysnet.com> says this is needed.
16401 MOTIF_LIBW
="$MOTIF_LIBW -lXpm"
16405 ## Richard Anthony Ryan <ryanr at ellingtn.ftc.nrcs.usda.gov>
16406 ## says -lXimp is needed in UNIX_SV ... 4.2 1.1.2.
16407 MOTIF_LIBW
="MOTIF_LIBW -lXimp"
16411 ## olson@mcs.anl.gov says -li18n is needed by -lXm.
16412 MOTIF_LIBW
="$MOTIF_LIBW -li18n"
16415 MOTIF_LIBW
="$MOTIF_LIBW $LIBXP"
16421 case "$USE_X_TOOLKIT" in
16422 MOTIF
) TOOLKIT_LIBW
="$MOTIF_LIBW" ;;
16423 LUCID
) TOOLKIT_LIBW
="$LUCID_LIBW" ;;
16424 none
) test "x$HAVE_GTK" = "xyes" && TOOLKIT_LIBW
="$GTK_LIBS" ;;
16428 if test "$USE_X_TOOLKIT" = "none"; then
16429 LIBXT_OTHER
="\$(LIBXSM)"
16430 OLDXMENU_TARGET
="really-oldXMenu"
16432 LIBXT_OTHER
="\$(LIBXMU) -lXt \$(LIBXTR6) -lXext"
16433 OLDXMENU_TARGET
="really-lwlib"
16437 ## The X Menu stuff is present in the X10 distribution, but missing
16438 ## from X11. If we have X10, just use the installed library;
16439 ## otherwise, use our own copy.
16440 if test "${HAVE_X11}" = "yes" ; then
16442 $as_echo "#define HAVE_X11 1" >>confdefs.h
16445 if test "$USE_X_TOOLKIT" = "none"; then
16446 OLDXMENU
="\${oldXMenudir}/libXMenu11.a"
16448 OLDXMENU
="\${lwlibdir}/liblw.a"
16450 LIBXMENU
="\$(OLDXMENU)"
16451 LIBX_OTHER
="\$(LIBXT) \$(LIBX_EXTRA)"
16452 OLDXMENU_DEPS
="\${OLDXMENU} ../src/\${OLDXMENU}"
16454 ## For a syntactically valid Makefile; not actually used for anything.
16455 ## See comments in src/Makefile.in.
16457 ## FIXME This case (!HAVE_X11 && HAVE_X_WINDOWS) is no longer possible(?).
16458 if test "${HAVE_X_WINDOWS}" = "yes"; then
16467 if test "$HAVE_GTK" = "yes" ||
test "$HAVE_MENUS" != "yes"; then
16480 if test "${HAVE_MENUS}" = "yes" ; then
16482 $as_echo "#define HAVE_MENUS 1" >>confdefs.h
16486 if test "${GNU_MALLOC}" = "yes" ; then
16488 $as_echo "#define GNU_MALLOC 1" >>confdefs.h
16493 if test "${REL_ALLOC}" = "yes" ; then
16495 $as_echo "#define REL_ALLOC 1" >>confdefs.h
16498 test "$system_malloc" != "yes" && RALLOC_OBJ
=ralloc.o
16502 if test "$opsys" = "cygwin"; then
16503 CYGWIN_OBJ
="sheap.o"
16504 ## Cygwin differs because of its unexec().
16506 POST_ALLOC_OBJ
=lastfile.o
16509 PRE_ALLOC_OBJ
=lastfile.o
16516 # Configure gnulib here, now that we know LIBS.
16528 LIBC_FATAL_STDERR_
=1
16529 export LIBC_FATAL_STDERR_
16531 # The Ultrix 4.2 mips builtin alloca declared by alloca.h only works
16532 # for constant arguments. Useless!
16533 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working alloca.h" >&5
16534 $as_echo_n "checking for working alloca.h... " >&6; }
16535 if test "${ac_cv_working_alloca_h+set}" = set; then :
16536 $as_echo_n "(cached) " >&6
16538 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
16539 /* end confdefs.h. */
16540 #include <alloca.h>
16544 char *p = (char *) alloca (2 * sizeof (int));
16550 if ac_fn_c_try_link
"$LINENO"; then :
16551 ac_cv_working_alloca_h
=yes
16553 ac_cv_working_alloca_h
=no
16555 rm -f core conftest.err conftest.
$ac_objext \
16556 conftest
$ac_exeext conftest.
$ac_ext
16558 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_working_alloca_h" >&5
16559 $as_echo "$ac_cv_working_alloca_h" >&6; }
16560 if test $ac_cv_working_alloca_h = yes; then
16562 $as_echo "#define HAVE_ALLOCA_H 1" >>confdefs.h
16566 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for alloca" >&5
16567 $as_echo_n "checking for alloca... " >&6; }
16568 if test "${ac_cv_func_alloca_works+set}" = set; then :
16569 $as_echo_n "(cached) " >&6
16571 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
16572 /* end confdefs.h. */
16574 # define alloca __builtin_alloca
16577 # include <malloc.h>
16578 # define alloca _alloca
16580 # ifdef HAVE_ALLOCA_H
16581 # include <alloca.h>
16586 # ifndef alloca /* predefined by HP cc +Olibcalls */
16597 char *p = (char *) alloca (1);
16603 if ac_fn_c_try_link
"$LINENO"; then :
16604 ac_cv_func_alloca_works
=yes
16606 ac_cv_func_alloca_works
=no
16608 rm -f core conftest.err conftest.
$ac_objext \
16609 conftest
$ac_exeext conftest.
$ac_ext
16611 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_alloca_works" >&5
16612 $as_echo "$ac_cv_func_alloca_works" >&6; }
16614 if test $ac_cv_func_alloca_works = yes; then
16616 $as_echo "#define HAVE_ALLOCA 1" >>confdefs.h
16619 # The SVR3 libPW and SVR4 libucb both contain incompatible functions
16620 # that cause trouble. Some versions do not even contain alloca or
16621 # contain a buggy version. If you still want to use their alloca,
16622 # use ar to extract alloca.o from them instead of compiling alloca.c.
16628 ALLOCA
=\
${LIBOBJDIR}alloca.
$ac_objext
16630 $as_echo "#define C_ALLOCA 1" >>confdefs.h
16633 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether \`alloca.c' needs Cray hooks" >&5
16634 $as_echo_n "checking whether \`alloca.c' needs Cray hooks... " >&6; }
16635 if test "${ac_cv_os_cray+set}" = set; then :
16636 $as_echo_n "(cached) " >&6
16638 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
16639 /* end confdefs.h. */
16640 #if defined CRAY && ! defined CRAY2
16647 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
16648 $EGREP "webecray" >/dev
/null
2>&1; then :
16656 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_os_cray" >&5
16657 $as_echo "$ac_cv_os_cray" >&6; }
16658 if test $ac_cv_os_cray = yes; then
16659 for ac_func
in _getb67 GETB67 getb67
; do
16660 as_ac_var
=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
16661 ac_fn_c_check_func
"$LINENO" "$ac_func" "$as_ac_var"
16662 eval as_val
=\$
$as_ac_var
16663 if test "x$as_val" = x
""yes; then :
16665 cat >>confdefs.h
<<_ACEOF
16666 #define CRAY_STACKSEG_END $ac_func
16675 { $as_echo "$as_me:${as_lineno-$LINENO}: checking stack direction for C alloca" >&5
16676 $as_echo_n "checking stack direction for C alloca... " >&6; }
16677 if test "${ac_cv_c_stack_direction+set}" = set; then :
16678 $as_echo_n "(cached) " >&6
16680 if test "$cross_compiling" = yes; then :
16681 ac_cv_c_stack_direction
=0
16683 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
16684 /* end confdefs.h. */
16685 $ac_includes_default
16687 find_stack_direction (int *addr, int depth)
16689 int dir, dummy = 0;
16692 *addr = addr < &dummy ? 1 : addr == &dummy ? 0 : -1;
16693 dir = depth ? find_stack_direction (addr, depth - 1) : 0;
16694 return dir + dummy;
16698 main (int argc, char **argv)
16700 return find_stack_direction (0, argc + !argv + 20) < 0;
16703 if ac_fn_c_try_run
"$LINENO"; then :
16704 ac_cv_c_stack_direction
=1
16706 ac_cv_c_stack_direction
=-1
16708 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
16709 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
16713 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_stack_direction" >&5
16714 $as_echo "$ac_cv_c_stack_direction" >&6; }
16715 cat >>confdefs.h
<<_ACEOF
16716 #define STACK_DIRECTION $ac_cv_c_stack_direction
16725 for ac_func
in $ac_func_list
16727 as_ac_var
=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
16728 ac_fn_c_check_func
"$LINENO" "$ac_func" "$as_ac_var"
16729 eval as_val
=\$
$as_ac_var
16730 if test "x$as_val" = x
""yes; then :
16731 cat >>confdefs.h
<<_ACEOF
16732 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
16741 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether byte ordering is bigendian" >&5
16742 $as_echo_n "checking whether byte ordering is bigendian... " >&6; }
16743 if test "${ac_cv_c_bigendian+set}" = set; then :
16744 $as_echo_n "(cached) " >&6
16746 ac_cv_c_bigendian
=unknown
16747 # See if we're dealing with a universal compiler.
16748 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
16749 /* end confdefs.h. */
16750 #ifndef __APPLE_CC__
16751 not a universal capable compiler
16756 if ac_fn_c_try_compile
"$LINENO"; then :
16758 # Check for potential -arch flags. It is not universal unless
16759 # there are at least two -arch flags with different values.
16762 for ac_word
in $CC $CFLAGS $CPPFLAGS $LDFLAGS; do
16763 if test -n "$ac_prev"; then
16765 i?
86 | x86_64 | ppc | ppc64
)
16766 if test -z "$ac_arch" ||
test "$ac_arch" = "$ac_word"; then
16769 ac_cv_c_bigendian
=universal
16775 elif test "x$ac_word" = "x-arch"; then
16780 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
16781 if test $ac_cv_c_bigendian = unknown
; then
16782 # See if sys/param.h defines the BYTE_ORDER macro.
16783 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
16784 /* end confdefs.h. */
16785 #include <sys/types.h>
16786 #include <sys/param.h>
16791 #if ! (defined BYTE_ORDER && defined BIG_ENDIAN \
16792 && defined LITTLE_ENDIAN && BYTE_ORDER && BIG_ENDIAN \
16794 bogus endian macros
16801 if ac_fn_c_try_compile
"$LINENO"; then :
16802 # It does; now see whether it defined to BIG_ENDIAN or not.
16803 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
16804 /* end confdefs.h. */
16805 #include <sys/types.h>
16806 #include <sys/param.h>
16811 #if BYTE_ORDER != BIG_ENDIAN
16819 if ac_fn_c_try_compile
"$LINENO"; then :
16820 ac_cv_c_bigendian
=yes
16822 ac_cv_c_bigendian
=no
16824 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
16826 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
16828 if test $ac_cv_c_bigendian = unknown
; then
16829 # See if <limits.h> defines _LITTLE_ENDIAN or _BIG_ENDIAN (e.g., Solaris).
16830 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
16831 /* end confdefs.h. */
16832 #include <limits.h>
16837 #if ! (defined _LITTLE_ENDIAN || defined _BIG_ENDIAN)
16838 bogus endian macros
16845 if ac_fn_c_try_compile
"$LINENO"; then :
16846 # It does; now see whether it defined to _BIG_ENDIAN or not.
16847 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
16848 /* end confdefs.h. */
16849 #include <limits.h>
16854 #ifndef _BIG_ENDIAN
16862 if ac_fn_c_try_compile
"$LINENO"; then :
16863 ac_cv_c_bigendian
=yes
16865 ac_cv_c_bigendian
=no
16867 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
16869 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
16871 if test $ac_cv_c_bigendian = unknown
; then
16872 # Compile a test program.
16873 if test "$cross_compiling" = yes; then :
16874 # Try to guess by grepping values from an object file.
16875 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
16876 /* end confdefs.h. */
16877 short int ascii_mm[] =
16878 { 0x4249, 0x4765, 0x6E44, 0x6961, 0x6E53, 0x7953, 0 };
16879 short int ascii_ii[] =
16880 { 0x694C, 0x5454, 0x656C, 0x6E45, 0x6944, 0x6E61, 0 };
16881 int use_ascii (int i) {
16882 return ascii_mm[i] + ascii_ii[i];
16884 short int ebcdic_ii[] =
16885 { 0x89D3, 0xE3E3, 0x8593, 0x95C5, 0x89C4, 0x9581, 0 };
16886 short int ebcdic_mm[] =
16887 { 0xC2C9, 0xC785, 0x95C4, 0x8981, 0x95E2, 0xA8E2, 0 };
16888 int use_ebcdic (int i) {
16889 return ebcdic_mm[i] + ebcdic_ii[i];
16896 return use_ascii (foo) == use_ebcdic (foo);
16901 if ac_fn_c_try_compile
"$LINENO"; then :
16902 if grep BIGenDianSyS conftest.
$ac_objext >/dev
/null
; then
16903 ac_cv_c_bigendian
=yes
16905 if grep LiTTleEnDian conftest.
$ac_objext >/dev
/null
; then
16906 if test "$ac_cv_c_bigendian" = unknown
; then
16907 ac_cv_c_bigendian
=no
16909 # finding both strings is unlikely to happen, but who knows?
16910 ac_cv_c_bigendian
=unknown
16914 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
16916 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
16917 /* end confdefs.h. */
16918 $ac_includes_default
16923 /* Are we little or big endian? From Harbison&Steele. */
16927 char c[sizeof (long int)];
16930 return u.c[sizeof (long int) - 1] == 1;
16936 if ac_fn_c_try_run
"$LINENO"; then :
16937 ac_cv_c_bigendian
=no
16939 ac_cv_c_bigendian
=yes
16941 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
16942 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
16947 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_bigendian" >&5
16948 $as_echo "$ac_cv_c_bigendian" >&6; }
16949 case $ac_cv_c_bigendian in #(
16951 $as_echo "#define WORDS_BIGENDIAN 1" >>confdefs.h
16957 $as_echo "#define AC_APPLE_UNIVERSAL_BUILD 1" >>confdefs.h
16961 as_fn_error
"unknown endianness
16962 presetting ac_cv_c_bigendian=no (or yes) will help" "$LINENO" 5 ;;
16966 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for inline" >&5
16967 $as_echo_n "checking for inline... " >&6; }
16968 if test "${ac_cv_c_inline+set}" = set; then :
16969 $as_echo_n "(cached) " >&6
16972 for ac_kw
in inline __inline__ __inline
; do
16973 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
16974 /* end confdefs.h. */
16975 #ifndef __cplusplus
16977 static $ac_kw foo_t static_foo () {return 0; }
16978 $ac_kw foo_t foo () {return 0; }
16982 if ac_fn_c_try_compile
"$LINENO"; then :
16983 ac_cv_c_inline
=$ac_kw
16985 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
16986 test "$ac_cv_c_inline" != no
&& break
16990 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_inline" >&5
16991 $as_echo "$ac_cv_c_inline" >&6; }
16993 case $ac_cv_c_inline in
16996 case $ac_cv_c_inline in
16998 *) ac_val
=$ac_cv_c_inline;;
17000 cat >>confdefs.h
<<_ACEOF
17001 #ifndef __cplusplus
17002 #define inline $ac_val
17009 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether strtold conforms to C99" >&5
17010 $as_echo_n "checking whether strtold conforms to C99... " >&6; }
17011 if test "${gl_cv_func_c99_strtold+set}" = set; then :
17012 $as_echo_n "(cached) " >&6
17014 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
17015 /* end confdefs.h. */
17016 /* On HP-UX before 11.23, strtold returns a struct instead of
17017 long double. Reject implementations like that, by requiring
17018 compatibility with the C99 prototype. */
17019 #include <stdlib.h>
17020 static long double (*p) (char const *, char **) = strtold;
17022 test (char const *nptr, char **endptr)
17025 r = strtold (nptr, endptr);
17031 return test ("1.0", NULL) != 1 || p ("1.0", NULL) != 1;
17036 if ac_fn_c_try_link
"$LINENO"; then :
17037 gl_cv_func_c99_strtold
=yes
17039 gl_cv_func_c99_strtold
=no
17041 rm -f core conftest.err conftest.
$ac_objext \
17042 conftest
$ac_exeext conftest.
$ac_ext
17044 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_c99_strtold" >&5
17045 $as_echo "$gl_cv_func_c99_strtold" >&6; }
17046 if test $gl_cv_func_c99_strtold = yes; then
17048 $as_echo "#define HAVE_C99_STRTOLD 1" >>confdefs.h
17060 GNULIB_EUIDACCESS
=0;
17061 GNULIB_FACCESSAT
=0;
17064 GNULIB_FDATASYNC
=0;
17066 GNULIB_FTRUNCATE
=0;
17068 GNULIB_GETDOMAINNAME
=0;
17069 GNULIB_GETDTABLESIZE
=0;
17070 GNULIB_GETGROUPS
=0;
17071 GNULIB_GETHOSTNAME
=0;
17073 GNULIB_GETLOGIN_R
=0;
17074 GNULIB_GETPAGESIZE
=0;
17075 GNULIB_GETUSERSHELL
=0;
17076 GNULIB_GROUP_MEMBER
=0;
17087 GNULIB_READLINKAT
=0;
17091 GNULIB_SYMLINKAT
=0;
17092 GNULIB_TTYNAME_R
=0;
17093 GNULIB_UNISTD_H_GETOPT
=0;
17094 GNULIB_UNISTD_H_NONBLOCKING
=0;
17095 GNULIB_UNISTD_H_SIGPIPE
=0;
17110 HAVE_GETDTABLESIZE
=1;
17112 HAVE_GETHOSTNAME
=1;
17114 HAVE_GETPAGESIZE
=1;
17115 HAVE_GROUP_MEMBER
=1;
17130 HAVE_DECL_ENVIRON
=1;
17131 HAVE_DECL_FCHDIR
=1;
17132 HAVE_DECL_FDATASYNC
=1;
17133 HAVE_DECL_GETDOMAINNAME
=1;
17134 HAVE_DECL_GETLOGIN_R
=1;
17135 HAVE_DECL_GETPAGESIZE
=1;
17136 HAVE_DECL_GETUSERSHELL
=1;
17137 HAVE_DECL_TTYNAME_R
=1;
17139 HAVE_SYS_PARAM_H
=0;
17144 REPLACE_FCHOWNAT
=0;
17146 REPLACE_GETDOMAINNAME
=0;
17147 REPLACE_GETLOGIN_R
=0;
17148 REPLACE_GETGROUPS
=0;
17149 REPLACE_GETPAGESIZE
=0;
17157 REPLACE_READLINK
=0;
17161 REPLACE_TTYNAME_R
=0;
17163 REPLACE_UNLINKAT
=0;
17166 UNISTD_H_HAVE_WINSOCK2_H
=0;
17167 UNISTD_H_HAVE_WINSOCK2_H_AND_USE_SOCKETS
=0;
17170 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for st_dm_mode in struct stat" >&5
17171 $as_echo_n "checking for st_dm_mode in struct stat... " >&6; }
17172 if test "${ac_cv_struct_st_dm_mode+set}" = set; then :
17173 $as_echo_n "(cached) " >&6
17175 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
17176 /* end confdefs.h. */
17178 #include <sys/types.h>
17179 #include <sys/stat.h>
17183 struct stat s; s.st_dm_mode;
17188 if ac_fn_c_try_compile
"$LINENO"; then :
17189 ac_cv_struct_st_dm_mode
=yes
17191 ac_cv_struct_st_dm_mode
=no
17193 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
17195 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_struct_st_dm_mode" >&5
17196 $as_echo "$ac_cv_struct_st_dm_mode" >&6; }
17198 if test $ac_cv_struct_st_dm_mode = yes; then
17200 $as_echo "#define HAVE_ST_DM_MODE 1" >>confdefs.h
17205 ac_fn_c_check_decl
"$LINENO" "strmode" "ac_cv_have_decl_strmode" "$ac_includes_default"
17206 if test "x$ac_cv_have_decl_strmode" = x
""yes; then :
17212 cat >>confdefs.h
<<_ACEOF
17213 #define HAVE_DECL_STRMODE $ac_have_decl
17219 GNULIB_CALLOC_POSIX
=0;
17220 GNULIB_CANONICALIZE_FILE_NAME
=0;
17221 GNULIB_GETLOADAVG
=0;
17222 GNULIB_GETSUBOPT
=0;
17224 GNULIB_MALLOC_POSIX
=0;
17228 GNULIB_MKOSTEMPS
=0;
17234 GNULIB_REALLOC_POSIX
=0;
17241 GNULIB_SYSTEM_POSIX
=0;
17247 HAVE_CANONICALIZE_FILE_NAME
=1;
17248 HAVE_DECL_GETLOADAVG
=1;
17262 HAVE_DECL_SETENV
=1;
17266 HAVE_STRUCT_RANDOM_DATA
=1;
17267 HAVE_SYS_LOADAVG_H
=0;
17269 HAVE_DECL_UNSETENV
=1;
17271 REPLACE_CANONICALIZE_FILE_NAME
=0;
17277 REPLACE_REALPATH
=0;
17280 REPLACE_UNSETENV
=0;
17285 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the preprocessor supports include_next" >&5
17286 $as_echo_n "checking whether the preprocessor supports include_next... " >&6; }
17287 if test "${gl_cv_have_include_next+set}" = set; then :
17288 $as_echo_n "(cached) " >&6
17290 rm -rf conftestd1a conftestd1b conftestd2
17291 mkdir conftestd1a conftestd1b conftestd2
17292 cat <<EOF > conftestd1a/conftest.h
17293 #define DEFINED_IN_CONFTESTD1
17294 #include_next <conftest.h>
17295 #ifdef DEFINED_IN_CONFTESTD2
17298 #error "include_next doesn't work"
17301 cat <<EOF > conftestd1b/conftest.h
17302 #define DEFINED_IN_CONFTESTD1
17304 #include_next <conftest.h>
17305 #ifdef DEFINED_IN_CONFTESTD2
17308 #error "include_next doesn't work"
17311 cat <<EOF > conftestd2/conftest.h
17312 #ifndef DEFINED_IN_CONFTESTD1
17313 #error "include_next test doesn't work"
17315 #define DEFINED_IN_CONFTESTD2
17317 gl_save_CPPFLAGS
="$CPPFLAGS"
17318 CPPFLAGS
="$gl_save_CPPFLAGS -Iconftestd1b -Iconftestd2"
17319 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
17320 /* end confdefs.h. */
17321 #include <conftest.h>
17323 if ac_fn_c_try_compile
"$LINENO"; then :
17324 gl_cv_have_include_next
=yes
17326 CPPFLAGS
="$gl_save_CPPFLAGS -Iconftestd1a -Iconftestd2"
17327 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
17328 /* end confdefs.h. */
17329 #include <conftest.h>
17331 if ac_fn_c_try_compile
"$LINENO"; then :
17332 gl_cv_have_include_next
=buggy
17334 gl_cv_have_include_next
=no
17336 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
17339 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
17340 CPPFLAGS
="$gl_save_CPPFLAGS"
17341 rm -rf conftestd1a conftestd1b conftestd2
17344 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_have_include_next" >&5
17345 $as_echo "$gl_cv_have_include_next" >&6; }
17346 PRAGMA_SYSTEM_HEADER
=
17347 if test $gl_cv_have_include_next = yes; then
17348 INCLUDE_NEXT
=include_next
17349 INCLUDE_NEXT_AS_FIRST_DIRECTIVE
=include_next
17350 if test -n "$GCC"; then
17351 PRAGMA_SYSTEM_HEADER
='#pragma GCC system_header'
17354 if test $gl_cv_have_include_next = buggy
; then
17355 INCLUDE_NEXT
=include
17356 INCLUDE_NEXT_AS_FIRST_DIRECTIVE
=include_next
17358 INCLUDE_NEXT
=include
17359 INCLUDE_NEXT_AS_FIRST_DIRECTIVE
=include
17365 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether system header files limit the line length" >&5
17366 $as_echo_n "checking whether system header files limit the line length... " >&6; }
17367 if test "${gl_cv_pragma_columns+set}" = set; then :
17368 $as_echo_n "(cached) " >&6
17370 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
17371 /* end confdefs.h. */
17378 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
17379 $EGREP "choke me" >/dev
/null
2>&1; then :
17380 gl_cv_pragma_columns
=yes
17382 gl_cv_pragma_columns
=no
17388 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_pragma_columns" >&5
17389 $as_echo "$gl_cv_pragma_columns" >&6; }
17390 if test $gl_cv_pragma_columns = yes; then
17391 PRAGMA_COLUMNS
="#pragma COLUMNS 10000"
17412 if test $gl_cv_have_include_next = yes; then
17413 gl_cv_next_getopt_h
='<'getopt.h
'>'
17415 { $as_echo "$as_me:${as_lineno-$LINENO}: checking absolute name of <getopt.h>" >&5
17416 $as_echo_n "checking absolute name of <getopt.h>... " >&6; }
17417 if test "${gl_cv_next_getopt_h+set}" = set; then :
17418 $as_echo_n "(cached) " >&6
17421 if test $ac_cv_header_getopt_h = yes; then
17424 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
17425 /* end confdefs.h. */
17426 #include <getopt.h>
17430 aix
*) gl_absname_cpp
="$ac_cpp -C" ;;
17431 *) gl_absname_cpp
="$ac_cpp" ;;
17436 gl_dirsep_regex
='[/\\]'
17439 gl_dirsep_regex
='/'
17443 gl_absolute_header_sed
='\|'"${gl_dirsep_regex}"'getopt.h|{
17444 s|.*"\(.*'"${gl_dirsep_regex}"'getopt.h\)".*|\1|
17449 gl_cv_next_getopt_h
='"'`(eval "$gl_absname_cpp conftest.$ac_ext") 2>&5 |
17450 sed -n "$gl_absolute_header_sed"`'"'
17452 gl_cv_next_getopt_h
='<'getopt.h
'>'
17457 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_next_getopt_h" >&5
17458 $as_echo "$gl_cv_next_getopt_h" >&6; }
17460 NEXT_GETOPT_H
=$gl_cv_next_getopt_h
17462 if test $gl_cv_have_include_next = yes ||
test $gl_cv_have_include_next = buggy
; then
17463 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include_next'
17464 gl_next_as_first_directive
='<'getopt.h
'>'
17466 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include'
17467 gl_next_as_first_directive
=$gl_cv_next_getopt_h
17469 NEXT_AS_FIRST_DIRECTIVE_GETOPT_H
=$gl_next_as_first_directive
17474 if test $ac_cv_header_getopt_h = yes; then
17483 if test -z "$gl_replace_getopt" && test $gl_getopt_required = GNU
; then
17484 for ac_header
in getopt.h
17486 ac_fn_c_check_header_mongrel
"$LINENO" "getopt.h" "ac_cv_header_getopt_h" "$ac_includes_default"
17487 if test "x$ac_cv_header_getopt_h" = x
""yes; then :
17488 cat >>confdefs.h
<<_ACEOF
17489 #define HAVE_GETOPT_H 1
17493 gl_replace_getopt
=yes
17500 if test -z "$gl_replace_getopt" && test $gl_getopt_required = GNU
; then
17501 for ac_func
in getopt_long_only
17503 ac_fn_c_check_func
"$LINENO" "getopt_long_only" "ac_cv_func_getopt_long_only"
17504 if test "x$ac_cv_func_getopt_long_only" = x
""yes; then :
17505 cat >>confdefs.h
<<_ACEOF
17506 #define HAVE_GETOPT_LONG_ONLY 1
17510 gl_replace_getopt
=yes
17516 if test -z "$gl_replace_getopt"; then
17517 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether getopt is POSIX compatible" >&5
17518 $as_echo_n "checking whether getopt is POSIX compatible... " >&6; }
17519 if test "${gl_cv_func_getopt_posix+set}" = set; then :
17520 $as_echo_n "(cached) " >&6
17523 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
17524 /* end confdefs.h. */
17525 #include <unistd.h>
17529 int *p = &optreset; return optreset;
17534 if ac_fn_c_try_link
"$LINENO"; then :
17537 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
17538 /* end confdefs.h. */
17539 #include <getopt.h>
17543 return !getopt_clip;
17548 if ac_fn_c_try_compile
"$LINENO"; then :
17553 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
17555 rm -f core conftest.err conftest.
$ac_objext \
17556 conftest
$ac_exeext conftest.
$ac_ext
17558 gl_save_CPPFLAGS
=$CPPFLAGS
17559 CPPFLAGS
="$CPPFLAGS -DOPTIND_MIN=$gl_optind_min"
17560 if test "$cross_compiling" = yes; then :
17562 mingw
*) gl_cv_func_getopt_posix
="guessing no";;
17563 darwin
* | aix
*) gl_cv_func_getopt_posix
="guessing no";;
17564 *) gl_cv_func_getopt_posix
="guessing yes";;
17568 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
17569 /* end confdefs.h. */
17571 #include <unistd.h>
17572 #include <stdlib.h>
17573 #include <string.h>
17579 static char program[] = "program";
17580 static char a[] = "-a";
17581 static char foo[] = "foo";
17582 static char bar[] = "bar";
17583 char *argv[] = { program, a, foo, bar, NULL };
17586 optind = OPTIND_MIN;
17589 c = getopt (4, argv, "ab");
17592 c = getopt (4, argv, "ab");
17595 if (!(optind == 2))
17598 /* Some internal state exists at this point. */
17600 static char program[] = "program";
17601 static char donald[] = "donald";
17602 static char p[] = "-p";
17603 static char billy[] = "billy";
17604 static char duck[] = "duck";
17605 static char a[] = "-a";
17606 static char bar[] = "bar";
17607 char *argv[] = { program, donald, p, billy, duck, a, bar, NULL };
17610 optind = OPTIND_MIN;
17613 c = getopt (7, argv, "+abp:q:");
17616 if (!(strcmp (argv[0], "program") == 0))
17618 if (!(strcmp (argv[1], "donald") == 0))
17620 if (!(strcmp (argv[2], "-p") == 0))
17622 if (!(strcmp (argv[3], "billy") == 0))
17624 if (!(strcmp (argv[4], "duck") == 0))
17626 if (!(strcmp (argv[5], "-a") == 0))
17628 if (!(strcmp (argv[6], "bar") == 0))
17630 if (!(optind == 1))
17633 /* Detect MacOS 10.5, AIX 7.1 bug. */
17635 static char program[] = "program";
17636 static char ab[] = "-ab";
17637 char *argv[3] = { program, ab, NULL };
17638 optind = OPTIND_MIN;
17640 if (getopt (2, argv, "ab:") != 'a')
17642 if (getopt (2, argv, "ab:") != '?')
17654 if ac_fn_c_try_run
"$LINENO"; then :
17655 gl_cv_func_getopt_posix
=yes
17657 gl_cv_func_getopt_posix
=no
17659 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
17660 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
17663 CPPFLAGS
=$gl_save_CPPFLAGS
17666 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_getopt_posix" >&5
17667 $as_echo "$gl_cv_func_getopt_posix" >&6; }
17668 case "$gl_cv_func_getopt_posix" in
17669 *no
) gl_replace_getopt
=yes ;;
17673 if test -z "$gl_replace_getopt" && test $gl_getopt_required = GNU
; then
17674 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working GNU getopt function" >&5
17675 $as_echo_n "checking for working GNU getopt function... " >&6; }
17676 if test "${gl_cv_func_getopt_gnu+set}" = set; then :
17677 $as_echo_n "(cached) " >&6
17679 # Even with POSIXLY_CORRECT, the GNU extension of leading '-' in the
17680 # optstring is necessary for programs like m4 that have POSIX-mandated
17681 # semantics for supporting options interspersed with files.
17682 # Also, since getopt_long is a GNU extension, we require optind=0.
17683 # Bash ties 'set -o posix' to a non-exported POSIXLY_CORRECT;
17684 # so take care to revert to the correct (non-)export state.
17685 gl_awk_probe
='BEGIN { if ("POSIXLY_CORRECT" in ENVIRON) print "x" }'
17686 case ${POSIXLY_CORRECT+x}`$AWK "$gl_awk_probe" </dev/null` in
17687 xx
) gl_had_POSIXLY_CORRECT
=exported
;;
17688 x
) gl_had_POSIXLY_CORRECT
=yes ;;
17689 *) gl_had_POSIXLY_CORRECT
= ;;
17692 export POSIXLY_CORRECT
17693 if test "$cross_compiling" = yes; then :
17694 case $host_os:$ac_cv_have_decl_optreset in
17695 *-gnu*:* | mingw
*:*) gl_cv_func_getopt_gnu
=no
;;
17696 *:yes) gl_cv_func_getopt_gnu
=no
;;
17697 *) gl_cv_func_getopt_gnu
=yes;;
17701 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
17702 /* end confdefs.h. */
17703 #include <getopt.h>
17704 #include <stddef.h>
17705 #include <string.h>
17707 #include <stdlib.h>
17708 #if defined __MACH__ && defined __APPLE__
17709 /* Avoid a crash on MacOS X. */
17710 #include <mach/mach.h>
17711 #include <mach/mach_error.h>
17712 #include <mach/thread_status.h>
17713 #include <mach/exception.h>
17714 #include <mach/task.h>
17715 #include <pthread.h>
17716 /* The exception port on which our thread listens. */
17717 static mach_port_t our_exception_port;
17718 /* The main function of the thread listening for exceptions of type
17721 mach_exception_thread (void *arg)
17723 /* Buffer for a message to be received. */
17725 mach_msg_header_t head;
17726 mach_msg_body_t msgh_body;
17729 mach_msg_return_t retval;
17730 /* Wait for a message on the exception port. */
17731 retval = mach_msg (&msg.head, MACH_RCV_MSG | MACH_RCV_LARGE, 0, sizeof (msg),
17732 our_exception_port, MACH_MSG_TIMEOUT_NONE, MACH_PORT_NULL);
17733 if (retval != MACH_MSG_SUCCESS)
17738 nocrash_init (void)
17740 mach_port_t self = mach_task_self ();
17741 /* Allocate a port on which the thread shall listen for exceptions. */
17742 if (mach_port_allocate (self, MACH_PORT_RIGHT_RECEIVE, &our_exception_port)
17744 /* See http://web.mit.edu/darwin/src/modules/xnu/osfmk/man/mach_port_insert_right.html. */
17745 if (mach_port_insert_right (self, our_exception_port, our_exception_port,
17746 MACH_MSG_TYPE_MAKE_SEND)
17748 /* The exceptions we want to catch. Only EXC_BAD_ACCESS is interesting
17750 exception_mask_t mask = EXC_MASK_BAD_ACCESS;
17751 /* Create the thread listening on the exception port. */
17752 pthread_attr_t attr;
17754 if (pthread_attr_init (&attr) == 0
17755 && pthread_attr_setdetachstate (&attr, PTHREAD_CREATE_DETACHED) == 0
17756 && pthread_create (&thread, &attr, mach_exception_thread, NULL) == 0) {
17757 pthread_attr_destroy (&attr);
17758 /* Replace the exception port info for these exceptions with our own.
17759 Note that we replace the exception port for the entire task, not only
17760 for a particular thread. This has the effect that when our exception
17761 port gets the message, the thread specific exception port has already
17762 been asked, and we don't need to bother about it.
17763 See http://web.mit.edu/darwin/src/modules/xnu/osfmk/man/task_set_exception_ports.html. */
17764 task_set_exception_ports (self, mask, our_exception_port,
17765 EXCEPTION_DEFAULT, MACHINE_THREAD_STATE);
17770 #elif (defined _WIN32 || defined __WIN32__) && ! defined __CYGWIN__
17771 /* Avoid a crash on native Windows. */
17772 #define WIN32_LEAN_AND_MEAN
17773 #include <windows.h>
17774 #include <winerror.h>
17776 exception_filter (EXCEPTION_POINTERS *ExceptionInfo)
17778 switch (ExceptionInfo->ExceptionRecord->ExceptionCode)
17780 case EXCEPTION_ACCESS_VIOLATION:
17781 case EXCEPTION_IN_PAGE_ERROR:
17782 case EXCEPTION_STACK_OVERFLOW:
17783 case EXCEPTION_GUARD_PAGE:
17784 case EXCEPTION_PRIV_INSTRUCTION:
17785 case EXCEPTION_ILLEGAL_INSTRUCTION:
17786 case EXCEPTION_DATATYPE_MISALIGNMENT:
17787 case EXCEPTION_ARRAY_BOUNDS_EXCEEDED:
17788 case EXCEPTION_NONCONTINUABLE_EXCEPTION:
17791 return EXCEPTION_CONTINUE_SEARCH;
17794 nocrash_init (void)
17796 SetUnhandledExceptionFilter ((LPTOP_LEVEL_EXCEPTION_FILTER) exception_filter);
17799 /* Avoid a crash on POSIX systems. */
17800 #include <signal.h>
17801 /* A POSIX signal handler. */
17803 exception_handler (int sig)
17808 nocrash_init (void)
17811 signal (SIGSEGV, exception_handler);
17814 signal (SIGBUS, exception_handler);
17828 /* This code succeeds on glibc 2.8, OpenBSD 4.0, Cygwin, mingw,
17829 and fails on MacOS X 10.5, AIX 5.2, HP-UX 11, IRIX 6.5,
17830 OSF/1 5.1, Solaris 10. */
17832 static char conftest[] = "conftest";
17833 static char plus[] = "-+";
17834 char *argv[3] = { conftest, plus, NULL };
17836 if (getopt (2, argv, "+a") != '?')
17839 /* This code succeeds on glibc 2.8, mingw,
17840 and fails on MacOS X 10.5, OpenBSD 4.0, AIX 5.2, HP-UX 11,
17841 IRIX 6.5, OSF/1 5.1, Solaris 10, Cygwin 1.5.x. */
17843 static char program[] = "program";
17844 static char p[] = "-p";
17845 static char foo[] = "foo";
17846 static char bar[] = "bar";
17847 char *argv[] = { program, p, foo, bar, NULL };
17850 if (getopt (4, argv, "p::") != 'p')
17852 else if (optarg != NULL)
17854 else if (getopt (4, argv, "p::") != -1)
17856 else if (optind != 2)
17859 /* This code succeeds on glibc 2.8 and fails on Cygwin 1.7.0. */
17861 static char program[] = "program";
17862 static char foo[] = "foo";
17863 static char p[] = "-p";
17864 char *argv[] = { program, foo, p, NULL };
17866 if (getopt (3, argv, "-p") != 1)
17868 else if (getopt (3, argv, "-p") != 'p')
17871 /* This code fails on glibc 2.11. */
17873 static char program[] = "program";
17874 static char b[] = "-b";
17875 static char a[] = "-a";
17876 char *argv[] = { program, b, a, NULL };
17877 optind = opterr = 0;
17878 if (getopt (3, argv, "+:a:b") != 'b')
17880 else if (getopt (3, argv, "+:a:b") != ':')
17883 /* This code dumps core on glibc 2.14. */
17885 static char program[] = "program";
17886 static char w[] = "-W";
17887 static char dummy[] = "dummy";
17888 char *argv[] = { program, w, dummy, NULL };
17889 optind = opterr = 1;
17890 if (getopt (3, argv, "W;") != 'W')
17899 if ac_fn_c_try_run
"$LINENO"; then :
17900 gl_cv_func_getopt_gnu
=yes
17902 gl_cv_func_getopt_gnu
=no
17904 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
17905 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
17908 case $gl_had_POSIXLY_CORRECT in
17910 yes) { POSIXLY_CORRECT
=; unset POSIXLY_CORRECT
;}; POSIXLY_CORRECT
=1 ;;
17911 *) { POSIXLY_CORRECT
=; unset POSIXLY_CORRECT
;} ;;
17915 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_getopt_gnu" >&5
17916 $as_echo "$gl_cv_func_getopt_gnu" >&6; }
17917 if test "$gl_cv_func_getopt_gnu" = "no"; then
17918 gl_replace_getopt
=yes
17929 if test -n "$gl_replace_getopt"; then :
17936 if test $REPLACE_GETOPT = 1; then
17940 $as_echo "#define __GETOPT_PREFIX rpl_" >>confdefs.h
17944 GNULIB_UNISTD_H_GETOPT
=1
17947 ac_fn_c_check_decl
"$LINENO" "getenv" "ac_cv_have_decl_getenv" "$ac_includes_default"
17948 if test "x$ac_cv_have_decl_getenv" = x
""yes; then :
17954 cat >>confdefs.h
<<_ACEOF
17955 #define HAVE_DECL_GETENV $ac_have_decl
17959 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for unsigned long long int" >&5
17960 $as_echo_n "checking for unsigned long long int... " >&6; }
17961 if test "${ac_cv_type_unsigned_long_long_int+set}" = set; then :
17962 $as_echo_n "(cached) " >&6
17964 ac_cv_type_unsigned_long_long_int
=yes
17965 if test "x${ac_cv_prog_cc_c99-no}" = xno
; then
17966 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
17967 /* end confdefs.h. */
17969 /* For now, do not test the preprocessor; as of 2007 there are too many
17970 implementations with broken preprocessors. Perhaps this can
17971 be revisited in 2012. In the meantime, code should not expect
17972 #if to work with literals wider than 32 bits. */
17973 /* Test literals. */
17974 long long int ll = 9223372036854775807ll;
17975 long long int nll = -9223372036854775807LL;
17976 unsigned long long int ull = 18446744073709551615ULL;
17977 /* Test constant expressions. */
17978 typedef int a[((-9223372036854775807LL < 0 && 0 < 9223372036854775807ll)
17980 typedef int b[(18446744073709551615ULL <= (unsigned long long int) -1
17986 /* Test availability of runtime routines for shift and division. */
17987 long long int llmax = 9223372036854775807ll;
17988 unsigned long long int ullmax = 18446744073709551615ull;
17989 return ((ll << 63) | (ll >> 63) | (ll < i) | (ll > i)
17990 | (llmax / ll) | (llmax % ll)
17991 | (ull << 63) | (ull >> 63) | (ull << i) | (ull >> i)
17992 | (ullmax / ull) | (ullmax % ull));
17998 if ac_fn_c_try_link
"$LINENO"; then :
18001 ac_cv_type_unsigned_long_long_int
=no
18003 rm -f core conftest.err conftest.
$ac_objext \
18004 conftest
$ac_exeext conftest.
$ac_ext
18007 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_unsigned_long_long_int" >&5
18008 $as_echo "$ac_cv_type_unsigned_long_long_int" >&6; }
18009 if test $ac_cv_type_unsigned_long_long_int = yes; then
18011 $as_echo "#define HAVE_UNSIGNED_LONG_LONG_INT 1" >>confdefs.h
18017 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for long long int" >&5
18018 $as_echo_n "checking for long long int... " >&6; }
18019 if test "${ac_cv_type_long_long_int+set}" = set; then :
18020 $as_echo_n "(cached) " >&6
18022 ac_cv_type_long_long_int
=yes
18023 if test "x${ac_cv_prog_cc_c99-no}" = xno
; then
18024 ac_cv_type_long_long_int
=$ac_cv_type_unsigned_long_long_int
18025 if test $ac_cv_type_long_long_int = yes; then
18026 if test "$cross_compiling" = yes; then :
18029 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
18030 /* end confdefs.h. */
18031 #include <limits.h>
18034 (1LL << (sizeof (long long int) * CHAR_BIT - 2))
18035 # define LLONG_MAX (HALF - 1 + HALF)
18040 long long int n = 1;
18044 long long int m = n << i;
18047 if (LLONG_MAX / 2 < m)
18055 if ac_fn_c_try_run
"$LINENO"; then :
18058 ac_cv_type_long_long_int
=no
18060 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
18061 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
18067 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_long_long_int" >&5
18068 $as_echo "$ac_cv_type_long_long_int" >&6; }
18069 if test $ac_cv_type_long_long_int = yes; then
18071 $as_echo "#define HAVE_LONG_LONG_INT 1" >>confdefs.h
18080 gl_cv_c_multiarch
=no
18081 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
18082 /* end confdefs.h. */
18083 #ifndef __APPLE_CC__
18084 not a universal capable compiler
18089 if ac_fn_c_try_compile
"$LINENO"; then :
18093 for word
in ${CC} ${CFLAGS} ${CPPFLAGS} ${LDFLAGS}; do
18094 if test -n "$prev"; then
18096 i?
86 | x86_64 | ppc | ppc64
)
18097 if test -z "$arch" ||
test "$arch" = "$word"; then
18100 gl_cv_c_multiarch
=yes
18106 if test "x$word" = "x-arch"; then
18113 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
18114 if test $gl_cv_c_multiarch = yes; then
18115 APPLE_UNIVERSAL_BUILD
=1
18117 APPLE_UNIVERSAL_BUILD
=0
18124 if test $ac_cv_type_long_long_int = yes; then
18125 HAVE_LONG_LONG_INT
=1
18127 HAVE_LONG_LONG_INT
=0
18131 if test $ac_cv_type_unsigned_long_long_int = yes; then
18132 HAVE_UNSIGNED_LONG_LONG_INT
=1
18134 HAVE_UNSIGNED_LONG_LONG_INT
=0
18139 if test $ac_cv_header_wchar_h = yes; then
18146 if test $ac_cv_header_inttypes_h = yes; then
18153 if test $ac_cv_header_sys_types_h = yes; then
18169 if test $gl_cv_have_include_next = yes; then
18170 gl_cv_next_stdint_h
='<'stdint.h
'>'
18172 { $as_echo "$as_me:${as_lineno-$LINENO}: checking absolute name of <stdint.h>" >&5
18173 $as_echo_n "checking absolute name of <stdint.h>... " >&6; }
18174 if test "${gl_cv_next_stdint_h+set}" = set; then :
18175 $as_echo_n "(cached) " >&6
18178 if test $ac_cv_header_stdint_h = yes; then
18181 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
18182 /* end confdefs.h. */
18183 #include <stdint.h>
18187 aix
*) gl_absname_cpp
="$ac_cpp -C" ;;
18188 *) gl_absname_cpp
="$ac_cpp" ;;
18193 gl_dirsep_regex
='[/\\]'
18196 gl_dirsep_regex
='/'
18200 gl_absolute_header_sed
='\|'"${gl_dirsep_regex}"'stdint.h|{
18201 s|.*"\(.*'"${gl_dirsep_regex}"'stdint.h\)".*|\1|
18206 gl_cv_next_stdint_h
='"'`(eval "$gl_absname_cpp conftest.$ac_ext") 2>&5 |
18207 sed -n "$gl_absolute_header_sed"`'"'
18209 gl_cv_next_stdint_h
='<'stdint.h
'>'
18214 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_next_stdint_h" >&5
18215 $as_echo "$gl_cv_next_stdint_h" >&6; }
18217 NEXT_STDINT_H
=$gl_cv_next_stdint_h
18219 if test $gl_cv_have_include_next = yes ||
test $gl_cv_have_include_next = buggy
; then
18220 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include_next'
18221 gl_next_as_first_directive
='<'stdint.h
'>'
18223 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include'
18224 gl_next_as_first_directive
=$gl_cv_next_stdint_h
18226 NEXT_AS_FIRST_DIRECTIVE_STDINT_H
=$gl_next_as_first_directive
18231 if test $ac_cv_header_stdint_h = yes; then
18238 if test $ac_cv_header_stdint_h = yes; then
18239 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stdint.h conforms to C99" >&5
18240 $as_echo_n "checking whether stdint.h conforms to C99... " >&6; }
18241 if test "${gl_cv_header_working_stdint_h+set}" = set; then :
18242 $as_echo_n "(cached) " >&6
18244 gl_cv_header_working_stdint_h
=no
18245 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
18246 /* end confdefs.h. */
18249 #define __STDC_LIMIT_MACROS 1 /* to make it work also in C++ mode */
18250 #define __STDC_CONSTANT_MACROS 1 /* to make it work also in C++ mode */
18251 #define _GL_JUST_INCLUDE_SYSTEM_STDINT_H 1 /* work if build isn't clean */
18252 #include <stdint.h>
18253 /* Dragonfly defines WCHAR_MIN, WCHAR_MAX only in <wchar.h>. */
18254 #if !(defined WCHAR_MIN && defined WCHAR_MAX)
18255 #error "WCHAR_MIN, WCHAR_MAX not defined in <stdint.h>"
18259 /* BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be
18260 included before <wchar.h>. */
18261 #include <stddef.h>
18262 #include <signal.h>
18264 # include <stdio.h>
18266 # include <wchar.h>
18271 int8_t a1 = INT8_MAX;
18272 int8_t a1min = INT8_MIN;
18275 int16_t a2 = INT16_MAX;
18276 int16_t a2min = INT16_MIN;
18279 int32_t a3 = INT32_MAX;
18280 int32_t a3min = INT32_MIN;
18283 int64_t a4 = INT64_MAX;
18284 int64_t a4min = INT64_MIN;
18287 uint8_t b1 = UINT8_MAX;
18289 typedef int b1[(unsigned char) -1 != 255 ? 1 : -1];
18292 uint16_t b2 = UINT16_MAX;
18295 uint32_t b3 = UINT32_MAX;
18298 uint64_t b4 = UINT64_MAX;
18300 int_least8_t c1 = INT8_C (0x7f);
18301 int_least8_t c1max = INT_LEAST8_MAX;
18302 int_least8_t c1min = INT_LEAST8_MIN;
18303 int_least16_t c2 = INT16_C (0x7fff);
18304 int_least16_t c2max = INT_LEAST16_MAX;
18305 int_least16_t c2min = INT_LEAST16_MIN;
18306 int_least32_t c3 = INT32_C (0x7fffffff);
18307 int_least32_t c3max = INT_LEAST32_MAX;
18308 int_least32_t c3min = INT_LEAST32_MIN;
18309 int_least64_t c4 = INT64_C (0x7fffffffffffffff);
18310 int_least64_t c4max = INT_LEAST64_MAX;
18311 int_least64_t c4min = INT_LEAST64_MIN;
18312 uint_least8_t d1 = UINT8_C (0xff);
18313 uint_least8_t d1max = UINT_LEAST8_MAX;
18314 uint_least16_t d2 = UINT16_C (0xffff);
18315 uint_least16_t d2max = UINT_LEAST16_MAX;
18316 uint_least32_t d3 = UINT32_C (0xffffffff);
18317 uint_least32_t d3max = UINT_LEAST32_MAX;
18318 uint_least64_t d4 = UINT64_C (0xffffffffffffffff);
18319 uint_least64_t d4max = UINT_LEAST64_MAX;
18320 int_fast8_t e1 = INT_FAST8_MAX;
18321 int_fast8_t e1min = INT_FAST8_MIN;
18322 int_fast16_t e2 = INT_FAST16_MAX;
18323 int_fast16_t e2min = INT_FAST16_MIN;
18324 int_fast32_t e3 = INT_FAST32_MAX;
18325 int_fast32_t e3min = INT_FAST32_MIN;
18326 int_fast64_t e4 = INT_FAST64_MAX;
18327 int_fast64_t e4min = INT_FAST64_MIN;
18328 uint_fast8_t f1 = UINT_FAST8_MAX;
18329 uint_fast16_t f2 = UINT_FAST16_MAX;
18330 uint_fast32_t f3 = UINT_FAST32_MAX;
18331 uint_fast64_t f4 = UINT_FAST64_MAX;
18333 intptr_t g = INTPTR_MAX;
18334 intptr_t gmin = INTPTR_MIN;
18337 uintptr_t h = UINTPTR_MAX;
18339 intmax_t i = INTMAX_MAX;
18340 uintmax_t j = UINTMAX_MAX;
18342 #include <limits.h> /* for CHAR_BIT */
18343 #define TYPE_MINIMUM(t) \
18344 ((t) ((t) 0 < (t) -1 ? (t) 0 : ~ TYPE_MAXIMUM (t)))
18345 #define TYPE_MAXIMUM(t) \
18346 ((t) ((t) 0 < (t) -1 \
18348 : ((((t) 1 << (sizeof (t) * CHAR_BIT - 2)) - 1) * 2 + 1)))
18351 PTRDIFF_MIN == TYPE_MINIMUM (ptrdiff_t)
18352 && PTRDIFF_MAX == TYPE_MAXIMUM (ptrdiff_t)
18354 /* Detect bug in FreeBSD 6.0 / ia64. */
18355 int check_SIG_ATOMIC:
18356 SIG_ATOMIC_MIN == TYPE_MINIMUM (sig_atomic_t)
18357 && SIG_ATOMIC_MAX == TYPE_MAXIMUM (sig_atomic_t)
18359 int check_SIZE: SIZE_MAX == TYPE_MAXIMUM (size_t) ? 1 : -1;
18361 WCHAR_MIN == TYPE_MINIMUM (wchar_t)
18362 && WCHAR_MAX == TYPE_MAXIMUM (wchar_t)
18364 /* Detect bug in mingw. */
18366 WINT_MIN == TYPE_MINIMUM (wint_t)
18367 && WINT_MAX == TYPE_MAXIMUM (wint_t)
18370 /* Detect bugs in glibc 2.4 and Solaris 10 stdint.h, among others. */
18372 (-1 < UINT8_C (0)) == (-1 < (uint_least8_t) 0) ? 1 : -1;
18373 int check_UINT16_C:
18374 (-1 < UINT16_C (0)) == (-1 < (uint_least16_t) 0) ? 1 : -1;
18376 /* Detect bugs in OpenBSD 3.9 stdint.h. */
18378 int check_uint8: (uint8_t) -1 == UINT8_MAX ? 1 : -1;
18381 int check_uint16: (uint16_t) -1 == UINT16_MAX ? 1 : -1;
18384 int check_uint32: (uint32_t) -1 == UINT32_MAX ? 1 : -1;
18387 int check_uint64: (uint64_t) -1 == UINT64_MAX ? 1 : -1;
18389 int check_uint_least8: (uint_least8_t) -1 == UINT_LEAST8_MAX ? 1 : -1;
18390 int check_uint_least16: (uint_least16_t) -1 == UINT_LEAST16_MAX ? 1 : -1;
18391 int check_uint_least32: (uint_least32_t) -1 == UINT_LEAST32_MAX ? 1 : -1;
18392 int check_uint_least64: (uint_least64_t) -1 == UINT_LEAST64_MAX ? 1 : -1;
18393 int check_uint_fast8: (uint_fast8_t) -1 == UINT_FAST8_MAX ? 1 : -1;
18394 int check_uint_fast16: (uint_fast16_t) -1 == UINT_FAST16_MAX ? 1 : -1;
18395 int check_uint_fast32: (uint_fast32_t) -1 == UINT_FAST32_MAX ? 1 : -1;
18396 int check_uint_fast64: (uint_fast64_t) -1 == UINT_FAST64_MAX ? 1 : -1;
18397 int check_uintptr: (uintptr_t) -1 == UINTPTR_MAX ? 1 : -1;
18398 int check_uintmax: (uintmax_t) -1 == UINTMAX_MAX ? 1 : -1;
18399 int check_size: (size_t) -1 == SIZE_MAX ? 1 : -1;
18410 if ac_fn_c_try_compile
"$LINENO"; then :
18411 if test "$cross_compiling" = yes; then :
18412 gl_cv_header_working_stdint_h
=yes
18415 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
18416 /* end confdefs.h. */
18419 #define __STDC_LIMIT_MACROS 1 /* to make it work also in C++ mode */
18420 #define __STDC_CONSTANT_MACROS 1 /* to make it work also in C++ mode */
18421 #define _GL_JUST_INCLUDE_SYSTEM_STDINT_H 1 /* work if build isn't clean */
18422 #include <stdint.h>
18425 /* BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be
18426 included before <wchar.h>. */
18427 #include <stddef.h>
18428 #include <signal.h>
18430 # include <stdio.h>
18432 # include <wchar.h>
18437 #include <string.h>
18438 #define MVAL(macro) MVAL1(macro)
18439 #define MVAL1(expression) #expression
18440 static const char *macro_values[] =
18474 for (mv = macro_values; *mv != NULL; mv++)
18476 const char *value = *mv;
18477 /* Test whether it looks like a cast expression. */
18478 if (strncmp (value, "((unsigned int)"/*)*/, 15) == 0
18479 || strncmp (value, "((unsigned short)"/*)*/, 17) == 0
18480 || strncmp (value, "((unsigned char)"/*)*/, 16) == 0
18481 || strncmp (value, "((int)"/*)*/, 6) == 0
18482 || strncmp (value, "((signed short)"/*)*/, 15) == 0
18483 || strncmp (value, "((signed char)"/*)*/, 14) == 0)
18484 return mv - macro_values + 1;
18492 if ac_fn_c_try_run
"$LINENO"; then :
18493 gl_cv_header_working_stdint_h
=yes
18495 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
18496 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
18501 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
18504 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_header_working_stdint_h" >&5
18505 $as_echo "$gl_cv_header_working_stdint_h" >&6; }
18507 if test "$gl_cv_header_working_stdint_h" = yes; then
18510 for ac_header
in sys
/inttypes.h sys
/bitypes.h
18512 as_ac_Header
=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
18513 ac_fn_c_check_header_mongrel
"$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
18514 eval as_val
=\$
$as_ac_Header
18515 if test "x$as_val" = x
""yes; then :
18516 cat >>confdefs.h
<<_ACEOF
18517 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
18524 if test $ac_cv_header_sys_inttypes_h = yes; then
18525 HAVE_SYS_INTTYPES_H
=1
18527 HAVE_SYS_INTTYPES_H
=0
18530 if test $ac_cv_header_sys_bitypes_h = yes; then
18531 HAVE_SYS_BITYPES_H
=1
18533 HAVE_SYS_BITYPES_H
=0
18539 if test $APPLE_UNIVERSAL_BUILD = 0; then
18542 for gltype
in ptrdiff_t size_t
; do
18543 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for bit size of $gltype" >&5
18544 $as_echo_n "checking for bit size of $gltype... " >&6; }
18545 if { as_var
=gl_cv_bitsizeof_
${gltype}; eval "test \"\${$as_var+set}\" = set"; }; then :
18546 $as_echo_n "(cached) " >&6
18548 if ac_fn_c_compute_int
"$LINENO" "sizeof ($gltype) * CHAR_BIT" "result" "
18549 /* BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be
18550 included before <wchar.h>. */
18551 #include <stddef.h>
18552 #include <signal.h>
18554 # include <stdio.h>
18556 # include <wchar.h>
18559 #include <limits.h>"; then :
18565 eval gl_cv_bitsizeof_
${gltype}=\
$result
18568 eval ac_res
=\
$gl_cv_bitsizeof_${gltype}
18569 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
18570 $as_echo "$ac_res" >&6; }
18571 eval result
=\
$gl_cv_bitsizeof_${gltype}
18572 if test $result = unknown
; then
18575 GLTYPE
=`echo "$gltype" | tr 'abcdefghijklmnopqrstuvwxyz ' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ_'`
18576 cat >>confdefs.h
<<_ACEOF
18577 #define BITSIZEOF_${GLTYPE} $result
18580 eval BITSIZEOF_
${GLTYPE}=\
$result
18587 for gltype
in sig_atomic_t wchar_t wint_t
; do
18588 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for bit size of $gltype" >&5
18589 $as_echo_n "checking for bit size of $gltype... " >&6; }
18590 if { as_var
=gl_cv_bitsizeof_
${gltype}; eval "test \"\${$as_var+set}\" = set"; }; then :
18591 $as_echo_n "(cached) " >&6
18593 if ac_fn_c_compute_int
"$LINENO" "sizeof ($gltype) * CHAR_BIT" "result" "
18594 /* BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be
18595 included before <wchar.h>. */
18596 #include <stddef.h>
18597 #include <signal.h>
18599 # include <stdio.h>
18601 # include <wchar.h>
18604 #include <limits.h>"; then :
18610 eval gl_cv_bitsizeof_
${gltype}=\
$result
18613 eval ac_res
=\
$gl_cv_bitsizeof_${gltype}
18614 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
18615 $as_echo "$ac_res" >&6; }
18616 eval result
=\
$gl_cv_bitsizeof_${gltype}
18617 if test $result = unknown
; then
18620 GLTYPE
=`echo "$gltype" | tr 'abcdefghijklmnopqrstuvwxyz ' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ_'`
18621 cat >>confdefs.h
<<_ACEOF
18622 #define BITSIZEOF_${GLTYPE} $result
18625 eval BITSIZEOF_
${GLTYPE}=\
$result
18631 for gltype
in sig_atomic_t wchar_t wint_t
; do
18632 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $gltype is signed" >&5
18633 $as_echo_n "checking whether $gltype is signed... " >&6; }
18634 if { as_var
=gl_cv_type_
${gltype}_signed; eval "test \"\${$as_var+set}\" = set"; }; then :
18635 $as_echo_n "(cached) " >&6
18637 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
18638 /* end confdefs.h. */
18640 /* BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be
18641 included before <wchar.h>. */
18642 #include <stddef.h>
18643 #include <signal.h>
18645 # include <stdio.h>
18647 # include <wchar.h>
18650 int verify[2 * (($gltype) -1 < ($gltype) 0) - 1];
18659 if ac_fn_c_try_compile
"$LINENO"; then :
18664 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
18665 eval gl_cv_type_
${gltype}_signed
=\
$result
18668 eval ac_res
=\
$gl_cv_type_${gltype}_signed
18669 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
18670 $as_echo "$ac_res" >&6; }
18671 eval result
=\
$gl_cv_type_${gltype}_signed
18672 GLTYPE
=`echo $gltype | tr 'abcdefghijklmnopqrstuvwxyz ' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ_'`
18673 if test "$result" = yes; then
18674 cat >>confdefs.h
<<_ACEOF
18675 #define HAVE_SIGNED_${GLTYPE} 1
18678 eval HAVE_SIGNED_
${GLTYPE}=1
18680 eval HAVE_SIGNED_
${GLTYPE}=0
18685 gl_cv_type_ptrdiff_t_signed
=yes
18686 gl_cv_type_size_t_signed
=no
18687 if test $APPLE_UNIVERSAL_BUILD = 0; then
18690 for gltype
in ptrdiff_t size_t
; do
18691 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $gltype integer literal suffix" >&5
18692 $as_echo_n "checking for $gltype integer literal suffix... " >&6; }
18693 if { as_var
=gl_cv_type_
${gltype}_suffix; eval "test \"\${$as_var+set}\" = set"; }; then :
18694 $as_echo_n "(cached) " >&6
18696 eval gl_cv_type_
${gltype}_suffix
=no
18697 eval result
=\
$gl_cv_type_${gltype}_signed
18698 if test "$result" = yes; then
18703 for glsuf
in "$glsufu" ${glsufu}l ${glsufu}ll ${glsufu}i64
; do
18705 '') gltype1
='int';;
18706 l
) gltype1
='long int';;
18707 ll
) gltype1
='long long int';;
18708 i64
) gltype1
='__int64';;
18709 u
) gltype1
='unsigned int';;
18710 ul
) gltype1
='unsigned long int';;
18711 ull
) gltype1
='unsigned long long int';;
18712 ui64
)gltype1
='unsigned __int64';;
18714 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
18715 /* end confdefs.h. */
18717 /* BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be
18718 included before <wchar.h>. */
18719 #include <stddef.h>
18720 #include <signal.h>
18722 # include <stdio.h>
18724 # include <wchar.h>
18727 extern $gltype foo;
18728 extern $gltype1 foo;
18737 if ac_fn_c_try_compile
"$LINENO"; then :
18738 eval gl_cv_type_
${gltype}_suffix
=\
$glsuf
18740 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
18741 eval result
=\
$gl_cv_type_${gltype}_suffix
18742 test "$result" != no
&& break
18745 eval ac_res
=\
$gl_cv_type_${gltype}_suffix
18746 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
18747 $as_echo "$ac_res" >&6; }
18748 GLTYPE
=`echo $gltype | tr 'abcdefghijklmnopqrstuvwxyz ' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ_'`
18749 eval result
=\
$gl_cv_type_${gltype}_suffix
18750 test "$result" = no
&& result
=
18751 eval ${GLTYPE}_SUFFIX
=\
$result
18752 cat >>confdefs.h
<<_ACEOF
18753 #define ${GLTYPE}_SUFFIX $result
18762 for gltype
in sig_atomic_t wchar_t wint_t
; do
18763 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $gltype integer literal suffix" >&5
18764 $as_echo_n "checking for $gltype integer literal suffix... " >&6; }
18765 if { as_var
=gl_cv_type_
${gltype}_suffix; eval "test \"\${$as_var+set}\" = set"; }; then :
18766 $as_echo_n "(cached) " >&6
18768 eval gl_cv_type_
${gltype}_suffix
=no
18769 eval result
=\
$gl_cv_type_${gltype}_signed
18770 if test "$result" = yes; then
18775 for glsuf
in "$glsufu" ${glsufu}l ${glsufu}ll ${glsufu}i64
; do
18777 '') gltype1
='int';;
18778 l
) gltype1
='long int';;
18779 ll
) gltype1
='long long int';;
18780 i64
) gltype1
='__int64';;
18781 u
) gltype1
='unsigned int';;
18782 ul
) gltype1
='unsigned long int';;
18783 ull
) gltype1
='unsigned long long int';;
18784 ui64
)gltype1
='unsigned __int64';;
18786 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
18787 /* end confdefs.h. */
18789 /* BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be
18790 included before <wchar.h>. */
18791 #include <stddef.h>
18792 #include <signal.h>
18794 # include <stdio.h>
18796 # include <wchar.h>
18799 extern $gltype foo;
18800 extern $gltype1 foo;
18809 if ac_fn_c_try_compile
"$LINENO"; then :
18810 eval gl_cv_type_
${gltype}_suffix
=\
$glsuf
18812 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
18813 eval result
=\
$gl_cv_type_${gltype}_suffix
18814 test "$result" != no
&& break
18817 eval ac_res
=\
$gl_cv_type_${gltype}_suffix
18818 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
18819 $as_echo "$ac_res" >&6; }
18820 GLTYPE
=`echo $gltype | tr 'abcdefghijklmnopqrstuvwxyz ' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ_'`
18821 eval result
=\
$gl_cv_type_${gltype}_suffix
18822 test "$result" = no
&& result
=
18823 eval ${GLTYPE}_SUFFIX
=\
$result
18824 cat >>confdefs.h
<<_ACEOF
18825 #define ${GLTYPE}_SUFFIX $result
18832 if test $BITSIZEOF_WINT_T -lt 32; then
18833 BITSIZEOF_WINT_T
=32
18839 if test -n "$STDINT_H"; then
18840 GL_GENERATE_STDINT_H_TRUE
=
18841 GL_GENERATE_STDINT_H_FALSE
='#'
18843 GL_GENERATE_STDINT_H_TRUE
='#'
18844 GL_GENERATE_STDINT_H_FALSE
=
18853 GNULIB_STRTOIMAX
=0;
18854 GNULIB_STRTOUMAX
=0;
18855 HAVE_DECL_IMAXABS
=1;
18856 HAVE_DECL_IMAXDIV
=1;
18857 HAVE_DECL_STRTOIMAX
=1;
18858 HAVE_DECL_STRTOUMAX
=1;
18859 INT32_MAX_LT_INTMAX_MAX
=1;
18860 INT64_MAX_EQ_LONG_MAX
='defined _LP64';
18861 PRI_MACROS_BROKEN
=0;
18862 PRIPTR_PREFIX
=__PRIPTR_PREFIX
;
18863 UINT32_MAX_LT_UINTMAX_MAX
=1;
18864 UINT64_MAX_EQ_ULONG_MAX
='defined _LP64';
18880 if test $gl_cv_have_include_next = yes; then
18881 gl_cv_next_inttypes_h
='<'inttypes.h
'>'
18883 { $as_echo "$as_me:${as_lineno-$LINENO}: checking absolute name of <inttypes.h>" >&5
18884 $as_echo_n "checking absolute name of <inttypes.h>... " >&6; }
18885 if test "${gl_cv_next_inttypes_h+set}" = set; then :
18886 $as_echo_n "(cached) " >&6
18889 if test $ac_cv_header_inttypes_h = yes; then
18892 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
18893 /* end confdefs.h. */
18894 #include <inttypes.h>
18898 aix
*) gl_absname_cpp
="$ac_cpp -C" ;;
18899 *) gl_absname_cpp
="$ac_cpp" ;;
18904 gl_dirsep_regex
='[/\\]'
18907 gl_dirsep_regex
='/'
18911 gl_absolute_header_sed
='\|'"${gl_dirsep_regex}"'inttypes.h|{
18912 s|.*"\(.*'"${gl_dirsep_regex}"'inttypes.h\)".*|\1|
18917 gl_cv_next_inttypes_h
='"'`(eval "$gl_absname_cpp conftest.$ac_ext") 2>&5 |
18918 sed -n "$gl_absolute_header_sed"`'"'
18920 gl_cv_next_inttypes_h
='<'inttypes.h
'>'
18925 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_next_inttypes_h" >&5
18926 $as_echo "$gl_cv_next_inttypes_h" >&6; }
18928 NEXT_INTTYPES_H
=$gl_cv_next_inttypes_h
18930 if test $gl_cv_have_include_next = yes ||
test $gl_cv_have_include_next = buggy
; then
18931 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include_next'
18932 gl_next_as_first_directive
='<'inttypes.h
'>'
18934 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include'
18935 gl_next_as_first_directive
=$gl_cv_next_inttypes_h
18937 NEXT_AS_FIRST_DIRECTIVE_INTTYPES_H
=$gl_next_as_first_directive
18946 $as_echo "#define GL_TRIGGER_STDC_LIMIT_MACROS 1" >>confdefs.h
18965 GNULIB_UTIMENSAT
=0;
18979 REPLACE_FUTIMENS
=0;
18985 REPLACE_UTIMENSAT
=0;
18990 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether lstat correctly handles trailing slash" >&5
18991 $as_echo_n "checking whether lstat correctly handles trailing slash... " >&6; }
18992 if test "${gl_cv_func_lstat_dereferences_slashed_symlink+set}" = set; then :
18993 $as_echo_n "(cached) " >&6
18995 rm -f conftest.sym conftest.
file
18996 echo >conftest.
file
18997 if test "$as_ln_s" = "ln -s" && ln -s conftest.
file conftest.sym
; then
18998 if test "$cross_compiling" = yes; then :
18999 # When cross-compiling, be pessimistic so we will end up using the
19000 # replacement version of lstat that checks for trailing slashes and
19001 # calls lstat a second time when necessary.
19002 gl_cv_func_lstat_dereferences_slashed_symlink
=no
19005 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
19006 /* end confdefs.h. */
19007 $ac_includes_default
19012 /* Linux will dereference the symlink and fail, as required by
19013 POSIX. That is better in the sense that it means we will not
19014 have to compile and use the lstat wrapper. */
19015 return lstat ("conftest.sym/", &sbuf) == 0;
19021 if ac_fn_c_try_run
"$LINENO"; then :
19022 gl_cv_func_lstat_dereferences_slashed_symlink
=yes
19024 gl_cv_func_lstat_dereferences_slashed_symlink
=no
19026 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
19027 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
19031 # If the 'ln -s' command failed, then we probably don't even
19032 # have an lstat function.
19033 gl_cv_func_lstat_dereferences_slashed_symlink
=no
19035 rm -f conftest.sym conftest.
file
19038 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_lstat_dereferences_slashed_symlink" >&5
19039 $as_echo "$gl_cv_func_lstat_dereferences_slashed_symlink" >&6; }
19040 test $gl_cv_func_lstat_dereferences_slashed_symlink = yes &&
19042 cat >>confdefs.h
<<_ACEOF
19043 #define LSTAT_FOLLOWS_SLASHED_SYMLINK 1
19049 GNULIB_NANOSLEEP
=0;
19053 HAVE_DECL_LOCALTIME_R
=1;
19057 REPLACE_LOCALTIME_R
=GNULIB_PORTCHECK
;
19058 REPLACE_MKTIME
=GNULIB_PORTCHECK
;
19059 REPLACE_NANOSLEEP
=GNULIB_PORTCHECK
;
19060 REPLACE_TIMEGM
=GNULIB_PORTCHECK
;
19067 GNULIB_PTHREAD_SIGMASK
=0;
19069 GNULIB_SIGNAL_H_SIGPIPE
=0;
19070 GNULIB_SIGPROCMASK
=0;
19071 GNULIB_SIGACTION
=0;
19072 HAVE_POSIX_SIGNALBLOCKING
=1;
19073 HAVE_PTHREAD_SIGMASK
=1;
19078 HAVE_STRUCT_SIGACTION_SA_SIGACTION
=1;
19080 HAVE_TYPE_VOLATILE_SIG_ATOMIC_T
=1;
19082 HAVE_SIGHANDLER_T
=1;
19083 REPLACE_PTHREAD_SIGMASK
=0;
19089 ac_fn_c_check_type
"$LINENO" "sigset_t" "ac_cv_type_sigset_t" "
19090 #include <signal.h>
19091 /* Mingw defines sigset_t not in <signal.h>, but in <sys/types.h>. */
19092 #include <sys/types.h>
19095 if test "x$ac_cv_type_sigset_t" = x
""yes; then :
19097 cat >>confdefs.h
<<_ACEOF
19098 #define HAVE_SIGSET_T 1
19101 gl_cv_type_sigset_t
=yes
19103 gl_cv_type_sigset_t
=no
19106 if test $gl_cv_type_sigset_t != yes; then
19114 if test $ac_cv_header_sys_socket_h = no
; then
19115 for ac_header
in ws2tcpip.h
19117 ac_fn_c_check_header_mongrel
"$LINENO" "ws2tcpip.h" "ac_cv_header_ws2tcpip_h" "$ac_includes_default"
19118 if test "x$ac_cv_header_ws2tcpip_h" = x
""yes; then :
19119 cat >>confdefs.h
<<_ACEOF
19120 #define HAVE_WS2TCPIP_H 1
19129 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for stdbool.h that conforms to C99" >&5
19130 $as_echo_n "checking for stdbool.h that conforms to C99... " >&6; }
19131 if test "${ac_cv_header_stdbool_h+set}" = set; then :
19132 $as_echo_n "(cached) " >&6
19134 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
19135 /* end confdefs.h. */
19137 #include <stdbool.h>
19139 "error: bool is not defined"
19142 "error: false is not defined"
19145 "error: false is not 0"
19148 "error: true is not defined"
19151 "error: true is not 1"
19153 #ifndef __bool_true_false_are_defined
19154 "error: __bool_true_false_are_defined is not defined"
19157 struct s { _Bool s: 1; _Bool t; } s;
19159 char a[true == 1 ? 1 : -1];
19160 char b[false == 0 ? 1 : -1];
19161 char c[__bool_true_false_are_defined == 1 ? 1 : -1];
19162 char d[(bool) 0.5 == true ? 1 : -1];
19163 /* See body of main program for 'e'. */
19164 char f[(_Bool) 0.0 == false ? 1 : -1];
19166 char h[sizeof (_Bool)];
19167 char i[sizeof s.t];
19168 enum { j = false, k = true, l = false * true, m = true * 256 };
19169 /* The following fails for
19170 HP aC++/ANSI C B3910B A.05.55 [Dec 04 2003]. */
19172 char o[sizeof n == m * sizeof n[0] ? 1 : -1];
19173 char p[-1 - (_Bool) 0 < 0 && -1 - (bool) 0 < 0 ? 1 : -1];
19174 /* Catch a bug in an HP-UX C compiler. See
19175 http://gcc.gnu.org/ml/gcc-patches/2003-12/msg02303.html
19176 http://lists.gnu.org/archive/html/bug-coreutils/2005-11/msg00161.html
19188 /* Refer to every declared value, to avoid compiler optimizations. */
19189 return (!a + !b + !c + !d + !e + !f + !g + !h + !i + !!j + !k + !!l
19190 + !m + !n + !o + !p + !q + !pq);
19196 if ac_fn_c_try_compile
"$LINENO"; then :
19197 ac_cv_header_stdbool_h
=yes
19199 ac_cv_header_stdbool_h
=no
19201 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
19203 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdbool_h" >&5
19204 $as_echo "$ac_cv_header_stdbool_h" >&6; }
19205 ac_fn_c_check_type
"$LINENO" "_Bool" "ac_cv_type__Bool" "$ac_includes_default"
19206 if test "x$ac_cv_type__Bool" = x
""yes; then :
19208 cat >>confdefs.h
<<_ACEOF
19209 #define HAVE__BOOL 1
19221 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for wchar_t" >&5
19222 $as_echo_n "checking for wchar_t... " >&6; }
19223 if test "${gt_cv_c_wchar_t+set}" = set; then :
19224 $as_echo_n "(cached) " >&6
19226 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
19227 /* end confdefs.h. */
19228 #include <stddef.h>
19229 wchar_t foo = (wchar_t)'\0';
19238 if ac_fn_c_try_compile
"$LINENO"; then :
19239 gt_cv_c_wchar_t
=yes
19243 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
19245 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_c_wchar_t" >&5
19246 $as_echo "$gt_cv_c_wchar_t" >&6; }
19247 if test $gt_cv_c_wchar_t = yes; then
19249 $as_echo "#define HAVE_WCHAR_T 1" >>confdefs.h
19262 GNULIB_FPRINTF_POSIX
=0;
19279 GNULIB_OBSTACK_PRINTF
=0;
19280 GNULIB_OBSTACK_PRINTF_POSIX
=0;
19285 GNULIB_PRINTF_POSIX
=0;
19294 GNULIB_SPRINTF_POSIX
=0;
19295 GNULIB_STDIO_H_NONBLOCKING
=0;
19296 GNULIB_STDIO_H_SIGPIPE
=0;
19298 GNULIB_VASPRINTF
=0;
19303 GNULIB_VFPRINTF_POSIX
=0;
19305 GNULIB_VPRINTF_POSIX
=0;
19306 GNULIB_VSNPRINTF
=0;
19307 GNULIB_VSPRINTF_POSIX
=0;
19308 HAVE_DECL_FPURGE
=1;
19309 HAVE_DECL_FSEEKO
=1;
19310 HAVE_DECL_FTELLO
=1;
19311 HAVE_DECL_GETDELIM
=1;
19312 HAVE_DECL_GETLINE
=1;
19313 HAVE_DECL_OBSTACK_PRINTF
=1;
19314 HAVE_DECL_SNPRINTF
=1;
19315 HAVE_DECL_VSNPRINTF
=1;
19336 REPLACE_GETDELIM
=0;
19338 REPLACE_OBSTACK_PRINTF
=0;
19344 REPLACE_RENAMEAT
=0;
19345 REPLACE_SNPRINTF
=0;
19347 REPLACE_STDIO_READ_FUNCS
=0;
19348 REPLACE_STDIO_WRITE_FUNCS
=0;
19350 REPLACE_VASPRINTF
=0;
19351 REPLACE_VDPRINTF
=0;
19352 REPLACE_VFPRINTF
=0;
19354 REPLACE_VSNPRINTF
=0;
19355 REPLACE_VSPRINTF
=0;
19357 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether struct tm is in sys/time.h or time.h" >&5
19358 $as_echo_n "checking whether struct tm is in sys/time.h or time.h... " >&6; }
19359 if test "${ac_cv_struct_tm+set}" = set; then :
19360 $as_echo_n "(cached) " >&6
19362 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
19363 /* end confdefs.h. */
19364 #include <sys/types.h>
19371 int *p = &tm.tm_sec;
19377 if ac_fn_c_try_compile
"$LINENO"; then :
19378 ac_cv_struct_tm
=time.h
19380 ac_cv_struct_tm
=sys
/time.h
19382 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
19384 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_struct_tm" >&5
19385 $as_echo "$ac_cv_struct_tm" >&6; }
19386 if test $ac_cv_struct_tm = sys
/time.h
; then
19388 $as_echo "#define TM_IN_SYS_TIME 1" >>confdefs.h
19392 ac_fn_c_check_member
"$LINENO" "struct tm" "tm_zone" "ac_cv_member_struct_tm_tm_zone" "#include <sys/types.h>
19393 #include <$ac_cv_struct_tm>
19396 if test "x$ac_cv_member_struct_tm_tm_zone" = x
""yes; then :
19398 cat >>confdefs.h
<<_ACEOF
19399 #define HAVE_STRUCT_TM_TM_ZONE 1
19405 if test "$ac_cv_member_struct_tm_tm_zone" = yes; then
19407 $as_echo "#define HAVE_TM_ZONE 1" >>confdefs.h
19410 ac_fn_c_check_decl
"$LINENO" "tzname" "ac_cv_have_decl_tzname" "#include <time.h>
19412 if test "x$ac_cv_have_decl_tzname" = x
""yes; then :
19418 cat >>confdefs.h
<<_ACEOF
19419 #define HAVE_DECL_TZNAME $ac_have_decl
19422 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for tzname" >&5
19423 $as_echo_n "checking for tzname... " >&6; }
19424 if test "${ac_cv_var_tzname+set}" = set; then :
19425 $as_echo_n "(cached) " >&6
19427 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
19428 /* end confdefs.h. */
19430 #if !HAVE_DECL_TZNAME
19431 extern char *tzname[];
19437 return tzname[0][0];
19442 if ac_fn_c_try_link
"$LINENO"; then :
19443 ac_cv_var_tzname
=yes
19445 ac_cv_var_tzname
=no
19447 rm -f core conftest.err conftest.
$ac_objext \
19448 conftest
$ac_exeext conftest.
$ac_ext
19450 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_var_tzname" >&5
19451 $as_echo "$ac_cv_var_tzname" >&6; }
19452 if test $ac_cv_var_tzname = yes; then
19454 $as_echo "#define HAVE_TZNAME 1" >>confdefs.h
19460 ac_fn_c_check_member
"$LINENO" "struct tm" "tm_gmtoff" "ac_cv_member_struct_tm_tm_gmtoff" "#include <time.h>
19462 if test "x$ac_cv_member_struct_tm_tm_gmtoff" = x
""yes; then :
19464 $as_echo "#define HAVE_TM_GMTOFF 1" >>confdefs.h
19473 ac_fn_c_check_decl
"$LINENO" "strtoimax" "ac_cv_have_decl_strtoimax" "$ac_includes_default"
19474 if test "x$ac_cv_have_decl_strtoimax" = x
""yes; then :
19480 cat >>confdefs.h
<<_ACEOF
19481 #define HAVE_DECL_STRTOIMAX $ac_have_decl
19486 ac_fn_c_check_decl
"$LINENO" "strtoumax" "ac_cv_have_decl_strtoumax" "$ac_includes_default"
19487 if test "x$ac_cv_have_decl_strtoumax" = x
""yes; then :
19493 cat >>confdefs.h
<<_ACEOF
19494 #define HAVE_DECL_STRTOUMAX $ac_have_decl
19499 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stat file-mode macros are broken" >&5
19500 $as_echo_n "checking whether stat file-mode macros are broken... " >&6; }
19501 if test "${ac_cv_header_stat_broken+set}" = set; then :
19502 $as_echo_n "(cached) " >&6
19504 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
19505 /* end confdefs.h. */
19506 #include <sys/types.h>
19507 #include <sys/stat.h>
19509 #if defined S_ISBLK && defined S_IFDIR
19510 extern char c1[S_ISBLK (S_IFDIR) ? -1 : 1];
19513 #if defined S_ISBLK && defined S_IFCHR
19514 extern char c2[S_ISBLK (S_IFCHR) ? -1 : 1];
19517 #if defined S_ISLNK && defined S_IFREG
19518 extern char c3[S_ISLNK (S_IFREG) ? -1 : 1];
19521 #if defined S_ISSOCK && defined S_IFREG
19522 extern char c4[S_ISSOCK (S_IFREG) ? -1 : 1];
19526 if ac_fn_c_try_compile
"$LINENO"; then :
19527 ac_cv_header_stat_broken
=no
19529 ac_cv_header_stat_broken
=yes
19531 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
19533 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stat_broken" >&5
19534 $as_echo "$ac_cv_header_stat_broken" >&6; }
19535 if test $ac_cv_header_stat_broken = yes; then
19537 $as_echo "#define STAT_MACROS_BROKEN 1" >>confdefs.h
19543 ac_fn_c_check_type
"$LINENO" "mode_t" "ac_cv_type_mode_t" "$ac_includes_default"
19544 if test "x$ac_cv_type_mode_t" = x
""yes; then :
19548 cat >>confdefs.h
<<_ACEOF
19554 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for C/C++ restrict keyword" >&5
19555 $as_echo_n "checking for C/C++ restrict keyword... " >&6; }
19556 if test "${ac_cv_c_restrict+set}" = set; then :
19557 $as_echo_n "(cached) " >&6
19559 ac_cv_c_restrict
=no
19560 # The order here caters to the fact that C++ does not require restrict.
19561 for ac_kw
in __restrict __restrict__ _Restrict restrict
; do
19562 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
19563 /* end confdefs.h. */
19564 typedef int * int_ptr;
19565 int foo (int_ptr $ac_kw ip) {
19572 int * $ac_kw t = s;
19579 if ac_fn_c_try_compile
"$LINENO"; then :
19580 ac_cv_c_restrict
=$ac_kw
19582 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
19583 test "$ac_cv_c_restrict" != no
&& break
19587 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_restrict" >&5
19588 $as_echo "$ac_cv_c_restrict" >&6; }
19590 case $ac_cv_c_restrict in
19592 no
) $as_echo "#define restrict /**/" >>confdefs.h
19594 *) cat >>confdefs.h
<<_ACEOF
19595 #define restrict $ac_cv_c_restrict
19604 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for struct timespec in <time.h>" >&5
19605 $as_echo_n "checking for struct timespec in <time.h>... " >&6; }
19606 if test "${gl_cv_sys_struct_timespec_in_time_h+set}" = set; then :
19607 $as_echo_n "(cached) " >&6
19609 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
19610 /* end confdefs.h. */
19616 static struct timespec x; x.tv_sec = x.tv_nsec;
19621 if ac_fn_c_try_compile
"$LINENO"; then :
19622 gl_cv_sys_struct_timespec_in_time_h
=yes
19624 gl_cv_sys_struct_timespec_in_time_h
=no
19626 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
19628 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_sys_struct_timespec_in_time_h" >&5
19629 $as_echo "$gl_cv_sys_struct_timespec_in_time_h" >&6; }
19631 TIME_H_DEFINES_STRUCT_TIMESPEC
=0
19632 SYS_TIME_H_DEFINES_STRUCT_TIMESPEC
=0
19633 PTHREAD_H_DEFINES_STRUCT_TIMESPEC
=0
19634 if test $gl_cv_sys_struct_timespec_in_time_h = yes; then
19635 TIME_H_DEFINES_STRUCT_TIMESPEC
=1
19637 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for struct timespec in <sys/time.h>" >&5
19638 $as_echo_n "checking for struct timespec in <sys/time.h>... " >&6; }
19639 if test "${gl_cv_sys_struct_timespec_in_sys_time_h+set}" = set; then :
19640 $as_echo_n "(cached) " >&6
19642 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
19643 /* end confdefs.h. */
19644 #include <sys/time.h>
19649 static struct timespec x; x.tv_sec = x.tv_nsec;
19654 if ac_fn_c_try_compile
"$LINENO"; then :
19655 gl_cv_sys_struct_timespec_in_sys_time_h
=yes
19657 gl_cv_sys_struct_timespec_in_sys_time_h
=no
19659 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
19661 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_sys_struct_timespec_in_sys_time_h" >&5
19662 $as_echo "$gl_cv_sys_struct_timespec_in_sys_time_h" >&6; }
19663 if test $gl_cv_sys_struct_timespec_in_sys_time_h = yes; then
19664 SYS_TIME_H_DEFINES_STRUCT_TIMESPEC
=1
19666 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for struct timespec in <pthread.h>" >&5
19667 $as_echo_n "checking for struct timespec in <pthread.h>... " >&6; }
19668 if test "${gl_cv_sys_struct_timespec_in_pthread_h+set}" = set; then :
19669 $as_echo_n "(cached) " >&6
19671 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
19672 /* end confdefs.h. */
19673 #include <pthread.h>
19678 static struct timespec x; x.tv_sec = x.tv_nsec;
19683 if ac_fn_c_try_compile
"$LINENO"; then :
19684 gl_cv_sys_struct_timespec_in_pthread_h
=yes
19686 gl_cv_sys_struct_timespec_in_pthread_h
=no
19688 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
19690 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_sys_struct_timespec_in_pthread_h" >&5
19691 $as_echo "$gl_cv_sys_struct_timespec_in_pthread_h" >&6; }
19692 if test $gl_cv_sys_struct_timespec_in_pthread_h = yes; then
19693 PTHREAD_H_DEFINES_STRUCT_TIMESPEC
=1
19712 if test $gl_cv_have_include_next = yes; then
19713 gl_cv_next_time_h
='<'time.h
'>'
19715 { $as_echo "$as_me:${as_lineno-$LINENO}: checking absolute name of <time.h>" >&5
19716 $as_echo_n "checking absolute name of <time.h>... " >&6; }
19717 if test "${gl_cv_next_time_h+set}" = set; then :
19718 $as_echo_n "(cached) " >&6
19721 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
19722 /* end confdefs.h. */
19727 aix
*) gl_absname_cpp
="$ac_cpp -C" ;;
19728 *) gl_absname_cpp
="$ac_cpp" ;;
19733 gl_dirsep_regex
='[/\\]'
19736 gl_dirsep_regex
='/'
19740 gl_absolute_header_sed
='\|'"${gl_dirsep_regex}"'time.h|{
19741 s|.*"\(.*'"${gl_dirsep_regex}"'time.h\)".*|\1|
19746 gl_cv_next_time_h
='"'`(eval "$gl_absname_cpp conftest.$ac_ext") 2>&5 |
19747 sed -n "$gl_absolute_header_sed"`'"'
19751 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_next_time_h" >&5
19752 $as_echo "$gl_cv_next_time_h" >&6; }
19754 NEXT_TIME_H
=$gl_cv_next_time_h
19756 if test $gl_cv_have_include_next = yes ||
test $gl_cv_have_include_next = buggy
; then
19757 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include_next'
19758 gl_next_as_first_directive
='<'time.h
'>'
19760 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include'
19761 gl_next_as_first_directive
=$gl_cv_next_time_h
19763 NEXT_AS_FIRST_DIRECTIVE_TIME_H
=$gl_next_as_first_directive
19770 ac_fn_c_check_decl
"$LINENO" "localtime_r" "ac_cv_have_decl_localtime_r" "$ac_includes_default"
19771 if test "x$ac_cv_have_decl_localtime_r" = x
""yes; then :
19777 cat >>confdefs.h
<<_ACEOF
19778 #define HAVE_DECL_LOCALTIME_R $ac_have_decl
19785 GL_COND_LIBTOOL_TRUE
=
19786 GL_COND_LIBTOOL_FALSE
='#'
19788 GL_COND_LIBTOOL_TRUE
='#'
19789 GL_COND_LIBTOOL_FALSE
=
19792 gl_cond_libtool
=false
19805 gl_source_base
='lib'
19808 if test $ac_cv_func_alloca_works = no
; then
19812 # Define an additional variable used in the Makefile substitution.
19813 if test $ac_cv_working_alloca_h = yes; then
19814 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for alloca as a compiler built-in" >&5
19815 $as_echo_n "checking for alloca as a compiler built-in... " >&6; }
19816 if test "${gl_cv_rpl_alloca+set}" = set; then :
19817 $as_echo_n "(cached) " >&6
19820 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
19821 /* end confdefs.h. */
19823 #if defined __GNUC__ || defined _AIX || defined _MSC_VER
19828 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
19829 $EGREP "Need own alloca" >/dev
/null
2>&1; then :
19830 gl_cv_rpl_alloca
=yes
19832 gl_cv_rpl_alloca
=no
19838 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_rpl_alloca" >&5
19839 $as_echo "$gl_cv_rpl_alloca" >&6; }
19840 if test $gl_cv_rpl_alloca = yes; then
19842 $as_echo "#define HAVE_ALLOCA 1" >>confdefs.h
19852 if test -n "$ALLOCA_H"; then
19853 GL_GENERATE_ALLOCA_H_TRUE
=
19854 GL_GENERATE_ALLOCA_H_FALSE
='#'
19856 GL_GENERATE_ALLOCA_H_TRUE
='#'
19857 GL_GENERATE_ALLOCA_H_FALSE
=
19886 $as_echo "#define HAVE_DUP2 1" >>confdefs.h
19889 if test $HAVE_DUP2 = 1; then
19890 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether dup2 works" >&5
19891 $as_echo_n "checking whether dup2 works... " >&6; }
19892 if test "${gl_cv_func_dup2_works+set}" = set; then :
19893 $as_echo_n "(cached) " >&6
19895 if test "$cross_compiling" = yes; then :
19897 mingw
*) # on this platform, dup2 always returns 0 for success
19898 gl_cv_func_dup2_works
=no
;;
19899 cygwin
*) # on cygwin 1.5.x, dup2(1,1) returns 0
19900 gl_cv_func_dup2_works
=no
;;
19901 linux
*) # On linux between 2008-07-27 and 2009-05-11, dup2 of a
19902 # closed fd may yield -EBADF instead of -1 / errno=EBADF.
19903 gl_cv_func_dup2_works
=no
;;
19904 freebsd
*) # on FreeBSD 6.1, dup2(1,1000000) gives EMFILE, not EBADF.
19905 gl_cv_func_dup2_works
=no
;;
19906 haiku
*) # on Haiku alpha 2, dup2(1, 1) resets FD_CLOEXEC.
19907 gl_cv_func_dup2_works
=no
;;
19908 *) gl_cv_func_dup2_works
=yes;;
19911 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
19912 /* end confdefs.h. */
19914 #include <unistd.h>
19922 if (fcntl (1, F_SETFD, FD_CLOEXEC) == -1)
19925 if (dup2 (1, 1) == 0)
19928 if (fcntl (1, F_GETFD) != FD_CLOEXEC)
19932 if (dup2 (0, 0) != -1)
19934 /* Many gnulib modules require POSIX conformance of EBADF. */
19935 if (dup2 (2, 1000000) == -1 && errno != EBADF)
19944 if ac_fn_c_try_run
"$LINENO"; then :
19945 gl_cv_func_dup2_works
=yes
19947 gl_cv_func_dup2_works
=no
19949 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
19950 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
19955 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_dup2_works" >&5
19956 $as_echo "$gl_cv_func_dup2_works" >&6; }
19957 if test "$gl_cv_func_dup2_works" = no
; then
19963 if test $HAVE_DUP2 = 0 ||
test $REPLACE_DUP2 = 1; then
19972 gl_LIBOBJS
="$gl_LIBOBJS dup2.$ac_objext"
19993 # Persuade glibc <stdlib.h> to declare getloadavg().
19998 # getloadvg is present in libc on glibc >= 2.2, MacOS X, FreeBSD >= 2.0,
19999 # NetBSD >= 0.9, OpenBSD >= 2.0, Solaris >= 7.
20001 ac_fn_c_check_func
"$LINENO" "getloadavg" "ac_cv_func_getloadavg"
20002 if test "x$ac_cv_func_getloadavg" = x
""yes; then :
20005 gl_func_getloadavg_done
=no
20007 # Some systems with -lutil have (and need) -lkvm as well, some do not.
20008 # On Solaris, -lkvm requires nlist from -lelf, so check that first
20009 # to get the right answer into the cache.
20010 # For kstat on solaris, we need to test for libelf and libkvm to force the
20011 # definition of SVR4 below.
20012 if test $gl_func_getloadavg_done = no
; then
20013 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for elf_begin in -lelf" >&5
20014 $as_echo_n "checking for elf_begin in -lelf... " >&6; }
20015 if test "${ac_cv_lib_elf_elf_begin+set}" = set; then :
20016 $as_echo_n "(cached) " >&6
20018 ac_check_lib_save_LIBS
=$LIBS
20020 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
20021 /* end confdefs.h. */
20023 /* Override any GCC internal prototype to avoid an error.
20024 Use char because int might match the return type of a GCC
20025 builtin and then its argument prototype would still apply. */
20033 return elf_begin ();
20038 if ac_fn_c_try_link
"$LINENO"; then :
20039 ac_cv_lib_elf_elf_begin
=yes
20041 ac_cv_lib_elf_elf_begin
=no
20043 rm -f core conftest.err conftest.
$ac_objext \
20044 conftest
$ac_exeext conftest.
$ac_ext
20045 LIBS
=$ac_check_lib_save_LIBS
20047 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_elf_elf_begin" >&5
20048 $as_echo "$ac_cv_lib_elf_elf_begin" >&6; }
20049 if test "x$ac_cv_lib_elf_elf_begin" = x
""yes; then :
20053 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for kvm_open in -lkvm" >&5
20054 $as_echo_n "checking for kvm_open in -lkvm... " >&6; }
20055 if test "${ac_cv_lib_kvm_kvm_open+set}" = set; then :
20056 $as_echo_n "(cached) " >&6
20058 ac_check_lib_save_LIBS
=$LIBS
20060 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
20061 /* end confdefs.h. */
20063 /* Override any GCC internal prototype to avoid an error.
20064 Use char because int might match the return type of a GCC
20065 builtin and then its argument prototype would still apply. */
20073 return kvm_open ();
20078 if ac_fn_c_try_link
"$LINENO"; then :
20079 ac_cv_lib_kvm_kvm_open
=yes
20081 ac_cv_lib_kvm_kvm_open
=no
20083 rm -f core conftest.err conftest.
$ac_objext \
20084 conftest
$ac_exeext conftest.
$ac_ext
20085 LIBS
=$ac_check_lib_save_LIBS
20087 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_kvm_kvm_open" >&5
20088 $as_echo "$ac_cv_lib_kvm_kvm_open" >&6; }
20089 if test "x$ac_cv_lib_kvm_kvm_open" = x
""yes; then :
20093 # Check for the 4.4BSD definition of getloadavg.
20094 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for getloadavg in -lutil" >&5
20095 $as_echo_n "checking for getloadavg in -lutil... " >&6; }
20096 if test "${ac_cv_lib_util_getloadavg+set}" = set; then :
20097 $as_echo_n "(cached) " >&6
20099 ac_check_lib_save_LIBS
=$LIBS
20100 LIBS
="-lutil $LIBS"
20101 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
20102 /* end confdefs.h. */
20104 /* Override any GCC internal prototype to avoid an error.
20105 Use char because int might match the return type of a GCC
20106 builtin and then its argument prototype would still apply. */
20110 char getloadavg ();
20114 return getloadavg ();
20119 if ac_fn_c_try_link
"$LINENO"; then :
20120 ac_cv_lib_util_getloadavg
=yes
20122 ac_cv_lib_util_getloadavg
=no
20124 rm -f core conftest.err conftest.
$ac_objext \
20125 conftest
$ac_exeext conftest.
$ac_ext
20126 LIBS
=$ac_check_lib_save_LIBS
20128 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_util_getloadavg" >&5
20129 $as_echo "$ac_cv_lib_util_getloadavg" >&6; }
20130 if test "x$ac_cv_lib_util_getloadavg" = x
""yes; then :
20131 LIBS
="-lutil $LIBS" gl_func_getloadavg_done
=yes
20136 if test $gl_func_getloadavg_done = no
; then
20137 # There is a commonly available library for RS/6000 AIX.
20138 # Since it is not a standard part of AIX, it might be installed locally.
20139 gl_getloadavg_LIBS
=$LIBS
20140 LIBS
="-L/usr/local/lib $LIBS"
20141 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for getloadavg in -lgetloadavg" >&5
20142 $as_echo_n "checking for getloadavg in -lgetloadavg... " >&6; }
20143 if test "${ac_cv_lib_getloadavg_getloadavg+set}" = set; then :
20144 $as_echo_n "(cached) " >&6
20146 ac_check_lib_save_LIBS
=$LIBS
20147 LIBS
="-lgetloadavg $LIBS"
20148 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
20149 /* end confdefs.h. */
20151 /* Override any GCC internal prototype to avoid an error.
20152 Use char because int might match the return type of a GCC
20153 builtin and then its argument prototype would still apply. */
20157 char getloadavg ();
20161 return getloadavg ();
20166 if ac_fn_c_try_link
"$LINENO"; then :
20167 ac_cv_lib_getloadavg_getloadavg
=yes
20169 ac_cv_lib_getloadavg_getloadavg
=no
20171 rm -f core conftest.err conftest.
$ac_objext \
20172 conftest
$ac_exeext conftest.
$ac_ext
20173 LIBS
=$ac_check_lib_save_LIBS
20175 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_getloadavg_getloadavg" >&5
20176 $as_echo "$ac_cv_lib_getloadavg_getloadavg" >&6; }
20177 if test "x$ac_cv_lib_getloadavg_getloadavg" = x
""yes; then :
20178 LIBS
="-lgetloadavg $LIBS" gl_func_getloadavg_done
=yes
20180 LIBS
=$gl_getloadavg_LIBS
20185 # Set up the replacement function if necessary.
20186 if test $gl_func_getloadavg_done = no
; then
20189 # Solaris has libkstat which does not require root.
20190 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for kstat_open in -lkstat" >&5
20191 $as_echo_n "checking for kstat_open in -lkstat... " >&6; }
20192 if test "${ac_cv_lib_kstat_kstat_open+set}" = set; then :
20193 $as_echo_n "(cached) " >&6
20195 ac_check_lib_save_LIBS
=$LIBS
20196 LIBS
="-lkstat $LIBS"
20197 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
20198 /* end confdefs.h. */
20200 /* Override any GCC internal prototype to avoid an error.
20201 Use char because int might match the return type of a GCC
20202 builtin and then its argument prototype would still apply. */
20206 char kstat_open ();
20210 return kstat_open ();
20215 if ac_fn_c_try_link
"$LINENO"; then :
20216 ac_cv_lib_kstat_kstat_open
=yes
20218 ac_cv_lib_kstat_kstat_open
=no
20220 rm -f core conftest.err conftest.
$ac_objext \
20221 conftest
$ac_exeext conftest.
$ac_ext
20222 LIBS
=$ac_check_lib_save_LIBS
20224 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_kstat_kstat_open" >&5
20225 $as_echo "$ac_cv_lib_kstat_kstat_open" >&6; }
20226 if test "x$ac_cv_lib_kstat_kstat_open" = x
""yes; then :
20227 cat >>confdefs.h
<<_ACEOF
20228 #define HAVE_LIBKSTAT 1
20231 LIBS
="-lkstat $LIBS"
20235 test $ac_cv_lib_kstat_kstat_open = yes && gl_func_getloadavg_done
=yes
20237 # AIX has libperfstat which does not require root
20238 if test $gl_func_getloadavg_done = no
; then
20239 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for perfstat_cpu_total in -lperfstat" >&5
20240 $as_echo_n "checking for perfstat_cpu_total in -lperfstat... " >&6; }
20241 if test "${ac_cv_lib_perfstat_perfstat_cpu_total+set}" = set; then :
20242 $as_echo_n "(cached) " >&6
20244 ac_check_lib_save_LIBS
=$LIBS
20245 LIBS
="-lperfstat $LIBS"
20246 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
20247 /* end confdefs.h. */
20249 /* Override any GCC internal prototype to avoid an error.
20250 Use char because int might match the return type of a GCC
20251 builtin and then its argument prototype would still apply. */
20255 char perfstat_cpu_total ();
20259 return perfstat_cpu_total ();
20264 if ac_fn_c_try_link
"$LINENO"; then :
20265 ac_cv_lib_perfstat_perfstat_cpu_total
=yes
20267 ac_cv_lib_perfstat_perfstat_cpu_total
=no
20269 rm -f core conftest.err conftest.
$ac_objext \
20270 conftest
$ac_exeext conftest.
$ac_ext
20271 LIBS
=$ac_check_lib_save_LIBS
20273 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_perfstat_perfstat_cpu_total" >&5
20274 $as_echo "$ac_cv_lib_perfstat_perfstat_cpu_total" >&6; }
20275 if test "x$ac_cv_lib_perfstat_perfstat_cpu_total" = x
""yes; then :
20276 cat >>confdefs.h
<<_ACEOF
20277 #define HAVE_LIBPERFSTAT 1
20280 LIBS
="-lperfstat $LIBS"
20284 test $ac_cv_lib_perfstat_perfstat_cpu_total = yes && gl_func_getloadavg_done
=yes
20287 if test $gl_func_getloadavg_done = no
; then
20288 ac_fn_c_check_header_mongrel
"$LINENO" "sys/dg_sys_info.h" "ac_cv_header_sys_dg_sys_info_h" "$ac_includes_default"
20289 if test "x$ac_cv_header_sys_dg_sys_info_h" = x
""yes; then :
20290 gl_func_getloadavg_done
=yes
20292 $as_echo "#define DGUX 1" >>confdefs.h
20294 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dg_sys_info in -ldgc" >&5
20295 $as_echo_n "checking for dg_sys_info in -ldgc... " >&6; }
20296 if test "${ac_cv_lib_dgc_dg_sys_info+set}" = set; then :
20297 $as_echo_n "(cached) " >&6
20299 ac_check_lib_save_LIBS
=$LIBS
20301 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
20302 /* end confdefs.h. */
20304 /* Override any GCC internal prototype to avoid an error.
20305 Use char because int might match the return type of a GCC
20306 builtin and then its argument prototype would still apply. */
20310 char dg_sys_info ();
20314 return dg_sys_info ();
20319 if ac_fn_c_try_link
"$LINENO"; then :
20320 ac_cv_lib_dgc_dg_sys_info
=yes
20322 ac_cv_lib_dgc_dg_sys_info
=no
20324 rm -f core conftest.err conftest.
$ac_objext \
20325 conftest
$ac_exeext conftest.
$ac_ext
20326 LIBS
=$ac_check_lib_save_LIBS
20328 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dgc_dg_sys_info" >&5
20329 $as_echo "$ac_cv_lib_dgc_dg_sys_info" >&6; }
20330 if test "x$ac_cv_lib_dgc_dg_sys_info" = x
""yes; then :
20331 cat >>confdefs.h
<<_ACEOF
20332 #define HAVE_LIBDGC 1
20347 if test "x$gl_save_LIBS" = x
; then
20348 GETLOADAVG_LIBS
=$LIBS
20350 GETLOADAVG_LIBS
=`echo "$LIBS" | sed "s!$gl_save_LIBS!!"`
20355 # Test whether the system declares getloadavg. Solaris has the function
20356 # but declares it in <sys/loadavg.h>, not <stdlib.h>.
20357 for ac_header
in sys
/loadavg.h
20359 ac_fn_c_check_header_mongrel
"$LINENO" "sys/loadavg.h" "ac_cv_header_sys_loadavg_h" "$ac_includes_default"
20360 if test "x$ac_cv_header_sys_loadavg_h" = x
""yes; then :
20361 cat >>confdefs.h
<<_ACEOF
20362 #define HAVE_SYS_LOADAVG_H 1
20369 if test $ac_cv_header_sys_loadavg_h = yes; then
20370 HAVE_SYS_LOADAVG_H
=1
20372 HAVE_SYS_LOADAVG_H
=0
20374 ac_fn_c_check_decl
"$LINENO" "getloadavg" "ac_cv_have_decl_getloadavg" "#if HAVE_SYS_LOADAVG_H
20375 # include <sys/loadavg.h>
20377 #include <stdlib.h>
20379 if test "x$ac_cv_have_decl_getloadavg" = x
""yes; then :
20382 HAVE_DECL_GETLOADAVG
=0
20386 if test $HAVE_GETLOADAVG = 0; then
20395 gl_LIBOBJS
="$gl_LIBOBJS getloadavg.$ac_objext"
20398 # Figure out what our getloadavg.c needs.
20400 # On HPUX9, an unprivileged user can get load averages this way.
20401 if test $gl_func_getloadavg_done = no
; then
20402 for ac_func
in pstat_getdynamic
20404 ac_fn_c_check_func
"$LINENO" "pstat_getdynamic" "ac_cv_func_pstat_getdynamic"
20405 if test "x$ac_cv_func_pstat_getdynamic" = x
""yes; then :
20406 cat >>confdefs.h
<<_ACEOF
20407 #define HAVE_PSTAT_GETDYNAMIC 1
20409 gl_func_getloadavg_done
=yes
20415 # We cannot check for <dwarf.h>, because Solaris 2 does not use dwarf (it
20416 # uses stabs), but it is still SVR4. We cannot check for <elf.h> because
20417 # Irix 4.0.5F has the header but not the library.
20418 if test $gl_func_getloadavg_done = no
&& test "$ac_cv_lib_elf_elf_begin" = yes \
20419 && test "$ac_cv_lib_kvm_kvm_open" = yes; then
20420 gl_func_getloadavg_done
=yes
20422 $as_echo "#define SVR4 1" >>confdefs.h
20426 if test $gl_func_getloadavg_done = no
; then
20427 ac_fn_c_check_header_mongrel
"$LINENO" "inq_stats/cpustats.h" "ac_cv_header_inq_stats_cpustats_h" "$ac_includes_default"
20428 if test "x$ac_cv_header_inq_stats_cpustats_h" = x
""yes; then :
20429 gl_func_getloadavg_done
=yes
20431 $as_echo "#define UMAX 1" >>confdefs.h
20434 $as_echo "#define UMAX4_3 1" >>confdefs.h
20441 if test $gl_func_getloadavg_done = no
; then
20442 ac_fn_c_check_header_mongrel
"$LINENO" "sys/cpustats.h" "ac_cv_header_sys_cpustats_h" "$ac_includes_default"
20443 if test "x$ac_cv_header_sys_cpustats_h" = x
""yes; then :
20444 gl_func_getloadavg_done
=yes; $as_echo "#define UMAX 1" >>confdefs.h
20451 if test $gl_func_getloadavg_done = no
; then
20452 for ac_header
in mach
/mach.h
20454 ac_fn_c_check_header_mongrel
"$LINENO" "mach/mach.h" "ac_cv_header_mach_mach_h" "$ac_includes_default"
20455 if test "x$ac_cv_header_mach_mach_h" = x
""yes; then :
20456 cat >>confdefs.h
<<_ACEOF
20457 #define HAVE_MACH_MACH_H 1
20466 for ac_header
in nlist.h
20468 ac_fn_c_check_header_mongrel
"$LINENO" "nlist.h" "ac_cv_header_nlist_h" "$ac_includes_default"
20469 if test "x$ac_cv_header_nlist_h" = x
""yes; then :
20470 cat >>confdefs.h
<<_ACEOF
20471 #define HAVE_NLIST_H 1
20473 ac_fn_c_check_member
"$LINENO" "struct nlist" "n_un.n_name" "ac_cv_member_struct_nlist_n_un_n_name" "#include <nlist.h>
20475 if test "x$ac_cv_member_struct_nlist_n_un_n_name" = x
""yes; then :
20477 cat >>confdefs.h
<<_ACEOF
20478 #define HAVE_STRUCT_NLIST_N_UN_N_NAME 1
20484 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
20485 /* end confdefs.h. */
20491 #ifdef HAVE_STRUCT_NLIST_N_UN_N_NAME
20492 x.n_un.n_name = "";
20500 if ac_fn_c_try_link
"$LINENO"; then :
20502 $as_echo "#define N_NAME_POINTER 1" >>confdefs.h
20505 rm -f core conftest.err conftest.
$ac_objext \
20506 conftest
$ac_exeext conftest.
$ac_ext
20518 GNULIB_GETLOADAVG
=1
20529 if test $REPLACE_GETOPT = 1; then
20538 gl_LIBOBJS
="$gl_LIBOBJS getopt.$ac_objext"
20548 gl_LIBOBJS
="$gl_LIBOBJS getopt1.$ac_objext"
20562 if test -n "$gl_replace_getopt"; then :
20569 if test $REPLACE_GETOPT = 1; then
20573 $as_echo "#define __GETOPT_PREFIX rpl_" >>confdefs.h
20577 GNULIB_UNISTD_H_GETOPT
=1
20580 if test $REPLACE_GETOPT = 1; then
20589 gl_LIBOBJS
="$gl_LIBOBJS getopt.$ac_objext"
20599 gl_LIBOBJS
="$gl_LIBOBJS getopt1.$ac_objext"
20610 if test $ac_cv_func_lstat = yes; then
20612 if test $gl_cv_func_lstat_dereferences_slashed_symlink = no
; then
20619 if test $REPLACE_LSTAT = 1; then
20628 gl_LIBOBJS
="$gl_LIBOBJS lstat.$ac_objext"
20652 if test $APPLE_UNIVERSAL_BUILD = 1; then
20653 # A universal build on Apple MacOS X platforms.
20654 # The test result would be 'yes' in 32-bit mode and 'no' in 64-bit mode.
20655 # But we need a configuration result that is valid in both modes.
20656 gl_cv_func_working_mktime
=no
20658 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working mktime" >&5
20659 $as_echo_n "checking for working mktime... " >&6; }
20660 if test "${gl_cv_func_working_mktime+set}" = set; then :
20661 $as_echo_n "(cached) " >&6
20663 if test "$cross_compiling" = yes; then :
20664 gl_cv_func_working_mktime
=no
20666 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
20667 /* end confdefs.h. */
20668 /* Test program from Paul Eggert and Tony Leneis. */
20669 #include <limits.h>
20670 #include <stdlib.h>
20673 #ifdef HAVE_UNISTD_H
20674 # include <unistd.h>
20678 # define alarm(X) /* empty */
20681 /* Work around redefinition to rpl_putenv by other config tests. */
20684 static time_t time_t_max;
20685 static time_t time_t_min;
20687 /* Values we'll use to set the TZ environment variable. */
20688 static char *tz_strings[] = {
20689 (char *) 0, "TZ=GMT0", "TZ=JST-9",
20690 "TZ=EST+3EDT+2,M10.1.0/00:00:00,M2.3.0/00:00:00"
20692 #define N_STRINGS (sizeof (tz_strings) / sizeof (tz_strings[0]))
20694 /* Return 0 if mktime fails to convert a date in the spring-forward gap.
20695 Based on a problem report from Andreas Jaeger. */
20697 spring_forward_gap ()
20699 /* glibc (up to about 1998-10-07) failed this test. */
20702 /* Use the portable POSIX.1 specification "TZ=PST8PDT,M4.1.0,M10.5.0"
20703 instead of "TZ=America/Vancouver" in order to detect the bug even
20704 on systems that don't support the Olson extension, or don't have the
20705 full zoneinfo tables installed. */
20706 putenv ("TZ=PST8PDT,M4.1.0,M10.5.0");
20715 return mktime (&tm) != (time_t) -1;
20719 mktime_test1 (time_t now)
20722 return ! (lt = localtime (&now)) || mktime (lt) == now;
20726 mktime_test (time_t now)
20728 return (mktime_test1 (now)
20729 && mktime_test1 ((time_t) (time_t_max - now))
20730 && mktime_test1 ((time_t) (time_t_min + now)));
20736 /* Based on code from Ariel Faigon. */
20746 return tm.tm_mon == 2 && tm.tm_mday == 31;
20750 bigtime_test (int j)
20754 tm.tm_year = tm.tm_mon = tm.tm_mday = tm.tm_hour = tm.tm_min = tm.tm_sec = j;
20755 now = mktime (&tm);
20756 if (now != (time_t) -1)
20758 struct tm *lt = localtime (&now);
20760 && lt->tm_year == tm.tm_year
20761 && lt->tm_mon == tm.tm_mon
20762 && lt->tm_mday == tm.tm_mday
20763 && lt->tm_hour == tm.tm_hour
20764 && lt->tm_min == tm.tm_min
20765 && lt->tm_sec == tm.tm_sec
20766 && lt->tm_yday == tm.tm_yday
20767 && lt->tm_wday == tm.tm_wday
20768 && ((lt->tm_isdst < 0 ? -1 : 0 < lt->tm_isdst)
20769 == (tm.tm_isdst < 0 ? -1 : 0 < tm.tm_isdst))))
20778 /* The correct answer for 2050-02-01 00:00:00 in Pacific time,
20779 ignoring leap seconds. */
20780 unsigned long int answer = 2527315200UL;
20784 tm.tm_year = 2050 - 1900;
20787 tm.tm_hour = tm.tm_min = tm.tm_sec = 0;
20790 /* Use the portable POSIX.1 specification "TZ=PST8PDT,M4.1.0,M10.5.0"
20791 instead of "TZ=America/Vancouver" in order to detect the bug even
20792 on systems that don't support the Olson extension, or don't have the
20793 full zoneinfo tables installed. */
20794 putenv ("TZ=PST8PDT,M4.1.0,M10.5.0");
20798 /* Check that the result is either a failure, or close enough
20799 to the correct answer that we can assume the discrepancy is
20800 due to leap seconds. */
20801 return (t == (time_t) -1
20802 || (0 < t && answer - 120 <= t && t <= answer + 120));
20811 int time_t_signed_magnitude = (time_t) ~ (time_t) 0 < (time_t) -1;
20812 int time_t_signed = ! ((time_t) 0 < (time_t) -1);
20814 /* This test makes some buggy mktime implementations loop.
20815 Give up after 60 seconds; a mktime slower than that
20816 isn't worth using anyway. */
20819 time_t_max = (! time_t_signed
20821 : ((((time_t) 1 << (sizeof (time_t) * CHAR_BIT - 2)) - 1)
20823 time_t_min = (! time_t_signed
20825 : time_t_signed_magnitude
20829 delta = time_t_max / 997; /* a suitable prime number */
20830 for (i = 0; i < N_STRINGS; i++)
20833 putenv (tz_strings[i]);
20835 for (t = 0; t <= time_t_max - delta; t += delta)
20836 if (! mktime_test (t))
20838 if (! (mktime_test ((time_t) 1)
20839 && mktime_test ((time_t) (60 * 60))
20840 && mktime_test ((time_t) (60 * 60 * 24))))
20843 for (j = 1; ; j <<= 1)
20844 if (! bigtime_test (j))
20846 else if (INT_MAX / 2 < j)
20848 if (! bigtime_test (INT_MAX))
20851 if (! irix_6_4_bug ())
20853 if (! spring_forward_gap ())
20855 if (! year_2050_test ())
20860 if ac_fn_c_try_run
"$LINENO"; then :
20861 gl_cv_func_working_mktime
=yes
20863 gl_cv_func_working_mktime
=no
20865 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
20866 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
20871 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_working_mktime" >&5
20872 $as_echo "$gl_cv_func_working_mktime" >&6; }
20874 if test $gl_cv_func_working_mktime = no
; then
20880 if test $REPLACE_MKTIME = 1; then
20889 gl_LIBOBJS
="$gl_LIBOBJS mktime.$ac_objext"
20909 LIB_PTHREAD_SIGMASK
=
20912 if test $ac_cv_func_pthread_sigmask = yes; then
20915 HAVE_PTHREAD_SIGMASK
=0
20916 REPLACE_PTHREAD_SIGMASK
=1
20922 if test $HAVE_PTHREAD_SIGMASK = 1; then
20925 if test -z "$LIB_PTHREAD_SIGMASK"; then
20926 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether pthread_sigmask works without -lpthread" >&5
20927 $as_echo_n "checking whether pthread_sigmask works without -lpthread... " >&6; }
20928 if test "${gl_cv_func_pthread_sigmask_in_libc_works+set}" = set; then :
20929 $as_echo_n "(cached) " >&6
20932 if test "$cross_compiling" = yes; then :
20935 freebsd
* | hpux
* | solaris | solaris2.
[2-9]*)
20936 gl_cv_func_pthread_sigmask_in_libc_works
="guessing no";;
20938 gl_cv_func_pthread_sigmask_in_libc_works
="guessing yes";;
20942 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
20943 /* end confdefs.h. */
20945 #include <pthread.h>
20946 #include <signal.h>
20947 #include <stddef.h>
20951 sigemptyset (&set);
20952 return pthread_sigmask (1729, &set, NULL) != 0;
20955 if ac_fn_c_try_run
"$LINENO"; then :
20956 gl_cv_func_pthread_sigmask_in_libc_works
=no
20958 gl_cv_func_pthread_sigmask_in_libc_works
=yes
20960 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
20961 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
20966 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_pthread_sigmask_in_libc_works" >&5
20967 $as_echo "$gl_cv_func_pthread_sigmask_in_libc_works" >&6; }
20968 case "$gl_cv_func_pthread_sigmask_in_libc_works" in
20970 REPLACE_PTHREAD_SIGMASK
=1
20972 $as_echo "#define PTHREAD_SIGMASK_INEFFECTIVE 1" >>confdefs.h
20978 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether pthread_sigmask returns error numbers" >&5
20979 $as_echo_n "checking whether pthread_sigmask returns error numbers... " >&6; }
20980 if test "${gl_cv_func_pthread_sigmask_return_works+set}" = set; then :
20981 $as_echo_n "(cached) " >&6
20984 gl_save_LIBS
="$LIBS"
20985 LIBS
="$LIBS $LIB_PTHREAD_SIGMASK"
20986 if test "$cross_compiling" = yes; then :
20989 gl_cv_func_pthread_sigmask_return_works
="guessing no";;
20991 gl_cv_func_pthread_sigmask_return_works
="guessing yes";;
20995 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
20996 /* end confdefs.h. */
20998 #include <pthread.h>
20999 #include <signal.h>
21000 #include <stddef.h>
21004 sigemptyset (&set);
21005 if (pthread_sigmask (1729, &set, NULL) == -1)
21010 if ac_fn_c_try_run
"$LINENO"; then :
21011 gl_cv_func_pthread_sigmask_return_works
=yes
21013 gl_cv_func_pthread_sigmask_return_works
=no
21015 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
21016 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
21019 LIBS
="$gl_save_LIBS"
21022 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_pthread_sigmask_return_works" >&5
21023 $as_echo "$gl_cv_func_pthread_sigmask_return_works" >&6; }
21024 case "$gl_cv_func_pthread_sigmask_return_works" in
21026 REPLACE_PTHREAD_SIGMASK
=1
21028 $as_echo "#define PTHREAD_SIGMASK_FAILS_WITH_ERRNO 1" >>confdefs.h
21033 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether pthread_sigmask unblocks signals correctly" >&5
21034 $as_echo_n "checking whether pthread_sigmask unblocks signals correctly... " >&6; }
21035 if test "${gl_cv_func_pthread_sigmask_unblock_works+set}" = set; then :
21036 $as_echo_n "(cached) " >&6
21041 gl_cv_func_pthread_sigmask_unblock_works
="guessing no";;
21043 gl_cv_func_pthread_sigmask_unblock_works
="guessing yes";;
21045 gl_save_LIBS
="$LIBS"
21046 LIBS
="$LIBS $LIBMULTITHREAD"
21047 if test "$cross_compiling" = yes; then :
21050 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
21051 /* end confdefs.h. */
21053 #include <pthread.h>
21054 #include <signal.h>
21056 #include <stdlib.h>
21057 #include <unistd.h>
21058 static volatile int sigint_occurred;
21060 sigint_handler (int sig)
21067 int pid = getpid ();
21069 signal (SIGINT, sigint_handler);
21070 sigemptyset (&set);
21071 sigaddset (&set, SIGINT);
21072 if (!(pthread_sigmask (SIG_BLOCK, &set, NULL) == 0))
21074 sprintf (command, "sh -c 'sleep 1; kill -%d %d' &", SIGINT, pid);
21075 if (!(system (command) == 0))
21078 if (!(sigint_occurred == 0))
21080 if (!(pthread_sigmask (SIG_UNBLOCK, &set, NULL) == 0))
21082 if (!(sigint_occurred == 1)) /* This fails on IRIX. */
21087 if ac_fn_c_try_run
"$LINENO"; then :
21090 gl_cv_func_pthread_sigmask_unblock_works
=no
21092 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
21093 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
21096 LIBS
="$gl_save_LIBS"
21099 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_pthread_sigmask_unblock_works" >&5
21100 $as_echo "$gl_cv_func_pthread_sigmask_unblock_works" >&6; }
21101 case "$gl_cv_func_pthread_sigmask_unblock_works" in
21103 REPLACE_PTHREAD_SIGMASK
=1
21105 $as_echo "#define PTHREAD_SIGMASK_UNBLOCK_BUG 1" >>confdefs.h
21111 if test $HAVE_PTHREAD_SIGMASK = 0 ||
test $REPLACE_PTHREAD_SIGMASK = 1; then
21120 gl_LIBOBJS
="$gl_LIBOBJS pthread_sigmask.$ac_objext"
21123 if test $HAVE_PTHREAD_SIGMASK = 1; then
21125 $as_echo "#define HAVE_PTHREAD_SIGMASK 1" >>confdefs.h
21135 GNULIB_PTHREAD_SIGMASK
=1
21144 if test $ac_cv_func_readlink = no
; then
21147 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether readlink signature is correct" >&5
21148 $as_echo_n "checking whether readlink signature is correct... " >&6; }
21149 if test "${gl_cv_decl_readlink_works+set}" = set; then :
21150 $as_echo_n "(cached) " >&6
21152 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
21153 /* end confdefs.h. */
21154 #include <unistd.h>
21155 /* Cause compilation failure if original declaration has wrong type. */
21156 ssize_t readlink (const char *, char *, size_t);
21165 if ac_fn_c_try_compile
"$LINENO"; then :
21166 gl_cv_decl_readlink_works
=yes
21168 gl_cv_decl_readlink_works
=no
21170 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
21172 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_decl_readlink_works" >&5
21173 $as_echo "$gl_cv_decl_readlink_works" >&6; }
21174 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether readlink handles trailing slash correctly" >&5
21175 $as_echo_n "checking whether readlink handles trailing slash correctly... " >&6; }
21176 if test "${gl_cv_func_readlink_works+set}" = set; then :
21177 $as_echo_n "(cached) " >&6
21179 # We have readlink, so assume ln -s works.
21180 ln -s conftest.no-such conftest.link
21181 ln -s conftest.link conftest.lnk2
21182 if test "$cross_compiling" = yes; then :
21183 gl_cv_func_readlink_works
="guessing no"
21185 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
21186 /* end confdefs.h. */
21187 #include <unistd.h>
21193 return readlink ("conftest.lnk2/", buf, sizeof buf) != -1;
21198 if ac_fn_c_try_run
"$LINENO"; then :
21199 gl_cv_func_readlink_works
=yes
21201 gl_cv_func_readlink_works
=no
21203 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
21204 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
21207 rm -f conftest.link conftest.lnk2
21209 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_readlink_works" >&5
21210 $as_echo "$gl_cv_func_readlink_works" >&6; }
21211 if test "$gl_cv_func_readlink_works" != yes; then
21213 $as_echo "#define READLINK_TRAILING_SLASH_BUG 1" >>confdefs.h
21216 elif test "$gl_cv_decl_readlink_works" != yes; then
21221 if test $HAVE_READLINK = 0 ||
test $REPLACE_READLINK = 1; then
21230 gl_LIBOBJS
="$gl_LIBOBJS readlink.$ac_objext"
21258 if test $gl_cv_have_include_next = yes; then
21259 gl_cv_next_signal_h
='<'signal.h
'>'
21261 { $as_echo "$as_me:${as_lineno-$LINENO}: checking absolute name of <signal.h>" >&5
21262 $as_echo_n "checking absolute name of <signal.h>... " >&6; }
21263 if test "${gl_cv_next_signal_h+set}" = set; then :
21264 $as_echo_n "(cached) " >&6
21267 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
21268 /* end confdefs.h. */
21269 #include <signal.h>
21273 aix
*) gl_absname_cpp
="$ac_cpp -C" ;;
21274 *) gl_absname_cpp
="$ac_cpp" ;;
21279 gl_dirsep_regex
='[/\\]'
21282 gl_dirsep_regex
='/'
21286 gl_absolute_header_sed
='\|'"${gl_dirsep_regex}"'signal.h|{
21287 s|.*"\(.*'"${gl_dirsep_regex}"'signal.h\)".*|\1|
21292 gl_cv_next_signal_h
='"'`(eval "$gl_absname_cpp conftest.$ac_ext") 2>&5 |
21293 sed -n "$gl_absolute_header_sed"`'"'
21297 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_next_signal_h" >&5
21298 $as_echo "$gl_cv_next_signal_h" >&6; }
21300 NEXT_SIGNAL_H
=$gl_cv_next_signal_h
21302 if test $gl_cv_have_include_next = yes ||
test $gl_cv_have_include_next = buggy
; then
21303 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include_next'
21304 gl_next_as_first_directive
='<'signal.h
'>'
21306 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include'
21307 gl_next_as_first_directive
=$gl_cv_next_signal_h
21309 NEXT_AS_FIRST_DIRECTIVE_SIGNAL_H
=$gl_next_as_first_directive
21315 # AIX declares sig_atomic_t to already include volatile, and C89 compilers
21316 # then choke on 'volatile sig_atomic_t'. C99 requires that it compile.
21317 ac_fn_c_check_type
"$LINENO" "volatile sig_atomic_t" "ac_cv_type_volatile_sig_atomic_t" "
21318 #include <signal.h>
21321 if test "x$ac_cv_type_volatile_sig_atomic_t" = x
""yes; then :
21324 HAVE_TYPE_VOLATILE_SIG_ATOMIC_T
=0
21333 ac_fn_c_check_type
"$LINENO" "sighandler_t" "ac_cv_type_sighandler_t" "
21334 #include <signal.h>
21337 if test "x$ac_cv_type_sighandler_t" = x
""yes; then :
21340 HAVE_SIGHANDLER_T
=0
21346 ac_fn_c_check_type
"$LINENO" "socklen_t" "ac_cv_type_socklen_t" "
21347 /* <sys/types.h> is not needed according to POSIX, but the
21348 <sys/socket.h> in i386-unknown-freebsd4.10 and
21349 powerpc-apple-darwin5.5 required it. */
21350 #include <sys/types.h>
21351 #if HAVE_SYS_SOCKET_H
21352 # include <sys/socket.h>
21353 #elif HAVE_WS2TCPIP_H
21354 # include <ws2tcpip.h>
21358 if test "x$ac_cv_type_socklen_t" = x
""yes; then :
21361 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for socklen_t equivalent" >&5
21362 $as_echo_n "checking for socklen_t equivalent... " >&6; }
21363 if test "${gl_cv_socklen_t_equiv+set}" = set; then :
21364 $as_echo_n "(cached) " >&6
21366 # Systems have either "struct sockaddr *" or
21367 # "void *" as the second argument to getpeername
21368 gl_cv_socklen_t_equiv
=
21369 for arg2
in "struct sockaddr" void
; do
21370 for t
in int size_t
"unsigned int" "long int" "unsigned long int"; do
21371 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
21372 /* end confdefs.h. */
21373 #include <sys/types.h>
21374 #include <sys/socket.h>
21376 int getpeername (int, $arg2 *, $t *);
21381 getpeername (0, 0, &len);
21386 if ac_fn_c_try_compile
"$LINENO"; then :
21387 gl_cv_socklen_t_equiv
="$t"
21389 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
21390 test "$gl_cv_socklen_t_equiv" != "" && break
21392 test "$gl_cv_socklen_t_equiv" != "" && break
21397 if test "$gl_cv_socklen_t_equiv" = ""; then
21398 as_fn_error
"Cannot find a type to use in place of socklen_t" "$LINENO" 5
21400 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_socklen_t_equiv" >&5
21401 $as_echo "$gl_cv_socklen_t_equiv" >&6; }
21403 cat >>confdefs.h
<<_ACEOF
21404 #define socklen_t $gl_cv_socklen_t_equiv
21410 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ssize_t" >&5
21411 $as_echo_n "checking for ssize_t... " >&6; }
21412 if test "${gt_cv_ssize_t+set}" = set; then :
21413 $as_echo_n "(cached) " >&6
21415 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
21416 /* end confdefs.h. */
21417 #include <sys/types.h>
21421 int x = sizeof (ssize_t *) + sizeof (ssize_t);
21427 if ac_fn_c_try_compile
"$LINENO"; then :
21432 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
21434 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_ssize_t" >&5
21435 $as_echo "$gt_cv_ssize_t" >&6; }
21436 if test $gt_cv_ssize_t = no
; then
21438 $as_echo "#define ssize_t int" >>confdefs.h
21444 NEXT_STDARG_H
='<stdarg.h>'
21445 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for va_copy" >&5
21446 $as_echo_n "checking for va_copy... " >&6; }
21447 if test "${gl_cv_func_va_copy+set}" = set; then :
21448 $as_echo_n "(cached) " >&6
21451 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
21452 /* end confdefs.h. */
21453 #include <stdarg.h>
21459 void (*func) (va_list, va_list) = va_copy;
21466 if ac_fn_c_try_compile
"$LINENO"; then :
21467 gl_cv_func_va_copy
=yes
21469 gl_cv_func_va_copy
=no
21471 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
21474 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_va_copy" >&5
21475 $as_echo "$gl_cv_func_va_copy" >&6; }
21476 if test $gl_cv_func_va_copy = no
; then
21477 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
21478 /* end confdefs.h. */
21479 #if defined _AIX && !defined __GNUC__
21484 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
21485 $EGREP "vaccine" >/dev
/null
2>&1; then :
21492 if test $gl_aixcc = yes; then
21502 if test $gl_cv_have_include_next = yes; then
21503 gl_cv_next_stdarg_h
='<'stdarg.h
'>'
21505 { $as_echo "$as_me:${as_lineno-$LINENO}: checking absolute name of <stdarg.h>" >&5
21506 $as_echo_n "checking absolute name of <stdarg.h>... " >&6; }
21507 if test "${gl_cv_next_stdarg_h+set}" = set; then :
21508 $as_echo_n "(cached) " >&6
21511 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
21512 /* end confdefs.h. */
21513 #include <stdarg.h>
21517 aix
*) gl_absname_cpp
="$ac_cpp -C" ;;
21518 *) gl_absname_cpp
="$ac_cpp" ;;
21523 gl_dirsep_regex
='[/\\]'
21526 gl_dirsep_regex
='/'
21530 gl_absolute_header_sed
='\|'"${gl_dirsep_regex}"'stdarg.h|{
21531 s|.*"\(.*'"${gl_dirsep_regex}"'stdarg.h\)".*|\1|
21536 gl_cv_next_stdarg_h
='"'`(eval "$gl_absname_cpp conftest.$ac_ext") 2>&5 |
21537 sed -n "$gl_absolute_header_sed"`'"'
21541 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_next_stdarg_h" >&5
21542 $as_echo "$gl_cv_next_stdarg_h" >&6; }
21544 NEXT_STDARG_H
=$gl_cv_next_stdarg_h
21546 if test $gl_cv_have_include_next = yes ||
test $gl_cv_have_include_next = buggy
; then
21547 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include_next'
21548 gl_next_as_first_directive
='<'stdarg.h
'>'
21550 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include'
21551 gl_next_as_first_directive
=$gl_cv_next_stdarg_h
21553 NEXT_AS_FIRST_DIRECTIVE_STDARG_H
=$gl_next_as_first_directive
21558 if test "$gl_cv_next_stdarg_h" = '""'; then
21559 gl_cv_next_stdarg_h
='"///usr/include/stdarg.h"'
21560 NEXT_STDARG_H
="$gl_cv_next_stdarg_h"
21564 saved_as_echo_n
="$as_echo_n"
21566 if test "${gl_cv_func___va_copy+set}" = set; then :
21567 $as_echo_n "(cached) " >&6
21570 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
21571 /* end confdefs.h. */
21572 #include <stdarg.h>
21585 if ac_fn_c_try_compile
"$LINENO"; then :
21586 gl_cv_func___va_copy
=yes
21588 gl_cv_func___va_copy
=no
21590 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
21593 as_echo_n
="$saved_as_echo_n"
21595 if test $gl_cv_func___va_copy = yes; then
21597 $as_echo "#define va_copy __va_copy" >>confdefs.h
21602 $as_echo "#define va_copy gl_va_copy" >>confdefs.h
21608 if test -n "$STDARG_H"; then
21609 GL_GENERATE_STDARG_H_TRUE
=
21610 GL_GENERATE_STDARG_H_FALSE
='#'
21612 GL_GENERATE_STDARG_H_TRUE
='#'
21613 GL_GENERATE_STDARG_H_FALSE
=
21621 # Define two additional variables used in the Makefile substitution.
21623 if test "$ac_cv_header_stdbool_h" = yes; then
21626 STDBOOL_H
='stdbool.h'
21629 if test -n "$STDBOOL_H"; then
21630 GL_GENERATE_STDBOOL_H_TRUE
=
21631 GL_GENERATE_STDBOOL_H_FALSE
='#'
21633 GL_GENERATE_STDBOOL_H_TRUE
='#'
21634 GL_GENERATE_STDBOOL_H_FALSE
=
21638 if test "$ac_cv_type__Bool" = yes; then
21649 if test $gt_cv_c_wchar_t = no
; then
21653 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether NULL can be used in arbitrary expressions" >&5
21654 $as_echo_n "checking whether NULL can be used in arbitrary expressions... " >&6; }
21655 if test "${gl_cv_decl_null_works+set}" = set; then :
21656 $as_echo_n "(cached) " >&6
21658 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
21659 /* end confdefs.h. */
21660 #include <stddef.h>
21661 int test[2 * (sizeof NULL == sizeof (void *)) -1];
21671 if ac_fn_c_try_compile
"$LINENO"; then :
21672 gl_cv_decl_null_works
=yes
21674 gl_cv_decl_null_works
=no
21676 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
21678 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_decl_null_works" >&5
21679 $as_echo "$gl_cv_decl_null_works" >&6; }
21680 if test $gl_cv_decl_null_works = no
; then
21685 if test -n "$STDDEF_H"; then
21686 GL_GENERATE_STDDEF_H_TRUE
=
21687 GL_GENERATE_STDDEF_H_FALSE
='#'
21689 GL_GENERATE_STDDEF_H_TRUE
='#'
21690 GL_GENERATE_STDDEF_H_FALSE
=
21693 if test -n "$STDDEF_H"; then
21702 if test $gl_cv_have_include_next = yes; then
21703 gl_cv_next_stddef_h
='<'stddef.h
'>'
21705 { $as_echo "$as_me:${as_lineno-$LINENO}: checking absolute name of <stddef.h>" >&5
21706 $as_echo_n "checking absolute name of <stddef.h>... " >&6; }
21707 if test "${gl_cv_next_stddef_h+set}" = set; then :
21708 $as_echo_n "(cached) " >&6
21711 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
21712 /* end confdefs.h. */
21713 #include <stddef.h>
21717 aix
*) gl_absname_cpp
="$ac_cpp -C" ;;
21718 *) gl_absname_cpp
="$ac_cpp" ;;
21723 gl_dirsep_regex
='[/\\]'
21726 gl_dirsep_regex
='/'
21730 gl_absolute_header_sed
='\|'"${gl_dirsep_regex}"'stddef.h|{
21731 s|.*"\(.*'"${gl_dirsep_regex}"'stddef.h\)".*|\1|
21736 gl_cv_next_stddef_h
='"'`(eval "$gl_absname_cpp conftest.$ac_ext") 2>&5 |
21737 sed -n "$gl_absolute_header_sed"`'"'
21741 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_next_stddef_h" >&5
21742 $as_echo "$gl_cv_next_stddef_h" >&6; }
21744 NEXT_STDDEF_H
=$gl_cv_next_stddef_h
21746 if test $gl_cv_have_include_next = yes ||
test $gl_cv_have_include_next = buggy
; then
21747 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include_next'
21748 gl_next_as_first_directive
='<'stddef.h
'>'
21750 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include'
21751 gl_next_as_first_directive
=$gl_cv_next_stddef_h
21753 NEXT_AS_FIRST_DIRECTIVE_STDDEF_H
=$gl_next_as_first_directive
21772 if test $gl_cv_have_include_next = yes; then
21773 gl_cv_next_stdio_h
='<'stdio.h
'>'
21775 { $as_echo "$as_me:${as_lineno-$LINENO}: checking absolute name of <stdio.h>" >&5
21776 $as_echo_n "checking absolute name of <stdio.h>... " >&6; }
21777 if test "${gl_cv_next_stdio_h+set}" = set; then :
21778 $as_echo_n "(cached) " >&6
21781 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
21782 /* end confdefs.h. */
21787 aix
*) gl_absname_cpp
="$ac_cpp -C" ;;
21788 *) gl_absname_cpp
="$ac_cpp" ;;
21793 gl_dirsep_regex
='[/\\]'
21796 gl_dirsep_regex
='/'
21800 gl_absolute_header_sed
='\|'"${gl_dirsep_regex}"'stdio.h|{
21801 s|.*"\(.*'"${gl_dirsep_regex}"'stdio.h\)".*|\1|
21806 gl_cv_next_stdio_h
='"'`(eval "$gl_absname_cpp conftest.$ac_ext") 2>&5 |
21807 sed -n "$gl_absolute_header_sed"`'"'
21811 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_next_stdio_h" >&5
21812 $as_echo "$gl_cv_next_stdio_h" >&6; }
21814 NEXT_STDIO_H
=$gl_cv_next_stdio_h
21816 if test $gl_cv_have_include_next = yes ||
test $gl_cv_have_include_next = buggy
; then
21817 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include_next'
21818 gl_next_as_first_directive
='<'stdio.h
'>'
21820 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include'
21821 gl_next_as_first_directive
=$gl_cv_next_stdio_h
21823 NEXT_AS_FIRST_DIRECTIVE_STDIO_H
=$gl_next_as_first_directive
21864 if test $gl_cv_have_include_next = yes; then
21865 gl_cv_next_stdlib_h
='<'stdlib.h
'>'
21867 { $as_echo "$as_me:${as_lineno-$LINENO}: checking absolute name of <stdlib.h>" >&5
21868 $as_echo_n "checking absolute name of <stdlib.h>... " >&6; }
21869 if test "${gl_cv_next_stdlib_h+set}" = set; then :
21870 $as_echo_n "(cached) " >&6
21873 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
21874 /* end confdefs.h. */
21875 #include <stdlib.h>
21879 aix
*) gl_absname_cpp
="$ac_cpp -C" ;;
21880 *) gl_absname_cpp
="$ac_cpp" ;;
21885 gl_dirsep_regex
='[/\\]'
21888 gl_dirsep_regex
='/'
21892 gl_absolute_header_sed
='\|'"${gl_dirsep_regex}"'stdlib.h|{
21893 s|.*"\(.*'"${gl_dirsep_regex}"'stdlib.h\)".*|\1|
21898 gl_cv_next_stdlib_h
='"'`(eval "$gl_absname_cpp conftest.$ac_ext") 2>&5 |
21899 sed -n "$gl_absolute_header_sed"`'"'
21903 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_next_stdlib_h" >&5
21904 $as_echo "$gl_cv_next_stdlib_h" >&6; }
21906 NEXT_STDLIB_H
=$gl_cv_next_stdlib_h
21908 if test $gl_cv_have_include_next = yes ||
test $gl_cv_have_include_next = buggy
; then
21909 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include_next'
21910 gl_next_as_first_directive
='<'stdlib.h
'>'
21912 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include'
21913 gl_next_as_first_directive
=$gl_cv_next_stdlib_h
21915 NEXT_AS_FIRST_DIRECTIVE_STDLIB_H
=$gl_next_as_first_directive
21925 # This defines (or not) HAVE_TZNAME and HAVE_TM_ZONE.
21933 $as_echo "#define my_strftime nstrftime" >>confdefs.h
21942 if test "$ac_cv_have_decl_strtoimax" != yes; then
21943 HAVE_DECL_STRTOIMAX
=0
21946 if test $ac_cv_func_strtoimax = no
; then
21955 gl_LIBOBJS
="$gl_LIBOBJS strtoimax.$ac_objext"
21958 ac_fn_c_check_decl
"$LINENO" "strtoll" "ac_cv_have_decl_strtoll" "$ac_includes_default"
21959 if test "x$ac_cv_have_decl_strtoll" = x
""yes; then :
21965 cat >>confdefs.h
<<_ACEOF
21966 #define HAVE_DECL_STRTOLL $ac_have_decl
21987 if test "$ac_cv_have_decl_strtoumax" != yes; then
21988 HAVE_DECL_STRTOUMAX
=0
21991 if test $ac_cv_func_strtoumax = no
; then
22000 gl_LIBOBJS
="$gl_LIBOBJS strtoumax.$ac_objext"
22003 ac_fn_c_check_decl
"$LINENO" "strtoull" "ac_cv_have_decl_strtoull" "$ac_includes_default"
22004 if test "x$ac_cv_have_decl_strtoull" = x
""yes; then :
22010 cat >>confdefs.h
<<_ACEOF
22011 #define HAVE_DECL_STRTOULL $ac_have_decl
22030 if test $ac_cv_func_symlink = no
; then
22033 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether symlink handles trailing slash correctly" >&5
22034 $as_echo_n "checking whether symlink handles trailing slash correctly... " >&6; }
22035 if test "${gl_cv_func_symlink_works+set}" = set; then :
22036 $as_echo_n "(cached) " >&6
22038 if test "$cross_compiling" = yes; then :
22039 gl_cv_func_symlink_works
="guessing no"
22041 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
22042 /* end confdefs.h. */
22043 #include <unistd.h>
22049 if (!symlink ("a", "conftest.link/"))
22051 if (symlink ("conftest.f", "conftest.lnk2"))
22053 else if (!symlink ("a", "conftest.lnk2/"))
22061 if ac_fn_c_try_run
"$LINENO"; then :
22062 gl_cv_func_symlink_works
=yes
22064 gl_cv_func_symlink_works
=no
22066 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
22067 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
22070 rm -f conftest.f conftest.link conftest.lnk2
22072 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_symlink_works" >&5
22073 $as_echo "$gl_cv_func_symlink_works" >&6; }
22074 if test "$gl_cv_func_symlink_works" != yes; then
22079 if test $HAVE_SYMLINK = 0 ||
test $REPLACE_SYMLINK = 1; then
22088 gl_LIBOBJS
="$gl_LIBOBJS symlink.$ac_objext"
22118 if test $gl_cv_have_include_next = yes; then
22119 gl_cv_next_sys_stat_h
='<'sys
/stat.h
'>'
22121 { $as_echo "$as_me:${as_lineno-$LINENO}: checking absolute name of <sys/stat.h>" >&5
22122 $as_echo_n "checking absolute name of <sys/stat.h>... " >&6; }
22123 if test "${gl_cv_next_sys_stat_h+set}" = set; then :
22124 $as_echo_n "(cached) " >&6
22127 if test $ac_cv_header_sys_stat_h = yes; then
22130 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
22131 /* end confdefs.h. */
22132 #include <sys/stat.h>
22136 aix
*) gl_absname_cpp
="$ac_cpp -C" ;;
22137 *) gl_absname_cpp
="$ac_cpp" ;;
22142 gl_dirsep_regex
='[/\\]'
22145 gl_dirsep_regex
='/'
22149 gl_absolute_header_sed
='\|'"${gl_dirsep_regex}"'sys/stat.h|{
22150 s|.*"\(.*'"${gl_dirsep_regex}"'sys/stat.h\)".*|\1|
22155 gl_cv_next_sys_stat_h
='"'`(eval "$gl_absname_cpp conftest.$ac_ext") 2>&5 |
22156 sed -n "$gl_absolute_header_sed"`'"'
22158 gl_cv_next_sys_stat_h
='<'sys
/stat.h
'>'
22163 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_next_sys_stat_h" >&5
22164 $as_echo "$gl_cv_next_sys_stat_h" >&6; }
22166 NEXT_SYS_STAT_H
=$gl_cv_next_sys_stat_h
22168 if test $gl_cv_have_include_next = yes ||
test $gl_cv_have_include_next = buggy
; then
22169 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include_next'
22170 gl_next_as_first_directive
='<'sys
/stat.h
'>'
22172 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include'
22173 gl_next_as_first_directive
=$gl_cv_next_sys_stat_h
22175 NEXT_AS_FIRST_DIRECTIVE_SYS_STAT_H
=$gl_next_as_first_directive
22183 ac_fn_c_check_type
"$LINENO" "nlink_t" "ac_cv_type_nlink_t" "#include <sys/types.h>
22184 #include <sys/stat.h>
22186 if test "x$ac_cv_type_nlink_t" = x
""yes; then :
22190 $as_echo "#define nlink_t int" >>confdefs.h
22208 if test $ac_cv_have_decl_localtime_r = no
; then
22209 HAVE_DECL_LOCALTIME_R
=0
22213 if test $ac_cv_func_localtime_r = yes; then
22215 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether localtime_r is compatible with its POSIX signature" >&5
22216 $as_echo_n "checking whether localtime_r is compatible with its POSIX signature... " >&6; }
22217 if test "${gl_cv_time_r_posix+set}" = set; then :
22218 $as_echo_n "(cached) " >&6
22220 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
22221 /* end confdefs.h. */
22226 /* We don't need to append 'restrict's to the argument types,
22227 even though the POSIX signature has the 'restrict's,
22228 since C99 says they can't affect type compatibility. */
22229 struct tm * (*ptr) (time_t const *, struct tm *) = localtime_r;
22231 /* Check the return type is a pointer.
22232 On HP-UX 10 it is 'int'. */
22233 *localtime_r (0, 0);
22239 if ac_fn_c_try_compile
"$LINENO"; then :
22240 gl_cv_time_r_posix
=yes
22242 gl_cv_time_r_posix
=no
22244 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
22247 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_time_r_posix" >&5
22248 $as_echo "$gl_cv_time_r_posix" >&6; }
22249 if test $gl_cv_time_r_posix = yes; then
22250 REPLACE_LOCALTIME_R
=0
22252 REPLACE_LOCALTIME_R
=1
22258 if test $HAVE_LOCALTIME_R = 0 ||
test $REPLACE_LOCALTIME_R = 1; then
22267 gl_LIBOBJS
="$gl_LIBOBJS time_r.$ac_objext"
22298 if test $gl_cv_have_include_next = yes; then
22299 gl_cv_next_unistd_h
='<'unistd.h
'>'
22301 { $as_echo "$as_me:${as_lineno-$LINENO}: checking absolute name of <unistd.h>" >&5
22302 $as_echo_n "checking absolute name of <unistd.h>... " >&6; }
22303 if test "${gl_cv_next_unistd_h+set}" = set; then :
22304 $as_echo_n "(cached) " >&6
22307 if test $ac_cv_header_unistd_h = yes; then
22310 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
22311 /* end confdefs.h. */
22312 #include <unistd.h>
22316 aix
*) gl_absname_cpp
="$ac_cpp -C" ;;
22317 *) gl_absname_cpp
="$ac_cpp" ;;
22322 gl_dirsep_regex
='[/\\]'
22325 gl_dirsep_regex
='/'
22329 gl_absolute_header_sed
='\|'"${gl_dirsep_regex}"'unistd.h|{
22330 s|.*"\(.*'"${gl_dirsep_regex}"'unistd.h\)".*|\1|
22335 gl_cv_next_unistd_h
='"'`(eval "$gl_absname_cpp conftest.$ac_ext") 2>&5 |
22336 sed -n "$gl_absolute_header_sed"`'"'
22338 gl_cv_next_unistd_h
='<'unistd.h
'>'
22343 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_next_unistd_h" >&5
22344 $as_echo "$gl_cv_next_unistd_h" >&6; }
22346 NEXT_UNISTD_H
=$gl_cv_next_unistd_h
22348 if test $gl_cv_have_include_next = yes ||
test $gl_cv_have_include_next = buggy
; then
22349 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include_next'
22350 gl_next_as_first_directive
='<'unistd.h
'>'
22352 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include'
22353 gl_next_as_first_directive
=$gl_cv_next_unistd_h
22355 NEXT_AS_FIRST_DIRECTIVE_UNISTD_H
=$gl_next_as_first_directive
22360 if test $ac_cv_header_unistd_h = yes; then
22371 gl_gnulib_enabled_dosname
=false
22372 gl_gnulib_enabled_be453cec5eecf5731a274f2de7f2db36
=false
22373 gl_gnulib_enabled_pathmax
=false
22374 gl_gnulib_enabled_sigprocmask
=false
22375 gl_gnulib_enabled_stat
=false
22376 gl_gnulib_enabled_strtoll
=false
22377 gl_gnulib_enabled_strtoull
=false
22378 gl_gnulib_enabled_verify
=false
22379 func_gl_gnulib_m4code_dosname
()
22381 if ! $gl_gnulib_enabled_dosname; then
22382 gl_gnulib_enabled_dosname
=true
22385 func_gl_gnulib_m4code_be453cec5eecf5731a274f2de7f2db36
()
22387 if ! $gl_gnulib_enabled_be453cec5eecf5731a274f2de7f2db36; then
22390 gl_gnulib_enabled_be453cec5eecf5731a274f2de7f2db36
=true
22393 func_gl_gnulib_m4code_pathmax
()
22395 if ! $gl_gnulib_enabled_pathmax; then
22399 gl_gnulib_enabled_pathmax
=true
22402 func_gl_gnulib_m4code_sigprocmask
()
22404 if ! $gl_gnulib_enabled_sigprocmask; then
22408 if test $gl_cv_type_sigset_t = yes; then
22409 ac_fn_c_check_func
"$LINENO" "sigprocmask" "ac_cv_func_sigprocmask"
22410 if test "x$ac_cv_func_sigprocmask" = x
""yes; then :
22411 gl_cv_func_sigprocmask
=1
22415 if test -z "$gl_cv_func_sigprocmask"; then
22416 HAVE_POSIX_SIGNALBLOCKING
=0
22419 if test $HAVE_POSIX_SIGNALBLOCKING = 0; then
22428 gl_LIBOBJS
="$gl_LIBOBJS sigprocmask.$ac_objext"
22439 GNULIB_SIGPROCMASK
=1
22445 gl_gnulib_enabled_sigprocmask
=true
22448 func_gl_gnulib_m4code_stat
()
22450 if ! $gl_gnulib_enabled_stat; then
22454 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stat handles trailing slashes on directories" >&5
22455 $as_echo_n "checking whether stat handles trailing slashes on directories... " >&6; }
22456 if test "${gl_cv_func_stat_dir_slash+set}" = set; then :
22457 $as_echo_n "(cached) " >&6
22459 if test "$cross_compiling" = yes; then :
22461 mingw
*) gl_cv_func_stat_dir_slash
="guessing no";;
22462 *) gl_cv_func_stat_dir_slash
="guessing yes";;
22465 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
22466 /* end confdefs.h. */
22467 #include <sys/stat.h>
22472 struct stat st; return stat (".", &st) != stat ("./", &st);
22477 if ac_fn_c_try_run
"$LINENO"; then :
22478 gl_cv_func_stat_dir_slash
=yes
22480 gl_cv_func_stat_dir_slash
=no
22482 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
22483 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
22487 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_stat_dir_slash" >&5
22488 $as_echo "$gl_cv_func_stat_dir_slash" >&6; }
22489 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stat handles trailing slashes on files" >&5
22490 $as_echo_n "checking whether stat handles trailing slashes on files... " >&6; }
22491 if test "${gl_cv_func_stat_file_slash+set}" = set; then :
22492 $as_echo_n "(cached) " >&6
22495 # Assume that if we have lstat, we can also check symlinks.
22496 if test $ac_cv_func_lstat = yes; then
22497 ln -s conftest.tmp conftest.lnk
22499 if test "$cross_compiling" = yes; then :
22500 gl_cv_func_stat_file_slash
="guessing no"
22502 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
22503 /* end confdefs.h. */
22504 #include <sys/stat.h>
22511 if (!stat ("conftest.tmp/", &st))
22514 if (!stat ("conftest.lnk/", &st))
22523 if ac_fn_c_try_run
"$LINENO"; then :
22524 gl_cv_func_stat_file_slash
=yes
22526 gl_cv_func_stat_file_slash
=no
22528 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
22529 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
22532 rm -f conftest.tmp conftest.lnk
22534 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_stat_file_slash" >&5
22535 $as_echo "$gl_cv_func_stat_file_slash" >&6; }
22536 case $gl_cv_func_stat_dir_slash in
22537 *no
) REPLACE_STAT
=1
22539 $as_echo "#define REPLACE_FUNC_STAT_DIR 1" >>confdefs.h
22542 case $gl_cv_func_stat_file_slash in
22543 *no
) REPLACE_STAT
=1
22545 $as_echo "#define REPLACE_FUNC_STAT_FILE 1" >>confdefs.h
22549 if test $REPLACE_STAT = 1; then
22558 gl_LIBOBJS
="$gl_LIBOBJS stat.$ac_objext"
22576 gl_gnulib_enabled_stat
=true
22577 if test $REPLACE_STAT = 1; then
22578 func_gl_gnulib_m4code_dosname
22580 if test $REPLACE_STAT = 1; then
22581 func_gl_gnulib_m4code_pathmax
22583 if test $REPLACE_STAT = 1; then
22584 func_gl_gnulib_m4code_verify
22588 func_gl_gnulib_m4code_strtoll
()
22590 if ! $gl_gnulib_enabled_strtoll; then
22594 if test "$ac_cv_type_long_long_int" = yes; then
22595 for ac_func
in strtoll
22597 ac_fn_c_check_func
"$LINENO" "strtoll" "ac_cv_func_strtoll"
22598 if test "x$ac_cv_func_strtoll" = x
""yes; then :
22599 cat >>confdefs.h
<<_ACEOF
22600 #define HAVE_STRTOLL 1
22606 if test $ac_cv_func_strtoll = no
; then
22611 if test $HAVE_STRTOLL = 0; then
22620 gl_LIBOBJS
="$gl_LIBOBJS strtoll.$ac_objext"
22637 gl_gnulib_enabled_strtoll
=true
22640 func_gl_gnulib_m4code_strtoull
()
22642 if ! $gl_gnulib_enabled_strtoull; then
22646 if test "$ac_cv_type_unsigned_long_long_int" = yes; then
22647 for ac_func
in strtoull
22649 ac_fn_c_check_func
"$LINENO" "strtoull" "ac_cv_func_strtoull"
22650 if test "x$ac_cv_func_strtoull" = x
""yes; then :
22651 cat >>confdefs.h
<<_ACEOF
22652 #define HAVE_STRTOULL 1
22658 if test $ac_cv_func_strtoull = no
; then
22663 if test $HAVE_STRTOULL = 0; then
22672 gl_LIBOBJS
="$gl_LIBOBJS strtoull.$ac_objext"
22689 gl_gnulib_enabled_strtoull
=true
22692 func_gl_gnulib_m4code_verify
()
22694 if ! $gl_gnulib_enabled_verify; then
22695 gl_gnulib_enabled_verify
=true
22698 if test $REPLACE_GETOPT = 1; then
22699 func_gl_gnulib_m4code_be453cec5eecf5731a274f2de7f2db36
22701 if test $REPLACE_LSTAT = 1; then
22702 func_gl_gnulib_m4code_dosname
22704 if test $REPLACE_LSTAT = 1; then
22705 func_gl_gnulib_m4code_stat
22707 if test $HAVE_PTHREAD_SIGMASK = 0 ||
test $REPLACE_PTHREAD_SIGMASK = 1; then
22708 func_gl_gnulib_m4code_sigprocmask
22710 if test $HAVE_READLINK = 0 ||
test $REPLACE_READLINK = 1; then
22711 func_gl_gnulib_m4code_stat
22713 if test $ac_cv_func_strtoimax = no
; then
22714 func_gl_gnulib_m4code_verify
22716 if test $ac_cv_func_strtoimax = no
&& test $ac_cv_type_long_long_int = yes; then
22717 func_gl_gnulib_m4code_strtoll
22719 if test $ac_cv_func_strtoumax = no
; then
22720 func_gl_gnulib_m4code_verify
22722 if test $ac_cv_func_strtoumax = no
&& test $ac_cv_type_unsigned_long_long_int = yes; then
22723 func_gl_gnulib_m4code_strtoull
22726 if $gl_gnulib_enabled_dosname; then
22727 gl_GNULIB_ENABLED_dosname_TRUE
=
22728 gl_GNULIB_ENABLED_dosname_FALSE
='#'
22730 gl_GNULIB_ENABLED_dosname_TRUE
='#'
22731 gl_GNULIB_ENABLED_dosname_FALSE
=
22734 if $gl_gnulib_enabled_be453cec5eecf5731a274f2de7f2db36; then
22735 gl_GNULIB_ENABLED_be453cec5eecf5731a274f2de7f2db36_TRUE
=
22736 gl_GNULIB_ENABLED_be453cec5eecf5731a274f2de7f2db36_FALSE
='#'
22738 gl_GNULIB_ENABLED_be453cec5eecf5731a274f2de7f2db36_TRUE
='#'
22739 gl_GNULIB_ENABLED_be453cec5eecf5731a274f2de7f2db36_FALSE
=
22742 if $gl_gnulib_enabled_pathmax; then
22743 gl_GNULIB_ENABLED_pathmax_TRUE
=
22744 gl_GNULIB_ENABLED_pathmax_FALSE
='#'
22746 gl_GNULIB_ENABLED_pathmax_TRUE
='#'
22747 gl_GNULIB_ENABLED_pathmax_FALSE
=
22750 if $gl_gnulib_enabled_sigprocmask; then
22751 gl_GNULIB_ENABLED_sigprocmask_TRUE
=
22752 gl_GNULIB_ENABLED_sigprocmask_FALSE
='#'
22754 gl_GNULIB_ENABLED_sigprocmask_TRUE
='#'
22755 gl_GNULIB_ENABLED_sigprocmask_FALSE
=
22758 if $gl_gnulib_enabled_stat; then
22759 gl_GNULIB_ENABLED_stat_TRUE
=
22760 gl_GNULIB_ENABLED_stat_FALSE
='#'
22762 gl_GNULIB_ENABLED_stat_TRUE
='#'
22763 gl_GNULIB_ENABLED_stat_FALSE
=
22766 if $gl_gnulib_enabled_strtoll; then
22767 gl_GNULIB_ENABLED_strtoll_TRUE
=
22768 gl_GNULIB_ENABLED_strtoll_FALSE
='#'
22770 gl_GNULIB_ENABLED_strtoll_TRUE
='#'
22771 gl_GNULIB_ENABLED_strtoll_FALSE
=
22774 if $gl_gnulib_enabled_strtoull; then
22775 gl_GNULIB_ENABLED_strtoull_TRUE
=
22776 gl_GNULIB_ENABLED_strtoull_FALSE
='#'
22778 gl_GNULIB_ENABLED_strtoull_TRUE
='#'
22779 gl_GNULIB_ENABLED_strtoull_FALSE
=
22782 if $gl_gnulib_enabled_verify; then
22783 gl_GNULIB_ENABLED_verify_TRUE
=
22784 gl_GNULIB_ENABLED_verify_FALSE
='#'
22786 gl_GNULIB_ENABLED_verify_TRUE
='#'
22787 gl_GNULIB_ENABLED_verify_FALSE
=
22790 # End of code from modules
22811 gl_source_base
='tests'
22812 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
22814 gl_module_indicator_condition
=$gltests_WITNESS
22825 LIBGNU_LIBDEPS
="$gl_libdeps"
22827 LIBGNU_LTLIBDEPS
="$gl_ltlibdeps"
22832 aix4-2
) LD_SWITCH_SYSTEM_TEMACS
="-Wl,-bnodelcsect" ;;
22835 ## The -headerpad option tells ld (see man page) to leave room at the
22836 ## end of the header for adding load commands. Needed for dumping.
22837 ## 0x690 is the total size of 30 segment load commands (at 56
22838 ## each); under Cocoa 31 commands are required.
22839 if test "$HAVE_NS" = "yes"; then
22840 libs_nsgui
="-framework AppKit"
22841 headerpad_extra
=6C8
22844 headerpad_extra
=690
22846 LD_SWITCH_SYSTEM_TEMACS
="-fno-pie -prebind $libs_nsgui -Xlinker -headerpad -Xlinker $headerpad_extra"
22848 ## This is here because src/Makefile.in did some extra fiddling around
22849 ## with LD_SWITCH_SYSTEM. The cpp logic was:
22850 ## #ifndef LD_SWITCH_SYSTEM
22851 ## #if !defined (__GNUC__) && ((defined (BSD_SYSTEM) && !defined (COFF)))
22852 ## Since all the *bsds define LD_SWITCH_SYSTEM, this simplifies to:
22853 ## not using gcc, darwin system not on an alpha (ie darwin, since
22854 ## darwin + alpha does not occur).
22855 ## Because this was done in src/Makefile.in, the resulting part of
22856 ## LD_SWITCH_SYSTEM was not used in configure (ie, in ac_link).
22857 ## It therefore seems cleaner to put this in LD_SWITCH_SYSTEM_TEMACS,
22858 ## rather than LD_SWITCH_SYSTEM.
22859 test "x$LD_SWITCH_SYSTEM" = "x" && test "x$GCC" != "xyes" && \
22860 LD_SWITCH_SYSTEM_TEMACS
="-X $LD_SWITCH_SYSTEM_TEMACS"
22863 ## LD_SWITCH_X_SITE_AUX is a -R option saying where to find X at run-time.
22864 ## When handled by cpp, this was in LD_SWITCH_SYSTEM. However, at
22865 ## the point where configure sourced the s/*.h file, LD_SWITCH_X_SITE_AUX
22866 ## had not yet been defined and was expanded to null. Hence LD_SWITCH_SYSTEM
22867 ## had different values in configure (in ac_link) and src/Makefile.in.
22868 ## It seems clearer therefore to put this piece in LD_SWITCH_SYSTEM_TEMACS.
22869 gnu
*) LD_SWITCH_SYSTEM_TEMACS
="\$(LD_SWITCH_X_SITE_AUX_RPATH)" ;;
22871 *) LD_SWITCH_SYSTEM_TEMACS
= ;;
22874 if test "$NS_IMPL_GNUSTEP" = "yes"; then
22875 LD_SWITCH_SYSTEM_TEMACS
="${LD_SWITCH_SYSTEM_TEMACS} -L${GNUSTEP_SYSTEM_LIBRARIES} ${GNUSTEP_LOCAL_LIBRARIES} -lgnustep-gui -lgnustep-base -lobjc -lpthread"
22884 ## gnu: GNU needs its own crt0.
22885 aix4-2|cygwin|darwin|gnu|hpux
*|irix6-5|sol2
*|unixware
) ORDINARY_LINK
=yes ;;
22887 ## On post 1.3 releases of NetBSD, gcc -nostdlib also clears the
22888 ## library search parth, i.e. it won't search /usr/lib for libc and
22889 ## friends. Using -nostartfiles instead avoids this problem, and
22890 ## will also work on earlier NetBSD releases.
22891 netbsd|openbsd
) LD_FIRSTFLAG
="-nostartfiles" ;;
22893 ## macpcc: NAKAJI Hiroyuki <nakaji@tutrp.tut.ac.jp> says
22894 ## MkLinux/LinuxPPC needs this.
22895 ## ibms390x only supports opsys = gnu-linux so it can be added here.
22898 macppc|ibms390x
) LD_FIRSTFLAG
="-nostdlib" ;;
22904 if test "x$ORDINARY_LINK" = "xyes"; then
22908 $as_echo "#define ORDINARY_LINK 1" >>confdefs.h
22911 ## The system files defining neither ORDINARY_LINK nor LD_FIRSTFLAG are:
22912 ## freebsd, gnu-* not on macppc|ibms390x.
22913 elif test "x$GCC" = "xyes" && test "x$LD_FIRSTFLAG" = "x"; then
22915 ## Versions of GCC >= 2.0 put their library, libgcc.a, in obscure
22916 ## places that are difficult to figure out at make time. Fortunately,
22917 ## these same versions allow you to pass arbitrary flags on to the
22918 ## linker, so there is no reason not to use it as a linker.
22920 ## Well, it is not quite perfect. The "-nostdlib" keeps GCC from
22921 ## searching for libraries in its internal directories, so we have to
22922 ## ask GCC explicitly where to find libgcc.a (LIB_GCC below).
22923 LD_FIRSTFLAG
="-nostdlib"
22926 ## FIXME? What setting of EDIT_LDFLAGS should this have?
22927 test "$NS_IMPL_GNUSTEP" = "yes" && LD_FIRSTFLAG
="-rdynamic"
22932 ## FIXME? The logic here is not precisely the same as that above.
22933 ## There is no check here for a pre-defined LD_FIRSTFLAG.
22934 ## Should we only be setting LIB_GCC if LD ~ -nostdlib?
22936 if test "x$GCC" = "xyes" && test "x$ORDINARY_LINK" != "xyes"; then
22939 freebsd|netbsd|openbsd
) LIB_GCC
= ;;
22942 ## armin76@gentoo.org reported that the lgcc_s flag is necessary to
22943 ## build on ARM EABI under GNU/Linux. (Bug#5518)
22949 ## FIXME? s/gnu-linux.h used to define LIB_GCC as below, then
22950 ## immediately undefine it again and redefine it to empty.
22951 ## Was the C_SWITCH_X_SITE part really necessary?
22952 ## LIB_GCC=`$CC $C_SWITCH_X_SITE -print-libgcc-file-name`
22958 ## Ask GCC where to find libgcc.a.
22959 *) LIB_GCC
=`$CC -print-libgcc-file-name 2> /dev/null` ;;
22964 ## If we're using X11/GNUstep, define some consequences.
22965 if test "$HAVE_X_WINDOWS" = "yes" ||
test "$HAVE_NS" = "yes"; then
22967 $as_echo "#define HAVE_WINDOW_SYSTEM 1" >>confdefs.h
22970 $as_echo "#define HAVE_MOUSE 1" >>confdefs.h
22977 #### Report on what we decided to do.
22978 #### Report GTK as a toolkit, even if it doesn't use Xt.
22979 #### It makes printing result more understandable as using GTK sets
22980 #### toolkit_scroll_bars to yes by default.
22981 if test "${HAVE_GTK}" = "yes"; then
22986 if test -n "$machfile"; then
22987 and_machfile
=" and \`${machfile}'"
22991 Configured for \`${canonical}'.
22993 Where should the build process find the source code? ${srcdir}
22994 What operating system and machine description files should Emacs use?
22995 \`${opsysfile}'${and_machfile}
22996 What compiler should emacs be built with? ${CC} ${CFLAGS}
22997 Should Emacs use the GNU version of malloc? ${GNU_MALLOC}${GNU_MALLOC_reason}
22998 Should Emacs use a relocating allocator for buffers? ${REL_ALLOC}
22999 Should Emacs use mmap(2) for buffer allocation? $use_mmap_for_buffers
23000 What window system should Emacs use? ${window_system}
23001 What toolkit should Emacs use? ${USE_X_TOOLKIT}"
23003 if test -n "${x_includes}"; then
23004 echo " Where do we find X Windows header files? ${x_includes}"
23006 echo " Where do we find X Windows header files? Standard dirs"
23008 if test -n "${x_libraries}"; then
23009 echo " Where do we find X Windows libraries? ${x_libraries}"
23011 echo " Where do we find X Windows libraries? Standard dirs"
23014 echo " Does Emacs use -lXaw3d? ${HAVE_XAW3D}"
23015 echo " Does Emacs use -lXpm? ${HAVE_XPM}"
23016 echo " Does Emacs use -ljpeg? ${HAVE_JPEG}"
23017 echo " Does Emacs use -ltiff? ${HAVE_TIFF}"
23018 echo " Does Emacs use a gif library? ${HAVE_GIF} $LIBGIF"
23019 echo " Does Emacs use -lpng? ${HAVE_PNG}"
23020 echo " Does Emacs use -lrsvg-2? ${HAVE_RSVG}"
23021 echo " Does Emacs use imagemagick? ${HAVE_IMAGEMAGICK}"
23023 echo " Does Emacs use -lgpm? ${HAVE_GPM}"
23024 echo " Does Emacs use -ldbus? ${HAVE_DBUS}"
23025 echo " Does Emacs use -lgconf? ${HAVE_GCONF}"
23026 echo " Does Emacs use GSettings? ${HAVE_GSETTINGS}"
23027 echo " Does Emacs use -lselinux? ${HAVE_LIBSELINUX}"
23028 echo " Does Emacs use -lgnutls? ${HAVE_GNUTLS}"
23029 echo " Does Emacs use -lxml2? ${HAVE_LIBXML2}"
23031 echo " Does Emacs use -lfreetype? ${HAVE_FREETYPE}"
23032 echo " Does Emacs use -lm17n-flt? ${HAVE_M17N_FLT}"
23033 echo " Does Emacs use -lotf? ${HAVE_LIBOTF}"
23034 echo " Does Emacs use -lxft? ${HAVE_XFT}"
23036 echo " Does Emacs use toolkit scroll bars? ${USE_TOOLKIT_SCROLL_BARS}"
23039 if test -n "${EMACSDATA}"; then
23040 echo " Environment variable EMACSDATA set to: $EMACSDATA"
23042 if test -n "${EMACSDOC}"; then
23043 echo " Environment variable EMACSDOC set to: $EMACSDOC"
23046 if test $USE_XASSERTS = yes; then
23047 echo " Compiling with asserts turned on."
23048 CPPFLAGS
="$CPPFLAGS -DXASSERTS=1"
23053 if test "$HAVE_NS" = "yes"; then
23055 echo "You must run \"${MAKE-make} install\" in order to test the built application.
23056 The installed application will go to nextstep/Emacs.app and can be
23057 run or moved from there."
23058 if test "$EN_NS_SELF_CONTAINED" = "yes"; then
23059 echo "The application will be fully self-contained."
23061 echo "The lisp resources for the application will be installed under ${prefix}.
23062 You may need to run \"${MAKE-make} install\" with sudo. The application will fail
23063 to run if these resources are not installed."
23068 if test "${opsys}" = "cygwin"; then
23070 1.5.
*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: building Emacs on Cygwin 1.5 is not supported." >&5
23071 $as_echo "$as_me: WARNING: building Emacs on Cygwin 1.5 is not supported." >&2;}
23077 # Remove any trailing slashes in these variables.
23078 test "${prefix}" != NONE
&&
23079 prefix
=`echo "${prefix}" | sed 's,\([^/]\)/*$,\1,'`
23080 test "${exec_prefix}" != NONE
&&
23081 exec_prefix
=`echo "${exec_prefix}" | sed 's,\([^/]\)/*$,\1,'`
23083 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"
23085 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"
23088 opt_makefile
=test
/automated
/Makefile
23090 if test -f $srcdir/${opt_makefile}.
in; then
23091 SUBDIR_MAKEFILES
="$SUBDIR_MAKEFILES $opt_makefile"
23092 ac_config_files
="$ac_config_files test/automated/Makefile"
23097 opt_makefile
=admin
/unidata
/Makefile
23099 if test -f $srcdir/${opt_makefile}.
in; then
23100 SUBDIR_MAKEFILES
="$SUBDIR_MAKEFILES $opt_makefile"
23101 ac_config_files
="$ac_config_files admin/unidata/Makefile"
23106 SUBDIR_MAKEFILES_IN
=`echo " ${SUBDIR_MAKEFILES}" | sed -e 's| | $(srcdir)/|g' -e 's|Makefile|Makefile.in|g'`
23110 ac_config_commands
="$ac_config_commands mkdirs"
23113 ac_config_commands
="$ac_config_commands epaths"
23116 ac_config_commands
="$ac_config_commands gdbinit"
23119 cat >confcache
<<\_ACEOF
23120 # This file is a shell script that caches the results of configure
23121 # tests run on this system so they can be shared between configure
23122 # scripts and configure runs, see configure's option --config-cache.
23123 # It is not useful on other systems. If it contains results you don't
23124 # want to keep, you may remove or edit it.
23126 # config.status only pays attention to the cache file if you give it
23127 # the --recheck option to rerun configure.
23129 # `ac_cv_env_foo' variables (set or unset) will be overridden when
23130 # loading this file, other *unset* `ac_cv_foo' will be assigned the
23131 # following values.
23135 # The following way of writing the cache mishandles newlines in values,
23136 # but we know of no workaround that is simple, portable, and efficient.
23137 # So, we kill variables containing newlines.
23138 # Ultrix sh set writes to stderr and can't be redirected directly,
23139 # and sets the high bit in the cache file unless we assign to the vars.
23141 for ac_var
in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
23142 eval ac_val
=\$
$ac_var
23146 *_cv_
*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
23147 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
23150 _ | IFS | as_nl
) ;; #(
23151 BASH_ARGV | BASH_SOURCE
) eval $ac_var= ;; #(
23152 *) { eval $ac_var=; unset $ac_var;} ;;
23158 case $as_nl`(ac_space=' '; set) 2>&1` in #(
23159 *${as_nl}ac_space
=\
*)
23160 # `set' does not quote correctly, so add quotes: double-quote
23161 # substitution turns \\\\ into \\, and sed turns \\ into \.
23164 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
23167 # `set' quotes correctly as required by POSIX, so do not add quotes.
23168 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
23177 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
23179 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
23181 if diff "$cache_file" confcache
>/dev
/null
2>&1; then :; else
23182 if test -w "$cache_file"; then
23183 test "x$cache_file" != "x/dev/null" &&
23184 { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
23185 $as_echo "$as_me: updating cache $cache_file" >&6;}
23186 cat confcache
>$cache_file
23188 { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
23189 $as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
23194 test "x$prefix" = xNONE
&& prefix
=$ac_default_prefix
23195 # Let make expand exec_prefix.
23196 test "x$exec_prefix" = xNONE
&& exec_prefix
='${prefix}'
23198 DEFS
=-DHAVE_CONFIG_H
23202 for ac_i
in : $LIBOBJS; do test "x$ac_i" = x
: && continue
23203 # 1. Remove the extension, and $U if already installed.
23204 ac_script
='s/\$U\././;s/\.o$//;s/\.obj$//'
23205 ac_i
=`$as_echo "$ac_i" | sed "$ac_script"`
23206 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
23207 # will be set to the directory where LIBOBJS objects are built.
23208 as_fn_append ac_libobjs
" \${LIBOBJDIR}$ac_i\$U.$ac_objext"
23209 as_fn_append ac_ltlibobjs
" \${LIBOBJDIR}$ac_i"'$U.lo'
23211 LIBOBJS
=$ac_libobjs
23213 LTLIBOBJS
=$ac_ltlibobjs
23216 if test -n "$EXEEXT"; then
23218 am__EXEEXT_FALSE
='#'
23220 am__EXEEXT_TRUE
='#'
23224 if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
23225 as_fn_error
"conditional \"AMDEP\" was never defined.
23226 Usually this means the macro was only invoked conditionally." "$LINENO" 5
23228 if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
23229 as_fn_error
"conditional \"am__fastdepCC\" was never defined.
23230 Usually this means the macro was only invoked conditionally." "$LINENO" 5
23233 if test -z "${GL_COND_LIBTOOL_TRUE}" && test -z "${GL_COND_LIBTOOL_FALSE}"; then
23234 as_fn_error
"conditional \"GL_COND_LIBTOOL\" was never defined.
23235 Usually this means the macro was only invoked conditionally." "$LINENO" 5
23237 if test -z "${GL_GENERATE_ALLOCA_H_TRUE}" && test -z "${GL_GENERATE_ALLOCA_H_FALSE}"; then
23238 as_fn_error
"conditional \"GL_GENERATE_ALLOCA_H\" was never defined.
23239 Usually this means the macro was only invoked conditionally." "$LINENO" 5
23242 if test -z "${GL_GENERATE_STDINT_H_TRUE}" && test -z "${GL_GENERATE_STDINT_H_FALSE}"; then
23243 as_fn_error
"conditional \"GL_GENERATE_STDINT_H\" was never defined.
23244 Usually this means the macro was only invoked conditionally." "$LINENO" 5
23246 if test -z "${GL_GENERATE_STDARG_H_TRUE}" && test -z "${GL_GENERATE_STDARG_H_FALSE}"; then
23247 as_fn_error
"conditional \"GL_GENERATE_STDARG_H\" was never defined.
23248 Usually this means the macro was only invoked conditionally." "$LINENO" 5
23250 if test -z "${GL_GENERATE_STDBOOL_H_TRUE}" && test -z "${GL_GENERATE_STDBOOL_H_FALSE}"; then
23251 as_fn_error
"conditional \"GL_GENERATE_STDBOOL_H\" was never defined.
23252 Usually this means the macro was only invoked conditionally." "$LINENO" 5
23254 if test -z "${GL_GENERATE_STDDEF_H_TRUE}" && test -z "${GL_GENERATE_STDDEF_H_FALSE}"; then
23255 as_fn_error
"conditional \"GL_GENERATE_STDDEF_H\" was never defined.
23256 Usually this means the macro was only invoked conditionally." "$LINENO" 5
23258 if test -z "${gl_GNULIB_ENABLED_dosname_TRUE}" && test -z "${gl_GNULIB_ENABLED_dosname_FALSE}"; then
23259 as_fn_error
"conditional \"gl_GNULIB_ENABLED_dosname\" was never defined.
23260 Usually this means the macro was only invoked conditionally." "$LINENO" 5
23262 if test -z "${gl_GNULIB_ENABLED_be453cec5eecf5731a274f2de7f2db36_TRUE}" && test -z "${gl_GNULIB_ENABLED_be453cec5eecf5731a274f2de7f2db36_FALSE}"; then
23263 as_fn_error
"conditional \"gl_GNULIB_ENABLED_be453cec5eecf5731a274f2de7f2db36\" was never defined.
23264 Usually this means the macro was only invoked conditionally." "$LINENO" 5
23266 if test -z "${gl_GNULIB_ENABLED_pathmax_TRUE}" && test -z "${gl_GNULIB_ENABLED_pathmax_FALSE}"; then
23267 as_fn_error
"conditional \"gl_GNULIB_ENABLED_pathmax\" was never defined.
23268 Usually this means the macro was only invoked conditionally." "$LINENO" 5
23270 if test -z "${gl_GNULIB_ENABLED_sigprocmask_TRUE}" && test -z "${gl_GNULIB_ENABLED_sigprocmask_FALSE}"; then
23271 as_fn_error
"conditional \"gl_GNULIB_ENABLED_sigprocmask\" was never defined.
23272 Usually this means the macro was only invoked conditionally." "$LINENO" 5
23274 if test -z "${gl_GNULIB_ENABLED_stat_TRUE}" && test -z "${gl_GNULIB_ENABLED_stat_FALSE}"; then
23275 as_fn_error
"conditional \"gl_GNULIB_ENABLED_stat\" was never defined.
23276 Usually this means the macro was only invoked conditionally." "$LINENO" 5
23278 if test -z "${gl_GNULIB_ENABLED_strtoll_TRUE}" && test -z "${gl_GNULIB_ENABLED_strtoll_FALSE}"; then
23279 as_fn_error
"conditional \"gl_GNULIB_ENABLED_strtoll\" was never defined.
23280 Usually this means the macro was only invoked conditionally." "$LINENO" 5
23282 if test -z "${gl_GNULIB_ENABLED_strtoull_TRUE}" && test -z "${gl_GNULIB_ENABLED_strtoull_FALSE}"; then
23283 as_fn_error
"conditional \"gl_GNULIB_ENABLED_strtoull\" was never defined.
23284 Usually this means the macro was only invoked conditionally." "$LINENO" 5
23286 if test -z "${gl_GNULIB_ENABLED_verify_TRUE}" && test -z "${gl_GNULIB_ENABLED_verify_FALSE}"; then
23287 as_fn_error
"conditional \"gl_GNULIB_ENABLED_verify\" was never defined.
23288 Usually this means the macro was only invoked conditionally." "$LINENO" 5
23293 if test -n "$gl_LIBOBJS"; then
23294 # Remove the extension.
23295 sed_drop_objext
='s/\.o$//;s/\.obj$//'
23296 for i
in `for i in $gl_LIBOBJS; do echo "$i"; done | sed -e "$sed_drop_objext" | sort | uniq`; do
23297 gl_libobjs
="$gl_libobjs $i.$ac_objext"
23298 gl_ltlibobjs
="$gl_ltlibobjs $i.lo"
23301 gl_LIBOBJS
=$gl_libobjs
23303 gl_LTLIBOBJS
=$gl_ltlibobjs
23309 if test -n "$gltests_LIBOBJS"; then
23310 # Remove the extension.
23311 sed_drop_objext
='s/\.o$//;s/\.obj$//'
23312 for i
in `for i in $gltests_LIBOBJS; do echo "$i"; done | sed -e "$sed_drop_objext" | sort | uniq`; do
23313 gltests_libobjs
="$gltests_libobjs $i.$ac_objext"
23314 gltests_ltlibobjs
="$gltests_ltlibobjs $i.lo"
23317 gltests_LIBOBJS
=$gltests_libobjs
23319 gltests_LTLIBOBJS
=$gltests_ltlibobjs
23323 : ${CONFIG_STATUS=./config.status}
23325 ac_clean_files_save
=$ac_clean_files
23326 ac_clean_files
="$ac_clean_files $CONFIG_STATUS"
23327 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
23328 $as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
23330 cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
23332 # Generated by $as_me.
23333 # Run this file to recreate the current configuration.
23334 # Compiler output produced by configure, useful for debugging
23335 # configure, is in config.log if it exists.
23338 ac_cs_recheck=false
23341 SHELL=\${CONFIG_SHELL-$SHELL}
23344 cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail
=1
23345 ## -------------------- ##
23346 ## M4sh Initialization. ##
23347 ## -------------------- ##
23349 # Be more Bourne compatible
23350 DUALCASE
=1; export DUALCASE
# for MKS sh
23351 if test -n "${ZSH_VERSION+set}" && (emulate sh
) >/dev
/null
2>&1; then :
23354 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
23355 # is contrary to our usage. Disable this feature.
23356 alias -g '${1+"$@"}'='"$@"'
23357 setopt NO_GLOB_SUBST
23359 case `(set -o) 2>/dev/null` in #(
23371 # Printing a long string crashes Solaris 7 /usr/bin/printf.
23372 as_echo
='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
23373 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
23374 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
23375 # Prefer a ksh shell builtin over an external printf program on Solaris,
23376 # but without wasting forks for bash or zsh.
23377 if test -z "$BASH_VERSION$ZSH_VERSION" \
23378 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
23379 as_echo='print
-r --'
23380 as_echo_n='print
-rn --'
23381 elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
23382 as_echo='printf %s
\n'
23383 as_echo_n='printf %s
'
23385 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
23386 as_echo_body='eval /usr
/ucb
/echo -n "$1$as_nl"'
23387 as_echo_n='/usr
/ucb
/echo -n'
23389 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
23390 as_echo_n_body='eval
23394 expr "X$arg" : "X\\(.*\\)$as_nl";
23395 arg
=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
23397 expr "X$arg" : "X\\(.*\\)" |
tr -d "$as_nl"
23399 export as_echo_n_body
23400 as_echo_n='sh
-c $as_echo_n_body as_echo
'
23402 export as_echo_body
23403 as_echo='sh
-c $as_echo_body as_echo
'
23406 # The user is always right.
23407 if test "${PATH_SEPARATOR+set}" != set; then
23409 (PATH='/bin
;/bin
'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
23410 (PATH='/bin
:/bin
'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
23417 # We need space, tab and new line, in precisely that order. Quoting is
23418 # there to prevent editors from complaining about space-tab.
23419 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
23420 # splitting by setting IFS to empty value.)
23423 # Find who we are. Look in the path if we contain no directory separator.
23425 *[\\/]* ) as_myself=$0 ;;
23426 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
23427 for as_dir in $PATH
23430 test -z "$as_dir" && as_dir=.
23431 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
23437 # We did not find ourselves, most probably we were run as `sh COMMAND'
23438 # in which case we are not to be found in the path.
23439 if test "x$as_myself" = x
; then
23442 if test ! -f "$as_myself"; then
23443 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
23447 # Unset variables that we do not need and which cause bugs (e.g. in
23448 # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
23449 # suppresses any "Segmentation fault" message there. '((' could
23450 # trigger a bug in pdksh 5.2.14.
23451 for as_var
in BASH_ENV ENV MAIL MAILPATH
23452 do eval test x\
${$as_var+set} = xset \
23453 && ( (unset $as_var) ||
exit 1) >/dev
/null
2>&1 && unset $as_var ||
:
23466 (unset CDPATH
) >/dev
/null
2>&1 && unset CDPATH
23469 # as_fn_error ERROR [LINENO LOG_FD]
23470 # ---------------------------------
23471 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
23472 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
23473 # script with status $?, using 1 if that was 0.
23476 as_status
=$?
; test $as_status -eq 0 && as_status
=1
23478 as_lineno
=${as_lineno-"$2"} as_lineno_stack
=as_lineno_stack
=$as_lineno_stack
23479 $as_echo "$as_me:${as_lineno-$LINENO}: error: $1" >&$3
23481 $as_echo "$as_me: error: $1" >&2
23482 as_fn_exit
$as_status
23486 # as_fn_set_status STATUS
23487 # -----------------------
23488 # Set $? to STATUS, without forking.
23489 as_fn_set_status
()
23492 } # as_fn_set_status
23494 # as_fn_exit STATUS
23495 # -----------------
23496 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
23500 as_fn_set_status
$1
23506 # Portably unset VAR.
23509 { eval $1=; unset $1;}
23511 as_unset
=as_fn_unset
23512 # as_fn_append VAR VALUE
23513 # ----------------------
23514 # Append the text in VALUE to the end of the definition contained in VAR. Take
23515 # advantage of any shell optimizations that allow amortized linear growth over
23516 # repeated appends, instead of the typical quadratic growth present in naive
23518 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev
/null
; then :
23519 eval 'as_fn_append ()
23530 # as_fn_arith ARG...
23531 # ------------------
23532 # Perform arithmetic evaluation on the ARGs, and store the result in the
23533 # global $as_val. Take advantage of shells that can avoid forks. The arguments
23534 # must be portable across $(()) and expr.
23535 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev
/null
; then :
23536 eval 'as_fn_arith ()
23543 as_val
=`expr "$@" || test $? -eq 1`
23548 if expr a
: '\(a\)' >/dev
/null
2>&1 &&
23549 test "X`expr 00001 : '.*\(...\)'`" = X001
; then
23555 if (basename -- /) >/dev
/null
2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
23556 as_basename
=basename
23561 if (as_dir
=`dirname -- /` && test "X$as_dir" = X
/) >/dev
/null
2>&1; then
23567 as_me
=`$as_basename -- "$0" ||
23568 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
23569 X"$0" : 'X\(//\)$' \| \
23570 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
23572 sed '/^.*\/\([^/][^/]*\)\/*$/{
23586 # Avoid depending upon Character Ranges.
23587 as_cr_letters
='abcdefghijklmnopqrstuvwxyz'
23588 as_cr_LETTERS
='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
23589 as_cr_Letters
=$as_cr_letters$as_cr_LETTERS
23590 as_cr_digits
='0123456789'
23591 as_cr_alnum
=$as_cr_Letters$as_cr_digits
23593 ECHO_C
= ECHO_N
= ECHO_T
=
23594 case `echo -n x` in #(((((
23596 case `echo 'xy\c'` in
23597 *c
*) ECHO_T
=' ';; # ECHO_T is single tab character.
23599 *) echo `echo ksh88 bug on AIX 6.1` > /dev
/null
23606 rm -f conf$$ conf$$.exe conf$$.
file
23607 if test -d conf$$.dir
; then
23608 rm -f conf$$.dir
/conf$$.
file
23611 mkdir conf$$.dir
2>/dev
/null
23613 if (echo >conf$$.
file) 2>/dev
/null
; then
23614 if ln -s conf$$.
file conf$$
2>/dev
/null
; then
23616 # ... but there are two gotchas:
23617 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
23618 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
23619 # In both cases, we have to default to `cp -p'.
23620 ln -s conf$$.
file conf$$.dir
2>/dev
/null
&& test ! -f conf$$.exe ||
23622 elif ln conf$$.
file conf$$
2>/dev
/null
; then
23630 rm -f conf$$ conf$$.exe conf$$.dir
/conf$$.
file conf$$.
file
23631 rmdir conf$$.dir
2>/dev
/null
23636 # Create "$as_dir" as a directory, including parents if necessary.
23641 -*) as_dir
=.
/$as_dir;;
23643 test -d "$as_dir" ||
eval $as_mkdir_p ||
{
23647 *\'*) as_qdir
=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
23648 *) as_qdir
=$as_dir;;
23650 as_dirs
="'$as_qdir' $as_dirs"
23651 as_dir
=`$as_dirname -- "$as_dir" ||
23652 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
23653 X"$as_dir" : 'X\(//\)[^/]' \| \
23654 X"$as_dir" : 'X\(//\)$' \| \
23655 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
23656 $as_echo X"$as_dir" |
23657 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
23661 /^X\(\/\/\)[^/].*/{
23674 test -d "$as_dir" && break
23676 test -z "$as_dirs" ||
eval "mkdir $as_dirs"
23677 } ||
test -d "$as_dir" || as_fn_error
"cannot create directory $as_dir"
23681 if mkdir
-p .
2>/dev
/null
; then
23682 as_mkdir_p
='mkdir -p "$as_dir"'
23684 test -d .
/-p && rmdir .
/-p
23688 if test -x / >/dev
/null
2>&1; then
23689 as_test_x
='test -x'
23691 if ls -dL / >/dev
/null
2>&1; then
23698 if test -d "$1"; then
23704 case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in #((
23705 ???[sx]*):;;*)false;;esac;fi
23709 as_executable_p
=$as_test_x
23711 # Sed expression to map a string onto a valid CPP name.
23712 as_tr_cpp
="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
23714 # Sed expression to map a string onto a valid variable name.
23715 as_tr_sh
="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
23719 ## ----------------------------------- ##
23720 ## Main body of $CONFIG_STATUS script. ##
23721 ## ----------------------------------- ##
23723 test $as_write_fail = 0 && chmod +x
$CONFIG_STATUS || ac_write_fail
=1
23725 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail
=1
23726 # Save the log message, to keep $0 and so on meaningful, and to
23727 # report actual input values of CONFIG_FILES etc. instead of their
23728 # values after options handling.
23730 This file was extended by emacs $as_me 24.1.50, which was
23731 generated by GNU Autoconf 2.65. Invocation command line was
23733 CONFIG_FILES = $CONFIG_FILES
23734 CONFIG_HEADERS = $CONFIG_HEADERS
23735 CONFIG_LINKS = $CONFIG_LINKS
23736 CONFIG_COMMANDS = $CONFIG_COMMANDS
23739 on `(hostname || uname -n) 2>/dev/null | sed 1q`
23744 case $ac_config_files in *"
23745 "*) set x
$ac_config_files; shift; ac_config_files
=$
*;;
23748 case $ac_config_headers in *"
23749 "*) set x
$ac_config_headers; shift; ac_config_headers
=$
*;;
23753 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
23754 # Files that config.status was made for.
23755 config_files="$ac_config_files"
23756 config_headers="$ac_config_headers"
23757 config_commands="$ac_config_commands"
23761 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail
=1
23763 \`$as_me' instantiates files and other configuration actions
23764 from templates according to the current configuration. Unless the files
23765 and actions are specified as TAGs, all are instantiated by default.
23767 Usage: $0 [OPTION]... [TAG]...
23769 -h, --help print this help, then exit
23770 -V, --version print version number and configuration settings, then exit
23771 --config print configuration, then exit
23772 -q, --quiet, --silent
23773 do not print progress messages
23774 -d, --debug don't remove temporary files
23775 --recheck update $as_me by reconfiguring in the same conditions
23776 --file=FILE[:TEMPLATE]
23777 instantiate the configuration file FILE
23778 --header=FILE[:TEMPLATE]
23779 instantiate the configuration header FILE
23781 Configuration files:
23784 Configuration headers:
23787 Configuration commands:
23790 Report bugs to the package provider."
23793 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
23794 ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`"
23796 emacs config.status 24.1.50
23797 configured by $0, generated by GNU Autoconf 2.65,
23798 with options \\"\$ac_cs_config\\"
23800 Copyright (C) 2009 Free Software Foundation, Inc.
23801 This config.status script is free software; the Free Software Foundation
23802 gives unlimited permission to copy, distribute and modify it."
23809 test -n "\$AWK" || AWK=awk
23812 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail
=1
23813 # The default lists apply if the user does not specify any file.
23819 ac_option
=`expr "X$1" : 'X\([^=]*\)='`
23820 ac_optarg
=`expr "X$1" : 'X[^=]*=\(.*\)'`
23831 # Handling of the options.
23832 -recheck |
--recheck |
--rechec |
--reche |
--rech |
--rec |
--re |
--r)
23834 --version |
--versio |
--versi |
--vers |
--ver |
--ve |
--v |
-V )
23835 $as_echo "$ac_cs_version"; exit ;;
23836 --config |
--confi |
--conf |
--con |
--co |
--c )
23837 $as_echo "$ac_cs_config"; exit ;;
23838 --debug |
--debu |
--deb |
--de |
--d |
-d )
23840 --file |
--fil |
--fi |
--f )
23843 *\'*) ac_optarg
=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
23845 as_fn_append CONFIG_FILES
" '$ac_optarg'"
23846 ac_need_defaults
=false
;;
23847 --header |
--heade |
--head |
--hea )
23850 *\'*) ac_optarg
=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
23852 as_fn_append CONFIG_HEADERS
" '$ac_optarg'"
23853 ac_need_defaults
=false
;;
23855 # Conflict between --help and --header
23856 as_fn_error
"ambiguous option: \`$1'
23857 Try \`$0 --help' for more information.";;
23858 --help |
--hel |
-h )
23859 $as_echo "$ac_cs_usage"; exit ;;
23860 -q |
-quiet |
--quiet |
--quie |
--qui |
--qu |
--q \
23861 |
-silent |
--silent |
--silen |
--sile |
--sil |
--si |
--s)
23864 # This is an error.
23865 -*) as_fn_error
"unrecognized option: \`$1'
23866 Try \`$0 --help' for more information." ;;
23868 *) as_fn_append ac_config_targets
" $1"
23869 ac_need_defaults
=false
;;
23875 ac_configure_extra_args
=
23877 if $ac_cs_silent; then
23879 ac_configure_extra_args
="$ac_configure_extra_args --silent"
23883 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
23884 if \$ac_cs_recheck; then
23885 set X '$SHELL' '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
23887 \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
23888 CONFIG_SHELL='$SHELL'
23889 export CONFIG_SHELL
23894 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail
=1
23898 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
23899 ## Running $as_me. ##
23905 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
23909 AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"
23910 GCC="$GCC" NON_GNU_CPP="$NON_GNU_CPP" CPP="$CPP" CPPFLAGS="$CPPFLAGS"
23914 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail
=1
23916 # Handling of arguments.
23917 for ac_config_target
in $ac_config_targets
23919 case $ac_config_target in
23920 "src/config.h") CONFIG_HEADERS
="$CONFIG_HEADERS src/config.h:src/config.in" ;;
23921 "depfiles") CONFIG_COMMANDS
="$CONFIG_COMMANDS depfiles" ;;
23922 "Makefile") CONFIG_FILES
="$CONFIG_FILES Makefile" ;;
23923 "lib/Makefile") CONFIG_FILES
="$CONFIG_FILES lib/Makefile" ;;
23924 "lib-src/Makefile") CONFIG_FILES
="$CONFIG_FILES lib-src/Makefile" ;;
23925 "oldXMenu/Makefile") CONFIG_FILES
="$CONFIG_FILES oldXMenu/Makefile" ;;
23926 "doc/emacs/Makefile") CONFIG_FILES
="$CONFIG_FILES doc/emacs/Makefile" ;;
23927 "doc/misc/Makefile") CONFIG_FILES
="$CONFIG_FILES doc/misc/Makefile" ;;
23928 "doc/lispintro/Makefile") CONFIG_FILES
="$CONFIG_FILES doc/lispintro/Makefile" ;;
23929 "doc/lispref/Makefile") CONFIG_FILES
="$CONFIG_FILES doc/lispref/Makefile" ;;
23930 "src/Makefile") CONFIG_FILES
="$CONFIG_FILES src/Makefile" ;;
23931 "lwlib/Makefile") CONFIG_FILES
="$CONFIG_FILES lwlib/Makefile" ;;
23932 "lisp/Makefile") CONFIG_FILES
="$CONFIG_FILES lisp/Makefile" ;;
23933 "leim/Makefile") CONFIG_FILES
="$CONFIG_FILES leim/Makefile" ;;
23934 "test/automated/Makefile") CONFIG_FILES
="$CONFIG_FILES test/automated/Makefile" ;;
23935 "admin/unidata/Makefile") CONFIG_FILES
="$CONFIG_FILES admin/unidata/Makefile" ;;
23936 "mkdirs") CONFIG_COMMANDS
="$CONFIG_COMMANDS mkdirs" ;;
23937 "epaths") CONFIG_COMMANDS
="$CONFIG_COMMANDS epaths" ;;
23938 "gdbinit") CONFIG_COMMANDS
="$CONFIG_COMMANDS gdbinit" ;;
23940 *) as_fn_error
"invalid argument: \`$ac_config_target'" "$LINENO" 5;;
23945 # If the user did not use the arguments to specify the items to instantiate,
23946 # then the envvar interface is used. Set only those that are not.
23947 # We use the long form for the default assignment because of an extremely
23948 # bizarre bug on SunOS 4.1.3.
23949 if $ac_need_defaults; then
23950 test "${CONFIG_FILES+set}" = set || CONFIG_FILES
=$config_files
23951 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS
=$config_headers
23952 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS
=$config_commands
23955 # Have a temporary directory for convenience. Make it in the build tree
23956 # simply because there is no reason against having it here, and in addition,
23957 # creating and moving files from /tmp can sometimes cause problems.
23958 # Hook for its removal unless debugging.
23959 # Note that there is a small window in which the directory will not be cleaned:
23960 # after its creation but before its name has been assigned to `$tmp'.
23964 trap 'exit_status=$?
23965 { test -z "$tmp" || test ! -d "$tmp" || rm -fr "$tmp"; } && exit $exit_status
23967 trap 'as_fn_exit 1' 1 2 13 15
23969 # Create a (secure) tmp directory for tmp files.
23972 tmp
=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
23973 test -n "$tmp" && test -d "$tmp"
23976 tmp
=.
/conf$$
-$RANDOM
23977 (umask 077 && mkdir
"$tmp")
23978 } || as_fn_error
"cannot create a temporary directory in ." "$LINENO" 5
23980 # Set up the scripts for CONFIG_FILES section.
23981 # No need to generate them if there are no CONFIG_FILES.
23982 # This happens for instance with `./config.status config.h'.
23983 if test -n "$CONFIG_FILES"; then
23985 if $AWK 'BEGIN { getline <"/dev/null" }' </dev
/null
2>/dev
/null
; then
23986 ac_cs_awk_getline
=:
23987 ac_cs_awk_pipe_init
=
23988 ac_cs_awk_read_file
='
23989 while ((getline aline < (F[key])) > 0)
23992 ac_cs_awk_pipe_fini
=
23994 ac_cs_awk_getline
=false
23995 ac_cs_awk_pipe_init
="print \"cat <<'|#_!!_#|' &&\""
23996 ac_cs_awk_read_file
='
23998 print "cat " F[key] " &&"
23999 '$ac_cs_awk_pipe_init
24000 # The final `:' finishes the AND list.
24001 ac_cs_awk_pipe_fini
='END { print "|#_!!_#|"; print ":" }'
24003 ac_cr
=`echo X | tr X '\015'`
24004 # On cygwin, bash can eat \r inside `` if the user requested igncr.
24005 # But we know of no other shell where ac_cr would be empty at this
24006 # point, so we can use a bashism as a fallback.
24007 if test "x$ac_cr" = x
; then
24008 eval ac_cr
=\$
\'\\r
\'
24010 ac_cs_awk_cr
=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
24011 if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
24014 ac_cs_awk_cr
=$ac_cr
24017 echo 'BEGIN {' >"$tmp/subs1.awk" &&
24020 # Create commands to substitute file output variables.
24022 echo "cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1" &&
24023 echo 'cat >>"\$tmp/subs1.awk" <<\\_ACAWK &&' &&
24024 echo "$ac_subst_files" |
sed 's/.*/F["&"]="$&"/' &&
24027 } >conf$
$files.sh
&&
24028 . .
/conf$
$files.sh ||
24029 as_fn_error
"could not make $CONFIG_STATUS" "$LINENO" 5
24030 rm -f conf$
$files.sh
24033 echo "cat >conf$$subs.awk <<_ACEOF" &&
24034 echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
24036 } >conf$$subs.sh ||
24037 as_fn_error "could not
make $CONFIG_STATUS" "$LINENO" 5
24038 ac_delim_num=`echo "$ac_subst_vars" | grep -c '$'`
24040 for ac_last_try in false false false false false :; do
24041 . ./conf$$subs.sh ||
24042 as_fn_error "could not
make $CONFIG_STATUS" "$LINENO" 5
24044 ac_delim_n=`sed -n "s
/.
*$ac_delim\$
/X
/p
" conf$$subs.awk | grep -c X`
24045 if test $ac_delim_n = $ac_delim_num; then
24047 elif $ac_last_try; then
24048 as_fn_error "could not
make $CONFIG_STATUS" "$LINENO" 5
24050 ac_delim="$ac_delim!$ac_delim _
$ac_delim!! "
24053 rm -f conf$$subs.sh
24055 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
24056 cat >>"\
$tmp/subs1.
awk" <<\\_ACAWK &&
24060 s/^/S["/; s
/!.
*/"]=/
24070 s/\(.\{148\}\)..*/\1/
24072 s/["\\]/\\&/g
; s
/^
/"/; s/$/\\n"\\/
24077 s
/["\\]/\\&/g; s/^/"/; s
/$
/"\\/
24084 s/\(.\{148\}\)..*/\1/
24086 s/["\\]/\\&/g
; s
/^
/"/; s/$/"/
24090 s
/["\\]/\\&/g; s/^/"/; s
/$
/"\\/
24095 ' <conf$$subs.awk | sed '
24100 ' >>$CONFIG_STATUS || ac_write_fail=1
24101 rm -f conf$$subs.awk
24102 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
24104 cat >>"\
$tmp/subs1.
awk" <<_ACAWK &&
24105 for (key in S) S_is_set[key] = 1
24107 \$ac_cs_awk_pipe_init
24111 nfields = split(line, field, "@
")
24113 len = length(field[1])
24114 for (i = 2; i < nfields; i++) {
24116 keylen = length(key)
24117 if (S_is_set[key]) {
24119 line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
24120 len += length(value) + length(field[++i])
24125 if (nfields == 3 && !substed) {
24127 if (F[key] != "" && line ~ /^[ ]*@.*@[ ]*$/) {
24128 \$ac_cs_awk_read_file
24134 \$ac_cs_awk_pipe_fini
24137 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
24138 if sed "s
/$ac_cr//" < /dev/null > /dev/null 2>&1; then
24139 sed "s
/$ac_cr\$
//; s
/$ac_cr/$ac_cs_awk_cr/g
"
24142 fi < "$tmp/subs1.
awk" > "$tmp/subs.
awk" \
24143 || as_fn_error "could not setup config files machinery
" "$LINENO" 5
24146 # VPATH may cause trouble with some makes, so we remove $(srcdir),
24147 # ${srcdir} and @srcdir@ from VPATH if srcdir is ".
", strip leading and
24148 # trailing colons and then remove the whole line if VPATH becomes empty
24149 # (actually we leave an empty line to preserve line numbers).
24150 if test "x
$srcdir" = x.; then
24151 ac_vpsub='/^[ ]*VPATH[ ]*=/{
24152 s/:*\$(srcdir):*/:/
24153 s/:*\${srcdir}:*/:/
24155 s/^\([^=]*=[ ]*\):*/\1/
24161 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
24162 fi # test -n "$CONFIG_FILES"
24164 # Set up the scripts for CONFIG_HEADERS section.
24165 # No need to generate them if there are no CONFIG_HEADERS.
24166 # This happens for instance with `./config.status Makefile'.
24167 if test -n "$CONFIG_HEADERS"; then
24168 cat >"$tmp/defines.
awk" <<\_ACAWK ||
24172 # Transform confdefs.h into an awk script `defines.awk', embedded as
24173 # here-document in config.status, that substitutes the proper values into
24174 # config.h.in to produce config.h.
24176 # Create a delimiter string that does not exist in confdefs.h, to ease
24177 # handling of long lines.
24179 for ac_last_try in false false :; do
24180 ac_t=`sed -n "/$ac_delim/p
" confdefs.h`
24181 if test -z "$ac_t"; then
24183 elif $ac_last_try; then
24184 as_fn_error "could not
make $CONFIG_HEADERS" "$LINENO" 5
24186 ac_delim="$ac_delim!$ac_delim _
$ac_delim!! "
24190 # For the awk script, D is an array of macro values keyed by name,
24191 # likewise P contains macro parameters if any. Preserve backslash
24192 # newline sequences.
24194 ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
24196 s/.\{148\}/&'"$ac_delim"'/g
24199 s/^[ ]*#[ ]*define[ ][ ]*/ /
24206 s
/^ \
('"$ac_word_re"'\
)\
(([^
()]*)\
)[ ]*\
(.
*\
)/P
["\1"]="\2"\
24208 s
/^ \
('"$ac_word_re"'\
)[ ]*\
(.
*\
)/D
["\1"]=" \2"/p
24212 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\
1"]="\
2"\
24213 D["\
1"]=" \
3\\\\\\n
"\\/p
24215 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\
1"]=" \
2\\\\\\n
"\\/p
24220 s/.\{148\}/&'"$ac_delim"'/g
24225 s/["\\]/\\&/g
; s
/^
/"/; s/$/"/p
24228 s
/["\\]/\\&/g; s/^/"/; s
/$
/\\\\\\n
"\\/p
24230 ' <confdefs.h | sed '
24231 s/'"$ac_delim"'/"\\\
24232 "/g' >>$CONFIG_STATUS || ac_write_fail=1
24234 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
24235 for (key in D) D_is_set[key] = 1
24238 /^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
24240 split(line, arg, " ")
24241 if (arg[1] == "#") {
24245 defundef
= substr
(arg
[1], 2)
24248 split(mac1
, mac2
, "(") #)
24250 prefix
= substr
(line
, 1, index
(line
, defundef
) - 1)
24251 if (D_is_set
[macro
]) {
24252 # Preserve the white space surrounding the "#".
24253 print prefix
"define", macro P
[macro
] D
[macro
]
24256 # Replace #undef with comments. This is necessary, for example,
24257 # in the case of _POSIX_SOURCE, which is predefined and required
24258 # on some systems where configure will not decide to define it.
24259 if (defundef
== "undef") {
24260 print
"/*", prefix defundef
, macro
, "*/"
24268 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail
=1
24269 as_fn_error
"could not setup config headers machinery" "$LINENO" 5
24270 fi # test -n "$CONFIG_HEADERS"
24273 eval set X
" :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS"
24278 :[FHLC
]) ac_mode
=$ac_tag; continue;;
24280 case $ac_mode$ac_tag in
24282 :L
* |
:C
*:*) as_fn_error
"invalid tag \`$ac_tag'" "$LINENO" 5;;
24283 :[FH
]-) ac_tag
=-:-;;
24284 :[FH
]*) ac_tag
=$ac_tag:$ac_tag.
in;;
24301 -) ac_f
="$tmp/stdin";;
24302 *) # Look for the file first in the build tree, then in the source tree
24303 # (if the path is not absolute). The absolute path cannot be DOS-style,
24304 # because $ac_f cannot contain `:'.
24308 *) test -f "$srcdir/$ac_f" && ac_f
="$srcdir/$ac_f";;
24310 as_fn_error
"cannot find input file: \`$ac_f'" "$LINENO" 5;;
24312 case $ac_f in *\'*) ac_f
=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
24313 as_fn_append ac_file_inputs
" '$ac_f'"
24316 # Let's still pretend it is `configure' which instantiates (i.e., don't
24317 # use $as_me), people would be surprised to read:
24318 # /* config.h. Generated by config.status. */
24319 configure_input
='Generated from '`
24320 $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
24322 if test x
"$ac_file" != x-
; then
24323 configure_input
="$ac_file. $configure_input"
24324 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
24325 $as_echo "$as_me: creating $ac_file" >&6;}
24327 # Neutralize special characters interpreted by sed in replacement strings.
24328 case $configure_input in #(
24329 *\
&* |
*\|
* |
*\\* )
24330 ac_sed_conf_input
=`$as_echo "$configure_input" |
24331 sed 's/[\\\\&|]/\\\\&/g'`;; #(
24332 *) ac_sed_conf_input
=$configure_input;;
24336 *:-:* |
*:-) cat >"$tmp/stdin" \
24337 || as_fn_error
"could not create $ac_file" "$LINENO" 5 ;;
24342 ac_dir
=`$as_dirname -- "$ac_file" ||
24343 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
24344 X"$ac_file" : 'X\(//\)[^/]' \| \
24345 X"$ac_file" : 'X\(//\)$' \| \
24346 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
24347 $as_echo X"$ac_file" |
24348 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
24352 /^X\(\/\/\)[^/].*/{
24365 as_dir
="$ac_dir"; as_fn_mkdir_p
24369 .
) ac_dir_suffix
= ac_top_builddir_sub
=. ac_top_build_prefix
= ;;
24371 ac_dir_suffix
=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
24372 # A ".." for each directory in $ac_dir_suffix.
24373 ac_top_builddir_sub
=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
24374 case $ac_top_builddir_sub in
24375 "") ac_top_builddir_sub
=. ac_top_build_prefix
= ;;
24376 *) ac_top_build_prefix
=$ac_top_builddir_sub/ ;;
24379 ac_abs_top_builddir
=$ac_pwd
24380 ac_abs_builddir
=$ac_pwd$ac_dir_suffix
24381 # for backward compatibility:
24382 ac_top_builddir
=$ac_top_build_prefix
24385 .
) # We are building in place.
24387 ac_top_srcdir
=$ac_top_builddir_sub
24388 ac_abs_top_srcdir
=$ac_pwd ;;
24389 [\\/]* | ?
:[\\/]* ) # Absolute name.
24390 ac_srcdir
=$srcdir$ac_dir_suffix;
24391 ac_top_srcdir
=$srcdir
24392 ac_abs_top_srcdir
=$srcdir ;;
24393 *) # Relative name.
24394 ac_srcdir
=$ac_top_build_prefix$srcdir$ac_dir_suffix
24395 ac_top_srcdir
=$ac_top_build_prefix$srcdir
24396 ac_abs_top_srcdir
=$ac_pwd/$srcdir ;;
24398 ac_abs_srcdir
=$ac_abs_top_srcdir$ac_dir_suffix
24408 [\\/$
]* | ?
:[\\/]* ) ac_INSTALL
=$INSTALL ;;
24409 *) ac_INSTALL
=$ac_top_build_prefix$INSTALL ;;
24411 ac_MKDIR_P
=$MKDIR_P
24413 [\\/$
]* | ?
:[\\/]* ) ;;
24414 */*) ac_MKDIR_P
=$ac_top_build_prefix$MKDIR_P ;;
24418 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail
=1
24419 # If the template does not know about datarootdir, expand it.
24420 # FIXME: This hack should be removed a few years after 2.60.
24421 ac_datarootdir_hack
=; ac_datarootdir_seen
=
24432 case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
24433 *datarootdir
*) ac_datarootdir_seen
=yes;;
24434 *@datadir@
*|
*@docdir@
*|
*@infodir@
*|
*@localedir@
*|
*@mandir@
*)
24435 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
24436 $as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
24438 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
24439 ac_datarootdir_hack='
24440 s&@datadir@&$datadir&g
24441 s&@docdir@&$docdir&g
24442 s&@infodir@&$infodir&g
24443 s&@localedir@&$localedir&g
24444 s&@mandir@&$mandir&g
24445 s&\\\${datarootdir}&$datarootdir&g' ;;
24449 # Neutralize VPATH when `$srcdir' = `.'.
24450 # Shell code in configure.ac might set extrasub.
24451 # FIXME: do we really want to maintain this feature?
24452 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
24453 ac_sed_extra="$ac_vpsub
24456 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail
=1
24458 /@
[a-zA-Z_
][a-zA-Z_0-9
]*@
/!b
24459 s|@configure_input@|
$ac_sed_conf_input|
;t t
24460 s
&@top_builddir@
&$ac_top_builddir_sub&;t t
24461 s
&@top_build_prefix@
&$ac_top_build_prefix&;t t
24462 s
&@srcdir@
&$ac_srcdir&;t t
24463 s
&@abs_srcdir@
&$ac_abs_srcdir&;t t
24464 s
&@top_srcdir@
&$ac_top_srcdir&;t t
24465 s
&@abs_top_srcdir@
&$ac_abs_top_srcdir&;t t
24466 s
&@builddir@
&$ac_builddir&;t t
24467 s
&@abs_builddir@
&$ac_abs_builddir&;t t
24468 s
&@abs_top_builddir@
&$ac_abs_top_builddir&;t t
24469 s
&@INSTALL@
&$ac_INSTALL&;t t
24470 s
&@MKDIR_P@
&$ac_MKDIR_P&;t t
24471 $ac_datarootdir_hack
24473 eval sed \"\$ac_sed_extra\" "$ac_file_inputs" |
24474 if $ac_cs_awk_getline; then
24475 $AWK -f "$tmp/subs.
awk"
24477 $AWK -f "$tmp/subs.
awk" | $SHELL
24479 || as_fn_error "could not create
$ac_file" "$LINENO" 5
24481 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
24482 { ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out
"`; test -n "$ac_out"; } &&
24483 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' "$tmp/out
"`; test -z "$ac_out"; } &&
24484 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING
: $ac_file contains a reference to the variable \
`datarootdir'
24485 which seems to be undefined. Please make sure it is defined." >&5
24486 $as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir
'
24487 which seems to be undefined. Please make sure it is defined." >&2;}
24491 -) cat "$tmp/out" && rm -f "$tmp/out";;
24492 *) rm -f "$ac_file" && mv "$tmp/out" "$ac_file";;
24494 || as_fn_error "could not create $ac_file" "$LINENO" 5
24500 if test x"$ac_file" != x-; then
24502 $as_echo "/* $configure_input */" \
24503 && eval '$AWK -f "$tmp/defines.awk"' "$ac_file_inputs"
24504 } >"$tmp/config.h" \
24505 || as_fn_error "could not create $ac_file" "$LINENO" 5
24506 if diff "$ac_file" "$tmp/config.h" >/dev/null 2>&1; then
24507 { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5
24508 $as_echo "$as_me: $ac_file is unchanged" >&6;}
24511 mv "$tmp/config.h" "$ac_file" \
24512 || as_fn_error "could not create $ac_file" "$LINENO" 5
24515 $as_echo "/* $configure_input */" \
24516 && eval '$AWK -f "$tmp/defines.awk"' "$ac_file_inputs" \
24517 || as_fn_error "could not create -" "$LINENO" 5
24519 # Compute "$ac_file"'s index
in $config_headers.
24522 for _am_header
in $config_headers :; do
24523 case $_am_header in
24524 $_am_arg |
$_am_arg:* )
24527 _am_stamp_count
=`expr $_am_stamp_count + 1` ;;
24530 echo "timestamp for $_am_arg" >`$as_dirname -- "$_am_arg" ||
24531 $as_expr X"$_am_arg" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
24532 X"$_am_arg" : 'X\(//\)[^/]' \| \
24533 X"$_am_arg" : 'X\(//\)$' \| \
24534 X"$_am_arg" : 'X\(/\)' \| . 2>/dev/null ||
24535 $as_echo X"$_am_arg" |
24536 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
24540 /^X\(\/\/\)[^/].*/{
24552 s/.*/./; q'`/stamp-h
$_am_stamp_count
24555 :C
) { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5
24556 $as_echo "$as_me: executing $ac_file commands" >&6;}
24561 case $ac_file$ac_mode in
24562 "depfiles":C
) test x
"$AMDEP_TRUE" != x
"" ||
{
24563 # Autoconf 2.62 quotes --file arguments for eval, but not when files
24564 # are listed without --file. Let's play safe and only enable the eval
24565 # if we detect the quoting.
24566 case $CONFIG_FILES in
24567 *\'*) eval set x
"$CONFIG_FILES" ;;
24568 *) set x
$CONFIG_FILES ;;
24573 # Strip MF so we end up with the name of the file.
24574 mf
=`echo "$mf" | sed -e 's/:.*$//'`
24575 # Check whether this is an Automake generated Makefile or not.
24576 # We used to match only the files named `Makefile.in', but
24577 # some people rename them; so instead we look at the file content.
24578 # Grep'ing the first line is not enough: some people post-process
24579 # each Makefile.in and add a new line on top of each file to say so.
24580 # Grep'ing the whole file is not good either: AIX grep has a line
24581 # limit of 2048, but all sed's we know have understand at least 4000.
24582 if sed -n 's,^#.*generated by automake.*,X,p' "$mf" |
grep X
>/dev
/null
2>&1; then
24583 dirpart
=`$as_dirname -- "$mf" ||
24584 $as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
24585 X"$mf" : 'X\(//\)[^/]' \| \
24586 X"$mf" : 'X\(//\)$' \| \
24587 X"$mf" : 'X\(/\)' \| . 2>/dev/null ||
24589 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
24593 /^X\(\/\/\)[^/].*/{
24609 # Extract the definition of DEPDIR, am__include, and am__quote
24610 # from the Makefile without running `make'.
24611 DEPDIR
=`sed -n 's/^DEPDIR = //p' < "$mf"`
24612 test -z "$DEPDIR" && continue
24613 am__include
=`sed -n 's/^am__include = //p' < "$mf"`
24614 test -z "am__include" && continue
24615 am__quote
=`sed -n 's/^am__quote = //p' < "$mf"`
24616 # When using ansi2knr, U may be empty or an underscore; expand it
24617 U
=`sed -n 's/^U = //p' < "$mf"`
24618 # Find all dependency output files, they are included files with
24619 # $(DEPDIR) in their names. We invoke sed twice because it is the
24620 # simplest approach to changing $(DEPDIR) to its actual value in the
24622 for file in `sed -n "
24623 s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \
24624 sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g' -e 's/\$U/'"$U"'/g'`; do
24625 # Make sure the directory exists.
24626 test -f "$dirpart/$file" && continue
24627 fdir
=`$as_dirname -- "$file" ||
24628 $as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
24629 X"$file" : 'X\(//\)[^/]' \| \
24630 X"$file" : 'X\(//\)$' \| \
24631 X"$file" : 'X\(/\)' \| . 2>/dev/null ||
24632 $as_echo X"$file" |
24633 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
24637 /^X\(\/\/\)[^/].*/{
24650 as_dir
=$dirpart/$fdir; as_fn_mkdir_p
24651 # echo "creating $dirpart/$file"
24652 echo '# dummy' > "$dirpart/$file"
24658 for dir
in etc lisp
; do
24659 test -d ${dir} || mkdir
${dir}
24663 echo creating src
/epaths.h
24664 ${MAKE-make} epaths-force
24667 if test ! -f src
/.gdbinit
&& test -f $srcdir/src
/.gdbinit
; then
24668 echo creating src
/.gdbinit
24669 echo source $srcdir/src
/.gdbinit
> src
/.gdbinit
24679 ac_clean_files
=$ac_clean_files_save
24681 test $ac_write_fail = 0 ||
24682 as_fn_error
"write failure creating $CONFIG_STATUS" "$LINENO" 5
24685 # configure is writing to config.log, and then calls config.status.
24686 # config.status does its own redirection, appending to config.log.
24687 # Unfortunately, on DOS this fails, as config.log is still kept open
24688 # by configure, so config.status won't be able to write to it; its
24689 # output is simply discarded. So we exec the FD to /dev/null,
24690 # effectively closing config.log, so it can be properly (re)opened and
24691 # appended to by config.status. When coming back to configure, we
24692 # need to make the FD available again.
24693 if test "$no_create" != yes; then
24695 ac_config_status_args
=
24696 test "$silent" = yes &&
24697 ac_config_status_args
="$ac_config_status_args --quiet"
24699 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success
=false
24701 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
24702 # would make configure fail if this is the last instruction.
24703 $ac_cs_success || as_fn_exit $?
24705 if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no
; then
24706 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
24707 $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}