2 # Guess values for system-dependent variables and create Makefiles.
3 # Generated by GNU Autoconf 2.65 for emacs 24.0.91.
6 # Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
7 # 2002, 2003, 2004, 2005, 2006, 2007, 2008, 2009 Free Software Foundation,
11 # This configure script is free software; the Free Software Foundation
12 # gives unlimited permission to copy, distribute and modify it.
13 ## -------------------- ##
14 ## M4sh Initialization. ##
15 ## -------------------- ##
17 # Be more Bourne compatible
18 DUALCASE
=1; export DUALCASE
# for MKS sh
19 if test -n "${ZSH_VERSION+set}" && (emulate sh
) >/dev
/null
2>&1; then :
22 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
23 # is contrary to our usage. Disable this feature.
24 alias -g '${1+"$@"}'='"$@"'
27 case `(set -o) 2>/dev/null` in #(
39 # Printing a long string crashes Solaris 7 /usr/bin/printf.
40 as_echo
='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
41 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
42 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
43 # Prefer a ksh shell builtin over an external printf program on Solaris,
44 # but without wasting forks for bash or zsh.
45 if test -z "$BASH_VERSION$ZSH_VERSION" \
46 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
48 as_echo_n='print
-rn --'
49 elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
53 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
54 as_echo_body='eval /usr
/ucb
/echo -n "$1$as_nl"'
55 as_echo_n='/usr
/ucb
/echo -n'
57 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
62 expr "X$arg" : "X\\(.*\\)$as_nl";
63 arg
=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
65 expr "X$arg" : "X\\(.*\\)" |
tr -d "$as_nl"
68 as_echo_n='sh
-c $as_echo_n_body as_echo
'
71 as_echo='sh
-c $as_echo_body as_echo
'
74 # The user is always right.
75 if test "${PATH_SEPARATOR+set}" != set; then
77 (PATH='/bin
;/bin
'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
78 (PATH='/bin
:/bin
'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
85 # We need space, tab and new line, in precisely that order. Quoting is
86 # there to prevent editors from complaining about space-tab.
87 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
88 # splitting by setting IFS to empty value.)
91 # Find who we are. Look in the path if we contain no directory separator.
93 *[\\/]* ) as_myself=$0 ;;
94 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
98 test -z "$as_dir" && as_dir=.
99 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
105 # We did not find ourselves, most probably we were run as `sh COMMAND'
106 # in which case we are not to be found in the path.
107 if test "x$as_myself" = x
; then
110 if test ! -f "$as_myself"; then
111 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
115 # Unset variables that we do not need and which cause bugs (e.g. in
116 # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
117 # suppresses any "Segmentation fault" message there. '((' could
118 # trigger a bug in pdksh 5.2.14.
119 for as_var
in BASH_ENV ENV MAIL MAILPATH
120 do eval test x\
${$as_var+set} = xset \
121 && ( (unset $as_var) ||
exit 1) >/dev
/null
2>&1 && unset $as_var ||
:
134 (unset CDPATH
) >/dev
/null
2>&1 && unset CDPATH
136 if test "x$CONFIG_SHELL" = x
; then
137 as_bourne_compatible
="if test -n \"\${ZSH_VERSION+set}\" && (emulate sh) >/dev/null 2>&1; then :
140 # Pre-4.2 versions of Zsh do word splitting on \${1+\"\$@\"}, which
141 # is contrary to our usage. Disable this feature.
142 alias -g '\${1+\"\$@\"}'='\"\$@\"'
145 case \`(set -o) 2>/dev/null\` in #(
153 as_required
="as_fn_return () { (exit \$1); }
154 as_fn_success () { as_fn_return 0; }
155 as_fn_failure () { as_fn_return 1; }
156 as_fn_ret_success () { return 0; }
157 as_fn_ret_failure () { return 1; }
160 as_fn_success || { exitcode=1; echo as_fn_success failed.; }
161 as_fn_failure && { exitcode=1; echo as_fn_failure succeeded.; }
162 as_fn_ret_success || { exitcode=1; echo as_fn_ret_success failed.; }
163 as_fn_ret_failure && { exitcode=1; echo as_fn_ret_failure succeeded.; }
164 if ( set x; as_fn_ret_success y && test x = \"\$1\" ); then :
167 exitcode=1; echo positional parameters were not saved.
169 test x\$exitcode = x0 || exit 1"
170 as_suggested
=" as_lineno_1=";as_suggested
=$as_suggested$LINENO;as_suggested
=$as_suggested" as_lineno_1a=\$LINENO
171 as_lineno_2=";as_suggested
=$as_suggested$LINENO;as_suggested
=$as_suggested" as_lineno_2a=\$LINENO
172 eval 'test \"x\$as_lineno_1'\$as_run'\" != \"x\$as_lineno_2'\$as_run'\" &&
173 test \"x\`expr \$as_lineno_1'\$as_run' + 1\`\" = \"x\$as_lineno_2'\$as_run'\"' || exit 1
174 test \$(( 1 + 1 )) = 2 || exit 1"
175 if (eval "$as_required") 2>/dev
/null
; then :
180 if test x
$as_have_required = xyes
&& (eval "$as_suggested") 2>/dev
/null
; then :
183 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
185 for as_dir
in /bin
$PATH_SEPARATOR/usr
/bin
$PATH_SEPARATOR$PATH
188 test -z "$as_dir" && as_dir
=.
192 for as_base
in sh bash ksh sh5
; do
193 # Try only shells that exist, to save several forks.
194 as_shell
=$as_dir/$as_base
195 if { test -f "$as_shell" ||
test -f "$as_shell.exe"; } &&
196 { $as_echo "$as_bourne_compatible""$as_required" | as_run
=a
"$as_shell"; } 2>/dev
/null
; then :
197 CONFIG_SHELL
=$as_shell as_have_required
=yes
198 if { $as_echo "$as_bourne_compatible""$as_suggested" | as_run
=a
"$as_shell"; } 2>/dev
/null
; then :
206 $as_found ||
{ if { test -f "$SHELL" ||
test -f "$SHELL.exe"; } &&
207 { $as_echo "$as_bourne_compatible""$as_required" | as_run
=a
"$SHELL"; } 2>/dev
/null
; then :
208 CONFIG_SHELL
=$SHELL as_have_required
=yes
213 if test "x$CONFIG_SHELL" != x
; then :
214 # We cannot yet assume a decent shell, so we have to provide a
215 # neutralization value for shells without unset; and this also
216 # works around shells that cannot unset nonexistent variables.
219 (unset BASH_ENV
) >/dev
/null
2>&1 && unset BASH_ENV ENV
221 exec "$CONFIG_SHELL" "$as_myself" ${1+"$@"}
224 if test x
$as_have_required = xno
; then :
225 $as_echo "$0: This script requires a shell more modern than all"
226 $as_echo "$0: the shells that I found on your system."
227 if test x
${ZSH_VERSION+set} = xset
; then
228 $as_echo "$0: In particular, zsh $ZSH_VERSION has bugs and should"
229 $as_echo "$0: be upgraded to zsh 4.3.4 or later."
231 $as_echo "$0: Please tell bug-autoconf@gnu.org about your system,
232 $0: including any error possibly output before this
233 $0: message. Then install a modern shell, or manually run
234 $0: the script under such a shell if you do have one."
240 SHELL
=${CONFIG_SHELL-/bin/sh}
242 # Unset more variables known to interfere with behavior of common tools.
243 CLICOLOR_FORCE
= GREP_OPTIONS
=
244 unset CLICOLOR_FORCE GREP_OPTIONS
246 ## --------------------- ##
247 ## M4sh Shell Functions. ##
248 ## --------------------- ##
251 # Portably unset VAR.
254 { eval $1=; unset $1;}
258 # as_fn_set_status STATUS
259 # -----------------------
260 # Set $? to STATUS, without forking.
268 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
278 # Create "$as_dir" as a directory, including parents if necessary.
283 -*) as_dir
=.
/$as_dir;;
285 test -d "$as_dir" ||
eval $as_mkdir_p ||
{
289 *\'*) as_qdir
=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
292 as_dirs
="'$as_qdir' $as_dirs"
293 as_dir
=`$as_dirname -- "$as_dir" ||
294 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
295 X"$as_dir" : 'X\(//\)[^/]' \| \
296 X"$as_dir" : 'X\(//\)$' \| \
297 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
298 $as_echo X"$as_dir" |
299 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
316 test -d "$as_dir" && break
318 test -z "$as_dirs" ||
eval "mkdir $as_dirs"
319 } ||
test -d "$as_dir" || as_fn_error
"cannot create directory $as_dir"
323 # as_fn_append VAR VALUE
324 # ----------------------
325 # Append the text in VALUE to the end of the definition contained in VAR. Take
326 # advantage of any shell optimizations that allow amortized linear growth over
327 # repeated appends, instead of the typical quadratic growth present in naive
329 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev
/null
; then :
330 eval 'as_fn_append ()
343 # Perform arithmetic evaluation on the ARGs, and store the result in the
344 # global $as_val. Take advantage of shells that can avoid forks. The arguments
345 # must be portable across $(()) and expr.
346 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev
/null
; then :
354 as_val
=`expr "$@" || test $? -eq 1`
359 # as_fn_error ERROR [LINENO LOG_FD]
360 # ---------------------------------
361 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
362 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
363 # script with status $?, using 1 if that was 0.
366 as_status
=$?
; test $as_status -eq 0 && as_status
=1
368 as_lineno
=${as_lineno-"$2"} as_lineno_stack
=as_lineno_stack
=$as_lineno_stack
369 $as_echo "$as_me:${as_lineno-$LINENO}: error: $1" >&$3
371 $as_echo "$as_me: error: $1" >&2
372 as_fn_exit
$as_status
375 if expr a
: '\(a\)' >/dev
/null
2>&1 &&
376 test "X`expr 00001 : '.*\(...\)'`" = X001
; then
382 if (basename -- /) >/dev
/null
2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
388 if (as_dir
=`dirname -- /` && test "X$as_dir" = X
/) >/dev
/null
2>&1; then
394 as_me
=`$as_basename -- "$0" ||
395 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
396 X"$0" : 'X\(//\)$' \| \
397 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
399 sed '/^.*\/\([^/][^/]*\)\/*$/{
413 # Avoid depending upon Character Ranges.
414 as_cr_letters
='abcdefghijklmnopqrstuvwxyz'
415 as_cr_LETTERS
='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
416 as_cr_Letters
=$as_cr_letters$as_cr_LETTERS
417 as_cr_digits
='0123456789'
418 as_cr_alnum
=$as_cr_Letters$as_cr_digits
421 as_lineno_1
=$LINENO as_lineno_1a
=$LINENO
422 as_lineno_2
=$LINENO as_lineno_2a
=$LINENO
423 eval 'test "x$as_lineno_1'$as_run'" != "x$as_lineno_2'$as_run'" &&
424 test "x`expr $as_lineno_1'$as_run' + 1`" = "x$as_lineno_2'$as_run'"' ||
{
425 # Blame Lee E. McMahon (1931-1989) for sed's syntax. :-)
437 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
441 chmod +x
"$as_me.lineno" ||
442 { $as_echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2; as_fn_exit
1; }
444 # Don't try to exec as it changes $[0], causing all sort of problems
445 # (the dirname of $[0] is not the place where we might find the
446 # original and so on. Autoconf is especially sensitive to this).
448 # Exit status is that of the last command.
452 ECHO_C
= ECHO_N
= ECHO_T
=
453 case `echo -n x` in #(((((
455 case `echo 'xy\c'` in
456 *c
*) ECHO_T
=' ';; # ECHO_T is single tab character.
458 *) echo `echo ksh88 bug on AIX 6.1` > /dev
/null
465 rm -f conf$$ conf$$.exe conf$$.
file
466 if test -d conf$$.dir
; then
467 rm -f conf$$.dir
/conf$$.
file
470 mkdir conf$$.dir
2>/dev
/null
472 if (echo >conf$$.
file) 2>/dev
/null
; then
473 if ln -s conf$$.
file conf$$
2>/dev
/null
; then
475 # ... but there are two gotchas:
476 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
477 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
478 # In both cases, we have to default to `cp -p'.
479 ln -s conf$$.
file conf$$.dir
2>/dev
/null
&& test ! -f conf$$.exe ||
481 elif ln conf$$.
file conf$$
2>/dev
/null
; then
489 rm -f conf$$ conf$$.exe conf$$.dir
/conf$$.
file conf$$.
file
490 rmdir conf$$.dir
2>/dev
/null
492 if mkdir
-p .
2>/dev
/null
; then
493 as_mkdir_p
='mkdir -p "$as_dir"'
495 test -d .
/-p && rmdir .
/-p
499 if test -x / >/dev
/null
2>&1; then
502 if ls -dL / >/dev
/null
2>&1; then
509 if test -d "$1"; then
515 case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in #((
516 ???[sx]*):;;*)false;;esac;fi
520 as_executable_p
=$as_test_x
522 # Sed expression to map a string onto a valid CPP name.
523 as_tr_cpp
="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
525 # Sed expression to map a string onto a valid variable name.
526 as_tr_sh
="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
529 test -n "$DJDIR" ||
exec 7<&0 </dev
/null
533 # hostname on some systems (SVR3.2, Linux) returns a bogus exit status,
534 # so uname gets run too.
535 ac_hostname
=`(hostname || uname -n) 2>/dev/null | sed 1q`
540 ac_default_prefix
=/usr
/local
542 ac_config_libobj_dir
=.
549 # Identity of this package.
551 PACKAGE_TARNAME
='emacs'
552 PACKAGE_VERSION
='24.0.91'
553 PACKAGE_STRING
='emacs 24.0.91'
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_be453cec5eecf5731a274f2de7f2db36_FALSE
624 gl_GNULIB_ENABLED_be453cec5eecf5731a274f2de7f2db36_TRUE
625 gl_GNULIB_ENABLED_dosname_FALSE
626 gl_GNULIB_ENABLED_dosname_TRUE
630 NEXT_AS_FIRST_DIRECTIVE_UNISTD_H
632 PTHREAD_H_DEFINES_STRUCT_TIMESPEC
633 SYS_TIME_H_DEFINES_STRUCT_TIMESPEC
634 TIME_H_DEFINES_STRUCT_TIMESPEC
635 NEXT_AS_FIRST_DIRECTIVE_TIME_H
637 NEXT_AS_FIRST_DIRECTIVE_SYS_STAT_H
639 NEXT_AS_FIRST_DIRECTIVE_STDLIB_H
641 NEXT_AS_FIRST_DIRECTIVE_STDIO_H
650 REPLACE_STDIO_WRITE_FUNCS
651 REPLACE_STDIO_READ_FUNCS
660 REPLACE_OBSTACK_PRINTF
685 HAVE_DECL_OBSTACK_PRINTF
691 GNULIB_VSPRINTF_POSIX
695 GNULIB_VFPRINTF_POSIX
702 GNULIB_STDIO_H_SIGPIPE
703 GNULIB_STDIO_H_NONBLOCKING
718 GNULIB_OBSTACK_PRINTF_POSIX
719 GNULIB_OBSTACK_PRINTF
745 NEXT_AS_FIRST_DIRECTIVE_STDDEF_H
747 GL_GENERATE_STDDEF_H_FALSE
748 GL_GENERATE_STDDEF_H_TRUE
753 GL_GENERATE_STDBOOL_H_FALSE
754 GL_GENERATE_STDBOOL_H_TRUE
756 GL_GENERATE_STDARG_H_FALSE
757 GL_GENERATE_STDARG_H_TRUE
759 NEXT_AS_FIRST_DIRECTIVE_STDARG_H
761 NEXT_AS_FIRST_DIRECTIVE_SIGNAL_H
764 REPLACE_PTHREAD_SIGMASK
766 HAVE_TYPE_VOLATILE_SIG_ATOMIC_T
767 HAVE_STRUCT_SIGACTION_SA_SIGACTION
773 HAVE_POSIX_SIGNALBLOCKING
776 GNULIB_SIGNAL_H_SIGPIPE
778 GNULIB_PTHREAD_SIGMASK
787 HAVE_DECL_LOCALTIME_R
826 NEXT_AS_FIRST_DIRECTIVE_INTTYPES_H
828 UINT64_MAX_EQ_ULONG_MAX
829 UINT32_MAX_LT_UINTMAX_MAX
832 INT64_MAX_EQ_LONG_MAX
833 INT32_MAX_LT_INTMAX_MAX
842 GL_GENERATE_STDINT_H_FALSE
843 GL_GENERATE_STDINT_H_TRUE
852 HAVE_SIGNED_SIG_ATOMIC_T
855 BITSIZEOF_SIG_ATOMIC_T
858 APPLE_UNIVERSAL_BUILD
862 NEXT_AS_FIRST_DIRECTIVE_STDINT_H
867 HAVE_UNSIGNED_LONG_LONG_INT
871 NEXT_AS_FIRST_DIRECTIVE_GETOPT_H
875 INCLUDE_NEXT_AS_FIRST_DIRECTIVE
888 REPLACE_CANONICALIZE_FILE_NAME
893 HAVE_STRUCT_RANDOM_DATA
912 HAVE_CANONICALIZE_FILE_NAME
939 GNULIB_CANONICALIZE_FILE_NAME
943 UNISTD_H_HAVE_WINSOCK2_H_AND_USE_SOCKETS
944 UNISTD_H_HAVE_WINSOCK2_H
964 REPLACE_GETDOMAINNAME
974 HAVE_DECL_GETUSERSHELL
975 HAVE_DECL_GETPAGESIZE
977 HAVE_DECL_GETDOMAINNAME
1015 GNULIB_UNISTD_H_SIGPIPE
1016 GNULIB_UNISTD_H_NONBLOCKING
1017 GNULIB_UNISTD_H_GETOPT
1041 GNULIB_GETDTABLESIZE
1042 GNULIB_GETDOMAINNAME
1058 GL_GENERATE_ALLOCA_H_FALSE
1059 GL_GENERATE_ALLOCA_H_TRUE
1062 GL_COND_LIBTOOL_FALSE
1063 GL_COND_LIBTOOL_TRUE
1096 x_default_search_path
1164 LD_SWITCH_X_SITE_AUX_RPATH
1165 LD_SWITCH_X_SITE_AUX
1228 INSTALL_STRIP_PROGRAM
1270 program_transform_name
1281 ac_subst_files
='deps_frag
1285 enable_option_checking
1308 with_toolkit_scroll_bars
1320 with_pkg_config_prog
1324 enable_ns_self_contained
1326 enable_maintainer_mode
1327 enable_locallisppath
1329 enable_use_lisp_union_type
1332 enable_dependency_tracking
1336 ac_precious_vars
='build_alias
1348 # Initialize some variables set by options.
1350 ac_init_version
=false
1351 ac_unrecognized_opts
=
1352 ac_unrecognized_sep
=
1353 # The variables have the same names as the options, with
1354 # dashes changed to underlines.
1355 cache_file
=/dev
/null
1362 program_transform_name
=s
,x
,x
,
1370 # Installation directory options.
1371 # These are left unexpanded so users can "make install exec_prefix=/foo"
1372 # and all the variables that are supposed to be based on exec_prefix
1373 # by default will actually change.
1374 # Use braces instead of parens because sh, perl, etc. also accept them.
1375 # (The list follows the same order as the GNU Coding Standards.)
1376 bindir
='${exec_prefix}/bin'
1377 sbindir
='${exec_prefix}/sbin'
1378 libexecdir
='${exec_prefix}/libexec'
1379 datarootdir
='${prefix}/share'
1380 datadir
='${datarootdir}'
1381 sysconfdir
='${prefix}/etc'
1382 sharedstatedir
='${prefix}/com'
1383 localstatedir
='${prefix}/var'
1384 includedir
='${prefix}/include'
1385 oldincludedir
='/usr/include'
1386 docdir
='${datarootdir}/doc/${PACKAGE_TARNAME}'
1387 infodir
='${datarootdir}/info'
1392 libdir
='${exec_prefix}/lib'
1393 localedir
='${datarootdir}/locale'
1394 mandir
='${datarootdir}/man'
1400 # If the previous option needs an argument, assign it.
1401 if test -n "$ac_prev"; then
1402 eval $ac_prev=\
$ac_option
1408 *=*) ac_optarg
=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
1412 # Accept the important Cygnus configure options, so we can diagnose typos.
1414 case $ac_dashdash$ac_option in
1418 -bindir |
--bindir |
--bindi |
--bind |
--bin |
--bi)
1420 -bindir=* |
--bindir=* |
--bindi=* |
--bind=* |
--bin=* |
--bi=*)
1421 bindir
=$ac_optarg ;;
1423 -build |
--build |
--buil |
--bui |
--bu)
1424 ac_prev
=build_alias
;;
1425 -build=* |
--build=* |
--buil=* |
--bui=* |
--bu=*)
1426 build_alias
=$ac_optarg ;;
1428 -cache-file |
--cache-file |
--cache-fil |
--cache-fi \
1429 |
--cache-f |
--cache- |
--cache |
--cach |
--cac |
--ca |
--c)
1430 ac_prev
=cache_file
;;
1431 -cache-file=* |
--cache-file=* |
--cache-fil=* |
--cache-fi=* \
1432 |
--cache-f=* |
--cache-=* |
--cache=* |
--cach=* |
--cac=* |
--ca=* |
--c=*)
1433 cache_file
=$ac_optarg ;;
1435 --config-cache |
-C)
1436 cache_file
=config.cache
;;
1438 -datadir |
--datadir |
--datadi |
--datad)
1440 -datadir=* |
--datadir=* |
--datadi=* |
--datad=*)
1441 datadir
=$ac_optarg ;;
1443 -datarootdir |
--datarootdir |
--datarootdi |
--datarootd |
--dataroot \
1444 |
--dataroo |
--dataro |
--datar)
1445 ac_prev
=datarootdir
;;
1446 -datarootdir=* |
--datarootdir=* |
--datarootdi=* |
--datarootd=* \
1447 |
--dataroot=* |
--dataroo=* |
--dataro=* |
--datar=*)
1448 datarootdir
=$ac_optarg ;;
1450 -disable-* |
--disable-*)
1451 ac_useropt
=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
1452 # Reject names that are not valid shell variable names.
1453 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev
/null
&&
1454 as_fn_error
"invalid feature name: $ac_useropt"
1455 ac_useropt_orig
=$ac_useropt
1456 ac_useropt
=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1457 case $ac_user_opts in
1459 "enable_
$ac_useropt"
1461 *) ac_unrecognized_opts
="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
1462 ac_unrecognized_sep
=', ';;
1464 eval enable_
$ac_useropt=no
;;
1466 -docdir |
--docdir |
--docdi |
--doc |
--do)
1468 -docdir=* |
--docdir=* |
--docdi=* |
--doc=* |
--do=*)
1469 docdir
=$ac_optarg ;;
1471 -dvidir |
--dvidir |
--dvidi |
--dvid |
--dvi |
--dv)
1473 -dvidir=* |
--dvidir=* |
--dvidi=* |
--dvid=* |
--dvi=* |
--dv=*)
1474 dvidir
=$ac_optarg ;;
1476 -enable-* |
--enable-*)
1477 ac_useropt
=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
1478 # Reject names that are not valid shell variable names.
1479 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev
/null
&&
1480 as_fn_error
"invalid feature name: $ac_useropt"
1481 ac_useropt_orig
=$ac_useropt
1482 ac_useropt
=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1483 case $ac_user_opts in
1485 "enable_
$ac_useropt"
1487 *) ac_unrecognized_opts
="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
1488 ac_unrecognized_sep
=', ';;
1490 eval enable_
$ac_useropt=\
$ac_optarg ;;
1492 -exec-prefix |
--exec_prefix |
--exec-prefix |
--exec-prefi \
1493 |
--exec-pref |
--exec-pre |
--exec-pr |
--exec-p |
--exec- \
1494 |
--exec |
--exe |
--ex)
1495 ac_prev
=exec_prefix
;;
1496 -exec-prefix=* |
--exec_prefix=* |
--exec-prefix=* |
--exec-prefi=* \
1497 |
--exec-pref=* |
--exec-pre=* |
--exec-pr=* |
--exec-p=* |
--exec-=* \
1498 |
--exec=* |
--exe=* |
--ex=*)
1499 exec_prefix
=$ac_optarg ;;
1501 -gas |
--gas |
--ga |
--g)
1502 # Obsolete; use --with-gas.
1505 -help |
--help |
--hel |
--he |
-h)
1506 ac_init_help
=long
;;
1507 -help=r
* |
--help=r
* |
--hel=r
* |
--he=r
* |
-hr*)
1508 ac_init_help
=recursive
;;
1509 -help=s
* |
--help=s
* |
--hel=s
* |
--he=s
* |
-hs*)
1510 ac_init_help
=short
;;
1512 -host |
--host |
--hos |
--ho)
1513 ac_prev
=host_alias
;;
1514 -host=* |
--host=* |
--hos=* |
--ho=*)
1515 host_alias
=$ac_optarg ;;
1517 -htmldir |
--htmldir |
--htmldi |
--htmld |
--html |
--htm |
--ht)
1519 -htmldir=* |
--htmldir=* |
--htmldi=* |
--htmld=* |
--html=* |
--htm=* \
1521 htmldir
=$ac_optarg ;;
1523 -includedir |
--includedir |
--includedi |
--included |
--include \
1524 |
--includ |
--inclu |
--incl |
--inc)
1525 ac_prev
=includedir
;;
1526 -includedir=* |
--includedir=* |
--includedi=* |
--included=* |
--include=* \
1527 |
--includ=* |
--inclu=* |
--incl=* |
--inc=*)
1528 includedir
=$ac_optarg ;;
1530 -infodir |
--infodir |
--infodi |
--infod |
--info |
--inf)
1532 -infodir=* |
--infodir=* |
--infodi=* |
--infod=* |
--info=* |
--inf=*)
1533 infodir
=$ac_optarg ;;
1535 -libdir |
--libdir |
--libdi |
--libd)
1537 -libdir=* |
--libdir=* |
--libdi=* |
--libd=*)
1538 libdir
=$ac_optarg ;;
1540 -libexecdir |
--libexecdir |
--libexecdi |
--libexecd |
--libexec \
1541 |
--libexe |
--libex |
--libe)
1542 ac_prev
=libexecdir
;;
1543 -libexecdir=* |
--libexecdir=* |
--libexecdi=* |
--libexecd=* |
--libexec=* \
1544 |
--libexe=* |
--libex=* |
--libe=*)
1545 libexecdir
=$ac_optarg ;;
1547 -localedir |
--localedir |
--localedi |
--localed |
--locale)
1548 ac_prev
=localedir
;;
1549 -localedir=* |
--localedir=* |
--localedi=* |
--localed=* |
--locale=*)
1550 localedir
=$ac_optarg ;;
1552 -localstatedir |
--localstatedir |
--localstatedi |
--localstated \
1553 |
--localstate |
--localstat |
--localsta |
--localst |
--locals)
1554 ac_prev
=localstatedir
;;
1555 -localstatedir=* |
--localstatedir=* |
--localstatedi=* |
--localstated=* \
1556 |
--localstate=* |
--localstat=* |
--localsta=* |
--localst=* |
--locals=*)
1557 localstatedir
=$ac_optarg ;;
1559 -mandir |
--mandir |
--mandi |
--mand |
--man |
--ma |
--m)
1561 -mandir=* |
--mandir=* |
--mandi=* |
--mand=* |
--man=* |
--ma=* |
--m=*)
1562 mandir
=$ac_optarg ;;
1564 -nfp |
--nfp |
--nf)
1565 # Obsolete; use --without-fp.
1568 -no-create |
--no-create |
--no-creat |
--no-crea |
--no-cre \
1569 |
--no-cr |
--no-c |
-n)
1572 -no-recursion |
--no-recursion |
--no-recursio |
--no-recursi \
1573 |
--no-recurs |
--no-recur |
--no-recu |
--no-rec |
--no-re |
--no-r)
1576 -oldincludedir |
--oldincludedir |
--oldincludedi |
--oldincluded \
1577 |
--oldinclude |
--oldinclud |
--oldinclu |
--oldincl |
--oldinc \
1578 |
--oldin |
--oldi |
--old |
--ol |
--o)
1579 ac_prev
=oldincludedir
;;
1580 -oldincludedir=* |
--oldincludedir=* |
--oldincludedi=* |
--oldincluded=* \
1581 |
--oldinclude=* |
--oldinclud=* |
--oldinclu=* |
--oldincl=* |
--oldinc=* \
1582 |
--oldin=* |
--oldi=* |
--old=* |
--ol=* |
--o=*)
1583 oldincludedir
=$ac_optarg ;;
1585 -prefix |
--prefix |
--prefi |
--pref |
--pre |
--pr |
--p)
1587 -prefix=* |
--prefix=* |
--prefi=* |
--pref=* |
--pre=* |
--pr=* |
--p=*)
1588 prefix
=$ac_optarg ;;
1590 -program-prefix |
--program-prefix |
--program-prefi |
--program-pref \
1591 |
--program-pre |
--program-pr |
--program-p)
1592 ac_prev
=program_prefix
;;
1593 -program-prefix=* |
--program-prefix=* |
--program-prefi=* \
1594 |
--program-pref=* |
--program-pre=* |
--program-pr=* |
--program-p=*)
1595 program_prefix
=$ac_optarg ;;
1597 -program-suffix |
--program-suffix |
--program-suffi |
--program-suff \
1598 |
--program-suf |
--program-su |
--program-s)
1599 ac_prev
=program_suffix
;;
1600 -program-suffix=* |
--program-suffix=* |
--program-suffi=* \
1601 |
--program-suff=* |
--program-suf=* |
--program-su=* |
--program-s=*)
1602 program_suffix
=$ac_optarg ;;
1604 -program-transform-name |
--program-transform-name \
1605 |
--program-transform-nam |
--program-transform-na \
1606 |
--program-transform-n |
--program-transform- \
1607 |
--program-transform |
--program-transfor \
1608 |
--program-transfo |
--program-transf \
1609 |
--program-trans |
--program-tran \
1610 |
--progr-tra |
--program-tr |
--program-t)
1611 ac_prev
=program_transform_name
;;
1612 -program-transform-name=* |
--program-transform-name=* \
1613 |
--program-transform-nam=* |
--program-transform-na=* \
1614 |
--program-transform-n=* |
--program-transform-=* \
1615 |
--program-transform=* |
--program-transfor=* \
1616 |
--program-transfo=* |
--program-transf=* \
1617 |
--program-trans=* |
--program-tran=* \
1618 |
--progr-tra=* |
--program-tr=* |
--program-t=*)
1619 program_transform_name
=$ac_optarg ;;
1621 -pdfdir |
--pdfdir |
--pdfdi |
--pdfd |
--pdf |
--pd)
1623 -pdfdir=* |
--pdfdir=* |
--pdfdi=* |
--pdfd=* |
--pdf=* |
--pd=*)
1624 pdfdir
=$ac_optarg ;;
1626 -psdir |
--psdir |
--psdi |
--psd |
--ps)
1628 -psdir=* |
--psdir=* |
--psdi=* |
--psd=* |
--ps=*)
1631 -q |
-quiet |
--quiet |
--quie |
--qui |
--qu |
--q \
1632 |
-silent |
--silent |
--silen |
--sile |
--sil)
1635 -sbindir |
--sbindir |
--sbindi |
--sbind |
--sbin |
--sbi |
--sb)
1637 -sbindir=* |
--sbindir=* |
--sbindi=* |
--sbind=* |
--sbin=* \
1639 sbindir
=$ac_optarg ;;
1641 -sharedstatedir |
--sharedstatedir |
--sharedstatedi \
1642 |
--sharedstated |
--sharedstate |
--sharedstat |
--sharedsta \
1643 |
--sharedst |
--shareds |
--shared |
--share |
--shar \
1645 ac_prev
=sharedstatedir
;;
1646 -sharedstatedir=* |
--sharedstatedir=* |
--sharedstatedi=* \
1647 |
--sharedstated=* |
--sharedstate=* |
--sharedstat=* |
--sharedsta=* \
1648 |
--sharedst=* |
--shareds=* |
--shared=* |
--share=* |
--shar=* \
1650 sharedstatedir
=$ac_optarg ;;
1652 -site |
--site |
--sit)
1654 -site=* |
--site=* |
--sit=*)
1657 -srcdir |
--srcdir |
--srcdi |
--srcd |
--src |
--sr)
1659 -srcdir=* |
--srcdir=* |
--srcdi=* |
--srcd=* |
--src=* |
--sr=*)
1660 srcdir
=$ac_optarg ;;
1662 -sysconfdir |
--sysconfdir |
--sysconfdi |
--sysconfd |
--sysconf \
1663 |
--syscon |
--sysco |
--sysc |
--sys |
--sy)
1664 ac_prev
=sysconfdir
;;
1665 -sysconfdir=* |
--sysconfdir=* |
--sysconfdi=* |
--sysconfd=* |
--sysconf=* \
1666 |
--syscon=* |
--sysco=* |
--sysc=* |
--sys=* |
--sy=*)
1667 sysconfdir
=$ac_optarg ;;
1669 -target |
--target |
--targe |
--targ |
--tar |
--ta |
--t)
1670 ac_prev
=target_alias
;;
1671 -target=* |
--target=* |
--targe=* |
--targ=* |
--tar=* |
--ta=* |
--t=*)
1672 target_alias
=$ac_optarg ;;
1674 -v |
-verbose |
--verbose |
--verbos |
--verbo |
--verb)
1677 -version |
--version |
--versio |
--versi |
--vers |
-V)
1678 ac_init_version
=: ;;
1681 ac_useropt
=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1682 # Reject names that are not valid shell variable names.
1683 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev
/null
&&
1684 as_fn_error
"invalid package name: $ac_useropt"
1685 ac_useropt_orig
=$ac_useropt
1686 ac_useropt
=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1687 case $ac_user_opts in
1691 *) ac_unrecognized_opts
="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1692 ac_unrecognized_sep
=', ';;
1694 eval with_
$ac_useropt=\
$ac_optarg ;;
1696 -without-* |
--without-*)
1697 ac_useropt
=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1698 # Reject names that are not valid shell variable names.
1699 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev
/null
&&
1700 as_fn_error
"invalid package name: $ac_useropt"
1701 ac_useropt_orig
=$ac_useropt
1702 ac_useropt
=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1703 case $ac_user_opts in
1707 *) ac_unrecognized_opts
="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1708 ac_unrecognized_sep
=', ';;
1710 eval with_
$ac_useropt=no
;;
1713 # Obsolete; use --with-x.
1716 -x-includes |
--x-includes |
--x-include |
--x-includ |
--x-inclu \
1717 |
--x-incl |
--x-inc |
--x-in |
--x-i)
1718 ac_prev
=x_includes
;;
1719 -x-includes=* |
--x-includes=* |
--x-include=* |
--x-includ=* |
--x-inclu=* \
1720 |
--x-incl=* |
--x-inc=* |
--x-in=* |
--x-i=*)
1721 x_includes
=$ac_optarg ;;
1723 -x-libraries |
--x-libraries |
--x-librarie |
--x-librari \
1724 |
--x-librar |
--x-libra |
--x-libr |
--x-lib |
--x-li |
--x-l)
1725 ac_prev
=x_libraries
;;
1726 -x-libraries=* |
--x-libraries=* |
--x-librarie=* |
--x-librari=* \
1727 |
--x-librar=* |
--x-libra=* |
--x-libr=* |
--x-lib=* |
--x-li=* |
--x-l=*)
1728 x_libraries
=$ac_optarg ;;
1730 -*) as_fn_error
"unrecognized option: \`$ac_option'
1731 Try \`$0 --help' for more information."
1735 ac_envvar
=`expr "x$ac_option" : 'x\([^=]*\)='`
1736 # Reject names that are not valid shell variable names.
1737 case $ac_envvar in #(
1738 '' |
[0-9]* |
*[!_
$as_cr_alnum]* )
1739 as_fn_error
"invalid variable name: \`$ac_envvar'" ;;
1741 eval $ac_envvar=\
$ac_optarg
1742 export $ac_envvar ;;
1745 # FIXME: should be removed in autoconf 3.0.
1746 $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1747 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev
/null
&&
1748 $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1749 : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
1755 if test -n "$ac_prev"; then
1756 ac_option
=--`echo $ac_prev | sed 's/_/-/g'`
1757 as_fn_error
"missing argument to $ac_option"
1760 if test -n "$ac_unrecognized_opts"; then
1761 case $enable_option_checking in
1763 fatal
) as_fn_error
"unrecognized options: $ac_unrecognized_opts" ;;
1764 *) $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
1768 # Check all directory arguments for consistency.
1769 for ac_var
in exec_prefix prefix bindir sbindir libexecdir datarootdir \
1770 datadir sysconfdir sharedstatedir localstatedir includedir \
1771 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1772 libdir localedir mandir
1774 eval ac_val
=\$
$ac_var
1775 # Remove trailing slashes.
1778 ac_val
=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1779 eval $ac_var=\
$ac_val;;
1781 # Be sure to have absolute directory names.
1783 [\\/$
]* | ?
:[\\/]* ) continue;;
1784 NONE |
'' ) case $ac_var in *prefix
) continue;; esac;;
1786 as_fn_error
"expected an absolute directory name for --$ac_var: $ac_val"
1789 # There might be people who depend on the old broken behavior: `$host'
1790 # used to hold the argument of --host etc.
1791 # FIXME: To remove some day.
1794 target
=$target_alias
1796 # FIXME: To remove some day.
1797 if test "x$host_alias" != x
; then
1798 if test "x$build_alias" = x
; then
1799 cross_compiling
=maybe
1800 $as_echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
1801 If a cross compiler is detected then cross compile mode will be used." >&2
1802 elif test "x$build_alias" != "x$host_alias"; then
1808 test -n "$host_alias" && ac_tool_prefix
=$host_alias-
1810 test "$silent" = yes && exec 6>/dev
/null
1813 ac_pwd
=`pwd` && test -n "$ac_pwd" &&
1814 ac_ls_di
=`ls -di .` &&
1815 ac_pwd_ls_di
=`cd "$ac_pwd" && ls -di .` ||
1816 as_fn_error
"working directory cannot be determined"
1817 test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1818 as_fn_error
"pwd does not report name of working directory"
1821 # Find the source files, if location was not specified.
1822 if test -z "$srcdir"; then
1823 ac_srcdir_defaulted
=yes
1824 # Try the directory containing this script, then the parent directory.
1825 ac_confdir
=`$as_dirname -- "$as_myself" ||
1826 $as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1827 X"$as_myself" : 'X\(//\)[^/]' \| \
1828 X"$as_myself" : 'X\(//\)$' \| \
1829 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1830 $as_echo X"$as_myself" |
1831 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1849 if test ! -r "$srcdir/$ac_unique_file"; then
1853 ac_srcdir_defaulted
=no
1855 if test ! -r "$srcdir/$ac_unique_file"; then
1856 test "$ac_srcdir_defaulted" = yes && srcdir
="$ac_confdir or .."
1857 as_fn_error
"cannot find sources ($ac_unique_file) in $srcdir"
1859 ac_msg
="sources are in $srcdir, but \`cd $srcdir' does not work"
1861 cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error "$ac_msg"
1863 # When building in place, set srcdir=.
1864 if test "$ac_abs_confdir" = "$ac_pwd"; then
1867 # Remove unnecessary trailing slashes from srcdir.
1868 # Double slashes in file names in object file debugging info
1869 # mess up M-x gdb in Emacs.
1871 */) srcdir
=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1873 for ac_var
in $ac_precious_vars; do
1874 eval ac_env_
${ac_var}_set=\${${ac_var}+set}
1875 eval ac_env_
${ac_var}_value
=\$
${ac_var}
1876 eval ac_cv_env_
${ac_var}_set=\${${ac_var}+set}
1877 eval ac_cv_env_
${ac_var}_value
=\$
${ac_var}
1881 # Report the --help message.
1883 if test "$ac_init_help" = "long"; then
1884 # Omit some internal or obsolete options to make the list less imposing.
1885 # This message is too long to be a string in the A/UX 3.1 sh.
1887 \`configure' configures emacs 24.0.91 to adapt to many kinds of systems.
1889 Usage: $0 [OPTION]... [VAR=VALUE]...
1891 To assign environment variables (e.g., CC, CFLAGS...), specify them as
1892 VAR=VALUE. See below for descriptions of some of the useful variables.
1894 Defaults for the options are specified in brackets.
1897 -h, --help display this help and exit
1898 --help=short display options specific to this package
1899 --help=recursive display the short help of all the included packages
1900 -V, --version display version information and exit
1901 -q, --quiet, --silent do not print \`checking...' messages
1902 --cache-file=FILE cache test results in FILE [disabled]
1903 -C, --config-cache alias for \`--cache-file=config.cache'
1904 -n, --no-create do not create output files
1905 --srcdir=DIR find the sources in DIR [configure dir or \`..']
1907 Installation directories:
1908 --prefix=PREFIX install architecture-independent files in PREFIX
1909 [$ac_default_prefix]
1910 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
1913 By default, \`make install' will install all the files in
1914 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
1915 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1916 for instance \`--prefix=\$HOME'.
1918 For better control, use the options below.
1920 Fine tuning of the installation directories:
1921 --bindir=DIR user executables [EPREFIX/bin]
1922 --sbindir=DIR system admin executables [EPREFIX/sbin]
1923 --libexecdir=DIR program executables [EPREFIX/libexec]
1924 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
1925 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
1926 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
1927 --libdir=DIR object code libraries [EPREFIX/lib]
1928 --includedir=DIR C header files [PREFIX/include]
1929 --oldincludedir=DIR C header files for non-gcc [/usr/include]
1930 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
1931 --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
1932 --infodir=DIR info documentation [DATAROOTDIR/info]
1933 --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
1934 --mandir=DIR man documentation [DATAROOTDIR/man]
1935 --docdir=DIR documentation root [DATAROOTDIR/doc/emacs]
1936 --htmldir=DIR html documentation [DOCDIR]
1937 --dvidir=DIR dvi documentation [DOCDIR]
1938 --pdfdir=DIR pdf documentation [DOCDIR]
1939 --psdir=DIR ps documentation [DOCDIR]
1945 --program-prefix=PREFIX prepend PREFIX to installed program names
1946 --program-suffix=SUFFIX append SUFFIX to installed program names
1947 --program-transform-name=PROGRAM run
sed PROGRAM on installed program names
1950 --x-includes=DIR X include files are
in DIR
1951 --x-libraries=DIR X library files are
in DIR
1954 --build=BUILD configure
for building on BUILD
[guessed
]
1955 --host=HOST cross-compile to build programs to run on HOST
[BUILD
]
1959 if test -n "$ac_init_help"; then
1960 case $ac_init_help in
1961 short | recursive
) echo "Configuration of emacs 24.0.91:";;
1966 --disable-option-checking ignore unrecognized
--enable/--with options
1967 --disable-FEATURE do not include FEATURE
(same as
--enable-FEATURE=no
)
1968 --enable-FEATURE[=ARG
] include FEATURE
[ARG
=yes]
1969 --disable-ns-self-contained
1970 disable self contained build under NeXTstep
1971 --enable-asserts compile code with asserts enabled
1972 --disable-maintainer-mode
1973 disable
make rules and dependencies not useful
(and
1974 sometimes confusing
) to the casual installer
1975 --enable-locallisppath=PATH
1976 directories Emacs should search
for lisp files
1977 specific to this site
1978 --enable-checking[=LIST
]
1979 enable expensive run-time checks. With LIST
, enable
1980 only specific categories of checks. Categories are
:
1981 all
,yes,no. Flags are
: stringbytes
, stringoverrun
,
1982 stringfreelist
, xmallocoverrun
, conslist
1983 --enable-use-lisp-union-type
1984 use a union
for the Lisp_Object data
type. This is
1985 only useful
for development
for catching certain
1987 --enable-profiling build emacs with profiling support. This might not
1988 work on all platforms
1989 --enable-autodepend automatically generate dependencies to .h-files.
1990 Requires GNU Make and Gcc. Enabled
if GNU Make and
1992 --disable-dependency-tracking speeds up one-time build
1993 --enable-dependency-tracking do not reject slow dependency extractors
1994 --disable-largefile omit support
for large files
1997 --with-PACKAGE[=ARG
] use PACKAGE
[ARG
=yes]
1998 --without-PACKAGE do not use PACKAGE
(same as
--with-PACKAGE=no
)
1999 --without-pop don
't support POP mail retrieval with movemail
2000 --with-kerberos support Kerberos-authenticated POP
2001 --with-kerberos5 support Kerberos version 5 authenticated POP
2002 --with-hesiod support Hesiod to get the POP server host
2003 --with-mmdf support MMDF mailboxes
2004 --with-mail-unlink unlink, rather than empty, mail spool after reading
2005 --with-mailhost=HOSTNAME
2006 string giving default POP mail host
2007 --without-sound don't compile with sound support
2008 --without-sync-input process async input synchronously
2009 --with-x-toolkit=KIT use an X toolkit
(KIT one of
: yes or gtk
, gtk3
,
2010 lucid or athena
, motif
, no
)
2011 --with-wide-int prefer wide Emacs integers
(typically
62-bit)
2012 --without-xpm don
't compile with XPM image support
2013 --without-jpeg don't compile with JPEG image support
2014 --without-tiff don
't compile with TIFF image support
2015 --without-gif don't compile with GIF image support
2016 --without-png don
't compile with PNG image support
2017 --without-rsvg don't compile with SVG image support
2018 --without-xml2 don
't compile with XML parsing support
2019 --without-imagemagick don't compile with ImageMagick image support
2020 --without-xft don
't use XFT for anti aliased fonts
2021 --without-libotf don't use libotf
for OpenType font support
2022 --without-m17n-flt don
't use m17n-flt for text shaping
2023 --without-toolkit-scroll-bars
2024 don't use Motif or Xaw3d scroll bars
2025 --without-xaw3d don
't use Xaw3d
2026 --without-xim don't use X11 XIM
2027 --with-ns use NeXTstep
(Cocoa or GNUstep
) windowing system
2028 --without-gpm don
't use -lgpm for mouse support on a GNU/Linux
2030 --without-dbus don't compile with D-Bus support
2031 --without-gconf don
't compile with GConf support
2032 --without-gsettings don't compile with GSettings support
2033 --without-selinux don
't compile with SELinux support
2034 --without-gnutls don't use
-lgnutls for SSL
/TLS support
2035 --without-makeinfo don
't require makeinfo for building manuals
2036 --without-compress-info don't
compress the installed Info pages
2037 --with-pkg-config-prog=PATH
2038 path to pkg-config
for finding GTK and librsvg
2039 --with-crt-dir=DIR directory containing crtn.o etc. The default is
2040 /usr
/lib
, or
/usr
/lib64 on some platforms.
2041 --with-gameuser=USER user
for shared game score files
2042 --with-gnustep-conf=PATH
2043 path to GNUstep.conf
; default
$GNUSTEP_CONFIG_FILE,
2044 or
/etc
/GNUstep
/GNUstep.conf
2045 --with-x use the X Window System
2047 Some influential environment variables
:
2048 CC C compiler
command
2049 CFLAGS C compiler flags
2050 LDFLAGS linker flags
, e.g.
-L<lib dir
> if you have libraries
in a
2051 nonstandard directory
<lib dir
>
2052 LIBS libraries to pass to the linker
, e.g.
-l<library
>
2053 CPPFLAGS
(Objective
) C
/C
++ preprocessor flags
, e.g.
-I<include dir
> if
2054 you have headers
in a nonstandard directory
<include dir
>
2056 XMKMF Path to xmkmf
, Makefile generator
for X Window System
2058 Use these variables to override the choices made by
`configure' or to help
2059 it to find libraries and programs with nonstandard names/locations.
2061 Report bugs to the package provider.
2066 if test "$ac_init_help" = "recursive"; then
2067 # If there are subdirs, report their specific --help.
2068 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
2069 test -d "$ac_dir" ||
2070 { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
2075 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
2077 ac_dir_suffix=/`$as_echo "$ac_dir" |
sed 's|^\.[\\/]||'`
2078 # A ".." for each directory in $ac_dir_suffix.
2079 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" |
sed 's|/[^\\/]*|/..|g;s|/||'`
2080 case $ac_top_builddir_sub in
2081 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
2082 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
2085 ac_abs_top_builddir=$ac_pwd
2086 ac_abs_builddir=$ac_pwd$ac_dir_suffix
2087 # for backward compatibility:
2088 ac_top_builddir=$ac_top_build_prefix
2091 .) # We are building in place.
2093 ac_top_srcdir=$ac_top_builddir_sub
2094 ac_abs_top_srcdir=$ac_pwd ;;
2095 [\\/]* | ?:[\\/]* ) # Absolute name.
2096 ac_srcdir=$srcdir$ac_dir_suffix;
2097 ac_top_srcdir=$srcdir
2098 ac_abs_top_srcdir=$srcdir ;;
2100 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
2101 ac_top_srcdir=$ac_top_build_prefix$srcdir
2102 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
2104 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
2106 cd "$ac_dir" || { ac_status=$?; continue; }
2107 # Check for guested configure.
2108 if test -f "$ac_srcdir/configure.gnu"; then
2110 $SHELL "$ac_srcdir/configure.gnu" --help=recursive
2111 elif test -f "$ac_srcdir/configure"; then
2113 $SHELL "$ac_srcdir/configure" --help=recursive
2115 $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
2117 cd "$ac_pwd" || { ac_status=$?; break; }
2121 test -n "$ac_init_help" && exit $ac_status
2122 if $ac_init_version; then
2124 emacs configure 24.0.91
2125 generated by GNU Autoconf 2.65
2127 Copyright (C) 2009 Free Software Foundation, Inc.
2128 This configure script is free software; the Free Software Foundation
2129 gives unlimited permission to copy, distribute and modify it.
2134 ## ------------------------ ##
2135 ## Autoconf initialization. ##
2136 ## ------------------------ ##
2138 # ac_fn_c_try_compile LINENO
2139 # --------------------------
2140 # Try to compile conftest.$ac_ext, and return whether this succeeded.
2141 ac_fn_c_try_compile ()
2143 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2144 rm -f conftest.$ac_objext
2145 if { { ac_try="$ac_compile"
2147 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
2148 *) ac_try_echo
=$ac_try;;
2150 eval ac_try_echo
="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2151 $as_echo "$ac_try_echo"; } >&5
2152 (eval "$ac_compile") 2>conftest.err
2154 if test -s conftest.err
; then
2155 grep -v '^ *+' conftest.err
>conftest.er1
2156 cat conftest.er1
>&5
2157 mv -f conftest.er1 conftest.err
2159 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2160 test $ac_status = 0; } && {
2161 test -z "$ac_c_werror_flag" ||
2162 test ! -s conftest.err
2163 } && test -s conftest.
$ac_objext; then :
2166 $as_echo "$as_me: failed program was:" >&5
2167 sed 's/^/| /' conftest.
$ac_ext >&5
2171 eval $as_lineno_stack; test "x$as_lineno_stack" = x
&& { as_lineno
=; unset as_lineno
;}
2172 as_fn_set_status
$ac_retval
2174 } # ac_fn_c_try_compile
2176 # ac_fn_c_try_cpp LINENO
2177 # ----------------------
2178 # Try to preprocess conftest.$ac_ext, and return whether this succeeded.
2181 as_lineno
=${as_lineno-"$1"} as_lineno_stack
=as_lineno_stack
=$as_lineno_stack
2182 if { { ac_try
="$ac_cpp conftest.$ac_ext"
2184 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
2185 *) ac_try_echo=$ac_try;;
2187 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2188 $as_echo "$ac_try_echo"; } >&5
2189 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
2191 if test -s conftest.err; then
2192 grep -v '^ *+' conftest.err >conftest.er1
2193 cat conftest.er1 >&5
2194 mv -f conftest.er1 conftest.err
2196 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2197 test $ac_status = 0; } >/dev/null && {
2198 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
2199 test ! -s conftest.err
2203 $as_echo "$as_me: failed program was:" >&5
2204 sed 's/^/| /' conftest.$ac_ext >&5
2208 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2209 as_fn_set_status $ac_retval
2213 # ac_fn_c_check_header_mongrel LINENO HEADER VAR INCLUDES
2214 # -------------------------------------------------------
2215 # Tests whether HEADER exists, giving a warning if it cannot be compiled using
2216 # the include files in INCLUDES and setting the cache variable VAR
2218 ac_fn_c_check_header_mongrel ()
2220 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2221 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
2222 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2223 $as_echo_n "checking for $2... " >&6; }
2224 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
2225 $as_echo_n "(cached) " >&6
2228 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2229 $as_echo "$ac_res" >&6; }
2231 # Is the header compilable?
2232 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5
2233 $as_echo_n "checking $2 usability... " >&6; }
2234 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2235 /* end confdefs.h. */
2239 if ac_fn_c_try_compile "$LINENO"; then :
2240 ac_header_compiler=yes
2242 ac_header_compiler=no
2244 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2245 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5
2246 $as_echo "$ac_header_compiler" >&6; }
2248 # Is the header present?
2249 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5
2250 $as_echo_n "checking $2 presence... " >&6; }
2251 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2252 /* end confdefs.h. */
2255 if ac_fn_c_try_cpp "$LINENO"; then :
2256 ac_header_preproc=yes
2258 ac_header_preproc=no
2260 rm -f conftest.err conftest.$ac_ext
2261 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5
2262 $as_echo "$ac_header_preproc" >&6; }
2264 # So? What about this header?
2265 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in #((
2267 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5
2268 $as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;}
2269 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
2270 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
2273 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5
2274 $as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;}
2275 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: check for missing prerequisite headers?" >&5
2276 $as_echo "$as_me: WARNING: $2: check for missing prerequisite headers?" >&2;}
2277 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5
2278 $as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;}
2279 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&5
2280 $as_echo "$as_me: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&2;}
2281 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
2282 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
2285 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2286 $as_echo_n "checking for $2... " >&6; }
2287 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
2288 $as_echo_n "(cached) " >&6
2290 eval "$3=\$ac_header_compiler"
2293 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2294 $as_echo "$ac_res" >&6; }
2296 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2298 } # ac_fn_c_check_header_mongrel
2300 # ac_fn_c_try_run LINENO
2301 # ----------------------
2302 # Try to link conftest.$ac_ext, and return whether this succeeded. Assumes
2303 # that executables *can* be run.
2306 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2307 if { { ac_try="$ac_link"
2309 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
2310 *) ac_try_echo
=$ac_try;;
2312 eval ac_try_echo
="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2313 $as_echo "$ac_try_echo"; } >&5
2314 (eval "$ac_link") 2>&5
2316 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2317 test $ac_status = 0; } && { ac_try
='./conftest$ac_exeext'
2318 { { case "(($ac_try" in
2319 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
2320 *) ac_try_echo=$ac_try;;
2322 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2323 $as_echo "$ac_try_echo"; } >&5
2324 (eval "$ac_try") 2>&5
2326 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2327 test $ac_status = 0; }; }; then :
2330 $as_echo "$as_me: program exited with status $ac_status" >&5
2331 $as_echo "$as_me: failed program was:" >&5
2332 sed 's/^/| /' conftest.$ac_ext >&5
2334 ac_retval=$ac_status
2336 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
2337 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2338 as_fn_set_status $ac_retval
2342 # ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES
2343 # -------------------------------------------------------
2344 # Tests whether HEADER exists and can be compiled using the include files in
2345 # INCLUDES, setting the cache variable VAR accordingly.
2346 ac_fn_c_check_header_compile ()
2348 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2349 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2350 $as_echo_n "checking for $2... " >&6; }
2351 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
2352 $as_echo_n "(cached) " >&6
2354 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2355 /* end confdefs.h. */
2359 if ac_fn_c_try_compile "$LINENO"; then :
2364 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2367 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2368 $as_echo "$ac_res" >&6; }
2369 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2371 } # ac_fn_c_check_header_compile
2373 # ac_fn_c_try_link LINENO
2374 # -----------------------
2375 # Try to link conftest.$ac_ext, and return whether this succeeded.
2378 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2379 rm -f conftest.$ac_objext conftest$ac_exeext
2380 if { { ac_try="$ac_link"
2382 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
2383 *) ac_try_echo
=$ac_try;;
2385 eval ac_try_echo
="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2386 $as_echo "$ac_try_echo"; } >&5
2387 (eval "$ac_link") 2>conftest.err
2389 if test -s conftest.err
; then
2390 grep -v '^ *+' conftest.err
>conftest.er1
2391 cat conftest.er1
>&5
2392 mv -f conftest.er1 conftest.err
2394 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2395 test $ac_status = 0; } && {
2396 test -z "$ac_c_werror_flag" ||
2397 test ! -s conftest.err
2398 } && test -s conftest
$ac_exeext && {
2399 test "$cross_compiling" = yes ||
2400 $as_test_x conftest
$ac_exeext
2404 $as_echo "$as_me: failed program was:" >&5
2405 sed 's/^/| /' conftest.
$ac_ext >&5
2409 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
2410 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
2411 # interfere with the next link command; also delete a directory that is
2412 # left behind by Apple's compiler. We do this before executing the actions.
2413 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
2414 eval $as_lineno_stack; test "x$as_lineno_stack" = x
&& { as_lineno
=; unset as_lineno
;}
2415 as_fn_set_status
$ac_retval
2417 } # ac_fn_c_try_link
2419 # ac_fn_c_check_decl LINENO SYMBOL VAR
2420 # ------------------------------------
2421 # Tests whether SYMBOL is declared, setting cache variable VAR accordingly.
2422 ac_fn_c_check_decl
()
2424 as_lineno
=${as_lineno-"$1"} as_lineno_stack
=as_lineno_stack
=$as_lineno_stack
2425 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $2 is declared" >&5
2426 $as_echo_n "checking whether $2 is declared... " >&6; }
2427 if { as_var
=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
2428 $as_echo_n "(cached) " >&6
2430 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
2431 /* end confdefs.h. */
2444 if ac_fn_c_try_compile
"$LINENO"; then :
2449 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
2452 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2453 $as_echo "$ac_res" >&6; }
2454 eval $as_lineno_stack; test "x$as_lineno_stack" = x
&& { as_lineno
=; unset as_lineno
;}
2456 } # ac_fn_c_check_decl
2458 # ac_fn_c_check_header_preproc LINENO HEADER VAR
2459 # ----------------------------------------------
2460 # Tests whether HEADER is present, setting the cache variable VAR accordingly.
2461 ac_fn_c_check_header_preproc
()
2463 as_lineno
=${as_lineno-"$1"} as_lineno_stack
=as_lineno_stack
=$as_lineno_stack
2464 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2465 $as_echo_n "checking for $2... " >&6; }
2466 if { as_var
=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
2467 $as_echo_n "(cached) " >&6
2469 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
2470 /* end confdefs.h. */
2473 if ac_fn_c_try_cpp
"$LINENO"; then :
2478 rm -f conftest.err conftest.
$ac_ext
2481 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2482 $as_echo "$ac_res" >&6; }
2483 eval $as_lineno_stack; test "x$as_lineno_stack" = x
&& { as_lineno
=; unset as_lineno
;}
2485 } # ac_fn_c_check_header_preproc
2487 # ac_fn_c_check_func LINENO FUNC VAR
2488 # ----------------------------------
2489 # Tests whether FUNC exists, setting the cache variable VAR accordingly
2490 ac_fn_c_check_func
()
2492 as_lineno
=${as_lineno-"$1"} as_lineno_stack
=as_lineno_stack
=$as_lineno_stack
2493 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2494 $as_echo_n "checking for $2... " >&6; }
2495 if { as_var
=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
2496 $as_echo_n "(cached) " >&6
2498 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
2499 /* end confdefs.h. */
2500 /* Define $2 to an innocuous variant, in case <limits.h> declares $2.
2501 For example, HP-UX 11i <limits.h> declares gettimeofday. */
2502 #define $2 innocuous_$2
2504 /* System header to define __stub macros and hopefully few prototypes,
2505 which can conflict with char $2 (); below.
2506 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
2507 <limits.h> exists even on freestanding compilers. */
2510 # include <limits.h>
2512 # include <assert.h>
2517 /* Override any GCC internal prototype to avoid an error.
2518 Use char because int might match the return type of a GCC
2519 builtin and then its argument prototype would still apply. */
2524 /* The GNU C library defines this for functions which it implements
2525 to always fail with ENOSYS. Some functions are actually named
2526 something starting with __ and the normal name is an alias. */
2527 #if defined __stub_$2 || defined __stub___$2
2539 if ac_fn_c_try_link
"$LINENO"; then :
2544 rm -f core conftest.err conftest.
$ac_objext \
2545 conftest
$ac_exeext conftest.
$ac_ext
2548 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2549 $as_echo "$ac_res" >&6; }
2550 eval $as_lineno_stack; test "x$as_lineno_stack" = x
&& { as_lineno
=; unset as_lineno
;}
2552 } # ac_fn_c_check_func
2554 # ac_fn_c_check_member LINENO AGGR MEMBER VAR INCLUDES
2555 # ----------------------------------------------------
2556 # Tries to find if the field MEMBER exists in type AGGR, after including
2557 # INCLUDES, setting cache variable VAR accordingly.
2558 ac_fn_c_check_member
()
2560 as_lineno
=${as_lineno-"$1"} as_lineno_stack
=as_lineno_stack
=$as_lineno_stack
2561 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2.$3" >&5
2562 $as_echo_n "checking for $2.$3... " >&6; }
2563 if { as_var
=$4; eval "test \"\${$as_var+set}\" = set"; }; then :
2564 $as_echo_n "(cached) " >&6
2566 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
2567 /* end confdefs.h. */
2579 if ac_fn_c_try_compile
"$LINENO"; then :
2582 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
2583 /* end confdefs.h. */
2589 if (sizeof ac_aggr.$3)
2595 if ac_fn_c_try_compile
"$LINENO"; then :
2600 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
2602 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
2605 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2606 $as_echo "$ac_res" >&6; }
2607 eval $as_lineno_stack; test "x$as_lineno_stack" = x
&& { as_lineno
=; unset as_lineno
;}
2609 } # ac_fn_c_check_member
2611 # ac_fn_c_check_type LINENO TYPE VAR INCLUDES
2612 # -------------------------------------------
2613 # Tests whether TYPE exists after having included INCLUDES, setting cache
2614 # variable VAR accordingly.
2615 ac_fn_c_check_type
()
2617 as_lineno
=${as_lineno-"$1"} as_lineno_stack
=as_lineno_stack
=$as_lineno_stack
2618 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2619 $as_echo_n "checking for $2... " >&6; }
2620 if { as_var
=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
2621 $as_echo_n "(cached) " >&6
2624 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
2625 /* end confdefs.h. */
2636 if ac_fn_c_try_compile
"$LINENO"; then :
2637 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
2638 /* end confdefs.h. */
2649 if ac_fn_c_try_compile
"$LINENO"; then :
2654 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
2656 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
2659 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2660 $as_echo "$ac_res" >&6; }
2661 eval $as_lineno_stack; test "x$as_lineno_stack" = x
&& { as_lineno
=; unset as_lineno
;}
2663 } # ac_fn_c_check_type
2665 # ac_fn_c_compute_int LINENO EXPR VAR INCLUDES
2666 # --------------------------------------------
2667 # Tries to find the compile-time value of EXPR in a program that includes
2668 # INCLUDES, setting VAR accordingly. Returns whether the value could be
2670 ac_fn_c_compute_int
()
2672 as_lineno
=${as_lineno-"$1"} as_lineno_stack
=as_lineno_stack
=$as_lineno_stack
2673 if test "$cross_compiling" = yes; then
2674 # Depending upon the size, compute the lo and hi bounds.
2675 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
2676 /* end confdefs.h. */
2681 static int test_array [1 - 2 * !(($2) >= 0)];
2688 if ac_fn_c_try_compile
"$LINENO"; then :
2691 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
2692 /* end confdefs.h. */
2697 static int test_array [1 - 2 * !(($2) <= $ac_mid)];
2704 if ac_fn_c_try_compile
"$LINENO"; then :
2705 ac_hi
=$ac_mid; break
2707 as_fn_arith
$ac_mid + 1 && ac_lo
=$as_val
2708 if test $ac_lo -le $ac_mid; then
2712 as_fn_arith
2 '*' $ac_mid + 1 && ac_mid
=$as_val
2714 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
2717 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
2718 /* end confdefs.h. */
2723 static int test_array [1 - 2 * !(($2) < 0)];
2730 if ac_fn_c_try_compile
"$LINENO"; then :
2733 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
2734 /* end confdefs.h. */
2739 static int test_array [1 - 2 * !(($2) >= $ac_mid)];
2746 if ac_fn_c_try_compile
"$LINENO"; then :
2747 ac_lo
=$ac_mid; break
2749 as_fn_arith
'(' $ac_mid ')' - 1 && ac_hi
=$as_val
2750 if test $ac_mid -le $ac_hi; then
2754 as_fn_arith
2 '*' $ac_mid && ac_mid
=$as_val
2756 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
2761 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
2763 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
2764 # Binary search between lo and hi bounds.
2765 while test "x$ac_lo" != "x$ac_hi"; do
2766 as_fn_arith
'(' $ac_hi - $ac_lo ')' / 2 + $ac_lo && ac_mid
=$as_val
2767 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
2768 /* end confdefs.h. */
2773 static int test_array [1 - 2 * !(($2) <= $ac_mid)];
2780 if ac_fn_c_try_compile
"$LINENO"; then :
2783 as_fn_arith
'(' $ac_mid ')' + 1 && ac_lo
=$as_val
2785 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
2788 ?
*) eval "$3=\$ac_lo"; ac_retval
=0 ;;
2792 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
2793 /* end confdefs.h. */
2795 static long int longval () { return $2; }
2796 static unsigned long int ulongval () { return $2; }
2803 FILE *f = fopen ("conftest.val", "w");
2808 long int i = longval ();
2811 fprintf (f, "%ld", i);
2815 unsigned long int i = ulongval ();
2818 fprintf (f, "%lu", i);
2820 /* Do not output a trailing newline, as this causes \r\n confusion
2821 on some platforms. */
2822 return ferror (f) || fclose (f) != 0;
2828 if ac_fn_c_try_run
"$LINENO"; then :
2829 echo >>conftest.val
; read $3 <conftest.val
; ac_retval
=0
2833 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
2834 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
2838 eval $as_lineno_stack; test "x$as_lineno_stack" = x
&& { as_lineno
=; unset as_lineno
;}
2839 as_fn_set_status
$ac_retval
2841 } # ac_fn_c_compute_int
2842 cat >config.log
<<_ACEOF
2843 This file contains any messages produced by compilers while
2844 running configure, to aid debugging if configure makes a mistake.
2846 It was created by emacs $as_me 24.0.91, which was
2847 generated by GNU Autoconf 2.65. Invocation command line was
2859 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
2860 uname -m = `(uname -m) 2>/dev/null || echo unknown`
2861 uname -r = `(uname -r) 2>/dev/null || echo unknown`
2862 uname -s = `(uname -s) 2>/dev/null || echo unknown`
2863 uname -v = `(uname -v) 2>/dev/null || echo unknown`
2865 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
2866 /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
2868 /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
2869 /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
2870 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
2871 /usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
2872 /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
2873 /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
2874 /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
2878 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
2882 test -z "$as_dir" && as_dir
=.
2883 $as_echo "PATH: $as_dir"
2899 # Keep a trace of the command line.
2900 # Strip out --no-create and --no-recursion so they do not pile up.
2901 # Strip out --silent because we don't want to record it for future runs.
2902 # Also quote any args containing shell meta-characters.
2903 # Make two passes to allow for proper duplicate-argument suppression.
2907 ac_must_keep_next
=false
2913 -no-create |
--no-c* |
-n |
-no-recursion |
--no-r*) continue ;;
2914 -q |
-quiet |
--quiet |
--quie |
--qui |
--qu |
--q \
2915 |
-silent |
--silent |
--silen |
--sile |
--sil)
2918 ac_arg
=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
2921 1) as_fn_append ac_configure_args0
" '$ac_arg'" ;;
2923 as_fn_append ac_configure_args1
" '$ac_arg'"
2924 if test $ac_must_keep_next = true
; then
2925 ac_must_keep_next
=false
# Got value, back to normal.
2928 *=* |
--config-cache |
-C |
-disable-* |
--disable-* \
2929 |
-enable-* |
--enable-* |
-gas |
--g* |
-nfp |
--nf* \
2930 |
-q |
-quiet |
--q* |
-silent |
--sil* |
-v |
-verb* \
2931 |
-with-* |
--with-* |
-without-* |
--without-* |
--x)
2932 case "$ac_configure_args0 " in
2933 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
2936 -* ) ac_must_keep_next
=true
;;
2939 as_fn_append ac_configure_args
" '$ac_arg'"
2944 { ac_configure_args0
=; unset ac_configure_args0
;}
2945 { ac_configure_args1
=; unset ac_configure_args1
;}
2947 # When interrupted or exit'd, cleanup temporary files, and complete
2948 # config.log. We remove comments because anyway the quotes in there
2949 # would cause problems or look ugly.
2950 # WARNING: Use '\'' to represent an apostrophe within the trap.
2951 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
2952 trap 'exit_status=$?
2953 # Save into config.log some information that might help in debugging.
2958 ## ---------------- ##
2959 ## Cache variables. ##
2960 ## ---------------- ##
2963 # The following way of writing the cache mishandles newlines in values,
2965 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
2966 eval ac_val=\$$ac_var
2970 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
2971 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
2974 _ | IFS | as_nl) ;; #(
2975 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
2976 *) { eval $ac_var=; unset $ac_var;} ;;
2981 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
2982 *${as_nl}ac_space=\ *)
2984 "s/'\''/'\''\\\\'\'''\''/g;
2985 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
2988 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
2996 ## ----------------- ##
2997 ## Output variables. ##
2998 ## ----------------- ##
3001 for ac_var in $ac_subst_vars
3003 eval ac_val=\$$ac_var
3005 *\'\''*) ac_val
=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
3007 $as_echo "$ac_var='\''$ac_val'\''"
3011 if test -n "$ac_subst_files"; then
3013 ## ------------------- ##
3014 ## File substitutions. ##
3015 ## ------------------- ##
3018 for ac_var
in $ac_subst_files
3020 eval ac_val
=\$
$ac_var
3022 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
3024 $as_echo "$ac_var='\''$ac_val'\''"
3029 if test -s confdefs.h; then
3039 test "$ac_signal" != 0 &&
3040 $as_echo "$as_me: caught signal $ac_signal"
3041 $as_echo "$as_me: exit $exit_status"
3043 rm -f core *.core core.conftest.* &&
3044 rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
3047 for ac_signal
in 1 2 13 15; do
3048 trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
3052 # confdefs.h avoids OS command line length limits that DEFS can exceed.
3053 rm -f -r conftest
* confdefs.h
3055 $as_echo "/* confdefs.h */" > confdefs.h
3057 # Predefined preprocessor variables.
3059 cat >>confdefs.h
<<_ACEOF
3060 #define PACKAGE_NAME "$PACKAGE_NAME"
3063 cat >>confdefs.h
<<_ACEOF
3064 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
3067 cat >>confdefs.h
<<_ACEOF
3068 #define PACKAGE_VERSION "$PACKAGE_VERSION"
3071 cat >>confdefs.h
<<_ACEOF
3072 #define PACKAGE_STRING "$PACKAGE_STRING"
3075 cat >>confdefs.h
<<_ACEOF
3076 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
3079 cat >>confdefs.h
<<_ACEOF
3080 #define PACKAGE_URL "$PACKAGE_URL"
3084 # Let the site file select an alternate cache file if it wants to.
3085 # Prefer an explicitly selected file to automatically selected ones.
3088 if test -n "$CONFIG_SITE"; then
3089 ac_site_file1
=$CONFIG_SITE
3090 elif test "x$prefix" != xNONE
; then
3091 ac_site_file1
=$prefix/share
/config.site
3092 ac_site_file2
=$prefix/etc
/config.site
3094 ac_site_file1
=$ac_default_prefix/share
/config.site
3095 ac_site_file2
=$ac_default_prefix/etc
/config.site
3097 for ac_site_file
in "$ac_site_file1" "$ac_site_file2"
3099 test "x$ac_site_file" = xNONE
&& continue
3100 if test /dev
/null
!= "$ac_site_file" && test -r "$ac_site_file"; then
3101 { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
3102 $as_echo "$as_me: loading site script $ac_site_file" >&6;}
3103 sed 's/^/| /' "$ac_site_file" >&5
3108 if test -r "$cache_file"; then
3109 # Some versions of bash will fail to source /dev/null (special files
3110 # actually), so we avoid doing that. DJGPP emulates it as a regular file.
3111 if test /dev
/null
!= "$cache_file" && test -f "$cache_file"; then
3112 { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
3113 $as_echo "$as_me: loading cache $cache_file" >&6;}
3115 [\\/]* | ?
:[\\/]* ) .
"$cache_file";;
3116 *) .
"./$cache_file";;
3120 { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
3121 $as_echo "$as_me: creating cache $cache_file" >&6;}
3125 as_fn_append ac_header_list
" stdlib.h"
3126 as_fn_append ac_header_list
" unistd.h"
3127 as_fn_append ac_header_list
" sys/param.h"
3128 as_fn_append ac_func_list
" readlinkat"
3129 gl_getopt_required
=GNU
3130 as_fn_append ac_header_list
" getopt.h"
3131 as_fn_append ac_header_list
" wchar.h"
3132 as_fn_append ac_header_list
" stdint.h"
3133 as_fn_append ac_header_list
" inttypes.h"
3134 as_fn_append ac_func_list
" lstat"
3135 as_fn_append ac_func_list
" alarm"
3136 as_fn_append ac_func_list
" pthread_sigmask"
3137 as_fn_append ac_func_list
" readlink"
3138 as_fn_append ac_header_list
" sys/socket.h"
3139 as_fn_append ac_func_list
" tzset"
3140 as_fn_append ac_func_list
" strtoimax"
3141 as_fn_append ac_func_list
" strtoumax"
3142 as_fn_append ac_func_list
" symlink"
3143 as_fn_append ac_header_list
" sys/stat.h"
3144 as_fn_append ac_header_list
" sys/time.h"
3145 as_fn_append ac_func_list
" localtime_r"
3146 # Check that the precious variables saved in the cache have kept the same
3148 ac_cache_corrupted
=false
3149 for ac_var
in $ac_precious_vars; do
3150 eval ac_old_set
=\
$ac_cv_env_${ac_var}_set
3151 eval ac_new_set
=\
$ac_env_${ac_var}_set
3152 eval ac_old_val
=\
$ac_cv_env_${ac_var}_value
3153 eval ac_new_val
=\
$ac_env_${ac_var}_value
3154 case $ac_old_set,$ac_new_set in
3156 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
3157 $as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
3158 ac_cache_corrupted
=: ;;
3160 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
3161 $as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
3162 ac_cache_corrupted
=: ;;
3165 if test "x$ac_old_val" != "x$ac_new_val"; then
3166 # differences in whitespace do not lead to failure.
3167 ac_old_val_w
=`echo x $ac_old_val`
3168 ac_new_val_w
=`echo x $ac_new_val`
3169 if test "$ac_old_val_w" != "$ac_new_val_w"; then
3170 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
3171 $as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
3172 ac_cache_corrupted
=:
3174 { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
3175 $as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
3176 eval $ac_var=\
$ac_old_val
3178 { $as_echo "$as_me:${as_lineno-$LINENO}: former value: \`$ac_old_val'" >&5
3179 $as_echo "$as_me: former value: \`$ac_old_val'" >&2;}
3180 { $as_echo "$as_me:${as_lineno-$LINENO}: current value: \`$ac_new_val'" >&5
3181 $as_echo "$as_me: current value: \`$ac_new_val'" >&2;}
3184 # Pass precious variables to config.status.
3185 if test "$ac_new_set" = set; then
3187 *\'*) ac_arg
=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
3188 *) ac_arg
=$ac_var=$ac_new_val ;;
3190 case " $ac_configure_args " in
3191 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
3192 *) as_fn_append ac_configure_args
" '$ac_arg'" ;;
3196 if $ac_cache_corrupted; then
3197 { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3198 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3199 { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
3200 $as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
3201 as_fn_error
"run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5
3203 ## -------------------- ##
3204 ## Main body of script. ##
3205 ## -------------------- ##
3208 ac_cpp
='$CPP $CPPFLAGS'
3209 ac_compile
='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3210 ac_link
='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3211 ac_compiler_gnu
=$ac_cv_c_compiler_gnu
3214 ac_config_headers
="$ac_config_headers src/config.h:src/config.in"
3218 for ac_dir
in build-aux
"$srcdir"/build-aux
; do
3219 for ac_t
in install-sh
install.sh shtool
; do
3220 if test -f "$ac_dir/$ac_t"; then
3222 ac_install_sh
="$ac_aux_dir/$ac_t -c"
3227 if test -z "$ac_aux_dir"; then
3228 as_fn_error
"cannot find install-sh, install.sh, or shtool in build-aux \"$srcdir\"/build-aux" "$LINENO" 5
3231 # These three variables are undocumented and unsupported,
3232 # and are intended to be withdrawn in a future Autoconf release.
3233 # They can cause serious problems if a builder's source tree is in a directory
3234 # whose full name contains unusual characters.
3235 ac_config_guess
="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
3236 ac_config_sub
="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
3237 ac_configure
="$SHELL $ac_aux_dir/configure" # Please don't use this var.
3240 am__api_version
='1.11'
3242 # Find a good install program. We prefer a C program (faster),
3243 # so one script is as good as another. But avoid the broken or
3244 # incompatible versions:
3245 # SysV /etc/install, /usr/sbin/install
3246 # SunOS /usr/etc/install
3247 # IRIX /sbin/install
3249 # AmigaOS /C/install, which installs bootblocks on floppy discs
3250 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
3251 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
3252 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
3253 # OS/2's system install, which has a completely different semantic
3254 # ./install, which can be erroneously created by make from ./install.sh.
3255 # Reject install programs that cannot install multiple files.
3256 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5
3257 $as_echo_n "checking for a BSD-compatible install... " >&6; }
3258 if test -z "$INSTALL"; then
3259 if test "${ac_cv_path_install+set}" = set; then :
3260 $as_echo_n "(cached) " >&6
3262 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
3266 test -z "$as_dir" && as_dir
=.
3267 # Account for people who put trailing slashes in PATH elements.
3268 case $as_dir/ in #((
3269 .
/ | .
// |
/[cC
]/* | \
3270 /etc
/* |
/usr
/sbin
/* |
/usr
/etc
/* |
/sbin
/* |
/usr
/afsws
/bin
/* | \
3271 ?
:[\\/]os2
[\\/]install[\\/]* | ?
:[\\/]OS2
[\\/]INSTALL
[\\/]* | \
3274 # OSF1 and SCO ODT 3.0 have their own names for install.
3275 # Don't use installbsd from OSF since it installs stuff as root
3277 for ac_prog
in ginstall scoinst
install; do
3278 for ac_exec_ext
in '' $ac_executable_extensions; do
3279 if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; }; then
3280 if test $ac_prog = install &&
3281 grep dspmsg
"$as_dir/$ac_prog$ac_exec_ext" >/dev
/null
2>&1; then
3282 # AIX install. It has an incompatible calling convention.
3284 elif test $ac_prog = install &&
3285 grep pwplus
"$as_dir/$ac_prog$ac_exec_ext" >/dev
/null
2>&1; then
3286 # program-specific install script used by HP pwplus--don't use.
3289 rm -rf conftest.one conftest.two conftest.dir
3290 echo one
> conftest.one
3291 echo two
> conftest.two
3293 if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two
"`pwd`/conftest.dir" &&
3294 test -s conftest.one
&& test -s conftest.two
&&
3295 test -s conftest.dir
/conftest.one
&&
3296 test -s conftest.dir
/conftest.two
3298 ac_cv_path_install
="$as_dir/$ac_prog$ac_exec_ext -c"
3311 rm -rf conftest.one conftest.two conftest.dir
3314 if test "${ac_cv_path_install+set}" = set; then
3315 INSTALL
=$ac_cv_path_install
3317 # As a last resort, use the slow shell script. Don't cache a
3318 # value for INSTALL within a source directory, because that will
3319 # break other packages using the cache if that directory is
3320 # removed, or if the value is a relative name.
3321 INSTALL
=$ac_install_sh
3324 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
3325 $as_echo "$INSTALL" >&6; }
3327 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
3328 # It thinks the first close brace ends the variable substitution.
3329 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM
='${INSTALL}'
3331 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT
='${INSTALL}'
3333 test -z "$INSTALL_DATA" && INSTALL_DATA
='${INSTALL} -m 644'
3335 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether build environment is sane" >&5
3336 $as_echo_n "checking whether build environment is sane... " >&6; }
3339 echo timestamp
> conftest.
file
3340 # Reject unsafe characters in $srcdir or the absolute working directory
3341 # name. Accept space and tab only in the latter.
3345 *[\\\"\
#\$\&\'\`$am_lf]*)
3346 as_fn_error
"unsafe absolute working directory name" "$LINENO" 5;;
3349 *[\\\"\
#\$\&\'\`$am_lf\ \ ]*)
3350 as_fn_error
"unsafe srcdir value: \`$srcdir'" "$LINENO" 5;;
3353 # Do `set' in a subshell so we don't clobber the current shell's
3354 # arguments. Must try -L first in case configure is actually a
3355 # symlink; some systems play weird games with the mod time of symlinks
3356 # (eg FreeBSD returns the mod time of the symlink's containing
3359 set X
`ls -Lt "$srcdir/configure" conftest.file 2> /dev/null`
3360 if test "$*" = "X"; then
3362 set X
`ls -t "$srcdir/configure" conftest.file`
3365 if test "$*" != "X $srcdir/configure conftest.file" \
3366 && test "$*" != "X conftest.file $srcdir/configure"; then
3368 # If neither matched, then we have a broken ls. This can happen
3369 # if, for instance, CONFIG_SHELL is bash and it inherits a
3370 # broken ls alias from the environment. This has actually
3371 # happened. Such a system could not be considered "sane".
3372 as_fn_error
"ls -t appears to fail. Make sure there is not a broken
3373 alias in your environment" "$LINENO" 5
3376 test "$2" = conftest.
file
3382 as_fn_error
"newly created file is older than distributed files!
3383 Check your system clock" "$LINENO" 5
3385 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3386 $as_echo "yes" >&6; }
3387 test "$program_prefix" != NONE
&&
3388 program_transform_name
="s&^&$program_prefix&;$program_transform_name"
3389 # Use a double $ so make ignores it.
3390 test "$program_suffix" != NONE
&&
3391 program_transform_name
="s&\$&$program_suffix&;$program_transform_name"
3392 # Double any \ or $.
3393 # By default was `s,x,x', remove it if useless.
3394 ac_script
='s/[\\$]/&&/g;s/;s,x,x,$//'
3395 program_transform_name
=`$as_echo "$program_transform_name" | sed "$ac_script"`
3397 # expand $ac_aux_dir to an absolute path
3398 am_aux_dir
=`cd $ac_aux_dir && pwd`
3400 if test x
"${MISSING+set}" != xset
; then
3403 MISSING
="\${SHELL} \"$am_aux_dir/missing\"" ;;
3405 MISSING
="\${SHELL} $am_aux_dir/missing" ;;
3408 # Use eval to expand $SHELL
3409 if eval "$MISSING --run true"; then
3410 am_missing_run
="$MISSING --run "
3413 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`missing' script is too old or missing" >&5
3414 $as_echo "$as_me: WARNING: \`missing' script is too old or missing" >&2;}
3417 if test x
"${install_sh}" != xset
; then
3420 install_sh
="\${SHELL} '$am_aux_dir/install-sh'" ;;
3422 install_sh
="\${SHELL} $am_aux_dir/install-sh"
3426 # Installed binaries are usually stripped using `strip' when the user
3427 # run `make install-strip'. However `strip' might not be the right
3428 # tool to use in cross-compilation environments, therefore Automake
3429 # will honor the `STRIP' environment variable to overrule this program.
3430 if test "$cross_compiling" != no
; then
3431 if test -n "$ac_tool_prefix"; then
3432 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
3433 set dummy
${ac_tool_prefix}strip
; ac_word
=$2
3434 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3435 $as_echo_n "checking for $ac_word... " >&6; }
3436 if test "${ac_cv_prog_STRIP+set}" = set; then :
3437 $as_echo_n "(cached) " >&6
3439 if test -n "$STRIP"; then
3440 ac_cv_prog_STRIP
="$STRIP" # Let the user override the test.
3442 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
3446 test -z "$as_dir" && as_dir
=.
3447 for ac_exec_ext
in '' $ac_executable_extensions; do
3448 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3449 ac_cv_prog_STRIP
="${ac_tool_prefix}strip"
3450 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3459 STRIP
=$ac_cv_prog_STRIP
3460 if test -n "$STRIP"; then
3461 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
3462 $as_echo "$STRIP" >&6; }
3464 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3465 $as_echo "no" >&6; }
3470 if test -z "$ac_cv_prog_STRIP"; then
3472 # Extract the first word of "strip", so it can be a program name with args.
3473 set dummy strip
; ac_word
=$2
3474 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3475 $as_echo_n "checking for $ac_word... " >&6; }
3476 if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then :
3477 $as_echo_n "(cached) " >&6
3479 if test -n "$ac_ct_STRIP"; then
3480 ac_cv_prog_ac_ct_STRIP
="$ac_ct_STRIP" # Let the user override the test.
3482 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
3486 test -z "$as_dir" && as_dir
=.
3487 for ac_exec_ext
in '' $ac_executable_extensions; do
3488 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3489 ac_cv_prog_ac_ct_STRIP
="strip"
3490 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3499 ac_ct_STRIP
=$ac_cv_prog_ac_ct_STRIP
3500 if test -n "$ac_ct_STRIP"; then
3501 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
3502 $as_echo "$ac_ct_STRIP" >&6; }
3504 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3505 $as_echo "no" >&6; }
3508 if test "x$ac_ct_STRIP" = x
; then
3511 case $cross_compiling:$ac_tool_warned in
3513 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3514 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3515 ac_tool_warned
=yes ;;
3520 STRIP
="$ac_cv_prog_STRIP"
3524 INSTALL_STRIP_PROGRAM
="\$(install_sh) -c -s"
3526 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a thread-safe mkdir -p" >&5
3527 $as_echo_n "checking for a thread-safe mkdir -p... " >&6; }
3528 if test -z "$MKDIR_P"; then
3529 if test "${ac_cv_path_mkdir+set}" = set; then :
3530 $as_echo_n "(cached) " >&6
3532 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
3533 for as_dir
in $PATH$PATH_SEPARATOR/opt
/sfw
/bin
3536 test -z "$as_dir" && as_dir
=.
3537 for ac_prog
in mkdir gmkdir
; do
3538 for ac_exec_ext
in '' $ac_executable_extensions; do
3539 { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; } ||
continue
3540 case `"$as_dir/$ac_prog$ac_exec_ext" --version 2>&1` in #(
3541 'mkdir (GNU coreutils) '* | \
3542 'mkdir (coreutils) '* | \
3543 'mkdir (fileutils) '4.1*)
3544 ac_cv_path_mkdir
=$as_dir/$ac_prog$ac_exec_ext
3554 test -d .
/--version && rmdir .
/--version
3555 if test "${ac_cv_path_mkdir+set}" = set; then
3556 MKDIR_P
="$ac_cv_path_mkdir -p"
3558 # As a last resort, use the slow shell script. Don't cache a
3559 # value for MKDIR_P within a source directory, because that will
3560 # break other packages using the cache if that directory is
3561 # removed, or if the value is a relative name.
3562 MKDIR_P
="$ac_install_sh -d"
3565 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MKDIR_P" >&5
3566 $as_echo "$MKDIR_P" >&6; }
3571 [\\/$
]* | ?
:[\\/]*) ;;
3572 */*) mkdir_p
="\$(top_builddir)/$mkdir_p" ;;
3575 for ac_prog
in gawk mawk nawk
awk
3577 # Extract the first word of "$ac_prog", so it can be a program name with args.
3578 set dummy
$ac_prog; ac_word
=$2
3579 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3580 $as_echo_n "checking for $ac_word... " >&6; }
3581 if test "${ac_cv_prog_AWK+set}" = set; then :
3582 $as_echo_n "(cached) " >&6
3584 if test -n "$AWK"; then
3585 ac_cv_prog_AWK
="$AWK" # Let the user override the test.
3587 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
3591 test -z "$as_dir" && as_dir
=.
3592 for ac_exec_ext
in '' $ac_executable_extensions; do
3593 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3594 ac_cv_prog_AWK
="$ac_prog"
3595 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3605 if test -n "$AWK"; then
3606 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
3607 $as_echo "$AWK" >&6; }
3609 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3610 $as_echo "no" >&6; }
3614 test -n "$AWK" && break
3617 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
3618 $as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
3620 ac_make
=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
3621 if { as_var
=ac_cv_prog_make_
${ac_make}_set; eval "test \"\${$as_var+set}\" = set"; }; then :
3622 $as_echo_n "(cached) " >&6
3624 cat >conftest.
make <<\_ACEOF
3627 @
echo '@@@%%%=$(MAKE)=@@@%%%'
3629 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
3630 case `${MAKE-make} -f conftest.make 2>/dev/null` in
3632 eval ac_cv_prog_make_
${ac_make}_set
=yes;;
3634 eval ac_cv_prog_make_
${ac_make}_set
=no
;;
3638 if eval test \
$ac_cv_prog_make_${ac_make}_set
= yes; then
3639 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3640 $as_echo "yes" >&6; }
3643 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3644 $as_echo "no" >&6; }
3645 SET_MAKE
="MAKE=${MAKE-make}"
3648 rm -rf .tst
2>/dev
/null
3649 mkdir .tst
2>/dev
/null
3650 if test -d .tst
; then
3655 rmdir .tst
2>/dev
/null
3657 if test "`cd $srcdir && pwd`" != "`pwd`"; then
3658 # Use -I$(srcdir) only when $(srcdir) != ., so that make's output
3659 # is not polluted with repeated "-I."
3660 am__isrc
=' -I$(srcdir)'
3661 # test to see if srcdir already configured
3662 if test -f $srcdir/config.status
; then
3663 as_fn_error
"source directory already configured; run \"make distclean\" there first" "$LINENO" 5
3667 # test whether we have cygpath
3668 if test -z "$CYGPATH_W"; then
3669 if (cygpath
--version) >/dev
/null
2>/dev
/null
; then
3670 CYGPATH_W
='cygpath -w'
3677 # Define the identity of the package.
3682 cat >>confdefs.h
<<_ACEOF
3683 #define PACKAGE "$PACKAGE"
3687 cat >>confdefs.h
<<_ACEOF
3688 #define VERSION "$VERSION"
3691 # Some tools Automake needs.
3693 ACLOCAL
=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
3696 AUTOCONF
=${AUTOCONF-"${am_missing_run}autoconf"}
3699 AUTOMAKE
=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
3702 AUTOHEADER
=${AUTOHEADER-"${am_missing_run}autoheader"}
3705 MAKEINFO
=${MAKEINFO-"${am_missing_run}makeinfo"}
3707 # We need awk for the "check" target. The system "awk" is bad on
3709 # Always define AMTAR for backward compatibility.
3711 AMTAR
=${AMTAR-"${am_missing_run}tar"}
3713 am__tar
='${AMTAR} chof - "$$tardir"'; am__untar
='${AMTAR} xf -'
3722 lispdir
='${datadir}/emacs/${version}/lisp'
3723 locallisppath
='${datadir}/emacs/${version}/site-lisp:'\
3724 '${datadir}/emacs/site-lisp'
3725 lisppath
='${locallisppath}:${lispdir}:${datadir}/emacs/${version}/leim'
3726 etcdir
='${datadir}/emacs/${version}/etc'
3727 archlibdir
='${libexecdir}/emacs/${version}/${configuration}'
3728 docdir
='${datadir}/emacs/${version}/etc'
3729 gamedir
='${localstatedir}/games/emacs'
3734 # Check whether --with-pop was given.
3735 if test "${with_pop+set}" = set; then :
3741 if test "$with_pop" = yes; then
3742 $as_echo "#define MAIL_USE_POP 1" >>confdefs.h
3747 # Check whether --with-kerberos was given.
3748 if test "${with_kerberos+set}" = set; then :
3749 withval
=$with_kerberos;
3754 if test "$with_kerberos" != no
; then
3755 $as_echo "#define KERBEROS 1" >>confdefs.h
3760 # Check whether --with-kerberos5 was given.
3761 if test "${with_kerberos5+set}" = set; then :
3762 withval
=$with_kerberos5;
3767 if test "${with_kerberos5}" != no
; then
3768 if test "${with_kerberos}" = no
; then
3770 $as_echo "#define KERBEROS 1" >>confdefs.h
3774 $as_echo "#define KERBEROS5 1" >>confdefs.h
3779 # Check whether --with-hesiod was given.
3780 if test "${with_hesiod+set}" = set; then :
3781 withval
=$with_hesiod;
3786 if test "$with_hesiod" != no
; then
3788 $as_echo "#define HESIOD 1" >>confdefs.h
3793 # Check whether --with-mmdf was given.
3794 if test "${with_mmdf+set}" = set; then :
3800 if test "$with_mmdf" != no
; then
3802 $as_echo "#define MAIL_USE_MMDF 1" >>confdefs.h
3807 # Check whether --with-mail-unlink was given.
3808 if test "${with_mail_unlink+set}" = set; then :
3809 withval
=$with_mail_unlink;
3814 if test "$with_mail_unlink" != no
; then
3816 $as_echo "#define MAIL_UNLINK_SPOOL 1" >>confdefs.h
3821 # Check whether --with-mailhost was given.
3822 if test "${with_mailhost+set}" = set; then :
3823 withval
=$with_mailhost;
3824 cat >>confdefs.h
<<_ACEOF
3825 #define MAILHOST "$withval"
3832 # Check whether --with-sound was given.
3833 if test "${with_sound+set}" = set; then :
3834 withval
=$with_sound;
3841 # Check whether --with-sync-input was given.
3842 if test "${with_sync_input+set}" = set; then :
3843 withval
=$with_sync_input;
3848 if test "$with_sync_input" = yes; then
3850 $as_echo "#define SYNC_INPUT 1" >>confdefs.h
3855 # Check whether --with-x-toolkit was given.
3856 if test "${with_x_toolkit+set}" = set; then :
3857 withval
=$with_x_toolkit; case "${withval}" in
3858 y | ye |
yes ) val
=gtk
;;
3860 l | lu | luc | luci | lucid
) val
=lucid
;;
3861 a |
at | ath | athe | athen | athena
) val
=athena
;;
3862 m | mo | mot | moti | motif
) val
=motif
;;
3863 g | gt | gtk
) val
=gtk
;;
3866 as_fn_error
"\`--with-x-toolkit=$withval' is invalid;
3867 this option's value should be \`yes', \`no', \`lucid', \`athena', \`motif', \`gtk' or
3868 \`gtk3'. \`yes' and \`gtk' are synonyms. \`athena' and \`lucid' are synonyms." "$LINENO" 5
3877 # Check whether --with-wide-int was given.
3878 if test "${with_wide_int+set}" = set; then :
3879 withval
=$with_wide_int;
3884 if test "$with_wide_int" = yes; then
3886 $as_echo "#define WIDE_EMACS_INT 1" >>confdefs.h
3891 # Check whether --with-xpm was given.
3892 if test "${with_xpm+set}" = set; then :
3899 # Check whether --with-jpeg was given.
3900 if test "${with_jpeg+set}" = set; then :
3907 # Check whether --with-tiff was given.
3908 if test "${with_tiff+set}" = set; then :
3915 # Check whether --with-gif was given.
3916 if test "${with_gif+set}" = set; then :
3923 # Check whether --with-png was given.
3924 if test "${with_png+set}" = set; then :
3931 # Check whether --with-rsvg was given.
3932 if test "${with_rsvg+set}" = set; then :
3939 # Check whether --with-xml2 was given.
3940 if test "${with_xml2+set}" = set; then :
3947 # Check whether --with-imagemagick was given.
3948 if test "${with_imagemagick+set}" = set; then :
3949 withval
=$with_imagemagick;
3951 with_imagemagick
=yes
3956 # Check whether --with-xft was given.
3957 if test "${with_xft+set}" = set; then :
3964 # Check whether --with-libotf was given.
3965 if test "${with_libotf+set}" = set; then :
3966 withval
=$with_libotf;
3972 # Check whether --with-m17n-flt was given.
3973 if test "${with_m17n_flt+set}" = set; then :
3974 withval
=$with_m17n_flt;
3981 # Check whether --with-toolkit-scroll-bars was given.
3982 if test "${with_toolkit_scroll_bars+set}" = set; then :
3983 withval
=$with_toolkit_scroll_bars;
3985 with_toolkit_scroll_bars
=yes
3989 # Check whether --with-xaw3d was given.
3990 if test "${with_xaw3d+set}" = set; then :
3991 withval
=$with_xaw3d;
3997 # Check whether --with-xim was given.
3998 if test "${with_xim+set}" = set; then :
4005 # Check whether --with-ns was given.
4006 if test "${with_ns+set}" = set; then :
4014 # Check whether --with-gpm was given.
4015 if test "${with_gpm+set}" = set; then :
4022 # Check whether --with-dbus was given.
4023 if test "${with_dbus+set}" = set; then :
4030 # Check whether --with-gconf was given.
4031 if test "${with_gconf+set}" = set; then :
4032 withval
=$with_gconf;
4038 # Check whether --with-gsettings was given.
4039 if test "${with_gsettings+set}" = set; then :
4040 withval
=$with_gsettings;
4046 # Check whether --with-selinux was given.
4047 if test "${with_selinux+set}" = set; then :
4048 withval
=$with_selinux;
4054 # Check whether --with-gnutls was given.
4055 if test "${with_gnutls+set}" = set; then :
4056 withval
=$with_gnutls;
4062 ## For the times when you want to build Emacs but don't have
4063 ## a suitable makeinfo, and can live without the manuals.
4065 # Check whether --with-makeinfo was given.
4066 if test "${with_makeinfo+set}" = set; then :
4067 withval
=$with_makeinfo;
4073 ## This is an option because I do not know if all info/man support
4074 ## compressed files, nor how to test if they do so.
4076 # Check whether --with-compress-info was given.
4077 if test "${with_compress_info+set}" = set; then :
4078 withval
=$with_compress_info;
4080 with_compress_info
=yes
4083 if test $with_compress_info = yes; then
4091 # Check whether --with-pkg-config-prog was given.
4092 if test "${with_pkg_config_prog+set}" = set; then :
4093 withval
=$with_pkg_config_prog;
4096 if test "X${with_pkg_config_prog}" != X
; then
4097 if test "${with_pkg_config_prog}" != yes; then
4098 PKG_CONFIG
="${with_pkg_config_prog}"
4104 # Check whether --with-crt-dir was given.
4105 if test "${with_crt_dir+set}" = set; then :
4106 withval
=$with_crt_dir;
4109 CRT_DIR
="${with_crt_dir}"
4112 # Check whether --with-gameuser was given.
4113 if test "${with_gameuser+set}" = set; then :
4114 withval
=$with_gameuser;
4117 test "X${with_gameuser}" != X
&& test "${with_gameuser}" != yes \
4118 && gameuser
="${with_gameuser}"
4119 test "X$gameuser" = X
&& gameuser
=games
4122 # Check whether --with-gnustep-conf was given.
4123 if test "${with_gnustep_conf+set}" = set; then :
4124 withval
=$with_gnustep_conf;
4127 test "X${with_gnustep_conf}" != X
&& test "${with_gnustep_conf}" != yes && \
4128 GNUSTEP_CONFIG_FILE
="${with_gnustep_conf}"
4129 test "X$GNUSTEP_CONFIG_FILE" = "X" && \
4130 GNUSTEP_CONFIG_FILE
=/etc
/GNUstep
/GNUstep.conf
4132 # Check whether --enable-ns-self-contained was given.
4133 if test "${enable_ns_self_contained+set}" = set; then :
4134 enableval
=$enable_ns_self_contained; EN_NS_SELF_CONTAINED
=$enableval
4136 EN_NS_SELF_CONTAINED
=yes
4140 # Check whether --enable-asserts was given.
4141 if test "${enable_asserts+set}" = set; then :
4142 enableval
=$enable_asserts; USE_XASSERTS
=$enableval
4148 # Check whether --enable-maintainer-mode was given.
4149 if test "${enable_maintainer_mode+set}" = set; then :
4150 enableval
=$enable_maintainer_mode; USE_MAINTAINER_MODE
=$enableval
4152 USE_MAINTAINER_MODE
=yes
4155 if test $USE_MAINTAINER_MODE = yes; then
4162 # Check whether --enable-locallisppath was given.
4163 if test "${enable_locallisppath+set}" = set; then :
4164 enableval
=$enable_locallisppath; if test "${enableval}" = "no"; then
4166 elif test "${enableval}" != "yes"; then
4167 locallisppath
=${enableval}
4172 # Check whether --enable-checking was given.
4173 if test "${enable_checking+set}" = set; then :
4174 enableval
=$enable_checking; ac_checking_flags
="${enableval}"
4177 IFS
="${IFS= }"; ac_save_IFS
="$IFS"; IFS
="$IFS,"
4178 for check
in $ac_checking_flags
4181 # these set all the flags to specific states
4182 yes) ac_enable_checking
=1 ;;
4183 no
) ac_enable_checking
= ;
4184 ac_gc_check_stringbytes
= ;
4185 ac_gc_check_string_overrun
= ;
4186 ac_gc_check_string_free_list
= ;
4187 ac_xmalloc_overrun
= ;
4188 ac_gc_check_cons_list
= ;;
4189 all
) ac_enable_checking
=1 ;
4190 ac_gc_check_stringbytes
=1 ;
4191 ac_gc_check_string_overrun
=1 ;
4192 ac_gc_check_string_free_list
=1 ;
4193 ac_xmalloc_overrun
=1 ;
4194 ac_gc_check_cons_list
=1 ;;
4195 # these enable particular checks
4196 stringbytes
) ac_gc_check_stringbytes
=1 ;;
4197 stringoverrun
) ac_gc_check_string_overrun
=1 ;;
4198 stringfreelist
) ac_gc_check_string_free_list
=1 ;;
4199 xmallocoverrun
) ac_xmalloc_overrun
=1 ;;
4200 conslist
) ac_gc_check_cons_list
=1 ;;
4201 *) as_fn_error
"unknown check category $check" "$LINENO" 5 ;;
4206 if test x
$ac_enable_checking != x
; then
4208 $as_echo "#define ENABLE_CHECKING 1" >>confdefs.h
4211 if test x
$ac_gc_check_stringbytes != x
; then
4213 $as_echo "#define GC_CHECK_STRING_BYTES 1" >>confdefs.h
4216 if test x
$ac_gc_check_string_overrun != x
; then
4218 $as_echo "#define GC_CHECK_STRING_OVERRUN 1" >>confdefs.h
4221 if test x
$ac_gc_check_string_free_list != x
; then
4223 $as_echo "#define GC_CHECK_STRING_FREE_LIST 1" >>confdefs.h
4226 if test x
$ac_xmalloc_overrun != x
; then
4228 $as_echo "#define XMALLOC_OVERRUN_CHECK 1" >>confdefs.h
4231 if test x
$ac_gc_check_cons_list != x
; then
4233 $as_echo "#define GC_CHECK_CONS_LIST 1" >>confdefs.h
4237 # Check whether --enable-use-lisp-union-type was given.
4238 if test "${enable_use_lisp_union_type+set}" = set; then :
4239 enableval
=$enable_use_lisp_union_type; if test "${enableval}" != "no"; then
4241 $as_echo "#define USE_LISP_UNION_TYPE 1" >>confdefs.h
4248 # Check whether --enable-profiling was given.
4249 if test "${enable_profiling+set}" = set; then :
4250 enableval
=$enable_profiling; ac_enable_profiling
="${enableval}"
4253 if test x
$ac_enable_profiling != x
; then
4254 PROFILING_CFLAGS
="-DPROFILING=1 -pg"
4260 # Check whether --enable-autodepend was given.
4261 if test "${enable_autodepend+set}" = set; then :
4262 enableval
=$enable_autodepend; ac_enable_autodepend
="${enableval}"
4264 ac_enable_autodepend
=yes
4268 #### Make srcdir absolute, if it isn't already. It's important to
4269 #### avoid running the path through pwd unnecessarily, since pwd can
4270 #### give you automounter prefixes, which can go away. We do all this
4271 #### so Emacs can find its files when run uninstalled.
4272 ## Make sure CDPATH doesn't affect cd (in case PWD is relative).
4277 ## We may be able to use the $PWD environment variable to make this
4278 ## absolute. But sometimes PWD is inaccurate.
4279 ## Note: we used to use ${PWD} at the end instead of `pwd`,
4280 ## but that tested only for a well-formed and valid PWD,
4281 ## it did not object when PWD was well-formed and valid but just wrong.
4282 if test ".${PWD}" != "." && test ".`(cd ${PWD} ; sh -c pwd)`" = ".`pwd`" ;
4286 srcdir
="`(cd ${srcdir}; pwd)`"
4289 * ) srcdir
="`(cd ${srcdir}; pwd)`" ;;
4292 #### Given the configuration name, set machfile and opsysfile to the
4293 #### names of the m/*.h and s/*.h files we should use.
4295 ### Canonicalize the configuration name.
4297 # Make sure we can run config.sub.
4298 $SHELL "$ac_aux_dir/config.sub" sun4
>/dev
/null
2>&1 ||
4299 as_fn_error
"cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5
4301 { $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
4302 $as_echo_n "checking build system type... " >&6; }
4303 if test "${ac_cv_build+set}" = set; then :
4304 $as_echo_n "(cached) " >&6
4306 ac_build_alias
=$build_alias
4307 test "x$ac_build_alias" = x
&&
4308 ac_build_alias
=`$SHELL "$ac_aux_dir/config.guess"`
4309 test "x$ac_build_alias" = x
&&
4310 as_fn_error
"cannot guess build type; you must specify one" "$LINENO" 5
4311 ac_cv_build
=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
4312 as_fn_error
"$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5
4315 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
4316 $as_echo "$ac_cv_build" >&6; }
4317 case $ac_cv_build in
4319 *) as_fn_error
"invalid value of canonical build" "$LINENO" 5;;
4322 ac_save_IFS
=$IFS; IFS
='-'
4328 # Remember, the first character of IFS is used to create $*,
4329 # except with old shells:
4332 case $build_os in *\
*) build_os
=`echo "$build_os" | sed 's/ /-/g'`;; esac
4335 { $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
4336 $as_echo_n "checking host system type... " >&6; }
4337 if test "${ac_cv_host+set}" = set; then :
4338 $as_echo_n "(cached) " >&6
4340 if test "x$host_alias" = x
; then
4341 ac_cv_host
=$ac_cv_build
4343 ac_cv_host
=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
4344 as_fn_error
"$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5
4348 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
4349 $as_echo "$ac_cv_host" >&6; }
4352 *) as_fn_error
"invalid value of canonical host" "$LINENO" 5;;
4355 ac_save_IFS
=$IFS; IFS
='-'
4361 # Remember, the first character of IFS is used to create $*,
4362 # except with old shells:
4365 case $host_os in *\
*) host_os
=`echo "$host_os" | sed 's/ /-/g'`;; esac
4369 configuration
=${host_alias-${build_alias-$host}}
4373 ### If you add support for a new configuration, add code to this
4374 ### switch statement to recognize your configuration name and select
4375 ### the appropriate operating system and machine description files.
4377 ### You would hope that you could choose an m/*.h file pretty much
4378 ### based on the machine portion of the configuration name, and an s/*.h
4379 ### file based on the operating system portion. However, it turns out
4380 ### that each m/*.h file is pretty manufacturer-specific - for
4381 ### example mips.h is MIPS
4382 ### So we basically have to have a special case for each
4383 ### configuration name.
4385 ### As far as handling version numbers on operating systems is
4386 ### concerned, make sure things will fail in a fixable way. If
4387 ### /etc/MACHINES doesn't say anything about version numbers, be
4388 ### prepared to handle anything reasonably. If version numbers
4389 ### matter, be sure /etc/MACHINES says something about it.
4391 machine
='' opsys
='' unported
=no
4392 case "${canonical}" in
4394 ## GNU/Linux and similar ports
4397 case ${canonical} in
4398 alpha
*) machine
=alpha
;;
4399 s390-
*) machine
=ibms390
;;
4400 s390x-
*) machine
=ibms390x
;;
4401 powerpc
*) machine
=macppc
;;
4402 sparc
*) machine
=sparc
;;
4403 ia64
*) machine
=ia64
;;
4404 m68k
*) machine
=m68k
;;
4405 x86_64
*) machine
=amdx86-64
;;
4412 case "${canonical}" in
4413 alpha
*) machine
=alpha
;;
4414 amd64-
*|x86_64-
*) machine
=amdx86-64
;;
4415 ia64-
*) machine
=ia64
;;
4416 i
[3456]86-*) machine
=intel386
;;
4417 powerpc-
*) machine
=macppc
;;
4418 sparc-
*) machine
=sparc
;;
4419 sparc64-
*) machine
=sparc
;;
4423 ## FreeBSD kernel + glibc based userland
4426 case "${canonical}" in
4427 alpha
*) machine
=alpha
;;
4428 amd64-
*|x86_64-
*) machine
=amdx86-64
;;
4429 ia64-
*) machine
=ia64
;;
4430 i
[3456]86-*) machine
=intel386
;;
4431 powerpc-
*) machine
=macppc
;;
4432 sparc-
*) machine
=sparc
;;
4433 sparc64-
*) machine
=sparc
;;
4440 case "${canonical}" in
4441 alpha
*) machine
=alpha
;;
4442 x86_64-
*) machine
=amdx86-64
;;
4443 i
[3456]86-*) machine
=intel386
;;
4444 m68k-
*) machine
=m68k
;;
4445 powerpc-
*) machine
=macppc
;;
4446 sparc
*-) machine
=sparc
;;
4447 vax-
*) machine
=vax
;;
4454 case "${canonical}" in
4455 alpha
*) machine
=alpha
;;
4456 x86_64-
*) machine
=amdx86-64
;;
4457 i386-
*) machine
=intel386
;;
4458 powerpc-
*) machine
=macppc
;;
4459 sparc
*) machine
=sparc
;;
4460 vax-
*) machine
=vax
;;
4464 ## Apple Darwin / Mac OS X
4466 case "${canonical}" in
4467 i
[3456]86-* ) machine
=intel386
;;
4468 powerpc-
* ) machine
=macppc
;;
4469 x86_64-
* ) machine
=amdx86-64
;;
4473 # Define CPP as follows to make autoconf work correctly.
4474 CPP
="${CC-cc} -E -no-cpp-precomp"
4475 # Use fink packages if available.
4476 if test -d /sw
/include
&& test -d /sw
/lib
; then
4477 GCC_TEST_OPTIONS
="-I/sw/include -L/sw/lib"
4478 CPP
="${CPP} ${GCC_TEST_OPTIONS}"
4479 NON_GCC_TEST_OPTIONS
=${GCC_TEST_OPTIONS}
4483 ## HP 9000 series 700 and 800, running HP/UX
4484 hppa
*-hp-hpux10.2
* )
4487 hppa
*-hp-hpux1[1-9]* )
4489 CFLAGS
="-D_INCLUDE__STDC_A1_SOURCE $CFLAGS"
4493 rs6000-ibm-aix4.
[23]* )
4494 machine
=ibmrs6000 opsys
=aix4-2
4496 powerpc-ibm-aix4.
[23]* )
4497 machine
=ibmrs6000 opsys
=aix4-2
4499 rs6000-ibm-aix
[56]* )
4500 machine
=ibmrs6000 opsys
=aix4-2
4502 powerpc-ibm-aix
[56]* )
4503 machine
=ibmrs6000 opsys
=aix4-2
4506 ## Silicon Graphics machines
4510 # Without defining _LANGUAGE_C, things get masked out in the headers
4511 # so that, for instance, grepping for `free' in stdlib.h fails and
4512 # AC_HEADER_STD_C fails. (MIPSPro 7.2.1.2m compilers, Irix 6.5.3m).
4513 NON_GNU_CPP
="/lib/cpp -D_LANGUAGE_C"
4514 NON_GCC_TEST_OPTIONS
="-D_LANGUAGE_C"
4519 | i
[3456]86-*-solaris2* | i
[3456]86-*-sunos5* \
4520 | x86_64-
*-solaris2* | x86_64-
*-sunos5*)
4521 case "${canonical}" in
4522 i
[3456]86-*-* ) machine
=intel386
;;
4523 amd64-
*-*|x86_64-
*-*) machine
=amdx86-64
;;
4524 sparc
* ) machine
=sparc
;;
4527 case "${canonical}" in
4528 *-sunos5.6
* |
*-solaris2.6
* )
4530 NON_GNU_CPP
=/usr
/ccs
/lib
/cpp
4533 *-sunos5.
[7-9]* |
*-solaris2.
[7-9]* )
4535 emacs_check_sunpro_c
=yes
4536 NON_GNU_CPP
=/usr
/ccs
/lib
/cpp
4538 *-sunos5* |
*-solaris* )
4540 emacs_check_sunpro_c
=yes
4541 NON_GNU_CPP
=/usr
/ccs
/lib
/cpp
4544 ## Watch out for a compiler that we know will not work.
4545 case "${canonical}" in
4546 *-solaris* |
*-sunos5* )
4547 if [ "x$CC" = x
/usr
/ucb
/cc
]; then
4548 ## /usr/ucb/cc doesn't work;
4549 ## we should find some other compiler that does work.
4557 ## Intel 386 machines where we don't care about the manufacturer.
4560 case "${canonical}" in
4561 *-cygwin ) opsys
=cygwin
;;
4562 *-darwin* ) opsys
=darwin
4563 CPP
="${CC-cc} -E -no-cpp-precomp"
4565 *-sysv4.2uw
* ) opsys
=unixware
; NON_GNU_CPP
=/lib
/cpp
;;
4566 *-sysv5uw* ) opsys
=unixware
; NON_GNU_CPP
=/lib
/cpp
;;
4567 *-sysv5OpenUNIX* ) opsys
=unixware
; NON_GNU_CPP
=/lib
/cpp
;;
4568 ## Otherwise, we'll fall through to the generic opsys code at the bottom.
4577 ### If the code above didn't choose an operating system, just choose
4578 ### an operating system based on the configuration name. You really
4579 ### only want to use this when you have no idea what the right
4580 ### operating system is; if you know what operating systems a machine
4581 ### runs, it's cleaner to make it explicit in the case statement
4583 if test x
"${opsys}" = x
; then
4584 case "${canonical}" in
4585 *-gnu* ) opsys
=gnu
;;
4594 if test $unported = yes; then
4595 as_fn_error
"Emacs hasn't been ported to \`${canonical}' systems.
4596 Check \`etc/MACHINES' for recognized configuration names." "$LINENO" 5
4599 if test -n "$machine"; then
4600 machfile
="m/${machine}.h"
4604 opsysfile
="s/${opsys}.h"
4607 #### Choose a compiler.
4608 test -n "$CC" && cc_specified
=yes
4610 # Save the value of CFLAGS that the user specified.
4611 SPECIFIED_CFLAGS
="$CFLAGS"
4614 ac_cpp
='$CPP $CPPFLAGS'
4615 ac_compile
='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4616 ac_link
='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4617 ac_compiler_gnu
=$ac_cv_c_compiler_gnu
4618 if test -n "$ac_tool_prefix"; then
4619 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
4620 set dummy
${ac_tool_prefix}gcc
; ac_word
=$2
4621 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4622 $as_echo_n "checking for $ac_word... " >&6; }
4623 if test "${ac_cv_prog_CC+set}" = set; then :
4624 $as_echo_n "(cached) " >&6
4626 if test -n "$CC"; then
4627 ac_cv_prog_CC
="$CC" # Let the user override the test.
4629 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
4633 test -z "$as_dir" && as_dir
=.
4634 for ac_exec_ext
in '' $ac_executable_extensions; do
4635 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4636 ac_cv_prog_CC
="${ac_tool_prefix}gcc"
4637 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4647 if test -n "$CC"; then
4648 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
4649 $as_echo "$CC" >&6; }
4651 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4652 $as_echo "no" >&6; }
4657 if test -z "$ac_cv_prog_CC"; then
4659 # Extract the first word of "gcc", so it can be a program name with args.
4660 set dummy gcc
; ac_word
=$2
4661 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4662 $as_echo_n "checking for $ac_word... " >&6; }
4663 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then :
4664 $as_echo_n "(cached) " >&6
4666 if test -n "$ac_ct_CC"; then
4667 ac_cv_prog_ac_ct_CC
="$ac_ct_CC" # Let the user override the test.
4669 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
4673 test -z "$as_dir" && as_dir
=.
4674 for ac_exec_ext
in '' $ac_executable_extensions; do
4675 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4676 ac_cv_prog_ac_ct_CC
="gcc"
4677 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4686 ac_ct_CC
=$ac_cv_prog_ac_ct_CC
4687 if test -n "$ac_ct_CC"; then
4688 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
4689 $as_echo "$ac_ct_CC" >&6; }
4691 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4692 $as_echo "no" >&6; }
4695 if test "x$ac_ct_CC" = x
; then
4698 case $cross_compiling:$ac_tool_warned in
4700 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4701 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4702 ac_tool_warned
=yes ;;
4710 if test -z "$CC"; then
4711 if test -n "$ac_tool_prefix"; then
4712 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
4713 set dummy
${ac_tool_prefix}cc
; ac_word
=$2
4714 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4715 $as_echo_n "checking for $ac_word... " >&6; }
4716 if test "${ac_cv_prog_CC+set}" = set; then :
4717 $as_echo_n "(cached) " >&6
4719 if test -n "$CC"; then
4720 ac_cv_prog_CC
="$CC" # Let the user override the test.
4722 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
4726 test -z "$as_dir" && as_dir
=.
4727 for ac_exec_ext
in '' $ac_executable_extensions; do
4728 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4729 ac_cv_prog_CC
="${ac_tool_prefix}cc"
4730 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4740 if test -n "$CC"; then
4741 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
4742 $as_echo "$CC" >&6; }
4744 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4745 $as_echo "no" >&6; }
4751 if test -z "$CC"; then
4752 # Extract the first word of "cc", so it can be a program name with args.
4753 set dummy cc
; ac_word
=$2
4754 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4755 $as_echo_n "checking for $ac_word... " >&6; }
4756 if test "${ac_cv_prog_CC+set}" = set; then :
4757 $as_echo_n "(cached) " >&6
4759 if test -n "$CC"; then
4760 ac_cv_prog_CC
="$CC" # Let the user override the test.
4763 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
4767 test -z "$as_dir" && as_dir
=.
4768 for ac_exec_ext
in '' $ac_executable_extensions; do
4769 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4770 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
4771 ac_prog_rejected
=yes
4775 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4782 if test $ac_prog_rejected = yes; then
4783 # We found a bogon in the path, so make sure we never use it.
4784 set dummy
$ac_cv_prog_CC
4786 if test $# != 0; then
4787 # We chose a different compiler from the bogus one.
4788 # However, it has the same basename, so the bogon will be chosen
4789 # first if we set CC to just the basename; use the full file name.
4791 ac_cv_prog_CC
="$as_dir/$ac_word${1+' '}$@"
4797 if test -n "$CC"; then
4798 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
4799 $as_echo "$CC" >&6; }
4801 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4802 $as_echo "no" >&6; }
4807 if test -z "$CC"; then
4808 if test -n "$ac_tool_prefix"; then
4809 for ac_prog
in cl.exe
4811 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
4812 set dummy
$ac_tool_prefix$ac_prog; ac_word
=$2
4813 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4814 $as_echo_n "checking for $ac_word... " >&6; }
4815 if test "${ac_cv_prog_CC+set}" = set; then :
4816 $as_echo_n "(cached) " >&6
4818 if test -n "$CC"; then
4819 ac_cv_prog_CC
="$CC" # Let the user override the test.
4821 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
4825 test -z "$as_dir" && as_dir
=.
4826 for ac_exec_ext
in '' $ac_executable_extensions; do
4827 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4828 ac_cv_prog_CC
="$ac_tool_prefix$ac_prog"
4829 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4839 if test -n "$CC"; then
4840 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
4841 $as_echo "$CC" >&6; }
4843 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4844 $as_echo "no" >&6; }
4848 test -n "$CC" && break
4851 if test -z "$CC"; then
4853 for ac_prog
in cl.exe
4855 # Extract the first word of "$ac_prog", so it can be a program name with args.
4856 set dummy
$ac_prog; ac_word
=$2
4857 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4858 $as_echo_n "checking for $ac_word... " >&6; }
4859 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then :
4860 $as_echo_n "(cached) " >&6
4862 if test -n "$ac_ct_CC"; then
4863 ac_cv_prog_ac_ct_CC
="$ac_ct_CC" # Let the user override the test.
4865 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
4869 test -z "$as_dir" && as_dir
=.
4870 for ac_exec_ext
in '' $ac_executable_extensions; do
4871 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4872 ac_cv_prog_ac_ct_CC
="$ac_prog"
4873 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4882 ac_ct_CC
=$ac_cv_prog_ac_ct_CC
4883 if test -n "$ac_ct_CC"; then
4884 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
4885 $as_echo "$ac_ct_CC" >&6; }
4887 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4888 $as_echo "no" >&6; }
4892 test -n "$ac_ct_CC" && break
4895 if test "x$ac_ct_CC" = x
; then
4898 case $cross_compiling:$ac_tool_warned in
4900 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4901 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4902 ac_tool_warned
=yes ;;
4911 test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4912 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4913 as_fn_error
"no acceptable C compiler found in \$PATH
4914 See \`config.log' for more details." "$LINENO" 5; }
4916 # Provide some information about the compiler.
4917 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
4920 for ac_option
in --version -v -V -qversion; do
4921 { { ac_try
="$ac_compiler $ac_option >&5"
4923 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
4924 *) ac_try_echo=$ac_try;;
4926 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4927 $as_echo "$ac_try_echo"; } >&5
4928 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
4930 if test -s conftest.err; then
4932 ... rest of stderr output deleted ...
4933 10q' conftest.err >conftest.er1
4934 cat conftest.er1 >&5
4936 rm -f conftest.er1 conftest.err
4937 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4938 test $ac_status = 0; }
4941 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4942 /* end confdefs.h. */
4952 ac_clean_files_save=$ac_clean_files
4953 ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
4954 # Try to create an executable without -o first, disregard a.out.
4955 # It will help us diagnose broken compilers, and finding out an intuition
4957 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
4958 $as_echo_n "checking whether the C compiler works... " >&6; }
4959 ac_link_default=`$as_echo "$ac_link" |
sed 's/ -o *conftest[^ ]*//'`
4961 # The possible output files:
4962 ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
4965 for ac_file in $ac_files
4968 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
4969 * ) ac_rmfiles="$ac_rmfiles $ac_file";;
4974 if { { ac_try="$ac_link_default"
4976 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
4977 *) ac_try_echo
=$ac_try;;
4979 eval ac_try_echo
="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4980 $as_echo "$ac_try_echo"; } >&5
4981 (eval "$ac_link_default") 2>&5
4983 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4984 test $ac_status = 0; }; then :
4985 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
4986 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
4987 # in a Makefile. We should not override ac_cv_exeext if it was cached,
4988 # so that the user can short-circuit this test for compilers unknown to
4990 for ac_file
in $ac_files ''
4992 test -f "$ac_file" ||
continue
4994 *.
$ac_ext |
*.xcoff |
*.tds |
*.d |
*.pdb |
*.xSYM |
*.bb |
*.bbg |
*.map |
*.inf |
*.dSYM |
*.o |
*.obj
)
4997 # We found the default executable, but exeext='' is most
5001 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no
;
5003 ac_cv_exeext
=`expr "$ac_file" : '[^.]*\(\..*\)'`
5005 # We set ac_cv_exeext here because the later test for it is not
5006 # safe: cross compilers may not add the suffix if given an `-o'
5007 # argument, so we may need to know it at that point already.
5008 # Even if this section looks crufty: it has the advantage of
5015 test "$ac_cv_exeext" = no
&& ac_cv_exeext
=
5020 if test -z "$ac_file"; then :
5021 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5022 $as_echo "no" >&6; }
5023 $as_echo "$as_me: failed program was:" >&5
5024 sed 's/^/| /' conftest.
$ac_ext >&5
5026 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
5027 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
5028 { as_fn_set_status
77
5029 as_fn_error
"C compiler cannot create executables
5030 See \`config.log' for more details." "$LINENO" 5; }; }
5032 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5033 $as_echo "yes" >&6; }
5035 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
5036 $as_echo_n "checking for C compiler default output file name... " >&6; }
5037 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
5038 $as_echo "$ac_file" >&6; }
5039 ac_exeext
=$ac_cv_exeext
5041 rm -f -r a.out a.out.dSYM a.exe conftest
$ac_cv_exeext b.out
5042 ac_clean_files
=$ac_clean_files_save
5043 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
5044 $as_echo_n "checking for suffix of executables... " >&6; }
5045 if { { ac_try
="$ac_link"
5047 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
5048 *) ac_try_echo=$ac_try;;
5050 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
5051 $as_echo "$ac_try_echo"; } >&5
5052 (eval "$ac_link") 2>&5
5054 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5055 test $ac_status = 0; }; then :
5056 # If both `conftest.exe
' and `conftest' are
`present' (well, observable)
5057 # catch `conftest.exe
'. For instance with Cygwin, `ls conftest' will
5058 # work properly (i.e., refer to `conftest.exe'), while it won't with
5060 for ac_file
in conftest.exe conftest conftest.
*; do
5061 test -f "$ac_file" ||
continue
5063 *.
$ac_ext |
*.xcoff |
*.tds |
*.d |
*.pdb |
*.xSYM |
*.bb |
*.bbg |
*.map |
*.inf |
*.dSYM |
*.o |
*.obj
) ;;
5064 *.
* ) ac_cv_exeext
=`expr "$ac_file" : '[^.]*\(\..*\)'`
5070 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
5071 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
5072 as_fn_error
"cannot compute suffix of executables: cannot compile and link
5073 See \`config.log' for more details." "$LINENO" 5; }
5075 rm -f conftest conftest
$ac_cv_exeext
5076 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
5077 $as_echo "$ac_cv_exeext" >&6; }
5079 rm -f conftest.
$ac_ext
5080 EXEEXT
=$ac_cv_exeext
5082 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
5083 /* end confdefs.h. */
5088 FILE *f = fopen ("conftest.out", "w");
5089 return ferror (f) || fclose (f) != 0;
5095 ac_clean_files
="$ac_clean_files conftest.out"
5096 # Check that the compiler produces executables we can run. If not, either
5097 # the compiler is broken, or we cross compile.
5098 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
5099 $as_echo_n "checking whether we are cross compiling... " >&6; }
5100 if test "$cross_compiling" != yes; then
5101 { { ac_try
="$ac_link"
5103 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
5104 *) ac_try_echo=$ac_try;;
5106 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
5107 $as_echo "$ac_try_echo"; } >&5
5108 (eval "$ac_link") 2>&5
5110 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5111 test $ac_status = 0; }
5112 if { ac_try='./conftest$ac_cv_exeext'
5113 { { case "(($ac_try" in
5114 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
5115 *) ac_try_echo
=$ac_try;;
5117 eval ac_try_echo
="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
5118 $as_echo "$ac_try_echo"; } >&5
5119 (eval "$ac_try") 2>&5
5121 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5122 test $ac_status = 0; }; }; then
5125 if test "$cross_compiling" = maybe
; then
5128 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
5129 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
5130 as_fn_error
"cannot run C compiled programs.
5131 If you meant to cross compile, use \`--host'.
5132 See \`config.log' for more details." "$LINENO" 5; }
5136 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
5137 $as_echo "$cross_compiling" >&6; }
5139 rm -f conftest.
$ac_ext conftest
$ac_cv_exeext conftest.out
5140 ac_clean_files
=$ac_clean_files_save
5141 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
5142 $as_echo_n "checking for suffix of object files... " >&6; }
5143 if test "${ac_cv_objext+set}" = set; then :
5144 $as_echo_n "(cached) " >&6
5146 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
5147 /* end confdefs.h. */
5157 rm -f conftest.o conftest.obj
5158 if { { ac_try
="$ac_compile"
5160 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
5161 *) ac_try_echo=$ac_try;;
5163 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
5164 $as_echo "$ac_try_echo"; } >&5
5165 (eval "$ac_compile") 2>&5
5167 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5168 test $ac_status = 0; }; then :
5169 for ac_file in conftest.o conftest.obj conftest.*; do
5170 test -f "$ac_file" || continue;
5172 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
5173 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
5178 $as_echo "$as_me: failed program was:" >&5
5179 sed 's/^/| /' conftest.$ac_ext >&5
5181 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
5182 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
5183 as_fn_error "cannot compute suffix of object files
: cannot compile
5184 See \
`config.log' for more details." "$LINENO" 5; }
5186 rm -f conftest.$ac_cv_objext conftest.$ac_ext
5188 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
5189 $as_echo "$ac_cv_objext" >&6; }
5190 OBJEXT=$ac_cv_objext
5192 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
5193 $as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
5194 if test "${ac_cv_c_compiler_gnu+set}" = set; then :
5195 $as_echo_n "(cached) " >&6
5197 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5198 /* end confdefs.h. */
5211 if ac_fn_c_try_compile "$LINENO"; then :
5216 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5217 ac_cv_c_compiler_gnu=$ac_compiler_gnu
5220 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
5221 $as_echo "$ac_cv_c_compiler_gnu" >&6; }
5222 if test $ac_compiler_gnu = yes; then
5227 ac_test_CFLAGS=${CFLAGS+set}
5228 ac_save_CFLAGS=$CFLAGS
5229 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
5230 $as_echo_n "checking whether $CC accepts -g... " >&6; }
5231 if test "${ac_cv_prog_cc_g+set}" = set; then :
5232 $as_echo_n "(cached) " >&6
5234 ac_save_c_werror_flag=$ac_c_werror_flag
5235 ac_c_werror_flag=yes
5238 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5239 /* end confdefs.h. */
5249 if ac_fn_c_try_compile "$LINENO"; then :
5253 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5254 /* end confdefs.h. */
5264 if ac_fn_c_try_compile "$LINENO"; then :
5267 ac_c_werror_flag=$ac_save_c_werror_flag
5269 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5270 /* end confdefs.h. */
5280 if ac_fn_c_try_compile "$LINENO"; then :
5283 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5285 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5287 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5288 ac_c_werror_flag=$ac_save_c_werror_flag
5290 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
5291 $as_echo "$ac_cv_prog_cc_g" >&6; }
5292 if test "$ac_test_CFLAGS" = set; then
5293 CFLAGS=$ac_save_CFLAGS
5294 elif test $ac_cv_prog_cc_g = yes; then
5295 if test "$GCC" = yes; then
5301 if test "$GCC" = yes; then
5307 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
5308 $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
5309 if test "${ac_cv_prog_cc_c89+set}" = set; then :
5310 $as_echo_n "(cached) " >&6
5312 ac_cv_prog_cc_c89=no
5314 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5315 /* end confdefs.h. */
5318 #include <sys/types.h>
5319 #include <sys/stat.h>
5320 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
5321 struct buf { int x; };
5322 FILE * (*rcsopen) (struct buf *, struct stat *, int);
5323 static char *e (p, i)
5329 static char *f (char * (*g) (char **, int), char **p, ...)
5334 s = g (p, va_arg (v,int));
5339 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
5340 function prototypes and stuff, but not '\xHH' hex character constants.
5341 These don't provoke an error unfortunately, instead are silently treated
5342 as 'x'. The following induces an error, until -std is added to get
5343 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
5344 array size at least. It's necessary to write '\x00'==0 to get something
5345 that's true only with -std. */
5346 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
5348 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
5349 inside strings and character constants. */
5351 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
5353 int test (int i, double x);
5354 struct s1 {int (*f) (int a);};
5355 struct s2 {int (*f) (double a);};
5356 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
5362 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
5367 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
5368 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
5370 CC="$ac_save_CC $ac_arg"
5371 if ac_fn_c_try_compile "$LINENO"; then :
5372 ac_cv_prog_cc_c89=$ac_arg
5374 rm -f core conftest.err conftest.$ac_objext
5375 test "x$ac_cv_prog_cc_c89" != "xno" && break
5377 rm -f conftest.$ac_ext
5382 case "x$ac_cv_prog_cc_c89" in
5384 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
5385 $as_echo "none needed" >&6; } ;;
5387 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
5388 $as_echo "unsupported" >&6; } ;;
5390 CC="$CC $ac_cv_prog_cc_c89"
5391 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
5392 $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
5394 if test "x$ac_cv_prog_cc_c89" != xno; then :
5399 ac_cpp='$CPP $CPPFLAGS'
5400 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5401 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5402 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5403 DEPDIR="${am__leading_dot}deps"
5405 ac_config_commands="$ac_config_commands depfiles"
5408 am_make=${MAKE-make}
5409 cat > confinc << 'END'
5411 @echo this is the am__doit target
5414 # If we don't find an include directive, just comment out the code.
5415 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for style of include used by $am_make" >&5
5416 $as_echo_n "checking for style of include used by $am_make... " >&6; }
5420 # First try GNU make style include.
5421 echo "include confinc" > confmf
5422 # Ignore all kinds of additional output from `make'.
5423 case `$am_make -s -f confmf 2> /dev/null` in #(
5424 *the\ am__doit\ target*)
5430 # Now try BSD make style include.
5431 if test "$am__include" = "#"; then
5432 echo '.include
"confinc"' > confmf
5433 case `$am_make -s -f confmf 2> /dev/null` in #(
5434 *the\ am__doit\ target*)
5435 am__include=.include
5443 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $_am_result" >&5
5444 $as_echo "$_am_result" >&6; }
5445 rm -f confinc confmf
5447 # Check whether --enable-dependency-tracking was given.
5448 if test "${enable_dependency_tracking+set}" = set; then :
5449 enableval=$enable_dependency_tracking;
5452 if test "x$enable_dependency_tracking" != xno; then
5453 am_depcomp="$ac_aux_dir/depcomp"
5456 if test "x$enable_dependency_tracking" != xno
; then
5466 depcc
="$CC" am_compiler_list
=
5468 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
5469 $as_echo_n "checking dependency style of $depcc... " >&6; }
5470 if test "${am_cv_CC_dependencies_compiler_type+set}" = set; then :
5471 $as_echo_n "(cached) " >&6
5473 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
5474 # We make a subdir and do the tests there. Otherwise we can end up
5475 # making bogus files that we don't know about and never remove. For
5476 # instance it was reported that on HP-UX the gcc test will end up
5477 # making a dummy file named `D' -- because `-MD' means `put the output
5480 # Copy depcomp to subdir because otherwise we won't find it if we're
5481 # using a relative directory.
5482 cp "$am_depcomp" conftest.dir
5484 # We will build objects and dependencies in a subdirectory because
5485 # it helps to detect inapplicable dependency modes. For instance
5486 # both Tru64's cc and ICC support -MD to output dependencies as a
5487 # side effect of compilation, but ICC will put the dependencies in
5488 # the current directory while Tru64 will put them in the object
5492 am_cv_CC_dependencies_compiler_type
=none
5493 if test "$am_compiler_list" = ""; then
5494 am_compiler_list
=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
5497 case " $depcc " in #(
5498 *\
-arch\
*\
-arch\
*) am__universal
=true
;;
5501 for depmode
in $am_compiler_list; do
5502 # Setup a source with many dependencies, because some compilers
5503 # like to wrap large dependency lists on column 80 (with \), and
5504 # we should not choose a depcomp mode which is confused by this.
5506 # We need to recreate these files for each test, as the compiler may
5507 # overwrite some of them when testing with obscure command lines.
5508 # This happens at least with the AIX C compiler.
5510 for i
in 1 2 3 4 5 6; do
5511 echo '#include "conftst'$i'.h"' >> sub
/conftest.c
5512 # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
5513 # Solaris 8's {/usr,}/bin/sh.
5514 touch sub
/conftst
$i.h
5516 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
5518 # We check with `-c' and `-o' for the sake of the "dashmstdout"
5519 # mode. It turns out that the SunPro C++ compiler does not properly
5520 # handle `-M -o', and we need to detect this. Also, some Intel
5521 # versions had trouble with output in subdirs
5522 am__obj
=sub
/conftest.
${OBJEXT-o}
5523 am__minus_obj
="-o $am__obj"
5526 # This depmode causes a compiler race in universal mode.
5527 test "$am__universal" = false ||
continue
5530 # after this tag, mechanisms are not by side-effect, so they'll
5531 # only be used when explicitly requested
5532 if test "x$enable_dependency_tracking" = xyes
; then
5538 msvisualcpp | msvcmsys
)
5539 # This compiler won't grok `-c -o', but also, the minuso test has
5540 # not run yet. These depmodes are late enough in the game, and
5541 # so weak that their functioning should not be impacted.
5542 am__obj
=conftest.
${OBJEXT-o}
5547 if depmode
=$depmode \
5548 source=sub
/conftest.c object
=$am__obj \
5549 depfile
=sub
/conftest.Po tmpdepfile
=sub
/conftest.TPo \
5550 $SHELL .
/depcomp
$depcc -c $am__minus_obj sub
/conftest.c \
5551 >/dev
/null
2>conftest.err
&&
5552 grep sub
/conftst1.h sub
/conftest.Po
> /dev
/null
2>&1 &&
5553 grep sub
/conftst6.h sub
/conftest.Po
> /dev
/null
2>&1 &&
5554 grep $am__obj sub
/conftest.Po
> /dev
/null
2>&1 &&
5555 ${MAKE-make} -s -f confmf
> /dev
/null
2>&1; then
5556 # icc doesn't choke on unknown options, it will just issue warnings
5557 # or remarks (even with -Werror). So we grep stderr for any message
5558 # that says an option was ignored or not supported.
5559 # When given -MP, icc 7.0 and 7.1 complain thusly:
5560 # icc: Command line warning: ignoring option '-M'; no argument required
5561 # The diagnosis changed in icc 8.0:
5562 # icc: Command line remark: option '-MP' not supported
5563 if (grep 'ignoring option' conftest.err ||
5564 grep 'not supported' conftest.err
) >/dev
/null
2>&1; then :; else
5565 am_cv_CC_dependencies_compiler_type
=$depmode
5574 am_cv_CC_dependencies_compiler_type
=none
5578 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5
5579 $as_echo "$am_cv_CC_dependencies_compiler_type" >&6; }
5580 CCDEPMODE
=depmode
=$am_cv_CC_dependencies_compiler_type
5583 test "x$enable_dependency_tracking" != xno \
5584 && test "$am_cv_CC_dependencies_compiler_type" = gcc3
; then
5586 am__fastdepCC_FALSE
='#'
5588 am__fastdepCC_TRUE
='#'
5589 am__fastdepCC_FALSE
=
5593 if test "x$CC" != xcc
; then
5594 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC and cc understand -c and -o together" >&5
5595 $as_echo_n "checking whether $CC and cc understand -c and -o together... " >&6; }
5597 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether cc understands -c and -o together" >&5
5598 $as_echo_n "checking whether cc understands -c and -o together... " >&6; }
5600 set dummy
$CC; ac_cc
=`$as_echo "$2" |
5601 sed 's/[^a-zA-Z0-9_]/_/g;s/^[0-9]/_/'`
5602 if { as_var
=ac_cv_prog_cc_
${ac_cc}_c_o; eval "test \"\${$as_var+set}\" = set"; }; then :
5603 $as_echo_n "(cached) " >&6
5605 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
5606 /* end confdefs.h. */
5616 # Make sure it works both with $CC and with simple cc.
5617 # We do the test twice because some compilers refuse to overwrite an
5618 # existing .o file with -o, though they will create one.
5619 ac_try
='$CC -c conftest.$ac_ext -o conftest2.$ac_objext >&5'
5621 if { { case "(($ac_try" in
5622 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
5623 *) ac_try_echo=$ac_try;;
5625 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
5626 $as_echo "$ac_try_echo"; } >&5
5627 (eval "$ac_try") 2>&5
5629 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5630 test $ac_status = 0; } &&
5631 test -f conftest2.$ac_objext && { { case "(($ac_try" in
5632 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
5633 *) ac_try_echo
=$ac_try;;
5635 eval ac_try_echo
="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
5636 $as_echo "$ac_try_echo"; } >&5
5637 (eval "$ac_try") 2>&5
5639 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5640 test $ac_status = 0; };
5642 eval ac_cv_prog_cc_
${ac_cc}_c_o
=yes
5643 if test "x$CC" != xcc
; then
5644 # Test first that cc exists at all.
5645 if { ac_try
='cc -c conftest.$ac_ext >&5'
5646 { { case "(($ac_try" in
5647 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
5648 *) ac_try_echo=$ac_try;;
5650 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
5651 $as_echo "$ac_try_echo"; } >&5
5652 (eval "$ac_try") 2>&5
5654 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5655 test $ac_status = 0; }; }; then
5656 ac_try='cc -c conftest.$ac_ext -o conftest2.$ac_objext >&5'
5658 if { { case "(($ac_try" in
5659 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
5660 *) ac_try_echo
=$ac_try;;
5662 eval ac_try_echo
="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
5663 $as_echo "$ac_try_echo"; } >&5
5664 (eval "$ac_try") 2>&5
5666 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5667 test $ac_status = 0; } &&
5668 test -f conftest2.
$ac_objext && { { case "(($ac_try" in
5669 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
5670 *) ac_try_echo=$ac_try;;
5672 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
5673 $as_echo "$ac_try_echo"; } >&5
5674 (eval "$ac_try") 2>&5
5676 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5677 test $ac_status = 0; };
5682 # cc exists but doesn't like -o.
5683 eval ac_cv_prog_cc_${ac_cc}_c_o=no
5688 eval ac_cv_prog_cc_${ac_cc}_c_o=no
5690 rm -f core conftest*
5693 if eval test \$ac_cv_prog_cc_${ac_cc}_c_o = yes; then
5694 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5695 $as_echo "yes" >&6; }
5697 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5698 $as_echo "no" >&6; }
5700 $as_echo "#define NO_MINUS_C_MINUS_O 1" >>confdefs.h
5704 # FIXME: we rely on the cache variable name because
5705 # there is no other way.
5707 am_cc=`echo $2 |
sed 's/[^a-zA-Z0-9_]/_/g;s/^[0-9]/_/'`
5708 eval am_t=\$ac_cv_prog_cc_${am_cc}_c_o
5709 if test "$am_t" != yes; then
5710 # Losing compiler, so override with the script.
5711 # FIXME: It is wrong to rewrite CC.
5712 # But if we don't then we get into trouble of one sort or another.
5713 # A longer-term fix would be to have automake use am__CC in this case,
5714 # and then we could set am__CC="\$(top_srcdir)/compile \$(CC)"
5715 CC="$am_aux_dir/compile $CC"
5720 # Initialize gnulib right after verifying that the C compiler works.
5723 ac_cpp='$CPP $CPPFLAGS'
5724 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5725 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5726 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5727 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
5728 $as_echo_n "checking how to run the C preprocessor... " >&6; }
5729 # On Suns, sometimes $CPP names a directory.
5730 if test -n "$CPP" && test -d "$CPP"; then
5733 if test -z "$CPP"; then
5734 if test "${ac_cv_prog_CPP+set}" = set; then :
5735 $as_echo_n "(cached) " >&6
5737 # Double quotes because CPP needs to be expanded
5738 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
5741 for ac_c_preproc_warn_flag in '' yes
5743 # Use a header file that comes with gcc, so configuring glibc
5744 # with a fresh cross-compiler works.
5745 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5746 # <limits.h> exists even on freestanding compilers.
5747 # On the NeXT, cc -E runs the code through the compiler's parser,
5748 # not just through cpp. "Syntax error" is here to catch this case.
5749 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5750 /* end confdefs.h. */
5752 # include <limits.h>
5754 # include <assert.h>
5758 if ac_fn_c_try_cpp "$LINENO"; then :
5761 # Broken: fails on valid input.
5764 rm -f conftest.err conftest.$ac_ext
5766 # OK, works on sane cases. Now check whether nonexistent headers
5767 # can be detected and how.
5768 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5769 /* end confdefs.h. */
5770 #include <ac_nonexistent.h>
5772 if ac_fn_c_try_cpp "$LINENO"; then :
5773 # Broken: success on invalid input.
5776 # Passes both tests.
5780 rm -f conftest.err conftest.$ac_ext
5783 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
5784 rm -f conftest.err conftest.
$ac_ext
5785 if $ac_preproc_ok; then :
5797 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
5798 $as_echo "$CPP" >&6; }
5800 for ac_c_preproc_warn_flag
in '' yes
5802 # Use a header file that comes with gcc, so configuring glibc
5803 # with a fresh cross-compiler works.
5804 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5805 # <limits.h> exists even on freestanding compilers.
5806 # On the NeXT, cc -E runs the code through the compiler's parser,
5807 # not just through cpp. "Syntax error" is here to catch this case.
5808 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
5809 /* end confdefs.h. */
5811 # include <limits.h>
5813 # include <assert.h>
5817 if ac_fn_c_try_cpp
"$LINENO"; then :
5820 # Broken: fails on valid input.
5823 rm -f conftest.err conftest.
$ac_ext
5825 # OK, works on sane cases. Now check whether nonexistent headers
5826 # can be detected and how.
5827 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
5828 /* end confdefs.h. */
5829 #include <ac_nonexistent.h>
5831 if ac_fn_c_try_cpp
"$LINENO"; then :
5832 # Broken: success on invalid input.
5835 # Passes both tests.
5839 rm -f conftest.err conftest.
$ac_ext
5842 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
5843 rm -f conftest.err conftest.
$ac_ext
5844 if $ac_preproc_ok; then :
5847 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
5848 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
5849 as_fn_error
"C preprocessor \"$CPP\" fails sanity check
5850 See \`config.log' for more details." "$LINENO" 5; }
5854 ac_cpp
='$CPP $CPPFLAGS'
5855 ac_compile
='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5856 ac_link
='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5857 ac_compiler_gnu
=$ac_cv_c_compiler_gnu
5860 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
5861 $as_echo_n "checking for grep that handles long lines and -e... " >&6; }
5862 if test "${ac_cv_path_GREP+set}" = set; then :
5863 $as_echo_n "(cached) " >&6
5865 if test -z "$GREP"; then
5866 ac_path_GREP_found
=false
5867 # Loop through the user's path and test for each of PROGNAME-LIST
5868 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
5869 for as_dir
in $PATH$PATH_SEPARATOR/usr
/xpg
4/bin
5872 test -z "$as_dir" && as_dir
=.
5873 for ac_prog
in grep ggrep
; do
5874 for ac_exec_ext
in '' $ac_executable_extensions; do
5875 ac_path_GREP
="$as_dir/$ac_prog$ac_exec_ext"
5876 { test -f "$ac_path_GREP" && $as_test_x "$ac_path_GREP"; } ||
continue
5877 # Check for GNU ac_path_GREP and select it if it is found.
5878 # Check for GNU $ac_path_GREP
5879 case `"$ac_path_GREP" --version 2>&1` in
5881 ac_cv_path_GREP
="$ac_path_GREP" ac_path_GREP_found
=:;;
5884 $as_echo_n 0123456789 >"conftest.in"
5887 cat "conftest.in" "conftest.in" >"conftest.tmp"
5888 mv "conftest.tmp" "conftest.in"
5889 cp "conftest.in" "conftest.nl"
5890 $as_echo 'GREP' >> "conftest.nl"
5891 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev
/null ||
break
5892 diff "conftest.out" "conftest.nl" >/dev
/null
2>&1 ||
break
5893 as_fn_arith
$ac_count + 1 && ac_count
=$as_val
5894 if test $ac_count -gt ${ac_path_GREP_max-0}; then
5895 # Best one so far, save it but keep looking for a better one
5896 ac_cv_path_GREP
="$ac_path_GREP"
5897 ac_path_GREP_max
=$ac_count
5899 # 10*(2^10) chars as input seems more than enough
5900 test $ac_count -gt 10 && break
5902 rm -f conftest.
in conftest.tmp conftest.
nl conftest.out
;;
5905 $ac_path_GREP_found && break 3
5910 if test -z "$ac_cv_path_GREP"; then
5911 as_fn_error
"no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
5914 ac_cv_path_GREP
=$GREP
5918 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
5919 $as_echo "$ac_cv_path_GREP" >&6; }
5920 GREP
="$ac_cv_path_GREP"
5923 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
5924 $as_echo_n "checking for egrep... " >&6; }
5925 if test "${ac_cv_path_EGREP+set}" = set; then :
5926 $as_echo_n "(cached) " >&6
5928 if echo a |
$GREP -E '(a|b)' >/dev
/null
2>&1
5929 then ac_cv_path_EGREP
="$GREP -E"
5931 if test -z "$EGREP"; then
5932 ac_path_EGREP_found
=false
5933 # Loop through the user's path and test for each of PROGNAME-LIST
5934 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
5935 for as_dir
in $PATH$PATH_SEPARATOR/usr
/xpg
4/bin
5938 test -z "$as_dir" && as_dir
=.
5939 for ac_prog
in egrep; do
5940 for ac_exec_ext
in '' $ac_executable_extensions; do
5941 ac_path_EGREP
="$as_dir/$ac_prog$ac_exec_ext"
5942 { test -f "$ac_path_EGREP" && $as_test_x "$ac_path_EGREP"; } ||
continue
5943 # Check for GNU ac_path_EGREP and select it if it is found.
5944 # Check for GNU $ac_path_EGREP
5945 case `"$ac_path_EGREP" --version 2>&1` in
5947 ac_cv_path_EGREP
="$ac_path_EGREP" ac_path_EGREP_found
=:;;
5950 $as_echo_n 0123456789 >"conftest.in"
5953 cat "conftest.in" "conftest.in" >"conftest.tmp"
5954 mv "conftest.tmp" "conftest.in"
5955 cp "conftest.in" "conftest.nl"
5956 $as_echo 'EGREP' >> "conftest.nl"
5957 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev
/null ||
break
5958 diff "conftest.out" "conftest.nl" >/dev
/null
2>&1 ||
break
5959 as_fn_arith
$ac_count + 1 && ac_count
=$as_val
5960 if test $ac_count -gt ${ac_path_EGREP_max-0}; then
5961 # Best one so far, save it but keep looking for a better one
5962 ac_cv_path_EGREP
="$ac_path_EGREP"
5963 ac_path_EGREP_max
=$ac_count
5965 # 10*(2^10) chars as input seems more than enough
5966 test $ac_count -gt 10 && break
5968 rm -f conftest.
in conftest.tmp conftest.
nl conftest.out
;;
5971 $ac_path_EGREP_found && break 3
5976 if test -z "$ac_cv_path_EGREP"; then
5977 as_fn_error
"no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
5980 ac_cv_path_EGREP
=$EGREP
5985 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
5986 $as_echo "$ac_cv_path_EGREP" >&6; }
5987 EGREP
="$ac_cv_path_EGREP"
5992 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Minix Amsterdam compiler" >&5
5993 $as_echo_n "checking for Minix Amsterdam compiler... " >&6; }
5994 if test "${gl_cv_c_amsterdam_compiler+set}" = set; then :
5995 $as_echo_n "(cached) " >&6
5998 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
5999 /* end confdefs.h. */
6006 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6007 $EGREP "Amsterdam" >/dev
/null
2>&1; then :
6008 gl_cv_c_amsterdam_compiler
=yes
6010 gl_cv_c_amsterdam_compiler
=no
6016 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_c_amsterdam_compiler" >&5
6017 $as_echo "$gl_cv_c_amsterdam_compiler" >&6; }
6018 if test -z "$AR"; then
6019 if test $gl_cv_c_amsterdam_compiler = yes; then
6021 if test -z "$ARFLAGS"; then
6025 if test -n "$ac_tool_prefix"; then
6026 # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
6027 set dummy
${ac_tool_prefix}ar; ac_word
=$2
6028 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6029 $as_echo_n "checking for $ac_word... " >&6; }
6030 if test "${ac_cv_prog_AR+set}" = set; then :
6031 $as_echo_n "(cached) " >&6
6033 if test -n "$AR"; then
6034 ac_cv_prog_AR
="$AR" # Let the user override the test.
6036 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
6040 test -z "$as_dir" && as_dir
=.
6041 for ac_exec_ext
in '' $ac_executable_extensions; do
6042 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6043 ac_cv_prog_AR
="${ac_tool_prefix}ar"
6044 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6054 if test -n "$AR"; then
6055 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
6056 $as_echo "$AR" >&6; }
6058 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6059 $as_echo "no" >&6; }
6064 if test -z "$ac_cv_prog_AR"; then
6066 # Extract the first word of "ar", so it can be a program name with args.
6067 set dummy
ar; ac_word
=$2
6068 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6069 $as_echo_n "checking for $ac_word... " >&6; }
6070 if test "${ac_cv_prog_ac_ct_AR+set}" = set; then :
6071 $as_echo_n "(cached) " >&6
6073 if test -n "$ac_ct_AR"; then
6074 ac_cv_prog_ac_ct_AR
="$ac_ct_AR" # Let the user override the test.
6076 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
6080 test -z "$as_dir" && as_dir
=.
6081 for ac_exec_ext
in '' $ac_executable_extensions; do
6082 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6083 ac_cv_prog_ac_ct_AR
="ar"
6084 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6093 ac_ct_AR
=$ac_cv_prog_ac_ct_AR
6094 if test -n "$ac_ct_AR"; then
6095 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5
6096 $as_echo "$ac_ct_AR" >&6; }
6098 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6099 $as_echo "no" >&6; }
6102 if test "x$ac_ct_AR" = x
; then
6105 case $cross_compiling:$ac_tool_warned in
6107 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6108 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6109 ac_tool_warned
=yes ;;
6117 if test -z "$ARFLAGS"; then
6122 if test -z "$ARFLAGS"; then
6128 if test -z "$RANLIB"; then
6129 if test $gl_cv_c_amsterdam_compiler = yes; then
6132 if test -n "$ac_tool_prefix"; then
6133 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
6134 set dummy
${ac_tool_prefix}ranlib
; ac_word
=$2
6135 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6136 $as_echo_n "checking for $ac_word... " >&6; }
6137 if test "${ac_cv_prog_RANLIB+set}" = set; then :
6138 $as_echo_n "(cached) " >&6
6140 if test -n "$RANLIB"; then
6141 ac_cv_prog_RANLIB
="$RANLIB" # Let the user override the test.
6143 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
6147 test -z "$as_dir" && as_dir
=.
6148 for ac_exec_ext
in '' $ac_executable_extensions; do
6149 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6150 ac_cv_prog_RANLIB
="${ac_tool_prefix}ranlib"
6151 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6160 RANLIB
=$ac_cv_prog_RANLIB
6161 if test -n "$RANLIB"; then
6162 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
6163 $as_echo "$RANLIB" >&6; }
6165 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6166 $as_echo "no" >&6; }
6171 if test -z "$ac_cv_prog_RANLIB"; then
6172 ac_ct_RANLIB
=$RANLIB
6173 # Extract the first word of "ranlib", so it can be a program name with args.
6174 set dummy ranlib
; ac_word
=$2
6175 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6176 $as_echo_n "checking for $ac_word... " >&6; }
6177 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then :
6178 $as_echo_n "(cached) " >&6
6180 if test -n "$ac_ct_RANLIB"; then
6181 ac_cv_prog_ac_ct_RANLIB
="$ac_ct_RANLIB" # Let the user override the test.
6183 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
6187 test -z "$as_dir" && as_dir
=.
6188 for ac_exec_ext
in '' $ac_executable_extensions; do
6189 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6190 ac_cv_prog_ac_ct_RANLIB
="ranlib"
6191 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6200 ac_ct_RANLIB
=$ac_cv_prog_ac_ct_RANLIB
6201 if test -n "$ac_ct_RANLIB"; then
6202 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
6203 $as_echo "$ac_ct_RANLIB" >&6; }
6205 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6206 $as_echo "no" >&6; }
6209 if test "x$ac_ct_RANLIB" = x
; then
6212 case $cross_compiling:$ac_tool_warned in
6214 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6215 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6216 ac_tool_warned
=yes ;;
6218 RANLIB
=$ac_ct_RANLIB
6221 RANLIB
="$ac_cv_prog_RANLIB"
6228 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
6229 $as_echo_n "checking for ANSI C header files... " >&6; }
6230 if test "${ac_cv_header_stdc+set}" = set; then :
6231 $as_echo_n "(cached) " >&6
6233 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
6234 /* end confdefs.h. */
6248 if ac_fn_c_try_compile
"$LINENO"; then :
6249 ac_cv_header_stdc
=yes
6251 ac_cv_header_stdc
=no
6253 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
6255 if test $ac_cv_header_stdc = yes; then
6256 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
6257 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
6258 /* end confdefs.h. */
6262 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6263 $EGREP "memchr" >/dev
/null
2>&1; then :
6266 ac_cv_header_stdc
=no
6272 if test $ac_cv_header_stdc = yes; then
6273 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
6274 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
6275 /* end confdefs.h. */
6279 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6280 $EGREP "free" >/dev
/null
2>&1; then :
6283 ac_cv_header_stdc
=no
6289 if test $ac_cv_header_stdc = yes; then
6290 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
6291 if test "$cross_compiling" = yes; then :
6294 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
6295 /* end confdefs.h. */
6298 #if ((' ' & 0x0FF) == 0x020)
6299 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
6300 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
6302 # define ISLOWER(c) \
6303 (('a' <= (c) && (c) <= 'i') \
6304 || ('j' <= (c) && (c) <= 'r') \
6305 || ('s' <= (c) && (c) <= 'z'))
6306 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
6309 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
6314 for (i = 0; i < 256; i++)
6315 if (XOR (islower (i), ISLOWER (i))
6316 || toupper (i) != TOUPPER (i))
6321 if ac_fn_c_try_run
"$LINENO"; then :
6324 ac_cv_header_stdc
=no
6326 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
6327 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
6332 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
6333 $as_echo "$ac_cv_header_stdc" >&6; }
6334 if test $ac_cv_header_stdc = yes; then
6336 $as_echo "#define STDC_HEADERS 1" >>confdefs.h
6340 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
6341 for ac_header
in sys
/types.h sys
/stat.h stdlib.h string.h memory.h
strings.h \
6342 inttypes.h stdint.h unistd.h
6344 as_ac_Header
=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
6345 ac_fn_c_check_header_compile
"$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
6347 eval as_val
=\$
$as_ac_Header
6348 if test "x$as_val" = x
""yes; then :
6349 cat >>confdefs.h
<<_ACEOF
6350 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
6361 ac_fn_c_check_header_mongrel
"$LINENO" "minix/config.h" "ac_cv_header_minix_config_h" "$ac_includes_default"
6362 if test "x$ac_cv_header_minix_config_h" = x
""yes; then :
6369 if test "$MINIX" = yes; then
6371 $as_echo "#define _POSIX_SOURCE 1" >>confdefs.h
6374 $as_echo "#define _POSIX_1_SOURCE 2" >>confdefs.h
6377 $as_echo "#define _MINIX 1" >>confdefs.h
6384 $as_echo "#define _XOPEN_SOURCE 500" >>confdefs.h
6390 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether it is safe to define __EXTENSIONS__" >&5
6391 $as_echo_n "checking whether it is safe to define __EXTENSIONS__... " >&6; }
6392 if test "${ac_cv_safe_to_define___extensions__+set}" = set; then :
6393 $as_echo_n "(cached) " >&6
6395 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
6396 /* end confdefs.h. */
6398 # define __EXTENSIONS__ 1
6399 $ac_includes_default
6408 if ac_fn_c_try_compile
"$LINENO"; then :
6409 ac_cv_safe_to_define___extensions__
=yes
6411 ac_cv_safe_to_define___extensions__
=no
6413 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
6415 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_safe_to_define___extensions__" >&5
6416 $as_echo "$ac_cv_safe_to_define___extensions__" >&6; }
6417 test $ac_cv_safe_to_define___extensions__ = yes &&
6418 $as_echo "#define __EXTENSIONS__ 1" >>confdefs.h
6420 $as_echo "#define _ALL_SOURCE 1" >>confdefs.h
6422 $as_echo "#define _DARWIN_C_SOURCE 1" >>confdefs.h
6424 $as_echo "#define _GNU_SOURCE 1" >>confdefs.h
6426 $as_echo "#define _POSIX_PTHREAD_SEMANTICS 1" >>confdefs.h
6428 $as_echo "#define _TANDEM_SOURCE 1" >>confdefs.h
6437 # Check whether --enable-largefile was given.
6438 if test "${enable_largefile+set}" = set; then :
6439 enableval
=$enable_largefile;
6442 if test "$enable_largefile" != no
; then
6444 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for special C compiler options needed for large files" >&5
6445 $as_echo_n "checking for special C compiler options needed for large files... " >&6; }
6446 if test "${ac_cv_sys_largefile_CC+set}" = set; then :
6447 $as_echo_n "(cached) " >&6
6449 ac_cv_sys_largefile_CC
=no
6450 if test "$GCC" != yes; then
6453 # IRIX 6.2 and later do not support large files by default,
6454 # so use the C compiler's -n32 option if that helps.
6455 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
6456 /* end confdefs.h. */
6457 #include <sys/types.h>
6458 /* Check that off_t can represent 2**63 - 1 correctly.
6459 We can't simply define LARGE_OFF_T to be 9223372036854775807,
6460 since some C++ compilers masquerading as C compilers
6461 incorrectly reject 9223372036854775807. */
6462 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
6463 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
6464 && LARGE_OFF_T % 2147483647 == 1)
6474 if ac_fn_c_try_compile
"$LINENO"; then :
6477 rm -f core conftest.err conftest.
$ac_objext
6479 if ac_fn_c_try_compile
"$LINENO"; then :
6480 ac_cv_sys_largefile_CC
=' -n32'; break
6482 rm -f core conftest.err conftest.
$ac_objext
6486 rm -f conftest.
$ac_ext
6489 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_largefile_CC" >&5
6490 $as_echo "$ac_cv_sys_largefile_CC" >&6; }
6491 if test "$ac_cv_sys_largefile_CC" != no
; then
6492 CC
=$CC$ac_cv_sys_largefile_CC
6495 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _FILE_OFFSET_BITS value needed for large files" >&5
6496 $as_echo_n "checking for _FILE_OFFSET_BITS value needed for large files... " >&6; }
6497 if test "${ac_cv_sys_file_offset_bits+set}" = set; then :
6498 $as_echo_n "(cached) " >&6
6501 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
6502 /* end confdefs.h. */
6503 #include <sys/types.h>
6504 /* Check that off_t can represent 2**63 - 1 correctly.
6505 We can't simply define LARGE_OFF_T to be 9223372036854775807,
6506 since some C++ compilers masquerading as C compilers
6507 incorrectly reject 9223372036854775807. */
6508 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
6509 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
6510 && LARGE_OFF_T % 2147483647 == 1)
6520 if ac_fn_c_try_compile
"$LINENO"; then :
6521 ac_cv_sys_file_offset_bits
=no
; break
6523 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
6524 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
6525 /* end confdefs.h. */
6526 #define _FILE_OFFSET_BITS 64
6527 #include <sys/types.h>
6528 /* Check that off_t can represent 2**63 - 1 correctly.
6529 We can't simply define LARGE_OFF_T to be 9223372036854775807,
6530 since some C++ compilers masquerading as C compilers
6531 incorrectly reject 9223372036854775807. */
6532 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
6533 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
6534 && LARGE_OFF_T % 2147483647 == 1)
6544 if ac_fn_c_try_compile
"$LINENO"; then :
6545 ac_cv_sys_file_offset_bits
=64; break
6547 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
6548 ac_cv_sys_file_offset_bits
=unknown
6552 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_file_offset_bits" >&5
6553 $as_echo "$ac_cv_sys_file_offset_bits" >&6; }
6554 case $ac_cv_sys_file_offset_bits in #(
6557 cat >>confdefs.h
<<_ACEOF
6558 #define _FILE_OFFSET_BITS $ac_cv_sys_file_offset_bits
6563 if test $ac_cv_sys_file_offset_bits = unknown
; then
6564 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _LARGE_FILES value needed for large files" >&5
6565 $as_echo_n "checking for _LARGE_FILES value needed for large files... " >&6; }
6566 if test "${ac_cv_sys_large_files+set}" = set; then :
6567 $as_echo_n "(cached) " >&6
6570 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
6571 /* end confdefs.h. */
6572 #include <sys/types.h>
6573 /* Check that off_t can represent 2**63 - 1 correctly.
6574 We can't simply define LARGE_OFF_T to be 9223372036854775807,
6575 since some C++ compilers masquerading as C compilers
6576 incorrectly reject 9223372036854775807. */
6577 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
6578 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
6579 && LARGE_OFF_T % 2147483647 == 1)
6589 if ac_fn_c_try_compile
"$LINENO"; then :
6590 ac_cv_sys_large_files
=no
; break
6592 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
6593 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
6594 /* end confdefs.h. */
6595 #define _LARGE_FILES 1
6596 #include <sys/types.h>
6597 /* Check that off_t can represent 2**63 - 1 correctly.
6598 We can't simply define LARGE_OFF_T to be 9223372036854775807,
6599 since some C++ compilers masquerading as C compilers
6600 incorrectly reject 9223372036854775807. */
6601 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
6602 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
6603 && LARGE_OFF_T % 2147483647 == 1)
6613 if ac_fn_c_try_compile
"$LINENO"; then :
6614 ac_cv_sys_large_files
=1; break
6616 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
6617 ac_cv_sys_large_files
=unknown
6621 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_large_files" >&5
6622 $as_echo "$ac_cv_sys_large_files" >&6; }
6623 case $ac_cv_sys_large_files in #(
6626 cat >>confdefs.h
<<_ACEOF
6627 #define _LARGE_FILES $ac_cv_sys_large_files
6637 case $ac_cv_prog_cc_stdc in #(
6639 ac_cv_prog_cc_c99
=no
; ac_cv_prog_cc_c89
=no
;; #(
6641 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C99" >&5
6642 $as_echo_n "checking for $CC option to accept ISO C99... " >&6; }
6643 if test "${ac_cv_prog_cc_c99+set}" = set; then :
6644 $as_echo_n "(cached) " >&6
6646 ac_cv_prog_cc_c99
=no
6648 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
6649 /* end confdefs.h. */
6651 #include <stdbool.h>
6656 // Check varargs macros. These examples are taken from C99 6.10.3.5.
6657 #define debug(...) fprintf (stderr, __VA_ARGS__)
6658 #define showlist(...) puts (#__VA_ARGS__)
6659 #define report(test,...) ((test) ? puts (#test) : printf (__VA_ARGS__))
6661 test_varargs_macros (void)
6666 debug ("X = %d\n", x);
6667 showlist (The first, second, and third items.);
6668 report (x>y, "x is %d but y is %d", x, y);
6671 // Check long long types.
6672 #define BIG64 18446744073709551615ull
6673 #define BIG32 4294967295ul
6674 #define BIG_OK (BIG64 / BIG32 == 4294967297ull && BIG64 % BIG32 == 0)
6676 your preprocessor is broken;
6680 your preprocessor is broken;
6682 static long long int bignum = -9223372036854775807LL;
6683 static unsigned long long int ubignum = BIG64;
6685 struct incomplete_array
6693 const wchar_t *name;
6697 typedef const char *ccp;
6700 test_restrict (ccp restrict text)
6702 // See if C++-style comments work.
6703 // Iterate through items via the restricted pointer.
6704 // Also check for declarations in for loops.
6705 for (unsigned int i = 0; *(text+i) != '\0'; ++i)
6710 // Check varargs and va_copy.
6712 test_varargs (const char *format, ...)
6715 va_start (args, format);
6717 va_copy (args_copy, args);
6728 str = va_arg (args_copy, const char *);
6731 number = va_arg (args_copy, int);
6734 fnumber = va_arg (args_copy, double);
6749 _Bool success = false;
6752 if (test_restrict ("String literal") == 0)
6754 char *restrict newvar = "Another string";
6757 test_varargs ("s, d' f .", "string", 65, 34.234);
6758 test_varargs_macros ();
6760 // Check flexible array members.
6761 struct incomplete_array *ia =
6762 malloc (sizeof (struct incomplete_array) + (sizeof (double) * 10));
6764 for (int i = 0; i < ia->datasize; ++i)
6765 ia->data[i] = i * 1.234;
6767 // Check named initializers.
6768 struct named_init ni = {
6770 .name = L"Test wide string",
6771 .average = 543.34343,
6776 int dynamic_array[ni.number];
6777 dynamic_array[ni.number - 1] = 543;
6779 // work around unused variable warnings
6780 return (!success || bignum == 0LL || ubignum == 0uLL || newvar[0] == 'x'
6781 || dynamic_array[ni.number - 1] != 543);
6787 for ac_arg
in '' -std=gnu99
-std=c99
-c99 -AC99 -xc99=all
-qlanglvl=extc99
6789 CC
="$ac_save_CC $ac_arg"
6790 if ac_fn_c_try_compile
"$LINENO"; then :
6791 ac_cv_prog_cc_c99
=$ac_arg
6793 rm -f core conftest.err conftest.
$ac_objext
6794 test "x$ac_cv_prog_cc_c99" != "xno" && break
6796 rm -f conftest.
$ac_ext
6801 case "x$ac_cv_prog_cc_c99" in
6803 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
6804 $as_echo "none needed" >&6; } ;;
6806 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
6807 $as_echo "unsupported" >&6; } ;;
6809 CC
="$CC $ac_cv_prog_cc_c99"
6810 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c99" >&5
6811 $as_echo "$ac_cv_prog_cc_c99" >&6; } ;;
6813 if test "x$ac_cv_prog_cc_c99" != xno
; then :
6814 ac_cv_prog_cc_stdc
=$ac_cv_prog_cc_c99
6816 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
6817 $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
6818 if test "${ac_cv_prog_cc_c89+set}" = set; then :
6819 $as_echo_n "(cached) " >&6
6821 ac_cv_prog_cc_c89
=no
6823 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
6824 /* end confdefs.h. */
6827 #include <sys/types.h>
6828 #include <sys/stat.h>
6829 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
6830 struct buf { int x; };
6831 FILE * (*rcsopen) (struct buf *, struct stat *, int);
6832 static char *e (p, i)
6838 static char *f (char * (*g) (char **, int), char **p, ...)
6843 s = g (p, va_arg (v,int));
6848 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
6849 function prototypes and stuff, but not '\xHH' hex character constants.
6850 These don't provoke an error unfortunately, instead are silently treated
6851 as 'x'. The following induces an error, until -std is added to get
6852 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
6853 array size at least. It's necessary to write '\x00'==0 to get something
6854 that's true only with -std. */
6855 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
6857 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
6858 inside strings and character constants. */
6860 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
6862 int test (int i, double x);
6863 struct s1 {int (*f) (int a);};
6864 struct s2 {int (*f) (double a);};
6865 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
6871 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
6876 for ac_arg
in '' -qlanglvl=extc89
-qlanglvl=ansi
-std \
6877 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
6879 CC
="$ac_save_CC $ac_arg"
6880 if ac_fn_c_try_compile
"$LINENO"; then :
6881 ac_cv_prog_cc_c89
=$ac_arg
6883 rm -f core conftest.err conftest.
$ac_objext
6884 test "x$ac_cv_prog_cc_c89" != "xno" && break
6886 rm -f conftest.
$ac_ext
6891 case "x$ac_cv_prog_cc_c89" in
6893 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
6894 $as_echo "none needed" >&6; } ;;
6896 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
6897 $as_echo "unsupported" >&6; } ;;
6899 CC
="$CC $ac_cv_prog_cc_c89"
6900 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
6901 $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
6903 if test "x$ac_cv_prog_cc_c89" != xno
; then :
6904 ac_cv_prog_cc_stdc
=$ac_cv_prog_cc_c89
6906 ac_cv_prog_cc_stdc
=no
6912 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO Standard C" >&5
6913 $as_echo_n "checking for $CC option to accept ISO Standard C... " >&6; }
6914 if test "${ac_cv_prog_cc_stdc+set}" = set; then :
6915 $as_echo_n "(cached) " >&6
6918 case $ac_cv_prog_cc_stdc in #(
6920 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
6921 $as_echo "unsupported" >&6; } ;; #(
6923 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
6924 $as_echo "none needed" >&6; } ;; #(
6926 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_stdc" >&5
6927 $as_echo "$ac_cv_prog_cc_stdc" >&6; } ;;
6932 # Code from module alloca-opt:
6933 # Code from module allocator:
6934 # Code from module careadlinkat:
6935 # Code from module crypto/md5:
6936 # Code from module crypto/sha1:
6937 # Code from module crypto/sha256:
6938 # Code from module crypto/sha512:
6939 # Code from module dosname:
6940 # Code from module dtoastr:
6941 # Code from module dup2:
6942 # Code from module extensions:
6944 # Code from module filemode:
6945 # Code from module getloadavg:
6946 # Code from module getopt-gnu:
6947 # Code from module getopt-posix:
6948 # Code from module gettext-h:
6949 # Code from module ignore-value:
6950 # Code from module include_next:
6951 # Code from module intprops:
6952 # Code from module inttypes-incomplete:
6953 # Code from module largefile:
6955 # Code from module lstat:
6956 # Code from module mktime:
6957 # Code from module multiarch:
6958 # Code from module nocrash:
6959 # Code from module pthread_sigmask:
6960 # Code from module readlink:
6961 # Code from module signal-h:
6962 # Code from module sigprocmask:
6963 # Code from module snippet/_Noreturn:
6964 # Code from module snippet/arg-nonnull:
6965 # Code from module snippet/c++defs:
6966 # Code from module snippet/warn-on-use:
6967 # Code from module socklen:
6968 # Code from module ssize_t:
6969 # Code from module stat:
6970 # Code from module stdarg:
6974 # Code from module stdbool:
6975 # Code from module stddef:
6976 # Code from module stdint:
6977 # Code from module stdio:
6978 # Code from module stdlib:
6979 # Code from module strftime:
6980 # Code from module strtoimax:
6981 # Code from module strtoll:
6982 # Code from module strtoull:
6983 # Code from module strtoumax:
6984 # Code from module symlink:
6985 # Code from module sys_stat:
6986 # Code from module time:
6987 # Code from module time_r:
6988 # Code from module u64:
6989 # Code from module unistd:
6990 # Code from module verify:
6993 # On Suns, sometimes $CPP names a directory.
6994 if test -n "$CPP" && test -d "$CPP"; then
6998 ## If not using gcc, and on Solaris, and no CPP specified, see if
6999 ## using a Sun compiler, which needs -Xs to prevent whitespace.
7000 if test x
"$GCC" != xyes
&& test x
"$emacs_check_sunpro_c" = xyes
&& \
7001 test x
"$CPP" = x
; then
7002 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using a Sun C compiler" >&5
7003 $as_echo_n "checking whether we are using a Sun C compiler... " >&6; }
7004 if test "${emacs_cv_sunpro_c+set}" = set; then :
7005 $as_echo_n "(cached) " >&6
7007 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
7008 /* end confdefs.h. */
7021 if ac_fn_c_try_link
"$LINENO"; then :
7022 emacs_cv_sunpro_c
=yes
7024 emacs_cv_sunpro_c
=no
7026 rm -f core conftest.err conftest.
$ac_objext \
7027 conftest
$ac_exeext conftest.
$ac_ext
7030 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $emacs_cv_sunpro_c" >&5
7031 $as_echo "$emacs_cv_sunpro_c" >&6; }
7033 if test x
"$emacs_cv_sunpro_c" = xyes
; then
7034 NON_GNU_CPP
="$CC -E -Xs"
7038 #### Some systems specify a CPP to use unless we are using GCC.
7039 #### Now that we know whether we are using GCC, we can decide whether
7040 #### to use that one.
7041 if test "x$NON_GNU_CPP" != x
&& test x
$GCC != xyes
&& test "x$CPP" = x
7046 #### Some systems specify a CC to use unless we are using GCC.
7047 #### Now that we know whether we are using GCC, we can decide whether
7048 #### to use that one.
7049 if test "x$NON_GNU_CC" != x
&& test x
$GCC != xyes
&&
7050 test x
$cc_specified != xyes
7055 if test x
$GCC = xyes
; then
7056 test "x$GCC_TEST_OPTIONS" != x
&& CC
="$CC $GCC_TEST_OPTIONS"
7058 test "x$NON_GCC_TEST_OPTIONS" != x
&& CC
="$CC $NON_GCC_TEST_OPTIONS"
7061 ### Use -Wdeclaration-after-statement if the compiler supports it
7062 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether gcc understands -Wdeclaration-after-statement" >&5
7063 $as_echo_n "checking whether gcc understands -Wdeclaration-after-statement... " >&6; }
7064 SAVE_CFLAGS
="$CFLAGS"
7065 CFLAGS
="$CFLAGS -Wdeclaration-after-statement"
7066 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
7067 /* end confdefs.h. */
7077 if ac_fn_c_try_compile
"$LINENO"; then :
7082 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
7083 if test $has_option = yes; then
7084 C_WARNINGS_SWITCH
="-Wdeclaration-after-statement $C_WARNINGS_SWITCH"
7086 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $has_option" >&5
7087 $as_echo "$has_option" >&6; }
7088 CFLAGS
="$SAVE_CFLAGS"
7092 ### Use -Wold-style-definition if the compiler supports it
7093 # This can be removed when conversion to standard C is finished.
7094 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether gcc understands -Wold-style-definition" >&5
7095 $as_echo_n "checking whether gcc understands -Wold-style-definition... " >&6; }
7096 SAVE_CFLAGS
="$CFLAGS"
7097 CFLAGS
="$CFLAGS -Wold-style-definition"
7098 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
7099 /* end confdefs.h. */
7109 if ac_fn_c_try_compile
"$LINENO"; then :
7114 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
7115 if test $has_option = yes; then
7116 C_WARNINGS_SWITCH
="-Wold-style-definition $C_WARNINGS_SWITCH"
7118 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $has_option" >&5
7119 $as_echo "$has_option" >&6; }
7120 CFLAGS
="$SAVE_CFLAGS"
7124 ### Use -Wimplicit-function-declaration if the compiler supports it
7125 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether gcc understands -Wimplicit-function-declaration" >&5
7126 $as_echo_n "checking whether gcc understands -Wimplicit-function-declaration... " >&6; }
7127 SAVE_CFLAGS
="$CFLAGS"
7128 CFLAGS
="$CFLAGS -Wimplicit-function-declaration"
7129 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
7130 /* end confdefs.h. */
7140 if ac_fn_c_try_compile
"$LINENO"; then :
7145 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
7146 if test $has_option = yes; then
7147 C_WARNINGS_SWITCH
="-Wimplicit-function-declaration $C_WARNINGS_SWITCH"
7149 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $has_option" >&5
7150 $as_echo "$has_option" >&6; }
7151 CFLAGS
="$SAVE_CFLAGS"
7158 #### Some other nice autoconf tests.
7161 ac_cpp
='$CPP $CPPFLAGS'
7162 ac_compile
='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7163 ac_link
='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7164 ac_compiler_gnu
=$ac_cv_c_compiler_gnu
7165 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
7166 $as_echo_n "checking how to run the C preprocessor... " >&6; }
7167 # On Suns, sometimes $CPP names a directory.
7168 if test -n "$CPP" && test -d "$CPP"; then
7171 if test -z "$CPP"; then
7172 if test "${ac_cv_prog_CPP+set}" = set; then :
7173 $as_echo_n "(cached) " >&6
7175 # Double quotes because CPP needs to be expanded
7176 for CPP
in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
7179 for ac_c_preproc_warn_flag
in '' yes
7181 # Use a header file that comes with gcc, so configuring glibc
7182 # with a fresh cross-compiler works.
7183 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
7184 # <limits.h> exists even on freestanding compilers.
7185 # On the NeXT, cc -E runs the code through the compiler's parser,
7186 # not just through cpp. "Syntax error" is here to catch this case.
7187 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
7188 /* end confdefs.h. */
7190 # include <limits.h>
7192 # include <assert.h>
7196 if ac_fn_c_try_cpp
"$LINENO"; then :
7199 # Broken: fails on valid input.
7202 rm -f conftest.err conftest.
$ac_ext
7204 # OK, works on sane cases. Now check whether nonexistent headers
7205 # can be detected and how.
7206 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
7207 /* end confdefs.h. */
7208 #include <ac_nonexistent.h>
7210 if ac_fn_c_try_cpp
"$LINENO"; then :
7211 # Broken: success on invalid input.
7214 # Passes both tests.
7218 rm -f conftest.err conftest.
$ac_ext
7221 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
7222 rm -f conftest.err conftest.
$ac_ext
7223 if $ac_preproc_ok; then :
7235 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
7236 $as_echo "$CPP" >&6; }
7238 for ac_c_preproc_warn_flag
in '' yes
7240 # Use a header file that comes with gcc, so configuring glibc
7241 # with a fresh cross-compiler works.
7242 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
7243 # <limits.h> exists even on freestanding compilers.
7244 # On the NeXT, cc -E runs the code through the compiler's parser,
7245 # not just through cpp. "Syntax error" is here to catch this case.
7246 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
7247 /* end confdefs.h. */
7249 # include <limits.h>
7251 # include <assert.h>
7255 if ac_fn_c_try_cpp
"$LINENO"; then :
7258 # Broken: fails on valid input.
7261 rm -f conftest.err conftest.
$ac_ext
7263 # OK, works on sane cases. Now check whether nonexistent headers
7264 # can be detected and how.
7265 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
7266 /* end confdefs.h. */
7267 #include <ac_nonexistent.h>
7269 if ac_fn_c_try_cpp
"$LINENO"; then :
7270 # Broken: success on invalid input.
7273 # Passes both tests.
7277 rm -f conftest.err conftest.
$ac_ext
7280 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
7281 rm -f conftest.err conftest.
$ac_ext
7282 if $ac_preproc_ok; then :
7285 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
7286 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
7287 as_fn_error
"C preprocessor \"$CPP\" fails sanity check
7288 See \`config.log' for more details." "$LINENO" 5; }
7292 ac_cpp
='$CPP $CPPFLAGS'
7293 ac_compile
='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7294 ac_link
='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7295 ac_compiler_gnu
=$ac_cv_c_compiler_gnu
7298 if test "x$RANLIB" = x
; then
7299 if test -n "$ac_tool_prefix"; then
7300 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
7301 set dummy
${ac_tool_prefix}ranlib
; ac_word
=$2
7302 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7303 $as_echo_n "checking for $ac_word... " >&6; }
7304 if test "${ac_cv_prog_RANLIB+set}" = set; then :
7305 $as_echo_n "(cached) " >&6
7307 if test -n "$RANLIB"; then
7308 ac_cv_prog_RANLIB
="$RANLIB" # Let the user override the test.
7310 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
7314 test -z "$as_dir" && as_dir
=.
7315 for ac_exec_ext
in '' $ac_executable_extensions; do
7316 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7317 ac_cv_prog_RANLIB
="${ac_tool_prefix}ranlib"
7318 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7327 RANLIB
=$ac_cv_prog_RANLIB
7328 if test -n "$RANLIB"; then
7329 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
7330 $as_echo "$RANLIB" >&6; }
7332 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7333 $as_echo "no" >&6; }
7338 if test -z "$ac_cv_prog_RANLIB"; then
7339 ac_ct_RANLIB
=$RANLIB
7340 # Extract the first word of "ranlib", so it can be a program name with args.
7341 set dummy ranlib
; ac_word
=$2
7342 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7343 $as_echo_n "checking for $ac_word... " >&6; }
7344 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then :
7345 $as_echo_n "(cached) " >&6
7347 if test -n "$ac_ct_RANLIB"; then
7348 ac_cv_prog_ac_ct_RANLIB
="$ac_ct_RANLIB" # Let the user override the test.
7350 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
7354 test -z "$as_dir" && as_dir
=.
7355 for ac_exec_ext
in '' $ac_executable_extensions; do
7356 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7357 ac_cv_prog_ac_ct_RANLIB
="ranlib"
7358 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7367 ac_ct_RANLIB
=$ac_cv_prog_ac_ct_RANLIB
7368 if test -n "$ac_ct_RANLIB"; then
7369 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
7370 $as_echo "$ac_ct_RANLIB" >&6; }
7372 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7373 $as_echo "no" >&6; }
7376 if test "x$ac_ct_RANLIB" = x
; then
7379 case $cross_compiling:$ac_tool_warned in
7381 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7382 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7383 ac_tool_warned
=yes ;;
7385 RANLIB
=$ac_ct_RANLIB
7388 RANLIB
="$ac_cv_prog_RANLIB"
7393 ## Although we're running on an amd64 kernel, we're actually compiling for
7394 ## the x86 architecture. The user should probably have provided an
7395 ## explicit --build to `configure', but if everything else than the kernel
7396 ## is running in i386 mode, we can help them out.
7397 if test "$machine" = "amdx86-64"; then
7398 ac_fn_c_check_decl
"$LINENO" "i386" "ac_cv_have_decl_i386" "$ac_includes_default"
7399 if test "x$ac_cv_have_decl_i386" = x
""yes; then :
7403 if test "$ac_cv_have_decl_i386" = "yes"; then
7404 canonical
=`echo "$canonical" | sed -e 's/^amd64/i386/' -e 's/^x86_64/i386/'`
7406 machfile
="m/${machine}.h"
7410 # Extract the first word of "install-info", so it can be a program name with args.
7411 set dummy install-info
; ac_word
=$2
7412 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7413 $as_echo_n "checking for $ac_word... " >&6; }
7414 if test "${ac_cv_path_INSTALL_INFO+set}" = set; then :
7415 $as_echo_n "(cached) " >&6
7417 case $INSTALL_INFO in
7419 ac_cv_path_INSTALL_INFO
="$INSTALL_INFO" # Let the user override the test with a path.
7422 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
7426 test -z "$as_dir" && as_dir
=.
7427 for ac_exec_ext
in '' $ac_executable_extensions; do
7428 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7429 ac_cv_path_INSTALL_INFO
="$as_dir/$ac_word$ac_exec_ext"
7430 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7440 INSTALL_INFO
=$ac_cv_path_INSTALL_INFO
7441 if test -n "$INSTALL_INFO"; then
7442 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL_INFO" >&5
7443 $as_echo "$INSTALL_INFO" >&6; }
7445 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7446 $as_echo "no" >&6; }
7450 # Extract the first word of "install-info", so it can be a program name with args.
7451 set dummy install-info
; ac_word
=$2
7452 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7453 $as_echo_n "checking for $ac_word... " >&6; }
7454 if test "${ac_cv_path_INSTALL_INFO+set}" = set; then :
7455 $as_echo_n "(cached) " >&6
7457 case $INSTALL_INFO in
7459 ac_cv_path_INSTALL_INFO
="$INSTALL_INFO" # Let the user override the test with a path.
7462 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
7463 for as_dir
in /usr
/sbin
7466 test -z "$as_dir" && as_dir
=.
7467 for ac_exec_ext
in '' $ac_executable_extensions; do
7468 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7469 ac_cv_path_INSTALL_INFO
="$as_dir/$ac_word$ac_exec_ext"
7470 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7480 INSTALL_INFO
=$ac_cv_path_INSTALL_INFO
7481 if test -n "$INSTALL_INFO"; then
7482 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL_INFO" >&5
7483 $as_echo "$INSTALL_INFO" >&6; }
7485 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7486 $as_echo "no" >&6; }
7490 # Extract the first word of "install-info", so it can be a program name with args.
7491 set dummy install-info
; ac_word
=$2
7492 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7493 $as_echo_n "checking for $ac_word... " >&6; }
7494 if test "${ac_cv_path_INSTALL_INFO+set}" = set; then :
7495 $as_echo_n "(cached) " >&6
7497 case $INSTALL_INFO in
7499 ac_cv_path_INSTALL_INFO
="$INSTALL_INFO" # Let the user override the test with a path.
7502 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
7506 test -z "$as_dir" && as_dir
=.
7507 for ac_exec_ext
in '' $ac_executable_extensions; do
7508 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7509 ac_cv_path_INSTALL_INFO
="$as_dir/$ac_word$ac_exec_ext"
7510 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7517 test -z "$ac_cv_path_INSTALL_INFO" && ac_cv_path_INSTALL_INFO
=":"
7521 INSTALL_INFO
=$ac_cv_path_INSTALL_INFO
7522 if test -n "$INSTALL_INFO"; then
7523 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL_INFO" >&5
7524 $as_echo "$INSTALL_INFO" >&6; }
7526 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7527 $as_echo "no" >&6; }
7531 # Extract the first word of "gzip", so it can be a program name with args.
7532 set dummy
gzip; ac_word
=$2
7533 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7534 $as_echo_n "checking for $ac_word... " >&6; }
7535 if test "${ac_cv_path_GZIP_PROG+set}" = set; then :
7536 $as_echo_n "(cached) " >&6
7540 ac_cv_path_GZIP_PROG
="$GZIP_PROG" # Let the user override the test with a path.
7543 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
7547 test -z "$as_dir" && as_dir
=.
7548 for ac_exec_ext
in '' $ac_executable_extensions; do
7549 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7550 ac_cv_path_GZIP_PROG
="$as_dir/$ac_word$ac_exec_ext"
7551 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7561 GZIP_PROG
=$ac_cv_path_GZIP_PROG
7562 if test -n "$GZIP_PROG"; then
7563 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GZIP_PROG" >&5
7564 $as_echo "$GZIP_PROG" >&6; }
7566 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7567 $as_echo "no" >&6; }
7573 ## Need makeinfo >= 4.6 (?) to build the manuals.
7574 # Extract the first word of "makeinfo", so it can be a program name with args.
7575 set dummy makeinfo
; ac_word
=$2
7576 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7577 $as_echo_n "checking for $ac_word... " >&6; }
7578 if test "${ac_cv_path_MAKEINFO+set}" = set; then :
7579 $as_echo_n "(cached) " >&6
7583 ac_cv_path_MAKEINFO
="$MAKEINFO" # Let the user override the test with a path.
7586 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
7590 test -z "$as_dir" && as_dir
=.
7591 for ac_exec_ext
in '' $ac_executable_extensions; do
7592 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7593 ac_cv_path_MAKEINFO
="$as_dir/$ac_word$ac_exec_ext"
7594 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7601 test -z "$ac_cv_path_MAKEINFO" && ac_cv_path_MAKEINFO
="no"
7605 MAKEINFO
=$ac_cv_path_MAKEINFO
7606 if test -n "$MAKEINFO"; then
7607 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAKEINFO" >&5
7608 $as_echo "$MAKEINFO" >&6; }
7610 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7611 $as_echo "no" >&6; }
7615 if test "$MAKEINFO" != "no" && \
7616 test x
"`$MAKEINFO --version 2> /dev/null | $EGREP 'texinfo[^0-9]*([1-4][0-9]+|[5-9]|4\.[6-9]|4\.[1-5][0-9]+)'`" = x
; then
7620 ## Makeinfo is unusual. For a released Emacs, the manuals are
7621 ## pre-built, and not deleted by the normal clean rules. makeinfo is
7622 ## therefore in the category of "special tools" not normally required, which
7623 ## configure does not have to check for (eg autoconf itself).
7624 ## In a Bazaar checkout on the other hand, the manuals are not included.
7625 ## So makeinfo is a requirement to build from Bazaar, and configure
7626 ## should test for it as it does for any other build requirement.
7627 ## We use the presence of $srcdir/info/emacs to distinguish a release,
7628 ## with pre-built manuals, from a Bazaar checkout.
7631 if test "$MAKEINFO" = "no"; then
7633 if test "x${with_makeinfo}" = "xno"; then
7635 elif test ! -e $srcdir/info
/emacs
; then
7636 as_fn_error
"You do not seem to have makeinfo >= 4.6, and your
7637 source tree does not seem to have pre-built manuals in the \`info' directory.
7638 Either install a suitable version of makeinfo, or re-run configure
7639 with the \`--without-makeinfo' option to build without the manuals. " "$LINENO" 5
7645 if test x
$GCC = xyes
; then
7646 test "x$GCC_LINK_TEST_OPTIONS" != x
&& \
7647 ac_link
="$ac_link $GCC_LINK_TEST_OPTIONS"
7649 test "x$NON_GCC_LINK_TEST_OPTIONS" != x
&& \
7650 ac_link
="$ac_link $NON_GCC_LINK_TEST_OPTIONS"
7654 late_LDFLAGS
=$LDFLAGS
7655 if test x
$GCC = xyes
; then
7656 LDFLAGS
="$LDFLAGS -Wl,-znocombreloc"
7658 LDFLAGS
="$LDFLAGS -znocombreloc"
7661 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -znocombreloc" >&5
7662 $as_echo_n "checking for -znocombreloc... " >&6; }
7663 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
7664 /* end confdefs.h. */
7674 if ac_fn_c_try_link
"$LINENO"; then :
7675 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
7676 $as_echo "yes" >&6; }
7678 LDFLAGS
=$late_LDFLAGS
7679 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7680 $as_echo "no" >&6; }
7682 rm -f core conftest.err conftest.
$ac_objext \
7683 conftest
$ac_exeext conftest.
$ac_ext
7686 # The value of CPP is a quoted variable reference, so we need to do this
7687 # to get its actual value...
7688 CPP
=`eval "echo $CPP"`
7691 test "x$CANNOT_DUMP" = "x" && CANNOT_DUMP
=no
7693 your-opsys-here
) CANNOT_DUMP
=yes ;;
7696 test "$CANNOT_DUMP" = "yes" && \
7698 $as_echo "#define CANNOT_DUMP 1" >>confdefs.h
7704 UNEXEC_OBJ
=unexelf.o
7706 # MSDOS uses unexcoff.o
7707 # MSWindows uses unexw32.o
7709 UNEXEC_OBJ
=unexaix.o
7715 UNEXEC_OBJ
=unexmacosx.o
7718 UNEXEC_OBJ
=unexhp9k800.o
7721 # Use the Solaris dldump() function, called from unexsol.c, to dump
7722 # emacs, instead of the generic ELF dump code found in unexelf.c.
7723 # The resulting binary has a complete symbol table, and is better
7724 # for debugging and other observability tools (debuggers, pstack, etc).
7726 # If you encounter a problem using dldump(), please consider sending
7727 # a message to the OpenSolaris tools-linking mailing list:
7728 # http://mail.opensolaris.org/mailman/listinfo/tools-linking
7730 # It is likely that dldump() works with older Solaris too, but this has
7731 # not been tested, so for now this change is for Solaris 10 or newer.
7732 UNEXEC_OBJ
=unexsol.o
7739 ## Let `ld' find image libs and similar things in /usr/local/lib.
7740 ## The system compiler, GCC, has apparently been modified to not
7741 ## look there, contrary to what a stock GCC would do.
7742 LD_SWITCH_SYSTEM
=-L/usr
/local
/lib
7746 ## cpp test was "ifdef __mips__", but presumably this is equivalent...
7747 case $host_cpu in mips
*) LD_SWITCH_SYSTEM
="-G 0";; esac
7751 LD_SWITCH_SYSTEM
="-Wl,-rpath,/usr/pkg/lib -L/usr/pkg/lib -Wl,-rpath,/usr/local/lib -L/usr/local/lib"
7755 ## Han Boetes <han@mijncomputer.nl> says this is necessary,
7756 ## otherwise Emacs dumps core on elf systems.
7757 LD_SWITCH_SYSTEM
="-Z"
7762 ac_link
="$ac_link $LD_SWITCH_SYSTEM"
7764 ## This setting of LD_SWITCH_SYSTEM references LD_SWITCH_X_SITE_AUX,
7765 ## which has not been defined yet. When this was handled with cpp,
7766 ## it was expanded to null when configure sourced the s/*.h file.
7767 ## Thus LD_SWITCH_SYSTEM had different values in configure and the Makefiles.
7768 ## FIXME it would be cleaner to put this in LD_SWITCH_SYSTEM_TEMACS
7769 ## (or somesuch), but because it is supposed to go at the _front_
7770 ## of LD_SWITCH_SYSTEM, we cannot do that in exactly the same way.
7771 ## Compare with the gnu-linux case below, which added to the end
7772 ## of LD_SWITCH_SYSTEM, and so can instead go at the front of
7773 ## LD_SWITCH_SYSTEM_TEMACS.
7776 ## _AUX_RPATH is like _AUX, but uses -rpath instead of -R.
7777 LD_SWITCH_SYSTEM
="\$(LD_SWITCH_X_SITE_AUX_RPATH) $LD_SWITCH_SYSTEM" ;;
7782 if test "$machine" = "alpha"; then
7783 ac_fn_c_check_decl
"$LINENO" "__ELF__" "ac_cv_have_decl___ELF__" "$ac_includes_default"
7784 if test "x$ac_cv_have_decl___ELF__" = x
""yes; then :
7788 if test "$ac_cv_have_decl___ELF__" = "yes"; then
7789 ## With ELF, make sure that all common symbols get allocated to in the
7790 ## data section. Otherwise, the dump of temacs may miss variables in
7791 ## the shared library that have been initialized. For example, with
7792 ## GNU libc, __malloc_initialized would normally be resolved to the
7793 ## shared library's .bss section, which is fatal.
7794 if test "x$GCC" = "xyes"; then
7795 C_SWITCH_MACHINE
="-fno-common"
7797 as_fn_error
"What gives? Fix me if DEC Unix supports ELF now." "$LINENO" 5
7800 UNEXEC_OBJ
=unexalpha.o
7808 ## Some programs in src produce warnings saying certain subprograms
7809 ## are too complex and need a MAXMEM value greater than 2000 for
7810 ## additional optimization. --nils@exp-math.uni-essen.de
7811 test "$opsys" = "aix4.2" && test "x$GCC" != "xyes" && \
7812 C_SWITCH_SYSTEM
="-ma -qmaxmem=4000"
7813 ## gnu-linux might need -D_BSD_SOURCE on old libc5 systems.
7814 ## It is redundant in glibc2, since we define _GNU_SOURCE.
7820 ## IBM's X11R5 uses -lIM and -liconv in AIX 3.2.2.
7821 aix4-2
) LIBS_SYSTEM
="-lrts -lIM -liconv" ;;
7823 freebsd
) LIBS_SYSTEM
="-lutil" ;;
7825 hpux
*) LIBS_SYSTEM
="-l:libdld.sl" ;;
7827 sol2
*) LIBS_SYSTEM
="-lsocket -lnsl" ;;
7829 ## Motif needs -lgen.
7830 unixware
) LIBS_SYSTEM
="-lsocket -lnsl -lelf -lgen" ;;
7835 ### Make sure subsequent tests use flags consistent with the build flags.
7837 if test x
"${OVERRIDE_CPPFLAGS}" != x
; then
7838 CPPFLAGS
="${OVERRIDE_CPPFLAGS}"
7840 CPPFLAGS
="$C_SWITCH_SYSTEM $C_SWITCH_MACHINE $CPPFLAGS"
7843 # Suppress obsolescent Autoconf test for size_t; Emacs assumes C89 or better.
7845 # Likewise for obsolescent test for uid_t, gid_t; Emacs assumes them.
7848 # Check whether --enable-largefile was given.
7849 if test "${enable_largefile+set}" = set; then :
7850 enableval
=$enable_largefile;
7853 if test "$enable_largefile" != no
; then
7855 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for special C compiler options needed for large files" >&5
7856 $as_echo_n "checking for special C compiler options needed for large files... " >&6; }
7857 if test "${ac_cv_sys_largefile_CC+set}" = set; then :
7858 $as_echo_n "(cached) " >&6
7860 ac_cv_sys_largefile_CC
=no
7861 if test "$GCC" != yes; then
7864 # IRIX 6.2 and later do not support large files by default,
7865 # so use the C compiler's -n32 option if that helps.
7866 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
7867 /* end confdefs.h. */
7868 #include <sys/types.h>
7869 /* Check that off_t can represent 2**63 - 1 correctly.
7870 We can't simply define LARGE_OFF_T to be 9223372036854775807,
7871 since some C++ compilers masquerading as C compilers
7872 incorrectly reject 9223372036854775807. */
7873 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
7874 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
7875 && LARGE_OFF_T % 2147483647 == 1)
7885 if ac_fn_c_try_compile
"$LINENO"; then :
7888 rm -f core conftest.err conftest.
$ac_objext
7890 if ac_fn_c_try_compile
"$LINENO"; then :
7891 ac_cv_sys_largefile_CC
=' -n32'; break
7893 rm -f core conftest.err conftest.
$ac_objext
7897 rm -f conftest.
$ac_ext
7900 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_largefile_CC" >&5
7901 $as_echo "$ac_cv_sys_largefile_CC" >&6; }
7902 if test "$ac_cv_sys_largefile_CC" != no
; then
7903 CC
=$CC$ac_cv_sys_largefile_CC
7906 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _FILE_OFFSET_BITS value needed for large files" >&5
7907 $as_echo_n "checking for _FILE_OFFSET_BITS value needed for large files... " >&6; }
7908 if test "${ac_cv_sys_file_offset_bits+set}" = set; then :
7909 $as_echo_n "(cached) " >&6
7912 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
7913 /* end confdefs.h. */
7914 #include <sys/types.h>
7915 /* Check that off_t can represent 2**63 - 1 correctly.
7916 We can't simply define LARGE_OFF_T to be 9223372036854775807,
7917 since some C++ compilers masquerading as C compilers
7918 incorrectly reject 9223372036854775807. */
7919 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
7920 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
7921 && LARGE_OFF_T % 2147483647 == 1)
7931 if ac_fn_c_try_compile
"$LINENO"; then :
7932 ac_cv_sys_file_offset_bits
=no
; break
7934 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
7935 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
7936 /* end confdefs.h. */
7937 #define _FILE_OFFSET_BITS 64
7938 #include <sys/types.h>
7939 /* Check that off_t can represent 2**63 - 1 correctly.
7940 We can't simply define LARGE_OFF_T to be 9223372036854775807,
7941 since some C++ compilers masquerading as C compilers
7942 incorrectly reject 9223372036854775807. */
7943 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
7944 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
7945 && LARGE_OFF_T % 2147483647 == 1)
7955 if ac_fn_c_try_compile
"$LINENO"; then :
7956 ac_cv_sys_file_offset_bits
=64; break
7958 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
7959 ac_cv_sys_file_offset_bits
=unknown
7963 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_file_offset_bits" >&5
7964 $as_echo "$ac_cv_sys_file_offset_bits" >&6; }
7965 case $ac_cv_sys_file_offset_bits in #(
7968 cat >>confdefs.h
<<_ACEOF
7969 #define _FILE_OFFSET_BITS $ac_cv_sys_file_offset_bits
7974 if test $ac_cv_sys_file_offset_bits = unknown
; then
7975 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _LARGE_FILES value needed for large files" >&5
7976 $as_echo_n "checking for _LARGE_FILES value needed for large files... " >&6; }
7977 if test "${ac_cv_sys_large_files+set}" = set; then :
7978 $as_echo_n "(cached) " >&6
7981 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
7982 /* end confdefs.h. */
7983 #include <sys/types.h>
7984 /* Check that off_t can represent 2**63 - 1 correctly.
7985 We can't simply define LARGE_OFF_T to be 9223372036854775807,
7986 since some C++ compilers masquerading as C compilers
7987 incorrectly reject 9223372036854775807. */
7988 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
7989 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
7990 && LARGE_OFF_T % 2147483647 == 1)
8000 if ac_fn_c_try_compile
"$LINENO"; then :
8001 ac_cv_sys_large_files
=no
; break
8003 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
8004 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
8005 /* end confdefs.h. */
8006 #define _LARGE_FILES 1
8007 #include <sys/types.h>
8008 /* Check that off_t can represent 2**63 - 1 correctly.
8009 We can't simply define LARGE_OFF_T to be 9223372036854775807,
8010 since some C++ compilers masquerading as C compilers
8011 incorrectly reject 9223372036854775807. */
8012 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
8013 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
8014 && LARGE_OFF_T % 2147483647 == 1)
8024 if ac_fn_c_try_compile
"$LINENO"; then :
8025 ac_cv_sys_large_files
=1; break
8027 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
8028 ac_cv_sys_large_files
=unknown
8032 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_large_files" >&5
8033 $as_echo "$ac_cv_sys_large_files" >&6; }
8034 case $ac_cv_sys_large_files in #(
8037 cat >>confdefs.h
<<_ACEOF
8038 #define _LARGE_FILES $ac_cv_sys_large_files
8057 START_FILES
='pre-crt0.o'
8060 ## Adding -lm confuses the dynamic linker, so omit it.
8062 START_FILES
='pre-crt0.o'
8065 LIB_STANDARD
='-lgcc -lc -lgcc $(CRT_DIR)/crtend.o $(CRT_DIR)/crtn.o'
8066 START_FILES
='pre-crt0.o $(CRT_DIR)/crt1.o $(CRT_DIR)/crti.o $(CRT_DIR)/crtbegin.o'
8068 gnu-linux | gnu-kfreebsd
)
8069 LIB_STANDARD
='-lgcc -lc -lgcc $(CRT_DIR)/crtn.o'
8070 START_FILES
='pre-crt0.o $(CRT_DIR)/crt1.o $(CRT_DIR)/crti.o'
8072 hpux10-20 | hpux11
)
8074 START_FILES
='pre-crt0.o $(CRT_DIR)/crt0.o'
8077 LIB_STANDARD
='-lgcc -lc -lgcc $(CRT_DIR)/crtend.o'
8078 START_FILES
='pre-crt0.o $(CRT_DIR)/crt0.o $(CRT_DIR)/crtbegin.o'
8087 for file in x
$LIB_STANDARD $START_FILES; do
8089 *CRT_DIR
*) crt_files
="$crt_files `echo $file | sed -e 's|.*/||'`" ;;
8093 if test "x$crt_files" != x
; then
8095 ## If user specified a crt-dir, use that unconditionally.
8098 if test "X$CRT_DIR" = "X"; then
8100 CRT_DIR
=/usr
/lib
# default
8102 case "$canonical" in
8103 x86_64-
*-linux-gnu* | s390x-
*-linux-gnu*)
8104 ## On x86-64 and s390x GNU/Linux distributions, the standard library
8105 ## can be in a variety of places. We only try /usr/lib64 and /usr/lib.
8106 ## For anything else (eg /usr/lib32), it is up the user to specify
8107 ## the location (bug#5655).
8108 ## Test for crtn.o, not just the directory, because sometimes the
8109 ## directory exists but does not have the relevant files (bug#1287).
8110 ## FIXME better to test for binary compatibility somehow.
8111 test -e /usr
/lib64
/crtn.o
&& CRT_DIR
=/usr
/lib64
8114 powerpc64-
*-linux-gnu* | sparc64-
*-linux-gnu*) CRT_DIR
=/usr
/lib64
;;
8118 hpux10-20
) CRT_DIR
=/lib
;;
8121 test "x${GCC}" = xyes
&& crt_gcc
=yes
8127 for file in $crt_files; do
8129 ## If we're using gcc, try to determine it automatically by asking
8130 ## gcc. [If this doesn't work, CRT_DIR will remain at the
8131 ## system-dependent default from above.]
8132 if test $crt_gcc = yes && test ! -e $CRT_DIR/$file; then
8134 crt_file
=`$CC --print-file-name=$file 2>/dev/null`
8137 CRT_DIR
=`$as_dirname -- "$crt_file" ||
8138 $as_expr X"$crt_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
8139 X"$crt_file" : 'X\(//\)[^/]' \| \
8140 X"$crt_file" : 'X\(//\)$' \| \
8141 X"$crt_file" : 'X\(/\)' \| . 2>/dev/null ||
8142 $as_echo X"$crt_file" |
8143 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
8166 test -e $CRT_DIR/$file || crt_missing
="$crt_missing $file"
8169 test "x$crt_missing" = x || \
8170 as_fn_error
"Required file(s) not found:$crt_missing
8171 Try using the --with-crt-dir option." "$LINENO" 5
8173 fi # crt_files != ""
8179 if test -f $CRT_DIR/crti.o
; then
8181 test -f $CRT_DIR/crtn.o || \
8182 as_fn_error
"Required file not found: crtn.o" "$LINENO" 5
8184 LIB_STANDARD
='-lgcc -lc -lgcc $(CRT_DIR)/crtend.o $(CRT_DIR)/crtn.o'
8185 START_FILES
='pre-crt0.o $(CRT_DIR)/crt0.o $(CRT_DIR)/crti.o $(CRT_DIR)/crtbegin.o'
8194 if test "${with_sound}" != "no"; then
8195 # Sound support for GNU/Linux and the free BSDs.
8196 for ac_header
in machine
/soundcard.h sys
/soundcard.h soundcard.h
8198 as_ac_Header
=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
8199 ac_fn_c_check_header_mongrel
"$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
8200 eval as_val
=\$
$as_ac_Header
8201 if test "x$as_val" = x
""yes; then :
8202 cat >>confdefs.h
<<_ACEOF
8203 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
8205 have_sound_header
=yes
8210 # Emulation library used on NetBSD.
8211 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _oss_ioctl in -lossaudio" >&5
8212 $as_echo_n "checking for _oss_ioctl in -lossaudio... " >&6; }
8213 if test "${ac_cv_lib_ossaudio__oss_ioctl+set}" = set; then :
8214 $as_echo_n "(cached) " >&6
8216 ac_check_lib_save_LIBS
=$LIBS
8217 LIBS
="-lossaudio $LIBS"
8218 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
8219 /* end confdefs.h. */
8221 /* Override any GCC internal prototype to avoid an error.
8222 Use char because int might match the return type of a GCC
8223 builtin and then its argument prototype would still apply. */
8231 return _oss_ioctl ();
8236 if ac_fn_c_try_link
"$LINENO"; then :
8237 ac_cv_lib_ossaudio__oss_ioctl
=yes
8239 ac_cv_lib_ossaudio__oss_ioctl
=no
8241 rm -f core conftest.err conftest.
$ac_objext \
8242 conftest
$ac_exeext conftest.
$ac_ext
8243 LIBS
=$ac_check_lib_save_LIBS
8245 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_ossaudio__oss_ioctl" >&5
8246 $as_echo "$ac_cv_lib_ossaudio__oss_ioctl" >&6; }
8247 if test "x$ac_cv_lib_ossaudio__oss_ioctl" = x
""yes; then :
8256 ALSA_MODULES
="alsa >= $ALSA_REQUIRED"
8260 # Extract the first word of "pkg-config", so it can be a program name with args.
8261 set dummy pkg-config
; ac_word
=$2
8262 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8263 $as_echo_n "checking for $ac_word... " >&6; }
8264 if test "${ac_cv_path_PKG_CONFIG+set}" = set; then :
8265 $as_echo_n "(cached) " >&6
8269 ac_cv_path_PKG_CONFIG
="$PKG_CONFIG" # Let the user override the test with a path.
8272 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
8276 test -z "$as_dir" && as_dir
=.
8277 for ac_exec_ext
in '' $ac_executable_extensions; do
8278 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8279 ac_cv_path_PKG_CONFIG
="$as_dir/$ac_word$ac_exec_ext"
8280 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8287 test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG
="no"
8291 PKG_CONFIG
=$ac_cv_path_PKG_CONFIG
8292 if test -n "$PKG_CONFIG"; then
8293 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5
8294 $as_echo "$PKG_CONFIG" >&6; }
8296 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8297 $as_echo "no" >&6; }
8302 if test "$PKG_CONFIG" = "no" ; then
8305 PKG_CONFIG_MIN_VERSION
=0.9.0
8306 if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
8307 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ALSA_MODULES" >&5
8308 $as_echo_n "checking for $ALSA_MODULES... " >&6; }
8310 if $PKG_CONFIG --exists "$ALSA_MODULES" 2>&5; then
8311 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
8312 $as_echo "yes" >&6; }
8315 { $as_echo "$as_me:${as_lineno-$LINENO}: checking ALSA_CFLAGS" >&5
8316 $as_echo_n "checking ALSA_CFLAGS... " >&6; }
8317 ALSA_CFLAGS
=`$PKG_CONFIG --cflags "$ALSA_MODULES"|sed -e 's,///*,/,g'`
8318 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ALSA_CFLAGS" >&5
8319 $as_echo "$ALSA_CFLAGS" >&6; }
8321 { $as_echo "$as_me:${as_lineno-$LINENO}: checking ALSA_LIBS" >&5
8322 $as_echo_n "checking ALSA_LIBS... " >&6; }
8323 ALSA_LIBS
=`$PKG_CONFIG --libs "$ALSA_MODULES"|sed -e 's,///*,/,g'`
8324 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ALSA_LIBS" >&5
8325 $as_echo "$ALSA_LIBS" >&6; }
8327 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8328 $as_echo "no" >&6; }
8331 ## If we have a custom action on failure, don't print errors, but
8332 ## do set a variable so people can do so.
8333 ALSA_PKG_ERRORS
=`$PKG_CONFIG --errors-to-stdout --print-errors "$ALSA_MODULES"`
8340 echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
8341 echo "*** See http://www.freedesktop.org/software/pkgconfig"
8345 if test $succeeded = yes; then
8351 if test $HAVE_ALSA = yes; then
8352 SAVE_CFLAGS
="$CFLAGS"
8353 SAVE_LDFLAGS
="$LDFLAGS"
8354 CFLAGS
="$ALSA_CFLAGS $CFLAGS"
8355 LDFLAGS
="$ALSA_LIBS $LDFLAGS"
8356 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
8357 /* end confdefs.h. */
8358 #include <asoundlib.h>
8362 snd_lib_error_set_handler (0);
8367 if ac_fn_c_try_compile
"$LINENO"; then :
8368 emacs_alsa_normal
=yes
8370 emacs_alsa_normal
=no
8372 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
8373 if test "$emacs_alsa_normal" != yes; then
8374 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
8375 /* end confdefs.h. */
8376 #include <alsa/asoundlib.h>
8380 snd_lib_error_set_handler (0);
8385 if ac_fn_c_try_compile
"$LINENO"; then :
8386 emacs_alsa_subdir
=yes
8388 emacs_alsa_subdir
=no
8390 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
8391 if test "$emacs_alsa_subdir" != yes; then
8392 as_fn_error
"pkg-config found alsa, but it does not compile. See config.log for error messages." "$LINENO" 5
8394 ALSA_CFLAGS
="$ALSA_CFLAGS -DALSA_SUBDIR_INCLUDE"
8397 CFLAGS
="$SAVE_CFLAGS"
8398 LDFLAGS
="$SAVE_LDFLAGS"
8399 LIBSOUND
="$LIBSOUND $ALSA_LIBS"
8400 CFLAGS_SOUND
="$CFLAGS_SOUND $ALSA_CFLAGS"
8402 $as_echo "#define HAVE_ALSA 1" >>confdefs.h
8406 if test x
$have_sound_header = xyes ||
test $HAVE_ALSA = yes; then
8408 gnu-linux|freebsd|netbsd
)
8410 $as_echo "#define HAVE_SOUND 1" >>confdefs.h
8419 for ac_header
in sys
/select.h sys
/time.h unistd.h utime.h \
8420 linux
/version.h sys
/systeminfo.h \
8421 stdio_ext.h fcntl.h coff.h pty.h sys
/mman.h \
8422 sys
/vlimit.h sys
/resource.h locale.h sys
/_mbstate_t.h \
8423 sys
/utsname.h
pwd.h utmp.h dirent.h util.h
8425 as_ac_Header
=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
8426 ac_fn_c_check_header_mongrel
"$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
8427 eval as_val
=\$
$as_ac_Header
8428 if test "x$as_val" = x
""yes; then :
8429 cat >>confdefs.h
<<_ACEOF
8430 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
8438 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if personality LINUX32 can be set" >&5
8439 $as_echo_n "checking if personality LINUX32 can be set... " >&6; }
8440 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
8441 /* end confdefs.h. */
8442 #include <sys/personality.h>
8446 personality (PER_LINUX32)
8451 if ac_fn_c_try_compile
"$LINENO"; then :
8452 emacs_cv_personality_linux32
=yes
8454 emacs_cv_personality_linux32
=no
8456 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
8457 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $emacs_cv_personality_linux32" >&5
8458 $as_echo "$emacs_cv_personality_linux32" >&6; }
8460 if test $emacs_cv_personality_linux32 = yes; then
8462 $as_echo "#define HAVE_PERSONALITY_LINUX32 1" >>confdefs.h
8466 for ac_header
in term.h
8468 ac_fn_c_check_header_preproc
"$LINENO" "term.h" "ac_cv_header_term_h"
8469 if test "x$ac_cv_header_term_h" = x
""yes; then :
8470 cat >>confdefs.h
<<_ACEOF
8471 #define HAVE_TERM_H 1
8478 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether time.h and sys/time.h may both be included" >&5
8479 $as_echo_n "checking whether time.h and sys/time.h may both be included... " >&6; }
8480 if test "${ac_cv_header_time+set}" = set; then :
8481 $as_echo_n "(cached) " >&6
8483 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
8484 /* end confdefs.h. */
8485 #include <sys/types.h>
8486 #include <sys/time.h>
8492 if ((struct tm *) 0)
8498 if ac_fn_c_try_compile
"$LINENO"; then :
8499 ac_cv_header_time
=yes
8501 ac_cv_header_time
=no
8503 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
8505 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_time" >&5
8506 $as_echo "$ac_cv_header_time" >&6; }
8507 if test $ac_cv_header_time = yes; then
8509 $as_echo "#define TIME_WITH_SYS_TIME 1" >>confdefs.h
8513 ac_fn_c_check_decl
"$LINENO" "sys_siglist" "ac_cv_have_decl_sys_siglist" "$ac_includes_default"
8514 if test "x$ac_cv_have_decl_sys_siglist" = x
""yes; then :
8520 cat >>confdefs.h
<<_ACEOF
8521 #define HAVE_DECL_SYS_SIGLIST $ac_have_decl
8524 if test $ac_cv_have_decl_sys_siglist != yes; then
8525 # For Tru64, at least:
8526 ac_fn_c_check_decl
"$LINENO" "__sys_siglist" "ac_cv_have_decl___sys_siglist" "$ac_includes_default"
8527 if test "x$ac_cv_have_decl___sys_siglist" = x
""yes; then :
8533 cat >>confdefs.h
<<_ACEOF
8534 #define HAVE_DECL___SYS_SIGLIST $ac_have_decl
8537 if test $ac_cv_have_decl___sys_siglist = yes; then
8539 $as_echo "#define sys_siglist __sys_siglist" >>confdefs.h
8543 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sys/wait.h that is POSIX.1 compatible" >&5
8544 $as_echo_n "checking for sys/wait.h that is POSIX.1 compatible... " >&6; }
8545 if test "${ac_cv_header_sys_wait_h+set}" = set; then :
8546 $as_echo_n "(cached) " >&6
8548 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
8549 /* end confdefs.h. */
8550 #include <sys/types.h>
8551 #include <sys/wait.h>
8553 # define WEXITSTATUS(stat_val) ((unsigned int) (stat_val) >> 8)
8556 # define WIFEXITED(stat_val) (((stat_val) & 255) == 0)
8564 s = WIFEXITED (s) ? WEXITSTATUS (s) : 1;
8569 if ac_fn_c_try_compile
"$LINENO"; then :
8570 ac_cv_header_sys_wait_h
=yes
8572 ac_cv_header_sys_wait_h
=no
8574 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
8576 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_sys_wait_h" >&5
8577 $as_echo "$ac_cv_header_sys_wait_h" >&6; }
8578 if test $ac_cv_header_sys_wait_h = yes; then
8580 $as_echo "#define HAVE_SYS_WAIT_H 1" >>confdefs.h
8585 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for struct utimbuf" >&5
8586 $as_echo_n "checking for struct utimbuf... " >&6; }
8587 if test "${emacs_cv_struct_utimbuf+set}" = set; then :
8588 $as_echo_n "(cached) " >&6
8590 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
8591 /* end confdefs.h. */
8592 #ifdef TIME_WITH_SYS_TIME
8593 #include <sys/time.h>
8596 #ifdef HAVE_SYS_TIME_H
8597 #include <sys/time.h>
8608 static struct utimbuf x; x.actime = x.modtime;
8613 if ac_fn_c_try_compile
"$LINENO"; then :
8614 emacs_cv_struct_utimbuf
=yes
8616 emacs_cv_struct_utimbuf
=no
8618 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
8620 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $emacs_cv_struct_utimbuf" >&5
8621 $as_echo "$emacs_cv_struct_utimbuf" >&6; }
8622 if test $emacs_cv_struct_utimbuf = yes; then
8624 $as_echo "#define HAVE_STRUCT_UTIMBUF 1" >>confdefs.h
8628 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for speed_t" >&5
8629 $as_echo_n "checking for speed_t... " >&6; }
8630 if test "${emacs_cv_speed_t+set}" = set; then :
8631 $as_echo_n "(cached) " >&6
8633 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
8634 /* end confdefs.h. */
8635 #include <termios.h>
8644 if ac_fn_c_try_compile
"$LINENO"; then :
8645 emacs_cv_speed_t
=yes
8649 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
8651 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $emacs_cv_speed_t" >&5
8652 $as_echo "$emacs_cv_speed_t" >&6; }
8653 if test $emacs_cv_speed_t = yes; then
8655 $as_echo "#define HAVE_SPEED_T 1" >>confdefs.h
8659 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for struct timeval" >&5
8660 $as_echo_n "checking for struct timeval... " >&6; }
8661 if test "${emacs_cv_struct_timeval+set}" = set; then :
8662 $as_echo_n "(cached) " >&6
8664 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
8665 /* end confdefs.h. */
8666 #ifdef TIME_WITH_SYS_TIME
8667 #include <sys/time.h>
8670 #ifdef HAVE_SYS_TIME_H
8671 #include <sys/time.h>
8679 static struct timeval x; x.tv_sec = x.tv_usec;
8684 if ac_fn_c_try_compile
"$LINENO"; then :
8685 emacs_cv_struct_timeval
=yes
8687 emacs_cv_struct_timeval
=no
8689 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
8691 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $emacs_cv_struct_timeval" >&5
8692 $as_echo "$emacs_cv_struct_timeval" >&6; }
8693 HAVE_TIMEVAL
=$emacs_cv_struct_timeval
8694 if test $emacs_cv_struct_timeval = yes; then
8696 $as_echo "#define HAVE_TIMEVAL 1" >>confdefs.h
8700 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for struct exception" >&5
8701 $as_echo_n "checking for struct exception... " >&6; }
8702 if test "${emacs_cv_struct_exception+set}" = set; then :
8703 $as_echo_n "(cached) " >&6
8705 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
8706 /* end confdefs.h. */
8711 static struct exception x; x.arg1 = x.arg2 = x.retval; x.name = ""; x.type = 1;
8716 if ac_fn_c_try_compile
"$LINENO"; then :
8717 emacs_cv_struct_exception
=yes
8719 emacs_cv_struct_exception
=no
8721 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
8723 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $emacs_cv_struct_exception" >&5
8724 $as_echo "$emacs_cv_struct_exception" >&6; }
8725 HAVE_EXCEPTION
=$emacs_cv_struct_exception
8726 if test $emacs_cv_struct_exception != yes; then
8728 $as_echo "#define NO_MATHERR 1" >>confdefs.h
8732 for ac_header
in sys
/socket.h
8734 ac_fn_c_check_header_mongrel
"$LINENO" "sys/socket.h" "ac_cv_header_sys_socket_h" "$ac_includes_default"
8735 if test "x$ac_cv_header_sys_socket_h" = x
""yes; then :
8736 cat >>confdefs.h
<<_ACEOF
8737 #define HAVE_SYS_SOCKET_H 1
8744 for ac_header
in net
/if.h
8746 ac_fn_c_check_header_compile
"$LINENO" "net/if.h" "ac_cv_header_net_if_h" "$ac_includes_default
8747 #if HAVE_SYS_SOCKET_H
8748 #include <sys/socket.h>
8751 if test "x$ac_cv_header_net_if_h" = x
""yes; then :
8752 cat >>confdefs.h
<<_ACEOF
8753 #define HAVE_NET_IF_H 1
8760 for ac_header
in ifaddrs.h
8762 ac_fn_c_check_header_compile
"$LINENO" "ifaddrs.h" "ac_cv_header_ifaddrs_h" "$ac_includes_default
8763 #if HAVE_SYS_SOCKET_H
8764 #include <sys/socket.h>
8767 if test "x$ac_cv_header_ifaddrs_h" = x
""yes; then :
8768 cat >>confdefs.h
<<_ACEOF
8769 #define HAVE_IFADDRS_H 1
8776 for ac_header
in net
/if_dl.h
8778 ac_fn_c_check_header_compile
"$LINENO" "net/if_dl.h" "ac_cv_header_net_if_dl_h" "$ac_includes_default
8779 #if HAVE_SYS_SOCKET_H
8780 #include <sys/socket.h>
8783 if test "x$ac_cv_header_net_if_dl_h" = x
""yes; then :
8784 cat >>confdefs.h
<<_ACEOF
8785 #define HAVE_NET_IF_DL_H 1
8792 for ac_func
in getifaddrs freeifaddrs
8794 as_ac_var
=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
8795 ac_fn_c_check_func
"$LINENO" "$ac_func" "$as_ac_var"
8796 eval as_val
=\$
$as_ac_var
8797 if test "x$as_val" = x
""yes; then :
8798 cat >>confdefs.h
<<_ACEOF
8799 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
8806 ac_fn_c_check_member
"$LINENO" "struct ifreq" "ifr_flags" "ac_cv_member_struct_ifreq_ifr_flags" "$ac_includes_default
8807 #if HAVE_SYS_SOCKET_H
8808 #include <sys/socket.h>
8814 if test "x$ac_cv_member_struct_ifreq_ifr_flags" = x
""yes; then :
8816 cat >>confdefs.h
<<_ACEOF
8817 #define HAVE_STRUCT_IFREQ_IFR_FLAGS 1
8822 ac_fn_c_check_member
"$LINENO" "struct ifreq" "ifr_hwaddr" "ac_cv_member_struct_ifreq_ifr_hwaddr" "$ac_includes_default
8823 #if HAVE_SYS_SOCKET_H
8824 #include <sys/socket.h>
8830 if test "x$ac_cv_member_struct_ifreq_ifr_hwaddr" = x
""yes; then :
8832 cat >>confdefs.h
<<_ACEOF
8833 #define HAVE_STRUCT_IFREQ_IFR_HWADDR 1
8838 ac_fn_c_check_member
"$LINENO" "struct ifreq" "ifr_netmask" "ac_cv_member_struct_ifreq_ifr_netmask" "$ac_includes_default
8839 #if HAVE_SYS_SOCKET_H
8840 #include <sys/socket.h>
8846 if test "x$ac_cv_member_struct_ifreq_ifr_netmask" = x
""yes; then :
8848 cat >>confdefs.h
<<_ACEOF
8849 #define HAVE_STRUCT_IFREQ_IFR_NETMASK 1
8854 ac_fn_c_check_member
"$LINENO" "struct ifreq" "ifr_broadaddr" "ac_cv_member_struct_ifreq_ifr_broadaddr" "$ac_includes_default
8855 #if HAVE_SYS_SOCKET_H
8856 #include <sys/socket.h>
8862 if test "x$ac_cv_member_struct_ifreq_ifr_broadaddr" = x
""yes; then :
8864 cat >>confdefs.h
<<_ACEOF
8865 #define HAVE_STRUCT_IFREQ_IFR_BROADADDR 1
8870 ac_fn_c_check_member
"$LINENO" "struct ifreq" "ifr_addr" "ac_cv_member_struct_ifreq_ifr_addr" "$ac_includes_default
8871 #if HAVE_SYS_SOCKET_H
8872 #include <sys/socket.h>
8878 if test "x$ac_cv_member_struct_ifreq_ifr_addr" = x
""yes; then :
8880 cat >>confdefs.h
<<_ACEOF
8881 #define HAVE_STRUCT_IFREQ_IFR_ADDR 1
8886 ac_fn_c_check_member
"$LINENO" "struct ifreq" "ifr_addr.sa_len" "ac_cv_member_struct_ifreq_ifr_addr_sa_len" "$ac_includes_default
8887 #if HAVE_SYS_SOCKET_H
8888 #include <sys/socket.h>
8894 if test "x$ac_cv_member_struct_ifreq_ifr_addr_sa_len" = x
""yes; then :
8896 cat >>confdefs.h
<<_ACEOF
8897 #define HAVE_STRUCT_IFREQ_IFR_ADDR_SA_LEN 1
8905 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for function prototypes" >&5
8906 $as_echo_n "checking for function prototypes... " >&6; }
8907 if test "$ac_cv_prog_cc_c89" != no
; then
8908 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
8909 $as_echo "yes" >&6; }
8911 $as_echo "#define PROTOTYPES 1" >>confdefs.h
8914 $as_echo "#define __PROTOTYPES 1" >>confdefs.h
8917 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8918 $as_echo "no" >&6; }
8921 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working volatile" >&5
8922 $as_echo_n "checking for working volatile... " >&6; }
8923 if test "${ac_cv_c_volatile+set}" = set; then :
8924 $as_echo_n "(cached) " >&6
8926 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
8927 /* end confdefs.h. */
8934 int * volatile y = (int *) 0;
8940 if ac_fn_c_try_compile
"$LINENO"; then :
8941 ac_cv_c_volatile
=yes
8945 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
8947 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_volatile" >&5
8948 $as_echo "$ac_cv_c_volatile" >&6; }
8949 if test $ac_cv_c_volatile = no
; then
8951 $as_echo "#define volatile /**/" >>confdefs.h
8955 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for an ANSI C-conforming const" >&5
8956 $as_echo_n "checking for an ANSI C-conforming const... " >&6; }
8957 if test "${ac_cv_c_const+set}" = set; then :
8958 $as_echo_n "(cached) " >&6
8960 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
8961 /* end confdefs.h. */
8966 /* FIXME: Include the comments suggested by Paul. */
8968 /* Ultrix mips cc rejects this. */
8969 typedef int charset[2];
8971 /* SunOS 4.1.1 cc rejects this. */
8972 char const *const *pcpcc;
8974 /* NEC SVR4.0.2 mips cc rejects this. */
8975 struct point {int x, y;};
8976 static struct point const zero = {0,0};
8977 /* AIX XL C 1.02.0.0 rejects this.
8978 It does not let you subtract one const X* pointer from another in
8979 an arm of an if-expression whose if-part is not a constant
8981 const char *g = "string";
8982 pcpcc = &g + (g ? g-g : 0);
8983 /* HPUX 7.0 cc rejects these. */
8985 ppc = (char**) pcpcc;
8986 pcpcc = (char const *const *) ppc;
8987 { /* SCO 3.2v4 cc rejects this. */
8989 char const *s = 0 ? (char *) 0 : (char const *) 0;
8994 { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
8996 const int *foo = &x[0];
8999 { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
9000 typedef const int *iptr;
9004 { /* AIX XL C 1.02.0.0 rejects this saying
9005 "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
9006 struct s { int j; const int *ap[3]; };
9007 struct s *b; b->j = 5;
9009 { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
9013 return !cs[0] && !zero.x;
9020 if ac_fn_c_try_compile
"$LINENO"; then :
9025 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
9027 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_const" >&5
9028 $as_echo "$ac_cv_c_const" >&6; }
9029 if test $ac_cv_c_const = no
; then
9031 $as_echo "#define const /**/" >>confdefs.h
9035 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for void * support" >&5
9036 $as_echo_n "checking for void * support... " >&6; }
9037 if test "${emacs_cv_void_star+set}" = set; then :
9038 $as_echo_n "(cached) " >&6
9040 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
9041 /* end confdefs.h. */
9051 if ac_fn_c_try_compile
"$LINENO"; then :
9052 emacs_cv_void_star
=yes
9054 emacs_cv_void_star
=no
9056 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
9058 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $emacs_cv_void_star" >&5
9059 $as_echo "$emacs_cv_void_star" >&6; }
9060 if test $emacs_cv_void_star = yes; then
9061 $as_echo "#define POINTER_TYPE void" >>confdefs.h
9064 $as_echo "#define POINTER_TYPE char" >>confdefs.h
9068 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether byte ordering is bigendian" >&5
9069 $as_echo_n "checking whether byte ordering is bigendian... " >&6; }
9070 if test "${ac_cv_c_bigendian+set}" = set; then :
9071 $as_echo_n "(cached) " >&6
9073 ac_cv_c_bigendian
=unknown
9074 # See if we're dealing with a universal compiler.
9075 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
9076 /* end confdefs.h. */
9077 #ifndef __APPLE_CC__
9078 not a universal capable compiler
9083 if ac_fn_c_try_compile
"$LINENO"; then :
9085 # Check for potential -arch flags. It is not universal unless
9086 # there are at least two -arch flags with different values.
9089 for ac_word
in $CC $CFLAGS $CPPFLAGS $LDFLAGS; do
9090 if test -n "$ac_prev"; then
9092 i?
86 | x86_64 | ppc | ppc64
)
9093 if test -z "$ac_arch" ||
test "$ac_arch" = "$ac_word"; then
9096 ac_cv_c_bigendian
=universal
9102 elif test "x$ac_word" = "x-arch"; then
9107 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
9108 if test $ac_cv_c_bigendian = unknown
; then
9109 # See if sys/param.h defines the BYTE_ORDER macro.
9110 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
9111 /* end confdefs.h. */
9112 #include <sys/types.h>
9113 #include <sys/param.h>
9118 #if ! (defined BYTE_ORDER && defined BIG_ENDIAN \
9119 && defined LITTLE_ENDIAN && BYTE_ORDER && BIG_ENDIAN \
9128 if ac_fn_c_try_compile
"$LINENO"; then :
9129 # It does; now see whether it defined to BIG_ENDIAN or not.
9130 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
9131 /* end confdefs.h. */
9132 #include <sys/types.h>
9133 #include <sys/param.h>
9138 #if BYTE_ORDER != BIG_ENDIAN
9146 if ac_fn_c_try_compile
"$LINENO"; then :
9147 ac_cv_c_bigendian
=yes
9149 ac_cv_c_bigendian
=no
9151 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
9153 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
9155 if test $ac_cv_c_bigendian = unknown
; then
9156 # See if <limits.h> defines _LITTLE_ENDIAN or _BIG_ENDIAN (e.g., Solaris).
9157 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
9158 /* end confdefs.h. */
9164 #if ! (defined _LITTLE_ENDIAN || defined _BIG_ENDIAN)
9172 if ac_fn_c_try_compile
"$LINENO"; then :
9173 # It does; now see whether it defined to _BIG_ENDIAN or not.
9174 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
9175 /* end confdefs.h. */
9189 if ac_fn_c_try_compile
"$LINENO"; then :
9190 ac_cv_c_bigendian
=yes
9192 ac_cv_c_bigendian
=no
9194 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
9196 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
9198 if test $ac_cv_c_bigendian = unknown
; then
9199 # Compile a test program.
9200 if test "$cross_compiling" = yes; then :
9201 # Try to guess by grepping values from an object file.
9202 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
9203 /* end confdefs.h. */
9204 short int ascii_mm[] =
9205 { 0x4249, 0x4765, 0x6E44, 0x6961, 0x6E53, 0x7953, 0 };
9206 short int ascii_ii[] =
9207 { 0x694C, 0x5454, 0x656C, 0x6E45, 0x6944, 0x6E61, 0 };
9208 int use_ascii (int i) {
9209 return ascii_mm[i] + ascii_ii[i];
9211 short int ebcdic_ii[] =
9212 { 0x89D3, 0xE3E3, 0x8593, 0x95C5, 0x89C4, 0x9581, 0 };
9213 short int ebcdic_mm[] =
9214 { 0xC2C9, 0xC785, 0x95C4, 0x8981, 0x95E2, 0xA8E2, 0 };
9215 int use_ebcdic (int i) {
9216 return ebcdic_mm[i] + ebcdic_ii[i];
9223 return use_ascii (foo) == use_ebcdic (foo);
9228 if ac_fn_c_try_compile
"$LINENO"; then :
9229 if grep BIGenDianSyS conftest.
$ac_objext >/dev
/null
; then
9230 ac_cv_c_bigendian
=yes
9232 if grep LiTTleEnDian conftest.
$ac_objext >/dev
/null
; then
9233 if test "$ac_cv_c_bigendian" = unknown
; then
9234 ac_cv_c_bigendian
=no
9236 # finding both strings is unlikely to happen, but who knows?
9237 ac_cv_c_bigendian
=unknown
9241 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
9243 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
9244 /* end confdefs.h. */
9245 $ac_includes_default
9250 /* Are we little or big endian? From Harbison&Steele. */
9254 char c[sizeof (long int)];
9257 return u.c[sizeof (long int) - 1] == 1;
9263 if ac_fn_c_try_run
"$LINENO"; then :
9264 ac_cv_c_bigendian
=no
9266 ac_cv_c_bigendian
=yes
9268 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
9269 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
9274 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_bigendian" >&5
9275 $as_echo "$ac_cv_c_bigendian" >&6; }
9276 case $ac_cv_c_bigendian in #(
9278 $as_echo "#define WORDS_BIGENDIAN 1" >>confdefs.h
9284 $as_echo "#define AC_APPLE_UNIVERSAL_BUILD 1" >>confdefs.h
9288 as_fn_error
"unknown endianness
9289 presetting ac_cv_c_bigendian=no (or yes) will help" "$LINENO" 5 ;;
9293 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for __attribute__ ((__aligned__ (expr)))" >&5
9294 $as_echo_n "checking for __attribute__ ((__aligned__ (expr)))... " >&6; }
9295 if test "${emacs_cv_attribute_aligned+set}" = set; then :
9296 $as_echo_n "(cached) " >&6
9298 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
9299 /* end confdefs.h. */
9300 char __attribute__ ((__aligned__ (1 << 3))) c;
9309 if ac_fn_c_try_compile
"$LINENO"; then :
9310 emacs_cv_attribute_aligned
=yes
9312 emacs_cv_attribute_aligned
=no
9314 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
9316 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $emacs_cv_attribute_aligned" >&5
9317 $as_echo "$emacs_cv_attribute_aligned" >&6; }
9318 if test $emacs_cv_attribute_aligned = yes; then
9320 $as_echo "#define HAVE_ATTRIBUTE_ALIGNED 1" >>confdefs.h
9324 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
9325 $as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
9327 ac_make
=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
9328 if { as_var
=ac_cv_prog_make_
${ac_make}_set; eval "test \"\${$as_var+set}\" = set"; }; then :
9329 $as_echo_n "(cached) " >&6
9331 cat >conftest.
make <<\_ACEOF
9334 @
echo '@@@%%%=$(MAKE)=@@@%%%'
9336 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
9337 case `${MAKE-make} -f conftest.make 2>/dev/null` in
9339 eval ac_cv_prog_make_
${ac_make}_set
=yes;;
9341 eval ac_cv_prog_make_
${ac_make}_set
=no
;;
9345 if eval test \
$ac_cv_prog_make_${ac_make}_set
= yes; then
9346 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
9347 $as_echo "yes" >&6; }
9350 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9351 $as_echo "no" >&6; }
9352 SET_MAKE
="MAKE=${MAKE-make}"
9359 if test "$GCC" = yes && test "$ac_enable_autodepend" = yes; then
9360 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using GNU Make" >&5
9361 $as_echo_n "checking whether we are using GNU Make... " >&6; }
9363 testval
=`${MAKE-make} --version 2>/dev/null | grep 'GNU Make'`
9364 if test "x$testval" != x
; then
9367 ac_enable_autodepend
=no
9369 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $HAVE_GNU_MAKE" >&5
9370 $as_echo "$HAVE_GNU_MAKE" >&6; }
9371 if test $HAVE_GNU_MAKE = yes; then
9372 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether gcc understands -MMD -MF" >&5
9373 $as_echo_n "checking whether gcc understands -MMD -MF... " >&6; }
9374 SAVE_CFLAGS
="$CFLAGS"
9375 CFLAGS
="$CFLAGS -MMD -MF deps.d -MP"
9376 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
9377 /* end confdefs.h. */
9387 if ac_fn_c_try_compile
"$LINENO"; then :
9390 ac_enable_autodepend
=no
9392 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
9393 CFLAGS
="$SAVE_CFLAGS"
9394 test -f deps.d || ac_enable_autodepend
=no
9396 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_enable_autodepend" >&5
9397 $as_echo "$ac_enable_autodepend" >&6; }
9399 if test $ac_enable_autodepend = yes; then
9400 DEPFLAGS
='-MMD -MF ${DEPDIR}/$*.d -MP'
9401 ## In parallel builds, another make might create depdir between
9402 ## the first test and mkdir, so stick another test on the end.
9403 ## Or use install-sh -d? mkdir -p is not portable.
9404 MKDEPDIR
='test -d ${DEPDIR} || mkdir ${DEPDIR} || test -d ${DEPDIR}'
9405 deps_frag
=autodeps.mk
9408 deps_frag
=$srcdir/src
/$deps_frag
9414 lisp_frag
=$srcdir/src
/lisp.mk
9418 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for long file names" >&5
9419 $as_echo_n "checking for long file names... " >&6; }
9420 if test "${ac_cv_sys_long_file_names+set}" = set; then :
9421 $as_echo_n "(cached) " >&6
9423 ac_cv_sys_long_file_names
=yes
9424 # Test for long file names in all the places we know might matter:
9425 # . the current directory, where building will happen
9426 # $prefix/lib where we will be installing things
9427 # $exec_prefix/lib likewise
9428 # $TMPDIR if set, where it might want to write temporary files
9429 # /tmp where it might want to write temporary files
9432 for ac_dir
in .
"$TMPDIR" /tmp
/var
/tmp
/usr
/tmp
"$prefix/lib" "$exec_prefix/lib"; do
9433 # Skip $TMPDIR if it is empty or bogus, and skip $exec_prefix/lib
9434 # in the usual case where exec_prefix is '${prefix}'.
9436 . |
/* | ?
:[\\/]*) ;; #(
9439 test -w "$ac_dir/." ||
continue # It is less confusing to not echo anything here.
9440 ac_xdir
=$ac_dir/cf$$
9441 (umask 077 && mkdir
"$ac_xdir" 2>/dev
/null
) ||
continue
9442 ac_tf1
=$ac_xdir/conftest9012345
9443 ac_tf2
=$ac_xdir/conftest9012346
9444 touch "$ac_tf1" 2>/dev
/null
&& test -f "$ac_tf1" && test ! -f "$ac_tf2" ||
9445 ac_cv_sys_long_file_names
=no
9446 rm -f -r "$ac_xdir" 2>/dev
/null
9447 test $ac_cv_sys_long_file_names = no
&& break
9450 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_long_file_names" >&5
9451 $as_echo "$ac_cv_sys_long_file_names" >&6; }
9452 if test $ac_cv_sys_long_file_names = yes; then
9454 $as_echo "#define HAVE_LONG_FILE_NAMES 1" >>confdefs.h
9459 #### Choose a window system.
9461 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for X" >&5
9462 $as_echo_n "checking for X... " >&6; }
9465 # Check whether --with-x was given.
9466 if test "${with_x+set}" = set; then :
9470 # $have_x is `yes', `no', `disabled', or empty when we do not yet know.
9471 if test "x$with_x" = xno
; then
9472 # The user explicitly disabled X.
9475 case $x_includes,$x_libraries in #(
9476 *\'*) as_fn_error
"cannot use X directory names containing '" "$LINENO" 5;; #(
9477 *,NONE | NONE
,*) if test "${ac_cv_have_x+set}" = set; then :
9478 $as_echo_n "(cached) " >&6
9480 # One or both of the vars are not set, and there is no cached value.
9481 ac_x_includes
=no ac_x_libraries
=no
9482 rm -f -r conftest.dir
9483 if mkdir conftest.dir
; then
9485 cat >Imakefile
<<'_ACEOF'
9487 @echo incroot='${INCROOT}'
9489 @echo usrlibdir='${USRLIBDIR}'
9491 @echo libdir='${LIBDIR}'
9493 if (export CC
; ${XMKMF-xmkmf}) >/dev
/null
2>/dev
/null
&& test -f Makefile
; then
9494 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
9495 for ac_var
in incroot usrlibdir libdir
; do
9496 eval "ac_im_$ac_var=\`\${MAKE-make} $ac_var 2>/dev/null | sed -n 's/^$ac_var=//p'\`"
9498 # Open Windows xmkmf reportedly sets LIBDIR instead of USRLIBDIR.
9499 for ac_extension
in a so sl dylib la dll
; do
9500 if test ! -f "$ac_im_usrlibdir/libX11.$ac_extension" &&
9501 test -f "$ac_im_libdir/libX11.$ac_extension"; then
9502 ac_im_usrlibdir
=$ac_im_libdir; break
9505 # Screen out bogus values from the imake configuration. They are
9506 # bogus both because they are the default anyway, and because
9507 # using them would break gcc on systems where it needs fixed includes.
9508 case $ac_im_incroot in
9509 /usr
/include
) ac_x_includes
= ;;
9510 *) test -f "$ac_im_incroot/X11/Xos.h" && ac_x_includes
=$ac_im_incroot;;
9512 case $ac_im_usrlibdir in
9513 /usr
/lib |
/usr
/lib64 |
/lib |
/lib64
) ;;
9514 *) test -d "$ac_im_usrlibdir" && ac_x_libraries
=$ac_im_usrlibdir ;;
9518 rm -f -r conftest.dir
9521 # Standard set of common directories for X headers.
9522 # Check X11 before X11Rn because it is often a symlink to the current release.
9536 /usr/local/X11/include
9537 /usr/local/X11R7/include
9538 /usr/local/X11R6/include
9539 /usr/local/X11R5/include
9540 /usr/local/X11R4/include
9542 /usr/local/include/X11
9543 /usr/local/include/X11R7
9544 /usr/local/include/X11R6
9545 /usr/local/include/X11R5
9546 /usr/local/include/X11R4
9550 /usr/XFree86/include/X11
9554 /usr/unsupported/include
9556 /usr/local/x11r5/include
9557 /usr/lpp/Xamples/include
9559 /usr/openwin/include
9560 /usr/openwin/share/include'
9562 if test "$ac_x_includes" = no
; then
9563 # Guess where to find include files, by looking for Xlib.h.
9564 # First, try using that file with no special directory specified.
9565 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
9566 /* end confdefs.h. */
9567 #include <X11/Xlib.h>
9569 if ac_fn_c_try_cpp
"$LINENO"; then :
9570 # We can compile using X headers with no special include directory.
9573 for ac_dir
in $ac_x_header_dirs; do
9574 if test -r "$ac_dir/X11/Xlib.h"; then
9575 ac_x_includes
=$ac_dir
9580 rm -f conftest.err conftest.
$ac_ext
9581 fi # $ac_x_includes = no
9583 if test "$ac_x_libraries" = no
; then
9584 # Check for the libraries.
9585 # See if we find them without any special options.
9586 # Don't add to $LIBS permanently.
9589 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
9590 /* end confdefs.h. */
9591 #include <X11/Xlib.h>
9600 if ac_fn_c_try_link
"$LINENO"; then :
9602 # We can link X programs with no special library path.
9606 for ac_dir
in `$as_echo "$ac_x_includes $ac_x_header_dirs" | sed s/include/lib/g`
9608 # Don't even attempt the hair of trying to link an X program!
9609 for ac_extension
in a so sl dylib la dll
; do
9610 if test -r "$ac_dir/libX11.$ac_extension"; then
9611 ac_x_libraries
=$ac_dir
9617 rm -f core conftest.err conftest.
$ac_objext \
9618 conftest
$ac_exeext conftest.
$ac_ext
9619 fi # $ac_x_libraries = no
9621 case $ac_x_includes,$ac_x_libraries in #(
9623 # Didn't find X, or a directory has "'" in its name.
9624 ac_cv_have_x
="have_x=no";; #(
9626 # Record where we found X for the cache.
9627 ac_cv_have_x
="have_x=yes\
9628 ac_x_includes='$ac_x_includes'\
9629 ac_x_libraries='$ac_x_libraries'"
9635 eval "$ac_cv_have_x"
9638 if test "$have_x" != yes; then
9639 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_x" >&5
9640 $as_echo "$have_x" >&6; }
9643 # If each of the values was on the command line, it overrides each guess.
9644 test "x$x_includes" = xNONE
&& x_includes
=$ac_x_includes
9645 test "x$x_libraries" = xNONE
&& x_libraries
=$ac_x_libraries
9646 # Update the cache value to reflect the command line values.
9647 ac_cv_have_x
="have_x=yes\
9648 ac_x_includes='$x_includes'\
9649 ac_x_libraries='$x_libraries'"
9650 { $as_echo "$as_me:${as_lineno-$LINENO}: result: libraries $x_libraries, headers $x_includes" >&5
9651 $as_echo "libraries $x_libraries, headers $x_includes" >&6; }
9654 if test "$no_x" = yes; then
9660 ## Workaround for bug in autoconf <= 2.62.
9661 ## http://lists.gnu.org/archive/html/emacs-devel/2008-04/msg01551.html
9662 ## No need to do anything special for these standard directories.
9663 if test -n "${x_libraries}" && test x
"${x_libraries}" != xNONE
; then
9665 x_libraries
=`echo :${x_libraries}: | sed -e 's|:/usr/lib64:|:|g' -e 's|:/lib64:|:|g' -e 's|^:||' -e 's|:$||'`
9669 LD_SWITCH_X_SITE_AUX
=
9670 LD_SWITCH_X_SITE_AUX_RPATH
=
9671 if test "${x_libraries}" != NONE
; then
9672 if test -n "${x_libraries}"; then
9673 LD_SWITCH_X_SITE
=-L`echo ${x_libraries} | sed -e "s/:/ -L/g"`
9674 LD_SWITCH_X_SITE_AUX
=-R`echo ${x_libraries} | sed -e "s/:/ -R/g"`
9675 LD_SWITCH_X_SITE_AUX_RPATH
=`echo ${LD_SWITCH_X_SITE_AUX} | sed -e 's/-R/-Wl,-rpath,/'`
9677 x_default_search_path
=""
9678 x_search_path
=${x_libraries}
9679 if test -z "${x_search_path}"; then
9680 x_search_path
=/usr
/lib
9682 for x_library
in `echo ${x_search_path}: | \
9683 sed -e "s/:/ /g" -e p -e "s:/lib[^ /]* :/share :g"`; do
9685 ${x_library}/X11/%L/%T/%N%C%S:\
9686 ${x_library}/X11/%l/%T/%N%C%S:\
9687 ${x_library}/X11/%T/%N%C%S:\
9688 ${x_library}/X11/%L/%T/%N%S:\
9689 ${x_library}/X11/%l/%T/%N%S:\
9690 ${x_library}/X11/%T/%N%S"
9691 if test x
"${x_default_search_path}" = x
; then
9692 x_default_search_path
=${x_search_path}
9694 x_default_search_path
="${x_search_path}:${x_default_search_path}"
9701 if test "${x_includes}" != NONE
&& test -n "${x_includes}"; then
9702 C_SWITCH_X_SITE
=-I`echo ${x_includes} | sed -e "s/:/ -I/g"`
9705 if test x
"${x_includes}" = x
; then
9706 bitmapdir
=/usr
/include
/X11
/bitmaps
9708 # accumulate include directories that have X11 bitmap subdirectories
9710 for bmd
in `echo ${x_includes} | sed -e "s/:/ /g"`; do
9711 if test -d "${bmd}/X11/bitmaps"; then
9712 bmd_acc
="${bmd_acc}:${bmd}/X11/bitmaps"
9714 if test -d "${bmd}/bitmaps"; then
9715 bmd_acc
="${bmd_acc}:${bmd}/bitmaps"
9718 if test ${bmd_acc} != "dummyval"; then
9719 bitmapdir
=`echo ${bmd_acc} | sed -e "s/^dummyval://"`
9726 tmp_CPPFLAGS
="$CPPFLAGS"
9727 tmp_CFLAGS
="$CFLAGS"
9728 CPPFLAGS
="$CPPFLAGS -x objective-c"
9729 CFLAGS
="$CFLAGS -x objective-c"
9730 TEMACS_LDFLAGS2
="\${LDFLAGS}"
9732 if test "${with_ns}" != no
; then
9733 if test "${opsys}" = darwin
; then
9735 ns_appdir
=`pwd`/nextstep
/Emacs.app
9736 ns_appbindir
=${ns_appdir}/Contents
/MacOS
/
9737 ns_appresdir
=${ns_appdir}/Contents
/Resources
9738 ns_appsrc
=${srcdir}/nextstep
/Cocoa
/Emacs.base
9739 elif test -f $GNUSTEP_CONFIG_FILE; then
9741 ns_appdir
=`pwd`/nextstep
/Emacs.app
9742 ns_appbindir
=${ns_appdir}/
9743 ns_appresdir
=${ns_appdir}/Resources
9744 ns_appsrc
=${srcdir}/nextstep
/GNUstep
/Emacs.base
9745 GNUSTEP_SYSTEM_HEADERS
="$(. $GNUSTEP_CONFIG_FILE; echo $GNUSTEP_SYSTEM_HEADERS)"
9746 GNUSTEP_SYSTEM_LIBRARIES
="$(. $GNUSTEP_CONFIG_FILE; echo $GNUSTEP_SYSTEM_LIBRARIES)"
9747 GNUSTEP_LOCAL_HEADERS
="$(. $GNUSTEP_CONFIG_FILE; echo $GNUSTEP_LOCAL_HEADERS)"
9748 GNUSTEP_LOCAL_LIBRARIES
="$(. $GNUSTEP_CONFIG_FILE; echo $GNUSTEP_LOCAL_LIBRARIES)"
9749 test "x${GNUSTEP_LOCAL_HEADERS}" != "x" && \
9750 GNUSTEP_LOCAL_HEADERS
="-I${GNUSTEP_LOCAL_HEADERS}"
9751 test "x${GNUSTEP_LOCAL_LIBRARIES}" != "x" && \
9752 GNUSTEP_LOCAL_LIBRARIES
="-L${GNUSTEP_LOCAL_LIBRARIES}"
9753 CPPFLAGS
="$CPPFLAGS -I${GNUSTEP_SYSTEM_HEADERS} ${GNUSTEP_LOCAL_HEADERS}"
9754 CFLAGS
="$CFLAGS -I${GNUSTEP_SYSTEM_HEADERS} ${GNUSTEP_LOCAL_HEADERS}"
9755 LDFLAGS
="$LDFLAGS -L${GNUSTEP_SYSTEM_LIBRARIES} ${GNUSTEP_LOCAL_LIBRARIES}"
9759 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if GNUstep defines BASE_NATIVE_OBJC_EXCEPTIONS" >&5
9760 $as_echo_n "checking if GNUstep defines BASE_NATIVE_OBJC_EXCEPTIONS... " >&6; }
9761 if test "${emacs_cv_objc_exceptions+set}" = set; then :
9762 $as_echo_n "(cached) " >&6
9764 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
9765 /* end confdefs.h. */
9766 #include <GNUstepBase/GSConfig.h>
9770 #if defined BASE_NATIVE_OBJC_EXCEPTIONS && BASE_NATIVE_OBJC_EXCEPTIONS > 0
9779 if ac_fn_c_try_compile
"$LINENO"; then :
9780 emacs_cv_objc_exceptions
=yes
9782 emacs_cv_objc_exceptions
=no
9784 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
9786 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $emacs_cv_objc_exceptions" >&5
9787 $as_echo "$emacs_cv_objc_exceptions" >&6; }
9788 if test $emacs_cv_objc_exceptions = yes; then
9790 $as_echo "#define _NATIVE_OBJC_EXCEPTIONS 1" >>confdefs.h
9792 GNU_OBJC_CFLAGS
="-fobjc-exceptions"
9796 CFLAGS
="$CFLAGS $GNU_OBJC_CFLAGS"
9798 ac_fn_c_check_header_mongrel
"$LINENO" "AppKit/AppKit.h" "ac_cv_header_AppKit_AppKit_h" "$ac_includes_default"
9799 if test "x$ac_cv_header_AppKit_AppKit_h" = x
""yes; then :
9802 as_fn_error
"\`--with-ns' was specified, but the include
9803 files are missing or cannot be compiled." "$LINENO" 5
9807 NS_HAVE_NSINTEGER
=yes
9808 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
9809 /* end confdefs.h. */
9810 #include <Foundation/NSObjCRuntime.h>
9819 if ac_fn_c_try_compile
"$LINENO"; then :
9820 ns_have_nsinteger
=yes
9822 ns_have_nsinteger
=no
9824 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
9825 if test $ns_have_nsinteger = no
; then
9826 NS_HAVE_NSINTEGER
=no
9834 if test "${HAVE_NS}" = yes; then
9835 window_system
=nextstep
9837 # set up packaging dirs
9838 exec_prefix
=${ns_appbindir}
9839 libexecdir
=${ns_appbindir}/libexec
9840 if test "${EN_NS_SELF_CONTAINED}" = yes; then
9841 prefix
=${ns_appresdir}
9843 ns_frag
=$srcdir/src
/ns.mk
9844 NS_OBJ
="fontset.o fringe.o image.o"
9845 NS_OBJC_OBJ
="nsterm.o nsfns.o nsmenu.o nsselect.o nsimage.o nsfont.o"
9847 CFLAGS
="$tmp_CFLAGS"
9848 CPPFLAGS
="$tmp_CPPFLAGS"
9854 case "${window_system}" in
9858 case "${with_x_toolkit}" in
9859 athena | lucid
) USE_X_TOOLKIT
=LUCID
;;
9860 motif
) USE_X_TOOLKIT
=MOTIF
;;
9862 USE_X_TOOLKIT
=none
;;
9863 gtk3
) with_gtk3
=yes
9864 USE_X_TOOLKIT
=none
;;
9865 no
) USE_X_TOOLKIT
=none
;;
9866 * ) USE_X_TOOLKIT
=maybe
;;
9876 if test "$window_system" = none
&& test "X$with_x" != "Xno"; then
9877 # Extract the first word of "X", so it can be a program name with args.
9878 set dummy X
; ac_word
=$2
9879 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9880 $as_echo_n "checking for $ac_word... " >&6; }
9881 if test "${ac_cv_prog_HAVE_XSERVER+set}" = set; then :
9882 $as_echo_n "(cached) " >&6
9884 if test -n "$HAVE_XSERVER"; then
9885 ac_cv_prog_HAVE_XSERVER
="$HAVE_XSERVER" # Let the user override the test.
9887 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
9891 test -z "$as_dir" && as_dir
=.
9892 for ac_exec_ext
in '' $ac_executable_extensions; do
9893 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9894 ac_cv_prog_HAVE_XSERVER
="true"
9895 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9902 test -z "$ac_cv_prog_HAVE_XSERVER" && ac_cv_prog_HAVE_XSERVER
="false"
9905 HAVE_XSERVER
=$ac_cv_prog_HAVE_XSERVER
9906 if test -n "$HAVE_XSERVER"; then
9907 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $HAVE_XSERVER" >&5
9908 $as_echo "$HAVE_XSERVER" >&6; }
9910 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9911 $as_echo "no" >&6; }
9915 if test "$HAVE_XSERVER" = true ||
9916 test -n "$DISPLAY" ||
9917 test "`echo /usr/lib/libX11.*`" != "/usr/lib/libX11.*"; then
9918 as_fn_error
"You seem to be running X, but no X development libraries
9919 were found. You should install the relevant development files for X
9920 and for the toolkit you want, such as Gtk+, Lesstif or Motif. Also make
9921 sure you have development files for image handling, i.e.
9922 tiff, gif, jpeg, png and xpm.
9923 If you are sure you want Emacs compiled without X window support, pass
9925 to configure." "$LINENO" 5
9929 ### If we're using X11, we should use the X menu package.
9932 yes ) HAVE_MENUS
=yes ;;
9935 # Do the opsystem or machine files prohibit the use of the GNU malloc?
9936 # Assume not, until told otherwise.
9939 ac_fn_c_check_func
"$LINENO" "malloc_get_state" "ac_cv_func_malloc_get_state"
9940 if test "x$ac_cv_func_malloc_get_state" = x
""yes; then :
9946 ac_fn_c_check_func
"$LINENO" "malloc_set_state" "ac_cv_func_malloc_set_state"
9947 if test "x$ac_cv_func_malloc_set_state" = x
""yes; then :
9953 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether __after_morecore_hook exists" >&5
9954 $as_echo_n "checking whether __after_morecore_hook exists... " >&6; }
9955 if test "${emacs_cv_var___after_morecore_hook+set}" = set; then :
9956 $as_echo_n "(cached) " >&6
9958 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
9959 /* end confdefs.h. */
9960 extern void (* __after_morecore_hook)();
9964 __after_morecore_hook = 0
9969 if ac_fn_c_try_link
"$LINENO"; then :
9970 emacs_cv_var___after_morecore_hook
=yes
9972 emacs_cv_var___after_morecore_hook
=no
9974 rm -f core conftest.err conftest.
$ac_objext \
9975 conftest
$ac_exeext conftest.
$ac_ext
9977 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $emacs_cv_var___after_morecore_hook" >&5
9978 $as_echo "$emacs_cv_var___after_morecore_hook" >&6; }
9979 if test $emacs_cv_var___after_morecore_hook = no
; then
9986 ## darwin ld insists on the use of malloc routines in the System framework.
9987 darwin|sol2-10
) system_malloc
=yes ;;
9990 if test "${system_malloc}" = "yes"; then
9992 $as_echo "#define SYSTEM_MALLOC 1" >>confdefs.h
9996 (The GNU allocators don't work with this system configuration.)"
10000 test "$doug_lea_malloc" != "yes" && GMALLOC_OBJ
=gmalloc.o
10001 VMLIMIT_OBJ
=vm-limit.o
10006 if test "$doug_lea_malloc" = "yes" ; then
10007 if test "$GNU_MALLOC" = yes ; then
10008 GNU_MALLOC_reason
="
10009 (Using Doug Lea's new malloc from the GNU C Library.)"
10012 $as_echo "#define DOUG_LEA_MALLOC 1" >>confdefs.h
10015 ## Use mmap directly for allocating larger buffers.
10016 ## FIXME this comes from src/s/{gnu,gnu-linux}.h:
10017 ## #ifdef DOUG_LEA_MALLOC; #undef REL_ALLOC; #endif
10018 ## Does the AC_FUNC_MMAP test below make this check unecessary?
10020 gnu
*) REL_ALLOC
=no
;;
10024 if test x
"${REL_ALLOC}" = x
; then
10025 REL_ALLOC
=${GNU_MALLOC}
10028 use_mmap_for_buffers
=no
10030 cygwin|freebsd|irix6-5
) use_mmap_for_buffers
=yes ;;
10036 for ac_header
in $ac_header_list
10038 as_ac_Header
=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
10039 ac_fn_c_check_header_compile
"$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
10041 eval as_val
=\$
$as_ac_Header
10042 if test "x$as_val" = x
""yes; then :
10043 cat >>confdefs.h
<<_ACEOF
10044 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
10058 for ac_func
in getpagesize
10060 ac_fn_c_check_func
"$LINENO" "getpagesize" "ac_cv_func_getpagesize"
10061 if test "x$ac_cv_func_getpagesize" = x
""yes; then :
10062 cat >>confdefs.h
<<_ACEOF
10063 #define HAVE_GETPAGESIZE 1
10069 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working mmap" >&5
10070 $as_echo_n "checking for working mmap... " >&6; }
10071 if test "${ac_cv_func_mmap_fixed_mapped+set}" = set; then :
10072 $as_echo_n "(cached) " >&6
10074 if test "$cross_compiling" = yes; then :
10075 ac_cv_func_mmap_fixed_mapped
=no
10077 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
10078 /* end confdefs.h. */
10079 $ac_includes_default
10080 /* malloc might have been renamed as rpl_malloc. */
10083 /* Thanks to Mike Haertel and Jim Avera for this test.
10084 Here is a matrix of mmap possibilities:
10085 mmap private not fixed
10086 mmap private fixed at somewhere currently unmapped
10087 mmap private fixed at somewhere already mapped
10088 mmap shared not fixed
10089 mmap shared fixed at somewhere currently unmapped
10090 mmap shared fixed at somewhere already mapped
10091 For private mappings, we should verify that changes cannot be read()
10092 back from the file, nor mmap's back from the file at a different
10093 address. (There have been systems where private was not correctly
10094 implemented like the infamous i386 svr4.0, and systems where the
10095 VM page cache was not coherent with the file system buffer cache
10096 like early versions of FreeBSD and possibly contemporary NetBSD.)
10097 For shared mappings, we should conversely verify that changes get
10098 propagated back to all the places they're supposed to be.
10100 Grep wants private fixed already mapped.
10101 The main things grep needs to know about mmap are:
10102 * does it exist and is it safe to write into the mmap'd area
10103 * how to use it (BSD variants) */
10106 #include <sys/mman.h>
10108 #if !defined STDC_HEADERS && !defined HAVE_STDLIB_H
10112 /* This mess was copied from the GNU getpagesize.h. */
10113 #ifndef HAVE_GETPAGESIZE
10114 # ifdef _SC_PAGESIZE
10115 # define getpagesize() sysconf(_SC_PAGESIZE)
10116 # else /* no _SC_PAGESIZE */
10117 # ifdef HAVE_SYS_PARAM_H
10118 # include <sys/param.h>
10119 # ifdef EXEC_PAGESIZE
10120 # define getpagesize() EXEC_PAGESIZE
10121 # else /* no EXEC_PAGESIZE */
10123 # define getpagesize() NBPG * CLSIZE
10126 # endif /* no CLSIZE */
10127 # else /* no NBPG */
10129 # define getpagesize() NBPC
10130 # else /* no NBPC */
10132 # define getpagesize() PAGESIZE
10133 # endif /* PAGESIZE */
10134 # endif /* no NBPC */
10135 # endif /* no NBPG */
10136 # endif /* no EXEC_PAGESIZE */
10137 # else /* no HAVE_SYS_PARAM_H */
10138 # define getpagesize() 8192 /* punt totally */
10139 # endif /* no HAVE_SYS_PARAM_H */
10140 # endif /* no _SC_PAGESIZE */
10142 #endif /* no HAVE_GETPAGESIZE */
10147 char *data, *data2, *data3;
10148 const char *cdata2;
10152 pagesize = getpagesize ();
10154 /* First, make a file with some known garbage in it. */
10155 data = (char *) malloc (pagesize);
10158 for (i = 0; i < pagesize; ++i)
10159 *(data + i) = rand ();
10161 fd = creat ("conftest.mmap", 0600);
10164 if (write (fd, data, pagesize) != pagesize)
10168 /* Next, check that the tail of a page is zero-filled. File must have
10169 non-zero length, otherwise we risk SIGBUS for entire page. */
10170 fd2 = open ("conftest.txt", O_RDWR | O_CREAT | O_TRUNC, 0600);
10174 if (write (fd2, cdata2, 1) != 1)
10176 data2 = (char *) mmap (0, pagesize, PROT_READ | PROT_WRITE, MAP_SHARED, fd2, 0L);
10177 if (data2 == MAP_FAILED)
10179 for (i = 0; i < pagesize; ++i)
10183 if (munmap (data2, pagesize))
10186 /* Next, try to mmap the file at a fixed address which already has
10187 something else allocated at it. If we can, also make sure that
10188 we see the same garbage. */
10189 fd = open ("conftest.mmap", O_RDWR);
10192 if (data2 != mmap (data2, pagesize, PROT_READ | PROT_WRITE,
10193 MAP_PRIVATE | MAP_FIXED, fd, 0L))
10195 for (i = 0; i < pagesize; ++i)
10196 if (*(data + i) != *(data2 + i))
10199 /* Finally, make sure that changes to the mapped area do not
10200 percolate back to the file as seen by read(). (This is a bug on
10201 some variants of i386 svr4.0.) */
10202 for (i = 0; i < pagesize; ++i)
10203 *(data2 + i) = *(data2 + i) + 1;
10204 data3 = (char *) malloc (pagesize);
10207 if (read (fd, data3, pagesize) != pagesize)
10209 for (i = 0; i < pagesize; ++i)
10210 if (*(data + i) != *(data3 + i))
10216 if ac_fn_c_try_run
"$LINENO"; then :
10217 ac_cv_func_mmap_fixed_mapped
=yes
10219 ac_cv_func_mmap_fixed_mapped
=no
10221 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
10222 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
10226 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_mmap_fixed_mapped" >&5
10227 $as_echo "$ac_cv_func_mmap_fixed_mapped" >&6; }
10228 if test $ac_cv_func_mmap_fixed_mapped = yes; then
10230 $as_echo "#define HAVE_MMAP 1" >>confdefs.h
10233 rm -f conftest.mmap conftest.txt
10235 if test $use_mmap_for_buffers = yes; then
10237 $as_echo "#define USE_MMAP_FOR_BUFFERS 1" >>confdefs.h
10242 LIBS
="$LIBS_SYSTEM $LIBS"
10244 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dnet_ntoa in -ldnet" >&5
10245 $as_echo_n "checking for dnet_ntoa in -ldnet... " >&6; }
10246 if test "${ac_cv_lib_dnet_dnet_ntoa+set}" = set; then :
10247 $as_echo_n "(cached) " >&6
10249 ac_check_lib_save_LIBS
=$LIBS
10250 LIBS
="-ldnet $LIBS"
10251 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
10252 /* end confdefs.h. */
10254 /* Override any GCC internal prototype to avoid an error.
10255 Use char because int might match the return type of a GCC
10256 builtin and then its argument prototype would still apply. */
10264 return dnet_ntoa ();
10269 if ac_fn_c_try_link
"$LINENO"; then :
10270 ac_cv_lib_dnet_dnet_ntoa
=yes
10272 ac_cv_lib_dnet_dnet_ntoa
=no
10274 rm -f core conftest.err conftest.
$ac_objext \
10275 conftest
$ac_exeext conftest.
$ac_ext
10276 LIBS
=$ac_check_lib_save_LIBS
10278 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dnet_dnet_ntoa" >&5
10279 $as_echo "$ac_cv_lib_dnet_dnet_ntoa" >&6; }
10280 if test "x$ac_cv_lib_dnet_dnet_ntoa" = x
""yes; then :
10281 cat >>confdefs.h
<<_ACEOF
10282 #define HAVE_LIBDNET 1
10285 LIBS
="-ldnet $LIBS"
10290 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for main in -lXbsd" >&5
10291 $as_echo_n "checking for main in -lXbsd... " >&6; }
10292 if test "${ac_cv_lib_Xbsd_main+set}" = set; then :
10293 $as_echo_n "(cached) " >&6
10295 ac_check_lib_save_LIBS
=$LIBS
10296 LIBS
="-lXbsd $LIBS"
10297 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
10298 /* end confdefs.h. */
10309 if ac_fn_c_try_link
"$LINENO"; then :
10310 ac_cv_lib_Xbsd_main
=yes
10312 ac_cv_lib_Xbsd_main
=no
10314 rm -f core conftest.err conftest.
$ac_objext \
10315 conftest
$ac_exeext conftest.
$ac_ext
10316 LIBS
=$ac_check_lib_save_LIBS
10318 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_Xbsd_main" >&5
10319 $as_echo "$ac_cv_lib_Xbsd_main" >&6; }
10320 if test "x$ac_cv_lib_Xbsd_main" = x
""yes; then :
10321 LD_SWITCH_X_SITE
="$LD_SWITCH_X_SITE -lXbsd"
10326 for ac_header
in pthread.h
10328 ac_fn_c_check_header_mongrel
"$LINENO" "pthread.h" "ac_cv_header_pthread_h" "$ac_includes_default"
10329 if test "x$ac_cv_header_pthread_h" = x
""yes; then :
10330 cat >>confdefs.h
<<_ACEOF
10331 #define HAVE_PTHREAD_H 1
10338 if test "$ac_cv_header_pthread_h"; then
10339 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pthread_self in -lpthread" >&5
10340 $as_echo_n "checking for pthread_self in -lpthread... " >&6; }
10341 if test "${ac_cv_lib_pthread_pthread_self+set}" = set; then :
10342 $as_echo_n "(cached) " >&6
10344 ac_check_lib_save_LIBS
=$LIBS
10345 LIBS
="-lpthread $LIBS"
10346 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
10347 /* end confdefs.h. */
10349 /* Override any GCC internal prototype to avoid an error.
10350 Use char because int might match the return type of a GCC
10351 builtin and then its argument prototype would still apply. */
10355 char pthread_self ();
10359 return pthread_self ();
10364 if ac_fn_c_try_link
"$LINENO"; then :
10365 ac_cv_lib_pthread_pthread_self
=yes
10367 ac_cv_lib_pthread_pthread_self
=no
10369 rm -f core conftest.err conftest.
$ac_objext \
10370 conftest
$ac_exeext conftest.
$ac_ext
10371 LIBS
=$ac_check_lib_save_LIBS
10373 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_pthread_pthread_self" >&5
10374 $as_echo "$ac_cv_lib_pthread_pthread_self" >&6; }
10375 if test "x$ac_cv_lib_pthread_pthread_self" = x
""yes; then :
10380 if test "$HAVE_PTHREAD" = yes; then
10381 case "${canonical}" in
10383 *) LIB_PTHREAD
="-lpthread"
10384 LIBS
="$LIB_PTHREAD $LIBS" ;;
10387 $as_echo "#define HAVE_PTHREAD 1" >>confdefs.h
10392 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for cma_open in -lpthreads" >&5
10393 $as_echo_n "checking for cma_open in -lpthreads... " >&6; }
10394 if test "${ac_cv_lib_pthreads_cma_open+set}" = set; then :
10395 $as_echo_n "(cached) " >&6
10397 ac_check_lib_save_LIBS
=$LIBS
10398 LIBS
="-lpthreads $LIBS"
10399 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
10400 /* end confdefs.h. */
10402 /* Override any GCC internal prototype to avoid an error.
10403 Use char because int might match the return type of a GCC
10404 builtin and then its argument prototype would still apply. */
10412 return cma_open ();
10417 if ac_fn_c_try_link
"$LINENO"; then :
10418 ac_cv_lib_pthreads_cma_open
=yes
10420 ac_cv_lib_pthreads_cma_open
=no
10422 rm -f core conftest.err conftest.
$ac_objext \
10423 conftest
$ac_exeext conftest.
$ac_ext
10424 LIBS
=$ac_check_lib_save_LIBS
10426 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_pthreads_cma_open" >&5
10427 $as_echo "$ac_cv_lib_pthreads_cma_open" >&6; }
10428 if test "x$ac_cv_lib_pthreads_cma_open" = x
""yes; then :
10429 cat >>confdefs.h
<<_ACEOF
10430 #define HAVE_LIBPTHREADS 1
10433 LIBS
="-lpthreads $LIBS"
10438 ## Note: when using cpp in s/aix4.2.h, this definition depended on
10439 ## HAVE_LIBPTHREADS. That was not defined earlier in configure when
10440 ## the system file was sourced. Hence the value of LIBS_SYSTEM
10441 ## added to LIBS in configure would never contain the pthreads part,
10442 ## but the value used in Makefiles might. FIXME?
10444 ## -lpthreads seems to be necessary for Xlib in X11R6, and should
10445 ## be harmless on older versions of X where it happens to exist.
10446 test "$opsys" = "aix4-2" && \
10447 test $ac_cv_lib_pthreads_cma_open = yes && \
10448 LIBS_SYSTEM
="$LIBS_SYSTEM -lpthreads"
10453 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -bbigtoc option" >&5
10454 $as_echo_n "checking for -bbigtoc option... " >&6; }
10455 if test "${gdb_cv_bigtoc+set}" = set; then :
10456 $as_echo_n "(cached) " >&6
10460 yes) gdb_cv_bigtoc
=-Wl,-bbigtoc ;;
10461 *) gdb_cv_bigtoc
=-bbigtoc ;;
10464 LDFLAGS
=$LDFLAGS\
$gdb_cv_bigtoc
10465 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
10466 /* end confdefs.h. */
10476 if ac_fn_c_try_link
"$LINENO"; then :
10481 rm -f core conftest.err conftest.
$ac_objext \
10482 conftest
$ac_exeext conftest.
$ac_ext
10485 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gdb_cv_bigtoc" >&5
10486 $as_echo "$gdb_cv_bigtoc" >&6; }
10490 # Change CFLAGS and CPPFLAGS temporarily so that C_SWITCH_X_SITE gets
10491 # used for the tests that follow. We set them back to REAL_CFLAGS and
10492 # REAL_CPPFLAGS later on.
10494 REAL_CFLAGS
="$CFLAGS"
10495 REAL_CPPFLAGS
="$CPPFLAGS"
10497 if test "${HAVE_X11}" = "yes"; then
10498 DEFS
="$C_SWITCH_X_SITE $DEFS"
10499 LDFLAGS
="$LDFLAGS $LD_SWITCH_X_SITE"
10501 CFLAGS
="$C_SWITCH_X_SITE $CFLAGS"
10502 CPPFLAGS
="$C_SWITCH_X_SITE $CPPFLAGS"
10504 # On Solaris, arrange for LD_RUN_PATH to point to the X libraries for tests.
10505 # This is handled by LD_SWITCH_X_SITE_AUX during the real build,
10506 # but it's more convenient here to set LD_RUN_PATH
10507 # since this also works on hosts that don't understand LD_SWITCH_X_SITE_AUX.
10508 if test "${x_libraries}" != NONE
&& test -n "${x_libraries}"; then
10509 LD_RUN_PATH
=$x_libraries${LD_RUN_PATH+:}$LD_RUN_PATH
10513 if test "${opsys}" = "gnu-linux"; then
10514 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether X on GNU/Linux needs -b to link" >&5
10515 $as_echo_n "checking whether X on GNU/Linux needs -b to link... " >&6; }
10516 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
10517 /* end confdefs.h. */
10522 XOpenDisplay ("foo");
10527 if ac_fn_c_try_link
"$LINENO"; then :
10528 xgnu_linux_first_failure
=no
10530 xgnu_linux_first_failure
=yes
10532 rm -f core conftest.err conftest.
$ac_objext \
10533 conftest
$ac_exeext conftest.
$ac_ext
10534 if test "${xgnu_linux_first_failure}" = "yes"; then
10535 OLD_LD_SWITCH_X_SITE
="$LD_SWITCH_X_SITE"
10536 OLD_C_SWITCH_X_SITE
="$C_SWITCH_X_SITE"
10537 OLD_CPPFLAGS
="$CPPFLAGS"
10539 LD_SWITCH_X_SITE
="$LD_SWITCH_X_SITE -b i486-linuxaout"
10540 C_SWITCH_X_SITE
="$C_SWITCH_X_SITE -b i486-linuxaout"
10541 CPPFLAGS
="$CPPFLAGS -b i486-linuxaout"
10542 LIBS
="$LIBS -b i486-linuxaout"
10543 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
10544 /* end confdefs.h. */
10549 XOpenDisplay ("foo");
10554 if ac_fn_c_try_link
"$LINENO"; then :
10555 xgnu_linux_second_failure
=no
10557 xgnu_linux_second_failure
=yes
10559 rm -f core conftest.err conftest.
$ac_objext \
10560 conftest
$ac_exeext conftest.
$ac_ext
10561 if test "${xgnu_linux_second_failure}" = "yes"; then
10562 # If we get the same failure with -b, there is no use adding -b.
10563 # So take it out. This plays safe.
10564 LD_SWITCH_X_SITE
="$OLD_LD_SWITCH_X_SITE"
10565 C_SWITCH_X_SITE
="$OLD_C_SWITCH_X_SITE"
10566 CPPFLAGS
="$OLD_CPPFLAGS"
10568 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10569 $as_echo "no" >&6; }
10571 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
10572 $as_echo "yes" >&6; }
10575 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10576 $as_echo "no" >&6; }
10580 # Reportedly, some broken Solaris systems have XKBlib.h but are missing
10581 # header files included from there.
10582 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Xkb" >&5
10583 $as_echo_n "checking for Xkb... " >&6; }
10584 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
10585 /* end confdefs.h. */
10586 #include <X11/Xlib.h>
10587 #include <X11/XKBlib.h>
10591 XkbDescPtr kb = XkbGetKeyboard (0, XkbAllComponentsMask, XkbUseCoreKbd);
10596 if ac_fn_c_try_link
"$LINENO"; then :
10601 rm -f core conftest.err conftest.
$ac_objext \
10602 conftest
$ac_exeext conftest.
$ac_ext
10603 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $emacs_xkb" >&5
10604 $as_echo "$emacs_xkb" >&6; }
10605 if test $emacs_xkb = yes; then
10607 $as_echo "#define HAVE_XKBGETKEYBOARD 1" >>confdefs.h
10611 for ac_func
in XrmSetDatabase XScreenResourceString \
10612 XScreenNumberOfScreen XSetWMProtocols
10614 as_ac_var
=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
10615 ac_fn_c_check_func
"$LINENO" "$ac_func" "$as_ac_var"
10616 eval as_val
=\$
$as_ac_var
10617 if test "x$as_val" = x
""yes; then :
10618 cat >>confdefs.h
<<_ACEOF
10619 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
10627 if test "${window_system}" = "x11"; then
10628 { $as_echo "$as_me:${as_lineno-$LINENO}: checking X11 version 6" >&5
10629 $as_echo_n "checking X11 version 6... " >&6; }
10630 if test "${emacs_cv_x11_version_6+set}" = set; then :
10631 $as_echo_n "(cached) " >&6
10633 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
10634 /* end confdefs.h. */
10635 #include <X11/Xlib.h>
10639 #if XlibSpecificationRelease < 6
10647 if ac_fn_c_try_link
"$LINENO"; then :
10648 emacs_cv_x11_version_6
=yes
10650 emacs_cv_x11_version_6
=no
10652 rm -f core conftest.err conftest.
$ac_objext \
10653 conftest
$ac_exeext conftest.
$ac_ext
10656 if test $emacs_cv_x11_version_6 = yes; then
10657 { $as_echo "$as_me:${as_lineno-$LINENO}: result: 6 or newer" >&5
10658 $as_echo "6 or newer" >&6; }
10660 $as_echo "#define HAVE_X11R6 1" >>confdefs.h
10663 $as_echo "#define HAVE_X_I18N 1" >>confdefs.h
10665 ## inoue@ainet.or.jp says Solaris has a bug related to X11R6-style
10670 $as_echo "#define HAVE_X11R6_XIM 1" >>confdefs.h
10675 { $as_echo "$as_me:${as_lineno-$LINENO}: result: before 6" >&5
10676 $as_echo "before 6" >&6; }
10681 ### Use -lrsvg-2 if available, unless `--with-rsvg=no' is specified.
10683 if test "${HAVE_X11}" = "yes" ||
test "${HAVE_NS}" = "yes"; then
10684 if test "${with_rsvg}" != "no"; then
10685 RSVG_REQUIRED
=2.11.0
10686 RSVG_MODULE
="librsvg-2.0 >= $RSVG_REQUIRED"
10691 # Extract the first word of "pkg-config", so it can be a program name with args.
10692 set dummy pkg-config
; ac_word
=$2
10693 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10694 $as_echo_n "checking for $ac_word... " >&6; }
10695 if test "${ac_cv_path_PKG_CONFIG+set}" = set; then :
10696 $as_echo_n "(cached) " >&6
10698 case $PKG_CONFIG in
10700 ac_cv_path_PKG_CONFIG
="$PKG_CONFIG" # Let the user override the test with a path.
10703 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
10704 for as_dir
in $PATH
10707 test -z "$as_dir" && as_dir
=.
10708 for ac_exec_ext
in '' $ac_executable_extensions; do
10709 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10710 ac_cv_path_PKG_CONFIG
="$as_dir/$ac_word$ac_exec_ext"
10711 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10718 test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG
="no"
10722 PKG_CONFIG
=$ac_cv_path_PKG_CONFIG
10723 if test -n "$PKG_CONFIG"; then
10724 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5
10725 $as_echo "$PKG_CONFIG" >&6; }
10727 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10728 $as_echo "no" >&6; }
10733 if test "$PKG_CONFIG" = "no" ; then
10736 PKG_CONFIG_MIN_VERSION
=0.9.0
10737 if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
10738 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $RSVG_MODULE" >&5
10739 $as_echo_n "checking for $RSVG_MODULE... " >&6; }
10741 if $PKG_CONFIG --exists "$RSVG_MODULE" 2>&5; then
10742 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
10743 $as_echo "yes" >&6; }
10746 { $as_echo "$as_me:${as_lineno-$LINENO}: checking RSVG_CFLAGS" >&5
10747 $as_echo_n "checking RSVG_CFLAGS... " >&6; }
10748 RSVG_CFLAGS
=`$PKG_CONFIG --cflags "$RSVG_MODULE"|sed -e 's,///*,/,g'`
10749 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RSVG_CFLAGS" >&5
10750 $as_echo "$RSVG_CFLAGS" >&6; }
10752 { $as_echo "$as_me:${as_lineno-$LINENO}: checking RSVG_LIBS" >&5
10753 $as_echo_n "checking RSVG_LIBS... " >&6; }
10754 RSVG_LIBS
=`$PKG_CONFIG --libs "$RSVG_MODULE"|sed -e 's,///*,/,g'`
10755 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RSVG_LIBS" >&5
10756 $as_echo "$RSVG_LIBS" >&6; }
10758 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10759 $as_echo "no" >&6; }
10762 ## If we have a custom action on failure, don't print errors, but
10763 ## do set a variable so people can do so.
10764 RSVG_PKG_ERRORS
=`$PKG_CONFIG --errors-to-stdout --print-errors "$RSVG_MODULE"`
10771 echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
10772 echo "*** See http://www.freedesktop.org/software/pkgconfig"
10776 if test $succeeded = yes; then
10785 if test $HAVE_RSVG = yes; then
10787 $as_echo "#define HAVE_RSVG 1" >>confdefs.h
10789 CFLAGS
="$CFLAGS $RSVG_CFLAGS"
10790 LIBS
="$RSVG_LIBS $LIBS"
10795 HAVE_IMAGEMAGICK
=no
10796 if test "${HAVE_X11}" = "yes"; then
10797 if test "${with_imagemagick}" != "no"; then
10798 ## 6.2.8 is the earliest version known to work, but earlier versions
10799 ## might work - let us know if you find one.
10800 ## 6.0.7 does not work. See bug#7955.
10801 IMAGEMAGICK_MODULE
="Wand >= 6.2.8"
10805 # Extract the first word of "pkg-config", so it can be a program name with args.
10806 set dummy pkg-config
; ac_word
=$2
10807 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10808 $as_echo_n "checking for $ac_word... " >&6; }
10809 if test "${ac_cv_path_PKG_CONFIG+set}" = set; then :
10810 $as_echo_n "(cached) " >&6
10812 case $PKG_CONFIG in
10814 ac_cv_path_PKG_CONFIG
="$PKG_CONFIG" # Let the user override the test with a path.
10817 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
10818 for as_dir
in $PATH
10821 test -z "$as_dir" && as_dir
=.
10822 for ac_exec_ext
in '' $ac_executable_extensions; do
10823 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10824 ac_cv_path_PKG_CONFIG
="$as_dir/$ac_word$ac_exec_ext"
10825 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10832 test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG
="no"
10836 PKG_CONFIG
=$ac_cv_path_PKG_CONFIG
10837 if test -n "$PKG_CONFIG"; then
10838 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5
10839 $as_echo "$PKG_CONFIG" >&6; }
10841 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10842 $as_echo "no" >&6; }
10847 if test "$PKG_CONFIG" = "no" ; then
10850 PKG_CONFIG_MIN_VERSION
=0.9.0
10851 if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
10852 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $IMAGEMAGICK_MODULE" >&5
10853 $as_echo_n "checking for $IMAGEMAGICK_MODULE... " >&6; }
10855 if $PKG_CONFIG --exists "$IMAGEMAGICK_MODULE" 2>&5; then
10856 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
10857 $as_echo "yes" >&6; }
10860 { $as_echo "$as_me:${as_lineno-$LINENO}: checking IMAGEMAGICK_CFLAGS" >&5
10861 $as_echo_n "checking IMAGEMAGICK_CFLAGS... " >&6; }
10862 IMAGEMAGICK_CFLAGS
=`$PKG_CONFIG --cflags "$IMAGEMAGICK_MODULE"|sed -e 's,///*,/,g'`
10863 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $IMAGEMAGICK_CFLAGS" >&5
10864 $as_echo "$IMAGEMAGICK_CFLAGS" >&6; }
10866 { $as_echo "$as_me:${as_lineno-$LINENO}: checking IMAGEMAGICK_LIBS" >&5
10867 $as_echo_n "checking IMAGEMAGICK_LIBS... " >&6; }
10868 IMAGEMAGICK_LIBS
=`$PKG_CONFIG --libs "$IMAGEMAGICK_MODULE"|sed -e 's,///*,/,g'`
10869 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $IMAGEMAGICK_LIBS" >&5
10870 $as_echo "$IMAGEMAGICK_LIBS" >&6; }
10872 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10873 $as_echo "no" >&6; }
10874 IMAGEMAGICK_CFLAGS
=""
10875 IMAGEMAGICK_LIBS
=""
10876 ## If we have a custom action on failure, don't print errors, but
10877 ## do set a variable so people can do so.
10878 IMAGEMAGICK_PKG_ERRORS
=`$PKG_CONFIG --errors-to-stdout --print-errors "$IMAGEMAGICK_MODULE"`
10885 echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
10886 echo "*** See http://www.freedesktop.org/software/pkgconfig"
10890 if test $succeeded = yes; then
10891 HAVE_IMAGEMAGICK
=yes
10899 if test $HAVE_IMAGEMAGICK = yes; then
10901 $as_echo "#define HAVE_IMAGEMAGICK 1" >>confdefs.h
10903 CFLAGS
="$CFLAGS $IMAGEMAGICK_CFLAGS"
10904 LIBS
="$IMAGEMAGICK_LIBS $LIBS"
10905 for ac_func
in MagickExportImagePixels
10907 ac_fn_c_check_func
"$LINENO" "MagickExportImagePixels" "ac_cv_func_MagickExportImagePixels"
10908 if test "x$ac_cv_func_MagickExportImagePixels" = x
""yes; then :
10909 cat >>confdefs.h
<<_ACEOF
10910 #define HAVE_MAGICKEXPORTIMAGEPIXELS 1
10923 if test "${with_gtk3}" = "yes"; then
10926 GTK_MODULES
="gtk+-3.0 >= $GTK_REQUIRED glib-2.0 >= $GLIB_REQUIRED"
10931 # Extract the first word of "pkg-config", so it can be a program name with args.
10932 set dummy pkg-config
; ac_word
=$2
10933 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10934 $as_echo_n "checking for $ac_word... " >&6; }
10935 if test "${ac_cv_path_PKG_CONFIG+set}" = set; then :
10936 $as_echo_n "(cached) " >&6
10938 case $PKG_CONFIG in
10940 ac_cv_path_PKG_CONFIG
="$PKG_CONFIG" # Let the user override the test with a path.
10943 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
10944 for as_dir
in $PATH
10947 test -z "$as_dir" && as_dir
=.
10948 for ac_exec_ext
in '' $ac_executable_extensions; do
10949 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10950 ac_cv_path_PKG_CONFIG
="$as_dir/$ac_word$ac_exec_ext"
10951 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10958 test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG
="no"
10962 PKG_CONFIG
=$ac_cv_path_PKG_CONFIG
10963 if test -n "$PKG_CONFIG"; then
10964 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5
10965 $as_echo "$PKG_CONFIG" >&6; }
10967 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10968 $as_echo "no" >&6; }
10973 if test "$PKG_CONFIG" = "no" ; then
10976 PKG_CONFIG_MIN_VERSION
=0.9.0
10977 if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
10978 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $GTK_MODULES" >&5
10979 $as_echo_n "checking for $GTK_MODULES... " >&6; }
10981 if $PKG_CONFIG --exists "$GTK_MODULES" 2>&5; then
10982 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
10983 $as_echo "yes" >&6; }
10986 { $as_echo "$as_me:${as_lineno-$LINENO}: checking GTK_CFLAGS" >&5
10987 $as_echo_n "checking GTK_CFLAGS... " >&6; }
10988 GTK_CFLAGS
=`$PKG_CONFIG --cflags "$GTK_MODULES"|sed -e 's,///*,/,g'`
10989 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GTK_CFLAGS" >&5
10990 $as_echo "$GTK_CFLAGS" >&6; }
10992 { $as_echo "$as_me:${as_lineno-$LINENO}: checking GTK_LIBS" >&5
10993 $as_echo_n "checking GTK_LIBS... " >&6; }
10994 GTK_LIBS
=`$PKG_CONFIG --libs "$GTK_MODULES"|sed -e 's,///*,/,g'`
10995 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GTK_LIBS" >&5
10996 $as_echo "$GTK_LIBS" >&6; }
10998 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10999 $as_echo "no" >&6; }
11002 ## If we have a custom action on failure, don't print errors, but
11003 ## do set a variable so people can do so.
11004 GTK_PKG_ERRORS
=`$PKG_CONFIG --errors-to-stdout --print-errors "$GTK_MODULES"`
11011 echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
11012 echo "*** See http://www.freedesktop.org/software/pkgconfig"
11016 if test $succeeded = yes; then
11022 if test "$pkg_check_gtk" = "no" && test "$USE_X_TOOLKIT" != "maybe"; then
11023 as_fn_error
"$GTK_PKG_ERRORS" "$LINENO" 5
11026 $as_echo "#define HAVE_GTK3 1" >>confdefs.h
11028 GTK_OBJ
=emacsgtkfixed.o
11031 if test "$pkg_check_gtk" != "yes"; then
11033 if test "${with_gtk}" = "yes" ||
test "$USE_X_TOOLKIT" = "maybe"; then
11036 GTK_MODULES
="gtk+-2.0 >= $GTK_REQUIRED glib-2.0 >= $GLIB_REQUIRED"
11041 # Extract the first word of "pkg-config", so it can be a program name with args.
11042 set dummy pkg-config
; ac_word
=$2
11043 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11044 $as_echo_n "checking for $ac_word... " >&6; }
11045 if test "${ac_cv_path_PKG_CONFIG+set}" = set; then :
11046 $as_echo_n "(cached) " >&6
11048 case $PKG_CONFIG in
11050 ac_cv_path_PKG_CONFIG
="$PKG_CONFIG" # Let the user override the test with a path.
11053 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
11054 for as_dir
in $PATH
11057 test -z "$as_dir" && as_dir
=.
11058 for ac_exec_ext
in '' $ac_executable_extensions; do
11059 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11060 ac_cv_path_PKG_CONFIG
="$as_dir/$ac_word$ac_exec_ext"
11061 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11068 test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG
="no"
11072 PKG_CONFIG
=$ac_cv_path_PKG_CONFIG
11073 if test -n "$PKG_CONFIG"; then
11074 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5
11075 $as_echo "$PKG_CONFIG" >&6; }
11077 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11078 $as_echo "no" >&6; }
11083 if test "$PKG_CONFIG" = "no" ; then
11086 PKG_CONFIG_MIN_VERSION
=0.9.0
11087 if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
11088 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $GTK_MODULES" >&5
11089 $as_echo_n "checking for $GTK_MODULES... " >&6; }
11091 if $PKG_CONFIG --exists "$GTK_MODULES" 2>&5; then
11092 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11093 $as_echo "yes" >&6; }
11096 { $as_echo "$as_me:${as_lineno-$LINENO}: checking GTK_CFLAGS" >&5
11097 $as_echo_n "checking GTK_CFLAGS... " >&6; }
11098 GTK_CFLAGS
=`$PKG_CONFIG --cflags "$GTK_MODULES"|sed -e 's,///*,/,g'`
11099 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GTK_CFLAGS" >&5
11100 $as_echo "$GTK_CFLAGS" >&6; }
11102 { $as_echo "$as_me:${as_lineno-$LINENO}: checking GTK_LIBS" >&5
11103 $as_echo_n "checking GTK_LIBS... " >&6; }
11104 GTK_LIBS
=`$PKG_CONFIG --libs "$GTK_MODULES"|sed -e 's,///*,/,g'`
11105 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GTK_LIBS" >&5
11106 $as_echo "$GTK_LIBS" >&6; }
11108 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11109 $as_echo "no" >&6; }
11112 ## If we have a custom action on failure, don't print errors, but
11113 ## do set a variable so people can do so.
11114 GTK_PKG_ERRORS
=`$PKG_CONFIG --errors-to-stdout --print-errors "$GTK_MODULES"`
11121 echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
11122 echo "*** See http://www.freedesktop.org/software/pkgconfig"
11126 if test $succeeded = yes; then
11132 if test "$pkg_check_gtk" = "no" && test "$USE_X_TOOLKIT" != "maybe"; then
11133 as_fn_error
"$GTK_PKG_ERRORS" "$LINENO" 5
11138 if test x
"$pkg_check_gtk" = xyes
; then
11142 C_SWITCH_X_SITE
="$C_SWITCH_X_SITE $GTK_CFLAGS"
11143 CFLAGS
="$CFLAGS $GTK_CFLAGS"
11144 LIBS
="$GTK_LIBS $LIBS"
11146 for ac_func
in gtk_main
11148 ac_fn_c_check_func
"$LINENO" "gtk_main" "ac_cv_func_gtk_main"
11149 if test "x$ac_cv_func_gtk_main" = x
""yes; then :
11150 cat >>confdefs.h
<<_ACEOF
11151 #define HAVE_GTK_MAIN 1
11157 if test "${GTK_COMPILES}" != "yes"; then
11158 if test "$USE_X_TOOLKIT" != "maybe"; then
11159 as_fn_error
"Gtk+ wanted, but it does not compile, see config.log. Maybe some x11-devel files missing?" "$LINENO" 5;
11164 $as_echo "#define USE_GTK 1" >>confdefs.h
11166 GTK_OBJ
="gtkutil.o $GTK_OBJ"
11168 if $PKG_CONFIG --atleast-version=2.10 gtk
+-2.0
; then
11171 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Your version of Gtk+ will have problems with
11172 closing open displays. This is no problem if you just use
11173 one display, but if you use more than one and close one of them
11174 Emacs may crash." >&5
11175 $as_echo "$as_me: WARNING: Your version of Gtk+ will have problems with
11176 closing open displays. This is no problem if you just use
11177 one display, but if you use more than one and close one of them
11178 Emacs may crash." >&2;}
11187 if test "${HAVE_GTK}" = "yes"; then
11189 if test "$with_toolkit_scroll_bars" != no
; then
11190 with_toolkit_scroll_bars
=yes
11193 HAVE_GTK_FILE_SELECTION
=no
11194 ac_fn_c_check_decl
"$LINENO" "GTK_TYPE_FILE_SELECTION" "ac_cv_have_decl_GTK_TYPE_FILE_SELECTION" "$ac_includes_default
11195 #include <gtk/gtk.h>
11197 if test "x$ac_cv_have_decl_GTK_TYPE_FILE_SELECTION" = x
""yes; then :
11198 HAVE_GTK_FILE_SELECTION
=yes
11200 HAVE_GTK_FILE_SELECTION
=no
11203 if test "$HAVE_GTK_FILE_SELECTION" = yes; then
11204 for ac_func
in gtk_file_selection_new
11206 ac_fn_c_check_func
"$LINENO" "gtk_file_selection_new" "ac_cv_func_gtk_file_selection_new"
11207 if test "x$ac_cv_func_gtk_file_selection_new" = x
""yes; then :
11208 cat >>confdefs.h
<<_ACEOF
11209 #define HAVE_GTK_FILE_SELECTION_NEW 1
11218 for ac_func
in gtk_widget_get_window gtk_widget_set_has_window \
11219 gtk_dialog_get_action_area gtk_widget_get_sensitive \
11220 gtk_widget_get_mapped gtk_adjustment_get_page_size \
11221 gtk_orientable_set_orientation
11223 as_ac_var
=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
11224 ac_fn_c_check_func
"$LINENO" "$ac_func" "$as_ac_var"
11225 eval as_val
=\$
$as_ac_var
11226 if test "x$as_val" = x
""yes; then :
11227 cat >>confdefs.h
<<_ACEOF
11228 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
11239 if test "${with_dbus}" = "yes"; then
11243 # Extract the first word of "pkg-config", so it can be a program name with args.
11244 set dummy pkg-config
; ac_word
=$2
11245 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11246 $as_echo_n "checking for $ac_word... " >&6; }
11247 if test "${ac_cv_path_PKG_CONFIG+set}" = set; then :
11248 $as_echo_n "(cached) " >&6
11250 case $PKG_CONFIG in
11252 ac_cv_path_PKG_CONFIG
="$PKG_CONFIG" # Let the user override the test with a path.
11255 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
11256 for as_dir
in $PATH
11259 test -z "$as_dir" && as_dir
=.
11260 for ac_exec_ext
in '' $ac_executable_extensions; do
11261 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11262 ac_cv_path_PKG_CONFIG
="$as_dir/$ac_word$ac_exec_ext"
11263 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11270 test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG
="no"
11274 PKG_CONFIG
=$ac_cv_path_PKG_CONFIG
11275 if test -n "$PKG_CONFIG"; then
11276 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5
11277 $as_echo "$PKG_CONFIG" >&6; }
11279 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11280 $as_echo "no" >&6; }
11285 if test "$PKG_CONFIG" = "no" ; then
11288 PKG_CONFIG_MIN_VERSION
=0.9.0
11289 if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
11290 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dbus-1 >= 1.0" >&5
11291 $as_echo_n "checking for dbus-1 >= 1.0... " >&6; }
11293 if $PKG_CONFIG --exists "dbus-1 >= 1.0" 2>&5; then
11294 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11295 $as_echo "yes" >&6; }
11298 { $as_echo "$as_me:${as_lineno-$LINENO}: checking DBUS_CFLAGS" >&5
11299 $as_echo_n "checking DBUS_CFLAGS... " >&6; }
11300 DBUS_CFLAGS
=`$PKG_CONFIG --cflags "dbus-1 >= 1.0"|sed -e 's,///*,/,g'`
11301 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DBUS_CFLAGS" >&5
11302 $as_echo "$DBUS_CFLAGS" >&6; }
11304 { $as_echo "$as_me:${as_lineno-$LINENO}: checking DBUS_LIBS" >&5
11305 $as_echo_n "checking DBUS_LIBS... " >&6; }
11306 DBUS_LIBS
=`$PKG_CONFIG --libs "dbus-1 >= 1.0"|sed -e 's,///*,/,g'`
11307 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DBUS_LIBS" >&5
11308 $as_echo "$DBUS_LIBS" >&6; }
11310 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11311 $as_echo "no" >&6; }
11314 ## If we have a custom action on failure, don't print errors, but
11315 ## do set a variable so people can do so.
11316 DBUS_PKG_ERRORS
=`$PKG_CONFIG --errors-to-stdout --print-errors "dbus-1 >= 1.0"`
11323 echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
11324 echo "*** See http://www.freedesktop.org/software/pkgconfig"
11328 if test $succeeded = yes; then
11334 if test "$HAVE_DBUS" = yes; then
11335 LIBS
="$LIBS $DBUS_LIBS"
11337 $as_echo "#define HAVE_DBUS 1" >>confdefs.h
11339 for ac_func
in dbus_watch_get_unix_fd
11341 ac_fn_c_check_func
"$LINENO" "dbus_watch_get_unix_fd" "ac_cv_func_dbus_watch_get_unix_fd"
11342 if test "x$ac_cv_func_dbus_watch_get_unix_fd" = x
""yes; then :
11343 cat >>confdefs.h
<<_ACEOF
11344 #define HAVE_DBUS_WATCH_GET_UNIX_FD 1
11350 DBUS_OBJ
=dbusbind.o
11356 if test "${HAVE_X11}" = "yes" && test "${with_gsettings}" = "yes"; then
11360 # Extract the first word of "pkg-config", so it can be a program name with args.
11361 set dummy pkg-config
; ac_word
=$2
11362 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11363 $as_echo_n "checking for $ac_word... " >&6; }
11364 if test "${ac_cv_path_PKG_CONFIG+set}" = set; then :
11365 $as_echo_n "(cached) " >&6
11367 case $PKG_CONFIG in
11369 ac_cv_path_PKG_CONFIG
="$PKG_CONFIG" # Let the user override the test with a path.
11372 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
11373 for as_dir
in $PATH
11376 test -z "$as_dir" && as_dir
=.
11377 for ac_exec_ext
in '' $ac_executable_extensions; do
11378 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11379 ac_cv_path_PKG_CONFIG
="$as_dir/$ac_word$ac_exec_ext"
11380 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11387 test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG
="no"
11391 PKG_CONFIG
=$ac_cv_path_PKG_CONFIG
11392 if test -n "$PKG_CONFIG"; then
11393 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5
11394 $as_echo "$PKG_CONFIG" >&6; }
11396 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11397 $as_echo "no" >&6; }
11402 if test "$PKG_CONFIG" = "no" ; then
11405 PKG_CONFIG_MIN_VERSION
=0.9.0
11406 if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
11407 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gio-2.0 >= 2.26" >&5
11408 $as_echo_n "checking for gio-2.0 >= 2.26... " >&6; }
11410 if $PKG_CONFIG --exists "gio-2.0 >= 2.26" 2>&5; then
11411 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11412 $as_echo "yes" >&6; }
11415 { $as_echo "$as_me:${as_lineno-$LINENO}: checking GSETTINGS_CFLAGS" >&5
11416 $as_echo_n "checking GSETTINGS_CFLAGS... " >&6; }
11417 GSETTINGS_CFLAGS
=`$PKG_CONFIG --cflags "gio-2.0 >= 2.26"|sed -e 's,///*,/,g'`
11418 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GSETTINGS_CFLAGS" >&5
11419 $as_echo "$GSETTINGS_CFLAGS" >&6; }
11421 { $as_echo "$as_me:${as_lineno-$LINENO}: checking GSETTINGS_LIBS" >&5
11422 $as_echo_n "checking GSETTINGS_LIBS... " >&6; }
11423 GSETTINGS_LIBS
=`$PKG_CONFIG --libs "gio-2.0 >= 2.26"|sed -e 's,///*,/,g'`
11424 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GSETTINGS_LIBS" >&5
11425 $as_echo "$GSETTINGS_LIBS" >&6; }
11427 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11428 $as_echo "no" >&6; }
11429 GSETTINGS_CFLAGS
=""
11431 ## If we have a custom action on failure, don't print errors, but
11432 ## do set a variable so people can do so.
11433 GSETTINGS_PKG_ERRORS
=`$PKG_CONFIG --errors-to-stdout --print-errors "gio-2.0 >= 2.26"`
11440 echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
11441 echo "*** See http://www.freedesktop.org/software/pkgconfig"
11445 if test $succeeded = yes; then
11451 if test "$HAVE_GSETTINGS" = "yes"; then
11453 $as_echo "#define HAVE_GSETTINGS 1" >>confdefs.h
11455 SETTINGS_CFLAGS
="$GSETTINGS_CFLAGS"
11456 SETTINGS_LIBS
="$GSETTINGS_LIBS"
11461 if test "${HAVE_X11}" = "yes" && test "${with_gconf}" = "yes"; then
11465 # Extract the first word of "pkg-config", so it can be a program name with args.
11466 set dummy pkg-config
; ac_word
=$2
11467 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11468 $as_echo_n "checking for $ac_word... " >&6; }
11469 if test "${ac_cv_path_PKG_CONFIG+set}" = set; then :
11470 $as_echo_n "(cached) " >&6
11472 case $PKG_CONFIG in
11474 ac_cv_path_PKG_CONFIG
="$PKG_CONFIG" # Let the user override the test with a path.
11477 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
11478 for as_dir
in $PATH
11481 test -z "$as_dir" && as_dir
=.
11482 for ac_exec_ext
in '' $ac_executable_extensions; do
11483 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11484 ac_cv_path_PKG_CONFIG
="$as_dir/$ac_word$ac_exec_ext"
11485 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11492 test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG
="no"
11496 PKG_CONFIG
=$ac_cv_path_PKG_CONFIG
11497 if test -n "$PKG_CONFIG"; then
11498 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5
11499 $as_echo "$PKG_CONFIG" >&6; }
11501 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11502 $as_echo "no" >&6; }
11507 if test "$PKG_CONFIG" = "no" ; then
11510 PKG_CONFIG_MIN_VERSION
=0.9.0
11511 if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
11512 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gconf-2.0 >= 2.13" >&5
11513 $as_echo_n "checking for gconf-2.0 >= 2.13... " >&6; }
11515 if $PKG_CONFIG --exists "gconf-2.0 >= 2.13" 2>&5; then
11516 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11517 $as_echo "yes" >&6; }
11520 { $as_echo "$as_me:${as_lineno-$LINENO}: checking GCONF_CFLAGS" >&5
11521 $as_echo_n "checking GCONF_CFLAGS... " >&6; }
11522 GCONF_CFLAGS
=`$PKG_CONFIG --cflags "gconf-2.0 >= 2.13"|sed -e 's,///*,/,g'`
11523 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GCONF_CFLAGS" >&5
11524 $as_echo "$GCONF_CFLAGS" >&6; }
11526 { $as_echo "$as_me:${as_lineno-$LINENO}: checking GCONF_LIBS" >&5
11527 $as_echo_n "checking GCONF_LIBS... " >&6; }
11528 GCONF_LIBS
=`$PKG_CONFIG --libs "gconf-2.0 >= 2.13"|sed -e 's,///*,/,g'`
11529 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GCONF_LIBS" >&5
11530 $as_echo "$GCONF_LIBS" >&6; }
11532 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11533 $as_echo "no" >&6; }
11536 ## If we have a custom action on failure, don't print errors, but
11537 ## do set a variable so people can do so.
11538 GCONF_PKG_ERRORS
=`$PKG_CONFIG --errors-to-stdout --print-errors "gconf-2.0 >= 2.13"`
11545 echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
11546 echo "*** See http://www.freedesktop.org/software/pkgconfig"
11550 if test $succeeded = yes; then
11556 if test "$HAVE_GCONF" = yes; then
11558 $as_echo "#define HAVE_GCONF 1" >>confdefs.h
11560 SETTINGS_CFLAGS
="$SETTINGS_CFLAGS $GCONF_CFLAGS"
11561 SETTINGS_LIBS
="$SETTINGS_LIBS $GCONF_LIBS"
11565 if test "$HAVE_GSETTINGS" = "yes" ||
test "$HAVE_GCONF" = "yes"; then
11566 SAVE_CFLAGS
="$CFLAGS"
11567 SAVE_LDFLAGS
="$LDFLAGS"
11568 CFLAGS
="$SETTINGS_CFLAGS $CFLAGS"
11569 LDFLAGS
="$SETTINGS_LIBS $LDFLAGS"
11570 for ac_func
in g_type_init
11572 ac_fn_c_check_func
"$LINENO" "g_type_init" "ac_cv_func_g_type_init"
11573 if test "x$ac_cv_func_g_type_init" = x
""yes; then :
11574 cat >>confdefs.h
<<_ACEOF
11575 #define HAVE_G_TYPE_INIT 1
11581 CFLAGS
="$SAVE_CFLAGS"
11582 LDFLAGS
="$SAVE_LDFLAGS"
11590 if test "${with_selinux}" = "yes"; then
11591 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for lgetfilecon in -lselinux" >&5
11592 $as_echo_n "checking for lgetfilecon in -lselinux... " >&6; }
11593 if test "${ac_cv_lib_selinux_lgetfilecon+set}" = set; then :
11594 $as_echo_n "(cached) " >&6
11596 ac_check_lib_save_LIBS
=$LIBS
11597 LIBS
="-lselinux $LIBS"
11598 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
11599 /* end confdefs.h. */
11601 /* Override any GCC internal prototype to avoid an error.
11602 Use char because int might match the return type of a GCC
11603 builtin and then its argument prototype would still apply. */
11607 char lgetfilecon ();
11611 return lgetfilecon ();
11616 if ac_fn_c_try_link
"$LINENO"; then :
11617 ac_cv_lib_selinux_lgetfilecon
=yes
11619 ac_cv_lib_selinux_lgetfilecon
=no
11621 rm -f core conftest.err conftest.
$ac_objext \
11622 conftest
$ac_exeext conftest.
$ac_ext
11623 LIBS
=$ac_check_lib_save_LIBS
11625 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_selinux_lgetfilecon" >&5
11626 $as_echo "$ac_cv_lib_selinux_lgetfilecon" >&6; }
11627 if test "x$ac_cv_lib_selinux_lgetfilecon" = x
""yes; then :
11628 HAVE_LIBSELINUX
=yes
11633 if test "$HAVE_LIBSELINUX" = yes; then
11635 $as_echo "#define HAVE_LIBSELINUX 1" >>confdefs.h
11637 LIBSELINUX_LIBS
=-lselinux
11643 HAVE_GNUTLS_CALLBACK_CERTIFICATE_VERIFY
=no
11644 if test "${with_gnutls}" = "yes" ; then
11648 # Extract the first word of "pkg-config", so it can be a program name with args.
11649 set dummy pkg-config
; ac_word
=$2
11650 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11651 $as_echo_n "checking for $ac_word... " >&6; }
11652 if test "${ac_cv_path_PKG_CONFIG+set}" = set; then :
11653 $as_echo_n "(cached) " >&6
11655 case $PKG_CONFIG in
11657 ac_cv_path_PKG_CONFIG
="$PKG_CONFIG" # Let the user override the test with a path.
11660 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
11661 for as_dir
in $PATH
11664 test -z "$as_dir" && as_dir
=.
11665 for ac_exec_ext
in '' $ac_executable_extensions; do
11666 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11667 ac_cv_path_PKG_CONFIG
="$as_dir/$ac_word$ac_exec_ext"
11668 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11675 test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG
="no"
11679 PKG_CONFIG
=$ac_cv_path_PKG_CONFIG
11680 if test -n "$PKG_CONFIG"; then
11681 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5
11682 $as_echo "$PKG_CONFIG" >&6; }
11684 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11685 $as_echo "no" >&6; }
11690 if test "$PKG_CONFIG" = "no" ; then
11693 PKG_CONFIG_MIN_VERSION
=0.9.0
11694 if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
11695 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gnutls >= 2.6.6" >&5
11696 $as_echo_n "checking for gnutls >= 2.6.6... " >&6; }
11698 if $PKG_CONFIG --exists "gnutls >= 2.6.6" 2>&5; then
11699 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11700 $as_echo "yes" >&6; }
11703 { $as_echo "$as_me:${as_lineno-$LINENO}: checking LIBGNUTLS_CFLAGS" >&5
11704 $as_echo_n "checking LIBGNUTLS_CFLAGS... " >&6; }
11705 LIBGNUTLS_CFLAGS
=`$PKG_CONFIG --cflags "gnutls >= 2.6.6"|sed -e 's,///*,/,g'`
11706 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIBGNUTLS_CFLAGS" >&5
11707 $as_echo "$LIBGNUTLS_CFLAGS" >&6; }
11709 { $as_echo "$as_me:${as_lineno-$LINENO}: checking LIBGNUTLS_LIBS" >&5
11710 $as_echo_n "checking LIBGNUTLS_LIBS... " >&6; }
11711 LIBGNUTLS_LIBS
=`$PKG_CONFIG --libs "gnutls >= 2.6.6"|sed -e 's,///*,/,g'`
11712 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIBGNUTLS_LIBS" >&5
11713 $as_echo "$LIBGNUTLS_LIBS" >&6; }
11715 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11716 $as_echo "no" >&6; }
11717 LIBGNUTLS_CFLAGS
=""
11719 ## If we have a custom action on failure, don't print errors, but
11720 ## do set a variable so people can do so.
11721 LIBGNUTLS_PKG_ERRORS
=`$PKG_CONFIG --errors-to-stdout --print-errors "gnutls >= 2.6.6"`
11728 echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
11729 echo "*** See http://www.freedesktop.org/software/pkgconfig"
11733 if test $succeeded = yes; then
11739 if test "${HAVE_GNUTLS}" = "yes"; then
11741 $as_echo "#define HAVE_GNUTLS 1" >>confdefs.h
11745 CFLAGS
="$CFLAGS $LIBGNUTLS_CFLAGS"
11746 LIBS
="$LIBGNUTLS_LIBS $LIBS"
11747 for ac_func
in gnutls_certificate_set_verify_function
11749 ac_fn_c_check_func
"$LINENO" "gnutls_certificate_set_verify_function" "ac_cv_func_gnutls_certificate_set_verify_function"
11750 if test "x$ac_cv_func_gnutls_certificate_set_verify_function" = x
""yes; then :
11751 cat >>confdefs.h
<<_ACEOF
11752 #define HAVE_GNUTLS_CERTIFICATE_SET_VERIFY_FUNCTION 1
11754 HAVE_GNUTLS_CALLBACK_CERTIFICATE_VERIFY
=yes
11759 if test "${HAVE_GNUTLS_CALLBACK_CERTIFICATE_VERIFY}" = "yes"; then
11761 $as_echo "#define HAVE_GNUTLS_CALLBACK_CERTIFICATE_VERIFY 1" >>confdefs.h
11771 if test x
"${USE_X_TOOLKIT}" = xmaybe ||
test x
"${USE_X_TOOLKIT}" = xLUCID
; then
11772 if test "$with_xaw3d" != no
; then
11773 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for xaw3d" >&5
11774 $as_echo_n "checking for xaw3d... " >&6; }
11775 if test "${emacs_cv_xaw3d+set}" = set; then :
11776 $as_echo_n "(cached) " >&6
11778 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
11779 /* end confdefs.h. */
11781 #include <X11/Intrinsic.h>
11782 #include <X11/Xaw3d/Simple.h>
11791 if ac_fn_c_try_link
"$LINENO"; then :
11792 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for XawScrollbarSetThumb in -lXaw3d" >&5
11793 $as_echo_n "checking for XawScrollbarSetThumb in -lXaw3d... " >&6; }
11794 if test "${ac_cv_lib_Xaw3d_XawScrollbarSetThumb+set}" = set; then :
11795 $as_echo_n "(cached) " >&6
11797 ac_check_lib_save_LIBS
=$LIBS
11798 LIBS
="-lXaw3d $LIBS"
11799 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
11800 /* end confdefs.h. */
11802 /* Override any GCC internal prototype to avoid an error.
11803 Use char because int might match the return type of a GCC
11804 builtin and then its argument prototype would still apply. */
11808 char XawScrollbarSetThumb ();
11812 return XawScrollbarSetThumb ();
11817 if ac_fn_c_try_link
"$LINENO"; then :
11818 ac_cv_lib_Xaw3d_XawScrollbarSetThumb
=yes
11820 ac_cv_lib_Xaw3d_XawScrollbarSetThumb
=no
11822 rm -f core conftest.err conftest.
$ac_objext \
11823 conftest
$ac_exeext conftest.
$ac_ext
11824 LIBS
=$ac_check_lib_save_LIBS
11826 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_Xaw3d_XawScrollbarSetThumb" >&5
11827 $as_echo "$ac_cv_lib_Xaw3d_XawScrollbarSetThumb" >&6; }
11828 if test "x$ac_cv_lib_Xaw3d_XawScrollbarSetThumb" = x
""yes; then :
11837 rm -f core conftest.err conftest.
$ac_objext \
11838 conftest
$ac_exeext conftest.
$ac_ext
11844 if test $emacs_cv_xaw3d = yes; then
11845 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes; using Lucid toolkit" >&5
11846 $as_echo "yes; using Lucid toolkit" >&6; }
11847 USE_X_TOOLKIT
=LUCID
11851 $as_echo "#define HAVE_XAW3D 1" >>confdefs.h
11854 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11855 $as_echo "no" >&6; }
11856 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libXaw" >&5
11857 $as_echo_n "checking for libXaw... " >&6; }
11858 if test "${emacs_cv_xaw+set}" = set; then :
11859 $as_echo_n "(cached) " >&6
11861 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
11862 /* end confdefs.h. */
11864 #include <X11/Intrinsic.h>
11865 #include <X11/Xaw/Simple.h>
11874 if ac_fn_c_try_link
"$LINENO"; then :
11879 rm -f core conftest.err conftest.
$ac_objext \
11880 conftest
$ac_exeext conftest.
$ac_ext
11883 if test $emacs_cv_xaw = yes; then
11884 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes; using Lucid toolkit" >&5
11885 $as_echo "yes; using Lucid toolkit" >&6; }
11886 USE_X_TOOLKIT
=LUCID
11888 elif test x
"${USE_X_TOOLKIT}" = xLUCID
; then
11889 as_fn_error
"Lucid toolkit requires X11/Xaw include files" "$LINENO" 5
11891 as_fn_error
"No X toolkit could be found.
11892 If you are sure you want Emacs compiled without an X toolkit, pass
11893 --with-x-toolkit=no
11894 to configure. Otherwise, install the development libraries for the toolkit
11895 that you want to use (e.g. Gtk+) and re-run configure." "$LINENO" 5
11900 X_TOOLKIT_TYPE
=$USE_X_TOOLKIT
11903 if test "${USE_X_TOOLKIT}" != "none"; then
11904 { $as_echo "$as_me:${as_lineno-$LINENO}: checking X11 toolkit version" >&5
11905 $as_echo_n "checking X11 toolkit version... " >&6; }
11906 if test "${emacs_cv_x11_toolkit_version_6+set}" = set; then :
11907 $as_echo_n "(cached) " >&6
11909 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
11910 /* end confdefs.h. */
11911 #include <X11/Intrinsic.h>
11915 #if XtSpecificationRelease < 6
11923 if ac_fn_c_try_link
"$LINENO"; then :
11924 emacs_cv_x11_toolkit_version_6
=yes
11926 emacs_cv_x11_toolkit_version_6
=no
11928 rm -f core conftest.err conftest.
$ac_objext \
11929 conftest
$ac_exeext conftest.
$ac_ext
11932 HAVE_X11XTR6
=$emacs_cv_x11_toolkit_version_6
11933 if test $emacs_cv_x11_toolkit_version_6 = yes; then
11934 { $as_echo "$as_me:${as_lineno-$LINENO}: result: 6 or newer" >&5
11935 $as_echo "6 or newer" >&6; }
11937 $as_echo "#define HAVE_X11XTR6 1" >>confdefs.h
11939 LIBXTR6
="-lSM -lICE"
11941 ## Use libw.a along with X11R6 Xt.
11942 unixware
) LIBXTR6
="$LIBXTR6 -lw" ;;
11945 { $as_echo "$as_me:${as_lineno-$LINENO}: result: before 6" >&5
11946 $as_echo "before 6" >&6; }
11950 if test x
$HAVE_X11XTR6 = xyes
; then
11951 LIBS
="-lXt -lSM -lICE $LIBS"
11955 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for XmuConvertStandardSelection in -lXmu" >&5
11956 $as_echo_n "checking for XmuConvertStandardSelection in -lXmu... " >&6; }
11957 if test "${ac_cv_lib_Xmu_XmuConvertStandardSelection+set}" = set; then :
11958 $as_echo_n "(cached) " >&6
11960 ac_check_lib_save_LIBS
=$LIBS
11962 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
11963 /* end confdefs.h. */
11965 /* Override any GCC internal prototype to avoid an error.
11966 Use char because int might match the return type of a GCC
11967 builtin and then its argument prototype would still apply. */
11971 char XmuConvertStandardSelection ();
11975 return XmuConvertStandardSelection ();
11980 if ac_fn_c_try_link
"$LINENO"; then :
11981 ac_cv_lib_Xmu_XmuConvertStandardSelection
=yes
11983 ac_cv_lib_Xmu_XmuConvertStandardSelection
=no
11985 rm -f core conftest.err conftest.
$ac_objext \
11986 conftest
$ac_exeext conftest.
$ac_ext
11987 LIBS
=$ac_check_lib_save_LIBS
11989 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_Xmu_XmuConvertStandardSelection" >&5
11990 $as_echo "$ac_cv_lib_Xmu_XmuConvertStandardSelection" >&6; }
11991 if test "x$ac_cv_lib_Xmu_XmuConvertStandardSelection" = x
""yes; then :
11992 cat >>confdefs.h
<<_ACEOF
11993 #define HAVE_LIBXMU 1
12000 test $ac_cv_lib_Xmu_XmuConvertStandardSelection = no
&& LIBS
="$OLDLIBS"
12006 ## These systems don't supply Xmu.
12008 test "X$ac_cv_lib_Xmu_XmuConvertStandardSelection" != "Xyes" && LIBXMU
=
12013 # On Irix 6.5, at least, we need XShapeQueryExtension from -lXext for Xaw3D.
12014 if test "${HAVE_X11}" = "yes"; then
12015 if test "${USE_X_TOOLKIT}" != "none"; then
12016 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for XShapeQueryExtension in -lXext" >&5
12017 $as_echo_n "checking for XShapeQueryExtension in -lXext... " >&6; }
12018 if test "${ac_cv_lib_Xext_XShapeQueryExtension+set}" = set; then :
12019 $as_echo_n "(cached) " >&6
12021 ac_check_lib_save_LIBS
=$LIBS
12022 LIBS
="-lXext $LIBS"
12023 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
12024 /* end confdefs.h. */
12026 /* Override any GCC internal prototype to avoid an error.
12027 Use char because int might match the return type of a GCC
12028 builtin and then its argument prototype would still apply. */
12032 char XShapeQueryExtension ();
12036 return XShapeQueryExtension ();
12041 if ac_fn_c_try_link
"$LINENO"; then :
12042 ac_cv_lib_Xext_XShapeQueryExtension
=yes
12044 ac_cv_lib_Xext_XShapeQueryExtension
=no
12046 rm -f core conftest.err conftest.
$ac_objext \
12047 conftest
$ac_exeext conftest.
$ac_ext
12048 LIBS
=$ac_check_lib_save_LIBS
12050 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_Xext_XShapeQueryExtension" >&5
12051 $as_echo "$ac_cv_lib_Xext_XShapeQueryExtension" >&6; }
12052 if test "x$ac_cv_lib_Xext_XShapeQueryExtension" = x
""yes; then :
12053 cat >>confdefs.h
<<_ACEOF
12054 #define HAVE_LIBXEXT 1
12057 LIBS
="-lXext $LIBS"
12065 if test "${USE_X_TOOLKIT}" = "MOTIF"; then
12066 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Motif version 2.1" >&5
12067 $as_echo_n "checking for Motif version 2.1... " >&6; }
12068 if test "${emacs_cv_motif_version_2_1+set}" = set; then :
12069 $as_echo_n "(cached) " >&6
12071 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
12072 /* end confdefs.h. */
12077 #if XmVERSION > 2 || (XmVERSION == 2 && XmREVISION >= 1)
12080 Motif version prior to 2.1.
12086 if ac_fn_c_try_compile
"$LINENO"; then :
12087 emacs_cv_motif_version_2_1
=yes
12089 emacs_cv_motif_version_2_1
=no
12091 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
12093 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $emacs_cv_motif_version_2_1" >&5
12094 $as_echo "$emacs_cv_motif_version_2_1" >&6; }
12095 if test $emacs_cv_motif_version_2_1 = yes; then
12096 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for XpCreateContext in -lXp" >&5
12097 $as_echo_n "checking for XpCreateContext in -lXp... " >&6; }
12098 if test "${ac_cv_lib_Xp_XpCreateContext+set}" = set; then :
12099 $as_echo_n "(cached) " >&6
12101 ac_check_lib_save_LIBS
=$LIBS
12103 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
12104 /* end confdefs.h. */
12106 /* Override any GCC internal prototype to avoid an error.
12107 Use char because int might match the return type of a GCC
12108 builtin and then its argument prototype would still apply. */
12112 char XpCreateContext ();
12116 return XpCreateContext ();
12121 if ac_fn_c_try_link
"$LINENO"; then :
12122 ac_cv_lib_Xp_XpCreateContext
=yes
12124 ac_cv_lib_Xp_XpCreateContext
=no
12126 rm -f core conftest.err conftest.
$ac_objext \
12127 conftest
$ac_exeext conftest.
$ac_ext
12128 LIBS
=$ac_check_lib_save_LIBS
12130 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_Xp_XpCreateContext" >&5
12131 $as_echo "$ac_cv_lib_Xp_XpCreateContext" >&6; }
12132 if test "x$ac_cv_lib_Xp_XpCreateContext" = x
""yes; then :
12137 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for LessTif where some systems put it" >&5
12138 $as_echo_n "checking for LessTif where some systems put it... " >&6; }
12139 if test "${emacs_cv_lesstif+set}" = set; then :
12140 $as_echo_n "(cached) " >&6
12142 # We put this in CFLAGS temporarily to precede other -I options
12143 # that might be in CFLAGS temporarily.
12144 # We put this in CPPFLAGS where it precedes the other -I options.
12145 OLD_CPPFLAGS
=$CPPFLAGS
12147 CPPFLAGS
="-I/usr/X11R6/LessTif/Motif1.2/include $CPPFLAGS"
12148 CFLAGS
="-I/usr/X11R6/LessTif/Motif1.2/include $CFLAGS"
12149 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
12150 /* end confdefs.h. */
12151 #include </usr/X11R6/LessTif/Motif1.2/include/Xm/Xm.h>
12160 if ac_fn_c_try_compile
"$LINENO"; then :
12161 emacs_cv_lesstif
=yes
12163 emacs_cv_lesstif
=no
12165 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
12167 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $emacs_cv_lesstif" >&5
12168 $as_echo "$emacs_cv_lesstif" >&6; }
12169 if test $emacs_cv_lesstif = yes; then
12170 # Make sure this -I option remains in CPPFLAGS after it is set
12171 # back to REAL_CPPFLAGS.
12172 # There is no need to change REAL_CFLAGS, because REAL_CFLAGS does not
12173 # have those other -I options anyway. Ultimately, having this
12174 # directory ultimately in CPPFLAGS will be enough.
12175 REAL_CPPFLAGS
="-I/usr/X11R6/LessTif/Motif1.2/include $REAL_CPPFLAGS"
12176 LDFLAGS
="-L/usr/X11R6/LessTif/Motif1.2/lib $LDFLAGS"
12179 CPPFLAGS
=$OLD_CPPFLAGS
12185 USE_TOOLKIT_SCROLL_BARS
=no
12186 if test "${with_toolkit_scroll_bars}" != "no"; then
12187 if test "${USE_X_TOOLKIT}" != "none"; then
12188 if test "${USE_X_TOOLKIT}" = "MOTIF"; then
12189 $as_echo "#define USE_TOOLKIT_SCROLL_BARS 1" >>confdefs.h
12192 USE_TOOLKIT_SCROLL_BARS
=yes
12193 elif test "${HAVE_XAW3D}" = "yes"; then
12194 $as_echo "#define USE_TOOLKIT_SCROLL_BARS 1" >>confdefs.h
12196 USE_TOOLKIT_SCROLL_BARS
=yes
12198 elif test "${HAVE_GTK}" = "yes"; then
12199 $as_echo "#define USE_TOOLKIT_SCROLL_BARS 1" >>confdefs.h
12201 USE_TOOLKIT_SCROLL_BARS
=yes
12202 elif test "${HAVE_NS}" = "yes"; then
12203 $as_echo "#define USE_TOOLKIT_SCROLL_BARS 1" >>confdefs.h
12205 USE_TOOLKIT_SCROLL_BARS
=yes
12209 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
12210 /* end confdefs.h. */
12212 #include <X11/Xlib.h>
12213 #include <X11/Xresource.h>
12222 if ac_fn_c_try_compile
"$LINENO"; then :
12225 $as_echo "#define HAVE_XIM 1" >>confdefs.h
12230 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
12233 if test "${with_xim}" != "no"; then
12235 $as_echo "#define USE_XIM 1" >>confdefs.h
12240 if test "${HAVE_XIM}" != "no"; then
12241 late_CFLAGS
=$CFLAGS
12242 if test "$GCC" = yes; then
12243 CFLAGS
="$CFLAGS --pedantic-errors"
12245 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
12246 /* end confdefs.h. */
12248 #include <X11/Xlib.h>
12249 #include <X11/Xresource.h>
12258 XPointer *client_data;
12260 /* If we're not using GCC, it's probably not XFree86, and this is
12261 probably right, but we can't use something like --pedantic-errors. */
12262 extern Bool XRegisterIMInstantiateCallback(Display*, XrmDatabase, char*,
12263 char*, XIMProc, XPointer*);
12265 (void)XRegisterIMInstantiateCallback(display, db, res_name, res_class, callback,
12271 if ac_fn_c_try_compile
"$LINENO"; then :
12272 emacs_cv_arg6_star
=yes
12274 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
12275 if test "$emacs_cv_arg6_star" = yes; then
12276 $as_echo "#define XRegisterIMInstantiateCallback_arg6 XPointer*" >>confdefs.h
12279 $as_echo "#define XRegisterIMInstantiateCallback_arg6 XPointer" >>confdefs.h
12282 CFLAGS
=$late_CFLAGS
12285 ### Start of font-backend (under any platform) section.
12286 # (nothing here yet -- this is a placeholder)
12287 ### End of font-backend (under any platform) section.
12289 ### Start of font-backend (under X11) section.
12290 if test "${HAVE_X11}" = "yes"; then
12294 # Extract the first word of "pkg-config", so it can be a program name with args.
12295 set dummy pkg-config
; ac_word
=$2
12296 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12297 $as_echo_n "checking for $ac_word... " >&6; }
12298 if test "${ac_cv_path_PKG_CONFIG+set}" = set; then :
12299 $as_echo_n "(cached) " >&6
12301 case $PKG_CONFIG in
12303 ac_cv_path_PKG_CONFIG
="$PKG_CONFIG" # Let the user override the test with a path.
12306 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
12307 for as_dir
in $PATH
12310 test -z "$as_dir" && as_dir
=.
12311 for ac_exec_ext
in '' $ac_executable_extensions; do
12312 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
12313 ac_cv_path_PKG_CONFIG
="$as_dir/$ac_word$ac_exec_ext"
12314 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12321 test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG
="no"
12325 PKG_CONFIG
=$ac_cv_path_PKG_CONFIG
12326 if test -n "$PKG_CONFIG"; then
12327 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5
12328 $as_echo "$PKG_CONFIG" >&6; }
12330 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12331 $as_echo "no" >&6; }
12336 if test "$PKG_CONFIG" = "no" ; then
12339 PKG_CONFIG_MIN_VERSION
=0.9.0
12340 if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
12341 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for fontconfig >= 2.2.0" >&5
12342 $as_echo_n "checking for fontconfig >= 2.2.0... " >&6; }
12344 if $PKG_CONFIG --exists "fontconfig >= 2.2.0" 2>&5; then
12345 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
12346 $as_echo "yes" >&6; }
12349 { $as_echo "$as_me:${as_lineno-$LINENO}: checking FONTCONFIG_CFLAGS" >&5
12350 $as_echo_n "checking FONTCONFIG_CFLAGS... " >&6; }
12351 FONTCONFIG_CFLAGS
=`$PKG_CONFIG --cflags "fontconfig >= 2.2.0"|sed -e 's,///*,/,g'`
12352 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $FONTCONFIG_CFLAGS" >&5
12353 $as_echo "$FONTCONFIG_CFLAGS" >&6; }
12355 { $as_echo "$as_me:${as_lineno-$LINENO}: checking FONTCONFIG_LIBS" >&5
12356 $as_echo_n "checking FONTCONFIG_LIBS... " >&6; }
12357 FONTCONFIG_LIBS
=`$PKG_CONFIG --libs "fontconfig >= 2.2.0"|sed -e 's,///*,/,g'`
12358 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $FONTCONFIG_LIBS" >&5
12359 $as_echo "$FONTCONFIG_LIBS" >&6; }
12361 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12362 $as_echo "no" >&6; }
12363 FONTCONFIG_CFLAGS
=""
12365 ## If we have a custom action on failure, don't print errors, but
12366 ## do set a variable so people can do so.
12367 FONTCONFIG_PKG_ERRORS
=`$PKG_CONFIG --errors-to-stdout --print-errors "fontconfig >= 2.2.0"`
12374 echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
12375 echo "*** See http://www.freedesktop.org/software/pkgconfig"
12379 if test $succeeded = yes; then
12386 ## Use -lXft if available, unless `--with-xft=no'.
12388 if test "${HAVE_FC}" = "no" ||
test "x${with_x}" = "xno"; then
12391 if test "x${with_xft}" != "xno"; then
12396 # Extract the first word of "pkg-config", so it can be a program name with args.
12397 set dummy pkg-config
; ac_word
=$2
12398 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12399 $as_echo_n "checking for $ac_word... " >&6; }
12400 if test "${ac_cv_path_PKG_CONFIG+set}" = set; then :
12401 $as_echo_n "(cached) " >&6
12403 case $PKG_CONFIG in
12405 ac_cv_path_PKG_CONFIG
="$PKG_CONFIG" # Let the user override the test with a path.
12408 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
12409 for as_dir
in $PATH
12412 test -z "$as_dir" && as_dir
=.
12413 for ac_exec_ext
in '' $ac_executable_extensions; do
12414 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
12415 ac_cv_path_PKG_CONFIG
="$as_dir/$ac_word$ac_exec_ext"
12416 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12423 test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG
="no"
12427 PKG_CONFIG
=$ac_cv_path_PKG_CONFIG
12428 if test -n "$PKG_CONFIG"; then
12429 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5
12430 $as_echo "$PKG_CONFIG" >&6; }
12432 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12433 $as_echo "no" >&6; }
12438 if test "$PKG_CONFIG" = "no" ; then
12441 PKG_CONFIG_MIN_VERSION
=0.9.0
12442 if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
12443 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for xft >= 0.13.0" >&5
12444 $as_echo_n "checking for xft >= 0.13.0... " >&6; }
12446 if $PKG_CONFIG --exists "xft >= 0.13.0" 2>&5; then
12447 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
12448 $as_echo "yes" >&6; }
12451 { $as_echo "$as_me:${as_lineno-$LINENO}: checking XFT_CFLAGS" >&5
12452 $as_echo_n "checking XFT_CFLAGS... " >&6; }
12453 XFT_CFLAGS
=`$PKG_CONFIG --cflags "xft >= 0.13.0"|sed -e 's,///*,/,g'`
12454 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $XFT_CFLAGS" >&5
12455 $as_echo "$XFT_CFLAGS" >&6; }
12457 { $as_echo "$as_me:${as_lineno-$LINENO}: checking XFT_LIBS" >&5
12458 $as_echo_n "checking XFT_LIBS... " >&6; }
12459 XFT_LIBS
=`$PKG_CONFIG --libs "xft >= 0.13.0"|sed -e 's,///*,/,g'`
12460 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $XFT_LIBS" >&5
12461 $as_echo "$XFT_LIBS" >&6; }
12463 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12464 $as_echo "no" >&6; }
12467 ## If we have a custom action on failure, don't print errors, but
12468 ## do set a variable so people can do so.
12469 XFT_PKG_ERRORS
=`$PKG_CONFIG --errors-to-stdout --print-errors "xft >= 0.13.0"`
12476 echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
12477 echo "*** See http://www.freedesktop.org/software/pkgconfig"
12481 if test $succeeded = yes; then
12487 ## Because xftfont.c uses XRenderQueryExtension, we also
12488 ## need to link to -lXrender.
12490 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for XRenderQueryExtension in -lXrender" >&5
12491 $as_echo_n "checking for XRenderQueryExtension in -lXrender... " >&6; }
12492 if test "${ac_cv_lib_Xrender_XRenderQueryExtension+set}" = set; then :
12493 $as_echo_n "(cached) " >&6
12495 ac_check_lib_save_LIBS
=$LIBS
12496 LIBS
="-lXrender $LIBS"
12497 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
12498 /* end confdefs.h. */
12500 /* Override any GCC internal prototype to avoid an error.
12501 Use char because int might match the return type of a GCC
12502 builtin and then its argument prototype would still apply. */
12506 char XRenderQueryExtension ();
12510 return XRenderQueryExtension ();
12515 if ac_fn_c_try_link
"$LINENO"; then :
12516 ac_cv_lib_Xrender_XRenderQueryExtension
=yes
12518 ac_cv_lib_Xrender_XRenderQueryExtension
=no
12520 rm -f core conftest.err conftest.
$ac_objext \
12521 conftest
$ac_exeext conftest.
$ac_ext
12522 LIBS
=$ac_check_lib_save_LIBS
12524 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_Xrender_XRenderQueryExtension" >&5
12525 $as_echo "$ac_cv_lib_Xrender_XRenderQueryExtension" >&6; }
12526 if test "x$ac_cv_lib_Xrender_XRenderQueryExtension" = x
""yes; then :
12530 if test "$HAVE_XFT" != no
&& test "$HAVE_XRENDER" != no
; then
12531 OLD_CPPFLAGS
="$CPPFLAGS"
12532 OLD_CFLAGS
="$CFLAGS"
12534 CPPFLAGS
="$CPPFLAGS $XFT_CFLAGS"
12535 CFLAGS
="$CFLAGS $XFT_CFLAGS"
12536 XFT_LIBS
="-lXrender $XFT_LIBS"
12537 LIBS
="$XFT_LIBS $LIBS"
12538 ac_fn_c_check_header_mongrel
"$LINENO" "X11/Xft/Xft.h" "ac_cv_header_X11_Xft_Xft_h" "$ac_includes_default"
12539 if test "x$ac_cv_header_X11_Xft_Xft_h" = x
""yes; then :
12540 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for XftFontOpen in -lXft" >&5
12541 $as_echo_n "checking for XftFontOpen in -lXft... " >&6; }
12542 if test "${ac_cv_lib_Xft_XftFontOpen+set}" = set; then :
12543 $as_echo_n "(cached) " >&6
12545 ac_check_lib_save_LIBS
=$LIBS
12546 LIBS
="-lXft $XFT_LIBS $LIBS"
12547 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
12548 /* end confdefs.h. */
12550 /* Override any GCC internal prototype to avoid an error.
12551 Use char because int might match the return type of a GCC
12552 builtin and then its argument prototype would still apply. */
12556 char XftFontOpen ();
12560 return XftFontOpen ();
12565 if ac_fn_c_try_link
"$LINENO"; then :
12566 ac_cv_lib_Xft_XftFontOpen
=yes
12568 ac_cv_lib_Xft_XftFontOpen
=no
12570 rm -f core conftest.err conftest.
$ac_objext \
12571 conftest
$ac_exeext conftest.
$ac_ext
12572 LIBS
=$ac_check_lib_save_LIBS
12574 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_Xft_XftFontOpen" >&5
12575 $as_echo "$ac_cv_lib_Xft_XftFontOpen" >&6; }
12576 if test "x$ac_cv_lib_Xft_XftFontOpen" = x
""yes; then :
12584 if test "${HAVE_XFT}" = "yes"; then
12586 $as_echo "#define HAVE_XFT 1" >>confdefs.h
12589 C_SWITCH_X_SITE
="$C_SWITCH_X_SITE $XFT_CFLAGS"
12591 CPPFLAGS
="$OLD_CPPFLAGS"
12592 CFLAGS
="$OLD_CFLAGS"
12594 fi # "${HAVE_XFT}" = "yes"
12595 fi # "$HAVE_XFT" != no
12596 fi # "x${with_xft}" != "xno"
12598 ## We used to allow building with FreeType and without Xft.
12599 ## However, the ftx font backend driver is not in good shape.
12600 if test "$HAVE_XFT" != "yes"; then
12607 # Extract the first word of "pkg-config", so it can be a program name with args.
12608 set dummy pkg-config
; ac_word
=$2
12609 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12610 $as_echo_n "checking for $ac_word... " >&6; }
12611 if test "${ac_cv_path_PKG_CONFIG+set}" = set; then :
12612 $as_echo_n "(cached) " >&6
12614 case $PKG_CONFIG in
12616 ac_cv_path_PKG_CONFIG
="$PKG_CONFIG" # Let the user override the test with a path.
12619 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
12620 for as_dir
in $PATH
12623 test -z "$as_dir" && as_dir
=.
12624 for ac_exec_ext
in '' $ac_executable_extensions; do
12625 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
12626 ac_cv_path_PKG_CONFIG
="$as_dir/$ac_word$ac_exec_ext"
12627 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12634 test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG
="no"
12638 PKG_CONFIG
=$ac_cv_path_PKG_CONFIG
12639 if test -n "$PKG_CONFIG"; then
12640 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5
12641 $as_echo "$PKG_CONFIG" >&6; }
12643 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12644 $as_echo "no" >&6; }
12649 if test "$PKG_CONFIG" = "no" ; then
12652 PKG_CONFIG_MIN_VERSION
=0.9.0
12653 if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
12654 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for freetype2" >&5
12655 $as_echo_n "checking for freetype2... " >&6; }
12657 if $PKG_CONFIG --exists "freetype2" 2>&5; then
12658 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
12659 $as_echo "yes" >&6; }
12662 { $as_echo "$as_me:${as_lineno-$LINENO}: checking FREETYPE_CFLAGS" >&5
12663 $as_echo_n "checking FREETYPE_CFLAGS... " >&6; }
12664 FREETYPE_CFLAGS
=`$PKG_CONFIG --cflags "freetype2"|sed -e 's,///*,/,g'`
12665 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $FREETYPE_CFLAGS" >&5
12666 $as_echo "$FREETYPE_CFLAGS" >&6; }
12668 { $as_echo "$as_me:${as_lineno-$LINENO}: checking FREETYPE_LIBS" >&5
12669 $as_echo_n "checking FREETYPE_LIBS... " >&6; }
12670 FREETYPE_LIBS
=`$PKG_CONFIG --libs "freetype2"|sed -e 's,///*,/,g'`
12671 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $FREETYPE_LIBS" >&5
12672 $as_echo "$FREETYPE_LIBS" >&6; }
12674 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12675 $as_echo "no" >&6; }
12678 ## If we have a custom action on failure, don't print errors, but
12679 ## do set a variable so people can do so.
12680 FREETYPE_PKG_ERRORS
=`$PKG_CONFIG --errors-to-stdout --print-errors "freetype2"`
12687 echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
12688 echo "*** See http://www.freedesktop.org/software/pkgconfig"
12692 if test $succeeded = yes; then
12699 test "$HAVE_FREETYPE" = "no" && as_fn_error
"libxft requires libfreetype" "$LINENO" 5
12703 if test "${HAVE_FREETYPE}" = "yes"; then
12705 $as_echo "#define HAVE_FREETYPE 1" >>confdefs.h
12707 if test "${with_libotf}" != "no"; then
12711 # Extract the first word of "pkg-config", so it can be a program name with args.
12712 set dummy pkg-config
; ac_word
=$2
12713 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12714 $as_echo_n "checking for $ac_word... " >&6; }
12715 if test "${ac_cv_path_PKG_CONFIG+set}" = set; then :
12716 $as_echo_n "(cached) " >&6
12718 case $PKG_CONFIG in
12720 ac_cv_path_PKG_CONFIG
="$PKG_CONFIG" # Let the user override the test with a path.
12723 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
12724 for as_dir
in $PATH
12727 test -z "$as_dir" && as_dir
=.
12728 for ac_exec_ext
in '' $ac_executable_extensions; do
12729 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
12730 ac_cv_path_PKG_CONFIG
="$as_dir/$ac_word$ac_exec_ext"
12731 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12738 test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG
="no"
12742 PKG_CONFIG
=$ac_cv_path_PKG_CONFIG
12743 if test -n "$PKG_CONFIG"; then
12744 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5
12745 $as_echo "$PKG_CONFIG" >&6; }
12747 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12748 $as_echo "no" >&6; }
12753 if test "$PKG_CONFIG" = "no" ; then
12756 PKG_CONFIG_MIN_VERSION
=0.9.0
12757 if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
12758 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libotf" >&5
12759 $as_echo_n "checking for libotf... " >&6; }
12761 if $PKG_CONFIG --exists "libotf" 2>&5; then
12762 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
12763 $as_echo "yes" >&6; }
12766 { $as_echo "$as_me:${as_lineno-$LINENO}: checking LIBOTF_CFLAGS" >&5
12767 $as_echo_n "checking LIBOTF_CFLAGS... " >&6; }
12768 LIBOTF_CFLAGS
=`$PKG_CONFIG --cflags "libotf"|sed -e 's,///*,/,g'`
12769 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIBOTF_CFLAGS" >&5
12770 $as_echo "$LIBOTF_CFLAGS" >&6; }
12772 { $as_echo "$as_me:${as_lineno-$LINENO}: checking LIBOTF_LIBS" >&5
12773 $as_echo_n "checking LIBOTF_LIBS... " >&6; }
12774 LIBOTF_LIBS
=`$PKG_CONFIG --libs "libotf"|sed -e 's,///*,/,g'`
12775 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIBOTF_LIBS" >&5
12776 $as_echo "$LIBOTF_LIBS" >&6; }
12778 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12779 $as_echo "no" >&6; }
12782 ## If we have a custom action on failure, don't print errors, but
12783 ## do set a variable so people can do so.
12784 LIBOTF_PKG_ERRORS
=`$PKG_CONFIG --errors-to-stdout --print-errors "libotf"`
12791 echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
12792 echo "*** See http://www.freedesktop.org/software/pkgconfig"
12796 if test $succeeded = yes; then
12802 if test "$HAVE_LIBOTF" = "yes"; then
12804 $as_echo "#define HAVE_LIBOTF 1" >>confdefs.h
12806 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for OTF_get_variation_glyphs in -lotf" >&5
12807 $as_echo_n "checking for OTF_get_variation_glyphs in -lotf... " >&6; }
12808 if test "${ac_cv_lib_otf_OTF_get_variation_glyphs+set}" = set; then :
12809 $as_echo_n "(cached) " >&6
12811 ac_check_lib_save_LIBS
=$LIBS
12813 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
12814 /* end confdefs.h. */
12816 /* Override any GCC internal prototype to avoid an error.
12817 Use char because int might match the return type of a GCC
12818 builtin and then its argument prototype would still apply. */
12822 char OTF_get_variation_glyphs ();
12826 return OTF_get_variation_glyphs ();
12831 if ac_fn_c_try_link
"$LINENO"; then :
12832 ac_cv_lib_otf_OTF_get_variation_glyphs
=yes
12834 ac_cv_lib_otf_OTF_get_variation_glyphs
=no
12836 rm -f core conftest.err conftest.
$ac_objext \
12837 conftest
$ac_exeext conftest.
$ac_ext
12838 LIBS
=$ac_check_lib_save_LIBS
12840 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_otf_OTF_get_variation_glyphs" >&5
12841 $as_echo "$ac_cv_lib_otf_OTF_get_variation_glyphs" >&6; }
12842 if test "x$ac_cv_lib_otf_OTF_get_variation_glyphs" = x
""yes; then :
12843 HAVE_OTF_GET_VARIATION_GLYPHS
=yes
12845 HAVE_OTF_GET_VARIATION_GLYPHS
=no
12848 if test "${HAVE_OTF_GET_VARIATION_GLYPHS}" = "yes"; then
12850 $as_echo "#define HAVE_OTF_GET_VARIATION_GLYPHS 1" >>confdefs.h
12858 if test "${HAVE_LIBOTF}" = yes; then
12859 if test "${with_m17n_flt}" != "no"; then
12863 # Extract the first word of "pkg-config", so it can be a program name with args.
12864 set dummy pkg-config
; ac_word
=$2
12865 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12866 $as_echo_n "checking for $ac_word... " >&6; }
12867 if test "${ac_cv_path_PKG_CONFIG+set}" = set; then :
12868 $as_echo_n "(cached) " >&6
12870 case $PKG_CONFIG in
12872 ac_cv_path_PKG_CONFIG
="$PKG_CONFIG" # Let the user override the test with a path.
12875 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
12876 for as_dir
in $PATH
12879 test -z "$as_dir" && as_dir
=.
12880 for ac_exec_ext
in '' $ac_executable_extensions; do
12881 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
12882 ac_cv_path_PKG_CONFIG
="$as_dir/$ac_word$ac_exec_ext"
12883 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12890 test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG
="no"
12894 PKG_CONFIG
=$ac_cv_path_PKG_CONFIG
12895 if test -n "$PKG_CONFIG"; then
12896 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5
12897 $as_echo "$PKG_CONFIG" >&6; }
12899 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12900 $as_echo "no" >&6; }
12905 if test "$PKG_CONFIG" = "no" ; then
12908 PKG_CONFIG_MIN_VERSION
=0.9.0
12909 if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
12910 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for m17n-flt" >&5
12911 $as_echo_n "checking for m17n-flt... " >&6; }
12913 if $PKG_CONFIG --exists "m17n-flt" 2>&5; then
12914 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
12915 $as_echo "yes" >&6; }
12918 { $as_echo "$as_me:${as_lineno-$LINENO}: checking M17N_FLT_CFLAGS" >&5
12919 $as_echo_n "checking M17N_FLT_CFLAGS... " >&6; }
12920 M17N_FLT_CFLAGS
=`$PKG_CONFIG --cflags "m17n-flt"|sed -e 's,///*,/,g'`
12921 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $M17N_FLT_CFLAGS" >&5
12922 $as_echo "$M17N_FLT_CFLAGS" >&6; }
12924 { $as_echo "$as_me:${as_lineno-$LINENO}: checking M17N_FLT_LIBS" >&5
12925 $as_echo_n "checking M17N_FLT_LIBS... " >&6; }
12926 M17N_FLT_LIBS
=`$PKG_CONFIG --libs "m17n-flt"|sed -e 's,///*,/,g'`
12927 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $M17N_FLT_LIBS" >&5
12928 $as_echo "$M17N_FLT_LIBS" >&6; }
12930 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12931 $as_echo "no" >&6; }
12934 ## If we have a custom action on failure, don't print errors, but
12935 ## do set a variable so people can do so.
12936 M17N_FLT_PKG_ERRORS
=`$PKG_CONFIG --errors-to-stdout --print-errors "m17n-flt"`
12943 echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
12944 echo "*** See http://www.freedesktop.org/software/pkgconfig"
12948 if test $succeeded = yes; then
12954 if test "$HAVE_M17N_FLT" = "yes"; then
12956 $as_echo "#define HAVE_M17N_FLT 1" >>confdefs.h
12968 ### End of font-backend (under X11) section.
12979 ### Use -lXpm if available, unless `--with-xpm=no'.
12982 if test "${HAVE_X11}" = "yes"; then
12983 if test "${with_xpm}" != "no"; then
12984 ac_fn_c_check_header_mongrel
"$LINENO" "X11/xpm.h" "ac_cv_header_X11_xpm_h" "$ac_includes_default"
12985 if test "x$ac_cv_header_X11_xpm_h" = x
""yes; then :
12986 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for XpmReadFileToPixmap in -lXpm" >&5
12987 $as_echo_n "checking for XpmReadFileToPixmap in -lXpm... " >&6; }
12988 if test "${ac_cv_lib_Xpm_XpmReadFileToPixmap+set}" = set; then :
12989 $as_echo_n "(cached) " >&6
12991 ac_check_lib_save_LIBS
=$LIBS
12992 LIBS
="-lXpm -lX11 $LIBS"
12993 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
12994 /* end confdefs.h. */
12996 /* Override any GCC internal prototype to avoid an error.
12997 Use char because int might match the return type of a GCC
12998 builtin and then its argument prototype would still apply. */
13002 char XpmReadFileToPixmap ();
13006 return XpmReadFileToPixmap ();
13011 if ac_fn_c_try_link
"$LINENO"; then :
13012 ac_cv_lib_Xpm_XpmReadFileToPixmap
=yes
13014 ac_cv_lib_Xpm_XpmReadFileToPixmap
=no
13016 rm -f core conftest.err conftest.
$ac_objext \
13017 conftest
$ac_exeext conftest.
$ac_ext
13018 LIBS
=$ac_check_lib_save_LIBS
13020 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_Xpm_XpmReadFileToPixmap" >&5
13021 $as_echo "$ac_cv_lib_Xpm_XpmReadFileToPixmap" >&6; }
13022 if test "x$ac_cv_lib_Xpm_XpmReadFileToPixmap" = x
""yes; then :
13029 if test "${HAVE_XPM}" = "yes"; then
13030 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for XpmReturnAllocPixels preprocessor define" >&5
13031 $as_echo_n "checking for XpmReturnAllocPixels preprocessor define... " >&6; }
13032 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
13033 /* end confdefs.h. */
13034 #include "X11/xpm.h"
13035 #ifndef XpmReturnAllocPixels
13036 no_return_alloc_pixels
13040 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
13041 $EGREP "no_return_alloc_pixels" >/dev
/null
2>&1; then :
13049 if test "${HAVE_XPM}" = "yes"; then
13050 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
13051 $as_echo "yes" >&6; }
13053 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13054 $as_echo "no" >&6; }
13059 if test "${HAVE_XPM}" = "yes"; then
13061 $as_echo "#define HAVE_XPM 1" >>confdefs.h
13068 ### Use -ljpeg if available, unless `--with-jpeg=no'.
13071 if test "${HAVE_X11}" = "yes"; then
13072 if test "${with_jpeg}" != "no"; then
13073 ac_fn_c_check_header_mongrel
"$LINENO" "jerror.h" "ac_cv_header_jerror_h" "$ac_includes_default"
13074 if test "x$ac_cv_header_jerror_h" = x
""yes; then :
13075 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for jpeg_destroy_compress in -ljpeg" >&5
13076 $as_echo_n "checking for jpeg_destroy_compress in -ljpeg... " >&6; }
13077 if test "${ac_cv_lib_jpeg_jpeg_destroy_compress+set}" = set; then :
13078 $as_echo_n "(cached) " >&6
13080 ac_check_lib_save_LIBS
=$LIBS
13081 LIBS
="-ljpeg $LIBS"
13082 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
13083 /* end confdefs.h. */
13085 /* Override any GCC internal prototype to avoid an error.
13086 Use char because int might match the return type of a GCC
13087 builtin and then its argument prototype would still apply. */
13091 char jpeg_destroy_compress ();
13095 return jpeg_destroy_compress ();
13100 if ac_fn_c_try_link
"$LINENO"; then :
13101 ac_cv_lib_jpeg_jpeg_destroy_compress
=yes
13103 ac_cv_lib_jpeg_jpeg_destroy_compress
=no
13105 rm -f core conftest.err conftest.
$ac_objext \
13106 conftest
$ac_exeext conftest.
$ac_ext
13107 LIBS
=$ac_check_lib_save_LIBS
13109 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_jpeg_jpeg_destroy_compress" >&5
13110 $as_echo "$ac_cv_lib_jpeg_jpeg_destroy_compress" >&6; }
13111 if test "x$ac_cv_lib_jpeg_jpeg_destroy_compress" = x
""yes; then :
13120 if test "${HAVE_JPEG}" = "yes"; then
13121 $as_echo "#define HAVE_JPEG 1" >>confdefs.h
13123 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
13124 /* end confdefs.h. */
13125 #include <jpeglib.h>
13126 version=JPEG_LIB_VERSION
13129 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
13130 $EGREP "version= *(6[2-9]|[7-9][0-9])" >/dev
/null
2>&1; then :
13131 $as_echo "#define HAVE_JPEG 1" >>confdefs.h
13134 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: libjpeg found, but not version 6b or later" >&5
13135 $as_echo "$as_me: WARNING: libjpeg found, but not version 6b or later" >&2;}
13141 if test "${HAVE_JPEG}" = "yes"; then
13147 ### Use -lpng if available, unless `--with-png=no'.
13150 if test "${HAVE_X11}" = "yes"; then
13151 if test "${with_png}" != "no"; then
13152 # Debian unstable as of July 2003 has multiple libpngs, and puts png.h
13153 # in /usr/include/libpng.
13154 for ac_header
in png.h libpng
/png.h
13156 as_ac_Header
=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
13157 ac_fn_c_check_header_mongrel
"$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
13158 eval as_val
=\$
$as_ac_Header
13159 if test "x$as_val" = x
""yes; then :
13160 cat >>confdefs.h
<<_ACEOF
13161 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
13168 if test "$ac_cv_header_png_h" = yes ||
test "$ac_cv_header_libpng_png_h" = yes ; then
13169 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for png_get_channels in -lpng" >&5
13170 $as_echo_n "checking for png_get_channels in -lpng... " >&6; }
13171 if test "${ac_cv_lib_png_png_get_channels+set}" = set; then :
13172 $as_echo_n "(cached) " >&6
13174 ac_check_lib_save_LIBS
=$LIBS
13175 LIBS
="-lpng -lz -lm $LIBS"
13176 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
13177 /* end confdefs.h. */
13179 /* Override any GCC internal prototype to avoid an error.
13180 Use char because int might match the return type of a GCC
13181 builtin and then its argument prototype would still apply. */
13185 char png_get_channels ();
13189 return png_get_channels ();
13194 if ac_fn_c_try_link
"$LINENO"; then :
13195 ac_cv_lib_png_png_get_channels
=yes
13197 ac_cv_lib_png_png_get_channels
=no
13199 rm -f core conftest.err conftest.
$ac_objext \
13200 conftest
$ac_exeext conftest.
$ac_ext
13201 LIBS
=$ac_check_lib_save_LIBS
13203 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_png_png_get_channels" >&5
13204 $as_echo "$ac_cv_lib_png_png_get_channels" >&6; }
13205 if test "x$ac_cv_lib_png_png_get_channels" = x
""yes; then :
13212 if test "${HAVE_PNG}" = "yes"; then
13214 $as_echo "#define HAVE_PNG 1" >>confdefs.h
13216 LIBPNG
="-lpng -lz -lm"
13221 ### Use -ltiff if available, unless `--with-tiff=no'.
13224 if test "${HAVE_X11}" = "yes"; then
13225 if test "${with_tiff}" != "no"; then
13226 ac_fn_c_check_header_mongrel
"$LINENO" "tiffio.h" "ac_cv_header_tiffio_h" "$ac_includes_default"
13227 if test "x$ac_cv_header_tiffio_h" = x
""yes; then :
13229 # At least one tiff package requires the jpeg library.
13230 if test "${HAVE_JPEG}" = yes; then tifflibs
="-ljpeg $tifflibs"; fi
13231 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for TIFFGetVersion in -ltiff" >&5
13232 $as_echo_n "checking for TIFFGetVersion in -ltiff... " >&6; }
13233 if test "${ac_cv_lib_tiff_TIFFGetVersion+set}" = set; then :
13234 $as_echo_n "(cached) " >&6
13236 ac_check_lib_save_LIBS
=$LIBS
13237 LIBS
="-ltiff $tifflibs $LIBS"
13238 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
13239 /* end confdefs.h. */
13241 /* Override any GCC internal prototype to avoid an error.
13242 Use char because int might match the return type of a GCC
13243 builtin and then its argument prototype would still apply. */
13247 char TIFFGetVersion ();
13251 return TIFFGetVersion ();
13256 if ac_fn_c_try_link
"$LINENO"; then :
13257 ac_cv_lib_tiff_TIFFGetVersion
=yes
13259 ac_cv_lib_tiff_TIFFGetVersion
=no
13261 rm -f core conftest.err conftest.
$ac_objext \
13262 conftest
$ac_exeext conftest.
$ac_ext
13263 LIBS
=$ac_check_lib_save_LIBS
13265 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_tiff_TIFFGetVersion" >&5
13266 $as_echo "$ac_cv_lib_tiff_TIFFGetVersion" >&6; }
13267 if test "x$ac_cv_lib_tiff_TIFFGetVersion" = x
""yes; then :
13276 if test "${HAVE_TIFF}" = "yes"; then
13278 $as_echo "#define HAVE_TIFF 1" >>confdefs.h
13285 ### Use -lgif or -lungif if available, unless `--with-gif=no'.
13288 if test "${HAVE_X11}" = "yes" && test "${with_gif}" != "no"; then
13289 ac_fn_c_check_header_mongrel
"$LINENO" "gif_lib.h" "ac_cv_header_gif_lib_h" "$ac_includes_default"
13290 if test "x$ac_cv_header_gif_lib_h" = x
""yes; then :
13291 # EGifPutExtensionLast only exists from version libungif-4.1.0b1.
13292 # Earlier versions can crash Emacs.
13293 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for EGifPutExtensionLast in -lgif" >&5
13294 $as_echo_n "checking for EGifPutExtensionLast in -lgif... " >&6; }
13295 if test "${ac_cv_lib_gif_EGifPutExtensionLast+set}" = set; then :
13296 $as_echo_n "(cached) " >&6
13298 ac_check_lib_save_LIBS
=$LIBS
13300 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
13301 /* end confdefs.h. */
13303 /* Override any GCC internal prototype to avoid an error.
13304 Use char because int might match the return type of a GCC
13305 builtin and then its argument prototype would still apply. */
13309 char EGifPutExtensionLast ();
13313 return EGifPutExtensionLast ();
13318 if ac_fn_c_try_link
"$LINENO"; then :
13319 ac_cv_lib_gif_EGifPutExtensionLast
=yes
13321 ac_cv_lib_gif_EGifPutExtensionLast
=no
13323 rm -f core conftest.err conftest.
$ac_objext \
13324 conftest
$ac_exeext conftest.
$ac_ext
13325 LIBS
=$ac_check_lib_save_LIBS
13327 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_gif_EGifPutExtensionLast" >&5
13328 $as_echo "$ac_cv_lib_gif_EGifPutExtensionLast" >&6; }
13329 if test "x$ac_cv_lib_gif_EGifPutExtensionLast" = x
""yes; then :
13339 if test "$HAVE_GIF" = yes; then
13341 elif test "$HAVE_GIF" = maybe
; then
13342 # If gif_lib.h but no libgif, try libungif.
13343 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for EGifPutExtensionLast in -lungif" >&5
13344 $as_echo_n "checking for EGifPutExtensionLast in -lungif... " >&6; }
13345 if test "${ac_cv_lib_ungif_EGifPutExtensionLast+set}" = set; then :
13346 $as_echo_n "(cached) " >&6
13348 ac_check_lib_save_LIBS
=$LIBS
13349 LIBS
="-lungif $LIBS"
13350 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
13351 /* end confdefs.h. */
13353 /* Override any GCC internal prototype to avoid an error.
13354 Use char because int might match the return type of a GCC
13355 builtin and then its argument prototype would still apply. */
13359 char EGifPutExtensionLast ();
13363 return EGifPutExtensionLast ();
13368 if ac_fn_c_try_link
"$LINENO"; then :
13369 ac_cv_lib_ungif_EGifPutExtensionLast
=yes
13371 ac_cv_lib_ungif_EGifPutExtensionLast
=no
13373 rm -f core conftest.err conftest.
$ac_objext \
13374 conftest
$ac_exeext conftest.
$ac_ext
13375 LIBS
=$ac_check_lib_save_LIBS
13377 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_ungif_EGifPutExtensionLast" >&5
13378 $as_echo "$ac_cv_lib_ungif_EGifPutExtensionLast" >&6; }
13379 if test "x$ac_cv_lib_ungif_EGifPutExtensionLast" = x
""yes; then :
13385 test "$HAVE_GIF" = yes && LIBGIF
=-lungif
13388 if test "${HAVE_GIF}" = "yes"; then
13390 $as_echo "#define HAVE_GIF 1" >>confdefs.h
13396 if test "${HAVE_X11}" = "yes"; then
13399 test "${with_xpm}" != "no" && test "${HAVE_XPM}" != "yes" &&
13400 MISSING
="libXpm" && WITH_NO
="--with-xpm=no"
13401 test "${with_jpeg}" != "no" && test "${HAVE_JPEG}" != "yes" &&
13402 MISSING
="$MISSING libjpeg" && WITH_NO
="$WITH_NO --with-jpeg=no"
13403 test "${with_png}" != "no" && test "${HAVE_PNG}" != "yes" &&
13404 MISSING
="$MISSING libpng" && WITH_NO
="$WITH_NO --with-png=no"
13405 test "${with_gif}" != "no" && test "${HAVE_GIF}" != "yes" &&
13406 MISSING
="$MISSING libgif/libungif" && WITH_NO
="$WITH_NO --with-gif=no"
13407 test "${with_tiff}" != "no" && test "${HAVE_TIFF}" != "yes" &&
13408 MISSING
="$MISSING libtiff" && WITH_NO
="$WITH_NO --with-tiff=no"
13410 if test "X${MISSING}" != X
; then
13411 as_fn_error
"The following required libraries were not found:
13413 Maybe some development libraries/packages are missing?
13414 If you don't want to link with them give
13416 as options to configure" "$LINENO" 5
13420 ### Use -lgpm if available, unless `--with-gpm=no'.
13423 if test "${with_gpm}" != "no"; then
13424 ac_fn_c_check_header_mongrel
"$LINENO" "gpm.h" "ac_cv_header_gpm_h" "$ac_includes_default"
13425 if test "x$ac_cv_header_gpm_h" = x
""yes; then :
13426 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Gpm_Open in -lgpm" >&5
13427 $as_echo_n "checking for Gpm_Open in -lgpm... " >&6; }
13428 if test "${ac_cv_lib_gpm_Gpm_Open+set}" = set; then :
13429 $as_echo_n "(cached) " >&6
13431 ac_check_lib_save_LIBS
=$LIBS
13433 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
13434 /* end confdefs.h. */
13436 /* Override any GCC internal prototype to avoid an error.
13437 Use char because int might match the return type of a GCC
13438 builtin and then its argument prototype would still apply. */
13446 return Gpm_Open ();
13451 if ac_fn_c_try_link
"$LINENO"; then :
13452 ac_cv_lib_gpm_Gpm_Open
=yes
13454 ac_cv_lib_gpm_Gpm_Open
=no
13456 rm -f core conftest.err conftest.
$ac_objext \
13457 conftest
$ac_exeext conftest.
$ac_ext
13458 LIBS
=$ac_check_lib_save_LIBS
13460 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_gpm_Gpm_Open" >&5
13461 $as_echo "$ac_cv_lib_gpm_Gpm_Open" >&6; }
13462 if test "x$ac_cv_lib_gpm_Gpm_Open" = x
""yes; then :
13470 if test "${HAVE_GPM}" = "yes"; then
13472 $as_echo "#define HAVE_GPM 1" >>confdefs.h
13479 ac_fn_c_check_header_mongrel
"$LINENO" "malloc/malloc.h" "ac_cv_header_malloc_malloc_h" "$ac_includes_default"
13480 if test "x$ac_cv_header_malloc_malloc_h" = x
""yes; then :
13482 $as_echo "#define HAVE_MALLOC_MALLOC_H 1" >>confdefs.h
13489 ### Use NeXTstep API to implement GUI.
13490 if test "${HAVE_NS}" = "yes"; then
13492 $as_echo "#define HAVE_NS 1" >>confdefs.h
13494 if test "${NS_IMPL_COCOA}" = "yes"; then
13496 $as_echo "#define NS_IMPL_COCOA 1" >>confdefs.h
13499 if test "${NS_IMPL_GNUSTEP}" = "yes"; then
13501 $as_echo "#define NS_IMPL_GNUSTEP 1" >>confdefs.h
13503 # See also .m.o rule in Makefile.in */
13504 # FIXME: are all these flags really needed? Document here why. */
13505 C_SWITCH_X_SYSTEM
="-D_REENTRANT -fPIC -fno-strict-aliasing -I${GNUSTEP_SYSTEM_HEADERS} ${GNUSTEP_LOCAL_HEADERS}"
13506 ## Extra CFLAGS applied to src/*.m files.
13507 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"
13509 if test "${NS_HAVE_NSINTEGER}" = "yes"; then
13511 $as_echo "#define NS_HAVE_NSINTEGER 1" >>confdefs.h
13514 # We also have mouse menus.
13520 ### Use session management (-lSM -lICE) if available
13523 if test "${HAVE_X11}" = "yes"; then
13524 ac_fn_c_check_header_mongrel
"$LINENO" "X11/SM/SMlib.h" "ac_cv_header_X11_SM_SMlib_h" "$ac_includes_default"
13525 if test "x$ac_cv_header_X11_SM_SMlib_h" = x
""yes; then :
13526 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for SmcOpenConnection in -lSM" >&5
13527 $as_echo_n "checking for SmcOpenConnection in -lSM... " >&6; }
13528 if test "${ac_cv_lib_SM_SmcOpenConnection+set}" = set; then :
13529 $as_echo_n "(cached) " >&6
13531 ac_check_lib_save_LIBS
=$LIBS
13532 LIBS
="-lSM -lICE $LIBS"
13533 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
13534 /* end confdefs.h. */
13536 /* Override any GCC internal prototype to avoid an error.
13537 Use char because int might match the return type of a GCC
13538 builtin and then its argument prototype would still apply. */
13542 char SmcOpenConnection ();
13546 return SmcOpenConnection ();
13551 if ac_fn_c_try_link
"$LINENO"; then :
13552 ac_cv_lib_SM_SmcOpenConnection
=yes
13554 ac_cv_lib_SM_SmcOpenConnection
=no
13556 rm -f core conftest.err conftest.
$ac_objext \
13557 conftest
$ac_exeext conftest.
$ac_ext
13558 LIBS
=$ac_check_lib_save_LIBS
13560 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_SM_SmcOpenConnection" >&5
13561 $as_echo "$ac_cv_lib_SM_SmcOpenConnection" >&6; }
13562 if test "x$ac_cv_lib_SM_SmcOpenConnection" = x
""yes; then :
13570 if test "${HAVE_X_SM}" = "yes"; then
13572 $as_echo "#define HAVE_X_SM 1" >>confdefs.h
13574 LIBXSM
="-lSM -lICE"
13577 *) LIBS
="$LIBXSM $LIBS" ;;
13583 ### Use libxml (-lxml2) if available
13585 if test "${with_xml2}" != "no"; then
13586 ### I'm not sure what the version number should be, so I just guessed.
13590 # Extract the first word of "pkg-config", so it can be a program name with args.
13591 set dummy pkg-config
; ac_word
=$2
13592 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13593 $as_echo_n "checking for $ac_word... " >&6; }
13594 if test "${ac_cv_path_PKG_CONFIG+set}" = set; then :
13595 $as_echo_n "(cached) " >&6
13597 case $PKG_CONFIG in
13599 ac_cv_path_PKG_CONFIG
="$PKG_CONFIG" # Let the user override the test with a path.
13602 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
13603 for as_dir
in $PATH
13606 test -z "$as_dir" && as_dir
=.
13607 for ac_exec_ext
in '' $ac_executable_extensions; do
13608 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
13609 ac_cv_path_PKG_CONFIG
="$as_dir/$ac_word$ac_exec_ext"
13610 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13617 test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG
="no"
13621 PKG_CONFIG
=$ac_cv_path_PKG_CONFIG
13622 if test -n "$PKG_CONFIG"; then
13623 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5
13624 $as_echo "$PKG_CONFIG" >&6; }
13626 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13627 $as_echo "no" >&6; }
13632 if test "$PKG_CONFIG" = "no" ; then
13635 PKG_CONFIG_MIN_VERSION
=0.9.0
13636 if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
13637 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libxml-2.0 > 2.6.17" >&5
13638 $as_echo_n "checking for libxml-2.0 > 2.6.17... " >&6; }
13640 if $PKG_CONFIG --exists "libxml-2.0 > 2.6.17" 2>&5; then
13641 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
13642 $as_echo "yes" >&6; }
13645 { $as_echo "$as_me:${as_lineno-$LINENO}: checking LIBXML2_CFLAGS" >&5
13646 $as_echo_n "checking LIBXML2_CFLAGS... " >&6; }
13647 LIBXML2_CFLAGS
=`$PKG_CONFIG --cflags "libxml-2.0 > 2.6.17"|sed -e 's,///*,/,g'`
13648 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIBXML2_CFLAGS" >&5
13649 $as_echo "$LIBXML2_CFLAGS" >&6; }
13651 { $as_echo "$as_me:${as_lineno-$LINENO}: checking LIBXML2_LIBS" >&5
13652 $as_echo_n "checking LIBXML2_LIBS... " >&6; }
13653 LIBXML2_LIBS
=`$PKG_CONFIG --libs "libxml-2.0 > 2.6.17"|sed -e 's,///*,/,g'`
13654 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIBXML2_LIBS" >&5
13655 $as_echo "$LIBXML2_LIBS" >&6; }
13657 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13658 $as_echo "no" >&6; }
13661 ## If we have a custom action on failure, don't print errors, but
13662 ## do set a variable so people can do so.
13663 LIBXML2_PKG_ERRORS
=`$PKG_CONFIG --errors-to-stdout --print-errors "libxml-2.0 > 2.6.17"`
13670 echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
13671 echo "*** See http://www.freedesktop.org/software/pkgconfig"
13675 if test $succeeded = yes; then
13681 if test "${HAVE_LIBXML2}" = "yes"; then
13682 LIBS
="$LIBXML2_LIBS $LIBS"
13683 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for htmlReadMemory in -lxml2" >&5
13684 $as_echo_n "checking for htmlReadMemory in -lxml2... " >&6; }
13685 if test "${ac_cv_lib_xml2_htmlReadMemory+set}" = set; then :
13686 $as_echo_n "(cached) " >&6
13688 ac_check_lib_save_LIBS
=$LIBS
13689 LIBS
="-lxml2 $LIBS"
13690 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
13691 /* end confdefs.h. */
13693 /* Override any GCC internal prototype to avoid an error.
13694 Use char because int might match the return type of a GCC
13695 builtin and then its argument prototype would still apply. */
13699 char htmlReadMemory ();
13703 return htmlReadMemory ();
13708 if ac_fn_c_try_link
"$LINENO"; then :
13709 ac_cv_lib_xml2_htmlReadMemory
=yes
13711 ac_cv_lib_xml2_htmlReadMemory
=no
13713 rm -f core conftest.err conftest.
$ac_objext \
13714 conftest
$ac_exeext conftest.
$ac_ext
13715 LIBS
=$ac_check_lib_save_LIBS
13717 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_xml2_htmlReadMemory" >&5
13718 $as_echo "$ac_cv_lib_xml2_htmlReadMemory" >&6; }
13719 if test "x$ac_cv_lib_xml2_htmlReadMemory" = x
""yes; then :
13725 if test "${HAVE_LIBXML2}" = "yes"; then
13727 $as_echo "#define HAVE_LIBXML2 1" >>confdefs.h
13738 # If netdb.h doesn't declare h_errno, we must declare it by hand.
13739 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether netdb declares h_errno" >&5
13740 $as_echo_n "checking whether netdb declares h_errno... " >&6; }
13741 if test "${emacs_cv_netdb_declares_h_errno+set}" = set; then :
13742 $as_echo_n "(cached) " >&6
13744 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
13745 /* end confdefs.h. */
13755 if ac_fn_c_try_link
"$LINENO"; then :
13756 emacs_cv_netdb_declares_h_errno
=yes
13758 emacs_cv_netdb_declares_h_errno
=no
13760 rm -f core conftest.err conftest.
$ac_objext \
13761 conftest
$ac_exeext conftest.
$ac_ext
13763 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $emacs_cv_netdb_declares_h_errno" >&5
13764 $as_echo "$emacs_cv_netdb_declares_h_errno" >&6; }
13765 if test $emacs_cv_netdb_declares_h_errno = yes; then
13767 $as_echo "#define HAVE_H_ERRNO 1" >>confdefs.h
13771 # fmod, logb, and frexp are found in -lm on most systems.
13772 # On HPUX 9.01, -lm does not contain logb, so check for sqrt.
13773 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sqrt in -lm" >&5
13774 $as_echo_n "checking for sqrt in -lm... " >&6; }
13775 if test "${ac_cv_lib_m_sqrt+set}" = set; then :
13776 $as_echo_n "(cached) " >&6
13778 ac_check_lib_save_LIBS
=$LIBS
13780 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
13781 /* end confdefs.h. */
13783 /* Override any GCC internal prototype to avoid an error.
13784 Use char because int might match the return type of a GCC
13785 builtin and then its argument prototype would still apply. */
13798 if ac_fn_c_try_link
"$LINENO"; then :
13799 ac_cv_lib_m_sqrt
=yes
13801 ac_cv_lib_m_sqrt
=no
13803 rm -f core conftest.err conftest.
$ac_objext \
13804 conftest
$ac_exeext conftest.
$ac_ext
13805 LIBS
=$ac_check_lib_save_LIBS
13807 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_m_sqrt" >&5
13808 $as_echo "$ac_cv_lib_m_sqrt" >&6; }
13809 if test "x$ac_cv_lib_m_sqrt" = x
""yes; then :
13810 cat >>confdefs.h
<<_ACEOF
13811 #define HAVE_LIBM 1
13819 # Check for mail-locking functions in a "mail" library. Probably this should
13820 # have the same check as for liblockfile below.
13821 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for maillock in -lmail" >&5
13822 $as_echo_n "checking for maillock in -lmail... " >&6; }
13823 if test "${ac_cv_lib_mail_maillock+set}" = set; then :
13824 $as_echo_n "(cached) " >&6
13826 ac_check_lib_save_LIBS
=$LIBS
13827 LIBS
="-lmail $LIBS"
13828 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
13829 /* end confdefs.h. */
13831 /* Override any GCC internal prototype to avoid an error.
13832 Use char because int might match the return type of a GCC
13833 builtin and then its argument prototype would still apply. */
13841 return maillock ();
13846 if ac_fn_c_try_link
"$LINENO"; then :
13847 ac_cv_lib_mail_maillock
=yes
13849 ac_cv_lib_mail_maillock
=no
13851 rm -f core conftest.err conftest.
$ac_objext \
13852 conftest
$ac_exeext conftest.
$ac_ext
13853 LIBS
=$ac_check_lib_save_LIBS
13855 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_mail_maillock" >&5
13856 $as_echo "$ac_cv_lib_mail_maillock" >&6; }
13857 if test "x$ac_cv_lib_mail_maillock" = x
""yes; then :
13863 if test $have_mail = yes; then
13865 LIBS
="$LIBS_MAIL $LIBS"
13867 $as_echo "#define HAVE_LIBMAIL 1" >>confdefs.h
13872 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for maillock in -llockfile" >&5
13873 $as_echo_n "checking for maillock in -llockfile... " >&6; }
13874 if test "${ac_cv_lib_lockfile_maillock+set}" = set; then :
13875 $as_echo_n "(cached) " >&6
13877 ac_check_lib_save_LIBS
=$LIBS
13878 LIBS
="-llockfile $LIBS"
13879 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
13880 /* end confdefs.h. */
13882 /* Override any GCC internal prototype to avoid an error.
13883 Use char because int might match the return type of a GCC
13884 builtin and then its argument prototype would still apply. */
13892 return maillock ();
13897 if ac_fn_c_try_link
"$LINENO"; then :
13898 ac_cv_lib_lockfile_maillock
=yes
13900 ac_cv_lib_lockfile_maillock
=no
13902 rm -f core conftest.err conftest.
$ac_objext \
13903 conftest
$ac_exeext conftest.
$ac_ext
13904 LIBS
=$ac_check_lib_save_LIBS
13906 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_lockfile_maillock" >&5
13907 $as_echo "$ac_cv_lib_lockfile_maillock" >&6; }
13908 if test "x$ac_cv_lib_lockfile_maillock" = x
""yes; then :
13914 if test $have_lockfile = yes; then
13915 LIBS_MAIL
=-llockfile
13916 LIBS
="$LIBS_MAIL $LIBS"
13918 $as_echo "#define HAVE_LIBLOCKFILE 1" >>confdefs.h
13921 # If we have the shared liblockfile, assume we must use it for mail
13922 # locking (e.g. Debian). If we couldn't link against liblockfile
13923 # (no liblockfile.a installed), ensure that we don't need to.
13924 # Extract the first word of "liblockfile.so", so it can be a program name with args.
13925 set dummy liblockfile.so
; ac_word
=$2
13926 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13927 $as_echo_n "checking for $ac_word... " >&6; }
13928 if test "${ac_cv_prog_liblockfile+set}" = set; then :
13929 $as_echo_n "(cached) " >&6
13931 if test -n "$liblockfile"; then
13932 ac_cv_prog_liblockfile
="$liblockfile" # Let the user override the test.
13934 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
13935 as_dummy
="/usr/lib:/lib:/usr/local/lib:$LD_LIBRARY_PATH"
13936 for as_dir
in $as_dummy
13939 test -z "$as_dir" && as_dir
=.
13940 for ac_exec_ext
in '' $ac_executable_extensions; do
13941 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
13942 ac_cv_prog_liblockfile
="yes"
13943 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13950 test -z "$ac_cv_prog_liblockfile" && ac_cv_prog_liblockfile
="no"
13953 liblockfile
=$ac_cv_prog_liblockfile
13954 if test -n "$liblockfile"; then
13955 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $liblockfile" >&5
13956 $as_echo "$liblockfile" >&6; }
13958 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13959 $as_echo "no" >&6; }
13963 if test $ac_cv_prog_liblockfile = yes; then
13964 as_fn_error
"Shared liblockfile found but can't link against it.
13965 This probably means that movemail could lose mail.
13966 There may be a \`development' package to install containing liblockfile." "$LINENO" 5
13969 for ac_func
in touchlock
13971 ac_fn_c_check_func
"$LINENO" "touchlock" "ac_cv_func_touchlock"
13972 if test "x$ac_cv_func_touchlock" = x
""yes; then :
13973 cat >>confdefs.h
<<_ACEOF
13974 #define HAVE_TOUCHLOCK 1
13980 for ac_header
in maillock.h
13982 ac_fn_c_check_header_mongrel
"$LINENO" "maillock.h" "ac_cv_header_maillock_h" "$ac_includes_default"
13983 if test "x$ac_cv_header_maillock_h" = x
""yes; then :
13984 cat >>confdefs.h
<<_ACEOF
13985 #define HAVE_MAILLOCK_H 1
13994 ## Define MAIL_USE_FLOCK (or LOCKF) if the mailer uses flock (or lockf) to
13995 ## interlock access to the mail spool. The alternative is a lock file named
13996 ## /usr/spool/mail/$USER.lock.
13999 aix4-2
) mail_lock
="lockf" ;;
14001 gnu|freebsd|netbsd|openbsd|darwin|irix6-5
) mail_lock
="flock" ;;
14003 ## On GNU/Linux systems, both methods are used by various mail programs.
14004 ## I assume most people are using newer mailers that have heard of flock.
14005 ## Change this if you need to.
14006 ## Debian contains a patch which says: ``On Debian/GNU/Linux systems,
14007 ## configure gets the right answers, and that means *NOT* using flock.
14008 ## Using flock is guaranteed to be the wrong thing. See Debian Policy
14009 ## for details.'' and then uses `#ifdef DEBIAN'. Unfortunately the
14010 ## Debian maintainer hasn't provided a clean fix for Emacs.
14011 ## movemail.c will use `maillock' when MAILDIR, HAVE_LIBMAIL and
14012 ## HAVE_MAILLOCK_H are defined, so the following appears to be the
14013 ## correct logic. -- fx
14014 ## We must check for HAVE_LIBLOCKFILE too, as movemail does.
14015 ## liblockfile is a Free Software replacement for libmail, used on
14016 ## Debian systems and elsewhere. -rfr.
14019 if test $have_mail = yes ||
test $have_lockfile = yes; then
14020 test $ac_cv_header_maillock_h = yes && mail_lock
=no
14026 case "$mail_lock" in
14028 $as_echo "#define MAIL_USE_FLOCK 1" >>confdefs.h
14032 $as_echo "#define MAIL_USE_LOCKF 1" >>confdefs.h
14035 *) BLESSMAIL_TARGET
="need-blessmail" ;;
14040 for ac_func
in gethostname getdomainname \
14041 rename closedir mkdir
rmdir sysinfo getrusage get_current_dir_name \
14042 random lrand48 logb frexp fmod rint cbrt ftime setsid \
14043 strerror fpathconf
select euidaccess getpagesize tzset setlocale \
14044 utimes getrlimit setrlimit setpgid getcwd getwd shutdown getaddrinfo \
14045 __fpending mblen mbrlen mbsinit strsignal setitimer ualarm \
14046 sendto recvfrom getsockopt setsockopt getsockname getpeername \
14047 gai_strerror mkstemp getline getdelim mremap fsync sync \
14048 difftime mempcpy mblen mbrlen posix_memalign \
14049 cfmakeraw cfsetspeed copysign __executable_start
14051 as_ac_var
=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
14052 ac_fn_c_check_func
"$LINENO" "$ac_func" "$as_ac_var"
14053 eval as_val
=\$
$as_ac_var
14054 if test "x$as_val" = x
""yes; then :
14055 cat >>confdefs.h
<<_ACEOF
14056 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
14063 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for __builtin_unwind_init" >&5
14064 $as_echo_n "checking for __builtin_unwind_init... " >&6; }
14065 if test "${emacs_cv_func___builtin_unwind_init+set}" = set; then :
14066 $as_echo_n "(cached) " >&6
14068 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
14069 /* end confdefs.h. */
14074 __builtin_unwind_init ();
14079 if ac_fn_c_try_link
"$LINENO"; then :
14080 emacs_cv_func___builtin_unwind_init
=yes
14082 emacs_cv_func___builtin_unwind_init
=no
14084 rm -f core conftest.err conftest.
$ac_objext \
14085 conftest
$ac_exeext conftest.
$ac_ext
14087 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $emacs_cv_func___builtin_unwind_init" >&5
14088 $as_echo "$emacs_cv_func___builtin_unwind_init" >&6; }
14089 if test $emacs_cv_func___builtin_unwind_init = yes; then
14091 $as_echo "#define HAVE___BUILTIN_UNWIND_INIT 1" >>confdefs.h
14095 for ac_header
in sys
/un.h
14097 ac_fn_c_check_header_mongrel
"$LINENO" "sys/un.h" "ac_cv_header_sys_un_h" "$ac_includes_default"
14098 if test "x$ac_cv_header_sys_un_h" = x
""yes; then :
14099 cat >>confdefs.h
<<_ACEOF
14100 #define HAVE_SYS_UN_H 1
14108 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _LARGEFILE_SOURCE value needed for large files" >&5
14109 $as_echo_n "checking for _LARGEFILE_SOURCE value needed for large files... " >&6; }
14110 if test "${ac_cv_sys_largefile_source+set}" = set; then :
14111 $as_echo_n "(cached) " >&6
14114 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
14115 /* end confdefs.h. */
14116 #include <sys/types.h> /* for off_t */
14121 int (*fp) (FILE *, off_t, int) = fseeko;
14122 return fseeko (stdin, 0, 0) && fp (stdin, 0, 0);
14127 if ac_fn_c_try_link
"$LINENO"; then :
14128 ac_cv_sys_largefile_source
=no
; break
14130 rm -f core conftest.err conftest.
$ac_objext \
14131 conftest
$ac_exeext conftest.
$ac_ext
14132 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
14133 /* end confdefs.h. */
14134 #define _LARGEFILE_SOURCE 1
14135 #include <sys/types.h> /* for off_t */
14140 int (*fp) (FILE *, off_t, int) = fseeko;
14141 return fseeko (stdin, 0, 0) && fp (stdin, 0, 0);
14146 if ac_fn_c_try_link
"$LINENO"; then :
14147 ac_cv_sys_largefile_source
=1; break
14149 rm -f core conftest.err conftest.
$ac_objext \
14150 conftest
$ac_exeext conftest.
$ac_ext
14151 ac_cv_sys_largefile_source
=unknown
14155 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_largefile_source" >&5
14156 $as_echo "$ac_cv_sys_largefile_source" >&6; }
14157 case $ac_cv_sys_largefile_source in #(
14160 cat >>confdefs.h
<<_ACEOF
14161 #define _LARGEFILE_SOURCE $ac_cv_sys_largefile_source
14167 # We used to try defining _XOPEN_SOURCE=500 too, to work around a bug
14168 # in glibc 2.1.3, but that breaks too many other things.
14169 # If you want fseeko and ftello with glibc, upgrade to a fixed glibc.
14170 if test $ac_cv_sys_largefile_source != unknown
; then
14172 $as_echo "#define HAVE_FSEEKO 1" >>confdefs.h
14177 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether getpgrp requires zero arguments" >&5
14178 $as_echo_n "checking whether getpgrp requires zero arguments... " >&6; }
14179 if test "${ac_cv_func_getpgrp_void+set}" = set; then :
14180 $as_echo_n "(cached) " >&6
14182 # Use it with a single arg.
14183 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
14184 /* end confdefs.h. */
14185 $ac_includes_default
14194 if ac_fn_c_try_compile
"$LINENO"; then :
14195 ac_cv_func_getpgrp_void
=no
14197 ac_cv_func_getpgrp_void
=yes
14199 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
14202 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_getpgrp_void" >&5
14203 $as_echo "$ac_cv_func_getpgrp_void" >&6; }
14204 if test $ac_cv_func_getpgrp_void = yes; then
14206 $as_echo "#define GETPGRP_VOID 1" >>confdefs.h
14212 for ac_func
in grantpt
14214 ac_fn_c_check_func
"$LINENO" "grantpt" "ac_cv_func_grantpt"
14215 if test "x$ac_cv_func_grantpt" = x
""yes; then :
14216 cat >>confdefs.h
<<_ACEOF
14217 #define HAVE_GRANTPT 1
14224 # PTY-related GNU extensions.
14225 for ac_func
in getpt
14227 ac_fn_c_check_func
"$LINENO" "getpt" "ac_cv_func_getpt"
14228 if test "x$ac_cv_func_getpt" = x
""yes; then :
14229 cat >>confdefs.h
<<_ACEOF
14230 #define HAVE_GETPT 1
14237 # Check this now, so that we will NOT find the above functions in ncurses.
14238 # That is because we have not set up to link ncurses in lib-src.
14239 # It's better to believe a function is not available
14240 # than to expect to find it in ncurses.
14241 # Also we need tputs and friends to be able to build at all.
14242 have_tputs_et_al
=true
14243 # Maybe curses should be tried earlier?
14244 # See http://debbugs.gnu.org/cgi/bugreport.cgi?bug=9736#35
14245 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing tputs" >&5
14246 $as_echo_n "checking for library containing tputs... " >&6; }
14247 if test "${ac_cv_search_tputs+set}" = set; then :
14248 $as_echo_n "(cached) " >&6
14250 ac_func_search_save_LIBS
=$LIBS
14251 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
14252 /* end confdefs.h. */
14254 /* Override any GCC internal prototype to avoid an error.
14255 Use char because int might match the return type of a GCC
14256 builtin and then its argument prototype would still apply. */
14269 for ac_lib
in '' ncurses terminfo termcap curses
; do
14270 if test -z "$ac_lib"; then
14271 ac_res
="none required"
14274 LIBS
="-l$ac_lib $ac_func_search_save_LIBS"
14276 if ac_fn_c_try_link
"$LINENO"; then :
14277 ac_cv_search_tputs
=$ac_res
14279 rm -f core conftest.err conftest.
$ac_objext \
14281 if test "${ac_cv_search_tputs+set}" = set; then :
14285 if test "${ac_cv_search_tputs+set}" = set; then :
14288 ac_cv_search_tputs
=no
14290 rm conftest.
$ac_ext
14291 LIBS
=$ac_func_search_save_LIBS
14293 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_tputs" >&5
14294 $as_echo "$ac_cv_search_tputs" >&6; }
14295 ac_res
=$ac_cv_search_tputs
14296 if test "$ac_res" != no
; then :
14297 test "$ac_res" = "none required" || LIBS
="$ac_res $LIBS"
14300 have_tputs_et_al
=false
14303 if test "$have_tputs_et_al" != true
; then
14304 as_fn_error
"The required function \`tputs' was not found in any library.
14305 These libraries were tried: libncurses, libterminfo, libtermcap, libcurses.
14306 Please try installing whichever of these libraries is most appropriate
14307 for your system, together with its header files.
14308 For example, a libncurses-dev(el) or similar package." "$LINENO" 5
14310 # Must define this when any termcap library is found.
14312 $as_echo "#define HAVE_LIBNCURSES 1" >>confdefs.h
14314 ## FIXME This was the cpp logic, but I am not sure it is right.
14315 ## The above test has not necessarily found libncurses.
14316 HAVE_LIBNCURSES
=yes
14318 ## Use terminfo instead of termcap?
14319 ## Note only system files NOT using terminfo are:
14320 ## freebsd < 40000, ms-w32, msdos, netbsd < 599002500, and
14321 ## darwin|gnu without ncurses.
14325 ## cygwin: Fewer environment variables to go wrong, more terminal types.
14326 ## hpux10-20: Use the system provided termcap(3) library.
14327 ## openbsd: David Mazieres <dm@reeducation-labor.lcs.mit.edu> says this
14328 ## is necessary. Otherwise Emacs dumps core when run -nw.
14329 aix4-2|cygwin|hpux
*|irix6-5|openbsd|sol2
*|unixware
) TERMINFO
=yes ;;
14331 ## darwin: Prevents crashes when running Emacs in Terminal.app under 10.2.
14332 ## The ncurses library has been moved out of the System framework in
14333 ## Mac OS X 10.2. So if configure detects it, set the command-line
14334 ## option to use it.
14336 ## (HAVE_LIBNCURSES was not always true, but is since 2010-03-18.)
14337 if test "x$HAVE_LIBNCURSES" = "xyes"; then
14339 LIBS_TERMCAP
="-lncurses"
14344 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether FreeBSD is new enough to use terminfo" >&5
14345 $as_echo_n "checking whether FreeBSD is new enough to use terminfo... " >&6; }
14346 if test "${emacs_cv_freebsd_terminfo+set}" = set; then :
14347 $as_echo_n "(cached) " >&6
14349 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
14350 /* end confdefs.h. */
14351 #include <osreldate.h>
14355 #if __FreeBSD_version < 400000
14363 if ac_fn_c_try_link
"$LINENO"; then :
14364 emacs_cv_freebsd_terminfo
=yes
14366 emacs_cv_freebsd_terminfo
=no
14368 rm -f core conftest.err conftest.
$ac_objext \
14369 conftest
$ac_exeext conftest.
$ac_ext
14373 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $emacs_cv_freebsd_terminfo" >&5
14374 $as_echo "$emacs_cv_freebsd_terminfo" >&6; }
14376 if test $emacs_cv_freebsd_terminfo = yes; then
14378 LIBS_TERMCAP
="-lncurses"
14380 LIBS_TERMCAP
="-ltermcap"
14385 if test $ac_cv_search_tputs = -lterminfo; then
14387 LIBS_TERMCAP
="-lterminfo"
14389 LIBS_TERMCAP
="-ltermcap"
14396 ## hpux: Make sure we get select from libc rather than from libcurses
14397 ## because libcurses on HPUX 10.10 has a broken version of select.
14398 ## We used to use -lc -lcurses, but this may be cleaner.
14399 hpux
*) LIBS_TERMCAP
="-ltermcap" ;;
14401 openbsd
) LIBS_TERMCAP
="-lncurses" ;;
14403 ## Must use system termcap, if we use any termcap. It does special things.
14404 sol2
*) test "$TERMINFO" != yes && LIBS_TERMCAP
="-ltermcap" ;;
14407 TERMCAP_OBJ
=tparam.o
14408 if test $TERMINFO = yes; then
14410 $as_echo "#define TERMINFO 1" >>confdefs.h
14413 ## Default used to be -ltermcap. Add a case above if need something else.
14414 test "x$LIBS_TERMCAP" = "x" && LIBS_TERMCAP
="-lcurses"
14416 TERMCAP_OBJ
=terminfo.o
14422 # Do we have res_init, for detecting changes in /etc/resolv.conf?
14424 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
14425 /* end confdefs.h. */
14426 #include <netinet/in.h>
14427 #include <arpa/nameser.h>
14428 #include <resolv.h>
14437 if ac_fn_c_try_link
"$LINENO"; then :
14442 rm -f core conftest.err conftest.
$ac_objext \
14443 conftest
$ac_exeext conftest.
$ac_ext
14444 if test "$have_res_init" = no
; then
14446 LIBS
="$LIBS -lresolv"
14447 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for res_init with -lresolv" >&5
14448 $as_echo_n "checking for res_init with -lresolv... " >&6; }
14449 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
14450 /* end confdefs.h. */
14451 #include <netinet/in.h>
14452 #include <arpa/nameser.h>
14453 #include <resolv.h>
14462 if ac_fn_c_try_link
"$LINENO"; then :
14467 rm -f core conftest.err conftest.
$ac_objext \
14468 conftest
$ac_exeext conftest.
$ac_ext
14469 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_res_init" >&5
14470 $as_echo "$have_res_init" >&6; }
14471 if test "$have_res_init" = yes ; then
14477 if test "$have_res_init" = yes; then
14479 $as_echo "#define HAVE_RES_INIT 1" >>confdefs.h
14483 # Do we need the Hesiod library to provide the support routines?
14485 if test "$with_hesiod" != no
; then
14486 # Don't set $LIBS here -- see comments above. FIXME which comments?
14487 ac_fn_c_check_func
"$LINENO" "res_send" "ac_cv_func_res_send"
14488 if test "x$ac_cv_func_res_send" = x
""yes; then :
14491 ac_fn_c_check_func
"$LINENO" "__res_send" "ac_cv_func___res_send"
14492 if test "x$ac_cv_func___res_send" = x
""yes; then :
14495 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for res_send in -lresolv" >&5
14496 $as_echo_n "checking for res_send in -lresolv... " >&6; }
14497 if test "${ac_cv_lib_resolv_res_send+set}" = set; then :
14498 $as_echo_n "(cached) " >&6
14500 ac_check_lib_save_LIBS
=$LIBS
14501 LIBS
="-lresolv $LIBS"
14502 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
14503 /* end confdefs.h. */
14505 /* Override any GCC internal prototype to avoid an error.
14506 Use char because int might match the return type of a GCC
14507 builtin and then its argument prototype would still apply. */
14515 return res_send ();
14520 if ac_fn_c_try_link
"$LINENO"; then :
14521 ac_cv_lib_resolv_res_send
=yes
14523 ac_cv_lib_resolv_res_send
=no
14525 rm -f core conftest.err conftest.
$ac_objext \
14526 conftest
$ac_exeext conftest.
$ac_ext
14527 LIBS
=$ac_check_lib_save_LIBS
14529 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_resolv_res_send" >&5
14530 $as_echo "$ac_cv_lib_resolv_res_send" >&6; }
14531 if test "x$ac_cv_lib_resolv_res_send" = x
""yes; then :
14534 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for __res_send in -lresolv" >&5
14535 $as_echo_n "checking for __res_send in -lresolv... " >&6; }
14536 if test "${ac_cv_lib_resolv___res_send+set}" = set; then :
14537 $as_echo_n "(cached) " >&6
14539 ac_check_lib_save_LIBS
=$LIBS
14540 LIBS
="-lresolv $LIBS"
14541 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
14542 /* end confdefs.h. */
14544 /* Override any GCC internal prototype to avoid an error.
14545 Use char because int might match the return type of a GCC
14546 builtin and then its argument prototype would still apply. */
14550 char __res_send ();
14554 return __res_send ();
14559 if ac_fn_c_try_link
"$LINENO"; then :
14560 ac_cv_lib_resolv___res_send
=yes
14562 ac_cv_lib_resolv___res_send
=no
14564 rm -f core conftest.err conftest.
$ac_objext \
14565 conftest
$ac_exeext conftest.
$ac_ext
14566 LIBS
=$ac_check_lib_save_LIBS
14568 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_resolv___res_send" >&5
14569 $as_echo "$ac_cv_lib_resolv___res_send" >&6; }
14570 if test "x$ac_cv_lib_resolv___res_send" = x
""yes; then :
14580 if test "$resolv" = yes ; then
14585 ac_fn_c_check_func
"$LINENO" "hes_getmailhost" "ac_cv_func_hes_getmailhost"
14586 if test "x$ac_cv_func_hes_getmailhost" = x
""yes; then :
14589 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for hes_getmailhost in -lhesiod" >&5
14590 $as_echo_n "checking for hes_getmailhost in -lhesiod... " >&6; }
14591 if test "${ac_cv_lib_hesiod_hes_getmailhost+set}" = set; then :
14592 $as_echo_n "(cached) " >&6
14594 ac_check_lib_save_LIBS
=$LIBS
14595 LIBS
="-lhesiod $RESOLVLIB $LIBS"
14596 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
14597 /* end confdefs.h. */
14599 /* Override any GCC internal prototype to avoid an error.
14600 Use char because int might match the return type of a GCC
14601 builtin and then its argument prototype would still apply. */
14605 char hes_getmailhost ();
14609 return hes_getmailhost ();
14614 if ac_fn_c_try_link
"$LINENO"; then :
14615 ac_cv_lib_hesiod_hes_getmailhost
=yes
14617 ac_cv_lib_hesiod_hes_getmailhost
=no
14619 rm -f core conftest.err conftest.
$ac_objext \
14620 conftest
$ac_exeext conftest.
$ac_ext
14621 LIBS
=$ac_check_lib_save_LIBS
14623 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_hesiod_hes_getmailhost" >&5
14624 $as_echo "$ac_cv_lib_hesiod_hes_getmailhost" >&6; }
14625 if test "x$ac_cv_lib_hesiod_hes_getmailhost" = x
""yes; then :
14634 if test x
"$hesiod" = xyes
; then
14636 $as_echo "#define HAVE_LIBHESIOD 1" >>confdefs.h
14643 # Do we need libresolv (due to res_init or Hesiod)?
14644 if test "$resolv" = yes ; then
14646 $as_echo "#define HAVE_LIBRESOLV 1" >>confdefs.h
14654 # These tell us which Kerberos-related libraries to use.
14661 if test "${with_kerberos}" != no
; then
14662 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for com_err in -lcom_err" >&5
14663 $as_echo_n "checking for com_err in -lcom_err... " >&6; }
14664 if test "${ac_cv_lib_com_err_com_err+set}" = set; then :
14665 $as_echo_n "(cached) " >&6
14667 ac_check_lib_save_LIBS
=$LIBS
14668 LIBS
="-lcom_err $LIBS"
14669 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
14670 /* end confdefs.h. */
14672 /* Override any GCC internal prototype to avoid an error.
14673 Use char because int might match the return type of a GCC
14674 builtin and then its argument prototype would still apply. */
14687 if ac_fn_c_try_link
"$LINENO"; then :
14688 ac_cv_lib_com_err_com_err
=yes
14690 ac_cv_lib_com_err_com_err
=no
14692 rm -f core conftest.err conftest.
$ac_objext \
14693 conftest
$ac_exeext conftest.
$ac_ext
14694 LIBS
=$ac_check_lib_save_LIBS
14696 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_com_err_com_err" >&5
14697 $as_echo "$ac_cv_lib_com_err_com_err" >&6; }
14698 if test "x$ac_cv_lib_com_err_com_err" = x
""yes; then :
14704 if test $have_com_err = yes; then
14705 COM_ERRLIB
=-lcom_err
14706 LIBS
="$COM_ERRLIB $LIBS"
14708 $as_echo "#define HAVE_LIBCOM_ERR 1" >>confdefs.h
14711 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for mit_des_cbc_encrypt in -lcrypto" >&5
14712 $as_echo_n "checking for mit_des_cbc_encrypt in -lcrypto... " >&6; }
14713 if test "${ac_cv_lib_crypto_mit_des_cbc_encrypt+set}" = set; then :
14714 $as_echo_n "(cached) " >&6
14716 ac_check_lib_save_LIBS
=$LIBS
14717 LIBS
="-lcrypto $LIBS"
14718 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
14719 /* end confdefs.h. */
14721 /* Override any GCC internal prototype to avoid an error.
14722 Use char because int might match the return type of a GCC
14723 builtin and then its argument prototype would still apply. */
14727 char mit_des_cbc_encrypt ();
14731 return mit_des_cbc_encrypt ();
14736 if ac_fn_c_try_link
"$LINENO"; then :
14737 ac_cv_lib_crypto_mit_des_cbc_encrypt
=yes
14739 ac_cv_lib_crypto_mit_des_cbc_encrypt
=no
14741 rm -f core conftest.err conftest.
$ac_objext \
14742 conftest
$ac_exeext conftest.
$ac_ext
14743 LIBS
=$ac_check_lib_save_LIBS
14745 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_crypto_mit_des_cbc_encrypt" >&5
14746 $as_echo "$ac_cv_lib_crypto_mit_des_cbc_encrypt" >&6; }
14747 if test "x$ac_cv_lib_crypto_mit_des_cbc_encrypt" = x
""yes; then :
14753 if test $have_crypto = yes; then
14755 LIBS
="$CRYPTOLIB $LIBS"
14757 $as_echo "#define HAVE_LIBCRYPTO 1" >>confdefs.h
14760 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for mit_des_cbc_encrypt in -lk5crypto" >&5
14761 $as_echo_n "checking for mit_des_cbc_encrypt in -lk5crypto... " >&6; }
14762 if test "${ac_cv_lib_k5crypto_mit_des_cbc_encrypt+set}" = set; then :
14763 $as_echo_n "(cached) " >&6
14765 ac_check_lib_save_LIBS
=$LIBS
14766 LIBS
="-lk5crypto $LIBS"
14767 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
14768 /* end confdefs.h. */
14770 /* Override any GCC internal prototype to avoid an error.
14771 Use char because int might match the return type of a GCC
14772 builtin and then its argument prototype would still apply. */
14776 char mit_des_cbc_encrypt ();
14780 return mit_des_cbc_encrypt ();
14785 if ac_fn_c_try_link
"$LINENO"; then :
14786 ac_cv_lib_k5crypto_mit_des_cbc_encrypt
=yes
14788 ac_cv_lib_k5crypto_mit_des_cbc_encrypt
=no
14790 rm -f core conftest.err conftest.
$ac_objext \
14791 conftest
$ac_exeext conftest.
$ac_ext
14792 LIBS
=$ac_check_lib_save_LIBS
14794 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_k5crypto_mit_des_cbc_encrypt" >&5
14795 $as_echo "$ac_cv_lib_k5crypto_mit_des_cbc_encrypt" >&6; }
14796 if test "x$ac_cv_lib_k5crypto_mit_des_cbc_encrypt" = x
""yes; then :
14802 if test $have_k5crypto = yes; then
14803 CRYPTOLIB
=-lk5crypto
14804 LIBS
="$CRYPTOLIB $LIBS"
14806 $as_echo "#define HAVE_LIBK5CRYPTO 1" >>confdefs.h
14809 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for krb5_init_context in -lkrb5" >&5
14810 $as_echo_n "checking for krb5_init_context in -lkrb5... " >&6; }
14811 if test "${ac_cv_lib_krb5_krb5_init_context+set}" = set; then :
14812 $as_echo_n "(cached) " >&6
14814 ac_check_lib_save_LIBS
=$LIBS
14815 LIBS
="-lkrb5 $LIBS"
14816 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
14817 /* end confdefs.h. */
14819 /* Override any GCC internal prototype to avoid an error.
14820 Use char because int might match the return type of a GCC
14821 builtin and then its argument prototype would still apply. */
14825 char krb5_init_context ();
14829 return krb5_init_context ();
14834 if ac_fn_c_try_link
"$LINENO"; then :
14835 ac_cv_lib_krb5_krb5_init_context
=yes
14837 ac_cv_lib_krb5_krb5_init_context
=no
14839 rm -f core conftest.err conftest.
$ac_objext \
14840 conftest
$ac_exeext conftest.
$ac_ext
14841 LIBS
=$ac_check_lib_save_LIBS
14843 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_krb5_krb5_init_context" >&5
14844 $as_echo "$ac_cv_lib_krb5_krb5_init_context" >&6; }
14845 if test "x$ac_cv_lib_krb5_krb5_init_context" = x
""yes; then :
14851 if test $have_krb5=yes; then
14853 LIBS
="$KRB5LIB $LIBS"
14855 $as_echo "#define HAVE_LIBKRB5 1" >>confdefs.h
14858 if test "${with_kerberos5}" = no
; then
14859 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for des_cbc_encrypt in -ldes425" >&5
14860 $as_echo_n "checking for des_cbc_encrypt in -ldes425... " >&6; }
14861 if test "${ac_cv_lib_des425_des_cbc_encrypt+set}" = set; then :
14862 $as_echo_n "(cached) " >&6
14864 ac_check_lib_save_LIBS
=$LIBS
14865 LIBS
="-ldes425 $LIBS"
14866 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
14867 /* end confdefs.h. */
14869 /* Override any GCC internal prototype to avoid an error.
14870 Use char because int might match the return type of a GCC
14871 builtin and then its argument prototype would still apply. */
14875 char des_cbc_encrypt ();
14879 return des_cbc_encrypt ();
14884 if ac_fn_c_try_link
"$LINENO"; then :
14885 ac_cv_lib_des425_des_cbc_encrypt
=yes
14887 ac_cv_lib_des425_des_cbc_encrypt
=no
14889 rm -f core conftest.err conftest.
$ac_objext \
14890 conftest
$ac_exeext conftest.
$ac_ext
14891 LIBS
=$ac_check_lib_save_LIBS
14893 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_des425_des_cbc_encrypt" >&5
14894 $as_echo "$ac_cv_lib_des425_des_cbc_encrypt" >&6; }
14895 if test "x$ac_cv_lib_des425_des_cbc_encrypt" = x
""yes; then :
14901 if test $have_des425 = yes; then
14903 LIBS
="$DESLIB $LIBS"
14905 $as_echo "#define HAVE_LIBDES425 1" >>confdefs.h
14908 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for des_cbc_encrypt in -ldes" >&5
14909 $as_echo_n "checking for des_cbc_encrypt in -ldes... " >&6; }
14910 if test "${ac_cv_lib_des_des_cbc_encrypt+set}" = set; then :
14911 $as_echo_n "(cached) " >&6
14913 ac_check_lib_save_LIBS
=$LIBS
14915 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
14916 /* end confdefs.h. */
14918 /* Override any GCC internal prototype to avoid an error.
14919 Use char because int might match the return type of a GCC
14920 builtin and then its argument prototype would still apply. */
14924 char des_cbc_encrypt ();
14928 return des_cbc_encrypt ();
14933 if ac_fn_c_try_link
"$LINENO"; then :
14934 ac_cv_lib_des_des_cbc_encrypt
=yes
14936 ac_cv_lib_des_des_cbc_encrypt
=no
14938 rm -f core conftest.err conftest.
$ac_objext \
14939 conftest
$ac_exeext conftest.
$ac_ext
14940 LIBS
=$ac_check_lib_save_LIBS
14942 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_des_des_cbc_encrypt" >&5
14943 $as_echo "$ac_cv_lib_des_des_cbc_encrypt" >&6; }
14944 if test "x$ac_cv_lib_des_des_cbc_encrypt" = x
""yes; then :
14950 if test $have_des = yes; then
14952 LIBS
="$DESLIB $LIBS"
14954 $as_echo "#define HAVE_LIBDES 1" >>confdefs.h
14958 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for krb_get_cred in -lkrb4" >&5
14959 $as_echo_n "checking for krb_get_cred in -lkrb4... " >&6; }
14960 if test "${ac_cv_lib_krb4_krb_get_cred+set}" = set; then :
14961 $as_echo_n "(cached) " >&6
14963 ac_check_lib_save_LIBS
=$LIBS
14964 LIBS
="-lkrb4 $LIBS"
14965 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
14966 /* end confdefs.h. */
14968 /* Override any GCC internal prototype to avoid an error.
14969 Use char because int might match the return type of a GCC
14970 builtin and then its argument prototype would still apply. */
14974 char krb_get_cred ();
14978 return krb_get_cred ();
14983 if ac_fn_c_try_link
"$LINENO"; then :
14984 ac_cv_lib_krb4_krb_get_cred
=yes
14986 ac_cv_lib_krb4_krb_get_cred
=no
14988 rm -f core conftest.err conftest.
$ac_objext \
14989 conftest
$ac_exeext conftest.
$ac_ext
14990 LIBS
=$ac_check_lib_save_LIBS
14992 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_krb4_krb_get_cred" >&5
14993 $as_echo "$ac_cv_lib_krb4_krb_get_cred" >&6; }
14994 if test "x$ac_cv_lib_krb4_krb_get_cred" = x
""yes; then :
15000 if test $have_krb4 = yes; then
15002 LIBS
="$KRB4LIB $LIBS"
15004 $as_echo "#define HAVE_LIBKRB4 1" >>confdefs.h
15007 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for krb_get_cred in -lkrb" >&5
15008 $as_echo_n "checking for krb_get_cred in -lkrb... " >&6; }
15009 if test "${ac_cv_lib_krb_krb_get_cred+set}" = set; then :
15010 $as_echo_n "(cached) " >&6
15012 ac_check_lib_save_LIBS
=$LIBS
15014 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
15015 /* end confdefs.h. */
15017 /* Override any GCC internal prototype to avoid an error.
15018 Use char because int might match the return type of a GCC
15019 builtin and then its argument prototype would still apply. */
15023 char krb_get_cred ();
15027 return krb_get_cred ();
15032 if ac_fn_c_try_link
"$LINENO"; then :
15033 ac_cv_lib_krb_krb_get_cred
=yes
15035 ac_cv_lib_krb_krb_get_cred
=no
15037 rm -f core conftest.err conftest.
$ac_objext \
15038 conftest
$ac_exeext conftest.
$ac_ext
15039 LIBS
=$ac_check_lib_save_LIBS
15041 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_krb_krb_get_cred" >&5
15042 $as_echo "$ac_cv_lib_krb_krb_get_cred" >&6; }
15043 if test "x$ac_cv_lib_krb_krb_get_cred" = x
""yes; then :
15049 if test $have_krb = yes; then
15051 LIBS
="$KRB4LIB $LIBS"
15053 $as_echo "#define HAVE_LIBKRB 1" >>confdefs.h
15059 if test "${with_kerberos5}" != no
; then
15060 for ac_header
in krb5.h
15062 ac_fn_c_check_header_mongrel
"$LINENO" "krb5.h" "ac_cv_header_krb5_h" "$ac_includes_default"
15063 if test "x$ac_cv_header_krb5_h" = x
""yes; then :
15064 cat >>confdefs.h
<<_ACEOF
15065 #define HAVE_KRB5_H 1
15067 ac_fn_c_check_member
"$LINENO" "krb5_error" "text" "ac_cv_member_krb5_error_text" "#include <krb5.h>
15069 if test "x$ac_cv_member_krb5_error_text" = x
""yes; then :
15071 cat >>confdefs.h
<<_ACEOF
15072 #define HAVE_KRB5_ERROR_TEXT 1
15077 ac_fn_c_check_member
"$LINENO" "krb5_error" "e_text" "ac_cv_member_krb5_error_e_text" "#include <krb5.h>
15079 if test "x$ac_cv_member_krb5_error_e_text" = x
""yes; then :
15081 cat >>confdefs.h
<<_ACEOF
15082 #define HAVE_KRB5_ERROR_E_TEXT 1
15093 for ac_header
in des.h
15095 ac_fn_c_check_header_mongrel
"$LINENO" "des.h" "ac_cv_header_des_h" "$ac_includes_default"
15096 if test "x$ac_cv_header_des_h" = x
""yes; then :
15097 cat >>confdefs.h
<<_ACEOF
15098 #define HAVE_DES_H 1
15102 for ac_header
in kerberosIV
/des.h
15104 ac_fn_c_check_header_mongrel
"$LINENO" "kerberosIV/des.h" "ac_cv_header_kerberosIV_des_h" "$ac_includes_default"
15105 if test "x$ac_cv_header_kerberosIV_des_h" = x
""yes; then :
15106 cat >>confdefs.h
<<_ACEOF
15107 #define HAVE_KERBEROSIV_DES_H 1
15111 for ac_header
in kerberos
/des.h
15113 ac_fn_c_check_header_mongrel
"$LINENO" "kerberos/des.h" "ac_cv_header_kerberos_des_h" "$ac_includes_default"
15114 if test "x$ac_cv_header_kerberos_des_h" = x
""yes; then :
15115 cat >>confdefs.h
<<_ACEOF
15116 #define HAVE_KERBEROS_DES_H 1
15131 for ac_header
in krb.h
15133 ac_fn_c_check_header_mongrel
"$LINENO" "krb.h" "ac_cv_header_krb_h" "$ac_includes_default"
15134 if test "x$ac_cv_header_krb_h" = x
""yes; then :
15135 cat >>confdefs.h
<<_ACEOF
15136 #define HAVE_KRB_H 1
15140 for ac_header
in kerberosIV
/krb.h
15142 ac_fn_c_check_header_mongrel
"$LINENO" "kerberosIV/krb.h" "ac_cv_header_kerberosIV_krb_h" "$ac_includes_default"
15143 if test "x$ac_cv_header_kerberosIV_krb_h" = x
""yes; then :
15144 cat >>confdefs.h
<<_ACEOF
15145 #define HAVE_KERBEROSIV_KRB_H 1
15149 for ac_header
in kerberos
/krb.h
15151 ac_fn_c_check_header_mongrel
"$LINENO" "kerberos/krb.h" "ac_cv_header_kerberos_krb_h" "$ac_includes_default"
15152 if test "x$ac_cv_header_kerberos_krb_h" = x
""yes; then :
15153 cat >>confdefs.h
<<_ACEOF
15154 #define HAVE_KERBEROS_KRB_H 1
15170 for ac_header
in com_err.h
15172 ac_fn_c_check_header_mongrel
"$LINENO" "com_err.h" "ac_cv_header_com_err_h" "$ac_includes_default"
15173 if test "x$ac_cv_header_com_err_h" = x
""yes; then :
15174 cat >>confdefs.h
<<_ACEOF
15175 #define HAVE_COM_ERR_H 1
15190 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether localtime caches TZ" >&5
15191 $as_echo_n "checking whether localtime caches TZ... " >&6; }
15192 if test "${emacs_cv_localtime_cache+set}" = set; then :
15193 $as_echo_n "(cached) " >&6
15195 if test x
$ac_cv_func_tzset = xyes
; then
15196 if test "$cross_compiling" = yes; then :
15197 # If we have tzset, assume the worst when cross-compiling.
15198 emacs_cv_localtime_cache
=yes
15200 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
15201 /* end confdefs.h. */
15203 char TZ_GMT0[] = "TZ=GMT0";
15204 char TZ_PST8[] = "TZ=PST8";
15207 time_t now = time ((time_t *) 0);
15208 int hour_GMT0, hour_unset;
15209 if (putenv (TZ_GMT0) != 0)
15211 hour_GMT0 = localtime (&now)->tm_hour;
15213 hour_unset = localtime (&now)->tm_hour;
15214 if (putenv (TZ_PST8) != 0)
15216 if (localtime (&now)->tm_hour == hour_GMT0)
15219 if (localtime (&now)->tm_hour != hour_unset)
15224 if ac_fn_c_try_run
"$LINENO"; then :
15225 emacs_cv_localtime_cache
=no
15227 emacs_cv_localtime_cache
=yes
15229 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
15230 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
15234 # If we lack tzset, report that localtime does not cache TZ,
15235 # since we can't invalidate the cache if we don't have tzset.
15236 emacs_cv_localtime_cache
=no
15239 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $emacs_cv_localtime_cache" >&5
15240 $as_echo "$emacs_cv_localtime_cache" >&6; }
15241 if test $emacs_cv_localtime_cache = yes; then
15243 $as_echo "#define LOCALTIME_CACHE 1" >>confdefs.h
15247 if test "x$HAVE_TIMEVAL" = xyes
; then
15248 for ac_func
in gettimeofday
15250 ac_fn_c_check_func
"$LINENO" "gettimeofday" "ac_cv_func_gettimeofday"
15251 if test "x$ac_cv_func_gettimeofday" = x
""yes; then :
15252 cat >>confdefs.h
<<_ACEOF
15253 #define HAVE_GETTIMEOFDAY 1
15259 if test $ac_cv_func_gettimeofday = yes; then
15260 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether gettimeofday can accept two arguments" >&5
15261 $as_echo_n "checking whether gettimeofday can accept two arguments... " >&6; }
15262 if test "${emacs_cv_gettimeofday_two_arguments+set}" = set; then :
15263 $as_echo_n "(cached) " >&6
15265 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
15266 /* end confdefs.h. */
15268 #ifdef TIME_WITH_SYS_TIME
15269 #include <sys/time.h>
15272 #ifdef HAVE_SYS_TIME_H
15273 #include <sys/time.h>
15281 struct timeval time;
15282 gettimeofday (&time, 0);
15287 if ac_fn_c_try_compile
"$LINENO"; then :
15288 emacs_cv_gettimeofday_two_arguments
=yes
15290 emacs_cv_gettimeofday_two_arguments
=no
15292 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
15294 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $emacs_cv_gettimeofday_two_arguments" >&5
15295 $as_echo "$emacs_cv_gettimeofday_two_arguments" >&6; }
15296 if test $emacs_cv_gettimeofday_two_arguments = no
; then
15298 $as_echo "#define GETTIMEOFDAY_ONE_ARGUMENT 1" >>confdefs.h
15305 ac_fn_c_check_func
"$LINENO" "socket" "ac_cv_func_socket"
15306 if test "x$ac_cv_func_socket" = x
""yes; then :
15312 if test $ok_so_far = yes; then
15313 ac_fn_c_check_header_mongrel
"$LINENO" "netinet/in.h" "ac_cv_header_netinet_in_h" "$ac_includes_default"
15314 if test "x$ac_cv_header_netinet_in_h" = x
""yes; then :
15322 if test $ok_so_far = yes; then
15323 ac_fn_c_check_header_mongrel
"$LINENO" "arpa/inet.h" "ac_cv_header_arpa_inet_h" "$ac_includes_default"
15324 if test "x$ac_cv_header_arpa_inet_h" = x
""yes; then :
15332 if test $ok_so_far = yes; then
15334 $as_echo "#define HAVE_INET_SOCKETS 1" >>confdefs.h
15338 if test -f /usr
/lpp
/X11
/bin
/smt.exp
; then
15340 $as_echo "#define HAVE_AIX_SMT_EXP 1" >>confdefs.h
15344 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether system supports dynamic ptys" >&5
15345 $as_echo_n "checking whether system supports dynamic ptys... " >&6; }
15346 if test -d /dev
/pts
&& ls -d /dev
/ptmx
> /dev
/null
2>&1 ; then
15347 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
15348 $as_echo "yes" >&6; }
15350 $as_echo "#define HAVE_DEV_PTMX 1" >>confdefs.h
15353 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15354 $as_echo "no" >&6; }
15357 ac_fn_c_check_type
"$LINENO" "pid_t" "ac_cv_type_pid_t" "$ac_includes_default"
15358 if test "x$ac_cv_type_pid_t" = x
""yes; then :
15362 cat >>confdefs.h
<<_ACEOF
15368 for ac_header
in vfork.h
15370 ac_fn_c_check_header_mongrel
"$LINENO" "vfork.h" "ac_cv_header_vfork_h" "$ac_includes_default"
15371 if test "x$ac_cv_header_vfork_h" = x
""yes; then :
15372 cat >>confdefs.h
<<_ACEOF
15373 #define HAVE_VFORK_H 1
15380 for ac_func
in fork vfork
15382 as_ac_var
=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
15383 ac_fn_c_check_func
"$LINENO" "$ac_func" "$as_ac_var"
15384 eval as_val
=\$
$as_ac_var
15385 if test "x$as_val" = x
""yes; then :
15386 cat >>confdefs.h
<<_ACEOF
15387 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
15393 if test "x$ac_cv_func_fork" = xyes
; then
15394 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working fork" >&5
15395 $as_echo_n "checking for working fork... " >&6; }
15396 if test "${ac_cv_func_fork_works+set}" = set; then :
15397 $as_echo_n "(cached) " >&6
15399 if test "$cross_compiling" = yes; then :
15400 ac_cv_func_fork_works
=cross
15402 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
15403 /* end confdefs.h. */
15404 $ac_includes_default
15409 /* By Ruediger Kuhlmann. */
15410 return fork () < 0;
15416 if ac_fn_c_try_run
"$LINENO"; then :
15417 ac_cv_func_fork_works
=yes
15419 ac_cv_func_fork_works
=no
15421 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
15422 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
15426 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_fork_works" >&5
15427 $as_echo "$ac_cv_func_fork_works" >&6; }
15430 ac_cv_func_fork_works
=$ac_cv_func_fork
15432 if test "x$ac_cv_func_fork_works" = xcross
; then
15434 *-*-amigaos* |
*-*-msdosdjgpp*)
15435 # Override, as these systems have only a dummy fork() stub
15436 ac_cv_func_fork_works
=no
15439 ac_cv_func_fork_works
=yes
15442 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: result $ac_cv_func_fork_works guessed because of cross compilation" >&5
15443 $as_echo "$as_me: WARNING: result $ac_cv_func_fork_works guessed because of cross compilation" >&2;}
15445 ac_cv_func_vfork_works
=$ac_cv_func_vfork
15446 if test "x$ac_cv_func_vfork" = xyes
; then
15447 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working vfork" >&5
15448 $as_echo_n "checking for working vfork... " >&6; }
15449 if test "${ac_cv_func_vfork_works+set}" = set; then :
15450 $as_echo_n "(cached) " >&6
15452 if test "$cross_compiling" = yes; then :
15453 ac_cv_func_vfork_works
=cross
15455 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
15456 /* end confdefs.h. */
15457 /* Thanks to Paul Eggert for this test. */
15458 $ac_includes_default
15459 #include <sys/wait.h>
15460 #ifdef HAVE_VFORK_H
15461 # include <vfork.h>
15463 /* On some sparc systems, changes by the child to local and incoming
15464 argument registers are propagated back to the parent. The compiler
15465 is told about this with #include <vfork.h>, but some compilers
15466 (e.g. gcc -O) don't grok <vfork.h>. Test for this by using a
15467 static variable whose address is put into a register that is
15468 clobbered by the vfork. */
15471 sparc_address_test (int arg)
15473 sparc_address_test (arg) int arg;
15476 static pid_t child;
15494 pid_t parent = getpid ();
15497 sparc_address_test (0);
15502 /* Here is another test for sparc vfork register problems. This
15503 test uses lots of local variables, at least as many local
15504 variables as main has allocated so far including compiler
15505 temporaries. 4 locals are enough for gcc 1.40.3 on a Solaris
15506 4.1.3 sparc, but we use 8 to be safe. A buggy compiler should
15507 reuse the register of parent for one of the local variables,
15508 since it will think that parent can't possibly be used any more
15509 in this routine. Assigning to the local variable will thus
15510 munge parent in the parent process. */
15512 p = getpid(), p1 = getpid(), p2 = getpid(), p3 = getpid(),
15513 p4 = getpid(), p5 = getpid(), p6 = getpid(), p7 = getpid();
15514 /* Convince the compiler that p..p7 are live; otherwise, it might
15515 use the same hardware register for all 8 local variables. */
15516 if (p != p1 || p != p2 || p != p3 || p != p4
15517 || p != p5 || p != p6 || p != p7)
15520 /* On some systems (e.g. IRIX 3.3), vfork doesn't separate parent
15521 from child file descriptors. If the child closes a descriptor
15522 before it execs or exits, this munges the parent's descriptor
15523 as well. Test for this by closing stdout in the child. */
15524 _exit(close(fileno(stdout)) != 0);
15529 while (wait(&status) != child)
15532 /* Was there some problem with vforking? */
15535 /* Did the child fail? (This shouldn't happen.) */
15538 /* Did the vfork/compiler bug occur? */
15539 || parent != getpid()
15541 /* Did the file descriptor bug occur? */
15542 || fstat(fileno(stdout), &st) != 0
15547 if ac_fn_c_try_run
"$LINENO"; then :
15548 ac_cv_func_vfork_works
=yes
15550 ac_cv_func_vfork_works
=no
15552 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
15553 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
15557 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_vfork_works" >&5
15558 $as_echo "$ac_cv_func_vfork_works" >&6; }
15561 if test "x$ac_cv_func_fork_works" = xcross
; then
15562 ac_cv_func_vfork_works
=$ac_cv_func_vfork
15563 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: result $ac_cv_func_vfork_works guessed because of cross compilation" >&5
15564 $as_echo "$as_me: WARNING: result $ac_cv_func_vfork_works guessed because of cross compilation" >&2;}
15567 if test "x$ac_cv_func_vfork_works" = xyes
; then
15569 $as_echo "#define HAVE_WORKING_VFORK 1" >>confdefs.h
15573 $as_echo "#define vfork fork" >>confdefs.h
15576 if test "x$ac_cv_func_fork_works" = xyes
; then
15578 $as_echo "#define HAVE_WORKING_FORK 1" >>confdefs.h
15583 for ac_func
in snprintf
15585 ac_fn_c_check_func
"$LINENO" "snprintf" "ac_cv_func_snprintf"
15586 if test "x$ac_cv_func_snprintf" = x
""yes; then :
15587 cat >>confdefs.h
<<_ACEOF
15588 #define HAVE_SNPRINTF 1
15595 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for nl_langinfo and CODESET" >&5
15596 $as_echo_n "checking for nl_langinfo and CODESET... " >&6; }
15597 if test "${emacs_cv_langinfo_codeset+set}" = set; then :
15598 $as_echo_n "(cached) " >&6
15600 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
15601 /* end confdefs.h. */
15602 #include <langinfo.h>
15606 char* cs = nl_langinfo(CODESET);
15611 if ac_fn_c_try_link
"$LINENO"; then :
15612 emacs_cv_langinfo_codeset
=yes
15614 emacs_cv_langinfo_codeset
=no
15616 rm -f core conftest.err conftest.
$ac_objext \
15617 conftest
$ac_exeext conftest.
$ac_ext
15620 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $emacs_cv_langinfo_codeset" >&5
15621 $as_echo "$emacs_cv_langinfo_codeset" >&6; }
15622 if test $emacs_cv_langinfo_codeset = yes; then
15624 $as_echo "#define HAVE_LANGINFO_CODESET 1" >>confdefs.h
15628 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for mbstate_t" >&5
15629 $as_echo_n "checking for mbstate_t... " >&6; }
15630 if test "${ac_cv_type_mbstate_t+set}" = set; then :
15631 $as_echo_n "(cached) " >&6
15633 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
15634 /* end confdefs.h. */
15635 $ac_includes_default
15636 # include <wchar.h>
15640 mbstate_t x; return sizeof x;
15645 if ac_fn_c_try_compile
"$LINENO"; then :
15646 ac_cv_type_mbstate_t
=yes
15648 ac_cv_type_mbstate_t
=no
15650 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
15652 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_mbstate_t" >&5
15653 $as_echo "$ac_cv_type_mbstate_t" >&6; }
15654 if test $ac_cv_type_mbstate_t = yes; then
15656 $as_echo "#define HAVE_MBSTATE_T 1" >>confdefs.h
15660 $as_echo "#define mbstate_t int" >>confdefs.h
15664 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for C restricted array declarations" >&5
15665 $as_echo_n "checking for C restricted array declarations... " >&6; }
15666 if test "${emacs_cv_c_restrict_arr+set}" = set; then :
15667 $as_echo_n "(cached) " >&6
15669 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
15670 /* end confdefs.h. */
15671 void fred (int x[__restrict]);
15680 if ac_fn_c_try_compile
"$LINENO"; then :
15681 emacs_cv_c_restrict_arr
=yes
15683 emacs_cv_c_restrict_arr
=no
15685 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
15687 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $emacs_cv_c_restrict_arr" >&5
15688 $as_echo "$emacs_cv_c_restrict_arr" >&6; }
15689 if test "$emacs_cv_c_restrict_arr" = yes; then
15691 $as_echo "#define __restrict_arr __restrict" >>confdefs.h
15696 # Set up the CFLAGS for real compilation, so we can substitute it.
15697 CFLAGS
="$REAL_CFLAGS"
15698 CPPFLAGS
="$REAL_CPPFLAGS"
15700 ## Hack to detect a buggy GCC version.
15701 if test "x$GCC" = xyes \
15702 && test x
"`$CC --version 2> /dev/null | grep 'gcc.* 4.5.0'`" != x \
15703 && test x
"`echo $CFLAGS | grep '\-O[23]'`" != x \
15704 && test x
"`echo $CFLAGS | grep '\-fno-optimize-sibling-calls'`" = x
; then
15705 as_fn_error
"GCC 4.5.0 has problems compiling Emacs; see etc/PROBLEMS'." "$LINENO" 5
15708 version
=$PACKAGE_VERSION
15710 ### Specify what sort of things we'll be editing into Makefile and config.h.
15711 ### Use configuration here uncanonicalized to avoid exceeding size limits.
15735 ## FIXME? Nothing uses @LD_SWITCH_X_SITE@.
15736 ## src/Makefile.in did add LD_SWITCH_X_SITE (as a cpp define) to the
15737 ## end of LIBX_BASE, but nothing ever set it.
15742 ## Used in lwlib/Makefile.in.
15744 if test -n "${machfile}"; then
15745 M_FILE
="\$(srcdir)/${machfile}"
15749 S_FILE
="\$(srcdir)/${opsysfile}"
15760 cat >>confdefs.h
<<_ACEOF
15761 #define EMACS_CONFIGURATION "${canonical}"
15765 cat >>confdefs.h
<<_ACEOF
15766 #define EMACS_CONFIG_OPTIONS "${ac_configure_args}"
15769 if test -n "$machfile"; then
15771 cat >>confdefs.h
<<_ACEOF
15772 #define config_machfile "${machfile}"
15777 cat >>confdefs.h
<<_ACEOF
15778 #define config_opsysfile "${opsysfile}"
15785 if test "${HAVE_X_WINDOWS}" = "yes" ; then
15787 $as_echo "#define HAVE_X_WINDOWS 1" >>confdefs.h
15790 XOBJ
="xterm.o xfns.o xselect.o xrdb.o fontset.o xsmfns.o fringe.o image.o xsettings.o xgselect.o"
15792 if test "$HAVE_XFT" = "yes"; then
15793 FONT_OBJ
="$FONT_OBJ ftfont.o xftfont.o ftxfont.o"
15794 elif test "$HAVE_FREETYPE" = "yes"; then
15795 FONT_OBJ
="$FONT_OBJ ftfont.o ftxfont.o"
15805 if test "${USE_X_TOOLKIT}" != "none" ; then
15806 WIDGET_OBJ
=widget.o
15808 $as_echo "#define USE_X_TOOLKIT 1" >>confdefs.h
15810 if test "${USE_X_TOOLKIT}" = "LUCID"; then
15812 $as_echo "#define USE_LUCID 1" >>confdefs.h
15814 elif test "${USE_X_TOOLKIT}" = "MOTIF"; then
15816 $as_echo "#define USE_MOTIF 1" >>confdefs.h
15821 ## Paul Abrahams <abrahams at equinox.shaysnet.com> says this is needed.
15822 MOTIF_LIBW
="$MOTIF_LIBW -lXpm"
15826 ## Richard Anthony Ryan <ryanr at ellingtn.ftc.nrcs.usda.gov>
15827 ## says -lXimp is needed in UNIX_SV ... 4.2 1.1.2.
15828 MOTIF_LIBW
="MOTIF_LIBW -lXimp"
15832 ## olson@mcs.anl.gov says -li18n is needed by -lXm.
15833 MOTIF_LIBW
="$MOTIF_LIBW -li18n"
15836 MOTIF_LIBW
="$MOTIF_LIBW $LIBXP"
15842 case "$USE_X_TOOLKIT" in
15843 MOTIF
) TOOLKIT_LIBW
="$MOTIF_LIBW" ;;
15844 LUCID
) TOOLKIT_LIBW
="$LUCID_LIBW" ;;
15845 none
) test "x$HAVE_GTK" = "xyes" && TOOLKIT_LIBW
="$GTK_LIBS" ;;
15849 if test "$USE_X_TOOLKIT" = "none"; then
15850 LIBXT_OTHER
="\$(LIBXSM)"
15851 OLDXMENU_TARGET
="really-oldXMenu"
15853 LIBXT_OTHER
="\$(LIBXMU) -lXt \$(LIBXTR6) -lXext"
15854 OLDXMENU_TARGET
="really-lwlib"
15858 ## The X Menu stuff is present in the X10 distribution, but missing
15859 ## from X11. If we have X10, just use the installed library;
15860 ## otherwise, use our own copy.
15861 if test "${HAVE_X11}" = "yes" ; then
15863 $as_echo "#define HAVE_X11 1" >>confdefs.h
15866 if test "$USE_X_TOOLKIT" = "none"; then
15867 OLDXMENU
="\${oldXMenudir}/libXMenu11.a"
15869 OLDXMENU
="\${lwlibdir}/liblw.a"
15871 LIBXMENU
="\$(OLDXMENU)"
15872 LIBX_OTHER
="\$(LIBXT) \$(LIBX_EXTRA)"
15873 OLDXMENU_DEPS
="\${OLDXMENU} ../src/\${OLDXMENU}"
15875 ## For a syntactically valid Makefile; not actually used for anything.
15876 ## See comments in src/Makefile.in.
15878 ## FIXME This case (!HAVE_X11 && HAVE_X_WINDOWS) is no longer possible(?).
15879 if test "${HAVE_X_WINDOWS}" = "yes"; then
15888 if test "$HAVE_GTK" = "yes" ||
test "$HAVE_MENUS" != "yes"; then
15901 if test "${HAVE_MENUS}" = "yes" ; then
15903 $as_echo "#define HAVE_MENUS 1" >>confdefs.h
15907 if test "${GNU_MALLOC}" = "yes" ; then
15909 $as_echo "#define GNU_MALLOC 1" >>confdefs.h
15914 if test "${REL_ALLOC}" = "yes" ; then
15916 $as_echo "#define REL_ALLOC 1" >>confdefs.h
15919 test "$system_malloc" != "yes" && RALLOC_OBJ
=ralloc.o
15923 if test "$opsys" = "cygwin"; then
15924 CYGWIN_OBJ
="sheap.o"
15925 ## Cygwin differs because of its unexec().
15927 POST_ALLOC_OBJ
=lastfile.o
15930 PRE_ALLOC_OBJ
=lastfile.o
15937 # Configure gnulib here, now that we know LIBS.
15949 LIBC_FATAL_STDERR_
=1
15950 export LIBC_FATAL_STDERR_
15952 # The Ultrix 4.2 mips builtin alloca declared by alloca.h only works
15953 # for constant arguments. Useless!
15954 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working alloca.h" >&5
15955 $as_echo_n "checking for working alloca.h... " >&6; }
15956 if test "${ac_cv_working_alloca_h+set}" = set; then :
15957 $as_echo_n "(cached) " >&6
15959 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
15960 /* end confdefs.h. */
15961 #include <alloca.h>
15965 char *p = (char *) alloca (2 * sizeof (int));
15971 if ac_fn_c_try_link
"$LINENO"; then :
15972 ac_cv_working_alloca_h
=yes
15974 ac_cv_working_alloca_h
=no
15976 rm -f core conftest.err conftest.
$ac_objext \
15977 conftest
$ac_exeext conftest.
$ac_ext
15979 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_working_alloca_h" >&5
15980 $as_echo "$ac_cv_working_alloca_h" >&6; }
15981 if test $ac_cv_working_alloca_h = yes; then
15983 $as_echo "#define HAVE_ALLOCA_H 1" >>confdefs.h
15987 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for alloca" >&5
15988 $as_echo_n "checking for alloca... " >&6; }
15989 if test "${ac_cv_func_alloca_works+set}" = set; then :
15990 $as_echo_n "(cached) " >&6
15992 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
15993 /* end confdefs.h. */
15995 # define alloca __builtin_alloca
15998 # include <malloc.h>
15999 # define alloca _alloca
16001 # ifdef HAVE_ALLOCA_H
16002 # include <alloca.h>
16007 # ifndef alloca /* predefined by HP cc +Olibcalls */
16018 char *p = (char *) alloca (1);
16024 if ac_fn_c_try_link
"$LINENO"; then :
16025 ac_cv_func_alloca_works
=yes
16027 ac_cv_func_alloca_works
=no
16029 rm -f core conftest.err conftest.
$ac_objext \
16030 conftest
$ac_exeext conftest.
$ac_ext
16032 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_alloca_works" >&5
16033 $as_echo "$ac_cv_func_alloca_works" >&6; }
16035 if test $ac_cv_func_alloca_works = yes; then
16037 $as_echo "#define HAVE_ALLOCA 1" >>confdefs.h
16040 # The SVR3 libPW and SVR4 libucb both contain incompatible functions
16041 # that cause trouble. Some versions do not even contain alloca or
16042 # contain a buggy version. If you still want to use their alloca,
16043 # use ar to extract alloca.o from them instead of compiling alloca.c.
16049 ALLOCA
=\
${LIBOBJDIR}alloca.
$ac_objext
16051 $as_echo "#define C_ALLOCA 1" >>confdefs.h
16054 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether \`alloca.c' needs Cray hooks" >&5
16055 $as_echo_n "checking whether \`alloca.c' needs Cray hooks... " >&6; }
16056 if test "${ac_cv_os_cray+set}" = set; then :
16057 $as_echo_n "(cached) " >&6
16059 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
16060 /* end confdefs.h. */
16061 #if defined CRAY && ! defined CRAY2
16068 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
16069 $EGREP "webecray" >/dev
/null
2>&1; then :
16077 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_os_cray" >&5
16078 $as_echo "$ac_cv_os_cray" >&6; }
16079 if test $ac_cv_os_cray = yes; then
16080 for ac_func
in _getb67 GETB67 getb67
; do
16081 as_ac_var
=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
16082 ac_fn_c_check_func
"$LINENO" "$ac_func" "$as_ac_var"
16083 eval as_val
=\$
$as_ac_var
16084 if test "x$as_val" = x
""yes; then :
16086 cat >>confdefs.h
<<_ACEOF
16087 #define CRAY_STACKSEG_END $ac_func
16096 { $as_echo "$as_me:${as_lineno-$LINENO}: checking stack direction for C alloca" >&5
16097 $as_echo_n "checking stack direction for C alloca... " >&6; }
16098 if test "${ac_cv_c_stack_direction+set}" = set; then :
16099 $as_echo_n "(cached) " >&6
16101 if test "$cross_compiling" = yes; then :
16102 ac_cv_c_stack_direction
=0
16104 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
16105 /* end confdefs.h. */
16106 $ac_includes_default
16108 find_stack_direction (int *addr, int depth)
16110 int dir, dummy = 0;
16113 *addr = addr < &dummy ? 1 : addr == &dummy ? 0 : -1;
16114 dir = depth ? find_stack_direction (addr, depth - 1) : 0;
16115 return dir + dummy;
16119 main (int argc, char **argv)
16121 return find_stack_direction (0, argc + !argv + 20) < 0;
16124 if ac_fn_c_try_run
"$LINENO"; then :
16125 ac_cv_c_stack_direction
=1
16127 ac_cv_c_stack_direction
=-1
16129 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
16130 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
16134 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_stack_direction" >&5
16135 $as_echo "$ac_cv_c_stack_direction" >&6; }
16136 cat >>confdefs.h
<<_ACEOF
16137 #define STACK_DIRECTION $ac_cv_c_stack_direction
16146 for ac_func
in $ac_func_list
16148 as_ac_var
=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
16149 ac_fn_c_check_func
"$LINENO" "$ac_func" "$as_ac_var"
16150 eval as_val
=\$
$as_ac_var
16151 if test "x$as_val" = x
""yes; then :
16152 cat >>confdefs.h
<<_ACEOF
16153 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
16162 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether byte ordering is bigendian" >&5
16163 $as_echo_n "checking whether byte ordering is bigendian... " >&6; }
16164 if test "${ac_cv_c_bigendian+set}" = set; then :
16165 $as_echo_n "(cached) " >&6
16167 ac_cv_c_bigendian
=unknown
16168 # See if we're dealing with a universal compiler.
16169 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
16170 /* end confdefs.h. */
16171 #ifndef __APPLE_CC__
16172 not a universal capable compiler
16177 if ac_fn_c_try_compile
"$LINENO"; then :
16179 # Check for potential -arch flags. It is not universal unless
16180 # there are at least two -arch flags with different values.
16183 for ac_word
in $CC $CFLAGS $CPPFLAGS $LDFLAGS; do
16184 if test -n "$ac_prev"; then
16186 i?
86 | x86_64 | ppc | ppc64
)
16187 if test -z "$ac_arch" ||
test "$ac_arch" = "$ac_word"; then
16190 ac_cv_c_bigendian
=universal
16196 elif test "x$ac_word" = "x-arch"; then
16201 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
16202 if test $ac_cv_c_bigendian = unknown
; then
16203 # See if sys/param.h defines the BYTE_ORDER macro.
16204 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
16205 /* end confdefs.h. */
16206 #include <sys/types.h>
16207 #include <sys/param.h>
16212 #if ! (defined BYTE_ORDER && defined BIG_ENDIAN \
16213 && defined LITTLE_ENDIAN && BYTE_ORDER && BIG_ENDIAN \
16215 bogus endian macros
16222 if ac_fn_c_try_compile
"$LINENO"; then :
16223 # It does; now see whether it defined to BIG_ENDIAN or not.
16224 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
16225 /* end confdefs.h. */
16226 #include <sys/types.h>
16227 #include <sys/param.h>
16232 #if BYTE_ORDER != BIG_ENDIAN
16240 if ac_fn_c_try_compile
"$LINENO"; then :
16241 ac_cv_c_bigendian
=yes
16243 ac_cv_c_bigendian
=no
16245 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
16247 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
16249 if test $ac_cv_c_bigendian = unknown
; then
16250 # See if <limits.h> defines _LITTLE_ENDIAN or _BIG_ENDIAN (e.g., Solaris).
16251 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
16252 /* end confdefs.h. */
16253 #include <limits.h>
16258 #if ! (defined _LITTLE_ENDIAN || defined _BIG_ENDIAN)
16259 bogus endian macros
16266 if ac_fn_c_try_compile
"$LINENO"; then :
16267 # It does; now see whether it defined to _BIG_ENDIAN or not.
16268 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
16269 /* end confdefs.h. */
16270 #include <limits.h>
16275 #ifndef _BIG_ENDIAN
16283 if ac_fn_c_try_compile
"$LINENO"; then :
16284 ac_cv_c_bigendian
=yes
16286 ac_cv_c_bigendian
=no
16288 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
16290 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
16292 if test $ac_cv_c_bigendian = unknown
; then
16293 # Compile a test program.
16294 if test "$cross_compiling" = yes; then :
16295 # Try to guess by grepping values from an object file.
16296 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
16297 /* end confdefs.h. */
16298 short int ascii_mm[] =
16299 { 0x4249, 0x4765, 0x6E44, 0x6961, 0x6E53, 0x7953, 0 };
16300 short int ascii_ii[] =
16301 { 0x694C, 0x5454, 0x656C, 0x6E45, 0x6944, 0x6E61, 0 };
16302 int use_ascii (int i) {
16303 return ascii_mm[i] + ascii_ii[i];
16305 short int ebcdic_ii[] =
16306 { 0x89D3, 0xE3E3, 0x8593, 0x95C5, 0x89C4, 0x9581, 0 };
16307 short int ebcdic_mm[] =
16308 { 0xC2C9, 0xC785, 0x95C4, 0x8981, 0x95E2, 0xA8E2, 0 };
16309 int use_ebcdic (int i) {
16310 return ebcdic_mm[i] + ebcdic_ii[i];
16317 return use_ascii (foo) == use_ebcdic (foo);
16322 if ac_fn_c_try_compile
"$LINENO"; then :
16323 if grep BIGenDianSyS conftest.
$ac_objext >/dev
/null
; then
16324 ac_cv_c_bigendian
=yes
16326 if grep LiTTleEnDian conftest.
$ac_objext >/dev
/null
; then
16327 if test "$ac_cv_c_bigendian" = unknown
; then
16328 ac_cv_c_bigendian
=no
16330 # finding both strings is unlikely to happen, but who knows?
16331 ac_cv_c_bigendian
=unknown
16335 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
16337 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
16338 /* end confdefs.h. */
16339 $ac_includes_default
16344 /* Are we little or big endian? From Harbison&Steele. */
16348 char c[sizeof (long int)];
16351 return u.c[sizeof (long int) - 1] == 1;
16357 if ac_fn_c_try_run
"$LINENO"; then :
16358 ac_cv_c_bigendian
=no
16360 ac_cv_c_bigendian
=yes
16362 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
16363 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
16368 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_bigendian" >&5
16369 $as_echo "$ac_cv_c_bigendian" >&6; }
16370 case $ac_cv_c_bigendian in #(
16372 $as_echo "#define WORDS_BIGENDIAN 1" >>confdefs.h
16378 $as_echo "#define AC_APPLE_UNIVERSAL_BUILD 1" >>confdefs.h
16382 as_fn_error
"unknown endianness
16383 presetting ac_cv_c_bigendian=no (or yes) will help" "$LINENO" 5 ;;
16387 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for inline" >&5
16388 $as_echo_n "checking for inline... " >&6; }
16389 if test "${ac_cv_c_inline+set}" = set; then :
16390 $as_echo_n "(cached) " >&6
16393 for ac_kw
in inline __inline__ __inline
; do
16394 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
16395 /* end confdefs.h. */
16396 #ifndef __cplusplus
16398 static $ac_kw foo_t static_foo () {return 0; }
16399 $ac_kw foo_t foo () {return 0; }
16403 if ac_fn_c_try_compile
"$LINENO"; then :
16404 ac_cv_c_inline
=$ac_kw
16406 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
16407 test "$ac_cv_c_inline" != no
&& break
16411 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_inline" >&5
16412 $as_echo "$ac_cv_c_inline" >&6; }
16414 case $ac_cv_c_inline in
16417 case $ac_cv_c_inline in
16419 *) ac_val
=$ac_cv_c_inline;;
16421 cat >>confdefs.h
<<_ACEOF
16422 #ifndef __cplusplus
16423 #define inline $ac_val
16430 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether strtold conforms to C99" >&5
16431 $as_echo_n "checking whether strtold conforms to C99... " >&6; }
16432 if test "${gl_cv_func_c99_strtold+set}" = set; then :
16433 $as_echo_n "(cached) " >&6
16435 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
16436 /* end confdefs.h. */
16437 /* On HP-UX before 11.23, strtold returns a struct instead of
16438 long double. Reject implementations like that, by requiring
16439 compatibility with the C99 prototype. */
16440 #include <stdlib.h>
16441 static long double (*p) (char const *, char **) = strtold;
16443 test (char const *nptr, char **endptr)
16446 r = strtold (nptr, endptr);
16452 return test ("1.0", NULL) != 1 || p ("1.0", NULL) != 1;
16457 if ac_fn_c_try_link
"$LINENO"; then :
16458 gl_cv_func_c99_strtold
=yes
16460 gl_cv_func_c99_strtold
=no
16462 rm -f core conftest.err conftest.
$ac_objext \
16463 conftest
$ac_exeext conftest.
$ac_ext
16465 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_c99_strtold" >&5
16466 $as_echo "$gl_cv_func_c99_strtold" >&6; }
16467 if test $gl_cv_func_c99_strtold = yes; then
16469 $as_echo "#define HAVE_C99_STRTOLD 1" >>confdefs.h
16481 GNULIB_EUIDACCESS
=0;
16482 GNULIB_FACCESSAT
=0;
16485 GNULIB_FDATASYNC
=0;
16487 GNULIB_FTRUNCATE
=0;
16489 GNULIB_GETDOMAINNAME
=0;
16490 GNULIB_GETDTABLESIZE
=0;
16491 GNULIB_GETGROUPS
=0;
16492 GNULIB_GETHOSTNAME
=0;
16494 GNULIB_GETLOGIN_R
=0;
16495 GNULIB_GETPAGESIZE
=0;
16496 GNULIB_GETUSERSHELL
=0;
16497 GNULIB_GROUP_MEMBER
=0;
16508 GNULIB_READLINKAT
=0;
16512 GNULIB_SYMLINKAT
=0;
16513 GNULIB_TTYNAME_R
=0;
16514 GNULIB_UNISTD_H_GETOPT
=0;
16515 GNULIB_UNISTD_H_NONBLOCKING
=0;
16516 GNULIB_UNISTD_H_SIGPIPE
=0;
16531 HAVE_GETDTABLESIZE
=1;
16533 HAVE_GETHOSTNAME
=1;
16535 HAVE_GETPAGESIZE
=1;
16536 HAVE_GROUP_MEMBER
=1;
16551 HAVE_DECL_ENVIRON
=1;
16552 HAVE_DECL_FCHDIR
=1;
16553 HAVE_DECL_FDATASYNC
=1;
16554 HAVE_DECL_GETDOMAINNAME
=1;
16555 HAVE_DECL_GETLOGIN_R
=1;
16556 HAVE_DECL_GETPAGESIZE
=1;
16557 HAVE_DECL_GETUSERSHELL
=1;
16558 HAVE_DECL_TTYNAME_R
=1;
16560 HAVE_SYS_PARAM_H
=0;
16565 REPLACE_FCHOWNAT
=0;
16567 REPLACE_GETDOMAINNAME
=0;
16568 REPLACE_GETLOGIN_R
=0;
16569 REPLACE_GETGROUPS
=0;
16570 REPLACE_GETPAGESIZE
=0;
16578 REPLACE_READLINK
=0;
16582 REPLACE_TTYNAME_R
=0;
16584 REPLACE_UNLINKAT
=0;
16587 UNISTD_H_HAVE_WINSOCK2_H
=0;
16588 UNISTD_H_HAVE_WINSOCK2_H_AND_USE_SOCKETS
=0;
16591 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for st_dm_mode in struct stat" >&5
16592 $as_echo_n "checking for st_dm_mode in struct stat... " >&6; }
16593 if test "${ac_cv_struct_st_dm_mode+set}" = set; then :
16594 $as_echo_n "(cached) " >&6
16596 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
16597 /* end confdefs.h. */
16599 #include <sys/types.h>
16600 #include <sys/stat.h>
16604 struct stat s; s.st_dm_mode;
16609 if ac_fn_c_try_compile
"$LINENO"; then :
16610 ac_cv_struct_st_dm_mode
=yes
16612 ac_cv_struct_st_dm_mode
=no
16614 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
16616 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_struct_st_dm_mode" >&5
16617 $as_echo "$ac_cv_struct_st_dm_mode" >&6; }
16619 if test $ac_cv_struct_st_dm_mode = yes; then
16621 $as_echo "#define HAVE_ST_DM_MODE 1" >>confdefs.h
16626 ac_fn_c_check_decl
"$LINENO" "strmode" "ac_cv_have_decl_strmode" "$ac_includes_default"
16627 if test "x$ac_cv_have_decl_strmode" = x
""yes; then :
16633 cat >>confdefs.h
<<_ACEOF
16634 #define HAVE_DECL_STRMODE $ac_have_decl
16640 GNULIB_CALLOC_POSIX
=0;
16641 GNULIB_CANONICALIZE_FILE_NAME
=0;
16642 GNULIB_GETLOADAVG
=0;
16643 GNULIB_GETSUBOPT
=0;
16645 GNULIB_MALLOC_POSIX
=0;
16649 GNULIB_MKOSTEMPS
=0;
16655 GNULIB_REALLOC_POSIX
=0;
16662 GNULIB_SYSTEM_POSIX
=0;
16668 HAVE_CANONICALIZE_FILE_NAME
=1;
16669 HAVE_DECL_GETLOADAVG
=1;
16683 HAVE_DECL_SETENV
=1;
16687 HAVE_STRUCT_RANDOM_DATA
=1;
16688 HAVE_SYS_LOADAVG_H
=0;
16690 HAVE_DECL_UNSETENV
=1;
16692 REPLACE_CANONICALIZE_FILE_NAME
=0;
16698 REPLACE_REALPATH
=0;
16701 REPLACE_UNSETENV
=0;
16706 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the preprocessor supports include_next" >&5
16707 $as_echo_n "checking whether the preprocessor supports include_next... " >&6; }
16708 if test "${gl_cv_have_include_next+set}" = set; then :
16709 $as_echo_n "(cached) " >&6
16711 rm -rf conftestd1a conftestd1b conftestd2
16712 mkdir conftestd1a conftestd1b conftestd2
16713 cat <<EOF > conftestd1a/conftest.h
16714 #define DEFINED_IN_CONFTESTD1
16715 #include_next <conftest.h>
16716 #ifdef DEFINED_IN_CONFTESTD2
16719 #error "include_next doesn't work"
16722 cat <<EOF > conftestd1b/conftest.h
16723 #define DEFINED_IN_CONFTESTD1
16725 #include_next <conftest.h>
16726 #ifdef DEFINED_IN_CONFTESTD2
16729 #error "include_next doesn't work"
16732 cat <<EOF > conftestd2/conftest.h
16733 #ifndef DEFINED_IN_CONFTESTD1
16734 #error "include_next test doesn't work"
16736 #define DEFINED_IN_CONFTESTD2
16738 gl_save_CPPFLAGS
="$CPPFLAGS"
16739 CPPFLAGS
="$gl_save_CPPFLAGS -Iconftestd1b -Iconftestd2"
16740 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
16741 /* end confdefs.h. */
16742 #include <conftest.h>
16744 if ac_fn_c_try_compile
"$LINENO"; then :
16745 gl_cv_have_include_next
=yes
16747 CPPFLAGS
="$gl_save_CPPFLAGS -Iconftestd1a -Iconftestd2"
16748 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
16749 /* end confdefs.h. */
16750 #include <conftest.h>
16752 if ac_fn_c_try_compile
"$LINENO"; then :
16753 gl_cv_have_include_next
=buggy
16755 gl_cv_have_include_next
=no
16757 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
16760 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
16761 CPPFLAGS
="$gl_save_CPPFLAGS"
16762 rm -rf conftestd1a conftestd1b conftestd2
16765 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_have_include_next" >&5
16766 $as_echo "$gl_cv_have_include_next" >&6; }
16767 PRAGMA_SYSTEM_HEADER
=
16768 if test $gl_cv_have_include_next = yes; then
16769 INCLUDE_NEXT
=include_next
16770 INCLUDE_NEXT_AS_FIRST_DIRECTIVE
=include_next
16771 if test -n "$GCC"; then
16772 PRAGMA_SYSTEM_HEADER
='#pragma GCC system_header'
16775 if test $gl_cv_have_include_next = buggy
; then
16776 INCLUDE_NEXT
=include
16777 INCLUDE_NEXT_AS_FIRST_DIRECTIVE
=include_next
16779 INCLUDE_NEXT
=include
16780 INCLUDE_NEXT_AS_FIRST_DIRECTIVE
=include
16786 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether system header files limit the line length" >&5
16787 $as_echo_n "checking whether system header files limit the line length... " >&6; }
16788 if test "${gl_cv_pragma_columns+set}" = set; then :
16789 $as_echo_n "(cached) " >&6
16791 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
16792 /* end confdefs.h. */
16799 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
16800 $EGREP "choke me" >/dev
/null
2>&1; then :
16801 gl_cv_pragma_columns
=yes
16803 gl_cv_pragma_columns
=no
16809 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_pragma_columns" >&5
16810 $as_echo "$gl_cv_pragma_columns" >&6; }
16811 if test $gl_cv_pragma_columns = yes; then
16812 PRAGMA_COLUMNS
="#pragma COLUMNS 10000"
16833 if test $gl_cv_have_include_next = yes; then
16834 gl_cv_next_getopt_h
='<'getopt.h
'>'
16836 { $as_echo "$as_me:${as_lineno-$LINENO}: checking absolute name of <getopt.h>" >&5
16837 $as_echo_n "checking absolute name of <getopt.h>... " >&6; }
16838 if test "${gl_cv_next_getopt_h+set}" = set; then :
16839 $as_echo_n "(cached) " >&6
16842 if test $ac_cv_header_getopt_h = yes; then
16845 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
16846 /* end confdefs.h. */
16847 #include <getopt.h>
16851 aix
*) gl_absname_cpp
="$ac_cpp -C" ;;
16852 *) gl_absname_cpp
="$ac_cpp" ;;
16857 gl_dirsep_regex
='[/\\]'
16860 gl_dirsep_regex
='/'
16864 gl_absolute_header_sed
='\|'"${gl_dirsep_regex}"'getopt.h|{
16865 s|.*"\(.*'"${gl_dirsep_regex}"'getopt.h\)".*|\1|
16870 gl_cv_next_getopt_h
='"'`(eval "$gl_absname_cpp conftest.$ac_ext") 2>&5 |
16871 sed -n "$gl_absolute_header_sed"`'"'
16873 gl_cv_next_getopt_h
='<'getopt.h
'>'
16878 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_next_getopt_h" >&5
16879 $as_echo "$gl_cv_next_getopt_h" >&6; }
16881 NEXT_GETOPT_H
=$gl_cv_next_getopt_h
16883 if test $gl_cv_have_include_next = yes ||
test $gl_cv_have_include_next = buggy
; then
16884 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include_next'
16885 gl_next_as_first_directive
='<'getopt.h
'>'
16887 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include'
16888 gl_next_as_first_directive
=$gl_cv_next_getopt_h
16890 NEXT_AS_FIRST_DIRECTIVE_GETOPT_H
=$gl_next_as_first_directive
16895 if test $ac_cv_header_getopt_h = yes; then
16904 if test -z "$gl_replace_getopt" && test $gl_getopt_required = GNU
; then
16905 for ac_header
in getopt.h
16907 ac_fn_c_check_header_mongrel
"$LINENO" "getopt.h" "ac_cv_header_getopt_h" "$ac_includes_default"
16908 if test "x$ac_cv_header_getopt_h" = x
""yes; then :
16909 cat >>confdefs.h
<<_ACEOF
16910 #define HAVE_GETOPT_H 1
16914 gl_replace_getopt
=yes
16921 if test -z "$gl_replace_getopt" && test $gl_getopt_required = GNU
; then
16922 for ac_func
in getopt_long_only
16924 ac_fn_c_check_func
"$LINENO" "getopt_long_only" "ac_cv_func_getopt_long_only"
16925 if test "x$ac_cv_func_getopt_long_only" = x
""yes; then :
16926 cat >>confdefs.h
<<_ACEOF
16927 #define HAVE_GETOPT_LONG_ONLY 1
16931 gl_replace_getopt
=yes
16937 if test -z "$gl_replace_getopt"; then
16938 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether getopt is POSIX compatible" >&5
16939 $as_echo_n "checking whether getopt is POSIX compatible... " >&6; }
16940 if test "${gl_cv_func_getopt_posix+set}" = set; then :
16941 $as_echo_n "(cached) " >&6
16944 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
16945 /* end confdefs.h. */
16946 #include <unistd.h>
16950 int *p = &optreset; return optreset;
16955 if ac_fn_c_try_link
"$LINENO"; then :
16958 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
16959 /* end confdefs.h. */
16960 #include <getopt.h>
16964 return !getopt_clip;
16969 if ac_fn_c_try_compile
"$LINENO"; then :
16974 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
16976 rm -f core conftest.err conftest.
$ac_objext \
16977 conftest
$ac_exeext conftest.
$ac_ext
16979 gl_save_CPPFLAGS
=$CPPFLAGS
16980 CPPFLAGS
="$CPPFLAGS -DOPTIND_MIN=$gl_optind_min"
16981 if test "$cross_compiling" = yes; then :
16983 mingw
*) gl_cv_func_getopt_posix
="guessing no";;
16984 darwin
* | aix
*) gl_cv_func_getopt_posix
="guessing no";;
16985 *) gl_cv_func_getopt_posix
="guessing yes";;
16989 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
16990 /* end confdefs.h. */
16992 #include <unistd.h>
16993 #include <stdlib.h>
16994 #include <string.h>
17000 static char program[] = "program";
17001 static char a[] = "-a";
17002 static char foo[] = "foo";
17003 static char bar[] = "bar";
17004 char *argv[] = { program, a, foo, bar, NULL };
17007 optind = OPTIND_MIN;
17010 c = getopt (4, argv, "ab");
17013 c = getopt (4, argv, "ab");
17016 if (!(optind == 2))
17019 /* Some internal state exists at this point. */
17021 static char program[] = "program";
17022 static char donald[] = "donald";
17023 static char p[] = "-p";
17024 static char billy[] = "billy";
17025 static char duck[] = "duck";
17026 static char a[] = "-a";
17027 static char bar[] = "bar";
17028 char *argv[] = { program, donald, p, billy, duck, a, bar, NULL };
17031 optind = OPTIND_MIN;
17034 c = getopt (7, argv, "+abp:q:");
17037 if (!(strcmp (argv[0], "program") == 0))
17039 if (!(strcmp (argv[1], "donald") == 0))
17041 if (!(strcmp (argv[2], "-p") == 0))
17043 if (!(strcmp (argv[3], "billy") == 0))
17045 if (!(strcmp (argv[4], "duck") == 0))
17047 if (!(strcmp (argv[5], "-a") == 0))
17049 if (!(strcmp (argv[6], "bar") == 0))
17051 if (!(optind == 1))
17054 /* Detect MacOS 10.5, AIX 7.1 bug. */
17056 static char program[] = "program";
17057 static char ab[] = "-ab";
17058 char *argv[3] = { program, ab, NULL };
17059 optind = OPTIND_MIN;
17061 if (getopt (2, argv, "ab:") != 'a')
17063 if (getopt (2, argv, "ab:") != '?')
17075 if ac_fn_c_try_run
"$LINENO"; then :
17076 gl_cv_func_getopt_posix
=yes
17078 gl_cv_func_getopt_posix
=no
17080 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
17081 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
17084 CPPFLAGS
=$gl_save_CPPFLAGS
17087 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_getopt_posix" >&5
17088 $as_echo "$gl_cv_func_getopt_posix" >&6; }
17089 case "$gl_cv_func_getopt_posix" in
17090 *no
) gl_replace_getopt
=yes ;;
17094 if test -z "$gl_replace_getopt" && test $gl_getopt_required = GNU
; then
17095 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working GNU getopt function" >&5
17096 $as_echo_n "checking for working GNU getopt function... " >&6; }
17097 if test "${gl_cv_func_getopt_gnu+set}" = set; then :
17098 $as_echo_n "(cached) " >&6
17100 # Even with POSIXLY_CORRECT, the GNU extension of leading '-' in the
17101 # optstring is necessary for programs like m4 that have POSIX-mandated
17102 # semantics for supporting options interspersed with files.
17103 # Also, since getopt_long is a GNU extension, we require optind=0.
17104 # Bash ties 'set -o posix' to a non-exported POSIXLY_CORRECT;
17105 # so take care to revert to the correct (non-)export state.
17106 gl_awk_probe
='BEGIN { if ("POSIXLY_CORRECT" in ENVIRON) print "x" }'
17107 case ${POSIXLY_CORRECT+x}`$AWK "$gl_awk_probe" </dev/null` in
17108 xx
) gl_had_POSIXLY_CORRECT
=exported
;;
17109 x
) gl_had_POSIXLY_CORRECT
=yes ;;
17110 *) gl_had_POSIXLY_CORRECT
= ;;
17113 export POSIXLY_CORRECT
17114 if test "$cross_compiling" = yes; then :
17115 case $host_os:$ac_cv_have_decl_optreset in
17116 *-gnu*:* | mingw
*:*) gl_cv_func_getopt_gnu
=no
;;
17117 *:yes) gl_cv_func_getopt_gnu
=no
;;
17118 *) gl_cv_func_getopt_gnu
=yes;;
17122 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
17123 /* end confdefs.h. */
17124 #include <getopt.h>
17125 #include <stddef.h>
17126 #include <string.h>
17128 #include <stdlib.h>
17129 #if defined __MACH__ && defined __APPLE__
17130 /* Avoid a crash on MacOS X. */
17131 #include <mach/mach.h>
17132 #include <mach/mach_error.h>
17133 #include <mach/thread_status.h>
17134 #include <mach/exception.h>
17135 #include <mach/task.h>
17136 #include <pthread.h>
17137 /* The exception port on which our thread listens. */
17138 static mach_port_t our_exception_port;
17139 /* The main function of the thread listening for exceptions of type
17142 mach_exception_thread (void *arg)
17144 /* Buffer for a message to be received. */
17146 mach_msg_header_t head;
17147 mach_msg_body_t msgh_body;
17150 mach_msg_return_t retval;
17151 /* Wait for a message on the exception port. */
17152 retval = mach_msg (&msg.head, MACH_RCV_MSG | MACH_RCV_LARGE, 0, sizeof (msg),
17153 our_exception_port, MACH_MSG_TIMEOUT_NONE, MACH_PORT_NULL);
17154 if (retval != MACH_MSG_SUCCESS)
17159 nocrash_init (void)
17161 mach_port_t self = mach_task_self ();
17162 /* Allocate a port on which the thread shall listen for exceptions. */
17163 if (mach_port_allocate (self, MACH_PORT_RIGHT_RECEIVE, &our_exception_port)
17165 /* See http://web.mit.edu/darwin/src/modules/xnu/osfmk/man/mach_port_insert_right.html. */
17166 if (mach_port_insert_right (self, our_exception_port, our_exception_port,
17167 MACH_MSG_TYPE_MAKE_SEND)
17169 /* The exceptions we want to catch. Only EXC_BAD_ACCESS is interesting
17171 exception_mask_t mask = EXC_MASK_BAD_ACCESS;
17172 /* Create the thread listening on the exception port. */
17173 pthread_attr_t attr;
17175 if (pthread_attr_init (&attr) == 0
17176 && pthread_attr_setdetachstate (&attr, PTHREAD_CREATE_DETACHED) == 0
17177 && pthread_create (&thread, &attr, mach_exception_thread, NULL) == 0) {
17178 pthread_attr_destroy (&attr);
17179 /* Replace the exception port info for these exceptions with our own.
17180 Note that we replace the exception port for the entire task, not only
17181 for a particular thread. This has the effect that when our exception
17182 port gets the message, the thread specific exception port has already
17183 been asked, and we don't need to bother about it.
17184 See http://web.mit.edu/darwin/src/modules/xnu/osfmk/man/task_set_exception_ports.html. */
17185 task_set_exception_ports (self, mask, our_exception_port,
17186 EXCEPTION_DEFAULT, MACHINE_THREAD_STATE);
17191 #elif (defined _WIN32 || defined __WIN32__) && ! defined __CYGWIN__
17192 /* Avoid a crash on native Windows. */
17193 #define WIN32_LEAN_AND_MEAN
17194 #include <windows.h>
17195 #include <winerror.h>
17197 exception_filter (EXCEPTION_POINTERS *ExceptionInfo)
17199 switch (ExceptionInfo->ExceptionRecord->ExceptionCode)
17201 case EXCEPTION_ACCESS_VIOLATION:
17202 case EXCEPTION_IN_PAGE_ERROR:
17203 case EXCEPTION_STACK_OVERFLOW:
17204 case EXCEPTION_GUARD_PAGE:
17205 case EXCEPTION_PRIV_INSTRUCTION:
17206 case EXCEPTION_ILLEGAL_INSTRUCTION:
17207 case EXCEPTION_DATATYPE_MISALIGNMENT:
17208 case EXCEPTION_ARRAY_BOUNDS_EXCEEDED:
17209 case EXCEPTION_NONCONTINUABLE_EXCEPTION:
17212 return EXCEPTION_CONTINUE_SEARCH;
17215 nocrash_init (void)
17217 SetUnhandledExceptionFilter ((LPTOP_LEVEL_EXCEPTION_FILTER) exception_filter);
17220 /* Avoid a crash on POSIX systems. */
17221 #include <signal.h>
17222 /* A POSIX signal handler. */
17224 exception_handler (int sig)
17229 nocrash_init (void)
17232 signal (SIGSEGV, exception_handler);
17235 signal (SIGBUS, exception_handler);
17249 /* This code succeeds on glibc 2.8, OpenBSD 4.0, Cygwin, mingw,
17250 and fails on MacOS X 10.5, AIX 5.2, HP-UX 11, IRIX 6.5,
17251 OSF/1 5.1, Solaris 10. */
17253 static char conftest[] = "conftest";
17254 static char plus[] = "-+";
17255 char *argv[3] = { conftest, plus, NULL };
17257 if (getopt (2, argv, "+a") != '?')
17260 /* This code succeeds on glibc 2.8, mingw,
17261 and fails on MacOS X 10.5, OpenBSD 4.0, AIX 5.2, HP-UX 11,
17262 IRIX 6.5, OSF/1 5.1, Solaris 10, Cygwin 1.5.x. */
17264 static char program[] = "program";
17265 static char p[] = "-p";
17266 static char foo[] = "foo";
17267 static char bar[] = "bar";
17268 char *argv[] = { program, p, foo, bar, NULL };
17271 if (getopt (4, argv, "p::") != 'p')
17273 else if (optarg != NULL)
17275 else if (getopt (4, argv, "p::") != -1)
17277 else if (optind != 2)
17280 /* This code succeeds on glibc 2.8 and fails on Cygwin 1.7.0. */
17282 static char program[] = "program";
17283 static char foo[] = "foo";
17284 static char p[] = "-p";
17285 char *argv[] = { program, foo, p, NULL };
17287 if (getopt (3, argv, "-p") != 1)
17289 else if (getopt (3, argv, "-p") != 'p')
17292 /* This code fails on glibc 2.11. */
17294 static char program[] = "program";
17295 static char b[] = "-b";
17296 static char a[] = "-a";
17297 char *argv[] = { program, b, a, NULL };
17298 optind = opterr = 0;
17299 if (getopt (3, argv, "+:a:b") != 'b')
17301 else if (getopt (3, argv, "+:a:b") != ':')
17304 /* This code dumps core on glibc 2.14. */
17306 static char program[] = "program";
17307 static char w[] = "-W";
17308 static char dummy[] = "dummy";
17309 char *argv[] = { program, w, dummy, NULL };
17310 optind = opterr = 1;
17311 if (getopt (3, argv, "W;") != 'W')
17320 if ac_fn_c_try_run
"$LINENO"; then :
17321 gl_cv_func_getopt_gnu
=yes
17323 gl_cv_func_getopt_gnu
=no
17325 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
17326 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
17329 case $gl_had_POSIXLY_CORRECT in
17331 yes) { POSIXLY_CORRECT
=; unset POSIXLY_CORRECT
;}; POSIXLY_CORRECT
=1 ;;
17332 *) { POSIXLY_CORRECT
=; unset POSIXLY_CORRECT
;} ;;
17336 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_getopt_gnu" >&5
17337 $as_echo "$gl_cv_func_getopt_gnu" >&6; }
17338 if test "$gl_cv_func_getopt_gnu" = "no"; then
17339 gl_replace_getopt
=yes
17350 if test -n "$gl_replace_getopt"; then :
17357 if test $REPLACE_GETOPT = 1; then
17361 $as_echo "#define __GETOPT_PREFIX rpl_" >>confdefs.h
17365 GNULIB_UNISTD_H_GETOPT
=1
17368 ac_fn_c_check_decl
"$LINENO" "getenv" "ac_cv_have_decl_getenv" "$ac_includes_default"
17369 if test "x$ac_cv_have_decl_getenv" = x
""yes; then :
17375 cat >>confdefs.h
<<_ACEOF
17376 #define HAVE_DECL_GETENV $ac_have_decl
17380 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for unsigned long long int" >&5
17381 $as_echo_n "checking for unsigned long long int... " >&6; }
17382 if test "${ac_cv_type_unsigned_long_long_int+set}" = set; then :
17383 $as_echo_n "(cached) " >&6
17385 ac_cv_type_unsigned_long_long_int
=yes
17386 if test "x${ac_cv_prog_cc_c99-no}" = xno
; then
17387 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
17388 /* end confdefs.h. */
17390 /* For now, do not test the preprocessor; as of 2007 there are too many
17391 implementations with broken preprocessors. Perhaps this can
17392 be revisited in 2012. In the meantime, code should not expect
17393 #if to work with literals wider than 32 bits. */
17394 /* Test literals. */
17395 long long int ll = 9223372036854775807ll;
17396 long long int nll = -9223372036854775807LL;
17397 unsigned long long int ull = 18446744073709551615ULL;
17398 /* Test constant expressions. */
17399 typedef int a[((-9223372036854775807LL < 0 && 0 < 9223372036854775807ll)
17401 typedef int b[(18446744073709551615ULL <= (unsigned long long int) -1
17407 /* Test availability of runtime routines for shift and division. */
17408 long long int llmax = 9223372036854775807ll;
17409 unsigned long long int ullmax = 18446744073709551615ull;
17410 return ((ll << 63) | (ll >> 63) | (ll < i) | (ll > i)
17411 | (llmax / ll) | (llmax % ll)
17412 | (ull << 63) | (ull >> 63) | (ull << i) | (ull >> i)
17413 | (ullmax / ull) | (ullmax % ull));
17419 if ac_fn_c_try_link
"$LINENO"; then :
17422 ac_cv_type_unsigned_long_long_int
=no
17424 rm -f core conftest.err conftest.
$ac_objext \
17425 conftest
$ac_exeext conftest.
$ac_ext
17428 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_unsigned_long_long_int" >&5
17429 $as_echo "$ac_cv_type_unsigned_long_long_int" >&6; }
17430 if test $ac_cv_type_unsigned_long_long_int = yes; then
17432 $as_echo "#define HAVE_UNSIGNED_LONG_LONG_INT 1" >>confdefs.h
17438 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for long long int" >&5
17439 $as_echo_n "checking for long long int... " >&6; }
17440 if test "${ac_cv_type_long_long_int+set}" = set; then :
17441 $as_echo_n "(cached) " >&6
17443 ac_cv_type_long_long_int
=yes
17444 if test "x${ac_cv_prog_cc_c99-no}" = xno
; then
17445 ac_cv_type_long_long_int
=$ac_cv_type_unsigned_long_long_int
17446 if test $ac_cv_type_long_long_int = yes; then
17447 if test "$cross_compiling" = yes; then :
17450 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
17451 /* end confdefs.h. */
17452 #include <limits.h>
17455 (1LL << (sizeof (long long int) * CHAR_BIT - 2))
17456 # define LLONG_MAX (HALF - 1 + HALF)
17461 long long int n = 1;
17465 long long int m = n << i;
17468 if (LLONG_MAX / 2 < m)
17476 if ac_fn_c_try_run
"$LINENO"; then :
17479 ac_cv_type_long_long_int
=no
17481 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
17482 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
17488 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_long_long_int" >&5
17489 $as_echo "$ac_cv_type_long_long_int" >&6; }
17490 if test $ac_cv_type_long_long_int = yes; then
17492 $as_echo "#define HAVE_LONG_LONG_INT 1" >>confdefs.h
17501 gl_cv_c_multiarch
=no
17502 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
17503 /* end confdefs.h. */
17504 #ifndef __APPLE_CC__
17505 not a universal capable compiler
17510 if ac_fn_c_try_compile
"$LINENO"; then :
17514 for word
in ${CC} ${CFLAGS} ${CPPFLAGS} ${LDFLAGS}; do
17515 if test -n "$prev"; then
17517 i?
86 | x86_64 | ppc | ppc64
)
17518 if test -z "$arch" ||
test "$arch" = "$word"; then
17521 gl_cv_c_multiarch
=yes
17527 if test "x$word" = "x-arch"; then
17534 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
17535 if test $gl_cv_c_multiarch = yes; then
17536 APPLE_UNIVERSAL_BUILD
=1
17538 APPLE_UNIVERSAL_BUILD
=0
17545 if test $ac_cv_type_long_long_int = yes; then
17546 HAVE_LONG_LONG_INT
=1
17548 HAVE_LONG_LONG_INT
=0
17552 if test $ac_cv_type_unsigned_long_long_int = yes; then
17553 HAVE_UNSIGNED_LONG_LONG_INT
=1
17555 HAVE_UNSIGNED_LONG_LONG_INT
=0
17560 if test $ac_cv_header_wchar_h = yes; then
17567 if test $ac_cv_header_inttypes_h = yes; then
17574 if test $ac_cv_header_sys_types_h = yes; then
17590 if test $gl_cv_have_include_next = yes; then
17591 gl_cv_next_stdint_h
='<'stdint.h
'>'
17593 { $as_echo "$as_me:${as_lineno-$LINENO}: checking absolute name of <stdint.h>" >&5
17594 $as_echo_n "checking absolute name of <stdint.h>... " >&6; }
17595 if test "${gl_cv_next_stdint_h+set}" = set; then :
17596 $as_echo_n "(cached) " >&6
17599 if test $ac_cv_header_stdint_h = yes; then
17602 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
17603 /* end confdefs.h. */
17604 #include <stdint.h>
17608 aix
*) gl_absname_cpp
="$ac_cpp -C" ;;
17609 *) gl_absname_cpp
="$ac_cpp" ;;
17614 gl_dirsep_regex
='[/\\]'
17617 gl_dirsep_regex
='/'
17621 gl_absolute_header_sed
='\|'"${gl_dirsep_regex}"'stdint.h|{
17622 s|.*"\(.*'"${gl_dirsep_regex}"'stdint.h\)".*|\1|
17627 gl_cv_next_stdint_h
='"'`(eval "$gl_absname_cpp conftest.$ac_ext") 2>&5 |
17628 sed -n "$gl_absolute_header_sed"`'"'
17630 gl_cv_next_stdint_h
='<'stdint.h
'>'
17635 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_next_stdint_h" >&5
17636 $as_echo "$gl_cv_next_stdint_h" >&6; }
17638 NEXT_STDINT_H
=$gl_cv_next_stdint_h
17640 if test $gl_cv_have_include_next = yes ||
test $gl_cv_have_include_next = buggy
; then
17641 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include_next'
17642 gl_next_as_first_directive
='<'stdint.h
'>'
17644 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include'
17645 gl_next_as_first_directive
=$gl_cv_next_stdint_h
17647 NEXT_AS_FIRST_DIRECTIVE_STDINT_H
=$gl_next_as_first_directive
17652 if test $ac_cv_header_stdint_h = yes; then
17659 if test $ac_cv_header_stdint_h = yes; then
17660 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stdint.h conforms to C99" >&5
17661 $as_echo_n "checking whether stdint.h conforms to C99... " >&6; }
17662 if test "${gl_cv_header_working_stdint_h+set}" = set; then :
17663 $as_echo_n "(cached) " >&6
17665 gl_cv_header_working_stdint_h
=no
17666 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
17667 /* end confdefs.h. */
17670 #define __STDC_LIMIT_MACROS 1 /* to make it work also in C++ mode */
17671 #define __STDC_CONSTANT_MACROS 1 /* to make it work also in C++ mode */
17672 #define _GL_JUST_INCLUDE_SYSTEM_STDINT_H 1 /* work if build isn't clean */
17673 #include <stdint.h>
17674 /* Dragonfly defines WCHAR_MIN, WCHAR_MAX only in <wchar.h>. */
17675 #if !(defined WCHAR_MIN && defined WCHAR_MAX)
17676 #error "WCHAR_MIN, WCHAR_MAX not defined in <stdint.h>"
17680 /* BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be
17681 included before <wchar.h>. */
17682 #include <stddef.h>
17683 #include <signal.h>
17685 # include <stdio.h>
17687 # include <wchar.h>
17692 int8_t a1 = INT8_MAX;
17693 int8_t a1min = INT8_MIN;
17696 int16_t a2 = INT16_MAX;
17697 int16_t a2min = INT16_MIN;
17700 int32_t a3 = INT32_MAX;
17701 int32_t a3min = INT32_MIN;
17704 int64_t a4 = INT64_MAX;
17705 int64_t a4min = INT64_MIN;
17708 uint8_t b1 = UINT8_MAX;
17710 typedef int b1[(unsigned char) -1 != 255 ? 1 : -1];
17713 uint16_t b2 = UINT16_MAX;
17716 uint32_t b3 = UINT32_MAX;
17719 uint64_t b4 = UINT64_MAX;
17721 int_least8_t c1 = INT8_C (0x7f);
17722 int_least8_t c1max = INT_LEAST8_MAX;
17723 int_least8_t c1min = INT_LEAST8_MIN;
17724 int_least16_t c2 = INT16_C (0x7fff);
17725 int_least16_t c2max = INT_LEAST16_MAX;
17726 int_least16_t c2min = INT_LEAST16_MIN;
17727 int_least32_t c3 = INT32_C (0x7fffffff);
17728 int_least32_t c3max = INT_LEAST32_MAX;
17729 int_least32_t c3min = INT_LEAST32_MIN;
17730 int_least64_t c4 = INT64_C (0x7fffffffffffffff);
17731 int_least64_t c4max = INT_LEAST64_MAX;
17732 int_least64_t c4min = INT_LEAST64_MIN;
17733 uint_least8_t d1 = UINT8_C (0xff);
17734 uint_least8_t d1max = UINT_LEAST8_MAX;
17735 uint_least16_t d2 = UINT16_C (0xffff);
17736 uint_least16_t d2max = UINT_LEAST16_MAX;
17737 uint_least32_t d3 = UINT32_C (0xffffffff);
17738 uint_least32_t d3max = UINT_LEAST32_MAX;
17739 uint_least64_t d4 = UINT64_C (0xffffffffffffffff);
17740 uint_least64_t d4max = UINT_LEAST64_MAX;
17741 int_fast8_t e1 = INT_FAST8_MAX;
17742 int_fast8_t e1min = INT_FAST8_MIN;
17743 int_fast16_t e2 = INT_FAST16_MAX;
17744 int_fast16_t e2min = INT_FAST16_MIN;
17745 int_fast32_t e3 = INT_FAST32_MAX;
17746 int_fast32_t e3min = INT_FAST32_MIN;
17747 int_fast64_t e4 = INT_FAST64_MAX;
17748 int_fast64_t e4min = INT_FAST64_MIN;
17749 uint_fast8_t f1 = UINT_FAST8_MAX;
17750 uint_fast16_t f2 = UINT_FAST16_MAX;
17751 uint_fast32_t f3 = UINT_FAST32_MAX;
17752 uint_fast64_t f4 = UINT_FAST64_MAX;
17754 intptr_t g = INTPTR_MAX;
17755 intptr_t gmin = INTPTR_MIN;
17758 uintptr_t h = UINTPTR_MAX;
17760 intmax_t i = INTMAX_MAX;
17761 uintmax_t j = UINTMAX_MAX;
17763 #include <limits.h> /* for CHAR_BIT */
17764 #define TYPE_MINIMUM(t) \
17765 ((t) ((t) 0 < (t) -1 ? (t) 0 : ~ TYPE_MAXIMUM (t)))
17766 #define TYPE_MAXIMUM(t) \
17767 ((t) ((t) 0 < (t) -1 \
17769 : ((((t) 1 << (sizeof (t) * CHAR_BIT - 2)) - 1) * 2 + 1)))
17772 PTRDIFF_MIN == TYPE_MINIMUM (ptrdiff_t)
17773 && PTRDIFF_MAX == TYPE_MAXIMUM (ptrdiff_t)
17775 /* Detect bug in FreeBSD 6.0 / ia64. */
17776 int check_SIG_ATOMIC:
17777 SIG_ATOMIC_MIN == TYPE_MINIMUM (sig_atomic_t)
17778 && SIG_ATOMIC_MAX == TYPE_MAXIMUM (sig_atomic_t)
17780 int check_SIZE: SIZE_MAX == TYPE_MAXIMUM (size_t) ? 1 : -1;
17782 WCHAR_MIN == TYPE_MINIMUM (wchar_t)
17783 && WCHAR_MAX == TYPE_MAXIMUM (wchar_t)
17785 /* Detect bug in mingw. */
17787 WINT_MIN == TYPE_MINIMUM (wint_t)
17788 && WINT_MAX == TYPE_MAXIMUM (wint_t)
17791 /* Detect bugs in glibc 2.4 and Solaris 10 stdint.h, among others. */
17793 (-1 < UINT8_C (0)) == (-1 < (uint_least8_t) 0) ? 1 : -1;
17794 int check_UINT16_C:
17795 (-1 < UINT16_C (0)) == (-1 < (uint_least16_t) 0) ? 1 : -1;
17797 /* Detect bugs in OpenBSD 3.9 stdint.h. */
17799 int check_uint8: (uint8_t) -1 == UINT8_MAX ? 1 : -1;
17802 int check_uint16: (uint16_t) -1 == UINT16_MAX ? 1 : -1;
17805 int check_uint32: (uint32_t) -1 == UINT32_MAX ? 1 : -1;
17808 int check_uint64: (uint64_t) -1 == UINT64_MAX ? 1 : -1;
17810 int check_uint_least8: (uint_least8_t) -1 == UINT_LEAST8_MAX ? 1 : -1;
17811 int check_uint_least16: (uint_least16_t) -1 == UINT_LEAST16_MAX ? 1 : -1;
17812 int check_uint_least32: (uint_least32_t) -1 == UINT_LEAST32_MAX ? 1 : -1;
17813 int check_uint_least64: (uint_least64_t) -1 == UINT_LEAST64_MAX ? 1 : -1;
17814 int check_uint_fast8: (uint_fast8_t) -1 == UINT_FAST8_MAX ? 1 : -1;
17815 int check_uint_fast16: (uint_fast16_t) -1 == UINT_FAST16_MAX ? 1 : -1;
17816 int check_uint_fast32: (uint_fast32_t) -1 == UINT_FAST32_MAX ? 1 : -1;
17817 int check_uint_fast64: (uint_fast64_t) -1 == UINT_FAST64_MAX ? 1 : -1;
17818 int check_uintptr: (uintptr_t) -1 == UINTPTR_MAX ? 1 : -1;
17819 int check_uintmax: (uintmax_t) -1 == UINTMAX_MAX ? 1 : -1;
17820 int check_size: (size_t) -1 == SIZE_MAX ? 1 : -1;
17831 if ac_fn_c_try_compile
"$LINENO"; then :
17832 if test "$cross_compiling" = yes; then :
17833 gl_cv_header_working_stdint_h
=yes
17836 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
17837 /* end confdefs.h. */
17840 #define __STDC_LIMIT_MACROS 1 /* to make it work also in C++ mode */
17841 #define __STDC_CONSTANT_MACROS 1 /* to make it work also in C++ mode */
17842 #define _GL_JUST_INCLUDE_SYSTEM_STDINT_H 1 /* work if build isn't clean */
17843 #include <stdint.h>
17846 /* BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be
17847 included before <wchar.h>. */
17848 #include <stddef.h>
17849 #include <signal.h>
17851 # include <stdio.h>
17853 # include <wchar.h>
17858 #include <string.h>
17859 #define MVAL(macro) MVAL1(macro)
17860 #define MVAL1(expression) #expression
17861 static const char *macro_values[] =
17895 for (mv = macro_values; *mv != NULL; mv++)
17897 const char *value = *mv;
17898 /* Test whether it looks like a cast expression. */
17899 if (strncmp (value, "((unsigned int)"/*)*/, 15) == 0
17900 || strncmp (value, "((unsigned short)"/*)*/, 17) == 0
17901 || strncmp (value, "((unsigned char)"/*)*/, 16) == 0
17902 || strncmp (value, "((int)"/*)*/, 6) == 0
17903 || strncmp (value, "((signed short)"/*)*/, 15) == 0
17904 || strncmp (value, "((signed char)"/*)*/, 14) == 0)
17905 return mv - macro_values + 1;
17913 if ac_fn_c_try_run
"$LINENO"; then :
17914 gl_cv_header_working_stdint_h
=yes
17916 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
17917 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
17922 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
17925 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_header_working_stdint_h" >&5
17926 $as_echo "$gl_cv_header_working_stdint_h" >&6; }
17928 if test "$gl_cv_header_working_stdint_h" = yes; then
17931 for ac_header
in sys
/inttypes.h sys
/bitypes.h
17933 as_ac_Header
=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
17934 ac_fn_c_check_header_mongrel
"$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
17935 eval as_val
=\$
$as_ac_Header
17936 if test "x$as_val" = x
""yes; then :
17937 cat >>confdefs.h
<<_ACEOF
17938 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
17945 if test $ac_cv_header_sys_inttypes_h = yes; then
17946 HAVE_SYS_INTTYPES_H
=1
17948 HAVE_SYS_INTTYPES_H
=0
17951 if test $ac_cv_header_sys_bitypes_h = yes; then
17952 HAVE_SYS_BITYPES_H
=1
17954 HAVE_SYS_BITYPES_H
=0
17960 if test $APPLE_UNIVERSAL_BUILD = 0; then
17963 for gltype
in ptrdiff_t size_t
; do
17964 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for bit size of $gltype" >&5
17965 $as_echo_n "checking for bit size of $gltype... " >&6; }
17966 if { as_var
=gl_cv_bitsizeof_
${gltype}; eval "test \"\${$as_var+set}\" = set"; }; then :
17967 $as_echo_n "(cached) " >&6
17969 if ac_fn_c_compute_int
"$LINENO" "sizeof ($gltype) * CHAR_BIT" "result" "
17970 /* BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be
17971 included before <wchar.h>. */
17972 #include <stddef.h>
17973 #include <signal.h>
17975 # include <stdio.h>
17977 # include <wchar.h>
17980 #include <limits.h>"; then :
17986 eval gl_cv_bitsizeof_
${gltype}=\
$result
17989 eval ac_res
=\
$gl_cv_bitsizeof_${gltype}
17990 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
17991 $as_echo "$ac_res" >&6; }
17992 eval result
=\
$gl_cv_bitsizeof_${gltype}
17993 if test $result = unknown
; then
17996 GLTYPE
=`echo "$gltype" | tr 'abcdefghijklmnopqrstuvwxyz ' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ_'`
17997 cat >>confdefs.h
<<_ACEOF
17998 #define BITSIZEOF_${GLTYPE} $result
18001 eval BITSIZEOF_
${GLTYPE}=\
$result
18008 for gltype
in sig_atomic_t wchar_t wint_t
; do
18009 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for bit size of $gltype" >&5
18010 $as_echo_n "checking for bit size of $gltype... " >&6; }
18011 if { as_var
=gl_cv_bitsizeof_
${gltype}; eval "test \"\${$as_var+set}\" = set"; }; then :
18012 $as_echo_n "(cached) " >&6
18014 if ac_fn_c_compute_int
"$LINENO" "sizeof ($gltype) * CHAR_BIT" "result" "
18015 /* BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be
18016 included before <wchar.h>. */
18017 #include <stddef.h>
18018 #include <signal.h>
18020 # include <stdio.h>
18022 # include <wchar.h>
18025 #include <limits.h>"; then :
18031 eval gl_cv_bitsizeof_
${gltype}=\
$result
18034 eval ac_res
=\
$gl_cv_bitsizeof_${gltype}
18035 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
18036 $as_echo "$ac_res" >&6; }
18037 eval result
=\
$gl_cv_bitsizeof_${gltype}
18038 if test $result = unknown
; then
18041 GLTYPE
=`echo "$gltype" | tr 'abcdefghijklmnopqrstuvwxyz ' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ_'`
18042 cat >>confdefs.h
<<_ACEOF
18043 #define BITSIZEOF_${GLTYPE} $result
18046 eval BITSIZEOF_
${GLTYPE}=\
$result
18052 for gltype
in sig_atomic_t wchar_t wint_t
; do
18053 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $gltype is signed" >&5
18054 $as_echo_n "checking whether $gltype is signed... " >&6; }
18055 if { as_var
=gl_cv_type_
${gltype}_signed; eval "test \"\${$as_var+set}\" = set"; }; then :
18056 $as_echo_n "(cached) " >&6
18058 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
18059 /* end confdefs.h. */
18061 /* BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be
18062 included before <wchar.h>. */
18063 #include <stddef.h>
18064 #include <signal.h>
18066 # include <stdio.h>
18068 # include <wchar.h>
18071 int verify[2 * (($gltype) -1 < ($gltype) 0) - 1];
18080 if ac_fn_c_try_compile
"$LINENO"; then :
18085 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
18086 eval gl_cv_type_
${gltype}_signed
=\
$result
18089 eval ac_res
=\
$gl_cv_type_${gltype}_signed
18090 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
18091 $as_echo "$ac_res" >&6; }
18092 eval result
=\
$gl_cv_type_${gltype}_signed
18093 GLTYPE
=`echo $gltype | tr 'abcdefghijklmnopqrstuvwxyz ' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ_'`
18094 if test "$result" = yes; then
18095 cat >>confdefs.h
<<_ACEOF
18096 #define HAVE_SIGNED_${GLTYPE} 1
18099 eval HAVE_SIGNED_
${GLTYPE}=1
18101 eval HAVE_SIGNED_
${GLTYPE}=0
18106 gl_cv_type_ptrdiff_t_signed
=yes
18107 gl_cv_type_size_t_signed
=no
18108 if test $APPLE_UNIVERSAL_BUILD = 0; then
18111 for gltype
in ptrdiff_t size_t
; do
18112 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $gltype integer literal suffix" >&5
18113 $as_echo_n "checking for $gltype integer literal suffix... " >&6; }
18114 if { as_var
=gl_cv_type_
${gltype}_suffix; eval "test \"\${$as_var+set}\" = set"; }; then :
18115 $as_echo_n "(cached) " >&6
18117 eval gl_cv_type_
${gltype}_suffix
=no
18118 eval result
=\
$gl_cv_type_${gltype}_signed
18119 if test "$result" = yes; then
18124 for glsuf
in "$glsufu" ${glsufu}l ${glsufu}ll ${glsufu}i64
; do
18126 '') gltype1
='int';;
18127 l
) gltype1
='long int';;
18128 ll
) gltype1
='long long int';;
18129 i64
) gltype1
='__int64';;
18130 u
) gltype1
='unsigned int';;
18131 ul
) gltype1
='unsigned long int';;
18132 ull
) gltype1
='unsigned long long int';;
18133 ui64
)gltype1
='unsigned __int64';;
18135 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
18136 /* end confdefs.h. */
18138 /* BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be
18139 included before <wchar.h>. */
18140 #include <stddef.h>
18141 #include <signal.h>
18143 # include <stdio.h>
18145 # include <wchar.h>
18148 extern $gltype foo;
18149 extern $gltype1 foo;
18158 if ac_fn_c_try_compile
"$LINENO"; then :
18159 eval gl_cv_type_
${gltype}_suffix
=\
$glsuf
18161 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
18162 eval result
=\
$gl_cv_type_${gltype}_suffix
18163 test "$result" != no
&& break
18166 eval ac_res
=\
$gl_cv_type_${gltype}_suffix
18167 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
18168 $as_echo "$ac_res" >&6; }
18169 GLTYPE
=`echo $gltype | tr 'abcdefghijklmnopqrstuvwxyz ' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ_'`
18170 eval result
=\
$gl_cv_type_${gltype}_suffix
18171 test "$result" = no
&& result
=
18172 eval ${GLTYPE}_SUFFIX
=\
$result
18173 cat >>confdefs.h
<<_ACEOF
18174 #define ${GLTYPE}_SUFFIX $result
18183 for gltype
in sig_atomic_t wchar_t wint_t
; do
18184 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $gltype integer literal suffix" >&5
18185 $as_echo_n "checking for $gltype integer literal suffix... " >&6; }
18186 if { as_var
=gl_cv_type_
${gltype}_suffix; eval "test \"\${$as_var+set}\" = set"; }; then :
18187 $as_echo_n "(cached) " >&6
18189 eval gl_cv_type_
${gltype}_suffix
=no
18190 eval result
=\
$gl_cv_type_${gltype}_signed
18191 if test "$result" = yes; then
18196 for glsuf
in "$glsufu" ${glsufu}l ${glsufu}ll ${glsufu}i64
; do
18198 '') gltype1
='int';;
18199 l
) gltype1
='long int';;
18200 ll
) gltype1
='long long int';;
18201 i64
) gltype1
='__int64';;
18202 u
) gltype1
='unsigned int';;
18203 ul
) gltype1
='unsigned long int';;
18204 ull
) gltype1
='unsigned long long int';;
18205 ui64
)gltype1
='unsigned __int64';;
18207 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
18208 /* end confdefs.h. */
18210 /* BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be
18211 included before <wchar.h>. */
18212 #include <stddef.h>
18213 #include <signal.h>
18215 # include <stdio.h>
18217 # include <wchar.h>
18220 extern $gltype foo;
18221 extern $gltype1 foo;
18230 if ac_fn_c_try_compile
"$LINENO"; then :
18231 eval gl_cv_type_
${gltype}_suffix
=\
$glsuf
18233 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
18234 eval result
=\
$gl_cv_type_${gltype}_suffix
18235 test "$result" != no
&& break
18238 eval ac_res
=\
$gl_cv_type_${gltype}_suffix
18239 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
18240 $as_echo "$ac_res" >&6; }
18241 GLTYPE
=`echo $gltype | tr 'abcdefghijklmnopqrstuvwxyz ' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ_'`
18242 eval result
=\
$gl_cv_type_${gltype}_suffix
18243 test "$result" = no
&& result
=
18244 eval ${GLTYPE}_SUFFIX
=\
$result
18245 cat >>confdefs.h
<<_ACEOF
18246 #define ${GLTYPE}_SUFFIX $result
18253 if test $BITSIZEOF_WINT_T -lt 32; then
18254 BITSIZEOF_WINT_T
=32
18260 if test -n "$STDINT_H"; then
18261 GL_GENERATE_STDINT_H_TRUE
=
18262 GL_GENERATE_STDINT_H_FALSE
='#'
18264 GL_GENERATE_STDINT_H_TRUE
='#'
18265 GL_GENERATE_STDINT_H_FALSE
=
18274 GNULIB_STRTOIMAX
=0;
18275 GNULIB_STRTOUMAX
=0;
18276 HAVE_DECL_IMAXABS
=1;
18277 HAVE_DECL_IMAXDIV
=1;
18278 HAVE_DECL_STRTOIMAX
=1;
18279 HAVE_DECL_STRTOUMAX
=1;
18280 INT32_MAX_LT_INTMAX_MAX
=1;
18281 INT64_MAX_EQ_LONG_MAX
='defined _LP64';
18282 PRI_MACROS_BROKEN
=0;
18283 PRIPTR_PREFIX
=__PRIPTR_PREFIX
;
18284 UINT32_MAX_LT_UINTMAX_MAX
=1;
18285 UINT64_MAX_EQ_ULONG_MAX
='defined _LP64';
18301 if test $gl_cv_have_include_next = yes; then
18302 gl_cv_next_inttypes_h
='<'inttypes.h
'>'
18304 { $as_echo "$as_me:${as_lineno-$LINENO}: checking absolute name of <inttypes.h>" >&5
18305 $as_echo_n "checking absolute name of <inttypes.h>... " >&6; }
18306 if test "${gl_cv_next_inttypes_h+set}" = set; then :
18307 $as_echo_n "(cached) " >&6
18310 if test $ac_cv_header_inttypes_h = yes; then
18313 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
18314 /* end confdefs.h. */
18315 #include <inttypes.h>
18319 aix
*) gl_absname_cpp
="$ac_cpp -C" ;;
18320 *) gl_absname_cpp
="$ac_cpp" ;;
18325 gl_dirsep_regex
='[/\\]'
18328 gl_dirsep_regex
='/'
18332 gl_absolute_header_sed
='\|'"${gl_dirsep_regex}"'inttypes.h|{
18333 s|.*"\(.*'"${gl_dirsep_regex}"'inttypes.h\)".*|\1|
18338 gl_cv_next_inttypes_h
='"'`(eval "$gl_absname_cpp conftest.$ac_ext") 2>&5 |
18339 sed -n "$gl_absolute_header_sed"`'"'
18341 gl_cv_next_inttypes_h
='<'inttypes.h
'>'
18346 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_next_inttypes_h" >&5
18347 $as_echo "$gl_cv_next_inttypes_h" >&6; }
18349 NEXT_INTTYPES_H
=$gl_cv_next_inttypes_h
18351 if test $gl_cv_have_include_next = yes ||
test $gl_cv_have_include_next = buggy
; then
18352 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include_next'
18353 gl_next_as_first_directive
='<'inttypes.h
'>'
18355 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include'
18356 gl_next_as_first_directive
=$gl_cv_next_inttypes_h
18358 NEXT_AS_FIRST_DIRECTIVE_INTTYPES_H
=$gl_next_as_first_directive
18367 $as_echo "#define GL_TRIGGER_STDC_LIMIT_MACROS 1" >>confdefs.h
18386 GNULIB_UTIMENSAT
=0;
18400 REPLACE_FUTIMENS
=0;
18406 REPLACE_UTIMENSAT
=0;
18411 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether lstat correctly handles trailing slash" >&5
18412 $as_echo_n "checking whether lstat correctly handles trailing slash... " >&6; }
18413 if test "${gl_cv_func_lstat_dereferences_slashed_symlink+set}" = set; then :
18414 $as_echo_n "(cached) " >&6
18416 rm -f conftest.sym conftest.
file
18417 echo >conftest.
file
18418 if test "$as_ln_s" = "ln -s" && ln -s conftest.
file conftest.sym
; then
18419 if test "$cross_compiling" = yes; then :
18420 # When cross-compiling, be pessimistic so we will end up using the
18421 # replacement version of lstat that checks for trailing slashes and
18422 # calls lstat a second time when necessary.
18423 gl_cv_func_lstat_dereferences_slashed_symlink
=no
18426 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
18427 /* end confdefs.h. */
18428 $ac_includes_default
18433 /* Linux will dereference the symlink and fail, as required by
18434 POSIX. That is better in the sense that it means we will not
18435 have to compile and use the lstat wrapper. */
18436 return lstat ("conftest.sym/", &sbuf) == 0;
18442 if ac_fn_c_try_run
"$LINENO"; then :
18443 gl_cv_func_lstat_dereferences_slashed_symlink
=yes
18445 gl_cv_func_lstat_dereferences_slashed_symlink
=no
18447 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
18448 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
18452 # If the 'ln -s' command failed, then we probably don't even
18453 # have an lstat function.
18454 gl_cv_func_lstat_dereferences_slashed_symlink
=no
18456 rm -f conftest.sym conftest.
file
18459 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_lstat_dereferences_slashed_symlink" >&5
18460 $as_echo "$gl_cv_func_lstat_dereferences_slashed_symlink" >&6; }
18461 test $gl_cv_func_lstat_dereferences_slashed_symlink = yes &&
18463 cat >>confdefs.h
<<_ACEOF
18464 #define LSTAT_FOLLOWS_SLASHED_SYMLINK 1
18470 GNULIB_NANOSLEEP
=0;
18474 HAVE_DECL_LOCALTIME_R
=1;
18478 REPLACE_LOCALTIME_R
=GNULIB_PORTCHECK
;
18479 REPLACE_MKTIME
=GNULIB_PORTCHECK
;
18480 REPLACE_NANOSLEEP
=GNULIB_PORTCHECK
;
18481 REPLACE_TIMEGM
=GNULIB_PORTCHECK
;
18488 GNULIB_PTHREAD_SIGMASK
=0;
18490 GNULIB_SIGNAL_H_SIGPIPE
=0;
18491 GNULIB_SIGPROCMASK
=0;
18492 GNULIB_SIGACTION
=0;
18493 HAVE_POSIX_SIGNALBLOCKING
=1;
18494 HAVE_PTHREAD_SIGMASK
=1;
18499 HAVE_STRUCT_SIGACTION_SA_SIGACTION
=1;
18501 HAVE_TYPE_VOLATILE_SIG_ATOMIC_T
=1;
18503 HAVE_SIGHANDLER_T
=1;
18504 REPLACE_PTHREAD_SIGMASK
=0;
18510 ac_fn_c_check_type
"$LINENO" "sigset_t" "ac_cv_type_sigset_t" "
18511 #include <signal.h>
18512 /* Mingw defines sigset_t not in <signal.h>, but in <sys/types.h>. */
18513 #include <sys/types.h>
18516 if test "x$ac_cv_type_sigset_t" = x
""yes; then :
18518 cat >>confdefs.h
<<_ACEOF
18519 #define HAVE_SIGSET_T 1
18522 gl_cv_type_sigset_t
=yes
18524 gl_cv_type_sigset_t
=no
18527 if test $gl_cv_type_sigset_t != yes; then
18535 if test $ac_cv_header_sys_socket_h = no
; then
18536 for ac_header
in ws2tcpip.h
18538 ac_fn_c_check_header_mongrel
"$LINENO" "ws2tcpip.h" "ac_cv_header_ws2tcpip_h" "$ac_includes_default"
18539 if test "x$ac_cv_header_ws2tcpip_h" = x
""yes; then :
18540 cat >>confdefs.h
<<_ACEOF
18541 #define HAVE_WS2TCPIP_H 1
18550 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for stdbool.h that conforms to C99" >&5
18551 $as_echo_n "checking for stdbool.h that conforms to C99... " >&6; }
18552 if test "${ac_cv_header_stdbool_h+set}" = set; then :
18553 $as_echo_n "(cached) " >&6
18555 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
18556 /* end confdefs.h. */
18558 #include <stdbool.h>
18560 "error: bool is not defined"
18563 "error: false is not defined"
18566 "error: false is not 0"
18569 "error: true is not defined"
18572 "error: true is not 1"
18574 #ifndef __bool_true_false_are_defined
18575 "error: __bool_true_false_are_defined is not defined"
18578 struct s { _Bool s: 1; _Bool t; } s;
18580 char a[true == 1 ? 1 : -1];
18581 char b[false == 0 ? 1 : -1];
18582 char c[__bool_true_false_are_defined == 1 ? 1 : -1];
18583 char d[(bool) 0.5 == true ? 1 : -1];
18584 /* See body of main program for 'e'. */
18585 char f[(_Bool) 0.0 == false ? 1 : -1];
18587 char h[sizeof (_Bool)];
18588 char i[sizeof s.t];
18589 enum { j = false, k = true, l = false * true, m = true * 256 };
18590 /* The following fails for
18591 HP aC++/ANSI C B3910B A.05.55 [Dec 04 2003]. */
18593 char o[sizeof n == m * sizeof n[0] ? 1 : -1];
18594 char p[-1 - (_Bool) 0 < 0 && -1 - (bool) 0 < 0 ? 1 : -1];
18595 /* Catch a bug in an HP-UX C compiler. See
18596 http://gcc.gnu.org/ml/gcc-patches/2003-12/msg02303.html
18597 http://lists.gnu.org/archive/html/bug-coreutils/2005-11/msg00161.html
18609 /* Refer to every declared value, to avoid compiler optimizations. */
18610 return (!a + !b + !c + !d + !e + !f + !g + !h + !i + !!j + !k + !!l
18611 + !m + !n + !o + !p + !q + !pq);
18617 if ac_fn_c_try_compile
"$LINENO"; then :
18618 ac_cv_header_stdbool_h
=yes
18620 ac_cv_header_stdbool_h
=no
18622 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
18624 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdbool_h" >&5
18625 $as_echo "$ac_cv_header_stdbool_h" >&6; }
18626 ac_fn_c_check_type
"$LINENO" "_Bool" "ac_cv_type__Bool" "$ac_includes_default"
18627 if test "x$ac_cv_type__Bool" = x
""yes; then :
18629 cat >>confdefs.h
<<_ACEOF
18630 #define HAVE__BOOL 1
18642 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for wchar_t" >&5
18643 $as_echo_n "checking for wchar_t... " >&6; }
18644 if test "${gt_cv_c_wchar_t+set}" = set; then :
18645 $as_echo_n "(cached) " >&6
18647 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
18648 /* end confdefs.h. */
18649 #include <stddef.h>
18650 wchar_t foo = (wchar_t)'\0';
18659 if ac_fn_c_try_compile
"$LINENO"; then :
18660 gt_cv_c_wchar_t
=yes
18664 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
18666 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_c_wchar_t" >&5
18667 $as_echo "$gt_cv_c_wchar_t" >&6; }
18668 if test $gt_cv_c_wchar_t = yes; then
18670 $as_echo "#define HAVE_WCHAR_T 1" >>confdefs.h
18683 GNULIB_FPRINTF_POSIX
=0;
18700 GNULIB_OBSTACK_PRINTF
=0;
18701 GNULIB_OBSTACK_PRINTF_POSIX
=0;
18706 GNULIB_PRINTF_POSIX
=0;
18715 GNULIB_SPRINTF_POSIX
=0;
18716 GNULIB_STDIO_H_NONBLOCKING
=0;
18717 GNULIB_STDIO_H_SIGPIPE
=0;
18719 GNULIB_VASPRINTF
=0;
18724 GNULIB_VFPRINTF_POSIX
=0;
18726 GNULIB_VPRINTF_POSIX
=0;
18727 GNULIB_VSNPRINTF
=0;
18728 GNULIB_VSPRINTF_POSIX
=0;
18729 HAVE_DECL_FPURGE
=1;
18730 HAVE_DECL_FSEEKO
=1;
18731 HAVE_DECL_FTELLO
=1;
18732 HAVE_DECL_GETDELIM
=1;
18733 HAVE_DECL_GETLINE
=1;
18734 HAVE_DECL_OBSTACK_PRINTF
=1;
18735 HAVE_DECL_SNPRINTF
=1;
18736 HAVE_DECL_VSNPRINTF
=1;
18757 REPLACE_GETDELIM
=0;
18759 REPLACE_OBSTACK_PRINTF
=0;
18765 REPLACE_RENAMEAT
=0;
18766 REPLACE_SNPRINTF
=0;
18768 REPLACE_STDIO_READ_FUNCS
=0;
18769 REPLACE_STDIO_WRITE_FUNCS
=0;
18771 REPLACE_VASPRINTF
=0;
18772 REPLACE_VDPRINTF
=0;
18773 REPLACE_VFPRINTF
=0;
18775 REPLACE_VSNPRINTF
=0;
18776 REPLACE_VSPRINTF
=0;
18778 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether struct tm is in sys/time.h or time.h" >&5
18779 $as_echo_n "checking whether struct tm is in sys/time.h or time.h... " >&6; }
18780 if test "${ac_cv_struct_tm+set}" = set; then :
18781 $as_echo_n "(cached) " >&6
18783 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
18784 /* end confdefs.h. */
18785 #include <sys/types.h>
18792 int *p = &tm.tm_sec;
18798 if ac_fn_c_try_compile
"$LINENO"; then :
18799 ac_cv_struct_tm
=time.h
18801 ac_cv_struct_tm
=sys
/time.h
18803 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
18805 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_struct_tm" >&5
18806 $as_echo "$ac_cv_struct_tm" >&6; }
18807 if test $ac_cv_struct_tm = sys
/time.h
; then
18809 $as_echo "#define TM_IN_SYS_TIME 1" >>confdefs.h
18813 ac_fn_c_check_member
"$LINENO" "struct tm" "tm_zone" "ac_cv_member_struct_tm_tm_zone" "#include <sys/types.h>
18814 #include <$ac_cv_struct_tm>
18817 if test "x$ac_cv_member_struct_tm_tm_zone" = x
""yes; then :
18819 cat >>confdefs.h
<<_ACEOF
18820 #define HAVE_STRUCT_TM_TM_ZONE 1
18826 if test "$ac_cv_member_struct_tm_tm_zone" = yes; then
18828 $as_echo "#define HAVE_TM_ZONE 1" >>confdefs.h
18831 ac_fn_c_check_decl
"$LINENO" "tzname" "ac_cv_have_decl_tzname" "#include <time.h>
18833 if test "x$ac_cv_have_decl_tzname" = x
""yes; then :
18839 cat >>confdefs.h
<<_ACEOF
18840 #define HAVE_DECL_TZNAME $ac_have_decl
18843 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for tzname" >&5
18844 $as_echo_n "checking for tzname... " >&6; }
18845 if test "${ac_cv_var_tzname+set}" = set; then :
18846 $as_echo_n "(cached) " >&6
18848 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
18849 /* end confdefs.h. */
18851 #if !HAVE_DECL_TZNAME
18852 extern char *tzname[];
18858 return tzname[0][0];
18863 if ac_fn_c_try_link
"$LINENO"; then :
18864 ac_cv_var_tzname
=yes
18866 ac_cv_var_tzname
=no
18868 rm -f core conftest.err conftest.
$ac_objext \
18869 conftest
$ac_exeext conftest.
$ac_ext
18871 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_var_tzname" >&5
18872 $as_echo "$ac_cv_var_tzname" >&6; }
18873 if test $ac_cv_var_tzname = yes; then
18875 $as_echo "#define HAVE_TZNAME 1" >>confdefs.h
18881 ac_fn_c_check_member
"$LINENO" "struct tm" "tm_gmtoff" "ac_cv_member_struct_tm_tm_gmtoff" "#include <time.h>
18883 if test "x$ac_cv_member_struct_tm_tm_gmtoff" = x
""yes; then :
18885 $as_echo "#define HAVE_TM_GMTOFF 1" >>confdefs.h
18894 ac_fn_c_check_decl
"$LINENO" "strtoimax" "ac_cv_have_decl_strtoimax" "$ac_includes_default"
18895 if test "x$ac_cv_have_decl_strtoimax" = x
""yes; then :
18901 cat >>confdefs.h
<<_ACEOF
18902 #define HAVE_DECL_STRTOIMAX $ac_have_decl
18907 ac_fn_c_check_decl
"$LINENO" "strtoumax" "ac_cv_have_decl_strtoumax" "$ac_includes_default"
18908 if test "x$ac_cv_have_decl_strtoumax" = x
""yes; then :
18914 cat >>confdefs.h
<<_ACEOF
18915 #define HAVE_DECL_STRTOUMAX $ac_have_decl
18920 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stat file-mode macros are broken" >&5
18921 $as_echo_n "checking whether stat file-mode macros are broken... " >&6; }
18922 if test "${ac_cv_header_stat_broken+set}" = set; then :
18923 $as_echo_n "(cached) " >&6
18925 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
18926 /* end confdefs.h. */
18927 #include <sys/types.h>
18928 #include <sys/stat.h>
18930 #if defined S_ISBLK && defined S_IFDIR
18931 extern char c1[S_ISBLK (S_IFDIR) ? -1 : 1];
18934 #if defined S_ISBLK && defined S_IFCHR
18935 extern char c2[S_ISBLK (S_IFCHR) ? -1 : 1];
18938 #if defined S_ISLNK && defined S_IFREG
18939 extern char c3[S_ISLNK (S_IFREG) ? -1 : 1];
18942 #if defined S_ISSOCK && defined S_IFREG
18943 extern char c4[S_ISSOCK (S_IFREG) ? -1 : 1];
18947 if ac_fn_c_try_compile
"$LINENO"; then :
18948 ac_cv_header_stat_broken
=no
18950 ac_cv_header_stat_broken
=yes
18952 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
18954 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stat_broken" >&5
18955 $as_echo "$ac_cv_header_stat_broken" >&6; }
18956 if test $ac_cv_header_stat_broken = yes; then
18958 $as_echo "#define STAT_MACROS_BROKEN 1" >>confdefs.h
18964 ac_fn_c_check_type
"$LINENO" "mode_t" "ac_cv_type_mode_t" "$ac_includes_default"
18965 if test "x$ac_cv_type_mode_t" = x
""yes; then :
18969 cat >>confdefs.h
<<_ACEOF
18975 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for C/C++ restrict keyword" >&5
18976 $as_echo_n "checking for C/C++ restrict keyword... " >&6; }
18977 if test "${ac_cv_c_restrict+set}" = set; then :
18978 $as_echo_n "(cached) " >&6
18980 ac_cv_c_restrict
=no
18981 # The order here caters to the fact that C++ does not require restrict.
18982 for ac_kw
in __restrict __restrict__ _Restrict restrict
; do
18983 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
18984 /* end confdefs.h. */
18985 typedef int * int_ptr;
18986 int foo (int_ptr $ac_kw ip) {
18993 int * $ac_kw t = s;
19000 if ac_fn_c_try_compile
"$LINENO"; then :
19001 ac_cv_c_restrict
=$ac_kw
19003 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
19004 test "$ac_cv_c_restrict" != no
&& break
19008 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_restrict" >&5
19009 $as_echo "$ac_cv_c_restrict" >&6; }
19011 case $ac_cv_c_restrict in
19013 no
) $as_echo "#define restrict /**/" >>confdefs.h
19015 *) cat >>confdefs.h
<<_ACEOF
19016 #define restrict $ac_cv_c_restrict
19025 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for struct timespec in <time.h>" >&5
19026 $as_echo_n "checking for struct timespec in <time.h>... " >&6; }
19027 if test "${gl_cv_sys_struct_timespec_in_time_h+set}" = set; then :
19028 $as_echo_n "(cached) " >&6
19030 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
19031 /* end confdefs.h. */
19037 static struct timespec x; x.tv_sec = x.tv_nsec;
19042 if ac_fn_c_try_compile
"$LINENO"; then :
19043 gl_cv_sys_struct_timespec_in_time_h
=yes
19045 gl_cv_sys_struct_timespec_in_time_h
=no
19047 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
19049 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_sys_struct_timespec_in_time_h" >&5
19050 $as_echo "$gl_cv_sys_struct_timespec_in_time_h" >&6; }
19052 TIME_H_DEFINES_STRUCT_TIMESPEC
=0
19053 SYS_TIME_H_DEFINES_STRUCT_TIMESPEC
=0
19054 PTHREAD_H_DEFINES_STRUCT_TIMESPEC
=0
19055 if test $gl_cv_sys_struct_timespec_in_time_h = yes; then
19056 TIME_H_DEFINES_STRUCT_TIMESPEC
=1
19058 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for struct timespec in <sys/time.h>" >&5
19059 $as_echo_n "checking for struct timespec in <sys/time.h>... " >&6; }
19060 if test "${gl_cv_sys_struct_timespec_in_sys_time_h+set}" = set; then :
19061 $as_echo_n "(cached) " >&6
19063 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
19064 /* end confdefs.h. */
19065 #include <sys/time.h>
19070 static struct timespec x; x.tv_sec = x.tv_nsec;
19075 if ac_fn_c_try_compile
"$LINENO"; then :
19076 gl_cv_sys_struct_timespec_in_sys_time_h
=yes
19078 gl_cv_sys_struct_timespec_in_sys_time_h
=no
19080 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
19082 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_sys_struct_timespec_in_sys_time_h" >&5
19083 $as_echo "$gl_cv_sys_struct_timespec_in_sys_time_h" >&6; }
19084 if test $gl_cv_sys_struct_timespec_in_sys_time_h = yes; then
19085 SYS_TIME_H_DEFINES_STRUCT_TIMESPEC
=1
19087 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for struct timespec in <pthread.h>" >&5
19088 $as_echo_n "checking for struct timespec in <pthread.h>... " >&6; }
19089 if test "${gl_cv_sys_struct_timespec_in_pthread_h+set}" = set; then :
19090 $as_echo_n "(cached) " >&6
19092 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
19093 /* end confdefs.h. */
19094 #include <pthread.h>
19099 static struct timespec x; x.tv_sec = x.tv_nsec;
19104 if ac_fn_c_try_compile
"$LINENO"; then :
19105 gl_cv_sys_struct_timespec_in_pthread_h
=yes
19107 gl_cv_sys_struct_timespec_in_pthread_h
=no
19109 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
19111 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_sys_struct_timespec_in_pthread_h" >&5
19112 $as_echo "$gl_cv_sys_struct_timespec_in_pthread_h" >&6; }
19113 if test $gl_cv_sys_struct_timespec_in_pthread_h = yes; then
19114 PTHREAD_H_DEFINES_STRUCT_TIMESPEC
=1
19133 if test $gl_cv_have_include_next = yes; then
19134 gl_cv_next_time_h
='<'time.h
'>'
19136 { $as_echo "$as_me:${as_lineno-$LINENO}: checking absolute name of <time.h>" >&5
19137 $as_echo_n "checking absolute name of <time.h>... " >&6; }
19138 if test "${gl_cv_next_time_h+set}" = set; then :
19139 $as_echo_n "(cached) " >&6
19142 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
19143 /* end confdefs.h. */
19148 aix
*) gl_absname_cpp
="$ac_cpp -C" ;;
19149 *) gl_absname_cpp
="$ac_cpp" ;;
19154 gl_dirsep_regex
='[/\\]'
19157 gl_dirsep_regex
='/'
19161 gl_absolute_header_sed
='\|'"${gl_dirsep_regex}"'time.h|{
19162 s|.*"\(.*'"${gl_dirsep_regex}"'time.h\)".*|\1|
19167 gl_cv_next_time_h
='"'`(eval "$gl_absname_cpp conftest.$ac_ext") 2>&5 |
19168 sed -n "$gl_absolute_header_sed"`'"'
19172 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_next_time_h" >&5
19173 $as_echo "$gl_cv_next_time_h" >&6; }
19175 NEXT_TIME_H
=$gl_cv_next_time_h
19177 if test $gl_cv_have_include_next = yes ||
test $gl_cv_have_include_next = buggy
; then
19178 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include_next'
19179 gl_next_as_first_directive
='<'time.h
'>'
19181 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include'
19182 gl_next_as_first_directive
=$gl_cv_next_time_h
19184 NEXT_AS_FIRST_DIRECTIVE_TIME_H
=$gl_next_as_first_directive
19191 ac_fn_c_check_decl
"$LINENO" "localtime_r" "ac_cv_have_decl_localtime_r" "$ac_includes_default"
19192 if test "x$ac_cv_have_decl_localtime_r" = x
""yes; then :
19198 cat >>confdefs.h
<<_ACEOF
19199 #define HAVE_DECL_LOCALTIME_R $ac_have_decl
19206 GL_COND_LIBTOOL_TRUE
=
19207 GL_COND_LIBTOOL_FALSE
='#'
19209 GL_COND_LIBTOOL_TRUE
='#'
19210 GL_COND_LIBTOOL_FALSE
=
19213 gl_cond_libtool
=false
19226 gl_source_base
='lib'
19229 if test $ac_cv_func_alloca_works = no
; then
19233 # Define an additional variable used in the Makefile substitution.
19234 if test $ac_cv_working_alloca_h = yes; then
19235 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for alloca as a compiler built-in" >&5
19236 $as_echo_n "checking for alloca as a compiler built-in... " >&6; }
19237 if test "${gl_cv_rpl_alloca+set}" = set; then :
19238 $as_echo_n "(cached) " >&6
19241 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
19242 /* end confdefs.h. */
19244 #if defined __GNUC__ || defined _AIX || defined _MSC_VER
19249 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
19250 $EGREP "Need own alloca" >/dev
/null
2>&1; then :
19251 gl_cv_rpl_alloca
=yes
19253 gl_cv_rpl_alloca
=no
19259 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_rpl_alloca" >&5
19260 $as_echo "$gl_cv_rpl_alloca" >&6; }
19261 if test $gl_cv_rpl_alloca = yes; then
19263 $as_echo "#define HAVE_ALLOCA 1" >>confdefs.h
19273 if test -n "$ALLOCA_H"; then
19274 GL_GENERATE_ALLOCA_H_TRUE
=
19275 GL_GENERATE_ALLOCA_H_FALSE
='#'
19277 GL_GENERATE_ALLOCA_H_TRUE
='#'
19278 GL_GENERATE_ALLOCA_H_FALSE
=
19307 $as_echo "#define HAVE_DUP2 1" >>confdefs.h
19310 if test $HAVE_DUP2 = 1; then
19311 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether dup2 works" >&5
19312 $as_echo_n "checking whether dup2 works... " >&6; }
19313 if test "${gl_cv_func_dup2_works+set}" = set; then :
19314 $as_echo_n "(cached) " >&6
19316 if test "$cross_compiling" = yes; then :
19318 mingw
*) # on this platform, dup2 always returns 0 for success
19319 gl_cv_func_dup2_works
=no
;;
19320 cygwin
*) # on cygwin 1.5.x, dup2(1,1) returns 0
19321 gl_cv_func_dup2_works
=no
;;
19322 linux
*) # On linux between 2008-07-27 and 2009-05-11, dup2 of a
19323 # closed fd may yield -EBADF instead of -1 / errno=EBADF.
19324 gl_cv_func_dup2_works
=no
;;
19325 freebsd
*) # on FreeBSD 6.1, dup2(1,1000000) gives EMFILE, not EBADF.
19326 gl_cv_func_dup2_works
=no
;;
19327 haiku
*) # on Haiku alpha 2, dup2(1, 1) resets FD_CLOEXEC.
19328 gl_cv_func_dup2_works
=no
;;
19329 *) gl_cv_func_dup2_works
=yes;;
19332 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
19333 /* end confdefs.h. */
19335 #include <unistd.h>
19343 if (fcntl (1, F_SETFD, FD_CLOEXEC) == -1)
19346 if (dup2 (1, 1) == 0)
19349 if (fcntl (1, F_GETFD) != FD_CLOEXEC)
19353 if (dup2 (0, 0) != -1)
19355 /* Many gnulib modules require POSIX conformance of EBADF. */
19356 if (dup2 (2, 1000000) == -1 && errno != EBADF)
19365 if ac_fn_c_try_run
"$LINENO"; then :
19366 gl_cv_func_dup2_works
=yes
19368 gl_cv_func_dup2_works
=no
19370 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
19371 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
19376 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_dup2_works" >&5
19377 $as_echo "$gl_cv_func_dup2_works" >&6; }
19378 if test "$gl_cv_func_dup2_works" = no
; then
19384 if test $HAVE_DUP2 = 0 ||
test $REPLACE_DUP2 = 1; then
19393 gl_LIBOBJS
="$gl_LIBOBJS dup2.$ac_objext"
19414 # Persuade glibc <stdlib.h> to declare getloadavg().
19419 # getloadvg is present in libc on glibc >= 2.2, MacOS X, FreeBSD >= 2.0,
19420 # NetBSD >= 0.9, OpenBSD >= 2.0, Solaris >= 7.
19422 ac_fn_c_check_func
"$LINENO" "getloadavg" "ac_cv_func_getloadavg"
19423 if test "x$ac_cv_func_getloadavg" = x
""yes; then :
19426 gl_func_getloadavg_done
=no
19428 # Some systems with -lutil have (and need) -lkvm as well, some do not.
19429 # On Solaris, -lkvm requires nlist from -lelf, so check that first
19430 # to get the right answer into the cache.
19431 # For kstat on solaris, we need to test for libelf and libkvm to force the
19432 # definition of SVR4 below.
19433 if test $gl_func_getloadavg_done = no
; then
19434 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for elf_begin in -lelf" >&5
19435 $as_echo_n "checking for elf_begin in -lelf... " >&6; }
19436 if test "${ac_cv_lib_elf_elf_begin+set}" = set; then :
19437 $as_echo_n "(cached) " >&6
19439 ac_check_lib_save_LIBS
=$LIBS
19441 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
19442 /* end confdefs.h. */
19444 /* Override any GCC internal prototype to avoid an error.
19445 Use char because int might match the return type of a GCC
19446 builtin and then its argument prototype would still apply. */
19454 return elf_begin ();
19459 if ac_fn_c_try_link
"$LINENO"; then :
19460 ac_cv_lib_elf_elf_begin
=yes
19462 ac_cv_lib_elf_elf_begin
=no
19464 rm -f core conftest.err conftest.
$ac_objext \
19465 conftest
$ac_exeext conftest.
$ac_ext
19466 LIBS
=$ac_check_lib_save_LIBS
19468 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_elf_elf_begin" >&5
19469 $as_echo "$ac_cv_lib_elf_elf_begin" >&6; }
19470 if test "x$ac_cv_lib_elf_elf_begin" = x
""yes; then :
19474 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for kvm_open in -lkvm" >&5
19475 $as_echo_n "checking for kvm_open in -lkvm... " >&6; }
19476 if test "${ac_cv_lib_kvm_kvm_open+set}" = set; then :
19477 $as_echo_n "(cached) " >&6
19479 ac_check_lib_save_LIBS
=$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. */
19494 return kvm_open ();
19499 if ac_fn_c_try_link
"$LINENO"; then :
19500 ac_cv_lib_kvm_kvm_open
=yes
19502 ac_cv_lib_kvm_kvm_open
=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_kvm_kvm_open" >&5
19509 $as_echo "$ac_cv_lib_kvm_kvm_open" >&6; }
19510 if test "x$ac_cv_lib_kvm_kvm_open" = x
""yes; then :
19514 # Check for the 4.4BSD definition of getloadavg.
19515 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for getloadavg in -lutil" >&5
19516 $as_echo_n "checking for getloadavg in -lutil... " >&6; }
19517 if test "${ac_cv_lib_util_getloadavg+set}" = set; then :
19518 $as_echo_n "(cached) " >&6
19520 ac_check_lib_save_LIBS
=$LIBS
19521 LIBS
="-lutil $LIBS"
19522 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
19523 /* end confdefs.h. */
19525 /* Override any GCC internal prototype to avoid an error.
19526 Use char because int might match the return type of a GCC
19527 builtin and then its argument prototype would still apply. */
19531 char getloadavg ();
19535 return getloadavg ();
19540 if ac_fn_c_try_link
"$LINENO"; then :
19541 ac_cv_lib_util_getloadavg
=yes
19543 ac_cv_lib_util_getloadavg
=no
19545 rm -f core conftest.err conftest.
$ac_objext \
19546 conftest
$ac_exeext conftest.
$ac_ext
19547 LIBS
=$ac_check_lib_save_LIBS
19549 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_util_getloadavg" >&5
19550 $as_echo "$ac_cv_lib_util_getloadavg" >&6; }
19551 if test "x$ac_cv_lib_util_getloadavg" = x
""yes; then :
19552 LIBS
="-lutil $LIBS" gl_func_getloadavg_done
=yes
19557 if test $gl_func_getloadavg_done = no
; then
19558 # There is a commonly available library for RS/6000 AIX.
19559 # Since it is not a standard part of AIX, it might be installed locally.
19560 gl_getloadavg_LIBS
=$LIBS
19561 LIBS
="-L/usr/local/lib $LIBS"
19562 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for getloadavg in -lgetloadavg" >&5
19563 $as_echo_n "checking for getloadavg in -lgetloadavg... " >&6; }
19564 if test "${ac_cv_lib_getloadavg_getloadavg+set}" = set; then :
19565 $as_echo_n "(cached) " >&6
19567 ac_check_lib_save_LIBS
=$LIBS
19568 LIBS
="-lgetloadavg $LIBS"
19569 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
19570 /* end confdefs.h. */
19572 /* Override any GCC internal prototype to avoid an error.
19573 Use char because int might match the return type of a GCC
19574 builtin and then its argument prototype would still apply. */
19578 char getloadavg ();
19582 return getloadavg ();
19587 if ac_fn_c_try_link
"$LINENO"; then :
19588 ac_cv_lib_getloadavg_getloadavg
=yes
19590 ac_cv_lib_getloadavg_getloadavg
=no
19592 rm -f core conftest.err conftest.
$ac_objext \
19593 conftest
$ac_exeext conftest.
$ac_ext
19594 LIBS
=$ac_check_lib_save_LIBS
19596 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_getloadavg_getloadavg" >&5
19597 $as_echo "$ac_cv_lib_getloadavg_getloadavg" >&6; }
19598 if test "x$ac_cv_lib_getloadavg_getloadavg" = x
""yes; then :
19599 LIBS
="-lgetloadavg $LIBS" gl_func_getloadavg_done
=yes
19601 LIBS
=$gl_getloadavg_LIBS
19606 # Set up the replacement function if necessary.
19607 if test $gl_func_getloadavg_done = no
; then
19610 # Solaris has libkstat which does not require root.
19611 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for kstat_open in -lkstat" >&5
19612 $as_echo_n "checking for kstat_open in -lkstat... " >&6; }
19613 if test "${ac_cv_lib_kstat_kstat_open+set}" = set; then :
19614 $as_echo_n "(cached) " >&6
19616 ac_check_lib_save_LIBS
=$LIBS
19617 LIBS
="-lkstat $LIBS"
19618 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
19619 /* end confdefs.h. */
19621 /* Override any GCC internal prototype to avoid an error.
19622 Use char because int might match the return type of a GCC
19623 builtin and then its argument prototype would still apply. */
19627 char kstat_open ();
19631 return kstat_open ();
19636 if ac_fn_c_try_link
"$LINENO"; then :
19637 ac_cv_lib_kstat_kstat_open
=yes
19639 ac_cv_lib_kstat_kstat_open
=no
19641 rm -f core conftest.err conftest.
$ac_objext \
19642 conftest
$ac_exeext conftest.
$ac_ext
19643 LIBS
=$ac_check_lib_save_LIBS
19645 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_kstat_kstat_open" >&5
19646 $as_echo "$ac_cv_lib_kstat_kstat_open" >&6; }
19647 if test "x$ac_cv_lib_kstat_kstat_open" = x
""yes; then :
19648 cat >>confdefs.h
<<_ACEOF
19649 #define HAVE_LIBKSTAT 1
19652 LIBS
="-lkstat $LIBS"
19656 test $ac_cv_lib_kstat_kstat_open = yes && gl_func_getloadavg_done
=yes
19658 # AIX has libperfstat which does not require root
19659 if test $gl_func_getloadavg_done = no
; then
19660 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for perfstat_cpu_total in -lperfstat" >&5
19661 $as_echo_n "checking for perfstat_cpu_total in -lperfstat... " >&6; }
19662 if test "${ac_cv_lib_perfstat_perfstat_cpu_total+set}" = set; then :
19663 $as_echo_n "(cached) " >&6
19665 ac_check_lib_save_LIBS
=$LIBS
19666 LIBS
="-lperfstat $LIBS"
19667 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
19668 /* end confdefs.h. */
19670 /* Override any GCC internal prototype to avoid an error.
19671 Use char because int might match the return type of a GCC
19672 builtin and then its argument prototype would still apply. */
19676 char perfstat_cpu_total ();
19680 return perfstat_cpu_total ();
19685 if ac_fn_c_try_link
"$LINENO"; then :
19686 ac_cv_lib_perfstat_perfstat_cpu_total
=yes
19688 ac_cv_lib_perfstat_perfstat_cpu_total
=no
19690 rm -f core conftest.err conftest.
$ac_objext \
19691 conftest
$ac_exeext conftest.
$ac_ext
19692 LIBS
=$ac_check_lib_save_LIBS
19694 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_perfstat_perfstat_cpu_total" >&5
19695 $as_echo "$ac_cv_lib_perfstat_perfstat_cpu_total" >&6; }
19696 if test "x$ac_cv_lib_perfstat_perfstat_cpu_total" = x
""yes; then :
19697 cat >>confdefs.h
<<_ACEOF
19698 #define HAVE_LIBPERFSTAT 1
19701 LIBS
="-lperfstat $LIBS"
19705 test $ac_cv_lib_perfstat_perfstat_cpu_total = yes && gl_func_getloadavg_done
=yes
19708 if test $gl_func_getloadavg_done = no
; then
19709 ac_fn_c_check_header_mongrel
"$LINENO" "sys/dg_sys_info.h" "ac_cv_header_sys_dg_sys_info_h" "$ac_includes_default"
19710 if test "x$ac_cv_header_sys_dg_sys_info_h" = x
""yes; then :
19711 gl_func_getloadavg_done
=yes
19713 $as_echo "#define DGUX 1" >>confdefs.h
19715 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dg_sys_info in -ldgc" >&5
19716 $as_echo_n "checking for dg_sys_info in -ldgc... " >&6; }
19717 if test "${ac_cv_lib_dgc_dg_sys_info+set}" = set; then :
19718 $as_echo_n "(cached) " >&6
19720 ac_check_lib_save_LIBS
=$LIBS
19722 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
19723 /* end confdefs.h. */
19725 /* Override any GCC internal prototype to avoid an error.
19726 Use char because int might match the return type of a GCC
19727 builtin and then its argument prototype would still apply. */
19731 char dg_sys_info ();
19735 return dg_sys_info ();
19740 if ac_fn_c_try_link
"$LINENO"; then :
19741 ac_cv_lib_dgc_dg_sys_info
=yes
19743 ac_cv_lib_dgc_dg_sys_info
=no
19745 rm -f core conftest.err conftest.
$ac_objext \
19746 conftest
$ac_exeext conftest.
$ac_ext
19747 LIBS
=$ac_check_lib_save_LIBS
19749 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dgc_dg_sys_info" >&5
19750 $as_echo "$ac_cv_lib_dgc_dg_sys_info" >&6; }
19751 if test "x$ac_cv_lib_dgc_dg_sys_info" = x
""yes; then :
19752 cat >>confdefs.h
<<_ACEOF
19753 #define HAVE_LIBDGC 1
19768 if test "x$gl_save_LIBS" = x
; then
19769 GETLOADAVG_LIBS
=$LIBS
19771 GETLOADAVG_LIBS
=`echo "$LIBS" | sed "s!$gl_save_LIBS!!"`
19776 # Test whether the system declares getloadavg. Solaris has the function
19777 # but declares it in <sys/loadavg.h>, not <stdlib.h>.
19778 for ac_header
in sys
/loadavg.h
19780 ac_fn_c_check_header_mongrel
"$LINENO" "sys/loadavg.h" "ac_cv_header_sys_loadavg_h" "$ac_includes_default"
19781 if test "x$ac_cv_header_sys_loadavg_h" = x
""yes; then :
19782 cat >>confdefs.h
<<_ACEOF
19783 #define HAVE_SYS_LOADAVG_H 1
19790 if test $ac_cv_header_sys_loadavg_h = yes; then
19791 HAVE_SYS_LOADAVG_H
=1
19793 HAVE_SYS_LOADAVG_H
=0
19795 ac_fn_c_check_decl
"$LINENO" "getloadavg" "ac_cv_have_decl_getloadavg" "#if HAVE_SYS_LOADAVG_H
19796 # include <sys/loadavg.h>
19798 #include <stdlib.h>
19800 if test "x$ac_cv_have_decl_getloadavg" = x
""yes; then :
19803 HAVE_DECL_GETLOADAVG
=0
19807 if test $HAVE_GETLOADAVG = 0; then
19816 gl_LIBOBJS
="$gl_LIBOBJS getloadavg.$ac_objext"
19819 # Figure out what our getloadavg.c needs.
19821 # On HPUX9, an unprivileged user can get load averages this way.
19822 if test $gl_func_getloadavg_done = no
; then
19823 for ac_func
in pstat_getdynamic
19825 ac_fn_c_check_func
"$LINENO" "pstat_getdynamic" "ac_cv_func_pstat_getdynamic"
19826 if test "x$ac_cv_func_pstat_getdynamic" = x
""yes; then :
19827 cat >>confdefs.h
<<_ACEOF
19828 #define HAVE_PSTAT_GETDYNAMIC 1
19830 gl_func_getloadavg_done
=yes
19836 # We cannot check for <dwarf.h>, because Solaris 2 does not use dwarf (it
19837 # uses stabs), but it is still SVR4. We cannot check for <elf.h> because
19838 # Irix 4.0.5F has the header but not the library.
19839 if test $gl_func_getloadavg_done = no
&& test "$ac_cv_lib_elf_elf_begin" = yes \
19840 && test "$ac_cv_lib_kvm_kvm_open" = yes; then
19841 gl_func_getloadavg_done
=yes
19843 $as_echo "#define SVR4 1" >>confdefs.h
19847 if test $gl_func_getloadavg_done = no
; then
19848 ac_fn_c_check_header_mongrel
"$LINENO" "inq_stats/cpustats.h" "ac_cv_header_inq_stats_cpustats_h" "$ac_includes_default"
19849 if test "x$ac_cv_header_inq_stats_cpustats_h" = x
""yes; then :
19850 gl_func_getloadavg_done
=yes
19852 $as_echo "#define UMAX 1" >>confdefs.h
19855 $as_echo "#define UMAX4_3 1" >>confdefs.h
19862 if test $gl_func_getloadavg_done = no
; then
19863 ac_fn_c_check_header_mongrel
"$LINENO" "sys/cpustats.h" "ac_cv_header_sys_cpustats_h" "$ac_includes_default"
19864 if test "x$ac_cv_header_sys_cpustats_h" = x
""yes; then :
19865 gl_func_getloadavg_done
=yes; $as_echo "#define UMAX 1" >>confdefs.h
19872 if test $gl_func_getloadavg_done = no
; then
19873 for ac_header
in mach
/mach.h
19875 ac_fn_c_check_header_mongrel
"$LINENO" "mach/mach.h" "ac_cv_header_mach_mach_h" "$ac_includes_default"
19876 if test "x$ac_cv_header_mach_mach_h" = x
""yes; then :
19877 cat >>confdefs.h
<<_ACEOF
19878 #define HAVE_MACH_MACH_H 1
19887 for ac_header
in nlist.h
19889 ac_fn_c_check_header_mongrel
"$LINENO" "nlist.h" "ac_cv_header_nlist_h" "$ac_includes_default"
19890 if test "x$ac_cv_header_nlist_h" = x
""yes; then :
19891 cat >>confdefs.h
<<_ACEOF
19892 #define HAVE_NLIST_H 1
19894 ac_fn_c_check_member
"$LINENO" "struct nlist" "n_un.n_name" "ac_cv_member_struct_nlist_n_un_n_name" "#include <nlist.h>
19896 if test "x$ac_cv_member_struct_nlist_n_un_n_name" = x
""yes; then :
19898 cat >>confdefs.h
<<_ACEOF
19899 #define HAVE_STRUCT_NLIST_N_UN_N_NAME 1
19905 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
19906 /* end confdefs.h. */
19912 #ifdef HAVE_STRUCT_NLIST_N_UN_N_NAME
19913 x.n_un.n_name = "";
19921 if ac_fn_c_try_link
"$LINENO"; then :
19923 $as_echo "#define N_NAME_POINTER 1" >>confdefs.h
19926 rm -f core conftest.err conftest.
$ac_objext \
19927 conftest
$ac_exeext conftest.
$ac_ext
19939 GNULIB_GETLOADAVG
=1
19950 if test $REPLACE_GETOPT = 1; then
19959 gl_LIBOBJS
="$gl_LIBOBJS getopt.$ac_objext"
19969 gl_LIBOBJS
="$gl_LIBOBJS getopt1.$ac_objext"
19983 if test -n "$gl_replace_getopt"; then :
19990 if test $REPLACE_GETOPT = 1; then
19994 $as_echo "#define __GETOPT_PREFIX rpl_" >>confdefs.h
19998 GNULIB_UNISTD_H_GETOPT
=1
20001 if test $REPLACE_GETOPT = 1; then
20010 gl_LIBOBJS
="$gl_LIBOBJS getopt.$ac_objext"
20020 gl_LIBOBJS
="$gl_LIBOBJS getopt1.$ac_objext"
20031 if test $ac_cv_func_lstat = yes; then
20033 if test $gl_cv_func_lstat_dereferences_slashed_symlink = no
; then
20040 if test $REPLACE_LSTAT = 1; then
20049 gl_LIBOBJS
="$gl_LIBOBJS lstat.$ac_objext"
20073 if test $APPLE_UNIVERSAL_BUILD = 1; then
20074 # A universal build on Apple MacOS X platforms.
20075 # The test result would be 'yes' in 32-bit mode and 'no' in 64-bit mode.
20076 # But we need a configuration result that is valid in both modes.
20077 gl_cv_func_working_mktime
=no
20079 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working mktime" >&5
20080 $as_echo_n "checking for working mktime... " >&6; }
20081 if test "${gl_cv_func_working_mktime+set}" = set; then :
20082 $as_echo_n "(cached) " >&6
20084 if test "$cross_compiling" = yes; then :
20085 gl_cv_func_working_mktime
=no
20087 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
20088 /* end confdefs.h. */
20089 /* Test program from Paul Eggert and Tony Leneis. */
20090 #include <limits.h>
20091 #include <stdlib.h>
20094 #ifdef HAVE_UNISTD_H
20095 # include <unistd.h>
20099 # define alarm(X) /* empty */
20102 /* Work around redefinition to rpl_putenv by other config tests. */
20105 static time_t time_t_max;
20106 static time_t time_t_min;
20108 /* Values we'll use to set the TZ environment variable. */
20109 static char *tz_strings[] = {
20110 (char *) 0, "TZ=GMT0", "TZ=JST-9",
20111 "TZ=EST+3EDT+2,M10.1.0/00:00:00,M2.3.0/00:00:00"
20113 #define N_STRINGS (sizeof (tz_strings) / sizeof (tz_strings[0]))
20115 /* Return 0 if mktime fails to convert a date in the spring-forward gap.
20116 Based on a problem report from Andreas Jaeger. */
20118 spring_forward_gap ()
20120 /* glibc (up to about 1998-10-07) failed this test. */
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");
20136 return mktime (&tm) != (time_t) -1;
20140 mktime_test1 (time_t now)
20143 return ! (lt = localtime (&now)) || mktime (lt) == now;
20147 mktime_test (time_t now)
20149 return (mktime_test1 (now)
20150 && mktime_test1 ((time_t) (time_t_max - now))
20151 && mktime_test1 ((time_t) (time_t_min + now)));
20157 /* Based on code from Ariel Faigon. */
20167 return tm.tm_mon == 2 && tm.tm_mday == 31;
20171 bigtime_test (int j)
20175 tm.tm_year = tm.tm_mon = tm.tm_mday = tm.tm_hour = tm.tm_min = tm.tm_sec = j;
20176 now = mktime (&tm);
20177 if (now != (time_t) -1)
20179 struct tm *lt = localtime (&now);
20181 && lt->tm_year == tm.tm_year
20182 && lt->tm_mon == tm.tm_mon
20183 && lt->tm_mday == tm.tm_mday
20184 && lt->tm_hour == tm.tm_hour
20185 && lt->tm_min == tm.tm_min
20186 && lt->tm_sec == tm.tm_sec
20187 && lt->tm_yday == tm.tm_yday
20188 && lt->tm_wday == tm.tm_wday
20189 && ((lt->tm_isdst < 0 ? -1 : 0 < lt->tm_isdst)
20190 == (tm.tm_isdst < 0 ? -1 : 0 < tm.tm_isdst))))
20199 /* The correct answer for 2050-02-01 00:00:00 in Pacific time,
20200 ignoring leap seconds. */
20201 unsigned long int answer = 2527315200UL;
20205 tm.tm_year = 2050 - 1900;
20208 tm.tm_hour = tm.tm_min = tm.tm_sec = 0;
20211 /* Use the portable POSIX.1 specification "TZ=PST8PDT,M4.1.0,M10.5.0"
20212 instead of "TZ=America/Vancouver" in order to detect the bug even
20213 on systems that don't support the Olson extension, or don't have the
20214 full zoneinfo tables installed. */
20215 putenv ("TZ=PST8PDT,M4.1.0,M10.5.0");
20219 /* Check that the result is either a failure, or close enough
20220 to the correct answer that we can assume the discrepancy is
20221 due to leap seconds. */
20222 return (t == (time_t) -1
20223 || (0 < t && answer - 120 <= t && t <= answer + 120));
20232 int time_t_signed_magnitude = (time_t) ~ (time_t) 0 < (time_t) -1;
20233 int time_t_signed = ! ((time_t) 0 < (time_t) -1);
20235 /* This test makes some buggy mktime implementations loop.
20236 Give up after 60 seconds; a mktime slower than that
20237 isn't worth using anyway. */
20240 time_t_max = (! time_t_signed
20242 : ((((time_t) 1 << (sizeof (time_t) * CHAR_BIT - 2)) - 1)
20244 time_t_min = (! time_t_signed
20246 : time_t_signed_magnitude
20250 delta = time_t_max / 997; /* a suitable prime number */
20251 for (i = 0; i < N_STRINGS; i++)
20254 putenv (tz_strings[i]);
20256 for (t = 0; t <= time_t_max - delta; t += delta)
20257 if (! mktime_test (t))
20259 if (! (mktime_test ((time_t) 1)
20260 && mktime_test ((time_t) (60 * 60))
20261 && mktime_test ((time_t) (60 * 60 * 24))))
20264 for (j = 1; ; j <<= 1)
20265 if (! bigtime_test (j))
20267 else if (INT_MAX / 2 < j)
20269 if (! bigtime_test (INT_MAX))
20272 if (! irix_6_4_bug ())
20274 if (! spring_forward_gap ())
20276 if (! year_2050_test ())
20281 if ac_fn_c_try_run
"$LINENO"; then :
20282 gl_cv_func_working_mktime
=yes
20284 gl_cv_func_working_mktime
=no
20286 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
20287 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
20292 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_working_mktime" >&5
20293 $as_echo "$gl_cv_func_working_mktime" >&6; }
20295 if test $gl_cv_func_working_mktime = no
; then
20301 if test $REPLACE_MKTIME = 1; then
20310 gl_LIBOBJS
="$gl_LIBOBJS mktime.$ac_objext"
20330 LIB_PTHREAD_SIGMASK
=
20333 if test $ac_cv_func_pthread_sigmask = yes; then
20336 HAVE_PTHREAD_SIGMASK
=0
20337 REPLACE_PTHREAD_SIGMASK
=1
20343 if test $HAVE_PTHREAD_SIGMASK = 1; then
20346 if test -z "$LIB_PTHREAD_SIGMASK"; then
20347 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether pthread_sigmask works without -lpthread" >&5
20348 $as_echo_n "checking whether pthread_sigmask works without -lpthread... " >&6; }
20349 if test "${gl_cv_func_pthread_sigmask_in_libc_works+set}" = set; then :
20350 $as_echo_n "(cached) " >&6
20353 if test "$cross_compiling" = yes; then :
20356 freebsd
* | hpux
* | solaris | solaris2.
[2-9]*)
20357 gl_cv_func_pthread_sigmask_in_libc_works
="guessing no";;
20359 gl_cv_func_pthread_sigmask_in_libc_works
="guessing yes";;
20363 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
20364 /* end confdefs.h. */
20366 #include <pthread.h>
20367 #include <signal.h>
20368 #include <stddef.h>
20372 sigemptyset (&set);
20373 return pthread_sigmask (1729, &set, NULL) != 0;
20376 if ac_fn_c_try_run
"$LINENO"; then :
20377 gl_cv_func_pthread_sigmask_in_libc_works
=no
20379 gl_cv_func_pthread_sigmask_in_libc_works
=yes
20381 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
20382 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
20387 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_pthread_sigmask_in_libc_works" >&5
20388 $as_echo "$gl_cv_func_pthread_sigmask_in_libc_works" >&6; }
20389 case "$gl_cv_func_pthread_sigmask_in_libc_works" in
20391 REPLACE_PTHREAD_SIGMASK
=1
20393 $as_echo "#define PTHREAD_SIGMASK_INEFFECTIVE 1" >>confdefs.h
20399 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether pthread_sigmask returns error numbers" >&5
20400 $as_echo_n "checking whether pthread_sigmask returns error numbers... " >&6; }
20401 if test "${gl_cv_func_pthread_sigmask_return_works+set}" = set; then :
20402 $as_echo_n "(cached) " >&6
20405 gl_save_LIBS
="$LIBS"
20406 LIBS
="$LIBS $LIB_PTHREAD_SIGMASK"
20407 if test "$cross_compiling" = yes; then :
20410 gl_cv_func_pthread_sigmask_return_works
="guessing no";;
20412 gl_cv_func_pthread_sigmask_return_works
="guessing yes";;
20416 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
20417 /* end confdefs.h. */
20419 #include <pthread.h>
20420 #include <signal.h>
20421 #include <stddef.h>
20425 sigemptyset (&set);
20426 if (pthread_sigmask (1729, &set, NULL) == -1)
20431 if ac_fn_c_try_run
"$LINENO"; then :
20432 gl_cv_func_pthread_sigmask_return_works
=yes
20434 gl_cv_func_pthread_sigmask_return_works
=no
20436 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
20437 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
20440 LIBS
="$gl_save_LIBS"
20443 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_pthread_sigmask_return_works" >&5
20444 $as_echo "$gl_cv_func_pthread_sigmask_return_works" >&6; }
20445 case "$gl_cv_func_pthread_sigmask_return_works" in
20447 REPLACE_PTHREAD_SIGMASK
=1
20449 $as_echo "#define PTHREAD_SIGMASK_FAILS_WITH_ERRNO 1" >>confdefs.h
20454 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether pthread_sigmask unblocks signals correctly" >&5
20455 $as_echo_n "checking whether pthread_sigmask unblocks signals correctly... " >&6; }
20456 if test "${gl_cv_func_pthread_sigmask_unblock_works+set}" = set; then :
20457 $as_echo_n "(cached) " >&6
20462 gl_cv_func_pthread_sigmask_unblock_works
="guessing no";;
20464 gl_cv_func_pthread_sigmask_unblock_works
="guessing yes";;
20466 gl_save_LIBS
="$LIBS"
20467 LIBS
="$LIBS $LIBMULTITHREAD"
20468 if test "$cross_compiling" = yes; then :
20471 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
20472 /* end confdefs.h. */
20474 #include <pthread.h>
20475 #include <signal.h>
20477 #include <stdlib.h>
20478 #include <unistd.h>
20479 static volatile int sigint_occurred;
20481 sigint_handler (int sig)
20488 int pid = getpid ();
20490 signal (SIGINT, sigint_handler);
20491 sigemptyset (&set);
20492 sigaddset (&set, SIGINT);
20493 if (!(pthread_sigmask (SIG_BLOCK, &set, NULL) == 0))
20495 sprintf (command, "sh -c 'sleep 1; kill -%d %d' &", SIGINT, pid);
20496 if (!(system (command) == 0))
20499 if (!(sigint_occurred == 0))
20501 if (!(pthread_sigmask (SIG_UNBLOCK, &set, NULL) == 0))
20503 if (!(sigint_occurred == 1)) /* This fails on IRIX. */
20508 if ac_fn_c_try_run
"$LINENO"; then :
20511 gl_cv_func_pthread_sigmask_unblock_works
=no
20513 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
20514 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
20517 LIBS
="$gl_save_LIBS"
20520 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_pthread_sigmask_unblock_works" >&5
20521 $as_echo "$gl_cv_func_pthread_sigmask_unblock_works" >&6; }
20522 case "$gl_cv_func_pthread_sigmask_unblock_works" in
20524 REPLACE_PTHREAD_SIGMASK
=1
20526 $as_echo "#define PTHREAD_SIGMASK_UNBLOCK_BUG 1" >>confdefs.h
20532 if test $HAVE_PTHREAD_SIGMASK = 0 ||
test $REPLACE_PTHREAD_SIGMASK = 1; then
20541 gl_LIBOBJS
="$gl_LIBOBJS pthread_sigmask.$ac_objext"
20544 if test $HAVE_PTHREAD_SIGMASK = 1; then
20546 $as_echo "#define HAVE_PTHREAD_SIGMASK 1" >>confdefs.h
20556 GNULIB_PTHREAD_SIGMASK
=1
20565 if test $ac_cv_func_readlink = no
; then
20568 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether readlink signature is correct" >&5
20569 $as_echo_n "checking whether readlink signature is correct... " >&6; }
20570 if test "${gl_cv_decl_readlink_works+set}" = set; then :
20571 $as_echo_n "(cached) " >&6
20573 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
20574 /* end confdefs.h. */
20575 #include <unistd.h>
20576 /* Cause compilation failure if original declaration has wrong type. */
20577 ssize_t readlink (const char *, char *, size_t);
20586 if ac_fn_c_try_compile
"$LINENO"; then :
20587 gl_cv_decl_readlink_works
=yes
20589 gl_cv_decl_readlink_works
=no
20591 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
20593 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_decl_readlink_works" >&5
20594 $as_echo "$gl_cv_decl_readlink_works" >&6; }
20595 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether readlink handles trailing slash correctly" >&5
20596 $as_echo_n "checking whether readlink handles trailing slash correctly... " >&6; }
20597 if test "${gl_cv_func_readlink_works+set}" = set; then :
20598 $as_echo_n "(cached) " >&6
20600 # We have readlink, so assume ln -s works.
20601 ln -s conftest.no-such conftest.link
20602 ln -s conftest.link conftest.lnk2
20603 if test "$cross_compiling" = yes; then :
20604 gl_cv_func_readlink_works
="guessing no"
20606 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
20607 /* end confdefs.h. */
20608 #include <unistd.h>
20614 return readlink ("conftest.lnk2/", buf, sizeof buf) != -1;
20619 if ac_fn_c_try_run
"$LINENO"; then :
20620 gl_cv_func_readlink_works
=yes
20622 gl_cv_func_readlink_works
=no
20624 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
20625 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
20628 rm -f conftest.link conftest.lnk2
20630 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_readlink_works" >&5
20631 $as_echo "$gl_cv_func_readlink_works" >&6; }
20632 if test "$gl_cv_func_readlink_works" != yes; then
20634 $as_echo "#define READLINK_TRAILING_SLASH_BUG 1" >>confdefs.h
20637 elif test "$gl_cv_decl_readlink_works" != yes; then
20642 if test $HAVE_READLINK = 0 ||
test $REPLACE_READLINK = 1; then
20651 gl_LIBOBJS
="$gl_LIBOBJS readlink.$ac_objext"
20679 if test $gl_cv_have_include_next = yes; then
20680 gl_cv_next_signal_h
='<'signal.h
'>'
20682 { $as_echo "$as_me:${as_lineno-$LINENO}: checking absolute name of <signal.h>" >&5
20683 $as_echo_n "checking absolute name of <signal.h>... " >&6; }
20684 if test "${gl_cv_next_signal_h+set}" = set; then :
20685 $as_echo_n "(cached) " >&6
20688 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
20689 /* end confdefs.h. */
20690 #include <signal.h>
20694 aix
*) gl_absname_cpp
="$ac_cpp -C" ;;
20695 *) gl_absname_cpp
="$ac_cpp" ;;
20700 gl_dirsep_regex
='[/\\]'
20703 gl_dirsep_regex
='/'
20707 gl_absolute_header_sed
='\|'"${gl_dirsep_regex}"'signal.h|{
20708 s|.*"\(.*'"${gl_dirsep_regex}"'signal.h\)".*|\1|
20713 gl_cv_next_signal_h
='"'`(eval "$gl_absname_cpp conftest.$ac_ext") 2>&5 |
20714 sed -n "$gl_absolute_header_sed"`'"'
20718 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_next_signal_h" >&5
20719 $as_echo "$gl_cv_next_signal_h" >&6; }
20721 NEXT_SIGNAL_H
=$gl_cv_next_signal_h
20723 if test $gl_cv_have_include_next = yes ||
test $gl_cv_have_include_next = buggy
; then
20724 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include_next'
20725 gl_next_as_first_directive
='<'signal.h
'>'
20727 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include'
20728 gl_next_as_first_directive
=$gl_cv_next_signal_h
20730 NEXT_AS_FIRST_DIRECTIVE_SIGNAL_H
=$gl_next_as_first_directive
20736 # AIX declares sig_atomic_t to already include volatile, and C89 compilers
20737 # then choke on 'volatile sig_atomic_t'. C99 requires that it compile.
20738 ac_fn_c_check_type
"$LINENO" "volatile sig_atomic_t" "ac_cv_type_volatile_sig_atomic_t" "
20739 #include <signal.h>
20742 if test "x$ac_cv_type_volatile_sig_atomic_t" = x
""yes; then :
20745 HAVE_TYPE_VOLATILE_SIG_ATOMIC_T
=0
20754 ac_fn_c_check_type
"$LINENO" "sighandler_t" "ac_cv_type_sighandler_t" "
20755 #include <signal.h>
20758 if test "x$ac_cv_type_sighandler_t" = x
""yes; then :
20761 HAVE_SIGHANDLER_T
=0
20767 ac_fn_c_check_type
"$LINENO" "socklen_t" "ac_cv_type_socklen_t" "
20768 /* <sys/types.h> is not needed according to POSIX, but the
20769 <sys/socket.h> in i386-unknown-freebsd4.10 and
20770 powerpc-apple-darwin5.5 required it. */
20771 #include <sys/types.h>
20772 #if HAVE_SYS_SOCKET_H
20773 # include <sys/socket.h>
20774 #elif HAVE_WS2TCPIP_H
20775 # include <ws2tcpip.h>
20779 if test "x$ac_cv_type_socklen_t" = x
""yes; then :
20782 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for socklen_t equivalent" >&5
20783 $as_echo_n "checking for socklen_t equivalent... " >&6; }
20784 if test "${gl_cv_socklen_t_equiv+set}" = set; then :
20785 $as_echo_n "(cached) " >&6
20787 # Systems have either "struct sockaddr *" or
20788 # "void *" as the second argument to getpeername
20789 gl_cv_socklen_t_equiv
=
20790 for arg2
in "struct sockaddr" void
; do
20791 for t
in int size_t
"unsigned int" "long int" "unsigned long int"; do
20792 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
20793 /* end confdefs.h. */
20794 #include <sys/types.h>
20795 #include <sys/socket.h>
20797 int getpeername (int, $arg2 *, $t *);
20802 getpeername (0, 0, &len);
20807 if ac_fn_c_try_compile
"$LINENO"; then :
20808 gl_cv_socklen_t_equiv
="$t"
20810 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
20811 test "$gl_cv_socklen_t_equiv" != "" && break
20813 test "$gl_cv_socklen_t_equiv" != "" && break
20818 if test "$gl_cv_socklen_t_equiv" = ""; then
20819 as_fn_error
"Cannot find a type to use in place of socklen_t" "$LINENO" 5
20821 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_socklen_t_equiv" >&5
20822 $as_echo "$gl_cv_socklen_t_equiv" >&6; }
20824 cat >>confdefs.h
<<_ACEOF
20825 #define socklen_t $gl_cv_socklen_t_equiv
20831 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ssize_t" >&5
20832 $as_echo_n "checking for ssize_t... " >&6; }
20833 if test "${gt_cv_ssize_t+set}" = set; then :
20834 $as_echo_n "(cached) " >&6
20836 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
20837 /* end confdefs.h. */
20838 #include <sys/types.h>
20842 int x = sizeof (ssize_t *) + sizeof (ssize_t);
20848 if ac_fn_c_try_compile
"$LINENO"; then :
20853 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
20855 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_ssize_t" >&5
20856 $as_echo "$gt_cv_ssize_t" >&6; }
20857 if test $gt_cv_ssize_t = no
; then
20859 $as_echo "#define ssize_t int" >>confdefs.h
20865 NEXT_STDARG_H
='<stdarg.h>'
20866 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for va_copy" >&5
20867 $as_echo_n "checking for va_copy... " >&6; }
20868 if test "${gl_cv_func_va_copy+set}" = set; then :
20869 $as_echo_n "(cached) " >&6
20872 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
20873 /* end confdefs.h. */
20874 #include <stdarg.h>
20880 void (*func) (va_list, va_list) = va_copy;
20887 if ac_fn_c_try_compile
"$LINENO"; then :
20888 gl_cv_func_va_copy
=yes
20890 gl_cv_func_va_copy
=no
20892 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
20895 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_va_copy" >&5
20896 $as_echo "$gl_cv_func_va_copy" >&6; }
20897 if test $gl_cv_func_va_copy = no
; then
20898 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
20899 /* end confdefs.h. */
20900 #if defined _AIX && !defined __GNUC__
20905 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
20906 $EGREP "vaccine" >/dev
/null
2>&1; then :
20913 if test $gl_aixcc = yes; then
20923 if test $gl_cv_have_include_next = yes; then
20924 gl_cv_next_stdarg_h
='<'stdarg.h
'>'
20926 { $as_echo "$as_me:${as_lineno-$LINENO}: checking absolute name of <stdarg.h>" >&5
20927 $as_echo_n "checking absolute name of <stdarg.h>... " >&6; }
20928 if test "${gl_cv_next_stdarg_h+set}" = set; then :
20929 $as_echo_n "(cached) " >&6
20932 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
20933 /* end confdefs.h. */
20934 #include <stdarg.h>
20938 aix
*) gl_absname_cpp
="$ac_cpp -C" ;;
20939 *) gl_absname_cpp
="$ac_cpp" ;;
20944 gl_dirsep_regex
='[/\\]'
20947 gl_dirsep_regex
='/'
20951 gl_absolute_header_sed
='\|'"${gl_dirsep_regex}"'stdarg.h|{
20952 s|.*"\(.*'"${gl_dirsep_regex}"'stdarg.h\)".*|\1|
20957 gl_cv_next_stdarg_h
='"'`(eval "$gl_absname_cpp conftest.$ac_ext") 2>&5 |
20958 sed -n "$gl_absolute_header_sed"`'"'
20962 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_next_stdarg_h" >&5
20963 $as_echo "$gl_cv_next_stdarg_h" >&6; }
20965 NEXT_STDARG_H
=$gl_cv_next_stdarg_h
20967 if test $gl_cv_have_include_next = yes ||
test $gl_cv_have_include_next = buggy
; then
20968 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include_next'
20969 gl_next_as_first_directive
='<'stdarg.h
'>'
20971 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include'
20972 gl_next_as_first_directive
=$gl_cv_next_stdarg_h
20974 NEXT_AS_FIRST_DIRECTIVE_STDARG_H
=$gl_next_as_first_directive
20979 if test "$gl_cv_next_stdarg_h" = '""'; then
20980 gl_cv_next_stdarg_h
='"///usr/include/stdarg.h"'
20981 NEXT_STDARG_H
="$gl_cv_next_stdarg_h"
20985 saved_as_echo_n
="$as_echo_n"
20987 if test "${gl_cv_func___va_copy+set}" = set; then :
20988 $as_echo_n "(cached) " >&6
20991 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
20992 /* end confdefs.h. */
20993 #include <stdarg.h>
21006 if ac_fn_c_try_compile
"$LINENO"; then :
21007 gl_cv_func___va_copy
=yes
21009 gl_cv_func___va_copy
=no
21011 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
21014 as_echo_n
="$saved_as_echo_n"
21016 if test $gl_cv_func___va_copy = yes; then
21018 $as_echo "#define va_copy __va_copy" >>confdefs.h
21023 $as_echo "#define va_copy gl_va_copy" >>confdefs.h
21029 if test -n "$STDARG_H"; then
21030 GL_GENERATE_STDARG_H_TRUE
=
21031 GL_GENERATE_STDARG_H_FALSE
='#'
21033 GL_GENERATE_STDARG_H_TRUE
='#'
21034 GL_GENERATE_STDARG_H_FALSE
=
21042 # Define two additional variables used in the Makefile substitution.
21044 if test "$ac_cv_header_stdbool_h" = yes; then
21047 STDBOOL_H
='stdbool.h'
21050 if test -n "$STDBOOL_H"; then
21051 GL_GENERATE_STDBOOL_H_TRUE
=
21052 GL_GENERATE_STDBOOL_H_FALSE
='#'
21054 GL_GENERATE_STDBOOL_H_TRUE
='#'
21055 GL_GENERATE_STDBOOL_H_FALSE
=
21059 if test "$ac_cv_type__Bool" = yes; then
21070 if test $gt_cv_c_wchar_t = no
; then
21074 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether NULL can be used in arbitrary expressions" >&5
21075 $as_echo_n "checking whether NULL can be used in arbitrary expressions... " >&6; }
21076 if test "${gl_cv_decl_null_works+set}" = set; then :
21077 $as_echo_n "(cached) " >&6
21079 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
21080 /* end confdefs.h. */
21081 #include <stddef.h>
21082 int test[2 * (sizeof NULL == sizeof (void *)) -1];
21092 if ac_fn_c_try_compile
"$LINENO"; then :
21093 gl_cv_decl_null_works
=yes
21095 gl_cv_decl_null_works
=no
21097 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
21099 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_decl_null_works" >&5
21100 $as_echo "$gl_cv_decl_null_works" >&6; }
21101 if test $gl_cv_decl_null_works = no
; then
21106 if test -n "$STDDEF_H"; then
21107 GL_GENERATE_STDDEF_H_TRUE
=
21108 GL_GENERATE_STDDEF_H_FALSE
='#'
21110 GL_GENERATE_STDDEF_H_TRUE
='#'
21111 GL_GENERATE_STDDEF_H_FALSE
=
21114 if test -n "$STDDEF_H"; then
21123 if test $gl_cv_have_include_next = yes; then
21124 gl_cv_next_stddef_h
='<'stddef.h
'>'
21126 { $as_echo "$as_me:${as_lineno-$LINENO}: checking absolute name of <stddef.h>" >&5
21127 $as_echo_n "checking absolute name of <stddef.h>... " >&6; }
21128 if test "${gl_cv_next_stddef_h+set}" = set; then :
21129 $as_echo_n "(cached) " >&6
21132 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
21133 /* end confdefs.h. */
21134 #include <stddef.h>
21138 aix
*) gl_absname_cpp
="$ac_cpp -C" ;;
21139 *) gl_absname_cpp
="$ac_cpp" ;;
21144 gl_dirsep_regex
='[/\\]'
21147 gl_dirsep_regex
='/'
21151 gl_absolute_header_sed
='\|'"${gl_dirsep_regex}"'stddef.h|{
21152 s|.*"\(.*'"${gl_dirsep_regex}"'stddef.h\)".*|\1|
21157 gl_cv_next_stddef_h
='"'`(eval "$gl_absname_cpp conftest.$ac_ext") 2>&5 |
21158 sed -n "$gl_absolute_header_sed"`'"'
21162 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_next_stddef_h" >&5
21163 $as_echo "$gl_cv_next_stddef_h" >&6; }
21165 NEXT_STDDEF_H
=$gl_cv_next_stddef_h
21167 if test $gl_cv_have_include_next = yes ||
test $gl_cv_have_include_next = buggy
; then
21168 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include_next'
21169 gl_next_as_first_directive
='<'stddef.h
'>'
21171 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include'
21172 gl_next_as_first_directive
=$gl_cv_next_stddef_h
21174 NEXT_AS_FIRST_DIRECTIVE_STDDEF_H
=$gl_next_as_first_directive
21193 if test $gl_cv_have_include_next = yes; then
21194 gl_cv_next_stdio_h
='<'stdio.h
'>'
21196 { $as_echo "$as_me:${as_lineno-$LINENO}: checking absolute name of <stdio.h>" >&5
21197 $as_echo_n "checking absolute name of <stdio.h>... " >&6; }
21198 if test "${gl_cv_next_stdio_h+set}" = set; then :
21199 $as_echo_n "(cached) " >&6
21202 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
21203 /* end confdefs.h. */
21208 aix
*) gl_absname_cpp
="$ac_cpp -C" ;;
21209 *) gl_absname_cpp
="$ac_cpp" ;;
21214 gl_dirsep_regex
='[/\\]'
21217 gl_dirsep_regex
='/'
21221 gl_absolute_header_sed
='\|'"${gl_dirsep_regex}"'stdio.h|{
21222 s|.*"\(.*'"${gl_dirsep_regex}"'stdio.h\)".*|\1|
21227 gl_cv_next_stdio_h
='"'`(eval "$gl_absname_cpp conftest.$ac_ext") 2>&5 |
21228 sed -n "$gl_absolute_header_sed"`'"'
21232 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_next_stdio_h" >&5
21233 $as_echo "$gl_cv_next_stdio_h" >&6; }
21235 NEXT_STDIO_H
=$gl_cv_next_stdio_h
21237 if test $gl_cv_have_include_next = yes ||
test $gl_cv_have_include_next = buggy
; then
21238 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include_next'
21239 gl_next_as_first_directive
='<'stdio.h
'>'
21241 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include'
21242 gl_next_as_first_directive
=$gl_cv_next_stdio_h
21244 NEXT_AS_FIRST_DIRECTIVE_STDIO_H
=$gl_next_as_first_directive
21285 if test $gl_cv_have_include_next = yes; then
21286 gl_cv_next_stdlib_h
='<'stdlib.h
'>'
21288 { $as_echo "$as_me:${as_lineno-$LINENO}: checking absolute name of <stdlib.h>" >&5
21289 $as_echo_n "checking absolute name of <stdlib.h>... " >&6; }
21290 if test "${gl_cv_next_stdlib_h+set}" = set; then :
21291 $as_echo_n "(cached) " >&6
21294 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
21295 /* end confdefs.h. */
21296 #include <stdlib.h>
21300 aix
*) gl_absname_cpp
="$ac_cpp -C" ;;
21301 *) gl_absname_cpp
="$ac_cpp" ;;
21306 gl_dirsep_regex
='[/\\]'
21309 gl_dirsep_regex
='/'
21313 gl_absolute_header_sed
='\|'"${gl_dirsep_regex}"'stdlib.h|{
21314 s|.*"\(.*'"${gl_dirsep_regex}"'stdlib.h\)".*|\1|
21319 gl_cv_next_stdlib_h
='"'`(eval "$gl_absname_cpp conftest.$ac_ext") 2>&5 |
21320 sed -n "$gl_absolute_header_sed"`'"'
21324 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_next_stdlib_h" >&5
21325 $as_echo "$gl_cv_next_stdlib_h" >&6; }
21327 NEXT_STDLIB_H
=$gl_cv_next_stdlib_h
21329 if test $gl_cv_have_include_next = yes ||
test $gl_cv_have_include_next = buggy
; then
21330 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include_next'
21331 gl_next_as_first_directive
='<'stdlib.h
'>'
21333 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include'
21334 gl_next_as_first_directive
=$gl_cv_next_stdlib_h
21336 NEXT_AS_FIRST_DIRECTIVE_STDLIB_H
=$gl_next_as_first_directive
21346 # This defines (or not) HAVE_TZNAME and HAVE_TM_ZONE.
21354 $as_echo "#define my_strftime nstrftime" >>confdefs.h
21363 if test "$ac_cv_have_decl_strtoimax" != yes; then
21364 HAVE_DECL_STRTOIMAX
=0
21367 if test $ac_cv_func_strtoimax = no
; then
21376 gl_LIBOBJS
="$gl_LIBOBJS strtoimax.$ac_objext"
21379 ac_fn_c_check_decl
"$LINENO" "strtoll" "ac_cv_have_decl_strtoll" "$ac_includes_default"
21380 if test "x$ac_cv_have_decl_strtoll" = x
""yes; then :
21386 cat >>confdefs.h
<<_ACEOF
21387 #define HAVE_DECL_STRTOLL $ac_have_decl
21408 if test "$ac_cv_have_decl_strtoumax" != yes; then
21409 HAVE_DECL_STRTOUMAX
=0
21412 if test $ac_cv_func_strtoumax = no
; then
21421 gl_LIBOBJS
="$gl_LIBOBJS strtoumax.$ac_objext"
21424 ac_fn_c_check_decl
"$LINENO" "strtoull" "ac_cv_have_decl_strtoull" "$ac_includes_default"
21425 if test "x$ac_cv_have_decl_strtoull" = x
""yes; then :
21431 cat >>confdefs.h
<<_ACEOF
21432 #define HAVE_DECL_STRTOULL $ac_have_decl
21451 if test $ac_cv_func_symlink = no
; then
21454 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether symlink handles trailing slash correctly" >&5
21455 $as_echo_n "checking whether symlink handles trailing slash correctly... " >&6; }
21456 if test "${gl_cv_func_symlink_works+set}" = set; then :
21457 $as_echo_n "(cached) " >&6
21459 if test "$cross_compiling" = yes; then :
21460 gl_cv_func_symlink_works
="guessing no"
21462 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
21463 /* end confdefs.h. */
21464 #include <unistd.h>
21470 if (!symlink ("a", "conftest.link/"))
21472 if (symlink ("conftest.f", "conftest.lnk2"))
21474 else if (!symlink ("a", "conftest.lnk2/"))
21482 if ac_fn_c_try_run
"$LINENO"; then :
21483 gl_cv_func_symlink_works
=yes
21485 gl_cv_func_symlink_works
=no
21487 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
21488 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
21491 rm -f conftest.f conftest.link conftest.lnk2
21493 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_symlink_works" >&5
21494 $as_echo "$gl_cv_func_symlink_works" >&6; }
21495 if test "$gl_cv_func_symlink_works" != yes; then
21500 if test $HAVE_SYMLINK = 0 ||
test $REPLACE_SYMLINK = 1; then
21509 gl_LIBOBJS
="$gl_LIBOBJS symlink.$ac_objext"
21539 if test $gl_cv_have_include_next = yes; then
21540 gl_cv_next_sys_stat_h
='<'sys
/stat.h
'>'
21542 { $as_echo "$as_me:${as_lineno-$LINENO}: checking absolute name of <sys/stat.h>" >&5
21543 $as_echo_n "checking absolute name of <sys/stat.h>... " >&6; }
21544 if test "${gl_cv_next_sys_stat_h+set}" = set; then :
21545 $as_echo_n "(cached) " >&6
21548 if test $ac_cv_header_sys_stat_h = yes; then
21551 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
21552 /* end confdefs.h. */
21553 #include <sys/stat.h>
21557 aix
*) gl_absname_cpp
="$ac_cpp -C" ;;
21558 *) gl_absname_cpp
="$ac_cpp" ;;
21563 gl_dirsep_regex
='[/\\]'
21566 gl_dirsep_regex
='/'
21570 gl_absolute_header_sed
='\|'"${gl_dirsep_regex}"'sys/stat.h|{
21571 s|.*"\(.*'"${gl_dirsep_regex}"'sys/stat.h\)".*|\1|
21576 gl_cv_next_sys_stat_h
='"'`(eval "$gl_absname_cpp conftest.$ac_ext") 2>&5 |
21577 sed -n "$gl_absolute_header_sed"`'"'
21579 gl_cv_next_sys_stat_h
='<'sys
/stat.h
'>'
21584 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_next_sys_stat_h" >&5
21585 $as_echo "$gl_cv_next_sys_stat_h" >&6; }
21587 NEXT_SYS_STAT_H
=$gl_cv_next_sys_stat_h
21589 if test $gl_cv_have_include_next = yes ||
test $gl_cv_have_include_next = buggy
; then
21590 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include_next'
21591 gl_next_as_first_directive
='<'sys
/stat.h
'>'
21593 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include'
21594 gl_next_as_first_directive
=$gl_cv_next_sys_stat_h
21596 NEXT_AS_FIRST_DIRECTIVE_SYS_STAT_H
=$gl_next_as_first_directive
21604 ac_fn_c_check_type
"$LINENO" "nlink_t" "ac_cv_type_nlink_t" "#include <sys/types.h>
21605 #include <sys/stat.h>
21607 if test "x$ac_cv_type_nlink_t" = x
""yes; then :
21611 $as_echo "#define nlink_t int" >>confdefs.h
21629 if test $ac_cv_have_decl_localtime_r = no
; then
21630 HAVE_DECL_LOCALTIME_R
=0
21634 if test $ac_cv_func_localtime_r = yes; then
21636 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether localtime_r is compatible with its POSIX signature" >&5
21637 $as_echo_n "checking whether localtime_r is compatible with its POSIX signature... " >&6; }
21638 if test "${gl_cv_time_r_posix+set}" = set; then :
21639 $as_echo_n "(cached) " >&6
21641 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
21642 /* end confdefs.h. */
21647 /* We don't need to append 'restrict's to the argument types,
21648 even though the POSIX signature has the 'restrict's,
21649 since C99 says they can't affect type compatibility. */
21650 struct tm * (*ptr) (time_t const *, struct tm *) = localtime_r;
21652 /* Check the return type is a pointer.
21653 On HP-UX 10 it is 'int'. */
21654 *localtime_r (0, 0);
21660 if ac_fn_c_try_compile
"$LINENO"; then :
21661 gl_cv_time_r_posix
=yes
21663 gl_cv_time_r_posix
=no
21665 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
21668 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_time_r_posix" >&5
21669 $as_echo "$gl_cv_time_r_posix" >&6; }
21670 if test $gl_cv_time_r_posix = yes; then
21671 REPLACE_LOCALTIME_R
=0
21673 REPLACE_LOCALTIME_R
=1
21679 if test $HAVE_LOCALTIME_R = 0 ||
test $REPLACE_LOCALTIME_R = 1; then
21688 gl_LIBOBJS
="$gl_LIBOBJS time_r.$ac_objext"
21719 if test $gl_cv_have_include_next = yes; then
21720 gl_cv_next_unistd_h
='<'unistd.h
'>'
21722 { $as_echo "$as_me:${as_lineno-$LINENO}: checking absolute name of <unistd.h>" >&5
21723 $as_echo_n "checking absolute name of <unistd.h>... " >&6; }
21724 if test "${gl_cv_next_unistd_h+set}" = set; then :
21725 $as_echo_n "(cached) " >&6
21728 if test $ac_cv_header_unistd_h = yes; then
21731 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
21732 /* end confdefs.h. */
21733 #include <unistd.h>
21737 aix
*) gl_absname_cpp
="$ac_cpp -C" ;;
21738 *) gl_absname_cpp
="$ac_cpp" ;;
21743 gl_dirsep_regex
='[/\\]'
21746 gl_dirsep_regex
='/'
21750 gl_absolute_header_sed
='\|'"${gl_dirsep_regex}"'unistd.h|{
21751 s|.*"\(.*'"${gl_dirsep_regex}"'unistd.h\)".*|\1|
21756 gl_cv_next_unistd_h
='"'`(eval "$gl_absname_cpp conftest.$ac_ext") 2>&5 |
21757 sed -n "$gl_absolute_header_sed"`'"'
21759 gl_cv_next_unistd_h
='<'unistd.h
'>'
21764 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_next_unistd_h" >&5
21765 $as_echo "$gl_cv_next_unistd_h" >&6; }
21767 NEXT_UNISTD_H
=$gl_cv_next_unistd_h
21769 if test $gl_cv_have_include_next = yes ||
test $gl_cv_have_include_next = buggy
; then
21770 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include_next'
21771 gl_next_as_first_directive
='<'unistd.h
'>'
21773 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include'
21774 gl_next_as_first_directive
=$gl_cv_next_unistd_h
21776 NEXT_AS_FIRST_DIRECTIVE_UNISTD_H
=$gl_next_as_first_directive
21781 if test $ac_cv_header_unistd_h = yes; then
21792 gl_gnulib_enabled_dosname
=false
21793 gl_gnulib_enabled_be453cec5eecf5731a274f2de7f2db36
=false
21794 gl_gnulib_enabled_sigprocmask
=false
21795 gl_gnulib_enabled_stat
=false
21796 gl_gnulib_enabled_strtoll
=false
21797 gl_gnulib_enabled_strtoull
=false
21798 gl_gnulib_enabled_verify
=false
21799 func_gl_gnulib_m4code_dosname
()
21801 if ! $gl_gnulib_enabled_dosname; then
21802 gl_gnulib_enabled_dosname
=true
21805 func_gl_gnulib_m4code_be453cec5eecf5731a274f2de7f2db36
()
21807 if ! $gl_gnulib_enabled_be453cec5eecf5731a274f2de7f2db36; then
21810 gl_gnulib_enabled_be453cec5eecf5731a274f2de7f2db36
=true
21813 func_gl_gnulib_m4code_sigprocmask
()
21815 if ! $gl_gnulib_enabled_sigprocmask; then
21819 if test $gl_cv_type_sigset_t = yes; then
21820 ac_fn_c_check_func
"$LINENO" "sigprocmask" "ac_cv_func_sigprocmask"
21821 if test "x$ac_cv_func_sigprocmask" = x
""yes; then :
21822 gl_cv_func_sigprocmask
=1
21826 if test -z "$gl_cv_func_sigprocmask"; then
21827 HAVE_POSIX_SIGNALBLOCKING
=0
21830 if test $HAVE_POSIX_SIGNALBLOCKING = 0; then
21839 gl_LIBOBJS
="$gl_LIBOBJS sigprocmask.$ac_objext"
21850 GNULIB_SIGPROCMASK
=1
21856 gl_gnulib_enabled_sigprocmask
=true
21859 func_gl_gnulib_m4code_stat
()
21861 if ! $gl_gnulib_enabled_stat; then
21865 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stat handles trailing slashes on directories" >&5
21866 $as_echo_n "checking whether stat handles trailing slashes on directories... " >&6; }
21867 if test "${gl_cv_func_stat_dir_slash+set}" = set; then :
21868 $as_echo_n "(cached) " >&6
21870 if test "$cross_compiling" = yes; then :
21872 mingw
*) gl_cv_func_stat_dir_slash
="guessing no";;
21873 *) gl_cv_func_stat_dir_slash
="guessing yes";;
21876 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
21877 /* end confdefs.h. */
21878 #include <sys/stat.h>
21883 struct stat st; return stat (".", &st) != stat ("./", &st);
21888 if ac_fn_c_try_run
"$LINENO"; then :
21889 gl_cv_func_stat_dir_slash
=yes
21891 gl_cv_func_stat_dir_slash
=no
21893 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
21894 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
21898 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_stat_dir_slash" >&5
21899 $as_echo "$gl_cv_func_stat_dir_slash" >&6; }
21900 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stat handles trailing slashes on files" >&5
21901 $as_echo_n "checking whether stat handles trailing slashes on files... " >&6; }
21902 if test "${gl_cv_func_stat_file_slash+set}" = set; then :
21903 $as_echo_n "(cached) " >&6
21906 # Assume that if we have lstat, we can also check symlinks.
21907 if test $ac_cv_func_lstat = yes; then
21908 ln -s conftest.tmp conftest.lnk
21910 if test "$cross_compiling" = yes; then :
21911 gl_cv_func_stat_file_slash
="guessing no"
21913 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
21914 /* end confdefs.h. */
21915 #include <sys/stat.h>
21922 if (!stat ("conftest.tmp/", &st))
21925 if (!stat ("conftest.lnk/", &st))
21934 if ac_fn_c_try_run
"$LINENO"; then :
21935 gl_cv_func_stat_file_slash
=yes
21937 gl_cv_func_stat_file_slash
=no
21939 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
21940 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
21943 rm -f conftest.tmp conftest.lnk
21945 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_stat_file_slash" >&5
21946 $as_echo "$gl_cv_func_stat_file_slash" >&6; }
21947 case $gl_cv_func_stat_dir_slash in
21948 *no
) REPLACE_STAT
=1
21950 $as_echo "#define REPLACE_FUNC_STAT_DIR 1" >>confdefs.h
21953 case $gl_cv_func_stat_file_slash in
21954 *no
) REPLACE_STAT
=1
21956 $as_echo "#define REPLACE_FUNC_STAT_FILE 1" >>confdefs.h
21960 if test $REPLACE_STAT = 1; then
21969 gl_LIBOBJS
="$gl_LIBOBJS stat.$ac_objext"
21987 gl_gnulib_enabled_stat
=true
21988 if test $REPLACE_STAT = 1; then
21989 func_gl_gnulib_m4code_dosname
21991 if test $REPLACE_STAT = 1; then
21992 func_gl_gnulib_m4code_verify
21996 func_gl_gnulib_m4code_strtoll
()
21998 if ! $gl_gnulib_enabled_strtoll; then
22002 if test "$ac_cv_type_long_long_int" = yes; then
22003 for ac_func
in strtoll
22005 ac_fn_c_check_func
"$LINENO" "strtoll" "ac_cv_func_strtoll"
22006 if test "x$ac_cv_func_strtoll" = x
""yes; then :
22007 cat >>confdefs.h
<<_ACEOF
22008 #define HAVE_STRTOLL 1
22014 if test $ac_cv_func_strtoll = no
; then
22019 if test $HAVE_STRTOLL = 0; then
22028 gl_LIBOBJS
="$gl_LIBOBJS strtoll.$ac_objext"
22045 gl_gnulib_enabled_strtoll
=true
22048 func_gl_gnulib_m4code_strtoull
()
22050 if ! $gl_gnulib_enabled_strtoull; then
22054 if test "$ac_cv_type_unsigned_long_long_int" = yes; then
22055 for ac_func
in strtoull
22057 ac_fn_c_check_func
"$LINENO" "strtoull" "ac_cv_func_strtoull"
22058 if test "x$ac_cv_func_strtoull" = x
""yes; then :
22059 cat >>confdefs.h
<<_ACEOF
22060 #define HAVE_STRTOULL 1
22066 if test $ac_cv_func_strtoull = no
; then
22071 if test $HAVE_STRTOULL = 0; then
22080 gl_LIBOBJS
="$gl_LIBOBJS strtoull.$ac_objext"
22097 gl_gnulib_enabled_strtoull
=true
22100 func_gl_gnulib_m4code_verify
()
22102 if ! $gl_gnulib_enabled_verify; then
22103 gl_gnulib_enabled_verify
=true
22106 if test $REPLACE_GETOPT = 1; then
22107 func_gl_gnulib_m4code_be453cec5eecf5731a274f2de7f2db36
22109 if test $REPLACE_LSTAT = 1; then
22110 func_gl_gnulib_m4code_dosname
22112 if test $REPLACE_LSTAT = 1; then
22113 func_gl_gnulib_m4code_stat
22115 if test $HAVE_PTHREAD_SIGMASK = 0 ||
test $REPLACE_PTHREAD_SIGMASK = 1; then
22116 func_gl_gnulib_m4code_sigprocmask
22118 if test $HAVE_READLINK = 0 ||
test $REPLACE_READLINK = 1; then
22119 func_gl_gnulib_m4code_stat
22121 if test $ac_cv_func_strtoimax = no
; then
22122 func_gl_gnulib_m4code_verify
22124 if test $ac_cv_func_strtoimax = no
&& test $ac_cv_type_long_long_int = yes; then
22125 func_gl_gnulib_m4code_strtoll
22127 if test $ac_cv_func_strtoumax = no
; then
22128 func_gl_gnulib_m4code_verify
22130 if test $ac_cv_func_strtoumax = no
&& test $ac_cv_type_unsigned_long_long_int = yes; then
22131 func_gl_gnulib_m4code_strtoull
22134 if $gl_gnulib_enabled_dosname; then
22135 gl_GNULIB_ENABLED_dosname_TRUE
=
22136 gl_GNULIB_ENABLED_dosname_FALSE
='#'
22138 gl_GNULIB_ENABLED_dosname_TRUE
='#'
22139 gl_GNULIB_ENABLED_dosname_FALSE
=
22142 if $gl_gnulib_enabled_be453cec5eecf5731a274f2de7f2db36; then
22143 gl_GNULIB_ENABLED_be453cec5eecf5731a274f2de7f2db36_TRUE
=
22144 gl_GNULIB_ENABLED_be453cec5eecf5731a274f2de7f2db36_FALSE
='#'
22146 gl_GNULIB_ENABLED_be453cec5eecf5731a274f2de7f2db36_TRUE
='#'
22147 gl_GNULIB_ENABLED_be453cec5eecf5731a274f2de7f2db36_FALSE
=
22150 if $gl_gnulib_enabled_sigprocmask; then
22151 gl_GNULIB_ENABLED_sigprocmask_TRUE
=
22152 gl_GNULIB_ENABLED_sigprocmask_FALSE
='#'
22154 gl_GNULIB_ENABLED_sigprocmask_TRUE
='#'
22155 gl_GNULIB_ENABLED_sigprocmask_FALSE
=
22158 if $gl_gnulib_enabled_stat; then
22159 gl_GNULIB_ENABLED_stat_TRUE
=
22160 gl_GNULIB_ENABLED_stat_FALSE
='#'
22162 gl_GNULIB_ENABLED_stat_TRUE
='#'
22163 gl_GNULIB_ENABLED_stat_FALSE
=
22166 if $gl_gnulib_enabled_strtoll; then
22167 gl_GNULIB_ENABLED_strtoll_TRUE
=
22168 gl_GNULIB_ENABLED_strtoll_FALSE
='#'
22170 gl_GNULIB_ENABLED_strtoll_TRUE
='#'
22171 gl_GNULIB_ENABLED_strtoll_FALSE
=
22174 if $gl_gnulib_enabled_strtoull; then
22175 gl_GNULIB_ENABLED_strtoull_TRUE
=
22176 gl_GNULIB_ENABLED_strtoull_FALSE
='#'
22178 gl_GNULIB_ENABLED_strtoull_TRUE
='#'
22179 gl_GNULIB_ENABLED_strtoull_FALSE
=
22182 if $gl_gnulib_enabled_verify; then
22183 gl_GNULIB_ENABLED_verify_TRUE
=
22184 gl_GNULIB_ENABLED_verify_FALSE
='#'
22186 gl_GNULIB_ENABLED_verify_TRUE
='#'
22187 gl_GNULIB_ENABLED_verify_FALSE
=
22190 # End of code from modules
22211 gl_source_base
='tests'
22212 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
22214 gl_module_indicator_condition
=$gltests_WITNESS
22225 LIBGNU_LIBDEPS
="$gl_libdeps"
22227 LIBGNU_LTLIBDEPS
="$gl_ltlibdeps"
22232 aix4-2
) LD_SWITCH_SYSTEM_TEMACS
="-Wl,-bnodelcsect" ;;
22235 ## The -headerpad option tells ld (see man page) to leave room at the
22236 ## end of the header for adding load commands. Needed for dumping.
22237 ## 0x690 is the total size of 30 segment load commands (at 56
22238 ## each); under Cocoa 31 commands are required.
22239 if test "$HAVE_NS" = "yes"; then
22240 libs_nsgui
="-framework AppKit"
22241 headerpad_extra
=6C8
22244 headerpad_extra
=690
22246 LD_SWITCH_SYSTEM_TEMACS
="-fno-pie -prebind $libs_nsgui -Xlinker -headerpad -Xlinker $headerpad_extra"
22248 ## This is here because src/Makefile.in did some extra fiddling around
22249 ## with LD_SWITCH_SYSTEM. The cpp logic was:
22250 ## #ifndef LD_SWITCH_SYSTEM
22251 ## #if !defined (__GNUC__) && ((defined (BSD_SYSTEM) && !defined (COFF)))
22252 ## Since all the *bsds define LD_SWITCH_SYSTEM, this simplifies to:
22253 ## not using gcc, darwin system not on an alpha (ie darwin, since
22254 ## darwin + alpha does not occur).
22255 ## Because this was done in src/Makefile.in, the resulting part of
22256 ## LD_SWITCH_SYSTEM was not used in configure (ie, in ac_link).
22257 ## It therefore seems cleaner to put this in LD_SWITCH_SYSTEM_TEMACS,
22258 ## rather than LD_SWITCH_SYSTEM.
22259 test "x$LD_SWITCH_SYSTEM" = "x" && test "x$GCC" != "xyes" && \
22260 LD_SWITCH_SYSTEM_TEMACS
="-X $LD_SWITCH_SYSTEM_TEMACS"
22263 ## LD_SWITCH_X_SITE_AUX is a -R option saying where to find X at run-time.
22264 ## When handled by cpp, this was in LD_SWITCH_SYSTEM. However, at
22265 ## the point where configure sourced the s/*.h file, LD_SWITCH_X_SITE_AUX
22266 ## had not yet been defined and was expanded to null. Hence LD_SWITCH_SYSTEM
22267 ## had different values in configure (in ac_link) and src/Makefile.in.
22268 ## It seems clearer therefore to put this piece in LD_SWITCH_SYSTEM_TEMACS.
22269 gnu-linux
) LD_SWITCH_SYSTEM_TEMACS
="\$(LD_SWITCH_X_SITE_AUX)" ;;
22271 *) LD_SWITCH_SYSTEM_TEMACS
= ;;
22274 if test "$NS_IMPL_GNUSTEP" = "yes"; then
22275 LD_SWITCH_SYSTEM_TEMACS
="${LD_SWITCH_SYSTEM_TEMACS} -L${GNUSTEP_SYSTEM_LIBRARIES} ${GNUSTEP_LOCAL_LIBRARIES} -lgnustep-gui -lgnustep-base -lobjc -lpthread"
22284 ## gnu: GNU needs its own crt0.
22285 aix4-2|cygwin|darwin|gnu|hpux
*|irix6-5|sol2
*|unixware
) ORDINARY_LINK
=yes ;;
22287 ## On post 1.3 releases of NetBSD, gcc -nostdlib also clears the
22288 ## library search parth, i.e. it won't search /usr/lib for libc and
22289 ## friends. Using -nostartfiles instead avoids this problem, and
22290 ## will also work on earlier NetBSD releases.
22291 netbsd|openbsd
) LD_FIRSTFLAG
="-nostartfiles" ;;
22293 ## macpcc: NAKAJI Hiroyuki <nakaji@tutrp.tut.ac.jp> says
22294 ## MkLinux/LinuxPPC needs this.
22295 ## ibms390x only supports opsys = gnu-linux so it can be added here.
22298 macppc|ibms390x
) LD_FIRSTFLAG
="-nostdlib" ;;
22304 if test "x$ORDINARY_LINK" = "xyes"; then
22308 $as_echo "#define ORDINARY_LINK 1" >>confdefs.h
22311 ## The system files defining neither ORDINARY_LINK nor LD_FIRSTFLAG are:
22312 ## freebsd, gnu-* not on macppc|ibms390x.
22313 elif test "x$GCC" = "xyes" && test "x$LD_FIRSTFLAG" = "x"; then
22315 ## Versions of GCC >= 2.0 put their library, libgcc.a, in obscure
22316 ## places that are difficult to figure out at make time. Fortunately,
22317 ## these same versions allow you to pass arbitrary flags on to the
22318 ## linker, so there is no reason not to use it as a linker.
22320 ## Well, it is not quite perfect. The "-nostdlib" keeps GCC from
22321 ## searching for libraries in its internal directories, so we have to
22322 ## ask GCC explicitly where to find libgcc.a (LIB_GCC below).
22323 LD_FIRSTFLAG
="-nostdlib"
22326 ## FIXME? What setting of EDIT_LDFLAGS should this have?
22327 test "$NS_IMPL_GNUSTEP" = "yes" && LD_FIRSTFLAG
="-rdynamic"
22332 ## FIXME? The logic here is not precisely the same as that above.
22333 ## There is no check here for a pre-defined LD_FIRSTFLAG.
22334 ## Should we only be setting LIB_GCC if LD ~ -nostdlib?
22336 if test "x$GCC" = "xyes" && test "x$ORDINARY_LINK" != "xyes"; then
22339 freebsd|netbsd|openbsd
) LIB_GCC
= ;;
22342 ## armin76@gentoo.org reported that the lgcc_s flag is necessary to
22343 ## build on ARM EABI under GNU/Linux. (Bug#5518)
22349 ## FIXME? s/gnu-linux.h used to define LIB_GCC as below, then
22350 ## immediately undefine it again and redefine it to empty.
22351 ## Was the C_SWITCH_X_SITE part really necessary?
22352 ## LIB_GCC=`$CC $C_SWITCH_X_SITE -print-libgcc-file-name`
22358 ## Ask GCC where to find libgcc.a.
22359 *) LIB_GCC
=`$CC -print-libgcc-file-name 2> /dev/null` ;;
22364 ## If we're using X11/GNUstep, define some consequences.
22365 if test "$HAVE_X_WINDOWS" = "yes" ||
test "$HAVE_NS" = "yes"; then
22367 $as_echo "#define HAVE_WINDOW_SYSTEM 1" >>confdefs.h
22370 $as_echo "#define HAVE_MOUSE 1" >>confdefs.h
22377 #### Report on what we decided to do.
22378 #### Report GTK as a toolkit, even if it doesn't use Xt.
22379 #### It makes printing result more understandable as using GTK sets
22380 #### toolkit_scroll_bars to yes by default.
22381 if test "${HAVE_GTK}" = "yes"; then
22386 if test -n "$machfile"; then
22387 and_machfile
=" and \`${machfile}'"
22391 Configured for \`${canonical}'.
22393 Where should the build process find the source code? ${srcdir}
22394 What operating system and machine description files should Emacs use?
22395 \`${opsysfile}'${and_machfile}
22396 What compiler should emacs be built with? ${CC} ${CFLAGS}
22397 Should Emacs use the GNU version of malloc? ${GNU_MALLOC}${GNU_MALLOC_reason}
22398 Should Emacs use a relocating allocator for buffers? ${REL_ALLOC}
22399 Should Emacs use mmap(2) for buffer allocation? $use_mmap_for_buffers
22400 What window system should Emacs use? ${window_system}
22401 What toolkit should Emacs use? ${USE_X_TOOLKIT}"
22403 if test -n "${x_includes}"; then
22404 echo " Where do we find X Windows header files? ${x_includes}"
22406 echo " Where do we find X Windows header files? Standard dirs"
22408 if test -n "${x_libraries}"; then
22409 echo " Where do we find X Windows libraries? ${x_libraries}"
22411 echo " Where do we find X Windows libraries? Standard dirs"
22414 echo " Does Emacs use -lXaw3d? ${HAVE_XAW3D}"
22415 echo " Does Emacs use -lXpm? ${HAVE_XPM}"
22416 echo " Does Emacs use -ljpeg? ${HAVE_JPEG}"
22417 echo " Does Emacs use -ltiff? ${HAVE_TIFF}"
22418 echo " Does Emacs use a gif library? ${HAVE_GIF} $LIBGIF"
22419 echo " Does Emacs use -lpng? ${HAVE_PNG}"
22420 echo " Does Emacs use -lrsvg-2? ${HAVE_RSVG}"
22421 echo " Does Emacs use imagemagick? ${HAVE_IMAGEMAGICK}"
22423 echo " Does Emacs use -lgpm? ${HAVE_GPM}"
22424 echo " Does Emacs use -ldbus? ${HAVE_DBUS}"
22425 echo " Does Emacs use -lgconf? ${HAVE_GCONF}"
22426 echo " Does Emacs use GSettings? ${HAVE_GSETTINGS}"
22427 echo " Does Emacs use -lselinux? ${HAVE_LIBSELINUX}"
22428 echo " Does Emacs use -lgnutls? ${HAVE_GNUTLS}"
22429 echo " Does Emacs use -lxml2? ${HAVE_LIBXML2}"
22431 echo " Does Emacs use -lfreetype? ${HAVE_FREETYPE}"
22432 echo " Does Emacs use -lm17n-flt? ${HAVE_M17N_FLT}"
22433 echo " Does Emacs use -lotf? ${HAVE_LIBOTF}"
22434 echo " Does Emacs use -lxft? ${HAVE_XFT}"
22436 echo " Does Emacs use toolkit scroll bars? ${USE_TOOLKIT_SCROLL_BARS}"
22439 if test $USE_XASSERTS = yes; then
22440 echo " Compiling with asserts turned on."
22441 CPPFLAGS
="$CPPFLAGS -DXASSERTS=1"
22446 if test "$HAVE_NS" = "yes"; then
22448 echo "You must run \"${MAKE-make} install\" in order to test the built application.
22449 The installed application will go to nextstep/Emacs.app and can be
22450 run or moved from there."
22451 if test "$EN_NS_SELF_CONTAINED" = "yes"; then
22452 echo "The application will be fully self-contained."
22454 echo "The lisp resources for the application will be installed under ${prefix}.
22455 You may need to run \"${MAKE-make} install\" with sudo. The application will fail
22456 to run if these resources are not installed."
22462 # Remove any trailing slashes in these variables.
22463 test "${prefix}" != NONE
&&
22464 prefix
=`echo "${prefix}" | sed 's,\([^/]\)/*$,\1,'`
22465 test "${exec_prefix}" != NONE
&&
22466 exec_prefix
=`echo "${exec_prefix}" | sed 's,\([^/]\)/*$,\1,'`
22468 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"
22470 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"
22473 opt_makefile
=test
/automated
/Makefile
22475 if test -f $srcdir/${opt_makefile}.
in; then
22476 SUBDIR_MAKEFILES
="$SUBDIR_MAKEFILES $opt_makefile"
22477 ac_config_files
="$ac_config_files test/automated/Makefile"
22481 SUBDIR_MAKEFILES_IN
=`echo " ${SUBDIR_MAKEFILES}" | sed -e 's| | $(srcdir)/|g' -e 's|Makefile|Makefile.in|g'`
22485 ac_config_commands
="$ac_config_commands mkdirs"
22488 ac_config_commands
="$ac_config_commands epaths"
22491 ac_config_commands
="$ac_config_commands gdbinit"
22494 cat >confcache
<<\_ACEOF
22495 # This file is a shell script that caches the results of configure
22496 # tests run on this system so they can be shared between configure
22497 # scripts and configure runs, see configure's option --config-cache.
22498 # It is not useful on other systems. If it contains results you don't
22499 # want to keep, you may remove or edit it.
22501 # config.status only pays attention to the cache file if you give it
22502 # the --recheck option to rerun configure.
22504 # `ac_cv_env_foo' variables (set or unset) will be overridden when
22505 # loading this file, other *unset* `ac_cv_foo' will be assigned the
22506 # following values.
22510 # The following way of writing the cache mishandles newlines in values,
22511 # but we know of no workaround that is simple, portable, and efficient.
22512 # So, we kill variables containing newlines.
22513 # Ultrix sh set writes to stderr and can't be redirected directly,
22514 # and sets the high bit in the cache file unless we assign to the vars.
22516 for ac_var
in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
22517 eval ac_val
=\$
$ac_var
22521 *_cv_
*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
22522 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
22525 _ | IFS | as_nl
) ;; #(
22526 BASH_ARGV | BASH_SOURCE
) eval $ac_var= ;; #(
22527 *) { eval $ac_var=; unset $ac_var;} ;;
22533 case $as_nl`(ac_space=' '; set) 2>&1` in #(
22534 *${as_nl}ac_space
=\
*)
22535 # `set' does not quote correctly, so add quotes: double-quote
22536 # substitution turns \\\\ into \\, and sed turns \\ into \.
22539 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
22542 # `set' quotes correctly as required by POSIX, so do not add quotes.
22543 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
22552 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
22554 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
22556 if diff "$cache_file" confcache
>/dev
/null
2>&1; then :; else
22557 if test -w "$cache_file"; then
22558 test "x$cache_file" != "x/dev/null" &&
22559 { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
22560 $as_echo "$as_me: updating cache $cache_file" >&6;}
22561 cat confcache
>$cache_file
22563 { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
22564 $as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
22569 test "x$prefix" = xNONE
&& prefix
=$ac_default_prefix
22570 # Let make expand exec_prefix.
22571 test "x$exec_prefix" = xNONE
&& exec_prefix
='${prefix}'
22573 DEFS
=-DHAVE_CONFIG_H
22577 for ac_i
in : $LIBOBJS; do test "x$ac_i" = x
: && continue
22578 # 1. Remove the extension, and $U if already installed.
22579 ac_script
='s/\$U\././;s/\.o$//;s/\.obj$//'
22580 ac_i
=`$as_echo "$ac_i" | sed "$ac_script"`
22581 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
22582 # will be set to the directory where LIBOBJS objects are built.
22583 as_fn_append ac_libobjs
" \${LIBOBJDIR}$ac_i\$U.$ac_objext"
22584 as_fn_append ac_ltlibobjs
" \${LIBOBJDIR}$ac_i"'$U.lo'
22586 LIBOBJS
=$ac_libobjs
22588 LTLIBOBJS
=$ac_ltlibobjs
22591 if test -n "$EXEEXT"; then
22593 am__EXEEXT_FALSE
='#'
22595 am__EXEEXT_TRUE
='#'
22599 if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
22600 as_fn_error
"conditional \"AMDEP\" was never defined.
22601 Usually this means the macro was only invoked conditionally." "$LINENO" 5
22603 if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
22604 as_fn_error
"conditional \"am__fastdepCC\" was never defined.
22605 Usually this means the macro was only invoked conditionally." "$LINENO" 5
22608 if test -z "${GL_COND_LIBTOOL_TRUE}" && test -z "${GL_COND_LIBTOOL_FALSE}"; then
22609 as_fn_error
"conditional \"GL_COND_LIBTOOL\" was never defined.
22610 Usually this means the macro was only invoked conditionally." "$LINENO" 5
22612 if test -z "${GL_GENERATE_ALLOCA_H_TRUE}" && test -z "${GL_GENERATE_ALLOCA_H_FALSE}"; then
22613 as_fn_error
"conditional \"GL_GENERATE_ALLOCA_H\" was never defined.
22614 Usually this means the macro was only invoked conditionally." "$LINENO" 5
22617 if test -z "${GL_GENERATE_STDINT_H_TRUE}" && test -z "${GL_GENERATE_STDINT_H_FALSE}"; then
22618 as_fn_error
"conditional \"GL_GENERATE_STDINT_H\" was never defined.
22619 Usually this means the macro was only invoked conditionally." "$LINENO" 5
22621 if test -z "${GL_GENERATE_STDARG_H_TRUE}" && test -z "${GL_GENERATE_STDARG_H_FALSE}"; then
22622 as_fn_error
"conditional \"GL_GENERATE_STDARG_H\" was never defined.
22623 Usually this means the macro was only invoked conditionally." "$LINENO" 5
22625 if test -z "${GL_GENERATE_STDBOOL_H_TRUE}" && test -z "${GL_GENERATE_STDBOOL_H_FALSE}"; then
22626 as_fn_error
"conditional \"GL_GENERATE_STDBOOL_H\" was never defined.
22627 Usually this means the macro was only invoked conditionally." "$LINENO" 5
22629 if test -z "${GL_GENERATE_STDDEF_H_TRUE}" && test -z "${GL_GENERATE_STDDEF_H_FALSE}"; then
22630 as_fn_error
"conditional \"GL_GENERATE_STDDEF_H\" was never defined.
22631 Usually this means the macro was only invoked conditionally." "$LINENO" 5
22633 if test -z "${gl_GNULIB_ENABLED_dosname_TRUE}" && test -z "${gl_GNULIB_ENABLED_dosname_FALSE}"; then
22634 as_fn_error
"conditional \"gl_GNULIB_ENABLED_dosname\" was never defined.
22635 Usually this means the macro was only invoked conditionally." "$LINENO" 5
22637 if test -z "${gl_GNULIB_ENABLED_be453cec5eecf5731a274f2de7f2db36_TRUE}" && test -z "${gl_GNULIB_ENABLED_be453cec5eecf5731a274f2de7f2db36_FALSE}"; then
22638 as_fn_error
"conditional \"gl_GNULIB_ENABLED_be453cec5eecf5731a274f2de7f2db36\" was never defined.
22639 Usually this means the macro was only invoked conditionally." "$LINENO" 5
22641 if test -z "${gl_GNULIB_ENABLED_sigprocmask_TRUE}" && test -z "${gl_GNULIB_ENABLED_sigprocmask_FALSE}"; then
22642 as_fn_error
"conditional \"gl_GNULIB_ENABLED_sigprocmask\" was never defined.
22643 Usually this means the macro was only invoked conditionally." "$LINENO" 5
22645 if test -z "${gl_GNULIB_ENABLED_stat_TRUE}" && test -z "${gl_GNULIB_ENABLED_stat_FALSE}"; then
22646 as_fn_error
"conditional \"gl_GNULIB_ENABLED_stat\" was never defined.
22647 Usually this means the macro was only invoked conditionally." "$LINENO" 5
22649 if test -z "${gl_GNULIB_ENABLED_strtoll_TRUE}" && test -z "${gl_GNULIB_ENABLED_strtoll_FALSE}"; then
22650 as_fn_error
"conditional \"gl_GNULIB_ENABLED_strtoll\" was never defined.
22651 Usually this means the macro was only invoked conditionally." "$LINENO" 5
22653 if test -z "${gl_GNULIB_ENABLED_strtoull_TRUE}" && test -z "${gl_GNULIB_ENABLED_strtoull_FALSE}"; then
22654 as_fn_error
"conditional \"gl_GNULIB_ENABLED_strtoull\" was never defined.
22655 Usually this means the macro was only invoked conditionally." "$LINENO" 5
22657 if test -z "${gl_GNULIB_ENABLED_verify_TRUE}" && test -z "${gl_GNULIB_ENABLED_verify_FALSE}"; then
22658 as_fn_error
"conditional \"gl_GNULIB_ENABLED_verify\" was never defined.
22659 Usually this means the macro was only invoked conditionally." "$LINENO" 5
22664 if test -n "$gl_LIBOBJS"; then
22665 # Remove the extension.
22666 sed_drop_objext
='s/\.o$//;s/\.obj$//'
22667 for i
in `for i in $gl_LIBOBJS; do echo "$i"; done | sed -e "$sed_drop_objext" | sort | uniq`; do
22668 gl_libobjs
="$gl_libobjs $i.$ac_objext"
22669 gl_ltlibobjs
="$gl_ltlibobjs $i.lo"
22672 gl_LIBOBJS
=$gl_libobjs
22674 gl_LTLIBOBJS
=$gl_ltlibobjs
22680 if test -n "$gltests_LIBOBJS"; then
22681 # Remove the extension.
22682 sed_drop_objext
='s/\.o$//;s/\.obj$//'
22683 for i
in `for i in $gltests_LIBOBJS; do echo "$i"; done | sed -e "$sed_drop_objext" | sort | uniq`; do
22684 gltests_libobjs
="$gltests_libobjs $i.$ac_objext"
22685 gltests_ltlibobjs
="$gltests_ltlibobjs $i.lo"
22688 gltests_LIBOBJS
=$gltests_libobjs
22690 gltests_LTLIBOBJS
=$gltests_ltlibobjs
22694 : ${CONFIG_STATUS=./config.status}
22696 ac_clean_files_save
=$ac_clean_files
22697 ac_clean_files
="$ac_clean_files $CONFIG_STATUS"
22698 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
22699 $as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
22701 cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
22703 # Generated by $as_me.
22704 # Run this file to recreate the current configuration.
22705 # Compiler output produced by configure, useful for debugging
22706 # configure, is in config.log if it exists.
22709 ac_cs_recheck=false
22712 SHELL=\${CONFIG_SHELL-$SHELL}
22715 cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail
=1
22716 ## -------------------- ##
22717 ## M4sh Initialization. ##
22718 ## -------------------- ##
22720 # Be more Bourne compatible
22721 DUALCASE
=1; export DUALCASE
# for MKS sh
22722 if test -n "${ZSH_VERSION+set}" && (emulate sh
) >/dev
/null
2>&1; then :
22725 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
22726 # is contrary to our usage. Disable this feature.
22727 alias -g '${1+"$@"}'='"$@"'
22728 setopt NO_GLOB_SUBST
22730 case `(set -o) 2>/dev/null` in #(
22742 # Printing a long string crashes Solaris 7 /usr/bin/printf.
22743 as_echo
='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
22744 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
22745 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
22746 # Prefer a ksh shell builtin over an external printf program on Solaris,
22747 # but without wasting forks for bash or zsh.
22748 if test -z "$BASH_VERSION$ZSH_VERSION" \
22749 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
22750 as_echo='print
-r --'
22751 as_echo_n='print
-rn --'
22752 elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
22753 as_echo='printf %s
\n'
22754 as_echo_n='printf %s
'
22756 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
22757 as_echo_body='eval /usr
/ucb
/echo -n "$1$as_nl"'
22758 as_echo_n='/usr
/ucb
/echo -n'
22760 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
22761 as_echo_n_body='eval
22765 expr "X$arg" : "X\\(.*\\)$as_nl";
22766 arg
=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
22768 expr "X$arg" : "X\\(.*\\)" |
tr -d "$as_nl"
22770 export as_echo_n_body
22771 as_echo_n='sh
-c $as_echo_n_body as_echo
'
22773 export as_echo_body
22774 as_echo='sh
-c $as_echo_body as_echo
'
22777 # The user is always right.
22778 if test "${PATH_SEPARATOR+set}" != set; then
22780 (PATH='/bin
;/bin
'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
22781 (PATH='/bin
:/bin
'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
22788 # We need space, tab and new line, in precisely that order. Quoting is
22789 # there to prevent editors from complaining about space-tab.
22790 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
22791 # splitting by setting IFS to empty value.)
22794 # Find who we are. Look in the path if we contain no directory separator.
22796 *[\\/]* ) as_myself=$0 ;;
22797 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
22798 for as_dir in $PATH
22801 test -z "$as_dir" && as_dir=.
22802 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
22808 # We did not find ourselves, most probably we were run as `sh COMMAND'
22809 # in which case we are not to be found in the path.
22810 if test "x$as_myself" = x
; then
22813 if test ! -f "$as_myself"; then
22814 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
22818 # Unset variables that we do not need and which cause bugs (e.g. in
22819 # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
22820 # suppresses any "Segmentation fault" message there. '((' could
22821 # trigger a bug in pdksh 5.2.14.
22822 for as_var
in BASH_ENV ENV MAIL MAILPATH
22823 do eval test x\
${$as_var+set} = xset \
22824 && ( (unset $as_var) ||
exit 1) >/dev
/null
2>&1 && unset $as_var ||
:
22837 (unset CDPATH
) >/dev
/null
2>&1 && unset CDPATH
22840 # as_fn_error ERROR [LINENO LOG_FD]
22841 # ---------------------------------
22842 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
22843 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
22844 # script with status $?, using 1 if that was 0.
22847 as_status
=$?
; test $as_status -eq 0 && as_status
=1
22849 as_lineno
=${as_lineno-"$2"} as_lineno_stack
=as_lineno_stack
=$as_lineno_stack
22850 $as_echo "$as_me:${as_lineno-$LINENO}: error: $1" >&$3
22852 $as_echo "$as_me: error: $1" >&2
22853 as_fn_exit
$as_status
22857 # as_fn_set_status STATUS
22858 # -----------------------
22859 # Set $? to STATUS, without forking.
22860 as_fn_set_status
()
22863 } # as_fn_set_status
22865 # as_fn_exit STATUS
22866 # -----------------
22867 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
22871 as_fn_set_status
$1
22877 # Portably unset VAR.
22880 { eval $1=; unset $1;}
22882 as_unset
=as_fn_unset
22883 # as_fn_append VAR VALUE
22884 # ----------------------
22885 # Append the text in VALUE to the end of the definition contained in VAR. Take
22886 # advantage of any shell optimizations that allow amortized linear growth over
22887 # repeated appends, instead of the typical quadratic growth present in naive
22889 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev
/null
; then :
22890 eval 'as_fn_append ()
22901 # as_fn_arith ARG...
22902 # ------------------
22903 # Perform arithmetic evaluation on the ARGs, and store the result in the
22904 # global $as_val. Take advantage of shells that can avoid forks. The arguments
22905 # must be portable across $(()) and expr.
22906 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev
/null
; then :
22907 eval 'as_fn_arith ()
22914 as_val
=`expr "$@" || test $? -eq 1`
22919 if expr a
: '\(a\)' >/dev
/null
2>&1 &&
22920 test "X`expr 00001 : '.*\(...\)'`" = X001
; then
22926 if (basename -- /) >/dev
/null
2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
22927 as_basename
=basename
22932 if (as_dir
=`dirname -- /` && test "X$as_dir" = X
/) >/dev
/null
2>&1; then
22938 as_me
=`$as_basename -- "$0" ||
22939 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
22940 X"$0" : 'X\(//\)$' \| \
22941 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
22943 sed '/^.*\/\([^/][^/]*\)\/*$/{
22957 # Avoid depending upon Character Ranges.
22958 as_cr_letters
='abcdefghijklmnopqrstuvwxyz'
22959 as_cr_LETTERS
='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
22960 as_cr_Letters
=$as_cr_letters$as_cr_LETTERS
22961 as_cr_digits
='0123456789'
22962 as_cr_alnum
=$as_cr_Letters$as_cr_digits
22964 ECHO_C
= ECHO_N
= ECHO_T
=
22965 case `echo -n x` in #(((((
22967 case `echo 'xy\c'` in
22968 *c
*) ECHO_T
=' ';; # ECHO_T is single tab character.
22970 *) echo `echo ksh88 bug on AIX 6.1` > /dev
/null
22977 rm -f conf$$ conf$$.exe conf$$.
file
22978 if test -d conf$$.dir
; then
22979 rm -f conf$$.dir
/conf$$.
file
22982 mkdir conf$$.dir
2>/dev
/null
22984 if (echo >conf$$.
file) 2>/dev
/null
; then
22985 if ln -s conf$$.
file conf$$
2>/dev
/null
; then
22987 # ... but there are two gotchas:
22988 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
22989 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
22990 # In both cases, we have to default to `cp -p'.
22991 ln -s conf$$.
file conf$$.dir
2>/dev
/null
&& test ! -f conf$$.exe ||
22993 elif ln conf$$.
file conf$$
2>/dev
/null
; then
23001 rm -f conf$$ conf$$.exe conf$$.dir
/conf$$.
file conf$$.
file
23002 rmdir conf$$.dir
2>/dev
/null
23007 # Create "$as_dir" as a directory, including parents if necessary.
23012 -*) as_dir
=.
/$as_dir;;
23014 test -d "$as_dir" ||
eval $as_mkdir_p ||
{
23018 *\'*) as_qdir
=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
23019 *) as_qdir
=$as_dir;;
23021 as_dirs
="'$as_qdir' $as_dirs"
23022 as_dir
=`$as_dirname -- "$as_dir" ||
23023 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
23024 X"$as_dir" : 'X\(//\)[^/]' \| \
23025 X"$as_dir" : 'X\(//\)$' \| \
23026 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
23027 $as_echo X"$as_dir" |
23028 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
23032 /^X\(\/\/\)[^/].*/{
23045 test -d "$as_dir" && break
23047 test -z "$as_dirs" ||
eval "mkdir $as_dirs"
23048 } ||
test -d "$as_dir" || as_fn_error
"cannot create directory $as_dir"
23052 if mkdir
-p .
2>/dev
/null
; then
23053 as_mkdir_p
='mkdir -p "$as_dir"'
23055 test -d .
/-p && rmdir .
/-p
23059 if test -x / >/dev
/null
2>&1; then
23060 as_test_x
='test -x'
23062 if ls -dL / >/dev
/null
2>&1; then
23069 if test -d "$1"; then
23075 case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in #((
23076 ???[sx]*):;;*)false;;esac;fi
23080 as_executable_p
=$as_test_x
23082 # Sed expression to map a string onto a valid CPP name.
23083 as_tr_cpp
="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
23085 # Sed expression to map a string onto a valid variable name.
23086 as_tr_sh
="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
23090 ## ----------------------------------- ##
23091 ## Main body of $CONFIG_STATUS script. ##
23092 ## ----------------------------------- ##
23094 test $as_write_fail = 0 && chmod +x
$CONFIG_STATUS || ac_write_fail
=1
23096 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail
=1
23097 # Save the log message, to keep $0 and so on meaningful, and to
23098 # report actual input values of CONFIG_FILES etc. instead of their
23099 # values after options handling.
23101 This file was extended by emacs $as_me 24.0.91, which was
23102 generated by GNU Autoconf 2.65. Invocation command line was
23104 CONFIG_FILES = $CONFIG_FILES
23105 CONFIG_HEADERS = $CONFIG_HEADERS
23106 CONFIG_LINKS = $CONFIG_LINKS
23107 CONFIG_COMMANDS = $CONFIG_COMMANDS
23110 on `(hostname || uname -n) 2>/dev/null | sed 1q`
23115 case $ac_config_files in *"
23116 "*) set x
$ac_config_files; shift; ac_config_files
=$
*;;
23119 case $ac_config_headers in *"
23120 "*) set x
$ac_config_headers; shift; ac_config_headers
=$
*;;
23124 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
23125 # Files that config.status was made for.
23126 config_files="$ac_config_files"
23127 config_headers="$ac_config_headers"
23128 config_commands="$ac_config_commands"
23132 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail
=1
23134 \`$as_me' instantiates files and other configuration actions
23135 from templates according to the current configuration. Unless the files
23136 and actions are specified as TAGs, all are instantiated by default.
23138 Usage: $0 [OPTION]... [TAG]...
23140 -h, --help print this help, then exit
23141 -V, --version print version number and configuration settings, then exit
23142 --config print configuration, then exit
23143 -q, --quiet, --silent
23144 do not print progress messages
23145 -d, --debug don't remove temporary files
23146 --recheck update $as_me by reconfiguring in the same conditions
23147 --file=FILE[:TEMPLATE]
23148 instantiate the configuration file FILE
23149 --header=FILE[:TEMPLATE]
23150 instantiate the configuration header FILE
23152 Configuration files:
23155 Configuration headers:
23158 Configuration commands:
23161 Report bugs to the package provider."
23164 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
23165 ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`"
23167 emacs config.status 24.0.91
23168 configured by $0, generated by GNU Autoconf 2.65,
23169 with options \\"\$ac_cs_config\\"
23171 Copyright (C) 2009 Free Software Foundation, Inc.
23172 This config.status script is free software; the Free Software Foundation
23173 gives unlimited permission to copy, distribute and modify it."
23180 test -n "\$AWK" || AWK=awk
23183 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail
=1
23184 # The default lists apply if the user does not specify any file.
23190 ac_option
=`expr "X$1" : 'X\([^=]*\)='`
23191 ac_optarg
=`expr "X$1" : 'X[^=]*=\(.*\)'`
23202 # Handling of the options.
23203 -recheck |
--recheck |
--rechec |
--reche |
--rech |
--rec |
--re |
--r)
23205 --version |
--versio |
--versi |
--vers |
--ver |
--ve |
--v |
-V )
23206 $as_echo "$ac_cs_version"; exit ;;
23207 --config |
--confi |
--conf |
--con |
--co |
--c )
23208 $as_echo "$ac_cs_config"; exit ;;
23209 --debug |
--debu |
--deb |
--de |
--d |
-d )
23211 --file |
--fil |
--fi |
--f )
23214 *\'*) ac_optarg
=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
23216 as_fn_append CONFIG_FILES
" '$ac_optarg'"
23217 ac_need_defaults
=false
;;
23218 --header |
--heade |
--head |
--hea )
23221 *\'*) ac_optarg
=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
23223 as_fn_append CONFIG_HEADERS
" '$ac_optarg'"
23224 ac_need_defaults
=false
;;
23226 # Conflict between --help and --header
23227 as_fn_error
"ambiguous option: \`$1'
23228 Try \`$0 --help' for more information.";;
23229 --help |
--hel |
-h )
23230 $as_echo "$ac_cs_usage"; exit ;;
23231 -q |
-quiet |
--quiet |
--quie |
--qui |
--qu |
--q \
23232 |
-silent |
--silent |
--silen |
--sile |
--sil |
--si |
--s)
23235 # This is an error.
23236 -*) as_fn_error
"unrecognized option: \`$1'
23237 Try \`$0 --help' for more information." ;;
23239 *) as_fn_append ac_config_targets
" $1"
23240 ac_need_defaults
=false
;;
23246 ac_configure_extra_args
=
23248 if $ac_cs_silent; then
23250 ac_configure_extra_args
="$ac_configure_extra_args --silent"
23254 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
23255 if \$ac_cs_recheck; then
23256 set X '$SHELL' '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
23258 \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
23259 CONFIG_SHELL='$SHELL'
23260 export CONFIG_SHELL
23265 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail
=1
23269 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
23270 ## Running $as_me. ##
23276 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
23280 AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"
23281 GCC="$GCC" NON_GNU_CPP="$NON_GNU_CPP" CPP="$CPP" CPPFLAGS="$CPPFLAGS"
23285 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail
=1
23287 # Handling of arguments.
23288 for ac_config_target
in $ac_config_targets
23290 case $ac_config_target in
23291 "src/config.h") CONFIG_HEADERS
="$CONFIG_HEADERS src/config.h:src/config.in" ;;
23292 "depfiles") CONFIG_COMMANDS
="$CONFIG_COMMANDS depfiles" ;;
23293 "Makefile") CONFIG_FILES
="$CONFIG_FILES Makefile" ;;
23294 "lib/Makefile") CONFIG_FILES
="$CONFIG_FILES lib/Makefile" ;;
23295 "lib-src/Makefile") CONFIG_FILES
="$CONFIG_FILES lib-src/Makefile" ;;
23296 "oldXMenu/Makefile") CONFIG_FILES
="$CONFIG_FILES oldXMenu/Makefile" ;;
23297 "doc/emacs/Makefile") CONFIG_FILES
="$CONFIG_FILES doc/emacs/Makefile" ;;
23298 "doc/misc/Makefile") CONFIG_FILES
="$CONFIG_FILES doc/misc/Makefile" ;;
23299 "doc/lispintro/Makefile") CONFIG_FILES
="$CONFIG_FILES doc/lispintro/Makefile" ;;
23300 "doc/lispref/Makefile") CONFIG_FILES
="$CONFIG_FILES doc/lispref/Makefile" ;;
23301 "src/Makefile") CONFIG_FILES
="$CONFIG_FILES src/Makefile" ;;
23302 "lwlib/Makefile") CONFIG_FILES
="$CONFIG_FILES lwlib/Makefile" ;;
23303 "lisp/Makefile") CONFIG_FILES
="$CONFIG_FILES lisp/Makefile" ;;
23304 "leim/Makefile") CONFIG_FILES
="$CONFIG_FILES leim/Makefile" ;;
23305 "test/automated/Makefile") CONFIG_FILES
="$CONFIG_FILES test/automated/Makefile" ;;
23306 "mkdirs") CONFIG_COMMANDS
="$CONFIG_COMMANDS mkdirs" ;;
23307 "epaths") CONFIG_COMMANDS
="$CONFIG_COMMANDS epaths" ;;
23308 "gdbinit") CONFIG_COMMANDS
="$CONFIG_COMMANDS gdbinit" ;;
23310 *) as_fn_error
"invalid argument: \`$ac_config_target'" "$LINENO" 5;;
23315 # If the user did not use the arguments to specify the items to instantiate,
23316 # then the envvar interface is used. Set only those that are not.
23317 # We use the long form for the default assignment because of an extremely
23318 # bizarre bug on SunOS 4.1.3.
23319 if $ac_need_defaults; then
23320 test "${CONFIG_FILES+set}" = set || CONFIG_FILES
=$config_files
23321 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS
=$config_headers
23322 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS
=$config_commands
23325 # Have a temporary directory for convenience. Make it in the build tree
23326 # simply because there is no reason against having it here, and in addition,
23327 # creating and moving files from /tmp can sometimes cause problems.
23328 # Hook for its removal unless debugging.
23329 # Note that there is a small window in which the directory will not be cleaned:
23330 # after its creation but before its name has been assigned to `$tmp'.
23334 trap 'exit_status=$?
23335 { test -z "$tmp" || test ! -d "$tmp" || rm -fr "$tmp"; } && exit $exit_status
23337 trap 'as_fn_exit 1' 1 2 13 15
23339 # Create a (secure) tmp directory for tmp files.
23342 tmp
=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
23343 test -n "$tmp" && test -d "$tmp"
23346 tmp
=.
/conf$$
-$RANDOM
23347 (umask 077 && mkdir
"$tmp")
23348 } || as_fn_error
"cannot create a temporary directory in ." "$LINENO" 5
23350 # Set up the scripts for CONFIG_FILES section.
23351 # No need to generate them if there are no CONFIG_FILES.
23352 # This happens for instance with `./config.status config.h'.
23353 if test -n "$CONFIG_FILES"; then
23355 if $AWK 'BEGIN { getline <"/dev/null" }' </dev
/null
2>/dev
/null
; then
23356 ac_cs_awk_getline
=:
23357 ac_cs_awk_pipe_init
=
23358 ac_cs_awk_read_file
='
23359 while ((getline aline < (F[key])) > 0)
23362 ac_cs_awk_pipe_fini
=
23364 ac_cs_awk_getline
=false
23365 ac_cs_awk_pipe_init
="print \"cat <<'|#_!!_#|' &&\""
23366 ac_cs_awk_read_file
='
23368 print "cat " F[key] " &&"
23369 '$ac_cs_awk_pipe_init
23370 # The final `:' finishes the AND list.
23371 ac_cs_awk_pipe_fini
='END { print "|#_!!_#|"; print ":" }'
23373 ac_cr
=`echo X | tr X '\015'`
23374 # On cygwin, bash can eat \r inside `` if the user requested igncr.
23375 # But we know of no other shell where ac_cr would be empty at this
23376 # point, so we can use a bashism as a fallback.
23377 if test "x$ac_cr" = x
; then
23378 eval ac_cr
=\$
\'\\r
\'
23380 ac_cs_awk_cr
=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
23381 if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
23384 ac_cs_awk_cr
=$ac_cr
23387 echo 'BEGIN {' >"$tmp/subs1.awk" &&
23390 # Create commands to substitute file output variables.
23392 echo "cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1" &&
23393 echo 'cat >>"\$tmp/subs1.awk" <<\\_ACAWK &&' &&
23394 echo "$ac_subst_files" |
sed 's/.*/F["&"]="$&"/' &&
23397 } >conf$
$files.sh
&&
23398 . .
/conf$
$files.sh ||
23399 as_fn_error
"could not make $CONFIG_STATUS" "$LINENO" 5
23400 rm -f conf$
$files.sh
23403 echo "cat >conf$$subs.awk <<_ACEOF" &&
23404 echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
23406 } >conf$$subs.sh ||
23407 as_fn_error "could not
make $CONFIG_STATUS" "$LINENO" 5
23408 ac_delim_num=`echo "$ac_subst_vars" | grep -c '$'`
23410 for ac_last_try in false false false false false :; do
23411 . ./conf$$subs.sh ||
23412 as_fn_error "could not
make $CONFIG_STATUS" "$LINENO" 5
23414 ac_delim_n=`sed -n "s
/.
*$ac_delim\$
/X
/p
" conf$$subs.awk | grep -c X`
23415 if test $ac_delim_n = $ac_delim_num; then
23417 elif $ac_last_try; then
23418 as_fn_error "could not
make $CONFIG_STATUS" "$LINENO" 5
23420 ac_delim="$ac_delim!$ac_delim _
$ac_delim!! "
23423 rm -f conf$$subs.sh
23425 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
23426 cat >>"\
$tmp/subs1.
awk" <<\\_ACAWK &&
23430 s/^/S["/; s
/!.
*/"]=/
23440 s/\(.\{148\}\)..*/\1/
23442 s/["\\]/\\&/g
; s
/^
/"/; s/$/\\n"\\/
23447 s
/["\\]/\\&/g; s/^/"/; s
/$
/"\\/
23454 s/\(.\{148\}\)..*/\1/
23456 s/["\\]/\\&/g
; s
/^
/"/; s/$/"/
23460 s
/["\\]/\\&/g; s/^/"/; s
/$
/"\\/
23465 ' <conf$$subs.awk | sed '
23470 ' >>$CONFIG_STATUS || ac_write_fail=1
23471 rm -f conf$$subs.awk
23472 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
23474 cat >>"\
$tmp/subs1.
awk" <<_ACAWK &&
23475 for (key in S) S_is_set[key] = 1
23477 \$ac_cs_awk_pipe_init
23481 nfields = split(line, field, "@
")
23483 len = length(field[1])
23484 for (i = 2; i < nfields; i++) {
23486 keylen = length(key)
23487 if (S_is_set[key]) {
23489 line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
23490 len += length(value) + length(field[++i])
23495 if (nfields == 3 && !substed) {
23497 if (F[key] != "" && line ~ /^[ ]*@.*@[ ]*$/) {
23498 \$ac_cs_awk_read_file
23504 \$ac_cs_awk_pipe_fini
23507 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
23508 if sed "s
/$ac_cr//" < /dev/null > /dev/null 2>&1; then
23509 sed "s
/$ac_cr\$
//; s
/$ac_cr/$ac_cs_awk_cr/g
"
23512 fi < "$tmp/subs1.
awk" > "$tmp/subs.
awk" \
23513 || as_fn_error "could not setup config files machinery
" "$LINENO" 5
23516 # VPATH may cause trouble with some makes, so we remove $(srcdir),
23517 # ${srcdir} and @srcdir@ from VPATH if srcdir is ".
", strip leading and
23518 # trailing colons and then remove the whole line if VPATH becomes empty
23519 # (actually we leave an empty line to preserve line numbers).
23520 if test "x
$srcdir" = x.; then
23521 ac_vpsub='/^[ ]*VPATH[ ]*=/{
23522 s/:*\$(srcdir):*/:/
23523 s/:*\${srcdir}:*/:/
23525 s/^\([^=]*=[ ]*\):*/\1/
23531 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
23532 fi # test -n "$CONFIG_FILES"
23534 # Set up the scripts for CONFIG_HEADERS section.
23535 # No need to generate them if there are no CONFIG_HEADERS.
23536 # This happens for instance with `./config.status Makefile'.
23537 if test -n "$CONFIG_HEADERS"; then
23538 cat >"$tmp/defines.
awk" <<\_ACAWK ||
23542 # Transform confdefs.h into an awk script `defines.awk', embedded as
23543 # here-document in config.status, that substitutes the proper values into
23544 # config.h.in to produce config.h.
23546 # Create a delimiter string that does not exist in confdefs.h, to ease
23547 # handling of long lines.
23549 for ac_last_try in false false :; do
23550 ac_t=`sed -n "/$ac_delim/p
" confdefs.h`
23551 if test -z "$ac_t"; then
23553 elif $ac_last_try; then
23554 as_fn_error "could not
make $CONFIG_HEADERS" "$LINENO" 5
23556 ac_delim="$ac_delim!$ac_delim _
$ac_delim!! "
23560 # For the awk script, D is an array of macro values keyed by name,
23561 # likewise P contains macro parameters if any. Preserve backslash
23562 # newline sequences.
23564 ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
23566 s/.\{148\}/&'"$ac_delim"'/g
23569 s/^[ ]*#[ ]*define[ ][ ]*/ /
23576 s
/^ \
('"$ac_word_re"'\
)\
(([^
()]*)\
)[ ]*\
(.
*\
)/P
["\1"]="\2"\
23578 s
/^ \
('"$ac_word_re"'\
)[ ]*\
(.
*\
)/D
["\1"]=" \2"/p
23582 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\
1"]="\
2"\
23583 D["\
1"]=" \
3\\\\\\n
"\\/p
23585 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\
1"]=" \
2\\\\\\n
"\\/p
23590 s/.\{148\}/&'"$ac_delim"'/g
23595 s/["\\]/\\&/g
; s
/^
/"/; s/$/"/p
23598 s
/["\\]/\\&/g; s/^/"/; s
/$
/\\\\\\n
"\\/p
23600 ' <confdefs.h | sed '
23601 s/'"$ac_delim"'/"\\\
23602 "/g' >>$CONFIG_STATUS || ac_write_fail=1
23604 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
23605 for (key in D) D_is_set[key] = 1
23608 /^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
23610 split(line, arg, " ")
23611 if (arg[1] == "#") {
23615 defundef
= substr
(arg
[1], 2)
23618 split(mac1
, mac2
, "(") #)
23620 prefix
= substr
(line
, 1, index
(line
, defundef
) - 1)
23621 if (D_is_set
[macro
]) {
23622 # Preserve the white space surrounding the "#".
23623 print prefix
"define", macro P
[macro
] D
[macro
]
23626 # Replace #undef with comments. This is necessary, for example,
23627 # in the case of _POSIX_SOURCE, which is predefined and required
23628 # on some systems where configure will not decide to define it.
23629 if (defundef
== "undef") {
23630 print
"/*", prefix defundef
, macro
, "*/"
23638 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail
=1
23639 as_fn_error
"could not setup config headers machinery" "$LINENO" 5
23640 fi # test -n "$CONFIG_HEADERS"
23643 eval set X
" :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS"
23648 :[FHLC
]) ac_mode
=$ac_tag; continue;;
23650 case $ac_mode$ac_tag in
23652 :L
* |
:C
*:*) as_fn_error
"invalid tag \`$ac_tag'" "$LINENO" 5;;
23653 :[FH
]-) ac_tag
=-:-;;
23654 :[FH
]*) ac_tag
=$ac_tag:$ac_tag.
in;;
23671 -) ac_f
="$tmp/stdin";;
23672 *) # Look for the file first in the build tree, then in the source tree
23673 # (if the path is not absolute). The absolute path cannot be DOS-style,
23674 # because $ac_f cannot contain `:'.
23678 *) test -f "$srcdir/$ac_f" && ac_f
="$srcdir/$ac_f";;
23680 as_fn_error
"cannot find input file: \`$ac_f'" "$LINENO" 5;;
23682 case $ac_f in *\'*) ac_f
=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
23683 as_fn_append ac_file_inputs
" '$ac_f'"
23686 # Let's still pretend it is `configure' which instantiates (i.e., don't
23687 # use $as_me), people would be surprised to read:
23688 # /* config.h. Generated by config.status. */
23689 configure_input
='Generated from '`
23690 $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
23692 if test x
"$ac_file" != x-
; then
23693 configure_input
="$ac_file. $configure_input"
23694 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
23695 $as_echo "$as_me: creating $ac_file" >&6;}
23697 # Neutralize special characters interpreted by sed in replacement strings.
23698 case $configure_input in #(
23699 *\
&* |
*\|
* |
*\\* )
23700 ac_sed_conf_input
=`$as_echo "$configure_input" |
23701 sed 's/[\\\\&|]/\\\\&/g'`;; #(
23702 *) ac_sed_conf_input
=$configure_input;;
23706 *:-:* |
*:-) cat >"$tmp/stdin" \
23707 || as_fn_error
"could not create $ac_file" "$LINENO" 5 ;;
23712 ac_dir
=`$as_dirname -- "$ac_file" ||
23713 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
23714 X"$ac_file" : 'X\(//\)[^/]' \| \
23715 X"$ac_file" : 'X\(//\)$' \| \
23716 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
23717 $as_echo X"$ac_file" |
23718 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
23722 /^X\(\/\/\)[^/].*/{
23735 as_dir
="$ac_dir"; as_fn_mkdir_p
23739 .
) ac_dir_suffix
= ac_top_builddir_sub
=. ac_top_build_prefix
= ;;
23741 ac_dir_suffix
=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
23742 # A ".." for each directory in $ac_dir_suffix.
23743 ac_top_builddir_sub
=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
23744 case $ac_top_builddir_sub in
23745 "") ac_top_builddir_sub
=. ac_top_build_prefix
= ;;
23746 *) ac_top_build_prefix
=$ac_top_builddir_sub/ ;;
23749 ac_abs_top_builddir
=$ac_pwd
23750 ac_abs_builddir
=$ac_pwd$ac_dir_suffix
23751 # for backward compatibility:
23752 ac_top_builddir
=$ac_top_build_prefix
23755 .
) # We are building in place.
23757 ac_top_srcdir
=$ac_top_builddir_sub
23758 ac_abs_top_srcdir
=$ac_pwd ;;
23759 [\\/]* | ?
:[\\/]* ) # Absolute name.
23760 ac_srcdir
=$srcdir$ac_dir_suffix;
23761 ac_top_srcdir
=$srcdir
23762 ac_abs_top_srcdir
=$srcdir ;;
23763 *) # Relative name.
23764 ac_srcdir
=$ac_top_build_prefix$srcdir$ac_dir_suffix
23765 ac_top_srcdir
=$ac_top_build_prefix$srcdir
23766 ac_abs_top_srcdir
=$ac_pwd/$srcdir ;;
23768 ac_abs_srcdir
=$ac_abs_top_srcdir$ac_dir_suffix
23778 [\\/$
]* | ?
:[\\/]* ) ac_INSTALL
=$INSTALL ;;
23779 *) ac_INSTALL
=$ac_top_build_prefix$INSTALL ;;
23781 ac_MKDIR_P
=$MKDIR_P
23783 [\\/$
]* | ?
:[\\/]* ) ;;
23784 */*) ac_MKDIR_P
=$ac_top_build_prefix$MKDIR_P ;;
23788 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail
=1
23789 # If the template does not know about datarootdir, expand it.
23790 # FIXME: This hack should be removed a few years after 2.60.
23791 ac_datarootdir_hack
=; ac_datarootdir_seen
=
23802 case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
23803 *datarootdir
*) ac_datarootdir_seen
=yes;;
23804 *@datadir@
*|
*@docdir@
*|
*@infodir@
*|
*@localedir@
*|
*@mandir@
*)
23805 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
23806 $as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
23808 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
23809 ac_datarootdir_hack='
23810 s&@datadir@&$datadir&g
23811 s&@docdir@&$docdir&g
23812 s&@infodir@&$infodir&g
23813 s&@localedir@&$localedir&g
23814 s&@mandir@&$mandir&g
23815 s&\\\${datarootdir}&$datarootdir&g' ;;
23819 # Neutralize VPATH when `$srcdir' = `.'.
23820 # Shell code in configure.ac might set extrasub.
23821 # FIXME: do we really want to maintain this feature?
23822 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
23823 ac_sed_extra="$ac_vpsub
23826 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail
=1
23828 /@
[a-zA-Z_
][a-zA-Z_0-9
]*@
/!b
23829 s|@configure_input@|
$ac_sed_conf_input|
;t t
23830 s
&@top_builddir@
&$ac_top_builddir_sub&;t t
23831 s
&@top_build_prefix@
&$ac_top_build_prefix&;t t
23832 s
&@srcdir@
&$ac_srcdir&;t t
23833 s
&@abs_srcdir@
&$ac_abs_srcdir&;t t
23834 s
&@top_srcdir@
&$ac_top_srcdir&;t t
23835 s
&@abs_top_srcdir@
&$ac_abs_top_srcdir&;t t
23836 s
&@builddir@
&$ac_builddir&;t t
23837 s
&@abs_builddir@
&$ac_abs_builddir&;t t
23838 s
&@abs_top_builddir@
&$ac_abs_top_builddir&;t t
23839 s
&@INSTALL@
&$ac_INSTALL&;t t
23840 s
&@MKDIR_P@
&$ac_MKDIR_P&;t t
23841 $ac_datarootdir_hack
23843 eval sed \"\$ac_sed_extra\" "$ac_file_inputs" |
23844 if $ac_cs_awk_getline; then
23845 $AWK -f "$tmp/subs.
awk"
23847 $AWK -f "$tmp/subs.
awk" | $SHELL
23849 || as_fn_error "could not create
$ac_file" "$LINENO" 5
23851 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
23852 { ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out
"`; test -n "$ac_out"; } &&
23853 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' "$tmp/out
"`; test -z "$ac_out"; } &&
23854 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING
: $ac_file contains a reference to the variable \
`datarootdir'
23855 which seems to be undefined. Please make sure it is defined." >&5
23856 $as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir
'
23857 which seems to be undefined. Please make sure it is defined." >&2;}
23861 -) cat "$tmp/out" && rm -f "$tmp/out";;
23862 *) rm -f "$ac_file" && mv "$tmp/out" "$ac_file";;
23864 || as_fn_error "could not create $ac_file" "$LINENO" 5
23870 if test x"$ac_file" != x-; then
23872 $as_echo "/* $configure_input */" \
23873 && eval '$AWK -f "$tmp/defines.awk"' "$ac_file_inputs"
23874 } >"$tmp/config.h" \
23875 || as_fn_error "could not create $ac_file" "$LINENO" 5
23876 if diff "$ac_file" "$tmp/config.h" >/dev/null 2>&1; then
23877 { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5
23878 $as_echo "$as_me: $ac_file is unchanged" >&6;}
23881 mv "$tmp/config.h" "$ac_file" \
23882 || as_fn_error "could not create $ac_file" "$LINENO" 5
23885 $as_echo "/* $configure_input */" \
23886 && eval '$AWK -f "$tmp/defines.awk"' "$ac_file_inputs" \
23887 || as_fn_error "could not create -" "$LINENO" 5
23889 # Compute "$ac_file"'s index
in $config_headers.
23892 for _am_header
in $config_headers :; do
23893 case $_am_header in
23894 $_am_arg |
$_am_arg:* )
23897 _am_stamp_count
=`expr $_am_stamp_count + 1` ;;
23900 echo "timestamp for $_am_arg" >`$as_dirname -- "$_am_arg" ||
23901 $as_expr X"$_am_arg" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
23902 X"$_am_arg" : 'X\(//\)[^/]' \| \
23903 X"$_am_arg" : 'X\(//\)$' \| \
23904 X"$_am_arg" : 'X\(/\)' \| . 2>/dev/null ||
23905 $as_echo X"$_am_arg" |
23906 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
23910 /^X\(\/\/\)[^/].*/{
23922 s/.*/./; q'`/stamp-h
$_am_stamp_count
23925 :C
) { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5
23926 $as_echo "$as_me: executing $ac_file commands" >&6;}
23931 case $ac_file$ac_mode in
23932 "depfiles":C
) test x
"$AMDEP_TRUE" != x
"" ||
{
23933 # Autoconf 2.62 quotes --file arguments for eval, but not when files
23934 # are listed without --file. Let's play safe and only enable the eval
23935 # if we detect the quoting.
23936 case $CONFIG_FILES in
23937 *\'*) eval set x
"$CONFIG_FILES" ;;
23938 *) set x
$CONFIG_FILES ;;
23943 # Strip MF so we end up with the name of the file.
23944 mf
=`echo "$mf" | sed -e 's/:.*$//'`
23945 # Check whether this is an Automake generated Makefile or not.
23946 # We used to match only the files named `Makefile.in', but
23947 # some people rename them; so instead we look at the file content.
23948 # Grep'ing the first line is not enough: some people post-process
23949 # each Makefile.in and add a new line on top of each file to say so.
23950 # Grep'ing the whole file is not good either: AIX grep has a line
23951 # limit of 2048, but all sed's we know have understand at least 4000.
23952 if sed -n 's,^#.*generated by automake.*,X,p' "$mf" |
grep X
>/dev
/null
2>&1; then
23953 dirpart
=`$as_dirname -- "$mf" ||
23954 $as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
23955 X"$mf" : 'X\(//\)[^/]' \| \
23956 X"$mf" : 'X\(//\)$' \| \
23957 X"$mf" : 'X\(/\)' \| . 2>/dev/null ||
23959 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
23963 /^X\(\/\/\)[^/].*/{
23979 # Extract the definition of DEPDIR, am__include, and am__quote
23980 # from the Makefile without running `make'.
23981 DEPDIR
=`sed -n 's/^DEPDIR = //p' < "$mf"`
23982 test -z "$DEPDIR" && continue
23983 am__include
=`sed -n 's/^am__include = //p' < "$mf"`
23984 test -z "am__include" && continue
23985 am__quote
=`sed -n 's/^am__quote = //p' < "$mf"`
23986 # When using ansi2knr, U may be empty or an underscore; expand it
23987 U
=`sed -n 's/^U = //p' < "$mf"`
23988 # Find all dependency output files, they are included files with
23989 # $(DEPDIR) in their names. We invoke sed twice because it is the
23990 # simplest approach to changing $(DEPDIR) to its actual value in the
23992 for file in `sed -n "
23993 s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \
23994 sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g' -e 's/\$U/'"$U"'/g'`; do
23995 # Make sure the directory exists.
23996 test -f "$dirpart/$file" && continue
23997 fdir
=`$as_dirname -- "$file" ||
23998 $as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
23999 X"$file" : 'X\(//\)[^/]' \| \
24000 X"$file" : 'X\(//\)$' \| \
24001 X"$file" : 'X\(/\)' \| . 2>/dev/null ||
24002 $as_echo X"$file" |
24003 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
24007 /^X\(\/\/\)[^/].*/{
24020 as_dir
=$dirpart/$fdir; as_fn_mkdir_p
24021 # echo "creating $dirpart/$file"
24022 echo '# dummy' > "$dirpart/$file"
24028 for dir
in etc lisp
; do
24029 test -d ${dir} || mkdir
${dir}
24033 echo creating src
/epaths.h
24034 ${MAKE-make} epaths-force
24037 if test ! -f src
/.gdbinit
&& test -f $srcdir/src
/.gdbinit
; then
24038 echo creating src
/.gdbinit
24039 echo source $srcdir/src
/.gdbinit
> src
/.gdbinit
24049 ac_clean_files
=$ac_clean_files_save
24051 test $ac_write_fail = 0 ||
24052 as_fn_error
"write failure creating $CONFIG_STATUS" "$LINENO" 5
24055 # configure is writing to config.log, and then calls config.status.
24056 # config.status does its own redirection, appending to config.log.
24057 # Unfortunately, on DOS this fails, as config.log is still kept open
24058 # by configure, so config.status won't be able to write to it; its
24059 # output is simply discarded. So we exec the FD to /dev/null,
24060 # effectively closing config.log, so it can be properly (re)opened and
24061 # appended to by config.status. When coming back to configure, we
24062 # need to make the FD available again.
24063 if test "$no_create" != yes; then
24065 ac_config_status_args
=
24066 test "$silent" = yes &&
24067 ac_config_status_args
="$ac_config_status_args --quiet"
24069 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success
=false
24071 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
24072 # would make configure fail if this is the last instruction.
24073 $ac_cs_success || as_fn_exit $?
24075 if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no
; then
24076 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
24077 $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}