2 # Guess values for system-dependent variables and create Makefiles.
3 # Generated by GNU Autoconf 2.65 for emacs 24.0.92.
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.92'
553 PACKAGE_STRING
='emacs 24.0.92'
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
1229 INSTALL_STRIP_PROGRAM
1271 program_transform_name
1282 ac_subst_files
='deps_frag
1286 enable_option_checking
1309 with_toolkit_scroll_bars
1321 with_pkg_config_prog
1325 enable_ns_self_contained
1327 enable_maintainer_mode
1328 enable_locallisppath
1330 enable_use_lisp_union_type
1333 enable_dependency_tracking
1337 ac_precious_vars
='build_alias
1349 # Initialize some variables set by options.
1351 ac_init_version
=false
1352 ac_unrecognized_opts
=
1353 ac_unrecognized_sep
=
1354 # The variables have the same names as the options, with
1355 # dashes changed to underlines.
1356 cache_file
=/dev
/null
1363 program_transform_name
=s
,x
,x
,
1371 # Installation directory options.
1372 # These are left unexpanded so users can "make install exec_prefix=/foo"
1373 # and all the variables that are supposed to be based on exec_prefix
1374 # by default will actually change.
1375 # Use braces instead of parens because sh, perl, etc. also accept them.
1376 # (The list follows the same order as the GNU Coding Standards.)
1377 bindir
='${exec_prefix}/bin'
1378 sbindir
='${exec_prefix}/sbin'
1379 libexecdir
='${exec_prefix}/libexec'
1380 datarootdir
='${prefix}/share'
1381 datadir
='${datarootdir}'
1382 sysconfdir
='${prefix}/etc'
1383 sharedstatedir
='${prefix}/com'
1384 localstatedir
='${prefix}/var'
1385 includedir
='${prefix}/include'
1386 oldincludedir
='/usr/include'
1387 docdir
='${datarootdir}/doc/${PACKAGE_TARNAME}'
1388 infodir
='${datarootdir}/info'
1393 libdir
='${exec_prefix}/lib'
1394 localedir
='${datarootdir}/locale'
1395 mandir
='${datarootdir}/man'
1401 # If the previous option needs an argument, assign it.
1402 if test -n "$ac_prev"; then
1403 eval $ac_prev=\
$ac_option
1409 *=*) ac_optarg
=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
1413 # Accept the important Cygnus configure options, so we can diagnose typos.
1415 case $ac_dashdash$ac_option in
1419 -bindir |
--bindir |
--bindi |
--bind |
--bin |
--bi)
1421 -bindir=* |
--bindir=* |
--bindi=* |
--bind=* |
--bin=* |
--bi=*)
1422 bindir
=$ac_optarg ;;
1424 -build |
--build |
--buil |
--bui |
--bu)
1425 ac_prev
=build_alias
;;
1426 -build=* |
--build=* |
--buil=* |
--bui=* |
--bu=*)
1427 build_alias
=$ac_optarg ;;
1429 -cache-file |
--cache-file |
--cache-fil |
--cache-fi \
1430 |
--cache-f |
--cache- |
--cache |
--cach |
--cac |
--ca |
--c)
1431 ac_prev
=cache_file
;;
1432 -cache-file=* |
--cache-file=* |
--cache-fil=* |
--cache-fi=* \
1433 |
--cache-f=* |
--cache-=* |
--cache=* |
--cach=* |
--cac=* |
--ca=* |
--c=*)
1434 cache_file
=$ac_optarg ;;
1436 --config-cache |
-C)
1437 cache_file
=config.cache
;;
1439 -datadir |
--datadir |
--datadi |
--datad)
1441 -datadir=* |
--datadir=* |
--datadi=* |
--datad=*)
1442 datadir
=$ac_optarg ;;
1444 -datarootdir |
--datarootdir |
--datarootdi |
--datarootd |
--dataroot \
1445 |
--dataroo |
--dataro |
--datar)
1446 ac_prev
=datarootdir
;;
1447 -datarootdir=* |
--datarootdir=* |
--datarootdi=* |
--datarootd=* \
1448 |
--dataroot=* |
--dataroo=* |
--dataro=* |
--datar=*)
1449 datarootdir
=$ac_optarg ;;
1451 -disable-* |
--disable-*)
1452 ac_useropt
=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
1453 # Reject names that are not valid shell variable names.
1454 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev
/null
&&
1455 as_fn_error
"invalid feature name: $ac_useropt"
1456 ac_useropt_orig
=$ac_useropt
1457 ac_useropt
=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1458 case $ac_user_opts in
1460 "enable_
$ac_useropt"
1462 *) ac_unrecognized_opts
="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
1463 ac_unrecognized_sep
=', ';;
1465 eval enable_
$ac_useropt=no
;;
1467 -docdir |
--docdir |
--docdi |
--doc |
--do)
1469 -docdir=* |
--docdir=* |
--docdi=* |
--doc=* |
--do=*)
1470 docdir
=$ac_optarg ;;
1472 -dvidir |
--dvidir |
--dvidi |
--dvid |
--dvi |
--dv)
1474 -dvidir=* |
--dvidir=* |
--dvidi=* |
--dvid=* |
--dvi=* |
--dv=*)
1475 dvidir
=$ac_optarg ;;
1477 -enable-* |
--enable-*)
1478 ac_useropt
=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
1479 # Reject names that are not valid shell variable names.
1480 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev
/null
&&
1481 as_fn_error
"invalid feature name: $ac_useropt"
1482 ac_useropt_orig
=$ac_useropt
1483 ac_useropt
=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1484 case $ac_user_opts in
1486 "enable_
$ac_useropt"
1488 *) ac_unrecognized_opts
="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
1489 ac_unrecognized_sep
=', ';;
1491 eval enable_
$ac_useropt=\
$ac_optarg ;;
1493 -exec-prefix |
--exec_prefix |
--exec-prefix |
--exec-prefi \
1494 |
--exec-pref |
--exec-pre |
--exec-pr |
--exec-p |
--exec- \
1495 |
--exec |
--exe |
--ex)
1496 ac_prev
=exec_prefix
;;
1497 -exec-prefix=* |
--exec_prefix=* |
--exec-prefix=* |
--exec-prefi=* \
1498 |
--exec-pref=* |
--exec-pre=* |
--exec-pr=* |
--exec-p=* |
--exec-=* \
1499 |
--exec=* |
--exe=* |
--ex=*)
1500 exec_prefix
=$ac_optarg ;;
1502 -gas |
--gas |
--ga |
--g)
1503 # Obsolete; use --with-gas.
1506 -help |
--help |
--hel |
--he |
-h)
1507 ac_init_help
=long
;;
1508 -help=r
* |
--help=r
* |
--hel=r
* |
--he=r
* |
-hr*)
1509 ac_init_help
=recursive
;;
1510 -help=s
* |
--help=s
* |
--hel=s
* |
--he=s
* |
-hs*)
1511 ac_init_help
=short
;;
1513 -host |
--host |
--hos |
--ho)
1514 ac_prev
=host_alias
;;
1515 -host=* |
--host=* |
--hos=* |
--ho=*)
1516 host_alias
=$ac_optarg ;;
1518 -htmldir |
--htmldir |
--htmldi |
--htmld |
--html |
--htm |
--ht)
1520 -htmldir=* |
--htmldir=* |
--htmldi=* |
--htmld=* |
--html=* |
--htm=* \
1522 htmldir
=$ac_optarg ;;
1524 -includedir |
--includedir |
--includedi |
--included |
--include \
1525 |
--includ |
--inclu |
--incl |
--inc)
1526 ac_prev
=includedir
;;
1527 -includedir=* |
--includedir=* |
--includedi=* |
--included=* |
--include=* \
1528 |
--includ=* |
--inclu=* |
--incl=* |
--inc=*)
1529 includedir
=$ac_optarg ;;
1531 -infodir |
--infodir |
--infodi |
--infod |
--info |
--inf)
1533 -infodir=* |
--infodir=* |
--infodi=* |
--infod=* |
--info=* |
--inf=*)
1534 infodir
=$ac_optarg ;;
1536 -libdir |
--libdir |
--libdi |
--libd)
1538 -libdir=* |
--libdir=* |
--libdi=* |
--libd=*)
1539 libdir
=$ac_optarg ;;
1541 -libexecdir |
--libexecdir |
--libexecdi |
--libexecd |
--libexec \
1542 |
--libexe |
--libex |
--libe)
1543 ac_prev
=libexecdir
;;
1544 -libexecdir=* |
--libexecdir=* |
--libexecdi=* |
--libexecd=* |
--libexec=* \
1545 |
--libexe=* |
--libex=* |
--libe=*)
1546 libexecdir
=$ac_optarg ;;
1548 -localedir |
--localedir |
--localedi |
--localed |
--locale)
1549 ac_prev
=localedir
;;
1550 -localedir=* |
--localedir=* |
--localedi=* |
--localed=* |
--locale=*)
1551 localedir
=$ac_optarg ;;
1553 -localstatedir |
--localstatedir |
--localstatedi |
--localstated \
1554 |
--localstate |
--localstat |
--localsta |
--localst |
--locals)
1555 ac_prev
=localstatedir
;;
1556 -localstatedir=* |
--localstatedir=* |
--localstatedi=* |
--localstated=* \
1557 |
--localstate=* |
--localstat=* |
--localsta=* |
--localst=* |
--locals=*)
1558 localstatedir
=$ac_optarg ;;
1560 -mandir |
--mandir |
--mandi |
--mand |
--man |
--ma |
--m)
1562 -mandir=* |
--mandir=* |
--mandi=* |
--mand=* |
--man=* |
--ma=* |
--m=*)
1563 mandir
=$ac_optarg ;;
1565 -nfp |
--nfp |
--nf)
1566 # Obsolete; use --without-fp.
1569 -no-create |
--no-create |
--no-creat |
--no-crea |
--no-cre \
1570 |
--no-cr |
--no-c |
-n)
1573 -no-recursion |
--no-recursion |
--no-recursio |
--no-recursi \
1574 |
--no-recurs |
--no-recur |
--no-recu |
--no-rec |
--no-re |
--no-r)
1577 -oldincludedir |
--oldincludedir |
--oldincludedi |
--oldincluded \
1578 |
--oldinclude |
--oldinclud |
--oldinclu |
--oldincl |
--oldinc \
1579 |
--oldin |
--oldi |
--old |
--ol |
--o)
1580 ac_prev
=oldincludedir
;;
1581 -oldincludedir=* |
--oldincludedir=* |
--oldincludedi=* |
--oldincluded=* \
1582 |
--oldinclude=* |
--oldinclud=* |
--oldinclu=* |
--oldincl=* |
--oldinc=* \
1583 |
--oldin=* |
--oldi=* |
--old=* |
--ol=* |
--o=*)
1584 oldincludedir
=$ac_optarg ;;
1586 -prefix |
--prefix |
--prefi |
--pref |
--pre |
--pr |
--p)
1588 -prefix=* |
--prefix=* |
--prefi=* |
--pref=* |
--pre=* |
--pr=* |
--p=*)
1589 prefix
=$ac_optarg ;;
1591 -program-prefix |
--program-prefix |
--program-prefi |
--program-pref \
1592 |
--program-pre |
--program-pr |
--program-p)
1593 ac_prev
=program_prefix
;;
1594 -program-prefix=* |
--program-prefix=* |
--program-prefi=* \
1595 |
--program-pref=* |
--program-pre=* |
--program-pr=* |
--program-p=*)
1596 program_prefix
=$ac_optarg ;;
1598 -program-suffix |
--program-suffix |
--program-suffi |
--program-suff \
1599 |
--program-suf |
--program-su |
--program-s)
1600 ac_prev
=program_suffix
;;
1601 -program-suffix=* |
--program-suffix=* |
--program-suffi=* \
1602 |
--program-suff=* |
--program-suf=* |
--program-su=* |
--program-s=*)
1603 program_suffix
=$ac_optarg ;;
1605 -program-transform-name |
--program-transform-name \
1606 |
--program-transform-nam |
--program-transform-na \
1607 |
--program-transform-n |
--program-transform- \
1608 |
--program-transform |
--program-transfor \
1609 |
--program-transfo |
--program-transf \
1610 |
--program-trans |
--program-tran \
1611 |
--progr-tra |
--program-tr |
--program-t)
1612 ac_prev
=program_transform_name
;;
1613 -program-transform-name=* |
--program-transform-name=* \
1614 |
--program-transform-nam=* |
--program-transform-na=* \
1615 |
--program-transform-n=* |
--program-transform-=* \
1616 |
--program-transform=* |
--program-transfor=* \
1617 |
--program-transfo=* |
--program-transf=* \
1618 |
--program-trans=* |
--program-tran=* \
1619 |
--progr-tra=* |
--program-tr=* |
--program-t=*)
1620 program_transform_name
=$ac_optarg ;;
1622 -pdfdir |
--pdfdir |
--pdfdi |
--pdfd |
--pdf |
--pd)
1624 -pdfdir=* |
--pdfdir=* |
--pdfdi=* |
--pdfd=* |
--pdf=* |
--pd=*)
1625 pdfdir
=$ac_optarg ;;
1627 -psdir |
--psdir |
--psdi |
--psd |
--ps)
1629 -psdir=* |
--psdir=* |
--psdi=* |
--psd=* |
--ps=*)
1632 -q |
-quiet |
--quiet |
--quie |
--qui |
--qu |
--q \
1633 |
-silent |
--silent |
--silen |
--sile |
--sil)
1636 -sbindir |
--sbindir |
--sbindi |
--sbind |
--sbin |
--sbi |
--sb)
1638 -sbindir=* |
--sbindir=* |
--sbindi=* |
--sbind=* |
--sbin=* \
1640 sbindir
=$ac_optarg ;;
1642 -sharedstatedir |
--sharedstatedir |
--sharedstatedi \
1643 |
--sharedstated |
--sharedstate |
--sharedstat |
--sharedsta \
1644 |
--sharedst |
--shareds |
--shared |
--share |
--shar \
1646 ac_prev
=sharedstatedir
;;
1647 -sharedstatedir=* |
--sharedstatedir=* |
--sharedstatedi=* \
1648 |
--sharedstated=* |
--sharedstate=* |
--sharedstat=* |
--sharedsta=* \
1649 |
--sharedst=* |
--shareds=* |
--shared=* |
--share=* |
--shar=* \
1651 sharedstatedir
=$ac_optarg ;;
1653 -site |
--site |
--sit)
1655 -site=* |
--site=* |
--sit=*)
1658 -srcdir |
--srcdir |
--srcdi |
--srcd |
--src |
--sr)
1660 -srcdir=* |
--srcdir=* |
--srcdi=* |
--srcd=* |
--src=* |
--sr=*)
1661 srcdir
=$ac_optarg ;;
1663 -sysconfdir |
--sysconfdir |
--sysconfdi |
--sysconfd |
--sysconf \
1664 |
--syscon |
--sysco |
--sysc |
--sys |
--sy)
1665 ac_prev
=sysconfdir
;;
1666 -sysconfdir=* |
--sysconfdir=* |
--sysconfdi=* |
--sysconfd=* |
--sysconf=* \
1667 |
--syscon=* |
--sysco=* |
--sysc=* |
--sys=* |
--sy=*)
1668 sysconfdir
=$ac_optarg ;;
1670 -target |
--target |
--targe |
--targ |
--tar |
--ta |
--t)
1671 ac_prev
=target_alias
;;
1672 -target=* |
--target=* |
--targe=* |
--targ=* |
--tar=* |
--ta=* |
--t=*)
1673 target_alias
=$ac_optarg ;;
1675 -v |
-verbose |
--verbose |
--verbos |
--verbo |
--verb)
1678 -version |
--version |
--versio |
--versi |
--vers |
-V)
1679 ac_init_version
=: ;;
1682 ac_useropt
=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1683 # Reject names that are not valid shell variable names.
1684 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev
/null
&&
1685 as_fn_error
"invalid package name: $ac_useropt"
1686 ac_useropt_orig
=$ac_useropt
1687 ac_useropt
=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1688 case $ac_user_opts in
1692 *) ac_unrecognized_opts
="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1693 ac_unrecognized_sep
=', ';;
1695 eval with_
$ac_useropt=\
$ac_optarg ;;
1697 -without-* |
--without-*)
1698 ac_useropt
=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1699 # Reject names that are not valid shell variable names.
1700 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev
/null
&&
1701 as_fn_error
"invalid package name: $ac_useropt"
1702 ac_useropt_orig
=$ac_useropt
1703 ac_useropt
=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1704 case $ac_user_opts in
1708 *) ac_unrecognized_opts
="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1709 ac_unrecognized_sep
=', ';;
1711 eval with_
$ac_useropt=no
;;
1714 # Obsolete; use --with-x.
1717 -x-includes |
--x-includes |
--x-include |
--x-includ |
--x-inclu \
1718 |
--x-incl |
--x-inc |
--x-in |
--x-i)
1719 ac_prev
=x_includes
;;
1720 -x-includes=* |
--x-includes=* |
--x-include=* |
--x-includ=* |
--x-inclu=* \
1721 |
--x-incl=* |
--x-inc=* |
--x-in=* |
--x-i=*)
1722 x_includes
=$ac_optarg ;;
1724 -x-libraries |
--x-libraries |
--x-librarie |
--x-librari \
1725 |
--x-librar |
--x-libra |
--x-libr |
--x-lib |
--x-li |
--x-l)
1726 ac_prev
=x_libraries
;;
1727 -x-libraries=* |
--x-libraries=* |
--x-librarie=* |
--x-librari=* \
1728 |
--x-librar=* |
--x-libra=* |
--x-libr=* |
--x-lib=* |
--x-li=* |
--x-l=*)
1729 x_libraries
=$ac_optarg ;;
1731 -*) as_fn_error
"unrecognized option: \`$ac_option'
1732 Try \`$0 --help' for more information."
1736 ac_envvar
=`expr "x$ac_option" : 'x\([^=]*\)='`
1737 # Reject names that are not valid shell variable names.
1738 case $ac_envvar in #(
1739 '' |
[0-9]* |
*[!_
$as_cr_alnum]* )
1740 as_fn_error
"invalid variable name: \`$ac_envvar'" ;;
1742 eval $ac_envvar=\
$ac_optarg
1743 export $ac_envvar ;;
1746 # FIXME: should be removed in autoconf 3.0.
1747 $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1748 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev
/null
&&
1749 $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1750 : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
1756 if test -n "$ac_prev"; then
1757 ac_option
=--`echo $ac_prev | sed 's/_/-/g'`
1758 as_fn_error
"missing argument to $ac_option"
1761 if test -n "$ac_unrecognized_opts"; then
1762 case $enable_option_checking in
1764 fatal
) as_fn_error
"unrecognized options: $ac_unrecognized_opts" ;;
1765 *) $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
1769 # Check all directory arguments for consistency.
1770 for ac_var
in exec_prefix prefix bindir sbindir libexecdir datarootdir \
1771 datadir sysconfdir sharedstatedir localstatedir includedir \
1772 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1773 libdir localedir mandir
1775 eval ac_val
=\$
$ac_var
1776 # Remove trailing slashes.
1779 ac_val
=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1780 eval $ac_var=\
$ac_val;;
1782 # Be sure to have absolute directory names.
1784 [\\/$
]* | ?
:[\\/]* ) continue;;
1785 NONE |
'' ) case $ac_var in *prefix
) continue;; esac;;
1787 as_fn_error
"expected an absolute directory name for --$ac_var: $ac_val"
1790 # There might be people who depend on the old broken behavior: `$host'
1791 # used to hold the argument of --host etc.
1792 # FIXME: To remove some day.
1795 target
=$target_alias
1797 # FIXME: To remove some day.
1798 if test "x$host_alias" != x
; then
1799 if test "x$build_alias" = x
; then
1800 cross_compiling
=maybe
1801 $as_echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
1802 If a cross compiler is detected then cross compile mode will be used." >&2
1803 elif test "x$build_alias" != "x$host_alias"; then
1809 test -n "$host_alias" && ac_tool_prefix
=$host_alias-
1811 test "$silent" = yes && exec 6>/dev
/null
1814 ac_pwd
=`pwd` && test -n "$ac_pwd" &&
1815 ac_ls_di
=`ls -di .` &&
1816 ac_pwd_ls_di
=`cd "$ac_pwd" && ls -di .` ||
1817 as_fn_error
"working directory cannot be determined"
1818 test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1819 as_fn_error
"pwd does not report name of working directory"
1822 # Find the source files, if location was not specified.
1823 if test -z "$srcdir"; then
1824 ac_srcdir_defaulted
=yes
1825 # Try the directory containing this script, then the parent directory.
1826 ac_confdir
=`$as_dirname -- "$as_myself" ||
1827 $as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1828 X"$as_myself" : 'X\(//\)[^/]' \| \
1829 X"$as_myself" : 'X\(//\)$' \| \
1830 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1831 $as_echo X"$as_myself" |
1832 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1850 if test ! -r "$srcdir/$ac_unique_file"; then
1854 ac_srcdir_defaulted
=no
1856 if test ! -r "$srcdir/$ac_unique_file"; then
1857 test "$ac_srcdir_defaulted" = yes && srcdir
="$ac_confdir or .."
1858 as_fn_error
"cannot find sources ($ac_unique_file) in $srcdir"
1860 ac_msg
="sources are in $srcdir, but \`cd $srcdir' does not work"
1862 cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error "$ac_msg"
1864 # When building in place, set srcdir=.
1865 if test "$ac_abs_confdir" = "$ac_pwd"; then
1868 # Remove unnecessary trailing slashes from srcdir.
1869 # Double slashes in file names in object file debugging info
1870 # mess up M-x gdb in Emacs.
1872 */) srcdir
=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1874 for ac_var
in $ac_precious_vars; do
1875 eval ac_env_
${ac_var}_set=\${${ac_var}+set}
1876 eval ac_env_
${ac_var}_value
=\$
${ac_var}
1877 eval ac_cv_env_
${ac_var}_set=\${${ac_var}+set}
1878 eval ac_cv_env_
${ac_var}_value
=\$
${ac_var}
1882 # Report the --help message.
1884 if test "$ac_init_help" = "long"; then
1885 # Omit some internal or obsolete options to make the list less imposing.
1886 # This message is too long to be a string in the A/UX 3.1 sh.
1888 \`configure' configures emacs 24.0.92 to adapt to many kinds of systems.
1890 Usage: $0 [OPTION]... [VAR=VALUE]...
1892 To assign environment variables (e.g., CC, CFLAGS...), specify them as
1893 VAR=VALUE. See below for descriptions of some of the useful variables.
1895 Defaults for the options are specified in brackets.
1898 -h, --help display this help and exit
1899 --help=short display options specific to this package
1900 --help=recursive display the short help of all the included packages
1901 -V, --version display version information and exit
1902 -q, --quiet, --silent do not print \`checking...' messages
1903 --cache-file=FILE cache test results in FILE [disabled]
1904 -C, --config-cache alias for \`--cache-file=config.cache'
1905 -n, --no-create do not create output files
1906 --srcdir=DIR find the sources in DIR [configure dir or \`..']
1908 Installation directories:
1909 --prefix=PREFIX install architecture-independent files in PREFIX
1910 [$ac_default_prefix]
1911 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
1914 By default, \`make install' will install all the files in
1915 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
1916 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1917 for instance \`--prefix=\$HOME'.
1919 For better control, use the options below.
1921 Fine tuning of the installation directories:
1922 --bindir=DIR user executables [EPREFIX/bin]
1923 --sbindir=DIR system admin executables [EPREFIX/sbin]
1924 --libexecdir=DIR program executables [EPREFIX/libexec]
1925 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
1926 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
1927 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
1928 --libdir=DIR object code libraries [EPREFIX/lib]
1929 --includedir=DIR C header files [PREFIX/include]
1930 --oldincludedir=DIR C header files for non-gcc [/usr/include]
1931 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
1932 --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
1933 --infodir=DIR info documentation [DATAROOTDIR/info]
1934 --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
1935 --mandir=DIR man documentation [DATAROOTDIR/man]
1936 --docdir=DIR documentation root [DATAROOTDIR/doc/emacs]
1937 --htmldir=DIR html documentation [DOCDIR]
1938 --dvidir=DIR dvi documentation [DOCDIR]
1939 --pdfdir=DIR pdf documentation [DOCDIR]
1940 --psdir=DIR ps documentation [DOCDIR]
1946 --program-prefix=PREFIX prepend PREFIX to installed program names
1947 --program-suffix=SUFFIX append SUFFIX to installed program names
1948 --program-transform-name=PROGRAM run
sed PROGRAM on installed program names
1951 --x-includes=DIR X include files are
in DIR
1952 --x-libraries=DIR X library files are
in DIR
1955 --build=BUILD configure
for building on BUILD
[guessed
]
1956 --host=HOST cross-compile to build programs to run on HOST
[BUILD
]
1960 if test -n "$ac_init_help"; then
1961 case $ac_init_help in
1962 short | recursive
) echo "Configuration of emacs 24.0.92:";;
1967 --disable-option-checking ignore unrecognized
--enable/--with options
1968 --disable-FEATURE do not include FEATURE
(same as
--enable-FEATURE=no
)
1969 --enable-FEATURE[=ARG
] include FEATURE
[ARG
=yes]
1970 --disable-ns-self-contained
1971 disable self contained build under NeXTstep
1972 --enable-asserts compile code with asserts enabled
1973 --disable-maintainer-mode
1974 disable
make rules and dependencies not useful
(and
1975 sometimes confusing
) to the casual installer
1976 --enable-locallisppath=PATH
1977 directories Emacs should search
for lisp files
1978 specific to this site
1979 --enable-checking[=LIST
]
1980 enable expensive run-time checks. With LIST
, enable
1981 only specific categories of checks. Categories are
:
1982 all
,yes,no. Flags are
: stringbytes
, stringoverrun
,
1983 stringfreelist
, xmallocoverrun
, conslist
1984 --enable-use-lisp-union-type
1985 use a union
for the Lisp_Object data
type. This is
1986 only useful
for development
for catching certain
1988 --enable-profiling build emacs with profiling support. This might not
1989 work on all platforms
1990 --enable-autodepend automatically generate dependencies to .h-files.
1991 Requires GNU Make and Gcc. Enabled
if GNU Make and
1993 --disable-dependency-tracking speeds up one-time build
1994 --enable-dependency-tracking do not reject slow dependency extractors
1995 --disable-largefile omit support
for large files
1998 --with-PACKAGE[=ARG
] use PACKAGE
[ARG
=yes]
1999 --without-PACKAGE do not use PACKAGE
(same as
--with-PACKAGE=no
)
2000 --without-pop don
't support POP mail retrieval with movemail
2001 --with-kerberos support Kerberos-authenticated POP
2002 --with-kerberos5 support Kerberos version 5 authenticated POP
2003 --with-hesiod support Hesiod to get the POP server host
2004 --with-mmdf support MMDF mailboxes
2005 --with-mail-unlink unlink, rather than empty, mail spool after reading
2006 --with-mailhost=HOSTNAME
2007 string giving default POP mail host
2008 --without-sound don't compile with sound support
2009 --without-sync-input process async input synchronously
2010 --with-x-toolkit=KIT use an X toolkit
(KIT one of
: yes or gtk
, gtk3
,
2011 lucid or athena
, motif
, no
)
2012 --with-wide-int prefer wide Emacs integers
(typically
62-bit)
2013 --without-xpm don
't compile with XPM image support
2014 --without-jpeg don't compile with JPEG image support
2015 --without-tiff don
't compile with TIFF image support
2016 --without-gif don't compile with GIF image support
2017 --without-png don
't compile with PNG image support
2018 --without-rsvg don't compile with SVG image support
2019 --without-xml2 don
't compile with XML parsing support
2020 --without-imagemagick don't compile with ImageMagick image support
2021 --without-xft don
't use XFT for anti aliased fonts
2022 --without-libotf don't use libotf
for OpenType font support
2023 --without-m17n-flt don
't use m17n-flt for text shaping
2024 --without-toolkit-scroll-bars
2025 don't use Motif or Xaw3d scroll bars
2026 --without-xaw3d don
't use Xaw3d
2027 --without-xim don't use X11 XIM
2028 --with-ns use NeXTstep
(Cocoa or GNUstep
) windowing system
2029 --without-gpm don
't use -lgpm for mouse support on a GNU/Linux
2031 --without-dbus don't compile with D-Bus support
2032 --without-gconf don
't compile with GConf support
2033 --without-gsettings don't compile with GSettings support
2034 --without-selinux don
't compile with SELinux support
2035 --without-gnutls don't use
-lgnutls for SSL
/TLS support
2036 --without-makeinfo don
't require makeinfo for building manuals
2037 --without-compress-info don't
compress the installed Info pages
2038 --with-pkg-config-prog=PATH
2039 path to pkg-config
for finding GTK and librsvg
2040 --with-crt-dir=DIR directory containing crtn.o etc. The default is
2041 /usr
/lib
, or
/usr
/lib64 on some platforms.
2042 --with-gameuser=USER user
for shared game score files
2043 --with-gnustep-conf=PATH
2044 path to GNUstep.conf
; default
$GNUSTEP_CONFIG_FILE,
2045 or
/etc
/GNUstep
/GNUstep.conf
2046 --with-x use the X Window System
2048 Some influential environment variables
:
2049 CC C compiler
command
2050 CFLAGS C compiler flags
2051 LDFLAGS linker flags
, e.g.
-L<lib dir
> if you have libraries
in a
2052 nonstandard directory
<lib dir
>
2053 LIBS libraries to pass to the linker
, e.g.
-l<library
>
2054 CPPFLAGS
(Objective
) C
/C
++ preprocessor flags
, e.g.
-I<include dir
> if
2055 you have headers
in a nonstandard directory
<include dir
>
2057 XMKMF Path to xmkmf
, Makefile generator
for X Window System
2059 Use these variables to override the choices made by
`configure' or to help
2060 it to find libraries and programs with nonstandard names/locations.
2062 Report bugs to the package provider.
2067 if test "$ac_init_help" = "recursive"; then
2068 # If there are subdirs, report their specific --help.
2069 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
2070 test -d "$ac_dir" ||
2071 { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
2076 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
2078 ac_dir_suffix=/`$as_echo "$ac_dir" |
sed 's|^\.[\\/]||'`
2079 # A ".." for each directory in $ac_dir_suffix.
2080 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" |
sed 's|/[^\\/]*|/..|g;s|/||'`
2081 case $ac_top_builddir_sub in
2082 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
2083 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
2086 ac_abs_top_builddir=$ac_pwd
2087 ac_abs_builddir=$ac_pwd$ac_dir_suffix
2088 # for backward compatibility:
2089 ac_top_builddir=$ac_top_build_prefix
2092 .) # We are building in place.
2094 ac_top_srcdir=$ac_top_builddir_sub
2095 ac_abs_top_srcdir=$ac_pwd ;;
2096 [\\/]* | ?:[\\/]* ) # Absolute name.
2097 ac_srcdir=$srcdir$ac_dir_suffix;
2098 ac_top_srcdir=$srcdir
2099 ac_abs_top_srcdir=$srcdir ;;
2101 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
2102 ac_top_srcdir=$ac_top_build_prefix$srcdir
2103 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
2105 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
2107 cd "$ac_dir" || { ac_status=$?; continue; }
2108 # Check for guested configure.
2109 if test -f "$ac_srcdir/configure.gnu"; then
2111 $SHELL "$ac_srcdir/configure.gnu" --help=recursive
2112 elif test -f "$ac_srcdir/configure"; then
2114 $SHELL "$ac_srcdir/configure" --help=recursive
2116 $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
2118 cd "$ac_pwd" || { ac_status=$?; break; }
2122 test -n "$ac_init_help" && exit $ac_status
2123 if $ac_init_version; then
2125 emacs configure 24.0.92
2126 generated by GNU Autoconf 2.65
2128 Copyright (C) 2009 Free Software Foundation, Inc.
2129 This configure script is free software; the Free Software Foundation
2130 gives unlimited permission to copy, distribute and modify it.
2135 ## ------------------------ ##
2136 ## Autoconf initialization. ##
2137 ## ------------------------ ##
2139 # ac_fn_c_try_compile LINENO
2140 # --------------------------
2141 # Try to compile conftest.$ac_ext, and return whether this succeeded.
2142 ac_fn_c_try_compile ()
2144 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2145 rm -f conftest.$ac_objext
2146 if { { ac_try="$ac_compile"
2148 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
2149 *) ac_try_echo
=$ac_try;;
2151 eval ac_try_echo
="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2152 $as_echo "$ac_try_echo"; } >&5
2153 (eval "$ac_compile") 2>conftest.err
2155 if test -s conftest.err
; then
2156 grep -v '^ *+' conftest.err
>conftest.er1
2157 cat conftest.er1
>&5
2158 mv -f conftest.er1 conftest.err
2160 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2161 test $ac_status = 0; } && {
2162 test -z "$ac_c_werror_flag" ||
2163 test ! -s conftest.err
2164 } && test -s conftest.
$ac_objext; then :
2167 $as_echo "$as_me: failed program was:" >&5
2168 sed 's/^/| /' conftest.
$ac_ext >&5
2172 eval $as_lineno_stack; test "x$as_lineno_stack" = x
&& { as_lineno
=; unset as_lineno
;}
2173 as_fn_set_status
$ac_retval
2175 } # ac_fn_c_try_compile
2177 # ac_fn_c_try_cpp LINENO
2178 # ----------------------
2179 # Try to preprocess conftest.$ac_ext, and return whether this succeeded.
2182 as_lineno
=${as_lineno-"$1"} as_lineno_stack
=as_lineno_stack
=$as_lineno_stack
2183 if { { ac_try
="$ac_cpp conftest.$ac_ext"
2185 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
2186 *) ac_try_echo=$ac_try;;
2188 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2189 $as_echo "$ac_try_echo"; } >&5
2190 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
2192 if test -s conftest.err; then
2193 grep -v '^ *+' conftest.err >conftest.er1
2194 cat conftest.er1 >&5
2195 mv -f conftest.er1 conftest.err
2197 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2198 test $ac_status = 0; } >/dev/null && {
2199 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
2200 test ! -s conftest.err
2204 $as_echo "$as_me: failed program was:" >&5
2205 sed 's/^/| /' conftest.$ac_ext >&5
2209 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2210 as_fn_set_status $ac_retval
2214 # ac_fn_c_check_header_mongrel LINENO HEADER VAR INCLUDES
2215 # -------------------------------------------------------
2216 # Tests whether HEADER exists, giving a warning if it cannot be compiled using
2217 # the include files in INCLUDES and setting the cache variable VAR
2219 ac_fn_c_check_header_mongrel ()
2221 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2222 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
2223 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2224 $as_echo_n "checking for $2... " >&6; }
2225 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
2226 $as_echo_n "(cached) " >&6
2229 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2230 $as_echo "$ac_res" >&6; }
2232 # Is the header compilable?
2233 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5
2234 $as_echo_n "checking $2 usability... " >&6; }
2235 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2236 /* end confdefs.h. */
2240 if ac_fn_c_try_compile "$LINENO"; then :
2241 ac_header_compiler=yes
2243 ac_header_compiler=no
2245 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2246 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5
2247 $as_echo "$ac_header_compiler" >&6; }
2249 # Is the header present?
2250 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5
2251 $as_echo_n "checking $2 presence... " >&6; }
2252 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2253 /* end confdefs.h. */
2256 if ac_fn_c_try_cpp "$LINENO"; then :
2257 ac_header_preproc=yes
2259 ac_header_preproc=no
2261 rm -f conftest.err conftest.$ac_ext
2262 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5
2263 $as_echo "$ac_header_preproc" >&6; }
2265 # So? What about this header?
2266 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in #((
2268 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5
2269 $as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;}
2270 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
2271 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
2274 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5
2275 $as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;}
2276 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: check for missing prerequisite headers?" >&5
2277 $as_echo "$as_me: WARNING: $2: check for missing prerequisite headers?" >&2;}
2278 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5
2279 $as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;}
2280 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&5
2281 $as_echo "$as_me: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&2;}
2282 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
2283 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
2286 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2287 $as_echo_n "checking for $2... " >&6; }
2288 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
2289 $as_echo_n "(cached) " >&6
2291 eval "$3=\$ac_header_compiler"
2294 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2295 $as_echo "$ac_res" >&6; }
2297 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2299 } # ac_fn_c_check_header_mongrel
2301 # ac_fn_c_try_run LINENO
2302 # ----------------------
2303 # Try to link conftest.$ac_ext, and return whether this succeeded. Assumes
2304 # that executables *can* be run.
2307 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2308 if { { ac_try="$ac_link"
2310 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
2311 *) ac_try_echo
=$ac_try;;
2313 eval ac_try_echo
="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2314 $as_echo "$ac_try_echo"; } >&5
2315 (eval "$ac_link") 2>&5
2317 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2318 test $ac_status = 0; } && { ac_try
='./conftest$ac_exeext'
2319 { { case "(($ac_try" in
2320 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
2321 *) ac_try_echo=$ac_try;;
2323 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2324 $as_echo "$ac_try_echo"; } >&5
2325 (eval "$ac_try") 2>&5
2327 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2328 test $ac_status = 0; }; }; then :
2331 $as_echo "$as_me: program exited with status $ac_status" >&5
2332 $as_echo "$as_me: failed program was:" >&5
2333 sed 's/^/| /' conftest.$ac_ext >&5
2335 ac_retval=$ac_status
2337 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
2338 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2339 as_fn_set_status $ac_retval
2343 # ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES
2344 # -------------------------------------------------------
2345 # Tests whether HEADER exists and can be compiled using the include files in
2346 # INCLUDES, setting the cache variable VAR accordingly.
2347 ac_fn_c_check_header_compile ()
2349 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2350 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2351 $as_echo_n "checking for $2... " >&6; }
2352 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
2353 $as_echo_n "(cached) " >&6
2355 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2356 /* end confdefs.h. */
2360 if ac_fn_c_try_compile "$LINENO"; then :
2365 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2368 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2369 $as_echo "$ac_res" >&6; }
2370 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2372 } # ac_fn_c_check_header_compile
2374 # ac_fn_c_try_link LINENO
2375 # -----------------------
2376 # Try to link conftest.$ac_ext, and return whether this succeeded.
2379 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2380 rm -f conftest.$ac_objext conftest$ac_exeext
2381 if { { ac_try="$ac_link"
2383 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
2384 *) ac_try_echo
=$ac_try;;
2386 eval ac_try_echo
="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2387 $as_echo "$ac_try_echo"; } >&5
2388 (eval "$ac_link") 2>conftest.err
2390 if test -s conftest.err
; then
2391 grep -v '^ *+' conftest.err
>conftest.er1
2392 cat conftest.er1
>&5
2393 mv -f conftest.er1 conftest.err
2395 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2396 test $ac_status = 0; } && {
2397 test -z "$ac_c_werror_flag" ||
2398 test ! -s conftest.err
2399 } && test -s conftest
$ac_exeext && {
2400 test "$cross_compiling" = yes ||
2401 $as_test_x conftest
$ac_exeext
2405 $as_echo "$as_me: failed program was:" >&5
2406 sed 's/^/| /' conftest.
$ac_ext >&5
2410 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
2411 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
2412 # interfere with the next link command; also delete a directory that is
2413 # left behind by Apple's compiler. We do this before executing the actions.
2414 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
2415 eval $as_lineno_stack; test "x$as_lineno_stack" = x
&& { as_lineno
=; unset as_lineno
;}
2416 as_fn_set_status
$ac_retval
2418 } # ac_fn_c_try_link
2420 # ac_fn_c_check_decl LINENO SYMBOL VAR
2421 # ------------------------------------
2422 # Tests whether SYMBOL is declared, setting cache variable VAR accordingly.
2423 ac_fn_c_check_decl
()
2425 as_lineno
=${as_lineno-"$1"} as_lineno_stack
=as_lineno_stack
=$as_lineno_stack
2426 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $2 is declared" >&5
2427 $as_echo_n "checking whether $2 is declared... " >&6; }
2428 if { as_var
=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
2429 $as_echo_n "(cached) " >&6
2431 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
2432 /* end confdefs.h. */
2445 if ac_fn_c_try_compile
"$LINENO"; then :
2450 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
2453 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2454 $as_echo "$ac_res" >&6; }
2455 eval $as_lineno_stack; test "x$as_lineno_stack" = x
&& { as_lineno
=; unset as_lineno
;}
2457 } # ac_fn_c_check_decl
2459 # ac_fn_c_check_header_preproc LINENO HEADER VAR
2460 # ----------------------------------------------
2461 # Tests whether HEADER is present, setting the cache variable VAR accordingly.
2462 ac_fn_c_check_header_preproc
()
2464 as_lineno
=${as_lineno-"$1"} as_lineno_stack
=as_lineno_stack
=$as_lineno_stack
2465 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2466 $as_echo_n "checking for $2... " >&6; }
2467 if { as_var
=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
2468 $as_echo_n "(cached) " >&6
2470 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
2471 /* end confdefs.h. */
2474 if ac_fn_c_try_cpp
"$LINENO"; then :
2479 rm -f conftest.err conftest.
$ac_ext
2482 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2483 $as_echo "$ac_res" >&6; }
2484 eval $as_lineno_stack; test "x$as_lineno_stack" = x
&& { as_lineno
=; unset as_lineno
;}
2486 } # ac_fn_c_check_header_preproc
2488 # ac_fn_c_check_func LINENO FUNC VAR
2489 # ----------------------------------
2490 # Tests whether FUNC exists, setting the cache variable VAR accordingly
2491 ac_fn_c_check_func
()
2493 as_lineno
=${as_lineno-"$1"} as_lineno_stack
=as_lineno_stack
=$as_lineno_stack
2494 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2495 $as_echo_n "checking for $2... " >&6; }
2496 if { as_var
=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
2497 $as_echo_n "(cached) " >&6
2499 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
2500 /* end confdefs.h. */
2501 /* Define $2 to an innocuous variant, in case <limits.h> declares $2.
2502 For example, HP-UX 11i <limits.h> declares gettimeofday. */
2503 #define $2 innocuous_$2
2505 /* System header to define __stub macros and hopefully few prototypes,
2506 which can conflict with char $2 (); below.
2507 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
2508 <limits.h> exists even on freestanding compilers. */
2511 # include <limits.h>
2513 # include <assert.h>
2518 /* Override any GCC internal prototype to avoid an error.
2519 Use char because int might match the return type of a GCC
2520 builtin and then its argument prototype would still apply. */
2525 /* The GNU C library defines this for functions which it implements
2526 to always fail with ENOSYS. Some functions are actually named
2527 something starting with __ and the normal name is an alias. */
2528 #if defined __stub_$2 || defined __stub___$2
2540 if ac_fn_c_try_link
"$LINENO"; then :
2545 rm -f core conftest.err conftest.
$ac_objext \
2546 conftest
$ac_exeext conftest.
$ac_ext
2549 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2550 $as_echo "$ac_res" >&6; }
2551 eval $as_lineno_stack; test "x$as_lineno_stack" = x
&& { as_lineno
=; unset as_lineno
;}
2553 } # ac_fn_c_check_func
2555 # ac_fn_c_check_member LINENO AGGR MEMBER VAR INCLUDES
2556 # ----------------------------------------------------
2557 # Tries to find if the field MEMBER exists in type AGGR, after including
2558 # INCLUDES, setting cache variable VAR accordingly.
2559 ac_fn_c_check_member
()
2561 as_lineno
=${as_lineno-"$1"} as_lineno_stack
=as_lineno_stack
=$as_lineno_stack
2562 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2.$3" >&5
2563 $as_echo_n "checking for $2.$3... " >&6; }
2564 if { as_var
=$4; eval "test \"\${$as_var+set}\" = set"; }; then :
2565 $as_echo_n "(cached) " >&6
2567 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
2568 /* end confdefs.h. */
2580 if ac_fn_c_try_compile
"$LINENO"; then :
2583 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
2584 /* end confdefs.h. */
2590 if (sizeof ac_aggr.$3)
2596 if ac_fn_c_try_compile
"$LINENO"; then :
2601 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
2603 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
2606 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2607 $as_echo "$ac_res" >&6; }
2608 eval $as_lineno_stack; test "x$as_lineno_stack" = x
&& { as_lineno
=; unset as_lineno
;}
2610 } # ac_fn_c_check_member
2612 # ac_fn_c_check_type LINENO TYPE VAR INCLUDES
2613 # -------------------------------------------
2614 # Tests whether TYPE exists after having included INCLUDES, setting cache
2615 # variable VAR accordingly.
2616 ac_fn_c_check_type
()
2618 as_lineno
=${as_lineno-"$1"} as_lineno_stack
=as_lineno_stack
=$as_lineno_stack
2619 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2620 $as_echo_n "checking for $2... " >&6; }
2621 if { as_var
=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
2622 $as_echo_n "(cached) " >&6
2625 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
2626 /* end confdefs.h. */
2637 if ac_fn_c_try_compile
"$LINENO"; then :
2638 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
2639 /* end confdefs.h. */
2650 if ac_fn_c_try_compile
"$LINENO"; then :
2655 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
2657 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
2660 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2661 $as_echo "$ac_res" >&6; }
2662 eval $as_lineno_stack; test "x$as_lineno_stack" = x
&& { as_lineno
=; unset as_lineno
;}
2664 } # ac_fn_c_check_type
2666 # ac_fn_c_compute_int LINENO EXPR VAR INCLUDES
2667 # --------------------------------------------
2668 # Tries to find the compile-time value of EXPR in a program that includes
2669 # INCLUDES, setting VAR accordingly. Returns whether the value could be
2671 ac_fn_c_compute_int
()
2673 as_lineno
=${as_lineno-"$1"} as_lineno_stack
=as_lineno_stack
=$as_lineno_stack
2674 if test "$cross_compiling" = yes; then
2675 # Depending upon the size, compute the lo and hi bounds.
2676 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
2677 /* end confdefs.h. */
2682 static int test_array [1 - 2 * !(($2) >= 0)];
2689 if ac_fn_c_try_compile
"$LINENO"; then :
2692 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
2693 /* end confdefs.h. */
2698 static int test_array [1 - 2 * !(($2) <= $ac_mid)];
2705 if ac_fn_c_try_compile
"$LINENO"; then :
2706 ac_hi
=$ac_mid; break
2708 as_fn_arith
$ac_mid + 1 && ac_lo
=$as_val
2709 if test $ac_lo -le $ac_mid; then
2713 as_fn_arith
2 '*' $ac_mid + 1 && ac_mid
=$as_val
2715 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
2718 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
2719 /* end confdefs.h. */
2724 static int test_array [1 - 2 * !(($2) < 0)];
2731 if ac_fn_c_try_compile
"$LINENO"; then :
2734 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
2735 /* end confdefs.h. */
2740 static int test_array [1 - 2 * !(($2) >= $ac_mid)];
2747 if ac_fn_c_try_compile
"$LINENO"; then :
2748 ac_lo
=$ac_mid; break
2750 as_fn_arith
'(' $ac_mid ')' - 1 && ac_hi
=$as_val
2751 if test $ac_mid -le $ac_hi; then
2755 as_fn_arith
2 '*' $ac_mid && ac_mid
=$as_val
2757 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
2762 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
2764 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
2765 # Binary search between lo and hi bounds.
2766 while test "x$ac_lo" != "x$ac_hi"; do
2767 as_fn_arith
'(' $ac_hi - $ac_lo ')' / 2 + $ac_lo && ac_mid
=$as_val
2768 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
2769 /* end confdefs.h. */
2774 static int test_array [1 - 2 * !(($2) <= $ac_mid)];
2781 if ac_fn_c_try_compile
"$LINENO"; then :
2784 as_fn_arith
'(' $ac_mid ')' + 1 && ac_lo
=$as_val
2786 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
2789 ?
*) eval "$3=\$ac_lo"; ac_retval
=0 ;;
2793 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
2794 /* end confdefs.h. */
2796 static long int longval () { return $2; }
2797 static unsigned long int ulongval () { return $2; }
2804 FILE *f = fopen ("conftest.val", "w");
2809 long int i = longval ();
2812 fprintf (f, "%ld", i);
2816 unsigned long int i = ulongval ();
2819 fprintf (f, "%lu", i);
2821 /* Do not output a trailing newline, as this causes \r\n confusion
2822 on some platforms. */
2823 return ferror (f) || fclose (f) != 0;
2829 if ac_fn_c_try_run
"$LINENO"; then :
2830 echo >>conftest.val
; read $3 <conftest.val
; ac_retval
=0
2834 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
2835 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
2839 eval $as_lineno_stack; test "x$as_lineno_stack" = x
&& { as_lineno
=; unset as_lineno
;}
2840 as_fn_set_status
$ac_retval
2842 } # ac_fn_c_compute_int
2843 cat >config.log
<<_ACEOF
2844 This file contains any messages produced by compilers while
2845 running configure, to aid debugging if configure makes a mistake.
2847 It was created by emacs $as_me 24.0.92, which was
2848 generated by GNU Autoconf 2.65. Invocation command line was
2860 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
2861 uname -m = `(uname -m) 2>/dev/null || echo unknown`
2862 uname -r = `(uname -r) 2>/dev/null || echo unknown`
2863 uname -s = `(uname -s) 2>/dev/null || echo unknown`
2864 uname -v = `(uname -v) 2>/dev/null || echo unknown`
2866 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
2867 /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
2869 /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
2870 /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
2871 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
2872 /usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
2873 /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
2874 /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
2875 /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
2879 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
2883 test -z "$as_dir" && as_dir
=.
2884 $as_echo "PATH: $as_dir"
2900 # Keep a trace of the command line.
2901 # Strip out --no-create and --no-recursion so they do not pile up.
2902 # Strip out --silent because we don't want to record it for future runs.
2903 # Also quote any args containing shell meta-characters.
2904 # Make two passes to allow for proper duplicate-argument suppression.
2908 ac_must_keep_next
=false
2914 -no-create |
--no-c* |
-n |
-no-recursion |
--no-r*) continue ;;
2915 -q |
-quiet |
--quiet |
--quie |
--qui |
--qu |
--q \
2916 |
-silent |
--silent |
--silen |
--sile |
--sil)
2919 ac_arg
=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
2922 1) as_fn_append ac_configure_args0
" '$ac_arg'" ;;
2924 as_fn_append ac_configure_args1
" '$ac_arg'"
2925 if test $ac_must_keep_next = true
; then
2926 ac_must_keep_next
=false
# Got value, back to normal.
2929 *=* |
--config-cache |
-C |
-disable-* |
--disable-* \
2930 |
-enable-* |
--enable-* |
-gas |
--g* |
-nfp |
--nf* \
2931 |
-q |
-quiet |
--q* |
-silent |
--sil* |
-v |
-verb* \
2932 |
-with-* |
--with-* |
-without-* |
--without-* |
--x)
2933 case "$ac_configure_args0 " in
2934 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
2937 -* ) ac_must_keep_next
=true
;;
2940 as_fn_append ac_configure_args
" '$ac_arg'"
2945 { ac_configure_args0
=; unset ac_configure_args0
;}
2946 { ac_configure_args1
=; unset ac_configure_args1
;}
2948 # When interrupted or exit'd, cleanup temporary files, and complete
2949 # config.log. We remove comments because anyway the quotes in there
2950 # would cause problems or look ugly.
2951 # WARNING: Use '\'' to represent an apostrophe within the trap.
2952 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
2953 trap 'exit_status=$?
2954 # Save into config.log some information that might help in debugging.
2959 ## ---------------- ##
2960 ## Cache variables. ##
2961 ## ---------------- ##
2964 # The following way of writing the cache mishandles newlines in values,
2966 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
2967 eval ac_val=\$$ac_var
2971 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
2972 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
2975 _ | IFS | as_nl) ;; #(
2976 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
2977 *) { eval $ac_var=; unset $ac_var;} ;;
2982 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
2983 *${as_nl}ac_space=\ *)
2985 "s/'\''/'\''\\\\'\'''\''/g;
2986 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
2989 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
2997 ## ----------------- ##
2998 ## Output variables. ##
2999 ## ----------------- ##
3002 for ac_var in $ac_subst_vars
3004 eval ac_val=\$$ac_var
3006 *\'\''*) ac_val
=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
3008 $as_echo "$ac_var='\''$ac_val'\''"
3012 if test -n "$ac_subst_files"; then
3014 ## ------------------- ##
3015 ## File substitutions. ##
3016 ## ------------------- ##
3019 for ac_var
in $ac_subst_files
3021 eval ac_val
=\$
$ac_var
3023 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
3025 $as_echo "$ac_var='\''$ac_val'\''"
3030 if test -s confdefs.h; then
3040 test "$ac_signal" != 0 &&
3041 $as_echo "$as_me: caught signal $ac_signal"
3042 $as_echo "$as_me: exit $exit_status"
3044 rm -f core *.core core.conftest.* &&
3045 rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
3048 for ac_signal
in 1 2 13 15; do
3049 trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
3053 # confdefs.h avoids OS command line length limits that DEFS can exceed.
3054 rm -f -r conftest
* confdefs.h
3056 $as_echo "/* confdefs.h */" > confdefs.h
3058 # Predefined preprocessor variables.
3060 cat >>confdefs.h
<<_ACEOF
3061 #define PACKAGE_NAME "$PACKAGE_NAME"
3064 cat >>confdefs.h
<<_ACEOF
3065 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
3068 cat >>confdefs.h
<<_ACEOF
3069 #define PACKAGE_VERSION "$PACKAGE_VERSION"
3072 cat >>confdefs.h
<<_ACEOF
3073 #define PACKAGE_STRING "$PACKAGE_STRING"
3076 cat >>confdefs.h
<<_ACEOF
3077 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
3080 cat >>confdefs.h
<<_ACEOF
3081 #define PACKAGE_URL "$PACKAGE_URL"
3085 # Let the site file select an alternate cache file if it wants to.
3086 # Prefer an explicitly selected file to automatically selected ones.
3089 if test -n "$CONFIG_SITE"; then
3090 ac_site_file1
=$CONFIG_SITE
3091 elif test "x$prefix" != xNONE
; then
3092 ac_site_file1
=$prefix/share
/config.site
3093 ac_site_file2
=$prefix/etc
/config.site
3095 ac_site_file1
=$ac_default_prefix/share
/config.site
3096 ac_site_file2
=$ac_default_prefix/etc
/config.site
3098 for ac_site_file
in "$ac_site_file1" "$ac_site_file2"
3100 test "x$ac_site_file" = xNONE
&& continue
3101 if test /dev
/null
!= "$ac_site_file" && test -r "$ac_site_file"; then
3102 { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
3103 $as_echo "$as_me: loading site script $ac_site_file" >&6;}
3104 sed 's/^/| /' "$ac_site_file" >&5
3109 if test -r "$cache_file"; then
3110 # Some versions of bash will fail to source /dev/null (special files
3111 # actually), so we avoid doing that. DJGPP emulates it as a regular file.
3112 if test /dev
/null
!= "$cache_file" && test -f "$cache_file"; then
3113 { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
3114 $as_echo "$as_me: loading cache $cache_file" >&6;}
3116 [\\/]* | ?
:[\\/]* ) .
"$cache_file";;
3117 *) .
"./$cache_file";;
3121 { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
3122 $as_echo "$as_me: creating cache $cache_file" >&6;}
3126 as_fn_append ac_header_list
" stdlib.h"
3127 as_fn_append ac_header_list
" unistd.h"
3128 as_fn_append ac_header_list
" sys/param.h"
3129 as_fn_append ac_func_list
" readlinkat"
3130 gl_getopt_required
=GNU
3131 as_fn_append ac_header_list
" getopt.h"
3132 as_fn_append ac_header_list
" wchar.h"
3133 as_fn_append ac_header_list
" stdint.h"
3134 as_fn_append ac_header_list
" inttypes.h"
3135 as_fn_append ac_func_list
" lstat"
3136 as_fn_append ac_func_list
" alarm"
3137 as_fn_append ac_func_list
" pthread_sigmask"
3138 as_fn_append ac_func_list
" readlink"
3139 as_fn_append ac_header_list
" sys/socket.h"
3140 as_fn_append ac_func_list
" tzset"
3141 as_fn_append ac_func_list
" strtoimax"
3142 as_fn_append ac_func_list
" strtoumax"
3143 as_fn_append ac_func_list
" symlink"
3144 as_fn_append ac_header_list
" sys/stat.h"
3145 as_fn_append ac_header_list
" sys/time.h"
3146 as_fn_append ac_func_list
" localtime_r"
3147 # Check that the precious variables saved in the cache have kept the same
3149 ac_cache_corrupted
=false
3150 for ac_var
in $ac_precious_vars; do
3151 eval ac_old_set
=\
$ac_cv_env_${ac_var}_set
3152 eval ac_new_set
=\
$ac_env_${ac_var}_set
3153 eval ac_old_val
=\
$ac_cv_env_${ac_var}_value
3154 eval ac_new_val
=\
$ac_env_${ac_var}_value
3155 case $ac_old_set,$ac_new_set in
3157 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
3158 $as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
3159 ac_cache_corrupted
=: ;;
3161 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
3162 $as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
3163 ac_cache_corrupted
=: ;;
3166 if test "x$ac_old_val" != "x$ac_new_val"; then
3167 # differences in whitespace do not lead to failure.
3168 ac_old_val_w
=`echo x $ac_old_val`
3169 ac_new_val_w
=`echo x $ac_new_val`
3170 if test "$ac_old_val_w" != "$ac_new_val_w"; then
3171 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
3172 $as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
3173 ac_cache_corrupted
=:
3175 { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
3176 $as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
3177 eval $ac_var=\
$ac_old_val
3179 { $as_echo "$as_me:${as_lineno-$LINENO}: former value: \`$ac_old_val'" >&5
3180 $as_echo "$as_me: former value: \`$ac_old_val'" >&2;}
3181 { $as_echo "$as_me:${as_lineno-$LINENO}: current value: \`$ac_new_val'" >&5
3182 $as_echo "$as_me: current value: \`$ac_new_val'" >&2;}
3185 # Pass precious variables to config.status.
3186 if test "$ac_new_set" = set; then
3188 *\'*) ac_arg
=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
3189 *) ac_arg
=$ac_var=$ac_new_val ;;
3191 case " $ac_configure_args " in
3192 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
3193 *) as_fn_append ac_configure_args
" '$ac_arg'" ;;
3197 if $ac_cache_corrupted; then
3198 { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3199 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3200 { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
3201 $as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
3202 as_fn_error
"run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5
3204 ## -------------------- ##
3205 ## Main body of script. ##
3206 ## -------------------- ##
3209 ac_cpp
='$CPP $CPPFLAGS'
3210 ac_compile
='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3211 ac_link
='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3212 ac_compiler_gnu
=$ac_cv_c_compiler_gnu
3215 ac_config_headers
="$ac_config_headers src/config.h:src/config.in"
3219 for ac_dir
in build-aux
"$srcdir"/build-aux
; do
3220 for ac_t
in install-sh
install.sh shtool
; do
3221 if test -f "$ac_dir/$ac_t"; then
3223 ac_install_sh
="$ac_aux_dir/$ac_t -c"
3228 if test -z "$ac_aux_dir"; then
3229 as_fn_error
"cannot find install-sh, install.sh, or shtool in build-aux \"$srcdir\"/build-aux" "$LINENO" 5
3232 # These three variables are undocumented and unsupported,
3233 # and are intended to be withdrawn in a future Autoconf release.
3234 # They can cause serious problems if a builder's source tree is in a directory
3235 # whose full name contains unusual characters.
3236 ac_config_guess
="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
3237 ac_config_sub
="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
3238 ac_configure
="$SHELL $ac_aux_dir/configure" # Please don't use this var.
3241 am__api_version
='1.11'
3243 # Find a good install program. We prefer a C program (faster),
3244 # so one script is as good as another. But avoid the broken or
3245 # incompatible versions:
3246 # SysV /etc/install, /usr/sbin/install
3247 # SunOS /usr/etc/install
3248 # IRIX /sbin/install
3250 # AmigaOS /C/install, which installs bootblocks on floppy discs
3251 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
3252 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
3253 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
3254 # OS/2's system install, which has a completely different semantic
3255 # ./install, which can be erroneously created by make from ./install.sh.
3256 # Reject install programs that cannot install multiple files.
3257 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5
3258 $as_echo_n "checking for a BSD-compatible install... " >&6; }
3259 if test -z "$INSTALL"; then
3260 if test "${ac_cv_path_install+set}" = set; then :
3261 $as_echo_n "(cached) " >&6
3263 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
3267 test -z "$as_dir" && as_dir
=.
3268 # Account for people who put trailing slashes in PATH elements.
3269 case $as_dir/ in #((
3270 .
/ | .
// |
/[cC
]/* | \
3271 /etc
/* |
/usr
/sbin
/* |
/usr
/etc
/* |
/sbin
/* |
/usr
/afsws
/bin
/* | \
3272 ?
:[\\/]os2
[\\/]install[\\/]* | ?
:[\\/]OS2
[\\/]INSTALL
[\\/]* | \
3275 # OSF1 and SCO ODT 3.0 have their own names for install.
3276 # Don't use installbsd from OSF since it installs stuff as root
3278 for ac_prog
in ginstall scoinst
install; do
3279 for ac_exec_ext
in '' $ac_executable_extensions; do
3280 if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; }; then
3281 if test $ac_prog = install &&
3282 grep dspmsg
"$as_dir/$ac_prog$ac_exec_ext" >/dev
/null
2>&1; then
3283 # AIX install. It has an incompatible calling convention.
3285 elif test $ac_prog = install &&
3286 grep pwplus
"$as_dir/$ac_prog$ac_exec_ext" >/dev
/null
2>&1; then
3287 # program-specific install script used by HP pwplus--don't use.
3290 rm -rf conftest.one conftest.two conftest.dir
3291 echo one
> conftest.one
3292 echo two
> conftest.two
3294 if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two
"`pwd`/conftest.dir" &&
3295 test -s conftest.one
&& test -s conftest.two
&&
3296 test -s conftest.dir
/conftest.one
&&
3297 test -s conftest.dir
/conftest.two
3299 ac_cv_path_install
="$as_dir/$ac_prog$ac_exec_ext -c"
3312 rm -rf conftest.one conftest.two conftest.dir
3315 if test "${ac_cv_path_install+set}" = set; then
3316 INSTALL
=$ac_cv_path_install
3318 # As a last resort, use the slow shell script. Don't cache a
3319 # value for INSTALL within a source directory, because that will
3320 # break other packages using the cache if that directory is
3321 # removed, or if the value is a relative name.
3322 INSTALL
=$ac_install_sh
3325 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
3326 $as_echo "$INSTALL" >&6; }
3328 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
3329 # It thinks the first close brace ends the variable substitution.
3330 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM
='${INSTALL}'
3332 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT
='${INSTALL}'
3334 test -z "$INSTALL_DATA" && INSTALL_DATA
='${INSTALL} -m 644'
3336 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether build environment is sane" >&5
3337 $as_echo_n "checking whether build environment is sane... " >&6; }
3340 echo timestamp
> conftest.
file
3341 # Reject unsafe characters in $srcdir or the absolute working directory
3342 # name. Accept space and tab only in the latter.
3346 *[\\\"\
#\$\&\'\`$am_lf]*)
3347 as_fn_error
"unsafe absolute working directory name" "$LINENO" 5;;
3350 *[\\\"\
#\$\&\'\`$am_lf\ \ ]*)
3351 as_fn_error
"unsafe srcdir value: \`$srcdir'" "$LINENO" 5;;
3354 # Do `set' in a subshell so we don't clobber the current shell's
3355 # arguments. Must try -L first in case configure is actually a
3356 # symlink; some systems play weird games with the mod time of symlinks
3357 # (eg FreeBSD returns the mod time of the symlink's containing
3360 set X
`ls -Lt "$srcdir/configure" conftest.file 2> /dev/null`
3361 if test "$*" = "X"; then
3363 set X
`ls -t "$srcdir/configure" conftest.file`
3366 if test "$*" != "X $srcdir/configure conftest.file" \
3367 && test "$*" != "X conftest.file $srcdir/configure"; then
3369 # If neither matched, then we have a broken ls. This can happen
3370 # if, for instance, CONFIG_SHELL is bash and it inherits a
3371 # broken ls alias from the environment. This has actually
3372 # happened. Such a system could not be considered "sane".
3373 as_fn_error
"ls -t appears to fail. Make sure there is not a broken
3374 alias in your environment" "$LINENO" 5
3377 test "$2" = conftest.
file
3383 as_fn_error
"newly created file is older than distributed files!
3384 Check your system clock" "$LINENO" 5
3386 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3387 $as_echo "yes" >&6; }
3388 test "$program_prefix" != NONE
&&
3389 program_transform_name
="s&^&$program_prefix&;$program_transform_name"
3390 # Use a double $ so make ignores it.
3391 test "$program_suffix" != NONE
&&
3392 program_transform_name
="s&\$&$program_suffix&;$program_transform_name"
3393 # Double any \ or $.
3394 # By default was `s,x,x', remove it if useless.
3395 ac_script
='s/[\\$]/&&/g;s/;s,x,x,$//'
3396 program_transform_name
=`$as_echo "$program_transform_name" | sed "$ac_script"`
3398 # expand $ac_aux_dir to an absolute path
3399 am_aux_dir
=`cd $ac_aux_dir && pwd`
3401 if test x
"${MISSING+set}" != xset
; then
3404 MISSING
="\${SHELL} \"$am_aux_dir/missing\"" ;;
3406 MISSING
="\${SHELL} $am_aux_dir/missing" ;;
3409 # Use eval to expand $SHELL
3410 if eval "$MISSING --run true"; then
3411 am_missing_run
="$MISSING --run "
3414 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`missing' script is too old or missing" >&5
3415 $as_echo "$as_me: WARNING: \`missing' script is too old or missing" >&2;}
3418 if test x
"${install_sh}" != xset
; then
3421 install_sh
="\${SHELL} '$am_aux_dir/install-sh'" ;;
3423 install_sh
="\${SHELL} $am_aux_dir/install-sh"
3427 # Installed binaries are usually stripped using `strip' when the user
3428 # run `make install-strip'. However `strip' might not be the right
3429 # tool to use in cross-compilation environments, therefore Automake
3430 # will honor the `STRIP' environment variable to overrule this program.
3431 if test "$cross_compiling" != no
; then
3432 if test -n "$ac_tool_prefix"; then
3433 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
3434 set dummy
${ac_tool_prefix}strip
; ac_word
=$2
3435 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3436 $as_echo_n "checking for $ac_word... " >&6; }
3437 if test "${ac_cv_prog_STRIP+set}" = set; then :
3438 $as_echo_n "(cached) " >&6
3440 if test -n "$STRIP"; then
3441 ac_cv_prog_STRIP
="$STRIP" # Let the user override the test.
3443 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
3447 test -z "$as_dir" && as_dir
=.
3448 for ac_exec_ext
in '' $ac_executable_extensions; do
3449 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3450 ac_cv_prog_STRIP
="${ac_tool_prefix}strip"
3451 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3460 STRIP
=$ac_cv_prog_STRIP
3461 if test -n "$STRIP"; then
3462 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
3463 $as_echo "$STRIP" >&6; }
3465 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3466 $as_echo "no" >&6; }
3471 if test -z "$ac_cv_prog_STRIP"; then
3473 # Extract the first word of "strip", so it can be a program name with args.
3474 set dummy strip
; ac_word
=$2
3475 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3476 $as_echo_n "checking for $ac_word... " >&6; }
3477 if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then :
3478 $as_echo_n "(cached) " >&6
3480 if test -n "$ac_ct_STRIP"; then
3481 ac_cv_prog_ac_ct_STRIP
="$ac_ct_STRIP" # Let the user override the test.
3483 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
3487 test -z "$as_dir" && as_dir
=.
3488 for ac_exec_ext
in '' $ac_executable_extensions; do
3489 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3490 ac_cv_prog_ac_ct_STRIP
="strip"
3491 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3500 ac_ct_STRIP
=$ac_cv_prog_ac_ct_STRIP
3501 if test -n "$ac_ct_STRIP"; then
3502 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
3503 $as_echo "$ac_ct_STRIP" >&6; }
3505 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3506 $as_echo "no" >&6; }
3509 if test "x$ac_ct_STRIP" = x
; then
3512 case $cross_compiling:$ac_tool_warned in
3514 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3515 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3516 ac_tool_warned
=yes ;;
3521 STRIP
="$ac_cv_prog_STRIP"
3525 INSTALL_STRIP_PROGRAM
="\$(install_sh) -c -s"
3527 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a thread-safe mkdir -p" >&5
3528 $as_echo_n "checking for a thread-safe mkdir -p... " >&6; }
3529 if test -z "$MKDIR_P"; then
3530 if test "${ac_cv_path_mkdir+set}" = set; then :
3531 $as_echo_n "(cached) " >&6
3533 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
3534 for as_dir
in $PATH$PATH_SEPARATOR/opt
/sfw
/bin
3537 test -z "$as_dir" && as_dir
=.
3538 for ac_prog
in mkdir gmkdir
; do
3539 for ac_exec_ext
in '' $ac_executable_extensions; do
3540 { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; } ||
continue
3541 case `"$as_dir/$ac_prog$ac_exec_ext" --version 2>&1` in #(
3542 'mkdir (GNU coreutils) '* | \
3543 'mkdir (coreutils) '* | \
3544 'mkdir (fileutils) '4.1*)
3545 ac_cv_path_mkdir
=$as_dir/$ac_prog$ac_exec_ext
3555 test -d .
/--version && rmdir .
/--version
3556 if test "${ac_cv_path_mkdir+set}" = set; then
3557 MKDIR_P
="$ac_cv_path_mkdir -p"
3559 # As a last resort, use the slow shell script. Don't cache a
3560 # value for MKDIR_P within a source directory, because that will
3561 # break other packages using the cache if that directory is
3562 # removed, or if the value is a relative name.
3563 MKDIR_P
="$ac_install_sh -d"
3566 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MKDIR_P" >&5
3567 $as_echo "$MKDIR_P" >&6; }
3572 [\\/$
]* | ?
:[\\/]*) ;;
3573 */*) mkdir_p
="\$(top_builddir)/$mkdir_p" ;;
3576 for ac_prog
in gawk mawk nawk
awk
3578 # Extract the first word of "$ac_prog", so it can be a program name with args.
3579 set dummy
$ac_prog; ac_word
=$2
3580 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3581 $as_echo_n "checking for $ac_word... " >&6; }
3582 if test "${ac_cv_prog_AWK+set}" = set; then :
3583 $as_echo_n "(cached) " >&6
3585 if test -n "$AWK"; then
3586 ac_cv_prog_AWK
="$AWK" # Let the user override the test.
3588 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
3592 test -z "$as_dir" && as_dir
=.
3593 for ac_exec_ext
in '' $ac_executable_extensions; do
3594 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3595 ac_cv_prog_AWK
="$ac_prog"
3596 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3606 if test -n "$AWK"; then
3607 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
3608 $as_echo "$AWK" >&6; }
3610 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3611 $as_echo "no" >&6; }
3615 test -n "$AWK" && break
3618 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
3619 $as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
3621 ac_make
=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
3622 if { as_var
=ac_cv_prog_make_
${ac_make}_set; eval "test \"\${$as_var+set}\" = set"; }; then :
3623 $as_echo_n "(cached) " >&6
3625 cat >conftest.
make <<\_ACEOF
3628 @
echo '@@@%%%=$(MAKE)=@@@%%%'
3630 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
3631 case `${MAKE-make} -f conftest.make 2>/dev/null` in
3633 eval ac_cv_prog_make_
${ac_make}_set
=yes;;
3635 eval ac_cv_prog_make_
${ac_make}_set
=no
;;
3639 if eval test \
$ac_cv_prog_make_${ac_make}_set
= yes; then
3640 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3641 $as_echo "yes" >&6; }
3644 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3645 $as_echo "no" >&6; }
3646 SET_MAKE
="MAKE=${MAKE-make}"
3649 rm -rf .tst
2>/dev
/null
3650 mkdir .tst
2>/dev
/null
3651 if test -d .tst
; then
3656 rmdir .tst
2>/dev
/null
3658 if test "`cd $srcdir && pwd`" != "`pwd`"; then
3659 # Use -I$(srcdir) only when $(srcdir) != ., so that make's output
3660 # is not polluted with repeated "-I."
3661 am__isrc
=' -I$(srcdir)'
3662 # test to see if srcdir already configured
3663 if test -f $srcdir/config.status
; then
3664 as_fn_error
"source directory already configured; run \"make distclean\" there first" "$LINENO" 5
3668 # test whether we have cygpath
3669 if test -z "$CYGPATH_W"; then
3670 if (cygpath
--version) >/dev
/null
2>/dev
/null
; then
3671 CYGPATH_W
='cygpath -w'
3678 # Define the identity of the package.
3683 cat >>confdefs.h
<<_ACEOF
3684 #define PACKAGE "$PACKAGE"
3688 cat >>confdefs.h
<<_ACEOF
3689 #define VERSION "$VERSION"
3692 # Some tools Automake needs.
3694 ACLOCAL
=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
3697 AUTOCONF
=${AUTOCONF-"${am_missing_run}autoconf"}
3700 AUTOMAKE
=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
3703 AUTOHEADER
=${AUTOHEADER-"${am_missing_run}autoheader"}
3706 MAKEINFO
=${MAKEINFO-"${am_missing_run}makeinfo"}
3708 # We need awk for the "check" target. The system "awk" is bad on
3710 # Always define AMTAR for backward compatibility.
3712 AMTAR
=${AMTAR-"${am_missing_run}tar"}
3714 am__tar
='${AMTAR} chof - "$$tardir"'; am__untar
='${AMTAR} xf -'
3723 lispdir
='${datadir}/emacs/${version}/lisp'
3724 locallisppath
='${datadir}/emacs/${version}/site-lisp:'\
3725 '${datadir}/emacs/site-lisp'
3726 lisppath
='${locallisppath}:${lispdir}:${datadir}/emacs/${version}/leim'
3727 etcdir
='${datadir}/emacs/${version}/etc'
3728 archlibdir
='${libexecdir}/emacs/${version}/${configuration}'
3729 docdir
='${datadir}/emacs/${version}/etc'
3730 gamedir
='${localstatedir}/games/emacs'
3735 # Check whether --with-pop was given.
3736 if test "${with_pop+set}" = set; then :
3742 if test "$with_pop" = yes; then
3743 $as_echo "#define MAIL_USE_POP 1" >>confdefs.h
3748 # Check whether --with-kerberos was given.
3749 if test "${with_kerberos+set}" = set; then :
3750 withval
=$with_kerberos;
3755 if test "$with_kerberos" != no
; then
3756 $as_echo "#define KERBEROS 1" >>confdefs.h
3761 # Check whether --with-kerberos5 was given.
3762 if test "${with_kerberos5+set}" = set; then :
3763 withval
=$with_kerberos5;
3768 if test "${with_kerberos5}" != no
; then
3769 if test "${with_kerberos}" = no
; then
3771 $as_echo "#define KERBEROS 1" >>confdefs.h
3775 $as_echo "#define KERBEROS5 1" >>confdefs.h
3780 # Check whether --with-hesiod was given.
3781 if test "${with_hesiod+set}" = set; then :
3782 withval
=$with_hesiod;
3787 if test "$with_hesiod" != no
; then
3789 $as_echo "#define HESIOD 1" >>confdefs.h
3794 # Check whether --with-mmdf was given.
3795 if test "${with_mmdf+set}" = set; then :
3801 if test "$with_mmdf" != no
; then
3803 $as_echo "#define MAIL_USE_MMDF 1" >>confdefs.h
3808 # Check whether --with-mail-unlink was given.
3809 if test "${with_mail_unlink+set}" = set; then :
3810 withval
=$with_mail_unlink;
3815 if test "$with_mail_unlink" != no
; then
3817 $as_echo "#define MAIL_UNLINK_SPOOL 1" >>confdefs.h
3822 # Check whether --with-mailhost was given.
3823 if test "${with_mailhost+set}" = set; then :
3824 withval
=$with_mailhost;
3825 cat >>confdefs.h
<<_ACEOF
3826 #define MAILHOST "$withval"
3833 # Check whether --with-sound was given.
3834 if test "${with_sound+set}" = set; then :
3835 withval
=$with_sound;
3842 # Check whether --with-sync-input was given.
3843 if test "${with_sync_input+set}" = set; then :
3844 withval
=$with_sync_input;
3849 if test "$with_sync_input" = yes; then
3851 $as_echo "#define SYNC_INPUT 1" >>confdefs.h
3856 # Check whether --with-x-toolkit was given.
3857 if test "${with_x_toolkit+set}" = set; then :
3858 withval
=$with_x_toolkit; case "${withval}" in
3859 y | ye |
yes ) val
=gtk
;;
3861 l | lu | luc | luci | lucid
) val
=lucid
;;
3862 a |
at | ath | athe | athen | athena
) val
=athena
;;
3863 m | mo | mot | moti | motif
) val
=motif
;;
3864 g | gt | gtk
) val
=gtk
;;
3867 as_fn_error
"\`--with-x-toolkit=$withval' is invalid;
3868 this option's value should be \`yes', \`no', \`lucid', \`athena', \`motif', \`gtk' or
3869 \`gtk3'. \`yes' and \`gtk' are synonyms. \`athena' and \`lucid' are synonyms." "$LINENO" 5
3878 # Check whether --with-wide-int was given.
3879 if test "${with_wide_int+set}" = set; then :
3880 withval
=$with_wide_int;
3885 if test "$with_wide_int" = yes; then
3887 $as_echo "#define WIDE_EMACS_INT 1" >>confdefs.h
3892 # Check whether --with-xpm was given.
3893 if test "${with_xpm+set}" = set; then :
3900 # Check whether --with-jpeg was given.
3901 if test "${with_jpeg+set}" = set; then :
3908 # Check whether --with-tiff was given.
3909 if test "${with_tiff+set}" = set; then :
3916 # Check whether --with-gif was given.
3917 if test "${with_gif+set}" = set; then :
3924 # Check whether --with-png was given.
3925 if test "${with_png+set}" = set; then :
3932 # Check whether --with-rsvg was given.
3933 if test "${with_rsvg+set}" = set; then :
3940 # Check whether --with-xml2 was given.
3941 if test "${with_xml2+set}" = set; then :
3948 # Check whether --with-imagemagick was given.
3949 if test "${with_imagemagick+set}" = set; then :
3950 withval
=$with_imagemagick;
3952 with_imagemagick
=yes
3957 # Check whether --with-xft was given.
3958 if test "${with_xft+set}" = set; then :
3965 # Check whether --with-libotf was given.
3966 if test "${with_libotf+set}" = set; then :
3967 withval
=$with_libotf;
3973 # Check whether --with-m17n-flt was given.
3974 if test "${with_m17n_flt+set}" = set; then :
3975 withval
=$with_m17n_flt;
3982 # Check whether --with-toolkit-scroll-bars was given.
3983 if test "${with_toolkit_scroll_bars+set}" = set; then :
3984 withval
=$with_toolkit_scroll_bars;
3986 with_toolkit_scroll_bars
=yes
3990 # Check whether --with-xaw3d was given.
3991 if test "${with_xaw3d+set}" = set; then :
3992 withval
=$with_xaw3d;
3998 # Check whether --with-xim was given.
3999 if test "${with_xim+set}" = set; then :
4006 # Check whether --with-ns was given.
4007 if test "${with_ns+set}" = set; then :
4015 # Check whether --with-gpm was given.
4016 if test "${with_gpm+set}" = set; then :
4023 # Check whether --with-dbus was given.
4024 if test "${with_dbus+set}" = set; then :
4031 # Check whether --with-gconf was given.
4032 if test "${with_gconf+set}" = set; then :
4033 withval
=$with_gconf;
4039 # Check whether --with-gsettings was given.
4040 if test "${with_gsettings+set}" = set; then :
4041 withval
=$with_gsettings;
4047 # Check whether --with-selinux was given.
4048 if test "${with_selinux+set}" = set; then :
4049 withval
=$with_selinux;
4055 # Check whether --with-gnutls was given.
4056 if test "${with_gnutls+set}" = set; then :
4057 withval
=$with_gnutls;
4063 ## For the times when you want to build Emacs but don't have
4064 ## a suitable makeinfo, and can live without the manuals.
4066 # Check whether --with-makeinfo was given.
4067 if test "${with_makeinfo+set}" = set; then :
4068 withval
=$with_makeinfo;
4074 ## Makefile.in needs the cache file name.
4077 ## This is an option because I do not know if all info/man support
4078 ## compressed files, nor how to test if they do so.
4080 # Check whether --with-compress-info was given.
4081 if test "${with_compress_info+set}" = set; then :
4082 withval
=$with_compress_info;
4084 with_compress_info
=yes
4087 if test $with_compress_info = yes; then
4095 # Check whether --with-pkg-config-prog was given.
4096 if test "${with_pkg_config_prog+set}" = set; then :
4097 withval
=$with_pkg_config_prog;
4100 if test "X${with_pkg_config_prog}" != X
; then
4101 if test "${with_pkg_config_prog}" != yes; then
4102 PKG_CONFIG
="${with_pkg_config_prog}"
4108 # Check whether --with-crt-dir was given.
4109 if test "${with_crt_dir+set}" = set; then :
4110 withval
=$with_crt_dir;
4113 CRT_DIR
="${with_crt_dir}"
4116 # Check whether --with-gameuser was given.
4117 if test "${with_gameuser+set}" = set; then :
4118 withval
=$with_gameuser;
4121 test "X${with_gameuser}" != X
&& test "${with_gameuser}" != yes \
4122 && gameuser
="${with_gameuser}"
4123 test "X$gameuser" = X
&& gameuser
=games
4126 # Check whether --with-gnustep-conf was given.
4127 if test "${with_gnustep_conf+set}" = set; then :
4128 withval
=$with_gnustep_conf;
4131 test "X${with_gnustep_conf}" != X
&& test "${with_gnustep_conf}" != yes && \
4132 GNUSTEP_CONFIG_FILE
="${with_gnustep_conf}"
4133 test "X$GNUSTEP_CONFIG_FILE" = "X" && \
4134 GNUSTEP_CONFIG_FILE
=/etc
/GNUstep
/GNUstep.conf
4136 # Check whether --enable-ns-self-contained was given.
4137 if test "${enable_ns_self_contained+set}" = set; then :
4138 enableval
=$enable_ns_self_contained; EN_NS_SELF_CONTAINED
=$enableval
4140 EN_NS_SELF_CONTAINED
=yes
4144 # Check whether --enable-asserts was given.
4145 if test "${enable_asserts+set}" = set; then :
4146 enableval
=$enable_asserts; USE_XASSERTS
=$enableval
4152 # Check whether --enable-maintainer-mode was given.
4153 if test "${enable_maintainer_mode+set}" = set; then :
4154 enableval
=$enable_maintainer_mode; USE_MAINTAINER_MODE
=$enableval
4156 USE_MAINTAINER_MODE
=yes
4159 if test $USE_MAINTAINER_MODE = yes; then
4166 # Check whether --enable-locallisppath was given.
4167 if test "${enable_locallisppath+set}" = set; then :
4168 enableval
=$enable_locallisppath; if test "${enableval}" = "no"; then
4170 elif test "${enableval}" != "yes"; then
4171 locallisppath
=${enableval}
4176 # Check whether --enable-checking was given.
4177 if test "${enable_checking+set}" = set; then :
4178 enableval
=$enable_checking; ac_checking_flags
="${enableval}"
4181 IFS
="${IFS= }"; ac_save_IFS
="$IFS"; IFS
="$IFS,"
4182 for check
in $ac_checking_flags
4185 # these set all the flags to specific states
4186 yes) ac_enable_checking
=1 ;;
4187 no
) ac_enable_checking
= ;
4188 ac_gc_check_stringbytes
= ;
4189 ac_gc_check_string_overrun
= ;
4190 ac_gc_check_string_free_list
= ;
4191 ac_xmalloc_overrun
= ;
4192 ac_gc_check_cons_list
= ;;
4193 all
) ac_enable_checking
=1 ;
4194 ac_gc_check_stringbytes
=1 ;
4195 ac_gc_check_string_overrun
=1 ;
4196 ac_gc_check_string_free_list
=1 ;
4197 ac_xmalloc_overrun
=1 ;
4198 ac_gc_check_cons_list
=1 ;;
4199 # these enable particular checks
4200 stringbytes
) ac_gc_check_stringbytes
=1 ;;
4201 stringoverrun
) ac_gc_check_string_overrun
=1 ;;
4202 stringfreelist
) ac_gc_check_string_free_list
=1 ;;
4203 xmallocoverrun
) ac_xmalloc_overrun
=1 ;;
4204 conslist
) ac_gc_check_cons_list
=1 ;;
4205 *) as_fn_error
"unknown check category $check" "$LINENO" 5 ;;
4210 if test x
$ac_enable_checking != x
; then
4212 $as_echo "#define ENABLE_CHECKING 1" >>confdefs.h
4215 if test x
$ac_gc_check_stringbytes != x
; then
4217 $as_echo "#define GC_CHECK_STRING_BYTES 1" >>confdefs.h
4220 if test x
$ac_gc_check_string_overrun != x
; then
4222 $as_echo "#define GC_CHECK_STRING_OVERRUN 1" >>confdefs.h
4225 if test x
$ac_gc_check_string_free_list != x
; then
4227 $as_echo "#define GC_CHECK_STRING_FREE_LIST 1" >>confdefs.h
4230 if test x
$ac_xmalloc_overrun != x
; then
4232 $as_echo "#define XMALLOC_OVERRUN_CHECK 1" >>confdefs.h
4235 if test x
$ac_gc_check_cons_list != x
; then
4237 $as_echo "#define GC_CHECK_CONS_LIST 1" >>confdefs.h
4241 # Check whether --enable-use-lisp-union-type was given.
4242 if test "${enable_use_lisp_union_type+set}" = set; then :
4243 enableval
=$enable_use_lisp_union_type; if test "${enableval}" != "no"; then
4245 $as_echo "#define USE_LISP_UNION_TYPE 1" >>confdefs.h
4252 # Check whether --enable-profiling was given.
4253 if test "${enable_profiling+set}" = set; then :
4254 enableval
=$enable_profiling; ac_enable_profiling
="${enableval}"
4257 if test x
$ac_enable_profiling != x
; then
4258 PROFILING_CFLAGS
="-DPROFILING=1 -pg"
4264 # Check whether --enable-autodepend was given.
4265 if test "${enable_autodepend+set}" = set; then :
4266 enableval
=$enable_autodepend; ac_enable_autodepend
="${enableval}"
4268 ac_enable_autodepend
=yes
4272 #### Make srcdir absolute, if it isn't already. It's important to
4273 #### avoid running the path through pwd unnecessarily, since pwd can
4274 #### give you automounter prefixes, which can go away. We do all this
4275 #### so Emacs can find its files when run uninstalled.
4276 ## Make sure CDPATH doesn't affect cd (in case PWD is relative).
4281 ## We may be able to use the $PWD environment variable to make this
4282 ## absolute. But sometimes PWD is inaccurate.
4283 ## Note: we used to use ${PWD} at the end instead of `pwd`,
4284 ## but that tested only for a well-formed and valid PWD,
4285 ## it did not object when PWD was well-formed and valid but just wrong.
4286 if test ".${PWD}" != "." && test ".`(cd ${PWD} ; sh -c pwd)`" = ".`pwd`" ;
4290 srcdir
="`(cd ${srcdir}; pwd)`"
4293 * ) srcdir
="`(cd ${srcdir}; pwd)`" ;;
4296 #### Given the configuration name, set machfile and opsysfile to the
4297 #### names of the m/*.h and s/*.h files we should use.
4299 ### Canonicalize the configuration name.
4301 # Make sure we can run config.sub.
4302 $SHELL "$ac_aux_dir/config.sub" sun4
>/dev
/null
2>&1 ||
4303 as_fn_error
"cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5
4305 { $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
4306 $as_echo_n "checking build system type... " >&6; }
4307 if test "${ac_cv_build+set}" = set; then :
4308 $as_echo_n "(cached) " >&6
4310 ac_build_alias
=$build_alias
4311 test "x$ac_build_alias" = x
&&
4312 ac_build_alias
=`$SHELL "$ac_aux_dir/config.guess"`
4313 test "x$ac_build_alias" = x
&&
4314 as_fn_error
"cannot guess build type; you must specify one" "$LINENO" 5
4315 ac_cv_build
=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
4316 as_fn_error
"$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5
4319 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
4320 $as_echo "$ac_cv_build" >&6; }
4321 case $ac_cv_build in
4323 *) as_fn_error
"invalid value of canonical build" "$LINENO" 5;;
4326 ac_save_IFS
=$IFS; IFS
='-'
4332 # Remember, the first character of IFS is used to create $*,
4333 # except with old shells:
4336 case $build_os in *\
*) build_os
=`echo "$build_os" | sed 's/ /-/g'`;; esac
4339 { $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
4340 $as_echo_n "checking host system type... " >&6; }
4341 if test "${ac_cv_host+set}" = set; then :
4342 $as_echo_n "(cached) " >&6
4344 if test "x$host_alias" = x
; then
4345 ac_cv_host
=$ac_cv_build
4347 ac_cv_host
=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
4348 as_fn_error
"$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5
4352 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
4353 $as_echo "$ac_cv_host" >&6; }
4356 *) as_fn_error
"invalid value of canonical host" "$LINENO" 5;;
4359 ac_save_IFS
=$IFS; IFS
='-'
4365 # Remember, the first character of IFS is used to create $*,
4366 # except with old shells:
4369 case $host_os in *\
*) host_os
=`echo "$host_os" | sed 's/ /-/g'`;; esac
4373 configuration
=${host_alias-${build_alias-$host}}
4377 ### If you add support for a new configuration, add code to this
4378 ### switch statement to recognize your configuration name and select
4379 ### the appropriate operating system and machine description files.
4381 ### You would hope that you could choose an m/*.h file pretty much
4382 ### based on the machine portion of the configuration name, and an s/*.h
4383 ### file based on the operating system portion. However, it turns out
4384 ### that each m/*.h file is pretty manufacturer-specific - for
4385 ### example mips.h is MIPS
4386 ### So we basically have to have a special case for each
4387 ### configuration name.
4389 ### As far as handling version numbers on operating systems is
4390 ### concerned, make sure things will fail in a fixable way. If
4391 ### /etc/MACHINES doesn't say anything about version numbers, be
4392 ### prepared to handle anything reasonably. If version numbers
4393 ### matter, be sure /etc/MACHINES says something about it.
4395 machine
='' opsys
='' unported
=no
4396 case "${canonical}" in
4398 ## GNU/Linux and similar ports
4401 case ${canonical} in
4402 alpha
*) machine
=alpha
;;
4403 s390x-
*) machine
=ibms390x
;;
4404 powerpc
*) machine
=macppc
;;
4405 sparc
*) machine
=sparc
;;
4406 ia64
*) machine
=ia64
;;
4407 m68k
*) machine
=m68k
;;
4408 x86_64
*) machine
=amdx86-64
;;
4415 case "${canonical}" in
4416 alpha
*) machine
=alpha
;;
4417 amd64-
*|x86_64-
*) machine
=amdx86-64
;;
4418 ia64-
*) machine
=ia64
;;
4419 i
[3456]86-*) machine
=intel386
;;
4420 powerpc-
*) machine
=macppc
;;
4421 sparc-
*) machine
=sparc
;;
4422 sparc64-
*) machine
=sparc
;;
4426 ## FreeBSD kernel + glibc based userland
4429 case "${canonical}" in
4430 alpha
*) machine
=alpha
;;
4431 amd64-
*|x86_64-
*) machine
=amdx86-64
;;
4432 ia64-
*) machine
=ia64
;;
4433 i
[3456]86-*) machine
=intel386
;;
4434 powerpc-
*) machine
=macppc
;;
4435 sparc-
*) machine
=sparc
;;
4436 sparc64-
*) machine
=sparc
;;
4443 case "${canonical}" in
4444 alpha
*) machine
=alpha
;;
4445 x86_64-
*) machine
=amdx86-64
;;
4446 i
[3456]86-*) machine
=intel386
;;
4447 m68k-
*) machine
=m68k
;;
4448 powerpc-
*) machine
=macppc
;;
4449 sparc
*-) machine
=sparc
;;
4450 vax-
*) machine
=vax
;;
4457 case "${canonical}" in
4458 alpha
*) machine
=alpha
;;
4459 x86_64-
*) machine
=amdx86-64
;;
4460 i386-
*) machine
=intel386
;;
4461 powerpc-
*) machine
=macppc
;;
4462 sparc
*) machine
=sparc
;;
4463 vax-
*) machine
=vax
;;
4467 ## Apple Darwin / Mac OS X
4469 case "${canonical}" in
4470 i
[3456]86-* ) machine
=intel386
;;
4471 powerpc-
* ) machine
=macppc
;;
4472 x86_64-
* ) machine
=amdx86-64
;;
4476 # Define CPP as follows to make autoconf work correctly.
4477 CPP
="${CC-cc} -E -no-cpp-precomp"
4478 # Use fink packages if available.
4479 if test -d /sw
/include
&& test -d /sw
/lib
; then
4480 GCC_TEST_OPTIONS
="-I/sw/include -L/sw/lib"
4481 CPP
="${CPP} ${GCC_TEST_OPTIONS}"
4482 NON_GCC_TEST_OPTIONS
=${GCC_TEST_OPTIONS}
4486 ## HP 9000 series 700 and 800, running HP/UX
4487 hppa
*-hp-hpux10.2
* )
4490 hppa
*-hp-hpux1[1-9]* )
4492 CFLAGS
="-D_INCLUDE__STDC_A1_SOURCE $CFLAGS"
4496 rs6000-ibm-aix4.
[23]* )
4497 machine
=ibmrs6000 opsys
=aix4-2
4499 powerpc-ibm-aix4.
[23]* )
4500 machine
=ibmrs6000 opsys
=aix4-2
4502 rs6000-ibm-aix
[56]* )
4503 machine
=ibmrs6000 opsys
=aix4-2
4505 powerpc-ibm-aix
[56]* )
4506 machine
=ibmrs6000 opsys
=aix4-2
4509 ## Silicon Graphics machines
4513 # Without defining _LANGUAGE_C, things get masked out in the headers
4514 # so that, for instance, grepping for `free' in stdlib.h fails and
4515 # AC_HEADER_STD_C fails. (MIPSPro 7.2.1.2m compilers, Irix 6.5.3m).
4516 NON_GNU_CPP
="/lib/cpp -D_LANGUAGE_C"
4517 NON_GCC_TEST_OPTIONS
="-D_LANGUAGE_C"
4522 | i
[3456]86-*-solaris2* | i
[3456]86-*-sunos5* \
4523 | x86_64-
*-solaris2* | x86_64-
*-sunos5*)
4524 case "${canonical}" in
4525 i
[3456]86-*-* ) machine
=intel386
;;
4526 amd64-
*-*|x86_64-
*-*) machine
=amdx86-64
;;
4527 sparc
* ) machine
=sparc
;;
4530 case "${canonical}" in
4531 *-sunos5.6
* |
*-solaris2.6
* )
4533 NON_GNU_CPP
=/usr
/ccs
/lib
/cpp
4536 *-sunos5.
[7-9]* |
*-solaris2.
[7-9]* )
4538 emacs_check_sunpro_c
=yes
4539 NON_GNU_CPP
=/usr
/ccs
/lib
/cpp
4541 *-sunos5* |
*-solaris* )
4543 emacs_check_sunpro_c
=yes
4544 NON_GNU_CPP
=/usr
/ccs
/lib
/cpp
4547 ## Watch out for a compiler that we know will not work.
4548 case "${canonical}" in
4549 *-solaris* |
*-sunos5* )
4550 if [ "x$CC" = x
/usr
/ucb
/cc
]; then
4551 ## /usr/ucb/cc doesn't work;
4552 ## we should find some other compiler that does work.
4560 ## Intel 386 machines where we don't care about the manufacturer.
4563 case "${canonical}" in
4564 *-cygwin ) opsys
=cygwin
;;
4565 *-darwin* ) opsys
=darwin
4566 CPP
="${CC-cc} -E -no-cpp-precomp"
4568 *-sysv4.2uw
* ) opsys
=unixware
; NON_GNU_CPP
=/lib
/cpp
;;
4569 *-sysv5uw* ) opsys
=unixware
; NON_GNU_CPP
=/lib
/cpp
;;
4570 *-sysv5OpenUNIX* ) opsys
=unixware
; NON_GNU_CPP
=/lib
/cpp
;;
4571 ## Otherwise, we'll fall through to the generic opsys code at the bottom.
4580 ### If the code above didn't choose an operating system, just choose
4581 ### an operating system based on the configuration name. You really
4582 ### only want to use this when you have no idea what the right
4583 ### operating system is; if you know what operating systems a machine
4584 ### runs, it's cleaner to make it explicit in the case statement
4586 if test x
"${opsys}" = x
; then
4587 case "${canonical}" in
4588 *-gnu* ) opsys
=gnu
;;
4597 if test $unported = yes; then
4598 as_fn_error
"Emacs hasn't been ported to \`${canonical}' systems.
4599 Check \`etc/MACHINES' for recognized configuration names." "$LINENO" 5
4602 if test -n "$machine"; then
4603 machfile
="m/${machine}.h"
4607 opsysfile
="s/${opsys}.h"
4610 #### Choose a compiler.
4611 test -n "$CC" && cc_specified
=yes
4613 # Save the value of CFLAGS that the user specified.
4614 SPECIFIED_CFLAGS
="$CFLAGS"
4617 ac_cpp
='$CPP $CPPFLAGS'
4618 ac_compile
='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4619 ac_link
='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4620 ac_compiler_gnu
=$ac_cv_c_compiler_gnu
4621 if test -n "$ac_tool_prefix"; then
4622 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
4623 set dummy
${ac_tool_prefix}gcc
; ac_word
=$2
4624 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4625 $as_echo_n "checking for $ac_word... " >&6; }
4626 if test "${ac_cv_prog_CC+set}" = set; then :
4627 $as_echo_n "(cached) " >&6
4629 if test -n "$CC"; then
4630 ac_cv_prog_CC
="$CC" # Let the user override the test.
4632 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
4636 test -z "$as_dir" && as_dir
=.
4637 for ac_exec_ext
in '' $ac_executable_extensions; do
4638 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4639 ac_cv_prog_CC
="${ac_tool_prefix}gcc"
4640 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4650 if test -n "$CC"; then
4651 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
4652 $as_echo "$CC" >&6; }
4654 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4655 $as_echo "no" >&6; }
4660 if test -z "$ac_cv_prog_CC"; then
4662 # Extract the first word of "gcc", so it can be a program name with args.
4663 set dummy gcc
; ac_word
=$2
4664 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4665 $as_echo_n "checking for $ac_word... " >&6; }
4666 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then :
4667 $as_echo_n "(cached) " >&6
4669 if test -n "$ac_ct_CC"; then
4670 ac_cv_prog_ac_ct_CC
="$ac_ct_CC" # Let the user override the test.
4672 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
4676 test -z "$as_dir" && as_dir
=.
4677 for ac_exec_ext
in '' $ac_executable_extensions; do
4678 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4679 ac_cv_prog_ac_ct_CC
="gcc"
4680 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4689 ac_ct_CC
=$ac_cv_prog_ac_ct_CC
4690 if test -n "$ac_ct_CC"; then
4691 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
4692 $as_echo "$ac_ct_CC" >&6; }
4694 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4695 $as_echo "no" >&6; }
4698 if test "x$ac_ct_CC" = x
; then
4701 case $cross_compiling:$ac_tool_warned in
4703 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4704 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4705 ac_tool_warned
=yes ;;
4713 if test -z "$CC"; then
4714 if test -n "$ac_tool_prefix"; then
4715 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
4716 set dummy
${ac_tool_prefix}cc
; ac_word
=$2
4717 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4718 $as_echo_n "checking for $ac_word... " >&6; }
4719 if test "${ac_cv_prog_CC+set}" = set; then :
4720 $as_echo_n "(cached) " >&6
4722 if test -n "$CC"; then
4723 ac_cv_prog_CC
="$CC" # Let the user override the test.
4725 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
4729 test -z "$as_dir" && as_dir
=.
4730 for ac_exec_ext
in '' $ac_executable_extensions; do
4731 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4732 ac_cv_prog_CC
="${ac_tool_prefix}cc"
4733 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4743 if test -n "$CC"; then
4744 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
4745 $as_echo "$CC" >&6; }
4747 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4748 $as_echo "no" >&6; }
4754 if test -z "$CC"; then
4755 # Extract the first word of "cc", so it can be a program name with args.
4756 set dummy cc
; ac_word
=$2
4757 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4758 $as_echo_n "checking for $ac_word... " >&6; }
4759 if test "${ac_cv_prog_CC+set}" = set; then :
4760 $as_echo_n "(cached) " >&6
4762 if test -n "$CC"; then
4763 ac_cv_prog_CC
="$CC" # Let the user override the test.
4766 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
4770 test -z "$as_dir" && as_dir
=.
4771 for ac_exec_ext
in '' $ac_executable_extensions; do
4772 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4773 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
4774 ac_prog_rejected
=yes
4778 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4785 if test $ac_prog_rejected = yes; then
4786 # We found a bogon in the path, so make sure we never use it.
4787 set dummy
$ac_cv_prog_CC
4789 if test $# != 0; then
4790 # We chose a different compiler from the bogus one.
4791 # However, it has the same basename, so the bogon will be chosen
4792 # first if we set CC to just the basename; use the full file name.
4794 ac_cv_prog_CC
="$as_dir/$ac_word${1+' '}$@"
4800 if test -n "$CC"; then
4801 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
4802 $as_echo "$CC" >&6; }
4804 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4805 $as_echo "no" >&6; }
4810 if test -z "$CC"; then
4811 if test -n "$ac_tool_prefix"; then
4812 for ac_prog
in cl.exe
4814 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
4815 set dummy
$ac_tool_prefix$ac_prog; ac_word
=$2
4816 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4817 $as_echo_n "checking for $ac_word... " >&6; }
4818 if test "${ac_cv_prog_CC+set}" = set; then :
4819 $as_echo_n "(cached) " >&6
4821 if test -n "$CC"; then
4822 ac_cv_prog_CC
="$CC" # Let the user override the test.
4824 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
4828 test -z "$as_dir" && as_dir
=.
4829 for ac_exec_ext
in '' $ac_executable_extensions; do
4830 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4831 ac_cv_prog_CC
="$ac_tool_prefix$ac_prog"
4832 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4842 if test -n "$CC"; then
4843 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
4844 $as_echo "$CC" >&6; }
4846 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4847 $as_echo "no" >&6; }
4851 test -n "$CC" && break
4854 if test -z "$CC"; then
4856 for ac_prog
in cl.exe
4858 # Extract the first word of "$ac_prog", so it can be a program name with args.
4859 set dummy
$ac_prog; ac_word
=$2
4860 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4861 $as_echo_n "checking for $ac_word... " >&6; }
4862 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then :
4863 $as_echo_n "(cached) " >&6
4865 if test -n "$ac_ct_CC"; then
4866 ac_cv_prog_ac_ct_CC
="$ac_ct_CC" # Let the user override the test.
4868 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
4872 test -z "$as_dir" && as_dir
=.
4873 for ac_exec_ext
in '' $ac_executable_extensions; do
4874 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4875 ac_cv_prog_ac_ct_CC
="$ac_prog"
4876 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4885 ac_ct_CC
=$ac_cv_prog_ac_ct_CC
4886 if test -n "$ac_ct_CC"; then
4887 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
4888 $as_echo "$ac_ct_CC" >&6; }
4890 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4891 $as_echo "no" >&6; }
4895 test -n "$ac_ct_CC" && break
4898 if test "x$ac_ct_CC" = x
; then
4901 case $cross_compiling:$ac_tool_warned in
4903 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4904 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4905 ac_tool_warned
=yes ;;
4914 test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4915 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4916 as_fn_error
"no acceptable C compiler found in \$PATH
4917 See \`config.log' for more details." "$LINENO" 5; }
4919 # Provide some information about the compiler.
4920 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
4923 for ac_option
in --version -v -V -qversion; do
4924 { { ac_try
="$ac_compiler $ac_option >&5"
4926 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
4927 *) ac_try_echo=$ac_try;;
4929 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4930 $as_echo "$ac_try_echo"; } >&5
4931 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
4933 if test -s conftest.err; then
4935 ... rest of stderr output deleted ...
4936 10q' conftest.err >conftest.er1
4937 cat conftest.er1 >&5
4939 rm -f conftest.er1 conftest.err
4940 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4941 test $ac_status = 0; }
4944 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4945 /* end confdefs.h. */
4955 ac_clean_files_save=$ac_clean_files
4956 ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
4957 # Try to create an executable without -o first, disregard a.out.
4958 # It will help us diagnose broken compilers, and finding out an intuition
4960 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
4961 $as_echo_n "checking whether the C compiler works... " >&6; }
4962 ac_link_default=`$as_echo "$ac_link" |
sed 's/ -o *conftest[^ ]*//'`
4964 # The possible output files:
4965 ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
4968 for ac_file in $ac_files
4971 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
4972 * ) ac_rmfiles="$ac_rmfiles $ac_file";;
4977 if { { ac_try="$ac_link_default"
4979 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
4980 *) ac_try_echo
=$ac_try;;
4982 eval ac_try_echo
="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4983 $as_echo "$ac_try_echo"; } >&5
4984 (eval "$ac_link_default") 2>&5
4986 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4987 test $ac_status = 0; }; then :
4988 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
4989 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
4990 # in a Makefile. We should not override ac_cv_exeext if it was cached,
4991 # so that the user can short-circuit this test for compilers unknown to
4993 for ac_file
in $ac_files ''
4995 test -f "$ac_file" ||
continue
4997 *.
$ac_ext |
*.xcoff |
*.tds |
*.d |
*.pdb |
*.xSYM |
*.bb |
*.bbg |
*.map |
*.inf |
*.dSYM |
*.o |
*.obj
)
5000 # We found the default executable, but exeext='' is most
5004 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no
;
5006 ac_cv_exeext
=`expr "$ac_file" : '[^.]*\(\..*\)'`
5008 # We set ac_cv_exeext here because the later test for it is not
5009 # safe: cross compilers may not add the suffix if given an `-o'
5010 # argument, so we may need to know it at that point already.
5011 # Even if this section looks crufty: it has the advantage of
5018 test "$ac_cv_exeext" = no
&& ac_cv_exeext
=
5023 if test -z "$ac_file"; then :
5024 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5025 $as_echo "no" >&6; }
5026 $as_echo "$as_me: failed program was:" >&5
5027 sed 's/^/| /' conftest.
$ac_ext >&5
5029 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
5030 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
5031 { as_fn_set_status
77
5032 as_fn_error
"C compiler cannot create executables
5033 See \`config.log' for more details." "$LINENO" 5; }; }
5035 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5036 $as_echo "yes" >&6; }
5038 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
5039 $as_echo_n "checking for C compiler default output file name... " >&6; }
5040 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
5041 $as_echo "$ac_file" >&6; }
5042 ac_exeext
=$ac_cv_exeext
5044 rm -f -r a.out a.out.dSYM a.exe conftest
$ac_cv_exeext b.out
5045 ac_clean_files
=$ac_clean_files_save
5046 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
5047 $as_echo_n "checking for suffix of executables... " >&6; }
5048 if { { ac_try
="$ac_link"
5050 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
5051 *) ac_try_echo=$ac_try;;
5053 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
5054 $as_echo "$ac_try_echo"; } >&5
5055 (eval "$ac_link") 2>&5
5057 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5058 test $ac_status = 0; }; then :
5059 # If both `conftest.exe
' and `conftest' are
`present' (well, observable)
5060 # catch `conftest.exe
'. For instance with Cygwin, `ls conftest' will
5061 # work properly (i.e., refer to `conftest.exe'), while it won't with
5063 for ac_file
in conftest.exe conftest conftest.
*; do
5064 test -f "$ac_file" ||
continue
5066 *.
$ac_ext |
*.xcoff |
*.tds |
*.d |
*.pdb |
*.xSYM |
*.bb |
*.bbg |
*.map |
*.inf |
*.dSYM |
*.o |
*.obj
) ;;
5067 *.
* ) ac_cv_exeext
=`expr "$ac_file" : '[^.]*\(\..*\)'`
5073 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
5074 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
5075 as_fn_error
"cannot compute suffix of executables: cannot compile and link
5076 See \`config.log' for more details." "$LINENO" 5; }
5078 rm -f conftest conftest
$ac_cv_exeext
5079 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
5080 $as_echo "$ac_cv_exeext" >&6; }
5082 rm -f conftest.
$ac_ext
5083 EXEEXT
=$ac_cv_exeext
5085 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
5086 /* end confdefs.h. */
5091 FILE *f = fopen ("conftest.out", "w");
5092 return ferror (f) || fclose (f) != 0;
5098 ac_clean_files
="$ac_clean_files conftest.out"
5099 # Check that the compiler produces executables we can run. If not, either
5100 # the compiler is broken, or we cross compile.
5101 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
5102 $as_echo_n "checking whether we are cross compiling... " >&6; }
5103 if test "$cross_compiling" != yes; then
5104 { { ac_try
="$ac_link"
5106 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
5107 *) ac_try_echo=$ac_try;;
5109 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
5110 $as_echo "$ac_try_echo"; } >&5
5111 (eval "$ac_link") 2>&5
5113 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5114 test $ac_status = 0; }
5115 if { ac_try='./conftest$ac_cv_exeext'
5116 { { case "(($ac_try" in
5117 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
5118 *) ac_try_echo
=$ac_try;;
5120 eval ac_try_echo
="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
5121 $as_echo "$ac_try_echo"; } >&5
5122 (eval "$ac_try") 2>&5
5124 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5125 test $ac_status = 0; }; }; then
5128 if test "$cross_compiling" = maybe
; then
5131 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
5132 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
5133 as_fn_error
"cannot run C compiled programs.
5134 If you meant to cross compile, use \`--host'.
5135 See \`config.log' for more details." "$LINENO" 5; }
5139 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
5140 $as_echo "$cross_compiling" >&6; }
5142 rm -f conftest.
$ac_ext conftest
$ac_cv_exeext conftest.out
5143 ac_clean_files
=$ac_clean_files_save
5144 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
5145 $as_echo_n "checking for suffix of object files... " >&6; }
5146 if test "${ac_cv_objext+set}" = set; then :
5147 $as_echo_n "(cached) " >&6
5149 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
5150 /* end confdefs.h. */
5160 rm -f conftest.o conftest.obj
5161 if { { ac_try
="$ac_compile"
5163 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
5164 *) ac_try_echo=$ac_try;;
5166 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
5167 $as_echo "$ac_try_echo"; } >&5
5168 (eval "$ac_compile") 2>&5
5170 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5171 test $ac_status = 0; }; then :
5172 for ac_file in conftest.o conftest.obj conftest.*; do
5173 test -f "$ac_file" || continue;
5175 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
5176 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
5181 $as_echo "$as_me: failed program was:" >&5
5182 sed 's/^/| /' conftest.$ac_ext >&5
5184 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
5185 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
5186 as_fn_error "cannot compute suffix of object files
: cannot compile
5187 See \
`config.log' for more details." "$LINENO" 5; }
5189 rm -f conftest.$ac_cv_objext conftest.$ac_ext
5191 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
5192 $as_echo "$ac_cv_objext" >&6; }
5193 OBJEXT=$ac_cv_objext
5195 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
5196 $as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
5197 if test "${ac_cv_c_compiler_gnu+set}" = set; then :
5198 $as_echo_n "(cached) " >&6
5200 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5201 /* end confdefs.h. */
5214 if ac_fn_c_try_compile "$LINENO"; then :
5219 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5220 ac_cv_c_compiler_gnu=$ac_compiler_gnu
5223 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
5224 $as_echo "$ac_cv_c_compiler_gnu" >&6; }
5225 if test $ac_compiler_gnu = yes; then
5230 ac_test_CFLAGS=${CFLAGS+set}
5231 ac_save_CFLAGS=$CFLAGS
5232 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
5233 $as_echo_n "checking whether $CC accepts -g... " >&6; }
5234 if test "${ac_cv_prog_cc_g+set}" = set; then :
5235 $as_echo_n "(cached) " >&6
5237 ac_save_c_werror_flag=$ac_c_werror_flag
5238 ac_c_werror_flag=yes
5241 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5242 /* end confdefs.h. */
5252 if ac_fn_c_try_compile "$LINENO"; then :
5256 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5257 /* end confdefs.h. */
5267 if ac_fn_c_try_compile "$LINENO"; then :
5270 ac_c_werror_flag=$ac_save_c_werror_flag
5272 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5273 /* end confdefs.h. */
5283 if ac_fn_c_try_compile "$LINENO"; then :
5286 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5288 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5290 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5291 ac_c_werror_flag=$ac_save_c_werror_flag
5293 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
5294 $as_echo "$ac_cv_prog_cc_g" >&6; }
5295 if test "$ac_test_CFLAGS" = set; then
5296 CFLAGS=$ac_save_CFLAGS
5297 elif test $ac_cv_prog_cc_g = yes; then
5298 if test "$GCC" = yes; then
5304 if test "$GCC" = yes; then
5310 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
5311 $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
5312 if test "${ac_cv_prog_cc_c89+set}" = set; then :
5313 $as_echo_n "(cached) " >&6
5315 ac_cv_prog_cc_c89=no
5317 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5318 /* end confdefs.h. */
5321 #include <sys/types.h>
5322 #include <sys/stat.h>
5323 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
5324 struct buf { int x; };
5325 FILE * (*rcsopen) (struct buf *, struct stat *, int);
5326 static char *e (p, i)
5332 static char *f (char * (*g) (char **, int), char **p, ...)
5337 s = g (p, va_arg (v,int));
5342 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
5343 function prototypes and stuff, but not '\xHH' hex character constants.
5344 These don't provoke an error unfortunately, instead are silently treated
5345 as 'x'. The following induces an error, until -std is added to get
5346 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
5347 array size at least. It's necessary to write '\x00'==0 to get something
5348 that's true only with -std. */
5349 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
5351 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
5352 inside strings and character constants. */
5354 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
5356 int test (int i, double x);
5357 struct s1 {int (*f) (int a);};
5358 struct s2 {int (*f) (double a);};
5359 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
5365 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
5370 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
5371 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
5373 CC="$ac_save_CC $ac_arg"
5374 if ac_fn_c_try_compile "$LINENO"; then :
5375 ac_cv_prog_cc_c89=$ac_arg
5377 rm -f core conftest.err conftest.$ac_objext
5378 test "x$ac_cv_prog_cc_c89" != "xno" && break
5380 rm -f conftest.$ac_ext
5385 case "x$ac_cv_prog_cc_c89" in
5387 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
5388 $as_echo "none needed" >&6; } ;;
5390 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
5391 $as_echo "unsupported" >&6; } ;;
5393 CC="$CC $ac_cv_prog_cc_c89"
5394 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
5395 $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
5397 if test "x$ac_cv_prog_cc_c89" != xno; then :
5402 ac_cpp='$CPP $CPPFLAGS'
5403 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5404 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5405 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5406 DEPDIR="${am__leading_dot}deps"
5408 ac_config_commands="$ac_config_commands depfiles"
5411 am_make=${MAKE-make}
5412 cat > confinc << 'END'
5414 @echo this is the am__doit target
5417 # If we don't find an include directive, just comment out the code.
5418 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for style of include used by $am_make" >&5
5419 $as_echo_n "checking for style of include used by $am_make... " >&6; }
5423 # First try GNU make style include.
5424 echo "include confinc" > confmf
5425 # Ignore all kinds of additional output from `make'.
5426 case `$am_make -s -f confmf 2> /dev/null` in #(
5427 *the\ am__doit\ target*)
5433 # Now try BSD make style include.
5434 if test "$am__include" = "#"; then
5435 echo '.include
"confinc"' > confmf
5436 case `$am_make -s -f confmf 2> /dev/null` in #(
5437 *the\ am__doit\ target*)
5438 am__include=.include
5446 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $_am_result" >&5
5447 $as_echo "$_am_result" >&6; }
5448 rm -f confinc confmf
5450 # Check whether --enable-dependency-tracking was given.
5451 if test "${enable_dependency_tracking+set}" = set; then :
5452 enableval=$enable_dependency_tracking;
5455 if test "x$enable_dependency_tracking" != xno; then
5456 am_depcomp="$ac_aux_dir/depcomp"
5459 if test "x$enable_dependency_tracking" != xno
; then
5469 depcc
="$CC" am_compiler_list
=
5471 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
5472 $as_echo_n "checking dependency style of $depcc... " >&6; }
5473 if test "${am_cv_CC_dependencies_compiler_type+set}" = set; then :
5474 $as_echo_n "(cached) " >&6
5476 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
5477 # We make a subdir and do the tests there. Otherwise we can end up
5478 # making bogus files that we don't know about and never remove. For
5479 # instance it was reported that on HP-UX the gcc test will end up
5480 # making a dummy file named `D' -- because `-MD' means `put the output
5483 # Copy depcomp to subdir because otherwise we won't find it if we're
5484 # using a relative directory.
5485 cp "$am_depcomp" conftest.dir
5487 # We will build objects and dependencies in a subdirectory because
5488 # it helps to detect inapplicable dependency modes. For instance
5489 # both Tru64's cc and ICC support -MD to output dependencies as a
5490 # side effect of compilation, but ICC will put the dependencies in
5491 # the current directory while Tru64 will put them in the object
5495 am_cv_CC_dependencies_compiler_type
=none
5496 if test "$am_compiler_list" = ""; then
5497 am_compiler_list
=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
5500 case " $depcc " in #(
5501 *\
-arch\
*\
-arch\
*) am__universal
=true
;;
5504 for depmode
in $am_compiler_list; do
5505 # Setup a source with many dependencies, because some compilers
5506 # like to wrap large dependency lists on column 80 (with \), and
5507 # we should not choose a depcomp mode which is confused by this.
5509 # We need to recreate these files for each test, as the compiler may
5510 # overwrite some of them when testing with obscure command lines.
5511 # This happens at least with the AIX C compiler.
5513 for i
in 1 2 3 4 5 6; do
5514 echo '#include "conftst'$i'.h"' >> sub
/conftest.c
5515 # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
5516 # Solaris 8's {/usr,}/bin/sh.
5517 touch sub
/conftst
$i.h
5519 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
5521 # We check with `-c' and `-o' for the sake of the "dashmstdout"
5522 # mode. It turns out that the SunPro C++ compiler does not properly
5523 # handle `-M -o', and we need to detect this. Also, some Intel
5524 # versions had trouble with output in subdirs
5525 am__obj
=sub
/conftest.
${OBJEXT-o}
5526 am__minus_obj
="-o $am__obj"
5529 # This depmode causes a compiler race in universal mode.
5530 test "$am__universal" = false ||
continue
5533 # after this tag, mechanisms are not by side-effect, so they'll
5534 # only be used when explicitly requested
5535 if test "x$enable_dependency_tracking" = xyes
; then
5541 msvisualcpp | msvcmsys
)
5542 # This compiler won't grok `-c -o', but also, the minuso test has
5543 # not run yet. These depmodes are late enough in the game, and
5544 # so weak that their functioning should not be impacted.
5545 am__obj
=conftest.
${OBJEXT-o}
5550 if depmode
=$depmode \
5551 source=sub
/conftest.c object
=$am__obj \
5552 depfile
=sub
/conftest.Po tmpdepfile
=sub
/conftest.TPo \
5553 $SHELL .
/depcomp
$depcc -c $am__minus_obj sub
/conftest.c \
5554 >/dev
/null
2>conftest.err
&&
5555 grep sub
/conftst1.h sub
/conftest.Po
> /dev
/null
2>&1 &&
5556 grep sub
/conftst6.h sub
/conftest.Po
> /dev
/null
2>&1 &&
5557 grep $am__obj sub
/conftest.Po
> /dev
/null
2>&1 &&
5558 ${MAKE-make} -s -f confmf
> /dev
/null
2>&1; then
5559 # icc doesn't choke on unknown options, it will just issue warnings
5560 # or remarks (even with -Werror). So we grep stderr for any message
5561 # that says an option was ignored or not supported.
5562 # When given -MP, icc 7.0 and 7.1 complain thusly:
5563 # icc: Command line warning: ignoring option '-M'; no argument required
5564 # The diagnosis changed in icc 8.0:
5565 # icc: Command line remark: option '-MP' not supported
5566 if (grep 'ignoring option' conftest.err ||
5567 grep 'not supported' conftest.err
) >/dev
/null
2>&1; then :; else
5568 am_cv_CC_dependencies_compiler_type
=$depmode
5577 am_cv_CC_dependencies_compiler_type
=none
5581 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5
5582 $as_echo "$am_cv_CC_dependencies_compiler_type" >&6; }
5583 CCDEPMODE
=depmode
=$am_cv_CC_dependencies_compiler_type
5586 test "x$enable_dependency_tracking" != xno \
5587 && test "$am_cv_CC_dependencies_compiler_type" = gcc3
; then
5589 am__fastdepCC_FALSE
='#'
5591 am__fastdepCC_TRUE
='#'
5592 am__fastdepCC_FALSE
=
5596 if test "x$CC" != xcc
; then
5597 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC and cc understand -c and -o together" >&5
5598 $as_echo_n "checking whether $CC and cc understand -c and -o together... " >&6; }
5600 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether cc understands -c and -o together" >&5
5601 $as_echo_n "checking whether cc understands -c and -o together... " >&6; }
5603 set dummy
$CC; ac_cc
=`$as_echo "$2" |
5604 sed 's/[^a-zA-Z0-9_]/_/g;s/^[0-9]/_/'`
5605 if { as_var
=ac_cv_prog_cc_
${ac_cc}_c_o; eval "test \"\${$as_var+set}\" = set"; }; then :
5606 $as_echo_n "(cached) " >&6
5608 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
5609 /* end confdefs.h. */
5619 # Make sure it works both with $CC and with simple cc.
5620 # We do the test twice because some compilers refuse to overwrite an
5621 # existing .o file with -o, though they will create one.
5622 ac_try
='$CC -c conftest.$ac_ext -o conftest2.$ac_objext >&5'
5624 if { { case "(($ac_try" in
5625 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
5626 *) ac_try_echo=$ac_try;;
5628 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
5629 $as_echo "$ac_try_echo"; } >&5
5630 (eval "$ac_try") 2>&5
5632 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5633 test $ac_status = 0; } &&
5634 test -f conftest2.$ac_objext && { { case "(($ac_try" in
5635 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
5636 *) ac_try_echo
=$ac_try;;
5638 eval ac_try_echo
="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
5639 $as_echo "$ac_try_echo"; } >&5
5640 (eval "$ac_try") 2>&5
5642 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5643 test $ac_status = 0; };
5645 eval ac_cv_prog_cc_
${ac_cc}_c_o
=yes
5646 if test "x$CC" != xcc
; then
5647 # Test first that cc exists at all.
5648 if { ac_try
='cc -c conftest.$ac_ext >&5'
5649 { { case "(($ac_try" in
5650 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
5651 *) ac_try_echo=$ac_try;;
5653 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
5654 $as_echo "$ac_try_echo"; } >&5
5655 (eval "$ac_try") 2>&5
5657 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5658 test $ac_status = 0; }; }; then
5659 ac_try='cc -c conftest.$ac_ext -o conftest2.$ac_objext >&5'
5661 if { { case "(($ac_try" in
5662 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
5663 *) ac_try_echo
=$ac_try;;
5665 eval ac_try_echo
="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
5666 $as_echo "$ac_try_echo"; } >&5
5667 (eval "$ac_try") 2>&5
5669 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5670 test $ac_status = 0; } &&
5671 test -f conftest2.
$ac_objext && { { case "(($ac_try" in
5672 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
5673 *) ac_try_echo=$ac_try;;
5675 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
5676 $as_echo "$ac_try_echo"; } >&5
5677 (eval "$ac_try") 2>&5
5679 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5680 test $ac_status = 0; };
5685 # cc exists but doesn't like -o.
5686 eval ac_cv_prog_cc_${ac_cc}_c_o=no
5691 eval ac_cv_prog_cc_${ac_cc}_c_o=no
5693 rm -f core conftest*
5696 if eval test \$ac_cv_prog_cc_${ac_cc}_c_o = yes; then
5697 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5698 $as_echo "yes" >&6; }
5700 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5701 $as_echo "no" >&6; }
5703 $as_echo "#define NO_MINUS_C_MINUS_O 1" >>confdefs.h
5707 # FIXME: we rely on the cache variable name because
5708 # there is no other way.
5710 am_cc=`echo $2 |
sed 's/[^a-zA-Z0-9_]/_/g;s/^[0-9]/_/'`
5711 eval am_t=\$ac_cv_prog_cc_${am_cc}_c_o
5712 if test "$am_t" != yes; then
5713 # Losing compiler, so override with the script.
5714 # FIXME: It is wrong to rewrite CC.
5715 # But if we don't then we get into trouble of one sort or another.
5716 # A longer-term fix would be to have automake use am__CC in this case,
5717 # and then we could set am__CC="\$(top_srcdir)/compile \$(CC)"
5718 CC="$am_aux_dir/compile $CC"
5723 # Initialize gnulib right after verifying that the C compiler works.
5726 ac_cpp='$CPP $CPPFLAGS'
5727 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5728 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5729 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5730 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
5731 $as_echo_n "checking how to run the C preprocessor... " >&6; }
5732 # On Suns, sometimes $CPP names a directory.
5733 if test -n "$CPP" && test -d "$CPP"; then
5736 if test -z "$CPP"; then
5737 if test "${ac_cv_prog_CPP+set}" = set; then :
5738 $as_echo_n "(cached) " >&6
5740 # Double quotes because CPP needs to be expanded
5741 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
5744 for ac_c_preproc_warn_flag in '' yes
5746 # Use a header file that comes with gcc, so configuring glibc
5747 # with a fresh cross-compiler works.
5748 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5749 # <limits.h> exists even on freestanding compilers.
5750 # On the NeXT, cc -E runs the code through the compiler's parser,
5751 # not just through cpp. "Syntax error" is here to catch this case.
5752 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5753 /* end confdefs.h. */
5755 # include <limits.h>
5757 # include <assert.h>
5761 if ac_fn_c_try_cpp "$LINENO"; then :
5764 # Broken: fails on valid input.
5767 rm -f conftest.err conftest.$ac_ext
5769 # OK, works on sane cases. Now check whether nonexistent headers
5770 # can be detected and how.
5771 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5772 /* end confdefs.h. */
5773 #include <ac_nonexistent.h>
5775 if ac_fn_c_try_cpp "$LINENO"; then :
5776 # Broken: success on invalid input.
5779 # Passes both tests.
5783 rm -f conftest.err conftest.$ac_ext
5786 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
5787 rm -f conftest.err conftest.
$ac_ext
5788 if $ac_preproc_ok; then :
5800 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
5801 $as_echo "$CPP" >&6; }
5803 for ac_c_preproc_warn_flag
in '' yes
5805 # Use a header file that comes with gcc, so configuring glibc
5806 # with a fresh cross-compiler works.
5807 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5808 # <limits.h> exists even on freestanding compilers.
5809 # On the NeXT, cc -E runs the code through the compiler's parser,
5810 # not just through cpp. "Syntax error" is here to catch this case.
5811 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
5812 /* end confdefs.h. */
5814 # include <limits.h>
5816 # include <assert.h>
5820 if ac_fn_c_try_cpp
"$LINENO"; then :
5823 # Broken: fails on valid input.
5826 rm -f conftest.err conftest.
$ac_ext
5828 # OK, works on sane cases. Now check whether nonexistent headers
5829 # can be detected and how.
5830 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
5831 /* end confdefs.h. */
5832 #include <ac_nonexistent.h>
5834 if ac_fn_c_try_cpp
"$LINENO"; then :
5835 # Broken: success on invalid input.
5838 # Passes both tests.
5842 rm -f conftest.err conftest.
$ac_ext
5845 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
5846 rm -f conftest.err conftest.
$ac_ext
5847 if $ac_preproc_ok; then :
5850 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
5851 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
5852 as_fn_error
"C preprocessor \"$CPP\" fails sanity check
5853 See \`config.log' for more details." "$LINENO" 5; }
5857 ac_cpp
='$CPP $CPPFLAGS'
5858 ac_compile
='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5859 ac_link
='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5860 ac_compiler_gnu
=$ac_cv_c_compiler_gnu
5863 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
5864 $as_echo_n "checking for grep that handles long lines and -e... " >&6; }
5865 if test "${ac_cv_path_GREP+set}" = set; then :
5866 $as_echo_n "(cached) " >&6
5868 if test -z "$GREP"; then
5869 ac_path_GREP_found
=false
5870 # Loop through the user's path and test for each of PROGNAME-LIST
5871 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
5872 for as_dir
in $PATH$PATH_SEPARATOR/usr
/xpg
4/bin
5875 test -z "$as_dir" && as_dir
=.
5876 for ac_prog
in grep ggrep
; do
5877 for ac_exec_ext
in '' $ac_executable_extensions; do
5878 ac_path_GREP
="$as_dir/$ac_prog$ac_exec_ext"
5879 { test -f "$ac_path_GREP" && $as_test_x "$ac_path_GREP"; } ||
continue
5880 # Check for GNU ac_path_GREP and select it if it is found.
5881 # Check for GNU $ac_path_GREP
5882 case `"$ac_path_GREP" --version 2>&1` in
5884 ac_cv_path_GREP
="$ac_path_GREP" ac_path_GREP_found
=:;;
5887 $as_echo_n 0123456789 >"conftest.in"
5890 cat "conftest.in" "conftest.in" >"conftest.tmp"
5891 mv "conftest.tmp" "conftest.in"
5892 cp "conftest.in" "conftest.nl"
5893 $as_echo 'GREP' >> "conftest.nl"
5894 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev
/null ||
break
5895 diff "conftest.out" "conftest.nl" >/dev
/null
2>&1 ||
break
5896 as_fn_arith
$ac_count + 1 && ac_count
=$as_val
5897 if test $ac_count -gt ${ac_path_GREP_max-0}; then
5898 # Best one so far, save it but keep looking for a better one
5899 ac_cv_path_GREP
="$ac_path_GREP"
5900 ac_path_GREP_max
=$ac_count
5902 # 10*(2^10) chars as input seems more than enough
5903 test $ac_count -gt 10 && break
5905 rm -f conftest.
in conftest.tmp conftest.
nl conftest.out
;;
5908 $ac_path_GREP_found && break 3
5913 if test -z "$ac_cv_path_GREP"; then
5914 as_fn_error
"no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
5917 ac_cv_path_GREP
=$GREP
5921 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
5922 $as_echo "$ac_cv_path_GREP" >&6; }
5923 GREP
="$ac_cv_path_GREP"
5926 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
5927 $as_echo_n "checking for egrep... " >&6; }
5928 if test "${ac_cv_path_EGREP+set}" = set; then :
5929 $as_echo_n "(cached) " >&6
5931 if echo a |
$GREP -E '(a|b)' >/dev
/null
2>&1
5932 then ac_cv_path_EGREP
="$GREP -E"
5934 if test -z "$EGREP"; then
5935 ac_path_EGREP_found
=false
5936 # Loop through the user's path and test for each of PROGNAME-LIST
5937 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
5938 for as_dir
in $PATH$PATH_SEPARATOR/usr
/xpg
4/bin
5941 test -z "$as_dir" && as_dir
=.
5942 for ac_prog
in egrep; do
5943 for ac_exec_ext
in '' $ac_executable_extensions; do
5944 ac_path_EGREP
="$as_dir/$ac_prog$ac_exec_ext"
5945 { test -f "$ac_path_EGREP" && $as_test_x "$ac_path_EGREP"; } ||
continue
5946 # Check for GNU ac_path_EGREP and select it if it is found.
5947 # Check for GNU $ac_path_EGREP
5948 case `"$ac_path_EGREP" --version 2>&1` in
5950 ac_cv_path_EGREP
="$ac_path_EGREP" ac_path_EGREP_found
=:;;
5953 $as_echo_n 0123456789 >"conftest.in"
5956 cat "conftest.in" "conftest.in" >"conftest.tmp"
5957 mv "conftest.tmp" "conftest.in"
5958 cp "conftest.in" "conftest.nl"
5959 $as_echo 'EGREP' >> "conftest.nl"
5960 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev
/null ||
break
5961 diff "conftest.out" "conftest.nl" >/dev
/null
2>&1 ||
break
5962 as_fn_arith
$ac_count + 1 && ac_count
=$as_val
5963 if test $ac_count -gt ${ac_path_EGREP_max-0}; then
5964 # Best one so far, save it but keep looking for a better one
5965 ac_cv_path_EGREP
="$ac_path_EGREP"
5966 ac_path_EGREP_max
=$ac_count
5968 # 10*(2^10) chars as input seems more than enough
5969 test $ac_count -gt 10 && break
5971 rm -f conftest.
in conftest.tmp conftest.
nl conftest.out
;;
5974 $ac_path_EGREP_found && break 3
5979 if test -z "$ac_cv_path_EGREP"; then
5980 as_fn_error
"no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
5983 ac_cv_path_EGREP
=$EGREP
5988 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
5989 $as_echo "$ac_cv_path_EGREP" >&6; }
5990 EGREP
="$ac_cv_path_EGREP"
5995 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Minix Amsterdam compiler" >&5
5996 $as_echo_n "checking for Minix Amsterdam compiler... " >&6; }
5997 if test "${gl_cv_c_amsterdam_compiler+set}" = set; then :
5998 $as_echo_n "(cached) " >&6
6001 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
6002 /* end confdefs.h. */
6009 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6010 $EGREP "Amsterdam" >/dev
/null
2>&1; then :
6011 gl_cv_c_amsterdam_compiler
=yes
6013 gl_cv_c_amsterdam_compiler
=no
6019 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_c_amsterdam_compiler" >&5
6020 $as_echo "$gl_cv_c_amsterdam_compiler" >&6; }
6021 if test -z "$AR"; then
6022 if test $gl_cv_c_amsterdam_compiler = yes; then
6024 if test -z "$ARFLAGS"; then
6028 if test -n "$ac_tool_prefix"; then
6029 # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
6030 set dummy
${ac_tool_prefix}ar; ac_word
=$2
6031 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6032 $as_echo_n "checking for $ac_word... " >&6; }
6033 if test "${ac_cv_prog_AR+set}" = set; then :
6034 $as_echo_n "(cached) " >&6
6036 if test -n "$AR"; then
6037 ac_cv_prog_AR
="$AR" # Let the user override the test.
6039 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
6043 test -z "$as_dir" && as_dir
=.
6044 for ac_exec_ext
in '' $ac_executable_extensions; do
6045 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6046 ac_cv_prog_AR
="${ac_tool_prefix}ar"
6047 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6057 if test -n "$AR"; then
6058 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
6059 $as_echo "$AR" >&6; }
6061 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6062 $as_echo "no" >&6; }
6067 if test -z "$ac_cv_prog_AR"; then
6069 # Extract the first word of "ar", so it can be a program name with args.
6070 set dummy
ar; ac_word
=$2
6071 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6072 $as_echo_n "checking for $ac_word... " >&6; }
6073 if test "${ac_cv_prog_ac_ct_AR+set}" = set; then :
6074 $as_echo_n "(cached) " >&6
6076 if test -n "$ac_ct_AR"; then
6077 ac_cv_prog_ac_ct_AR
="$ac_ct_AR" # Let the user override the test.
6079 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
6083 test -z "$as_dir" && as_dir
=.
6084 for ac_exec_ext
in '' $ac_executable_extensions; do
6085 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6086 ac_cv_prog_ac_ct_AR
="ar"
6087 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6096 ac_ct_AR
=$ac_cv_prog_ac_ct_AR
6097 if test -n "$ac_ct_AR"; then
6098 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5
6099 $as_echo "$ac_ct_AR" >&6; }
6101 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6102 $as_echo "no" >&6; }
6105 if test "x$ac_ct_AR" = x
; then
6108 case $cross_compiling:$ac_tool_warned in
6110 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6111 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6112 ac_tool_warned
=yes ;;
6120 if test -z "$ARFLAGS"; then
6125 if test -z "$ARFLAGS"; then
6131 if test -z "$RANLIB"; then
6132 if test $gl_cv_c_amsterdam_compiler = yes; then
6135 if test -n "$ac_tool_prefix"; then
6136 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
6137 set dummy
${ac_tool_prefix}ranlib
; ac_word
=$2
6138 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6139 $as_echo_n "checking for $ac_word... " >&6; }
6140 if test "${ac_cv_prog_RANLIB+set}" = set; then :
6141 $as_echo_n "(cached) " >&6
6143 if test -n "$RANLIB"; then
6144 ac_cv_prog_RANLIB
="$RANLIB" # Let the user override the test.
6146 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
6150 test -z "$as_dir" && as_dir
=.
6151 for ac_exec_ext
in '' $ac_executable_extensions; do
6152 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6153 ac_cv_prog_RANLIB
="${ac_tool_prefix}ranlib"
6154 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6163 RANLIB
=$ac_cv_prog_RANLIB
6164 if test -n "$RANLIB"; then
6165 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
6166 $as_echo "$RANLIB" >&6; }
6168 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6169 $as_echo "no" >&6; }
6174 if test -z "$ac_cv_prog_RANLIB"; then
6175 ac_ct_RANLIB
=$RANLIB
6176 # Extract the first word of "ranlib", so it can be a program name with args.
6177 set dummy ranlib
; ac_word
=$2
6178 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6179 $as_echo_n "checking for $ac_word... " >&6; }
6180 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then :
6181 $as_echo_n "(cached) " >&6
6183 if test -n "$ac_ct_RANLIB"; then
6184 ac_cv_prog_ac_ct_RANLIB
="$ac_ct_RANLIB" # Let the user override the test.
6186 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
6190 test -z "$as_dir" && as_dir
=.
6191 for ac_exec_ext
in '' $ac_executable_extensions; do
6192 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6193 ac_cv_prog_ac_ct_RANLIB
="ranlib"
6194 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6203 ac_ct_RANLIB
=$ac_cv_prog_ac_ct_RANLIB
6204 if test -n "$ac_ct_RANLIB"; then
6205 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
6206 $as_echo "$ac_ct_RANLIB" >&6; }
6208 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6209 $as_echo "no" >&6; }
6212 if test "x$ac_ct_RANLIB" = x
; then
6215 case $cross_compiling:$ac_tool_warned in
6217 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6218 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6219 ac_tool_warned
=yes ;;
6221 RANLIB
=$ac_ct_RANLIB
6224 RANLIB
="$ac_cv_prog_RANLIB"
6231 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
6232 $as_echo_n "checking for ANSI C header files... " >&6; }
6233 if test "${ac_cv_header_stdc+set}" = set; then :
6234 $as_echo_n "(cached) " >&6
6236 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
6237 /* end confdefs.h. */
6251 if ac_fn_c_try_compile
"$LINENO"; then :
6252 ac_cv_header_stdc
=yes
6254 ac_cv_header_stdc
=no
6256 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
6258 if test $ac_cv_header_stdc = yes; then
6259 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
6260 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
6261 /* end confdefs.h. */
6265 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6266 $EGREP "memchr" >/dev
/null
2>&1; then :
6269 ac_cv_header_stdc
=no
6275 if test $ac_cv_header_stdc = yes; then
6276 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
6277 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
6278 /* end confdefs.h. */
6282 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6283 $EGREP "free" >/dev
/null
2>&1; then :
6286 ac_cv_header_stdc
=no
6292 if test $ac_cv_header_stdc = yes; then
6293 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
6294 if test "$cross_compiling" = yes; then :
6297 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
6298 /* end confdefs.h. */
6301 #if ((' ' & 0x0FF) == 0x020)
6302 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
6303 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
6305 # define ISLOWER(c) \
6306 (('a' <= (c) && (c) <= 'i') \
6307 || ('j' <= (c) && (c) <= 'r') \
6308 || ('s' <= (c) && (c) <= 'z'))
6309 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
6312 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
6317 for (i = 0; i < 256; i++)
6318 if (XOR (islower (i), ISLOWER (i))
6319 || toupper (i) != TOUPPER (i))
6324 if ac_fn_c_try_run
"$LINENO"; then :
6327 ac_cv_header_stdc
=no
6329 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
6330 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
6335 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
6336 $as_echo "$ac_cv_header_stdc" >&6; }
6337 if test $ac_cv_header_stdc = yes; then
6339 $as_echo "#define STDC_HEADERS 1" >>confdefs.h
6343 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
6344 for ac_header
in sys
/types.h sys
/stat.h stdlib.h string.h memory.h
strings.h \
6345 inttypes.h stdint.h unistd.h
6347 as_ac_Header
=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
6348 ac_fn_c_check_header_compile
"$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
6350 eval as_val
=\$
$as_ac_Header
6351 if test "x$as_val" = x
""yes; then :
6352 cat >>confdefs.h
<<_ACEOF
6353 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
6364 ac_fn_c_check_header_mongrel
"$LINENO" "minix/config.h" "ac_cv_header_minix_config_h" "$ac_includes_default"
6365 if test "x$ac_cv_header_minix_config_h" = x
""yes; then :
6372 if test "$MINIX" = yes; then
6374 $as_echo "#define _POSIX_SOURCE 1" >>confdefs.h
6377 $as_echo "#define _POSIX_1_SOURCE 2" >>confdefs.h
6380 $as_echo "#define _MINIX 1" >>confdefs.h
6387 $as_echo "#define _XOPEN_SOURCE 500" >>confdefs.h
6393 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether it is safe to define __EXTENSIONS__" >&5
6394 $as_echo_n "checking whether it is safe to define __EXTENSIONS__... " >&6; }
6395 if test "${ac_cv_safe_to_define___extensions__+set}" = set; then :
6396 $as_echo_n "(cached) " >&6
6398 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
6399 /* end confdefs.h. */
6401 # define __EXTENSIONS__ 1
6402 $ac_includes_default
6411 if ac_fn_c_try_compile
"$LINENO"; then :
6412 ac_cv_safe_to_define___extensions__
=yes
6414 ac_cv_safe_to_define___extensions__
=no
6416 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
6418 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_safe_to_define___extensions__" >&5
6419 $as_echo "$ac_cv_safe_to_define___extensions__" >&6; }
6420 test $ac_cv_safe_to_define___extensions__ = yes &&
6421 $as_echo "#define __EXTENSIONS__ 1" >>confdefs.h
6423 $as_echo "#define _ALL_SOURCE 1" >>confdefs.h
6425 $as_echo "#define _DARWIN_C_SOURCE 1" >>confdefs.h
6427 $as_echo "#define _GNU_SOURCE 1" >>confdefs.h
6429 $as_echo "#define _POSIX_PTHREAD_SEMANTICS 1" >>confdefs.h
6431 $as_echo "#define _TANDEM_SOURCE 1" >>confdefs.h
6440 # Check whether --enable-largefile was given.
6441 if test "${enable_largefile+set}" = set; then :
6442 enableval
=$enable_largefile;
6445 if test "$enable_largefile" != no
; then
6447 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for special C compiler options needed for large files" >&5
6448 $as_echo_n "checking for special C compiler options needed for large files... " >&6; }
6449 if test "${ac_cv_sys_largefile_CC+set}" = set; then :
6450 $as_echo_n "(cached) " >&6
6452 ac_cv_sys_largefile_CC
=no
6453 if test "$GCC" != yes; then
6456 # IRIX 6.2 and later do not support large files by default,
6457 # so use the C compiler's -n32 option if that helps.
6458 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
6459 /* end confdefs.h. */
6460 #include <sys/types.h>
6461 /* Check that off_t can represent 2**63 - 1 correctly.
6462 We can't simply define LARGE_OFF_T to be 9223372036854775807,
6463 since some C++ compilers masquerading as C compilers
6464 incorrectly reject 9223372036854775807. */
6465 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
6466 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
6467 && LARGE_OFF_T % 2147483647 == 1)
6477 if ac_fn_c_try_compile
"$LINENO"; then :
6480 rm -f core conftest.err conftest.
$ac_objext
6482 if ac_fn_c_try_compile
"$LINENO"; then :
6483 ac_cv_sys_largefile_CC
=' -n32'; break
6485 rm -f core conftest.err conftest.
$ac_objext
6489 rm -f conftest.
$ac_ext
6492 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_largefile_CC" >&5
6493 $as_echo "$ac_cv_sys_largefile_CC" >&6; }
6494 if test "$ac_cv_sys_largefile_CC" != no
; then
6495 CC
=$CC$ac_cv_sys_largefile_CC
6498 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _FILE_OFFSET_BITS value needed for large files" >&5
6499 $as_echo_n "checking for _FILE_OFFSET_BITS value needed for large files... " >&6; }
6500 if test "${ac_cv_sys_file_offset_bits+set}" = set; then :
6501 $as_echo_n "(cached) " >&6
6504 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
6505 /* end confdefs.h. */
6506 #include <sys/types.h>
6507 /* Check that off_t can represent 2**63 - 1 correctly.
6508 We can't simply define LARGE_OFF_T to be 9223372036854775807,
6509 since some C++ compilers masquerading as C compilers
6510 incorrectly reject 9223372036854775807. */
6511 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
6512 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
6513 && LARGE_OFF_T % 2147483647 == 1)
6523 if ac_fn_c_try_compile
"$LINENO"; then :
6524 ac_cv_sys_file_offset_bits
=no
; break
6526 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
6527 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
6528 /* end confdefs.h. */
6529 #define _FILE_OFFSET_BITS 64
6530 #include <sys/types.h>
6531 /* Check that off_t can represent 2**63 - 1 correctly.
6532 We can't simply define LARGE_OFF_T to be 9223372036854775807,
6533 since some C++ compilers masquerading as C compilers
6534 incorrectly reject 9223372036854775807. */
6535 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
6536 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
6537 && LARGE_OFF_T % 2147483647 == 1)
6547 if ac_fn_c_try_compile
"$LINENO"; then :
6548 ac_cv_sys_file_offset_bits
=64; break
6550 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
6551 ac_cv_sys_file_offset_bits
=unknown
6555 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_file_offset_bits" >&5
6556 $as_echo "$ac_cv_sys_file_offset_bits" >&6; }
6557 case $ac_cv_sys_file_offset_bits in #(
6560 cat >>confdefs.h
<<_ACEOF
6561 #define _FILE_OFFSET_BITS $ac_cv_sys_file_offset_bits
6566 if test $ac_cv_sys_file_offset_bits = unknown
; then
6567 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _LARGE_FILES value needed for large files" >&5
6568 $as_echo_n "checking for _LARGE_FILES value needed for large files... " >&6; }
6569 if test "${ac_cv_sys_large_files+set}" = set; then :
6570 $as_echo_n "(cached) " >&6
6573 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
6574 /* end confdefs.h. */
6575 #include <sys/types.h>
6576 /* Check that off_t can represent 2**63 - 1 correctly.
6577 We can't simply define LARGE_OFF_T to be 9223372036854775807,
6578 since some C++ compilers masquerading as C compilers
6579 incorrectly reject 9223372036854775807. */
6580 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
6581 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
6582 && LARGE_OFF_T % 2147483647 == 1)
6592 if ac_fn_c_try_compile
"$LINENO"; then :
6593 ac_cv_sys_large_files
=no
; break
6595 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
6596 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
6597 /* end confdefs.h. */
6598 #define _LARGE_FILES 1
6599 #include <sys/types.h>
6600 /* Check that off_t can represent 2**63 - 1 correctly.
6601 We can't simply define LARGE_OFF_T to be 9223372036854775807,
6602 since some C++ compilers masquerading as C compilers
6603 incorrectly reject 9223372036854775807. */
6604 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
6605 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
6606 && LARGE_OFF_T % 2147483647 == 1)
6616 if ac_fn_c_try_compile
"$LINENO"; then :
6617 ac_cv_sys_large_files
=1; break
6619 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
6620 ac_cv_sys_large_files
=unknown
6624 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_large_files" >&5
6625 $as_echo "$ac_cv_sys_large_files" >&6; }
6626 case $ac_cv_sys_large_files in #(
6629 cat >>confdefs.h
<<_ACEOF
6630 #define _LARGE_FILES $ac_cv_sys_large_files
6640 case $ac_cv_prog_cc_stdc in #(
6642 ac_cv_prog_cc_c99
=no
; ac_cv_prog_cc_c89
=no
;; #(
6644 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C99" >&5
6645 $as_echo_n "checking for $CC option to accept ISO C99... " >&6; }
6646 if test "${ac_cv_prog_cc_c99+set}" = set; then :
6647 $as_echo_n "(cached) " >&6
6649 ac_cv_prog_cc_c99
=no
6651 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
6652 /* end confdefs.h. */
6654 #include <stdbool.h>
6659 // Check varargs macros. These examples are taken from C99 6.10.3.5.
6660 #define debug(...) fprintf (stderr, __VA_ARGS__)
6661 #define showlist(...) puts (#__VA_ARGS__)
6662 #define report(test,...) ((test) ? puts (#test) : printf (__VA_ARGS__))
6664 test_varargs_macros (void)
6669 debug ("X = %d\n", x);
6670 showlist (The first, second, and third items.);
6671 report (x>y, "x is %d but y is %d", x, y);
6674 // Check long long types.
6675 #define BIG64 18446744073709551615ull
6676 #define BIG32 4294967295ul
6677 #define BIG_OK (BIG64 / BIG32 == 4294967297ull && BIG64 % BIG32 == 0)
6679 your preprocessor is broken;
6683 your preprocessor is broken;
6685 static long long int bignum = -9223372036854775807LL;
6686 static unsigned long long int ubignum = BIG64;
6688 struct incomplete_array
6696 const wchar_t *name;
6700 typedef const char *ccp;
6703 test_restrict (ccp restrict text)
6705 // See if C++-style comments work.
6706 // Iterate through items via the restricted pointer.
6707 // Also check for declarations in for loops.
6708 for (unsigned int i = 0; *(text+i) != '\0'; ++i)
6713 // Check varargs and va_copy.
6715 test_varargs (const char *format, ...)
6718 va_start (args, format);
6720 va_copy (args_copy, args);
6731 str = va_arg (args_copy, const char *);
6734 number = va_arg (args_copy, int);
6737 fnumber = va_arg (args_copy, double);
6752 _Bool success = false;
6755 if (test_restrict ("String literal") == 0)
6757 char *restrict newvar = "Another string";
6760 test_varargs ("s, d' f .", "string", 65, 34.234);
6761 test_varargs_macros ();
6763 // Check flexible array members.
6764 struct incomplete_array *ia =
6765 malloc (sizeof (struct incomplete_array) + (sizeof (double) * 10));
6767 for (int i = 0; i < ia->datasize; ++i)
6768 ia->data[i] = i * 1.234;
6770 // Check named initializers.
6771 struct named_init ni = {
6773 .name = L"Test wide string",
6774 .average = 543.34343,
6779 int dynamic_array[ni.number];
6780 dynamic_array[ni.number - 1] = 543;
6782 // work around unused variable warnings
6783 return (!success || bignum == 0LL || ubignum == 0uLL || newvar[0] == 'x'
6784 || dynamic_array[ni.number - 1] != 543);
6790 for ac_arg
in '' -std=gnu99
-std=c99
-c99 -AC99 -xc99=all
-qlanglvl=extc99
6792 CC
="$ac_save_CC $ac_arg"
6793 if ac_fn_c_try_compile
"$LINENO"; then :
6794 ac_cv_prog_cc_c99
=$ac_arg
6796 rm -f core conftest.err conftest.
$ac_objext
6797 test "x$ac_cv_prog_cc_c99" != "xno" && break
6799 rm -f conftest.
$ac_ext
6804 case "x$ac_cv_prog_cc_c99" in
6806 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
6807 $as_echo "none needed" >&6; } ;;
6809 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
6810 $as_echo "unsupported" >&6; } ;;
6812 CC
="$CC $ac_cv_prog_cc_c99"
6813 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c99" >&5
6814 $as_echo "$ac_cv_prog_cc_c99" >&6; } ;;
6816 if test "x$ac_cv_prog_cc_c99" != xno
; then :
6817 ac_cv_prog_cc_stdc
=$ac_cv_prog_cc_c99
6819 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
6820 $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
6821 if test "${ac_cv_prog_cc_c89+set}" = set; then :
6822 $as_echo_n "(cached) " >&6
6824 ac_cv_prog_cc_c89
=no
6826 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
6827 /* end confdefs.h. */
6830 #include <sys/types.h>
6831 #include <sys/stat.h>
6832 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
6833 struct buf { int x; };
6834 FILE * (*rcsopen) (struct buf *, struct stat *, int);
6835 static char *e (p, i)
6841 static char *f (char * (*g) (char **, int), char **p, ...)
6846 s = g (p, va_arg (v,int));
6851 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
6852 function prototypes and stuff, but not '\xHH' hex character constants.
6853 These don't provoke an error unfortunately, instead are silently treated
6854 as 'x'. The following induces an error, until -std is added to get
6855 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
6856 array size at least. It's necessary to write '\x00'==0 to get something
6857 that's true only with -std. */
6858 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
6860 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
6861 inside strings and character constants. */
6863 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
6865 int test (int i, double x);
6866 struct s1 {int (*f) (int a);};
6867 struct s2 {int (*f) (double a);};
6868 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
6874 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
6879 for ac_arg
in '' -qlanglvl=extc89
-qlanglvl=ansi
-std \
6880 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
6882 CC
="$ac_save_CC $ac_arg"
6883 if ac_fn_c_try_compile
"$LINENO"; then :
6884 ac_cv_prog_cc_c89
=$ac_arg
6886 rm -f core conftest.err conftest.
$ac_objext
6887 test "x$ac_cv_prog_cc_c89" != "xno" && break
6889 rm -f conftest.
$ac_ext
6894 case "x$ac_cv_prog_cc_c89" in
6896 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
6897 $as_echo "none needed" >&6; } ;;
6899 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
6900 $as_echo "unsupported" >&6; } ;;
6902 CC
="$CC $ac_cv_prog_cc_c89"
6903 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
6904 $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
6906 if test "x$ac_cv_prog_cc_c89" != xno
; then :
6907 ac_cv_prog_cc_stdc
=$ac_cv_prog_cc_c89
6909 ac_cv_prog_cc_stdc
=no
6915 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO Standard C" >&5
6916 $as_echo_n "checking for $CC option to accept ISO Standard C... " >&6; }
6917 if test "${ac_cv_prog_cc_stdc+set}" = set; then :
6918 $as_echo_n "(cached) " >&6
6921 case $ac_cv_prog_cc_stdc in #(
6923 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
6924 $as_echo "unsupported" >&6; } ;; #(
6926 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
6927 $as_echo "none needed" >&6; } ;; #(
6929 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_stdc" >&5
6930 $as_echo "$ac_cv_prog_cc_stdc" >&6; } ;;
6935 # Code from module alloca-opt:
6936 # Code from module allocator:
6937 # Code from module careadlinkat:
6938 # Code from module crypto/md5:
6939 # Code from module crypto/sha1:
6940 # Code from module crypto/sha256:
6941 # Code from module crypto/sha512:
6942 # Code from module dosname:
6943 # Code from module dtoastr:
6944 # Code from module dup2:
6945 # Code from module extensions:
6947 # Code from module filemode:
6948 # Code from module getloadavg:
6949 # Code from module getopt-gnu:
6950 # Code from module getopt-posix:
6951 # Code from module gettext-h:
6952 # Code from module ignore-value:
6953 # Code from module include_next:
6954 # Code from module intprops:
6955 # Code from module inttypes-incomplete:
6956 # Code from module largefile:
6958 # Code from module lstat:
6959 # Code from module mktime:
6960 # Code from module multiarch:
6961 # Code from module nocrash:
6962 # Code from module pthread_sigmask:
6963 # Code from module readlink:
6964 # Code from module signal-h:
6965 # Code from module sigprocmask:
6966 # Code from module snippet/_Noreturn:
6967 # Code from module snippet/arg-nonnull:
6968 # Code from module snippet/c++defs:
6969 # Code from module snippet/warn-on-use:
6970 # Code from module socklen:
6971 # Code from module ssize_t:
6972 # Code from module stat:
6973 # Code from module stdarg:
6977 # Code from module stdbool:
6978 # Code from module stddef:
6979 # Code from module stdint:
6980 # Code from module stdio:
6981 # Code from module stdlib:
6982 # Code from module strftime:
6983 # Code from module strtoimax:
6984 # Code from module strtoll:
6985 # Code from module strtoull:
6986 # Code from module strtoumax:
6987 # Code from module symlink:
6988 # Code from module sys_stat:
6989 # Code from module time:
6990 # Code from module time_r:
6991 # Code from module u64:
6992 # Code from module unistd:
6993 # Code from module verify:
6996 # On Suns, sometimes $CPP names a directory.
6997 if test -n "$CPP" && test -d "$CPP"; then
7001 ## If not using gcc, and on Solaris, and no CPP specified, see if
7002 ## using a Sun compiler, which needs -Xs to prevent whitespace.
7003 if test x
"$GCC" != xyes
&& test x
"$emacs_check_sunpro_c" = xyes
&& \
7004 test x
"$CPP" = x
; then
7005 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using a Sun C compiler" >&5
7006 $as_echo_n "checking whether we are using a Sun C compiler... " >&6; }
7007 if test "${emacs_cv_sunpro_c+set}" = set; then :
7008 $as_echo_n "(cached) " >&6
7010 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
7011 /* end confdefs.h. */
7024 if ac_fn_c_try_link
"$LINENO"; then :
7025 emacs_cv_sunpro_c
=yes
7027 emacs_cv_sunpro_c
=no
7029 rm -f core conftest.err conftest.
$ac_objext \
7030 conftest
$ac_exeext conftest.
$ac_ext
7033 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $emacs_cv_sunpro_c" >&5
7034 $as_echo "$emacs_cv_sunpro_c" >&6; }
7036 if test x
"$emacs_cv_sunpro_c" = xyes
; then
7037 NON_GNU_CPP
="$CC -E -Xs"
7041 #### Some systems specify a CPP to use unless we are using GCC.
7042 #### Now that we know whether we are using GCC, we can decide whether
7043 #### to use that one.
7044 if test "x$NON_GNU_CPP" != x
&& test x
$GCC != xyes
&& test "x$CPP" = x
7049 #### Some systems specify a CC to use unless we are using GCC.
7050 #### Now that we know whether we are using GCC, we can decide whether
7051 #### to use that one.
7052 if test "x$NON_GNU_CC" != x
&& test x
$GCC != xyes
&&
7053 test x
$cc_specified != xyes
7058 if test x
$GCC = xyes
; then
7059 test "x$GCC_TEST_OPTIONS" != x
&& CC
="$CC $GCC_TEST_OPTIONS"
7061 test "x$NON_GCC_TEST_OPTIONS" != x
&& CC
="$CC $NON_GCC_TEST_OPTIONS"
7064 ### Use -Wdeclaration-after-statement if the compiler supports it
7065 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether gcc understands -Wdeclaration-after-statement" >&5
7066 $as_echo_n "checking whether gcc understands -Wdeclaration-after-statement... " >&6; }
7067 SAVE_CFLAGS
="$CFLAGS"
7068 CFLAGS
="$CFLAGS -Wdeclaration-after-statement"
7069 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
7070 /* end confdefs.h. */
7080 if ac_fn_c_try_compile
"$LINENO"; then :
7085 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
7086 if test $has_option = yes; then
7087 C_WARNINGS_SWITCH
="-Wdeclaration-after-statement $C_WARNINGS_SWITCH"
7089 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $has_option" >&5
7090 $as_echo "$has_option" >&6; }
7091 CFLAGS
="$SAVE_CFLAGS"
7095 ### Use -Wold-style-definition if the compiler supports it
7096 # This can be removed when conversion to standard C is finished.
7097 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether gcc understands -Wold-style-definition" >&5
7098 $as_echo_n "checking whether gcc understands -Wold-style-definition... " >&6; }
7099 SAVE_CFLAGS
="$CFLAGS"
7100 CFLAGS
="$CFLAGS -Wold-style-definition"
7101 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
7102 /* end confdefs.h. */
7112 if ac_fn_c_try_compile
"$LINENO"; then :
7117 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
7118 if test $has_option = yes; then
7119 C_WARNINGS_SWITCH
="-Wold-style-definition $C_WARNINGS_SWITCH"
7121 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $has_option" >&5
7122 $as_echo "$has_option" >&6; }
7123 CFLAGS
="$SAVE_CFLAGS"
7127 ### Use -Wimplicit-function-declaration if the compiler supports it
7128 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether gcc understands -Wimplicit-function-declaration" >&5
7129 $as_echo_n "checking whether gcc understands -Wimplicit-function-declaration... " >&6; }
7130 SAVE_CFLAGS
="$CFLAGS"
7131 CFLAGS
="$CFLAGS -Wimplicit-function-declaration"
7132 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
7133 /* end confdefs.h. */
7143 if ac_fn_c_try_compile
"$LINENO"; then :
7148 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
7149 if test $has_option = yes; then
7150 C_WARNINGS_SWITCH
="-Wimplicit-function-declaration $C_WARNINGS_SWITCH"
7152 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $has_option" >&5
7153 $as_echo "$has_option" >&6; }
7154 CFLAGS
="$SAVE_CFLAGS"
7161 #### Some other nice autoconf tests.
7164 ac_cpp
='$CPP $CPPFLAGS'
7165 ac_compile
='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7166 ac_link
='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7167 ac_compiler_gnu
=$ac_cv_c_compiler_gnu
7168 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
7169 $as_echo_n "checking how to run the C preprocessor... " >&6; }
7170 # On Suns, sometimes $CPP names a directory.
7171 if test -n "$CPP" && test -d "$CPP"; then
7174 if test -z "$CPP"; then
7175 if test "${ac_cv_prog_CPP+set}" = set; then :
7176 $as_echo_n "(cached) " >&6
7178 # Double quotes because CPP needs to be expanded
7179 for CPP
in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
7182 for ac_c_preproc_warn_flag
in '' yes
7184 # Use a header file that comes with gcc, so configuring glibc
7185 # with a fresh cross-compiler works.
7186 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
7187 # <limits.h> exists even on freestanding compilers.
7188 # On the NeXT, cc -E runs the code through the compiler's parser,
7189 # not just through cpp. "Syntax error" is here to catch this case.
7190 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
7191 /* end confdefs.h. */
7193 # include <limits.h>
7195 # include <assert.h>
7199 if ac_fn_c_try_cpp
"$LINENO"; then :
7202 # Broken: fails on valid input.
7205 rm -f conftest.err conftest.
$ac_ext
7207 # OK, works on sane cases. Now check whether nonexistent headers
7208 # can be detected and how.
7209 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
7210 /* end confdefs.h. */
7211 #include <ac_nonexistent.h>
7213 if ac_fn_c_try_cpp
"$LINENO"; then :
7214 # Broken: success on invalid input.
7217 # Passes both tests.
7221 rm -f conftest.err conftest.
$ac_ext
7224 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
7225 rm -f conftest.err conftest.
$ac_ext
7226 if $ac_preproc_ok; then :
7238 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
7239 $as_echo "$CPP" >&6; }
7241 for ac_c_preproc_warn_flag
in '' yes
7243 # Use a header file that comes with gcc, so configuring glibc
7244 # with a fresh cross-compiler works.
7245 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
7246 # <limits.h> exists even on freestanding compilers.
7247 # On the NeXT, cc -E runs the code through the compiler's parser,
7248 # not just through cpp. "Syntax error" is here to catch this case.
7249 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
7250 /* end confdefs.h. */
7252 # include <limits.h>
7254 # include <assert.h>
7258 if ac_fn_c_try_cpp
"$LINENO"; then :
7261 # Broken: fails on valid input.
7264 rm -f conftest.err conftest.
$ac_ext
7266 # OK, works on sane cases. Now check whether nonexistent headers
7267 # can be detected and how.
7268 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
7269 /* end confdefs.h. */
7270 #include <ac_nonexistent.h>
7272 if ac_fn_c_try_cpp
"$LINENO"; then :
7273 # Broken: success on invalid input.
7276 # Passes both tests.
7280 rm -f conftest.err conftest.
$ac_ext
7283 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
7284 rm -f conftest.err conftest.
$ac_ext
7285 if $ac_preproc_ok; then :
7288 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
7289 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
7290 as_fn_error
"C preprocessor \"$CPP\" fails sanity check
7291 See \`config.log' for more details." "$LINENO" 5; }
7295 ac_cpp
='$CPP $CPPFLAGS'
7296 ac_compile
='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7297 ac_link
='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7298 ac_compiler_gnu
=$ac_cv_c_compiler_gnu
7301 if test "x$RANLIB" = x
; then
7302 if test -n "$ac_tool_prefix"; then
7303 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
7304 set dummy
${ac_tool_prefix}ranlib
; ac_word
=$2
7305 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7306 $as_echo_n "checking for $ac_word... " >&6; }
7307 if test "${ac_cv_prog_RANLIB+set}" = set; then :
7308 $as_echo_n "(cached) " >&6
7310 if test -n "$RANLIB"; then
7311 ac_cv_prog_RANLIB
="$RANLIB" # Let the user override the test.
7313 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
7317 test -z "$as_dir" && as_dir
=.
7318 for ac_exec_ext
in '' $ac_executable_extensions; do
7319 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7320 ac_cv_prog_RANLIB
="${ac_tool_prefix}ranlib"
7321 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7330 RANLIB
=$ac_cv_prog_RANLIB
7331 if test -n "$RANLIB"; then
7332 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
7333 $as_echo "$RANLIB" >&6; }
7335 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7336 $as_echo "no" >&6; }
7341 if test -z "$ac_cv_prog_RANLIB"; then
7342 ac_ct_RANLIB
=$RANLIB
7343 # Extract the first word of "ranlib", so it can be a program name with args.
7344 set dummy ranlib
; ac_word
=$2
7345 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7346 $as_echo_n "checking for $ac_word... " >&6; }
7347 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then :
7348 $as_echo_n "(cached) " >&6
7350 if test -n "$ac_ct_RANLIB"; then
7351 ac_cv_prog_ac_ct_RANLIB
="$ac_ct_RANLIB" # Let the user override the test.
7353 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
7357 test -z "$as_dir" && as_dir
=.
7358 for ac_exec_ext
in '' $ac_executable_extensions; do
7359 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7360 ac_cv_prog_ac_ct_RANLIB
="ranlib"
7361 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7370 ac_ct_RANLIB
=$ac_cv_prog_ac_ct_RANLIB
7371 if test -n "$ac_ct_RANLIB"; then
7372 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
7373 $as_echo "$ac_ct_RANLIB" >&6; }
7375 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7376 $as_echo "no" >&6; }
7379 if test "x$ac_ct_RANLIB" = x
; then
7382 case $cross_compiling:$ac_tool_warned in
7384 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7385 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7386 ac_tool_warned
=yes ;;
7388 RANLIB
=$ac_ct_RANLIB
7391 RANLIB
="$ac_cv_prog_RANLIB"
7396 ## Although we're running on an amd64 kernel, we're actually compiling for
7397 ## the x86 architecture. The user should probably have provided an
7398 ## explicit --build to `configure', but if everything else than the kernel
7399 ## is running in i386 mode, we can help them out.
7400 if test "$machine" = "amdx86-64"; then
7401 ac_fn_c_check_decl
"$LINENO" "i386" "ac_cv_have_decl_i386" "$ac_includes_default"
7402 if test "x$ac_cv_have_decl_i386" = x
""yes; then :
7406 if test "$ac_cv_have_decl_i386" = "yes"; then
7407 canonical
=`echo "$canonical" | sed -e 's/^amd64/i386/' -e 's/^x86_64/i386/'`
7409 machfile
="m/${machine}.h"
7413 # Extract the first word of "install-info", so it can be a program name with args.
7414 set dummy install-info
; ac_word
=$2
7415 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7416 $as_echo_n "checking for $ac_word... " >&6; }
7417 if test "${ac_cv_path_INSTALL_INFO+set}" = set; then :
7418 $as_echo_n "(cached) " >&6
7420 case $INSTALL_INFO in
7422 ac_cv_path_INSTALL_INFO
="$INSTALL_INFO" # Let the user override the test with a path.
7425 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
7429 test -z "$as_dir" && as_dir
=.
7430 for ac_exec_ext
in '' $ac_executable_extensions; do
7431 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7432 ac_cv_path_INSTALL_INFO
="$as_dir/$ac_word$ac_exec_ext"
7433 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7443 INSTALL_INFO
=$ac_cv_path_INSTALL_INFO
7444 if test -n "$INSTALL_INFO"; then
7445 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL_INFO" >&5
7446 $as_echo "$INSTALL_INFO" >&6; }
7448 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7449 $as_echo "no" >&6; }
7453 # Extract the first word of "install-info", so it can be a program name with args.
7454 set dummy install-info
; ac_word
=$2
7455 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7456 $as_echo_n "checking for $ac_word... " >&6; }
7457 if test "${ac_cv_path_INSTALL_INFO+set}" = set; then :
7458 $as_echo_n "(cached) " >&6
7460 case $INSTALL_INFO in
7462 ac_cv_path_INSTALL_INFO
="$INSTALL_INFO" # Let the user override the test with a path.
7465 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
7466 for as_dir
in /usr
/sbin
7469 test -z "$as_dir" && as_dir
=.
7470 for ac_exec_ext
in '' $ac_executable_extensions; do
7471 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7472 ac_cv_path_INSTALL_INFO
="$as_dir/$ac_word$ac_exec_ext"
7473 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7483 INSTALL_INFO
=$ac_cv_path_INSTALL_INFO
7484 if test -n "$INSTALL_INFO"; then
7485 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL_INFO" >&5
7486 $as_echo "$INSTALL_INFO" >&6; }
7488 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7489 $as_echo "no" >&6; }
7493 # Extract the first word of "install-info", so it can be a program name with args.
7494 set dummy install-info
; ac_word
=$2
7495 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7496 $as_echo_n "checking for $ac_word... " >&6; }
7497 if test "${ac_cv_path_INSTALL_INFO+set}" = set; then :
7498 $as_echo_n "(cached) " >&6
7500 case $INSTALL_INFO in
7502 ac_cv_path_INSTALL_INFO
="$INSTALL_INFO" # Let the user override the test with a path.
7505 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
7509 test -z "$as_dir" && as_dir
=.
7510 for ac_exec_ext
in '' $ac_executable_extensions; do
7511 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7512 ac_cv_path_INSTALL_INFO
="$as_dir/$ac_word$ac_exec_ext"
7513 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7520 test -z "$ac_cv_path_INSTALL_INFO" && ac_cv_path_INSTALL_INFO
=":"
7524 INSTALL_INFO
=$ac_cv_path_INSTALL_INFO
7525 if test -n "$INSTALL_INFO"; then
7526 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL_INFO" >&5
7527 $as_echo "$INSTALL_INFO" >&6; }
7529 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7530 $as_echo "no" >&6; }
7534 # Extract the first word of "gzip", so it can be a program name with args.
7535 set dummy
gzip; ac_word
=$2
7536 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7537 $as_echo_n "checking for $ac_word... " >&6; }
7538 if test "${ac_cv_path_GZIP_PROG+set}" = set; then :
7539 $as_echo_n "(cached) " >&6
7543 ac_cv_path_GZIP_PROG
="$GZIP_PROG" # Let the user override the test with a path.
7546 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
7550 test -z "$as_dir" && as_dir
=.
7551 for ac_exec_ext
in '' $ac_executable_extensions; do
7552 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7553 ac_cv_path_GZIP_PROG
="$as_dir/$ac_word$ac_exec_ext"
7554 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7564 GZIP_PROG
=$ac_cv_path_GZIP_PROG
7565 if test -n "$GZIP_PROG"; then
7566 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GZIP_PROG" >&5
7567 $as_echo "$GZIP_PROG" >&6; }
7569 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7570 $as_echo "no" >&6; }
7576 ## Need makeinfo >= 4.6 (?) to build the manuals.
7577 # Extract the first word of "makeinfo", so it can be a program name with args.
7578 set dummy makeinfo
; ac_word
=$2
7579 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7580 $as_echo_n "checking for $ac_word... " >&6; }
7581 if test "${ac_cv_path_MAKEINFO+set}" = set; then :
7582 $as_echo_n "(cached) " >&6
7586 ac_cv_path_MAKEINFO
="$MAKEINFO" # Let the user override the test with a path.
7589 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
7593 test -z "$as_dir" && as_dir
=.
7594 for ac_exec_ext
in '' $ac_executable_extensions; do
7595 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7596 ac_cv_path_MAKEINFO
="$as_dir/$ac_word$ac_exec_ext"
7597 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7604 test -z "$ac_cv_path_MAKEINFO" && ac_cv_path_MAKEINFO
="no"
7608 MAKEINFO
=$ac_cv_path_MAKEINFO
7609 if test -n "$MAKEINFO"; then
7610 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAKEINFO" >&5
7611 $as_echo "$MAKEINFO" >&6; }
7613 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7614 $as_echo "no" >&6; }
7618 if test "$MAKEINFO" != "no" && \
7619 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
7623 ## Makeinfo is unusual. For a released Emacs, the manuals are
7624 ## pre-built, and not deleted by the normal clean rules. makeinfo is
7625 ## therefore in the category of "special tools" not normally required, which
7626 ## configure does not have to check for (eg autoconf itself).
7627 ## In a Bazaar checkout on the other hand, the manuals are not included.
7628 ## So makeinfo is a requirement to build from Bazaar, and configure
7629 ## should test for it as it does for any other build requirement.
7630 ## We use the presence of $srcdir/info/emacs to distinguish a release,
7631 ## with pre-built manuals, from a Bazaar checkout.
7634 if test "$MAKEINFO" = "no"; then
7636 if test "x${with_makeinfo}" = "xno"; then
7638 elif test ! -e $srcdir/info
/emacs
; then
7639 as_fn_error
"You do not seem to have makeinfo >= 4.6, and your
7640 source tree does not seem to have pre-built manuals in the \`info' directory.
7641 Either install a suitable version of makeinfo, or re-run configure
7642 with the \`--without-makeinfo' option to build without the manuals. " "$LINENO" 5
7648 if test x
$GCC = xyes
; then
7649 test "x$GCC_LINK_TEST_OPTIONS" != x
&& \
7650 ac_link
="$ac_link $GCC_LINK_TEST_OPTIONS"
7652 test "x$NON_GCC_LINK_TEST_OPTIONS" != x
&& \
7653 ac_link
="$ac_link $NON_GCC_LINK_TEST_OPTIONS"
7657 late_LDFLAGS
=$LDFLAGS
7658 if test x
$GCC = xyes
; then
7659 LDFLAGS
="$LDFLAGS -Wl,-znocombreloc"
7661 LDFLAGS
="$LDFLAGS -znocombreloc"
7664 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -znocombreloc" >&5
7665 $as_echo_n "checking for -znocombreloc... " >&6; }
7666 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
7667 /* end confdefs.h. */
7677 if ac_fn_c_try_link
"$LINENO"; then :
7678 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
7679 $as_echo "yes" >&6; }
7681 LDFLAGS
=$late_LDFLAGS
7682 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7683 $as_echo "no" >&6; }
7685 rm -f core conftest.err conftest.
$ac_objext \
7686 conftest
$ac_exeext conftest.
$ac_ext
7689 # The value of CPP is a quoted variable reference, so we need to do this
7690 # to get its actual value...
7691 CPP
=`eval "echo $CPP"`
7694 test "x$CANNOT_DUMP" = "x" && CANNOT_DUMP
=no
7696 your-opsys-here
) CANNOT_DUMP
=yes ;;
7699 test "$CANNOT_DUMP" = "yes" && \
7701 $as_echo "#define CANNOT_DUMP 1" >>confdefs.h
7707 UNEXEC_OBJ
=unexelf.o
7709 # MSDOS uses unexcoff.o
7710 # MSWindows uses unexw32.o
7712 UNEXEC_OBJ
=unexaix.o
7718 UNEXEC_OBJ
=unexmacosx.o
7721 UNEXEC_OBJ
=unexhp9k800.o
7724 # Use the Solaris dldump() function, called from unexsol.c, to dump
7725 # emacs, instead of the generic ELF dump code found in unexelf.c.
7726 # The resulting binary has a complete symbol table, and is better
7727 # for debugging and other observability tools (debuggers, pstack, etc).
7729 # If you encounter a problem using dldump(), please consider sending
7730 # a message to the OpenSolaris tools-linking mailing list:
7731 # http://mail.opensolaris.org/mailman/listinfo/tools-linking
7733 # It is likely that dldump() works with older Solaris too, but this has
7734 # not been tested, so for now this change is for Solaris 10 or newer.
7735 UNEXEC_OBJ
=unexsol.o
7742 ## Let `ld' find image libs and similar things in /usr/local/lib.
7743 ## The system compiler, GCC, has apparently been modified to not
7744 ## look there, contrary to what a stock GCC would do.
7745 LD_SWITCH_SYSTEM
=-L/usr
/local
/lib
7749 ## cpp test was "ifdef __mips__", but presumably this is equivalent...
7750 case $host_cpu in mips
*) LD_SWITCH_SYSTEM
="-G 0";; esac
7754 LD_SWITCH_SYSTEM
="-Wl,-rpath,/usr/pkg/lib -L/usr/pkg/lib -Wl,-rpath,/usr/local/lib -L/usr/local/lib"
7758 ## Han Boetes <han@mijncomputer.nl> says this is necessary,
7759 ## otherwise Emacs dumps core on elf systems.
7760 LD_SWITCH_SYSTEM
="-Z"
7765 ac_link
="$ac_link $LD_SWITCH_SYSTEM"
7767 ## This setting of LD_SWITCH_SYSTEM references LD_SWITCH_X_SITE_AUX,
7768 ## which has not been defined yet. When this was handled with cpp,
7769 ## it was expanded to null when configure sourced the s/*.h file.
7770 ## Thus LD_SWITCH_SYSTEM had different values in configure and the Makefiles.
7771 ## FIXME it would be cleaner to put this in LD_SWITCH_SYSTEM_TEMACS
7772 ## (or somesuch), but because it is supposed to go at the _front_
7773 ## of LD_SWITCH_SYSTEM, we cannot do that in exactly the same way.
7774 ## Compare with the gnu-linux case below, which added to the end
7775 ## of LD_SWITCH_SYSTEM, and so can instead go at the front of
7776 ## LD_SWITCH_SYSTEM_TEMACS.
7779 ## _AUX_RPATH is like _AUX, but uses -rpath instead of -R.
7780 LD_SWITCH_SYSTEM
="\$(LD_SWITCH_X_SITE_AUX_RPATH) $LD_SWITCH_SYSTEM" ;;
7785 if test "$machine" = "alpha"; then
7786 ac_fn_c_check_decl
"$LINENO" "__ELF__" "ac_cv_have_decl___ELF__" "$ac_includes_default"
7787 if test "x$ac_cv_have_decl___ELF__" = x
""yes; then :
7791 if test "$ac_cv_have_decl___ELF__" = "yes"; then
7792 ## With ELF, make sure that all common symbols get allocated to in the
7793 ## data section. Otherwise, the dump of temacs may miss variables in
7794 ## the shared library that have been initialized. For example, with
7795 ## GNU libc, __malloc_initialized would normally be resolved to the
7796 ## shared library's .bss section, which is fatal.
7797 if test "x$GCC" = "xyes"; then
7798 C_SWITCH_MACHINE
="-fno-common"
7800 as_fn_error
"What gives? Fix me if DEC Unix supports ELF now." "$LINENO" 5
7803 UNEXEC_OBJ
=unexalpha.o
7811 ## Some programs in src produce warnings saying certain subprograms
7812 ## are too complex and need a MAXMEM value greater than 2000 for
7813 ## additional optimization. --nils@exp-math.uni-essen.de
7814 test "$opsys" = "aix4.2" && test "x$GCC" != "xyes" && \
7815 C_SWITCH_SYSTEM
="-ma -qmaxmem=4000"
7816 ## gnu-linux might need -D_BSD_SOURCE on old libc5 systems.
7817 ## It is redundant in glibc2, since we define _GNU_SOURCE.
7823 ## IBM's X11R5 uses -lIM and -liconv in AIX 3.2.2.
7824 aix4-2
) LIBS_SYSTEM
="-lrts -lIM -liconv" ;;
7826 freebsd
) LIBS_SYSTEM
="-lutil" ;;
7828 hpux
*) LIBS_SYSTEM
="-l:libdld.sl" ;;
7830 sol2
*) LIBS_SYSTEM
="-lsocket -lnsl" ;;
7832 ## Motif needs -lgen.
7833 unixware
) LIBS_SYSTEM
="-lsocket -lnsl -lelf -lgen" ;;
7838 ### Make sure subsequent tests use flags consistent with the build flags.
7840 if test x
"${OVERRIDE_CPPFLAGS}" != x
; then
7841 CPPFLAGS
="${OVERRIDE_CPPFLAGS}"
7843 CPPFLAGS
="$C_SWITCH_SYSTEM $C_SWITCH_MACHINE $CPPFLAGS"
7846 # Suppress obsolescent Autoconf test for size_t; Emacs assumes C89 or better.
7848 # Likewise for obsolescent test for uid_t, gid_t; Emacs assumes them.
7851 # Check whether --enable-largefile was given.
7852 if test "${enable_largefile+set}" = set; then :
7853 enableval
=$enable_largefile;
7856 if test "$enable_largefile" != no
; then
7858 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for special C compiler options needed for large files" >&5
7859 $as_echo_n "checking for special C compiler options needed for large files... " >&6; }
7860 if test "${ac_cv_sys_largefile_CC+set}" = set; then :
7861 $as_echo_n "(cached) " >&6
7863 ac_cv_sys_largefile_CC
=no
7864 if test "$GCC" != yes; then
7867 # IRIX 6.2 and later do not support large files by default,
7868 # so use the C compiler's -n32 option if that helps.
7869 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
7870 /* end confdefs.h. */
7871 #include <sys/types.h>
7872 /* Check that off_t can represent 2**63 - 1 correctly.
7873 We can't simply define LARGE_OFF_T to be 9223372036854775807,
7874 since some C++ compilers masquerading as C compilers
7875 incorrectly reject 9223372036854775807. */
7876 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
7877 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
7878 && LARGE_OFF_T % 2147483647 == 1)
7888 if ac_fn_c_try_compile
"$LINENO"; then :
7891 rm -f core conftest.err conftest.
$ac_objext
7893 if ac_fn_c_try_compile
"$LINENO"; then :
7894 ac_cv_sys_largefile_CC
=' -n32'; break
7896 rm -f core conftest.err conftest.
$ac_objext
7900 rm -f conftest.
$ac_ext
7903 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_largefile_CC" >&5
7904 $as_echo "$ac_cv_sys_largefile_CC" >&6; }
7905 if test "$ac_cv_sys_largefile_CC" != no
; then
7906 CC
=$CC$ac_cv_sys_largefile_CC
7909 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _FILE_OFFSET_BITS value needed for large files" >&5
7910 $as_echo_n "checking for _FILE_OFFSET_BITS value needed for large files... " >&6; }
7911 if test "${ac_cv_sys_file_offset_bits+set}" = set; then :
7912 $as_echo_n "(cached) " >&6
7915 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
7916 /* end confdefs.h. */
7917 #include <sys/types.h>
7918 /* Check that off_t can represent 2**63 - 1 correctly.
7919 We can't simply define LARGE_OFF_T to be 9223372036854775807,
7920 since some C++ compilers masquerading as C compilers
7921 incorrectly reject 9223372036854775807. */
7922 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
7923 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
7924 && LARGE_OFF_T % 2147483647 == 1)
7934 if ac_fn_c_try_compile
"$LINENO"; then :
7935 ac_cv_sys_file_offset_bits
=no
; break
7937 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
7938 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
7939 /* end confdefs.h. */
7940 #define _FILE_OFFSET_BITS 64
7941 #include <sys/types.h>
7942 /* Check that off_t can represent 2**63 - 1 correctly.
7943 We can't simply define LARGE_OFF_T to be 9223372036854775807,
7944 since some C++ compilers masquerading as C compilers
7945 incorrectly reject 9223372036854775807. */
7946 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
7947 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
7948 && LARGE_OFF_T % 2147483647 == 1)
7958 if ac_fn_c_try_compile
"$LINENO"; then :
7959 ac_cv_sys_file_offset_bits
=64; break
7961 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
7962 ac_cv_sys_file_offset_bits
=unknown
7966 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_file_offset_bits" >&5
7967 $as_echo "$ac_cv_sys_file_offset_bits" >&6; }
7968 case $ac_cv_sys_file_offset_bits in #(
7971 cat >>confdefs.h
<<_ACEOF
7972 #define _FILE_OFFSET_BITS $ac_cv_sys_file_offset_bits
7977 if test $ac_cv_sys_file_offset_bits = unknown
; then
7978 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _LARGE_FILES value needed for large files" >&5
7979 $as_echo_n "checking for _LARGE_FILES value needed for large files... " >&6; }
7980 if test "${ac_cv_sys_large_files+set}" = set; then :
7981 $as_echo_n "(cached) " >&6
7984 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
7985 /* end confdefs.h. */
7986 #include <sys/types.h>
7987 /* Check that off_t can represent 2**63 - 1 correctly.
7988 We can't simply define LARGE_OFF_T to be 9223372036854775807,
7989 since some C++ compilers masquerading as C compilers
7990 incorrectly reject 9223372036854775807. */
7991 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
7992 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
7993 && LARGE_OFF_T % 2147483647 == 1)
8003 if ac_fn_c_try_compile
"$LINENO"; then :
8004 ac_cv_sys_large_files
=no
; break
8006 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
8007 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
8008 /* end confdefs.h. */
8009 #define _LARGE_FILES 1
8010 #include <sys/types.h>
8011 /* Check that off_t can represent 2**63 - 1 correctly.
8012 We can't simply define LARGE_OFF_T to be 9223372036854775807,
8013 since some C++ compilers masquerading as C compilers
8014 incorrectly reject 9223372036854775807. */
8015 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
8016 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
8017 && LARGE_OFF_T % 2147483647 == 1)
8027 if ac_fn_c_try_compile
"$LINENO"; then :
8028 ac_cv_sys_large_files
=1; break
8030 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
8031 ac_cv_sys_large_files
=unknown
8035 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_large_files" >&5
8036 $as_echo "$ac_cv_sys_large_files" >&6; }
8037 case $ac_cv_sys_large_files in #(
8040 cat >>confdefs.h
<<_ACEOF
8041 #define _LARGE_FILES $ac_cv_sys_large_files
8060 START_FILES
='pre-crt0.o'
8063 ## Adding -lm confuses the dynamic linker, so omit it.
8065 START_FILES
='pre-crt0.o'
8068 LIB_STANDARD
='-lgcc -lc -lgcc $(CRT_DIR)/crtend.o $(CRT_DIR)/crtn.o'
8069 START_FILES
='pre-crt0.o $(CRT_DIR)/crt1.o $(CRT_DIR)/crti.o $(CRT_DIR)/crtbegin.o'
8071 gnu-linux | gnu-kfreebsd
)
8072 LIB_STANDARD
='-lgcc -lc -lgcc $(CRT_DIR)/crtn.o'
8073 START_FILES
='pre-crt0.o $(CRT_DIR)/crt1.o $(CRT_DIR)/crti.o'
8075 hpux10-20 | hpux11
)
8077 START_FILES
='pre-crt0.o $(CRT_DIR)/crt0.o'
8080 LIB_STANDARD
='-lgcc -lc -lgcc $(CRT_DIR)/crtend.o'
8081 START_FILES
='pre-crt0.o $(CRT_DIR)/crt0.o $(CRT_DIR)/crtbegin.o'
8090 for file in x
$LIB_STANDARD $START_FILES; do
8092 *CRT_DIR
*) crt_files
="$crt_files `echo $file | sed -e 's|.*/||'`" ;;
8096 if test "x$crt_files" != x
; then
8098 ## If user specified a crt-dir, use that unconditionally.
8101 if test "X$CRT_DIR" = "X"; then
8103 CRT_DIR
=/usr
/lib
# default
8105 case "$canonical" in
8106 x86_64-
*-linux-gnu* | s390x-
*-linux-gnu*)
8107 ## On x86-64 and s390x GNU/Linux distributions, the standard library
8108 ## can be in a variety of places. We only try /usr/lib64 and /usr/lib.
8109 ## For anything else (eg /usr/lib32), it is up the user to specify
8110 ## the location (bug#5655).
8111 ## Test for crtn.o, not just the directory, because sometimes the
8112 ## directory exists but does not have the relevant files (bug#1287).
8113 ## FIXME better to test for binary compatibility somehow.
8114 test -e /usr
/lib64
/crtn.o
&& CRT_DIR
=/usr
/lib64
8117 powerpc64-
*-linux-gnu* | sparc64-
*-linux-gnu*) CRT_DIR
=/usr
/lib64
;;
8121 hpux10-20
) CRT_DIR
=/lib
;;
8124 test "x${GCC}" = xyes
&& crt_gcc
=yes
8130 for file in $crt_files; do
8132 ## If we're using gcc, try to determine it automatically by asking
8133 ## gcc. [If this doesn't work, CRT_DIR will remain at the
8134 ## system-dependent default from above.]
8135 if test $crt_gcc = yes && test ! -e $CRT_DIR/$file; then
8137 crt_file
=`$CC --print-file-name=$file 2>/dev/null`
8140 CRT_DIR
=`$as_dirname -- "$crt_file" ||
8141 $as_expr X"$crt_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
8142 X"$crt_file" : 'X\(//\)[^/]' \| \
8143 X"$crt_file" : 'X\(//\)$' \| \
8144 X"$crt_file" : 'X\(/\)' \| . 2>/dev/null ||
8145 $as_echo X"$crt_file" |
8146 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
8169 test -e $CRT_DIR/$file || crt_missing
="$crt_missing $file"
8172 test "x$crt_missing" = x || \
8173 as_fn_error
"Required file(s) not found:$crt_missing
8174 Try using the --with-crt-dir option." "$LINENO" 5
8176 fi # crt_files != ""
8182 if test -f $CRT_DIR/crti.o
; then
8184 test -f $CRT_DIR/crtn.o || \
8185 as_fn_error
"Required file not found: crtn.o" "$LINENO" 5
8187 LIB_STANDARD
='-lgcc -lc -lgcc $(CRT_DIR)/crtend.o $(CRT_DIR)/crtn.o'
8188 START_FILES
='pre-crt0.o $(CRT_DIR)/crt0.o $(CRT_DIR)/crti.o $(CRT_DIR)/crtbegin.o'
8197 if test "${with_sound}" != "no"; then
8198 # Sound support for GNU/Linux and the free BSDs.
8199 for ac_header
in machine
/soundcard.h sys
/soundcard.h soundcard.h
8201 as_ac_Header
=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
8202 ac_fn_c_check_header_mongrel
"$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
8203 eval as_val
=\$
$as_ac_Header
8204 if test "x$as_val" = x
""yes; then :
8205 cat >>confdefs.h
<<_ACEOF
8206 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
8208 have_sound_header
=yes
8213 # Emulation library used on NetBSD.
8214 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _oss_ioctl in -lossaudio" >&5
8215 $as_echo_n "checking for _oss_ioctl in -lossaudio... " >&6; }
8216 if test "${ac_cv_lib_ossaudio__oss_ioctl+set}" = set; then :
8217 $as_echo_n "(cached) " >&6
8219 ac_check_lib_save_LIBS
=$LIBS
8220 LIBS
="-lossaudio $LIBS"
8221 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
8222 /* end confdefs.h. */
8224 /* Override any GCC internal prototype to avoid an error.
8225 Use char because int might match the return type of a GCC
8226 builtin and then its argument prototype would still apply. */
8234 return _oss_ioctl ();
8239 if ac_fn_c_try_link
"$LINENO"; then :
8240 ac_cv_lib_ossaudio__oss_ioctl
=yes
8242 ac_cv_lib_ossaudio__oss_ioctl
=no
8244 rm -f core conftest.err conftest.
$ac_objext \
8245 conftest
$ac_exeext conftest.
$ac_ext
8246 LIBS
=$ac_check_lib_save_LIBS
8248 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_ossaudio__oss_ioctl" >&5
8249 $as_echo "$ac_cv_lib_ossaudio__oss_ioctl" >&6; }
8250 if test "x$ac_cv_lib_ossaudio__oss_ioctl" = x
""yes; then :
8259 ALSA_MODULES
="alsa >= $ALSA_REQUIRED"
8263 # Extract the first word of "pkg-config", so it can be a program name with args.
8264 set dummy pkg-config
; ac_word
=$2
8265 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8266 $as_echo_n "checking for $ac_word... " >&6; }
8267 if test "${ac_cv_path_PKG_CONFIG+set}" = set; then :
8268 $as_echo_n "(cached) " >&6
8272 ac_cv_path_PKG_CONFIG
="$PKG_CONFIG" # Let the user override the test with a path.
8275 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
8279 test -z "$as_dir" && as_dir
=.
8280 for ac_exec_ext
in '' $ac_executable_extensions; do
8281 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8282 ac_cv_path_PKG_CONFIG
="$as_dir/$ac_word$ac_exec_ext"
8283 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8290 test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG
="no"
8294 PKG_CONFIG
=$ac_cv_path_PKG_CONFIG
8295 if test -n "$PKG_CONFIG"; then
8296 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5
8297 $as_echo "$PKG_CONFIG" >&6; }
8299 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8300 $as_echo "no" >&6; }
8305 if test "$PKG_CONFIG" = "no" ; then
8308 PKG_CONFIG_MIN_VERSION
=0.9.0
8309 if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
8310 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ALSA_MODULES" >&5
8311 $as_echo_n "checking for $ALSA_MODULES... " >&6; }
8313 if $PKG_CONFIG --exists "$ALSA_MODULES" 2>&5; then
8314 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
8315 $as_echo "yes" >&6; }
8318 { $as_echo "$as_me:${as_lineno-$LINENO}: checking ALSA_CFLAGS" >&5
8319 $as_echo_n "checking ALSA_CFLAGS... " >&6; }
8320 ALSA_CFLAGS
=`$PKG_CONFIG --cflags "$ALSA_MODULES"|sed -e 's,///*,/,g'`
8321 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ALSA_CFLAGS" >&5
8322 $as_echo "$ALSA_CFLAGS" >&6; }
8324 { $as_echo "$as_me:${as_lineno-$LINENO}: checking ALSA_LIBS" >&5
8325 $as_echo_n "checking ALSA_LIBS... " >&6; }
8326 ALSA_LIBS
=`$PKG_CONFIG --libs "$ALSA_MODULES"|sed -e 's,///*,/,g'`
8327 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ALSA_LIBS" >&5
8328 $as_echo "$ALSA_LIBS" >&6; }
8330 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8331 $as_echo "no" >&6; }
8334 ## If we have a custom action on failure, don't print errors, but
8335 ## do set a variable so people can do so.
8336 ALSA_PKG_ERRORS
=`$PKG_CONFIG --errors-to-stdout --print-errors "$ALSA_MODULES"`
8343 echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
8344 echo "*** See http://www.freedesktop.org/software/pkgconfig"
8348 if test $succeeded = yes; then
8354 if test $HAVE_ALSA = yes; then
8355 SAVE_CFLAGS
="$CFLAGS"
8357 CFLAGS
="$ALSA_CFLAGS $CFLAGS"
8358 LIBS
="$ALSA_LIBS $LIBS"
8359 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
8360 /* end confdefs.h. */
8361 #include <asoundlib.h>
8365 snd_lib_error_set_handler (0);
8370 if ac_fn_c_try_compile
"$LINENO"; then :
8371 emacs_alsa_normal
=yes
8373 emacs_alsa_normal
=no
8375 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
8376 if test "$emacs_alsa_normal" != yes; then
8377 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
8378 /* end confdefs.h. */
8379 #include <alsa/asoundlib.h>
8383 snd_lib_error_set_handler (0);
8388 if ac_fn_c_try_compile
"$LINENO"; then :
8389 emacs_alsa_subdir
=yes
8391 emacs_alsa_subdir
=no
8393 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
8394 if test "$emacs_alsa_subdir" != yes; then
8395 as_fn_error
"pkg-config found alsa, but it does not compile. See config.log for error messages." "$LINENO" 5
8397 ALSA_CFLAGS
="$ALSA_CFLAGS -DALSA_SUBDIR_INCLUDE"
8400 CFLAGS
="$SAVE_CFLAGS"
8402 LIBSOUND
="$LIBSOUND $ALSA_LIBS"
8403 CFLAGS_SOUND
="$CFLAGS_SOUND $ALSA_CFLAGS"
8405 $as_echo "#define HAVE_ALSA 1" >>confdefs.h
8409 if test x
$have_sound_header = xyes ||
test $HAVE_ALSA = yes; then
8411 gnu-linux|freebsd|netbsd
)
8413 $as_echo "#define HAVE_SOUND 1" >>confdefs.h
8422 for ac_header
in sys
/select.h sys
/time.h unistd.h utime.h \
8423 linux
/version.h sys
/systeminfo.h \
8424 stdio_ext.h fcntl.h coff.h pty.h sys
/mman.h \
8425 sys
/vlimit.h sys
/resource.h locale.h sys
/_mbstate_t.h \
8426 sys
/utsname.h
pwd.h utmp.h dirent.h util.h
8428 as_ac_Header
=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
8429 ac_fn_c_check_header_mongrel
"$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
8430 eval as_val
=\$
$as_ac_Header
8431 if test "x$as_val" = x
""yes; then :
8432 cat >>confdefs.h
<<_ACEOF
8433 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
8441 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if personality LINUX32 can be set" >&5
8442 $as_echo_n "checking if personality LINUX32 can be set... " >&6; }
8443 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
8444 /* end confdefs.h. */
8445 #include <sys/personality.h>
8449 personality (PER_LINUX32)
8454 if ac_fn_c_try_compile
"$LINENO"; then :
8455 emacs_cv_personality_linux32
=yes
8457 emacs_cv_personality_linux32
=no
8459 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
8460 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $emacs_cv_personality_linux32" >&5
8461 $as_echo "$emacs_cv_personality_linux32" >&6; }
8463 if test $emacs_cv_personality_linux32 = yes; then
8465 $as_echo "#define HAVE_PERSONALITY_LINUX32 1" >>confdefs.h
8469 for ac_header
in term.h
8471 ac_fn_c_check_header_preproc
"$LINENO" "term.h" "ac_cv_header_term_h"
8472 if test "x$ac_cv_header_term_h" = x
""yes; then :
8473 cat >>confdefs.h
<<_ACEOF
8474 #define HAVE_TERM_H 1
8481 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether time.h and sys/time.h may both be included" >&5
8482 $as_echo_n "checking whether time.h and sys/time.h may both be included... " >&6; }
8483 if test "${ac_cv_header_time+set}" = set; then :
8484 $as_echo_n "(cached) " >&6
8486 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
8487 /* end confdefs.h. */
8488 #include <sys/types.h>
8489 #include <sys/time.h>
8495 if ((struct tm *) 0)
8501 if ac_fn_c_try_compile
"$LINENO"; then :
8502 ac_cv_header_time
=yes
8504 ac_cv_header_time
=no
8506 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
8508 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_time" >&5
8509 $as_echo "$ac_cv_header_time" >&6; }
8510 if test $ac_cv_header_time = yes; then
8512 $as_echo "#define TIME_WITH_SYS_TIME 1" >>confdefs.h
8516 ac_fn_c_check_decl
"$LINENO" "sys_siglist" "ac_cv_have_decl_sys_siglist" "$ac_includes_default"
8517 if test "x$ac_cv_have_decl_sys_siglist" = x
""yes; then :
8523 cat >>confdefs.h
<<_ACEOF
8524 #define HAVE_DECL_SYS_SIGLIST $ac_have_decl
8527 if test $ac_cv_have_decl_sys_siglist != yes; then
8528 # For Tru64, at least:
8529 ac_fn_c_check_decl
"$LINENO" "__sys_siglist" "ac_cv_have_decl___sys_siglist" "$ac_includes_default"
8530 if test "x$ac_cv_have_decl___sys_siglist" = x
""yes; then :
8536 cat >>confdefs.h
<<_ACEOF
8537 #define HAVE_DECL___SYS_SIGLIST $ac_have_decl
8540 if test $ac_cv_have_decl___sys_siglist = yes; then
8542 $as_echo "#define sys_siglist __sys_siglist" >>confdefs.h
8546 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sys/wait.h that is POSIX.1 compatible" >&5
8547 $as_echo_n "checking for sys/wait.h that is POSIX.1 compatible... " >&6; }
8548 if test "${ac_cv_header_sys_wait_h+set}" = set; then :
8549 $as_echo_n "(cached) " >&6
8551 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
8552 /* end confdefs.h. */
8553 #include <sys/types.h>
8554 #include <sys/wait.h>
8556 # define WEXITSTATUS(stat_val) ((unsigned int) (stat_val) >> 8)
8559 # define WIFEXITED(stat_val) (((stat_val) & 255) == 0)
8567 s = WIFEXITED (s) ? WEXITSTATUS (s) : 1;
8572 if ac_fn_c_try_compile
"$LINENO"; then :
8573 ac_cv_header_sys_wait_h
=yes
8575 ac_cv_header_sys_wait_h
=no
8577 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
8579 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_sys_wait_h" >&5
8580 $as_echo "$ac_cv_header_sys_wait_h" >&6; }
8581 if test $ac_cv_header_sys_wait_h = yes; then
8583 $as_echo "#define HAVE_SYS_WAIT_H 1" >>confdefs.h
8588 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for struct utimbuf" >&5
8589 $as_echo_n "checking for struct utimbuf... " >&6; }
8590 if test "${emacs_cv_struct_utimbuf+set}" = set; then :
8591 $as_echo_n "(cached) " >&6
8593 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
8594 /* end confdefs.h. */
8595 #ifdef TIME_WITH_SYS_TIME
8596 #include <sys/time.h>
8599 #ifdef HAVE_SYS_TIME_H
8600 #include <sys/time.h>
8611 static struct utimbuf x; x.actime = x.modtime;
8616 if ac_fn_c_try_compile
"$LINENO"; then :
8617 emacs_cv_struct_utimbuf
=yes
8619 emacs_cv_struct_utimbuf
=no
8621 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
8623 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $emacs_cv_struct_utimbuf" >&5
8624 $as_echo "$emacs_cv_struct_utimbuf" >&6; }
8625 if test $emacs_cv_struct_utimbuf = yes; then
8627 $as_echo "#define HAVE_STRUCT_UTIMBUF 1" >>confdefs.h
8631 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for speed_t" >&5
8632 $as_echo_n "checking for speed_t... " >&6; }
8633 if test "${emacs_cv_speed_t+set}" = set; then :
8634 $as_echo_n "(cached) " >&6
8636 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
8637 /* end confdefs.h. */
8638 #include <termios.h>
8647 if ac_fn_c_try_compile
"$LINENO"; then :
8648 emacs_cv_speed_t
=yes
8652 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
8654 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $emacs_cv_speed_t" >&5
8655 $as_echo "$emacs_cv_speed_t" >&6; }
8656 if test $emacs_cv_speed_t = yes; then
8658 $as_echo "#define HAVE_SPEED_T 1" >>confdefs.h
8662 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for struct timeval" >&5
8663 $as_echo_n "checking for struct timeval... " >&6; }
8664 if test "${emacs_cv_struct_timeval+set}" = set; then :
8665 $as_echo_n "(cached) " >&6
8667 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
8668 /* end confdefs.h. */
8669 #ifdef TIME_WITH_SYS_TIME
8670 #include <sys/time.h>
8673 #ifdef HAVE_SYS_TIME_H
8674 #include <sys/time.h>
8682 static struct timeval x; x.tv_sec = x.tv_usec;
8687 if ac_fn_c_try_compile
"$LINENO"; then :
8688 emacs_cv_struct_timeval
=yes
8690 emacs_cv_struct_timeval
=no
8692 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
8694 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $emacs_cv_struct_timeval" >&5
8695 $as_echo "$emacs_cv_struct_timeval" >&6; }
8696 HAVE_TIMEVAL
=$emacs_cv_struct_timeval
8697 if test $emacs_cv_struct_timeval = yes; then
8699 $as_echo "#define HAVE_TIMEVAL 1" >>confdefs.h
8703 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for struct exception" >&5
8704 $as_echo_n "checking for struct exception... " >&6; }
8705 if test "${emacs_cv_struct_exception+set}" = set; then :
8706 $as_echo_n "(cached) " >&6
8708 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
8709 /* end confdefs.h. */
8714 static struct exception x; x.arg1 = x.arg2 = x.retval; x.name = ""; x.type = 1;
8719 if ac_fn_c_try_compile
"$LINENO"; then :
8720 emacs_cv_struct_exception
=yes
8722 emacs_cv_struct_exception
=no
8724 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
8726 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $emacs_cv_struct_exception" >&5
8727 $as_echo "$emacs_cv_struct_exception" >&6; }
8728 HAVE_EXCEPTION
=$emacs_cv_struct_exception
8729 if test $emacs_cv_struct_exception != yes; then
8731 $as_echo "#define NO_MATHERR 1" >>confdefs.h
8735 for ac_header
in sys
/socket.h
8737 ac_fn_c_check_header_mongrel
"$LINENO" "sys/socket.h" "ac_cv_header_sys_socket_h" "$ac_includes_default"
8738 if test "x$ac_cv_header_sys_socket_h" = x
""yes; then :
8739 cat >>confdefs.h
<<_ACEOF
8740 #define HAVE_SYS_SOCKET_H 1
8747 for ac_header
in net
/if.h
8749 ac_fn_c_check_header_compile
"$LINENO" "net/if.h" "ac_cv_header_net_if_h" "$ac_includes_default
8750 #if HAVE_SYS_SOCKET_H
8751 #include <sys/socket.h>
8754 if test "x$ac_cv_header_net_if_h" = x
""yes; then :
8755 cat >>confdefs.h
<<_ACEOF
8756 #define HAVE_NET_IF_H 1
8763 for ac_header
in ifaddrs.h
8765 ac_fn_c_check_header_compile
"$LINENO" "ifaddrs.h" "ac_cv_header_ifaddrs_h" "$ac_includes_default
8766 #if HAVE_SYS_SOCKET_H
8767 #include <sys/socket.h>
8770 if test "x$ac_cv_header_ifaddrs_h" = x
""yes; then :
8771 cat >>confdefs.h
<<_ACEOF
8772 #define HAVE_IFADDRS_H 1
8779 for ac_header
in net
/if_dl.h
8781 ac_fn_c_check_header_compile
"$LINENO" "net/if_dl.h" "ac_cv_header_net_if_dl_h" "$ac_includes_default
8782 #if HAVE_SYS_SOCKET_H
8783 #include <sys/socket.h>
8786 if test "x$ac_cv_header_net_if_dl_h" = x
""yes; then :
8787 cat >>confdefs.h
<<_ACEOF
8788 #define HAVE_NET_IF_DL_H 1
8795 for ac_func
in getifaddrs freeifaddrs
8797 as_ac_var
=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
8798 ac_fn_c_check_func
"$LINENO" "$ac_func" "$as_ac_var"
8799 eval as_val
=\$
$as_ac_var
8800 if test "x$as_val" = x
""yes; then :
8801 cat >>confdefs.h
<<_ACEOF
8802 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
8809 ac_fn_c_check_member
"$LINENO" "struct ifreq" "ifr_flags" "ac_cv_member_struct_ifreq_ifr_flags" "$ac_includes_default
8810 #if HAVE_SYS_SOCKET_H
8811 #include <sys/socket.h>
8817 if test "x$ac_cv_member_struct_ifreq_ifr_flags" = x
""yes; then :
8819 cat >>confdefs.h
<<_ACEOF
8820 #define HAVE_STRUCT_IFREQ_IFR_FLAGS 1
8825 ac_fn_c_check_member
"$LINENO" "struct ifreq" "ifr_hwaddr" "ac_cv_member_struct_ifreq_ifr_hwaddr" "$ac_includes_default
8826 #if HAVE_SYS_SOCKET_H
8827 #include <sys/socket.h>
8833 if test "x$ac_cv_member_struct_ifreq_ifr_hwaddr" = x
""yes; then :
8835 cat >>confdefs.h
<<_ACEOF
8836 #define HAVE_STRUCT_IFREQ_IFR_HWADDR 1
8841 ac_fn_c_check_member
"$LINENO" "struct ifreq" "ifr_netmask" "ac_cv_member_struct_ifreq_ifr_netmask" "$ac_includes_default
8842 #if HAVE_SYS_SOCKET_H
8843 #include <sys/socket.h>
8849 if test "x$ac_cv_member_struct_ifreq_ifr_netmask" = x
""yes; then :
8851 cat >>confdefs.h
<<_ACEOF
8852 #define HAVE_STRUCT_IFREQ_IFR_NETMASK 1
8857 ac_fn_c_check_member
"$LINENO" "struct ifreq" "ifr_broadaddr" "ac_cv_member_struct_ifreq_ifr_broadaddr" "$ac_includes_default
8858 #if HAVE_SYS_SOCKET_H
8859 #include <sys/socket.h>
8865 if test "x$ac_cv_member_struct_ifreq_ifr_broadaddr" = x
""yes; then :
8867 cat >>confdefs.h
<<_ACEOF
8868 #define HAVE_STRUCT_IFREQ_IFR_BROADADDR 1
8873 ac_fn_c_check_member
"$LINENO" "struct ifreq" "ifr_addr" "ac_cv_member_struct_ifreq_ifr_addr" "$ac_includes_default
8874 #if HAVE_SYS_SOCKET_H
8875 #include <sys/socket.h>
8881 if test "x$ac_cv_member_struct_ifreq_ifr_addr" = x
""yes; then :
8883 cat >>confdefs.h
<<_ACEOF
8884 #define HAVE_STRUCT_IFREQ_IFR_ADDR 1
8889 ac_fn_c_check_member
"$LINENO" "struct ifreq" "ifr_addr.sa_len" "ac_cv_member_struct_ifreq_ifr_addr_sa_len" "$ac_includes_default
8890 #if HAVE_SYS_SOCKET_H
8891 #include <sys/socket.h>
8897 if test "x$ac_cv_member_struct_ifreq_ifr_addr_sa_len" = x
""yes; then :
8899 cat >>confdefs.h
<<_ACEOF
8900 #define HAVE_STRUCT_IFREQ_IFR_ADDR_SA_LEN 1
8908 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for function prototypes" >&5
8909 $as_echo_n "checking for function prototypes... " >&6; }
8910 if test "$ac_cv_prog_cc_c89" != no
; then
8911 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
8912 $as_echo "yes" >&6; }
8914 $as_echo "#define PROTOTYPES 1" >>confdefs.h
8917 $as_echo "#define __PROTOTYPES 1" >>confdefs.h
8920 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8921 $as_echo "no" >&6; }
8924 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working volatile" >&5
8925 $as_echo_n "checking for working volatile... " >&6; }
8926 if test "${ac_cv_c_volatile+set}" = set; then :
8927 $as_echo_n "(cached) " >&6
8929 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
8930 /* end confdefs.h. */
8937 int * volatile y = (int *) 0;
8943 if ac_fn_c_try_compile
"$LINENO"; then :
8944 ac_cv_c_volatile
=yes
8948 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
8950 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_volatile" >&5
8951 $as_echo "$ac_cv_c_volatile" >&6; }
8952 if test $ac_cv_c_volatile = no
; then
8954 $as_echo "#define volatile /**/" >>confdefs.h
8958 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for an ANSI C-conforming const" >&5
8959 $as_echo_n "checking for an ANSI C-conforming const... " >&6; }
8960 if test "${ac_cv_c_const+set}" = set; then :
8961 $as_echo_n "(cached) " >&6
8963 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
8964 /* end confdefs.h. */
8969 /* FIXME: Include the comments suggested by Paul. */
8971 /* Ultrix mips cc rejects this. */
8972 typedef int charset[2];
8974 /* SunOS 4.1.1 cc rejects this. */
8975 char const *const *pcpcc;
8977 /* NEC SVR4.0.2 mips cc rejects this. */
8978 struct point {int x, y;};
8979 static struct point const zero = {0,0};
8980 /* AIX XL C 1.02.0.0 rejects this.
8981 It does not let you subtract one const X* pointer from another in
8982 an arm of an if-expression whose if-part is not a constant
8984 const char *g = "string";
8985 pcpcc = &g + (g ? g-g : 0);
8986 /* HPUX 7.0 cc rejects these. */
8988 ppc = (char**) pcpcc;
8989 pcpcc = (char const *const *) ppc;
8990 { /* SCO 3.2v4 cc rejects this. */
8992 char const *s = 0 ? (char *) 0 : (char const *) 0;
8997 { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
8999 const int *foo = &x[0];
9002 { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
9003 typedef const int *iptr;
9007 { /* AIX XL C 1.02.0.0 rejects this saying
9008 "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
9009 struct s { int j; const int *ap[3]; };
9010 struct s *b; b->j = 5;
9012 { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
9016 return !cs[0] && !zero.x;
9023 if ac_fn_c_try_compile
"$LINENO"; then :
9028 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
9030 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_const" >&5
9031 $as_echo "$ac_cv_c_const" >&6; }
9032 if test $ac_cv_c_const = no
; then
9034 $as_echo "#define const /**/" >>confdefs.h
9038 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for void * support" >&5
9039 $as_echo_n "checking for void * support... " >&6; }
9040 if test "${emacs_cv_void_star+set}" = set; then :
9041 $as_echo_n "(cached) " >&6
9043 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
9044 /* end confdefs.h. */
9054 if ac_fn_c_try_compile
"$LINENO"; then :
9055 emacs_cv_void_star
=yes
9057 emacs_cv_void_star
=no
9059 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
9061 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $emacs_cv_void_star" >&5
9062 $as_echo "$emacs_cv_void_star" >&6; }
9063 if test $emacs_cv_void_star = yes; then
9064 $as_echo "#define POINTER_TYPE void" >>confdefs.h
9067 $as_echo "#define POINTER_TYPE char" >>confdefs.h
9071 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether byte ordering is bigendian" >&5
9072 $as_echo_n "checking whether byte ordering is bigendian... " >&6; }
9073 if test "${ac_cv_c_bigendian+set}" = set; then :
9074 $as_echo_n "(cached) " >&6
9076 ac_cv_c_bigendian
=unknown
9077 # See if we're dealing with a universal compiler.
9078 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
9079 /* end confdefs.h. */
9080 #ifndef __APPLE_CC__
9081 not a universal capable compiler
9086 if ac_fn_c_try_compile
"$LINENO"; then :
9088 # Check for potential -arch flags. It is not universal unless
9089 # there are at least two -arch flags with different values.
9092 for ac_word
in $CC $CFLAGS $CPPFLAGS $LDFLAGS; do
9093 if test -n "$ac_prev"; then
9095 i?
86 | x86_64 | ppc | ppc64
)
9096 if test -z "$ac_arch" ||
test "$ac_arch" = "$ac_word"; then
9099 ac_cv_c_bigendian
=universal
9105 elif test "x$ac_word" = "x-arch"; then
9110 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
9111 if test $ac_cv_c_bigendian = unknown
; then
9112 # See if sys/param.h defines the BYTE_ORDER macro.
9113 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
9114 /* end confdefs.h. */
9115 #include <sys/types.h>
9116 #include <sys/param.h>
9121 #if ! (defined BYTE_ORDER && defined BIG_ENDIAN \
9122 && defined LITTLE_ENDIAN && BYTE_ORDER && BIG_ENDIAN \
9131 if ac_fn_c_try_compile
"$LINENO"; then :
9132 # It does; now see whether it defined to BIG_ENDIAN or not.
9133 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
9134 /* end confdefs.h. */
9135 #include <sys/types.h>
9136 #include <sys/param.h>
9141 #if BYTE_ORDER != BIG_ENDIAN
9149 if ac_fn_c_try_compile
"$LINENO"; then :
9150 ac_cv_c_bigendian
=yes
9152 ac_cv_c_bigendian
=no
9154 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
9156 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
9158 if test $ac_cv_c_bigendian = unknown
; then
9159 # See if <limits.h> defines _LITTLE_ENDIAN or _BIG_ENDIAN (e.g., Solaris).
9160 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
9161 /* end confdefs.h. */
9167 #if ! (defined _LITTLE_ENDIAN || defined _BIG_ENDIAN)
9175 if ac_fn_c_try_compile
"$LINENO"; then :
9176 # It does; now see whether it defined to _BIG_ENDIAN or not.
9177 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
9178 /* end confdefs.h. */
9192 if ac_fn_c_try_compile
"$LINENO"; then :
9193 ac_cv_c_bigendian
=yes
9195 ac_cv_c_bigendian
=no
9197 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
9199 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
9201 if test $ac_cv_c_bigendian = unknown
; then
9202 # Compile a test program.
9203 if test "$cross_compiling" = yes; then :
9204 # Try to guess by grepping values from an object file.
9205 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
9206 /* end confdefs.h. */
9207 short int ascii_mm[] =
9208 { 0x4249, 0x4765, 0x6E44, 0x6961, 0x6E53, 0x7953, 0 };
9209 short int ascii_ii[] =
9210 { 0x694C, 0x5454, 0x656C, 0x6E45, 0x6944, 0x6E61, 0 };
9211 int use_ascii (int i) {
9212 return ascii_mm[i] + ascii_ii[i];
9214 short int ebcdic_ii[] =
9215 { 0x89D3, 0xE3E3, 0x8593, 0x95C5, 0x89C4, 0x9581, 0 };
9216 short int ebcdic_mm[] =
9217 { 0xC2C9, 0xC785, 0x95C4, 0x8981, 0x95E2, 0xA8E2, 0 };
9218 int use_ebcdic (int i) {
9219 return ebcdic_mm[i] + ebcdic_ii[i];
9226 return use_ascii (foo) == use_ebcdic (foo);
9231 if ac_fn_c_try_compile
"$LINENO"; then :
9232 if grep BIGenDianSyS conftest.
$ac_objext >/dev
/null
; then
9233 ac_cv_c_bigendian
=yes
9235 if grep LiTTleEnDian conftest.
$ac_objext >/dev
/null
; then
9236 if test "$ac_cv_c_bigendian" = unknown
; then
9237 ac_cv_c_bigendian
=no
9239 # finding both strings is unlikely to happen, but who knows?
9240 ac_cv_c_bigendian
=unknown
9244 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
9246 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
9247 /* end confdefs.h. */
9248 $ac_includes_default
9253 /* Are we little or big endian? From Harbison&Steele. */
9257 char c[sizeof (long int)];
9260 return u.c[sizeof (long int) - 1] == 1;
9266 if ac_fn_c_try_run
"$LINENO"; then :
9267 ac_cv_c_bigendian
=no
9269 ac_cv_c_bigendian
=yes
9271 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
9272 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
9277 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_bigendian" >&5
9278 $as_echo "$ac_cv_c_bigendian" >&6; }
9279 case $ac_cv_c_bigendian in #(
9281 $as_echo "#define WORDS_BIGENDIAN 1" >>confdefs.h
9287 $as_echo "#define AC_APPLE_UNIVERSAL_BUILD 1" >>confdefs.h
9291 as_fn_error
"unknown endianness
9292 presetting ac_cv_c_bigendian=no (or yes) will help" "$LINENO" 5 ;;
9296 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for __attribute__ ((__aligned__ (expr)))" >&5
9297 $as_echo_n "checking for __attribute__ ((__aligned__ (expr)))... " >&6; }
9298 if test "${emacs_cv_attribute_aligned+set}" = set; then :
9299 $as_echo_n "(cached) " >&6
9301 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
9302 /* end confdefs.h. */
9303 char __attribute__ ((__aligned__ (1 << 3))) c;
9312 if ac_fn_c_try_compile
"$LINENO"; then :
9313 emacs_cv_attribute_aligned
=yes
9315 emacs_cv_attribute_aligned
=no
9317 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
9319 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $emacs_cv_attribute_aligned" >&5
9320 $as_echo "$emacs_cv_attribute_aligned" >&6; }
9321 if test $emacs_cv_attribute_aligned = yes; then
9323 $as_echo "#define HAVE_ATTRIBUTE_ALIGNED 1" >>confdefs.h
9327 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
9328 $as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
9330 ac_make
=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
9331 if { as_var
=ac_cv_prog_make_
${ac_make}_set; eval "test \"\${$as_var+set}\" = set"; }; then :
9332 $as_echo_n "(cached) " >&6
9334 cat >conftest.
make <<\_ACEOF
9337 @
echo '@@@%%%=$(MAKE)=@@@%%%'
9339 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
9340 case `${MAKE-make} -f conftest.make 2>/dev/null` in
9342 eval ac_cv_prog_make_
${ac_make}_set
=yes;;
9344 eval ac_cv_prog_make_
${ac_make}_set
=no
;;
9348 if eval test \
$ac_cv_prog_make_${ac_make}_set
= yes; then
9349 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
9350 $as_echo "yes" >&6; }
9353 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9354 $as_echo "no" >&6; }
9355 SET_MAKE
="MAKE=${MAKE-make}"
9362 if test "$GCC" = yes && test "$ac_enable_autodepend" = yes; then
9363 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using GNU Make" >&5
9364 $as_echo_n "checking whether we are using GNU Make... " >&6; }
9366 testval
=`${MAKE-make} --version 2>/dev/null | grep 'GNU Make'`
9367 if test "x$testval" != x
; then
9370 ac_enable_autodepend
=no
9372 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $HAVE_GNU_MAKE" >&5
9373 $as_echo "$HAVE_GNU_MAKE" >&6; }
9374 if test $HAVE_GNU_MAKE = yes; then
9375 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether gcc understands -MMD -MF" >&5
9376 $as_echo_n "checking whether gcc understands -MMD -MF... " >&6; }
9377 SAVE_CFLAGS
="$CFLAGS"
9378 CFLAGS
="$CFLAGS -MMD -MF deps.d -MP"
9379 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
9380 /* end confdefs.h. */
9390 if ac_fn_c_try_compile
"$LINENO"; then :
9393 ac_enable_autodepend
=no
9395 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
9396 CFLAGS
="$SAVE_CFLAGS"
9397 test -f deps.d || ac_enable_autodepend
=no
9399 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_enable_autodepend" >&5
9400 $as_echo "$ac_enable_autodepend" >&6; }
9402 if test $ac_enable_autodepend = yes; then
9403 DEPFLAGS
='-MMD -MF ${DEPDIR}/$*.d -MP'
9404 ## In parallel builds, another make might create depdir between
9405 ## the first test and mkdir, so stick another test on the end.
9406 ## Or use install-sh -d? mkdir -p is not portable.
9407 MKDEPDIR
='test -d ${DEPDIR} || mkdir ${DEPDIR} || test -d ${DEPDIR}'
9408 deps_frag
=autodeps.mk
9411 deps_frag
=$srcdir/src
/$deps_frag
9417 lisp_frag
=$srcdir/src
/lisp.mk
9421 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for long file names" >&5
9422 $as_echo_n "checking for long file names... " >&6; }
9423 if test "${ac_cv_sys_long_file_names+set}" = set; then :
9424 $as_echo_n "(cached) " >&6
9426 ac_cv_sys_long_file_names
=yes
9427 # Test for long file names in all the places we know might matter:
9428 # . the current directory, where building will happen
9429 # $prefix/lib where we will be installing things
9430 # $exec_prefix/lib likewise
9431 # $TMPDIR if set, where it might want to write temporary files
9432 # /tmp where it might want to write temporary files
9435 for ac_dir
in .
"$TMPDIR" /tmp
/var
/tmp
/usr
/tmp
"$prefix/lib" "$exec_prefix/lib"; do
9436 # Skip $TMPDIR if it is empty or bogus, and skip $exec_prefix/lib
9437 # in the usual case where exec_prefix is '${prefix}'.
9439 . |
/* | ?
:[\\/]*) ;; #(
9442 test -w "$ac_dir/." ||
continue # It is less confusing to not echo anything here.
9443 ac_xdir
=$ac_dir/cf$$
9444 (umask 077 && mkdir
"$ac_xdir" 2>/dev
/null
) ||
continue
9445 ac_tf1
=$ac_xdir/conftest9012345
9446 ac_tf2
=$ac_xdir/conftest9012346
9447 touch "$ac_tf1" 2>/dev
/null
&& test -f "$ac_tf1" && test ! -f "$ac_tf2" ||
9448 ac_cv_sys_long_file_names
=no
9449 rm -f -r "$ac_xdir" 2>/dev
/null
9450 test $ac_cv_sys_long_file_names = no
&& break
9453 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_long_file_names" >&5
9454 $as_echo "$ac_cv_sys_long_file_names" >&6; }
9455 if test $ac_cv_sys_long_file_names = yes; then
9457 $as_echo "#define HAVE_LONG_FILE_NAMES 1" >>confdefs.h
9462 #### Choose a window system.
9464 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for X" >&5
9465 $as_echo_n "checking for X... " >&6; }
9468 # Check whether --with-x was given.
9469 if test "${with_x+set}" = set; then :
9473 # $have_x is `yes', `no', `disabled', or empty when we do not yet know.
9474 if test "x$with_x" = xno
; then
9475 # The user explicitly disabled X.
9478 case $x_includes,$x_libraries in #(
9479 *\'*) as_fn_error
"cannot use X directory names containing '" "$LINENO" 5;; #(
9480 *,NONE | NONE
,*) if test "${ac_cv_have_x+set}" = set; then :
9481 $as_echo_n "(cached) " >&6
9483 # One or both of the vars are not set, and there is no cached value.
9484 ac_x_includes
=no ac_x_libraries
=no
9485 rm -f -r conftest.dir
9486 if mkdir conftest.dir
; then
9488 cat >Imakefile
<<'_ACEOF'
9490 @echo incroot='${INCROOT}'
9492 @echo usrlibdir='${USRLIBDIR}'
9494 @echo libdir='${LIBDIR}'
9496 if (export CC
; ${XMKMF-xmkmf}) >/dev
/null
2>/dev
/null
&& test -f Makefile
; then
9497 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
9498 for ac_var
in incroot usrlibdir libdir
; do
9499 eval "ac_im_$ac_var=\`\${MAKE-make} $ac_var 2>/dev/null | sed -n 's/^$ac_var=//p'\`"
9501 # Open Windows xmkmf reportedly sets LIBDIR instead of USRLIBDIR.
9502 for ac_extension
in a so sl dylib la dll
; do
9503 if test ! -f "$ac_im_usrlibdir/libX11.$ac_extension" &&
9504 test -f "$ac_im_libdir/libX11.$ac_extension"; then
9505 ac_im_usrlibdir
=$ac_im_libdir; break
9508 # Screen out bogus values from the imake configuration. They are
9509 # bogus both because they are the default anyway, and because
9510 # using them would break gcc on systems where it needs fixed includes.
9511 case $ac_im_incroot in
9512 /usr
/include
) ac_x_includes
= ;;
9513 *) test -f "$ac_im_incroot/X11/Xos.h" && ac_x_includes
=$ac_im_incroot;;
9515 case $ac_im_usrlibdir in
9516 /usr
/lib |
/usr
/lib64 |
/lib |
/lib64
) ;;
9517 *) test -d "$ac_im_usrlibdir" && ac_x_libraries
=$ac_im_usrlibdir ;;
9521 rm -f -r conftest.dir
9524 # Standard set of common directories for X headers.
9525 # Check X11 before X11Rn because it is often a symlink to the current release.
9539 /usr/local/X11/include
9540 /usr/local/X11R7/include
9541 /usr/local/X11R6/include
9542 /usr/local/X11R5/include
9543 /usr/local/X11R4/include
9545 /usr/local/include/X11
9546 /usr/local/include/X11R7
9547 /usr/local/include/X11R6
9548 /usr/local/include/X11R5
9549 /usr/local/include/X11R4
9553 /usr/XFree86/include/X11
9557 /usr/unsupported/include
9559 /usr/local/x11r5/include
9560 /usr/lpp/Xamples/include
9562 /usr/openwin/include
9563 /usr/openwin/share/include'
9565 if test "$ac_x_includes" = no
; then
9566 # Guess where to find include files, by looking for Xlib.h.
9567 # First, try using that file with no special directory specified.
9568 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
9569 /* end confdefs.h. */
9570 #include <X11/Xlib.h>
9572 if ac_fn_c_try_cpp
"$LINENO"; then :
9573 # We can compile using X headers with no special include directory.
9576 for ac_dir
in $ac_x_header_dirs; do
9577 if test -r "$ac_dir/X11/Xlib.h"; then
9578 ac_x_includes
=$ac_dir
9583 rm -f conftest.err conftest.
$ac_ext
9584 fi # $ac_x_includes = no
9586 if test "$ac_x_libraries" = no
; then
9587 # Check for the libraries.
9588 # See if we find them without any special options.
9589 # Don't add to $LIBS permanently.
9592 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
9593 /* end confdefs.h. */
9594 #include <X11/Xlib.h>
9603 if ac_fn_c_try_link
"$LINENO"; then :
9605 # We can link X programs with no special library path.
9609 for ac_dir
in `$as_echo "$ac_x_includes $ac_x_header_dirs" | sed s/include/lib/g`
9611 # Don't even attempt the hair of trying to link an X program!
9612 for ac_extension
in a so sl dylib la dll
; do
9613 if test -r "$ac_dir/libX11.$ac_extension"; then
9614 ac_x_libraries
=$ac_dir
9620 rm -f core conftest.err conftest.
$ac_objext \
9621 conftest
$ac_exeext conftest.
$ac_ext
9622 fi # $ac_x_libraries = no
9624 case $ac_x_includes,$ac_x_libraries in #(
9626 # Didn't find X, or a directory has "'" in its name.
9627 ac_cv_have_x
="have_x=no";; #(
9629 # Record where we found X for the cache.
9630 ac_cv_have_x
="have_x=yes\
9631 ac_x_includes='$ac_x_includes'\
9632 ac_x_libraries='$ac_x_libraries'"
9638 eval "$ac_cv_have_x"
9641 if test "$have_x" != yes; then
9642 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_x" >&5
9643 $as_echo "$have_x" >&6; }
9646 # If each of the values was on the command line, it overrides each guess.
9647 test "x$x_includes" = xNONE
&& x_includes
=$ac_x_includes
9648 test "x$x_libraries" = xNONE
&& x_libraries
=$ac_x_libraries
9649 # Update the cache value to reflect the command line values.
9650 ac_cv_have_x
="have_x=yes\
9651 ac_x_includes='$x_includes'\
9652 ac_x_libraries='$x_libraries'"
9653 { $as_echo "$as_me:${as_lineno-$LINENO}: result: libraries $x_libraries, headers $x_includes" >&5
9654 $as_echo "libraries $x_libraries, headers $x_includes" >&6; }
9657 if test "$no_x" = yes; then
9663 ## Workaround for bug in autoconf <= 2.62.
9664 ## http://lists.gnu.org/archive/html/emacs-devel/2008-04/msg01551.html
9665 ## No need to do anything special for these standard directories.
9666 if test -n "${x_libraries}" && test x
"${x_libraries}" != xNONE
; then
9668 x_libraries
=`echo :${x_libraries}: | sed -e 's|:/usr/lib64:|:|g' -e 's|:/lib64:|:|g' -e 's|^:||' -e 's|:$||'`
9672 LD_SWITCH_X_SITE_AUX
=
9673 LD_SWITCH_X_SITE_AUX_RPATH
=
9674 if test "${x_libraries}" != NONE
; then
9675 if test -n "${x_libraries}"; then
9676 LD_SWITCH_X_SITE
=-L`echo ${x_libraries} | sed -e "s/:/ -L/g"`
9677 LD_SWITCH_X_SITE_AUX
=-R`echo ${x_libraries} | sed -e "s/:/ -R/g"`
9678 LD_SWITCH_X_SITE_AUX_RPATH
=`echo ${LD_SWITCH_X_SITE_AUX} | sed -e 's/-R/-Wl,-rpath,/'`
9680 x_default_search_path
=""
9681 x_search_path
=${x_libraries}
9682 if test -z "${x_search_path}"; then
9683 x_search_path
=/usr
/lib
9685 for x_library
in `echo ${x_search_path}: | \
9686 sed -e "s/:/ /g" -e p -e "s:/lib[^ /]* :/share :g"`; do
9688 ${x_library}/X11/%L/%T/%N%C%S:\
9689 ${x_library}/X11/%l/%T/%N%C%S:\
9690 ${x_library}/X11/%T/%N%C%S:\
9691 ${x_library}/X11/%L/%T/%N%S:\
9692 ${x_library}/X11/%l/%T/%N%S:\
9693 ${x_library}/X11/%T/%N%S"
9694 if test x
"${x_default_search_path}" = x
; then
9695 x_default_search_path
=${x_search_path}
9697 x_default_search_path
="${x_search_path}:${x_default_search_path}"
9704 if test "${x_includes}" != NONE
&& test -n "${x_includes}"; then
9705 C_SWITCH_X_SITE
=-I`echo ${x_includes} | sed -e "s/:/ -I/g"`
9708 if test x
"${x_includes}" = x
; then
9709 bitmapdir
=/usr
/include
/X11
/bitmaps
9711 # accumulate include directories that have X11 bitmap subdirectories
9713 for bmd
in `echo ${x_includes} | sed -e "s/:/ /g"`; do
9714 if test -d "${bmd}/X11/bitmaps"; then
9715 bmd_acc
="${bmd_acc}:${bmd}/X11/bitmaps"
9717 if test -d "${bmd}/bitmaps"; then
9718 bmd_acc
="${bmd_acc}:${bmd}/bitmaps"
9721 if test ${bmd_acc} != "dummyval"; then
9722 bitmapdir
=`echo ${bmd_acc} | sed -e "s/^dummyval://"`
9729 tmp_CPPFLAGS
="$CPPFLAGS"
9730 tmp_CFLAGS
="$CFLAGS"
9731 CPPFLAGS
="$CPPFLAGS -x objective-c"
9732 CFLAGS
="$CFLAGS -x objective-c"
9733 TEMACS_LDFLAGS2
="\${LDFLAGS}"
9735 if test "${with_ns}" != no
; then
9736 if test "${opsys}" = darwin
; then
9738 ns_appdir
=`pwd`/nextstep
/Emacs.app
9739 ns_appbindir
=${ns_appdir}/Contents
/MacOS
/
9740 ns_appresdir
=${ns_appdir}/Contents
/Resources
9741 ns_appsrc
=${srcdir}/nextstep
/Cocoa
/Emacs.base
9742 elif test -f $GNUSTEP_CONFIG_FILE; then
9744 ns_appdir
=`pwd`/nextstep
/Emacs.app
9745 ns_appbindir
=${ns_appdir}/
9746 ns_appresdir
=${ns_appdir}/Resources
9747 ns_appsrc
=${srcdir}/nextstep
/GNUstep
/Emacs.base
9748 GNUSTEP_SYSTEM_HEADERS
="$(. $GNUSTEP_CONFIG_FILE; echo $GNUSTEP_SYSTEM_HEADERS)"
9749 GNUSTEP_SYSTEM_LIBRARIES
="$(. $GNUSTEP_CONFIG_FILE; echo $GNUSTEP_SYSTEM_LIBRARIES)"
9750 GNUSTEP_LOCAL_HEADERS
="$(. $GNUSTEP_CONFIG_FILE; echo $GNUSTEP_LOCAL_HEADERS)"
9751 GNUSTEP_LOCAL_LIBRARIES
="$(. $GNUSTEP_CONFIG_FILE; echo $GNUSTEP_LOCAL_LIBRARIES)"
9752 test "x${GNUSTEP_LOCAL_HEADERS}" != "x" && \
9753 GNUSTEP_LOCAL_HEADERS
="-I${GNUSTEP_LOCAL_HEADERS}"
9754 test "x${GNUSTEP_LOCAL_LIBRARIES}" != "x" && \
9755 GNUSTEP_LOCAL_LIBRARIES
="-L${GNUSTEP_LOCAL_LIBRARIES}"
9756 CPPFLAGS
="$CPPFLAGS -I${GNUSTEP_SYSTEM_HEADERS} ${GNUSTEP_LOCAL_HEADERS}"
9757 CFLAGS
="$CFLAGS -I${GNUSTEP_SYSTEM_HEADERS} ${GNUSTEP_LOCAL_HEADERS}"
9758 LDFLAGS
="$LDFLAGS -L${GNUSTEP_SYSTEM_LIBRARIES} ${GNUSTEP_LOCAL_LIBRARIES}"
9762 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if GNUstep defines BASE_NATIVE_OBJC_EXCEPTIONS" >&5
9763 $as_echo_n "checking if GNUstep defines BASE_NATIVE_OBJC_EXCEPTIONS... " >&6; }
9764 if test "${emacs_cv_objc_exceptions+set}" = set; then :
9765 $as_echo_n "(cached) " >&6
9767 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
9768 /* end confdefs.h. */
9769 #include <GNUstepBase/GSConfig.h>
9773 #if defined BASE_NATIVE_OBJC_EXCEPTIONS && BASE_NATIVE_OBJC_EXCEPTIONS > 0
9782 if ac_fn_c_try_compile
"$LINENO"; then :
9783 emacs_cv_objc_exceptions
=yes
9785 emacs_cv_objc_exceptions
=no
9787 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
9789 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $emacs_cv_objc_exceptions" >&5
9790 $as_echo "$emacs_cv_objc_exceptions" >&6; }
9791 if test $emacs_cv_objc_exceptions = yes; then
9793 $as_echo "#define _NATIVE_OBJC_EXCEPTIONS 1" >>confdefs.h
9795 GNU_OBJC_CFLAGS
="-fobjc-exceptions"
9799 CFLAGS
="$CFLAGS $GNU_OBJC_CFLAGS"
9801 ac_fn_c_check_header_mongrel
"$LINENO" "AppKit/AppKit.h" "ac_cv_header_AppKit_AppKit_h" "$ac_includes_default"
9802 if test "x$ac_cv_header_AppKit_AppKit_h" = x
""yes; then :
9805 as_fn_error
"\`--with-ns' was specified, but the include
9806 files are missing or cannot be compiled." "$LINENO" 5
9810 NS_HAVE_NSINTEGER
=yes
9811 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
9812 /* end confdefs.h. */
9813 #include <Foundation/NSObjCRuntime.h>
9822 if ac_fn_c_try_compile
"$LINENO"; then :
9823 ns_have_nsinteger
=yes
9825 ns_have_nsinteger
=no
9827 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
9828 if test $ns_have_nsinteger = no
; then
9829 NS_HAVE_NSINTEGER
=no
9837 if test "${HAVE_NS}" = yes; then
9838 window_system
=nextstep
9840 # set up packaging dirs
9841 if test "${EN_NS_SELF_CONTAINED}" = yes; then
9842 prefix
=${ns_appresdir}
9843 exec_prefix
=${ns_appbindir}
9844 libexecdir
=${ns_appbindir}/libexec
9846 ns_frag
=$srcdir/src
/ns.mk
9847 NS_OBJ
="fontset.o fringe.o image.o"
9848 NS_OBJC_OBJ
="nsterm.o nsfns.o nsmenu.o nsselect.o nsimage.o nsfont.o"
9850 CFLAGS
="$tmp_CFLAGS"
9851 CPPFLAGS
="$tmp_CPPFLAGS"
9857 case "${window_system}" in
9861 case "${with_x_toolkit}" in
9862 athena | lucid
) USE_X_TOOLKIT
=LUCID
;;
9863 motif
) USE_X_TOOLKIT
=MOTIF
;;
9865 USE_X_TOOLKIT
=none
;;
9866 gtk3
) with_gtk3
=yes
9867 USE_X_TOOLKIT
=none
;;
9868 no
) USE_X_TOOLKIT
=none
;;
9869 * ) USE_X_TOOLKIT
=maybe
;;
9879 if test "$window_system" = none
&& test "X$with_x" != "Xno"; then
9880 # Extract the first word of "X", so it can be a program name with args.
9881 set dummy X
; ac_word
=$2
9882 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9883 $as_echo_n "checking for $ac_word... " >&6; }
9884 if test "${ac_cv_prog_HAVE_XSERVER+set}" = set; then :
9885 $as_echo_n "(cached) " >&6
9887 if test -n "$HAVE_XSERVER"; then
9888 ac_cv_prog_HAVE_XSERVER
="$HAVE_XSERVER" # Let the user override the test.
9890 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
9894 test -z "$as_dir" && as_dir
=.
9895 for ac_exec_ext
in '' $ac_executable_extensions; do
9896 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9897 ac_cv_prog_HAVE_XSERVER
="true"
9898 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9905 test -z "$ac_cv_prog_HAVE_XSERVER" && ac_cv_prog_HAVE_XSERVER
="false"
9908 HAVE_XSERVER
=$ac_cv_prog_HAVE_XSERVER
9909 if test -n "$HAVE_XSERVER"; then
9910 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $HAVE_XSERVER" >&5
9911 $as_echo "$HAVE_XSERVER" >&6; }
9913 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9914 $as_echo "no" >&6; }
9918 if test "$HAVE_XSERVER" = true ||
9919 test -n "$DISPLAY" ||
9920 test "`echo /usr/lib/libX11.*`" != "/usr/lib/libX11.*"; then
9921 as_fn_error
"You seem to be running X, but no X development libraries
9922 were found. You should install the relevant development files for X
9923 and for the toolkit you want, such as Gtk+, Lesstif or Motif. Also make
9924 sure you have development files for image handling, i.e.
9925 tiff, gif, jpeg, png and xpm.
9926 If you are sure you want Emacs compiled without X window support, pass
9928 to configure." "$LINENO" 5
9932 ### If we're using X11, we should use the X menu package.
9935 yes ) HAVE_MENUS
=yes ;;
9938 # Do the opsystem or machine files prohibit the use of the GNU malloc?
9939 # Assume not, until told otherwise.
9942 ac_fn_c_check_func
"$LINENO" "malloc_get_state" "ac_cv_func_malloc_get_state"
9943 if test "x$ac_cv_func_malloc_get_state" = x
""yes; then :
9949 ac_fn_c_check_func
"$LINENO" "malloc_set_state" "ac_cv_func_malloc_set_state"
9950 if test "x$ac_cv_func_malloc_set_state" = x
""yes; then :
9956 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether __after_morecore_hook exists" >&5
9957 $as_echo_n "checking whether __after_morecore_hook exists... " >&6; }
9958 if test "${emacs_cv_var___after_morecore_hook+set}" = set; then :
9959 $as_echo_n "(cached) " >&6
9961 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
9962 /* end confdefs.h. */
9963 extern void (* __after_morecore_hook)();
9967 __after_morecore_hook = 0
9972 if ac_fn_c_try_link
"$LINENO"; then :
9973 emacs_cv_var___after_morecore_hook
=yes
9975 emacs_cv_var___after_morecore_hook
=no
9977 rm -f core conftest.err conftest.
$ac_objext \
9978 conftest
$ac_exeext conftest.
$ac_ext
9980 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $emacs_cv_var___after_morecore_hook" >&5
9981 $as_echo "$emacs_cv_var___after_morecore_hook" >&6; }
9982 if test $emacs_cv_var___after_morecore_hook = no
; then
9989 ## darwin ld insists on the use of malloc routines in the System framework.
9990 darwin|sol2-10
) system_malloc
=yes ;;
9993 if test "${system_malloc}" = "yes"; then
9995 $as_echo "#define SYSTEM_MALLOC 1" >>confdefs.h
9999 (The GNU allocators don't work with this system configuration.)"
10003 test "$doug_lea_malloc" != "yes" && GMALLOC_OBJ
=gmalloc.o
10004 VMLIMIT_OBJ
=vm-limit.o
10009 if test "$doug_lea_malloc" = "yes" ; then
10010 if test "$GNU_MALLOC" = yes ; then
10011 GNU_MALLOC_reason
="
10012 (Using Doug Lea's new malloc from the GNU C Library.)"
10015 $as_echo "#define DOUG_LEA_MALLOC 1" >>confdefs.h
10018 ## Use mmap directly for allocating larger buffers.
10019 ## FIXME this comes from src/s/{gnu,gnu-linux}.h:
10020 ## #ifdef DOUG_LEA_MALLOC; #undef REL_ALLOC; #endif
10021 ## Does the AC_FUNC_MMAP test below make this check unnecessary?
10023 gnu
*) REL_ALLOC
=no
;;
10027 if test x
"${REL_ALLOC}" = x
; then
10028 REL_ALLOC
=${GNU_MALLOC}
10031 use_mmap_for_buffers
=no
10033 cygwin|freebsd|irix6-5
) use_mmap_for_buffers
=yes ;;
10039 for ac_header
in $ac_header_list
10041 as_ac_Header
=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
10042 ac_fn_c_check_header_compile
"$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
10044 eval as_val
=\$
$as_ac_Header
10045 if test "x$as_val" = x
""yes; then :
10046 cat >>confdefs.h
<<_ACEOF
10047 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
10061 for ac_func
in getpagesize
10063 ac_fn_c_check_func
"$LINENO" "getpagesize" "ac_cv_func_getpagesize"
10064 if test "x$ac_cv_func_getpagesize" = x
""yes; then :
10065 cat >>confdefs.h
<<_ACEOF
10066 #define HAVE_GETPAGESIZE 1
10072 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working mmap" >&5
10073 $as_echo_n "checking for working mmap... " >&6; }
10074 if test "${ac_cv_func_mmap_fixed_mapped+set}" = set; then :
10075 $as_echo_n "(cached) " >&6
10077 if test "$cross_compiling" = yes; then :
10078 ac_cv_func_mmap_fixed_mapped
=no
10080 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
10081 /* end confdefs.h. */
10082 $ac_includes_default
10083 /* malloc might have been renamed as rpl_malloc. */
10086 /* Thanks to Mike Haertel and Jim Avera for this test.
10087 Here is a matrix of mmap possibilities:
10088 mmap private not fixed
10089 mmap private fixed at somewhere currently unmapped
10090 mmap private fixed at somewhere already mapped
10091 mmap shared not fixed
10092 mmap shared fixed at somewhere currently unmapped
10093 mmap shared fixed at somewhere already mapped
10094 For private mappings, we should verify that changes cannot be read()
10095 back from the file, nor mmap's back from the file at a different
10096 address. (There have been systems where private was not correctly
10097 implemented like the infamous i386 svr4.0, and systems where the
10098 VM page cache was not coherent with the file system buffer cache
10099 like early versions of FreeBSD and possibly contemporary NetBSD.)
10100 For shared mappings, we should conversely verify that changes get
10101 propagated back to all the places they're supposed to be.
10103 Grep wants private fixed already mapped.
10104 The main things grep needs to know about mmap are:
10105 * does it exist and is it safe to write into the mmap'd area
10106 * how to use it (BSD variants) */
10109 #include <sys/mman.h>
10111 #if !defined STDC_HEADERS && !defined HAVE_STDLIB_H
10115 /* This mess was copied from the GNU getpagesize.h. */
10116 #ifndef HAVE_GETPAGESIZE
10117 # ifdef _SC_PAGESIZE
10118 # define getpagesize() sysconf(_SC_PAGESIZE)
10119 # else /* no _SC_PAGESIZE */
10120 # ifdef HAVE_SYS_PARAM_H
10121 # include <sys/param.h>
10122 # ifdef EXEC_PAGESIZE
10123 # define getpagesize() EXEC_PAGESIZE
10124 # else /* no EXEC_PAGESIZE */
10126 # define getpagesize() NBPG * CLSIZE
10129 # endif /* no CLSIZE */
10130 # else /* no NBPG */
10132 # define getpagesize() NBPC
10133 # else /* no NBPC */
10135 # define getpagesize() PAGESIZE
10136 # endif /* PAGESIZE */
10137 # endif /* no NBPC */
10138 # endif /* no NBPG */
10139 # endif /* no EXEC_PAGESIZE */
10140 # else /* no HAVE_SYS_PARAM_H */
10141 # define getpagesize() 8192 /* punt totally */
10142 # endif /* no HAVE_SYS_PARAM_H */
10143 # endif /* no _SC_PAGESIZE */
10145 #endif /* no HAVE_GETPAGESIZE */
10150 char *data, *data2, *data3;
10151 const char *cdata2;
10155 pagesize = getpagesize ();
10157 /* First, make a file with some known garbage in it. */
10158 data = (char *) malloc (pagesize);
10161 for (i = 0; i < pagesize; ++i)
10162 *(data + i) = rand ();
10164 fd = creat ("conftest.mmap", 0600);
10167 if (write (fd, data, pagesize) != pagesize)
10171 /* Next, check that the tail of a page is zero-filled. File must have
10172 non-zero length, otherwise we risk SIGBUS for entire page. */
10173 fd2 = open ("conftest.txt", O_RDWR | O_CREAT | O_TRUNC, 0600);
10177 if (write (fd2, cdata2, 1) != 1)
10179 data2 = (char *) mmap (0, pagesize, PROT_READ | PROT_WRITE, MAP_SHARED, fd2, 0L);
10180 if (data2 == MAP_FAILED)
10182 for (i = 0; i < pagesize; ++i)
10186 if (munmap (data2, pagesize))
10189 /* Next, try to mmap the file at a fixed address which already has
10190 something else allocated at it. If we can, also make sure that
10191 we see the same garbage. */
10192 fd = open ("conftest.mmap", O_RDWR);
10195 if (data2 != mmap (data2, pagesize, PROT_READ | PROT_WRITE,
10196 MAP_PRIVATE | MAP_FIXED, fd, 0L))
10198 for (i = 0; i < pagesize; ++i)
10199 if (*(data + i) != *(data2 + i))
10202 /* Finally, make sure that changes to the mapped area do not
10203 percolate back to the file as seen by read(). (This is a bug on
10204 some variants of i386 svr4.0.) */
10205 for (i = 0; i < pagesize; ++i)
10206 *(data2 + i) = *(data2 + i) + 1;
10207 data3 = (char *) malloc (pagesize);
10210 if (read (fd, data3, pagesize) != pagesize)
10212 for (i = 0; i < pagesize; ++i)
10213 if (*(data + i) != *(data3 + i))
10219 if ac_fn_c_try_run
"$LINENO"; then :
10220 ac_cv_func_mmap_fixed_mapped
=yes
10222 ac_cv_func_mmap_fixed_mapped
=no
10224 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
10225 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
10229 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_mmap_fixed_mapped" >&5
10230 $as_echo "$ac_cv_func_mmap_fixed_mapped" >&6; }
10231 if test $ac_cv_func_mmap_fixed_mapped = yes; then
10233 $as_echo "#define HAVE_MMAP 1" >>confdefs.h
10236 rm -f conftest.mmap conftest.txt
10238 if test $use_mmap_for_buffers = yes; then
10240 $as_echo "#define USE_MMAP_FOR_BUFFERS 1" >>confdefs.h
10245 LIBS
="$LIBS_SYSTEM $LIBS"
10247 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dnet_ntoa in -ldnet" >&5
10248 $as_echo_n "checking for dnet_ntoa in -ldnet... " >&6; }
10249 if test "${ac_cv_lib_dnet_dnet_ntoa+set}" = set; then :
10250 $as_echo_n "(cached) " >&6
10252 ac_check_lib_save_LIBS
=$LIBS
10253 LIBS
="-ldnet $LIBS"
10254 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
10255 /* end confdefs.h. */
10257 /* Override any GCC internal prototype to avoid an error.
10258 Use char because int might match the return type of a GCC
10259 builtin and then its argument prototype would still apply. */
10267 return dnet_ntoa ();
10272 if ac_fn_c_try_link
"$LINENO"; then :
10273 ac_cv_lib_dnet_dnet_ntoa
=yes
10275 ac_cv_lib_dnet_dnet_ntoa
=no
10277 rm -f core conftest.err conftest.
$ac_objext \
10278 conftest
$ac_exeext conftest.
$ac_ext
10279 LIBS
=$ac_check_lib_save_LIBS
10281 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dnet_dnet_ntoa" >&5
10282 $as_echo "$ac_cv_lib_dnet_dnet_ntoa" >&6; }
10283 if test "x$ac_cv_lib_dnet_dnet_ntoa" = x
""yes; then :
10284 cat >>confdefs.h
<<_ACEOF
10285 #define HAVE_LIBDNET 1
10288 LIBS
="-ldnet $LIBS"
10293 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for main in -lXbsd" >&5
10294 $as_echo_n "checking for main in -lXbsd... " >&6; }
10295 if test "${ac_cv_lib_Xbsd_main+set}" = set; then :
10296 $as_echo_n "(cached) " >&6
10298 ac_check_lib_save_LIBS
=$LIBS
10299 LIBS
="-lXbsd $LIBS"
10300 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
10301 /* end confdefs.h. */
10312 if ac_fn_c_try_link
"$LINENO"; then :
10313 ac_cv_lib_Xbsd_main
=yes
10315 ac_cv_lib_Xbsd_main
=no
10317 rm -f core conftest.err conftest.
$ac_objext \
10318 conftest
$ac_exeext conftest.
$ac_ext
10319 LIBS
=$ac_check_lib_save_LIBS
10321 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_Xbsd_main" >&5
10322 $as_echo "$ac_cv_lib_Xbsd_main" >&6; }
10323 if test "x$ac_cv_lib_Xbsd_main" = x
""yes; then :
10324 LD_SWITCH_X_SITE
="$LD_SWITCH_X_SITE -lXbsd"
10329 for ac_header
in pthread.h
10331 ac_fn_c_check_header_mongrel
"$LINENO" "pthread.h" "ac_cv_header_pthread_h" "$ac_includes_default"
10332 if test "x$ac_cv_header_pthread_h" = x
""yes; then :
10333 cat >>confdefs.h
<<_ACEOF
10334 #define HAVE_PTHREAD_H 1
10341 if test "$ac_cv_header_pthread_h"; then
10342 if test "$GMALLOC_OBJ" = gmalloc.o
; then
10343 emacs_pthread_function
=pthread_atfork
10345 emacs_pthread_function
=pthread_self
10347 as_ac_Lib
=`$as_echo "ac_cv_lib_pthread_$emacs_pthread_function" | $as_tr_sh`
10348 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $emacs_pthread_function in -lpthread" >&5
10349 $as_echo_n "checking for $emacs_pthread_function in -lpthread... " >&6; }
10350 if { as_var
=$as_ac_Lib; eval "test \"\${$as_var+set}\" = set"; }; then :
10351 $as_echo_n "(cached) " >&6
10353 ac_check_lib_save_LIBS
=$LIBS
10354 LIBS
="-lpthread $LIBS"
10355 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
10356 /* end confdefs.h. */
10358 /* Override any GCC internal prototype to avoid an error.
10359 Use char because int might match the return type of a GCC
10360 builtin and then its argument prototype would still apply. */
10364 char $emacs_pthread_function ();
10368 return $emacs_pthread_function ();
10373 if ac_fn_c_try_link
"$LINENO"; then :
10374 eval "$as_ac_Lib=yes"
10376 eval "$as_ac_Lib=no"
10378 rm -f core conftest.err conftest.
$ac_objext \
10379 conftest
$ac_exeext conftest.
$ac_ext
10380 LIBS
=$ac_check_lib_save_LIBS
10382 eval ac_res
=\$
$as_ac_Lib
10383 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
10384 $as_echo "$ac_res" >&6; }
10385 eval as_val
=\$
$as_ac_Lib
10386 if test "x$as_val" = x
""yes; then :
10391 if test "$HAVE_PTHREAD" = yes; then
10392 case "${canonical}" in
10394 *) LIB_PTHREAD
="-lpthread"
10395 LIBS
="$LIB_PTHREAD $LIBS" ;;
10398 $as_echo "#define HAVE_PTHREAD 1" >>confdefs.h
10403 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for cma_open in -lpthreads" >&5
10404 $as_echo_n "checking for cma_open in -lpthreads... " >&6; }
10405 if test "${ac_cv_lib_pthreads_cma_open+set}" = set; then :
10406 $as_echo_n "(cached) " >&6
10408 ac_check_lib_save_LIBS
=$LIBS
10409 LIBS
="-lpthreads $LIBS"
10410 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
10411 /* end confdefs.h. */
10413 /* Override any GCC internal prototype to avoid an error.
10414 Use char because int might match the return type of a GCC
10415 builtin and then its argument prototype would still apply. */
10423 return cma_open ();
10428 if ac_fn_c_try_link
"$LINENO"; then :
10429 ac_cv_lib_pthreads_cma_open
=yes
10431 ac_cv_lib_pthreads_cma_open
=no
10433 rm -f core conftest.err conftest.
$ac_objext \
10434 conftest
$ac_exeext conftest.
$ac_ext
10435 LIBS
=$ac_check_lib_save_LIBS
10437 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_pthreads_cma_open" >&5
10438 $as_echo "$ac_cv_lib_pthreads_cma_open" >&6; }
10439 if test "x$ac_cv_lib_pthreads_cma_open" = x
""yes; then :
10440 cat >>confdefs.h
<<_ACEOF
10441 #define HAVE_LIBPTHREADS 1
10444 LIBS
="-lpthreads $LIBS"
10449 ## Note: when using cpp in s/aix4.2.h, this definition depended on
10450 ## HAVE_LIBPTHREADS. That was not defined earlier in configure when
10451 ## the system file was sourced. Hence the value of LIBS_SYSTEM
10452 ## added to LIBS in configure would never contain the pthreads part,
10453 ## but the value used in Makefiles might. FIXME?
10455 ## -lpthreads seems to be necessary for Xlib in X11R6, and should
10456 ## be harmless on older versions of X where it happens to exist.
10457 test "$opsys" = "aix4-2" && \
10458 test $ac_cv_lib_pthreads_cma_open = yes && \
10459 LIBS_SYSTEM
="$LIBS_SYSTEM -lpthreads"
10464 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -bbigtoc option" >&5
10465 $as_echo_n "checking for -bbigtoc option... " >&6; }
10466 if test "${gdb_cv_bigtoc+set}" = set; then :
10467 $as_echo_n "(cached) " >&6
10471 yes) gdb_cv_bigtoc
=-Wl,-bbigtoc ;;
10472 *) gdb_cv_bigtoc
=-bbigtoc ;;
10475 LDFLAGS
=$LDFLAGS\
$gdb_cv_bigtoc
10476 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
10477 /* end confdefs.h. */
10487 if ac_fn_c_try_link
"$LINENO"; then :
10492 rm -f core conftest.err conftest.
$ac_objext \
10493 conftest
$ac_exeext conftest.
$ac_ext
10496 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gdb_cv_bigtoc" >&5
10497 $as_echo "$gdb_cv_bigtoc" >&6; }
10501 # Change CFLAGS and CPPFLAGS temporarily so that C_SWITCH_X_SITE gets
10502 # used for the tests that follow. We set them back to REAL_CFLAGS and
10503 # REAL_CPPFLAGS later on.
10505 REAL_CFLAGS
="$CFLAGS"
10506 REAL_CPPFLAGS
="$CPPFLAGS"
10508 if test "${HAVE_X11}" = "yes"; then
10509 DEFS
="$C_SWITCH_X_SITE $DEFS"
10510 LDFLAGS
="$LDFLAGS $LD_SWITCH_X_SITE"
10512 CFLAGS
="$C_SWITCH_X_SITE $CFLAGS"
10513 CPPFLAGS
="$C_SWITCH_X_SITE $CPPFLAGS"
10515 # On Solaris, arrange for LD_RUN_PATH to point to the X libraries for tests.
10516 # This is handled by LD_SWITCH_X_SITE_AUX during the real build,
10517 # but it's more convenient here to set LD_RUN_PATH
10518 # since this also works on hosts that don't understand LD_SWITCH_X_SITE_AUX.
10519 if test "${x_libraries}" != NONE
&& test -n "${x_libraries}"; then
10520 LD_RUN_PATH
=$x_libraries${LD_RUN_PATH+:}$LD_RUN_PATH
10524 if test "${opsys}" = "gnu-linux"; then
10525 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether X on GNU/Linux needs -b to link" >&5
10526 $as_echo_n "checking whether X on GNU/Linux needs -b to link... " >&6; }
10527 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
10528 /* end confdefs.h. */
10533 XOpenDisplay ("foo");
10538 if ac_fn_c_try_link
"$LINENO"; then :
10539 xgnu_linux_first_failure
=no
10541 xgnu_linux_first_failure
=yes
10543 rm -f core conftest.err conftest.
$ac_objext \
10544 conftest
$ac_exeext conftest.
$ac_ext
10545 if test "${xgnu_linux_first_failure}" = "yes"; then
10546 OLD_LD_SWITCH_X_SITE
="$LD_SWITCH_X_SITE"
10547 OLD_C_SWITCH_X_SITE
="$C_SWITCH_X_SITE"
10548 OLD_CPPFLAGS
="$CPPFLAGS"
10550 LD_SWITCH_X_SITE
="$LD_SWITCH_X_SITE -b i486-linuxaout"
10551 C_SWITCH_X_SITE
="$C_SWITCH_X_SITE -b i486-linuxaout"
10552 CPPFLAGS
="$CPPFLAGS -b i486-linuxaout"
10553 LIBS
="$LIBS -b i486-linuxaout"
10554 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
10555 /* end confdefs.h. */
10560 XOpenDisplay ("foo");
10565 if ac_fn_c_try_link
"$LINENO"; then :
10566 xgnu_linux_second_failure
=no
10568 xgnu_linux_second_failure
=yes
10570 rm -f core conftest.err conftest.
$ac_objext \
10571 conftest
$ac_exeext conftest.
$ac_ext
10572 if test "${xgnu_linux_second_failure}" = "yes"; then
10573 # If we get the same failure with -b, there is no use adding -b.
10574 # So take it out. This plays safe.
10575 LD_SWITCH_X_SITE
="$OLD_LD_SWITCH_X_SITE"
10576 C_SWITCH_X_SITE
="$OLD_C_SWITCH_X_SITE"
10577 CPPFLAGS
="$OLD_CPPFLAGS"
10579 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10580 $as_echo "no" >&6; }
10582 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
10583 $as_echo "yes" >&6; }
10586 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10587 $as_echo "no" >&6; }
10591 # Reportedly, some broken Solaris systems have XKBlib.h but are missing
10592 # header files included from there.
10593 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Xkb" >&5
10594 $as_echo_n "checking for Xkb... " >&6; }
10595 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
10596 /* end confdefs.h. */
10597 #include <X11/Xlib.h>
10598 #include <X11/XKBlib.h>
10602 XkbDescPtr kb = XkbGetKeyboard (0, XkbAllComponentsMask, XkbUseCoreKbd);
10607 if ac_fn_c_try_link
"$LINENO"; then :
10612 rm -f core conftest.err conftest.
$ac_objext \
10613 conftest
$ac_exeext conftest.
$ac_ext
10614 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $emacs_xkb" >&5
10615 $as_echo "$emacs_xkb" >&6; }
10616 if test $emacs_xkb = yes; then
10618 $as_echo "#define HAVE_XKBGETKEYBOARD 1" >>confdefs.h
10622 for ac_func
in XrmSetDatabase XScreenResourceString \
10623 XScreenNumberOfScreen XSetWMProtocols
10625 as_ac_var
=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
10626 ac_fn_c_check_func
"$LINENO" "$ac_func" "$as_ac_var"
10627 eval as_val
=\$
$as_ac_var
10628 if test "x$as_val" = x
""yes; then :
10629 cat >>confdefs.h
<<_ACEOF
10630 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
10638 if test "${window_system}" = "x11"; then
10639 { $as_echo "$as_me:${as_lineno-$LINENO}: checking X11 version 6" >&5
10640 $as_echo_n "checking X11 version 6... " >&6; }
10641 if test "${emacs_cv_x11_version_6+set}" = set; then :
10642 $as_echo_n "(cached) " >&6
10644 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
10645 /* end confdefs.h. */
10646 #include <X11/Xlib.h>
10650 #if XlibSpecificationRelease < 6
10658 if ac_fn_c_try_link
"$LINENO"; then :
10659 emacs_cv_x11_version_6
=yes
10661 emacs_cv_x11_version_6
=no
10663 rm -f core conftest.err conftest.
$ac_objext \
10664 conftest
$ac_exeext conftest.
$ac_ext
10667 if test $emacs_cv_x11_version_6 = yes; then
10668 { $as_echo "$as_me:${as_lineno-$LINENO}: result: 6 or newer" >&5
10669 $as_echo "6 or newer" >&6; }
10671 $as_echo "#define HAVE_X11R6 1" >>confdefs.h
10674 $as_echo "#define HAVE_X_I18N 1" >>confdefs.h
10676 ## inoue@ainet.or.jp says Solaris has a bug related to X11R6-style
10681 $as_echo "#define HAVE_X11R6_XIM 1" >>confdefs.h
10686 { $as_echo "$as_me:${as_lineno-$LINENO}: result: before 6" >&5
10687 $as_echo "before 6" >&6; }
10692 ### Use -lrsvg-2 if available, unless `--with-rsvg=no' is specified.
10694 if test "${HAVE_X11}" = "yes" ||
test "${HAVE_NS}" = "yes"; then
10695 if test "${with_rsvg}" != "no"; then
10696 RSVG_REQUIRED
=2.11.0
10697 RSVG_MODULE
="librsvg-2.0 >= $RSVG_REQUIRED"
10702 # Extract the first word of "pkg-config", so it can be a program name with args.
10703 set dummy pkg-config
; ac_word
=$2
10704 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10705 $as_echo_n "checking for $ac_word... " >&6; }
10706 if test "${ac_cv_path_PKG_CONFIG+set}" = set; then :
10707 $as_echo_n "(cached) " >&6
10709 case $PKG_CONFIG in
10711 ac_cv_path_PKG_CONFIG
="$PKG_CONFIG" # Let the user override the test with a path.
10714 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
10715 for as_dir
in $PATH
10718 test -z "$as_dir" && as_dir
=.
10719 for ac_exec_ext
in '' $ac_executable_extensions; do
10720 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10721 ac_cv_path_PKG_CONFIG
="$as_dir/$ac_word$ac_exec_ext"
10722 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10729 test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG
="no"
10733 PKG_CONFIG
=$ac_cv_path_PKG_CONFIG
10734 if test -n "$PKG_CONFIG"; then
10735 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5
10736 $as_echo "$PKG_CONFIG" >&6; }
10738 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10739 $as_echo "no" >&6; }
10744 if test "$PKG_CONFIG" = "no" ; then
10747 PKG_CONFIG_MIN_VERSION
=0.9.0
10748 if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
10749 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $RSVG_MODULE" >&5
10750 $as_echo_n "checking for $RSVG_MODULE... " >&6; }
10752 if $PKG_CONFIG --exists "$RSVG_MODULE" 2>&5; then
10753 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
10754 $as_echo "yes" >&6; }
10757 { $as_echo "$as_me:${as_lineno-$LINENO}: checking RSVG_CFLAGS" >&5
10758 $as_echo_n "checking RSVG_CFLAGS... " >&6; }
10759 RSVG_CFLAGS
=`$PKG_CONFIG --cflags "$RSVG_MODULE"|sed -e 's,///*,/,g'`
10760 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RSVG_CFLAGS" >&5
10761 $as_echo "$RSVG_CFLAGS" >&6; }
10763 { $as_echo "$as_me:${as_lineno-$LINENO}: checking RSVG_LIBS" >&5
10764 $as_echo_n "checking RSVG_LIBS... " >&6; }
10765 RSVG_LIBS
=`$PKG_CONFIG --libs "$RSVG_MODULE"|sed -e 's,///*,/,g'`
10766 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RSVG_LIBS" >&5
10767 $as_echo "$RSVG_LIBS" >&6; }
10769 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10770 $as_echo "no" >&6; }
10773 ## If we have a custom action on failure, don't print errors, but
10774 ## do set a variable so people can do so.
10775 RSVG_PKG_ERRORS
=`$PKG_CONFIG --errors-to-stdout --print-errors "$RSVG_MODULE"`
10782 echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
10783 echo "*** See http://www.freedesktop.org/software/pkgconfig"
10787 if test $succeeded = yes; then
10796 if test $HAVE_RSVG = yes; then
10798 $as_echo "#define HAVE_RSVG 1" >>confdefs.h
10800 CFLAGS
="$CFLAGS $RSVG_CFLAGS"
10801 LIBS
="$RSVG_LIBS $LIBS"
10806 HAVE_IMAGEMAGICK
=no
10807 if test "${HAVE_X11}" = "yes"; then
10808 if test "${with_imagemagick}" != "no"; then
10809 ## 6.2.8 is the earliest version known to work, but earlier versions
10810 ## might work - let us know if you find one.
10811 ## 6.0.7 does not work. See bug#7955.
10812 IMAGEMAGICK_MODULE
="Wand >= 6.2.8"
10816 # Extract the first word of "pkg-config", so it can be a program name with args.
10817 set dummy pkg-config
; ac_word
=$2
10818 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10819 $as_echo_n "checking for $ac_word... " >&6; }
10820 if test "${ac_cv_path_PKG_CONFIG+set}" = set; then :
10821 $as_echo_n "(cached) " >&6
10823 case $PKG_CONFIG in
10825 ac_cv_path_PKG_CONFIG
="$PKG_CONFIG" # Let the user override the test with a path.
10828 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
10829 for as_dir
in $PATH
10832 test -z "$as_dir" && as_dir
=.
10833 for ac_exec_ext
in '' $ac_executable_extensions; do
10834 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10835 ac_cv_path_PKG_CONFIG
="$as_dir/$ac_word$ac_exec_ext"
10836 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10843 test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG
="no"
10847 PKG_CONFIG
=$ac_cv_path_PKG_CONFIG
10848 if test -n "$PKG_CONFIG"; then
10849 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5
10850 $as_echo "$PKG_CONFIG" >&6; }
10852 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10853 $as_echo "no" >&6; }
10858 if test "$PKG_CONFIG" = "no" ; then
10861 PKG_CONFIG_MIN_VERSION
=0.9.0
10862 if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
10863 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $IMAGEMAGICK_MODULE" >&5
10864 $as_echo_n "checking for $IMAGEMAGICK_MODULE... " >&6; }
10866 if $PKG_CONFIG --exists "$IMAGEMAGICK_MODULE" 2>&5; then
10867 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
10868 $as_echo "yes" >&6; }
10871 { $as_echo "$as_me:${as_lineno-$LINENO}: checking IMAGEMAGICK_CFLAGS" >&5
10872 $as_echo_n "checking IMAGEMAGICK_CFLAGS... " >&6; }
10873 IMAGEMAGICK_CFLAGS
=`$PKG_CONFIG --cflags "$IMAGEMAGICK_MODULE"|sed -e 's,///*,/,g'`
10874 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $IMAGEMAGICK_CFLAGS" >&5
10875 $as_echo "$IMAGEMAGICK_CFLAGS" >&6; }
10877 { $as_echo "$as_me:${as_lineno-$LINENO}: checking IMAGEMAGICK_LIBS" >&5
10878 $as_echo_n "checking IMAGEMAGICK_LIBS... " >&6; }
10879 IMAGEMAGICK_LIBS
=`$PKG_CONFIG --libs "$IMAGEMAGICK_MODULE"|sed -e 's,///*,/,g'`
10880 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $IMAGEMAGICK_LIBS" >&5
10881 $as_echo "$IMAGEMAGICK_LIBS" >&6; }
10883 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10884 $as_echo "no" >&6; }
10885 IMAGEMAGICK_CFLAGS
=""
10886 IMAGEMAGICK_LIBS
=""
10887 ## If we have a custom action on failure, don't print errors, but
10888 ## do set a variable so people can do so.
10889 IMAGEMAGICK_PKG_ERRORS
=`$PKG_CONFIG --errors-to-stdout --print-errors "$IMAGEMAGICK_MODULE"`
10896 echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
10897 echo "*** See http://www.freedesktop.org/software/pkgconfig"
10901 if test $succeeded = yes; then
10902 HAVE_IMAGEMAGICK
=yes
10910 if test $HAVE_IMAGEMAGICK = yes; then
10912 $as_echo "#define HAVE_IMAGEMAGICK 1" >>confdefs.h
10914 CFLAGS
="$CFLAGS $IMAGEMAGICK_CFLAGS"
10915 LIBS
="$IMAGEMAGICK_LIBS $LIBS"
10916 for ac_func
in MagickExportImagePixels
10918 ac_fn_c_check_func
"$LINENO" "MagickExportImagePixels" "ac_cv_func_MagickExportImagePixels"
10919 if test "x$ac_cv_func_MagickExportImagePixels" = x
""yes; then :
10920 cat >>confdefs.h
<<_ACEOF
10921 #define HAVE_MAGICKEXPORTIMAGEPIXELS 1
10934 if test "${with_gtk3}" = "yes"; then
10937 GTK_MODULES
="gtk+-3.0 >= $GTK_REQUIRED glib-2.0 >= $GLIB_REQUIRED"
10942 # Extract the first word of "pkg-config", so it can be a program name with args.
10943 set dummy pkg-config
; ac_word
=$2
10944 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10945 $as_echo_n "checking for $ac_word... " >&6; }
10946 if test "${ac_cv_path_PKG_CONFIG+set}" = set; then :
10947 $as_echo_n "(cached) " >&6
10949 case $PKG_CONFIG in
10951 ac_cv_path_PKG_CONFIG
="$PKG_CONFIG" # Let the user override the test with a path.
10954 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
10955 for as_dir
in $PATH
10958 test -z "$as_dir" && as_dir
=.
10959 for ac_exec_ext
in '' $ac_executable_extensions; do
10960 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10961 ac_cv_path_PKG_CONFIG
="$as_dir/$ac_word$ac_exec_ext"
10962 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10969 test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG
="no"
10973 PKG_CONFIG
=$ac_cv_path_PKG_CONFIG
10974 if test -n "$PKG_CONFIG"; then
10975 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5
10976 $as_echo "$PKG_CONFIG" >&6; }
10978 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10979 $as_echo "no" >&6; }
10984 if test "$PKG_CONFIG" = "no" ; then
10987 PKG_CONFIG_MIN_VERSION
=0.9.0
10988 if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
10989 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $GTK_MODULES" >&5
10990 $as_echo_n "checking for $GTK_MODULES... " >&6; }
10992 if $PKG_CONFIG --exists "$GTK_MODULES" 2>&5; then
10993 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
10994 $as_echo "yes" >&6; }
10997 { $as_echo "$as_me:${as_lineno-$LINENO}: checking GTK_CFLAGS" >&5
10998 $as_echo_n "checking GTK_CFLAGS... " >&6; }
10999 GTK_CFLAGS
=`$PKG_CONFIG --cflags "$GTK_MODULES"|sed -e 's,///*,/,g'`
11000 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GTK_CFLAGS" >&5
11001 $as_echo "$GTK_CFLAGS" >&6; }
11003 { $as_echo "$as_me:${as_lineno-$LINENO}: checking GTK_LIBS" >&5
11004 $as_echo_n "checking GTK_LIBS... " >&6; }
11005 GTK_LIBS
=`$PKG_CONFIG --libs "$GTK_MODULES"|sed -e 's,///*,/,g'`
11006 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GTK_LIBS" >&5
11007 $as_echo "$GTK_LIBS" >&6; }
11009 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11010 $as_echo "no" >&6; }
11013 ## If we have a custom action on failure, don't print errors, but
11014 ## do set a variable so people can do so.
11015 GTK_PKG_ERRORS
=`$PKG_CONFIG --errors-to-stdout --print-errors "$GTK_MODULES"`
11022 echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
11023 echo "*** See http://www.freedesktop.org/software/pkgconfig"
11027 if test $succeeded = yes; then
11033 if test "$pkg_check_gtk" = "no" && test "$USE_X_TOOLKIT" != "maybe"; then
11034 as_fn_error
"$GTK_PKG_ERRORS" "$LINENO" 5
11037 $as_echo "#define HAVE_GTK3 1" >>confdefs.h
11039 GTK_OBJ
=emacsgtkfixed.o
11042 if test "$pkg_check_gtk" != "yes"; then
11044 if test "${with_gtk}" = "yes" ||
test "$USE_X_TOOLKIT" = "maybe"; then
11047 GTK_MODULES
="gtk+-2.0 >= $GTK_REQUIRED glib-2.0 >= $GLIB_REQUIRED"
11052 # Extract the first word of "pkg-config", so it can be a program name with args.
11053 set dummy pkg-config
; ac_word
=$2
11054 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11055 $as_echo_n "checking for $ac_word... " >&6; }
11056 if test "${ac_cv_path_PKG_CONFIG+set}" = set; then :
11057 $as_echo_n "(cached) " >&6
11059 case $PKG_CONFIG in
11061 ac_cv_path_PKG_CONFIG
="$PKG_CONFIG" # Let the user override the test with a path.
11064 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
11065 for as_dir
in $PATH
11068 test -z "$as_dir" && as_dir
=.
11069 for ac_exec_ext
in '' $ac_executable_extensions; do
11070 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11071 ac_cv_path_PKG_CONFIG
="$as_dir/$ac_word$ac_exec_ext"
11072 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11079 test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG
="no"
11083 PKG_CONFIG
=$ac_cv_path_PKG_CONFIG
11084 if test -n "$PKG_CONFIG"; then
11085 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5
11086 $as_echo "$PKG_CONFIG" >&6; }
11088 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11089 $as_echo "no" >&6; }
11094 if test "$PKG_CONFIG" = "no" ; then
11097 PKG_CONFIG_MIN_VERSION
=0.9.0
11098 if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
11099 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $GTK_MODULES" >&5
11100 $as_echo_n "checking for $GTK_MODULES... " >&6; }
11102 if $PKG_CONFIG --exists "$GTK_MODULES" 2>&5; then
11103 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11104 $as_echo "yes" >&6; }
11107 { $as_echo "$as_me:${as_lineno-$LINENO}: checking GTK_CFLAGS" >&5
11108 $as_echo_n "checking GTK_CFLAGS... " >&6; }
11109 GTK_CFLAGS
=`$PKG_CONFIG --cflags "$GTK_MODULES"|sed -e 's,///*,/,g'`
11110 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GTK_CFLAGS" >&5
11111 $as_echo "$GTK_CFLAGS" >&6; }
11113 { $as_echo "$as_me:${as_lineno-$LINENO}: checking GTK_LIBS" >&5
11114 $as_echo_n "checking GTK_LIBS... " >&6; }
11115 GTK_LIBS
=`$PKG_CONFIG --libs "$GTK_MODULES"|sed -e 's,///*,/,g'`
11116 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GTK_LIBS" >&5
11117 $as_echo "$GTK_LIBS" >&6; }
11119 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11120 $as_echo "no" >&6; }
11123 ## If we have a custom action on failure, don't print errors, but
11124 ## do set a variable so people can do so.
11125 GTK_PKG_ERRORS
=`$PKG_CONFIG --errors-to-stdout --print-errors "$GTK_MODULES"`
11132 echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
11133 echo "*** See http://www.freedesktop.org/software/pkgconfig"
11137 if test $succeeded = yes; then
11143 if test "$pkg_check_gtk" = "no" && test "$USE_X_TOOLKIT" != "maybe"; then
11144 as_fn_error
"$GTK_PKG_ERRORS" "$LINENO" 5
11149 if test x
"$pkg_check_gtk" = xyes
; then
11153 C_SWITCH_X_SITE
="$C_SWITCH_X_SITE $GTK_CFLAGS"
11154 CFLAGS
="$CFLAGS $GTK_CFLAGS"
11155 LIBS
="$GTK_LIBS $LIBS"
11157 for ac_func
in gtk_main
11159 ac_fn_c_check_func
"$LINENO" "gtk_main" "ac_cv_func_gtk_main"
11160 if test "x$ac_cv_func_gtk_main" = x
""yes; then :
11161 cat >>confdefs.h
<<_ACEOF
11162 #define HAVE_GTK_MAIN 1
11168 if test "${GTK_COMPILES}" != "yes"; then
11169 if test "$USE_X_TOOLKIT" != "maybe"; then
11170 as_fn_error
"Gtk+ wanted, but it does not compile, see config.log. Maybe some x11-devel files missing?" "$LINENO" 5;
11175 $as_echo "#define USE_GTK 1" >>confdefs.h
11177 GTK_OBJ
="gtkutil.o $GTK_OBJ"
11179 if $PKG_CONFIG --atleast-version=2.10 gtk
+-2.0
; then
11182 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Your version of Gtk+ will have problems with
11183 closing open displays. This is no problem if you just use
11184 one display, but if you use more than one and close one of them
11185 Emacs may crash." >&5
11186 $as_echo "$as_me: WARNING: Your version of Gtk+ will have problems with
11187 closing open displays. This is no problem if you just use
11188 one display, but if you use more than one and close one of them
11189 Emacs may crash." >&2;}
11198 if test "${HAVE_GTK}" = "yes"; then
11200 if test "$with_toolkit_scroll_bars" != no
; then
11201 with_toolkit_scroll_bars
=yes
11204 HAVE_GTK_FILE_SELECTION
=no
11205 ac_fn_c_check_decl
"$LINENO" "GTK_TYPE_FILE_SELECTION" "ac_cv_have_decl_GTK_TYPE_FILE_SELECTION" "$ac_includes_default
11206 #include <gtk/gtk.h>
11208 if test "x$ac_cv_have_decl_GTK_TYPE_FILE_SELECTION" = x
""yes; then :
11209 HAVE_GTK_FILE_SELECTION
=yes
11211 HAVE_GTK_FILE_SELECTION
=no
11214 if test "$HAVE_GTK_FILE_SELECTION" = yes; then
11215 for ac_func
in gtk_file_selection_new
11217 ac_fn_c_check_func
"$LINENO" "gtk_file_selection_new" "ac_cv_func_gtk_file_selection_new"
11218 if test "x$ac_cv_func_gtk_file_selection_new" = x
""yes; then :
11219 cat >>confdefs.h
<<_ACEOF
11220 #define HAVE_GTK_FILE_SELECTION_NEW 1
11229 for ac_func
in gtk_widget_get_window gtk_widget_set_has_window \
11230 gtk_dialog_get_action_area gtk_widget_get_sensitive \
11231 gtk_widget_get_mapped gtk_adjustment_get_page_size \
11232 gtk_orientable_set_orientation \
11233 gtk_window_set_has_resize_grip
11235 as_ac_var
=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
11236 ac_fn_c_check_func
"$LINENO" "$ac_func" "$as_ac_var"
11237 eval as_val
=\$
$as_ac_var
11238 if test "x$as_val" = x
""yes; then :
11239 cat >>confdefs.h
<<_ACEOF
11240 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
11250 if test "${with_dbus}" = "yes"; then
11254 # Extract the first word of "pkg-config", so it can be a program name with args.
11255 set dummy pkg-config
; ac_word
=$2
11256 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11257 $as_echo_n "checking for $ac_word... " >&6; }
11258 if test "${ac_cv_path_PKG_CONFIG+set}" = set; then :
11259 $as_echo_n "(cached) " >&6
11261 case $PKG_CONFIG in
11263 ac_cv_path_PKG_CONFIG
="$PKG_CONFIG" # Let the user override the test with a path.
11266 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
11267 for as_dir
in $PATH
11270 test -z "$as_dir" && as_dir
=.
11271 for ac_exec_ext
in '' $ac_executable_extensions; do
11272 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11273 ac_cv_path_PKG_CONFIG
="$as_dir/$ac_word$ac_exec_ext"
11274 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11281 test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG
="no"
11285 PKG_CONFIG
=$ac_cv_path_PKG_CONFIG
11286 if test -n "$PKG_CONFIG"; then
11287 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5
11288 $as_echo "$PKG_CONFIG" >&6; }
11290 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11291 $as_echo "no" >&6; }
11296 if test "$PKG_CONFIG" = "no" ; then
11299 PKG_CONFIG_MIN_VERSION
=0.9.0
11300 if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
11301 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dbus-1 >= 1.0" >&5
11302 $as_echo_n "checking for dbus-1 >= 1.0... " >&6; }
11304 if $PKG_CONFIG --exists "dbus-1 >= 1.0" 2>&5; then
11305 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11306 $as_echo "yes" >&6; }
11309 { $as_echo "$as_me:${as_lineno-$LINENO}: checking DBUS_CFLAGS" >&5
11310 $as_echo_n "checking DBUS_CFLAGS... " >&6; }
11311 DBUS_CFLAGS
=`$PKG_CONFIG --cflags "dbus-1 >= 1.0"|sed -e 's,///*,/,g'`
11312 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DBUS_CFLAGS" >&5
11313 $as_echo "$DBUS_CFLAGS" >&6; }
11315 { $as_echo "$as_me:${as_lineno-$LINENO}: checking DBUS_LIBS" >&5
11316 $as_echo_n "checking DBUS_LIBS... " >&6; }
11317 DBUS_LIBS
=`$PKG_CONFIG --libs "dbus-1 >= 1.0"|sed -e 's,///*,/,g'`
11318 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DBUS_LIBS" >&5
11319 $as_echo "$DBUS_LIBS" >&6; }
11321 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11322 $as_echo "no" >&6; }
11325 ## If we have a custom action on failure, don't print errors, but
11326 ## do set a variable so people can do so.
11327 DBUS_PKG_ERRORS
=`$PKG_CONFIG --errors-to-stdout --print-errors "dbus-1 >= 1.0"`
11334 echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
11335 echo "*** See http://www.freedesktop.org/software/pkgconfig"
11339 if test $succeeded = yes; then
11345 if test "$HAVE_DBUS" = yes; then
11346 LIBS
="$LIBS $DBUS_LIBS"
11348 $as_echo "#define HAVE_DBUS 1" >>confdefs.h
11350 for ac_func
in dbus_watch_get_unix_fd
11352 ac_fn_c_check_func
"$LINENO" "dbus_watch_get_unix_fd" "ac_cv_func_dbus_watch_get_unix_fd"
11353 if test "x$ac_cv_func_dbus_watch_get_unix_fd" = x
""yes; then :
11354 cat >>confdefs.h
<<_ACEOF
11355 #define HAVE_DBUS_WATCH_GET_UNIX_FD 1
11361 DBUS_OBJ
=dbusbind.o
11367 if test "${HAVE_X11}" = "yes" && test "${with_gsettings}" = "yes"; then
11371 # Extract the first word of "pkg-config", so it can be a program name with args.
11372 set dummy pkg-config
; ac_word
=$2
11373 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11374 $as_echo_n "checking for $ac_word... " >&6; }
11375 if test "${ac_cv_path_PKG_CONFIG+set}" = set; then :
11376 $as_echo_n "(cached) " >&6
11378 case $PKG_CONFIG in
11380 ac_cv_path_PKG_CONFIG
="$PKG_CONFIG" # Let the user override the test with a path.
11383 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
11384 for as_dir
in $PATH
11387 test -z "$as_dir" && as_dir
=.
11388 for ac_exec_ext
in '' $ac_executable_extensions; do
11389 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11390 ac_cv_path_PKG_CONFIG
="$as_dir/$ac_word$ac_exec_ext"
11391 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11398 test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG
="no"
11402 PKG_CONFIG
=$ac_cv_path_PKG_CONFIG
11403 if test -n "$PKG_CONFIG"; then
11404 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5
11405 $as_echo "$PKG_CONFIG" >&6; }
11407 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11408 $as_echo "no" >&6; }
11413 if test "$PKG_CONFIG" = "no" ; then
11416 PKG_CONFIG_MIN_VERSION
=0.9.0
11417 if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
11418 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gio-2.0 >= 2.26" >&5
11419 $as_echo_n "checking for gio-2.0 >= 2.26... " >&6; }
11421 if $PKG_CONFIG --exists "gio-2.0 >= 2.26" 2>&5; then
11422 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11423 $as_echo "yes" >&6; }
11426 { $as_echo "$as_me:${as_lineno-$LINENO}: checking GSETTINGS_CFLAGS" >&5
11427 $as_echo_n "checking GSETTINGS_CFLAGS... " >&6; }
11428 GSETTINGS_CFLAGS
=`$PKG_CONFIG --cflags "gio-2.0 >= 2.26"|sed -e 's,///*,/,g'`
11429 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GSETTINGS_CFLAGS" >&5
11430 $as_echo "$GSETTINGS_CFLAGS" >&6; }
11432 { $as_echo "$as_me:${as_lineno-$LINENO}: checking GSETTINGS_LIBS" >&5
11433 $as_echo_n "checking GSETTINGS_LIBS... " >&6; }
11434 GSETTINGS_LIBS
=`$PKG_CONFIG --libs "gio-2.0 >= 2.26"|sed -e 's,///*,/,g'`
11435 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GSETTINGS_LIBS" >&5
11436 $as_echo "$GSETTINGS_LIBS" >&6; }
11438 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11439 $as_echo "no" >&6; }
11440 GSETTINGS_CFLAGS
=""
11442 ## If we have a custom action on failure, don't print errors, but
11443 ## do set a variable so people can do so.
11444 GSETTINGS_PKG_ERRORS
=`$PKG_CONFIG --errors-to-stdout --print-errors "gio-2.0 >= 2.26"`
11451 echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
11452 echo "*** See http://www.freedesktop.org/software/pkgconfig"
11456 if test $succeeded = yes; then
11462 if test "$HAVE_GSETTINGS" = "yes"; then
11464 $as_echo "#define HAVE_GSETTINGS 1" >>confdefs.h
11466 SETTINGS_CFLAGS
="$GSETTINGS_CFLAGS"
11467 SETTINGS_LIBS
="$GSETTINGS_LIBS"
11472 if test "${HAVE_X11}" = "yes" && test "${with_gconf}" = "yes"; then
11476 # Extract the first word of "pkg-config", so it can be a program name with args.
11477 set dummy pkg-config
; ac_word
=$2
11478 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11479 $as_echo_n "checking for $ac_word... " >&6; }
11480 if test "${ac_cv_path_PKG_CONFIG+set}" = set; then :
11481 $as_echo_n "(cached) " >&6
11483 case $PKG_CONFIG in
11485 ac_cv_path_PKG_CONFIG
="$PKG_CONFIG" # Let the user override the test with a path.
11488 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
11489 for as_dir
in $PATH
11492 test -z "$as_dir" && as_dir
=.
11493 for ac_exec_ext
in '' $ac_executable_extensions; do
11494 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11495 ac_cv_path_PKG_CONFIG
="$as_dir/$ac_word$ac_exec_ext"
11496 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11503 test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG
="no"
11507 PKG_CONFIG
=$ac_cv_path_PKG_CONFIG
11508 if test -n "$PKG_CONFIG"; then
11509 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5
11510 $as_echo "$PKG_CONFIG" >&6; }
11512 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11513 $as_echo "no" >&6; }
11518 if test "$PKG_CONFIG" = "no" ; then
11521 PKG_CONFIG_MIN_VERSION
=0.9.0
11522 if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
11523 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gconf-2.0 >= 2.13" >&5
11524 $as_echo_n "checking for gconf-2.0 >= 2.13... " >&6; }
11526 if $PKG_CONFIG --exists "gconf-2.0 >= 2.13" 2>&5; then
11527 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11528 $as_echo "yes" >&6; }
11531 { $as_echo "$as_me:${as_lineno-$LINENO}: checking GCONF_CFLAGS" >&5
11532 $as_echo_n "checking GCONF_CFLAGS... " >&6; }
11533 GCONF_CFLAGS
=`$PKG_CONFIG --cflags "gconf-2.0 >= 2.13"|sed -e 's,///*,/,g'`
11534 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GCONF_CFLAGS" >&5
11535 $as_echo "$GCONF_CFLAGS" >&6; }
11537 { $as_echo "$as_me:${as_lineno-$LINENO}: checking GCONF_LIBS" >&5
11538 $as_echo_n "checking GCONF_LIBS... " >&6; }
11539 GCONF_LIBS
=`$PKG_CONFIG --libs "gconf-2.0 >= 2.13"|sed -e 's,///*,/,g'`
11540 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GCONF_LIBS" >&5
11541 $as_echo "$GCONF_LIBS" >&6; }
11543 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11544 $as_echo "no" >&6; }
11547 ## If we have a custom action on failure, don't print errors, but
11548 ## do set a variable so people can do so.
11549 GCONF_PKG_ERRORS
=`$PKG_CONFIG --errors-to-stdout --print-errors "gconf-2.0 >= 2.13"`
11556 echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
11557 echo "*** See http://www.freedesktop.org/software/pkgconfig"
11561 if test $succeeded = yes; then
11567 if test "$HAVE_GCONF" = yes; then
11569 $as_echo "#define HAVE_GCONF 1" >>confdefs.h
11571 SETTINGS_CFLAGS
="$SETTINGS_CFLAGS $GCONF_CFLAGS"
11572 SETTINGS_LIBS
="$SETTINGS_LIBS $GCONF_LIBS"
11576 if test "$HAVE_GSETTINGS" = "yes" ||
test "$HAVE_GCONF" = "yes"; then
11577 SAVE_CFLAGS
="$CFLAGS"
11579 CFLAGS
="$SETTINGS_CFLAGS $CFLAGS"
11580 LIBS
="$SETTINGS_LIBS $LIBS"
11581 for ac_func
in g_type_init
11583 ac_fn_c_check_func
"$LINENO" "g_type_init" "ac_cv_func_g_type_init"
11584 if test "x$ac_cv_func_g_type_init" = x
""yes; then :
11585 cat >>confdefs.h
<<_ACEOF
11586 #define HAVE_G_TYPE_INIT 1
11592 CFLAGS
="$SAVE_CFLAGS"
11601 if test "${with_selinux}" = "yes"; then
11602 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for lgetfilecon in -lselinux" >&5
11603 $as_echo_n "checking for lgetfilecon in -lselinux... " >&6; }
11604 if test "${ac_cv_lib_selinux_lgetfilecon+set}" = set; then :
11605 $as_echo_n "(cached) " >&6
11607 ac_check_lib_save_LIBS
=$LIBS
11608 LIBS
="-lselinux $LIBS"
11609 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
11610 /* end confdefs.h. */
11612 /* Override any GCC internal prototype to avoid an error.
11613 Use char because int might match the return type of a GCC
11614 builtin and then its argument prototype would still apply. */
11618 char lgetfilecon ();
11622 return lgetfilecon ();
11627 if ac_fn_c_try_link
"$LINENO"; then :
11628 ac_cv_lib_selinux_lgetfilecon
=yes
11630 ac_cv_lib_selinux_lgetfilecon
=no
11632 rm -f core conftest.err conftest.
$ac_objext \
11633 conftest
$ac_exeext conftest.
$ac_ext
11634 LIBS
=$ac_check_lib_save_LIBS
11636 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_selinux_lgetfilecon" >&5
11637 $as_echo "$ac_cv_lib_selinux_lgetfilecon" >&6; }
11638 if test "x$ac_cv_lib_selinux_lgetfilecon" = x
""yes; then :
11639 HAVE_LIBSELINUX
=yes
11644 if test "$HAVE_LIBSELINUX" = yes; then
11646 $as_echo "#define HAVE_LIBSELINUX 1" >>confdefs.h
11648 LIBSELINUX_LIBS
=-lselinux
11654 HAVE_GNUTLS_CALLBACK_CERTIFICATE_VERIFY
=no
11655 if test "${with_gnutls}" = "yes" ; then
11659 # Extract the first word of "pkg-config", so it can be a program name with args.
11660 set dummy pkg-config
; ac_word
=$2
11661 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11662 $as_echo_n "checking for $ac_word... " >&6; }
11663 if test "${ac_cv_path_PKG_CONFIG+set}" = set; then :
11664 $as_echo_n "(cached) " >&6
11666 case $PKG_CONFIG in
11668 ac_cv_path_PKG_CONFIG
="$PKG_CONFIG" # Let the user override the test with a path.
11671 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
11672 for as_dir
in $PATH
11675 test -z "$as_dir" && as_dir
=.
11676 for ac_exec_ext
in '' $ac_executable_extensions; do
11677 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11678 ac_cv_path_PKG_CONFIG
="$as_dir/$ac_word$ac_exec_ext"
11679 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11686 test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG
="no"
11690 PKG_CONFIG
=$ac_cv_path_PKG_CONFIG
11691 if test -n "$PKG_CONFIG"; then
11692 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5
11693 $as_echo "$PKG_CONFIG" >&6; }
11695 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11696 $as_echo "no" >&6; }
11701 if test "$PKG_CONFIG" = "no" ; then
11704 PKG_CONFIG_MIN_VERSION
=0.9.0
11705 if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
11706 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gnutls >= 2.6.6" >&5
11707 $as_echo_n "checking for gnutls >= 2.6.6... " >&6; }
11709 if $PKG_CONFIG --exists "gnutls >= 2.6.6" 2>&5; then
11710 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11711 $as_echo "yes" >&6; }
11714 { $as_echo "$as_me:${as_lineno-$LINENO}: checking LIBGNUTLS_CFLAGS" >&5
11715 $as_echo_n "checking LIBGNUTLS_CFLAGS... " >&6; }
11716 LIBGNUTLS_CFLAGS
=`$PKG_CONFIG --cflags "gnutls >= 2.6.6"|sed -e 's,///*,/,g'`
11717 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIBGNUTLS_CFLAGS" >&5
11718 $as_echo "$LIBGNUTLS_CFLAGS" >&6; }
11720 { $as_echo "$as_me:${as_lineno-$LINENO}: checking LIBGNUTLS_LIBS" >&5
11721 $as_echo_n "checking LIBGNUTLS_LIBS... " >&6; }
11722 LIBGNUTLS_LIBS
=`$PKG_CONFIG --libs "gnutls >= 2.6.6"|sed -e 's,///*,/,g'`
11723 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIBGNUTLS_LIBS" >&5
11724 $as_echo "$LIBGNUTLS_LIBS" >&6; }
11726 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11727 $as_echo "no" >&6; }
11728 LIBGNUTLS_CFLAGS
=""
11730 ## If we have a custom action on failure, don't print errors, but
11731 ## do set a variable so people can do so.
11732 LIBGNUTLS_PKG_ERRORS
=`$PKG_CONFIG --errors-to-stdout --print-errors "gnutls >= 2.6.6"`
11739 echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
11740 echo "*** See http://www.freedesktop.org/software/pkgconfig"
11744 if test $succeeded = yes; then
11750 if test "${HAVE_GNUTLS}" = "yes"; then
11752 $as_echo "#define HAVE_GNUTLS 1" >>confdefs.h
11756 CFLAGS
="$CFLAGS $LIBGNUTLS_CFLAGS"
11757 LIBS
="$LIBGNUTLS_LIBS $LIBS"
11758 for ac_func
in gnutls_certificate_set_verify_function
11760 ac_fn_c_check_func
"$LINENO" "gnutls_certificate_set_verify_function" "ac_cv_func_gnutls_certificate_set_verify_function"
11761 if test "x$ac_cv_func_gnutls_certificate_set_verify_function" = x
""yes; then :
11762 cat >>confdefs.h
<<_ACEOF
11763 #define HAVE_GNUTLS_CERTIFICATE_SET_VERIFY_FUNCTION 1
11765 HAVE_GNUTLS_CALLBACK_CERTIFICATE_VERIFY
=yes
11770 if test "${HAVE_GNUTLS_CALLBACK_CERTIFICATE_VERIFY}" = "yes"; then
11772 $as_echo "#define HAVE_GNUTLS_CALLBACK_CERTIFICATE_VERIFY 1" >>confdefs.h
11782 if test x
"${USE_X_TOOLKIT}" = xmaybe ||
test x
"${USE_X_TOOLKIT}" = xLUCID
; then
11783 if test "$with_xaw3d" != no
; then
11784 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for xaw3d" >&5
11785 $as_echo_n "checking for xaw3d... " >&6; }
11786 if test "${emacs_cv_xaw3d+set}" = set; then :
11787 $as_echo_n "(cached) " >&6
11789 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
11790 /* end confdefs.h. */
11792 #include <X11/Intrinsic.h>
11793 #include <X11/Xaw3d/Simple.h>
11802 if ac_fn_c_try_link
"$LINENO"; then :
11803 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for XawScrollbarSetThumb in -lXaw3d" >&5
11804 $as_echo_n "checking for XawScrollbarSetThumb in -lXaw3d... " >&6; }
11805 if test "${ac_cv_lib_Xaw3d_XawScrollbarSetThumb+set}" = set; then :
11806 $as_echo_n "(cached) " >&6
11808 ac_check_lib_save_LIBS
=$LIBS
11809 LIBS
="-lXaw3d $LIBS"
11810 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
11811 /* end confdefs.h. */
11813 /* Override any GCC internal prototype to avoid an error.
11814 Use char because int might match the return type of a GCC
11815 builtin and then its argument prototype would still apply. */
11819 char XawScrollbarSetThumb ();
11823 return XawScrollbarSetThumb ();
11828 if ac_fn_c_try_link
"$LINENO"; then :
11829 ac_cv_lib_Xaw3d_XawScrollbarSetThumb
=yes
11831 ac_cv_lib_Xaw3d_XawScrollbarSetThumb
=no
11833 rm -f core conftest.err conftest.
$ac_objext \
11834 conftest
$ac_exeext conftest.
$ac_ext
11835 LIBS
=$ac_check_lib_save_LIBS
11837 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_Xaw3d_XawScrollbarSetThumb" >&5
11838 $as_echo "$ac_cv_lib_Xaw3d_XawScrollbarSetThumb" >&6; }
11839 if test "x$ac_cv_lib_Xaw3d_XawScrollbarSetThumb" = x
""yes; then :
11848 rm -f core conftest.err conftest.
$ac_objext \
11849 conftest
$ac_exeext conftest.
$ac_ext
11855 if test $emacs_cv_xaw3d = yes; then
11856 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes; using Lucid toolkit" >&5
11857 $as_echo "yes; using Lucid toolkit" >&6; }
11858 USE_X_TOOLKIT
=LUCID
11862 $as_echo "#define HAVE_XAW3D 1" >>confdefs.h
11865 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11866 $as_echo "no" >&6; }
11867 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libXaw" >&5
11868 $as_echo_n "checking for libXaw... " >&6; }
11869 if test "${emacs_cv_xaw+set}" = set; then :
11870 $as_echo_n "(cached) " >&6
11872 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
11873 /* end confdefs.h. */
11875 #include <X11/Intrinsic.h>
11876 #include <X11/Xaw/Simple.h>
11885 if ac_fn_c_try_link
"$LINENO"; then :
11890 rm -f core conftest.err conftest.
$ac_objext \
11891 conftest
$ac_exeext conftest.
$ac_ext
11894 if test $emacs_cv_xaw = yes; then
11895 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes; using Lucid toolkit" >&5
11896 $as_echo "yes; using Lucid toolkit" >&6; }
11897 USE_X_TOOLKIT
=LUCID
11899 elif test x
"${USE_X_TOOLKIT}" = xLUCID
; then
11900 as_fn_error
"Lucid toolkit requires X11/Xaw include files" "$LINENO" 5
11902 as_fn_error
"No X toolkit could be found.
11903 If you are sure you want Emacs compiled without an X toolkit, pass
11904 --with-x-toolkit=no
11905 to configure. Otherwise, install the development libraries for the toolkit
11906 that you want to use (e.g. Gtk+) and re-run configure." "$LINENO" 5
11911 X_TOOLKIT_TYPE
=$USE_X_TOOLKIT
11914 if test "${USE_X_TOOLKIT}" != "none"; then
11915 { $as_echo "$as_me:${as_lineno-$LINENO}: checking X11 toolkit version" >&5
11916 $as_echo_n "checking X11 toolkit version... " >&6; }
11917 if test "${emacs_cv_x11_toolkit_version_6+set}" = set; then :
11918 $as_echo_n "(cached) " >&6
11920 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
11921 /* end confdefs.h. */
11922 #include <X11/Intrinsic.h>
11926 #if XtSpecificationRelease < 6
11934 if ac_fn_c_try_link
"$LINENO"; then :
11935 emacs_cv_x11_toolkit_version_6
=yes
11937 emacs_cv_x11_toolkit_version_6
=no
11939 rm -f core conftest.err conftest.
$ac_objext \
11940 conftest
$ac_exeext conftest.
$ac_ext
11943 HAVE_X11XTR6
=$emacs_cv_x11_toolkit_version_6
11944 if test $emacs_cv_x11_toolkit_version_6 = yes; then
11945 { $as_echo "$as_me:${as_lineno-$LINENO}: result: 6 or newer" >&5
11946 $as_echo "6 or newer" >&6; }
11948 $as_echo "#define HAVE_X11XTR6 1" >>confdefs.h
11950 LIBXTR6
="-lSM -lICE"
11952 ## Use libw.a along with X11R6 Xt.
11953 unixware
) LIBXTR6
="$LIBXTR6 -lw" ;;
11956 { $as_echo "$as_me:${as_lineno-$LINENO}: result: before 6" >&5
11957 $as_echo "before 6" >&6; }
11961 if test x
$HAVE_X11XTR6 = xyes
; then
11962 LIBS
="-lXt -lSM -lICE $LIBS"
11966 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for XmuConvertStandardSelection in -lXmu" >&5
11967 $as_echo_n "checking for XmuConvertStandardSelection in -lXmu... " >&6; }
11968 if test "${ac_cv_lib_Xmu_XmuConvertStandardSelection+set}" = set; then :
11969 $as_echo_n "(cached) " >&6
11971 ac_check_lib_save_LIBS
=$LIBS
11973 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
11974 /* end confdefs.h. */
11976 /* Override any GCC internal prototype to avoid an error.
11977 Use char because int might match the return type of a GCC
11978 builtin and then its argument prototype would still apply. */
11982 char XmuConvertStandardSelection ();
11986 return XmuConvertStandardSelection ();
11991 if ac_fn_c_try_link
"$LINENO"; then :
11992 ac_cv_lib_Xmu_XmuConvertStandardSelection
=yes
11994 ac_cv_lib_Xmu_XmuConvertStandardSelection
=no
11996 rm -f core conftest.err conftest.
$ac_objext \
11997 conftest
$ac_exeext conftest.
$ac_ext
11998 LIBS
=$ac_check_lib_save_LIBS
12000 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_Xmu_XmuConvertStandardSelection" >&5
12001 $as_echo "$ac_cv_lib_Xmu_XmuConvertStandardSelection" >&6; }
12002 if test "x$ac_cv_lib_Xmu_XmuConvertStandardSelection" = x
""yes; then :
12003 cat >>confdefs.h
<<_ACEOF
12004 #define HAVE_LIBXMU 1
12011 test $ac_cv_lib_Xmu_XmuConvertStandardSelection = no
&& LIBS
="$OLDLIBS"
12017 ## These systems don't supply Xmu.
12019 test "X$ac_cv_lib_Xmu_XmuConvertStandardSelection" != "Xyes" && LIBXMU
=
12024 # On Irix 6.5, at least, we need XShapeQueryExtension from -lXext for Xaw3D.
12025 if test "${HAVE_X11}" = "yes"; then
12026 if test "${USE_X_TOOLKIT}" != "none"; then
12027 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for XShapeQueryExtension in -lXext" >&5
12028 $as_echo_n "checking for XShapeQueryExtension in -lXext... " >&6; }
12029 if test "${ac_cv_lib_Xext_XShapeQueryExtension+set}" = set; then :
12030 $as_echo_n "(cached) " >&6
12032 ac_check_lib_save_LIBS
=$LIBS
12033 LIBS
="-lXext $LIBS"
12034 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
12035 /* end confdefs.h. */
12037 /* Override any GCC internal prototype to avoid an error.
12038 Use char because int might match the return type of a GCC
12039 builtin and then its argument prototype would still apply. */
12043 char XShapeQueryExtension ();
12047 return XShapeQueryExtension ();
12052 if ac_fn_c_try_link
"$LINENO"; then :
12053 ac_cv_lib_Xext_XShapeQueryExtension
=yes
12055 ac_cv_lib_Xext_XShapeQueryExtension
=no
12057 rm -f core conftest.err conftest.
$ac_objext \
12058 conftest
$ac_exeext conftest.
$ac_ext
12059 LIBS
=$ac_check_lib_save_LIBS
12061 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_Xext_XShapeQueryExtension" >&5
12062 $as_echo "$ac_cv_lib_Xext_XShapeQueryExtension" >&6; }
12063 if test "x$ac_cv_lib_Xext_XShapeQueryExtension" = x
""yes; then :
12064 cat >>confdefs.h
<<_ACEOF
12065 #define HAVE_LIBXEXT 1
12068 LIBS
="-lXext $LIBS"
12076 if test "${USE_X_TOOLKIT}" = "MOTIF"; then
12077 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Motif version 2.1" >&5
12078 $as_echo_n "checking for Motif version 2.1... " >&6; }
12079 if test "${emacs_cv_motif_version_2_1+set}" = set; then :
12080 $as_echo_n "(cached) " >&6
12082 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
12083 /* end confdefs.h. */
12088 #if XmVERSION > 2 || (XmVERSION == 2 && XmREVISION >= 1)
12091 Motif version prior to 2.1.
12097 if ac_fn_c_try_compile
"$LINENO"; then :
12098 emacs_cv_motif_version_2_1
=yes
12100 emacs_cv_motif_version_2_1
=no
12102 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
12104 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $emacs_cv_motif_version_2_1" >&5
12105 $as_echo "$emacs_cv_motif_version_2_1" >&6; }
12106 if test $emacs_cv_motif_version_2_1 = yes; then
12107 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for XpCreateContext in -lXp" >&5
12108 $as_echo_n "checking for XpCreateContext in -lXp... " >&6; }
12109 if test "${ac_cv_lib_Xp_XpCreateContext+set}" = set; then :
12110 $as_echo_n "(cached) " >&6
12112 ac_check_lib_save_LIBS
=$LIBS
12114 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
12115 /* end confdefs.h. */
12117 /* Override any GCC internal prototype to avoid an error.
12118 Use char because int might match the return type of a GCC
12119 builtin and then its argument prototype would still apply. */
12123 char XpCreateContext ();
12127 return XpCreateContext ();
12132 if ac_fn_c_try_link
"$LINENO"; then :
12133 ac_cv_lib_Xp_XpCreateContext
=yes
12135 ac_cv_lib_Xp_XpCreateContext
=no
12137 rm -f core conftest.err conftest.
$ac_objext \
12138 conftest
$ac_exeext conftest.
$ac_ext
12139 LIBS
=$ac_check_lib_save_LIBS
12141 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_Xp_XpCreateContext" >&5
12142 $as_echo "$ac_cv_lib_Xp_XpCreateContext" >&6; }
12143 if test "x$ac_cv_lib_Xp_XpCreateContext" = x
""yes; then :
12148 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for LessTif where some systems put it" >&5
12149 $as_echo_n "checking for LessTif where some systems put it... " >&6; }
12150 if test "${emacs_cv_lesstif+set}" = set; then :
12151 $as_echo_n "(cached) " >&6
12153 # We put this in CFLAGS temporarily to precede other -I options
12154 # that might be in CFLAGS temporarily.
12155 # We put this in CPPFLAGS where it precedes the other -I options.
12156 OLD_CPPFLAGS
=$CPPFLAGS
12158 CPPFLAGS
="-I/usr/X11R6/LessTif/Motif1.2/include $CPPFLAGS"
12159 CFLAGS
="-I/usr/X11R6/LessTif/Motif1.2/include $CFLAGS"
12160 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
12161 /* end confdefs.h. */
12162 #include </usr/X11R6/LessTif/Motif1.2/include/Xm/Xm.h>
12171 if ac_fn_c_try_compile
"$LINENO"; then :
12172 emacs_cv_lesstif
=yes
12174 emacs_cv_lesstif
=no
12176 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
12178 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $emacs_cv_lesstif" >&5
12179 $as_echo "$emacs_cv_lesstif" >&6; }
12180 if test $emacs_cv_lesstif = yes; then
12181 # Make sure this -I option remains in CPPFLAGS after it is set
12182 # back to REAL_CPPFLAGS.
12183 # There is no need to change REAL_CFLAGS, because REAL_CFLAGS does not
12184 # have those other -I options anyway. Ultimately, having this
12185 # directory ultimately in CPPFLAGS will be enough.
12186 REAL_CPPFLAGS
="-I/usr/X11R6/LessTif/Motif1.2/include $REAL_CPPFLAGS"
12187 LDFLAGS
="-L/usr/X11R6/LessTif/Motif1.2/lib $LDFLAGS"
12190 CPPFLAGS
=$OLD_CPPFLAGS
12196 USE_TOOLKIT_SCROLL_BARS
=no
12197 if test "${with_toolkit_scroll_bars}" != "no"; then
12198 if test "${USE_X_TOOLKIT}" != "none"; then
12199 if test "${USE_X_TOOLKIT}" = "MOTIF"; then
12200 $as_echo "#define USE_TOOLKIT_SCROLL_BARS 1" >>confdefs.h
12203 USE_TOOLKIT_SCROLL_BARS
=yes
12204 elif test "${HAVE_XAW3D}" = "yes"; then
12205 $as_echo "#define USE_TOOLKIT_SCROLL_BARS 1" >>confdefs.h
12207 USE_TOOLKIT_SCROLL_BARS
=yes
12209 elif test "${HAVE_GTK}" = "yes"; then
12210 $as_echo "#define USE_TOOLKIT_SCROLL_BARS 1" >>confdefs.h
12212 USE_TOOLKIT_SCROLL_BARS
=yes
12213 elif test "${HAVE_NS}" = "yes"; then
12214 $as_echo "#define USE_TOOLKIT_SCROLL_BARS 1" >>confdefs.h
12216 USE_TOOLKIT_SCROLL_BARS
=yes
12220 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
12221 /* end confdefs.h. */
12223 #include <X11/Xlib.h>
12224 #include <X11/Xresource.h>
12233 if ac_fn_c_try_compile
"$LINENO"; then :
12236 $as_echo "#define HAVE_XIM 1" >>confdefs.h
12241 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
12244 if test "${with_xim}" != "no"; then
12246 $as_echo "#define USE_XIM 1" >>confdefs.h
12251 if test "${HAVE_XIM}" != "no"; then
12252 late_CFLAGS
=$CFLAGS
12253 if test "$GCC" = yes; then
12254 CFLAGS
="$CFLAGS --pedantic-errors"
12256 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
12257 /* end confdefs.h. */
12259 #include <X11/Xlib.h>
12260 #include <X11/Xresource.h>
12269 XPointer *client_data;
12271 /* If we're not using GCC, it's probably not XFree86, and this is
12272 probably right, but we can't use something like --pedantic-errors. */
12273 extern Bool XRegisterIMInstantiateCallback(Display*, XrmDatabase, char*,
12274 char*, XIMProc, XPointer*);
12276 (void)XRegisterIMInstantiateCallback(display, db, res_name, res_class, callback,
12282 if ac_fn_c_try_compile
"$LINENO"; then :
12283 emacs_cv_arg6_star
=yes
12285 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
12286 if test "$emacs_cv_arg6_star" = yes; then
12287 $as_echo "#define XRegisterIMInstantiateCallback_arg6 XPointer*" >>confdefs.h
12290 $as_echo "#define XRegisterIMInstantiateCallback_arg6 XPointer" >>confdefs.h
12293 CFLAGS
=$late_CFLAGS
12296 ### Start of font-backend (under any platform) section.
12297 # (nothing here yet -- this is a placeholder)
12298 ### End of font-backend (under any platform) section.
12300 ### Start of font-backend (under X11) section.
12301 if test "${HAVE_X11}" = "yes"; then
12305 # Extract the first word of "pkg-config", so it can be a program name with args.
12306 set dummy pkg-config
; ac_word
=$2
12307 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12308 $as_echo_n "checking for $ac_word... " >&6; }
12309 if test "${ac_cv_path_PKG_CONFIG+set}" = set; then :
12310 $as_echo_n "(cached) " >&6
12312 case $PKG_CONFIG in
12314 ac_cv_path_PKG_CONFIG
="$PKG_CONFIG" # Let the user override the test with a path.
12317 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
12318 for as_dir
in $PATH
12321 test -z "$as_dir" && as_dir
=.
12322 for ac_exec_ext
in '' $ac_executable_extensions; do
12323 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
12324 ac_cv_path_PKG_CONFIG
="$as_dir/$ac_word$ac_exec_ext"
12325 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12332 test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG
="no"
12336 PKG_CONFIG
=$ac_cv_path_PKG_CONFIG
12337 if test -n "$PKG_CONFIG"; then
12338 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5
12339 $as_echo "$PKG_CONFIG" >&6; }
12341 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12342 $as_echo "no" >&6; }
12347 if test "$PKG_CONFIG" = "no" ; then
12350 PKG_CONFIG_MIN_VERSION
=0.9.0
12351 if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
12352 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for fontconfig >= 2.2.0" >&5
12353 $as_echo_n "checking for fontconfig >= 2.2.0... " >&6; }
12355 if $PKG_CONFIG --exists "fontconfig >= 2.2.0" 2>&5; then
12356 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
12357 $as_echo "yes" >&6; }
12360 { $as_echo "$as_me:${as_lineno-$LINENO}: checking FONTCONFIG_CFLAGS" >&5
12361 $as_echo_n "checking FONTCONFIG_CFLAGS... " >&6; }
12362 FONTCONFIG_CFLAGS
=`$PKG_CONFIG --cflags "fontconfig >= 2.2.0"|sed -e 's,///*,/,g'`
12363 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $FONTCONFIG_CFLAGS" >&5
12364 $as_echo "$FONTCONFIG_CFLAGS" >&6; }
12366 { $as_echo "$as_me:${as_lineno-$LINENO}: checking FONTCONFIG_LIBS" >&5
12367 $as_echo_n "checking FONTCONFIG_LIBS... " >&6; }
12368 FONTCONFIG_LIBS
=`$PKG_CONFIG --libs "fontconfig >= 2.2.0"|sed -e 's,///*,/,g'`
12369 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $FONTCONFIG_LIBS" >&5
12370 $as_echo "$FONTCONFIG_LIBS" >&6; }
12372 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12373 $as_echo "no" >&6; }
12374 FONTCONFIG_CFLAGS
=""
12376 ## If we have a custom action on failure, don't print errors, but
12377 ## do set a variable so people can do so.
12378 FONTCONFIG_PKG_ERRORS
=`$PKG_CONFIG --errors-to-stdout --print-errors "fontconfig >= 2.2.0"`
12385 echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
12386 echo "*** See http://www.freedesktop.org/software/pkgconfig"
12390 if test $succeeded = yes; then
12397 ## Use -lXft if available, unless `--with-xft=no'.
12399 if test "${HAVE_FC}" = "no" ||
test "x${with_x}" = "xno"; then
12402 if test "x${with_xft}" != "xno"; then
12407 # Extract the first word of "pkg-config", so it can be a program name with args.
12408 set dummy pkg-config
; ac_word
=$2
12409 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12410 $as_echo_n "checking for $ac_word... " >&6; }
12411 if test "${ac_cv_path_PKG_CONFIG+set}" = set; then :
12412 $as_echo_n "(cached) " >&6
12414 case $PKG_CONFIG in
12416 ac_cv_path_PKG_CONFIG
="$PKG_CONFIG" # Let the user override the test with a path.
12419 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
12420 for as_dir
in $PATH
12423 test -z "$as_dir" && as_dir
=.
12424 for ac_exec_ext
in '' $ac_executable_extensions; do
12425 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
12426 ac_cv_path_PKG_CONFIG
="$as_dir/$ac_word$ac_exec_ext"
12427 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12434 test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG
="no"
12438 PKG_CONFIG
=$ac_cv_path_PKG_CONFIG
12439 if test -n "$PKG_CONFIG"; then
12440 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5
12441 $as_echo "$PKG_CONFIG" >&6; }
12443 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12444 $as_echo "no" >&6; }
12449 if test "$PKG_CONFIG" = "no" ; then
12452 PKG_CONFIG_MIN_VERSION
=0.9.0
12453 if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
12454 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for xft >= 0.13.0" >&5
12455 $as_echo_n "checking for xft >= 0.13.0... " >&6; }
12457 if $PKG_CONFIG --exists "xft >= 0.13.0" 2>&5; then
12458 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
12459 $as_echo "yes" >&6; }
12462 { $as_echo "$as_me:${as_lineno-$LINENO}: checking XFT_CFLAGS" >&5
12463 $as_echo_n "checking XFT_CFLAGS... " >&6; }
12464 XFT_CFLAGS
=`$PKG_CONFIG --cflags "xft >= 0.13.0"|sed -e 's,///*,/,g'`
12465 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $XFT_CFLAGS" >&5
12466 $as_echo "$XFT_CFLAGS" >&6; }
12468 { $as_echo "$as_me:${as_lineno-$LINENO}: checking XFT_LIBS" >&5
12469 $as_echo_n "checking XFT_LIBS... " >&6; }
12470 XFT_LIBS
=`$PKG_CONFIG --libs "xft >= 0.13.0"|sed -e 's,///*,/,g'`
12471 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $XFT_LIBS" >&5
12472 $as_echo "$XFT_LIBS" >&6; }
12474 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12475 $as_echo "no" >&6; }
12478 ## If we have a custom action on failure, don't print errors, but
12479 ## do set a variable so people can do so.
12480 XFT_PKG_ERRORS
=`$PKG_CONFIG --errors-to-stdout --print-errors "xft >= 0.13.0"`
12487 echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
12488 echo "*** See http://www.freedesktop.org/software/pkgconfig"
12492 if test $succeeded = yes; then
12498 ## Because xftfont.c uses XRenderQueryExtension, we also
12499 ## need to link to -lXrender.
12501 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for XRenderQueryExtension in -lXrender" >&5
12502 $as_echo_n "checking for XRenderQueryExtension in -lXrender... " >&6; }
12503 if test "${ac_cv_lib_Xrender_XRenderQueryExtension+set}" = set; then :
12504 $as_echo_n "(cached) " >&6
12506 ac_check_lib_save_LIBS
=$LIBS
12507 LIBS
="-lXrender $LIBS"
12508 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
12509 /* end confdefs.h. */
12511 /* Override any GCC internal prototype to avoid an error.
12512 Use char because int might match the return type of a GCC
12513 builtin and then its argument prototype would still apply. */
12517 char XRenderQueryExtension ();
12521 return XRenderQueryExtension ();
12526 if ac_fn_c_try_link
"$LINENO"; then :
12527 ac_cv_lib_Xrender_XRenderQueryExtension
=yes
12529 ac_cv_lib_Xrender_XRenderQueryExtension
=no
12531 rm -f core conftest.err conftest.
$ac_objext \
12532 conftest
$ac_exeext conftest.
$ac_ext
12533 LIBS
=$ac_check_lib_save_LIBS
12535 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_Xrender_XRenderQueryExtension" >&5
12536 $as_echo "$ac_cv_lib_Xrender_XRenderQueryExtension" >&6; }
12537 if test "x$ac_cv_lib_Xrender_XRenderQueryExtension" = x
""yes; then :
12541 if test "$HAVE_XFT" != no
&& test "$HAVE_XRENDER" != no
; then
12542 OLD_CPPFLAGS
="$CPPFLAGS"
12543 OLD_CFLAGS
="$CFLAGS"
12545 CPPFLAGS
="$CPPFLAGS $XFT_CFLAGS"
12546 CFLAGS
="$CFLAGS $XFT_CFLAGS"
12547 XFT_LIBS
="-lXrender $XFT_LIBS"
12548 LIBS
="$XFT_LIBS $LIBS"
12549 ac_fn_c_check_header_mongrel
"$LINENO" "X11/Xft/Xft.h" "ac_cv_header_X11_Xft_Xft_h" "$ac_includes_default"
12550 if test "x$ac_cv_header_X11_Xft_Xft_h" = x
""yes; then :
12551 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for XftFontOpen in -lXft" >&5
12552 $as_echo_n "checking for XftFontOpen in -lXft... " >&6; }
12553 if test "${ac_cv_lib_Xft_XftFontOpen+set}" = set; then :
12554 $as_echo_n "(cached) " >&6
12556 ac_check_lib_save_LIBS
=$LIBS
12557 LIBS
="-lXft $XFT_LIBS $LIBS"
12558 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
12559 /* end confdefs.h. */
12561 /* Override any GCC internal prototype to avoid an error.
12562 Use char because int might match the return type of a GCC
12563 builtin and then its argument prototype would still apply. */
12567 char XftFontOpen ();
12571 return XftFontOpen ();
12576 if ac_fn_c_try_link
"$LINENO"; then :
12577 ac_cv_lib_Xft_XftFontOpen
=yes
12579 ac_cv_lib_Xft_XftFontOpen
=no
12581 rm -f core conftest.err conftest.
$ac_objext \
12582 conftest
$ac_exeext conftest.
$ac_ext
12583 LIBS
=$ac_check_lib_save_LIBS
12585 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_Xft_XftFontOpen" >&5
12586 $as_echo "$ac_cv_lib_Xft_XftFontOpen" >&6; }
12587 if test "x$ac_cv_lib_Xft_XftFontOpen" = x
""yes; then :
12595 if test "${HAVE_XFT}" = "yes"; then
12597 $as_echo "#define HAVE_XFT 1" >>confdefs.h
12600 C_SWITCH_X_SITE
="$C_SWITCH_X_SITE $XFT_CFLAGS"
12602 CPPFLAGS
="$OLD_CPPFLAGS"
12603 CFLAGS
="$OLD_CFLAGS"
12605 fi # "${HAVE_XFT}" = "yes"
12606 fi # "$HAVE_XFT" != no
12607 fi # "x${with_xft}" != "xno"
12609 ## We used to allow building with FreeType and without Xft.
12610 ## However, the ftx font backend driver is not in good shape.
12611 if test "$HAVE_XFT" != "yes"; then
12618 # Extract the first word of "pkg-config", so it can be a program name with args.
12619 set dummy pkg-config
; ac_word
=$2
12620 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12621 $as_echo_n "checking for $ac_word... " >&6; }
12622 if test "${ac_cv_path_PKG_CONFIG+set}" = set; then :
12623 $as_echo_n "(cached) " >&6
12625 case $PKG_CONFIG in
12627 ac_cv_path_PKG_CONFIG
="$PKG_CONFIG" # Let the user override the test with a path.
12630 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
12631 for as_dir
in $PATH
12634 test -z "$as_dir" && as_dir
=.
12635 for ac_exec_ext
in '' $ac_executable_extensions; do
12636 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
12637 ac_cv_path_PKG_CONFIG
="$as_dir/$ac_word$ac_exec_ext"
12638 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12645 test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG
="no"
12649 PKG_CONFIG
=$ac_cv_path_PKG_CONFIG
12650 if test -n "$PKG_CONFIG"; then
12651 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5
12652 $as_echo "$PKG_CONFIG" >&6; }
12654 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12655 $as_echo "no" >&6; }
12660 if test "$PKG_CONFIG" = "no" ; then
12663 PKG_CONFIG_MIN_VERSION
=0.9.0
12664 if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
12665 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for freetype2" >&5
12666 $as_echo_n "checking for freetype2... " >&6; }
12668 if $PKG_CONFIG --exists "freetype2" 2>&5; then
12669 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
12670 $as_echo "yes" >&6; }
12673 { $as_echo "$as_me:${as_lineno-$LINENO}: checking FREETYPE_CFLAGS" >&5
12674 $as_echo_n "checking FREETYPE_CFLAGS... " >&6; }
12675 FREETYPE_CFLAGS
=`$PKG_CONFIG --cflags "freetype2"|sed -e 's,///*,/,g'`
12676 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $FREETYPE_CFLAGS" >&5
12677 $as_echo "$FREETYPE_CFLAGS" >&6; }
12679 { $as_echo "$as_me:${as_lineno-$LINENO}: checking FREETYPE_LIBS" >&5
12680 $as_echo_n "checking FREETYPE_LIBS... " >&6; }
12681 FREETYPE_LIBS
=`$PKG_CONFIG --libs "freetype2"|sed -e 's,///*,/,g'`
12682 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $FREETYPE_LIBS" >&5
12683 $as_echo "$FREETYPE_LIBS" >&6; }
12685 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12686 $as_echo "no" >&6; }
12689 ## If we have a custom action on failure, don't print errors, but
12690 ## do set a variable so people can do so.
12691 FREETYPE_PKG_ERRORS
=`$PKG_CONFIG --errors-to-stdout --print-errors "freetype2"`
12698 echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
12699 echo "*** See http://www.freedesktop.org/software/pkgconfig"
12703 if test $succeeded = yes; then
12710 test "$HAVE_FREETYPE" = "no" && as_fn_error
"libxft requires libfreetype" "$LINENO" 5
12714 if test "${HAVE_FREETYPE}" = "yes"; then
12716 $as_echo "#define HAVE_FREETYPE 1" >>confdefs.h
12718 if test "${with_libotf}" != "no"; then
12722 # Extract the first word of "pkg-config", so it can be a program name with args.
12723 set dummy pkg-config
; ac_word
=$2
12724 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12725 $as_echo_n "checking for $ac_word... " >&6; }
12726 if test "${ac_cv_path_PKG_CONFIG+set}" = set; then :
12727 $as_echo_n "(cached) " >&6
12729 case $PKG_CONFIG in
12731 ac_cv_path_PKG_CONFIG
="$PKG_CONFIG" # Let the user override the test with a path.
12734 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
12735 for as_dir
in $PATH
12738 test -z "$as_dir" && as_dir
=.
12739 for ac_exec_ext
in '' $ac_executable_extensions; do
12740 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
12741 ac_cv_path_PKG_CONFIG
="$as_dir/$ac_word$ac_exec_ext"
12742 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12749 test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG
="no"
12753 PKG_CONFIG
=$ac_cv_path_PKG_CONFIG
12754 if test -n "$PKG_CONFIG"; then
12755 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5
12756 $as_echo "$PKG_CONFIG" >&6; }
12758 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12759 $as_echo "no" >&6; }
12764 if test "$PKG_CONFIG" = "no" ; then
12767 PKG_CONFIG_MIN_VERSION
=0.9.0
12768 if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
12769 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libotf" >&5
12770 $as_echo_n "checking for libotf... " >&6; }
12772 if $PKG_CONFIG --exists "libotf" 2>&5; then
12773 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
12774 $as_echo "yes" >&6; }
12777 { $as_echo "$as_me:${as_lineno-$LINENO}: checking LIBOTF_CFLAGS" >&5
12778 $as_echo_n "checking LIBOTF_CFLAGS... " >&6; }
12779 LIBOTF_CFLAGS
=`$PKG_CONFIG --cflags "libotf"|sed -e 's,///*,/,g'`
12780 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIBOTF_CFLAGS" >&5
12781 $as_echo "$LIBOTF_CFLAGS" >&6; }
12783 { $as_echo "$as_me:${as_lineno-$LINENO}: checking LIBOTF_LIBS" >&5
12784 $as_echo_n "checking LIBOTF_LIBS... " >&6; }
12785 LIBOTF_LIBS
=`$PKG_CONFIG --libs "libotf"|sed -e 's,///*,/,g'`
12786 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIBOTF_LIBS" >&5
12787 $as_echo "$LIBOTF_LIBS" >&6; }
12789 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12790 $as_echo "no" >&6; }
12793 ## If we have a custom action on failure, don't print errors, but
12794 ## do set a variable so people can do so.
12795 LIBOTF_PKG_ERRORS
=`$PKG_CONFIG --errors-to-stdout --print-errors "libotf"`
12802 echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
12803 echo "*** See http://www.freedesktop.org/software/pkgconfig"
12807 if test $succeeded = yes; then
12813 if test "$HAVE_LIBOTF" = "yes"; then
12815 $as_echo "#define HAVE_LIBOTF 1" >>confdefs.h
12817 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for OTF_get_variation_glyphs in -lotf" >&5
12818 $as_echo_n "checking for OTF_get_variation_glyphs in -lotf... " >&6; }
12819 if test "${ac_cv_lib_otf_OTF_get_variation_glyphs+set}" = set; then :
12820 $as_echo_n "(cached) " >&6
12822 ac_check_lib_save_LIBS
=$LIBS
12824 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
12825 /* end confdefs.h. */
12827 /* Override any GCC internal prototype to avoid an error.
12828 Use char because int might match the return type of a GCC
12829 builtin and then its argument prototype would still apply. */
12833 char OTF_get_variation_glyphs ();
12837 return OTF_get_variation_glyphs ();
12842 if ac_fn_c_try_link
"$LINENO"; then :
12843 ac_cv_lib_otf_OTF_get_variation_glyphs
=yes
12845 ac_cv_lib_otf_OTF_get_variation_glyphs
=no
12847 rm -f core conftest.err conftest.
$ac_objext \
12848 conftest
$ac_exeext conftest.
$ac_ext
12849 LIBS
=$ac_check_lib_save_LIBS
12851 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_otf_OTF_get_variation_glyphs" >&5
12852 $as_echo "$ac_cv_lib_otf_OTF_get_variation_glyphs" >&6; }
12853 if test "x$ac_cv_lib_otf_OTF_get_variation_glyphs" = x
""yes; then :
12854 HAVE_OTF_GET_VARIATION_GLYPHS
=yes
12856 HAVE_OTF_GET_VARIATION_GLYPHS
=no
12859 if test "${HAVE_OTF_GET_VARIATION_GLYPHS}" = "yes"; then
12861 $as_echo "#define HAVE_OTF_GET_VARIATION_GLYPHS 1" >>confdefs.h
12869 if test "${HAVE_LIBOTF}" = yes; then
12870 if test "${with_m17n_flt}" != "no"; then
12874 # Extract the first word of "pkg-config", so it can be a program name with args.
12875 set dummy pkg-config
; ac_word
=$2
12876 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12877 $as_echo_n "checking for $ac_word... " >&6; }
12878 if test "${ac_cv_path_PKG_CONFIG+set}" = set; then :
12879 $as_echo_n "(cached) " >&6
12881 case $PKG_CONFIG in
12883 ac_cv_path_PKG_CONFIG
="$PKG_CONFIG" # Let the user override the test with a path.
12886 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
12887 for as_dir
in $PATH
12890 test -z "$as_dir" && as_dir
=.
12891 for ac_exec_ext
in '' $ac_executable_extensions; do
12892 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
12893 ac_cv_path_PKG_CONFIG
="$as_dir/$ac_word$ac_exec_ext"
12894 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12901 test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG
="no"
12905 PKG_CONFIG
=$ac_cv_path_PKG_CONFIG
12906 if test -n "$PKG_CONFIG"; then
12907 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5
12908 $as_echo "$PKG_CONFIG" >&6; }
12910 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12911 $as_echo "no" >&6; }
12916 if test "$PKG_CONFIG" = "no" ; then
12919 PKG_CONFIG_MIN_VERSION
=0.9.0
12920 if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
12921 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for m17n-flt" >&5
12922 $as_echo_n "checking for m17n-flt... " >&6; }
12924 if $PKG_CONFIG --exists "m17n-flt" 2>&5; then
12925 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
12926 $as_echo "yes" >&6; }
12929 { $as_echo "$as_me:${as_lineno-$LINENO}: checking M17N_FLT_CFLAGS" >&5
12930 $as_echo_n "checking M17N_FLT_CFLAGS... " >&6; }
12931 M17N_FLT_CFLAGS
=`$PKG_CONFIG --cflags "m17n-flt"|sed -e 's,///*,/,g'`
12932 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $M17N_FLT_CFLAGS" >&5
12933 $as_echo "$M17N_FLT_CFLAGS" >&6; }
12935 { $as_echo "$as_me:${as_lineno-$LINENO}: checking M17N_FLT_LIBS" >&5
12936 $as_echo_n "checking M17N_FLT_LIBS... " >&6; }
12937 M17N_FLT_LIBS
=`$PKG_CONFIG --libs "m17n-flt"|sed -e 's,///*,/,g'`
12938 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $M17N_FLT_LIBS" >&5
12939 $as_echo "$M17N_FLT_LIBS" >&6; }
12941 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12942 $as_echo "no" >&6; }
12945 ## If we have a custom action on failure, don't print errors, but
12946 ## do set a variable so people can do so.
12947 M17N_FLT_PKG_ERRORS
=`$PKG_CONFIG --errors-to-stdout --print-errors "m17n-flt"`
12954 echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
12955 echo "*** See http://www.freedesktop.org/software/pkgconfig"
12959 if test $succeeded = yes; then
12965 if test "$HAVE_M17N_FLT" = "yes"; then
12967 $as_echo "#define HAVE_M17N_FLT 1" >>confdefs.h
12979 ### End of font-backend (under X11) section.
12990 ### Use -lXpm if available, unless `--with-xpm=no'.
12993 if test "${HAVE_X11}" = "yes"; then
12994 if test "${with_xpm}" != "no"; then
12995 ac_fn_c_check_header_mongrel
"$LINENO" "X11/xpm.h" "ac_cv_header_X11_xpm_h" "$ac_includes_default"
12996 if test "x$ac_cv_header_X11_xpm_h" = x
""yes; then :
12997 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for XpmReadFileToPixmap in -lXpm" >&5
12998 $as_echo_n "checking for XpmReadFileToPixmap in -lXpm... " >&6; }
12999 if test "${ac_cv_lib_Xpm_XpmReadFileToPixmap+set}" = set; then :
13000 $as_echo_n "(cached) " >&6
13002 ac_check_lib_save_LIBS
=$LIBS
13003 LIBS
="-lXpm -lX11 $LIBS"
13004 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
13005 /* end confdefs.h. */
13007 /* Override any GCC internal prototype to avoid an error.
13008 Use char because int might match the return type of a GCC
13009 builtin and then its argument prototype would still apply. */
13013 char XpmReadFileToPixmap ();
13017 return XpmReadFileToPixmap ();
13022 if ac_fn_c_try_link
"$LINENO"; then :
13023 ac_cv_lib_Xpm_XpmReadFileToPixmap
=yes
13025 ac_cv_lib_Xpm_XpmReadFileToPixmap
=no
13027 rm -f core conftest.err conftest.
$ac_objext \
13028 conftest
$ac_exeext conftest.
$ac_ext
13029 LIBS
=$ac_check_lib_save_LIBS
13031 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_Xpm_XpmReadFileToPixmap" >&5
13032 $as_echo "$ac_cv_lib_Xpm_XpmReadFileToPixmap" >&6; }
13033 if test "x$ac_cv_lib_Xpm_XpmReadFileToPixmap" = x
""yes; then :
13040 if test "${HAVE_XPM}" = "yes"; then
13041 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for XpmReturnAllocPixels preprocessor define" >&5
13042 $as_echo_n "checking for XpmReturnAllocPixels preprocessor define... " >&6; }
13043 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
13044 /* end confdefs.h. */
13045 #include "X11/xpm.h"
13046 #ifndef XpmReturnAllocPixels
13047 no_return_alloc_pixels
13051 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
13052 $EGREP "no_return_alloc_pixels" >/dev
/null
2>&1; then :
13060 if test "${HAVE_XPM}" = "yes"; then
13061 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
13062 $as_echo "yes" >&6; }
13064 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13065 $as_echo "no" >&6; }
13070 if test "${HAVE_XPM}" = "yes"; then
13072 $as_echo "#define HAVE_XPM 1" >>confdefs.h
13079 ### Use -ljpeg if available, unless `--with-jpeg=no'.
13082 if test "${HAVE_X11}" = "yes"; then
13083 if test "${with_jpeg}" != "no"; then
13084 ac_fn_c_check_header_mongrel
"$LINENO" "jerror.h" "ac_cv_header_jerror_h" "$ac_includes_default"
13085 if test "x$ac_cv_header_jerror_h" = x
""yes; then :
13086 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for jpeg_destroy_compress in -ljpeg" >&5
13087 $as_echo_n "checking for jpeg_destroy_compress in -ljpeg... " >&6; }
13088 if test "${ac_cv_lib_jpeg_jpeg_destroy_compress+set}" = set; then :
13089 $as_echo_n "(cached) " >&6
13091 ac_check_lib_save_LIBS
=$LIBS
13092 LIBS
="-ljpeg $LIBS"
13093 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
13094 /* end confdefs.h. */
13096 /* Override any GCC internal prototype to avoid an error.
13097 Use char because int might match the return type of a GCC
13098 builtin and then its argument prototype would still apply. */
13102 char jpeg_destroy_compress ();
13106 return jpeg_destroy_compress ();
13111 if ac_fn_c_try_link
"$LINENO"; then :
13112 ac_cv_lib_jpeg_jpeg_destroy_compress
=yes
13114 ac_cv_lib_jpeg_jpeg_destroy_compress
=no
13116 rm -f core conftest.err conftest.
$ac_objext \
13117 conftest
$ac_exeext conftest.
$ac_ext
13118 LIBS
=$ac_check_lib_save_LIBS
13120 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_jpeg_jpeg_destroy_compress" >&5
13121 $as_echo "$ac_cv_lib_jpeg_jpeg_destroy_compress" >&6; }
13122 if test "x$ac_cv_lib_jpeg_jpeg_destroy_compress" = x
""yes; then :
13131 if test "${HAVE_JPEG}" = "yes"; then
13132 $as_echo "#define HAVE_JPEG 1" >>confdefs.h
13134 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
13135 /* end confdefs.h. */
13136 #include <jpeglib.h>
13137 version=JPEG_LIB_VERSION
13140 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
13141 $EGREP "version= *(6[2-9]|[7-9][0-9])" >/dev
/null
2>&1; then :
13142 $as_echo "#define HAVE_JPEG 1" >>confdefs.h
13145 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: libjpeg found, but not version 6b or later" >&5
13146 $as_echo "$as_me: WARNING: libjpeg found, but not version 6b or later" >&2;}
13152 if test "${HAVE_JPEG}" = "yes"; then
13158 ### Use -lpng if available, unless `--with-png=no'.
13161 if test "${HAVE_X11}" = "yes"; then
13162 if test "${with_png}" != "no"; then
13163 # Debian unstable as of July 2003 has multiple libpngs, and puts png.h
13164 # in /usr/include/libpng.
13165 for ac_header
in png.h libpng
/png.h
13167 as_ac_Header
=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
13168 ac_fn_c_check_header_mongrel
"$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
13169 eval as_val
=\$
$as_ac_Header
13170 if test "x$as_val" = x
""yes; then :
13171 cat >>confdefs.h
<<_ACEOF
13172 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
13179 if test "$ac_cv_header_png_h" = yes ||
test "$ac_cv_header_libpng_png_h" = yes ; then
13180 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for png_get_channels in -lpng" >&5
13181 $as_echo_n "checking for png_get_channels in -lpng... " >&6; }
13182 if test "${ac_cv_lib_png_png_get_channels+set}" = set; then :
13183 $as_echo_n "(cached) " >&6
13185 ac_check_lib_save_LIBS
=$LIBS
13186 LIBS
="-lpng -lz -lm $LIBS"
13187 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
13188 /* end confdefs.h. */
13190 /* Override any GCC internal prototype to avoid an error.
13191 Use char because int might match the return type of a GCC
13192 builtin and then its argument prototype would still apply. */
13196 char png_get_channels ();
13200 return png_get_channels ();
13205 if ac_fn_c_try_link
"$LINENO"; then :
13206 ac_cv_lib_png_png_get_channels
=yes
13208 ac_cv_lib_png_png_get_channels
=no
13210 rm -f core conftest.err conftest.
$ac_objext \
13211 conftest
$ac_exeext conftest.
$ac_ext
13212 LIBS
=$ac_check_lib_save_LIBS
13214 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_png_png_get_channels" >&5
13215 $as_echo "$ac_cv_lib_png_png_get_channels" >&6; }
13216 if test "x$ac_cv_lib_png_png_get_channels" = x
""yes; then :
13223 if test "${HAVE_PNG}" = "yes"; then
13225 $as_echo "#define HAVE_PNG 1" >>confdefs.h
13227 LIBPNG
="-lpng -lz -lm"
13232 ### Use -ltiff if available, unless `--with-tiff=no'.
13235 if test "${HAVE_X11}" = "yes"; then
13236 if test "${with_tiff}" != "no"; then
13237 ac_fn_c_check_header_mongrel
"$LINENO" "tiffio.h" "ac_cv_header_tiffio_h" "$ac_includes_default"
13238 if test "x$ac_cv_header_tiffio_h" = x
""yes; then :
13240 # At least one tiff package requires the jpeg library.
13241 if test "${HAVE_JPEG}" = yes; then tifflibs
="-ljpeg $tifflibs"; fi
13242 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for TIFFGetVersion in -ltiff" >&5
13243 $as_echo_n "checking for TIFFGetVersion in -ltiff... " >&6; }
13244 if test "${ac_cv_lib_tiff_TIFFGetVersion+set}" = set; then :
13245 $as_echo_n "(cached) " >&6
13247 ac_check_lib_save_LIBS
=$LIBS
13248 LIBS
="-ltiff $tifflibs $LIBS"
13249 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
13250 /* end confdefs.h. */
13252 /* Override any GCC internal prototype to avoid an error.
13253 Use char because int might match the return type of a GCC
13254 builtin and then its argument prototype would still apply. */
13258 char TIFFGetVersion ();
13262 return TIFFGetVersion ();
13267 if ac_fn_c_try_link
"$LINENO"; then :
13268 ac_cv_lib_tiff_TIFFGetVersion
=yes
13270 ac_cv_lib_tiff_TIFFGetVersion
=no
13272 rm -f core conftest.err conftest.
$ac_objext \
13273 conftest
$ac_exeext conftest.
$ac_ext
13274 LIBS
=$ac_check_lib_save_LIBS
13276 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_tiff_TIFFGetVersion" >&5
13277 $as_echo "$ac_cv_lib_tiff_TIFFGetVersion" >&6; }
13278 if test "x$ac_cv_lib_tiff_TIFFGetVersion" = x
""yes; then :
13287 if test "${HAVE_TIFF}" = "yes"; then
13289 $as_echo "#define HAVE_TIFF 1" >>confdefs.h
13296 ### Use -lgif or -lungif if available, unless `--with-gif=no'.
13299 if test "${HAVE_X11}" = "yes" && test "${with_gif}" != "no"; then
13300 ac_fn_c_check_header_mongrel
"$LINENO" "gif_lib.h" "ac_cv_header_gif_lib_h" "$ac_includes_default"
13301 if test "x$ac_cv_header_gif_lib_h" = x
""yes; then :
13302 # EGifPutExtensionLast only exists from version libungif-4.1.0b1.
13303 # Earlier versions can crash Emacs.
13304 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for EGifPutExtensionLast in -lgif" >&5
13305 $as_echo_n "checking for EGifPutExtensionLast in -lgif... " >&6; }
13306 if test "${ac_cv_lib_gif_EGifPutExtensionLast+set}" = set; then :
13307 $as_echo_n "(cached) " >&6
13309 ac_check_lib_save_LIBS
=$LIBS
13311 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
13312 /* end confdefs.h. */
13314 /* Override any GCC internal prototype to avoid an error.
13315 Use char because int might match the return type of a GCC
13316 builtin and then its argument prototype would still apply. */
13320 char EGifPutExtensionLast ();
13324 return EGifPutExtensionLast ();
13329 if ac_fn_c_try_link
"$LINENO"; then :
13330 ac_cv_lib_gif_EGifPutExtensionLast
=yes
13332 ac_cv_lib_gif_EGifPutExtensionLast
=no
13334 rm -f core conftest.err conftest.
$ac_objext \
13335 conftest
$ac_exeext conftest.
$ac_ext
13336 LIBS
=$ac_check_lib_save_LIBS
13338 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_gif_EGifPutExtensionLast" >&5
13339 $as_echo "$ac_cv_lib_gif_EGifPutExtensionLast" >&6; }
13340 if test "x$ac_cv_lib_gif_EGifPutExtensionLast" = x
""yes; then :
13350 if test "$HAVE_GIF" = yes; then
13352 elif test "$HAVE_GIF" = maybe
; then
13353 # If gif_lib.h but no libgif, try libungif.
13354 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for EGifPutExtensionLast in -lungif" >&5
13355 $as_echo_n "checking for EGifPutExtensionLast in -lungif... " >&6; }
13356 if test "${ac_cv_lib_ungif_EGifPutExtensionLast+set}" = set; then :
13357 $as_echo_n "(cached) " >&6
13359 ac_check_lib_save_LIBS
=$LIBS
13360 LIBS
="-lungif $LIBS"
13361 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
13362 /* end confdefs.h. */
13364 /* Override any GCC internal prototype to avoid an error.
13365 Use char because int might match the return type of a GCC
13366 builtin and then its argument prototype would still apply. */
13370 char EGifPutExtensionLast ();
13374 return EGifPutExtensionLast ();
13379 if ac_fn_c_try_link
"$LINENO"; then :
13380 ac_cv_lib_ungif_EGifPutExtensionLast
=yes
13382 ac_cv_lib_ungif_EGifPutExtensionLast
=no
13384 rm -f core conftest.err conftest.
$ac_objext \
13385 conftest
$ac_exeext conftest.
$ac_ext
13386 LIBS
=$ac_check_lib_save_LIBS
13388 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_ungif_EGifPutExtensionLast" >&5
13389 $as_echo "$ac_cv_lib_ungif_EGifPutExtensionLast" >&6; }
13390 if test "x$ac_cv_lib_ungif_EGifPutExtensionLast" = x
""yes; then :
13396 test "$HAVE_GIF" = yes && LIBGIF
=-lungif
13399 if test "${HAVE_GIF}" = "yes"; then
13401 $as_echo "#define HAVE_GIF 1" >>confdefs.h
13407 if test "${HAVE_X11}" = "yes"; then
13410 test "${with_xpm}" != "no" && test "${HAVE_XPM}" != "yes" &&
13411 MISSING
="libXpm" && WITH_NO
="--with-xpm=no"
13412 test "${with_jpeg}" != "no" && test "${HAVE_JPEG}" != "yes" &&
13413 MISSING
="$MISSING libjpeg" && WITH_NO
="$WITH_NO --with-jpeg=no"
13414 test "${with_png}" != "no" && test "${HAVE_PNG}" != "yes" &&
13415 MISSING
="$MISSING libpng" && WITH_NO
="$WITH_NO --with-png=no"
13416 test "${with_gif}" != "no" && test "${HAVE_GIF}" != "yes" &&
13417 MISSING
="$MISSING libgif/libungif" && WITH_NO
="$WITH_NO --with-gif=no"
13418 test "${with_tiff}" != "no" && test "${HAVE_TIFF}" != "yes" &&
13419 MISSING
="$MISSING libtiff" && WITH_NO
="$WITH_NO --with-tiff=no"
13421 if test "X${MISSING}" != X
; then
13422 as_fn_error
"The following required libraries were not found:
13424 Maybe some development libraries/packages are missing?
13425 If you don't want to link with them give
13427 as options to configure" "$LINENO" 5
13431 ### Use -lgpm if available, unless `--with-gpm=no'.
13434 if test "${with_gpm}" != "no"; then
13435 ac_fn_c_check_header_mongrel
"$LINENO" "gpm.h" "ac_cv_header_gpm_h" "$ac_includes_default"
13436 if test "x$ac_cv_header_gpm_h" = x
""yes; then :
13437 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Gpm_Open in -lgpm" >&5
13438 $as_echo_n "checking for Gpm_Open in -lgpm... " >&6; }
13439 if test "${ac_cv_lib_gpm_Gpm_Open+set}" = set; then :
13440 $as_echo_n "(cached) " >&6
13442 ac_check_lib_save_LIBS
=$LIBS
13444 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
13445 /* end confdefs.h. */
13447 /* Override any GCC internal prototype to avoid an error.
13448 Use char because int might match the return type of a GCC
13449 builtin and then its argument prototype would still apply. */
13457 return Gpm_Open ();
13462 if ac_fn_c_try_link
"$LINENO"; then :
13463 ac_cv_lib_gpm_Gpm_Open
=yes
13465 ac_cv_lib_gpm_Gpm_Open
=no
13467 rm -f core conftest.err conftest.
$ac_objext \
13468 conftest
$ac_exeext conftest.
$ac_ext
13469 LIBS
=$ac_check_lib_save_LIBS
13471 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_gpm_Gpm_Open" >&5
13472 $as_echo "$ac_cv_lib_gpm_Gpm_Open" >&6; }
13473 if test "x$ac_cv_lib_gpm_Gpm_Open" = x
""yes; then :
13481 if test "${HAVE_GPM}" = "yes"; then
13483 $as_echo "#define HAVE_GPM 1" >>confdefs.h
13490 ac_fn_c_check_header_mongrel
"$LINENO" "malloc/malloc.h" "ac_cv_header_malloc_malloc_h" "$ac_includes_default"
13491 if test "x$ac_cv_header_malloc_malloc_h" = x
""yes; then :
13493 $as_echo "#define HAVE_MALLOC_MALLOC_H 1" >>confdefs.h
13500 ### Use NeXTstep API to implement GUI.
13501 if test "${HAVE_NS}" = "yes"; then
13503 $as_echo "#define HAVE_NS 1" >>confdefs.h
13505 if test "${NS_IMPL_COCOA}" = "yes"; then
13507 $as_echo "#define NS_IMPL_COCOA 1" >>confdefs.h
13510 if test "${NS_IMPL_GNUSTEP}" = "yes"; then
13512 $as_echo "#define NS_IMPL_GNUSTEP 1" >>confdefs.h
13514 # See also .m.o rule in Makefile.in */
13515 # FIXME: are all these flags really needed? Document here why. */
13516 C_SWITCH_X_SYSTEM
="-D_REENTRANT -fPIC -fno-strict-aliasing -I${GNUSTEP_SYSTEM_HEADERS} ${GNUSTEP_LOCAL_HEADERS}"
13517 ## Extra CFLAGS applied to src/*.m files.
13518 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"
13520 if test "${NS_HAVE_NSINTEGER}" = "yes"; then
13522 $as_echo "#define NS_HAVE_NSINTEGER 1" >>confdefs.h
13525 # We also have mouse menus.
13531 ### Use session management (-lSM -lICE) if available
13534 if test "${HAVE_X11}" = "yes"; then
13535 ac_fn_c_check_header_mongrel
"$LINENO" "X11/SM/SMlib.h" "ac_cv_header_X11_SM_SMlib_h" "$ac_includes_default"
13536 if test "x$ac_cv_header_X11_SM_SMlib_h" = x
""yes; then :
13537 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for SmcOpenConnection in -lSM" >&5
13538 $as_echo_n "checking for SmcOpenConnection in -lSM... " >&6; }
13539 if test "${ac_cv_lib_SM_SmcOpenConnection+set}" = set; then :
13540 $as_echo_n "(cached) " >&6
13542 ac_check_lib_save_LIBS
=$LIBS
13543 LIBS
="-lSM -lICE $LIBS"
13544 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
13545 /* end confdefs.h. */
13547 /* Override any GCC internal prototype to avoid an error.
13548 Use char because int might match the return type of a GCC
13549 builtin and then its argument prototype would still apply. */
13553 char SmcOpenConnection ();
13557 return SmcOpenConnection ();
13562 if ac_fn_c_try_link
"$LINENO"; then :
13563 ac_cv_lib_SM_SmcOpenConnection
=yes
13565 ac_cv_lib_SM_SmcOpenConnection
=no
13567 rm -f core conftest.err conftest.
$ac_objext \
13568 conftest
$ac_exeext conftest.
$ac_ext
13569 LIBS
=$ac_check_lib_save_LIBS
13571 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_SM_SmcOpenConnection" >&5
13572 $as_echo "$ac_cv_lib_SM_SmcOpenConnection" >&6; }
13573 if test "x$ac_cv_lib_SM_SmcOpenConnection" = x
""yes; then :
13581 if test "${HAVE_X_SM}" = "yes"; then
13583 $as_echo "#define HAVE_X_SM 1" >>confdefs.h
13585 LIBXSM
="-lSM -lICE"
13588 *) LIBS
="$LIBXSM $LIBS" ;;
13594 ### Use libxml (-lxml2) if available
13596 if test "${with_xml2}" != "no"; then
13597 ### I'm not sure what the version number should be, so I just guessed.
13601 # Extract the first word of "pkg-config", so it can be a program name with args.
13602 set dummy pkg-config
; ac_word
=$2
13603 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13604 $as_echo_n "checking for $ac_word... " >&6; }
13605 if test "${ac_cv_path_PKG_CONFIG+set}" = set; then :
13606 $as_echo_n "(cached) " >&6
13608 case $PKG_CONFIG in
13610 ac_cv_path_PKG_CONFIG
="$PKG_CONFIG" # Let the user override the test with a path.
13613 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
13614 for as_dir
in $PATH
13617 test -z "$as_dir" && as_dir
=.
13618 for ac_exec_ext
in '' $ac_executable_extensions; do
13619 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
13620 ac_cv_path_PKG_CONFIG
="$as_dir/$ac_word$ac_exec_ext"
13621 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13628 test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG
="no"
13632 PKG_CONFIG
=$ac_cv_path_PKG_CONFIG
13633 if test -n "$PKG_CONFIG"; then
13634 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5
13635 $as_echo "$PKG_CONFIG" >&6; }
13637 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13638 $as_echo "no" >&6; }
13643 if test "$PKG_CONFIG" = "no" ; then
13646 PKG_CONFIG_MIN_VERSION
=0.9.0
13647 if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
13648 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libxml-2.0 > 2.6.17" >&5
13649 $as_echo_n "checking for libxml-2.0 > 2.6.17... " >&6; }
13651 if $PKG_CONFIG --exists "libxml-2.0 > 2.6.17" 2>&5; then
13652 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
13653 $as_echo "yes" >&6; }
13656 { $as_echo "$as_me:${as_lineno-$LINENO}: checking LIBXML2_CFLAGS" >&5
13657 $as_echo_n "checking LIBXML2_CFLAGS... " >&6; }
13658 LIBXML2_CFLAGS
=`$PKG_CONFIG --cflags "libxml-2.0 > 2.6.17"|sed -e 's,///*,/,g'`
13659 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIBXML2_CFLAGS" >&5
13660 $as_echo "$LIBXML2_CFLAGS" >&6; }
13662 { $as_echo "$as_me:${as_lineno-$LINENO}: checking LIBXML2_LIBS" >&5
13663 $as_echo_n "checking LIBXML2_LIBS... " >&6; }
13664 LIBXML2_LIBS
=`$PKG_CONFIG --libs "libxml-2.0 > 2.6.17"|sed -e 's,///*,/,g'`
13665 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIBXML2_LIBS" >&5
13666 $as_echo "$LIBXML2_LIBS" >&6; }
13668 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13669 $as_echo "no" >&6; }
13672 ## If we have a custom action on failure, don't print errors, but
13673 ## do set a variable so people can do so.
13674 LIBXML2_PKG_ERRORS
=`$PKG_CONFIG --errors-to-stdout --print-errors "libxml-2.0 > 2.6.17"`
13681 echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
13682 echo "*** See http://www.freedesktop.org/software/pkgconfig"
13686 if test $succeeded = yes; then
13692 if test "${HAVE_LIBXML2}" = "yes"; then
13693 LIBS
="$LIBXML2_LIBS $LIBS"
13694 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for htmlReadMemory in -lxml2" >&5
13695 $as_echo_n "checking for htmlReadMemory in -lxml2... " >&6; }
13696 if test "${ac_cv_lib_xml2_htmlReadMemory+set}" = set; then :
13697 $as_echo_n "(cached) " >&6
13699 ac_check_lib_save_LIBS
=$LIBS
13700 LIBS
="-lxml2 $LIBS"
13701 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
13702 /* end confdefs.h. */
13704 /* Override any GCC internal prototype to avoid an error.
13705 Use char because int might match the return type of a GCC
13706 builtin and then its argument prototype would still apply. */
13710 char htmlReadMemory ();
13714 return htmlReadMemory ();
13719 if ac_fn_c_try_link
"$LINENO"; then :
13720 ac_cv_lib_xml2_htmlReadMemory
=yes
13722 ac_cv_lib_xml2_htmlReadMemory
=no
13724 rm -f core conftest.err conftest.
$ac_objext \
13725 conftest
$ac_exeext conftest.
$ac_ext
13726 LIBS
=$ac_check_lib_save_LIBS
13728 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_xml2_htmlReadMemory" >&5
13729 $as_echo "$ac_cv_lib_xml2_htmlReadMemory" >&6; }
13730 if test "x$ac_cv_lib_xml2_htmlReadMemory" = x
""yes; then :
13736 if test "${HAVE_LIBXML2}" = "yes"; then
13738 $as_echo "#define HAVE_LIBXML2 1" >>confdefs.h
13749 # If netdb.h doesn't declare h_errno, we must declare it by hand.
13750 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether netdb declares h_errno" >&5
13751 $as_echo_n "checking whether netdb declares h_errno... " >&6; }
13752 if test "${emacs_cv_netdb_declares_h_errno+set}" = set; then :
13753 $as_echo_n "(cached) " >&6
13755 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
13756 /* end confdefs.h. */
13766 if ac_fn_c_try_link
"$LINENO"; then :
13767 emacs_cv_netdb_declares_h_errno
=yes
13769 emacs_cv_netdb_declares_h_errno
=no
13771 rm -f core conftest.err conftest.
$ac_objext \
13772 conftest
$ac_exeext conftest.
$ac_ext
13774 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $emacs_cv_netdb_declares_h_errno" >&5
13775 $as_echo "$emacs_cv_netdb_declares_h_errno" >&6; }
13776 if test $emacs_cv_netdb_declares_h_errno = yes; then
13778 $as_echo "#define HAVE_H_ERRNO 1" >>confdefs.h
13782 # fmod, logb, and frexp are found in -lm on most systems.
13783 # On HPUX 9.01, -lm does not contain logb, so check for sqrt.
13784 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sqrt in -lm" >&5
13785 $as_echo_n "checking for sqrt in -lm... " >&6; }
13786 if test "${ac_cv_lib_m_sqrt+set}" = set; then :
13787 $as_echo_n "(cached) " >&6
13789 ac_check_lib_save_LIBS
=$LIBS
13791 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
13792 /* end confdefs.h. */
13794 /* Override any GCC internal prototype to avoid an error.
13795 Use char because int might match the return type of a GCC
13796 builtin and then its argument prototype would still apply. */
13809 if ac_fn_c_try_link
"$LINENO"; then :
13810 ac_cv_lib_m_sqrt
=yes
13812 ac_cv_lib_m_sqrt
=no
13814 rm -f core conftest.err conftest.
$ac_objext \
13815 conftest
$ac_exeext conftest.
$ac_ext
13816 LIBS
=$ac_check_lib_save_LIBS
13818 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_m_sqrt" >&5
13819 $as_echo "$ac_cv_lib_m_sqrt" >&6; }
13820 if test "x$ac_cv_lib_m_sqrt" = x
""yes; then :
13821 cat >>confdefs.h
<<_ACEOF
13822 #define HAVE_LIBM 1
13830 # Check for mail-locking functions in a "mail" library. Probably this should
13831 # have the same check as for liblockfile below.
13832 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for maillock in -lmail" >&5
13833 $as_echo_n "checking for maillock in -lmail... " >&6; }
13834 if test "${ac_cv_lib_mail_maillock+set}" = set; then :
13835 $as_echo_n "(cached) " >&6
13837 ac_check_lib_save_LIBS
=$LIBS
13838 LIBS
="-lmail $LIBS"
13839 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
13840 /* end confdefs.h. */
13842 /* Override any GCC internal prototype to avoid an error.
13843 Use char because int might match the return type of a GCC
13844 builtin and then its argument prototype would still apply. */
13852 return maillock ();
13857 if ac_fn_c_try_link
"$LINENO"; then :
13858 ac_cv_lib_mail_maillock
=yes
13860 ac_cv_lib_mail_maillock
=no
13862 rm -f core conftest.err conftest.
$ac_objext \
13863 conftest
$ac_exeext conftest.
$ac_ext
13864 LIBS
=$ac_check_lib_save_LIBS
13866 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_mail_maillock" >&5
13867 $as_echo "$ac_cv_lib_mail_maillock" >&6; }
13868 if test "x$ac_cv_lib_mail_maillock" = x
""yes; then :
13874 if test $have_mail = yes; then
13876 LIBS
="$LIBS_MAIL $LIBS"
13878 $as_echo "#define HAVE_LIBMAIL 1" >>confdefs.h
13883 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for maillock in -llockfile" >&5
13884 $as_echo_n "checking for maillock in -llockfile... " >&6; }
13885 if test "${ac_cv_lib_lockfile_maillock+set}" = set; then :
13886 $as_echo_n "(cached) " >&6
13888 ac_check_lib_save_LIBS
=$LIBS
13889 LIBS
="-llockfile $LIBS"
13890 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
13891 /* end confdefs.h. */
13893 /* Override any GCC internal prototype to avoid an error.
13894 Use char because int might match the return type of a GCC
13895 builtin and then its argument prototype would still apply. */
13903 return maillock ();
13908 if ac_fn_c_try_link
"$LINENO"; then :
13909 ac_cv_lib_lockfile_maillock
=yes
13911 ac_cv_lib_lockfile_maillock
=no
13913 rm -f core conftest.err conftest.
$ac_objext \
13914 conftest
$ac_exeext conftest.
$ac_ext
13915 LIBS
=$ac_check_lib_save_LIBS
13917 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_lockfile_maillock" >&5
13918 $as_echo "$ac_cv_lib_lockfile_maillock" >&6; }
13919 if test "x$ac_cv_lib_lockfile_maillock" = x
""yes; then :
13925 if test $have_lockfile = yes; then
13926 LIBS_MAIL
=-llockfile
13927 LIBS
="$LIBS_MAIL $LIBS"
13929 $as_echo "#define HAVE_LIBLOCKFILE 1" >>confdefs.h
13932 # If we have the shared liblockfile, assume we must use it for mail
13933 # locking (e.g. Debian). If we couldn't link against liblockfile
13934 # (no liblockfile.a installed), ensure that we don't need to.
13935 # Extract the first word of "liblockfile.so", so it can be a program name with args.
13936 set dummy liblockfile.so
; ac_word
=$2
13937 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13938 $as_echo_n "checking for $ac_word... " >&6; }
13939 if test "${ac_cv_prog_liblockfile+set}" = set; then :
13940 $as_echo_n "(cached) " >&6
13942 if test -n "$liblockfile"; then
13943 ac_cv_prog_liblockfile
="$liblockfile" # Let the user override the test.
13945 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
13946 as_dummy
="/usr/lib:/lib:/usr/local/lib:$LD_LIBRARY_PATH"
13947 for as_dir
in $as_dummy
13950 test -z "$as_dir" && as_dir
=.
13951 for ac_exec_ext
in '' $ac_executable_extensions; do
13952 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
13953 ac_cv_prog_liblockfile
="yes"
13954 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13961 test -z "$ac_cv_prog_liblockfile" && ac_cv_prog_liblockfile
="no"
13964 liblockfile
=$ac_cv_prog_liblockfile
13965 if test -n "$liblockfile"; then
13966 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $liblockfile" >&5
13967 $as_echo "$liblockfile" >&6; }
13969 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13970 $as_echo "no" >&6; }
13974 if test $ac_cv_prog_liblockfile = yes; then
13975 as_fn_error
"Shared liblockfile found but can't link against it.
13976 This probably means that movemail could lose mail.
13977 There may be a \`development' package to install containing liblockfile." "$LINENO" 5
13980 for ac_func
in touchlock
13982 ac_fn_c_check_func
"$LINENO" "touchlock" "ac_cv_func_touchlock"
13983 if test "x$ac_cv_func_touchlock" = x
""yes; then :
13984 cat >>confdefs.h
<<_ACEOF
13985 #define HAVE_TOUCHLOCK 1
13991 for ac_header
in maillock.h
13993 ac_fn_c_check_header_mongrel
"$LINENO" "maillock.h" "ac_cv_header_maillock_h" "$ac_includes_default"
13994 if test "x$ac_cv_header_maillock_h" = x
""yes; then :
13995 cat >>confdefs.h
<<_ACEOF
13996 #define HAVE_MAILLOCK_H 1
14005 ## Define MAIL_USE_FLOCK (or LOCKF) if the mailer uses flock (or lockf) to
14006 ## interlock access to the mail spool. The alternative is a lock file named
14007 ## /usr/spool/mail/$USER.lock.
14010 aix4-2
) mail_lock
="lockf" ;;
14012 gnu|freebsd|netbsd|openbsd|darwin|irix6-5
) mail_lock
="flock" ;;
14014 ## On GNU/Linux systems, both methods are used by various mail programs.
14015 ## I assume most people are using newer mailers that have heard of flock.
14016 ## Change this if you need to.
14017 ## Debian contains a patch which says: ``On Debian/GNU/Linux systems,
14018 ## configure gets the right answers, and that means *NOT* using flock.
14019 ## Using flock is guaranteed to be the wrong thing. See Debian Policy
14020 ## for details.'' and then uses `#ifdef DEBIAN'. Unfortunately the
14021 ## Debian maintainer hasn't provided a clean fix for Emacs.
14022 ## movemail.c will use `maillock' when MAILDIR, HAVE_LIBMAIL and
14023 ## HAVE_MAILLOCK_H are defined, so the following appears to be the
14024 ## correct logic. -- fx
14025 ## We must check for HAVE_LIBLOCKFILE too, as movemail does.
14026 ## liblockfile is a Free Software replacement for libmail, used on
14027 ## Debian systems and elsewhere. -rfr.
14030 if test $have_mail = yes ||
test $have_lockfile = yes; then
14031 test $ac_cv_header_maillock_h = yes && mail_lock
=no
14037 case "$mail_lock" in
14039 $as_echo "#define MAIL_USE_FLOCK 1" >>confdefs.h
14043 $as_echo "#define MAIL_USE_LOCKF 1" >>confdefs.h
14046 *) BLESSMAIL_TARGET
="need-blessmail" ;;
14051 for ac_func
in gethostname getdomainname \
14052 rename closedir mkdir
rmdir sysinfo getrusage get_current_dir_name \
14053 random lrand48 logb frexp fmod rint cbrt ftime setsid \
14054 strerror fpathconf
select euidaccess getpagesize tzset setlocale \
14055 utimes getrlimit setrlimit setpgid getcwd getwd shutdown getaddrinfo \
14056 __fpending mblen mbrlen mbsinit strsignal setitimer ualarm \
14057 sendto recvfrom getsockopt setsockopt getsockname getpeername \
14058 gai_strerror mkstemp getline getdelim mremap fsync sync \
14059 difftime mempcpy mblen mbrlen posix_memalign \
14060 cfmakeraw cfsetspeed copysign __executable_start
14062 as_ac_var
=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
14063 ac_fn_c_check_func
"$LINENO" "$ac_func" "$as_ac_var"
14064 eval as_val
=\$
$as_ac_var
14065 if test "x$as_val" = x
""yes; then :
14066 cat >>confdefs.h
<<_ACEOF
14067 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
14074 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for __builtin_unwind_init" >&5
14075 $as_echo_n "checking for __builtin_unwind_init... " >&6; }
14076 if test "${emacs_cv_func___builtin_unwind_init+set}" = set; then :
14077 $as_echo_n "(cached) " >&6
14079 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
14080 /* end confdefs.h. */
14085 __builtin_unwind_init ();
14090 if ac_fn_c_try_link
"$LINENO"; then :
14091 emacs_cv_func___builtin_unwind_init
=yes
14093 emacs_cv_func___builtin_unwind_init
=no
14095 rm -f core conftest.err conftest.
$ac_objext \
14096 conftest
$ac_exeext conftest.
$ac_ext
14098 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $emacs_cv_func___builtin_unwind_init" >&5
14099 $as_echo "$emacs_cv_func___builtin_unwind_init" >&6; }
14100 if test $emacs_cv_func___builtin_unwind_init = yes; then
14102 $as_echo "#define HAVE___BUILTIN_UNWIND_INIT 1" >>confdefs.h
14106 for ac_header
in sys
/un.h
14108 ac_fn_c_check_header_mongrel
"$LINENO" "sys/un.h" "ac_cv_header_sys_un_h" "$ac_includes_default"
14109 if test "x$ac_cv_header_sys_un_h" = x
""yes; then :
14110 cat >>confdefs.h
<<_ACEOF
14111 #define HAVE_SYS_UN_H 1
14119 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _LARGEFILE_SOURCE value needed for large files" >&5
14120 $as_echo_n "checking for _LARGEFILE_SOURCE value needed for large files... " >&6; }
14121 if test "${ac_cv_sys_largefile_source+set}" = set; then :
14122 $as_echo_n "(cached) " >&6
14125 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
14126 /* end confdefs.h. */
14127 #include <sys/types.h> /* for off_t */
14132 int (*fp) (FILE *, off_t, int) = fseeko;
14133 return fseeko (stdin, 0, 0) && fp (stdin, 0, 0);
14138 if ac_fn_c_try_link
"$LINENO"; then :
14139 ac_cv_sys_largefile_source
=no
; break
14141 rm -f core conftest.err conftest.
$ac_objext \
14142 conftest
$ac_exeext conftest.
$ac_ext
14143 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
14144 /* end confdefs.h. */
14145 #define _LARGEFILE_SOURCE 1
14146 #include <sys/types.h> /* for off_t */
14151 int (*fp) (FILE *, off_t, int) = fseeko;
14152 return fseeko (stdin, 0, 0) && fp (stdin, 0, 0);
14157 if ac_fn_c_try_link
"$LINENO"; then :
14158 ac_cv_sys_largefile_source
=1; break
14160 rm -f core conftest.err conftest.
$ac_objext \
14161 conftest
$ac_exeext conftest.
$ac_ext
14162 ac_cv_sys_largefile_source
=unknown
14166 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_largefile_source" >&5
14167 $as_echo "$ac_cv_sys_largefile_source" >&6; }
14168 case $ac_cv_sys_largefile_source in #(
14171 cat >>confdefs.h
<<_ACEOF
14172 #define _LARGEFILE_SOURCE $ac_cv_sys_largefile_source
14178 # We used to try defining _XOPEN_SOURCE=500 too, to work around a bug
14179 # in glibc 2.1.3, but that breaks too many other things.
14180 # If you want fseeko and ftello with glibc, upgrade to a fixed glibc.
14181 if test $ac_cv_sys_largefile_source != unknown
; then
14183 $as_echo "#define HAVE_FSEEKO 1" >>confdefs.h
14188 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether getpgrp requires zero arguments" >&5
14189 $as_echo_n "checking whether getpgrp requires zero arguments... " >&6; }
14190 if test "${ac_cv_func_getpgrp_void+set}" = set; then :
14191 $as_echo_n "(cached) " >&6
14193 # Use it with a single arg.
14194 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
14195 /* end confdefs.h. */
14196 $ac_includes_default
14205 if ac_fn_c_try_compile
"$LINENO"; then :
14206 ac_cv_func_getpgrp_void
=no
14208 ac_cv_func_getpgrp_void
=yes
14210 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
14213 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_getpgrp_void" >&5
14214 $as_echo "$ac_cv_func_getpgrp_void" >&6; }
14215 if test $ac_cv_func_getpgrp_void = yes; then
14217 $as_echo "#define GETPGRP_VOID 1" >>confdefs.h
14223 for ac_func
in grantpt
14225 ac_fn_c_check_func
"$LINENO" "grantpt" "ac_cv_func_grantpt"
14226 if test "x$ac_cv_func_grantpt" = x
""yes; then :
14227 cat >>confdefs.h
<<_ACEOF
14228 #define HAVE_GRANTPT 1
14235 # PTY-related GNU extensions.
14236 for ac_func
in getpt
14238 ac_fn_c_check_func
"$LINENO" "getpt" "ac_cv_func_getpt"
14239 if test "x$ac_cv_func_getpt" = x
""yes; then :
14240 cat >>confdefs.h
<<_ACEOF
14241 #define HAVE_GETPT 1
14248 # Check this now, so that we will NOT find the above functions in ncurses.
14249 # That is because we have not set up to link ncurses in lib-src.
14250 # It's better to believe a function is not available
14251 # than to expect to find it in ncurses.
14252 # Also we need tputs and friends to be able to build at all.
14253 have_tputs_et_al
=true
14254 # Maybe curses should be tried earlier?
14255 # See http://debbugs.gnu.org/cgi/bugreport.cgi?bug=9736#35
14256 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing tputs" >&5
14257 $as_echo_n "checking for library containing tputs... " >&6; }
14258 if test "${ac_cv_search_tputs+set}" = set; then :
14259 $as_echo_n "(cached) " >&6
14261 ac_func_search_save_LIBS
=$LIBS
14262 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
14263 /* end confdefs.h. */
14265 /* Override any GCC internal prototype to avoid an error.
14266 Use char because int might match the return type of a GCC
14267 builtin and then its argument prototype would still apply. */
14280 for ac_lib
in '' ncurses terminfo termcap curses
; do
14281 if test -z "$ac_lib"; then
14282 ac_res
="none required"
14285 LIBS
="-l$ac_lib $ac_func_search_save_LIBS"
14287 if ac_fn_c_try_link
"$LINENO"; then :
14288 ac_cv_search_tputs
=$ac_res
14290 rm -f core conftest.err conftest.
$ac_objext \
14292 if test "${ac_cv_search_tputs+set}" = set; then :
14296 if test "${ac_cv_search_tputs+set}" = set; then :
14299 ac_cv_search_tputs
=no
14301 rm conftest.
$ac_ext
14302 LIBS
=$ac_func_search_save_LIBS
14304 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_tputs" >&5
14305 $as_echo "$ac_cv_search_tputs" >&6; }
14306 ac_res
=$ac_cv_search_tputs
14307 if test "$ac_res" != no
; then :
14308 test "$ac_res" = "none required" || LIBS
="$ac_res $LIBS"
14311 have_tputs_et_al
=false
14314 if test "$have_tputs_et_al" != true
; then
14315 as_fn_error
"The required function \`tputs' was not found in any library.
14316 These libraries were tried: libncurses, libterminfo, libtermcap, libcurses.
14317 Please try installing whichever of these libraries is most appropriate
14318 for your system, together with its header files.
14319 For example, a libncurses-dev(el) or similar package." "$LINENO" 5
14321 # Must define this when any termcap library is found.
14323 $as_echo "#define HAVE_LIBNCURSES 1" >>confdefs.h
14325 ## FIXME This was the cpp logic, but I am not sure it is right.
14326 ## The above test has not necessarily found libncurses.
14327 HAVE_LIBNCURSES
=yes
14329 ## Use terminfo instead of termcap?
14330 ## Note only system files NOT using terminfo are:
14331 ## freebsd < 40000, ms-w32, msdos, netbsd < 599002500, and
14332 ## darwin|gnu without ncurses.
14336 ## cygwin: Fewer environment variables to go wrong, more terminal types.
14337 ## hpux10-20: Use the system provided termcap(3) library.
14338 ## openbsd: David Mazieres <dm@reeducation-labor.lcs.mit.edu> says this
14339 ## is necessary. Otherwise Emacs dumps core when run -nw.
14340 aix4-2|cygwin|hpux
*|irix6-5|openbsd|sol2
*|unixware
) TERMINFO
=yes ;;
14342 ## darwin: Prevents crashes when running Emacs in Terminal.app under 10.2.
14343 ## The ncurses library has been moved out of the System framework in
14344 ## Mac OS X 10.2. So if configure detects it, set the command-line
14345 ## option to use it.
14347 ## (HAVE_LIBNCURSES was not always true, but is since 2010-03-18.)
14348 if test "x$HAVE_LIBNCURSES" = "xyes"; then
14350 LIBS_TERMCAP
="-lncurses"
14355 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether FreeBSD is new enough to use terminfo" >&5
14356 $as_echo_n "checking whether FreeBSD is new enough to use terminfo... " >&6; }
14357 if test "${emacs_cv_freebsd_terminfo+set}" = set; then :
14358 $as_echo_n "(cached) " >&6
14360 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
14361 /* end confdefs.h. */
14362 #include <osreldate.h>
14366 #if __FreeBSD_version < 400000
14374 if ac_fn_c_try_link
"$LINENO"; then :
14375 emacs_cv_freebsd_terminfo
=yes
14377 emacs_cv_freebsd_terminfo
=no
14379 rm -f core conftest.err conftest.
$ac_objext \
14380 conftest
$ac_exeext conftest.
$ac_ext
14384 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $emacs_cv_freebsd_terminfo" >&5
14385 $as_echo "$emacs_cv_freebsd_terminfo" >&6; }
14387 if test $emacs_cv_freebsd_terminfo = yes; then
14389 LIBS_TERMCAP
="-lncurses"
14391 LIBS_TERMCAP
="-ltermcap"
14396 if test $ac_cv_search_tputs = -lterminfo; then
14398 LIBS_TERMCAP
="-lterminfo"
14400 LIBS_TERMCAP
="-ltermcap"
14407 ## hpux: Make sure we get select from libc rather than from libcurses
14408 ## because libcurses on HPUX 10.10 has a broken version of select.
14409 ## We used to use -lc -lcurses, but this may be cleaner.
14410 hpux
*) LIBS_TERMCAP
="-ltermcap" ;;
14412 openbsd
) LIBS_TERMCAP
="-lncurses" ;;
14414 ## Must use system termcap, if we use any termcap. It does special things.
14415 sol2
*) test "$TERMINFO" != yes && LIBS_TERMCAP
="-ltermcap" ;;
14418 TERMCAP_OBJ
=tparam.o
14419 if test $TERMINFO = yes; then
14421 $as_echo "#define TERMINFO 1" >>confdefs.h
14424 ## Default used to be -ltermcap. Add a case above if need something else.
14425 test "x$LIBS_TERMCAP" = "x" && LIBS_TERMCAP
="-lcurses"
14427 TERMCAP_OBJ
=terminfo.o
14433 # Do we have res_init, for detecting changes in /etc/resolv.conf?
14435 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
14436 /* end confdefs.h. */
14437 #include <netinet/in.h>
14438 #include <arpa/nameser.h>
14439 #include <resolv.h>
14448 if ac_fn_c_try_link
"$LINENO"; then :
14453 rm -f core conftest.err conftest.
$ac_objext \
14454 conftest
$ac_exeext conftest.
$ac_ext
14455 if test "$have_res_init" = no
; then
14457 LIBS
="$LIBS -lresolv"
14458 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for res_init with -lresolv" >&5
14459 $as_echo_n "checking for res_init with -lresolv... " >&6; }
14460 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
14461 /* end confdefs.h. */
14462 #include <netinet/in.h>
14463 #include <arpa/nameser.h>
14464 #include <resolv.h>
14473 if ac_fn_c_try_link
"$LINENO"; then :
14478 rm -f core conftest.err conftest.
$ac_objext \
14479 conftest
$ac_exeext conftest.
$ac_ext
14480 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_res_init" >&5
14481 $as_echo "$have_res_init" >&6; }
14482 if test "$have_res_init" = yes ; then
14488 if test "$have_res_init" = yes; then
14490 $as_echo "#define HAVE_RES_INIT 1" >>confdefs.h
14494 # Do we need the Hesiod library to provide the support routines?
14496 if test "$with_hesiod" != no
; then
14497 # Don't set $LIBS here -- see comments above. FIXME which comments?
14498 ac_fn_c_check_func
"$LINENO" "res_send" "ac_cv_func_res_send"
14499 if test "x$ac_cv_func_res_send" = x
""yes; then :
14502 ac_fn_c_check_func
"$LINENO" "__res_send" "ac_cv_func___res_send"
14503 if test "x$ac_cv_func___res_send" = x
""yes; then :
14506 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for res_send in -lresolv" >&5
14507 $as_echo_n "checking for res_send in -lresolv... " >&6; }
14508 if test "${ac_cv_lib_resolv_res_send+set}" = set; then :
14509 $as_echo_n "(cached) " >&6
14511 ac_check_lib_save_LIBS
=$LIBS
14512 LIBS
="-lresolv $LIBS"
14513 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
14514 /* end confdefs.h. */
14516 /* Override any GCC internal prototype to avoid an error.
14517 Use char because int might match the return type of a GCC
14518 builtin and then its argument prototype would still apply. */
14526 return res_send ();
14531 if ac_fn_c_try_link
"$LINENO"; then :
14532 ac_cv_lib_resolv_res_send
=yes
14534 ac_cv_lib_resolv_res_send
=no
14536 rm -f core conftest.err conftest.
$ac_objext \
14537 conftest
$ac_exeext conftest.
$ac_ext
14538 LIBS
=$ac_check_lib_save_LIBS
14540 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_resolv_res_send" >&5
14541 $as_echo "$ac_cv_lib_resolv_res_send" >&6; }
14542 if test "x$ac_cv_lib_resolv_res_send" = x
""yes; then :
14545 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for __res_send in -lresolv" >&5
14546 $as_echo_n "checking for __res_send in -lresolv... " >&6; }
14547 if test "${ac_cv_lib_resolv___res_send+set}" = set; then :
14548 $as_echo_n "(cached) " >&6
14550 ac_check_lib_save_LIBS
=$LIBS
14551 LIBS
="-lresolv $LIBS"
14552 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
14553 /* end confdefs.h. */
14555 /* Override any GCC internal prototype to avoid an error.
14556 Use char because int might match the return type of a GCC
14557 builtin and then its argument prototype would still apply. */
14561 char __res_send ();
14565 return __res_send ();
14570 if ac_fn_c_try_link
"$LINENO"; then :
14571 ac_cv_lib_resolv___res_send
=yes
14573 ac_cv_lib_resolv___res_send
=no
14575 rm -f core conftest.err conftest.
$ac_objext \
14576 conftest
$ac_exeext conftest.
$ac_ext
14577 LIBS
=$ac_check_lib_save_LIBS
14579 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_resolv___res_send" >&5
14580 $as_echo "$ac_cv_lib_resolv___res_send" >&6; }
14581 if test "x$ac_cv_lib_resolv___res_send" = x
""yes; then :
14591 if test "$resolv" = yes ; then
14596 ac_fn_c_check_func
"$LINENO" "hes_getmailhost" "ac_cv_func_hes_getmailhost"
14597 if test "x$ac_cv_func_hes_getmailhost" = x
""yes; then :
14600 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for hes_getmailhost in -lhesiod" >&5
14601 $as_echo_n "checking for hes_getmailhost in -lhesiod... " >&6; }
14602 if test "${ac_cv_lib_hesiod_hes_getmailhost+set}" = set; then :
14603 $as_echo_n "(cached) " >&6
14605 ac_check_lib_save_LIBS
=$LIBS
14606 LIBS
="-lhesiod $RESOLVLIB $LIBS"
14607 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
14608 /* end confdefs.h. */
14610 /* Override any GCC internal prototype to avoid an error.
14611 Use char because int might match the return type of a GCC
14612 builtin and then its argument prototype would still apply. */
14616 char hes_getmailhost ();
14620 return hes_getmailhost ();
14625 if ac_fn_c_try_link
"$LINENO"; then :
14626 ac_cv_lib_hesiod_hes_getmailhost
=yes
14628 ac_cv_lib_hesiod_hes_getmailhost
=no
14630 rm -f core conftest.err conftest.
$ac_objext \
14631 conftest
$ac_exeext conftest.
$ac_ext
14632 LIBS
=$ac_check_lib_save_LIBS
14634 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_hesiod_hes_getmailhost" >&5
14635 $as_echo "$ac_cv_lib_hesiod_hes_getmailhost" >&6; }
14636 if test "x$ac_cv_lib_hesiod_hes_getmailhost" = x
""yes; then :
14645 if test x
"$hesiod" = xyes
; then
14647 $as_echo "#define HAVE_LIBHESIOD 1" >>confdefs.h
14654 # Do we need libresolv (due to res_init or Hesiod)?
14655 if test "$resolv" = yes ; then
14657 $as_echo "#define HAVE_LIBRESOLV 1" >>confdefs.h
14665 # These tell us which Kerberos-related libraries to use.
14672 if test "${with_kerberos}" != no
; then
14673 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for com_err in -lcom_err" >&5
14674 $as_echo_n "checking for com_err in -lcom_err... " >&6; }
14675 if test "${ac_cv_lib_com_err_com_err+set}" = set; then :
14676 $as_echo_n "(cached) " >&6
14678 ac_check_lib_save_LIBS
=$LIBS
14679 LIBS
="-lcom_err $LIBS"
14680 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
14681 /* end confdefs.h. */
14683 /* Override any GCC internal prototype to avoid an error.
14684 Use char because int might match the return type of a GCC
14685 builtin and then its argument prototype would still apply. */
14698 if ac_fn_c_try_link
"$LINENO"; then :
14699 ac_cv_lib_com_err_com_err
=yes
14701 ac_cv_lib_com_err_com_err
=no
14703 rm -f core conftest.err conftest.
$ac_objext \
14704 conftest
$ac_exeext conftest.
$ac_ext
14705 LIBS
=$ac_check_lib_save_LIBS
14707 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_com_err_com_err" >&5
14708 $as_echo "$ac_cv_lib_com_err_com_err" >&6; }
14709 if test "x$ac_cv_lib_com_err_com_err" = x
""yes; then :
14715 if test $have_com_err = yes; then
14716 COM_ERRLIB
=-lcom_err
14717 LIBS
="$COM_ERRLIB $LIBS"
14719 $as_echo "#define HAVE_LIBCOM_ERR 1" >>confdefs.h
14722 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for mit_des_cbc_encrypt in -lcrypto" >&5
14723 $as_echo_n "checking for mit_des_cbc_encrypt in -lcrypto... " >&6; }
14724 if test "${ac_cv_lib_crypto_mit_des_cbc_encrypt+set}" = set; then :
14725 $as_echo_n "(cached) " >&6
14727 ac_check_lib_save_LIBS
=$LIBS
14728 LIBS
="-lcrypto $LIBS"
14729 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
14730 /* end confdefs.h. */
14732 /* Override any GCC internal prototype to avoid an error.
14733 Use char because int might match the return type of a GCC
14734 builtin and then its argument prototype would still apply. */
14738 char mit_des_cbc_encrypt ();
14742 return mit_des_cbc_encrypt ();
14747 if ac_fn_c_try_link
"$LINENO"; then :
14748 ac_cv_lib_crypto_mit_des_cbc_encrypt
=yes
14750 ac_cv_lib_crypto_mit_des_cbc_encrypt
=no
14752 rm -f core conftest.err conftest.
$ac_objext \
14753 conftest
$ac_exeext conftest.
$ac_ext
14754 LIBS
=$ac_check_lib_save_LIBS
14756 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_crypto_mit_des_cbc_encrypt" >&5
14757 $as_echo "$ac_cv_lib_crypto_mit_des_cbc_encrypt" >&6; }
14758 if test "x$ac_cv_lib_crypto_mit_des_cbc_encrypt" = x
""yes; then :
14764 if test $have_crypto = yes; then
14766 LIBS
="$CRYPTOLIB $LIBS"
14768 $as_echo "#define HAVE_LIBCRYPTO 1" >>confdefs.h
14771 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for mit_des_cbc_encrypt in -lk5crypto" >&5
14772 $as_echo_n "checking for mit_des_cbc_encrypt in -lk5crypto... " >&6; }
14773 if test "${ac_cv_lib_k5crypto_mit_des_cbc_encrypt+set}" = set; then :
14774 $as_echo_n "(cached) " >&6
14776 ac_check_lib_save_LIBS
=$LIBS
14777 LIBS
="-lk5crypto $LIBS"
14778 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
14779 /* end confdefs.h. */
14781 /* Override any GCC internal prototype to avoid an error.
14782 Use char because int might match the return type of a GCC
14783 builtin and then its argument prototype would still apply. */
14787 char mit_des_cbc_encrypt ();
14791 return mit_des_cbc_encrypt ();
14796 if ac_fn_c_try_link
"$LINENO"; then :
14797 ac_cv_lib_k5crypto_mit_des_cbc_encrypt
=yes
14799 ac_cv_lib_k5crypto_mit_des_cbc_encrypt
=no
14801 rm -f core conftest.err conftest.
$ac_objext \
14802 conftest
$ac_exeext conftest.
$ac_ext
14803 LIBS
=$ac_check_lib_save_LIBS
14805 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_k5crypto_mit_des_cbc_encrypt" >&5
14806 $as_echo "$ac_cv_lib_k5crypto_mit_des_cbc_encrypt" >&6; }
14807 if test "x$ac_cv_lib_k5crypto_mit_des_cbc_encrypt" = x
""yes; then :
14813 if test $have_k5crypto = yes; then
14814 CRYPTOLIB
=-lk5crypto
14815 LIBS
="$CRYPTOLIB $LIBS"
14817 $as_echo "#define HAVE_LIBK5CRYPTO 1" >>confdefs.h
14820 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for krb5_init_context in -lkrb5" >&5
14821 $as_echo_n "checking for krb5_init_context in -lkrb5... " >&6; }
14822 if test "${ac_cv_lib_krb5_krb5_init_context+set}" = set; then :
14823 $as_echo_n "(cached) " >&6
14825 ac_check_lib_save_LIBS
=$LIBS
14826 LIBS
="-lkrb5 $LIBS"
14827 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
14828 /* end confdefs.h. */
14830 /* Override any GCC internal prototype to avoid an error.
14831 Use char because int might match the return type of a GCC
14832 builtin and then its argument prototype would still apply. */
14836 char krb5_init_context ();
14840 return krb5_init_context ();
14845 if ac_fn_c_try_link
"$LINENO"; then :
14846 ac_cv_lib_krb5_krb5_init_context
=yes
14848 ac_cv_lib_krb5_krb5_init_context
=no
14850 rm -f core conftest.err conftest.
$ac_objext \
14851 conftest
$ac_exeext conftest.
$ac_ext
14852 LIBS
=$ac_check_lib_save_LIBS
14854 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_krb5_krb5_init_context" >&5
14855 $as_echo "$ac_cv_lib_krb5_krb5_init_context" >&6; }
14856 if test "x$ac_cv_lib_krb5_krb5_init_context" = x
""yes; then :
14862 if test $have_krb5=yes; then
14864 LIBS
="$KRB5LIB $LIBS"
14866 $as_echo "#define HAVE_LIBKRB5 1" >>confdefs.h
14869 if test "${with_kerberos5}" = no
; then
14870 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for des_cbc_encrypt in -ldes425" >&5
14871 $as_echo_n "checking for des_cbc_encrypt in -ldes425... " >&6; }
14872 if test "${ac_cv_lib_des425_des_cbc_encrypt+set}" = set; then :
14873 $as_echo_n "(cached) " >&6
14875 ac_check_lib_save_LIBS
=$LIBS
14876 LIBS
="-ldes425 $LIBS"
14877 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
14878 /* end confdefs.h. */
14880 /* Override any GCC internal prototype to avoid an error.
14881 Use char because int might match the return type of a GCC
14882 builtin and then its argument prototype would still apply. */
14886 char des_cbc_encrypt ();
14890 return des_cbc_encrypt ();
14895 if ac_fn_c_try_link
"$LINENO"; then :
14896 ac_cv_lib_des425_des_cbc_encrypt
=yes
14898 ac_cv_lib_des425_des_cbc_encrypt
=no
14900 rm -f core conftest.err conftest.
$ac_objext \
14901 conftest
$ac_exeext conftest.
$ac_ext
14902 LIBS
=$ac_check_lib_save_LIBS
14904 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_des425_des_cbc_encrypt" >&5
14905 $as_echo "$ac_cv_lib_des425_des_cbc_encrypt" >&6; }
14906 if test "x$ac_cv_lib_des425_des_cbc_encrypt" = x
""yes; then :
14912 if test $have_des425 = yes; then
14914 LIBS
="$DESLIB $LIBS"
14916 $as_echo "#define HAVE_LIBDES425 1" >>confdefs.h
14919 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for des_cbc_encrypt in -ldes" >&5
14920 $as_echo_n "checking for des_cbc_encrypt in -ldes... " >&6; }
14921 if test "${ac_cv_lib_des_des_cbc_encrypt+set}" = set; then :
14922 $as_echo_n "(cached) " >&6
14924 ac_check_lib_save_LIBS
=$LIBS
14926 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
14927 /* end confdefs.h. */
14929 /* Override any GCC internal prototype to avoid an error.
14930 Use char because int might match the return type of a GCC
14931 builtin and then its argument prototype would still apply. */
14935 char des_cbc_encrypt ();
14939 return des_cbc_encrypt ();
14944 if ac_fn_c_try_link
"$LINENO"; then :
14945 ac_cv_lib_des_des_cbc_encrypt
=yes
14947 ac_cv_lib_des_des_cbc_encrypt
=no
14949 rm -f core conftest.err conftest.
$ac_objext \
14950 conftest
$ac_exeext conftest.
$ac_ext
14951 LIBS
=$ac_check_lib_save_LIBS
14953 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_des_des_cbc_encrypt" >&5
14954 $as_echo "$ac_cv_lib_des_des_cbc_encrypt" >&6; }
14955 if test "x$ac_cv_lib_des_des_cbc_encrypt" = x
""yes; then :
14961 if test $have_des = yes; then
14963 LIBS
="$DESLIB $LIBS"
14965 $as_echo "#define HAVE_LIBDES 1" >>confdefs.h
14969 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for krb_get_cred in -lkrb4" >&5
14970 $as_echo_n "checking for krb_get_cred in -lkrb4... " >&6; }
14971 if test "${ac_cv_lib_krb4_krb_get_cred+set}" = set; then :
14972 $as_echo_n "(cached) " >&6
14974 ac_check_lib_save_LIBS
=$LIBS
14975 LIBS
="-lkrb4 $LIBS"
14976 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
14977 /* end confdefs.h. */
14979 /* Override any GCC internal prototype to avoid an error.
14980 Use char because int might match the return type of a GCC
14981 builtin and then its argument prototype would still apply. */
14985 char krb_get_cred ();
14989 return krb_get_cred ();
14994 if ac_fn_c_try_link
"$LINENO"; then :
14995 ac_cv_lib_krb4_krb_get_cred
=yes
14997 ac_cv_lib_krb4_krb_get_cred
=no
14999 rm -f core conftest.err conftest.
$ac_objext \
15000 conftest
$ac_exeext conftest.
$ac_ext
15001 LIBS
=$ac_check_lib_save_LIBS
15003 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_krb4_krb_get_cred" >&5
15004 $as_echo "$ac_cv_lib_krb4_krb_get_cred" >&6; }
15005 if test "x$ac_cv_lib_krb4_krb_get_cred" = x
""yes; then :
15011 if test $have_krb4 = yes; then
15013 LIBS
="$KRB4LIB $LIBS"
15015 $as_echo "#define HAVE_LIBKRB4 1" >>confdefs.h
15018 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for krb_get_cred in -lkrb" >&5
15019 $as_echo_n "checking for krb_get_cred in -lkrb... " >&6; }
15020 if test "${ac_cv_lib_krb_krb_get_cred+set}" = set; then :
15021 $as_echo_n "(cached) " >&6
15023 ac_check_lib_save_LIBS
=$LIBS
15025 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
15026 /* end confdefs.h. */
15028 /* Override any GCC internal prototype to avoid an error.
15029 Use char because int might match the return type of a GCC
15030 builtin and then its argument prototype would still apply. */
15034 char krb_get_cred ();
15038 return krb_get_cred ();
15043 if ac_fn_c_try_link
"$LINENO"; then :
15044 ac_cv_lib_krb_krb_get_cred
=yes
15046 ac_cv_lib_krb_krb_get_cred
=no
15048 rm -f core conftest.err conftest.
$ac_objext \
15049 conftest
$ac_exeext conftest.
$ac_ext
15050 LIBS
=$ac_check_lib_save_LIBS
15052 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_krb_krb_get_cred" >&5
15053 $as_echo "$ac_cv_lib_krb_krb_get_cred" >&6; }
15054 if test "x$ac_cv_lib_krb_krb_get_cred" = x
""yes; then :
15060 if test $have_krb = yes; then
15062 LIBS
="$KRB4LIB $LIBS"
15064 $as_echo "#define HAVE_LIBKRB 1" >>confdefs.h
15070 if test "${with_kerberos5}" != no
; then
15071 for ac_header
in krb5.h
15073 ac_fn_c_check_header_mongrel
"$LINENO" "krb5.h" "ac_cv_header_krb5_h" "$ac_includes_default"
15074 if test "x$ac_cv_header_krb5_h" = x
""yes; then :
15075 cat >>confdefs.h
<<_ACEOF
15076 #define HAVE_KRB5_H 1
15078 ac_fn_c_check_member
"$LINENO" "krb5_error" "text" "ac_cv_member_krb5_error_text" "#include <krb5.h>
15080 if test "x$ac_cv_member_krb5_error_text" = x
""yes; then :
15082 cat >>confdefs.h
<<_ACEOF
15083 #define HAVE_KRB5_ERROR_TEXT 1
15088 ac_fn_c_check_member
"$LINENO" "krb5_error" "e_text" "ac_cv_member_krb5_error_e_text" "#include <krb5.h>
15090 if test "x$ac_cv_member_krb5_error_e_text" = x
""yes; then :
15092 cat >>confdefs.h
<<_ACEOF
15093 #define HAVE_KRB5_ERROR_E_TEXT 1
15104 for ac_header
in des.h
15106 ac_fn_c_check_header_mongrel
"$LINENO" "des.h" "ac_cv_header_des_h" "$ac_includes_default"
15107 if test "x$ac_cv_header_des_h" = x
""yes; then :
15108 cat >>confdefs.h
<<_ACEOF
15109 #define HAVE_DES_H 1
15113 for ac_header
in kerberosIV
/des.h
15115 ac_fn_c_check_header_mongrel
"$LINENO" "kerberosIV/des.h" "ac_cv_header_kerberosIV_des_h" "$ac_includes_default"
15116 if test "x$ac_cv_header_kerberosIV_des_h" = x
""yes; then :
15117 cat >>confdefs.h
<<_ACEOF
15118 #define HAVE_KERBEROSIV_DES_H 1
15122 for ac_header
in kerberos
/des.h
15124 ac_fn_c_check_header_mongrel
"$LINENO" "kerberos/des.h" "ac_cv_header_kerberos_des_h" "$ac_includes_default"
15125 if test "x$ac_cv_header_kerberos_des_h" = x
""yes; then :
15126 cat >>confdefs.h
<<_ACEOF
15127 #define HAVE_KERBEROS_DES_H 1
15142 for ac_header
in krb.h
15144 ac_fn_c_check_header_mongrel
"$LINENO" "krb.h" "ac_cv_header_krb_h" "$ac_includes_default"
15145 if test "x$ac_cv_header_krb_h" = x
""yes; then :
15146 cat >>confdefs.h
<<_ACEOF
15147 #define HAVE_KRB_H 1
15151 for ac_header
in kerberosIV
/krb.h
15153 ac_fn_c_check_header_mongrel
"$LINENO" "kerberosIV/krb.h" "ac_cv_header_kerberosIV_krb_h" "$ac_includes_default"
15154 if test "x$ac_cv_header_kerberosIV_krb_h" = x
""yes; then :
15155 cat >>confdefs.h
<<_ACEOF
15156 #define HAVE_KERBEROSIV_KRB_H 1
15160 for ac_header
in kerberos
/krb.h
15162 ac_fn_c_check_header_mongrel
"$LINENO" "kerberos/krb.h" "ac_cv_header_kerberos_krb_h" "$ac_includes_default"
15163 if test "x$ac_cv_header_kerberos_krb_h" = x
""yes; then :
15164 cat >>confdefs.h
<<_ACEOF
15165 #define HAVE_KERBEROS_KRB_H 1
15181 for ac_header
in com_err.h
15183 ac_fn_c_check_header_mongrel
"$LINENO" "com_err.h" "ac_cv_header_com_err_h" "$ac_includes_default"
15184 if test "x$ac_cv_header_com_err_h" = x
""yes; then :
15185 cat >>confdefs.h
<<_ACEOF
15186 #define HAVE_COM_ERR_H 1
15201 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether localtime caches TZ" >&5
15202 $as_echo_n "checking whether localtime caches TZ... " >&6; }
15203 if test "${emacs_cv_localtime_cache+set}" = set; then :
15204 $as_echo_n "(cached) " >&6
15206 if test x
$ac_cv_func_tzset = xyes
; then
15207 if test "$cross_compiling" = yes; then :
15208 # If we have tzset, assume the worst when cross-compiling.
15209 emacs_cv_localtime_cache
=yes
15211 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
15212 /* end confdefs.h. */
15214 char TZ_GMT0[] = "TZ=GMT0";
15215 char TZ_PST8[] = "TZ=PST8";
15218 time_t now = time ((time_t *) 0);
15219 int hour_GMT0, hour_unset;
15220 if (putenv (TZ_GMT0) != 0)
15222 hour_GMT0 = localtime (&now)->tm_hour;
15224 hour_unset = localtime (&now)->tm_hour;
15225 if (putenv (TZ_PST8) != 0)
15227 if (localtime (&now)->tm_hour == hour_GMT0)
15230 if (localtime (&now)->tm_hour != hour_unset)
15235 if ac_fn_c_try_run
"$LINENO"; then :
15236 emacs_cv_localtime_cache
=no
15238 emacs_cv_localtime_cache
=yes
15240 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
15241 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
15245 # If we lack tzset, report that localtime does not cache TZ,
15246 # since we can't invalidate the cache if we don't have tzset.
15247 emacs_cv_localtime_cache
=no
15250 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $emacs_cv_localtime_cache" >&5
15251 $as_echo "$emacs_cv_localtime_cache" >&6; }
15252 if test $emacs_cv_localtime_cache = yes; then
15254 $as_echo "#define LOCALTIME_CACHE 1" >>confdefs.h
15258 if test "x$HAVE_TIMEVAL" = xyes
; then
15259 for ac_func
in gettimeofday
15261 ac_fn_c_check_func
"$LINENO" "gettimeofday" "ac_cv_func_gettimeofday"
15262 if test "x$ac_cv_func_gettimeofday" = x
""yes; then :
15263 cat >>confdefs.h
<<_ACEOF
15264 #define HAVE_GETTIMEOFDAY 1
15270 if test $ac_cv_func_gettimeofday = yes; then
15271 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether gettimeofday can accept two arguments" >&5
15272 $as_echo_n "checking whether gettimeofday can accept two arguments... " >&6; }
15273 if test "${emacs_cv_gettimeofday_two_arguments+set}" = set; then :
15274 $as_echo_n "(cached) " >&6
15276 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
15277 /* end confdefs.h. */
15279 #ifdef TIME_WITH_SYS_TIME
15280 #include <sys/time.h>
15283 #ifdef HAVE_SYS_TIME_H
15284 #include <sys/time.h>
15292 struct timeval time;
15293 gettimeofday (&time, 0);
15298 if ac_fn_c_try_compile
"$LINENO"; then :
15299 emacs_cv_gettimeofday_two_arguments
=yes
15301 emacs_cv_gettimeofday_two_arguments
=no
15303 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
15305 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $emacs_cv_gettimeofday_two_arguments" >&5
15306 $as_echo "$emacs_cv_gettimeofday_two_arguments" >&6; }
15307 if test $emacs_cv_gettimeofday_two_arguments = no
; then
15309 $as_echo "#define GETTIMEOFDAY_ONE_ARGUMENT 1" >>confdefs.h
15316 ac_fn_c_check_func
"$LINENO" "socket" "ac_cv_func_socket"
15317 if test "x$ac_cv_func_socket" = x
""yes; then :
15323 if test $ok_so_far = yes; then
15324 ac_fn_c_check_header_mongrel
"$LINENO" "netinet/in.h" "ac_cv_header_netinet_in_h" "$ac_includes_default"
15325 if test "x$ac_cv_header_netinet_in_h" = x
""yes; then :
15333 if test $ok_so_far = yes; then
15334 ac_fn_c_check_header_mongrel
"$LINENO" "arpa/inet.h" "ac_cv_header_arpa_inet_h" "$ac_includes_default"
15335 if test "x$ac_cv_header_arpa_inet_h" = x
""yes; then :
15343 if test $ok_so_far = yes; then
15345 $as_echo "#define HAVE_INET_SOCKETS 1" >>confdefs.h
15349 if test -f /usr
/lpp
/X11
/bin
/smt.exp
; then
15351 $as_echo "#define HAVE_AIX_SMT_EXP 1" >>confdefs.h
15355 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether system supports dynamic ptys" >&5
15356 $as_echo_n "checking whether system supports dynamic ptys... " >&6; }
15357 if test -d /dev
/pts
&& ls -d /dev
/ptmx
> /dev
/null
2>&1 ; then
15358 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
15359 $as_echo "yes" >&6; }
15361 $as_echo "#define HAVE_DEV_PTMX 1" >>confdefs.h
15364 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15365 $as_echo "no" >&6; }
15368 ac_fn_c_check_type
"$LINENO" "pid_t" "ac_cv_type_pid_t" "$ac_includes_default"
15369 if test "x$ac_cv_type_pid_t" = x
""yes; then :
15373 cat >>confdefs.h
<<_ACEOF
15379 for ac_header
in vfork.h
15381 ac_fn_c_check_header_mongrel
"$LINENO" "vfork.h" "ac_cv_header_vfork_h" "$ac_includes_default"
15382 if test "x$ac_cv_header_vfork_h" = x
""yes; then :
15383 cat >>confdefs.h
<<_ACEOF
15384 #define HAVE_VFORK_H 1
15391 for ac_func
in fork vfork
15393 as_ac_var
=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
15394 ac_fn_c_check_func
"$LINENO" "$ac_func" "$as_ac_var"
15395 eval as_val
=\$
$as_ac_var
15396 if test "x$as_val" = x
""yes; then :
15397 cat >>confdefs.h
<<_ACEOF
15398 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
15404 if test "x$ac_cv_func_fork" = xyes
; then
15405 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working fork" >&5
15406 $as_echo_n "checking for working fork... " >&6; }
15407 if test "${ac_cv_func_fork_works+set}" = set; then :
15408 $as_echo_n "(cached) " >&6
15410 if test "$cross_compiling" = yes; then :
15411 ac_cv_func_fork_works
=cross
15413 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
15414 /* end confdefs.h. */
15415 $ac_includes_default
15420 /* By Ruediger Kuhlmann. */
15421 return fork () < 0;
15427 if ac_fn_c_try_run
"$LINENO"; then :
15428 ac_cv_func_fork_works
=yes
15430 ac_cv_func_fork_works
=no
15432 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
15433 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
15437 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_fork_works" >&5
15438 $as_echo "$ac_cv_func_fork_works" >&6; }
15441 ac_cv_func_fork_works
=$ac_cv_func_fork
15443 if test "x$ac_cv_func_fork_works" = xcross
; then
15445 *-*-amigaos* |
*-*-msdosdjgpp*)
15446 # Override, as these systems have only a dummy fork() stub
15447 ac_cv_func_fork_works
=no
15450 ac_cv_func_fork_works
=yes
15453 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: result $ac_cv_func_fork_works guessed because of cross compilation" >&5
15454 $as_echo "$as_me: WARNING: result $ac_cv_func_fork_works guessed because of cross compilation" >&2;}
15456 ac_cv_func_vfork_works
=$ac_cv_func_vfork
15457 if test "x$ac_cv_func_vfork" = xyes
; then
15458 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working vfork" >&5
15459 $as_echo_n "checking for working vfork... " >&6; }
15460 if test "${ac_cv_func_vfork_works+set}" = set; then :
15461 $as_echo_n "(cached) " >&6
15463 if test "$cross_compiling" = yes; then :
15464 ac_cv_func_vfork_works
=cross
15466 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
15467 /* end confdefs.h. */
15468 /* Thanks to Paul Eggert for this test. */
15469 $ac_includes_default
15470 #include <sys/wait.h>
15471 #ifdef HAVE_VFORK_H
15472 # include <vfork.h>
15474 /* On some sparc systems, changes by the child to local and incoming
15475 argument registers are propagated back to the parent. The compiler
15476 is told about this with #include <vfork.h>, but some compilers
15477 (e.g. gcc -O) don't grok <vfork.h>. Test for this by using a
15478 static variable whose address is put into a register that is
15479 clobbered by the vfork. */
15482 sparc_address_test (int arg)
15484 sparc_address_test (arg) int arg;
15487 static pid_t child;
15505 pid_t parent = getpid ();
15508 sparc_address_test (0);
15513 /* Here is another test for sparc vfork register problems. This
15514 test uses lots of local variables, at least as many local
15515 variables as main has allocated so far including compiler
15516 temporaries. 4 locals are enough for gcc 1.40.3 on a Solaris
15517 4.1.3 sparc, but we use 8 to be safe. A buggy compiler should
15518 reuse the register of parent for one of the local variables,
15519 since it will think that parent can't possibly be used any more
15520 in this routine. Assigning to the local variable will thus
15521 munge parent in the parent process. */
15523 p = getpid(), p1 = getpid(), p2 = getpid(), p3 = getpid(),
15524 p4 = getpid(), p5 = getpid(), p6 = getpid(), p7 = getpid();
15525 /* Convince the compiler that p..p7 are live; otherwise, it might
15526 use the same hardware register for all 8 local variables. */
15527 if (p != p1 || p != p2 || p != p3 || p != p4
15528 || p != p5 || p != p6 || p != p7)
15531 /* On some systems (e.g. IRIX 3.3), vfork doesn't separate parent
15532 from child file descriptors. If the child closes a descriptor
15533 before it execs or exits, this munges the parent's descriptor
15534 as well. Test for this by closing stdout in the child. */
15535 _exit(close(fileno(stdout)) != 0);
15540 while (wait(&status) != child)
15543 /* Was there some problem with vforking? */
15546 /* Did the child fail? (This shouldn't happen.) */
15549 /* Did the vfork/compiler bug occur? */
15550 || parent != getpid()
15552 /* Did the file descriptor bug occur? */
15553 || fstat(fileno(stdout), &st) != 0
15558 if ac_fn_c_try_run
"$LINENO"; then :
15559 ac_cv_func_vfork_works
=yes
15561 ac_cv_func_vfork_works
=no
15563 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
15564 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
15568 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_vfork_works" >&5
15569 $as_echo "$ac_cv_func_vfork_works" >&6; }
15572 if test "x$ac_cv_func_fork_works" = xcross
; then
15573 ac_cv_func_vfork_works
=$ac_cv_func_vfork
15574 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: result $ac_cv_func_vfork_works guessed because of cross compilation" >&5
15575 $as_echo "$as_me: WARNING: result $ac_cv_func_vfork_works guessed because of cross compilation" >&2;}
15578 if test "x$ac_cv_func_vfork_works" = xyes
; then
15580 $as_echo "#define HAVE_WORKING_VFORK 1" >>confdefs.h
15584 $as_echo "#define vfork fork" >>confdefs.h
15587 if test "x$ac_cv_func_fork_works" = xyes
; then
15589 $as_echo "#define HAVE_WORKING_FORK 1" >>confdefs.h
15594 for ac_func
in snprintf
15596 ac_fn_c_check_func
"$LINENO" "snprintf" "ac_cv_func_snprintf"
15597 if test "x$ac_cv_func_snprintf" = x
""yes; then :
15598 cat >>confdefs.h
<<_ACEOF
15599 #define HAVE_SNPRINTF 1
15606 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for nl_langinfo and CODESET" >&5
15607 $as_echo_n "checking for nl_langinfo and CODESET... " >&6; }
15608 if test "${emacs_cv_langinfo_codeset+set}" = set; then :
15609 $as_echo_n "(cached) " >&6
15611 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
15612 /* end confdefs.h. */
15613 #include <langinfo.h>
15617 char* cs = nl_langinfo(CODESET);
15622 if ac_fn_c_try_link
"$LINENO"; then :
15623 emacs_cv_langinfo_codeset
=yes
15625 emacs_cv_langinfo_codeset
=no
15627 rm -f core conftest.err conftest.
$ac_objext \
15628 conftest
$ac_exeext conftest.
$ac_ext
15631 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $emacs_cv_langinfo_codeset" >&5
15632 $as_echo "$emacs_cv_langinfo_codeset" >&6; }
15633 if test $emacs_cv_langinfo_codeset = yes; then
15635 $as_echo "#define HAVE_LANGINFO_CODESET 1" >>confdefs.h
15639 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for mbstate_t" >&5
15640 $as_echo_n "checking for mbstate_t... " >&6; }
15641 if test "${ac_cv_type_mbstate_t+set}" = set; then :
15642 $as_echo_n "(cached) " >&6
15644 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
15645 /* end confdefs.h. */
15646 $ac_includes_default
15647 # include <wchar.h>
15651 mbstate_t x; return sizeof x;
15656 if ac_fn_c_try_compile
"$LINENO"; then :
15657 ac_cv_type_mbstate_t
=yes
15659 ac_cv_type_mbstate_t
=no
15661 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
15663 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_mbstate_t" >&5
15664 $as_echo "$ac_cv_type_mbstate_t" >&6; }
15665 if test $ac_cv_type_mbstate_t = yes; then
15667 $as_echo "#define HAVE_MBSTATE_T 1" >>confdefs.h
15671 $as_echo "#define mbstate_t int" >>confdefs.h
15675 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for C restricted array declarations" >&5
15676 $as_echo_n "checking for C restricted array declarations... " >&6; }
15677 if test "${emacs_cv_c_restrict_arr+set}" = set; then :
15678 $as_echo_n "(cached) " >&6
15680 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
15681 /* end confdefs.h. */
15682 void fred (int x[__restrict]);
15691 if ac_fn_c_try_compile
"$LINENO"; then :
15692 emacs_cv_c_restrict_arr
=yes
15694 emacs_cv_c_restrict_arr
=no
15696 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
15698 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $emacs_cv_c_restrict_arr" >&5
15699 $as_echo "$emacs_cv_c_restrict_arr" >&6; }
15700 if test "$emacs_cv_c_restrict_arr" = yes; then
15702 $as_echo "#define __restrict_arr __restrict" >>confdefs.h
15707 # Set up the CFLAGS for real compilation, so we can substitute it.
15708 CFLAGS
="$REAL_CFLAGS"
15709 CPPFLAGS
="$REAL_CPPFLAGS"
15711 ## Hack to detect a buggy GCC version.
15712 if test "x$GCC" = xyes \
15713 && test x
"`$CC --version 2> /dev/null | grep 'gcc.* 4.5.0'`" != x \
15714 && test x
"`echo $CFLAGS | grep '\-O[23]'`" != x \
15715 && test x
"`echo $CFLAGS | grep '\-fno-optimize-sibling-calls'`" = x
; then
15716 as_fn_error
"GCC 4.5.0 has problems compiling Emacs; see etc/PROBLEMS'." "$LINENO" 5
15719 version
=$PACKAGE_VERSION
15721 ### Specify what sort of things we'll be editing into Makefile and config.h.
15722 ### Use configuration here uncanonicalized to avoid exceeding size limits.
15746 ## FIXME? Nothing uses @LD_SWITCH_X_SITE@.
15747 ## src/Makefile.in did add LD_SWITCH_X_SITE (as a cpp define) to the
15748 ## end of LIBX_BASE, but nothing ever set it.
15753 ## Used in lwlib/Makefile.in.
15755 if test -n "${machfile}"; then
15756 M_FILE
="\$(srcdir)/${machfile}"
15760 S_FILE
="\$(srcdir)/${opsysfile}"
15771 cat >>confdefs.h
<<_ACEOF
15772 #define EMACS_CONFIGURATION "${canonical}"
15776 cat >>confdefs.h
<<_ACEOF
15777 #define EMACS_CONFIG_OPTIONS "${ac_configure_args}"
15780 if test -n "$machfile"; then
15782 cat >>confdefs.h
<<_ACEOF
15783 #define config_machfile "${machfile}"
15788 cat >>confdefs.h
<<_ACEOF
15789 #define config_opsysfile "${opsysfile}"
15796 if test "${HAVE_X_WINDOWS}" = "yes" ; then
15798 $as_echo "#define HAVE_X_WINDOWS 1" >>confdefs.h
15801 XOBJ
="xterm.o xfns.o xselect.o xrdb.o fontset.o xsmfns.o fringe.o image.o xsettings.o xgselect.o"
15803 if test "$HAVE_XFT" = "yes"; then
15804 FONT_OBJ
="$FONT_OBJ ftfont.o xftfont.o ftxfont.o"
15805 elif test "$HAVE_FREETYPE" = "yes"; then
15806 FONT_OBJ
="$FONT_OBJ ftfont.o ftxfont.o"
15816 if test "${USE_X_TOOLKIT}" != "none" ; then
15817 WIDGET_OBJ
=widget.o
15819 $as_echo "#define USE_X_TOOLKIT 1" >>confdefs.h
15821 if test "${USE_X_TOOLKIT}" = "LUCID"; then
15823 $as_echo "#define USE_LUCID 1" >>confdefs.h
15825 elif test "${USE_X_TOOLKIT}" = "MOTIF"; then
15827 $as_echo "#define USE_MOTIF 1" >>confdefs.h
15832 ## Paul Abrahams <abrahams at equinox.shaysnet.com> says this is needed.
15833 MOTIF_LIBW
="$MOTIF_LIBW -lXpm"
15837 ## Richard Anthony Ryan <ryanr at ellingtn.ftc.nrcs.usda.gov>
15838 ## says -lXimp is needed in UNIX_SV ... 4.2 1.1.2.
15839 MOTIF_LIBW
="MOTIF_LIBW -lXimp"
15843 ## olson@mcs.anl.gov says -li18n is needed by -lXm.
15844 MOTIF_LIBW
="$MOTIF_LIBW -li18n"
15847 MOTIF_LIBW
="$MOTIF_LIBW $LIBXP"
15853 case "$USE_X_TOOLKIT" in
15854 MOTIF
) TOOLKIT_LIBW
="$MOTIF_LIBW" ;;
15855 LUCID
) TOOLKIT_LIBW
="$LUCID_LIBW" ;;
15856 none
) test "x$HAVE_GTK" = "xyes" && TOOLKIT_LIBW
="$GTK_LIBS" ;;
15860 if test "$USE_X_TOOLKIT" = "none"; then
15861 LIBXT_OTHER
="\$(LIBXSM)"
15862 OLDXMENU_TARGET
="really-oldXMenu"
15864 LIBXT_OTHER
="\$(LIBXMU) -lXt \$(LIBXTR6) -lXext"
15865 OLDXMENU_TARGET
="really-lwlib"
15869 ## The X Menu stuff is present in the X10 distribution, but missing
15870 ## from X11. If we have X10, just use the installed library;
15871 ## otherwise, use our own copy.
15872 if test "${HAVE_X11}" = "yes" ; then
15874 $as_echo "#define HAVE_X11 1" >>confdefs.h
15877 if test "$USE_X_TOOLKIT" = "none"; then
15878 OLDXMENU
="\${oldXMenudir}/libXMenu11.a"
15880 OLDXMENU
="\${lwlibdir}/liblw.a"
15882 LIBXMENU
="\$(OLDXMENU)"
15883 LIBX_OTHER
="\$(LIBXT) \$(LIBX_EXTRA)"
15884 OLDXMENU_DEPS
="\${OLDXMENU} ../src/\${OLDXMENU}"
15886 ## For a syntactically valid Makefile; not actually used for anything.
15887 ## See comments in src/Makefile.in.
15889 ## FIXME This case (!HAVE_X11 && HAVE_X_WINDOWS) is no longer possible(?).
15890 if test "${HAVE_X_WINDOWS}" = "yes"; then
15899 if test "$HAVE_GTK" = "yes" ||
test "$HAVE_MENUS" != "yes"; then
15912 if test "${HAVE_MENUS}" = "yes" ; then
15914 $as_echo "#define HAVE_MENUS 1" >>confdefs.h
15918 if test "${GNU_MALLOC}" = "yes" ; then
15920 $as_echo "#define GNU_MALLOC 1" >>confdefs.h
15925 if test "${REL_ALLOC}" = "yes" ; then
15927 $as_echo "#define REL_ALLOC 1" >>confdefs.h
15930 test "$system_malloc" != "yes" && RALLOC_OBJ
=ralloc.o
15934 if test "$opsys" = "cygwin"; then
15935 CYGWIN_OBJ
="sheap.o"
15936 ## Cygwin differs because of its unexec().
15938 POST_ALLOC_OBJ
=lastfile.o
15941 PRE_ALLOC_OBJ
=lastfile.o
15948 # Configure gnulib here, now that we know LIBS.
15960 LIBC_FATAL_STDERR_
=1
15961 export LIBC_FATAL_STDERR_
15963 # The Ultrix 4.2 mips builtin alloca declared by alloca.h only works
15964 # for constant arguments. Useless!
15965 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working alloca.h" >&5
15966 $as_echo_n "checking for working alloca.h... " >&6; }
15967 if test "${ac_cv_working_alloca_h+set}" = set; then :
15968 $as_echo_n "(cached) " >&6
15970 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
15971 /* end confdefs.h. */
15972 #include <alloca.h>
15976 char *p = (char *) alloca (2 * sizeof (int));
15982 if ac_fn_c_try_link
"$LINENO"; then :
15983 ac_cv_working_alloca_h
=yes
15985 ac_cv_working_alloca_h
=no
15987 rm -f core conftest.err conftest.
$ac_objext \
15988 conftest
$ac_exeext conftest.
$ac_ext
15990 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_working_alloca_h" >&5
15991 $as_echo "$ac_cv_working_alloca_h" >&6; }
15992 if test $ac_cv_working_alloca_h = yes; then
15994 $as_echo "#define HAVE_ALLOCA_H 1" >>confdefs.h
15998 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for alloca" >&5
15999 $as_echo_n "checking for alloca... " >&6; }
16000 if test "${ac_cv_func_alloca_works+set}" = set; then :
16001 $as_echo_n "(cached) " >&6
16003 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
16004 /* end confdefs.h. */
16006 # define alloca __builtin_alloca
16009 # include <malloc.h>
16010 # define alloca _alloca
16012 # ifdef HAVE_ALLOCA_H
16013 # include <alloca.h>
16018 # ifndef alloca /* predefined by HP cc +Olibcalls */
16029 char *p = (char *) alloca (1);
16035 if ac_fn_c_try_link
"$LINENO"; then :
16036 ac_cv_func_alloca_works
=yes
16038 ac_cv_func_alloca_works
=no
16040 rm -f core conftest.err conftest.
$ac_objext \
16041 conftest
$ac_exeext conftest.
$ac_ext
16043 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_alloca_works" >&5
16044 $as_echo "$ac_cv_func_alloca_works" >&6; }
16046 if test $ac_cv_func_alloca_works = yes; then
16048 $as_echo "#define HAVE_ALLOCA 1" >>confdefs.h
16051 # The SVR3 libPW and SVR4 libucb both contain incompatible functions
16052 # that cause trouble. Some versions do not even contain alloca or
16053 # contain a buggy version. If you still want to use their alloca,
16054 # use ar to extract alloca.o from them instead of compiling alloca.c.
16060 ALLOCA
=\
${LIBOBJDIR}alloca.
$ac_objext
16062 $as_echo "#define C_ALLOCA 1" >>confdefs.h
16065 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether \`alloca.c' needs Cray hooks" >&5
16066 $as_echo_n "checking whether \`alloca.c' needs Cray hooks... " >&6; }
16067 if test "${ac_cv_os_cray+set}" = set; then :
16068 $as_echo_n "(cached) " >&6
16070 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
16071 /* end confdefs.h. */
16072 #if defined CRAY && ! defined CRAY2
16079 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
16080 $EGREP "webecray" >/dev
/null
2>&1; then :
16088 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_os_cray" >&5
16089 $as_echo "$ac_cv_os_cray" >&6; }
16090 if test $ac_cv_os_cray = yes; then
16091 for ac_func
in _getb67 GETB67 getb67
; do
16092 as_ac_var
=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
16093 ac_fn_c_check_func
"$LINENO" "$ac_func" "$as_ac_var"
16094 eval as_val
=\$
$as_ac_var
16095 if test "x$as_val" = x
""yes; then :
16097 cat >>confdefs.h
<<_ACEOF
16098 #define CRAY_STACKSEG_END $ac_func
16107 { $as_echo "$as_me:${as_lineno-$LINENO}: checking stack direction for C alloca" >&5
16108 $as_echo_n "checking stack direction for C alloca... " >&6; }
16109 if test "${ac_cv_c_stack_direction+set}" = set; then :
16110 $as_echo_n "(cached) " >&6
16112 if test "$cross_compiling" = yes; then :
16113 ac_cv_c_stack_direction
=0
16115 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
16116 /* end confdefs.h. */
16117 $ac_includes_default
16119 find_stack_direction (int *addr, int depth)
16121 int dir, dummy = 0;
16124 *addr = addr < &dummy ? 1 : addr == &dummy ? 0 : -1;
16125 dir = depth ? find_stack_direction (addr, depth - 1) : 0;
16126 return dir + dummy;
16130 main (int argc, char **argv)
16132 return find_stack_direction (0, argc + !argv + 20) < 0;
16135 if ac_fn_c_try_run
"$LINENO"; then :
16136 ac_cv_c_stack_direction
=1
16138 ac_cv_c_stack_direction
=-1
16140 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
16141 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
16145 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_stack_direction" >&5
16146 $as_echo "$ac_cv_c_stack_direction" >&6; }
16147 cat >>confdefs.h
<<_ACEOF
16148 #define STACK_DIRECTION $ac_cv_c_stack_direction
16157 for ac_func
in $ac_func_list
16159 as_ac_var
=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
16160 ac_fn_c_check_func
"$LINENO" "$ac_func" "$as_ac_var"
16161 eval as_val
=\$
$as_ac_var
16162 if test "x$as_val" = x
""yes; then :
16163 cat >>confdefs.h
<<_ACEOF
16164 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
16173 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether byte ordering is bigendian" >&5
16174 $as_echo_n "checking whether byte ordering is bigendian... " >&6; }
16175 if test "${ac_cv_c_bigendian+set}" = set; then :
16176 $as_echo_n "(cached) " >&6
16178 ac_cv_c_bigendian
=unknown
16179 # See if we're dealing with a universal compiler.
16180 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
16181 /* end confdefs.h. */
16182 #ifndef __APPLE_CC__
16183 not a universal capable compiler
16188 if ac_fn_c_try_compile
"$LINENO"; then :
16190 # Check for potential -arch flags. It is not universal unless
16191 # there are at least two -arch flags with different values.
16194 for ac_word
in $CC $CFLAGS $CPPFLAGS $LDFLAGS; do
16195 if test -n "$ac_prev"; then
16197 i?
86 | x86_64 | ppc | ppc64
)
16198 if test -z "$ac_arch" ||
test "$ac_arch" = "$ac_word"; then
16201 ac_cv_c_bigendian
=universal
16207 elif test "x$ac_word" = "x-arch"; then
16212 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
16213 if test $ac_cv_c_bigendian = unknown
; then
16214 # See if sys/param.h defines the BYTE_ORDER macro.
16215 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
16216 /* end confdefs.h. */
16217 #include <sys/types.h>
16218 #include <sys/param.h>
16223 #if ! (defined BYTE_ORDER && defined BIG_ENDIAN \
16224 && defined LITTLE_ENDIAN && BYTE_ORDER && BIG_ENDIAN \
16226 bogus endian macros
16233 if ac_fn_c_try_compile
"$LINENO"; then :
16234 # It does; now see whether it defined to BIG_ENDIAN or not.
16235 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
16236 /* end confdefs.h. */
16237 #include <sys/types.h>
16238 #include <sys/param.h>
16243 #if BYTE_ORDER != BIG_ENDIAN
16251 if ac_fn_c_try_compile
"$LINENO"; then :
16252 ac_cv_c_bigendian
=yes
16254 ac_cv_c_bigendian
=no
16256 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
16258 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
16260 if test $ac_cv_c_bigendian = unknown
; then
16261 # See if <limits.h> defines _LITTLE_ENDIAN or _BIG_ENDIAN (e.g., Solaris).
16262 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
16263 /* end confdefs.h. */
16264 #include <limits.h>
16269 #if ! (defined _LITTLE_ENDIAN || defined _BIG_ENDIAN)
16270 bogus endian macros
16277 if ac_fn_c_try_compile
"$LINENO"; then :
16278 # It does; now see whether it defined to _BIG_ENDIAN or not.
16279 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
16280 /* end confdefs.h. */
16281 #include <limits.h>
16286 #ifndef _BIG_ENDIAN
16294 if ac_fn_c_try_compile
"$LINENO"; then :
16295 ac_cv_c_bigendian
=yes
16297 ac_cv_c_bigendian
=no
16299 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
16301 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
16303 if test $ac_cv_c_bigendian = unknown
; then
16304 # Compile a test program.
16305 if test "$cross_compiling" = yes; then :
16306 # Try to guess by grepping values from an object file.
16307 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
16308 /* end confdefs.h. */
16309 short int ascii_mm[] =
16310 { 0x4249, 0x4765, 0x6E44, 0x6961, 0x6E53, 0x7953, 0 };
16311 short int ascii_ii[] =
16312 { 0x694C, 0x5454, 0x656C, 0x6E45, 0x6944, 0x6E61, 0 };
16313 int use_ascii (int i) {
16314 return ascii_mm[i] + ascii_ii[i];
16316 short int ebcdic_ii[] =
16317 { 0x89D3, 0xE3E3, 0x8593, 0x95C5, 0x89C4, 0x9581, 0 };
16318 short int ebcdic_mm[] =
16319 { 0xC2C9, 0xC785, 0x95C4, 0x8981, 0x95E2, 0xA8E2, 0 };
16320 int use_ebcdic (int i) {
16321 return ebcdic_mm[i] + ebcdic_ii[i];
16328 return use_ascii (foo) == use_ebcdic (foo);
16333 if ac_fn_c_try_compile
"$LINENO"; then :
16334 if grep BIGenDianSyS conftest.
$ac_objext >/dev
/null
; then
16335 ac_cv_c_bigendian
=yes
16337 if grep LiTTleEnDian conftest.
$ac_objext >/dev
/null
; then
16338 if test "$ac_cv_c_bigendian" = unknown
; then
16339 ac_cv_c_bigendian
=no
16341 # finding both strings is unlikely to happen, but who knows?
16342 ac_cv_c_bigendian
=unknown
16346 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
16348 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
16349 /* end confdefs.h. */
16350 $ac_includes_default
16355 /* Are we little or big endian? From Harbison&Steele. */
16359 char c[sizeof (long int)];
16362 return u.c[sizeof (long int) - 1] == 1;
16368 if ac_fn_c_try_run
"$LINENO"; then :
16369 ac_cv_c_bigendian
=no
16371 ac_cv_c_bigendian
=yes
16373 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
16374 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
16379 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_bigendian" >&5
16380 $as_echo "$ac_cv_c_bigendian" >&6; }
16381 case $ac_cv_c_bigendian in #(
16383 $as_echo "#define WORDS_BIGENDIAN 1" >>confdefs.h
16389 $as_echo "#define AC_APPLE_UNIVERSAL_BUILD 1" >>confdefs.h
16393 as_fn_error
"unknown endianness
16394 presetting ac_cv_c_bigendian=no (or yes) will help" "$LINENO" 5 ;;
16398 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for inline" >&5
16399 $as_echo_n "checking for inline... " >&6; }
16400 if test "${ac_cv_c_inline+set}" = set; then :
16401 $as_echo_n "(cached) " >&6
16404 for ac_kw
in inline __inline__ __inline
; do
16405 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
16406 /* end confdefs.h. */
16407 #ifndef __cplusplus
16409 static $ac_kw foo_t static_foo () {return 0; }
16410 $ac_kw foo_t foo () {return 0; }
16414 if ac_fn_c_try_compile
"$LINENO"; then :
16415 ac_cv_c_inline
=$ac_kw
16417 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
16418 test "$ac_cv_c_inline" != no
&& break
16422 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_inline" >&5
16423 $as_echo "$ac_cv_c_inline" >&6; }
16425 case $ac_cv_c_inline in
16428 case $ac_cv_c_inline in
16430 *) ac_val
=$ac_cv_c_inline;;
16432 cat >>confdefs.h
<<_ACEOF
16433 #ifndef __cplusplus
16434 #define inline $ac_val
16441 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether strtold conforms to C99" >&5
16442 $as_echo_n "checking whether strtold conforms to C99... " >&6; }
16443 if test "${gl_cv_func_c99_strtold+set}" = set; then :
16444 $as_echo_n "(cached) " >&6
16446 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
16447 /* end confdefs.h. */
16448 /* On HP-UX before 11.23, strtold returns a struct instead of
16449 long double. Reject implementations like that, by requiring
16450 compatibility with the C99 prototype. */
16451 #include <stdlib.h>
16452 static long double (*p) (char const *, char **) = strtold;
16454 test (char const *nptr, char **endptr)
16457 r = strtold (nptr, endptr);
16463 return test ("1.0", NULL) != 1 || p ("1.0", NULL) != 1;
16468 if ac_fn_c_try_link
"$LINENO"; then :
16469 gl_cv_func_c99_strtold
=yes
16471 gl_cv_func_c99_strtold
=no
16473 rm -f core conftest.err conftest.
$ac_objext \
16474 conftest
$ac_exeext conftest.
$ac_ext
16476 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_c99_strtold" >&5
16477 $as_echo "$gl_cv_func_c99_strtold" >&6; }
16478 if test $gl_cv_func_c99_strtold = yes; then
16480 $as_echo "#define HAVE_C99_STRTOLD 1" >>confdefs.h
16492 GNULIB_EUIDACCESS
=0;
16493 GNULIB_FACCESSAT
=0;
16496 GNULIB_FDATASYNC
=0;
16498 GNULIB_FTRUNCATE
=0;
16500 GNULIB_GETDOMAINNAME
=0;
16501 GNULIB_GETDTABLESIZE
=0;
16502 GNULIB_GETGROUPS
=0;
16503 GNULIB_GETHOSTNAME
=0;
16505 GNULIB_GETLOGIN_R
=0;
16506 GNULIB_GETPAGESIZE
=0;
16507 GNULIB_GETUSERSHELL
=0;
16508 GNULIB_GROUP_MEMBER
=0;
16519 GNULIB_READLINKAT
=0;
16523 GNULIB_SYMLINKAT
=0;
16524 GNULIB_TTYNAME_R
=0;
16525 GNULIB_UNISTD_H_GETOPT
=0;
16526 GNULIB_UNISTD_H_NONBLOCKING
=0;
16527 GNULIB_UNISTD_H_SIGPIPE
=0;
16542 HAVE_GETDTABLESIZE
=1;
16544 HAVE_GETHOSTNAME
=1;
16546 HAVE_GETPAGESIZE
=1;
16547 HAVE_GROUP_MEMBER
=1;
16562 HAVE_DECL_ENVIRON
=1;
16563 HAVE_DECL_FCHDIR
=1;
16564 HAVE_DECL_FDATASYNC
=1;
16565 HAVE_DECL_GETDOMAINNAME
=1;
16566 HAVE_DECL_GETLOGIN_R
=1;
16567 HAVE_DECL_GETPAGESIZE
=1;
16568 HAVE_DECL_GETUSERSHELL
=1;
16569 HAVE_DECL_TTYNAME_R
=1;
16571 HAVE_SYS_PARAM_H
=0;
16576 REPLACE_FCHOWNAT
=0;
16578 REPLACE_GETDOMAINNAME
=0;
16579 REPLACE_GETLOGIN_R
=0;
16580 REPLACE_GETGROUPS
=0;
16581 REPLACE_GETPAGESIZE
=0;
16589 REPLACE_READLINK
=0;
16593 REPLACE_TTYNAME_R
=0;
16595 REPLACE_UNLINKAT
=0;
16598 UNISTD_H_HAVE_WINSOCK2_H
=0;
16599 UNISTD_H_HAVE_WINSOCK2_H_AND_USE_SOCKETS
=0;
16602 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for st_dm_mode in struct stat" >&5
16603 $as_echo_n "checking for st_dm_mode in struct stat... " >&6; }
16604 if test "${ac_cv_struct_st_dm_mode+set}" = set; then :
16605 $as_echo_n "(cached) " >&6
16607 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
16608 /* end confdefs.h. */
16610 #include <sys/types.h>
16611 #include <sys/stat.h>
16615 struct stat s; s.st_dm_mode;
16620 if ac_fn_c_try_compile
"$LINENO"; then :
16621 ac_cv_struct_st_dm_mode
=yes
16623 ac_cv_struct_st_dm_mode
=no
16625 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
16627 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_struct_st_dm_mode" >&5
16628 $as_echo "$ac_cv_struct_st_dm_mode" >&6; }
16630 if test $ac_cv_struct_st_dm_mode = yes; then
16632 $as_echo "#define HAVE_ST_DM_MODE 1" >>confdefs.h
16637 ac_fn_c_check_decl
"$LINENO" "strmode" "ac_cv_have_decl_strmode" "$ac_includes_default"
16638 if test "x$ac_cv_have_decl_strmode" = x
""yes; then :
16644 cat >>confdefs.h
<<_ACEOF
16645 #define HAVE_DECL_STRMODE $ac_have_decl
16651 GNULIB_CALLOC_POSIX
=0;
16652 GNULIB_CANONICALIZE_FILE_NAME
=0;
16653 GNULIB_GETLOADAVG
=0;
16654 GNULIB_GETSUBOPT
=0;
16656 GNULIB_MALLOC_POSIX
=0;
16660 GNULIB_MKOSTEMPS
=0;
16666 GNULIB_REALLOC_POSIX
=0;
16673 GNULIB_SYSTEM_POSIX
=0;
16679 HAVE_CANONICALIZE_FILE_NAME
=1;
16680 HAVE_DECL_GETLOADAVG
=1;
16694 HAVE_DECL_SETENV
=1;
16698 HAVE_STRUCT_RANDOM_DATA
=1;
16699 HAVE_SYS_LOADAVG_H
=0;
16701 HAVE_DECL_UNSETENV
=1;
16703 REPLACE_CANONICALIZE_FILE_NAME
=0;
16709 REPLACE_REALPATH
=0;
16712 REPLACE_UNSETENV
=0;
16717 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the preprocessor supports include_next" >&5
16718 $as_echo_n "checking whether the preprocessor supports include_next... " >&6; }
16719 if test "${gl_cv_have_include_next+set}" = set; then :
16720 $as_echo_n "(cached) " >&6
16722 rm -rf conftestd1a conftestd1b conftestd2
16723 mkdir conftestd1a conftestd1b conftestd2
16724 cat <<EOF > conftestd1a/conftest.h
16725 #define DEFINED_IN_CONFTESTD1
16726 #include_next <conftest.h>
16727 #ifdef DEFINED_IN_CONFTESTD2
16730 #error "include_next doesn't work"
16733 cat <<EOF > conftestd1b/conftest.h
16734 #define DEFINED_IN_CONFTESTD1
16736 #include_next <conftest.h>
16737 #ifdef DEFINED_IN_CONFTESTD2
16740 #error "include_next doesn't work"
16743 cat <<EOF > conftestd2/conftest.h
16744 #ifndef DEFINED_IN_CONFTESTD1
16745 #error "include_next test doesn't work"
16747 #define DEFINED_IN_CONFTESTD2
16749 gl_save_CPPFLAGS
="$CPPFLAGS"
16750 CPPFLAGS
="$gl_save_CPPFLAGS -Iconftestd1b -Iconftestd2"
16751 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
16752 /* end confdefs.h. */
16753 #include <conftest.h>
16755 if ac_fn_c_try_compile
"$LINENO"; then :
16756 gl_cv_have_include_next
=yes
16758 CPPFLAGS
="$gl_save_CPPFLAGS -Iconftestd1a -Iconftestd2"
16759 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
16760 /* end confdefs.h. */
16761 #include <conftest.h>
16763 if ac_fn_c_try_compile
"$LINENO"; then :
16764 gl_cv_have_include_next
=buggy
16766 gl_cv_have_include_next
=no
16768 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
16771 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
16772 CPPFLAGS
="$gl_save_CPPFLAGS"
16773 rm -rf conftestd1a conftestd1b conftestd2
16776 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_have_include_next" >&5
16777 $as_echo "$gl_cv_have_include_next" >&6; }
16778 PRAGMA_SYSTEM_HEADER
=
16779 if test $gl_cv_have_include_next = yes; then
16780 INCLUDE_NEXT
=include_next
16781 INCLUDE_NEXT_AS_FIRST_DIRECTIVE
=include_next
16782 if test -n "$GCC"; then
16783 PRAGMA_SYSTEM_HEADER
='#pragma GCC system_header'
16786 if test $gl_cv_have_include_next = buggy
; then
16787 INCLUDE_NEXT
=include
16788 INCLUDE_NEXT_AS_FIRST_DIRECTIVE
=include_next
16790 INCLUDE_NEXT
=include
16791 INCLUDE_NEXT_AS_FIRST_DIRECTIVE
=include
16797 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether system header files limit the line length" >&5
16798 $as_echo_n "checking whether system header files limit the line length... " >&6; }
16799 if test "${gl_cv_pragma_columns+set}" = set; then :
16800 $as_echo_n "(cached) " >&6
16802 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
16803 /* end confdefs.h. */
16810 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
16811 $EGREP "choke me" >/dev
/null
2>&1; then :
16812 gl_cv_pragma_columns
=yes
16814 gl_cv_pragma_columns
=no
16820 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_pragma_columns" >&5
16821 $as_echo "$gl_cv_pragma_columns" >&6; }
16822 if test $gl_cv_pragma_columns = yes; then
16823 PRAGMA_COLUMNS
="#pragma COLUMNS 10000"
16844 if test $gl_cv_have_include_next = yes; then
16845 gl_cv_next_getopt_h
='<'getopt.h
'>'
16847 { $as_echo "$as_me:${as_lineno-$LINENO}: checking absolute name of <getopt.h>" >&5
16848 $as_echo_n "checking absolute name of <getopt.h>... " >&6; }
16849 if test "${gl_cv_next_getopt_h+set}" = set; then :
16850 $as_echo_n "(cached) " >&6
16853 if test $ac_cv_header_getopt_h = yes; then
16856 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
16857 /* end confdefs.h. */
16858 #include <getopt.h>
16862 aix
*) gl_absname_cpp
="$ac_cpp -C" ;;
16863 *) gl_absname_cpp
="$ac_cpp" ;;
16868 gl_dirsep_regex
='[/\\]'
16871 gl_dirsep_regex
='/'
16875 gl_absolute_header_sed
='\|'"${gl_dirsep_regex}"'getopt.h|{
16876 s|.*"\(.*'"${gl_dirsep_regex}"'getopt.h\)".*|\1|
16881 gl_cv_next_getopt_h
='"'`(eval "$gl_absname_cpp conftest.$ac_ext") 2>&5 |
16882 sed -n "$gl_absolute_header_sed"`'"'
16884 gl_cv_next_getopt_h
='<'getopt.h
'>'
16889 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_next_getopt_h" >&5
16890 $as_echo "$gl_cv_next_getopt_h" >&6; }
16892 NEXT_GETOPT_H
=$gl_cv_next_getopt_h
16894 if test $gl_cv_have_include_next = yes ||
test $gl_cv_have_include_next = buggy
; then
16895 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include_next'
16896 gl_next_as_first_directive
='<'getopt.h
'>'
16898 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include'
16899 gl_next_as_first_directive
=$gl_cv_next_getopt_h
16901 NEXT_AS_FIRST_DIRECTIVE_GETOPT_H
=$gl_next_as_first_directive
16906 if test $ac_cv_header_getopt_h = yes; then
16915 if test -z "$gl_replace_getopt" && test $gl_getopt_required = GNU
; then
16916 for ac_header
in getopt.h
16918 ac_fn_c_check_header_mongrel
"$LINENO" "getopt.h" "ac_cv_header_getopt_h" "$ac_includes_default"
16919 if test "x$ac_cv_header_getopt_h" = x
""yes; then :
16920 cat >>confdefs.h
<<_ACEOF
16921 #define HAVE_GETOPT_H 1
16925 gl_replace_getopt
=yes
16932 if test -z "$gl_replace_getopt" && test $gl_getopt_required = GNU
; then
16933 for ac_func
in getopt_long_only
16935 ac_fn_c_check_func
"$LINENO" "getopt_long_only" "ac_cv_func_getopt_long_only"
16936 if test "x$ac_cv_func_getopt_long_only" = x
""yes; then :
16937 cat >>confdefs.h
<<_ACEOF
16938 #define HAVE_GETOPT_LONG_ONLY 1
16942 gl_replace_getopt
=yes
16948 if test -z "$gl_replace_getopt"; then
16949 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether getopt is POSIX compatible" >&5
16950 $as_echo_n "checking whether getopt is POSIX compatible... " >&6; }
16951 if test "${gl_cv_func_getopt_posix+set}" = set; then :
16952 $as_echo_n "(cached) " >&6
16955 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
16956 /* end confdefs.h. */
16957 #include <unistd.h>
16961 int *p = &optreset; return optreset;
16966 if ac_fn_c_try_link
"$LINENO"; then :
16969 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
16970 /* end confdefs.h. */
16971 #include <getopt.h>
16975 return !getopt_clip;
16980 if ac_fn_c_try_compile
"$LINENO"; then :
16985 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
16987 rm -f core conftest.err conftest.
$ac_objext \
16988 conftest
$ac_exeext conftest.
$ac_ext
16990 gl_save_CPPFLAGS
=$CPPFLAGS
16991 CPPFLAGS
="$CPPFLAGS -DOPTIND_MIN=$gl_optind_min"
16992 if test "$cross_compiling" = yes; then :
16994 mingw
*) gl_cv_func_getopt_posix
="guessing no";;
16995 darwin
* | aix
*) gl_cv_func_getopt_posix
="guessing no";;
16996 *) gl_cv_func_getopt_posix
="guessing yes";;
17000 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
17001 /* end confdefs.h. */
17003 #include <unistd.h>
17004 #include <stdlib.h>
17005 #include <string.h>
17011 static char program[] = "program";
17012 static char a[] = "-a";
17013 static char foo[] = "foo";
17014 static char bar[] = "bar";
17015 char *argv[] = { program, a, foo, bar, NULL };
17018 optind = OPTIND_MIN;
17021 c = getopt (4, argv, "ab");
17024 c = getopt (4, argv, "ab");
17027 if (!(optind == 2))
17030 /* Some internal state exists at this point. */
17032 static char program[] = "program";
17033 static char donald[] = "donald";
17034 static char p[] = "-p";
17035 static char billy[] = "billy";
17036 static char duck[] = "duck";
17037 static char a[] = "-a";
17038 static char bar[] = "bar";
17039 char *argv[] = { program, donald, p, billy, duck, a, bar, NULL };
17042 optind = OPTIND_MIN;
17045 c = getopt (7, argv, "+abp:q:");
17048 if (!(strcmp (argv[0], "program") == 0))
17050 if (!(strcmp (argv[1], "donald") == 0))
17052 if (!(strcmp (argv[2], "-p") == 0))
17054 if (!(strcmp (argv[3], "billy") == 0))
17056 if (!(strcmp (argv[4], "duck") == 0))
17058 if (!(strcmp (argv[5], "-a") == 0))
17060 if (!(strcmp (argv[6], "bar") == 0))
17062 if (!(optind == 1))
17065 /* Detect MacOS 10.5, AIX 7.1 bug. */
17067 static char program[] = "program";
17068 static char ab[] = "-ab";
17069 char *argv[3] = { program, ab, NULL };
17070 optind = OPTIND_MIN;
17072 if (getopt (2, argv, "ab:") != 'a')
17074 if (getopt (2, argv, "ab:") != '?')
17086 if ac_fn_c_try_run
"$LINENO"; then :
17087 gl_cv_func_getopt_posix
=yes
17089 gl_cv_func_getopt_posix
=no
17091 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
17092 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
17095 CPPFLAGS
=$gl_save_CPPFLAGS
17098 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_getopt_posix" >&5
17099 $as_echo "$gl_cv_func_getopt_posix" >&6; }
17100 case "$gl_cv_func_getopt_posix" in
17101 *no
) gl_replace_getopt
=yes ;;
17105 if test -z "$gl_replace_getopt" && test $gl_getopt_required = GNU
; then
17106 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working GNU getopt function" >&5
17107 $as_echo_n "checking for working GNU getopt function... " >&6; }
17108 if test "${gl_cv_func_getopt_gnu+set}" = set; then :
17109 $as_echo_n "(cached) " >&6
17111 # Even with POSIXLY_CORRECT, the GNU extension of leading '-' in the
17112 # optstring is necessary for programs like m4 that have POSIX-mandated
17113 # semantics for supporting options interspersed with files.
17114 # Also, since getopt_long is a GNU extension, we require optind=0.
17115 # Bash ties 'set -o posix' to a non-exported POSIXLY_CORRECT;
17116 # so take care to revert to the correct (non-)export state.
17117 gl_awk_probe
='BEGIN { if ("POSIXLY_CORRECT" in ENVIRON) print "x" }'
17118 case ${POSIXLY_CORRECT+x}`$AWK "$gl_awk_probe" </dev/null` in
17119 xx
) gl_had_POSIXLY_CORRECT
=exported
;;
17120 x
) gl_had_POSIXLY_CORRECT
=yes ;;
17121 *) gl_had_POSIXLY_CORRECT
= ;;
17124 export POSIXLY_CORRECT
17125 if test "$cross_compiling" = yes; then :
17126 case $host_os:$ac_cv_have_decl_optreset in
17127 *-gnu*:* | mingw
*:*) gl_cv_func_getopt_gnu
=no
;;
17128 *:yes) gl_cv_func_getopt_gnu
=no
;;
17129 *) gl_cv_func_getopt_gnu
=yes;;
17133 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
17134 /* end confdefs.h. */
17135 #include <getopt.h>
17136 #include <stddef.h>
17137 #include <string.h>
17139 #include <stdlib.h>
17140 #if defined __MACH__ && defined __APPLE__
17141 /* Avoid a crash on MacOS X. */
17142 #include <mach/mach.h>
17143 #include <mach/mach_error.h>
17144 #include <mach/thread_status.h>
17145 #include <mach/exception.h>
17146 #include <mach/task.h>
17147 #include <pthread.h>
17148 /* The exception port on which our thread listens. */
17149 static mach_port_t our_exception_port;
17150 /* The main function of the thread listening for exceptions of type
17153 mach_exception_thread (void *arg)
17155 /* Buffer for a message to be received. */
17157 mach_msg_header_t head;
17158 mach_msg_body_t msgh_body;
17161 mach_msg_return_t retval;
17162 /* Wait for a message on the exception port. */
17163 retval = mach_msg (&msg.head, MACH_RCV_MSG | MACH_RCV_LARGE, 0, sizeof (msg),
17164 our_exception_port, MACH_MSG_TIMEOUT_NONE, MACH_PORT_NULL);
17165 if (retval != MACH_MSG_SUCCESS)
17170 nocrash_init (void)
17172 mach_port_t self = mach_task_self ();
17173 /* Allocate a port on which the thread shall listen for exceptions. */
17174 if (mach_port_allocate (self, MACH_PORT_RIGHT_RECEIVE, &our_exception_port)
17176 /* See http://web.mit.edu/darwin/src/modules/xnu/osfmk/man/mach_port_insert_right.html. */
17177 if (mach_port_insert_right (self, our_exception_port, our_exception_port,
17178 MACH_MSG_TYPE_MAKE_SEND)
17180 /* The exceptions we want to catch. Only EXC_BAD_ACCESS is interesting
17182 exception_mask_t mask = EXC_MASK_BAD_ACCESS;
17183 /* Create the thread listening on the exception port. */
17184 pthread_attr_t attr;
17186 if (pthread_attr_init (&attr) == 0
17187 && pthread_attr_setdetachstate (&attr, PTHREAD_CREATE_DETACHED) == 0
17188 && pthread_create (&thread, &attr, mach_exception_thread, NULL) == 0) {
17189 pthread_attr_destroy (&attr);
17190 /* Replace the exception port info for these exceptions with our own.
17191 Note that we replace the exception port for the entire task, not only
17192 for a particular thread. This has the effect that when our exception
17193 port gets the message, the thread specific exception port has already
17194 been asked, and we don't need to bother about it.
17195 See http://web.mit.edu/darwin/src/modules/xnu/osfmk/man/task_set_exception_ports.html. */
17196 task_set_exception_ports (self, mask, our_exception_port,
17197 EXCEPTION_DEFAULT, MACHINE_THREAD_STATE);
17202 #elif (defined _WIN32 || defined __WIN32__) && ! defined __CYGWIN__
17203 /* Avoid a crash on native Windows. */
17204 #define WIN32_LEAN_AND_MEAN
17205 #include <windows.h>
17206 #include <winerror.h>
17208 exception_filter (EXCEPTION_POINTERS *ExceptionInfo)
17210 switch (ExceptionInfo->ExceptionRecord->ExceptionCode)
17212 case EXCEPTION_ACCESS_VIOLATION:
17213 case EXCEPTION_IN_PAGE_ERROR:
17214 case EXCEPTION_STACK_OVERFLOW:
17215 case EXCEPTION_GUARD_PAGE:
17216 case EXCEPTION_PRIV_INSTRUCTION:
17217 case EXCEPTION_ILLEGAL_INSTRUCTION:
17218 case EXCEPTION_DATATYPE_MISALIGNMENT:
17219 case EXCEPTION_ARRAY_BOUNDS_EXCEEDED:
17220 case EXCEPTION_NONCONTINUABLE_EXCEPTION:
17223 return EXCEPTION_CONTINUE_SEARCH;
17226 nocrash_init (void)
17228 SetUnhandledExceptionFilter ((LPTOP_LEVEL_EXCEPTION_FILTER) exception_filter);
17231 /* Avoid a crash on POSIX systems. */
17232 #include <signal.h>
17233 /* A POSIX signal handler. */
17235 exception_handler (int sig)
17240 nocrash_init (void)
17243 signal (SIGSEGV, exception_handler);
17246 signal (SIGBUS, exception_handler);
17260 /* This code succeeds on glibc 2.8, OpenBSD 4.0, Cygwin, mingw,
17261 and fails on MacOS X 10.5, AIX 5.2, HP-UX 11, IRIX 6.5,
17262 OSF/1 5.1, Solaris 10. */
17264 static char conftest[] = "conftest";
17265 static char plus[] = "-+";
17266 char *argv[3] = { conftest, plus, NULL };
17268 if (getopt (2, argv, "+a") != '?')
17271 /* This code succeeds on glibc 2.8, mingw,
17272 and fails on MacOS X 10.5, OpenBSD 4.0, AIX 5.2, HP-UX 11,
17273 IRIX 6.5, OSF/1 5.1, Solaris 10, Cygwin 1.5.x. */
17275 static char program[] = "program";
17276 static char p[] = "-p";
17277 static char foo[] = "foo";
17278 static char bar[] = "bar";
17279 char *argv[] = { program, p, foo, bar, NULL };
17282 if (getopt (4, argv, "p::") != 'p')
17284 else if (optarg != NULL)
17286 else if (getopt (4, argv, "p::") != -1)
17288 else if (optind != 2)
17291 /* This code succeeds on glibc 2.8 and fails on Cygwin 1.7.0. */
17293 static char program[] = "program";
17294 static char foo[] = "foo";
17295 static char p[] = "-p";
17296 char *argv[] = { program, foo, p, NULL };
17298 if (getopt (3, argv, "-p") != 1)
17300 else if (getopt (3, argv, "-p") != 'p')
17303 /* This code fails on glibc 2.11. */
17305 static char program[] = "program";
17306 static char b[] = "-b";
17307 static char a[] = "-a";
17308 char *argv[] = { program, b, a, NULL };
17309 optind = opterr = 0;
17310 if (getopt (3, argv, "+:a:b") != 'b')
17312 else if (getopt (3, argv, "+:a:b") != ':')
17315 /* This code dumps core on glibc 2.14. */
17317 static char program[] = "program";
17318 static char w[] = "-W";
17319 static char dummy[] = "dummy";
17320 char *argv[] = { program, w, dummy, NULL };
17321 optind = opterr = 1;
17322 if (getopt (3, argv, "W;") != 'W')
17331 if ac_fn_c_try_run
"$LINENO"; then :
17332 gl_cv_func_getopt_gnu
=yes
17334 gl_cv_func_getopt_gnu
=no
17336 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
17337 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
17340 case $gl_had_POSIXLY_CORRECT in
17342 yes) { POSIXLY_CORRECT
=; unset POSIXLY_CORRECT
;}; POSIXLY_CORRECT
=1 ;;
17343 *) { POSIXLY_CORRECT
=; unset POSIXLY_CORRECT
;} ;;
17347 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_getopt_gnu" >&5
17348 $as_echo "$gl_cv_func_getopt_gnu" >&6; }
17349 if test "$gl_cv_func_getopt_gnu" = "no"; then
17350 gl_replace_getopt
=yes
17361 if test -n "$gl_replace_getopt"; then :
17368 if test $REPLACE_GETOPT = 1; then
17372 $as_echo "#define __GETOPT_PREFIX rpl_" >>confdefs.h
17376 GNULIB_UNISTD_H_GETOPT
=1
17379 ac_fn_c_check_decl
"$LINENO" "getenv" "ac_cv_have_decl_getenv" "$ac_includes_default"
17380 if test "x$ac_cv_have_decl_getenv" = x
""yes; then :
17386 cat >>confdefs.h
<<_ACEOF
17387 #define HAVE_DECL_GETENV $ac_have_decl
17391 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for unsigned long long int" >&5
17392 $as_echo_n "checking for unsigned long long int... " >&6; }
17393 if test "${ac_cv_type_unsigned_long_long_int+set}" = set; then :
17394 $as_echo_n "(cached) " >&6
17396 ac_cv_type_unsigned_long_long_int
=yes
17397 if test "x${ac_cv_prog_cc_c99-no}" = xno
; then
17398 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
17399 /* end confdefs.h. */
17401 /* For now, do not test the preprocessor; as of 2007 there are too many
17402 implementations with broken preprocessors. Perhaps this can
17403 be revisited in 2012. In the meantime, code should not expect
17404 #if to work with literals wider than 32 bits. */
17405 /* Test literals. */
17406 long long int ll = 9223372036854775807ll;
17407 long long int nll = -9223372036854775807LL;
17408 unsigned long long int ull = 18446744073709551615ULL;
17409 /* Test constant expressions. */
17410 typedef int a[((-9223372036854775807LL < 0 && 0 < 9223372036854775807ll)
17412 typedef int b[(18446744073709551615ULL <= (unsigned long long int) -1
17418 /* Test availability of runtime routines for shift and division. */
17419 long long int llmax = 9223372036854775807ll;
17420 unsigned long long int ullmax = 18446744073709551615ull;
17421 return ((ll << 63) | (ll >> 63) | (ll < i) | (ll > i)
17422 | (llmax / ll) | (llmax % ll)
17423 | (ull << 63) | (ull >> 63) | (ull << i) | (ull >> i)
17424 | (ullmax / ull) | (ullmax % ull));
17430 if ac_fn_c_try_link
"$LINENO"; then :
17433 ac_cv_type_unsigned_long_long_int
=no
17435 rm -f core conftest.err conftest.
$ac_objext \
17436 conftest
$ac_exeext conftest.
$ac_ext
17439 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_unsigned_long_long_int" >&5
17440 $as_echo "$ac_cv_type_unsigned_long_long_int" >&6; }
17441 if test $ac_cv_type_unsigned_long_long_int = yes; then
17443 $as_echo "#define HAVE_UNSIGNED_LONG_LONG_INT 1" >>confdefs.h
17449 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for long long int" >&5
17450 $as_echo_n "checking for long long int... " >&6; }
17451 if test "${ac_cv_type_long_long_int+set}" = set; then :
17452 $as_echo_n "(cached) " >&6
17454 ac_cv_type_long_long_int
=yes
17455 if test "x${ac_cv_prog_cc_c99-no}" = xno
; then
17456 ac_cv_type_long_long_int
=$ac_cv_type_unsigned_long_long_int
17457 if test $ac_cv_type_long_long_int = yes; then
17458 if test "$cross_compiling" = yes; then :
17461 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
17462 /* end confdefs.h. */
17463 #include <limits.h>
17466 (1LL << (sizeof (long long int) * CHAR_BIT - 2))
17467 # define LLONG_MAX (HALF - 1 + HALF)
17472 long long int n = 1;
17476 long long int m = n << i;
17479 if (LLONG_MAX / 2 < m)
17487 if ac_fn_c_try_run
"$LINENO"; then :
17490 ac_cv_type_long_long_int
=no
17492 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
17493 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
17499 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_long_long_int" >&5
17500 $as_echo "$ac_cv_type_long_long_int" >&6; }
17501 if test $ac_cv_type_long_long_int = yes; then
17503 $as_echo "#define HAVE_LONG_LONG_INT 1" >>confdefs.h
17512 gl_cv_c_multiarch
=no
17513 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
17514 /* end confdefs.h. */
17515 #ifndef __APPLE_CC__
17516 not a universal capable compiler
17521 if ac_fn_c_try_compile
"$LINENO"; then :
17525 for word
in ${CC} ${CFLAGS} ${CPPFLAGS} ${LDFLAGS}; do
17526 if test -n "$prev"; then
17528 i?
86 | x86_64 | ppc | ppc64
)
17529 if test -z "$arch" ||
test "$arch" = "$word"; then
17532 gl_cv_c_multiarch
=yes
17538 if test "x$word" = "x-arch"; then
17545 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
17546 if test $gl_cv_c_multiarch = yes; then
17547 APPLE_UNIVERSAL_BUILD
=1
17549 APPLE_UNIVERSAL_BUILD
=0
17556 if test $ac_cv_type_long_long_int = yes; then
17557 HAVE_LONG_LONG_INT
=1
17559 HAVE_LONG_LONG_INT
=0
17563 if test $ac_cv_type_unsigned_long_long_int = yes; then
17564 HAVE_UNSIGNED_LONG_LONG_INT
=1
17566 HAVE_UNSIGNED_LONG_LONG_INT
=0
17571 if test $ac_cv_header_wchar_h = yes; then
17578 if test $ac_cv_header_inttypes_h = yes; then
17585 if test $ac_cv_header_sys_types_h = yes; then
17601 if test $gl_cv_have_include_next = yes; then
17602 gl_cv_next_stdint_h
='<'stdint.h
'>'
17604 { $as_echo "$as_me:${as_lineno-$LINENO}: checking absolute name of <stdint.h>" >&5
17605 $as_echo_n "checking absolute name of <stdint.h>... " >&6; }
17606 if test "${gl_cv_next_stdint_h+set}" = set; then :
17607 $as_echo_n "(cached) " >&6
17610 if test $ac_cv_header_stdint_h = yes; then
17613 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
17614 /* end confdefs.h. */
17615 #include <stdint.h>
17619 aix
*) gl_absname_cpp
="$ac_cpp -C" ;;
17620 *) gl_absname_cpp
="$ac_cpp" ;;
17625 gl_dirsep_regex
='[/\\]'
17628 gl_dirsep_regex
='/'
17632 gl_absolute_header_sed
='\|'"${gl_dirsep_regex}"'stdint.h|{
17633 s|.*"\(.*'"${gl_dirsep_regex}"'stdint.h\)".*|\1|
17638 gl_cv_next_stdint_h
='"'`(eval "$gl_absname_cpp conftest.$ac_ext") 2>&5 |
17639 sed -n "$gl_absolute_header_sed"`'"'
17641 gl_cv_next_stdint_h
='<'stdint.h
'>'
17646 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_next_stdint_h" >&5
17647 $as_echo "$gl_cv_next_stdint_h" >&6; }
17649 NEXT_STDINT_H
=$gl_cv_next_stdint_h
17651 if test $gl_cv_have_include_next = yes ||
test $gl_cv_have_include_next = buggy
; then
17652 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include_next'
17653 gl_next_as_first_directive
='<'stdint.h
'>'
17655 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include'
17656 gl_next_as_first_directive
=$gl_cv_next_stdint_h
17658 NEXT_AS_FIRST_DIRECTIVE_STDINT_H
=$gl_next_as_first_directive
17663 if test $ac_cv_header_stdint_h = yes; then
17670 if test $ac_cv_header_stdint_h = yes; then
17671 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stdint.h conforms to C99" >&5
17672 $as_echo_n "checking whether stdint.h conforms to C99... " >&6; }
17673 if test "${gl_cv_header_working_stdint_h+set}" = set; then :
17674 $as_echo_n "(cached) " >&6
17676 gl_cv_header_working_stdint_h
=no
17677 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
17678 /* end confdefs.h. */
17681 #define __STDC_LIMIT_MACROS 1 /* to make it work also in C++ mode */
17682 #define __STDC_CONSTANT_MACROS 1 /* to make it work also in C++ mode */
17683 #define _GL_JUST_INCLUDE_SYSTEM_STDINT_H 1 /* work if build isn't clean */
17684 #include <stdint.h>
17685 /* Dragonfly defines WCHAR_MIN, WCHAR_MAX only in <wchar.h>. */
17686 #if !(defined WCHAR_MIN && defined WCHAR_MAX)
17687 #error "WCHAR_MIN, WCHAR_MAX not defined in <stdint.h>"
17691 /* BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be
17692 included before <wchar.h>. */
17693 #include <stddef.h>
17694 #include <signal.h>
17696 # include <stdio.h>
17698 # include <wchar.h>
17703 int8_t a1 = INT8_MAX;
17704 int8_t a1min = INT8_MIN;
17707 int16_t a2 = INT16_MAX;
17708 int16_t a2min = INT16_MIN;
17711 int32_t a3 = INT32_MAX;
17712 int32_t a3min = INT32_MIN;
17715 int64_t a4 = INT64_MAX;
17716 int64_t a4min = INT64_MIN;
17719 uint8_t b1 = UINT8_MAX;
17721 typedef int b1[(unsigned char) -1 != 255 ? 1 : -1];
17724 uint16_t b2 = UINT16_MAX;
17727 uint32_t b3 = UINT32_MAX;
17730 uint64_t b4 = UINT64_MAX;
17732 int_least8_t c1 = INT8_C (0x7f);
17733 int_least8_t c1max = INT_LEAST8_MAX;
17734 int_least8_t c1min = INT_LEAST8_MIN;
17735 int_least16_t c2 = INT16_C (0x7fff);
17736 int_least16_t c2max = INT_LEAST16_MAX;
17737 int_least16_t c2min = INT_LEAST16_MIN;
17738 int_least32_t c3 = INT32_C (0x7fffffff);
17739 int_least32_t c3max = INT_LEAST32_MAX;
17740 int_least32_t c3min = INT_LEAST32_MIN;
17741 int_least64_t c4 = INT64_C (0x7fffffffffffffff);
17742 int_least64_t c4max = INT_LEAST64_MAX;
17743 int_least64_t c4min = INT_LEAST64_MIN;
17744 uint_least8_t d1 = UINT8_C (0xff);
17745 uint_least8_t d1max = UINT_LEAST8_MAX;
17746 uint_least16_t d2 = UINT16_C (0xffff);
17747 uint_least16_t d2max = UINT_LEAST16_MAX;
17748 uint_least32_t d3 = UINT32_C (0xffffffff);
17749 uint_least32_t d3max = UINT_LEAST32_MAX;
17750 uint_least64_t d4 = UINT64_C (0xffffffffffffffff);
17751 uint_least64_t d4max = UINT_LEAST64_MAX;
17752 int_fast8_t e1 = INT_FAST8_MAX;
17753 int_fast8_t e1min = INT_FAST8_MIN;
17754 int_fast16_t e2 = INT_FAST16_MAX;
17755 int_fast16_t e2min = INT_FAST16_MIN;
17756 int_fast32_t e3 = INT_FAST32_MAX;
17757 int_fast32_t e3min = INT_FAST32_MIN;
17758 int_fast64_t e4 = INT_FAST64_MAX;
17759 int_fast64_t e4min = INT_FAST64_MIN;
17760 uint_fast8_t f1 = UINT_FAST8_MAX;
17761 uint_fast16_t f2 = UINT_FAST16_MAX;
17762 uint_fast32_t f3 = UINT_FAST32_MAX;
17763 uint_fast64_t f4 = UINT_FAST64_MAX;
17765 intptr_t g = INTPTR_MAX;
17766 intptr_t gmin = INTPTR_MIN;
17769 uintptr_t h = UINTPTR_MAX;
17771 intmax_t i = INTMAX_MAX;
17772 uintmax_t j = UINTMAX_MAX;
17774 #include <limits.h> /* for CHAR_BIT */
17775 #define TYPE_MINIMUM(t) \
17776 ((t) ((t) 0 < (t) -1 ? (t) 0 : ~ TYPE_MAXIMUM (t)))
17777 #define TYPE_MAXIMUM(t) \
17778 ((t) ((t) 0 < (t) -1 \
17780 : ((((t) 1 << (sizeof (t) * CHAR_BIT - 2)) - 1) * 2 + 1)))
17783 PTRDIFF_MIN == TYPE_MINIMUM (ptrdiff_t)
17784 && PTRDIFF_MAX == TYPE_MAXIMUM (ptrdiff_t)
17786 /* Detect bug in FreeBSD 6.0 / ia64. */
17787 int check_SIG_ATOMIC:
17788 SIG_ATOMIC_MIN == TYPE_MINIMUM (sig_atomic_t)
17789 && SIG_ATOMIC_MAX == TYPE_MAXIMUM (sig_atomic_t)
17791 int check_SIZE: SIZE_MAX == TYPE_MAXIMUM (size_t) ? 1 : -1;
17793 WCHAR_MIN == TYPE_MINIMUM (wchar_t)
17794 && WCHAR_MAX == TYPE_MAXIMUM (wchar_t)
17796 /* Detect bug in mingw. */
17798 WINT_MIN == TYPE_MINIMUM (wint_t)
17799 && WINT_MAX == TYPE_MAXIMUM (wint_t)
17802 /* Detect bugs in glibc 2.4 and Solaris 10 stdint.h, among others. */
17804 (-1 < UINT8_C (0)) == (-1 < (uint_least8_t) 0) ? 1 : -1;
17805 int check_UINT16_C:
17806 (-1 < UINT16_C (0)) == (-1 < (uint_least16_t) 0) ? 1 : -1;
17808 /* Detect bugs in OpenBSD 3.9 stdint.h. */
17810 int check_uint8: (uint8_t) -1 == UINT8_MAX ? 1 : -1;
17813 int check_uint16: (uint16_t) -1 == UINT16_MAX ? 1 : -1;
17816 int check_uint32: (uint32_t) -1 == UINT32_MAX ? 1 : -1;
17819 int check_uint64: (uint64_t) -1 == UINT64_MAX ? 1 : -1;
17821 int check_uint_least8: (uint_least8_t) -1 == UINT_LEAST8_MAX ? 1 : -1;
17822 int check_uint_least16: (uint_least16_t) -1 == UINT_LEAST16_MAX ? 1 : -1;
17823 int check_uint_least32: (uint_least32_t) -1 == UINT_LEAST32_MAX ? 1 : -1;
17824 int check_uint_least64: (uint_least64_t) -1 == UINT_LEAST64_MAX ? 1 : -1;
17825 int check_uint_fast8: (uint_fast8_t) -1 == UINT_FAST8_MAX ? 1 : -1;
17826 int check_uint_fast16: (uint_fast16_t) -1 == UINT_FAST16_MAX ? 1 : -1;
17827 int check_uint_fast32: (uint_fast32_t) -1 == UINT_FAST32_MAX ? 1 : -1;
17828 int check_uint_fast64: (uint_fast64_t) -1 == UINT_FAST64_MAX ? 1 : -1;
17829 int check_uintptr: (uintptr_t) -1 == UINTPTR_MAX ? 1 : -1;
17830 int check_uintmax: (uintmax_t) -1 == UINTMAX_MAX ? 1 : -1;
17831 int check_size: (size_t) -1 == SIZE_MAX ? 1 : -1;
17842 if ac_fn_c_try_compile
"$LINENO"; then :
17843 if test "$cross_compiling" = yes; then :
17844 gl_cv_header_working_stdint_h
=yes
17847 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
17848 /* end confdefs.h. */
17851 #define __STDC_LIMIT_MACROS 1 /* to make it work also in C++ mode */
17852 #define __STDC_CONSTANT_MACROS 1 /* to make it work also in C++ mode */
17853 #define _GL_JUST_INCLUDE_SYSTEM_STDINT_H 1 /* work if build isn't clean */
17854 #include <stdint.h>
17857 /* BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be
17858 included before <wchar.h>. */
17859 #include <stddef.h>
17860 #include <signal.h>
17862 # include <stdio.h>
17864 # include <wchar.h>
17869 #include <string.h>
17870 #define MVAL(macro) MVAL1(macro)
17871 #define MVAL1(expression) #expression
17872 static const char *macro_values[] =
17906 for (mv = macro_values; *mv != NULL; mv++)
17908 const char *value = *mv;
17909 /* Test whether it looks like a cast expression. */
17910 if (strncmp (value, "((unsigned int)"/*)*/, 15) == 0
17911 || strncmp (value, "((unsigned short)"/*)*/, 17) == 0
17912 || strncmp (value, "((unsigned char)"/*)*/, 16) == 0
17913 || strncmp (value, "((int)"/*)*/, 6) == 0
17914 || strncmp (value, "((signed short)"/*)*/, 15) == 0
17915 || strncmp (value, "((signed char)"/*)*/, 14) == 0)
17916 return mv - macro_values + 1;
17924 if ac_fn_c_try_run
"$LINENO"; then :
17925 gl_cv_header_working_stdint_h
=yes
17927 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
17928 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
17933 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
17936 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_header_working_stdint_h" >&5
17937 $as_echo "$gl_cv_header_working_stdint_h" >&6; }
17939 if test "$gl_cv_header_working_stdint_h" = yes; then
17942 for ac_header
in sys
/inttypes.h sys
/bitypes.h
17944 as_ac_Header
=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
17945 ac_fn_c_check_header_mongrel
"$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
17946 eval as_val
=\$
$as_ac_Header
17947 if test "x$as_val" = x
""yes; then :
17948 cat >>confdefs.h
<<_ACEOF
17949 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
17956 if test $ac_cv_header_sys_inttypes_h = yes; then
17957 HAVE_SYS_INTTYPES_H
=1
17959 HAVE_SYS_INTTYPES_H
=0
17962 if test $ac_cv_header_sys_bitypes_h = yes; then
17963 HAVE_SYS_BITYPES_H
=1
17965 HAVE_SYS_BITYPES_H
=0
17971 if test $APPLE_UNIVERSAL_BUILD = 0; then
17974 for gltype
in ptrdiff_t size_t
; do
17975 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for bit size of $gltype" >&5
17976 $as_echo_n "checking for bit size of $gltype... " >&6; }
17977 if { as_var
=gl_cv_bitsizeof_
${gltype}; eval "test \"\${$as_var+set}\" = set"; }; then :
17978 $as_echo_n "(cached) " >&6
17980 if ac_fn_c_compute_int
"$LINENO" "sizeof ($gltype) * CHAR_BIT" "result" "
17981 /* BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be
17982 included before <wchar.h>. */
17983 #include <stddef.h>
17984 #include <signal.h>
17986 # include <stdio.h>
17988 # include <wchar.h>
17991 #include <limits.h>"; then :
17997 eval gl_cv_bitsizeof_
${gltype}=\
$result
18000 eval ac_res
=\
$gl_cv_bitsizeof_${gltype}
18001 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
18002 $as_echo "$ac_res" >&6; }
18003 eval result
=\
$gl_cv_bitsizeof_${gltype}
18004 if test $result = unknown
; then
18007 GLTYPE
=`echo "$gltype" | tr 'abcdefghijklmnopqrstuvwxyz ' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ_'`
18008 cat >>confdefs.h
<<_ACEOF
18009 #define BITSIZEOF_${GLTYPE} $result
18012 eval BITSIZEOF_
${GLTYPE}=\
$result
18019 for gltype
in sig_atomic_t wchar_t wint_t
; do
18020 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for bit size of $gltype" >&5
18021 $as_echo_n "checking for bit size of $gltype... " >&6; }
18022 if { as_var
=gl_cv_bitsizeof_
${gltype}; eval "test \"\${$as_var+set}\" = set"; }; then :
18023 $as_echo_n "(cached) " >&6
18025 if ac_fn_c_compute_int
"$LINENO" "sizeof ($gltype) * CHAR_BIT" "result" "
18026 /* BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be
18027 included before <wchar.h>. */
18028 #include <stddef.h>
18029 #include <signal.h>
18031 # include <stdio.h>
18033 # include <wchar.h>
18036 #include <limits.h>"; then :
18042 eval gl_cv_bitsizeof_
${gltype}=\
$result
18045 eval ac_res
=\
$gl_cv_bitsizeof_${gltype}
18046 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
18047 $as_echo "$ac_res" >&6; }
18048 eval result
=\
$gl_cv_bitsizeof_${gltype}
18049 if test $result = unknown
; then
18052 GLTYPE
=`echo "$gltype" | tr 'abcdefghijklmnopqrstuvwxyz ' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ_'`
18053 cat >>confdefs.h
<<_ACEOF
18054 #define BITSIZEOF_${GLTYPE} $result
18057 eval BITSIZEOF_
${GLTYPE}=\
$result
18063 for gltype
in sig_atomic_t wchar_t wint_t
; do
18064 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $gltype is signed" >&5
18065 $as_echo_n "checking whether $gltype is signed... " >&6; }
18066 if { as_var
=gl_cv_type_
${gltype}_signed; eval "test \"\${$as_var+set}\" = set"; }; then :
18067 $as_echo_n "(cached) " >&6
18069 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
18070 /* end confdefs.h. */
18072 /* BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be
18073 included before <wchar.h>. */
18074 #include <stddef.h>
18075 #include <signal.h>
18077 # include <stdio.h>
18079 # include <wchar.h>
18082 int verify[2 * (($gltype) -1 < ($gltype) 0) - 1];
18091 if ac_fn_c_try_compile
"$LINENO"; then :
18096 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
18097 eval gl_cv_type_
${gltype}_signed
=\
$result
18100 eval ac_res
=\
$gl_cv_type_${gltype}_signed
18101 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
18102 $as_echo "$ac_res" >&6; }
18103 eval result
=\
$gl_cv_type_${gltype}_signed
18104 GLTYPE
=`echo $gltype | tr 'abcdefghijklmnopqrstuvwxyz ' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ_'`
18105 if test "$result" = yes; then
18106 cat >>confdefs.h
<<_ACEOF
18107 #define HAVE_SIGNED_${GLTYPE} 1
18110 eval HAVE_SIGNED_
${GLTYPE}=1
18112 eval HAVE_SIGNED_
${GLTYPE}=0
18117 gl_cv_type_ptrdiff_t_signed
=yes
18118 gl_cv_type_size_t_signed
=no
18119 if test $APPLE_UNIVERSAL_BUILD = 0; then
18122 for gltype
in ptrdiff_t size_t
; do
18123 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $gltype integer literal suffix" >&5
18124 $as_echo_n "checking for $gltype integer literal suffix... " >&6; }
18125 if { as_var
=gl_cv_type_
${gltype}_suffix; eval "test \"\${$as_var+set}\" = set"; }; then :
18126 $as_echo_n "(cached) " >&6
18128 eval gl_cv_type_
${gltype}_suffix
=no
18129 eval result
=\
$gl_cv_type_${gltype}_signed
18130 if test "$result" = yes; then
18135 for glsuf
in "$glsufu" ${glsufu}l ${glsufu}ll ${glsufu}i64
; do
18137 '') gltype1
='int';;
18138 l
) gltype1
='long int';;
18139 ll
) gltype1
='long long int';;
18140 i64
) gltype1
='__int64';;
18141 u
) gltype1
='unsigned int';;
18142 ul
) gltype1
='unsigned long int';;
18143 ull
) gltype1
='unsigned long long int';;
18144 ui64
)gltype1
='unsigned __int64';;
18146 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
18147 /* end confdefs.h. */
18149 /* BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be
18150 included before <wchar.h>. */
18151 #include <stddef.h>
18152 #include <signal.h>
18154 # include <stdio.h>
18156 # include <wchar.h>
18159 extern $gltype foo;
18160 extern $gltype1 foo;
18169 if ac_fn_c_try_compile
"$LINENO"; then :
18170 eval gl_cv_type_
${gltype}_suffix
=\
$glsuf
18172 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
18173 eval result
=\
$gl_cv_type_${gltype}_suffix
18174 test "$result" != no
&& break
18177 eval ac_res
=\
$gl_cv_type_${gltype}_suffix
18178 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
18179 $as_echo "$ac_res" >&6; }
18180 GLTYPE
=`echo $gltype | tr 'abcdefghijklmnopqrstuvwxyz ' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ_'`
18181 eval result
=\
$gl_cv_type_${gltype}_suffix
18182 test "$result" = no
&& result
=
18183 eval ${GLTYPE}_SUFFIX
=\
$result
18184 cat >>confdefs.h
<<_ACEOF
18185 #define ${GLTYPE}_SUFFIX $result
18194 for gltype
in sig_atomic_t wchar_t wint_t
; do
18195 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $gltype integer literal suffix" >&5
18196 $as_echo_n "checking for $gltype integer literal suffix... " >&6; }
18197 if { as_var
=gl_cv_type_
${gltype}_suffix; eval "test \"\${$as_var+set}\" = set"; }; then :
18198 $as_echo_n "(cached) " >&6
18200 eval gl_cv_type_
${gltype}_suffix
=no
18201 eval result
=\
$gl_cv_type_${gltype}_signed
18202 if test "$result" = yes; then
18207 for glsuf
in "$glsufu" ${glsufu}l ${glsufu}ll ${glsufu}i64
; do
18209 '') gltype1
='int';;
18210 l
) gltype1
='long int';;
18211 ll
) gltype1
='long long int';;
18212 i64
) gltype1
='__int64';;
18213 u
) gltype1
='unsigned int';;
18214 ul
) gltype1
='unsigned long int';;
18215 ull
) gltype1
='unsigned long long int';;
18216 ui64
)gltype1
='unsigned __int64';;
18218 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
18219 /* end confdefs.h. */
18221 /* BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be
18222 included before <wchar.h>. */
18223 #include <stddef.h>
18224 #include <signal.h>
18226 # include <stdio.h>
18228 # include <wchar.h>
18231 extern $gltype foo;
18232 extern $gltype1 foo;
18241 if ac_fn_c_try_compile
"$LINENO"; then :
18242 eval gl_cv_type_
${gltype}_suffix
=\
$glsuf
18244 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
18245 eval result
=\
$gl_cv_type_${gltype}_suffix
18246 test "$result" != no
&& break
18249 eval ac_res
=\
$gl_cv_type_${gltype}_suffix
18250 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
18251 $as_echo "$ac_res" >&6; }
18252 GLTYPE
=`echo $gltype | tr 'abcdefghijklmnopqrstuvwxyz ' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ_'`
18253 eval result
=\
$gl_cv_type_${gltype}_suffix
18254 test "$result" = no
&& result
=
18255 eval ${GLTYPE}_SUFFIX
=\
$result
18256 cat >>confdefs.h
<<_ACEOF
18257 #define ${GLTYPE}_SUFFIX $result
18264 if test $BITSIZEOF_WINT_T -lt 32; then
18265 BITSIZEOF_WINT_T
=32
18271 if test -n "$STDINT_H"; then
18272 GL_GENERATE_STDINT_H_TRUE
=
18273 GL_GENERATE_STDINT_H_FALSE
='#'
18275 GL_GENERATE_STDINT_H_TRUE
='#'
18276 GL_GENERATE_STDINT_H_FALSE
=
18285 GNULIB_STRTOIMAX
=0;
18286 GNULIB_STRTOUMAX
=0;
18287 HAVE_DECL_IMAXABS
=1;
18288 HAVE_DECL_IMAXDIV
=1;
18289 HAVE_DECL_STRTOIMAX
=1;
18290 HAVE_DECL_STRTOUMAX
=1;
18291 INT32_MAX_LT_INTMAX_MAX
=1;
18292 INT64_MAX_EQ_LONG_MAX
='defined _LP64';
18293 PRI_MACROS_BROKEN
=0;
18294 PRIPTR_PREFIX
=__PRIPTR_PREFIX
;
18295 UINT32_MAX_LT_UINTMAX_MAX
=1;
18296 UINT64_MAX_EQ_ULONG_MAX
='defined _LP64';
18312 if test $gl_cv_have_include_next = yes; then
18313 gl_cv_next_inttypes_h
='<'inttypes.h
'>'
18315 { $as_echo "$as_me:${as_lineno-$LINENO}: checking absolute name of <inttypes.h>" >&5
18316 $as_echo_n "checking absolute name of <inttypes.h>... " >&6; }
18317 if test "${gl_cv_next_inttypes_h+set}" = set; then :
18318 $as_echo_n "(cached) " >&6
18321 if test $ac_cv_header_inttypes_h = yes; then
18324 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
18325 /* end confdefs.h. */
18326 #include <inttypes.h>
18330 aix
*) gl_absname_cpp
="$ac_cpp -C" ;;
18331 *) gl_absname_cpp
="$ac_cpp" ;;
18336 gl_dirsep_regex
='[/\\]'
18339 gl_dirsep_regex
='/'
18343 gl_absolute_header_sed
='\|'"${gl_dirsep_regex}"'inttypes.h|{
18344 s|.*"\(.*'"${gl_dirsep_regex}"'inttypes.h\)".*|\1|
18349 gl_cv_next_inttypes_h
='"'`(eval "$gl_absname_cpp conftest.$ac_ext") 2>&5 |
18350 sed -n "$gl_absolute_header_sed"`'"'
18352 gl_cv_next_inttypes_h
='<'inttypes.h
'>'
18357 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_next_inttypes_h" >&5
18358 $as_echo "$gl_cv_next_inttypes_h" >&6; }
18360 NEXT_INTTYPES_H
=$gl_cv_next_inttypes_h
18362 if test $gl_cv_have_include_next = yes ||
test $gl_cv_have_include_next = buggy
; then
18363 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include_next'
18364 gl_next_as_first_directive
='<'inttypes.h
'>'
18366 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include'
18367 gl_next_as_first_directive
=$gl_cv_next_inttypes_h
18369 NEXT_AS_FIRST_DIRECTIVE_INTTYPES_H
=$gl_next_as_first_directive
18378 $as_echo "#define GL_TRIGGER_STDC_LIMIT_MACROS 1" >>confdefs.h
18397 GNULIB_UTIMENSAT
=0;
18411 REPLACE_FUTIMENS
=0;
18417 REPLACE_UTIMENSAT
=0;
18422 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether lstat correctly handles trailing slash" >&5
18423 $as_echo_n "checking whether lstat correctly handles trailing slash... " >&6; }
18424 if test "${gl_cv_func_lstat_dereferences_slashed_symlink+set}" = set; then :
18425 $as_echo_n "(cached) " >&6
18427 rm -f conftest.sym conftest.
file
18428 echo >conftest.
file
18429 if test "$as_ln_s" = "ln -s" && ln -s conftest.
file conftest.sym
; then
18430 if test "$cross_compiling" = yes; then :
18431 # When cross-compiling, be pessimistic so we will end up using the
18432 # replacement version of lstat that checks for trailing slashes and
18433 # calls lstat a second time when necessary.
18434 gl_cv_func_lstat_dereferences_slashed_symlink
=no
18437 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
18438 /* end confdefs.h. */
18439 $ac_includes_default
18444 /* Linux will dereference the symlink and fail, as required by
18445 POSIX. That is better in the sense that it means we will not
18446 have to compile and use the lstat wrapper. */
18447 return lstat ("conftest.sym/", &sbuf) == 0;
18453 if ac_fn_c_try_run
"$LINENO"; then :
18454 gl_cv_func_lstat_dereferences_slashed_symlink
=yes
18456 gl_cv_func_lstat_dereferences_slashed_symlink
=no
18458 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
18459 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
18463 # If the 'ln -s' command failed, then we probably don't even
18464 # have an lstat function.
18465 gl_cv_func_lstat_dereferences_slashed_symlink
=no
18467 rm -f conftest.sym conftest.
file
18470 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_lstat_dereferences_slashed_symlink" >&5
18471 $as_echo "$gl_cv_func_lstat_dereferences_slashed_symlink" >&6; }
18472 test $gl_cv_func_lstat_dereferences_slashed_symlink = yes &&
18474 cat >>confdefs.h
<<_ACEOF
18475 #define LSTAT_FOLLOWS_SLASHED_SYMLINK 1
18481 GNULIB_NANOSLEEP
=0;
18485 HAVE_DECL_LOCALTIME_R
=1;
18489 REPLACE_LOCALTIME_R
=GNULIB_PORTCHECK
;
18490 REPLACE_MKTIME
=GNULIB_PORTCHECK
;
18491 REPLACE_NANOSLEEP
=GNULIB_PORTCHECK
;
18492 REPLACE_TIMEGM
=GNULIB_PORTCHECK
;
18499 GNULIB_PTHREAD_SIGMASK
=0;
18501 GNULIB_SIGNAL_H_SIGPIPE
=0;
18502 GNULIB_SIGPROCMASK
=0;
18503 GNULIB_SIGACTION
=0;
18504 HAVE_POSIX_SIGNALBLOCKING
=1;
18505 HAVE_PTHREAD_SIGMASK
=1;
18510 HAVE_STRUCT_SIGACTION_SA_SIGACTION
=1;
18512 HAVE_TYPE_VOLATILE_SIG_ATOMIC_T
=1;
18514 HAVE_SIGHANDLER_T
=1;
18515 REPLACE_PTHREAD_SIGMASK
=0;
18521 ac_fn_c_check_type
"$LINENO" "sigset_t" "ac_cv_type_sigset_t" "
18522 #include <signal.h>
18523 /* Mingw defines sigset_t not in <signal.h>, but in <sys/types.h>. */
18524 #include <sys/types.h>
18527 if test "x$ac_cv_type_sigset_t" = x
""yes; then :
18529 cat >>confdefs.h
<<_ACEOF
18530 #define HAVE_SIGSET_T 1
18533 gl_cv_type_sigset_t
=yes
18535 gl_cv_type_sigset_t
=no
18538 if test $gl_cv_type_sigset_t != yes; then
18546 if test $ac_cv_header_sys_socket_h = no
; then
18547 for ac_header
in ws2tcpip.h
18549 ac_fn_c_check_header_mongrel
"$LINENO" "ws2tcpip.h" "ac_cv_header_ws2tcpip_h" "$ac_includes_default"
18550 if test "x$ac_cv_header_ws2tcpip_h" = x
""yes; then :
18551 cat >>confdefs.h
<<_ACEOF
18552 #define HAVE_WS2TCPIP_H 1
18561 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for stdbool.h that conforms to C99" >&5
18562 $as_echo_n "checking for stdbool.h that conforms to C99... " >&6; }
18563 if test "${ac_cv_header_stdbool_h+set}" = set; then :
18564 $as_echo_n "(cached) " >&6
18566 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
18567 /* end confdefs.h. */
18569 #include <stdbool.h>
18571 "error: bool is not defined"
18574 "error: false is not defined"
18577 "error: false is not 0"
18580 "error: true is not defined"
18583 "error: true is not 1"
18585 #ifndef __bool_true_false_are_defined
18586 "error: __bool_true_false_are_defined is not defined"
18589 struct s { _Bool s: 1; _Bool t; } s;
18591 char a[true == 1 ? 1 : -1];
18592 char b[false == 0 ? 1 : -1];
18593 char c[__bool_true_false_are_defined == 1 ? 1 : -1];
18594 char d[(bool) 0.5 == true ? 1 : -1];
18595 /* See body of main program for 'e'. */
18596 char f[(_Bool) 0.0 == false ? 1 : -1];
18598 char h[sizeof (_Bool)];
18599 char i[sizeof s.t];
18600 enum { j = false, k = true, l = false * true, m = true * 256 };
18601 /* The following fails for
18602 HP aC++/ANSI C B3910B A.05.55 [Dec 04 2003]. */
18604 char o[sizeof n == m * sizeof n[0] ? 1 : -1];
18605 char p[-1 - (_Bool) 0 < 0 && -1 - (bool) 0 < 0 ? 1 : -1];
18606 /* Catch a bug in an HP-UX C compiler. See
18607 http://gcc.gnu.org/ml/gcc-patches/2003-12/msg02303.html
18608 http://lists.gnu.org/archive/html/bug-coreutils/2005-11/msg00161.html
18620 /* Refer to every declared value, to avoid compiler optimizations. */
18621 return (!a + !b + !c + !d + !e + !f + !g + !h + !i + !!j + !k + !!l
18622 + !m + !n + !o + !p + !q + !pq);
18628 if ac_fn_c_try_compile
"$LINENO"; then :
18629 ac_cv_header_stdbool_h
=yes
18631 ac_cv_header_stdbool_h
=no
18633 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
18635 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdbool_h" >&5
18636 $as_echo "$ac_cv_header_stdbool_h" >&6; }
18637 ac_fn_c_check_type
"$LINENO" "_Bool" "ac_cv_type__Bool" "$ac_includes_default"
18638 if test "x$ac_cv_type__Bool" = x
""yes; then :
18640 cat >>confdefs.h
<<_ACEOF
18641 #define HAVE__BOOL 1
18653 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for wchar_t" >&5
18654 $as_echo_n "checking for wchar_t... " >&6; }
18655 if test "${gt_cv_c_wchar_t+set}" = set; then :
18656 $as_echo_n "(cached) " >&6
18658 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
18659 /* end confdefs.h. */
18660 #include <stddef.h>
18661 wchar_t foo = (wchar_t)'\0';
18670 if ac_fn_c_try_compile
"$LINENO"; then :
18671 gt_cv_c_wchar_t
=yes
18675 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
18677 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_c_wchar_t" >&5
18678 $as_echo "$gt_cv_c_wchar_t" >&6; }
18679 if test $gt_cv_c_wchar_t = yes; then
18681 $as_echo "#define HAVE_WCHAR_T 1" >>confdefs.h
18694 GNULIB_FPRINTF_POSIX
=0;
18711 GNULIB_OBSTACK_PRINTF
=0;
18712 GNULIB_OBSTACK_PRINTF_POSIX
=0;
18717 GNULIB_PRINTF_POSIX
=0;
18726 GNULIB_SPRINTF_POSIX
=0;
18727 GNULIB_STDIO_H_NONBLOCKING
=0;
18728 GNULIB_STDIO_H_SIGPIPE
=0;
18730 GNULIB_VASPRINTF
=0;
18735 GNULIB_VFPRINTF_POSIX
=0;
18737 GNULIB_VPRINTF_POSIX
=0;
18738 GNULIB_VSNPRINTF
=0;
18739 GNULIB_VSPRINTF_POSIX
=0;
18740 HAVE_DECL_FPURGE
=1;
18741 HAVE_DECL_FSEEKO
=1;
18742 HAVE_DECL_FTELLO
=1;
18743 HAVE_DECL_GETDELIM
=1;
18744 HAVE_DECL_GETLINE
=1;
18745 HAVE_DECL_OBSTACK_PRINTF
=1;
18746 HAVE_DECL_SNPRINTF
=1;
18747 HAVE_DECL_VSNPRINTF
=1;
18768 REPLACE_GETDELIM
=0;
18770 REPLACE_OBSTACK_PRINTF
=0;
18776 REPLACE_RENAMEAT
=0;
18777 REPLACE_SNPRINTF
=0;
18779 REPLACE_STDIO_READ_FUNCS
=0;
18780 REPLACE_STDIO_WRITE_FUNCS
=0;
18782 REPLACE_VASPRINTF
=0;
18783 REPLACE_VDPRINTF
=0;
18784 REPLACE_VFPRINTF
=0;
18786 REPLACE_VSNPRINTF
=0;
18787 REPLACE_VSPRINTF
=0;
18789 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether struct tm is in sys/time.h or time.h" >&5
18790 $as_echo_n "checking whether struct tm is in sys/time.h or time.h... " >&6; }
18791 if test "${ac_cv_struct_tm+set}" = set; then :
18792 $as_echo_n "(cached) " >&6
18794 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
18795 /* end confdefs.h. */
18796 #include <sys/types.h>
18803 int *p = &tm.tm_sec;
18809 if ac_fn_c_try_compile
"$LINENO"; then :
18810 ac_cv_struct_tm
=time.h
18812 ac_cv_struct_tm
=sys
/time.h
18814 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
18816 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_struct_tm" >&5
18817 $as_echo "$ac_cv_struct_tm" >&6; }
18818 if test $ac_cv_struct_tm = sys
/time.h
; then
18820 $as_echo "#define TM_IN_SYS_TIME 1" >>confdefs.h
18824 ac_fn_c_check_member
"$LINENO" "struct tm" "tm_zone" "ac_cv_member_struct_tm_tm_zone" "#include <sys/types.h>
18825 #include <$ac_cv_struct_tm>
18828 if test "x$ac_cv_member_struct_tm_tm_zone" = x
""yes; then :
18830 cat >>confdefs.h
<<_ACEOF
18831 #define HAVE_STRUCT_TM_TM_ZONE 1
18837 if test "$ac_cv_member_struct_tm_tm_zone" = yes; then
18839 $as_echo "#define HAVE_TM_ZONE 1" >>confdefs.h
18842 ac_fn_c_check_decl
"$LINENO" "tzname" "ac_cv_have_decl_tzname" "#include <time.h>
18844 if test "x$ac_cv_have_decl_tzname" = x
""yes; then :
18850 cat >>confdefs.h
<<_ACEOF
18851 #define HAVE_DECL_TZNAME $ac_have_decl
18854 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for tzname" >&5
18855 $as_echo_n "checking for tzname... " >&6; }
18856 if test "${ac_cv_var_tzname+set}" = set; then :
18857 $as_echo_n "(cached) " >&6
18859 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
18860 /* end confdefs.h. */
18862 #if !HAVE_DECL_TZNAME
18863 extern char *tzname[];
18869 return tzname[0][0];
18874 if ac_fn_c_try_link
"$LINENO"; then :
18875 ac_cv_var_tzname
=yes
18877 ac_cv_var_tzname
=no
18879 rm -f core conftest.err conftest.
$ac_objext \
18880 conftest
$ac_exeext conftest.
$ac_ext
18882 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_var_tzname" >&5
18883 $as_echo "$ac_cv_var_tzname" >&6; }
18884 if test $ac_cv_var_tzname = yes; then
18886 $as_echo "#define HAVE_TZNAME 1" >>confdefs.h
18892 ac_fn_c_check_member
"$LINENO" "struct tm" "tm_gmtoff" "ac_cv_member_struct_tm_tm_gmtoff" "#include <time.h>
18894 if test "x$ac_cv_member_struct_tm_tm_gmtoff" = x
""yes; then :
18896 $as_echo "#define HAVE_TM_GMTOFF 1" >>confdefs.h
18905 ac_fn_c_check_decl
"$LINENO" "strtoimax" "ac_cv_have_decl_strtoimax" "$ac_includes_default"
18906 if test "x$ac_cv_have_decl_strtoimax" = x
""yes; then :
18912 cat >>confdefs.h
<<_ACEOF
18913 #define HAVE_DECL_STRTOIMAX $ac_have_decl
18918 ac_fn_c_check_decl
"$LINENO" "strtoumax" "ac_cv_have_decl_strtoumax" "$ac_includes_default"
18919 if test "x$ac_cv_have_decl_strtoumax" = x
""yes; then :
18925 cat >>confdefs.h
<<_ACEOF
18926 #define HAVE_DECL_STRTOUMAX $ac_have_decl
18931 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stat file-mode macros are broken" >&5
18932 $as_echo_n "checking whether stat file-mode macros are broken... " >&6; }
18933 if test "${ac_cv_header_stat_broken+set}" = set; then :
18934 $as_echo_n "(cached) " >&6
18936 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
18937 /* end confdefs.h. */
18938 #include <sys/types.h>
18939 #include <sys/stat.h>
18941 #if defined S_ISBLK && defined S_IFDIR
18942 extern char c1[S_ISBLK (S_IFDIR) ? -1 : 1];
18945 #if defined S_ISBLK && defined S_IFCHR
18946 extern char c2[S_ISBLK (S_IFCHR) ? -1 : 1];
18949 #if defined S_ISLNK && defined S_IFREG
18950 extern char c3[S_ISLNK (S_IFREG) ? -1 : 1];
18953 #if defined S_ISSOCK && defined S_IFREG
18954 extern char c4[S_ISSOCK (S_IFREG) ? -1 : 1];
18958 if ac_fn_c_try_compile
"$LINENO"; then :
18959 ac_cv_header_stat_broken
=no
18961 ac_cv_header_stat_broken
=yes
18963 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
18965 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stat_broken" >&5
18966 $as_echo "$ac_cv_header_stat_broken" >&6; }
18967 if test $ac_cv_header_stat_broken = yes; then
18969 $as_echo "#define STAT_MACROS_BROKEN 1" >>confdefs.h
18975 ac_fn_c_check_type
"$LINENO" "mode_t" "ac_cv_type_mode_t" "$ac_includes_default"
18976 if test "x$ac_cv_type_mode_t" = x
""yes; then :
18980 cat >>confdefs.h
<<_ACEOF
18986 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for C/C++ restrict keyword" >&5
18987 $as_echo_n "checking for C/C++ restrict keyword... " >&6; }
18988 if test "${ac_cv_c_restrict+set}" = set; then :
18989 $as_echo_n "(cached) " >&6
18991 ac_cv_c_restrict
=no
18992 # The order here caters to the fact that C++ does not require restrict.
18993 for ac_kw
in __restrict __restrict__ _Restrict restrict
; do
18994 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
18995 /* end confdefs.h. */
18996 typedef int * int_ptr;
18997 int foo (int_ptr $ac_kw ip) {
19004 int * $ac_kw t = s;
19011 if ac_fn_c_try_compile
"$LINENO"; then :
19012 ac_cv_c_restrict
=$ac_kw
19014 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
19015 test "$ac_cv_c_restrict" != no
&& break
19019 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_restrict" >&5
19020 $as_echo "$ac_cv_c_restrict" >&6; }
19022 case $ac_cv_c_restrict in
19024 no
) $as_echo "#define restrict /**/" >>confdefs.h
19026 *) cat >>confdefs.h
<<_ACEOF
19027 #define restrict $ac_cv_c_restrict
19036 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for struct timespec in <time.h>" >&5
19037 $as_echo_n "checking for struct timespec in <time.h>... " >&6; }
19038 if test "${gl_cv_sys_struct_timespec_in_time_h+set}" = set; then :
19039 $as_echo_n "(cached) " >&6
19041 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
19042 /* end confdefs.h. */
19048 static struct timespec x; x.tv_sec = x.tv_nsec;
19053 if ac_fn_c_try_compile
"$LINENO"; then :
19054 gl_cv_sys_struct_timespec_in_time_h
=yes
19056 gl_cv_sys_struct_timespec_in_time_h
=no
19058 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
19060 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_sys_struct_timespec_in_time_h" >&5
19061 $as_echo "$gl_cv_sys_struct_timespec_in_time_h" >&6; }
19063 TIME_H_DEFINES_STRUCT_TIMESPEC
=0
19064 SYS_TIME_H_DEFINES_STRUCT_TIMESPEC
=0
19065 PTHREAD_H_DEFINES_STRUCT_TIMESPEC
=0
19066 if test $gl_cv_sys_struct_timespec_in_time_h = yes; then
19067 TIME_H_DEFINES_STRUCT_TIMESPEC
=1
19069 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for struct timespec in <sys/time.h>" >&5
19070 $as_echo_n "checking for struct timespec in <sys/time.h>... " >&6; }
19071 if test "${gl_cv_sys_struct_timespec_in_sys_time_h+set}" = set; then :
19072 $as_echo_n "(cached) " >&6
19074 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
19075 /* end confdefs.h. */
19076 #include <sys/time.h>
19081 static struct timespec x; x.tv_sec = x.tv_nsec;
19086 if ac_fn_c_try_compile
"$LINENO"; then :
19087 gl_cv_sys_struct_timespec_in_sys_time_h
=yes
19089 gl_cv_sys_struct_timespec_in_sys_time_h
=no
19091 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
19093 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_sys_struct_timespec_in_sys_time_h" >&5
19094 $as_echo "$gl_cv_sys_struct_timespec_in_sys_time_h" >&6; }
19095 if test $gl_cv_sys_struct_timespec_in_sys_time_h = yes; then
19096 SYS_TIME_H_DEFINES_STRUCT_TIMESPEC
=1
19098 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for struct timespec in <pthread.h>" >&5
19099 $as_echo_n "checking for struct timespec in <pthread.h>... " >&6; }
19100 if test "${gl_cv_sys_struct_timespec_in_pthread_h+set}" = set; then :
19101 $as_echo_n "(cached) " >&6
19103 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
19104 /* end confdefs.h. */
19105 #include <pthread.h>
19110 static struct timespec x; x.tv_sec = x.tv_nsec;
19115 if ac_fn_c_try_compile
"$LINENO"; then :
19116 gl_cv_sys_struct_timespec_in_pthread_h
=yes
19118 gl_cv_sys_struct_timespec_in_pthread_h
=no
19120 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
19122 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_sys_struct_timespec_in_pthread_h" >&5
19123 $as_echo "$gl_cv_sys_struct_timespec_in_pthread_h" >&6; }
19124 if test $gl_cv_sys_struct_timespec_in_pthread_h = yes; then
19125 PTHREAD_H_DEFINES_STRUCT_TIMESPEC
=1
19144 if test $gl_cv_have_include_next = yes; then
19145 gl_cv_next_time_h
='<'time.h
'>'
19147 { $as_echo "$as_me:${as_lineno-$LINENO}: checking absolute name of <time.h>" >&5
19148 $as_echo_n "checking absolute name of <time.h>... " >&6; }
19149 if test "${gl_cv_next_time_h+set}" = set; then :
19150 $as_echo_n "(cached) " >&6
19153 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
19154 /* end confdefs.h. */
19159 aix
*) gl_absname_cpp
="$ac_cpp -C" ;;
19160 *) gl_absname_cpp
="$ac_cpp" ;;
19165 gl_dirsep_regex
='[/\\]'
19168 gl_dirsep_regex
='/'
19172 gl_absolute_header_sed
='\|'"${gl_dirsep_regex}"'time.h|{
19173 s|.*"\(.*'"${gl_dirsep_regex}"'time.h\)".*|\1|
19178 gl_cv_next_time_h
='"'`(eval "$gl_absname_cpp conftest.$ac_ext") 2>&5 |
19179 sed -n "$gl_absolute_header_sed"`'"'
19183 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_next_time_h" >&5
19184 $as_echo "$gl_cv_next_time_h" >&6; }
19186 NEXT_TIME_H
=$gl_cv_next_time_h
19188 if test $gl_cv_have_include_next = yes ||
test $gl_cv_have_include_next = buggy
; then
19189 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include_next'
19190 gl_next_as_first_directive
='<'time.h
'>'
19192 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include'
19193 gl_next_as_first_directive
=$gl_cv_next_time_h
19195 NEXT_AS_FIRST_DIRECTIVE_TIME_H
=$gl_next_as_first_directive
19202 ac_fn_c_check_decl
"$LINENO" "localtime_r" "ac_cv_have_decl_localtime_r" "$ac_includes_default"
19203 if test "x$ac_cv_have_decl_localtime_r" = x
""yes; then :
19209 cat >>confdefs.h
<<_ACEOF
19210 #define HAVE_DECL_LOCALTIME_R $ac_have_decl
19217 GL_COND_LIBTOOL_TRUE
=
19218 GL_COND_LIBTOOL_FALSE
='#'
19220 GL_COND_LIBTOOL_TRUE
='#'
19221 GL_COND_LIBTOOL_FALSE
=
19224 gl_cond_libtool
=false
19237 gl_source_base
='lib'
19240 if test $ac_cv_func_alloca_works = no
; then
19244 # Define an additional variable used in the Makefile substitution.
19245 if test $ac_cv_working_alloca_h = yes; then
19246 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for alloca as a compiler built-in" >&5
19247 $as_echo_n "checking for alloca as a compiler built-in... " >&6; }
19248 if test "${gl_cv_rpl_alloca+set}" = set; then :
19249 $as_echo_n "(cached) " >&6
19252 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
19253 /* end confdefs.h. */
19255 #if defined __GNUC__ || defined _AIX || defined _MSC_VER
19260 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
19261 $EGREP "Need own alloca" >/dev
/null
2>&1; then :
19262 gl_cv_rpl_alloca
=yes
19264 gl_cv_rpl_alloca
=no
19270 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_rpl_alloca" >&5
19271 $as_echo "$gl_cv_rpl_alloca" >&6; }
19272 if test $gl_cv_rpl_alloca = yes; then
19274 $as_echo "#define HAVE_ALLOCA 1" >>confdefs.h
19284 if test -n "$ALLOCA_H"; then
19285 GL_GENERATE_ALLOCA_H_TRUE
=
19286 GL_GENERATE_ALLOCA_H_FALSE
='#'
19288 GL_GENERATE_ALLOCA_H_TRUE
='#'
19289 GL_GENERATE_ALLOCA_H_FALSE
=
19318 $as_echo "#define HAVE_DUP2 1" >>confdefs.h
19321 if test $HAVE_DUP2 = 1; then
19322 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether dup2 works" >&5
19323 $as_echo_n "checking whether dup2 works... " >&6; }
19324 if test "${gl_cv_func_dup2_works+set}" = set; then :
19325 $as_echo_n "(cached) " >&6
19327 if test "$cross_compiling" = yes; then :
19329 mingw
*) # on this platform, dup2 always returns 0 for success
19330 gl_cv_func_dup2_works
=no
;;
19331 cygwin
*) # on cygwin 1.5.x, dup2(1,1) returns 0
19332 gl_cv_func_dup2_works
=no
;;
19333 linux
*) # On linux between 2008-07-27 and 2009-05-11, dup2 of a
19334 # closed fd may yield -EBADF instead of -1 / errno=EBADF.
19335 gl_cv_func_dup2_works
=no
;;
19336 freebsd
*) # on FreeBSD 6.1, dup2(1,1000000) gives EMFILE, not EBADF.
19337 gl_cv_func_dup2_works
=no
;;
19338 haiku
*) # on Haiku alpha 2, dup2(1, 1) resets FD_CLOEXEC.
19339 gl_cv_func_dup2_works
=no
;;
19340 *) gl_cv_func_dup2_works
=yes;;
19343 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
19344 /* end confdefs.h. */
19346 #include <unistd.h>
19354 if (fcntl (1, F_SETFD, FD_CLOEXEC) == -1)
19357 if (dup2 (1, 1) == 0)
19360 if (fcntl (1, F_GETFD) != FD_CLOEXEC)
19364 if (dup2 (0, 0) != -1)
19366 /* Many gnulib modules require POSIX conformance of EBADF. */
19367 if (dup2 (2, 1000000) == -1 && errno != EBADF)
19376 if ac_fn_c_try_run
"$LINENO"; then :
19377 gl_cv_func_dup2_works
=yes
19379 gl_cv_func_dup2_works
=no
19381 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
19382 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
19387 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_dup2_works" >&5
19388 $as_echo "$gl_cv_func_dup2_works" >&6; }
19389 if test "$gl_cv_func_dup2_works" = no
; then
19395 if test $HAVE_DUP2 = 0 ||
test $REPLACE_DUP2 = 1; then
19404 gl_LIBOBJS
="$gl_LIBOBJS dup2.$ac_objext"
19425 # Persuade glibc <stdlib.h> to declare getloadavg().
19430 # getloadvg is present in libc on glibc >= 2.2, MacOS X, FreeBSD >= 2.0,
19431 # NetBSD >= 0.9, OpenBSD >= 2.0, Solaris >= 7.
19433 ac_fn_c_check_func
"$LINENO" "getloadavg" "ac_cv_func_getloadavg"
19434 if test "x$ac_cv_func_getloadavg" = x
""yes; then :
19437 gl_func_getloadavg_done
=no
19439 # Some systems with -lutil have (and need) -lkvm as well, some do not.
19440 # On Solaris, -lkvm requires nlist from -lelf, so check that first
19441 # to get the right answer into the cache.
19442 # For kstat on solaris, we need to test for libelf and libkvm to force the
19443 # definition of SVR4 below.
19444 if test $gl_func_getloadavg_done = no
; then
19445 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for elf_begin in -lelf" >&5
19446 $as_echo_n "checking for elf_begin in -lelf... " >&6; }
19447 if test "${ac_cv_lib_elf_elf_begin+set}" = set; then :
19448 $as_echo_n "(cached) " >&6
19450 ac_check_lib_save_LIBS
=$LIBS
19452 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
19453 /* end confdefs.h. */
19455 /* Override any GCC internal prototype to avoid an error.
19456 Use char because int might match the return type of a GCC
19457 builtin and then its argument prototype would still apply. */
19465 return elf_begin ();
19470 if ac_fn_c_try_link
"$LINENO"; then :
19471 ac_cv_lib_elf_elf_begin
=yes
19473 ac_cv_lib_elf_elf_begin
=no
19475 rm -f core conftest.err conftest.
$ac_objext \
19476 conftest
$ac_exeext conftest.
$ac_ext
19477 LIBS
=$ac_check_lib_save_LIBS
19479 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_elf_elf_begin" >&5
19480 $as_echo "$ac_cv_lib_elf_elf_begin" >&6; }
19481 if test "x$ac_cv_lib_elf_elf_begin" = x
""yes; then :
19485 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for kvm_open in -lkvm" >&5
19486 $as_echo_n "checking for kvm_open in -lkvm... " >&6; }
19487 if test "${ac_cv_lib_kvm_kvm_open+set}" = set; then :
19488 $as_echo_n "(cached) " >&6
19490 ac_check_lib_save_LIBS
=$LIBS
19492 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
19493 /* end confdefs.h. */
19495 /* Override any GCC internal prototype to avoid an error.
19496 Use char because int might match the return type of a GCC
19497 builtin and then its argument prototype would still apply. */
19505 return kvm_open ();
19510 if ac_fn_c_try_link
"$LINENO"; then :
19511 ac_cv_lib_kvm_kvm_open
=yes
19513 ac_cv_lib_kvm_kvm_open
=no
19515 rm -f core conftest.err conftest.
$ac_objext \
19516 conftest
$ac_exeext conftest.
$ac_ext
19517 LIBS
=$ac_check_lib_save_LIBS
19519 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_kvm_kvm_open" >&5
19520 $as_echo "$ac_cv_lib_kvm_kvm_open" >&6; }
19521 if test "x$ac_cv_lib_kvm_kvm_open" = x
""yes; then :
19525 # Check for the 4.4BSD definition of getloadavg.
19526 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for getloadavg in -lutil" >&5
19527 $as_echo_n "checking for getloadavg in -lutil... " >&6; }
19528 if test "${ac_cv_lib_util_getloadavg+set}" = set; then :
19529 $as_echo_n "(cached) " >&6
19531 ac_check_lib_save_LIBS
=$LIBS
19532 LIBS
="-lutil $LIBS"
19533 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
19534 /* end confdefs.h. */
19536 /* Override any GCC internal prototype to avoid an error.
19537 Use char because int might match the return type of a GCC
19538 builtin and then its argument prototype would still apply. */
19542 char getloadavg ();
19546 return getloadavg ();
19551 if ac_fn_c_try_link
"$LINENO"; then :
19552 ac_cv_lib_util_getloadavg
=yes
19554 ac_cv_lib_util_getloadavg
=no
19556 rm -f core conftest.err conftest.
$ac_objext \
19557 conftest
$ac_exeext conftest.
$ac_ext
19558 LIBS
=$ac_check_lib_save_LIBS
19560 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_util_getloadavg" >&5
19561 $as_echo "$ac_cv_lib_util_getloadavg" >&6; }
19562 if test "x$ac_cv_lib_util_getloadavg" = x
""yes; then :
19563 LIBS
="-lutil $LIBS" gl_func_getloadavg_done
=yes
19568 if test $gl_func_getloadavg_done = no
; then
19569 # There is a commonly available library for RS/6000 AIX.
19570 # Since it is not a standard part of AIX, it might be installed locally.
19571 gl_getloadavg_LIBS
=$LIBS
19572 LIBS
="-L/usr/local/lib $LIBS"
19573 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for getloadavg in -lgetloadavg" >&5
19574 $as_echo_n "checking for getloadavg in -lgetloadavg... " >&6; }
19575 if test "${ac_cv_lib_getloadavg_getloadavg+set}" = set; then :
19576 $as_echo_n "(cached) " >&6
19578 ac_check_lib_save_LIBS
=$LIBS
19579 LIBS
="-lgetloadavg $LIBS"
19580 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
19581 /* end confdefs.h. */
19583 /* Override any GCC internal prototype to avoid an error.
19584 Use char because int might match the return type of a GCC
19585 builtin and then its argument prototype would still apply. */
19589 char getloadavg ();
19593 return getloadavg ();
19598 if ac_fn_c_try_link
"$LINENO"; then :
19599 ac_cv_lib_getloadavg_getloadavg
=yes
19601 ac_cv_lib_getloadavg_getloadavg
=no
19603 rm -f core conftest.err conftest.
$ac_objext \
19604 conftest
$ac_exeext conftest.
$ac_ext
19605 LIBS
=$ac_check_lib_save_LIBS
19607 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_getloadavg_getloadavg" >&5
19608 $as_echo "$ac_cv_lib_getloadavg_getloadavg" >&6; }
19609 if test "x$ac_cv_lib_getloadavg_getloadavg" = x
""yes; then :
19610 LIBS
="-lgetloadavg $LIBS" gl_func_getloadavg_done
=yes
19612 LIBS
=$gl_getloadavg_LIBS
19617 # Set up the replacement function if necessary.
19618 if test $gl_func_getloadavg_done = no
; then
19621 # Solaris has libkstat which does not require root.
19622 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for kstat_open in -lkstat" >&5
19623 $as_echo_n "checking for kstat_open in -lkstat... " >&6; }
19624 if test "${ac_cv_lib_kstat_kstat_open+set}" = set; then :
19625 $as_echo_n "(cached) " >&6
19627 ac_check_lib_save_LIBS
=$LIBS
19628 LIBS
="-lkstat $LIBS"
19629 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
19630 /* end confdefs.h. */
19632 /* Override any GCC internal prototype to avoid an error.
19633 Use char because int might match the return type of a GCC
19634 builtin and then its argument prototype would still apply. */
19638 char kstat_open ();
19642 return kstat_open ();
19647 if ac_fn_c_try_link
"$LINENO"; then :
19648 ac_cv_lib_kstat_kstat_open
=yes
19650 ac_cv_lib_kstat_kstat_open
=no
19652 rm -f core conftest.err conftest.
$ac_objext \
19653 conftest
$ac_exeext conftest.
$ac_ext
19654 LIBS
=$ac_check_lib_save_LIBS
19656 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_kstat_kstat_open" >&5
19657 $as_echo "$ac_cv_lib_kstat_kstat_open" >&6; }
19658 if test "x$ac_cv_lib_kstat_kstat_open" = x
""yes; then :
19659 cat >>confdefs.h
<<_ACEOF
19660 #define HAVE_LIBKSTAT 1
19663 LIBS
="-lkstat $LIBS"
19667 test $ac_cv_lib_kstat_kstat_open = yes && gl_func_getloadavg_done
=yes
19669 # AIX has libperfstat which does not require root
19670 if test $gl_func_getloadavg_done = no
; then
19671 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for perfstat_cpu_total in -lperfstat" >&5
19672 $as_echo_n "checking for perfstat_cpu_total in -lperfstat... " >&6; }
19673 if test "${ac_cv_lib_perfstat_perfstat_cpu_total+set}" = set; then :
19674 $as_echo_n "(cached) " >&6
19676 ac_check_lib_save_LIBS
=$LIBS
19677 LIBS
="-lperfstat $LIBS"
19678 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
19679 /* end confdefs.h. */
19681 /* Override any GCC internal prototype to avoid an error.
19682 Use char because int might match the return type of a GCC
19683 builtin and then its argument prototype would still apply. */
19687 char perfstat_cpu_total ();
19691 return perfstat_cpu_total ();
19696 if ac_fn_c_try_link
"$LINENO"; then :
19697 ac_cv_lib_perfstat_perfstat_cpu_total
=yes
19699 ac_cv_lib_perfstat_perfstat_cpu_total
=no
19701 rm -f core conftest.err conftest.
$ac_objext \
19702 conftest
$ac_exeext conftest.
$ac_ext
19703 LIBS
=$ac_check_lib_save_LIBS
19705 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_perfstat_perfstat_cpu_total" >&5
19706 $as_echo "$ac_cv_lib_perfstat_perfstat_cpu_total" >&6; }
19707 if test "x$ac_cv_lib_perfstat_perfstat_cpu_total" = x
""yes; then :
19708 cat >>confdefs.h
<<_ACEOF
19709 #define HAVE_LIBPERFSTAT 1
19712 LIBS
="-lperfstat $LIBS"
19716 test $ac_cv_lib_perfstat_perfstat_cpu_total = yes && gl_func_getloadavg_done
=yes
19719 if test $gl_func_getloadavg_done = no
; then
19720 ac_fn_c_check_header_mongrel
"$LINENO" "sys/dg_sys_info.h" "ac_cv_header_sys_dg_sys_info_h" "$ac_includes_default"
19721 if test "x$ac_cv_header_sys_dg_sys_info_h" = x
""yes; then :
19722 gl_func_getloadavg_done
=yes
19724 $as_echo "#define DGUX 1" >>confdefs.h
19726 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dg_sys_info in -ldgc" >&5
19727 $as_echo_n "checking for dg_sys_info in -ldgc... " >&6; }
19728 if test "${ac_cv_lib_dgc_dg_sys_info+set}" = set; then :
19729 $as_echo_n "(cached) " >&6
19731 ac_check_lib_save_LIBS
=$LIBS
19733 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
19734 /* end confdefs.h. */
19736 /* Override any GCC internal prototype to avoid an error.
19737 Use char because int might match the return type of a GCC
19738 builtin and then its argument prototype would still apply. */
19742 char dg_sys_info ();
19746 return dg_sys_info ();
19751 if ac_fn_c_try_link
"$LINENO"; then :
19752 ac_cv_lib_dgc_dg_sys_info
=yes
19754 ac_cv_lib_dgc_dg_sys_info
=no
19756 rm -f core conftest.err conftest.
$ac_objext \
19757 conftest
$ac_exeext conftest.
$ac_ext
19758 LIBS
=$ac_check_lib_save_LIBS
19760 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dgc_dg_sys_info" >&5
19761 $as_echo "$ac_cv_lib_dgc_dg_sys_info" >&6; }
19762 if test "x$ac_cv_lib_dgc_dg_sys_info" = x
""yes; then :
19763 cat >>confdefs.h
<<_ACEOF
19764 #define HAVE_LIBDGC 1
19779 if test "x$gl_save_LIBS" = x
; then
19780 GETLOADAVG_LIBS
=$LIBS
19782 GETLOADAVG_LIBS
=`echo "$LIBS" | sed "s!$gl_save_LIBS!!"`
19787 # Test whether the system declares getloadavg. Solaris has the function
19788 # but declares it in <sys/loadavg.h>, not <stdlib.h>.
19789 for ac_header
in sys
/loadavg.h
19791 ac_fn_c_check_header_mongrel
"$LINENO" "sys/loadavg.h" "ac_cv_header_sys_loadavg_h" "$ac_includes_default"
19792 if test "x$ac_cv_header_sys_loadavg_h" = x
""yes; then :
19793 cat >>confdefs.h
<<_ACEOF
19794 #define HAVE_SYS_LOADAVG_H 1
19801 if test $ac_cv_header_sys_loadavg_h = yes; then
19802 HAVE_SYS_LOADAVG_H
=1
19804 HAVE_SYS_LOADAVG_H
=0
19806 ac_fn_c_check_decl
"$LINENO" "getloadavg" "ac_cv_have_decl_getloadavg" "#if HAVE_SYS_LOADAVG_H
19807 # include <sys/loadavg.h>
19809 #include <stdlib.h>
19811 if test "x$ac_cv_have_decl_getloadavg" = x
""yes; then :
19814 HAVE_DECL_GETLOADAVG
=0
19818 if test $HAVE_GETLOADAVG = 0; then
19827 gl_LIBOBJS
="$gl_LIBOBJS getloadavg.$ac_objext"
19830 # Figure out what our getloadavg.c needs.
19832 # On HPUX9, an unprivileged user can get load averages this way.
19833 if test $gl_func_getloadavg_done = no
; then
19834 for ac_func
in pstat_getdynamic
19836 ac_fn_c_check_func
"$LINENO" "pstat_getdynamic" "ac_cv_func_pstat_getdynamic"
19837 if test "x$ac_cv_func_pstat_getdynamic" = x
""yes; then :
19838 cat >>confdefs.h
<<_ACEOF
19839 #define HAVE_PSTAT_GETDYNAMIC 1
19841 gl_func_getloadavg_done
=yes
19847 # We cannot check for <dwarf.h>, because Solaris 2 does not use dwarf (it
19848 # uses stabs), but it is still SVR4. We cannot check for <elf.h> because
19849 # Irix 4.0.5F has the header but not the library.
19850 if test $gl_func_getloadavg_done = no
&& test "$ac_cv_lib_elf_elf_begin" = yes \
19851 && test "$ac_cv_lib_kvm_kvm_open" = yes; then
19852 gl_func_getloadavg_done
=yes
19854 $as_echo "#define SVR4 1" >>confdefs.h
19858 if test $gl_func_getloadavg_done = no
; then
19859 ac_fn_c_check_header_mongrel
"$LINENO" "inq_stats/cpustats.h" "ac_cv_header_inq_stats_cpustats_h" "$ac_includes_default"
19860 if test "x$ac_cv_header_inq_stats_cpustats_h" = x
""yes; then :
19861 gl_func_getloadavg_done
=yes
19863 $as_echo "#define UMAX 1" >>confdefs.h
19866 $as_echo "#define UMAX4_3 1" >>confdefs.h
19873 if test $gl_func_getloadavg_done = no
; then
19874 ac_fn_c_check_header_mongrel
"$LINENO" "sys/cpustats.h" "ac_cv_header_sys_cpustats_h" "$ac_includes_default"
19875 if test "x$ac_cv_header_sys_cpustats_h" = x
""yes; then :
19876 gl_func_getloadavg_done
=yes; $as_echo "#define UMAX 1" >>confdefs.h
19883 if test $gl_func_getloadavg_done = no
; then
19884 for ac_header
in mach
/mach.h
19886 ac_fn_c_check_header_mongrel
"$LINENO" "mach/mach.h" "ac_cv_header_mach_mach_h" "$ac_includes_default"
19887 if test "x$ac_cv_header_mach_mach_h" = x
""yes; then :
19888 cat >>confdefs.h
<<_ACEOF
19889 #define HAVE_MACH_MACH_H 1
19898 for ac_header
in nlist.h
19900 ac_fn_c_check_header_mongrel
"$LINENO" "nlist.h" "ac_cv_header_nlist_h" "$ac_includes_default"
19901 if test "x$ac_cv_header_nlist_h" = x
""yes; then :
19902 cat >>confdefs.h
<<_ACEOF
19903 #define HAVE_NLIST_H 1
19905 ac_fn_c_check_member
"$LINENO" "struct nlist" "n_un.n_name" "ac_cv_member_struct_nlist_n_un_n_name" "#include <nlist.h>
19907 if test "x$ac_cv_member_struct_nlist_n_un_n_name" = x
""yes; then :
19909 cat >>confdefs.h
<<_ACEOF
19910 #define HAVE_STRUCT_NLIST_N_UN_N_NAME 1
19916 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
19917 /* end confdefs.h. */
19923 #ifdef HAVE_STRUCT_NLIST_N_UN_N_NAME
19924 x.n_un.n_name = "";
19932 if ac_fn_c_try_link
"$LINENO"; then :
19934 $as_echo "#define N_NAME_POINTER 1" >>confdefs.h
19937 rm -f core conftest.err conftest.
$ac_objext \
19938 conftest
$ac_exeext conftest.
$ac_ext
19950 GNULIB_GETLOADAVG
=1
19961 if test $REPLACE_GETOPT = 1; then
19970 gl_LIBOBJS
="$gl_LIBOBJS getopt.$ac_objext"
19980 gl_LIBOBJS
="$gl_LIBOBJS getopt1.$ac_objext"
19994 if test -n "$gl_replace_getopt"; then :
20001 if test $REPLACE_GETOPT = 1; then
20005 $as_echo "#define __GETOPT_PREFIX rpl_" >>confdefs.h
20009 GNULIB_UNISTD_H_GETOPT
=1
20012 if test $REPLACE_GETOPT = 1; then
20021 gl_LIBOBJS
="$gl_LIBOBJS getopt.$ac_objext"
20031 gl_LIBOBJS
="$gl_LIBOBJS getopt1.$ac_objext"
20042 if test $ac_cv_func_lstat = yes; then
20044 if test $gl_cv_func_lstat_dereferences_slashed_symlink = no
; then
20051 if test $REPLACE_LSTAT = 1; then
20060 gl_LIBOBJS
="$gl_LIBOBJS lstat.$ac_objext"
20084 if test $APPLE_UNIVERSAL_BUILD = 1; then
20085 # A universal build on Apple MacOS X platforms.
20086 # The test result would be 'yes' in 32-bit mode and 'no' in 64-bit mode.
20087 # But we need a configuration result that is valid in both modes.
20088 gl_cv_func_working_mktime
=no
20090 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working mktime" >&5
20091 $as_echo_n "checking for working mktime... " >&6; }
20092 if test "${gl_cv_func_working_mktime+set}" = set; then :
20093 $as_echo_n "(cached) " >&6
20095 if test "$cross_compiling" = yes; then :
20096 gl_cv_func_working_mktime
=no
20098 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
20099 /* end confdefs.h. */
20100 /* Test program from Paul Eggert and Tony Leneis. */
20101 #include <limits.h>
20102 #include <stdlib.h>
20105 #ifdef HAVE_UNISTD_H
20106 # include <unistd.h>
20110 # define alarm(X) /* empty */
20113 /* Work around redefinition to rpl_putenv by other config tests. */
20116 static time_t time_t_max;
20117 static time_t time_t_min;
20119 /* Values we'll use to set the TZ environment variable. */
20120 static char *tz_strings[] = {
20121 (char *) 0, "TZ=GMT0", "TZ=JST-9",
20122 "TZ=EST+3EDT+2,M10.1.0/00:00:00,M2.3.0/00:00:00"
20124 #define N_STRINGS (sizeof (tz_strings) / sizeof (tz_strings[0]))
20126 /* Return 0 if mktime fails to convert a date in the spring-forward gap.
20127 Based on a problem report from Andreas Jaeger. */
20129 spring_forward_gap ()
20131 /* glibc (up to about 1998-10-07) failed this test. */
20134 /* Use the portable POSIX.1 specification "TZ=PST8PDT,M4.1.0,M10.5.0"
20135 instead of "TZ=America/Vancouver" in order to detect the bug even
20136 on systems that don't support the Olson extension, or don't have the
20137 full zoneinfo tables installed. */
20138 putenv ("TZ=PST8PDT,M4.1.0,M10.5.0");
20147 return mktime (&tm) != (time_t) -1;
20151 mktime_test1 (time_t now)
20154 return ! (lt = localtime (&now)) || mktime (lt) == now;
20158 mktime_test (time_t now)
20160 return (mktime_test1 (now)
20161 && mktime_test1 ((time_t) (time_t_max - now))
20162 && mktime_test1 ((time_t) (time_t_min + now)));
20168 /* Based on code from Ariel Faigon. */
20178 return tm.tm_mon == 2 && tm.tm_mday == 31;
20182 bigtime_test (int j)
20186 tm.tm_year = tm.tm_mon = tm.tm_mday = tm.tm_hour = tm.tm_min = tm.tm_sec = j;
20187 now = mktime (&tm);
20188 if (now != (time_t) -1)
20190 struct tm *lt = localtime (&now);
20192 && lt->tm_year == tm.tm_year
20193 && lt->tm_mon == tm.tm_mon
20194 && lt->tm_mday == tm.tm_mday
20195 && lt->tm_hour == tm.tm_hour
20196 && lt->tm_min == tm.tm_min
20197 && lt->tm_sec == tm.tm_sec
20198 && lt->tm_yday == tm.tm_yday
20199 && lt->tm_wday == tm.tm_wday
20200 && ((lt->tm_isdst < 0 ? -1 : 0 < lt->tm_isdst)
20201 == (tm.tm_isdst < 0 ? -1 : 0 < tm.tm_isdst))))
20210 /* The correct answer for 2050-02-01 00:00:00 in Pacific time,
20211 ignoring leap seconds. */
20212 unsigned long int answer = 2527315200UL;
20216 tm.tm_year = 2050 - 1900;
20219 tm.tm_hour = tm.tm_min = tm.tm_sec = 0;
20222 /* Use the portable POSIX.1 specification "TZ=PST8PDT,M4.1.0,M10.5.0"
20223 instead of "TZ=America/Vancouver" in order to detect the bug even
20224 on systems that don't support the Olson extension, or don't have the
20225 full zoneinfo tables installed. */
20226 putenv ("TZ=PST8PDT,M4.1.0,M10.5.0");
20230 /* Check that the result is either a failure, or close enough
20231 to the correct answer that we can assume the discrepancy is
20232 due to leap seconds. */
20233 return (t == (time_t) -1
20234 || (0 < t && answer - 120 <= t && t <= answer + 120));
20243 int time_t_signed_magnitude = (time_t) ~ (time_t) 0 < (time_t) -1;
20244 int time_t_signed = ! ((time_t) 0 < (time_t) -1);
20246 /* This test makes some buggy mktime implementations loop.
20247 Give up after 60 seconds; a mktime slower than that
20248 isn't worth using anyway. */
20251 time_t_max = (! time_t_signed
20253 : ((((time_t) 1 << (sizeof (time_t) * CHAR_BIT - 2)) - 1)
20255 time_t_min = (! time_t_signed
20257 : time_t_signed_magnitude
20261 delta = time_t_max / 997; /* a suitable prime number */
20262 for (i = 0; i < N_STRINGS; i++)
20265 putenv (tz_strings[i]);
20267 for (t = 0; t <= time_t_max - delta; t += delta)
20268 if (! mktime_test (t))
20270 if (! (mktime_test ((time_t) 1)
20271 && mktime_test ((time_t) (60 * 60))
20272 && mktime_test ((time_t) (60 * 60 * 24))))
20275 for (j = 1; ; j <<= 1)
20276 if (! bigtime_test (j))
20278 else if (INT_MAX / 2 < j)
20280 if (! bigtime_test (INT_MAX))
20283 if (! irix_6_4_bug ())
20285 if (! spring_forward_gap ())
20287 if (! year_2050_test ())
20292 if ac_fn_c_try_run
"$LINENO"; then :
20293 gl_cv_func_working_mktime
=yes
20295 gl_cv_func_working_mktime
=no
20297 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
20298 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
20303 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_working_mktime" >&5
20304 $as_echo "$gl_cv_func_working_mktime" >&6; }
20306 if test $gl_cv_func_working_mktime = no
; then
20312 if test $REPLACE_MKTIME = 1; then
20321 gl_LIBOBJS
="$gl_LIBOBJS mktime.$ac_objext"
20341 LIB_PTHREAD_SIGMASK
=
20344 if test $ac_cv_func_pthread_sigmask = yes; then
20347 HAVE_PTHREAD_SIGMASK
=0
20348 REPLACE_PTHREAD_SIGMASK
=1
20354 if test $HAVE_PTHREAD_SIGMASK = 1; then
20357 if test -z "$LIB_PTHREAD_SIGMASK"; then
20358 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether pthread_sigmask works without -lpthread" >&5
20359 $as_echo_n "checking whether pthread_sigmask works without -lpthread... " >&6; }
20360 if test "${gl_cv_func_pthread_sigmask_in_libc_works+set}" = set; then :
20361 $as_echo_n "(cached) " >&6
20364 if test "$cross_compiling" = yes; then :
20367 freebsd
* | hpux
* | solaris | solaris2.
[2-9]*)
20368 gl_cv_func_pthread_sigmask_in_libc_works
="guessing no";;
20370 gl_cv_func_pthread_sigmask_in_libc_works
="guessing yes";;
20374 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
20375 /* end confdefs.h. */
20377 #include <pthread.h>
20378 #include <signal.h>
20379 #include <stddef.h>
20383 sigemptyset (&set);
20384 return pthread_sigmask (1729, &set, NULL) != 0;
20387 if ac_fn_c_try_run
"$LINENO"; then :
20388 gl_cv_func_pthread_sigmask_in_libc_works
=no
20390 gl_cv_func_pthread_sigmask_in_libc_works
=yes
20392 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
20393 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
20398 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_pthread_sigmask_in_libc_works" >&5
20399 $as_echo "$gl_cv_func_pthread_sigmask_in_libc_works" >&6; }
20400 case "$gl_cv_func_pthread_sigmask_in_libc_works" in
20402 REPLACE_PTHREAD_SIGMASK
=1
20404 $as_echo "#define PTHREAD_SIGMASK_INEFFECTIVE 1" >>confdefs.h
20410 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether pthread_sigmask returns error numbers" >&5
20411 $as_echo_n "checking whether pthread_sigmask returns error numbers... " >&6; }
20412 if test "${gl_cv_func_pthread_sigmask_return_works+set}" = set; then :
20413 $as_echo_n "(cached) " >&6
20416 gl_save_LIBS
="$LIBS"
20417 LIBS
="$LIBS $LIB_PTHREAD_SIGMASK"
20418 if test "$cross_compiling" = yes; then :
20421 gl_cv_func_pthread_sigmask_return_works
="guessing no";;
20423 gl_cv_func_pthread_sigmask_return_works
="guessing yes";;
20427 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
20428 /* end confdefs.h. */
20430 #include <pthread.h>
20431 #include <signal.h>
20432 #include <stddef.h>
20436 sigemptyset (&set);
20437 if (pthread_sigmask (1729, &set, NULL) == -1)
20442 if ac_fn_c_try_run
"$LINENO"; then :
20443 gl_cv_func_pthread_sigmask_return_works
=yes
20445 gl_cv_func_pthread_sigmask_return_works
=no
20447 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
20448 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
20451 LIBS
="$gl_save_LIBS"
20454 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_pthread_sigmask_return_works" >&5
20455 $as_echo "$gl_cv_func_pthread_sigmask_return_works" >&6; }
20456 case "$gl_cv_func_pthread_sigmask_return_works" in
20458 REPLACE_PTHREAD_SIGMASK
=1
20460 $as_echo "#define PTHREAD_SIGMASK_FAILS_WITH_ERRNO 1" >>confdefs.h
20465 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether pthread_sigmask unblocks signals correctly" >&5
20466 $as_echo_n "checking whether pthread_sigmask unblocks signals correctly... " >&6; }
20467 if test "${gl_cv_func_pthread_sigmask_unblock_works+set}" = set; then :
20468 $as_echo_n "(cached) " >&6
20473 gl_cv_func_pthread_sigmask_unblock_works
="guessing no";;
20475 gl_cv_func_pthread_sigmask_unblock_works
="guessing yes";;
20477 gl_save_LIBS
="$LIBS"
20478 LIBS
="$LIBS $LIBMULTITHREAD"
20479 if test "$cross_compiling" = yes; then :
20482 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
20483 /* end confdefs.h. */
20485 #include <pthread.h>
20486 #include <signal.h>
20488 #include <stdlib.h>
20489 #include <unistd.h>
20490 static volatile int sigint_occurred;
20492 sigint_handler (int sig)
20499 int pid = getpid ();
20501 signal (SIGINT, sigint_handler);
20502 sigemptyset (&set);
20503 sigaddset (&set, SIGINT);
20504 if (!(pthread_sigmask (SIG_BLOCK, &set, NULL) == 0))
20506 sprintf (command, "sh -c 'sleep 1; kill -%d %d' &", SIGINT, pid);
20507 if (!(system (command) == 0))
20510 if (!(sigint_occurred == 0))
20512 if (!(pthread_sigmask (SIG_UNBLOCK, &set, NULL) == 0))
20514 if (!(sigint_occurred == 1)) /* This fails on IRIX. */
20519 if ac_fn_c_try_run
"$LINENO"; then :
20522 gl_cv_func_pthread_sigmask_unblock_works
=no
20524 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
20525 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
20528 LIBS
="$gl_save_LIBS"
20531 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_pthread_sigmask_unblock_works" >&5
20532 $as_echo "$gl_cv_func_pthread_sigmask_unblock_works" >&6; }
20533 case "$gl_cv_func_pthread_sigmask_unblock_works" in
20535 REPLACE_PTHREAD_SIGMASK
=1
20537 $as_echo "#define PTHREAD_SIGMASK_UNBLOCK_BUG 1" >>confdefs.h
20543 if test $HAVE_PTHREAD_SIGMASK = 0 ||
test $REPLACE_PTHREAD_SIGMASK = 1; then
20552 gl_LIBOBJS
="$gl_LIBOBJS pthread_sigmask.$ac_objext"
20555 if test $HAVE_PTHREAD_SIGMASK = 1; then
20557 $as_echo "#define HAVE_PTHREAD_SIGMASK 1" >>confdefs.h
20567 GNULIB_PTHREAD_SIGMASK
=1
20576 if test $ac_cv_func_readlink = no
; then
20579 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether readlink signature is correct" >&5
20580 $as_echo_n "checking whether readlink signature is correct... " >&6; }
20581 if test "${gl_cv_decl_readlink_works+set}" = set; then :
20582 $as_echo_n "(cached) " >&6
20584 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
20585 /* end confdefs.h. */
20586 #include <unistd.h>
20587 /* Cause compilation failure if original declaration has wrong type. */
20588 ssize_t readlink (const char *, char *, size_t);
20597 if ac_fn_c_try_compile
"$LINENO"; then :
20598 gl_cv_decl_readlink_works
=yes
20600 gl_cv_decl_readlink_works
=no
20602 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
20604 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_decl_readlink_works" >&5
20605 $as_echo "$gl_cv_decl_readlink_works" >&6; }
20606 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether readlink handles trailing slash correctly" >&5
20607 $as_echo_n "checking whether readlink handles trailing slash correctly... " >&6; }
20608 if test "${gl_cv_func_readlink_works+set}" = set; then :
20609 $as_echo_n "(cached) " >&6
20611 # We have readlink, so assume ln -s works.
20612 ln -s conftest.no-such conftest.link
20613 ln -s conftest.link conftest.lnk2
20614 if test "$cross_compiling" = yes; then :
20615 gl_cv_func_readlink_works
="guessing no"
20617 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
20618 /* end confdefs.h. */
20619 #include <unistd.h>
20625 return readlink ("conftest.lnk2/", buf, sizeof buf) != -1;
20630 if ac_fn_c_try_run
"$LINENO"; then :
20631 gl_cv_func_readlink_works
=yes
20633 gl_cv_func_readlink_works
=no
20635 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
20636 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
20639 rm -f conftest.link conftest.lnk2
20641 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_readlink_works" >&5
20642 $as_echo "$gl_cv_func_readlink_works" >&6; }
20643 if test "$gl_cv_func_readlink_works" != yes; then
20645 $as_echo "#define READLINK_TRAILING_SLASH_BUG 1" >>confdefs.h
20648 elif test "$gl_cv_decl_readlink_works" != yes; then
20653 if test $HAVE_READLINK = 0 ||
test $REPLACE_READLINK = 1; then
20662 gl_LIBOBJS
="$gl_LIBOBJS readlink.$ac_objext"
20690 if test $gl_cv_have_include_next = yes; then
20691 gl_cv_next_signal_h
='<'signal.h
'>'
20693 { $as_echo "$as_me:${as_lineno-$LINENO}: checking absolute name of <signal.h>" >&5
20694 $as_echo_n "checking absolute name of <signal.h>... " >&6; }
20695 if test "${gl_cv_next_signal_h+set}" = set; then :
20696 $as_echo_n "(cached) " >&6
20699 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
20700 /* end confdefs.h. */
20701 #include <signal.h>
20705 aix
*) gl_absname_cpp
="$ac_cpp -C" ;;
20706 *) gl_absname_cpp
="$ac_cpp" ;;
20711 gl_dirsep_regex
='[/\\]'
20714 gl_dirsep_regex
='/'
20718 gl_absolute_header_sed
='\|'"${gl_dirsep_regex}"'signal.h|{
20719 s|.*"\(.*'"${gl_dirsep_regex}"'signal.h\)".*|\1|
20724 gl_cv_next_signal_h
='"'`(eval "$gl_absname_cpp conftest.$ac_ext") 2>&5 |
20725 sed -n "$gl_absolute_header_sed"`'"'
20729 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_next_signal_h" >&5
20730 $as_echo "$gl_cv_next_signal_h" >&6; }
20732 NEXT_SIGNAL_H
=$gl_cv_next_signal_h
20734 if test $gl_cv_have_include_next = yes ||
test $gl_cv_have_include_next = buggy
; then
20735 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include_next'
20736 gl_next_as_first_directive
='<'signal.h
'>'
20738 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include'
20739 gl_next_as_first_directive
=$gl_cv_next_signal_h
20741 NEXT_AS_FIRST_DIRECTIVE_SIGNAL_H
=$gl_next_as_first_directive
20747 # AIX declares sig_atomic_t to already include volatile, and C89 compilers
20748 # then choke on 'volatile sig_atomic_t'. C99 requires that it compile.
20749 ac_fn_c_check_type
"$LINENO" "volatile sig_atomic_t" "ac_cv_type_volatile_sig_atomic_t" "
20750 #include <signal.h>
20753 if test "x$ac_cv_type_volatile_sig_atomic_t" = x
""yes; then :
20756 HAVE_TYPE_VOLATILE_SIG_ATOMIC_T
=0
20765 ac_fn_c_check_type
"$LINENO" "sighandler_t" "ac_cv_type_sighandler_t" "
20766 #include <signal.h>
20769 if test "x$ac_cv_type_sighandler_t" = x
""yes; then :
20772 HAVE_SIGHANDLER_T
=0
20778 ac_fn_c_check_type
"$LINENO" "socklen_t" "ac_cv_type_socklen_t" "
20779 /* <sys/types.h> is not needed according to POSIX, but the
20780 <sys/socket.h> in i386-unknown-freebsd4.10 and
20781 powerpc-apple-darwin5.5 required it. */
20782 #include <sys/types.h>
20783 #if HAVE_SYS_SOCKET_H
20784 # include <sys/socket.h>
20785 #elif HAVE_WS2TCPIP_H
20786 # include <ws2tcpip.h>
20790 if test "x$ac_cv_type_socklen_t" = x
""yes; then :
20793 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for socklen_t equivalent" >&5
20794 $as_echo_n "checking for socklen_t equivalent... " >&6; }
20795 if test "${gl_cv_socklen_t_equiv+set}" = set; then :
20796 $as_echo_n "(cached) " >&6
20798 # Systems have either "struct sockaddr *" or
20799 # "void *" as the second argument to getpeername
20800 gl_cv_socklen_t_equiv
=
20801 for arg2
in "struct sockaddr" void
; do
20802 for t
in int size_t
"unsigned int" "long int" "unsigned long int"; do
20803 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
20804 /* end confdefs.h. */
20805 #include <sys/types.h>
20806 #include <sys/socket.h>
20808 int getpeername (int, $arg2 *, $t *);
20813 getpeername (0, 0, &len);
20818 if ac_fn_c_try_compile
"$LINENO"; then :
20819 gl_cv_socklen_t_equiv
="$t"
20821 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
20822 test "$gl_cv_socklen_t_equiv" != "" && break
20824 test "$gl_cv_socklen_t_equiv" != "" && break
20829 if test "$gl_cv_socklen_t_equiv" = ""; then
20830 as_fn_error
"Cannot find a type to use in place of socklen_t" "$LINENO" 5
20832 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_socklen_t_equiv" >&5
20833 $as_echo "$gl_cv_socklen_t_equiv" >&6; }
20835 cat >>confdefs.h
<<_ACEOF
20836 #define socklen_t $gl_cv_socklen_t_equiv
20842 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ssize_t" >&5
20843 $as_echo_n "checking for ssize_t... " >&6; }
20844 if test "${gt_cv_ssize_t+set}" = set; then :
20845 $as_echo_n "(cached) " >&6
20847 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
20848 /* end confdefs.h. */
20849 #include <sys/types.h>
20853 int x = sizeof (ssize_t *) + sizeof (ssize_t);
20859 if ac_fn_c_try_compile
"$LINENO"; then :
20864 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
20866 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_ssize_t" >&5
20867 $as_echo "$gt_cv_ssize_t" >&6; }
20868 if test $gt_cv_ssize_t = no
; then
20870 $as_echo "#define ssize_t int" >>confdefs.h
20876 NEXT_STDARG_H
='<stdarg.h>'
20877 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for va_copy" >&5
20878 $as_echo_n "checking for va_copy... " >&6; }
20879 if test "${gl_cv_func_va_copy+set}" = set; then :
20880 $as_echo_n "(cached) " >&6
20883 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
20884 /* end confdefs.h. */
20885 #include <stdarg.h>
20891 void (*func) (va_list, va_list) = va_copy;
20898 if ac_fn_c_try_compile
"$LINENO"; then :
20899 gl_cv_func_va_copy
=yes
20901 gl_cv_func_va_copy
=no
20903 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
20906 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_va_copy" >&5
20907 $as_echo "$gl_cv_func_va_copy" >&6; }
20908 if test $gl_cv_func_va_copy = no
; then
20909 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
20910 /* end confdefs.h. */
20911 #if defined _AIX && !defined __GNUC__
20916 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
20917 $EGREP "vaccine" >/dev
/null
2>&1; then :
20924 if test $gl_aixcc = yes; then
20934 if test $gl_cv_have_include_next = yes; then
20935 gl_cv_next_stdarg_h
='<'stdarg.h
'>'
20937 { $as_echo "$as_me:${as_lineno-$LINENO}: checking absolute name of <stdarg.h>" >&5
20938 $as_echo_n "checking absolute name of <stdarg.h>... " >&6; }
20939 if test "${gl_cv_next_stdarg_h+set}" = set; then :
20940 $as_echo_n "(cached) " >&6
20943 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
20944 /* end confdefs.h. */
20945 #include <stdarg.h>
20949 aix
*) gl_absname_cpp
="$ac_cpp -C" ;;
20950 *) gl_absname_cpp
="$ac_cpp" ;;
20955 gl_dirsep_regex
='[/\\]'
20958 gl_dirsep_regex
='/'
20962 gl_absolute_header_sed
='\|'"${gl_dirsep_regex}"'stdarg.h|{
20963 s|.*"\(.*'"${gl_dirsep_regex}"'stdarg.h\)".*|\1|
20968 gl_cv_next_stdarg_h
='"'`(eval "$gl_absname_cpp conftest.$ac_ext") 2>&5 |
20969 sed -n "$gl_absolute_header_sed"`'"'
20973 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_next_stdarg_h" >&5
20974 $as_echo "$gl_cv_next_stdarg_h" >&6; }
20976 NEXT_STDARG_H
=$gl_cv_next_stdarg_h
20978 if test $gl_cv_have_include_next = yes ||
test $gl_cv_have_include_next = buggy
; then
20979 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include_next'
20980 gl_next_as_first_directive
='<'stdarg.h
'>'
20982 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include'
20983 gl_next_as_first_directive
=$gl_cv_next_stdarg_h
20985 NEXT_AS_FIRST_DIRECTIVE_STDARG_H
=$gl_next_as_first_directive
20990 if test "$gl_cv_next_stdarg_h" = '""'; then
20991 gl_cv_next_stdarg_h
='"///usr/include/stdarg.h"'
20992 NEXT_STDARG_H
="$gl_cv_next_stdarg_h"
20996 saved_as_echo_n
="$as_echo_n"
20998 if test "${gl_cv_func___va_copy+set}" = set; then :
20999 $as_echo_n "(cached) " >&6
21002 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
21003 /* end confdefs.h. */
21004 #include <stdarg.h>
21017 if ac_fn_c_try_compile
"$LINENO"; then :
21018 gl_cv_func___va_copy
=yes
21020 gl_cv_func___va_copy
=no
21022 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
21025 as_echo_n
="$saved_as_echo_n"
21027 if test $gl_cv_func___va_copy = yes; then
21029 $as_echo "#define va_copy __va_copy" >>confdefs.h
21034 $as_echo "#define va_copy gl_va_copy" >>confdefs.h
21040 if test -n "$STDARG_H"; then
21041 GL_GENERATE_STDARG_H_TRUE
=
21042 GL_GENERATE_STDARG_H_FALSE
='#'
21044 GL_GENERATE_STDARG_H_TRUE
='#'
21045 GL_GENERATE_STDARG_H_FALSE
=
21053 # Define two additional variables used in the Makefile substitution.
21055 if test "$ac_cv_header_stdbool_h" = yes; then
21058 STDBOOL_H
='stdbool.h'
21061 if test -n "$STDBOOL_H"; then
21062 GL_GENERATE_STDBOOL_H_TRUE
=
21063 GL_GENERATE_STDBOOL_H_FALSE
='#'
21065 GL_GENERATE_STDBOOL_H_TRUE
='#'
21066 GL_GENERATE_STDBOOL_H_FALSE
=
21070 if test "$ac_cv_type__Bool" = yes; then
21081 if test $gt_cv_c_wchar_t = no
; then
21085 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether NULL can be used in arbitrary expressions" >&5
21086 $as_echo_n "checking whether NULL can be used in arbitrary expressions... " >&6; }
21087 if test "${gl_cv_decl_null_works+set}" = set; then :
21088 $as_echo_n "(cached) " >&6
21090 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
21091 /* end confdefs.h. */
21092 #include <stddef.h>
21093 int test[2 * (sizeof NULL == sizeof (void *)) -1];
21103 if ac_fn_c_try_compile
"$LINENO"; then :
21104 gl_cv_decl_null_works
=yes
21106 gl_cv_decl_null_works
=no
21108 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
21110 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_decl_null_works" >&5
21111 $as_echo "$gl_cv_decl_null_works" >&6; }
21112 if test $gl_cv_decl_null_works = no
; then
21117 if test -n "$STDDEF_H"; then
21118 GL_GENERATE_STDDEF_H_TRUE
=
21119 GL_GENERATE_STDDEF_H_FALSE
='#'
21121 GL_GENERATE_STDDEF_H_TRUE
='#'
21122 GL_GENERATE_STDDEF_H_FALSE
=
21125 if test -n "$STDDEF_H"; then
21134 if test $gl_cv_have_include_next = yes; then
21135 gl_cv_next_stddef_h
='<'stddef.h
'>'
21137 { $as_echo "$as_me:${as_lineno-$LINENO}: checking absolute name of <stddef.h>" >&5
21138 $as_echo_n "checking absolute name of <stddef.h>... " >&6; }
21139 if test "${gl_cv_next_stddef_h+set}" = set; then :
21140 $as_echo_n "(cached) " >&6
21143 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
21144 /* end confdefs.h. */
21145 #include <stddef.h>
21149 aix
*) gl_absname_cpp
="$ac_cpp -C" ;;
21150 *) gl_absname_cpp
="$ac_cpp" ;;
21155 gl_dirsep_regex
='[/\\]'
21158 gl_dirsep_regex
='/'
21162 gl_absolute_header_sed
='\|'"${gl_dirsep_regex}"'stddef.h|{
21163 s|.*"\(.*'"${gl_dirsep_regex}"'stddef.h\)".*|\1|
21168 gl_cv_next_stddef_h
='"'`(eval "$gl_absname_cpp conftest.$ac_ext") 2>&5 |
21169 sed -n "$gl_absolute_header_sed"`'"'
21173 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_next_stddef_h" >&5
21174 $as_echo "$gl_cv_next_stddef_h" >&6; }
21176 NEXT_STDDEF_H
=$gl_cv_next_stddef_h
21178 if test $gl_cv_have_include_next = yes ||
test $gl_cv_have_include_next = buggy
; then
21179 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include_next'
21180 gl_next_as_first_directive
='<'stddef.h
'>'
21182 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include'
21183 gl_next_as_first_directive
=$gl_cv_next_stddef_h
21185 NEXT_AS_FIRST_DIRECTIVE_STDDEF_H
=$gl_next_as_first_directive
21204 if test $gl_cv_have_include_next = yes; then
21205 gl_cv_next_stdio_h
='<'stdio.h
'>'
21207 { $as_echo "$as_me:${as_lineno-$LINENO}: checking absolute name of <stdio.h>" >&5
21208 $as_echo_n "checking absolute name of <stdio.h>... " >&6; }
21209 if test "${gl_cv_next_stdio_h+set}" = set; then :
21210 $as_echo_n "(cached) " >&6
21213 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
21214 /* end confdefs.h. */
21219 aix
*) gl_absname_cpp
="$ac_cpp -C" ;;
21220 *) gl_absname_cpp
="$ac_cpp" ;;
21225 gl_dirsep_regex
='[/\\]'
21228 gl_dirsep_regex
='/'
21232 gl_absolute_header_sed
='\|'"${gl_dirsep_regex}"'stdio.h|{
21233 s|.*"\(.*'"${gl_dirsep_regex}"'stdio.h\)".*|\1|
21238 gl_cv_next_stdio_h
='"'`(eval "$gl_absname_cpp conftest.$ac_ext") 2>&5 |
21239 sed -n "$gl_absolute_header_sed"`'"'
21243 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_next_stdio_h" >&5
21244 $as_echo "$gl_cv_next_stdio_h" >&6; }
21246 NEXT_STDIO_H
=$gl_cv_next_stdio_h
21248 if test $gl_cv_have_include_next = yes ||
test $gl_cv_have_include_next = buggy
; then
21249 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include_next'
21250 gl_next_as_first_directive
='<'stdio.h
'>'
21252 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include'
21253 gl_next_as_first_directive
=$gl_cv_next_stdio_h
21255 NEXT_AS_FIRST_DIRECTIVE_STDIO_H
=$gl_next_as_first_directive
21296 if test $gl_cv_have_include_next = yes; then
21297 gl_cv_next_stdlib_h
='<'stdlib.h
'>'
21299 { $as_echo "$as_me:${as_lineno-$LINENO}: checking absolute name of <stdlib.h>" >&5
21300 $as_echo_n "checking absolute name of <stdlib.h>... " >&6; }
21301 if test "${gl_cv_next_stdlib_h+set}" = set; then :
21302 $as_echo_n "(cached) " >&6
21305 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
21306 /* end confdefs.h. */
21307 #include <stdlib.h>
21311 aix
*) gl_absname_cpp
="$ac_cpp -C" ;;
21312 *) gl_absname_cpp
="$ac_cpp" ;;
21317 gl_dirsep_regex
='[/\\]'
21320 gl_dirsep_regex
='/'
21324 gl_absolute_header_sed
='\|'"${gl_dirsep_regex}"'stdlib.h|{
21325 s|.*"\(.*'"${gl_dirsep_regex}"'stdlib.h\)".*|\1|
21330 gl_cv_next_stdlib_h
='"'`(eval "$gl_absname_cpp conftest.$ac_ext") 2>&5 |
21331 sed -n "$gl_absolute_header_sed"`'"'
21335 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_next_stdlib_h" >&5
21336 $as_echo "$gl_cv_next_stdlib_h" >&6; }
21338 NEXT_STDLIB_H
=$gl_cv_next_stdlib_h
21340 if test $gl_cv_have_include_next = yes ||
test $gl_cv_have_include_next = buggy
; then
21341 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include_next'
21342 gl_next_as_first_directive
='<'stdlib.h
'>'
21344 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include'
21345 gl_next_as_first_directive
=$gl_cv_next_stdlib_h
21347 NEXT_AS_FIRST_DIRECTIVE_STDLIB_H
=$gl_next_as_first_directive
21357 # This defines (or not) HAVE_TZNAME and HAVE_TM_ZONE.
21365 $as_echo "#define my_strftime nstrftime" >>confdefs.h
21374 if test "$ac_cv_have_decl_strtoimax" != yes; then
21375 HAVE_DECL_STRTOIMAX
=0
21378 if test $ac_cv_func_strtoimax = no
; then
21387 gl_LIBOBJS
="$gl_LIBOBJS strtoimax.$ac_objext"
21390 ac_fn_c_check_decl
"$LINENO" "strtoll" "ac_cv_have_decl_strtoll" "$ac_includes_default"
21391 if test "x$ac_cv_have_decl_strtoll" = x
""yes; then :
21397 cat >>confdefs.h
<<_ACEOF
21398 #define HAVE_DECL_STRTOLL $ac_have_decl
21419 if test "$ac_cv_have_decl_strtoumax" != yes; then
21420 HAVE_DECL_STRTOUMAX
=0
21423 if test $ac_cv_func_strtoumax = no
; then
21432 gl_LIBOBJS
="$gl_LIBOBJS strtoumax.$ac_objext"
21435 ac_fn_c_check_decl
"$LINENO" "strtoull" "ac_cv_have_decl_strtoull" "$ac_includes_default"
21436 if test "x$ac_cv_have_decl_strtoull" = x
""yes; then :
21442 cat >>confdefs.h
<<_ACEOF
21443 #define HAVE_DECL_STRTOULL $ac_have_decl
21462 if test $ac_cv_func_symlink = no
; then
21465 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether symlink handles trailing slash correctly" >&5
21466 $as_echo_n "checking whether symlink handles trailing slash correctly... " >&6; }
21467 if test "${gl_cv_func_symlink_works+set}" = set; then :
21468 $as_echo_n "(cached) " >&6
21470 if test "$cross_compiling" = yes; then :
21471 gl_cv_func_symlink_works
="guessing no"
21473 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
21474 /* end confdefs.h. */
21475 #include <unistd.h>
21481 if (!symlink ("a", "conftest.link/"))
21483 if (symlink ("conftest.f", "conftest.lnk2"))
21485 else if (!symlink ("a", "conftest.lnk2/"))
21493 if ac_fn_c_try_run
"$LINENO"; then :
21494 gl_cv_func_symlink_works
=yes
21496 gl_cv_func_symlink_works
=no
21498 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
21499 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
21502 rm -f conftest.f conftest.link conftest.lnk2
21504 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_symlink_works" >&5
21505 $as_echo "$gl_cv_func_symlink_works" >&6; }
21506 if test "$gl_cv_func_symlink_works" != yes; then
21511 if test $HAVE_SYMLINK = 0 ||
test $REPLACE_SYMLINK = 1; then
21520 gl_LIBOBJS
="$gl_LIBOBJS symlink.$ac_objext"
21550 if test $gl_cv_have_include_next = yes; then
21551 gl_cv_next_sys_stat_h
='<'sys
/stat.h
'>'
21553 { $as_echo "$as_me:${as_lineno-$LINENO}: checking absolute name of <sys/stat.h>" >&5
21554 $as_echo_n "checking absolute name of <sys/stat.h>... " >&6; }
21555 if test "${gl_cv_next_sys_stat_h+set}" = set; then :
21556 $as_echo_n "(cached) " >&6
21559 if test $ac_cv_header_sys_stat_h = yes; then
21562 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
21563 /* end confdefs.h. */
21564 #include <sys/stat.h>
21568 aix
*) gl_absname_cpp
="$ac_cpp -C" ;;
21569 *) gl_absname_cpp
="$ac_cpp" ;;
21574 gl_dirsep_regex
='[/\\]'
21577 gl_dirsep_regex
='/'
21581 gl_absolute_header_sed
='\|'"${gl_dirsep_regex}"'sys/stat.h|{
21582 s|.*"\(.*'"${gl_dirsep_regex}"'sys/stat.h\)".*|\1|
21587 gl_cv_next_sys_stat_h
='"'`(eval "$gl_absname_cpp conftest.$ac_ext") 2>&5 |
21588 sed -n "$gl_absolute_header_sed"`'"'
21590 gl_cv_next_sys_stat_h
='<'sys
/stat.h
'>'
21595 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_next_sys_stat_h" >&5
21596 $as_echo "$gl_cv_next_sys_stat_h" >&6; }
21598 NEXT_SYS_STAT_H
=$gl_cv_next_sys_stat_h
21600 if test $gl_cv_have_include_next = yes ||
test $gl_cv_have_include_next = buggy
; then
21601 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include_next'
21602 gl_next_as_first_directive
='<'sys
/stat.h
'>'
21604 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include'
21605 gl_next_as_first_directive
=$gl_cv_next_sys_stat_h
21607 NEXT_AS_FIRST_DIRECTIVE_SYS_STAT_H
=$gl_next_as_first_directive
21615 ac_fn_c_check_type
"$LINENO" "nlink_t" "ac_cv_type_nlink_t" "#include <sys/types.h>
21616 #include <sys/stat.h>
21618 if test "x$ac_cv_type_nlink_t" = x
""yes; then :
21622 $as_echo "#define nlink_t int" >>confdefs.h
21640 if test $ac_cv_have_decl_localtime_r = no
; then
21641 HAVE_DECL_LOCALTIME_R
=0
21645 if test $ac_cv_func_localtime_r = yes; then
21647 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether localtime_r is compatible with its POSIX signature" >&5
21648 $as_echo_n "checking whether localtime_r is compatible with its POSIX signature... " >&6; }
21649 if test "${gl_cv_time_r_posix+set}" = set; then :
21650 $as_echo_n "(cached) " >&6
21652 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
21653 /* end confdefs.h. */
21658 /* We don't need to append 'restrict's to the argument types,
21659 even though the POSIX signature has the 'restrict's,
21660 since C99 says they can't affect type compatibility. */
21661 struct tm * (*ptr) (time_t const *, struct tm *) = localtime_r;
21663 /* Check the return type is a pointer.
21664 On HP-UX 10 it is 'int'. */
21665 *localtime_r (0, 0);
21671 if ac_fn_c_try_compile
"$LINENO"; then :
21672 gl_cv_time_r_posix
=yes
21674 gl_cv_time_r_posix
=no
21676 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
21679 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_time_r_posix" >&5
21680 $as_echo "$gl_cv_time_r_posix" >&6; }
21681 if test $gl_cv_time_r_posix = yes; then
21682 REPLACE_LOCALTIME_R
=0
21684 REPLACE_LOCALTIME_R
=1
21690 if test $HAVE_LOCALTIME_R = 0 ||
test $REPLACE_LOCALTIME_R = 1; then
21699 gl_LIBOBJS
="$gl_LIBOBJS time_r.$ac_objext"
21730 if test $gl_cv_have_include_next = yes; then
21731 gl_cv_next_unistd_h
='<'unistd.h
'>'
21733 { $as_echo "$as_me:${as_lineno-$LINENO}: checking absolute name of <unistd.h>" >&5
21734 $as_echo_n "checking absolute name of <unistd.h>... " >&6; }
21735 if test "${gl_cv_next_unistd_h+set}" = set; then :
21736 $as_echo_n "(cached) " >&6
21739 if test $ac_cv_header_unistd_h = yes; then
21742 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
21743 /* end confdefs.h. */
21744 #include <unistd.h>
21748 aix
*) gl_absname_cpp
="$ac_cpp -C" ;;
21749 *) gl_absname_cpp
="$ac_cpp" ;;
21754 gl_dirsep_regex
='[/\\]'
21757 gl_dirsep_regex
='/'
21761 gl_absolute_header_sed
='\|'"${gl_dirsep_regex}"'unistd.h|{
21762 s|.*"\(.*'"${gl_dirsep_regex}"'unistd.h\)".*|\1|
21767 gl_cv_next_unistd_h
='"'`(eval "$gl_absname_cpp conftest.$ac_ext") 2>&5 |
21768 sed -n "$gl_absolute_header_sed"`'"'
21770 gl_cv_next_unistd_h
='<'unistd.h
'>'
21775 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_next_unistd_h" >&5
21776 $as_echo "$gl_cv_next_unistd_h" >&6; }
21778 NEXT_UNISTD_H
=$gl_cv_next_unistd_h
21780 if test $gl_cv_have_include_next = yes ||
test $gl_cv_have_include_next = buggy
; then
21781 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include_next'
21782 gl_next_as_first_directive
='<'unistd.h
'>'
21784 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include'
21785 gl_next_as_first_directive
=$gl_cv_next_unistd_h
21787 NEXT_AS_FIRST_DIRECTIVE_UNISTD_H
=$gl_next_as_first_directive
21792 if test $ac_cv_header_unistd_h = yes; then
21803 gl_gnulib_enabled_dosname
=false
21804 gl_gnulib_enabled_be453cec5eecf5731a274f2de7f2db36
=false
21805 gl_gnulib_enabled_sigprocmask
=false
21806 gl_gnulib_enabled_stat
=false
21807 gl_gnulib_enabled_strtoll
=false
21808 gl_gnulib_enabled_strtoull
=false
21809 gl_gnulib_enabled_verify
=false
21810 func_gl_gnulib_m4code_dosname
()
21812 if ! $gl_gnulib_enabled_dosname; then
21813 gl_gnulib_enabled_dosname
=true
21816 func_gl_gnulib_m4code_be453cec5eecf5731a274f2de7f2db36
()
21818 if ! $gl_gnulib_enabled_be453cec5eecf5731a274f2de7f2db36; then
21821 gl_gnulib_enabled_be453cec5eecf5731a274f2de7f2db36
=true
21824 func_gl_gnulib_m4code_sigprocmask
()
21826 if ! $gl_gnulib_enabled_sigprocmask; then
21830 if test $gl_cv_type_sigset_t = yes; then
21831 ac_fn_c_check_func
"$LINENO" "sigprocmask" "ac_cv_func_sigprocmask"
21832 if test "x$ac_cv_func_sigprocmask" = x
""yes; then :
21833 gl_cv_func_sigprocmask
=1
21837 if test -z "$gl_cv_func_sigprocmask"; then
21838 HAVE_POSIX_SIGNALBLOCKING
=0
21841 if test $HAVE_POSIX_SIGNALBLOCKING = 0; then
21850 gl_LIBOBJS
="$gl_LIBOBJS sigprocmask.$ac_objext"
21861 GNULIB_SIGPROCMASK
=1
21867 gl_gnulib_enabled_sigprocmask
=true
21870 func_gl_gnulib_m4code_stat
()
21872 if ! $gl_gnulib_enabled_stat; then
21876 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stat handles trailing slashes on directories" >&5
21877 $as_echo_n "checking whether stat handles trailing slashes on directories... " >&6; }
21878 if test "${gl_cv_func_stat_dir_slash+set}" = set; then :
21879 $as_echo_n "(cached) " >&6
21881 if test "$cross_compiling" = yes; then :
21883 mingw
*) gl_cv_func_stat_dir_slash
="guessing no";;
21884 *) gl_cv_func_stat_dir_slash
="guessing yes";;
21887 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
21888 /* end confdefs.h. */
21889 #include <sys/stat.h>
21894 struct stat st; return stat (".", &st) != stat ("./", &st);
21899 if ac_fn_c_try_run
"$LINENO"; then :
21900 gl_cv_func_stat_dir_slash
=yes
21902 gl_cv_func_stat_dir_slash
=no
21904 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
21905 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
21909 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_stat_dir_slash" >&5
21910 $as_echo "$gl_cv_func_stat_dir_slash" >&6; }
21911 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stat handles trailing slashes on files" >&5
21912 $as_echo_n "checking whether stat handles trailing slashes on files... " >&6; }
21913 if test "${gl_cv_func_stat_file_slash+set}" = set; then :
21914 $as_echo_n "(cached) " >&6
21917 # Assume that if we have lstat, we can also check symlinks.
21918 if test $ac_cv_func_lstat = yes; then
21919 ln -s conftest.tmp conftest.lnk
21921 if test "$cross_compiling" = yes; then :
21922 gl_cv_func_stat_file_slash
="guessing no"
21924 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
21925 /* end confdefs.h. */
21926 #include <sys/stat.h>
21933 if (!stat ("conftest.tmp/", &st))
21936 if (!stat ("conftest.lnk/", &st))
21945 if ac_fn_c_try_run
"$LINENO"; then :
21946 gl_cv_func_stat_file_slash
=yes
21948 gl_cv_func_stat_file_slash
=no
21950 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
21951 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
21954 rm -f conftest.tmp conftest.lnk
21956 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_stat_file_slash" >&5
21957 $as_echo "$gl_cv_func_stat_file_slash" >&6; }
21958 case $gl_cv_func_stat_dir_slash in
21959 *no
) REPLACE_STAT
=1
21961 $as_echo "#define REPLACE_FUNC_STAT_DIR 1" >>confdefs.h
21964 case $gl_cv_func_stat_file_slash in
21965 *no
) REPLACE_STAT
=1
21967 $as_echo "#define REPLACE_FUNC_STAT_FILE 1" >>confdefs.h
21971 if test $REPLACE_STAT = 1; then
21980 gl_LIBOBJS
="$gl_LIBOBJS stat.$ac_objext"
21998 gl_gnulib_enabled_stat
=true
21999 if test $REPLACE_STAT = 1; then
22000 func_gl_gnulib_m4code_dosname
22002 if test $REPLACE_STAT = 1; then
22003 func_gl_gnulib_m4code_verify
22007 func_gl_gnulib_m4code_strtoll
()
22009 if ! $gl_gnulib_enabled_strtoll; then
22013 if test "$ac_cv_type_long_long_int" = yes; then
22014 for ac_func
in strtoll
22016 ac_fn_c_check_func
"$LINENO" "strtoll" "ac_cv_func_strtoll"
22017 if test "x$ac_cv_func_strtoll" = x
""yes; then :
22018 cat >>confdefs.h
<<_ACEOF
22019 #define HAVE_STRTOLL 1
22025 if test $ac_cv_func_strtoll = no
; then
22030 if test $HAVE_STRTOLL = 0; then
22039 gl_LIBOBJS
="$gl_LIBOBJS strtoll.$ac_objext"
22056 gl_gnulib_enabled_strtoll
=true
22059 func_gl_gnulib_m4code_strtoull
()
22061 if ! $gl_gnulib_enabled_strtoull; then
22065 if test "$ac_cv_type_unsigned_long_long_int" = yes; then
22066 for ac_func
in strtoull
22068 ac_fn_c_check_func
"$LINENO" "strtoull" "ac_cv_func_strtoull"
22069 if test "x$ac_cv_func_strtoull" = x
""yes; then :
22070 cat >>confdefs.h
<<_ACEOF
22071 #define HAVE_STRTOULL 1
22077 if test $ac_cv_func_strtoull = no
; then
22082 if test $HAVE_STRTOULL = 0; then
22091 gl_LIBOBJS
="$gl_LIBOBJS strtoull.$ac_objext"
22108 gl_gnulib_enabled_strtoull
=true
22111 func_gl_gnulib_m4code_verify
()
22113 if ! $gl_gnulib_enabled_verify; then
22114 gl_gnulib_enabled_verify
=true
22117 if test $REPLACE_GETOPT = 1; then
22118 func_gl_gnulib_m4code_be453cec5eecf5731a274f2de7f2db36
22120 if test $REPLACE_LSTAT = 1; then
22121 func_gl_gnulib_m4code_dosname
22123 if test $REPLACE_LSTAT = 1; then
22124 func_gl_gnulib_m4code_stat
22126 if test $HAVE_PTHREAD_SIGMASK = 0 ||
test $REPLACE_PTHREAD_SIGMASK = 1; then
22127 func_gl_gnulib_m4code_sigprocmask
22129 if test $HAVE_READLINK = 0 ||
test $REPLACE_READLINK = 1; then
22130 func_gl_gnulib_m4code_stat
22132 if test $ac_cv_func_strtoimax = no
; then
22133 func_gl_gnulib_m4code_verify
22135 if test $ac_cv_func_strtoimax = no
&& test $ac_cv_type_long_long_int = yes; then
22136 func_gl_gnulib_m4code_strtoll
22138 if test $ac_cv_func_strtoumax = no
; then
22139 func_gl_gnulib_m4code_verify
22141 if test $ac_cv_func_strtoumax = no
&& test $ac_cv_type_unsigned_long_long_int = yes; then
22142 func_gl_gnulib_m4code_strtoull
22145 if $gl_gnulib_enabled_dosname; then
22146 gl_GNULIB_ENABLED_dosname_TRUE
=
22147 gl_GNULIB_ENABLED_dosname_FALSE
='#'
22149 gl_GNULIB_ENABLED_dosname_TRUE
='#'
22150 gl_GNULIB_ENABLED_dosname_FALSE
=
22153 if $gl_gnulib_enabled_be453cec5eecf5731a274f2de7f2db36; then
22154 gl_GNULIB_ENABLED_be453cec5eecf5731a274f2de7f2db36_TRUE
=
22155 gl_GNULIB_ENABLED_be453cec5eecf5731a274f2de7f2db36_FALSE
='#'
22157 gl_GNULIB_ENABLED_be453cec5eecf5731a274f2de7f2db36_TRUE
='#'
22158 gl_GNULIB_ENABLED_be453cec5eecf5731a274f2de7f2db36_FALSE
=
22161 if $gl_gnulib_enabled_sigprocmask; then
22162 gl_GNULIB_ENABLED_sigprocmask_TRUE
=
22163 gl_GNULIB_ENABLED_sigprocmask_FALSE
='#'
22165 gl_GNULIB_ENABLED_sigprocmask_TRUE
='#'
22166 gl_GNULIB_ENABLED_sigprocmask_FALSE
=
22169 if $gl_gnulib_enabled_stat; then
22170 gl_GNULIB_ENABLED_stat_TRUE
=
22171 gl_GNULIB_ENABLED_stat_FALSE
='#'
22173 gl_GNULIB_ENABLED_stat_TRUE
='#'
22174 gl_GNULIB_ENABLED_stat_FALSE
=
22177 if $gl_gnulib_enabled_strtoll; then
22178 gl_GNULIB_ENABLED_strtoll_TRUE
=
22179 gl_GNULIB_ENABLED_strtoll_FALSE
='#'
22181 gl_GNULIB_ENABLED_strtoll_TRUE
='#'
22182 gl_GNULIB_ENABLED_strtoll_FALSE
=
22185 if $gl_gnulib_enabled_strtoull; then
22186 gl_GNULIB_ENABLED_strtoull_TRUE
=
22187 gl_GNULIB_ENABLED_strtoull_FALSE
='#'
22189 gl_GNULIB_ENABLED_strtoull_TRUE
='#'
22190 gl_GNULIB_ENABLED_strtoull_FALSE
=
22193 if $gl_gnulib_enabled_verify; then
22194 gl_GNULIB_ENABLED_verify_TRUE
=
22195 gl_GNULIB_ENABLED_verify_FALSE
='#'
22197 gl_GNULIB_ENABLED_verify_TRUE
='#'
22198 gl_GNULIB_ENABLED_verify_FALSE
=
22201 # End of code from modules
22222 gl_source_base
='tests'
22223 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
22225 gl_module_indicator_condition
=$gltests_WITNESS
22236 LIBGNU_LIBDEPS
="$gl_libdeps"
22238 LIBGNU_LTLIBDEPS
="$gl_ltlibdeps"
22243 aix4-2
) LD_SWITCH_SYSTEM_TEMACS
="-Wl,-bnodelcsect" ;;
22246 ## The -headerpad option tells ld (see man page) to leave room at the
22247 ## end of the header for adding load commands. Needed for dumping.
22248 ## 0x690 is the total size of 30 segment load commands (at 56
22249 ## each); under Cocoa 31 commands are required.
22250 if test "$HAVE_NS" = "yes"; then
22251 libs_nsgui
="-framework AppKit"
22252 headerpad_extra
=6C8
22255 headerpad_extra
=690
22257 LD_SWITCH_SYSTEM_TEMACS
="-fno-pie -prebind $libs_nsgui -Xlinker -headerpad -Xlinker $headerpad_extra"
22259 ## This is here because src/Makefile.in did some extra fiddling around
22260 ## with LD_SWITCH_SYSTEM. The cpp logic was:
22261 ## #ifndef LD_SWITCH_SYSTEM
22262 ## #if !defined (__GNUC__) && ((defined (BSD_SYSTEM) && !defined (COFF)))
22263 ## Since all the *bsds define LD_SWITCH_SYSTEM, this simplifies to:
22264 ## not using gcc, darwin system not on an alpha (ie darwin, since
22265 ## darwin + alpha does not occur).
22266 ## Because this was done in src/Makefile.in, the resulting part of
22267 ## LD_SWITCH_SYSTEM was not used in configure (ie, in ac_link).
22268 ## It therefore seems cleaner to put this in LD_SWITCH_SYSTEM_TEMACS,
22269 ## rather than LD_SWITCH_SYSTEM.
22270 test "x$LD_SWITCH_SYSTEM" = "x" && test "x$GCC" != "xyes" && \
22271 LD_SWITCH_SYSTEM_TEMACS
="-X $LD_SWITCH_SYSTEM_TEMACS"
22274 ## LD_SWITCH_X_SITE_AUX is a -R option saying where to find X at run-time.
22275 ## When handled by cpp, this was in LD_SWITCH_SYSTEM. However, at
22276 ## the point where configure sourced the s/*.h file, LD_SWITCH_X_SITE_AUX
22277 ## had not yet been defined and was expanded to null. Hence LD_SWITCH_SYSTEM
22278 ## had different values in configure (in ac_link) and src/Makefile.in.
22279 ## It seems clearer therefore to put this piece in LD_SWITCH_SYSTEM_TEMACS.
22280 gnu-linux
) LD_SWITCH_SYSTEM_TEMACS
="\$(LD_SWITCH_X_SITE_AUX)" ;;
22282 *) LD_SWITCH_SYSTEM_TEMACS
= ;;
22285 if test "$NS_IMPL_GNUSTEP" = "yes"; then
22286 LD_SWITCH_SYSTEM_TEMACS
="${LD_SWITCH_SYSTEM_TEMACS} -L${GNUSTEP_SYSTEM_LIBRARIES} ${GNUSTEP_LOCAL_LIBRARIES} -lgnustep-gui -lgnustep-base -lobjc -lpthread"
22295 ## gnu: GNU needs its own crt0.
22296 aix4-2|cygwin|darwin|gnu|hpux
*|irix6-5|sol2
*|unixware
) ORDINARY_LINK
=yes ;;
22298 ## On post 1.3 releases of NetBSD, gcc -nostdlib also clears the
22299 ## library search parth, i.e. it won't search /usr/lib for libc and
22300 ## friends. Using -nostartfiles instead avoids this problem, and
22301 ## will also work on earlier NetBSD releases.
22302 netbsd|openbsd
) LD_FIRSTFLAG
="-nostartfiles" ;;
22304 ## macpcc: NAKAJI Hiroyuki <nakaji@tutrp.tut.ac.jp> says
22305 ## MkLinux/LinuxPPC needs this.
22306 ## ibms390x only supports opsys = gnu-linux so it can be added here.
22309 macppc|ibms390x
) LD_FIRSTFLAG
="-nostdlib" ;;
22315 if test "x$ORDINARY_LINK" = "xyes"; then
22319 $as_echo "#define ORDINARY_LINK 1" >>confdefs.h
22322 ## The system files defining neither ORDINARY_LINK nor LD_FIRSTFLAG are:
22323 ## freebsd, gnu-* not on macppc|ibms390x.
22324 elif test "x$GCC" = "xyes" && test "x$LD_FIRSTFLAG" = "x"; then
22326 ## Versions of GCC >= 2.0 put their library, libgcc.a, in obscure
22327 ## places that are difficult to figure out at make time. Fortunately,
22328 ## these same versions allow you to pass arbitrary flags on to the
22329 ## linker, so there is no reason not to use it as a linker.
22331 ## Well, it is not quite perfect. The "-nostdlib" keeps GCC from
22332 ## searching for libraries in its internal directories, so we have to
22333 ## ask GCC explicitly where to find libgcc.a (LIB_GCC below).
22334 LD_FIRSTFLAG
="-nostdlib"
22337 ## FIXME? What setting of EDIT_LDFLAGS should this have?
22338 test "$NS_IMPL_GNUSTEP" = "yes" && LD_FIRSTFLAG
="-rdynamic"
22343 ## FIXME? The logic here is not precisely the same as that above.
22344 ## There is no check here for a pre-defined LD_FIRSTFLAG.
22345 ## Should we only be setting LIB_GCC if LD ~ -nostdlib?
22347 if test "x$GCC" = "xyes" && test "x$ORDINARY_LINK" != "xyes"; then
22350 freebsd|netbsd|openbsd
) LIB_GCC
= ;;
22353 ## armin76@gentoo.org reported that the lgcc_s flag is necessary to
22354 ## build on ARM EABI under GNU/Linux. (Bug#5518)
22360 ## FIXME? s/gnu-linux.h used to define LIB_GCC as below, then
22361 ## immediately undefine it again and redefine it to empty.
22362 ## Was the C_SWITCH_X_SITE part really necessary?
22363 ## LIB_GCC=`$CC $C_SWITCH_X_SITE -print-libgcc-file-name`
22369 ## Ask GCC where to find libgcc.a.
22370 *) LIB_GCC
=`$CC -print-libgcc-file-name 2> /dev/null` ;;
22375 ## If we're using X11/GNUstep, define some consequences.
22376 if test "$HAVE_X_WINDOWS" = "yes" ||
test "$HAVE_NS" = "yes"; then
22378 $as_echo "#define HAVE_WINDOW_SYSTEM 1" >>confdefs.h
22381 $as_echo "#define HAVE_MOUSE 1" >>confdefs.h
22388 #### Report on what we decided to do.
22389 #### Report GTK as a toolkit, even if it doesn't use Xt.
22390 #### It makes printing result more understandable as using GTK sets
22391 #### toolkit_scroll_bars to yes by default.
22392 if test "${HAVE_GTK}" = "yes"; then
22397 if test -n "$machfile"; then
22398 and_machfile
=" and \`${machfile}'"
22402 Configured for \`${canonical}'.
22404 Where should the build process find the source code? ${srcdir}
22405 What operating system and machine description files should Emacs use?
22406 \`${opsysfile}'${and_machfile}
22407 What compiler should emacs be built with? ${CC} ${CFLAGS}
22408 Should Emacs use the GNU version of malloc? ${GNU_MALLOC}${GNU_MALLOC_reason}
22409 Should Emacs use a relocating allocator for buffers? ${REL_ALLOC}
22410 Should Emacs use mmap(2) for buffer allocation? $use_mmap_for_buffers
22411 What window system should Emacs use? ${window_system}
22412 What toolkit should Emacs use? ${USE_X_TOOLKIT}"
22414 if test -n "${x_includes}"; then
22415 echo " Where do we find X Windows header files? ${x_includes}"
22417 echo " Where do we find X Windows header files? Standard dirs"
22419 if test -n "${x_libraries}"; then
22420 echo " Where do we find X Windows libraries? ${x_libraries}"
22422 echo " Where do we find X Windows libraries? Standard dirs"
22425 echo " Does Emacs use -lXaw3d? ${HAVE_XAW3D}"
22426 echo " Does Emacs use -lXpm? ${HAVE_XPM}"
22427 echo " Does Emacs use -ljpeg? ${HAVE_JPEG}"
22428 echo " Does Emacs use -ltiff? ${HAVE_TIFF}"
22429 echo " Does Emacs use a gif library? ${HAVE_GIF} $LIBGIF"
22430 echo " Does Emacs use -lpng? ${HAVE_PNG}"
22431 echo " Does Emacs use -lrsvg-2? ${HAVE_RSVG}"
22432 echo " Does Emacs use imagemagick? ${HAVE_IMAGEMAGICK}"
22434 echo " Does Emacs use -lgpm? ${HAVE_GPM}"
22435 echo " Does Emacs use -ldbus? ${HAVE_DBUS}"
22436 echo " Does Emacs use -lgconf? ${HAVE_GCONF}"
22437 echo " Does Emacs use GSettings? ${HAVE_GSETTINGS}"
22438 echo " Does Emacs use -lselinux? ${HAVE_LIBSELINUX}"
22439 echo " Does Emacs use -lgnutls? ${HAVE_GNUTLS}"
22440 echo " Does Emacs use -lxml2? ${HAVE_LIBXML2}"
22442 echo " Does Emacs use -lfreetype? ${HAVE_FREETYPE}"
22443 echo " Does Emacs use -lm17n-flt? ${HAVE_M17N_FLT}"
22444 echo " Does Emacs use -lotf? ${HAVE_LIBOTF}"
22445 echo " Does Emacs use -lxft? ${HAVE_XFT}"
22447 echo " Does Emacs use toolkit scroll bars? ${USE_TOOLKIT_SCROLL_BARS}"
22450 if test -n "${EMACSDATA}"; then
22451 echo " Environment variable EMACSDATA set to: $EMACSDATA"
22453 if test -n "${EMACSDOC}"; then
22454 echo " Environment variable EMACSDOC set to: $EMACSDOC"
22457 if test $USE_XASSERTS = yes; then
22458 echo " Compiling with asserts turned on."
22459 CPPFLAGS
="$CPPFLAGS -DXASSERTS=1"
22464 if test "$HAVE_NS" = "yes"; then
22466 echo "You must run \"${MAKE-make} install\" in order to test the built application.
22467 The installed application will go to nextstep/Emacs.app and can be
22468 run or moved from there."
22469 if test "$EN_NS_SELF_CONTAINED" = "yes"; then
22470 echo "The application will be fully self-contained."
22472 echo "The lisp resources for the application will be installed under ${prefix}.
22473 You may need to run \"${MAKE-make} install\" with sudo. The application will fail
22474 to run if these resources are not installed."
22480 # Remove any trailing slashes in these variables.
22481 test "${prefix}" != NONE
&&
22482 prefix
=`echo "${prefix}" | sed 's,\([^/]\)/*$,\1,'`
22483 test "${exec_prefix}" != NONE
&&
22484 exec_prefix
=`echo "${exec_prefix}" | sed 's,\([^/]\)/*$,\1,'`
22486 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"
22488 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"
22491 opt_makefile
=test
/automated
/Makefile
22493 if test -f $srcdir/${opt_makefile}.
in; then
22494 SUBDIR_MAKEFILES
="$SUBDIR_MAKEFILES $opt_makefile"
22495 ac_config_files
="$ac_config_files test/automated/Makefile"
22499 SUBDIR_MAKEFILES_IN
=`echo " ${SUBDIR_MAKEFILES}" | sed -e 's| | $(srcdir)/|g' -e 's|Makefile|Makefile.in|g'`
22503 ac_config_commands
="$ac_config_commands mkdirs"
22506 ac_config_commands
="$ac_config_commands epaths"
22509 ac_config_commands
="$ac_config_commands gdbinit"
22512 cat >confcache
<<\_ACEOF
22513 # This file is a shell script that caches the results of configure
22514 # tests run on this system so they can be shared between configure
22515 # scripts and configure runs, see configure's option --config-cache.
22516 # It is not useful on other systems. If it contains results you don't
22517 # want to keep, you may remove or edit it.
22519 # config.status only pays attention to the cache file if you give it
22520 # the --recheck option to rerun configure.
22522 # `ac_cv_env_foo' variables (set or unset) will be overridden when
22523 # loading this file, other *unset* `ac_cv_foo' will be assigned the
22524 # following values.
22528 # The following way of writing the cache mishandles newlines in values,
22529 # but we know of no workaround that is simple, portable, and efficient.
22530 # So, we kill variables containing newlines.
22531 # Ultrix sh set writes to stderr and can't be redirected directly,
22532 # and sets the high bit in the cache file unless we assign to the vars.
22534 for ac_var
in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
22535 eval ac_val
=\$
$ac_var
22539 *_cv_
*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
22540 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
22543 _ | IFS | as_nl
) ;; #(
22544 BASH_ARGV | BASH_SOURCE
) eval $ac_var= ;; #(
22545 *) { eval $ac_var=; unset $ac_var;} ;;
22551 case $as_nl`(ac_space=' '; set) 2>&1` in #(
22552 *${as_nl}ac_space
=\
*)
22553 # `set' does not quote correctly, so add quotes: double-quote
22554 # substitution turns \\\\ into \\, and sed turns \\ into \.
22557 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
22560 # `set' quotes correctly as required by POSIX, so do not add quotes.
22561 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
22570 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
22572 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
22574 if diff "$cache_file" confcache
>/dev
/null
2>&1; then :; else
22575 if test -w "$cache_file"; then
22576 test "x$cache_file" != "x/dev/null" &&
22577 { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
22578 $as_echo "$as_me: updating cache $cache_file" >&6;}
22579 cat confcache
>$cache_file
22581 { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
22582 $as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
22587 test "x$prefix" = xNONE
&& prefix
=$ac_default_prefix
22588 # Let make expand exec_prefix.
22589 test "x$exec_prefix" = xNONE
&& exec_prefix
='${prefix}'
22591 DEFS
=-DHAVE_CONFIG_H
22595 for ac_i
in : $LIBOBJS; do test "x$ac_i" = x
: && continue
22596 # 1. Remove the extension, and $U if already installed.
22597 ac_script
='s/\$U\././;s/\.o$//;s/\.obj$//'
22598 ac_i
=`$as_echo "$ac_i" | sed "$ac_script"`
22599 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
22600 # will be set to the directory where LIBOBJS objects are built.
22601 as_fn_append ac_libobjs
" \${LIBOBJDIR}$ac_i\$U.$ac_objext"
22602 as_fn_append ac_ltlibobjs
" \${LIBOBJDIR}$ac_i"'$U.lo'
22604 LIBOBJS
=$ac_libobjs
22606 LTLIBOBJS
=$ac_ltlibobjs
22609 if test -n "$EXEEXT"; then
22611 am__EXEEXT_FALSE
='#'
22613 am__EXEEXT_TRUE
='#'
22617 if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
22618 as_fn_error
"conditional \"AMDEP\" was never defined.
22619 Usually this means the macro was only invoked conditionally." "$LINENO" 5
22621 if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
22622 as_fn_error
"conditional \"am__fastdepCC\" was never defined.
22623 Usually this means the macro was only invoked conditionally." "$LINENO" 5
22626 if test -z "${GL_COND_LIBTOOL_TRUE}" && test -z "${GL_COND_LIBTOOL_FALSE}"; then
22627 as_fn_error
"conditional \"GL_COND_LIBTOOL\" was never defined.
22628 Usually this means the macro was only invoked conditionally." "$LINENO" 5
22630 if test -z "${GL_GENERATE_ALLOCA_H_TRUE}" && test -z "${GL_GENERATE_ALLOCA_H_FALSE}"; then
22631 as_fn_error
"conditional \"GL_GENERATE_ALLOCA_H\" was never defined.
22632 Usually this means the macro was only invoked conditionally." "$LINENO" 5
22635 if test -z "${GL_GENERATE_STDINT_H_TRUE}" && test -z "${GL_GENERATE_STDINT_H_FALSE}"; then
22636 as_fn_error
"conditional \"GL_GENERATE_STDINT_H\" was never defined.
22637 Usually this means the macro was only invoked conditionally." "$LINENO" 5
22639 if test -z "${GL_GENERATE_STDARG_H_TRUE}" && test -z "${GL_GENERATE_STDARG_H_FALSE}"; then
22640 as_fn_error
"conditional \"GL_GENERATE_STDARG_H\" was never defined.
22641 Usually this means the macro was only invoked conditionally." "$LINENO" 5
22643 if test -z "${GL_GENERATE_STDBOOL_H_TRUE}" && test -z "${GL_GENERATE_STDBOOL_H_FALSE}"; then
22644 as_fn_error
"conditional \"GL_GENERATE_STDBOOL_H\" was never defined.
22645 Usually this means the macro was only invoked conditionally." "$LINENO" 5
22647 if test -z "${GL_GENERATE_STDDEF_H_TRUE}" && test -z "${GL_GENERATE_STDDEF_H_FALSE}"; then
22648 as_fn_error
"conditional \"GL_GENERATE_STDDEF_H\" was never defined.
22649 Usually this means the macro was only invoked conditionally." "$LINENO" 5
22651 if test -z "${gl_GNULIB_ENABLED_dosname_TRUE}" && test -z "${gl_GNULIB_ENABLED_dosname_FALSE}"; then
22652 as_fn_error
"conditional \"gl_GNULIB_ENABLED_dosname\" was never defined.
22653 Usually this means the macro was only invoked conditionally." "$LINENO" 5
22655 if test -z "${gl_GNULIB_ENABLED_be453cec5eecf5731a274f2de7f2db36_TRUE}" && test -z "${gl_GNULIB_ENABLED_be453cec5eecf5731a274f2de7f2db36_FALSE}"; then
22656 as_fn_error
"conditional \"gl_GNULIB_ENABLED_be453cec5eecf5731a274f2de7f2db36\" was never defined.
22657 Usually this means the macro was only invoked conditionally." "$LINENO" 5
22659 if test -z "${gl_GNULIB_ENABLED_sigprocmask_TRUE}" && test -z "${gl_GNULIB_ENABLED_sigprocmask_FALSE}"; then
22660 as_fn_error
"conditional \"gl_GNULIB_ENABLED_sigprocmask\" was never defined.
22661 Usually this means the macro was only invoked conditionally." "$LINENO" 5
22663 if test -z "${gl_GNULIB_ENABLED_stat_TRUE}" && test -z "${gl_GNULIB_ENABLED_stat_FALSE}"; then
22664 as_fn_error
"conditional \"gl_GNULIB_ENABLED_stat\" was never defined.
22665 Usually this means the macro was only invoked conditionally." "$LINENO" 5
22667 if test -z "${gl_GNULIB_ENABLED_strtoll_TRUE}" && test -z "${gl_GNULIB_ENABLED_strtoll_FALSE}"; then
22668 as_fn_error
"conditional \"gl_GNULIB_ENABLED_strtoll\" was never defined.
22669 Usually this means the macro was only invoked conditionally." "$LINENO" 5
22671 if test -z "${gl_GNULIB_ENABLED_strtoull_TRUE}" && test -z "${gl_GNULIB_ENABLED_strtoull_FALSE}"; then
22672 as_fn_error
"conditional \"gl_GNULIB_ENABLED_strtoull\" was never defined.
22673 Usually this means the macro was only invoked conditionally." "$LINENO" 5
22675 if test -z "${gl_GNULIB_ENABLED_verify_TRUE}" && test -z "${gl_GNULIB_ENABLED_verify_FALSE}"; then
22676 as_fn_error
"conditional \"gl_GNULIB_ENABLED_verify\" was never defined.
22677 Usually this means the macro was only invoked conditionally." "$LINENO" 5
22682 if test -n "$gl_LIBOBJS"; then
22683 # Remove the extension.
22684 sed_drop_objext
='s/\.o$//;s/\.obj$//'
22685 for i
in `for i in $gl_LIBOBJS; do echo "$i"; done | sed -e "$sed_drop_objext" | sort | uniq`; do
22686 gl_libobjs
="$gl_libobjs $i.$ac_objext"
22687 gl_ltlibobjs
="$gl_ltlibobjs $i.lo"
22690 gl_LIBOBJS
=$gl_libobjs
22692 gl_LTLIBOBJS
=$gl_ltlibobjs
22698 if test -n "$gltests_LIBOBJS"; then
22699 # Remove the extension.
22700 sed_drop_objext
='s/\.o$//;s/\.obj$//'
22701 for i
in `for i in $gltests_LIBOBJS; do echo "$i"; done | sed -e "$sed_drop_objext" | sort | uniq`; do
22702 gltests_libobjs
="$gltests_libobjs $i.$ac_objext"
22703 gltests_ltlibobjs
="$gltests_ltlibobjs $i.lo"
22706 gltests_LIBOBJS
=$gltests_libobjs
22708 gltests_LTLIBOBJS
=$gltests_ltlibobjs
22712 : ${CONFIG_STATUS=./config.status}
22714 ac_clean_files_save
=$ac_clean_files
22715 ac_clean_files
="$ac_clean_files $CONFIG_STATUS"
22716 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
22717 $as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
22719 cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
22721 # Generated by $as_me.
22722 # Run this file to recreate the current configuration.
22723 # Compiler output produced by configure, useful for debugging
22724 # configure, is in config.log if it exists.
22727 ac_cs_recheck=false
22730 SHELL=\${CONFIG_SHELL-$SHELL}
22733 cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail
=1
22734 ## -------------------- ##
22735 ## M4sh Initialization. ##
22736 ## -------------------- ##
22738 # Be more Bourne compatible
22739 DUALCASE
=1; export DUALCASE
# for MKS sh
22740 if test -n "${ZSH_VERSION+set}" && (emulate sh
) >/dev
/null
2>&1; then :
22743 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
22744 # is contrary to our usage. Disable this feature.
22745 alias -g '${1+"$@"}'='"$@"'
22746 setopt NO_GLOB_SUBST
22748 case `(set -o) 2>/dev/null` in #(
22760 # Printing a long string crashes Solaris 7 /usr/bin/printf.
22761 as_echo
='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
22762 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
22763 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
22764 # Prefer a ksh shell builtin over an external printf program on Solaris,
22765 # but without wasting forks for bash or zsh.
22766 if test -z "$BASH_VERSION$ZSH_VERSION" \
22767 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
22768 as_echo='print
-r --'
22769 as_echo_n='print
-rn --'
22770 elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
22771 as_echo='printf %s
\n'
22772 as_echo_n='printf %s
'
22774 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
22775 as_echo_body='eval /usr
/ucb
/echo -n "$1$as_nl"'
22776 as_echo_n='/usr
/ucb
/echo -n'
22778 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
22779 as_echo_n_body='eval
22783 expr "X$arg" : "X\\(.*\\)$as_nl";
22784 arg
=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
22786 expr "X$arg" : "X\\(.*\\)" |
tr -d "$as_nl"
22788 export as_echo_n_body
22789 as_echo_n='sh
-c $as_echo_n_body as_echo
'
22791 export as_echo_body
22792 as_echo='sh
-c $as_echo_body as_echo
'
22795 # The user is always right.
22796 if test "${PATH_SEPARATOR+set}" != set; then
22798 (PATH='/bin
;/bin
'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
22799 (PATH='/bin
:/bin
'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
22806 # We need space, tab and new line, in precisely that order. Quoting is
22807 # there to prevent editors from complaining about space-tab.
22808 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
22809 # splitting by setting IFS to empty value.)
22812 # Find who we are. Look in the path if we contain no directory separator.
22814 *[\\/]* ) as_myself=$0 ;;
22815 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
22816 for as_dir in $PATH
22819 test -z "$as_dir" && as_dir=.
22820 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
22826 # We did not find ourselves, most probably we were run as `sh COMMAND'
22827 # in which case we are not to be found in the path.
22828 if test "x$as_myself" = x
; then
22831 if test ! -f "$as_myself"; then
22832 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
22836 # Unset variables that we do not need and which cause bugs (e.g. in
22837 # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
22838 # suppresses any "Segmentation fault" message there. '((' could
22839 # trigger a bug in pdksh 5.2.14.
22840 for as_var
in BASH_ENV ENV MAIL MAILPATH
22841 do eval test x\
${$as_var+set} = xset \
22842 && ( (unset $as_var) ||
exit 1) >/dev
/null
2>&1 && unset $as_var ||
:
22855 (unset CDPATH
) >/dev
/null
2>&1 && unset CDPATH
22858 # as_fn_error ERROR [LINENO LOG_FD]
22859 # ---------------------------------
22860 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
22861 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
22862 # script with status $?, using 1 if that was 0.
22865 as_status
=$?
; test $as_status -eq 0 && as_status
=1
22867 as_lineno
=${as_lineno-"$2"} as_lineno_stack
=as_lineno_stack
=$as_lineno_stack
22868 $as_echo "$as_me:${as_lineno-$LINENO}: error: $1" >&$3
22870 $as_echo "$as_me: error: $1" >&2
22871 as_fn_exit
$as_status
22875 # as_fn_set_status STATUS
22876 # -----------------------
22877 # Set $? to STATUS, without forking.
22878 as_fn_set_status
()
22881 } # as_fn_set_status
22883 # as_fn_exit STATUS
22884 # -----------------
22885 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
22889 as_fn_set_status
$1
22895 # Portably unset VAR.
22898 { eval $1=; unset $1;}
22900 as_unset
=as_fn_unset
22901 # as_fn_append VAR VALUE
22902 # ----------------------
22903 # Append the text in VALUE to the end of the definition contained in VAR. Take
22904 # advantage of any shell optimizations that allow amortized linear growth over
22905 # repeated appends, instead of the typical quadratic growth present in naive
22907 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev
/null
; then :
22908 eval 'as_fn_append ()
22919 # as_fn_arith ARG...
22920 # ------------------
22921 # Perform arithmetic evaluation on the ARGs, and store the result in the
22922 # global $as_val. Take advantage of shells that can avoid forks. The arguments
22923 # must be portable across $(()) and expr.
22924 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev
/null
; then :
22925 eval 'as_fn_arith ()
22932 as_val
=`expr "$@" || test $? -eq 1`
22937 if expr a
: '\(a\)' >/dev
/null
2>&1 &&
22938 test "X`expr 00001 : '.*\(...\)'`" = X001
; then
22944 if (basename -- /) >/dev
/null
2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
22945 as_basename
=basename
22950 if (as_dir
=`dirname -- /` && test "X$as_dir" = X
/) >/dev
/null
2>&1; then
22956 as_me
=`$as_basename -- "$0" ||
22957 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
22958 X"$0" : 'X\(//\)$' \| \
22959 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
22961 sed '/^.*\/\([^/][^/]*\)\/*$/{
22975 # Avoid depending upon Character Ranges.
22976 as_cr_letters
='abcdefghijklmnopqrstuvwxyz'
22977 as_cr_LETTERS
='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
22978 as_cr_Letters
=$as_cr_letters$as_cr_LETTERS
22979 as_cr_digits
='0123456789'
22980 as_cr_alnum
=$as_cr_Letters$as_cr_digits
22982 ECHO_C
= ECHO_N
= ECHO_T
=
22983 case `echo -n x` in #(((((
22985 case `echo 'xy\c'` in
22986 *c
*) ECHO_T
=' ';; # ECHO_T is single tab character.
22988 *) echo `echo ksh88 bug on AIX 6.1` > /dev
/null
22995 rm -f conf$$ conf$$.exe conf$$.
file
22996 if test -d conf$$.dir
; then
22997 rm -f conf$$.dir
/conf$$.
file
23000 mkdir conf$$.dir
2>/dev
/null
23002 if (echo >conf$$.
file) 2>/dev
/null
; then
23003 if ln -s conf$$.
file conf$$
2>/dev
/null
; then
23005 # ... but there are two gotchas:
23006 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
23007 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
23008 # In both cases, we have to default to `cp -p'.
23009 ln -s conf$$.
file conf$$.dir
2>/dev
/null
&& test ! -f conf$$.exe ||
23011 elif ln conf$$.
file conf$$
2>/dev
/null
; then
23019 rm -f conf$$ conf$$.exe conf$$.dir
/conf$$.
file conf$$.
file
23020 rmdir conf$$.dir
2>/dev
/null
23025 # Create "$as_dir" as a directory, including parents if necessary.
23030 -*) as_dir
=.
/$as_dir;;
23032 test -d "$as_dir" ||
eval $as_mkdir_p ||
{
23036 *\'*) as_qdir
=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
23037 *) as_qdir
=$as_dir;;
23039 as_dirs
="'$as_qdir' $as_dirs"
23040 as_dir
=`$as_dirname -- "$as_dir" ||
23041 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
23042 X"$as_dir" : 'X\(//\)[^/]' \| \
23043 X"$as_dir" : 'X\(//\)$' \| \
23044 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
23045 $as_echo X"$as_dir" |
23046 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
23050 /^X\(\/\/\)[^/].*/{
23063 test -d "$as_dir" && break
23065 test -z "$as_dirs" ||
eval "mkdir $as_dirs"
23066 } ||
test -d "$as_dir" || as_fn_error
"cannot create directory $as_dir"
23070 if mkdir
-p .
2>/dev
/null
; then
23071 as_mkdir_p
='mkdir -p "$as_dir"'
23073 test -d .
/-p && rmdir .
/-p
23077 if test -x / >/dev
/null
2>&1; then
23078 as_test_x
='test -x'
23080 if ls -dL / >/dev
/null
2>&1; then
23087 if test -d "$1"; then
23093 case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in #((
23094 ???[sx]*):;;*)false;;esac;fi
23098 as_executable_p
=$as_test_x
23100 # Sed expression to map a string onto a valid CPP name.
23101 as_tr_cpp
="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
23103 # Sed expression to map a string onto a valid variable name.
23104 as_tr_sh
="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
23108 ## ----------------------------------- ##
23109 ## Main body of $CONFIG_STATUS script. ##
23110 ## ----------------------------------- ##
23112 test $as_write_fail = 0 && chmod +x
$CONFIG_STATUS || ac_write_fail
=1
23114 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail
=1
23115 # Save the log message, to keep $0 and so on meaningful, and to
23116 # report actual input values of CONFIG_FILES etc. instead of their
23117 # values after options handling.
23119 This file was extended by emacs $as_me 24.0.92, which was
23120 generated by GNU Autoconf 2.65. Invocation command line was
23122 CONFIG_FILES = $CONFIG_FILES
23123 CONFIG_HEADERS = $CONFIG_HEADERS
23124 CONFIG_LINKS = $CONFIG_LINKS
23125 CONFIG_COMMANDS = $CONFIG_COMMANDS
23128 on `(hostname || uname -n) 2>/dev/null | sed 1q`
23133 case $ac_config_files in *"
23134 "*) set x
$ac_config_files; shift; ac_config_files
=$
*;;
23137 case $ac_config_headers in *"
23138 "*) set x
$ac_config_headers; shift; ac_config_headers
=$
*;;
23142 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
23143 # Files that config.status was made for.
23144 config_files="$ac_config_files"
23145 config_headers="$ac_config_headers"
23146 config_commands="$ac_config_commands"
23150 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail
=1
23152 \`$as_me' instantiates files and other configuration actions
23153 from templates according to the current configuration. Unless the files
23154 and actions are specified as TAGs, all are instantiated by default.
23156 Usage: $0 [OPTION]... [TAG]...
23158 -h, --help print this help, then exit
23159 -V, --version print version number and configuration settings, then exit
23160 --config print configuration, then exit
23161 -q, --quiet, --silent
23162 do not print progress messages
23163 -d, --debug don't remove temporary files
23164 --recheck update $as_me by reconfiguring in the same conditions
23165 --file=FILE[:TEMPLATE]
23166 instantiate the configuration file FILE
23167 --header=FILE[:TEMPLATE]
23168 instantiate the configuration header FILE
23170 Configuration files:
23173 Configuration headers:
23176 Configuration commands:
23179 Report bugs to the package provider."
23182 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
23183 ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`"
23185 emacs config.status 24.0.92
23186 configured by $0, generated by GNU Autoconf 2.65,
23187 with options \\"\$ac_cs_config\\"
23189 Copyright (C) 2009 Free Software Foundation, Inc.
23190 This config.status script is free software; the Free Software Foundation
23191 gives unlimited permission to copy, distribute and modify it."
23198 test -n "\$AWK" || AWK=awk
23201 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail
=1
23202 # The default lists apply if the user does not specify any file.
23208 ac_option
=`expr "X$1" : 'X\([^=]*\)='`
23209 ac_optarg
=`expr "X$1" : 'X[^=]*=\(.*\)'`
23220 # Handling of the options.
23221 -recheck |
--recheck |
--rechec |
--reche |
--rech |
--rec |
--re |
--r)
23223 --version |
--versio |
--versi |
--vers |
--ver |
--ve |
--v |
-V )
23224 $as_echo "$ac_cs_version"; exit ;;
23225 --config |
--confi |
--conf |
--con |
--co |
--c )
23226 $as_echo "$ac_cs_config"; exit ;;
23227 --debug |
--debu |
--deb |
--de |
--d |
-d )
23229 --file |
--fil |
--fi |
--f )
23232 *\'*) ac_optarg
=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
23234 as_fn_append CONFIG_FILES
" '$ac_optarg'"
23235 ac_need_defaults
=false
;;
23236 --header |
--heade |
--head |
--hea )
23239 *\'*) ac_optarg
=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
23241 as_fn_append CONFIG_HEADERS
" '$ac_optarg'"
23242 ac_need_defaults
=false
;;
23244 # Conflict between --help and --header
23245 as_fn_error
"ambiguous option: \`$1'
23246 Try \`$0 --help' for more information.";;
23247 --help |
--hel |
-h )
23248 $as_echo "$ac_cs_usage"; exit ;;
23249 -q |
-quiet |
--quiet |
--quie |
--qui |
--qu |
--q \
23250 |
-silent |
--silent |
--silen |
--sile |
--sil |
--si |
--s)
23253 # This is an error.
23254 -*) as_fn_error
"unrecognized option: \`$1'
23255 Try \`$0 --help' for more information." ;;
23257 *) as_fn_append ac_config_targets
" $1"
23258 ac_need_defaults
=false
;;
23264 ac_configure_extra_args
=
23266 if $ac_cs_silent; then
23268 ac_configure_extra_args
="$ac_configure_extra_args --silent"
23272 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
23273 if \$ac_cs_recheck; then
23274 set X '$SHELL' '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
23276 \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
23277 CONFIG_SHELL='$SHELL'
23278 export CONFIG_SHELL
23283 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail
=1
23287 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
23288 ## Running $as_me. ##
23294 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
23298 AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"
23299 GCC="$GCC" NON_GNU_CPP="$NON_GNU_CPP" CPP="$CPP" CPPFLAGS="$CPPFLAGS"
23303 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail
=1
23305 # Handling of arguments.
23306 for ac_config_target
in $ac_config_targets
23308 case $ac_config_target in
23309 "src/config.h") CONFIG_HEADERS
="$CONFIG_HEADERS src/config.h:src/config.in" ;;
23310 "depfiles") CONFIG_COMMANDS
="$CONFIG_COMMANDS depfiles" ;;
23311 "Makefile") CONFIG_FILES
="$CONFIG_FILES Makefile" ;;
23312 "lib/Makefile") CONFIG_FILES
="$CONFIG_FILES lib/Makefile" ;;
23313 "lib-src/Makefile") CONFIG_FILES
="$CONFIG_FILES lib-src/Makefile" ;;
23314 "oldXMenu/Makefile") CONFIG_FILES
="$CONFIG_FILES oldXMenu/Makefile" ;;
23315 "doc/emacs/Makefile") CONFIG_FILES
="$CONFIG_FILES doc/emacs/Makefile" ;;
23316 "doc/misc/Makefile") CONFIG_FILES
="$CONFIG_FILES doc/misc/Makefile" ;;
23317 "doc/lispintro/Makefile") CONFIG_FILES
="$CONFIG_FILES doc/lispintro/Makefile" ;;
23318 "doc/lispref/Makefile") CONFIG_FILES
="$CONFIG_FILES doc/lispref/Makefile" ;;
23319 "src/Makefile") CONFIG_FILES
="$CONFIG_FILES src/Makefile" ;;
23320 "lwlib/Makefile") CONFIG_FILES
="$CONFIG_FILES lwlib/Makefile" ;;
23321 "lisp/Makefile") CONFIG_FILES
="$CONFIG_FILES lisp/Makefile" ;;
23322 "leim/Makefile") CONFIG_FILES
="$CONFIG_FILES leim/Makefile" ;;
23323 "test/automated/Makefile") CONFIG_FILES
="$CONFIG_FILES test/automated/Makefile" ;;
23324 "mkdirs") CONFIG_COMMANDS
="$CONFIG_COMMANDS mkdirs" ;;
23325 "epaths") CONFIG_COMMANDS
="$CONFIG_COMMANDS epaths" ;;
23326 "gdbinit") CONFIG_COMMANDS
="$CONFIG_COMMANDS gdbinit" ;;
23328 *) as_fn_error
"invalid argument: \`$ac_config_target'" "$LINENO" 5;;
23333 # If the user did not use the arguments to specify the items to instantiate,
23334 # then the envvar interface is used. Set only those that are not.
23335 # We use the long form for the default assignment because of an extremely
23336 # bizarre bug on SunOS 4.1.3.
23337 if $ac_need_defaults; then
23338 test "${CONFIG_FILES+set}" = set || CONFIG_FILES
=$config_files
23339 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS
=$config_headers
23340 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS
=$config_commands
23343 # Have a temporary directory for convenience. Make it in the build tree
23344 # simply because there is no reason against having it here, and in addition,
23345 # creating and moving files from /tmp can sometimes cause problems.
23346 # Hook for its removal unless debugging.
23347 # Note that there is a small window in which the directory will not be cleaned:
23348 # after its creation but before its name has been assigned to `$tmp'.
23352 trap 'exit_status=$?
23353 { test -z "$tmp" || test ! -d "$tmp" || rm -fr "$tmp"; } && exit $exit_status
23355 trap 'as_fn_exit 1' 1 2 13 15
23357 # Create a (secure) tmp directory for tmp files.
23360 tmp
=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
23361 test -n "$tmp" && test -d "$tmp"
23364 tmp
=.
/conf$$
-$RANDOM
23365 (umask 077 && mkdir
"$tmp")
23366 } || as_fn_error
"cannot create a temporary directory in ." "$LINENO" 5
23368 # Set up the scripts for CONFIG_FILES section.
23369 # No need to generate them if there are no CONFIG_FILES.
23370 # This happens for instance with `./config.status config.h'.
23371 if test -n "$CONFIG_FILES"; then
23373 if $AWK 'BEGIN { getline <"/dev/null" }' </dev
/null
2>/dev
/null
; then
23374 ac_cs_awk_getline
=:
23375 ac_cs_awk_pipe_init
=
23376 ac_cs_awk_read_file
='
23377 while ((getline aline < (F[key])) > 0)
23380 ac_cs_awk_pipe_fini
=
23382 ac_cs_awk_getline
=false
23383 ac_cs_awk_pipe_init
="print \"cat <<'|#_!!_#|' &&\""
23384 ac_cs_awk_read_file
='
23386 print "cat " F[key] " &&"
23387 '$ac_cs_awk_pipe_init
23388 # The final `:' finishes the AND list.
23389 ac_cs_awk_pipe_fini
='END { print "|#_!!_#|"; print ":" }'
23391 ac_cr
=`echo X | tr X '\015'`
23392 # On cygwin, bash can eat \r inside `` if the user requested igncr.
23393 # But we know of no other shell where ac_cr would be empty at this
23394 # point, so we can use a bashism as a fallback.
23395 if test "x$ac_cr" = x
; then
23396 eval ac_cr
=\$
\'\\r
\'
23398 ac_cs_awk_cr
=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
23399 if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
23402 ac_cs_awk_cr
=$ac_cr
23405 echo 'BEGIN {' >"$tmp/subs1.awk" &&
23408 # Create commands to substitute file output variables.
23410 echo "cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1" &&
23411 echo 'cat >>"\$tmp/subs1.awk" <<\\_ACAWK &&' &&
23412 echo "$ac_subst_files" |
sed 's/.*/F["&"]="$&"/' &&
23415 } >conf$
$files.sh
&&
23416 . .
/conf$
$files.sh ||
23417 as_fn_error
"could not make $CONFIG_STATUS" "$LINENO" 5
23418 rm -f conf$
$files.sh
23421 echo "cat >conf$$subs.awk <<_ACEOF" &&
23422 echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
23424 } >conf$$subs.sh ||
23425 as_fn_error "could not
make $CONFIG_STATUS" "$LINENO" 5
23426 ac_delim_num=`echo "$ac_subst_vars" | grep -c '$'`
23428 for ac_last_try in false false false false false :; do
23429 . ./conf$$subs.sh ||
23430 as_fn_error "could not
make $CONFIG_STATUS" "$LINENO" 5
23432 ac_delim_n=`sed -n "s
/.
*$ac_delim\$
/X
/p
" conf$$subs.awk | grep -c X`
23433 if test $ac_delim_n = $ac_delim_num; then
23435 elif $ac_last_try; then
23436 as_fn_error "could not
make $CONFIG_STATUS" "$LINENO" 5
23438 ac_delim="$ac_delim!$ac_delim _
$ac_delim!! "
23441 rm -f conf$$subs.sh
23443 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
23444 cat >>"\
$tmp/subs1.
awk" <<\\_ACAWK &&
23448 s/^/S["/; s
/!.
*/"]=/
23458 s/\(.\{148\}\)..*/\1/
23460 s/["\\]/\\&/g
; s
/^
/"/; s/$/\\n"\\/
23465 s
/["\\]/\\&/g; s/^/"/; s
/$
/"\\/
23472 s/\(.\{148\}\)..*/\1/
23474 s/["\\]/\\&/g
; s
/^
/"/; s/$/"/
23478 s
/["\\]/\\&/g; s/^/"/; s
/$
/"\\/
23483 ' <conf$$subs.awk | sed '
23488 ' >>$CONFIG_STATUS || ac_write_fail=1
23489 rm -f conf$$subs.awk
23490 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
23492 cat >>"\
$tmp/subs1.
awk" <<_ACAWK &&
23493 for (key in S) S_is_set[key] = 1
23495 \$ac_cs_awk_pipe_init
23499 nfields = split(line, field, "@
")
23501 len = length(field[1])
23502 for (i = 2; i < nfields; i++) {
23504 keylen = length(key)
23505 if (S_is_set[key]) {
23507 line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
23508 len += length(value) + length(field[++i])
23513 if (nfields == 3 && !substed) {
23515 if (F[key] != "" && line ~ /^[ ]*@.*@[ ]*$/) {
23516 \$ac_cs_awk_read_file
23522 \$ac_cs_awk_pipe_fini
23525 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
23526 if sed "s
/$ac_cr//" < /dev/null > /dev/null 2>&1; then
23527 sed "s
/$ac_cr\$
//; s
/$ac_cr/$ac_cs_awk_cr/g
"
23530 fi < "$tmp/subs1.
awk" > "$tmp/subs.
awk" \
23531 || as_fn_error "could not setup config files machinery
" "$LINENO" 5
23534 # VPATH may cause trouble with some makes, so we remove $(srcdir),
23535 # ${srcdir} and @srcdir@ from VPATH if srcdir is ".
", strip leading and
23536 # trailing colons and then remove the whole line if VPATH becomes empty
23537 # (actually we leave an empty line to preserve line numbers).
23538 if test "x
$srcdir" = x.; then
23539 ac_vpsub='/^[ ]*VPATH[ ]*=/{
23540 s/:*\$(srcdir):*/:/
23541 s/:*\${srcdir}:*/:/
23543 s/^\([^=]*=[ ]*\):*/\1/
23549 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
23550 fi # test -n "$CONFIG_FILES"
23552 # Set up the scripts for CONFIG_HEADERS section.
23553 # No need to generate them if there are no CONFIG_HEADERS.
23554 # This happens for instance with `./config.status Makefile'.
23555 if test -n "$CONFIG_HEADERS"; then
23556 cat >"$tmp/defines.
awk" <<\_ACAWK ||
23560 # Transform confdefs.h into an awk script `defines.awk', embedded as
23561 # here-document in config.status, that substitutes the proper values into
23562 # config.h.in to produce config.h.
23564 # Create a delimiter string that does not exist in confdefs.h, to ease
23565 # handling of long lines.
23567 for ac_last_try in false false :; do
23568 ac_t=`sed -n "/$ac_delim/p
" confdefs.h`
23569 if test -z "$ac_t"; then
23571 elif $ac_last_try; then
23572 as_fn_error "could not
make $CONFIG_HEADERS" "$LINENO" 5
23574 ac_delim="$ac_delim!$ac_delim _
$ac_delim!! "
23578 # For the awk script, D is an array of macro values keyed by name,
23579 # likewise P contains macro parameters if any. Preserve backslash
23580 # newline sequences.
23582 ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
23584 s/.\{148\}/&'"$ac_delim"'/g
23587 s/^[ ]*#[ ]*define[ ][ ]*/ /
23594 s
/^ \
('"$ac_word_re"'\
)\
(([^
()]*)\
)[ ]*\
(.
*\
)/P
["\1"]="\2"\
23596 s
/^ \
('"$ac_word_re"'\
)[ ]*\
(.
*\
)/D
["\1"]=" \2"/p
23600 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\
1"]="\
2"\
23601 D["\
1"]=" \
3\\\\\\n
"\\/p
23603 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\
1"]=" \
2\\\\\\n
"\\/p
23608 s/.\{148\}/&'"$ac_delim"'/g
23613 s/["\\]/\\&/g
; s
/^
/"/; s/$/"/p
23616 s
/["\\]/\\&/g; s/^/"/; s
/$
/\\\\\\n
"\\/p
23618 ' <confdefs.h | sed '
23619 s/'"$ac_delim"'/"\\\
23620 "/g' >>$CONFIG_STATUS || ac_write_fail=1
23622 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
23623 for (key in D) D_is_set[key] = 1
23626 /^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
23628 split(line, arg, " ")
23629 if (arg[1] == "#") {
23633 defundef
= substr
(arg
[1], 2)
23636 split(mac1
, mac2
, "(") #)
23638 prefix
= substr
(line
, 1, index
(line
, defundef
) - 1)
23639 if (D_is_set
[macro
]) {
23640 # Preserve the white space surrounding the "#".
23641 print prefix
"define", macro P
[macro
] D
[macro
]
23644 # Replace #undef with comments. This is necessary, for example,
23645 # in the case of _POSIX_SOURCE, which is predefined and required
23646 # on some systems where configure will not decide to define it.
23647 if (defundef
== "undef") {
23648 print
"/*", prefix defundef
, macro
, "*/"
23656 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail
=1
23657 as_fn_error
"could not setup config headers machinery" "$LINENO" 5
23658 fi # test -n "$CONFIG_HEADERS"
23661 eval set X
" :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS"
23666 :[FHLC
]) ac_mode
=$ac_tag; continue;;
23668 case $ac_mode$ac_tag in
23670 :L
* |
:C
*:*) as_fn_error
"invalid tag \`$ac_tag'" "$LINENO" 5;;
23671 :[FH
]-) ac_tag
=-:-;;
23672 :[FH
]*) ac_tag
=$ac_tag:$ac_tag.
in;;
23689 -) ac_f
="$tmp/stdin";;
23690 *) # Look for the file first in the build tree, then in the source tree
23691 # (if the path is not absolute). The absolute path cannot be DOS-style,
23692 # because $ac_f cannot contain `:'.
23696 *) test -f "$srcdir/$ac_f" && ac_f
="$srcdir/$ac_f";;
23698 as_fn_error
"cannot find input file: \`$ac_f'" "$LINENO" 5;;
23700 case $ac_f in *\'*) ac_f
=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
23701 as_fn_append ac_file_inputs
" '$ac_f'"
23704 # Let's still pretend it is `configure' which instantiates (i.e., don't
23705 # use $as_me), people would be surprised to read:
23706 # /* config.h. Generated by config.status. */
23707 configure_input
='Generated from '`
23708 $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
23710 if test x
"$ac_file" != x-
; then
23711 configure_input
="$ac_file. $configure_input"
23712 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
23713 $as_echo "$as_me: creating $ac_file" >&6;}
23715 # Neutralize special characters interpreted by sed in replacement strings.
23716 case $configure_input in #(
23717 *\
&* |
*\|
* |
*\\* )
23718 ac_sed_conf_input
=`$as_echo "$configure_input" |
23719 sed 's/[\\\\&|]/\\\\&/g'`;; #(
23720 *) ac_sed_conf_input
=$configure_input;;
23724 *:-:* |
*:-) cat >"$tmp/stdin" \
23725 || as_fn_error
"could not create $ac_file" "$LINENO" 5 ;;
23730 ac_dir
=`$as_dirname -- "$ac_file" ||
23731 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
23732 X"$ac_file" : 'X\(//\)[^/]' \| \
23733 X"$ac_file" : 'X\(//\)$' \| \
23734 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
23735 $as_echo X"$ac_file" |
23736 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
23740 /^X\(\/\/\)[^/].*/{
23753 as_dir
="$ac_dir"; as_fn_mkdir_p
23757 .
) ac_dir_suffix
= ac_top_builddir_sub
=. ac_top_build_prefix
= ;;
23759 ac_dir_suffix
=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
23760 # A ".." for each directory in $ac_dir_suffix.
23761 ac_top_builddir_sub
=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
23762 case $ac_top_builddir_sub in
23763 "") ac_top_builddir_sub
=. ac_top_build_prefix
= ;;
23764 *) ac_top_build_prefix
=$ac_top_builddir_sub/ ;;
23767 ac_abs_top_builddir
=$ac_pwd
23768 ac_abs_builddir
=$ac_pwd$ac_dir_suffix
23769 # for backward compatibility:
23770 ac_top_builddir
=$ac_top_build_prefix
23773 .
) # We are building in place.
23775 ac_top_srcdir
=$ac_top_builddir_sub
23776 ac_abs_top_srcdir
=$ac_pwd ;;
23777 [\\/]* | ?
:[\\/]* ) # Absolute name.
23778 ac_srcdir
=$srcdir$ac_dir_suffix;
23779 ac_top_srcdir
=$srcdir
23780 ac_abs_top_srcdir
=$srcdir ;;
23781 *) # Relative name.
23782 ac_srcdir
=$ac_top_build_prefix$srcdir$ac_dir_suffix
23783 ac_top_srcdir
=$ac_top_build_prefix$srcdir
23784 ac_abs_top_srcdir
=$ac_pwd/$srcdir ;;
23786 ac_abs_srcdir
=$ac_abs_top_srcdir$ac_dir_suffix
23796 [\\/$
]* | ?
:[\\/]* ) ac_INSTALL
=$INSTALL ;;
23797 *) ac_INSTALL
=$ac_top_build_prefix$INSTALL ;;
23799 ac_MKDIR_P
=$MKDIR_P
23801 [\\/$
]* | ?
:[\\/]* ) ;;
23802 */*) ac_MKDIR_P
=$ac_top_build_prefix$MKDIR_P ;;
23806 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail
=1
23807 # If the template does not know about datarootdir, expand it.
23808 # FIXME: This hack should be removed a few years after 2.60.
23809 ac_datarootdir_hack
=; ac_datarootdir_seen
=
23820 case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
23821 *datarootdir
*) ac_datarootdir_seen
=yes;;
23822 *@datadir@
*|
*@docdir@
*|
*@infodir@
*|
*@localedir@
*|
*@mandir@
*)
23823 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
23824 $as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
23826 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
23827 ac_datarootdir_hack='
23828 s&@datadir@&$datadir&g
23829 s&@docdir@&$docdir&g
23830 s&@infodir@&$infodir&g
23831 s&@localedir@&$localedir&g
23832 s&@mandir@&$mandir&g
23833 s&\\\${datarootdir}&$datarootdir&g' ;;
23837 # Neutralize VPATH when `$srcdir' = `.'.
23838 # Shell code in configure.ac might set extrasub.
23839 # FIXME: do we really want to maintain this feature?
23840 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
23841 ac_sed_extra="$ac_vpsub
23844 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail
=1
23846 /@
[a-zA-Z_
][a-zA-Z_0-9
]*@
/!b
23847 s|@configure_input@|
$ac_sed_conf_input|
;t t
23848 s
&@top_builddir@
&$ac_top_builddir_sub&;t t
23849 s
&@top_build_prefix@
&$ac_top_build_prefix&;t t
23850 s
&@srcdir@
&$ac_srcdir&;t t
23851 s
&@abs_srcdir@
&$ac_abs_srcdir&;t t
23852 s
&@top_srcdir@
&$ac_top_srcdir&;t t
23853 s
&@abs_top_srcdir@
&$ac_abs_top_srcdir&;t t
23854 s
&@builddir@
&$ac_builddir&;t t
23855 s
&@abs_builddir@
&$ac_abs_builddir&;t t
23856 s
&@abs_top_builddir@
&$ac_abs_top_builddir&;t t
23857 s
&@INSTALL@
&$ac_INSTALL&;t t
23858 s
&@MKDIR_P@
&$ac_MKDIR_P&;t t
23859 $ac_datarootdir_hack
23861 eval sed \"\$ac_sed_extra\" "$ac_file_inputs" |
23862 if $ac_cs_awk_getline; then
23863 $AWK -f "$tmp/subs.
awk"
23865 $AWK -f "$tmp/subs.
awk" | $SHELL
23867 || as_fn_error "could not create
$ac_file" "$LINENO" 5
23869 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
23870 { ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out
"`; test -n "$ac_out"; } &&
23871 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' "$tmp/out
"`; test -z "$ac_out"; } &&
23872 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING
: $ac_file contains a reference to the variable \
`datarootdir'
23873 which seems to be undefined. Please make sure it is defined." >&5
23874 $as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir
'
23875 which seems to be undefined. Please make sure it is defined." >&2;}
23879 -) cat "$tmp/out" && rm -f "$tmp/out";;
23880 *) rm -f "$ac_file" && mv "$tmp/out" "$ac_file";;
23882 || as_fn_error "could not create $ac_file" "$LINENO" 5
23888 if test x"$ac_file" != x-; then
23890 $as_echo "/* $configure_input */" \
23891 && eval '$AWK -f "$tmp/defines.awk"' "$ac_file_inputs"
23892 } >"$tmp/config.h" \
23893 || as_fn_error "could not create $ac_file" "$LINENO" 5
23894 if diff "$ac_file" "$tmp/config.h" >/dev/null 2>&1; then
23895 { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5
23896 $as_echo "$as_me: $ac_file is unchanged" >&6;}
23899 mv "$tmp/config.h" "$ac_file" \
23900 || as_fn_error "could not create $ac_file" "$LINENO" 5
23903 $as_echo "/* $configure_input */" \
23904 && eval '$AWK -f "$tmp/defines.awk"' "$ac_file_inputs" \
23905 || as_fn_error "could not create -" "$LINENO" 5
23907 # Compute "$ac_file"'s index
in $config_headers.
23910 for _am_header
in $config_headers :; do
23911 case $_am_header in
23912 $_am_arg |
$_am_arg:* )
23915 _am_stamp_count
=`expr $_am_stamp_count + 1` ;;
23918 echo "timestamp for $_am_arg" >`$as_dirname -- "$_am_arg" ||
23919 $as_expr X"$_am_arg" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
23920 X"$_am_arg" : 'X\(//\)[^/]' \| \
23921 X"$_am_arg" : 'X\(//\)$' \| \
23922 X"$_am_arg" : 'X\(/\)' \| . 2>/dev/null ||
23923 $as_echo X"$_am_arg" |
23924 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
23928 /^X\(\/\/\)[^/].*/{
23940 s/.*/./; q'`/stamp-h
$_am_stamp_count
23943 :C
) { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5
23944 $as_echo "$as_me: executing $ac_file commands" >&6;}
23949 case $ac_file$ac_mode in
23950 "depfiles":C
) test x
"$AMDEP_TRUE" != x
"" ||
{
23951 # Autoconf 2.62 quotes --file arguments for eval, but not when files
23952 # are listed without --file. Let's play safe and only enable the eval
23953 # if we detect the quoting.
23954 case $CONFIG_FILES in
23955 *\'*) eval set x
"$CONFIG_FILES" ;;
23956 *) set x
$CONFIG_FILES ;;
23961 # Strip MF so we end up with the name of the file.
23962 mf
=`echo "$mf" | sed -e 's/:.*$//'`
23963 # Check whether this is an Automake generated Makefile or not.
23964 # We used to match only the files named `Makefile.in', but
23965 # some people rename them; so instead we look at the file content.
23966 # Grep'ing the first line is not enough: some people post-process
23967 # each Makefile.in and add a new line on top of each file to say so.
23968 # Grep'ing the whole file is not good either: AIX grep has a line
23969 # limit of 2048, but all sed's we know have understand at least 4000.
23970 if sed -n 's,^#.*generated by automake.*,X,p' "$mf" |
grep X
>/dev
/null
2>&1; then
23971 dirpart
=`$as_dirname -- "$mf" ||
23972 $as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
23973 X"$mf" : 'X\(//\)[^/]' \| \
23974 X"$mf" : 'X\(//\)$' \| \
23975 X"$mf" : 'X\(/\)' \| . 2>/dev/null ||
23977 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
23981 /^X\(\/\/\)[^/].*/{
23997 # Extract the definition of DEPDIR, am__include, and am__quote
23998 # from the Makefile without running `make'.
23999 DEPDIR
=`sed -n 's/^DEPDIR = //p' < "$mf"`
24000 test -z "$DEPDIR" && continue
24001 am__include
=`sed -n 's/^am__include = //p' < "$mf"`
24002 test -z "am__include" && continue
24003 am__quote
=`sed -n 's/^am__quote = //p' < "$mf"`
24004 # When using ansi2knr, U may be empty or an underscore; expand it
24005 U
=`sed -n 's/^U = //p' < "$mf"`
24006 # Find all dependency output files, they are included files with
24007 # $(DEPDIR) in their names. We invoke sed twice because it is the
24008 # simplest approach to changing $(DEPDIR) to its actual value in the
24010 for file in `sed -n "
24011 s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \
24012 sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g' -e 's/\$U/'"$U"'/g'`; do
24013 # Make sure the directory exists.
24014 test -f "$dirpart/$file" && continue
24015 fdir
=`$as_dirname -- "$file" ||
24016 $as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
24017 X"$file" : 'X\(//\)[^/]' \| \
24018 X"$file" : 'X\(//\)$' \| \
24019 X"$file" : 'X\(/\)' \| . 2>/dev/null ||
24020 $as_echo X"$file" |
24021 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
24025 /^X\(\/\/\)[^/].*/{
24038 as_dir
=$dirpart/$fdir; as_fn_mkdir_p
24039 # echo "creating $dirpart/$file"
24040 echo '# dummy' > "$dirpart/$file"
24046 for dir
in etc lisp
; do
24047 test -d ${dir} || mkdir
${dir}
24051 echo creating src
/epaths.h
24052 ${MAKE-make} epaths-force
24055 if test ! -f src
/.gdbinit
&& test -f $srcdir/src
/.gdbinit
; then
24056 echo creating src
/.gdbinit
24057 echo source $srcdir/src
/.gdbinit
> src
/.gdbinit
24067 ac_clean_files
=$ac_clean_files_save
24069 test $ac_write_fail = 0 ||
24070 as_fn_error
"write failure creating $CONFIG_STATUS" "$LINENO" 5
24073 # configure is writing to config.log, and then calls config.status.
24074 # config.status does its own redirection, appending to config.log.
24075 # Unfortunately, on DOS this fails, as config.log is still kept open
24076 # by configure, so config.status won't be able to write to it; its
24077 # output is simply discarded. So we exec the FD to /dev/null,
24078 # effectively closing config.log, so it can be properly (re)opened and
24079 # appended to by config.status. When coming back to configure, we
24080 # need to make the FD available again.
24081 if test "$no_create" != yes; then
24083 ac_config_status_args
=
24084 test "$silent" = yes &&
24085 ac_config_status_args
="$ac_config_status_args --quiet"
24087 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success
=false
24089 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
24090 # would make configure fail if this is the last instruction.
24091 $ac_cs_success || as_fn_exit $?
24093 if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no
; then
24094 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
24095 $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}