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
1231 INSTALL_STRIP_PROGRAM
1273 program_transform_name
1284 ac_subst_files
='deps_frag
1288 enable_option_checking
1311 with_toolkit_scroll_bars
1323 with_pkg_config_prog
1327 enable_ns_self_contained
1329 enable_maintainer_mode
1330 enable_locallisppath
1332 enable_use_lisp_union_type
1335 enable_dependency_tracking
1339 ac_precious_vars
='build_alias
1351 # Initialize some variables set by options.
1353 ac_init_version
=false
1354 ac_unrecognized_opts
=
1355 ac_unrecognized_sep
=
1356 # The variables have the same names as the options, with
1357 # dashes changed to underlines.
1358 cache_file
=/dev
/null
1365 program_transform_name
=s
,x
,x
,
1373 # Installation directory options.
1374 # These are left unexpanded so users can "make install exec_prefix=/foo"
1375 # and all the variables that are supposed to be based on exec_prefix
1376 # by default will actually change.
1377 # Use braces instead of parens because sh, perl, etc. also accept them.
1378 # (The list follows the same order as the GNU Coding Standards.)
1379 bindir
='${exec_prefix}/bin'
1380 sbindir
='${exec_prefix}/sbin'
1381 libexecdir
='${exec_prefix}/libexec'
1382 datarootdir
='${prefix}/share'
1383 datadir
='${datarootdir}'
1384 sysconfdir
='${prefix}/etc'
1385 sharedstatedir
='${prefix}/com'
1386 localstatedir
='${prefix}/var'
1387 includedir
='${prefix}/include'
1388 oldincludedir
='/usr/include'
1389 docdir
='${datarootdir}/doc/${PACKAGE_TARNAME}'
1390 infodir
='${datarootdir}/info'
1395 libdir
='${exec_prefix}/lib'
1396 localedir
='${datarootdir}/locale'
1397 mandir
='${datarootdir}/man'
1403 # If the previous option needs an argument, assign it.
1404 if test -n "$ac_prev"; then
1405 eval $ac_prev=\
$ac_option
1411 *=*) ac_optarg
=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
1415 # Accept the important Cygnus configure options, so we can diagnose typos.
1417 case $ac_dashdash$ac_option in
1421 -bindir |
--bindir |
--bindi |
--bind |
--bin |
--bi)
1423 -bindir=* |
--bindir=* |
--bindi=* |
--bind=* |
--bin=* |
--bi=*)
1424 bindir
=$ac_optarg ;;
1426 -build |
--build |
--buil |
--bui |
--bu)
1427 ac_prev
=build_alias
;;
1428 -build=* |
--build=* |
--buil=* |
--bui=* |
--bu=*)
1429 build_alias
=$ac_optarg ;;
1431 -cache-file |
--cache-file |
--cache-fil |
--cache-fi \
1432 |
--cache-f |
--cache- |
--cache |
--cach |
--cac |
--ca |
--c)
1433 ac_prev
=cache_file
;;
1434 -cache-file=* |
--cache-file=* |
--cache-fil=* |
--cache-fi=* \
1435 |
--cache-f=* |
--cache-=* |
--cache=* |
--cach=* |
--cac=* |
--ca=* |
--c=*)
1436 cache_file
=$ac_optarg ;;
1438 --config-cache |
-C)
1439 cache_file
=config.cache
;;
1441 -datadir |
--datadir |
--datadi |
--datad)
1443 -datadir=* |
--datadir=* |
--datadi=* |
--datad=*)
1444 datadir
=$ac_optarg ;;
1446 -datarootdir |
--datarootdir |
--datarootdi |
--datarootd |
--dataroot \
1447 |
--dataroo |
--dataro |
--datar)
1448 ac_prev
=datarootdir
;;
1449 -datarootdir=* |
--datarootdir=* |
--datarootdi=* |
--datarootd=* \
1450 |
--dataroot=* |
--dataroo=* |
--dataro=* |
--datar=*)
1451 datarootdir
=$ac_optarg ;;
1453 -disable-* |
--disable-*)
1454 ac_useropt
=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
1455 # Reject names that are not valid shell variable names.
1456 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev
/null
&&
1457 as_fn_error
"invalid feature name: $ac_useropt"
1458 ac_useropt_orig
=$ac_useropt
1459 ac_useropt
=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1460 case $ac_user_opts in
1462 "enable_
$ac_useropt"
1464 *) ac_unrecognized_opts
="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
1465 ac_unrecognized_sep
=', ';;
1467 eval enable_
$ac_useropt=no
;;
1469 -docdir |
--docdir |
--docdi |
--doc |
--do)
1471 -docdir=* |
--docdir=* |
--docdi=* |
--doc=* |
--do=*)
1472 docdir
=$ac_optarg ;;
1474 -dvidir |
--dvidir |
--dvidi |
--dvid |
--dvi |
--dv)
1476 -dvidir=* |
--dvidir=* |
--dvidi=* |
--dvid=* |
--dvi=* |
--dv=*)
1477 dvidir
=$ac_optarg ;;
1479 -enable-* |
--enable-*)
1480 ac_useropt
=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
1481 # Reject names that are not valid shell variable names.
1482 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev
/null
&&
1483 as_fn_error
"invalid feature name: $ac_useropt"
1484 ac_useropt_orig
=$ac_useropt
1485 ac_useropt
=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1486 case $ac_user_opts in
1488 "enable_
$ac_useropt"
1490 *) ac_unrecognized_opts
="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
1491 ac_unrecognized_sep
=', ';;
1493 eval enable_
$ac_useropt=\
$ac_optarg ;;
1495 -exec-prefix |
--exec_prefix |
--exec-prefix |
--exec-prefi \
1496 |
--exec-pref |
--exec-pre |
--exec-pr |
--exec-p |
--exec- \
1497 |
--exec |
--exe |
--ex)
1498 ac_prev
=exec_prefix
;;
1499 -exec-prefix=* |
--exec_prefix=* |
--exec-prefix=* |
--exec-prefi=* \
1500 |
--exec-pref=* |
--exec-pre=* |
--exec-pr=* |
--exec-p=* |
--exec-=* \
1501 |
--exec=* |
--exe=* |
--ex=*)
1502 exec_prefix
=$ac_optarg ;;
1504 -gas |
--gas |
--ga |
--g)
1505 # Obsolete; use --with-gas.
1508 -help |
--help |
--hel |
--he |
-h)
1509 ac_init_help
=long
;;
1510 -help=r
* |
--help=r
* |
--hel=r
* |
--he=r
* |
-hr*)
1511 ac_init_help
=recursive
;;
1512 -help=s
* |
--help=s
* |
--hel=s
* |
--he=s
* |
-hs*)
1513 ac_init_help
=short
;;
1515 -host |
--host |
--hos |
--ho)
1516 ac_prev
=host_alias
;;
1517 -host=* |
--host=* |
--hos=* |
--ho=*)
1518 host_alias
=$ac_optarg ;;
1520 -htmldir |
--htmldir |
--htmldi |
--htmld |
--html |
--htm |
--ht)
1522 -htmldir=* |
--htmldir=* |
--htmldi=* |
--htmld=* |
--html=* |
--htm=* \
1524 htmldir
=$ac_optarg ;;
1526 -includedir |
--includedir |
--includedi |
--included |
--include \
1527 |
--includ |
--inclu |
--incl |
--inc)
1528 ac_prev
=includedir
;;
1529 -includedir=* |
--includedir=* |
--includedi=* |
--included=* |
--include=* \
1530 |
--includ=* |
--inclu=* |
--incl=* |
--inc=*)
1531 includedir
=$ac_optarg ;;
1533 -infodir |
--infodir |
--infodi |
--infod |
--info |
--inf)
1535 -infodir=* |
--infodir=* |
--infodi=* |
--infod=* |
--info=* |
--inf=*)
1536 infodir
=$ac_optarg ;;
1538 -libdir |
--libdir |
--libdi |
--libd)
1540 -libdir=* |
--libdir=* |
--libdi=* |
--libd=*)
1541 libdir
=$ac_optarg ;;
1543 -libexecdir |
--libexecdir |
--libexecdi |
--libexecd |
--libexec \
1544 |
--libexe |
--libex |
--libe)
1545 ac_prev
=libexecdir
;;
1546 -libexecdir=* |
--libexecdir=* |
--libexecdi=* |
--libexecd=* |
--libexec=* \
1547 |
--libexe=* |
--libex=* |
--libe=*)
1548 libexecdir
=$ac_optarg ;;
1550 -localedir |
--localedir |
--localedi |
--localed |
--locale)
1551 ac_prev
=localedir
;;
1552 -localedir=* |
--localedir=* |
--localedi=* |
--localed=* |
--locale=*)
1553 localedir
=$ac_optarg ;;
1555 -localstatedir |
--localstatedir |
--localstatedi |
--localstated \
1556 |
--localstate |
--localstat |
--localsta |
--localst |
--locals)
1557 ac_prev
=localstatedir
;;
1558 -localstatedir=* |
--localstatedir=* |
--localstatedi=* |
--localstated=* \
1559 |
--localstate=* |
--localstat=* |
--localsta=* |
--localst=* |
--locals=*)
1560 localstatedir
=$ac_optarg ;;
1562 -mandir |
--mandir |
--mandi |
--mand |
--man |
--ma |
--m)
1564 -mandir=* |
--mandir=* |
--mandi=* |
--mand=* |
--man=* |
--ma=* |
--m=*)
1565 mandir
=$ac_optarg ;;
1567 -nfp |
--nfp |
--nf)
1568 # Obsolete; use --without-fp.
1571 -no-create |
--no-create |
--no-creat |
--no-crea |
--no-cre \
1572 |
--no-cr |
--no-c |
-n)
1575 -no-recursion |
--no-recursion |
--no-recursio |
--no-recursi \
1576 |
--no-recurs |
--no-recur |
--no-recu |
--no-rec |
--no-re |
--no-r)
1579 -oldincludedir |
--oldincludedir |
--oldincludedi |
--oldincluded \
1580 |
--oldinclude |
--oldinclud |
--oldinclu |
--oldincl |
--oldinc \
1581 |
--oldin |
--oldi |
--old |
--ol |
--o)
1582 ac_prev
=oldincludedir
;;
1583 -oldincludedir=* |
--oldincludedir=* |
--oldincludedi=* |
--oldincluded=* \
1584 |
--oldinclude=* |
--oldinclud=* |
--oldinclu=* |
--oldincl=* |
--oldinc=* \
1585 |
--oldin=* |
--oldi=* |
--old=* |
--ol=* |
--o=*)
1586 oldincludedir
=$ac_optarg ;;
1588 -prefix |
--prefix |
--prefi |
--pref |
--pre |
--pr |
--p)
1590 -prefix=* |
--prefix=* |
--prefi=* |
--pref=* |
--pre=* |
--pr=* |
--p=*)
1591 prefix
=$ac_optarg ;;
1593 -program-prefix |
--program-prefix |
--program-prefi |
--program-pref \
1594 |
--program-pre |
--program-pr |
--program-p)
1595 ac_prev
=program_prefix
;;
1596 -program-prefix=* |
--program-prefix=* |
--program-prefi=* \
1597 |
--program-pref=* |
--program-pre=* |
--program-pr=* |
--program-p=*)
1598 program_prefix
=$ac_optarg ;;
1600 -program-suffix |
--program-suffix |
--program-suffi |
--program-suff \
1601 |
--program-suf |
--program-su |
--program-s)
1602 ac_prev
=program_suffix
;;
1603 -program-suffix=* |
--program-suffix=* |
--program-suffi=* \
1604 |
--program-suff=* |
--program-suf=* |
--program-su=* |
--program-s=*)
1605 program_suffix
=$ac_optarg ;;
1607 -program-transform-name |
--program-transform-name \
1608 |
--program-transform-nam |
--program-transform-na \
1609 |
--program-transform-n |
--program-transform- \
1610 |
--program-transform |
--program-transfor \
1611 |
--program-transfo |
--program-transf \
1612 |
--program-trans |
--program-tran \
1613 |
--progr-tra |
--program-tr |
--program-t)
1614 ac_prev
=program_transform_name
;;
1615 -program-transform-name=* |
--program-transform-name=* \
1616 |
--program-transform-nam=* |
--program-transform-na=* \
1617 |
--program-transform-n=* |
--program-transform-=* \
1618 |
--program-transform=* |
--program-transfor=* \
1619 |
--program-transfo=* |
--program-transf=* \
1620 |
--program-trans=* |
--program-tran=* \
1621 |
--progr-tra=* |
--program-tr=* |
--program-t=*)
1622 program_transform_name
=$ac_optarg ;;
1624 -pdfdir |
--pdfdir |
--pdfdi |
--pdfd |
--pdf |
--pd)
1626 -pdfdir=* |
--pdfdir=* |
--pdfdi=* |
--pdfd=* |
--pdf=* |
--pd=*)
1627 pdfdir
=$ac_optarg ;;
1629 -psdir |
--psdir |
--psdi |
--psd |
--ps)
1631 -psdir=* |
--psdir=* |
--psdi=* |
--psd=* |
--ps=*)
1634 -q |
-quiet |
--quiet |
--quie |
--qui |
--qu |
--q \
1635 |
-silent |
--silent |
--silen |
--sile |
--sil)
1638 -sbindir |
--sbindir |
--sbindi |
--sbind |
--sbin |
--sbi |
--sb)
1640 -sbindir=* |
--sbindir=* |
--sbindi=* |
--sbind=* |
--sbin=* \
1642 sbindir
=$ac_optarg ;;
1644 -sharedstatedir |
--sharedstatedir |
--sharedstatedi \
1645 |
--sharedstated |
--sharedstate |
--sharedstat |
--sharedsta \
1646 |
--sharedst |
--shareds |
--shared |
--share |
--shar \
1648 ac_prev
=sharedstatedir
;;
1649 -sharedstatedir=* |
--sharedstatedir=* |
--sharedstatedi=* \
1650 |
--sharedstated=* |
--sharedstate=* |
--sharedstat=* |
--sharedsta=* \
1651 |
--sharedst=* |
--shareds=* |
--shared=* |
--share=* |
--shar=* \
1653 sharedstatedir
=$ac_optarg ;;
1655 -site |
--site |
--sit)
1657 -site=* |
--site=* |
--sit=*)
1660 -srcdir |
--srcdir |
--srcdi |
--srcd |
--src |
--sr)
1662 -srcdir=* |
--srcdir=* |
--srcdi=* |
--srcd=* |
--src=* |
--sr=*)
1663 srcdir
=$ac_optarg ;;
1665 -sysconfdir |
--sysconfdir |
--sysconfdi |
--sysconfd |
--sysconf \
1666 |
--syscon |
--sysco |
--sysc |
--sys |
--sy)
1667 ac_prev
=sysconfdir
;;
1668 -sysconfdir=* |
--sysconfdir=* |
--sysconfdi=* |
--sysconfd=* |
--sysconf=* \
1669 |
--syscon=* |
--sysco=* |
--sysc=* |
--sys=* |
--sy=*)
1670 sysconfdir
=$ac_optarg ;;
1672 -target |
--target |
--targe |
--targ |
--tar |
--ta |
--t)
1673 ac_prev
=target_alias
;;
1674 -target=* |
--target=* |
--targe=* |
--targ=* |
--tar=* |
--ta=* |
--t=*)
1675 target_alias
=$ac_optarg ;;
1677 -v |
-verbose |
--verbose |
--verbos |
--verbo |
--verb)
1680 -version |
--version |
--versio |
--versi |
--vers |
-V)
1681 ac_init_version
=: ;;
1684 ac_useropt
=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1685 # Reject names that are not valid shell variable names.
1686 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev
/null
&&
1687 as_fn_error
"invalid package name: $ac_useropt"
1688 ac_useropt_orig
=$ac_useropt
1689 ac_useropt
=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1690 case $ac_user_opts in
1694 *) ac_unrecognized_opts
="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1695 ac_unrecognized_sep
=', ';;
1697 eval with_
$ac_useropt=\
$ac_optarg ;;
1699 -without-* |
--without-*)
1700 ac_useropt
=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1701 # Reject names that are not valid shell variable names.
1702 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev
/null
&&
1703 as_fn_error
"invalid package name: $ac_useropt"
1704 ac_useropt_orig
=$ac_useropt
1705 ac_useropt
=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1706 case $ac_user_opts in
1710 *) ac_unrecognized_opts
="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1711 ac_unrecognized_sep
=', ';;
1713 eval with_
$ac_useropt=no
;;
1716 # Obsolete; use --with-x.
1719 -x-includes |
--x-includes |
--x-include |
--x-includ |
--x-inclu \
1720 |
--x-incl |
--x-inc |
--x-in |
--x-i)
1721 ac_prev
=x_includes
;;
1722 -x-includes=* |
--x-includes=* |
--x-include=* |
--x-includ=* |
--x-inclu=* \
1723 |
--x-incl=* |
--x-inc=* |
--x-in=* |
--x-i=*)
1724 x_includes
=$ac_optarg ;;
1726 -x-libraries |
--x-libraries |
--x-librarie |
--x-librari \
1727 |
--x-librar |
--x-libra |
--x-libr |
--x-lib |
--x-li |
--x-l)
1728 ac_prev
=x_libraries
;;
1729 -x-libraries=* |
--x-libraries=* |
--x-librarie=* |
--x-librari=* \
1730 |
--x-librar=* |
--x-libra=* |
--x-libr=* |
--x-lib=* |
--x-li=* |
--x-l=*)
1731 x_libraries
=$ac_optarg ;;
1733 -*) as_fn_error
"unrecognized option: \`$ac_option'
1734 Try \`$0 --help' for more information."
1738 ac_envvar
=`expr "x$ac_option" : 'x\([^=]*\)='`
1739 # Reject names that are not valid shell variable names.
1740 case $ac_envvar in #(
1741 '' |
[0-9]* |
*[!_
$as_cr_alnum]* )
1742 as_fn_error
"invalid variable name: \`$ac_envvar'" ;;
1744 eval $ac_envvar=\
$ac_optarg
1745 export $ac_envvar ;;
1748 # FIXME: should be removed in autoconf 3.0.
1749 $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1750 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev
/null
&&
1751 $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1752 : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
1758 if test -n "$ac_prev"; then
1759 ac_option
=--`echo $ac_prev | sed 's/_/-/g'`
1760 as_fn_error
"missing argument to $ac_option"
1763 if test -n "$ac_unrecognized_opts"; then
1764 case $enable_option_checking in
1766 fatal
) as_fn_error
"unrecognized options: $ac_unrecognized_opts" ;;
1767 *) $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
1771 # Check all directory arguments for consistency.
1772 for ac_var
in exec_prefix prefix bindir sbindir libexecdir datarootdir \
1773 datadir sysconfdir sharedstatedir localstatedir includedir \
1774 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1775 libdir localedir mandir
1777 eval ac_val
=\$
$ac_var
1778 # Remove trailing slashes.
1781 ac_val
=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1782 eval $ac_var=\
$ac_val;;
1784 # Be sure to have absolute directory names.
1786 [\\/$
]* | ?
:[\\/]* ) continue;;
1787 NONE |
'' ) case $ac_var in *prefix
) continue;; esac;;
1789 as_fn_error
"expected an absolute directory name for --$ac_var: $ac_val"
1792 # There might be people who depend on the old broken behavior: `$host'
1793 # used to hold the argument of --host etc.
1794 # FIXME: To remove some day.
1797 target
=$target_alias
1799 # FIXME: To remove some day.
1800 if test "x$host_alias" != x
; then
1801 if test "x$build_alias" = x
; then
1802 cross_compiling
=maybe
1803 $as_echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
1804 If a cross compiler is detected then cross compile mode will be used." >&2
1805 elif test "x$build_alias" != "x$host_alias"; then
1811 test -n "$host_alias" && ac_tool_prefix
=$host_alias-
1813 test "$silent" = yes && exec 6>/dev
/null
1816 ac_pwd
=`pwd` && test -n "$ac_pwd" &&
1817 ac_ls_di
=`ls -di .` &&
1818 ac_pwd_ls_di
=`cd "$ac_pwd" && ls -di .` ||
1819 as_fn_error
"working directory cannot be determined"
1820 test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1821 as_fn_error
"pwd does not report name of working directory"
1824 # Find the source files, if location was not specified.
1825 if test -z "$srcdir"; then
1826 ac_srcdir_defaulted
=yes
1827 # Try the directory containing this script, then the parent directory.
1828 ac_confdir
=`$as_dirname -- "$as_myself" ||
1829 $as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1830 X"$as_myself" : 'X\(//\)[^/]' \| \
1831 X"$as_myself" : 'X\(//\)$' \| \
1832 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1833 $as_echo X"$as_myself" |
1834 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1852 if test ! -r "$srcdir/$ac_unique_file"; then
1856 ac_srcdir_defaulted
=no
1858 if test ! -r "$srcdir/$ac_unique_file"; then
1859 test "$ac_srcdir_defaulted" = yes && srcdir
="$ac_confdir or .."
1860 as_fn_error
"cannot find sources ($ac_unique_file) in $srcdir"
1862 ac_msg
="sources are in $srcdir, but \`cd $srcdir' does not work"
1864 cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error "$ac_msg"
1866 # When building in place, set srcdir=.
1867 if test "$ac_abs_confdir" = "$ac_pwd"; then
1870 # Remove unnecessary trailing slashes from srcdir.
1871 # Double slashes in file names in object file debugging info
1872 # mess up M-x gdb in Emacs.
1874 */) srcdir
=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1876 for ac_var
in $ac_precious_vars; do
1877 eval ac_env_
${ac_var}_set=\${${ac_var}+set}
1878 eval ac_env_
${ac_var}_value
=\$
${ac_var}
1879 eval ac_cv_env_
${ac_var}_set=\${${ac_var}+set}
1880 eval ac_cv_env_
${ac_var}_value
=\$
${ac_var}
1884 # Report the --help message.
1886 if test "$ac_init_help" = "long"; then
1887 # Omit some internal or obsolete options to make the list less imposing.
1888 # This message is too long to be a string in the A/UX 3.1 sh.
1890 \`configure' configures emacs 24.1.50 to adapt to many kinds of systems.
1892 Usage: $0 [OPTION]... [VAR=VALUE]...
1894 To assign environment variables (e.g., CC, CFLAGS...), specify them as
1895 VAR=VALUE. See below for descriptions of some of the useful variables.
1897 Defaults for the options are specified in brackets.
1900 -h, --help display this help and exit
1901 --help=short display options specific to this package
1902 --help=recursive display the short help of all the included packages
1903 -V, --version display version information and exit
1904 -q, --quiet, --silent do not print \`checking...' messages
1905 --cache-file=FILE cache test results in FILE [disabled]
1906 -C, --config-cache alias for \`--cache-file=config.cache'
1907 -n, --no-create do not create output files
1908 --srcdir=DIR find the sources in DIR [configure dir or \`..']
1910 Installation directories:
1911 --prefix=PREFIX install architecture-independent files in PREFIX
1912 [$ac_default_prefix]
1913 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
1916 By default, \`make install' will install all the files in
1917 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
1918 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1919 for instance \`--prefix=\$HOME'.
1921 For better control, use the options below.
1923 Fine tuning of the installation directories:
1924 --bindir=DIR user executables [EPREFIX/bin]
1925 --sbindir=DIR system admin executables [EPREFIX/sbin]
1926 --libexecdir=DIR program executables [EPREFIX/libexec]
1927 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
1928 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
1929 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
1930 --libdir=DIR object code libraries [EPREFIX/lib]
1931 --includedir=DIR C header files [PREFIX/include]
1932 --oldincludedir=DIR C header files for non-gcc [/usr/include]
1933 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
1934 --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
1935 --infodir=DIR info documentation [DATAROOTDIR/info]
1936 --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
1937 --mandir=DIR man documentation [DATAROOTDIR/man]
1938 --docdir=DIR documentation root [DATAROOTDIR/doc/emacs]
1939 --htmldir=DIR html documentation [DOCDIR]
1940 --dvidir=DIR dvi documentation [DOCDIR]
1941 --pdfdir=DIR pdf documentation [DOCDIR]
1942 --psdir=DIR ps documentation [DOCDIR]
1948 --program-prefix=PREFIX prepend PREFIX to installed program names
1949 --program-suffix=SUFFIX append SUFFIX to installed program names
1950 --program-transform-name=PROGRAM run
sed PROGRAM on installed program names
1953 --x-includes=DIR X include files are
in DIR
1954 --x-libraries=DIR X library files are
in DIR
1957 --build=BUILD configure
for building on BUILD
[guessed
]
1958 --host=HOST cross-compile to build programs to run on HOST
[BUILD
]
1962 if test -n "$ac_init_help"; then
1963 case $ac_init_help in
1964 short | recursive
) echo "Configuration of emacs 24.1.50:";;
1969 --disable-option-checking ignore unrecognized
--enable/--with options
1970 --disable-FEATURE do not include FEATURE
(same as
--enable-FEATURE=no
)
1971 --enable-FEATURE[=ARG
] include FEATURE
[ARG
=yes]
1972 --disable-ns-self-contained
1973 disable self contained build under NeXTstep
1974 --enable-asserts compile code with asserts enabled
1975 --disable-maintainer-mode
1976 disable
make rules and dependencies not useful
(and
1977 sometimes confusing
) to the casual installer
1978 --enable-locallisppath=PATH
1979 directories Emacs should search
for lisp files
1980 specific to this site
1981 --enable-checking[=LIST
]
1982 enable expensive run-time checks. With LIST
, enable
1983 only specific categories of checks. Categories are
:
1984 all
,yes,no. Flags are
: stringbytes
, stringoverrun
,
1985 stringfreelist
, xmallocoverrun
, conslist
1986 --enable-use-lisp-union-type
1987 use a union
for the Lisp_Object data
type. This is
1988 only useful
for development
for catching certain
1990 --enable-profiling build emacs with profiling support. This might not
1991 work on all platforms
1992 --enable-autodepend automatically generate dependencies to .h-files.
1993 Requires GNU Make and Gcc. Enabled
if GNU Make and
1995 --disable-dependency-tracking speeds up one-time build
1996 --enable-dependency-tracking do not reject slow dependency extractors
1997 --disable-largefile omit support
for large files
2000 --with-PACKAGE[=ARG
] use PACKAGE
[ARG
=yes]
2001 --without-PACKAGE do not use PACKAGE
(same as
--with-PACKAGE=no
)
2002 --without-pop don
't support POP mail retrieval with movemail
2003 --with-kerberos support Kerberos-authenticated POP
2004 --with-kerberos5 support Kerberos version 5 authenticated POP
2005 --with-hesiod support Hesiod to get the POP server host
2006 --with-mmdf support MMDF mailboxes
2007 --with-mail-unlink unlink, rather than empty, mail spool after reading
2008 --with-mailhost=HOSTNAME
2009 string giving default POP mail host
2010 --without-sound don't compile with sound support
2011 --without-sync-input process async input synchronously
2012 --with-x-toolkit=KIT use an X toolkit
(KIT one of
: yes or gtk
, gtk3
,
2013 lucid or athena
, motif
, no
)
2014 --with-wide-int prefer wide Emacs integers
(typically
62-bit)
2015 --without-xpm don
't compile with XPM image support
2016 --without-jpeg don't compile with JPEG image support
2017 --without-tiff don
't compile with TIFF image support
2018 --without-gif don't compile with GIF image support
2019 --without-png don
't compile with PNG image support
2020 --without-rsvg don't compile with SVG image support
2021 --without-xml2 don
't compile with XML parsing support
2022 --without-imagemagick don't compile with ImageMagick image support
2023 --without-xft don
't use XFT for anti aliased fonts
2024 --without-libotf don't use libotf
for OpenType font support
2025 --without-m17n-flt don
't use m17n-flt for text shaping
2026 --without-toolkit-scroll-bars
2027 don't use Motif or Xaw3d scroll bars
2028 --without-xaw3d don
't use Xaw3d
2029 --without-xim don't use X11 XIM
2030 --with-ns use NeXTstep
(Cocoa or GNUstep
) windowing system
2031 --without-gpm don
't use -lgpm for mouse support on a GNU/Linux
2033 --without-dbus don't compile with D-Bus support
2034 --without-gconf don
't compile with GConf support
2035 --without-gsettings don't compile with GSettings support
2036 --without-selinux don
't compile with SELinux support
2037 --without-gnutls don't use
-lgnutls for SSL
/TLS support
2038 --without-makeinfo don
't require makeinfo for building manuals
2039 --without-compress-info don't
compress the installed Info pages
2040 --with-pkg-config-prog=PATH
2041 path to pkg-config
for finding GTK and librsvg
2042 --with-crt-dir=DIR directory containing crtn.o etc. The default is
2043 /usr
/lib
, or
/usr
/lib64 on some platforms.
2044 --with-gameuser=USER user
for shared game score files
2045 --with-gnustep-conf=PATH
2046 path to GNUstep.conf
; default
$GNUSTEP_CONFIG_FILE,
2047 or
/etc
/GNUstep
/GNUstep.conf
2048 --with-x use the X Window System
2050 Some influential environment variables
:
2051 CC C compiler
command
2052 CFLAGS C compiler flags
2053 LDFLAGS linker flags
, e.g.
-L<lib dir
> if you have libraries
in a
2054 nonstandard directory
<lib dir
>
2055 LIBS libraries to pass to the linker
, e.g.
-l<library
>
2056 CPPFLAGS
(Objective
) C
/C
++ preprocessor flags
, e.g.
-I<include dir
> if
2057 you have headers
in a nonstandard directory
<include dir
>
2059 XMKMF Path to xmkmf
, Makefile generator
for X Window System
2061 Use these variables to override the choices made by
`configure' or to help
2062 it to find libraries and programs with nonstandard names/locations.
2064 Report bugs to the package provider.
2069 if test "$ac_init_help" = "recursive"; then
2070 # If there are subdirs, report their specific --help.
2071 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
2072 test -d "$ac_dir" ||
2073 { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
2078 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
2080 ac_dir_suffix=/`$as_echo "$ac_dir" |
sed 's|^\.[\\/]||'`
2081 # A ".." for each directory in $ac_dir_suffix.
2082 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" |
sed 's|/[^\\/]*|/..|g;s|/||'`
2083 case $ac_top_builddir_sub in
2084 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
2085 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
2088 ac_abs_top_builddir=$ac_pwd
2089 ac_abs_builddir=$ac_pwd$ac_dir_suffix
2090 # for backward compatibility:
2091 ac_top_builddir=$ac_top_build_prefix
2094 .) # We are building in place.
2096 ac_top_srcdir=$ac_top_builddir_sub
2097 ac_abs_top_srcdir=$ac_pwd ;;
2098 [\\/]* | ?:[\\/]* ) # Absolute name.
2099 ac_srcdir=$srcdir$ac_dir_suffix;
2100 ac_top_srcdir=$srcdir
2101 ac_abs_top_srcdir=$srcdir ;;
2103 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
2104 ac_top_srcdir=$ac_top_build_prefix$srcdir
2105 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
2107 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
2109 cd "$ac_dir" || { ac_status=$?; continue; }
2110 # Check for guested configure.
2111 if test -f "$ac_srcdir/configure.gnu"; then
2113 $SHELL "$ac_srcdir/configure.gnu" --help=recursive
2114 elif test -f "$ac_srcdir/configure"; then
2116 $SHELL "$ac_srcdir/configure" --help=recursive
2118 $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
2120 cd "$ac_pwd" || { ac_status=$?; break; }
2124 test -n "$ac_init_help" && exit $ac_status
2125 if $ac_init_version; then
2127 emacs configure 24.1.50
2128 generated by GNU Autoconf 2.65
2130 Copyright (C) 2009 Free Software Foundation, Inc.
2131 This configure script is free software; the Free Software Foundation
2132 gives unlimited permission to copy, distribute and modify it.
2137 ## ------------------------ ##
2138 ## Autoconf initialization. ##
2139 ## ------------------------ ##
2141 # ac_fn_c_try_compile LINENO
2142 # --------------------------
2143 # Try to compile conftest.$ac_ext, and return whether this succeeded.
2144 ac_fn_c_try_compile ()
2146 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2147 rm -f conftest.$ac_objext
2148 if { { ac_try="$ac_compile"
2150 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
2151 *) ac_try_echo
=$ac_try;;
2153 eval ac_try_echo
="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2154 $as_echo "$ac_try_echo"; } >&5
2155 (eval "$ac_compile") 2>conftest.err
2157 if test -s conftest.err
; then
2158 grep -v '^ *+' conftest.err
>conftest.er1
2159 cat conftest.er1
>&5
2160 mv -f conftest.er1 conftest.err
2162 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2163 test $ac_status = 0; } && {
2164 test -z "$ac_c_werror_flag" ||
2165 test ! -s conftest.err
2166 } && test -s conftest.
$ac_objext; then :
2169 $as_echo "$as_me: failed program was:" >&5
2170 sed 's/^/| /' conftest.
$ac_ext >&5
2174 eval $as_lineno_stack; test "x$as_lineno_stack" = x
&& { as_lineno
=; unset as_lineno
;}
2175 as_fn_set_status
$ac_retval
2177 } # ac_fn_c_try_compile
2179 # ac_fn_c_try_cpp LINENO
2180 # ----------------------
2181 # Try to preprocess conftest.$ac_ext, and return whether this succeeded.
2184 as_lineno
=${as_lineno-"$1"} as_lineno_stack
=as_lineno_stack
=$as_lineno_stack
2185 if { { ac_try
="$ac_cpp conftest.$ac_ext"
2187 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
2188 *) ac_try_echo=$ac_try;;
2190 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2191 $as_echo "$ac_try_echo"; } >&5
2192 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
2194 if test -s conftest.err; then
2195 grep -v '^ *+' conftest.err >conftest.er1
2196 cat conftest.er1 >&5
2197 mv -f conftest.er1 conftest.err
2199 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2200 test $ac_status = 0; } >/dev/null && {
2201 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
2202 test ! -s conftest.err
2206 $as_echo "$as_me: failed program was:" >&5
2207 sed 's/^/| /' conftest.$ac_ext >&5
2211 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2212 as_fn_set_status $ac_retval
2216 # ac_fn_c_check_header_mongrel LINENO HEADER VAR INCLUDES
2217 # -------------------------------------------------------
2218 # Tests whether HEADER exists, giving a warning if it cannot be compiled using
2219 # the include files in INCLUDES and setting the cache variable VAR
2221 ac_fn_c_check_header_mongrel ()
2223 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2224 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
2225 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2226 $as_echo_n "checking for $2... " >&6; }
2227 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
2228 $as_echo_n "(cached) " >&6
2231 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2232 $as_echo "$ac_res" >&6; }
2234 # Is the header compilable?
2235 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5
2236 $as_echo_n "checking $2 usability... " >&6; }
2237 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2238 /* end confdefs.h. */
2242 if ac_fn_c_try_compile "$LINENO"; then :
2243 ac_header_compiler=yes
2245 ac_header_compiler=no
2247 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2248 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5
2249 $as_echo "$ac_header_compiler" >&6; }
2251 # Is the header present?
2252 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5
2253 $as_echo_n "checking $2 presence... " >&6; }
2254 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2255 /* end confdefs.h. */
2258 if ac_fn_c_try_cpp "$LINENO"; then :
2259 ac_header_preproc=yes
2261 ac_header_preproc=no
2263 rm -f conftest.err conftest.$ac_ext
2264 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5
2265 $as_echo "$ac_header_preproc" >&6; }
2267 # So? What about this header?
2268 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in #((
2270 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5
2271 $as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;}
2272 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
2273 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
2276 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5
2277 $as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;}
2278 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: check for missing prerequisite headers?" >&5
2279 $as_echo "$as_me: WARNING: $2: check for missing prerequisite headers?" >&2;}
2280 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5
2281 $as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;}
2282 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&5
2283 $as_echo "$as_me: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&2;}
2284 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
2285 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
2288 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2289 $as_echo_n "checking for $2... " >&6; }
2290 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
2291 $as_echo_n "(cached) " >&6
2293 eval "$3=\$ac_header_compiler"
2296 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2297 $as_echo "$ac_res" >&6; }
2299 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2301 } # ac_fn_c_check_header_mongrel
2303 # ac_fn_c_try_run LINENO
2304 # ----------------------
2305 # Try to link conftest.$ac_ext, and return whether this succeeded. Assumes
2306 # that executables *can* be run.
2309 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2310 if { { ac_try="$ac_link"
2312 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
2313 *) ac_try_echo
=$ac_try;;
2315 eval ac_try_echo
="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2316 $as_echo "$ac_try_echo"; } >&5
2317 (eval "$ac_link") 2>&5
2319 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2320 test $ac_status = 0; } && { ac_try
='./conftest$ac_exeext'
2321 { { case "(($ac_try" in
2322 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
2323 *) ac_try_echo=$ac_try;;
2325 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2326 $as_echo "$ac_try_echo"; } >&5
2327 (eval "$ac_try") 2>&5
2329 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2330 test $ac_status = 0; }; }; then :
2333 $as_echo "$as_me: program exited with status $ac_status" >&5
2334 $as_echo "$as_me: failed program was:" >&5
2335 sed 's/^/| /' conftest.$ac_ext >&5
2337 ac_retval=$ac_status
2339 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
2340 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2341 as_fn_set_status $ac_retval
2345 # ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES
2346 # -------------------------------------------------------
2347 # Tests whether HEADER exists and can be compiled using the include files in
2348 # INCLUDES, setting the cache variable VAR accordingly.
2349 ac_fn_c_check_header_compile ()
2351 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2352 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2353 $as_echo_n "checking for $2... " >&6; }
2354 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
2355 $as_echo_n "(cached) " >&6
2357 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2358 /* end confdefs.h. */
2362 if ac_fn_c_try_compile "$LINENO"; then :
2367 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2370 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2371 $as_echo "$ac_res" >&6; }
2372 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2374 } # ac_fn_c_check_header_compile
2376 # ac_fn_c_try_link LINENO
2377 # -----------------------
2378 # Try to link conftest.$ac_ext, and return whether this succeeded.
2381 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2382 rm -f conftest.$ac_objext conftest$ac_exeext
2383 if { { ac_try="$ac_link"
2385 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
2386 *) ac_try_echo
=$ac_try;;
2388 eval ac_try_echo
="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2389 $as_echo "$ac_try_echo"; } >&5
2390 (eval "$ac_link") 2>conftest.err
2392 if test -s conftest.err
; then
2393 grep -v '^ *+' conftest.err
>conftest.er1
2394 cat conftest.er1
>&5
2395 mv -f conftest.er1 conftest.err
2397 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2398 test $ac_status = 0; } && {
2399 test -z "$ac_c_werror_flag" ||
2400 test ! -s conftest.err
2401 } && test -s conftest
$ac_exeext && {
2402 test "$cross_compiling" = yes ||
2403 $as_test_x conftest
$ac_exeext
2407 $as_echo "$as_me: failed program was:" >&5
2408 sed 's/^/| /' conftest.
$ac_ext >&5
2412 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
2413 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
2414 # interfere with the next link command; also delete a directory that is
2415 # left behind by Apple's compiler. We do this before executing the actions.
2416 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
2417 eval $as_lineno_stack; test "x$as_lineno_stack" = x
&& { as_lineno
=; unset as_lineno
;}
2418 as_fn_set_status
$ac_retval
2420 } # ac_fn_c_try_link
2422 # ac_fn_c_check_decl LINENO SYMBOL VAR
2423 # ------------------------------------
2424 # Tests whether SYMBOL is declared, setting cache variable VAR accordingly.
2425 ac_fn_c_check_decl
()
2427 as_lineno
=${as_lineno-"$1"} as_lineno_stack
=as_lineno_stack
=$as_lineno_stack
2428 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $2 is declared" >&5
2429 $as_echo_n "checking whether $2 is declared... " >&6; }
2430 if { as_var
=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
2431 $as_echo_n "(cached) " >&6
2433 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
2434 /* end confdefs.h. */
2447 if ac_fn_c_try_compile
"$LINENO"; then :
2452 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
2455 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2456 $as_echo "$ac_res" >&6; }
2457 eval $as_lineno_stack; test "x$as_lineno_stack" = x
&& { as_lineno
=; unset as_lineno
;}
2459 } # ac_fn_c_check_decl
2461 # ac_fn_c_check_header_preproc LINENO HEADER VAR
2462 # ----------------------------------------------
2463 # Tests whether HEADER is present, setting the cache variable VAR accordingly.
2464 ac_fn_c_check_header_preproc
()
2466 as_lineno
=${as_lineno-"$1"} as_lineno_stack
=as_lineno_stack
=$as_lineno_stack
2467 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2468 $as_echo_n "checking for $2... " >&6; }
2469 if { as_var
=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
2470 $as_echo_n "(cached) " >&6
2472 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
2473 /* end confdefs.h. */
2476 if ac_fn_c_try_cpp
"$LINENO"; then :
2481 rm -f conftest.err conftest.
$ac_ext
2484 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2485 $as_echo "$ac_res" >&6; }
2486 eval $as_lineno_stack; test "x$as_lineno_stack" = x
&& { as_lineno
=; unset as_lineno
;}
2488 } # ac_fn_c_check_header_preproc
2490 # ac_fn_c_check_func LINENO FUNC VAR
2491 # ----------------------------------
2492 # Tests whether FUNC exists, setting the cache variable VAR accordingly
2493 ac_fn_c_check_func
()
2495 as_lineno
=${as_lineno-"$1"} as_lineno_stack
=as_lineno_stack
=$as_lineno_stack
2496 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2497 $as_echo_n "checking for $2... " >&6; }
2498 if { as_var
=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
2499 $as_echo_n "(cached) " >&6
2501 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
2502 /* end confdefs.h. */
2503 /* Define $2 to an innocuous variant, in case <limits.h> declares $2.
2504 For example, HP-UX 11i <limits.h> declares gettimeofday. */
2505 #define $2 innocuous_$2
2507 /* System header to define __stub macros and hopefully few prototypes,
2508 which can conflict with char $2 (); below.
2509 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
2510 <limits.h> exists even on freestanding compilers. */
2513 # include <limits.h>
2515 # include <assert.h>
2520 /* Override any GCC internal prototype to avoid an error.
2521 Use char because int might match the return type of a GCC
2522 builtin and then its argument prototype would still apply. */
2527 /* The GNU C library defines this for functions which it implements
2528 to always fail with ENOSYS. Some functions are actually named
2529 something starting with __ and the normal name is an alias. */
2530 #if defined __stub_$2 || defined __stub___$2
2542 if ac_fn_c_try_link
"$LINENO"; then :
2547 rm -f core conftest.err conftest.
$ac_objext \
2548 conftest
$ac_exeext conftest.
$ac_ext
2551 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2552 $as_echo "$ac_res" >&6; }
2553 eval $as_lineno_stack; test "x$as_lineno_stack" = x
&& { as_lineno
=; unset as_lineno
;}
2555 } # ac_fn_c_check_func
2557 # ac_fn_c_check_member LINENO AGGR MEMBER VAR INCLUDES
2558 # ----------------------------------------------------
2559 # Tries to find if the field MEMBER exists in type AGGR, after including
2560 # INCLUDES, setting cache variable VAR accordingly.
2561 ac_fn_c_check_member
()
2563 as_lineno
=${as_lineno-"$1"} as_lineno_stack
=as_lineno_stack
=$as_lineno_stack
2564 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2.$3" >&5
2565 $as_echo_n "checking for $2.$3... " >&6; }
2566 if { as_var
=$4; eval "test \"\${$as_var+set}\" = set"; }; then :
2567 $as_echo_n "(cached) " >&6
2569 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
2570 /* end confdefs.h. */
2582 if ac_fn_c_try_compile
"$LINENO"; then :
2585 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
2586 /* end confdefs.h. */
2592 if (sizeof ac_aggr.$3)
2598 if ac_fn_c_try_compile
"$LINENO"; then :
2603 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
2605 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
2608 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2609 $as_echo "$ac_res" >&6; }
2610 eval $as_lineno_stack; test "x$as_lineno_stack" = x
&& { as_lineno
=; unset as_lineno
;}
2612 } # ac_fn_c_check_member
2614 # ac_fn_c_check_type LINENO TYPE VAR INCLUDES
2615 # -------------------------------------------
2616 # Tests whether TYPE exists after having included INCLUDES, setting cache
2617 # variable VAR accordingly.
2618 ac_fn_c_check_type
()
2620 as_lineno
=${as_lineno-"$1"} as_lineno_stack
=as_lineno_stack
=$as_lineno_stack
2621 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2622 $as_echo_n "checking for $2... " >&6; }
2623 if { as_var
=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
2624 $as_echo_n "(cached) " >&6
2627 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
2628 /* end confdefs.h. */
2639 if ac_fn_c_try_compile
"$LINENO"; then :
2640 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
2641 /* end confdefs.h. */
2652 if ac_fn_c_try_compile
"$LINENO"; then :
2657 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
2659 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
2662 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2663 $as_echo "$ac_res" >&6; }
2664 eval $as_lineno_stack; test "x$as_lineno_stack" = x
&& { as_lineno
=; unset as_lineno
;}
2666 } # ac_fn_c_check_type
2668 # ac_fn_c_compute_int LINENO EXPR VAR INCLUDES
2669 # --------------------------------------------
2670 # Tries to find the compile-time value of EXPR in a program that includes
2671 # INCLUDES, setting VAR accordingly. Returns whether the value could be
2673 ac_fn_c_compute_int
()
2675 as_lineno
=${as_lineno-"$1"} as_lineno_stack
=as_lineno_stack
=$as_lineno_stack
2676 if test "$cross_compiling" = yes; then
2677 # Depending upon the size, compute the lo and hi bounds.
2678 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
2679 /* end confdefs.h. */
2684 static int test_array [1 - 2 * !(($2) >= 0)];
2691 if ac_fn_c_try_compile
"$LINENO"; then :
2694 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
2695 /* end confdefs.h. */
2700 static int test_array [1 - 2 * !(($2) <= $ac_mid)];
2707 if ac_fn_c_try_compile
"$LINENO"; then :
2708 ac_hi
=$ac_mid; break
2710 as_fn_arith
$ac_mid + 1 && ac_lo
=$as_val
2711 if test $ac_lo -le $ac_mid; then
2715 as_fn_arith
2 '*' $ac_mid + 1 && ac_mid
=$as_val
2717 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
2720 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
2721 /* end confdefs.h. */
2726 static int test_array [1 - 2 * !(($2) < 0)];
2733 if ac_fn_c_try_compile
"$LINENO"; then :
2736 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
2737 /* end confdefs.h. */
2742 static int test_array [1 - 2 * !(($2) >= $ac_mid)];
2749 if ac_fn_c_try_compile
"$LINENO"; then :
2750 ac_lo
=$ac_mid; break
2752 as_fn_arith
'(' $ac_mid ')' - 1 && ac_hi
=$as_val
2753 if test $ac_mid -le $ac_hi; then
2757 as_fn_arith
2 '*' $ac_mid && ac_mid
=$as_val
2759 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
2764 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
2766 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
2767 # Binary search between lo and hi bounds.
2768 while test "x$ac_lo" != "x$ac_hi"; do
2769 as_fn_arith
'(' $ac_hi - $ac_lo ')' / 2 + $ac_lo && ac_mid
=$as_val
2770 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
2771 /* end confdefs.h. */
2776 static int test_array [1 - 2 * !(($2) <= $ac_mid)];
2783 if ac_fn_c_try_compile
"$LINENO"; then :
2786 as_fn_arith
'(' $ac_mid ')' + 1 && ac_lo
=$as_val
2788 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
2791 ?
*) eval "$3=\$ac_lo"; ac_retval
=0 ;;
2795 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
2796 /* end confdefs.h. */
2798 static long int longval () { return $2; }
2799 static unsigned long int ulongval () { return $2; }
2806 FILE *f = fopen ("conftest.val", "w");
2811 long int i = longval ();
2814 fprintf (f, "%ld", i);
2818 unsigned long int i = ulongval ();
2821 fprintf (f, "%lu", i);
2823 /* Do not output a trailing newline, as this causes \r\n confusion
2824 on some platforms. */
2825 return ferror (f) || fclose (f) != 0;
2831 if ac_fn_c_try_run
"$LINENO"; then :
2832 echo >>conftest.val
; read $3 <conftest.val
; ac_retval
=0
2836 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
2837 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
2841 eval $as_lineno_stack; test "x$as_lineno_stack" = x
&& { as_lineno
=; unset as_lineno
;}
2842 as_fn_set_status
$ac_retval
2844 } # ac_fn_c_compute_int
2845 cat >config.log
<<_ACEOF
2846 This file contains any messages produced by compilers while
2847 running configure, to aid debugging if configure makes a mistake.
2849 It was created by emacs $as_me 24.1.50, which was
2850 generated by GNU Autoconf 2.65. Invocation command line was
2862 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
2863 uname -m = `(uname -m) 2>/dev/null || echo unknown`
2864 uname -r = `(uname -r) 2>/dev/null || echo unknown`
2865 uname -s = `(uname -s) 2>/dev/null || echo unknown`
2866 uname -v = `(uname -v) 2>/dev/null || echo unknown`
2868 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
2869 /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
2871 /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
2872 /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
2873 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
2874 /usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
2875 /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
2876 /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
2877 /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
2881 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
2885 test -z "$as_dir" && as_dir
=.
2886 $as_echo "PATH: $as_dir"
2902 # Keep a trace of the command line.
2903 # Strip out --no-create and --no-recursion so they do not pile up.
2904 # Strip out --silent because we don't want to record it for future runs.
2905 # Also quote any args containing shell meta-characters.
2906 # Make two passes to allow for proper duplicate-argument suppression.
2910 ac_must_keep_next
=false
2916 -no-create |
--no-c* |
-n |
-no-recursion |
--no-r*) continue ;;
2917 -q |
-quiet |
--quiet |
--quie |
--qui |
--qu |
--q \
2918 |
-silent |
--silent |
--silen |
--sile |
--sil)
2921 ac_arg
=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
2924 1) as_fn_append ac_configure_args0
" '$ac_arg'" ;;
2926 as_fn_append ac_configure_args1
" '$ac_arg'"
2927 if test $ac_must_keep_next = true
; then
2928 ac_must_keep_next
=false
# Got value, back to normal.
2931 *=* |
--config-cache |
-C |
-disable-* |
--disable-* \
2932 |
-enable-* |
--enable-* |
-gas |
--g* |
-nfp |
--nf* \
2933 |
-q |
-quiet |
--q* |
-silent |
--sil* |
-v |
-verb* \
2934 |
-with-* |
--with-* |
-without-* |
--without-* |
--x)
2935 case "$ac_configure_args0 " in
2936 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
2939 -* ) ac_must_keep_next
=true
;;
2942 as_fn_append ac_configure_args
" '$ac_arg'"
2947 { ac_configure_args0
=; unset ac_configure_args0
;}
2948 { ac_configure_args1
=; unset ac_configure_args1
;}
2950 # When interrupted or exit'd, cleanup temporary files, and complete
2951 # config.log. We remove comments because anyway the quotes in there
2952 # would cause problems or look ugly.
2953 # WARNING: Use '\'' to represent an apostrophe within the trap.
2954 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
2955 trap 'exit_status=$?
2956 # Save into config.log some information that might help in debugging.
2961 ## ---------------- ##
2962 ## Cache variables. ##
2963 ## ---------------- ##
2966 # The following way of writing the cache mishandles newlines in values,
2968 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
2969 eval ac_val=\$$ac_var
2973 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
2974 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
2977 _ | IFS | as_nl) ;; #(
2978 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
2979 *) { eval $ac_var=; unset $ac_var;} ;;
2984 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
2985 *${as_nl}ac_space=\ *)
2987 "s/'\''/'\''\\\\'\'''\''/g;
2988 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
2991 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
2999 ## ----------------- ##
3000 ## Output variables. ##
3001 ## ----------------- ##
3004 for ac_var in $ac_subst_vars
3006 eval ac_val=\$$ac_var
3008 *\'\''*) ac_val
=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
3010 $as_echo "$ac_var='\''$ac_val'\''"
3014 if test -n "$ac_subst_files"; then
3016 ## ------------------- ##
3017 ## File substitutions. ##
3018 ## ------------------- ##
3021 for ac_var
in $ac_subst_files
3023 eval ac_val
=\$
$ac_var
3025 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
3027 $as_echo "$ac_var='\''$ac_val'\''"
3032 if test -s confdefs.h; then
3042 test "$ac_signal" != 0 &&
3043 $as_echo "$as_me: caught signal $ac_signal"
3044 $as_echo "$as_me: exit $exit_status"
3046 rm -f core *.core core.conftest.* &&
3047 rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
3050 for ac_signal
in 1 2 13 15; do
3051 trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
3055 # confdefs.h avoids OS command line length limits that DEFS can exceed.
3056 rm -f -r conftest
* confdefs.h
3058 $as_echo "/* confdefs.h */" > confdefs.h
3060 # Predefined preprocessor variables.
3062 cat >>confdefs.h
<<_ACEOF
3063 #define PACKAGE_NAME "$PACKAGE_NAME"
3066 cat >>confdefs.h
<<_ACEOF
3067 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
3070 cat >>confdefs.h
<<_ACEOF
3071 #define PACKAGE_VERSION "$PACKAGE_VERSION"
3074 cat >>confdefs.h
<<_ACEOF
3075 #define PACKAGE_STRING "$PACKAGE_STRING"
3078 cat >>confdefs.h
<<_ACEOF
3079 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
3082 cat >>confdefs.h
<<_ACEOF
3083 #define PACKAGE_URL "$PACKAGE_URL"
3087 # Let the site file select an alternate cache file if it wants to.
3088 # Prefer an explicitly selected file to automatically selected ones.
3091 if test -n "$CONFIG_SITE"; then
3092 ac_site_file1
=$CONFIG_SITE
3093 elif test "x$prefix" != xNONE
; then
3094 ac_site_file1
=$prefix/share
/config.site
3095 ac_site_file2
=$prefix/etc
/config.site
3097 ac_site_file1
=$ac_default_prefix/share
/config.site
3098 ac_site_file2
=$ac_default_prefix/etc
/config.site
3100 for ac_site_file
in "$ac_site_file1" "$ac_site_file2"
3102 test "x$ac_site_file" = xNONE
&& continue
3103 if test /dev
/null
!= "$ac_site_file" && test -r "$ac_site_file"; then
3104 { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
3105 $as_echo "$as_me: loading site script $ac_site_file" >&6;}
3106 sed 's/^/| /' "$ac_site_file" >&5
3111 if test -r "$cache_file"; then
3112 # Some versions of bash will fail to source /dev/null (special files
3113 # actually), so we avoid doing that. DJGPP emulates it as a regular file.
3114 if test /dev
/null
!= "$cache_file" && test -f "$cache_file"; then
3115 { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
3116 $as_echo "$as_me: loading cache $cache_file" >&6;}
3118 [\\/]* | ?
:[\\/]* ) .
"$cache_file";;
3119 *) .
"./$cache_file";;
3123 { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
3124 $as_echo "$as_me: creating cache $cache_file" >&6;}
3128 as_fn_append ac_header_list
" stdlib.h"
3129 as_fn_append ac_header_list
" unistd.h"
3130 as_fn_append ac_header_list
" sys/param.h"
3131 as_fn_append ac_func_list
" readlinkat"
3132 gl_getopt_required
=GNU
3133 as_fn_append ac_header_list
" getopt.h"
3134 as_fn_append ac_header_list
" wchar.h"
3135 as_fn_append ac_header_list
" stdint.h"
3136 as_fn_append ac_header_list
" inttypes.h"
3137 as_fn_append ac_func_list
" lstat"
3138 as_fn_append ac_func_list
" alarm"
3139 as_fn_append ac_func_list
" pthread_sigmask"
3140 as_fn_append ac_func_list
" readlink"
3141 as_fn_append ac_header_list
" sys/socket.h"
3142 as_fn_append ac_func_list
" tzset"
3143 as_fn_append ac_func_list
" strtoimax"
3144 as_fn_append ac_func_list
" strtoumax"
3145 as_fn_append ac_func_list
" symlink"
3146 as_fn_append ac_header_list
" sys/stat.h"
3147 as_fn_append ac_header_list
" sys/time.h"
3148 as_fn_append ac_func_list
" localtime_r"
3149 # Check that the precious variables saved in the cache have kept the same
3151 ac_cache_corrupted
=false
3152 for ac_var
in $ac_precious_vars; do
3153 eval ac_old_set
=\
$ac_cv_env_${ac_var}_set
3154 eval ac_new_set
=\
$ac_env_${ac_var}_set
3155 eval ac_old_val
=\
$ac_cv_env_${ac_var}_value
3156 eval ac_new_val
=\
$ac_env_${ac_var}_value
3157 case $ac_old_set,$ac_new_set in
3159 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
3160 $as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
3161 ac_cache_corrupted
=: ;;
3163 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
3164 $as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
3165 ac_cache_corrupted
=: ;;
3168 if test "x$ac_old_val" != "x$ac_new_val"; then
3169 # differences in whitespace do not lead to failure.
3170 ac_old_val_w
=`echo x $ac_old_val`
3171 ac_new_val_w
=`echo x $ac_new_val`
3172 if test "$ac_old_val_w" != "$ac_new_val_w"; then
3173 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
3174 $as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
3175 ac_cache_corrupted
=:
3177 { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
3178 $as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
3179 eval $ac_var=\
$ac_old_val
3181 { $as_echo "$as_me:${as_lineno-$LINENO}: former value: \`$ac_old_val'" >&5
3182 $as_echo "$as_me: former value: \`$ac_old_val'" >&2;}
3183 { $as_echo "$as_me:${as_lineno-$LINENO}: current value: \`$ac_new_val'" >&5
3184 $as_echo "$as_me: current value: \`$ac_new_val'" >&2;}
3187 # Pass precious variables to config.status.
3188 if test "$ac_new_set" = set; then
3190 *\'*) ac_arg
=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
3191 *) ac_arg
=$ac_var=$ac_new_val ;;
3193 case " $ac_configure_args " in
3194 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
3195 *) as_fn_append ac_configure_args
" '$ac_arg'" ;;
3199 if $ac_cache_corrupted; then
3200 { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3201 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3202 { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
3203 $as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
3204 as_fn_error
"run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5
3206 ## -------------------- ##
3207 ## Main body of script. ##
3208 ## -------------------- ##
3211 ac_cpp
='$CPP $CPPFLAGS'
3212 ac_compile
='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3213 ac_link
='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3214 ac_compiler_gnu
=$ac_cv_c_compiler_gnu
3217 ac_config_headers
="$ac_config_headers src/config.h:src/config.in"
3221 for ac_dir
in build-aux
"$srcdir"/build-aux
; do
3222 for ac_t
in install-sh
install.sh shtool
; do
3223 if test -f "$ac_dir/$ac_t"; then
3225 ac_install_sh
="$ac_aux_dir/$ac_t -c"
3230 if test -z "$ac_aux_dir"; then
3231 as_fn_error
"cannot find install-sh, install.sh, or shtool in build-aux \"$srcdir\"/build-aux" "$LINENO" 5
3234 # These three variables are undocumented and unsupported,
3235 # and are intended to be withdrawn in a future Autoconf release.
3236 # They can cause serious problems if a builder's source tree is in a directory
3237 # whose full name contains unusual characters.
3238 ac_config_guess
="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
3239 ac_config_sub
="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
3240 ac_configure
="$SHELL $ac_aux_dir/configure" # Please don't use this var.
3243 am__api_version
='1.11'
3245 # Find a good install program. We prefer a C program (faster),
3246 # so one script is as good as another. But avoid the broken or
3247 # incompatible versions:
3248 # SysV /etc/install, /usr/sbin/install
3249 # SunOS /usr/etc/install
3250 # IRIX /sbin/install
3252 # AmigaOS /C/install, which installs bootblocks on floppy discs
3253 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
3254 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
3255 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
3256 # OS/2's system install, which has a completely different semantic
3257 # ./install, which can be erroneously created by make from ./install.sh.
3258 # Reject install programs that cannot install multiple files.
3259 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5
3260 $as_echo_n "checking for a BSD-compatible install... " >&6; }
3261 if test -z "$INSTALL"; then
3262 if test "${ac_cv_path_install+set}" = set; then :
3263 $as_echo_n "(cached) " >&6
3265 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
3269 test -z "$as_dir" && as_dir
=.
3270 # Account for people who put trailing slashes in PATH elements.
3271 case $as_dir/ in #((
3272 .
/ | .
// |
/[cC
]/* | \
3273 /etc
/* |
/usr
/sbin
/* |
/usr
/etc
/* |
/sbin
/* |
/usr
/afsws
/bin
/* | \
3274 ?
:[\\/]os2
[\\/]install[\\/]* | ?
:[\\/]OS2
[\\/]INSTALL
[\\/]* | \
3277 # OSF1 and SCO ODT 3.0 have their own names for install.
3278 # Don't use installbsd from OSF since it installs stuff as root
3280 for ac_prog
in ginstall scoinst
install; do
3281 for ac_exec_ext
in '' $ac_executable_extensions; do
3282 if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; }; then
3283 if test $ac_prog = install &&
3284 grep dspmsg
"$as_dir/$ac_prog$ac_exec_ext" >/dev
/null
2>&1; then
3285 # AIX install. It has an incompatible calling convention.
3287 elif test $ac_prog = install &&
3288 grep pwplus
"$as_dir/$ac_prog$ac_exec_ext" >/dev
/null
2>&1; then
3289 # program-specific install script used by HP pwplus--don't use.
3292 rm -rf conftest.one conftest.two conftest.dir
3293 echo one
> conftest.one
3294 echo two
> conftest.two
3296 if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two
"`pwd`/conftest.dir" &&
3297 test -s conftest.one
&& test -s conftest.two
&&
3298 test -s conftest.dir
/conftest.one
&&
3299 test -s conftest.dir
/conftest.two
3301 ac_cv_path_install
="$as_dir/$ac_prog$ac_exec_ext -c"
3314 rm -rf conftest.one conftest.two conftest.dir
3317 if test "${ac_cv_path_install+set}" = set; then
3318 INSTALL
=$ac_cv_path_install
3320 # As a last resort, use the slow shell script. Don't cache a
3321 # value for INSTALL within a source directory, because that will
3322 # break other packages using the cache if that directory is
3323 # removed, or if the value is a relative name.
3324 INSTALL
=$ac_install_sh
3327 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
3328 $as_echo "$INSTALL" >&6; }
3330 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
3331 # It thinks the first close brace ends the variable substitution.
3332 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM
='${INSTALL}'
3334 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT
='${INSTALL}'
3336 test -z "$INSTALL_DATA" && INSTALL_DATA
='${INSTALL} -m 644'
3338 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether build environment is sane" >&5
3339 $as_echo_n "checking whether build environment is sane... " >&6; }
3342 echo timestamp
> conftest.
file
3343 # Reject unsafe characters in $srcdir or the absolute working directory
3344 # name. Accept space and tab only in the latter.
3348 *[\\\"\
#\$\&\'\`$am_lf]*)
3349 as_fn_error
"unsafe absolute working directory name" "$LINENO" 5;;
3352 *[\\\"\
#\$\&\'\`$am_lf\ \ ]*)
3353 as_fn_error
"unsafe srcdir value: \`$srcdir'" "$LINENO" 5;;
3356 # Do `set' in a subshell so we don't clobber the current shell's
3357 # arguments. Must try -L first in case configure is actually a
3358 # symlink; some systems play weird games with the mod time of symlinks
3359 # (eg FreeBSD returns the mod time of the symlink's containing
3362 set X
`ls -Lt "$srcdir/configure" conftest.file 2> /dev/null`
3363 if test "$*" = "X"; then
3365 set X
`ls -t "$srcdir/configure" conftest.file`
3368 if test "$*" != "X $srcdir/configure conftest.file" \
3369 && test "$*" != "X conftest.file $srcdir/configure"; then
3371 # If neither matched, then we have a broken ls. This can happen
3372 # if, for instance, CONFIG_SHELL is bash and it inherits a
3373 # broken ls alias from the environment. This has actually
3374 # happened. Such a system could not be considered "sane".
3375 as_fn_error
"ls -t appears to fail. Make sure there is not a broken
3376 alias in your environment" "$LINENO" 5
3379 test "$2" = conftest.
file
3385 as_fn_error
"newly created file is older than distributed files!
3386 Check your system clock" "$LINENO" 5
3388 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3389 $as_echo "yes" >&6; }
3390 test "$program_prefix" != NONE
&&
3391 program_transform_name
="s&^&$program_prefix&;$program_transform_name"
3392 # Use a double $ so make ignores it.
3393 test "$program_suffix" != NONE
&&
3394 program_transform_name
="s&\$&$program_suffix&;$program_transform_name"
3395 # Double any \ or $.
3396 # By default was `s,x,x', remove it if useless.
3397 ac_script
='s/[\\$]/&&/g;s/;s,x,x,$//'
3398 program_transform_name
=`$as_echo "$program_transform_name" | sed "$ac_script"`
3400 # expand $ac_aux_dir to an absolute path
3401 am_aux_dir
=`cd $ac_aux_dir && pwd`
3403 if test x
"${MISSING+set}" != xset
; then
3406 MISSING
="\${SHELL} \"$am_aux_dir/missing\"" ;;
3408 MISSING
="\${SHELL} $am_aux_dir/missing" ;;
3411 # Use eval to expand $SHELL
3412 if eval "$MISSING --run true"; then
3413 am_missing_run
="$MISSING --run "
3416 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`missing' script is too old or missing" >&5
3417 $as_echo "$as_me: WARNING: \`missing' script is too old or missing" >&2;}
3420 if test x
"${install_sh}" != xset
; then
3423 install_sh
="\${SHELL} '$am_aux_dir/install-sh'" ;;
3425 install_sh
="\${SHELL} $am_aux_dir/install-sh"
3429 # Installed binaries are usually stripped using `strip' when the user
3430 # run `make install-strip'. However `strip' might not be the right
3431 # tool to use in cross-compilation environments, therefore Automake
3432 # will honor the `STRIP' environment variable to overrule this program.
3433 if test "$cross_compiling" != no
; then
3434 if test -n "$ac_tool_prefix"; then
3435 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
3436 set dummy
${ac_tool_prefix}strip
; ac_word
=$2
3437 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3438 $as_echo_n "checking for $ac_word... " >&6; }
3439 if test "${ac_cv_prog_STRIP+set}" = set; then :
3440 $as_echo_n "(cached) " >&6
3442 if test -n "$STRIP"; then
3443 ac_cv_prog_STRIP
="$STRIP" # Let the user override the test.
3445 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
3449 test -z "$as_dir" && as_dir
=.
3450 for ac_exec_ext
in '' $ac_executable_extensions; do
3451 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3452 ac_cv_prog_STRIP
="${ac_tool_prefix}strip"
3453 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3462 STRIP
=$ac_cv_prog_STRIP
3463 if test -n "$STRIP"; then
3464 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
3465 $as_echo "$STRIP" >&6; }
3467 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3468 $as_echo "no" >&6; }
3473 if test -z "$ac_cv_prog_STRIP"; then
3475 # Extract the first word of "strip", so it can be a program name with args.
3476 set dummy strip
; ac_word
=$2
3477 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3478 $as_echo_n "checking for $ac_word... " >&6; }
3479 if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then :
3480 $as_echo_n "(cached) " >&6
3482 if test -n "$ac_ct_STRIP"; then
3483 ac_cv_prog_ac_ct_STRIP
="$ac_ct_STRIP" # Let the user override the test.
3485 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
3489 test -z "$as_dir" && as_dir
=.
3490 for ac_exec_ext
in '' $ac_executable_extensions; do
3491 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3492 ac_cv_prog_ac_ct_STRIP
="strip"
3493 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3502 ac_ct_STRIP
=$ac_cv_prog_ac_ct_STRIP
3503 if test -n "$ac_ct_STRIP"; then
3504 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
3505 $as_echo "$ac_ct_STRIP" >&6; }
3507 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3508 $as_echo "no" >&6; }
3511 if test "x$ac_ct_STRIP" = x
; then
3514 case $cross_compiling:$ac_tool_warned in
3516 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3517 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3518 ac_tool_warned
=yes ;;
3523 STRIP
="$ac_cv_prog_STRIP"
3527 INSTALL_STRIP_PROGRAM
="\$(install_sh) -c -s"
3529 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a thread-safe mkdir -p" >&5
3530 $as_echo_n "checking for a thread-safe mkdir -p... " >&6; }
3531 if test -z "$MKDIR_P"; then
3532 if test "${ac_cv_path_mkdir+set}" = set; then :
3533 $as_echo_n "(cached) " >&6
3535 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
3536 for as_dir
in $PATH$PATH_SEPARATOR/opt
/sfw
/bin
3539 test -z "$as_dir" && as_dir
=.
3540 for ac_prog
in mkdir gmkdir
; do
3541 for ac_exec_ext
in '' $ac_executable_extensions; do
3542 { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; } ||
continue
3543 case `"$as_dir/$ac_prog$ac_exec_ext" --version 2>&1` in #(
3544 'mkdir (GNU coreutils) '* | \
3545 'mkdir (coreutils) '* | \
3546 'mkdir (fileutils) '4.1*)
3547 ac_cv_path_mkdir
=$as_dir/$ac_prog$ac_exec_ext
3557 test -d .
/--version && rmdir .
/--version
3558 if test "${ac_cv_path_mkdir+set}" = set; then
3559 MKDIR_P
="$ac_cv_path_mkdir -p"
3561 # As a last resort, use the slow shell script. Don't cache a
3562 # value for MKDIR_P within a source directory, because that will
3563 # break other packages using the cache if that directory is
3564 # removed, or if the value is a relative name.
3565 MKDIR_P
="$ac_install_sh -d"
3568 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MKDIR_P" >&5
3569 $as_echo "$MKDIR_P" >&6; }
3574 [\\/$
]* | ?
:[\\/]*) ;;
3575 */*) mkdir_p
="\$(top_builddir)/$mkdir_p" ;;
3578 for ac_prog
in gawk mawk nawk
awk
3580 # Extract the first word of "$ac_prog", so it can be a program name with args.
3581 set dummy
$ac_prog; ac_word
=$2
3582 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3583 $as_echo_n "checking for $ac_word... " >&6; }
3584 if test "${ac_cv_prog_AWK+set}" = set; then :
3585 $as_echo_n "(cached) " >&6
3587 if test -n "$AWK"; then
3588 ac_cv_prog_AWK
="$AWK" # Let the user override the test.
3590 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
3594 test -z "$as_dir" && as_dir
=.
3595 for ac_exec_ext
in '' $ac_executable_extensions; do
3596 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3597 ac_cv_prog_AWK
="$ac_prog"
3598 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3608 if test -n "$AWK"; then
3609 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
3610 $as_echo "$AWK" >&6; }
3612 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3613 $as_echo "no" >&6; }
3617 test -n "$AWK" && break
3620 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
3621 $as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
3623 ac_make
=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
3624 if { as_var
=ac_cv_prog_make_
${ac_make}_set; eval "test \"\${$as_var+set}\" = set"; }; then :
3625 $as_echo_n "(cached) " >&6
3627 cat >conftest.
make <<\_ACEOF
3630 @
echo '@@@%%%=$(MAKE)=@@@%%%'
3632 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
3633 case `${MAKE-make} -f conftest.make 2>/dev/null` in
3635 eval ac_cv_prog_make_
${ac_make}_set
=yes;;
3637 eval ac_cv_prog_make_
${ac_make}_set
=no
;;
3641 if eval test \
$ac_cv_prog_make_${ac_make}_set
= yes; then
3642 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3643 $as_echo "yes" >&6; }
3646 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3647 $as_echo "no" >&6; }
3648 SET_MAKE
="MAKE=${MAKE-make}"
3651 rm -rf .tst
2>/dev
/null
3652 mkdir .tst
2>/dev
/null
3653 if test -d .tst
; then
3658 rmdir .tst
2>/dev
/null
3660 if test "`cd $srcdir && pwd`" != "`pwd`"; then
3661 # Use -I$(srcdir) only when $(srcdir) != ., so that make's output
3662 # is not polluted with repeated "-I."
3663 am__isrc
=' -I$(srcdir)'
3664 # test to see if srcdir already configured
3665 if test -f $srcdir/config.status
; then
3666 as_fn_error
"source directory already configured; run \"make distclean\" there first" "$LINENO" 5
3670 # test whether we have cygpath
3671 if test -z "$CYGPATH_W"; then
3672 if (cygpath
--version) >/dev
/null
2>/dev
/null
; then
3673 CYGPATH_W
='cygpath -w'
3680 # Define the identity of the package.
3685 cat >>confdefs.h
<<_ACEOF
3686 #define PACKAGE "$PACKAGE"
3690 cat >>confdefs.h
<<_ACEOF
3691 #define VERSION "$VERSION"
3694 # Some tools Automake needs.
3696 ACLOCAL
=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
3699 AUTOCONF
=${AUTOCONF-"${am_missing_run}autoconf"}
3702 AUTOMAKE
=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
3705 AUTOHEADER
=${AUTOHEADER-"${am_missing_run}autoheader"}
3708 MAKEINFO
=${MAKEINFO-"${am_missing_run}makeinfo"}
3710 # We need awk for the "check" target. The system "awk" is bad on
3712 # Always define AMTAR for backward compatibility.
3714 AMTAR
=${AMTAR-"${am_missing_run}tar"}
3716 am__tar
='${AMTAR} chof - "$$tardir"'; am__untar
='${AMTAR} xf -'
3725 lispdir
='${datadir}/emacs/${version}/lisp'
3726 locallisppath
='${datadir}/emacs/${version}/site-lisp:'\
3727 '${datadir}/emacs/site-lisp'
3728 lisppath
='${locallisppath}:${lispdir}:${datadir}/emacs/${version}/leim'
3729 etcdir
='${datadir}/emacs/${version}/etc'
3730 archlibdir
='${libexecdir}/emacs/${version}/${configuration}'
3731 docdir
='${datadir}/emacs/${version}/etc'
3732 gamedir
='${localstatedir}/games/emacs'
3737 # Check whether --with-pop was given.
3738 if test "${with_pop+set}" = set; then :
3744 if test "$with_pop" = yes; then
3745 $as_echo "#define MAIL_USE_POP 1" >>confdefs.h
3750 # Check whether --with-kerberos was given.
3751 if test "${with_kerberos+set}" = set; then :
3752 withval
=$with_kerberos;
3757 if test "$with_kerberos" != no
; then
3758 $as_echo "#define KERBEROS 1" >>confdefs.h
3763 # Check whether --with-kerberos5 was given.
3764 if test "${with_kerberos5+set}" = set; then :
3765 withval
=$with_kerberos5;
3770 if test "${with_kerberos5}" != no
; then
3771 if test "${with_kerberos}" = no
; then
3773 $as_echo "#define KERBEROS 1" >>confdefs.h
3777 $as_echo "#define KERBEROS5 1" >>confdefs.h
3782 # Check whether --with-hesiod was given.
3783 if test "${with_hesiod+set}" = set; then :
3784 withval
=$with_hesiod;
3789 if test "$with_hesiod" != no
; then
3791 $as_echo "#define HESIOD 1" >>confdefs.h
3796 # Check whether --with-mmdf was given.
3797 if test "${with_mmdf+set}" = set; then :
3803 if test "$with_mmdf" != no
; then
3805 $as_echo "#define MAIL_USE_MMDF 1" >>confdefs.h
3810 # Check whether --with-mail-unlink was given.
3811 if test "${with_mail_unlink+set}" = set; then :
3812 withval
=$with_mail_unlink;
3817 if test "$with_mail_unlink" != no
; then
3819 $as_echo "#define MAIL_UNLINK_SPOOL 1" >>confdefs.h
3824 # Check whether --with-mailhost was given.
3825 if test "${with_mailhost+set}" = set; then :
3826 withval
=$with_mailhost;
3827 cat >>confdefs.h
<<_ACEOF
3828 #define MAILHOST "$withval"
3835 # Check whether --with-sound was given.
3836 if test "${with_sound+set}" = set; then :
3837 withval
=$with_sound;
3844 # Check whether --with-sync-input was given.
3845 if test "${with_sync_input+set}" = set; then :
3846 withval
=$with_sync_input;
3851 if test "$with_sync_input" = yes; then
3853 $as_echo "#define SYNC_INPUT 1" >>confdefs.h
3858 # Check whether --with-x-toolkit was given.
3859 if test "${with_x_toolkit+set}" = set; then :
3860 withval
=$with_x_toolkit; case "${withval}" in
3861 y | ye |
yes ) val
=gtk
;;
3863 l | lu | luc | luci | lucid
) val
=lucid
;;
3864 a |
at | ath | athe | athen | athena
) val
=athena
;;
3865 m | mo | mot | moti | motif
) val
=motif
;;
3866 g | gt | gtk
) val
=gtk
;;
3869 as_fn_error
"\`--with-x-toolkit=$withval' is invalid;
3870 this option's value should be \`yes', \`no', \`lucid', \`athena', \`motif', \`gtk' or
3871 \`gtk3'. \`yes' and \`gtk' are synonyms. \`athena' and \`lucid' are synonyms." "$LINENO" 5
3880 # Check whether --with-wide-int was given.
3881 if test "${with_wide_int+set}" = set; then :
3882 withval
=$with_wide_int;
3887 if test "$with_wide_int" = yes; then
3889 $as_echo "#define WIDE_EMACS_INT 1" >>confdefs.h
3894 # Check whether --with-xpm was given.
3895 if test "${with_xpm+set}" = set; then :
3902 # Check whether --with-jpeg was given.
3903 if test "${with_jpeg+set}" = set; then :
3910 # Check whether --with-tiff was given.
3911 if test "${with_tiff+set}" = set; then :
3918 # Check whether --with-gif was given.
3919 if test "${with_gif+set}" = set; then :
3926 # Check whether --with-png was given.
3927 if test "${with_png+set}" = set; then :
3934 # Check whether --with-rsvg was given.
3935 if test "${with_rsvg+set}" = set; then :
3942 # Check whether --with-xml2 was given.
3943 if test "${with_xml2+set}" = set; then :
3950 # Check whether --with-imagemagick was given.
3951 if test "${with_imagemagick+set}" = set; then :
3952 withval
=$with_imagemagick;
3954 with_imagemagick
=yes
3959 # Check whether --with-xft was given.
3960 if test "${with_xft+set}" = set; then :
3967 # Check whether --with-libotf was given.
3968 if test "${with_libotf+set}" = set; then :
3969 withval
=$with_libotf;
3975 # Check whether --with-m17n-flt was given.
3976 if test "${with_m17n_flt+set}" = set; then :
3977 withval
=$with_m17n_flt;
3984 # Check whether --with-toolkit-scroll-bars was given.
3985 if test "${with_toolkit_scroll_bars+set}" = set; then :
3986 withval
=$with_toolkit_scroll_bars;
3988 with_toolkit_scroll_bars
=yes
3992 # Check whether --with-xaw3d was given.
3993 if test "${with_xaw3d+set}" = set; then :
3994 withval
=$with_xaw3d;
4000 # Check whether --with-xim was given.
4001 if test "${with_xim+set}" = set; then :
4008 # Check whether --with-ns was given.
4009 if test "${with_ns+set}" = set; then :
4017 # Check whether --with-gpm was given.
4018 if test "${with_gpm+set}" = set; then :
4025 # Check whether --with-dbus was given.
4026 if test "${with_dbus+set}" = set; then :
4033 # Check whether --with-gconf was given.
4034 if test "${with_gconf+set}" = set; then :
4035 withval
=$with_gconf;
4041 # Check whether --with-gsettings was given.
4042 if test "${with_gsettings+set}" = set; then :
4043 withval
=$with_gsettings;
4049 # Check whether --with-selinux was given.
4050 if test "${with_selinux+set}" = set; then :
4051 withval
=$with_selinux;
4057 # Check whether --with-gnutls was given.
4058 if test "${with_gnutls+set}" = set; then :
4059 withval
=$with_gnutls;
4065 ## For the times when you want to build Emacs but don't have
4066 ## a suitable makeinfo, and can live without the manuals.
4068 # Check whether --with-makeinfo was given.
4069 if test "${with_makeinfo+set}" = set; then :
4070 withval
=$with_makeinfo;
4076 ## Makefile.in needs the cache file name.
4079 ## This is an option because I do not know if all info/man support
4080 ## compressed files, nor how to test if they do so.
4082 # Check whether --with-compress-info was given.
4083 if test "${with_compress_info+set}" = set; then :
4084 withval
=$with_compress_info;
4086 with_compress_info
=yes
4089 if test $with_compress_info = yes; then
4097 # Check whether --with-pkg-config-prog was given.
4098 if test "${with_pkg_config_prog+set}" = set; then :
4099 withval
=$with_pkg_config_prog;
4102 if test "X${with_pkg_config_prog}" != X
; then
4103 if test "${with_pkg_config_prog}" != yes; then
4104 PKG_CONFIG
="${with_pkg_config_prog}"
4110 # Check whether --with-crt-dir was given.
4111 if test "${with_crt_dir+set}" = set; then :
4112 withval
=$with_crt_dir;
4115 CRT_DIR
="${with_crt_dir}"
4118 # Check whether --with-gameuser was given.
4119 if test "${with_gameuser+set}" = set; then :
4120 withval
=$with_gameuser;
4123 test "X${with_gameuser}" != X
&& test "${with_gameuser}" != yes \
4124 && gameuser
="${with_gameuser}"
4125 test "X$gameuser" = X
&& gameuser
=games
4128 # Check whether --with-gnustep-conf was given.
4129 if test "${with_gnustep_conf+set}" = set; then :
4130 withval
=$with_gnustep_conf;
4133 test "X${with_gnustep_conf}" != X
&& test "${with_gnustep_conf}" != yes && \
4134 GNUSTEP_CONFIG_FILE
="${with_gnustep_conf}"
4135 test "X$GNUSTEP_CONFIG_FILE" = "X" && \
4136 GNUSTEP_CONFIG_FILE
=/etc
/GNUstep
/GNUstep.conf
4138 # Check whether --enable-ns-self-contained was given.
4139 if test "${enable_ns_self_contained+set}" = set; then :
4140 enableval
=$enable_ns_self_contained; EN_NS_SELF_CONTAINED
=$enableval
4142 EN_NS_SELF_CONTAINED
=yes
4146 # Check whether --enable-asserts was given.
4147 if test "${enable_asserts+set}" = set; then :
4148 enableval
=$enable_asserts; USE_XASSERTS
=$enableval
4154 # Check whether --enable-maintainer-mode was given.
4155 if test "${enable_maintainer_mode+set}" = set; then :
4156 enableval
=$enable_maintainer_mode; USE_MAINTAINER_MODE
=$enableval
4158 USE_MAINTAINER_MODE
=yes
4161 if test $USE_MAINTAINER_MODE = yes; then
4168 # Check whether --enable-locallisppath was given.
4169 if test "${enable_locallisppath+set}" = set; then :
4170 enableval
=$enable_locallisppath; if test "${enableval}" = "no"; then
4172 elif test "${enableval}" != "yes"; then
4173 locallisppath
=${enableval}
4178 # Check whether --enable-checking was given.
4179 if test "${enable_checking+set}" = set; then :
4180 enableval
=$enable_checking; ac_checking_flags
="${enableval}"
4183 IFS
="${IFS= }"; ac_save_IFS
="$IFS"; IFS
="$IFS,"
4184 for check
in $ac_checking_flags
4187 # these set all the flags to specific states
4188 yes) ac_enable_checking
=1 ;;
4189 no
) ac_enable_checking
= ;
4190 ac_gc_check_stringbytes
= ;
4191 ac_gc_check_string_overrun
= ;
4192 ac_gc_check_string_free_list
= ;
4193 ac_xmalloc_overrun
= ;
4194 ac_gc_check_cons_list
= ;;
4195 all
) ac_enable_checking
=1 ;
4196 ac_gc_check_stringbytes
=1 ;
4197 ac_gc_check_string_overrun
=1 ;
4198 ac_gc_check_string_free_list
=1 ;
4199 ac_xmalloc_overrun
=1 ;
4200 ac_gc_check_cons_list
=1 ;;
4201 # these enable particular checks
4202 stringbytes
) ac_gc_check_stringbytes
=1 ;;
4203 stringoverrun
) ac_gc_check_string_overrun
=1 ;;
4204 stringfreelist
) ac_gc_check_string_free_list
=1 ;;
4205 xmallocoverrun
) ac_xmalloc_overrun
=1 ;;
4206 conslist
) ac_gc_check_cons_list
=1 ;;
4207 *) as_fn_error
"unknown check category $check" "$LINENO" 5 ;;
4212 if test x
$ac_enable_checking != x
; then
4214 $as_echo "#define ENABLE_CHECKING 1" >>confdefs.h
4217 if test x
$ac_gc_check_stringbytes != x
; then
4219 $as_echo "#define GC_CHECK_STRING_BYTES 1" >>confdefs.h
4222 if test x
$ac_gc_check_string_overrun != x
; then
4224 $as_echo "#define GC_CHECK_STRING_OVERRUN 1" >>confdefs.h
4227 if test x
$ac_gc_check_string_free_list != x
; then
4229 $as_echo "#define GC_CHECK_STRING_FREE_LIST 1" >>confdefs.h
4232 if test x
$ac_xmalloc_overrun != x
; then
4234 $as_echo "#define XMALLOC_OVERRUN_CHECK 1" >>confdefs.h
4237 if test x
$ac_gc_check_cons_list != x
; then
4239 $as_echo "#define GC_CHECK_CONS_LIST 1" >>confdefs.h
4243 # Check whether --enable-use-lisp-union-type was given.
4244 if test "${enable_use_lisp_union_type+set}" = set; then :
4245 enableval
=$enable_use_lisp_union_type; if test "${enableval}" != "no"; then
4247 $as_echo "#define USE_LISP_UNION_TYPE 1" >>confdefs.h
4254 # Check whether --enable-profiling was given.
4255 if test "${enable_profiling+set}" = set; then :
4256 enableval
=$enable_profiling; ac_enable_profiling
="${enableval}"
4259 if test x
$ac_enable_profiling != x
; then
4260 PROFILING_CFLAGS
="-DPROFILING=1 -pg"
4266 # Check whether --enable-autodepend was given.
4267 if test "${enable_autodepend+set}" = set; then :
4268 enableval
=$enable_autodepend; ac_enable_autodepend
="${enableval}"
4270 ac_enable_autodepend
=yes
4274 #### Make srcdir absolute, if it isn't already. It's important to
4275 #### avoid running the path through pwd unnecessarily, since pwd can
4276 #### give you automounter prefixes, which can go away. We do all this
4277 #### so Emacs can find its files when run uninstalled.
4278 ## Make sure CDPATH doesn't affect cd (in case PWD is relative).
4283 ## We may be able to use the $PWD environment variable to make this
4284 ## absolute. But sometimes PWD is inaccurate.
4285 ## Note: we used to use ${PWD} at the end instead of `pwd`,
4286 ## but that tested only for a well-formed and valid PWD,
4287 ## it did not object when PWD was well-formed and valid but just wrong.
4288 if test ".${PWD}" != "." && test ".`(cd ${PWD} ; sh -c pwd)`" = ".`pwd`" ;
4292 srcdir
="`(cd ${srcdir}; pwd)`"
4295 * ) srcdir
="`(cd ${srcdir}; pwd)`" ;;
4298 #### Given the configuration name, set machfile and opsysfile to the
4299 #### names of the m/*.h and s/*.h files we should use.
4301 ### Canonicalize the configuration name.
4303 # Make sure we can run config.sub.
4304 $SHELL "$ac_aux_dir/config.sub" sun4
>/dev
/null
2>&1 ||
4305 as_fn_error
"cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5
4307 { $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
4308 $as_echo_n "checking build system type... " >&6; }
4309 if test "${ac_cv_build+set}" = set; then :
4310 $as_echo_n "(cached) " >&6
4312 ac_build_alias
=$build_alias
4313 test "x$ac_build_alias" = x
&&
4314 ac_build_alias
=`$SHELL "$ac_aux_dir/config.guess"`
4315 test "x$ac_build_alias" = x
&&
4316 as_fn_error
"cannot guess build type; you must specify one" "$LINENO" 5
4317 ac_cv_build
=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
4318 as_fn_error
"$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5
4321 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
4322 $as_echo "$ac_cv_build" >&6; }
4323 case $ac_cv_build in
4325 *) as_fn_error
"invalid value of canonical build" "$LINENO" 5;;
4328 ac_save_IFS
=$IFS; IFS
='-'
4334 # Remember, the first character of IFS is used to create $*,
4335 # except with old shells:
4338 case $build_os in *\
*) build_os
=`echo "$build_os" | sed 's/ /-/g'`;; esac
4341 { $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
4342 $as_echo_n "checking host system type... " >&6; }
4343 if test "${ac_cv_host+set}" = set; then :
4344 $as_echo_n "(cached) " >&6
4346 if test "x$host_alias" = x
; then
4347 ac_cv_host
=$ac_cv_build
4349 ac_cv_host
=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
4350 as_fn_error
"$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5
4354 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
4355 $as_echo "$ac_cv_host" >&6; }
4358 *) as_fn_error
"invalid value of canonical host" "$LINENO" 5;;
4361 ac_save_IFS
=$IFS; IFS
='-'
4367 # Remember, the first character of IFS is used to create $*,
4368 # except with old shells:
4371 case $host_os in *\
*) host_os
=`echo "$host_os" | sed 's/ /-/g'`;; esac
4375 configuration
=${host_alias-${build_alias-$host}}
4379 ### If you add support for a new configuration, add code to this
4380 ### switch statement to recognize your configuration name and select
4381 ### the appropriate operating system and machine description files.
4383 ### You would hope that you could choose an m/*.h file pretty much
4384 ### based on the machine portion of the configuration name, and an s/*.h
4385 ### file based on the operating system portion. However, it turns out
4386 ### that each m/*.h file is pretty manufacturer-specific - for
4387 ### example mips.h is MIPS
4388 ### So we basically have to have a special case for each
4389 ### configuration name.
4391 ### As far as handling version numbers on operating systems is
4392 ### concerned, make sure things will fail in a fixable way. If
4393 ### /etc/MACHINES doesn't say anything about version numbers, be
4394 ### prepared to handle anything reasonably. If version numbers
4395 ### matter, be sure /etc/MACHINES says something about it.
4397 machine
='' opsys
='' unported
=no
4398 case "${canonical}" in
4400 ## GNU/Linux and similar ports
4403 case ${canonical} in
4404 alpha
*) machine
=alpha
;;
4405 s390x-
*) machine
=ibms390x
;;
4406 powerpc
*) machine
=macppc
;;
4407 sparc
*) machine
=sparc
;;
4408 ia64
*) machine
=ia64
;;
4409 m68k
*) machine
=m68k
;;
4410 x86_64
*) machine
=amdx86-64
;;
4417 case "${canonical}" in
4418 alpha
*) machine
=alpha
;;
4419 amd64-
*|x86_64-
*) machine
=amdx86-64
;;
4420 ia64-
*) machine
=ia64
;;
4421 i
[3456]86-*) machine
=intel386
;;
4422 powerpc-
*) machine
=macppc
;;
4423 sparc-
*) machine
=sparc
;;
4424 sparc64-
*) machine
=sparc
;;
4428 ## FreeBSD kernel + glibc based userland
4431 case "${canonical}" in
4432 alpha
*) machine
=alpha
;;
4433 amd64-
*|x86_64-
*) machine
=amdx86-64
;;
4434 ia64-
*) machine
=ia64
;;
4435 i
[3456]86-*) machine
=intel386
;;
4436 powerpc-
*) machine
=macppc
;;
4437 sparc-
*) machine
=sparc
;;
4438 sparc64-
*) machine
=sparc
;;
4445 case "${canonical}" in
4446 alpha
*) machine
=alpha
;;
4447 x86_64-
*) machine
=amdx86-64
;;
4448 i
[3456]86-*) machine
=intel386
;;
4449 m68k-
*) machine
=m68k
;;
4450 powerpc-
*) machine
=macppc
;;
4451 sparc
*-) machine
=sparc
;;
4452 vax-
*) machine
=vax
;;
4459 case "${canonical}" in
4460 alpha
*) machine
=alpha
;;
4461 x86_64-
*) machine
=amdx86-64
;;
4462 i386-
*) machine
=intel386
;;
4463 powerpc-
*) machine
=macppc
;;
4464 sparc
*) machine
=sparc
;;
4465 vax-
*) machine
=vax
;;
4469 ## Apple Darwin / Mac OS X
4471 case "${canonical}" in
4472 i
[3456]86-* ) machine
=intel386
;;
4473 powerpc-
* ) machine
=macppc
;;
4474 x86_64-
* ) machine
=amdx86-64
;;
4478 # Define CPP as follows to make autoconf work correctly.
4479 CPP
="${CC-cc} -E -no-cpp-precomp"
4480 # Use fink packages if available.
4481 if test -d /sw
/include
&& test -d /sw
/lib
; then
4482 GCC_TEST_OPTIONS
="-I/sw/include -L/sw/lib"
4483 CPP
="${CPP} ${GCC_TEST_OPTIONS}"
4484 NON_GCC_TEST_OPTIONS
=${GCC_TEST_OPTIONS}
4488 ## HP 9000 series 700 and 800, running HP/UX
4489 hppa
*-hp-hpux10.2
* )
4492 hppa
*-hp-hpux1[1-9]* )
4494 CFLAGS
="-D_INCLUDE__STDC_A1_SOURCE $CFLAGS"
4498 rs6000-ibm-aix4.
[23]* )
4499 machine
=ibmrs6000 opsys
=aix4-2
4501 powerpc-ibm-aix4.
[23]* )
4502 machine
=ibmrs6000 opsys
=aix4-2
4504 rs6000-ibm-aix
[56]* )
4505 machine
=ibmrs6000 opsys
=aix4-2
4507 powerpc-ibm-aix
[56]* )
4508 machine
=ibmrs6000 opsys
=aix4-2
4511 ## Silicon Graphics machines
4515 # Without defining _LANGUAGE_C, things get masked out in the headers
4516 # so that, for instance, grepping for `free' in stdlib.h fails and
4517 # AC_HEADER_STD_C fails. (MIPSPro 7.2.1.2m compilers, Irix 6.5.3m).
4518 NON_GNU_CPP
="/lib/cpp -D_LANGUAGE_C"
4519 NON_GCC_TEST_OPTIONS
="-D_LANGUAGE_C"
4524 | i
[3456]86-*-solaris2* | i
[3456]86-*-sunos5* \
4525 | x86_64-
*-solaris2* | x86_64-
*-sunos5*)
4526 case "${canonical}" in
4527 i
[3456]86-*-* ) machine
=intel386
;;
4528 amd64-
*-*|x86_64-
*-*) machine
=amdx86-64
;;
4529 sparc
* ) machine
=sparc
;;
4532 case "${canonical}" in
4533 *-sunos5.6
* |
*-solaris2.6
* )
4535 NON_GNU_CPP
=/usr
/ccs
/lib
/cpp
4538 *-sunos5.
[7-9]* |
*-solaris2.
[7-9]* )
4540 emacs_check_sunpro_c
=yes
4541 NON_GNU_CPP
=/usr
/ccs
/lib
/cpp
4543 *-sunos5* |
*-solaris* )
4545 emacs_check_sunpro_c
=yes
4546 NON_GNU_CPP
=/usr
/ccs
/lib
/cpp
4549 ## Watch out for a compiler that we know will not work.
4550 case "${canonical}" in
4551 *-solaris* |
*-sunos5* )
4552 if [ "x$CC" = x
/usr
/ucb
/cc
]; then
4553 ## /usr/ucb/cc doesn't work;
4554 ## we should find some other compiler that does work.
4562 ## Intel 386 machines where we don't care about the manufacturer.
4565 case "${canonical}" in
4566 *-cygwin ) opsys
=cygwin
;;
4567 *-darwin* ) opsys
=darwin
4568 CPP
="${CC-cc} -E -no-cpp-precomp"
4570 *-sysv4.2uw
* ) opsys
=unixware
; NON_GNU_CPP
=/lib
/cpp
;;
4571 *-sysv5uw* ) opsys
=unixware
; NON_GNU_CPP
=/lib
/cpp
;;
4572 *-sysv5OpenUNIX* ) opsys
=unixware
; NON_GNU_CPP
=/lib
/cpp
;;
4573 ## Otherwise, we'll fall through to the generic opsys code at the bottom.
4582 ### If the code above didn't choose an operating system, just choose
4583 ### an operating system based on the configuration name. You really
4584 ### only want to use this when you have no idea what the right
4585 ### operating system is; if you know what operating systems a machine
4586 ### runs, it's cleaner to make it explicit in the case statement
4588 if test x
"${opsys}" = x
; then
4589 case "${canonical}" in
4590 *-gnu* ) opsys
=gnu
;;
4599 if test $unported = yes; then
4600 as_fn_error
"Emacs hasn't been ported to \`${canonical}' systems.
4601 Check \`etc/MACHINES' for recognized configuration names." "$LINENO" 5
4604 if test -n "$machine"; then
4605 machfile
="m/${machine}.h"
4609 opsysfile
="s/${opsys}.h"
4612 #### Choose a compiler.
4613 test -n "$CC" && cc_specified
=yes
4615 # Save the value of CFLAGS that the user specified.
4616 SPECIFIED_CFLAGS
="$CFLAGS"
4619 ac_cpp
='$CPP $CPPFLAGS'
4620 ac_compile
='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4621 ac_link
='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4622 ac_compiler_gnu
=$ac_cv_c_compiler_gnu
4623 if test -n "$ac_tool_prefix"; then
4624 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
4625 set dummy
${ac_tool_prefix}gcc
; ac_word
=$2
4626 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4627 $as_echo_n "checking for $ac_word... " >&6; }
4628 if test "${ac_cv_prog_CC+set}" = set; then :
4629 $as_echo_n "(cached) " >&6
4631 if test -n "$CC"; then
4632 ac_cv_prog_CC
="$CC" # Let the user override the test.
4634 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
4638 test -z "$as_dir" && as_dir
=.
4639 for ac_exec_ext
in '' $ac_executable_extensions; do
4640 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4641 ac_cv_prog_CC
="${ac_tool_prefix}gcc"
4642 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4652 if test -n "$CC"; then
4653 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
4654 $as_echo "$CC" >&6; }
4656 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4657 $as_echo "no" >&6; }
4662 if test -z "$ac_cv_prog_CC"; then
4664 # Extract the first word of "gcc", so it can be a program name with args.
4665 set dummy gcc
; ac_word
=$2
4666 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4667 $as_echo_n "checking for $ac_word... " >&6; }
4668 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then :
4669 $as_echo_n "(cached) " >&6
4671 if test -n "$ac_ct_CC"; then
4672 ac_cv_prog_ac_ct_CC
="$ac_ct_CC" # Let the user override the test.
4674 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
4678 test -z "$as_dir" && as_dir
=.
4679 for ac_exec_ext
in '' $ac_executable_extensions; do
4680 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4681 ac_cv_prog_ac_ct_CC
="gcc"
4682 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4691 ac_ct_CC
=$ac_cv_prog_ac_ct_CC
4692 if test -n "$ac_ct_CC"; then
4693 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
4694 $as_echo "$ac_ct_CC" >&6; }
4696 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4697 $as_echo "no" >&6; }
4700 if test "x$ac_ct_CC" = x
; then
4703 case $cross_compiling:$ac_tool_warned in
4705 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4706 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4707 ac_tool_warned
=yes ;;
4715 if test -z "$CC"; then
4716 if test -n "$ac_tool_prefix"; then
4717 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
4718 set dummy
${ac_tool_prefix}cc
; ac_word
=$2
4719 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4720 $as_echo_n "checking for $ac_word... " >&6; }
4721 if test "${ac_cv_prog_CC+set}" = set; then :
4722 $as_echo_n "(cached) " >&6
4724 if test -n "$CC"; then
4725 ac_cv_prog_CC
="$CC" # Let the user override the test.
4727 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
4731 test -z "$as_dir" && as_dir
=.
4732 for ac_exec_ext
in '' $ac_executable_extensions; do
4733 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4734 ac_cv_prog_CC
="${ac_tool_prefix}cc"
4735 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4745 if test -n "$CC"; then
4746 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
4747 $as_echo "$CC" >&6; }
4749 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4750 $as_echo "no" >&6; }
4756 if test -z "$CC"; then
4757 # Extract the first word of "cc", so it can be a program name with args.
4758 set dummy cc
; ac_word
=$2
4759 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4760 $as_echo_n "checking for $ac_word... " >&6; }
4761 if test "${ac_cv_prog_CC+set}" = set; then :
4762 $as_echo_n "(cached) " >&6
4764 if test -n "$CC"; then
4765 ac_cv_prog_CC
="$CC" # Let the user override the test.
4768 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
4772 test -z "$as_dir" && as_dir
=.
4773 for ac_exec_ext
in '' $ac_executable_extensions; do
4774 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4775 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
4776 ac_prog_rejected
=yes
4780 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4787 if test $ac_prog_rejected = yes; then
4788 # We found a bogon in the path, so make sure we never use it.
4789 set dummy
$ac_cv_prog_CC
4791 if test $# != 0; then
4792 # We chose a different compiler from the bogus one.
4793 # However, it has the same basename, so the bogon will be chosen
4794 # first if we set CC to just the basename; use the full file name.
4796 ac_cv_prog_CC
="$as_dir/$ac_word${1+' '}$@"
4802 if test -n "$CC"; then
4803 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
4804 $as_echo "$CC" >&6; }
4806 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4807 $as_echo "no" >&6; }
4812 if test -z "$CC"; then
4813 if test -n "$ac_tool_prefix"; then
4814 for ac_prog
in cl.exe
4816 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
4817 set dummy
$ac_tool_prefix$ac_prog; ac_word
=$2
4818 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4819 $as_echo_n "checking for $ac_word... " >&6; }
4820 if test "${ac_cv_prog_CC+set}" = set; then :
4821 $as_echo_n "(cached) " >&6
4823 if test -n "$CC"; then
4824 ac_cv_prog_CC
="$CC" # Let the user override the test.
4826 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
4830 test -z "$as_dir" && as_dir
=.
4831 for ac_exec_ext
in '' $ac_executable_extensions; do
4832 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4833 ac_cv_prog_CC
="$ac_tool_prefix$ac_prog"
4834 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4844 if test -n "$CC"; then
4845 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
4846 $as_echo "$CC" >&6; }
4848 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4849 $as_echo "no" >&6; }
4853 test -n "$CC" && break
4856 if test -z "$CC"; then
4858 for ac_prog
in cl.exe
4860 # Extract the first word of "$ac_prog", so it can be a program name with args.
4861 set dummy
$ac_prog; ac_word
=$2
4862 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4863 $as_echo_n "checking for $ac_word... " >&6; }
4864 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then :
4865 $as_echo_n "(cached) " >&6
4867 if test -n "$ac_ct_CC"; then
4868 ac_cv_prog_ac_ct_CC
="$ac_ct_CC" # Let the user override the test.
4870 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
4874 test -z "$as_dir" && as_dir
=.
4875 for ac_exec_ext
in '' $ac_executable_extensions; do
4876 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4877 ac_cv_prog_ac_ct_CC
="$ac_prog"
4878 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4887 ac_ct_CC
=$ac_cv_prog_ac_ct_CC
4888 if test -n "$ac_ct_CC"; then
4889 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
4890 $as_echo "$ac_ct_CC" >&6; }
4892 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4893 $as_echo "no" >&6; }
4897 test -n "$ac_ct_CC" && break
4900 if test "x$ac_ct_CC" = x
; then
4903 case $cross_compiling:$ac_tool_warned in
4905 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4906 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4907 ac_tool_warned
=yes ;;
4916 test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4917 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4918 as_fn_error
"no acceptable C compiler found in \$PATH
4919 See \`config.log' for more details." "$LINENO" 5; }
4921 # Provide some information about the compiler.
4922 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
4925 for ac_option
in --version -v -V -qversion; do
4926 { { ac_try
="$ac_compiler $ac_option >&5"
4928 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
4929 *) ac_try_echo=$ac_try;;
4931 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4932 $as_echo "$ac_try_echo"; } >&5
4933 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
4935 if test -s conftest.err; then
4937 ... rest of stderr output deleted ...
4938 10q' conftest.err >conftest.er1
4939 cat conftest.er1 >&5
4941 rm -f conftest.er1 conftest.err
4942 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4943 test $ac_status = 0; }
4946 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4947 /* end confdefs.h. */
4957 ac_clean_files_save=$ac_clean_files
4958 ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
4959 # Try to create an executable without -o first, disregard a.out.
4960 # It will help us diagnose broken compilers, and finding out an intuition
4962 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
4963 $as_echo_n "checking whether the C compiler works... " >&6; }
4964 ac_link_default=`$as_echo "$ac_link" |
sed 's/ -o *conftest[^ ]*//'`
4966 # The possible output files:
4967 ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
4970 for ac_file in $ac_files
4973 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
4974 * ) ac_rmfiles="$ac_rmfiles $ac_file";;
4979 if { { ac_try="$ac_link_default"
4981 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
4982 *) ac_try_echo
=$ac_try;;
4984 eval ac_try_echo
="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4985 $as_echo "$ac_try_echo"; } >&5
4986 (eval "$ac_link_default") 2>&5
4988 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4989 test $ac_status = 0; }; then :
4990 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
4991 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
4992 # in a Makefile. We should not override ac_cv_exeext if it was cached,
4993 # so that the user can short-circuit this test for compilers unknown to
4995 for ac_file
in $ac_files ''
4997 test -f "$ac_file" ||
continue
4999 *.
$ac_ext |
*.xcoff |
*.tds |
*.d |
*.pdb |
*.xSYM |
*.bb |
*.bbg |
*.map |
*.inf |
*.dSYM |
*.o |
*.obj
)
5002 # We found the default executable, but exeext='' is most
5006 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no
;
5008 ac_cv_exeext
=`expr "$ac_file" : '[^.]*\(\..*\)'`
5010 # We set ac_cv_exeext here because the later test for it is not
5011 # safe: cross compilers may not add the suffix if given an `-o'
5012 # argument, so we may need to know it at that point already.
5013 # Even if this section looks crufty: it has the advantage of
5020 test "$ac_cv_exeext" = no
&& ac_cv_exeext
=
5025 if test -z "$ac_file"; then :
5026 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5027 $as_echo "no" >&6; }
5028 $as_echo "$as_me: failed program was:" >&5
5029 sed 's/^/| /' conftest.
$ac_ext >&5
5031 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
5032 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
5033 { as_fn_set_status
77
5034 as_fn_error
"C compiler cannot create executables
5035 See \`config.log' for more details." "$LINENO" 5; }; }
5037 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5038 $as_echo "yes" >&6; }
5040 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
5041 $as_echo_n "checking for C compiler default output file name... " >&6; }
5042 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
5043 $as_echo "$ac_file" >&6; }
5044 ac_exeext
=$ac_cv_exeext
5046 rm -f -r a.out a.out.dSYM a.exe conftest
$ac_cv_exeext b.out
5047 ac_clean_files
=$ac_clean_files_save
5048 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
5049 $as_echo_n "checking for suffix of executables... " >&6; }
5050 if { { ac_try
="$ac_link"
5052 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
5053 *) ac_try_echo=$ac_try;;
5055 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
5056 $as_echo "$ac_try_echo"; } >&5
5057 (eval "$ac_link") 2>&5
5059 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5060 test $ac_status = 0; }; then :
5061 # If both `conftest.exe
' and `conftest' are
`present' (well, observable)
5062 # catch `conftest.exe
'. For instance with Cygwin, `ls conftest' will
5063 # work properly (i.e., refer to `conftest.exe'), while it won't with
5065 for ac_file
in conftest.exe conftest conftest.
*; do
5066 test -f "$ac_file" ||
continue
5068 *.
$ac_ext |
*.xcoff |
*.tds |
*.d |
*.pdb |
*.xSYM |
*.bb |
*.bbg |
*.map |
*.inf |
*.dSYM |
*.o |
*.obj
) ;;
5069 *.
* ) ac_cv_exeext
=`expr "$ac_file" : '[^.]*\(\..*\)'`
5075 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
5076 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
5077 as_fn_error
"cannot compute suffix of executables: cannot compile and link
5078 See \`config.log' for more details." "$LINENO" 5; }
5080 rm -f conftest conftest
$ac_cv_exeext
5081 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
5082 $as_echo "$ac_cv_exeext" >&6; }
5084 rm -f conftest.
$ac_ext
5085 EXEEXT
=$ac_cv_exeext
5087 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
5088 /* end confdefs.h. */
5093 FILE *f = fopen ("conftest.out", "w");
5094 return ferror (f) || fclose (f) != 0;
5100 ac_clean_files
="$ac_clean_files conftest.out"
5101 # Check that the compiler produces executables we can run. If not, either
5102 # the compiler is broken, or we cross compile.
5103 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
5104 $as_echo_n "checking whether we are cross compiling... " >&6; }
5105 if test "$cross_compiling" != yes; then
5106 { { ac_try
="$ac_link"
5108 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
5109 *) ac_try_echo=$ac_try;;
5111 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
5112 $as_echo "$ac_try_echo"; } >&5
5113 (eval "$ac_link") 2>&5
5115 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5116 test $ac_status = 0; }
5117 if { ac_try='./conftest$ac_cv_exeext'
5118 { { case "(($ac_try" in
5119 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
5120 *) ac_try_echo
=$ac_try;;
5122 eval ac_try_echo
="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
5123 $as_echo "$ac_try_echo"; } >&5
5124 (eval "$ac_try") 2>&5
5126 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5127 test $ac_status = 0; }; }; then
5130 if test "$cross_compiling" = maybe
; then
5133 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
5134 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
5135 as_fn_error
"cannot run C compiled programs.
5136 If you meant to cross compile, use \`--host'.
5137 See \`config.log' for more details." "$LINENO" 5; }
5141 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
5142 $as_echo "$cross_compiling" >&6; }
5144 rm -f conftest.
$ac_ext conftest
$ac_cv_exeext conftest.out
5145 ac_clean_files
=$ac_clean_files_save
5146 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
5147 $as_echo_n "checking for suffix of object files... " >&6; }
5148 if test "${ac_cv_objext+set}" = set; then :
5149 $as_echo_n "(cached) " >&6
5151 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
5152 /* end confdefs.h. */
5162 rm -f conftest.o conftest.obj
5163 if { { ac_try
="$ac_compile"
5165 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
5166 *) ac_try_echo=$ac_try;;
5168 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
5169 $as_echo "$ac_try_echo"; } >&5
5170 (eval "$ac_compile") 2>&5
5172 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5173 test $ac_status = 0; }; then :
5174 for ac_file in conftest.o conftest.obj conftest.*; do
5175 test -f "$ac_file" || continue;
5177 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
5178 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
5183 $as_echo "$as_me: failed program was:" >&5
5184 sed 's/^/| /' conftest.$ac_ext >&5
5186 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
5187 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
5188 as_fn_error "cannot compute suffix of object files
: cannot compile
5189 See \
`config.log' for more details." "$LINENO" 5; }
5191 rm -f conftest.$ac_cv_objext conftest.$ac_ext
5193 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
5194 $as_echo "$ac_cv_objext" >&6; }
5195 OBJEXT=$ac_cv_objext
5197 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
5198 $as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
5199 if test "${ac_cv_c_compiler_gnu+set}" = set; then :
5200 $as_echo_n "(cached) " >&6
5202 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5203 /* end confdefs.h. */
5216 if ac_fn_c_try_compile "$LINENO"; then :
5221 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5222 ac_cv_c_compiler_gnu=$ac_compiler_gnu
5225 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
5226 $as_echo "$ac_cv_c_compiler_gnu" >&6; }
5227 if test $ac_compiler_gnu = yes; then
5232 ac_test_CFLAGS=${CFLAGS+set}
5233 ac_save_CFLAGS=$CFLAGS
5234 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
5235 $as_echo_n "checking whether $CC accepts -g... " >&6; }
5236 if test "${ac_cv_prog_cc_g+set}" = set; then :
5237 $as_echo_n "(cached) " >&6
5239 ac_save_c_werror_flag=$ac_c_werror_flag
5240 ac_c_werror_flag=yes
5243 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5244 /* end confdefs.h. */
5254 if ac_fn_c_try_compile "$LINENO"; then :
5258 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5259 /* end confdefs.h. */
5269 if ac_fn_c_try_compile "$LINENO"; then :
5272 ac_c_werror_flag=$ac_save_c_werror_flag
5274 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5275 /* end confdefs.h. */
5285 if ac_fn_c_try_compile "$LINENO"; then :
5288 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5290 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5292 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5293 ac_c_werror_flag=$ac_save_c_werror_flag
5295 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
5296 $as_echo "$ac_cv_prog_cc_g" >&6; }
5297 if test "$ac_test_CFLAGS" = set; then
5298 CFLAGS=$ac_save_CFLAGS
5299 elif test $ac_cv_prog_cc_g = yes; then
5300 if test "$GCC" = yes; then
5306 if test "$GCC" = yes; then
5312 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
5313 $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
5314 if test "${ac_cv_prog_cc_c89+set}" = set; then :
5315 $as_echo_n "(cached) " >&6
5317 ac_cv_prog_cc_c89=no
5319 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5320 /* end confdefs.h. */
5323 #include <sys/types.h>
5324 #include <sys/stat.h>
5325 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
5326 struct buf { int x; };
5327 FILE * (*rcsopen) (struct buf *, struct stat *, int);
5328 static char *e (p, i)
5334 static char *f (char * (*g) (char **, int), char **p, ...)
5339 s = g (p, va_arg (v,int));
5344 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
5345 function prototypes and stuff, but not '\xHH' hex character constants.
5346 These don't provoke an error unfortunately, instead are silently treated
5347 as 'x'. The following induces an error, until -std is added to get
5348 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
5349 array size at least. It's necessary to write '\x00'==0 to get something
5350 that's true only with -std. */
5351 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
5353 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
5354 inside strings and character constants. */
5356 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
5358 int test (int i, double x);
5359 struct s1 {int (*f) (int a);};
5360 struct s2 {int (*f) (double a);};
5361 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
5367 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
5372 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
5373 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
5375 CC="$ac_save_CC $ac_arg"
5376 if ac_fn_c_try_compile "$LINENO"; then :
5377 ac_cv_prog_cc_c89=$ac_arg
5379 rm -f core conftest.err conftest.$ac_objext
5380 test "x$ac_cv_prog_cc_c89" != "xno" && break
5382 rm -f conftest.$ac_ext
5387 case "x$ac_cv_prog_cc_c89" in
5389 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
5390 $as_echo "none needed" >&6; } ;;
5392 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
5393 $as_echo "unsupported" >&6; } ;;
5395 CC="$CC $ac_cv_prog_cc_c89"
5396 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
5397 $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
5399 if test "x$ac_cv_prog_cc_c89" != xno; then :
5404 ac_cpp='$CPP $CPPFLAGS'
5405 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5406 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5407 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5408 DEPDIR="${am__leading_dot}deps"
5410 ac_config_commands="$ac_config_commands depfiles"
5413 am_make=${MAKE-make}
5414 cat > confinc << 'END'
5416 @echo this is the am__doit target
5419 # If we don't find an include directive, just comment out the code.
5420 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for style of include used by $am_make" >&5
5421 $as_echo_n "checking for style of include used by $am_make... " >&6; }
5425 # First try GNU make style include.
5426 echo "include confinc" > confmf
5427 # Ignore all kinds of additional output from `make'.
5428 case `$am_make -s -f confmf 2> /dev/null` in #(
5429 *the\ am__doit\ target*)
5435 # Now try BSD make style include.
5436 if test "$am__include" = "#"; then
5437 echo '.include
"confinc"' > confmf
5438 case `$am_make -s -f confmf 2> /dev/null` in #(
5439 *the\ am__doit\ target*)
5440 am__include=.include
5448 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $_am_result" >&5
5449 $as_echo "$_am_result" >&6; }
5450 rm -f confinc confmf
5452 # Check whether --enable-dependency-tracking was given.
5453 if test "${enable_dependency_tracking+set}" = set; then :
5454 enableval=$enable_dependency_tracking;
5457 if test "x$enable_dependency_tracking" != xno; then
5458 am_depcomp="$ac_aux_dir/depcomp"
5461 if test "x$enable_dependency_tracking" != xno
; then
5471 depcc
="$CC" am_compiler_list
=
5473 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
5474 $as_echo_n "checking dependency style of $depcc... " >&6; }
5475 if test "${am_cv_CC_dependencies_compiler_type+set}" = set; then :
5476 $as_echo_n "(cached) " >&6
5478 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
5479 # We make a subdir and do the tests there. Otherwise we can end up
5480 # making bogus files that we don't know about and never remove. For
5481 # instance it was reported that on HP-UX the gcc test will end up
5482 # making a dummy file named `D' -- because `-MD' means `put the output
5485 # Copy depcomp to subdir because otherwise we won't find it if we're
5486 # using a relative directory.
5487 cp "$am_depcomp" conftest.dir
5489 # We will build objects and dependencies in a subdirectory because
5490 # it helps to detect inapplicable dependency modes. For instance
5491 # both Tru64's cc and ICC support -MD to output dependencies as a
5492 # side effect of compilation, but ICC will put the dependencies in
5493 # the current directory while Tru64 will put them in the object
5497 am_cv_CC_dependencies_compiler_type
=none
5498 if test "$am_compiler_list" = ""; then
5499 am_compiler_list
=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
5502 case " $depcc " in #(
5503 *\
-arch\
*\
-arch\
*) am__universal
=true
;;
5506 for depmode
in $am_compiler_list; do
5507 # Setup a source with many dependencies, because some compilers
5508 # like to wrap large dependency lists on column 80 (with \), and
5509 # we should not choose a depcomp mode which is confused by this.
5511 # We need to recreate these files for each test, as the compiler may
5512 # overwrite some of them when testing with obscure command lines.
5513 # This happens at least with the AIX C compiler.
5515 for i
in 1 2 3 4 5 6; do
5516 echo '#include "conftst'$i'.h"' >> sub
/conftest.c
5517 # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
5518 # Solaris 8's {/usr,}/bin/sh.
5519 touch sub
/conftst
$i.h
5521 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
5523 # We check with `-c' and `-o' for the sake of the "dashmstdout"
5524 # mode. It turns out that the SunPro C++ compiler does not properly
5525 # handle `-M -o', and we need to detect this. Also, some Intel
5526 # versions had trouble with output in subdirs
5527 am__obj
=sub
/conftest.
${OBJEXT-o}
5528 am__minus_obj
="-o $am__obj"
5531 # This depmode causes a compiler race in universal mode.
5532 test "$am__universal" = false ||
continue
5535 # after this tag, mechanisms are not by side-effect, so they'll
5536 # only be used when explicitly requested
5537 if test "x$enable_dependency_tracking" = xyes
; then
5543 msvisualcpp | msvcmsys
)
5544 # This compiler won't grok `-c -o', but also, the minuso test has
5545 # not run yet. These depmodes are late enough in the game, and
5546 # so weak that their functioning should not be impacted.
5547 am__obj
=conftest.
${OBJEXT-o}
5552 if depmode
=$depmode \
5553 source=sub
/conftest.c object
=$am__obj \
5554 depfile
=sub
/conftest.Po tmpdepfile
=sub
/conftest.TPo \
5555 $SHELL .
/depcomp
$depcc -c $am__minus_obj sub
/conftest.c \
5556 >/dev
/null
2>conftest.err
&&
5557 grep sub
/conftst1.h sub
/conftest.Po
> /dev
/null
2>&1 &&
5558 grep sub
/conftst6.h sub
/conftest.Po
> /dev
/null
2>&1 &&
5559 grep $am__obj sub
/conftest.Po
> /dev
/null
2>&1 &&
5560 ${MAKE-make} -s -f confmf
> /dev
/null
2>&1; then
5561 # icc doesn't choke on unknown options, it will just issue warnings
5562 # or remarks (even with -Werror). So we grep stderr for any message
5563 # that says an option was ignored or not supported.
5564 # When given -MP, icc 7.0 and 7.1 complain thusly:
5565 # icc: Command line warning: ignoring option '-M'; no argument required
5566 # The diagnosis changed in icc 8.0:
5567 # icc: Command line remark: option '-MP' not supported
5568 if (grep 'ignoring option' conftest.err ||
5569 grep 'not supported' conftest.err
) >/dev
/null
2>&1; then :; else
5570 am_cv_CC_dependencies_compiler_type
=$depmode
5579 am_cv_CC_dependencies_compiler_type
=none
5583 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5
5584 $as_echo "$am_cv_CC_dependencies_compiler_type" >&6; }
5585 CCDEPMODE
=depmode
=$am_cv_CC_dependencies_compiler_type
5588 test "x$enable_dependency_tracking" != xno \
5589 && test "$am_cv_CC_dependencies_compiler_type" = gcc3
; then
5591 am__fastdepCC_FALSE
='#'
5593 am__fastdepCC_TRUE
='#'
5594 am__fastdepCC_FALSE
=
5598 if test "x$CC" != xcc
; then
5599 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC and cc understand -c and -o together" >&5
5600 $as_echo_n "checking whether $CC and cc understand -c and -o together... " >&6; }
5602 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether cc understands -c and -o together" >&5
5603 $as_echo_n "checking whether cc understands -c and -o together... " >&6; }
5605 set dummy
$CC; ac_cc
=`$as_echo "$2" |
5606 sed 's/[^a-zA-Z0-9_]/_/g;s/^[0-9]/_/'`
5607 if { as_var
=ac_cv_prog_cc_
${ac_cc}_c_o; eval "test \"\${$as_var+set}\" = set"; }; then :
5608 $as_echo_n "(cached) " >&6
5610 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
5611 /* end confdefs.h. */
5621 # Make sure it works both with $CC and with simple cc.
5622 # We do the test twice because some compilers refuse to overwrite an
5623 # existing .o file with -o, though they will create one.
5624 ac_try
='$CC -c conftest.$ac_ext -o conftest2.$ac_objext >&5'
5626 if { { case "(($ac_try" in
5627 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
5628 *) ac_try_echo=$ac_try;;
5630 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
5631 $as_echo "$ac_try_echo"; } >&5
5632 (eval "$ac_try") 2>&5
5634 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5635 test $ac_status = 0; } &&
5636 test -f conftest2.$ac_objext && { { case "(($ac_try" in
5637 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
5638 *) ac_try_echo
=$ac_try;;
5640 eval ac_try_echo
="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
5641 $as_echo "$ac_try_echo"; } >&5
5642 (eval "$ac_try") 2>&5
5644 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5645 test $ac_status = 0; };
5647 eval ac_cv_prog_cc_
${ac_cc}_c_o
=yes
5648 if test "x$CC" != xcc
; then
5649 # Test first that cc exists at all.
5650 if { ac_try
='cc -c conftest.$ac_ext >&5'
5651 { { case "(($ac_try" in
5652 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
5653 *) ac_try_echo=$ac_try;;
5655 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
5656 $as_echo "$ac_try_echo"; } >&5
5657 (eval "$ac_try") 2>&5
5659 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5660 test $ac_status = 0; }; }; then
5661 ac_try='cc -c conftest.$ac_ext -o conftest2.$ac_objext >&5'
5663 if { { case "(($ac_try" in
5664 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
5665 *) ac_try_echo
=$ac_try;;
5667 eval ac_try_echo
="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
5668 $as_echo "$ac_try_echo"; } >&5
5669 (eval "$ac_try") 2>&5
5671 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5672 test $ac_status = 0; } &&
5673 test -f conftest2.
$ac_objext && { { case "(($ac_try" in
5674 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
5675 *) ac_try_echo=$ac_try;;
5677 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
5678 $as_echo "$ac_try_echo"; } >&5
5679 (eval "$ac_try") 2>&5
5681 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5682 test $ac_status = 0; };
5687 # cc exists but doesn't like -o.
5688 eval ac_cv_prog_cc_${ac_cc}_c_o=no
5693 eval ac_cv_prog_cc_${ac_cc}_c_o=no
5695 rm -f core conftest*
5698 if eval test \$ac_cv_prog_cc_${ac_cc}_c_o = yes; then
5699 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5700 $as_echo "yes" >&6; }
5702 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5703 $as_echo "no" >&6; }
5705 $as_echo "#define NO_MINUS_C_MINUS_O 1" >>confdefs.h
5709 # FIXME: we rely on the cache variable name because
5710 # there is no other way.
5712 am_cc=`echo $2 |
sed 's/[^a-zA-Z0-9_]/_/g;s/^[0-9]/_/'`
5713 eval am_t=\$ac_cv_prog_cc_${am_cc}_c_o
5714 if test "$am_t" != yes; then
5715 # Losing compiler, so override with the script.
5716 # FIXME: It is wrong to rewrite CC.
5717 # But if we don't then we get into trouble of one sort or another.
5718 # A longer-term fix would be to have automake use am__CC in this case,
5719 # and then we could set am__CC="\$(top_srcdir)/compile \$(CC)"
5720 CC="$am_aux_dir/compile $CC"
5725 # Initialize gnulib right after verifying that the C compiler works.
5728 ac_cpp='$CPP $CPPFLAGS'
5729 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5730 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5731 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5732 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
5733 $as_echo_n "checking how to run the C preprocessor... " >&6; }
5734 # On Suns, sometimes $CPP names a directory.
5735 if test -n "$CPP" && test -d "$CPP"; then
5738 if test -z "$CPP"; then
5739 if test "${ac_cv_prog_CPP+set}" = set; then :
5740 $as_echo_n "(cached) " >&6
5742 # Double quotes because CPP needs to be expanded
5743 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
5746 for ac_c_preproc_warn_flag in '' yes
5748 # Use a header file that comes with gcc, so configuring glibc
5749 # with a fresh cross-compiler works.
5750 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5751 # <limits.h> exists even on freestanding compilers.
5752 # On the NeXT, cc -E runs the code through the compiler's parser,
5753 # not just through cpp. "Syntax error" is here to catch this case.
5754 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5755 /* end confdefs.h. */
5757 # include <limits.h>
5759 # include <assert.h>
5763 if ac_fn_c_try_cpp "$LINENO"; then :
5766 # Broken: fails on valid input.
5769 rm -f conftest.err conftest.$ac_ext
5771 # OK, works on sane cases. Now check whether nonexistent headers
5772 # can be detected and how.
5773 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5774 /* end confdefs.h. */
5775 #include <ac_nonexistent.h>
5777 if ac_fn_c_try_cpp "$LINENO"; then :
5778 # Broken: success on invalid input.
5781 # Passes both tests.
5785 rm -f conftest.err conftest.$ac_ext
5788 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
5789 rm -f conftest.err conftest.
$ac_ext
5790 if $ac_preproc_ok; then :
5802 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
5803 $as_echo "$CPP" >&6; }
5805 for ac_c_preproc_warn_flag
in '' yes
5807 # Use a header file that comes with gcc, so configuring glibc
5808 # with a fresh cross-compiler works.
5809 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5810 # <limits.h> exists even on freestanding compilers.
5811 # On the NeXT, cc -E runs the code through the compiler's parser,
5812 # not just through cpp. "Syntax error" is here to catch this case.
5813 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
5814 /* end confdefs.h. */
5816 # include <limits.h>
5818 # include <assert.h>
5822 if ac_fn_c_try_cpp
"$LINENO"; then :
5825 # Broken: fails on valid input.
5828 rm -f conftest.err conftest.
$ac_ext
5830 # OK, works on sane cases. Now check whether nonexistent headers
5831 # can be detected and how.
5832 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
5833 /* end confdefs.h. */
5834 #include <ac_nonexistent.h>
5836 if ac_fn_c_try_cpp
"$LINENO"; then :
5837 # Broken: success on invalid input.
5840 # Passes both tests.
5844 rm -f conftest.err conftest.
$ac_ext
5847 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
5848 rm -f conftest.err conftest.
$ac_ext
5849 if $ac_preproc_ok; then :
5852 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
5853 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
5854 as_fn_error
"C preprocessor \"$CPP\" fails sanity check
5855 See \`config.log' for more details." "$LINENO" 5; }
5859 ac_cpp
='$CPP $CPPFLAGS'
5860 ac_compile
='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5861 ac_link
='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5862 ac_compiler_gnu
=$ac_cv_c_compiler_gnu
5865 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
5866 $as_echo_n "checking for grep that handles long lines and -e... " >&6; }
5867 if test "${ac_cv_path_GREP+set}" = set; then :
5868 $as_echo_n "(cached) " >&6
5870 if test -z "$GREP"; then
5871 ac_path_GREP_found
=false
5872 # Loop through the user's path and test for each of PROGNAME-LIST
5873 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
5874 for as_dir
in $PATH$PATH_SEPARATOR/usr
/xpg
4/bin
5877 test -z "$as_dir" && as_dir
=.
5878 for ac_prog
in grep ggrep
; do
5879 for ac_exec_ext
in '' $ac_executable_extensions; do
5880 ac_path_GREP
="$as_dir/$ac_prog$ac_exec_ext"
5881 { test -f "$ac_path_GREP" && $as_test_x "$ac_path_GREP"; } ||
continue
5882 # Check for GNU ac_path_GREP and select it if it is found.
5883 # Check for GNU $ac_path_GREP
5884 case `"$ac_path_GREP" --version 2>&1` in
5886 ac_cv_path_GREP
="$ac_path_GREP" ac_path_GREP_found
=:;;
5889 $as_echo_n 0123456789 >"conftest.in"
5892 cat "conftest.in" "conftest.in" >"conftest.tmp"
5893 mv "conftest.tmp" "conftest.in"
5894 cp "conftest.in" "conftest.nl"
5895 $as_echo 'GREP' >> "conftest.nl"
5896 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev
/null ||
break
5897 diff "conftest.out" "conftest.nl" >/dev
/null
2>&1 ||
break
5898 as_fn_arith
$ac_count + 1 && ac_count
=$as_val
5899 if test $ac_count -gt ${ac_path_GREP_max-0}; then
5900 # Best one so far, save it but keep looking for a better one
5901 ac_cv_path_GREP
="$ac_path_GREP"
5902 ac_path_GREP_max
=$ac_count
5904 # 10*(2^10) chars as input seems more than enough
5905 test $ac_count -gt 10 && break
5907 rm -f conftest.
in conftest.tmp conftest.
nl conftest.out
;;
5910 $ac_path_GREP_found && break 3
5915 if test -z "$ac_cv_path_GREP"; then
5916 as_fn_error
"no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
5919 ac_cv_path_GREP
=$GREP
5923 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
5924 $as_echo "$ac_cv_path_GREP" >&6; }
5925 GREP
="$ac_cv_path_GREP"
5928 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
5929 $as_echo_n "checking for egrep... " >&6; }
5930 if test "${ac_cv_path_EGREP+set}" = set; then :
5931 $as_echo_n "(cached) " >&6
5933 if echo a |
$GREP -E '(a|b)' >/dev
/null
2>&1
5934 then ac_cv_path_EGREP
="$GREP -E"
5936 if test -z "$EGREP"; then
5937 ac_path_EGREP_found
=false
5938 # Loop through the user's path and test for each of PROGNAME-LIST
5939 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
5940 for as_dir
in $PATH$PATH_SEPARATOR/usr
/xpg
4/bin
5943 test -z "$as_dir" && as_dir
=.
5944 for ac_prog
in egrep; do
5945 for ac_exec_ext
in '' $ac_executable_extensions; do
5946 ac_path_EGREP
="$as_dir/$ac_prog$ac_exec_ext"
5947 { test -f "$ac_path_EGREP" && $as_test_x "$ac_path_EGREP"; } ||
continue
5948 # Check for GNU ac_path_EGREP and select it if it is found.
5949 # Check for GNU $ac_path_EGREP
5950 case `"$ac_path_EGREP" --version 2>&1` in
5952 ac_cv_path_EGREP
="$ac_path_EGREP" ac_path_EGREP_found
=:;;
5955 $as_echo_n 0123456789 >"conftest.in"
5958 cat "conftest.in" "conftest.in" >"conftest.tmp"
5959 mv "conftest.tmp" "conftest.in"
5960 cp "conftest.in" "conftest.nl"
5961 $as_echo 'EGREP' >> "conftest.nl"
5962 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev
/null ||
break
5963 diff "conftest.out" "conftest.nl" >/dev
/null
2>&1 ||
break
5964 as_fn_arith
$ac_count + 1 && ac_count
=$as_val
5965 if test $ac_count -gt ${ac_path_EGREP_max-0}; then
5966 # Best one so far, save it but keep looking for a better one
5967 ac_cv_path_EGREP
="$ac_path_EGREP"
5968 ac_path_EGREP_max
=$ac_count
5970 # 10*(2^10) chars as input seems more than enough
5971 test $ac_count -gt 10 && break
5973 rm -f conftest.
in conftest.tmp conftest.
nl conftest.out
;;
5976 $ac_path_EGREP_found && break 3
5981 if test -z "$ac_cv_path_EGREP"; then
5982 as_fn_error
"no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
5985 ac_cv_path_EGREP
=$EGREP
5990 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
5991 $as_echo "$ac_cv_path_EGREP" >&6; }
5992 EGREP
="$ac_cv_path_EGREP"
5997 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Minix Amsterdam compiler" >&5
5998 $as_echo_n "checking for Minix Amsterdam compiler... " >&6; }
5999 if test "${gl_cv_c_amsterdam_compiler+set}" = set; then :
6000 $as_echo_n "(cached) " >&6
6003 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
6004 /* end confdefs.h. */
6011 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6012 $EGREP "Amsterdam" >/dev
/null
2>&1; then :
6013 gl_cv_c_amsterdam_compiler
=yes
6015 gl_cv_c_amsterdam_compiler
=no
6021 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_c_amsterdam_compiler" >&5
6022 $as_echo "$gl_cv_c_amsterdam_compiler" >&6; }
6023 if test -z "$AR"; then
6024 if test $gl_cv_c_amsterdam_compiler = yes; then
6026 if test -z "$ARFLAGS"; then
6030 if test -n "$ac_tool_prefix"; then
6031 # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
6032 set dummy
${ac_tool_prefix}ar; ac_word
=$2
6033 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6034 $as_echo_n "checking for $ac_word... " >&6; }
6035 if test "${ac_cv_prog_AR+set}" = set; then :
6036 $as_echo_n "(cached) " >&6
6038 if test -n "$AR"; then
6039 ac_cv_prog_AR
="$AR" # Let the user override the test.
6041 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
6045 test -z "$as_dir" && as_dir
=.
6046 for ac_exec_ext
in '' $ac_executable_extensions; do
6047 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6048 ac_cv_prog_AR
="${ac_tool_prefix}ar"
6049 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6059 if test -n "$AR"; then
6060 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
6061 $as_echo "$AR" >&6; }
6063 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6064 $as_echo "no" >&6; }
6069 if test -z "$ac_cv_prog_AR"; then
6071 # Extract the first word of "ar", so it can be a program name with args.
6072 set dummy
ar; ac_word
=$2
6073 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6074 $as_echo_n "checking for $ac_word... " >&6; }
6075 if test "${ac_cv_prog_ac_ct_AR+set}" = set; then :
6076 $as_echo_n "(cached) " >&6
6078 if test -n "$ac_ct_AR"; then
6079 ac_cv_prog_ac_ct_AR
="$ac_ct_AR" # Let the user override the test.
6081 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
6085 test -z "$as_dir" && as_dir
=.
6086 for ac_exec_ext
in '' $ac_executable_extensions; do
6087 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6088 ac_cv_prog_ac_ct_AR
="ar"
6089 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6098 ac_ct_AR
=$ac_cv_prog_ac_ct_AR
6099 if test -n "$ac_ct_AR"; then
6100 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5
6101 $as_echo "$ac_ct_AR" >&6; }
6103 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6104 $as_echo "no" >&6; }
6107 if test "x$ac_ct_AR" = x
; then
6110 case $cross_compiling:$ac_tool_warned in
6112 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6113 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6114 ac_tool_warned
=yes ;;
6122 if test -z "$ARFLAGS"; then
6127 if test -z "$ARFLAGS"; then
6133 if test -z "$RANLIB"; then
6134 if test $gl_cv_c_amsterdam_compiler = yes; then
6137 if test -n "$ac_tool_prefix"; then
6138 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
6139 set dummy
${ac_tool_prefix}ranlib
; ac_word
=$2
6140 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6141 $as_echo_n "checking for $ac_word... " >&6; }
6142 if test "${ac_cv_prog_RANLIB+set}" = set; then :
6143 $as_echo_n "(cached) " >&6
6145 if test -n "$RANLIB"; then
6146 ac_cv_prog_RANLIB
="$RANLIB" # Let the user override the test.
6148 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
6152 test -z "$as_dir" && as_dir
=.
6153 for ac_exec_ext
in '' $ac_executable_extensions; do
6154 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6155 ac_cv_prog_RANLIB
="${ac_tool_prefix}ranlib"
6156 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6165 RANLIB
=$ac_cv_prog_RANLIB
6166 if test -n "$RANLIB"; then
6167 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
6168 $as_echo "$RANLIB" >&6; }
6170 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6171 $as_echo "no" >&6; }
6176 if test -z "$ac_cv_prog_RANLIB"; then
6177 ac_ct_RANLIB
=$RANLIB
6178 # Extract the first word of "ranlib", so it can be a program name with args.
6179 set dummy ranlib
; ac_word
=$2
6180 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6181 $as_echo_n "checking for $ac_word... " >&6; }
6182 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then :
6183 $as_echo_n "(cached) " >&6
6185 if test -n "$ac_ct_RANLIB"; then
6186 ac_cv_prog_ac_ct_RANLIB
="$ac_ct_RANLIB" # Let the user override the test.
6188 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
6192 test -z "$as_dir" && as_dir
=.
6193 for ac_exec_ext
in '' $ac_executable_extensions; do
6194 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6195 ac_cv_prog_ac_ct_RANLIB
="ranlib"
6196 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6205 ac_ct_RANLIB
=$ac_cv_prog_ac_ct_RANLIB
6206 if test -n "$ac_ct_RANLIB"; then
6207 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
6208 $as_echo "$ac_ct_RANLIB" >&6; }
6210 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6211 $as_echo "no" >&6; }
6214 if test "x$ac_ct_RANLIB" = x
; then
6217 case $cross_compiling:$ac_tool_warned in
6219 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6220 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6221 ac_tool_warned
=yes ;;
6223 RANLIB
=$ac_ct_RANLIB
6226 RANLIB
="$ac_cv_prog_RANLIB"
6233 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
6234 $as_echo_n "checking for ANSI C header files... " >&6; }
6235 if test "${ac_cv_header_stdc+set}" = set; then :
6236 $as_echo_n "(cached) " >&6
6238 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
6239 /* end confdefs.h. */
6253 if ac_fn_c_try_compile
"$LINENO"; then :
6254 ac_cv_header_stdc
=yes
6256 ac_cv_header_stdc
=no
6258 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
6260 if test $ac_cv_header_stdc = yes; then
6261 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
6262 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
6263 /* end confdefs.h. */
6267 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6268 $EGREP "memchr" >/dev
/null
2>&1; then :
6271 ac_cv_header_stdc
=no
6277 if test $ac_cv_header_stdc = yes; then
6278 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
6279 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
6280 /* end confdefs.h. */
6284 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6285 $EGREP "free" >/dev
/null
2>&1; then :
6288 ac_cv_header_stdc
=no
6294 if test $ac_cv_header_stdc = yes; then
6295 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
6296 if test "$cross_compiling" = yes; then :
6299 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
6300 /* end confdefs.h. */
6303 #if ((' ' & 0x0FF) == 0x020)
6304 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
6305 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
6307 # define ISLOWER(c) \
6308 (('a' <= (c) && (c) <= 'i') \
6309 || ('j' <= (c) && (c) <= 'r') \
6310 || ('s' <= (c) && (c) <= 'z'))
6311 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
6314 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
6319 for (i = 0; i < 256; i++)
6320 if (XOR (islower (i), ISLOWER (i))
6321 || toupper (i) != TOUPPER (i))
6326 if ac_fn_c_try_run
"$LINENO"; then :
6329 ac_cv_header_stdc
=no
6331 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
6332 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
6337 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
6338 $as_echo "$ac_cv_header_stdc" >&6; }
6339 if test $ac_cv_header_stdc = yes; then
6341 $as_echo "#define STDC_HEADERS 1" >>confdefs.h
6345 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
6346 for ac_header
in sys
/types.h sys
/stat.h stdlib.h string.h memory.h
strings.h \
6347 inttypes.h stdint.h unistd.h
6349 as_ac_Header
=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
6350 ac_fn_c_check_header_compile
"$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
6352 eval as_val
=\$
$as_ac_Header
6353 if test "x$as_val" = x
""yes; then :
6354 cat >>confdefs.h
<<_ACEOF
6355 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
6366 ac_fn_c_check_header_mongrel
"$LINENO" "minix/config.h" "ac_cv_header_minix_config_h" "$ac_includes_default"
6367 if test "x$ac_cv_header_minix_config_h" = x
""yes; then :
6374 if test "$MINIX" = yes; then
6376 $as_echo "#define _POSIX_SOURCE 1" >>confdefs.h
6379 $as_echo "#define _POSIX_1_SOURCE 2" >>confdefs.h
6382 $as_echo "#define _MINIX 1" >>confdefs.h
6389 $as_echo "#define _XOPEN_SOURCE 500" >>confdefs.h
6395 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether it is safe to define __EXTENSIONS__" >&5
6396 $as_echo_n "checking whether it is safe to define __EXTENSIONS__... " >&6; }
6397 if test "${ac_cv_safe_to_define___extensions__+set}" = set; then :
6398 $as_echo_n "(cached) " >&6
6400 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
6401 /* end confdefs.h. */
6403 # define __EXTENSIONS__ 1
6404 $ac_includes_default
6413 if ac_fn_c_try_compile
"$LINENO"; then :
6414 ac_cv_safe_to_define___extensions__
=yes
6416 ac_cv_safe_to_define___extensions__
=no
6418 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
6420 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_safe_to_define___extensions__" >&5
6421 $as_echo "$ac_cv_safe_to_define___extensions__" >&6; }
6422 test $ac_cv_safe_to_define___extensions__ = yes &&
6423 $as_echo "#define __EXTENSIONS__ 1" >>confdefs.h
6425 $as_echo "#define _ALL_SOURCE 1" >>confdefs.h
6427 $as_echo "#define _DARWIN_C_SOURCE 1" >>confdefs.h
6429 $as_echo "#define _GNU_SOURCE 1" >>confdefs.h
6431 $as_echo "#define _POSIX_PTHREAD_SEMANTICS 1" >>confdefs.h
6433 $as_echo "#define _TANDEM_SOURCE 1" >>confdefs.h
6442 # Check whether --enable-largefile was given.
6443 if test "${enable_largefile+set}" = set; then :
6444 enableval
=$enable_largefile;
6447 if test "$enable_largefile" != no
; then
6449 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for special C compiler options needed for large files" >&5
6450 $as_echo_n "checking for special C compiler options needed for large files... " >&6; }
6451 if test "${ac_cv_sys_largefile_CC+set}" = set; then :
6452 $as_echo_n "(cached) " >&6
6454 ac_cv_sys_largefile_CC
=no
6455 if test "$GCC" != yes; then
6458 # IRIX 6.2 and later do not support large files by default,
6459 # so use the C compiler's -n32 option if that helps.
6460 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
6461 /* end confdefs.h. */
6462 #include <sys/types.h>
6463 /* Check that off_t can represent 2**63 - 1 correctly.
6464 We can't simply define LARGE_OFF_T to be 9223372036854775807,
6465 since some C++ compilers masquerading as C compilers
6466 incorrectly reject 9223372036854775807. */
6467 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
6468 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
6469 && LARGE_OFF_T % 2147483647 == 1)
6479 if ac_fn_c_try_compile
"$LINENO"; then :
6482 rm -f core conftest.err conftest.
$ac_objext
6484 if ac_fn_c_try_compile
"$LINENO"; then :
6485 ac_cv_sys_largefile_CC
=' -n32'; break
6487 rm -f core conftest.err conftest.
$ac_objext
6491 rm -f conftest.
$ac_ext
6494 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_largefile_CC" >&5
6495 $as_echo "$ac_cv_sys_largefile_CC" >&6; }
6496 if test "$ac_cv_sys_largefile_CC" != no
; then
6497 CC
=$CC$ac_cv_sys_largefile_CC
6500 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _FILE_OFFSET_BITS value needed for large files" >&5
6501 $as_echo_n "checking for _FILE_OFFSET_BITS value needed for large files... " >&6; }
6502 if test "${ac_cv_sys_file_offset_bits+set}" = set; then :
6503 $as_echo_n "(cached) " >&6
6506 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
6507 /* end confdefs.h. */
6508 #include <sys/types.h>
6509 /* Check that off_t can represent 2**63 - 1 correctly.
6510 We can't simply define LARGE_OFF_T to be 9223372036854775807,
6511 since some C++ compilers masquerading as C compilers
6512 incorrectly reject 9223372036854775807. */
6513 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
6514 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
6515 && LARGE_OFF_T % 2147483647 == 1)
6525 if ac_fn_c_try_compile
"$LINENO"; then :
6526 ac_cv_sys_file_offset_bits
=no
; break
6528 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
6529 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
6530 /* end confdefs.h. */
6531 #define _FILE_OFFSET_BITS 64
6532 #include <sys/types.h>
6533 /* Check that off_t can represent 2**63 - 1 correctly.
6534 We can't simply define LARGE_OFF_T to be 9223372036854775807,
6535 since some C++ compilers masquerading as C compilers
6536 incorrectly reject 9223372036854775807. */
6537 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
6538 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
6539 && LARGE_OFF_T % 2147483647 == 1)
6549 if ac_fn_c_try_compile
"$LINENO"; then :
6550 ac_cv_sys_file_offset_bits
=64; break
6552 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
6553 ac_cv_sys_file_offset_bits
=unknown
6557 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_file_offset_bits" >&5
6558 $as_echo "$ac_cv_sys_file_offset_bits" >&6; }
6559 case $ac_cv_sys_file_offset_bits in #(
6562 cat >>confdefs.h
<<_ACEOF
6563 #define _FILE_OFFSET_BITS $ac_cv_sys_file_offset_bits
6568 if test $ac_cv_sys_file_offset_bits = unknown
; then
6569 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _LARGE_FILES value needed for large files" >&5
6570 $as_echo_n "checking for _LARGE_FILES value needed for large files... " >&6; }
6571 if test "${ac_cv_sys_large_files+set}" = set; then :
6572 $as_echo_n "(cached) " >&6
6575 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
6576 /* end confdefs.h. */
6577 #include <sys/types.h>
6578 /* Check that off_t can represent 2**63 - 1 correctly.
6579 We can't simply define LARGE_OFF_T to be 9223372036854775807,
6580 since some C++ compilers masquerading as C compilers
6581 incorrectly reject 9223372036854775807. */
6582 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
6583 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
6584 && LARGE_OFF_T % 2147483647 == 1)
6594 if ac_fn_c_try_compile
"$LINENO"; then :
6595 ac_cv_sys_large_files
=no
; break
6597 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
6598 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
6599 /* end confdefs.h. */
6600 #define _LARGE_FILES 1
6601 #include <sys/types.h>
6602 /* Check that off_t can represent 2**63 - 1 correctly.
6603 We can't simply define LARGE_OFF_T to be 9223372036854775807,
6604 since some C++ compilers masquerading as C compilers
6605 incorrectly reject 9223372036854775807. */
6606 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
6607 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
6608 && LARGE_OFF_T % 2147483647 == 1)
6618 if ac_fn_c_try_compile
"$LINENO"; then :
6619 ac_cv_sys_large_files
=1; break
6621 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
6622 ac_cv_sys_large_files
=unknown
6626 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_large_files" >&5
6627 $as_echo "$ac_cv_sys_large_files" >&6; }
6628 case $ac_cv_sys_large_files in #(
6631 cat >>confdefs.h
<<_ACEOF
6632 #define _LARGE_FILES $ac_cv_sys_large_files
6642 case $ac_cv_prog_cc_stdc in #(
6644 ac_cv_prog_cc_c99
=no
; ac_cv_prog_cc_c89
=no
;; #(
6646 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C99" >&5
6647 $as_echo_n "checking for $CC option to accept ISO C99... " >&6; }
6648 if test "${ac_cv_prog_cc_c99+set}" = set; then :
6649 $as_echo_n "(cached) " >&6
6651 ac_cv_prog_cc_c99
=no
6653 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
6654 /* end confdefs.h. */
6656 #include <stdbool.h>
6661 // Check varargs macros. These examples are taken from C99 6.10.3.5.
6662 #define debug(...) fprintf (stderr, __VA_ARGS__)
6663 #define showlist(...) puts (#__VA_ARGS__)
6664 #define report(test,...) ((test) ? puts (#test) : printf (__VA_ARGS__))
6666 test_varargs_macros (void)
6671 debug ("X = %d\n", x);
6672 showlist (The first, second, and third items.);
6673 report (x>y, "x is %d but y is %d", x, y);
6676 // Check long long types.
6677 #define BIG64 18446744073709551615ull
6678 #define BIG32 4294967295ul
6679 #define BIG_OK (BIG64 / BIG32 == 4294967297ull && BIG64 % BIG32 == 0)
6681 your preprocessor is broken;
6685 your preprocessor is broken;
6687 static long long int bignum = -9223372036854775807LL;
6688 static unsigned long long int ubignum = BIG64;
6690 struct incomplete_array
6698 const wchar_t *name;
6702 typedef const char *ccp;
6705 test_restrict (ccp restrict text)
6707 // See if C++-style comments work.
6708 // Iterate through items via the restricted pointer.
6709 // Also check for declarations in for loops.
6710 for (unsigned int i = 0; *(text+i) != '\0'; ++i)
6715 // Check varargs and va_copy.
6717 test_varargs (const char *format, ...)
6720 va_start (args, format);
6722 va_copy (args_copy, args);
6733 str = va_arg (args_copy, const char *);
6736 number = va_arg (args_copy, int);
6739 fnumber = va_arg (args_copy, double);
6754 _Bool success = false;
6757 if (test_restrict ("String literal") == 0)
6759 char *restrict newvar = "Another string";
6762 test_varargs ("s, d' f .", "string", 65, 34.234);
6763 test_varargs_macros ();
6765 // Check flexible array members.
6766 struct incomplete_array *ia =
6767 malloc (sizeof (struct incomplete_array) + (sizeof (double) * 10));
6769 for (int i = 0; i < ia->datasize; ++i)
6770 ia->data[i] = i * 1.234;
6772 // Check named initializers.
6773 struct named_init ni = {
6775 .name = L"Test wide string",
6776 .average = 543.34343,
6781 int dynamic_array[ni.number];
6782 dynamic_array[ni.number - 1] = 543;
6784 // work around unused variable warnings
6785 return (!success || bignum == 0LL || ubignum == 0uLL || newvar[0] == 'x'
6786 || dynamic_array[ni.number - 1] != 543);
6792 for ac_arg
in '' -std=gnu99
-std=c99
-c99 -AC99 -xc99=all
-qlanglvl=extc99
6794 CC
="$ac_save_CC $ac_arg"
6795 if ac_fn_c_try_compile
"$LINENO"; then :
6796 ac_cv_prog_cc_c99
=$ac_arg
6798 rm -f core conftest.err conftest.
$ac_objext
6799 test "x$ac_cv_prog_cc_c99" != "xno" && break
6801 rm -f conftest.
$ac_ext
6806 case "x$ac_cv_prog_cc_c99" in
6808 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
6809 $as_echo "none needed" >&6; } ;;
6811 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
6812 $as_echo "unsupported" >&6; } ;;
6814 CC
="$CC $ac_cv_prog_cc_c99"
6815 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c99" >&5
6816 $as_echo "$ac_cv_prog_cc_c99" >&6; } ;;
6818 if test "x$ac_cv_prog_cc_c99" != xno
; then :
6819 ac_cv_prog_cc_stdc
=$ac_cv_prog_cc_c99
6821 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
6822 $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
6823 if test "${ac_cv_prog_cc_c89+set}" = set; then :
6824 $as_echo_n "(cached) " >&6
6826 ac_cv_prog_cc_c89
=no
6828 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
6829 /* end confdefs.h. */
6832 #include <sys/types.h>
6833 #include <sys/stat.h>
6834 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
6835 struct buf { int x; };
6836 FILE * (*rcsopen) (struct buf *, struct stat *, int);
6837 static char *e (p, i)
6843 static char *f (char * (*g) (char **, int), char **p, ...)
6848 s = g (p, va_arg (v,int));
6853 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
6854 function prototypes and stuff, but not '\xHH' hex character constants.
6855 These don't provoke an error unfortunately, instead are silently treated
6856 as 'x'. The following induces an error, until -std is added to get
6857 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
6858 array size at least. It's necessary to write '\x00'==0 to get something
6859 that's true only with -std. */
6860 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
6862 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
6863 inside strings and character constants. */
6865 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
6867 int test (int i, double x);
6868 struct s1 {int (*f) (int a);};
6869 struct s2 {int (*f) (double a);};
6870 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
6876 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
6881 for ac_arg
in '' -qlanglvl=extc89
-qlanglvl=ansi
-std \
6882 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
6884 CC
="$ac_save_CC $ac_arg"
6885 if ac_fn_c_try_compile
"$LINENO"; then :
6886 ac_cv_prog_cc_c89
=$ac_arg
6888 rm -f core conftest.err conftest.
$ac_objext
6889 test "x$ac_cv_prog_cc_c89" != "xno" && break
6891 rm -f conftest.
$ac_ext
6896 case "x$ac_cv_prog_cc_c89" in
6898 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
6899 $as_echo "none needed" >&6; } ;;
6901 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
6902 $as_echo "unsupported" >&6; } ;;
6904 CC
="$CC $ac_cv_prog_cc_c89"
6905 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
6906 $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
6908 if test "x$ac_cv_prog_cc_c89" != xno
; then :
6909 ac_cv_prog_cc_stdc
=$ac_cv_prog_cc_c89
6911 ac_cv_prog_cc_stdc
=no
6917 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO Standard C" >&5
6918 $as_echo_n "checking for $CC option to accept ISO Standard C... " >&6; }
6919 if test "${ac_cv_prog_cc_stdc+set}" = set; then :
6920 $as_echo_n "(cached) " >&6
6923 case $ac_cv_prog_cc_stdc in #(
6925 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
6926 $as_echo "unsupported" >&6; } ;; #(
6928 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
6929 $as_echo "none needed" >&6; } ;; #(
6931 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_stdc" >&5
6932 $as_echo "$ac_cv_prog_cc_stdc" >&6; } ;;
6937 # Code from module alloca-opt:
6938 # Code from module allocator:
6939 # Code from module careadlinkat:
6940 # Code from module crypto/md5:
6941 # Code from module crypto/sha1:
6942 # Code from module crypto/sha256:
6943 # Code from module crypto/sha512:
6944 # Code from module dosname:
6945 # Code from module dtoastr:
6946 # Code from module dup2:
6947 # Code from module extensions:
6949 # Code from module filemode:
6950 # Code from module getloadavg:
6951 # Code from module getopt-gnu:
6952 # Code from module getopt-posix:
6953 # Code from module gettext-h:
6954 # Code from module ignore-value:
6955 # Code from module include_next:
6956 # Code from module intprops:
6957 # Code from module inttypes-incomplete:
6958 # Code from module largefile:
6960 # Code from module lstat:
6961 # Code from module mktime:
6962 # Code from module multiarch:
6963 # Code from module nocrash:
6964 # Code from module pathmax:
6965 # Code from module pthread_sigmask:
6966 # Code from module readlink:
6967 # Code from module signal-h:
6968 # Code from module sigprocmask:
6969 # Code from module snippet/_Noreturn:
6970 # Code from module snippet/arg-nonnull:
6971 # Code from module snippet/c++defs:
6972 # Code from module snippet/warn-on-use:
6973 # Code from module socklen:
6974 # Code from module ssize_t:
6975 # Code from module stat:
6976 # Code from module stdarg:
6980 # Code from module stdbool:
6981 # Code from module stddef:
6982 # Code from module stdint:
6983 # Code from module stdio:
6984 # Code from module stdlib:
6985 # Code from module strftime:
6986 # Code from module strtoimax:
6987 # Code from module strtoll:
6988 # Code from module strtoull:
6989 # Code from module strtoumax:
6990 # Code from module symlink:
6991 # Code from module sys_stat:
6992 # Code from module time:
6993 # Code from module time_r:
6994 # Code from module u64:
6995 # Code from module unistd:
6996 # Code from module verify:
6999 # On Suns, sometimes $CPP names a directory.
7000 if test -n "$CPP" && test -d "$CPP"; then
7004 ## If not using gcc, and on Solaris, and no CPP specified, see if
7005 ## using a Sun compiler, which needs -Xs to prevent whitespace.
7006 if test x
"$GCC" != xyes
&& test x
"$emacs_check_sunpro_c" = xyes
&& \
7007 test x
"$CPP" = x
; then
7008 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using a Sun C compiler" >&5
7009 $as_echo_n "checking whether we are using a Sun C compiler... " >&6; }
7010 if test "${emacs_cv_sunpro_c+set}" = set; then :
7011 $as_echo_n "(cached) " >&6
7013 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
7014 /* end confdefs.h. */
7027 if ac_fn_c_try_link
"$LINENO"; then :
7028 emacs_cv_sunpro_c
=yes
7030 emacs_cv_sunpro_c
=no
7032 rm -f core conftest.err conftest.
$ac_objext \
7033 conftest
$ac_exeext conftest.
$ac_ext
7036 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $emacs_cv_sunpro_c" >&5
7037 $as_echo "$emacs_cv_sunpro_c" >&6; }
7039 if test x
"$emacs_cv_sunpro_c" = xyes
; then
7040 NON_GNU_CPP
="$CC -E -Xs"
7044 #### Some systems specify a CPP to use unless we are using GCC.
7045 #### Now that we know whether we are using GCC, we can decide whether
7046 #### to use that one.
7047 if test "x$NON_GNU_CPP" != x
&& test x
$GCC != xyes
&& test "x$CPP" = x
7052 #### Some systems specify a CC to use unless we are using GCC.
7053 #### Now that we know whether we are using GCC, we can decide whether
7054 #### to use that one.
7055 if test "x$NON_GNU_CC" != x
&& test x
$GCC != xyes
&&
7056 test x
$cc_specified != xyes
7061 if test x
$GCC = xyes
; then
7062 test "x$GCC_TEST_OPTIONS" != x
&& CC
="$CC $GCC_TEST_OPTIONS"
7064 test "x$NON_GCC_TEST_OPTIONS" != x
&& CC
="$CC $NON_GCC_TEST_OPTIONS"
7067 ### Use -Wdeclaration-after-statement if the compiler supports it
7068 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether gcc understands -Wdeclaration-after-statement" >&5
7069 $as_echo_n "checking whether gcc understands -Wdeclaration-after-statement... " >&6; }
7070 SAVE_CFLAGS
="$CFLAGS"
7071 CFLAGS
="$CFLAGS -Wdeclaration-after-statement"
7072 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
7073 /* end confdefs.h. */
7083 if ac_fn_c_try_compile
"$LINENO"; then :
7088 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
7089 if test $has_option = yes; then
7090 C_WARNINGS_SWITCH
="-Wdeclaration-after-statement $C_WARNINGS_SWITCH"
7092 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $has_option" >&5
7093 $as_echo "$has_option" >&6; }
7094 CFLAGS
="$SAVE_CFLAGS"
7098 ### Use -Wold-style-definition if the compiler supports it
7099 # This can be removed when conversion to standard C is finished.
7100 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether gcc understands -Wold-style-definition" >&5
7101 $as_echo_n "checking whether gcc understands -Wold-style-definition... " >&6; }
7102 SAVE_CFLAGS
="$CFLAGS"
7103 CFLAGS
="$CFLAGS -Wold-style-definition"
7104 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
7105 /* end confdefs.h. */
7115 if ac_fn_c_try_compile
"$LINENO"; then :
7120 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
7121 if test $has_option = yes; then
7122 C_WARNINGS_SWITCH
="-Wold-style-definition $C_WARNINGS_SWITCH"
7124 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $has_option" >&5
7125 $as_echo "$has_option" >&6; }
7126 CFLAGS
="$SAVE_CFLAGS"
7130 ### Use -Wimplicit-function-declaration if the compiler supports it
7131 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether gcc understands -Wimplicit-function-declaration" >&5
7132 $as_echo_n "checking whether gcc understands -Wimplicit-function-declaration... " >&6; }
7133 SAVE_CFLAGS
="$CFLAGS"
7134 CFLAGS
="$CFLAGS -Wimplicit-function-declaration"
7135 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
7136 /* end confdefs.h. */
7146 if ac_fn_c_try_compile
"$LINENO"; then :
7151 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
7152 if test $has_option = yes; then
7153 C_WARNINGS_SWITCH
="-Wimplicit-function-declaration $C_WARNINGS_SWITCH"
7155 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $has_option" >&5
7156 $as_echo "$has_option" >&6; }
7157 CFLAGS
="$SAVE_CFLAGS"
7164 #### Some other nice autoconf tests.
7167 ac_cpp
='$CPP $CPPFLAGS'
7168 ac_compile
='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7169 ac_link
='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7170 ac_compiler_gnu
=$ac_cv_c_compiler_gnu
7171 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
7172 $as_echo_n "checking how to run the C preprocessor... " >&6; }
7173 # On Suns, sometimes $CPP names a directory.
7174 if test -n "$CPP" && test -d "$CPP"; then
7177 if test -z "$CPP"; then
7178 if test "${ac_cv_prog_CPP+set}" = set; then :
7179 $as_echo_n "(cached) " >&6
7181 # Double quotes because CPP needs to be expanded
7182 for CPP
in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
7185 for ac_c_preproc_warn_flag
in '' yes
7187 # Use a header file that comes with gcc, so configuring glibc
7188 # with a fresh cross-compiler works.
7189 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
7190 # <limits.h> exists even on freestanding compilers.
7191 # On the NeXT, cc -E runs the code through the compiler's parser,
7192 # not just through cpp. "Syntax error" is here to catch this case.
7193 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
7194 /* end confdefs.h. */
7196 # include <limits.h>
7198 # include <assert.h>
7202 if ac_fn_c_try_cpp
"$LINENO"; then :
7205 # Broken: fails on valid input.
7208 rm -f conftest.err conftest.
$ac_ext
7210 # OK, works on sane cases. Now check whether nonexistent headers
7211 # can be detected and how.
7212 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
7213 /* end confdefs.h. */
7214 #include <ac_nonexistent.h>
7216 if ac_fn_c_try_cpp
"$LINENO"; then :
7217 # Broken: success on invalid input.
7220 # Passes both tests.
7224 rm -f conftest.err conftest.
$ac_ext
7227 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
7228 rm -f conftest.err conftest.
$ac_ext
7229 if $ac_preproc_ok; then :
7241 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
7242 $as_echo "$CPP" >&6; }
7244 for ac_c_preproc_warn_flag
in '' yes
7246 # Use a header file that comes with gcc, so configuring glibc
7247 # with a fresh cross-compiler works.
7248 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
7249 # <limits.h> exists even on freestanding compilers.
7250 # On the NeXT, cc -E runs the code through the compiler's parser,
7251 # not just through cpp. "Syntax error" is here to catch this case.
7252 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
7253 /* end confdefs.h. */
7255 # include <limits.h>
7257 # include <assert.h>
7261 if ac_fn_c_try_cpp
"$LINENO"; then :
7264 # Broken: fails on valid input.
7267 rm -f conftest.err conftest.
$ac_ext
7269 # OK, works on sane cases. Now check whether nonexistent headers
7270 # can be detected and how.
7271 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
7272 /* end confdefs.h. */
7273 #include <ac_nonexistent.h>
7275 if ac_fn_c_try_cpp
"$LINENO"; then :
7276 # Broken: success on invalid input.
7279 # Passes both tests.
7283 rm -f conftest.err conftest.
$ac_ext
7286 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
7287 rm -f conftest.err conftest.
$ac_ext
7288 if $ac_preproc_ok; then :
7291 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
7292 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
7293 as_fn_error
"C preprocessor \"$CPP\" fails sanity check
7294 See \`config.log' for more details." "$LINENO" 5; }
7298 ac_cpp
='$CPP $CPPFLAGS'
7299 ac_compile
='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7300 ac_link
='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7301 ac_compiler_gnu
=$ac_cv_c_compiler_gnu
7304 if test "x$RANLIB" = x
; then
7305 if test -n "$ac_tool_prefix"; then
7306 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
7307 set dummy
${ac_tool_prefix}ranlib
; ac_word
=$2
7308 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7309 $as_echo_n "checking for $ac_word... " >&6; }
7310 if test "${ac_cv_prog_RANLIB+set}" = set; then :
7311 $as_echo_n "(cached) " >&6
7313 if test -n "$RANLIB"; then
7314 ac_cv_prog_RANLIB
="$RANLIB" # Let the user override the test.
7316 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
7320 test -z "$as_dir" && as_dir
=.
7321 for ac_exec_ext
in '' $ac_executable_extensions; do
7322 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7323 ac_cv_prog_RANLIB
="${ac_tool_prefix}ranlib"
7324 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7333 RANLIB
=$ac_cv_prog_RANLIB
7334 if test -n "$RANLIB"; then
7335 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
7336 $as_echo "$RANLIB" >&6; }
7338 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7339 $as_echo "no" >&6; }
7344 if test -z "$ac_cv_prog_RANLIB"; then
7345 ac_ct_RANLIB
=$RANLIB
7346 # Extract the first word of "ranlib", so it can be a program name with args.
7347 set dummy ranlib
; ac_word
=$2
7348 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7349 $as_echo_n "checking for $ac_word... " >&6; }
7350 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then :
7351 $as_echo_n "(cached) " >&6
7353 if test -n "$ac_ct_RANLIB"; then
7354 ac_cv_prog_ac_ct_RANLIB
="$ac_ct_RANLIB" # Let the user override the test.
7356 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
7360 test -z "$as_dir" && as_dir
=.
7361 for ac_exec_ext
in '' $ac_executable_extensions; do
7362 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7363 ac_cv_prog_ac_ct_RANLIB
="ranlib"
7364 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7373 ac_ct_RANLIB
=$ac_cv_prog_ac_ct_RANLIB
7374 if test -n "$ac_ct_RANLIB"; then
7375 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
7376 $as_echo "$ac_ct_RANLIB" >&6; }
7378 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7379 $as_echo "no" >&6; }
7382 if test "x$ac_ct_RANLIB" = x
; then
7385 case $cross_compiling:$ac_tool_warned in
7387 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7388 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7389 ac_tool_warned
=yes ;;
7391 RANLIB
=$ac_ct_RANLIB
7394 RANLIB
="$ac_cv_prog_RANLIB"
7399 ## Although we're running on an amd64 kernel, we're actually compiling for
7400 ## the x86 architecture. The user should probably have provided an
7401 ## explicit --build to `configure', but if everything else than the kernel
7402 ## is running in i386 mode, we can help them out.
7403 if test "$machine" = "amdx86-64"; then
7404 ac_fn_c_check_decl
"$LINENO" "i386" "ac_cv_have_decl_i386" "$ac_includes_default"
7405 if test "x$ac_cv_have_decl_i386" = x
""yes; then :
7409 if test "$ac_cv_have_decl_i386" = "yes"; then
7410 canonical
=`echo "$canonical" | sed -e 's/^amd64/i386/' -e 's/^x86_64/i386/'`
7412 machfile
="m/${machine}.h"
7416 # Extract the first word of "install-info", so it can be a program name with args.
7417 set dummy install-info
; ac_word
=$2
7418 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7419 $as_echo_n "checking for $ac_word... " >&6; }
7420 if test "${ac_cv_path_INSTALL_INFO+set}" = set; then :
7421 $as_echo_n "(cached) " >&6
7423 case $INSTALL_INFO in
7425 ac_cv_path_INSTALL_INFO
="$INSTALL_INFO" # Let the user override the test with a path.
7428 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
7432 test -z "$as_dir" && as_dir
=.
7433 for ac_exec_ext
in '' $ac_executable_extensions; do
7434 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7435 ac_cv_path_INSTALL_INFO
="$as_dir/$ac_word$ac_exec_ext"
7436 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7446 INSTALL_INFO
=$ac_cv_path_INSTALL_INFO
7447 if test -n "$INSTALL_INFO"; then
7448 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL_INFO" >&5
7449 $as_echo "$INSTALL_INFO" >&6; }
7451 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7452 $as_echo "no" >&6; }
7456 # Extract the first word of "install-info", so it can be a program name with args.
7457 set dummy install-info
; ac_word
=$2
7458 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7459 $as_echo_n "checking for $ac_word... " >&6; }
7460 if test "${ac_cv_path_INSTALL_INFO+set}" = set; then :
7461 $as_echo_n "(cached) " >&6
7463 case $INSTALL_INFO in
7465 ac_cv_path_INSTALL_INFO
="$INSTALL_INFO" # Let the user override the test with a path.
7468 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
7469 for as_dir
in /usr
/sbin
7472 test -z "$as_dir" && as_dir
=.
7473 for ac_exec_ext
in '' $ac_executable_extensions; do
7474 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7475 ac_cv_path_INSTALL_INFO
="$as_dir/$ac_word$ac_exec_ext"
7476 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7486 INSTALL_INFO
=$ac_cv_path_INSTALL_INFO
7487 if test -n "$INSTALL_INFO"; then
7488 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL_INFO" >&5
7489 $as_echo "$INSTALL_INFO" >&6; }
7491 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7492 $as_echo "no" >&6; }
7496 # Extract the first word of "install-info", so it can be a program name with args.
7497 set dummy install-info
; ac_word
=$2
7498 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7499 $as_echo_n "checking for $ac_word... " >&6; }
7500 if test "${ac_cv_path_INSTALL_INFO+set}" = set; then :
7501 $as_echo_n "(cached) " >&6
7503 case $INSTALL_INFO in
7505 ac_cv_path_INSTALL_INFO
="$INSTALL_INFO" # Let the user override the test with a path.
7508 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
7512 test -z "$as_dir" && as_dir
=.
7513 for ac_exec_ext
in '' $ac_executable_extensions; do
7514 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7515 ac_cv_path_INSTALL_INFO
="$as_dir/$ac_word$ac_exec_ext"
7516 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7523 test -z "$ac_cv_path_INSTALL_INFO" && ac_cv_path_INSTALL_INFO
=":"
7527 INSTALL_INFO
=$ac_cv_path_INSTALL_INFO
7528 if test -n "$INSTALL_INFO"; then
7529 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL_INFO" >&5
7530 $as_echo "$INSTALL_INFO" >&6; }
7532 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7533 $as_echo "no" >&6; }
7537 # Extract the first word of "gzip", so it can be a program name with args.
7538 set dummy
gzip; ac_word
=$2
7539 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7540 $as_echo_n "checking for $ac_word... " >&6; }
7541 if test "${ac_cv_path_GZIP_PROG+set}" = set; then :
7542 $as_echo_n "(cached) " >&6
7546 ac_cv_path_GZIP_PROG
="$GZIP_PROG" # Let the user override the test with a path.
7549 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
7553 test -z "$as_dir" && as_dir
=.
7554 for ac_exec_ext
in '' $ac_executable_extensions; do
7555 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7556 ac_cv_path_GZIP_PROG
="$as_dir/$ac_word$ac_exec_ext"
7557 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7567 GZIP_PROG
=$ac_cv_path_GZIP_PROG
7568 if test -n "$GZIP_PROG"; then
7569 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GZIP_PROG" >&5
7570 $as_echo "$GZIP_PROG" >&6; }
7572 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7573 $as_echo "no" >&6; }
7579 ## Need makeinfo >= 4.7 (?) to build the manuals.
7580 # Extract the first word of "makeinfo", so it can be a program name with args.
7581 set dummy makeinfo
; ac_word
=$2
7582 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7583 $as_echo_n "checking for $ac_word... " >&6; }
7584 if test "${ac_cv_path_MAKEINFO+set}" = set; then :
7585 $as_echo_n "(cached) " >&6
7589 ac_cv_path_MAKEINFO
="$MAKEINFO" # Let the user override the test with a path.
7592 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
7596 test -z "$as_dir" && as_dir
=.
7597 for ac_exec_ext
in '' $ac_executable_extensions; do
7598 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7599 ac_cv_path_MAKEINFO
="$as_dir/$ac_word$ac_exec_ext"
7600 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7607 test -z "$ac_cv_path_MAKEINFO" && ac_cv_path_MAKEINFO
="no"
7611 MAKEINFO
=$ac_cv_path_MAKEINFO
7612 if test -n "$MAKEINFO"; then
7613 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAKEINFO" >&5
7614 $as_echo "$MAKEINFO" >&6; }
7616 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7617 $as_echo "no" >&6; }
7621 if test "$MAKEINFO" != "no" && \
7622 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
7626 ## Makeinfo is unusual. For a released Emacs, the manuals are
7627 ## pre-built, and not deleted by the normal clean rules. makeinfo is
7628 ## therefore in the category of "special tools" not normally required, which
7629 ## configure does not have to check for (eg autoconf itself).
7630 ## In a Bazaar checkout on the other hand, the manuals are not included.
7631 ## So makeinfo is a requirement to build from Bazaar, and configure
7632 ## should test for it as it does for any other build requirement.
7633 ## We use the presence of $srcdir/info/emacs to distinguish a release,
7634 ## with pre-built manuals, from a Bazaar checkout.
7637 if test "$MAKEINFO" = "no"; then
7639 if test "x${with_makeinfo}" = "xno"; then
7641 elif test ! -e $srcdir/info
/emacs
; then
7642 as_fn_error
"You do not seem to have makeinfo >= 4.7, and your
7643 source tree does not seem to have pre-built manuals in the \`info' directory.
7644 Either install a suitable version of makeinfo, or re-run configure
7645 with the \`--without-makeinfo' option to build without the manuals. " "$LINENO" 5
7651 if test x
$GCC = xyes
; then
7652 test "x$GCC_LINK_TEST_OPTIONS" != x
&& \
7653 ac_link
="$ac_link $GCC_LINK_TEST_OPTIONS"
7655 test "x$NON_GCC_LINK_TEST_OPTIONS" != x
&& \
7656 ac_link
="$ac_link $NON_GCC_LINK_TEST_OPTIONS"
7660 late_LDFLAGS
=$LDFLAGS
7661 if test x
$GCC = xyes
; then
7662 LDFLAGS
="$LDFLAGS -Wl,-znocombreloc"
7664 LDFLAGS
="$LDFLAGS -znocombreloc"
7667 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -znocombreloc" >&5
7668 $as_echo_n "checking for -znocombreloc... " >&6; }
7669 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
7670 /* end confdefs.h. */
7680 if ac_fn_c_try_link
"$LINENO"; then :
7681 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
7682 $as_echo "yes" >&6; }
7684 LDFLAGS
=$late_LDFLAGS
7685 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7686 $as_echo "no" >&6; }
7688 rm -f core conftest.err conftest.
$ac_objext \
7689 conftest
$ac_exeext conftest.
$ac_ext
7692 # The value of CPP is a quoted variable reference, so we need to do this
7693 # to get its actual value...
7694 CPP
=`eval "echo $CPP"`
7697 test "x$CANNOT_DUMP" = "x" && CANNOT_DUMP
=no
7699 your-opsys-here
) CANNOT_DUMP
=yes ;;
7702 test "$CANNOT_DUMP" = "yes" && \
7704 $as_echo "#define CANNOT_DUMP 1" >>confdefs.h
7710 UNEXEC_OBJ
=unexelf.o
7712 # MSDOS uses unexcoff.o
7713 # MSWindows uses unexw32.o
7715 UNEXEC_OBJ
=unexaix.o
7721 UNEXEC_OBJ
=unexmacosx.o
7724 UNEXEC_OBJ
=unexhp9k800.o
7727 # Use the Solaris dldump() function, called from unexsol.c, to dump
7728 # emacs, instead of the generic ELF dump code found in unexelf.c.
7729 # The resulting binary has a complete symbol table, and is better
7730 # for debugging and other observability tools (debuggers, pstack, etc).
7732 # If you encounter a problem using dldump(), please consider sending
7733 # a message to the OpenSolaris tools-linking mailing list:
7734 # http://mail.opensolaris.org/mailman/listinfo/tools-linking
7736 # It is likely that dldump() works with older Solaris too, but this has
7737 # not been tested, so for now this change is for Solaris 10 or newer.
7738 UNEXEC_OBJ
=unexsol.o
7745 ## Let `ld' find image libs and similar things in /usr/local/lib.
7746 ## The system compiler, GCC, has apparently been modified to not
7747 ## look there, contrary to what a stock GCC would do.
7748 LD_SWITCH_SYSTEM
=-L/usr
/local
/lib
7752 ## cpp test was "ifdef __mips__", but presumably this is equivalent...
7753 case $host_cpu in mips
*) LD_SWITCH_SYSTEM
="-G 0";; esac
7757 LD_SWITCH_SYSTEM
="-Wl,-rpath,/usr/pkg/lib -L/usr/pkg/lib -Wl,-rpath,/usr/local/lib -L/usr/local/lib"
7761 ## Han Boetes <han@mijncomputer.nl> says this is necessary,
7762 ## otherwise Emacs dumps core on elf systems.
7763 LD_SWITCH_SYSTEM
="-Z"
7768 ac_link
="$ac_link $LD_SWITCH_SYSTEM"
7770 ## This setting of LD_SWITCH_SYSTEM references LD_SWITCH_X_SITE_AUX,
7771 ## which has not been defined yet. When this was handled with cpp,
7772 ## it was expanded to null when configure sourced the s/*.h file.
7773 ## Thus LD_SWITCH_SYSTEM had different values in configure and the Makefiles.
7774 ## FIXME it would be cleaner to put this in LD_SWITCH_SYSTEM_TEMACS
7775 ## (or somesuch), but because it is supposed to go at the _front_
7776 ## of LD_SWITCH_SYSTEM, we cannot do that in exactly the same way.
7777 ## Compare with the gnu-linux case below, which added to the end
7778 ## of LD_SWITCH_SYSTEM, and so can instead go at the front of
7779 ## LD_SWITCH_SYSTEM_TEMACS.
7782 ## _AUX_RPATH is like _AUX, but uses -rpath instead of -R.
7783 LD_SWITCH_SYSTEM
="\$(LD_SWITCH_X_SITE_AUX_RPATH) $LD_SWITCH_SYSTEM" ;;
7788 if test "$machine" = "alpha"; then
7789 ac_fn_c_check_decl
"$LINENO" "__ELF__" "ac_cv_have_decl___ELF__" "$ac_includes_default"
7790 if test "x$ac_cv_have_decl___ELF__" = x
""yes; then :
7794 if test "$ac_cv_have_decl___ELF__" = "yes"; then
7795 ## With ELF, make sure that all common symbols get allocated to in the
7796 ## data section. Otherwise, the dump of temacs may miss variables in
7797 ## the shared library that have been initialized. For example, with
7798 ## GNU libc, __malloc_initialized would normally be resolved to the
7799 ## shared library's .bss section, which is fatal.
7800 if test "x$GCC" = "xyes"; then
7801 C_SWITCH_MACHINE
="-fno-common"
7803 as_fn_error
"What gives? Fix me if DEC Unix supports ELF now." "$LINENO" 5
7806 UNEXEC_OBJ
=unexalpha.o
7814 ## Some programs in src produce warnings saying certain subprograms
7815 ## are too complex and need a MAXMEM value greater than 2000 for
7816 ## additional optimization. --nils@exp-math.uni-essen.de
7817 test "$opsys" = "aix4.2" && test "x$GCC" != "xyes" && \
7818 C_SWITCH_SYSTEM
="-ma -qmaxmem=4000"
7819 ## gnu-linux might need -D_BSD_SOURCE on old libc5 systems.
7820 ## It is redundant in glibc2, since we define _GNU_SOURCE.
7826 ## IBM's X11R5 uses -lIM and -liconv in AIX 3.2.2.
7827 aix4-2
) LIBS_SYSTEM
="-lrts -lIM -liconv" ;;
7829 freebsd
) LIBS_SYSTEM
="-lutil" ;;
7831 hpux
*) LIBS_SYSTEM
="-l:libdld.sl" ;;
7833 sol2
*) LIBS_SYSTEM
="-lsocket -lnsl" ;;
7835 ## Motif needs -lgen.
7836 unixware
) LIBS_SYSTEM
="-lsocket -lnsl -lelf -lgen" ;;
7841 ### Make sure subsequent tests use flags consistent with the build flags.
7843 if test x
"${OVERRIDE_CPPFLAGS}" != x
; then
7844 CPPFLAGS
="${OVERRIDE_CPPFLAGS}"
7846 CPPFLAGS
="$C_SWITCH_SYSTEM $C_SWITCH_MACHINE $CPPFLAGS"
7849 # Suppress obsolescent Autoconf test for size_t; Emacs assumes C89 or better.
7851 # Likewise for obsolescent test for uid_t, gid_t; Emacs assumes them.
7854 # Check whether --enable-largefile was given.
7855 if test "${enable_largefile+set}" = set; then :
7856 enableval
=$enable_largefile;
7859 if test "$enable_largefile" != no
; then
7861 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for special C compiler options needed for large files" >&5
7862 $as_echo_n "checking for special C compiler options needed for large files... " >&6; }
7863 if test "${ac_cv_sys_largefile_CC+set}" = set; then :
7864 $as_echo_n "(cached) " >&6
7866 ac_cv_sys_largefile_CC
=no
7867 if test "$GCC" != yes; then
7870 # IRIX 6.2 and later do not support large files by default,
7871 # so use the C compiler's -n32 option if that helps.
7872 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
7873 /* end confdefs.h. */
7874 #include <sys/types.h>
7875 /* Check that off_t can represent 2**63 - 1 correctly.
7876 We can't simply define LARGE_OFF_T to be 9223372036854775807,
7877 since some C++ compilers masquerading as C compilers
7878 incorrectly reject 9223372036854775807. */
7879 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
7880 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
7881 && LARGE_OFF_T % 2147483647 == 1)
7891 if ac_fn_c_try_compile
"$LINENO"; then :
7894 rm -f core conftest.err conftest.
$ac_objext
7896 if ac_fn_c_try_compile
"$LINENO"; then :
7897 ac_cv_sys_largefile_CC
=' -n32'; break
7899 rm -f core conftest.err conftest.
$ac_objext
7903 rm -f conftest.
$ac_ext
7906 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_largefile_CC" >&5
7907 $as_echo "$ac_cv_sys_largefile_CC" >&6; }
7908 if test "$ac_cv_sys_largefile_CC" != no
; then
7909 CC
=$CC$ac_cv_sys_largefile_CC
7912 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _FILE_OFFSET_BITS value needed for large files" >&5
7913 $as_echo_n "checking for _FILE_OFFSET_BITS value needed for large files... " >&6; }
7914 if test "${ac_cv_sys_file_offset_bits+set}" = set; then :
7915 $as_echo_n "(cached) " >&6
7918 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
7919 /* end confdefs.h. */
7920 #include <sys/types.h>
7921 /* Check that off_t can represent 2**63 - 1 correctly.
7922 We can't simply define LARGE_OFF_T to be 9223372036854775807,
7923 since some C++ compilers masquerading as C compilers
7924 incorrectly reject 9223372036854775807. */
7925 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
7926 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
7927 && LARGE_OFF_T % 2147483647 == 1)
7937 if ac_fn_c_try_compile
"$LINENO"; then :
7938 ac_cv_sys_file_offset_bits
=no
; break
7940 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
7941 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
7942 /* end confdefs.h. */
7943 #define _FILE_OFFSET_BITS 64
7944 #include <sys/types.h>
7945 /* Check that off_t can represent 2**63 - 1 correctly.
7946 We can't simply define LARGE_OFF_T to be 9223372036854775807,
7947 since some C++ compilers masquerading as C compilers
7948 incorrectly reject 9223372036854775807. */
7949 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
7950 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
7951 && LARGE_OFF_T % 2147483647 == 1)
7961 if ac_fn_c_try_compile
"$LINENO"; then :
7962 ac_cv_sys_file_offset_bits
=64; break
7964 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
7965 ac_cv_sys_file_offset_bits
=unknown
7969 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_file_offset_bits" >&5
7970 $as_echo "$ac_cv_sys_file_offset_bits" >&6; }
7971 case $ac_cv_sys_file_offset_bits in #(
7974 cat >>confdefs.h
<<_ACEOF
7975 #define _FILE_OFFSET_BITS $ac_cv_sys_file_offset_bits
7980 if test $ac_cv_sys_file_offset_bits = unknown
; then
7981 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _LARGE_FILES value needed for large files" >&5
7982 $as_echo_n "checking for _LARGE_FILES value needed for large files... " >&6; }
7983 if test "${ac_cv_sys_large_files+set}" = set; then :
7984 $as_echo_n "(cached) " >&6
7987 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
7988 /* end confdefs.h. */
7989 #include <sys/types.h>
7990 /* Check that off_t can represent 2**63 - 1 correctly.
7991 We can't simply define LARGE_OFF_T to be 9223372036854775807,
7992 since some C++ compilers masquerading as C compilers
7993 incorrectly reject 9223372036854775807. */
7994 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
7995 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
7996 && LARGE_OFF_T % 2147483647 == 1)
8006 if ac_fn_c_try_compile
"$LINENO"; then :
8007 ac_cv_sys_large_files
=no
; break
8009 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
8010 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
8011 /* end confdefs.h. */
8012 #define _LARGE_FILES 1
8013 #include <sys/types.h>
8014 /* Check that off_t can represent 2**63 - 1 correctly.
8015 We can't simply define LARGE_OFF_T to be 9223372036854775807,
8016 since some C++ compilers masquerading as C compilers
8017 incorrectly reject 9223372036854775807. */
8018 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
8019 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
8020 && LARGE_OFF_T % 2147483647 == 1)
8030 if ac_fn_c_try_compile
"$LINENO"; then :
8031 ac_cv_sys_large_files
=1; break
8033 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
8034 ac_cv_sys_large_files
=unknown
8038 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_large_files" >&5
8039 $as_echo "$ac_cv_sys_large_files" >&6; }
8040 case $ac_cv_sys_large_files in #(
8043 cat >>confdefs.h
<<_ACEOF
8044 #define _LARGE_FILES $ac_cv_sys_large_files
8063 START_FILES
='pre-crt0.o'
8066 ## Adding -lm confuses the dynamic linker, so omit it.
8068 START_FILES
='pre-crt0.o'
8071 LIB_STANDARD
='-lgcc -lc -lgcc $(CRT_DIR)/crtend.o $(CRT_DIR)/crtn.o'
8072 START_FILES
='pre-crt0.o $(CRT_DIR)/crt1.o $(CRT_DIR)/crti.o $(CRT_DIR)/crtbegin.o'
8074 gnu-linux | gnu-kfreebsd
)
8075 LIB_STANDARD
='-lgcc -lc -lgcc $(CRT_DIR)/crtn.o'
8076 START_FILES
='pre-crt0.o $(CRT_DIR)/crt1.o $(CRT_DIR)/crti.o'
8078 hpux10-20 | hpux11
)
8080 START_FILES
='pre-crt0.o $(CRT_DIR)/crt0.o'
8083 LIB_STANDARD
='-lgcc -lc -lgcc $(CRT_DIR)/crtend.o'
8084 START_FILES
='pre-crt0.o $(CRT_DIR)/crt0.o $(CRT_DIR)/crtbegin.o'
8093 for file in x
$LIB_STANDARD $START_FILES; do
8095 *CRT_DIR
*) crt_files
="$crt_files `echo $file | sed -e 's|.*/||'`" ;;
8099 if test "x$crt_files" != x
; then
8101 ## If user specified a crt-dir, use that unconditionally.
8104 if test "X$CRT_DIR" = "X"; then
8106 CRT_DIR
=/usr
/lib
# default
8108 case "$canonical" in
8109 x86_64-
*-linux-gnu* | s390x-
*-linux-gnu*)
8110 ## On x86-64 and s390x GNU/Linux distributions, the standard library
8111 ## can be in a variety of places. We only try /usr/lib64 and /usr/lib.
8112 ## For anything else (eg /usr/lib32), it is up the user to specify
8113 ## the location (bug#5655).
8114 ## Test for crtn.o, not just the directory, because sometimes the
8115 ## directory exists but does not have the relevant files (bug#1287).
8116 ## FIXME better to test for binary compatibility somehow.
8117 test -e /usr
/lib64
/crtn.o
&& CRT_DIR
=/usr
/lib64
8120 powerpc64-
*-linux-gnu* | sparc64-
*-linux-gnu*) CRT_DIR
=/usr
/lib64
;;
8124 hpux10-20
) CRT_DIR
=/lib
;;
8127 test "x${GCC}" = xyes
&& crt_gcc
=yes
8133 for file in $crt_files; do
8135 ## If we're using gcc, try to determine it automatically by asking
8136 ## gcc. [If this doesn't work, CRT_DIR will remain at the
8137 ## system-dependent default from above.]
8138 if test $crt_gcc = yes && test ! -e $CRT_DIR/$file; then
8140 crt_file
=`$CC --print-file-name=$file 2>/dev/null`
8143 CRT_DIR
=`$as_dirname -- "$crt_file" ||
8144 $as_expr X"$crt_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
8145 X"$crt_file" : 'X\(//\)[^/]' \| \
8146 X"$crt_file" : 'X\(//\)$' \| \
8147 X"$crt_file" : 'X\(/\)' \| . 2>/dev/null ||
8148 $as_echo X"$crt_file" |
8149 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
8172 test -e $CRT_DIR/$file || crt_missing
="$crt_missing $file"
8175 test "x$crt_missing" = x || \
8176 as_fn_error
"Required file(s) not found:$crt_missing
8177 Try using the --with-crt-dir option." "$LINENO" 5
8179 fi # crt_files != ""
8185 if test -f $CRT_DIR/crti.o
; then
8187 test -f $CRT_DIR/crtn.o || \
8188 as_fn_error
"Required file not found: crtn.o" "$LINENO" 5
8190 LIB_STANDARD
='-lgcc -lc -lgcc $(CRT_DIR)/crtend.o $(CRT_DIR)/crtn.o'
8191 START_FILES
='pre-crt0.o $(CRT_DIR)/crt0.o $(CRT_DIR)/crti.o $(CRT_DIR)/crtbegin.o'
8200 if test "${with_sound}" != "no"; then
8201 # Sound support for GNU/Linux and the free BSDs.
8202 for ac_header
in machine
/soundcard.h sys
/soundcard.h soundcard.h
8204 as_ac_Header
=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
8205 ac_fn_c_check_header_mongrel
"$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
8206 eval as_val
=\$
$as_ac_Header
8207 if test "x$as_val" = x
""yes; then :
8208 cat >>confdefs.h
<<_ACEOF
8209 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
8211 have_sound_header
=yes
8216 # Emulation library used on NetBSD.
8217 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _oss_ioctl in -lossaudio" >&5
8218 $as_echo_n "checking for _oss_ioctl in -lossaudio... " >&6; }
8219 if test "${ac_cv_lib_ossaudio__oss_ioctl+set}" = set; then :
8220 $as_echo_n "(cached) " >&6
8222 ac_check_lib_save_LIBS
=$LIBS
8223 LIBS
="-lossaudio $LIBS"
8224 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
8225 /* end confdefs.h. */
8227 /* Override any GCC internal prototype to avoid an error.
8228 Use char because int might match the return type of a GCC
8229 builtin and then its argument prototype would still apply. */
8237 return _oss_ioctl ();
8242 if ac_fn_c_try_link
"$LINENO"; then :
8243 ac_cv_lib_ossaudio__oss_ioctl
=yes
8245 ac_cv_lib_ossaudio__oss_ioctl
=no
8247 rm -f core conftest.err conftest.
$ac_objext \
8248 conftest
$ac_exeext conftest.
$ac_ext
8249 LIBS
=$ac_check_lib_save_LIBS
8251 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_ossaudio__oss_ioctl" >&5
8252 $as_echo "$ac_cv_lib_ossaudio__oss_ioctl" >&6; }
8253 if test "x$ac_cv_lib_ossaudio__oss_ioctl" = x
""yes; then :
8262 ALSA_MODULES
="alsa >= $ALSA_REQUIRED"
8266 # Extract the first word of "pkg-config", so it can be a program name with args.
8267 set dummy pkg-config
; ac_word
=$2
8268 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8269 $as_echo_n "checking for $ac_word... " >&6; }
8270 if test "${ac_cv_path_PKG_CONFIG+set}" = set; then :
8271 $as_echo_n "(cached) " >&6
8275 ac_cv_path_PKG_CONFIG
="$PKG_CONFIG" # Let the user override the test with a path.
8278 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
8282 test -z "$as_dir" && as_dir
=.
8283 for ac_exec_ext
in '' $ac_executable_extensions; do
8284 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8285 ac_cv_path_PKG_CONFIG
="$as_dir/$ac_word$ac_exec_ext"
8286 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8293 test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG
="no"
8297 PKG_CONFIG
=$ac_cv_path_PKG_CONFIG
8298 if test -n "$PKG_CONFIG"; then
8299 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5
8300 $as_echo "$PKG_CONFIG" >&6; }
8302 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8303 $as_echo "no" >&6; }
8308 if test "$PKG_CONFIG" = "no" ; then
8311 PKG_CONFIG_MIN_VERSION
=0.9.0
8312 if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
8313 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ALSA_MODULES" >&5
8314 $as_echo_n "checking for $ALSA_MODULES... " >&6; }
8316 if $PKG_CONFIG --exists "$ALSA_MODULES" 2>&5 &&
8317 ALSA_CFLAGS
=`$PKG_CONFIG --cflags "$ALSA_MODULES" 2>&5` &&
8318 ALSA_LIBS
=`$PKG_CONFIG --libs "$ALSA_MODULES" 2>&5`; then
8320 ALSA_CFLAGS
=`$as_echo "$ALSA_CFLAGS" | sed -e 's,///*,/,g'`
8321 ALSA_LIBS
=`$as_echo "$ALSA_LIBS" | sed -e 's,///*,/,g'`
8322 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes CFLAGS='$ALSA_CFLAGS' LIBS='$ALSA_LIBS'" >&5
8323 $as_echo "yes CFLAGS='$ALSA_CFLAGS' LIBS='$ALSA_LIBS'" >&6; }
8326 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8327 $as_echo "no" >&6; }
8330 ## If we have a custom action on failure, don't print errors, but
8331 ## do set a variable so people can do so.
8332 ALSA_PKG_ERRORS
=`$PKG_CONFIG --errors-to-stdout --print-errors "$ALSA_MODULES"`
8339 echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
8340 echo "*** See http://www.freedesktop.org/software/pkgconfig"
8344 if test $succeeded = yes; then
8350 if test $HAVE_ALSA = yes; then
8351 SAVE_CFLAGS
="$CFLAGS"
8353 CFLAGS
="$ALSA_CFLAGS $CFLAGS"
8354 LIBS
="$ALSA_LIBS $LIBS"
8355 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
8356 /* end confdefs.h. */
8357 #include <asoundlib.h>
8361 snd_lib_error_set_handler (0);
8366 if ac_fn_c_try_compile
"$LINENO"; then :
8367 emacs_alsa_normal
=yes
8369 emacs_alsa_normal
=no
8371 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
8372 if test "$emacs_alsa_normal" != yes; then
8373 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
8374 /* end confdefs.h. */
8375 #include <alsa/asoundlib.h>
8379 snd_lib_error_set_handler (0);
8384 if ac_fn_c_try_compile
"$LINENO"; then :
8385 emacs_alsa_subdir
=yes
8387 emacs_alsa_subdir
=no
8389 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
8390 if test "$emacs_alsa_subdir" != yes; then
8391 as_fn_error
"pkg-config found alsa, but it does not compile. See config.log for error messages." "$LINENO" 5
8393 ALSA_CFLAGS
="$ALSA_CFLAGS -DALSA_SUBDIR_INCLUDE"
8396 CFLAGS
="$SAVE_CFLAGS"
8398 LIBSOUND
="$LIBSOUND $ALSA_LIBS"
8399 CFLAGS_SOUND
="$CFLAGS_SOUND $ALSA_CFLAGS"
8401 $as_echo "#define HAVE_ALSA 1" >>confdefs.h
8405 if test x
$have_sound_header = xyes ||
test $HAVE_ALSA = yes; then
8407 gnu-linux|freebsd|netbsd
)
8409 $as_echo "#define HAVE_SOUND 1" >>confdefs.h
8418 for ac_header
in sys
/select.h sys
/time.h unistd.h utime.h \
8419 linux
/version.h sys
/systeminfo.h \
8420 stdio_ext.h fcntl.h coff.h pty.h sys
/mman.h \
8421 sys
/vlimit.h sys
/resource.h locale.h sys
/_mbstate_t.h \
8422 sys
/utsname.h
pwd.h utmp.h dirent.h util.h
8424 as_ac_Header
=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
8425 ac_fn_c_check_header_mongrel
"$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
8426 eval as_val
=\$
$as_ac_Header
8427 if test "x$as_val" = x
""yes; then :
8428 cat >>confdefs.h
<<_ACEOF
8429 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
8437 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if personality LINUX32 can be set" >&5
8438 $as_echo_n "checking if personality LINUX32 can be set... " >&6; }
8439 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
8440 /* end confdefs.h. */
8441 #include <sys/personality.h>
8445 personality (PER_LINUX32)
8450 if ac_fn_c_try_compile
"$LINENO"; then :
8451 emacs_cv_personality_linux32
=yes
8453 emacs_cv_personality_linux32
=no
8455 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
8456 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $emacs_cv_personality_linux32" >&5
8457 $as_echo "$emacs_cv_personality_linux32" >&6; }
8459 if test $emacs_cv_personality_linux32 = yes; then
8461 $as_echo "#define HAVE_PERSONALITY_LINUX32 1" >>confdefs.h
8465 for ac_header
in term.h
8467 ac_fn_c_check_header_preproc
"$LINENO" "term.h" "ac_cv_header_term_h"
8468 if test "x$ac_cv_header_term_h" = x
""yes; then :
8469 cat >>confdefs.h
<<_ACEOF
8470 #define HAVE_TERM_H 1
8477 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether time.h and sys/time.h may both be included" >&5
8478 $as_echo_n "checking whether time.h and sys/time.h may both be included... " >&6; }
8479 if test "${ac_cv_header_time+set}" = set; then :
8480 $as_echo_n "(cached) " >&6
8482 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
8483 /* end confdefs.h. */
8484 #include <sys/types.h>
8485 #include <sys/time.h>
8491 if ((struct tm *) 0)
8497 if ac_fn_c_try_compile
"$LINENO"; then :
8498 ac_cv_header_time
=yes
8500 ac_cv_header_time
=no
8502 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
8504 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_time" >&5
8505 $as_echo "$ac_cv_header_time" >&6; }
8506 if test $ac_cv_header_time = yes; then
8508 $as_echo "#define TIME_WITH_SYS_TIME 1" >>confdefs.h
8512 ac_fn_c_check_decl
"$LINENO" "sys_siglist" "ac_cv_have_decl_sys_siglist" "$ac_includes_default"
8513 if test "x$ac_cv_have_decl_sys_siglist" = x
""yes; then :
8519 cat >>confdefs.h
<<_ACEOF
8520 #define HAVE_DECL_SYS_SIGLIST $ac_have_decl
8523 if test $ac_cv_have_decl_sys_siglist != yes; then
8524 # For Tru64, at least:
8525 ac_fn_c_check_decl
"$LINENO" "__sys_siglist" "ac_cv_have_decl___sys_siglist" "$ac_includes_default"
8526 if test "x$ac_cv_have_decl___sys_siglist" = x
""yes; then :
8532 cat >>confdefs.h
<<_ACEOF
8533 #define HAVE_DECL___SYS_SIGLIST $ac_have_decl
8536 if test $ac_cv_have_decl___sys_siglist = yes; then
8538 $as_echo "#define sys_siglist __sys_siglist" >>confdefs.h
8542 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sys/wait.h that is POSIX.1 compatible" >&5
8543 $as_echo_n "checking for sys/wait.h that is POSIX.1 compatible... " >&6; }
8544 if test "${ac_cv_header_sys_wait_h+set}" = set; then :
8545 $as_echo_n "(cached) " >&6
8547 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
8548 /* end confdefs.h. */
8549 #include <sys/types.h>
8550 #include <sys/wait.h>
8552 # define WEXITSTATUS(stat_val) ((unsigned int) (stat_val) >> 8)
8555 # define WIFEXITED(stat_val) (((stat_val) & 255) == 0)
8563 s = WIFEXITED (s) ? WEXITSTATUS (s) : 1;
8568 if ac_fn_c_try_compile
"$LINENO"; then :
8569 ac_cv_header_sys_wait_h
=yes
8571 ac_cv_header_sys_wait_h
=no
8573 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
8575 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_sys_wait_h" >&5
8576 $as_echo "$ac_cv_header_sys_wait_h" >&6; }
8577 if test $ac_cv_header_sys_wait_h = yes; then
8579 $as_echo "#define HAVE_SYS_WAIT_H 1" >>confdefs.h
8584 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for struct utimbuf" >&5
8585 $as_echo_n "checking for struct utimbuf... " >&6; }
8586 if test "${emacs_cv_struct_utimbuf+set}" = set; then :
8587 $as_echo_n "(cached) " >&6
8589 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
8590 /* end confdefs.h. */
8591 #ifdef TIME_WITH_SYS_TIME
8592 #include <sys/time.h>
8595 #ifdef HAVE_SYS_TIME_H
8596 #include <sys/time.h>
8607 static struct utimbuf x; x.actime = x.modtime;
8612 if ac_fn_c_try_compile
"$LINENO"; then :
8613 emacs_cv_struct_utimbuf
=yes
8615 emacs_cv_struct_utimbuf
=no
8617 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
8619 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $emacs_cv_struct_utimbuf" >&5
8620 $as_echo "$emacs_cv_struct_utimbuf" >&6; }
8621 if test $emacs_cv_struct_utimbuf = yes; then
8623 $as_echo "#define HAVE_STRUCT_UTIMBUF 1" >>confdefs.h
8627 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for speed_t" >&5
8628 $as_echo_n "checking for speed_t... " >&6; }
8629 if test "${emacs_cv_speed_t+set}" = set; then :
8630 $as_echo_n "(cached) " >&6
8632 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
8633 /* end confdefs.h. */
8634 #include <termios.h>
8643 if ac_fn_c_try_compile
"$LINENO"; then :
8644 emacs_cv_speed_t
=yes
8648 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
8650 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $emacs_cv_speed_t" >&5
8651 $as_echo "$emacs_cv_speed_t" >&6; }
8652 if test $emacs_cv_speed_t = yes; then
8654 $as_echo "#define HAVE_SPEED_T 1" >>confdefs.h
8658 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for struct timeval" >&5
8659 $as_echo_n "checking for struct timeval... " >&6; }
8660 if test "${emacs_cv_struct_timeval+set}" = set; then :
8661 $as_echo_n "(cached) " >&6
8663 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
8664 /* end confdefs.h. */
8665 #ifdef TIME_WITH_SYS_TIME
8666 #include <sys/time.h>
8669 #ifdef HAVE_SYS_TIME_H
8670 #include <sys/time.h>
8678 static struct timeval x; x.tv_sec = x.tv_usec;
8683 if ac_fn_c_try_compile
"$LINENO"; then :
8684 emacs_cv_struct_timeval
=yes
8686 emacs_cv_struct_timeval
=no
8688 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
8690 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $emacs_cv_struct_timeval" >&5
8691 $as_echo "$emacs_cv_struct_timeval" >&6; }
8692 HAVE_TIMEVAL
=$emacs_cv_struct_timeval
8693 if test $emacs_cv_struct_timeval = yes; then
8695 $as_echo "#define HAVE_TIMEVAL 1" >>confdefs.h
8699 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for struct exception" >&5
8700 $as_echo_n "checking for struct exception... " >&6; }
8701 if test "${emacs_cv_struct_exception+set}" = set; then :
8702 $as_echo_n "(cached) " >&6
8704 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
8705 /* end confdefs.h. */
8710 static struct exception x; x.arg1 = x.arg2 = x.retval; x.name = ""; x.type = 1;
8715 if ac_fn_c_try_compile
"$LINENO"; then :
8716 emacs_cv_struct_exception
=yes
8718 emacs_cv_struct_exception
=no
8720 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
8722 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $emacs_cv_struct_exception" >&5
8723 $as_echo "$emacs_cv_struct_exception" >&6; }
8724 HAVE_EXCEPTION
=$emacs_cv_struct_exception
8725 if test $emacs_cv_struct_exception != yes; then
8727 $as_echo "#define NO_MATHERR 1" >>confdefs.h
8731 for ac_header
in sys
/socket.h
8733 ac_fn_c_check_header_mongrel
"$LINENO" "sys/socket.h" "ac_cv_header_sys_socket_h" "$ac_includes_default"
8734 if test "x$ac_cv_header_sys_socket_h" = x
""yes; then :
8735 cat >>confdefs.h
<<_ACEOF
8736 #define HAVE_SYS_SOCKET_H 1
8743 for ac_header
in net
/if.h
8745 ac_fn_c_check_header_compile
"$LINENO" "net/if.h" "ac_cv_header_net_if_h" "$ac_includes_default
8746 #if HAVE_SYS_SOCKET_H
8747 #include <sys/socket.h>
8750 if test "x$ac_cv_header_net_if_h" = x
""yes; then :
8751 cat >>confdefs.h
<<_ACEOF
8752 #define HAVE_NET_IF_H 1
8759 for ac_header
in ifaddrs.h
8761 ac_fn_c_check_header_compile
"$LINENO" "ifaddrs.h" "ac_cv_header_ifaddrs_h" "$ac_includes_default
8762 #if HAVE_SYS_SOCKET_H
8763 #include <sys/socket.h>
8766 if test "x$ac_cv_header_ifaddrs_h" = x
""yes; then :
8767 cat >>confdefs.h
<<_ACEOF
8768 #define HAVE_IFADDRS_H 1
8775 for ac_header
in net
/if_dl.h
8777 ac_fn_c_check_header_compile
"$LINENO" "net/if_dl.h" "ac_cv_header_net_if_dl_h" "$ac_includes_default
8778 #if HAVE_SYS_SOCKET_H
8779 #include <sys/socket.h>
8782 if test "x$ac_cv_header_net_if_dl_h" = x
""yes; then :
8783 cat >>confdefs.h
<<_ACEOF
8784 #define HAVE_NET_IF_DL_H 1
8791 for ac_func
in getifaddrs freeifaddrs
8793 as_ac_var
=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
8794 ac_fn_c_check_func
"$LINENO" "$ac_func" "$as_ac_var"
8795 eval as_val
=\$
$as_ac_var
8796 if test "x$as_val" = x
""yes; then :
8797 cat >>confdefs.h
<<_ACEOF
8798 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
8805 ac_fn_c_check_member
"$LINENO" "struct ifreq" "ifr_flags" "ac_cv_member_struct_ifreq_ifr_flags" "$ac_includes_default
8806 #if HAVE_SYS_SOCKET_H
8807 #include <sys/socket.h>
8813 if test "x$ac_cv_member_struct_ifreq_ifr_flags" = x
""yes; then :
8815 cat >>confdefs.h
<<_ACEOF
8816 #define HAVE_STRUCT_IFREQ_IFR_FLAGS 1
8821 ac_fn_c_check_member
"$LINENO" "struct ifreq" "ifr_hwaddr" "ac_cv_member_struct_ifreq_ifr_hwaddr" "$ac_includes_default
8822 #if HAVE_SYS_SOCKET_H
8823 #include <sys/socket.h>
8829 if test "x$ac_cv_member_struct_ifreq_ifr_hwaddr" = x
""yes; then :
8831 cat >>confdefs.h
<<_ACEOF
8832 #define HAVE_STRUCT_IFREQ_IFR_HWADDR 1
8837 ac_fn_c_check_member
"$LINENO" "struct ifreq" "ifr_netmask" "ac_cv_member_struct_ifreq_ifr_netmask" "$ac_includes_default
8838 #if HAVE_SYS_SOCKET_H
8839 #include <sys/socket.h>
8845 if test "x$ac_cv_member_struct_ifreq_ifr_netmask" = x
""yes; then :
8847 cat >>confdefs.h
<<_ACEOF
8848 #define HAVE_STRUCT_IFREQ_IFR_NETMASK 1
8853 ac_fn_c_check_member
"$LINENO" "struct ifreq" "ifr_broadaddr" "ac_cv_member_struct_ifreq_ifr_broadaddr" "$ac_includes_default
8854 #if HAVE_SYS_SOCKET_H
8855 #include <sys/socket.h>
8861 if test "x$ac_cv_member_struct_ifreq_ifr_broadaddr" = x
""yes; then :
8863 cat >>confdefs.h
<<_ACEOF
8864 #define HAVE_STRUCT_IFREQ_IFR_BROADADDR 1
8869 ac_fn_c_check_member
"$LINENO" "struct ifreq" "ifr_addr" "ac_cv_member_struct_ifreq_ifr_addr" "$ac_includes_default
8870 #if HAVE_SYS_SOCKET_H
8871 #include <sys/socket.h>
8877 if test "x$ac_cv_member_struct_ifreq_ifr_addr" = x
""yes; then :
8879 cat >>confdefs.h
<<_ACEOF
8880 #define HAVE_STRUCT_IFREQ_IFR_ADDR 1
8885 ac_fn_c_check_member
"$LINENO" "struct ifreq" "ifr_addr.sa_len" "ac_cv_member_struct_ifreq_ifr_addr_sa_len" "$ac_includes_default
8886 #if HAVE_SYS_SOCKET_H
8887 #include <sys/socket.h>
8893 if test "x$ac_cv_member_struct_ifreq_ifr_addr_sa_len" = x
""yes; then :
8895 cat >>confdefs.h
<<_ACEOF
8896 #define HAVE_STRUCT_IFREQ_IFR_ADDR_SA_LEN 1
8904 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for function prototypes" >&5
8905 $as_echo_n "checking for function prototypes... " >&6; }
8906 if test "$ac_cv_prog_cc_c89" != no
; then
8907 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
8908 $as_echo "yes" >&6; }
8910 $as_echo "#define PROTOTYPES 1" >>confdefs.h
8913 $as_echo "#define __PROTOTYPES 1" >>confdefs.h
8916 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8917 $as_echo "no" >&6; }
8920 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working volatile" >&5
8921 $as_echo_n "checking for working volatile... " >&6; }
8922 if test "${ac_cv_c_volatile+set}" = set; then :
8923 $as_echo_n "(cached) " >&6
8925 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
8926 /* end confdefs.h. */
8933 int * volatile y = (int *) 0;
8939 if ac_fn_c_try_compile
"$LINENO"; then :
8940 ac_cv_c_volatile
=yes
8944 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
8946 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_volatile" >&5
8947 $as_echo "$ac_cv_c_volatile" >&6; }
8948 if test $ac_cv_c_volatile = no
; then
8950 $as_echo "#define volatile /**/" >>confdefs.h
8954 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for an ANSI C-conforming const" >&5
8955 $as_echo_n "checking for an ANSI C-conforming const... " >&6; }
8956 if test "${ac_cv_c_const+set}" = set; then :
8957 $as_echo_n "(cached) " >&6
8959 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
8960 /* end confdefs.h. */
8965 /* FIXME: Include the comments suggested by Paul. */
8967 /* Ultrix mips cc rejects this. */
8968 typedef int charset[2];
8970 /* SunOS 4.1.1 cc rejects this. */
8971 char const *const *pcpcc;
8973 /* NEC SVR4.0.2 mips cc rejects this. */
8974 struct point {int x, y;};
8975 static struct point const zero = {0,0};
8976 /* AIX XL C 1.02.0.0 rejects this.
8977 It does not let you subtract one const X* pointer from another in
8978 an arm of an if-expression whose if-part is not a constant
8980 const char *g = "string";
8981 pcpcc = &g + (g ? g-g : 0);
8982 /* HPUX 7.0 cc rejects these. */
8984 ppc = (char**) pcpcc;
8985 pcpcc = (char const *const *) ppc;
8986 { /* SCO 3.2v4 cc rejects this. */
8988 char const *s = 0 ? (char *) 0 : (char const *) 0;
8993 { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
8995 const int *foo = &x[0];
8998 { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
8999 typedef const int *iptr;
9003 { /* AIX XL C 1.02.0.0 rejects this saying
9004 "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
9005 struct s { int j; const int *ap[3]; };
9006 struct s *b; b->j = 5;
9008 { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
9012 return !cs[0] && !zero.x;
9019 if ac_fn_c_try_compile
"$LINENO"; then :
9024 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
9026 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_const" >&5
9027 $as_echo "$ac_cv_c_const" >&6; }
9028 if test $ac_cv_c_const = no
; then
9030 $as_echo "#define const /**/" >>confdefs.h
9034 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for void * support" >&5
9035 $as_echo_n "checking for void * support... " >&6; }
9036 if test "${emacs_cv_void_star+set}" = set; then :
9037 $as_echo_n "(cached) " >&6
9039 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
9040 /* end confdefs.h. */
9050 if ac_fn_c_try_compile
"$LINENO"; then :
9051 emacs_cv_void_star
=yes
9053 emacs_cv_void_star
=no
9055 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
9057 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $emacs_cv_void_star" >&5
9058 $as_echo "$emacs_cv_void_star" >&6; }
9059 if test $emacs_cv_void_star = yes; then
9060 $as_echo "#define POINTER_TYPE void" >>confdefs.h
9063 $as_echo "#define POINTER_TYPE char" >>confdefs.h
9067 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether byte ordering is bigendian" >&5
9068 $as_echo_n "checking whether byte ordering is bigendian... " >&6; }
9069 if test "${ac_cv_c_bigendian+set}" = set; then :
9070 $as_echo_n "(cached) " >&6
9072 ac_cv_c_bigendian
=unknown
9073 # See if we're dealing with a universal compiler.
9074 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
9075 /* end confdefs.h. */
9076 #ifndef __APPLE_CC__
9077 not a universal capable compiler
9082 if ac_fn_c_try_compile
"$LINENO"; then :
9084 # Check for potential -arch flags. It is not universal unless
9085 # there are at least two -arch flags with different values.
9088 for ac_word
in $CC $CFLAGS $CPPFLAGS $LDFLAGS; do
9089 if test -n "$ac_prev"; then
9091 i?
86 | x86_64 | ppc | ppc64
)
9092 if test -z "$ac_arch" ||
test "$ac_arch" = "$ac_word"; then
9095 ac_cv_c_bigendian
=universal
9101 elif test "x$ac_word" = "x-arch"; then
9106 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
9107 if test $ac_cv_c_bigendian = unknown
; then
9108 # See if sys/param.h defines the BYTE_ORDER macro.
9109 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
9110 /* end confdefs.h. */
9111 #include <sys/types.h>
9112 #include <sys/param.h>
9117 #if ! (defined BYTE_ORDER && defined BIG_ENDIAN \
9118 && defined LITTLE_ENDIAN && BYTE_ORDER && BIG_ENDIAN \
9127 if ac_fn_c_try_compile
"$LINENO"; then :
9128 # It does; now see whether it defined to BIG_ENDIAN or not.
9129 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
9130 /* end confdefs.h. */
9131 #include <sys/types.h>
9132 #include <sys/param.h>
9137 #if BYTE_ORDER != BIG_ENDIAN
9145 if ac_fn_c_try_compile
"$LINENO"; then :
9146 ac_cv_c_bigendian
=yes
9148 ac_cv_c_bigendian
=no
9150 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
9152 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
9154 if test $ac_cv_c_bigendian = unknown
; then
9155 # See if <limits.h> defines _LITTLE_ENDIAN or _BIG_ENDIAN (e.g., Solaris).
9156 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
9157 /* end confdefs.h. */
9163 #if ! (defined _LITTLE_ENDIAN || defined _BIG_ENDIAN)
9171 if ac_fn_c_try_compile
"$LINENO"; then :
9172 # It does; now see whether it defined to _BIG_ENDIAN or not.
9173 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
9174 /* end confdefs.h. */
9188 if ac_fn_c_try_compile
"$LINENO"; then :
9189 ac_cv_c_bigendian
=yes
9191 ac_cv_c_bigendian
=no
9193 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
9195 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
9197 if test $ac_cv_c_bigendian = unknown
; then
9198 # Compile a test program.
9199 if test "$cross_compiling" = yes; then :
9200 # Try to guess by grepping values from an object file.
9201 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
9202 /* end confdefs.h. */
9203 short int ascii_mm[] =
9204 { 0x4249, 0x4765, 0x6E44, 0x6961, 0x6E53, 0x7953, 0 };
9205 short int ascii_ii[] =
9206 { 0x694C, 0x5454, 0x656C, 0x6E45, 0x6944, 0x6E61, 0 };
9207 int use_ascii (int i) {
9208 return ascii_mm[i] + ascii_ii[i];
9210 short int ebcdic_ii[] =
9211 { 0x89D3, 0xE3E3, 0x8593, 0x95C5, 0x89C4, 0x9581, 0 };
9212 short int ebcdic_mm[] =
9213 { 0xC2C9, 0xC785, 0x95C4, 0x8981, 0x95E2, 0xA8E2, 0 };
9214 int use_ebcdic (int i) {
9215 return ebcdic_mm[i] + ebcdic_ii[i];
9222 return use_ascii (foo) == use_ebcdic (foo);
9227 if ac_fn_c_try_compile
"$LINENO"; then :
9228 if grep BIGenDianSyS conftest.
$ac_objext >/dev
/null
; then
9229 ac_cv_c_bigendian
=yes
9231 if grep LiTTleEnDian conftest.
$ac_objext >/dev
/null
; then
9232 if test "$ac_cv_c_bigendian" = unknown
; then
9233 ac_cv_c_bigendian
=no
9235 # finding both strings is unlikely to happen, but who knows?
9236 ac_cv_c_bigendian
=unknown
9240 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
9242 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
9243 /* end confdefs.h. */
9244 $ac_includes_default
9249 /* Are we little or big endian? From Harbison&Steele. */
9253 char c[sizeof (long int)];
9256 return u.c[sizeof (long int) - 1] == 1;
9262 if ac_fn_c_try_run
"$LINENO"; then :
9263 ac_cv_c_bigendian
=no
9265 ac_cv_c_bigendian
=yes
9267 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
9268 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
9273 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_bigendian" >&5
9274 $as_echo "$ac_cv_c_bigendian" >&6; }
9275 case $ac_cv_c_bigendian in #(
9277 $as_echo "#define WORDS_BIGENDIAN 1" >>confdefs.h
9283 $as_echo "#define AC_APPLE_UNIVERSAL_BUILD 1" >>confdefs.h
9287 as_fn_error
"unknown endianness
9288 presetting ac_cv_c_bigendian=no (or yes) will help" "$LINENO" 5 ;;
9292 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for __attribute__ ((__aligned__ (expr)))" >&5
9293 $as_echo_n "checking for __attribute__ ((__aligned__ (expr)))... " >&6; }
9294 if test "${emacs_cv_attribute_aligned+set}" = set; then :
9295 $as_echo_n "(cached) " >&6
9297 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
9298 /* end confdefs.h. */
9299 char __attribute__ ((__aligned__ (1 << 3))) c;
9308 if ac_fn_c_try_compile
"$LINENO"; then :
9309 emacs_cv_attribute_aligned
=yes
9311 emacs_cv_attribute_aligned
=no
9313 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
9315 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $emacs_cv_attribute_aligned" >&5
9316 $as_echo "$emacs_cv_attribute_aligned" >&6; }
9317 if test $emacs_cv_attribute_aligned = yes; then
9319 $as_echo "#define HAVE_ATTRIBUTE_ALIGNED 1" >>confdefs.h
9323 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
9324 $as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
9326 ac_make
=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
9327 if { as_var
=ac_cv_prog_make_
${ac_make}_set; eval "test \"\${$as_var+set}\" = set"; }; then :
9328 $as_echo_n "(cached) " >&6
9330 cat >conftest.
make <<\_ACEOF
9333 @
echo '@@@%%%=$(MAKE)=@@@%%%'
9335 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
9336 case `${MAKE-make} -f conftest.make 2>/dev/null` in
9338 eval ac_cv_prog_make_
${ac_make}_set
=yes;;
9340 eval ac_cv_prog_make_
${ac_make}_set
=no
;;
9344 if eval test \
$ac_cv_prog_make_${ac_make}_set
= yes; then
9345 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
9346 $as_echo "yes" >&6; }
9349 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9350 $as_echo "no" >&6; }
9351 SET_MAKE
="MAKE=${MAKE-make}"
9358 if test "$GCC" = yes && test "$ac_enable_autodepend" = yes; then
9359 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using GNU Make" >&5
9360 $as_echo_n "checking whether we are using GNU Make... " >&6; }
9362 testval
=`${MAKE-make} --version 2>/dev/null | grep 'GNU Make'`
9363 if test "x$testval" != x
; then
9366 ac_enable_autodepend
=no
9368 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $HAVE_GNU_MAKE" >&5
9369 $as_echo "$HAVE_GNU_MAKE" >&6; }
9370 if test $HAVE_GNU_MAKE = yes; then
9371 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether gcc understands -MMD -MF" >&5
9372 $as_echo_n "checking whether gcc understands -MMD -MF... " >&6; }
9373 SAVE_CFLAGS
="$CFLAGS"
9374 CFLAGS
="$CFLAGS -MMD -MF deps.d -MP"
9375 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
9376 /* end confdefs.h. */
9386 if ac_fn_c_try_compile
"$LINENO"; then :
9389 ac_enable_autodepend
=no
9391 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
9392 CFLAGS
="$SAVE_CFLAGS"
9393 test -f deps.d || ac_enable_autodepend
=no
9395 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_enable_autodepend" >&5
9396 $as_echo "$ac_enable_autodepend" >&6; }
9398 if test $ac_enable_autodepend = yes; then
9399 DEPFLAGS
='-MMD -MF ${DEPDIR}/$*.d -MP'
9400 ## In parallel builds, another make might create depdir between
9401 ## the first test and mkdir, so stick another test on the end.
9402 ## Or use install-sh -d? mkdir -p is not portable.
9403 MKDEPDIR
='test -d ${DEPDIR} || mkdir ${DEPDIR} || test -d ${DEPDIR}'
9404 deps_frag
=autodeps.mk
9407 deps_frag
=$srcdir/src
/$deps_frag
9413 lisp_frag
=$srcdir/src
/lisp.mk
9417 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for long file names" >&5
9418 $as_echo_n "checking for long file names... " >&6; }
9419 if test "${ac_cv_sys_long_file_names+set}" = set; then :
9420 $as_echo_n "(cached) " >&6
9422 ac_cv_sys_long_file_names
=yes
9423 # Test for long file names in all the places we know might matter:
9424 # . the current directory, where building will happen
9425 # $prefix/lib where we will be installing things
9426 # $exec_prefix/lib likewise
9427 # $TMPDIR if set, where it might want to write temporary files
9428 # /tmp where it might want to write temporary files
9431 for ac_dir
in .
"$TMPDIR" /tmp
/var
/tmp
/usr
/tmp
"$prefix/lib" "$exec_prefix/lib"; do
9432 # Skip $TMPDIR if it is empty or bogus, and skip $exec_prefix/lib
9433 # in the usual case where exec_prefix is '${prefix}'.
9435 . |
/* | ?
:[\\/]*) ;; #(
9438 test -w "$ac_dir/." ||
continue # It is less confusing to not echo anything here.
9439 ac_xdir
=$ac_dir/cf$$
9440 (umask 077 && mkdir
"$ac_xdir" 2>/dev
/null
) ||
continue
9441 ac_tf1
=$ac_xdir/conftest9012345
9442 ac_tf2
=$ac_xdir/conftest9012346
9443 touch "$ac_tf1" 2>/dev
/null
&& test -f "$ac_tf1" && test ! -f "$ac_tf2" ||
9444 ac_cv_sys_long_file_names
=no
9445 rm -f -r "$ac_xdir" 2>/dev
/null
9446 test $ac_cv_sys_long_file_names = no
&& break
9449 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_long_file_names" >&5
9450 $as_echo "$ac_cv_sys_long_file_names" >&6; }
9451 if test $ac_cv_sys_long_file_names = yes; then
9453 $as_echo "#define HAVE_LONG_FILE_NAMES 1" >>confdefs.h
9458 #### Choose a window system.
9460 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for X" >&5
9461 $as_echo_n "checking for X... " >&6; }
9464 # Check whether --with-x was given.
9465 if test "${with_x+set}" = set; then :
9469 # $have_x is `yes', `no', `disabled', or empty when we do not yet know.
9470 if test "x$with_x" = xno
; then
9471 # The user explicitly disabled X.
9474 case $x_includes,$x_libraries in #(
9475 *\'*) as_fn_error
"cannot use X directory names containing '" "$LINENO" 5;; #(
9476 *,NONE | NONE
,*) if test "${ac_cv_have_x+set}" = set; then :
9477 $as_echo_n "(cached) " >&6
9479 # One or both of the vars are not set, and there is no cached value.
9480 ac_x_includes
=no ac_x_libraries
=no
9481 rm -f -r conftest.dir
9482 if mkdir conftest.dir
; then
9484 cat >Imakefile
<<'_ACEOF'
9486 @echo incroot='${INCROOT}'
9488 @echo usrlibdir='${USRLIBDIR}'
9490 @echo libdir='${LIBDIR}'
9492 if (export CC
; ${XMKMF-xmkmf}) >/dev
/null
2>/dev
/null
&& test -f Makefile
; then
9493 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
9494 for ac_var
in incroot usrlibdir libdir
; do
9495 eval "ac_im_$ac_var=\`\${MAKE-make} $ac_var 2>/dev/null | sed -n 's/^$ac_var=//p'\`"
9497 # Open Windows xmkmf reportedly sets LIBDIR instead of USRLIBDIR.
9498 for ac_extension
in a so sl dylib la dll
; do
9499 if test ! -f "$ac_im_usrlibdir/libX11.$ac_extension" &&
9500 test -f "$ac_im_libdir/libX11.$ac_extension"; then
9501 ac_im_usrlibdir
=$ac_im_libdir; break
9504 # Screen out bogus values from the imake configuration. They are
9505 # bogus both because they are the default anyway, and because
9506 # using them would break gcc on systems where it needs fixed includes.
9507 case $ac_im_incroot in
9508 /usr
/include
) ac_x_includes
= ;;
9509 *) test -f "$ac_im_incroot/X11/Xos.h" && ac_x_includes
=$ac_im_incroot;;
9511 case $ac_im_usrlibdir in
9512 /usr
/lib |
/usr
/lib64 |
/lib |
/lib64
) ;;
9513 *) test -d "$ac_im_usrlibdir" && ac_x_libraries
=$ac_im_usrlibdir ;;
9517 rm -f -r conftest.dir
9520 # Standard set of common directories for X headers.
9521 # Check X11 before X11Rn because it is often a symlink to the current release.
9535 /usr/local/X11/include
9536 /usr/local/X11R7/include
9537 /usr/local/X11R6/include
9538 /usr/local/X11R5/include
9539 /usr/local/X11R4/include
9541 /usr/local/include/X11
9542 /usr/local/include/X11R7
9543 /usr/local/include/X11R6
9544 /usr/local/include/X11R5
9545 /usr/local/include/X11R4
9549 /usr/XFree86/include/X11
9553 /usr/unsupported/include
9555 /usr/local/x11r5/include
9556 /usr/lpp/Xamples/include
9558 /usr/openwin/include
9559 /usr/openwin/share/include'
9561 if test "$ac_x_includes" = no
; then
9562 # Guess where to find include files, by looking for Xlib.h.
9563 # First, try using that file with no special directory specified.
9564 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
9565 /* end confdefs.h. */
9566 #include <X11/Xlib.h>
9568 if ac_fn_c_try_cpp
"$LINENO"; then :
9569 # We can compile using X headers with no special include directory.
9572 for ac_dir
in $ac_x_header_dirs; do
9573 if test -r "$ac_dir/X11/Xlib.h"; then
9574 ac_x_includes
=$ac_dir
9579 rm -f conftest.err conftest.
$ac_ext
9580 fi # $ac_x_includes = no
9582 if test "$ac_x_libraries" = no
; then
9583 # Check for the libraries.
9584 # See if we find them without any special options.
9585 # Don't add to $LIBS permanently.
9588 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
9589 /* end confdefs.h. */
9590 #include <X11/Xlib.h>
9599 if ac_fn_c_try_link
"$LINENO"; then :
9601 # We can link X programs with no special library path.
9605 for ac_dir
in `$as_echo "$ac_x_includes $ac_x_header_dirs" | sed s/include/lib/g`
9607 # Don't even attempt the hair of trying to link an X program!
9608 for ac_extension
in a so sl dylib la dll
; do
9609 if test -r "$ac_dir/libX11.$ac_extension"; then
9610 ac_x_libraries
=$ac_dir
9616 rm -f core conftest.err conftest.
$ac_objext \
9617 conftest
$ac_exeext conftest.
$ac_ext
9618 fi # $ac_x_libraries = no
9620 case $ac_x_includes,$ac_x_libraries in #(
9622 # Didn't find X, or a directory has "'" in its name.
9623 ac_cv_have_x
="have_x=no";; #(
9625 # Record where we found X for the cache.
9626 ac_cv_have_x
="have_x=yes\
9627 ac_x_includes='$ac_x_includes'\
9628 ac_x_libraries='$ac_x_libraries'"
9634 eval "$ac_cv_have_x"
9637 if test "$have_x" != yes; then
9638 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_x" >&5
9639 $as_echo "$have_x" >&6; }
9642 # If each of the values was on the command line, it overrides each guess.
9643 test "x$x_includes" = xNONE
&& x_includes
=$ac_x_includes
9644 test "x$x_libraries" = xNONE
&& x_libraries
=$ac_x_libraries
9645 # Update the cache value to reflect the command line values.
9646 ac_cv_have_x
="have_x=yes\
9647 ac_x_includes='$x_includes'\
9648 ac_x_libraries='$x_libraries'"
9649 { $as_echo "$as_me:${as_lineno-$LINENO}: result: libraries $x_libraries, headers $x_includes" >&5
9650 $as_echo "libraries $x_libraries, headers $x_includes" >&6; }
9653 if test "$no_x" = yes; then
9659 LD_SWITCH_X_SITE_AUX
=
9660 LD_SWITCH_X_SITE_AUX_RPATH
=
9661 if test "${x_libraries}" != NONE
; then
9662 if test -n "${x_libraries}"; then
9663 LD_SWITCH_X_SITE
=-L`echo ${x_libraries} | sed -e "s/:/ -L/g"`
9664 LD_SWITCH_X_SITE_AUX
=-R`echo ${x_libraries} | sed -e "s/:/ -R/g"`
9665 LD_SWITCH_X_SITE_AUX_RPATH
=`echo ${LD_SWITCH_X_SITE_AUX} | sed -e 's/-R/-Wl,-rpath,/'`
9667 x_default_search_path
=""
9668 x_search_path
=${x_libraries}
9669 if test -z "${x_search_path}"; then
9670 x_search_path
=/usr
/lib
9672 for x_library
in `echo ${x_search_path}: | \
9673 sed -e "s/:/ /g" -e p -e "s:/lib[^ /]* :/share :g"`; do
9675 ${x_library}/X11/%L/%T/%N%C%S:\
9676 ${x_library}/X11/%l/%T/%N%C%S:\
9677 ${x_library}/X11/%T/%N%C%S:\
9678 ${x_library}/X11/%L/%T/%N%S:\
9679 ${x_library}/X11/%l/%T/%N%S:\
9680 ${x_library}/X11/%T/%N%S"
9681 if test x
"${x_default_search_path}" = x
; then
9682 x_default_search_path
=${x_search_path}
9684 x_default_search_path
="${x_search_path}:${x_default_search_path}"
9691 if test "${x_includes}" != NONE
&& test -n "${x_includes}"; then
9692 C_SWITCH_X_SITE
=-I`echo ${x_includes} | sed -e "s/:/ -I/g"`
9695 if test x
"${x_includes}" = x
; then
9696 bitmapdir
=/usr
/include
/X11
/bitmaps
9698 # accumulate include directories that have X11 bitmap subdirectories
9700 for bmd
in `echo ${x_includes} | sed -e "s/:/ /g"`; do
9701 if test -d "${bmd}/X11/bitmaps"; then
9702 bmd_acc
="${bmd_acc}:${bmd}/X11/bitmaps"
9704 if test -d "${bmd}/bitmaps"; then
9705 bmd_acc
="${bmd_acc}:${bmd}/bitmaps"
9708 if test ${bmd_acc} != "dummyval"; then
9709 bitmapdir
=`echo ${bmd_acc} | sed -e "s/^dummyval://"`
9716 tmp_CPPFLAGS
="$CPPFLAGS"
9717 tmp_CFLAGS
="$CFLAGS"
9718 CPPFLAGS
="$CPPFLAGS -x objective-c"
9719 CFLAGS
="$CFLAGS -x objective-c"
9720 TEMACS_LDFLAGS2
="\${LDFLAGS}"
9722 if test "${with_ns}" != no
; then
9723 if test "${opsys}" = darwin
; then
9725 ns_appdir
=`pwd`/nextstep
/Emacs.app
9726 ns_appbindir
=${ns_appdir}/Contents
/MacOS
/
9727 ns_appresdir
=${ns_appdir}/Contents
/Resources
9728 ns_appsrc
=${srcdir}/nextstep
/Cocoa
/Emacs.base
9729 elif test -f $GNUSTEP_CONFIG_FILE; then
9731 ns_appdir
=`pwd`/nextstep
/Emacs.app
9732 ns_appbindir
=${ns_appdir}/
9733 ns_appresdir
=${ns_appdir}/Resources
9734 ns_appsrc
=${srcdir}/nextstep
/GNUstep
/Emacs.base
9735 GNUSTEP_SYSTEM_HEADERS
="$(. $GNUSTEP_CONFIG_FILE; echo $GNUSTEP_SYSTEM_HEADERS)"
9736 GNUSTEP_SYSTEM_LIBRARIES
="$(. $GNUSTEP_CONFIG_FILE; echo $GNUSTEP_SYSTEM_LIBRARIES)"
9737 GNUSTEP_LOCAL_HEADERS
="$(. $GNUSTEP_CONFIG_FILE; echo $GNUSTEP_LOCAL_HEADERS)"
9738 GNUSTEP_LOCAL_LIBRARIES
="$(. $GNUSTEP_CONFIG_FILE; echo $GNUSTEP_LOCAL_LIBRARIES)"
9739 test "x${GNUSTEP_LOCAL_HEADERS}" != "x" && \
9740 GNUSTEP_LOCAL_HEADERS
="-I${GNUSTEP_LOCAL_HEADERS}"
9741 test "x${GNUSTEP_LOCAL_LIBRARIES}" != "x" && \
9742 GNUSTEP_LOCAL_LIBRARIES
="-L${GNUSTEP_LOCAL_LIBRARIES}"
9743 CPPFLAGS
="$CPPFLAGS -I${GNUSTEP_SYSTEM_HEADERS} ${GNUSTEP_LOCAL_HEADERS}"
9744 CFLAGS
="$CFLAGS -I${GNUSTEP_SYSTEM_HEADERS} ${GNUSTEP_LOCAL_HEADERS}"
9745 LDFLAGS
="$LDFLAGS -L${GNUSTEP_SYSTEM_LIBRARIES} ${GNUSTEP_LOCAL_LIBRARIES}"
9749 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if GNUstep defines BASE_NATIVE_OBJC_EXCEPTIONS" >&5
9750 $as_echo_n "checking if GNUstep defines BASE_NATIVE_OBJC_EXCEPTIONS... " >&6; }
9751 if test "${emacs_cv_objc_exceptions+set}" = set; then :
9752 $as_echo_n "(cached) " >&6
9754 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
9755 /* end confdefs.h. */
9756 #include <GNUstepBase/GSConfig.h>
9760 #if defined BASE_NATIVE_OBJC_EXCEPTIONS && BASE_NATIVE_OBJC_EXCEPTIONS > 0
9769 if ac_fn_c_try_compile
"$LINENO"; then :
9770 emacs_cv_objc_exceptions
=yes
9772 emacs_cv_objc_exceptions
=no
9774 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
9776 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $emacs_cv_objc_exceptions" >&5
9777 $as_echo "$emacs_cv_objc_exceptions" >&6; }
9778 if test $emacs_cv_objc_exceptions = yes; then
9780 $as_echo "#define _NATIVE_OBJC_EXCEPTIONS 1" >>confdefs.h
9782 GNU_OBJC_CFLAGS
="-fobjc-exceptions"
9786 CFLAGS
="$CFLAGS $GNU_OBJC_CFLAGS"
9788 ac_fn_c_check_header_mongrel
"$LINENO" "AppKit/AppKit.h" "ac_cv_header_AppKit_AppKit_h" "$ac_includes_default"
9789 if test "x$ac_cv_header_AppKit_AppKit_h" = x
""yes; then :
9792 as_fn_error
"\`--with-ns' was specified, but the include
9793 files are missing or cannot be compiled." "$LINENO" 5
9797 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
9798 /* end confdefs.h. */
9799 #include <Foundation/NSObjCRuntime.h>
9808 if ac_fn_c_try_compile
"$LINENO"; then :
9809 ns_have_nsinteger
=yes
9811 ns_have_nsinteger
=no
9813 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
9814 if test $ns_have_nsinteger = yes; then
9816 $as_echo "#define NS_HAVE_NSINTEGER 1" >>confdefs.h
9825 if test "${HAVE_NS}" = yes; then
9826 if test "$with_toolkit_scroll_bars" = "no"; then
9827 as_fn_error
"Non-toolkit scroll bars are not implemented for Nextstep." "$LINENO" 5
9830 window_system
=nextstep
9832 # set up packaging dirs
9833 if test "${EN_NS_SELF_CONTAINED}" = yes; then
9834 prefix
=${ns_appresdir}
9835 exec_prefix
=${ns_appbindir}
9836 libexecdir
=${ns_appbindir}/libexec
9838 ns_frag
=$srcdir/src
/ns.mk
9839 NS_OBJ
="fontset.o fringe.o image.o"
9840 NS_OBJC_OBJ
="nsterm.o nsfns.o nsmenu.o nsselect.o nsimage.o nsfont.o"
9842 CFLAGS
="$tmp_CFLAGS"
9843 CPPFLAGS
="$tmp_CPPFLAGS"
9849 case "${window_system}" in
9853 case "${with_x_toolkit}" in
9854 athena | lucid
) USE_X_TOOLKIT
=LUCID
;;
9855 motif
) USE_X_TOOLKIT
=MOTIF
;;
9857 USE_X_TOOLKIT
=none
;;
9858 gtk3
) with_gtk3
=yes
9859 USE_X_TOOLKIT
=none
;;
9860 no
) USE_X_TOOLKIT
=none
;;
9861 * ) USE_X_TOOLKIT
=maybe
;;
9871 if test "$window_system" = none
&& test "X$with_x" != "Xno"; then
9872 # Extract the first word of "X", so it can be a program name with args.
9873 set dummy X
; ac_word
=$2
9874 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9875 $as_echo_n "checking for $ac_word... " >&6; }
9876 if test "${ac_cv_prog_HAVE_XSERVER+set}" = set; then :
9877 $as_echo_n "(cached) " >&6
9879 if test -n "$HAVE_XSERVER"; then
9880 ac_cv_prog_HAVE_XSERVER
="$HAVE_XSERVER" # Let the user override the test.
9882 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
9886 test -z "$as_dir" && as_dir
=.
9887 for ac_exec_ext
in '' $ac_executable_extensions; do
9888 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9889 ac_cv_prog_HAVE_XSERVER
="true"
9890 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9897 test -z "$ac_cv_prog_HAVE_XSERVER" && ac_cv_prog_HAVE_XSERVER
="false"
9900 HAVE_XSERVER
=$ac_cv_prog_HAVE_XSERVER
9901 if test -n "$HAVE_XSERVER"; then
9902 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $HAVE_XSERVER" >&5
9903 $as_echo "$HAVE_XSERVER" >&6; }
9905 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9906 $as_echo "no" >&6; }
9910 if test "$HAVE_XSERVER" = true ||
9911 test -n "$DISPLAY" ||
9912 test "`echo /usr/lib/libX11.*`" != "/usr/lib/libX11.*"; then
9913 as_fn_error
"You seem to be running X, but no X development libraries
9914 were found. You should install the relevant development files for X
9915 and for the toolkit you want, such as Gtk+, Lesstif or Motif. Also make
9916 sure you have development files for image handling, i.e.
9917 tiff, gif, jpeg, png and xpm.
9918 If you are sure you want Emacs compiled without X window support, pass
9920 to configure." "$LINENO" 5
9924 ### If we're using X11, we should use the X menu package.
9927 yes ) HAVE_MENUS
=yes ;;
9930 # Do the opsystem or machine files prohibit the use of the GNU malloc?
9931 # Assume not, until told otherwise.
9934 ac_fn_c_check_func
"$LINENO" "malloc_get_state" "ac_cv_func_malloc_get_state"
9935 if test "x$ac_cv_func_malloc_get_state" = x
""yes; then :
9941 ac_fn_c_check_func
"$LINENO" "malloc_set_state" "ac_cv_func_malloc_set_state"
9942 if test "x$ac_cv_func_malloc_set_state" = x
""yes; then :
9948 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether __after_morecore_hook exists" >&5
9949 $as_echo_n "checking whether __after_morecore_hook exists... " >&6; }
9950 if test "${emacs_cv_var___after_morecore_hook+set}" = set; then :
9951 $as_echo_n "(cached) " >&6
9953 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
9954 /* end confdefs.h. */
9955 extern void (* __after_morecore_hook)();
9959 __after_morecore_hook = 0
9964 if ac_fn_c_try_link
"$LINENO"; then :
9965 emacs_cv_var___after_morecore_hook
=yes
9967 emacs_cv_var___after_morecore_hook
=no
9969 rm -f core conftest.err conftest.
$ac_objext \
9970 conftest
$ac_exeext conftest.
$ac_ext
9972 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $emacs_cv_var___after_morecore_hook" >&5
9973 $as_echo "$emacs_cv_var___after_morecore_hook" >&6; }
9974 if test $emacs_cv_var___after_morecore_hook = no
; then
9981 ## darwin ld insists on the use of malloc routines in the System framework.
9982 darwin|sol2-10
) system_malloc
=yes ;;
9985 if test "${system_malloc}" = "yes"; then
9987 $as_echo "#define SYSTEM_MALLOC 1" >>confdefs.h
9991 (The GNU allocators don't work with this system configuration.)"
9995 test "$doug_lea_malloc" != "yes" && GMALLOC_OBJ
=gmalloc.o
9996 VMLIMIT_OBJ
=vm-limit.o
10001 if test "$doug_lea_malloc" = "yes" ; then
10002 if test "$GNU_MALLOC" = yes ; then
10003 GNU_MALLOC_reason
="
10004 (Using Doug Lea's new malloc from the GNU C Library.)"
10007 $as_echo "#define DOUG_LEA_MALLOC 1" >>confdefs.h
10010 ## Use mmap directly for allocating larger buffers.
10011 ## FIXME this comes from src/s/{gnu,gnu-linux}.h:
10012 ## #ifdef DOUG_LEA_MALLOC; #undef REL_ALLOC; #endif
10013 ## Does the AC_FUNC_MMAP test below make this check unnecessary?
10015 gnu
*) REL_ALLOC
=no
;;
10019 if test x
"${REL_ALLOC}" = x
; then
10020 REL_ALLOC
=${GNU_MALLOC}
10023 use_mmap_for_buffers
=no
10025 cygwin|freebsd|irix6-5
) use_mmap_for_buffers
=yes ;;
10031 for ac_header
in $ac_header_list
10033 as_ac_Header
=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
10034 ac_fn_c_check_header_compile
"$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
10036 eval as_val
=\$
$as_ac_Header
10037 if test "x$as_val" = x
""yes; then :
10038 cat >>confdefs.h
<<_ACEOF
10039 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
10053 for ac_func
in getpagesize
10055 ac_fn_c_check_func
"$LINENO" "getpagesize" "ac_cv_func_getpagesize"
10056 if test "x$ac_cv_func_getpagesize" = x
""yes; then :
10057 cat >>confdefs.h
<<_ACEOF
10058 #define HAVE_GETPAGESIZE 1
10064 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working mmap" >&5
10065 $as_echo_n "checking for working mmap... " >&6; }
10066 if test "${ac_cv_func_mmap_fixed_mapped+set}" = set; then :
10067 $as_echo_n "(cached) " >&6
10069 if test "$cross_compiling" = yes; then :
10070 ac_cv_func_mmap_fixed_mapped
=no
10072 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
10073 /* end confdefs.h. */
10074 $ac_includes_default
10075 /* malloc might have been renamed as rpl_malloc. */
10078 /* Thanks to Mike Haertel and Jim Avera for this test.
10079 Here is a matrix of mmap possibilities:
10080 mmap private not fixed
10081 mmap private fixed at somewhere currently unmapped
10082 mmap private fixed at somewhere already mapped
10083 mmap shared not fixed
10084 mmap shared fixed at somewhere currently unmapped
10085 mmap shared fixed at somewhere already mapped
10086 For private mappings, we should verify that changes cannot be read()
10087 back from the file, nor mmap's back from the file at a different
10088 address. (There have been systems where private was not correctly
10089 implemented like the infamous i386 svr4.0, and systems where the
10090 VM page cache was not coherent with the file system buffer cache
10091 like early versions of FreeBSD and possibly contemporary NetBSD.)
10092 For shared mappings, we should conversely verify that changes get
10093 propagated back to all the places they're supposed to be.
10095 Grep wants private fixed already mapped.
10096 The main things grep needs to know about mmap are:
10097 * does it exist and is it safe to write into the mmap'd area
10098 * how to use it (BSD variants) */
10101 #include <sys/mman.h>
10103 #if !defined STDC_HEADERS && !defined HAVE_STDLIB_H
10107 /* This mess was copied from the GNU getpagesize.h. */
10108 #ifndef HAVE_GETPAGESIZE
10109 # ifdef _SC_PAGESIZE
10110 # define getpagesize() sysconf(_SC_PAGESIZE)
10111 # else /* no _SC_PAGESIZE */
10112 # ifdef HAVE_SYS_PARAM_H
10113 # include <sys/param.h>
10114 # ifdef EXEC_PAGESIZE
10115 # define getpagesize() EXEC_PAGESIZE
10116 # else /* no EXEC_PAGESIZE */
10118 # define getpagesize() NBPG * CLSIZE
10121 # endif /* no CLSIZE */
10122 # else /* no NBPG */
10124 # define getpagesize() NBPC
10125 # else /* no NBPC */
10127 # define getpagesize() PAGESIZE
10128 # endif /* PAGESIZE */
10129 # endif /* no NBPC */
10130 # endif /* no NBPG */
10131 # endif /* no EXEC_PAGESIZE */
10132 # else /* no HAVE_SYS_PARAM_H */
10133 # define getpagesize() 8192 /* punt totally */
10134 # endif /* no HAVE_SYS_PARAM_H */
10135 # endif /* no _SC_PAGESIZE */
10137 #endif /* no HAVE_GETPAGESIZE */
10142 char *data, *data2, *data3;
10143 const char *cdata2;
10147 pagesize = getpagesize ();
10149 /* First, make a file with some known garbage in it. */
10150 data = (char *) malloc (pagesize);
10153 for (i = 0; i < pagesize; ++i)
10154 *(data + i) = rand ();
10156 fd = creat ("conftest.mmap", 0600);
10159 if (write (fd, data, pagesize) != pagesize)
10163 /* Next, check that the tail of a page is zero-filled. File must have
10164 non-zero length, otherwise we risk SIGBUS for entire page. */
10165 fd2 = open ("conftest.txt", O_RDWR | O_CREAT | O_TRUNC, 0600);
10169 if (write (fd2, cdata2, 1) != 1)
10171 data2 = (char *) mmap (0, pagesize, PROT_READ | PROT_WRITE, MAP_SHARED, fd2, 0L);
10172 if (data2 == MAP_FAILED)
10174 for (i = 0; i < pagesize; ++i)
10178 if (munmap (data2, pagesize))
10181 /* Next, try to mmap the file at a fixed address which already has
10182 something else allocated at it. If we can, also make sure that
10183 we see the same garbage. */
10184 fd = open ("conftest.mmap", O_RDWR);
10187 if (data2 != mmap (data2, pagesize, PROT_READ | PROT_WRITE,
10188 MAP_PRIVATE | MAP_FIXED, fd, 0L))
10190 for (i = 0; i < pagesize; ++i)
10191 if (*(data + i) != *(data2 + i))
10194 /* Finally, make sure that changes to the mapped area do not
10195 percolate back to the file as seen by read(). (This is a bug on
10196 some variants of i386 svr4.0.) */
10197 for (i = 0; i < pagesize; ++i)
10198 *(data2 + i) = *(data2 + i) + 1;
10199 data3 = (char *) malloc (pagesize);
10202 if (read (fd, data3, pagesize) != pagesize)
10204 for (i = 0; i < pagesize; ++i)
10205 if (*(data + i) != *(data3 + i))
10211 if ac_fn_c_try_run
"$LINENO"; then :
10212 ac_cv_func_mmap_fixed_mapped
=yes
10214 ac_cv_func_mmap_fixed_mapped
=no
10216 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
10217 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
10221 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_mmap_fixed_mapped" >&5
10222 $as_echo "$ac_cv_func_mmap_fixed_mapped" >&6; }
10223 if test $ac_cv_func_mmap_fixed_mapped = yes; then
10225 $as_echo "#define HAVE_MMAP 1" >>confdefs.h
10228 rm -f conftest.mmap conftest.txt
10230 if test $use_mmap_for_buffers = yes; then
10232 $as_echo "#define USE_MMAP_FOR_BUFFERS 1" >>confdefs.h
10237 LIBS
="$LIBS_SYSTEM $LIBS"
10239 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dnet_ntoa in -ldnet" >&5
10240 $as_echo_n "checking for dnet_ntoa in -ldnet... " >&6; }
10241 if test "${ac_cv_lib_dnet_dnet_ntoa+set}" = set; then :
10242 $as_echo_n "(cached) " >&6
10244 ac_check_lib_save_LIBS
=$LIBS
10245 LIBS
="-ldnet $LIBS"
10246 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
10247 /* end confdefs.h. */
10249 /* Override any GCC internal prototype to avoid an error.
10250 Use char because int might match the return type of a GCC
10251 builtin and then its argument prototype would still apply. */
10259 return dnet_ntoa ();
10264 if ac_fn_c_try_link
"$LINENO"; then :
10265 ac_cv_lib_dnet_dnet_ntoa
=yes
10267 ac_cv_lib_dnet_dnet_ntoa
=no
10269 rm -f core conftest.err conftest.
$ac_objext \
10270 conftest
$ac_exeext conftest.
$ac_ext
10271 LIBS
=$ac_check_lib_save_LIBS
10273 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dnet_dnet_ntoa" >&5
10274 $as_echo "$ac_cv_lib_dnet_dnet_ntoa" >&6; }
10275 if test "x$ac_cv_lib_dnet_dnet_ntoa" = x
""yes; then :
10276 cat >>confdefs.h
<<_ACEOF
10277 #define HAVE_LIBDNET 1
10280 LIBS
="-ldnet $LIBS"
10285 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for main in -lXbsd" >&5
10286 $as_echo_n "checking for main in -lXbsd... " >&6; }
10287 if test "${ac_cv_lib_Xbsd_main+set}" = set; then :
10288 $as_echo_n "(cached) " >&6
10290 ac_check_lib_save_LIBS
=$LIBS
10291 LIBS
="-lXbsd $LIBS"
10292 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
10293 /* end confdefs.h. */
10304 if ac_fn_c_try_link
"$LINENO"; then :
10305 ac_cv_lib_Xbsd_main
=yes
10307 ac_cv_lib_Xbsd_main
=no
10309 rm -f core conftest.err conftest.
$ac_objext \
10310 conftest
$ac_exeext conftest.
$ac_ext
10311 LIBS
=$ac_check_lib_save_LIBS
10313 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_Xbsd_main" >&5
10314 $as_echo "$ac_cv_lib_Xbsd_main" >&6; }
10315 if test "x$ac_cv_lib_Xbsd_main" = x
""yes; then :
10316 LD_SWITCH_X_SITE
="$LD_SWITCH_X_SITE -lXbsd"
10321 for ac_header
in pthread.h
10323 ac_fn_c_check_header_mongrel
"$LINENO" "pthread.h" "ac_cv_header_pthread_h" "$ac_includes_default"
10324 if test "x$ac_cv_header_pthread_h" = x
""yes; then :
10325 cat >>confdefs.h
<<_ACEOF
10326 #define HAVE_PTHREAD_H 1
10333 if test "$ac_cv_header_pthread_h"; then
10334 if test "$GMALLOC_OBJ" = gmalloc.o
; then
10335 emacs_pthread_function
=pthread_atfork
10337 emacs_pthread_function
=pthread_self
10339 as_ac_Lib
=`$as_echo "ac_cv_lib_pthread_$emacs_pthread_function" | $as_tr_sh`
10340 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $emacs_pthread_function in -lpthread" >&5
10341 $as_echo_n "checking for $emacs_pthread_function in -lpthread... " >&6; }
10342 if { as_var
=$as_ac_Lib; eval "test \"\${$as_var+set}\" = set"; }; then :
10343 $as_echo_n "(cached) " >&6
10345 ac_check_lib_save_LIBS
=$LIBS
10346 LIBS
="-lpthread $LIBS"
10347 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
10348 /* end confdefs.h. */
10350 /* Override any GCC internal prototype to avoid an error.
10351 Use char because int might match the return type of a GCC
10352 builtin and then its argument prototype would still apply. */
10356 char $emacs_pthread_function ();
10360 return $emacs_pthread_function ();
10365 if ac_fn_c_try_link
"$LINENO"; then :
10366 eval "$as_ac_Lib=yes"
10368 eval "$as_ac_Lib=no"
10370 rm -f core conftest.err conftest.
$ac_objext \
10371 conftest
$ac_exeext conftest.
$ac_ext
10372 LIBS
=$ac_check_lib_save_LIBS
10374 eval ac_res
=\$
$as_ac_Lib
10375 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
10376 $as_echo "$ac_res" >&6; }
10377 eval as_val
=\$
$as_ac_Lib
10378 if test "x$as_val" = x
""yes; then :
10383 if test "$HAVE_PTHREAD" = yes; then
10384 case "${canonical}" in
10386 *) LIB_PTHREAD
="-lpthread"
10387 LIBS
="$LIB_PTHREAD $LIBS" ;;
10390 $as_echo "#define HAVE_PTHREAD 1" >>confdefs.h
10395 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for cma_open in -lpthreads" >&5
10396 $as_echo_n "checking for cma_open in -lpthreads... " >&6; }
10397 if test "${ac_cv_lib_pthreads_cma_open+set}" = set; then :
10398 $as_echo_n "(cached) " >&6
10400 ac_check_lib_save_LIBS
=$LIBS
10401 LIBS
="-lpthreads $LIBS"
10402 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
10403 /* end confdefs.h. */
10405 /* Override any GCC internal prototype to avoid an error.
10406 Use char because int might match the return type of a GCC
10407 builtin and then its argument prototype would still apply. */
10415 return cma_open ();
10420 if ac_fn_c_try_link
"$LINENO"; then :
10421 ac_cv_lib_pthreads_cma_open
=yes
10423 ac_cv_lib_pthreads_cma_open
=no
10425 rm -f core conftest.err conftest.
$ac_objext \
10426 conftest
$ac_exeext conftest.
$ac_ext
10427 LIBS
=$ac_check_lib_save_LIBS
10429 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_pthreads_cma_open" >&5
10430 $as_echo "$ac_cv_lib_pthreads_cma_open" >&6; }
10431 if test "x$ac_cv_lib_pthreads_cma_open" = x
""yes; then :
10432 cat >>confdefs.h
<<_ACEOF
10433 #define HAVE_LIBPTHREADS 1
10436 LIBS
="-lpthreads $LIBS"
10441 ## Note: when using cpp in s/aix4.2.h, this definition depended on
10442 ## HAVE_LIBPTHREADS. That was not defined earlier in configure when
10443 ## the system file was sourced. Hence the value of LIBS_SYSTEM
10444 ## added to LIBS in configure would never contain the pthreads part,
10445 ## but the value used in Makefiles might. FIXME?
10447 ## -lpthreads seems to be necessary for Xlib in X11R6, and should
10448 ## be harmless on older versions of X where it happens to exist.
10449 test "$opsys" = "aix4-2" && \
10450 test $ac_cv_lib_pthreads_cma_open = yes && \
10451 LIBS_SYSTEM
="$LIBS_SYSTEM -lpthreads"
10456 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -bbigtoc option" >&5
10457 $as_echo_n "checking for -bbigtoc option... " >&6; }
10458 if test "${gdb_cv_bigtoc+set}" = set; then :
10459 $as_echo_n "(cached) " >&6
10463 yes) gdb_cv_bigtoc
=-Wl,-bbigtoc ;;
10464 *) gdb_cv_bigtoc
=-bbigtoc ;;
10467 LDFLAGS
=$LDFLAGS\
$gdb_cv_bigtoc
10468 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
10469 /* end confdefs.h. */
10479 if ac_fn_c_try_link
"$LINENO"; then :
10484 rm -f core conftest.err conftest.
$ac_objext \
10485 conftest
$ac_exeext conftest.
$ac_ext
10488 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gdb_cv_bigtoc" >&5
10489 $as_echo "$gdb_cv_bigtoc" >&6; }
10493 # Change CFLAGS and CPPFLAGS temporarily so that C_SWITCH_X_SITE gets
10494 # used for the tests that follow. We set them back to REAL_CFLAGS and
10495 # REAL_CPPFLAGS later on.
10497 REAL_CFLAGS
="$CFLAGS"
10498 REAL_CPPFLAGS
="$CPPFLAGS"
10500 if test "${HAVE_X11}" = "yes"; then
10501 DEFS
="$C_SWITCH_X_SITE $DEFS"
10502 LDFLAGS
="$LDFLAGS $LD_SWITCH_X_SITE"
10504 CFLAGS
="$C_SWITCH_X_SITE $CFLAGS"
10505 CPPFLAGS
="$C_SWITCH_X_SITE $CPPFLAGS"
10507 # On Solaris, arrange for LD_RUN_PATH to point to the X libraries for tests.
10508 # This is handled by LD_SWITCH_X_SITE_AUX during the real build,
10509 # but it's more convenient here to set LD_RUN_PATH
10510 # since this also works on hosts that don't understand LD_SWITCH_X_SITE_AUX.
10511 if test "${x_libraries}" != NONE
&& test -n "${x_libraries}"; then
10512 LD_RUN_PATH
=$x_libraries${LD_RUN_PATH+:}$LD_RUN_PATH
10516 if test "${opsys}" = "gnu-linux"; then
10517 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether X on GNU/Linux needs -b to link" >&5
10518 $as_echo_n "checking whether X on GNU/Linux needs -b to link... " >&6; }
10519 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
10520 /* end confdefs.h. */
10525 XOpenDisplay ("foo");
10530 if ac_fn_c_try_link
"$LINENO"; then :
10531 xgnu_linux_first_failure
=no
10533 xgnu_linux_first_failure
=yes
10535 rm -f core conftest.err conftest.
$ac_objext \
10536 conftest
$ac_exeext conftest.
$ac_ext
10537 if test "${xgnu_linux_first_failure}" = "yes"; then
10538 OLD_LD_SWITCH_X_SITE
="$LD_SWITCH_X_SITE"
10539 OLD_C_SWITCH_X_SITE
="$C_SWITCH_X_SITE"
10540 OLD_CPPFLAGS
="$CPPFLAGS"
10542 LD_SWITCH_X_SITE
="$LD_SWITCH_X_SITE -b i486-linuxaout"
10543 C_SWITCH_X_SITE
="$C_SWITCH_X_SITE -b i486-linuxaout"
10544 CPPFLAGS
="$CPPFLAGS -b i486-linuxaout"
10545 LIBS
="$LIBS -b i486-linuxaout"
10546 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
10547 /* end confdefs.h. */
10552 XOpenDisplay ("foo");
10557 if ac_fn_c_try_link
"$LINENO"; then :
10558 xgnu_linux_second_failure
=no
10560 xgnu_linux_second_failure
=yes
10562 rm -f core conftest.err conftest.
$ac_objext \
10563 conftest
$ac_exeext conftest.
$ac_ext
10564 if test "${xgnu_linux_second_failure}" = "yes"; then
10565 # If we get the same failure with -b, there is no use adding -b.
10566 # So take it out. This plays safe.
10567 LD_SWITCH_X_SITE
="$OLD_LD_SWITCH_X_SITE"
10568 C_SWITCH_X_SITE
="$OLD_C_SWITCH_X_SITE"
10569 CPPFLAGS
="$OLD_CPPFLAGS"
10571 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10572 $as_echo "no" >&6; }
10574 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
10575 $as_echo "yes" >&6; }
10578 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10579 $as_echo "no" >&6; }
10583 # Reportedly, some broken Solaris systems have XKBlib.h but are missing
10584 # header files included from there.
10585 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Xkb" >&5
10586 $as_echo_n "checking for Xkb... " >&6; }
10587 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
10588 /* end confdefs.h. */
10589 #include <X11/Xlib.h>
10590 #include <X11/XKBlib.h>
10594 XkbDescPtr kb = XkbGetKeyboard (0, XkbAllComponentsMask, XkbUseCoreKbd);
10599 if ac_fn_c_try_link
"$LINENO"; then :
10604 rm -f core conftest.err conftest.
$ac_objext \
10605 conftest
$ac_exeext conftest.
$ac_ext
10606 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $emacs_xkb" >&5
10607 $as_echo "$emacs_xkb" >&6; }
10608 if test $emacs_xkb = yes; then
10610 $as_echo "#define HAVE_XKBGETKEYBOARD 1" >>confdefs.h
10614 for ac_func
in XrmSetDatabase XScreenResourceString \
10615 XScreenNumberOfScreen XSetWMProtocols
10617 as_ac_var
=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
10618 ac_fn_c_check_func
"$LINENO" "$ac_func" "$as_ac_var"
10619 eval as_val
=\$
$as_ac_var
10620 if test "x$as_val" = x
""yes; then :
10621 cat >>confdefs.h
<<_ACEOF
10622 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
10630 if test "${window_system}" = "x11"; then
10631 { $as_echo "$as_me:${as_lineno-$LINENO}: checking X11 version 6" >&5
10632 $as_echo_n "checking X11 version 6... " >&6; }
10633 if test "${emacs_cv_x11_version_6+set}" = set; then :
10634 $as_echo_n "(cached) " >&6
10636 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
10637 /* end confdefs.h. */
10638 #include <X11/Xlib.h>
10642 #if XlibSpecificationRelease < 6
10650 if ac_fn_c_try_link
"$LINENO"; then :
10651 emacs_cv_x11_version_6
=yes
10653 emacs_cv_x11_version_6
=no
10655 rm -f core conftest.err conftest.
$ac_objext \
10656 conftest
$ac_exeext conftest.
$ac_ext
10659 if test $emacs_cv_x11_version_6 = yes; then
10660 { $as_echo "$as_me:${as_lineno-$LINENO}: result: 6 or newer" >&5
10661 $as_echo "6 or newer" >&6; }
10663 $as_echo "#define HAVE_X11R6 1" >>confdefs.h
10666 $as_echo "#define HAVE_X_I18N 1" >>confdefs.h
10668 ## inoue@ainet.or.jp says Solaris has a bug related to X11R6-style
10673 $as_echo "#define HAVE_X11R6_XIM 1" >>confdefs.h
10678 { $as_echo "$as_me:${as_lineno-$LINENO}: result: before 6" >&5
10679 $as_echo "before 6" >&6; }
10684 ### Use -lrsvg-2 if available, unless `--with-rsvg=no' is specified.
10686 if test "${HAVE_X11}" = "yes" ||
test "${HAVE_NS}" = "yes"; then
10687 if test "${with_rsvg}" != "no"; then
10688 RSVG_REQUIRED
=2.11.0
10689 RSVG_MODULE
="librsvg-2.0 >= $RSVG_REQUIRED"
10694 # Extract the first word of "pkg-config", so it can be a program name with args.
10695 set dummy pkg-config
; ac_word
=$2
10696 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10697 $as_echo_n "checking for $ac_word... " >&6; }
10698 if test "${ac_cv_path_PKG_CONFIG+set}" = set; then :
10699 $as_echo_n "(cached) " >&6
10701 case $PKG_CONFIG in
10703 ac_cv_path_PKG_CONFIG
="$PKG_CONFIG" # Let the user override the test with a path.
10706 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
10707 for as_dir
in $PATH
10710 test -z "$as_dir" && as_dir
=.
10711 for ac_exec_ext
in '' $ac_executable_extensions; do
10712 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10713 ac_cv_path_PKG_CONFIG
="$as_dir/$ac_word$ac_exec_ext"
10714 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10721 test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG
="no"
10725 PKG_CONFIG
=$ac_cv_path_PKG_CONFIG
10726 if test -n "$PKG_CONFIG"; then
10727 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5
10728 $as_echo "$PKG_CONFIG" >&6; }
10730 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10731 $as_echo "no" >&6; }
10736 if test "$PKG_CONFIG" = "no" ; then
10739 PKG_CONFIG_MIN_VERSION
=0.9.0
10740 if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
10741 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $RSVG_MODULE" >&5
10742 $as_echo_n "checking for $RSVG_MODULE... " >&6; }
10744 if $PKG_CONFIG --exists "$RSVG_MODULE" 2>&5 &&
10745 RSVG_CFLAGS
=`$PKG_CONFIG --cflags "$RSVG_MODULE" 2>&5` &&
10746 RSVG_LIBS
=`$PKG_CONFIG --libs "$RSVG_MODULE" 2>&5`; then
10748 RSVG_CFLAGS
=`$as_echo "$RSVG_CFLAGS" | sed -e 's,///*,/,g'`
10749 RSVG_LIBS
=`$as_echo "$RSVG_LIBS" | sed -e 's,///*,/,g'`
10750 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes CFLAGS='$RSVG_CFLAGS' LIBS='$RSVG_LIBS'" >&5
10751 $as_echo "yes CFLAGS='$RSVG_CFLAGS' LIBS='$RSVG_LIBS'" >&6; }
10754 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10755 $as_echo "no" >&6; }
10758 ## If we have a custom action on failure, don't print errors, but
10759 ## do set a variable so people can do so.
10760 RSVG_PKG_ERRORS
=`$PKG_CONFIG --errors-to-stdout --print-errors "$RSVG_MODULE"`
10767 echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
10768 echo "*** See http://www.freedesktop.org/software/pkgconfig"
10772 if test $succeeded = yes; then
10781 if test $HAVE_RSVG = yes; then
10783 $as_echo "#define HAVE_RSVG 1" >>confdefs.h
10785 CFLAGS
="$CFLAGS $RSVG_CFLAGS"
10786 LIBS
="$RSVG_LIBS $LIBS"
10791 HAVE_IMAGEMAGICK
=no
10792 if test "${HAVE_X11}" = "yes"; then
10793 if test "${with_imagemagick}" != "no"; then
10794 ## 6.2.8 is the earliest version known to work, but earlier versions
10795 ## might work - let us know if you find one.
10796 ## 6.0.7 does not work. See bug#7955.
10797 IMAGEMAGICK_MODULE
="Wand >= 6.2.8"
10801 # Extract the first word of "pkg-config", so it can be a program name with args.
10802 set dummy pkg-config
; ac_word
=$2
10803 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10804 $as_echo_n "checking for $ac_word... " >&6; }
10805 if test "${ac_cv_path_PKG_CONFIG+set}" = set; then :
10806 $as_echo_n "(cached) " >&6
10808 case $PKG_CONFIG in
10810 ac_cv_path_PKG_CONFIG
="$PKG_CONFIG" # Let the user override the test with a path.
10813 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
10814 for as_dir
in $PATH
10817 test -z "$as_dir" && as_dir
=.
10818 for ac_exec_ext
in '' $ac_executable_extensions; do
10819 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10820 ac_cv_path_PKG_CONFIG
="$as_dir/$ac_word$ac_exec_ext"
10821 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10828 test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG
="no"
10832 PKG_CONFIG
=$ac_cv_path_PKG_CONFIG
10833 if test -n "$PKG_CONFIG"; then
10834 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5
10835 $as_echo "$PKG_CONFIG" >&6; }
10837 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10838 $as_echo "no" >&6; }
10843 if test "$PKG_CONFIG" = "no" ; then
10846 PKG_CONFIG_MIN_VERSION
=0.9.0
10847 if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
10848 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $IMAGEMAGICK_MODULE" >&5
10849 $as_echo_n "checking for $IMAGEMAGICK_MODULE... " >&6; }
10851 if $PKG_CONFIG --exists "$IMAGEMAGICK_MODULE" 2>&5 &&
10852 IMAGEMAGICK_CFLAGS
=`$PKG_CONFIG --cflags "$IMAGEMAGICK_MODULE" 2>&5` &&
10853 IMAGEMAGICK_LIBS
=`$PKG_CONFIG --libs "$IMAGEMAGICK_MODULE" 2>&5`; then
10855 IMAGEMAGICK_CFLAGS
=`$as_echo "$IMAGEMAGICK_CFLAGS" | sed -e 's,///*,/,g'`
10856 IMAGEMAGICK_LIBS
=`$as_echo "$IMAGEMAGICK_LIBS" | sed -e 's,///*,/,g'`
10857 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes CFLAGS='$IMAGEMAGICK_CFLAGS' LIBS='$IMAGEMAGICK_LIBS'" >&5
10858 $as_echo "yes CFLAGS='$IMAGEMAGICK_CFLAGS' LIBS='$IMAGEMAGICK_LIBS'" >&6; }
10861 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10862 $as_echo "no" >&6; }
10863 IMAGEMAGICK_CFLAGS
=""
10864 IMAGEMAGICK_LIBS
=""
10865 ## If we have a custom action on failure, don't print errors, but
10866 ## do set a variable so people can do so.
10867 IMAGEMAGICK_PKG_ERRORS
=`$PKG_CONFIG --errors-to-stdout --print-errors "$IMAGEMAGICK_MODULE"`
10874 echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
10875 echo "*** See http://www.freedesktop.org/software/pkgconfig"
10879 if test $succeeded = yes; then
10880 HAVE_IMAGEMAGICK
=yes
10888 if test $HAVE_IMAGEMAGICK = yes; then
10890 $as_echo "#define HAVE_IMAGEMAGICK 1" >>confdefs.h
10892 CFLAGS
="$CFLAGS $IMAGEMAGICK_CFLAGS"
10893 LIBS
="$IMAGEMAGICK_LIBS $LIBS"
10894 for ac_func
in MagickExportImagePixels
10896 ac_fn_c_check_func
"$LINENO" "MagickExportImagePixels" "ac_cv_func_MagickExportImagePixels"
10897 if test "x$ac_cv_func_MagickExportImagePixels" = x
""yes; then :
10898 cat >>confdefs.h
<<_ACEOF
10899 #define HAVE_MAGICKEXPORTIMAGEPIXELS 1
10912 if test "${with_gtk3}" = "yes"; then
10915 GTK_MODULES
="gtk+-3.0 >= $GTK_REQUIRED glib-2.0 >= $GLIB_REQUIRED"
10920 # Extract the first word of "pkg-config", so it can be a program name with args.
10921 set dummy pkg-config
; ac_word
=$2
10922 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10923 $as_echo_n "checking for $ac_word... " >&6; }
10924 if test "${ac_cv_path_PKG_CONFIG+set}" = set; then :
10925 $as_echo_n "(cached) " >&6
10927 case $PKG_CONFIG in
10929 ac_cv_path_PKG_CONFIG
="$PKG_CONFIG" # Let the user override the test with a path.
10932 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
10933 for as_dir
in $PATH
10936 test -z "$as_dir" && as_dir
=.
10937 for ac_exec_ext
in '' $ac_executable_extensions; do
10938 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10939 ac_cv_path_PKG_CONFIG
="$as_dir/$ac_word$ac_exec_ext"
10940 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10947 test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG
="no"
10951 PKG_CONFIG
=$ac_cv_path_PKG_CONFIG
10952 if test -n "$PKG_CONFIG"; then
10953 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5
10954 $as_echo "$PKG_CONFIG" >&6; }
10956 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10957 $as_echo "no" >&6; }
10962 if test "$PKG_CONFIG" = "no" ; then
10965 PKG_CONFIG_MIN_VERSION
=0.9.0
10966 if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
10967 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $GTK_MODULES" >&5
10968 $as_echo_n "checking for $GTK_MODULES... " >&6; }
10970 if $PKG_CONFIG --exists "$GTK_MODULES" 2>&5 &&
10971 GTK_CFLAGS
=`$PKG_CONFIG --cflags "$GTK_MODULES" 2>&5` &&
10972 GTK_LIBS
=`$PKG_CONFIG --libs "$GTK_MODULES" 2>&5`; then
10974 GTK_CFLAGS
=`$as_echo "$GTK_CFLAGS" | sed -e 's,///*,/,g'`
10975 GTK_LIBS
=`$as_echo "$GTK_LIBS" | sed -e 's,///*,/,g'`
10976 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes CFLAGS='$GTK_CFLAGS' LIBS='$GTK_LIBS'" >&5
10977 $as_echo "yes CFLAGS='$GTK_CFLAGS' LIBS='$GTK_LIBS'" >&6; }
10980 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10981 $as_echo "no" >&6; }
10984 ## If we have a custom action on failure, don't print errors, but
10985 ## do set a variable so people can do so.
10986 GTK_PKG_ERRORS
=`$PKG_CONFIG --errors-to-stdout --print-errors "$GTK_MODULES"`
10993 echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
10994 echo "*** See http://www.freedesktop.org/software/pkgconfig"
10998 if test $succeeded = yes; then
11004 if test "$pkg_check_gtk" = "no" && test "$USE_X_TOOLKIT" != "maybe"; then
11005 as_fn_error
"$GTK_PKG_ERRORS" "$LINENO" 5
11008 $as_echo "#define HAVE_GTK3 1" >>confdefs.h
11010 GTK_OBJ
=emacsgtkfixed.o
11013 if test "$pkg_check_gtk" != "yes"; then
11015 if test "${with_gtk}" = "yes" ||
test "$USE_X_TOOLKIT" = "maybe"; then
11018 GTK_MODULES
="gtk+-2.0 >= $GTK_REQUIRED glib-2.0 >= $GLIB_REQUIRED"
11023 # Extract the first word of "pkg-config", so it can be a program name with args.
11024 set dummy pkg-config
; ac_word
=$2
11025 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11026 $as_echo_n "checking for $ac_word... " >&6; }
11027 if test "${ac_cv_path_PKG_CONFIG+set}" = set; then :
11028 $as_echo_n "(cached) " >&6
11030 case $PKG_CONFIG in
11032 ac_cv_path_PKG_CONFIG
="$PKG_CONFIG" # Let the user override the test with a path.
11035 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
11036 for as_dir
in $PATH
11039 test -z "$as_dir" && as_dir
=.
11040 for ac_exec_ext
in '' $ac_executable_extensions; do
11041 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11042 ac_cv_path_PKG_CONFIG
="$as_dir/$ac_word$ac_exec_ext"
11043 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11050 test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG
="no"
11054 PKG_CONFIG
=$ac_cv_path_PKG_CONFIG
11055 if test -n "$PKG_CONFIG"; then
11056 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5
11057 $as_echo "$PKG_CONFIG" >&6; }
11059 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11060 $as_echo "no" >&6; }
11065 if test "$PKG_CONFIG" = "no" ; then
11068 PKG_CONFIG_MIN_VERSION
=0.9.0
11069 if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
11070 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $GTK_MODULES" >&5
11071 $as_echo_n "checking for $GTK_MODULES... " >&6; }
11073 if $PKG_CONFIG --exists "$GTK_MODULES" 2>&5 &&
11074 GTK_CFLAGS
=`$PKG_CONFIG --cflags "$GTK_MODULES" 2>&5` &&
11075 GTK_LIBS
=`$PKG_CONFIG --libs "$GTK_MODULES" 2>&5`; then
11077 GTK_CFLAGS
=`$as_echo "$GTK_CFLAGS" | sed -e 's,///*,/,g'`
11078 GTK_LIBS
=`$as_echo "$GTK_LIBS" | sed -e 's,///*,/,g'`
11079 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes CFLAGS='$GTK_CFLAGS' LIBS='$GTK_LIBS'" >&5
11080 $as_echo "yes CFLAGS='$GTK_CFLAGS' LIBS='$GTK_LIBS'" >&6; }
11083 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11084 $as_echo "no" >&6; }
11087 ## If we have a custom action on failure, don't print errors, but
11088 ## do set a variable so people can do so.
11089 GTK_PKG_ERRORS
=`$PKG_CONFIG --errors-to-stdout --print-errors "$GTK_MODULES"`
11096 echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
11097 echo "*** See http://www.freedesktop.org/software/pkgconfig"
11101 if test $succeeded = yes; then
11107 if test "$pkg_check_gtk" = "no" && test "$USE_X_TOOLKIT" != "maybe"; then
11108 as_fn_error
"$GTK_PKG_ERRORS" "$LINENO" 5
11113 if test x
"$pkg_check_gtk" = xyes
; then
11117 C_SWITCH_X_SITE
="$C_SWITCH_X_SITE $GTK_CFLAGS"
11118 CFLAGS
="$CFLAGS $GTK_CFLAGS"
11119 LIBS
="$GTK_LIBS $LIBS"
11121 for ac_func
in gtk_main
11123 ac_fn_c_check_func
"$LINENO" "gtk_main" "ac_cv_func_gtk_main"
11124 if test "x$ac_cv_func_gtk_main" = x
""yes; then :
11125 cat >>confdefs.h
<<_ACEOF
11126 #define HAVE_GTK_MAIN 1
11132 if test "${GTK_COMPILES}" != "yes"; then
11133 if test "$USE_X_TOOLKIT" != "maybe"; then
11134 as_fn_error
"Gtk+ wanted, but it does not compile, see config.log. Maybe some x11-devel files missing?" "$LINENO" 5;
11139 $as_echo "#define USE_GTK 1" >>confdefs.h
11141 GTK_OBJ
="gtkutil.o $GTK_OBJ"
11143 if $PKG_CONFIG --atleast-version=2.10 gtk
+-2.0
; then
11146 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Your version of Gtk+ will have problems with
11147 closing open displays. This is no problem if you just use
11148 one display, but if you use more than one and close one of them
11149 Emacs may crash." >&5
11150 $as_echo "$as_me: WARNING: Your version of Gtk+ will have problems with
11151 closing open displays. This is no problem if you just use
11152 one display, but if you use more than one and close one of them
11153 Emacs may crash." >&2;}
11162 if test "${HAVE_GTK}" = "yes"; then
11164 if test "$with_toolkit_scroll_bars" != no
; then
11165 with_toolkit_scroll_bars
=yes
11168 HAVE_GTK_FILE_SELECTION
=no
11169 ac_fn_c_check_decl
"$LINENO" "GTK_TYPE_FILE_SELECTION" "ac_cv_have_decl_GTK_TYPE_FILE_SELECTION" "$ac_includes_default
11170 #include <gtk/gtk.h>
11172 if test "x$ac_cv_have_decl_GTK_TYPE_FILE_SELECTION" = x
""yes; then :
11173 HAVE_GTK_FILE_SELECTION
=yes
11175 HAVE_GTK_FILE_SELECTION
=no
11178 if test "$HAVE_GTK_FILE_SELECTION" = yes; then
11179 for ac_func
in gtk_file_selection_new
11181 ac_fn_c_check_func
"$LINENO" "gtk_file_selection_new" "ac_cv_func_gtk_file_selection_new"
11182 if test "x$ac_cv_func_gtk_file_selection_new" = x
""yes; then :
11183 cat >>confdefs.h
<<_ACEOF
11184 #define HAVE_GTK_FILE_SELECTION_NEW 1
11193 for ac_func
in gtk_widget_get_window gtk_widget_set_has_window \
11194 gtk_dialog_get_action_area gtk_widget_get_sensitive \
11195 gtk_widget_get_mapped gtk_adjustment_get_page_size \
11196 gtk_orientable_set_orientation \
11197 gtk_window_set_has_resize_grip
11199 as_ac_var
=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
11200 ac_fn_c_check_func
"$LINENO" "$ac_func" "$as_ac_var"
11201 eval as_val
=\$
$as_ac_var
11202 if test "x$as_val" = x
""yes; then :
11203 cat >>confdefs.h
<<_ACEOF
11204 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
11214 if test "${with_dbus}" = "yes"; then
11218 # Extract the first word of "pkg-config", so it can be a program name with args.
11219 set dummy pkg-config
; ac_word
=$2
11220 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11221 $as_echo_n "checking for $ac_word... " >&6; }
11222 if test "${ac_cv_path_PKG_CONFIG+set}" = set; then :
11223 $as_echo_n "(cached) " >&6
11225 case $PKG_CONFIG in
11227 ac_cv_path_PKG_CONFIG
="$PKG_CONFIG" # Let the user override the test with a path.
11230 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
11231 for as_dir
in $PATH
11234 test -z "$as_dir" && as_dir
=.
11235 for ac_exec_ext
in '' $ac_executable_extensions; do
11236 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11237 ac_cv_path_PKG_CONFIG
="$as_dir/$ac_word$ac_exec_ext"
11238 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11245 test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG
="no"
11249 PKG_CONFIG
=$ac_cv_path_PKG_CONFIG
11250 if test -n "$PKG_CONFIG"; then
11251 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5
11252 $as_echo "$PKG_CONFIG" >&6; }
11254 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11255 $as_echo "no" >&6; }
11260 if test "$PKG_CONFIG" = "no" ; then
11263 PKG_CONFIG_MIN_VERSION
=0.9.0
11264 if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
11265 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dbus-1 >= 1.0" >&5
11266 $as_echo_n "checking for dbus-1 >= 1.0... " >&6; }
11268 if $PKG_CONFIG --exists "dbus-1 >= 1.0" 2>&5 &&
11269 DBUS_CFLAGS
=`$PKG_CONFIG --cflags "dbus-1 >= 1.0" 2>&5` &&
11270 DBUS_LIBS
=`$PKG_CONFIG --libs "dbus-1 >= 1.0" 2>&5`; then
11272 DBUS_CFLAGS
=`$as_echo "$DBUS_CFLAGS" | sed -e 's,///*,/,g'`
11273 DBUS_LIBS
=`$as_echo "$DBUS_LIBS" | sed -e 's,///*,/,g'`
11274 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes CFLAGS='$DBUS_CFLAGS' LIBS='$DBUS_LIBS'" >&5
11275 $as_echo "yes CFLAGS='$DBUS_CFLAGS' LIBS='$DBUS_LIBS'" >&6; }
11278 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11279 $as_echo "no" >&6; }
11282 ## If we have a custom action on failure, don't print errors, but
11283 ## do set a variable so people can do so.
11284 DBUS_PKG_ERRORS
=`$PKG_CONFIG --errors-to-stdout --print-errors "dbus-1 >= 1.0"`
11291 echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
11292 echo "*** See http://www.freedesktop.org/software/pkgconfig"
11296 if test $succeeded = yes; then
11302 if test "$HAVE_DBUS" = yes; then
11303 LIBS
="$LIBS $DBUS_LIBS"
11305 $as_echo "#define HAVE_DBUS 1" >>confdefs.h
11307 for ac_func
in dbus_watch_get_unix_fd
11309 ac_fn_c_check_func
"$LINENO" "dbus_watch_get_unix_fd" "ac_cv_func_dbus_watch_get_unix_fd"
11310 if test "x$ac_cv_func_dbus_watch_get_unix_fd" = x
""yes; then :
11311 cat >>confdefs.h
<<_ACEOF
11312 #define HAVE_DBUS_WATCH_GET_UNIX_FD 1
11318 DBUS_OBJ
=dbusbind.o
11324 if test "${HAVE_X11}" = "yes" && test "${with_gsettings}" = "yes"; then
11328 # Extract the first word of "pkg-config", so it can be a program name with args.
11329 set dummy pkg-config
; ac_word
=$2
11330 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11331 $as_echo_n "checking for $ac_word... " >&6; }
11332 if test "${ac_cv_path_PKG_CONFIG+set}" = set; then :
11333 $as_echo_n "(cached) " >&6
11335 case $PKG_CONFIG in
11337 ac_cv_path_PKG_CONFIG
="$PKG_CONFIG" # Let the user override the test with a path.
11340 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
11341 for as_dir
in $PATH
11344 test -z "$as_dir" && as_dir
=.
11345 for ac_exec_ext
in '' $ac_executable_extensions; do
11346 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11347 ac_cv_path_PKG_CONFIG
="$as_dir/$ac_word$ac_exec_ext"
11348 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11355 test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG
="no"
11359 PKG_CONFIG
=$ac_cv_path_PKG_CONFIG
11360 if test -n "$PKG_CONFIG"; then
11361 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5
11362 $as_echo "$PKG_CONFIG" >&6; }
11364 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11365 $as_echo "no" >&6; }
11370 if test "$PKG_CONFIG" = "no" ; then
11373 PKG_CONFIG_MIN_VERSION
=0.9.0
11374 if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
11375 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gio-2.0 >= 2.26" >&5
11376 $as_echo_n "checking for gio-2.0 >= 2.26... " >&6; }
11378 if $PKG_CONFIG --exists "gio-2.0 >= 2.26" 2>&5 &&
11379 GSETTINGS_CFLAGS
=`$PKG_CONFIG --cflags "gio-2.0 >= 2.26" 2>&5` &&
11380 GSETTINGS_LIBS
=`$PKG_CONFIG --libs "gio-2.0 >= 2.26" 2>&5`; then
11382 GSETTINGS_CFLAGS
=`$as_echo "$GSETTINGS_CFLAGS" | sed -e 's,///*,/,g'`
11383 GSETTINGS_LIBS
=`$as_echo "$GSETTINGS_LIBS" | sed -e 's,///*,/,g'`
11384 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes CFLAGS='$GSETTINGS_CFLAGS' LIBS='$GSETTINGS_LIBS'" >&5
11385 $as_echo "yes CFLAGS='$GSETTINGS_CFLAGS' LIBS='$GSETTINGS_LIBS'" >&6; }
11388 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11389 $as_echo "no" >&6; }
11390 GSETTINGS_CFLAGS
=""
11392 ## If we have a custom action on failure, don't print errors, but
11393 ## do set a variable so people can do so.
11394 GSETTINGS_PKG_ERRORS
=`$PKG_CONFIG --errors-to-stdout --print-errors "gio-2.0 >= 2.26"`
11401 echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
11402 echo "*** See http://www.freedesktop.org/software/pkgconfig"
11406 if test $succeeded = yes; then
11412 if test "$HAVE_GSETTINGS" = "yes"; then
11414 $as_echo "#define HAVE_GSETTINGS 1" >>confdefs.h
11416 SETTINGS_CFLAGS
="$GSETTINGS_CFLAGS"
11417 SETTINGS_LIBS
="$GSETTINGS_LIBS"
11422 if test "${HAVE_X11}" = "yes" && test "${with_gconf}" = "yes"; then
11426 # Extract the first word of "pkg-config", so it can be a program name with args.
11427 set dummy pkg-config
; ac_word
=$2
11428 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11429 $as_echo_n "checking for $ac_word... " >&6; }
11430 if test "${ac_cv_path_PKG_CONFIG+set}" = set; then :
11431 $as_echo_n "(cached) " >&6
11433 case $PKG_CONFIG in
11435 ac_cv_path_PKG_CONFIG
="$PKG_CONFIG" # Let the user override the test with a path.
11438 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
11439 for as_dir
in $PATH
11442 test -z "$as_dir" && as_dir
=.
11443 for ac_exec_ext
in '' $ac_executable_extensions; do
11444 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11445 ac_cv_path_PKG_CONFIG
="$as_dir/$ac_word$ac_exec_ext"
11446 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11453 test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG
="no"
11457 PKG_CONFIG
=$ac_cv_path_PKG_CONFIG
11458 if test -n "$PKG_CONFIG"; then
11459 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5
11460 $as_echo "$PKG_CONFIG" >&6; }
11462 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11463 $as_echo "no" >&6; }
11468 if test "$PKG_CONFIG" = "no" ; then
11471 PKG_CONFIG_MIN_VERSION
=0.9.0
11472 if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
11473 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gconf-2.0 >= 2.13" >&5
11474 $as_echo_n "checking for gconf-2.0 >= 2.13... " >&6; }
11476 if $PKG_CONFIG --exists "gconf-2.0 >= 2.13" 2>&5 &&
11477 GCONF_CFLAGS
=`$PKG_CONFIG --cflags "gconf-2.0 >= 2.13" 2>&5` &&
11478 GCONF_LIBS
=`$PKG_CONFIG --libs "gconf-2.0 >= 2.13" 2>&5`; then
11480 GCONF_CFLAGS
=`$as_echo "$GCONF_CFLAGS" | sed -e 's,///*,/,g'`
11481 GCONF_LIBS
=`$as_echo "$GCONF_LIBS" | sed -e 's,///*,/,g'`
11482 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes CFLAGS='$GCONF_CFLAGS' LIBS='$GCONF_LIBS'" >&5
11483 $as_echo "yes CFLAGS='$GCONF_CFLAGS' LIBS='$GCONF_LIBS'" >&6; }
11486 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11487 $as_echo "no" >&6; }
11490 ## If we have a custom action on failure, don't print errors, but
11491 ## do set a variable so people can do so.
11492 GCONF_PKG_ERRORS
=`$PKG_CONFIG --errors-to-stdout --print-errors "gconf-2.0 >= 2.13"`
11499 echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
11500 echo "*** See http://www.freedesktop.org/software/pkgconfig"
11504 if test $succeeded = yes; then
11510 if test "$HAVE_GCONF" = yes; then
11512 $as_echo "#define HAVE_GCONF 1" >>confdefs.h
11514 SETTINGS_CFLAGS
="$SETTINGS_CFLAGS $GCONF_CFLAGS"
11515 SETTINGS_LIBS
="$SETTINGS_LIBS $GCONF_LIBS"
11519 if test "$HAVE_GSETTINGS" = "yes" ||
test "$HAVE_GCONF" = "yes"; then
11520 SAVE_CFLAGS
="$CFLAGS"
11522 CFLAGS
="$SETTINGS_CFLAGS $CFLAGS"
11523 LIBS
="$SETTINGS_LIBS $LIBS"
11524 for ac_func
in g_type_init
11526 ac_fn_c_check_func
"$LINENO" "g_type_init" "ac_cv_func_g_type_init"
11527 if test "x$ac_cv_func_g_type_init" = x
""yes; then :
11528 cat >>confdefs.h
<<_ACEOF
11529 #define HAVE_G_TYPE_INIT 1
11535 CFLAGS
="$SAVE_CFLAGS"
11544 if test "${with_selinux}" = "yes"; then
11545 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for lgetfilecon in -lselinux" >&5
11546 $as_echo_n "checking for lgetfilecon in -lselinux... " >&6; }
11547 if test "${ac_cv_lib_selinux_lgetfilecon+set}" = set; then :
11548 $as_echo_n "(cached) " >&6
11550 ac_check_lib_save_LIBS
=$LIBS
11551 LIBS
="-lselinux $LIBS"
11552 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
11553 /* end confdefs.h. */
11555 /* Override any GCC internal prototype to avoid an error.
11556 Use char because int might match the return type of a GCC
11557 builtin and then its argument prototype would still apply. */
11561 char lgetfilecon ();
11565 return lgetfilecon ();
11570 if ac_fn_c_try_link
"$LINENO"; then :
11571 ac_cv_lib_selinux_lgetfilecon
=yes
11573 ac_cv_lib_selinux_lgetfilecon
=no
11575 rm -f core conftest.err conftest.
$ac_objext \
11576 conftest
$ac_exeext conftest.
$ac_ext
11577 LIBS
=$ac_check_lib_save_LIBS
11579 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_selinux_lgetfilecon" >&5
11580 $as_echo "$ac_cv_lib_selinux_lgetfilecon" >&6; }
11581 if test "x$ac_cv_lib_selinux_lgetfilecon" = x
""yes; then :
11582 HAVE_LIBSELINUX
=yes
11587 if test "$HAVE_LIBSELINUX" = yes; then
11589 $as_echo "#define HAVE_LIBSELINUX 1" >>confdefs.h
11591 LIBSELINUX_LIBS
=-lselinux
11597 HAVE_GNUTLS_CALLBACK_CERTIFICATE_VERIFY
=no
11598 if test "${with_gnutls}" = "yes" ; then
11602 # Extract the first word of "pkg-config", so it can be a program name with args.
11603 set dummy pkg-config
; ac_word
=$2
11604 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11605 $as_echo_n "checking for $ac_word... " >&6; }
11606 if test "${ac_cv_path_PKG_CONFIG+set}" = set; then :
11607 $as_echo_n "(cached) " >&6
11609 case $PKG_CONFIG in
11611 ac_cv_path_PKG_CONFIG
="$PKG_CONFIG" # Let the user override the test with a path.
11614 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
11615 for as_dir
in $PATH
11618 test -z "$as_dir" && as_dir
=.
11619 for ac_exec_ext
in '' $ac_executable_extensions; do
11620 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11621 ac_cv_path_PKG_CONFIG
="$as_dir/$ac_word$ac_exec_ext"
11622 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11629 test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG
="no"
11633 PKG_CONFIG
=$ac_cv_path_PKG_CONFIG
11634 if test -n "$PKG_CONFIG"; then
11635 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5
11636 $as_echo "$PKG_CONFIG" >&6; }
11638 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11639 $as_echo "no" >&6; }
11644 if test "$PKG_CONFIG" = "no" ; then
11647 PKG_CONFIG_MIN_VERSION
=0.9.0
11648 if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
11649 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gnutls >= 2.6.6" >&5
11650 $as_echo_n "checking for gnutls >= 2.6.6... " >&6; }
11652 if $PKG_CONFIG --exists "gnutls >= 2.6.6" 2>&5 &&
11653 LIBGNUTLS_CFLAGS
=`$PKG_CONFIG --cflags "gnutls >= 2.6.6" 2>&5` &&
11654 LIBGNUTLS_LIBS
=`$PKG_CONFIG --libs "gnutls >= 2.6.6" 2>&5`; then
11656 LIBGNUTLS_CFLAGS
=`$as_echo "$LIBGNUTLS_CFLAGS" | sed -e 's,///*,/,g'`
11657 LIBGNUTLS_LIBS
=`$as_echo "$LIBGNUTLS_LIBS" | sed -e 's,///*,/,g'`
11658 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes CFLAGS='$LIBGNUTLS_CFLAGS' LIBS='$LIBGNUTLS_LIBS'" >&5
11659 $as_echo "yes CFLAGS='$LIBGNUTLS_CFLAGS' LIBS='$LIBGNUTLS_LIBS'" >&6; }
11662 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11663 $as_echo "no" >&6; }
11664 LIBGNUTLS_CFLAGS
=""
11666 ## If we have a custom action on failure, don't print errors, but
11667 ## do set a variable so people can do so.
11668 LIBGNUTLS_PKG_ERRORS
=`$PKG_CONFIG --errors-to-stdout --print-errors "gnutls >= 2.6.6"`
11675 echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
11676 echo "*** See http://www.freedesktop.org/software/pkgconfig"
11680 if test $succeeded = yes; then
11686 if test "${HAVE_GNUTLS}" = "yes"; then
11688 $as_echo "#define HAVE_GNUTLS 1" >>confdefs.h
11692 CFLAGS
="$CFLAGS $LIBGNUTLS_CFLAGS"
11693 LIBS
="$LIBGNUTLS_LIBS $LIBS"
11694 for ac_func
in gnutls_certificate_set_verify_function
11696 ac_fn_c_check_func
"$LINENO" "gnutls_certificate_set_verify_function" "ac_cv_func_gnutls_certificate_set_verify_function"
11697 if test "x$ac_cv_func_gnutls_certificate_set_verify_function" = x
""yes; then :
11698 cat >>confdefs.h
<<_ACEOF
11699 #define HAVE_GNUTLS_CERTIFICATE_SET_VERIFY_FUNCTION 1
11701 HAVE_GNUTLS_CALLBACK_CERTIFICATE_VERIFY
=yes
11706 if test "${HAVE_GNUTLS_CALLBACK_CERTIFICATE_VERIFY}" = "yes"; then
11708 $as_echo "#define HAVE_GNUTLS_CALLBACK_CERTIFICATE_VERIFY 1" >>confdefs.h
11718 if test x
"${USE_X_TOOLKIT}" = xmaybe ||
test x
"${USE_X_TOOLKIT}" = xLUCID
; then
11719 if test "$with_xaw3d" != no
; then
11720 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for xaw3d" >&5
11721 $as_echo_n "checking for xaw3d... " >&6; }
11722 if test "${emacs_cv_xaw3d+set}" = set; then :
11723 $as_echo_n "(cached) " >&6
11725 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
11726 /* end confdefs.h. */
11728 #include <X11/Intrinsic.h>
11729 #include <X11/Xaw3d/Simple.h>
11738 if ac_fn_c_try_link
"$LINENO"; then :
11739 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for XawScrollbarSetThumb in -lXaw3d" >&5
11740 $as_echo_n "checking for XawScrollbarSetThumb in -lXaw3d... " >&6; }
11741 if test "${ac_cv_lib_Xaw3d_XawScrollbarSetThumb+set}" = set; then :
11742 $as_echo_n "(cached) " >&6
11744 ac_check_lib_save_LIBS
=$LIBS
11745 LIBS
="-lXaw3d $LIBS"
11746 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
11747 /* end confdefs.h. */
11749 /* Override any GCC internal prototype to avoid an error.
11750 Use char because int might match the return type of a GCC
11751 builtin and then its argument prototype would still apply. */
11755 char XawScrollbarSetThumb ();
11759 return XawScrollbarSetThumb ();
11764 if ac_fn_c_try_link
"$LINENO"; then :
11765 ac_cv_lib_Xaw3d_XawScrollbarSetThumb
=yes
11767 ac_cv_lib_Xaw3d_XawScrollbarSetThumb
=no
11769 rm -f core conftest.err conftest.
$ac_objext \
11770 conftest
$ac_exeext conftest.
$ac_ext
11771 LIBS
=$ac_check_lib_save_LIBS
11773 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_Xaw3d_XawScrollbarSetThumb" >&5
11774 $as_echo "$ac_cv_lib_Xaw3d_XawScrollbarSetThumb" >&6; }
11775 if test "x$ac_cv_lib_Xaw3d_XawScrollbarSetThumb" = x
""yes; then :
11784 rm -f core conftest.err conftest.
$ac_objext \
11785 conftest
$ac_exeext conftest.
$ac_ext
11791 if test $emacs_cv_xaw3d = yes; then
11792 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes; using Lucid toolkit" >&5
11793 $as_echo "yes; using Lucid toolkit" >&6; }
11794 USE_X_TOOLKIT
=LUCID
11798 $as_echo "#define HAVE_XAW3D 1" >>confdefs.h
11801 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11802 $as_echo "no" >&6; }
11803 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libXaw" >&5
11804 $as_echo_n "checking for libXaw... " >&6; }
11805 if test "${emacs_cv_xaw+set}" = set; then :
11806 $as_echo_n "(cached) " >&6
11808 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
11809 /* end confdefs.h. */
11811 #include <X11/Intrinsic.h>
11812 #include <X11/Xaw/Simple.h>
11821 if ac_fn_c_try_link
"$LINENO"; then :
11826 rm -f core conftest.err conftest.
$ac_objext \
11827 conftest
$ac_exeext conftest.
$ac_ext
11830 if test $emacs_cv_xaw = yes; then
11831 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes; using Lucid toolkit" >&5
11832 $as_echo "yes; using Lucid toolkit" >&6; }
11833 USE_X_TOOLKIT
=LUCID
11835 elif test x
"${USE_X_TOOLKIT}" = xLUCID
; then
11836 as_fn_error
"Lucid toolkit requires X11/Xaw include files" "$LINENO" 5
11838 as_fn_error
"No X toolkit could be found.
11839 If you are sure you want Emacs compiled without an X toolkit, pass
11840 --with-x-toolkit=no
11841 to configure. Otherwise, install the development libraries for the toolkit
11842 that you want to use (e.g. Gtk+) and re-run configure." "$LINENO" 5
11847 X_TOOLKIT_TYPE
=$USE_X_TOOLKIT
11850 if test "${USE_X_TOOLKIT}" != "none"; then
11851 { $as_echo "$as_me:${as_lineno-$LINENO}: checking X11 toolkit version" >&5
11852 $as_echo_n "checking X11 toolkit version... " >&6; }
11853 if test "${emacs_cv_x11_toolkit_version_6+set}" = set; then :
11854 $as_echo_n "(cached) " >&6
11856 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
11857 /* end confdefs.h. */
11858 #include <X11/Intrinsic.h>
11862 #if XtSpecificationRelease < 6
11870 if ac_fn_c_try_link
"$LINENO"; then :
11871 emacs_cv_x11_toolkit_version_6
=yes
11873 emacs_cv_x11_toolkit_version_6
=no
11875 rm -f core conftest.err conftest.
$ac_objext \
11876 conftest
$ac_exeext conftest.
$ac_ext
11879 HAVE_X11XTR6
=$emacs_cv_x11_toolkit_version_6
11880 if test $emacs_cv_x11_toolkit_version_6 = yes; then
11881 { $as_echo "$as_me:${as_lineno-$LINENO}: result: 6 or newer" >&5
11882 $as_echo "6 or newer" >&6; }
11884 $as_echo "#define HAVE_X11XTR6 1" >>confdefs.h
11886 LIBXTR6
="-lSM -lICE"
11888 ## Use libw.a along with X11R6 Xt.
11889 unixware
) LIBXTR6
="$LIBXTR6 -lw" ;;
11892 { $as_echo "$as_me:${as_lineno-$LINENO}: result: before 6" >&5
11893 $as_echo "before 6" >&6; }
11897 if test x
$HAVE_X11XTR6 = xyes
; then
11898 LIBS
="-lXt -lSM -lICE $LIBS"
11902 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for XmuConvertStandardSelection in -lXmu" >&5
11903 $as_echo_n "checking for XmuConvertStandardSelection in -lXmu... " >&6; }
11904 if test "${ac_cv_lib_Xmu_XmuConvertStandardSelection+set}" = set; then :
11905 $as_echo_n "(cached) " >&6
11907 ac_check_lib_save_LIBS
=$LIBS
11909 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
11910 /* end confdefs.h. */
11912 /* Override any GCC internal prototype to avoid an error.
11913 Use char because int might match the return type of a GCC
11914 builtin and then its argument prototype would still apply. */
11918 char XmuConvertStandardSelection ();
11922 return XmuConvertStandardSelection ();
11927 if ac_fn_c_try_link
"$LINENO"; then :
11928 ac_cv_lib_Xmu_XmuConvertStandardSelection
=yes
11930 ac_cv_lib_Xmu_XmuConvertStandardSelection
=no
11932 rm -f core conftest.err conftest.
$ac_objext \
11933 conftest
$ac_exeext conftest.
$ac_ext
11934 LIBS
=$ac_check_lib_save_LIBS
11936 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_Xmu_XmuConvertStandardSelection" >&5
11937 $as_echo "$ac_cv_lib_Xmu_XmuConvertStandardSelection" >&6; }
11938 if test "x$ac_cv_lib_Xmu_XmuConvertStandardSelection" = x
""yes; then :
11939 cat >>confdefs.h
<<_ACEOF
11940 #define HAVE_LIBXMU 1
11947 test $ac_cv_lib_Xmu_XmuConvertStandardSelection = no
&& LIBS
="$OLDLIBS"
11953 ## These systems don't supply Xmu.
11955 test "X$ac_cv_lib_Xmu_XmuConvertStandardSelection" != "Xyes" && LIBXMU
=
11960 # On Irix 6.5, at least, we need XShapeQueryExtension from -lXext for Xaw3D.
11961 if test "${HAVE_X11}" = "yes"; then
11962 if test "${USE_X_TOOLKIT}" != "none"; then
11963 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for XShapeQueryExtension in -lXext" >&5
11964 $as_echo_n "checking for XShapeQueryExtension in -lXext... " >&6; }
11965 if test "${ac_cv_lib_Xext_XShapeQueryExtension+set}" = set; then :
11966 $as_echo_n "(cached) " >&6
11968 ac_check_lib_save_LIBS
=$LIBS
11969 LIBS
="-lXext $LIBS"
11970 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
11971 /* end confdefs.h. */
11973 /* Override any GCC internal prototype to avoid an error.
11974 Use char because int might match the return type of a GCC
11975 builtin and then its argument prototype would still apply. */
11979 char XShapeQueryExtension ();
11983 return XShapeQueryExtension ();
11988 if ac_fn_c_try_link
"$LINENO"; then :
11989 ac_cv_lib_Xext_XShapeQueryExtension
=yes
11991 ac_cv_lib_Xext_XShapeQueryExtension
=no
11993 rm -f core conftest.err conftest.
$ac_objext \
11994 conftest
$ac_exeext conftest.
$ac_ext
11995 LIBS
=$ac_check_lib_save_LIBS
11997 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_Xext_XShapeQueryExtension" >&5
11998 $as_echo "$ac_cv_lib_Xext_XShapeQueryExtension" >&6; }
11999 if test "x$ac_cv_lib_Xext_XShapeQueryExtension" = x
""yes; then :
12000 cat >>confdefs.h
<<_ACEOF
12001 #define HAVE_LIBXEXT 1
12004 LIBS
="-lXext $LIBS"
12012 if test "${USE_X_TOOLKIT}" = "MOTIF"; then
12013 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Motif version 2.1" >&5
12014 $as_echo_n "checking for Motif version 2.1... " >&6; }
12015 if test "${emacs_cv_motif_version_2_1+set}" = set; then :
12016 $as_echo_n "(cached) " >&6
12018 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
12019 /* end confdefs.h. */
12024 #if XmVERSION > 2 || (XmVERSION == 2 && XmREVISION >= 1)
12027 Motif version prior to 2.1.
12033 if ac_fn_c_try_compile
"$LINENO"; then :
12034 emacs_cv_motif_version_2_1
=yes
12036 emacs_cv_motif_version_2_1
=no
12038 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
12040 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $emacs_cv_motif_version_2_1" >&5
12041 $as_echo "$emacs_cv_motif_version_2_1" >&6; }
12042 if test $emacs_cv_motif_version_2_1 = yes; then
12043 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for XpCreateContext in -lXp" >&5
12044 $as_echo_n "checking for XpCreateContext in -lXp... " >&6; }
12045 if test "${ac_cv_lib_Xp_XpCreateContext+set}" = set; then :
12046 $as_echo_n "(cached) " >&6
12048 ac_check_lib_save_LIBS
=$LIBS
12050 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
12051 /* end confdefs.h. */
12053 /* Override any GCC internal prototype to avoid an error.
12054 Use char because int might match the return type of a GCC
12055 builtin and then its argument prototype would still apply. */
12059 char XpCreateContext ();
12063 return XpCreateContext ();
12068 if ac_fn_c_try_link
"$LINENO"; then :
12069 ac_cv_lib_Xp_XpCreateContext
=yes
12071 ac_cv_lib_Xp_XpCreateContext
=no
12073 rm -f core conftest.err conftest.
$ac_objext \
12074 conftest
$ac_exeext conftest.
$ac_ext
12075 LIBS
=$ac_check_lib_save_LIBS
12077 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_Xp_XpCreateContext" >&5
12078 $as_echo "$ac_cv_lib_Xp_XpCreateContext" >&6; }
12079 if test "x$ac_cv_lib_Xp_XpCreateContext" = x
""yes; then :
12084 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for LessTif where some systems put it" >&5
12085 $as_echo_n "checking for LessTif where some systems put it... " >&6; }
12086 if test "${emacs_cv_lesstif+set}" = set; then :
12087 $as_echo_n "(cached) " >&6
12089 # We put this in CFLAGS temporarily to precede other -I options
12090 # that might be in CFLAGS temporarily.
12091 # We put this in CPPFLAGS where it precedes the other -I options.
12092 OLD_CPPFLAGS
=$CPPFLAGS
12094 CPPFLAGS
="-I/usr/X11R6/LessTif/Motif1.2/include $CPPFLAGS"
12095 CFLAGS
="-I/usr/X11R6/LessTif/Motif1.2/include $CFLAGS"
12096 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
12097 /* end confdefs.h. */
12098 #include </usr/X11R6/LessTif/Motif1.2/include/Xm/Xm.h>
12107 if ac_fn_c_try_compile
"$LINENO"; then :
12108 emacs_cv_lesstif
=yes
12110 emacs_cv_lesstif
=no
12112 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
12114 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $emacs_cv_lesstif" >&5
12115 $as_echo "$emacs_cv_lesstif" >&6; }
12116 if test $emacs_cv_lesstif = yes; then
12117 # Make sure this -I option remains in CPPFLAGS after it is set
12118 # back to REAL_CPPFLAGS.
12119 # There is no need to change REAL_CFLAGS, because REAL_CFLAGS does not
12120 # have those other -I options anyway. Ultimately, having this
12121 # directory ultimately in CPPFLAGS will be enough.
12122 REAL_CPPFLAGS
="-I/usr/X11R6/LessTif/Motif1.2/include $REAL_CPPFLAGS"
12123 LDFLAGS
="-L/usr/X11R6/LessTif/Motif1.2/lib $LDFLAGS"
12126 CPPFLAGS
=$OLD_CPPFLAGS
12129 ac_fn_c_check_header_mongrel
"$LINENO" "Xm/BulletinB.h" "ac_cv_header_Xm_BulletinB_h" "$ac_includes_default"
12130 if test "x$ac_cv_header_Xm_BulletinB_h" = x
""yes; then :
12133 as_fn_error
"Motif toolkit requested but requirements not found." "$LINENO" 5
12140 USE_TOOLKIT_SCROLL_BARS
=no
12141 if test "${with_toolkit_scroll_bars}" != "no"; then
12142 if test "${USE_X_TOOLKIT}" != "none"; then
12143 if test "${USE_X_TOOLKIT}" = "MOTIF"; then
12144 $as_echo "#define USE_TOOLKIT_SCROLL_BARS 1" >>confdefs.h
12147 USE_TOOLKIT_SCROLL_BARS
=yes
12148 elif test "${HAVE_XAW3D}" = "yes" ||
test "${USE_X_TOOLKIT}" = "LUCID"; then
12149 $as_echo "#define USE_TOOLKIT_SCROLL_BARS 1" >>confdefs.h
12151 USE_TOOLKIT_SCROLL_BARS
=yes
12153 elif test "${HAVE_GTK}" = "yes"; then
12154 $as_echo "#define USE_TOOLKIT_SCROLL_BARS 1" >>confdefs.h
12156 USE_TOOLKIT_SCROLL_BARS
=yes
12157 elif test "${HAVE_NS}" = "yes"; then
12158 $as_echo "#define USE_TOOLKIT_SCROLL_BARS 1" >>confdefs.h
12160 USE_TOOLKIT_SCROLL_BARS
=yes
12164 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
12165 /* end confdefs.h. */
12167 #include <X11/Xlib.h>
12168 #include <X11/Xresource.h>
12177 if ac_fn_c_try_compile
"$LINENO"; then :
12180 $as_echo "#define HAVE_XIM 1" >>confdefs.h
12185 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
12188 if test "${with_xim}" != "no"; then
12190 $as_echo "#define USE_XIM 1" >>confdefs.h
12195 if test "${HAVE_XIM}" != "no"; then
12196 late_CFLAGS
=$CFLAGS
12197 if test "$GCC" = yes; then
12198 CFLAGS
="$CFLAGS --pedantic-errors"
12200 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
12201 /* end confdefs.h. */
12203 #include <X11/Xlib.h>
12204 #include <X11/Xresource.h>
12213 XPointer *client_data;
12215 /* If we're not using GCC, it's probably not XFree86, and this is
12216 probably right, but we can't use something like --pedantic-errors. */
12217 extern Bool XRegisterIMInstantiateCallback(Display*, XrmDatabase, char*,
12218 char*, XIMProc, XPointer*);
12220 (void)XRegisterIMInstantiateCallback(display, db, res_name, res_class, callback,
12226 if ac_fn_c_try_compile
"$LINENO"; then :
12227 emacs_cv_arg6_star
=yes
12229 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
12230 if test "$emacs_cv_arg6_star" = yes; then
12231 $as_echo "#define XRegisterIMInstantiateCallback_arg6 XPointer*" >>confdefs.h
12234 $as_echo "#define XRegisterIMInstantiateCallback_arg6 XPointer" >>confdefs.h
12237 CFLAGS
=$late_CFLAGS
12240 ### Start of font-backend (under any platform) section.
12241 # (nothing here yet -- this is a placeholder)
12242 ### End of font-backend (under any platform) section.
12244 ### Start of font-backend (under X11) section.
12245 if test "${HAVE_X11}" = "yes"; then
12249 # Extract the first word of "pkg-config", so it can be a program name with args.
12250 set dummy pkg-config
; ac_word
=$2
12251 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12252 $as_echo_n "checking for $ac_word... " >&6; }
12253 if test "${ac_cv_path_PKG_CONFIG+set}" = set; then :
12254 $as_echo_n "(cached) " >&6
12256 case $PKG_CONFIG in
12258 ac_cv_path_PKG_CONFIG
="$PKG_CONFIG" # Let the user override the test with a path.
12261 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
12262 for as_dir
in $PATH
12265 test -z "$as_dir" && as_dir
=.
12266 for ac_exec_ext
in '' $ac_executable_extensions; do
12267 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
12268 ac_cv_path_PKG_CONFIG
="$as_dir/$ac_word$ac_exec_ext"
12269 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12276 test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG
="no"
12280 PKG_CONFIG
=$ac_cv_path_PKG_CONFIG
12281 if test -n "$PKG_CONFIG"; then
12282 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5
12283 $as_echo "$PKG_CONFIG" >&6; }
12285 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12286 $as_echo "no" >&6; }
12291 if test "$PKG_CONFIG" = "no" ; then
12294 PKG_CONFIG_MIN_VERSION
=0.9.0
12295 if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
12296 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for fontconfig >= 2.2.0" >&5
12297 $as_echo_n "checking for fontconfig >= 2.2.0... " >&6; }
12299 if $PKG_CONFIG --exists "fontconfig >= 2.2.0" 2>&5 &&
12300 FONTCONFIG_CFLAGS
=`$PKG_CONFIG --cflags "fontconfig >= 2.2.0" 2>&5` &&
12301 FONTCONFIG_LIBS
=`$PKG_CONFIG --libs "fontconfig >= 2.2.0" 2>&5`; then
12303 FONTCONFIG_CFLAGS
=`$as_echo "$FONTCONFIG_CFLAGS" | sed -e 's,///*,/,g'`
12304 FONTCONFIG_LIBS
=`$as_echo "$FONTCONFIG_LIBS" | sed -e 's,///*,/,g'`
12305 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes CFLAGS='$FONTCONFIG_CFLAGS' LIBS='$FONTCONFIG_LIBS'" >&5
12306 $as_echo "yes CFLAGS='$FONTCONFIG_CFLAGS' LIBS='$FONTCONFIG_LIBS'" >&6; }
12309 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12310 $as_echo "no" >&6; }
12311 FONTCONFIG_CFLAGS
=""
12313 ## If we have a custom action on failure, don't print errors, but
12314 ## do set a variable so people can do so.
12315 FONTCONFIG_PKG_ERRORS
=`$PKG_CONFIG --errors-to-stdout --print-errors "fontconfig >= 2.2.0"`
12322 echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
12323 echo "*** See http://www.freedesktop.org/software/pkgconfig"
12327 if test $succeeded = yes; then
12334 ## Use -lXft if available, unless `--with-xft=no'.
12336 if test "${HAVE_FC}" = "no" ||
test "x${with_x}" = "xno"; then
12339 if test "x${with_xft}" != "xno"; then
12344 # Extract the first word of "pkg-config", so it can be a program name with args.
12345 set dummy pkg-config
; ac_word
=$2
12346 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12347 $as_echo_n "checking for $ac_word... " >&6; }
12348 if test "${ac_cv_path_PKG_CONFIG+set}" = set; then :
12349 $as_echo_n "(cached) " >&6
12351 case $PKG_CONFIG in
12353 ac_cv_path_PKG_CONFIG
="$PKG_CONFIG" # Let the user override the test with a path.
12356 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
12357 for as_dir
in $PATH
12360 test -z "$as_dir" && as_dir
=.
12361 for ac_exec_ext
in '' $ac_executable_extensions; do
12362 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
12363 ac_cv_path_PKG_CONFIG
="$as_dir/$ac_word$ac_exec_ext"
12364 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12371 test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG
="no"
12375 PKG_CONFIG
=$ac_cv_path_PKG_CONFIG
12376 if test -n "$PKG_CONFIG"; then
12377 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5
12378 $as_echo "$PKG_CONFIG" >&6; }
12380 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12381 $as_echo "no" >&6; }
12386 if test "$PKG_CONFIG" = "no" ; then
12389 PKG_CONFIG_MIN_VERSION
=0.9.0
12390 if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
12391 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for xft >= 0.13.0" >&5
12392 $as_echo_n "checking for xft >= 0.13.0... " >&6; }
12394 if $PKG_CONFIG --exists "xft >= 0.13.0" 2>&5 &&
12395 XFT_CFLAGS
=`$PKG_CONFIG --cflags "xft >= 0.13.0" 2>&5` &&
12396 XFT_LIBS
=`$PKG_CONFIG --libs "xft >= 0.13.0" 2>&5`; then
12398 XFT_CFLAGS
=`$as_echo "$XFT_CFLAGS" | sed -e 's,///*,/,g'`
12399 XFT_LIBS
=`$as_echo "$XFT_LIBS" | sed -e 's,///*,/,g'`
12400 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes CFLAGS='$XFT_CFLAGS' LIBS='$XFT_LIBS'" >&5
12401 $as_echo "yes CFLAGS='$XFT_CFLAGS' LIBS='$XFT_LIBS'" >&6; }
12404 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12405 $as_echo "no" >&6; }
12408 ## If we have a custom action on failure, don't print errors, but
12409 ## do set a variable so people can do so.
12410 XFT_PKG_ERRORS
=`$PKG_CONFIG --errors-to-stdout --print-errors "xft >= 0.13.0"`
12417 echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
12418 echo "*** See http://www.freedesktop.org/software/pkgconfig"
12422 if test $succeeded = yes; then
12428 ## Because xftfont.c uses XRenderQueryExtension, we also
12429 ## need to link to -lXrender.
12431 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for XRenderQueryExtension in -lXrender" >&5
12432 $as_echo_n "checking for XRenderQueryExtension in -lXrender... " >&6; }
12433 if test "${ac_cv_lib_Xrender_XRenderQueryExtension+set}" = set; then :
12434 $as_echo_n "(cached) " >&6
12436 ac_check_lib_save_LIBS
=$LIBS
12437 LIBS
="-lXrender $LIBS"
12438 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
12439 /* end confdefs.h. */
12441 /* Override any GCC internal prototype to avoid an error.
12442 Use char because int might match the return type of a GCC
12443 builtin and then its argument prototype would still apply. */
12447 char XRenderQueryExtension ();
12451 return XRenderQueryExtension ();
12456 if ac_fn_c_try_link
"$LINENO"; then :
12457 ac_cv_lib_Xrender_XRenderQueryExtension
=yes
12459 ac_cv_lib_Xrender_XRenderQueryExtension
=no
12461 rm -f core conftest.err conftest.
$ac_objext \
12462 conftest
$ac_exeext conftest.
$ac_ext
12463 LIBS
=$ac_check_lib_save_LIBS
12465 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_Xrender_XRenderQueryExtension" >&5
12466 $as_echo "$ac_cv_lib_Xrender_XRenderQueryExtension" >&6; }
12467 if test "x$ac_cv_lib_Xrender_XRenderQueryExtension" = x
""yes; then :
12471 if test "$HAVE_XFT" != no
&& test "$HAVE_XRENDER" != no
; then
12472 OLD_CPPFLAGS
="$CPPFLAGS"
12473 OLD_CFLAGS
="$CFLAGS"
12475 CPPFLAGS
="$CPPFLAGS $XFT_CFLAGS"
12476 CFLAGS
="$CFLAGS $XFT_CFLAGS"
12477 XFT_LIBS
="-lXrender $XFT_LIBS"
12478 LIBS
="$XFT_LIBS $LIBS"
12479 ac_fn_c_check_header_mongrel
"$LINENO" "X11/Xft/Xft.h" "ac_cv_header_X11_Xft_Xft_h" "$ac_includes_default"
12480 if test "x$ac_cv_header_X11_Xft_Xft_h" = x
""yes; then :
12481 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for XftFontOpen in -lXft" >&5
12482 $as_echo_n "checking for XftFontOpen in -lXft... " >&6; }
12483 if test "${ac_cv_lib_Xft_XftFontOpen+set}" = set; then :
12484 $as_echo_n "(cached) " >&6
12486 ac_check_lib_save_LIBS
=$LIBS
12487 LIBS
="-lXft $XFT_LIBS $LIBS"
12488 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
12489 /* end confdefs.h. */
12491 /* Override any GCC internal prototype to avoid an error.
12492 Use char because int might match the return type of a GCC
12493 builtin and then its argument prototype would still apply. */
12497 char XftFontOpen ();
12501 return XftFontOpen ();
12506 if ac_fn_c_try_link
"$LINENO"; then :
12507 ac_cv_lib_Xft_XftFontOpen
=yes
12509 ac_cv_lib_Xft_XftFontOpen
=no
12511 rm -f core conftest.err conftest.
$ac_objext \
12512 conftest
$ac_exeext conftest.
$ac_ext
12513 LIBS
=$ac_check_lib_save_LIBS
12515 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_Xft_XftFontOpen" >&5
12516 $as_echo "$ac_cv_lib_Xft_XftFontOpen" >&6; }
12517 if test "x$ac_cv_lib_Xft_XftFontOpen" = x
""yes; then :
12525 if test "${HAVE_XFT}" = "yes"; then
12527 $as_echo "#define HAVE_XFT 1" >>confdefs.h
12530 C_SWITCH_X_SITE
="$C_SWITCH_X_SITE $XFT_CFLAGS"
12532 CPPFLAGS
="$OLD_CPPFLAGS"
12533 CFLAGS
="$OLD_CFLAGS"
12535 fi # "${HAVE_XFT}" = "yes"
12536 fi # "$HAVE_XFT" != no
12537 fi # "x${with_xft}" != "xno"
12539 ## We used to allow building with FreeType and without Xft.
12540 ## However, the ftx font backend driver is not in good shape.
12541 if test "$HAVE_XFT" != "yes"; then
12548 # Extract the first word of "pkg-config", so it can be a program name with args.
12549 set dummy pkg-config
; ac_word
=$2
12550 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12551 $as_echo_n "checking for $ac_word... " >&6; }
12552 if test "${ac_cv_path_PKG_CONFIG+set}" = set; then :
12553 $as_echo_n "(cached) " >&6
12555 case $PKG_CONFIG in
12557 ac_cv_path_PKG_CONFIG
="$PKG_CONFIG" # Let the user override the test with a path.
12560 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
12561 for as_dir
in $PATH
12564 test -z "$as_dir" && as_dir
=.
12565 for ac_exec_ext
in '' $ac_executable_extensions; do
12566 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
12567 ac_cv_path_PKG_CONFIG
="$as_dir/$ac_word$ac_exec_ext"
12568 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12575 test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG
="no"
12579 PKG_CONFIG
=$ac_cv_path_PKG_CONFIG
12580 if test -n "$PKG_CONFIG"; then
12581 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5
12582 $as_echo "$PKG_CONFIG" >&6; }
12584 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12585 $as_echo "no" >&6; }
12590 if test "$PKG_CONFIG" = "no" ; then
12593 PKG_CONFIG_MIN_VERSION
=0.9.0
12594 if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
12595 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for freetype2" >&5
12596 $as_echo_n "checking for freetype2... " >&6; }
12598 if $PKG_CONFIG --exists "freetype2" 2>&5 &&
12599 FREETYPE_CFLAGS
=`$PKG_CONFIG --cflags "freetype2" 2>&5` &&
12600 FREETYPE_LIBS
=`$PKG_CONFIG --libs "freetype2" 2>&5`; then
12602 FREETYPE_CFLAGS
=`$as_echo "$FREETYPE_CFLAGS" | sed -e 's,///*,/,g'`
12603 FREETYPE_LIBS
=`$as_echo "$FREETYPE_LIBS" | sed -e 's,///*,/,g'`
12604 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes CFLAGS='$FREETYPE_CFLAGS' LIBS='$FREETYPE_LIBS'" >&5
12605 $as_echo "yes CFLAGS='$FREETYPE_CFLAGS' LIBS='$FREETYPE_LIBS'" >&6; }
12608 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12609 $as_echo "no" >&6; }
12612 ## If we have a custom action on failure, don't print errors, but
12613 ## do set a variable so people can do so.
12614 FREETYPE_PKG_ERRORS
=`$PKG_CONFIG --errors-to-stdout --print-errors "freetype2"`
12621 echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
12622 echo "*** See http://www.freedesktop.org/software/pkgconfig"
12626 if test $succeeded = yes; then
12633 test "$HAVE_FREETYPE" = "no" && as_fn_error
"libxft requires libfreetype" "$LINENO" 5
12637 if test "${HAVE_FREETYPE}" = "yes"; then
12639 $as_echo "#define HAVE_FREETYPE 1" >>confdefs.h
12641 if test "${with_libotf}" != "no"; then
12645 # Extract the first word of "pkg-config", so it can be a program name with args.
12646 set dummy pkg-config
; ac_word
=$2
12647 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12648 $as_echo_n "checking for $ac_word... " >&6; }
12649 if test "${ac_cv_path_PKG_CONFIG+set}" = set; then :
12650 $as_echo_n "(cached) " >&6
12652 case $PKG_CONFIG in
12654 ac_cv_path_PKG_CONFIG
="$PKG_CONFIG" # Let the user override the test with a path.
12657 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
12658 for as_dir
in $PATH
12661 test -z "$as_dir" && as_dir
=.
12662 for ac_exec_ext
in '' $ac_executable_extensions; do
12663 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
12664 ac_cv_path_PKG_CONFIG
="$as_dir/$ac_word$ac_exec_ext"
12665 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12672 test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG
="no"
12676 PKG_CONFIG
=$ac_cv_path_PKG_CONFIG
12677 if test -n "$PKG_CONFIG"; then
12678 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5
12679 $as_echo "$PKG_CONFIG" >&6; }
12681 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12682 $as_echo "no" >&6; }
12687 if test "$PKG_CONFIG" = "no" ; then
12690 PKG_CONFIG_MIN_VERSION
=0.9.0
12691 if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
12692 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libotf" >&5
12693 $as_echo_n "checking for libotf... " >&6; }
12695 if $PKG_CONFIG --exists "libotf" 2>&5 &&
12696 LIBOTF_CFLAGS
=`$PKG_CONFIG --cflags "libotf" 2>&5` &&
12697 LIBOTF_LIBS
=`$PKG_CONFIG --libs "libotf" 2>&5`; then
12699 LIBOTF_CFLAGS
=`$as_echo "$LIBOTF_CFLAGS" | sed -e 's,///*,/,g'`
12700 LIBOTF_LIBS
=`$as_echo "$LIBOTF_LIBS" | sed -e 's,///*,/,g'`
12701 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes CFLAGS='$LIBOTF_CFLAGS' LIBS='$LIBOTF_LIBS'" >&5
12702 $as_echo "yes CFLAGS='$LIBOTF_CFLAGS' LIBS='$LIBOTF_LIBS'" >&6; }
12705 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12706 $as_echo "no" >&6; }
12709 ## If we have a custom action on failure, don't print errors, but
12710 ## do set a variable so people can do so.
12711 LIBOTF_PKG_ERRORS
=`$PKG_CONFIG --errors-to-stdout --print-errors "libotf"`
12718 echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
12719 echo "*** See http://www.freedesktop.org/software/pkgconfig"
12723 if test $succeeded = yes; then
12729 if test "$HAVE_LIBOTF" = "yes"; then
12731 $as_echo "#define HAVE_LIBOTF 1" >>confdefs.h
12733 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for OTF_get_variation_glyphs in -lotf" >&5
12734 $as_echo_n "checking for OTF_get_variation_glyphs in -lotf... " >&6; }
12735 if test "${ac_cv_lib_otf_OTF_get_variation_glyphs+set}" = set; then :
12736 $as_echo_n "(cached) " >&6
12738 ac_check_lib_save_LIBS
=$LIBS
12740 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
12741 /* end confdefs.h. */
12743 /* Override any GCC internal prototype to avoid an error.
12744 Use char because int might match the return type of a GCC
12745 builtin and then its argument prototype would still apply. */
12749 char OTF_get_variation_glyphs ();
12753 return OTF_get_variation_glyphs ();
12758 if ac_fn_c_try_link
"$LINENO"; then :
12759 ac_cv_lib_otf_OTF_get_variation_glyphs
=yes
12761 ac_cv_lib_otf_OTF_get_variation_glyphs
=no
12763 rm -f core conftest.err conftest.
$ac_objext \
12764 conftest
$ac_exeext conftest.
$ac_ext
12765 LIBS
=$ac_check_lib_save_LIBS
12767 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_otf_OTF_get_variation_glyphs" >&5
12768 $as_echo "$ac_cv_lib_otf_OTF_get_variation_glyphs" >&6; }
12769 if test "x$ac_cv_lib_otf_OTF_get_variation_glyphs" = x
""yes; then :
12770 HAVE_OTF_GET_VARIATION_GLYPHS
=yes
12772 HAVE_OTF_GET_VARIATION_GLYPHS
=no
12775 if test "${HAVE_OTF_GET_VARIATION_GLYPHS}" = "yes"; then
12777 $as_echo "#define HAVE_OTF_GET_VARIATION_GLYPHS 1" >>confdefs.h
12785 if test "${HAVE_LIBOTF}" = yes; then
12786 if test "${with_m17n_flt}" != "no"; then
12790 # Extract the first word of "pkg-config", so it can be a program name with args.
12791 set dummy pkg-config
; ac_word
=$2
12792 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12793 $as_echo_n "checking for $ac_word... " >&6; }
12794 if test "${ac_cv_path_PKG_CONFIG+set}" = set; then :
12795 $as_echo_n "(cached) " >&6
12797 case $PKG_CONFIG in
12799 ac_cv_path_PKG_CONFIG
="$PKG_CONFIG" # Let the user override the test with a path.
12802 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
12803 for as_dir
in $PATH
12806 test -z "$as_dir" && as_dir
=.
12807 for ac_exec_ext
in '' $ac_executable_extensions; do
12808 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
12809 ac_cv_path_PKG_CONFIG
="$as_dir/$ac_word$ac_exec_ext"
12810 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12817 test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG
="no"
12821 PKG_CONFIG
=$ac_cv_path_PKG_CONFIG
12822 if test -n "$PKG_CONFIG"; then
12823 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5
12824 $as_echo "$PKG_CONFIG" >&6; }
12826 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12827 $as_echo "no" >&6; }
12832 if test "$PKG_CONFIG" = "no" ; then
12835 PKG_CONFIG_MIN_VERSION
=0.9.0
12836 if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
12837 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for m17n-flt" >&5
12838 $as_echo_n "checking for m17n-flt... " >&6; }
12840 if $PKG_CONFIG --exists "m17n-flt" 2>&5 &&
12841 M17N_FLT_CFLAGS
=`$PKG_CONFIG --cflags "m17n-flt" 2>&5` &&
12842 M17N_FLT_LIBS
=`$PKG_CONFIG --libs "m17n-flt" 2>&5`; then
12844 M17N_FLT_CFLAGS
=`$as_echo "$M17N_FLT_CFLAGS" | sed -e 's,///*,/,g'`
12845 M17N_FLT_LIBS
=`$as_echo "$M17N_FLT_LIBS" | sed -e 's,///*,/,g'`
12846 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes CFLAGS='$M17N_FLT_CFLAGS' LIBS='$M17N_FLT_LIBS'" >&5
12847 $as_echo "yes CFLAGS='$M17N_FLT_CFLAGS' LIBS='$M17N_FLT_LIBS'" >&6; }
12850 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12851 $as_echo "no" >&6; }
12854 ## If we have a custom action on failure, don't print errors, but
12855 ## do set a variable so people can do so.
12856 M17N_FLT_PKG_ERRORS
=`$PKG_CONFIG --errors-to-stdout --print-errors "m17n-flt"`
12863 echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
12864 echo "*** See http://www.freedesktop.org/software/pkgconfig"
12868 if test $succeeded = yes; then
12874 if test "$HAVE_M17N_FLT" = "yes"; then
12876 $as_echo "#define HAVE_M17N_FLT 1" >>confdefs.h
12888 ### End of font-backend (under X11) section.
12899 ### Use -lXpm if available, unless `--with-xpm=no'.
12902 if test "${HAVE_X11}" = "yes"; then
12903 if test "${with_xpm}" != "no"; then
12904 ac_fn_c_check_header_mongrel
"$LINENO" "X11/xpm.h" "ac_cv_header_X11_xpm_h" "$ac_includes_default"
12905 if test "x$ac_cv_header_X11_xpm_h" = x
""yes; then :
12906 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for XpmReadFileToPixmap in -lXpm" >&5
12907 $as_echo_n "checking for XpmReadFileToPixmap in -lXpm... " >&6; }
12908 if test "${ac_cv_lib_Xpm_XpmReadFileToPixmap+set}" = set; then :
12909 $as_echo_n "(cached) " >&6
12911 ac_check_lib_save_LIBS
=$LIBS
12912 LIBS
="-lXpm -lX11 $LIBS"
12913 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
12914 /* end confdefs.h. */
12916 /* Override any GCC internal prototype to avoid an error.
12917 Use char because int might match the return type of a GCC
12918 builtin and then its argument prototype would still apply. */
12922 char XpmReadFileToPixmap ();
12926 return XpmReadFileToPixmap ();
12931 if ac_fn_c_try_link
"$LINENO"; then :
12932 ac_cv_lib_Xpm_XpmReadFileToPixmap
=yes
12934 ac_cv_lib_Xpm_XpmReadFileToPixmap
=no
12936 rm -f core conftest.err conftest.
$ac_objext \
12937 conftest
$ac_exeext conftest.
$ac_ext
12938 LIBS
=$ac_check_lib_save_LIBS
12940 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_Xpm_XpmReadFileToPixmap" >&5
12941 $as_echo "$ac_cv_lib_Xpm_XpmReadFileToPixmap" >&6; }
12942 if test "x$ac_cv_lib_Xpm_XpmReadFileToPixmap" = x
""yes; then :
12949 if test "${HAVE_XPM}" = "yes"; then
12950 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for XpmReturnAllocPixels preprocessor define" >&5
12951 $as_echo_n "checking for XpmReturnAllocPixels preprocessor define... " >&6; }
12952 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
12953 /* end confdefs.h. */
12954 #include "X11/xpm.h"
12955 #ifndef XpmReturnAllocPixels
12956 no_return_alloc_pixels
12960 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
12961 $EGREP "no_return_alloc_pixels" >/dev
/null
2>&1; then :
12969 if test "${HAVE_XPM}" = "yes"; then
12970 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
12971 $as_echo "yes" >&6; }
12973 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12974 $as_echo "no" >&6; }
12979 if test "${HAVE_XPM}" = "yes"; then
12981 $as_echo "#define HAVE_XPM 1" >>confdefs.h
12988 ### Use -ljpeg if available, unless `--with-jpeg=no'.
12991 if test "${HAVE_X11}" = "yes"; then
12992 if test "${with_jpeg}" != "no"; then
12993 ac_fn_c_check_header_mongrel
"$LINENO" "jerror.h" "ac_cv_header_jerror_h" "$ac_includes_default"
12994 if test "x$ac_cv_header_jerror_h" = x
""yes; then :
12995 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for jpeg_destroy_compress in -ljpeg" >&5
12996 $as_echo_n "checking for jpeg_destroy_compress in -ljpeg... " >&6; }
12997 if test "${ac_cv_lib_jpeg_jpeg_destroy_compress+set}" = set; then :
12998 $as_echo_n "(cached) " >&6
13000 ac_check_lib_save_LIBS
=$LIBS
13001 LIBS
="-ljpeg $LIBS"
13002 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
13003 /* end confdefs.h. */
13005 /* Override any GCC internal prototype to avoid an error.
13006 Use char because int might match the return type of a GCC
13007 builtin and then its argument prototype would still apply. */
13011 char jpeg_destroy_compress ();
13015 return jpeg_destroy_compress ();
13020 if ac_fn_c_try_link
"$LINENO"; then :
13021 ac_cv_lib_jpeg_jpeg_destroy_compress
=yes
13023 ac_cv_lib_jpeg_jpeg_destroy_compress
=no
13025 rm -f core conftest.err conftest.
$ac_objext \
13026 conftest
$ac_exeext conftest.
$ac_ext
13027 LIBS
=$ac_check_lib_save_LIBS
13029 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_jpeg_jpeg_destroy_compress" >&5
13030 $as_echo "$ac_cv_lib_jpeg_jpeg_destroy_compress" >&6; }
13031 if test "x$ac_cv_lib_jpeg_jpeg_destroy_compress" = x
""yes; then :
13040 if test "${HAVE_JPEG}" = "yes"; then
13041 $as_echo "#define HAVE_JPEG 1" >>confdefs.h
13043 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
13044 /* end confdefs.h. */
13045 #include <jpeglib.h>
13046 version=JPEG_LIB_VERSION
13049 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
13050 $EGREP "version= *(6[2-9]|[7-9][0-9])" >/dev
/null
2>&1; then :
13051 $as_echo "#define HAVE_JPEG 1" >>confdefs.h
13054 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: libjpeg found, but not version 6b or later" >&5
13055 $as_echo "$as_me: WARNING: libjpeg found, but not version 6b or later" >&2;}
13061 if test "${HAVE_JPEG}" = "yes"; then
13067 ### Use -lpng if available, unless `--with-png=no'.
13070 if test "${HAVE_X11}" = "yes"; then
13071 if test "${with_png}" != "no"; then
13072 # Debian unstable as of July 2003 has multiple libpngs, and puts png.h
13073 # in /usr/include/libpng.
13074 for ac_header
in png.h libpng
/png.h
13076 as_ac_Header
=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
13077 ac_fn_c_check_header_mongrel
"$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
13078 eval as_val
=\$
$as_ac_Header
13079 if test "x$as_val" = x
""yes; then :
13080 cat >>confdefs.h
<<_ACEOF
13081 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
13088 if test "$ac_cv_header_png_h" = yes ||
test "$ac_cv_header_libpng_png_h" = yes ; then
13089 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for png_get_channels in -lpng" >&5
13090 $as_echo_n "checking for png_get_channels in -lpng... " >&6; }
13091 if test "${ac_cv_lib_png_png_get_channels+set}" = set; then :
13092 $as_echo_n "(cached) " >&6
13094 ac_check_lib_save_LIBS
=$LIBS
13095 LIBS
="-lpng -lz -lm $LIBS"
13096 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
13097 /* end confdefs.h. */
13099 /* Override any GCC internal prototype to avoid an error.
13100 Use char because int might match the return type of a GCC
13101 builtin and then its argument prototype would still apply. */
13105 char png_get_channels ();
13109 return png_get_channels ();
13114 if ac_fn_c_try_link
"$LINENO"; then :
13115 ac_cv_lib_png_png_get_channels
=yes
13117 ac_cv_lib_png_png_get_channels
=no
13119 rm -f core conftest.err conftest.
$ac_objext \
13120 conftest
$ac_exeext conftest.
$ac_ext
13121 LIBS
=$ac_check_lib_save_LIBS
13123 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_png_png_get_channels" >&5
13124 $as_echo "$ac_cv_lib_png_png_get_channels" >&6; }
13125 if test "x$ac_cv_lib_png_png_get_channels" = x
""yes; then :
13132 if test "${HAVE_PNG}" = "yes"; then
13134 $as_echo "#define HAVE_PNG 1" >>confdefs.h
13136 LIBPNG
="-lpng -lz -lm"
13141 ### Use -ltiff if available, unless `--with-tiff=no'.
13144 if test "${HAVE_X11}" = "yes"; then
13145 if test "${with_tiff}" != "no"; then
13146 ac_fn_c_check_header_mongrel
"$LINENO" "tiffio.h" "ac_cv_header_tiffio_h" "$ac_includes_default"
13147 if test "x$ac_cv_header_tiffio_h" = x
""yes; then :
13149 # At least one tiff package requires the jpeg library.
13150 if test "${HAVE_JPEG}" = yes; then tifflibs
="-ljpeg $tifflibs"; fi
13151 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for TIFFGetVersion in -ltiff" >&5
13152 $as_echo_n "checking for TIFFGetVersion in -ltiff... " >&6; }
13153 if test "${ac_cv_lib_tiff_TIFFGetVersion+set}" = set; then :
13154 $as_echo_n "(cached) " >&6
13156 ac_check_lib_save_LIBS
=$LIBS
13157 LIBS
="-ltiff $tifflibs $LIBS"
13158 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
13159 /* end confdefs.h. */
13161 /* Override any GCC internal prototype to avoid an error.
13162 Use char because int might match the return type of a GCC
13163 builtin and then its argument prototype would still apply. */
13167 char TIFFGetVersion ();
13171 return TIFFGetVersion ();
13176 if ac_fn_c_try_link
"$LINENO"; then :
13177 ac_cv_lib_tiff_TIFFGetVersion
=yes
13179 ac_cv_lib_tiff_TIFFGetVersion
=no
13181 rm -f core conftest.err conftest.
$ac_objext \
13182 conftest
$ac_exeext conftest.
$ac_ext
13183 LIBS
=$ac_check_lib_save_LIBS
13185 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_tiff_TIFFGetVersion" >&5
13186 $as_echo "$ac_cv_lib_tiff_TIFFGetVersion" >&6; }
13187 if test "x$ac_cv_lib_tiff_TIFFGetVersion" = x
""yes; then :
13196 if test "${HAVE_TIFF}" = "yes"; then
13198 $as_echo "#define HAVE_TIFF 1" >>confdefs.h
13205 ### Use -lgif or -lungif if available, unless `--with-gif=no'.
13208 if test "${HAVE_X11}" = "yes" && test "${with_gif}" != "no"; then
13209 ac_fn_c_check_header_mongrel
"$LINENO" "gif_lib.h" "ac_cv_header_gif_lib_h" "$ac_includes_default"
13210 if test "x$ac_cv_header_gif_lib_h" = x
""yes; then :
13211 # EGifPutExtensionLast only exists from version libungif-4.1.0b1.
13212 # Earlier versions can crash Emacs.
13213 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for EGifPutExtensionLast in -lgif" >&5
13214 $as_echo_n "checking for EGifPutExtensionLast in -lgif... " >&6; }
13215 if test "${ac_cv_lib_gif_EGifPutExtensionLast+set}" = set; then :
13216 $as_echo_n "(cached) " >&6
13218 ac_check_lib_save_LIBS
=$LIBS
13220 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
13221 /* end confdefs.h. */
13223 /* Override any GCC internal prototype to avoid an error.
13224 Use char because int might match the return type of a GCC
13225 builtin and then its argument prototype would still apply. */
13229 char EGifPutExtensionLast ();
13233 return EGifPutExtensionLast ();
13238 if ac_fn_c_try_link
"$LINENO"; then :
13239 ac_cv_lib_gif_EGifPutExtensionLast
=yes
13241 ac_cv_lib_gif_EGifPutExtensionLast
=no
13243 rm -f core conftest.err conftest.
$ac_objext \
13244 conftest
$ac_exeext conftest.
$ac_ext
13245 LIBS
=$ac_check_lib_save_LIBS
13247 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_gif_EGifPutExtensionLast" >&5
13248 $as_echo "$ac_cv_lib_gif_EGifPutExtensionLast" >&6; }
13249 if test "x$ac_cv_lib_gif_EGifPutExtensionLast" = x
""yes; then :
13259 if test "$HAVE_GIF" = yes; then
13261 elif test "$HAVE_GIF" = maybe
; then
13262 # If gif_lib.h but no libgif, try libungif.
13263 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for EGifPutExtensionLast in -lungif" >&5
13264 $as_echo_n "checking for EGifPutExtensionLast in -lungif... " >&6; }
13265 if test "${ac_cv_lib_ungif_EGifPutExtensionLast+set}" = set; then :
13266 $as_echo_n "(cached) " >&6
13268 ac_check_lib_save_LIBS
=$LIBS
13269 LIBS
="-lungif $LIBS"
13270 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
13271 /* end confdefs.h. */
13273 /* Override any GCC internal prototype to avoid an error.
13274 Use char because int might match the return type of a GCC
13275 builtin and then its argument prototype would still apply. */
13279 char EGifPutExtensionLast ();
13283 return EGifPutExtensionLast ();
13288 if ac_fn_c_try_link
"$LINENO"; then :
13289 ac_cv_lib_ungif_EGifPutExtensionLast
=yes
13291 ac_cv_lib_ungif_EGifPutExtensionLast
=no
13293 rm -f core conftest.err conftest.
$ac_objext \
13294 conftest
$ac_exeext conftest.
$ac_ext
13295 LIBS
=$ac_check_lib_save_LIBS
13297 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_ungif_EGifPutExtensionLast" >&5
13298 $as_echo "$ac_cv_lib_ungif_EGifPutExtensionLast" >&6; }
13299 if test "x$ac_cv_lib_ungif_EGifPutExtensionLast" = x
""yes; then :
13305 test "$HAVE_GIF" = yes && LIBGIF
=-lungif
13308 if test "${HAVE_GIF}" = "yes"; then
13310 $as_echo "#define HAVE_GIF 1" >>confdefs.h
13316 if test "${HAVE_X11}" = "yes"; then
13319 test "${with_xpm}" != "no" && test "${HAVE_XPM}" != "yes" &&
13320 MISSING
="libXpm" && WITH_NO
="--with-xpm=no"
13321 test "${with_jpeg}" != "no" && test "${HAVE_JPEG}" != "yes" &&
13322 MISSING
="$MISSING libjpeg" && WITH_NO
="$WITH_NO --with-jpeg=no"
13323 test "${with_png}" != "no" && test "${HAVE_PNG}" != "yes" &&
13324 MISSING
="$MISSING libpng" && WITH_NO
="$WITH_NO --with-png=no"
13325 test "${with_gif}" != "no" && test "${HAVE_GIF}" != "yes" &&
13326 MISSING
="$MISSING libgif/libungif" && WITH_NO
="$WITH_NO --with-gif=no"
13327 test "${with_tiff}" != "no" && test "${HAVE_TIFF}" != "yes" &&
13328 MISSING
="$MISSING libtiff" && WITH_NO
="$WITH_NO --with-tiff=no"
13330 if test "X${MISSING}" != X
; then
13331 as_fn_error
"The following required libraries were not found:
13333 Maybe some development libraries/packages are missing?
13334 If you don't want to link with them give
13336 as options to configure" "$LINENO" 5
13340 ### Use -lgpm if available, unless `--with-gpm=no'.
13343 if test "${with_gpm}" != "no"; then
13344 ac_fn_c_check_header_mongrel
"$LINENO" "gpm.h" "ac_cv_header_gpm_h" "$ac_includes_default"
13345 if test "x$ac_cv_header_gpm_h" = x
""yes; then :
13346 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Gpm_Open in -lgpm" >&5
13347 $as_echo_n "checking for Gpm_Open in -lgpm... " >&6; }
13348 if test "${ac_cv_lib_gpm_Gpm_Open+set}" = set; then :
13349 $as_echo_n "(cached) " >&6
13351 ac_check_lib_save_LIBS
=$LIBS
13353 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
13354 /* end confdefs.h. */
13356 /* Override any GCC internal prototype to avoid an error.
13357 Use char because int might match the return type of a GCC
13358 builtin and then its argument prototype would still apply. */
13366 return Gpm_Open ();
13371 if ac_fn_c_try_link
"$LINENO"; then :
13372 ac_cv_lib_gpm_Gpm_Open
=yes
13374 ac_cv_lib_gpm_Gpm_Open
=no
13376 rm -f core conftest.err conftest.
$ac_objext \
13377 conftest
$ac_exeext conftest.
$ac_ext
13378 LIBS
=$ac_check_lib_save_LIBS
13380 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_gpm_Gpm_Open" >&5
13381 $as_echo "$ac_cv_lib_gpm_Gpm_Open" >&6; }
13382 if test "x$ac_cv_lib_gpm_Gpm_Open" = x
""yes; then :
13390 if test "${HAVE_GPM}" = "yes"; then
13392 $as_echo "#define HAVE_GPM 1" >>confdefs.h
13399 ac_fn_c_check_header_mongrel
"$LINENO" "malloc/malloc.h" "ac_cv_header_malloc_malloc_h" "$ac_includes_default"
13400 if test "x$ac_cv_header_malloc_malloc_h" = x
""yes; then :
13402 $as_echo "#define HAVE_MALLOC_MALLOC_H 1" >>confdefs.h
13409 ### Use NeXTstep API to implement GUI.
13410 if test "${HAVE_NS}" = "yes"; then
13412 $as_echo "#define HAVE_NS 1" >>confdefs.h
13414 if test "${NS_IMPL_COCOA}" = "yes"; then
13416 $as_echo "#define NS_IMPL_COCOA 1" >>confdefs.h
13419 if test "${NS_IMPL_GNUSTEP}" = "yes"; then
13421 $as_echo "#define NS_IMPL_GNUSTEP 1" >>confdefs.h
13423 # See also .m.o rule in Makefile.in */
13424 # FIXME: are all these flags really needed? Document here why. */
13425 GNUSTEP_CFLAGS
="-D_REENTRANT -fPIC -fno-strict-aliasing -I${GNUSTEP_SYSTEM_HEADERS} ${GNUSTEP_LOCAL_HEADERS}"
13426 ## Extra CFLAGS applied to src/*.m files.
13427 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"
13429 # We also have mouse menus.
13435 ### Use session management (-lSM -lICE) if available
13438 if test "${HAVE_X11}" = "yes"; then
13439 ac_fn_c_check_header_mongrel
"$LINENO" "X11/SM/SMlib.h" "ac_cv_header_X11_SM_SMlib_h" "$ac_includes_default"
13440 if test "x$ac_cv_header_X11_SM_SMlib_h" = x
""yes; then :
13441 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for SmcOpenConnection in -lSM" >&5
13442 $as_echo_n "checking for SmcOpenConnection in -lSM... " >&6; }
13443 if test "${ac_cv_lib_SM_SmcOpenConnection+set}" = set; then :
13444 $as_echo_n "(cached) " >&6
13446 ac_check_lib_save_LIBS
=$LIBS
13447 LIBS
="-lSM -lICE $LIBS"
13448 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
13449 /* end confdefs.h. */
13451 /* Override any GCC internal prototype to avoid an error.
13452 Use char because int might match the return type of a GCC
13453 builtin and then its argument prototype would still apply. */
13457 char SmcOpenConnection ();
13461 return SmcOpenConnection ();
13466 if ac_fn_c_try_link
"$LINENO"; then :
13467 ac_cv_lib_SM_SmcOpenConnection
=yes
13469 ac_cv_lib_SM_SmcOpenConnection
=no
13471 rm -f core conftest.err conftest.
$ac_objext \
13472 conftest
$ac_exeext conftest.
$ac_ext
13473 LIBS
=$ac_check_lib_save_LIBS
13475 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_SM_SmcOpenConnection" >&5
13476 $as_echo "$ac_cv_lib_SM_SmcOpenConnection" >&6; }
13477 if test "x$ac_cv_lib_SM_SmcOpenConnection" = x
""yes; then :
13485 if test "${HAVE_X_SM}" = "yes"; then
13487 $as_echo "#define HAVE_X_SM 1" >>confdefs.h
13489 LIBXSM
="-lSM -lICE"
13492 *) LIBS
="$LIBXSM $LIBS" ;;
13498 ### Use libxml (-lxml2) if available
13500 if test "${with_xml2}" != "no"; then
13501 ### I'm not sure what the version number should be, so I just guessed.
13505 # Extract the first word of "pkg-config", so it can be a program name with args.
13506 set dummy pkg-config
; ac_word
=$2
13507 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13508 $as_echo_n "checking for $ac_word... " >&6; }
13509 if test "${ac_cv_path_PKG_CONFIG+set}" = set; then :
13510 $as_echo_n "(cached) " >&6
13512 case $PKG_CONFIG in
13514 ac_cv_path_PKG_CONFIG
="$PKG_CONFIG" # Let the user override the test with a path.
13517 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
13518 for as_dir
in $PATH
13521 test -z "$as_dir" && as_dir
=.
13522 for ac_exec_ext
in '' $ac_executable_extensions; do
13523 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
13524 ac_cv_path_PKG_CONFIG
="$as_dir/$ac_word$ac_exec_ext"
13525 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13532 test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG
="no"
13536 PKG_CONFIG
=$ac_cv_path_PKG_CONFIG
13537 if test -n "$PKG_CONFIG"; then
13538 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5
13539 $as_echo "$PKG_CONFIG" >&6; }
13541 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13542 $as_echo "no" >&6; }
13547 if test "$PKG_CONFIG" = "no" ; then
13550 PKG_CONFIG_MIN_VERSION
=0.9.0
13551 if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
13552 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libxml-2.0 > 2.6.17" >&5
13553 $as_echo_n "checking for libxml-2.0 > 2.6.17... " >&6; }
13555 if $PKG_CONFIG --exists "libxml-2.0 > 2.6.17" 2>&5 &&
13556 LIBXML2_CFLAGS
=`$PKG_CONFIG --cflags "libxml-2.0 > 2.6.17" 2>&5` &&
13557 LIBXML2_LIBS
=`$PKG_CONFIG --libs "libxml-2.0 > 2.6.17" 2>&5`; then
13559 LIBXML2_CFLAGS
=`$as_echo "$LIBXML2_CFLAGS" | sed -e 's,///*,/,g'`
13560 LIBXML2_LIBS
=`$as_echo "$LIBXML2_LIBS" | sed -e 's,///*,/,g'`
13561 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes CFLAGS='$LIBXML2_CFLAGS' LIBS='$LIBXML2_LIBS'" >&5
13562 $as_echo "yes CFLAGS='$LIBXML2_CFLAGS' LIBS='$LIBXML2_LIBS'" >&6; }
13565 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13566 $as_echo "no" >&6; }
13569 ## If we have a custom action on failure, don't print errors, but
13570 ## do set a variable so people can do so.
13571 LIBXML2_PKG_ERRORS
=`$PKG_CONFIG --errors-to-stdout --print-errors "libxml-2.0 > 2.6.17"`
13578 echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
13579 echo "*** See http://www.freedesktop.org/software/pkgconfig"
13583 if test $succeeded = yes; then
13589 if test "${HAVE_LIBXML2}" = "yes"; then
13590 LIBS
="$LIBXML2_LIBS $LIBS"
13591 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for htmlReadMemory in -lxml2" >&5
13592 $as_echo_n "checking for htmlReadMemory in -lxml2... " >&6; }
13593 if test "${ac_cv_lib_xml2_htmlReadMemory+set}" = set; then :
13594 $as_echo_n "(cached) " >&6
13596 ac_check_lib_save_LIBS
=$LIBS
13597 LIBS
="-lxml2 $LIBS"
13598 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
13599 /* end confdefs.h. */
13601 /* Override any GCC internal prototype to avoid an error.
13602 Use char because int might match the return type of a GCC
13603 builtin and then its argument prototype would still apply. */
13607 char htmlReadMemory ();
13611 return htmlReadMemory ();
13616 if ac_fn_c_try_link
"$LINENO"; then :
13617 ac_cv_lib_xml2_htmlReadMemory
=yes
13619 ac_cv_lib_xml2_htmlReadMemory
=no
13621 rm -f core conftest.err conftest.
$ac_objext \
13622 conftest
$ac_exeext conftest.
$ac_ext
13623 LIBS
=$ac_check_lib_save_LIBS
13625 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_xml2_htmlReadMemory" >&5
13626 $as_echo "$ac_cv_lib_xml2_htmlReadMemory" >&6; }
13627 if test "x$ac_cv_lib_xml2_htmlReadMemory" = x
""yes; then :
13633 if test "${HAVE_LIBXML2}" = "yes"; then
13635 $as_echo "#define HAVE_LIBXML2 1" >>confdefs.h
13646 # If netdb.h doesn't declare h_errno, we must declare it by hand.
13647 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether netdb declares h_errno" >&5
13648 $as_echo_n "checking whether netdb declares h_errno... " >&6; }
13649 if test "${emacs_cv_netdb_declares_h_errno+set}" = set; then :
13650 $as_echo_n "(cached) " >&6
13652 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
13653 /* end confdefs.h. */
13663 if ac_fn_c_try_link
"$LINENO"; then :
13664 emacs_cv_netdb_declares_h_errno
=yes
13666 emacs_cv_netdb_declares_h_errno
=no
13668 rm -f core conftest.err conftest.
$ac_objext \
13669 conftest
$ac_exeext conftest.
$ac_ext
13671 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $emacs_cv_netdb_declares_h_errno" >&5
13672 $as_echo "$emacs_cv_netdb_declares_h_errno" >&6; }
13673 if test $emacs_cv_netdb_declares_h_errno = yes; then
13675 $as_echo "#define HAVE_H_ERRNO 1" >>confdefs.h
13679 # fmod, logb, and frexp are found in -lm on most systems.
13680 # On HPUX 9.01, -lm does not contain logb, so check for sqrt.
13681 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sqrt in -lm" >&5
13682 $as_echo_n "checking for sqrt in -lm... " >&6; }
13683 if test "${ac_cv_lib_m_sqrt+set}" = set; then :
13684 $as_echo_n "(cached) " >&6
13686 ac_check_lib_save_LIBS
=$LIBS
13688 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
13689 /* end confdefs.h. */
13691 /* Override any GCC internal prototype to avoid an error.
13692 Use char because int might match the return type of a GCC
13693 builtin and then its argument prototype would still apply. */
13706 if ac_fn_c_try_link
"$LINENO"; then :
13707 ac_cv_lib_m_sqrt
=yes
13709 ac_cv_lib_m_sqrt
=no
13711 rm -f core conftest.err conftest.
$ac_objext \
13712 conftest
$ac_exeext conftest.
$ac_ext
13713 LIBS
=$ac_check_lib_save_LIBS
13715 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_m_sqrt" >&5
13716 $as_echo "$ac_cv_lib_m_sqrt" >&6; }
13717 if test "x$ac_cv_lib_m_sqrt" = x
""yes; then :
13718 cat >>confdefs.h
<<_ACEOF
13719 #define HAVE_LIBM 1
13727 # Check for mail-locking functions in a "mail" library. Probably this should
13728 # have the same check as for liblockfile below.
13729 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for maillock in -lmail" >&5
13730 $as_echo_n "checking for maillock in -lmail... " >&6; }
13731 if test "${ac_cv_lib_mail_maillock+set}" = set; then :
13732 $as_echo_n "(cached) " >&6
13734 ac_check_lib_save_LIBS
=$LIBS
13735 LIBS
="-lmail $LIBS"
13736 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
13737 /* end confdefs.h. */
13739 /* Override any GCC internal prototype to avoid an error.
13740 Use char because int might match the return type of a GCC
13741 builtin and then its argument prototype would still apply. */
13749 return maillock ();
13754 if ac_fn_c_try_link
"$LINENO"; then :
13755 ac_cv_lib_mail_maillock
=yes
13757 ac_cv_lib_mail_maillock
=no
13759 rm -f core conftest.err conftest.
$ac_objext \
13760 conftest
$ac_exeext conftest.
$ac_ext
13761 LIBS
=$ac_check_lib_save_LIBS
13763 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_mail_maillock" >&5
13764 $as_echo "$ac_cv_lib_mail_maillock" >&6; }
13765 if test "x$ac_cv_lib_mail_maillock" = x
""yes; then :
13771 if test $have_mail = yes; then
13773 LIBS
="$LIBS_MAIL $LIBS"
13775 $as_echo "#define HAVE_LIBMAIL 1" >>confdefs.h
13780 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for maillock in -llockfile" >&5
13781 $as_echo_n "checking for maillock in -llockfile... " >&6; }
13782 if test "${ac_cv_lib_lockfile_maillock+set}" = set; then :
13783 $as_echo_n "(cached) " >&6
13785 ac_check_lib_save_LIBS
=$LIBS
13786 LIBS
="-llockfile $LIBS"
13787 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
13788 /* end confdefs.h. */
13790 /* Override any GCC internal prototype to avoid an error.
13791 Use char because int might match the return type of a GCC
13792 builtin and then its argument prototype would still apply. */
13800 return maillock ();
13805 if ac_fn_c_try_link
"$LINENO"; then :
13806 ac_cv_lib_lockfile_maillock
=yes
13808 ac_cv_lib_lockfile_maillock
=no
13810 rm -f core conftest.err conftest.
$ac_objext \
13811 conftest
$ac_exeext conftest.
$ac_ext
13812 LIBS
=$ac_check_lib_save_LIBS
13814 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_lockfile_maillock" >&5
13815 $as_echo "$ac_cv_lib_lockfile_maillock" >&6; }
13816 if test "x$ac_cv_lib_lockfile_maillock" = x
""yes; then :
13822 if test $have_lockfile = yes; then
13823 LIBS_MAIL
=-llockfile
13824 LIBS
="$LIBS_MAIL $LIBS"
13826 $as_echo "#define HAVE_LIBLOCKFILE 1" >>confdefs.h
13829 # If we have the shared liblockfile, assume we must use it for mail
13830 # locking (e.g. Debian). If we couldn't link against liblockfile
13831 # (no liblockfile.a installed), ensure that we don't need to.
13832 # Extract the first word of "liblockfile.so", so it can be a program name with args.
13833 set dummy liblockfile.so
; ac_word
=$2
13834 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13835 $as_echo_n "checking for $ac_word... " >&6; }
13836 if test "${ac_cv_prog_liblockfile+set}" = set; then :
13837 $as_echo_n "(cached) " >&6
13839 if test -n "$liblockfile"; then
13840 ac_cv_prog_liblockfile
="$liblockfile" # Let the user override the test.
13842 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
13843 as_dummy
="/usr/lib:/lib:/usr/local/lib:$LD_LIBRARY_PATH"
13844 for as_dir
in $as_dummy
13847 test -z "$as_dir" && as_dir
=.
13848 for ac_exec_ext
in '' $ac_executable_extensions; do
13849 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
13850 ac_cv_prog_liblockfile
="yes"
13851 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13858 test -z "$ac_cv_prog_liblockfile" && ac_cv_prog_liblockfile
="no"
13861 liblockfile
=$ac_cv_prog_liblockfile
13862 if test -n "$liblockfile"; then
13863 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $liblockfile" >&5
13864 $as_echo "$liblockfile" >&6; }
13866 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13867 $as_echo "no" >&6; }
13871 if test $ac_cv_prog_liblockfile = yes; then
13872 as_fn_error
"Shared liblockfile found but can't link against it.
13873 This probably means that movemail could lose mail.
13874 There may be a \`development' package to install containing liblockfile." "$LINENO" 5
13877 for ac_func
in touchlock
13879 ac_fn_c_check_func
"$LINENO" "touchlock" "ac_cv_func_touchlock"
13880 if test "x$ac_cv_func_touchlock" = x
""yes; then :
13881 cat >>confdefs.h
<<_ACEOF
13882 #define HAVE_TOUCHLOCK 1
13888 for ac_header
in maillock.h
13890 ac_fn_c_check_header_mongrel
"$LINENO" "maillock.h" "ac_cv_header_maillock_h" "$ac_includes_default"
13891 if test "x$ac_cv_header_maillock_h" = x
""yes; then :
13892 cat >>confdefs.h
<<_ACEOF
13893 #define HAVE_MAILLOCK_H 1
13902 ## Define MAIL_USE_FLOCK (or LOCKF) if the mailer uses flock (or lockf) to
13903 ## interlock access to the mail spool. The alternative is a lock file named
13904 ## /usr/spool/mail/$USER.lock.
13907 aix4-2
) mail_lock
="lockf" ;;
13909 gnu|freebsd|netbsd|openbsd|darwin|irix6-5
) mail_lock
="flock" ;;
13911 ## On GNU/Linux systems, both methods are used by various mail programs.
13912 ## I assume most people are using newer mailers that have heard of flock.
13913 ## Change this if you need to.
13914 ## Debian contains a patch which says: ``On Debian/GNU/Linux systems,
13915 ## configure gets the right answers, and that means *NOT* using flock.
13916 ## Using flock is guaranteed to be the wrong thing. See Debian Policy
13917 ## for details.'' and then uses `#ifdef DEBIAN'. Unfortunately the
13918 ## Debian maintainer hasn't provided a clean fix for Emacs.
13919 ## movemail.c will use `maillock' when MAILDIR, HAVE_LIBMAIL and
13920 ## HAVE_MAILLOCK_H are defined, so the following appears to be the
13921 ## correct logic. -- fx
13922 ## We must check for HAVE_LIBLOCKFILE too, as movemail does.
13923 ## liblockfile is a Free Software replacement for libmail, used on
13924 ## Debian systems and elsewhere. -rfr.
13927 if test $have_mail = yes ||
test $have_lockfile = yes; then
13928 test $ac_cv_header_maillock_h = yes && mail_lock
=no
13934 case "$mail_lock" in
13936 $as_echo "#define MAIL_USE_FLOCK 1" >>confdefs.h
13940 $as_echo "#define MAIL_USE_LOCKF 1" >>confdefs.h
13943 *) BLESSMAIL_TARGET
="need-blessmail" ;;
13948 for ac_func
in gethostname getdomainname \
13949 rename closedir mkdir
rmdir sysinfo getrusage get_current_dir_name \
13950 random lrand48 logb frexp fmod rint cbrt ftime setsid \
13951 strerror fpathconf
select euidaccess getpagesize tzset setlocale \
13952 utimes getrlimit setrlimit setpgid getcwd getwd shutdown getaddrinfo \
13953 __fpending mblen mbrlen mbsinit strsignal setitimer ualarm \
13954 sendto recvfrom getsockopt setsockopt getsockname getpeername \
13955 gai_strerror mkstemp getline getdelim mremap fsync sync \
13956 difftime mempcpy mblen mbrlen posix_memalign \
13957 getpwent endpwent getgrent endgrent \
13958 cfmakeraw cfsetspeed copysign __executable_start
13960 as_ac_var
=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
13961 ac_fn_c_check_func
"$LINENO" "$ac_func" "$as_ac_var"
13962 eval as_val
=\$
$as_ac_var
13963 if test "x$as_val" = x
""yes; then :
13964 cat >>confdefs.h
<<_ACEOF
13965 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
13972 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for __builtin_unwind_init" >&5
13973 $as_echo_n "checking for __builtin_unwind_init... " >&6; }
13974 if test "${emacs_cv_func___builtin_unwind_init+set}" = set; then :
13975 $as_echo_n "(cached) " >&6
13977 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
13978 /* end confdefs.h. */
13983 __builtin_unwind_init ();
13988 if ac_fn_c_try_link
"$LINENO"; then :
13989 emacs_cv_func___builtin_unwind_init
=yes
13991 emacs_cv_func___builtin_unwind_init
=no
13993 rm -f core conftest.err conftest.
$ac_objext \
13994 conftest
$ac_exeext conftest.
$ac_ext
13996 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $emacs_cv_func___builtin_unwind_init" >&5
13997 $as_echo "$emacs_cv_func___builtin_unwind_init" >&6; }
13998 if test $emacs_cv_func___builtin_unwind_init = yes; then
14000 $as_echo "#define HAVE___BUILTIN_UNWIND_INIT 1" >>confdefs.h
14004 for ac_header
in sys
/un.h
14006 ac_fn_c_check_header_mongrel
"$LINENO" "sys/un.h" "ac_cv_header_sys_un_h" "$ac_includes_default"
14007 if test "x$ac_cv_header_sys_un_h" = x
""yes; then :
14008 cat >>confdefs.h
<<_ACEOF
14009 #define HAVE_SYS_UN_H 1
14017 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _LARGEFILE_SOURCE value needed for large files" >&5
14018 $as_echo_n "checking for _LARGEFILE_SOURCE value needed for large files... " >&6; }
14019 if test "${ac_cv_sys_largefile_source+set}" = set; then :
14020 $as_echo_n "(cached) " >&6
14023 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
14024 /* end confdefs.h. */
14025 #include <sys/types.h> /* for off_t */
14030 int (*fp) (FILE *, off_t, int) = fseeko;
14031 return fseeko (stdin, 0, 0) && fp (stdin, 0, 0);
14036 if ac_fn_c_try_link
"$LINENO"; then :
14037 ac_cv_sys_largefile_source
=no
; break
14039 rm -f core conftest.err conftest.
$ac_objext \
14040 conftest
$ac_exeext conftest.
$ac_ext
14041 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
14042 /* end confdefs.h. */
14043 #define _LARGEFILE_SOURCE 1
14044 #include <sys/types.h> /* for off_t */
14049 int (*fp) (FILE *, off_t, int) = fseeko;
14050 return fseeko (stdin, 0, 0) && fp (stdin, 0, 0);
14055 if ac_fn_c_try_link
"$LINENO"; then :
14056 ac_cv_sys_largefile_source
=1; break
14058 rm -f core conftest.err conftest.
$ac_objext \
14059 conftest
$ac_exeext conftest.
$ac_ext
14060 ac_cv_sys_largefile_source
=unknown
14064 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_largefile_source" >&5
14065 $as_echo "$ac_cv_sys_largefile_source" >&6; }
14066 case $ac_cv_sys_largefile_source in #(
14069 cat >>confdefs.h
<<_ACEOF
14070 #define _LARGEFILE_SOURCE $ac_cv_sys_largefile_source
14076 # We used to try defining _XOPEN_SOURCE=500 too, to work around a bug
14077 # in glibc 2.1.3, but that breaks too many other things.
14078 # If you want fseeko and ftello with glibc, upgrade to a fixed glibc.
14079 if test $ac_cv_sys_largefile_source != unknown
; then
14081 $as_echo "#define HAVE_FSEEKO 1" >>confdefs.h
14086 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether getpgrp requires zero arguments" >&5
14087 $as_echo_n "checking whether getpgrp requires zero arguments... " >&6; }
14088 if test "${ac_cv_func_getpgrp_void+set}" = set; then :
14089 $as_echo_n "(cached) " >&6
14091 # Use it with a single arg.
14092 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
14093 /* end confdefs.h. */
14094 $ac_includes_default
14103 if ac_fn_c_try_compile
"$LINENO"; then :
14104 ac_cv_func_getpgrp_void
=no
14106 ac_cv_func_getpgrp_void
=yes
14108 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
14111 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_getpgrp_void" >&5
14112 $as_echo "$ac_cv_func_getpgrp_void" >&6; }
14113 if test $ac_cv_func_getpgrp_void = yes; then
14115 $as_echo "#define GETPGRP_VOID 1" >>confdefs.h
14121 for ac_func
in grantpt
14123 ac_fn_c_check_func
"$LINENO" "grantpt" "ac_cv_func_grantpt"
14124 if test "x$ac_cv_func_grantpt" = x
""yes; then :
14125 cat >>confdefs.h
<<_ACEOF
14126 #define HAVE_GRANTPT 1
14133 # PTY-related GNU extensions.
14134 for ac_func
in getpt
14136 ac_fn_c_check_func
"$LINENO" "getpt" "ac_cv_func_getpt"
14137 if test "x$ac_cv_func_getpt" = x
""yes; then :
14138 cat >>confdefs.h
<<_ACEOF
14139 #define HAVE_GETPT 1
14146 # Check this now, so that we will NOT find the above functions in ncurses.
14147 # That is because we have not set up to link ncurses in lib-src.
14148 # It's better to believe a function is not available
14149 # than to expect to find it in ncurses.
14150 # Also we need tputs and friends to be able to build at all.
14151 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing tputs" >&5
14152 $as_echo_n "checking for library containing tputs... " >&6; }
14153 # Run a test program that contains a call to tputs, a call that is
14154 # never executed. This tests whether a pre-'main' dynamic linker
14155 # works with the library. It's too much trouble to actually call
14156 # tputs in the test program, due to portability hassles. When
14157 # cross-compiling, assume the test program will run if it links.
14159 # Maybe curses should be tried earlier?
14160 # See http://debbugs.gnu.org/cgi/bugreport.cgi?bug=9736#35
14161 for tputs_library
in '' ncurses terminfo termcap curses
; do
14163 if test -z "$tputs_library"; then
14165 msg
='none required'
14167 LIBS_TERMCAP
=-l$tputs_library
14169 LIBS
="$LIBS_TERMCAP $LIBS"
14171 if test "$cross_compiling" = yes; then :
14172 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
14173 /* end confdefs.h. */
14175 extern void tputs (const char *, int, int (*)(int));
14176 int main (int argc, char **argv)
14179 tputs (argv[0], 0, 0);
14184 if ac_fn_c_try_link
"$LINENO"; then :
14189 rm -f core conftest.err conftest.
$ac_objext \
14190 conftest
$ac_exeext conftest.
$ac_ext
14192 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
14193 /* end confdefs.h. */
14195 extern void tputs (const char *, int, int (*)(int));
14196 int main (int argc, char **argv)
14199 tputs (argv[0], 0, 0);
14204 if ac_fn_c_try_run
"$LINENO"; then :
14209 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
14210 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
14214 if test "X$msg" != Xno
; then
14218 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $msg" >&5
14219 $as_echo "$msg" >&6; }
14220 if test "X$msg" = Xno
; then
14221 as_fn_error
"The required function \`tputs' was not found in any library.
14222 These libraries were tried: libncurses, libterminfo, libtermcap, libcurses.
14223 Please try installing whichever of these libraries is most appropriate
14224 for your system, together with its header files.
14225 For example, a libncurses-dev(el) or similar package." "$LINENO" 5
14227 # Must define this when any termcap library is found.
14229 $as_echo "#define HAVE_LIBNCURSES 1" >>confdefs.h
14231 ## FIXME This was the cpp logic, but I am not sure it is right.
14232 ## The above test has not necessarily found libncurses.
14233 HAVE_LIBNCURSES
=yes
14235 ## Use terminfo instead of termcap?
14236 ## Note only system files NOT using terminfo are:
14237 ## freebsd < 40000, ms-w32, msdos, netbsd < 599002500, and
14238 ## darwin|gnu without ncurses.
14241 ## cygwin: Fewer environment variables to go wrong, more terminal types.
14242 ## hpux10-20: Use the system provided termcap(3) library.
14243 ## openbsd: David Mazieres <dm@reeducation-labor.lcs.mit.edu> says this
14244 ## is necessary. Otherwise Emacs dumps core when run -nw.
14245 aix4-2|cygwin|hpux
*|irix6-5|openbsd|sol2
*|unixware
) TERMINFO
=yes ;;
14247 ## darwin: Prevents crashes when running Emacs in Terminal.app under 10.2.
14248 ## The ncurses library has been moved out of the System framework in
14249 ## Mac OS X 10.2. So if configure detects it, set the command-line
14250 ## option to use it.
14252 ## (HAVE_LIBNCURSES was not always true, but is since 2010-03-18.)
14253 if test "x$HAVE_LIBNCURSES" = "xyes"; then
14255 LIBS_TERMCAP
="-lncurses"
14260 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether FreeBSD is new enough to use terminfo" >&5
14261 $as_echo_n "checking whether FreeBSD is new enough to use terminfo... " >&6; }
14262 if test "${emacs_cv_freebsd_terminfo+set}" = set; then :
14263 $as_echo_n "(cached) " >&6
14265 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
14266 /* end confdefs.h. */
14267 #include <osreldate.h>
14271 #if __FreeBSD_version < 400000
14279 if ac_fn_c_try_link
"$LINENO"; then :
14280 emacs_cv_freebsd_terminfo
=yes
14282 emacs_cv_freebsd_terminfo
=no
14284 rm -f core conftest.err conftest.
$ac_objext \
14285 conftest
$ac_exeext conftest.
$ac_ext
14289 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $emacs_cv_freebsd_terminfo" >&5
14290 $as_echo "$emacs_cv_freebsd_terminfo" >&6; }
14292 if test $emacs_cv_freebsd_terminfo = yes; then
14294 LIBS_TERMCAP
="-lncurses"
14296 LIBS_TERMCAP
="-ltermcap"
14301 if test $ac_cv_search_tputs = -lterminfo; then
14303 LIBS_TERMCAP
="-lterminfo"
14305 LIBS_TERMCAP
="-ltermcap"
14312 ## hpux: Make sure we get select from libc rather than from libcurses
14313 ## because libcurses on HPUX 10.10 has a broken version of select.
14314 ## We used to use -lc -lcurses, but this may be cleaner.
14315 hpux
*) LIBS_TERMCAP
="-ltermcap" ;;
14317 openbsd
) LIBS_TERMCAP
="-lncurses" ;;
14319 ## Must use system termcap, if we use any termcap. It does special things.
14320 sol2
*) test "$TERMINFO" != yes && LIBS_TERMCAP
="-ltermcap" ;;
14323 TERMCAP_OBJ
=tparam.o
14324 if test $TERMINFO = yes; then
14326 $as_echo "#define TERMINFO 1" >>confdefs.h
14328 TERMCAP_OBJ
=terminfo.o
14334 # Do we have res_init, for detecting changes in /etc/resolv.conf?
14336 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
14337 /* end confdefs.h. */
14338 #include <netinet/in.h>
14339 #include <arpa/nameser.h>
14340 #include <resolv.h>
14349 if ac_fn_c_try_link
"$LINENO"; then :
14354 rm -f core conftest.err conftest.
$ac_objext \
14355 conftest
$ac_exeext conftest.
$ac_ext
14356 if test "$have_res_init" = no
; then
14358 LIBS
="$LIBS -lresolv"
14359 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for res_init with -lresolv" >&5
14360 $as_echo_n "checking for res_init with -lresolv... " >&6; }
14361 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
14362 /* end confdefs.h. */
14363 #include <netinet/in.h>
14364 #include <arpa/nameser.h>
14365 #include <resolv.h>
14374 if ac_fn_c_try_link
"$LINENO"; then :
14379 rm -f core conftest.err conftest.
$ac_objext \
14380 conftest
$ac_exeext conftest.
$ac_ext
14381 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_res_init" >&5
14382 $as_echo "$have_res_init" >&6; }
14383 if test "$have_res_init" = yes ; then
14389 if test "$have_res_init" = yes; then
14391 $as_echo "#define HAVE_RES_INIT 1" >>confdefs.h
14395 # Do we need the Hesiod library to provide the support routines?
14397 if test "$with_hesiod" != no
; then
14398 # Don't set $LIBS here -- see comments above. FIXME which comments?
14399 ac_fn_c_check_func
"$LINENO" "res_send" "ac_cv_func_res_send"
14400 if test "x$ac_cv_func_res_send" = x
""yes; then :
14403 ac_fn_c_check_func
"$LINENO" "__res_send" "ac_cv_func___res_send"
14404 if test "x$ac_cv_func___res_send" = x
""yes; then :
14407 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for res_send in -lresolv" >&5
14408 $as_echo_n "checking for res_send in -lresolv... " >&6; }
14409 if test "${ac_cv_lib_resolv_res_send+set}" = set; then :
14410 $as_echo_n "(cached) " >&6
14412 ac_check_lib_save_LIBS
=$LIBS
14413 LIBS
="-lresolv $LIBS"
14414 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
14415 /* end confdefs.h. */
14417 /* Override any GCC internal prototype to avoid an error.
14418 Use char because int might match the return type of a GCC
14419 builtin and then its argument prototype would still apply. */
14427 return res_send ();
14432 if ac_fn_c_try_link
"$LINENO"; then :
14433 ac_cv_lib_resolv_res_send
=yes
14435 ac_cv_lib_resolv_res_send
=no
14437 rm -f core conftest.err conftest.
$ac_objext \
14438 conftest
$ac_exeext conftest.
$ac_ext
14439 LIBS
=$ac_check_lib_save_LIBS
14441 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_resolv_res_send" >&5
14442 $as_echo "$ac_cv_lib_resolv_res_send" >&6; }
14443 if test "x$ac_cv_lib_resolv_res_send" = x
""yes; then :
14446 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for __res_send in -lresolv" >&5
14447 $as_echo_n "checking for __res_send in -lresolv... " >&6; }
14448 if test "${ac_cv_lib_resolv___res_send+set}" = set; then :
14449 $as_echo_n "(cached) " >&6
14451 ac_check_lib_save_LIBS
=$LIBS
14452 LIBS
="-lresolv $LIBS"
14453 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
14454 /* end confdefs.h. */
14456 /* Override any GCC internal prototype to avoid an error.
14457 Use char because int might match the return type of a GCC
14458 builtin and then its argument prototype would still apply. */
14462 char __res_send ();
14466 return __res_send ();
14471 if ac_fn_c_try_link
"$LINENO"; then :
14472 ac_cv_lib_resolv___res_send
=yes
14474 ac_cv_lib_resolv___res_send
=no
14476 rm -f core conftest.err conftest.
$ac_objext \
14477 conftest
$ac_exeext conftest.
$ac_ext
14478 LIBS
=$ac_check_lib_save_LIBS
14480 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_resolv___res_send" >&5
14481 $as_echo "$ac_cv_lib_resolv___res_send" >&6; }
14482 if test "x$ac_cv_lib_resolv___res_send" = x
""yes; then :
14492 if test "$resolv" = yes ; then
14497 ac_fn_c_check_func
"$LINENO" "hes_getmailhost" "ac_cv_func_hes_getmailhost"
14498 if test "x$ac_cv_func_hes_getmailhost" = x
""yes; then :
14501 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for hes_getmailhost in -lhesiod" >&5
14502 $as_echo_n "checking for hes_getmailhost in -lhesiod... " >&6; }
14503 if test "${ac_cv_lib_hesiod_hes_getmailhost+set}" = set; then :
14504 $as_echo_n "(cached) " >&6
14506 ac_check_lib_save_LIBS
=$LIBS
14507 LIBS
="-lhesiod $RESOLVLIB $LIBS"
14508 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
14509 /* end confdefs.h. */
14511 /* Override any GCC internal prototype to avoid an error.
14512 Use char because int might match the return type of a GCC
14513 builtin and then its argument prototype would still apply. */
14517 char hes_getmailhost ();
14521 return hes_getmailhost ();
14526 if ac_fn_c_try_link
"$LINENO"; then :
14527 ac_cv_lib_hesiod_hes_getmailhost
=yes
14529 ac_cv_lib_hesiod_hes_getmailhost
=no
14531 rm -f core conftest.err conftest.
$ac_objext \
14532 conftest
$ac_exeext conftest.
$ac_ext
14533 LIBS
=$ac_check_lib_save_LIBS
14535 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_hesiod_hes_getmailhost" >&5
14536 $as_echo "$ac_cv_lib_hesiod_hes_getmailhost" >&6; }
14537 if test "x$ac_cv_lib_hesiod_hes_getmailhost" = x
""yes; then :
14546 if test x
"$hesiod" = xyes
; then
14548 $as_echo "#define HAVE_LIBHESIOD 1" >>confdefs.h
14555 # Do we need libresolv (due to res_init or Hesiod)?
14556 if test "$resolv" = yes ; then
14558 $as_echo "#define HAVE_LIBRESOLV 1" >>confdefs.h
14566 # These tell us which Kerberos-related libraries to use.
14573 if test "${with_kerberos}" != no
; then
14574 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for com_err in -lcom_err" >&5
14575 $as_echo_n "checking for com_err in -lcom_err... " >&6; }
14576 if test "${ac_cv_lib_com_err_com_err+set}" = set; then :
14577 $as_echo_n "(cached) " >&6
14579 ac_check_lib_save_LIBS
=$LIBS
14580 LIBS
="-lcom_err $LIBS"
14581 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
14582 /* end confdefs.h. */
14584 /* Override any GCC internal prototype to avoid an error.
14585 Use char because int might match the return type of a GCC
14586 builtin and then its argument prototype would still apply. */
14599 if ac_fn_c_try_link
"$LINENO"; then :
14600 ac_cv_lib_com_err_com_err
=yes
14602 ac_cv_lib_com_err_com_err
=no
14604 rm -f core conftest.err conftest.
$ac_objext \
14605 conftest
$ac_exeext conftest.
$ac_ext
14606 LIBS
=$ac_check_lib_save_LIBS
14608 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_com_err_com_err" >&5
14609 $as_echo "$ac_cv_lib_com_err_com_err" >&6; }
14610 if test "x$ac_cv_lib_com_err_com_err" = x
""yes; then :
14616 if test $have_com_err = yes; then
14617 COM_ERRLIB
=-lcom_err
14618 LIBS
="$COM_ERRLIB $LIBS"
14620 $as_echo "#define HAVE_LIBCOM_ERR 1" >>confdefs.h
14623 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for mit_des_cbc_encrypt in -lcrypto" >&5
14624 $as_echo_n "checking for mit_des_cbc_encrypt in -lcrypto... " >&6; }
14625 if test "${ac_cv_lib_crypto_mit_des_cbc_encrypt+set}" = set; then :
14626 $as_echo_n "(cached) " >&6
14628 ac_check_lib_save_LIBS
=$LIBS
14629 LIBS
="-lcrypto $LIBS"
14630 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
14631 /* end confdefs.h. */
14633 /* Override any GCC internal prototype to avoid an error.
14634 Use char because int might match the return type of a GCC
14635 builtin and then its argument prototype would still apply. */
14639 char mit_des_cbc_encrypt ();
14643 return mit_des_cbc_encrypt ();
14648 if ac_fn_c_try_link
"$LINENO"; then :
14649 ac_cv_lib_crypto_mit_des_cbc_encrypt
=yes
14651 ac_cv_lib_crypto_mit_des_cbc_encrypt
=no
14653 rm -f core conftest.err conftest.
$ac_objext \
14654 conftest
$ac_exeext conftest.
$ac_ext
14655 LIBS
=$ac_check_lib_save_LIBS
14657 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_crypto_mit_des_cbc_encrypt" >&5
14658 $as_echo "$ac_cv_lib_crypto_mit_des_cbc_encrypt" >&6; }
14659 if test "x$ac_cv_lib_crypto_mit_des_cbc_encrypt" = x
""yes; then :
14665 if test $have_crypto = yes; then
14667 LIBS
="$CRYPTOLIB $LIBS"
14669 $as_echo "#define HAVE_LIBCRYPTO 1" >>confdefs.h
14672 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for mit_des_cbc_encrypt in -lk5crypto" >&5
14673 $as_echo_n "checking for mit_des_cbc_encrypt in -lk5crypto... " >&6; }
14674 if test "${ac_cv_lib_k5crypto_mit_des_cbc_encrypt+set}" = set; then :
14675 $as_echo_n "(cached) " >&6
14677 ac_check_lib_save_LIBS
=$LIBS
14678 LIBS
="-lk5crypto $LIBS"
14679 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
14680 /* end confdefs.h. */
14682 /* Override any GCC internal prototype to avoid an error.
14683 Use char because int might match the return type of a GCC
14684 builtin and then its argument prototype would still apply. */
14688 char mit_des_cbc_encrypt ();
14692 return mit_des_cbc_encrypt ();
14697 if ac_fn_c_try_link
"$LINENO"; then :
14698 ac_cv_lib_k5crypto_mit_des_cbc_encrypt
=yes
14700 ac_cv_lib_k5crypto_mit_des_cbc_encrypt
=no
14702 rm -f core conftest.err conftest.
$ac_objext \
14703 conftest
$ac_exeext conftest.
$ac_ext
14704 LIBS
=$ac_check_lib_save_LIBS
14706 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_k5crypto_mit_des_cbc_encrypt" >&5
14707 $as_echo "$ac_cv_lib_k5crypto_mit_des_cbc_encrypt" >&6; }
14708 if test "x$ac_cv_lib_k5crypto_mit_des_cbc_encrypt" = x
""yes; then :
14714 if test $have_k5crypto = yes; then
14715 CRYPTOLIB
=-lk5crypto
14716 LIBS
="$CRYPTOLIB $LIBS"
14718 $as_echo "#define HAVE_LIBK5CRYPTO 1" >>confdefs.h
14721 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for krb5_init_context in -lkrb5" >&5
14722 $as_echo_n "checking for krb5_init_context in -lkrb5... " >&6; }
14723 if test "${ac_cv_lib_krb5_krb5_init_context+set}" = set; then :
14724 $as_echo_n "(cached) " >&6
14726 ac_check_lib_save_LIBS
=$LIBS
14727 LIBS
="-lkrb5 $LIBS"
14728 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
14729 /* end confdefs.h. */
14731 /* Override any GCC internal prototype to avoid an error.
14732 Use char because int might match the return type of a GCC
14733 builtin and then its argument prototype would still apply. */
14737 char krb5_init_context ();
14741 return krb5_init_context ();
14746 if ac_fn_c_try_link
"$LINENO"; then :
14747 ac_cv_lib_krb5_krb5_init_context
=yes
14749 ac_cv_lib_krb5_krb5_init_context
=no
14751 rm -f core conftest.err conftest.
$ac_objext \
14752 conftest
$ac_exeext conftest.
$ac_ext
14753 LIBS
=$ac_check_lib_save_LIBS
14755 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_krb5_krb5_init_context" >&5
14756 $as_echo "$ac_cv_lib_krb5_krb5_init_context" >&6; }
14757 if test "x$ac_cv_lib_krb5_krb5_init_context" = x
""yes; then :
14763 if test $have_krb5=yes; then
14765 LIBS
="$KRB5LIB $LIBS"
14767 $as_echo "#define HAVE_LIBKRB5 1" >>confdefs.h
14770 if test "${with_kerberos5}" = no
; then
14771 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for des_cbc_encrypt in -ldes425" >&5
14772 $as_echo_n "checking for des_cbc_encrypt in -ldes425... " >&6; }
14773 if test "${ac_cv_lib_des425_des_cbc_encrypt+set}" = set; then :
14774 $as_echo_n "(cached) " >&6
14776 ac_check_lib_save_LIBS
=$LIBS
14777 LIBS
="-ldes425 $LIBS"
14778 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
14779 /* end confdefs.h. */
14781 /* Override any GCC internal prototype to avoid an error.
14782 Use char because int might match the return type of a GCC
14783 builtin and then its argument prototype would still apply. */
14787 char des_cbc_encrypt ();
14791 return des_cbc_encrypt ();
14796 if ac_fn_c_try_link
"$LINENO"; then :
14797 ac_cv_lib_des425_des_cbc_encrypt
=yes
14799 ac_cv_lib_des425_des_cbc_encrypt
=no
14801 rm -f core conftest.err conftest.
$ac_objext \
14802 conftest
$ac_exeext conftest.
$ac_ext
14803 LIBS
=$ac_check_lib_save_LIBS
14805 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_des425_des_cbc_encrypt" >&5
14806 $as_echo "$ac_cv_lib_des425_des_cbc_encrypt" >&6; }
14807 if test "x$ac_cv_lib_des425_des_cbc_encrypt" = x
""yes; then :
14813 if test $have_des425 = yes; then
14815 LIBS
="$DESLIB $LIBS"
14817 $as_echo "#define HAVE_LIBDES425 1" >>confdefs.h
14820 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for des_cbc_encrypt in -ldes" >&5
14821 $as_echo_n "checking for des_cbc_encrypt in -ldes... " >&6; }
14822 if test "${ac_cv_lib_des_des_cbc_encrypt+set}" = set; then :
14823 $as_echo_n "(cached) " >&6
14825 ac_check_lib_save_LIBS
=$LIBS
14827 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
14828 /* end confdefs.h. */
14830 /* Override any GCC internal prototype to avoid an error.
14831 Use char because int might match the return type of a GCC
14832 builtin and then its argument prototype would still apply. */
14836 char des_cbc_encrypt ();
14840 return des_cbc_encrypt ();
14845 if ac_fn_c_try_link
"$LINENO"; then :
14846 ac_cv_lib_des_des_cbc_encrypt
=yes
14848 ac_cv_lib_des_des_cbc_encrypt
=no
14850 rm -f core conftest.err conftest.
$ac_objext \
14851 conftest
$ac_exeext conftest.
$ac_ext
14852 LIBS
=$ac_check_lib_save_LIBS
14854 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_des_des_cbc_encrypt" >&5
14855 $as_echo "$ac_cv_lib_des_des_cbc_encrypt" >&6; }
14856 if test "x$ac_cv_lib_des_des_cbc_encrypt" = x
""yes; then :
14862 if test $have_des = yes; then
14864 LIBS
="$DESLIB $LIBS"
14866 $as_echo "#define HAVE_LIBDES 1" >>confdefs.h
14870 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for krb_get_cred in -lkrb4" >&5
14871 $as_echo_n "checking for krb_get_cred in -lkrb4... " >&6; }
14872 if test "${ac_cv_lib_krb4_krb_get_cred+set}" = set; then :
14873 $as_echo_n "(cached) " >&6
14875 ac_check_lib_save_LIBS
=$LIBS
14876 LIBS
="-lkrb4 $LIBS"
14877 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
14878 /* end confdefs.h. */
14880 /* Override any GCC internal prototype to avoid an error.
14881 Use char because int might match the return type of a GCC
14882 builtin and then its argument prototype would still apply. */
14886 char krb_get_cred ();
14890 return krb_get_cred ();
14895 if ac_fn_c_try_link
"$LINENO"; then :
14896 ac_cv_lib_krb4_krb_get_cred
=yes
14898 ac_cv_lib_krb4_krb_get_cred
=no
14900 rm -f core conftest.err conftest.
$ac_objext \
14901 conftest
$ac_exeext conftest.
$ac_ext
14902 LIBS
=$ac_check_lib_save_LIBS
14904 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_krb4_krb_get_cred" >&5
14905 $as_echo "$ac_cv_lib_krb4_krb_get_cred" >&6; }
14906 if test "x$ac_cv_lib_krb4_krb_get_cred" = x
""yes; then :
14912 if test $have_krb4 = yes; then
14914 LIBS
="$KRB4LIB $LIBS"
14916 $as_echo "#define HAVE_LIBKRB4 1" >>confdefs.h
14919 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for krb_get_cred in -lkrb" >&5
14920 $as_echo_n "checking for krb_get_cred in -lkrb... " >&6; }
14921 if test "${ac_cv_lib_krb_krb_get_cred+set}" = set; then :
14922 $as_echo_n "(cached) " >&6
14924 ac_check_lib_save_LIBS
=$LIBS
14926 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
14927 /* end confdefs.h. */
14929 /* Override any GCC internal prototype to avoid an error.
14930 Use char because int might match the return type of a GCC
14931 builtin and then its argument prototype would still apply. */
14935 char krb_get_cred ();
14939 return krb_get_cred ();
14944 if ac_fn_c_try_link
"$LINENO"; then :
14945 ac_cv_lib_krb_krb_get_cred
=yes
14947 ac_cv_lib_krb_krb_get_cred
=no
14949 rm -f core conftest.err conftest.
$ac_objext \
14950 conftest
$ac_exeext conftest.
$ac_ext
14951 LIBS
=$ac_check_lib_save_LIBS
14953 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_krb_krb_get_cred" >&5
14954 $as_echo "$ac_cv_lib_krb_krb_get_cred" >&6; }
14955 if test "x$ac_cv_lib_krb_krb_get_cred" = x
""yes; then :
14961 if test $have_krb = yes; then
14963 LIBS
="$KRB4LIB $LIBS"
14965 $as_echo "#define HAVE_LIBKRB 1" >>confdefs.h
14971 if test "${with_kerberos5}" != no
; then
14972 for ac_header
in krb5.h
14974 ac_fn_c_check_header_mongrel
"$LINENO" "krb5.h" "ac_cv_header_krb5_h" "$ac_includes_default"
14975 if test "x$ac_cv_header_krb5_h" = x
""yes; then :
14976 cat >>confdefs.h
<<_ACEOF
14977 #define HAVE_KRB5_H 1
14979 ac_fn_c_check_member
"$LINENO" "krb5_error" "text" "ac_cv_member_krb5_error_text" "#include <krb5.h>
14981 if test "x$ac_cv_member_krb5_error_text" = x
""yes; then :
14983 cat >>confdefs.h
<<_ACEOF
14984 #define HAVE_KRB5_ERROR_TEXT 1
14989 ac_fn_c_check_member
"$LINENO" "krb5_error" "e_text" "ac_cv_member_krb5_error_e_text" "#include <krb5.h>
14991 if test "x$ac_cv_member_krb5_error_e_text" = x
""yes; then :
14993 cat >>confdefs.h
<<_ACEOF
14994 #define HAVE_KRB5_ERROR_E_TEXT 1
15005 for ac_header
in des.h
15007 ac_fn_c_check_header_mongrel
"$LINENO" "des.h" "ac_cv_header_des_h" "$ac_includes_default"
15008 if test "x$ac_cv_header_des_h" = x
""yes; then :
15009 cat >>confdefs.h
<<_ACEOF
15010 #define HAVE_DES_H 1
15014 for ac_header
in kerberosIV
/des.h
15016 ac_fn_c_check_header_mongrel
"$LINENO" "kerberosIV/des.h" "ac_cv_header_kerberosIV_des_h" "$ac_includes_default"
15017 if test "x$ac_cv_header_kerberosIV_des_h" = x
""yes; then :
15018 cat >>confdefs.h
<<_ACEOF
15019 #define HAVE_KERBEROSIV_DES_H 1
15023 for ac_header
in kerberos
/des.h
15025 ac_fn_c_check_header_mongrel
"$LINENO" "kerberos/des.h" "ac_cv_header_kerberos_des_h" "$ac_includes_default"
15026 if test "x$ac_cv_header_kerberos_des_h" = x
""yes; then :
15027 cat >>confdefs.h
<<_ACEOF
15028 #define HAVE_KERBEROS_DES_H 1
15043 for ac_header
in krb.h
15045 ac_fn_c_check_header_mongrel
"$LINENO" "krb.h" "ac_cv_header_krb_h" "$ac_includes_default"
15046 if test "x$ac_cv_header_krb_h" = x
""yes; then :
15047 cat >>confdefs.h
<<_ACEOF
15048 #define HAVE_KRB_H 1
15052 for ac_header
in kerberosIV
/krb.h
15054 ac_fn_c_check_header_mongrel
"$LINENO" "kerberosIV/krb.h" "ac_cv_header_kerberosIV_krb_h" "$ac_includes_default"
15055 if test "x$ac_cv_header_kerberosIV_krb_h" = x
""yes; then :
15056 cat >>confdefs.h
<<_ACEOF
15057 #define HAVE_KERBEROSIV_KRB_H 1
15061 for ac_header
in kerberos
/krb.h
15063 ac_fn_c_check_header_mongrel
"$LINENO" "kerberos/krb.h" "ac_cv_header_kerberos_krb_h" "$ac_includes_default"
15064 if test "x$ac_cv_header_kerberos_krb_h" = x
""yes; then :
15065 cat >>confdefs.h
<<_ACEOF
15066 #define HAVE_KERBEROS_KRB_H 1
15082 for ac_header
in com_err.h
15084 ac_fn_c_check_header_mongrel
"$LINENO" "com_err.h" "ac_cv_header_com_err_h" "$ac_includes_default"
15085 if test "x$ac_cv_header_com_err_h" = x
""yes; then :
15086 cat >>confdefs.h
<<_ACEOF
15087 #define HAVE_COM_ERR_H 1
15102 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether localtime caches TZ" >&5
15103 $as_echo_n "checking whether localtime caches TZ... " >&6; }
15104 if test "${emacs_cv_localtime_cache+set}" = set; then :
15105 $as_echo_n "(cached) " >&6
15107 if test x
$ac_cv_func_tzset = xyes
; then
15108 if test "$cross_compiling" = yes; then :
15109 # If we have tzset, assume the worst when cross-compiling.
15110 emacs_cv_localtime_cache
=yes
15112 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
15113 /* end confdefs.h. */
15115 char TZ_GMT0[] = "TZ=GMT0";
15116 char TZ_PST8[] = "TZ=PST8";
15119 time_t now = time ((time_t *) 0);
15120 int hour_GMT0, hour_unset;
15121 if (putenv (TZ_GMT0) != 0)
15123 hour_GMT0 = localtime (&now)->tm_hour;
15125 hour_unset = localtime (&now)->tm_hour;
15126 if (putenv (TZ_PST8) != 0)
15128 if (localtime (&now)->tm_hour == hour_GMT0)
15131 if (localtime (&now)->tm_hour != hour_unset)
15136 if ac_fn_c_try_run
"$LINENO"; then :
15137 emacs_cv_localtime_cache
=no
15139 emacs_cv_localtime_cache
=yes
15141 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
15142 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
15146 # If we lack tzset, report that localtime does not cache TZ,
15147 # since we can't invalidate the cache if we don't have tzset.
15148 emacs_cv_localtime_cache
=no
15151 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $emacs_cv_localtime_cache" >&5
15152 $as_echo "$emacs_cv_localtime_cache" >&6; }
15153 if test $emacs_cv_localtime_cache = yes; then
15155 $as_echo "#define LOCALTIME_CACHE 1" >>confdefs.h
15159 if test "x$HAVE_TIMEVAL" = xyes
; then
15160 for ac_func
in gettimeofday
15162 ac_fn_c_check_func
"$LINENO" "gettimeofday" "ac_cv_func_gettimeofday"
15163 if test "x$ac_cv_func_gettimeofday" = x
""yes; then :
15164 cat >>confdefs.h
<<_ACEOF
15165 #define HAVE_GETTIMEOFDAY 1
15171 if test $ac_cv_func_gettimeofday = yes; then
15172 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether gettimeofday can accept two arguments" >&5
15173 $as_echo_n "checking whether gettimeofday can accept two arguments... " >&6; }
15174 if test "${emacs_cv_gettimeofday_two_arguments+set}" = set; then :
15175 $as_echo_n "(cached) " >&6
15177 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
15178 /* end confdefs.h. */
15180 #ifdef TIME_WITH_SYS_TIME
15181 #include <sys/time.h>
15184 #ifdef HAVE_SYS_TIME_H
15185 #include <sys/time.h>
15193 struct timeval time;
15194 gettimeofday (&time, 0);
15199 if ac_fn_c_try_compile
"$LINENO"; then :
15200 emacs_cv_gettimeofday_two_arguments
=yes
15202 emacs_cv_gettimeofday_two_arguments
=no
15204 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
15206 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $emacs_cv_gettimeofday_two_arguments" >&5
15207 $as_echo "$emacs_cv_gettimeofday_two_arguments" >&6; }
15208 if test $emacs_cv_gettimeofday_two_arguments = no
; then
15210 $as_echo "#define GETTIMEOFDAY_ONE_ARGUMENT 1" >>confdefs.h
15217 ac_fn_c_check_func
"$LINENO" "socket" "ac_cv_func_socket"
15218 if test "x$ac_cv_func_socket" = x
""yes; then :
15224 if test $ok_so_far = yes; then
15225 ac_fn_c_check_header_mongrel
"$LINENO" "netinet/in.h" "ac_cv_header_netinet_in_h" "$ac_includes_default"
15226 if test "x$ac_cv_header_netinet_in_h" = x
""yes; then :
15234 if test $ok_so_far = yes; then
15235 ac_fn_c_check_header_mongrel
"$LINENO" "arpa/inet.h" "ac_cv_header_arpa_inet_h" "$ac_includes_default"
15236 if test "x$ac_cv_header_arpa_inet_h" = x
""yes; then :
15244 if test $ok_so_far = yes; then
15246 $as_echo "#define HAVE_INET_SOCKETS 1" >>confdefs.h
15250 if test -f /usr
/lpp
/X11
/bin
/smt.exp
; then
15252 $as_echo "#define HAVE_AIX_SMT_EXP 1" >>confdefs.h
15256 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether system supports dynamic ptys" >&5
15257 $as_echo_n "checking whether system supports dynamic ptys... " >&6; }
15258 if test -d /dev
/pts
&& ls -d /dev
/ptmx
> /dev
/null
2>&1 ; then
15259 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
15260 $as_echo "yes" >&6; }
15262 $as_echo "#define HAVE_DEV_PTMX 1" >>confdefs.h
15265 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15266 $as_echo "no" >&6; }
15269 ac_fn_c_check_type
"$LINENO" "pid_t" "ac_cv_type_pid_t" "$ac_includes_default"
15270 if test "x$ac_cv_type_pid_t" = x
""yes; then :
15274 cat >>confdefs.h
<<_ACEOF
15280 for ac_header
in vfork.h
15282 ac_fn_c_check_header_mongrel
"$LINENO" "vfork.h" "ac_cv_header_vfork_h" "$ac_includes_default"
15283 if test "x$ac_cv_header_vfork_h" = x
""yes; then :
15284 cat >>confdefs.h
<<_ACEOF
15285 #define HAVE_VFORK_H 1
15292 for ac_func
in fork vfork
15294 as_ac_var
=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
15295 ac_fn_c_check_func
"$LINENO" "$ac_func" "$as_ac_var"
15296 eval as_val
=\$
$as_ac_var
15297 if test "x$as_val" = x
""yes; then :
15298 cat >>confdefs.h
<<_ACEOF
15299 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
15305 if test "x$ac_cv_func_fork" = xyes
; then
15306 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working fork" >&5
15307 $as_echo_n "checking for working fork... " >&6; }
15308 if test "${ac_cv_func_fork_works+set}" = set; then :
15309 $as_echo_n "(cached) " >&6
15311 if test "$cross_compiling" = yes; then :
15312 ac_cv_func_fork_works
=cross
15314 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
15315 /* end confdefs.h. */
15316 $ac_includes_default
15321 /* By Ruediger Kuhlmann. */
15322 return fork () < 0;
15328 if ac_fn_c_try_run
"$LINENO"; then :
15329 ac_cv_func_fork_works
=yes
15331 ac_cv_func_fork_works
=no
15333 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
15334 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
15338 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_fork_works" >&5
15339 $as_echo "$ac_cv_func_fork_works" >&6; }
15342 ac_cv_func_fork_works
=$ac_cv_func_fork
15344 if test "x$ac_cv_func_fork_works" = xcross
; then
15346 *-*-amigaos* |
*-*-msdosdjgpp*)
15347 # Override, as these systems have only a dummy fork() stub
15348 ac_cv_func_fork_works
=no
15351 ac_cv_func_fork_works
=yes
15354 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: result $ac_cv_func_fork_works guessed because of cross compilation" >&5
15355 $as_echo "$as_me: WARNING: result $ac_cv_func_fork_works guessed because of cross compilation" >&2;}
15357 ac_cv_func_vfork_works
=$ac_cv_func_vfork
15358 if test "x$ac_cv_func_vfork" = xyes
; then
15359 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working vfork" >&5
15360 $as_echo_n "checking for working vfork... " >&6; }
15361 if test "${ac_cv_func_vfork_works+set}" = set; then :
15362 $as_echo_n "(cached) " >&6
15364 if test "$cross_compiling" = yes; then :
15365 ac_cv_func_vfork_works
=cross
15367 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
15368 /* end confdefs.h. */
15369 /* Thanks to Paul Eggert for this test. */
15370 $ac_includes_default
15371 #include <sys/wait.h>
15372 #ifdef HAVE_VFORK_H
15373 # include <vfork.h>
15375 /* On some sparc systems, changes by the child to local and incoming
15376 argument registers are propagated back to the parent. The compiler
15377 is told about this with #include <vfork.h>, but some compilers
15378 (e.g. gcc -O) don't grok <vfork.h>. Test for this by using a
15379 static variable whose address is put into a register that is
15380 clobbered by the vfork. */
15383 sparc_address_test (int arg)
15385 sparc_address_test (arg) int arg;
15388 static pid_t child;
15406 pid_t parent = getpid ();
15409 sparc_address_test (0);
15414 /* Here is another test for sparc vfork register problems. This
15415 test uses lots of local variables, at least as many local
15416 variables as main has allocated so far including compiler
15417 temporaries. 4 locals are enough for gcc 1.40.3 on a Solaris
15418 4.1.3 sparc, but we use 8 to be safe. A buggy compiler should
15419 reuse the register of parent for one of the local variables,
15420 since it will think that parent can't possibly be used any more
15421 in this routine. Assigning to the local variable will thus
15422 munge parent in the parent process. */
15424 p = getpid(), p1 = getpid(), p2 = getpid(), p3 = getpid(),
15425 p4 = getpid(), p5 = getpid(), p6 = getpid(), p7 = getpid();
15426 /* Convince the compiler that p..p7 are live; otherwise, it might
15427 use the same hardware register for all 8 local variables. */
15428 if (p != p1 || p != p2 || p != p3 || p != p4
15429 || p != p5 || p != p6 || p != p7)
15432 /* On some systems (e.g. IRIX 3.3), vfork doesn't separate parent
15433 from child file descriptors. If the child closes a descriptor
15434 before it execs or exits, this munges the parent's descriptor
15435 as well. Test for this by closing stdout in the child. */
15436 _exit(close(fileno(stdout)) != 0);
15441 while (wait(&status) != child)
15444 /* Was there some problem with vforking? */
15447 /* Did the child fail? (This shouldn't happen.) */
15450 /* Did the vfork/compiler bug occur? */
15451 || parent != getpid()
15453 /* Did the file descriptor bug occur? */
15454 || fstat(fileno(stdout), &st) != 0
15459 if ac_fn_c_try_run
"$LINENO"; then :
15460 ac_cv_func_vfork_works
=yes
15462 ac_cv_func_vfork_works
=no
15464 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
15465 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
15469 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_vfork_works" >&5
15470 $as_echo "$ac_cv_func_vfork_works" >&6; }
15473 if test "x$ac_cv_func_fork_works" = xcross
; then
15474 ac_cv_func_vfork_works
=$ac_cv_func_vfork
15475 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: result $ac_cv_func_vfork_works guessed because of cross compilation" >&5
15476 $as_echo "$as_me: WARNING: result $ac_cv_func_vfork_works guessed because of cross compilation" >&2;}
15479 if test "x$ac_cv_func_vfork_works" = xyes
; then
15481 $as_echo "#define HAVE_WORKING_VFORK 1" >>confdefs.h
15485 $as_echo "#define vfork fork" >>confdefs.h
15488 if test "x$ac_cv_func_fork_works" = xyes
; then
15490 $as_echo "#define HAVE_WORKING_FORK 1" >>confdefs.h
15495 for ac_func
in snprintf
15497 ac_fn_c_check_func
"$LINENO" "snprintf" "ac_cv_func_snprintf"
15498 if test "x$ac_cv_func_snprintf" = x
""yes; then :
15499 cat >>confdefs.h
<<_ACEOF
15500 #define HAVE_SNPRINTF 1
15507 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for nl_langinfo and CODESET" >&5
15508 $as_echo_n "checking for nl_langinfo and CODESET... " >&6; }
15509 if test "${emacs_cv_langinfo_codeset+set}" = set; then :
15510 $as_echo_n "(cached) " >&6
15512 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
15513 /* end confdefs.h. */
15514 #include <langinfo.h>
15518 char* cs = nl_langinfo(CODESET);
15523 if ac_fn_c_try_link
"$LINENO"; then :
15524 emacs_cv_langinfo_codeset
=yes
15526 emacs_cv_langinfo_codeset
=no
15528 rm -f core conftest.err conftest.
$ac_objext \
15529 conftest
$ac_exeext conftest.
$ac_ext
15532 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $emacs_cv_langinfo_codeset" >&5
15533 $as_echo "$emacs_cv_langinfo_codeset" >&6; }
15534 if test $emacs_cv_langinfo_codeset = yes; then
15536 $as_echo "#define HAVE_LANGINFO_CODESET 1" >>confdefs.h
15540 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for mbstate_t" >&5
15541 $as_echo_n "checking for mbstate_t... " >&6; }
15542 if test "${ac_cv_type_mbstate_t+set}" = set; then :
15543 $as_echo_n "(cached) " >&6
15545 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
15546 /* end confdefs.h. */
15547 $ac_includes_default
15548 # include <wchar.h>
15552 mbstate_t x; return sizeof x;
15557 if ac_fn_c_try_compile
"$LINENO"; then :
15558 ac_cv_type_mbstate_t
=yes
15560 ac_cv_type_mbstate_t
=no
15562 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
15564 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_mbstate_t" >&5
15565 $as_echo "$ac_cv_type_mbstate_t" >&6; }
15566 if test $ac_cv_type_mbstate_t = yes; then
15568 $as_echo "#define HAVE_MBSTATE_T 1" >>confdefs.h
15572 $as_echo "#define mbstate_t int" >>confdefs.h
15576 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for C restricted array declarations" >&5
15577 $as_echo_n "checking for C restricted array declarations... " >&6; }
15578 if test "${emacs_cv_c_restrict_arr+set}" = set; then :
15579 $as_echo_n "(cached) " >&6
15581 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
15582 /* end confdefs.h. */
15583 void fred (int x[__restrict]);
15592 if ac_fn_c_try_compile
"$LINENO"; then :
15593 emacs_cv_c_restrict_arr
=yes
15595 emacs_cv_c_restrict_arr
=no
15597 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
15599 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $emacs_cv_c_restrict_arr" >&5
15600 $as_echo "$emacs_cv_c_restrict_arr" >&6; }
15601 if test "$emacs_cv_c_restrict_arr" = yes; then
15603 $as_echo "#define __restrict_arr __restrict" >>confdefs.h
15608 # Set up the CFLAGS for real compilation, so we can substitute it.
15609 CFLAGS
="$REAL_CFLAGS"
15610 CPPFLAGS
="$REAL_CPPFLAGS"
15612 ## Hack to detect a buggy GCC version.
15613 if test "x$GCC" = xyes \
15614 && test x
"`$CC --version 2> /dev/null | grep 'gcc.* 4.5.0'`" != x \
15615 && test x
"`echo $CFLAGS | grep '\-O[23]'`" != x \
15616 && test x
"`echo $CFLAGS | grep '\-fno-optimize-sibling-calls'`" = x
; then
15617 as_fn_error
"GCC 4.5.0 has problems compiling Emacs; see etc/PROBLEMS'." "$LINENO" 5
15620 version
=$PACKAGE_VERSION
15622 ### Specify what sort of things we'll be editing into Makefile and config.h.
15623 ### Use configuration here uncanonicalized to avoid exceeding size limits.
15647 ## FIXME? Nothing uses @LD_SWITCH_X_SITE@.
15648 ## src/Makefile.in did add LD_SWITCH_X_SITE (as a cpp define) to the
15649 ## end of LIBX_BASE, but nothing ever set it.
15654 ## Used in lwlib/Makefile.in.
15656 if test -n "${machfile}"; then
15657 M_FILE
="\$(srcdir)/${machfile}"
15661 S_FILE
="\$(srcdir)/${opsysfile}"
15672 cat >>confdefs.h
<<_ACEOF
15673 #define EMACS_CONFIGURATION "${canonical}"
15677 cat >>confdefs.h
<<_ACEOF
15678 #define EMACS_CONFIG_OPTIONS "${ac_configure_args}"
15681 if test -n "$machfile"; then
15683 cat >>confdefs.h
<<_ACEOF
15684 #define config_machfile "${machfile}"
15689 cat >>confdefs.h
<<_ACEOF
15690 #define config_opsysfile "${opsysfile}"
15697 if test "${HAVE_X_WINDOWS}" = "yes" ; then
15699 $as_echo "#define HAVE_X_WINDOWS 1" >>confdefs.h
15702 XOBJ
="xterm.o xfns.o xselect.o xrdb.o fontset.o xsmfns.o fringe.o image.o xsettings.o xgselect.o"
15704 if test "$HAVE_XFT" = "yes"; then
15705 FONT_OBJ
="$FONT_OBJ ftfont.o xftfont.o ftxfont.o"
15706 elif test "$HAVE_FREETYPE" = "yes"; then
15707 FONT_OBJ
="$FONT_OBJ ftfont.o ftxfont.o"
15717 if test "${USE_X_TOOLKIT}" != "none" ; then
15718 WIDGET_OBJ
=widget.o
15720 $as_echo "#define USE_X_TOOLKIT 1" >>confdefs.h
15722 if test "${USE_X_TOOLKIT}" = "LUCID"; then
15724 $as_echo "#define USE_LUCID 1" >>confdefs.h
15726 elif test "${USE_X_TOOLKIT}" = "MOTIF"; then
15728 $as_echo "#define USE_MOTIF 1" >>confdefs.h
15733 ## Paul Abrahams <abrahams at equinox.shaysnet.com> says this is needed.
15734 MOTIF_LIBW
="$MOTIF_LIBW -lXpm"
15738 ## Richard Anthony Ryan <ryanr at ellingtn.ftc.nrcs.usda.gov>
15739 ## says -lXimp is needed in UNIX_SV ... 4.2 1.1.2.
15740 MOTIF_LIBW
="MOTIF_LIBW -lXimp"
15744 ## olson@mcs.anl.gov says -li18n is needed by -lXm.
15745 MOTIF_LIBW
="$MOTIF_LIBW -li18n"
15748 MOTIF_LIBW
="$MOTIF_LIBW $LIBXP"
15754 case "$USE_X_TOOLKIT" in
15755 MOTIF
) TOOLKIT_LIBW
="$MOTIF_LIBW" ;;
15756 LUCID
) TOOLKIT_LIBW
="$LUCID_LIBW" ;;
15757 none
) test "x$HAVE_GTK" = "xyes" && TOOLKIT_LIBW
="$GTK_LIBS" ;;
15761 if test "$USE_X_TOOLKIT" = "none"; then
15762 LIBXT_OTHER
="\$(LIBXSM)"
15763 OLDXMENU_TARGET
="really-oldXMenu"
15765 LIBXT_OTHER
="\$(LIBXMU) -lXt \$(LIBXTR6) -lXext"
15766 OLDXMENU_TARGET
="really-lwlib"
15770 ## The X Menu stuff is present in the X10 distribution, but missing
15771 ## from X11. If we have X10, just use the installed library;
15772 ## otherwise, use our own copy.
15773 if test "${HAVE_X11}" = "yes" ; then
15775 $as_echo "#define HAVE_X11 1" >>confdefs.h
15778 if test "$USE_X_TOOLKIT" = "none"; then
15779 OLDXMENU
="\${oldXMenudir}/libXMenu11.a"
15781 OLDXMENU
="\${lwlibdir}/liblw.a"
15783 LIBXMENU
="\$(OLDXMENU)"
15784 LIBX_OTHER
="\$(LIBXT) \$(LIBX_EXTRA)"
15785 OLDXMENU_DEPS
="\${OLDXMENU} ../src/\${OLDXMENU}"
15787 ## For a syntactically valid Makefile; not actually used for anything.
15788 ## See comments in src/Makefile.in.
15790 ## FIXME This case (!HAVE_X11 && HAVE_X_WINDOWS) is no longer possible(?).
15791 if test "${HAVE_X_WINDOWS}" = "yes"; then
15800 if test "$HAVE_GTK" = "yes" ||
test "$HAVE_MENUS" != "yes"; then
15813 if test "${HAVE_MENUS}" = "yes" ; then
15815 $as_echo "#define HAVE_MENUS 1" >>confdefs.h
15819 if test "${GNU_MALLOC}" = "yes" ; then
15821 $as_echo "#define GNU_MALLOC 1" >>confdefs.h
15826 if test "${REL_ALLOC}" = "yes" ; then
15828 $as_echo "#define REL_ALLOC 1" >>confdefs.h
15831 test "$system_malloc" != "yes" && RALLOC_OBJ
=ralloc.o
15835 if test "$opsys" = "cygwin"; then
15836 CYGWIN_OBJ
="sheap.o"
15837 ## Cygwin differs because of its unexec().
15839 POST_ALLOC_OBJ
=lastfile.o
15842 PRE_ALLOC_OBJ
=lastfile.o
15849 # Configure gnulib here, now that we know LIBS.
15861 LIBC_FATAL_STDERR_
=1
15862 export LIBC_FATAL_STDERR_
15864 # The Ultrix 4.2 mips builtin alloca declared by alloca.h only works
15865 # for constant arguments. Useless!
15866 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working alloca.h" >&5
15867 $as_echo_n "checking for working alloca.h... " >&6; }
15868 if test "${ac_cv_working_alloca_h+set}" = set; then :
15869 $as_echo_n "(cached) " >&6
15871 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
15872 /* end confdefs.h. */
15873 #include <alloca.h>
15877 char *p = (char *) alloca (2 * sizeof (int));
15883 if ac_fn_c_try_link
"$LINENO"; then :
15884 ac_cv_working_alloca_h
=yes
15886 ac_cv_working_alloca_h
=no
15888 rm -f core conftest.err conftest.
$ac_objext \
15889 conftest
$ac_exeext conftest.
$ac_ext
15891 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_working_alloca_h" >&5
15892 $as_echo "$ac_cv_working_alloca_h" >&6; }
15893 if test $ac_cv_working_alloca_h = yes; then
15895 $as_echo "#define HAVE_ALLOCA_H 1" >>confdefs.h
15899 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for alloca" >&5
15900 $as_echo_n "checking for alloca... " >&6; }
15901 if test "${ac_cv_func_alloca_works+set}" = set; then :
15902 $as_echo_n "(cached) " >&6
15904 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
15905 /* end confdefs.h. */
15907 # define alloca __builtin_alloca
15910 # include <malloc.h>
15911 # define alloca _alloca
15913 # ifdef HAVE_ALLOCA_H
15914 # include <alloca.h>
15919 # ifndef alloca /* predefined by HP cc +Olibcalls */
15930 char *p = (char *) alloca (1);
15936 if ac_fn_c_try_link
"$LINENO"; then :
15937 ac_cv_func_alloca_works
=yes
15939 ac_cv_func_alloca_works
=no
15941 rm -f core conftest.err conftest.
$ac_objext \
15942 conftest
$ac_exeext conftest.
$ac_ext
15944 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_alloca_works" >&5
15945 $as_echo "$ac_cv_func_alloca_works" >&6; }
15947 if test $ac_cv_func_alloca_works = yes; then
15949 $as_echo "#define HAVE_ALLOCA 1" >>confdefs.h
15952 # The SVR3 libPW and SVR4 libucb both contain incompatible functions
15953 # that cause trouble. Some versions do not even contain alloca or
15954 # contain a buggy version. If you still want to use their alloca,
15955 # use ar to extract alloca.o from them instead of compiling alloca.c.
15961 ALLOCA
=\
${LIBOBJDIR}alloca.
$ac_objext
15963 $as_echo "#define C_ALLOCA 1" >>confdefs.h
15966 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether \`alloca.c' needs Cray hooks" >&5
15967 $as_echo_n "checking whether \`alloca.c' needs Cray hooks... " >&6; }
15968 if test "${ac_cv_os_cray+set}" = set; then :
15969 $as_echo_n "(cached) " >&6
15971 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
15972 /* end confdefs.h. */
15973 #if defined CRAY && ! defined CRAY2
15980 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
15981 $EGREP "webecray" >/dev
/null
2>&1; then :
15989 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_os_cray" >&5
15990 $as_echo "$ac_cv_os_cray" >&6; }
15991 if test $ac_cv_os_cray = yes; then
15992 for ac_func
in _getb67 GETB67 getb67
; do
15993 as_ac_var
=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
15994 ac_fn_c_check_func
"$LINENO" "$ac_func" "$as_ac_var"
15995 eval as_val
=\$
$as_ac_var
15996 if test "x$as_val" = x
""yes; then :
15998 cat >>confdefs.h
<<_ACEOF
15999 #define CRAY_STACKSEG_END $ac_func
16008 { $as_echo "$as_me:${as_lineno-$LINENO}: checking stack direction for C alloca" >&5
16009 $as_echo_n "checking stack direction for C alloca... " >&6; }
16010 if test "${ac_cv_c_stack_direction+set}" = set; then :
16011 $as_echo_n "(cached) " >&6
16013 if test "$cross_compiling" = yes; then :
16014 ac_cv_c_stack_direction
=0
16016 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
16017 /* end confdefs.h. */
16018 $ac_includes_default
16020 find_stack_direction (int *addr, int depth)
16022 int dir, dummy = 0;
16025 *addr = addr < &dummy ? 1 : addr == &dummy ? 0 : -1;
16026 dir = depth ? find_stack_direction (addr, depth - 1) : 0;
16027 return dir + dummy;
16031 main (int argc, char **argv)
16033 return find_stack_direction (0, argc + !argv + 20) < 0;
16036 if ac_fn_c_try_run
"$LINENO"; then :
16037 ac_cv_c_stack_direction
=1
16039 ac_cv_c_stack_direction
=-1
16041 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
16042 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
16046 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_stack_direction" >&5
16047 $as_echo "$ac_cv_c_stack_direction" >&6; }
16048 cat >>confdefs.h
<<_ACEOF
16049 #define STACK_DIRECTION $ac_cv_c_stack_direction
16058 for ac_func
in $ac_func_list
16060 as_ac_var
=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
16061 ac_fn_c_check_func
"$LINENO" "$ac_func" "$as_ac_var"
16062 eval as_val
=\$
$as_ac_var
16063 if test "x$as_val" = x
""yes; then :
16064 cat >>confdefs.h
<<_ACEOF
16065 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
16074 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether byte ordering is bigendian" >&5
16075 $as_echo_n "checking whether byte ordering is bigendian... " >&6; }
16076 if test "${ac_cv_c_bigendian+set}" = set; then :
16077 $as_echo_n "(cached) " >&6
16079 ac_cv_c_bigendian
=unknown
16080 # See if we're dealing with a universal compiler.
16081 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
16082 /* end confdefs.h. */
16083 #ifndef __APPLE_CC__
16084 not a universal capable compiler
16089 if ac_fn_c_try_compile
"$LINENO"; then :
16091 # Check for potential -arch flags. It is not universal unless
16092 # there are at least two -arch flags with different values.
16095 for ac_word
in $CC $CFLAGS $CPPFLAGS $LDFLAGS; do
16096 if test -n "$ac_prev"; then
16098 i?
86 | x86_64 | ppc | ppc64
)
16099 if test -z "$ac_arch" ||
test "$ac_arch" = "$ac_word"; then
16102 ac_cv_c_bigendian
=universal
16108 elif test "x$ac_word" = "x-arch"; then
16113 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
16114 if test $ac_cv_c_bigendian = unknown
; then
16115 # See if sys/param.h defines the BYTE_ORDER macro.
16116 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
16117 /* end confdefs.h. */
16118 #include <sys/types.h>
16119 #include <sys/param.h>
16124 #if ! (defined BYTE_ORDER && defined BIG_ENDIAN \
16125 && defined LITTLE_ENDIAN && BYTE_ORDER && BIG_ENDIAN \
16127 bogus endian macros
16134 if ac_fn_c_try_compile
"$LINENO"; then :
16135 # It does; now see whether it defined to BIG_ENDIAN or not.
16136 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
16137 /* end confdefs.h. */
16138 #include <sys/types.h>
16139 #include <sys/param.h>
16144 #if BYTE_ORDER != BIG_ENDIAN
16152 if ac_fn_c_try_compile
"$LINENO"; then :
16153 ac_cv_c_bigendian
=yes
16155 ac_cv_c_bigendian
=no
16157 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
16159 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
16161 if test $ac_cv_c_bigendian = unknown
; then
16162 # See if <limits.h> defines _LITTLE_ENDIAN or _BIG_ENDIAN (e.g., Solaris).
16163 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
16164 /* end confdefs.h. */
16165 #include <limits.h>
16170 #if ! (defined _LITTLE_ENDIAN || defined _BIG_ENDIAN)
16171 bogus endian macros
16178 if ac_fn_c_try_compile
"$LINENO"; then :
16179 # It does; now see whether it defined to _BIG_ENDIAN or not.
16180 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
16181 /* end confdefs.h. */
16182 #include <limits.h>
16187 #ifndef _BIG_ENDIAN
16195 if ac_fn_c_try_compile
"$LINENO"; then :
16196 ac_cv_c_bigendian
=yes
16198 ac_cv_c_bigendian
=no
16200 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
16202 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
16204 if test $ac_cv_c_bigendian = unknown
; then
16205 # Compile a test program.
16206 if test "$cross_compiling" = yes; then :
16207 # Try to guess by grepping values from an object file.
16208 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
16209 /* end confdefs.h. */
16210 short int ascii_mm[] =
16211 { 0x4249, 0x4765, 0x6E44, 0x6961, 0x6E53, 0x7953, 0 };
16212 short int ascii_ii[] =
16213 { 0x694C, 0x5454, 0x656C, 0x6E45, 0x6944, 0x6E61, 0 };
16214 int use_ascii (int i) {
16215 return ascii_mm[i] + ascii_ii[i];
16217 short int ebcdic_ii[] =
16218 { 0x89D3, 0xE3E3, 0x8593, 0x95C5, 0x89C4, 0x9581, 0 };
16219 short int ebcdic_mm[] =
16220 { 0xC2C9, 0xC785, 0x95C4, 0x8981, 0x95E2, 0xA8E2, 0 };
16221 int use_ebcdic (int i) {
16222 return ebcdic_mm[i] + ebcdic_ii[i];
16229 return use_ascii (foo) == use_ebcdic (foo);
16234 if ac_fn_c_try_compile
"$LINENO"; then :
16235 if grep BIGenDianSyS conftest.
$ac_objext >/dev
/null
; then
16236 ac_cv_c_bigendian
=yes
16238 if grep LiTTleEnDian conftest.
$ac_objext >/dev
/null
; then
16239 if test "$ac_cv_c_bigendian" = unknown
; then
16240 ac_cv_c_bigendian
=no
16242 # finding both strings is unlikely to happen, but who knows?
16243 ac_cv_c_bigendian
=unknown
16247 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
16249 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
16250 /* end confdefs.h. */
16251 $ac_includes_default
16256 /* Are we little or big endian? From Harbison&Steele. */
16260 char c[sizeof (long int)];
16263 return u.c[sizeof (long int) - 1] == 1;
16269 if ac_fn_c_try_run
"$LINENO"; then :
16270 ac_cv_c_bigendian
=no
16272 ac_cv_c_bigendian
=yes
16274 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
16275 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
16280 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_bigendian" >&5
16281 $as_echo "$ac_cv_c_bigendian" >&6; }
16282 case $ac_cv_c_bigendian in #(
16284 $as_echo "#define WORDS_BIGENDIAN 1" >>confdefs.h
16290 $as_echo "#define AC_APPLE_UNIVERSAL_BUILD 1" >>confdefs.h
16294 as_fn_error
"unknown endianness
16295 presetting ac_cv_c_bigendian=no (or yes) will help" "$LINENO" 5 ;;
16299 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for inline" >&5
16300 $as_echo_n "checking for inline... " >&6; }
16301 if test "${ac_cv_c_inline+set}" = set; then :
16302 $as_echo_n "(cached) " >&6
16305 for ac_kw
in inline __inline__ __inline
; do
16306 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
16307 /* end confdefs.h. */
16308 #ifndef __cplusplus
16310 static $ac_kw foo_t static_foo () {return 0; }
16311 $ac_kw foo_t foo () {return 0; }
16315 if ac_fn_c_try_compile
"$LINENO"; then :
16316 ac_cv_c_inline
=$ac_kw
16318 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
16319 test "$ac_cv_c_inline" != no
&& break
16323 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_inline" >&5
16324 $as_echo "$ac_cv_c_inline" >&6; }
16326 case $ac_cv_c_inline in
16329 case $ac_cv_c_inline in
16331 *) ac_val
=$ac_cv_c_inline;;
16333 cat >>confdefs.h
<<_ACEOF
16334 #ifndef __cplusplus
16335 #define inline $ac_val
16342 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether strtold conforms to C99" >&5
16343 $as_echo_n "checking whether strtold conforms to C99... " >&6; }
16344 if test "${gl_cv_func_c99_strtold+set}" = set; then :
16345 $as_echo_n "(cached) " >&6
16347 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
16348 /* end confdefs.h. */
16349 /* On HP-UX before 11.23, strtold returns a struct instead of
16350 long double. Reject implementations like that, by requiring
16351 compatibility with the C99 prototype. */
16352 #include <stdlib.h>
16353 static long double (*p) (char const *, char **) = strtold;
16355 test (char const *nptr, char **endptr)
16358 r = strtold (nptr, endptr);
16364 return test ("1.0", NULL) != 1 || p ("1.0", NULL) != 1;
16369 if ac_fn_c_try_link
"$LINENO"; then :
16370 gl_cv_func_c99_strtold
=yes
16372 gl_cv_func_c99_strtold
=no
16374 rm -f core conftest.err conftest.
$ac_objext \
16375 conftest
$ac_exeext conftest.
$ac_ext
16377 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_c99_strtold" >&5
16378 $as_echo "$gl_cv_func_c99_strtold" >&6; }
16379 if test $gl_cv_func_c99_strtold = yes; then
16381 $as_echo "#define HAVE_C99_STRTOLD 1" >>confdefs.h
16393 GNULIB_EUIDACCESS
=0;
16394 GNULIB_FACCESSAT
=0;
16397 GNULIB_FDATASYNC
=0;
16399 GNULIB_FTRUNCATE
=0;
16401 GNULIB_GETDOMAINNAME
=0;
16402 GNULIB_GETDTABLESIZE
=0;
16403 GNULIB_GETGROUPS
=0;
16404 GNULIB_GETHOSTNAME
=0;
16406 GNULIB_GETLOGIN_R
=0;
16407 GNULIB_GETPAGESIZE
=0;
16408 GNULIB_GETUSERSHELL
=0;
16409 GNULIB_GROUP_MEMBER
=0;
16420 GNULIB_READLINKAT
=0;
16424 GNULIB_SYMLINKAT
=0;
16425 GNULIB_TTYNAME_R
=0;
16426 GNULIB_UNISTD_H_GETOPT
=0;
16427 GNULIB_UNISTD_H_NONBLOCKING
=0;
16428 GNULIB_UNISTD_H_SIGPIPE
=0;
16443 HAVE_GETDTABLESIZE
=1;
16445 HAVE_GETHOSTNAME
=1;
16447 HAVE_GETPAGESIZE
=1;
16448 HAVE_GROUP_MEMBER
=1;
16463 HAVE_DECL_ENVIRON
=1;
16464 HAVE_DECL_FCHDIR
=1;
16465 HAVE_DECL_FDATASYNC
=1;
16466 HAVE_DECL_GETDOMAINNAME
=1;
16467 HAVE_DECL_GETLOGIN_R
=1;
16468 HAVE_DECL_GETPAGESIZE
=1;
16469 HAVE_DECL_GETUSERSHELL
=1;
16470 HAVE_DECL_TTYNAME_R
=1;
16472 HAVE_SYS_PARAM_H
=0;
16477 REPLACE_FCHOWNAT
=0;
16479 REPLACE_GETDOMAINNAME
=0;
16480 REPLACE_GETLOGIN_R
=0;
16481 REPLACE_GETGROUPS
=0;
16482 REPLACE_GETPAGESIZE
=0;
16490 REPLACE_READLINK
=0;
16494 REPLACE_TTYNAME_R
=0;
16496 REPLACE_UNLINKAT
=0;
16499 UNISTD_H_HAVE_WINSOCK2_H
=0;
16500 UNISTD_H_HAVE_WINSOCK2_H_AND_USE_SOCKETS
=0;
16503 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for st_dm_mode in struct stat" >&5
16504 $as_echo_n "checking for st_dm_mode in struct stat... " >&6; }
16505 if test "${ac_cv_struct_st_dm_mode+set}" = set; then :
16506 $as_echo_n "(cached) " >&6
16508 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
16509 /* end confdefs.h. */
16511 #include <sys/types.h>
16512 #include <sys/stat.h>
16516 struct stat s; s.st_dm_mode;
16521 if ac_fn_c_try_compile
"$LINENO"; then :
16522 ac_cv_struct_st_dm_mode
=yes
16524 ac_cv_struct_st_dm_mode
=no
16526 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
16528 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_struct_st_dm_mode" >&5
16529 $as_echo "$ac_cv_struct_st_dm_mode" >&6; }
16531 if test $ac_cv_struct_st_dm_mode = yes; then
16533 $as_echo "#define HAVE_ST_DM_MODE 1" >>confdefs.h
16538 ac_fn_c_check_decl
"$LINENO" "strmode" "ac_cv_have_decl_strmode" "$ac_includes_default"
16539 if test "x$ac_cv_have_decl_strmode" = x
""yes; then :
16545 cat >>confdefs.h
<<_ACEOF
16546 #define HAVE_DECL_STRMODE $ac_have_decl
16552 GNULIB_CALLOC_POSIX
=0;
16553 GNULIB_CANONICALIZE_FILE_NAME
=0;
16554 GNULIB_GETLOADAVG
=0;
16555 GNULIB_GETSUBOPT
=0;
16557 GNULIB_MALLOC_POSIX
=0;
16561 GNULIB_MKOSTEMPS
=0;
16567 GNULIB_REALLOC_POSIX
=0;
16574 GNULIB_SYSTEM_POSIX
=0;
16580 HAVE_CANONICALIZE_FILE_NAME
=1;
16581 HAVE_DECL_GETLOADAVG
=1;
16595 HAVE_DECL_SETENV
=1;
16599 HAVE_STRUCT_RANDOM_DATA
=1;
16600 HAVE_SYS_LOADAVG_H
=0;
16602 HAVE_DECL_UNSETENV
=1;
16604 REPLACE_CANONICALIZE_FILE_NAME
=0;
16610 REPLACE_REALPATH
=0;
16613 REPLACE_UNSETENV
=0;
16618 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the preprocessor supports include_next" >&5
16619 $as_echo_n "checking whether the preprocessor supports include_next... " >&6; }
16620 if test "${gl_cv_have_include_next+set}" = set; then :
16621 $as_echo_n "(cached) " >&6
16623 rm -rf conftestd1a conftestd1b conftestd2
16624 mkdir conftestd1a conftestd1b conftestd2
16625 cat <<EOF > conftestd1a/conftest.h
16626 #define DEFINED_IN_CONFTESTD1
16627 #include_next <conftest.h>
16628 #ifdef DEFINED_IN_CONFTESTD2
16631 #error "include_next doesn't work"
16634 cat <<EOF > conftestd1b/conftest.h
16635 #define DEFINED_IN_CONFTESTD1
16637 #include_next <conftest.h>
16638 #ifdef DEFINED_IN_CONFTESTD2
16641 #error "include_next doesn't work"
16644 cat <<EOF > conftestd2/conftest.h
16645 #ifndef DEFINED_IN_CONFTESTD1
16646 #error "include_next test doesn't work"
16648 #define DEFINED_IN_CONFTESTD2
16650 gl_save_CPPFLAGS
="$CPPFLAGS"
16651 CPPFLAGS
="$gl_save_CPPFLAGS -Iconftestd1b -Iconftestd2"
16652 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
16653 /* end confdefs.h. */
16654 #include <conftest.h>
16656 if ac_fn_c_try_compile
"$LINENO"; then :
16657 gl_cv_have_include_next
=yes
16659 CPPFLAGS
="$gl_save_CPPFLAGS -Iconftestd1a -Iconftestd2"
16660 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
16661 /* end confdefs.h. */
16662 #include <conftest.h>
16664 if ac_fn_c_try_compile
"$LINENO"; then :
16665 gl_cv_have_include_next
=buggy
16667 gl_cv_have_include_next
=no
16669 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
16672 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
16673 CPPFLAGS
="$gl_save_CPPFLAGS"
16674 rm -rf conftestd1a conftestd1b conftestd2
16677 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_have_include_next" >&5
16678 $as_echo "$gl_cv_have_include_next" >&6; }
16679 PRAGMA_SYSTEM_HEADER
=
16680 if test $gl_cv_have_include_next = yes; then
16681 INCLUDE_NEXT
=include_next
16682 INCLUDE_NEXT_AS_FIRST_DIRECTIVE
=include_next
16683 if test -n "$GCC"; then
16684 PRAGMA_SYSTEM_HEADER
='#pragma GCC system_header'
16687 if test $gl_cv_have_include_next = buggy
; then
16688 INCLUDE_NEXT
=include
16689 INCLUDE_NEXT_AS_FIRST_DIRECTIVE
=include_next
16691 INCLUDE_NEXT
=include
16692 INCLUDE_NEXT_AS_FIRST_DIRECTIVE
=include
16698 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether system header files limit the line length" >&5
16699 $as_echo_n "checking whether system header files limit the line length... " >&6; }
16700 if test "${gl_cv_pragma_columns+set}" = set; then :
16701 $as_echo_n "(cached) " >&6
16703 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
16704 /* end confdefs.h. */
16711 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
16712 $EGREP "choke me" >/dev
/null
2>&1; then :
16713 gl_cv_pragma_columns
=yes
16715 gl_cv_pragma_columns
=no
16721 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_pragma_columns" >&5
16722 $as_echo "$gl_cv_pragma_columns" >&6; }
16723 if test $gl_cv_pragma_columns = yes; then
16724 PRAGMA_COLUMNS
="#pragma COLUMNS 10000"
16745 if test $gl_cv_have_include_next = yes; then
16746 gl_cv_next_getopt_h
='<'getopt.h
'>'
16748 { $as_echo "$as_me:${as_lineno-$LINENO}: checking absolute name of <getopt.h>" >&5
16749 $as_echo_n "checking absolute name of <getopt.h>... " >&6; }
16750 if test "${gl_cv_next_getopt_h+set}" = set; then :
16751 $as_echo_n "(cached) " >&6
16754 if test $ac_cv_header_getopt_h = yes; then
16757 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
16758 /* end confdefs.h. */
16759 #include <getopt.h>
16763 aix
*) gl_absname_cpp
="$ac_cpp -C" ;;
16764 *) gl_absname_cpp
="$ac_cpp" ;;
16769 gl_dirsep_regex
='[/\\]'
16772 gl_dirsep_regex
='/'
16776 gl_absolute_header_sed
='\|'"${gl_dirsep_regex}"'getopt.h|{
16777 s|.*"\(.*'"${gl_dirsep_regex}"'getopt.h\)".*|\1|
16782 gl_cv_next_getopt_h
='"'`(eval "$gl_absname_cpp conftest.$ac_ext") 2>&5 |
16783 sed -n "$gl_absolute_header_sed"`'"'
16785 gl_cv_next_getopt_h
='<'getopt.h
'>'
16790 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_next_getopt_h" >&5
16791 $as_echo "$gl_cv_next_getopt_h" >&6; }
16793 NEXT_GETOPT_H
=$gl_cv_next_getopt_h
16795 if test $gl_cv_have_include_next = yes ||
test $gl_cv_have_include_next = buggy
; then
16796 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include_next'
16797 gl_next_as_first_directive
='<'getopt.h
'>'
16799 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include'
16800 gl_next_as_first_directive
=$gl_cv_next_getopt_h
16802 NEXT_AS_FIRST_DIRECTIVE_GETOPT_H
=$gl_next_as_first_directive
16807 if test $ac_cv_header_getopt_h = yes; then
16816 if test -z "$gl_replace_getopt" && test $gl_getopt_required = GNU
; then
16817 for ac_header
in getopt.h
16819 ac_fn_c_check_header_mongrel
"$LINENO" "getopt.h" "ac_cv_header_getopt_h" "$ac_includes_default"
16820 if test "x$ac_cv_header_getopt_h" = x
""yes; then :
16821 cat >>confdefs.h
<<_ACEOF
16822 #define HAVE_GETOPT_H 1
16826 gl_replace_getopt
=yes
16833 if test -z "$gl_replace_getopt" && test $gl_getopt_required = GNU
; then
16834 for ac_func
in getopt_long_only
16836 ac_fn_c_check_func
"$LINENO" "getopt_long_only" "ac_cv_func_getopt_long_only"
16837 if test "x$ac_cv_func_getopt_long_only" = x
""yes; then :
16838 cat >>confdefs.h
<<_ACEOF
16839 #define HAVE_GETOPT_LONG_ONLY 1
16843 gl_replace_getopt
=yes
16849 if test -z "$gl_replace_getopt"; then
16850 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether getopt is POSIX compatible" >&5
16851 $as_echo_n "checking whether getopt is POSIX compatible... " >&6; }
16852 if test "${gl_cv_func_getopt_posix+set}" = set; then :
16853 $as_echo_n "(cached) " >&6
16856 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
16857 /* end confdefs.h. */
16858 #include <unistd.h>
16862 int *p = &optreset; return optreset;
16867 if ac_fn_c_try_link
"$LINENO"; then :
16870 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
16871 /* end confdefs.h. */
16872 #include <getopt.h>
16876 return !getopt_clip;
16881 if ac_fn_c_try_compile
"$LINENO"; then :
16886 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
16888 rm -f core conftest.err conftest.
$ac_objext \
16889 conftest
$ac_exeext conftest.
$ac_ext
16891 gl_save_CPPFLAGS
=$CPPFLAGS
16892 CPPFLAGS
="$CPPFLAGS -DOPTIND_MIN=$gl_optind_min"
16893 if test "$cross_compiling" = yes; then :
16895 mingw
*) gl_cv_func_getopt_posix
="guessing no";;
16896 darwin
* | aix
*) gl_cv_func_getopt_posix
="guessing no";;
16897 *) gl_cv_func_getopt_posix
="guessing yes";;
16901 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
16902 /* end confdefs.h. */
16904 #include <unistd.h>
16905 #include <stdlib.h>
16906 #include <string.h>
16912 static char program[] = "program";
16913 static char a[] = "-a";
16914 static char foo[] = "foo";
16915 static char bar[] = "bar";
16916 char *argv[] = { program, a, foo, bar, NULL };
16919 optind = OPTIND_MIN;
16922 c = getopt (4, argv, "ab");
16925 c = getopt (4, argv, "ab");
16928 if (!(optind == 2))
16931 /* Some internal state exists at this point. */
16933 static char program[] = "program";
16934 static char donald[] = "donald";
16935 static char p[] = "-p";
16936 static char billy[] = "billy";
16937 static char duck[] = "duck";
16938 static char a[] = "-a";
16939 static char bar[] = "bar";
16940 char *argv[] = { program, donald, p, billy, duck, a, bar, NULL };
16943 optind = OPTIND_MIN;
16946 c = getopt (7, argv, "+abp:q:");
16949 if (!(strcmp (argv[0], "program") == 0))
16951 if (!(strcmp (argv[1], "donald") == 0))
16953 if (!(strcmp (argv[2], "-p") == 0))
16955 if (!(strcmp (argv[3], "billy") == 0))
16957 if (!(strcmp (argv[4], "duck") == 0))
16959 if (!(strcmp (argv[5], "-a") == 0))
16961 if (!(strcmp (argv[6], "bar") == 0))
16963 if (!(optind == 1))
16966 /* Detect MacOS 10.5, AIX 7.1 bug. */
16968 static char program[] = "program";
16969 static char ab[] = "-ab";
16970 char *argv[3] = { program, ab, NULL };
16971 optind = OPTIND_MIN;
16973 if (getopt (2, argv, "ab:") != 'a')
16975 if (getopt (2, argv, "ab:") != '?')
16987 if ac_fn_c_try_run
"$LINENO"; then :
16988 gl_cv_func_getopt_posix
=yes
16990 gl_cv_func_getopt_posix
=no
16992 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
16993 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
16996 CPPFLAGS
=$gl_save_CPPFLAGS
16999 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_getopt_posix" >&5
17000 $as_echo "$gl_cv_func_getopt_posix" >&6; }
17001 case "$gl_cv_func_getopt_posix" in
17002 *no
) gl_replace_getopt
=yes ;;
17006 if test -z "$gl_replace_getopt" && test $gl_getopt_required = GNU
; then
17007 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working GNU getopt function" >&5
17008 $as_echo_n "checking for working GNU getopt function... " >&6; }
17009 if test "${gl_cv_func_getopt_gnu+set}" = set; then :
17010 $as_echo_n "(cached) " >&6
17012 # Even with POSIXLY_CORRECT, the GNU extension of leading '-' in the
17013 # optstring is necessary for programs like m4 that have POSIX-mandated
17014 # semantics for supporting options interspersed with files.
17015 # Also, since getopt_long is a GNU extension, we require optind=0.
17016 # Bash ties 'set -o posix' to a non-exported POSIXLY_CORRECT;
17017 # so take care to revert to the correct (non-)export state.
17018 gl_awk_probe
='BEGIN { if ("POSIXLY_CORRECT" in ENVIRON) print "x" }'
17019 case ${POSIXLY_CORRECT+x}`$AWK "$gl_awk_probe" </dev/null` in
17020 xx
) gl_had_POSIXLY_CORRECT
=exported
;;
17021 x
) gl_had_POSIXLY_CORRECT
=yes ;;
17022 *) gl_had_POSIXLY_CORRECT
= ;;
17025 export POSIXLY_CORRECT
17026 if test "$cross_compiling" = yes; then :
17027 case $host_os:$ac_cv_have_decl_optreset in
17028 *-gnu*:* | mingw
*:*) gl_cv_func_getopt_gnu
=no
;;
17029 *:yes) gl_cv_func_getopt_gnu
=no
;;
17030 *) gl_cv_func_getopt_gnu
=yes;;
17034 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
17035 /* end confdefs.h. */
17036 #include <getopt.h>
17037 #include <stddef.h>
17038 #include <string.h>
17040 #include <stdlib.h>
17041 #if defined __MACH__ && defined __APPLE__
17042 /* Avoid a crash on MacOS X. */
17043 #include <mach/mach.h>
17044 #include <mach/mach_error.h>
17045 #include <mach/thread_status.h>
17046 #include <mach/exception.h>
17047 #include <mach/task.h>
17048 #include <pthread.h>
17049 /* The exception port on which our thread listens. */
17050 static mach_port_t our_exception_port;
17051 /* The main function of the thread listening for exceptions of type
17054 mach_exception_thread (void *arg)
17056 /* Buffer for a message to be received. */
17058 mach_msg_header_t head;
17059 mach_msg_body_t msgh_body;
17062 mach_msg_return_t retval;
17063 /* Wait for a message on the exception port. */
17064 retval = mach_msg (&msg.head, MACH_RCV_MSG | MACH_RCV_LARGE, 0, sizeof (msg),
17065 our_exception_port, MACH_MSG_TIMEOUT_NONE, MACH_PORT_NULL);
17066 if (retval != MACH_MSG_SUCCESS)
17071 nocrash_init (void)
17073 mach_port_t self = mach_task_self ();
17074 /* Allocate a port on which the thread shall listen for exceptions. */
17075 if (mach_port_allocate (self, MACH_PORT_RIGHT_RECEIVE, &our_exception_port)
17077 /* See http://web.mit.edu/darwin/src/modules/xnu/osfmk/man/mach_port_insert_right.html. */
17078 if (mach_port_insert_right (self, our_exception_port, our_exception_port,
17079 MACH_MSG_TYPE_MAKE_SEND)
17081 /* The exceptions we want to catch. Only EXC_BAD_ACCESS is interesting
17083 exception_mask_t mask = EXC_MASK_BAD_ACCESS;
17084 /* Create the thread listening on the exception port. */
17085 pthread_attr_t attr;
17087 if (pthread_attr_init (&attr) == 0
17088 && pthread_attr_setdetachstate (&attr, PTHREAD_CREATE_DETACHED) == 0
17089 && pthread_create (&thread, &attr, mach_exception_thread, NULL) == 0) {
17090 pthread_attr_destroy (&attr);
17091 /* Replace the exception port info for these exceptions with our own.
17092 Note that we replace the exception port for the entire task, not only
17093 for a particular thread. This has the effect that when our exception
17094 port gets the message, the thread specific exception port has already
17095 been asked, and we don't need to bother about it.
17096 See http://web.mit.edu/darwin/src/modules/xnu/osfmk/man/task_set_exception_ports.html. */
17097 task_set_exception_ports (self, mask, our_exception_port,
17098 EXCEPTION_DEFAULT, MACHINE_THREAD_STATE);
17103 #elif (defined _WIN32 || defined __WIN32__) && ! defined __CYGWIN__
17104 /* Avoid a crash on native Windows. */
17105 #define WIN32_LEAN_AND_MEAN
17106 #include <windows.h>
17107 #include <winerror.h>
17109 exception_filter (EXCEPTION_POINTERS *ExceptionInfo)
17111 switch (ExceptionInfo->ExceptionRecord->ExceptionCode)
17113 case EXCEPTION_ACCESS_VIOLATION:
17114 case EXCEPTION_IN_PAGE_ERROR:
17115 case EXCEPTION_STACK_OVERFLOW:
17116 case EXCEPTION_GUARD_PAGE:
17117 case EXCEPTION_PRIV_INSTRUCTION:
17118 case EXCEPTION_ILLEGAL_INSTRUCTION:
17119 case EXCEPTION_DATATYPE_MISALIGNMENT:
17120 case EXCEPTION_ARRAY_BOUNDS_EXCEEDED:
17121 case EXCEPTION_NONCONTINUABLE_EXCEPTION:
17124 return EXCEPTION_CONTINUE_SEARCH;
17127 nocrash_init (void)
17129 SetUnhandledExceptionFilter ((LPTOP_LEVEL_EXCEPTION_FILTER) exception_filter);
17132 /* Avoid a crash on POSIX systems. */
17133 #include <signal.h>
17134 /* A POSIX signal handler. */
17136 exception_handler (int sig)
17141 nocrash_init (void)
17144 signal (SIGSEGV, exception_handler);
17147 signal (SIGBUS, exception_handler);
17161 /* This code succeeds on glibc 2.8, OpenBSD 4.0, Cygwin, mingw,
17162 and fails on MacOS X 10.5, AIX 5.2, HP-UX 11, IRIX 6.5,
17163 OSF/1 5.1, Solaris 10. */
17165 static char conftest[] = "conftest";
17166 static char plus[] = "-+";
17167 char *argv[3] = { conftest, plus, NULL };
17169 if (getopt (2, argv, "+a") != '?')
17172 /* This code succeeds on glibc 2.8, mingw,
17173 and fails on MacOS X 10.5, OpenBSD 4.0, AIX 5.2, HP-UX 11,
17174 IRIX 6.5, OSF/1 5.1, Solaris 10, Cygwin 1.5.x. */
17176 static char program[] = "program";
17177 static char p[] = "-p";
17178 static char foo[] = "foo";
17179 static char bar[] = "bar";
17180 char *argv[] = { program, p, foo, bar, NULL };
17183 if (getopt (4, argv, "p::") != 'p')
17185 else if (optarg != NULL)
17187 else if (getopt (4, argv, "p::") != -1)
17189 else if (optind != 2)
17192 /* This code succeeds on glibc 2.8 and fails on Cygwin 1.7.0. */
17194 static char program[] = "program";
17195 static char foo[] = "foo";
17196 static char p[] = "-p";
17197 char *argv[] = { program, foo, p, NULL };
17199 if (getopt (3, argv, "-p") != 1)
17201 else if (getopt (3, argv, "-p") != 'p')
17204 /* This code fails on glibc 2.11. */
17206 static char program[] = "program";
17207 static char b[] = "-b";
17208 static char a[] = "-a";
17209 char *argv[] = { program, b, a, NULL };
17210 optind = opterr = 0;
17211 if (getopt (3, argv, "+:a:b") != 'b')
17213 else if (getopt (3, argv, "+:a:b") != ':')
17216 /* This code dumps core on glibc 2.14. */
17218 static char program[] = "program";
17219 static char w[] = "-W";
17220 static char dummy[] = "dummy";
17221 char *argv[] = { program, w, dummy, NULL };
17222 optind = opterr = 1;
17223 if (getopt (3, argv, "W;") != 'W')
17232 if ac_fn_c_try_run
"$LINENO"; then :
17233 gl_cv_func_getopt_gnu
=yes
17235 gl_cv_func_getopt_gnu
=no
17237 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
17238 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
17241 case $gl_had_POSIXLY_CORRECT in
17243 yes) { POSIXLY_CORRECT
=; unset POSIXLY_CORRECT
;}; POSIXLY_CORRECT
=1 ;;
17244 *) { POSIXLY_CORRECT
=; unset POSIXLY_CORRECT
;} ;;
17248 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_getopt_gnu" >&5
17249 $as_echo "$gl_cv_func_getopt_gnu" >&6; }
17250 if test "$gl_cv_func_getopt_gnu" = "no"; then
17251 gl_replace_getopt
=yes
17262 if test -n "$gl_replace_getopt"; then :
17269 if test $REPLACE_GETOPT = 1; then
17273 $as_echo "#define __GETOPT_PREFIX rpl_" >>confdefs.h
17277 GNULIB_UNISTD_H_GETOPT
=1
17280 ac_fn_c_check_decl
"$LINENO" "getenv" "ac_cv_have_decl_getenv" "$ac_includes_default"
17281 if test "x$ac_cv_have_decl_getenv" = x
""yes; then :
17287 cat >>confdefs.h
<<_ACEOF
17288 #define HAVE_DECL_GETENV $ac_have_decl
17292 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for unsigned long long int" >&5
17293 $as_echo_n "checking for unsigned long long int... " >&6; }
17294 if test "${ac_cv_type_unsigned_long_long_int+set}" = set; then :
17295 $as_echo_n "(cached) " >&6
17297 ac_cv_type_unsigned_long_long_int
=yes
17298 if test "x${ac_cv_prog_cc_c99-no}" = xno
; then
17299 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
17300 /* end confdefs.h. */
17302 /* For now, do not test the preprocessor; as of 2007 there are too many
17303 implementations with broken preprocessors. Perhaps this can
17304 be revisited in 2012. In the meantime, code should not expect
17305 #if to work with literals wider than 32 bits. */
17306 /* Test literals. */
17307 long long int ll = 9223372036854775807ll;
17308 long long int nll = -9223372036854775807LL;
17309 unsigned long long int ull = 18446744073709551615ULL;
17310 /* Test constant expressions. */
17311 typedef int a[((-9223372036854775807LL < 0 && 0 < 9223372036854775807ll)
17313 typedef int b[(18446744073709551615ULL <= (unsigned long long int) -1
17319 /* Test availability of runtime routines for shift and division. */
17320 long long int llmax = 9223372036854775807ll;
17321 unsigned long long int ullmax = 18446744073709551615ull;
17322 return ((ll << 63) | (ll >> 63) | (ll < i) | (ll > i)
17323 | (llmax / ll) | (llmax % ll)
17324 | (ull << 63) | (ull >> 63) | (ull << i) | (ull >> i)
17325 | (ullmax / ull) | (ullmax % ull));
17331 if ac_fn_c_try_link
"$LINENO"; then :
17334 ac_cv_type_unsigned_long_long_int
=no
17336 rm -f core conftest.err conftest.
$ac_objext \
17337 conftest
$ac_exeext conftest.
$ac_ext
17340 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_unsigned_long_long_int" >&5
17341 $as_echo "$ac_cv_type_unsigned_long_long_int" >&6; }
17342 if test $ac_cv_type_unsigned_long_long_int = yes; then
17344 $as_echo "#define HAVE_UNSIGNED_LONG_LONG_INT 1" >>confdefs.h
17350 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for long long int" >&5
17351 $as_echo_n "checking for long long int... " >&6; }
17352 if test "${ac_cv_type_long_long_int+set}" = set; then :
17353 $as_echo_n "(cached) " >&6
17355 ac_cv_type_long_long_int
=yes
17356 if test "x${ac_cv_prog_cc_c99-no}" = xno
; then
17357 ac_cv_type_long_long_int
=$ac_cv_type_unsigned_long_long_int
17358 if test $ac_cv_type_long_long_int = yes; then
17359 if test "$cross_compiling" = yes; then :
17362 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
17363 /* end confdefs.h. */
17364 #include <limits.h>
17367 (1LL << (sizeof (long long int) * CHAR_BIT - 2))
17368 # define LLONG_MAX (HALF - 1 + HALF)
17373 long long int n = 1;
17377 long long int m = n << i;
17380 if (LLONG_MAX / 2 < m)
17388 if ac_fn_c_try_run
"$LINENO"; then :
17391 ac_cv_type_long_long_int
=no
17393 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
17394 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
17400 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_long_long_int" >&5
17401 $as_echo "$ac_cv_type_long_long_int" >&6; }
17402 if test $ac_cv_type_long_long_int = yes; then
17404 $as_echo "#define HAVE_LONG_LONG_INT 1" >>confdefs.h
17413 gl_cv_c_multiarch
=no
17414 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
17415 /* end confdefs.h. */
17416 #ifndef __APPLE_CC__
17417 not a universal capable compiler
17422 if ac_fn_c_try_compile
"$LINENO"; then :
17426 for word
in ${CC} ${CFLAGS} ${CPPFLAGS} ${LDFLAGS}; do
17427 if test -n "$prev"; then
17429 i?
86 | x86_64 | ppc | ppc64
)
17430 if test -z "$arch" ||
test "$arch" = "$word"; then
17433 gl_cv_c_multiarch
=yes
17439 if test "x$word" = "x-arch"; then
17446 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
17447 if test $gl_cv_c_multiarch = yes; then
17448 APPLE_UNIVERSAL_BUILD
=1
17450 APPLE_UNIVERSAL_BUILD
=0
17457 if test $ac_cv_type_long_long_int = yes; then
17458 HAVE_LONG_LONG_INT
=1
17460 HAVE_LONG_LONG_INT
=0
17464 if test $ac_cv_type_unsigned_long_long_int = yes; then
17465 HAVE_UNSIGNED_LONG_LONG_INT
=1
17467 HAVE_UNSIGNED_LONG_LONG_INT
=0
17472 if test $ac_cv_header_wchar_h = yes; then
17479 if test $ac_cv_header_inttypes_h = yes; then
17486 if test $ac_cv_header_sys_types_h = yes; then
17502 if test $gl_cv_have_include_next = yes; then
17503 gl_cv_next_stdint_h
='<'stdint.h
'>'
17505 { $as_echo "$as_me:${as_lineno-$LINENO}: checking absolute name of <stdint.h>" >&5
17506 $as_echo_n "checking absolute name of <stdint.h>... " >&6; }
17507 if test "${gl_cv_next_stdint_h+set}" = set; then :
17508 $as_echo_n "(cached) " >&6
17511 if test $ac_cv_header_stdint_h = yes; then
17514 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
17515 /* end confdefs.h. */
17516 #include <stdint.h>
17520 aix
*) gl_absname_cpp
="$ac_cpp -C" ;;
17521 *) gl_absname_cpp
="$ac_cpp" ;;
17526 gl_dirsep_regex
='[/\\]'
17529 gl_dirsep_regex
='/'
17533 gl_absolute_header_sed
='\|'"${gl_dirsep_regex}"'stdint.h|{
17534 s|.*"\(.*'"${gl_dirsep_regex}"'stdint.h\)".*|\1|
17539 gl_cv_next_stdint_h
='"'`(eval "$gl_absname_cpp conftest.$ac_ext") 2>&5 |
17540 sed -n "$gl_absolute_header_sed"`'"'
17542 gl_cv_next_stdint_h
='<'stdint.h
'>'
17547 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_next_stdint_h" >&5
17548 $as_echo "$gl_cv_next_stdint_h" >&6; }
17550 NEXT_STDINT_H
=$gl_cv_next_stdint_h
17552 if test $gl_cv_have_include_next = yes ||
test $gl_cv_have_include_next = buggy
; then
17553 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include_next'
17554 gl_next_as_first_directive
='<'stdint.h
'>'
17556 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include'
17557 gl_next_as_first_directive
=$gl_cv_next_stdint_h
17559 NEXT_AS_FIRST_DIRECTIVE_STDINT_H
=$gl_next_as_first_directive
17564 if test $ac_cv_header_stdint_h = yes; then
17571 if test $ac_cv_header_stdint_h = yes; then
17572 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stdint.h conforms to C99" >&5
17573 $as_echo_n "checking whether stdint.h conforms to C99... " >&6; }
17574 if test "${gl_cv_header_working_stdint_h+set}" = set; then :
17575 $as_echo_n "(cached) " >&6
17577 gl_cv_header_working_stdint_h
=no
17578 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
17579 /* end confdefs.h. */
17582 #define __STDC_LIMIT_MACROS 1 /* to make it work also in C++ mode */
17583 #define __STDC_CONSTANT_MACROS 1 /* to make it work also in C++ mode */
17584 #define _GL_JUST_INCLUDE_SYSTEM_STDINT_H 1 /* work if build isn't clean */
17585 #include <stdint.h>
17586 /* Dragonfly defines WCHAR_MIN, WCHAR_MAX only in <wchar.h>. */
17587 #if !(defined WCHAR_MIN && defined WCHAR_MAX)
17588 #error "WCHAR_MIN, WCHAR_MAX not defined in <stdint.h>"
17592 /* BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be
17593 included before <wchar.h>. */
17594 #include <stddef.h>
17595 #include <signal.h>
17597 # include <stdio.h>
17599 # include <wchar.h>
17604 int8_t a1 = INT8_MAX;
17605 int8_t a1min = INT8_MIN;
17608 int16_t a2 = INT16_MAX;
17609 int16_t a2min = INT16_MIN;
17612 int32_t a3 = INT32_MAX;
17613 int32_t a3min = INT32_MIN;
17616 int64_t a4 = INT64_MAX;
17617 int64_t a4min = INT64_MIN;
17620 uint8_t b1 = UINT8_MAX;
17622 typedef int b1[(unsigned char) -1 != 255 ? 1 : -1];
17625 uint16_t b2 = UINT16_MAX;
17628 uint32_t b3 = UINT32_MAX;
17631 uint64_t b4 = UINT64_MAX;
17633 int_least8_t c1 = INT8_C (0x7f);
17634 int_least8_t c1max = INT_LEAST8_MAX;
17635 int_least8_t c1min = INT_LEAST8_MIN;
17636 int_least16_t c2 = INT16_C (0x7fff);
17637 int_least16_t c2max = INT_LEAST16_MAX;
17638 int_least16_t c2min = INT_LEAST16_MIN;
17639 int_least32_t c3 = INT32_C (0x7fffffff);
17640 int_least32_t c3max = INT_LEAST32_MAX;
17641 int_least32_t c3min = INT_LEAST32_MIN;
17642 int_least64_t c4 = INT64_C (0x7fffffffffffffff);
17643 int_least64_t c4max = INT_LEAST64_MAX;
17644 int_least64_t c4min = INT_LEAST64_MIN;
17645 uint_least8_t d1 = UINT8_C (0xff);
17646 uint_least8_t d1max = UINT_LEAST8_MAX;
17647 uint_least16_t d2 = UINT16_C (0xffff);
17648 uint_least16_t d2max = UINT_LEAST16_MAX;
17649 uint_least32_t d3 = UINT32_C (0xffffffff);
17650 uint_least32_t d3max = UINT_LEAST32_MAX;
17651 uint_least64_t d4 = UINT64_C (0xffffffffffffffff);
17652 uint_least64_t d4max = UINT_LEAST64_MAX;
17653 int_fast8_t e1 = INT_FAST8_MAX;
17654 int_fast8_t e1min = INT_FAST8_MIN;
17655 int_fast16_t e2 = INT_FAST16_MAX;
17656 int_fast16_t e2min = INT_FAST16_MIN;
17657 int_fast32_t e3 = INT_FAST32_MAX;
17658 int_fast32_t e3min = INT_FAST32_MIN;
17659 int_fast64_t e4 = INT_FAST64_MAX;
17660 int_fast64_t e4min = INT_FAST64_MIN;
17661 uint_fast8_t f1 = UINT_FAST8_MAX;
17662 uint_fast16_t f2 = UINT_FAST16_MAX;
17663 uint_fast32_t f3 = UINT_FAST32_MAX;
17664 uint_fast64_t f4 = UINT_FAST64_MAX;
17666 intptr_t g = INTPTR_MAX;
17667 intptr_t gmin = INTPTR_MIN;
17670 uintptr_t h = UINTPTR_MAX;
17672 intmax_t i = INTMAX_MAX;
17673 uintmax_t j = UINTMAX_MAX;
17675 #include <limits.h> /* for CHAR_BIT */
17676 #define TYPE_MINIMUM(t) \
17677 ((t) ((t) 0 < (t) -1 ? (t) 0 : ~ TYPE_MAXIMUM (t)))
17678 #define TYPE_MAXIMUM(t) \
17679 ((t) ((t) 0 < (t) -1 \
17681 : ((((t) 1 << (sizeof (t) * CHAR_BIT - 2)) - 1) * 2 + 1)))
17684 PTRDIFF_MIN == TYPE_MINIMUM (ptrdiff_t)
17685 && PTRDIFF_MAX == TYPE_MAXIMUM (ptrdiff_t)
17687 /* Detect bug in FreeBSD 6.0 / ia64. */
17688 int check_SIG_ATOMIC:
17689 SIG_ATOMIC_MIN == TYPE_MINIMUM (sig_atomic_t)
17690 && SIG_ATOMIC_MAX == TYPE_MAXIMUM (sig_atomic_t)
17692 int check_SIZE: SIZE_MAX == TYPE_MAXIMUM (size_t) ? 1 : -1;
17694 WCHAR_MIN == TYPE_MINIMUM (wchar_t)
17695 && WCHAR_MAX == TYPE_MAXIMUM (wchar_t)
17697 /* Detect bug in mingw. */
17699 WINT_MIN == TYPE_MINIMUM (wint_t)
17700 && WINT_MAX == TYPE_MAXIMUM (wint_t)
17703 /* Detect bugs in glibc 2.4 and Solaris 10 stdint.h, among others. */
17705 (-1 < UINT8_C (0)) == (-1 < (uint_least8_t) 0) ? 1 : -1;
17706 int check_UINT16_C:
17707 (-1 < UINT16_C (0)) == (-1 < (uint_least16_t) 0) ? 1 : -1;
17709 /* Detect bugs in OpenBSD 3.9 stdint.h. */
17711 int check_uint8: (uint8_t) -1 == UINT8_MAX ? 1 : -1;
17714 int check_uint16: (uint16_t) -1 == UINT16_MAX ? 1 : -1;
17717 int check_uint32: (uint32_t) -1 == UINT32_MAX ? 1 : -1;
17720 int check_uint64: (uint64_t) -1 == UINT64_MAX ? 1 : -1;
17722 int check_uint_least8: (uint_least8_t) -1 == UINT_LEAST8_MAX ? 1 : -1;
17723 int check_uint_least16: (uint_least16_t) -1 == UINT_LEAST16_MAX ? 1 : -1;
17724 int check_uint_least32: (uint_least32_t) -1 == UINT_LEAST32_MAX ? 1 : -1;
17725 int check_uint_least64: (uint_least64_t) -1 == UINT_LEAST64_MAX ? 1 : -1;
17726 int check_uint_fast8: (uint_fast8_t) -1 == UINT_FAST8_MAX ? 1 : -1;
17727 int check_uint_fast16: (uint_fast16_t) -1 == UINT_FAST16_MAX ? 1 : -1;
17728 int check_uint_fast32: (uint_fast32_t) -1 == UINT_FAST32_MAX ? 1 : -1;
17729 int check_uint_fast64: (uint_fast64_t) -1 == UINT_FAST64_MAX ? 1 : -1;
17730 int check_uintptr: (uintptr_t) -1 == UINTPTR_MAX ? 1 : -1;
17731 int check_uintmax: (uintmax_t) -1 == UINTMAX_MAX ? 1 : -1;
17732 int check_size: (size_t) -1 == SIZE_MAX ? 1 : -1;
17743 if ac_fn_c_try_compile
"$LINENO"; then :
17744 if test "$cross_compiling" = yes; then :
17745 gl_cv_header_working_stdint_h
=yes
17748 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
17749 /* end confdefs.h. */
17752 #define __STDC_LIMIT_MACROS 1 /* to make it work also in C++ mode */
17753 #define __STDC_CONSTANT_MACROS 1 /* to make it work also in C++ mode */
17754 #define _GL_JUST_INCLUDE_SYSTEM_STDINT_H 1 /* work if build isn't clean */
17755 #include <stdint.h>
17758 /* BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be
17759 included before <wchar.h>. */
17760 #include <stddef.h>
17761 #include <signal.h>
17763 # include <stdio.h>
17765 # include <wchar.h>
17770 #include <string.h>
17771 #define MVAL(macro) MVAL1(macro)
17772 #define MVAL1(expression) #expression
17773 static const char *macro_values[] =
17807 for (mv = macro_values; *mv != NULL; mv++)
17809 const char *value = *mv;
17810 /* Test whether it looks like a cast expression. */
17811 if (strncmp (value, "((unsigned int)"/*)*/, 15) == 0
17812 || strncmp (value, "((unsigned short)"/*)*/, 17) == 0
17813 || strncmp (value, "((unsigned char)"/*)*/, 16) == 0
17814 || strncmp (value, "((int)"/*)*/, 6) == 0
17815 || strncmp (value, "((signed short)"/*)*/, 15) == 0
17816 || strncmp (value, "((signed char)"/*)*/, 14) == 0)
17817 return mv - macro_values + 1;
17825 if ac_fn_c_try_run
"$LINENO"; then :
17826 gl_cv_header_working_stdint_h
=yes
17828 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
17829 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
17834 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
17837 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_header_working_stdint_h" >&5
17838 $as_echo "$gl_cv_header_working_stdint_h" >&6; }
17840 if test "$gl_cv_header_working_stdint_h" = yes; then
17843 for ac_header
in sys
/inttypes.h sys
/bitypes.h
17845 as_ac_Header
=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
17846 ac_fn_c_check_header_mongrel
"$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
17847 eval as_val
=\$
$as_ac_Header
17848 if test "x$as_val" = x
""yes; then :
17849 cat >>confdefs.h
<<_ACEOF
17850 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
17857 if test $ac_cv_header_sys_inttypes_h = yes; then
17858 HAVE_SYS_INTTYPES_H
=1
17860 HAVE_SYS_INTTYPES_H
=0
17863 if test $ac_cv_header_sys_bitypes_h = yes; then
17864 HAVE_SYS_BITYPES_H
=1
17866 HAVE_SYS_BITYPES_H
=0
17872 if test $APPLE_UNIVERSAL_BUILD = 0; then
17875 for gltype
in ptrdiff_t size_t
; do
17876 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for bit size of $gltype" >&5
17877 $as_echo_n "checking for bit size of $gltype... " >&6; }
17878 if { as_var
=gl_cv_bitsizeof_
${gltype}; eval "test \"\${$as_var+set}\" = set"; }; then :
17879 $as_echo_n "(cached) " >&6
17881 if ac_fn_c_compute_int
"$LINENO" "sizeof ($gltype) * CHAR_BIT" "result" "
17882 /* BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be
17883 included before <wchar.h>. */
17884 #include <stddef.h>
17885 #include <signal.h>
17887 # include <stdio.h>
17889 # include <wchar.h>
17892 #include <limits.h>"; then :
17898 eval gl_cv_bitsizeof_
${gltype}=\
$result
17901 eval ac_res
=\
$gl_cv_bitsizeof_${gltype}
17902 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
17903 $as_echo "$ac_res" >&6; }
17904 eval result
=\
$gl_cv_bitsizeof_${gltype}
17905 if test $result = unknown
; then
17908 GLTYPE
=`echo "$gltype" | tr 'abcdefghijklmnopqrstuvwxyz ' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ_'`
17909 cat >>confdefs.h
<<_ACEOF
17910 #define BITSIZEOF_${GLTYPE} $result
17913 eval BITSIZEOF_
${GLTYPE}=\
$result
17920 for gltype
in sig_atomic_t wchar_t wint_t
; do
17921 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for bit size of $gltype" >&5
17922 $as_echo_n "checking for bit size of $gltype... " >&6; }
17923 if { as_var
=gl_cv_bitsizeof_
${gltype}; eval "test \"\${$as_var+set}\" = set"; }; then :
17924 $as_echo_n "(cached) " >&6
17926 if ac_fn_c_compute_int
"$LINENO" "sizeof ($gltype) * CHAR_BIT" "result" "
17927 /* BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be
17928 included before <wchar.h>. */
17929 #include <stddef.h>
17930 #include <signal.h>
17932 # include <stdio.h>
17934 # include <wchar.h>
17937 #include <limits.h>"; then :
17943 eval gl_cv_bitsizeof_
${gltype}=\
$result
17946 eval ac_res
=\
$gl_cv_bitsizeof_${gltype}
17947 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
17948 $as_echo "$ac_res" >&6; }
17949 eval result
=\
$gl_cv_bitsizeof_${gltype}
17950 if test $result = unknown
; then
17953 GLTYPE
=`echo "$gltype" | tr 'abcdefghijklmnopqrstuvwxyz ' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ_'`
17954 cat >>confdefs.h
<<_ACEOF
17955 #define BITSIZEOF_${GLTYPE} $result
17958 eval BITSIZEOF_
${GLTYPE}=\
$result
17964 for gltype
in sig_atomic_t wchar_t wint_t
; do
17965 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $gltype is signed" >&5
17966 $as_echo_n "checking whether $gltype is signed... " >&6; }
17967 if { as_var
=gl_cv_type_
${gltype}_signed; eval "test \"\${$as_var+set}\" = set"; }; then :
17968 $as_echo_n "(cached) " >&6
17970 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
17971 /* end confdefs.h. */
17973 /* BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be
17974 included before <wchar.h>. */
17975 #include <stddef.h>
17976 #include <signal.h>
17978 # include <stdio.h>
17980 # include <wchar.h>
17983 int verify[2 * (($gltype) -1 < ($gltype) 0) - 1];
17992 if ac_fn_c_try_compile
"$LINENO"; then :
17997 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
17998 eval gl_cv_type_
${gltype}_signed
=\
$result
18001 eval ac_res
=\
$gl_cv_type_${gltype}_signed
18002 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
18003 $as_echo "$ac_res" >&6; }
18004 eval result
=\
$gl_cv_type_${gltype}_signed
18005 GLTYPE
=`echo $gltype | tr 'abcdefghijklmnopqrstuvwxyz ' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ_'`
18006 if test "$result" = yes; then
18007 cat >>confdefs.h
<<_ACEOF
18008 #define HAVE_SIGNED_${GLTYPE} 1
18011 eval HAVE_SIGNED_
${GLTYPE}=1
18013 eval HAVE_SIGNED_
${GLTYPE}=0
18018 gl_cv_type_ptrdiff_t_signed
=yes
18019 gl_cv_type_size_t_signed
=no
18020 if test $APPLE_UNIVERSAL_BUILD = 0; then
18023 for gltype
in ptrdiff_t size_t
; do
18024 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $gltype integer literal suffix" >&5
18025 $as_echo_n "checking for $gltype integer literal suffix... " >&6; }
18026 if { as_var
=gl_cv_type_
${gltype}_suffix; eval "test \"\${$as_var+set}\" = set"; }; then :
18027 $as_echo_n "(cached) " >&6
18029 eval gl_cv_type_
${gltype}_suffix
=no
18030 eval result
=\
$gl_cv_type_${gltype}_signed
18031 if test "$result" = yes; then
18036 for glsuf
in "$glsufu" ${glsufu}l ${glsufu}ll ${glsufu}i64
; do
18038 '') gltype1
='int';;
18039 l
) gltype1
='long int';;
18040 ll
) gltype1
='long long int';;
18041 i64
) gltype1
='__int64';;
18042 u
) gltype1
='unsigned int';;
18043 ul
) gltype1
='unsigned long int';;
18044 ull
) gltype1
='unsigned long long int';;
18045 ui64
)gltype1
='unsigned __int64';;
18047 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
18048 /* end confdefs.h. */
18050 /* BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be
18051 included before <wchar.h>. */
18052 #include <stddef.h>
18053 #include <signal.h>
18055 # include <stdio.h>
18057 # include <wchar.h>
18060 extern $gltype foo;
18061 extern $gltype1 foo;
18070 if ac_fn_c_try_compile
"$LINENO"; then :
18071 eval gl_cv_type_
${gltype}_suffix
=\
$glsuf
18073 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
18074 eval result
=\
$gl_cv_type_${gltype}_suffix
18075 test "$result" != no
&& break
18078 eval ac_res
=\
$gl_cv_type_${gltype}_suffix
18079 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
18080 $as_echo "$ac_res" >&6; }
18081 GLTYPE
=`echo $gltype | tr 'abcdefghijklmnopqrstuvwxyz ' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ_'`
18082 eval result
=\
$gl_cv_type_${gltype}_suffix
18083 test "$result" = no
&& result
=
18084 eval ${GLTYPE}_SUFFIX
=\
$result
18085 cat >>confdefs.h
<<_ACEOF
18086 #define ${GLTYPE}_SUFFIX $result
18095 for gltype
in sig_atomic_t wchar_t wint_t
; do
18096 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $gltype integer literal suffix" >&5
18097 $as_echo_n "checking for $gltype integer literal suffix... " >&6; }
18098 if { as_var
=gl_cv_type_
${gltype}_suffix; eval "test \"\${$as_var+set}\" = set"; }; then :
18099 $as_echo_n "(cached) " >&6
18101 eval gl_cv_type_
${gltype}_suffix
=no
18102 eval result
=\
$gl_cv_type_${gltype}_signed
18103 if test "$result" = yes; then
18108 for glsuf
in "$glsufu" ${glsufu}l ${glsufu}ll ${glsufu}i64
; do
18110 '') gltype1
='int';;
18111 l
) gltype1
='long int';;
18112 ll
) gltype1
='long long int';;
18113 i64
) gltype1
='__int64';;
18114 u
) gltype1
='unsigned int';;
18115 ul
) gltype1
='unsigned long int';;
18116 ull
) gltype1
='unsigned long long int';;
18117 ui64
)gltype1
='unsigned __int64';;
18119 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
18120 /* end confdefs.h. */
18122 /* BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be
18123 included before <wchar.h>. */
18124 #include <stddef.h>
18125 #include <signal.h>
18127 # include <stdio.h>
18129 # include <wchar.h>
18132 extern $gltype foo;
18133 extern $gltype1 foo;
18142 if ac_fn_c_try_compile
"$LINENO"; then :
18143 eval gl_cv_type_
${gltype}_suffix
=\
$glsuf
18145 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
18146 eval result
=\
$gl_cv_type_${gltype}_suffix
18147 test "$result" != no
&& break
18150 eval ac_res
=\
$gl_cv_type_${gltype}_suffix
18151 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
18152 $as_echo "$ac_res" >&6; }
18153 GLTYPE
=`echo $gltype | tr 'abcdefghijklmnopqrstuvwxyz ' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ_'`
18154 eval result
=\
$gl_cv_type_${gltype}_suffix
18155 test "$result" = no
&& result
=
18156 eval ${GLTYPE}_SUFFIX
=\
$result
18157 cat >>confdefs.h
<<_ACEOF
18158 #define ${GLTYPE}_SUFFIX $result
18165 if test $BITSIZEOF_WINT_T -lt 32; then
18166 BITSIZEOF_WINT_T
=32
18172 if test -n "$STDINT_H"; then
18173 GL_GENERATE_STDINT_H_TRUE
=
18174 GL_GENERATE_STDINT_H_FALSE
='#'
18176 GL_GENERATE_STDINT_H_TRUE
='#'
18177 GL_GENERATE_STDINT_H_FALSE
=
18186 GNULIB_STRTOIMAX
=0;
18187 GNULIB_STRTOUMAX
=0;
18188 HAVE_DECL_IMAXABS
=1;
18189 HAVE_DECL_IMAXDIV
=1;
18190 HAVE_DECL_STRTOIMAX
=1;
18191 HAVE_DECL_STRTOUMAX
=1;
18192 INT32_MAX_LT_INTMAX_MAX
=1;
18193 INT64_MAX_EQ_LONG_MAX
='defined _LP64';
18194 PRI_MACROS_BROKEN
=0;
18195 PRIPTR_PREFIX
=__PRIPTR_PREFIX
;
18196 UINT32_MAX_LT_UINTMAX_MAX
=1;
18197 UINT64_MAX_EQ_ULONG_MAX
='defined _LP64';
18213 if test $gl_cv_have_include_next = yes; then
18214 gl_cv_next_inttypes_h
='<'inttypes.h
'>'
18216 { $as_echo "$as_me:${as_lineno-$LINENO}: checking absolute name of <inttypes.h>" >&5
18217 $as_echo_n "checking absolute name of <inttypes.h>... " >&6; }
18218 if test "${gl_cv_next_inttypes_h+set}" = set; then :
18219 $as_echo_n "(cached) " >&6
18222 if test $ac_cv_header_inttypes_h = yes; then
18225 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
18226 /* end confdefs.h. */
18227 #include <inttypes.h>
18231 aix
*) gl_absname_cpp
="$ac_cpp -C" ;;
18232 *) gl_absname_cpp
="$ac_cpp" ;;
18237 gl_dirsep_regex
='[/\\]'
18240 gl_dirsep_regex
='/'
18244 gl_absolute_header_sed
='\|'"${gl_dirsep_regex}"'inttypes.h|{
18245 s|.*"\(.*'"${gl_dirsep_regex}"'inttypes.h\)".*|\1|
18250 gl_cv_next_inttypes_h
='"'`(eval "$gl_absname_cpp conftest.$ac_ext") 2>&5 |
18251 sed -n "$gl_absolute_header_sed"`'"'
18253 gl_cv_next_inttypes_h
='<'inttypes.h
'>'
18258 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_next_inttypes_h" >&5
18259 $as_echo "$gl_cv_next_inttypes_h" >&6; }
18261 NEXT_INTTYPES_H
=$gl_cv_next_inttypes_h
18263 if test $gl_cv_have_include_next = yes ||
test $gl_cv_have_include_next = buggy
; then
18264 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include_next'
18265 gl_next_as_first_directive
='<'inttypes.h
'>'
18267 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include'
18268 gl_next_as_first_directive
=$gl_cv_next_inttypes_h
18270 NEXT_AS_FIRST_DIRECTIVE_INTTYPES_H
=$gl_next_as_first_directive
18279 $as_echo "#define GL_TRIGGER_STDC_LIMIT_MACROS 1" >>confdefs.h
18298 GNULIB_UTIMENSAT
=0;
18312 REPLACE_FUTIMENS
=0;
18318 REPLACE_UTIMENSAT
=0;
18323 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether lstat correctly handles trailing slash" >&5
18324 $as_echo_n "checking whether lstat correctly handles trailing slash... " >&6; }
18325 if test "${gl_cv_func_lstat_dereferences_slashed_symlink+set}" = set; then :
18326 $as_echo_n "(cached) " >&6
18328 rm -f conftest.sym conftest.
file
18329 echo >conftest.
file
18330 if test "$as_ln_s" = "ln -s" && ln -s conftest.
file conftest.sym
; then
18331 if test "$cross_compiling" = yes; then :
18332 # When cross-compiling, be pessimistic so we will end up using the
18333 # replacement version of lstat that checks for trailing slashes and
18334 # calls lstat a second time when necessary.
18335 gl_cv_func_lstat_dereferences_slashed_symlink
=no
18338 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
18339 /* end confdefs.h. */
18340 $ac_includes_default
18345 /* Linux will dereference the symlink and fail, as required by
18346 POSIX. That is better in the sense that it means we will not
18347 have to compile and use the lstat wrapper. */
18348 return lstat ("conftest.sym/", &sbuf) == 0;
18354 if ac_fn_c_try_run
"$LINENO"; then :
18355 gl_cv_func_lstat_dereferences_slashed_symlink
=yes
18357 gl_cv_func_lstat_dereferences_slashed_symlink
=no
18359 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
18360 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
18364 # If the 'ln -s' command failed, then we probably don't even
18365 # have an lstat function.
18366 gl_cv_func_lstat_dereferences_slashed_symlink
=no
18368 rm -f conftest.sym conftest.
file
18371 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_lstat_dereferences_slashed_symlink" >&5
18372 $as_echo "$gl_cv_func_lstat_dereferences_slashed_symlink" >&6; }
18373 test $gl_cv_func_lstat_dereferences_slashed_symlink = yes &&
18375 cat >>confdefs.h
<<_ACEOF
18376 #define LSTAT_FOLLOWS_SLASHED_SYMLINK 1
18382 GNULIB_NANOSLEEP
=0;
18386 HAVE_DECL_LOCALTIME_R
=1;
18390 REPLACE_LOCALTIME_R
=GNULIB_PORTCHECK
;
18391 REPLACE_MKTIME
=GNULIB_PORTCHECK
;
18392 REPLACE_NANOSLEEP
=GNULIB_PORTCHECK
;
18393 REPLACE_TIMEGM
=GNULIB_PORTCHECK
;
18400 GNULIB_PTHREAD_SIGMASK
=0;
18402 GNULIB_SIGNAL_H_SIGPIPE
=0;
18403 GNULIB_SIGPROCMASK
=0;
18404 GNULIB_SIGACTION
=0;
18405 HAVE_POSIX_SIGNALBLOCKING
=1;
18406 HAVE_PTHREAD_SIGMASK
=1;
18411 HAVE_STRUCT_SIGACTION_SA_SIGACTION
=1;
18413 HAVE_TYPE_VOLATILE_SIG_ATOMIC_T
=1;
18415 HAVE_SIGHANDLER_T
=1;
18416 REPLACE_PTHREAD_SIGMASK
=0;
18422 ac_fn_c_check_type
"$LINENO" "sigset_t" "ac_cv_type_sigset_t" "
18423 #include <signal.h>
18424 /* Mingw defines sigset_t not in <signal.h>, but in <sys/types.h>. */
18425 #include <sys/types.h>
18428 if test "x$ac_cv_type_sigset_t" = x
""yes; then :
18430 cat >>confdefs.h
<<_ACEOF
18431 #define HAVE_SIGSET_T 1
18434 gl_cv_type_sigset_t
=yes
18436 gl_cv_type_sigset_t
=no
18439 if test $gl_cv_type_sigset_t != yes; then
18447 if test $ac_cv_header_sys_socket_h = no
; then
18448 for ac_header
in ws2tcpip.h
18450 ac_fn_c_check_header_mongrel
"$LINENO" "ws2tcpip.h" "ac_cv_header_ws2tcpip_h" "$ac_includes_default"
18451 if test "x$ac_cv_header_ws2tcpip_h" = x
""yes; then :
18452 cat >>confdefs.h
<<_ACEOF
18453 #define HAVE_WS2TCPIP_H 1
18462 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for stdbool.h that conforms to C99" >&5
18463 $as_echo_n "checking for stdbool.h that conforms to C99... " >&6; }
18464 if test "${ac_cv_header_stdbool_h+set}" = set; then :
18465 $as_echo_n "(cached) " >&6
18467 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
18468 /* end confdefs.h. */
18470 #include <stdbool.h>
18472 "error: bool is not defined"
18475 "error: false is not defined"
18478 "error: false is not 0"
18481 "error: true is not defined"
18484 "error: true is not 1"
18486 #ifndef __bool_true_false_are_defined
18487 "error: __bool_true_false_are_defined is not defined"
18490 struct s { _Bool s: 1; _Bool t; } s;
18492 char a[true == 1 ? 1 : -1];
18493 char b[false == 0 ? 1 : -1];
18494 char c[__bool_true_false_are_defined == 1 ? 1 : -1];
18495 char d[(bool) 0.5 == true ? 1 : -1];
18496 /* See body of main program for 'e'. */
18497 char f[(_Bool) 0.0 == false ? 1 : -1];
18499 char h[sizeof (_Bool)];
18500 char i[sizeof s.t];
18501 enum { j = false, k = true, l = false * true, m = true * 256 };
18502 /* The following fails for
18503 HP aC++/ANSI C B3910B A.05.55 [Dec 04 2003]. */
18505 char o[sizeof n == m * sizeof n[0] ? 1 : -1];
18506 char p[-1 - (_Bool) 0 < 0 && -1 - (bool) 0 < 0 ? 1 : -1];
18507 /* Catch a bug in an HP-UX C compiler. See
18508 http://gcc.gnu.org/ml/gcc-patches/2003-12/msg02303.html
18509 http://lists.gnu.org/archive/html/bug-coreutils/2005-11/msg00161.html
18521 /* Refer to every declared value, to avoid compiler optimizations. */
18522 return (!a + !b + !c + !d + !e + !f + !g + !h + !i + !!j + !k + !!l
18523 + !m + !n + !o + !p + !q + !pq);
18529 if ac_fn_c_try_compile
"$LINENO"; then :
18530 ac_cv_header_stdbool_h
=yes
18532 ac_cv_header_stdbool_h
=no
18534 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
18536 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdbool_h" >&5
18537 $as_echo "$ac_cv_header_stdbool_h" >&6; }
18538 ac_fn_c_check_type
"$LINENO" "_Bool" "ac_cv_type__Bool" "$ac_includes_default"
18539 if test "x$ac_cv_type__Bool" = x
""yes; then :
18541 cat >>confdefs.h
<<_ACEOF
18542 #define HAVE__BOOL 1
18554 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for wchar_t" >&5
18555 $as_echo_n "checking for wchar_t... " >&6; }
18556 if test "${gt_cv_c_wchar_t+set}" = set; then :
18557 $as_echo_n "(cached) " >&6
18559 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
18560 /* end confdefs.h. */
18561 #include <stddef.h>
18562 wchar_t foo = (wchar_t)'\0';
18571 if ac_fn_c_try_compile
"$LINENO"; then :
18572 gt_cv_c_wchar_t
=yes
18576 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
18578 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_c_wchar_t" >&5
18579 $as_echo "$gt_cv_c_wchar_t" >&6; }
18580 if test $gt_cv_c_wchar_t = yes; then
18582 $as_echo "#define HAVE_WCHAR_T 1" >>confdefs.h
18595 GNULIB_FPRINTF_POSIX
=0;
18612 GNULIB_OBSTACK_PRINTF
=0;
18613 GNULIB_OBSTACK_PRINTF_POSIX
=0;
18618 GNULIB_PRINTF_POSIX
=0;
18627 GNULIB_SPRINTF_POSIX
=0;
18628 GNULIB_STDIO_H_NONBLOCKING
=0;
18629 GNULIB_STDIO_H_SIGPIPE
=0;
18631 GNULIB_VASPRINTF
=0;
18636 GNULIB_VFPRINTF_POSIX
=0;
18638 GNULIB_VPRINTF_POSIX
=0;
18639 GNULIB_VSNPRINTF
=0;
18640 GNULIB_VSPRINTF_POSIX
=0;
18641 HAVE_DECL_FPURGE
=1;
18642 HAVE_DECL_FSEEKO
=1;
18643 HAVE_DECL_FTELLO
=1;
18644 HAVE_DECL_GETDELIM
=1;
18645 HAVE_DECL_GETLINE
=1;
18646 HAVE_DECL_OBSTACK_PRINTF
=1;
18647 HAVE_DECL_SNPRINTF
=1;
18648 HAVE_DECL_VSNPRINTF
=1;
18669 REPLACE_GETDELIM
=0;
18671 REPLACE_OBSTACK_PRINTF
=0;
18677 REPLACE_RENAMEAT
=0;
18678 REPLACE_SNPRINTF
=0;
18680 REPLACE_STDIO_READ_FUNCS
=0;
18681 REPLACE_STDIO_WRITE_FUNCS
=0;
18683 REPLACE_VASPRINTF
=0;
18684 REPLACE_VDPRINTF
=0;
18685 REPLACE_VFPRINTF
=0;
18687 REPLACE_VSNPRINTF
=0;
18688 REPLACE_VSPRINTF
=0;
18690 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether struct tm is in sys/time.h or time.h" >&5
18691 $as_echo_n "checking whether struct tm is in sys/time.h or time.h... " >&6; }
18692 if test "${ac_cv_struct_tm+set}" = set; then :
18693 $as_echo_n "(cached) " >&6
18695 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
18696 /* end confdefs.h. */
18697 #include <sys/types.h>
18704 int *p = &tm.tm_sec;
18710 if ac_fn_c_try_compile
"$LINENO"; then :
18711 ac_cv_struct_tm
=time.h
18713 ac_cv_struct_tm
=sys
/time.h
18715 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
18717 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_struct_tm" >&5
18718 $as_echo "$ac_cv_struct_tm" >&6; }
18719 if test $ac_cv_struct_tm = sys
/time.h
; then
18721 $as_echo "#define TM_IN_SYS_TIME 1" >>confdefs.h
18725 ac_fn_c_check_member
"$LINENO" "struct tm" "tm_zone" "ac_cv_member_struct_tm_tm_zone" "#include <sys/types.h>
18726 #include <$ac_cv_struct_tm>
18729 if test "x$ac_cv_member_struct_tm_tm_zone" = x
""yes; then :
18731 cat >>confdefs.h
<<_ACEOF
18732 #define HAVE_STRUCT_TM_TM_ZONE 1
18738 if test "$ac_cv_member_struct_tm_tm_zone" = yes; then
18740 $as_echo "#define HAVE_TM_ZONE 1" >>confdefs.h
18743 ac_fn_c_check_decl
"$LINENO" "tzname" "ac_cv_have_decl_tzname" "#include <time.h>
18745 if test "x$ac_cv_have_decl_tzname" = x
""yes; then :
18751 cat >>confdefs.h
<<_ACEOF
18752 #define HAVE_DECL_TZNAME $ac_have_decl
18755 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for tzname" >&5
18756 $as_echo_n "checking for tzname... " >&6; }
18757 if test "${ac_cv_var_tzname+set}" = set; then :
18758 $as_echo_n "(cached) " >&6
18760 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
18761 /* end confdefs.h. */
18763 #if !HAVE_DECL_TZNAME
18764 extern char *tzname[];
18770 return tzname[0][0];
18775 if ac_fn_c_try_link
"$LINENO"; then :
18776 ac_cv_var_tzname
=yes
18778 ac_cv_var_tzname
=no
18780 rm -f core conftest.err conftest.
$ac_objext \
18781 conftest
$ac_exeext conftest.
$ac_ext
18783 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_var_tzname" >&5
18784 $as_echo "$ac_cv_var_tzname" >&6; }
18785 if test $ac_cv_var_tzname = yes; then
18787 $as_echo "#define HAVE_TZNAME 1" >>confdefs.h
18793 ac_fn_c_check_member
"$LINENO" "struct tm" "tm_gmtoff" "ac_cv_member_struct_tm_tm_gmtoff" "#include <time.h>
18795 if test "x$ac_cv_member_struct_tm_tm_gmtoff" = x
""yes; then :
18797 $as_echo "#define HAVE_TM_GMTOFF 1" >>confdefs.h
18806 ac_fn_c_check_decl
"$LINENO" "strtoimax" "ac_cv_have_decl_strtoimax" "$ac_includes_default"
18807 if test "x$ac_cv_have_decl_strtoimax" = x
""yes; then :
18813 cat >>confdefs.h
<<_ACEOF
18814 #define HAVE_DECL_STRTOIMAX $ac_have_decl
18819 ac_fn_c_check_decl
"$LINENO" "strtoumax" "ac_cv_have_decl_strtoumax" "$ac_includes_default"
18820 if test "x$ac_cv_have_decl_strtoumax" = x
""yes; then :
18826 cat >>confdefs.h
<<_ACEOF
18827 #define HAVE_DECL_STRTOUMAX $ac_have_decl
18832 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stat file-mode macros are broken" >&5
18833 $as_echo_n "checking whether stat file-mode macros are broken... " >&6; }
18834 if test "${ac_cv_header_stat_broken+set}" = set; then :
18835 $as_echo_n "(cached) " >&6
18837 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
18838 /* end confdefs.h. */
18839 #include <sys/types.h>
18840 #include <sys/stat.h>
18842 #if defined S_ISBLK && defined S_IFDIR
18843 extern char c1[S_ISBLK (S_IFDIR) ? -1 : 1];
18846 #if defined S_ISBLK && defined S_IFCHR
18847 extern char c2[S_ISBLK (S_IFCHR) ? -1 : 1];
18850 #if defined S_ISLNK && defined S_IFREG
18851 extern char c3[S_ISLNK (S_IFREG) ? -1 : 1];
18854 #if defined S_ISSOCK && defined S_IFREG
18855 extern char c4[S_ISSOCK (S_IFREG) ? -1 : 1];
18859 if ac_fn_c_try_compile
"$LINENO"; then :
18860 ac_cv_header_stat_broken
=no
18862 ac_cv_header_stat_broken
=yes
18864 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
18866 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stat_broken" >&5
18867 $as_echo "$ac_cv_header_stat_broken" >&6; }
18868 if test $ac_cv_header_stat_broken = yes; then
18870 $as_echo "#define STAT_MACROS_BROKEN 1" >>confdefs.h
18876 ac_fn_c_check_type
"$LINENO" "mode_t" "ac_cv_type_mode_t" "$ac_includes_default"
18877 if test "x$ac_cv_type_mode_t" = x
""yes; then :
18881 cat >>confdefs.h
<<_ACEOF
18887 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for C/C++ restrict keyword" >&5
18888 $as_echo_n "checking for C/C++ restrict keyword... " >&6; }
18889 if test "${ac_cv_c_restrict+set}" = set; then :
18890 $as_echo_n "(cached) " >&6
18892 ac_cv_c_restrict
=no
18893 # The order here caters to the fact that C++ does not require restrict.
18894 for ac_kw
in __restrict __restrict__ _Restrict restrict
; do
18895 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
18896 /* end confdefs.h. */
18897 typedef int * int_ptr;
18898 int foo (int_ptr $ac_kw ip) {
18905 int * $ac_kw t = s;
18912 if ac_fn_c_try_compile
"$LINENO"; then :
18913 ac_cv_c_restrict
=$ac_kw
18915 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
18916 test "$ac_cv_c_restrict" != no
&& break
18920 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_restrict" >&5
18921 $as_echo "$ac_cv_c_restrict" >&6; }
18923 case $ac_cv_c_restrict in
18925 no
) $as_echo "#define restrict /**/" >>confdefs.h
18927 *) cat >>confdefs.h
<<_ACEOF
18928 #define restrict $ac_cv_c_restrict
18937 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for struct timespec in <time.h>" >&5
18938 $as_echo_n "checking for struct timespec in <time.h>... " >&6; }
18939 if test "${gl_cv_sys_struct_timespec_in_time_h+set}" = set; then :
18940 $as_echo_n "(cached) " >&6
18942 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
18943 /* end confdefs.h. */
18949 static struct timespec x; x.tv_sec = x.tv_nsec;
18954 if ac_fn_c_try_compile
"$LINENO"; then :
18955 gl_cv_sys_struct_timespec_in_time_h
=yes
18957 gl_cv_sys_struct_timespec_in_time_h
=no
18959 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
18961 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_sys_struct_timespec_in_time_h" >&5
18962 $as_echo "$gl_cv_sys_struct_timespec_in_time_h" >&6; }
18964 TIME_H_DEFINES_STRUCT_TIMESPEC
=0
18965 SYS_TIME_H_DEFINES_STRUCT_TIMESPEC
=0
18966 PTHREAD_H_DEFINES_STRUCT_TIMESPEC
=0
18967 if test $gl_cv_sys_struct_timespec_in_time_h = yes; then
18968 TIME_H_DEFINES_STRUCT_TIMESPEC
=1
18970 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for struct timespec in <sys/time.h>" >&5
18971 $as_echo_n "checking for struct timespec in <sys/time.h>... " >&6; }
18972 if test "${gl_cv_sys_struct_timespec_in_sys_time_h+set}" = set; then :
18973 $as_echo_n "(cached) " >&6
18975 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
18976 /* end confdefs.h. */
18977 #include <sys/time.h>
18982 static struct timespec x; x.tv_sec = x.tv_nsec;
18987 if ac_fn_c_try_compile
"$LINENO"; then :
18988 gl_cv_sys_struct_timespec_in_sys_time_h
=yes
18990 gl_cv_sys_struct_timespec_in_sys_time_h
=no
18992 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
18994 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_sys_struct_timespec_in_sys_time_h" >&5
18995 $as_echo "$gl_cv_sys_struct_timespec_in_sys_time_h" >&6; }
18996 if test $gl_cv_sys_struct_timespec_in_sys_time_h = yes; then
18997 SYS_TIME_H_DEFINES_STRUCT_TIMESPEC
=1
18999 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for struct timespec in <pthread.h>" >&5
19000 $as_echo_n "checking for struct timespec in <pthread.h>... " >&6; }
19001 if test "${gl_cv_sys_struct_timespec_in_pthread_h+set}" = set; then :
19002 $as_echo_n "(cached) " >&6
19004 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
19005 /* end confdefs.h. */
19006 #include <pthread.h>
19011 static struct timespec x; x.tv_sec = x.tv_nsec;
19016 if ac_fn_c_try_compile
"$LINENO"; then :
19017 gl_cv_sys_struct_timespec_in_pthread_h
=yes
19019 gl_cv_sys_struct_timespec_in_pthread_h
=no
19021 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
19023 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_sys_struct_timespec_in_pthread_h" >&5
19024 $as_echo "$gl_cv_sys_struct_timespec_in_pthread_h" >&6; }
19025 if test $gl_cv_sys_struct_timespec_in_pthread_h = yes; then
19026 PTHREAD_H_DEFINES_STRUCT_TIMESPEC
=1
19045 if test $gl_cv_have_include_next = yes; then
19046 gl_cv_next_time_h
='<'time.h
'>'
19048 { $as_echo "$as_me:${as_lineno-$LINENO}: checking absolute name of <time.h>" >&5
19049 $as_echo_n "checking absolute name of <time.h>... " >&6; }
19050 if test "${gl_cv_next_time_h+set}" = set; then :
19051 $as_echo_n "(cached) " >&6
19054 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
19055 /* end confdefs.h. */
19060 aix
*) gl_absname_cpp
="$ac_cpp -C" ;;
19061 *) gl_absname_cpp
="$ac_cpp" ;;
19066 gl_dirsep_regex
='[/\\]'
19069 gl_dirsep_regex
='/'
19073 gl_absolute_header_sed
='\|'"${gl_dirsep_regex}"'time.h|{
19074 s|.*"\(.*'"${gl_dirsep_regex}"'time.h\)".*|\1|
19079 gl_cv_next_time_h
='"'`(eval "$gl_absname_cpp conftest.$ac_ext") 2>&5 |
19080 sed -n "$gl_absolute_header_sed"`'"'
19084 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_next_time_h" >&5
19085 $as_echo "$gl_cv_next_time_h" >&6; }
19087 NEXT_TIME_H
=$gl_cv_next_time_h
19089 if test $gl_cv_have_include_next = yes ||
test $gl_cv_have_include_next = buggy
; then
19090 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include_next'
19091 gl_next_as_first_directive
='<'time.h
'>'
19093 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include'
19094 gl_next_as_first_directive
=$gl_cv_next_time_h
19096 NEXT_AS_FIRST_DIRECTIVE_TIME_H
=$gl_next_as_first_directive
19103 ac_fn_c_check_decl
"$LINENO" "localtime_r" "ac_cv_have_decl_localtime_r" "$ac_includes_default"
19104 if test "x$ac_cv_have_decl_localtime_r" = x
""yes; then :
19110 cat >>confdefs.h
<<_ACEOF
19111 #define HAVE_DECL_LOCALTIME_R $ac_have_decl
19118 GL_COND_LIBTOOL_TRUE
=
19119 GL_COND_LIBTOOL_FALSE
='#'
19121 GL_COND_LIBTOOL_TRUE
='#'
19122 GL_COND_LIBTOOL_FALSE
=
19125 gl_cond_libtool
=false
19138 gl_source_base
='lib'
19141 if test $ac_cv_func_alloca_works = no
; then
19145 # Define an additional variable used in the Makefile substitution.
19146 if test $ac_cv_working_alloca_h = yes; then
19147 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for alloca as a compiler built-in" >&5
19148 $as_echo_n "checking for alloca as a compiler built-in... " >&6; }
19149 if test "${gl_cv_rpl_alloca+set}" = set; then :
19150 $as_echo_n "(cached) " >&6
19153 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
19154 /* end confdefs.h. */
19156 #if defined __GNUC__ || defined _AIX || defined _MSC_VER
19161 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
19162 $EGREP "Need own alloca" >/dev
/null
2>&1; then :
19163 gl_cv_rpl_alloca
=yes
19165 gl_cv_rpl_alloca
=no
19171 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_rpl_alloca" >&5
19172 $as_echo "$gl_cv_rpl_alloca" >&6; }
19173 if test $gl_cv_rpl_alloca = yes; then
19175 $as_echo "#define HAVE_ALLOCA 1" >>confdefs.h
19185 if test -n "$ALLOCA_H"; then
19186 GL_GENERATE_ALLOCA_H_TRUE
=
19187 GL_GENERATE_ALLOCA_H_FALSE
='#'
19189 GL_GENERATE_ALLOCA_H_TRUE
='#'
19190 GL_GENERATE_ALLOCA_H_FALSE
=
19219 $as_echo "#define HAVE_DUP2 1" >>confdefs.h
19222 if test $HAVE_DUP2 = 1; then
19223 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether dup2 works" >&5
19224 $as_echo_n "checking whether dup2 works... " >&6; }
19225 if test "${gl_cv_func_dup2_works+set}" = set; then :
19226 $as_echo_n "(cached) " >&6
19228 if test "$cross_compiling" = yes; then :
19230 mingw
*) # on this platform, dup2 always returns 0 for success
19231 gl_cv_func_dup2_works
=no
;;
19232 cygwin
*) # on cygwin 1.5.x, dup2(1,1) returns 0
19233 gl_cv_func_dup2_works
=no
;;
19234 linux
*) # On linux between 2008-07-27 and 2009-05-11, dup2 of a
19235 # closed fd may yield -EBADF instead of -1 / errno=EBADF.
19236 gl_cv_func_dup2_works
=no
;;
19237 freebsd
*) # on FreeBSD 6.1, dup2(1,1000000) gives EMFILE, not EBADF.
19238 gl_cv_func_dup2_works
=no
;;
19239 haiku
*) # on Haiku alpha 2, dup2(1, 1) resets FD_CLOEXEC.
19240 gl_cv_func_dup2_works
=no
;;
19241 *) gl_cv_func_dup2_works
=yes;;
19244 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
19245 /* end confdefs.h. */
19247 #include <unistd.h>
19255 if (fcntl (1, F_SETFD, FD_CLOEXEC) == -1)
19258 if (dup2 (1, 1) == 0)
19261 if (fcntl (1, F_GETFD) != FD_CLOEXEC)
19265 if (dup2 (0, 0) != -1)
19267 /* Many gnulib modules require POSIX conformance of EBADF. */
19268 if (dup2 (2, 1000000) == -1 && errno != EBADF)
19277 if ac_fn_c_try_run
"$LINENO"; then :
19278 gl_cv_func_dup2_works
=yes
19280 gl_cv_func_dup2_works
=no
19282 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
19283 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
19288 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_dup2_works" >&5
19289 $as_echo "$gl_cv_func_dup2_works" >&6; }
19290 if test "$gl_cv_func_dup2_works" = no
; then
19296 if test $HAVE_DUP2 = 0 ||
test $REPLACE_DUP2 = 1; then
19305 gl_LIBOBJS
="$gl_LIBOBJS dup2.$ac_objext"
19326 # Persuade glibc <stdlib.h> to declare getloadavg().
19331 # getloadvg is present in libc on glibc >= 2.2, MacOS X, FreeBSD >= 2.0,
19332 # NetBSD >= 0.9, OpenBSD >= 2.0, Solaris >= 7.
19334 ac_fn_c_check_func
"$LINENO" "getloadavg" "ac_cv_func_getloadavg"
19335 if test "x$ac_cv_func_getloadavg" = x
""yes; then :
19338 gl_func_getloadavg_done
=no
19340 # Some systems with -lutil have (and need) -lkvm as well, some do not.
19341 # On Solaris, -lkvm requires nlist from -lelf, so check that first
19342 # to get the right answer into the cache.
19343 # For kstat on solaris, we need to test for libelf and libkvm to force the
19344 # definition of SVR4 below.
19345 if test $gl_func_getloadavg_done = no
; then
19346 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for elf_begin in -lelf" >&5
19347 $as_echo_n "checking for elf_begin in -lelf... " >&6; }
19348 if test "${ac_cv_lib_elf_elf_begin+set}" = set; then :
19349 $as_echo_n "(cached) " >&6
19351 ac_check_lib_save_LIBS
=$LIBS
19353 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
19354 /* end confdefs.h. */
19356 /* Override any GCC internal prototype to avoid an error.
19357 Use char because int might match the return type of a GCC
19358 builtin and then its argument prototype would still apply. */
19366 return elf_begin ();
19371 if ac_fn_c_try_link
"$LINENO"; then :
19372 ac_cv_lib_elf_elf_begin
=yes
19374 ac_cv_lib_elf_elf_begin
=no
19376 rm -f core conftest.err conftest.
$ac_objext \
19377 conftest
$ac_exeext conftest.
$ac_ext
19378 LIBS
=$ac_check_lib_save_LIBS
19380 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_elf_elf_begin" >&5
19381 $as_echo "$ac_cv_lib_elf_elf_begin" >&6; }
19382 if test "x$ac_cv_lib_elf_elf_begin" = x
""yes; then :
19386 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for kvm_open in -lkvm" >&5
19387 $as_echo_n "checking for kvm_open in -lkvm... " >&6; }
19388 if test "${ac_cv_lib_kvm_kvm_open+set}" = set; then :
19389 $as_echo_n "(cached) " >&6
19391 ac_check_lib_save_LIBS
=$LIBS
19393 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
19394 /* end confdefs.h. */
19396 /* Override any GCC internal prototype to avoid an error.
19397 Use char because int might match the return type of a GCC
19398 builtin and then its argument prototype would still apply. */
19406 return kvm_open ();
19411 if ac_fn_c_try_link
"$LINENO"; then :
19412 ac_cv_lib_kvm_kvm_open
=yes
19414 ac_cv_lib_kvm_kvm_open
=no
19416 rm -f core conftest.err conftest.
$ac_objext \
19417 conftest
$ac_exeext conftest.
$ac_ext
19418 LIBS
=$ac_check_lib_save_LIBS
19420 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_kvm_kvm_open" >&5
19421 $as_echo "$ac_cv_lib_kvm_kvm_open" >&6; }
19422 if test "x$ac_cv_lib_kvm_kvm_open" = x
""yes; then :
19426 # Check for the 4.4BSD definition of getloadavg.
19427 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for getloadavg in -lutil" >&5
19428 $as_echo_n "checking for getloadavg in -lutil... " >&6; }
19429 if test "${ac_cv_lib_util_getloadavg+set}" = set; then :
19430 $as_echo_n "(cached) " >&6
19432 ac_check_lib_save_LIBS
=$LIBS
19433 LIBS
="-lutil $LIBS"
19434 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
19435 /* end confdefs.h. */
19437 /* Override any GCC internal prototype to avoid an error.
19438 Use char because int might match the return type of a GCC
19439 builtin and then its argument prototype would still apply. */
19443 char getloadavg ();
19447 return getloadavg ();
19452 if ac_fn_c_try_link
"$LINENO"; then :
19453 ac_cv_lib_util_getloadavg
=yes
19455 ac_cv_lib_util_getloadavg
=no
19457 rm -f core conftest.err conftest.
$ac_objext \
19458 conftest
$ac_exeext conftest.
$ac_ext
19459 LIBS
=$ac_check_lib_save_LIBS
19461 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_util_getloadavg" >&5
19462 $as_echo "$ac_cv_lib_util_getloadavg" >&6; }
19463 if test "x$ac_cv_lib_util_getloadavg" = x
""yes; then :
19464 LIBS
="-lutil $LIBS" gl_func_getloadavg_done
=yes
19469 if test $gl_func_getloadavg_done = no
; then
19470 # There is a commonly available library for RS/6000 AIX.
19471 # Since it is not a standard part of AIX, it might be installed locally.
19472 gl_getloadavg_LIBS
=$LIBS
19473 LIBS
="-L/usr/local/lib $LIBS"
19474 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for getloadavg in -lgetloadavg" >&5
19475 $as_echo_n "checking for getloadavg in -lgetloadavg... " >&6; }
19476 if test "${ac_cv_lib_getloadavg_getloadavg+set}" = set; then :
19477 $as_echo_n "(cached) " >&6
19479 ac_check_lib_save_LIBS
=$LIBS
19480 LIBS
="-lgetloadavg $LIBS"
19481 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
19482 /* end confdefs.h. */
19484 /* Override any GCC internal prototype to avoid an error.
19485 Use char because int might match the return type of a GCC
19486 builtin and then its argument prototype would still apply. */
19490 char getloadavg ();
19494 return getloadavg ();
19499 if ac_fn_c_try_link
"$LINENO"; then :
19500 ac_cv_lib_getloadavg_getloadavg
=yes
19502 ac_cv_lib_getloadavg_getloadavg
=no
19504 rm -f core conftest.err conftest.
$ac_objext \
19505 conftest
$ac_exeext conftest.
$ac_ext
19506 LIBS
=$ac_check_lib_save_LIBS
19508 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_getloadavg_getloadavg" >&5
19509 $as_echo "$ac_cv_lib_getloadavg_getloadavg" >&6; }
19510 if test "x$ac_cv_lib_getloadavg_getloadavg" = x
""yes; then :
19511 LIBS
="-lgetloadavg $LIBS" gl_func_getloadavg_done
=yes
19513 LIBS
=$gl_getloadavg_LIBS
19518 # Set up the replacement function if necessary.
19519 if test $gl_func_getloadavg_done = no
; then
19522 # Solaris has libkstat which does not require root.
19523 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for kstat_open in -lkstat" >&5
19524 $as_echo_n "checking for kstat_open in -lkstat... " >&6; }
19525 if test "${ac_cv_lib_kstat_kstat_open+set}" = set; then :
19526 $as_echo_n "(cached) " >&6
19528 ac_check_lib_save_LIBS
=$LIBS
19529 LIBS
="-lkstat $LIBS"
19530 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
19531 /* end confdefs.h. */
19533 /* Override any GCC internal prototype to avoid an error.
19534 Use char because int might match the return type of a GCC
19535 builtin and then its argument prototype would still apply. */
19539 char kstat_open ();
19543 return kstat_open ();
19548 if ac_fn_c_try_link
"$LINENO"; then :
19549 ac_cv_lib_kstat_kstat_open
=yes
19551 ac_cv_lib_kstat_kstat_open
=no
19553 rm -f core conftest.err conftest.
$ac_objext \
19554 conftest
$ac_exeext conftest.
$ac_ext
19555 LIBS
=$ac_check_lib_save_LIBS
19557 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_kstat_kstat_open" >&5
19558 $as_echo "$ac_cv_lib_kstat_kstat_open" >&6; }
19559 if test "x$ac_cv_lib_kstat_kstat_open" = x
""yes; then :
19560 cat >>confdefs.h
<<_ACEOF
19561 #define HAVE_LIBKSTAT 1
19564 LIBS
="-lkstat $LIBS"
19568 test $ac_cv_lib_kstat_kstat_open = yes && gl_func_getloadavg_done
=yes
19570 # AIX has libperfstat which does not require root
19571 if test $gl_func_getloadavg_done = no
; then
19572 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for perfstat_cpu_total in -lperfstat" >&5
19573 $as_echo_n "checking for perfstat_cpu_total in -lperfstat... " >&6; }
19574 if test "${ac_cv_lib_perfstat_perfstat_cpu_total+set}" = set; then :
19575 $as_echo_n "(cached) " >&6
19577 ac_check_lib_save_LIBS
=$LIBS
19578 LIBS
="-lperfstat $LIBS"
19579 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
19580 /* end confdefs.h. */
19582 /* Override any GCC internal prototype to avoid an error.
19583 Use char because int might match the return type of a GCC
19584 builtin and then its argument prototype would still apply. */
19588 char perfstat_cpu_total ();
19592 return perfstat_cpu_total ();
19597 if ac_fn_c_try_link
"$LINENO"; then :
19598 ac_cv_lib_perfstat_perfstat_cpu_total
=yes
19600 ac_cv_lib_perfstat_perfstat_cpu_total
=no
19602 rm -f core conftest.err conftest.
$ac_objext \
19603 conftest
$ac_exeext conftest.
$ac_ext
19604 LIBS
=$ac_check_lib_save_LIBS
19606 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_perfstat_perfstat_cpu_total" >&5
19607 $as_echo "$ac_cv_lib_perfstat_perfstat_cpu_total" >&6; }
19608 if test "x$ac_cv_lib_perfstat_perfstat_cpu_total" = x
""yes; then :
19609 cat >>confdefs.h
<<_ACEOF
19610 #define HAVE_LIBPERFSTAT 1
19613 LIBS
="-lperfstat $LIBS"
19617 test $ac_cv_lib_perfstat_perfstat_cpu_total = yes && gl_func_getloadavg_done
=yes
19620 if test $gl_func_getloadavg_done = no
; then
19621 ac_fn_c_check_header_mongrel
"$LINENO" "sys/dg_sys_info.h" "ac_cv_header_sys_dg_sys_info_h" "$ac_includes_default"
19622 if test "x$ac_cv_header_sys_dg_sys_info_h" = x
""yes; then :
19623 gl_func_getloadavg_done
=yes
19625 $as_echo "#define DGUX 1" >>confdefs.h
19627 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dg_sys_info in -ldgc" >&5
19628 $as_echo_n "checking for dg_sys_info in -ldgc... " >&6; }
19629 if test "${ac_cv_lib_dgc_dg_sys_info+set}" = set; then :
19630 $as_echo_n "(cached) " >&6
19632 ac_check_lib_save_LIBS
=$LIBS
19634 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
19635 /* end confdefs.h. */
19637 /* Override any GCC internal prototype to avoid an error.
19638 Use char because int might match the return type of a GCC
19639 builtin and then its argument prototype would still apply. */
19643 char dg_sys_info ();
19647 return dg_sys_info ();
19652 if ac_fn_c_try_link
"$LINENO"; then :
19653 ac_cv_lib_dgc_dg_sys_info
=yes
19655 ac_cv_lib_dgc_dg_sys_info
=no
19657 rm -f core conftest.err conftest.
$ac_objext \
19658 conftest
$ac_exeext conftest.
$ac_ext
19659 LIBS
=$ac_check_lib_save_LIBS
19661 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dgc_dg_sys_info" >&5
19662 $as_echo "$ac_cv_lib_dgc_dg_sys_info" >&6; }
19663 if test "x$ac_cv_lib_dgc_dg_sys_info" = x
""yes; then :
19664 cat >>confdefs.h
<<_ACEOF
19665 #define HAVE_LIBDGC 1
19680 if test "x$gl_save_LIBS" = x
; then
19681 GETLOADAVG_LIBS
=$LIBS
19683 GETLOADAVG_LIBS
=`echo "$LIBS" | sed "s!$gl_save_LIBS!!"`
19688 # Test whether the system declares getloadavg. Solaris has the function
19689 # but declares it in <sys/loadavg.h>, not <stdlib.h>.
19690 for ac_header
in sys
/loadavg.h
19692 ac_fn_c_check_header_mongrel
"$LINENO" "sys/loadavg.h" "ac_cv_header_sys_loadavg_h" "$ac_includes_default"
19693 if test "x$ac_cv_header_sys_loadavg_h" = x
""yes; then :
19694 cat >>confdefs.h
<<_ACEOF
19695 #define HAVE_SYS_LOADAVG_H 1
19702 if test $ac_cv_header_sys_loadavg_h = yes; then
19703 HAVE_SYS_LOADAVG_H
=1
19705 HAVE_SYS_LOADAVG_H
=0
19707 ac_fn_c_check_decl
"$LINENO" "getloadavg" "ac_cv_have_decl_getloadavg" "#if HAVE_SYS_LOADAVG_H
19708 # include <sys/loadavg.h>
19710 #include <stdlib.h>
19712 if test "x$ac_cv_have_decl_getloadavg" = x
""yes; then :
19715 HAVE_DECL_GETLOADAVG
=0
19719 if test $HAVE_GETLOADAVG = 0; then
19728 gl_LIBOBJS
="$gl_LIBOBJS getloadavg.$ac_objext"
19731 # Figure out what our getloadavg.c needs.
19733 # On HPUX9, an unprivileged user can get load averages this way.
19734 if test $gl_func_getloadavg_done = no
; then
19735 for ac_func
in pstat_getdynamic
19737 ac_fn_c_check_func
"$LINENO" "pstat_getdynamic" "ac_cv_func_pstat_getdynamic"
19738 if test "x$ac_cv_func_pstat_getdynamic" = x
""yes; then :
19739 cat >>confdefs.h
<<_ACEOF
19740 #define HAVE_PSTAT_GETDYNAMIC 1
19742 gl_func_getloadavg_done
=yes
19748 # We cannot check for <dwarf.h>, because Solaris 2 does not use dwarf (it
19749 # uses stabs), but it is still SVR4. We cannot check for <elf.h> because
19750 # Irix 4.0.5F has the header but not the library.
19751 if test $gl_func_getloadavg_done = no
&& test "$ac_cv_lib_elf_elf_begin" = yes \
19752 && test "$ac_cv_lib_kvm_kvm_open" = yes; then
19753 gl_func_getloadavg_done
=yes
19755 $as_echo "#define SVR4 1" >>confdefs.h
19759 if test $gl_func_getloadavg_done = no
; then
19760 ac_fn_c_check_header_mongrel
"$LINENO" "inq_stats/cpustats.h" "ac_cv_header_inq_stats_cpustats_h" "$ac_includes_default"
19761 if test "x$ac_cv_header_inq_stats_cpustats_h" = x
""yes; then :
19762 gl_func_getloadavg_done
=yes
19764 $as_echo "#define UMAX 1" >>confdefs.h
19767 $as_echo "#define UMAX4_3 1" >>confdefs.h
19774 if test $gl_func_getloadavg_done = no
; then
19775 ac_fn_c_check_header_mongrel
"$LINENO" "sys/cpustats.h" "ac_cv_header_sys_cpustats_h" "$ac_includes_default"
19776 if test "x$ac_cv_header_sys_cpustats_h" = x
""yes; then :
19777 gl_func_getloadavg_done
=yes; $as_echo "#define UMAX 1" >>confdefs.h
19784 if test $gl_func_getloadavg_done = no
; then
19785 for ac_header
in mach
/mach.h
19787 ac_fn_c_check_header_mongrel
"$LINENO" "mach/mach.h" "ac_cv_header_mach_mach_h" "$ac_includes_default"
19788 if test "x$ac_cv_header_mach_mach_h" = x
""yes; then :
19789 cat >>confdefs.h
<<_ACEOF
19790 #define HAVE_MACH_MACH_H 1
19799 for ac_header
in nlist.h
19801 ac_fn_c_check_header_mongrel
"$LINENO" "nlist.h" "ac_cv_header_nlist_h" "$ac_includes_default"
19802 if test "x$ac_cv_header_nlist_h" = x
""yes; then :
19803 cat >>confdefs.h
<<_ACEOF
19804 #define HAVE_NLIST_H 1
19806 ac_fn_c_check_member
"$LINENO" "struct nlist" "n_un.n_name" "ac_cv_member_struct_nlist_n_un_n_name" "#include <nlist.h>
19808 if test "x$ac_cv_member_struct_nlist_n_un_n_name" = x
""yes; then :
19810 cat >>confdefs.h
<<_ACEOF
19811 #define HAVE_STRUCT_NLIST_N_UN_N_NAME 1
19817 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
19818 /* end confdefs.h. */
19824 #ifdef HAVE_STRUCT_NLIST_N_UN_N_NAME
19825 x.n_un.n_name = "";
19833 if ac_fn_c_try_link
"$LINENO"; then :
19835 $as_echo "#define N_NAME_POINTER 1" >>confdefs.h
19838 rm -f core conftest.err conftest.
$ac_objext \
19839 conftest
$ac_exeext conftest.
$ac_ext
19851 GNULIB_GETLOADAVG
=1
19862 if test $REPLACE_GETOPT = 1; then
19871 gl_LIBOBJS
="$gl_LIBOBJS getopt.$ac_objext"
19881 gl_LIBOBJS
="$gl_LIBOBJS getopt1.$ac_objext"
19895 if test -n "$gl_replace_getopt"; then :
19902 if test $REPLACE_GETOPT = 1; then
19906 $as_echo "#define __GETOPT_PREFIX rpl_" >>confdefs.h
19910 GNULIB_UNISTD_H_GETOPT
=1
19913 if test $REPLACE_GETOPT = 1; then
19922 gl_LIBOBJS
="$gl_LIBOBJS getopt.$ac_objext"
19932 gl_LIBOBJS
="$gl_LIBOBJS getopt1.$ac_objext"
19943 if test $ac_cv_func_lstat = yes; then
19945 if test $gl_cv_func_lstat_dereferences_slashed_symlink = no
; then
19952 if test $REPLACE_LSTAT = 1; then
19961 gl_LIBOBJS
="$gl_LIBOBJS lstat.$ac_objext"
19985 if test $APPLE_UNIVERSAL_BUILD = 1; then
19986 # A universal build on Apple MacOS X platforms.
19987 # The test result would be 'yes' in 32-bit mode and 'no' in 64-bit mode.
19988 # But we need a configuration result that is valid in both modes.
19989 gl_cv_func_working_mktime
=no
19991 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working mktime" >&5
19992 $as_echo_n "checking for working mktime... " >&6; }
19993 if test "${gl_cv_func_working_mktime+set}" = set; then :
19994 $as_echo_n "(cached) " >&6
19996 if test "$cross_compiling" = yes; then :
19997 gl_cv_func_working_mktime
=no
19999 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
20000 /* end confdefs.h. */
20001 /* Test program from Paul Eggert and Tony Leneis. */
20002 #include <limits.h>
20003 #include <stdlib.h>
20006 #ifdef HAVE_UNISTD_H
20007 # include <unistd.h>
20011 # define alarm(X) /* empty */
20014 /* Work around redefinition to rpl_putenv by other config tests. */
20017 static time_t time_t_max;
20018 static time_t time_t_min;
20020 /* Values we'll use to set the TZ environment variable. */
20021 static char *tz_strings[] = {
20022 (char *) 0, "TZ=GMT0", "TZ=JST-9",
20023 "TZ=EST+3EDT+2,M10.1.0/00:00:00,M2.3.0/00:00:00"
20025 #define N_STRINGS (sizeof (tz_strings) / sizeof (tz_strings[0]))
20027 /* Return 0 if mktime fails to convert a date in the spring-forward gap.
20028 Based on a problem report from Andreas Jaeger. */
20030 spring_forward_gap ()
20032 /* glibc (up to about 1998-10-07) failed this test. */
20035 /* Use the portable POSIX.1 specification "TZ=PST8PDT,M4.1.0,M10.5.0"
20036 instead of "TZ=America/Vancouver" in order to detect the bug even
20037 on systems that don't support the Olson extension, or don't have the
20038 full zoneinfo tables installed. */
20039 putenv ("TZ=PST8PDT,M4.1.0,M10.5.0");
20048 return mktime (&tm) != (time_t) -1;
20052 mktime_test1 (time_t now)
20055 return ! (lt = localtime (&now)) || mktime (lt) == now;
20059 mktime_test (time_t now)
20061 return (mktime_test1 (now)
20062 && mktime_test1 ((time_t) (time_t_max - now))
20063 && mktime_test1 ((time_t) (time_t_min + now)));
20069 /* Based on code from Ariel Faigon. */
20079 return tm.tm_mon == 2 && tm.tm_mday == 31;
20083 bigtime_test (int j)
20087 tm.tm_year = tm.tm_mon = tm.tm_mday = tm.tm_hour = tm.tm_min = tm.tm_sec = j;
20088 now = mktime (&tm);
20089 if (now != (time_t) -1)
20091 struct tm *lt = localtime (&now);
20093 && lt->tm_year == tm.tm_year
20094 && lt->tm_mon == tm.tm_mon
20095 && lt->tm_mday == tm.tm_mday
20096 && lt->tm_hour == tm.tm_hour
20097 && lt->tm_min == tm.tm_min
20098 && lt->tm_sec == tm.tm_sec
20099 && lt->tm_yday == tm.tm_yday
20100 && lt->tm_wday == tm.tm_wday
20101 && ((lt->tm_isdst < 0 ? -1 : 0 < lt->tm_isdst)
20102 == (tm.tm_isdst < 0 ? -1 : 0 < tm.tm_isdst))))
20111 /* The correct answer for 2050-02-01 00:00:00 in Pacific time,
20112 ignoring leap seconds. */
20113 unsigned long int answer = 2527315200UL;
20117 tm.tm_year = 2050 - 1900;
20120 tm.tm_hour = tm.tm_min = tm.tm_sec = 0;
20123 /* Use the portable POSIX.1 specification "TZ=PST8PDT,M4.1.0,M10.5.0"
20124 instead of "TZ=America/Vancouver" in order to detect the bug even
20125 on systems that don't support the Olson extension, or don't have the
20126 full zoneinfo tables installed. */
20127 putenv ("TZ=PST8PDT,M4.1.0,M10.5.0");
20131 /* Check that the result is either a failure, or close enough
20132 to the correct answer that we can assume the discrepancy is
20133 due to leap seconds. */
20134 return (t == (time_t) -1
20135 || (0 < t && answer - 120 <= t && t <= answer + 120));
20144 int time_t_signed_magnitude = (time_t) ~ (time_t) 0 < (time_t) -1;
20145 int time_t_signed = ! ((time_t) 0 < (time_t) -1);
20147 /* This test makes some buggy mktime implementations loop.
20148 Give up after 60 seconds; a mktime slower than that
20149 isn't worth using anyway. */
20152 time_t_max = (! time_t_signed
20154 : ((((time_t) 1 << (sizeof (time_t) * CHAR_BIT - 2)) - 1)
20156 time_t_min = (! time_t_signed
20158 : time_t_signed_magnitude
20162 delta = time_t_max / 997; /* a suitable prime number */
20163 for (i = 0; i < N_STRINGS; i++)
20166 putenv (tz_strings[i]);
20168 for (t = 0; t <= time_t_max - delta; t += delta)
20169 if (! mktime_test (t))
20171 if (! (mktime_test ((time_t) 1)
20172 && mktime_test ((time_t) (60 * 60))
20173 && mktime_test ((time_t) (60 * 60 * 24))))
20176 for (j = 1; ; j <<= 1)
20177 if (! bigtime_test (j))
20179 else if (INT_MAX / 2 < j)
20181 if (! bigtime_test (INT_MAX))
20184 if (! irix_6_4_bug ())
20186 if (! spring_forward_gap ())
20188 if (! year_2050_test ())
20193 if ac_fn_c_try_run
"$LINENO"; then :
20194 gl_cv_func_working_mktime
=yes
20196 gl_cv_func_working_mktime
=no
20198 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
20199 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
20204 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_working_mktime" >&5
20205 $as_echo "$gl_cv_func_working_mktime" >&6; }
20207 if test $gl_cv_func_working_mktime = no
; then
20213 if test $REPLACE_MKTIME = 1; then
20222 gl_LIBOBJS
="$gl_LIBOBJS mktime.$ac_objext"
20242 LIB_PTHREAD_SIGMASK
=
20245 if test $ac_cv_func_pthread_sigmask = yes; then
20248 HAVE_PTHREAD_SIGMASK
=0
20249 REPLACE_PTHREAD_SIGMASK
=1
20255 if test $HAVE_PTHREAD_SIGMASK = 1; then
20258 if test -z "$LIB_PTHREAD_SIGMASK"; then
20259 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether pthread_sigmask works without -lpthread" >&5
20260 $as_echo_n "checking whether pthread_sigmask works without -lpthread... " >&6; }
20261 if test "${gl_cv_func_pthread_sigmask_in_libc_works+set}" = set; then :
20262 $as_echo_n "(cached) " >&6
20265 if test "$cross_compiling" = yes; then :
20268 freebsd
* | hpux
* | solaris | solaris2.
[2-9]*)
20269 gl_cv_func_pthread_sigmask_in_libc_works
="guessing no";;
20271 gl_cv_func_pthread_sigmask_in_libc_works
="guessing yes";;
20275 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
20276 /* end confdefs.h. */
20278 #include <pthread.h>
20279 #include <signal.h>
20280 #include <stddef.h>
20284 sigemptyset (&set);
20285 return pthread_sigmask (1729, &set, NULL) != 0;
20288 if ac_fn_c_try_run
"$LINENO"; then :
20289 gl_cv_func_pthread_sigmask_in_libc_works
=no
20291 gl_cv_func_pthread_sigmask_in_libc_works
=yes
20293 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
20294 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
20299 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_pthread_sigmask_in_libc_works" >&5
20300 $as_echo "$gl_cv_func_pthread_sigmask_in_libc_works" >&6; }
20301 case "$gl_cv_func_pthread_sigmask_in_libc_works" in
20303 REPLACE_PTHREAD_SIGMASK
=1
20305 $as_echo "#define PTHREAD_SIGMASK_INEFFECTIVE 1" >>confdefs.h
20311 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether pthread_sigmask returns error numbers" >&5
20312 $as_echo_n "checking whether pthread_sigmask returns error numbers... " >&6; }
20313 if test "${gl_cv_func_pthread_sigmask_return_works+set}" = set; then :
20314 $as_echo_n "(cached) " >&6
20317 gl_save_LIBS
="$LIBS"
20318 LIBS
="$LIBS $LIB_PTHREAD_SIGMASK"
20319 if test "$cross_compiling" = yes; then :
20322 gl_cv_func_pthread_sigmask_return_works
="guessing no";;
20324 gl_cv_func_pthread_sigmask_return_works
="guessing yes";;
20328 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
20329 /* end confdefs.h. */
20331 #include <pthread.h>
20332 #include <signal.h>
20333 #include <stddef.h>
20337 sigemptyset (&set);
20338 if (pthread_sigmask (1729, &set, NULL) == -1)
20343 if ac_fn_c_try_run
"$LINENO"; then :
20344 gl_cv_func_pthread_sigmask_return_works
=yes
20346 gl_cv_func_pthread_sigmask_return_works
=no
20348 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
20349 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
20352 LIBS
="$gl_save_LIBS"
20355 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_pthread_sigmask_return_works" >&5
20356 $as_echo "$gl_cv_func_pthread_sigmask_return_works" >&6; }
20357 case "$gl_cv_func_pthread_sigmask_return_works" in
20359 REPLACE_PTHREAD_SIGMASK
=1
20361 $as_echo "#define PTHREAD_SIGMASK_FAILS_WITH_ERRNO 1" >>confdefs.h
20366 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether pthread_sigmask unblocks signals correctly" >&5
20367 $as_echo_n "checking whether pthread_sigmask unblocks signals correctly... " >&6; }
20368 if test "${gl_cv_func_pthread_sigmask_unblock_works+set}" = set; then :
20369 $as_echo_n "(cached) " >&6
20374 gl_cv_func_pthread_sigmask_unblock_works
="guessing no";;
20376 gl_cv_func_pthread_sigmask_unblock_works
="guessing yes";;
20378 gl_save_LIBS
="$LIBS"
20379 LIBS
="$LIBS $LIBMULTITHREAD"
20380 if test "$cross_compiling" = yes; then :
20383 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
20384 /* end confdefs.h. */
20386 #include <pthread.h>
20387 #include <signal.h>
20389 #include <stdlib.h>
20390 #include <unistd.h>
20391 static volatile int sigint_occurred;
20393 sigint_handler (int sig)
20400 int pid = getpid ();
20402 signal (SIGINT, sigint_handler);
20403 sigemptyset (&set);
20404 sigaddset (&set, SIGINT);
20405 if (!(pthread_sigmask (SIG_BLOCK, &set, NULL) == 0))
20407 sprintf (command, "sh -c 'sleep 1; kill -%d %d' &", SIGINT, pid);
20408 if (!(system (command) == 0))
20411 if (!(sigint_occurred == 0))
20413 if (!(pthread_sigmask (SIG_UNBLOCK, &set, NULL) == 0))
20415 if (!(sigint_occurred == 1)) /* This fails on IRIX. */
20420 if ac_fn_c_try_run
"$LINENO"; then :
20423 gl_cv_func_pthread_sigmask_unblock_works
=no
20425 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
20426 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
20429 LIBS
="$gl_save_LIBS"
20432 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_pthread_sigmask_unblock_works" >&5
20433 $as_echo "$gl_cv_func_pthread_sigmask_unblock_works" >&6; }
20434 case "$gl_cv_func_pthread_sigmask_unblock_works" in
20436 REPLACE_PTHREAD_SIGMASK
=1
20438 $as_echo "#define PTHREAD_SIGMASK_UNBLOCK_BUG 1" >>confdefs.h
20444 if test $HAVE_PTHREAD_SIGMASK = 0 ||
test $REPLACE_PTHREAD_SIGMASK = 1; then
20453 gl_LIBOBJS
="$gl_LIBOBJS pthread_sigmask.$ac_objext"
20456 if test $HAVE_PTHREAD_SIGMASK = 1; then
20458 $as_echo "#define HAVE_PTHREAD_SIGMASK 1" >>confdefs.h
20468 GNULIB_PTHREAD_SIGMASK
=1
20477 if test $ac_cv_func_readlink = no
; then
20480 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether readlink signature is correct" >&5
20481 $as_echo_n "checking whether readlink signature is correct... " >&6; }
20482 if test "${gl_cv_decl_readlink_works+set}" = set; then :
20483 $as_echo_n "(cached) " >&6
20485 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
20486 /* end confdefs.h. */
20487 #include <unistd.h>
20488 /* Cause compilation failure if original declaration has wrong type. */
20489 ssize_t readlink (const char *, char *, size_t);
20498 if ac_fn_c_try_compile
"$LINENO"; then :
20499 gl_cv_decl_readlink_works
=yes
20501 gl_cv_decl_readlink_works
=no
20503 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
20505 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_decl_readlink_works" >&5
20506 $as_echo "$gl_cv_decl_readlink_works" >&6; }
20507 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether readlink handles trailing slash correctly" >&5
20508 $as_echo_n "checking whether readlink handles trailing slash correctly... " >&6; }
20509 if test "${gl_cv_func_readlink_works+set}" = set; then :
20510 $as_echo_n "(cached) " >&6
20512 # We have readlink, so assume ln -s works.
20513 ln -s conftest.no-such conftest.link
20514 ln -s conftest.link conftest.lnk2
20515 if test "$cross_compiling" = yes; then :
20516 gl_cv_func_readlink_works
="guessing no"
20518 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
20519 /* end confdefs.h. */
20520 #include <unistd.h>
20526 return readlink ("conftest.lnk2/", buf, sizeof buf) != -1;
20531 if ac_fn_c_try_run
"$LINENO"; then :
20532 gl_cv_func_readlink_works
=yes
20534 gl_cv_func_readlink_works
=no
20536 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
20537 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
20540 rm -f conftest.link conftest.lnk2
20542 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_readlink_works" >&5
20543 $as_echo "$gl_cv_func_readlink_works" >&6; }
20544 if test "$gl_cv_func_readlink_works" != yes; then
20546 $as_echo "#define READLINK_TRAILING_SLASH_BUG 1" >>confdefs.h
20549 elif test "$gl_cv_decl_readlink_works" != yes; then
20554 if test $HAVE_READLINK = 0 ||
test $REPLACE_READLINK = 1; then
20563 gl_LIBOBJS
="$gl_LIBOBJS readlink.$ac_objext"
20591 if test $gl_cv_have_include_next = yes; then
20592 gl_cv_next_signal_h
='<'signal.h
'>'
20594 { $as_echo "$as_me:${as_lineno-$LINENO}: checking absolute name of <signal.h>" >&5
20595 $as_echo_n "checking absolute name of <signal.h>... " >&6; }
20596 if test "${gl_cv_next_signal_h+set}" = set; then :
20597 $as_echo_n "(cached) " >&6
20600 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
20601 /* end confdefs.h. */
20602 #include <signal.h>
20606 aix
*) gl_absname_cpp
="$ac_cpp -C" ;;
20607 *) gl_absname_cpp
="$ac_cpp" ;;
20612 gl_dirsep_regex
='[/\\]'
20615 gl_dirsep_regex
='/'
20619 gl_absolute_header_sed
='\|'"${gl_dirsep_regex}"'signal.h|{
20620 s|.*"\(.*'"${gl_dirsep_regex}"'signal.h\)".*|\1|
20625 gl_cv_next_signal_h
='"'`(eval "$gl_absname_cpp conftest.$ac_ext") 2>&5 |
20626 sed -n "$gl_absolute_header_sed"`'"'
20630 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_next_signal_h" >&5
20631 $as_echo "$gl_cv_next_signal_h" >&6; }
20633 NEXT_SIGNAL_H
=$gl_cv_next_signal_h
20635 if test $gl_cv_have_include_next = yes ||
test $gl_cv_have_include_next = buggy
; then
20636 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include_next'
20637 gl_next_as_first_directive
='<'signal.h
'>'
20639 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include'
20640 gl_next_as_first_directive
=$gl_cv_next_signal_h
20642 NEXT_AS_FIRST_DIRECTIVE_SIGNAL_H
=$gl_next_as_first_directive
20648 # AIX declares sig_atomic_t to already include volatile, and C89 compilers
20649 # then choke on 'volatile sig_atomic_t'. C99 requires that it compile.
20650 ac_fn_c_check_type
"$LINENO" "volatile sig_atomic_t" "ac_cv_type_volatile_sig_atomic_t" "
20651 #include <signal.h>
20654 if test "x$ac_cv_type_volatile_sig_atomic_t" = x
""yes; then :
20657 HAVE_TYPE_VOLATILE_SIG_ATOMIC_T
=0
20666 ac_fn_c_check_type
"$LINENO" "sighandler_t" "ac_cv_type_sighandler_t" "
20667 #include <signal.h>
20670 if test "x$ac_cv_type_sighandler_t" = x
""yes; then :
20673 HAVE_SIGHANDLER_T
=0
20679 ac_fn_c_check_type
"$LINENO" "socklen_t" "ac_cv_type_socklen_t" "
20680 /* <sys/types.h> is not needed according to POSIX, but the
20681 <sys/socket.h> in i386-unknown-freebsd4.10 and
20682 powerpc-apple-darwin5.5 required it. */
20683 #include <sys/types.h>
20684 #if HAVE_SYS_SOCKET_H
20685 # include <sys/socket.h>
20686 #elif HAVE_WS2TCPIP_H
20687 # include <ws2tcpip.h>
20691 if test "x$ac_cv_type_socklen_t" = x
""yes; then :
20694 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for socklen_t equivalent" >&5
20695 $as_echo_n "checking for socklen_t equivalent... " >&6; }
20696 if test "${gl_cv_socklen_t_equiv+set}" = set; then :
20697 $as_echo_n "(cached) " >&6
20699 # Systems have either "struct sockaddr *" or
20700 # "void *" as the second argument to getpeername
20701 gl_cv_socklen_t_equiv
=
20702 for arg2
in "struct sockaddr" void
; do
20703 for t
in int size_t
"unsigned int" "long int" "unsigned long int"; do
20704 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
20705 /* end confdefs.h. */
20706 #include <sys/types.h>
20707 #include <sys/socket.h>
20709 int getpeername (int, $arg2 *, $t *);
20714 getpeername (0, 0, &len);
20719 if ac_fn_c_try_compile
"$LINENO"; then :
20720 gl_cv_socklen_t_equiv
="$t"
20722 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
20723 test "$gl_cv_socklen_t_equiv" != "" && break
20725 test "$gl_cv_socklen_t_equiv" != "" && break
20730 if test "$gl_cv_socklen_t_equiv" = ""; then
20731 as_fn_error
"Cannot find a type to use in place of socklen_t" "$LINENO" 5
20733 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_socklen_t_equiv" >&5
20734 $as_echo "$gl_cv_socklen_t_equiv" >&6; }
20736 cat >>confdefs.h
<<_ACEOF
20737 #define socklen_t $gl_cv_socklen_t_equiv
20743 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ssize_t" >&5
20744 $as_echo_n "checking for ssize_t... " >&6; }
20745 if test "${gt_cv_ssize_t+set}" = set; then :
20746 $as_echo_n "(cached) " >&6
20748 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
20749 /* end confdefs.h. */
20750 #include <sys/types.h>
20754 int x = sizeof (ssize_t *) + sizeof (ssize_t);
20760 if ac_fn_c_try_compile
"$LINENO"; then :
20765 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
20767 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_ssize_t" >&5
20768 $as_echo "$gt_cv_ssize_t" >&6; }
20769 if test $gt_cv_ssize_t = no
; then
20771 $as_echo "#define ssize_t int" >>confdefs.h
20777 NEXT_STDARG_H
='<stdarg.h>'
20778 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for va_copy" >&5
20779 $as_echo_n "checking for va_copy... " >&6; }
20780 if test "${gl_cv_func_va_copy+set}" = set; then :
20781 $as_echo_n "(cached) " >&6
20784 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
20785 /* end confdefs.h. */
20786 #include <stdarg.h>
20792 void (*func) (va_list, va_list) = va_copy;
20799 if ac_fn_c_try_compile
"$LINENO"; then :
20800 gl_cv_func_va_copy
=yes
20802 gl_cv_func_va_copy
=no
20804 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
20807 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_va_copy" >&5
20808 $as_echo "$gl_cv_func_va_copy" >&6; }
20809 if test $gl_cv_func_va_copy = no
; then
20810 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
20811 /* end confdefs.h. */
20812 #if defined _AIX && !defined __GNUC__
20817 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
20818 $EGREP "vaccine" >/dev
/null
2>&1; then :
20825 if test $gl_aixcc = yes; then
20835 if test $gl_cv_have_include_next = yes; then
20836 gl_cv_next_stdarg_h
='<'stdarg.h
'>'
20838 { $as_echo "$as_me:${as_lineno-$LINENO}: checking absolute name of <stdarg.h>" >&5
20839 $as_echo_n "checking absolute name of <stdarg.h>... " >&6; }
20840 if test "${gl_cv_next_stdarg_h+set}" = set; then :
20841 $as_echo_n "(cached) " >&6
20844 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
20845 /* end confdefs.h. */
20846 #include <stdarg.h>
20850 aix
*) gl_absname_cpp
="$ac_cpp -C" ;;
20851 *) gl_absname_cpp
="$ac_cpp" ;;
20856 gl_dirsep_regex
='[/\\]'
20859 gl_dirsep_regex
='/'
20863 gl_absolute_header_sed
='\|'"${gl_dirsep_regex}"'stdarg.h|{
20864 s|.*"\(.*'"${gl_dirsep_regex}"'stdarg.h\)".*|\1|
20869 gl_cv_next_stdarg_h
='"'`(eval "$gl_absname_cpp conftest.$ac_ext") 2>&5 |
20870 sed -n "$gl_absolute_header_sed"`'"'
20874 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_next_stdarg_h" >&5
20875 $as_echo "$gl_cv_next_stdarg_h" >&6; }
20877 NEXT_STDARG_H
=$gl_cv_next_stdarg_h
20879 if test $gl_cv_have_include_next = yes ||
test $gl_cv_have_include_next = buggy
; then
20880 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include_next'
20881 gl_next_as_first_directive
='<'stdarg.h
'>'
20883 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include'
20884 gl_next_as_first_directive
=$gl_cv_next_stdarg_h
20886 NEXT_AS_FIRST_DIRECTIVE_STDARG_H
=$gl_next_as_first_directive
20891 if test "$gl_cv_next_stdarg_h" = '""'; then
20892 gl_cv_next_stdarg_h
='"///usr/include/stdarg.h"'
20893 NEXT_STDARG_H
="$gl_cv_next_stdarg_h"
20897 saved_as_echo_n
="$as_echo_n"
20899 if test "${gl_cv_func___va_copy+set}" = set; then :
20900 $as_echo_n "(cached) " >&6
20903 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
20904 /* end confdefs.h. */
20905 #include <stdarg.h>
20918 if ac_fn_c_try_compile
"$LINENO"; then :
20919 gl_cv_func___va_copy
=yes
20921 gl_cv_func___va_copy
=no
20923 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
20926 as_echo_n
="$saved_as_echo_n"
20928 if test $gl_cv_func___va_copy = yes; then
20930 $as_echo "#define va_copy __va_copy" >>confdefs.h
20935 $as_echo "#define va_copy gl_va_copy" >>confdefs.h
20941 if test -n "$STDARG_H"; then
20942 GL_GENERATE_STDARG_H_TRUE
=
20943 GL_GENERATE_STDARG_H_FALSE
='#'
20945 GL_GENERATE_STDARG_H_TRUE
='#'
20946 GL_GENERATE_STDARG_H_FALSE
=
20954 # Define two additional variables used in the Makefile substitution.
20956 if test "$ac_cv_header_stdbool_h" = yes; then
20959 STDBOOL_H
='stdbool.h'
20962 if test -n "$STDBOOL_H"; then
20963 GL_GENERATE_STDBOOL_H_TRUE
=
20964 GL_GENERATE_STDBOOL_H_FALSE
='#'
20966 GL_GENERATE_STDBOOL_H_TRUE
='#'
20967 GL_GENERATE_STDBOOL_H_FALSE
=
20971 if test "$ac_cv_type__Bool" = yes; then
20982 if test $gt_cv_c_wchar_t = no
; then
20986 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether NULL can be used in arbitrary expressions" >&5
20987 $as_echo_n "checking whether NULL can be used in arbitrary expressions... " >&6; }
20988 if test "${gl_cv_decl_null_works+set}" = set; then :
20989 $as_echo_n "(cached) " >&6
20991 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
20992 /* end confdefs.h. */
20993 #include <stddef.h>
20994 int test[2 * (sizeof NULL == sizeof (void *)) -1];
21004 if ac_fn_c_try_compile
"$LINENO"; then :
21005 gl_cv_decl_null_works
=yes
21007 gl_cv_decl_null_works
=no
21009 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
21011 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_decl_null_works" >&5
21012 $as_echo "$gl_cv_decl_null_works" >&6; }
21013 if test $gl_cv_decl_null_works = no
; then
21018 if test -n "$STDDEF_H"; then
21019 GL_GENERATE_STDDEF_H_TRUE
=
21020 GL_GENERATE_STDDEF_H_FALSE
='#'
21022 GL_GENERATE_STDDEF_H_TRUE
='#'
21023 GL_GENERATE_STDDEF_H_FALSE
=
21026 if test -n "$STDDEF_H"; then
21035 if test $gl_cv_have_include_next = yes; then
21036 gl_cv_next_stddef_h
='<'stddef.h
'>'
21038 { $as_echo "$as_me:${as_lineno-$LINENO}: checking absolute name of <stddef.h>" >&5
21039 $as_echo_n "checking absolute name of <stddef.h>... " >&6; }
21040 if test "${gl_cv_next_stddef_h+set}" = set; then :
21041 $as_echo_n "(cached) " >&6
21044 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
21045 /* end confdefs.h. */
21046 #include <stddef.h>
21050 aix
*) gl_absname_cpp
="$ac_cpp -C" ;;
21051 *) gl_absname_cpp
="$ac_cpp" ;;
21056 gl_dirsep_regex
='[/\\]'
21059 gl_dirsep_regex
='/'
21063 gl_absolute_header_sed
='\|'"${gl_dirsep_regex}"'stddef.h|{
21064 s|.*"\(.*'"${gl_dirsep_regex}"'stddef.h\)".*|\1|
21069 gl_cv_next_stddef_h
='"'`(eval "$gl_absname_cpp conftest.$ac_ext") 2>&5 |
21070 sed -n "$gl_absolute_header_sed"`'"'
21074 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_next_stddef_h" >&5
21075 $as_echo "$gl_cv_next_stddef_h" >&6; }
21077 NEXT_STDDEF_H
=$gl_cv_next_stddef_h
21079 if test $gl_cv_have_include_next = yes ||
test $gl_cv_have_include_next = buggy
; then
21080 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include_next'
21081 gl_next_as_first_directive
='<'stddef.h
'>'
21083 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include'
21084 gl_next_as_first_directive
=$gl_cv_next_stddef_h
21086 NEXT_AS_FIRST_DIRECTIVE_STDDEF_H
=$gl_next_as_first_directive
21105 if test $gl_cv_have_include_next = yes; then
21106 gl_cv_next_stdio_h
='<'stdio.h
'>'
21108 { $as_echo "$as_me:${as_lineno-$LINENO}: checking absolute name of <stdio.h>" >&5
21109 $as_echo_n "checking absolute name of <stdio.h>... " >&6; }
21110 if test "${gl_cv_next_stdio_h+set}" = set; then :
21111 $as_echo_n "(cached) " >&6
21114 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
21115 /* end confdefs.h. */
21120 aix
*) gl_absname_cpp
="$ac_cpp -C" ;;
21121 *) gl_absname_cpp
="$ac_cpp" ;;
21126 gl_dirsep_regex
='[/\\]'
21129 gl_dirsep_regex
='/'
21133 gl_absolute_header_sed
='\|'"${gl_dirsep_regex}"'stdio.h|{
21134 s|.*"\(.*'"${gl_dirsep_regex}"'stdio.h\)".*|\1|
21139 gl_cv_next_stdio_h
='"'`(eval "$gl_absname_cpp conftest.$ac_ext") 2>&5 |
21140 sed -n "$gl_absolute_header_sed"`'"'
21144 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_next_stdio_h" >&5
21145 $as_echo "$gl_cv_next_stdio_h" >&6; }
21147 NEXT_STDIO_H
=$gl_cv_next_stdio_h
21149 if test $gl_cv_have_include_next = yes ||
test $gl_cv_have_include_next = buggy
; then
21150 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include_next'
21151 gl_next_as_first_directive
='<'stdio.h
'>'
21153 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include'
21154 gl_next_as_first_directive
=$gl_cv_next_stdio_h
21156 NEXT_AS_FIRST_DIRECTIVE_STDIO_H
=$gl_next_as_first_directive
21197 if test $gl_cv_have_include_next = yes; then
21198 gl_cv_next_stdlib_h
='<'stdlib.h
'>'
21200 { $as_echo "$as_me:${as_lineno-$LINENO}: checking absolute name of <stdlib.h>" >&5
21201 $as_echo_n "checking absolute name of <stdlib.h>... " >&6; }
21202 if test "${gl_cv_next_stdlib_h+set}" = set; then :
21203 $as_echo_n "(cached) " >&6
21206 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
21207 /* end confdefs.h. */
21208 #include <stdlib.h>
21212 aix
*) gl_absname_cpp
="$ac_cpp -C" ;;
21213 *) gl_absname_cpp
="$ac_cpp" ;;
21218 gl_dirsep_regex
='[/\\]'
21221 gl_dirsep_regex
='/'
21225 gl_absolute_header_sed
='\|'"${gl_dirsep_regex}"'stdlib.h|{
21226 s|.*"\(.*'"${gl_dirsep_regex}"'stdlib.h\)".*|\1|
21231 gl_cv_next_stdlib_h
='"'`(eval "$gl_absname_cpp conftest.$ac_ext") 2>&5 |
21232 sed -n "$gl_absolute_header_sed"`'"'
21236 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_next_stdlib_h" >&5
21237 $as_echo "$gl_cv_next_stdlib_h" >&6; }
21239 NEXT_STDLIB_H
=$gl_cv_next_stdlib_h
21241 if test $gl_cv_have_include_next = yes ||
test $gl_cv_have_include_next = buggy
; then
21242 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include_next'
21243 gl_next_as_first_directive
='<'stdlib.h
'>'
21245 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include'
21246 gl_next_as_first_directive
=$gl_cv_next_stdlib_h
21248 NEXT_AS_FIRST_DIRECTIVE_STDLIB_H
=$gl_next_as_first_directive
21258 # This defines (or not) HAVE_TZNAME and HAVE_TM_ZONE.
21266 $as_echo "#define my_strftime nstrftime" >>confdefs.h
21275 if test "$ac_cv_have_decl_strtoimax" != yes; then
21276 HAVE_DECL_STRTOIMAX
=0
21279 if test $ac_cv_func_strtoimax = no
; then
21288 gl_LIBOBJS
="$gl_LIBOBJS strtoimax.$ac_objext"
21291 ac_fn_c_check_decl
"$LINENO" "strtoll" "ac_cv_have_decl_strtoll" "$ac_includes_default"
21292 if test "x$ac_cv_have_decl_strtoll" = x
""yes; then :
21298 cat >>confdefs.h
<<_ACEOF
21299 #define HAVE_DECL_STRTOLL $ac_have_decl
21320 if test "$ac_cv_have_decl_strtoumax" != yes; then
21321 HAVE_DECL_STRTOUMAX
=0
21324 if test $ac_cv_func_strtoumax = no
; then
21333 gl_LIBOBJS
="$gl_LIBOBJS strtoumax.$ac_objext"
21336 ac_fn_c_check_decl
"$LINENO" "strtoull" "ac_cv_have_decl_strtoull" "$ac_includes_default"
21337 if test "x$ac_cv_have_decl_strtoull" = x
""yes; then :
21343 cat >>confdefs.h
<<_ACEOF
21344 #define HAVE_DECL_STRTOULL $ac_have_decl
21363 if test $ac_cv_func_symlink = no
; then
21366 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether symlink handles trailing slash correctly" >&5
21367 $as_echo_n "checking whether symlink handles trailing slash correctly... " >&6; }
21368 if test "${gl_cv_func_symlink_works+set}" = set; then :
21369 $as_echo_n "(cached) " >&6
21371 if test "$cross_compiling" = yes; then :
21372 gl_cv_func_symlink_works
="guessing no"
21374 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
21375 /* end confdefs.h. */
21376 #include <unistd.h>
21382 if (!symlink ("a", "conftest.link/"))
21384 if (symlink ("conftest.f", "conftest.lnk2"))
21386 else if (!symlink ("a", "conftest.lnk2/"))
21394 if ac_fn_c_try_run
"$LINENO"; then :
21395 gl_cv_func_symlink_works
=yes
21397 gl_cv_func_symlink_works
=no
21399 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
21400 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
21403 rm -f conftest.f conftest.link conftest.lnk2
21405 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_symlink_works" >&5
21406 $as_echo "$gl_cv_func_symlink_works" >&6; }
21407 if test "$gl_cv_func_symlink_works" != yes; then
21412 if test $HAVE_SYMLINK = 0 ||
test $REPLACE_SYMLINK = 1; then
21421 gl_LIBOBJS
="$gl_LIBOBJS symlink.$ac_objext"
21451 if test $gl_cv_have_include_next = yes; then
21452 gl_cv_next_sys_stat_h
='<'sys
/stat.h
'>'
21454 { $as_echo "$as_me:${as_lineno-$LINENO}: checking absolute name of <sys/stat.h>" >&5
21455 $as_echo_n "checking absolute name of <sys/stat.h>... " >&6; }
21456 if test "${gl_cv_next_sys_stat_h+set}" = set; then :
21457 $as_echo_n "(cached) " >&6
21460 if test $ac_cv_header_sys_stat_h = yes; then
21463 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
21464 /* end confdefs.h. */
21465 #include <sys/stat.h>
21469 aix
*) gl_absname_cpp
="$ac_cpp -C" ;;
21470 *) gl_absname_cpp
="$ac_cpp" ;;
21475 gl_dirsep_regex
='[/\\]'
21478 gl_dirsep_regex
='/'
21482 gl_absolute_header_sed
='\|'"${gl_dirsep_regex}"'sys/stat.h|{
21483 s|.*"\(.*'"${gl_dirsep_regex}"'sys/stat.h\)".*|\1|
21488 gl_cv_next_sys_stat_h
='"'`(eval "$gl_absname_cpp conftest.$ac_ext") 2>&5 |
21489 sed -n "$gl_absolute_header_sed"`'"'
21491 gl_cv_next_sys_stat_h
='<'sys
/stat.h
'>'
21496 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_next_sys_stat_h" >&5
21497 $as_echo "$gl_cv_next_sys_stat_h" >&6; }
21499 NEXT_SYS_STAT_H
=$gl_cv_next_sys_stat_h
21501 if test $gl_cv_have_include_next = yes ||
test $gl_cv_have_include_next = buggy
; then
21502 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include_next'
21503 gl_next_as_first_directive
='<'sys
/stat.h
'>'
21505 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include'
21506 gl_next_as_first_directive
=$gl_cv_next_sys_stat_h
21508 NEXT_AS_FIRST_DIRECTIVE_SYS_STAT_H
=$gl_next_as_first_directive
21516 ac_fn_c_check_type
"$LINENO" "nlink_t" "ac_cv_type_nlink_t" "#include <sys/types.h>
21517 #include <sys/stat.h>
21519 if test "x$ac_cv_type_nlink_t" = x
""yes; then :
21523 $as_echo "#define nlink_t int" >>confdefs.h
21541 if test $ac_cv_have_decl_localtime_r = no
; then
21542 HAVE_DECL_LOCALTIME_R
=0
21546 if test $ac_cv_func_localtime_r = yes; then
21548 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether localtime_r is compatible with its POSIX signature" >&5
21549 $as_echo_n "checking whether localtime_r is compatible with its POSIX signature... " >&6; }
21550 if test "${gl_cv_time_r_posix+set}" = set; then :
21551 $as_echo_n "(cached) " >&6
21553 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
21554 /* end confdefs.h. */
21559 /* We don't need to append 'restrict's to the argument types,
21560 even though the POSIX signature has the 'restrict's,
21561 since C99 says they can't affect type compatibility. */
21562 struct tm * (*ptr) (time_t const *, struct tm *) = localtime_r;
21564 /* Check the return type is a pointer.
21565 On HP-UX 10 it is 'int'. */
21566 *localtime_r (0, 0);
21572 if ac_fn_c_try_compile
"$LINENO"; then :
21573 gl_cv_time_r_posix
=yes
21575 gl_cv_time_r_posix
=no
21577 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
21580 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_time_r_posix" >&5
21581 $as_echo "$gl_cv_time_r_posix" >&6; }
21582 if test $gl_cv_time_r_posix = yes; then
21583 REPLACE_LOCALTIME_R
=0
21585 REPLACE_LOCALTIME_R
=1
21591 if test $HAVE_LOCALTIME_R = 0 ||
test $REPLACE_LOCALTIME_R = 1; then
21600 gl_LIBOBJS
="$gl_LIBOBJS time_r.$ac_objext"
21631 if test $gl_cv_have_include_next = yes; then
21632 gl_cv_next_unistd_h
='<'unistd.h
'>'
21634 { $as_echo "$as_me:${as_lineno-$LINENO}: checking absolute name of <unistd.h>" >&5
21635 $as_echo_n "checking absolute name of <unistd.h>... " >&6; }
21636 if test "${gl_cv_next_unistd_h+set}" = set; then :
21637 $as_echo_n "(cached) " >&6
21640 if test $ac_cv_header_unistd_h = yes; then
21643 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
21644 /* end confdefs.h. */
21645 #include <unistd.h>
21649 aix
*) gl_absname_cpp
="$ac_cpp -C" ;;
21650 *) gl_absname_cpp
="$ac_cpp" ;;
21655 gl_dirsep_regex
='[/\\]'
21658 gl_dirsep_regex
='/'
21662 gl_absolute_header_sed
='\|'"${gl_dirsep_regex}"'unistd.h|{
21663 s|.*"\(.*'"${gl_dirsep_regex}"'unistd.h\)".*|\1|
21668 gl_cv_next_unistd_h
='"'`(eval "$gl_absname_cpp conftest.$ac_ext") 2>&5 |
21669 sed -n "$gl_absolute_header_sed"`'"'
21671 gl_cv_next_unistd_h
='<'unistd.h
'>'
21676 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_next_unistd_h" >&5
21677 $as_echo "$gl_cv_next_unistd_h" >&6; }
21679 NEXT_UNISTD_H
=$gl_cv_next_unistd_h
21681 if test $gl_cv_have_include_next = yes ||
test $gl_cv_have_include_next = buggy
; then
21682 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include_next'
21683 gl_next_as_first_directive
='<'unistd.h
'>'
21685 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include'
21686 gl_next_as_first_directive
=$gl_cv_next_unistd_h
21688 NEXT_AS_FIRST_DIRECTIVE_UNISTD_H
=$gl_next_as_first_directive
21693 if test $ac_cv_header_unistd_h = yes; then
21704 gl_gnulib_enabled_dosname
=false
21705 gl_gnulib_enabled_be453cec5eecf5731a274f2de7f2db36
=false
21706 gl_gnulib_enabled_pathmax
=false
21707 gl_gnulib_enabled_sigprocmask
=false
21708 gl_gnulib_enabled_stat
=false
21709 gl_gnulib_enabled_strtoll
=false
21710 gl_gnulib_enabled_strtoull
=false
21711 gl_gnulib_enabled_verify
=false
21712 func_gl_gnulib_m4code_dosname
()
21714 if ! $gl_gnulib_enabled_dosname; then
21715 gl_gnulib_enabled_dosname
=true
21718 func_gl_gnulib_m4code_be453cec5eecf5731a274f2de7f2db36
()
21720 if ! $gl_gnulib_enabled_be453cec5eecf5731a274f2de7f2db36; then
21723 gl_gnulib_enabled_be453cec5eecf5731a274f2de7f2db36
=true
21726 func_gl_gnulib_m4code_pathmax
()
21728 if ! $gl_gnulib_enabled_pathmax; then
21732 gl_gnulib_enabled_pathmax
=true
21735 func_gl_gnulib_m4code_sigprocmask
()
21737 if ! $gl_gnulib_enabled_sigprocmask; then
21741 if test $gl_cv_type_sigset_t = yes; then
21742 ac_fn_c_check_func
"$LINENO" "sigprocmask" "ac_cv_func_sigprocmask"
21743 if test "x$ac_cv_func_sigprocmask" = x
""yes; then :
21744 gl_cv_func_sigprocmask
=1
21748 if test -z "$gl_cv_func_sigprocmask"; then
21749 HAVE_POSIX_SIGNALBLOCKING
=0
21752 if test $HAVE_POSIX_SIGNALBLOCKING = 0; then
21761 gl_LIBOBJS
="$gl_LIBOBJS sigprocmask.$ac_objext"
21772 GNULIB_SIGPROCMASK
=1
21778 gl_gnulib_enabled_sigprocmask
=true
21781 func_gl_gnulib_m4code_stat
()
21783 if ! $gl_gnulib_enabled_stat; then
21787 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stat handles trailing slashes on directories" >&5
21788 $as_echo_n "checking whether stat handles trailing slashes on directories... " >&6; }
21789 if test "${gl_cv_func_stat_dir_slash+set}" = set; then :
21790 $as_echo_n "(cached) " >&6
21792 if test "$cross_compiling" = yes; then :
21794 mingw
*) gl_cv_func_stat_dir_slash
="guessing no";;
21795 *) gl_cv_func_stat_dir_slash
="guessing yes";;
21798 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
21799 /* end confdefs.h. */
21800 #include <sys/stat.h>
21805 struct stat st; return stat (".", &st) != stat ("./", &st);
21810 if ac_fn_c_try_run
"$LINENO"; then :
21811 gl_cv_func_stat_dir_slash
=yes
21813 gl_cv_func_stat_dir_slash
=no
21815 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
21816 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
21820 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_stat_dir_slash" >&5
21821 $as_echo "$gl_cv_func_stat_dir_slash" >&6; }
21822 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stat handles trailing slashes on files" >&5
21823 $as_echo_n "checking whether stat handles trailing slashes on files... " >&6; }
21824 if test "${gl_cv_func_stat_file_slash+set}" = set; then :
21825 $as_echo_n "(cached) " >&6
21828 # Assume that if we have lstat, we can also check symlinks.
21829 if test $ac_cv_func_lstat = yes; then
21830 ln -s conftest.tmp conftest.lnk
21832 if test "$cross_compiling" = yes; then :
21833 gl_cv_func_stat_file_slash
="guessing no"
21835 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
21836 /* end confdefs.h. */
21837 #include <sys/stat.h>
21844 if (!stat ("conftest.tmp/", &st))
21847 if (!stat ("conftest.lnk/", &st))
21856 if ac_fn_c_try_run
"$LINENO"; then :
21857 gl_cv_func_stat_file_slash
=yes
21859 gl_cv_func_stat_file_slash
=no
21861 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
21862 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
21865 rm -f conftest.tmp conftest.lnk
21867 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_stat_file_slash" >&5
21868 $as_echo "$gl_cv_func_stat_file_slash" >&6; }
21869 case $gl_cv_func_stat_dir_slash in
21870 *no
) REPLACE_STAT
=1
21872 $as_echo "#define REPLACE_FUNC_STAT_DIR 1" >>confdefs.h
21875 case $gl_cv_func_stat_file_slash in
21876 *no
) REPLACE_STAT
=1
21878 $as_echo "#define REPLACE_FUNC_STAT_FILE 1" >>confdefs.h
21882 if test $REPLACE_STAT = 1; then
21891 gl_LIBOBJS
="$gl_LIBOBJS stat.$ac_objext"
21909 gl_gnulib_enabled_stat
=true
21910 if test $REPLACE_STAT = 1; then
21911 func_gl_gnulib_m4code_dosname
21913 if test $REPLACE_STAT = 1; then
21914 func_gl_gnulib_m4code_pathmax
21916 if test $REPLACE_STAT = 1; then
21917 func_gl_gnulib_m4code_verify
21921 func_gl_gnulib_m4code_strtoll
()
21923 if ! $gl_gnulib_enabled_strtoll; then
21927 if test "$ac_cv_type_long_long_int" = yes; then
21928 for ac_func
in strtoll
21930 ac_fn_c_check_func
"$LINENO" "strtoll" "ac_cv_func_strtoll"
21931 if test "x$ac_cv_func_strtoll" = x
""yes; then :
21932 cat >>confdefs.h
<<_ACEOF
21933 #define HAVE_STRTOLL 1
21939 if test $ac_cv_func_strtoll = no
; then
21944 if test $HAVE_STRTOLL = 0; then
21953 gl_LIBOBJS
="$gl_LIBOBJS strtoll.$ac_objext"
21970 gl_gnulib_enabled_strtoll
=true
21973 func_gl_gnulib_m4code_strtoull
()
21975 if ! $gl_gnulib_enabled_strtoull; then
21979 if test "$ac_cv_type_unsigned_long_long_int" = yes; then
21980 for ac_func
in strtoull
21982 ac_fn_c_check_func
"$LINENO" "strtoull" "ac_cv_func_strtoull"
21983 if test "x$ac_cv_func_strtoull" = x
""yes; then :
21984 cat >>confdefs.h
<<_ACEOF
21985 #define HAVE_STRTOULL 1
21991 if test $ac_cv_func_strtoull = no
; then
21996 if test $HAVE_STRTOULL = 0; then
22005 gl_LIBOBJS
="$gl_LIBOBJS strtoull.$ac_objext"
22022 gl_gnulib_enabled_strtoull
=true
22025 func_gl_gnulib_m4code_verify
()
22027 if ! $gl_gnulib_enabled_verify; then
22028 gl_gnulib_enabled_verify
=true
22031 if test $REPLACE_GETOPT = 1; then
22032 func_gl_gnulib_m4code_be453cec5eecf5731a274f2de7f2db36
22034 if test $REPLACE_LSTAT = 1; then
22035 func_gl_gnulib_m4code_dosname
22037 if test $REPLACE_LSTAT = 1; then
22038 func_gl_gnulib_m4code_stat
22040 if test $HAVE_PTHREAD_SIGMASK = 0 ||
test $REPLACE_PTHREAD_SIGMASK = 1; then
22041 func_gl_gnulib_m4code_sigprocmask
22043 if test $HAVE_READLINK = 0 ||
test $REPLACE_READLINK = 1; then
22044 func_gl_gnulib_m4code_stat
22046 if test $ac_cv_func_strtoimax = no
; then
22047 func_gl_gnulib_m4code_verify
22049 if test $ac_cv_func_strtoimax = no
&& test $ac_cv_type_long_long_int = yes; then
22050 func_gl_gnulib_m4code_strtoll
22052 if test $ac_cv_func_strtoumax = no
; then
22053 func_gl_gnulib_m4code_verify
22055 if test $ac_cv_func_strtoumax = no
&& test $ac_cv_type_unsigned_long_long_int = yes; then
22056 func_gl_gnulib_m4code_strtoull
22059 if $gl_gnulib_enabled_dosname; then
22060 gl_GNULIB_ENABLED_dosname_TRUE
=
22061 gl_GNULIB_ENABLED_dosname_FALSE
='#'
22063 gl_GNULIB_ENABLED_dosname_TRUE
='#'
22064 gl_GNULIB_ENABLED_dosname_FALSE
=
22067 if $gl_gnulib_enabled_be453cec5eecf5731a274f2de7f2db36; then
22068 gl_GNULIB_ENABLED_be453cec5eecf5731a274f2de7f2db36_TRUE
=
22069 gl_GNULIB_ENABLED_be453cec5eecf5731a274f2de7f2db36_FALSE
='#'
22071 gl_GNULIB_ENABLED_be453cec5eecf5731a274f2de7f2db36_TRUE
='#'
22072 gl_GNULIB_ENABLED_be453cec5eecf5731a274f2de7f2db36_FALSE
=
22075 if $gl_gnulib_enabled_pathmax; then
22076 gl_GNULIB_ENABLED_pathmax_TRUE
=
22077 gl_GNULIB_ENABLED_pathmax_FALSE
='#'
22079 gl_GNULIB_ENABLED_pathmax_TRUE
='#'
22080 gl_GNULIB_ENABLED_pathmax_FALSE
=
22083 if $gl_gnulib_enabled_sigprocmask; then
22084 gl_GNULIB_ENABLED_sigprocmask_TRUE
=
22085 gl_GNULIB_ENABLED_sigprocmask_FALSE
='#'
22087 gl_GNULIB_ENABLED_sigprocmask_TRUE
='#'
22088 gl_GNULIB_ENABLED_sigprocmask_FALSE
=
22091 if $gl_gnulib_enabled_stat; then
22092 gl_GNULIB_ENABLED_stat_TRUE
=
22093 gl_GNULIB_ENABLED_stat_FALSE
='#'
22095 gl_GNULIB_ENABLED_stat_TRUE
='#'
22096 gl_GNULIB_ENABLED_stat_FALSE
=
22099 if $gl_gnulib_enabled_strtoll; then
22100 gl_GNULIB_ENABLED_strtoll_TRUE
=
22101 gl_GNULIB_ENABLED_strtoll_FALSE
='#'
22103 gl_GNULIB_ENABLED_strtoll_TRUE
='#'
22104 gl_GNULIB_ENABLED_strtoll_FALSE
=
22107 if $gl_gnulib_enabled_strtoull; then
22108 gl_GNULIB_ENABLED_strtoull_TRUE
=
22109 gl_GNULIB_ENABLED_strtoull_FALSE
='#'
22111 gl_GNULIB_ENABLED_strtoull_TRUE
='#'
22112 gl_GNULIB_ENABLED_strtoull_FALSE
=
22115 if $gl_gnulib_enabled_verify; then
22116 gl_GNULIB_ENABLED_verify_TRUE
=
22117 gl_GNULIB_ENABLED_verify_FALSE
='#'
22119 gl_GNULIB_ENABLED_verify_TRUE
='#'
22120 gl_GNULIB_ENABLED_verify_FALSE
=
22123 # End of code from modules
22144 gl_source_base
='tests'
22145 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
22147 gl_module_indicator_condition
=$gltests_WITNESS
22158 LIBGNU_LIBDEPS
="$gl_libdeps"
22160 LIBGNU_LTLIBDEPS
="$gl_ltlibdeps"
22165 aix4-2
) LD_SWITCH_SYSTEM_TEMACS
="-Wl,-bnodelcsect" ;;
22168 ## The -headerpad option tells ld (see man page) to leave room at the
22169 ## end of the header for adding load commands. Needed for dumping.
22170 ## 0x690 is the total size of 30 segment load commands (at 56
22171 ## each); under Cocoa 31 commands are required.
22172 if test "$HAVE_NS" = "yes"; then
22173 libs_nsgui
="-framework AppKit"
22174 headerpad_extra
=6C8
22177 headerpad_extra
=690
22179 LD_SWITCH_SYSTEM_TEMACS
="-fno-pie -prebind $libs_nsgui -Xlinker -headerpad -Xlinker $headerpad_extra"
22181 ## This is here because src/Makefile.in did some extra fiddling around
22182 ## with LD_SWITCH_SYSTEM. The cpp logic was:
22183 ## #ifndef LD_SWITCH_SYSTEM
22184 ## #if !defined (__GNUC__) && ((defined (BSD_SYSTEM) && !defined (COFF)))
22185 ## Since all the *bsds define LD_SWITCH_SYSTEM, this simplifies to:
22186 ## not using gcc, darwin system not on an alpha (ie darwin, since
22187 ## darwin + alpha does not occur).
22188 ## Because this was done in src/Makefile.in, the resulting part of
22189 ## LD_SWITCH_SYSTEM was not used in configure (ie, in ac_link).
22190 ## It therefore seems cleaner to put this in LD_SWITCH_SYSTEM_TEMACS,
22191 ## rather than LD_SWITCH_SYSTEM.
22192 test "x$LD_SWITCH_SYSTEM" = "x" && test "x$GCC" != "xyes" && \
22193 LD_SWITCH_SYSTEM_TEMACS
="-X $LD_SWITCH_SYSTEM_TEMACS"
22196 ## LD_SWITCH_X_SITE_AUX is a -R option saying where to find X at run-time.
22197 ## When handled by cpp, this was in LD_SWITCH_SYSTEM. However, at
22198 ## the point where configure sourced the s/*.h file, LD_SWITCH_X_SITE_AUX
22199 ## had not yet been defined and was expanded to null. Hence LD_SWITCH_SYSTEM
22200 ## had different values in configure (in ac_link) and src/Makefile.in.
22201 ## It seems clearer therefore to put this piece in LD_SWITCH_SYSTEM_TEMACS.
22202 gnu-linux
) LD_SWITCH_SYSTEM_TEMACS
="\$(LD_SWITCH_X_SITE_AUX)" ;;
22204 *) LD_SWITCH_SYSTEM_TEMACS
= ;;
22207 if test "$NS_IMPL_GNUSTEP" = "yes"; then
22208 LD_SWITCH_SYSTEM_TEMACS
="${LD_SWITCH_SYSTEM_TEMACS} -L${GNUSTEP_SYSTEM_LIBRARIES} ${GNUSTEP_LOCAL_LIBRARIES} -lgnustep-gui -lgnustep-base -lobjc -lpthread"
22217 ## gnu: GNU needs its own crt0.
22218 aix4-2|cygwin|darwin|gnu|hpux
*|irix6-5|sol2
*|unixware
) ORDINARY_LINK
=yes ;;
22220 ## On post 1.3 releases of NetBSD, gcc -nostdlib also clears the
22221 ## library search parth, i.e. it won't search /usr/lib for libc and
22222 ## friends. Using -nostartfiles instead avoids this problem, and
22223 ## will also work on earlier NetBSD releases.
22224 netbsd|openbsd
) LD_FIRSTFLAG
="-nostartfiles" ;;
22226 ## macpcc: NAKAJI Hiroyuki <nakaji@tutrp.tut.ac.jp> says
22227 ## MkLinux/LinuxPPC needs this.
22228 ## ibms390x only supports opsys = gnu-linux so it can be added here.
22231 macppc|ibms390x
) LD_FIRSTFLAG
="-nostdlib" ;;
22237 if test "x$ORDINARY_LINK" = "xyes"; then
22241 $as_echo "#define ORDINARY_LINK 1" >>confdefs.h
22244 ## The system files defining neither ORDINARY_LINK nor LD_FIRSTFLAG are:
22245 ## freebsd, gnu-* not on macppc|ibms390x.
22246 elif test "x$GCC" = "xyes" && test "x$LD_FIRSTFLAG" = "x"; then
22248 ## Versions of GCC >= 2.0 put their library, libgcc.a, in obscure
22249 ## places that are difficult to figure out at make time. Fortunately,
22250 ## these same versions allow you to pass arbitrary flags on to the
22251 ## linker, so there is no reason not to use it as a linker.
22253 ## Well, it is not quite perfect. The "-nostdlib" keeps GCC from
22254 ## searching for libraries in its internal directories, so we have to
22255 ## ask GCC explicitly where to find libgcc.a (LIB_GCC below).
22256 LD_FIRSTFLAG
="-nostdlib"
22259 ## FIXME? What setting of EDIT_LDFLAGS should this have?
22260 test "$NS_IMPL_GNUSTEP" = "yes" && LD_FIRSTFLAG
="-rdynamic"
22265 ## FIXME? The logic here is not precisely the same as that above.
22266 ## There is no check here for a pre-defined LD_FIRSTFLAG.
22267 ## Should we only be setting LIB_GCC if LD ~ -nostdlib?
22269 if test "x$GCC" = "xyes" && test "x$ORDINARY_LINK" != "xyes"; then
22272 freebsd|netbsd|openbsd
) LIB_GCC
= ;;
22275 ## armin76@gentoo.org reported that the lgcc_s flag is necessary to
22276 ## build on ARM EABI under GNU/Linux. (Bug#5518)
22282 ## FIXME? s/gnu-linux.h used to define LIB_GCC as below, then
22283 ## immediately undefine it again and redefine it to empty.
22284 ## Was the C_SWITCH_X_SITE part really necessary?
22285 ## LIB_GCC=`$CC $C_SWITCH_X_SITE -print-libgcc-file-name`
22291 ## Ask GCC where to find libgcc.a.
22292 *) LIB_GCC
=`$CC -print-libgcc-file-name 2> /dev/null` ;;
22297 ## If we're using X11/GNUstep, define some consequences.
22298 if test "$HAVE_X_WINDOWS" = "yes" ||
test "$HAVE_NS" = "yes"; then
22300 $as_echo "#define HAVE_WINDOW_SYSTEM 1" >>confdefs.h
22303 $as_echo "#define HAVE_MOUSE 1" >>confdefs.h
22310 #### Report on what we decided to do.
22311 #### Report GTK as a toolkit, even if it doesn't use Xt.
22312 #### It makes printing result more understandable as using GTK sets
22313 #### toolkit_scroll_bars to yes by default.
22314 if test "${HAVE_GTK}" = "yes"; then
22319 if test -n "$machfile"; then
22320 and_machfile
=" and \`${machfile}'"
22324 Configured for \`${canonical}'.
22326 Where should the build process find the source code? ${srcdir}
22327 What operating system and machine description files should Emacs use?
22328 \`${opsysfile}'${and_machfile}
22329 What compiler should emacs be built with? ${CC} ${CFLAGS}
22330 Should Emacs use the GNU version of malloc? ${GNU_MALLOC}${GNU_MALLOC_reason}
22331 Should Emacs use a relocating allocator for buffers? ${REL_ALLOC}
22332 Should Emacs use mmap(2) for buffer allocation? $use_mmap_for_buffers
22333 What window system should Emacs use? ${window_system}
22334 What toolkit should Emacs use? ${USE_X_TOOLKIT}"
22336 if test -n "${x_includes}"; then
22337 echo " Where do we find X Windows header files? ${x_includes}"
22339 echo " Where do we find X Windows header files? Standard dirs"
22341 if test -n "${x_libraries}"; then
22342 echo " Where do we find X Windows libraries? ${x_libraries}"
22344 echo " Where do we find X Windows libraries? Standard dirs"
22347 echo " Does Emacs use -lXaw3d? ${HAVE_XAW3D}"
22348 echo " Does Emacs use -lXpm? ${HAVE_XPM}"
22349 echo " Does Emacs use -ljpeg? ${HAVE_JPEG}"
22350 echo " Does Emacs use -ltiff? ${HAVE_TIFF}"
22351 echo " Does Emacs use a gif library? ${HAVE_GIF} $LIBGIF"
22352 echo " Does Emacs use -lpng? ${HAVE_PNG}"
22353 echo " Does Emacs use -lrsvg-2? ${HAVE_RSVG}"
22354 echo " Does Emacs use imagemagick? ${HAVE_IMAGEMAGICK}"
22356 echo " Does Emacs use -lgpm? ${HAVE_GPM}"
22357 echo " Does Emacs use -ldbus? ${HAVE_DBUS}"
22358 echo " Does Emacs use -lgconf? ${HAVE_GCONF}"
22359 echo " Does Emacs use GSettings? ${HAVE_GSETTINGS}"
22360 echo " Does Emacs use -lselinux? ${HAVE_LIBSELINUX}"
22361 echo " Does Emacs use -lgnutls? ${HAVE_GNUTLS}"
22362 echo " Does Emacs use -lxml2? ${HAVE_LIBXML2}"
22364 echo " Does Emacs use -lfreetype? ${HAVE_FREETYPE}"
22365 echo " Does Emacs use -lm17n-flt? ${HAVE_M17N_FLT}"
22366 echo " Does Emacs use -lotf? ${HAVE_LIBOTF}"
22367 echo " Does Emacs use -lxft? ${HAVE_XFT}"
22369 echo " Does Emacs use toolkit scroll bars? ${USE_TOOLKIT_SCROLL_BARS}"
22372 if test -n "${EMACSDATA}"; then
22373 echo " Environment variable EMACSDATA set to: $EMACSDATA"
22375 if test -n "${EMACSDOC}"; then
22376 echo " Environment variable EMACSDOC set to: $EMACSDOC"
22379 if test $USE_XASSERTS = yes; then
22380 echo " Compiling with asserts turned on."
22381 CPPFLAGS
="$CPPFLAGS -DXASSERTS=1"
22386 if test "$HAVE_NS" = "yes"; then
22388 echo "You must run \"${MAKE-make} install\" in order to test the built application.
22389 The installed application will go to nextstep/Emacs.app and can be
22390 run or moved from there."
22391 if test "$EN_NS_SELF_CONTAINED" = "yes"; then
22392 echo "The application will be fully self-contained."
22394 echo "The lisp resources for the application will be installed under ${prefix}.
22395 You may need to run \"${MAKE-make} install\" with sudo. The application will fail
22396 to run if these resources are not installed."
22401 if test "${opsys}" = "cygwin"; then
22403 1.5.
*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: building Emacs on Cygwin 1.5 is not supported." >&5
22404 $as_echo "$as_me: WARNING: building Emacs on Cygwin 1.5 is not supported." >&2;}
22410 # Remove any trailing slashes in these variables.
22411 test "${prefix}" != NONE
&&
22412 prefix
=`echo "${prefix}" | sed 's,\([^/]\)/*$,\1,'`
22413 test "${exec_prefix}" != NONE
&&
22414 exec_prefix
=`echo "${exec_prefix}" | sed 's,\([^/]\)/*$,\1,'`
22416 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"
22418 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"
22421 opt_makefile
=test
/automated
/Makefile
22423 if test -f $srcdir/${opt_makefile}.
in; then
22424 SUBDIR_MAKEFILES
="$SUBDIR_MAKEFILES $opt_makefile"
22425 ac_config_files
="$ac_config_files test/automated/Makefile"
22430 opt_makefile
=admin
/unidata
/Makefile
22432 if test -f $srcdir/${opt_makefile}.
in; then
22433 SUBDIR_MAKEFILES
="$SUBDIR_MAKEFILES $opt_makefile"
22434 ac_config_files
="$ac_config_files admin/unidata/Makefile"
22439 SUBDIR_MAKEFILES_IN
=`echo " ${SUBDIR_MAKEFILES}" | sed -e 's| | $(srcdir)/|g' -e 's|Makefile|Makefile.in|g'`
22443 ac_config_commands
="$ac_config_commands mkdirs"
22446 ac_config_commands
="$ac_config_commands epaths"
22449 ac_config_commands
="$ac_config_commands gdbinit"
22452 cat >confcache
<<\_ACEOF
22453 # This file is a shell script that caches the results of configure
22454 # tests run on this system so they can be shared between configure
22455 # scripts and configure runs, see configure's option --config-cache.
22456 # It is not useful on other systems. If it contains results you don't
22457 # want to keep, you may remove or edit it.
22459 # config.status only pays attention to the cache file if you give it
22460 # the --recheck option to rerun configure.
22462 # `ac_cv_env_foo' variables (set or unset) will be overridden when
22463 # loading this file, other *unset* `ac_cv_foo' will be assigned the
22464 # following values.
22468 # The following way of writing the cache mishandles newlines in values,
22469 # but we know of no workaround that is simple, portable, and efficient.
22470 # So, we kill variables containing newlines.
22471 # Ultrix sh set writes to stderr and can't be redirected directly,
22472 # and sets the high bit in the cache file unless we assign to the vars.
22474 for ac_var
in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
22475 eval ac_val
=\$
$ac_var
22479 *_cv_
*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
22480 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
22483 _ | IFS | as_nl
) ;; #(
22484 BASH_ARGV | BASH_SOURCE
) eval $ac_var= ;; #(
22485 *) { eval $ac_var=; unset $ac_var;} ;;
22491 case $as_nl`(ac_space=' '; set) 2>&1` in #(
22492 *${as_nl}ac_space
=\
*)
22493 # `set' does not quote correctly, so add quotes: double-quote
22494 # substitution turns \\\\ into \\, and sed turns \\ into \.
22497 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
22500 # `set' quotes correctly as required by POSIX, so do not add quotes.
22501 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
22510 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
22512 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
22514 if diff "$cache_file" confcache
>/dev
/null
2>&1; then :; else
22515 if test -w "$cache_file"; then
22516 test "x$cache_file" != "x/dev/null" &&
22517 { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
22518 $as_echo "$as_me: updating cache $cache_file" >&6;}
22519 cat confcache
>$cache_file
22521 { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
22522 $as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
22527 test "x$prefix" = xNONE
&& prefix
=$ac_default_prefix
22528 # Let make expand exec_prefix.
22529 test "x$exec_prefix" = xNONE
&& exec_prefix
='${prefix}'
22531 DEFS
=-DHAVE_CONFIG_H
22535 for ac_i
in : $LIBOBJS; do test "x$ac_i" = x
: && continue
22536 # 1. Remove the extension, and $U if already installed.
22537 ac_script
='s/\$U\././;s/\.o$//;s/\.obj$//'
22538 ac_i
=`$as_echo "$ac_i" | sed "$ac_script"`
22539 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
22540 # will be set to the directory where LIBOBJS objects are built.
22541 as_fn_append ac_libobjs
" \${LIBOBJDIR}$ac_i\$U.$ac_objext"
22542 as_fn_append ac_ltlibobjs
" \${LIBOBJDIR}$ac_i"'$U.lo'
22544 LIBOBJS
=$ac_libobjs
22546 LTLIBOBJS
=$ac_ltlibobjs
22549 if test -n "$EXEEXT"; then
22551 am__EXEEXT_FALSE
='#'
22553 am__EXEEXT_TRUE
='#'
22557 if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
22558 as_fn_error
"conditional \"AMDEP\" was never defined.
22559 Usually this means the macro was only invoked conditionally." "$LINENO" 5
22561 if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
22562 as_fn_error
"conditional \"am__fastdepCC\" was never defined.
22563 Usually this means the macro was only invoked conditionally." "$LINENO" 5
22566 if test -z "${GL_COND_LIBTOOL_TRUE}" && test -z "${GL_COND_LIBTOOL_FALSE}"; then
22567 as_fn_error
"conditional \"GL_COND_LIBTOOL\" was never defined.
22568 Usually this means the macro was only invoked conditionally." "$LINENO" 5
22570 if test -z "${GL_GENERATE_ALLOCA_H_TRUE}" && test -z "${GL_GENERATE_ALLOCA_H_FALSE}"; then
22571 as_fn_error
"conditional \"GL_GENERATE_ALLOCA_H\" was never defined.
22572 Usually this means the macro was only invoked conditionally." "$LINENO" 5
22575 if test -z "${GL_GENERATE_STDINT_H_TRUE}" && test -z "${GL_GENERATE_STDINT_H_FALSE}"; then
22576 as_fn_error
"conditional \"GL_GENERATE_STDINT_H\" was never defined.
22577 Usually this means the macro was only invoked conditionally." "$LINENO" 5
22579 if test -z "${GL_GENERATE_STDARG_H_TRUE}" && test -z "${GL_GENERATE_STDARG_H_FALSE}"; then
22580 as_fn_error
"conditional \"GL_GENERATE_STDARG_H\" was never defined.
22581 Usually this means the macro was only invoked conditionally." "$LINENO" 5
22583 if test -z "${GL_GENERATE_STDBOOL_H_TRUE}" && test -z "${GL_GENERATE_STDBOOL_H_FALSE}"; then
22584 as_fn_error
"conditional \"GL_GENERATE_STDBOOL_H\" was never defined.
22585 Usually this means the macro was only invoked conditionally." "$LINENO" 5
22587 if test -z "${GL_GENERATE_STDDEF_H_TRUE}" && test -z "${GL_GENERATE_STDDEF_H_FALSE}"; then
22588 as_fn_error
"conditional \"GL_GENERATE_STDDEF_H\" was never defined.
22589 Usually this means the macro was only invoked conditionally." "$LINENO" 5
22591 if test -z "${gl_GNULIB_ENABLED_dosname_TRUE}" && test -z "${gl_GNULIB_ENABLED_dosname_FALSE}"; then
22592 as_fn_error
"conditional \"gl_GNULIB_ENABLED_dosname\" was never defined.
22593 Usually this means the macro was only invoked conditionally." "$LINENO" 5
22595 if test -z "${gl_GNULIB_ENABLED_be453cec5eecf5731a274f2de7f2db36_TRUE}" && test -z "${gl_GNULIB_ENABLED_be453cec5eecf5731a274f2de7f2db36_FALSE}"; then
22596 as_fn_error
"conditional \"gl_GNULIB_ENABLED_be453cec5eecf5731a274f2de7f2db36\" was never defined.
22597 Usually this means the macro was only invoked conditionally." "$LINENO" 5
22599 if test -z "${gl_GNULIB_ENABLED_pathmax_TRUE}" && test -z "${gl_GNULIB_ENABLED_pathmax_FALSE}"; then
22600 as_fn_error
"conditional \"gl_GNULIB_ENABLED_pathmax\" was never defined.
22601 Usually this means the macro was only invoked conditionally." "$LINENO" 5
22603 if test -z "${gl_GNULIB_ENABLED_sigprocmask_TRUE}" && test -z "${gl_GNULIB_ENABLED_sigprocmask_FALSE}"; then
22604 as_fn_error
"conditional \"gl_GNULIB_ENABLED_sigprocmask\" was never defined.
22605 Usually this means the macro was only invoked conditionally." "$LINENO" 5
22607 if test -z "${gl_GNULIB_ENABLED_stat_TRUE}" && test -z "${gl_GNULIB_ENABLED_stat_FALSE}"; then
22608 as_fn_error
"conditional \"gl_GNULIB_ENABLED_stat\" was never defined.
22609 Usually this means the macro was only invoked conditionally." "$LINENO" 5
22611 if test -z "${gl_GNULIB_ENABLED_strtoll_TRUE}" && test -z "${gl_GNULIB_ENABLED_strtoll_FALSE}"; then
22612 as_fn_error
"conditional \"gl_GNULIB_ENABLED_strtoll\" was never defined.
22613 Usually this means the macro was only invoked conditionally." "$LINENO" 5
22615 if test -z "${gl_GNULIB_ENABLED_strtoull_TRUE}" && test -z "${gl_GNULIB_ENABLED_strtoull_FALSE}"; then
22616 as_fn_error
"conditional \"gl_GNULIB_ENABLED_strtoull\" was never defined.
22617 Usually this means the macro was only invoked conditionally." "$LINENO" 5
22619 if test -z "${gl_GNULIB_ENABLED_verify_TRUE}" && test -z "${gl_GNULIB_ENABLED_verify_FALSE}"; then
22620 as_fn_error
"conditional \"gl_GNULIB_ENABLED_verify\" was never defined.
22621 Usually this means the macro was only invoked conditionally." "$LINENO" 5
22626 if test -n "$gl_LIBOBJS"; then
22627 # Remove the extension.
22628 sed_drop_objext
='s/\.o$//;s/\.obj$//'
22629 for i
in `for i in $gl_LIBOBJS; do echo "$i"; done | sed -e "$sed_drop_objext" | sort | uniq`; do
22630 gl_libobjs
="$gl_libobjs $i.$ac_objext"
22631 gl_ltlibobjs
="$gl_ltlibobjs $i.lo"
22634 gl_LIBOBJS
=$gl_libobjs
22636 gl_LTLIBOBJS
=$gl_ltlibobjs
22642 if test -n "$gltests_LIBOBJS"; then
22643 # Remove the extension.
22644 sed_drop_objext
='s/\.o$//;s/\.obj$//'
22645 for i
in `for i in $gltests_LIBOBJS; do echo "$i"; done | sed -e "$sed_drop_objext" | sort | uniq`; do
22646 gltests_libobjs
="$gltests_libobjs $i.$ac_objext"
22647 gltests_ltlibobjs
="$gltests_ltlibobjs $i.lo"
22650 gltests_LIBOBJS
=$gltests_libobjs
22652 gltests_LTLIBOBJS
=$gltests_ltlibobjs
22656 : ${CONFIG_STATUS=./config.status}
22658 ac_clean_files_save
=$ac_clean_files
22659 ac_clean_files
="$ac_clean_files $CONFIG_STATUS"
22660 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
22661 $as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
22663 cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
22665 # Generated by $as_me.
22666 # Run this file to recreate the current configuration.
22667 # Compiler output produced by configure, useful for debugging
22668 # configure, is in config.log if it exists.
22671 ac_cs_recheck=false
22674 SHELL=\${CONFIG_SHELL-$SHELL}
22677 cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail
=1
22678 ## -------------------- ##
22679 ## M4sh Initialization. ##
22680 ## -------------------- ##
22682 # Be more Bourne compatible
22683 DUALCASE
=1; export DUALCASE
# for MKS sh
22684 if test -n "${ZSH_VERSION+set}" && (emulate sh
) >/dev
/null
2>&1; then :
22687 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
22688 # is contrary to our usage. Disable this feature.
22689 alias -g '${1+"$@"}'='"$@"'
22690 setopt NO_GLOB_SUBST
22692 case `(set -o) 2>/dev/null` in #(
22704 # Printing a long string crashes Solaris 7 /usr/bin/printf.
22705 as_echo
='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
22706 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
22707 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
22708 # Prefer a ksh shell builtin over an external printf program on Solaris,
22709 # but without wasting forks for bash or zsh.
22710 if test -z "$BASH_VERSION$ZSH_VERSION" \
22711 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
22712 as_echo='print
-r --'
22713 as_echo_n='print
-rn --'
22714 elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
22715 as_echo='printf %s
\n'
22716 as_echo_n='printf %s
'
22718 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
22719 as_echo_body='eval /usr
/ucb
/echo -n "$1$as_nl"'
22720 as_echo_n='/usr
/ucb
/echo -n'
22722 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
22723 as_echo_n_body='eval
22727 expr "X$arg" : "X\\(.*\\)$as_nl";
22728 arg
=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
22730 expr "X$arg" : "X\\(.*\\)" |
tr -d "$as_nl"
22732 export as_echo_n_body
22733 as_echo_n='sh
-c $as_echo_n_body as_echo
'
22735 export as_echo_body
22736 as_echo='sh
-c $as_echo_body as_echo
'
22739 # The user is always right.
22740 if test "${PATH_SEPARATOR+set}" != set; then
22742 (PATH='/bin
;/bin
'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
22743 (PATH='/bin
:/bin
'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
22750 # We need space, tab and new line, in precisely that order. Quoting is
22751 # there to prevent editors from complaining about space-tab.
22752 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
22753 # splitting by setting IFS to empty value.)
22756 # Find who we are. Look in the path if we contain no directory separator.
22758 *[\\/]* ) as_myself=$0 ;;
22759 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
22760 for as_dir in $PATH
22763 test -z "$as_dir" && as_dir=.
22764 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
22770 # We did not find ourselves, most probably we were run as `sh COMMAND'
22771 # in which case we are not to be found in the path.
22772 if test "x$as_myself" = x
; then
22775 if test ! -f "$as_myself"; then
22776 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
22780 # Unset variables that we do not need and which cause bugs (e.g. in
22781 # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
22782 # suppresses any "Segmentation fault" message there. '((' could
22783 # trigger a bug in pdksh 5.2.14.
22784 for as_var
in BASH_ENV ENV MAIL MAILPATH
22785 do eval test x\
${$as_var+set} = xset \
22786 && ( (unset $as_var) ||
exit 1) >/dev
/null
2>&1 && unset $as_var ||
:
22799 (unset CDPATH
) >/dev
/null
2>&1 && unset CDPATH
22802 # as_fn_error ERROR [LINENO LOG_FD]
22803 # ---------------------------------
22804 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
22805 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
22806 # script with status $?, using 1 if that was 0.
22809 as_status
=$?
; test $as_status -eq 0 && as_status
=1
22811 as_lineno
=${as_lineno-"$2"} as_lineno_stack
=as_lineno_stack
=$as_lineno_stack
22812 $as_echo "$as_me:${as_lineno-$LINENO}: error: $1" >&$3
22814 $as_echo "$as_me: error: $1" >&2
22815 as_fn_exit
$as_status
22819 # as_fn_set_status STATUS
22820 # -----------------------
22821 # Set $? to STATUS, without forking.
22822 as_fn_set_status
()
22825 } # as_fn_set_status
22827 # as_fn_exit STATUS
22828 # -----------------
22829 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
22833 as_fn_set_status
$1
22839 # Portably unset VAR.
22842 { eval $1=; unset $1;}
22844 as_unset
=as_fn_unset
22845 # as_fn_append VAR VALUE
22846 # ----------------------
22847 # Append the text in VALUE to the end of the definition contained in VAR. Take
22848 # advantage of any shell optimizations that allow amortized linear growth over
22849 # repeated appends, instead of the typical quadratic growth present in naive
22851 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev
/null
; then :
22852 eval 'as_fn_append ()
22863 # as_fn_arith ARG...
22864 # ------------------
22865 # Perform arithmetic evaluation on the ARGs, and store the result in the
22866 # global $as_val. Take advantage of shells that can avoid forks. The arguments
22867 # must be portable across $(()) and expr.
22868 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev
/null
; then :
22869 eval 'as_fn_arith ()
22876 as_val
=`expr "$@" || test $? -eq 1`
22881 if expr a
: '\(a\)' >/dev
/null
2>&1 &&
22882 test "X`expr 00001 : '.*\(...\)'`" = X001
; then
22888 if (basename -- /) >/dev
/null
2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
22889 as_basename
=basename
22894 if (as_dir
=`dirname -- /` && test "X$as_dir" = X
/) >/dev
/null
2>&1; then
22900 as_me
=`$as_basename -- "$0" ||
22901 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
22902 X"$0" : 'X\(//\)$' \| \
22903 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
22905 sed '/^.*\/\([^/][^/]*\)\/*$/{
22919 # Avoid depending upon Character Ranges.
22920 as_cr_letters
='abcdefghijklmnopqrstuvwxyz'
22921 as_cr_LETTERS
='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
22922 as_cr_Letters
=$as_cr_letters$as_cr_LETTERS
22923 as_cr_digits
='0123456789'
22924 as_cr_alnum
=$as_cr_Letters$as_cr_digits
22926 ECHO_C
= ECHO_N
= ECHO_T
=
22927 case `echo -n x` in #(((((
22929 case `echo 'xy\c'` in
22930 *c
*) ECHO_T
=' ';; # ECHO_T is single tab character.
22932 *) echo `echo ksh88 bug on AIX 6.1` > /dev
/null
22939 rm -f conf$$ conf$$.exe conf$$.
file
22940 if test -d conf$$.dir
; then
22941 rm -f conf$$.dir
/conf$$.
file
22944 mkdir conf$$.dir
2>/dev
/null
22946 if (echo >conf$$.
file) 2>/dev
/null
; then
22947 if ln -s conf$$.
file conf$$
2>/dev
/null
; then
22949 # ... but there are two gotchas:
22950 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
22951 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
22952 # In both cases, we have to default to `cp -p'.
22953 ln -s conf$$.
file conf$$.dir
2>/dev
/null
&& test ! -f conf$$.exe ||
22955 elif ln conf$$.
file conf$$
2>/dev
/null
; then
22963 rm -f conf$$ conf$$.exe conf$$.dir
/conf$$.
file conf$$.
file
22964 rmdir conf$$.dir
2>/dev
/null
22969 # Create "$as_dir" as a directory, including parents if necessary.
22974 -*) as_dir
=.
/$as_dir;;
22976 test -d "$as_dir" ||
eval $as_mkdir_p ||
{
22980 *\'*) as_qdir
=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
22981 *) as_qdir
=$as_dir;;
22983 as_dirs
="'$as_qdir' $as_dirs"
22984 as_dir
=`$as_dirname -- "$as_dir" ||
22985 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
22986 X"$as_dir" : 'X\(//\)[^/]' \| \
22987 X"$as_dir" : 'X\(//\)$' \| \
22988 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
22989 $as_echo X"$as_dir" |
22990 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
22994 /^X\(\/\/\)[^/].*/{
23007 test -d "$as_dir" && break
23009 test -z "$as_dirs" ||
eval "mkdir $as_dirs"
23010 } ||
test -d "$as_dir" || as_fn_error
"cannot create directory $as_dir"
23014 if mkdir
-p .
2>/dev
/null
; then
23015 as_mkdir_p
='mkdir -p "$as_dir"'
23017 test -d .
/-p && rmdir .
/-p
23021 if test -x / >/dev
/null
2>&1; then
23022 as_test_x
='test -x'
23024 if ls -dL / >/dev
/null
2>&1; then
23031 if test -d "$1"; then
23037 case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in #((
23038 ???[sx]*):;;*)false;;esac;fi
23042 as_executable_p
=$as_test_x
23044 # Sed expression to map a string onto a valid CPP name.
23045 as_tr_cpp
="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
23047 # Sed expression to map a string onto a valid variable name.
23048 as_tr_sh
="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
23052 ## ----------------------------------- ##
23053 ## Main body of $CONFIG_STATUS script. ##
23054 ## ----------------------------------- ##
23056 test $as_write_fail = 0 && chmod +x
$CONFIG_STATUS || ac_write_fail
=1
23058 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail
=1
23059 # Save the log message, to keep $0 and so on meaningful, and to
23060 # report actual input values of CONFIG_FILES etc. instead of their
23061 # values after options handling.
23063 This file was extended by emacs $as_me 24.1.50, which was
23064 generated by GNU Autoconf 2.65. Invocation command line was
23066 CONFIG_FILES = $CONFIG_FILES
23067 CONFIG_HEADERS = $CONFIG_HEADERS
23068 CONFIG_LINKS = $CONFIG_LINKS
23069 CONFIG_COMMANDS = $CONFIG_COMMANDS
23072 on `(hostname || uname -n) 2>/dev/null | sed 1q`
23077 case $ac_config_files in *"
23078 "*) set x
$ac_config_files; shift; ac_config_files
=$
*;;
23081 case $ac_config_headers in *"
23082 "*) set x
$ac_config_headers; shift; ac_config_headers
=$
*;;
23086 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
23087 # Files that config.status was made for.
23088 config_files="$ac_config_files"
23089 config_headers="$ac_config_headers"
23090 config_commands="$ac_config_commands"
23094 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail
=1
23096 \`$as_me' instantiates files and other configuration actions
23097 from templates according to the current configuration. Unless the files
23098 and actions are specified as TAGs, all are instantiated by default.
23100 Usage: $0 [OPTION]... [TAG]...
23102 -h, --help print this help, then exit
23103 -V, --version print version number and configuration settings, then exit
23104 --config print configuration, then exit
23105 -q, --quiet, --silent
23106 do not print progress messages
23107 -d, --debug don't remove temporary files
23108 --recheck update $as_me by reconfiguring in the same conditions
23109 --file=FILE[:TEMPLATE]
23110 instantiate the configuration file FILE
23111 --header=FILE[:TEMPLATE]
23112 instantiate the configuration header FILE
23114 Configuration files:
23117 Configuration headers:
23120 Configuration commands:
23123 Report bugs to the package provider."
23126 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
23127 ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`"
23129 emacs config.status 24.1.50
23130 configured by $0, generated by GNU Autoconf 2.65,
23131 with options \\"\$ac_cs_config\\"
23133 Copyright (C) 2009 Free Software Foundation, Inc.
23134 This config.status script is free software; the Free Software Foundation
23135 gives unlimited permission to copy, distribute and modify it."
23142 test -n "\$AWK" || AWK=awk
23145 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail
=1
23146 # The default lists apply if the user does not specify any file.
23152 ac_option
=`expr "X$1" : 'X\([^=]*\)='`
23153 ac_optarg
=`expr "X$1" : 'X[^=]*=\(.*\)'`
23164 # Handling of the options.
23165 -recheck |
--recheck |
--rechec |
--reche |
--rech |
--rec |
--re |
--r)
23167 --version |
--versio |
--versi |
--vers |
--ver |
--ve |
--v |
-V )
23168 $as_echo "$ac_cs_version"; exit ;;
23169 --config |
--confi |
--conf |
--con |
--co |
--c )
23170 $as_echo "$ac_cs_config"; exit ;;
23171 --debug |
--debu |
--deb |
--de |
--d |
-d )
23173 --file |
--fil |
--fi |
--f )
23176 *\'*) ac_optarg
=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
23178 as_fn_append CONFIG_FILES
" '$ac_optarg'"
23179 ac_need_defaults
=false
;;
23180 --header |
--heade |
--head |
--hea )
23183 *\'*) ac_optarg
=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
23185 as_fn_append CONFIG_HEADERS
" '$ac_optarg'"
23186 ac_need_defaults
=false
;;
23188 # Conflict between --help and --header
23189 as_fn_error
"ambiguous option: \`$1'
23190 Try \`$0 --help' for more information.";;
23191 --help |
--hel |
-h )
23192 $as_echo "$ac_cs_usage"; exit ;;
23193 -q |
-quiet |
--quiet |
--quie |
--qui |
--qu |
--q \
23194 |
-silent |
--silent |
--silen |
--sile |
--sil |
--si |
--s)
23197 # This is an error.
23198 -*) as_fn_error
"unrecognized option: \`$1'
23199 Try \`$0 --help' for more information." ;;
23201 *) as_fn_append ac_config_targets
" $1"
23202 ac_need_defaults
=false
;;
23208 ac_configure_extra_args
=
23210 if $ac_cs_silent; then
23212 ac_configure_extra_args
="$ac_configure_extra_args --silent"
23216 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
23217 if \$ac_cs_recheck; then
23218 set X '$SHELL' '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
23220 \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
23221 CONFIG_SHELL='$SHELL'
23222 export CONFIG_SHELL
23227 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail
=1
23231 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
23232 ## Running $as_me. ##
23238 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
23242 AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"
23243 GCC="$GCC" NON_GNU_CPP="$NON_GNU_CPP" CPP="$CPP" CPPFLAGS="$CPPFLAGS"
23247 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail
=1
23249 # Handling of arguments.
23250 for ac_config_target
in $ac_config_targets
23252 case $ac_config_target in
23253 "src/config.h") CONFIG_HEADERS
="$CONFIG_HEADERS src/config.h:src/config.in" ;;
23254 "depfiles") CONFIG_COMMANDS
="$CONFIG_COMMANDS depfiles" ;;
23255 "Makefile") CONFIG_FILES
="$CONFIG_FILES Makefile" ;;
23256 "lib/Makefile") CONFIG_FILES
="$CONFIG_FILES lib/Makefile" ;;
23257 "lib-src/Makefile") CONFIG_FILES
="$CONFIG_FILES lib-src/Makefile" ;;
23258 "oldXMenu/Makefile") CONFIG_FILES
="$CONFIG_FILES oldXMenu/Makefile" ;;
23259 "doc/emacs/Makefile") CONFIG_FILES
="$CONFIG_FILES doc/emacs/Makefile" ;;
23260 "doc/misc/Makefile") CONFIG_FILES
="$CONFIG_FILES doc/misc/Makefile" ;;
23261 "doc/lispintro/Makefile") CONFIG_FILES
="$CONFIG_FILES doc/lispintro/Makefile" ;;
23262 "doc/lispref/Makefile") CONFIG_FILES
="$CONFIG_FILES doc/lispref/Makefile" ;;
23263 "src/Makefile") CONFIG_FILES
="$CONFIG_FILES src/Makefile" ;;
23264 "lwlib/Makefile") CONFIG_FILES
="$CONFIG_FILES lwlib/Makefile" ;;
23265 "lisp/Makefile") CONFIG_FILES
="$CONFIG_FILES lisp/Makefile" ;;
23266 "leim/Makefile") CONFIG_FILES
="$CONFIG_FILES leim/Makefile" ;;
23267 "test/automated/Makefile") CONFIG_FILES
="$CONFIG_FILES test/automated/Makefile" ;;
23268 "admin/unidata/Makefile") CONFIG_FILES
="$CONFIG_FILES admin/unidata/Makefile" ;;
23269 "mkdirs") CONFIG_COMMANDS
="$CONFIG_COMMANDS mkdirs" ;;
23270 "epaths") CONFIG_COMMANDS
="$CONFIG_COMMANDS epaths" ;;
23271 "gdbinit") CONFIG_COMMANDS
="$CONFIG_COMMANDS gdbinit" ;;
23273 *) as_fn_error
"invalid argument: \`$ac_config_target'" "$LINENO" 5;;
23278 # If the user did not use the arguments to specify the items to instantiate,
23279 # then the envvar interface is used. Set only those that are not.
23280 # We use the long form for the default assignment because of an extremely
23281 # bizarre bug on SunOS 4.1.3.
23282 if $ac_need_defaults; then
23283 test "${CONFIG_FILES+set}" = set || CONFIG_FILES
=$config_files
23284 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS
=$config_headers
23285 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS
=$config_commands
23288 # Have a temporary directory for convenience. Make it in the build tree
23289 # simply because there is no reason against having it here, and in addition,
23290 # creating and moving files from /tmp can sometimes cause problems.
23291 # Hook for its removal unless debugging.
23292 # Note that there is a small window in which the directory will not be cleaned:
23293 # after its creation but before its name has been assigned to `$tmp'.
23297 trap 'exit_status=$?
23298 { test -z "$tmp" || test ! -d "$tmp" || rm -fr "$tmp"; } && exit $exit_status
23300 trap 'as_fn_exit 1' 1 2 13 15
23302 # Create a (secure) tmp directory for tmp files.
23305 tmp
=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
23306 test -n "$tmp" && test -d "$tmp"
23309 tmp
=.
/conf$$
-$RANDOM
23310 (umask 077 && mkdir
"$tmp")
23311 } || as_fn_error
"cannot create a temporary directory in ." "$LINENO" 5
23313 # Set up the scripts for CONFIG_FILES section.
23314 # No need to generate them if there are no CONFIG_FILES.
23315 # This happens for instance with `./config.status config.h'.
23316 if test -n "$CONFIG_FILES"; then
23318 if $AWK 'BEGIN { getline <"/dev/null" }' </dev
/null
2>/dev
/null
; then
23319 ac_cs_awk_getline
=:
23320 ac_cs_awk_pipe_init
=
23321 ac_cs_awk_read_file
='
23322 while ((getline aline < (F[key])) > 0)
23325 ac_cs_awk_pipe_fini
=
23327 ac_cs_awk_getline
=false
23328 ac_cs_awk_pipe_init
="print \"cat <<'|#_!!_#|' &&\""
23329 ac_cs_awk_read_file
='
23331 print "cat " F[key] " &&"
23332 '$ac_cs_awk_pipe_init
23333 # The final `:' finishes the AND list.
23334 ac_cs_awk_pipe_fini
='END { print "|#_!!_#|"; print ":" }'
23336 ac_cr
=`echo X | tr X '\015'`
23337 # On cygwin, bash can eat \r inside `` if the user requested igncr.
23338 # But we know of no other shell where ac_cr would be empty at this
23339 # point, so we can use a bashism as a fallback.
23340 if test "x$ac_cr" = x
; then
23341 eval ac_cr
=\$
\'\\r
\'
23343 ac_cs_awk_cr
=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
23344 if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
23347 ac_cs_awk_cr
=$ac_cr
23350 echo 'BEGIN {' >"$tmp/subs1.awk" &&
23353 # Create commands to substitute file output variables.
23355 echo "cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1" &&
23356 echo 'cat >>"\$tmp/subs1.awk" <<\\_ACAWK &&' &&
23357 echo "$ac_subst_files" |
sed 's/.*/F["&"]="$&"/' &&
23360 } >conf$
$files.sh
&&
23361 . .
/conf$
$files.sh ||
23362 as_fn_error
"could not make $CONFIG_STATUS" "$LINENO" 5
23363 rm -f conf$
$files.sh
23366 echo "cat >conf$$subs.awk <<_ACEOF" &&
23367 echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
23369 } >conf$$subs.sh ||
23370 as_fn_error "could not
make $CONFIG_STATUS" "$LINENO" 5
23371 ac_delim_num=`echo "$ac_subst_vars" | grep -c '$'`
23373 for ac_last_try in false false false false false :; do
23374 . ./conf$$subs.sh ||
23375 as_fn_error "could not
make $CONFIG_STATUS" "$LINENO" 5
23377 ac_delim_n=`sed -n "s
/.
*$ac_delim\$
/X
/p
" conf$$subs.awk | grep -c X`
23378 if test $ac_delim_n = $ac_delim_num; then
23380 elif $ac_last_try; then
23381 as_fn_error "could not
make $CONFIG_STATUS" "$LINENO" 5
23383 ac_delim="$ac_delim!$ac_delim _
$ac_delim!! "
23386 rm -f conf$$subs.sh
23388 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
23389 cat >>"\
$tmp/subs1.
awk" <<\\_ACAWK &&
23393 s/^/S["/; s
/!.
*/"]=/
23403 s/\(.\{148\}\)..*/\1/
23405 s/["\\]/\\&/g
; s
/^
/"/; s/$/\\n"\\/
23410 s
/["\\]/\\&/g; s/^/"/; s
/$
/"\\/
23417 s/\(.\{148\}\)..*/\1/
23419 s/["\\]/\\&/g
; s
/^
/"/; s/$/"/
23423 s
/["\\]/\\&/g; s/^/"/; s
/$
/"\\/
23428 ' <conf$$subs.awk | sed '
23433 ' >>$CONFIG_STATUS || ac_write_fail=1
23434 rm -f conf$$subs.awk
23435 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
23437 cat >>"\
$tmp/subs1.
awk" <<_ACAWK &&
23438 for (key in S) S_is_set[key] = 1
23440 \$ac_cs_awk_pipe_init
23444 nfields = split(line, field, "@
")
23446 len = length(field[1])
23447 for (i = 2; i < nfields; i++) {
23449 keylen = length(key)
23450 if (S_is_set[key]) {
23452 line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
23453 len += length(value) + length(field[++i])
23458 if (nfields == 3 && !substed) {
23460 if (F[key] != "" && line ~ /^[ ]*@.*@[ ]*$/) {
23461 \$ac_cs_awk_read_file
23467 \$ac_cs_awk_pipe_fini
23470 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
23471 if sed "s
/$ac_cr//" < /dev/null > /dev/null 2>&1; then
23472 sed "s
/$ac_cr\$
//; s
/$ac_cr/$ac_cs_awk_cr/g
"
23475 fi < "$tmp/subs1.
awk" > "$tmp/subs.
awk" \
23476 || as_fn_error "could not setup config files machinery
" "$LINENO" 5
23479 # VPATH may cause trouble with some makes, so we remove $(srcdir),
23480 # ${srcdir} and @srcdir@ from VPATH if srcdir is ".
", strip leading and
23481 # trailing colons and then remove the whole line if VPATH becomes empty
23482 # (actually we leave an empty line to preserve line numbers).
23483 if test "x
$srcdir" = x.; then
23484 ac_vpsub='/^[ ]*VPATH[ ]*=/{
23485 s/:*\$(srcdir):*/:/
23486 s/:*\${srcdir}:*/:/
23488 s/^\([^=]*=[ ]*\):*/\1/
23494 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
23495 fi # test -n "$CONFIG_FILES"
23497 # Set up the scripts for CONFIG_HEADERS section.
23498 # No need to generate them if there are no CONFIG_HEADERS.
23499 # This happens for instance with `./config.status Makefile'.
23500 if test -n "$CONFIG_HEADERS"; then
23501 cat >"$tmp/defines.
awk" <<\_ACAWK ||
23505 # Transform confdefs.h into an awk script `defines.awk', embedded as
23506 # here-document in config.status, that substitutes the proper values into
23507 # config.h.in to produce config.h.
23509 # Create a delimiter string that does not exist in confdefs.h, to ease
23510 # handling of long lines.
23512 for ac_last_try in false false :; do
23513 ac_t=`sed -n "/$ac_delim/p
" confdefs.h`
23514 if test -z "$ac_t"; then
23516 elif $ac_last_try; then
23517 as_fn_error "could not
make $CONFIG_HEADERS" "$LINENO" 5
23519 ac_delim="$ac_delim!$ac_delim _
$ac_delim!! "
23523 # For the awk script, D is an array of macro values keyed by name,
23524 # likewise P contains macro parameters if any. Preserve backslash
23525 # newline sequences.
23527 ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
23529 s/.\{148\}/&'"$ac_delim"'/g
23532 s/^[ ]*#[ ]*define[ ][ ]*/ /
23539 s
/^ \
('"$ac_word_re"'\
)\
(([^
()]*)\
)[ ]*\
(.
*\
)/P
["\1"]="\2"\
23541 s
/^ \
('"$ac_word_re"'\
)[ ]*\
(.
*\
)/D
["\1"]=" \2"/p
23545 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\
1"]="\
2"\
23546 D["\
1"]=" \
3\\\\\\n
"\\/p
23548 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\
1"]=" \
2\\\\\\n
"\\/p
23553 s/.\{148\}/&'"$ac_delim"'/g
23558 s/["\\]/\\&/g
; s
/^
/"/; s/$/"/p
23561 s
/["\\]/\\&/g; s/^/"/; s
/$
/\\\\\\n
"\\/p
23563 ' <confdefs.h | sed '
23564 s/'"$ac_delim"'/"\\\
23565 "/g' >>$CONFIG_STATUS || ac_write_fail=1
23567 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
23568 for (key in D) D_is_set[key] = 1
23571 /^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
23573 split(line, arg, " ")
23574 if (arg[1] == "#") {
23578 defundef
= substr
(arg
[1], 2)
23581 split(mac1
, mac2
, "(") #)
23583 prefix
= substr
(line
, 1, index
(line
, defundef
) - 1)
23584 if (D_is_set
[macro
]) {
23585 # Preserve the white space surrounding the "#".
23586 print prefix
"define", macro P
[macro
] D
[macro
]
23589 # Replace #undef with comments. This is necessary, for example,
23590 # in the case of _POSIX_SOURCE, which is predefined and required
23591 # on some systems where configure will not decide to define it.
23592 if (defundef
== "undef") {
23593 print
"/*", prefix defundef
, macro
, "*/"
23601 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail
=1
23602 as_fn_error
"could not setup config headers machinery" "$LINENO" 5
23603 fi # test -n "$CONFIG_HEADERS"
23606 eval set X
" :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS"
23611 :[FHLC
]) ac_mode
=$ac_tag; continue;;
23613 case $ac_mode$ac_tag in
23615 :L
* |
:C
*:*) as_fn_error
"invalid tag \`$ac_tag'" "$LINENO" 5;;
23616 :[FH
]-) ac_tag
=-:-;;
23617 :[FH
]*) ac_tag
=$ac_tag:$ac_tag.
in;;
23634 -) ac_f
="$tmp/stdin";;
23635 *) # Look for the file first in the build tree, then in the source tree
23636 # (if the path is not absolute). The absolute path cannot be DOS-style,
23637 # because $ac_f cannot contain `:'.
23641 *) test -f "$srcdir/$ac_f" && ac_f
="$srcdir/$ac_f";;
23643 as_fn_error
"cannot find input file: \`$ac_f'" "$LINENO" 5;;
23645 case $ac_f in *\'*) ac_f
=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
23646 as_fn_append ac_file_inputs
" '$ac_f'"
23649 # Let's still pretend it is `configure' which instantiates (i.e., don't
23650 # use $as_me), people would be surprised to read:
23651 # /* config.h. Generated by config.status. */
23652 configure_input
='Generated from '`
23653 $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
23655 if test x
"$ac_file" != x-
; then
23656 configure_input
="$ac_file. $configure_input"
23657 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
23658 $as_echo "$as_me: creating $ac_file" >&6;}
23660 # Neutralize special characters interpreted by sed in replacement strings.
23661 case $configure_input in #(
23662 *\
&* |
*\|
* |
*\\* )
23663 ac_sed_conf_input
=`$as_echo "$configure_input" |
23664 sed 's/[\\\\&|]/\\\\&/g'`;; #(
23665 *) ac_sed_conf_input
=$configure_input;;
23669 *:-:* |
*:-) cat >"$tmp/stdin" \
23670 || as_fn_error
"could not create $ac_file" "$LINENO" 5 ;;
23675 ac_dir
=`$as_dirname -- "$ac_file" ||
23676 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
23677 X"$ac_file" : 'X\(//\)[^/]' \| \
23678 X"$ac_file" : 'X\(//\)$' \| \
23679 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
23680 $as_echo X"$ac_file" |
23681 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
23685 /^X\(\/\/\)[^/].*/{
23698 as_dir
="$ac_dir"; as_fn_mkdir_p
23702 .
) ac_dir_suffix
= ac_top_builddir_sub
=. ac_top_build_prefix
= ;;
23704 ac_dir_suffix
=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
23705 # A ".." for each directory in $ac_dir_suffix.
23706 ac_top_builddir_sub
=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
23707 case $ac_top_builddir_sub in
23708 "") ac_top_builddir_sub
=. ac_top_build_prefix
= ;;
23709 *) ac_top_build_prefix
=$ac_top_builddir_sub/ ;;
23712 ac_abs_top_builddir
=$ac_pwd
23713 ac_abs_builddir
=$ac_pwd$ac_dir_suffix
23714 # for backward compatibility:
23715 ac_top_builddir
=$ac_top_build_prefix
23718 .
) # We are building in place.
23720 ac_top_srcdir
=$ac_top_builddir_sub
23721 ac_abs_top_srcdir
=$ac_pwd ;;
23722 [\\/]* | ?
:[\\/]* ) # Absolute name.
23723 ac_srcdir
=$srcdir$ac_dir_suffix;
23724 ac_top_srcdir
=$srcdir
23725 ac_abs_top_srcdir
=$srcdir ;;
23726 *) # Relative name.
23727 ac_srcdir
=$ac_top_build_prefix$srcdir$ac_dir_suffix
23728 ac_top_srcdir
=$ac_top_build_prefix$srcdir
23729 ac_abs_top_srcdir
=$ac_pwd/$srcdir ;;
23731 ac_abs_srcdir
=$ac_abs_top_srcdir$ac_dir_suffix
23741 [\\/$
]* | ?
:[\\/]* ) ac_INSTALL
=$INSTALL ;;
23742 *) ac_INSTALL
=$ac_top_build_prefix$INSTALL ;;
23744 ac_MKDIR_P
=$MKDIR_P
23746 [\\/$
]* | ?
:[\\/]* ) ;;
23747 */*) ac_MKDIR_P
=$ac_top_build_prefix$MKDIR_P ;;
23751 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail
=1
23752 # If the template does not know about datarootdir, expand it.
23753 # FIXME: This hack should be removed a few years after 2.60.
23754 ac_datarootdir_hack
=; ac_datarootdir_seen
=
23765 case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
23766 *datarootdir
*) ac_datarootdir_seen
=yes;;
23767 *@datadir@
*|
*@docdir@
*|
*@infodir@
*|
*@localedir@
*|
*@mandir@
*)
23768 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
23769 $as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
23771 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
23772 ac_datarootdir_hack='
23773 s&@datadir@&$datadir&g
23774 s&@docdir@&$docdir&g
23775 s&@infodir@&$infodir&g
23776 s&@localedir@&$localedir&g
23777 s&@mandir@&$mandir&g
23778 s&\\\${datarootdir}&$datarootdir&g' ;;
23782 # Neutralize VPATH when `$srcdir' = `.'.
23783 # Shell code in configure.ac might set extrasub.
23784 # FIXME: do we really want to maintain this feature?
23785 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
23786 ac_sed_extra="$ac_vpsub
23789 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail
=1
23791 /@
[a-zA-Z_
][a-zA-Z_0-9
]*@
/!b
23792 s|@configure_input@|
$ac_sed_conf_input|
;t t
23793 s
&@top_builddir@
&$ac_top_builddir_sub&;t t
23794 s
&@top_build_prefix@
&$ac_top_build_prefix&;t t
23795 s
&@srcdir@
&$ac_srcdir&;t t
23796 s
&@abs_srcdir@
&$ac_abs_srcdir&;t t
23797 s
&@top_srcdir@
&$ac_top_srcdir&;t t
23798 s
&@abs_top_srcdir@
&$ac_abs_top_srcdir&;t t
23799 s
&@builddir@
&$ac_builddir&;t t
23800 s
&@abs_builddir@
&$ac_abs_builddir&;t t
23801 s
&@abs_top_builddir@
&$ac_abs_top_builddir&;t t
23802 s
&@INSTALL@
&$ac_INSTALL&;t t
23803 s
&@MKDIR_P@
&$ac_MKDIR_P&;t t
23804 $ac_datarootdir_hack
23806 eval sed \"\$ac_sed_extra\" "$ac_file_inputs" |
23807 if $ac_cs_awk_getline; then
23808 $AWK -f "$tmp/subs.
awk"
23810 $AWK -f "$tmp/subs.
awk" | $SHELL
23812 || as_fn_error "could not create
$ac_file" "$LINENO" 5
23814 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
23815 { ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out
"`; test -n "$ac_out"; } &&
23816 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' "$tmp/out
"`; test -z "$ac_out"; } &&
23817 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING
: $ac_file contains a reference to the variable \
`datarootdir'
23818 which seems to be undefined. Please make sure it is defined." >&5
23819 $as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir
'
23820 which seems to be undefined. Please make sure it is defined." >&2;}
23824 -) cat "$tmp/out" && rm -f "$tmp/out";;
23825 *) rm -f "$ac_file" && mv "$tmp/out" "$ac_file";;
23827 || as_fn_error "could not create $ac_file" "$LINENO" 5
23833 if test x"$ac_file" != x-; then
23835 $as_echo "/* $configure_input */" \
23836 && eval '$AWK -f "$tmp/defines.awk"' "$ac_file_inputs"
23837 } >"$tmp/config.h" \
23838 || as_fn_error "could not create $ac_file" "$LINENO" 5
23839 if diff "$ac_file" "$tmp/config.h" >/dev/null 2>&1; then
23840 { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5
23841 $as_echo "$as_me: $ac_file is unchanged" >&6;}
23844 mv "$tmp/config.h" "$ac_file" \
23845 || as_fn_error "could not create $ac_file" "$LINENO" 5
23848 $as_echo "/* $configure_input */" \
23849 && eval '$AWK -f "$tmp/defines.awk"' "$ac_file_inputs" \
23850 || as_fn_error "could not create -" "$LINENO" 5
23852 # Compute "$ac_file"'s index
in $config_headers.
23855 for _am_header
in $config_headers :; do
23856 case $_am_header in
23857 $_am_arg |
$_am_arg:* )
23860 _am_stamp_count
=`expr $_am_stamp_count + 1` ;;
23863 echo "timestamp for $_am_arg" >`$as_dirname -- "$_am_arg" ||
23864 $as_expr X"$_am_arg" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
23865 X"$_am_arg" : 'X\(//\)[^/]' \| \
23866 X"$_am_arg" : 'X\(//\)$' \| \
23867 X"$_am_arg" : 'X\(/\)' \| . 2>/dev/null ||
23868 $as_echo X"$_am_arg" |
23869 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
23873 /^X\(\/\/\)[^/].*/{
23885 s/.*/./; q'`/stamp-h
$_am_stamp_count
23888 :C
) { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5
23889 $as_echo "$as_me: executing $ac_file commands" >&6;}
23894 case $ac_file$ac_mode in
23895 "depfiles":C
) test x
"$AMDEP_TRUE" != x
"" ||
{
23896 # Autoconf 2.62 quotes --file arguments for eval, but not when files
23897 # are listed without --file. Let's play safe and only enable the eval
23898 # if we detect the quoting.
23899 case $CONFIG_FILES in
23900 *\'*) eval set x
"$CONFIG_FILES" ;;
23901 *) set x
$CONFIG_FILES ;;
23906 # Strip MF so we end up with the name of the file.
23907 mf
=`echo "$mf" | sed -e 's/:.*$//'`
23908 # Check whether this is an Automake generated Makefile or not.
23909 # We used to match only the files named `Makefile.in', but
23910 # some people rename them; so instead we look at the file content.
23911 # Grep'ing the first line is not enough: some people post-process
23912 # each Makefile.in and add a new line on top of each file to say so.
23913 # Grep'ing the whole file is not good either: AIX grep has a line
23914 # limit of 2048, but all sed's we know have understand at least 4000.
23915 if sed -n 's,^#.*generated by automake.*,X,p' "$mf" |
grep X
>/dev
/null
2>&1; then
23916 dirpart
=`$as_dirname -- "$mf" ||
23917 $as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
23918 X"$mf" : 'X\(//\)[^/]' \| \
23919 X"$mf" : 'X\(//\)$' \| \
23920 X"$mf" : 'X\(/\)' \| . 2>/dev/null ||
23922 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
23926 /^X\(\/\/\)[^/].*/{
23942 # Extract the definition of DEPDIR, am__include, and am__quote
23943 # from the Makefile without running `make'.
23944 DEPDIR
=`sed -n 's/^DEPDIR = //p' < "$mf"`
23945 test -z "$DEPDIR" && continue
23946 am__include
=`sed -n 's/^am__include = //p' < "$mf"`
23947 test -z "am__include" && continue
23948 am__quote
=`sed -n 's/^am__quote = //p' < "$mf"`
23949 # When using ansi2knr, U may be empty or an underscore; expand it
23950 U
=`sed -n 's/^U = //p' < "$mf"`
23951 # Find all dependency output files, they are included files with
23952 # $(DEPDIR) in their names. We invoke sed twice because it is the
23953 # simplest approach to changing $(DEPDIR) to its actual value in the
23955 for file in `sed -n "
23956 s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \
23957 sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g' -e 's/\$U/'"$U"'/g'`; do
23958 # Make sure the directory exists.
23959 test -f "$dirpart/$file" && continue
23960 fdir
=`$as_dirname -- "$file" ||
23961 $as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
23962 X"$file" : 'X\(//\)[^/]' \| \
23963 X"$file" : 'X\(//\)$' \| \
23964 X"$file" : 'X\(/\)' \| . 2>/dev/null ||
23965 $as_echo X"$file" |
23966 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
23970 /^X\(\/\/\)[^/].*/{
23983 as_dir
=$dirpart/$fdir; as_fn_mkdir_p
23984 # echo "creating $dirpart/$file"
23985 echo '# dummy' > "$dirpart/$file"
23991 for dir
in etc lisp
; do
23992 test -d ${dir} || mkdir
${dir}
23996 echo creating src
/epaths.h
23997 ${MAKE-make} epaths-force
24000 if test ! -f src
/.gdbinit
&& test -f $srcdir/src
/.gdbinit
; then
24001 echo creating src
/.gdbinit
24002 echo source $srcdir/src
/.gdbinit
> src
/.gdbinit
24012 ac_clean_files
=$ac_clean_files_save
24014 test $ac_write_fail = 0 ||
24015 as_fn_error
"write failure creating $CONFIG_STATUS" "$LINENO" 5
24018 # configure is writing to config.log, and then calls config.status.
24019 # config.status does its own redirection, appending to config.log.
24020 # Unfortunately, on DOS this fails, as config.log is still kept open
24021 # by configure, so config.status won't be able to write to it; its
24022 # output is simply discarded. So we exec the FD to /dev/null,
24023 # effectively closing config.log, so it can be properly (re)opened and
24024 # appended to by config.status. When coming back to configure, we
24025 # need to make the FD available again.
24026 if test "$no_create" != yes; then
24028 ac_config_status_args
=
24029 test "$silent" = yes &&
24030 ac_config_status_args
="$ac_config_status_args --quiet"
24032 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success
=false
24034 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
24035 # would make configure fail if this is the last instruction.
24036 $ac_cs_success || as_fn_exit $?
24038 if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no
; then
24039 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
24040 $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}